' + shortName + ''\n \t+ ''+cal.version +''\n \t+ ''+cal.prodID +''\n \t+ ''+cal.numEvents +''\n \t+ ''+cal.numProps + ''\n \t);\n \t}\n \telse{\n \tvar noFiles = 'Invalid File';\n \t$('.statusPanel').append('File added is not of.ics form, return INV_FILE
');\n \t$('#tableBody1').append(''\n \t+ ''\n \t+ ''\n \t+ ''+ noFiles +''\n \t+ ''\n \t+ ''\n \t);\n \treturn;\n \t}\n\n\t\t\t}\n\t\t});\n\n\n\t}\n\t\n}","function handleNewClick() {\n const newDoc = stubNewDocument()\n addUpdate(newDoc)\n appendToExtendedData([newDoc])\n }","function newRec(rec, body, name, db, cb) {\n if(!body) body = JSON.stringify(rec) + \"\\n\"\n fs.appendFile(path.join(db.dbfolder, name), body, err => {\n if(err) return cb(err)\n if(db.data[name]) db.data[name].push(rec)\n else db.data[name] = [rec]\n cb()\n })\n}","function addModel(model)\n{\n\tthis.models.push(model);\n}","function addMoreProducts(){\n \tindex++;\n \t$(\"#formtable\").append('
')\n \n }","function addRow(){\r\n $('#pixel_canvas').append('');\r\n var newRow=$('#pixel_canvas').children().last();\r\n for(var i=0;i');\r\n }\r\n row++;\r\n }","async function addRow(form, sh) {\n setTableChanged();\n var array = [];\n for(var i= 1; i element\r\n\t\tvar new_attachment = document.createElement('input');\r\n\t\t\r\n\t\tif (document.getElementById(fileUploads[index]) != null)\r\n\t\t new_attachment = document.getElementById(fileUploads[index]);\r\n\t\t\r\n\t\tnew_attachment.style.display = \"\";\r\n\t\t\r\n\t\t//give element an id\r\n\t\tnew_attachment.setAttribute('id', fileUploads[index]);\r\n\t\tnew_attachment.setAttribute('name', fileUploadNames[index]);\r\n\t\t//set element type\r\n\t\tif (new_attachment.type != 'file') {\r\n\t\t\tnew_attachment.setAttribute('type', 'file');\r\n\t\t}\r\n\t\t\r\n\t\t//set element size\r\n\t new_attachment.setAttribute('size', '25');\r\n\t\r\n\t\t//append newly created element to tree\r\n\t\tdocument.getElementById('attachments_content').appendChild(new_attachment);\r\n\r\n\t\t//create new element for text\r\n\t\tvar new_text = document.createElement('input');\r\n\t\t\r\n\t\tif (document.getElementById(fileDescriptions[index]) != null)\r\n\t\t new_text = document.getElementById(fileDescriptions[index]);\r\n\t\t\r\n\t\tnew_text.style.display = \"\";\r\n\t\t\r\n\t\t//give element an id\r\n\t\tnew_text.setAttribute('id', fileDescriptions[index]);\r\n\t\tnew_text.setAttribute('name', fileDescriptionsText[index]);\r\n\t\tnew_text.setAttribute('value', 'type file description');\r\n\t\tif (new_text.type != 'text') {\r\n\t\t\tnew_text.setAttribute('type', 'text');\r\n\t\t}\r\n\t new_text.setAttribute('size', '20');\r\n\t new_text.setAttribute('style', 'margin-left:10px');\r\n \r\n $addHandler(new_text, 'focus', OnGetFocusForFileDescription);\r\n \r\n\t\t//append newly created element to tree\r\n\t\tdocument.getElementById('attachments_content').appendChild(new_text);\r\n \r\n\t\t//create new element\r\n\t\tnew_text = document.createElement('span');\r\n\t\t//give element an id\r\n\t\tnew_text.setAttribute('id','child_attachment_text_' + index);\r\n\t\t//set element HTML to produce 'remove' text link\r\n\t\tnew_text.innerHTML = ' remove
';\r\n\t\t//append newly created element to tree\r\n\t\t\r\n\t\t//increase the form count\r\n\t\tattachments_count ++;\r\n\r\n\t\tbusyIndexes.push(index);\r\n \r\n document.getElementById('attachments_content').appendChild(new_text);\r\n document.getElementById('attachments_more').innerHTML = 'Attach another file';\r\n \r\n if (max_attachments_count == attachments_count)\r\n {\r\n document.getElementById('maximumExceeded').innerHTML = \"The attachments count is limited to \" + max_attachments_count;\r\n document.getElementById('attachments_more').style.display = 'none';\r\n }\r\n InsureSubmitButton();\r\n\t}","function addFile(req, res, next) {\n var generateResponse = Api_Response(req, res, next);\n var riskId = req.params.id;\n var fileData = req.body;\n Risk.update(\n {\n _id: riskId\n },\n {\n $push: {\n _files: fileData\n }\n },\n function (error) {\n if (error) {\n return generateResponse(error);\n }\n\n Risk\n .findById(riskId)\n .exec(function (error, risk) {\n if (error) {\n return;\n }\n\n var activity = new Activity({\n action: 'activityFeed.addFileToRisk',\n project: risk.project,\n user: req.user._id,\n risk: risk._id,\n riskName: risk.name\n });\n activity.save(function (error) {});\n\n // Send socket.io message.\n socket.addFileToRisk(risk, fileData, req.user._id);\n });\n\n generateResponse(null);\n }\n );\n}","function addRow(record, index, allItems) {\n\n // Search for duplicates\n var foundItem = me.opArtGrid.store.findExact('id_art', record.data.id_art);\n // if not found\n if (foundItem == -1) {\n me.opArtGrid.store.add(record);\n // Call a sort dynamically\n me.opArtGrid.store.sort('id_opart', 'DESC');\n //Remove Record from the source\n ddSource.grid.store.remove(record);\n // Recalc new opsumm\n me.opArtGrid.setOpSumm();\n\n }\n }","function addNewRow(button, tableId, type) {\n const actions = getActions(type);\n $(button).attr(\"disabled\", \"disabled\");\n let index = $(\"#\" + tableId + \" tbody tr:last-child\").index();\n let row = '' +\n '' + getNextElementId() + '' +\n '' +\n '' + actions + '' +\n '';\n $(\"#\" + tableId).append(row);\n $(\"#\" + tableId + \" tbody tr\").eq(index + 1).find(\".add-\" + type + \", .edit-\" + type).toggle();\n $('[data-toggle=\"tooltip\"]').tooltip();\n}","function addFile(path) {\n db.run(\"INSERT INTO paths VALUES (null, (?))\", path, function (err) {\n if (err) {\n console.log(err);\n return;\n }\n console.log(\"INSERT: \"+this.lastID);\n });\n}","saveToFile() {\r\n saveFile({\r\n idParent: this.currentOceanRequest.id,\r\n fileType: this.fileType,\r\n strFileName: this.fileName\r\n })\r\n .then(() => {\r\n // refreshing the datatable\r\n this.getRelatedFiles();\r\n })\r\n .catch(error => {\r\n // Showing errors if any while inserting the files\r\n this.dispatchEvent(\r\n new ShowToastEvent({\r\n title: \"Error while uploading File\",\r\n message: error.message,\r\n variant: \"error\"\r\n })\r\n );\r\n });\r\n }","function addNewRowEmplyTable(table, objLineNew, numLine, callback) {\n\ttry\t{\n\t\tvar row \t\t= \t$(\"#\" + objLineNew).html();\n\t\tvar htmlString \t= \t''; \n\t\tfor (var i = 0; i < parseInt(numLine); i++) {\n\t\t\thtmlString += row;\n\t\t}\n\t\t$('.'+ table + ' tbody').append(htmlString);\n\t\t\n\t\tif (typeof callback == 'function') {\n\t\t\tcallback();\n\t\t}\n\t\tdisableItemCarton();\n\t\t_updateTable('table-carton', true);\n\t\t_setTabIndex();\n\t\t_setTabIndexTable('table-invoice');\n\t\t//set first forcus input in row\n\t\t$('.'+ table + ' tbody tr:last :input:first').focus();\n\t} catch (e) {\n\t\talert('addNewRowEmplyTable: ' + e.message);\n\t}\n}","function add_row() {\n var prefix = \"order_item\" + row_num + \"_\";\n var code = `
\\\n
\\\n
\\\n \\\n
\\\n
\\\n \\\n
\\\n
\\\n \\\n
\\\n
\\\n \\\n
\\\n
\\\n \\\n
\\\n
`;\n $(\"#order_items\").append(code);\n row_num += 1;\n }","_generateItemModel() {\n let content = renders.renderItemModel(this._config);\n this._writer.writeItemModel(content);\n }","function saveRow(newCursor) {\n cursor = newCursor;\n pushRow(row);\n row = [];\n nextNewline = input.indexOf(newline, cursor);\n }","addFileToClientFiles(fileId, folderName) {\n this.set({\n addFileModal: false\n });\n this.save({\n clientFiles: this.get('clientFiles').concat([{\n ___class: 'ClientFiles',\n folderName: folderName,\n files: {\n ___class: 'Files',\n objectId: fileId,\n }\n }]),\n }, {\n success: (response) => {\n console.log('file added to clientFiles');\n store.files.trigger('change');\n },\n error: (xhr) => {\n console.log('error saving clientFile', xhr);\n }\n });\n }","addText() {\n this.addCustom('type', {\n inputLabel: 'Property value'\n });\n const index = this.model.length - 1;\n const item = this.model[index];\n item.schema.isFile = false;\n item.schema.inputType = 'text';\n /* istanbul ignore else */\n if (hasFormDataSupport) {\n item.contentType = '';\n }\n this.requestUpdate();\n }","insertSingleRow(obj,formId) {\n\n this.getLocalStorageData();\n this.rowData = this.formData.find((data) => data.formId == formId);\n this.removeSingleRow(formId);\n\n if(this.rowData.data.length !== 0)\n {\n this.rowData= this.removeSingleRowData(this.rowData ,obj.label );\n }\n\n this.data = {\n label: obj.label,\n inputType: obj.inputType,\n value: obj.value,\n };\n this.rowData.data.push(this.data);\n this.formData.push(this.rowData);\n localStorage.setItem(this.storageName, JSON.stringify(this.formData));\n }","function _fnOnRowAdded(data) {\n properties.fnEndProcessingMode();\n\n if (properties.fnOnNewRowPosted(data)) {\n\n var oSettings = oTable.fnSettings();\n var iColumnCount = oSettings.aoColumns.length;\n var values = new Array();\n\n $(\"input:text[rel],input:radio[rel][checked],input:hidden[rel],select[rel],textarea[rel],span.datafield[rel]\", oAddNewRowForm).each(function () {\n var rel = $(this).attr(\"rel\");\n var sCellValue = \"\";\n if (rel >= iColumnCount)\n properties.fnShowError(\"In the add form is placed input element with the name '\" + $(this).attr(\"name\") + \"' with the 'rel' attribute that must be less than a column count - \" + iColumnCount, \"add\");\n else {\n if (this.nodeName.toLowerCase() == \"select\" || this.tagName.toLowerCase() == \"select\")\n sCellValue = $(\"option:selected\", this).text();\n else if (this.nodeName.toLowerCase() == \"span\" || this.tagName.toLowerCase() == \"span\")\n sCellValue = $(this).html();\n else\n sCellValue = this.value;\n\n sCellValue = sCellValue.replace(properties.sIDToken, data);\n values[rel] = sCellValue;\n }\n });\n\n //Add values from the form into the table\n var rtn = oTable.fnAddData(values);\n var oTRAdded = oTable.fnGetNodes(rtn);\n //Apply editable plugin on the cells of the table\n _fnApplyEditable(oTRAdded);\n //add id returned by server page as an TR id attribute\n properties.fnSetRowID($(oTRAdded), data);\n //Close the dialog\n oAddNewRowForm.dialog('close');\n $(oAddNewRowForm)[0].reset();\n $(\".error\", $(oAddNewRowForm)).html(\"\");\n\n _fnSetDisplayStart();\n properties.fnOnAdded(\"success\");\n }\n }","_appendAttachment({ id, filename, content }) {\n const renderedPromise = this._renderedCapability.promise;\n\n renderedPromise.then(() => {\n if (renderedPromise !== this._renderedCapability.promise) {\n return; // The FileAttachment annotation belongs to a previous document.\n }\n let attachments = this._attachments;\n\n if (!attachments) {\n attachments = Object.create(null);\n } else {\n for (const name in attachments) {\n if (id === name) {\n return; // Ignore the new attachment if it already exists.\n }\n }\n }\n attachments[id] = {\n filename,\n content,\n };\n this.render({\n attachments,\n keepRenderedCapability: true,\n });\n });\n }","function AppendNewRoiToTable(id, roi) {\n const RowID = \"image-\" + id + \"-roi-\" + roi.id;\n $('#ImageRois-' + id).append(\"\" +\n \"\" + roi.id + \"\" +\n \"\" + roi.ph + \"\" +\n \"\" + roi.temp + \"\" +\n \"\" + roi.o2 + \"\" +\n \"\" + roi.co2 + \"\" +\n \"\");\n\n //adds event listener for new row\n $('.image-roi-row').on(\"click\", function () {\n Ready = false;\n $('.image-roi-row').removeClass(\"bg-primary selected\");\n $(this).addClass(\"bg-primary selected\");\n const currentTags = $('#tag-input-roi-' + id).tagsinput('items');\n\n $('#tag-input-roi-' + id).tagsinput('removeAll');\n\n\n\n\n selected = $(this).attr('id').replace(new RegExp(\"image-[0-9]+-roi-\"), \"\");\n SelectedImage = $(this).attr('id').replace(\"image-\", \"\").replace(new RegExp(\"-roi-[0-9]+\"), \"\");\n\n $.getJSON(\"http://\"+document.location.hostname + \":8081/api/roi/tags/get/?roi=\" + selected, function (result) {\n //let remainingTags = $('#tag-input-roi-' + id).tagsinput('items');\n //checkRemain(remainingTags, id);\n for (let i in result.tags){\n $('#tag-input-roi-' + SelectedImage).tagsinput('add', result.tags[i])\n }\n });\n Ready = true;\n });\n}","function fhArrival_addItem(rowData) {\n\t\n\tvar rowHtml = \n\t\t\t\t\t'' +\n\t\t\t\t\t\t'' + rowData.ldv_code_str + '' +\n\t\t\t\t\t\t'' + rowData.ldv_date_str + '' +\n\t\t\t\t\t\t'' + rowData.sender + '' +\n\t\t\t\t\t\t'' + rowData.pallet + '' +\n\t\t\t\t\t\t'' + rowData.carton + '' +\n\t\t\t\t\t\t'' + rowData.notes + '' +\n\t\t\t\t\t\t'' +\n\t\t\t\t\t\t'' +\n\t\t\t\t\t\t'' +\n\t\t\t\t\t'';\n\t\t\t\tjQuery('#fhArrival_details table tbody').append(rowHtml);\n\t\n}"],"string":"[\n \"function addFile(row, col, action) {\\n\\t\\t\\tconsole.log(\\\"add file example\\\", row);\\n\\t\\t\\tvar d = new Date();\\n\\t\\t\\tvar modifyItem = row.entity;\\n\\t\\t\\tif(modifyItem != undefined){\\n\\t\\t\\t\\tmodifyItem.filename='newfile.jpg';\\n\\t\\t\\t\\tmodifyItem.serial=10;\\n\\t\\t\\t\\tmodifyItem.date = d;\\n\\t\\t\\t}\\n\\t\\t\\t//update actions\\n\\t\\t\\tvar showButton = (modifyItem.filename && modifyItem.filename != \\\"\\\") ? false : true;\\n\\t\\t\\tmodifyItem.actions = [\\n\\t\\t\\t\\t{field: modifyItem.filename, actionFieldType: enums.actionFieldType.getName(\\\"Text\\\"), cssClass: \\\"\\\"},\\n\\t\\t\\t\\t{field: 'fa fa-search', actionFieldType: enums.actionFieldType.getName(\\\"Icon\\\"), function: searchFunc, showControl: !showButton},\\n\\t\\t\\t\\t{field: 'fa fa-eye', actionFieldType: enums.actionFieldType.getName(\\\"Icon\\\"), function: editFunc, showControl: !showButton},\\n\\t\\t\\t\\t{field: '/ignoreImages/si_close_entity_normal.png', actionFieldType: enums.actionFieldType.getName(\\\"Image\\\"), height: \\\"16\\\", width: \\\"16\\\", function: deleteFunc, cssClass: \\\"\\\", showControl: !showButton},\\n\\t\\t\\t\\t{field: 'Add File', title: 'Add File', actionFieldType: enums.actionFieldType.getName(\\\"Button\\\"), function: addFile, showControl: showButton}\\n\\t\\t\\t]\\n\\t\\t\\tvar showRowLock = modifyItem.isSelected;\\n\\t\\t\\tmodifyItem.lock = [\\n\\t\\t\\t\\t{field: 'fa fa-check', actionFieldType: enums.actionFieldType.getName(\\\"Icon\\\"), showControl: showRowLock}\\n\\t\\t\\t]\\n\\t\\t}\",\n \"createFile(text){\\n this.model.push({text});\\n\\n // This change event can be consumed by other components which\\n // can listen to this event via componentWillMount method.\\n this.emit(\\\"change\\\")\\n }\",\n \"function addRow() {\\n document.form1.count.value = parseInt(document.form1.count.value) + 1;\\n var i = parseInt(document.form1.count.value);\\n \\t var table;\\n\\t if (document.all)\\n\\t table = document.all.uploadtable;\\n\\t else if (document.getElementById)\\n\\t table = document.getElementById('uploadtable');\\n\\t if (table && table.rows && table.insertRow) {\\n\\t var tr = table.insertRow(table.rows.length);\\n\\t var td = tr.insertCell(tr.cells.length);\\n data = '
';\\n\\t td.innerHTML = data;\\n\\t }\\n }\",\n \"function onAdd() {\\n\\n var tmp = $scope.section.rows[$scope.section.rows.length - 1];\\n if (tmp.cols.length > 0) {\\n if (tmp.cols[0].fields.length > 0) {\\n $scope.section.rows.push(OdsFormService.newRowObject());\\n }\\n }\\n }\",\n \"function addRow() {\\n\\n $scope.section.rows.push(OdsFormService.newRowObject());\\n }\",\n \"function addModel(data) {\\n modelHash = Math.random().toString(36).substring(2, 9);\\n loadModelEvent.data = {\\n file: data,\\n modelHash: modelHash\\n }\\n selectors.closeModel[order].setAttribute('data-hash', modelHash);\\n selectors.selectModel[order].setAttribute('data-hash', modelHash);\\n document.dispatchEvent(loadModelEvent);\\n resetSelectors();\\n}\",\n \"function appendModel(url, model, done){\\n\\t\\tvar list = utils.flatten_tree(JSON.parse(JSON.stringify(model)))\\n\\n\\t\\tvar errormodel = null\\n\\n\\t\\tlist = list.filter(function(model){\\n\\t\\t\\tif(!model._digger.path || !model._digger.inode){\\n\\t\\t\\t\\terrormodel = model;\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\\n\\t\\t\\treturn true\\n\\t\\t})\\n\\n\\t\\tif(errormodel){\\n\\t\\t\\treturn done('no path or inode in level-append: ' + JSON.stringify(model))\\n\\t\\t}\\n\\n\\t\\tvar batch = list.map(function(model){\\n\\t\\t\\treturn {\\n\\t\\t\\t\\ttype:'put',\\n\\t\\t\\t\\tkey:model._digger.path + '/' + model._digger.inode,\\n\\t\\t\\t\\tvalue:model\\n\\t\\t\\t}\\n\\t\\t})\\n\\n\\t\\ttree.batch(batch, function(err){\\n\\t\\t\\tif(err) return done(err)\\n\\t\\t\\tdone(null, model)\\n\\t\\t})\\n\\t}\",\n \"function addFile(filepath)\\r\\n{\\r\\n var tbl = document.getElementById('myfilebody');\\r\\n\\r\\n if ((tbl.rows.length == 1) && (tbl.rows[0].getAttribute(\\\"id\\\") == \\\"nofile\\\")) {\\r\\n tbl.deleteRow(0);\\r\\n }\\r\\n\\r\\n var lastRow = tbl.rows.length;\\r\\n\\r\\n var box1 = document.getElementById('lineBox1');\\r\\n var box2 = document.getElementById('lineBox2');\\r\\n var revBox = document.getElementById('fileRevVal');\\r\\n\\r\\n var saveLine = filepath + \\\",\\\" + revBox.value + \\\",\\\" + box1.value + \\\",\\\" + box2.value;\\r\\n\\r\\n if(document.getElementById(saveLine + 'id') != null) {\\r\\n alert(\\\"Specified combination of filename, revision, and line numbers is already included in the file list.\\\");\\r\\n return;\\r\\n }\\r\\n\\r\\n var row = tbl.insertRow(lastRow);\\r\\n\\r\\n var files = document.getElementById('FilesSelected');\\r\\n files.setAttribute('value', files.value + saveLine + \\\"#\\\");\\r\\n\\r\\n //Create the entry in the actual table in the page\\r\\n\\r\\n row.id = saveLine + 'id';\\r\\n var cellLeft = row.insertCell(0);\\r\\n cellLeft.innerHTML = \\\"<\\\" + \\\"a href=\\\\\\\"javascript:removefile('\\\" + saveLine + \\\"')\\\\\\\">\\\" + filepath + \\\"\\\";\\r\\n cellLeft.setAttribute('value', saveLine);\\r\\n row.appendChild(cellLeft);\\r\\n cellLeft = row.insertCell(1);\\r\\n cellLeft.innerHTML = box1.value;\\r\\n row.appendChild(cellLeft);\\r\\n cellLeft = row.insertCell(2);\\r\\n cellLeft.innerHTML = box2.value;\\r\\n row.appendChild(cellLeft);\\r\\n cellLeft = row.insertCell(3);\\r\\n cellLeft.innerHTML = revBox.value;\\r\\n row.appendChild(cellLeft);\\r\\n\\r\\n colorTable('myfilebody');\\r\\n}\",\n \"function inputChange(e) {\\n for(var i=0;i element\\n while($(parent)[0].tagName.toLowerCase() != \\\"li\\\") {\\n parent = $(parent).parent();\\n }\\n \\n \\n \\n }\\n \\n // Clone this parent row\\n newRow = parent.clone();\\n \\n // Call changeRowNumbering to set attributes of newRow\\n\\tvar isIncreasing = true;\\n\\tchangeRowNumbering(newRow, isIncreasing, true);\\n\\n // Remove event handler\\n $(\\\"ol#card_list li:last input:last\\\").unbind(\\\"blur\\\");\\n\\n\\t// Prepend row to bottom\\n //skip hide if event is null because this breaks the CSV upload\\n if(event != null){\\n newRow.hide();\\n }\\n newRow.insertAfter(parent);\\n\\n // Run fade effect\\n newRow.fadeIn(\\\"fast\\\");\\n \\n \\n\\n // Re-number the rest of the rows \\n\\tvar increaseNumbering = true;\\n\\trenumberRemainingRows(newRow, increaseNumbering);\\n\\n // Change focus to new row added\\n var inputToFocus = newRow.find(\\\"input:first\\\");\\n inputToFocus.focus();\\n\\n // Add +/- event handlers to plus/minus buttons\\n $(newRow).find(\\\"div.plus\\\").click(function(event) { addRow(event); });\\n $(newRow).find(\\\"div.minus\\\").click(function(event) { subtractRow(event); });\\n\\n // Add event handler to last input box\\n $(\\\"ol#card_list li:last input:last\\\").blur(function(event) { addRow(event); });\\n \\n\\n}\",\n \"function appendNewFileInput(element){\\n\\n //store last element the new one gets appended after this one\\n var lastElement = $('.image-upload').last();\\n\\n //clone it so you can append a new one\\n var clone = lastElement.clone();\\n\\n //get the last file input\\n var newFileInput = clone.children()[1];\\n\\n //reset the value so it's an empty file input\\n $(newFileInput).get(0).value = \\\"\\\";\\n $(newFileInput).attr('class', 'image[]')\\n //insert the clone after the last file input\\n clone.insertAfter(lastElement);\\n\\n //attach onchange handler to the new input.\\n attachOnChangeHandler(newFileInput);\\n}\",\n \"function addFieldRow(e) {\\n e.stopPropagation();\\n var $ul = getUl(this)\\n , id = $ul.attr('id')\\n , $tgl = getToggleField($ul);\\n $ul.append(getTemplate(id));\\n focusInput($ul);\\n if (!isChecked($tgl)) {\\n setToggleField($(this), true);\\n $ul.addClass('visible');\\n }\\n render();\\n}\",\n \"function AddAttachmentRow() {\\n var rows = \\\"\\\";\\n var a = $('#tblAttachment tr:last td:nth-child(1)').text();\\n if (a == \\\"\\\") {\\n count++;\\n rows = \\\"\\\"\\n + \\\" \\\" + count + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n\\n $(\\\"#tblAttachment\\\").append(rows);\\n }\\n else if (count == a) {\\n count++;\\n\\n rows = \\\"\\\"\\n + \\\" \\\" + count + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n $(\\\"#tblAttachment\\\").append(rows);\\n }\\n else {\\n\\n a++;\\n count = a;\\n rows = \\\"\\\"\\n + \\\" \\\" + count + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n $(\\\"#tblAttachment\\\").append(rows);\\n }\\n\\n\\n\\n\\n\\n}\",\n \"function AddAttachmentRow() {\\n var rows = \\\"\\\";\\n var a = $('#tblAttachment tr:last td:nth-child(1)').text();\\n if (a == \\\"\\\") {\\n count++;\\n rows = \\\"\\\"\\n + \\\" \\\" + count + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n\\n $(\\\"#tblAttachment\\\").append(rows);\\n }\\n else if (count == a) {\\n count++;\\n\\n rows = \\\"\\\"\\n + \\\" \\\" + count + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n $(\\\"#tblAttachment\\\").append(rows);\\n }\\n else {\\n\\n a++;\\n count = a;\\n rows = \\\"\\\"\\n + \\\" \\\" + count + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"
\\\"\\n + \\\"
\\\"\\n + \\\"\\\"\\n + \\\"\\\"\\n $(\\\"#tblAttachment\\\").append(rows);\\n }\\n}\",\n \"addFileX(event) {\\n let aFile = event.target.files[0];\\n if (aFile.type === \\\"text/plain\\\"){\\n this.files[0] = aFile;\\n } \\n }\",\n \"addFile()\\n\\t{\\n\\t\\t// Obtenemos las filas\\n\\t\\tthis.controlFilas++; // Aumentamos el control\\n\\n\\t\\t// Obtenemos la tabla\\n\\t\\tlet table = document.getElementById('dato-agrupado');\\n\\t\\t// Insertamos una fila en la penultima posicion\\n\\t\\tlet row = table.insertRow(parseInt(table.rows.length) - 1);\\n\\t\\t// Agregamos la primer columna\\n\\t\\tlet cell1 = row.insertCell(0);\\n\\t\\tlet text = document.createTextNode(this.letter[this.controlFilas - 1]);\\n\\t\\tcell1.appendChild(text);\\n\\t\\tlet cell2 = row.insertCell(1);\\n\\t\\tcell2.innerHTML = \\\"De A\\\";\\n\\t\\tlet cell3 = row.insertCell(2);\\n\\t\\tcell3.setAttribute('id', this.controlFilas+'f');\\n\\t\\tlet cell4 = row.insertCell(3);\\n\\t\\tcell4.innerHTML = \\\"\\\";\\n\\t\\t\\n\\t\\t// Hacemos focus\\n\\t\\tdocument.getElementById(this.controlFilas + '1').focus();\\n\\t}\",\n \"function addFile() {\\n document.getElementById(\\\"chronovisor-converter-container\\\").appendChild(fileTemplate.cloneNode(true));\\n maps.push(null);\\n files.push(null);\\n data.push(null);\\n og_data.push(null);\\n }\",\n \"function addItem(evt){\\n var self = evt.target;\\n var template = dom.closest(self, 'wb-row');\\n // we want to clone the row and it's children, but not their contents\\n var newItem = template.cloneNode(true);\\n template.parentElement.insertBefore(newItem, template.nextElementSibling);\\n}\",\n \"function addFile()\\r\\n{\\r\\n\\tvar name = \\\"file-\\\" + maxID++;\\r\\n\\t\\r\\n\\tvar input = $('')\\r\\n\\t\\t.attr('name', name)\\r\\n\\t\\t.attr('id', name);\\r\\n\\t\\r\\n\\tvar close = $('')\\r\\n\\t\\t.addClass('close')\\r\\n\\t\\t.attr('href', 'javascript: removeFile(\\\"' + name + '\\\")')\\r\\n\\t\\t.html('&times;');\\r\\n\\t\\t\\r\\n\\tvar status = $('')\\r\\n\\t\\t.addClass('file-status');\\r\\n\\t\\t\\r\\n\\tvar inputDiv = $('
')\\r\\n\\t\\t.addClass('file-item')\\r\\n\\t\\t.append(input)\\r\\n\\t\\t.append(status)\\r\\n\\t\\t.append(close);\\r\\n\\t\\r\\n\\tconsole.log(\\\"Adding file input\\\", input);\\r\\n\\t\\r\\n\\t$('#file-list').append(inputDiv);\\r\\n\\t\\r\\n\\t// Enable the upload button\\r\\n\\t$('#submit-button').removeAttr('disabled');\\r\\n}\",\n \"function addToModels(file){\\n\\tvar model = JSON.parse(fse.readFileSync(file, 'utf8'));\\t\\n\\tconsole.log(\\\"Model Created\\\" + model.name);\\n\\tu.enhance(model);\\n\\tapp.models.push(model);\\t\\n}\",\n \"function newfile() {\\n let newFile = document.querySelector(\\\".add-file\\\");\\n\\n fileDiv = document.createElement(\\\"div\\\");\\n fileDiv.classList.add(`file-div-${fileCounter}`);\\n\\n buttonRemoveFile = document.createElement(\\\"button\\\");\\n buttonRemoveFile.classList.add(`file-div-${fileCounter}`);\\n buttonRemoveFile.setAttribute(\\\"type\\\", \\\"button\\\");\\n buttonRemoveFile.innerHTML = \\\"Remove File -\\\";\\n\\n labelFileComplete = document.createElement(\\\"label\\\");\\n labelFileComplete.setAttribute(\\\"for\\\", \\\"completed-file\\\");\\n labelFileComplete.innerHTML = \\\"Completed\\\"\\n fileCompleteRadio = document.createElement(\\\"input\\\");\\n fileCompleteRadio.setAttribute(\\\"type\\\", \\\"checkbox\\\");\\n fileCompleteRadio.setAttribute(\\\"id\\\", \\\"completed-file\\\");\\n fileCompleteRadio.setAttribute(\\\"name\\\", `file-name-${fileCounter}`);\\n fileCompleteRadio.setAttribute(\\\"value\\\", \\\"completed\\\");\\n fileCompleteRadio.classList.add(\\\"create-checkbox\\\");\\n\\n labelFileName = document.createElement(\\\"label\\\");\\n labelFileName.setAttribute(\\\"for\\\", \\\"file-name\\\");\\n labelFileName.classList.add(`label-filename`);\\n labelFileName.innerHTML = \\\"File name: \\\";\\n \\n inputFileName = document.createElement(\\\"input\\\");\\n inputFileName.setAttribute(\\\"type\\\", \\\"text\\\");\\n inputFileName.setAttribute(\\\"id\\\", `file-name-${fileCounter}`);\\n inputFileName.setAttribute(\\\"name\\\", `file-name-${fileCounter}`);\\n inputFileName.setAttribute(\\\"size\\\", \\\"50.5\\\");\\n\\n labelFileDesc = document.createElement(\\\"label\\\");\\n labelFileDesc.setAttribute(\\\"for\\\", \\\"file-desc\\\");\\n labelFileDesc.classList.add(\\\"label-filedesc\\\");\\n labelFileDesc.innerHTML = \\\"File Description: \\\";\\n\\n inputFileDesc = document.createElement(\\\"textarea\\\");\\n inputFileDesc.setAttribute(\\\"id\\\", `file-desc`);\\n inputFileDesc.setAttribute(\\\"name\\\", `file-name-${fileCounter}`);\\n\\n newBreak = document.createElement(\\\"br\\\");\\n oneMoreBreak = document.createElement(\\\"br\\\");\\n secMoreBreak = document.createElement(\\\"br\\\");\\n\\n inputFileName.append(newBreak);\\n\\n divAddClass = document.createElement(\\\"div\\\");\\n divAddClass.classList.add(`add-class-${fileCounter}`, \\\"add-class\\\");\\n \\n buttonAddClass = document.createElement(\\\"button\\\");\\n buttonAddClass.classList.add(`${fileCounter}`);\\n buttonAddClass.classList.add(`add-class-button`);\\n buttonAddClass.setAttribute(\\\"type\\\", \\\"button\\\");\\n buttonAddClass.innerHTML = \\\"Add Class +\\\";\\n\\n divAddClass.append(buttonAddClass);\\n divAddClass.append(newBreak);\\n fileDiv.append(labelFileName);\\n fileDiv.append(inputFileName);\\n fileDiv.append(fileCompleteRadio);\\n fileDiv.append(labelFileComplete);\\n fileDiv.append(buttonRemoveFile);\\n fileDiv.append(secMoreBreak);\\n fileDiv.append(labelFileDesc);\\n fileDiv.append(oneMoreBreak);\\n fileDiv.append(inputFileDesc);\\n fileDiv.append(divAddClass);\\n fileDiv.append(newBreak);\\n newFile.append(fileDiv);\\n fileCounter = fileCounter + 1;\\n}\",\n \"function handleFiles () {\\n document.getElementById(\\\"carnets\\\").innerHTML = '';\\n filesData = this.files;\\n if (filesData.length > 0){\\n Array.from(filesData).forEach( file => {\\n addItemTable(file.name);\\n })\\n }\\n \\n}\",\n \"_controlUploadFile(event) {\\n let file = event.target.files[0];\\n let fileName = file.name;\\n let fileType = fileName.split(\\\".\\\")[fileName.split(\\\".\\\").length - 1];\\n\\n if(this.options.tableRender) {\\n let table = this._componentRoot.querySelector('[data-component=\\\"table-custom\\\"]');\\n\\n if(table) {\\n this._inputData = [];\\n table.parentNode.removeChild(table);\\n }\\n\\n this.options.tableRender = false;\\n }\\n\\n let chooseFields = this._componentRoot.querySelector(\\\"#chooseFields\\\");\\n\\n if (chooseFields) {\\n chooseFields.parentNode.removeChild(chooseFields);\\n }\\n\\n if(fileType !== 'csv') {\\n\\n noty({\\n text: 'Файл ' + fileName + ' некорректный, выберите корректный файл, формата csv.',\\n type: 'error',\\n timeout: 3000\\n });\\n\\n return;\\n\\n } else {\\n\\n noty({\\n text: 'Был выбран файл ' + fileName + '.',\\n type: 'success',\\n timeout: 3000\\n });\\n }\\n\\n this._parseCSV(event, file);\\n }\",\n \"addRowFilter() {\\n const selectedFileSourceDefaults = this.get('selectedFileSourceDefaults');\\n this.send('addPolicyFileSource', selectedFileSourceDefaults);\\n scheduleOnce('afterRender', this, '_scrollToAddSelectedFileTypeBtn');\\n }\",\n \"function fileAdded(file) {\\n // Prepare the temp file data for file list\\n var uploadingFile = {\\n id : file.uniqueIdentifier,\\n file : file,\\n type : '',\\n owner : 'Emily Bennett',\\n size : '',\\n modified : moment().format('MMMM D, YYYY'),\\n opened : '',\\n created : moment().format('MMMM D, YYYY'),\\n extention: '',\\n location : 'Insurance Manuals > Medical',\\n offline : false,\\n preview : 'assets/images/etc/sample-file-preview.jpg'\\n };\\n\\n // Append it to the file list\\n vm.files.push(uploadingFile);\\n }\",\n \"function addNewFile(fileProps, scrollToBottom = false) {\\n const newFile = newStudyFileObj(serverState.study._id.$oid)\\n Object.assign(newFile, fileProps)\\n\\n setFormState(prevFormState => {\\n const newState = _cloneDeep(prevFormState)\\n newState.files.push(newFile)\\n return newState\\n })\\n if (scrollToBottom) {\\n window.setTimeout(() => scroll({ top: document.body.scrollHeight, behavior: 'smooth' }), 100)\\n }\\n }\",\n \"function add(){\\n\\n \\tvar progress = Math.floor((i/(parsed.length-1))*100);\\n \\ttinybudget.viewmodel.csvLoadBarProgress(progress);\\n\\n \\t//console.log(progress);\\n \\tvar gluedDate = parsed[i].month +\\\"/\\\"+ parsed[i].day +\\\"/\\\"+ parsed[i].year;\\n // loadedFromServer set to True, prevents auto loading to server\\n var row = new rowitem(true,parsed[i].desc,parsed[i].amt,gluedDate,parsed[i].cat,parsed[i].itemid,null,null);\\n tinybudget.viewmodel.userItems.push(row);\\n\\n\\n if (i >= parsed.length-1){\\n \\treturn;\\n } else if (parsed.length - i == 2){\\n // if there is 1 item left in parsed to add to the viewmodel, enable highcharts to render when triggered\\n tinybudget.viewmodel.sorting = false;\\n i++;\\n \\tsetTimeout(add,100);\\n }else {\\n \\ti++;\\n \\tsetTimeout(add,100);\\n }\\n }\",\n \"function add(){\\n\\n \\tvar progress = Math.floor((i/(parsed.length-1))*100);\\n \\ttinybudget.viewmodel.csvLoadBarProgress(progress);\\n\\n \\t//console.log(progress);\\n \\tvar gluedDate = parsed[i].month +\\\"/\\\"+ parsed[i].day +\\\"/\\\"+ parsed[i].year;\\n // loadedFromServer set to True, prevents auto loading to server\\n var row = new rowitem(true,parsed[i].desc,parsed[i].amt,gluedDate,parsed[i].cat,parsed[i].itemid,null,null);\\n tinybudget.viewmodel.userItems.push(row);\\n\\n\\n if (i >= parsed.length-1){\\n \\treturn;\\n } else if (parsed.length - i == 2){\\n // if there is 1 item left in parsed to add to the viewmodel, enable highcharts to render when triggered\\n tinybudget.viewmodel.sorting = false;\\n i++;\\n \\tsetTimeout(add,100);\\n }else {\\n \\ti++;\\n \\tsetTimeout(add,100);\\n }\\n }\",\n \"_updateContentsModel(model) {\\n const newModel = {\\n path: model.path,\\n name: model.name,\\n type: model.type,\\n content: undefined,\\n writable: model.writable,\\n created: model.created,\\n last_modified: model.last_modified,\\n mimetype: model.mimetype,\\n format: model.format\\n };\\n const mod = this._contentsModel ? this._contentsModel.last_modified : null;\\n this._contentsModel = newModel;\\n this._ycontext.set('last_modified', newModel.last_modified);\\n if (!mod || newModel.last_modified !== mod) {\\n this._fileChanged.emit(newModel);\\n }\\n }\",\n \"function add_field_file() \\r\\n{\\r\\n\\tif ( limit <= 4) \\r\\n\\t{\\r\\n\\t\\t\\tvar field = '
'+\\r\\n\\t\\t'\\t \\t\\t
'+\\r\\n\\t\\t'\\t \\t\\t\\t
'+\\r\\n\\t\\t'\\t \\t\\t\\t\\t'+\\r\\n\\t\\t'\\t \\t\\t\\t\\t'+\\r\\n\\t\\t'\\t \\t\\t\\t
'+\\r\\n\\t\\t'\\t \\t\\t
'+\\r\\n\\t\\t'\\t \\t\\t
'+\\r\\n\\t\\t'\\t \\t\\t\\t
'+\\r\\n\\t\\t'\\t \\t\\t\\t\\t'+\\r\\n\\t\\t'\\t \\t\\t\\t\\t'+\\r\\n\\t\\t'\\t \\t\\t\\t
'+\\r\\n\\t\\t'\\t \\t\\t
'+\\r\\n\\t\\t'\\t \\t
';\\r\\n\\t\\t\\t$('#archivos').append(field);\\r\\n\\t\\t\\twindow.location.href= '#archivos';\\r\\n\\t\\t\\tlimit++;\\r\\n\\t}\\r\\n\\telse\\r\\n\\t{\\r\\n\\t\\talert('El limite de cargar de documentos a llegado a su limite');\\r\\n\\t}\\r\\n\\treturn false;\\r\\n}\",\n \"appendFileInput(filename){\\n\\n let fileInput = document.createElement(\\\"INPUT\\\");\\n fileInput.setAttribute(\\\"type\\\", \\\"file\\\");\\n fileInput.setAttribute(\\\"name\\\", \\\"attachments__c[]\\\");\\n fileInput.setAttribute(\\\"id\\\", \\\"attachments__c[]\\\");\\n fileInput.setAttribute(\\\"multiple\\\", true);\\n fileInput.classList.add(\\\"upload\\\");\\n\\n this.uploadContainer.appendChild(fileInput);\\n\\n return fileInput;\\n }\",\n \"async addRow ( e ) {\\n\\n // Do we have a custom callback?\\n let custom = {};\\n if ( typeof this.onNewRow === 'function' ) {\\n custom = await this.onNewRow ();\\n }\\n\\n const row = merge (\\n // Default blocks structure\\n {\\n blocks: []\\n },\\n\\n // User-specific\\n custom,\\n\\n // Mandatory\\n {\\n _id: v4 ()\\n }\\n );\\n\\n // Default block needed?\\n if ( row.blocks.length === 0 ) {\\n await this.addBlock ( e, row, this.blocksPerRow );\\n }\\n\\n this.rows.push ( row );\\n\\n // Init sortable\\n this.$nextTick ( () => {\\n\\n this.initSortableRow ( row );\\n\\n // Update model\\n this.fireChanged ();\\n\\n e.vdg = { row, block: null };\\n this.$emit ( 'add-row', e );\\n\\n } );\\n\\n }\",\n \"filledFileRow(){\\n const { columnHeaders, className, colWidthStyles, file } = this.props;\\n const fileAtId = object.itemUtil.atId(file);\\n const row = []; // Return val.\\n const cols = _.filter(columnHeaders, function(col){ return col.columnClass === 'file-detail'; });\\n const baseClassName = (className || '') + \\\" col-file-detail item\\\";\\n\\n _.forEach(cols, (col, index)=>{\\n\\n const colClassName = baseClassName + ' col-' + col.columnClass + ' detail-col-' + index;\\n const colStyle = colWidthStyles ? colWidthStyles[col.field || col.title || col.columnClass] : null;\\n\\n if (typeof col.render === 'function'){\\n row.push(\\n
\\n { col.render(file, col.field, index, this.props) }\\n
\\n );\\n return;\\n }\\n\\n if (!fileAtId) {\\n // Empty block to take up space/width needed.\\n row.push(
);\\n return;\\n }\\n\\n if (typeof col.field === 'string'){\\n // Grab value out of file.\\n let val = object.getNestedProperty(file, col.field, true);\\n val = (val && Schemas.Term.toName(col.field, val, true)) || '-';\\n row.push(
{ val }
);\\n return;\\n }\\n });\\n\\n return row;\\n }\",\n \"function installAppendClickHandler() {\\n $('#selectfile-append').on('click', function() {\\n appendProjectCode();\\n closeImportProjectDialog();\\n });\\n}\",\n \"function attachExistingResources(event) {\\n //TODO check for file\\n var checked = $('#resourceImportModal #resources input[type=\\\"checkbox\\\"]:checked')\\n if (checked.length == 0) {\\n $('#resourceImportModal #resources .validation-box').addClass('error required')\\n return\\n } else {\\n for (var i = 0; i < checked.length; i++) {\\n var resource = resourceFunctions.resources[checked[i].value]\\n var row = $('
')\\n row.append('')\\n row.append('' + resource.metadata.title + '')\\n $('.add-file-list').append(row)\\n var remove = $('')\\n row.append(remove)\\n remove.on('click', function(event) {\\n $(event.currentTarget).closest('div').remove()\\n })\\n }\\n $('.ld-homework form.new input[name=\\\"submission-type\\\"]').prop(\\\"checked\\\", true)\\n $('.ld-homework form.new input[name=\\\"file-required\\\"]').prop(\\\"checked\\\", true)\\n $('.ld-homework form.new input[name=\\\"file-required\\\"]').removeAttr('disabled')\\n $('.ld-homework form.new .file-required').removeClass(\\\"disabled\\\")\\n $('.ld-homework form.new input[name=\\\"type\\\"]').val('2')\\n $.uniform.update('.ld-homework form.new input[name=\\\"submission-type\\\"]')\\n $.uniform.update('.ld-homework form.new input[name=\\\"file-required\\\"]')\\n }\\n $('#resourceImportModal').modal('hide')\\n }\",\n \"function uploadComplete(file_id){\\n var content = \\\"\\\" +\\n fileName + \\\"\\\";\\n $(\\\"#folder_view\\\").append(content);\\n $(\\\"#upload_file\\\").empty();\\n}\",\n \"function ui_multi_add_file(id, file)\\n{\\n var template = $('#files-template').text();\\n template = template.replace('%%filename%%', file.name);\\n template = template.replace('%%remove%%', \\\"data-attach-id=\\\"+id)\\n\\n template = $(template);\\n template.prop('id', 'uploaderFile' + id);\\n template.data('file-id', id);\\n\\n $('#files').find('li.empty').fadeOut(); // remove the 'no files yet'\\n $('#files').prepend(template);\\n console.log(\\\"file added\\\");\\n $(\\\"button[data-attach-id=\\\"+id+\\\"]\\\").click({\\\"id\\\":id}, removeFileElement);\\n}\",\n \"function ftableAddElement(name,rname,id){\\n\\t$(''+rname+''\\n\\t\\t\\t+generateDeleteButton(id)+'').prependTo(FILELIST_TBL+\\\" > tbody\\\");\\n}\",\n \"function addTaskTable(obj) {\\r\\n\\tvar output = document.getElementById('fileList');\\r\\n\\tvar length = output.rows.length;\\r\\n\\tvar rowCount = length;\\r\\n\\tif(rowCount<1)counter=0;\\r\\n\\tvar tableName = 'fileList';\\r\\n\\tvar data = obj.task_name+\\\"^\\\"+obj.task_due_date+\\\"^\\\"+obj.task_label+\\\"^\\\"+obj.id+\\\"^\\\"+obj.user_index+\\\"^\\\"+obj.task_notes+\\\"^\\\"+obj.task_priority;\\r\\n\\tif(obj.task_label==undefined || obj.task_label==null || obj.task_label=='')obj.task_label = 'NA';\\r\\n\\tif(obj.task_due_date==undefined || obj.task_due_date==null || obj.task_due_date=='')obj.task_due_date = 'NA';\\r\\n\\toutput.innerHTML += ''+obj.task_name+'';\\r\\n\\tcounter++;\\r\\n\\tdocument.getElementById(\\\"addToDo_Form\\\").reset();\\r\\n\\t$('#myModal').modal('hide');\\r\\n}\",\n \"function createFileRow(eid,fid,cols,skips,rfid) {\\r\\n\\tif (!cols) { errorAlert('createFileRow','no cols given'); return; }\\r\\n\\tvar row = document.createElement('tr');\\r\\n\\tvar mylistEntry = mylist[fid];\\r\\n\\tvar file = files[fid];\\r\\n\\tif (rfid != null) file = pseudoFiles[rfid];\\r\\n\\tvar episode = episodes[eid];\\r\\n\\trow.id = 'e'+eid+(file.pseudoFile ? 'r' : '')+'f'+fid;\\r\\n\\tclassNameAtts = new Array();\\r\\n\\tif (file.type != 'generic') {\\r\\n\\t\\tif (file.crcStatus == 'valid') classNameAtts.push('good');\\r\\n\\t\\tif (file.crcStatus == 'invalid') classNameAtts.push('bad');\\r\\n\\t\\tif (!file.avdumped) classNameAtts.push('undumped');\\r\\n\\t} else classNameAtts.push('generic no_sort');\\r\\n\\trow.className = classNameAtts.join(' ');\\r\\n\\tvar icons = createFileIcons(file); // get file icons\\r\\n\\tfor (var c = 0; c < cols.length; c++) {\\r\\n\\t\\tvar col = cols[c];\\r\\n\\t\\tvar colSpan = 1;\\r\\n\\t\\tif (file.type == 'generic' && skips) {\\r\\n\\t\\t\\tif (col['nogenerics']) continue;\\r\\n\\t\\t\\tcolSpan = skips[c];\\r\\n\\t\\t}\\r\\n\\t\\tswitch(col['name']) {\\r\\n\\t\\t\\tcase 'check-mylist':\\r\\n\\t\\t\\t\\tvar ck = ((LAY_SHOWTRADE) ? document.createTextNode(' ') : createCheckBox(null,'mylmod.f.'+mylistEntry.id,'mylmod.f.'+mylistEntry.id,null,false));\\r\\n\\t\\t\\t\\tcreateCell(row, col['classname'], ck, null, colSpan);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'check-anime':\\r\\n\\t\\t\\t\\tcreateCell(row, col['classname'], createCheckBox(null,'madd.f.'+file.id,'madd.f.'+file.id,showAddToMylistBox,false), null, colSpan);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'fid':\\r\\n\\t\\t\\t\\tif (!icons['expand'])\\r\\n\\t\\t\\t\\t\\tcreateCell(row, col['classname'], icons['fid'], file.id, colSpan);\\r\\n\\t\\t\\t\\telse {\\r\\n\\t\\t\\t\\t\\tvar cell = createCell(null, col['classname'], icons['fid'], file.id, colSpan);\\r\\n\\t\\t\\t\\t\\t// now do some checking before posting the expand icon\\r\\n\\t\\t\\t\\t\\tvar showExpandIcon = true;\\r\\n\\t\\t\\t\\t\\tif (mylist_settings) {\\r\\n\\t\\t\\t\\t\\t\\tvar mycnt = 0;\\r\\n\\t\\t\\t\\t\\t\\tfor (var fr = 0; fr < file.relatedFiles.length; fr++) {\\r\\n\\t\\t\\t\\t\\t\\t\\tif (!files[file.relatedFiles[fr]]) continue;\\r\\n\\t\\t\\t\\t\\t\\t\\tif (mylist[file.relatedFiles[fr]]) mycnt++;\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\tif (!mycnt) showExpandIcon = false;\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tif (showExpandIcon) cell.appendChild(icons['expand']);\\r\\n\\t\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'epno':\\r\\n\\t\\t\\t\\tvar epno = createTextLink(null, episode.typeChar+episode.epno, 'animedb.pl?show=ep&eid='+eid, null, null, null, null);\\r\\n\\t\\t\\t\\tcreateCell(row, col['classname'], epno, null, colSpan);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'group':\\r\\n\\t\\t\\t\\tif (file.type == 'generic') {\\r\\n\\t\\t\\t\\t\\tcreateCell(row, col['classname'], createLink(null, 'generic file', 'http://wiki.anidb.info/w/Files:Generic_files', 'extern wiki', null, null, null), null, colSpan); // GROUP\\r\\n\\t\\t\\t\\t} else { // group\\r\\n\\t\\t\\t\\t\\tvar cell = createCell(null, col['classname']);\\r\\n\\t\\t\\t\\t\\tif (icons['date'] || icons['cmt'] || icons['ver']) {\\r\\n\\t\\t\\t\\t\\t\\tvar divIcons = document.createElement('span');\\r\\n\\t\\t\\t\\t\\t\\tdivIcons.className = 'icons';\\r\\n\\t\\t\\t\\t\\t\\tif (icons['date']) divIcons.appendChild(icons['date']);\\r\\n\\t\\t\\t\\t\\t\\tif (icons['cmt']) divIcons.appendChild(icons['cmt']);\\r\\n\\t\\t\\t\\t\\t\\tif (icons['ver']) divIcons.appendChild(icons['ver']);\\r\\n\\t\\t\\t\\t\\t\\tcell.appendChild(divIcons);\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tvar groupEntry = groups[file.groupId];\\r\\n\\t\\t\\t\\t\\tcell.setAttribute('anidb:sort',groupEntry.shortName.toLowerCase());\\r\\n\\t\\t\\t\\t\\tif (!file.groupId) groupEntry = null;\\r\\n\\t\\t\\t\\t\\tvar label = document.createElement('label');\\r\\n\\t\\t\\t\\t\\tif (!file.pseudoFile) {\\r\\n\\t\\t\\t\\t\\t\\tif (groupEntry) \\r\\n\\t\\t\\t\\t\\t\\t\\tlabel.appendChild(createLink(null, groupEntry.shortName, 'animedb.pl?show=group&gid=' + file.groupId, 'extern anidb', null, 'group name: ' + groupEntry.name, null));\\r\\n\\t\\t\\t\\t\\t\\telse \\r\\n\\t\\t\\t\\t\\t\\t\\tlabel.appendChild(document.createTextNode('no group'));\\r\\n\\t\\t\\t\\t\\t} else {\\r\\n\\t\\t\\t\\t\\t\\tvar shortNames = \\\"\\\";\\r\\n\\t\\t\\t\\t\\t\\tvar Names = \\\"\\\";\\r\\n\\t\\t\\t\\t\\t\\tfor (var gr = 0; gr < file.relatedGroups.length; gr++) {\\r\\n\\t\\t\\t\\t\\t\\t\\tvar groupEntry = groups[file.relatedGroups[gr]];\\r\\n\\t\\t\\t\\t\\t\\t\\tshortNames += groupEntry.shortName;\\r\\n\\t\\t\\t\\t\\t\\t\\tNames += groupEntry.name;\\r\\n\\t\\t\\t\\t\\t\\t\\tif (gr < 2 && file.relatedGroups.length > gr+1) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tshortNames += '&'; Names += '&';\\r\\n\\t\\t\\t\\t\\t\\t\\t} else if (gr == 1) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tshortNames += '&...'; Names += '&...';\\r\\n\\t\\t\\t\\t\\t\\t\\t} else break; // will not add more information even if it exists\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\tlabel.appendChild(createLink(null, shortNames, 'http://wiki.anidb.info/w/Files:Pseudo_files', 'extern wiki', null, 'group name: ' + Names, null));\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tcell.appendChild(label);\\r\\n\\t\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'mylist-storage':\\r\\n\\t\\t\\t\\tcreateCell(row, col['classname'], document.createTextNode((mylistEntry.storage ? mylistEntry.storage : \\\"\\\")), null, colSpan);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'mylist-source':\\r\\n\\t\\t\\t\\tcreateCell(row, col['classname'], document.createTextNode((mylistEntry.source ? mylistEntry.source : \\\"\\\")), null, colSpan);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'users':\\r\\n\\t\\t\\t\\tcell = createCell(null, col['classname'],createLink(null, file.usersTotal, 'animedb.pl?show=userlist&fid=' + file.id, null, null, 'total users', null),file.usersTotal, colSpan);\\r\\n\\t\\t\\t\\tcell.appendChild(document.createTextNode('/'));\\r\\n\\t\\t\\t\\tvar abbr = document.createElement('abbr');\\r\\n\\t\\t\\t\\tabbr.title = 'deleted';\\r\\n\\t\\t\\t\\tabbr.appendChild(document.createTextNode(file.usersDeleted));\\r\\n\\t\\t\\t\\tcell.appendChild(abbr);\\r\\n\\t\\t\\t\\tcell.appendChild(document.createTextNode('/'));\\r\\n\\t\\t\\t\\tabbr = document.createElement('abbr');\\r\\n\\t\\t\\t\\tabbr.title = 'unknown status';\\r\\n\\t\\t\\t\\tabbr.appendChild(document.createTextNode(file.usersUnknown));\\r\\n\\t\\t\\t\\tcell.appendChild(abbr);\\r\\n\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'state-mylist':\\r\\n\\t\\t\\tcase 'state-anime':\\r\\n\\t\\t\\t\\tcell = createCell(null, col['classname'], null, null, colSpan);\\r\\n\\t\\t\\t\\tif (col['name'] == 'state-anime' && icons['mylist']) cell.appendChild(icons['mylist']);\\r\\n\\t\\t\\t\\tif (icons['mylist_status']) cell.appendChild(icons['mylist_status']);\\r\\n\\t\\t\\t\\tif (icons['mylist_fstate']) cell.appendChild(icons['mylist_fstate']);\\r\\n\\t\\t\\t\\tif (icons['mylist_seen']) cell.appendChild(icons['mylist_seen']);\\r\\n\\t\\t\\t\\tif (icons['mylist_cmt']) cell.appendChild(icons['mylist_cmt']);\\r\\n\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'actions-mylist':\\r\\n\\t\\t\\t\\tcell = createCell(null, col['classname'], null, null, colSpan);\\r\\n\\t\\t\\t\\tif (icons['mylist_watch']) cell.appendChild(icons['mylist_watch']);\\r\\n\\t\\t\\t\\tif (icons['mylist_edit']) cell.appendChild(icons['mylist_edit']);\\r\\n\\t\\t\\t\\tif (icons['mylist_remove']) cell.appendChild(icons['mylist_remove']);\\r\\n\\t\\t\\t\\t//\\tif (icons['mylist_add']) cell.appendChild(icons['mylist_add']);\\r\\n\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'actions-anime':\\r\\n\\t\\t\\t\\tcell = createCell(null, col['classname'], null, null, colSpan);\\r\\n\\t\\t\\t\\tif (icons['edit']) cell.appendChild(icons['edit']);\\r\\n\\t\\t\\t\\tif (icons['mylist_add']) cell.appendChild(icons['mylist_add']);\\r\\n\\t\\t\\t\\tif (icons['mylist_remove']) cell.appendChild(icons['mylist_remove']);\\r\\n\\t\\t\\t\\tif (icons['mylist_watch']) cell.appendChild(icons['mylist_watch']);\\r\\n\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'size':\\r\\n\\t\\t\\t\\tif (file.type != 'generic') createCell(row, col['classname'], document.createElement('nobr').appendChild(document.createTextNode(formatFileSize(file.size))), file.size, colSpan);\\r\\n\\t\\t\\t\\telse createCell(row, col['classname'], document.createTextNode(' '), null, colSpan);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'crc':\\r\\n\\t\\t\\t\\tcreateCell(row, col['classname'], document.createTextNode(file.crc32.toUpperCase()), null, colSpan);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'resolution':\\r\\n\\t\\t\\t\\tcreateCell(row, col['classname'], ((file.type == 'video') ? document.createTextNode(file.resolution) : document.createTextNode('n/a')), file.pixelarea, colSpan);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'langs':\\r\\n\\t\\t\\t\\tcell = createCell(null, col['classname'], null, null, colSpan);\\r\\n\\t\\t\\t\\tif (icons['audlangs']) { var audlangs = icons['audlangs']; for (var i = 0; i < audlangs.length; i++) cell.appendChild(audlangs[i]); }\\r\\n\\t\\t\\t\\tif (icons['sublangs']) { var sublangs = icons['sublangs']; for (var i = 0; i < sublangs.length; i++) cell.appendChild(sublangs[i]); }\\r\\n\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'cf':\\r\\n\\t\\t\\t\\tcell = createCell(null, col['classname'], null, null, colSpan);\\r\\n\\t\\t\\t\\tvar codecSort = 'unknown';\\r\\n\\t\\t\\t\\tif (file.type == 'video' && file.videoTracks[0] && file.videoTracks[0].codec) codecSort = file.videoTracks[0].codec;\\r\\n\\t\\t\\t\\tcell.setAttribute('anidb:sort',codecSort);\\r\\n\\t\\t\\t\\tif (icons['ext']) cell.appendChild(icons['ext']);\\r\\n\\t\\t\\t\\tif (icons['vid']) cell.appendChild(icons['vid']);\\r\\n\\t\\t\\t\\tif (icons['audcodecs']) { var audcodecs = icons['audcodecs']; for (var i = 0; i < audcodecs.length; i++) cell.appendChild(audcodecs[i]); }\\r\\n\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'quality':\\r\\n\\t\\t\\t\\tcreateCell(row, 'quality '+file.quality, icons['quality'], mapQuality(file.quality), null, colSpan);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'hashes':\\r\\n\\t\\t\\t\\tcell = createCell(null, col['classname'], null, null, colSpan);\\r\\n\\t\\t\\t\\tif (uid != undefined && file.ed2k != '') cell.onmouseover = createHashLink;\\r\\n\\t\\t\\t\\tif (icons['ed2k']) cell.appendChild(icons['ed2k']);\\r\\n\\t\\t\\t\\tif (icons['crc']) cell.appendChild(icons['crc']);\\r\\n\\t\\t\\t\\tif (icons['avdump']) cell.appendChild(icons['avdump']);\\r\\n\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase 'anime-source':\\r\\n\\t\\t\\t\\tvar cell = createCell(null, col['classname'], null, null, colSpan);\\r\\n\\t\\t\\t\\tif (icons['cen']) {\\r\\n\\t\\t\\t\\t\\tvar divIcons = document.createElement('span');\\r\\n\\t\\t\\t\\t\\tdivIcons.className = 'icons';\\r\\n\\t\\t\\t\\t\\tif (icons['cen']) divIcons.appendChild(icons['cen']);\\r\\n\\t\\t\\t\\t\\tcell.appendChild(divIcons);\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tvar label = document.createElement('label');\\r\\n\\t\\t\\t\\tlabel.appendChild(document.createTextNode(file.source));\\r\\n\\t\\t\\t\\tcell.appendChild(label);\\r\\n\\t\\t\\t\\trow.appendChild(cell);\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tdefault:\\r\\n\\t\\t\\t\\terrorAlert('createFileRow','unknown column with name: '+col['name']);\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\treturn row;\\r\\n}\",\n \"save() {\\n this.tf.push(lastElement(this.tf).clone());\\n this.context.save();\\n }\",\n \"function addRow() {\\n rowCount += 1;\\n if (rowCount >= MAX_ROWS) {\\n controls.add.enabled(false);\\n }\\n toggleAlert(false);\\n $(ROW_CODE).insertAfter(\\\"#varTable tbody tr:last\\\");\\n feather.replace();\\n calculateRowIds();\\n $('input.var').on('focusout', inputChanged);\\n }\",\n \"function save() {\\n\\n if (!_.isNumber($scope.editIndex)) // if new put in array\\n $scope.documents.push($scope.document);\\n\\n return $scope.save().then(function() {\\n $scope.editIndex = false;\\n $scope.editLinkForm.$setPristine();\\n $scope.editLinkForm.$setValidity();\\n $scope.editLinkForm.$setUntouched();\\n $scope.document={};\\n var el = $element.find('#file');\\n el.value='';\\n $scope.focused=false;\\n\\n }).catch(function(error) {\\n console.log(error);\\n $scope.onError(error);\\n $scope.documents.pop();\\n $scope.error = error;\\n throw error;\\n });\\n }\",\n \"_save() {\\n let content = this.input.getContent().split(\\\"
\\\").join(\\\"\\\")\\n .split(\\\"
\\\").join(\\\"\\\\n\\\");\\n this.file.setContent(content);\\n\\n // create new file\\n if (this.createFile)\\n this.parentDirectory.addChild(this.file);\\n }\",\n \"addFileToForm(form, data, content, filename, path, prependApp = true) {\\n if (path === TEMPLATE_PATH) {\\n content = this.replaceExamplePlaceholderNames(data, filename, content);\\n }\\n else if (prependApp) {\\n // tslint:disable-next-line:prefer-template\\n filename = 'app/' + filename;\\n }\\n this.appendFormInput(form, `files[${filename}]`, this.appendCopyright(filename, content));\\n }\",\n \"function add_tr(obj) {\\n var type = $('.left')[0];\\n var table = $('table')[0];\\n var parent = obj.parentNode;\\n\\n var stringValue;\\n var can_add_row = false;\\n\\n if (type.value == 'Integer') {\\n stringValue = $('.input_data')[0].value;\\n if (!isNaN(parseInt(stringValue))) {\\n can_add_row = true;\\n }\\n } else if (type.value == 'String') {\\n stringValue = $('.input_data')[0].value;\\n if (stringValue != '')\\n can_add_row = true;\\n } else if (type.value == 'From List') {\\n var input_label = $('#right')[0];\\n stringValue = input_label.childNodes[1].value;\\n if (stringValue != '')\\n can_add_row = true;\\n }\\n\\n if (can_add_row) {\\n var row = table.insertRow(parent.rowIndex);\\n var cell1 = row.insertCell(0);\\n cell1.className = 'cell';\\n cell1.innerHTML = type.value;\\n\\n var cell2 = row.insertCell(1);\\n cell2.className = 'cell';\\n cell2.innerHTML = stringValue;\\n\\n var cell3 = row.insertCell(2);\\n cell3.className = 'delete';\\n cell3.innerHTML = 'Delete';\\n\\n var cell4 = row.insertCell(3);\\n cell4.className = 'edit';\\n cell4.innerHTML = 'Edit';\\n }\\n\\n type.value = 'Integer';\\n type_changed();\\n upload();\\n rowIndex = -1;\\n}\",\n \"async function addAttachmentModel() {\\n const attachmentModel = document.querySelector('.attachment-model');\\n attachmentModel.style.display = \\\"block\\\";\\n document.querySelector(\\\"#attachment\\\").addEventListener(\\\"change\\\", function () {\\n const fileReader = new FileReader();\\n //Once the file is read store its content in the localStorage\\n fileReader.addEventListener(\\\"load\\\", () => {\\n imageData = fileReader.result;\\n console.log(imageData);\\n document.querySelector(\\\"#attachment-image\\\").src = imageData;\\n });\\n // Read the selected file as text\\n fileReader.readAsDataURL(this.files[0]);\\n });\\n}\",\n \"function appendFormToReturnModel(objModel) {\\n switch (modal.stepWizardModelArray[modal.step].gridOwner) {\\n case 'master': angular.extend(modal.modelToSave, objModel); break;\\n case 'slave': angular.extend(modal.detailModelToSave, objModel); break;\\n case 'both': alert('Append step case to both \\\" Implement me plz\\\"!'); break;\\n default: alert('Append step case to default!'); break;\\n }\\n }\",\n \"function uploadTermListFile($event) {\\n\\n\\t// process for each txt\\n\\tvar files = $event.target.files;\\n\\tfor (let i = 0; i < files.length; i++) {\\n\\t\\tlet reader = new FileReader();\\n\\t\\treader.onload = updateTermList(files[i].name);\\n\\t\\treader.readAsText(files[i]);\\n\\t}\\n\\n\\t// update input\\n\\t$('#uploadTermList').replaceWith('');\\n\\tdocument.getElementById('uploadTermList').addEventListener('change', uploadTermListFile, false);\\n\\n\\t// open modal\\n\\t$('#term-list-edit-button').click();\\n}\",\n \"addRow() {\\n event.preventDefault();\\n this.newExpenses.push({\\n provider: '',\\n date: '',\\n reason: '',\\n amount: 0\\n });\\n }\",\n \"function addFile(file, isTrash) {\\n if (isTrash) {\\n var fileParent = file.parents[0];\\n\\n file.originPath = {\\n path: getOriginPath(file).html.join(' / '),\\n tooltip: getOriginPath(file).tooltip.join(' / '),\\n isApp: fileParent.type === 'app',\\n appIcon: appIcons.get(fileParent.data.id)\\n };\\n }\\n\\n file.formattedDate = formatDate(file.createdAt);\\n\\n if (file.deletedAt !== null) {\\n file.deletedAt = formatDate(file.deletedAt);\\n }\\n\\n currentFiles.push(file);\\n\\n $('.empty-state').removeClass('active');\\n $('.new-menu').removeClass('active');\\n\\n // Toggle checkbox header to false\\n $('.file-table-header input[type=\\\"checkbox\\\"]').prop('checked', false);\\n $selectAllCheckbox.css({ 'opacity': '1', 'visibility': 'visible' });\\n}\",\n \"addRow() {\\n let newAlt = new AltColumnFilters(this.holder, this.paneOb)\\n newAlt.id = this.idCount\\n this.idCount++\\n // add to the pane collection for export as well\\n this.paneOb.altFiltersState[newAlt.id] = { colname: \\\"\\\", op: \\\"\\\", val: \\\"\\\" }\\n newAlt.init()\\n // add the removal function to take it from the list too\\n\\n newAlt.removeFromList = this.removeFromList.bind(this)\\n\\n this.altfilters.push(newAlt)\\n this.holder.addEventListener(\\\"altchange\\\", this.filter.bind(this))\\n\\n\\n }\",\n \"function uploadAndAttachNewResource(event) {\\n var formData = new FormData();\\n var resourceData = {}\\n var title = \\\"\\\"\\n if ($('#resourceImportModal .fileInput').attr('type') === 'button') { //using icab\\n formData = new FormData($('#resourceImportModal #fileUploadIcabFix')[0])\\n title = $('#resourceImportModal .fileInput').val()\\n if (title == \\\"Select File\\\" && $('#resourceImportModal #fileUploadIcabFix input[type=\\\"hidden\\\"]').length == 0) {\\n $('#resourceImportModal #upload .validation-box').addClass('error required')\\n return\\n }\\n resourceData['type'] = 'file'\\n formData.append('title', title)\\n //formData.append('file', file, file.name)\\n } else {\\n var files = $('#resourceImportModal .fileInput')[0].files\\n if (files.length == 0) {\\n $('#resourceImportModal #upload .validation-box').addClass('error required')\\n return\\n }\\n var file = files[0]\\n title = file.name\\n resourceData['content-type'] = file.type\\n if (file.type.split('/')[0] == 'image') {\\n resourceData['type'] = 'image'\\n } else if (file.type.indexOf('pdf') != -1) {\\n resourceData['type'] = 'pdf'\\n } else {\\n resourceData['type'] = 'file'\\n }\\n formData.append('file', file, file.name)\\n formData.append('title', file.name)\\n }\\n formData.append('owner', 'schoolbag')\\n formData.append('creator', 'noticeboard')\\n formData.append('clientId', $('.hidden input[name=\\\"client-id\\\"]').val())\\n formData.append('key', $('.hidden input[name=\\\"key\\\"]').val())\\n\\n resourceFunctions.uploadResource(resourceData, formData, function(response) {\\n var row = $('
')\\n row.append('')\\n row.append('' + title + '')\\n $('#openAddResourceModal').before(row)\\n\\n var remove = $('')\\n row.append(remove)\\n remove.on('click', function(event) {\\n $(event.currentTarget).closest('div').remove()\\n })\\n $('#resourceImportModal').modal('hide')\\n }, function(request, status, error){\\n $('#resourceImportModal #upload .error').removeClass('hidden')\\n $('#resourceImportModal #upload .loading').addClass('hidden')\\n })\\n $('#resourceImportModal #upload .contents').addClass('hidden')\\n $('#resourceImportModal #upload .loading').removeClass('hidden')\\n $('#resourceImportModal button.close').addClass('hidden')\\n }\",\n \"function classification_add_row(evt) {\\n var remove = el(\\\"div.remove\\\", [\\\"✖\\\"])\\n var confirm = el(\\\"div.remove\\\", ['\\\\u2714'])\\n input = el(\\\"input#input\\\")\\n remove.addEventListener('click', classification_remove_row) \\n confirm.addEventListener('click', classification_append_row) \\n evt.parentNode.appendChild(el('div.entity-sample', [\\n input,\\n remove,\\n el(\\\"div.divider\\\"),\\n confirm\\n ]))\\n}\",\n \"function addRow() {\\n $schedule.find('tbody').append('');\\n addRowUndoHighlight();\\n addRowHighlight();\\n return false;\\n }\",\n \"function appendFileUploader()\\n{\\n var uploader = $(\\\"\\\", {\\n type: \\\"file\\\",\\n class: \\\"uploader\\\",\\n id: \\\"uploader\\\"+globals.traceCount,\\n }).appendTo(\\\"#uploader-container\\\");\\n initializeFileUploader();\\n globals.traceCount++;\\n}\",\n \"function handleFileLine(originalFileName) {\\n let fileName = originalFileName.toLowerCase().replace('\\\\\\\\', '/'); // Normalize the name by bringing to lower case and replacing backslashes:\\n localCull = true;\\n // saveThisCommentLine = false;\\n let isEmpty = part.steps.length === 0 && step.isEmpty();\\n\\n if (isEmpty && !self.mainModel) { // First model\\n self.mainModel = part.ID = fileName;\\n }\\n else if (isEmpty && self.mainModel && self.mainModel === part.ID) {\\n console.warn(\\\"Special case: Main model ID change from \\\" + part.ID + \\\" to \\\" + fileName);\\n self.mainModel = part.ID = fileName;\\n }\\n else { // Close model and start new as no FILE directive has been encountered:\\n closeStep(false);\\n\\n if (!part.ID) { // No ID in main model: \\n console.warn(originalFileName, 'No ID in main model - setting default ID', defaultID);\\n console.dir(part); console.dir(step);\\n part.ID = defaultID;\\n if (!self.mainModel) {\\n self.mainModel = defaultID;\\n }\\n }\\n // if (!skipPart) {\\n self.setPartType(part);\\n loadedParts.push(part.ID);\\n // }\\n // skipPart = false;\\n self.onProgress(part.ID);\\n\\n part = new LDRPartType();\\n inHeader = true;\\n part.ID = fileName;\\n }\\n part.name = originalFileName;\\n modelDescription = null;\\n }\",\n \"function addSelectedFields(row){\\n\\tvar table = $(\\\"selectedFields\\\");\\n\\tvar tBody = table.tBodies[0];\\n\\tvar new_tr = createRowForSelectedField(row);\\n\\t\\n\\ttBody.appendChild(new_tr);\\n\\t// $('td_' + table_name + '.' + field_name).style.display = status;\\n\\ttable.name = tBody.rows.length; \\n}\",\n \"function secounderyTableRowClick(event) {\\n var F = createOrOpenFile(\\\"staticData.json\\\");\\n var currentRow = $(this);\\n /** in case the user wanted to remove row from Table */\\n if (event.altKey && event.ctrlKey) {\\n var F = createOrOpenFile(\\\"staticData.json\\\");\\n var sheetName = $($(currentRow).closest(\\\"table\\\").get(0)).attr(\\\"id\\\");\\n var rowID = $(currentRow).attr(\\\"id\\\");\\n F[sheetName][$(currentRow).attr(\\\"id\\\")];\\n\\n // check if this row has file attached.\\n // then remove the file\\n F[sheetName][rowID][\\\"#file\\\"] !== undefined ?\\n // remove the binded file \\n FS.unlink(PATH.join(__dirname, \\\"..\\\", \\\"storage\\\", rowID + \\\".\\\" + F[sheetName][rowID][\\\"#file\\\"]), (err) => {\\n if (err) alert(\\\"ERROR : \\\" + err);\\n }) :\\n \\\"\\\";\\n\\n delete F[sheetName][rowID];\\n writeNewDataToFile(\\\"staticData.json\\\", F);\\n // i have to remove this object from file\\n $(currentRow).transition({\\n animation: 'horizontal flip',\\n onComplete: () => {\\n $(currentRow).remove();\\n $(`#uploadeFileHiddenBtn`).change();\\n }\\n });\\n /** to check if the current sheet have any more rows */\\n if (Object.keys(F[sheetName]).length === 0) {\\n delete F[sheetName];\\n writeNewDataToFile(\\\"staticData.json\\\", F);\\n $($(currentRow).closest(\\\"table\\\").get(0)).transition({\\n animation: 'horizontal flip',\\n onComplete: () => {\\n $($(currentRow).closest(\\\"table\\\").get(0)).remove();\\n $(`#uploadeFileHiddenBtn`).change();\\n }\\n })\\n }\\n $(`#newDataToRows`).html(\\\"\\\");\\n }\\n /** in case user does not press both alt keys */\\n else {\\n /** each every cell */\\n var rowID = currentRow.attr(\\\"id\\\")\\n var sheetName = currentRow.attr(\\\"sheetname\\\");\\n var rowData = F[sheetName][rowID];\\n var previewDataContainer = $(`#newDataToRows`);\\n SELECTEDROW = rowData;\\n var paragraphContainer = $(`
`);\\n var leftDays = currentRow.find(\\\"td[hcell='IMP']\\\");\\n /** each row data to post it into segment */\\n var bgColor = \\\"background-color : \\\" + leftDays.css(\\\"background-color\\\") + \\\" ;\\\";\\n /**\\n * \\n */\\n paragraphContainer\\n .append($(`

${leftDays.text()}

`));\\n /**\\n * \\n */\\n var list = $(`
`);\\n /** each row cells to print them as a list */\\n $.eachSync(rowData, (i, cell) => {\\n if (i.charAt(0) === \\\"#\\\") return false;\\n var listItem = $(``);\\n var itemIcon = $(``);\\n var listContent = $(`
`);\\n var listHeader = $(`
${i}
`);\\n var listDisc = $(`
----> ${cell}
`);\\n /** to add mark for every spical list item */\\n switch (i) {\\n case \\\"Telefonnummer\\\":\\n listItem.click(listActions.sendSMS);\\n break;\\n case \\\"Anschrift\\\":\\n listItem.click(listActions.sendLetter);\\n break;\\n case \\\"Kundennummer\\\":\\n listItem.click(listActions.costumerNumber);\\n break;\\n default:\\n listItem.removeClass(\\\"spical\\\");\\n break;\\n }\\n\\n listContent.html([listHeader, listDisc]);\\n listItem.html([itemIcon, listContent]);\\n list.append(listItem);\\n }, (rowData) => {\\n paragraphContainer.append(list);\\n /** append the accessoires of the row data */\\n previewDataContainer.html([\\n paragraphContainer,\\n ]);\\n $(`.spical`).transition('horizontal flip in')\\n });\\n }\\n}\",\n \"function listAdd(obj) {\\r\\n\\t\\tgetPath().contents[obj.file] = obj;\\r\\n\\t\\t//\\r\\n\\t\\tvar bFolder = obj.mime==\\\"folder\\\";\\r\\n\\t\\tvar bUFolder = obj.mime==\\\"folderup\\\";\\r\\n\\t\\tvar sMime = bFolder||bUFolder?oSettings.lang.folder:obj.mime;\\r\\n\\t\\tvar sTr = \\\"\\\";\\r\\n//\\t\\tsTr += \\\"\\\"+(obj.file.length>20?obj.file.substr(0,15)+\\\"(...)\\\":obj.file)+\\\"\\\";\\r\\n\\t\\tsTr += \\\"\\\"+obj.file+\\\"\\\";\\r\\n\\t\\tsTr += \\\"\\\"+sMime+\\\"\\\";\\r\\n\\t\\tsTr += \\\"\\\"+obj.size+\\\"\\\";\\r\\n\\t\\tsTr += \\\"\\\"+obj.date.split(\\\" \\\")[0]+\\\"\\\";\\r\\n\\t\\tvar bVImg = (obj.width*obj.height)>0;\\r\\n\\t\\tsTr += (bHasImgs?(\\\"\\\"+(bVImg?(obj.width+\\\"x\\\"+obj.height+\\\"px\\\"):\\\"\\\")+\\\"\\\"):\\\"\\\");\\r\\n\\t\\tsTr += \\\"\\\";\\r\\n\\t\\tif (!(bFolder||bUFolder)) sTr += \\\"\\t&nbsp;\\\"+oSettings.lang.view+\\\"\\\";\\r\\n\\t\\tif (!bUFolder) sTr += \\\"\\t&nbsp;\\\"+oSettings.lang.del+\\\"\\\";\\r\\n\\t\\tsTr += \\\"\\\";\\r\\n\\t\\tsTr += \\\"\\\";\\r\\n\\t\\t// \\r\\n\\t\\tvar mTr = $(sTr).prependTo(mTbB);\\r\\n\\t\\t//\\r\\n//\\t\\tmTr.find(\\\"td\\\").wrapInner(\\\"
\\\");\\r\\n//\\t\\t$(\\\"#sfbrowser thead>tr\\\").remove();\\r\\n\\t\\t//\\r\\n\\t\\tobj.tr = mTr;\\r\\n\\t\\tmTr.find(\\\"a.filedelete\\\").click(deleteFile);\\r\\n\\t\\tmTr.find(\\\"a.preview\\\").click(showFile);\\r\\n\\t\\t//mTr.find(\\\"td:last\\\").css({textAlign:\\\"right\\\"}); // IE fix\\r\\n\\t\\tmTr.folder = bFolder||bUFolder;\\r\\n\\t\\tmTr.mouseover( function() {\\r\\n\\t\\t\\tmTr.addClass(\\\"over\\\");\\r\\n\\t\\t}).mouseout( function() {\\r\\n\\t\\t\\tmTr.removeClass(\\\"over\\\");\\r\\n\\t\\t}).mousedown( function(e) {\\r\\n\\t\\t\\tmTr.mouseup( clickTr );\\r\\n\\t\\t}).dblclick( function(e) {\\r\\n\\t\\t\\tchooseFile($(this));\\r\\n\\t\\t})\\r\\n\\t\\tmTr[0].oncontextmenu = function() {\\r\\n\\t\\t\\treturn false;\\r\\n\\t\\t};\\r\\n\\t\\t// plugin\\r\\n\\t\\t$.each( oSettings.plugins, function(i,sPlugin) {\\r\\n\\t\\t\\tif ($.sfbrowser[sPlugin].listAdd) $.sfbrowser[sPlugin].listAdd(obj);\\r\\n\\t\\t});\\r\\n\\t\\treturn mTr;\\r\\n\\t}\",\n \"function _addRow() {\\n store.dispatch(addRow());\\n}\",\n \"onModelEvent(event, data) {\\n var table = $('#rent').DataTable();\\n table.rows().remove();\\n table.rows.add(data).draw();\\n }\",\n \"function installAppendClickHandler() {\\n $('#selectfile-append').on('click', function() {\\n logConsoleMessage(`Import Append project button clicked`);\\n $('#import-project-dialog').modal('hide');\\n appendProjectCode();\\n\\n // Set the status message in the modal dialog\\n // This only happens after the import project dialog has fired\\n // if (importProjectDialog.isProjectFileValid === true) {\\n // $('#selectfile-verify-valid').css('display', 'block');\\n // document.getElementById('selectfile-replace').disabled = false;\\n // document.getElementById('selectfile-append').disabled = false;\\n // // uploadedXML = xmlString;\\n // } else {\\n // $('#selectfile-verify-notvalid').css('display', 'block');\\n // document.getElementById('selectfile-replace').disabled = true;\\n // document.getElementById('selectfile-append').disabled = true;\\n // }\\n });\\n}\",\n \"function getInput(e) {\\n //e.stopPropagation(); // don't stop propagation since materialize is updating wrapped field\\n\\n // display the path to the folder or image(s) just selected\\n var f = e.target.files;\\n var path = getPath(f);\\n document.getElementById(\\\"data\\\").innerHTML = \\\"Input|Output folder >> \\\" + path;\\n\\n // store which file picker button to use when building the CSV\\n document.getElementById(\\\"fid\\\").innerHTML = e.target.id;\\n\\n // blank out the filelist and value from the other file picker button\\n // and text display field\\n var other = (e.target.id === \\\"images\\\") ? \\\"folder\\\" : \\\"images\\\";\\n other = document.getElementById(other);\\n other.files = null;\\n other.value = \\\"\\\";\\n other.parentElement.parentElement.querySelector(\\\".file-path\\\").value = \\\"\\\";\\n\\n // also erase output file messages from previous runs\\n document.getElementById(\\\"csvFile\\\").innerHTML = \\\"\\\";\\n document.getElementById(\\\"logFile\\\").innerHTML = \\\"\\\";\\n\\n console.log(f);\\n\\n // enable Create CSV button\\n if (f.length > 0) {\\n enableButton(\\\"submit\\\", true);\\n }\\n }\",\n \"function createFileObjects(results) {\\n\\n //still need to figure out how to clear the table\\n\\n const fileObjectArray = [];\\n\\n const table = document.createElement(\\\"table\\\");\\n\\n table.classList.add(\\\"table\\\", \\\"table-sm\\\", \\\"table-hover\\\");\\n\\n table.setAttribute(\\\"id\\\", \\\"table_list\\\")\\n\\n preview.appendChild(table);\\n\\n const thead = document.createElement(\\\"thead\\\");\\n\\n table.appendChild(thead);\\n\\n const tr = document.createElement(\\\"tr\\\");\\n\\n thead.appendChild(tr);\\n\\n let th_txt = [\\\"File Name\\\", \\\"Document Symbol\\\", \\\"Language(s)\\\", \\\"Action\\\", \\\"Link\\\"];\\n\\n for (let t in th_txt) {\\n const th = document.createElement(\\\"th\\\");\\n th.textContent = th_txt[t];\\n tr.appendChild(th);\\n }\\n\\n for (const file of results) {\\n fileObjectArray.push(new FileContent(file._id, file.filename, file.docsymbol, file.languages, file.uri));\\n }\\n\\n fileObjectArray.forEach((element) => {\\n const row = document.createElement(\\\"tr\\\");\\n\\n //column #1 - name of each file\\n const col_1 = document.createElement(\\\"td\\\");\\n col_1.textContent = element.name;\\n\\n //column #2 - document symbol\\n const col_2 = document.createElement(\\\"td\\\");\\n col_2.textContent = element.docSymbol;\\n col_2.setAttribute(\\\"contenteditable\\\", true); \\n col_2.addEventListener(\\\"blur\\\", function(e) {\\n element.updateSymbol(this.textContent);\\n });\\n\\n //column #3 - language\\n const col_3 = document.createElement(\\\"td\\\");\\n const lang_div = document.createElement(\\\"div\\\");\\n //English\\n const span_e = languagePill(element, \\\"EN\\\", \\\"outlined-primary\\\", \\\"bg-primary\\\");\\n lang_div.appendChild(span_e);\\n\\n //French\\n const span_f = languagePill(element, \\\"FR\\\", \\\"outlined-secondary\\\", \\\"bg-secondary\\\");\\n lang_div.appendChild(span_f);\\n\\n //Spanish\\n const span_s = languagePill(element, \\\"ES\\\", \\\"outlined-success\\\", \\\"bg-success\\\");\\n lang_div.appendChild(span_s);\\n\\n //Arabic\\n const span_a = languagePill(element, \\\"AR\\\", \\\"outlined-warning\\\", \\\"bg-warning\\\");\\n lang_div.appendChild(span_a);\\n\\n //Chinese\\n const span_c = languagePill(element, \\\"ZH\\\", \\\"outlined-danger\\\", \\\"bg-danger\\\");\\n lang_div.appendChild(span_c);\\n\\n //Russian\\n const span_r = languagePill(element, \\\"RU\\\", \\\"outlined-dark\\\", \\\"bg-dark\\\");\\n lang_div.appendChild(span_r);\\n\\n //German\\n const span_g = languagePill(element, \\\"DE\\\", \\\"outlined-info\\\", \\\"bg-info\\\");\\n lang_div.appendChild(span_g);\\n\\n col_3.appendChild(lang_div);\\n\\n for (let l in element.language) {\\n switch (element.language[l]) {\\n case \\\"EN\\\":\\n span_e.classList.replace(\\\"outlined-primary\\\", \\\"bg-primary\\\");\\n break;\\n case \\\"FR\\\":\\n span_f.classList.replace(\\\"outlined-secondary\\\", \\\"bg-secondary\\\");\\n break;\\n case \\\"ES\\\":\\n span_s.classList.replace(\\\"outlined-success\\\", \\\"bg-success\\\");\\n break;\\n case \\\"AR\\\":\\n span_a.classList.replace(\\\"outlined-warning\\\", \\\"bg-warning\\\");\\n break;\\n case \\\"ZH\\\":\\n span_c.classList.replace(\\\"outlined-danger\\\", \\\"bg-danger\\\");\\n break;\\n case \\\"RU\\\":\\n span_r.classList.replace(\\\"outlined-dark\\\", \\\"bg-dark\\\");\\n break;\\n case \\\"DE\\\":\\n span_g.classList.replace(\\\"outlined-info\\\", \\\"bg-info\\\");\\n break;\\n default:\\n break;\\n }\\n }\\n\\n\\n\\n //column #4 - Save row\\n const col_4 = document.createElement(\\\"td\\\");\\n let save_btn = document.createElement(\\\"button\\\");\\n save_btn.classList.add(\\\"btn\\\", \\\"btn-outline-secondary\\\");\\n save_btn.setAttribute(\\\"id\\\", element.id);\\n\\n let icon = document.createElement(\\\"i\\\")\\n icon.classList.add(\\\"bi\\\", \\\"bi-save\\\")\\n\\n save_btn.append(icon)\\n save_btn.innerHTML = \\\" Save \\\";\\n save_btn.onclick = function() {\\n\\n const record = new FormData();\\n record.append('record_id', element.id);\\n record.append('docsymbol', element.docSymbol);\\n\\n let langs = element.language;\\n langs.forEach(l => record.append('lang', l));\\n\\n let updateURL = document.getElementById(\\\"url\\\").value\\n let myUpdateUrl = updateURL.replace(\\\"/results\\\", \\\"\\\")\\n\\n const res = fetch(myUpdateUrl, {\\n method: 'post',\\n body: record\\n });\\n\\n };\\n\\n col_4.append(save_btn)\\n\\n //column #5 - link to see the file\\n const col_5 = document.createElement(\\\"td\\\");\\n const docLink = document.createElement(\\\"a\\\")\\n docLink.classList.add(\\\"bi\\\", \\\"bi-link-45deg\\\");\\n docLink.style.color = \\\"green\\\"\\n docLink.href = 'https://' + element.uri\\n docLink.setAttribute('target', '_blank');\\n\\n //add the link only if the data is provided\\n if (element.uri) col_5.append(docLink)\\n\\n row.appendChild(col_1);\\n row.appendChild(col_2);\\n row.appendChild(col_3);\\n row.appendChild(col_4);\\n row.appendChild(col_5);\\n\\n table.appendChild(row);\\n\\n });\\n\\n return table;\\n}\",\n \"function newModel() {\\r\\n\\tclearModel();\\r\\n}\",\n \"function addRow() {\\n}\",\n \"function addFile(fileInfo)\\n{\\n\\tvar $FileObj = $(\\\"#FileTemplate\\\").clone();\\n\\n\\t$FileObj.attr(\\\"id\\\", \\\"file-\\\" + globalFileCount);\\n\\n\\tglobalFileCount++;\\n\\n\\tif(fileInfo.name)\\n\\t\\t$FileObj.find(\\\".file-name\\\").html(fileInfo.name);\\n\\n\\tif(fileInfo.size)\\n\\t\\t$FileObj.find(\\\".file-size\\\").html(fileInfo.size);\\n\\n\\tif(fileInfo.chunks)\\n\\t\\t$FileObj.find(\\\".file-chunk\\\").html(fileInfo.chunks);\\n\\n\\t$(\\\".file-list-container\\\").append($FileObj);\\n}\",\n \"function addFile(event) {\\n const list = document.getElementById('info-files');\\n\\n const item = document.createElement('li');\\n item.classList.add('img_name');\\n item.innerHTML = event.match(/[\\\\/\\\\\\\\]([\\\\w\\\\d\\\\s\\\\.\\\\-\\\\(\\\\)]+)$/)[1];\\n\\n var buttons = document.createElement('span');\\n buttons.classList.add('buttons');\\n\\n var remove = document.createElement('button');\\n remove.classList.add('remove');\\n remove.innerHTML = removeButton;\\n\\n remove.addEventListener('click', removeItem);\\n\\n buttons.appendChild(remove);\\n item.appendChild(buttons);\\n\\n list.insertBefore(item, list.childNodes[0]);\\n}\",\n \"function addNewRow(rowNr) {\\n var row = '';\\n row += '*';\\n row += '';\\n row += '';\\n row += '';\\n row += '';\\n row += '';\\n row += 'X';\\n row += '';\\n\\n return row;\\n }\",\n \"function newTimeRow(e) {\\n e.preventDefault();\\n $('#TimeTrackForm tbody').append('&nbsp;');\\n $.ajax({\\n type: \\\"POST\\\",\\n url: OSTime.webroot + OSTime.controller + \\\"newTimeRow\\\",\\n dataType: \\\"JSON\\\",\\n success: function (data) {\\n $('#tmp_row').remove();\\n $('#TimeTrackForm tbody').append(data.html);\\n OSTime.projects = data.projects;\\n OSTime.taskGroups = data.taskGroups;\\n updateTableClassing();\\n updateTableSortability();\\n bindHandlers('table.sortable tr.last');\\n initToggles();\\n },\\n error: function (data) {\\n handleError(data);\\n $('#tmp_row').remove();\\n alert('Error adding the time row.')\\n }\\n });\\n}\",\n \"function generateLineItem (id, name, hours, projection){\\n\\t\\t$(\\\"#newRow\\\").append(\\\"

\\\" + name + \\\"

\\\" + hours + \\\"

\\\" + projection + \\\"

\\\"); \\n\\t\\tconsole.log(\\\"#newRow\\\");\\n\\t\\t\\n\\t\\t\\n\\t\\t$( \\\"#\\\" + id + \\\"_adjust button\\\" ).click(function(evt) {\\n\\t\\tvar id = Number($(this).data('button')); \\n\\t\\tvar newValue = Number($(\\\"#part-item-input-\\\" + id).val());\\n\\t\\t\\tif(newValue == \\\"\\\"){\\n alert(\\\"You need to enter a number!\\\");\\n }\\n\\t\\tupdateRecord(newValue, id);\\n\\t\\tupdateOutput();\\n\\t\\tcheckLifeCycle();\\n\\t});\\t\\n\\t\\t$(\\\"#saveChange\\\").click(function() {\\n\\t\\tvar id = $(this).data(\\\"component\\\");\\n\\t\\tvar rename = $(\\\"#modifyModalComponent[placeholder]\\\").val();\\n\\t\\tvar hours = $(\\\"#modifyModalHours[placeholder]\\\").val();\\n\\t\\tvar projection = $(\\\"#modifyModalProjection[placeholder]\\\").val();\\n\\t\\tinsertComponent(id, rename, hours, projection);\\n\\t\\t$(\\\"#modal-id\\\").modal(\\\"hide\\\");\\n\\t\\t});\\n\\t\\t\\n\\t\\t$(\\\"#\\\" + id + \\\"_comp\\\").click(function() {\\n\\t\\tvar id = $(this).data(\\\"component\\\");\\n\\t\\tvar index = model.getComponentIndex(id);\\n\\t\\tconsole.log(id);\\n\\t\\tvar name = model.data.machines[model.selectedMachine].components[index].component;\\n\\t\\tvar hours = model.data.machines[model.selectedMachine].components[index].hours;\\n\\t\\tvar projection = model.data.machines[model.selectedMachine].components[index].projection;\\n\\t\\tdisplayComponentInformationModal(id, name, hours, projection);\\n\\t\\t});\\n\\n\\t\\t$(\\\"#\\\" + id + \\\"_glyph\\\").click(function(){\\n\\t\\tvar id = $(this).data(\\\"component\\\");\\n\\t\\tvar index = model.getComponentIndex(id);\\n\\t\\tkillIt(index);\\n\\t\\tcheckLifeCycle();\\n\\t\\t// delete model.data.machines[model.selectedMachine].components[index].component;\\n\\t\\t// delete model.data.machines[model.selectedMachine].components[index].hours;\\n\\t\\t// delete model.data.machines[model.selectedMachine].components[index].projection;\\n\\t\\t});\\n}\",\n \"addRow(row_data_obj) {\\n\\t\\tthis.current_page_array.push(row_data_obj);\\n\\t\\tif (this.selected_items_array.length > 0) {\\n\\t\\t\\tgetComponentElementById(this,\\\"MultiSelectOptionsButton\\\").show().addClass(\\\"d-inline-flex\\\");\\n\\t\\t} else {\\n\\t\\t\\tgetComponentElementById(this,\\\"MultiSelectOptionsButton\\\").hide().removeClass(\\\"d-inline-flex\\\");\\n\\t\\t}\\n\\t\\tgetComponentElementById(this,\\\"DataTableBody\\\").append(this.getRowHtml(row_data_obj));\\n\\t}\",\n \"function fileAdded(file)\\n {\\n\\t\\t\\t\\n // Prepare the temp file data for media list\\n var uploadingFile = {\\n id : file.uniqueIdentifier,\\n file: file,\\n type: 'uploading'\\n };\\n\\t\\t\\t\\n\\t\\t\\tvar fileReader = new FileReader();\\n fileReader.readAsDataURL(file.file);\\n fileReader.onload = function (event)\\n {\\n vm.user.profilePic= event.target.result;\\n\\t\\t\\t\\t\\t\\t//alert(vm.user.media.url);\\n };\\n\\t\\t\\t\\t\\t\\n // Append it to the media list\\n //vm.user.images.unshift(uploadingFile);\\n }\",\n \"_prepareList () {\\n this._rawFiles.map((file) => {\\n const pretendModel = new Pretender(path.resolve(this._modelsDir, file), this._sequelize)\\n if (!pretendModel.isModel) return\\n this.files.push(pretendModel.toDataJson())\\n })\\n }\",\n \"addRow(row_data_obj) {\\n\\t\\tlet current_item_keys = Object.keys(this.current_page_array);\\n\\t\\tlet must_add_row = true;\\n\\t\\tcurrent_item_keys.forEach(function(key) {\\n\\t\\t\\tif (this.current_page_array[key][\\\"Id\\\"] === row_data_obj[\\\"Id\\\"]) {must_add_row = false;}\\n\\t\\t}.bind(this));\\n\\t\\tif (!must_add_row) {return;}\\n\\t\\tthis.current_page_array.push(row_data_obj);\\n\\n\\t\\tgetComponentElementById(this,\\\"DataList\\\").append(this.getRowHtml(row_data_obj));\\n\\t}\",\n \"function addRow1() {\\n\\n\\t//get the value of the file input\\n\\t//populate the html table\\n\\tvar longName = $('.uploadFile').val(); \\n\\t//this returns the file name from the file input\\n\\t//but it contains a fake path, so we parse out the file name only\\n\\tvar shortName = \\\"\\\";\\n\\t//adding an if statement so that we only add the row if there is a file name\\n\\tif(longName){\\n\\t\\tvar fileArr = longName.split(\\\"\\\\\\\\\\\");\\n\\t\\tif(fileArr && fileArr.length > 0){\\n\\t\\t\\tshortName = fileArr[fileArr.length - 1];\\n\\t\\t}\\n\\t\\telse{\\n\\t\\t\\tshortName = longName;\\n\\t\\t}\\n\\t\\tvar ext = shortName.split('.');\\n\\t\\t\\n\\t\\t//console.log(\\\"The shortname filename is:\\\" + ext);\\n\\t\\t\\n\\t\\t$.ajax({\\n \\t\\ttype: 'get',\\n \\t\\tdataType: 'json',\\n \\t\\turl: '/getallfilenames2?name='+shortName,\\n \\t\\tsuccess: function(data){\\n\\t\\t\\tconsole.log('successfully called filenames2');\\n\\n\\t\\t\\tvar string = JSON.stringify(data);\\n\\t\\t\\tvar objCal = JSON.parse(string);\\n\\n\\t\\t\\tvar cal = objCal.calNames;\\n\\n\\t\\t\\tconsole.log('shortName: ' + shortName);\\n\\t var rowNum = $('#tableBody1 > tr').length + 1;\\n \\t var url = \\\"/uploads/\\\";\\n \\tif (ext[1] === 'ics'){\\n \\t$('.statusPanel').append('File added is of .ics form, return OK
');\\n \\t$('#tableBody1').append(''\\n \\t+ '' + shortName + ''\\n \\t+ ''+cal.version +''\\n \\t+ ''+cal.prodID +''\\n \\t+ ''+cal.numEvents +''\\n \\t+ ''+cal.numProps + ''\\n \\t);\\n \\t}\\n \\telse{\\n \\tvar noFiles = 'Invalid File';\\n \\t$('.statusPanel').append('File added is not of.ics form, return INV_FILE
');\\n \\t$('#tableBody1').append(''\\n \\t+ ''\\n \\t+ ''\\n \\t+ ''+ noFiles +''\\n \\t+ ''\\n \\t+ ''\\n \\t);\\n \\treturn;\\n \\t}\\n\\n\\t\\t\\t}\\n\\t\\t});\\n\\n\\n\\t}\\n\\t\\n}\",\n \"function handleNewClick() {\\n const newDoc = stubNewDocument()\\n addUpdate(newDoc)\\n appendToExtendedData([newDoc])\\n }\",\n \"function newRec(rec, body, name, db, cb) {\\n if(!body) body = JSON.stringify(rec) + \\\"\\\\n\\\"\\n fs.appendFile(path.join(db.dbfolder, name), body, err => {\\n if(err) return cb(err)\\n if(db.data[name]) db.data[name].push(rec)\\n else db.data[name] = [rec]\\n cb()\\n })\\n}\",\n \"function addModel(model)\\n{\\n\\tthis.models.push(model);\\n}\",\n \"function addMoreProducts(){\\n \\tindex++;\\n \\t$(\\\"#formtable\\\").append('
')\\n \\n }\",\n \"function addRow(){\\r\\n $('#pixel_canvas').append('');\\r\\n var newRow=$('#pixel_canvas').children().last();\\r\\n for(var i=0;i');\\r\\n }\\r\\n row++;\\r\\n }\",\n \"async function addRow(form, sh) {\\n setTableChanged();\\n var array = [];\\n for(var i= 1; i element\\r\\n\\t\\tvar new_attachment = document.createElement('input');\\r\\n\\t\\t\\r\\n\\t\\tif (document.getElementById(fileUploads[index]) != null)\\r\\n\\t\\t new_attachment = document.getElementById(fileUploads[index]);\\r\\n\\t\\t\\r\\n\\t\\tnew_attachment.style.display = \\\"\\\";\\r\\n\\t\\t\\r\\n\\t\\t//give element an id\\r\\n\\t\\tnew_attachment.setAttribute('id', fileUploads[index]);\\r\\n\\t\\tnew_attachment.setAttribute('name', fileUploadNames[index]);\\r\\n\\t\\t//set element type\\r\\n\\t\\tif (new_attachment.type != 'file') {\\r\\n\\t\\t\\tnew_attachment.setAttribute('type', 'file');\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\t//set element size\\r\\n\\t new_attachment.setAttribute('size', '25');\\r\\n\\t\\r\\n\\t\\t//append newly created element to tree\\r\\n\\t\\tdocument.getElementById('attachments_content').appendChild(new_attachment);\\r\\n\\r\\n\\t\\t//create new element for text\\r\\n\\t\\tvar new_text = document.createElement('input');\\r\\n\\t\\t\\r\\n\\t\\tif (document.getElementById(fileDescriptions[index]) != null)\\r\\n\\t\\t new_text = document.getElementById(fileDescriptions[index]);\\r\\n\\t\\t\\r\\n\\t\\tnew_text.style.display = \\\"\\\";\\r\\n\\t\\t\\r\\n\\t\\t//give element an id\\r\\n\\t\\tnew_text.setAttribute('id', fileDescriptions[index]);\\r\\n\\t\\tnew_text.setAttribute('name', fileDescriptionsText[index]);\\r\\n\\t\\tnew_text.setAttribute('value', 'type file description');\\r\\n\\t\\tif (new_text.type != 'text') {\\r\\n\\t\\t\\tnew_text.setAttribute('type', 'text');\\r\\n\\t\\t}\\r\\n\\t new_text.setAttribute('size', '20');\\r\\n\\t new_text.setAttribute('style', 'margin-left:10px');\\r\\n \\r\\n $addHandler(new_text, 'focus', OnGetFocusForFileDescription);\\r\\n \\r\\n\\t\\t//append newly created element to tree\\r\\n\\t\\tdocument.getElementById('attachments_content').appendChild(new_text);\\r\\n \\r\\n\\t\\t//create new element\\r\\n\\t\\tnew_text = document.createElement('span');\\r\\n\\t\\t//give element an id\\r\\n\\t\\tnew_text.setAttribute('id','child_attachment_text_' + index);\\r\\n\\t\\t//set element HTML to produce 'remove' text link\\r\\n\\t\\tnew_text.innerHTML = '&nbsp;
remove
';\\r\\n\\t\\t//append newly created element to tree\\r\\n\\t\\t\\r\\n\\t\\t//increase the form count\\r\\n\\t\\tattachments_count ++;\\r\\n\\r\\n\\t\\tbusyIndexes.push(index);\\r\\n \\r\\n document.getElementById('attachments_content').appendChild(new_text);\\r\\n document.getElementById('attachments_more').innerHTML = 'Attach another file';\\r\\n \\r\\n if (max_attachments_count == attachments_count)\\r\\n {\\r\\n document.getElementById('maximumExceeded').innerHTML = \\\"The attachments count is limited to \\\" + max_attachments_count;\\r\\n document.getElementById('attachments_more').style.display = 'none';\\r\\n }\\r\\n InsureSubmitButton();\\r\\n\\t}\",\n \"function addFile(req, res, next) {\\n var generateResponse = Api_Response(req, res, next);\\n var riskId = req.params.id;\\n var fileData = req.body;\\n Risk.update(\\n {\\n _id: riskId\\n },\\n {\\n $push: {\\n _files: fileData\\n }\\n },\\n function (error) {\\n if (error) {\\n return generateResponse(error);\\n }\\n\\n Risk\\n .findById(riskId)\\n .exec(function (error, risk) {\\n if (error) {\\n return;\\n }\\n\\n var activity = new Activity({\\n action: 'activityFeed.addFileToRisk',\\n project: risk.project,\\n user: req.user._id,\\n risk: risk._id,\\n riskName: risk.name\\n });\\n activity.save(function (error) {});\\n\\n // Send socket.io message.\\n socket.addFileToRisk(risk, fileData, req.user._id);\\n });\\n\\n generateResponse(null);\\n }\\n );\\n}\",\n \"function addRow(record, index, allItems) {\\n\\n // Search for duplicates\\n var foundItem = me.opArtGrid.store.findExact('id_art', record.data.id_art);\\n // if not found\\n if (foundItem == -1) {\\n me.opArtGrid.store.add(record);\\n // Call a sort dynamically\\n me.opArtGrid.store.sort('id_opart', 'DESC');\\n //Remove Record from the source\\n ddSource.grid.store.remove(record);\\n // Recalc new opsumm\\n me.opArtGrid.setOpSumm();\\n\\n }\\n }\",\n \"function addNewRow(button, tableId, type) {\\n const actions = getActions(type);\\n $(button).attr(\\\"disabled\\\", \\\"disabled\\\");\\n let index = $(\\\"#\\\" + tableId + \\\" tbody tr:last-child\\\").index();\\n let row = '' +\\n '' + getNextElementId() + '' +\\n '' +\\n '' + actions + '' +\\n '';\\n $(\\\"#\\\" + tableId).append(row);\\n $(\\\"#\\\" + tableId + \\\" tbody tr\\\").eq(index + 1).find(\\\".add-\\\" + type + \\\", .edit-\\\" + type).toggle();\\n $('[data-toggle=\\\"tooltip\\\"]').tooltip();\\n}\",\n \"function addFile(path) {\\n db.run(\\\"INSERT INTO paths VALUES (null, (?))\\\", path, function (err) {\\n if (err) {\\n console.log(err);\\n return;\\n }\\n console.log(\\\"INSERT: \\\"+this.lastID);\\n });\\n}\",\n \"saveToFile() {\\r\\n saveFile({\\r\\n idParent: this.currentOceanRequest.id,\\r\\n fileType: this.fileType,\\r\\n strFileName: this.fileName\\r\\n })\\r\\n .then(() => {\\r\\n // refreshing the datatable\\r\\n this.getRelatedFiles();\\r\\n })\\r\\n .catch(error => {\\r\\n // Showing errors if any while inserting the files\\r\\n this.dispatchEvent(\\r\\n new ShowToastEvent({\\r\\n title: \\\"Error while uploading File\\\",\\r\\n message: error.message,\\r\\n variant: \\\"error\\\"\\r\\n })\\r\\n );\\r\\n });\\r\\n }\",\n \"function addNewRowEmplyTable(table, objLineNew, numLine, callback) {\\n\\ttry\\t{\\n\\t\\tvar row \\t\\t= \\t$(\\\"#\\\" + objLineNew).html();\\n\\t\\tvar htmlString \\t= \\t''; \\n\\t\\tfor (var i = 0; i < parseInt(numLine); i++) {\\n\\t\\t\\thtmlString += row;\\n\\t\\t}\\n\\t\\t$('.'+ table + ' tbody').append(htmlString);\\n\\t\\t\\n\\t\\tif (typeof callback == 'function') {\\n\\t\\t\\tcallback();\\n\\t\\t}\\n\\t\\tdisableItemCarton();\\n\\t\\t_updateTable('table-carton', true);\\n\\t\\t_setTabIndex();\\n\\t\\t_setTabIndexTable('table-invoice');\\n\\t\\t//set first forcus input in row\\n\\t\\t$('.'+ table + ' tbody tr:last :input:first').focus();\\n\\t} catch (e) {\\n\\t\\talert('addNewRowEmplyTable: ' + e.message);\\n\\t}\\n}\",\n \"function add_row() {\\n var prefix = \\\"order_item\\\" + row_num + \\\"_\\\";\\n var code = `
\\\\\\n
\\\\\\n
\\\\\\n \\\\\\n
\\\\\\n
\\\\\\n \\\\\\n
\\\\\\n
\\\\\\n \\\\\\n
\\\\\\n
\\\\\\n \\\\\\n
\\\\\\n
\\\\\\n \\\\\\n
\\\\\\n
`;\\n $(\\\"#order_items\\\").append(code);\\n row_num += 1;\\n }\",\n \"_generateItemModel() {\\n let content = renders.renderItemModel(this._config);\\n this._writer.writeItemModel(content);\\n }\",\n \"function saveRow(newCursor) {\\n cursor = newCursor;\\n pushRow(row);\\n row = [];\\n nextNewline = input.indexOf(newline, cursor);\\n }\",\n \"addFileToClientFiles(fileId, folderName) {\\n this.set({\\n addFileModal: false\\n });\\n this.save({\\n clientFiles: this.get('clientFiles').concat([{\\n ___class: 'ClientFiles',\\n folderName: folderName,\\n files: {\\n ___class: 'Files',\\n objectId: fileId,\\n }\\n }]),\\n }, {\\n success: (response) => {\\n console.log('file added to clientFiles');\\n store.files.trigger('change');\\n },\\n error: (xhr) => {\\n console.log('error saving clientFile', xhr);\\n }\\n });\\n }\",\n \"addText() {\\n this.addCustom('type', {\\n inputLabel: 'Property value'\\n });\\n const index = this.model.length - 1;\\n const item = this.model[index];\\n item.schema.isFile = false;\\n item.schema.inputType = 'text';\\n /* istanbul ignore else */\\n if (hasFormDataSupport) {\\n item.contentType = '';\\n }\\n this.requestUpdate();\\n }\",\n \"insertSingleRow(obj,formId) {\\n\\n this.getLocalStorageData();\\n this.rowData = this.formData.find((data) => data.formId == formId);\\n this.removeSingleRow(formId);\\n\\n if(this.rowData.data.length !== 0)\\n {\\n this.rowData= this.removeSingleRowData(this.rowData ,obj.label );\\n }\\n\\n this.data = {\\n label: obj.label,\\n inputType: obj.inputType,\\n value: obj.value,\\n };\\n this.rowData.data.push(this.data);\\n this.formData.push(this.rowData);\\n localStorage.setItem(this.storageName, JSON.stringify(this.formData));\\n }\",\n \"function _fnOnRowAdded(data) {\\n properties.fnEndProcessingMode();\\n\\n if (properties.fnOnNewRowPosted(data)) {\\n\\n var oSettings = oTable.fnSettings();\\n var iColumnCount = oSettings.aoColumns.length;\\n var values = new Array();\\n\\n $(\\\"input:text[rel],input:radio[rel][checked],input:hidden[rel],select[rel],textarea[rel],span.datafield[rel]\\\", oAddNewRowForm).each(function () {\\n var rel = $(this).attr(\\\"rel\\\");\\n var sCellValue = \\\"\\\";\\n if (rel >= iColumnCount)\\n properties.fnShowError(\\\"In the add form is placed input element with the name '\\\" + $(this).attr(\\\"name\\\") + \\\"' with the 'rel' attribute that must be less than a column count - \\\" + iColumnCount, \\\"add\\\");\\n else {\\n if (this.nodeName.toLowerCase() == \\\"select\\\" || this.tagName.toLowerCase() == \\\"select\\\")\\n sCellValue = $(\\\"option:selected\\\", this).text();\\n else if (this.nodeName.toLowerCase() == \\\"span\\\" || this.tagName.toLowerCase() == \\\"span\\\")\\n sCellValue = $(this).html();\\n else\\n sCellValue = this.value;\\n\\n sCellValue = sCellValue.replace(properties.sIDToken, data);\\n values[rel] = sCellValue;\\n }\\n });\\n\\n //Add values from the form into the table\\n var rtn = oTable.fnAddData(values);\\n var oTRAdded = oTable.fnGetNodes(rtn);\\n //Apply editable plugin on the cells of the table\\n _fnApplyEditable(oTRAdded);\\n //add id returned by server page as an TR id attribute\\n properties.fnSetRowID($(oTRAdded), data);\\n //Close the dialog\\n oAddNewRowForm.dialog('close');\\n $(oAddNewRowForm)[0].reset();\\n $(\\\".error\\\", $(oAddNewRowForm)).html(\\\"\\\");\\n\\n _fnSetDisplayStart();\\n properties.fnOnAdded(\\\"success\\\");\\n }\\n }\",\n \"_appendAttachment({ id, filename, content }) {\\n const renderedPromise = this._renderedCapability.promise;\\n\\n renderedPromise.then(() => {\\n if (renderedPromise !== this._renderedCapability.promise) {\\n return; // The FileAttachment annotation belongs to a previous document.\\n }\\n let attachments = this._attachments;\\n\\n if (!attachments) {\\n attachments = Object.create(null);\\n } else {\\n for (const name in attachments) {\\n if (id === name) {\\n return; // Ignore the new attachment if it already exists.\\n }\\n }\\n }\\n attachments[id] = {\\n filename,\\n content,\\n };\\n this.render({\\n attachments,\\n keepRenderedCapability: true,\\n });\\n });\\n }\",\n \"function AppendNewRoiToTable(id, roi) {\\n const RowID = \\\"image-\\\" + id + \\\"-roi-\\\" + roi.id;\\n $('#ImageRois-' + id).append(\\\"\\\" +\\n \\\"\\\" + roi.id + \\\"\\\" +\\n \\\"\\\" + roi.ph + \\\"\\\" +\\n \\\"\\\" + roi.temp + \\\"\\\" +\\n \\\"\\\" + roi.o2 + \\\"\\\" +\\n \\\"\\\" + roi.co2 + \\\"\\\" +\\n \\\"\\\");\\n\\n //adds event listener for new row\\n $('.image-roi-row').on(\\\"click\\\", function () {\\n Ready = false;\\n $('.image-roi-row').removeClass(\\\"bg-primary selected\\\");\\n $(this).addClass(\\\"bg-primary selected\\\");\\n const currentTags = $('#tag-input-roi-' + id).tagsinput('items');\\n\\n $('#tag-input-roi-' + id).tagsinput('removeAll');\\n\\n\\n\\n\\n selected = $(this).attr('id').replace(new RegExp(\\\"image-[0-9]+-roi-\\\"), \\\"\\\");\\n SelectedImage = $(this).attr('id').replace(\\\"image-\\\", \\\"\\\").replace(new RegExp(\\\"-roi-[0-9]+\\\"), \\\"\\\");\\n\\n $.getJSON(\\\"http://\\\"+document.location.hostname + \\\":8081/api/roi/tags/get/?roi=\\\" + selected, function (result) {\\n //let remainingTags = $('#tag-input-roi-' + id).tagsinput('items');\\n //checkRemain(remainingTags, id);\\n for (let i in result.tags){\\n $('#tag-input-roi-' + SelectedImage).tagsinput('add', result.tags[i])\\n }\\n });\\n Ready = true;\\n });\\n}\",\n \"function fhArrival_addItem(rowData) {\\n\\t\\n\\tvar rowHtml = \\n\\t\\t\\t\\t\\t'' +\\n\\t\\t\\t\\t\\t\\t'' + rowData.ldv_code_str + '' +\\n\\t\\t\\t\\t\\t\\t'' + rowData.ldv_date_str + '' +\\n\\t\\t\\t\\t\\t\\t'' + rowData.sender + '' +\\n\\t\\t\\t\\t\\t\\t'' + rowData.pallet + '' +\\n\\t\\t\\t\\t\\t\\t'' + rowData.carton + '' +\\n\\t\\t\\t\\t\\t\\t'' + rowData.notes + '' +\\n\\t\\t\\t\\t\\t\\t'' +\\n\\t\\t\\t\\t\\t\\t'' +\\n\\t\\t\\t\\t\\t\\t'' +\\n\\t\\t\\t\\t\\t'';\\n\\t\\t\\t\\tjQuery('#fhArrival_details table tbody').append(rowHtml);\\n\\t\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.64594394","0.62547046","0.6169036","0.5937158","0.5894436","0.58939934","0.58461946","0.5761837","0.5725706","0.56414187","0.5603139","0.5497808","0.54590863","0.54520863","0.5437351","0.5404809","0.54003686","0.5393868","0.5362818","0.5359372","0.5340681","0.53396934","0.5328735","0.5316693","0.5311318","0.5304402","0.528846","0.528846","0.5282117","0.527737","0.52336085","0.5232452","0.5230436","0.522878","0.52223366","0.52145004","0.5213553","0.51915914","0.51798797","0.5179607","0.5174611","0.51703453","0.51555854","0.51409113","0.513503","0.51349574","0.51333255","0.5117564","0.50973916","0.50937784","0.50778157","0.50489426","0.50446385","0.50332475","0.502862","0.5026473","0.50185835","0.50178206","0.50174785","0.50103235","0.50010574","0.4999966","0.49816674","0.49724665","0.4970825","0.49557745","0.49475983","0.49322107","0.49290693","0.49235097","0.49091926","0.49047565","0.4897954","0.48967317","0.48953447","0.48907754","0.48855498","0.48835337","0.48823187","0.48641083","0.48559904","0.48485464","0.48435056","0.48396364","0.48350078","0.48306835","0.48262483","0.48198566","0.48190558","0.4817706","0.4817474","0.48133144","0.4807893","0.48062342","0.48036638","0.48019084","0.48009387","0.47966865","0.47949907","0.47923213"],"string":"[\n \"0.64594394\",\n \"0.62547046\",\n \"0.6169036\",\n \"0.5937158\",\n \"0.5894436\",\n \"0.58939934\",\n \"0.58461946\",\n \"0.5761837\",\n \"0.5725706\",\n \"0.56414187\",\n \"0.5603139\",\n \"0.5497808\",\n \"0.54590863\",\n \"0.54520863\",\n \"0.5437351\",\n \"0.5404809\",\n \"0.54003686\",\n \"0.5393868\",\n \"0.5362818\",\n \"0.5359372\",\n \"0.5340681\",\n \"0.53396934\",\n \"0.5328735\",\n \"0.5316693\",\n \"0.5311318\",\n \"0.5304402\",\n \"0.528846\",\n \"0.528846\",\n \"0.5282117\",\n \"0.527737\",\n \"0.52336085\",\n \"0.5232452\",\n \"0.5230436\",\n \"0.522878\",\n \"0.52223366\",\n \"0.52145004\",\n \"0.5213553\",\n \"0.51915914\",\n \"0.51798797\",\n \"0.5179607\",\n \"0.5174611\",\n \"0.51703453\",\n \"0.51555854\",\n \"0.51409113\",\n \"0.513503\",\n \"0.51349574\",\n \"0.51333255\",\n \"0.5117564\",\n \"0.50973916\",\n \"0.50937784\",\n \"0.50778157\",\n \"0.50489426\",\n \"0.50446385\",\n \"0.50332475\",\n \"0.502862\",\n \"0.5026473\",\n \"0.50185835\",\n \"0.50178206\",\n \"0.50174785\",\n \"0.50103235\",\n \"0.50010574\",\n \"0.4999966\",\n \"0.49816674\",\n \"0.49724665\",\n \"0.4970825\",\n \"0.49557745\",\n \"0.49475983\",\n \"0.49322107\",\n \"0.49290693\",\n \"0.49235097\",\n \"0.49091926\",\n \"0.49047565\",\n \"0.4897954\",\n \"0.48967317\",\n \"0.48953447\",\n \"0.48907754\",\n \"0.48855498\",\n \"0.48835337\",\n \"0.48823187\",\n \"0.48641083\",\n \"0.48559904\",\n \"0.48485464\",\n \"0.48435056\",\n \"0.48396364\",\n \"0.48350078\",\n \"0.48306835\",\n \"0.48262483\",\n \"0.48198566\",\n \"0.48190558\",\n \"0.4817706\",\n \"0.4817474\",\n \"0.48133144\",\n \"0.4807893\",\n \"0.48062342\",\n \"0.48036638\",\n \"0.48019084\",\n \"0.48009387\",\n \"0.47966865\",\n \"0.47949907\",\n \"0.47923213\"\n]"},"document_score":{"kind":"string","value":"0.6369479"},"document_rank":{"kind":"string","value":"1"}}},{"rowIdx":207,"cells":{"query":{"kind":"string","value":"Appends empty text field to the form. This changes `model`."},"document":{"kind":"string","value":"addText() {\n this.addCustom('type', {\n inputLabel: 'Property value'\n });\n const index = this.model.length - 1;\n const item = this.model[index];\n item.schema.isFile = false;\n item.schema.inputType = 'text';\n /* istanbul ignore else */\n if (hasFormDataSupport) {\n item.contentType = '';\n }\n this.requestUpdate();\n }"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function makingInputEmpty(input){\n input.value = \"\";\n}","getItemEmpty() {\n this.elements.form.querySelector('.field-title').value = '';\n this.elements.form.querySelector('.field-price').value = '';\n }","function emptyField(event){\n\t\tvar thisObj = $(this);\n\t\tvar currVal=thisObj.val();\n\t\t\n\t\tif (currVal == thisObj.data(\"defaultValue\")){\n\t\t\tthisObj.val(\"\");\n\t\t}\n\t}","function emptyForm(){\n\t$('input').val('');\n\t$('textarea').val('');\n\t//TODO\n}","clear() {\n this.value = \"\";\n }","function emptyinput(input){\n input.value = '';\n}","function clearFields() {\n document.getElementById(\"text-field\").value = \"\";\n }","function SFTextModel(text) {\n this._text = (text) ? text : '';\n}","clearFields(){\n this.titleInput.value = '';\n this.bodyInput.value = '';\n }","function clearAddFormFields () {\n $('#song-name').val('')\n $('#artist-name').val('')\n }","function render(){\n\t\t$element.find('input').val('')\n\t}","set emptyText(aValue) {\n this._emptyText = aValue;\n\n // Apply the emptyText attribute right now if there are no child items.\n if (!this._itemsByElement.size) {\n this._widget.setAttribute(\"emptyText\", aValue);\n }\n }","function emptyphonemodelform(){\n //praznimo formu za edit modela tj za unos novog modela\n $('#modelname').val('');\n $('#year').val('');\n $('#link').val('');\n $('#smart').val('1');\n $('#ts').val('1');\n $('#showimages1').attr('src', homeurl+'/images/phonesilhouette.png');\n $('#dodatnibtni').html('');//ukklanjamo dodatne btn-e tj btn za Cancel i Obrisi za brisanje modela\n $('#phoneimg').val(null);//ako je uploadovana slika brisemo je\n //formu iz forme za update modela ponovo pretvaramo u formu za dodavanje novog modela\n $('.formazaupdatemodela').addClass('formazanovimodel').removeClass('formazaupdatemodela');\n $('.formamodelpanelheading').html('Dodaj Modele Telefona');\n}","function clean() {\r\n document.form.textview.value = \"\";\r\n}","function clearText(field){\n\n if (field.defaultValue == field.value) field.value = '';\n else if (field.value == '') field.value = field.defaultValue;\n\n}","static clearField(){\n document.querySelector('#title').value = '';\n document.querySelector('#author').value = '';\n document.querySelector('#isbn').value = '';\n }","function emptyField(event){\n\t\tvar thisObj = $(this);\n\t\tvar currVal=thisObj.val();\n\t\tif (currVal == thisObj.data(\"orgVal\")){\n\t\t\tthisObj.val(\"\");\n\t\t\tthisObj.parent().removeClass(\"g_search_default\");\n\t\t}\n\t}","function clearTextField() {\r\n\r\n\t/* Set default to 0 */\r\n\t$(\"#cargo_id\").val(\"0\");\r\n\t$(\"#cargo_driver\").val(null);\r\n\t$(\"#cargo_vehicletype\").val(null);\r\n\t$(\"#truck_plate_number\").val(null);\r\n\t$(\"#cargo_company\").val(null);\r\n\r\n\t/* Clear error validation message */\r\n\t$(\"#error\").empty();\r\n\r\n}","clearInputField() {\n this.inputField.value = '';\n }","clear () {\n this.setValue('');\n }","function form_raz(txt, initial_value) {\n\n if(txt.value == initial_value) txt.value = '';\n \n }","function car_model_clear_and_disable() {\n if(document.getElementById(\"car_make_input\").value === \"\"){\n document.getElementById(\"car_model_input\").value = \"\";\n document.getElementById(\"car_model_input\").disabled = true;\n }\n }","function addTextField(first) {\n var remove = first ? '
' : 'Remove field
';\n var emptyField = '
';\n emptyField = emptyField + remove;\n $(\".input_field form\").append(emptyField);\n}","function emptyBoxes(){\n inputBox.val(\"\")\n }","function clearField() {\n let emptyField = temp.value = '';\n let emptyResult = result.textContent = '';\n }","function emptyFields() {\n $(\"#name\").val(\"\");\n $(\"#profile-input\").val(\"\");\n $(\"#email-input\").val(\"\");\n $(\"#password-input\").val(\"\");\n $(\"#number-input\").val(\"\");\n $(\"#fav-food\").val(\"\");\n $(\"#event-types\").val(\"\");\n $(\"#zipcode\").val(\"\");\n $(\"#radius\").val(\"\");\n }","clearNewTodo() {\n\t\tthis.$newTodo.value = '';\n\t}","function clearInputField() {\n mainInputField.value = \"\";\n}","function clearText(thefield) {\r\n if (thefield.defaultValue==thefield.value) { thefield.value = \"\" }\r\n}","function ClearFields() {\r\n self.model.code = \"\";\r\n self.model.component = \"\";\r\n }","function ClearFields() {\r\n self.model.code = \"\";\r\n self.model.name = \"\";\r\n self.model.address = \"\";\r\n }","function emptyFields() {\n document.getElementById(\"title\").value = null;\n document.getElementById(\"urgency\").value = \"High Urgency\";\n document.getElementById(\"importance\").value = \"High Importance\";\n document.getElementById(\"date\").value = null;\n document.getElementById(\"description\").value = null;\n}","function clearText(theField)\n{\nif (theField.defaultValue == theField.value)\ntheField.value = '';\n}","function clearText(element) {\n element.value = '';\n}","function clearForm() {\n\t\t\t$('#rolForm input[type=\"text\"]').val(\"\");\n\t\t}","function _clear() {\r\n vm.email = \"\";\r\n $scope.addEvaluatorForm.$setPristine();\r\n }","set _textWhenEmpty(aValue) {\n if (this._emptyTextNode) {\n this._emptyTextNode.setAttribute(\"value\", aValue);\n }\n this._emptyTextValue = aValue;\n this._showEmptyText();\n }","_clearForm() {\n // Clears input fields\n itemNameInput.value =\n itemDueDateInput.value =\n itemTimeDueInput.value =\n itemDescriptionInput.value =\n \"\";\n // Makes sure default pri always \"no priority\"\n itemPriorityInput.value = \"no_pri\";\n }","function deblankForm(theForm){\r\n\tfor (var i = 0; i < theForm.elements.length; i++){\r\n\t\tif (theForm.elements[i].type == \"text\") {\r\n\t\t\ttheForm.elements[i].value=trim(theForm.elements[i].value);\r\n\t\t}\r\n\t}\r\n}","function clearForm() {\r\n\t\t\t$('#areaForm input[type=\"text\"]').val(\"\");\r\n\t\t}","function clear() {\n $txt.val(\"\");\n $tbl.children(\"tbody\").find(\"tr\").show();\n }","clearField() {\n document.querySelector('#name').value = '';\n document.querySelector('#email').value = '';\n document.querySelector('#profession').value = '';\n }","function clearForm() {\n var formValue = document.getElementById('new-item');\n\n formValue.value = '';\n}","clearFields(){\n this.description.value = \"\"\n this.amount.value = \"\"\n this.date.value = \"\"\n }","function maybeClearOptText() {\n\t\t/*jshint validthis:true */\n\t\tif ( this.value === frm_admin_js.new_option ) {\n\t\t\tthis.value = '';\n\t\t}\n\t}","function clear() {\n toValue.value = '';\n}","function clearText() {\n var inputText = document.getElementById(\"inputText\");\n inputText.value = null;\n }","function clearTextBox() {\n $('#organization_form')[0].reset();\n $('#btnUpdate').hide();\n $('#btnAdd').show();\n}","function clearTextBox() {\n $('#organization_form')[0].reset();\n $('#btnUpdate').hide();\n $('#btnAdd').show();\n}","function CleandFieldSearch(){\n\t$(\"#txtSearch\").val(\"\");\n}","function hideEmptyfields(el) {\n\tif ( el.text() == '') {\n\t\tel.addClass('empty');\n\t}\n\telse {\n\t\tel.removeClass('empty');\n\t}\n}","function clear(cityInputText){\n cityInputText.value = \"\"; \n }","function clearInputField() {\n document.getElementById(\"chatMessage\").value = \"\";\n}","function emptyUpload() {\n th.empty()\n th.get(0).value = ''\n }","function clearField() {\r\n document.getElementById(\"fname\").value = \"\";\r\n}","function maybeAddText() {\n if($(\"#m\").val().trim()=='') {\n $(\"#m\").val('Enter your message here...');\n $(\"#m\").addClass(\"italic\");\n disablepost();\n }\n}","function init() {\n document.querySelector('.todo__field').value = \"\";\n\n}","function handleClear() {\n inputField.current.focus()\n selectionContext.updateSelection({ terms: '' }, true)\n }","clearFields() {\n document.getElementById('title').value = '';\n document.getElementById('author').value = '';\n document.getElementById('isbn').value = '';\n }","function clearText(thefield)\t{\r\n\tif (thefield.defaultValue == thefield.value)\r\n\t\tthefield.value = \"\";\r\n\t}","function clearTextBox() {\n\n $('#txtid').val(\"\");\n\n $('#txtname').val(\"\"),\n $('#txtemail').val(\"\"),\n $('#txtpassword').val(\"\"),\n $('#txtphone').val(\"\"),\n $('#rdorole').val(\"\"),\n $('#rdoactivate').val(\"\"),\n\n $('#btnUpdate').hide();\n $('#btnAdd').show();\n\n}","clearFields() {\r\n document.getElementById('title').value = '',\r\n document.getElementById('author').value = '',\r\n document.getElementById('isbn').value = '';\r\n }","function limpiar() {\n $('#txtSerie').val('');\n $('#txtNombre').val('');\n $('#txtSemestre').val('');\n $('#txtCarrera').val('');\n $('#txtHPracticas').val('');\n}","function emptyInput(){\n console.log('clear has been clicked');\n $('.inputOutput').val('');\n} // end emptyInput","function clearInput() {\n $(\".text\").val('').focusout();\n }","function clearForm() {\n $scope.Address = '';\n $scope.CityTown = '';\n $scope.WName = '';\n\n }","_clearInputs() {\n this.elements.peopleInput.value = \"\";\n this.elements.descriptionInput.value = \"\";\n this.elements.titleInput.value = \"\";\n return this;\n }","function cleanData() {\r\n messenge.value = ''\r\n}","function handleClearInput(e) {\n e.preventDefault();\n this.value = \"\";\n this.setAttribute('value', \"\");\n this.setAttribute('data-value', \"\");\n}","clearFields() {\n document.getElementById('title').value='';\n document.getElementById('author').value='';\n document.getElementById('isbn').value='';\n }","function clearTextBox() {\n\n /* Mengganti Judul Utility Modal */\n $(\"#modalTitle\").text(\"Formulir Penambahan Data Master BatchFile\");\n\n /* Mengosongkan Field Id */\n $(\"#id\").val(\"\");\n\n /* Mengosongkan Field Nama */\n $(\"#name\").val(\"\");\n\n /* Menghilangkan Tombol Update */\n $(\"#btnUpdate\").hide();\n\n /* Menghilangkan Tombol Delete */\n $(\"#btnDelete\").hide();\n\n /* Menampilkan Tombol Add */\n $(\"#btnAdd\").show();\n\n /* Mengaktifkan Semua Form Field Yang Ada Pada Utility Modal */\n enabledFormAllField();\n\n}","function removeDefaultInputText(element) {\n\tvar el = jQuery(element),\n\t\toriginalText = el.val();\n\n\tel.val(\"\");\n\n\tel.on(\"blur\", function() {\n\t\tel.val(originalText);\n\t})\n}","function qClearScreen() {\n document.getElementById(\"qIdText\").disabled = true;\n $(\"#qIdText\").val('');\n $(\"#qValueText\").val('');\n $(\"#qTypeText\").val('null');\n $(\"#qTypeText\").trigger('change');\n $(\"#qOptText\").val('null');\n $(\"#qOptText\").trigger('change');\n $(\"#qUpdate\").hide();\n $(\"#qSave\").show();\n}","addNewline(){\n // re-render formfield\n // TODO : to fix\n this.formFieldManage.applyConfigurationToformlyModel(this.configuration, this.wfFormFields, this.dataModel);\n this.wfFormFieldsOnlyNeededProperties = angular.copy(this.wfFormFields);\n }","function clearTextValue(){\n\t\t$(\"#\" + g.k).val(\"\");\n\t\t$(\"#clearbtn\").hide();\n\t}","static clearFields() {\n document.querySelector('#title').value = '';\n document.querySelector('#author').value = '';\n document.querySelector('#isbn').value = '';\n }","function clearInput(){\n addInput.value = \"\"; \n}","function clearSearchText () {\n // Set the loading to true so we don't see flashes of content.\n // The flashing will only occur when an async request is running.\n // So the loading process will stop when the results had been retrieved.\n setLoading(true);\n\n $scope.searchText = '';\n\n // Normally, triggering the change / input event is unnecessary, because the browser detects it properly.\n // But some browsers are not detecting it properly, which means that we have to trigger the event.\n // Using the `input` is not working properly, because for example IE11 is not supporting the `input` event.\n // The `change` event is a good alternative and is supported by all supported browsers.\n var eventObj = document.createEvent('CustomEvent');\n eventObj.initCustomEvent('change', true, true, { value: '' });\n elements.input.dispatchEvent(eventObj);\n\n // For some reason, firing the above event resets the value of $scope.searchText if\n // $scope.searchText has a space character at the end, so we blank it one more time and then\n // focus.\n elements.input.blur();\n $scope.searchText = '';\n elements.input.focus();\n }","function clearSearchText () {\n // Set the loading to true so we don't see flashes of content.\n // The flashing will only occur when an async request is running.\n // So the loading process will stop when the results had been retrieved.\n setLoading(true);\n\n $scope.searchText = '';\n\n // Normally, triggering the change / input event is unnecessary, because the browser detects it properly.\n // But some browsers are not detecting it properly, which means that we have to trigger the event.\n // Using the `input` is not working properly, because for example IE11 is not supporting the `input` event.\n // The `change` event is a good alternative and is supported by all supported browsers.\n var eventObj = document.createEvent('CustomEvent');\n eventObj.initCustomEvent('change', true, true, { value: '' });\n elements.input.dispatchEvent(eventObj);\n\n // For some reason, firing the above event resets the value of $scope.searchText if\n // $scope.searchText has a space character at the end, so we blank it one more time and then\n // focus.\n elements.input.blur();\n $scope.searchText = '';\n elements.input.focus();\n }","function clearField(x) {\n\t x.value = '';\n\t}","function addAndClearInput() {\n const newItem = inputBox.value;\n if (newItem) {\n addLocalTodo(newItem);\n addItemToDo(newItem);\n inputBox.value = \"\";\n }\n }","function clearText() {\n let textBox = document.getElementById('textbox');\n textBox.value = \"\"\n }","handleSubmit(event) {\n event.preventDefault();\n\n const text = ReactDOM.findDOMNode(this.refs.textInput).value.trim();\n\n Meteor.call('mensajes.insert', text, this.props.location.state.idMensajes);\n\n ReactDOM.findDOMNode(this.refs.textInput).value = '';\n }","function clearInput()\n {\n input.val('');\n }","function clearForm($scope,selectedCommand){\n\tvar keepGoing = true;\n\tangular.forEach($scope.commandListLocal, function(localCommand){\n\t\t//checks if commands have dynamic fields\n\t\tif(localCommand.name == selectedCommand && keepGoing) {\n\t\t\tif(localCommand.args){ \n\t\t\t\tangular.forEach(localCommand.args, function(commandField) {\n\t\t\t\t\tcommandField.value = \"\";\n\t\t\t\t});\n\t\t\t}//no dynamic fields\n\t\t\telse{ \n\t\t\t\tlocalCommand.message= \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t});\n}","makeEmpty() {\n this.setValue(0);\n }","function addAItem() {\n let inputValue = input.value\n if ((inputValue.length > 0) && (inputValue !== ' '.repeat(inputValue.length))) {\n addItem(inputValue)\n }\n input.value = ''\n}","reset(){\n\t\tif(!this.empty){\n\t\t\t$(this.element).val(\"\");\n\t\t\tthis.hideErrorMessage();\n\t\t\tthis.removeValidity();\n\t\t\tthis.setErrorMessage(this.emptyMassage);\n\t\t\tthis.insertErrorMessage();\n\t\t\tthis.setEmpty(true);\n\t\t}\n\t}","static clearFields(){\n document.getElementById('title').value = '';\n document.getElementById('author').value = '';\n document.getElementById('isbn').value = '';\n }","function clearFields() {\n movie_name.value = '';\n release_date.value = '';\n movie_banner.value = '';\n description.value = '';\n}","function setNullIfBlank(obj) {\r\n if (isBlank(obj.value)) {\r\n obj.value = \"\";\r\n }\r\n }","clearFields(){\n document.querySelector('#title').value = '';\n document.querySelector('#author').value = '';\n document.querySelector('#reference').value = '';\n document.querySelector('#price').value = '';\n }","clearInputFieldValue() {\r\n /** HTMLInputElement : To make the element as HTMLInputElement and provides special properties and methods for manipulating the layout and presentation of input elements */\r\n const inputElement = this.getInputElement();\r\n if (inputElement) {\r\n inputElement.value = '';\r\n this.searchValue = '';\r\n this.showSearchBoxList = !this.showSearchBoxList;\r\n }\r\n }","function clearInput() {\n document.getElementById('inputField').value = \"\";\n }","function clearForm() {\n $('#title').val(\"\");\n $('#singer').val(\"\");\n $('#release_date').val('');\n $('#lyricist').val(\"\");\n $(\"#songid\").val(\"\");\n}","function clearHeadForm(){\n inputHeadEntity.val(\"\");\n inputHeadIdEntity.val(\"\");\n inputHeadTotal.val(\"\");\n}","handleEmptyValue() {\n if (!this.get('value') || this.get('value') === '') {\n this.set('value', 'Empty');\n }\n }","function CleandFieldSearchPContract(){\n\t$('#textSearchContractPeople').val(\"\");\n}","function clear() {\n $('#name').val(\"\");\n $('#email').val(\"\");\n $('#tech').val(\"\");\n $('#userid').val(0);\n $('#btnNewUser').show();\n $('#btnUpdateUser').hide();\n $(\"#email\").removeAttr('disabled');\n}","function clearForm(){\n\t$('#Bio').val('');\n\t$('#Origin').val('');\n\t$('#Hobbies').val('');\n\t$('#DreamJob').val('');\t\n\t$('#CodeHistory').val('');\n\t$('#Occupation').val('');\n\t$('#CurrentMusic').val('');\n\n}"],"string":"[\n \"function makingInputEmpty(input){\\n input.value = \\\"\\\";\\n}\",\n \"getItemEmpty() {\\n this.elements.form.querySelector('.field-title').value = '';\\n this.elements.form.querySelector('.field-price').value = '';\\n }\",\n \"function emptyField(event){\\n\\t\\tvar thisObj = $(this);\\n\\t\\tvar currVal=thisObj.val();\\n\\t\\t\\n\\t\\tif (currVal == thisObj.data(\\\"defaultValue\\\")){\\n\\t\\t\\tthisObj.val(\\\"\\\");\\n\\t\\t}\\n\\t}\",\n \"function emptyForm(){\\n\\t$('input').val('');\\n\\t$('textarea').val('');\\n\\t//TODO\\n}\",\n \"clear() {\\n this.value = \\\"\\\";\\n }\",\n \"function emptyinput(input){\\n input.value = '';\\n}\",\n \"function clearFields() {\\n document.getElementById(\\\"text-field\\\").value = \\\"\\\";\\n }\",\n \"function SFTextModel(text) {\\n this._text = (text) ? text : '';\\n}\",\n \"clearFields(){\\n this.titleInput.value = '';\\n this.bodyInput.value = '';\\n }\",\n \"function clearAddFormFields () {\\n $('#song-name').val('')\\n $('#artist-name').val('')\\n }\",\n \"function render(){\\n\\t\\t$element.find('input').val('')\\n\\t}\",\n \"set emptyText(aValue) {\\n this._emptyText = aValue;\\n\\n // Apply the emptyText attribute right now if there are no child items.\\n if (!this._itemsByElement.size) {\\n this._widget.setAttribute(\\\"emptyText\\\", aValue);\\n }\\n }\",\n \"function emptyphonemodelform(){\\n //praznimo formu za edit modela tj za unos novog modela\\n $('#modelname').val('');\\n $('#year').val('');\\n $('#link').val('');\\n $('#smart').val('1');\\n $('#ts').val('1');\\n $('#showimages1').attr('src', homeurl+'/images/phonesilhouette.png');\\n $('#dodatnibtni').html('');//ukklanjamo dodatne btn-e tj btn za Cancel i Obrisi za brisanje modela\\n $('#phoneimg').val(null);//ako je uploadovana slika brisemo je\\n //formu iz forme za update modela ponovo pretvaramo u formu za dodavanje novog modela\\n $('.formazaupdatemodela').addClass('formazanovimodel').removeClass('formazaupdatemodela');\\n $('.formamodelpanelheading').html('Dodaj Modele Telefona');\\n}\",\n \"function clean() {\\r\\n document.form.textview.value = \\\"\\\";\\r\\n}\",\n \"function clearText(field){\\n\\n if (field.defaultValue == field.value) field.value = '';\\n else if (field.value == '') field.value = field.defaultValue;\\n\\n}\",\n \"static clearField(){\\n document.querySelector('#title').value = '';\\n document.querySelector('#author').value = '';\\n document.querySelector('#isbn').value = '';\\n }\",\n \"function emptyField(event){\\n\\t\\tvar thisObj = $(this);\\n\\t\\tvar currVal=thisObj.val();\\n\\t\\tif (currVal == thisObj.data(\\\"orgVal\\\")){\\n\\t\\t\\tthisObj.val(\\\"\\\");\\n\\t\\t\\tthisObj.parent().removeClass(\\\"g_search_default\\\");\\n\\t\\t}\\n\\t}\",\n \"function clearTextField() {\\r\\n\\r\\n\\t/* Set default to 0 */\\r\\n\\t$(\\\"#cargo_id\\\").val(\\\"0\\\");\\r\\n\\t$(\\\"#cargo_driver\\\").val(null);\\r\\n\\t$(\\\"#cargo_vehicletype\\\").val(null);\\r\\n\\t$(\\\"#truck_plate_number\\\").val(null);\\r\\n\\t$(\\\"#cargo_company\\\").val(null);\\r\\n\\r\\n\\t/* Clear error validation message */\\r\\n\\t$(\\\"#error\\\").empty();\\r\\n\\r\\n}\",\n \"clearInputField() {\\n this.inputField.value = '';\\n }\",\n \"clear () {\\n this.setValue('');\\n }\",\n \"function form_raz(txt, initial_value) {\\n\\n if(txt.value == initial_value) txt.value = '';\\n \\n }\",\n \"function car_model_clear_and_disable() {\\n if(document.getElementById(\\\"car_make_input\\\").value === \\\"\\\"){\\n document.getElementById(\\\"car_model_input\\\").value = \\\"\\\";\\n document.getElementById(\\\"car_model_input\\\").disabled = true;\\n }\\n }\",\n \"function addTextField(first) {\\n var remove = first ? '
' : 'Remove field
';\\n var emptyField = '
';\\n emptyField = emptyField + remove;\\n $(\\\".input_field form\\\").append(emptyField);\\n}\",\n \"function emptyBoxes(){\\n inputBox.val(\\\"\\\")\\n }\",\n \"function clearField() {\\n let emptyField = temp.value = '';\\n let emptyResult = result.textContent = '';\\n }\",\n \"function emptyFields() {\\n $(\\\"#name\\\").val(\\\"\\\");\\n $(\\\"#profile-input\\\").val(\\\"\\\");\\n $(\\\"#email-input\\\").val(\\\"\\\");\\n $(\\\"#password-input\\\").val(\\\"\\\");\\n $(\\\"#number-input\\\").val(\\\"\\\");\\n $(\\\"#fav-food\\\").val(\\\"\\\");\\n $(\\\"#event-types\\\").val(\\\"\\\");\\n $(\\\"#zipcode\\\").val(\\\"\\\");\\n $(\\\"#radius\\\").val(\\\"\\\");\\n }\",\n \"clearNewTodo() {\\n\\t\\tthis.$newTodo.value = '';\\n\\t}\",\n \"function clearInputField() {\\n mainInputField.value = \\\"\\\";\\n}\",\n \"function clearText(thefield) {\\r\\n if (thefield.defaultValue==thefield.value) { thefield.value = \\\"\\\" }\\r\\n}\",\n \"function ClearFields() {\\r\\n self.model.code = \\\"\\\";\\r\\n self.model.component = \\\"\\\";\\r\\n }\",\n \"function ClearFields() {\\r\\n self.model.code = \\\"\\\";\\r\\n self.model.name = \\\"\\\";\\r\\n self.model.address = \\\"\\\";\\r\\n }\",\n \"function emptyFields() {\\n document.getElementById(\\\"title\\\").value = null;\\n document.getElementById(\\\"urgency\\\").value = \\\"High Urgency\\\";\\n document.getElementById(\\\"importance\\\").value = \\\"High Importance\\\";\\n document.getElementById(\\\"date\\\").value = null;\\n document.getElementById(\\\"description\\\").value = null;\\n}\",\n \"function clearText(theField)\\n{\\nif (theField.defaultValue == theField.value)\\ntheField.value = '';\\n}\",\n \"function clearText(element) {\\n element.value = '';\\n}\",\n \"function clearForm() {\\n\\t\\t\\t$('#rolForm input[type=\\\"text\\\"]').val(\\\"\\\");\\n\\t\\t}\",\n \"function _clear() {\\r\\n vm.email = \\\"\\\";\\r\\n $scope.addEvaluatorForm.$setPristine();\\r\\n }\",\n \"set _textWhenEmpty(aValue) {\\n if (this._emptyTextNode) {\\n this._emptyTextNode.setAttribute(\\\"value\\\", aValue);\\n }\\n this._emptyTextValue = aValue;\\n this._showEmptyText();\\n }\",\n \"_clearForm() {\\n // Clears input fields\\n itemNameInput.value =\\n itemDueDateInput.value =\\n itemTimeDueInput.value =\\n itemDescriptionInput.value =\\n \\\"\\\";\\n // Makes sure default pri always \\\"no priority\\\"\\n itemPriorityInput.value = \\\"no_pri\\\";\\n }\",\n \"function deblankForm(theForm){\\r\\n\\tfor (var i = 0; i < theForm.elements.length; i++){\\r\\n\\t\\tif (theForm.elements[i].type == \\\"text\\\") {\\r\\n\\t\\t\\ttheForm.elements[i].value=trim(theForm.elements[i].value);\\r\\n\\t\\t}\\r\\n\\t}\\r\\n}\",\n \"function clearForm() {\\r\\n\\t\\t\\t$('#areaForm input[type=\\\"text\\\"]').val(\\\"\\\");\\r\\n\\t\\t}\",\n \"function clear() {\\n $txt.val(\\\"\\\");\\n $tbl.children(\\\"tbody\\\").find(\\\"tr\\\").show();\\n }\",\n \"clearField() {\\n document.querySelector('#name').value = '';\\n document.querySelector('#email').value = '';\\n document.querySelector('#profession').value = '';\\n }\",\n \"function clearForm() {\\n var formValue = document.getElementById('new-item');\\n\\n formValue.value = '';\\n}\",\n \"clearFields(){\\n this.description.value = \\\"\\\"\\n this.amount.value = \\\"\\\"\\n this.date.value = \\\"\\\"\\n }\",\n \"function maybeClearOptText() {\\n\\t\\t/*jshint validthis:true */\\n\\t\\tif ( this.value === frm_admin_js.new_option ) {\\n\\t\\t\\tthis.value = '';\\n\\t\\t}\\n\\t}\",\n \"function clear() {\\n toValue.value = '';\\n}\",\n \"function clearText() {\\n var inputText = document.getElementById(\\\"inputText\\\");\\n inputText.value = null;\\n }\",\n \"function clearTextBox() {\\n $('#organization_form')[0].reset();\\n $('#btnUpdate').hide();\\n $('#btnAdd').show();\\n}\",\n \"function clearTextBox() {\\n $('#organization_form')[0].reset();\\n $('#btnUpdate').hide();\\n $('#btnAdd').show();\\n}\",\n \"function CleandFieldSearch(){\\n\\t$(\\\"#txtSearch\\\").val(\\\"\\\");\\n}\",\n \"function hideEmptyfields(el) {\\n\\tif ( el.text() == '') {\\n\\t\\tel.addClass('empty');\\n\\t}\\n\\telse {\\n\\t\\tel.removeClass('empty');\\n\\t}\\n}\",\n \"function clear(cityInputText){\\n cityInputText.value = \\\"\\\"; \\n }\",\n \"function clearInputField() {\\n document.getElementById(\\\"chatMessage\\\").value = \\\"\\\";\\n}\",\n \"function emptyUpload() {\\n th.empty()\\n th.get(0).value = ''\\n }\",\n \"function clearField() {\\r\\n document.getElementById(\\\"fname\\\").value = \\\"\\\";\\r\\n}\",\n \"function maybeAddText() {\\n if($(\\\"#m\\\").val().trim()=='') {\\n $(\\\"#m\\\").val('Enter your message here...');\\n $(\\\"#m\\\").addClass(\\\"italic\\\");\\n disablepost();\\n }\\n}\",\n \"function init() {\\n document.querySelector('.todo__field').value = \\\"\\\";\\n\\n}\",\n \"function handleClear() {\\n inputField.current.focus()\\n selectionContext.updateSelection({ terms: '' }, true)\\n }\",\n \"clearFields() {\\n document.getElementById('title').value = '';\\n document.getElementById('author').value = '';\\n document.getElementById('isbn').value = '';\\n }\",\n \"function clearText(thefield)\\t{\\r\\n\\tif (thefield.defaultValue == thefield.value)\\r\\n\\t\\tthefield.value = \\\"\\\";\\r\\n\\t}\",\n \"function clearTextBox() {\\n\\n $('#txtid').val(\\\"\\\");\\n\\n $('#txtname').val(\\\"\\\"),\\n $('#txtemail').val(\\\"\\\"),\\n $('#txtpassword').val(\\\"\\\"),\\n $('#txtphone').val(\\\"\\\"),\\n $('#rdorole').val(\\\"\\\"),\\n $('#rdoactivate').val(\\\"\\\"),\\n\\n $('#btnUpdate').hide();\\n $('#btnAdd').show();\\n\\n}\",\n \"clearFields() {\\r\\n document.getElementById('title').value = '',\\r\\n document.getElementById('author').value = '',\\r\\n document.getElementById('isbn').value = '';\\r\\n }\",\n \"function limpiar() {\\n $('#txtSerie').val('');\\n $('#txtNombre').val('');\\n $('#txtSemestre').val('');\\n $('#txtCarrera').val('');\\n $('#txtHPracticas').val('');\\n}\",\n \"function emptyInput(){\\n console.log('clear has been clicked');\\n $('.inputOutput').val('');\\n} // end emptyInput\",\n \"function clearInput() {\\n $(\\\".text\\\").val('').focusout();\\n }\",\n \"function clearForm() {\\n $scope.Address = '';\\n $scope.CityTown = '';\\n $scope.WName = '';\\n\\n }\",\n \"_clearInputs() {\\n this.elements.peopleInput.value = \\\"\\\";\\n this.elements.descriptionInput.value = \\\"\\\";\\n this.elements.titleInput.value = \\\"\\\";\\n return this;\\n }\",\n \"function cleanData() {\\r\\n messenge.value = ''\\r\\n}\",\n \"function handleClearInput(e) {\\n e.preventDefault();\\n this.value = \\\"\\\";\\n this.setAttribute('value', \\\"\\\");\\n this.setAttribute('data-value', \\\"\\\");\\n}\",\n \"clearFields() {\\n document.getElementById('title').value='';\\n document.getElementById('author').value='';\\n document.getElementById('isbn').value='';\\n }\",\n \"function clearTextBox() {\\n\\n /* Mengganti Judul Utility Modal */\\n $(\\\"#modalTitle\\\").text(\\\"Formulir Penambahan Data Master BatchFile\\\");\\n\\n /* Mengosongkan Field Id */\\n $(\\\"#id\\\").val(\\\"\\\");\\n\\n /* Mengosongkan Field Nama */\\n $(\\\"#name\\\").val(\\\"\\\");\\n\\n /* Menghilangkan Tombol Update */\\n $(\\\"#btnUpdate\\\").hide();\\n\\n /* Menghilangkan Tombol Delete */\\n $(\\\"#btnDelete\\\").hide();\\n\\n /* Menampilkan Tombol Add */\\n $(\\\"#btnAdd\\\").show();\\n\\n /* Mengaktifkan Semua Form Field Yang Ada Pada Utility Modal */\\n enabledFormAllField();\\n\\n}\",\n \"function removeDefaultInputText(element) {\\n\\tvar el = jQuery(element),\\n\\t\\toriginalText = el.val();\\n\\n\\tel.val(\\\"\\\");\\n\\n\\tel.on(\\\"blur\\\", function() {\\n\\t\\tel.val(originalText);\\n\\t})\\n}\",\n \"function qClearScreen() {\\n document.getElementById(\\\"qIdText\\\").disabled = true;\\n $(\\\"#qIdText\\\").val('');\\n $(\\\"#qValueText\\\").val('');\\n $(\\\"#qTypeText\\\").val('null');\\n $(\\\"#qTypeText\\\").trigger('change');\\n $(\\\"#qOptText\\\").val('null');\\n $(\\\"#qOptText\\\").trigger('change');\\n $(\\\"#qUpdate\\\").hide();\\n $(\\\"#qSave\\\").show();\\n}\",\n \"addNewline(){\\n // re-render formfield\\n // TODO : to fix\\n this.formFieldManage.applyConfigurationToformlyModel(this.configuration, this.wfFormFields, this.dataModel);\\n this.wfFormFieldsOnlyNeededProperties = angular.copy(this.wfFormFields);\\n }\",\n \"function clearTextValue(){\\n\\t\\t$(\\\"#\\\" + g.k).val(\\\"\\\");\\n\\t\\t$(\\\"#clearbtn\\\").hide();\\n\\t}\",\n \"static clearFields() {\\n document.querySelector('#title').value = '';\\n document.querySelector('#author').value = '';\\n document.querySelector('#isbn').value = '';\\n }\",\n \"function clearInput(){\\n addInput.value = \\\"\\\"; \\n}\",\n \"function clearSearchText () {\\n // Set the loading to true so we don't see flashes of content.\\n // The flashing will only occur when an async request is running.\\n // So the loading process will stop when the results had been retrieved.\\n setLoading(true);\\n\\n $scope.searchText = '';\\n\\n // Normally, triggering the change / input event is unnecessary, because the browser detects it properly.\\n // But some browsers are not detecting it properly, which means that we have to trigger the event.\\n // Using the `input` is not working properly, because for example IE11 is not supporting the `input` event.\\n // The `change` event is a good alternative and is supported by all supported browsers.\\n var eventObj = document.createEvent('CustomEvent');\\n eventObj.initCustomEvent('change', true, true, { value: '' });\\n elements.input.dispatchEvent(eventObj);\\n\\n // For some reason, firing the above event resets the value of $scope.searchText if\\n // $scope.searchText has a space character at the end, so we blank it one more time and then\\n // focus.\\n elements.input.blur();\\n $scope.searchText = '';\\n elements.input.focus();\\n }\",\n \"function clearSearchText () {\\n // Set the loading to true so we don't see flashes of content.\\n // The flashing will only occur when an async request is running.\\n // So the loading process will stop when the results had been retrieved.\\n setLoading(true);\\n\\n $scope.searchText = '';\\n\\n // Normally, triggering the change / input event is unnecessary, because the browser detects it properly.\\n // But some browsers are not detecting it properly, which means that we have to trigger the event.\\n // Using the `input` is not working properly, because for example IE11 is not supporting the `input` event.\\n // The `change` event is a good alternative and is supported by all supported browsers.\\n var eventObj = document.createEvent('CustomEvent');\\n eventObj.initCustomEvent('change', true, true, { value: '' });\\n elements.input.dispatchEvent(eventObj);\\n\\n // For some reason, firing the above event resets the value of $scope.searchText if\\n // $scope.searchText has a space character at the end, so we blank it one more time and then\\n // focus.\\n elements.input.blur();\\n $scope.searchText = '';\\n elements.input.focus();\\n }\",\n \"function clearField(x) {\\n\\t x.value = '';\\n\\t}\",\n \"function addAndClearInput() {\\n const newItem = inputBox.value;\\n if (newItem) {\\n addLocalTodo(newItem);\\n addItemToDo(newItem);\\n inputBox.value = \\\"\\\";\\n }\\n }\",\n \"function clearText() {\\n let textBox = document.getElementById('textbox');\\n textBox.value = \\\"\\\"\\n }\",\n \"handleSubmit(event) {\\n event.preventDefault();\\n\\n const text = ReactDOM.findDOMNode(this.refs.textInput).value.trim();\\n\\n Meteor.call('mensajes.insert', text, this.props.location.state.idMensajes);\\n\\n ReactDOM.findDOMNode(this.refs.textInput).value = '';\\n }\",\n \"function clearInput()\\n {\\n input.val('');\\n }\",\n \"function clearForm($scope,selectedCommand){\\n\\tvar keepGoing = true;\\n\\tangular.forEach($scope.commandListLocal, function(localCommand){\\n\\t\\t//checks if commands have dynamic fields\\n\\t\\tif(localCommand.name == selectedCommand && keepGoing) {\\n\\t\\t\\tif(localCommand.args){ \\n\\t\\t\\t\\tangular.forEach(localCommand.args, function(commandField) {\\n\\t\\t\\t\\t\\tcommandField.value = \\\"\\\";\\n\\t\\t\\t\\t});\\n\\t\\t\\t}//no dynamic fields\\n\\t\\t\\telse{ \\n\\t\\t\\t\\tlocalCommand.message= \\\"\\\";\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t});\\n}\",\n \"makeEmpty() {\\n this.setValue(0);\\n }\",\n \"function addAItem() {\\n let inputValue = input.value\\n if ((inputValue.length > 0) && (inputValue !== ' '.repeat(inputValue.length))) {\\n addItem(inputValue)\\n }\\n input.value = ''\\n}\",\n \"reset(){\\n\\t\\tif(!this.empty){\\n\\t\\t\\t$(this.element).val(\\\"\\\");\\n\\t\\t\\tthis.hideErrorMessage();\\n\\t\\t\\tthis.removeValidity();\\n\\t\\t\\tthis.setErrorMessage(this.emptyMassage);\\n\\t\\t\\tthis.insertErrorMessage();\\n\\t\\t\\tthis.setEmpty(true);\\n\\t\\t}\\n\\t}\",\n \"static clearFields(){\\n document.getElementById('title').value = '';\\n document.getElementById('author').value = '';\\n document.getElementById('isbn').value = '';\\n }\",\n \"function clearFields() {\\n movie_name.value = '';\\n release_date.value = '';\\n movie_banner.value = '';\\n description.value = '';\\n}\",\n \"function setNullIfBlank(obj) {\\r\\n if (isBlank(obj.value)) {\\r\\n obj.value = \\\"\\\";\\r\\n }\\r\\n }\",\n \"clearFields(){\\n document.querySelector('#title').value = '';\\n document.querySelector('#author').value = '';\\n document.querySelector('#reference').value = '';\\n document.querySelector('#price').value = '';\\n }\",\n \"clearInputFieldValue() {\\r\\n /** HTMLInputElement : To make the element as HTMLInputElement and provides special properties and methods for manipulating the layout and presentation of input elements */\\r\\n const inputElement = this.getInputElement();\\r\\n if (inputElement) {\\r\\n inputElement.value = '';\\r\\n this.searchValue = '';\\r\\n this.showSearchBoxList = !this.showSearchBoxList;\\r\\n }\\r\\n }\",\n \"function clearInput() {\\n document.getElementById('inputField').value = \\\"\\\";\\n }\",\n \"function clearForm() {\\n $('#title').val(\\\"\\\");\\n $('#singer').val(\\\"\\\");\\n $('#release_date').val('');\\n $('#lyricist').val(\\\"\\\");\\n $(\\\"#songid\\\").val(\\\"\\\");\\n}\",\n \"function clearHeadForm(){\\n inputHeadEntity.val(\\\"\\\");\\n inputHeadIdEntity.val(\\\"\\\");\\n inputHeadTotal.val(\\\"\\\");\\n}\",\n \"handleEmptyValue() {\\n if (!this.get('value') || this.get('value') === '') {\\n this.set('value', 'Empty');\\n }\\n }\",\n \"function CleandFieldSearchPContract(){\\n\\t$('#textSearchContractPeople').val(\\\"\\\");\\n}\",\n \"function clear() {\\n $('#name').val(\\\"\\\");\\n $('#email').val(\\\"\\\");\\n $('#tech').val(\\\"\\\");\\n $('#userid').val(0);\\n $('#btnNewUser').show();\\n $('#btnUpdateUser').hide();\\n $(\\\"#email\\\").removeAttr('disabled');\\n}\",\n \"function clearForm(){\\n\\t$('#Bio').val('');\\n\\t$('#Origin').val('');\\n\\t$('#Hobbies').val('');\\n\\t$('#DreamJob').val('');\\t\\n\\t$('#CodeHistory').val('');\\n\\t$('#Occupation').val('');\\n\\t$('#CurrentMusic').val('');\\n\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.6011149","0.599558","0.5973112","0.5938429","0.58705604","0.5869868","0.5852022","0.58518314","0.58482265","0.583491","0.5822847","0.58139586","0.5799688","0.57825714","0.57810926","0.575355","0.57521373","0.5744637","0.5742645","0.5734894","0.5734518","0.57120645","0.5699345","0.5691258","0.56762815","0.5671296","0.56624067","0.5642942","0.5639233","0.5623847","0.5565331","0.5557962","0.5549921","0.5537997","0.5533612","0.55223995","0.5504242","0.5502437","0.55014104","0.54952335","0.5489548","0.5475687","0.54740936","0.5463765","0.54414356","0.54412746","0.5437776","0.5436676","0.5436676","0.5429709","0.54267865","0.5424385","0.5424115","0.5423241","0.5416381","0.54032546","0.5397747","0.5396429","0.53940177","0.53905755","0.5389198","0.53816295","0.53777736","0.53695476","0.5364575","0.5357414","0.53474045","0.53452295","0.534409","0.53428894","0.53371954","0.53261846","0.5319361","0.5312193","0.5309152","0.5308696","0.53077","0.53022695","0.53022695","0.5292115","0.5288586","0.5287539","0.52856576","0.5279686","0.52786905","0.527303","0.526974","0.5269276","0.5266081","0.52647007","0.5254687","0.52500963","0.5248578","0.5242811","0.523926","0.5235201","0.52345014","0.52343434","0.5233962","0.5232012"],"string":"[\n \"0.6011149\",\n \"0.599558\",\n \"0.5973112\",\n \"0.5938429\",\n \"0.58705604\",\n \"0.5869868\",\n \"0.5852022\",\n \"0.58518314\",\n \"0.58482265\",\n \"0.583491\",\n \"0.5822847\",\n \"0.58139586\",\n \"0.5799688\",\n \"0.57825714\",\n \"0.57810926\",\n \"0.575355\",\n \"0.57521373\",\n \"0.5744637\",\n \"0.5742645\",\n \"0.5734894\",\n \"0.5734518\",\n \"0.57120645\",\n \"0.5699345\",\n \"0.5691258\",\n \"0.56762815\",\n \"0.5671296\",\n \"0.56624067\",\n \"0.5642942\",\n \"0.5639233\",\n \"0.5623847\",\n \"0.5565331\",\n \"0.5557962\",\n \"0.5549921\",\n \"0.5537997\",\n \"0.5533612\",\n \"0.55223995\",\n \"0.5504242\",\n \"0.5502437\",\n \"0.55014104\",\n \"0.54952335\",\n \"0.5489548\",\n \"0.5475687\",\n \"0.54740936\",\n \"0.5463765\",\n \"0.54414356\",\n \"0.54412746\",\n \"0.5437776\",\n \"0.5436676\",\n \"0.5436676\",\n \"0.5429709\",\n \"0.54267865\",\n \"0.5424385\",\n \"0.5424115\",\n \"0.5423241\",\n \"0.5416381\",\n \"0.54032546\",\n \"0.5397747\",\n \"0.5396429\",\n \"0.53940177\",\n \"0.53905755\",\n \"0.5389198\",\n \"0.53816295\",\n \"0.53777736\",\n \"0.53695476\",\n \"0.5364575\",\n \"0.5357414\",\n \"0.53474045\",\n \"0.53452295\",\n \"0.534409\",\n \"0.53428894\",\n \"0.53371954\",\n \"0.53261846\",\n \"0.5319361\",\n \"0.5312193\",\n \"0.5309152\",\n \"0.5308696\",\n \"0.53077\",\n \"0.53022695\",\n \"0.53022695\",\n \"0.5292115\",\n \"0.5288586\",\n \"0.5287539\",\n \"0.52856576\",\n \"0.5279686\",\n \"0.52786905\",\n \"0.527303\",\n \"0.526974\",\n \"0.5269276\",\n \"0.5266081\",\n \"0.52647007\",\n \"0.5254687\",\n \"0.52500963\",\n \"0.5248578\",\n \"0.5242811\",\n \"0.523926\",\n \"0.5235201\",\n \"0.52345014\",\n \"0.52343434\",\n \"0.5233962\",\n \"0.5232012\"\n]"},"document_score":{"kind":"string","value":"0.6622295"},"document_rank":{"kind":"string","value":"0"}}},{"rowIdx":208,"cells":{"query":{"kind":"string","value":"Generates a message and displays highlighted content of the message."},"document":{"kind":"string","value":"async _previewOpenedChanged(opened) {\n if (!opened) {\n return;\n }\n if (!this.value) {\n this._toastMessage('Add a valid form items before generating a preview');\n this.previewOpened = false;\n return;\n }\n this.messagePreview = undefined;\n this._messagePreviewCode = undefined;\n const preview = await this._generatePreview();\n if (!preview) {\n this.previewOpened = false;\n return;\n }\n const e = new CustomEvent('syntax-highlight', {\n bubbles: true,\n composed: true,\n detail: {\n code: preview,\n lang: 'http'\n }\n });\n this.dispatchEvent(e);\n this._messagePreviewCode = e.detail.code || preview;\n this.messagePreview = preview;\n }"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function message() {\n textSize(40);\n fill(0, 102, 153);\n textStyle(BOLD);\n textAlign(LEFT);\n text(\"Do you want to pop some bubbles to see a message?\", mesX, mesY);\n}","showMessage() {\n // Create message element\n let message = document.createElement('div');\n message.classList.add('text-highlight');\n message.innerHTML = 'Please open an Chordpro File to use the Chorpro tools.';\n this.element.appendChild(message);\n }","function highlight(){\r\n\tmessages.push({command:\"highlight\"});\r\n\tgetCurrentTabAndSendMessages();\r\n}","function showMsg(msg, color) {\n // Empty the input field for user's ease\n guessField.value = \"\";\n // Appending the message into the tab\n msgTab.innerHTML = `

${msg}

`;\n // Change the background color according to the condition\n document.body.style.backgroundColor = color;\n // Pop up the message\n msgTab.style.display = \"block\";\n}","function addMessage(layer, message, color) {\n layer.html('

' + message + '

');\n }","function displayMessage(text, style) { \n\t_$(\"message\").innerHTML = \"

\" + text + \"

\"; \n}","function display_msg(data){\n if(!data.v) {\n var from = \"\";\n if(data.who != \"\") {\n from = data.who + \": \";\n\n }\n $(\"#conversation\").append(\"
\"+ from + data.m+\"
\");\n } else if(data.v) {\n $(\"#conversation\").append(\"\"+data.who + \": \" + \"\");\n var message = data.m;\n var messageArray = message.split(\" \");\n var delayPerWord = 60;\n var delayForNewLine = (messageArray.length+2) * delayPerWord;\n\n //to get color of emotion\n var emotion = data.emotion;\n var color = \"#FFFFFF\";\n //var color = $.xcolor.gradientlevel('#fc0', '#f00', 23, 100);\n //console.log(\"color: \" + color);\n if(emotion == \":)\" || emotion == \":-)\") {\n color = \"#F2EF3D\"; //happy color\n } else if(emotion == \"lol\" || emotion == \":D\" || emotion == \":-D\") {\n color = \"#F09E07\"; //laughter color\n } else if(emotion == \":(\" || emotion == \":-(\" || emotion == \":'-(\") {\n color = \"#2B619E\"; //sad color\n } else if(emotion == \":o\" || emotion == \"o_o\" || emotion == \":-o\") {\n color = \"#F06237\"; //surprise color\n } else if(emotion == \";)\" || emotion == \";-)\") {\n color = \"#A125E8\"; //wink color\n } else if(emotion == \"<3\") {\n color = \"#F748AB\"; //love color\n } else if(emotion == \":/\" || emotion == \":-/\" || emotion == \"=/\") {\n color = \"#8C815E\"; //skeptical color\n }\n $(\"#topBox\").css(\"background-color\", color);\n $(\"#bottomBox\").css(\"background-color\", color);\n //var color = \"#FFFFFF\";\n\n // to get text to appear word by word, foreshadowing video\n var whereToAppend = $(\"#conversation\");\n var wordColor = data.c;\n var steps = messageArray.length;\n var rainbow = new Rainbow();\n rainbow.setNumberRange(1, steps);\n rainbow.setSpectrum(wordColor, color);\n var gradientColors = [];\n for (var i = 0; i < steps; i++) {\n var hexColor = rainbow.colourAt(i);\n console.log(\"at i=\" + i + \", color=\" + hexColor);\n gradientColors.push('#' + hexColor);\n }\n var step = 0;\n var addTextByDelay = function(messageArray, whereToAppend, delay, j) {\n if(messageArray.length > 0) {\n console.log(\"color should be \" + gradientColors[j]);\n whereToAppend.append(\"\"+messageArray[0] + \" \");\n setTimeout(function() {\n addTextByDelay(messageArray.slice(1), whereToAppend, delay, j+1);\n }, delay);\n }\n }\n addTextByDelay(messageArray, whereToAppend, delayPerWord, step);\n setTimeout(function() {\n $(\"#conversation\").append(\"
\");\n }, delayForNewLine);\n\n\n // for video element\n var video1 = document.createElement(\"video\");\n \n video1.autoplay = true;\n video1.controls = false; // optional\n video1.loop = true;\n video1.width = 1000;\n\n var source = document.createElement(\"source\");\n source.src = URL.createObjectURL(base64_to_blob(data.v));\n source.type = \"video/webm\";\n\n video1.appendChild(source);\n if(username != data.who) {\n\n setTimeout(function() {\n document.getElementById(\"recorded_video\").appendChild(video1);\n $(\"#bottomBox\").show();\n $(\"#topBox\").show();\n $(\"#word\").show();\n $(\"#word\").text(emotion);\n /*\n emotionText = document.createTextNode(emotion);\n console.log(\"emoticon: \" + emotionText);\n var emotionPar = document.createElement('p');\n emotionPar.appendChild(emotionText);\n document.getElementById(\"word\").appendChild(emotionPar);\n */\n //$(\"#recorded_video\").animate({opacity, 'hide'}, 2000);\n /*\n setTimeout(function() {\n $(\"#recorded_video\").fadeOut();\n }, 2000);\n */\n //to make the video disappear\n setTimeout(function() {\n $(\"#recorded_video\").empty();\n $(\"#word\").hide();\n $(\"#bottomBox\").fadeOut('slow');\n $(\"#topBox\").hide();\n }, 2000);\n }, delayForNewLine*2);\n } else {\n setTimeout(function() {\n $(\"#video_sent\").fadeIn();\n setTimeout(function() {\n $(\"#video_sent\").fadeOut();\n }, 1000);\n }, delayForNewLine*2);\n }\n\n // for gif instead, use this code below and change mediaRecorder.mimeType in onMediaSuccess below\n // var video = document.createElement(\"img\");\n // video.src = URL.createObjectURL(base64_to_blob(data.v));\n \n //this line was from starter code to add video into conversation\n //document.getElementById(\"conversation\").appendChild(video1);\n }\n }","function createGreyMessage(innerContent) {\r\n\t\tvar holderblock = document.createElement(\"div\");\r\n\t\tholderblock.style.left = 0;\r\n\t\t\r\n\t\tvar messageBlock = document.createElement(\"div\");\r\n\t\tmessageBlock.innerHTML = innerContent;\r\n\t\tmessageBlock.className = \"greyBlock\";\r\n\t\t\r\n\t\tholderblock.append(messageBlock);\r\n\t\ttextMessageField.querySelector(\"div\").append(holderblock);\r\n\t}","function message(msg){\n document.getElementById('message').innerHTML = msg;\n }","function displayMessage(message) {\n\tconsole.log('------------------------------');\n\tconsole.log(motivationalMessage.statement);\n\tconsole.log('\\n');\n\tconsole.log('Your quote of the day:' + '\\n' + ` ${motivationalMessage.quote}`);\n\tconsole.log('\\n');\n\tconsole.log('Your challenge for the day:' + '\\n' + ` ${motivationalMessage.challenge}`);\n\tconsole.log('------------------------------');\n}","function messageWin(message) {\n $messageBoard.text(message)\n //could add a display-block here\n}","function setMessage(msg, color){\n Message.style.color = color;\n Message.textContent = msg;\n }","function setMessage(msg) {\r\n\t\tdocument.getElementById(\"message\").innerHTML = msg;\r\n\t\tdocument.getElementById(\"message\").style.color = 'navy';\r\n\t\tdocument.getElementById(\"message\").style.fontSize = '18px';\r\n\t}","renderMessage_() {\n const messsageEl = create(\"div\", {\n classname: cssClass.MESSAGE_WRAPPER,\n copy: copy.NO_SUBSCRIPTIONS,\n });\n\n this.appendChild(messsageEl);\n }","function MessageDisplayWidget() {}","getDisplayMessage() {\n return linkify(escapeHtml(this.message()));\n }","function showInfo(message)\n{\n newmessage(\"bg-info\", \" \"+message, 4000);\n}","function displayMessage(type,message)\n{\n messageEL.text(message);\n messageEL.attr(\"class\",type);\n\n}","function displayMessageBlock(message) {\n displayMessage(message);\n displayMessage(\"\");\n}","function setMessage(msg, color){\r\n messageUIE.style.color = color;\r\n messageUIE.textContent = msg;\r\n}","displayMessage(message) {\n this.messageContainerEl.innerHTML = `
${message}
`;\n this.messageContainerEl.classList.add('visible');\n }","function displayMessage() {\n mainEl.textContent = message;\n}","function drawWinnerText() {\n fill(255);\n textSize(28);\n textAlign(CENTER);\n text(message, width/2, height - 50);\n}","function drawWinnerText() {\n fill(255);\n textSize(28);\n textAlign(CENTER);\n text(message, width/2, height - 50);\n}","function render_msg(msg) {\r\n ///This function gets a msg in the form\r\n /// author:\r\n /// msg:\r\n // var divEl = xo.getDom('');\r\n // var el = xo.DomHelper.createDom({\r\n // \"tag\": \"div\",\r\n // \"class\": \"message\",\r\n // \"html\": \"User \" + msg.author + \": \" + msg.data\r\n // }, divEl);\r\n // \r\n }","function renderMessage(message) {\n document.querySelector('#messages').innerHTML += `\n
\n • ${message.username}: ${message.message}\n
\n `;\n}","function renderMessage(sender, message){\r\n\r\n}","function highlight(ctl, msg) {\r\n ctl.css('border', '2px solid red')\r\n .parent()\r\n .append('' + msg + '');\r\n }","function secretMessage() {\n textSize(40);\n fill(0, 102, 153);\n textStyle(BOLD);\n textAlign(CENTER);\n text(\"You are a rockstar!!!\", width / 2, height/2);\n}","function show_message(){\r\n document.body.innerHTML += '\\\r\n
' + i18n[user_lang].replace(/\\$1/g, link_avoided) + '
X
';\r\n // Add click event in notifclose\r\n var notifclose = document.getElementById(\"notifclose\");\r\n if (notifclose.addEventListener) {\r\n notifclose.addEventListener(\"click\", del_element, false); }\r\n else { notifclose.attachEvent(\"onclick\", del_element); } //Internet Explorer\r\n setTimeout(del_element,15000);\r\n}","function renderMessage(message) {\n $('.messages').append(`
\n

${ message.author }

: ${ message.message }\n
`);\n}","function explainHowToMove()\r\n{\r\n\tmessage += \"Red\";\r\n\tmessage += \"\\nBlue\";\r\n\tmessage += \"\\nGreen\";\r\n\tmessage += \"\\nPurple\";\r\n\tmessage += \"\\nCyan\";\r\n\tmessage += \"\\nYellow\";\r\n\taddMessage(message, \"howto\");\r\n}","function displayMessage(m) {\n let content = document.getElementById('greeting');\n content.innerText = m;\n}","function printMessage(code, msg){\n\t\tconsole.log(code);\n\t\tconsole.log(msg);\n\t\t\n\t\tvar title = document.createElement('h1');\n\t\ttitle.textContent = code;\n\t\tvar message = document.createElement('p');\n\t\tmessage.textContent = msg;\n\t\t\n\t\t//clear and push new stuff to content section\n\t\tdocument.querySelector('#content').innerHTML = \"\";\n\t\tdocument.querySelector('#content').appendChild(title).appendChild(message);\t\n\t}","template(message) {\n return message.text ? `

${message.text}

` : `

`;\n }","function displayMessage(type, message) {\n msgDiv.text(message);\n msgDiv.attr(\"class\", type);\n}","function afficheMsg(message) {\n $('#messages').append('') ;\n}","function printQuote(quote) \n{\n let message = getRandomQuote(quotes);\n let template = ' ';\n\n template = \"

\" + message.quote + \"

\";\n template += \"

\" + message.source;\n\n if (message.citation)\n { template += \"\" + message.citation + \"\" ;}\n\n if (message.year) \n { template += \"\" + message.year + \"\" ;}\n\n if (message.tags) \n { template += \"\" + message.tags + \"\"; }\n \n template += \"

\"\n\n document.getElementById(\"quote-box\").innerHTML = template;\n const colorResult = getRandomColor();\n document.body.style.background = colorResult;\n\n}","render() {\n return h('pre', {}, [\n h('code', {\n class: [this.className],\n innerHTML: this.highlighted\n })\n ]);\n }","displayAlert(message, sourceClass) {\n\t\talertMessage.classList.add(sourceClass);\n\t\talertMessage.innerHTML = `${message}`;\n\t\talertMessage.style.display = 'block';\n\t}","function printQuote () {\n message = \"\"\n getRandomQuote();\n buildMessage();\n printMessage();\n colorChange();\n}","function setMessage2(msg) {\r\n\t\tdocument.getElementById(\"message2\").innerHTML = msg;\r\n\t\tdocument.getElementById(\"message2\").style.color = 'blue';\r\n\t\tdocument.getElementById(\"message2\").style.fontSize = '16px';\r\n\t}","function showJavaMsg() {\r\n disableButton()\r\n message.style.display = 'none'\r\n innerMsg.style.display = 'block'\r\n // var javamsg = document.createElement('p')\r\n msg.innerText = \"Java is high-level programming language developed by sun Microsystems\"\r\n innerMsg.appendChild(msg)\r\n innerMsg.appendChild(hr)\r\n\r\n}","function retrieveMessage() {\n if (affirmationMessageSelection.checked) {\n bodyForBackgroundChange.style.background = \"linear-gradient(#0575E6, #00F260)\";\n return getRandomMessage(affirmations);\n } else if (mantraMessageSelection.checked) {\n bodyForBackgroundChange.style.background = \"linear-gradient(#108dc7, #ef8e38)\";\n return getRandomMessage(mantras);\n } else {\n return \"Please select a message type!!\";\n };\n}","function showMessage() {\n const final = inputTxt.val().toLowerCase();\n if (final === 'happy') {\n outputTxt.text('I am glad you are feeling good today!');\n outputTxt.css({backgroundColor: `yellow`});\n } else if (final === 'sad') {\n outputTxt.text('Poor you, I\\'m sad you\\'re blue.');\n outputTxt.css({backgroundColor: `lightblue`});\n } else if (final === 'angry') {\n outputTxt.text('Whoa there, calm down, let me help.');\n outputTxt.css({backgroundColor: `red`});\n } else {\n outputTxt.text('I\\'m not sure what that means...');\n outputTxt.css({backgroundColor: `beige`});\n }\n }","function showMessage(message) {\n console.log(`\\n${message}\\n`)\n}","function showMessage() {\n showHide(chosenMessage, loader);\n currentMessage = retrieveMessage();\n chosenMessage.innerHTML = \"\";\n chosenMessage.innerHTML += `${currentMessage}`;\n show(clearMessage);\n // show(favoriteButton);\n}","function displayMessage(content){\n let element = document.querySelector(\"#greeting\");\n element.innerText = `${content}`;\n //return element;\n }","function showHtmlMsg() {\r\n msg.innerText = ''\r\n disableButton()\r\n message.style.display = 'none'\r\n innerMsg.style.display = 'block'\r\n // var htmlmsg = document.createElement('p')\r\n msg.innerText = \"HTML stands for Hyper Text Markup Language. HTML describes the structure of a Web page.\"\r\n innerMsg.appendChild(msg)\r\n innerMsg.appendChild(hr)\r\n}","function showCssMsg() {\r\n msg.innerText = ''\r\n disableButton()\r\n message.style.display = 'none'\r\n innerMsg.style.display = 'block'\r\n // var cssmsg = document.createElement('p')\r\n msg.innerText = \"Css is a cascading style sheet used for styling purpose.\"\r\n innerMsg.appendChild(msg)\r\n innerMsg.appendChild(hr)\r\n}","function display(message) {\n document.querySelector('.message').textContent = message;\n}","function printMessage(text) {\r\n // Compilo il template\r\n var source = $('#message-template').html();\r\n var template = Handlebars.compile(source);\r\n\r\n var context = { message: text }\r\n var html = template(context);\r\n\r\n // Appendo il template compilato nel container apposito\r\n $('.show-results .container').append(html)\r\n}","function printQuote() {\n const randomQuote = getRandomQuote();\n console.log(randomQuote);\n // used template literal to inject javascript\n let message = `\n

${randomQuote.quote}

\n

${randomQuote.source}\n `;\n\n // checking to see if citation is truthy\n if (randomQuote.citation) {\n message += ` ${randomQuote.citation} ` // used += to add on to message\n }\n\n // checking if year is truthy\n if (randomQuote.year) {\n message += ` ${randomQuote.year} `\n }\n\n if (randomQuote.genre) {\n message += ` ${randomQuote.genre} `\n\n }\n // finally always add

tag\n message += `

`;\n \n // update quote in window\n document.getElementById('quote-box').innerHTML = message;\n\n //called my \n backgroundRandomColor();\n}","function generateMessage(){\n \n // A few words we'll use a lot\n var about = \"about\";\n var and = \"and\";\n var space = \" \";\n var a = \"a(n)\";\n var of = \"of\";\n\n var indexAdj = floor(random(adjective.length));\n var indexMed = floor(random(medium.length));\n var indexMat1 = floor(random(material1.length));\n var indexMat2 = floor(random(material2.length));\n var indexAct = floor(random(action.length));\n var indexSubj = floor(random(subject.length));\n \n // print out index number for each message\n var idnum = indexAdj + \".\" + indexMed + \".\" + indexMat1 + \".\" + indexMat2 + \".\" + indexAct + \".\" + indexSubj;\n\n // Check if we want to use recall number to generate old text or generate fresh text\n if(useInputNum){\n var idNumSplit = split(inputNum, \".\");\n // Use key number to create/recreate a message\n var message = assignArticle(adjective[idNumSplit[0]]) + space + medium[idNumSplit[1]] + space + material1[idNumSplit[2]] + space + and + space + material2[idNumSplit[3]] + space + action[idNumSplit[4]] + space + subject[idNumSplit[5]];\n //return message;\n \n } else {\n \n // Compile our final text to output\n var message = idnum + \":\" + space + assignArticle(adjective[indexAdj]) + space + medium[indexMed] + space + \"using\" + space + material1[indexMat1] + space + and + space + material2[indexMat2] + space + action[indexAct] + space + subject[indexSubj];\n\n //return message;\n }\n\n\n var messageElt = document.getElementById(\"messageElt\");\n var latestMessage = message;\n console.log(latestMessage);\n messageElt.innerHTML = latestMessage;\n \n}","generateMessage (callback) {\n\t\tthis.updateNRComment(callback);\n\t}","function logger(msg, color)\n {\n var status = document.getElementById(status_where)\n\n color = color || default_color;\n msg = \"\" + msg + \"\";\n status.innerHTML = msg;\n status.style.display = \"inline\";\n }","function displayMessage(type, message) {\n msgDiv.textContent = message;\n msgDiv.setAttribute(\"class\", type);\n }","function displayMessage(msg)\n{\n document.getElementById(\"greeting\").innerText = msg;\n}","function displayMessage(message) {\n console.log(message);\n }","__createMessageBlock(text) {\n let message_text = document.createElement(\"p\");\n message_text.classList.add(\"message__text\");\n message_text.innerHTML = text;\n message_text.setAttribute(\"data-text\", text);\n message_text.addEventListener(\"click\", function () {\n this.innerHTML = Game.decodeText(this.innerHTML);\n });\n message_text.addEventListener(\"mouseleave\", function (event) {\n this.innerHTML = this.getAttribute(\"data-text\");\n });\n return message_text;\n }","function printMsg(msg,color){\n console.log(msg,color)\n $(\"#msg\").html(msg);\n $(\"#msg\").css(\"background-color\",color);\n}","function displayMessage(msg) {\n document.getElementById(\"greeting\").textContent = msg;\n}","function displayMessage(message) {\n closePopups();\n $(\"#message-box\").text(message);\n $(\".backdrop\").css(\"display\", \"inline\");\n $(\"#info-box\").css(\"display\", \"inline\");\n }","function setMessage(messageValue, color){\n message.style.color = color;\n message.textContent = messageValue;\n}","function showMessage(msg) {\n displayMessage.innerText = msg;\n}","function displayMessage(message) {\n document.querySelector('.message').textContent = message;\n}","_msgHighlightTransform(event, message, map, $msg, $effects) {\n let result = message;\n for (let pat of this._highlights) {\n let pattern = pat;\n let locations = [];\n let arr = null;\n /* Ensure pattern has \"g\" flag */\n if (pat.flags.indexOf(\"g\") === -1) {\n pattern = new RegExp(pat, pat.flags + \"g\");\n }\n while ((arr = pattern.exec(event.message)) !== null) {\n if (!$msg.hasClass(\"highlight\")) {\n $msg.addClass(\"highlight\");\n }\n let whole = arr[0];\n let part = arr.length > 1 ? arr[1] : arr[0];\n let start = arr.index + whole.indexOf(part);\n let end = start + part.length;\n locations.push({part: part, start: start, end: end});\n }\n /* Ensure the locations array is indeed sorted */\n locations.sort((a, b) => a.start - b.start);\n while (locations.length > 0) {\n let location = locations.pop();\n let node = $(``).text(location.part);\n let msg_start = result.substr(0, map[location.start]);\n let msg_part = node[0].outerHTML;\n let msg_end = result.substr(map[location.end]);\n $msg.addClass(\"highlight\");\n result = msg_start + msg_part + msg_end;\n this._remap(map, location.start, location.end, msg_part.length);\n }\n }\n return result;\n }","function message(string, color) {\n // pad string to avoid display issues\n while (string.length < 16) { string += \" \"; }\n\n screen.setCursor(0, 0);\n screen.write(string);\n screen.setColor.apply(screen, color || colors.white);\n}","function renderMessage (message) {\n $.helpers.insertTemplate({\n template: 'endpoint-thread-message',\n renderTo: $el.find('.messages'),\n data: {\n message: message,\n username: options.username\n }\n });\n }","function renderChat(data) {\n let div = document.createElement(\"div\");\n div.dataset.message_id = data.message_id;\n div.dataset.user_id = data.user_id;\n div.classList.add(\"message\");\n div.addEventListener('click', function() {\n selectMessage(div);\n });\n if (data.user_id == id) {\n highlightFromSource(div);\n }\n\n //div.addEventListener('mouseout', function() {\n // clearAllHighlights();\n // defaultHighlight();\n //});\n //div.addEventListener('mouseover', function() {\n // clearAllHighlights();\n // highlightFromSource(div);\n //});\n\n let title = document.createElement(\"div\");\n title.classList.add(\"message-title\");\n\n let title_message_id = document.createElement(\"span\");\n title_message_id.textContent = data.message_id;\n let title_user_id = document.createElement(\"span\");\n title_user_id.style.fontStyle = 'italic';\n title_user_id.style.paddingRight = '5px';\n title_user_id.textContent = data.user_id;\n let title_reply_id = document.createElement(\"span\");\n title_reply_id.style.float = 'left';\n title_reply_id.classList.add('title-reply');\n title_reply_id.style.paddingLeft = '5px';\n\n title.appendChild(title_user_id);\n title.appendChild(title_message_id);\n title.appendChild(title_reply_id);\n\n let body = document.createElement(\"div\");\n body.classList.add(\"message-body\");\n body.textContent = data.message;\n\n div.appendChild(title);\n div.appendChild(body);\n\n return div;\n}","function message() {\n var insultGiv = insult[Math.floor((Math.random())* insult.length)]\n var choreGiv = chore[Math.floor((Math.random())* chore.length)]\n var commentGiv = comment[Math.floor((Math.random())* comment.length)]\n return `Wake up ${insultGiv}! You have to ${choreGiv} today. Get it done ${commentGiv}.`\n}","function outputMessage(message) {\r\n const div = document.createElement('div');\r\n div.classList.add('message');\r\n\r\n const p = document.createElement('p');\r\n p.classList.add('meta');\r\n p.innerText = message.username;\r\n if(message.username == 'server'){\r\n p.innerText += ' | ';\r\n p.style.color = 'red';\r\n }else{\r\n p.innerText += ' @ ';\r\n }\r\n p.innerHTML += `${message.time}`;\r\n div.appendChild(p);\r\n\r\n const para = document.createElement('p');\r\n para.classList.add('text');\r\n para.innerText = message.text;\r\n if(message.username == 'server'){\r\n para.style.color = 'red';\r\n para.style.fontFamily = 'Courier New';\r\n }\r\n div.appendChild(para);\r\n\r\n document.querySelector('.chat-messages').appendChild(div);\r\n}","function displaymessage(message) {\n const div = document.createElement(\"div\"); //create div inside class display (see chat.html)\n\n div.classList.add(\"msg\"); //adds properties of msg class and gives its css properties to message\n div.classList.add(\"lefthand\"); //adds properties of lefthand class and gives its css properties to message\n //properties of msg and lefthand class are given to our newly created div as whole but here we want to separate styling properties to above part and below part of message therefore we included class up and class down directly\n div.innerHTML = `

${message.username}-${message.time}


\n

${message.text}

`;\n document.querySelector(\".display\").appendChild(div); //appends div inside class display\n}","function renderMessage(text) {\n document.getElementById('res').innerHTML = text;\n}","function message() {\n return `Hello! We only serve whirled peas. Generated: ${new Date().toString()}`\n}","function printQuote() {\n var saying = getRandomQuote();\n var message = '

' + saying.quote + '

';\n message += '

' + saying. source + '

';\n message += '

' + saying.catagory + '

';\n var outputDiv = document.getElementById('quote-box');\n outputDiv.innerHTML = message;\n getRandomColor();\n}","getMessageHTML() {\n const message = `\n

Mission Complete

\n

Time: ${this.currentTime} seconds

\n

Difficulty: ${\n this.difficulty\n }

\n ${this.rank ? this.celebrateMessage : ''}\n \n ${this.insertDifficultyChanger()}\n `;\n return message;\n }","function outputMesssage(message) {\n const div = document.createElement('div');\n div.innerHTML = `${message}`;\n document.querySelector('.messages').appendChild(div);\n}","function showMessage(message) {\n $('#message').text(message);\n}","function displayMessage(message){\n document.getElementById('ui').innerHTML = message;\n}","setMessage(msg) \n {\n document.getElementById('message').innerHTML = msg;\n }","function outputMessage(message) {\n const div = document.createElement(\"div\");\n message.username === \"You\"\n ? div.setAttribute(\"class\", \"ui positive message\")\n : div.setAttribute(\"class\", \"ui info message\");\n const p = document.createElement(\"p\");\n message.username === \"You\"\n ? p.setAttribute(\"class\", \"ui red horizontal label\")\n : p.setAttribute(\"class\", \"ui blue horizontal label\");\n p.innerText = message.username;\n p.innerHTML += ` at ${message.time}`;\n div.appendChild(p);\n const para = document.createElement(\"p\");\n para.classList.add(\"text\");\n para.innerHTML = message.content;\n div.appendChild(para);\n document.querySelector(\".chat-messages\").appendChild(div);\n}","function makeMsg( msg, color ) {\n\n var message = '
' +msg+ '
';\n $('#email-message').html( message );\n $('.mail-msg').css('color', color);\n $('.mail-msg').fadeIn(300);\n setTimeout(function(){$('.mail-msg').html('&nbsp;');},3000);\n}","onHighlighted(fragment) {\n const text = Core.utils.htmlHelpers.highlightText(this.model.get('title'), fragment);\n this.ui.title.html(text);\n }","function displayMessage(msg, character) {\r\n self.displayMessage(msg, character);\r\n }","function displayMessage(msg) {\n const divElem = document.createElement('div');\n divElem.classList.add('message');\n const pName = document.createElement('p');\n const pActualSMS = document.createElement('p');\n const pTime = document.createElement('p');\n\n // pName.style.color = `#${randomColor()}`;\n\n pName.classList.add('name');\n pActualSMS.classList.add('actual_sms');\n pTime.classList.add('time');\n\n pName.innerText = msg.name;\n pActualSMS.innerText = msg.message;\n pTime.innerText = msg.time;\n\n divElem.appendChild(pName);\n divElem.appendChild(pActualSMS);\n divElem.appendChild(pTime);\n\n const chatmessages = document.querySelector('.messages-container');\n chatmessages.appendChild(divElem);\n}","function outputMessage(message) {\n const div = document.createElement('div');\n div.classList.add('message');\n div.innerHTML = `

${message.username}${message.time}

\n

\n ${message.text}\n

`;\n document.querySelector('.divscroll').appendChild(div);\n }","function outputOwnMessage(message) {\n const div = document.createElement('div')\n div.classList.add('alert','alert-success','my-2','mr-2','ml-5')\n div.innerHTML = `
\n
${message.username} at ${message.time}
\n
\n

${message.text}

`\n\n document.getElementById('chat-messages').appendChild(div);\n}","showMessage(messageText){\n\t\tlet messages = document.getElementsByClassName('common-message')\n\t\tif(messages.length > 0){\n\t\t\tvar message = messages[0]\n\t\t} else {\n\t\t\tvar message = document.createElement('div')\n\t\t\tmessage.setAttribute('class', 'common-message')\n\t\t\tthis.el.append(message)\n\t\t}\n\t\tlet div = document.createElement('div')\n\t\tdiv.innerHTML = messageText\n\t\tmessage.appendChild(div)\n\t}","function showMessage(message){\n // create blockquote\n const blockquote = document.createElement('blockquote');\n // add classes\n blockquote.className = `center-align`;\n // create message text\n blockquote.appendChild(document.createTextNode(message));\n // Get the reference node\n const form = document.querySelector('#searchForm');\n // Element to insert after is searchForm\n // Insert the new node before the reference node\n form.after(blockquote);\n // Fade out alert\n setTimeout(() => document.querySelector('blockquote').remove(), 2000);\n}","function displayMessage(message){\n document.getElementById(\"greeting\").innerText=message;\n}","function setMessage(str) {\n\tdocument.getElementById(\"Messages\").innerHTML = \"

\" + str + \"

\";\n}","function message(message){\n let results = document.querySelector(\".results\");\n let p = document.createElement(\"p\");\n p.innerHTML = message;\n results.innerHTML = \"\";\n results.appendChild(p);\n }","render() {\n let output =\n this.getHelperWordsBefore() +\n \" \" +\n this.renderForms()\n .map((i) => `${i}`)\n .join(\" / \") +\n this.getHelperWordsAfter();\n output = output.trim();\n\n // const highlight = options?.highlight\n // if (highlight && this.is(highlight)) {\n // output = `${output}`\n // }\n\n return output;\n }","function writeMsg(msg){\n msgEl.innerHTML = `\n
You Said:
\n ${msg}\n `\n}","function message(msg){\n\tdocument.getElementById('output').innerHTML = msg + \" event\"\n}","function displayMessage(msg){\n \n let content= document.getElementById(\"greeting\");\n content.innerText=msg;\n console.log(msg);\n}","function outputMessage(message) {\n //Creates div\n const div = document.createElement(\"div\");\n // adds div to classList\n div.classList.add(\"message\");\n //Formatting message\n div.innerHTML =\n `
\n ${message.username} today at: ${message.time}\n
\n ${message.text}\n
\n
`\n document.getElementById(\"c-messages\").appendChild(div)\n}","writeUnlockMessage() {\n ctx.font = \"30px Arial\";\n ctx.fillStyle = 'rgba(255, 255, 255, ' + this.displayOpacity + ')';\n ctx.fillText(this.displayMessage, this.getXLocation(this.displayMessage, 3), 5 * TILE_HEIGHT + 15);\n }","function Message(msg){\r\n const mes_ele = document.createElement('div');\r\n mes_ele.innerText = msg;\r\n mes.append(mes_ele);\r\n }","function showMessage(message) {\n console.log(message);\n }"],"string":"[\n \"function message() {\\n textSize(40);\\n fill(0, 102, 153);\\n textStyle(BOLD);\\n textAlign(LEFT);\\n text(\\\"Do you want to pop some bubbles to see a message?\\\", mesX, mesY);\\n}\",\n \"showMessage() {\\n // Create message element\\n let message = document.createElement('div');\\n message.classList.add('text-highlight');\\n message.innerHTML = 'Please open an Chordpro File to use the Chorpro tools.';\\n this.element.appendChild(message);\\n }\",\n \"function highlight(){\\r\\n\\tmessages.push({command:\\\"highlight\\\"});\\r\\n\\tgetCurrentTabAndSendMessages();\\r\\n}\",\n \"function showMsg(msg, color) {\\n // Empty the input field for user's ease\\n guessField.value = \\\"\\\";\\n // Appending the message into the tab\\n msgTab.innerHTML = `

${msg}

`;\\n // Change the background color according to the condition\\n document.body.style.backgroundColor = color;\\n // Pop up the message\\n msgTab.style.display = \\\"block\\\";\\n}\",\n \"function addMessage(layer, message, color) {\\n layer.html('

' + message + '

');\\n }\",\n \"function displayMessage(text, style) { \\n\\t_$(\\\"message\\\").innerHTML = \\\"

\\\" + text + \\\"

\\\"; \\n}\",\n \"function display_msg(data){\\n if(!data.v) {\\n var from = \\\"\\\";\\n if(data.who != \\\"\\\") {\\n from = data.who + \\\": \\\";\\n\\n }\\n $(\\\"#conversation\\\").append(\\\"
\\\"+ from + data.m+\\\"
\\\");\\n } else if(data.v) {\\n $(\\\"#conversation\\\").append(\\\"\\\"+data.who + \\\": \\\" + \\\"\\\");\\n var message = data.m;\\n var messageArray = message.split(\\\" \\\");\\n var delayPerWord = 60;\\n var delayForNewLine = (messageArray.length+2) * delayPerWord;\\n\\n //to get color of emotion\\n var emotion = data.emotion;\\n var color = \\\"#FFFFFF\\\";\\n //var color = $.xcolor.gradientlevel('#fc0', '#f00', 23, 100);\\n //console.log(\\\"color: \\\" + color);\\n if(emotion == \\\":)\\\" || emotion == \\\":-)\\\") {\\n color = \\\"#F2EF3D\\\"; //happy color\\n } else if(emotion == \\\"lol\\\" || emotion == \\\":D\\\" || emotion == \\\":-D\\\") {\\n color = \\\"#F09E07\\\"; //laughter color\\n } else if(emotion == \\\":(\\\" || emotion == \\\":-(\\\" || emotion == \\\":'-(\\\") {\\n color = \\\"#2B619E\\\"; //sad color\\n } else if(emotion == \\\":o\\\" || emotion == \\\"o_o\\\" || emotion == \\\":-o\\\") {\\n color = \\\"#F06237\\\"; //surprise color\\n } else if(emotion == \\\";)\\\" || emotion == \\\";-)\\\") {\\n color = \\\"#A125E8\\\"; //wink color\\n } else if(emotion == \\\"<3\\\") {\\n color = \\\"#F748AB\\\"; //love color\\n } else if(emotion == \\\":/\\\" || emotion == \\\":-/\\\" || emotion == \\\"=/\\\") {\\n color = \\\"#8C815E\\\"; //skeptical color\\n }\\n $(\\\"#topBox\\\").css(\\\"background-color\\\", color);\\n $(\\\"#bottomBox\\\").css(\\\"background-color\\\", color);\\n //var color = \\\"#FFFFFF\\\";\\n\\n // to get text to appear word by word, foreshadowing video\\n var whereToAppend = $(\\\"#conversation\\\");\\n var wordColor = data.c;\\n var steps = messageArray.length;\\n var rainbow = new Rainbow();\\n rainbow.setNumberRange(1, steps);\\n rainbow.setSpectrum(wordColor, color);\\n var gradientColors = [];\\n for (var i = 0; i < steps; i++) {\\n var hexColor = rainbow.colourAt(i);\\n console.log(\\\"at i=\\\" + i + \\\", color=\\\" + hexColor);\\n gradientColors.push('#' + hexColor);\\n }\\n var step = 0;\\n var addTextByDelay = function(messageArray, whereToAppend, delay, j) {\\n if(messageArray.length > 0) {\\n console.log(\\\"color should be \\\" + gradientColors[j]);\\n whereToAppend.append(\\\"\\\"+messageArray[0] + \\\" \\\");\\n setTimeout(function() {\\n addTextByDelay(messageArray.slice(1), whereToAppend, delay, j+1);\\n }, delay);\\n }\\n }\\n addTextByDelay(messageArray, whereToAppend, delayPerWord, step);\\n setTimeout(function() {\\n $(\\\"#conversation\\\").append(\\\"
\\\");\\n }, delayForNewLine);\\n\\n\\n // for video element\\n var video1 = document.createElement(\\\"video\\\");\\n \\n video1.autoplay = true;\\n video1.controls = false; // optional\\n video1.loop = true;\\n video1.width = 1000;\\n\\n var source = document.createElement(\\\"source\\\");\\n source.src = URL.createObjectURL(base64_to_blob(data.v));\\n source.type = \\\"video/webm\\\";\\n\\n video1.appendChild(source);\\n if(username != data.who) {\\n\\n setTimeout(function() {\\n document.getElementById(\\\"recorded_video\\\").appendChild(video1);\\n $(\\\"#bottomBox\\\").show();\\n $(\\\"#topBox\\\").show();\\n $(\\\"#word\\\").show();\\n $(\\\"#word\\\").text(emotion);\\n /*\\n emotionText = document.createTextNode(emotion);\\n console.log(\\\"emoticon: \\\" + emotionText);\\n var emotionPar = document.createElement('p');\\n emotionPar.appendChild(emotionText);\\n document.getElementById(\\\"word\\\").appendChild(emotionPar);\\n */\\n //$(\\\"#recorded_video\\\").animate({opacity, 'hide'}, 2000);\\n /*\\n setTimeout(function() {\\n $(\\\"#recorded_video\\\").fadeOut();\\n }, 2000);\\n */\\n //to make the video disappear\\n setTimeout(function() {\\n $(\\\"#recorded_video\\\").empty();\\n $(\\\"#word\\\").hide();\\n $(\\\"#bottomBox\\\").fadeOut('slow');\\n $(\\\"#topBox\\\").hide();\\n }, 2000);\\n }, delayForNewLine*2);\\n } else {\\n setTimeout(function() {\\n $(\\\"#video_sent\\\").fadeIn();\\n setTimeout(function() {\\n $(\\\"#video_sent\\\").fadeOut();\\n }, 1000);\\n }, delayForNewLine*2);\\n }\\n\\n // for gif instead, use this code below and change mediaRecorder.mimeType in onMediaSuccess below\\n // var video = document.createElement(\\\"img\\\");\\n // video.src = URL.createObjectURL(base64_to_blob(data.v));\\n \\n //this line was from starter code to add video into conversation\\n //document.getElementById(\\\"conversation\\\").appendChild(video1);\\n }\\n }\",\n \"function createGreyMessage(innerContent) {\\r\\n\\t\\tvar holderblock = document.createElement(\\\"div\\\");\\r\\n\\t\\tholderblock.style.left = 0;\\r\\n\\t\\t\\r\\n\\t\\tvar messageBlock = document.createElement(\\\"div\\\");\\r\\n\\t\\tmessageBlock.innerHTML = innerContent;\\r\\n\\t\\tmessageBlock.className = \\\"greyBlock\\\";\\r\\n\\t\\t\\r\\n\\t\\tholderblock.append(messageBlock);\\r\\n\\t\\ttextMessageField.querySelector(\\\"div\\\").append(holderblock);\\r\\n\\t}\",\n \"function message(msg){\\n document.getElementById('message').innerHTML = msg;\\n }\",\n \"function displayMessage(message) {\\n\\tconsole.log('------------------------------');\\n\\tconsole.log(motivationalMessage.statement);\\n\\tconsole.log('\\\\n');\\n\\tconsole.log('Your quote of the day:' + '\\\\n' + ` ${motivationalMessage.quote}`);\\n\\tconsole.log('\\\\n');\\n\\tconsole.log('Your challenge for the day:' + '\\\\n' + ` ${motivationalMessage.challenge}`);\\n\\tconsole.log('------------------------------');\\n}\",\n \"function messageWin(message) {\\n $messageBoard.text(message)\\n //could add a display-block here\\n}\",\n \"function setMessage(msg, color){\\n Message.style.color = color;\\n Message.textContent = msg;\\n }\",\n \"function setMessage(msg) {\\r\\n\\t\\tdocument.getElementById(\\\"message\\\").innerHTML = msg;\\r\\n\\t\\tdocument.getElementById(\\\"message\\\").style.color = 'navy';\\r\\n\\t\\tdocument.getElementById(\\\"message\\\").style.fontSize = '18px';\\r\\n\\t}\",\n \"renderMessage_() {\\n const messsageEl = create(\\\"div\\\", {\\n classname: cssClass.MESSAGE_WRAPPER,\\n copy: copy.NO_SUBSCRIPTIONS,\\n });\\n\\n this.appendChild(messsageEl);\\n }\",\n \"function MessageDisplayWidget() {}\",\n \"getDisplayMessage() {\\n return linkify(escapeHtml(this.message()));\\n }\",\n \"function showInfo(message)\\n{\\n newmessage(\\\"bg-info\\\", \\\" \\\"+message, 4000);\\n}\",\n \"function displayMessage(type,message)\\n{\\n messageEL.text(message);\\n messageEL.attr(\\\"class\\\",type);\\n\\n}\",\n \"function displayMessageBlock(message) {\\n displayMessage(message);\\n displayMessage(\\\"\\\");\\n}\",\n \"function setMessage(msg, color){\\r\\n messageUIE.style.color = color;\\r\\n messageUIE.textContent = msg;\\r\\n}\",\n \"displayMessage(message) {\\n this.messageContainerEl.innerHTML = `
${message}
`;\\n this.messageContainerEl.classList.add('visible');\\n }\",\n \"function displayMessage() {\\n mainEl.textContent = message;\\n}\",\n \"function drawWinnerText() {\\n fill(255);\\n textSize(28);\\n textAlign(CENTER);\\n text(message, width/2, height - 50);\\n}\",\n \"function drawWinnerText() {\\n fill(255);\\n textSize(28);\\n textAlign(CENTER);\\n text(message, width/2, height - 50);\\n}\",\n \"function render_msg(msg) {\\r\\n ///This function gets a msg in the form\\r\\n /// author:\\r\\n /// msg:\\r\\n // var divEl = xo.getDom('');\\r\\n // var el = xo.DomHelper.createDom({\\r\\n // \\\"tag\\\": \\\"div\\\",\\r\\n // \\\"class\\\": \\\"message\\\",\\r\\n // \\\"html\\\": \\\"User \\\" + msg.author + \\\": \\\" + msg.data\\r\\n // }, divEl);\\r\\n // \\r\\n }\",\n \"function renderMessage(message) {\\n document.querySelector('#messages').innerHTML += `\\n
\\n • ${message.username}: ${message.message}\\n
\\n `;\\n}\",\n \"function renderMessage(sender, message){\\r\\n\\r\\n}\",\n \"function highlight(ctl, msg) {\\r\\n ctl.css('border', '2px solid red')\\r\\n .parent()\\r\\n .append('' + msg + '');\\r\\n }\",\n \"function secretMessage() {\\n textSize(40);\\n fill(0, 102, 153);\\n textStyle(BOLD);\\n textAlign(CENTER);\\n text(\\\"You are a rockstar!!!\\\", width / 2, height/2);\\n}\",\n \"function show_message(){\\r\\n document.body.innerHTML += '\\\\\\r\\n
' + i18n[user_lang].replace(/\\\\$1/g, link_avoided) + '
X
';\\r\\n // Add click event in notifclose\\r\\n var notifclose = document.getElementById(\\\"notifclose\\\");\\r\\n if (notifclose.addEventListener) {\\r\\n notifclose.addEventListener(\\\"click\\\", del_element, false); }\\r\\n else { notifclose.attachEvent(\\\"onclick\\\", del_element); } //Internet Explorer\\r\\n setTimeout(del_element,15000);\\r\\n}\",\n \"function renderMessage(message) {\\n $('.messages').append(`
\\n

${ message.author }

: ${ message.message }\\n
`);\\n}\",\n \"function explainHowToMove()\\r\\n{\\r\\n\\tmessage += \\\"Red\\\";\\r\\n\\tmessage += \\\"\\\\nBlue\\\";\\r\\n\\tmessage += \\\"\\\\nGreen\\\";\\r\\n\\tmessage += \\\"\\\\nPurple\\\";\\r\\n\\tmessage += \\\"\\\\nCyan\\\";\\r\\n\\tmessage += \\\"\\\\nYellow\\\";\\r\\n\\taddMessage(message, \\\"howto\\\");\\r\\n}\",\n \"function displayMessage(m) {\\n let content = document.getElementById('greeting');\\n content.innerText = m;\\n}\",\n \"function printMessage(code, msg){\\n\\t\\tconsole.log(code);\\n\\t\\tconsole.log(msg);\\n\\t\\t\\n\\t\\tvar title = document.createElement('h1');\\n\\t\\ttitle.textContent = code;\\n\\t\\tvar message = document.createElement('p');\\n\\t\\tmessage.textContent = msg;\\n\\t\\t\\n\\t\\t//clear and push new stuff to content section\\n\\t\\tdocument.querySelector('#content').innerHTML = \\\"\\\";\\n\\t\\tdocument.querySelector('#content').appendChild(title).appendChild(message);\\t\\n\\t}\",\n \"template(message) {\\n return message.text ? `

${message.text}

` : `

`;\\n }\",\n \"function displayMessage(type, message) {\\n msgDiv.text(message);\\n msgDiv.attr(\\\"class\\\", type);\\n}\",\n \"function afficheMsg(message) {\\n $('#messages').append('') ;\\n}\",\n \"function printQuote(quote) \\n{\\n let message = getRandomQuote(quotes);\\n let template = ' ';\\n\\n template = \\\"

\\\" + message.quote + \\\"

\\\";\\n template += \\\"

\\\" + message.source;\\n\\n if (message.citation)\\n { template += \\\"\\\" + message.citation + \\\"\\\" ;}\\n\\n if (message.year) \\n { template += \\\"\\\" + message.year + \\\"\\\" ;}\\n\\n if (message.tags) \\n { template += \\\"\\\" + message.tags + \\\"\\\"; }\\n \\n template += \\\"

\\\"\\n\\n document.getElementById(\\\"quote-box\\\").innerHTML = template;\\n const colorResult = getRandomColor();\\n document.body.style.background = colorResult;\\n\\n}\",\n \"render() {\\n return h('pre', {}, [\\n h('code', {\\n class: [this.className],\\n innerHTML: this.highlighted\\n })\\n ]);\\n }\",\n \"displayAlert(message, sourceClass) {\\n\\t\\talertMessage.classList.add(sourceClass);\\n\\t\\talertMessage.innerHTML = `${message}`;\\n\\t\\talertMessage.style.display = 'block';\\n\\t}\",\n \"function printQuote () {\\n message = \\\"\\\"\\n getRandomQuote();\\n buildMessage();\\n printMessage();\\n colorChange();\\n}\",\n \"function setMessage2(msg) {\\r\\n\\t\\tdocument.getElementById(\\\"message2\\\").innerHTML = msg;\\r\\n\\t\\tdocument.getElementById(\\\"message2\\\").style.color = 'blue';\\r\\n\\t\\tdocument.getElementById(\\\"message2\\\").style.fontSize = '16px';\\r\\n\\t}\",\n \"function showJavaMsg() {\\r\\n disableButton()\\r\\n message.style.display = 'none'\\r\\n innerMsg.style.display = 'block'\\r\\n // var javamsg = document.createElement('p')\\r\\n msg.innerText = \\\"Java is high-level programming language developed by sun Microsystems\\\"\\r\\n innerMsg.appendChild(msg)\\r\\n innerMsg.appendChild(hr)\\r\\n\\r\\n}\",\n \"function retrieveMessage() {\\n if (affirmationMessageSelection.checked) {\\n bodyForBackgroundChange.style.background = \\\"linear-gradient(#0575E6, #00F260)\\\";\\n return getRandomMessage(affirmations);\\n } else if (mantraMessageSelection.checked) {\\n bodyForBackgroundChange.style.background = \\\"linear-gradient(#108dc7, #ef8e38)\\\";\\n return getRandomMessage(mantras);\\n } else {\\n return \\\"Please select a message type!!\\\";\\n };\\n}\",\n \"function showMessage() {\\n const final = inputTxt.val().toLowerCase();\\n if (final === 'happy') {\\n outputTxt.text('I am glad you are feeling good today!');\\n outputTxt.css({backgroundColor: `yellow`});\\n } else if (final === 'sad') {\\n outputTxt.text('Poor you, I\\\\'m sad you\\\\'re blue.');\\n outputTxt.css({backgroundColor: `lightblue`});\\n } else if (final === 'angry') {\\n outputTxt.text('Whoa there, calm down, let me help.');\\n outputTxt.css({backgroundColor: `red`});\\n } else {\\n outputTxt.text('I\\\\'m not sure what that means...');\\n outputTxt.css({backgroundColor: `beige`});\\n }\\n }\",\n \"function showMessage(message) {\\n console.log(`\\\\n${message}\\\\n`)\\n}\",\n \"function showMessage() {\\n showHide(chosenMessage, loader);\\n currentMessage = retrieveMessage();\\n chosenMessage.innerHTML = \\\"\\\";\\n chosenMessage.innerHTML += `${currentMessage}`;\\n show(clearMessage);\\n // show(favoriteButton);\\n}\",\n \"function displayMessage(content){\\n let element = document.querySelector(\\\"#greeting\\\");\\n element.innerText = `${content}`;\\n //return element;\\n }\",\n \"function showHtmlMsg() {\\r\\n msg.innerText = ''\\r\\n disableButton()\\r\\n message.style.display = 'none'\\r\\n innerMsg.style.display = 'block'\\r\\n // var htmlmsg = document.createElement('p')\\r\\n msg.innerText = \\\"HTML stands for Hyper Text Markup Language. HTML describes the structure of a Web page.\\\"\\r\\n innerMsg.appendChild(msg)\\r\\n innerMsg.appendChild(hr)\\r\\n}\",\n \"function showCssMsg() {\\r\\n msg.innerText = ''\\r\\n disableButton()\\r\\n message.style.display = 'none'\\r\\n innerMsg.style.display = 'block'\\r\\n // var cssmsg = document.createElement('p')\\r\\n msg.innerText = \\\"Css is a cascading style sheet used for styling purpose.\\\"\\r\\n innerMsg.appendChild(msg)\\r\\n innerMsg.appendChild(hr)\\r\\n}\",\n \"function display(message) {\\n document.querySelector('.message').textContent = message;\\n}\",\n \"function printMessage(text) {\\r\\n // Compilo il template\\r\\n var source = $('#message-template').html();\\r\\n var template = Handlebars.compile(source);\\r\\n\\r\\n var context = { message: text }\\r\\n var html = template(context);\\r\\n\\r\\n // Appendo il template compilato nel container apposito\\r\\n $('.show-results .container').append(html)\\r\\n}\",\n \"function printQuote() {\\n const randomQuote = getRandomQuote();\\n console.log(randomQuote);\\n // used template literal to inject javascript\\n let message = `\\n

${randomQuote.quote}

\\n

${randomQuote.source}\\n `;\\n\\n // checking to see if citation is truthy\\n if (randomQuote.citation) {\\n message += ` ${randomQuote.citation} ` // used += to add on to message\\n }\\n\\n // checking if year is truthy\\n if (randomQuote.year) {\\n message += ` ${randomQuote.year} `\\n }\\n\\n if (randomQuote.genre) {\\n message += ` ${randomQuote.genre} `\\n\\n }\\n // finally always add

tag\\n message += `

`;\\n \\n // update quote in window\\n document.getElementById('quote-box').innerHTML = message;\\n\\n //called my \\n backgroundRandomColor();\\n}\",\n \"function generateMessage(){\\n \\n // A few words we'll use a lot\\n var about = \\\"about\\\";\\n var and = \\\"and\\\";\\n var space = \\\" \\\";\\n var a = \\\"a(n)\\\";\\n var of = \\\"of\\\";\\n\\n var indexAdj = floor(random(adjective.length));\\n var indexMed = floor(random(medium.length));\\n var indexMat1 = floor(random(material1.length));\\n var indexMat2 = floor(random(material2.length));\\n var indexAct = floor(random(action.length));\\n var indexSubj = floor(random(subject.length));\\n \\n // print out index number for each message\\n var idnum = indexAdj + \\\".\\\" + indexMed + \\\".\\\" + indexMat1 + \\\".\\\" + indexMat2 + \\\".\\\" + indexAct + \\\".\\\" + indexSubj;\\n\\n // Check if we want to use recall number to generate old text or generate fresh text\\n if(useInputNum){\\n var idNumSplit = split(inputNum, \\\".\\\");\\n // Use key number to create/recreate a message\\n var message = assignArticle(adjective[idNumSplit[0]]) + space + medium[idNumSplit[1]] + space + material1[idNumSplit[2]] + space + and + space + material2[idNumSplit[3]] + space + action[idNumSplit[4]] + space + subject[idNumSplit[5]];\\n //return message;\\n \\n } else {\\n \\n // Compile our final text to output\\n var message = idnum + \\\":\\\" + space + assignArticle(adjective[indexAdj]) + space + medium[indexMed] + space + \\\"using\\\" + space + material1[indexMat1] + space + and + space + material2[indexMat2] + space + action[indexAct] + space + subject[indexSubj];\\n\\n //return message;\\n }\\n\\n\\n var messageElt = document.getElementById(\\\"messageElt\\\");\\n var latestMessage = message;\\n console.log(latestMessage);\\n messageElt.innerHTML = latestMessage;\\n \\n}\",\n \"generateMessage (callback) {\\n\\t\\tthis.updateNRComment(callback);\\n\\t}\",\n \"function logger(msg, color)\\n {\\n var status = document.getElementById(status_where)\\n\\n color = color || default_color;\\n msg = \\\"\\\" + msg + \\\"\\\";\\n status.innerHTML = msg;\\n status.style.display = \\\"inline\\\";\\n }\",\n \"function displayMessage(type, message) {\\n msgDiv.textContent = message;\\n msgDiv.setAttribute(\\\"class\\\", type);\\n }\",\n \"function displayMessage(msg)\\n{\\n document.getElementById(\\\"greeting\\\").innerText = msg;\\n}\",\n \"function displayMessage(message) {\\n console.log(message);\\n }\",\n \"__createMessageBlock(text) {\\n let message_text = document.createElement(\\\"p\\\");\\n message_text.classList.add(\\\"message__text\\\");\\n message_text.innerHTML = text;\\n message_text.setAttribute(\\\"data-text\\\", text);\\n message_text.addEventListener(\\\"click\\\", function () {\\n this.innerHTML = Game.decodeText(this.innerHTML);\\n });\\n message_text.addEventListener(\\\"mouseleave\\\", function (event) {\\n this.innerHTML = this.getAttribute(\\\"data-text\\\");\\n });\\n return message_text;\\n }\",\n \"function printMsg(msg,color){\\n console.log(msg,color)\\n $(\\\"#msg\\\").html(msg);\\n $(\\\"#msg\\\").css(\\\"background-color\\\",color);\\n}\",\n \"function displayMessage(msg) {\\n document.getElementById(\\\"greeting\\\").textContent = msg;\\n}\",\n \"function displayMessage(message) {\\n closePopups();\\n $(\\\"#message-box\\\").text(message);\\n $(\\\".backdrop\\\").css(\\\"display\\\", \\\"inline\\\");\\n $(\\\"#info-box\\\").css(\\\"display\\\", \\\"inline\\\");\\n }\",\n \"function setMessage(messageValue, color){\\n message.style.color = color;\\n message.textContent = messageValue;\\n}\",\n \"function showMessage(msg) {\\n displayMessage.innerText = msg;\\n}\",\n \"function displayMessage(message) {\\n document.querySelector('.message').textContent = message;\\n}\",\n \"_msgHighlightTransform(event, message, map, $msg, $effects) {\\n let result = message;\\n for (let pat of this._highlights) {\\n let pattern = pat;\\n let locations = [];\\n let arr = null;\\n /* Ensure pattern has \\\"g\\\" flag */\\n if (pat.flags.indexOf(\\\"g\\\") === -1) {\\n pattern = new RegExp(pat, pat.flags + \\\"g\\\");\\n }\\n while ((arr = pattern.exec(event.message)) !== null) {\\n if (!$msg.hasClass(\\\"highlight\\\")) {\\n $msg.addClass(\\\"highlight\\\");\\n }\\n let whole = arr[0];\\n let part = arr.length > 1 ? arr[1] : arr[0];\\n let start = arr.index + whole.indexOf(part);\\n let end = start + part.length;\\n locations.push({part: part, start: start, end: end});\\n }\\n /* Ensure the locations array is indeed sorted */\\n locations.sort((a, b) => a.start - b.start);\\n while (locations.length > 0) {\\n let location = locations.pop();\\n let node = $(``).text(location.part);\\n let msg_start = result.substr(0, map[location.start]);\\n let msg_part = node[0].outerHTML;\\n let msg_end = result.substr(map[location.end]);\\n $msg.addClass(\\\"highlight\\\");\\n result = msg_start + msg_part + msg_end;\\n this._remap(map, location.start, location.end, msg_part.length);\\n }\\n }\\n return result;\\n }\",\n \"function message(string, color) {\\n // pad string to avoid display issues\\n while (string.length < 16) { string += \\\" \\\"; }\\n\\n screen.setCursor(0, 0);\\n screen.write(string);\\n screen.setColor.apply(screen, color || colors.white);\\n}\",\n \"function renderMessage (message) {\\n $.helpers.insertTemplate({\\n template: 'endpoint-thread-message',\\n renderTo: $el.find('.messages'),\\n data: {\\n message: message,\\n username: options.username\\n }\\n });\\n }\",\n \"function renderChat(data) {\\n let div = document.createElement(\\\"div\\\");\\n div.dataset.message_id = data.message_id;\\n div.dataset.user_id = data.user_id;\\n div.classList.add(\\\"message\\\");\\n div.addEventListener('click', function() {\\n selectMessage(div);\\n });\\n if (data.user_id == id) {\\n highlightFromSource(div);\\n }\\n\\n //div.addEventListener('mouseout', function() {\\n // clearAllHighlights();\\n // defaultHighlight();\\n //});\\n //div.addEventListener('mouseover', function() {\\n // clearAllHighlights();\\n // highlightFromSource(div);\\n //});\\n\\n let title = document.createElement(\\\"div\\\");\\n title.classList.add(\\\"message-title\\\");\\n\\n let title_message_id = document.createElement(\\\"span\\\");\\n title_message_id.textContent = data.message_id;\\n let title_user_id = document.createElement(\\\"span\\\");\\n title_user_id.style.fontStyle = 'italic';\\n title_user_id.style.paddingRight = '5px';\\n title_user_id.textContent = data.user_id;\\n let title_reply_id = document.createElement(\\\"span\\\");\\n title_reply_id.style.float = 'left';\\n title_reply_id.classList.add('title-reply');\\n title_reply_id.style.paddingLeft = '5px';\\n\\n title.appendChild(title_user_id);\\n title.appendChild(title_message_id);\\n title.appendChild(title_reply_id);\\n\\n let body = document.createElement(\\\"div\\\");\\n body.classList.add(\\\"message-body\\\");\\n body.textContent = data.message;\\n\\n div.appendChild(title);\\n div.appendChild(body);\\n\\n return div;\\n}\",\n \"function message() {\\n var insultGiv = insult[Math.floor((Math.random())* insult.length)]\\n var choreGiv = chore[Math.floor((Math.random())* chore.length)]\\n var commentGiv = comment[Math.floor((Math.random())* comment.length)]\\n return `Wake up ${insultGiv}! You have to ${choreGiv} today. Get it done ${commentGiv}.`\\n}\",\n \"function outputMessage(message) {\\r\\n const div = document.createElement('div');\\r\\n div.classList.add('message');\\r\\n\\r\\n const p = document.createElement('p');\\r\\n p.classList.add('meta');\\r\\n p.innerText = message.username;\\r\\n if(message.username == 'server'){\\r\\n p.innerText += ' | ';\\r\\n p.style.color = 'red';\\r\\n }else{\\r\\n p.innerText += ' @ ';\\r\\n }\\r\\n p.innerHTML += `${message.time}`;\\r\\n div.appendChild(p);\\r\\n\\r\\n const para = document.createElement('p');\\r\\n para.classList.add('text');\\r\\n para.innerText = message.text;\\r\\n if(message.username == 'server'){\\r\\n para.style.color = 'red';\\r\\n para.style.fontFamily = 'Courier New';\\r\\n }\\r\\n div.appendChild(para);\\r\\n\\r\\n document.querySelector('.chat-messages').appendChild(div);\\r\\n}\",\n \"function displaymessage(message) {\\n const div = document.createElement(\\\"div\\\"); //create div inside class display (see chat.html)\\n\\n div.classList.add(\\\"msg\\\"); //adds properties of msg class and gives its css properties to message\\n div.classList.add(\\\"lefthand\\\"); //adds properties of lefthand class and gives its css properties to message\\n //properties of msg and lefthand class are given to our newly created div as whole but here we want to separate styling properties to above part and below part of message therefore we included class up and class down directly\\n div.innerHTML = `

${message.username}-${message.time}


\\n

${message.text}

`;\\n document.querySelector(\\\".display\\\").appendChild(div); //appends div inside class display\\n}\",\n \"function renderMessage(text) {\\n document.getElementById('res').innerHTML = text;\\n}\",\n \"function message() {\\n return `Hello! We only serve whirled peas. Generated: ${new Date().toString()}`\\n}\",\n \"function printQuote() {\\n var saying = getRandomQuote();\\n var message = '

' + saying.quote + '

';\\n message += '

' + saying. source + '

';\\n message += '

' + saying.catagory + '

';\\n var outputDiv = document.getElementById('quote-box');\\n outputDiv.innerHTML = message;\\n getRandomColor();\\n}\",\n \"getMessageHTML() {\\n const message = `\\n

Mission Complete

\\n

Time: ${this.currentTime} seconds

\\n

Difficulty: ${\\n this.difficulty\\n }

\\n ${this.rank ? this.celebrateMessage : ''}\\n \\n ${this.insertDifficultyChanger()}\\n `;\\n return message;\\n }\",\n \"function outputMesssage(message) {\\n const div = document.createElement('div');\\n div.innerHTML = `${message}`;\\n document.querySelector('.messages').appendChild(div);\\n}\",\n \"function showMessage(message) {\\n $('#message').text(message);\\n}\",\n \"function displayMessage(message){\\n document.getElementById('ui').innerHTML = message;\\n}\",\n \"setMessage(msg) \\n {\\n document.getElementById('message').innerHTML = msg;\\n }\",\n \"function outputMessage(message) {\\n const div = document.createElement(\\\"div\\\");\\n message.username === \\\"You\\\"\\n ? div.setAttribute(\\\"class\\\", \\\"ui positive message\\\")\\n : div.setAttribute(\\\"class\\\", \\\"ui info message\\\");\\n const p = document.createElement(\\\"p\\\");\\n message.username === \\\"You\\\"\\n ? p.setAttribute(\\\"class\\\", \\\"ui red horizontal label\\\")\\n : p.setAttribute(\\\"class\\\", \\\"ui blue horizontal label\\\");\\n p.innerText = message.username;\\n p.innerHTML += ` at ${message.time}`;\\n div.appendChild(p);\\n const para = document.createElement(\\\"p\\\");\\n para.classList.add(\\\"text\\\");\\n para.innerHTML = message.content;\\n div.appendChild(para);\\n document.querySelector(\\\".chat-messages\\\").appendChild(div);\\n}\",\n \"function makeMsg( msg, color ) {\\n\\n var message = '
' +msg+ '
';\\n $('#email-message').html( message );\\n $('.mail-msg').css('color', color);\\n $('.mail-msg').fadeIn(300);\\n setTimeout(function(){$('.mail-msg').html('&nbsp;');},3000);\\n}\",\n \"onHighlighted(fragment) {\\n const text = Core.utils.htmlHelpers.highlightText(this.model.get('title'), fragment);\\n this.ui.title.html(text);\\n }\",\n \"function displayMessage(msg, character) {\\r\\n self.displayMessage(msg, character);\\r\\n }\",\n \"function displayMessage(msg) {\\n const divElem = document.createElement('div');\\n divElem.classList.add('message');\\n const pName = document.createElement('p');\\n const pActualSMS = document.createElement('p');\\n const pTime = document.createElement('p');\\n\\n // pName.style.color = `#${randomColor()}`;\\n\\n pName.classList.add('name');\\n pActualSMS.classList.add('actual_sms');\\n pTime.classList.add('time');\\n\\n pName.innerText = msg.name;\\n pActualSMS.innerText = msg.message;\\n pTime.innerText = msg.time;\\n\\n divElem.appendChild(pName);\\n divElem.appendChild(pActualSMS);\\n divElem.appendChild(pTime);\\n\\n const chatmessages = document.querySelector('.messages-container');\\n chatmessages.appendChild(divElem);\\n}\",\n \"function outputMessage(message) {\\n const div = document.createElement('div');\\n div.classList.add('message');\\n div.innerHTML = `

${message.username}${message.time}

\\n

\\n ${message.text}\\n

`;\\n document.querySelector('.divscroll').appendChild(div);\\n }\",\n \"function outputOwnMessage(message) {\\n const div = document.createElement('div')\\n div.classList.add('alert','alert-success','my-2','mr-2','ml-5')\\n div.innerHTML = `
\\n
${message.username} at ${message.time}
\\n
\\n

${message.text}

`\\n\\n document.getElementById('chat-messages').appendChild(div);\\n}\",\n \"showMessage(messageText){\\n\\t\\tlet messages = document.getElementsByClassName('common-message')\\n\\t\\tif(messages.length > 0){\\n\\t\\t\\tvar message = messages[0]\\n\\t\\t} else {\\n\\t\\t\\tvar message = document.createElement('div')\\n\\t\\t\\tmessage.setAttribute('class', 'common-message')\\n\\t\\t\\tthis.el.append(message)\\n\\t\\t}\\n\\t\\tlet div = document.createElement('div')\\n\\t\\tdiv.innerHTML = messageText\\n\\t\\tmessage.appendChild(div)\\n\\t}\",\n \"function showMessage(message){\\n // create blockquote\\n const blockquote = document.createElement('blockquote');\\n // add classes\\n blockquote.className = `center-align`;\\n // create message text\\n blockquote.appendChild(document.createTextNode(message));\\n // Get the reference node\\n const form = document.querySelector('#searchForm');\\n // Element to insert after is searchForm\\n // Insert the new node before the reference node\\n form.after(blockquote);\\n // Fade out alert\\n setTimeout(() => document.querySelector('blockquote').remove(), 2000);\\n}\",\n \"function displayMessage(message){\\n document.getElementById(\\\"greeting\\\").innerText=message;\\n}\",\n \"function setMessage(str) {\\n\\tdocument.getElementById(\\\"Messages\\\").innerHTML = \\\"

\\\" + str + \\\"

\\\";\\n}\",\n \"function message(message){\\n let results = document.querySelector(\\\".results\\\");\\n let p = document.createElement(\\\"p\\\");\\n p.innerHTML = message;\\n results.innerHTML = \\\"\\\";\\n results.appendChild(p);\\n }\",\n \"render() {\\n let output =\\n this.getHelperWordsBefore() +\\n \\\" \\\" +\\n this.renderForms()\\n .map((i) => `${i}`)\\n .join(\\\" / \\\") +\\n this.getHelperWordsAfter();\\n output = output.trim();\\n\\n // const highlight = options?.highlight\\n // if (highlight && this.is(highlight)) {\\n // output = `${output}`\\n // }\\n\\n return output;\\n }\",\n \"function writeMsg(msg){\\n msgEl.innerHTML = `\\n
You Said:
\\n ${msg}\\n `\\n}\",\n \"function message(msg){\\n\\tdocument.getElementById('output').innerHTML = msg + \\\" event\\\"\\n}\",\n \"function displayMessage(msg){\\n \\n let content= document.getElementById(\\\"greeting\\\");\\n content.innerText=msg;\\n console.log(msg);\\n}\",\n \"function outputMessage(message) {\\n //Creates div\\n const div = document.createElement(\\\"div\\\");\\n // adds div to classList\\n div.classList.add(\\\"message\\\");\\n //Formatting message\\n div.innerHTML =\\n `
\\n ${message.username} today at: ${message.time}\\n
\\n ${message.text}\\n
\\n
`\\n document.getElementById(\\\"c-messages\\\").appendChild(div)\\n}\",\n \"writeUnlockMessage() {\\n ctx.font = \\\"30px Arial\\\";\\n ctx.fillStyle = 'rgba(255, 255, 255, ' + this.displayOpacity + ')';\\n ctx.fillText(this.displayMessage, this.getXLocation(this.displayMessage, 3), 5 * TILE_HEIGHT + 15);\\n }\",\n \"function Message(msg){\\r\\n const mes_ele = document.createElement('div');\\r\\n mes_ele.innerText = msg;\\r\\n mes.append(mes_ele);\\r\\n }\",\n \"function showMessage(message) {\\n console.log(message);\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.6414454","0.63670295","0.6366054","0.6258947","0.61552644","0.607734","0.60509104","0.5997347","0.5972793","0.5937585","0.592638","0.59151953","0.58700883","0.5847833","0.58454597","0.5840393","0.5838288","0.5833487","0.5831912","0.58277595","0.5817043","0.5810889","0.58035296","0.58035296","0.5800015","0.5780895","0.57722944","0.576527","0.57628876","0.5746559","0.57378185","0.573723","0.5732549","0.57324404","0.5727078","0.57166326","0.5716201","0.57147443","0.5707894","0.5702779","0.5696802","0.5688666","0.56880337","0.56823003","0.5672997","0.56614524","0.5658856","0.56431514","0.5631479","0.5627456","0.5624085","0.5623777","0.5621856","0.5613638","0.56002593","0.55989724","0.5587321","0.55845","0.5580448","0.5580136","0.5577881","0.55768776","0.5574471","0.55742574","0.5574133","0.5571118","0.55697125","0.55633396","0.5549342","0.55446005","0.55393815","0.5537907","0.5537304","0.5535325","0.55329853","0.55271584","0.55260473","0.55249935","0.55225956","0.5519702","0.5510983","0.5506294","0.55061543","0.5501692","0.5498111","0.54974335","0.5497385","0.5495715","0.5495337","0.54948115","0.5486007","0.5485458","0.54827935","0.54823196","0.54810286","0.5478253","0.54737526","0.5467482","0.5465901","0.5465879","0.54625934"],"string":"[\n \"0.6414454\",\n \"0.63670295\",\n \"0.6366054\",\n \"0.6258947\",\n \"0.61552644\",\n \"0.607734\",\n \"0.60509104\",\n \"0.5997347\",\n \"0.5972793\",\n \"0.5937585\",\n \"0.592638\",\n \"0.59151953\",\n \"0.58700883\",\n \"0.5847833\",\n \"0.58454597\",\n \"0.5840393\",\n \"0.5838288\",\n \"0.5833487\",\n \"0.5831912\",\n \"0.58277595\",\n \"0.5817043\",\n \"0.5810889\",\n \"0.58035296\",\n \"0.58035296\",\n \"0.5800015\",\n \"0.5780895\",\n \"0.57722944\",\n \"0.576527\",\n \"0.57628876\",\n \"0.5746559\",\n \"0.57378185\",\n \"0.573723\",\n \"0.5732549\",\n \"0.57324404\",\n \"0.5727078\",\n \"0.57166326\",\n \"0.5716201\",\n \"0.57147443\",\n \"0.5707894\",\n \"0.5702779\",\n \"0.5696802\",\n \"0.5688666\",\n \"0.56880337\",\n \"0.56823003\",\n \"0.5672997\",\n \"0.56614524\",\n \"0.5658856\",\n \"0.56431514\",\n \"0.5631479\",\n \"0.5627456\",\n \"0.5624085\",\n \"0.5623777\",\n \"0.5621856\",\n \"0.5613638\",\n \"0.56002593\",\n \"0.55989724\",\n \"0.5587321\",\n \"0.55845\",\n \"0.5580448\",\n \"0.5580136\",\n \"0.5577881\",\n \"0.55768776\",\n \"0.5574471\",\n \"0.55742574\",\n \"0.5574133\",\n \"0.5571118\",\n \"0.55697125\",\n \"0.55633396\",\n \"0.5549342\",\n \"0.55446005\",\n \"0.55393815\",\n \"0.5537907\",\n \"0.5537304\",\n \"0.5535325\",\n \"0.55329853\",\n \"0.55271584\",\n \"0.55260473\",\n \"0.55249935\",\n \"0.55225956\",\n \"0.5519702\",\n \"0.5510983\",\n \"0.5506294\",\n \"0.55061543\",\n \"0.5501692\",\n \"0.5498111\",\n \"0.54974335\",\n \"0.5497385\",\n \"0.5495715\",\n \"0.5495337\",\n \"0.54948115\",\n \"0.5486007\",\n \"0.5485458\",\n \"0.54827935\",\n \"0.54823196\",\n \"0.54810286\",\n \"0.5478253\",\n \"0.54737526\",\n \"0.5467482\",\n \"0.5465901\",\n \"0.5465879\",\n \"0.54625934\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":209,"cells":{"query":{"kind":"string","value":"Check if jQuery's loaded"},"document":{"kind":"string","value":"function GM_wait() {\r\n if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }\r\n else { $ = unsafeWindow.jQuery; letsJQuery(); }\r\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function checkForJqueryPresents(){\n\t\t\tif(typeof jQuery == \"undefined\")\n\t\t\t\tthrow new Error(\"jQuery library not included\");\n\t\t}","function checkAndLoadJquery() {\n if (window.jQuery === undefined || window.jQuery.fn.jquery !== '2.2.4') {\n loadScript(\"http://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js\", scriptLoadHandler);\n } else {\n // The jQuery version on the window is the one we want to use\n jQuery = window.jQuery;\n // Start the main\n main();\n }\n }","function checkForAndLoadjQuery() {\r\n if (document.readyState === \"complete\") {\r\n if (typeof jQuery == 'undefined') {\r\n window.jqueryNoConflict = true;\r\n var jQueryScriptLink = document.createElement(\"script\");\r\n jQueryScriptLink.type = \"text/javascript\";\r\n jQueryScriptLink.src = \"http://code.jquery.com/jquery-latest.min.js\";\r\n document.getElementsByTagName(\"body\")[0].appendChild(jQueryScriptLink);\r\n }\r\n }\r\n else {\r\n setTimeout('checkForAndLoadjQuery()', 300);\r\n }\r\n}","function checkJQuery () {\n if (!validJQueryVersion()) {\n var errorMsg = 'Chessboard Error 1005: Unable to find a valid version of jQuery. ' +\n 'Please include jQuery ' + MINIMUM_JQUERY_VERSION + ' or higher on the page' +\n '\\n\\n' +\n 'Exiting' + ELLIPSIS\n window.alert(errorMsg)\n return false\n }\n\n return true\n }","function checkJquery() {\n if (window.jQuery) {\n if ($('.share-link-1').length > 0) {\n loadCustomShares();\n }\n } else {\n window.setTimeout(checkJquery, 100);\n }\n}","function loadJQuery(){\n\tloadJQuery.loadLib(config.jQueryLibPath); //loading script\n\tloadJQuery.isReady(0); //waiting until the script is loaded\n}","function runAfterjQueryLoads() {\r\n if (typeof jQuery == 'undefined') {\r\n setTimeout('runAfterjQueryLoads()', 100);\r\n }\r\n else {\r\n if (window.jqueryNoConflict) {\r\n jQuery.noConflict();\r\n }\r\n if (jQuery.isReady) {\r\n jQueryDependencies();\r\n }\r\n else {\r\n jQuery(document).ready(function () {\r\n jQueryDependencies();\r\n });\r\n }\r\n }\r\n}","function jqGetReady(callback) {\r\n\tif (typeof jQuery === 'undefined'){\r\n\t\tloadJSwCB(\"//code.jquery.com/jquery-1.12.4.min.js\", callback);\r\n\t\treturn;\r\n\t} else {\r\n\t\tsetTimeout(callback, 1);\r\n\t}\r\n}","function loaded() {\n loadedjQuery = jQuery.noConflict(true);\n notifyCallbacks();\n}","function isLoaded(module)\n{\n\treturn $(\"#\"+module).length > 0;\n}","function noJqueryAvailableSoLoadOurOwn(callback) {\n // Boolean to avoid triggering the callback twice (when both script.onload and script.onreadystatechange work)\n var ourJqueryIsLoaded = false;\n // Build the script element.\n var script = document.createElement(\"script\");\n script.src = \"http://ajax.googleapis.com/ajax/libs/jquery/\" + minimumJqueryVersion + \"/jquery.min.js\";\n script.onload = script.onreadystatechange = function() {\n if (!ourJqueryIsLoaded && (!this.readyState || this.readyState == \"loaded\" || this.readyState == \"complete\")) {\n ourJqueryIsLoaded = true;\n var jQuery = window.jQuery.noConflict(true);\n callback(jQuery);\n }\n };\n // Add our jQuery script element to the document.\n document.getElementsByTagName(\"head\")[0].appendChild(script);\n }","function noJqueryAvailableSoLoadOurOwn(callback) {\n // Boolean to avoid triggering the callback twice (when both script.onload and script.onreadystatechange work)\n var ourJqueryIsLoaded = false;\n // Build the script element.\n var script = document.createElement(\"script\");\n script.src = \"http://ajax.googleapis.com/ajax/libs/jquery/\" + minimumJqueryVersion + \"/jquery.min.js\";\n script.onload = script.onreadystatechange = function() {\n if (!ourJqueryIsLoaded && (!this.readyState || this.readyState == \"loaded\" || this.readyState == \"complete\")) {\n ourJqueryIsLoaded = true;\n var jQuery = window.jQuery.noConflict(true);\n callback(jQuery);\n }\n };\n // Add our jQuery script element to the document.\n document.getElementsByTagName(\"head\")[0].appendChild(script);\n }","function load_jQuery() {\r\n if (typeof jQuery !== \"undefined\") {\r\n if (typeof $ !== \"undefined\")\r\n j$ = $;\r\n else \r\n j$ = jQuery.noConflict();\r\n\r\n expand_images();\r\n } else if (++j$ < 5) {\r\n GM_log('jQuery == ' + typeof jQuery);\r\n setTimeout(doDetect, 1500);\r\n } else {\r\n alert('jQuery timed out: ' + j$);\r\n }\r\n}","function ugCheckForMinJQueryVersion(){\n\t\t\n\t\tvar isMinJQuery = g_ugFunctions.checkMinJqueryVersion(\"1.8.0\");\n\t\t\n\t\tif(isMinJQuery == false)\n\t\t\tthrow new Error(\"The gallery can run from jquery 1.8 You have jQuery \"+jQuery.fn.jquery+\" Please update your jQuery library.\");\n\t}","function jQueryLoaded(){\n\tconsole.log(\"jQuery was loaded\");\n\t$(\".controls\").bind(\"mouseover\",controlsOnMouseOver);\n\t$(\".controls\").bind(\"mouseout\",controlsOnMouseOut);\n\t$(\".controls\").bind(\"click\",controlsOnClick);\n\t\n\t$(\"#michaelrodov\").bind(\"mouseover\",controlsOnMouseOver);\n\t$(\"#michaelrodov\").bind(\"mouseout\",controlsOnMouseOut);\n\tsetBrowserIcon();\n}","function loadJQuery() {\n // Load the script\n var script = document.createElement('script');\n script.src = 'https://code.jquery.com/jquery-3.2.1.min.js';\n script.type = 'text/javascript';\n script.onload = function () {\n console.log('jQuery has been loaded!');\n };\n document.getElementsByTagName('head')[0].appendChild(script);\n }","function checkIfLoaded()\n\t{\n\t\t// Check if the DOM is ready (credits to Diego Perini - http://javascript.nwbox.com/IEContentLoaded/)\n\t\ttry\n\t\t{\n\t\t\tdocEl.doScroll('left');\n\t\t\t// Stop checking\n\t\t\twindow.clearInterval(initTimer);\n\t\t}\n\t\tcatch (e)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// If we reach here, the page has finished loading\n\t\tattachEvents();\n\t}","function pageLoaded(){\t\n\tconsole.log(\"Page loaded.\");\n\tconsole.log(\"Loading jQuery...\");\t\n\tloadJQuery();\t\n}","function checkForDoubleJQuery(){\n\n\t\t\tif(typeof jQuery.fn.unitegallery == \"function\")\n\t\t\t\treturn(true);\n\t\t\t\n\t\t\tvar errorMessage = \"You have some jquery.js library include that comes after the gallery files js include.\";\n\t\t\terrorMessage += \"
This include eliminates the gallery libraries, and make it not work.\";\n\t\t\t\n\t\t\tif(type == \"cms\"){\n\t\t\t\terrorMessage += \"

To fix it you can:
&nbsp;&nbsp;&nbsp; 1. In the Gallery Settings -> Troubleshooting set option: Put JS Includes To Body option to true.\";\n\t\t\t\terrorMessage += \"
&nbsp;&nbsp;&nbsp; 2. Find the double jquery.js include and remove it.\";\n\t\t\t}else{\n\t\t\t\terrorMessage += \"

Please find and remove this jquery.js include and the gallery will work.
* There should be only one jquery.js include before all other js includes in the page.\";\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tthrow new Error(errorMessage);\n\t\t}","function isLoaded() {\n var globalRequire = window['require'];\n // .on() ensures that it's Dojo's AMD loader\n return globalRequire && globalRequire.on;\n}","function isReady() {\n\t\"use strict\";\n\t/*\n\tjsReadyCount++;\n\tif ( 2 <= jsReadyCount ) {\n\t\tScript1();\n\t\tjsReady = true;\n\t}\n\t*/\n\tif ( 'undefined' === typeof jsReady ) {\n\t\tjsReady = false;\n\t}\n\t\n\treturn Boolean(jsReady);\n}","function letsJQuery() {\r\n //alert($); // check if the dollar (jquery) function works\r\n //alert($().jquery); // check jQuery version\r\n }","function isLoaded() {\n\t\tif (!qz) {\n\t\t\t$(\"textarea[name=qz_log]\").append('Błąd:\\n\\n\\tPlugin nie załadowany!\\n\\n');\n\t\t\treturn false;\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tif (!qz.isActive()) {\n\t\t\t\t\t$(\"textarea[name=qz_log]\").append('Error:\\n\\n\\tPrint plugin is loaded but NOT active!\\n\\n');\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t$(\"textarea[name=qz_log]\").append('Error:\\n\\n\\tPrint plugin is NOT loaded properly!\\n\\n');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}","function completed(){document.removeEventListener(\"DOMContentLoaded\",completed);window.removeEventListener(\"load\",completed);jQuery.ready();}// Catch cases where $(document).ready() is called","function completed(){document.removeEventListener(\"DOMContentLoaded\",completed);window.removeEventListener(\"load\",completed);jQuery.ready();}// Catch cases where $(document).ready() is called","function completed(){document.removeEventListener(\"DOMContentLoaded\",completed);window.removeEventListener(\"load\",completed);jQuery.ready();}// Catch cases where $(document).ready() is called","function completed(){document.removeEventListener(\"DOMContentLoaded\",completed);window.removeEventListener(\"load\",completed);jQuery.ready();}// Catch cases where $(document).ready() is called","function isReady() {\n return documentReady >= 2;\n }","function letsJQuery() {\r\n alert($); // check if the dollar (jquery) function works\r\n alert($().jquery); // check jQuery version\r\n }","function gotjQ(){try{var jq=!!jQuery}catch(err){var jq=!1}return jq}","function checkForStartupErrors(){\n\t\t\n\t\t//protection agains old jquery version\n\t\ttry{\n\t\t\tugCheckForMinJQueryVersion();\n\t\t}catch(e){\n\t\t\tthrowErrorShowMessage(e.message);\n\t\t}\n\t\t\n\t\t//protection against some jquery ui function change\n\t if(typeof g_objWrapper.outerWidth() == \"object\")\n\t \t throwErrorShowMessage(\"You have some buggy script. most chances jquery-ui.js that destroy jquery outerWidth, outerHeight functions. The gallery can't run. Please update jquery-ui.js to latest version.\");\n\t \n\t //check for late jquery include\n\t setTimeout(function(){ugCheckForErrors(g_galleryID, \"cms\")} , 5000);\n\t \n\t}","function jqueryCheck(callback, count) {\n // If count isn't defined, set it to 1\n count = (typeof count !== 'undefined') ? count : 1;\n\n // Check for jQuery object, and isReady boolean property\n \tif (window.jQuery !== undefined && window.jQuery.isReady) {\n // Return the callback function, with the found jQuery object\n \t\treturn callback(window.jQuery);\n // jQuery wasn't found\n // If the count is below 30, run again after 100ms\n \t} else if (count < 30) {\n \t\tsetTimeout(function() {\n // Run the same function\n // Pass the callback function, and an incremented count.\n \t\t\tjqueryCheck(callback, count + 1);\n \t\t}, 100);\n \t} else {\n // No jQuery found\n }\n }","function allPluginsLoaded() {\n _('allPluginsLoaded', dependenciesRequested);\n if (dependenciesRequested) {\n return sqwidget.checkDependencies(widget);\n }\n\n return true;\n }","function completed(){// readyState === \"complete\" is good enough for us to call the dom ready in oldIE\nif(document.addEventListener||window.event.type===\"load\"||document.readyState===\"complete\"){detach();jQuery.ready();}}","isPluginLoaded(plugin){\n\t\tvar _plugin = this.getPlugin(plugin);\n\t\treturn (_plugin) ? _plugin.is_loaded : false;\n\t}","function isDocumentReady() {\n return Boolean(document.body) && document.readyState === 'complete';\n}","function loadjQuery(url, callback) {\n\tif (typeof jQuery == 'undefined') {\n\t\tconsole.log(\"jQuery will be loaded\");\n\t\tvar script = document.createElement(\"script\")\n \tscript.type = \"text/javascript\";\n\n \tif (script.readyState) { // ie\n\t script.onreadystatechange = function () {\n\t if (script.readyState == \"loaded\" || script.readyState == \"complete\") {\n\t script.onreadystatechange = null;\n\t callback();\n\t }\n\t };\n\t } else { // Chrome - firefox\n\t script.onload = function () {\n\t \tcallback();\n\t };\n\t }\n\n\t script.src = url;\n\t document.getElementsByTagName(\"head\")[0].appendChild(script);\n\t} else {\n\t\tconsole.log(\"jQuery won't be loaded\");\n\t\tcallback();\n\t}\n}","function documentReady () {\n return (document.readyState === 'interactive' || document.readyState === 'complete')\n }","function isLoaded() {\n\treturn LOADED;\n}","function completed() {\n document.removeEventListener(\"DOMContentLoaded\", completed);\n window.removeEventListener(\"load\", completed);\n jQuery.ready();\n } // Catch cases where $(document).ready() is called","function completed() {\n document.removeEventListener(\"DOMContentLoaded\", completed);\n window.removeEventListener(\"load\", completed);\n jQuery.ready();\n } // Catch cases where $(document).ready() is called","function completed() {\n document.removeEventListener(\"DOMContentLoaded\", completed);\n window.removeEventListener(\"load\", completed);\n jQuery.ready();\n } // Catch cases where $(document).ready() is called","function completed() {\n document.removeEventListener(\"DOMContentLoaded\", completed);\n window.removeEventListener(\"load\", completed);\n jQuery.ready();\n } // Catch cases where $(document).ready() is called","function completed() {\n document.removeEventListener(\"DOMContentLoaded\", completed);\n window.removeEventListener(\"load\", completed);\n jQuery.ready();\n } // Catch cases where $(document).ready() is called","function completed() {\n document.removeEventListener(\"DOMContentLoaded\", completed);\n window.removeEventListener(\"load\", completed);\n jQuery.ready();\n } // Catch cases where $(document).ready() is called","function completed() {\n document.removeEventListener(\"DOMContentLoaded\", completed);\n window.removeEventListener(\"load\", completed);\n jQuery.ready();\n } // Catch cases where $(document).ready() is called","function completed() {\n document.removeEventListener(\"DOMContentLoaded\", completed);\n window.removeEventListener(\"load\", completed);\n jQuery.ready();\n } // Catch cases where $(document).ready() is called","function onLoad(callback) {\n if (loadedjQuery) {\n callback(loadedjQuery);\n } else {\n callbacks.push(callback);\n }\n}","function scriptLoadHandler(){\n countScriptCalled++;\n if(countScriptCalled > 1) return;\n /* Restore jQuery and window.jQuery to their original values */\n var interval = setInterval(function(){\n if((typeof window.jQuery !== \"undefined\") && window.jQuery.fn.jquery == '1.7.2') {\n clearInterval(interval);\n jQuery = window.jQuery.noConflict(true);\n\n loadMobileBrowserDetection();\n\n main();\n }\n }, 100);\n}","function jQueryDependencies() {\r\n (function ($) {\r\n AllModeFunctions();\r\n if (typeof g_disableCheckoutInEditMode != 'undefined') {\r\n //Run in display mode\r\n if (!g_disableCheckoutInEditMode) {\r\n DisplayModeFunctions();\r\n }\r\n //Run in edit mode\r\n else if (g_disableCheckoutInEditMode) {\r\n EditModeFunctions();\r\n }\r\n }\r\n //Fallback run in display mode\r\n else if ($(\"body[spellcheck]\").length < 1) {\r\n DisplayModeFunctions();\r\n }\r\n //Fallback run in edit mode\r\n else if ($(\"body[spellcheck]\").length == 1) {\r\n EditModeFunctions();\r\n }\r\n })(jQuery);\r\n}","function IsModLoaded(name) {\n\treturn (document.getElementById('modscript_' + name) != null);\n}","function is_document_ready() {\n\n var visibleLoader = null;\n for (const loader of container.getElementsByClassName(\"loader\")) {\n if (loader.visible) {\n visibleLoader = loader;\n }\n }\n if (!visibleLoader) {\n get_all_prs();\n setInterval(get_all_prs, 30000);\n\n } else {\n console.log(\"Document not fully loaded. Waiting a bit more\");\n setTimeout(is_document_ready, 1000);\n }\n }","function scriptLoadHandler() {\n // Restore $ and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n wjQuery = window.jQuery.noConflict(false); \n }","function dependenciesAreLoaded(dependencies) {\n\t\t\tfor ( var i = 0 ; i < dependencies.length ; i++ ) {\n\t\t\t\tvar libraryName = dependencies[i];\n\t\t\t\tif ( !(libraryStorage[libraryName]) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}","function isScriptLoaded() {\n var scripts = document.getElementsByTagName('script');\n var scriptArray = [];\n for (var i = scripts.length; i--;) {\n scriptArray.push(scripts[i].src);\n }\n return scriptArray;\n}","function jQueryWait() {\r\n if (typeof unsafeWindow.jQuery == 'undefined') {\r\n window.setTimeout(jQueryWait, 100);\r\n } else {\r\n $ = unsafeWindow.jQuery;\r\n main();\r\n }\r\n}","function scriptLoadHandler()\n {\n // Restore $ and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n jQuery = window.jQuery.noConflict(true);\n\n // Call widgets init function\n init(); \n }","function isCalcReady() {\n\t\tif (\n\t\t\tIS_BUILDER &&\n\t\t\twindow.Desmos !== undefined &&\n\t\t\tdocument.querySelector(QRY_EDITOR_MAIN) !== null\n\t\t) {\n\t\t\tDesmos = window.Desmos;\n\t\t\treturn true;\n\t\t} else if (\n\t\t\twindow.Desmos !== undefined &&\n\t\t\twindow.Calc !== undefined\n\t\t) {\n\t\t\tDesmos = window.Desmos;\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}","function loadJQuery() {\n\n\t\tvar onigiriScript = document.getElementById('onigiri-script');\n\t\tvar script = document.createElement('script');\n\t\tscript.type = \"text/javascript\";\n\t\tscript.id = \"box-window-JQuery\";\n\t\tscript.src = \"https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js\";\n\n\t\tonigiriScript.parentNode.insertBefore(script,onigiriScript)\n\n\t}","function pluginloaded()\n{\r\n}","function scriptLoadHandler() {\n\t\tjQuery = window.jQuery.noConflict(true);\n\t\tmain();\n\t}","function scriptLoadHandler() {\n\t\tjQuery = window.jQuery.noConflict(true);\n\t\tmain();\n\t}","function isCssFileLoaded() {\n return ($(\".hideToc\").width() == 30) || isTocVisibleAfterNotVisible();\n }","function isDOMReady()\r\n{\r\n if (CCSOL.Utiles.ScriptsBeenLoading > 0) return ;\r\n // If we already figured out that the page is ready, ignore\r\n if (domReady.done)\r\n return false;\r\n //debugger;\r\n // Check to see if a number of functions and elements are\r\n // able to be accessed \r\n if (document && document.getElementsByTagName && document.getElementById && document.body)\r\n {\r\n // If they're ready, we can stop checking\r\n clearInterval(domReady.timer);\r\n domReady.timer = null;\t\r\n // Execute all the functions that were waiting\r\n\ttry {\r\n\t for (var i = 0; i < domReady.ready.length; i++)\t \r\n\t domReady.ready[i]();\t \r\n\t}\r\n\tcatch(e) {\r\n\t\r\n\t}\r\n\t\r\n\r\n // Remember that we're now done\r\n domReady.ready = null;\r\n domReady.done = true;\r\n }\r\n}","function _Initialise(){\r\n\t\t\r\n\t\tfunction __ready(){\r\n\t\t\t_PrecompileTemplates();\r\n\t\t\t_DefineJqueryPlugins();\r\n\t\t\t_CallReadyList();\r\n\t\t};\r\n\r\n\t\t_jQueryDetected = typeof window.jQuery === \"function\";\r\n\r\n\t\tif(_jQueryDetected){\r\n\t\t\tjQuery(document).ready(__ready);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tdocument.addEventListener(\"DOMContentLoaded\", __ready, false);\r\n\t\t}\r\n\t\t\r\n\t}","function checkIfProductLoaded(callback) {\n\t\t\tif ( $('#fancybox-content').find('.description').length !== 0 ) {\n\t\t\t\tcallback();\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tsetTimeout(function() { checkIfProductLoaded(callback) }, 100);\n\t\t\t}\n\t\t}","function loadJQuery(cb) {\n loadScript('http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js',\n function() {\n cb(jQuery.noConflict(true));\n }\n );\n }","function loadAutoWoot() {\n\tif(window.location.hostname === \"plug.dj\") { \n\t\t// Get jQuery\n\t\t$.getScript(jQuery).done(function(){\n\t\t\t// Run the script\n\t\t\trunAutoWoot();\n\t\t});\n\t} else {\n\t\talert('This script can only run on Plug.DJs website.');\n\t}\n}","function getJquery() {\n return request([{\n \"name\": \"jquery\",\n \"src\": \"js-test-files/jquery-1.11.0.js\",\n \"shim\": true\n }]);\n }","function scriptLoadHandler() {\n\t\t// Restore jQuery and window.jQuery to their previous values and store the\n\t\t// new jQuery in our local jQuery variable\n\t\tjQuery = window.jQuery.noConflict(true);\n\t\t$ = window.jQuery;\n\t\t// Call our main function\n\t\tmain(); \n\t}","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 }","function areDependenciesAvailable() {}","function jQuerify() {\n if (typeof jQuery == 'undefined') {\n var s = document.createElement('script');\n s.setAttribute('src','http://code.jquery.com/jquery.js');\n document.getElementsByTagName('body')[0].appendChild(s);\n }\n}","function domReady() {\n // Make sure that the DOM is not already loaded\n if(!isReady) {\n // Remember that the DOM is ready\n isReady = true;\n\n if(readyList) {\n for(var fn = 0; fn < readyList.length; fn++) {\n readyList[fn].call(window, []);\n }\n\n readyList = [];\n }\n }\n }","function elementExist(selector) {\n return $(selector).length > 0;\n }","function isReady() {\n if (isOldIE) {\n return document.readyState === 'complete';\n } else {\n return document.readyState === 'interactive' || document.readyState === 'complete';\n }\n}","function isScriptLoaded(elem,scriptentry) {\n\t\t\tif ((elem.readyState && elem.readyState!==\"complete\" && elem.readyState!==\"loaded\") || scriptentry[\"done\"]) { return 0; }\n\t\t\telem.onload = elem.onreadystatechange = nNULL; // prevent memory leak\n\t\t\treturn 1;\n\t\t}","function letsJQuery() {\r\n SMBD_active = $('body').hasClass('category');\r\n \r\n if (SMBD_active) {\r\n\tmodifyPage();\r\n }\r\n}","function domReady() {\r\n\t\t// Make sure that the DOM is not already loaded\r\n\t\tif(!isReady) {\r\n\t\t\t// Remember that the DOM is ready\r\n\t\t\tisReady = true;\r\n \r\n\t if(readyList) {\r\n\t for(var fn = 0; fn < readyList.length; fn++) {\r\n\t readyList[fn].call(window, []);\r\n\t }\r\n \r\n\t readyList = [];\r\n\t }\r\n\t\t}\r\n\t}","function scriptLoadHandler() {\n // Restore $ and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n jQuery = window.jQuery.noConflict(true);\n // Call our main function\n main();\n }","function scriptLoadHandler() {\n // Restore $ and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n jQuery = window.jQuery.noConflict(true);\n // Call our main function\n main();\n }","get loaded () {\n\t\treturn typeof this.elements === 'undefined';\n\t}","function getReady() \n\t\t{\n\t\t\tvar deferredReady = $.Deferred();\n\t\t\t$(document).ready(function()\n\t\t\t{\n\t\t\t\tdeferredReady.resolve();\n\t\t\t});\n\t\t\treturn deferredReady.promise();\n\t\t}","function scriptLoadHandler() {\n // Restore jQuery and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n jQuery = window.jQuery.noConflict(true);\n PlannTo.jQuery = jQuery;\n\n // Call our main function\n\n main();\n }","function isReady() {\n if (isOldIE) {\n return document.readyState === \"complete\";\n } else {\n return document.readyState === \"interactive\" || document.readyState === \"complete\";\n }\n }","function runOnloadIfWidgetsEnabled () {\n\t\t\n\t}","function scriptLoadHandler() {\n // Restore $ and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n jQuery = window.jQuery.noConflict(true);\n // Call our main function\n main();\n }","function domReady() {\n // Make sure that the DOM is not already loaded\n if (!isReady) {\n // Remember that the DOM is ready\n isReady = true;\n\n if (readyList) {\n for (var fn = 0; fn < readyList.length; fn++) {\n readyList[fn].call(window, []);\n }\n\n readyList = [];\n }\n }\n }","function domReady() {\n // Make sure that the DOM is not already loaded\n if (!isReady) {\n // Remember that the DOM is ready\n isReady = true;\n\n if (readyList) {\n for (var fn = 0; fn < readyList.length; fn++) {\n readyList[fn].call(window, []);\n }\n\n readyList = [];\n }\n }\n }","function scriptLoadHandler() {\n // Restore $ and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n jQuery = window.jQuery.noConflict(true);\n $ = jQuery;\n // Call our main function\n main();\n }","function scriptLoadHandler() {\n // Restore $ and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n jQuery = window.jQuery.noConflict(true);\n // Call our main function\n main();\n }","function scriptLoadHandler() {\n // Restore $ and window.jQuery to their previous values and store the\n // new jQuery in our local jQuery variable\n jQuery = window.jQuery.noConflict(true);\n // Call our main function\n main();\n }","function doScrollCheck(){if(jQuery.isReady){return;}try{ // If IE is used, use the trick by Diego Perini\n\t// http://javascript.nwbox.com/IEContentLoaded/\n\tdocument.documentElement.doScroll(\"left\");}catch(e){setTimeout(doScrollCheck,1);return;} // and execute any waiting functions\n\tjQuery.ready();}","function load_externals() {\n\t\tvar css_url = wkof.support_files['jqui_wkmain.css'];\n\n\t\twkof.include('Jquery');\n\t\treturn wkof.ready('document, Jquery')\n\t\t\t.then(function(){\n\t\t\t\treturn Promise.all([\n\t\t\t\t\twkof.load_script(wkof.support_files['jquery_ui.js'], true /* cache */),\n\t\t\t\t\twkof.load_css(css_url, true /* cache */)\n\t\t\t\t]);\n\t\t\t})\n\t\t\t.then(function(){\n\t\t\t\t// Workaround...\thttps://community.wanikani.com/t/19984/55\n\t\t\t\tdelete $.fn.autocomplete;\n\t\t\t});\n\t}","function checkReady() {\r\n\tvar isReady = (domContentLoaded && (xhrDug.readyState == xhrDug.DONE && xhrBuried.readyState == xhrBuried.DONE) || DBG_FAKE_RESPONSE);\r\n\tDBG && win.console.info('checkReady', isReady);\r\n\tif (isReady) {\r\n\t\tonReady();\r\n\t}\r\n}","function domReady() {\n // Make sure body exists, at least, in case IE gets a little overzealous (jQuery ticket #5443).\n if (!doc.body) {\n // let's not get nasty by setting a timeout too small.. (loop mania guaranteed if assets are queued)\n win.clearTimeout(api.readyTimeout);\n api.readyTimeout = win.setTimeout(domReady, 50);\n return;\n }\n\n if (!isDomReady) {\n isDomReady = true;\n\n init();\n each(domWaiters, function (fn) {\n one(fn);\n });\n }\n }","function scriptLoaded(containerId, scriptSrc) {\n let regex = regexCache[containerId]\n if (!regex) {\n const scriptSrcEscaped = scriptSrc\n .replace(/^https?:\\/\\//, '')\n .replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\n\n regex = new RegExp(scriptSrcEscaped + '.*[?&]id=' + containerId)\n regexCache[containerId] = regex\n }\n const scripts = document.querySelectorAll('script[src]')\n return !!Object.keys(scripts).filter((key) => (scripts[key].src || '').match(regex)).length\n}","function _isValidElement( element ) {\n\t\t\tvar $element = fxcm.lib.isJqueryElement( element ) ? element : $( element );\n\t\t\treturn $element && $element.length;\n\t\t}","function _isValidElement( element ) {\n\t\t\tvar $element = fxcm.lib.isJqueryElement( element ) ? element : $( element );\n\t\t\treturn $element && $element.length;\n\t\t}","function domReady() {\n // Make sure that the DOM is not already loaded\n if (!isReady) {\n // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\n if ( !doc.body ) {\n return setTimeout( domReady, 1 );\n }\n // Remember that the DOM is ready\n isReady = true;\n // If there are functions bound, to execute\n domReadyCallback();\n // Execute all of them\n }\n} // /ready()","function letsJQuery() {\n get_layout();\n}"],"string":"[\n \"function checkForJqueryPresents(){\\n\\t\\t\\tif(typeof jQuery == \\\"undefined\\\")\\n\\t\\t\\t\\tthrow new Error(\\\"jQuery library not included\\\");\\n\\t\\t}\",\n \"function checkAndLoadJquery() {\\n if (window.jQuery === undefined || window.jQuery.fn.jquery !== '2.2.4') {\\n loadScript(\\\"http://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js\\\", scriptLoadHandler);\\n } else {\\n // The jQuery version on the window is the one we want to use\\n jQuery = window.jQuery;\\n // Start the main\\n main();\\n }\\n }\",\n \"function checkForAndLoadjQuery() {\\r\\n if (document.readyState === \\\"complete\\\") {\\r\\n if (typeof jQuery == 'undefined') {\\r\\n window.jqueryNoConflict = true;\\r\\n var jQueryScriptLink = document.createElement(\\\"script\\\");\\r\\n jQueryScriptLink.type = \\\"text/javascript\\\";\\r\\n jQueryScriptLink.src = \\\"http://code.jquery.com/jquery-latest.min.js\\\";\\r\\n document.getElementsByTagName(\\\"body\\\")[0].appendChild(jQueryScriptLink);\\r\\n }\\r\\n }\\r\\n else {\\r\\n setTimeout('checkForAndLoadjQuery()', 300);\\r\\n }\\r\\n}\",\n \"function checkJQuery () {\\n if (!validJQueryVersion()) {\\n var errorMsg = 'Chessboard Error 1005: Unable to find a valid version of jQuery. ' +\\n 'Please include jQuery ' + MINIMUM_JQUERY_VERSION + ' or higher on the page' +\\n '\\\\n\\\\n' +\\n 'Exiting' + ELLIPSIS\\n window.alert(errorMsg)\\n return false\\n }\\n\\n return true\\n }\",\n \"function checkJquery() {\\n if (window.jQuery) {\\n if ($('.share-link-1').length > 0) {\\n loadCustomShares();\\n }\\n } else {\\n window.setTimeout(checkJquery, 100);\\n }\\n}\",\n \"function loadJQuery(){\\n\\tloadJQuery.loadLib(config.jQueryLibPath); //loading script\\n\\tloadJQuery.isReady(0); //waiting until the script is loaded\\n}\",\n \"function runAfterjQueryLoads() {\\r\\n if (typeof jQuery == 'undefined') {\\r\\n setTimeout('runAfterjQueryLoads()', 100);\\r\\n }\\r\\n else {\\r\\n if (window.jqueryNoConflict) {\\r\\n jQuery.noConflict();\\r\\n }\\r\\n if (jQuery.isReady) {\\r\\n jQueryDependencies();\\r\\n }\\r\\n else {\\r\\n jQuery(document).ready(function () {\\r\\n jQueryDependencies();\\r\\n });\\r\\n }\\r\\n }\\r\\n}\",\n \"function jqGetReady(callback) {\\r\\n\\tif (typeof jQuery === 'undefined'){\\r\\n\\t\\tloadJSwCB(\\\"//code.jquery.com/jquery-1.12.4.min.js\\\", callback);\\r\\n\\t\\treturn;\\r\\n\\t} else {\\r\\n\\t\\tsetTimeout(callback, 1);\\r\\n\\t}\\r\\n}\",\n \"function loaded() {\\n loadedjQuery = jQuery.noConflict(true);\\n notifyCallbacks();\\n}\",\n \"function isLoaded(module)\\n{\\n\\treturn $(\\\"#\\\"+module).length > 0;\\n}\",\n \"function noJqueryAvailableSoLoadOurOwn(callback) {\\n // Boolean to avoid triggering the callback twice (when both script.onload and script.onreadystatechange work)\\n var ourJqueryIsLoaded = false;\\n // Build the script element.\\n var script = document.createElement(\\\"script\\\");\\n script.src = \\\"http://ajax.googleapis.com/ajax/libs/jquery/\\\" + minimumJqueryVersion + \\\"/jquery.min.js\\\";\\n script.onload = script.onreadystatechange = function() {\\n if (!ourJqueryIsLoaded && (!this.readyState || this.readyState == \\\"loaded\\\" || this.readyState == \\\"complete\\\")) {\\n ourJqueryIsLoaded = true;\\n var jQuery = window.jQuery.noConflict(true);\\n callback(jQuery);\\n }\\n };\\n // Add our jQuery script element to the document.\\n document.getElementsByTagName(\\\"head\\\")[0].appendChild(script);\\n }\",\n \"function noJqueryAvailableSoLoadOurOwn(callback) {\\n // Boolean to avoid triggering the callback twice (when both script.onload and script.onreadystatechange work)\\n var ourJqueryIsLoaded = false;\\n // Build the script element.\\n var script = document.createElement(\\\"script\\\");\\n script.src = \\\"http://ajax.googleapis.com/ajax/libs/jquery/\\\" + minimumJqueryVersion + \\\"/jquery.min.js\\\";\\n script.onload = script.onreadystatechange = function() {\\n if (!ourJqueryIsLoaded && (!this.readyState || this.readyState == \\\"loaded\\\" || this.readyState == \\\"complete\\\")) {\\n ourJqueryIsLoaded = true;\\n var jQuery = window.jQuery.noConflict(true);\\n callback(jQuery);\\n }\\n };\\n // Add our jQuery script element to the document.\\n document.getElementsByTagName(\\\"head\\\")[0].appendChild(script);\\n }\",\n \"function load_jQuery() {\\r\\n if (typeof jQuery !== \\\"undefined\\\") {\\r\\n if (typeof $ !== \\\"undefined\\\")\\r\\n j$ = $;\\r\\n else \\r\\n j$ = jQuery.noConflict();\\r\\n\\r\\n expand_images();\\r\\n } else if (++j$ < 5) {\\r\\n GM_log('jQuery == ' + typeof jQuery);\\r\\n setTimeout(doDetect, 1500);\\r\\n } else {\\r\\n alert('jQuery timed out: ' + j$);\\r\\n }\\r\\n}\",\n \"function ugCheckForMinJQueryVersion(){\\n\\t\\t\\n\\t\\tvar isMinJQuery = g_ugFunctions.checkMinJqueryVersion(\\\"1.8.0\\\");\\n\\t\\t\\n\\t\\tif(isMinJQuery == false)\\n\\t\\t\\tthrow new Error(\\\"The gallery can run from jquery 1.8 You have jQuery \\\"+jQuery.fn.jquery+\\\" Please update your jQuery library.\\\");\\n\\t}\",\n \"function jQueryLoaded(){\\n\\tconsole.log(\\\"jQuery was loaded\\\");\\n\\t$(\\\".controls\\\").bind(\\\"mouseover\\\",controlsOnMouseOver);\\n\\t$(\\\".controls\\\").bind(\\\"mouseout\\\",controlsOnMouseOut);\\n\\t$(\\\".controls\\\").bind(\\\"click\\\",controlsOnClick);\\n\\t\\n\\t$(\\\"#michaelrodov\\\").bind(\\\"mouseover\\\",controlsOnMouseOver);\\n\\t$(\\\"#michaelrodov\\\").bind(\\\"mouseout\\\",controlsOnMouseOut);\\n\\tsetBrowserIcon();\\n}\",\n \"function loadJQuery() {\\n // Load the script\\n var script = document.createElement('script');\\n script.src = 'https://code.jquery.com/jquery-3.2.1.min.js';\\n script.type = 'text/javascript';\\n script.onload = function () {\\n console.log('jQuery has been loaded!');\\n };\\n document.getElementsByTagName('head')[0].appendChild(script);\\n }\",\n \"function checkIfLoaded()\\n\\t{\\n\\t\\t// Check if the DOM is ready (credits to Diego Perini - http://javascript.nwbox.com/IEContentLoaded/)\\n\\t\\ttry\\n\\t\\t{\\n\\t\\t\\tdocEl.doScroll('left');\\n\\t\\t\\t// Stop checking\\n\\t\\t\\twindow.clearInterval(initTimer);\\n\\t\\t}\\n\\t\\tcatch (e)\\n\\t\\t{\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\t\\n\\t\\t// If we reach here, the page has finished loading\\n\\t\\tattachEvents();\\n\\t}\",\n \"function pageLoaded(){\\t\\n\\tconsole.log(\\\"Page loaded.\\\");\\n\\tconsole.log(\\\"Loading jQuery...\\\");\\t\\n\\tloadJQuery();\\t\\n}\",\n \"function checkForDoubleJQuery(){\\n\\n\\t\\t\\tif(typeof jQuery.fn.unitegallery == \\\"function\\\")\\n\\t\\t\\t\\treturn(true);\\n\\t\\t\\t\\n\\t\\t\\tvar errorMessage = \\\"You have some jquery.js library include that comes after the gallery files js include.\\\";\\n\\t\\t\\terrorMessage += \\\"
This include eliminates the gallery libraries, and make it not work.\\\";\\n\\t\\t\\t\\n\\t\\t\\tif(type == \\\"cms\\\"){\\n\\t\\t\\t\\terrorMessage += \\\"

To fix it you can:
&nbsp;&nbsp;&nbsp; 1. In the Gallery Settings -> Troubleshooting set option: Put JS Includes To Body option to true.\\\";\\n\\t\\t\\t\\terrorMessage += \\\"
&nbsp;&nbsp;&nbsp; 2. Find the double jquery.js include and remove it.\\\";\\n\\t\\t\\t}else{\\n\\t\\t\\t\\terrorMessage += \\\"

Please find and remove this jquery.js include and the gallery will work.
* There should be only one jquery.js include before all other js includes in the page.\\\";\\t\\t\\t\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\tthrow new Error(errorMessage);\\n\\t\\t}\",\n \"function isLoaded() {\\n var globalRequire = window['require'];\\n // .on() ensures that it's Dojo's AMD loader\\n return globalRequire && globalRequire.on;\\n}\",\n \"function isReady() {\\n\\t\\\"use strict\\\";\\n\\t/*\\n\\tjsReadyCount++;\\n\\tif ( 2 <= jsReadyCount ) {\\n\\t\\tScript1();\\n\\t\\tjsReady = true;\\n\\t}\\n\\t*/\\n\\tif ( 'undefined' === typeof jsReady ) {\\n\\t\\tjsReady = false;\\n\\t}\\n\\t\\n\\treturn Boolean(jsReady);\\n}\",\n \"function letsJQuery() {\\r\\n //alert($); // check if the dollar (jquery) function works\\r\\n //alert($().jquery); // check jQuery version\\r\\n }\",\n \"function isLoaded() {\\n\\t\\tif (!qz) {\\n\\t\\t\\t$(\\\"textarea[name=qz_log]\\\").append('Błąd:\\\\n\\\\n\\\\tPlugin nie załadowany!\\\\n\\\\n');\\n\\t\\t\\treturn false;\\n\\t\\t} else {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tif (!qz.isActive()) {\\n\\t\\t\\t\\t\\t$(\\\"textarea[name=qz_log]\\\").append('Error:\\\\n\\\\n\\\\tPrint plugin is loaded but NOT active!\\\\n\\\\n');\\n\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t}\\n\\t\\t\\t} catch (err) {\\n\\t\\t\\t\\t$(\\\"textarea[name=qz_log]\\\").append('Error:\\\\n\\\\n\\\\tPrint plugin is NOT loaded properly!\\\\n\\\\n');\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\treturn true;\\n\\t}\",\n \"function completed(){document.removeEventListener(\\\"DOMContentLoaded\\\",completed);window.removeEventListener(\\\"load\\\",completed);jQuery.ready();}// Catch cases where $(document).ready() is called\",\n \"function completed(){document.removeEventListener(\\\"DOMContentLoaded\\\",completed);window.removeEventListener(\\\"load\\\",completed);jQuery.ready();}// Catch cases where $(document).ready() is called\",\n \"function completed(){document.removeEventListener(\\\"DOMContentLoaded\\\",completed);window.removeEventListener(\\\"load\\\",completed);jQuery.ready();}// Catch cases where $(document).ready() is called\",\n \"function completed(){document.removeEventListener(\\\"DOMContentLoaded\\\",completed);window.removeEventListener(\\\"load\\\",completed);jQuery.ready();}// Catch cases where $(document).ready() is called\",\n \"function isReady() {\\n return documentReady >= 2;\\n }\",\n \"function letsJQuery() {\\r\\n alert($); // check if the dollar (jquery) function works\\r\\n alert($().jquery); // check jQuery version\\r\\n }\",\n \"function gotjQ(){try{var jq=!!jQuery}catch(err){var jq=!1}return jq}\",\n \"function checkForStartupErrors(){\\n\\t\\t\\n\\t\\t//protection agains old jquery version\\n\\t\\ttry{\\n\\t\\t\\tugCheckForMinJQueryVersion();\\n\\t\\t}catch(e){\\n\\t\\t\\tthrowErrorShowMessage(e.message);\\n\\t\\t}\\n\\t\\t\\n\\t\\t//protection against some jquery ui function change\\n\\t if(typeof g_objWrapper.outerWidth() == \\\"object\\\")\\n\\t \\t throwErrorShowMessage(\\\"You have some buggy script. most chances jquery-ui.js that destroy jquery outerWidth, outerHeight functions. The gallery can't run. Please update jquery-ui.js to latest version.\\\");\\n\\t \\n\\t //check for late jquery include\\n\\t setTimeout(function(){ugCheckForErrors(g_galleryID, \\\"cms\\\")} , 5000);\\n\\t \\n\\t}\",\n \"function jqueryCheck(callback, count) {\\n // If count isn't defined, set it to 1\\n count = (typeof count !== 'undefined') ? count : 1;\\n\\n // Check for jQuery object, and isReady boolean property\\n \\tif (window.jQuery !== undefined && window.jQuery.isReady) {\\n // Return the callback function, with the found jQuery object\\n \\t\\treturn callback(window.jQuery);\\n // jQuery wasn't found\\n // If the count is below 30, run again after 100ms\\n \\t} else if (count < 30) {\\n \\t\\tsetTimeout(function() {\\n // Run the same function\\n // Pass the callback function, and an incremented count.\\n \\t\\t\\tjqueryCheck(callback, count + 1);\\n \\t\\t}, 100);\\n \\t} else {\\n // No jQuery found\\n }\\n }\",\n \"function allPluginsLoaded() {\\n _('allPluginsLoaded', dependenciesRequested);\\n if (dependenciesRequested) {\\n return sqwidget.checkDependencies(widget);\\n }\\n\\n return true;\\n }\",\n \"function completed(){// readyState === \\\"complete\\\" is good enough for us to call the dom ready in oldIE\\nif(document.addEventListener||window.event.type===\\\"load\\\"||document.readyState===\\\"complete\\\"){detach();jQuery.ready();}}\",\n \"isPluginLoaded(plugin){\\n\\t\\tvar _plugin = this.getPlugin(plugin);\\n\\t\\treturn (_plugin) ? _plugin.is_loaded : false;\\n\\t}\",\n \"function isDocumentReady() {\\n return Boolean(document.body) && document.readyState === 'complete';\\n}\",\n \"function loadjQuery(url, callback) {\\n\\tif (typeof jQuery == 'undefined') {\\n\\t\\tconsole.log(\\\"jQuery will be loaded\\\");\\n\\t\\tvar script = document.createElement(\\\"script\\\")\\n \\tscript.type = \\\"text/javascript\\\";\\n\\n \\tif (script.readyState) { // ie\\n\\t script.onreadystatechange = function () {\\n\\t if (script.readyState == \\\"loaded\\\" || script.readyState == \\\"complete\\\") {\\n\\t script.onreadystatechange = null;\\n\\t callback();\\n\\t }\\n\\t };\\n\\t } else { // Chrome - firefox\\n\\t script.onload = function () {\\n\\t \\tcallback();\\n\\t };\\n\\t }\\n\\n\\t script.src = url;\\n\\t document.getElementsByTagName(\\\"head\\\")[0].appendChild(script);\\n\\t} else {\\n\\t\\tconsole.log(\\\"jQuery won't be loaded\\\");\\n\\t\\tcallback();\\n\\t}\\n}\",\n \"function documentReady () {\\n return (document.readyState === 'interactive' || document.readyState === 'complete')\\n }\",\n \"function isLoaded() {\\n\\treturn LOADED;\\n}\",\n \"function completed() {\\n document.removeEventListener(\\\"DOMContentLoaded\\\", completed);\\n window.removeEventListener(\\\"load\\\", completed);\\n jQuery.ready();\\n } // Catch cases where $(document).ready() is called\",\n \"function completed() {\\n document.removeEventListener(\\\"DOMContentLoaded\\\", completed);\\n window.removeEventListener(\\\"load\\\", completed);\\n jQuery.ready();\\n } // Catch cases where $(document).ready() is called\",\n \"function completed() {\\n document.removeEventListener(\\\"DOMContentLoaded\\\", completed);\\n window.removeEventListener(\\\"load\\\", completed);\\n jQuery.ready();\\n } // Catch cases where $(document).ready() is called\",\n \"function completed() {\\n document.removeEventListener(\\\"DOMContentLoaded\\\", completed);\\n window.removeEventListener(\\\"load\\\", completed);\\n jQuery.ready();\\n } // Catch cases where $(document).ready() is called\",\n \"function completed() {\\n document.removeEventListener(\\\"DOMContentLoaded\\\", completed);\\n window.removeEventListener(\\\"load\\\", completed);\\n jQuery.ready();\\n } // Catch cases where $(document).ready() is called\",\n \"function completed() {\\n document.removeEventListener(\\\"DOMContentLoaded\\\", completed);\\n window.removeEventListener(\\\"load\\\", completed);\\n jQuery.ready();\\n } // Catch cases where $(document).ready() is called\",\n \"function completed() {\\n document.removeEventListener(\\\"DOMContentLoaded\\\", completed);\\n window.removeEventListener(\\\"load\\\", completed);\\n jQuery.ready();\\n } // Catch cases where $(document).ready() is called\",\n \"function completed() {\\n document.removeEventListener(\\\"DOMContentLoaded\\\", completed);\\n window.removeEventListener(\\\"load\\\", completed);\\n jQuery.ready();\\n } // Catch cases where $(document).ready() is called\",\n \"function onLoad(callback) {\\n if (loadedjQuery) {\\n callback(loadedjQuery);\\n } else {\\n callbacks.push(callback);\\n }\\n}\",\n \"function scriptLoadHandler(){\\n countScriptCalled++;\\n if(countScriptCalled > 1) return;\\n /* Restore jQuery and window.jQuery to their original values */\\n var interval = setInterval(function(){\\n if((typeof window.jQuery !== \\\"undefined\\\") && window.jQuery.fn.jquery == '1.7.2') {\\n clearInterval(interval);\\n jQuery = window.jQuery.noConflict(true);\\n\\n loadMobileBrowserDetection();\\n\\n main();\\n }\\n }, 100);\\n}\",\n \"function jQueryDependencies() {\\r\\n (function ($) {\\r\\n AllModeFunctions();\\r\\n if (typeof g_disableCheckoutInEditMode != 'undefined') {\\r\\n //Run in display mode\\r\\n if (!g_disableCheckoutInEditMode) {\\r\\n DisplayModeFunctions();\\r\\n }\\r\\n //Run in edit mode\\r\\n else if (g_disableCheckoutInEditMode) {\\r\\n EditModeFunctions();\\r\\n }\\r\\n }\\r\\n //Fallback run in display mode\\r\\n else if ($(\\\"body[spellcheck]\\\").length < 1) {\\r\\n DisplayModeFunctions();\\r\\n }\\r\\n //Fallback run in edit mode\\r\\n else if ($(\\\"body[spellcheck]\\\").length == 1) {\\r\\n EditModeFunctions();\\r\\n }\\r\\n })(jQuery);\\r\\n}\",\n \"function IsModLoaded(name) {\\n\\treturn (document.getElementById('modscript_' + name) != null);\\n}\",\n \"function is_document_ready() {\\n\\n var visibleLoader = null;\\n for (const loader of container.getElementsByClassName(\\\"loader\\\")) {\\n if (loader.visible) {\\n visibleLoader = loader;\\n }\\n }\\n if (!visibleLoader) {\\n get_all_prs();\\n setInterval(get_all_prs, 30000);\\n\\n } else {\\n console.log(\\\"Document not fully loaded. Waiting a bit more\\\");\\n setTimeout(is_document_ready, 1000);\\n }\\n }\",\n \"function scriptLoadHandler() {\\n // Restore $ and window.jQuery to their previous values and store the\\n // new jQuery in our local jQuery variable\\n wjQuery = window.jQuery.noConflict(false); \\n }\",\n \"function dependenciesAreLoaded(dependencies) {\\n\\t\\t\\tfor ( var i = 0 ; i < dependencies.length ; i++ ) {\\n\\t\\t\\t\\tvar libraryName = dependencies[i];\\n\\t\\t\\t\\tif ( !(libraryStorage[libraryName]) ) {\\n\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\treturn true;\\n\\t\\t}\",\n \"function isScriptLoaded() {\\n var scripts = document.getElementsByTagName('script');\\n var scriptArray = [];\\n for (var i = scripts.length; i--;) {\\n scriptArray.push(scripts[i].src);\\n }\\n return scriptArray;\\n}\",\n \"function jQueryWait() {\\r\\n if (typeof unsafeWindow.jQuery == 'undefined') {\\r\\n window.setTimeout(jQueryWait, 100);\\r\\n } else {\\r\\n $ = unsafeWindow.jQuery;\\r\\n main();\\r\\n }\\r\\n}\",\n \"function scriptLoadHandler()\\n {\\n // Restore $ and window.jQuery to their previous values and store the\\n // new jQuery in our local jQuery variable\\n jQuery = window.jQuery.noConflict(true);\\n\\n // Call widgets init function\\n init(); \\n }\",\n \"function isCalcReady() {\\n\\t\\tif (\\n\\t\\t\\tIS_BUILDER &&\\n\\t\\t\\twindow.Desmos !== undefined &&\\n\\t\\t\\tdocument.querySelector(QRY_EDITOR_MAIN) !== null\\n\\t\\t) {\\n\\t\\t\\tDesmos = window.Desmos;\\n\\t\\t\\treturn true;\\n\\t\\t} else if (\\n\\t\\t\\twindow.Desmos !== undefined &&\\n\\t\\t\\twindow.Calc !== undefined\\n\\t\\t) {\\n\\t\\t\\tDesmos = window.Desmos;\\n\\t\\t\\treturn true;\\n\\t\\t} else {\\n\\t\\t\\treturn false;\\n\\t\\t}\\n\\t}\",\n \"function loadJQuery() {\\n\\n\\t\\tvar onigiriScript = document.getElementById('onigiri-script');\\n\\t\\tvar script = document.createElement('script');\\n\\t\\tscript.type = \\\"text/javascript\\\";\\n\\t\\tscript.id = \\\"box-window-JQuery\\\";\\n\\t\\tscript.src = \\\"https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js\\\";\\n\\n\\t\\tonigiriScript.parentNode.insertBefore(script,onigiriScript)\\n\\n\\t}\",\n \"function pluginloaded()\\n{\\r\\n}\",\n \"function scriptLoadHandler() {\\n\\t\\tjQuery = window.jQuery.noConflict(true);\\n\\t\\tmain();\\n\\t}\",\n \"function scriptLoadHandler() {\\n\\t\\tjQuery = window.jQuery.noConflict(true);\\n\\t\\tmain();\\n\\t}\",\n \"function isCssFileLoaded() {\\n return ($(\\\".hideToc\\\").width() == 30) || isTocVisibleAfterNotVisible();\\n }\",\n \"function isDOMReady()\\r\\n{\\r\\n if (CCSOL.Utiles.ScriptsBeenLoading > 0) return ;\\r\\n // If we already figured out that the page is ready, ignore\\r\\n if (domReady.done)\\r\\n return false;\\r\\n //debugger;\\r\\n // Check to see if a number of functions and elements are\\r\\n // able to be accessed \\r\\n if (document && document.getElementsByTagName && document.getElementById && document.body)\\r\\n {\\r\\n // If they're ready, we can stop checking\\r\\n clearInterval(domReady.timer);\\r\\n domReady.timer = null;\\t\\r\\n // Execute all the functions that were waiting\\r\\n\\ttry {\\r\\n\\t for (var i = 0; i < domReady.ready.length; i++)\\t \\r\\n\\t domReady.ready[i]();\\t \\r\\n\\t}\\r\\n\\tcatch(e) {\\r\\n\\t\\r\\n\\t}\\r\\n\\t\\r\\n\\r\\n // Remember that we're now done\\r\\n domReady.ready = null;\\r\\n domReady.done = true;\\r\\n }\\r\\n}\",\n \"function _Initialise(){\\r\\n\\t\\t\\r\\n\\t\\tfunction __ready(){\\r\\n\\t\\t\\t_PrecompileTemplates();\\r\\n\\t\\t\\t_DefineJqueryPlugins();\\r\\n\\t\\t\\t_CallReadyList();\\r\\n\\t\\t};\\r\\n\\r\\n\\t\\t_jQueryDetected = typeof window.jQuery === \\\"function\\\";\\r\\n\\r\\n\\t\\tif(_jQueryDetected){\\r\\n\\t\\t\\tjQuery(document).ready(__ready);\\r\\n\\t\\t}\\r\\n\\t\\telse{\\r\\n\\t\\t\\tdocument.addEventListener(\\\"DOMContentLoaded\\\", __ready, false);\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t}\",\n \"function checkIfProductLoaded(callback) {\\n\\t\\t\\tif ( $('#fancybox-content').find('.description').length !== 0 ) {\\n\\t\\t\\t\\tcallback();\\n\\t\\t\\t\\treturn true;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tsetTimeout(function() { checkIfProductLoaded(callback) }, 100);\\n\\t\\t\\t}\\n\\t\\t}\",\n \"function loadJQuery(cb) {\\n loadScript('http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js',\\n function() {\\n cb(jQuery.noConflict(true));\\n }\\n );\\n }\",\n \"function loadAutoWoot() {\\n\\tif(window.location.hostname === \\\"plug.dj\\\") { \\n\\t\\t// Get jQuery\\n\\t\\t$.getScript(jQuery).done(function(){\\n\\t\\t\\t// Run the script\\n\\t\\t\\trunAutoWoot();\\n\\t\\t});\\n\\t} else {\\n\\t\\talert('This script can only run on Plug.DJs website.');\\n\\t}\\n}\",\n \"function getJquery() {\\n return request([{\\n \\\"name\\\": \\\"jquery\\\",\\n \\\"src\\\": \\\"js-test-files/jquery-1.11.0.js\\\",\\n \\\"shim\\\": true\\n }]);\\n }\",\n \"function scriptLoadHandler() {\\n\\t\\t// Restore jQuery and window.jQuery to their previous values and store the\\n\\t\\t// new jQuery in our local jQuery variable\\n\\t\\tjQuery = window.jQuery.noConflict(true);\\n\\t\\t$ = window.jQuery;\\n\\t\\t// Call our main function\\n\\t\\tmain(); \\n\\t}\",\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 }\",\n \"function areDependenciesAvailable() {}\",\n \"function jQuerify() {\\n if (typeof jQuery == 'undefined') {\\n var s = document.createElement('script');\\n s.setAttribute('src','http://code.jquery.com/jquery.js');\\n document.getElementsByTagName('body')[0].appendChild(s);\\n }\\n}\",\n \"function domReady() {\\n // Make sure that the DOM is not already loaded\\n if(!isReady) {\\n // Remember that the DOM is ready\\n isReady = true;\\n\\n if(readyList) {\\n for(var fn = 0; fn < readyList.length; fn++) {\\n readyList[fn].call(window, []);\\n }\\n\\n readyList = [];\\n }\\n }\\n }\",\n \"function elementExist(selector) {\\n return $(selector).length > 0;\\n }\",\n \"function isReady() {\\n if (isOldIE) {\\n return document.readyState === 'complete';\\n } else {\\n return document.readyState === 'interactive' || document.readyState === 'complete';\\n }\\n}\",\n \"function isScriptLoaded(elem,scriptentry) {\\n\\t\\t\\tif ((elem.readyState && elem.readyState!==\\\"complete\\\" && elem.readyState!==\\\"loaded\\\") || scriptentry[\\\"done\\\"]) { return 0; }\\n\\t\\t\\telem.onload = elem.onreadystatechange = nNULL; // prevent memory leak\\n\\t\\t\\treturn 1;\\n\\t\\t}\",\n \"function letsJQuery() {\\r\\n SMBD_active = $('body').hasClass('category');\\r\\n \\r\\n if (SMBD_active) {\\r\\n\\tmodifyPage();\\r\\n }\\r\\n}\",\n \"function domReady() {\\r\\n\\t\\t// Make sure that the DOM is not already loaded\\r\\n\\t\\tif(!isReady) {\\r\\n\\t\\t\\t// Remember that the DOM is ready\\r\\n\\t\\t\\tisReady = true;\\r\\n \\r\\n\\t if(readyList) {\\r\\n\\t for(var fn = 0; fn < readyList.length; fn++) {\\r\\n\\t readyList[fn].call(window, []);\\r\\n\\t }\\r\\n \\r\\n\\t readyList = [];\\r\\n\\t }\\r\\n\\t\\t}\\r\\n\\t}\",\n \"function scriptLoadHandler() {\\n // Restore $ and window.jQuery to their previous values and store the\\n // new jQuery in our local jQuery variable\\n jQuery = window.jQuery.noConflict(true);\\n // Call our main function\\n main();\\n }\",\n \"function scriptLoadHandler() {\\n // Restore $ and window.jQuery to their previous values and store the\\n // new jQuery in our local jQuery variable\\n jQuery = window.jQuery.noConflict(true);\\n // Call our main function\\n main();\\n }\",\n \"get loaded () {\\n\\t\\treturn typeof this.elements === 'undefined';\\n\\t}\",\n \"function getReady() \\n\\t\\t{\\n\\t\\t\\tvar deferredReady = $.Deferred();\\n\\t\\t\\t$(document).ready(function()\\n\\t\\t\\t{\\n\\t\\t\\t\\tdeferredReady.resolve();\\n\\t\\t\\t});\\n\\t\\t\\treturn deferredReady.promise();\\n\\t\\t}\",\n \"function scriptLoadHandler() {\\n // Restore jQuery and window.jQuery to their previous values and store the\\n // new jQuery in our local jQuery variable\\n jQuery = window.jQuery.noConflict(true);\\n PlannTo.jQuery = jQuery;\\n\\n // Call our main function\\n\\n main();\\n }\",\n \"function isReady() {\\n if (isOldIE) {\\n return document.readyState === \\\"complete\\\";\\n } else {\\n return document.readyState === \\\"interactive\\\" || document.readyState === \\\"complete\\\";\\n }\\n }\",\n \"function runOnloadIfWidgetsEnabled () {\\n\\t\\t\\n\\t}\",\n \"function scriptLoadHandler() {\\n // Restore $ and window.jQuery to their previous values and store the\\n // new jQuery in our local jQuery variable\\n jQuery = window.jQuery.noConflict(true);\\n // Call our main function\\n main();\\n }\",\n \"function domReady() {\\n // Make sure that the DOM is not already loaded\\n if (!isReady) {\\n // Remember that the DOM is ready\\n isReady = true;\\n\\n if (readyList) {\\n for (var fn = 0; fn < readyList.length; fn++) {\\n readyList[fn].call(window, []);\\n }\\n\\n readyList = [];\\n }\\n }\\n }\",\n \"function domReady() {\\n // Make sure that the DOM is not already loaded\\n if (!isReady) {\\n // Remember that the DOM is ready\\n isReady = true;\\n\\n if (readyList) {\\n for (var fn = 0; fn < readyList.length; fn++) {\\n readyList[fn].call(window, []);\\n }\\n\\n readyList = [];\\n }\\n }\\n }\",\n \"function scriptLoadHandler() {\\n // Restore $ and window.jQuery to their previous values and store the\\n // new jQuery in our local jQuery variable\\n jQuery = window.jQuery.noConflict(true);\\n $ = jQuery;\\n // Call our main function\\n main();\\n }\",\n \"function scriptLoadHandler() {\\n // Restore $ and window.jQuery to their previous values and store the\\n // new jQuery in our local jQuery variable\\n jQuery = window.jQuery.noConflict(true);\\n // Call our main function\\n main();\\n }\",\n \"function scriptLoadHandler() {\\n // Restore $ and window.jQuery to their previous values and store the\\n // new jQuery in our local jQuery variable\\n jQuery = window.jQuery.noConflict(true);\\n // Call our main function\\n main();\\n }\",\n \"function doScrollCheck(){if(jQuery.isReady){return;}try{ // If IE is used, use the trick by Diego Perini\\n\\t// http://javascript.nwbox.com/IEContentLoaded/\\n\\tdocument.documentElement.doScroll(\\\"left\\\");}catch(e){setTimeout(doScrollCheck,1);return;} // and execute any waiting functions\\n\\tjQuery.ready();}\",\n \"function load_externals() {\\n\\t\\tvar css_url = wkof.support_files['jqui_wkmain.css'];\\n\\n\\t\\twkof.include('Jquery');\\n\\t\\treturn wkof.ready('document, Jquery')\\n\\t\\t\\t.then(function(){\\n\\t\\t\\t\\treturn Promise.all([\\n\\t\\t\\t\\t\\twkof.load_script(wkof.support_files['jquery_ui.js'], true /* cache */),\\n\\t\\t\\t\\t\\twkof.load_css(css_url, true /* cache */)\\n\\t\\t\\t\\t]);\\n\\t\\t\\t})\\n\\t\\t\\t.then(function(){\\n\\t\\t\\t\\t// Workaround...\\thttps://community.wanikani.com/t/19984/55\\n\\t\\t\\t\\tdelete $.fn.autocomplete;\\n\\t\\t\\t});\\n\\t}\",\n \"function checkReady() {\\r\\n\\tvar isReady = (domContentLoaded && (xhrDug.readyState == xhrDug.DONE && xhrBuried.readyState == xhrBuried.DONE) || DBG_FAKE_RESPONSE);\\r\\n\\tDBG && win.console.info('checkReady', isReady);\\r\\n\\tif (isReady) {\\r\\n\\t\\tonReady();\\r\\n\\t}\\r\\n}\",\n \"function domReady() {\\n // Make sure body exists, at least, in case IE gets a little overzealous (jQuery ticket #5443).\\n if (!doc.body) {\\n // let's not get nasty by setting a timeout too small.. (loop mania guaranteed if assets are queued)\\n win.clearTimeout(api.readyTimeout);\\n api.readyTimeout = win.setTimeout(domReady, 50);\\n return;\\n }\\n\\n if (!isDomReady) {\\n isDomReady = true;\\n\\n init();\\n each(domWaiters, function (fn) {\\n one(fn);\\n });\\n }\\n }\",\n \"function scriptLoaded(containerId, scriptSrc) {\\n let regex = regexCache[containerId]\\n if (!regex) {\\n const scriptSrcEscaped = scriptSrc\\n .replace(/^https?:\\\\/\\\\//, '')\\n .replace(/[.*+?^${}()|[\\\\]\\\\\\\\]/g, '\\\\\\\\$&')\\n\\n regex = new RegExp(scriptSrcEscaped + '.*[?&]id=' + containerId)\\n regexCache[containerId] = regex\\n }\\n const scripts = document.querySelectorAll('script[src]')\\n return !!Object.keys(scripts).filter((key) => (scripts[key].src || '').match(regex)).length\\n}\",\n \"function _isValidElement( element ) {\\n\\t\\t\\tvar $element = fxcm.lib.isJqueryElement( element ) ? element : $( element );\\n\\t\\t\\treturn $element && $element.length;\\n\\t\\t}\",\n \"function _isValidElement( element ) {\\n\\t\\t\\tvar $element = fxcm.lib.isJqueryElement( element ) ? element : $( element );\\n\\t\\t\\treturn $element && $element.length;\\n\\t\\t}\",\n \"function domReady() {\\n // Make sure that the DOM is not already loaded\\n if (!isReady) {\\n // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\\n if ( !doc.body ) {\\n return setTimeout( domReady, 1 );\\n }\\n // Remember that the DOM is ready\\n isReady = true;\\n // If there are functions bound, to execute\\n domReadyCallback();\\n // Execute all of them\\n }\\n} // /ready()\",\n \"function letsJQuery() {\\n get_layout();\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.7964887","0.78342223","0.75959057","0.72162086","0.70616096","0.6911541","0.68357533","0.66507906","0.66306186","0.65993136","0.6576148","0.6576148","0.6572374","0.65344787","0.6486709","0.64643043","0.64116114","0.63366556","0.6314393","0.6307149","0.616712","0.61212295","0.6092392","0.6079258","0.6079258","0.6079258","0.6079258","0.6078904","0.604978","0.6032349","0.6030226","0.6019925","0.59582436","0.5941114","0.5854445","0.5834575","0.5818705","0.5793142","0.57865536","0.5759665","0.5759665","0.5759665","0.5759665","0.5759665","0.5759665","0.5759665","0.5759665","0.57445836","0.5743572","0.5713776","0.5701705","0.56811744","0.5673176","0.5668139","0.56674993","0.5638652","0.5637097","0.56261885","0.56180257","0.5590544","0.5563432","0.5563432","0.55522114","0.5542884","0.55315834","0.5529845","0.55179596","0.5490636","0.5486526","0.54800695","0.54749906","0.5473763","0.54463387","0.5438265","0.5437894","0.54374415","0.5433424","0.5431164","0.54290897","0.5428412","0.5428412","0.5425672","0.5416662","0.5411962","0.540788","0.54044795","0.5400946","0.5374162","0.5374162","0.53724337","0.53625965","0.53625965","0.5361817","0.53510875","0.53419435","0.53363276","0.5336034","0.53193146","0.53193146","0.5316079","0.531226"],"string":"[\n \"0.7964887\",\n \"0.78342223\",\n \"0.75959057\",\n \"0.72162086\",\n \"0.70616096\",\n \"0.6911541\",\n \"0.68357533\",\n \"0.66507906\",\n \"0.66306186\",\n \"0.65993136\",\n \"0.6576148\",\n \"0.6576148\",\n \"0.6572374\",\n \"0.65344787\",\n \"0.6486709\",\n \"0.64643043\",\n \"0.64116114\",\n \"0.63366556\",\n \"0.6314393\",\n \"0.6307149\",\n \"0.616712\",\n \"0.61212295\",\n \"0.6092392\",\n \"0.6079258\",\n \"0.6079258\",\n \"0.6079258\",\n \"0.6079258\",\n \"0.6078904\",\n \"0.604978\",\n \"0.6032349\",\n \"0.6030226\",\n \"0.6019925\",\n \"0.59582436\",\n \"0.5941114\",\n \"0.5854445\",\n \"0.5834575\",\n \"0.5818705\",\n \"0.5793142\",\n \"0.57865536\",\n \"0.5759665\",\n \"0.5759665\",\n \"0.5759665\",\n \"0.5759665\",\n \"0.5759665\",\n \"0.5759665\",\n \"0.5759665\",\n \"0.5759665\",\n \"0.57445836\",\n \"0.5743572\",\n \"0.5713776\",\n \"0.5701705\",\n \"0.56811744\",\n \"0.5673176\",\n \"0.5668139\",\n \"0.56674993\",\n \"0.5638652\",\n \"0.5637097\",\n \"0.56261885\",\n \"0.56180257\",\n \"0.5590544\",\n \"0.5563432\",\n \"0.5563432\",\n \"0.55522114\",\n \"0.5542884\",\n \"0.55315834\",\n \"0.5529845\",\n \"0.55179596\",\n \"0.5490636\",\n \"0.5486526\",\n \"0.54800695\",\n \"0.54749906\",\n \"0.5473763\",\n \"0.54463387\",\n \"0.5438265\",\n \"0.5437894\",\n \"0.54374415\",\n \"0.5433424\",\n \"0.5431164\",\n \"0.54290897\",\n \"0.5428412\",\n \"0.5428412\",\n \"0.5425672\",\n \"0.5416662\",\n \"0.5411962\",\n \"0.540788\",\n \"0.54044795\",\n \"0.5400946\",\n \"0.5374162\",\n \"0.5374162\",\n \"0.53724337\",\n \"0.53625965\",\n \"0.53625965\",\n \"0.5361817\",\n \"0.53510875\",\n \"0.53419435\",\n \"0.53363276\",\n \"0.5336034\",\n \"0.53193146\",\n \"0.53193146\",\n \"0.5316079\",\n \"0.531226\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":210,"cells":{"query":{"kind":"string","value":"handle simple parameterized types like List real, Pair real TODO: test this"},"document":{"kind":"string","value":"function parseTypeString(s) {\n if (/list|pair/.test(s)) {\n var baseType = /list/.test(s) ? 'list' : 'pair';\n\n var uStart = s.indexOf(\"<\");\n var uEnd = s.lastIndexOf(\">\");\n\n var baseChecker = typeCheckers[baseType];\n\n if (uStart == -1 || uEnd == -1) {\n return baseChecker;\n }\n\n var u = s.slice(uStart + 1, uEnd);\n var uChecker = parseTypeString(u);\n\n if (baseType == 'pair') {\n return function(x) {\n if (!baseChecker(x)) {\n return false;\n }\n\n return uChecker(x[0]) && uChecker(_rest(x));\n };\n }\n\n // otherwise, return checker for list<...>\n return function(x) {\n if (!baseChecker(x)) {\n return false;\n }\n var x_array = listToArray(x);\n for(var i = 0, ii = x_array.length; i < ii; i++) {\n if (!uChecker(x_array[i])) {\n return false;\n };\n }\n return true;\n };\n } else {\n return typeCheckers[s];\n }\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["constructor(type, type_list, value_list=null) {\n super(type)\n this.type_list = type_list\n if(value_list==null){\n value_list = []\n for(var i=0; i selectfunc(b)) { return 1; }\n });\n return this;\n };\n \n this.OrderByDesc = function (selectfunc) {\n array.sort(function (a, b) {\n if (selectfunc(a) > selectfunc(b)) { return -1; }\n if (selectfunc(a) < selectfunc(b)) { return 1; }\n });\n return this;\n };\n\n\n this.ForEach = function (fnc) {\n array.forEach(fnc);\n };\n}","stringifyPair( field, value ) {\n if ( typeof value == \"string\") {\n return '\"'+field+'\":\"'+value+'\"';\n } else if ( typeof value == 'object') {\n if ( value == null ) {\n return '\"'+field+'\":null';\n } if(value.hasOwnProperty('w')) {\n return '\"'+field+'\":'+this.stringifyQuaternion(value);\n } else if (value.hasOwnProperty('x') || value.hasOwnProperty('_x')) {\n return '\"'+field+'\":'+this.stringifyVector(value);\n } else {\n // assuming custom object\n return '\"'+field+'\":'+JSON.stringify(value);\n }\n } else if ( typeof value == 'number') {\n return '\"'+field+'\":'+value;\n } else if ( typeof value == 'boolean') {\n return '\"'+field+'\":'+value;\n } else {\n console.log(\"Unsupported datatype \"+typeof value+\", ignored user event \"+field+\"=\"+value);\n return '';\n }\n }","function sc_isPair(p) {\n return (p instanceof sc_Pair);\n}","static createItem(typeName, ctx=null) {\n console.debug(\"Types.createItem\", typeName);\n if (typeof typeName !== 'string') {\n throw new Error(\"expected type string\");\n }\n var ret;\n const type= allTypes.get( typeName );\n if (!type ) {\n throw new Error(`unknown type '${typeName}'`);\n }\n const { uses } = type;\n switch (uses) {\n case \"flow\": {\n const data= {};\n const spec= type.with;\n const { params } = spec;\n for ( const token in params ) {\n const param= params[token];\n if (!param.optional || param.repeats) {\n const val= (!param.optional) && Types.createItem( param.type, {\n token: token,\n param: param\n });\n // if the param repeats then we'll wind up with an array (of items)\n data[token]= param.repeats? (val? [val]: []): val;\n }\n }\n ret= allTypes.newItem(type.name, data);\n }\n break;\n case \"slot\":\n case \"swap\": {\n // note: \"initially\", if any, is: object { string type; object value; }\n // FIX: \"initially\" wont work properly for opts.\n // slots dont have a $TOKEN entry, but options do.\n const pair= Types._unpack(ctx);\n if (!pair) {\n ret= allTypes.newItem(type.name, null);\n } else {\n const { type:slatType, value:slatValue } = pair;\n ret= Types.createItem(slatType, slatValue);\n }\n }\n break;\n case \"str\":\n case \"txt\": {\n // ex. Item(\"trait\", \"testing\")\n // determine default value\n let defautValue= \"\";\n const spec= type.with;\n const { tokens, params }= spec;\n if (tokens.length === 1) {\n const t= tokens[0];\n const param= params[t];\n // FIX: no .... this is in the \"flow\"... the container of the str.\n // if (param.filterVals && ('default' in param.filterVals)) {\n // defaultValue= param.filterVals['default'];\n // } else {\n // if there's only one token, and that token isn't the \"floating value\" token....\n if (param.value !== null) {\n defautValue= t; // then we can use the token as our default value.\n }\n // }\n }\n const value= Types._unpack(ctx, defautValue);\n // fix? .value for string elements *can* be null,\n // but if they are things in autoText throw.\n // apparently default String prop validation allows null.\n ret= allTypes.newItem(type.name, value);\n }\n break;\n case \"num\": {\n const value= Types._unpack(ctx, 0);\n ret= allTypes.newItem(type.name, value);\n }\n break;\n default:\n throw new Error(`unknown type ${uses}`);\n break;\n }\n return ret;\n }","function ListToObject(a, l, f) {\n\tvar c = l.count;\n\tfor (var i = 0; i < c; i++) {\n\t\tvar t = l.getType(i);\n\t\tswitch (t) {\n\t\t\tcase DescValueType.BOOLEANTYPE:\n\t\t\t\ta.push(l.getBoolean(i));\n\t\t\t\tbreak;\n\t\t\tcase DescValueType.STRINGTYPE:\n\t\t\t\ta.push(l.getString(i));\n\t\t\t\tbreak;\n\t\t\tcase DescValueType.DOUBLETYPE:\n\t\t\t\ta.push(l.getDouble(i));\n\t\t\t\tbreak;\n\t\t\tcase DescValueType.INTEGERTYPE:\n a.push(l.getInteger(i));\n break;\n case DescValueType.LARGEINTEGERTYPE:\n \ta.push(l.getLargeInteger(i));\n \tbreak;\n\t\t\tcase DescValueType.OBJECTTYPE:\n var newT = l.getObjectType(i);\n var newV = l.getObjectValue(i);\n var newO = new Object();\n a.push(newO);\n DescriptorToObject(newO, newV, f);\n break;\n\t\t\tcase DescValueType.UNITDOUBLE:\n var newT = l.getUnitDoubleType(i);\n var newV = l.getUnitDoubleValue(i);\n var newO = new Object();\n a.push(newO);\n newO.type = typeIDToCharID(newT);\n newO.typeString = typeIDToStringID(newT);\n newO.value = newV;\n break;\n\t\t\tcase DescValueType.ENUMERATEDTYPE:\n var newT = l.getEnumerationType(i);\n var newV = l.getEnumerationValue(i);\n var newO = new Object();\n a.push(newO);\n newO.type = typeIDToCharID(newT);\n newO.typeString = typeIDToStringID(newT);\n newO.value = typeIDToCharID(newV);\n newO.valueString = typeIDToStringID(newV);\n break;\n\t\t\tcase DescValueType.CLASSTYPE:\n a.push(l.getClass(i));\n break;\n\t\t\tcase DescValueType.ALIASTYPE:\n a.push(l.getPath(i));\n break;\n\t\t\tcase DescValueType.RAWTYPE:\n var tempStr = l.getData(i);\n tempArray = new Array();\n for (var tempi = 0; tempi < tempStr.length; tempi++) { \n tempArray[tempi] = tempStr.charCodeAt(tempi); \n }\n a.push(tempArray);\n break;\n\t\t\tcase DescValueType.REFERENCETYPE:\n var ref = l.getReference(i);\n var newO = new Object();\n a.push(newO);\n ReferenceToObject(newO, ref, f);\n break;\n\t\t\tcase DescValueType.LISTTYPE:\n var list = l.getList(i);\n var newO = new Object();\n a.push(newO);\n ListToObject(newO, list, f);\n break;\n\t\t\tdefault:\n\t\t\t\tmyLogging.LogIt(\"Unsupported type in descriptorToObject \" + t);\n\t\t}\n\t}\n\tif (undefined != f) {\n\t\to = f(o);\n\t}\n}","function parseTypeString(s) {\n if (/list|pair/.test(s)) {\n var baseType = /list/.test(s) ? 'list' : 'pair';\n\n var uStart = s.indexOf(\"<\");\n var uEnd = s.lastIndexOf(\">\");\n\n var baseChecker = typeCheckers[baseType];\n\n if (uStart == -1 || uEnd == -1) {\n return baseChecker;\n }\n\n var u = s.slice(uStart + 1, uEnd);\n var uChecker = parseTypeString(u);\n\n if (baseType == 'pair') {\n return function(x) {\n if (!baseChecker(x)) {\n return false;\n }\n\n return uChecker(x[0]) && uChecker(_rest(x));\n };\n\n }\n\n // otherwise, return checker for list<...>\n return function(x) {\n if (!baseChecker(x)) {\n return false;\n }\n var x_array = listToArray(x);\n for(var i = 0, ii = x_array.length; i < ii; i++) {\n if (!uChecker(x_array[i])) {\n return false;\n };\n }\n return true;\n };\n\n\n } else {\n return typeCheckers[s];\n }\n}","function isSimpleValue(arg) {\n if (Array.isArray(arg) || typeof arg === 'function') return false;\n if (arg == null || typeof arg !== 'object') return true;\n if (arg.valueOf && typeof arg.valueOf() !== 'object') {\n return true;\n }\n return false;\n }","function validateCompoundWithType(attribute, values) {\n\t\t for(var i in values) {\n\t\t var value = values[i];\n\t\t if(typeof(value) !== 'object') {\n\t\t\t errors.push([attribute + '-' + i, \"not-an-object\"]);\n\t\t } else if(! value.type) {\n\t\t\t errors.push([attribute + '-' + i, \"missing-type\"]);\n\t\t } else if(! value.value) { // empty values are not allowed.\n\t\t\t errors.push([attribute + '-' + i, \"missing-value\"]);\n\t\t }\n\t\t }\n\t }","function notValid_anySimpleType(strObj) {\n\treturn false;\n }","function type_resolver_from_list(lst)\n {\n var param_length = lst[0].length - 1;\n return function() {\n if (arguments.length != param_length) {\n throw new Error(\"expected \" + param_length + \" arguments, got \"\n + arguments.length + \" instead.\");\n }\n for (var i=0; i size) {\n\t throw new Error('Elements exceed array size: ' + size)\n\t }\n\t ret = []\n\t type = type.slice(0, type.lastIndexOf('['))\n\t if (typeof arg === 'string') {\n\t arg = JSON.parse(arg)\n\t }\n\t for (i in arg) {\n\t ret.push(encodeSingle(type, arg[i]))\n\t }\n\t if (size === 'dynamic') {\n\t var length = encodeSingle('uint256', arg.length)\n\t ret.unshift(length)\n\t }\n\t return Buffer.concat(ret)\n\t } else if (type === 'bytes') {\n\t arg = new Buffer(arg)\n\t\n\t ret = Buffer.concat([ encodeSingle('uint256', arg.length), arg ])\n\t\n\t if ((arg.length % 32) !== 0) {\n\t ret = Buffer.concat([ ret, utils.zeros(32 - (arg.length % 32)) ])\n\t }\n\t\n\t return ret\n\t } else if (type.startsWith('bytes')) {\n\t size = parseTypeN(type)\n\t if (size < 1 || size > 32) {\n\t throw new Error('Invalid bytes width: ' + size)\n\t }\n\t\n\t return utils.setLengthRight(arg, 32)\n\t } else if (type.startsWith('uint')) {\n\t size = parseTypeN(type)\n\t if ((size % 8) || (size < 8) || (size > 256)) {\n\t throw new Error('Invalid uint width: ' + size)\n\t }\n\t\n\t num = parseNumber(arg)\n\t if (num.bitLength() > size) {\n\t throw new Error('Supplied uint exceeds width: ' + size + ' vs ' + num.bitLength())\n\t }\n\t\n\t if (num < 0) {\n\t throw new Error('Supplied uint is negative')\n\t }\n\t\n\t return num.toArrayLike(Buffer, 'be', 32)\n\t } else if (type.startsWith('int')) {\n\t size = parseTypeN(type)\n\t if ((size % 8) || (size < 8) || (size > 256)) {\n\t throw new Error('Invalid int width: ' + size)\n\t }\n\t\n\t num = parseNumber(arg)\n\t if (num.bitLength() > size) {\n\t throw new Error('Supplied int exceeds width: ' + size + ' vs ' + num.bitLength())\n\t }\n\t\n\t return num.toTwos(256).toArrayLike(Buffer, 'be', 32)\n\t } else if (type.startsWith('ufixed')) {\n\t size = parseTypeNxM(type)\n\t\n\t num = parseNumber(arg)\n\t\n\t if (num < 0) {\n\t throw new Error('Supplied ufixed is negative')\n\t }\n\t\n\t return encodeSingle('uint256', num.mul(new BN(2).pow(new BN(size[1]))))\n\t } else if (type.startsWith('fixed')) {\n\t size = parseTypeNxM(type)\n\t\n\t return encodeSingle('int256', parseNumber(arg).mul(new BN(2).pow(new BN(size[1]))))\n\t }\n\t\n\t throw new Error('Unsupported or invalid type: ' + type)\n\t}","function parseAny(record, name, schema, extra) {\n\n if (schema['type'] === 'object') {\n return parseObject(record, name, schema['properties'], extra);\n }\n if (schema['type'] === 'string') {\n return parseString(record, name, extra);\n }\n }","constructor(elements) {\n super();\n /**\n * The type name identifier.\n */\n this.type = \"tuple\";\n this.elements = elements;\n }","function processValue({ type, items }, value) {\n if (value == null) {\n return undefined;\n }\n else if (value === \"\") {\n return undefined;\n } else if (type === \"array\" && items && nums.has(items.type)) {\n return value.map(asNumber);\n } else if (type === \"boolean\") {\n return value === \"true\";\n } else if (type === \"number\") {\n return asNumber(value);\n }\n return value;\n}","function encodeSingle (type, arg) {\n var size, num, ret, i\n\n if (type === 'address') {\n return encodeSingle('uint160', parseNumber(arg))\n } else if (type === 'bool') {\n return encodeSingle('uint8', arg ? 1 : 0)\n } else if (type === 'string') {\n return encodeSingle('bytes', Buffer.from(arg, 'utf8'))\n } else if (isArray(type)) {\n // this part handles fixed-length ([2]) and variable length ([]) arrays\n // NOTE: we catch here all calls to arrays, that simplifies the rest\n if (typeof arg.length === 'undefined') {\n throw new Error('Not an array?')\n }\n size = parseTypeArray(type)\n if (size !== 'dynamic' && size !== 0 && arg.length > size) {\n throw new Error('Elements exceed array size: ' + size)\n }\n ret = []\n type = type.slice(0, type.lastIndexOf('['))\n if (typeof arg === 'string') {\n arg = JSON.parse(arg)\n }\n for (i in arg) {\n ret.push(encodeSingle(type, arg[i]))\n }\n if (size === 'dynamic') {\n var length = encodeSingle('uint256', arg.length)\n ret.unshift(length)\n }\n return Buffer.concat(ret)\n } else if (type === 'bytes') {\n arg = Buffer.from(arg)\n\n ret = Buffer.concat([ encodeSingle('uint256', arg.length), arg ])\n\n if ((arg.length % 32) !== 0) {\n ret = Buffer.concat([ ret, utils.zeros(32 - (arg.length % 32)) ])\n }\n\n return ret\n } else if (type.startsWith('bytes')) {\n size = parseTypeN(type)\n if (size < 1 || size > 32) {\n throw new Error('Invalid bytes width: ' + size)\n }\n\n return utils.setLengthRight(arg, 32)\n } else if (type.startsWith('uint')) {\n size = parseTypeN(type)\n if ((size % 8) || (size < 8) || (size > 256)) {\n throw new Error('Invalid uint width: ' + size)\n }\n\n num = parseNumber(arg)\n if (num.bitLength() > size) {\n throw new Error('Supplied uint exceeds width: ' + size + ' vs ' + num.bitLength())\n }\n\n if (num < 0) {\n throw new Error('Supplied uint is negative')\n }\n\n return num.toArrayLike(Buffer, 'be', 32)\n } else if (type.startsWith('int')) {\n size = parseTypeN(type)\n if ((size % 8) || (size < 8) || (size > 256)) {\n throw new Error('Invalid int width: ' + size)\n }\n\n num = parseNumber(arg)\n if (num.bitLength() > size) {\n throw new Error('Supplied int exceeds width: ' + size + ' vs ' + num.bitLength())\n }\n\n return num.toTwos(256).toArrayLike(Buffer, 'be', 32)\n } else if (type.startsWith('ufixed')) {\n size = parseTypeNxM(type)\n\n num = parseNumber(arg)\n\n if (num < 0) {\n throw new Error('Supplied ufixed is negative')\n }\n\n return encodeSingle('uint256', num.mul(new BN(2).pow(new BN(size[1]))))\n } else if (type.startsWith('fixed')) {\n size = parseTypeNxM(type)\n\n return encodeSingle('int256', parseNumber(arg).mul(new BN(2).pow(new BN(size[1]))))\n }\n\n throw new Error('Unsupported or invalid type: ' + type)\n}","function encodeSingle (type, arg) {\n var size, num, ret, i\n\n if (type === 'address') {\n return encodeSingle('uint160', parseNumber(arg))\n } else if (type === 'bool') {\n return encodeSingle('uint8', arg ? 1 : 0)\n } else if (type === 'string') {\n return encodeSingle('bytes', Buffer.from(arg, 'utf8'))\n } else if (isArray(type)) {\n // this part handles fixed-length ([2]) and variable length ([]) arrays\n // NOTE: we catch here all calls to arrays, that simplifies the rest\n if (typeof arg.length === 'undefined') {\n throw new Error('Not an array?')\n }\n size = parseTypeArray(type)\n if (size !== 'dynamic' && size !== 0 && arg.length > size) {\n throw new Error('Elements exceed array size: ' + size)\n }\n ret = []\n type = type.slice(0, type.lastIndexOf('['))\n if (typeof arg === 'string') {\n arg = JSON.parse(arg)\n }\n for (i in arg) {\n ret.push(encodeSingle(type, arg[i]))\n }\n if (size === 'dynamic') {\n var length = encodeSingle('uint256', arg.length)\n ret.unshift(length)\n }\n return Buffer.concat(ret)\n } else if (type === 'bytes') {\n arg = Buffer.from(arg)\n\n ret = Buffer.concat([ encodeSingle('uint256', arg.length), arg ])\n\n if ((arg.length % 32) !== 0) {\n ret = Buffer.concat([ ret, utils.zeros(32 - (arg.length % 32)) ])\n }\n\n return ret\n } else if (type.startsWith('bytes')) {\n size = parseTypeN(type)\n if (size < 1 || size > 32) {\n throw new Error('Invalid bytes width: ' + size)\n }\n\n return utils.setLengthRight(arg, 32)\n } else if (type.startsWith('uint')) {\n size = parseTypeN(type)\n if ((size % 8) || (size < 8) || (size > 256)) {\n throw new Error('Invalid uint width: ' + size)\n }\n\n num = parseNumber(arg)\n if (num.bitLength() > size) {\n throw new Error('Supplied uint exceeds width: ' + size + ' vs ' + num.bitLength())\n }\n\n if (num < 0) {\n throw new Error('Supplied uint is negative')\n }\n\n return num.toArrayLike(Buffer, 'be', 32)\n } else if (type.startsWith('int')) {\n size = parseTypeN(type)\n if ((size % 8) || (size < 8) || (size > 256)) {\n throw new Error('Invalid int width: ' + size)\n }\n\n num = parseNumber(arg)\n if (num.bitLength() > size) {\n throw new Error('Supplied int exceeds width: ' + size + ' vs ' + num.bitLength())\n }\n\n return num.toTwos(256).toArrayLike(Buffer, 'be', 32)\n } else if (type.startsWith('ufixed')) {\n size = parseTypeNxM(type)\n\n num = parseNumber(arg)\n\n if (num < 0) {\n throw new Error('Supplied ufixed is negative')\n }\n\n return encodeSingle('uint256', num.mul(new BN(2).pow(new BN(size[1]))))\n } else if (type.startsWith('fixed')) {\n size = parseTypeNxM(type)\n\n return encodeSingle('int256', parseNumber(arg).mul(new BN(2).pow(new BN(size[1]))))\n }\n\n throw new Error('Unsupported or invalid type: ' + type)\n}","function encodeSingle (type, arg) {\n var size, num, ret, i\n\n if (type === 'address') {\n return encodeSingle('uint160', parseNumber(arg))\n } else if (type === 'bool') {\n return encodeSingle('uint8', arg ? 1 : 0)\n } else if (type === 'string') {\n return encodeSingle('bytes', new Buffer(arg, 'utf8'))\n } else if (isArray(type)) {\n // this part handles fixed-length ([2]) and variable length ([]) arrays\n // NOTE: we catch here all calls to arrays, that simplifies the rest\n if (typeof arg.length === 'undefined') {\n throw new Error('Not an array?')\n }\n size = parseTypeArray(type)\n if (size !== 'dynamic' && size !== 0 && arg.length > size) {\n throw new Error('Elements exceed array size: ' + size)\n }\n ret = []\n type = type.slice(0, type.lastIndexOf('['))\n if (typeof arg === 'string') {\n arg = JSON.parse(arg)\n }\n for (i in arg) {\n ret.push(encodeSingle(type, arg[i]))\n }\n if (size === 'dynamic') {\n var length = encodeSingle('uint256', arg.length)\n ret.unshift(length)\n }\n return Buffer.concat(ret)\n } else if (type === 'bytes') {\n arg = new Buffer(arg)\n\n ret = Buffer.concat([ encodeSingle('uint256', arg.length), arg ])\n\n if ((arg.length % 32) !== 0) {\n ret = Buffer.concat([ ret, utils.zeros(32 - (arg.length % 32)) ])\n }\n\n return ret\n } else if (type.startsWith('bytes')) {\n size = parseTypeN(type)\n if (size < 1 || size > 32) {\n throw new Error('Invalid bytes width: ' + size)\n }\n\n return utils.setLengthRight(arg, 32)\n } else if (type.startsWith('uint')) {\n size = parseTypeN(type)\n if ((size % 8) || (size < 8) || (size > 256)) {\n throw new Error('Invalid uint width: ' + size)\n }\n\n num = parseNumber(arg)\n if (num.bitLength() > size) {\n throw new Error('Supplied uint exceeds width: ' + size + ' vs ' + num.bitLength())\n }\n\n if (num < 0) {\n throw new Error('Supplied uint is negative')\n }\n\n return num.toArrayLike(Buffer, 'be', 32)\n } else if (type.startsWith('int')) {\n size = parseTypeN(type)\n if ((size % 8) || (size < 8) || (size > 256)) {\n throw new Error('Invalid int width: ' + size)\n }\n\n num = parseNumber(arg)\n if (num.bitLength() > size) {\n throw new Error('Supplied int exceeds width: ' + size + ' vs ' + num.bitLength())\n }\n\n return num.toTwos(256).toArrayLike(Buffer, 'be', 32)\n } else if (type.startsWith('ufixed')) {\n size = parseTypeNxM(type)\n\n num = parseNumber(arg)\n\n if (num < 0) {\n throw new Error('Supplied ufixed is negative')\n }\n\n return encodeSingle('uint256', num.mul(new BN(2).pow(new BN(size[1]))))\n } else if (type.startsWith('fixed')) {\n size = parseTypeNxM(type)\n\n return encodeSingle('int256', parseNumber(arg).mul(new BN(2).pow(new BN(size[1]))))\n }\n\n throw new Error('Unsupported or invalid type: ' + type)\n}","function constructParams(types, data) {\n return types.map(function (type, i) {\n if (data && data[i]) {\n return new type(data[i]);\n }\n return new type();\n });\n}","function constructParams(types, data) {\n return types.map(function (type, i) {\n if (data && data[i]) {\n return new type(data[i]);\n }\n return new type();\n });\n}","function parsePrimitives(info, name, value) {\n var index\n var length\n var result\n\n if (typeof value !== 'object' || !('length' in value)) {\n return parsePrimitive(info, name, value)\n }\n\n length = value.length\n index = -1\n result = []\n\n while (++index < length) {\n result[index] = parsePrimitive(info, name, value[index])\n }\n\n return result\n}","function parsePrimitives(info, name, value) {\n var index\n var length\n var result\n\n if (typeof value !== 'object' || !('length' in value)) {\n return parsePrimitive(info, name, value)\n }\n\n length = value.length\n index = -1\n result = []\n\n while (++index < length) {\n result[index] = parsePrimitive(info, name, value[index])\n }\n\n return result\n}","checkTypes(args, parameters) {\n for (let i = 0; i < args.length; i++) {\n if (args[i].type != parameters[i]) {\n return {\n valid: false,\n invalidType: args[i].type,\n expected: parameters[i]\n };\n }\n }\n return { valid: true };\n }","function Pair(s1, s2) {\n\n // The first shape.\n this.shape1 = s1 || null;\n // The second shape.\n this.shape2 = s2 || null;\n}","function sc_list() {\n var res = null;\n var a = arguments;\n for (var i = a.length-1; i >= 0; i--)\n\tres = new sc_Pair(a[i], res);\n return res;\n}","mk$params() {\n const arg_arr = this.$args.v;\n const params = [];\n arg_arr.forEach((t) => {\n if (this.is$typevar(t)) {\n if (this.tuple$index(params, t) < 0) {\n params.push(t);\n }\n }\n });\n this.$params = new Sk.builtin.tuple(params);\n }","function checkType(x) {\n // if(typeof x == \"function\" || x == undefined) {\n // return;\n // }\n if(typeof x == \"number\" || typeof x == \"boolean\" || x == null) {\n if (x === undefined) return '\"null\"';\n placeholder = String(x);\n return placeholder;\n }\n if(typeof x == \"string\") {\n placeholder = ['\"' + x + '\"'].join();\n return placeholder\n }\n \n if(typeof x == \"object\") {\n if(Array.isArray(x) == false) {\n if(x == {}) {\n return \"{}\";\n } else {\n return runThroughObject(x);\n };\n } else {\n if(x.length === 0) {\n return \"[]\"\n } else {\n return runThroughArray(x);\n }\n }\n }\n }","function expand1_99(x) {\n\t//console.log('expand1_99 input', tsRec(x))\n\t//console.log('expand1_99');\n\tif (isList(x)) {\n\t\t//console.log('expand1_99: x should be dict BUT is a list', x);\n\t}\n\tif (isDict(x)) { // TODO: || isList(x)) {\n\t\t// if (isList(x)) {\n\t\t// \t//console.log('process: list',x)\n\t\t// }\n\t\tif ('_set' in x) {\n\t\t\t//console.log('handleSet wird aufgerufen')\n\t\t\treturn handleSet(x._set);\n\t\t} else if ('_tuple' in x) {\n\t\t\t//console.log('handleTuple wird aufgerufen')\n\t\t\treturn handleTuple(x._tuple);\n\t\t} else if ('type' in x) {\n\t\t\treturn handleAction(x);\n\t\t} else { error('IMPOSSIBLE OBJECT', x); return null; }\n\t} else { error('IMPOSSIBLE TYPE', x); return null; }\n}","function getType(type) {\n // Remove spaces.\n type = type.replace(/\\s/g, '');\n // Convert [] to Array<> for generics.\n var sqBracketIndex = type.indexOf('[');\n if (sqBracketIndex !== -1) {\n return \"Array<\" + getType(type.slice(0, sqBracketIndex)) + \">\";\n }\n\n // If type has < in it already, translate generic argument.\n var angleIndex = type.indexOf('<');\n if (angleIndex !== -1) {\n type = type.slice(0, angleIndex) + '<' + getType(type.slice(angleIndex + 1, type.indexOf('>'))) + \">\";\n }\n\n switch (type) {\n // Weird things. Prune items as we fix docs.\n case 'obj':\n case 'ConvenientHunk':\n case 'lineStats':\n case 'RevWalk':\n case 'StatusFile':\n case 'historyEntry':\n case 'DiffList':\n return 'any';\n // Untyped function callbacks.\n case 'CheckoutNotifyCb':\n case 'CheckoutPerfdataCb':\n case 'CheckoutProgressCb':\n case 'DiffFileCb':\n case 'DiffBinaryCb':\n case 'DiffHunkCb':\n case 'DiffLineCb':\n case 'DiffNotifyCb':\n case 'CredAcquireCb':\n case 'FetchheadForeachCb':\n case 'FilterStreamFn':\n case 'IndexMatchedPathCb':\n case 'NoteForeachCb':\n case 'StashCb':\n case 'StashApplyProgressCb':\n case 'StatusCb':\n case 'SubmoduleCb':\n case 'TransferProgressCb':\n case 'TransportCb':\n case 'TransportCertificateCheckCb':\n return 'Function';\n // Primitives\n case 'String':\n return 'string';\n case 'Char':\n case 'int':\n case 'Number':\n return 'number';\n case 'Void':\n return 'void';\n case 'bool':\n return 'boolean';\n case 'Array':\n return 'Array';\n // Avoiding type collusions\n case 'Object':\n return 'GitObject';\n case 'Blob':\n return 'GitBlob';\n // NodeJS types\n case 'EventEmitter':\n return 'NodeJS.EventEmitter';\n default:\n var dotIndex = type.indexOf('.');\n if (dotIndex !== -1) {\n if (type[dotIndex + 1] === '<') {\n // Sometimes, the docs include a '.' between the type and the generic type argument.\n return type.replace(/\\./g, '');\n } else {\n // Remove '.' from types (e.g. Reference.Type => ReferenceType) as\n // we make them part of the outer scope.\n // Also, convert the owner of the type properly (e.g. Object.TYPE => GitObjectTYPE).\n return getType(type.slice(0, dotIndex)) + type.slice(dotIndex + 1);\n }\n } else {\n // Check for weird things. If there are weird things, punt with 'any'.\n if (type.indexOf('(') !== -1 || type.indexOf(':') !== -1) {\n return 'any';\n }\n\n return type;\n }\n }\n }","function parsePrimitives(info, name, value) {\n var index;\n var length;\n var result;\n if (typeof value !== 'object' || !('length' in value)) {\n return parsePrimitive(info, name, value);\n }\n length = value.length;\n index = -1;\n result = [];\n while (++index < length) {\n result[index] = parsePrimitive(info, name, value[index]);\n }\n return result;\n}","function isValidLiteralValue(type, valueAST) {\n\t // A value must be provided if the type is non-null.\n\t if (type instanceof _definition.GraphQLNonNull) {\n\t if (!valueAST) {\n\t if (type.ofType.name) {\n\t return ['Expected \"' + String(type.ofType.name) + '!\", found null.'];\n\t }\n\t return ['Expected non-null value, found null.'];\n\t }\n\t return isValidLiteralValue(type.ofType, valueAST);\n\t }\n\n\t if (!valueAST) {\n\t return [];\n\t }\n\n\t // This function only tests literals, and assumes variables will provide\n\t // values of the correct type.\n\t if (valueAST.kind === _kinds.VARIABLE) {\n\t return [];\n\t }\n\n\t // Lists accept a non-list value as a list of one.\n\t if (type instanceof _definition.GraphQLList) {\n\t var _ret = function () {\n\t var itemType = type.ofType;\n\t if (valueAST.kind === _kinds.LIST) {\n\t return {\n\t v: valueAST.values.reduce(function (acc, itemAST, index) {\n\t var errors = isValidLiteralValue(itemType, itemAST);\n\t return acc.concat(errors.map(function (error) {\n\t return 'In element #' + index + ': ' + error;\n\t }));\n\t }, [])\n\t };\n\t }\n\t return {\n\t v: isValidLiteralValue(itemType, valueAST)\n\t };\n\t }();\n\n\t if (typeof _ret === \"object\") return _ret.v;\n\t }\n\n\t // Input objects check each defined field and look for undefined fields.\n\t if (type instanceof _definition.GraphQLInputObjectType) {\n\t var _ret2 = function () {\n\t if (valueAST.kind !== _kinds.OBJECT) {\n\t return {\n\t v: ['Expected \"' + type.name + '\", found not an object.']\n\t };\n\t }\n\t var fields = type.getFields();\n\n\t var errors = [];\n\n\t // Ensure every provided field is defined.\n\t var fieldASTs = valueAST.fields;\n\t fieldASTs.forEach(function (providedFieldAST) {\n\t if (!fields[providedFieldAST.name.value]) {\n\t errors.push('In field \"' + providedFieldAST.name.value + '\": Unknown field.');\n\t }\n\t });\n\n\t // Ensure every defined field is valid.\n\t var fieldASTMap = (0, _keyMap2.default)(fieldASTs, function (fieldAST) {\n\t return fieldAST.name.value;\n\t });\n\t Object.keys(fields).forEach(function (fieldName) {\n\t var result = isValidLiteralValue(fields[fieldName].type, fieldASTMap[fieldName] && fieldASTMap[fieldName].value);\n\t errors.push.apply(errors, result.map(function (error) {\n\t return 'In field \"' + fieldName + '\": ' + error;\n\t }));\n\t });\n\n\t return {\n\t v: errors\n\t };\n\t }();\n\n\t if (typeof _ret2 === \"object\") return _ret2.v;\n\t }\n\n\t (0, _invariant2.default)(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType, 'Must be input type');\n\n\t // Scalar/Enum input checks to ensure the type can parse the value to\n\t // a non-null value.\n\t var parseResult = type.parseLiteral(valueAST);\n\t if ((0, _isNullish2.default)(parseResult)) {\n\t return ['Expected type \"' + type.name + '\", found ' + (0, _printer.print)(valueAST) + '.'];\n\t }\n\n\t return [];\n\t}","function is(type, item) { return (typeof item)[0] == type; }","function is(type, item) { return (typeof item)[0] == type; }","function is(type, item) { return (typeof item)[0] == type; }","function is(type, item) { return (typeof item)[0] == type; }","validateInput(pairs, callback) {\n if ( typeof pairs != 'object' || ! Array.isArray(pairs)) {\n throw Error(\"1st arg expected to be an array of currency pairs: \", typeof pairs)\n }\n if ( typeof callback != 'function' ) {\n throw Error(\"2nd arg expected to be a callback function: \", typeof callback)\n }\n\n pairs.forEach( function(element, index) {\n if ( typeof element != 'object' ) {\n throw Error(\"not an array of objects\")\n }\n if ( element.source == undefined ) {\n throw Error(\"'source' not defined in pair\")\n }\n if ( element.dest == undefined ) {\n throw Error(\"'dest' not defined in pair\")\n }\n })\n }","function parametersIncludeType(parameters) {var typeValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"\";\n if (immutable__WEBPACK_IMPORTED_MODULE_15__[\"List\"].isList(parameters)) {\n return _babel_runtime_corejs3_core_js_stable_instance_some__WEBPACK_IMPORTED_MODULE_11___default()(parameters).call(parameters, function (p) {return immutable__WEBPACK_IMPORTED_MODULE_15__[\"Map\"].isMap(p) && p.get(\"type\") === typeValue;});\n }\n}","function _scalar( mixed ) {\n\t\treturn\ttypeof mixed == 'number' && 'number' ||\n\t\t\t\t\t\ttypeof mixed == 'string' && 'string' ||\n\t\t\t\t\t\ttypeof mixed == 'boolean' && 'boolean' ||\n\t\t\t\t\t\ttypeof mixed == 'undefined' && 'undefined' ||\n\t\t\t\t\t\tfalse;\n\t}","if (type instanceof GraphQLList) {\n const itemType = type.ofType;\n if (isCollection(value)) {\n const errors = [];\n forEach((value: any), (item, index) => {\n errors.push.apply(\n errors,\n isValidJSValue(item, itemType).map(\n error => `In element #${index}: ${error}`,\n ),\n );\n });\n return errors;\n }\n return isValidJSValue(value, itemType);\n }","_checkType(element, item) {\n let result;\n //Check if element is a String\n if (_.isString(element)) {\n result = [{\n item: item,\n value: this._options.handleString(element, item),\n }];\n }\n //Check if element is a Number\n else if (_.isNumber(element)) {\n result = [{\n item: item,\n value: this._options.handleNumber(element, item),\n }];\n }\n //Check if element is a Boolean\n else if (_.isBoolean(element)) {\n result = [{\n item: item,\n value: this._options.handleBoolean(element, item),\n }];\n }\n //Check if element is a Date\n else if (_.isDate(element)) {\n result = [{\n item: item,\n value: this._options.handleDate(element, item),\n }];\n }\n //Check if element is an Array\n else if (_.isArray(element)) {\n var resultArray = this._handleArray(element, item);\n result = this._setHeaders(resultArray, item);\n }\n //Check if element is a Object\n else if (_.isObject(element)) {\n var resultObject = this._handleObject(element, item);\n result = this._setHeaders(resultObject, item);\n } else {\n result = [{\n item: item,\n value: '',\n }];\n }\n return result;\n }","function tt(t) {\n return \"nullValue\" in t ? 0 /* NullValue */ : \"booleanValue\" in t ? 1 /* BooleanValue */ : \"integerValue\" in t || \"doubleValue\" in t ? 2 /* NumberValue */ : \"timestampValue\" in t ? 3 /* TimestampValue */ : \"stringValue\" in t ? 5 /* StringValue */ : \"bytesValue\" in t ? 6 /* BlobValue */ : \"referenceValue\" in t ? 7 /* RefValue */ : \"geoPointValue\" in t ? 8 /* GeoPointValue */ : \"arrayValue\" in t ? 9 /* ArrayValue */ : \"mapValue\" in t ? X(t) ? 4 /* ServerTimestampValue */ : 10 /* ObjectValue */ : Gn(\"Invalid value type: \" + JSON.stringify(t));\n}","function whatDatatype(arg){\n return typeof(arg);\n}","function addTypes(env, sexp, constraints) {\n var type = null;\n switch (sexp.tag) {\n case 'sym':\n if (sexp.val in env) {\n type = env[sexp.val];\n } else {\n throw 'unknown sym ' + sexp.val;\n }\n break;\n case 'str': type = TString; break;\n case 'num': type = TNum; break;\n case 'lst':\n var head = sexp.val[0];\n if (head.val == 'fn') {\n var args = sexp.val[1].val;\n // Create new entry in env for each arg.\n env = Object.create(env);\n args.forEach(function(arg) { env[arg.val] = gentvar(); });\n\n var body = sexp.val.slice(2);\n body.forEach(function(sexp) { addTypes(env, sexp, constraints); });\n type = new Tfn(args.map(function(arg){ return env[arg.val]; }),\n body[body.length-1].type);\n } else {\n // Application of head to rest of sexp.\n sexp.val.forEach(function(sexp) { addTypes(env, sexp, constraints); });\n var args = sexp.val.slice(1);\n\n var fntype = new Tfn(args.map(function(arg) { return arg.type }),\n gentvar());\n constraints.push([head.type, fntype]);\n type = fntype.ret;\n }\n break;\n case 'vec':\n var elemtype = gentvar();\n sexp.val.forEach(function(sexp) {\n addTypes(env, sexp, constraints);\n constraints.push([elemtype, sexp.type]);\n });\n type = newTArray(elemtype);\n break;\n default: throw 'unknown sexp: ' + sexp.tag + ': ' + sexp;\n }\n if (!type)\n throw 'no type for ' + sexp.tag + ': ' + sexp;\n sexp.type = type;\n}","function parseType(type) {\n if (typeof type === 'function') {\n return new type();\n } else if (isArray(type)) {\n return [parseType(type[0])];\n } else if (type && typeof type === 'object') {\n var rv = {};\n applyStructure(rv, type);\n return rv;\n } else {\n return type;\n }\n}","function o(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}","function M(t) {\n return \"nullValue\" in t ? 0 /* NullValue */ : \"booleanValue\" in t ? 1 /* BooleanValue */ : \"integerValue\" in t || \"doubleValue\" in t ? 2 /* NumberValue */ : \"timestampValue\" in t ? 3 /* TimestampValue */ : \"stringValue\" in t ? 5 /* StringValue */ : \"bytesValue\" in t ? 6 /* BlobValue */ : \"referenceValue\" in t ? 7 /* RefValue */ : \"geoPointValue\" in t ? 8 /* GeoPointValue */ : \"arrayValue\" in t ? 9 /* ArrayValue */ : \"mapValue\" in t ? O(t) ? 4 /* ServerTimestampValue */ : 10 /* ObjectValue */ : _e(\"Invalid value type: \" + JSON.stringify(t));\n}","function typenize (type)\n {\n let typewords = type.split(' ');\n\n if (typewords.length === 1)\n {\n if (typewords[0] === 'Integer' || typewords[0] === 'Float')\n return 'number';\n\n else if (typewords[0] === 'String')\n return 'string';\n\n else if (typewords[0] === 'Boolean' || typewords[0] === 'True' || typewords[0] === 'False')\n return 'boolean';\n \n else if (typewords[0] === 'InputFile')\n return '{ name: string, data: Buffer }';\n\n else if (typewords[0] === 'CallbackGame')\n return 'any';\n\n else\n return typewords[0];\n }\n\n else if (typewords.length === 3)\n {\n if (typewords[0] === 'Array' && typewords[1] === 'of')\n return 'Array<' + typenize(typewords[2]) + '>';\n\n else if (typewords[1] === 'or')\n return typenize(typewords[0]) + ' | ' + typenize(typewords[2]);\n }\n\n return 'any';\n }","function miniKindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n var type = typeof val;\n\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n var constructorName = ctorName(val);\n\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n } // other\n\n\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}","function add_primitives(...primitive_pairs) {\n for (var i = 0; i < primitive_pairs.length; i++) {\n PRIMITIVES.push(primitive_pairs[i]);\n }\n}","function parseParameter$1(def, spec, scope) {\n var type = def.type,\n value = spec[def.name];\n\n if (type === 'index') {\n return parseIndexParameter(def, spec, scope);\n } else if (value === undefined) {\n if (def.required) {\n error('Missing required ' + $(spec.type)\n + ' parameter: ' + $(def.name));\n }\n return;\n } else if (type === 'param') {\n return parseSubParameters(def, spec, scope);\n } else if (type === 'projection') {\n return scope.projectionRef(spec[def.name]);\n }\n\n return def.array && !isSignal(value)\n ? value.map(function(v) { return parameterValue(def, v, scope); })\n : parameterValue(def, value, scope);\n }","function isValueObject(obj) {\n\treturn (obj instanceof Number) || (obj instanceof String) || (obj instanceof Boolean) || (obj === null);\n}","function isValidLiteralValue(type, valueNode) {\n // A value must be provided if the type is non-null.\n if (type instanceof _definition.GraphQLNonNull) {\n if (!valueNode || valueNode.kind === _kinds.NULL) {\n return ['Expected \"' + String(type) + '\", found null.'];\n }\n return isValidLiteralValue(type.ofType, valueNode);\n }\n\n if (!valueNode || valueNode.kind === _kinds.NULL) {\n return [];\n }\n\n // This function only tests literals, and assumes variables will provide\n // values of the correct type.\n if (valueNode.kind === _kinds.VARIABLE) {\n return [];\n }\n\n // Lists accept a non-list value as a list of one.\n if (type instanceof _definition.GraphQLList) {\n var itemType = type.ofType;\n if (valueNode.kind === _kinds.LIST) {\n return valueNode.values.reduce(function (acc, item, index) {\n var errors = isValidLiteralValue(itemType, item);\n return acc.concat(errors.map(function (error) {\n return 'In element #' + index + ': ' + error;\n }));\n }, []);\n }\n return isValidLiteralValue(itemType, valueNode);\n }\n\n // Input objects check each defined field and look for undefined fields.\n if (type instanceof _definition.GraphQLInputObjectType) {\n if (valueNode.kind !== _kinds.OBJECT) {\n return ['Expected \"' + type.name + '\", found not an object.'];\n }\n var fields = type.getFields();\n\n var errors = [];\n\n // Ensure every provided field is defined.\n var fieldNodes = valueNode.fields;\n fieldNodes.forEach(function (providedFieldNode) {\n if (!fields[providedFieldNode.name.value]) {\n errors.push('In field \"' + providedFieldNode.name.value + '\": Unknown field.');\n }\n });\n\n // Ensure every defined field is valid.\n var fieldNodeMap = (0, _keyMap2.default)(fieldNodes, function (fieldNode) {\n return fieldNode.name.value;\n });\n Object.keys(fields).forEach(function (fieldName) {\n var result = isValidLiteralValue(fields[fieldName].type, fieldNodeMap[fieldName] && fieldNodeMap[fieldName].value);\n errors.push.apply(errors, result.map(function (error) {\n return 'In field \"' + fieldName + '\": ' + error;\n }));\n });\n\n return errors;\n }\n\n (0, _invariant2.default)(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType, 'Must be input type');\n\n // Scalars determine if a literal values is valid.\n if (!type.isValidLiteral(valueNode)) {\n return ['Expected type \"' + type.name + '\", found ' + (0, _printer.print)(valueNode) + '.'];\n }\n\n return [];\n}","function is_pair(x) {\n return array_test(x) && x.length === 2;\n}","function isValidLiteralValue(type, valueNode) {\n // A value must be provided if the type is non-null.\n if (type instanceof _definition.GraphQLNonNull) {\n if (!valueNode || valueNode.kind === Kind.NULL) {\n return ['Expected \"' + String(type) + '\", found null.'];\n }\n return isValidLiteralValue(type.ofType, valueNode);\n }\n\n if (!valueNode || valueNode.kind === Kind.NULL) {\n return [];\n }\n\n // This function only tests literals, and assumes variables will provide\n // values of the correct type.\n if (valueNode.kind === Kind.VARIABLE) {\n return [];\n }\n\n // Lists accept a non-list value as a list of one.\n if (type instanceof _definition.GraphQLList) {\n var itemType = type.ofType;\n if (valueNode.kind === Kind.LIST) {\n return valueNode.values.reduce(function (acc, item, index) {\n var errors = isValidLiteralValue(itemType, item);\n return acc.concat(errors.map(function (error) {\n return 'In element #' + index + ': ' + error;\n }));\n }, []);\n }\n return isValidLiteralValue(itemType, valueNode);\n }\n\n // Input objects check each defined field and look for undefined fields.\n if (type instanceof _definition.GraphQLInputObjectType) {\n if (valueNode.kind !== Kind.OBJECT) {\n return ['Expected \"' + type.name + '\", found not an object.'];\n }\n var fields = type.getFields();\n\n var errors = [];\n\n // Ensure every provided field is defined.\n var fieldNodes = valueNode.fields;\n fieldNodes.forEach(function (providedFieldNode) {\n if (!fields[providedFieldNode.name.value]) {\n errors.push('In field \"' + providedFieldNode.name.value + '\": Unknown field.');\n }\n });\n\n // Ensure every defined field is valid.\n var fieldNodeMap = (0, _keyMap2.default)(fieldNodes, function (fieldNode) {\n return fieldNode.name.value;\n });\n Object.keys(fields).forEach(function (fieldName) {\n var result = isValidLiteralValue(fields[fieldName].type, fieldNodeMap[fieldName] && fieldNodeMap[fieldName].value);\n errors.push.apply(errors, result.map(function (error) {\n return 'In field \"' + fieldName + '\": ' + error;\n }));\n });\n\n return errors;\n }\n\n !(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType) ? (0, _invariant2.default)(0, 'Must be input type') : void 0;\n\n // Scalars determine if a literal values is valid.\n if (!type.isValidLiteral(valueNode)) {\n return ['Expected type \"' + type.name + '\", found ' + (0, _printer.print)(valueNode) + '.'];\n }\n\n return [];\n}","function isValidLiteralValue(type, valueNode) {\n // A value must be provided if the type is non-null.\n if (type instanceof _definition.GraphQLNonNull) {\n if (!valueNode || valueNode.kind === Kind.NULL) {\n return ['Expected \"' + String(type) + '\", found null.'];\n }\n return isValidLiteralValue(type.ofType, valueNode);\n }\n\n if (!valueNode || valueNode.kind === Kind.NULL) {\n return [];\n }\n\n // This function only tests literals, and assumes variables will provide\n // values of the correct type.\n if (valueNode.kind === Kind.VARIABLE) {\n return [];\n }\n\n // Lists accept a non-list value as a list of one.\n if (type instanceof _definition.GraphQLList) {\n var itemType = type.ofType;\n if (valueNode.kind === Kind.LIST) {\n return valueNode.values.reduce(function (acc, item, index) {\n var errors = isValidLiteralValue(itemType, item);\n return acc.concat(errors.map(function (error) {\n return 'In element #' + index + ': ' + error;\n }));\n }, []);\n }\n return isValidLiteralValue(itemType, valueNode);\n }\n\n // Input objects check each defined field and look for undefined fields.\n if (type instanceof _definition.GraphQLInputObjectType) {\n if (valueNode.kind !== Kind.OBJECT) {\n return ['Expected \"' + type.name + '\", found not an object.'];\n }\n var fields = type.getFields();\n\n var errors = [];\n\n // Ensure every provided field is defined.\n var fieldNodes = valueNode.fields;\n fieldNodes.forEach(function (providedFieldNode) {\n if (!fields[providedFieldNode.name.value]) {\n errors.push('In field \"' + providedFieldNode.name.value + '\": Unknown field.');\n }\n });\n\n // Ensure every defined field is valid.\n var fieldNodeMap = (0, _keyMap2.default)(fieldNodes, function (fieldNode) {\n return fieldNode.name.value;\n });\n Object.keys(fields).forEach(function (fieldName) {\n var result = isValidLiteralValue(fields[fieldName].type, fieldNodeMap[fieldName] && fieldNodeMap[fieldName].value);\n errors.push.apply(errors, result.map(function (error) {\n return 'In field \"' + fieldName + '\": ' + error;\n }));\n });\n\n return errors;\n }\n\n !(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType) ? (0, _invariant2.default)(0, 'Must be input type') : void 0;\n\n // Scalars determine if a literal values is valid.\n if (!type.isValidLiteral(valueNode)) {\n return ['Expected type \"' + type.name + '\", found ' + (0, _printer.print)(valueNode) + '.'];\n }\n\n return [];\n}","function r(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}","function r(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}","function r(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}","function miniKindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n var type = typeof val;\n\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n var constructorName = ctorName(val);\n\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n } // other\n\n\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n }","function dataTypeChecker(arr) {\n let dataType = typeof arr[0];\n let same = true;\n for (let i = 0; i < arr.length; i++) {\n if (dataType !== typeof arr[i]) {\n return (same = false);\n }\n }\n return same;\n}","function Pair(item1, item2) {\n var __arguments = new Array(arguments.length);\n for (var __argumentIndex = 0; __argumentIndex < __arguments.length; ++__argumentIndex) {\n __arguments[__argumentIndex] = arguments[__argumentIndex];\n }\n if (__arguments.length == 2) {\n var item1_2 = __arguments[0];\n var item2_2 = __arguments[1];\n //super();\n this.setItem1(item1_2);\n this.setItem2(item2_2);\n }\n else {\n throw new fm.liveswitch.Exception('Constructor overload does not exist with specified parameter count/type combination.');\n }\n }","function testParamType(param, types){\n for (var i = 0; i < types.length; i++) {\n if (typeof(param) === types[i].toLowerCase()) {\n return true; // type match, pass\n } else if (types[i] === 'Constant') {\n return true; // accepts any constant, pass\n }\n }\n return false;\n}","function resolveParamSchema(type) {\n if (type.kind === 'NonNullType') {\n return resolveParamSchema(type.type);\n }\n if (type.kind === 'ListType') {\n return {\n type: 'array',\n items: resolveParamSchema(type.type),\n };\n }\n const primitive = utils_1.mapToPrimitive(type.name.value);\n return (primitive || {\n $ref: utils_1.mapToRef(type.name.value),\n });\n}","function StructType() {}","static fromPairs() {\n let array = [['fred', 30], ['barney', 40]];\n console.log(_.fromPairs(array)); // Object {fred: 30, barney: 40}\n array = [[23, 43], ['ab', 'ewriouwe'], [54]];\n console.log(_.fromPairs(array)); // Object {23: 43, 54: undefined, ab: \"ewriouwe\"}\n }","function innerType(n) { }","function isValidJSValue(value, type) {\n\t // A value must be provided if the type is non-null.\n\t if (type instanceof _definition.GraphQLNonNull) {\n\t if ((0, _isNullish2.default)(value)) {\n\t if (type.ofType.name) {\n\t return ['Expected \"' + String(type.ofType.name) + '!\", found null.'];\n\t }\n\t return ['Expected non-null value, found null.'];\n\t }\n\t return isValidJSValue(value, type.ofType);\n\t }\n\n\t if ((0, _isNullish2.default)(value)) {\n\t return [];\n\t }\n\n\t // Lists accept a non-list value as a list of one.\n\t if (type instanceof _definition.GraphQLList) {\n\t var _ret = function () {\n\t var itemType = type.ofType;\n\t if ((0, _iterall.isCollection)(value)) {\n\t var _ret2 = function () {\n\t var errors = [];\n\t (0, _iterall.forEach)(value, function (item, index) {\n\t errors.push.apply(errors, isValidJSValue(item, itemType).map(function (error) {\n\t return 'In element #' + index + ': ' + error;\n\t }));\n\t });\n\t return {\n\t v: {\n\t v: errors\n\t }\n\t };\n\t }();\n\n\t if (typeof _ret2 === \"object\") return _ret2.v;\n\t }\n\t return {\n\t v: isValidJSValue(value, itemType)\n\t };\n\t }();\n\n\t if (typeof _ret === \"object\") return _ret.v;\n\t }\n\n\t // Input objects check each defined field.\n\t if (type instanceof _definition.GraphQLInputObjectType) {\n\t var _ret3 = function () {\n\t if (typeof value !== 'object' || value === null) {\n\t return {\n\t v: ['Expected \"' + type.name + '\", found not an object.']\n\t };\n\t }\n\t var fields = type.getFields();\n\n\t var errors = [];\n\n\t // Ensure every provided field is defined.\n\t Object.keys(value).forEach(function (providedField) {\n\t if (!fields[providedField]) {\n\t errors.push('In field \"' + providedField + '\": Unknown field.');\n\t }\n\t });\n\n\t // Ensure every defined field is valid.\n\t Object.keys(fields).forEach(function (fieldName) {\n\t var newErrors = isValidJSValue(value[fieldName], fields[fieldName].type);\n\t errors.push.apply(errors, newErrors.map(function (error) {\n\t return 'In field \"' + fieldName + '\": ' + error;\n\t }));\n\t });\n\n\t return {\n\t v: errors\n\t };\n\t }();\n\n\t if (typeof _ret3 === \"object\") return _ret3.v;\n\t }\n\n\t (0, _invariant2.default)(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType, 'Must be input type');\n\n\t // Scalar/Enum input checks to ensure the type can parse the value to\n\t // a non-null value.\n\t var parseResult = type.parseValue(value);\n\t if ((0, _isNullish2.default)(parseResult)) {\n\t return ['Expected type \"' + type.name + '\", found ' + JSON.stringify(value) + '.'];\n\t }\n\n\t return [];\n\t}","function valueDescription(input){if(input===undefined){return'undefined';}else if(input===null){return'null';}else if(typeof input==='string'){if(input.length>20){input=input.substring(0,20)+\"...\";}return JSON.stringify(input);}else if(typeof input==='number'||typeof input==='boolean'){return''+input;}else if(typeof input==='object'){if(input instanceof Array){return'an array';}else{var customObjectName=tryGetCustomObjectType(input);if(customObjectName){return\"a custom \"+customObjectName+\" object\";}else{return'an object';}}}else if(typeof input==='function'){return'a function';}else{return fail('Unknown wrong type: '+typeof input);}}","function parseParameters$1(spec, ctx, params) {\n params = params || {};\n var key$$1, value;\n\n for (key$$1 in spec) {\n value = spec[key$$1];\n\n params[key$$1] = isArray(value)\n ? value.map(function(v) { return parseParameter$2(v, ctx, params); })\n : parseParameter$2(value, ctx, params);\n }\n return params;\n }","function isValidLiteralValue(type, valueAST) {\n // A value must be provided if the type is non-null.\n if (type instanceof _definition.GraphQLNonNull) {\n if (!valueAST) {\n if (type.ofType.name) {\n return ['Expected \"' + type.ofType.name + '!\", found null.'];\n }\n return ['Expected non-null value, found null.'];\n }\n return isValidLiteralValue(type.ofType, valueAST);\n }\n\n if (!valueAST) {\n return [];\n }\n\n // This function only tests literals, and assumes variables will provide\n // values of the correct type.\n if (valueAST.kind === _kinds.VARIABLE) {\n return [];\n }\n\n // Lists accept a non-list value as a list of one.\n if (type instanceof _definition.GraphQLList) {\n var _ret = function () {\n var itemType = type.ofType;\n if (valueAST.kind === _kinds.LIST) {\n return {\n v: valueAST.values.reduce(function (acc, itemAST, index) {\n var errors = isValidLiteralValue(itemType, itemAST);\n return acc.concat(errors.map(function (error) {\n return 'In element #' + index + ': ' + error;\n }));\n }, [])\n };\n }\n return {\n v: isValidLiteralValue(itemType, valueAST)\n };\n }();\n\n if ((typeof _ret === 'undefined' ? 'undefined' : (0, _typeof3.default)(_ret)) === \"object\") return _ret.v;\n }\n\n // Input objects check each defined field and look for undefined fields.\n if (type instanceof _definition.GraphQLInputObjectType) {\n if (valueAST.kind !== _kinds.OBJECT) {\n return ['Expected \"' + type.name + '\", found not an object.'];\n }\n var fields = type.getFields();\n\n var errors = [];\n\n // Ensure every provided field is defined.\n var fieldASTs = valueAST.fields;\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = (0, _getIterator3.default)(fieldASTs), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var providedFieldAST = _step.value;\n\n if (!fields[providedFieldAST.name.value]) {\n errors.push('In field \"' + providedFieldAST.name.value + '\": Unknown field.');\n }\n }\n\n // Ensure every defined field is valid.\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 var fieldASTMap = (0, _keyMap2.default)(fieldASTs, function (fieldAST) {\n return fieldAST.name.value;\n });\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n var _loop = function _loop() {\n var fieldName = _step2.value;\n\n var result = isValidLiteralValue(fields[fieldName].type, fieldASTMap[fieldName] && fieldASTMap[fieldName].value);\n errors.push.apply(errors, (0, _toConsumableArray3.default)(result.map(function (error) {\n return 'In field \"' + fieldName + '\": ' + error;\n })));\n };\n\n for (var _iterator2 = (0, _getIterator3.default)((0, _keys2.default)(fields)), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n _loop();\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n\n return errors;\n }\n\n (0, _invariant2.default)(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType, 'Must be input type');\n\n // Scalar/Enum input checks to ensure the type can parse the value to\n // a non-null value.\n var parseResult = type.parseLiteral(valueAST);\n if ((0, _isNullish2.default)(parseResult)) {\n return ['Expected type \"' + type.name + '\", found ' + (0, _printer.print)(valueAST) + '.'];\n }\n\n return [];\n}","function isPrimitive(value){return typeof value==='string'||typeof value==='number'||typeof value==='boolean';}","function isPrimitive(value){return typeof value==='string'||typeof value==='number'||typeof value==='boolean';}","isPrimitiveParamType(paramTypeName) {\n return ['string', 'boolean', 'number', 'object'].includes(paramTypeName.toLowerCase());\n }","function r(t){return t&&\"object\"==typeof t&&!Array.isArray(t)}","function n(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}","function n(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}","function typed(typeMap){\n return function(...args){\n redo: for(let t of typeMap){\n let [key, func] = t;\n let i = 0;\n for(let k of key){ \n let matched = true;\n if(k instanceof StackedPseudoType)\n matched = k.match(args[i]);\n else if(k instanceof Array)\n matched = k[0](args[i]);\n else\n matched = args[i] instanceof k || args[i].constructor === k;\n \n if(!matched)\n continue redo;\n \n i++;\n }\n return func.bind(this)(...args);\n }\n error(\"no matching types for \" +\n args.map(e => e ? typeName(e.constructor) : \"undefined\")\n .join(\", \"));\n }\n}","function tsParseAssignableListItemTypes() {\n const oldIsType = pushTypeContext(0);\n eat(TokenType.question);\n tsTryParseTypeAnnotation();\n popTypeContext(oldIsType);\n}","function arrayOrObject(collection) {\n //input any datatypes\n //output string array or object\n //if else statements to check types\n //see if array\n \n \n if (Array.isArray(collection) === true){\n return \"array\";\n } else {\n return \"object\";\n }\n // see if object\n \n}","function isPrimitive(value){return typeof value==='string'||typeof value==='number';}","function convType(data, size) {\n\n var unknown = 'unknown';\n var precision = 0;\n var scale = 0;\n\n if (data == CHAR || data == NCHAR || data == VARCHAR2 || data == NVARCHAR2) {\n return 'string';\n }\n if (data == LONG || data == CLOB || data == NCLOB || data == ROWID) {\n return 'string';\n }\n if (data == BINARY_DOUBLE) {\n return 'double';\n }\n if (data == BINARY_FLOAT) {\n return 'float';\n }\n\n if (data == FLOAT) return 'decimal';\n if (data == TIMESTAMP) return 'DateTime';\n if (data == DATE) return 'DateTime';\n\n if (data == BFILE || data == RAW || data == BLOB) {\n return 'byte[]';\n }\n\n if (data == NUMBER) {\n var arr = size.toString().trim().split(\",\");\n if (arr.length == 0) {\n return unknown;\n } else if (arr.length == 1) {\n if (!isNumber(arr[0])) {\n return unknown;\n }\n precision = toNumber(arr[0]);\n return getNumericType(precision, 0);\n } else {\n arr[0] = arr[0].toString().trim();\n arr[1] = arr[1].toString().trim();\n\n if (!isNumber(arr[0]) || !isNumber(arr[1])) {\n return unknown;\n }\n precision = toNumber(arr[0]);\n scale = toNumber(arr[1]);\n return getNumericType(precision, scale);\n }\n }\n\n return unknown;\n}","function isList(v) {\n\t\treturn !!v && v.length != _null && !isString(v) && !isNode(v) && !isFunction(v);\n\t}","function arrayOrObject (arg1) {\n if (Array.isArray(arg1)) return 'array';\n else return 'object';\n}","function typeOfSort(values){\n\t\ttype = typeOfDefault; /*type of the default array*/ \n\t\tif(typeof values !== 'undefined'){\n\t\t\tif (!(values instanceof Array)){\n\t\t\t\tif(typeof values === 'string'){\n\t\t\t\t\tif(values.indexOf(' ') >= 0){\n\t\t\t\t\t\tif(((typeof opts !== 'undefined') && (typeof opts.breakIntoLetters !== 'undefined') && opts.breakIntoLetters)){\n\t\t\t\t\t\t\tvar words = '-MultiWord-SortByLetter';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tvar words = '-MultiWord-SortByWord';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues = values.replace(/([\\s]+)/ig, \"\"); /*Remove spaces so that we can better find if it's mixed or numbers (numbers inside string separated with space are not recognized as numbers)*/\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tvar words = '-OneWord';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(isNumber(values)){\n\t\t\t\t\t\ttype = 'stringOfNumber';\n\t\t\t\t\t}\n\t\t\t\t\telse if(hasNumbers(values)){\n\t\t\t\t\t\ttype = 'stringOfMixed';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\ttype = 'stringOfText';\n\t\t\t\t\t}\n\t\t\t\t\ttype = type+words;\n\t\t\t\t}\n\t\t\t\telse if(isNumber(values)){\n\t\t\t\t\ttype = 'number';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvar has = {\n\t\t\t\t\tstrings: {texts: false, numbers: false},\n\t\t\t\t\tnumbers: false\n\t\t\t\t};\n\t\t\t\tfor(key in values){\n\t\t\t\t\tif(typeof values[key] === 'string'){\n\t\t\t\t\t\tif(has.numbers == true){ /*If we know already that the array has at least one number, set strings.texts & strings.numbers to true and break to gain time - when number+string(any kind) is arrayOfMixed*/\n\t\t\t\t\t\t\thas.strings.numbers = has.strings.texts = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(isNumber(values[key])){\n\t\t\t\t\t\t\thas.strings.numbers = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(hasNumbers(values[key])){\n\t\t\t\t\t\t\thas.strings.numbers = has.strings.texts = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\thas.strings.texts = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if(isNumber(values[key])){\n\t\t\t\t\t\tif((has.strings.texts == true) || (has.strings.numbers == true)){ /*If we know already that the array has at least one string, set numbers to true and break to gain time*/\n\t\t\t\t\t\t\thas.numbers = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\thas.numbers = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(has.numbers == true){\n\t\t\t\t\ttype = 'arrayOfNumbers';\n\t\t\t\t\tif((has.strings.texts == true) || (has.strings.numbers == true)){\n\t\t\t\t\t\ttype = 'arrayOfMixed';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if((has.strings.texts == true)&&(has.strings.numbers == true)){\n\t\t\t\t\ttype = 'arrayOfStringsMixed';\n\t\t\t\t}\n\t\t\t\telse if(has.strings.texts == true){\n\t\t\t\t\ttype = 'arrayOfStringsText';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttype = 'arrayOfStringsNumbers';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\ttype = typeOfDefault;\n\t\t}\n\t\t\n\t\treturn type;\n\t}","static isTypeParametered(structure) {\r\n switch (structure.kind) {\r\n case StructureKind_1.StructureKind.Class:\r\n case StructureKind_1.StructureKind.Constructor:\r\n case StructureKind_1.StructureKind.ConstructorOverload:\r\n case StructureKind_1.StructureKind.GetAccessor:\r\n case StructureKind_1.StructureKind.Method:\r\n case StructureKind_1.StructureKind.MethodOverload:\r\n case StructureKind_1.StructureKind.SetAccessor:\r\n case StructureKind_1.StructureKind.Function:\r\n case StructureKind_1.StructureKind.FunctionOverload:\r\n case StructureKind_1.StructureKind.CallSignature:\r\n case StructureKind_1.StructureKind.ConstructSignature:\r\n case StructureKind_1.StructureKind.Interface:\r\n case StructureKind_1.StructureKind.MethodSignature:\r\n case StructureKind_1.StructureKind.TypeAlias:\r\n return true;\r\n default:\r\n return false;\r\n }\r\n }","function r(e){return null!=e&&\"object\"==typeof e&&!1===Array.isArray(e)}","function r(e){return null!=e&&\"object\"==typeof e&&!1===Array.isArray(e)}","function r(e){return null!=e&&\"object\"==typeof e&&!1===Array.isArray(e)}","function wrap(x) {\n if (Array.isArray(x)) { \n const template = {type: {name: 'List'}, token: 'Value'};\n const eithers = x.map(wrap); // Recur. Return an array of Eithers\n const values = S.sequence(S.Either, eithers) // Sequence into a single Either\n return S.map(x => R.assoc('value', x, template), values);\n }\n else {\n const template = {value: x, token: 'Value'};\n return S.map(x => R.assoc('type', x, template), infer(x)); // returns an Either\n }\n}"],"string":"[\n \"constructor(type, type_list, value_list=null) {\\n super(type)\\n this.type_list = type_list\\n if(value_list==null){\\n value_list = []\\n for(var i=0; i selectfunc(b)) { return 1; }\\n });\\n return this;\\n };\\n \\n this.OrderByDesc = function (selectfunc) {\\n array.sort(function (a, b) {\\n if (selectfunc(a) > selectfunc(b)) { return -1; }\\n if (selectfunc(a) < selectfunc(b)) { return 1; }\\n });\\n return this;\\n };\\n\\n\\n this.ForEach = function (fnc) {\\n array.forEach(fnc);\\n };\\n}\",\n \"stringifyPair( field, value ) {\\n if ( typeof value == \\\"string\\\") {\\n return '\\\"'+field+'\\\":\\\"'+value+'\\\"';\\n } else if ( typeof value == 'object') {\\n if ( value == null ) {\\n return '\\\"'+field+'\\\":null';\\n } if(value.hasOwnProperty('w')) {\\n return '\\\"'+field+'\\\":'+this.stringifyQuaternion(value);\\n } else if (value.hasOwnProperty('x') || value.hasOwnProperty('_x')) {\\n return '\\\"'+field+'\\\":'+this.stringifyVector(value);\\n } else {\\n // assuming custom object\\n return '\\\"'+field+'\\\":'+JSON.stringify(value);\\n }\\n } else if ( typeof value == 'number') {\\n return '\\\"'+field+'\\\":'+value;\\n } else if ( typeof value == 'boolean') {\\n return '\\\"'+field+'\\\":'+value;\\n } else {\\n console.log(\\\"Unsupported datatype \\\"+typeof value+\\\", ignored user event \\\"+field+\\\"=\\\"+value);\\n return '';\\n }\\n }\",\n \"function sc_isPair(p) {\\n return (p instanceof sc_Pair);\\n}\",\n \"static createItem(typeName, ctx=null) {\\n console.debug(\\\"Types.createItem\\\", typeName);\\n if (typeof typeName !== 'string') {\\n throw new Error(\\\"expected type string\\\");\\n }\\n var ret;\\n const type= allTypes.get( typeName );\\n if (!type ) {\\n throw new Error(`unknown type '${typeName}'`);\\n }\\n const { uses } = type;\\n switch (uses) {\\n case \\\"flow\\\": {\\n const data= {};\\n const spec= type.with;\\n const { params } = spec;\\n for ( const token in params ) {\\n const param= params[token];\\n if (!param.optional || param.repeats) {\\n const val= (!param.optional) && Types.createItem( param.type, {\\n token: token,\\n param: param\\n });\\n // if the param repeats then we'll wind up with an array (of items)\\n data[token]= param.repeats? (val? [val]: []): val;\\n }\\n }\\n ret= allTypes.newItem(type.name, data);\\n }\\n break;\\n case \\\"slot\\\":\\n case \\\"swap\\\": {\\n // note: \\\"initially\\\", if any, is: object { string type; object value; }\\n // FIX: \\\"initially\\\" wont work properly for opts.\\n // slots dont have a $TOKEN entry, but options do.\\n const pair= Types._unpack(ctx);\\n if (!pair) {\\n ret= allTypes.newItem(type.name, null);\\n } else {\\n const { type:slatType, value:slatValue } = pair;\\n ret= Types.createItem(slatType, slatValue);\\n }\\n }\\n break;\\n case \\\"str\\\":\\n case \\\"txt\\\": {\\n // ex. Item(\\\"trait\\\", \\\"testing\\\")\\n // determine default value\\n let defautValue= \\\"\\\";\\n const spec= type.with;\\n const { tokens, params }= spec;\\n if (tokens.length === 1) {\\n const t= tokens[0];\\n const param= params[t];\\n // FIX: no .... this is in the \\\"flow\\\"... the container of the str.\\n // if (param.filterVals && ('default' in param.filterVals)) {\\n // defaultValue= param.filterVals['default'];\\n // } else {\\n // if there's only one token, and that token isn't the \\\"floating value\\\" token....\\n if (param.value !== null) {\\n defautValue= t; // then we can use the token as our default value.\\n }\\n // }\\n }\\n const value= Types._unpack(ctx, defautValue);\\n // fix? .value for string elements *can* be null,\\n // but if they are things in autoText throw.\\n // apparently default String prop validation allows null.\\n ret= allTypes.newItem(type.name, value);\\n }\\n break;\\n case \\\"num\\\": {\\n const value= Types._unpack(ctx, 0);\\n ret= allTypes.newItem(type.name, value);\\n }\\n break;\\n default:\\n throw new Error(`unknown type ${uses}`);\\n break;\\n }\\n return ret;\\n }\",\n \"function ListToObject(a, l, f) {\\n\\tvar c = l.count;\\n\\tfor (var i = 0; i < c; i++) {\\n\\t\\tvar t = l.getType(i);\\n\\t\\tswitch (t) {\\n\\t\\t\\tcase DescValueType.BOOLEANTYPE:\\n\\t\\t\\t\\ta.push(l.getBoolean(i));\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase DescValueType.STRINGTYPE:\\n\\t\\t\\t\\ta.push(l.getString(i));\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase DescValueType.DOUBLETYPE:\\n\\t\\t\\t\\ta.push(l.getDouble(i));\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase DescValueType.INTEGERTYPE:\\n a.push(l.getInteger(i));\\n break;\\n case DescValueType.LARGEINTEGERTYPE:\\n \\ta.push(l.getLargeInteger(i));\\n \\tbreak;\\n\\t\\t\\tcase DescValueType.OBJECTTYPE:\\n var newT = l.getObjectType(i);\\n var newV = l.getObjectValue(i);\\n var newO = new Object();\\n a.push(newO);\\n DescriptorToObject(newO, newV, f);\\n break;\\n\\t\\t\\tcase DescValueType.UNITDOUBLE:\\n var newT = l.getUnitDoubleType(i);\\n var newV = l.getUnitDoubleValue(i);\\n var newO = new Object();\\n a.push(newO);\\n newO.type = typeIDToCharID(newT);\\n newO.typeString = typeIDToStringID(newT);\\n newO.value = newV;\\n break;\\n\\t\\t\\tcase DescValueType.ENUMERATEDTYPE:\\n var newT = l.getEnumerationType(i);\\n var newV = l.getEnumerationValue(i);\\n var newO = new Object();\\n a.push(newO);\\n newO.type = typeIDToCharID(newT);\\n newO.typeString = typeIDToStringID(newT);\\n newO.value = typeIDToCharID(newV);\\n newO.valueString = typeIDToStringID(newV);\\n break;\\n\\t\\t\\tcase DescValueType.CLASSTYPE:\\n a.push(l.getClass(i));\\n break;\\n\\t\\t\\tcase DescValueType.ALIASTYPE:\\n a.push(l.getPath(i));\\n break;\\n\\t\\t\\tcase DescValueType.RAWTYPE:\\n var tempStr = l.getData(i);\\n tempArray = new Array();\\n for (var tempi = 0; tempi < tempStr.length; tempi++) { \\n tempArray[tempi] = tempStr.charCodeAt(tempi); \\n }\\n a.push(tempArray);\\n break;\\n\\t\\t\\tcase DescValueType.REFERENCETYPE:\\n var ref = l.getReference(i);\\n var newO = new Object();\\n a.push(newO);\\n ReferenceToObject(newO, ref, f);\\n break;\\n\\t\\t\\tcase DescValueType.LISTTYPE:\\n var list = l.getList(i);\\n var newO = new Object();\\n a.push(newO);\\n ListToObject(newO, list, f);\\n break;\\n\\t\\t\\tdefault:\\n\\t\\t\\t\\tmyLogging.LogIt(\\\"Unsupported type in descriptorToObject \\\" + t);\\n\\t\\t}\\n\\t}\\n\\tif (undefined != f) {\\n\\t\\to = f(o);\\n\\t}\\n}\",\n \"function parseTypeString(s) {\\n if (/list|pair/.test(s)) {\\n var baseType = /list/.test(s) ? 'list' : 'pair';\\n\\n var uStart = s.indexOf(\\\"<\\\");\\n var uEnd = s.lastIndexOf(\\\">\\\");\\n\\n var baseChecker = typeCheckers[baseType];\\n\\n if (uStart == -1 || uEnd == -1) {\\n return baseChecker;\\n }\\n\\n var u = s.slice(uStart + 1, uEnd);\\n var uChecker = parseTypeString(u);\\n\\n if (baseType == 'pair') {\\n return function(x) {\\n if (!baseChecker(x)) {\\n return false;\\n }\\n\\n return uChecker(x[0]) && uChecker(_rest(x));\\n };\\n\\n }\\n\\n // otherwise, return checker for list<...>\\n return function(x) {\\n if (!baseChecker(x)) {\\n return false;\\n }\\n var x_array = listToArray(x);\\n for(var i = 0, ii = x_array.length; i < ii; i++) {\\n if (!uChecker(x_array[i])) {\\n return false;\\n };\\n }\\n return true;\\n };\\n\\n\\n } else {\\n return typeCheckers[s];\\n }\\n}\",\n \"function isSimpleValue(arg) {\\n if (Array.isArray(arg) || typeof arg === 'function') return false;\\n if (arg == null || typeof arg !== 'object') return true;\\n if (arg.valueOf && typeof arg.valueOf() !== 'object') {\\n return true;\\n }\\n return false;\\n }\",\n \"function validateCompoundWithType(attribute, values) {\\n\\t\\t for(var i in values) {\\n\\t\\t var value = values[i];\\n\\t\\t if(typeof(value) !== 'object') {\\n\\t\\t\\t errors.push([attribute + '-' + i, \\\"not-an-object\\\"]);\\n\\t\\t } else if(! value.type) {\\n\\t\\t\\t errors.push([attribute + '-' + i, \\\"missing-type\\\"]);\\n\\t\\t } else if(! value.value) { // empty values are not allowed.\\n\\t\\t\\t errors.push([attribute + '-' + i, \\\"missing-value\\\"]);\\n\\t\\t }\\n\\t\\t }\\n\\t }\",\n \"function notValid_anySimpleType(strObj) {\\n\\treturn false;\\n }\",\n \"function type_resolver_from_list(lst)\\n {\\n var param_length = lst[0].length - 1;\\n return function() {\\n if (arguments.length != param_length) {\\n throw new Error(\\\"expected \\\" + param_length + \\\" arguments, got \\\"\\n + arguments.length + \\\" instead.\\\");\\n }\\n for (var i=0; i size) {\\n\\t throw new Error('Elements exceed array size: ' + size)\\n\\t }\\n\\t ret = []\\n\\t type = type.slice(0, type.lastIndexOf('['))\\n\\t if (typeof arg === 'string') {\\n\\t arg = JSON.parse(arg)\\n\\t }\\n\\t for (i in arg) {\\n\\t ret.push(encodeSingle(type, arg[i]))\\n\\t }\\n\\t if (size === 'dynamic') {\\n\\t var length = encodeSingle('uint256', arg.length)\\n\\t ret.unshift(length)\\n\\t }\\n\\t return Buffer.concat(ret)\\n\\t } else if (type === 'bytes') {\\n\\t arg = new Buffer(arg)\\n\\t\\n\\t ret = Buffer.concat([ encodeSingle('uint256', arg.length), arg ])\\n\\t\\n\\t if ((arg.length % 32) !== 0) {\\n\\t ret = Buffer.concat([ ret, utils.zeros(32 - (arg.length % 32)) ])\\n\\t }\\n\\t\\n\\t return ret\\n\\t } else if (type.startsWith('bytes')) {\\n\\t size = parseTypeN(type)\\n\\t if (size < 1 || size > 32) {\\n\\t throw new Error('Invalid bytes width: ' + size)\\n\\t }\\n\\t\\n\\t return utils.setLengthRight(arg, 32)\\n\\t } else if (type.startsWith('uint')) {\\n\\t size = parseTypeN(type)\\n\\t if ((size % 8) || (size < 8) || (size > 256)) {\\n\\t throw new Error('Invalid uint width: ' + size)\\n\\t }\\n\\t\\n\\t num = parseNumber(arg)\\n\\t if (num.bitLength() > size) {\\n\\t throw new Error('Supplied uint exceeds width: ' + size + ' vs ' + num.bitLength())\\n\\t }\\n\\t\\n\\t if (num < 0) {\\n\\t throw new Error('Supplied uint is negative')\\n\\t }\\n\\t\\n\\t return num.toArrayLike(Buffer, 'be', 32)\\n\\t } else if (type.startsWith('int')) {\\n\\t size = parseTypeN(type)\\n\\t if ((size % 8) || (size < 8) || (size > 256)) {\\n\\t throw new Error('Invalid int width: ' + size)\\n\\t }\\n\\t\\n\\t num = parseNumber(arg)\\n\\t if (num.bitLength() > size) {\\n\\t throw new Error('Supplied int exceeds width: ' + size + ' vs ' + num.bitLength())\\n\\t }\\n\\t\\n\\t return num.toTwos(256).toArrayLike(Buffer, 'be', 32)\\n\\t } else if (type.startsWith('ufixed')) {\\n\\t size = parseTypeNxM(type)\\n\\t\\n\\t num = parseNumber(arg)\\n\\t\\n\\t if (num < 0) {\\n\\t throw new Error('Supplied ufixed is negative')\\n\\t }\\n\\t\\n\\t return encodeSingle('uint256', num.mul(new BN(2).pow(new BN(size[1]))))\\n\\t } else if (type.startsWith('fixed')) {\\n\\t size = parseTypeNxM(type)\\n\\t\\n\\t return encodeSingle('int256', parseNumber(arg).mul(new BN(2).pow(new BN(size[1]))))\\n\\t }\\n\\t\\n\\t throw new Error('Unsupported or invalid type: ' + type)\\n\\t}\",\n \"function parseAny(record, name, schema, extra) {\\n\\n if (schema['type'] === 'object') {\\n return parseObject(record, name, schema['properties'], extra);\\n }\\n if (schema['type'] === 'string') {\\n return parseString(record, name, extra);\\n }\\n }\",\n \"constructor(elements) {\\n super();\\n /**\\n * The type name identifier.\\n */\\n this.type = \\\"tuple\\\";\\n this.elements = elements;\\n }\",\n \"function processValue({ type, items }, value) {\\n if (value == null) {\\n return undefined;\\n }\\n else if (value === \\\"\\\") {\\n return undefined;\\n } else if (type === \\\"array\\\" && items && nums.has(items.type)) {\\n return value.map(asNumber);\\n } else if (type === \\\"boolean\\\") {\\n return value === \\\"true\\\";\\n } else if (type === \\\"number\\\") {\\n return asNumber(value);\\n }\\n return value;\\n}\",\n \"function encodeSingle (type, arg) {\\n var size, num, ret, i\\n\\n if (type === 'address') {\\n return encodeSingle('uint160', parseNumber(arg))\\n } else if (type === 'bool') {\\n return encodeSingle('uint8', arg ? 1 : 0)\\n } else if (type === 'string') {\\n return encodeSingle('bytes', Buffer.from(arg, 'utf8'))\\n } else if (isArray(type)) {\\n // this part handles fixed-length ([2]) and variable length ([]) arrays\\n // NOTE: we catch here all calls to arrays, that simplifies the rest\\n if (typeof arg.length === 'undefined') {\\n throw new Error('Not an array?')\\n }\\n size = parseTypeArray(type)\\n if (size !== 'dynamic' && size !== 0 && arg.length > size) {\\n throw new Error('Elements exceed array size: ' + size)\\n }\\n ret = []\\n type = type.slice(0, type.lastIndexOf('['))\\n if (typeof arg === 'string') {\\n arg = JSON.parse(arg)\\n }\\n for (i in arg) {\\n ret.push(encodeSingle(type, arg[i]))\\n }\\n if (size === 'dynamic') {\\n var length = encodeSingle('uint256', arg.length)\\n ret.unshift(length)\\n }\\n return Buffer.concat(ret)\\n } else if (type === 'bytes') {\\n arg = Buffer.from(arg)\\n\\n ret = Buffer.concat([ encodeSingle('uint256', arg.length), arg ])\\n\\n if ((arg.length % 32) !== 0) {\\n ret = Buffer.concat([ ret, utils.zeros(32 - (arg.length % 32)) ])\\n }\\n\\n return ret\\n } else if (type.startsWith('bytes')) {\\n size = parseTypeN(type)\\n if (size < 1 || size > 32) {\\n throw new Error('Invalid bytes width: ' + size)\\n }\\n\\n return utils.setLengthRight(arg, 32)\\n } else if (type.startsWith('uint')) {\\n size = parseTypeN(type)\\n if ((size % 8) || (size < 8) || (size > 256)) {\\n throw new Error('Invalid uint width: ' + size)\\n }\\n\\n num = parseNumber(arg)\\n if (num.bitLength() > size) {\\n throw new Error('Supplied uint exceeds width: ' + size + ' vs ' + num.bitLength())\\n }\\n\\n if (num < 0) {\\n throw new Error('Supplied uint is negative')\\n }\\n\\n return num.toArrayLike(Buffer, 'be', 32)\\n } else if (type.startsWith('int')) {\\n size = parseTypeN(type)\\n if ((size % 8) || (size < 8) || (size > 256)) {\\n throw new Error('Invalid int width: ' + size)\\n }\\n\\n num = parseNumber(arg)\\n if (num.bitLength() > size) {\\n throw new Error('Supplied int exceeds width: ' + size + ' vs ' + num.bitLength())\\n }\\n\\n return num.toTwos(256).toArrayLike(Buffer, 'be', 32)\\n } else if (type.startsWith('ufixed')) {\\n size = parseTypeNxM(type)\\n\\n num = parseNumber(arg)\\n\\n if (num < 0) {\\n throw new Error('Supplied ufixed is negative')\\n }\\n\\n return encodeSingle('uint256', num.mul(new BN(2).pow(new BN(size[1]))))\\n } else if (type.startsWith('fixed')) {\\n size = parseTypeNxM(type)\\n\\n return encodeSingle('int256', parseNumber(arg).mul(new BN(2).pow(new BN(size[1]))))\\n }\\n\\n throw new Error('Unsupported or invalid type: ' + type)\\n}\",\n \"function encodeSingle (type, arg) {\\n var size, num, ret, i\\n\\n if (type === 'address') {\\n return encodeSingle('uint160', parseNumber(arg))\\n } else if (type === 'bool') {\\n return encodeSingle('uint8', arg ? 1 : 0)\\n } else if (type === 'string') {\\n return encodeSingle('bytes', Buffer.from(arg, 'utf8'))\\n } else if (isArray(type)) {\\n // this part handles fixed-length ([2]) and variable length ([]) arrays\\n // NOTE: we catch here all calls to arrays, that simplifies the rest\\n if (typeof arg.length === 'undefined') {\\n throw new Error('Not an array?')\\n }\\n size = parseTypeArray(type)\\n if (size !== 'dynamic' && size !== 0 && arg.length > size) {\\n throw new Error('Elements exceed array size: ' + size)\\n }\\n ret = []\\n type = type.slice(0, type.lastIndexOf('['))\\n if (typeof arg === 'string') {\\n arg = JSON.parse(arg)\\n }\\n for (i in arg) {\\n ret.push(encodeSingle(type, arg[i]))\\n }\\n if (size === 'dynamic') {\\n var length = encodeSingle('uint256', arg.length)\\n ret.unshift(length)\\n }\\n return Buffer.concat(ret)\\n } else if (type === 'bytes') {\\n arg = Buffer.from(arg)\\n\\n ret = Buffer.concat([ encodeSingle('uint256', arg.length), arg ])\\n\\n if ((arg.length % 32) !== 0) {\\n ret = Buffer.concat([ ret, utils.zeros(32 - (arg.length % 32)) ])\\n }\\n\\n return ret\\n } else if (type.startsWith('bytes')) {\\n size = parseTypeN(type)\\n if (size < 1 || size > 32) {\\n throw new Error('Invalid bytes width: ' + size)\\n }\\n\\n return utils.setLengthRight(arg, 32)\\n } else if (type.startsWith('uint')) {\\n size = parseTypeN(type)\\n if ((size % 8) || (size < 8) || (size > 256)) {\\n throw new Error('Invalid uint width: ' + size)\\n }\\n\\n num = parseNumber(arg)\\n if (num.bitLength() > size) {\\n throw new Error('Supplied uint exceeds width: ' + size + ' vs ' + num.bitLength())\\n }\\n\\n if (num < 0) {\\n throw new Error('Supplied uint is negative')\\n }\\n\\n return num.toArrayLike(Buffer, 'be', 32)\\n } else if (type.startsWith('int')) {\\n size = parseTypeN(type)\\n if ((size % 8) || (size < 8) || (size > 256)) {\\n throw new Error('Invalid int width: ' + size)\\n }\\n\\n num = parseNumber(arg)\\n if (num.bitLength() > size) {\\n throw new Error('Supplied int exceeds width: ' + size + ' vs ' + num.bitLength())\\n }\\n\\n return num.toTwos(256).toArrayLike(Buffer, 'be', 32)\\n } else if (type.startsWith('ufixed')) {\\n size = parseTypeNxM(type)\\n\\n num = parseNumber(arg)\\n\\n if (num < 0) {\\n throw new Error('Supplied ufixed is negative')\\n }\\n\\n return encodeSingle('uint256', num.mul(new BN(2).pow(new BN(size[1]))))\\n } else if (type.startsWith('fixed')) {\\n size = parseTypeNxM(type)\\n\\n return encodeSingle('int256', parseNumber(arg).mul(new BN(2).pow(new BN(size[1]))))\\n }\\n\\n throw new Error('Unsupported or invalid type: ' + type)\\n}\",\n \"function encodeSingle (type, arg) {\\n var size, num, ret, i\\n\\n if (type === 'address') {\\n return encodeSingle('uint160', parseNumber(arg))\\n } else if (type === 'bool') {\\n return encodeSingle('uint8', arg ? 1 : 0)\\n } else if (type === 'string') {\\n return encodeSingle('bytes', new Buffer(arg, 'utf8'))\\n } else if (isArray(type)) {\\n // this part handles fixed-length ([2]) and variable length ([]) arrays\\n // NOTE: we catch here all calls to arrays, that simplifies the rest\\n if (typeof arg.length === 'undefined') {\\n throw new Error('Not an array?')\\n }\\n size = parseTypeArray(type)\\n if (size !== 'dynamic' && size !== 0 && arg.length > size) {\\n throw new Error('Elements exceed array size: ' + size)\\n }\\n ret = []\\n type = type.slice(0, type.lastIndexOf('['))\\n if (typeof arg === 'string') {\\n arg = JSON.parse(arg)\\n }\\n for (i in arg) {\\n ret.push(encodeSingle(type, arg[i]))\\n }\\n if (size === 'dynamic') {\\n var length = encodeSingle('uint256', arg.length)\\n ret.unshift(length)\\n }\\n return Buffer.concat(ret)\\n } else if (type === 'bytes') {\\n arg = new Buffer(arg)\\n\\n ret = Buffer.concat([ encodeSingle('uint256', arg.length), arg ])\\n\\n if ((arg.length % 32) !== 0) {\\n ret = Buffer.concat([ ret, utils.zeros(32 - (arg.length % 32)) ])\\n }\\n\\n return ret\\n } else if (type.startsWith('bytes')) {\\n size = parseTypeN(type)\\n if (size < 1 || size > 32) {\\n throw new Error('Invalid bytes width: ' + size)\\n }\\n\\n return utils.setLengthRight(arg, 32)\\n } else if (type.startsWith('uint')) {\\n size = parseTypeN(type)\\n if ((size % 8) || (size < 8) || (size > 256)) {\\n throw new Error('Invalid uint width: ' + size)\\n }\\n\\n num = parseNumber(arg)\\n if (num.bitLength() > size) {\\n throw new Error('Supplied uint exceeds width: ' + size + ' vs ' + num.bitLength())\\n }\\n\\n if (num < 0) {\\n throw new Error('Supplied uint is negative')\\n }\\n\\n return num.toArrayLike(Buffer, 'be', 32)\\n } else if (type.startsWith('int')) {\\n size = parseTypeN(type)\\n if ((size % 8) || (size < 8) || (size > 256)) {\\n throw new Error('Invalid int width: ' + size)\\n }\\n\\n num = parseNumber(arg)\\n if (num.bitLength() > size) {\\n throw new Error('Supplied int exceeds width: ' + size + ' vs ' + num.bitLength())\\n }\\n\\n return num.toTwos(256).toArrayLike(Buffer, 'be', 32)\\n } else if (type.startsWith('ufixed')) {\\n size = parseTypeNxM(type)\\n\\n num = parseNumber(arg)\\n\\n if (num < 0) {\\n throw new Error('Supplied ufixed is negative')\\n }\\n\\n return encodeSingle('uint256', num.mul(new BN(2).pow(new BN(size[1]))))\\n } else if (type.startsWith('fixed')) {\\n size = parseTypeNxM(type)\\n\\n return encodeSingle('int256', parseNumber(arg).mul(new BN(2).pow(new BN(size[1]))))\\n }\\n\\n throw new Error('Unsupported or invalid type: ' + type)\\n}\",\n \"function constructParams(types, data) {\\n return types.map(function (type, i) {\\n if (data && data[i]) {\\n return new type(data[i]);\\n }\\n return new type();\\n });\\n}\",\n \"function constructParams(types, data) {\\n return types.map(function (type, i) {\\n if (data && data[i]) {\\n return new type(data[i]);\\n }\\n return new type();\\n });\\n}\",\n \"function parsePrimitives(info, name, value) {\\n var index\\n var length\\n var result\\n\\n if (typeof value !== 'object' || !('length' in value)) {\\n return parsePrimitive(info, name, value)\\n }\\n\\n length = value.length\\n index = -1\\n result = []\\n\\n while (++index < length) {\\n result[index] = parsePrimitive(info, name, value[index])\\n }\\n\\n return result\\n}\",\n \"function parsePrimitives(info, name, value) {\\n var index\\n var length\\n var result\\n\\n if (typeof value !== 'object' || !('length' in value)) {\\n return parsePrimitive(info, name, value)\\n }\\n\\n length = value.length\\n index = -1\\n result = []\\n\\n while (++index < length) {\\n result[index] = parsePrimitive(info, name, value[index])\\n }\\n\\n return result\\n}\",\n \"checkTypes(args, parameters) {\\n for (let i = 0; i < args.length; i++) {\\n if (args[i].type != parameters[i]) {\\n return {\\n valid: false,\\n invalidType: args[i].type,\\n expected: parameters[i]\\n };\\n }\\n }\\n return { valid: true };\\n }\",\n \"function Pair(s1, s2) {\\n\\n // The first shape.\\n this.shape1 = s1 || null;\\n // The second shape.\\n this.shape2 = s2 || null;\\n}\",\n \"function sc_list() {\\n var res = null;\\n var a = arguments;\\n for (var i = a.length-1; i >= 0; i--)\\n\\tres = new sc_Pair(a[i], res);\\n return res;\\n}\",\n \"mk$params() {\\n const arg_arr = this.$args.v;\\n const params = [];\\n arg_arr.forEach((t) => {\\n if (this.is$typevar(t)) {\\n if (this.tuple$index(params, t) < 0) {\\n params.push(t);\\n }\\n }\\n });\\n this.$params = new Sk.builtin.tuple(params);\\n }\",\n \"function checkType(x) {\\n // if(typeof x == \\\"function\\\" || x == undefined) {\\n // return;\\n // }\\n if(typeof x == \\\"number\\\" || typeof x == \\\"boolean\\\" || x == null) {\\n if (x === undefined) return '\\\"null\\\"';\\n placeholder = String(x);\\n return placeholder;\\n }\\n if(typeof x == \\\"string\\\") {\\n placeholder = ['\\\"' + x + '\\\"'].join();\\n return placeholder\\n }\\n \\n if(typeof x == \\\"object\\\") {\\n if(Array.isArray(x) == false) {\\n if(x == {}) {\\n return \\\"{}\\\";\\n } else {\\n return runThroughObject(x);\\n };\\n } else {\\n if(x.length === 0) {\\n return \\\"[]\\\"\\n } else {\\n return runThroughArray(x);\\n }\\n }\\n }\\n }\",\n \"function expand1_99(x) {\\n\\t//console.log('expand1_99 input', tsRec(x))\\n\\t//console.log('expand1_99');\\n\\tif (isList(x)) {\\n\\t\\t//console.log('expand1_99: x should be dict BUT is a list', x);\\n\\t}\\n\\tif (isDict(x)) { // TODO: || isList(x)) {\\n\\t\\t// if (isList(x)) {\\n\\t\\t// \\t//console.log('process: list',x)\\n\\t\\t// }\\n\\t\\tif ('_set' in x) {\\n\\t\\t\\t//console.log('handleSet wird aufgerufen')\\n\\t\\t\\treturn handleSet(x._set);\\n\\t\\t} else if ('_tuple' in x) {\\n\\t\\t\\t//console.log('handleTuple wird aufgerufen')\\n\\t\\t\\treturn handleTuple(x._tuple);\\n\\t\\t} else if ('type' in x) {\\n\\t\\t\\treturn handleAction(x);\\n\\t\\t} else { error('IMPOSSIBLE OBJECT', x); return null; }\\n\\t} else { error('IMPOSSIBLE TYPE', x); return null; }\\n}\",\n \"function getType(type) {\\n // Remove spaces.\\n type = type.replace(/\\\\s/g, '');\\n // Convert [] to Array<> for generics.\\n var sqBracketIndex = type.indexOf('[');\\n if (sqBracketIndex !== -1) {\\n return \\\"Array<\\\" + getType(type.slice(0, sqBracketIndex)) + \\\">\\\";\\n }\\n\\n // If type has < in it already, translate generic argument.\\n var angleIndex = type.indexOf('<');\\n if (angleIndex !== -1) {\\n type = type.slice(0, angleIndex) + '<' + getType(type.slice(angleIndex + 1, type.indexOf('>'))) + \\\">\\\";\\n }\\n\\n switch (type) {\\n // Weird things. Prune items as we fix docs.\\n case 'obj':\\n case 'ConvenientHunk':\\n case 'lineStats':\\n case 'RevWalk':\\n case 'StatusFile':\\n case 'historyEntry':\\n case 'DiffList':\\n return 'any';\\n // Untyped function callbacks.\\n case 'CheckoutNotifyCb':\\n case 'CheckoutPerfdataCb':\\n case 'CheckoutProgressCb':\\n case 'DiffFileCb':\\n case 'DiffBinaryCb':\\n case 'DiffHunkCb':\\n case 'DiffLineCb':\\n case 'DiffNotifyCb':\\n case 'CredAcquireCb':\\n case 'FetchheadForeachCb':\\n case 'FilterStreamFn':\\n case 'IndexMatchedPathCb':\\n case 'NoteForeachCb':\\n case 'StashCb':\\n case 'StashApplyProgressCb':\\n case 'StatusCb':\\n case 'SubmoduleCb':\\n case 'TransferProgressCb':\\n case 'TransportCb':\\n case 'TransportCertificateCheckCb':\\n return 'Function';\\n // Primitives\\n case 'String':\\n return 'string';\\n case 'Char':\\n case 'int':\\n case 'Number':\\n return 'number';\\n case 'Void':\\n return 'void';\\n case 'bool':\\n return 'boolean';\\n case 'Array':\\n return 'Array';\\n // Avoiding type collusions\\n case 'Object':\\n return 'GitObject';\\n case 'Blob':\\n return 'GitBlob';\\n // NodeJS types\\n case 'EventEmitter':\\n return 'NodeJS.EventEmitter';\\n default:\\n var dotIndex = type.indexOf('.');\\n if (dotIndex !== -1) {\\n if (type[dotIndex + 1] === '<') {\\n // Sometimes, the docs include a '.' between the type and the generic type argument.\\n return type.replace(/\\\\./g, '');\\n } else {\\n // Remove '.' from types (e.g. Reference.Type => ReferenceType) as\\n // we make them part of the outer scope.\\n // Also, convert the owner of the type properly (e.g. Object.TYPE => GitObjectTYPE).\\n return getType(type.slice(0, dotIndex)) + type.slice(dotIndex + 1);\\n }\\n } else {\\n // Check for weird things. If there are weird things, punt with 'any'.\\n if (type.indexOf('(') !== -1 || type.indexOf(':') !== -1) {\\n return 'any';\\n }\\n\\n return type;\\n }\\n }\\n }\",\n \"function parsePrimitives(info, name, value) {\\n var index;\\n var length;\\n var result;\\n if (typeof value !== 'object' || !('length' in value)) {\\n return parsePrimitive(info, name, value);\\n }\\n length = value.length;\\n index = -1;\\n result = [];\\n while (++index < length) {\\n result[index] = parsePrimitive(info, name, value[index]);\\n }\\n return result;\\n}\",\n \"function isValidLiteralValue(type, valueAST) {\\n\\t // A value must be provided if the type is non-null.\\n\\t if (type instanceof _definition.GraphQLNonNull) {\\n\\t if (!valueAST) {\\n\\t if (type.ofType.name) {\\n\\t return ['Expected \\\"' + String(type.ofType.name) + '!\\\", found null.'];\\n\\t }\\n\\t return ['Expected non-null value, found null.'];\\n\\t }\\n\\t return isValidLiteralValue(type.ofType, valueAST);\\n\\t }\\n\\n\\t if (!valueAST) {\\n\\t return [];\\n\\t }\\n\\n\\t // This function only tests literals, and assumes variables will provide\\n\\t // values of the correct type.\\n\\t if (valueAST.kind === _kinds.VARIABLE) {\\n\\t return [];\\n\\t }\\n\\n\\t // Lists accept a non-list value as a list of one.\\n\\t if (type instanceof _definition.GraphQLList) {\\n\\t var _ret = function () {\\n\\t var itemType = type.ofType;\\n\\t if (valueAST.kind === _kinds.LIST) {\\n\\t return {\\n\\t v: valueAST.values.reduce(function (acc, itemAST, index) {\\n\\t var errors = isValidLiteralValue(itemType, itemAST);\\n\\t return acc.concat(errors.map(function (error) {\\n\\t return 'In element #' + index + ': ' + error;\\n\\t }));\\n\\t }, [])\\n\\t };\\n\\t }\\n\\t return {\\n\\t v: isValidLiteralValue(itemType, valueAST)\\n\\t };\\n\\t }();\\n\\n\\t if (typeof _ret === \\\"object\\\") return _ret.v;\\n\\t }\\n\\n\\t // Input objects check each defined field and look for undefined fields.\\n\\t if (type instanceof _definition.GraphQLInputObjectType) {\\n\\t var _ret2 = function () {\\n\\t if (valueAST.kind !== _kinds.OBJECT) {\\n\\t return {\\n\\t v: ['Expected \\\"' + type.name + '\\\", found not an object.']\\n\\t };\\n\\t }\\n\\t var fields = type.getFields();\\n\\n\\t var errors = [];\\n\\n\\t // Ensure every provided field is defined.\\n\\t var fieldASTs = valueAST.fields;\\n\\t fieldASTs.forEach(function (providedFieldAST) {\\n\\t if (!fields[providedFieldAST.name.value]) {\\n\\t errors.push('In field \\\"' + providedFieldAST.name.value + '\\\": Unknown field.');\\n\\t }\\n\\t });\\n\\n\\t // Ensure every defined field is valid.\\n\\t var fieldASTMap = (0, _keyMap2.default)(fieldASTs, function (fieldAST) {\\n\\t return fieldAST.name.value;\\n\\t });\\n\\t Object.keys(fields).forEach(function (fieldName) {\\n\\t var result = isValidLiteralValue(fields[fieldName].type, fieldASTMap[fieldName] && fieldASTMap[fieldName].value);\\n\\t errors.push.apply(errors, result.map(function (error) {\\n\\t return 'In field \\\"' + fieldName + '\\\": ' + error;\\n\\t }));\\n\\t });\\n\\n\\t return {\\n\\t v: errors\\n\\t };\\n\\t }();\\n\\n\\t if (typeof _ret2 === \\\"object\\\") return _ret2.v;\\n\\t }\\n\\n\\t (0, _invariant2.default)(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType, 'Must be input type');\\n\\n\\t // Scalar/Enum input checks to ensure the type can parse the value to\\n\\t // a non-null value.\\n\\t var parseResult = type.parseLiteral(valueAST);\\n\\t if ((0, _isNullish2.default)(parseResult)) {\\n\\t return ['Expected type \\\"' + type.name + '\\\", found ' + (0, _printer.print)(valueAST) + '.'];\\n\\t }\\n\\n\\t return [];\\n\\t}\",\n \"function is(type, item) { return (typeof item)[0] == type; }\",\n \"function is(type, item) { return (typeof item)[0] == type; }\",\n \"function is(type, item) { return (typeof item)[0] == type; }\",\n \"function is(type, item) { return (typeof item)[0] == type; }\",\n \"validateInput(pairs, callback) {\\n if ( typeof pairs != 'object' || ! Array.isArray(pairs)) {\\n throw Error(\\\"1st arg expected to be an array of currency pairs: \\\", typeof pairs)\\n }\\n if ( typeof callback != 'function' ) {\\n throw Error(\\\"2nd arg expected to be a callback function: \\\", typeof callback)\\n }\\n\\n pairs.forEach( function(element, index) {\\n if ( typeof element != 'object' ) {\\n throw Error(\\\"not an array of objects\\\")\\n }\\n if ( element.source == undefined ) {\\n throw Error(\\\"'source' not defined in pair\\\")\\n }\\n if ( element.dest == undefined ) {\\n throw Error(\\\"'dest' not defined in pair\\\")\\n }\\n })\\n }\",\n \"function parametersIncludeType(parameters) {var typeValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \\\"\\\";\\n if (immutable__WEBPACK_IMPORTED_MODULE_15__[\\\"List\\\"].isList(parameters)) {\\n return _babel_runtime_corejs3_core_js_stable_instance_some__WEBPACK_IMPORTED_MODULE_11___default()(parameters).call(parameters, function (p) {return immutable__WEBPACK_IMPORTED_MODULE_15__[\\\"Map\\\"].isMap(p) && p.get(\\\"type\\\") === typeValue;});\\n }\\n}\",\n \"function _scalar( mixed ) {\\n\\t\\treturn\\ttypeof mixed == 'number' && 'number' ||\\n\\t\\t\\t\\t\\t\\ttypeof mixed == 'string' && 'string' ||\\n\\t\\t\\t\\t\\t\\ttypeof mixed == 'boolean' && 'boolean' ||\\n\\t\\t\\t\\t\\t\\ttypeof mixed == 'undefined' && 'undefined' ||\\n\\t\\t\\t\\t\\t\\tfalse;\\n\\t}\",\n \"if (type instanceof GraphQLList) {\\n const itemType = type.ofType;\\n if (isCollection(value)) {\\n const errors = [];\\n forEach((value: any), (item, index) => {\\n errors.push.apply(\\n errors,\\n isValidJSValue(item, itemType).map(\\n error => `In element #${index}: ${error}`,\\n ),\\n );\\n });\\n return errors;\\n }\\n return isValidJSValue(value, itemType);\\n }\",\n \"_checkType(element, item) {\\n let result;\\n //Check if element is a String\\n if (_.isString(element)) {\\n result = [{\\n item: item,\\n value: this._options.handleString(element, item),\\n }];\\n }\\n //Check if element is a Number\\n else if (_.isNumber(element)) {\\n result = [{\\n item: item,\\n value: this._options.handleNumber(element, item),\\n }];\\n }\\n //Check if element is a Boolean\\n else if (_.isBoolean(element)) {\\n result = [{\\n item: item,\\n value: this._options.handleBoolean(element, item),\\n }];\\n }\\n //Check if element is a Date\\n else if (_.isDate(element)) {\\n result = [{\\n item: item,\\n value: this._options.handleDate(element, item),\\n }];\\n }\\n //Check if element is an Array\\n else if (_.isArray(element)) {\\n var resultArray = this._handleArray(element, item);\\n result = this._setHeaders(resultArray, item);\\n }\\n //Check if element is a Object\\n else if (_.isObject(element)) {\\n var resultObject = this._handleObject(element, item);\\n result = this._setHeaders(resultObject, item);\\n } else {\\n result = [{\\n item: item,\\n value: '',\\n }];\\n }\\n return result;\\n }\",\n \"function tt(t) {\\n return \\\"nullValue\\\" in t ? 0 /* NullValue */ : \\\"booleanValue\\\" in t ? 1 /* BooleanValue */ : \\\"integerValue\\\" in t || \\\"doubleValue\\\" in t ? 2 /* NumberValue */ : \\\"timestampValue\\\" in t ? 3 /* TimestampValue */ : \\\"stringValue\\\" in t ? 5 /* StringValue */ : \\\"bytesValue\\\" in t ? 6 /* BlobValue */ : \\\"referenceValue\\\" in t ? 7 /* RefValue */ : \\\"geoPointValue\\\" in t ? 8 /* GeoPointValue */ : \\\"arrayValue\\\" in t ? 9 /* ArrayValue */ : \\\"mapValue\\\" in t ? X(t) ? 4 /* ServerTimestampValue */ : 10 /* ObjectValue */ : Gn(\\\"Invalid value type: \\\" + JSON.stringify(t));\\n}\",\n \"function whatDatatype(arg){\\n return typeof(arg);\\n}\",\n \"function addTypes(env, sexp, constraints) {\\n var type = null;\\n switch (sexp.tag) {\\n case 'sym':\\n if (sexp.val in env) {\\n type = env[sexp.val];\\n } else {\\n throw 'unknown sym ' + sexp.val;\\n }\\n break;\\n case 'str': type = TString; break;\\n case 'num': type = TNum; break;\\n case 'lst':\\n var head = sexp.val[0];\\n if (head.val == 'fn') {\\n var args = sexp.val[1].val;\\n // Create new entry in env for each arg.\\n env = Object.create(env);\\n args.forEach(function(arg) { env[arg.val] = gentvar(); });\\n\\n var body = sexp.val.slice(2);\\n body.forEach(function(sexp) { addTypes(env, sexp, constraints); });\\n type = new Tfn(args.map(function(arg){ return env[arg.val]; }),\\n body[body.length-1].type);\\n } else {\\n // Application of head to rest of sexp.\\n sexp.val.forEach(function(sexp) { addTypes(env, sexp, constraints); });\\n var args = sexp.val.slice(1);\\n\\n var fntype = new Tfn(args.map(function(arg) { return arg.type }),\\n gentvar());\\n constraints.push([head.type, fntype]);\\n type = fntype.ret;\\n }\\n break;\\n case 'vec':\\n var elemtype = gentvar();\\n sexp.val.forEach(function(sexp) {\\n addTypes(env, sexp, constraints);\\n constraints.push([elemtype, sexp.type]);\\n });\\n type = newTArray(elemtype);\\n break;\\n default: throw 'unknown sexp: ' + sexp.tag + ': ' + sexp;\\n }\\n if (!type)\\n throw 'no type for ' + sexp.tag + ': ' + sexp;\\n sexp.type = type;\\n}\",\n \"function parseType(type) {\\n if (typeof type === 'function') {\\n return new type();\\n } else if (isArray(type)) {\\n return [parseType(type[0])];\\n } else if (type && typeof type === 'object') {\\n var rv = {};\\n applyStructure(rv, type);\\n return rv;\\n } else {\\n return type;\\n }\\n}\",\n \"function o(e){return e&&\\\"object\\\"==typeof e&&!Array.isArray(e)}\",\n \"function M(t) {\\n return \\\"nullValue\\\" in t ? 0 /* NullValue */ : \\\"booleanValue\\\" in t ? 1 /* BooleanValue */ : \\\"integerValue\\\" in t || \\\"doubleValue\\\" in t ? 2 /* NumberValue */ : \\\"timestampValue\\\" in t ? 3 /* TimestampValue */ : \\\"stringValue\\\" in t ? 5 /* StringValue */ : \\\"bytesValue\\\" in t ? 6 /* BlobValue */ : \\\"referenceValue\\\" in t ? 7 /* RefValue */ : \\\"geoPointValue\\\" in t ? 8 /* GeoPointValue */ : \\\"arrayValue\\\" in t ? 9 /* ArrayValue */ : \\\"mapValue\\\" in t ? O(t) ? 4 /* ServerTimestampValue */ : 10 /* ObjectValue */ : _e(\\\"Invalid value type: \\\" + JSON.stringify(t));\\n}\",\n \"function typenize (type)\\n {\\n let typewords = type.split(' ');\\n\\n if (typewords.length === 1)\\n {\\n if (typewords[0] === 'Integer' || typewords[0] === 'Float')\\n return 'number';\\n\\n else if (typewords[0] === 'String')\\n return 'string';\\n\\n else if (typewords[0] === 'Boolean' || typewords[0] === 'True' || typewords[0] === 'False')\\n return 'boolean';\\n \\n else if (typewords[0] === 'InputFile')\\n return '{ name: string, data: Buffer }';\\n\\n else if (typewords[0] === 'CallbackGame')\\n return 'any';\\n\\n else\\n return typewords[0];\\n }\\n\\n else if (typewords.length === 3)\\n {\\n if (typewords[0] === 'Array' && typewords[1] === 'of')\\n return 'Array<' + typenize(typewords[2]) + '>';\\n\\n else if (typewords[1] === 'or')\\n return typenize(typewords[0]) + ' | ' + typenize(typewords[2]);\\n }\\n\\n return 'any';\\n }\",\n \"function miniKindOf(val) {\\n if (val === void 0) return 'undefined';\\n if (val === null) return 'null';\\n var type = typeof val;\\n\\n switch (type) {\\n case 'boolean':\\n case 'string':\\n case 'number':\\n case 'symbol':\\n case 'function':\\n {\\n return type;\\n }\\n }\\n\\n if (Array.isArray(val)) return 'array';\\n if (isDate(val)) return 'date';\\n if (isError(val)) return 'error';\\n var constructorName = ctorName(val);\\n\\n switch (constructorName) {\\n case 'Symbol':\\n case 'Promise':\\n case 'WeakMap':\\n case 'WeakSet':\\n case 'Map':\\n case 'Set':\\n return constructorName;\\n } // other\\n\\n\\n return type.slice(8, -1).toLowerCase().replace(/\\\\s/g, '');\\n}\",\n \"function add_primitives(...primitive_pairs) {\\n for (var i = 0; i < primitive_pairs.length; i++) {\\n PRIMITIVES.push(primitive_pairs[i]);\\n }\\n}\",\n \"function parseParameter$1(def, spec, scope) {\\n var type = def.type,\\n value = spec[def.name];\\n\\n if (type === 'index') {\\n return parseIndexParameter(def, spec, scope);\\n } else if (value === undefined) {\\n if (def.required) {\\n error('Missing required ' + $(spec.type)\\n + ' parameter: ' + $(def.name));\\n }\\n return;\\n } else if (type === 'param') {\\n return parseSubParameters(def, spec, scope);\\n } else if (type === 'projection') {\\n return scope.projectionRef(spec[def.name]);\\n }\\n\\n return def.array && !isSignal(value)\\n ? value.map(function(v) { return parameterValue(def, v, scope); })\\n : parameterValue(def, value, scope);\\n }\",\n \"function isValueObject(obj) {\\n\\treturn (obj instanceof Number) || (obj instanceof String) || (obj instanceof Boolean) || (obj === null);\\n}\",\n \"function isValidLiteralValue(type, valueNode) {\\n // A value must be provided if the type is non-null.\\n if (type instanceof _definition.GraphQLNonNull) {\\n if (!valueNode || valueNode.kind === _kinds.NULL) {\\n return ['Expected \\\"' + String(type) + '\\\", found null.'];\\n }\\n return isValidLiteralValue(type.ofType, valueNode);\\n }\\n\\n if (!valueNode || valueNode.kind === _kinds.NULL) {\\n return [];\\n }\\n\\n // This function only tests literals, and assumes variables will provide\\n // values of the correct type.\\n if (valueNode.kind === _kinds.VARIABLE) {\\n return [];\\n }\\n\\n // Lists accept a non-list value as a list of one.\\n if (type instanceof _definition.GraphQLList) {\\n var itemType = type.ofType;\\n if (valueNode.kind === _kinds.LIST) {\\n return valueNode.values.reduce(function (acc, item, index) {\\n var errors = isValidLiteralValue(itemType, item);\\n return acc.concat(errors.map(function (error) {\\n return 'In element #' + index + ': ' + error;\\n }));\\n }, []);\\n }\\n return isValidLiteralValue(itemType, valueNode);\\n }\\n\\n // Input objects check each defined field and look for undefined fields.\\n if (type instanceof _definition.GraphQLInputObjectType) {\\n if (valueNode.kind !== _kinds.OBJECT) {\\n return ['Expected \\\"' + type.name + '\\\", found not an object.'];\\n }\\n var fields = type.getFields();\\n\\n var errors = [];\\n\\n // Ensure every provided field is defined.\\n var fieldNodes = valueNode.fields;\\n fieldNodes.forEach(function (providedFieldNode) {\\n if (!fields[providedFieldNode.name.value]) {\\n errors.push('In field \\\"' + providedFieldNode.name.value + '\\\": Unknown field.');\\n }\\n });\\n\\n // Ensure every defined field is valid.\\n var fieldNodeMap = (0, _keyMap2.default)(fieldNodes, function (fieldNode) {\\n return fieldNode.name.value;\\n });\\n Object.keys(fields).forEach(function (fieldName) {\\n var result = isValidLiteralValue(fields[fieldName].type, fieldNodeMap[fieldName] && fieldNodeMap[fieldName].value);\\n errors.push.apply(errors, result.map(function (error) {\\n return 'In field \\\"' + fieldName + '\\\": ' + error;\\n }));\\n });\\n\\n return errors;\\n }\\n\\n (0, _invariant2.default)(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType, 'Must be input type');\\n\\n // Scalars determine if a literal values is valid.\\n if (!type.isValidLiteral(valueNode)) {\\n return ['Expected type \\\"' + type.name + '\\\", found ' + (0, _printer.print)(valueNode) + '.'];\\n }\\n\\n return [];\\n}\",\n \"function is_pair(x) {\\n return array_test(x) && x.length === 2;\\n}\",\n \"function isValidLiteralValue(type, valueNode) {\\n // A value must be provided if the type is non-null.\\n if (type instanceof _definition.GraphQLNonNull) {\\n if (!valueNode || valueNode.kind === Kind.NULL) {\\n return ['Expected \\\"' + String(type) + '\\\", found null.'];\\n }\\n return isValidLiteralValue(type.ofType, valueNode);\\n }\\n\\n if (!valueNode || valueNode.kind === Kind.NULL) {\\n return [];\\n }\\n\\n // This function only tests literals, and assumes variables will provide\\n // values of the correct type.\\n if (valueNode.kind === Kind.VARIABLE) {\\n return [];\\n }\\n\\n // Lists accept a non-list value as a list of one.\\n if (type instanceof _definition.GraphQLList) {\\n var itemType = type.ofType;\\n if (valueNode.kind === Kind.LIST) {\\n return valueNode.values.reduce(function (acc, item, index) {\\n var errors = isValidLiteralValue(itemType, item);\\n return acc.concat(errors.map(function (error) {\\n return 'In element #' + index + ': ' + error;\\n }));\\n }, []);\\n }\\n return isValidLiteralValue(itemType, valueNode);\\n }\\n\\n // Input objects check each defined field and look for undefined fields.\\n if (type instanceof _definition.GraphQLInputObjectType) {\\n if (valueNode.kind !== Kind.OBJECT) {\\n return ['Expected \\\"' + type.name + '\\\", found not an object.'];\\n }\\n var fields = type.getFields();\\n\\n var errors = [];\\n\\n // Ensure every provided field is defined.\\n var fieldNodes = valueNode.fields;\\n fieldNodes.forEach(function (providedFieldNode) {\\n if (!fields[providedFieldNode.name.value]) {\\n errors.push('In field \\\"' + providedFieldNode.name.value + '\\\": Unknown field.');\\n }\\n });\\n\\n // Ensure every defined field is valid.\\n var fieldNodeMap = (0, _keyMap2.default)(fieldNodes, function (fieldNode) {\\n return fieldNode.name.value;\\n });\\n Object.keys(fields).forEach(function (fieldName) {\\n var result = isValidLiteralValue(fields[fieldName].type, fieldNodeMap[fieldName] && fieldNodeMap[fieldName].value);\\n errors.push.apply(errors, result.map(function (error) {\\n return 'In field \\\"' + fieldName + '\\\": ' + error;\\n }));\\n });\\n\\n return errors;\\n }\\n\\n !(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType) ? (0, _invariant2.default)(0, 'Must be input type') : void 0;\\n\\n // Scalars determine if a literal values is valid.\\n if (!type.isValidLiteral(valueNode)) {\\n return ['Expected type \\\"' + type.name + '\\\", found ' + (0, _printer.print)(valueNode) + '.'];\\n }\\n\\n return [];\\n}\",\n \"function isValidLiteralValue(type, valueNode) {\\n // A value must be provided if the type is non-null.\\n if (type instanceof _definition.GraphQLNonNull) {\\n if (!valueNode || valueNode.kind === Kind.NULL) {\\n return ['Expected \\\"' + String(type) + '\\\", found null.'];\\n }\\n return isValidLiteralValue(type.ofType, valueNode);\\n }\\n\\n if (!valueNode || valueNode.kind === Kind.NULL) {\\n return [];\\n }\\n\\n // This function only tests literals, and assumes variables will provide\\n // values of the correct type.\\n if (valueNode.kind === Kind.VARIABLE) {\\n return [];\\n }\\n\\n // Lists accept a non-list value as a list of one.\\n if (type instanceof _definition.GraphQLList) {\\n var itemType = type.ofType;\\n if (valueNode.kind === Kind.LIST) {\\n return valueNode.values.reduce(function (acc, item, index) {\\n var errors = isValidLiteralValue(itemType, item);\\n return acc.concat(errors.map(function (error) {\\n return 'In element #' + index + ': ' + error;\\n }));\\n }, []);\\n }\\n return isValidLiteralValue(itemType, valueNode);\\n }\\n\\n // Input objects check each defined field and look for undefined fields.\\n if (type instanceof _definition.GraphQLInputObjectType) {\\n if (valueNode.kind !== Kind.OBJECT) {\\n return ['Expected \\\"' + type.name + '\\\", found not an object.'];\\n }\\n var fields = type.getFields();\\n\\n var errors = [];\\n\\n // Ensure every provided field is defined.\\n var fieldNodes = valueNode.fields;\\n fieldNodes.forEach(function (providedFieldNode) {\\n if (!fields[providedFieldNode.name.value]) {\\n errors.push('In field \\\"' + providedFieldNode.name.value + '\\\": Unknown field.');\\n }\\n });\\n\\n // Ensure every defined field is valid.\\n var fieldNodeMap = (0, _keyMap2.default)(fieldNodes, function (fieldNode) {\\n return fieldNode.name.value;\\n });\\n Object.keys(fields).forEach(function (fieldName) {\\n var result = isValidLiteralValue(fields[fieldName].type, fieldNodeMap[fieldName] && fieldNodeMap[fieldName].value);\\n errors.push.apply(errors, result.map(function (error) {\\n return 'In field \\\"' + fieldName + '\\\": ' + error;\\n }));\\n });\\n\\n return errors;\\n }\\n\\n !(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType) ? (0, _invariant2.default)(0, 'Must be input type') : void 0;\\n\\n // Scalars determine if a literal values is valid.\\n if (!type.isValidLiteral(valueNode)) {\\n return ['Expected type \\\"' + type.name + '\\\", found ' + (0, _printer.print)(valueNode) + '.'];\\n }\\n\\n return [];\\n}\",\n \"function r(e){return e&&\\\"object\\\"==typeof e&&!Array.isArray(e)}\",\n \"function r(e){return e&&\\\"object\\\"==typeof e&&!Array.isArray(e)}\",\n \"function r(e){return e&&\\\"object\\\"==typeof e&&!Array.isArray(e)}\",\n \"function miniKindOf(val) {\\n if (val === void 0) return 'undefined';\\n if (val === null) return 'null';\\n var type = typeof val;\\n\\n switch (type) {\\n case 'boolean':\\n case 'string':\\n case 'number':\\n case 'symbol':\\n case 'function':\\n {\\n return type;\\n }\\n }\\n\\n if (Array.isArray(val)) return 'array';\\n if (isDate(val)) return 'date';\\n if (isError(val)) return 'error';\\n var constructorName = ctorName(val);\\n\\n switch (constructorName) {\\n case 'Symbol':\\n case 'Promise':\\n case 'WeakMap':\\n case 'WeakSet':\\n case 'Map':\\n case 'Set':\\n return constructorName;\\n } // other\\n\\n\\n return type.slice(8, -1).toLowerCase().replace(/\\\\s/g, '');\\n }\",\n \"function dataTypeChecker(arr) {\\n let dataType = typeof arr[0];\\n let same = true;\\n for (let i = 0; i < arr.length; i++) {\\n if (dataType !== typeof arr[i]) {\\n return (same = false);\\n }\\n }\\n return same;\\n}\",\n \"function Pair(item1, item2) {\\n var __arguments = new Array(arguments.length);\\n for (var __argumentIndex = 0; __argumentIndex < __arguments.length; ++__argumentIndex) {\\n __arguments[__argumentIndex] = arguments[__argumentIndex];\\n }\\n if (__arguments.length == 2) {\\n var item1_2 = __arguments[0];\\n var item2_2 = __arguments[1];\\n //super();\\n this.setItem1(item1_2);\\n this.setItem2(item2_2);\\n }\\n else {\\n throw new fm.liveswitch.Exception('Constructor overload does not exist with specified parameter count/type combination.');\\n }\\n }\",\n \"function testParamType(param, types){\\n for (var i = 0; i < types.length; i++) {\\n if (typeof(param) === types[i].toLowerCase()) {\\n return true; // type match, pass\\n } else if (types[i] === 'Constant') {\\n return true; // accepts any constant, pass\\n }\\n }\\n return false;\\n}\",\n \"function resolveParamSchema(type) {\\n if (type.kind === 'NonNullType') {\\n return resolveParamSchema(type.type);\\n }\\n if (type.kind === 'ListType') {\\n return {\\n type: 'array',\\n items: resolveParamSchema(type.type),\\n };\\n }\\n const primitive = utils_1.mapToPrimitive(type.name.value);\\n return (primitive || {\\n $ref: utils_1.mapToRef(type.name.value),\\n });\\n}\",\n \"function StructType() {}\",\n \"static fromPairs() {\\n let array = [['fred', 30], ['barney', 40]];\\n console.log(_.fromPairs(array)); // Object {fred: 30, barney: 40}\\n array = [[23, 43], ['ab', 'ewriouwe'], [54]];\\n console.log(_.fromPairs(array)); // Object {23: 43, 54: undefined, ab: \\\"ewriouwe\\\"}\\n }\",\n \"function innerType(n) { }\",\n \"function isValidJSValue(value, type) {\\n\\t // A value must be provided if the type is non-null.\\n\\t if (type instanceof _definition.GraphQLNonNull) {\\n\\t if ((0, _isNullish2.default)(value)) {\\n\\t if (type.ofType.name) {\\n\\t return ['Expected \\\"' + String(type.ofType.name) + '!\\\", found null.'];\\n\\t }\\n\\t return ['Expected non-null value, found null.'];\\n\\t }\\n\\t return isValidJSValue(value, type.ofType);\\n\\t }\\n\\n\\t if ((0, _isNullish2.default)(value)) {\\n\\t return [];\\n\\t }\\n\\n\\t // Lists accept a non-list value as a list of one.\\n\\t if (type instanceof _definition.GraphQLList) {\\n\\t var _ret = function () {\\n\\t var itemType = type.ofType;\\n\\t if ((0, _iterall.isCollection)(value)) {\\n\\t var _ret2 = function () {\\n\\t var errors = [];\\n\\t (0, _iterall.forEach)(value, function (item, index) {\\n\\t errors.push.apply(errors, isValidJSValue(item, itemType).map(function (error) {\\n\\t return 'In element #' + index + ': ' + error;\\n\\t }));\\n\\t });\\n\\t return {\\n\\t v: {\\n\\t v: errors\\n\\t }\\n\\t };\\n\\t }();\\n\\n\\t if (typeof _ret2 === \\\"object\\\") return _ret2.v;\\n\\t }\\n\\t return {\\n\\t v: isValidJSValue(value, itemType)\\n\\t };\\n\\t }();\\n\\n\\t if (typeof _ret === \\\"object\\\") return _ret.v;\\n\\t }\\n\\n\\t // Input objects check each defined field.\\n\\t if (type instanceof _definition.GraphQLInputObjectType) {\\n\\t var _ret3 = function () {\\n\\t if (typeof value !== 'object' || value === null) {\\n\\t return {\\n\\t v: ['Expected \\\"' + type.name + '\\\", found not an object.']\\n\\t };\\n\\t }\\n\\t var fields = type.getFields();\\n\\n\\t var errors = [];\\n\\n\\t // Ensure every provided field is defined.\\n\\t Object.keys(value).forEach(function (providedField) {\\n\\t if (!fields[providedField]) {\\n\\t errors.push('In field \\\"' + providedField + '\\\": Unknown field.');\\n\\t }\\n\\t });\\n\\n\\t // Ensure every defined field is valid.\\n\\t Object.keys(fields).forEach(function (fieldName) {\\n\\t var newErrors = isValidJSValue(value[fieldName], fields[fieldName].type);\\n\\t errors.push.apply(errors, newErrors.map(function (error) {\\n\\t return 'In field \\\"' + fieldName + '\\\": ' + error;\\n\\t }));\\n\\t });\\n\\n\\t return {\\n\\t v: errors\\n\\t };\\n\\t }();\\n\\n\\t if (typeof _ret3 === \\\"object\\\") return _ret3.v;\\n\\t }\\n\\n\\t (0, _invariant2.default)(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType, 'Must be input type');\\n\\n\\t // Scalar/Enum input checks to ensure the type can parse the value to\\n\\t // a non-null value.\\n\\t var parseResult = type.parseValue(value);\\n\\t if ((0, _isNullish2.default)(parseResult)) {\\n\\t return ['Expected type \\\"' + type.name + '\\\", found ' + JSON.stringify(value) + '.'];\\n\\t }\\n\\n\\t return [];\\n\\t}\",\n \"function valueDescription(input){if(input===undefined){return'undefined';}else if(input===null){return'null';}else if(typeof input==='string'){if(input.length>20){input=input.substring(0,20)+\\\"...\\\";}return JSON.stringify(input);}else if(typeof input==='number'||typeof input==='boolean'){return''+input;}else if(typeof input==='object'){if(input instanceof Array){return'an array';}else{var customObjectName=tryGetCustomObjectType(input);if(customObjectName){return\\\"a custom \\\"+customObjectName+\\\" object\\\";}else{return'an object';}}}else if(typeof input==='function'){return'a function';}else{return fail('Unknown wrong type: '+typeof input);}}\",\n \"function parseParameters$1(spec, ctx, params) {\\n params = params || {};\\n var key$$1, value;\\n\\n for (key$$1 in spec) {\\n value = spec[key$$1];\\n\\n params[key$$1] = isArray(value)\\n ? value.map(function(v) { return parseParameter$2(v, ctx, params); })\\n : parseParameter$2(value, ctx, params);\\n }\\n return params;\\n }\",\n \"function isValidLiteralValue(type, valueAST) {\\n // A value must be provided if the type is non-null.\\n if (type instanceof _definition.GraphQLNonNull) {\\n if (!valueAST) {\\n if (type.ofType.name) {\\n return ['Expected \\\"' + type.ofType.name + '!\\\", found null.'];\\n }\\n return ['Expected non-null value, found null.'];\\n }\\n return isValidLiteralValue(type.ofType, valueAST);\\n }\\n\\n if (!valueAST) {\\n return [];\\n }\\n\\n // This function only tests literals, and assumes variables will provide\\n // values of the correct type.\\n if (valueAST.kind === _kinds.VARIABLE) {\\n return [];\\n }\\n\\n // Lists accept a non-list value as a list of one.\\n if (type instanceof _definition.GraphQLList) {\\n var _ret = function () {\\n var itemType = type.ofType;\\n if (valueAST.kind === _kinds.LIST) {\\n return {\\n v: valueAST.values.reduce(function (acc, itemAST, index) {\\n var errors = isValidLiteralValue(itemType, itemAST);\\n return acc.concat(errors.map(function (error) {\\n return 'In element #' + index + ': ' + error;\\n }));\\n }, [])\\n };\\n }\\n return {\\n v: isValidLiteralValue(itemType, valueAST)\\n };\\n }();\\n\\n if ((typeof _ret === 'undefined' ? 'undefined' : (0, _typeof3.default)(_ret)) === \\\"object\\\") return _ret.v;\\n }\\n\\n // Input objects check each defined field and look for undefined fields.\\n if (type instanceof _definition.GraphQLInputObjectType) {\\n if (valueAST.kind !== _kinds.OBJECT) {\\n return ['Expected \\\"' + type.name + '\\\", found not an object.'];\\n }\\n var fields = type.getFields();\\n\\n var errors = [];\\n\\n // Ensure every provided field is defined.\\n var fieldASTs = valueAST.fields;\\n var _iteratorNormalCompletion = true;\\n var _didIteratorError = false;\\n var _iteratorError = undefined;\\n\\n try {\\n for (var _iterator = (0, _getIterator3.default)(fieldASTs), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\\n var providedFieldAST = _step.value;\\n\\n if (!fields[providedFieldAST.name.value]) {\\n errors.push('In field \\\"' + providedFieldAST.name.value + '\\\": Unknown field.');\\n }\\n }\\n\\n // Ensure every defined field is valid.\\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 var fieldASTMap = (0, _keyMap2.default)(fieldASTs, function (fieldAST) {\\n return fieldAST.name.value;\\n });\\n var _iteratorNormalCompletion2 = true;\\n var _didIteratorError2 = false;\\n var _iteratorError2 = undefined;\\n\\n try {\\n var _loop = function _loop() {\\n var fieldName = _step2.value;\\n\\n var result = isValidLiteralValue(fields[fieldName].type, fieldASTMap[fieldName] && fieldASTMap[fieldName].value);\\n errors.push.apply(errors, (0, _toConsumableArray3.default)(result.map(function (error) {\\n return 'In field \\\"' + fieldName + '\\\": ' + error;\\n })));\\n };\\n\\n for (var _iterator2 = (0, _getIterator3.default)((0, _keys2.default)(fields)), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\\n _loop();\\n }\\n } catch (err) {\\n _didIteratorError2 = true;\\n _iteratorError2 = err;\\n } finally {\\n try {\\n if (!_iteratorNormalCompletion2 && _iterator2.return) {\\n _iterator2.return();\\n }\\n } finally {\\n if (_didIteratorError2) {\\n throw _iteratorError2;\\n }\\n }\\n }\\n\\n return errors;\\n }\\n\\n (0, _invariant2.default)(type instanceof _definition.GraphQLScalarType || type instanceof _definition.GraphQLEnumType, 'Must be input type');\\n\\n // Scalar/Enum input checks to ensure the type can parse the value to\\n // a non-null value.\\n var parseResult = type.parseLiteral(valueAST);\\n if ((0, _isNullish2.default)(parseResult)) {\\n return ['Expected type \\\"' + type.name + '\\\", found ' + (0, _printer.print)(valueAST) + '.'];\\n }\\n\\n return [];\\n}\",\n \"function isPrimitive(value){return typeof value==='string'||typeof value==='number'||typeof value==='boolean';}\",\n \"function isPrimitive(value){return typeof value==='string'||typeof value==='number'||typeof value==='boolean';}\",\n \"isPrimitiveParamType(paramTypeName) {\\n return ['string', 'boolean', 'number', 'object'].includes(paramTypeName.toLowerCase());\\n }\",\n \"function r(t){return t&&\\\"object\\\"==typeof t&&!Array.isArray(t)}\",\n \"function n(e){return e&&\\\"object\\\"==typeof e&&!Array.isArray(e)}\",\n \"function n(e){return e&&\\\"object\\\"==typeof e&&!Array.isArray(e)}\",\n \"function typed(typeMap){\\n return function(...args){\\n redo: for(let t of typeMap){\\n let [key, func] = t;\\n let i = 0;\\n for(let k of key){ \\n let matched = true;\\n if(k instanceof StackedPseudoType)\\n matched = k.match(args[i]);\\n else if(k instanceof Array)\\n matched = k[0](args[i]);\\n else\\n matched = args[i] instanceof k || args[i].constructor === k;\\n \\n if(!matched)\\n continue redo;\\n \\n i++;\\n }\\n return func.bind(this)(...args);\\n }\\n error(\\\"no matching types for \\\" +\\n args.map(e => e ? typeName(e.constructor) : \\\"undefined\\\")\\n .join(\\\", \\\"));\\n }\\n}\",\n \"function tsParseAssignableListItemTypes() {\\n const oldIsType = pushTypeContext(0);\\n eat(TokenType.question);\\n tsTryParseTypeAnnotation();\\n popTypeContext(oldIsType);\\n}\",\n \"function arrayOrObject(collection) {\\n //input any datatypes\\n //output string array or object\\n //if else statements to check types\\n //see if array\\n \\n \\n if (Array.isArray(collection) === true){\\n return \\\"array\\\";\\n } else {\\n return \\\"object\\\";\\n }\\n // see if object\\n \\n}\",\n \"function isPrimitive(value){return typeof value==='string'||typeof value==='number';}\",\n \"function convType(data, size) {\\n\\n var unknown = 'unknown';\\n var precision = 0;\\n var scale = 0;\\n\\n if (data == CHAR || data == NCHAR || data == VARCHAR2 || data == NVARCHAR2) {\\n return 'string';\\n }\\n if (data == LONG || data == CLOB || data == NCLOB || data == ROWID) {\\n return 'string';\\n }\\n if (data == BINARY_DOUBLE) {\\n return 'double';\\n }\\n if (data == BINARY_FLOAT) {\\n return 'float';\\n }\\n\\n if (data == FLOAT) return 'decimal';\\n if (data == TIMESTAMP) return 'DateTime';\\n if (data == DATE) return 'DateTime';\\n\\n if (data == BFILE || data == RAW || data == BLOB) {\\n return 'byte[]';\\n }\\n\\n if (data == NUMBER) {\\n var arr = size.toString().trim().split(\\\",\\\");\\n if (arr.length == 0) {\\n return unknown;\\n } else if (arr.length == 1) {\\n if (!isNumber(arr[0])) {\\n return unknown;\\n }\\n precision = toNumber(arr[0]);\\n return getNumericType(precision, 0);\\n } else {\\n arr[0] = arr[0].toString().trim();\\n arr[1] = arr[1].toString().trim();\\n\\n if (!isNumber(arr[0]) || !isNumber(arr[1])) {\\n return unknown;\\n }\\n precision = toNumber(arr[0]);\\n scale = toNumber(arr[1]);\\n return getNumericType(precision, scale);\\n }\\n }\\n\\n return unknown;\\n}\",\n \"function isList(v) {\\n\\t\\treturn !!v && v.length != _null && !isString(v) && !isNode(v) && !isFunction(v);\\n\\t}\",\n \"function arrayOrObject (arg1) {\\n if (Array.isArray(arg1)) return 'array';\\n else return 'object';\\n}\",\n \"function typeOfSort(values){\\n\\t\\ttype = typeOfDefault; /*type of the default array*/ \\n\\t\\tif(typeof values !== 'undefined'){\\n\\t\\t\\tif (!(values instanceof Array)){\\n\\t\\t\\t\\tif(typeof values === 'string'){\\n\\t\\t\\t\\t\\tif(values.indexOf(' ') >= 0){\\n\\t\\t\\t\\t\\t\\tif(((typeof opts !== 'undefined') && (typeof opts.breakIntoLetters !== 'undefined') && opts.breakIntoLetters)){\\n\\t\\t\\t\\t\\t\\t\\tvar words = '-MultiWord-SortByLetter';\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\telse {\\n\\t\\t\\t\\t\\t\\t\\tvar words = '-MultiWord-SortByWord';\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tvalues = values.replace(/([\\\\s]+)/ig, \\\"\\\"); /*Remove spaces so that we can better find if it's mixed or numbers (numbers inside string separated with space are not recognized as numbers)*/\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\telse {\\n\\t\\t\\t\\t\\t\\tvar words = '-OneWord';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\tif(isNumber(values)){\\n\\t\\t\\t\\t\\t\\ttype = 'stringOfNumber';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\telse if(hasNumbers(values)){\\n\\t\\t\\t\\t\\t\\ttype = 'stringOfMixed';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\telse {\\n\\t\\t\\t\\t\\t\\ttype = 'stringOfText';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\ttype = type+words;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse if(isNumber(values)){\\n\\t\\t\\t\\t\\ttype = 'number';\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\telse {\\n\\t\\t\\t\\tvar has = {\\n\\t\\t\\t\\t\\tstrings: {texts: false, numbers: false},\\n\\t\\t\\t\\t\\tnumbers: false\\n\\t\\t\\t\\t};\\n\\t\\t\\t\\tfor(key in values){\\n\\t\\t\\t\\t\\tif(typeof values[key] === 'string'){\\n\\t\\t\\t\\t\\t\\tif(has.numbers == true){ /*If we know already that the array has at least one number, set strings.texts & strings.numbers to true and break to gain time - when number+string(any kind) is arrayOfMixed*/\\n\\t\\t\\t\\t\\t\\t\\thas.strings.numbers = has.strings.texts = true;\\n\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\telse if(isNumber(values[key])){\\n\\t\\t\\t\\t\\t\\t\\thas.strings.numbers = true;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\telse if(hasNumbers(values[key])){\\n\\t\\t\\t\\t\\t\\t\\thas.strings.numbers = has.strings.texts = true;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\telse {\\n\\t\\t\\t\\t\\t\\t\\thas.strings.texts = true;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\telse if(isNumber(values[key])){\\n\\t\\t\\t\\t\\t\\tif((has.strings.texts == true) || (has.strings.numbers == true)){ /*If we know already that the array has at least one string, set numbers to true and break to gain time*/\\n\\t\\t\\t\\t\\t\\t\\thas.numbers = true;\\n\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\thas.numbers = true;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\n\\t\\t\\t\\tif(has.numbers == true){\\n\\t\\t\\t\\t\\ttype = 'arrayOfNumbers';\\n\\t\\t\\t\\t\\tif((has.strings.texts == true) || (has.strings.numbers == true)){\\n\\t\\t\\t\\t\\t\\ttype = 'arrayOfMixed';\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse if((has.strings.texts == true)&&(has.strings.numbers == true)){\\n\\t\\t\\t\\t\\ttype = 'arrayOfStringsMixed';\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse if(has.strings.texts == true){\\n\\t\\t\\t\\t\\ttype = 'arrayOfStringsText';\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\telse {\\n\\t\\t\\t\\t\\ttype = 'arrayOfStringsNumbers';\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\ttype = typeOfDefault;\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn type;\\n\\t}\",\n \"static isTypeParametered(structure) {\\r\\n switch (structure.kind) {\\r\\n case StructureKind_1.StructureKind.Class:\\r\\n case StructureKind_1.StructureKind.Constructor:\\r\\n case StructureKind_1.StructureKind.ConstructorOverload:\\r\\n case StructureKind_1.StructureKind.GetAccessor:\\r\\n case StructureKind_1.StructureKind.Method:\\r\\n case StructureKind_1.StructureKind.MethodOverload:\\r\\n case StructureKind_1.StructureKind.SetAccessor:\\r\\n case StructureKind_1.StructureKind.Function:\\r\\n case StructureKind_1.StructureKind.FunctionOverload:\\r\\n case StructureKind_1.StructureKind.CallSignature:\\r\\n case StructureKind_1.StructureKind.ConstructSignature:\\r\\n case StructureKind_1.StructureKind.Interface:\\r\\n case StructureKind_1.StructureKind.MethodSignature:\\r\\n case StructureKind_1.StructureKind.TypeAlias:\\r\\n return true;\\r\\n default:\\r\\n return false;\\r\\n }\\r\\n }\",\n \"function r(e){return null!=e&&\\\"object\\\"==typeof e&&!1===Array.isArray(e)}\",\n \"function r(e){return null!=e&&\\\"object\\\"==typeof e&&!1===Array.isArray(e)}\",\n \"function r(e){return null!=e&&\\\"object\\\"==typeof e&&!1===Array.isArray(e)}\",\n \"function wrap(x) {\\n if (Array.isArray(x)) { \\n const template = {type: {name: 'List'}, token: 'Value'};\\n const eithers = x.map(wrap); // Recur. Return an array of Eithers\\n const values = S.sequence(S.Either, eithers) // Sequence into a single Either\\n return S.map(x => R.assoc('value', x, template), values);\\n }\\n else {\\n const template = {value: x, token: 'Value'};\\n return S.map(x => R.assoc('type', x, template), infer(x)); // returns an Either\\n }\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.5339763","0.5276069","0.52639985","0.5221724","0.52196056","0.52180463","0.5181493","0.514586","0.51011026","0.50754654","0.5028137","0.5026967","0.50166297","0.49629802","0.4949176","0.49459082","0.49264735","0.49264735","0.49264735","0.49264735","0.49264735","0.49264735","0.49167445","0.4900198","0.48881623","0.48212978","0.48209453","0.48209453","0.4790598","0.47801608","0.47801608","0.4739522","0.4739522","0.4738881","0.47177616","0.47164378","0.47089824","0.47047928","0.47016555","0.46984887","0.46977973","0.4672519","0.4659007","0.4659007","0.4659007","0.4659007","0.46543396","0.4639471","0.46355498","0.46333903","0.46272406","0.46167356","0.46136138","0.46053475","0.46049327","0.4591021","0.45831728","0.4581072","0.4575123","0.4574061","0.45706517","0.4553038","0.45463595","0.45445475","0.45437804","0.45437804","0.4540347","0.4540347","0.4540347","0.4539848","0.4537595","0.453745","0.45319134","0.45264035","0.4523674","0.4519363","0.45182264","0.4507984","0.45039174","0.44992137","0.44971868","0.44936812","0.44936812","0.44878274","0.44829097","0.44802698","0.44802698","0.4464024","0.4462556","0.44605735","0.44590658","0.44544142","0.44540313","0.4453603","0.44466385","0.44464985","0.44375142","0.44375142","0.44375142","0.44349077"],"string":"[\n \"0.5339763\",\n \"0.5276069\",\n \"0.52639985\",\n \"0.5221724\",\n \"0.52196056\",\n \"0.52180463\",\n \"0.5181493\",\n \"0.514586\",\n \"0.51011026\",\n \"0.50754654\",\n \"0.5028137\",\n \"0.5026967\",\n \"0.50166297\",\n \"0.49629802\",\n \"0.4949176\",\n \"0.49459082\",\n \"0.49264735\",\n \"0.49264735\",\n \"0.49264735\",\n \"0.49264735\",\n \"0.49264735\",\n \"0.49264735\",\n \"0.49167445\",\n \"0.4900198\",\n \"0.48881623\",\n \"0.48212978\",\n \"0.48209453\",\n \"0.48209453\",\n \"0.4790598\",\n \"0.47801608\",\n \"0.47801608\",\n \"0.4739522\",\n \"0.4739522\",\n \"0.4738881\",\n \"0.47177616\",\n \"0.47164378\",\n \"0.47089824\",\n \"0.47047928\",\n \"0.47016555\",\n \"0.46984887\",\n \"0.46977973\",\n \"0.4672519\",\n \"0.4659007\",\n \"0.4659007\",\n \"0.4659007\",\n \"0.4659007\",\n \"0.46543396\",\n \"0.4639471\",\n \"0.46355498\",\n \"0.46333903\",\n \"0.46272406\",\n \"0.46167356\",\n \"0.46136138\",\n \"0.46053475\",\n \"0.46049327\",\n \"0.4591021\",\n \"0.45831728\",\n \"0.4581072\",\n \"0.4575123\",\n \"0.4574061\",\n \"0.45706517\",\n \"0.4553038\",\n \"0.45463595\",\n \"0.45445475\",\n \"0.45437804\",\n \"0.45437804\",\n \"0.4540347\",\n \"0.4540347\",\n \"0.4540347\",\n \"0.4539848\",\n \"0.4537595\",\n \"0.453745\",\n \"0.45319134\",\n \"0.45264035\",\n \"0.4523674\",\n \"0.4519363\",\n \"0.45182264\",\n \"0.4507984\",\n \"0.45039174\",\n \"0.44992137\",\n \"0.44971868\",\n \"0.44936812\",\n \"0.44936812\",\n \"0.44878274\",\n \"0.44829097\",\n \"0.44802698\",\n \"0.44802698\",\n \"0.4464024\",\n \"0.4462556\",\n \"0.44605735\",\n \"0.44590658\",\n \"0.44544142\",\n \"0.44540313\",\n \"0.4453603\",\n \"0.44466385\",\n \"0.44464985\",\n \"0.44375142\",\n \"0.44375142\",\n \"0.44375142\",\n \"0.44349077\"\n]"},"document_score":{"kind":"string","value":"0.51133865"},"document_rank":{"kind":"string","value":"8"}}},{"rowIdx":211,"cells":{"query":{"kind":"string","value":"Using the JavaScript language, have the function HammingDistance(strArr) take the array of strings stored in strArr, which will only contain two strings of equal length and return the Hamming distance between them. The Hamming distance is the number of positions where the corresponding characters are different. For example: if strArr is [\"coder\", \"codec\"] then your program should return 1. The string will always be of equal length and will only contain lowercase characters from the alphabet and numbers. Sample Test Cases Input:\"10011\", \"10100\" Output:3 Input:\"helloworld\", \"worldhello\" Output:8 / jshint esversion: 6"},"document":{"kind":"string","value":"function HamingDistance(strArr) {\n\t// strArr[0].length;\n\tlet count = 0;\n\tfor (let i = 0; i < strArr[0].length; i++) {\n\t\tif (strArr[0][i] != strArr[1][i]) {\n\t\t\tcount += 1;\n\t\t}\n\t}\n\n\treturn count;\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function getHammingDistance(str1, str2){ \n\tvar cnt=0, i=0;\n\t\n\tif(str1.length != str2.length) console.log(\"Error! Strings are not equal!\"); //prints error msg if length of both string is NOT equal\n\tif(str1.length <= 0 || str2.length <= 0) console.log(\"Invalid string length!\"); //prints error msg if length is invalid (negative or zero)\n\telse{\n\t\twhile(i= 'a' && ch <= 'z') {\n var code = ch.charCodeAt(0);\n\n arr[code - 97]++;\n } else if (ch >= 'A' && ch <= 'Z') {\n var code = ch.charCodeAt(0);\n arr[code - 65]++;\n } else {\n var code = ch.charCodeAt(0);\n arr[code - 22]++;\n }\n ch = string2.charAt(index);\n if (ch >= 'a' && ch <= 'z') {\n var code = ch.charCodeAt(0);\n\n arr[code - 97]--;\n } else if (ch >= 'A' && ch <= 'Z') {\n var code = ch.charCodeAt(0);\n arr[code - 65]--;\n } else {\n var code = ch.charCodeAt(0);\n arr[code - 22]--;\n }\n\n\n }\n for (let index = 0; index < 36; index++) {\n if (arr[index] != 0) {\n return false;\n }\n }\n return true;\n}","levenshtein_distance(str1, str2) {\n\t str1=str1.toUpperCase()\n\t str2=str2.toUpperCase()\n\t //If strings are empty, return opposite strings length\n\t if(str1.length == 0) return str2.length \n\t if(str2.length == 0) return str1.length\n\t \n\t\t//Create the matrix\n\t var matrix = [];\n\t for(let i = 0; i <= str2.length; i++){\n\t matrix[i] = [i]\n\t }\n\t for(let j = 0; j <= str1.length; j++){\n\t matrix[0][j] = j\n\t }\n\n\t \t//Iterate through i axis, or first word\n\t for(let i = 1; i <= str2.length; i++){\n\t\t\t//Iterate through j axis, or second word\n\t \tfor(let j = 1; j <= str1.length; j++){\n\t \t\t//If characters are equal\n\t\t if(str2.charAt(i-1) === str1.charAt(j-1)){\n\t\t matrix[i][j] = matrix[i-1][j-1]\n\t\t } \n\t else {\n\t matrix[i][j] = Math.min(\n\t matrix[i-1][j-1] + 1, //Represents a substitution\n\t matrix[i][j-1] + 1, //Represents an insertion\n\t matrix[i-1][j] + 1 //Represents a deletion\n\t \t\t\t\t)\n\t }\n\t }\n\t }\n\t //Retruns total amount of subsitutions, insertions and deletions necesseary to transform one word to another\n\t return matrix[str2.length][str1.length]\n\t}","function anagrams(str1, str2) {\n let resultsHash = {};\n\n str1.split('').forEach( char => {\n if (!resultsHash[char]) resultsHash[char] = 0;\n resultsHash[char] += 1;\n })\n\n str2.split('').forEach( char => {\n if (!resultsHash[char]) resultsHash[char] = 0;\n resultsHash[char] -= 1;\n })\n\n // console.log(resultsHash)\n return Object.values(resultsHash).every( value => value == 0);\n}","function Levenshtein (str1, str2) {\n var m = str1.length,\n n = str2.length,\n d = [],\n i, j;\n \n if (!m) return n;\n if (!n) return m;\n for (i = 0; i <= m; i++) d[i] = [i];\n for (j = 0; j <= n; j++) d[0][j] = j;\n for (j = 1; j <= n; j++) {\n for (i = 1; i <= m; i++) {\n if (str1[i-1] === str2[j-1]) d[i][j] = d[i - 1][j - 1];\n else d[i][j] = Math.min(d[i-1][j], d[i][j-1], d[i-1][j-1]) + 1;\n }\n }\n return d[m][n];\n }","function anagrams(string1, string2){\n let obj = {};\n\n string1.split(\"\").forEach((char) => {\n if (!obj[char]) {\n obj[char] = 1;\n } else {\n obj[char] += 1;\n }\n });\n\n string2.split(\"\").forEach((char) => {\n if (!obj[char]) {\n obj[char] = 1;\n } else {\n obj[char] -= 1;\n }\n });\n\n return Object.values(obj).every(char => char === 0);\n}","function makeAnagram(a, b) {\n // if(a === b) return a.length;\n \n // if(a.length > b.length){\n // for(let char of a){\n // if(b.includes(char)){\n // b.split(' ').splice(b.indexOf(char)).join('')\n // }\n // }\n // }\n // return b.length;\n\n //1 test case. \n\n// <-------------------------------------------------------------------->\n\n // if(a === b) return a.length;\n // let arrA = a.split('').sort();\n // let arrB = b.split('').sort();\n \n // if(a.length > b.length){\n // for(let char of b){\n // if(arrA.includes(char)){\n // arrA.splice(arrA.indexOf(char), 1);\n // arrB.splice(arrB.indexOf(char), 1);\n // }\n // }\n // }\n \n // if(b.length > a.length){\n // for(let char of a){\n // if(arrB.includes(char)){\n // arrA.splice(arrA.indexOf(char), 1);\n // arrB.splice(arrB.indexOf(char), 1);\n // }\n // }\n // }\n \n // return arrA.length + arrB.length;\n\n //2 test cases passed\n\n// <----------------------------------------------------------------------->\n if(a === b) return a.length;\n let arrA = a.split('').sort();\n let arrB = b.split('').sort();\n\n if(a.length > b.length || a.length === b.length){\n for(let char of b){\n if(arrA.includes(char)){\n arrA.splice(arrA.indexOf(char), 1);\n arrB.splice(arrB.indexOf(char), 1);\n }\n }\n }\n\n if(b.length > a.length){\n for(let char of a){\n if(arrB.includes(char)){\n arrA.splice(arrA.indexOf(char), 1);\n arrB.splice(arrB.indexOf(char), 1);\n }\n }\n }\n\n return arrA.length + arrB.length;\n\n // a bit slow but passed all tests. forgot to check for equal array input lengths\n}","function levenshteinDistanceDP (token1, token2){\n\n \n const rows = token1.length + 1;\n const columns = token2.length + 1;\n\n // lets create a matrix to hold our values\n const matrix = new Array(rows).fill(null).map(() => Array(columns).fill(0));\n // now we init the first row to equal 0 1 2 3 .... rows\n // these values are derived from the number of operations it would take \n // each substring from \"\", \"h\", \"he\", ..... \"hello\" to match \"\"\n for (let i = 0; i < columns; i++)\n matrix[0][i] = i;\n\n // and the first column to equal 0 1 2 3 .... columns\n // these values are derived from the number of operations it would take \n // each substring from \"\", \"w\", \"wo\", ..... \"world\" to match \"\"\n for (let i = 0; i < columns; i++)\n matrix[0][i] = i;\n \n\n // our operations can only be operations can only be insert, replace or delete\n // 0: subtrings \"\" and \"\" match, so no operation is taken \n // 1: substrings \"h\" and \"w\" require 1 deletion each (h => \"\" and w => \"\")\n // 2: substrings \"he\" and \"wo\" require 2 deletions each (\"he\" => \"\" and \"wo\" => \"\")\n // 3: substrings \"hel\" and \"wor\" require 3 deletions each (\"hel\" => \"\" and \"wor\" =>\"\")\n\n\n // iterate through each cell\n // start at 1,1\n for (let r = 1; r < rows; r++) {\n for (let c = 1; c < columns; c++){\n\n // CASE 1 : the index being checked contains the same letter\n // \"bread\" \"boy\"\n // \"b\" === \"b\"\n // get value in top left corner (no change in edit distance since previous letter)\n // i - 1 because we have extra space in front \"\" empty string\n if(token1.charAt(r-1) === token2.charAt(c -1)) matrix[r][c] = matrix[r-1][c-1];\n\n\n // CASE 2 : the index being checked does not contains the same letter\n // \"hello\" \"world\"\n // \"h\" !== \"w\"\n \n // get minimum value in 2 by 2 neighborhood and add 1\n else {\n let above = matrix[r-1][c];\n let next = matrix[r][c-1];\n let topLeft = matrix[r-1][c-1];\n\n if(above <= next && above <= topLeft) \n matrix[r][c] = above+1;\n \n else if (next <= above && next <= topLeft)\n matrix[r][c] = next+1;\n \n else \n matrix[r][c] = topLeft+1;\n }\n\n }\n }\n\n return matrix[rows-1][columns-1]; // this is total distance for both whole words \n}","function LevenshteinDistance(string1, string2) {\n // using the Wagner-Fischer algorithm\n // set each element in distance to 0\n const distance = getDistanceMatrix(string1, string2);\n for (let j = 1; j <= string1.length; j++) {\n for (let k = 1; k <= string2.length; k++) {\n \n if (string1[k] == string2[j]) {\n distance[j][k] = distance[j-1][k-1]\n } else{\n distance[j][k] = Math.min(distance[j-1][k] + 1, // a deletion\n distance[j][k-1] + 1, // an insertion\n distance[j-1][k-1] + 1 // a substitution\n );\n }\n }\n }\n return distance[string1.length][string2.length];\n}","hash(str) {\n str = str.toLowerCase();\n\n const ALPHABET = \"qwertyuiopasdfghjklzxcvbnm\"\n let sum = 0\n for (let i = 0; i < str.length; i++) {\n sum += ALPHABET.indexOf(str.charAt(i))\n }\n return sum\n }","hash(str) {\n str = str.toLowerCase();\n\n const ALPHABET = \"qwertyuiopasdfghjklzxcvbnm\"\n let sum = 0\n for (let i = 0; i < str.length; i++) {\n sum += ALPHABET.indexOf(str.charAt(i))\n }\n return sum\n }","totalDistance(arr, str){\n\t\treturn arr.reduce((total,singleElem)=>{\n\t return total+this.levenshtein_distance(singleElem,str)\n\t },0)\n\t}","function distSameLetter(s){\n var uniques = s.split('').filter((a, i) => s.indexOf(a) === i).join('');\n var arr = ['', 0];\n for(var i = 0; i < uniques.length; i++){\n diff = s.lastIndexOf(uniques[i]) - s.indexOf(uniques[i]) + 1;\n if(diff > arr[1]){\n arr = [uniques[i], diff];\n }\n }\n return arr.join('');\n}","function distance(str1, str2) {\n\tvar maxOffset = 5\n\n\tif (str1 == \"\")\n\t\treturn (str2 ==\"\")?0:str2.length\n\tif (str2 == \"\")\n\t\treturn str1.length\n\n\tvar c = 0\n\tvar offset1 = 0\n\tvar offset2 = 0\n\tvar lcs = 0\n\n\twhile ((c + offset1 < str1.length)\n\t\t&& (c + offset2 < str2.length)) {\n\t\tif (str1[c + offset1] == str2[c + offset2])\n\t\t\tlcs++\n\t\telse {\n\t\t\toffset1 = 0\n\t\t\toffset2 = 0\n\n\t\t\tfor (var i = 0; i < maxOffset; ++i) {\n\t\t\t\tif ((c + i < str1.length) && str1[c + i] == str2[c]) {\n\t\t\t\t\toffset1 = i\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tif ((c + i < str2.length) && str1[c] == str2[c+i]) {\n\t\t\t\t\toffset2 = i\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t++c\n\t}\n\n\treturn (str1.length + str2.length)/2 - lcs\n}","function levenshteinDistance(word1, word2){\n if (word1 === word2) return 0;\n \n const n = word1.length; \n const m = word2.length;\n\n\tif (0 === n) return m;\n if (0 === m) return n;\n \n var d = new Array(m); \n for(var i = 0; i <= m; d[i] = i++); // d = 0..m\n\n let cost, x, e;\n \n\tfor(let i = 0; i < n; i++){\n\t\te = i + 1;\n\t\tfor(var j = 0; j < m; j++){\n\t\t\tcost = (word1[i] === word2[j]) ? 0 : 1;\n x = Math.min(\n\t\t\t\td[j+1] + 1, // insertion\n e + 1, // deletion\n d[j] + cost // substitution\n\t\t\t);\n d[j] = e;\n e = x;\n\t\t}\n\t\td[m] = x;\n\t}\n\n\treturn x;\n}","function anagrams(stringA, stringB) {\n let charMap = {};\n let alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');\n let specialChars = [0,0];\n for ( let i = 0; i < stringA.length; i++ ) {\n let currentChar = stringA[i].toLowerCase();\n if ( alphabet.indexOf(currentChar) !== -1 ) {\n if ( !charMap[currentChar] ) charMap[currentChar] = 0;\n charMap[currentChar] ++;\n }\n else {\n specialChars[0]++;\n }\n }\n \n for ( let i = 0; i < stringB.length; i++ ) {\n let currentChar = stringB[i].toLowerCase();\n if ( alphabet.indexOf(currentChar) === -1 ) specialChars[1]++;\n else {\n if ( !charMap[currentChar] ) {\n console.log(currentChar);\n return false;\n }\n charMap[currentChar]--;\n if ( charMap[currentChar] === 0 ) delete charMap[currentChar];\n }\n }\n if ( Object.keys(charMap).length > 0 ) return false;\n //console.log(st)\n return (stringA.length - specialChars[0]) === (stringB.length - specialChars[1])\n }","function solution_1 (s1, s2) {\r\n if (s2.length < s1.length) return false;\r\n const freq = {};\r\n for (const char of s1) {\r\n freq[char] = freq[char] ? freq[char] - 1 : -1;\r\n }\r\n for (let i = 0; i < s2.length; i++) {\r\n const newChar = s2[i];\r\n freq[newChar] = freq[newChar] ? freq[newChar] + 1 : 1;\r\n if (!freq[newChar]) delete freq[newChar];\r\n if (i >= s1.length) {\r\n const oldChar = s2[i - s1.length]\r\n freq[oldChar] = freq[oldChar] ? freq[oldChar] - 1 : -1;\r\n if (!freq[oldChar]) delete freq[oldChar];\r\n }\r\n if (!Object.keys(freq).length) return true;\r\n }\r\n return false;\r\n}","function levenshteinDistance(str1, str2) {\n const edits = [];\n for (let i = 0; i < str2.length + 1; i++) {\n const row = [];\n for (let j = 0; j < str1.length + 1; j++) {\n row.push(j);\n }\n row[0] = i;\n edits.push(row);\n }\n for (let i = 1; i < str2.length + 1; i++) {\n for (let j = 1; j < str1.length + 1; j++) {\n if (str2[i - 1] === str1[j - 1]) {\n edits[i][j] = edits[i - 1][j - 1];\n } else {\n edits[i][j] = 1 + Math.min(edits[i - 1][j - 1], edits[i - 1][j], edits[i][j - 1]);\n }\n }\n }\n return edits[str2.length][str1.length];\n}","function commonCharacterCount(s1, s2) {\n \n // find lesser of two lengths\n let len = Math.min(s1.length, s2.length)\n \n // set count to zero\n let count = 0\n \n let s1Dict = {}\n \n // create dictionary of letter counts in s1\n for (let i = 0; i < s1.length; i++){\n // if character is not in dictionary, add it\n let char = s1.charAt(i)\n if (!(char in s1Dict)){\n s1Dict[char] = 1\n } else {\n // add 1 to key since character is in dict already\n s1Dict[char] ++\n }\n }\n //console.log(s1Dict)\n \n // loop through s2\n for (let j = 0; j < s2.length; j++){\n let char2 = s2.charAt(j)\n // char2 in s1Dict?\n if (char2 in s1Dict){\n // are there remaining characters in s1Dict to pull from?\n if (s1Dict[char2] > 0){\n count ++\n s1Dict[char2] --\n }\n }\n }\n //console.log(s1Dict)\n \n return count\n}","function main() {\n var a = readLine();\n var b = readLine();\n\n function make_anagrams (first_str, second_str) {\n var first_arr = first_str.split('')\n var second_arr = second_str.split('')\n\n var all_hash = {};\n var first_hash = {};\n // store the characters of first string as the key in a hash object\n // with count of occurences as the value\n // also store the characters in a hash that will contain all possible chars from the first and second strings\n for (var i = 0; i < first_arr.length; i++) {\n if (first_hash[first_arr[i]]) {\n first_hash[first_arr[i]]++;\n all_hash[first_arr[i]]++;\n } else { // if the key doesn't exist, initiate count to 1 for key\n first_hash[first_arr[i]] = 1;\n all_hash[first_arr[i]] = 1;\n }\n }\n\n var second_hash = {};\n // store the characters of second string as the key in hash object \n // with count of occurences as the value\n for (var i = 0; i < second_arr.length; i++) {\n if (!(second_arr[i] in second_hash)) { // initiate count to 1 if key does not exist\n second_hash[second_arr[i]] = 1;\n\n // set the count for all_hash appropriately depending if key already exists from looking at first_hash\n all_hash[second_arr[i]] = (second_arr[i] in all_hash) ? all_hash[second_arr[i]]+1 : 1; \n } else {\n second_hash[second_arr[i]]++;\n all_hash[second_arr[i]]++;\n }\n\n \n }\n\n // go through all the characters\n var deletions = 0; // number of deletion operations to make strings anagrams\n for (var letter in all_hash) {\n if (letter in first_hash && letter in second_hash) { \n // character in both strings, subtract to get extra count\n deletions += Math.abs(first_hash[letter] - second_hash[letter]);\n } else if (letter in first_hash) {\n // character only in the first string\n deletions += first_hash[letter]\n } else if (letter in second_hash) {\n // character only in the second string\n deletions += second_hash[letter];\n }\n }\n\n console.log(\"deletions\", deletions);\n }\n\n make_anagrams(a, b);\n}","function distance(s1, s2) {\r\n if (typeof(s1) != \"string\" || typeof(s2) != \"string\") return 0;\r\n if (s1.length == 0 || s2.length == 0) \r\n return 0;\r\n s1 = s1.toLowerCase(), s2 = s2.toLowerCase();\r\n var matchWindow = (Math.floor(Math.max(s1.length, s2.length) / 2.0)) - 1;\r\n var matches1 = new Array(s1.length);\r\n var matches2 = new Array(s2.length);\r\n var m = 0; // number of matches\r\n var t = 0; // number of transpositions\r\n\r\n //debug helpers\r\n //console.log(\"s1: \" + s1 + \"; s2: \" + s2);\r\n //console.log(\" - matchWindow: \" + matchWindow);\r\n\r\n // find matches\r\n for (var i = 0; i < s1.length; i++) {\r\n\tvar matched = false;\r\n\r\n\t// check for an exact match\r\n\tif (s1[i] == s2[i]) {\r\n\t\tmatches1[i] = matches2[i] = matched = true;\r\n\t\tm++\r\n\t}\r\n\r\n\t// check the \"match window\"\r\n\telse {\r\n \t// this for loop is a little brutal\r\n \tfor (k = (i <= matchWindow) ? 0 : i - matchWindow;\r\n \t\t(k <= i + matchWindow) && k < s2.length && !matched;\r\n\t\t\tk++) {\r\n \t\tif (s1[i] == s2[k]) {\r\n \t\tif(!matches1[i] && !matches2[k]) {\r\n \t \t\tm++;\r\n \t\t}\r\n\r\n \t matches1[i] = matches2[k] = matched = true;\r\n \t }\r\n \t}\r\n\t}\r\n }\r\n\r\n if(m == 0)\r\n return 0.0;\r\n\r\n // count transpositions\r\n var k = 0;\r\n\r\n for(var i = 0; i < s1.length; i++) {\r\n \tif(matches1[k]) {\r\n \t while(!matches2[k] && k < matches2.length)\r\n k++;\r\n\t if(s1[i] != s2[k] && k < matches2.length) {\r\n t++;\r\n }\r\n\r\n \t k++;\r\n \t}\r\n }\r\n \r\n //debug helpers:\r\n //console.log(\" - matches: \" + m);\r\n //console.log(\" - transpositions: \" + t);\r\n t = t / 2.0;\r\n return (m / s1.length + m / s2.length + (m - t) / m) / 3;\r\n}","function levenshteinDistance(str1, str2) {\n const grid = new Array(str1.length + 1);\n for (let i = 0; i < str1.length + 1; i += 1) {\n grid[i] = new Array(str2.length + 1);\n grid[i][0] = i;\n }\n for (let i = 0; i < str2.length + 1; i += 1) {\n grid[0][i] = i;\n }\n for (let i = 1; i < grid.length; i += 1) {\n const row = grid[i];\n for (let j = 1; j < row.length; j += 1) {\n if (str1[i - 1] === str2[j - 1]) {\n grid[i][j] = grid[i - 1][j - 1];\n } else {\n grid[i][j] =\n 1 +\n Math.min(\n grid[i][j - 1],\n grid[i - 1][j],\n grid[i - 1][j - 1]\n );\n }\n }\n }\n return grid[str1.length][str2.length];\n}","function levenshtein(a, b) {\n a = a.toUpperCase();\n b = b.toUpperCase();\n if (a.length === 0) return b.length; \n if (b.length === 0) return a.length; \n\n var matrix = [];\n\n // increment along the first column of each row\n var i;\n for (i = 0; i <= b.length; i++) {\n matrix[i] = [i];\n }\n\n // increment each column in the first row\n var j;\n for (j = 0; j <= a.length; j++) {\n matrix[0][j] = j;\n }\n\n // Fill in the rest of the matrix\n for (i = 1; i <= b.length; i++) {\n for (j = 1; j <= a.length; j++) {\n if (b.charAt(i-1) == a.charAt(j-1)) {\n matrix[i][j] = matrix[i-1][j-1];\n } else {\n matrix[i][j] = Math.min(matrix[i-1][j-1] + 1.5, // substitution\n Math.min(matrix[i][j-1] + 1, // insertion\n matrix[i-1][j] + 1)); // deletion\n }\n }\n }\n\n return matrix[b.length][a.length];\n}","function hamming(x,y) {\n var d = 0,\n i = 0,\n ii = x.length;\n for(; i < ii; i++)\n if(x[i] !== y[i]) d++;\n return d;\n }","function checkAnagram(str1, str2){\n\n // Check if the length of the two array is the samey\n if(str1.length !== str2.length){\n return false;\n }\n\n// create two object frequencies\n let strFrequency1 = {};\n let strFrequency2 = {};\n\n // loop through each of the two string respectively and add their count to their objects\n for(let char of str1){\n strFrequency1[char] = ++strFrequency1[char] || 1;\n }\n for(let char of str2){\n strFrequency2[char] = ++strFrequency2[char] || 1;\n }\n console.log(strFrequency1);\n console.log(strFrequency2);\n // compare the two objects with occupiance of the frequencies\n for(let key in strFrequency1){\n if(strFrequency2[key] !== strFrequency1[key]){\n return false;\n }\n }\n // return either true or false\n return true;\n}","function sherlockAndAnagrams(s) {\n let count = 0;\n //글자 수\n for (let i = 1; i < s.length; i++) {\n for (let j = 0; j < s.length - i; j++) {\n const target = s.substring(j, j + i, j);\n // console.log(\"-------\");\n for (let k = 1 + j; k < s.length - i + 1; k++) {\n let compared = s.substring(k, k + i);\n if (isAnagram(target, compared)) {\n count++;\n }\n }\n }\n }\n return count;\n}","function isAnagram (a, b) {\n\t// turn each string into arrays to check for equality\n\tlet stringAArray = a.split('');\n let stringBArray = b.split('');\n\n // have a counter variable to keep track of how many characters match\n let numberOfMatches = 0;\n\n // check which string is smaller to loop through that string in the first loop\n // so we can reduce the number of equality checks\n if (stringAArray.length > stringBArray.length) {\n \tstringAArray = b.split('');\n stringBArray = a.split('');\n }\n\n // loop through both array of strings to check if stringAArray[i] === stringBArray[j]\n // push 2 counters to numberOfMatches for each match\n // set stringBArray[j] to null so that when we do an equality check it would not check that same value again and add counters to numberOfMatches\n for (let i = 0; i < stringAArray.length; i++) {\n for (let j = 0; j < stringBArray.length; j++) {\n if (stringAArray[i] === stringBArray[j]) {\n \t// console.log('match');\n numberOfMatches += 2;\n stringBArray[j] = null;\n break;\n }\n }\n }\n\n // console.log('number of matches: ' + numberOfMatches);\n // console.log('string a array: ' + stringAArray);\n // console.log('string b array: ' + stringBArray);\n // console.log('number of cuts: ' + (stringAArray.length + stringBArray.length) - numberOfMatches);\n\n // return total amount of cuts to both strings\n return (stringAArray.length + stringBArray.length) - numberOfMatches;\n}","function StringScramble(str1,str2) { \n var objOne = {}; \n\n for(var i = 0; i < str1.length; i++){\n objOne[str1[i]] = objOne[str1[i]] ? objOne[str1[i]] + 1 : 1;\n }\n //place in object with number of occurences \n \n for(var j = 0; j < str2.length; j++){\n if(!objOne[str2[j]]){ \n //loop thru each letter of str2\n //if it doesn't exist, we know that \n //the word cannot be created therefore return false\n\n \treturn false\n }\n }\n \n return true;\n\n \n}","function minDistance(word1, word2) {\n // equation is length of w1 + length of w2 - (2 * length of longest common subsequence)\n // in case of total mismatch, the answer will just be the combined lengths\n // * 2 makes sense since each mismatch requires 2 operations\n \n const matrix = [];\n for(let i = 0; i < word1.length + 1; i++) {\n matrix.push([])\n for(let j = 0; j < word2.length + 1; j++) {\n matrix[i].push(0)\n }\n }\n console.log(matrix)\n \n for(let i = 0; i <= word1.length; i++) {\n for(let j = 0; j <= word2.length; j++) {\n console.log()\n if(i === 0 || j === 0) continue\n if(word1[i - 1] === word2[j - 1]) {\n matrix[i][j] = matrix[i - 1][j - 1] + 1;\n } else {\n matrix[i][j] = Math.max(matrix[i - 1][j], matrix[i][j - 1])\n }\n }\n }\n \n \n return word1.length + word2.length - (2 * matrix[word1.length][word2.length])\n}","function SearchingChallenge2(strArr) {\n let pos = [];\n\n for (let i = 0; i < strArr.length; i++) {\n for (let j = 0; j < strArr[i].length; j++) {\n if ([...strArr[i]][j] === \"0\") pos.push([j, i]);\n }\n }\n\n let count = 0;\n const x = 0;\n const y = 1;\n\n for (let i = 0; i < pos.length; i++) {\n for (let j = 0; j < pos.length; j++) {\n if (\n (pos[i][y] === pos[j][y] && pos[i][x] === pos[j][x] + 1) ||\n (pos[i][x] === pos[j][x] && pos[i][y] === pos[j][y] + 1)\n ) {\n count++;\n }\n }\n }\n\n return count;\n}","function jwdistance(s1, s2) {\n if (typeof(s1) != \"string\" || typeof(s2) != \"string\") return 0;\n if (s1.length == 0 || s2.length == 0) return 0;\n s1 = s1.toLowerCase(), s2 = s2.toLowerCase();\n var matchWindow = (Math.floor(Math.max(s1.length, s2.length) / 2.0)) - 1;\n var matches1 = new Array(s1.length);\n var matches2 = new Array(s2.length);\n var m = 0; // number of matches\n var t = 0; // number of transpositions\n //debug helpers\n //console.log(\"s1: \" + s1 + \"; s2: \" + s2);\n //console.log(\" - matchWindow: \" + matchWindow);\n // find matches\n for (var i = 0; i < s1.length; i++) {\n var matched = false;\n // check for an exact match\n if (s1[i] == s2[i]) {\n matches1[i] = matches2[i] = matched = true;\n m++\n }\n // check the \"match window\"\n else {\n // this for loop is a little brutal\n for (k = (i <= matchWindow) ? 0 : i - matchWindow;\n (k <= i + matchWindow) && k < s2.length && !matched;\n k++) {\n if (s1[i] == s2[k]) {\n if (!matches1[i] && !matches2[k]) {\n m++;\n }\n matches1[i] = matches2[k] = matched = true;\n }\n }\n }\n }\n if (m == 0) return 0.0;\n // count transpositions\n var k = 0;\n for (var i = 0; i < s1.length; i++) {\n if (matches1[k]) {\n while (!matches2[k] && k < matches2.length)\n k++;\n if (s1[i] != s2[k] && k < matches2.length) {\n t++;\n }\n k++;\n }\n }\n //debug helpers:\n //console.log(\" - matches: \" + m);\n //console.log(\" - transpositions: \" + t);\n t = t / 2.0;\n return (m / s1.length + m / s2.length + (m - t) / m) / 3;\n}","function solve(inputStr){\r\n\r\n if(isNearPalindrome(inputStr) === false){\r\n var s = inputStr.split(\"\").sort();\r\n \r\n var nOperations = 0;\r\n var first = 0;\r\n var last = s.length -1;\r\n\r\n var incremented = 0;\r\n\r\n while(first < last){\r\n if(s[first] !== s[last]){\r\n incremented = Math.min(inputStr.charCodeAt(first++), inputStr.charCodeAt(last--)) + 1;\r\n nOperations++;\r\n }\r\n } \r\n return nOperations;\r\n }\r\n else {\r\n return -1;\r\n }\r\n}","function solve2(arr) {\n let arr2 = arr.map(ele => ele.toLowerCase());\n let alphabet = 'abcdefghijklmnopqrstuvwxyz';\n let returnArry = [];\n for (let idx = 0; idx < arr2.length; idx++) {\n let count = 0;\n for (let idx2 = 0; idx2 < arr2[idx].length; idx2++) {\n if (idx2 === alphabet.indexOf(arr2[idx][idx2])) {\n count++; \n }\n }\n returnArry.push(count);\n }\n return returnArry;\n}","function levenshtein (s1, s2) {\n // http://kevin.vanzonneveld.net\n // + original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com)\n // + bugfixed by: Onno Marsman\n // + revised by: Andrea Giammarchi (http://webreflection.blogspot.com)\n // + reimplemented by: Brett Zamir (http://brett-zamir.me)\n // + reimplemented by: Alexander M Beedie\n // * example 1: levenshtein('Kevin van Zonneveld', 'Kevin van Sommeveld');\n // * returns 1: 3\n if (s1 == s2) {\n return 0;\n }\n\n var s1_len = s1.length;\n var s2_len = s2.length;\n if (s1_len === 0) {\n return s2_len;\n }\n if (s2_len === 0) {\n return s1_len;\n }\n\n // BEGIN STATIC\n var split = false;\n try {\n split = !('0')[0];\n } catch (e) {\n split = true; // Earlier IE may not support access by string index\n }\n // END STATIC\n if (split) {\n s1 = s1.split('');\n s2 = s2.split('');\n }\n\n var v0 = new Array(s1_len + 1);\n var v1 = new Array(s1_len + 1);\n\n var s1_idx = 0,\n s2_idx = 0,\n cost = 0;\n for (s1_idx = 0; s1_idx < s1_len + 1; s1_idx++) {\n v0[s1_idx] = s1_idx;\n }\n var char_s1 = '',\n char_s2 = '';\n for (s2_idx = 1; s2_idx <= s2_len; s2_idx++) {\n v1[0] = s2_idx;\n char_s2 = s2[s2_idx - 1];\n\n for (s1_idx = 0; s1_idx < s1_len; s1_idx++) {\n char_s1 = s1[s1_idx];\n cost = (char_s1 == char_s2) ? 0 : 1;\n var m_min = v0[s1_idx + 1] + 1;\n var b = v1[s1_idx] + 1;\n var c = v0[s1_idx] + cost;\n if (b < m_min) {\n m_min = b;\n }\n if (c < m_min) {\n m_min = c;\n }\n v1[s1_idx + 1] = m_min;\n }\n var v_tmp = v0;\n v0 = v1;\n v1 = v_tmp;\n }\n return v0[s1_len];\n}","function mutation(arr) {\n\n let str1 = arr[0].toLowerCase().split(\"\");\n let str2 = arr[1].toLowerCase().split(\"\");\n let Lstr2 = str2.length;\n let pru = 0;\n\n for (let i = 0; i < str2.length; i++) {\n for (let j = 0; j < str1.length; j++) {\n if (str2[i] === str1[j]) {\n pru += 1;\n break;\n }\n }\n }\n\n if (Lstr2 === pru) {\n return true\n } else {\n return false\n }\n}","function checkAnagram(a = '', b = '') {\n var array = {};\n if (a === b) {\n return true;\n }\n if (a.length !== b.length) {\n return false;\n }\n for (let i = 0; i < a.length; i++) {\n let res = a.charCodeAt(i) - 97;\n console.log('res', res);\n array[res] = (array[res] || 0) + 1;\n }\n console.log('array', array);\n\n for (let j = 0; j < b.length; j++) {\n let res = b.charCodeAt(j) - 97;\n if (!array[res]) {\n return false;\n }\n array[res]--;\n }\n return true;\n}","function stringChecker(a,b, myFunc){\n // we initialize our results\n let results;\n // if the length of b !== the length of a\n if (String(b).length !== String(a).length){\n // we know the answer is false\n return false;\n } else{\n // we convert our strings/integers to arrays.\n // stringConverter- returns 2 arrays within an array.\n results = stringConverter(a,b);\n // we then compare the frequency of our two arrays\n return myFunc(results[0],results[1]);\n };\n \n}","function strRepeatCount(str1, str2) {\n const str1Hash = {};\n let fragment = \"\";\n let lastIndex = -Infinity;\n let count = 0;\n\n //O(str1.length)\n\n for (let i = 0; i < str1.length; i++) {\n let letter = str1[i];\n if (str1Hash[letter]) {\n str1Hash[letter].push(i);\n } else {\n str1Hash[letter] = [i];\n }\n\n }\n\n //O(str2.length) * O(indices.length)\n\n for (let j = 0; j < str2.length; j++) {\n let letter = str2[j];\n \n if (str1Hash[letter]) {\n if (fragment.length === 0) {\n fragment = letter;\n lastIndex = str1Hash[letter][0];\n count++;\n } else {\n let letterIndices = str1Hash[letter];\n let foundIdx = false;\n\n for (let idx of letterIndices) {\n if (idx > lastIndex) {\n fragment += letter;\n lastIndex = idx;\n foundIdx = true;\n }\n }\n\n console.log(fragment, count);\n if (!foundIdx) {\n count++;\n fragment = letter;\n lastIndex = str1Hash[letter][0];\n } else if (foundIdx === str2.length - 1) {\n count ++;\n }\n \n }\n } else {\n return -1;\n }\n\n\n }\n\n return count;\n\n\n}","function naiveString(A, B) {\n let count = 0;\n for (let i=0; i lengthOfB ? length = lengthOfB : length = lengthOfA\n// }\n \n // seperating each string letter\n a = a.split('')\n b = b.split('')\n \nfor (let i =0; i \" + a[i])\n // removing the letter in a\n let temp = a[i]\n a.splice(i,1)\n // found match in a\n count+=1\n // find and remove the same letter in b\n b.splice(b.indexOf(temp),1)\n // found match in b\n count+=1\n // go back to same round to check new letter in same position\n i = i-1\n }\n } // subtracting the matching anagram count against original letter count of both strings\n return (lengthOfA + lengthOfB) - count\n}","function theLoveLetterMystery(s) {\n let count = 0;\n let i = 0;\n let j = s.length - 1;\n let start, end, diff;\n while (i < j) {\n start = s[i].charCodeAt(0);\n end = s[j].charCodeAt(0);\n\n diff = Math.abs(start - end);\n\n count = count + diff;\n i++;\n j--;\n }\n\n return count;\n}","function letterSwitchesNeededToBeAnagram(str1, str2) {\n let characterLookup = [];\n\n if(str1.length !== str2.length) {\n return -1;\n }\n\n for(let i = 0; i < str1.length; i++) {\n let char1 = str1.charAt(i);\n let char2 = str2.charAt(i);\n\n if(characterLookup[char1] === undefined) {\n characterLookup[char1] = {\n value: 1,\n isOriginal: true\n };\n } else {\n characterLookup[char1].value += 1;\n }\n\n if(characterLookup[char2] === undefined) {\n characterLookup[char2] = {\n value: -1,\n isOriginal: false\n };\n } else {\n characterLookup[char2] -= 1;\n }\n }\n\n let sum = 0;\n\n for(let k in characterLookup) {\n if(characterLookup[k].isOriginal === true) {\n sum += Math.abs(characterLookup[k].value);\n }\n }\n\n return sum;\n}","function commonCharacterCount(s1, s2) {\n let letterObj = {};\n let commonCount = 0;\n\n for (let i = 0; i < s1.length; i++) {\n let currentLetter = s1[i]\n if (!(currentLetter in letterObj)) {\n letterObj[currentLetter] = 1\n } else {\n letterObj[currentLetter]++\n }\n }\n\n for (let i = 0; i < s2.length; i++) {\n let currentLetter = s2[i]\n if (currentLetter in letterObj) {\n if (letterObj[currentLetter] > 0) {\n commonCount++\n letterObj[currentLetter]--\n }\n }\n }\n\n return commonCount\n}","function search(w1, w2)\n{\n let l1 = w1.length;\n let l2 = w2.length;\n console.log(w1, w2);\n let ch,c,maxc=0;\n let i,j;\n\n for(i=0;il1 || tempj+1>l2)\n {\n c--;\n break;\n }\n\n }\n\n\n }\n\n\n if(c>maxc)\n {\n maxc = c;\n }\n\n }\n }\n let perc_match = maxc/l1*100;\n console.log(perc_match)\n return perc_match;\n}","function countLetters(wanted,arrayString) {\n let newArr = arrayString.join('').split(''); \n let count=0;\n for (let i = 0; i < newArr.length; i++) {\n if (newArr[i]===wanted)\n count++;\n }\n return count;\n}","function levenshtein(s, t) {\n\n // var distance = fastLevenshtein(s, t)\n // return distance;\n if (s === t) {\n return 0;\n }\n var n = s.length, m = t.length;\n if (n === 0 || m === 0) {\n return n + m;\n }\n var x = 0, y, a, b, c, d, g, h, k;\n var p = new Array(n);\n for (y = 0; y < n;) {\n p[y] = ++y;\n }\n\n for (; (x + 3) < m; x += 4) {\n var e1 = t.charCodeAt(x);\n var e2 = t.charCodeAt(x + 1);\n var e3 = t.charCodeAt(x + 2);\n var e4 = t.charCodeAt(x + 3);\n c = x;\n b = x + 1;\n d = x + 2;\n g = x + 3;\n h = x + 4;\n for (y = 0; y < n; y++) {\n k = s.charCodeAt(y);\n a = p[y];\n if (a < c || b < c) {\n c = (a > b ? b + 1 : a + 1);\n }\n else {\n if (e1 !== k) {\n c++;\n }\n }\n\n if (c < b || d < b) {\n b = (c > d ? d + 1 : c + 1);\n }\n else {\n if (e2 !== k) {\n b++;\n }\n }\n\n if (b < d || g < d) {\n d = (b > g ? g + 1 : b + 1);\n }\n else {\n if (e3 !== k) {\n d++;\n }\n }\n\n if (d < g || h < g) {\n g = (d > h ? h + 1 : d + 1);\n }\n else {\n if (e4 !== k) {\n g++;\n }\n }\n p[y] = h = g;\n g = d;\n d = b;\n b = c;\n c = a;\n }\n }\n\n for (; x < m;) {\n var e = t.charCodeAt(x);\n c = x;\n d = ++x;\n for (y = 0; y < n; y++) {\n a = p[y];\n if (a < c || d < c) {\n d = (a > d ? d + 1 : a + 1);\n }\n else {\n if (e !== s.charCodeAt(y)) {\n d = c + 1;\n }\n else {\n d = c;\n }\n }\n p[y] = d;\n c = a;\n }\n h = d;\n }\n return h;\n\n\n }","function levenshteinDistance(str1, str2) {\n const small = str1.length < str2.length ? str1 : str2;\n const big = str1.length >= str2.length ? str1 : str2;\n const evenEdits = [];\n const oddEdits = new Array(small.length + 1);\n for (let j = 0; j < small.length + 1; j++) {\n evenEdits.push(j);\n }\n for (let i = 1; i < big.length + 1; i++) {\n let currentEdits, previousEdits;\n if (i % 2 === 1) {\n currentEdits = oddEdits;\n previousEdits = evenEdits;\n } else {\n currentEdits = evenEdits;\n previousEdits = oddEdits;\n }\n currentEdits[0] = 1;\n for (let j = 1; j < small.length + 1; j++) {\n if (big[i - 1] === small[j - 1]) {\n currentEdits[j] = previousEdits[j - 1];\n } else {\n currentEdits[j] = 1 + Math.min(previousEdits[j - 1], previousEdits[j], currentEdits[j - 1]);\n }\n }\n }\n return big.length % 2 === 0 ? evenEdits[small.length] : oddEdits[small.length];\n}","function getLevenshteinDistance(str1, str2) {\n var len1 = str1.length;\n var len2 = str2.length;\n var matrix = [];\n // fill the first row of the matrix\n for (var i = 0; i <= len1; i++) {\n matrix[i] = [i];\n }\n // fill the first column of the matrix\n for (var j = 0; j <= len2; j++) {\n matrix[0][j] = j;\n }\n // fill the rest of the matrix\n for (var i = 1; i <= len1; i++) {\n for (var j = 1; j <= len2; j++) {\n if (str1.charAt(i - 1) == str2.charAt(j - 1)) {\n matrix[i][j] = matrix[i - 1][j - 1];\n } else {\n matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, // substitution\n Math.min(matrix[i][j - 1] + 1, // insertion\n matrix[i - 1][j] + 1)); // deletion\n }\n }\n }\n return matrix[len1][len2];\n}","function levenshteinDistance(str1, str2) {\n let small, big;\n if (str1.length < str2.length) {\n small = str1;\n big = str2;\n } else {\n small = str2;\n big = str1;\n }\n\n const oddEdits = new Array(small.length + 1)\n const evenEdits = [];\n for (let j = 0; j < small.length + 1; j++) {\n evenEdits.push(j);\n }\n\n for (let i = 1; i < big.length + 1; i++) {\n let currEdits, prevEdits;\n if (i % 2 === 0) {\n currEdits = evenEdits;\n prevEdits = oddEdits;\n } else {\n currEdits = oddEdits;\n prevEdits = evenEdits;\n }\n currEdits[0] = i;\n\n for (let j = 1; j < small.length + 1; j++) {\n if (big[i - 1] === small[j - 1]) currEdits[j] = prevEdits[j - 1];\n // similar logic to sol 1\n else\n currEdits[j] =\n 1 + Math.min(prevEdits[j - 1], prevEdits[j], currEdits[j - 1]);\n }\n }\n if (big.length % 2 === 0) return evenEdits[small.length];\n else return oddEdits[small.length];\n} // O(n*m) time, O(min(n, m)) space","function validAnagram(str1, str2){\n // add whatever parameters you deem necessary - good luck!\n // check if str1 has the same length as str2 & same characters\n if(str1.length !== str2.length){\n return false\n }\n // create an object call lookup\n let lookup = {}\n// construct the object first\n for (let i = 0; i < str1.length; i++){\n letter = str1[i]\n //if letter exits, increment, otherwise set to 1\n lookup[letter] ? lookup[letter] += 1 : lookup[letter] = 1;\n }\n console.log(lookup)\n for (let i = 0; i < str2.length; i++){\n let letter = second[i];\n // can't find letter of letter is zero then it's not an anagram\n if (!lookup[letter]) {\n return false;\n } else {\n lookup[letter] -= 1;\n }\n return true;\n }\n}","function compare( word, guess ) { // DO NOT MODIFY\n word = word.toLowerCase();\n guess = guess.toLowerCase();\n\tlet wordArr = [];\n\tfor(let i =0; i< word.length; i++){\n\t\tif(!wordArr.includes(word[i])){\n\t\t\twordArr.push(word[i]);\n\t\t}\n\t}\n \n\tlet guessArr = [];\n\tfor(let j =0; j< guess.length; j++){\n\t\tif(!guessArr.includes(guess[j])){\n\t\t\tguessArr.push(guess[j]);\n\t\t}\n\t}\n \n\tlet count = 0;\n\tfor(let i = 0; i< wordArr.length; i++){\n\t\tif(guessArr.includes(wordArr[i])){\n\t\t\tcount++;\n\t\t}\n\t}\n return count; // this line is wrong\n}","function processData(input) {\n //Enter your code here\n\n let sum = 0,\n count = 1;\n // console.log(str);\n\n let weight = [];\n\n let chars = \"abcdefghijklmnopqrstuvwxyz\".split(\"\");\n // console.log(chars);\n\n for (let i = 0; i < chars.length; i++) {\n weight.push(count++);\n }\n // console.log(weight);\n\n for (let i = 0; i < input.length; i++) {\n if (chars.indexOf(input[i]) !== -1) {\n sum = sum + weight[chars.indexOf(input[i])];\n console.log([chars.indexOf(input[i])]);\n }\n }\n console.log(sum);\n}","function checkGenerator(string,arr){\n let count=0;\n for (let i=0; i{}]/g, '');\n var strNew = [];\n // str to array\n var strArray = str.split(' ');\n // loop through each word of array\n for (var x = 0; x < strArray.length; x++) {\n var newWord = \"\";\n // declare variable for each word of strArray\n var strArrayWord = strArray[x];\n // loop through each letter of each word of strArray\n for (var y = 0; y < strArrayWord.length; y++) {\n // declare variable for letter this loop\n var letterThisLoop = strArrayWord[y];\n // use indexOf to determine if letter has been repeated \n if (newWord.indexOf(letterThisLoop) > -1) {\n return strArray[x];\n }\n newWord += letterThisLoop;\n }\n strNew.push(newWord);\n }\n return -1;\n}","function alg(str1, str2) {\n\tlet out = \"\";\n\tlet arr = [];\n\n\tfor (let l of str1) {\n\t\tlet index = str1.indexOf(l);\n\t\t// If the chars are the same\n\t\tif (l === str2[index]) {\n\t\t\tout += l;\n\t\t} else {\n\t\t\t// if there is a substring add to arr\n\t\t\tif (out.length > 0) {\n\t\t\t\tarr.push(out);\n\t\t\t}\n\t\t\tout = \"\";\n\t\t}\n\t}\n\tconsole.log(arr);\n\t// Compare and return If there is sub strings\n\tlet output = arr[0];\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tif (output.length > arr[i].length) output = arr[i];\n\t}\n\tif (output !== undefined) return output;\n\n\treturn undefined;\n}","function anagrams1(stringA, stringB) {\n let countA = {};\n let countB = {};\n\n const countLetters = (string, count) => {\n string.split(\"\").forEach((char, i) => {\n char = char.toLowerCase();\n if (!count[char]) {\n count[char] = 1;\n } else {\n count[char]++;\n }\n });\n return count;\n };\n const cleanUp = count => {\n for (key in count) {\n if (key === \" \" || key === \"!\") {\n delete count[key];\n }\n }\n return count;\n };\n countA = cleanUp(countLetters(stringA, countA));\n countB = cleanUp(countLetters(stringB, countB));\n const compareObjects = (count1, count2) => {\n const compared = {};\n\n for (letter in count1) {\n if (count1[letter] === count2[letter]) {\n compared[letter] = count1[letter];\n }\n }\n return Object.keys(compared).length === Object.keys(count2).length || false;\n };\n return compareObjects(countA, countB);\n}","function commonLetter(word,guess){\n\tlet count = 0;\n\tlet map = [];\n\tfor (let letter of word) {\n\t\tif (!map[letter]){\n\t\t\tmap[letter] = 0;\n\t\t}\n\t\tmap[letter]++;\t\n\t}\n\t//console.log(map);\n\tfor (let i = 0; i < guess.length; i++) {\n\t\tif ( map[guess[i]] && map[guess[i]] != 0) {\n\t\t\tmap[guess[i]]--;\n\t\t\tcount++;\n\t\t}else{\n\t\t\tcontinue;\n\t\t}\n\t}\n\t//console.log(map);\n\treturn count;\n}","function commonCharacterCount(s1, s2) {\n\tvar count = 0;\n\tfor (var i = 0; i 0) {\n // decrement the count\n letterCounts[currentLetter]--;\n } else {\n // else break out of the loop\n return false;\n }\n }\n\n console.log(letterCounts);\n\n return true;\n}","getNumWrong(word,letters){\n\tvar wordArray = word.split('').sort();\n\tvar numWrong = 0;\n\tfor (var i = 0; i < letters.length; i++) {\n\t\tif ( wordArray.indexOf(letters[i]) === -1) {\n\t\t\tnumWrong++;\n\t\t}\n\t}\n\treturn numWrong;\n}","function countingAnagrams(str) {\n // Your code here\n counter = 0;\n words = str.split(' ')\n console.log(words)\n for (var i = 0; i < words.length; i++) {\n for (var j=0;j 0) {\n letters[letter]--;\n } else {\n return false;\n }\n }\n return true;\n}","function duplicateCount(str){\n var letters = str.toLowerCase();\n var duplicates = [];\n for (let i=0; i {\n let j = str2.findIndex((el2) => el2 === el);\n if (j >= 0) {\n str2.splice(j,1);\n } else {\n str1Only++;\n }\n });\n \n return str1Only + str2.length;\n}","function diffCount (input1, input2) {\n let count = 0;\n for (let i = 0; i < input1.length; i++) {\n if (input1[i] !== input2[i]) count++;\n if (count > 1) break;\n };\n //console.log(count);\n return count;\n}","function singleLetterCount(str1, str2) {\r\n let count = 0\r\n\r\n for (i = 0; i < str1.length; i++) {\r\n // console.log(str1[i].toUpperCase());\r\n if (str1[i].toUpperCase().indexOf(str2.toUpperCase()) != -1) {\r\n count++\r\n }\r\n // console.log(count)\r\n }\r\n console.log(count)\r\n\r\n}","function characterFrequency (string) {\n\n var answerArray = [];\n var trackerstring = \"\"\n for (var i = 0; i < string.length; i ++) {\n if (trackerstring.includes(string[i]) === false) {\n trackerstring += string[i]\n var counter = 0\n for (var k = 0; k < string.length; k ++) {\n if (string[i] === string[k]) {\n counter ++\n }\n \n }\n var holderArray = [string[i], counter];\n if (!answerArray.includes(holderArray)) {\n answerArray.push(holderArray);\n }\n }\n }\n \n answerArray.sort(compareSecondColumn);\n\nfunction compareSecondColumn(a, b) {\n if (a[1] === b[1]) {\n return (a[0] > b[0]) ? 1 : -1;\n }\n else {\n return (a[1] > b[1]) ? -1 : 1;\n }\n}\n \n return answerArray;\n}","function test(str) {\n const arr = str.split(' ');\n let sum = 0;\n let wordValue = 0;\n let valueableWord;\n\n arr.forEach(word => {\n for(let i = 0; i < word.length; i++) {\n sum += word.charCodeAt(i) - 96;\n }\n\n if(sum > wordValue) {\n wordValue = sum;\n valueableWord = word;\n }\n \n sum = 0;\n \n });\n\n console.log(valueableWord);\n}","function fullStringDistance(a, b) {\n var aLength = a.length;\n var bLength = b.length;\n var table = [];\n\n if (!aLength) {\n return bLength;\n }\n if (!bLength) {\n return aLength;\n }\n\n // Initialize the table axes:\n //\n // 0 1 2 3 4 ... bLength\n // 1\n // 2\n //\n // ...\n //\n // aLength\n //\n for (var x = 0; x <= aLength; ++x) {\n table[x] = [x];\n }\n for (var y = 0; y <= bLength; ++y) {\n table[0][y] = y;\n }\n\n // Populate the rest of the table with a dynamic programming algorithm.\n for (var _x2 = 1; _x2 <= aLength; ++_x2) {\n for (var _y2 = 1; _y2 <= bLength; ++_y2) {\n table[_x2][_y2] = a[_x2 - 1] === b[_y2 - 1] ? table[_x2 - 1][_y2 - 1] : 1 + Math.min(table[_x2 - 1][_y2], // Substitution,\n table[_x2][_y2 - 1], // insertion,\n table[_x2 - 1][_y2 - 1]); // and deletion.\n }\n }\n\n return table[aLength][bLength];\n}","function checkAnagramWithTimeComplexity(str1, str2) {\n str1 = str1.toLowerCase();\n str2 = str2.toLowerCase();\n if (str1.length !== str2.length) return false\n let counting = {}\n for (let c of str1) {\n counting[c] = (counting[c] + 1) || 1;\n }\n for (let c of str2) {\n if (counting[c]) {\n --counting[c];\n }\n else {\n return false;\n }\n }\n return true;\n}","function betterTestForPermutation(str1, str2) {\n\n /* Remove whitespace */\n str1 = str1.trim();\n str2 = str2.trim();\n\n /* Test to see if the strings are of the same length */\n if(str1.length != str2.length) {\n return false;\n }\n\n /* Create arrays to hold 0s for the 128 ascii character set */\n let arr1 = Array(128);\n let arr2 = Array(128);\n\n arr1.fill(0);\n arr2.fill(0);\n\n /* Go through strings, convert to ascii, and increment array position */\n for(let i = 0; i < str1.length && i < str2.length; i++) {\n\n let n = str1.charCodeAt(i);\n let o = str2.charCodeAt(i);\n\n arr1[n]++;\n arr2[o]++;\n }\n\n /* Compare both arrays to each other */\n for(let i = 0; i < arr1.length; i++) {\n if(arr1[i] !== arr2[i]) {\n return false;\n }\n } return true;\n}","function fourthAnagram(str1, str2) {\n let letterSums = {};\n\n // If we do the exact same subractions for each letter in\n // str2 as we do additions for str1, letter_sums will all be 0.\n str1.split(\"\").forEach((e) => (letterSums[e] = (letterSums[e] || 0) + 1));\n str2.split(\"\").forEach((e) => (letterSums[e] = (letterSums[e] || 0) - 1));\n\n // It's a zero-sum game!\n return Object.values(letterSums).every((sum) => sum === 0);\n}","function checkPermutation(str1, str2) {\n // Base case - string length doesn't match\n if (str1.length != str2.length) {\n console.log(\"String length don't match\")\n return false;\n }\n\n // Create a hash map to hold the mapping\n var hashMap = new Map();\n\n // Iterate through 1st string, storing counts into the hash\n for (var i = 0; i < str1.length; ++i) {\n // If the hash map has the character, update value by 1\n if (hashMap.has(str1[i])) {\n hashMap.set(str1[i], hashMap.get(str1[i])+1);\n }\n // Otherwise, set the hash map\n else {\n hashMap.set(str1[i], 1);\n }\n }\n\n // Iterate through 2nd string, removing counts from the hash\n for (var i = 0; i < str2.length; ++i) {\n // If the character exists, reduce value by 1\n if (hashMap.has(str2[i])) {\n hashMap.set(str2[i], hashMap.get(str2[i])-1);\n }\n // If the character doesn't exist, 2nd string isn't a permutation\n else {\n console.log(\"Characters don't match\")\n return false;\n }\n }\n console.log(\"Permutation matched\")\n return true;\n}","function scramble(str1, str2) {\n let letterCount = 0\n\n for (i = 0; i < str2.length; i++) {\n if (str1.includes(str2[i])) {\n letterCount += 1\n str1 = str1.slice(0, str1.indexOf(str2[i])) + str1.slice(str1.indexOf(str2[i]) + 1)\n }\n }\n\n return letterCount === str2.length ? true : false\n}","function compare( word, guess ) { // DO NOT MODIFY\n\nlet count = 0;\nlet word1 = word.toUpperCase();\nlet word2 = guess.toUpperCase();\n for(let i = 0; i < word1.length; i++){\n let word2Index = word2.indexOf(word1[i]);\n if(word2Index >= 0){\n word2 = word2.replace(word2.charAt(word2ndex),\"\");\n count++;\n }\n }\n return count; \n}","function checkPermutationsHash(str1, str2) {\n if (typeof str1 !== \"string\" || typeof str2 !== \"string\") {\n throw new Error(\"Please pass two strings\");\n }\n\n var str1Characters = {};\n for (var i = 0; i < str1.length; i++) {\n str1Characters[str1[i]] = str1Characters[str1[i]] || 0;\n str1Characters[str1[i]]++;\n }\n\n for (var i = 0; i < str2.length; i++) {\n var character = str2[i];\n if (!(character in str1Characters) || str1Characters[character] === 0) {\n return false;\n } else {\n str1Characters[character]--;\n }\n }\n\n for (var i = 0; i < str1.length; i++) {\n var character = str1[i];\n if (str1Characters[character] !== 0) {\n return false;\n }\n }\n\n return true;\n}","function validAnagram(first,second){\n if(first.length!== second.length){\n return false;\n }\n \n //Create an object \n const lookup = {};\n\n //Loop through first string\n for(let i =0;i= 'a' && ch <= 'z') {\\n var code = ch.charCodeAt(0);\\n\\n arr[code - 97]++;\\n } else if (ch >= 'A' && ch <= 'Z') {\\n var code = ch.charCodeAt(0);\\n arr[code - 65]++;\\n } else {\\n var code = ch.charCodeAt(0);\\n arr[code - 22]++;\\n }\\n ch = string2.charAt(index);\\n if (ch >= 'a' && ch <= 'z') {\\n var code = ch.charCodeAt(0);\\n\\n arr[code - 97]--;\\n } else if (ch >= 'A' && ch <= 'Z') {\\n var code = ch.charCodeAt(0);\\n arr[code - 65]--;\\n } else {\\n var code = ch.charCodeAt(0);\\n arr[code - 22]--;\\n }\\n\\n\\n }\\n for (let index = 0; index < 36; index++) {\\n if (arr[index] != 0) {\\n return false;\\n }\\n }\\n return true;\\n}\",\n \"levenshtein_distance(str1, str2) {\\n\\t str1=str1.toUpperCase()\\n\\t str2=str2.toUpperCase()\\n\\t //If strings are empty, return opposite strings length\\n\\t if(str1.length == 0) return str2.length \\n\\t if(str2.length == 0) return str1.length\\n\\t \\n\\t\\t//Create the matrix\\n\\t var matrix = [];\\n\\t for(let i = 0; i <= str2.length; i++){\\n\\t matrix[i] = [i]\\n\\t }\\n\\t for(let j = 0; j <= str1.length; j++){\\n\\t matrix[0][j] = j\\n\\t }\\n\\n\\t \\t//Iterate through i axis, or first word\\n\\t for(let i = 1; i <= str2.length; i++){\\n\\t\\t\\t//Iterate through j axis, or second word\\n\\t \\tfor(let j = 1; j <= str1.length; j++){\\n\\t \\t\\t//If characters are equal\\n\\t\\t if(str2.charAt(i-1) === str1.charAt(j-1)){\\n\\t\\t matrix[i][j] = matrix[i-1][j-1]\\n\\t\\t } \\n\\t else {\\n\\t matrix[i][j] = Math.min(\\n\\t matrix[i-1][j-1] + 1, //Represents a substitution\\n\\t matrix[i][j-1] + 1, //Represents an insertion\\n\\t matrix[i-1][j] + 1 //Represents a deletion\\n\\t \\t\\t\\t\\t)\\n\\t }\\n\\t }\\n\\t }\\n\\t //Retruns total amount of subsitutions, insertions and deletions necesseary to transform one word to another\\n\\t return matrix[str2.length][str1.length]\\n\\t}\",\n \"function anagrams(str1, str2) {\\n let resultsHash = {};\\n\\n str1.split('').forEach( char => {\\n if (!resultsHash[char]) resultsHash[char] = 0;\\n resultsHash[char] += 1;\\n })\\n\\n str2.split('').forEach( char => {\\n if (!resultsHash[char]) resultsHash[char] = 0;\\n resultsHash[char] -= 1;\\n })\\n\\n // console.log(resultsHash)\\n return Object.values(resultsHash).every( value => value == 0);\\n}\",\n \"function Levenshtein (str1, str2) {\\n var m = str1.length,\\n n = str2.length,\\n d = [],\\n i, j;\\n \\n if (!m) return n;\\n if (!n) return m;\\n for (i = 0; i <= m; i++) d[i] = [i];\\n for (j = 0; j <= n; j++) d[0][j] = j;\\n for (j = 1; j <= n; j++) {\\n for (i = 1; i <= m; i++) {\\n if (str1[i-1] === str2[j-1]) d[i][j] = d[i - 1][j - 1];\\n else d[i][j] = Math.min(d[i-1][j], d[i][j-1], d[i-1][j-1]) + 1;\\n }\\n }\\n return d[m][n];\\n }\",\n \"function anagrams(string1, string2){\\n let obj = {};\\n\\n string1.split(\\\"\\\").forEach((char) => {\\n if (!obj[char]) {\\n obj[char] = 1;\\n } else {\\n obj[char] += 1;\\n }\\n });\\n\\n string2.split(\\\"\\\").forEach((char) => {\\n if (!obj[char]) {\\n obj[char] = 1;\\n } else {\\n obj[char] -= 1;\\n }\\n });\\n\\n return Object.values(obj).every(char => char === 0);\\n}\",\n \"function makeAnagram(a, b) {\\n // if(a === b) return a.length;\\n \\n // if(a.length > b.length){\\n // for(let char of a){\\n // if(b.includes(char)){\\n // b.split(' ').splice(b.indexOf(char)).join('')\\n // }\\n // }\\n // }\\n // return b.length;\\n\\n //1 test case. \\n\\n// <-------------------------------------------------------------------->\\n\\n // if(a === b) return a.length;\\n // let arrA = a.split('').sort();\\n // let arrB = b.split('').sort();\\n \\n // if(a.length > b.length){\\n // for(let char of b){\\n // if(arrA.includes(char)){\\n // arrA.splice(arrA.indexOf(char), 1);\\n // arrB.splice(arrB.indexOf(char), 1);\\n // }\\n // }\\n // }\\n \\n // if(b.length > a.length){\\n // for(let char of a){\\n // if(arrB.includes(char)){\\n // arrA.splice(arrA.indexOf(char), 1);\\n // arrB.splice(arrB.indexOf(char), 1);\\n // }\\n // }\\n // }\\n \\n // return arrA.length + arrB.length;\\n\\n //2 test cases passed\\n\\n// <----------------------------------------------------------------------->\\n if(a === b) return a.length;\\n let arrA = a.split('').sort();\\n let arrB = b.split('').sort();\\n\\n if(a.length > b.length || a.length === b.length){\\n for(let char of b){\\n if(arrA.includes(char)){\\n arrA.splice(arrA.indexOf(char), 1);\\n arrB.splice(arrB.indexOf(char), 1);\\n }\\n }\\n }\\n\\n if(b.length > a.length){\\n for(let char of a){\\n if(arrB.includes(char)){\\n arrA.splice(arrA.indexOf(char), 1);\\n arrB.splice(arrB.indexOf(char), 1);\\n }\\n }\\n }\\n\\n return arrA.length + arrB.length;\\n\\n // a bit slow but passed all tests. forgot to check for equal array input lengths\\n}\",\n \"function levenshteinDistanceDP (token1, token2){\\n\\n \\n const rows = token1.length + 1;\\n const columns = token2.length + 1;\\n\\n // lets create a matrix to hold our values\\n const matrix = new Array(rows).fill(null).map(() => Array(columns).fill(0));\\n // now we init the first row to equal 0 1 2 3 .... rows\\n // these values are derived from the number of operations it would take \\n // each substring from \\\"\\\", \\\"h\\\", \\\"he\\\", ..... \\\"hello\\\" to match \\\"\\\"\\n for (let i = 0; i < columns; i++)\\n matrix[0][i] = i;\\n\\n // and the first column to equal 0 1 2 3 .... columns\\n // these values are derived from the number of operations it would take \\n // each substring from \\\"\\\", \\\"w\\\", \\\"wo\\\", ..... \\\"world\\\" to match \\\"\\\"\\n for (let i = 0; i < columns; i++)\\n matrix[0][i] = i;\\n \\n\\n // our operations can only be operations can only be insert, replace or delete\\n // 0: subtrings \\\"\\\" and \\\"\\\" match, so no operation is taken \\n // 1: substrings \\\"h\\\" and \\\"w\\\" require 1 deletion each (h => \\\"\\\" and w => \\\"\\\")\\n // 2: substrings \\\"he\\\" and \\\"wo\\\" require 2 deletions each (\\\"he\\\" => \\\"\\\" and \\\"wo\\\" => \\\"\\\")\\n // 3: substrings \\\"hel\\\" and \\\"wor\\\" require 3 deletions each (\\\"hel\\\" => \\\"\\\" and \\\"wor\\\" =>\\\"\\\")\\n\\n\\n // iterate through each cell\\n // start at 1,1\\n for (let r = 1; r < rows; r++) {\\n for (let c = 1; c < columns; c++){\\n\\n // CASE 1 : the index being checked contains the same letter\\n // \\\"bread\\\" \\\"boy\\\"\\n // \\\"b\\\" === \\\"b\\\"\\n // get value in top left corner (no change in edit distance since previous letter)\\n // i - 1 because we have extra space in front \\\"\\\" empty string\\n if(token1.charAt(r-1) === token2.charAt(c -1)) matrix[r][c] = matrix[r-1][c-1];\\n\\n\\n // CASE 2 : the index being checked does not contains the same letter\\n // \\\"hello\\\" \\\"world\\\"\\n // \\\"h\\\" !== \\\"w\\\"\\n \\n // get minimum value in 2 by 2 neighborhood and add 1\\n else {\\n let above = matrix[r-1][c];\\n let next = matrix[r][c-1];\\n let topLeft = matrix[r-1][c-1];\\n\\n if(above <= next && above <= topLeft) \\n matrix[r][c] = above+1;\\n \\n else if (next <= above && next <= topLeft)\\n matrix[r][c] = next+1;\\n \\n else \\n matrix[r][c] = topLeft+1;\\n }\\n\\n }\\n }\\n\\n return matrix[rows-1][columns-1]; // this is total distance for both whole words \\n}\",\n \"function LevenshteinDistance(string1, string2) {\\n // using the Wagner-Fischer algorithm\\n // set each element in distance to 0\\n const distance = getDistanceMatrix(string1, string2);\\n for (let j = 1; j <= string1.length; j++) {\\n for (let k = 1; k <= string2.length; k++) {\\n \\n if (string1[k] == string2[j]) {\\n distance[j][k] = distance[j-1][k-1]\\n } else{\\n distance[j][k] = Math.min(distance[j-1][k] + 1, // a deletion\\n distance[j][k-1] + 1, // an insertion\\n distance[j-1][k-1] + 1 // a substitution\\n );\\n }\\n }\\n }\\n return distance[string1.length][string2.length];\\n}\",\n \"hash(str) {\\n str = str.toLowerCase();\\n\\n const ALPHABET = \\\"qwertyuiopasdfghjklzxcvbnm\\\"\\n let sum = 0\\n for (let i = 0; i < str.length; i++) {\\n sum += ALPHABET.indexOf(str.charAt(i))\\n }\\n return sum\\n }\",\n \"hash(str) {\\n str = str.toLowerCase();\\n\\n const ALPHABET = \\\"qwertyuiopasdfghjklzxcvbnm\\\"\\n let sum = 0\\n for (let i = 0; i < str.length; i++) {\\n sum += ALPHABET.indexOf(str.charAt(i))\\n }\\n return sum\\n }\",\n \"totalDistance(arr, str){\\n\\t\\treturn arr.reduce((total,singleElem)=>{\\n\\t return total+this.levenshtein_distance(singleElem,str)\\n\\t },0)\\n\\t}\",\n \"function distSameLetter(s){\\n var uniques = s.split('').filter((a, i) => s.indexOf(a) === i).join('');\\n var arr = ['', 0];\\n for(var i = 0; i < uniques.length; i++){\\n diff = s.lastIndexOf(uniques[i]) - s.indexOf(uniques[i]) + 1;\\n if(diff > arr[1]){\\n arr = [uniques[i], diff];\\n }\\n }\\n return arr.join('');\\n}\",\n \"function distance(str1, str2) {\\n\\tvar maxOffset = 5\\n\\n\\tif (str1 == \\\"\\\")\\n\\t\\treturn (str2 ==\\\"\\\")?0:str2.length\\n\\tif (str2 == \\\"\\\")\\n\\t\\treturn str1.length\\n\\n\\tvar c = 0\\n\\tvar offset1 = 0\\n\\tvar offset2 = 0\\n\\tvar lcs = 0\\n\\n\\twhile ((c + offset1 < str1.length)\\n\\t\\t&& (c + offset2 < str2.length)) {\\n\\t\\tif (str1[c + offset1] == str2[c + offset2])\\n\\t\\t\\tlcs++\\n\\t\\telse {\\n\\t\\t\\toffset1 = 0\\n\\t\\t\\toffset2 = 0\\n\\n\\t\\t\\tfor (var i = 0; i < maxOffset; ++i) {\\n\\t\\t\\t\\tif ((c + i < str1.length) && str1[c + i] == str2[c]) {\\n\\t\\t\\t\\t\\toffset1 = i\\n\\t\\t\\t\\t\\tbreak\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif ((c + i < str2.length) && str1[c] == str2[c+i]) {\\n\\t\\t\\t\\t\\toffset2 = i\\n\\t\\t\\t\\t\\tbreak\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\n\\t\\t++c\\n\\t}\\n\\n\\treturn (str1.length + str2.length)/2 - lcs\\n}\",\n \"function levenshteinDistance(word1, word2){\\n if (word1 === word2) return 0;\\n \\n const n = word1.length; \\n const m = word2.length;\\n\\n\\tif (0 === n) return m;\\n if (0 === m) return n;\\n \\n var d = new Array(m); \\n for(var i = 0; i <= m; d[i] = i++); // d = 0..m\\n\\n let cost, x, e;\\n \\n\\tfor(let i = 0; i < n; i++){\\n\\t\\te = i + 1;\\n\\t\\tfor(var j = 0; j < m; j++){\\n\\t\\t\\tcost = (word1[i] === word2[j]) ? 0 : 1;\\n x = Math.min(\\n\\t\\t\\t\\td[j+1] + 1, // insertion\\n e + 1, // deletion\\n d[j] + cost // substitution\\n\\t\\t\\t);\\n d[j] = e;\\n e = x;\\n\\t\\t}\\n\\t\\td[m] = x;\\n\\t}\\n\\n\\treturn x;\\n}\",\n \"function anagrams(stringA, stringB) {\\n let charMap = {};\\n let alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');\\n let specialChars = [0,0];\\n for ( let i = 0; i < stringA.length; i++ ) {\\n let currentChar = stringA[i].toLowerCase();\\n if ( alphabet.indexOf(currentChar) !== -1 ) {\\n if ( !charMap[currentChar] ) charMap[currentChar] = 0;\\n charMap[currentChar] ++;\\n }\\n else {\\n specialChars[0]++;\\n }\\n }\\n \\n for ( let i = 0; i < stringB.length; i++ ) {\\n let currentChar = stringB[i].toLowerCase();\\n if ( alphabet.indexOf(currentChar) === -1 ) specialChars[1]++;\\n else {\\n if ( !charMap[currentChar] ) {\\n console.log(currentChar);\\n return false;\\n }\\n charMap[currentChar]--;\\n if ( charMap[currentChar] === 0 ) delete charMap[currentChar];\\n }\\n }\\n if ( Object.keys(charMap).length > 0 ) return false;\\n //console.log(st)\\n return (stringA.length - specialChars[0]) === (stringB.length - specialChars[1])\\n }\",\n \"function solution_1 (s1, s2) {\\r\\n if (s2.length < s1.length) return false;\\r\\n const freq = {};\\r\\n for (const char of s1) {\\r\\n freq[char] = freq[char] ? freq[char] - 1 : -1;\\r\\n }\\r\\n for (let i = 0; i < s2.length; i++) {\\r\\n const newChar = s2[i];\\r\\n freq[newChar] = freq[newChar] ? freq[newChar] + 1 : 1;\\r\\n if (!freq[newChar]) delete freq[newChar];\\r\\n if (i >= s1.length) {\\r\\n const oldChar = s2[i - s1.length]\\r\\n freq[oldChar] = freq[oldChar] ? freq[oldChar] - 1 : -1;\\r\\n if (!freq[oldChar]) delete freq[oldChar];\\r\\n }\\r\\n if (!Object.keys(freq).length) return true;\\r\\n }\\r\\n return false;\\r\\n}\",\n \"function levenshteinDistance(str1, str2) {\\n const edits = [];\\n for (let i = 0; i < str2.length + 1; i++) {\\n const row = [];\\n for (let j = 0; j < str1.length + 1; j++) {\\n row.push(j);\\n }\\n row[0] = i;\\n edits.push(row);\\n }\\n for (let i = 1; i < str2.length + 1; i++) {\\n for (let j = 1; j < str1.length + 1; j++) {\\n if (str2[i - 1] === str1[j - 1]) {\\n edits[i][j] = edits[i - 1][j - 1];\\n } else {\\n edits[i][j] = 1 + Math.min(edits[i - 1][j - 1], edits[i - 1][j], edits[i][j - 1]);\\n }\\n }\\n }\\n return edits[str2.length][str1.length];\\n}\",\n \"function commonCharacterCount(s1, s2) {\\n \\n // find lesser of two lengths\\n let len = Math.min(s1.length, s2.length)\\n \\n // set count to zero\\n let count = 0\\n \\n let s1Dict = {}\\n \\n // create dictionary of letter counts in s1\\n for (let i = 0; i < s1.length; i++){\\n // if character is not in dictionary, add it\\n let char = s1.charAt(i)\\n if (!(char in s1Dict)){\\n s1Dict[char] = 1\\n } else {\\n // add 1 to key since character is in dict already\\n s1Dict[char] ++\\n }\\n }\\n //console.log(s1Dict)\\n \\n // loop through s2\\n for (let j = 0; j < s2.length; j++){\\n let char2 = s2.charAt(j)\\n // char2 in s1Dict?\\n if (char2 in s1Dict){\\n // are there remaining characters in s1Dict to pull from?\\n if (s1Dict[char2] > 0){\\n count ++\\n s1Dict[char2] --\\n }\\n }\\n }\\n //console.log(s1Dict)\\n \\n return count\\n}\",\n \"function main() {\\n var a = readLine();\\n var b = readLine();\\n\\n function make_anagrams (first_str, second_str) {\\n var first_arr = first_str.split('')\\n var second_arr = second_str.split('')\\n\\n var all_hash = {};\\n var first_hash = {};\\n // store the characters of first string as the key in a hash object\\n // with count of occurences as the value\\n // also store the characters in a hash that will contain all possible chars from the first and second strings\\n for (var i = 0; i < first_arr.length; i++) {\\n if (first_hash[first_arr[i]]) {\\n first_hash[first_arr[i]]++;\\n all_hash[first_arr[i]]++;\\n } else { // if the key doesn't exist, initiate count to 1 for key\\n first_hash[first_arr[i]] = 1;\\n all_hash[first_arr[i]] = 1;\\n }\\n }\\n\\n var second_hash = {};\\n // store the characters of second string as the key in hash object \\n // with count of occurences as the value\\n for (var i = 0; i < second_arr.length; i++) {\\n if (!(second_arr[i] in second_hash)) { // initiate count to 1 if key does not exist\\n second_hash[second_arr[i]] = 1;\\n\\n // set the count for all_hash appropriately depending if key already exists from looking at first_hash\\n all_hash[second_arr[i]] = (second_arr[i] in all_hash) ? all_hash[second_arr[i]]+1 : 1; \\n } else {\\n second_hash[second_arr[i]]++;\\n all_hash[second_arr[i]]++;\\n }\\n\\n \\n }\\n\\n // go through all the characters\\n var deletions = 0; // number of deletion operations to make strings anagrams\\n for (var letter in all_hash) {\\n if (letter in first_hash && letter in second_hash) { \\n // character in both strings, subtract to get extra count\\n deletions += Math.abs(first_hash[letter] - second_hash[letter]);\\n } else if (letter in first_hash) {\\n // character only in the first string\\n deletions += first_hash[letter]\\n } else if (letter in second_hash) {\\n // character only in the second string\\n deletions += second_hash[letter];\\n }\\n }\\n\\n console.log(\\\"deletions\\\", deletions);\\n }\\n\\n make_anagrams(a, b);\\n}\",\n \"function distance(s1, s2) {\\r\\n if (typeof(s1) != \\\"string\\\" || typeof(s2) != \\\"string\\\") return 0;\\r\\n if (s1.length == 0 || s2.length == 0) \\r\\n return 0;\\r\\n s1 = s1.toLowerCase(), s2 = s2.toLowerCase();\\r\\n var matchWindow = (Math.floor(Math.max(s1.length, s2.length) / 2.0)) - 1;\\r\\n var matches1 = new Array(s1.length);\\r\\n var matches2 = new Array(s2.length);\\r\\n var m = 0; // number of matches\\r\\n var t = 0; // number of transpositions\\r\\n\\r\\n //debug helpers\\r\\n //console.log(\\\"s1: \\\" + s1 + \\\"; s2: \\\" + s2);\\r\\n //console.log(\\\" - matchWindow: \\\" + matchWindow);\\r\\n\\r\\n // find matches\\r\\n for (var i = 0; i < s1.length; i++) {\\r\\n\\tvar matched = false;\\r\\n\\r\\n\\t// check for an exact match\\r\\n\\tif (s1[i] == s2[i]) {\\r\\n\\t\\tmatches1[i] = matches2[i] = matched = true;\\r\\n\\t\\tm++\\r\\n\\t}\\r\\n\\r\\n\\t// check the \\\"match window\\\"\\r\\n\\telse {\\r\\n \\t// this for loop is a little brutal\\r\\n \\tfor (k = (i <= matchWindow) ? 0 : i - matchWindow;\\r\\n \\t\\t(k <= i + matchWindow) && k < s2.length && !matched;\\r\\n\\t\\t\\tk++) {\\r\\n \\t\\tif (s1[i] == s2[k]) {\\r\\n \\t\\tif(!matches1[i] && !matches2[k]) {\\r\\n \\t \\t\\tm++;\\r\\n \\t\\t}\\r\\n\\r\\n \\t matches1[i] = matches2[k] = matched = true;\\r\\n \\t }\\r\\n \\t}\\r\\n\\t}\\r\\n }\\r\\n\\r\\n if(m == 0)\\r\\n return 0.0;\\r\\n\\r\\n // count transpositions\\r\\n var k = 0;\\r\\n\\r\\n for(var i = 0; i < s1.length; i++) {\\r\\n \\tif(matches1[k]) {\\r\\n \\t while(!matches2[k] && k < matches2.length)\\r\\n k++;\\r\\n\\t if(s1[i] != s2[k] && k < matches2.length) {\\r\\n t++;\\r\\n }\\r\\n\\r\\n \\t k++;\\r\\n \\t}\\r\\n }\\r\\n \\r\\n //debug helpers:\\r\\n //console.log(\\\" - matches: \\\" + m);\\r\\n //console.log(\\\" - transpositions: \\\" + t);\\r\\n t = t / 2.0;\\r\\n return (m / s1.length + m / s2.length + (m - t) / m) / 3;\\r\\n}\",\n \"function levenshteinDistance(str1, str2) {\\n const grid = new Array(str1.length + 1);\\n for (let i = 0; i < str1.length + 1; i += 1) {\\n grid[i] = new Array(str2.length + 1);\\n grid[i][0] = i;\\n }\\n for (let i = 0; i < str2.length + 1; i += 1) {\\n grid[0][i] = i;\\n }\\n for (let i = 1; i < grid.length; i += 1) {\\n const row = grid[i];\\n for (let j = 1; j < row.length; j += 1) {\\n if (str1[i - 1] === str2[j - 1]) {\\n grid[i][j] = grid[i - 1][j - 1];\\n } else {\\n grid[i][j] =\\n 1 +\\n Math.min(\\n grid[i][j - 1],\\n grid[i - 1][j],\\n grid[i - 1][j - 1]\\n );\\n }\\n }\\n }\\n return grid[str1.length][str2.length];\\n}\",\n \"function levenshtein(a, b) {\\n a = a.toUpperCase();\\n b = b.toUpperCase();\\n if (a.length === 0) return b.length; \\n if (b.length === 0) return a.length; \\n\\n var matrix = [];\\n\\n // increment along the first column of each row\\n var i;\\n for (i = 0; i <= b.length; i++) {\\n matrix[i] = [i];\\n }\\n\\n // increment each column in the first row\\n var j;\\n for (j = 0; j <= a.length; j++) {\\n matrix[0][j] = j;\\n }\\n\\n // Fill in the rest of the matrix\\n for (i = 1; i <= b.length; i++) {\\n for (j = 1; j <= a.length; j++) {\\n if (b.charAt(i-1) == a.charAt(j-1)) {\\n matrix[i][j] = matrix[i-1][j-1];\\n } else {\\n matrix[i][j] = Math.min(matrix[i-1][j-1] + 1.5, // substitution\\n Math.min(matrix[i][j-1] + 1, // insertion\\n matrix[i-1][j] + 1)); // deletion\\n }\\n }\\n }\\n\\n return matrix[b.length][a.length];\\n}\",\n \"function hamming(x,y) {\\n var d = 0,\\n i = 0,\\n ii = x.length;\\n for(; i < ii; i++)\\n if(x[i] !== y[i]) d++;\\n return d;\\n }\",\n \"function checkAnagram(str1, str2){\\n\\n // Check if the length of the two array is the samey\\n if(str1.length !== str2.length){\\n return false;\\n }\\n\\n// create two object frequencies\\n let strFrequency1 = {};\\n let strFrequency2 = {};\\n\\n // loop through each of the two string respectively and add their count to their objects\\n for(let char of str1){\\n strFrequency1[char] = ++strFrequency1[char] || 1;\\n }\\n for(let char of str2){\\n strFrequency2[char] = ++strFrequency2[char] || 1;\\n }\\n console.log(strFrequency1);\\n console.log(strFrequency2);\\n // compare the two objects with occupiance of the frequencies\\n for(let key in strFrequency1){\\n if(strFrequency2[key] !== strFrequency1[key]){\\n return false;\\n }\\n }\\n // return either true or false\\n return true;\\n}\",\n \"function sherlockAndAnagrams(s) {\\n let count = 0;\\n //글자 수\\n for (let i = 1; i < s.length; i++) {\\n for (let j = 0; j < s.length - i; j++) {\\n const target = s.substring(j, j + i, j);\\n // console.log(\\\"-------\\\");\\n for (let k = 1 + j; k < s.length - i + 1; k++) {\\n let compared = s.substring(k, k + i);\\n if (isAnagram(target, compared)) {\\n count++;\\n }\\n }\\n }\\n }\\n return count;\\n}\",\n \"function isAnagram (a, b) {\\n\\t// turn each string into arrays to check for equality\\n\\tlet stringAArray = a.split('');\\n let stringBArray = b.split('');\\n\\n // have a counter variable to keep track of how many characters match\\n let numberOfMatches = 0;\\n\\n // check which string is smaller to loop through that string in the first loop\\n // so we can reduce the number of equality checks\\n if (stringAArray.length > stringBArray.length) {\\n \\tstringAArray = b.split('');\\n stringBArray = a.split('');\\n }\\n\\n // loop through both array of strings to check if stringAArray[i] === stringBArray[j]\\n // push 2 counters to numberOfMatches for each match\\n // set stringBArray[j] to null so that when we do an equality check it would not check that same value again and add counters to numberOfMatches\\n for (let i = 0; i < stringAArray.length; i++) {\\n for (let j = 0; j < stringBArray.length; j++) {\\n if (stringAArray[i] === stringBArray[j]) {\\n \\t// console.log('match');\\n numberOfMatches += 2;\\n stringBArray[j] = null;\\n break;\\n }\\n }\\n }\\n\\n // console.log('number of matches: ' + numberOfMatches);\\n // console.log('string a array: ' + stringAArray);\\n // console.log('string b array: ' + stringBArray);\\n // console.log('number of cuts: ' + (stringAArray.length + stringBArray.length) - numberOfMatches);\\n\\n // return total amount of cuts to both strings\\n return (stringAArray.length + stringBArray.length) - numberOfMatches;\\n}\",\n \"function StringScramble(str1,str2) { \\n var objOne = {}; \\n\\n for(var i = 0; i < str1.length; i++){\\n objOne[str1[i]] = objOne[str1[i]] ? objOne[str1[i]] + 1 : 1;\\n }\\n //place in object with number of occurences \\n \\n for(var j = 0; j < str2.length; j++){\\n if(!objOne[str2[j]]){ \\n //loop thru each letter of str2\\n //if it doesn't exist, we know that \\n //the word cannot be created therefore return false\\n\\n \\treturn false\\n }\\n }\\n \\n return true;\\n\\n \\n}\",\n \"function minDistance(word1, word2) {\\n // equation is length of w1 + length of w2 - (2 * length of longest common subsequence)\\n // in case of total mismatch, the answer will just be the combined lengths\\n // * 2 makes sense since each mismatch requires 2 operations\\n \\n const matrix = [];\\n for(let i = 0; i < word1.length + 1; i++) {\\n matrix.push([])\\n for(let j = 0; j < word2.length + 1; j++) {\\n matrix[i].push(0)\\n }\\n }\\n console.log(matrix)\\n \\n for(let i = 0; i <= word1.length; i++) {\\n for(let j = 0; j <= word2.length; j++) {\\n console.log()\\n if(i === 0 || j === 0) continue\\n if(word1[i - 1] === word2[j - 1]) {\\n matrix[i][j] = matrix[i - 1][j - 1] + 1;\\n } else {\\n matrix[i][j] = Math.max(matrix[i - 1][j], matrix[i][j - 1])\\n }\\n }\\n }\\n \\n \\n return word1.length + word2.length - (2 * matrix[word1.length][word2.length])\\n}\",\n \"function SearchingChallenge2(strArr) {\\n let pos = [];\\n\\n for (let i = 0; i < strArr.length; i++) {\\n for (let j = 0; j < strArr[i].length; j++) {\\n if ([...strArr[i]][j] === \\\"0\\\") pos.push([j, i]);\\n }\\n }\\n\\n let count = 0;\\n const x = 0;\\n const y = 1;\\n\\n for (let i = 0; i < pos.length; i++) {\\n for (let j = 0; j < pos.length; j++) {\\n if (\\n (pos[i][y] === pos[j][y] && pos[i][x] === pos[j][x] + 1) ||\\n (pos[i][x] === pos[j][x] && pos[i][y] === pos[j][y] + 1)\\n ) {\\n count++;\\n }\\n }\\n }\\n\\n return count;\\n}\",\n \"function jwdistance(s1, s2) {\\n if (typeof(s1) != \\\"string\\\" || typeof(s2) != \\\"string\\\") return 0;\\n if (s1.length == 0 || s2.length == 0) return 0;\\n s1 = s1.toLowerCase(), s2 = s2.toLowerCase();\\n var matchWindow = (Math.floor(Math.max(s1.length, s2.length) / 2.0)) - 1;\\n var matches1 = new Array(s1.length);\\n var matches2 = new Array(s2.length);\\n var m = 0; // number of matches\\n var t = 0; // number of transpositions\\n //debug helpers\\n //console.log(\\\"s1: \\\" + s1 + \\\"; s2: \\\" + s2);\\n //console.log(\\\" - matchWindow: \\\" + matchWindow);\\n // find matches\\n for (var i = 0; i < s1.length; i++) {\\n var matched = false;\\n // check for an exact match\\n if (s1[i] == s2[i]) {\\n matches1[i] = matches2[i] = matched = true;\\n m++\\n }\\n // check the \\\"match window\\\"\\n else {\\n // this for loop is a little brutal\\n for (k = (i <= matchWindow) ? 0 : i - matchWindow;\\n (k <= i + matchWindow) && k < s2.length && !matched;\\n k++) {\\n if (s1[i] == s2[k]) {\\n if (!matches1[i] && !matches2[k]) {\\n m++;\\n }\\n matches1[i] = matches2[k] = matched = true;\\n }\\n }\\n }\\n }\\n if (m == 0) return 0.0;\\n // count transpositions\\n var k = 0;\\n for (var i = 0; i < s1.length; i++) {\\n if (matches1[k]) {\\n while (!matches2[k] && k < matches2.length)\\n k++;\\n if (s1[i] != s2[k] && k < matches2.length) {\\n t++;\\n }\\n k++;\\n }\\n }\\n //debug helpers:\\n //console.log(\\\" - matches: \\\" + m);\\n //console.log(\\\" - transpositions: \\\" + t);\\n t = t / 2.0;\\n return (m / s1.length + m / s2.length + (m - t) / m) / 3;\\n}\",\n \"function solve(inputStr){\\r\\n\\r\\n if(isNearPalindrome(inputStr) === false){\\r\\n var s = inputStr.split(\\\"\\\").sort();\\r\\n \\r\\n var nOperations = 0;\\r\\n var first = 0;\\r\\n var last = s.length -1;\\r\\n\\r\\n var incremented = 0;\\r\\n\\r\\n while(first < last){\\r\\n if(s[first] !== s[last]){\\r\\n incremented = Math.min(inputStr.charCodeAt(first++), inputStr.charCodeAt(last--)) + 1;\\r\\n nOperations++;\\r\\n }\\r\\n } \\r\\n return nOperations;\\r\\n }\\r\\n else {\\r\\n return -1;\\r\\n }\\r\\n}\",\n \"function solve2(arr) {\\n let arr2 = arr.map(ele => ele.toLowerCase());\\n let alphabet = 'abcdefghijklmnopqrstuvwxyz';\\n let returnArry = [];\\n for (let idx = 0; idx < arr2.length; idx++) {\\n let count = 0;\\n for (let idx2 = 0; idx2 < arr2[idx].length; idx2++) {\\n if (idx2 === alphabet.indexOf(arr2[idx][idx2])) {\\n count++; \\n }\\n }\\n returnArry.push(count);\\n }\\n return returnArry;\\n}\",\n \"function levenshtein (s1, s2) {\\n // http://kevin.vanzonneveld.net\\n // + original by: Carlos R. L. Rodrigues (http://www.jsfromhell.com)\\n // + bugfixed by: Onno Marsman\\n // + revised by: Andrea Giammarchi (http://webreflection.blogspot.com)\\n // + reimplemented by: Brett Zamir (http://brett-zamir.me)\\n // + reimplemented by: Alexander M Beedie\\n // * example 1: levenshtein('Kevin van Zonneveld', 'Kevin van Sommeveld');\\n // * returns 1: 3\\n if (s1 == s2) {\\n return 0;\\n }\\n\\n var s1_len = s1.length;\\n var s2_len = s2.length;\\n if (s1_len === 0) {\\n return s2_len;\\n }\\n if (s2_len === 0) {\\n return s1_len;\\n }\\n\\n // BEGIN STATIC\\n var split = false;\\n try {\\n split = !('0')[0];\\n } catch (e) {\\n split = true; // Earlier IE may not support access by string index\\n }\\n // END STATIC\\n if (split) {\\n s1 = s1.split('');\\n s2 = s2.split('');\\n }\\n\\n var v0 = new Array(s1_len + 1);\\n var v1 = new Array(s1_len + 1);\\n\\n var s1_idx = 0,\\n s2_idx = 0,\\n cost = 0;\\n for (s1_idx = 0; s1_idx < s1_len + 1; s1_idx++) {\\n v0[s1_idx] = s1_idx;\\n }\\n var char_s1 = '',\\n char_s2 = '';\\n for (s2_idx = 1; s2_idx <= s2_len; s2_idx++) {\\n v1[0] = s2_idx;\\n char_s2 = s2[s2_idx - 1];\\n\\n for (s1_idx = 0; s1_idx < s1_len; s1_idx++) {\\n char_s1 = s1[s1_idx];\\n cost = (char_s1 == char_s2) ? 0 : 1;\\n var m_min = v0[s1_idx + 1] + 1;\\n var b = v1[s1_idx] + 1;\\n var c = v0[s1_idx] + cost;\\n if (b < m_min) {\\n m_min = b;\\n }\\n if (c < m_min) {\\n m_min = c;\\n }\\n v1[s1_idx + 1] = m_min;\\n }\\n var v_tmp = v0;\\n v0 = v1;\\n v1 = v_tmp;\\n }\\n return v0[s1_len];\\n}\",\n \"function mutation(arr) {\\n\\n let str1 = arr[0].toLowerCase().split(\\\"\\\");\\n let str2 = arr[1].toLowerCase().split(\\\"\\\");\\n let Lstr2 = str2.length;\\n let pru = 0;\\n\\n for (let i = 0; i < str2.length; i++) {\\n for (let j = 0; j < str1.length; j++) {\\n if (str2[i] === str1[j]) {\\n pru += 1;\\n break;\\n }\\n }\\n }\\n\\n if (Lstr2 === pru) {\\n return true\\n } else {\\n return false\\n }\\n}\",\n \"function checkAnagram(a = '', b = '') {\\n var array = {};\\n if (a === b) {\\n return true;\\n }\\n if (a.length !== b.length) {\\n return false;\\n }\\n for (let i = 0; i < a.length; i++) {\\n let res = a.charCodeAt(i) - 97;\\n console.log('res', res);\\n array[res] = (array[res] || 0) + 1;\\n }\\n console.log('array', array);\\n\\n for (let j = 0; j < b.length; j++) {\\n let res = b.charCodeAt(j) - 97;\\n if (!array[res]) {\\n return false;\\n }\\n array[res]--;\\n }\\n return true;\\n}\",\n \"function stringChecker(a,b, myFunc){\\n // we initialize our results\\n let results;\\n // if the length of b !== the length of a\\n if (String(b).length !== String(a).length){\\n // we know the answer is false\\n return false;\\n } else{\\n // we convert our strings/integers to arrays.\\n // stringConverter- returns 2 arrays within an array.\\n results = stringConverter(a,b);\\n // we then compare the frequency of our two arrays\\n return myFunc(results[0],results[1]);\\n };\\n \\n}\",\n \"function strRepeatCount(str1, str2) {\\n const str1Hash = {};\\n let fragment = \\\"\\\";\\n let lastIndex = -Infinity;\\n let count = 0;\\n\\n //O(str1.length)\\n\\n for (let i = 0; i < str1.length; i++) {\\n let letter = str1[i];\\n if (str1Hash[letter]) {\\n str1Hash[letter].push(i);\\n } else {\\n str1Hash[letter] = [i];\\n }\\n\\n }\\n\\n //O(str2.length) * O(indices.length)\\n\\n for (let j = 0; j < str2.length; j++) {\\n let letter = str2[j];\\n \\n if (str1Hash[letter]) {\\n if (fragment.length === 0) {\\n fragment = letter;\\n lastIndex = str1Hash[letter][0];\\n count++;\\n } else {\\n let letterIndices = str1Hash[letter];\\n let foundIdx = false;\\n\\n for (let idx of letterIndices) {\\n if (idx > lastIndex) {\\n fragment += letter;\\n lastIndex = idx;\\n foundIdx = true;\\n }\\n }\\n\\n console.log(fragment, count);\\n if (!foundIdx) {\\n count++;\\n fragment = letter;\\n lastIndex = str1Hash[letter][0];\\n } else if (foundIdx === str2.length - 1) {\\n count ++;\\n }\\n \\n }\\n } else {\\n return -1;\\n }\\n\\n\\n }\\n\\n return count;\\n\\n\\n}\",\n \"function naiveString(A, B) {\\n let count = 0;\\n for (let i=0; i lengthOfB ? length = lengthOfB : length = lengthOfA\\n// }\\n \\n // seperating each string letter\\n a = a.split('')\\n b = b.split('')\\n \\nfor (let i =0; i \\\" + a[i])\\n // removing the letter in a\\n let temp = a[i]\\n a.splice(i,1)\\n // found match in a\\n count+=1\\n // find and remove the same letter in b\\n b.splice(b.indexOf(temp),1)\\n // found match in b\\n count+=1\\n // go back to same round to check new letter in same position\\n i = i-1\\n }\\n } // subtracting the matching anagram count against original letter count of both strings\\n return (lengthOfA + lengthOfB) - count\\n}\",\n \"function theLoveLetterMystery(s) {\\n let count = 0;\\n let i = 0;\\n let j = s.length - 1;\\n let start, end, diff;\\n while (i < j) {\\n start = s[i].charCodeAt(0);\\n end = s[j].charCodeAt(0);\\n\\n diff = Math.abs(start - end);\\n\\n count = count + diff;\\n i++;\\n j--;\\n }\\n\\n return count;\\n}\",\n \"function letterSwitchesNeededToBeAnagram(str1, str2) {\\n let characterLookup = [];\\n\\n if(str1.length !== str2.length) {\\n return -1;\\n }\\n\\n for(let i = 0; i < str1.length; i++) {\\n let char1 = str1.charAt(i);\\n let char2 = str2.charAt(i);\\n\\n if(characterLookup[char1] === undefined) {\\n characterLookup[char1] = {\\n value: 1,\\n isOriginal: true\\n };\\n } else {\\n characterLookup[char1].value += 1;\\n }\\n\\n if(characterLookup[char2] === undefined) {\\n characterLookup[char2] = {\\n value: -1,\\n isOriginal: false\\n };\\n } else {\\n characterLookup[char2] -= 1;\\n }\\n }\\n\\n let sum = 0;\\n\\n for(let k in characterLookup) {\\n if(characterLookup[k].isOriginal === true) {\\n sum += Math.abs(characterLookup[k].value);\\n }\\n }\\n\\n return sum;\\n}\",\n \"function commonCharacterCount(s1, s2) {\\n let letterObj = {};\\n let commonCount = 0;\\n\\n for (let i = 0; i < s1.length; i++) {\\n let currentLetter = s1[i]\\n if (!(currentLetter in letterObj)) {\\n letterObj[currentLetter] = 1\\n } else {\\n letterObj[currentLetter]++\\n }\\n }\\n\\n for (let i = 0; i < s2.length; i++) {\\n let currentLetter = s2[i]\\n if (currentLetter in letterObj) {\\n if (letterObj[currentLetter] > 0) {\\n commonCount++\\n letterObj[currentLetter]--\\n }\\n }\\n }\\n\\n return commonCount\\n}\",\n \"function search(w1, w2)\\n{\\n let l1 = w1.length;\\n let l2 = w2.length;\\n console.log(w1, w2);\\n let ch,c,maxc=0;\\n let i,j;\\n\\n for(i=0;il1 || tempj+1>l2)\\n {\\n c--;\\n break;\\n }\\n\\n }\\n\\n\\n }\\n\\n\\n if(c>maxc)\\n {\\n maxc = c;\\n }\\n\\n }\\n }\\n let perc_match = maxc/l1*100;\\n console.log(perc_match)\\n return perc_match;\\n}\",\n \"function countLetters(wanted,arrayString) {\\n let newArr = arrayString.join('').split(''); \\n let count=0;\\n for (let i = 0; i < newArr.length; i++) {\\n if (newArr[i]===wanted)\\n count++;\\n }\\n return count;\\n}\",\n \"function levenshtein(s, t) {\\n\\n // var distance = fastLevenshtein(s, t)\\n // return distance;\\n if (s === t) {\\n return 0;\\n }\\n var n = s.length, m = t.length;\\n if (n === 0 || m === 0) {\\n return n + m;\\n }\\n var x = 0, y, a, b, c, d, g, h, k;\\n var p = new Array(n);\\n for (y = 0; y < n;) {\\n p[y] = ++y;\\n }\\n\\n for (; (x + 3) < m; x += 4) {\\n var e1 = t.charCodeAt(x);\\n var e2 = t.charCodeAt(x + 1);\\n var e3 = t.charCodeAt(x + 2);\\n var e4 = t.charCodeAt(x + 3);\\n c = x;\\n b = x + 1;\\n d = x + 2;\\n g = x + 3;\\n h = x + 4;\\n for (y = 0; y < n; y++) {\\n k = s.charCodeAt(y);\\n a = p[y];\\n if (a < c || b < c) {\\n c = (a > b ? b + 1 : a + 1);\\n }\\n else {\\n if (e1 !== k) {\\n c++;\\n }\\n }\\n\\n if (c < b || d < b) {\\n b = (c > d ? d + 1 : c + 1);\\n }\\n else {\\n if (e2 !== k) {\\n b++;\\n }\\n }\\n\\n if (b < d || g < d) {\\n d = (b > g ? g + 1 : b + 1);\\n }\\n else {\\n if (e3 !== k) {\\n d++;\\n }\\n }\\n\\n if (d < g || h < g) {\\n g = (d > h ? h + 1 : d + 1);\\n }\\n else {\\n if (e4 !== k) {\\n g++;\\n }\\n }\\n p[y] = h = g;\\n g = d;\\n d = b;\\n b = c;\\n c = a;\\n }\\n }\\n\\n for (; x < m;) {\\n var e = t.charCodeAt(x);\\n c = x;\\n d = ++x;\\n for (y = 0; y < n; y++) {\\n a = p[y];\\n if (a < c || d < c) {\\n d = (a > d ? d + 1 : a + 1);\\n }\\n else {\\n if (e !== s.charCodeAt(y)) {\\n d = c + 1;\\n }\\n else {\\n d = c;\\n }\\n }\\n p[y] = d;\\n c = a;\\n }\\n h = d;\\n }\\n return h;\\n\\n\\n }\",\n \"function levenshteinDistance(str1, str2) {\\n const small = str1.length < str2.length ? str1 : str2;\\n const big = str1.length >= str2.length ? str1 : str2;\\n const evenEdits = [];\\n const oddEdits = new Array(small.length + 1);\\n for (let j = 0; j < small.length + 1; j++) {\\n evenEdits.push(j);\\n }\\n for (let i = 1; i < big.length + 1; i++) {\\n let currentEdits, previousEdits;\\n if (i % 2 === 1) {\\n currentEdits = oddEdits;\\n previousEdits = evenEdits;\\n } else {\\n currentEdits = evenEdits;\\n previousEdits = oddEdits;\\n }\\n currentEdits[0] = 1;\\n for (let j = 1; j < small.length + 1; j++) {\\n if (big[i - 1] === small[j - 1]) {\\n currentEdits[j] = previousEdits[j - 1];\\n } else {\\n currentEdits[j] = 1 + Math.min(previousEdits[j - 1], previousEdits[j], currentEdits[j - 1]);\\n }\\n }\\n }\\n return big.length % 2 === 0 ? evenEdits[small.length] : oddEdits[small.length];\\n}\",\n \"function getLevenshteinDistance(str1, str2) {\\n var len1 = str1.length;\\n var len2 = str2.length;\\n var matrix = [];\\n // fill the first row of the matrix\\n for (var i = 0; i <= len1; i++) {\\n matrix[i] = [i];\\n }\\n // fill the first column of the matrix\\n for (var j = 0; j <= len2; j++) {\\n matrix[0][j] = j;\\n }\\n // fill the rest of the matrix\\n for (var i = 1; i <= len1; i++) {\\n for (var j = 1; j <= len2; j++) {\\n if (str1.charAt(i - 1) == str2.charAt(j - 1)) {\\n matrix[i][j] = matrix[i - 1][j - 1];\\n } else {\\n matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, // substitution\\n Math.min(matrix[i][j - 1] + 1, // insertion\\n matrix[i - 1][j] + 1)); // deletion\\n }\\n }\\n }\\n return matrix[len1][len2];\\n}\",\n \"function levenshteinDistance(str1, str2) {\\n let small, big;\\n if (str1.length < str2.length) {\\n small = str1;\\n big = str2;\\n } else {\\n small = str2;\\n big = str1;\\n }\\n\\n const oddEdits = new Array(small.length + 1)\\n const evenEdits = [];\\n for (let j = 0; j < small.length + 1; j++) {\\n evenEdits.push(j);\\n }\\n\\n for (let i = 1; i < big.length + 1; i++) {\\n let currEdits, prevEdits;\\n if (i % 2 === 0) {\\n currEdits = evenEdits;\\n prevEdits = oddEdits;\\n } else {\\n currEdits = oddEdits;\\n prevEdits = evenEdits;\\n }\\n currEdits[0] = i;\\n\\n for (let j = 1; j < small.length + 1; j++) {\\n if (big[i - 1] === small[j - 1]) currEdits[j] = prevEdits[j - 1];\\n // similar logic to sol 1\\n else\\n currEdits[j] =\\n 1 + Math.min(prevEdits[j - 1], prevEdits[j], currEdits[j - 1]);\\n }\\n }\\n if (big.length % 2 === 0) return evenEdits[small.length];\\n else return oddEdits[small.length];\\n} // O(n*m) time, O(min(n, m)) space\",\n \"function validAnagram(str1, str2){\\n // add whatever parameters you deem necessary - good luck!\\n // check if str1 has the same length as str2 & same characters\\n if(str1.length !== str2.length){\\n return false\\n }\\n // create an object call lookup\\n let lookup = {}\\n// construct the object first\\n for (let i = 0; i < str1.length; i++){\\n letter = str1[i]\\n //if letter exits, increment, otherwise set to 1\\n lookup[letter] ? lookup[letter] += 1 : lookup[letter] = 1;\\n }\\n console.log(lookup)\\n for (let i = 0; i < str2.length; i++){\\n let letter = second[i];\\n // can't find letter of letter is zero then it's not an anagram\\n if (!lookup[letter]) {\\n return false;\\n } else {\\n lookup[letter] -= 1;\\n }\\n return true;\\n }\\n}\",\n \"function compare( word, guess ) { // DO NOT MODIFY\\n word = word.toLowerCase();\\n guess = guess.toLowerCase();\\n\\tlet wordArr = [];\\n\\tfor(let i =0; i< word.length; i++){\\n\\t\\tif(!wordArr.includes(word[i])){\\n\\t\\t\\twordArr.push(word[i]);\\n\\t\\t}\\n\\t}\\n \\n\\tlet guessArr = [];\\n\\tfor(let j =0; j< guess.length; j++){\\n\\t\\tif(!guessArr.includes(guess[j])){\\n\\t\\t\\tguessArr.push(guess[j]);\\n\\t\\t}\\n\\t}\\n \\n\\tlet count = 0;\\n\\tfor(let i = 0; i< wordArr.length; i++){\\n\\t\\tif(guessArr.includes(wordArr[i])){\\n\\t\\t\\tcount++;\\n\\t\\t}\\n\\t}\\n return count; // this line is wrong\\n}\",\n \"function processData(input) {\\n //Enter your code here\\n\\n let sum = 0,\\n count = 1;\\n // console.log(str);\\n\\n let weight = [];\\n\\n let chars = \\\"abcdefghijklmnopqrstuvwxyz\\\".split(\\\"\\\");\\n // console.log(chars);\\n\\n for (let i = 0; i < chars.length; i++) {\\n weight.push(count++);\\n }\\n // console.log(weight);\\n\\n for (let i = 0; i < input.length; i++) {\\n if (chars.indexOf(input[i]) !== -1) {\\n sum = sum + weight[chars.indexOf(input[i])];\\n console.log([chars.indexOf(input[i])]);\\n }\\n }\\n console.log(sum);\\n}\",\n \"function checkGenerator(string,arr){\\n let count=0;\\n for (let i=0; i{}]/g, '');\\n var strNew = [];\\n // str to array\\n var strArray = str.split(' ');\\n // loop through each word of array\\n for (var x = 0; x < strArray.length; x++) {\\n var newWord = \\\"\\\";\\n // declare variable for each word of strArray\\n var strArrayWord = strArray[x];\\n // loop through each letter of each word of strArray\\n for (var y = 0; y < strArrayWord.length; y++) {\\n // declare variable for letter this loop\\n var letterThisLoop = strArrayWord[y];\\n // use indexOf to determine if letter has been repeated \\n if (newWord.indexOf(letterThisLoop) > -1) {\\n return strArray[x];\\n }\\n newWord += letterThisLoop;\\n }\\n strNew.push(newWord);\\n }\\n return -1;\\n}\",\n \"function alg(str1, str2) {\\n\\tlet out = \\\"\\\";\\n\\tlet arr = [];\\n\\n\\tfor (let l of str1) {\\n\\t\\tlet index = str1.indexOf(l);\\n\\t\\t// If the chars are the same\\n\\t\\tif (l === str2[index]) {\\n\\t\\t\\tout += l;\\n\\t\\t} else {\\n\\t\\t\\t// if there is a substring add to arr\\n\\t\\t\\tif (out.length > 0) {\\n\\t\\t\\t\\tarr.push(out);\\n\\t\\t\\t}\\n\\t\\t\\tout = \\\"\\\";\\n\\t\\t}\\n\\t}\\n\\tconsole.log(arr);\\n\\t// Compare and return If there is sub strings\\n\\tlet output = arr[0];\\n\\tfor (let i = 0; i < arr.length; i++) {\\n\\t\\tif (output.length > arr[i].length) output = arr[i];\\n\\t}\\n\\tif (output !== undefined) return output;\\n\\n\\treturn undefined;\\n}\",\n \"function anagrams1(stringA, stringB) {\\n let countA = {};\\n let countB = {};\\n\\n const countLetters = (string, count) => {\\n string.split(\\\"\\\").forEach((char, i) => {\\n char = char.toLowerCase();\\n if (!count[char]) {\\n count[char] = 1;\\n } else {\\n count[char]++;\\n }\\n });\\n return count;\\n };\\n const cleanUp = count => {\\n for (key in count) {\\n if (key === \\\" \\\" || key === \\\"!\\\") {\\n delete count[key];\\n }\\n }\\n return count;\\n };\\n countA = cleanUp(countLetters(stringA, countA));\\n countB = cleanUp(countLetters(stringB, countB));\\n const compareObjects = (count1, count2) => {\\n const compared = {};\\n\\n for (letter in count1) {\\n if (count1[letter] === count2[letter]) {\\n compared[letter] = count1[letter];\\n }\\n }\\n return Object.keys(compared).length === Object.keys(count2).length || false;\\n };\\n return compareObjects(countA, countB);\\n}\",\n \"function commonLetter(word,guess){\\n\\tlet count = 0;\\n\\tlet map = [];\\n\\tfor (let letter of word) {\\n\\t\\tif (!map[letter]){\\n\\t\\t\\tmap[letter] = 0;\\n\\t\\t}\\n\\t\\tmap[letter]++;\\t\\n\\t}\\n\\t//console.log(map);\\n\\tfor (let i = 0; i < guess.length; i++) {\\n\\t\\tif ( map[guess[i]] && map[guess[i]] != 0) {\\n\\t\\t\\tmap[guess[i]]--;\\n\\t\\t\\tcount++;\\n\\t\\t}else{\\n\\t\\t\\tcontinue;\\n\\t\\t}\\n\\t}\\n\\t//console.log(map);\\n\\treturn count;\\n}\",\n \"function commonCharacterCount(s1, s2) {\\n\\tvar count = 0;\\n\\tfor (var i = 0; i 0) {\\n // decrement the count\\n letterCounts[currentLetter]--;\\n } else {\\n // else break out of the loop\\n return false;\\n }\\n }\\n\\n console.log(letterCounts);\\n\\n return true;\\n}\",\n \"getNumWrong(word,letters){\\n\\tvar wordArray = word.split('').sort();\\n\\tvar numWrong = 0;\\n\\tfor (var i = 0; i < letters.length; i++) {\\n\\t\\tif ( wordArray.indexOf(letters[i]) === -1) {\\n\\t\\t\\tnumWrong++;\\n\\t\\t}\\n\\t}\\n\\treturn numWrong;\\n}\",\n \"function countingAnagrams(str) {\\n // Your code here\\n counter = 0;\\n words = str.split(' ')\\n console.log(words)\\n for (var i = 0; i < words.length; i++) {\\n for (var j=0;j 0) {\\n letters[letter]--;\\n } else {\\n return false;\\n }\\n }\\n return true;\\n}\",\n \"function duplicateCount(str){\\n var letters = str.toLowerCase();\\n var duplicates = [];\\n for (let i=0; i {\\n let j = str2.findIndex((el2) => el2 === el);\\n if (j >= 0) {\\n str2.splice(j,1);\\n } else {\\n str1Only++;\\n }\\n });\\n \\n return str1Only + str2.length;\\n}\",\n \"function diffCount (input1, input2) {\\n let count = 0;\\n for (let i = 0; i < input1.length; i++) {\\n if (input1[i] !== input2[i]) count++;\\n if (count > 1) break;\\n };\\n //console.log(count);\\n return count;\\n}\",\n \"function singleLetterCount(str1, str2) {\\r\\n let count = 0\\r\\n\\r\\n for (i = 0; i < str1.length; i++) {\\r\\n // console.log(str1[i].toUpperCase());\\r\\n if (str1[i].toUpperCase().indexOf(str2.toUpperCase()) != -1) {\\r\\n count++\\r\\n }\\r\\n // console.log(count)\\r\\n }\\r\\n console.log(count)\\r\\n\\r\\n}\",\n \"function characterFrequency (string) {\\n\\n var answerArray = [];\\n var trackerstring = \\\"\\\"\\n for (var i = 0; i < string.length; i ++) {\\n if (trackerstring.includes(string[i]) === false) {\\n trackerstring += string[i]\\n var counter = 0\\n for (var k = 0; k < string.length; k ++) {\\n if (string[i] === string[k]) {\\n counter ++\\n }\\n \\n }\\n var holderArray = [string[i], counter];\\n if (!answerArray.includes(holderArray)) {\\n answerArray.push(holderArray);\\n }\\n }\\n }\\n \\n answerArray.sort(compareSecondColumn);\\n\\nfunction compareSecondColumn(a, b) {\\n if (a[1] === b[1]) {\\n return (a[0] > b[0]) ? 1 : -1;\\n }\\n else {\\n return (a[1] > b[1]) ? -1 : 1;\\n }\\n}\\n \\n return answerArray;\\n}\",\n \"function test(str) {\\n const arr = str.split(' ');\\n let sum = 0;\\n let wordValue = 0;\\n let valueableWord;\\n\\n arr.forEach(word => {\\n for(let i = 0; i < word.length; i++) {\\n sum += word.charCodeAt(i) - 96;\\n }\\n\\n if(sum > wordValue) {\\n wordValue = sum;\\n valueableWord = word;\\n }\\n \\n sum = 0;\\n \\n });\\n\\n console.log(valueableWord);\\n}\",\n \"function fullStringDistance(a, b) {\\n var aLength = a.length;\\n var bLength = b.length;\\n var table = [];\\n\\n if (!aLength) {\\n return bLength;\\n }\\n if (!bLength) {\\n return aLength;\\n }\\n\\n // Initialize the table axes:\\n //\\n // 0 1 2 3 4 ... bLength\\n // 1\\n // 2\\n //\\n // ...\\n //\\n // aLength\\n //\\n for (var x = 0; x <= aLength; ++x) {\\n table[x] = [x];\\n }\\n for (var y = 0; y <= bLength; ++y) {\\n table[0][y] = y;\\n }\\n\\n // Populate the rest of the table with a dynamic programming algorithm.\\n for (var _x2 = 1; _x2 <= aLength; ++_x2) {\\n for (var _y2 = 1; _y2 <= bLength; ++_y2) {\\n table[_x2][_y2] = a[_x2 - 1] === b[_y2 - 1] ? table[_x2 - 1][_y2 - 1] : 1 + Math.min(table[_x2 - 1][_y2], // Substitution,\\n table[_x2][_y2 - 1], // insertion,\\n table[_x2 - 1][_y2 - 1]); // and deletion.\\n }\\n }\\n\\n return table[aLength][bLength];\\n}\",\n \"function checkAnagramWithTimeComplexity(str1, str2) {\\n str1 = str1.toLowerCase();\\n str2 = str2.toLowerCase();\\n if (str1.length !== str2.length) return false\\n let counting = {}\\n for (let c of str1) {\\n counting[c] = (counting[c] + 1) || 1;\\n }\\n for (let c of str2) {\\n if (counting[c]) {\\n --counting[c];\\n }\\n else {\\n return false;\\n }\\n }\\n return true;\\n}\",\n \"function betterTestForPermutation(str1, str2) {\\n\\n /* Remove whitespace */\\n str1 = str1.trim();\\n str2 = str2.trim();\\n\\n /* Test to see if the strings are of the same length */\\n if(str1.length != str2.length) {\\n return false;\\n }\\n\\n /* Create arrays to hold 0s for the 128 ascii character set */\\n let arr1 = Array(128);\\n let arr2 = Array(128);\\n\\n arr1.fill(0);\\n arr2.fill(0);\\n\\n /* Go through strings, convert to ascii, and increment array position */\\n for(let i = 0; i < str1.length && i < str2.length; i++) {\\n\\n let n = str1.charCodeAt(i);\\n let o = str2.charCodeAt(i);\\n\\n arr1[n]++;\\n arr2[o]++;\\n }\\n\\n /* Compare both arrays to each other */\\n for(let i = 0; i < arr1.length; i++) {\\n if(arr1[i] !== arr2[i]) {\\n return false;\\n }\\n } return true;\\n}\",\n \"function fourthAnagram(str1, str2) {\\n let letterSums = {};\\n\\n // If we do the exact same subractions for each letter in\\n // str2 as we do additions for str1, letter_sums will all be 0.\\n str1.split(\\\"\\\").forEach((e) => (letterSums[e] = (letterSums[e] || 0) + 1));\\n str2.split(\\\"\\\").forEach((e) => (letterSums[e] = (letterSums[e] || 0) - 1));\\n\\n // It's a zero-sum game!\\n return Object.values(letterSums).every((sum) => sum === 0);\\n}\",\n \"function checkPermutation(str1, str2) {\\n // Base case - string length doesn't match\\n if (str1.length != str2.length) {\\n console.log(\\\"String length don't match\\\")\\n return false;\\n }\\n\\n // Create a hash map to hold the mapping\\n var hashMap = new Map();\\n\\n // Iterate through 1st string, storing counts into the hash\\n for (var i = 0; i < str1.length; ++i) {\\n // If the hash map has the character, update value by 1\\n if (hashMap.has(str1[i])) {\\n hashMap.set(str1[i], hashMap.get(str1[i])+1);\\n }\\n // Otherwise, set the hash map\\n else {\\n hashMap.set(str1[i], 1);\\n }\\n }\\n\\n // Iterate through 2nd string, removing counts from the hash\\n for (var i = 0; i < str2.length; ++i) {\\n // If the character exists, reduce value by 1\\n if (hashMap.has(str2[i])) {\\n hashMap.set(str2[i], hashMap.get(str2[i])-1);\\n }\\n // If the character doesn't exist, 2nd string isn't a permutation\\n else {\\n console.log(\\\"Characters don't match\\\")\\n return false;\\n }\\n }\\n console.log(\\\"Permutation matched\\\")\\n return true;\\n}\",\n \"function scramble(str1, str2) {\\n let letterCount = 0\\n\\n for (i = 0; i < str2.length; i++) {\\n if (str1.includes(str2[i])) {\\n letterCount += 1\\n str1 = str1.slice(0, str1.indexOf(str2[i])) + str1.slice(str1.indexOf(str2[i]) + 1)\\n }\\n }\\n\\n return letterCount === str2.length ? true : false\\n}\",\n \"function compare( word, guess ) { // DO NOT MODIFY\\n\\nlet count = 0;\\nlet word1 = word.toUpperCase();\\nlet word2 = guess.toUpperCase();\\n for(let i = 0; i < word1.length; i++){\\n let word2Index = word2.indexOf(word1[i]);\\n if(word2Index >= 0){\\n word2 = word2.replace(word2.charAt(word2ndex),\\\"\\\");\\n count++;\\n }\\n }\\n return count; \\n}\",\n \"function checkPermutationsHash(str1, str2) {\\n if (typeof str1 !== \\\"string\\\" || typeof str2 !== \\\"string\\\") {\\n throw new Error(\\\"Please pass two strings\\\");\\n }\\n\\n var str1Characters = {};\\n for (var i = 0; i < str1.length; i++) {\\n str1Characters[str1[i]] = str1Characters[str1[i]] || 0;\\n str1Characters[str1[i]]++;\\n }\\n\\n for (var i = 0; i < str2.length; i++) {\\n var character = str2[i];\\n if (!(character in str1Characters) || str1Characters[character] === 0) {\\n return false;\\n } else {\\n str1Characters[character]--;\\n }\\n }\\n\\n for (var i = 0; i < str1.length; i++) {\\n var character = str1[i];\\n if (str1Characters[character] !== 0) {\\n return false;\\n }\\n }\\n\\n return true;\\n}\",\n \"function validAnagram(first,second){\\n if(first.length!== second.length){\\n return false;\\n }\\n \\n //Create an object \\n const lookup = {};\\n\\n //Loop through first string\\n for(let i =0;i= 0) {\r\n\r\n if (e.indexOf(\"MSIE 6.0\") > 0) flag = true;\r\n if (e.indexOf(\"MSIE 7.0\") > 0) flag = true;\r\n if (e.indexOf(\"MSIE 8.0\") > 0) flag = true;\r\n\r\n }\r\n\r\n\r\n return flag;\r\n\r\n }","static transient final private protected internal function m40() {}","static final private protected internal function m103() {}","function Ze(){if(ea)t.innerHTML=ha;else if(ia)t.innerHTML=ia;$e();eb&&hb.call(window,eb);nb();eb=-1;bb=[];cb={};ac=j;Zb=0;$b=[];w.Cc();Bb=0;Cb=[];document.documentElement.className=\"js no-treesaver\";document.documentElement.style.display=\"block\"}","function compIE(){\r\n\tvar agent = navigator.userAgent;\r\n\tif(agent.indexOf(\"MSIE 7.0\") > -1 || agent.indexOf(\"MSIE 8.0\") > - 1 || agent.indexOf(\"Trident 4.0\") > -1 || document.documentMode && document.documentMode <= 5)\r\n\t\treturn true;\r\n\treturn false;\r\n}","transient private public function m183() {}","function isFirefox(){\n\treturn navigator.userAgent.indexOf('Gecko/')>0;\n}","function css_browser_selector(e){var r=e.toLowerCase(),i=function(e){return r.indexOf(e)>-1},t=\"gecko\",o=\"webkit\",a=\"safari\",n=\"chrome\",s=\"opera\",d=\"mobile\",c=0,l=window.devicePixelRatio?(window.devicePixelRatio+\"\").replace(\".\",\"_\"):\"1\",w=[!/opera|webtv/.test(r)&&/msie\\s(\\d+)/.test(r)&&(c=1*RegExp.$1)?\"ie ie\"+c+(6==c||7==c?\" ie67 ie678 ie6789\":8==c?\" ie678 ie6789\":9==c?\" ie6789 ie9m\":c>9?\" ie9m\":\"\"):/trident\\/\\d+.*?;\\s*rv:(\\d+)\\.(\\d+)\\)/.test(r)&&(c=[RegExp.$1,RegExp.$2])?\"ie ie\"+c[0]+\" ie\"+c[0]+\"_\"+c[1]+\" ie9m\":/firefox\\/(\\d+)\\.(\\d+)/.test(r)&&(re=RegExp)?t+\" ff ff\"+re.$1+\" ff\"+re.$1+\"_\"+re.$2:i(\"gecko/\")?t:i(s)?s+(/version\\/(\\d+)/.test(r)?\" \"+s+RegExp.$1:/opera(\\s|\\/)(\\d+)/.test(r)?\" \"+s+RegExp.$2:\"\"):i(\"konqueror\")?\"konqueror\":i(\"blackberry\")?d+\" blackberry\":i(n)||i(\"crios\")?o+\" \"+n:i(\"iron\")?o+\" iron\":!i(\"cpu os\")&&i(\"applewebkit/\")?o+\" \"+a:i(\"mozilla/\")?t:\"\",i(\"android\")?d+\" android\":\"\",i(\"tablet\")?\"tablet\":\"\",i(\"j2me\")?d+\" j2me\":i(\"ipad; u; cpu os\")?d+\" chrome android tablet\":i(\"ipad;u;cpu os\")?d+\" chromedef android tablet\":i(\"iphone\")?d+\" ios iphone\":i(\"ipod\")?d+\" ios ipod\":i(\"ipad\")?d+\" ios ipad tablet\":i(\"mac\")?\"mac\":i(\"darwin\")?\"mac\":i(\"webtv\")?\"webtv\":i(\"win\")?\"win\"+(i(\"windows nt 6.0\")?\" vista\":\"\"):i(\"freebsd\")?\"freebsd\":i(\"x11\")||i(\"linux\")?\"linux\":\"\",\"1\"!=l?\" retina ratio\"+l:\"\",\"js portrait\"].join(\" \");return window.jQuery&&!window.jQuery.browser&&(window.jQuery.browser=c?{msie:1,version:c}:{}),w}","function V(a){return fa.isWindow(a)?a:9===a.nodeType&&a.defaultView}","function getElementClass(){if(typeof HTMLElement!=='function'){// case of Safari\nvar _BaseElement=function _BaseElement(){};_BaseElement.prototype=document.createElement('div');return _BaseElement;}else{return HTMLElement;}}","function s(e){\n// Support: real iOS 8.2 only (not reproducible in simulator)\n// `in` check used to prevent JIT error (gh-2145)\n// hasOwn isn't used here due to false negatives\n// regarding Nodelist length in IE\nvar t=!!e&&\"length\"in e&&e.length,n=me.type(e);return\"function\"!==n&&!me.isWindow(e)&&(\"array\"===n||0===t||\"number\"==typeof t&&0>8&255,Ie[De++]^=e>>16&255,Ie[De++]^=e>>24&255,De>=Le&&(De-=Le)}((new Date).getTime())}","static private protected public internal function m117() {}","static transient final protected function m44() {}","function getBrowser (){\nif(jQuery.uaMatch(navigator.userAgent).browser == 'webkit'){\nvar userAgent = navigator.userAgent.toLowerCase();\nif ( userAgent.indexOf(\"chrome\") === -1 ) { \nreturn 'safari';\n}\nelse {\nreturn jQuery.uaMatch(navigator.userAgent).browser;\n}\n}\n}","function yst_overrideElemFunction() {\n\treturn;\n}","function IEcompatibility() {\n\t// Only do anything if this is IE\n\tif(Browser.ie){\n\t\tvar __fix = $$(\"#kbbcode-size-options\", \"#kbbcode-size-options span\", \n\t\t\t\t\t\t\"#kbbcode-colortable\", \"#kbbcode-colortable td\");\n\t\tif (__fix) {\n\t\t\t__fix.setProperty('unselectable', 'on');\n\t\t}\n\t}\n}","static protected internal function m125() {}","function browser() {\n\t\n\tvar isOpera = !!(window.opera && window.opera.version); // Opera 8.0+\n\tvar isFirefox = testCSS('MozBoxSizing'); // FF 0.8+\n\tvar isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;\n\t // At least Safari 3+: \"[object HTMLElementConstructor]\"\n\tvar isChrome = !isSafari && testCSS('WebkitTransform'); // Chrome 1+\n\t//var isIE = /*@cc_on!@*/false || testCSS('msTransform'); // At least IE6\n\n\tfunction testCSS(prop) {\n\t return prop in document.documentElement.style;\n\t}\n\t\n\tif (isOpera) {\n\t\t\n\t\treturn false;\n\t\t\n\t}else if (isSafari || isChrome) {\n\t\t\n\t\treturn true;\n\t\t\n\t} else {\n\t\t\n\t\treturn false;\n\t\t\n\t}\n\t\n}","function i(e){return null==e}","function lpPatch_IE8(){\n\tif (typeof Array.prototype.indexOf !== 'function') {\n\t\tArray.prototype.indexOf = function(obj, start) {\n\t\t for (var i = (start || 0), j = this.length; i < j; i++) {\n\t\t if (this[i] === obj) { return i; }\n\t\t }\n\t\t return -1;\n\t\t} \n\t}\n\t\n\tif(typeof String.prototype.trim !== 'function') {\n\t\tString.prototype.trim = function() {\n\t \treturn this.replace(/^\\s+|\\s+$/g, ''); \n\t\t}\n\t}\t\n}","static transient private public function m56() {}","transient final private public function m168() {}","function less_IE8() {\n if (/msie [1-8]{1}[^0-9]/.test(navigator.userAgent.toLowerCase())) {\n return true;\n }\n}","function ie(a){this.ra=a}","get charset() {\n return true;\n\t}","static final private public function m104() {}","static transient final private protected public internal function m39() {}","function browser(){}","function browser(){}","function getElementAbsolutePos(element) {\n var res = new Object();\n res.x = 0;\n res.y = 0;\n if (element !== null) {\n if (element.getBoundingClientRect) {\n var viewportElement = document.documentElement;\n var box = element.getBoundingClientRect();\n var scrollLeft = viewportElement.scrollLeft;\n var scrollTop = viewportElement.scrollTop;\n\n res.x = box.left + scrollLeft;\n res.y = box.top + scrollTop;\n\n }\n else { //for old browsers\n res.x = element.offsetLeft;\n res.y = element.offsetTop;\n\n var parentNode = element.parentNode;\n var borderWidth = null;\n\n while (offsetParent != null) {\n res.x += offsetParent.offsetLeft;\n res.y += offsetParent.offsetTop;\n\n var parentTagName =\n offsetParent.tagName.toLowerCase();\n\n if ((__isIEOld && parentTagName != \"table\") ||\n ((__isFireFoxNew || __isChrome) &&\n parentTagName == \"td\")) {\n borderWidth = kGetBorderWidth\n (offsetParent);\n res.x += borderWidth.left;\n res.y += borderWidth.top;\n }\n\n if (offsetParent != document.body &&\n offsetParent != document.documentElement) {\n res.x -= offsetParent.scrollLeft;\n res.y -= offsetParent.scrollTop;\n }\n\n\n //next lines are necessary to fix the problem\n //with offsetParent\n if (!__isIE && !__isOperaOld || __isIENew) {\n while (offsetParent != parentNode &&\n parentNode !== null) {\n res.x -= parentNode.scrollLeft;\n res.y -= parentNode.scrollTop;\n if (__isFireFoxOld || __isWebKit) {\n borderWidth =\n kGetBorderWidth(parentNode);\n res.x += borderWidth.left;\n res.y += borderWidth.top;\n }\n parentNode = parentNode.parentNode;\n }\n }\n\n parentNode = offsetParent.parentNode;\n offsetParent = offsetParent.offsetParent;\n }\n }\n }\n return res;\n}","function isCompatible()\n{\n\tvar ua = window.navigator.userAgent;\n\tvar msie = ua.indexOf(\"MSIE \");\n\tvar isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);\n\tvar isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);\n\tvar isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;\n\tvar isMSIE = ((msie > 0) || (!!navigator.userAgent.match(/Trident.*rv\\:11\\./)));\n\t\n\tif(isChrome || isSafari)\n\t\treturn true;\n\telse\n\t\treturn false;\n}","function ie() {\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./))\n return true;\n else\n return false;\n}","function Le(){!function t(e){Ie[De++]^=255&e,Ie[De++]^=e>>8&255,Ie[De++]^=e>>16&255,Ie[De++]^=e>>24&255,De>=Ue&&(De-=Ue)}((new Date).getTime())}","function DWRUtil() { }","onload() {}","__previnit(){}","function preIE10Check() {\n if (window.attachEvent && !window.navigator.msPointerEnabled) {\n return true;\n } else {\n return false;\n }\n }","function isIE() {\n return navigator.userAgent.toLowerCase().indexOf(\"trident\") > 0;\n }","function isIE() {\n return navigator.userAgent.toLowerCase().indexOf(\"trident\") > 0;\n }","function W(){var a=HTMLElement.call(this)||this;a.g=null;a.ba=null;a.N=null;a.l=null;a.A=null;a.B=null;a.I=null;a.J=null;a.w=\"\";a.s=\"\";a.c=[];a.h=-1;a.i=new G;a.O=new G;a.W=!1;a.Z=!1;a.F=null;a.G=null;a.$=!1;a.m=new Bb;return a}","function isMozilla()\n{\n return __isMozilla;\n}","function TMP() {\n return;\n }","function isDOMRequired()\n{\n\treturn true;\n}","IE ():boolean {\n\n\t\treturn this.agent.match(/Trident/i) ? true : false;\n\t}","function fixIESelect() {\n return false;\n }","function isWebKit(){\n\treturn navigator.userAgent.indexOf('WebKit/')>0;\n}","function isOldWebKit() {\n\t\t\t\tvar webKitChunks = navigator.userAgent.match(/WebKit\\/(\\d*)/);\n\t\t\t\treturn !!(webKitChunks && webKitChunks[1] < 536);\n\t\t\t}","function isOldWebKit() {\n\t\t\t\tvar webKitChunks = navigator.userAgent.match(/WebKit\\/(\\d*)/);\n\t\t\t\treturn !!(webKitChunks && webKitChunks[1] < 536);\n\t\t\t}","function isOldWebKit() {\n\t\t\t\tvar webKitChunks = navigator.userAgent.match(/WebKit\\/(\\d*)/);\n\t\t\t\treturn !!(webKitChunks && webKitChunks[1] < 536);\n\t\t\t}","isFull(){\n //Doesnt matter for javascript\n }","function vc_getElementAbsolutePos(elemID) { \n var element; \n if (typeof(elemID) == \"string\") { \n element = document.getElementById(elemID); \n } \n else { \n element = elemID; \n } \n \n var res = new Object(); \n res.x = 0; res.y = 0; \n if (element !== null) { \n res.x = element.offsetLeft; \n \n var offsetParent = element.offsetParent; \n var offsetParentTagName = offsetParent != null ? offsetParent.tagName.toLowerCase() : \"\"; \n \n if (__isIENew && offsetParentTagName == 'td') { \n res.y = element.scrollTop; \n } \n else { \n res.y = element.offsetTop; \n } \n \n var parentNode = element.parentNode; \n var borderWidth = null; \n \n while (offsetParent != null) { \n res.x += offsetParent.offsetLeft; \n res.y += offsetParent.offsetTop; \n \n var parentTagName = offsetParent.tagName.toLowerCase(); \n \n if ((__isIEOld && parentTagName != \"table\") || (__isFireFoxNew && parentTagName == \"td\") || __isChrome) { \n borderWidth = vc_getBorderWidth(offsetParent); \n res.x += borderWidth.left; \n res.y += borderWidth.top; \n } \n \n if (offsetParent != document.body && offsetParent != document.documentElement) { \n res.x -= offsetParent.scrollLeft; \n res.y -= offsetParent.scrollTop; \n } \n \n \n //next lines are necessary to fix the problem with offsetParent \n if (!__isIE && !__isOperaOld || __isIENew) { \n while (offsetParent != parentNode && parentNode !== null) { \n res.x -= parentNode.scrollLeft; \n res.y -= parentNode.scrollTop; \n if (__isFireFoxOld || __isWebKit) { \n borderWidth = vc_getBorderWidth(parentNode); \n res.x += borderWidth.left; \n res.y += borderWidth.top; \n } \n parentNode = parentNode.parentNode; \n } \n } \n \n parentNode = offsetParent.parentNode; \n offsetParent = offsetParent.offsetParent; \n } \n } \n return res; \n}","function xl_oDOMFeats( ) \n{\n\tif (document.images) \n\t{\n\t\tthis.isCSS = (document.body && document.body.style) ? true : false;\n\t\tthis.isW3C = (this.isCSS && document.getElementById) ? true : false;\n\t\tthis.isIE4 = (this.isCSS && document.all) ? true : false;\n\t\tthis.isNN4 = (document.layers) ? true : false;\n\t\tthis.isIE6CSS = (document.compatMode && document.compatMode.indexOf(\"CSS1\") >= 0) ? \n\t\ttrue : false;\n\t}\n}","function hackUserAgent(){\n if (navigator.userAgent.search('Firefox')!==-1)\n active='mouseup.webcrawler';\n}","function ea(){}","function isIE() { //ie?\n if (!!window.ActiveXObject || \"ActiveXObject\" in window)\n return true;\n else\n return false;\n}","function ieAjaxWorkaround(){\n return \"time='\"+new Date().getTime() + \"'\";\n}","function browser_detection(){\n\tif(navigator.appName == \"Netscape\"){\n\t\treturn \"NET\";\t\n\t}else{\n\t\treturn \"IE\";\n\t}\t\n}","function compatibility() {\n /* Logon */\n $('#title_settings').parent()\n .css('display', 'block')\n .css('postion', 'relative');\n\n $('#title_settings').css('postion', 'absulute')\n .css('width', '65px')\n .css('height','20px')\n .css('margin', '8px auto auto auto');\n }","function isBrowserIE () {\n var ua = window.navigator.userAgent\n var msie = ua.indexOf('MSIE ')\n var trident = ua.indexOf('Trident/')\n var edge = ua.indexOf('Edge/')\n if (msie > 0 || trident > 0 || edge > 0) {\n return true\n }\n }","static isBrowser() {\n return typeof window !== 'undefined';\n }","function getUsedResolutionFirefox() {\n return undefined;\n}","function getDeprElems()\n{\n // Structure of HTML 4.01 elements deprecated\n var deprElems = new Array(\"APPLET\", \"BASEFONT\", \"CENTER\", \"DIR\", \"FONT\", \"ISINDEX\", \"MENU\",\n \"S\", \"STRIKE\", \"U\", \"LISTING\", \"PLAINTEXT\", \"XMP\");\n return deprElems;\n}","function getT(){\r\n\tif(ie4)\r\n\t\tcontentT = document.all.content.style.pixelTop;\r\n\telse if(nn4)\r\n\t\tcontentT = document.contentClip.document.content.top;\r\n\telse if(dom)\r\n\t\tcontentT = parseInt(document.getElementById(\"content\").style.top);\r\n}","function e() {}","function getDeprStyleElems()\n{\n // Structure of HTML 4.01 layout elements deprecated\n var deprElems = new Array(\"BASEFONT\", \"CENTER\", \"FONT\", \"S\", \"STRIKE\", \"U\");\n return deprElems;\n}","function msieversion() {\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./)) { \n var ieVersion = parseInt(ua.substring(msie + 5, ua.indexOf(\".\", msie)));\n if (ieVersion === 9) {$('body').addClass('no-js ie' + ieVersion);}\n return ieVersion;\n }\n else { return false; }\n }","function msieversion() {\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\:11\\./)) { \n var ieVersion = parseInt(ua.substring(msie + 5, ua.indexOf(\".\", msie)));\n if (ieVersion === 9) {$('body').addClass('no-js ie' + ieVersion);}\n return ieVersion;\n }\n else { return false; }\n }","function isIE() {\n\t\t\treturn typeof attachEvent !== \"undefined\" && typeof addEventListener === \"undefined\";\n\t\t}"],"string":"[\n \"private internal function m248() {}\",\n \"protected internal function m252() {}\",\n \"private public function m246() {}\",\n \"transient private protected internal function m182() {}\",\n \"transient protected internal function m189() {}\",\n \"static final private internal function m106() {}\",\n \"transient private internal function m185() {}\",\n \"transient final protected internal function m174() {}\",\n \"static private internal function m121() {}\",\n \"static private protected internal function m118() {}\",\n \"transient final private protected internal function m167() {}\",\n \"function Re(e){return!0===Ie(e)&&\\\"[object Object]\\\"===Object.prototype.toString.call(e)}\",\n \"transient private protected public internal function m181() {}\",\n \"static transient final private internal function m43() {}\",\n \"function fixIeBug(e){return browser.msie?e.length-e.replace(/\\\\r*/g,\\\"\\\").length:0}\",\n \"static transient final protected internal function m47() {}\",\n \"transient final private internal function m170() {}\",\n \"static transient private protected internal function m55() {}\",\n \"function StupidBug() {}\",\n \"static transient final protected public internal function m46() {}\",\n \"static transient private protected public internal function m54() {}\",\n \"function index_browser_es_f() {}\",\n \"transient final private protected public internal function m166() {}\",\n \"function P(a){return _.isWindow(a)?a:9===a.nodeType&&a.defaultView}\",\n \"static transient private internal function m58() {}\",\n \"function isLowIE9() {\\r\\n var e = window.navigator.userAgent.toString().toUpperCase();\\r\\n var flag = false;\\r\\n if (e.indexOf(\\\"MSIE\\\") >= 0) {\\r\\n\\r\\n if (e.indexOf(\\\"MSIE 6.0\\\") > 0) flag = true;\\r\\n if (e.indexOf(\\\"MSIE 7.0\\\") > 0) flag = true;\\r\\n if (e.indexOf(\\\"MSIE 8.0\\\") > 0) flag = true;\\r\\n\\r\\n }\\r\\n\\r\\n\\r\\n return flag;\\r\\n\\r\\n }\",\n \"static transient final private protected internal function m40() {}\",\n \"static final private protected internal function m103() {}\",\n \"function Ze(){if(ea)t.innerHTML=ha;else if(ia)t.innerHTML=ia;$e();eb&&hb.call(window,eb);nb();eb=-1;bb=[];cb={};ac=j;Zb=0;$b=[];w.Cc();Bb=0;Cb=[];document.documentElement.className=\\\"js no-treesaver\\\";document.documentElement.style.display=\\\"block\\\"}\",\n \"function compIE(){\\r\\n\\tvar agent = navigator.userAgent;\\r\\n\\tif(agent.indexOf(\\\"MSIE 7.0\\\") > -1 || agent.indexOf(\\\"MSIE 8.0\\\") > - 1 || agent.indexOf(\\\"Trident 4.0\\\") > -1 || document.documentMode && document.documentMode <= 5)\\r\\n\\t\\treturn true;\\r\\n\\treturn false;\\r\\n}\",\n \"transient private public function m183() {}\",\n \"function isFirefox(){\\n\\treturn navigator.userAgent.indexOf('Gecko/')>0;\\n}\",\n \"function css_browser_selector(e){var r=e.toLowerCase(),i=function(e){return r.indexOf(e)>-1},t=\\\"gecko\\\",o=\\\"webkit\\\",a=\\\"safari\\\",n=\\\"chrome\\\",s=\\\"opera\\\",d=\\\"mobile\\\",c=0,l=window.devicePixelRatio?(window.devicePixelRatio+\\\"\\\").replace(\\\".\\\",\\\"_\\\"):\\\"1\\\",w=[!/opera|webtv/.test(r)&&/msie\\\\s(\\\\d+)/.test(r)&&(c=1*RegExp.$1)?\\\"ie ie\\\"+c+(6==c||7==c?\\\" ie67 ie678 ie6789\\\":8==c?\\\" ie678 ie6789\\\":9==c?\\\" ie6789 ie9m\\\":c>9?\\\" ie9m\\\":\\\"\\\"):/trident\\\\/\\\\d+.*?;\\\\s*rv:(\\\\d+)\\\\.(\\\\d+)\\\\)/.test(r)&&(c=[RegExp.$1,RegExp.$2])?\\\"ie ie\\\"+c[0]+\\\" ie\\\"+c[0]+\\\"_\\\"+c[1]+\\\" ie9m\\\":/firefox\\\\/(\\\\d+)\\\\.(\\\\d+)/.test(r)&&(re=RegExp)?t+\\\" ff ff\\\"+re.$1+\\\" ff\\\"+re.$1+\\\"_\\\"+re.$2:i(\\\"gecko/\\\")?t:i(s)?s+(/version\\\\/(\\\\d+)/.test(r)?\\\" \\\"+s+RegExp.$1:/opera(\\\\s|\\\\/)(\\\\d+)/.test(r)?\\\" \\\"+s+RegExp.$2:\\\"\\\"):i(\\\"konqueror\\\")?\\\"konqueror\\\":i(\\\"blackberry\\\")?d+\\\" blackberry\\\":i(n)||i(\\\"crios\\\")?o+\\\" \\\"+n:i(\\\"iron\\\")?o+\\\" iron\\\":!i(\\\"cpu os\\\")&&i(\\\"applewebkit/\\\")?o+\\\" \\\"+a:i(\\\"mozilla/\\\")?t:\\\"\\\",i(\\\"android\\\")?d+\\\" android\\\":\\\"\\\",i(\\\"tablet\\\")?\\\"tablet\\\":\\\"\\\",i(\\\"j2me\\\")?d+\\\" j2me\\\":i(\\\"ipad; u; cpu os\\\")?d+\\\" chrome android tablet\\\":i(\\\"ipad;u;cpu os\\\")?d+\\\" chromedef android tablet\\\":i(\\\"iphone\\\")?d+\\\" ios iphone\\\":i(\\\"ipod\\\")?d+\\\" ios ipod\\\":i(\\\"ipad\\\")?d+\\\" ios ipad tablet\\\":i(\\\"mac\\\")?\\\"mac\\\":i(\\\"darwin\\\")?\\\"mac\\\":i(\\\"webtv\\\")?\\\"webtv\\\":i(\\\"win\\\")?\\\"win\\\"+(i(\\\"windows nt 6.0\\\")?\\\" vista\\\":\\\"\\\"):i(\\\"freebsd\\\")?\\\"freebsd\\\":i(\\\"x11\\\")||i(\\\"linux\\\")?\\\"linux\\\":\\\"\\\",\\\"1\\\"!=l?\\\" retina ratio\\\"+l:\\\"\\\",\\\"js portrait\\\"].join(\\\" \\\");return window.jQuery&&!window.jQuery.browser&&(window.jQuery.browser=c?{msie:1,version:c}:{}),w}\",\n \"function V(a){return fa.isWindow(a)?a:9===a.nodeType&&a.defaultView}\",\n \"function getElementClass(){if(typeof HTMLElement!=='function'){// case of Safari\\nvar _BaseElement=function _BaseElement(){};_BaseElement.prototype=document.createElement('div');return _BaseElement;}else{return HTMLElement;}}\",\n \"function s(e){\\n// Support: real iOS 8.2 only (not reproducible in simulator)\\n// `in` check used to prevent JIT error (gh-2145)\\n// hasOwn isn't used here due to false negatives\\n// regarding Nodelist length in IE\\nvar t=!!e&&\\\"length\\\"in e&&e.length,n=me.type(e);return\\\"function\\\"!==n&&!me.isWindow(e)&&(\\\"array\\\"===n||0===t||\\\"number\\\"==typeof t&&0>8&255,Ie[De++]^=e>>16&255,Ie[De++]^=e>>24&255,De>=Le&&(De-=Le)}((new Date).getTime())}\",\n \"static private protected public internal function m117() {}\",\n \"static transient final protected function m44() {}\",\n \"function getBrowser (){\\nif(jQuery.uaMatch(navigator.userAgent).browser == 'webkit'){\\nvar userAgent = navigator.userAgent.toLowerCase();\\nif ( userAgent.indexOf(\\\"chrome\\\") === -1 ) { \\nreturn 'safari';\\n}\\nelse {\\nreturn jQuery.uaMatch(navigator.userAgent).browser;\\n}\\n}\\n}\",\n \"function yst_overrideElemFunction() {\\n\\treturn;\\n}\",\n \"function IEcompatibility() {\\n\\t// Only do anything if this is IE\\n\\tif(Browser.ie){\\n\\t\\tvar __fix = $$(\\\"#kbbcode-size-options\\\", \\\"#kbbcode-size-options span\\\", \\n\\t\\t\\t\\t\\t\\t\\\"#kbbcode-colortable\\\", \\\"#kbbcode-colortable td\\\");\\n\\t\\tif (__fix) {\\n\\t\\t\\t__fix.setProperty('unselectable', 'on');\\n\\t\\t}\\n\\t}\\n}\",\n \"static protected internal function m125() {}\",\n \"function browser() {\\n\\t\\n\\tvar isOpera = !!(window.opera && window.opera.version); // Opera 8.0+\\n\\tvar isFirefox = testCSS('MozBoxSizing'); // FF 0.8+\\n\\tvar isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;\\n\\t // At least Safari 3+: \\\"[object HTMLElementConstructor]\\\"\\n\\tvar isChrome = !isSafari && testCSS('WebkitTransform'); // Chrome 1+\\n\\t//var isIE = /*@cc_on!@*/false || testCSS('msTransform'); // At least IE6\\n\\n\\tfunction testCSS(prop) {\\n\\t return prop in document.documentElement.style;\\n\\t}\\n\\t\\n\\tif (isOpera) {\\n\\t\\t\\n\\t\\treturn false;\\n\\t\\t\\n\\t}else if (isSafari || isChrome) {\\n\\t\\t\\n\\t\\treturn true;\\n\\t\\t\\n\\t} else {\\n\\t\\t\\n\\t\\treturn false;\\n\\t\\t\\n\\t}\\n\\t\\n}\",\n \"function i(e){return null==e}\",\n \"function lpPatch_IE8(){\\n\\tif (typeof Array.prototype.indexOf !== 'function') {\\n\\t\\tArray.prototype.indexOf = function(obj, start) {\\n\\t\\t for (var i = (start || 0), j = this.length; i < j; i++) {\\n\\t\\t if (this[i] === obj) { return i; }\\n\\t\\t }\\n\\t\\t return -1;\\n\\t\\t} \\n\\t}\\n\\t\\n\\tif(typeof String.prototype.trim !== 'function') {\\n\\t\\tString.prototype.trim = function() {\\n\\t \\treturn this.replace(/^\\\\s+|\\\\s+$/g, ''); \\n\\t\\t}\\n\\t}\\t\\n}\",\n \"static transient private public function m56() {}\",\n \"transient final private public function m168() {}\",\n \"function less_IE8() {\\n if (/msie [1-8]{1}[^0-9]/.test(navigator.userAgent.toLowerCase())) {\\n return true;\\n }\\n}\",\n \"function ie(a){this.ra=a}\",\n \"get charset() {\\n return true;\\n\\t}\",\n \"static final private public function m104() {}\",\n \"static transient final private protected public internal function m39() {}\",\n \"function browser(){}\",\n \"function browser(){}\",\n \"function getElementAbsolutePos(element) {\\n var res = new Object();\\n res.x = 0;\\n res.y = 0;\\n if (element !== null) {\\n if (element.getBoundingClientRect) {\\n var viewportElement = document.documentElement;\\n var box = element.getBoundingClientRect();\\n var scrollLeft = viewportElement.scrollLeft;\\n var scrollTop = viewportElement.scrollTop;\\n\\n res.x = box.left + scrollLeft;\\n res.y = box.top + scrollTop;\\n\\n }\\n else { //for old browsers\\n res.x = element.offsetLeft;\\n res.y = element.offsetTop;\\n\\n var parentNode = element.parentNode;\\n var borderWidth = null;\\n\\n while (offsetParent != null) {\\n res.x += offsetParent.offsetLeft;\\n res.y += offsetParent.offsetTop;\\n\\n var parentTagName =\\n offsetParent.tagName.toLowerCase();\\n\\n if ((__isIEOld && parentTagName != \\\"table\\\") ||\\n ((__isFireFoxNew || __isChrome) &&\\n parentTagName == \\\"td\\\")) {\\n borderWidth = kGetBorderWidth\\n (offsetParent);\\n res.x += borderWidth.left;\\n res.y += borderWidth.top;\\n }\\n\\n if (offsetParent != document.body &&\\n offsetParent != document.documentElement) {\\n res.x -= offsetParent.scrollLeft;\\n res.y -= offsetParent.scrollTop;\\n }\\n\\n\\n //next lines are necessary to fix the problem\\n //with offsetParent\\n if (!__isIE && !__isOperaOld || __isIENew) {\\n while (offsetParent != parentNode &&\\n parentNode !== null) {\\n res.x -= parentNode.scrollLeft;\\n res.y -= parentNode.scrollTop;\\n if (__isFireFoxOld || __isWebKit) {\\n borderWidth =\\n kGetBorderWidth(parentNode);\\n res.x += borderWidth.left;\\n res.y += borderWidth.top;\\n }\\n parentNode = parentNode.parentNode;\\n }\\n }\\n\\n parentNode = offsetParent.parentNode;\\n offsetParent = offsetParent.offsetParent;\\n }\\n }\\n }\\n return res;\\n}\",\n \"function isCompatible()\\n{\\n\\tvar ua = window.navigator.userAgent;\\n\\tvar msie = ua.indexOf(\\\"MSIE \\\");\\n\\tvar isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);\\n\\tvar isSafari = /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor);\\n\\tvar isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;\\n\\tvar isMSIE = ((msie > 0) || (!!navigator.userAgent.match(/Trident.*rv\\\\:11\\\\./)));\\n\\t\\n\\tif(isChrome || isSafari)\\n\\t\\treturn true;\\n\\telse\\n\\t\\treturn false;\\n}\",\n \"function ie() {\\n var ua = window.navigator.userAgent;\\n var msie = ua.indexOf(\\\"MSIE \\\");\\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\\\:11\\\\./))\\n return true;\\n else\\n return false;\\n}\",\n \"function Le(){!function t(e){Ie[De++]^=255&e,Ie[De++]^=e>>8&255,Ie[De++]^=e>>16&255,Ie[De++]^=e>>24&255,De>=Ue&&(De-=Ue)}((new Date).getTime())}\",\n \"function DWRUtil() { }\",\n \"onload() {}\",\n \"__previnit(){}\",\n \"function preIE10Check() {\\n if (window.attachEvent && !window.navigator.msPointerEnabled) {\\n return true;\\n } else {\\n return false;\\n }\\n }\",\n \"function isIE() {\\n return navigator.userAgent.toLowerCase().indexOf(\\\"trident\\\") > 0;\\n }\",\n \"function isIE() {\\n return navigator.userAgent.toLowerCase().indexOf(\\\"trident\\\") > 0;\\n }\",\n \"function W(){var a=HTMLElement.call(this)||this;a.g=null;a.ba=null;a.N=null;a.l=null;a.A=null;a.B=null;a.I=null;a.J=null;a.w=\\\"\\\";a.s=\\\"\\\";a.c=[];a.h=-1;a.i=new G;a.O=new G;a.W=!1;a.Z=!1;a.F=null;a.G=null;a.$=!1;a.m=new Bb;return a}\",\n \"function isMozilla()\\n{\\n return __isMozilla;\\n}\",\n \"function TMP() {\\n return;\\n }\",\n \"function isDOMRequired()\\n{\\n\\treturn true;\\n}\",\n \"IE ():boolean {\\n\\n\\t\\treturn this.agent.match(/Trident/i) ? true : false;\\n\\t}\",\n \"function fixIESelect() {\\n return false;\\n }\",\n \"function isWebKit(){\\n\\treturn navigator.userAgent.indexOf('WebKit/')>0;\\n}\",\n \"function isOldWebKit() {\\n\\t\\t\\t\\tvar webKitChunks = navigator.userAgent.match(/WebKit\\\\/(\\\\d*)/);\\n\\t\\t\\t\\treturn !!(webKitChunks && webKitChunks[1] < 536);\\n\\t\\t\\t}\",\n \"function isOldWebKit() {\\n\\t\\t\\t\\tvar webKitChunks = navigator.userAgent.match(/WebKit\\\\/(\\\\d*)/);\\n\\t\\t\\t\\treturn !!(webKitChunks && webKitChunks[1] < 536);\\n\\t\\t\\t}\",\n \"function isOldWebKit() {\\n\\t\\t\\t\\tvar webKitChunks = navigator.userAgent.match(/WebKit\\\\/(\\\\d*)/);\\n\\t\\t\\t\\treturn !!(webKitChunks && webKitChunks[1] < 536);\\n\\t\\t\\t}\",\n \"isFull(){\\n //Doesnt matter for javascript\\n }\",\n \"function vc_getElementAbsolutePos(elemID) { \\n var element; \\n if (typeof(elemID) == \\\"string\\\") { \\n element = document.getElementById(elemID); \\n } \\n else { \\n element = elemID; \\n } \\n \\n var res = new Object(); \\n res.x = 0; res.y = 0; \\n if (element !== null) { \\n res.x = element.offsetLeft; \\n \\n var offsetParent = element.offsetParent; \\n var offsetParentTagName = offsetParent != null ? offsetParent.tagName.toLowerCase() : \\\"\\\"; \\n \\n if (__isIENew && offsetParentTagName == 'td') { \\n res.y = element.scrollTop; \\n } \\n else { \\n res.y = element.offsetTop; \\n } \\n \\n var parentNode = element.parentNode; \\n var borderWidth = null; \\n \\n while (offsetParent != null) { \\n res.x += offsetParent.offsetLeft; \\n res.y += offsetParent.offsetTop; \\n \\n var parentTagName = offsetParent.tagName.toLowerCase(); \\n \\n if ((__isIEOld && parentTagName != \\\"table\\\") || (__isFireFoxNew && parentTagName == \\\"td\\\") || __isChrome) { \\n borderWidth = vc_getBorderWidth(offsetParent); \\n res.x += borderWidth.left; \\n res.y += borderWidth.top; \\n } \\n \\n if (offsetParent != document.body && offsetParent != document.documentElement) { \\n res.x -= offsetParent.scrollLeft; \\n res.y -= offsetParent.scrollTop; \\n } \\n \\n \\n //next lines are necessary to fix the problem with offsetParent \\n if (!__isIE && !__isOperaOld || __isIENew) { \\n while (offsetParent != parentNode && parentNode !== null) { \\n res.x -= parentNode.scrollLeft; \\n res.y -= parentNode.scrollTop; \\n if (__isFireFoxOld || __isWebKit) { \\n borderWidth = vc_getBorderWidth(parentNode); \\n res.x += borderWidth.left; \\n res.y += borderWidth.top; \\n } \\n parentNode = parentNode.parentNode; \\n } \\n } \\n \\n parentNode = offsetParent.parentNode; \\n offsetParent = offsetParent.offsetParent; \\n } \\n } \\n return res; \\n}\",\n \"function xl_oDOMFeats( ) \\n{\\n\\tif (document.images) \\n\\t{\\n\\t\\tthis.isCSS = (document.body && document.body.style) ? true : false;\\n\\t\\tthis.isW3C = (this.isCSS && document.getElementById) ? true : false;\\n\\t\\tthis.isIE4 = (this.isCSS && document.all) ? true : false;\\n\\t\\tthis.isNN4 = (document.layers) ? true : false;\\n\\t\\tthis.isIE6CSS = (document.compatMode && document.compatMode.indexOf(\\\"CSS1\\\") >= 0) ? \\n\\t\\ttrue : false;\\n\\t}\\n}\",\n \"function hackUserAgent(){\\n if (navigator.userAgent.search('Firefox')!==-1)\\n active='mouseup.webcrawler';\\n}\",\n \"function ea(){}\",\n \"function isIE() { //ie?\\n if (!!window.ActiveXObject || \\\"ActiveXObject\\\" in window)\\n return true;\\n else\\n return false;\\n}\",\n \"function ieAjaxWorkaround(){\\n return \\\"time='\\\"+new Date().getTime() + \\\"'\\\";\\n}\",\n \"function browser_detection(){\\n\\tif(navigator.appName == \\\"Netscape\\\"){\\n\\t\\treturn \\\"NET\\\";\\t\\n\\t}else{\\n\\t\\treturn \\\"IE\\\";\\n\\t}\\t\\n}\",\n \"function compatibility() {\\n /* Logon */\\n $('#title_settings').parent()\\n .css('display', 'block')\\n .css('postion', 'relative');\\n\\n $('#title_settings').css('postion', 'absulute')\\n .css('width', '65px')\\n .css('height','20px')\\n .css('margin', '8px auto auto auto');\\n }\",\n \"function isBrowserIE () {\\n var ua = window.navigator.userAgent\\n var msie = ua.indexOf('MSIE ')\\n var trident = ua.indexOf('Trident/')\\n var edge = ua.indexOf('Edge/')\\n if (msie > 0 || trident > 0 || edge > 0) {\\n return true\\n }\\n }\",\n \"static isBrowser() {\\n return typeof window !== 'undefined';\\n }\",\n \"function getUsedResolutionFirefox() {\\n return undefined;\\n}\",\n \"function getDeprElems()\\n{\\n // Structure of HTML 4.01 elements deprecated\\n var deprElems = new Array(\\\"APPLET\\\", \\\"BASEFONT\\\", \\\"CENTER\\\", \\\"DIR\\\", \\\"FONT\\\", \\\"ISINDEX\\\", \\\"MENU\\\",\\n \\\"S\\\", \\\"STRIKE\\\", \\\"U\\\", \\\"LISTING\\\", \\\"PLAINTEXT\\\", \\\"XMP\\\");\\n return deprElems;\\n}\",\n \"function getT(){\\r\\n\\tif(ie4)\\r\\n\\t\\tcontentT = document.all.content.style.pixelTop;\\r\\n\\telse if(nn4)\\r\\n\\t\\tcontentT = document.contentClip.document.content.top;\\r\\n\\telse if(dom)\\r\\n\\t\\tcontentT = parseInt(document.getElementById(\\\"content\\\").style.top);\\r\\n}\",\n \"function e() {}\",\n \"function getDeprStyleElems()\\n{\\n // Structure of HTML 4.01 layout elements deprecated\\n var deprElems = new Array(\\\"BASEFONT\\\", \\\"CENTER\\\", \\\"FONT\\\", \\\"S\\\", \\\"STRIKE\\\", \\\"U\\\");\\n return deprElems;\\n}\",\n \"function msieversion() {\\n var ua = window.navigator.userAgent;\\n var msie = ua.indexOf(\\\"MSIE \\\");\\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\\\:11\\\\./)) { \\n var ieVersion = parseInt(ua.substring(msie + 5, ua.indexOf(\\\".\\\", msie)));\\n if (ieVersion === 9) {$('body').addClass('no-js ie' + ieVersion);}\\n return ieVersion;\\n }\\n else { return false; }\\n }\",\n \"function msieversion() {\\n var ua = window.navigator.userAgent;\\n var msie = ua.indexOf(\\\"MSIE \\\");\\n if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\\\\:11\\\\./)) { \\n var ieVersion = parseInt(ua.substring(msie + 5, ua.indexOf(\\\".\\\", msie)));\\n if (ieVersion === 9) {$('body').addClass('no-js ie' + ieVersion);}\\n return ieVersion;\\n }\\n else { return false; }\\n }\",\n \"function isIE() {\\n\\t\\t\\treturn typeof attachEvent !== \\\"undefined\\\" && typeof addEventListener === \\\"undefined\\\";\\n\\t\\t}\"\n]"},"negative_scores":{"kind":"list like","value":["0.65442866","0.6358256","0.62853074","0.600376","0.5873052","0.58666295","0.5812865","0.5751511","0.56054324","0.5583456","0.556258","0.55328596","0.54971915","0.54503363","0.5341024","0.5325885","0.5303375","0.52806467","0.5273732","0.5264961","0.5229311","0.5199712","0.5185076","0.51740956","0.5173521","0.51658744","0.5160169","0.515419","0.51525116","0.51429737","0.5133318","0.5119335","0.5115148","0.510093","0.50954705","0.50911254","0.50659215","0.50486356","0.5036391","0.5032244","0.50211895","0.5020382","0.5017566","0.5006388","0.50038046","0.50012934","0.49983722","0.4983362","0.49819106","0.49761003","0.4973521","0.4972271","0.49710605","0.4970121","0.49657923","0.49560064","0.4955713","0.49473473","0.49414134","0.49387944","0.49356738","0.49356738","0.49295232","0.49253535","0.49146938","0.4912618","0.4911015","0.49087483","0.48897016","0.48863196","0.4878918","0.4878918","0.48699415","0.4867879","0.4864581","0.4857368","0.48523664","0.4852267","0.485199","0.4850633","0.4850633","0.4850633","0.48467052","0.48445034","0.48409724","0.48407045","0.48399356","0.48355785","0.4831977","0.4829197","0.48276624","0.48229218","0.48192865","0.4818771","0.48176062","0.48171884","0.48169962","0.48153147","0.48094997","0.48094997","0.48074138"],"string":"[\n \"0.65442866\",\n \"0.6358256\",\n \"0.62853074\",\n \"0.600376\",\n \"0.5873052\",\n \"0.58666295\",\n \"0.5812865\",\n \"0.5751511\",\n \"0.56054324\",\n \"0.5583456\",\n \"0.556258\",\n \"0.55328596\",\n \"0.54971915\",\n \"0.54503363\",\n \"0.5341024\",\n \"0.5325885\",\n \"0.5303375\",\n \"0.52806467\",\n \"0.5273732\",\n \"0.5264961\",\n \"0.5229311\",\n \"0.5199712\",\n \"0.5185076\",\n \"0.51740956\",\n \"0.5173521\",\n \"0.51658744\",\n \"0.5160169\",\n \"0.515419\",\n \"0.51525116\",\n \"0.51429737\",\n \"0.5133318\",\n \"0.5119335\",\n \"0.5115148\",\n \"0.510093\",\n \"0.50954705\",\n \"0.50911254\",\n \"0.50659215\",\n \"0.50486356\",\n \"0.5036391\",\n \"0.5032244\",\n \"0.50211895\",\n \"0.5020382\",\n \"0.5017566\",\n \"0.5006388\",\n \"0.50038046\",\n \"0.50012934\",\n \"0.49983722\",\n \"0.4983362\",\n \"0.49819106\",\n \"0.49761003\",\n \"0.4973521\",\n \"0.4972271\",\n \"0.49710605\",\n \"0.4970121\",\n \"0.49657923\",\n \"0.49560064\",\n \"0.4955713\",\n \"0.49473473\",\n \"0.49414134\",\n \"0.49387944\",\n \"0.49356738\",\n \"0.49356738\",\n \"0.49295232\",\n \"0.49253535\",\n \"0.49146938\",\n \"0.4912618\",\n \"0.4911015\",\n \"0.49087483\",\n \"0.48897016\",\n \"0.48863196\",\n \"0.4878918\",\n \"0.4878918\",\n \"0.48699415\",\n \"0.4867879\",\n \"0.4864581\",\n \"0.4857368\",\n \"0.48523664\",\n \"0.4852267\",\n \"0.485199\",\n \"0.4850633\",\n \"0.4850633\",\n \"0.4850633\",\n \"0.48467052\",\n \"0.48445034\",\n \"0.48409724\",\n \"0.48407045\",\n \"0.48399356\",\n \"0.48355785\",\n \"0.4831977\",\n \"0.4829197\",\n \"0.48276624\",\n \"0.48229218\",\n \"0.48192865\",\n \"0.4818771\",\n \"0.48176062\",\n \"0.48171884\",\n \"0.48169962\",\n \"0.48153147\",\n \"0.48094997\",\n \"0.48094997\",\n \"0.48074138\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":213,"cells":{"query":{"kind":"string","value":"really, don't do that"},"document":{"kind":"string","value":"function Clazz () {}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["private internal function m248() {}","private public function m246() {}","protected internal function m252() {}","transient private protected internal function m182() {}","transient protected internal function m189() {}","transient private internal function m185() {}","static private internal function m121() {}","static final private internal function m106() {}","transient final protected internal function m174() {}","static transient final private internal function m43() {}","static transient private protected internal function m55() {}","static transient final protected internal function m47() {}","transient private protected public internal function m181() {}","static private protected internal function m118() {}","static transient final private protected internal function m40() {}","static transient final protected public internal function m46() {}","transient final private protected internal function m167() {}","transient final private internal function m170() {}","obtain(){}","static transient private protected public internal function m54() {}","static private protected public internal function m117() {}","static transient private public function m56() {}","function StupidBug() {}","static transient private internal function m58() {}","function _____SHARED_functions_____(){}","transient private public function m183() {}","static protected internal function m125() {}","static transient final protected function m44() {}","transient final private protected public internal function m166() {}","function dummy(){}","function dummy(){}","function dummy(){}","apply () {}","__previnit(){}","static final private protected internal function m103() {}","static final private protected public internal function m102() {}","static transient protected internal function m62() {}","static final protected internal function m110() {}","size() { return 1; }","function r(){}","function r(){}","function r(){}","function r(){}","function r(){}","function r(){}","function r(){}","function r(){}","function r(){}","function r(){}","function r(){}","function r(){}","function r(){}","function oi(){}","static final private public function m104() {}","static transient final private protected public internal function m39() {}","static transient final private public function m41() {}","prepare() {}","lastUsed() { }","function TMP() {\n return;\n }","function __func(){}","function TMP(){return;}","function TMP(){return;}","function __it() {}","function miFuncion (){}","no_op() {}","function noop(){}// No operation performed.","function noop(){}// No operation performed.","function noop(){}// No operation performed.","function noop(){}// No operation performed.","function noop(){}// No operation performed.","function noop(){}// No operation performed.","function noop(){}// No operation performed.","static transient final private protected public function m38() {}","function dummy() {}","function dummy() {}","function dummy() {}","_read () {}","_read () {}","_read () {}","transient final private public function m168() {}","function ea(){}","postorder() {\n throw new Error(\"This method hasn't been implemented yet!\");\n }","static get END() { return 6; }","preorder() {\n throw new Error(\"This method hasn't been implemented yet!\");\n }","analyze(){ return null }","function a(e){return void 0===e&&(e=null),Object(r[\"p\"])(null!==e?e:i)}","function ba(){}","function ba(){}","function ba(){}","function ba(){}","function Hx(a){return a&&a.ic?a.Mb():a}","function miFuncion(){}","function miFuncion(){}","function miFuncion(){}","bfs() {\n throw new Error(\"This method hasn't been implemented yet!\");\n }","bfs() {\n throw new Error(\"This method hasn't been implemented yet!\");\n }","removed() {}","removed() {}","_read() {}","_read() {}","added() {}"],"string":"[\n \"private internal function m248() {}\",\n \"private public function m246() {}\",\n \"protected internal function m252() {}\",\n \"transient private protected internal function m182() {}\",\n \"transient protected internal function m189() {}\",\n \"transient private internal function m185() {}\",\n \"static private internal function m121() {}\",\n \"static final private internal function m106() {}\",\n \"transient final protected internal function m174() {}\",\n \"static transient final private internal function m43() {}\",\n \"static transient private protected internal function m55() {}\",\n \"static transient final protected internal function m47() {}\",\n \"transient private protected public internal function m181() {}\",\n \"static private protected internal function m118() {}\",\n \"static transient final private protected internal function m40() {}\",\n \"static transient final protected public internal function m46() {}\",\n \"transient final private protected internal function m167() {}\",\n \"transient final private internal function m170() {}\",\n \"obtain(){}\",\n \"static transient private protected public internal function m54() {}\",\n \"static private protected public internal function m117() {}\",\n \"static transient private public function m56() {}\",\n \"function StupidBug() {}\",\n \"static transient private internal function m58() {}\",\n \"function _____SHARED_functions_____(){}\",\n \"transient private public function m183() {}\",\n \"static protected internal function m125() {}\",\n \"static transient final protected function m44() {}\",\n \"transient final private protected public internal function m166() {}\",\n \"function dummy(){}\",\n \"function dummy(){}\",\n \"function dummy(){}\",\n \"apply () {}\",\n \"__previnit(){}\",\n \"static final private protected internal function m103() {}\",\n \"static final private protected public internal function m102() {}\",\n \"static transient protected internal function m62() {}\",\n \"static final protected internal function m110() {}\",\n \"size() { return 1; }\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function r(){}\",\n \"function oi(){}\",\n \"static final private public function m104() {}\",\n \"static transient final private protected public internal function m39() {}\",\n \"static transient final private public function m41() {}\",\n \"prepare() {}\",\n \"lastUsed() { }\",\n \"function TMP() {\\n return;\\n }\",\n \"function __func(){}\",\n \"function TMP(){return;}\",\n \"function TMP(){return;}\",\n \"function __it() {}\",\n \"function miFuncion (){}\",\n \"no_op() {}\",\n \"function noop(){}// No operation performed.\",\n \"function noop(){}// No operation performed.\",\n \"function noop(){}// No operation performed.\",\n \"function noop(){}// No operation performed.\",\n \"function noop(){}// No operation performed.\",\n \"function noop(){}// No operation performed.\",\n \"function noop(){}// No operation performed.\",\n \"static transient final private protected public function m38() {}\",\n \"function dummy() {}\",\n \"function dummy() {}\",\n \"function dummy() {}\",\n \"_read () {}\",\n \"_read () {}\",\n \"_read () {}\",\n \"transient final private public function m168() {}\",\n \"function ea(){}\",\n \"postorder() {\\n throw new Error(\\\"This method hasn't been implemented yet!\\\");\\n }\",\n \"static get END() { return 6; }\",\n \"preorder() {\\n throw new Error(\\\"This method hasn't been implemented yet!\\\");\\n }\",\n \"analyze(){ return null }\",\n \"function a(e){return void 0===e&&(e=null),Object(r[\\\"p\\\"])(null!==e?e:i)}\",\n \"function ba(){}\",\n \"function ba(){}\",\n \"function ba(){}\",\n \"function ba(){}\",\n \"function Hx(a){return a&&a.ic?a.Mb():a}\",\n \"function miFuncion(){}\",\n \"function miFuncion(){}\",\n \"function miFuncion(){}\",\n \"bfs() {\\n throw new Error(\\\"This method hasn't been implemented yet!\\\");\\n }\",\n \"bfs() {\\n throw new Error(\\\"This method hasn't been implemented yet!\\\");\\n }\",\n \"removed() {}\",\n \"removed() {}\",\n \"_read() {}\",\n \"_read() {}\",\n \"added() {}\"\n]"},"negative_scores":{"kind":"list like","value":["0.6899992","0.6808299","0.6492993","0.6475234","0.64478004","0.6377602","0.6286609","0.6066579","0.6058615","0.6057772","0.59741586","0.59443563","0.5908438","0.58961606","0.5844541","0.57840335","0.5772557","0.5753298","0.5743296","0.56260645","0.55951196","0.5530848","0.55122817","0.5507228","0.5505282","0.54834265","0.5473785","0.5458286","0.5457991","0.543271","0.543271","0.543271","0.543209","0.5431107","0.5360796","0.5307113","0.5284718","0.5280522","0.5278851","0.526494","0.526494","0.526494","0.526494","0.526494","0.526494","0.526494","0.526494","0.526494","0.526494","0.526494","0.526494","0.526494","0.5252584","0.52494264","0.5245497","0.5243721","0.52223986","0.52201855","0.51934075","0.51898926","0.51898634","0.51898634","0.51826525","0.51746553","0.51740134","0.51718485","0.51718485","0.51718485","0.51718485","0.51718485","0.51718485","0.51718485","0.5167115","0.51464283","0.51464283","0.51464283","0.51451206","0.51451206","0.51451206","0.51247245","0.5120648","0.5084434","0.5082125","0.50684124","0.50658417","0.50598633","0.5057499","0.5057499","0.5057499","0.5057499","0.5049017","0.50343597","0.50343597","0.50343597","0.503208","0.503208","0.5004496","0.5004496","0.50039476","0.50039476","0.49993378"],"string":"[\n \"0.6899992\",\n \"0.6808299\",\n \"0.6492993\",\n \"0.6475234\",\n \"0.64478004\",\n \"0.6377602\",\n \"0.6286609\",\n \"0.6066579\",\n \"0.6058615\",\n \"0.6057772\",\n \"0.59741586\",\n \"0.59443563\",\n \"0.5908438\",\n \"0.58961606\",\n \"0.5844541\",\n \"0.57840335\",\n \"0.5772557\",\n \"0.5753298\",\n \"0.5743296\",\n \"0.56260645\",\n \"0.55951196\",\n \"0.5530848\",\n \"0.55122817\",\n \"0.5507228\",\n \"0.5505282\",\n \"0.54834265\",\n \"0.5473785\",\n \"0.5458286\",\n \"0.5457991\",\n \"0.543271\",\n \"0.543271\",\n \"0.543271\",\n \"0.543209\",\n \"0.5431107\",\n \"0.5360796\",\n \"0.5307113\",\n \"0.5284718\",\n \"0.5280522\",\n \"0.5278851\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.526494\",\n \"0.5252584\",\n \"0.52494264\",\n \"0.5245497\",\n \"0.5243721\",\n \"0.52223986\",\n \"0.52201855\",\n \"0.51934075\",\n \"0.51898926\",\n \"0.51898634\",\n \"0.51898634\",\n \"0.51826525\",\n \"0.51746553\",\n \"0.51740134\",\n \"0.51718485\",\n \"0.51718485\",\n \"0.51718485\",\n \"0.51718485\",\n \"0.51718485\",\n \"0.51718485\",\n \"0.51718485\",\n \"0.5167115\",\n \"0.51464283\",\n \"0.51464283\",\n \"0.51464283\",\n \"0.51451206\",\n \"0.51451206\",\n \"0.51451206\",\n \"0.51247245\",\n \"0.5120648\",\n \"0.5084434\",\n \"0.5082125\",\n \"0.50684124\",\n \"0.50658417\",\n \"0.50598633\",\n \"0.5057499\",\n \"0.5057499\",\n \"0.5057499\",\n \"0.5057499\",\n \"0.5049017\",\n \"0.50343597\",\n \"0.50343597\",\n \"0.50343597\",\n \"0.503208\",\n \"0.503208\",\n \"0.5004496\",\n \"0.5004496\",\n \"0.50039476\",\n \"0.50039476\",\n \"0.49993378\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":214,"cells":{"query":{"kind":"string","value":"This function represents the starting point of the program, leading straight to entering meta data and initializes the SVG output."},"document":{"kind":"string","value":"function start(){\n var p = document.getElementById(\"input\");\n p.innerHTML = metaDataForm;\n createSVGOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function start() {\n const logoText = figlet.textSync(\"Employee Database Tracker!\", 'Standard');\n console.log(logoText);\n loadMainPrompt();\n}","function doInitialization() {\n\t\tvar svg = \"\";\n\n\t\tif (typeof theSvgElement === \"undefined\") {\n\t\t\t// Add event to body: each time a key is hit -> launch function 'doUpdate'\n\t\t\tdocument.body.addEventListener(\"keyup\", doUpdate, false);\n\n\t\t\t// Open new window for drawing\n\t\t\tvar myWindow = window.open('', 'Drawing', \"width=\" + WINDOWS_WIDTH + \", height=450\", '');\n\t\t\tmyWindow.document.open();\n\t\t\tmyWindow.document.writeln('

Drawing

');\n\t\t\tmyWindow.document.writeln('
');\n\t\t\tmyDoc = myWindow.document;\n\t\t\tmyWindow.document.close();\n\n\n\t\t\tsvg = \"\";\n\n\t\t\t// Add basic information about SVG drawing\n\t\t\tsvg += \"\" + \"My drawing\" + \"\";\n\t\t\tsvg += \"Write drawing description here...\";\n\n\t\t\tsvg += `\n\t\t\t\t`;\n\n\t\t\t// Add containers: dimension, origin and lines\n\t\t\tsvg += \"\\n\";\n\t\t\tsvg += \"\\n\";\n\t\t\tsvg += \"\\n\";\n\t\t\tsvg += \"\\n\";\n\n\t\t\t// Draw SVG in MyDoc window\n\t\t\tmyDoc.getElementById(\"drawing1\").innerHTML = svg;\n\t\t\t// catch SVG in theSvgElement variable for further function\n\t\t\ttheSvgElement = myDoc.getElementsByTagName(\"svg\")[0];\n\n\t\t\t// Pattern for Arrow (marker) with default color value\n\t\t\tdoArrowpattern();\n\n\t\t}\n\n\t\t// Start function 'doUpdate' for the first time\n\t\tdoUpdate();\n\t}","function init() {\n const logoText = logo({ name: \"Employee Manager\" }).render();\n console.log(logoText);\n // load our prompts\n loadPrompts();\n}","function main() {\n // construct svg on the fly\n var gMain = get(\"main\");\n empty(gMain); // RESET\n // handles to SVG\n var gSvg = mk(\"svg\");\n gSvg.style.height = \"380px\";\n gSvg.style.width = \"600px\";\n gSvg.style.cursor = \"default\";\n gMain.appendChild(gSvg);\n var gEdges = mk(\"g\");\n var gNodes = mk(\"g\");\n var gHover = mk(\"g\");\n gSvg.appendChild(gEdges);\n gSvg.appendChild(gHover);\n gSvg.appendChild(gNodes);\n var gLookup = {};\n var gChoices = [];\n var gPerm = random_permutation();\n var gRevealed = false;\n var gReveal = get(\"reveal\");\n var gTurbo = get(\"turbo\");\n var gConfidence = get(\"confidence\");\n var gEquivalence;\n if (globalTricky) {\n gEquivalence = random_tricky_equivalence();\n } else {\n gEquivalence = id_equivalence();\n }\n gConfidence.style.color = \"black\";\n gReveal.disabled = 0;\n gReveal.value = \"Reveal\";\n gTurbo.disabled = false;\n gReveal.onclick = function () { // RESET\n reschedule(0, function () {});\n gNodes.childNodes.map(function (x) {\n x.reveal();\n });\n gSvg.style.cursor = \"pointer\";\n gRevealed = true;\n gReveal.value = \"Reset\";\n gReveal.onclick = main;\n };\n gTurbo.onclick = function () {\n if (gTurbo.checked) {\n globalAuto = true;\n main();\n } else {\n globalAuto = false;\n reschedule(0, main);\n }\n };\n // I need this to run *before* the internal handlers.\n gSvg.addEventListener('click', function () {\n if (gRevealed) {\n main();\n }\n }, true);\n // setup nodes\n var gColors = random_pick(globalColors);\n mapWithKey(globalPoints, function (ptname, pt) {\n var shape = mk(\"circle\");\n shape.setAttribute(\"cx\", pt[0]);\n shape.setAttribute(\"cy\", pt[1]);\n shape.setAttribute(\"r\", 10);\n if (!globalAuto) {\n shape.setAttribute(\"fill\", \"black\");\n } else {\n shape.setAttribute(\"fill\", \"grey\");\n };\n shape.selected = 0;\n // a question of great philosophical importance...\n // should the true color or the permuted color be stored!\n // it's all implementation details, but the user might\n // feel cheated if they look at the source...\n shape.color = gPerm[gColors[gEquivalence[ptname]]];\n shape.reveal = function() {\n if (!shape.revealed) {\n shape.setAttribute(\"fill\", COLORS[shape.color]);\n shape.revealed = true;\n }\n };\n shape.revealed = false;\n gNodes.appendChild(shape);\n gLookup[ptname] = shape;\n });\n // setup edges\n globalDot.map( function(edge) {\n var line = mk(\"line\");\n // make it easier to actually click the line\n var hoverBox = mk(\"line\");\n [line, hoverBox].map( function(x) {\n x.setAttribute(\"x1\", globalPoints[edge[0]][0]);\n x.setAttribute(\"y1\", globalPoints[edge[0]][1]);\n x.setAttribute(\"x2\", globalPoints[edge[1]][0]);\n x.setAttribute(\"y2\", globalPoints[edge[1]][1]);\n });\n if (!globalAuto) {\n line.setAttribute(\"stroke\", \"black\");\n } else {\n line.setAttribute(\"stroke\", \"grey\");\n };\n line.setAttribute(\"stroke-width\", \"1px\");\n hoverBox.setAttribute(\"stroke\", \"rgba(255,255,255,0)\"); // none doesn't work\n hoverBox.setAttribute(\"stroke-width\", \"15px\");\n if (!globalAuto) {\n hoverBox.onmouseover = function () {\n if (!gRevealed) {\n line.setAttribute(\"stroke\", \"cyan\");\n line.setAttribute(\"stroke-width\", \"3px\");\n }\n };\n hoverBox.onmouseout = function () {\n if (!gRevealed) {\n // duplicate\n line.setAttribute(\"stroke\", \"black\");\n line.setAttribute(\"stroke-width\", \"1px\");\n }\n };\n }\n var select = function () {\n if (!gRevealed) {\n gRevealed = true;\n gLookup[edge[0]].reveal();\n gLookup[edge[1]].reveal();\n var makeGray = function () {\n gEdges.childNodes.map( function (x) {\n x.setAttribute(\"stroke\", \"gray\");\n });\n gNodes.childNodes.map( function (x) {\n if (!x.revealed) {\n x.setAttribute(\"fill\", \"gray\");\n }\n });\n };\n globalTrials++;\n if (gLookup[edge[0]].color == gLookup[edge[1]].color) {\n makeGray();\n gSvg.style.cursor = \"pointer\";\n line.setAttribute(\"stroke-width\", \"3px\");\n line.setAttribute(\"stroke\", \"red\");\n globalTrials = 0;\n gConfidence.style.color = \"red\";\n return false;\n } else {\n if (!globalAuto) {\n makeGray();\n gSvg.style.cursor = \"pointer\";\n };\n line.setAttribute(\"stroke-width\", \"3px\");\n line.setAttribute(\"stroke\", \"green\");\n gConfidence.style.color = \"black\";\n gConfidence.textContent = Math.min((1-Math.pow(1-1/globalDot.length, globalTrials))*100, 99.99).toFixed(2);\n return true;\n }\n }\n };\n if (!globalAuto) {\n hoverBox.onclick = function () { select(); };\n hoverBox.style.cursor = \"pointer\";\n }\n gEdges.appendChild(line);\n gHover.appendChild(hoverBox);\n gChoices.push(select);\n });\n if (globalAuto) {\n reschedule(0, function () {\n if(random_pick(gChoices)()) {\n // nope, try again\n reschedule(140, function () {\n main();\n });\n } else {\n // caught him! stop\n }\n });\n }\n}","function init() {\n createWelcomeGraphic();\n console.log('WELCOME TO ASSOCIATE MANAGER!');\n console.log('FOLLOW THE PROMPTS TO COMPLETE YOUR TASKS.');\n}","function main() {\r\n initFlags();\r\n fixMarkup();\r\n changeLayout();\r\n initConfiguration();\r\n}","function startPage() {\n background(BG_COLOR);\n\n //text info\n fill(TEXT_COLOR_START_PAGE);\n strokeWeight(1);\n stroke(TEXT_COLOR_START_PAGE);\n textSize(50);\n textAlign(CENTER, CENTER);\n text(START_WELCOME, START_PAGE_X, START_PAGE_Y);\n legend();\n textSize(25);\n text(START_KEY_TEXT, START_PAGE_X, START_PAGE_Y + 400);\n}","function main() {\n init(fontSize);\n\n renderModel = ReadModel();\n renderUI = ReaderBaseFrame(RootContainer);\n renderModel.init(function (data) {\n renderUI(data);\n });\n\n EventHandler();\n }","startup()\n\t{\n\t\tthis.angle = 1;\n\t\tthis.rows(5, 11, 1);\n\t\tthis.action(0);\n\t}","function init() {\n\n svg = d3\n .select(\"#d3-container-1\")\n .append(\"svg\")\n\n draw(); // calls the draw function\n }","function logoArt() {\n console.log(logo(config).render());\n start();\n}","configureStartingData() {\n // We don't use a singleton because defaults could change between calls.\n new DrawingDefaultsConfig(this, this._last_tool).render(true);\n }","function main(){\n\t//Initialice with first episode\n\tvar sel_episodes = [1]\n\t//collage(); //Create a collage with all the images as initial page of the app\n\tpaintCharacters();\n\tpaintEpisodes();\n\tpaintLocations(sel_episodes);\n}","function setup(){\n // String IDs of the 3 SVG containers\n var svgIdList = [\"vis1\", \"vis2\", \"vis3\"];\n\n // Foreach SVG container in the HTML page, save their references and dimensions into the appropriate global list variables\n for (i = 0; i < 3; i++) {\n var svgTuple = grabSvgDimensions(svgIdList[i]);\n svg_list.push(svgTuple[0]);\n svg_width_list.push(svgTuple[1]);\n svg_height_list.push(svgTuple[2]);\n }\n\n loadData(\"Pokemon-Dataset.csv\");\n}","function initSVG() {\n \t\tsvg = d3.select('body')\n \t\t.append('svg')\n \t\t.attr('viewBox', '0 0 600 600')\n \t\t.attr('style', 'width: 300px; height: 300px;');\n \t}","function SVGComic(evt, opts) {\n /// The main SVGComic object\n /// The calling event\n /// The desired options\n /// \n /// \n /// \n /// \n /// \n /// \n /// \n /// \n /// \n /// \n \n if (window.svgDocument == null) {\n svgDocument = evt.target.ownerDocument;\n }\n\n this.document = svgDocument;\n this.svg = this.document.rootElement;\n this.ns = 'http://www.w3.org/2000/svg';\n\n if (opts == null) {\n opts = new Array();\n }\n\n var date = new Date();\n\n this.author = opts['author'] || 'A. N. Onymous';\n\n this.copyright = opts['copyright'] || \"© \" + date.getFullYear() + \" \" + this.author + \". All rights reserved.\";\n this.fill = opts['fill'] || 'black';\n this.fontSize = opts['fontSize'] || 12;\n this.height = opts['height'] || 300;\n this.subtitle = opts['subtitle'] || '';\n this.textColor = opts['textColor'] || 'white';\n this.title = opts['title'] || 'Untitled';\n this.width = opts['width'] || 800;\n this.xGutter = opts['xGutter'] || 10;\n\n// this.x = opts['x'] || window.innerWidth / 2 - this.width / 2;\n// this.y = opts['y'] || window.innerHeight / 2 - this.height / 2;\n\n this.panels = new Array();\n\n this.initialize();\n}","function main() {\n\n var gears = createElement('img')\n gears.src = './gears.svg'\n global.app.appendChild(gears)\n\n if (global.NAV.geolocation) {\n global.NAV.geolocation.getCurrentPosition(app.onSuccess, app.onError)\n }\n}","function start_drawing() {\n $('#normal_ear').lazylinepainter( \n {\n \"svgData\": pathObj,\n \"strokeWidth\": 2,\n \"strokeColor\": \"#7f857f\"\n }).lazylinepainter('paint'); \n }","function initApp(evt) {\n SvgDoc = evt.target.ownerDocument;\n SvgInfoText = document.getElementById(\"textbox\").firstChild;\n SvgDebugText = document.getElementById(\"debugtext\").firstChild;\n SvgNoticeText = document.getElementById(\"textNotice\").firstChild;\n}","function start() { \n initiate_graph_builder();\n initiate_job_info(); \n initiate_aggregate_info();\n initiate_node_info();\n}","function initialize() {\n const logoText = logo({ name: \"Primary C M S\" }).render();\n console.log(logoText);\n mainOptions();\n}","function createWelcomeGraphic() {\n\n}","async function main() {\n new p5((p_) => {\n p = p_;\n p.setup = setup;\n // p.draw = draw;\n }, elements.container);\n\n gui\n .add(settings, 'targetClass', ['all'].concat(_.values(IMAGENET_CLASSES)))\n .onChange(restart);\n gui.add(settings, 'gridSize', 3, 100).step(1).onChange(restart);\n gui.add(settings, 'minStrokeWidth', 1, 10).step(1).onChange(restart);\n gui.add(settings, 'maxStrokeWidth', 10, 500).step(1).onChange(restart);\n gui.add(settings, 'lineCount', 1, 25).step(1).onChange(restart);\n gui.add(settings, 'lineAlpha', 0.1, 1).step(0.01).onChange(restart);\n gui.add(settings, 'linePointCurvePoint', 1, 50).step(1).onChange(restart);\n gui.add(settings, 'randomColorCount', 1, 50).step(1).onChange(restart);\n gui.add(settings, 'populationCount', 100, 1000).step(1);\n gui.add(settings, 'mutationRate', 0.1, 0.99).step(0.01);\n gui.add(settings, 'maxGeneration', 1, 100).step(1);\n gui.add(settings, 'matchThreshold', 0.1, 0.99).step(0.01);\n gui.add(settings, 'saveImage');\n gui.add(settings, 'restart');\n gui.add(settings, 'stop');\n gui.close();\n\n if (ENABLE_STATS) {\n stats.showPanel(0);\n elements.stats.appendChild(stats.dom);\n }\n}","function readyStart(svg){\n\t\n\n svg.input.textArea(18, 10, \"It Takes Carbon Fiber and Kevlar to Make the Best Basketball Shoes in the World\", {width: '200', class: 'heading'});\n \n svg.input.textArea(18, 97, \"When you look at basketball shoes, what do you see? A big swoosh. Three stripes. Michael Jordan. A billboard molded to your feet. But do you see the technology? Though maybe not as blatant as an Intel sticker on your laptop, every shoe showcases its own advanced technology. Don't worry, you can't miss it on these, the best basketball shoes on the planet. Because they roll with carbon fiber and Kevlar.\", {width: '200'});\n\n svg.input.list(228, 10, 'Nullam eget purus enim, quis faucibus sapien. \\nVivamus semper nulla vel sapien fringilla ullamcorper. \\nIn hac habitasse platea dictumst. ',{width: '150'});\n svg.input.list(228, 100, 'Nullam eget purus enim, quis faucibus sapien. \\nVivamus semper nulla vel sapien fringilla ullamcorper. \\nIn hac habitasse platea dictumst. ',{width: '150'});\n\t\n\t\n\t$('.svg-container').transition({ x: '0', y: '20px', height: '400px'}, 1000, 'snap');\n\t\n\t$('.view .message').removeClass('loading');\n\n\t\n}","function drawStart() {\n\n console.log('in landingPageStart()');\n draw_static_word_cloud();\n display_image_mortality(1);\n}","function init() {\n\t\tbuildBar();\n\t\tbuildBubble();\n\t\tbuildGauge();\n\t\t//buildMeta();\n\t}","function initializeNodeInfo() {\n var infoBox = d3\n .select(\"#sequence\")\n .append(\"svg:svg\")\n .attr(\"width\", 300)\n .attr(\"height\", 300)\n .attr(\"id\", \"infobox\");\n}","function instructions() {\n stroke('Black'); fill('White')\n textSize(15)\n const thecopy = `The Chaos Game! by Daniel Reeves and Cantor Soule-Reeves\n\nDrawing with math ${\" \".repeat(35)} (${width}x${height} pixels)\n${noa} attractors, ` +\n`${hub===1 ? \"w/\" : \"w/o\"} a hub, ` +\n`excluding ${cac}, partial teleport ${fracify(pat)}\n\n• SPACE to toggle hyperspeed ⟶\n• CLICK (or R) for new fractal\n• G to regenerate (or 1/2/3/etc for other color schemes)`\n/*\n N to refresh everything but number of attractors\n H to refresh everything but whether there's a hub\n P to refresh everything but the partial teleport\n*/\n text(thecopy, 5, 15)\n const baretitle = rawnamify(noa, hub, cac, pat)\n let title = titlehash[baretitle]\n if (title === undefined) title = `untitled ${baretitle}`\n fill(1, 0, .3); textSize(width < 500 ? 37 :\n width < 640 ? 65 :\n width < 800 ? 68 :\n width < 1000 ? 70 :\n width < 2000 ? 100 : \n width < 3000 ? 150 : 300)\n push()\n textAlign(LEFT, TOP)\n text(`“${title}”`, 5, 160, width-10, height-160)\n pop()\n}","function setup() {\n createCanvas(500, 500, SVG)\n noLoop()\n angleMode(DEGREES)\n rectMode(CENTER)\n}","function visualizationLogic(){\n console.log(\"Visualization Logic\")\n //text\n //INFO from: https://earthquake.usgs.gov/earthquakes/browse/significant.php#sigdef\n // let t2 = createP('Events in this list and shown in red on our real-time earthquake map and list are considered “significant events’,
and they are determined by a combination of magnitude, number of Did You Feel It responses, and PAGER alert level.');\n // t2.class('small');\n // t2.parent('canvas1');\n // t2.position(0,0);\n\n //-------------------------------------------------------------//\n // 1. Magnitude Level //\n //-------------------------------------------------------------//\n\n //Variables for All\n let legendW = 60;\n //Variables for Magnitude\n let Mag_Legends = [0, 1, 3, 4.5, 6, 9];\n let Mag_xPos = (cWidth - Mag_Legends.length * legendW)/2; //CENTER THEM\n let Mag_margin = 10;\n let Mag_angle = 0;\n\n //Variables for Significance\n let minSig = minValue(quakes, 'sig');\n let maxSig = maxValue(quakes, 'sig');\n console.log(`MinSig is ${minSig} MaxSig is ${maxSig}`);\n let sig_Legends = [0, 100, 200, 400, 600, 1000, 1500];\n let sig_xPos = (cWidth - sig_Legends.length * legendW)/2; //CENTER THEM\n let sig_margin = 10;\n\n textFont(font1);\n //\n push();\n translate(Mag_xPos, legendW); \n for (let i = 0; i < Mag_Legends.length; i ++) {\n let myAPT_W, myAPT_H;\n myAPT_W = map(1000, 0, 1500, 1, legendW/2); \n myAPT_H = 2 * myAPT_W;\n Mag_angle = radians ( map(Mag_Legends[i], 0, 9, 0, 90) ); //Input, min, max, 0, 90\n //This is the class for the buildings;\n //\n push();\n let xTrans = legendW/2 - myAPT_W/2;\n translate(xTrans, 0); // ****************. FIX THIS PART\n rotate(Mag_angle);\n //2. Building \n let mySigC = sigScale(1000).hex();\n let myMagC = magScale(Mag_Legends[i]).hex();\n myMagC = color(myMagC);\n myMagC.setAlpha(150); // Add Alpha\n fill(mySigC);\n strokeWeight(1);\n stroke('#000000');\n rect(0, 0, myAPT_W, - myAPT_H);//x, y, w, h\n //3. Window\n fill('#ffffff');\n strokeWeight(0.5);\n let myWindowW = map(400, 0, 1500, 1, legendW/7);\n let myWindwX1 = legendW/2 - myAPT_W/5 - myWindowW/2 - xTrans;\n let myWindwX2 = myWindwX1 + 2*(myAPT_W/5) ;\n rect(myWindwX1, - myAPT_H/4 + myWindowW/2, myWindowW, - myWindowW); \n rect(myWindwX1, - (myAPT_H/4) * 2 + myWindowW/2, myWindowW, - myWindowW);\n rect(myWindwX1, - (myAPT_H/4) * 3 + myWindowW/2, myWindowW, - myWindowW);\n rect(myWindwX2, - myAPT_H/4 + myWindowW/2, myWindowW, - myWindowW); \n rect(myWindwX2, - (myAPT_H/4) * 2 + myWindowW/2, myWindowW, - myWindowW);\n rect(myWindwX2, - (myAPT_H/4) * 3 + myWindowW/2, myWindowW, - myWindowW);\n //4. Rooftop\n let x1, y1;\n x1 = legendW/2 - myAPT_W/2 - xTrans;\n y1 = - myAPT_H;\n let h = map(1000, 0, 1500, 1, myWindowW);\n line(x1, y1, x1 - h, y1 - h); //Left\n line(x1 + myAPT_W, y1, x1 + myAPT_W + h, y1 - h); //Right\n line(x1 - h, y1 - h, x1 + myAPT_W + h, y1 - h); //top\n pop();\n //1. Ground\n noStroke(); \n fill(myMagC);\n rect(Mag_margin, 0, legendW - 2 * Mag_margin, 15 * map(Mag_Legends[i], 0, 9, 0, 90)/90 ); ////x, y, w, h\n //5. -- Legend Text Below -- //\n noStroke();\n fill('orange');\n textSize(12);\n textAlign(CENTER);\n text(Mag_Legends[i], legendW/2, 35); //text,x, y\n //6. //Move to the next spot to the Right (Add scale)\n translate(legendW, 0); \n }\n pop();\n //Text Description\n textAlign(CENTER);\n textSize(15);\n text(\"Magnitude Level\", cWidth/2, legendW*1.9); \n\n //-------------------------------------------------------------//\n // 2. Significance Level //\n //-------------------------------------------------------------//\n // Cali range 0 from 640, World Range from 0 to 1492\n\n push();\n translate(sig_xPos, legendYPos + legendW + sig_margin); //x, y\n for (let i = 0; i < sig_Legends.length; i ++) {\n let myAPT_W, myAPT_H;\n myAPT_W = map(sig_Legends[i], 0, 1500, 1, legendW/2); //Input, min, max,\n myAPT_H = 2 * myAPT_W; //2 Times over -> Max will be 60\n //This is the class for the buildings;\n //1. Ground\n // noStroke();\n // fill(magScale(0).hex()); //Show the Color at Mag = 0;\n // //fill('rgba(150, 75, 0, 0.5)'); // Brown //************** Should be re-written \n // rect(sig_margin, 0, legendW - 2 * sig_margin, 20); ////x, y, w, h\n //2. Building //Half Point: legendW/2\n let myC = sigScale(sig_Legends[i]).hex();\n fill(myC);\n strokeWeight(1);\n stroke('#000000');\n rect(legendW/2 - myAPT_W/2, 0, myAPT_W, - myAPT_H);//x, y, w, h\n //3. Apartment Windows\n fill('#ffffff');\n strokeWeight(0.5);\n let myWindowW = map(sig_Legends[3], 0, 1500, 1, legendW/7);\n if (sig_Legends[i] < 200) { // No Window\n console.log(\"Sig level below 200 - No Window\");\n }\n if (sig_Legends[i] >= 200 && sig_Legends[i] < 400) { //One Window\n console.log(\"Sig level between 200 & 400\"); \n rect(legendW/2 - myWindowW/2, - myAPT_H/2 + myWindowW/2, myWindowW, - myWindowW); \n } \n if (sig_Legends[i] >= 400 && sig_Legends[i] < 600) { //Two Windows\n console.log(\"Sig level between 400 & 600\"); \n rect(legendW/2 - myWindowW/2, - myAPT_H/3 + myWindowW/2, myWindowW, - myWindowW); \n rect(legendW/2 - myWindowW/2, - (myAPT_H/3) * 2 + myWindowW/2, myWindowW, - myWindowW);\n }\n if (sig_Legends[i] >= 600 && sig_Legends[i] < 1000) { //Two Windows * 2 Cols\n console.log(\"Sig level between 600 & 1000\"); \n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - myAPT_H/3 + myWindowW/2, myWindowW, - myWindowW); \n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/3) * 2 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - myAPT_H/3 + myWindowW/2, myWindowW, - myWindowW); \n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/3) * 2 + myWindowW/2, myWindowW, - myWindowW);\n }\n if (sig_Legends[i] >= 1000 && sig_Legends[i] < 1500) { //Two Windows * 3 Cols\n console.log(\"Sig level between 1000 & 1500\"); \n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - myAPT_H/4 + myWindowW/2, myWindowW, - myWindowW); \n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/4) * 2 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/4) * 3 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - myAPT_H/4 + myWindowW/2, myWindowW, - myWindowW); \n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/4) * 2 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/4) * 3 + myWindowW/2, myWindowW, - myWindowW);\n }\n if (sig_Legends[i] >= 1500) { //Two Windows * 3 Cols\n console.log(\"Sig level Over 1500\"); \n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - myAPT_H/6 + myWindowW/2, myWindowW, - myWindowW); \n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 2 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 3 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 4 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 5 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - myAPT_H/6 + myWindowW/2, myWindowW, - myWindowW); \n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 2 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 3 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 4 + myWindowW/2, myWindowW, - myWindowW);\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 5 + myWindowW/2, myWindowW, - myWindowW);\n }\n //4. RoofTop - 3 lines;\n let x1, y1, x2, y2;\n x1 = legendW/2 - myAPT_W/2;\n y1 = - myAPT_H;\n let h = map(sig_Legends[i], 0, 1500, 1, myWindowW);\n line(x1, y1, x1 - h, y1 - h); //Left\n line(x1 + myAPT_W, y1, x1 + myAPT_W + h, y1 - h); //Right\n line(x1 - h, y1 - h, x1 + myAPT_W + h, y1 - h); //top\n //5. -- Legend Text Below -- //\n noStroke();\n fill('#cccccc');\n textSize(12);\n textAlign(CENTER);\n text(sig_Legends[i], legendW/2, 15); //text,x, y\n //6. //Move to the next spot to the Right (Add scale)\n translate(legendW, 0); \n }\n pop();\n //Text Description\n textAlign(CENTER);\n textSize(15);\n fill('#000000');\n text(\"Significance Level\", cWidth/2, legendYPos + legendW*1.75);\n\n\n}","function init(evt) {\n svgDocument = evt.target.ownerDocument; activeElements = svgDocument.getElementById(\"activeElements\");\n world = svgDocument.getElementById(\"world\"); enemyShots = svgDocument.getElementById(\"enemyShots\");\n mainPanel1 = svgDocument.getElementById(\"mainPanel1\"); mainPanel0 = svgDocument.getElementById(\"mainPanel0\");\n eCompass = svgDocument.getElementById(\"compass\"); eDeepMeter = svgDocument.getElementById(\"deepMeter\");\n eNums = svgDocument.getElementById(\"nums\").firstChild; shipAlertLeft = svgDocument.getElementById(\"shipAlertLeft\");\n eDamage = svgDocument.getElementById(\"damage\").firstChild; shipAlertRight = svgDocument.getElementById(\"shipAlertRight\");\n eMessage = svgDocument.getElementById(\"message\").firstChild; eScore = svgDocument.getElementById(\"score\").firstChild;\n eElapsed = svgDocument.getElementById(\"elapsed\").firstChild; eLevel = svgDocument.getElementById(\"level\").firstChild;\n subDamage = svgDocument.getElementById(\"subDamage\"); eThumbs = svgDocument.getElementById(\"thumbs\");\n levelReached = svgDocument.getElementById(\"levelReached\");\n Settings.setSounds(null);\n IntroOutro.init();\n}","function Main()\r{\r try\r {\r var document= app.activeDocument\r\r if ( document != null )\r {\r CheckLayers(document.layers);\r // Save het document eerst zodat de svg altijd hetzelfde is als het bewaarde\r // document. Dit doen we na de check zodat we alleen een goedsituatie bewaren!\r document.save();\r\r var saveName = document.name;\r saveName = saveName.substring(0,saveName.lastIndexOf(\".ai\"));\r // Save het document nu als SVG. Dit sluit tevens het document! \r if ( saveName != null ) \r if ( checkValidMaterial(saveName) ) \r SaveAsSVG(document, saveName);\r }\r }\r catch (e)\r {\r alert(SCRIPT_NAME + \" execution stopped, error: \" + \"\\n\\n\" + e);\r }\r}","function initialize() {\n\tinitialColorScale(imageData);\n\tloadIconImages(imageData);\n\tdrawBarChart(imageData);\n\tdrawSliderBar(imageData);\n\tdrawTreemap(imageData);\n}","start () {\n // Draw the starting point for the view with no elements\n }","start () {\n // Draw the starting point for the view with no elements\n }","function setup(){\n initializeApplication(function(){\n d3.select(\"#curtain_text\").text(\"loading...\");\n loadElements(function(){\n d3.select(\"#curtain_text\").text(\"loading....\");\n loadNuclides(function(){\n d3.select(\"#curtain_text\").text(\"loading.....\");\n renderApplication(function(){\n questions.finalize();\n display.transition_speed = 0.8;\n d3.select(\"#curtain_text\").text(\"welcome!\");\n d3.select(\"#curtain\").transition().duration(1000).style(\"opacity\",0);\n d3.timer(function(){\n d3.select(\"#curtain\").style(\"display\", \"none\");\n return true;\n }, 1100);\n });\n });\n });\n });\n}","function init() {\n const args = minimist(process.argv.slice(2))\n const types = (args.types || 'svg,ttf,woff,woff2,eot')\n .split(',')\n .map(ext => ext.trim())\n const options = {\n paths : getPaths(args._),\n outputDir : args.o || args.out,\n fontName : args.n || args.name,\n fontsPath : args.f || args.fontspath,\n types : types,\n css : args.c || args.css,\n cssPath : args.csspath,\n cssTemplate : args.csstp,\n json : args.j || args.json,\n jsonPath : args.jsonpath,\n html : args.html,\n htmlPath : args.htmlpath,\n htmlTemplate : args.htmltp,\n silent : args.s || args.silent || false,\n classPrefix : args.p || args.prefix,\n baseTag : args.t || args.tag,\n normalize : args.normalize,\n round : args.round,\n descent : args.descent,\n fixedWidth : args.mono,\n fontHeight : args.height,\n centerHorizontally : args.center\n }\n const calledEmpty = Object.keys(args).length === 1 && args._.length === 0\n const formats = [ 'json' ]\n\n // Parse Boolean values that default to true\n formats.forEach(key => {\n if (typeof options[key] !== 'undefined') {\n options[key] = options[key] === 'true'\n }\n })\n\n // Show usage if missing any arguments or called with -h / --help\n if (args.h || args.help || calledEmpty) {\n showHelp()\n return process.exit()\n }\n\n run(options)\n}","function setupDrawing8() {\n\n let loopLength = 6\n\n let svgs = [humanSVG, owlSVG, headSVG, dinoSVG, lotusSVG, heartHandsSVG, musclesSVG]\n\n // Use my included SVG library to load these commands and scale the SVG\n // This library lets me load the SVG, but also scale it to fit a certain size\n // Since SVGs can be any size, this keeps any possible SVG I load to a uniform size\n // ...so that I don't have to change the rest of the drawing code\n let svgImage = new SVGImage(svgs[4])\n svgImage.scaleToFit(WIDTH * .7, HEIGHT * .7, true)\n\n\n function setup(p) {\n p.createCanvas(WIDTH, HEIGHT);\n p.colorMode(p.HSL);\n p.background(0);\n }\n\n function draw(p) {\n\n let loopPct = (p.millis() * .001 / loopLength) % 1\n\n p.background(0, 0, 0, .05)\n\n p.push()\n p.translate(p.width / 2, p.height / 2);\n\n\n // Draw a bunch of circles, using various looping tricks\n\n for (var i = 0; i < 120; i++) {\n let hue = (loopPct * 360 + i * 10) % 360\n let pastel = Math.sin(loopPct * Math.PI * 2 + i * 2)\n\n p.stroke(hue, 100, 80, .8)\n p.fill(hue, 100, 50 + 50 * pastel, .7 - i * .003)\n let x = (p.noise(i) - .5) * p.width * 1.2\n let y = (p.noise(i + 100) - .5) * p.height * 1.2\n p.circle(x, y, 40 + 20 * Math.sin(loopPct * Math.PI * 2 + i))\n }\n\n p.stroke(0, 100, 100)\n p.fill(0)\n p.beginShape()\n let count = 10;\n for (var i = 0; i < count; i++) {\n let theta = Math.PI * 2 * i / count\n let r = p.width * 2\n p.vertex(r * Math.cos(theta), r * Math.sin(theta))\n }\n\n svgImage.draw(p, true)\n p.endShape()\n\n // Repeatedly draw the SVG shape, but fade it out\n let outlineCount = 10\n for (var i = 0; i < outlineCount; i++) {\n // Make a second percentage that decides how far out it is\n // This is a handy trick for\n // \"things that get continually larger, but forever\"\n\n let pct2 = (loopPct + i / outlineCount) % 1\n p.push()\n p.scale(1 + pct2 * 3, 1 + pct2)\n p.noFill()\n p.stroke(0, 100, 100, (1 - pct2) * .3)\n svgImage.draw(p)\n p.pop()\n }\n\n p.pop()\n\n }\n\n\n let element = getP5Element(8) // <- Make sure to change this to the right index\n let myP5 = new p5(function(p) {\n p.setup = () => setup(p)\n p.draw = () => draw(p)\n }, element);\n}","function startup() {\n const container = document.getElementsByClassName('main-interface')[0];\n\n const renderer = new Step3Renderer(container);\n const eventManager = new EventManager();\n\n const events = eventManager.getEvents()\n\n renderer.render(events);\n\n const mapView = document.getElementsByClassName('map-view')[0];\n const mapsInterface = new MapsInterface(mapView, { lat: 0, lng: 0 });\n\n setupMap(events, mapsInterface);\n}","draw() {\n // Set up the nodes and links of the graph.\n this.addNodes();\n this.addLinks();\n\n // Create the d3 simulation.\n this.createSimulation();\n\n // Set up SVG to draw the simulation.\n this.setupSvg();\n }","function instruction() {\n fill(255);\n textSize(20);\n text(\"Press [s] to go back to splash page.\", width - 125, offset + 25 , 200, 100);\n text(\"Press [r] to go look at the regulations page again.\", width - 125, 50 + offset + 50, 200, 100);\n noFill();\n strokeWeight(3);\n rect(width - 125, offset*2, 200, 200, 10);\n}","function init(svg){\n\tsvgReady = svg;\n\t\n\tgoReady();\n}","drawSvg() {\n \n\t}","function drawStart() {\n\n console.log('in landingPageStart()');\n\n // create slider object\n slider = $('#mapSlider').slider()\n .on('slide', sliderChange)\n .data('slider'); \n\n // automatically draw side-by-side U.S and Ohio county map by default\n drawMaps(sliderValue); \n opioidLineChartUS();\n}","function init() {\n d3.select(\"#more_info\").node().value = \"\";\n buildPlot(data);\n}","function setup() {\n\t\tcWidth = window.innerWidth;\n\t\tcHeight = window.innerHeight;\n\t\tprocessing.size(cWidth, cHeight);\n\t\tprocessing.noStroke();\n\t\tcenterX = processing.width / 2;\n\t\tcenterY = processing.height / 2;\n\t\tinit(7);\n\t}","async function main() {\n new p5((p_) => {\n p = p_;\n p.setup = setup;\n p.draw = draw;\n }, elements.container);\n\n // Settings\n const lineSettings = gui.addFolder('Line');\n lineSettings.add(settings, 'radius', 10, 800).step(1).onChange(redraw);\n lineSettings\n .add(settings, 'lineControlPoint', 5, 25)\n .step(1)\n .onChange(redraw);\n lineSettings.add(settings, 'lineWidth', 1, 10).step(1).onChange(redraw);\n lineSettings.add(settings, 'yStep', 1, 100).step(1).onChange(redraw);\n\n const noiseSettings = gui.addFolder('Noise');\n noiseSettings.add(settings, 'noiseSpeed', 0.1, 1).step(0.1).onChange(redraw);\n noiseSettings.add(settings, 'noiseXStep', 0.1, 10).step(0.1).onChange(redraw);\n noiseSettings\n .add(settings, 'noiseYFactor', 0.01, 1)\n .step(0.01)\n .onChange(redraw);\n\n const viewSettings = gui.addFolder('View');\n viewSettings.addColor(settings, 'bgColor').listen().onChange(redraw);\n viewSettings.addColor(settings, 'lineColorUp').listen().onChange(redraw);\n viewSettings.addColor(settings, 'lineColorDown').listen().onChange(redraw);\n viewSettings.add(settings, 'randomizeColors');\n\n gui.add(settings, 'redraw');\n gui.add(settings, 'saveImage');\n gui.close();\n\n if (ENABLE_STATS) {\n stats.showPanel(0);\n elements.stats.appendChild(stats.dom);\n }\n}","init() {\n // setting up metadata section\n $meta = $sel.append('div')\n .attr('class', 'meta__container')\n\n const $title = $meta.append('h3')\n .attr('class', 'letters-title')\n .text(position === 'first' ? 'Names that start with...' : 'Names that end with...')\n\n\n\t\t\t\t// setting up viz section\n $vizCont = $sel.append('div')\n .attr('class', 'chart__container')\n\n\t\t\t\t// setting up legend\n\t\t\t\t$legend = $sel.append('div')\n\t\t\t\t\t.attr('class', 'letters-legend')\n\n\n\n\t\t\t\tconst $legendScale = $legend.append('div')\n\t\t\t\t\t.attr('class', 'letters-legend-scale')\n\n\t\t\t\tconst $legendLeft = $legendScale.append('div')\n\t\t\t\t\t.attr('class', 'legend-left')\n\n\t\t\t\tconst $legendSpace = $legendScale.append('div')\n\t\t\t\t\t.attr('class', 'legend-space')\n\n\t\t\t\tconst $legendRight = $legendScale.append('div')\n\t\t\t\t\t.attr('class', 'legend-right')\n\n\t\t\t\tconst scale = [0, 4, 8]\n\n\t\t\t\tconst $gLeft = $legendLeft.selectAll('tick')\n\t\t\t\t\t.data(scale)\n\t\t\t\t\t.enter()\n\t\t\t\t\t.append('div')\n\t\t\t\t\t.attr('class', 'tick')\n\n\t\t\t\t$gLeft.append('span')\n\t\t\t\t\t.text(d => `${d}%`)\n\n\t\t\t\tconst $gRight = $legendRight.selectAll('tick')\n\t\t\t\t\t.data(scale)\n\t\t\t\t\t.enter()\n\t\t\t\t\t.append('div')\n\t\t\t\t\t.attr('class', 'tick')\n\n\t\t\t\t$gRight.append('span')\n\t\t\t\t\t.text(d => `${d}%`)\n\n\t\t\t\tconst $legendLabels = $legend.append('div')\n\t\t\t\t\t.attr('class', 'legend-labels')\n\n\t\t\t\t$legendLabels.append('p')\n\t\t\t\t\t.attr('class', 'letters-legend letters-legend-society')\n\t\t\t\t\t.text('More common in society')\n\n\t\t\t\t$legendLabels.append('p')\n\t\t\t\t\t.attr('class', 'letters-legend letters-legend-song')\n\t\t\t\t\t.text('More common in songs')\n\n\n\n\n\n\t\t\t\tChart.resize();\n\t\t\t\tChart.render();\n\t\t\t}","_getSVGHandler(e){let root=this,temp=document.createElement(\"div\"),getID=function(element,alt){if(null===element.getAttribute(\"id\"))element.setAttribute(\"id\",alt);return element.getAttribute(\"id\")},setAriaLabelledBy=function(source,target,prefix){// adds title and desc elements to target and sets the aria-labelledby attribute\nlet svgElem=function(nodename){source=null!==source?source:root;//adds title or desc element to target\nlet attr=\"title\"===nodename?\"label\":nodename,query=source.querySelector(\"#\"+attr);var label=target.querySelector(nodename);//if the target doesn't have the element, add it\nif(null===label){label=document.createElement(nodename);target.prepend(label)}//populates the element with data from the source element\nif(null!==source.getAttribute(attr)){label.innerHTML=source.getAttribute(attr)}else if(null!==query&&\"\"!==query.innerHTML){label.innerHTML=query.innerHTML}//returns the new element's id\nreturn getID(label,prefix+\"-\"+attr)};//set aria-labelledby to the id's for title and descriptions\ntarget.setAttribute(\"aria-labelledby\",svgElem(\"desc\")+\" \"+svgElem(\"label\"))};//set up main svg and append to document\ntemp.innerHTML=e.detail.response;let svg=temp.querySelector(\"svg\"),svgid=getID(svg,\"svg-\"+Date.now()),hdata=dom(root).querySelectorAll(\"lrndesign-imagemap-hotspot\");setAriaLabelledBy(root,svg,svgid);this.shadowRoot.querySelector(\"#svg\").appendChild(svg);for(let i=0;i{this.openHotspot(hotspot,hdata[i])});hbutton.addEventListener(\"keyup\",e=>{if(13===e.keyCode||32===e.keyCode){if(!hotspot.classList.contains(\"selected\")){this.openHotspot(hotspot,hdata[i])}}})}}","function createNamespace(data) {\n\n//Width and height of SVG drawing area\n myNS.width = Width;\n myNS.height = Height;\n myNS.padding = 60; // padding around edges, to make room for axes\n // for menus, the choice for each one\n myNS.xData = \"\";\n myNS.yData = \"\";\n // dataset -- will read this from CSV file\n myNS.dataset = data;\n\n}","function renderStart() {\n generateStart();\n }","function draw() {\n function drawP(text) {\n var elem = document.createElement(\"p\");\n elem.innerText = text;\n document.getElementById(\"root\").append(elem);\n }\n drawP(\"(0,0) Note: SVG origin is top left\");\n var myGenerator = generator();\n var myChart = chart(400, 400);\n var svg = build(myGenerator, myChart);\n document.getElementById(\"root\").appendChild(svg);\n }","setUp() {\n this.g = d3\n .select(this.root)\n .append(\"g\");\n this.update();\n }","function setup() {\n createCanvas(windowWidth, windowHeight-4);\n\n // Center our drawing objects\n rectMode(CENTER);\n imageMode(CENTER);\n textAlign(CENTER);\n // text settings\n textSize(size);\n textFont('Nunito');\n\n // set to one for startup\n drawFunction = drawSplash;\n\n}","function _main(spec_container) {\n x = _main.xScale();\n y = _main.yScale();\n dispatcher = _main.dispatcher();\n \n svg_elem = source(spec_container);\n line_idx = spec_container.spectra().indexOf(_main);\n \n //svg_elem.attr(\"clip-path\",\"url(#\" + svg_elem.selectP('.spec-slide').node().clip_id + \")\");\n\n img_elem = svg_elem.append(\"g\")\n .attr(\"filter\", \"url(#\" + spec_container.parent().filterId()+ \")\")\n .append(\"svg:image\")\n .attr('width', spec_container.width())\n .attr('height', spec_container.height())\n .attr('xlink:href', \"data:image/png;base64,\" + data)\n .attr(\"preserveAspectRatio\", \"none\"); \n \n \n /*** TODO: 2D dataset vis *****\n ******************************/\n \n if(_crosshair){\n _crosshair \n .xScale(x).yScale(y)\n .dispatcher(dispatcher)\n (_main);\n }\n \n \n // TODO: 2D integration\n \n svg_elem\n .on(\"_redraw\", redraw)\n .on(\"_regionchange\", function(){\n })\n .on(\"_integrate\", function(){\n })\n .on(\"_segment\", function () {\n })\n .on('_remove', function () {\n dispatcher.on(\"regionchange.line.\"+dispatch_idx, null);\n dispatcher.on(\"redraw.line.\"+dispatch_idx, null);\n data = null;\n if(_crosshair){_crosshair.remove();}\n });\n \n // Register event listeners\n var dispatch_idx = ++dispatcher.idx;\n dispatcher.on(\"regionchange.line.\"+dispatch_idx, svg_elem.on(\"_regionchange\"));\n dispatcher.on(\"redraw.line.\"+dispatch_idx, svg_elem.on(\"_redraw\"));\n \n return svg_elem; \n }","function main()\n{\n initCommand();\n global.mode = global.mode_NORMAL;\n global.firstRun = true;\n global.baseX = NaN;\n global.baseY = NaN;\n global.destX = NaN;\n global.destY = NaN;\n global.factor = NaN;\n\n global.baseRX = NaN;\n global.baseRY = NaN;\n global.destRX = NaN;\n global.destRY = NaN;\n global.factorRef = NaN;\n global.factorNew = NaN;\n\n if(numSelected() <= 0)\n {\n //TODO: Prompt to select objects if nothing is preselected\n setPromptPrefix(qsTr(\"Preselect objects before invoking the scale command.\"));\n appendPromptHistory();\n endCommand();\n messageBox(\"information\", qsTr(\"Scale Preselect\"), qsTr(\"Preselect objects before invoking the scale command.\"));\n }\n else\n {\n setPromptPrefix(qsTr(\"Specify base point: \"));\n }\n}","function main() {\r\n init();\r\n draw();\r\n}","function pageLoaded() {\n svgweb.addOnLoad(createSVGObject);\n}","function main() {\n\t\t\ttry{\n\t\t\t\trender();\n\t\t\t} catch(e) {\n\t\t\t\tconsole.log(e);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(rendering == true) {\n\t\t\t\traf(main.bind(this));\n\t\t\t}\n\t\t}","function mainSketch() {\n\tbackground(255, 150, 0);\n\n\tfill(0);\n\tnoStroke();\n\ttextSize(height/2);\n\ttextAlign(CENTER, CENTER);\n\ttext('BOO!', width/2, height/2);\n}","function setup() {\n createCanvas(1008,1008);\n textFont(quicksand);\n tiger = new firstPredator(100, 100, 5, color(204, 159, 69), 40, tigerImage, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW, 16); // press Shift key to sprint\n leopard = new firstPredator(100, 100, 15, color(200, 175, 175), 35, leopardImage, 87, 83, 65, 68, 70); // press F to sprint\n bear = new firstPredator(100, 100, 25, color(120, 114, 97), 45, bearImage, 73, 75, 74, 76, 72); // press H key to sprint\n antelope = new Prey(100, 100, 10, color(255, 100, 10), 50, antelopeImage);\n zebra = new Prey(100, 100, 8, color(255, 255, 255), 60, zebraImage);\n bee = new Prey(100, 100, 20, color(255, 255, 0), 10, beeImage);\n}","generateFile (entry) {\n this.reColorSVG('#CCCCCC');\n this.imageTemplate(this.encodedSVG());\n }","function init() {\n for(let i = K; i <= 5 * N; i += delta) {\n M.push(i);\n }\n drawSvgContainer(svgWidth, svgHeight, svgMargin);\n drawAxes(xAxisLength, yAxisLength, startPoint, scale);\n task1();\n}","init() {\n let svg = ' \\n';\n\tif (Inobj != false) {\n\t\tvar pretext = document.getElementById(\"SVGCode\");\n\t\tvar picobj = document.getElementById(\"pic\");\n\t\tif (mode == 0) {\n\t\t\tcode = svgheader;\n\n\t\t\t//var oldsvg=document.getElementById(\"pic\");\n\t\t\tsvgout.setAttribute(\"xmlns:xlink\", \"http://www.w3.org/1999/xlink\");\n\t\t\tsvgout.setAttribute(\"width\", (Inobj[0].cw + \"px\"));\n\t\t\tsvgout.setAttribute(\"height\", (Inobj[0].ch + \"px\"));\n\t\t\tsvgout.setAttribute(\"version\", \"1.1\");\n\t\t\tsvgout.setAttribute(\"style\", \"display:inline\");\n\t\t\tsvgout.setAttribute(\"id\", \"pic\");\n\t\t} //mode 1 action\n\t\telse //mode 2 action\n\t\t{\n\t\t\tcode = pretext.value;\n\t\t\tcode = code.substring(0, (code.length - 6));\n\t\t\tvar oldsvg = document.getElementById(\"pic\");\n\t\t\tsvgout = oldsvg;\n\t\t}\n\n\t\tif (Inobj[0].bbon) {\n\t\t\tResult = DrawCircle(Inobj);\n\t\t\tcode += Result[0];\n\t\t\tsvgout.appendChild(Result[1]);\n\t\t} //draw backbone\n\t\tfor (var i = 1; i < Inobj.length; i++) //draw features\n\t\t{\n\t\t\tif (Inobj[i].visible) {\n\t\t\t\tif (Inobj[i].arrowon) {\n\t\t\t\t\tResult = DrawArrow(Inobj, i);\n\t\t\t\t\tcode += Result[0];\n\t\t\t\t\tsvgout.appendChild(Result[1]);\n\t\t\t\t} else {\n\t\t\t\t\tResult = DrawBox(Inobj, i);\n\t\t\t\t\tcode += Result[0];\n\t\t\t\t\tsvgout.appendChild(Result[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (Inobj[0].txton) {\n\t\t\tif (Inobj[0].plasmidnameon) {\n\t\t\t\tResult = ShowPlasmidName(Inobj);\n\t\t\t\tcode += Result[0];\n\t\t\t\tsvgout.appendChild(Result[1]);\n\t\t\t}\n\t\t\tif (Inobj[0].plasmidsizeon) {\n\t\t\t\tResult = DrawPlasmidSize(Inobj);\n\t\t\t\tcode += Result[0];\n\t\t\t\tsvgout.appendChild(Result[1]);\n\t\t\t}\n\t\t\tfor (var j = 1; j < Inobj.length; j++) {\n\t\t\t\tif (Inobj[j].visible) {\n\t\t\t\t\tResult = ShowFeatureLabel(Inobj, j);\n\t\t\t\t\tcode += Result[0];\n\t\t\t\t\tif (Result.length == 2) {\n\t\t\t\t\t\tsvgout.appendChild(Result[1]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsvgout.appendChild(Result[2]);\n\t\t\t\t\t\tsvgout.appendChild(Result[1]);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcode += \"\";\n\t\tpretext.value = code;\n\t\tpicobj.parentNode.replaceChild(svgout, picobj);\n\t\t//alert(svgout.childNodes[5].nodeName+\" has childs: \"+svgout.childNodes[5].childNodes.length);\n\t\t//alert(svgout.childNodes[5].firstChild.nodeName);\n\t\t//alert(\"the ref link: \"+svgout.childNodes[5].firstChild.getAttribute(\"xlink:href\"));\n\t\t//alert(svgout.childNodes[5].firstChild.firstChild.nodeValue);\n\n\n\t}\n}","function init() {\n\n getCourses(program);\n getPreqs(courses);\n drawGraph();\n\n //set zoom view level\n zoomOut();\n\n //loading done\n $('#spin1').hide();\n}","initialize() {\n\n // Add an opening tag to the code\n this.add(`%`);\n\n // Add the script name\n this.add(this.opCode(`O`, this.name));\n\n // Add code for which unit system to use (mm or inches)\n this.add(this.opCode(`G`, (this.unit == 'inch' || this.unit == 'in') ? '20' : '21'));\n\n // Add code for the type of positioning being used\n this.setPositioning(this.positioning);\n\n // Set the state to on\n this.toggleState();\n\n // Raise the mill above the clearance\n this.raiseMill();\n\n // Feed rapidly to the start position\n this.feedRapid(this.start, this.feedrate);\n }","function setup() {\n\tcreateCanvas(windowWidth, windowHeight);\n\n\tbackground(0);\n\ttextAlign(CENTER);\n\ttextSize(200);\n\tfill(255, 167, 15);\n\tnoStroke();\n}","function initialize() {\n\t\t\n\t\tsvg = scope.selection.append(\"svg\").attr(\"id\", scope.id).style(\"overflow\", \"visible\").attr(\"class\", \"vizuly\");\n\t\tbackground = svg.append(\"rect\").attr(\"class\", \"vz-background\");\n\t\tdefs = vizuly2.util.getDefs(viz);\n\t\tplot = svg.append('g');\n\t\t\n\t\tscope.dispatch.apply('initialized', viz);\n\t}","function init(evt) {\n\n SVGDocument = evt.target.ownerDocument;\n SVGRoot = SVGDocument.documentElement;\n nodes = SVGDocument.getElementsByTagName('g');\n edges = SVGDocument.getElementsByTagName('g');\n nodesLength = nodes.length;\n\n //top.processGraph();\n\n }","function startSystem () {\n particleSvg = d3.select('body')\n .append(\"svg\")\n .attr(\"width\", width)\n .attr(\"height\", height);\n makeAWall([width * -2, height * 0.25], [width*2, height * 0.25], 200);\n makeAWall([width * -2, height * 0.55], [width*2, height * 0.55], 200);\n injector();\n renderParticles();\n}","function init_svg(){\n\n if(document.getElementById('world-map-svg')){\n \n // set svg fill to default\n reset_svg_fill();\n\n // generate the dropdwon with custom rank names\n makeDDM();\n\n // add tooltip event on all countries and info button\n add_tooltip_event_countries();\n add_tooltip_event_info();\n hideDDM2_extraOptions();\n\n // remove the next 3 lines once implemented\n document.getElementById('rank-attribute').selectedIndex = 0;\n document.getElementById('rank-type').selectedIndex = 0;\n var svg = d3.select('#world-map-svg')\n fill_csv(svg, global_rank_function + '_' + global_rank_type, global_is_mono, global_isAscending);\n\n }\n else{\n setTimeout(init_svg, 100); \n }\n \n}","main() {\n setup_pixi_stage(600, 400);\n const loader = PIXI.Loader.shared;\n loader.add(\"Resources/meteor2.png\");\n loader.add(\"Resources/dinosaur.png\");\n loader.load(this.load_done.bind(this));\n }","function drawSvg() {\n\t\t// selector can be #residential, or #commercial which should be in graph.html\n\t\tvar dataSources = [{selector: '#commercial', data: data.commGraphData}, \n\t\t\t{selector: '#residential', data: data.residGraphData}];\n\n\t\tdataSources.forEach(function(item) {\n\t\t\tvar canvas = createCanvas(item.selector, item.data);\n\t\t\tdrawHorizontalLabel(canvas);\n\t\t\tdrawVerticalLable(canvas, item.data);\n\t\t\tdrawHeatMap(canvas, item.data);\n\t\t});\n\t}","function init() {\n // set the main SVG\n mainSvg = document.querySelector(\"#svg-root\");\n downloadButton = document.querySelector(\"#download\");\n downloadButton.disabled = true;\n downloadButton.addEventListener(\"click\", () => downloadSvg());\n // Set the form to call 'redraw()' on submit, instead of going to a different page\n let form = document.querySelector(\"#transcribe-form\");\n form.addEventListener(\"submit\", (e) => {\n e.preventDefault();\n redraw();\n });\n}","function buildGui() {\n // Assign gui variable with a new dat gui object\n gui = new dat.GUI();\n\n // Add a folder into the gui called Stars\n var stars_gui = gui.addFolder(\"Stars\");\n // Add a folder for each star in the array into the gui\n stars.forEach(function(star)\n {\n //Properties for each star that will form the gui options for each star\n var star_properties = {\n size: star.scale.x,\n colour: star.userData.colour,\n luminosity: star.userData.light.intensity,\n // Button to show the star's information, hide previous info and remove the path of the previous planet/moon if there was any\n view: function() {\n // Function call to remove the hide button in all other gui folders except the current folder\n removeHide();\n // Remove the path from the scene if it was defined\n if (path!=undefined)\n scene.remove(path);\n // Set variable to false to indicate the path isn't on the scene\n path_on = false;\n // Remove the view button from the gui\n star_folder.remove(star.userData.add_button);\n // Set userdata storing the view button to undefined\n star.userData.add_button = undefined;\n // Assign userdata variable to store the remove button in the gui\n star.userData.remove_button = addButton(this, star_folder, 'hide');\n // Function call to clear the screen of info text\n hideInfo();\n // Function call to show info for the current star\n showInfo(star.userData.name, star.userData.category, star.userData.desc, star.userData.colour);\n },\n // Button to hide the current star's information\n hide: function() {\n // Function call to clear screen of info text\n hideInfo();\n // Function call to show the starting message\n showStartUp();\n // Remove hide button from the gui\n star_folder.remove(star.userData.remove_button);\n // Set the remove button in user data to undefined\n star.userData.remove_button = undefined;\n // Assign userdata variable to store the add button in the gui\n star.userData.add_button = addButton(this, star_folder, 'view');\n }\n }\n\n // Add a new folder to the gui for the current star\n var star_folder = stars_gui.addFolder(star.userData.name);\n // Store the star's gui folder in userdata\n star.userData.folder = star_folder;\n // Store the star gui properties in userdata\n star.userData.properties = star_properties;\n\n // Add gui objects for the star's colour, size, brightness\n addStarGui(star_properties, star_folder, 'colour', star, 0, 0.1);\n addStarGui(star_properties, star_folder, 'size', star, 0.1, 10);\n addStarGui(star_properties, star_folder, 'luminosity', star, 0, 4);\n // Add a button to show the star's info and store it in userdata\n star.userData.add_button = addButton(star_properties, star_folder, 'view');\n\n });\n\n // Create a folder in gui to store planets\n planets_gui = gui.addFolder(\"Planets\");\n // Function call to build planet gui\n buildPlanetsGui();\n\n // Create a folder in gui to store moons\n moons_gui = gui.addFolder(\"Moons\");\n // Function call to build the moon gui\n buildMoonsGui();\n\n // Function call to build the gui folder to add new planets and moons\n buildAddGui();\n\n // Function call to build the gui folder to remove planets and moons\n buildRemoveGui();\n}","function init(){\n // initialize global variables and button actions\n prev_btnj = $('#prev_btn')\n next_btnj = $('#next_btn')\n scale_btnj = $('#scale_btn')\n titlej = $('#title')\n svgj = $('svg')\n svg = svgj[0]\n svgimg = document.createElementNS('http://www.w3.org/2000/svg','image')\n\n svgj.append(svgimg)\n $('#open_btn').click(openHandler)\n $('#zoomin_btn').click(zoominHandler)\n $('#zoomout_btn').click(zoomoutHandler)\n $('#actual_btn').click(actualHandler)\n $('#fit_btn').click(fitHandler)\n prev_btnj.click(prevHandler)\n next_btnj.click(nextHandler)\n $(window).resize(_.throttle(resizeHandler, 100))\n}","async function main() {\n image = await loadImage('./Apollo11HP-128539876.jpg');\n imageData = await readImageData(image);\n\n new p5((p_) => {\n p = p_;\n p.setup = setup;\n }, elements.container);\n\n // Settings\n gui.add(settings, 'omega', 0, 1).step(0.01).onFinishChange(drawThrottled);\n gui.add(settings, 'phase', 0, 1).step(0.01).onFinishChange(drawThrottled);\n gui.add(settings, 'quantVal', 1, 30).step(0.1).onFinishChange(drawThrottled);\n gui.add(settings, 'saveImage');\n gui.close();\n\n if (ENABLE_STATS) {\n stats.showPanel(0);\n elements.stats.appendChild(stats.dom);\n }\n}","function draw() {\n\n //textColor changes so it has to be in draw instead of setup\n //starts as transparent clicking i turns it opaque\n textColor = color(0, 0, 0, o);\n textColor2 = color(255,255,255,o);\n\n //main screen only shows up when turning program on\n if (main === true) {\n noStroke();\n fill(0);\n textSize(16);\n text(\"Press i at any time to turn on instructions.\", 150, 175);\n text(\"Pressing i again will turn them off, if the background is white\", 150, 200);\n text(\"you will need to refresh the page by hitting the same number\", 150, 225);\n text(\"to get rid of the instructions.\", 150, 250);\n text(\"To begin press 1,2,3,4, or 5.\", 150, 275);\n \n //title whimsical\n //color changes with mouse position\n fill(mouseX%255,255-mouseY%255,187);\n stroke(0);\n textSize(100);\n text(\"w\",150,500);\n text(\"h\",205,500);\n text(\"i\",240,500);\n text(\"m\",240,500);\n text(\"s\",305,500);\n text(\"i\",335,500);\n text(\"c\",338,500);\n text(\"a\",372,500);\n text(\"l\",407,500);\n textSize(16);\n }\n \n //related to the switch case to switch between modes\n if (bubble === true) {\n bubbles(50);\n }\n if (vortex === true) {\n depth();\n }\n if (box === true) {\n boxes();\n }\n if (stacks === true) {\n stacking();\n }\n if (dots === true) {\n drawing();\n }\n}","function setup() {\n createCanvas(1200,800);\n\n // Center our drawing objects\n imageMode(CENTER);\n textAlign(CENTER);\n textSize(24);\n\n // set to one for startup\n drawFunction = drawSplash;\n}","function setup() {\n // Create a p5.js canvas 800px wide and 600px high, and assign it to the global variable \"cnv\".\n g.cnv = createCanvas(800, 600);\n // Set the parent element to \"graphics-wrapper\"\n g.cnv.parent(\"graphics-wrapper\");\n // The \"main\" element is unnecessary. Don't worry about this too much\n document.getElementsByTagName(\"main\")[0].remove();\n}","function mainFn () {\n logFn( prefixStr + 'Start' );\n xhiObj.npmObj.load( xhiObj.fqPkgFilename, onLoadFn );\n }","function start() {\n gemValues.startGoal();\n gemValues.gemSet();\n}","function setup() {\n // Create a p5.js canvas 800px wide and 600px high, and assign it to the global variable \"cnv\".\n g.cnv = createCanvas(800, 600);\n\n // Set the parent element to \"graphics-wrapper\"\n g.cnv.parent(\"graphics-wrapper\");\n\n // The \"main\" element is unnecessary. Don't worry about this too much\n document.getElementsByTagName(\"main\")[0].remove();\n}","function firstExportStep() {\n\t\t\t// debug('\\n firstExportStep - START');\n\n\t\t\t// Add metadata\n\t\t\tvar md = _GP.metadata;\n\t\t\tvar ps = _GP.projectsettings;\n\n\t\t\toptions.unitsPerEm = ps.upm || 1000;\n\t\t\toptions.ascender = ps.ascent || 0.00001;\n\t\t\toptions.descender = (-1 * Math.abs(ps.descent)) || -0.00001;\n\t\t\toptions.familyName = (md.font_family) || ' ';\n\t\t\toptions.styleName = (md.font_style) || ' ';\n\t\t\toptions.designer = (md.designer) || ' ';\n\t\t\toptions.designerURL = (md.designerURL) || ' ';\n\t\t\toptions.manufacturer = (md.manufacturer) || ' ';\n\t\t\toptions.manufacturerURL = (md.manufacturerURL) || ' ';\n\t\t\toptions.license = (md.license) || ' ';\n\t\t\toptions.licenseURL = (md.licenseURL) || ' ';\n\t\t\toptions.version = (md.version) || 'Version 0.001';\n\t\t\toptions.description = (md.description) || ' ';\n\t\t\toptions.copyright = (md.copyright) || ' ';\n\t\t\toptions.trademark = (md.trademark) || ' ';\n\t\t\toptions.glyphs = [];\n\n\t\t\t// debug('\\t NEW options ARG BEFORE GLYPHS');\n\t\t\t// debug(options);\n\t\t\t// debug('\\t options.version ' + options.version);\n\n\t\t\t// Add Notdef\n\t\t\tvar notdef = new Glyph({'name': 'notdef', 'shapes':JSON.parse(_UI.notdefglyphshapes)});\n\t\t\tif(_GP.upm !== 1000){\n\t\t\t\tvar delta = _GP.upm / 1000;\n\t\t\t\tnotdef.updateGlyphSize(delta, delta, true);\n\t\t\t}\n\n\t\t\tvar ndpath = notdef.makeOpenTypeJSpath();\n\n\t\t\toptions.glyphs.push(new opentype.Glyph({\n\t\t\t\tname: '.notdef',\n\t\t\t\tunicode: 0,\n\t\t\t\tindex: getNextGlyphIndex(),\n\t\t\t\tadvanceWidth: round(notdef.getAdvanceWidth()),\n\t\t\t\txMin: round(notdef.maxes.xmin),\n\t\t\t\txMax: round(notdef.maxes.xmax),\n\t\t\t\tyMin: round(notdef.maxes.ymin),\n\t\t\t\tyMax: round(notdef.maxes.ymax),\n\t\t\t\tpath: ndpath\n\t\t\t}));\n\n\t\t\t// debug(' firstExportStep - END\\n');\n\t\t}","function start() {\n d3.select( \"#d3-start\" )\n .append( \"p\" )\n .text( \"Place a console.log(d3) in your script block to see the entire d3 object in the console\" ); \n}","onLoad() {\n this.svg = this.createSvg();\n this._bg.appendChild(this.svg);\n this.setShaderProperties();\n this.randomize();\n this.createPolygons();\n this.refresh();\n }","function Graph_setup () { }","function initMain(){\n\tbuildGameButton();\n\tbuildGameStyle();\n\tbuildScoreboard();\n\t\n\tgoPage('main');\n\tloadXML('questions.xml');\n}","function setup() {\n createCanvas(windowWidth, windowHeight);\n\n // Center our drawing objects\n imageMode(CENTER);\n textAlign(CENTER);\n textSize(24);\n\n // set to one for startup\n drawFunction = drawOne;\n}","function setup() {\n noCanvas();\n\n // let d = new Date;\n // let h = d.getHours();\n // if (h == 9){\n getRandomData();\n // }\n\n let ImgURL = data.inspo[yesterdayInfo].picture;\n let personName = data.inspo[yesterdayInfo].name;\n let Impact = data.inspo[yesterdayInfo].impact;\n let SmallText = data.inspo[yesterdayInfo].smalltext;\n\n createText(ImgURL,personName, Impact, SmallText);\n }","function setupMain() {\n setupMenu();\n setupTreeView();\n setupAnnotations();\n\n // Add initial pane\n pm.registerPane();\n pm.renderPane();\n}","function ready(error, data, gerOutline, gerCountries) {\n if (error) throw error;\n \n console.log({data: data, gerOutline: gerOutline, gerCountries: gerCountries});\n\n \n /* Sequence */\n /* -------- */\n\n // Global data\n vis.nodes = data;\n\n // Set up and get visual variables\n setUpVisual();\n\n // Set the initial node layout\n initialVisualLayout(vis.nodes);\n\n // Set up the map\n setupMap(gerOutline, gerCountries);\n\n // Draw the map\n drawMap();\n\n // Calculate y scale for positioning (pull the lower end up a little to leave space for the text)\n vis.yScale = d3.scaleLinear().domain([0, Math.ceil(vis.nodes.length/2)]).range([vis.dims.height*0.05, vis.dims.height*0.85]);\n\n // Calculate and augment positions\n vis.nodes = nodesAlphabeticalCinema(vis.nodes);\n vis.nodes = nodesAlphabeticalCity(vis.nodes);\n vis.nodes = nodesVisitingOrder(vis.nodes);\n\n // play intro\n story();\n\n\n /* Interactivity elements */\n /* ---------------------- */\n\n // Zoom\n var zoom = d3.zoom().scaleExtent([0.75, 2.5]).on('zoom', zoomed);\n d3.select('#visual svg').call(zoom);\n\n\n // circles\n d3.selectAll('.node').on('mouseover', circleOver);\n d3.selectAll('.node').on('mousedown', circleDown);\n d3.selectAll('.node').on('mouseout', circleOut);\n d3.selectAll('.node-text').on('mouseover', textOver);\n d3.selectAll('.node-text').on('mousedown', textDown);\n d3.selectAll('.node-text').on('mouseout', textOut);\n\n}","printHeader ()\n {\n console.log();\n console.log(\"svg-min 🔩\");\n console.log();\n }","function setupSVG(svg, width, height) {\n //Remove children of svg to eventually tiles from the previous image\n svg.innerHTML = '';\n\n //Give to svg the same size as the image\n svg.setAttribute('viewBox', '0 0 '+width+' '+height);\n svg.setAttribute('width', '100%');\n svg.setAttribute('height', '100%');\n}","function startMatrix() {\n // Display background of matrix.\n background(0);\n // Display title.\n push();\n textSize(51);\n fill(255, 255, 255);\n textAlign(CENTER, CENTER);\n textFont(`Russo One`);\n text(`Welcome to the Matrix...`, width / 2, height / 2);\n textSize(50);\n fill(95, 191, 6);\n textAlign(CENTER, CENTER);\n textFont(`Russo One`);\n text(`Welcome to the Matrix...`, width / 2, height / 2);\n pop();\n // Display subtitle.\n push();\n textSize(30);\n fill(95, 191, 6);\n textAlign(CENTER, BASELINE);\n textFont(`Play`);\n text(`Will you manage to escape?`, width / 2, 400);\n pop();\n // Title to start.\n push();\n textSize(41);\n fill(255, 255, 255);\n textAlign(CENTER, BOTTOM);\n textFont(`Russo One`);\n text(`CLICK TO START.`, width / 2, 550);\n textSize(40);\n fill(95, 191, 6);\n textAlign(CENTER, BOTTOM);\n textFont(`Russo One`);\n text(`CLICK TO START.`, width / 2, 550);\n pop();\n}","function initDiagram(diagram) {\n svgDiagrams = {\n \"1\": '',\n \"2\": '',\n \"3\": '',\n \"4\": '',\n \"5\": '',\n \"6\": '',\n \"7\": ' ',\n \"8\": '',\n \"9\": '',\n \"10\": '',\n }\n\n const setHeight = (diagram) => {\n diagram.style.height = diagram.clientWidth + 'px';\n }\n const getArrayFromValues = (string) => {\n return string.split(',');\n }\n const setItems = (values, wrapper, svgDiagrams) => {\n values.forEach(value => {\n wrapper.insertAdjacentHTML('beforeend', svgDiagrams[value])\n })\n }\n const createTooltip = (wrapper) => {\n let tooltip = document.createElement('div');\n let colorbox = document.createElement('div');\n let text = document.createElement('div');\n \n tooltip.className = 'diagram__tooltip';\n colorbox.className = 'diagram__tooltip-color';\n text.className = 'diagram__tooltip-text';\n \n tooltip.append(colorbox);\n tooltip.append(text);\n \n return tooltip;\n }\n const setPositionTooltip = (tooltip, x, y) => {\n tooltip.style.opacity = 1;\n tooltip.style.left = x + '%';\n tooltip.style.top = y + '%';\n }\n const createTooltipPositionValues = (items, wrapper) => {\n let values = {};\n const setValues = () => {\n items.forEach((item, index) => {\n if (item.tagName === 'svg') {\n let path = item.children[0];\n let x;\n let y;\n switch (index) {\n case 0:\n \n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 1.75);\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 3);\n \n values[index] = { x, y };\n break;\n case 1:\n \n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 1.65);\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2.5);\n \n values[index] = { x, y };\n break;\n case 2:\n \n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 1.5);\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2);\n \n values[index] = { x, y };\n break;\n case 3:\n \n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 1.75);\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 1.65);\n \n values[index] = { x, y };\n break;\n case 4:\n \n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 2.75);\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 1.75);\n \n values[index] = { x, y };\n break;\n case 5:\n \n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 2.75);\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2);\n \n values[index] = { x, y };\n break;\n case 6:\n \n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 2.5);\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2.75);\n \n values[index] = { x, y };\n break;\n case 7:\n \n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 2);\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2.5);\n \n values[index] = { x, y };\n break;\n }\n }\n \n })\n }\n \n setValues();\n return {\n values,\n update: setValues,\n }\n }\n const setColors = (colors, items) => {\n items.forEach((item, index) => {\n if (item.tagName === 'svg') {\n let path = item.children[0];\n path.setAttribute('fill', colors[index]);\n }\n })\n }\n const sevValueTooltip = (tooltip, color, text, value) => {\n let colorBox = tooltip.children[0];\n let textBox = tooltip.children[1];\n colorBox.style.background = color;\n textBox.innerText = `${text} - ${value}`;\n }\n \n\n let values = getArrayFromValues(diagram.dataset.diagramValues);\n let tooltip = createTooltip();\n let colors = diagram.dataset.diagramColors.split(',');\n let tooltipText = diagram.dataset.diagramText.split(',');\n\n if(diagram.classList.contains('reverse')) {\n values = values.reverse();\n colors = colors.reverse();\n tooltipText = tooltipText.reverse();\n }\n\n setHeight(diagram);\n\n setItems(values, diagram, svgDiagrams);\n\n diagram.append(tooltip);\n\n\n let children = Array.from(diagram.children);\n setColors(colors, children);\n\n let tooltipPositionValues = createTooltipPositionValues(children, diagram);\n\n children.forEach((item, index) => {\n if (item.tagName === 'svg') {\n item.addEventListener('mouseenter', () => {\n let x = (tooltipPositionValues.values[index].x / diagram.clientWidth) * 100;\n let y = tooltipPositionValues.values[index].y / diagram.clientWidth * 100;\n setPositionTooltip(tooltip, x, y);\n sevValueTooltip(tooltip, colors[index], tooltipText[index], values[index]);\n })\n }\n })\n\n window.addEventListener('resize', () => setHeight(diagram));\n window.addEventListener('resize', tooltipPositionValues.update);\n\n\n return {\n showItemInfo: (index) => {\n let x = (tooltipPositionValues.values[index].x / diagram.clientWidth) * 100;\n let y = tooltipPositionValues.values[index].y / diagram.clientWidth * 100;\n setPositionTooltip(tooltip, x, y);\n sevValueTooltip(tooltip, colors[index], tooltipText[index], values[index]);\n },\n\n getItemValue: (index) => {\n return values[index];\n },\n getItemText: (index) => {\n return tooltipText[index];\n },\n getColors: () => {\n return colors;\n }\n }\n }"],"string":"[\n \"function start() {\\n const logoText = figlet.textSync(\\\"Employee Database Tracker!\\\", 'Standard');\\n console.log(logoText);\\n loadMainPrompt();\\n}\",\n \"function doInitialization() {\\n\\t\\tvar svg = \\\"\\\";\\n\\n\\t\\tif (typeof theSvgElement === \\\"undefined\\\") {\\n\\t\\t\\t// Add event to body: each time a key is hit -> launch function 'doUpdate'\\n\\t\\t\\tdocument.body.addEventListener(\\\"keyup\\\", doUpdate, false);\\n\\n\\t\\t\\t// Open new window for drawing\\n\\t\\t\\tvar myWindow = window.open('', 'Drawing', \\\"width=\\\" + WINDOWS_WIDTH + \\\", height=450\\\", '');\\n\\t\\t\\tmyWindow.document.open();\\n\\t\\t\\tmyWindow.document.writeln('

Drawing

');\\n\\t\\t\\tmyWindow.document.writeln('
');\\n\\t\\t\\tmyDoc = myWindow.document;\\n\\t\\t\\tmyWindow.document.close();\\n\\n\\n\\t\\t\\tsvg = \\\"\\\";\\n\\n\\t\\t\\t// Add basic information about SVG drawing\\n\\t\\t\\tsvg += \\\"\\\" + \\\"My drawing\\\" + \\\"\\\";\\n\\t\\t\\tsvg += \\\"Write drawing description here...\\\";\\n\\n\\t\\t\\tsvg += `\\n\\t\\t\\t\\t`;\\n\\n\\t\\t\\t// Add containers: dimension, origin and lines\\n\\t\\t\\tsvg += \\\"\\\\n\\\";\\n\\t\\t\\tsvg += \\\"\\\\n\\\";\\n\\t\\t\\tsvg += \\\"\\\\n\\\";\\n\\t\\t\\tsvg += \\\"\\\\n\\\";\\n\\n\\t\\t\\t// Draw SVG in MyDoc window\\n\\t\\t\\tmyDoc.getElementById(\\\"drawing1\\\").innerHTML = svg;\\n\\t\\t\\t// catch SVG in theSvgElement variable for further function\\n\\t\\t\\ttheSvgElement = myDoc.getElementsByTagName(\\\"svg\\\")[0];\\n\\n\\t\\t\\t// Pattern for Arrow (marker) with default color value\\n\\t\\t\\tdoArrowpattern();\\n\\n\\t\\t}\\n\\n\\t\\t// Start function 'doUpdate' for the first time\\n\\t\\tdoUpdate();\\n\\t}\",\n \"function init() {\\n const logoText = logo({ name: \\\"Employee Manager\\\" }).render();\\n console.log(logoText);\\n // load our prompts\\n loadPrompts();\\n}\",\n \"function main() {\\n // construct svg on the fly\\n var gMain = get(\\\"main\\\");\\n empty(gMain); // RESET\\n // handles to SVG\\n var gSvg = mk(\\\"svg\\\");\\n gSvg.style.height = \\\"380px\\\";\\n gSvg.style.width = \\\"600px\\\";\\n gSvg.style.cursor = \\\"default\\\";\\n gMain.appendChild(gSvg);\\n var gEdges = mk(\\\"g\\\");\\n var gNodes = mk(\\\"g\\\");\\n var gHover = mk(\\\"g\\\");\\n gSvg.appendChild(gEdges);\\n gSvg.appendChild(gHover);\\n gSvg.appendChild(gNodes);\\n var gLookup = {};\\n var gChoices = [];\\n var gPerm = random_permutation();\\n var gRevealed = false;\\n var gReveal = get(\\\"reveal\\\");\\n var gTurbo = get(\\\"turbo\\\");\\n var gConfidence = get(\\\"confidence\\\");\\n var gEquivalence;\\n if (globalTricky) {\\n gEquivalence = random_tricky_equivalence();\\n } else {\\n gEquivalence = id_equivalence();\\n }\\n gConfidence.style.color = \\\"black\\\";\\n gReveal.disabled = 0;\\n gReveal.value = \\\"Reveal\\\";\\n gTurbo.disabled = false;\\n gReveal.onclick = function () { // RESET\\n reschedule(0, function () {});\\n gNodes.childNodes.map(function (x) {\\n x.reveal();\\n });\\n gSvg.style.cursor = \\\"pointer\\\";\\n gRevealed = true;\\n gReveal.value = \\\"Reset\\\";\\n gReveal.onclick = main;\\n };\\n gTurbo.onclick = function () {\\n if (gTurbo.checked) {\\n globalAuto = true;\\n main();\\n } else {\\n globalAuto = false;\\n reschedule(0, main);\\n }\\n };\\n // I need this to run *before* the internal handlers.\\n gSvg.addEventListener('click', function () {\\n if (gRevealed) {\\n main();\\n }\\n }, true);\\n // setup nodes\\n var gColors = random_pick(globalColors);\\n mapWithKey(globalPoints, function (ptname, pt) {\\n var shape = mk(\\\"circle\\\");\\n shape.setAttribute(\\\"cx\\\", pt[0]);\\n shape.setAttribute(\\\"cy\\\", pt[1]);\\n shape.setAttribute(\\\"r\\\", 10);\\n if (!globalAuto) {\\n shape.setAttribute(\\\"fill\\\", \\\"black\\\");\\n } else {\\n shape.setAttribute(\\\"fill\\\", \\\"grey\\\");\\n };\\n shape.selected = 0;\\n // a question of great philosophical importance...\\n // should the true color or the permuted color be stored!\\n // it's all implementation details, but the user might\\n // feel cheated if they look at the source...\\n shape.color = gPerm[gColors[gEquivalence[ptname]]];\\n shape.reveal = function() {\\n if (!shape.revealed) {\\n shape.setAttribute(\\\"fill\\\", COLORS[shape.color]);\\n shape.revealed = true;\\n }\\n };\\n shape.revealed = false;\\n gNodes.appendChild(shape);\\n gLookup[ptname] = shape;\\n });\\n // setup edges\\n globalDot.map( function(edge) {\\n var line = mk(\\\"line\\\");\\n // make it easier to actually click the line\\n var hoverBox = mk(\\\"line\\\");\\n [line, hoverBox].map( function(x) {\\n x.setAttribute(\\\"x1\\\", globalPoints[edge[0]][0]);\\n x.setAttribute(\\\"y1\\\", globalPoints[edge[0]][1]);\\n x.setAttribute(\\\"x2\\\", globalPoints[edge[1]][0]);\\n x.setAttribute(\\\"y2\\\", globalPoints[edge[1]][1]);\\n });\\n if (!globalAuto) {\\n line.setAttribute(\\\"stroke\\\", \\\"black\\\");\\n } else {\\n line.setAttribute(\\\"stroke\\\", \\\"grey\\\");\\n };\\n line.setAttribute(\\\"stroke-width\\\", \\\"1px\\\");\\n hoverBox.setAttribute(\\\"stroke\\\", \\\"rgba(255,255,255,0)\\\"); // none doesn't work\\n hoverBox.setAttribute(\\\"stroke-width\\\", \\\"15px\\\");\\n if (!globalAuto) {\\n hoverBox.onmouseover = function () {\\n if (!gRevealed) {\\n line.setAttribute(\\\"stroke\\\", \\\"cyan\\\");\\n line.setAttribute(\\\"stroke-width\\\", \\\"3px\\\");\\n }\\n };\\n hoverBox.onmouseout = function () {\\n if (!gRevealed) {\\n // duplicate\\n line.setAttribute(\\\"stroke\\\", \\\"black\\\");\\n line.setAttribute(\\\"stroke-width\\\", \\\"1px\\\");\\n }\\n };\\n }\\n var select = function () {\\n if (!gRevealed) {\\n gRevealed = true;\\n gLookup[edge[0]].reveal();\\n gLookup[edge[1]].reveal();\\n var makeGray = function () {\\n gEdges.childNodes.map( function (x) {\\n x.setAttribute(\\\"stroke\\\", \\\"gray\\\");\\n });\\n gNodes.childNodes.map( function (x) {\\n if (!x.revealed) {\\n x.setAttribute(\\\"fill\\\", \\\"gray\\\");\\n }\\n });\\n };\\n globalTrials++;\\n if (gLookup[edge[0]].color == gLookup[edge[1]].color) {\\n makeGray();\\n gSvg.style.cursor = \\\"pointer\\\";\\n line.setAttribute(\\\"stroke-width\\\", \\\"3px\\\");\\n line.setAttribute(\\\"stroke\\\", \\\"red\\\");\\n globalTrials = 0;\\n gConfidence.style.color = \\\"red\\\";\\n return false;\\n } else {\\n if (!globalAuto) {\\n makeGray();\\n gSvg.style.cursor = \\\"pointer\\\";\\n };\\n line.setAttribute(\\\"stroke-width\\\", \\\"3px\\\");\\n line.setAttribute(\\\"stroke\\\", \\\"green\\\");\\n gConfidence.style.color = \\\"black\\\";\\n gConfidence.textContent = Math.min((1-Math.pow(1-1/globalDot.length, globalTrials))*100, 99.99).toFixed(2);\\n return true;\\n }\\n }\\n };\\n if (!globalAuto) {\\n hoverBox.onclick = function () { select(); };\\n hoverBox.style.cursor = \\\"pointer\\\";\\n }\\n gEdges.appendChild(line);\\n gHover.appendChild(hoverBox);\\n gChoices.push(select);\\n });\\n if (globalAuto) {\\n reschedule(0, function () {\\n if(random_pick(gChoices)()) {\\n // nope, try again\\n reschedule(140, function () {\\n main();\\n });\\n } else {\\n // caught him! stop\\n }\\n });\\n }\\n}\",\n \"function init() {\\n createWelcomeGraphic();\\n console.log('WELCOME TO ASSOCIATE MANAGER!');\\n console.log('FOLLOW THE PROMPTS TO COMPLETE YOUR TASKS.');\\n}\",\n \"function main() {\\r\\n initFlags();\\r\\n fixMarkup();\\r\\n changeLayout();\\r\\n initConfiguration();\\r\\n}\",\n \"function startPage() {\\n background(BG_COLOR);\\n\\n //text info\\n fill(TEXT_COLOR_START_PAGE);\\n strokeWeight(1);\\n stroke(TEXT_COLOR_START_PAGE);\\n textSize(50);\\n textAlign(CENTER, CENTER);\\n text(START_WELCOME, START_PAGE_X, START_PAGE_Y);\\n legend();\\n textSize(25);\\n text(START_KEY_TEXT, START_PAGE_X, START_PAGE_Y + 400);\\n}\",\n \"function main() {\\n init(fontSize);\\n\\n renderModel = ReadModel();\\n renderUI = ReaderBaseFrame(RootContainer);\\n renderModel.init(function (data) {\\n renderUI(data);\\n });\\n\\n EventHandler();\\n }\",\n \"startup()\\n\\t{\\n\\t\\tthis.angle = 1;\\n\\t\\tthis.rows(5, 11, 1);\\n\\t\\tthis.action(0);\\n\\t}\",\n \"function init() {\\n\\n svg = d3\\n .select(\\\"#d3-container-1\\\")\\n .append(\\\"svg\\\")\\n\\n draw(); // calls the draw function\\n }\",\n \"function logoArt() {\\n console.log(logo(config).render());\\n start();\\n}\",\n \"configureStartingData() {\\n // We don't use a singleton because defaults could change between calls.\\n new DrawingDefaultsConfig(this, this._last_tool).render(true);\\n }\",\n \"function main(){\\n\\t//Initialice with first episode\\n\\tvar sel_episodes = [1]\\n\\t//collage(); //Create a collage with all the images as initial page of the app\\n\\tpaintCharacters();\\n\\tpaintEpisodes();\\n\\tpaintLocations(sel_episodes);\\n}\",\n \"function setup(){\\n // String IDs of the 3 SVG containers\\n var svgIdList = [\\\"vis1\\\", \\\"vis2\\\", \\\"vis3\\\"];\\n\\n // Foreach SVG container in the HTML page, save their references and dimensions into the appropriate global list variables\\n for (i = 0; i < 3; i++) {\\n var svgTuple = grabSvgDimensions(svgIdList[i]);\\n svg_list.push(svgTuple[0]);\\n svg_width_list.push(svgTuple[1]);\\n svg_height_list.push(svgTuple[2]);\\n }\\n\\n loadData(\\\"Pokemon-Dataset.csv\\\");\\n}\",\n \"function initSVG() {\\n \\t\\tsvg = d3.select('body')\\n \\t\\t.append('svg')\\n \\t\\t.attr('viewBox', '0 0 600 600')\\n \\t\\t.attr('style', 'width: 300px; height: 300px;');\\n \\t}\",\n \"function SVGComic(evt, opts) {\\n /// The main SVGComic object\\n /// The calling event\\n /// The desired options\\n /// \\n /// \\n /// \\n /// \\n /// \\n /// \\n /// \\n /// \\n /// \\n /// \\n \\n if (window.svgDocument == null) {\\n svgDocument = evt.target.ownerDocument;\\n }\\n\\n this.document = svgDocument;\\n this.svg = this.document.rootElement;\\n this.ns = 'http://www.w3.org/2000/svg';\\n\\n if (opts == null) {\\n opts = new Array();\\n }\\n\\n var date = new Date();\\n\\n this.author = opts['author'] || 'A. N. Onymous';\\n\\n this.copyright = opts['copyright'] || \\\"© \\\" + date.getFullYear() + \\\" \\\" + this.author + \\\". All rights reserved.\\\";\\n this.fill = opts['fill'] || 'black';\\n this.fontSize = opts['fontSize'] || 12;\\n this.height = opts['height'] || 300;\\n this.subtitle = opts['subtitle'] || '';\\n this.textColor = opts['textColor'] || 'white';\\n this.title = opts['title'] || 'Untitled';\\n this.width = opts['width'] || 800;\\n this.xGutter = opts['xGutter'] || 10;\\n\\n// this.x = opts['x'] || window.innerWidth / 2 - this.width / 2;\\n// this.y = opts['y'] || window.innerHeight / 2 - this.height / 2;\\n\\n this.panels = new Array();\\n\\n this.initialize();\\n}\",\n \"function main() {\\n\\n var gears = createElement('img')\\n gears.src = './gears.svg'\\n global.app.appendChild(gears)\\n\\n if (global.NAV.geolocation) {\\n global.NAV.geolocation.getCurrentPosition(app.onSuccess, app.onError)\\n }\\n}\",\n \"function start_drawing() {\\n $('#normal_ear').lazylinepainter( \\n {\\n \\\"svgData\\\": pathObj,\\n \\\"strokeWidth\\\": 2,\\n \\\"strokeColor\\\": \\\"#7f857f\\\"\\n }).lazylinepainter('paint'); \\n }\",\n \"function initApp(evt) {\\n SvgDoc = evt.target.ownerDocument;\\n SvgInfoText = document.getElementById(\\\"textbox\\\").firstChild;\\n SvgDebugText = document.getElementById(\\\"debugtext\\\").firstChild;\\n SvgNoticeText = document.getElementById(\\\"textNotice\\\").firstChild;\\n}\",\n \"function start() { \\n initiate_graph_builder();\\n initiate_job_info(); \\n initiate_aggregate_info();\\n initiate_node_info();\\n}\",\n \"function initialize() {\\n const logoText = logo({ name: \\\"Primary C M S\\\" }).render();\\n console.log(logoText);\\n mainOptions();\\n}\",\n \"function createWelcomeGraphic() {\\n\\n}\",\n \"async function main() {\\n new p5((p_) => {\\n p = p_;\\n p.setup = setup;\\n // p.draw = draw;\\n }, elements.container);\\n\\n gui\\n .add(settings, 'targetClass', ['all'].concat(_.values(IMAGENET_CLASSES)))\\n .onChange(restart);\\n gui.add(settings, 'gridSize', 3, 100).step(1).onChange(restart);\\n gui.add(settings, 'minStrokeWidth', 1, 10).step(1).onChange(restart);\\n gui.add(settings, 'maxStrokeWidth', 10, 500).step(1).onChange(restart);\\n gui.add(settings, 'lineCount', 1, 25).step(1).onChange(restart);\\n gui.add(settings, 'lineAlpha', 0.1, 1).step(0.01).onChange(restart);\\n gui.add(settings, 'linePointCurvePoint', 1, 50).step(1).onChange(restart);\\n gui.add(settings, 'randomColorCount', 1, 50).step(1).onChange(restart);\\n gui.add(settings, 'populationCount', 100, 1000).step(1);\\n gui.add(settings, 'mutationRate', 0.1, 0.99).step(0.01);\\n gui.add(settings, 'maxGeneration', 1, 100).step(1);\\n gui.add(settings, 'matchThreshold', 0.1, 0.99).step(0.01);\\n gui.add(settings, 'saveImage');\\n gui.add(settings, 'restart');\\n gui.add(settings, 'stop');\\n gui.close();\\n\\n if (ENABLE_STATS) {\\n stats.showPanel(0);\\n elements.stats.appendChild(stats.dom);\\n }\\n}\",\n \"function readyStart(svg){\\n\\t\\n\\n svg.input.textArea(18, 10, \\\"It Takes Carbon Fiber and Kevlar to Make the Best Basketball Shoes in the World\\\", {width: '200', class: 'heading'});\\n \\n svg.input.textArea(18, 97, \\\"When you look at basketball shoes, what do you see? A big swoosh. Three stripes. Michael Jordan. A billboard molded to your feet. But do you see the technology? Though maybe not as blatant as an Intel sticker on your laptop, every shoe showcases its own advanced technology. Don't worry, you can't miss it on these, the best basketball shoes on the planet. Because they roll with carbon fiber and Kevlar.\\\", {width: '200'});\\n\\n svg.input.list(228, 10, 'Nullam eget purus enim, quis faucibus sapien. \\\\nVivamus semper nulla vel sapien fringilla ullamcorper. \\\\nIn hac habitasse platea dictumst. ',{width: '150'});\\n svg.input.list(228, 100, 'Nullam eget purus enim, quis faucibus sapien. \\\\nVivamus semper nulla vel sapien fringilla ullamcorper. \\\\nIn hac habitasse platea dictumst. ',{width: '150'});\\n\\t\\n\\t\\n\\t$('.svg-container').transition({ x: '0', y: '20px', height: '400px'}, 1000, 'snap');\\n\\t\\n\\t$('.view .message').removeClass('loading');\\n\\n\\t\\n}\",\n \"function drawStart() {\\n\\n console.log('in landingPageStart()');\\n draw_static_word_cloud();\\n display_image_mortality(1);\\n}\",\n \"function init() {\\n\\t\\tbuildBar();\\n\\t\\tbuildBubble();\\n\\t\\tbuildGauge();\\n\\t\\t//buildMeta();\\n\\t}\",\n \"function initializeNodeInfo() {\\n var infoBox = d3\\n .select(\\\"#sequence\\\")\\n .append(\\\"svg:svg\\\")\\n .attr(\\\"width\\\", 300)\\n .attr(\\\"height\\\", 300)\\n .attr(\\\"id\\\", \\\"infobox\\\");\\n}\",\n \"function instructions() {\\n stroke('Black'); fill('White')\\n textSize(15)\\n const thecopy = `The Chaos Game! by Daniel Reeves and Cantor Soule-Reeves\\n\\nDrawing with math ${\\\" \\\".repeat(35)} (${width}x${height} pixels)\\n${noa} attractors, ` +\\n`${hub===1 ? \\\"w/\\\" : \\\"w/o\\\"} a hub, ` +\\n`excluding ${cac}, partial teleport ${fracify(pat)}\\n\\n• SPACE to toggle hyperspeed ⟶\\n• CLICK (or R) for new fractal\\n• G to regenerate (or 1/2/3/etc for other color schemes)`\\n/*\\n N to refresh everything but number of attractors\\n H to refresh everything but whether there's a hub\\n P to refresh everything but the partial teleport\\n*/\\n text(thecopy, 5, 15)\\n const baretitle = rawnamify(noa, hub, cac, pat)\\n let title = titlehash[baretitle]\\n if (title === undefined) title = `untitled ${baretitle}`\\n fill(1, 0, .3); textSize(width < 500 ? 37 :\\n width < 640 ? 65 :\\n width < 800 ? 68 :\\n width < 1000 ? 70 :\\n width < 2000 ? 100 : \\n width < 3000 ? 150 : 300)\\n push()\\n textAlign(LEFT, TOP)\\n text(`“${title}”`, 5, 160, width-10, height-160)\\n pop()\\n}\",\n \"function setup() {\\n createCanvas(500, 500, SVG)\\n noLoop()\\n angleMode(DEGREES)\\n rectMode(CENTER)\\n}\",\n \"function visualizationLogic(){\\n console.log(\\\"Visualization Logic\\\")\\n //text\\n //INFO from: https://earthquake.usgs.gov/earthquakes/browse/significant.php#sigdef\\n // let t2 = createP('Events in this list and shown in red on our real-time earthquake map and list are considered “significant events’,
and they are determined by a combination of magnitude, number of Did You Feel It responses, and PAGER alert level.');\\n // t2.class('small');\\n // t2.parent('canvas1');\\n // t2.position(0,0);\\n\\n //-------------------------------------------------------------//\\n // 1. Magnitude Level //\\n //-------------------------------------------------------------//\\n\\n //Variables for All\\n let legendW = 60;\\n //Variables for Magnitude\\n let Mag_Legends = [0, 1, 3, 4.5, 6, 9];\\n let Mag_xPos = (cWidth - Mag_Legends.length * legendW)/2; //CENTER THEM\\n let Mag_margin = 10;\\n let Mag_angle = 0;\\n\\n //Variables for Significance\\n let minSig = minValue(quakes, 'sig');\\n let maxSig = maxValue(quakes, 'sig');\\n console.log(`MinSig is ${minSig} MaxSig is ${maxSig}`);\\n let sig_Legends = [0, 100, 200, 400, 600, 1000, 1500];\\n let sig_xPos = (cWidth - sig_Legends.length * legendW)/2; //CENTER THEM\\n let sig_margin = 10;\\n\\n textFont(font1);\\n //\\n push();\\n translate(Mag_xPos, legendW); \\n for (let i = 0; i < Mag_Legends.length; i ++) {\\n let myAPT_W, myAPT_H;\\n myAPT_W = map(1000, 0, 1500, 1, legendW/2); \\n myAPT_H = 2 * myAPT_W;\\n Mag_angle = radians ( map(Mag_Legends[i], 0, 9, 0, 90) ); //Input, min, max, 0, 90\\n //This is the class for the buildings;\\n //\\n push();\\n let xTrans = legendW/2 - myAPT_W/2;\\n translate(xTrans, 0); // ****************. FIX THIS PART\\n rotate(Mag_angle);\\n //2. Building \\n let mySigC = sigScale(1000).hex();\\n let myMagC = magScale(Mag_Legends[i]).hex();\\n myMagC = color(myMagC);\\n myMagC.setAlpha(150); // Add Alpha\\n fill(mySigC);\\n strokeWeight(1);\\n stroke('#000000');\\n rect(0, 0, myAPT_W, - myAPT_H);//x, y, w, h\\n //3. Window\\n fill('#ffffff');\\n strokeWeight(0.5);\\n let myWindowW = map(400, 0, 1500, 1, legendW/7);\\n let myWindwX1 = legendW/2 - myAPT_W/5 - myWindowW/2 - xTrans;\\n let myWindwX2 = myWindwX1 + 2*(myAPT_W/5) ;\\n rect(myWindwX1, - myAPT_H/4 + myWindowW/2, myWindowW, - myWindowW); \\n rect(myWindwX1, - (myAPT_H/4) * 2 + myWindowW/2, myWindowW, - myWindowW);\\n rect(myWindwX1, - (myAPT_H/4) * 3 + myWindowW/2, myWindowW, - myWindowW);\\n rect(myWindwX2, - myAPT_H/4 + myWindowW/2, myWindowW, - myWindowW); \\n rect(myWindwX2, - (myAPT_H/4) * 2 + myWindowW/2, myWindowW, - myWindowW);\\n rect(myWindwX2, - (myAPT_H/4) * 3 + myWindowW/2, myWindowW, - myWindowW);\\n //4. Rooftop\\n let x1, y1;\\n x1 = legendW/2 - myAPT_W/2 - xTrans;\\n y1 = - myAPT_H;\\n let h = map(1000, 0, 1500, 1, myWindowW);\\n line(x1, y1, x1 - h, y1 - h); //Left\\n line(x1 + myAPT_W, y1, x1 + myAPT_W + h, y1 - h); //Right\\n line(x1 - h, y1 - h, x1 + myAPT_W + h, y1 - h); //top\\n pop();\\n //1. Ground\\n noStroke(); \\n fill(myMagC);\\n rect(Mag_margin, 0, legendW - 2 * Mag_margin, 15 * map(Mag_Legends[i], 0, 9, 0, 90)/90 ); ////x, y, w, h\\n //5. -- Legend Text Below -- //\\n noStroke();\\n fill('orange');\\n textSize(12);\\n textAlign(CENTER);\\n text(Mag_Legends[i], legendW/2, 35); //text,x, y\\n //6. //Move to the next spot to the Right (Add scale)\\n translate(legendW, 0); \\n }\\n pop();\\n //Text Description\\n textAlign(CENTER);\\n textSize(15);\\n text(\\\"Magnitude Level\\\", cWidth/2, legendW*1.9); \\n\\n //-------------------------------------------------------------//\\n // 2. Significance Level //\\n //-------------------------------------------------------------//\\n // Cali range 0 from 640, World Range from 0 to 1492\\n\\n push();\\n translate(sig_xPos, legendYPos + legendW + sig_margin); //x, y\\n for (let i = 0; i < sig_Legends.length; i ++) {\\n let myAPT_W, myAPT_H;\\n myAPT_W = map(sig_Legends[i], 0, 1500, 1, legendW/2); //Input, min, max,\\n myAPT_H = 2 * myAPT_W; //2 Times over -> Max will be 60\\n //This is the class for the buildings;\\n //1. Ground\\n // noStroke();\\n // fill(magScale(0).hex()); //Show the Color at Mag = 0;\\n // //fill('rgba(150, 75, 0, 0.5)'); // Brown //************** Should be re-written \\n // rect(sig_margin, 0, legendW - 2 * sig_margin, 20); ////x, y, w, h\\n //2. Building //Half Point: legendW/2\\n let myC = sigScale(sig_Legends[i]).hex();\\n fill(myC);\\n strokeWeight(1);\\n stroke('#000000');\\n rect(legendW/2 - myAPT_W/2, 0, myAPT_W, - myAPT_H);//x, y, w, h\\n //3. Apartment Windows\\n fill('#ffffff');\\n strokeWeight(0.5);\\n let myWindowW = map(sig_Legends[3], 0, 1500, 1, legendW/7);\\n if (sig_Legends[i] < 200) { // No Window\\n console.log(\\\"Sig level below 200 - No Window\\\");\\n }\\n if (sig_Legends[i] >= 200 && sig_Legends[i] < 400) { //One Window\\n console.log(\\\"Sig level between 200 & 400\\\"); \\n rect(legendW/2 - myWindowW/2, - myAPT_H/2 + myWindowW/2, myWindowW, - myWindowW); \\n } \\n if (sig_Legends[i] >= 400 && sig_Legends[i] < 600) { //Two Windows\\n console.log(\\\"Sig level between 400 & 600\\\"); \\n rect(legendW/2 - myWindowW/2, - myAPT_H/3 + myWindowW/2, myWindowW, - myWindowW); \\n rect(legendW/2 - myWindowW/2, - (myAPT_H/3) * 2 + myWindowW/2, myWindowW, - myWindowW);\\n }\\n if (sig_Legends[i] >= 600 && sig_Legends[i] < 1000) { //Two Windows * 2 Cols\\n console.log(\\\"Sig level between 600 & 1000\\\"); \\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - myAPT_H/3 + myWindowW/2, myWindowW, - myWindowW); \\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/3) * 2 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - myAPT_H/3 + myWindowW/2, myWindowW, - myWindowW); \\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/3) * 2 + myWindowW/2, myWindowW, - myWindowW);\\n }\\n if (sig_Legends[i] >= 1000 && sig_Legends[i] < 1500) { //Two Windows * 3 Cols\\n console.log(\\\"Sig level between 1000 & 1500\\\"); \\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - myAPT_H/4 + myWindowW/2, myWindowW, - myWindowW); \\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/4) * 2 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/4) * 3 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - myAPT_H/4 + myWindowW/2, myWindowW, - myWindowW); \\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/4) * 2 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/4) * 3 + myWindowW/2, myWindowW, - myWindowW);\\n }\\n if (sig_Legends[i] >= 1500) { //Two Windows * 3 Cols\\n console.log(\\\"Sig level Over 1500\\\"); \\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - myAPT_H/6 + myWindowW/2, myWindowW, - myWindowW); \\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 2 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 3 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 4 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 - myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 5 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - myAPT_H/6 + myWindowW/2, myWindowW, - myWindowW); \\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 2 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 3 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 4 + myWindowW/2, myWindowW, - myWindowW);\\n rect(legendW/2 + myAPT_W/5 - myWindowW/2, - (myAPT_H/6) * 5 + myWindowW/2, myWindowW, - myWindowW);\\n }\\n //4. RoofTop - 3 lines;\\n let x1, y1, x2, y2;\\n x1 = legendW/2 - myAPT_W/2;\\n y1 = - myAPT_H;\\n let h = map(sig_Legends[i], 0, 1500, 1, myWindowW);\\n line(x1, y1, x1 - h, y1 - h); //Left\\n line(x1 + myAPT_W, y1, x1 + myAPT_W + h, y1 - h); //Right\\n line(x1 - h, y1 - h, x1 + myAPT_W + h, y1 - h); //top\\n //5. -- Legend Text Below -- //\\n noStroke();\\n fill('#cccccc');\\n textSize(12);\\n textAlign(CENTER);\\n text(sig_Legends[i], legendW/2, 15); //text,x, y\\n //6. //Move to the next spot to the Right (Add scale)\\n translate(legendW, 0); \\n }\\n pop();\\n //Text Description\\n textAlign(CENTER);\\n textSize(15);\\n fill('#000000');\\n text(\\\"Significance Level\\\", cWidth/2, legendYPos + legendW*1.75);\\n\\n\\n}\",\n \"function init(evt) {\\n svgDocument = evt.target.ownerDocument; activeElements = svgDocument.getElementById(\\\"activeElements\\\");\\n world = svgDocument.getElementById(\\\"world\\\"); enemyShots = svgDocument.getElementById(\\\"enemyShots\\\");\\n mainPanel1 = svgDocument.getElementById(\\\"mainPanel1\\\"); mainPanel0 = svgDocument.getElementById(\\\"mainPanel0\\\");\\n eCompass = svgDocument.getElementById(\\\"compass\\\"); eDeepMeter = svgDocument.getElementById(\\\"deepMeter\\\");\\n eNums = svgDocument.getElementById(\\\"nums\\\").firstChild; shipAlertLeft = svgDocument.getElementById(\\\"shipAlertLeft\\\");\\n eDamage = svgDocument.getElementById(\\\"damage\\\").firstChild; shipAlertRight = svgDocument.getElementById(\\\"shipAlertRight\\\");\\n eMessage = svgDocument.getElementById(\\\"message\\\").firstChild; eScore = svgDocument.getElementById(\\\"score\\\").firstChild;\\n eElapsed = svgDocument.getElementById(\\\"elapsed\\\").firstChild; eLevel = svgDocument.getElementById(\\\"level\\\").firstChild;\\n subDamage = svgDocument.getElementById(\\\"subDamage\\\"); eThumbs = svgDocument.getElementById(\\\"thumbs\\\");\\n levelReached = svgDocument.getElementById(\\\"levelReached\\\");\\n Settings.setSounds(null);\\n IntroOutro.init();\\n}\",\n \"function Main()\\r{\\r try\\r {\\r var document= app.activeDocument\\r\\r if ( document != null )\\r {\\r CheckLayers(document.layers);\\r // Save het document eerst zodat de svg altijd hetzelfde is als het bewaarde\\r // document. Dit doen we na de check zodat we alleen een goedsituatie bewaren!\\r document.save();\\r\\r var saveName = document.name;\\r saveName = saveName.substring(0,saveName.lastIndexOf(\\\".ai\\\"));\\r // Save het document nu als SVG. Dit sluit tevens het document! \\r if ( saveName != null ) \\r if ( checkValidMaterial(saveName) ) \\r SaveAsSVG(document, saveName);\\r }\\r }\\r catch (e)\\r {\\r alert(SCRIPT_NAME + \\\" execution stopped, error: \\\" + \\\"\\\\n\\\\n\\\" + e);\\r }\\r}\",\n \"function initialize() {\\n\\tinitialColorScale(imageData);\\n\\tloadIconImages(imageData);\\n\\tdrawBarChart(imageData);\\n\\tdrawSliderBar(imageData);\\n\\tdrawTreemap(imageData);\\n}\",\n \"start () {\\n // Draw the starting point for the view with no elements\\n }\",\n \"start () {\\n // Draw the starting point for the view with no elements\\n }\",\n \"function setup(){\\n initializeApplication(function(){\\n d3.select(\\\"#curtain_text\\\").text(\\\"loading...\\\");\\n loadElements(function(){\\n d3.select(\\\"#curtain_text\\\").text(\\\"loading....\\\");\\n loadNuclides(function(){\\n d3.select(\\\"#curtain_text\\\").text(\\\"loading.....\\\");\\n renderApplication(function(){\\n questions.finalize();\\n display.transition_speed = 0.8;\\n d3.select(\\\"#curtain_text\\\").text(\\\"welcome!\\\");\\n d3.select(\\\"#curtain\\\").transition().duration(1000).style(\\\"opacity\\\",0);\\n d3.timer(function(){\\n d3.select(\\\"#curtain\\\").style(\\\"display\\\", \\\"none\\\");\\n return true;\\n }, 1100);\\n });\\n });\\n });\\n });\\n}\",\n \"function init() {\\n const args = minimist(process.argv.slice(2))\\n const types = (args.types || 'svg,ttf,woff,woff2,eot')\\n .split(',')\\n .map(ext => ext.trim())\\n const options = {\\n paths : getPaths(args._),\\n outputDir : args.o || args.out,\\n fontName : args.n || args.name,\\n fontsPath : args.f || args.fontspath,\\n types : types,\\n css : args.c || args.css,\\n cssPath : args.csspath,\\n cssTemplate : args.csstp,\\n json : args.j || args.json,\\n jsonPath : args.jsonpath,\\n html : args.html,\\n htmlPath : args.htmlpath,\\n htmlTemplate : args.htmltp,\\n silent : args.s || args.silent || false,\\n classPrefix : args.p || args.prefix,\\n baseTag : args.t || args.tag,\\n normalize : args.normalize,\\n round : args.round,\\n descent : args.descent,\\n fixedWidth : args.mono,\\n fontHeight : args.height,\\n centerHorizontally : args.center\\n }\\n const calledEmpty = Object.keys(args).length === 1 && args._.length === 0\\n const formats = [ 'json' ]\\n\\n // Parse Boolean values that default to true\\n formats.forEach(key => {\\n if (typeof options[key] !== 'undefined') {\\n options[key] = options[key] === 'true'\\n }\\n })\\n\\n // Show usage if missing any arguments or called with -h / --help\\n if (args.h || args.help || calledEmpty) {\\n showHelp()\\n return process.exit()\\n }\\n\\n run(options)\\n}\",\n \"function setupDrawing8() {\\n\\n let loopLength = 6\\n\\n let svgs = [humanSVG, owlSVG, headSVG, dinoSVG, lotusSVG, heartHandsSVG, musclesSVG]\\n\\n // Use my included SVG library to load these commands and scale the SVG\\n // This library lets me load the SVG, but also scale it to fit a certain size\\n // Since SVGs can be any size, this keeps any possible SVG I load to a uniform size\\n // ...so that I don't have to change the rest of the drawing code\\n let svgImage = new SVGImage(svgs[4])\\n svgImage.scaleToFit(WIDTH * .7, HEIGHT * .7, true)\\n\\n\\n function setup(p) {\\n p.createCanvas(WIDTH, HEIGHT);\\n p.colorMode(p.HSL);\\n p.background(0);\\n }\\n\\n function draw(p) {\\n\\n let loopPct = (p.millis() * .001 / loopLength) % 1\\n\\n p.background(0, 0, 0, .05)\\n\\n p.push()\\n p.translate(p.width / 2, p.height / 2);\\n\\n\\n // Draw a bunch of circles, using various looping tricks\\n\\n for (var i = 0; i < 120; i++) {\\n let hue = (loopPct * 360 + i * 10) % 360\\n let pastel = Math.sin(loopPct * Math.PI * 2 + i * 2)\\n\\n p.stroke(hue, 100, 80, .8)\\n p.fill(hue, 100, 50 + 50 * pastel, .7 - i * .003)\\n let x = (p.noise(i) - .5) * p.width * 1.2\\n let y = (p.noise(i + 100) - .5) * p.height * 1.2\\n p.circle(x, y, 40 + 20 * Math.sin(loopPct * Math.PI * 2 + i))\\n }\\n\\n p.stroke(0, 100, 100)\\n p.fill(0)\\n p.beginShape()\\n let count = 10;\\n for (var i = 0; i < count; i++) {\\n let theta = Math.PI * 2 * i / count\\n let r = p.width * 2\\n p.vertex(r * Math.cos(theta), r * Math.sin(theta))\\n }\\n\\n svgImage.draw(p, true)\\n p.endShape()\\n\\n // Repeatedly draw the SVG shape, but fade it out\\n let outlineCount = 10\\n for (var i = 0; i < outlineCount; i++) {\\n // Make a second percentage that decides how far out it is\\n // This is a handy trick for\\n // \\\"things that get continually larger, but forever\\\"\\n\\n let pct2 = (loopPct + i / outlineCount) % 1\\n p.push()\\n p.scale(1 + pct2 * 3, 1 + pct2)\\n p.noFill()\\n p.stroke(0, 100, 100, (1 - pct2) * .3)\\n svgImage.draw(p)\\n p.pop()\\n }\\n\\n p.pop()\\n\\n }\\n\\n\\n let element = getP5Element(8) // <- Make sure to change this to the right index\\n let myP5 = new p5(function(p) {\\n p.setup = () => setup(p)\\n p.draw = () => draw(p)\\n }, element);\\n}\",\n \"function startup() {\\n const container = document.getElementsByClassName('main-interface')[0];\\n\\n const renderer = new Step3Renderer(container);\\n const eventManager = new EventManager();\\n\\n const events = eventManager.getEvents()\\n\\n renderer.render(events);\\n\\n const mapView = document.getElementsByClassName('map-view')[0];\\n const mapsInterface = new MapsInterface(mapView, { lat: 0, lng: 0 });\\n\\n setupMap(events, mapsInterface);\\n}\",\n \"draw() {\\n // Set up the nodes and links of the graph.\\n this.addNodes();\\n this.addLinks();\\n\\n // Create the d3 simulation.\\n this.createSimulation();\\n\\n // Set up SVG to draw the simulation.\\n this.setupSvg();\\n }\",\n \"function instruction() {\\n fill(255);\\n textSize(20);\\n text(\\\"Press [s] to go back to splash page.\\\", width - 125, offset + 25 , 200, 100);\\n text(\\\"Press [r] to go look at the regulations page again.\\\", width - 125, 50 + offset + 50, 200, 100);\\n noFill();\\n strokeWeight(3);\\n rect(width - 125, offset*2, 200, 200, 10);\\n}\",\n \"function init(svg){\\n\\tsvgReady = svg;\\n\\t\\n\\tgoReady();\\n}\",\n \"drawSvg() {\\n \\n\\t}\",\n \"function drawStart() {\\n\\n console.log('in landingPageStart()');\\n\\n // create slider object\\n slider = $('#mapSlider').slider()\\n .on('slide', sliderChange)\\n .data('slider'); \\n\\n // automatically draw side-by-side U.S and Ohio county map by default\\n drawMaps(sliderValue); \\n opioidLineChartUS();\\n}\",\n \"function init() {\\n d3.select(\\\"#more_info\\\").node().value = \\\"\\\";\\n buildPlot(data);\\n}\",\n \"function setup() {\\n\\t\\tcWidth = window.innerWidth;\\n\\t\\tcHeight = window.innerHeight;\\n\\t\\tprocessing.size(cWidth, cHeight);\\n\\t\\tprocessing.noStroke();\\n\\t\\tcenterX = processing.width / 2;\\n\\t\\tcenterY = processing.height / 2;\\n\\t\\tinit(7);\\n\\t}\",\n \"async function main() {\\n new p5((p_) => {\\n p = p_;\\n p.setup = setup;\\n p.draw = draw;\\n }, elements.container);\\n\\n // Settings\\n const lineSettings = gui.addFolder('Line');\\n lineSettings.add(settings, 'radius', 10, 800).step(1).onChange(redraw);\\n lineSettings\\n .add(settings, 'lineControlPoint', 5, 25)\\n .step(1)\\n .onChange(redraw);\\n lineSettings.add(settings, 'lineWidth', 1, 10).step(1).onChange(redraw);\\n lineSettings.add(settings, 'yStep', 1, 100).step(1).onChange(redraw);\\n\\n const noiseSettings = gui.addFolder('Noise');\\n noiseSettings.add(settings, 'noiseSpeed', 0.1, 1).step(0.1).onChange(redraw);\\n noiseSettings.add(settings, 'noiseXStep', 0.1, 10).step(0.1).onChange(redraw);\\n noiseSettings\\n .add(settings, 'noiseYFactor', 0.01, 1)\\n .step(0.01)\\n .onChange(redraw);\\n\\n const viewSettings = gui.addFolder('View');\\n viewSettings.addColor(settings, 'bgColor').listen().onChange(redraw);\\n viewSettings.addColor(settings, 'lineColorUp').listen().onChange(redraw);\\n viewSettings.addColor(settings, 'lineColorDown').listen().onChange(redraw);\\n viewSettings.add(settings, 'randomizeColors');\\n\\n gui.add(settings, 'redraw');\\n gui.add(settings, 'saveImage');\\n gui.close();\\n\\n if (ENABLE_STATS) {\\n stats.showPanel(0);\\n elements.stats.appendChild(stats.dom);\\n }\\n}\",\n \"init() {\\n // setting up metadata section\\n $meta = $sel.append('div')\\n .attr('class', 'meta__container')\\n\\n const $title = $meta.append('h3')\\n .attr('class', 'letters-title')\\n .text(position === 'first' ? 'Names that start with...' : 'Names that end with...')\\n\\n\\n\\t\\t\\t\\t// setting up viz section\\n $vizCont = $sel.append('div')\\n .attr('class', 'chart__container')\\n\\n\\t\\t\\t\\t// setting up legend\\n\\t\\t\\t\\t$legend = $sel.append('div')\\n\\t\\t\\t\\t\\t.attr('class', 'letters-legend')\\n\\n\\n\\n\\t\\t\\t\\tconst $legendScale = $legend.append('div')\\n\\t\\t\\t\\t\\t.attr('class', 'letters-legend-scale')\\n\\n\\t\\t\\t\\tconst $legendLeft = $legendScale.append('div')\\n\\t\\t\\t\\t\\t.attr('class', 'legend-left')\\n\\n\\t\\t\\t\\tconst $legendSpace = $legendScale.append('div')\\n\\t\\t\\t\\t\\t.attr('class', 'legend-space')\\n\\n\\t\\t\\t\\tconst $legendRight = $legendScale.append('div')\\n\\t\\t\\t\\t\\t.attr('class', 'legend-right')\\n\\n\\t\\t\\t\\tconst scale = [0, 4, 8]\\n\\n\\t\\t\\t\\tconst $gLeft = $legendLeft.selectAll('tick')\\n\\t\\t\\t\\t\\t.data(scale)\\n\\t\\t\\t\\t\\t.enter()\\n\\t\\t\\t\\t\\t.append('div')\\n\\t\\t\\t\\t\\t.attr('class', 'tick')\\n\\n\\t\\t\\t\\t$gLeft.append('span')\\n\\t\\t\\t\\t\\t.text(d => `${d}%`)\\n\\n\\t\\t\\t\\tconst $gRight = $legendRight.selectAll('tick')\\n\\t\\t\\t\\t\\t.data(scale)\\n\\t\\t\\t\\t\\t.enter()\\n\\t\\t\\t\\t\\t.append('div')\\n\\t\\t\\t\\t\\t.attr('class', 'tick')\\n\\n\\t\\t\\t\\t$gRight.append('span')\\n\\t\\t\\t\\t\\t.text(d => `${d}%`)\\n\\n\\t\\t\\t\\tconst $legendLabels = $legend.append('div')\\n\\t\\t\\t\\t\\t.attr('class', 'legend-labels')\\n\\n\\t\\t\\t\\t$legendLabels.append('p')\\n\\t\\t\\t\\t\\t.attr('class', 'letters-legend letters-legend-society')\\n\\t\\t\\t\\t\\t.text('More common in society')\\n\\n\\t\\t\\t\\t$legendLabels.append('p')\\n\\t\\t\\t\\t\\t.attr('class', 'letters-legend letters-legend-song')\\n\\t\\t\\t\\t\\t.text('More common in songs')\\n\\n\\n\\n\\n\\n\\t\\t\\t\\tChart.resize();\\n\\t\\t\\t\\tChart.render();\\n\\t\\t\\t}\",\n \"_getSVGHandler(e){let root=this,temp=document.createElement(\\\"div\\\"),getID=function(element,alt){if(null===element.getAttribute(\\\"id\\\"))element.setAttribute(\\\"id\\\",alt);return element.getAttribute(\\\"id\\\")},setAriaLabelledBy=function(source,target,prefix){// adds title and desc elements to target and sets the aria-labelledby attribute\\nlet svgElem=function(nodename){source=null!==source?source:root;//adds title or desc element to target\\nlet attr=\\\"title\\\"===nodename?\\\"label\\\":nodename,query=source.querySelector(\\\"#\\\"+attr);var label=target.querySelector(nodename);//if the target doesn't have the element, add it\\nif(null===label){label=document.createElement(nodename);target.prepend(label)}//populates the element with data from the source element\\nif(null!==source.getAttribute(attr)){label.innerHTML=source.getAttribute(attr)}else if(null!==query&&\\\"\\\"!==query.innerHTML){label.innerHTML=query.innerHTML}//returns the new element's id\\nreturn getID(label,prefix+\\\"-\\\"+attr)};//set aria-labelledby to the id's for title and descriptions\\ntarget.setAttribute(\\\"aria-labelledby\\\",svgElem(\\\"desc\\\")+\\\" \\\"+svgElem(\\\"label\\\"))};//set up main svg and append to document\\ntemp.innerHTML=e.detail.response;let svg=temp.querySelector(\\\"svg\\\"),svgid=getID(svg,\\\"svg-\\\"+Date.now()),hdata=dom(root).querySelectorAll(\\\"lrndesign-imagemap-hotspot\\\");setAriaLabelledBy(root,svg,svgid);this.shadowRoot.querySelector(\\\"#svg\\\").appendChild(svg);for(let i=0;i{this.openHotspot(hotspot,hdata[i])});hbutton.addEventListener(\\\"keyup\\\",e=>{if(13===e.keyCode||32===e.keyCode){if(!hotspot.classList.contains(\\\"selected\\\")){this.openHotspot(hotspot,hdata[i])}}})}}\",\n \"function createNamespace(data) {\\n\\n//Width and height of SVG drawing area\\n myNS.width = Width;\\n myNS.height = Height;\\n myNS.padding = 60; // padding around edges, to make room for axes\\n // for menus, the choice for each one\\n myNS.xData = \\\"\\\";\\n myNS.yData = \\\"\\\";\\n // dataset -- will read this from CSV file\\n myNS.dataset = data;\\n\\n}\",\n \"function renderStart() {\\n generateStart();\\n }\",\n \"function draw() {\\n function drawP(text) {\\n var elem = document.createElement(\\\"p\\\");\\n elem.innerText = text;\\n document.getElementById(\\\"root\\\").append(elem);\\n }\\n drawP(\\\"(0,0) Note: SVG origin is top left\\\");\\n var myGenerator = generator();\\n var myChart = chart(400, 400);\\n var svg = build(myGenerator, myChart);\\n document.getElementById(\\\"root\\\").appendChild(svg);\\n }\",\n \"setUp() {\\n this.g = d3\\n .select(this.root)\\n .append(\\\"g\\\");\\n this.update();\\n }\",\n \"function setup() {\\n createCanvas(windowWidth, windowHeight-4);\\n\\n // Center our drawing objects\\n rectMode(CENTER);\\n imageMode(CENTER);\\n textAlign(CENTER);\\n // text settings\\n textSize(size);\\n textFont('Nunito');\\n\\n // set to one for startup\\n drawFunction = drawSplash;\\n\\n}\",\n \"function _main(spec_container) {\\n x = _main.xScale();\\n y = _main.yScale();\\n dispatcher = _main.dispatcher();\\n \\n svg_elem = source(spec_container);\\n line_idx = spec_container.spectra().indexOf(_main);\\n \\n //svg_elem.attr(\\\"clip-path\\\",\\\"url(#\\\" + svg_elem.selectP('.spec-slide').node().clip_id + \\\")\\\");\\n\\n img_elem = svg_elem.append(\\\"g\\\")\\n .attr(\\\"filter\\\", \\\"url(#\\\" + spec_container.parent().filterId()+ \\\")\\\")\\n .append(\\\"svg:image\\\")\\n .attr('width', spec_container.width())\\n .attr('height', spec_container.height())\\n .attr('xlink:href', \\\"data:image/png;base64,\\\" + data)\\n .attr(\\\"preserveAspectRatio\\\", \\\"none\\\"); \\n \\n \\n /*** TODO: 2D dataset vis *****\\n ******************************/\\n \\n if(_crosshair){\\n _crosshair \\n .xScale(x).yScale(y)\\n .dispatcher(dispatcher)\\n (_main);\\n }\\n \\n \\n // TODO: 2D integration\\n \\n svg_elem\\n .on(\\\"_redraw\\\", redraw)\\n .on(\\\"_regionchange\\\", function(){\\n })\\n .on(\\\"_integrate\\\", function(){\\n })\\n .on(\\\"_segment\\\", function () {\\n })\\n .on('_remove', function () {\\n dispatcher.on(\\\"regionchange.line.\\\"+dispatch_idx, null);\\n dispatcher.on(\\\"redraw.line.\\\"+dispatch_idx, null);\\n data = null;\\n if(_crosshair){_crosshair.remove();}\\n });\\n \\n // Register event listeners\\n var dispatch_idx = ++dispatcher.idx;\\n dispatcher.on(\\\"regionchange.line.\\\"+dispatch_idx, svg_elem.on(\\\"_regionchange\\\"));\\n dispatcher.on(\\\"redraw.line.\\\"+dispatch_idx, svg_elem.on(\\\"_redraw\\\"));\\n \\n return svg_elem; \\n }\",\n \"function main()\\n{\\n initCommand();\\n global.mode = global.mode_NORMAL;\\n global.firstRun = true;\\n global.baseX = NaN;\\n global.baseY = NaN;\\n global.destX = NaN;\\n global.destY = NaN;\\n global.factor = NaN;\\n\\n global.baseRX = NaN;\\n global.baseRY = NaN;\\n global.destRX = NaN;\\n global.destRY = NaN;\\n global.factorRef = NaN;\\n global.factorNew = NaN;\\n\\n if(numSelected() <= 0)\\n {\\n //TODO: Prompt to select objects if nothing is preselected\\n setPromptPrefix(qsTr(\\\"Preselect objects before invoking the scale command.\\\"));\\n appendPromptHistory();\\n endCommand();\\n messageBox(\\\"information\\\", qsTr(\\\"Scale Preselect\\\"), qsTr(\\\"Preselect objects before invoking the scale command.\\\"));\\n }\\n else\\n {\\n setPromptPrefix(qsTr(\\\"Specify base point: \\\"));\\n }\\n}\",\n \"function main() {\\r\\n init();\\r\\n draw();\\r\\n}\",\n \"function pageLoaded() {\\n svgweb.addOnLoad(createSVGObject);\\n}\",\n \"function main() {\\n\\t\\t\\ttry{\\n\\t\\t\\t\\trender();\\n\\t\\t\\t} catch(e) {\\n\\t\\t\\t\\tconsole.log(e);\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif(rendering == true) {\\n\\t\\t\\t\\traf(main.bind(this));\\n\\t\\t\\t}\\n\\t\\t}\",\n \"function mainSketch() {\\n\\tbackground(255, 150, 0);\\n\\n\\tfill(0);\\n\\tnoStroke();\\n\\ttextSize(height/2);\\n\\ttextAlign(CENTER, CENTER);\\n\\ttext('BOO!', width/2, height/2);\\n}\",\n \"function setup() {\\n createCanvas(1008,1008);\\n textFont(quicksand);\\n tiger = new firstPredator(100, 100, 5, color(204, 159, 69), 40, tigerImage, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW, 16); // press Shift key to sprint\\n leopard = new firstPredator(100, 100, 15, color(200, 175, 175), 35, leopardImage, 87, 83, 65, 68, 70); // press F to sprint\\n bear = new firstPredator(100, 100, 25, color(120, 114, 97), 45, bearImage, 73, 75, 74, 76, 72); // press H key to sprint\\n antelope = new Prey(100, 100, 10, color(255, 100, 10), 50, antelopeImage);\\n zebra = new Prey(100, 100, 8, color(255, 255, 255), 60, zebraImage);\\n bee = new Prey(100, 100, 20, color(255, 255, 0), 10, beeImage);\\n}\",\n \"generateFile (entry) {\\n this.reColorSVG('#CCCCCC');\\n this.imageTemplate(this.encodedSVG());\\n }\",\n \"function init() {\\n for(let i = K; i <= 5 * N; i += delta) {\\n M.push(i);\\n }\\n drawSvgContainer(svgWidth, svgHeight, svgMargin);\\n drawAxes(xAxisLength, yAxisLength, startPoint, scale);\\n task1();\\n}\",\n \"init() {\\n let svg = ' \\\\n';\\n\\tif (Inobj != false) {\\n\\t\\tvar pretext = document.getElementById(\\\"SVGCode\\\");\\n\\t\\tvar picobj = document.getElementById(\\\"pic\\\");\\n\\t\\tif (mode == 0) {\\n\\t\\t\\tcode = svgheader;\\n\\n\\t\\t\\t//var oldsvg=document.getElementById(\\\"pic\\\");\\n\\t\\t\\tsvgout.setAttribute(\\\"xmlns:xlink\\\", \\\"http://www.w3.org/1999/xlink\\\");\\n\\t\\t\\tsvgout.setAttribute(\\\"width\\\", (Inobj[0].cw + \\\"px\\\"));\\n\\t\\t\\tsvgout.setAttribute(\\\"height\\\", (Inobj[0].ch + \\\"px\\\"));\\n\\t\\t\\tsvgout.setAttribute(\\\"version\\\", \\\"1.1\\\");\\n\\t\\t\\tsvgout.setAttribute(\\\"style\\\", \\\"display:inline\\\");\\n\\t\\t\\tsvgout.setAttribute(\\\"id\\\", \\\"pic\\\");\\n\\t\\t} //mode 1 action\\n\\t\\telse //mode 2 action\\n\\t\\t{\\n\\t\\t\\tcode = pretext.value;\\n\\t\\t\\tcode = code.substring(0, (code.length - 6));\\n\\t\\t\\tvar oldsvg = document.getElementById(\\\"pic\\\");\\n\\t\\t\\tsvgout = oldsvg;\\n\\t\\t}\\n\\n\\t\\tif (Inobj[0].bbon) {\\n\\t\\t\\tResult = DrawCircle(Inobj);\\n\\t\\t\\tcode += Result[0];\\n\\t\\t\\tsvgout.appendChild(Result[1]);\\n\\t\\t} //draw backbone\\n\\t\\tfor (var i = 1; i < Inobj.length; i++) //draw features\\n\\t\\t{\\n\\t\\t\\tif (Inobj[i].visible) {\\n\\t\\t\\t\\tif (Inobj[i].arrowon) {\\n\\t\\t\\t\\t\\tResult = DrawArrow(Inobj, i);\\n\\t\\t\\t\\t\\tcode += Result[0];\\n\\t\\t\\t\\t\\tsvgout.appendChild(Result[1]);\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tResult = DrawBox(Inobj, i);\\n\\t\\t\\t\\t\\tcode += Result[0];\\n\\t\\t\\t\\t\\tsvgout.appendChild(Result[1]);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif (Inobj[0].txton) {\\n\\t\\t\\tif (Inobj[0].plasmidnameon) {\\n\\t\\t\\t\\tResult = ShowPlasmidName(Inobj);\\n\\t\\t\\t\\tcode += Result[0];\\n\\t\\t\\t\\tsvgout.appendChild(Result[1]);\\n\\t\\t\\t}\\n\\t\\t\\tif (Inobj[0].plasmidsizeon) {\\n\\t\\t\\t\\tResult = DrawPlasmidSize(Inobj);\\n\\t\\t\\t\\tcode += Result[0];\\n\\t\\t\\t\\tsvgout.appendChild(Result[1]);\\n\\t\\t\\t}\\n\\t\\t\\tfor (var j = 1; j < Inobj.length; j++) {\\n\\t\\t\\t\\tif (Inobj[j].visible) {\\n\\t\\t\\t\\t\\tResult = ShowFeatureLabel(Inobj, j);\\n\\t\\t\\t\\t\\tcode += Result[0];\\n\\t\\t\\t\\t\\tif (Result.length == 2) {\\n\\t\\t\\t\\t\\t\\tsvgout.appendChild(Result[1]);\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tsvgout.appendChild(Result[2]);\\n\\t\\t\\t\\t\\t\\tsvgout.appendChild(Result[1]);\\n\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tcode += \\\"\\\";\\n\\t\\tpretext.value = code;\\n\\t\\tpicobj.parentNode.replaceChild(svgout, picobj);\\n\\t\\t//alert(svgout.childNodes[5].nodeName+\\\" has childs: \\\"+svgout.childNodes[5].childNodes.length);\\n\\t\\t//alert(svgout.childNodes[5].firstChild.nodeName);\\n\\t\\t//alert(\\\"the ref link: \\\"+svgout.childNodes[5].firstChild.getAttribute(\\\"xlink:href\\\"));\\n\\t\\t//alert(svgout.childNodes[5].firstChild.firstChild.nodeValue);\\n\\n\\n\\t}\\n}\",\n \"function init() {\\n\\n getCourses(program);\\n getPreqs(courses);\\n drawGraph();\\n\\n //set zoom view level\\n zoomOut();\\n\\n //loading done\\n $('#spin1').hide();\\n}\",\n \"initialize() {\\n\\n // Add an opening tag to the code\\n this.add(`%`);\\n\\n // Add the script name\\n this.add(this.opCode(`O`, this.name));\\n\\n // Add code for which unit system to use (mm or inches)\\n this.add(this.opCode(`G`, (this.unit == 'inch' || this.unit == 'in') ? '20' : '21'));\\n\\n // Add code for the type of positioning being used\\n this.setPositioning(this.positioning);\\n\\n // Set the state to on\\n this.toggleState();\\n\\n // Raise the mill above the clearance\\n this.raiseMill();\\n\\n // Feed rapidly to the start position\\n this.feedRapid(this.start, this.feedrate);\\n }\",\n \"function setup() {\\n\\tcreateCanvas(windowWidth, windowHeight);\\n\\n\\tbackground(0);\\n\\ttextAlign(CENTER);\\n\\ttextSize(200);\\n\\tfill(255, 167, 15);\\n\\tnoStroke();\\n}\",\n \"function initialize() {\\n\\t\\t\\n\\t\\tsvg = scope.selection.append(\\\"svg\\\").attr(\\\"id\\\", scope.id).style(\\\"overflow\\\", \\\"visible\\\").attr(\\\"class\\\", \\\"vizuly\\\");\\n\\t\\tbackground = svg.append(\\\"rect\\\").attr(\\\"class\\\", \\\"vz-background\\\");\\n\\t\\tdefs = vizuly2.util.getDefs(viz);\\n\\t\\tplot = svg.append('g');\\n\\t\\t\\n\\t\\tscope.dispatch.apply('initialized', viz);\\n\\t}\",\n \"function init(evt) {\\n\\n SVGDocument = evt.target.ownerDocument;\\n SVGRoot = SVGDocument.documentElement;\\n nodes = SVGDocument.getElementsByTagName('g');\\n edges = SVGDocument.getElementsByTagName('g');\\n nodesLength = nodes.length;\\n\\n //top.processGraph();\\n\\n }\",\n \"function startSystem () {\\n particleSvg = d3.select('body')\\n .append(\\\"svg\\\")\\n .attr(\\\"width\\\", width)\\n .attr(\\\"height\\\", height);\\n makeAWall([width * -2, height * 0.25], [width*2, height * 0.25], 200);\\n makeAWall([width * -2, height * 0.55], [width*2, height * 0.55], 200);\\n injector();\\n renderParticles();\\n}\",\n \"function init_svg(){\\n\\n if(document.getElementById('world-map-svg')){\\n \\n // set svg fill to default\\n reset_svg_fill();\\n\\n // generate the dropdwon with custom rank names\\n makeDDM();\\n\\n // add tooltip event on all countries and info button\\n add_tooltip_event_countries();\\n add_tooltip_event_info();\\n hideDDM2_extraOptions();\\n\\n // remove the next 3 lines once implemented\\n document.getElementById('rank-attribute').selectedIndex = 0;\\n document.getElementById('rank-type').selectedIndex = 0;\\n var svg = d3.select('#world-map-svg')\\n fill_csv(svg, global_rank_function + '_' + global_rank_type, global_is_mono, global_isAscending);\\n\\n }\\n else{\\n setTimeout(init_svg, 100); \\n }\\n \\n}\",\n \"main() {\\n setup_pixi_stage(600, 400);\\n const loader = PIXI.Loader.shared;\\n loader.add(\\\"Resources/meteor2.png\\\");\\n loader.add(\\\"Resources/dinosaur.png\\\");\\n loader.load(this.load_done.bind(this));\\n }\",\n \"function drawSvg() {\\n\\t\\t// selector can be #residential, or #commercial which should be in graph.html\\n\\t\\tvar dataSources = [{selector: '#commercial', data: data.commGraphData}, \\n\\t\\t\\t{selector: '#residential', data: data.residGraphData}];\\n\\n\\t\\tdataSources.forEach(function(item) {\\n\\t\\t\\tvar canvas = createCanvas(item.selector, item.data);\\n\\t\\t\\tdrawHorizontalLabel(canvas);\\n\\t\\t\\tdrawVerticalLable(canvas, item.data);\\n\\t\\t\\tdrawHeatMap(canvas, item.data);\\n\\t\\t});\\n\\t}\",\n \"function init() {\\n // set the main SVG\\n mainSvg = document.querySelector(\\\"#svg-root\\\");\\n downloadButton = document.querySelector(\\\"#download\\\");\\n downloadButton.disabled = true;\\n downloadButton.addEventListener(\\\"click\\\", () => downloadSvg());\\n // Set the form to call 'redraw()' on submit, instead of going to a different page\\n let form = document.querySelector(\\\"#transcribe-form\\\");\\n form.addEventListener(\\\"submit\\\", (e) => {\\n e.preventDefault();\\n redraw();\\n });\\n}\",\n \"function buildGui() {\\n // Assign gui variable with a new dat gui object\\n gui = new dat.GUI();\\n\\n // Add a folder into the gui called Stars\\n var stars_gui = gui.addFolder(\\\"Stars\\\");\\n // Add a folder for each star in the array into the gui\\n stars.forEach(function(star)\\n {\\n //Properties for each star that will form the gui options for each star\\n var star_properties = {\\n size: star.scale.x,\\n colour: star.userData.colour,\\n luminosity: star.userData.light.intensity,\\n // Button to show the star's information, hide previous info and remove the path of the previous planet/moon if there was any\\n view: function() {\\n // Function call to remove the hide button in all other gui folders except the current folder\\n removeHide();\\n // Remove the path from the scene if it was defined\\n if (path!=undefined)\\n scene.remove(path);\\n // Set variable to false to indicate the path isn't on the scene\\n path_on = false;\\n // Remove the view button from the gui\\n star_folder.remove(star.userData.add_button);\\n // Set userdata storing the view button to undefined\\n star.userData.add_button = undefined;\\n // Assign userdata variable to store the remove button in the gui\\n star.userData.remove_button = addButton(this, star_folder, 'hide');\\n // Function call to clear the screen of info text\\n hideInfo();\\n // Function call to show info for the current star\\n showInfo(star.userData.name, star.userData.category, star.userData.desc, star.userData.colour);\\n },\\n // Button to hide the current star's information\\n hide: function() {\\n // Function call to clear screen of info text\\n hideInfo();\\n // Function call to show the starting message\\n showStartUp();\\n // Remove hide button from the gui\\n star_folder.remove(star.userData.remove_button);\\n // Set the remove button in user data to undefined\\n star.userData.remove_button = undefined;\\n // Assign userdata variable to store the add button in the gui\\n star.userData.add_button = addButton(this, star_folder, 'view');\\n }\\n }\\n\\n // Add a new folder to the gui for the current star\\n var star_folder = stars_gui.addFolder(star.userData.name);\\n // Store the star's gui folder in userdata\\n star.userData.folder = star_folder;\\n // Store the star gui properties in userdata\\n star.userData.properties = star_properties;\\n\\n // Add gui objects for the star's colour, size, brightness\\n addStarGui(star_properties, star_folder, 'colour', star, 0, 0.1);\\n addStarGui(star_properties, star_folder, 'size', star, 0.1, 10);\\n addStarGui(star_properties, star_folder, 'luminosity', star, 0, 4);\\n // Add a button to show the star's info and store it in userdata\\n star.userData.add_button = addButton(star_properties, star_folder, 'view');\\n\\n });\\n\\n // Create a folder in gui to store planets\\n planets_gui = gui.addFolder(\\\"Planets\\\");\\n // Function call to build planet gui\\n buildPlanetsGui();\\n\\n // Create a folder in gui to store moons\\n moons_gui = gui.addFolder(\\\"Moons\\\");\\n // Function call to build the moon gui\\n buildMoonsGui();\\n\\n // Function call to build the gui folder to add new planets and moons\\n buildAddGui();\\n\\n // Function call to build the gui folder to remove planets and moons\\n buildRemoveGui();\\n}\",\n \"function init(){\\n // initialize global variables and button actions\\n prev_btnj = $('#prev_btn')\\n next_btnj = $('#next_btn')\\n scale_btnj = $('#scale_btn')\\n titlej = $('#title')\\n svgj = $('svg')\\n svg = svgj[0]\\n svgimg = document.createElementNS('http://www.w3.org/2000/svg','image')\\n\\n svgj.append(svgimg)\\n $('#open_btn').click(openHandler)\\n $('#zoomin_btn').click(zoominHandler)\\n $('#zoomout_btn').click(zoomoutHandler)\\n $('#actual_btn').click(actualHandler)\\n $('#fit_btn').click(fitHandler)\\n prev_btnj.click(prevHandler)\\n next_btnj.click(nextHandler)\\n $(window).resize(_.throttle(resizeHandler, 100))\\n}\",\n \"async function main() {\\n image = await loadImage('./Apollo11HP-128539876.jpg');\\n imageData = await readImageData(image);\\n\\n new p5((p_) => {\\n p = p_;\\n p.setup = setup;\\n }, elements.container);\\n\\n // Settings\\n gui.add(settings, 'omega', 0, 1).step(0.01).onFinishChange(drawThrottled);\\n gui.add(settings, 'phase', 0, 1).step(0.01).onFinishChange(drawThrottled);\\n gui.add(settings, 'quantVal', 1, 30).step(0.1).onFinishChange(drawThrottled);\\n gui.add(settings, 'saveImage');\\n gui.close();\\n\\n if (ENABLE_STATS) {\\n stats.showPanel(0);\\n elements.stats.appendChild(stats.dom);\\n }\\n}\",\n \"function draw() {\\n\\n //textColor changes so it has to be in draw instead of setup\\n //starts as transparent clicking i turns it opaque\\n textColor = color(0, 0, 0, o);\\n textColor2 = color(255,255,255,o);\\n\\n //main screen only shows up when turning program on\\n if (main === true) {\\n noStroke();\\n fill(0);\\n textSize(16);\\n text(\\\"Press i at any time to turn on instructions.\\\", 150, 175);\\n text(\\\"Pressing i again will turn them off, if the background is white\\\", 150, 200);\\n text(\\\"you will need to refresh the page by hitting the same number\\\", 150, 225);\\n text(\\\"to get rid of the instructions.\\\", 150, 250);\\n text(\\\"To begin press 1,2,3,4, or 5.\\\", 150, 275);\\n \\n //title whimsical\\n //color changes with mouse position\\n fill(mouseX%255,255-mouseY%255,187);\\n stroke(0);\\n textSize(100);\\n text(\\\"w\\\",150,500);\\n text(\\\"h\\\",205,500);\\n text(\\\"i\\\",240,500);\\n text(\\\"m\\\",240,500);\\n text(\\\"s\\\",305,500);\\n text(\\\"i\\\",335,500);\\n text(\\\"c\\\",338,500);\\n text(\\\"a\\\",372,500);\\n text(\\\"l\\\",407,500);\\n textSize(16);\\n }\\n \\n //related to the switch case to switch between modes\\n if (bubble === true) {\\n bubbles(50);\\n }\\n if (vortex === true) {\\n depth();\\n }\\n if (box === true) {\\n boxes();\\n }\\n if (stacks === true) {\\n stacking();\\n }\\n if (dots === true) {\\n drawing();\\n }\\n}\",\n \"function setup() {\\n createCanvas(1200,800);\\n\\n // Center our drawing objects\\n imageMode(CENTER);\\n textAlign(CENTER);\\n textSize(24);\\n\\n // set to one for startup\\n drawFunction = drawSplash;\\n}\",\n \"function setup() {\\n // Create a p5.js canvas 800px wide and 600px high, and assign it to the global variable \\\"cnv\\\".\\n g.cnv = createCanvas(800, 600);\\n // Set the parent element to \\\"graphics-wrapper\\\"\\n g.cnv.parent(\\\"graphics-wrapper\\\");\\n // The \\\"main\\\" element is unnecessary. Don't worry about this too much\\n document.getElementsByTagName(\\\"main\\\")[0].remove();\\n}\",\n \"function mainFn () {\\n logFn( prefixStr + 'Start' );\\n xhiObj.npmObj.load( xhiObj.fqPkgFilename, onLoadFn );\\n }\",\n \"function start() {\\n gemValues.startGoal();\\n gemValues.gemSet();\\n}\",\n \"function setup() {\\n // Create a p5.js canvas 800px wide and 600px high, and assign it to the global variable \\\"cnv\\\".\\n g.cnv = createCanvas(800, 600);\\n\\n // Set the parent element to \\\"graphics-wrapper\\\"\\n g.cnv.parent(\\\"graphics-wrapper\\\");\\n\\n // The \\\"main\\\" element is unnecessary. Don't worry about this too much\\n document.getElementsByTagName(\\\"main\\\")[0].remove();\\n}\",\n \"function firstExportStep() {\\n\\t\\t\\t// debug('\\\\n firstExportStep - START');\\n\\n\\t\\t\\t// Add metadata\\n\\t\\t\\tvar md = _GP.metadata;\\n\\t\\t\\tvar ps = _GP.projectsettings;\\n\\n\\t\\t\\toptions.unitsPerEm = ps.upm || 1000;\\n\\t\\t\\toptions.ascender = ps.ascent || 0.00001;\\n\\t\\t\\toptions.descender = (-1 * Math.abs(ps.descent)) || -0.00001;\\n\\t\\t\\toptions.familyName = (md.font_family) || ' ';\\n\\t\\t\\toptions.styleName = (md.font_style) || ' ';\\n\\t\\t\\toptions.designer = (md.designer) || ' ';\\n\\t\\t\\toptions.designerURL = (md.designerURL) || ' ';\\n\\t\\t\\toptions.manufacturer = (md.manufacturer) || ' ';\\n\\t\\t\\toptions.manufacturerURL = (md.manufacturerURL) || ' ';\\n\\t\\t\\toptions.license = (md.license) || ' ';\\n\\t\\t\\toptions.licenseURL = (md.licenseURL) || ' ';\\n\\t\\t\\toptions.version = (md.version) || 'Version 0.001';\\n\\t\\t\\toptions.description = (md.description) || ' ';\\n\\t\\t\\toptions.copyright = (md.copyright) || ' ';\\n\\t\\t\\toptions.trademark = (md.trademark) || ' ';\\n\\t\\t\\toptions.glyphs = [];\\n\\n\\t\\t\\t// debug('\\\\t NEW options ARG BEFORE GLYPHS');\\n\\t\\t\\t// debug(options);\\n\\t\\t\\t// debug('\\\\t options.version ' + options.version);\\n\\n\\t\\t\\t// Add Notdef\\n\\t\\t\\tvar notdef = new Glyph({'name': 'notdef', 'shapes':JSON.parse(_UI.notdefglyphshapes)});\\n\\t\\t\\tif(_GP.upm !== 1000){\\n\\t\\t\\t\\tvar delta = _GP.upm / 1000;\\n\\t\\t\\t\\tnotdef.updateGlyphSize(delta, delta, true);\\n\\t\\t\\t}\\n\\n\\t\\t\\tvar ndpath = notdef.makeOpenTypeJSpath();\\n\\n\\t\\t\\toptions.glyphs.push(new opentype.Glyph({\\n\\t\\t\\t\\tname: '.notdef',\\n\\t\\t\\t\\tunicode: 0,\\n\\t\\t\\t\\tindex: getNextGlyphIndex(),\\n\\t\\t\\t\\tadvanceWidth: round(notdef.getAdvanceWidth()),\\n\\t\\t\\t\\txMin: round(notdef.maxes.xmin),\\n\\t\\t\\t\\txMax: round(notdef.maxes.xmax),\\n\\t\\t\\t\\tyMin: round(notdef.maxes.ymin),\\n\\t\\t\\t\\tyMax: round(notdef.maxes.ymax),\\n\\t\\t\\t\\tpath: ndpath\\n\\t\\t\\t}));\\n\\n\\t\\t\\t// debug(' firstExportStep - END\\\\n');\\n\\t\\t}\",\n \"function start() {\\n d3.select( \\\"#d3-start\\\" )\\n .append( \\\"p\\\" )\\n .text( \\\"Place a console.log(d3) in your script block to see the entire d3 object in the console\\\" ); \\n}\",\n \"onLoad() {\\n this.svg = this.createSvg();\\n this._bg.appendChild(this.svg);\\n this.setShaderProperties();\\n this.randomize();\\n this.createPolygons();\\n this.refresh();\\n }\",\n \"function Graph_setup () { }\",\n \"function initMain(){\\n\\tbuildGameButton();\\n\\tbuildGameStyle();\\n\\tbuildScoreboard();\\n\\t\\n\\tgoPage('main');\\n\\tloadXML('questions.xml');\\n}\",\n \"function setup() {\\n createCanvas(windowWidth, windowHeight);\\n\\n // Center our drawing objects\\n imageMode(CENTER);\\n textAlign(CENTER);\\n textSize(24);\\n\\n // set to one for startup\\n drawFunction = drawOne;\\n}\",\n \"function setup() {\\n noCanvas();\\n\\n // let d = new Date;\\n // let h = d.getHours();\\n // if (h == 9){\\n getRandomData();\\n // }\\n\\n let ImgURL = data.inspo[yesterdayInfo].picture;\\n let personName = data.inspo[yesterdayInfo].name;\\n let Impact = data.inspo[yesterdayInfo].impact;\\n let SmallText = data.inspo[yesterdayInfo].smalltext;\\n\\n createText(ImgURL,personName, Impact, SmallText);\\n }\",\n \"function setupMain() {\\n setupMenu();\\n setupTreeView();\\n setupAnnotations();\\n\\n // Add initial pane\\n pm.registerPane();\\n pm.renderPane();\\n}\",\n \"function ready(error, data, gerOutline, gerCountries) {\\n if (error) throw error;\\n \\n console.log({data: data, gerOutline: gerOutline, gerCountries: gerCountries});\\n\\n \\n /* Sequence */\\n /* -------- */\\n\\n // Global data\\n vis.nodes = data;\\n\\n // Set up and get visual variables\\n setUpVisual();\\n\\n // Set the initial node layout\\n initialVisualLayout(vis.nodes);\\n\\n // Set up the map\\n setupMap(gerOutline, gerCountries);\\n\\n // Draw the map\\n drawMap();\\n\\n // Calculate y scale for positioning (pull the lower end up a little to leave space for the text)\\n vis.yScale = d3.scaleLinear().domain([0, Math.ceil(vis.nodes.length/2)]).range([vis.dims.height*0.05, vis.dims.height*0.85]);\\n\\n // Calculate and augment positions\\n vis.nodes = nodesAlphabeticalCinema(vis.nodes);\\n vis.nodes = nodesAlphabeticalCity(vis.nodes);\\n vis.nodes = nodesVisitingOrder(vis.nodes);\\n\\n // play intro\\n story();\\n\\n\\n /* Interactivity elements */\\n /* ---------------------- */\\n\\n // Zoom\\n var zoom = d3.zoom().scaleExtent([0.75, 2.5]).on('zoom', zoomed);\\n d3.select('#visual svg').call(zoom);\\n\\n\\n // circles\\n d3.selectAll('.node').on('mouseover', circleOver);\\n d3.selectAll('.node').on('mousedown', circleDown);\\n d3.selectAll('.node').on('mouseout', circleOut);\\n d3.selectAll('.node-text').on('mouseover', textOver);\\n d3.selectAll('.node-text').on('mousedown', textDown);\\n d3.selectAll('.node-text').on('mouseout', textOut);\\n\\n}\",\n \"printHeader ()\\n {\\n console.log();\\n console.log(\\\"svg-min 🔩\\\");\\n console.log();\\n }\",\n \"function setupSVG(svg, width, height) {\\n //Remove children of svg to eventually tiles from the previous image\\n svg.innerHTML = '';\\n\\n //Give to svg the same size as the image\\n svg.setAttribute('viewBox', '0 0 '+width+' '+height);\\n svg.setAttribute('width', '100%');\\n svg.setAttribute('height', '100%');\\n}\",\n \"function startMatrix() {\\n // Display background of matrix.\\n background(0);\\n // Display title.\\n push();\\n textSize(51);\\n fill(255, 255, 255);\\n textAlign(CENTER, CENTER);\\n textFont(`Russo One`);\\n text(`Welcome to the Matrix...`, width / 2, height / 2);\\n textSize(50);\\n fill(95, 191, 6);\\n textAlign(CENTER, CENTER);\\n textFont(`Russo One`);\\n text(`Welcome to the Matrix...`, width / 2, height / 2);\\n pop();\\n // Display subtitle.\\n push();\\n textSize(30);\\n fill(95, 191, 6);\\n textAlign(CENTER, BASELINE);\\n textFont(`Play`);\\n text(`Will you manage to escape?`, width / 2, 400);\\n pop();\\n // Title to start.\\n push();\\n textSize(41);\\n fill(255, 255, 255);\\n textAlign(CENTER, BOTTOM);\\n textFont(`Russo One`);\\n text(`CLICK TO START.`, width / 2, 550);\\n textSize(40);\\n fill(95, 191, 6);\\n textAlign(CENTER, BOTTOM);\\n textFont(`Russo One`);\\n text(`CLICK TO START.`, width / 2, 550);\\n pop();\\n}\",\n \"function initDiagram(diagram) {\\n svgDiagrams = {\\n \\\"1\\\": '',\\n \\\"2\\\": '',\\n \\\"3\\\": '',\\n \\\"4\\\": '',\\n \\\"5\\\": '',\\n \\\"6\\\": '',\\n \\\"7\\\": ' ',\\n \\\"8\\\": '',\\n \\\"9\\\": '',\\n \\\"10\\\": '',\\n }\\n\\n const setHeight = (diagram) => {\\n diagram.style.height = diagram.clientWidth + 'px';\\n }\\n const getArrayFromValues = (string) => {\\n return string.split(',');\\n }\\n const setItems = (values, wrapper, svgDiagrams) => {\\n values.forEach(value => {\\n wrapper.insertAdjacentHTML('beforeend', svgDiagrams[value])\\n })\\n }\\n const createTooltip = (wrapper) => {\\n let tooltip = document.createElement('div');\\n let colorbox = document.createElement('div');\\n let text = document.createElement('div');\\n \\n tooltip.className = 'diagram__tooltip';\\n colorbox.className = 'diagram__tooltip-color';\\n text.className = 'diagram__tooltip-text';\\n \\n tooltip.append(colorbox);\\n tooltip.append(text);\\n \\n return tooltip;\\n }\\n const setPositionTooltip = (tooltip, x, y) => {\\n tooltip.style.opacity = 1;\\n tooltip.style.left = x + '%';\\n tooltip.style.top = y + '%';\\n }\\n const createTooltipPositionValues = (items, wrapper) => {\\n let values = {};\\n const setValues = () => {\\n items.forEach((item, index) => {\\n if (item.tagName === 'svg') {\\n let path = item.children[0];\\n let x;\\n let y;\\n switch (index) {\\n case 0:\\n \\n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 1.75);\\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 3);\\n \\n values[index] = { x, y };\\n break;\\n case 1:\\n \\n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 1.65);\\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2.5);\\n \\n values[index] = { x, y };\\n break;\\n case 2:\\n \\n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 1.5);\\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2);\\n \\n values[index] = { x, y };\\n break;\\n case 3:\\n \\n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 1.75);\\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 1.65);\\n \\n values[index] = { x, y };\\n break;\\n case 4:\\n \\n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 2.75);\\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 1.75);\\n \\n values[index] = { x, y };\\n break;\\n case 5:\\n \\n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 2.75);\\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2);\\n \\n values[index] = { x, y };\\n break;\\n case 6:\\n \\n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 2.5);\\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2.75);\\n \\n values[index] = { x, y };\\n break;\\n case 7:\\n \\n x = (path.getBoundingClientRect().left - wrapper.getBoundingClientRect().left) + (path.getBoundingClientRect().width / 2);\\n y = (path.getBoundingClientRect().top - wrapper.getBoundingClientRect().top) + (path.getBoundingClientRect().height / 2.5);\\n \\n values[index] = { x, y };\\n break;\\n }\\n }\\n \\n })\\n }\\n \\n setValues();\\n return {\\n values,\\n update: setValues,\\n }\\n }\\n const setColors = (colors, items) => {\\n items.forEach((item, index) => {\\n if (item.tagName === 'svg') {\\n let path = item.children[0];\\n path.setAttribute('fill', colors[index]);\\n }\\n })\\n }\\n const sevValueTooltip = (tooltip, color, text, value) => {\\n let colorBox = tooltip.children[0];\\n let textBox = tooltip.children[1];\\n colorBox.style.background = color;\\n textBox.innerText = `${text} - ${value}`;\\n }\\n \\n\\n let values = getArrayFromValues(diagram.dataset.diagramValues);\\n let tooltip = createTooltip();\\n let colors = diagram.dataset.diagramColors.split(',');\\n let tooltipText = diagram.dataset.diagramText.split(',');\\n\\n if(diagram.classList.contains('reverse')) {\\n values = values.reverse();\\n colors = colors.reverse();\\n tooltipText = tooltipText.reverse();\\n }\\n\\n setHeight(diagram);\\n\\n setItems(values, diagram, svgDiagrams);\\n\\n diagram.append(tooltip);\\n\\n\\n let children = Array.from(diagram.children);\\n setColors(colors, children);\\n\\n let tooltipPositionValues = createTooltipPositionValues(children, diagram);\\n\\n children.forEach((item, index) => {\\n if (item.tagName === 'svg') {\\n item.addEventListener('mouseenter', () => {\\n let x = (tooltipPositionValues.values[index].x / diagram.clientWidth) * 100;\\n let y = tooltipPositionValues.values[index].y / diagram.clientWidth * 100;\\n setPositionTooltip(tooltip, x, y);\\n sevValueTooltip(tooltip, colors[index], tooltipText[index], values[index]);\\n })\\n }\\n })\\n\\n window.addEventListener('resize', () => setHeight(diagram));\\n window.addEventListener('resize', tooltipPositionValues.update);\\n\\n\\n return {\\n showItemInfo: (index) => {\\n let x = (tooltipPositionValues.values[index].x / diagram.clientWidth) * 100;\\n let y = tooltipPositionValues.values[index].y / diagram.clientWidth * 100;\\n setPositionTooltip(tooltip, x, y);\\n sevValueTooltip(tooltip, colors[index], tooltipText[index], values[index]);\\n },\\n\\n getItemValue: (index) => {\\n return values[index];\\n },\\n getItemText: (index) => {\\n return tooltipText[index];\\n },\\n getColors: () => {\\n return colors;\\n }\\n }\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.6164258","0.6153753","0.6103125","0.60569006","0.6028724","0.60109293","0.5989982","0.5943327","0.5902008","0.58985037","0.5887603","0.5883157","0.58719426","0.5870687","0.5868651","0.584427","0.582053","0.58100206","0.58062714","0.5795493","0.57847077","0.5780946","0.57773554","0.5740487","0.571522","0.5708252","0.5682751","0.56704116","0.56608415","0.56599355","0.5653288","0.56524694","0.56482005","0.5642133","0.5642133","0.5621288","0.56122243","0.55952376","0.5591966","0.55902743","0.5572028","0.5570635","0.5561494","0.555839","0.5557334","0.55511993","0.55447996","0.5537454","0.55358833","0.5532608","0.55324256","0.55270195","0.55265665","0.551741","0.5514852","0.5514362","0.5507551","0.55053985","0.550228","0.5484029","0.5479723","0.54757416","0.5468945","0.5460002","0.5455108","0.5444934","0.54433906","0.5436134","0.5434334","0.5434066","0.5420537","0.54204553","0.5403962","0.54016685","0.5398175","0.539419","0.53887737","0.53877527","0.53788316","0.5373359","0.5370034","0.536766","0.536503","0.5352411","0.5349875","0.53486025","0.5344106","0.53392345","0.5339187","0.53381497","0.53325737","0.5325194","0.532303","0.5318646","0.53142047","0.5312402","0.53045344","0.5304151","0.52959925","0.52959347"],"string":"[\n \"0.6164258\",\n \"0.6153753\",\n \"0.6103125\",\n \"0.60569006\",\n \"0.6028724\",\n \"0.60109293\",\n \"0.5989982\",\n \"0.5943327\",\n \"0.5902008\",\n \"0.58985037\",\n \"0.5887603\",\n \"0.5883157\",\n \"0.58719426\",\n \"0.5870687\",\n \"0.5868651\",\n \"0.584427\",\n \"0.582053\",\n \"0.58100206\",\n \"0.58062714\",\n \"0.5795493\",\n \"0.57847077\",\n \"0.5780946\",\n \"0.57773554\",\n \"0.5740487\",\n \"0.571522\",\n \"0.5708252\",\n \"0.5682751\",\n \"0.56704116\",\n \"0.56608415\",\n \"0.56599355\",\n \"0.5653288\",\n \"0.56524694\",\n \"0.56482005\",\n \"0.5642133\",\n \"0.5642133\",\n \"0.5621288\",\n \"0.56122243\",\n \"0.55952376\",\n \"0.5591966\",\n \"0.55902743\",\n \"0.5572028\",\n \"0.5570635\",\n \"0.5561494\",\n \"0.555839\",\n \"0.5557334\",\n \"0.55511993\",\n \"0.55447996\",\n \"0.5537454\",\n \"0.55358833\",\n \"0.5532608\",\n \"0.55324256\",\n \"0.55270195\",\n \"0.55265665\",\n \"0.551741\",\n \"0.5514852\",\n \"0.5514362\",\n \"0.5507551\",\n \"0.55053985\",\n \"0.550228\",\n \"0.5484029\",\n \"0.5479723\",\n \"0.54757416\",\n \"0.5468945\",\n \"0.5460002\",\n \"0.5455108\",\n \"0.5444934\",\n \"0.54433906\",\n \"0.5436134\",\n \"0.5434334\",\n \"0.5434066\",\n \"0.5420537\",\n \"0.54204553\",\n \"0.5403962\",\n \"0.54016685\",\n \"0.5398175\",\n \"0.539419\",\n \"0.53887737\",\n \"0.53877527\",\n \"0.53788316\",\n \"0.5373359\",\n \"0.5370034\",\n \"0.536766\",\n \"0.536503\",\n \"0.5352411\",\n \"0.5349875\",\n \"0.53486025\",\n \"0.5344106\",\n \"0.53392345\",\n \"0.5339187\",\n \"0.53381497\",\n \"0.53325737\",\n \"0.5325194\",\n \"0.532303\",\n \"0.5318646\",\n \"0.53142047\",\n \"0.5312402\",\n \"0.53045344\",\n \"0.5304151\",\n \"0.52959925\",\n \"0.52959347\"\n]"},"document_score":{"kind":"string","value":"0.6928524"},"document_rank":{"kind":"string","value":"0"}}},{"rowIdx":215,"cells":{"query":{"kind":"string","value":"Reads the data entered in the meta data form and saves it, leading to the source form afterwards."},"document":{"kind":"string","value":"function createMetaData(){\n var title = document.getElementById(\"title\").value;\n var composer = document.getElementById(\"composer\").value;\n var author = document.getElementById(\"author\").value;\n var availability = document.getElementById(\"availability\").value;\n var comment = document.getElementById(\"comment\").value;\n \n metaData = new MetaData(title, composer, author, availability, comment);\n \n document.getElementById(\"input\").innerHTML = sourceForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function applyMetaDataChanges(){\n var title = document.getElementById(\"title\").value;\n var composer = document.getElementById(\"composer\").value;\n var author = document.getElementById(\"author\").value;\n var availability = document.getElementById(\"availability\").value;\n var comment = document.getElementById(\"comment\").value;\n \n if(title){\n metaData.title = title;\n }\n if(composer){\n metaData.composer = composer;\n }\n if(author){\n metaData.author = author;\n }\n if(availability){\n metaData.availability = availability;\n }\n if(comment){\n metaData.comment = comment;\n }\n \n document.getElementById(\"input\").innerHTML = metaDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","function getMetadataForSubmit(){\n meta_new_value = '';\n if (meta_control_type == 'text') {\n meta_new_value = checkForNbsp( $(\"#meta_textarea\").val() );\n\n } else if (meta_control_type == 'list') {\n meta_new_value = checkForNbsp( $(\"#meta_textarea option:selected\").text() );\n\n } else if (meta_control_type == 'date') {\n var month = '', day = '', year = '';\n month = checkForNbsp( $('#month_select option:selected').text() );\n day = checkForNbsp( $('#day_select option:selected').text() );\n year = checkForNbsp( $('#year_select option:selected').text() );\n\n meta_new_value = year + '-' + month + '-' + day + ' CE';\n\n } else if (meta_control_type == 'terminus') {\n var month = '', day = '', year = '', prefix = '', era = '';\n month = checkForNbsp( $('#month_select option:selected').text() );\n day = checkForNbsp( $('#day_select option:selected').text() );\n year = checkForNbsp( $('#year_select option:selected').text() );\n prefix = checkForNbsp( $('#prefix_select option:selected').text() );\n era = checkForNbsp( $('#era_select option:selected').text() );\n\n if (prefix != '') {\n meta_new_value = prefix + ' ';\n }\n meta_new_value += year + '-' + month + '-' + day;\n\n if (era != '') {\n meta_new_value += ' ' + era;\n }\n\n } else if (meta_control_type == 'multi_input') {\n $(\"#meta_textarea option\").each(function () {\n meta_new_value += checkForNbsp( $(this).text() ) + \"\\n\";\n });\n if (meta_new_value != '') {\n meta_new_value = meta_new_value.substring(0, meta_new_value.length - 1);\n }\n\n } else if (meta_control_type == 'multi_select') {\n $(\"#meta_textarea option:selected\").each(function () {\n meta_new_value += checkForNbsp( $(this).text() ) + \"\\n\";\n });\n if (meta_new_value != '') {\n meta_new_value = meta_new_value.substring(0, meta_new_value.length - 1);\n }\n }\n }","function copyStorageToForm() {\n \"use strict\";\n // Set chosen hair type\n setFormHairType(sessionStorage.getItem(\"hair_type\"));\n\n // Set selected traits\n setFormTraits(sessionStorage.getItem(\"traits\"));\n}","function set_common_meta_input(cb) {\n common_form = $('#sample_common_form');\n var form = common_form.children('form');\n\n // Construct new callback function so that the dropdowns to select organism\n // fires change for genus/species/version before change for copying the\n // field to sample meta.\n if (typeof cb == 'function') {\n function callback() {\n set_common_checkboxes(form);\n cb();\n }\n } else {\n function callback() {\n set_common_checkboxes(form);\n }\n }\n\n // Set shared inputs.\n set_shared_inputs(form, callback);\n\n // All samples must have even number of reads for the paired-end radio\n // to be active.\n var even = true;\n for (var id in proj.samples) {\n var sample = proj.samples[id];\n var n_reads = Object.keys(proj.samples[id].reads).length;\n if (n_reads % 2 != 0) {\n even = false;\n }\n }\n if (!even) {\n form.find('input:radio[value=2]').prop('disabled', true);\n }\n\n // Set save & apply button.\n common_form.find('.save_btn').click(function () {\n var btn = $(this);\n\n btn.prop('disabled', true);\n\n // Function to show next form.\n function show_next_form() {\n var meta = $('#sample_meta')\n meta.show();\n $('#meta_footer').show();\n scroll_to_ele(meta);\n }\n\n save_proj(show_saved, btn, show_next_form);\n\n });\n\n // Enable popovers and tooltips.\n enable_popovers_tooltips(common_form);\n}","function saveMeta(){\n\t$('body').find('#meta_data_keys li').each(function() {\n\t\t//if($(this).children('.value').val() != '' ){\n\t\t$.ajax(\n\t\t\t{\n\t\t\t\turl: OC.filePath('meta_data', 'ajax', 'tagOps.php'),\n\t\t\t\ttype: \"POST\",\n\t\t\t\tdata: {\n\t\t\t\ttagOp: 'update_file_key',\n\t\t\t\tkeyId: $(this).attr('id'),\n\t\t\t\ttagId: $('#metadata').attr('tagid'),\n\t\t\t\tfileId:$('#metadata').attr('fileid'),\n\t\t\t\ttype:$('#metadata').attr('type'),\n\t\t\t\tvalue: $(this).find('.value').val()\n\t\t\t},\n\t\t\tsuccess: function(result) {\n\t\t\t}\n\t\t});\n\t\t//}\n\t});\n\t$('body').find('.ui-dialog').remove();\n}","function set_meta_input(cb) {\n // Then, set the samples metadata.\n set_samples_meta_input();\n\n // We have to set the common meta input form after setting up the samples\n // because this function assumes that the global sample_forms variable\n // is populated.\n set_common_meta_input(cb);\n\n // Deal with project meta input form last.\n set_proj_meta_input();\n\n // set_meta_input_fields();\n\n // Then, add listener to verify metadata button.\n $('#verify_meta_btn').click(show_verify_meta_modal);\n\n // Set listener for fill with test metadata button.\n $('#test_metadata_btn').click(fill_with_test_metadata);\n}","function meta_input() {\n var valid = fetch_sample_names();\n\n if (valid) {\n // First, save and set the project.\n write_proj(function () {\n var target = 'cgi_request.php';\n var data = {\n id: proj_id,\n action: 'set_proj'\n };\n send_ajax_request(target, data, null, false);\n });\n\n $('#sample_names_modal').modal('hide');\n\n set_meta_input();\n\n show_meta_input();\n }\n}","function populate() {\n $('#title').val(localStorage.getItem('title')),\n $('#description').val(localStorage.getItem('description')),\n $('#content').html(localStorage.getItem('content'));\n}","function processMetadataForm(theForm) {\n var props=PropertiesService.getDocumentProperties()\n\n for (var item in theForm) {\n props.setProperty(item,theForm[item])\n Logger.log(item+':::'+theForm[item]);\n }\n}","function get_sample_meta(id) {\n var form = sample_forms[id];\n var sample_input_fields = meta_input_fields.samples[id];\n\n var sample_meta = {};\n sample_meta['meta'] = {};\n\n sample_meta['name'] = sample_input_fields['name'].val();\n sample_meta.meta['description'] = sample_input_fields.meta['description']\n .val();\n\n // Get contributors.\n sample_meta.meta['contributors'] = [];\n for (var i = 0; i < sample_contributor_fields[id].length; i++) {\n var field = sample_contributor_fields[id][i];\n var contributor = field.children('input').val();\n\n if (contributor != '' && contributor != null) {\n sample_meta.meta['contributors'].push(contributor);\n }\n }\n\n // Get characteristics.\n sample_meta.meta['chars'] = {};\n for (var i = 0; i < sample_characteristic_fields[id].length; i++) {\n var field = sample_characteristic_fields[id][i];\n var char = field.children('input:nth-of-type(1)').val();\n var detail = field.children('input:nth-of-type(2)').val();\n\n // Add to dictionary only if both char and detail is populated.\n if (char != '' && char != null && detail != '' && detail != null) {\n sample_meta.meta['chars'][char] = detail;\n }\n }\n\n sample_meta.meta['source'] = sample_input_fields.meta['source'].val();\n sample_meta['type'] = parseInt(sample_input_fields['type']\n .find('input:checked').val());\n\n // If reads are paired-end, we need to replace the reads dictionary as well.\n if (sample_meta['type'] == 2) {\n sample_meta['reads'] = [];\n for (var i = 0; i < sample_pair_fields[id].length; i++) {\n var field = sample_pair_fields[id][i];\n var pair_1 = field.children('select:nth-of-type(1)').val();\n var pair_2 = field.children('select:nth-of-type(2)').val();\n\n var pair = [pair_1, pair_2];\n sample_meta['reads'].push(pair);\n }\n }\n\n // Parse organism.\n var org = sample_input_fields['organism'].val();\n if (org != '' && org != null) {\n var split = org.split('_');\n sample_meta['organism'] = split[0] + '_' + split[1];\n sample_meta['ref_ver'] = split.slice(2).join('_');\n } else {\n sample_meta['organism'] = '';\n sample_meta['ref_ver'] = '';\n }\n\n var length = sample_input_fields['length'].val();\n if (length != '' && length != null) {\n sample_meta['length'] = parseInt(length);\n } else {\n sample_meta['length'] = 0;\n }\n\n var stdev = sample_input_fields['stdev'].val();\n if (stdev != '' && stdev != null) {\n sample_meta['stdev'] = parseInt(stdev);\n } else {\n sample_meta['stdev'] = 0;\n }\n\n return sample_meta;\n}","function convert_all_meta_inputs() {\n var proj_inputs = convert_proj_meta_inputs(proj_form);\n\n for (var cat in proj_inputs) {\n proj[cat] = proj_inputs[cat];\n }\n\n for (var id in sample_forms) {\n var sample_form = sample_forms[id];\n var sample_inputs = convert_sample_meta_inputs(sample_form);\n\n for (var cat in sample_inputs) {\n proj.samples[id][cat] = sample_inputs[cat];\n }\n }\n}","function getForm() {\n inputNombre.value = localStorage.getItem('nombre');\n inputApellido.value = localStorage.getItem('apellido');\n inputTel.value = localStorage.getItem('tel');\n inputDir.value = localStorage.getItem('dir');\n inputObs.value = localStorage.getItem('obs');\n console.log('data loaded');\n}","function saveTrackData () {\n var Modal = $('#modalEditTrack');\n var Id = Modal.find('#id').val();\n var oMeta = {\n id: Id\n , title: Modal.find('#title').val()\n , name: Modal.find('#name').val()\n , artist: Modal.find('#artist').val()\n , album: Modal.find('#album').val()\n , track: Modal.find('#track').val()\n , year: Modal.find('#year').val()\n , genre: Modal.find('#track-genre').val()\n , tags: Modal.find('#track-tags').val()\n };\n\n var saveResult = F.requestAjax('/' + Id + '/meta', oMeta, 'POST');\n }","function setupDataForForm(){\n if(typeof(hotty) != \"undefined\"){\n $('#import_data').val(JSON.stringify(hotty.getData()));\n console.log(\"updating the data...\");\n }\n else{\n console.log(\"hotty isnt there, maybe just booting up!\");\n }\n }","function goto_meta_input() {\n read_proj();\n}","save(blockContainer) {\n let newData = {}\n\n // Get the contents of each field for this tool.\n for (let key in this.fields) {\n const element = blockContainer.querySelector(`.${this.CSS.input}[data-key=${key}]`)\n newData[key] = element.tagName == 'INPUT' ? element.value : element.innerHTML\n newData[key] = newData[key].replace('&nbsp;', ' ').trim() // Strip non-breaking whitespace\n }\n\n // TODO: Because of autosave, this strips out necessary defaults prematurely.\n //this.removeInactiveData()\n return Object.assign(this.data, newData)\n }","function save() {\n $editors.find('.text').each(function () {\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\n });\n }","function storeData(){\r\n\t\tvar id \t\t\t\t= Math.floor(Math.random()*100000000001);\r\n\t\t//Gather up all our form field values and store in an object\r\n\t\t//Object properties contain an array with the form label and input value\r\n\t\tgetSelectedRadio();\r\n\t\tvar item \t\t\t\t= {};\r\n\t\t\titem.comicTitle\t\t= [\"Title of Comic:\", e('comicTitle').value];\r\n\t\t\titem.seriesTitle\t= [\"Title of Series:\", e('seriesTitle').value];\r\n\t\t\titem.issueNum\t\t= [\"Issue Number:\", e('issueNum').value];\r\n\t\t\titem.dateReleased\t= [\"Date Released:\", e('dateReleased').value];\r\n\t\t\titem.publisher\t\t= [\"Publisher:\", e('publisher').value];\r\n\t\t\titem.rateIssue\t\t= [\"Rate of Issue:\", e('rateIssue').value];\r\n\t\t\titem.genre \t\t\t= [\"Genre:\", e('genre').value];\r\n\t\t\titem.illStyle\t\t= [\"Illustration Style:\", styleValue];\r\n\t\t\titem.comments\t\t= [\"Comments:\", e('comments').value];\r\n\t\t//Save data into Local Storage: Use Stringify to convert our object to a string\r\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\r\n\t\talert(\"Comic saved to index!\");\r\n\t}","function set_proj_meta_input() {\n proj_form = $('#proj');\n\n // Set the project id header\n var html = proj_form.html();\n proj_form.html(html.replace(new RegExp('PROJECT_ID', 'g'), proj_id));\n\n // Set up contributors.\n var contributors_group = proj_form.find('.proj_contributors_group');\n var contributors_div = contributors_group.children('.contributors_inputs');\n set_contributors(contributors_div);\n\n // Set up Factor 1 name and values.\n var factor_card = proj_form.find('.factor_card');\n set_factor(factor_card);\n\n // Enable experimental design.\n var design_group = proj_form.find('.proj_experimental_design_group');\n var design_inputs = design_group.children('.experimental_design_inputs');\n var factor_hide_radio = design_group.find('#proj_design_1_radio');\n var factor_show_radio = design_group.find('#proj_design_2_radio');\n var div_to_toggle = factor_card.clone(true);\n div_to_toggle.children('h6').text('Contrast Factor 2');\n div_to_toggle.addClass('collapse');\n design_inputs.append(div_to_toggle);\n set_radio_collapse_toggle(factor_hide_radio, factor_show_radio, div_to_toggle);\n\n // Then, we must also set up listeners to show/hide appropriate factor 1\n // and factor 2 information for each sample.\n set_factor_to_sample_listeners(factor_hide_radio, factor_show_radio, design_inputs);\n\n proj_form.find('.save_btn').click(function () {\n var btn = $(this);\n\n // Disable this button.\n btn.prop('disabled', true);\n\n // Function to show next form.\n function show_next_form() {\n var header = $('#sample_meta_header');\n header.show();\n $('#sample_meta_common').show();\n scroll_to_ele(header);\n }\n\n save_proj(show_saved, btn, show_next_form);\n });\n\n // Disable 2-factor design if there are less than 8 samples.\n if (Object.keys(proj.samples).length < 8) {\n factor_show_radio.prop('disabled', true);\n }\n\n // Enable popovers and tooltips.\n enable_popovers_tooltips(proj_form);\n}","function saveData(id)\n\t{\n\t\tvar f = document.fuploadr;\n\t\tvar data = ImageStore[id];\n\t\t\n\t\tdata.title\t\t = f.title.value;\n\t\tdata.description = f.description.value;\n\t\tdata.tags\t\t = f.tags.value;\n\t\tdata.is_public\t = getChecked(f.is_public, 0);\n\t\tdata.is_friend\t = getChecked(f.is_friend, 0);\n\t\tdata.is_family\t = getChecked(f.is_family, 0);\n\t\tdata.safety_level = f.safety_level.value;\n\t\tdata.hidden\t\t = getChecked(f.hidden, 1);\n\t\t//data.content_type = f.content_type.value;\n\t}","function set_samples_meta_input() {\n var sample_form = $('.sample_collapse');\n\n // Set sorted names.\n set_sorted_names();\n\n // Add samples in sorted order (by name).\n for (var i = 0; i < sorted_names.length; i++) {\n var name = sorted_names[i];\n var id = names_to_ids[name];\n var new_sample_form = sample_form.clone(true);\n\n // Replace all instances of SAMPLEID to the id.\n var html = new_sample_form.html();\n new_sample_form.html(html.replace(new RegExp('SAMPLEID', 'g'), id));\n\n sample_forms[id] = new_sample_form;\n\n // Set the sample name.\n new_sample_form.find('.sample_name_group').find('input').val(name);\n\n // Set the reads table for this sample.\n set_reads_table(id, new_sample_form);\n\n // Characteristics.\n var char_group = new_sample_form.find('.sample_specific_'\n + 'characteristics_group');\n set_fluid_input_rows(char_group.find('.sample_characteristics_inputs'));\n\n // Save changes button.\n var save_changes_btn = new_sample_form.find('.save_btn');\n save_changes_btn.click(function () {\n var btn = $(this);\n btn.prop('disabled', true);\n\n save_proj(show_saved, btn);\n });\n\n // Set up copy buttons.\n var copy_btns = new_sample_form.find('.copy_btn');\n copy_btns.each(function () {\n set_copy_btn($(this), id);\n })\n\n // Append new form.\n $('#sample_card').append(new_sample_form);\n }\n\n // Then, set the button handler.\n var dropdown = $('#sample_choices');\n set_choose_sample_button(dropdown, sample_forms);\n\n // Enable popovers and tooltips.\n enable_popovers_tooltips(sample_form);\n}","function save() {\r\n this.textarea.value = this.content();\r\n }","function load() {\n let savedNotes = localStorage.getItem(\"dataNotes\");\n let savedTitle = localStorage.getItem(\"dataTitle\");\n if (savedNotes) {\n notes.value = savedNotes;\n }\n if (savedTitle) {\n notesTitle.value = savedTitle;\n headerTitleChange()\n }\n}","function processDataFromDocusky() {\n\tparseDocInfo();\n\ttoolSetting();\n}","function fillEditForm() {\n let selectedBook = document.getElementById('selected-book')\n let titleInput = document.getElementById('title-edit-in')\n let authorInput = document.getElementById('author-edit-in')\n let genreInput = document.getElementById('genre-edit-in')\n let pagesInput = document.getElementById('pages-edit-in')\n let i = selectedBook.dataset.index\n\n titleInput.value = library[i].title\n authorInput.value = library[i].author\n genreInput.value = library[i].genre\n pagesInput.value = library[i].numPages \n}","function eventDSEditOnLoad() {\n var form = EventEditForm.getForm();\n form.setValues(eventDS.getAt(0).data);\n}","function save() {\n this.textarea.value = this.content();\n }","saveData() {\n if (this.s.unavailable()) {\n return;\n }\n\n for (const val of this.dispField.items) {\n this.s.set(val, this.dispField.checked(val));\n }\n\n this.s.set(\"unit\", this.unitField.get());\n this.s.set(\"format\", this.formatField.get());\n this.s.set(\"sort\", this.sortableField.toArray());\n }","save () {\n\n // Validate\n if (this.checkValidity()) {\n\n // Collect input\n this.info.item = this.collectInput();\n\n // Show modal\n this.modal.show();\n }\n }","function fill_with_test_metadata() {\n set_proj_meta_inputs(proj_form, test_proj_inputs);\n set_common_meta_inputs(common_form, test_common_inputs);\n\n for (var name in test_samples_inputs) {\n var test_sample_inputs = test_samples_inputs[name];\n var sample_form = sample_forms[names_to_ids[name]];\n\n set_sample_meta_inputs(sample_form, test_sample_inputs);\n }\n}","function preformatRawData(metaData, parser) {\n\t\t//fix title and journal, and make conference proceeding a journal (fix when proceedings are possible to cite)\n\t\tmetaData[\"citation_download\"] = metaData[\"citation_download\"].replace(/JO[\\t\\ ]+[\\-]+[\\t\\ ]+/,\"JF - \").replace(/TI[\\t\\ ]+[\\-]+[\\t\\ ]+/,\"T1 - \").replace(/TY[\\t\\ ]+[\\-]+[\\t\\ ]+CONF/,\"TY - JOUR\").trim();\n\t}","function toChangeMetaData(){\n document.getElementById(\"input\").innerHTML = metaDataChangeForm();\n}","function updateOutput2() {\n localStorage.setItem('info2', input_textarea2.value)\n}","function updateOutput4() {\n localStorage.setItem('info4', input_textarea4.value)\n}","_save() {\n\t\tconst version = this._editor.model.document.version;\n\n\t\t// Operation may not result in a model change, so the document's version can be the same.\n\t\tif ( version === this._lastDocumentVersion ) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tthis._data = this._getData();\n\t\t\tthis._lastDocumentVersion = version;\n\t\t} catch ( err ) {\n\t\t\tconsole.error(\n\t\t\t\terr,\n\t\t\t\t'An error happened during restoring editor data. ' +\n\t\t\t\t'Editor will be restored from the previously saved data.'\n\t\t\t);\n\t\t}\n\t}","function saveAnomalyForm() {\n var anomalyType = anomalyForms[anomalyIndex][\"anomaly\"];\n var formEntries = document.getElementById(\"custom-inputs\").getElementsByClassName(\"custom-input\");\n for (var i = 0; i < formEntries.length; i++) {\n var input = formEntries.item(i);\n var fieldName = input.id;\n anomalyForms[anomalyIndex][\"json\"][\"fields\"][fieldName][\"value\"] = input.value;\n }\n}","inputData() {\n return (e) => {\n e.persist();\n var reader = new FileReader();\n const self = this;\n reader.onload = function(e) {\n self.parseInputData(reader.result);\n }\n reader.readAsText(e.target.files[0]);\n e.target.value = \"\";\n };\n }","function preformatRawData(metaData, parser) {\n\t\t//fix title, year and journal abbreviation\n\t\tmetaData[\"citation_download\"] = metaData[\"citation_download\"].replace(/TI[\\t\\ ]+[\\-]+[\\t\\ ]+/,\"T1 - \").replace(/JO[\\t\\ ]+[\\-]+[\\t\\ ]+/,\"JF - \").replace(/PY[\\t\\ ]+[\\-]+[\\t\\ ]+/,\"Y1 - \").trim();\n\t}","function storeData(key){\n\t\t//If there is no key, this means this is a brand new item and we need a new key.\n\t\tif(!key) {\n\t\t\tvar dataId = Math.floor(Math.random()*100000001)\n\t\t} else {\n\t\t\t//Set the id to the existing key we're editing so that it will save over the data.\n\t\t\t//The key is the same key that's been passed along from the editSubmit event handler\n\t\t\t//to the validate function, and then passed here, into th storeData function.\n\t\t\tdataId = key;\n\t\t}\n\n\t\t//Gather up all our form field values and store in an object\n\t\t//Object properties contain array with the form label and the input values\n\t\tvar item = {};\n\t\t\titem.platforms = [\"Game Platform:\", $('platforms').value ];\n\t\t\titem.game = [\"Game Title:\", $(\"game\").value];\n\t\t\titem.date = [\"Date Purchased:\", $(\"date\").value];\n\t\t\titem.fav = [\"Favorite:\", getFavValue()];\n\t\t\titem.score = [\"Score:\", $(\"score\").value];\n\t\t\titem.comments = [\"Comments:\", $(\"comments\").value];\n\t\t//Save data to local storage: Use stringify to convert our object to a string\n\t\tlocalStorage.setItem(dataId, JSON.stringify(item));\n\t\talert(\"Game Saved!\");\n\t}","function updateOutput7() {\n localStorage.setItem('info7', input_textarea7.value)\n}","function updateOutput3() {\n localStorage.setItem('info3', input_textarea3.value)\n}","function getAndProcessData() { \n\t\tchooseFileSource();\n\t}","function preformatRawData(metaData, parser) {\n\t\t//fix title, year and journal abbreviation\n\t\tmetaData[\"citation_download\"] = metaData[\"citation_download\"].replace(/(?:JA|JO|PY)[\\t\\ ]+[\\-]+[\\t\\ ]+/g,\"BIT - \").trim();\n\t}","function load_data() {\n var input = document.getElementById(\"commentName\");\n var comm = document.getElementById(\"commentText\");\n\n input.value = localStorage.getItem('Name');\n comm.value = localStorage.getItem('Comment');\n}","async fetchAndSetMetaData() {\n const response = await this.apiCall(this.metaUrl);\n this.metaData = await this.readValue(response, this.fieldPath);\n this.isLoading = false;\n\n // if(this.validate && this.metaData.regex) {\n if(this.validate) {\n this.regex = new RegExp('^[a-z]*$');\n this.shadowRoot.querySelector('slot').addEventListener('keyup', e => this._handleValueChange(e))\n }\n }","function updateOutput9() {\n localStorage.setItem('info9', input_textarea9.value)\n}","function editStudyInfoSave(e) {\r\n\r\n\t// console.log($('#editStudyInfoModal .form-control').serializeObject());\r\n\r\n\tvar newInfo = $('#editStudyInfoModal .form-control').serializeObject();\r\n\t// console.log(newInfo)\r\n\tvar study = $('#edit-study-page').data('editing');\r\n\r\n\t_.forEach(newInfo, function(item, key) {\r\n\t\tstudy[key] = item;\r\n\t});\r\n\r\n\t$('#edit-study-page').data('editing', study);\r\n\r\n\t$('#editStudyInfoModal').modal('hide');\r\n\r\n}","function saveTerrainModificationForm() {\n var terrainModificationType = terrainModificationForms[terrainModificationIndex][\"terrain-modification\"];\n var formEntries = document.getElementById(\"custom-inputs\").getElementsByClassName(\"custom-input\");\n for (var i = 0; i < formEntries.length; i++) {\n var input = formEntries.item(i);\n var fieldName = input.id;\n terrainModificationForms[terrainModificationIndex][\"json\"][\"fields\"][fieldName][\"value\"] = input.value;\n }\n}","function postToSource() {\n // clear unnecessary tags when editor view empty\n var sourceStrings = editor.text() == \"\" && editor.html().length < 12 ? \"\" : editor.html();\n var value = extractToText(sourceStrings);\n thisElement.val(value);\n }","fillForm(data) {\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","function load() {\r\n this.setContent(this.textarea.value);\r\n }","loadMeta(meta) {\n if (!this.metaElement) {\n this.metaElement = {};\n }\n for (const key of MetaCopyableProperty) {\n const value = meta[key];\n if (typeof value !== \"undefined\") {\n setMetaProperty(this.metaElement, key, value);\n }\n else {\n delete this.metaElement[key];\n }\n }\n }","fillForm() {\n\n if (localStorage.getItem(\"lastname\") !== undefined)\n $(\"form\")[0].lastname.value = localStorage.getItem(\"lastname\");\n\n if (localStorage.getItem(\"firstname\") !== undefined)\n $(\"form\")[0].firstname.value = localStorage.getItem(\"firstname\");\n\n }","function load() {\n this.setContent(this.textarea.value);\n }","function applyMetadata()\n {\n\n\n // get metadata values\n var metadata = groovebox[\"metadata\"];\n\n\n // get the current audio file name\n var currentAudioFile = $(\".track-info\").attr(\"file\");\n\n\n // check if the (new) metadata is different than the currently playing song\n if (groovebox[\"stream\"][\"track\"] !== currentAudioFile)\n {\n\n\n // update the metadata\n\n\n // update the track name\n $(\".track-info .track-name\").html(metadata[\"title\"]).attr(\"title\", metadata[\"title\"]);\n\n\n // update the track artist\n $(\".track-info .track-artist\").html(metadata[\"artist\"]).attr(\"title\", metadata[\"artist\"]);\n\n\n // update the cover-art\n $(\".album-art img\").attr(\"src\", metadata[\"coverArt\"] +\"&\"+ new Date().getTime());\n\n\n // update the current audio file\n $(\".track-info\").attr(\"file\", groovebox[\"stream\"][\"track\"]);\n\n\n }\n\n\n }","function saveData(ranKey) {\n //random key number\n //console.log(\"save it enter\");\n if(!ranKey){\n var id = Math.floor(Math.random()*120211);\n }else{\n id = ranKey;\n }\n getCheckbox();\n getRadio();\n var field={};\n\n field.title=[\"Book Title\", $(\"Title\").value];\n field.date=[\"Date Added:\", $(\"date\").value];\n field.booknumber=[\"Issue Number\", $(\"booknumber\").value];\n field.coverstyle=[\"Cover Style\", styleValue];\n field.read=[\"Read\", readValue];\n field.notes=[\"Notes\", $(\"Notes\").value];\n field.grade=[\"CCG Grading\", $(\"slider\").value];\n\n //Function to convert data into strings (stringify)\n\n localStorage.setItem(id, JSON.stringify(field));\n alert(\"Book Saved\");\n }","function saveData()\n{\n var myid = getBlogId();\n if( !GM_getValue( 'extra-'+myid, '' ) ) configure();\n storePostData();\n var text = $( 'textarea' ), sites=window.sites, html='';\n var tags = $( 'tags' ).value.split( /\\s*[, ]\\s*/ ), tag;\n if( tags[0] != '' )\n {\n html = '';\n for( var i=0; i 1 ) html += sites[i].name +' ';\n html += GM_getValue( 'title-'+myid, 'Tags:' ) + '
    ';\n for( var j=0; j ';\n html += '
';\n }\n text.value += html;\n }\n}","function updateOutput8() {\n localStorage.setItem('info8', input_textarea8.value)\n}","function get_save_data()\n {\n var listselect = $('option:selected', rcmail.gui_objects.notebooks),\n savedata = {\n title: $.trim($('.notetitle', rcmail.gui_objects.noteviewtitle).val()),\n description: rcmail.editor.get_content().replace(/^\\s*(

<\\/p>\\n*)?/, ''),\n list: listselect.length ? listselect.val() : me.selected_note.list || me.selected_list,\n uid: me.selected_note.uid,\n tags: taglist ? kolab_tags_input_value(taglist) : []\n };\n\n // copy links\n if ($.isArray(me.selected_note.links)) {\n savedata.links = me.selected_note.links;\n }\n\n return savedata;\n }","function save() {\n const newcontent = textarea.val().trim()\n if (has_pretty_content_holder)\n content_holder.hide()\n\n $.post(endpoint, {content: newcontent})\n .fail(_ => {\n\t controls.html(new_controls)\n\t content_holder.html(textarea)\n textarea.addClass('invalid')\n // TODO: on error, include error message\n })\n .done(answer => {\n\tif (has_pretty_content_holder)\n\t pretty_content_holder.html(answer)\n\trestore(newcontent)\n })\n }","function storeCurrent() {\r\n let currentData = {\r\n regexInput: regexInput.value,\r\n templateInput: templateInput.value,\r\n globalCheckbox: globalCheckbox.checked,\r\n caseInsensitiveCheckbox: caseInsensitiveCheckbox.checked,\r\n multilineCheckbox: multilineCheckbox.checked,\r\n IgnoreHTMLCheckbox: IgnoreHTMLCheckbox.checked,\r\n resultTextarea: resultTextarea.value,\r\n selectedItemIndex:selectedItemIndex,\r\n smallForm: smallFormCheckbox.checked\r\n };\r\n let store = browser.storage.local.set({\r\n currentData\r\n });\r\n store.then(onError, onError);\r\n}","fillForm ( data ) {\n this.title.value = data.title;\n this.body.value = data.body;\n this.id.value = data.id;\n\n // change form state\n this.changeFormState( \"edit\" )\n\n }","function storeData() {\n\t// This is a little bit of future proofing \n\tif (!submit.key) {\n\t\t// if there is no key, this is a new item and needs a new key\n\t\tvar id = \"ubuVers\" + Math.floor(Math.random()*10000001);\n\t} else {\n\t\t// set the id to the existing key we are editing\n\t\tid = submit.key;\n\t};\n\t\n // I like to give all my form elements their own id's to give myself access\n\t// outside of the form as well as simple access inside of it\n var ubuVersNumValue = ge('ubuVersNum').value,\n ubuVersNameValue = ge('ubuVersName').value,\n\t\tubuVersDict = {version: ubuVersNumValue, release: ubuVersNameValue};\n\t// log out those values as a double check\n console.log(ubuVersNumValue);\n console.log(ubuVersNameValue);\t\n\t\n\t// set the item in localstorage\n\t// note the stringify function\n\tlocalStorage.setItem(id, JSON.stringify(ubuVersDict));\n\t\n\t// log out the whole local storage\n\tconsole.log(localStorage);\n\tge('submit').value = 'Add';\n\n\n}","function updateOutput1() {\n localStorage.setItem('info1', input_textarea1.value)\n}","livelyPrepareSave() {\n // this.setAttribute(\"data-mydata\", this.get(\"#textField\").value);\n }","function preformatRawData(metaData, parser) {\n\t\t//do nothing, as there is no dynamic citation export being requested\n\t}","function loadData(data)\n\t{\n\t\tvar f = document.fuploadr;\n\n\t\tf.title.value\t\t= data.title;\n\t\tf.description.value = data.description;\n\t\tf.tags.value\t\t= data.tags;\n\t\tsetChecked(f.is_public, data.is_public);\n\t\tsetChecked(f.is_friend, data.is_friend);\n\t\tsetChecked(f.is_family, data.is_family);\n\t\tsetChecked(f.hidden, data.hidden);\n\t\tsetOption(f.safety_level, data.safety_level);\n\t}","handleSourceData(){\n let self = this;\n $(this.fromInput).on('change keyup', function(e) {\n e.preventDefault();\n let slugData = self.generateSlug($(this).val());\n // Replace new to slug:\n $(self.wrapper).val(slugData)\n });\n }","function storePostData()\n{\n var blog = GM_getValue( 'extra-'+myid, name );\n var myid = getBlogId();\n var tags = $( 'tags' ).value.replace( /\\s*,\\s*/g, ' ' );\n if( blog ) tags = blog +' '+ tags;\n var head = $( 'f-title' ).value;\n var form = document.forms.namedItem( 'stuffform' ).elements;\n var date = form.namedItem( 'postYear' ).value +'-'+\n\t pad( parseInt(form.namedItem( 'postMonth' ).value, 10)+1 ) +'-'+\n\t pad( form.namedItem( 'postDay' ).value ) + ' ';\n var hour = form.namedItem( 'postHour' ).value % 12;\n var ampm = form.namedItem( 'postAMPM' ).value;\n if( ampm ) hour += 12;\n var time = pad( hour ) +':'+ pad( form.namedItem( 'postMinute' ).value );\n var data = { title:head, extended:date+time, tags:tags };\n var save = '';\n for( var i in data )\n save += '&'+ i +'='+ encodeURIComponent( data[i] );\n GM_setValue( 'postdata-'+myid, save );\n}","function updateOutput5() {\n localStorage.setItem('info5', input_textarea5.value)\n}","function applySourceDataChanges(){\n var composer = document.getElementById(\"composer\").value;\n var title = document.getElementById(\"title\").value;\n var location = document.getElementById(\"location\").value;\n var ownership = document.getElementById(\"ownership\").value;\n var date = document.getElementById(\"date\").value;\n var publicationstatus = document.getElementById(\"publicationstatus\").value;\n var medium = document.getElementById(\"medium\").value;\n var x = document.getElementById(\"x\").value;\n var y = document.getElementById(\"y\").value;\n var unit = document.getElementById(\"unit\").value;\n var condition = document.getElementById(\"condition\").value;\n var extent = document.getElementById(\"extent\").value;\n var language = document.getElementById(\"language\").value;\n var handwriting = document.getElementById(\"handwriting\").value;\n \n if(composer){\n currentSource.composer = composer;\n }\n if(title){\n currentSource.title = title;\n }\n if(location){\n currentSource.location = location;\n }\n if(ownership){\n currentSource.ownership = ownership;\n }\n if(date){\n currentSource.date = date;\n }\n if(publicationstatus){\n currentSource.publicationstatus = publicationstatus;\n }\n if(medium){\n currentSource.medium = medium;\n }\n if(x){\n currentSource.x = x;\n }\n if(y){\n currentSource.y = y;\n }\n if(unit){\n currentSource.unit = unit;\n }\n if(condition){\n currentSource.condition = condition;\n }\n if(extent){\n currentSource.extent = extent;\n }\n if(language){\n currentSource.language = language;\n }\n if(handwriting){\n currentSource.handwriting = handwriting;\n }\n \n document.getElementById(\"input\").innerHTML = sourceDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function storeLocally(){\n var formName = document.getElementById('txtName').value;\n var formAge = document.getElementById('txtAge').value;\n sessionStorage.setItem(formName, formAge);\n\n var formOutput = formName + \": \" + formAge + \" y.o.\";\n\n appendObject (formOutput, \"P\", \"output\");\n}","function fillForm (data) {\n\t\n edit_record = data.records[0];\n\t\n\tarchive_id = edit_record['oid'];\n\tif ( /^\\d/.test(archive_id) ) archive_id = 'dar:' + archive_id;\n\t\n\tnumeric_id = archive_id;\n\tif ( /^dar:/.test(numeric_id) ) numeric_id = numeric_id.substr(4);\n\t\n\tsetInnerHTML('dar_header', \"Data Archive \" + numeric_id);\n\tsetElementValue('dar_id', archive_id);\n\tsetElementValue('dar_title', edit_record['title']);\n\tsetElementValue('dar_description', edit_record['description']);\n\tsetElementValue('dar_authors', edit_record['authors']);\n\tsetElementValue('dar_public', edit_record['is_public']);\n\t\n\tvar archive_uri = edit_record['uri_path'] + \"?\" + edit_record['uri_args'];\n\t\n\tsetElementValue('dar_uri', archive_uri);\n\t\n\tvar doi_content = '';\n\t\n\tif ( edit_record['doi'] )\n\t{\n\t doi_content = '';\n\t if ( edit_record.prm == 'admin' )\n\t\tdoi_content = doi_content + '&nbsp;';\n\t disableElement('dar_title', true);\n\t disableElement('dar_authors', true);\n\t disableElement('dar_public', true);\n\t}\n\t\n\telse\n\t{\n\t if ( edit_record.sta == 'pending' || edit_record.status == 'pending' )\n\t {\n\t\tdoi_content = 'DOI has been requested&nbsp;&nbsp;' +\n\t\t \"\";\n\t\tif ( edit_record.prm == 'admin' )\n\t\t doi_content = doi_content + \"&nbsp;\";\n\t }\n\t \n else\n\t {\n\t\tdoi_content = \"\";\n }\n\t \n\t disableElement('dar_title', false);\n\t disableElement('dar_authors', false);\n\t disableElement('dar_public', false);\n\t}\n\t\n\tsetInnerHTML('dar_doi', doi_content);\n\t\n\tsetInnerHTML('dar_fetched', edit_record['fetched']);\n\tsetInnerHTML('dar_created', edit_record['dcr']);\n\tsetInnerHTML('dar_modified', edit_record['dmd']);\n\t\n\tif ( edit_record['ent'] )\n\t{\n\t var authent = edit_record['ent'];\n\n\t if ( edit_record['ath'] && edit_record['ath'] != edit_record['ent'] )\n\t\tauthent = authent + ' (' + edit_record['ath'] + ')';\n\t \n\t setInnerHTML('dar_authent', authent);\n\t}\n }","function storeForm() {\n /*jshint validthis:true */\n var form = $(this);\n var formId = form[0].id;\n if (!formId) return;\n var formJSON = app.formToData(form);\n if (!formJSON) return;\n app.formStoreData(formId, formJSON);\n form.trigger('store form:storedata', {data: formJSON});\n }","function loaddata(){\n\t\tvar data1 = localStorage.getItem(\"infor_sku\") || \"\";\n\t\tvar data2 = localStorage.getItem(\"pd\") || \"\";\n\t\tvar data3 = localStorage.getItem(\"sh\") || \"\";\n\t\tif (!!data1) { sku_items = JSON.parse(data1); }\n\t\tif (!!data2) { pd_items = JSON.parse(data2); }\n\t\tif (!!data3) { sh_items = JSON.parse(data3); }\n\t\t$(\"#datafile\").val( localStorage.getItem(\"datafile\") ||\"http://123.123.123.250:5000/\");\n\t\t$(\"#myfile\").val( localStorage.getItem(\"myfile\") ||\"spchkm/\");\n\t\t\n\t}","function storeData (key) {\n\t\tif (!key) {\n\t\t\tvar id = Math.floor(Math.random()*1000000);\n\t\t} else {\n\t\t\tvar id = key;\n\t\t}\t\t\n\t\tgetSelectedRadio();\n\t\t\n\t\t//Form data into an object..\n\t\t//Object properties has array with label and value.\n\t\t\n\t\tvar item \t\t\t\t= {};\n\t\titem.group \t\t\t\t= [\"Group:\", $('groups').value];\n\t\titem.remindTitle \t\t= [\"Reminder Title:\", $('remindTitle').value];\n\t\titem.dueDate\t\t\t= [\"Due Date:\", $('due').value];\n\t\titem.priority\t\t\t= [\"Priority:\", priorityValue];\n\t\titem.recurrence\t\t\t= [\"Recurrence:\",$('recurrence').value];\n\t\titem.description\t\t= [\"Description:\", $('description').value];\n\t\t\n\t\t\n\t\t//Save to Local Storage\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\n\t\talert(\"Reminder is set!\");\n\t\t\n\t\twindow.location = 'index.html';\n\t\twindow.reload();\n\t}","function restore_inputs () {\n\n\t\t\t\tparse_variables();\n\n\t\t\t\t$('.form-w').val(W);\n\t\t\t\t$('.form-b').val(B);\n\t\t\t\t$('.form-mf').val(Mf);\n\t\t\t\t$('.form-mt').val(Mt);\n\n\t\t\t}","function setDataFromLocalStorage() { \t\n \tCORE.LOG.addInfo(\"PROFILE_PAGE:setDataFromLocalStorage\");\n \t$(\"#name\").val(gameData.data.player.profile.name);\n \t$(\"#surname\").val(gameData.data.player.profile.surname);\n \t$(\"#age\").val(gameData.data.player.profile.age);\n \t$(\"#sex\").val(gameData.data.player.profile.sex);\n \t$(\"#mobile\").val(gameData.data.player.profile.mobile); \n \t \t \t\n }","fillForm(data){\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","function prefill_form(){\ndocument.getElementById(\"ref\").value = localStorage.job1Ref;\ndocument.getElementById(\"jobtitle\").value = localStorage.joblTitles;\n//alert(localStorage.job1Ref);\n}","function inputStoreData() {\n console.log(\"inside original input storage\");\n inputs = $('input[type=\"text\"],input[type=\"password\"]').each(function() {\n $(this).data('original', this.value);\n });\n console.log(\"Inputs inside store function:\" + inputs);\n}","function displayNotes (){\n if (localStorage.getItem(\"generalInfo\")){\n generalInfo = JSON.parse(localStorage.getItem(\"generalInfo\"));\n for(i = 0; i < generalInfo.length; i++){\n $(\"#inputEvent\"+generalInfo[i].display).attr(\"value\", generalInfo[i].notes);\n console.log($(\"#inputEvent\"+generalInfo[i].display));\n }\n }\n }","function storeSettings() {\n check();\n browser.storage.local.set(f2j(form));\n}","function displayMemo() {\n document.getElementById(\"memo-title\").value = currentMemo.title;\n document.getElementById(\"memo-content\").value = currentMemo.content;\n}","function save(){\n if (!isSaveAllowed) {\n log('Save was temporarily disabled until you decide what to do with previously saved content.');\n return;\n }\n\n var data = getFormData();\n data['_autosaveTime'] = now();\n var key = getKey();\n\n if(typeof key === 'string' && key.length > keyPrefix.length && typeof data === 'object'){\n localStorage.setItem(key.trim(), JSON.stringify(data));\n\n log('Content saved.');\n }\n\n removeOldEntries();\n}","function storeForm() {\n\t /*jshint validthis:true */\n\t var form = $(this);\n\t var formId = form[0].id;\n\t if (!formId) return;\n\t var formJSON = app.formToData(form);\n\t if (!formJSON) return;\n\t app.formStoreData(formId, formJSON);\n\t form.trigger('store form:storedata', {data: formJSON});\n\t }","function save(e) {\n var node = e.target;\n if (node.nodeName === 'INPUT' && node.checked) {\n localStorage[node.name] = node.value;\n }\n else if (node.nodeName === 'SELECT') {\n localStorage[node.name] = node.value;\n }\n }","function updateStore() {\n //type\n let type_init = document.getElementById(\"type_select\");\n store.set(\"type\", type_init.options[type_init.selectedIndex].value);\n\n //color\n let color_init = document.getElementById(\"color_select\");\n store.set(\"color\", color_init.options[color_init.selectedIndex].value);\n\n //welcome inputs\n for (let i = 0; i < welcomeInputs.length; i++) {\n updateStoreFromTextArea(welcomeInputs[i]);\n }\n\n //customization section inputs\n for (let i = 1; i < customizationSections.length; i++) {\n updateStoreFromTextArea(customizationSections[i]);\n }\n}","function updateMeta() {\r\n // Eyes wide open for this giant hack. I'm reading the metric HTML (converted from\r\n // markdown in build process) and pulling substrings out to place on the page via\r\n // ill-advised lefty-righty kind of crap. I should probably be beaten for this.\r\n // Given the proclivity of the project partners to edit the metadata nearly\r\n // continuously for years, markdown made the most sense, and to process the result\r\n // into my various buckets requires this kind of hacky stuff. Needless to say you'll\r\n // need to update this if you screw with the metadata markdown layout at all.\r\n $.ajax({\r\n url: 'data/meta/' + $(\"#metric\").val() + '.html',\r\n type: 'GET',\r\n dataType: 'text',\r\n success: function (data) {\r\n $('.meta-subtitle').html(\r\n data.substring(GetSubstringIndex(data, '', 1) + 5, GetSubstringIndex(data, '', 1) + 5, GetSubstringIndex(data, '', 2) + 5, GetSubstringIndex(data, '', 3) + 5, data.length)\r\n );\r\n\r\n // make meta tables (jesus tables really?) from markdown get the bootstrap table class\r\n $('.meta-container table').addClass('table table-condensed');\r\n },\r\n error: function (error, status, desc) {\r\n //console.log(status, desc);\r\n }\r\n });\r\n\r\n}","function storedData() {\n localStorage.setItem(\"journalEntry\", newEvent);\n const storedInput = localStorage.getItem(\"journalEntry\");\n\n // if(storageInput) {\n\n // }\n}","function updateOutput6() {\n localStorage.setItem('info6', input_textarea6.value)\n}","function writeMeta(syntaxObject) {\n\t\tif ($.isEmptyObject(syntaxObject)) {\n\t\t\tsyntaxString = '';\n\t\t} else {\n\t\t\tsyntaxString = JSON.stringify(syntaxObject);\n\t\t}\n\n\t\t$('#syntax-storage').val(syntaxString);\n\t}","function saveInventory() {\n Settings.setValue(inventoryDataSettingString, inventoryData);\n }","function onPageDetailsReceived(pageDetails) { \n document.getElementById('title').value = pageDetails.title; \n document.getElementById('url').value = pageDetails.url; \n document.getElementById('abstract').innerText = pageDetails.abstract; \n}","function storeData(key){\n\t\t//if there is no key, this is a brand new item & we need a new key\n\t\tif(!(key)){\n\t\t\tvar id\t\t\t\t= Math.floor(Math.random()*1000000001);\n\t\t}else{\n\t\t\t//set the id to the existing key that we're editing in order to rewrite local storage\n\t\t\tid = key;\n\t\t}\n\t\t\n\t\t//Gather up all our form field values and store them in an object\n\t\t//Object properties contain array with form label and input values\n\n\t\tgetSelectedRadio();\n\t\tvar item\t\t\t= {};\n\t\t\titem.date\t\t= [\"Date: \", $('date').value];\n\t\t\titem.type\t\t= [\"Meal Type: \", $('type').value];\n\t\t\titem.group\t\t= [\"Food Group: \", groupValue];\n\t\t\titem.name\t\t= [\"Food Name: \", $('name').value];\n\t\t\titem.calories\t= [\"Calories: \", $('calories').value];\n\t\t\titem.notes\t\t= [\"Additional Notes: \", $('notes').value];\n\t\t//Save data to local storage\n\t\t\tlocalStorage.setItem(id, JSON.stringify(item));\n\t\t\talert(\"Meal Saved!\");\n\t\t\t\n\t}","function saveElementSeedForm() {\n var elementType = elementSeedForms[elementSeedIndex][\"element\"];\n var formEntries = document.getElementById(\"custom-inputs\").getElementsByClassName(\"custom-input\");\n for (var i = 0; i < formEntries.length; i++) {\n var input = formEntries.item(i);\n var fieldName = input.id;\n elementSeedForms[elementSeedIndex][\"json\"][\"fields\"][fieldName][\"value\"] = input.value;\n }\n}","function setData() {\n localStorage.setItem('name', username.value);\n localStorage.setItem('email', email.value);\n localStorage.setItem('city', city.value);\n localStorage.setItem('organisation', organisation.value);\n localStorage.setItem('contact', contact.value);\n localStorage.setItem('message', message.value);\n // Reset all the fields.\n username.value = '';\n email.value = '';\n city.value = 'city';\n organisation.value = '';\n contact.value = '';\n message.value = '';\n\n}","function applyCurrentSource(){\n currentSID = document.getElementById(\"source\").value;\n document.getElementById(\"input\").innerHTML = sourceDataChangeForm();\n}","function handleForm(event) {\n const { name, value } = event.target;\n\n if (name === \"name\") setName(value);\n else if (name === \"headline\") setHeadline(value);\n else if (name === \"highlights\") setHighlights(value);\n else if (name === \"tagline\") setTagline(value);\n }","function loadExistingData() {\n existingData = lbs.limeDataConnection.ActiveInspector.Controls.GetValue('creditinfo')\n if (existingData) {\n existingData = lbs.loader.xmlToJSON(existingData, 'creditdata');\n if (moment().diff(existingData.creditdata.ratingData.ratingDate, 'days') < self.config.maxAge) {\n viewModel.ratingValue(existingData.creditdata.ratingData.ratingValue);\n viewModel.ratingText(existingData.creditdata.ratingData.ratingText);\n viewModel.ratingDate(existingData.creditdata.ratingData.ratingDate);\n }\n }else if(viewModel.inline){\n existingData = viewModel.inline;\n viewModel.ratingValue('?');\n viewModel.ratingText('Ingen kreditrating tagen');\n viewModel.loadText('Ta kreditkontroll');\n }\n }"],"string":"[\n \"function applyMetaDataChanges(){\\n var title = document.getElementById(\\\"title\\\").value;\\n var composer = document.getElementById(\\\"composer\\\").value;\\n var author = document.getElementById(\\\"author\\\").value;\\n var availability = document.getElementById(\\\"availability\\\").value;\\n var comment = document.getElementById(\\\"comment\\\").value;\\n \\n if(title){\\n metaData.title = title;\\n }\\n if(composer){\\n metaData.composer = composer;\\n }\\n if(author){\\n metaData.author = author;\\n }\\n if(availability){\\n metaData.availability = availability;\\n }\\n if(comment){\\n metaData.comment = comment;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = metaDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"function getMetadataForSubmit(){\\n meta_new_value = '';\\n if (meta_control_type == 'text') {\\n meta_new_value = checkForNbsp( $(\\\"#meta_textarea\\\").val() );\\n\\n } else if (meta_control_type == 'list') {\\n meta_new_value = checkForNbsp( $(\\\"#meta_textarea option:selected\\\").text() );\\n\\n } else if (meta_control_type == 'date') {\\n var month = '', day = '', year = '';\\n month = checkForNbsp( $('#month_select option:selected').text() );\\n day = checkForNbsp( $('#day_select option:selected').text() );\\n year = checkForNbsp( $('#year_select option:selected').text() );\\n\\n meta_new_value = year + '-' + month + '-' + day + ' CE';\\n\\n } else if (meta_control_type == 'terminus') {\\n var month = '', day = '', year = '', prefix = '', era = '';\\n month = checkForNbsp( $('#month_select option:selected').text() );\\n day = checkForNbsp( $('#day_select option:selected').text() );\\n year = checkForNbsp( $('#year_select option:selected').text() );\\n prefix = checkForNbsp( $('#prefix_select option:selected').text() );\\n era = checkForNbsp( $('#era_select option:selected').text() );\\n\\n if (prefix != '') {\\n meta_new_value = prefix + ' ';\\n }\\n meta_new_value += year + '-' + month + '-' + day;\\n\\n if (era != '') {\\n meta_new_value += ' ' + era;\\n }\\n\\n } else if (meta_control_type == 'multi_input') {\\n $(\\\"#meta_textarea option\\\").each(function () {\\n meta_new_value += checkForNbsp( $(this).text() ) + \\\"\\\\n\\\";\\n });\\n if (meta_new_value != '') {\\n meta_new_value = meta_new_value.substring(0, meta_new_value.length - 1);\\n }\\n\\n } else if (meta_control_type == 'multi_select') {\\n $(\\\"#meta_textarea option:selected\\\").each(function () {\\n meta_new_value += checkForNbsp( $(this).text() ) + \\\"\\\\n\\\";\\n });\\n if (meta_new_value != '') {\\n meta_new_value = meta_new_value.substring(0, meta_new_value.length - 1);\\n }\\n }\\n }\",\n \"function copyStorageToForm() {\\n \\\"use strict\\\";\\n // Set chosen hair type\\n setFormHairType(sessionStorage.getItem(\\\"hair_type\\\"));\\n\\n // Set selected traits\\n setFormTraits(sessionStorage.getItem(\\\"traits\\\"));\\n}\",\n \"function set_common_meta_input(cb) {\\n common_form = $('#sample_common_form');\\n var form = common_form.children('form');\\n\\n // Construct new callback function so that the dropdowns to select organism\\n // fires change for genus/species/version before change for copying the\\n // field to sample meta.\\n if (typeof cb == 'function') {\\n function callback() {\\n set_common_checkboxes(form);\\n cb();\\n }\\n } else {\\n function callback() {\\n set_common_checkboxes(form);\\n }\\n }\\n\\n // Set shared inputs.\\n set_shared_inputs(form, callback);\\n\\n // All samples must have even number of reads for the paired-end radio\\n // to be active.\\n var even = true;\\n for (var id in proj.samples) {\\n var sample = proj.samples[id];\\n var n_reads = Object.keys(proj.samples[id].reads).length;\\n if (n_reads % 2 != 0) {\\n even = false;\\n }\\n }\\n if (!even) {\\n form.find('input:radio[value=2]').prop('disabled', true);\\n }\\n\\n // Set save & apply button.\\n common_form.find('.save_btn').click(function () {\\n var btn = $(this);\\n\\n btn.prop('disabled', true);\\n\\n // Function to show next form.\\n function show_next_form() {\\n var meta = $('#sample_meta')\\n meta.show();\\n $('#meta_footer').show();\\n scroll_to_ele(meta);\\n }\\n\\n save_proj(show_saved, btn, show_next_form);\\n\\n });\\n\\n // Enable popovers and tooltips.\\n enable_popovers_tooltips(common_form);\\n}\",\n \"function saveMeta(){\\n\\t$('body').find('#meta_data_keys li').each(function() {\\n\\t\\t//if($(this).children('.value').val() != '' ){\\n\\t\\t$.ajax(\\n\\t\\t\\t{\\n\\t\\t\\t\\turl: OC.filePath('meta_data', 'ajax', 'tagOps.php'),\\n\\t\\t\\t\\ttype: \\\"POST\\\",\\n\\t\\t\\t\\tdata: {\\n\\t\\t\\t\\ttagOp: 'update_file_key',\\n\\t\\t\\t\\tkeyId: $(this).attr('id'),\\n\\t\\t\\t\\ttagId: $('#metadata').attr('tagid'),\\n\\t\\t\\t\\tfileId:$('#metadata').attr('fileid'),\\n\\t\\t\\t\\ttype:$('#metadata').attr('type'),\\n\\t\\t\\t\\tvalue: $(this).find('.value').val()\\n\\t\\t\\t},\\n\\t\\t\\tsuccess: function(result) {\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\t//}\\n\\t});\\n\\t$('body').find('.ui-dialog').remove();\\n}\",\n \"function set_meta_input(cb) {\\n // Then, set the samples metadata.\\n set_samples_meta_input();\\n\\n // We have to set the common meta input form after setting up the samples\\n // because this function assumes that the global sample_forms variable\\n // is populated.\\n set_common_meta_input(cb);\\n\\n // Deal with project meta input form last.\\n set_proj_meta_input();\\n\\n // set_meta_input_fields();\\n\\n // Then, add listener to verify metadata button.\\n $('#verify_meta_btn').click(show_verify_meta_modal);\\n\\n // Set listener for fill with test metadata button.\\n $('#test_metadata_btn').click(fill_with_test_metadata);\\n}\",\n \"function meta_input() {\\n var valid = fetch_sample_names();\\n\\n if (valid) {\\n // First, save and set the project.\\n write_proj(function () {\\n var target = 'cgi_request.php';\\n var data = {\\n id: proj_id,\\n action: 'set_proj'\\n };\\n send_ajax_request(target, data, null, false);\\n });\\n\\n $('#sample_names_modal').modal('hide');\\n\\n set_meta_input();\\n\\n show_meta_input();\\n }\\n}\",\n \"function populate() {\\n $('#title').val(localStorage.getItem('title')),\\n $('#description').val(localStorage.getItem('description')),\\n $('#content').html(localStorage.getItem('content'));\\n}\",\n \"function processMetadataForm(theForm) {\\n var props=PropertiesService.getDocumentProperties()\\n\\n for (var item in theForm) {\\n props.setProperty(item,theForm[item])\\n Logger.log(item+':::'+theForm[item]);\\n }\\n}\",\n \"function get_sample_meta(id) {\\n var form = sample_forms[id];\\n var sample_input_fields = meta_input_fields.samples[id];\\n\\n var sample_meta = {};\\n sample_meta['meta'] = {};\\n\\n sample_meta['name'] = sample_input_fields['name'].val();\\n sample_meta.meta['description'] = sample_input_fields.meta['description']\\n .val();\\n\\n // Get contributors.\\n sample_meta.meta['contributors'] = [];\\n for (var i = 0; i < sample_contributor_fields[id].length; i++) {\\n var field = sample_contributor_fields[id][i];\\n var contributor = field.children('input').val();\\n\\n if (contributor != '' && contributor != null) {\\n sample_meta.meta['contributors'].push(contributor);\\n }\\n }\\n\\n // Get characteristics.\\n sample_meta.meta['chars'] = {};\\n for (var i = 0; i < sample_characteristic_fields[id].length; i++) {\\n var field = sample_characteristic_fields[id][i];\\n var char = field.children('input:nth-of-type(1)').val();\\n var detail = field.children('input:nth-of-type(2)').val();\\n\\n // Add to dictionary only if both char and detail is populated.\\n if (char != '' && char != null && detail != '' && detail != null) {\\n sample_meta.meta['chars'][char] = detail;\\n }\\n }\\n\\n sample_meta.meta['source'] = sample_input_fields.meta['source'].val();\\n sample_meta['type'] = parseInt(sample_input_fields['type']\\n .find('input:checked').val());\\n\\n // If reads are paired-end, we need to replace the reads dictionary as well.\\n if (sample_meta['type'] == 2) {\\n sample_meta['reads'] = [];\\n for (var i = 0; i < sample_pair_fields[id].length; i++) {\\n var field = sample_pair_fields[id][i];\\n var pair_1 = field.children('select:nth-of-type(1)').val();\\n var pair_2 = field.children('select:nth-of-type(2)').val();\\n\\n var pair = [pair_1, pair_2];\\n sample_meta['reads'].push(pair);\\n }\\n }\\n\\n // Parse organism.\\n var org = sample_input_fields['organism'].val();\\n if (org != '' && org != null) {\\n var split = org.split('_');\\n sample_meta['organism'] = split[0] + '_' + split[1];\\n sample_meta['ref_ver'] = split.slice(2).join('_');\\n } else {\\n sample_meta['organism'] = '';\\n sample_meta['ref_ver'] = '';\\n }\\n\\n var length = sample_input_fields['length'].val();\\n if (length != '' && length != null) {\\n sample_meta['length'] = parseInt(length);\\n } else {\\n sample_meta['length'] = 0;\\n }\\n\\n var stdev = sample_input_fields['stdev'].val();\\n if (stdev != '' && stdev != null) {\\n sample_meta['stdev'] = parseInt(stdev);\\n } else {\\n sample_meta['stdev'] = 0;\\n }\\n\\n return sample_meta;\\n}\",\n \"function convert_all_meta_inputs() {\\n var proj_inputs = convert_proj_meta_inputs(proj_form);\\n\\n for (var cat in proj_inputs) {\\n proj[cat] = proj_inputs[cat];\\n }\\n\\n for (var id in sample_forms) {\\n var sample_form = sample_forms[id];\\n var sample_inputs = convert_sample_meta_inputs(sample_form);\\n\\n for (var cat in sample_inputs) {\\n proj.samples[id][cat] = sample_inputs[cat];\\n }\\n }\\n}\",\n \"function getForm() {\\n inputNombre.value = localStorage.getItem('nombre');\\n inputApellido.value = localStorage.getItem('apellido');\\n inputTel.value = localStorage.getItem('tel');\\n inputDir.value = localStorage.getItem('dir');\\n inputObs.value = localStorage.getItem('obs');\\n console.log('data loaded');\\n}\",\n \"function saveTrackData () {\\n var Modal = $('#modalEditTrack');\\n var Id = Modal.find('#id').val();\\n var oMeta = {\\n id: Id\\n , title: Modal.find('#title').val()\\n , name: Modal.find('#name').val()\\n , artist: Modal.find('#artist').val()\\n , album: Modal.find('#album').val()\\n , track: Modal.find('#track').val()\\n , year: Modal.find('#year').val()\\n , genre: Modal.find('#track-genre').val()\\n , tags: Modal.find('#track-tags').val()\\n };\\n\\n var saveResult = F.requestAjax('/' + Id + '/meta', oMeta, 'POST');\\n }\",\n \"function setupDataForForm(){\\n if(typeof(hotty) != \\\"undefined\\\"){\\n $('#import_data').val(JSON.stringify(hotty.getData()));\\n console.log(\\\"updating the data...\\\");\\n }\\n else{\\n console.log(\\\"hotty isnt there, maybe just booting up!\\\");\\n }\\n }\",\n \"function goto_meta_input() {\\n read_proj();\\n}\",\n \"save(blockContainer) {\\n let newData = {}\\n\\n // Get the contents of each field for this tool.\\n for (let key in this.fields) {\\n const element = blockContainer.querySelector(`.${this.CSS.input}[data-key=${key}]`)\\n newData[key] = element.tagName == 'INPUT' ? element.value : element.innerHTML\\n newData[key] = newData[key].replace('&nbsp;', ' ').trim() // Strip non-breaking whitespace\\n }\\n\\n // TODO: Because of autosave, this strips out necessary defaults prematurely.\\n //this.removeInactiveData()\\n return Object.assign(this.data, newData)\\n }\",\n \"function save() {\\n $editors.find('.text').each(function () {\\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\\n });\\n }\",\n \"function storeData(){\\r\\n\\t\\tvar id \\t\\t\\t\\t= Math.floor(Math.random()*100000000001);\\r\\n\\t\\t//Gather up all our form field values and store in an object\\r\\n\\t\\t//Object properties contain an array with the form label and input value\\r\\n\\t\\tgetSelectedRadio();\\r\\n\\t\\tvar item \\t\\t\\t\\t= {};\\r\\n\\t\\t\\titem.comicTitle\\t\\t= [\\\"Title of Comic:\\\", e('comicTitle').value];\\r\\n\\t\\t\\titem.seriesTitle\\t= [\\\"Title of Series:\\\", e('seriesTitle').value];\\r\\n\\t\\t\\titem.issueNum\\t\\t= [\\\"Issue Number:\\\", e('issueNum').value];\\r\\n\\t\\t\\titem.dateReleased\\t= [\\\"Date Released:\\\", e('dateReleased').value];\\r\\n\\t\\t\\titem.publisher\\t\\t= [\\\"Publisher:\\\", e('publisher').value];\\r\\n\\t\\t\\titem.rateIssue\\t\\t= [\\\"Rate of Issue:\\\", e('rateIssue').value];\\r\\n\\t\\t\\titem.genre \\t\\t\\t= [\\\"Genre:\\\", e('genre').value];\\r\\n\\t\\t\\titem.illStyle\\t\\t= [\\\"Illustration Style:\\\", styleValue];\\r\\n\\t\\t\\titem.comments\\t\\t= [\\\"Comments:\\\", e('comments').value];\\r\\n\\t\\t//Save data into Local Storage: Use Stringify to convert our object to a string\\r\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\r\\n\\t\\talert(\\\"Comic saved to index!\\\");\\r\\n\\t}\",\n \"function set_proj_meta_input() {\\n proj_form = $('#proj');\\n\\n // Set the project id header\\n var html = proj_form.html();\\n proj_form.html(html.replace(new RegExp('PROJECT_ID', 'g'), proj_id));\\n\\n // Set up contributors.\\n var contributors_group = proj_form.find('.proj_contributors_group');\\n var contributors_div = contributors_group.children('.contributors_inputs');\\n set_contributors(contributors_div);\\n\\n // Set up Factor 1 name and values.\\n var factor_card = proj_form.find('.factor_card');\\n set_factor(factor_card);\\n\\n // Enable experimental design.\\n var design_group = proj_form.find('.proj_experimental_design_group');\\n var design_inputs = design_group.children('.experimental_design_inputs');\\n var factor_hide_radio = design_group.find('#proj_design_1_radio');\\n var factor_show_radio = design_group.find('#proj_design_2_radio');\\n var div_to_toggle = factor_card.clone(true);\\n div_to_toggle.children('h6').text('Contrast Factor 2');\\n div_to_toggle.addClass('collapse');\\n design_inputs.append(div_to_toggle);\\n set_radio_collapse_toggle(factor_hide_radio, factor_show_radio, div_to_toggle);\\n\\n // Then, we must also set up listeners to show/hide appropriate factor 1\\n // and factor 2 information for each sample.\\n set_factor_to_sample_listeners(factor_hide_radio, factor_show_radio, design_inputs);\\n\\n proj_form.find('.save_btn').click(function () {\\n var btn = $(this);\\n\\n // Disable this button.\\n btn.prop('disabled', true);\\n\\n // Function to show next form.\\n function show_next_form() {\\n var header = $('#sample_meta_header');\\n header.show();\\n $('#sample_meta_common').show();\\n scroll_to_ele(header);\\n }\\n\\n save_proj(show_saved, btn, show_next_form);\\n });\\n\\n // Disable 2-factor design if there are less than 8 samples.\\n if (Object.keys(proj.samples).length < 8) {\\n factor_show_radio.prop('disabled', true);\\n }\\n\\n // Enable popovers and tooltips.\\n enable_popovers_tooltips(proj_form);\\n}\",\n \"function saveData(id)\\n\\t{\\n\\t\\tvar f = document.fuploadr;\\n\\t\\tvar data = ImageStore[id];\\n\\t\\t\\n\\t\\tdata.title\\t\\t = f.title.value;\\n\\t\\tdata.description = f.description.value;\\n\\t\\tdata.tags\\t\\t = f.tags.value;\\n\\t\\tdata.is_public\\t = getChecked(f.is_public, 0);\\n\\t\\tdata.is_friend\\t = getChecked(f.is_friend, 0);\\n\\t\\tdata.is_family\\t = getChecked(f.is_family, 0);\\n\\t\\tdata.safety_level = f.safety_level.value;\\n\\t\\tdata.hidden\\t\\t = getChecked(f.hidden, 1);\\n\\t\\t//data.content_type = f.content_type.value;\\n\\t}\",\n \"function set_samples_meta_input() {\\n var sample_form = $('.sample_collapse');\\n\\n // Set sorted names.\\n set_sorted_names();\\n\\n // Add samples in sorted order (by name).\\n for (var i = 0; i < sorted_names.length; i++) {\\n var name = sorted_names[i];\\n var id = names_to_ids[name];\\n var new_sample_form = sample_form.clone(true);\\n\\n // Replace all instances of SAMPLEID to the id.\\n var html = new_sample_form.html();\\n new_sample_form.html(html.replace(new RegExp('SAMPLEID', 'g'), id));\\n\\n sample_forms[id] = new_sample_form;\\n\\n // Set the sample name.\\n new_sample_form.find('.sample_name_group').find('input').val(name);\\n\\n // Set the reads table for this sample.\\n set_reads_table(id, new_sample_form);\\n\\n // Characteristics.\\n var char_group = new_sample_form.find('.sample_specific_'\\n + 'characteristics_group');\\n set_fluid_input_rows(char_group.find('.sample_characteristics_inputs'));\\n\\n // Save changes button.\\n var save_changes_btn = new_sample_form.find('.save_btn');\\n save_changes_btn.click(function () {\\n var btn = $(this);\\n btn.prop('disabled', true);\\n\\n save_proj(show_saved, btn);\\n });\\n\\n // Set up copy buttons.\\n var copy_btns = new_sample_form.find('.copy_btn');\\n copy_btns.each(function () {\\n set_copy_btn($(this), id);\\n })\\n\\n // Append new form.\\n $('#sample_card').append(new_sample_form);\\n }\\n\\n // Then, set the button handler.\\n var dropdown = $('#sample_choices');\\n set_choose_sample_button(dropdown, sample_forms);\\n\\n // Enable popovers and tooltips.\\n enable_popovers_tooltips(sample_form);\\n}\",\n \"function save() {\\r\\n this.textarea.value = this.content();\\r\\n }\",\n \"function load() {\\n let savedNotes = localStorage.getItem(\\\"dataNotes\\\");\\n let savedTitle = localStorage.getItem(\\\"dataTitle\\\");\\n if (savedNotes) {\\n notes.value = savedNotes;\\n }\\n if (savedTitle) {\\n notesTitle.value = savedTitle;\\n headerTitleChange()\\n }\\n}\",\n \"function processDataFromDocusky() {\\n\\tparseDocInfo();\\n\\ttoolSetting();\\n}\",\n \"function fillEditForm() {\\n let selectedBook = document.getElementById('selected-book')\\n let titleInput = document.getElementById('title-edit-in')\\n let authorInput = document.getElementById('author-edit-in')\\n let genreInput = document.getElementById('genre-edit-in')\\n let pagesInput = document.getElementById('pages-edit-in')\\n let i = selectedBook.dataset.index\\n\\n titleInput.value = library[i].title\\n authorInput.value = library[i].author\\n genreInput.value = library[i].genre\\n pagesInput.value = library[i].numPages \\n}\",\n \"function eventDSEditOnLoad() {\\n var form = EventEditForm.getForm();\\n form.setValues(eventDS.getAt(0).data);\\n}\",\n \"function save() {\\n this.textarea.value = this.content();\\n }\",\n \"saveData() {\\n if (this.s.unavailable()) {\\n return;\\n }\\n\\n for (const val of this.dispField.items) {\\n this.s.set(val, this.dispField.checked(val));\\n }\\n\\n this.s.set(\\\"unit\\\", this.unitField.get());\\n this.s.set(\\\"format\\\", this.formatField.get());\\n this.s.set(\\\"sort\\\", this.sortableField.toArray());\\n }\",\n \"save () {\\n\\n // Validate\\n if (this.checkValidity()) {\\n\\n // Collect input\\n this.info.item = this.collectInput();\\n\\n // Show modal\\n this.modal.show();\\n }\\n }\",\n \"function fill_with_test_metadata() {\\n set_proj_meta_inputs(proj_form, test_proj_inputs);\\n set_common_meta_inputs(common_form, test_common_inputs);\\n\\n for (var name in test_samples_inputs) {\\n var test_sample_inputs = test_samples_inputs[name];\\n var sample_form = sample_forms[names_to_ids[name]];\\n\\n set_sample_meta_inputs(sample_form, test_sample_inputs);\\n }\\n}\",\n \"function preformatRawData(metaData, parser) {\\n\\t\\t//fix title and journal, and make conference proceeding a journal (fix when proceedings are possible to cite)\\n\\t\\tmetaData[\\\"citation_download\\\"] = metaData[\\\"citation_download\\\"].replace(/JO[\\\\t\\\\ ]+[\\\\-]+[\\\\t\\\\ ]+/,\\\"JF - \\\").replace(/TI[\\\\t\\\\ ]+[\\\\-]+[\\\\t\\\\ ]+/,\\\"T1 - \\\").replace(/TY[\\\\t\\\\ ]+[\\\\-]+[\\\\t\\\\ ]+CONF/,\\\"TY - JOUR\\\").trim();\\n\\t}\",\n \"function toChangeMetaData(){\\n document.getElementById(\\\"input\\\").innerHTML = metaDataChangeForm();\\n}\",\n \"function updateOutput2() {\\n localStorage.setItem('info2', input_textarea2.value)\\n}\",\n \"function updateOutput4() {\\n localStorage.setItem('info4', input_textarea4.value)\\n}\",\n \"_save() {\\n\\t\\tconst version = this._editor.model.document.version;\\n\\n\\t\\t// Operation may not result in a model change, so the document's version can be the same.\\n\\t\\tif ( version === this._lastDocumentVersion ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\ttry {\\n\\t\\t\\tthis._data = this._getData();\\n\\t\\t\\tthis._lastDocumentVersion = version;\\n\\t\\t} catch ( err ) {\\n\\t\\t\\tconsole.error(\\n\\t\\t\\t\\terr,\\n\\t\\t\\t\\t'An error happened during restoring editor data. ' +\\n\\t\\t\\t\\t'Editor will be restored from the previously saved data.'\\n\\t\\t\\t);\\n\\t\\t}\\n\\t}\",\n \"function saveAnomalyForm() {\\n var anomalyType = anomalyForms[anomalyIndex][\\\"anomaly\\\"];\\n var formEntries = document.getElementById(\\\"custom-inputs\\\").getElementsByClassName(\\\"custom-input\\\");\\n for (var i = 0; i < formEntries.length; i++) {\\n var input = formEntries.item(i);\\n var fieldName = input.id;\\n anomalyForms[anomalyIndex][\\\"json\\\"][\\\"fields\\\"][fieldName][\\\"value\\\"] = input.value;\\n }\\n}\",\n \"inputData() {\\n return (e) => {\\n e.persist();\\n var reader = new FileReader();\\n const self = this;\\n reader.onload = function(e) {\\n self.parseInputData(reader.result);\\n }\\n reader.readAsText(e.target.files[0]);\\n e.target.value = \\\"\\\";\\n };\\n }\",\n \"function preformatRawData(metaData, parser) {\\n\\t\\t//fix title, year and journal abbreviation\\n\\t\\tmetaData[\\\"citation_download\\\"] = metaData[\\\"citation_download\\\"].replace(/TI[\\\\t\\\\ ]+[\\\\-]+[\\\\t\\\\ ]+/,\\\"T1 - \\\").replace(/JO[\\\\t\\\\ ]+[\\\\-]+[\\\\t\\\\ ]+/,\\\"JF - \\\").replace(/PY[\\\\t\\\\ ]+[\\\\-]+[\\\\t\\\\ ]+/,\\\"Y1 - \\\").trim();\\n\\t}\",\n \"function storeData(key){\\n\\t\\t//If there is no key, this means this is a brand new item and we need a new key.\\n\\t\\tif(!key) {\\n\\t\\t\\tvar dataId = Math.floor(Math.random()*100000001)\\n\\t\\t} else {\\n\\t\\t\\t//Set the id to the existing key we're editing so that it will save over the data.\\n\\t\\t\\t//The key is the same key that's been passed along from the editSubmit event handler\\n\\t\\t\\t//to the validate function, and then passed here, into th storeData function.\\n\\t\\t\\tdataId = key;\\n\\t\\t}\\n\\n\\t\\t//Gather up all our form field values and store in an object\\n\\t\\t//Object properties contain array with the form label and the input values\\n\\t\\tvar item = {};\\n\\t\\t\\titem.platforms = [\\\"Game Platform:\\\", $('platforms').value ];\\n\\t\\t\\titem.game = [\\\"Game Title:\\\", $(\\\"game\\\").value];\\n\\t\\t\\titem.date = [\\\"Date Purchased:\\\", $(\\\"date\\\").value];\\n\\t\\t\\titem.fav = [\\\"Favorite:\\\", getFavValue()];\\n\\t\\t\\titem.score = [\\\"Score:\\\", $(\\\"score\\\").value];\\n\\t\\t\\titem.comments = [\\\"Comments:\\\", $(\\\"comments\\\").value];\\n\\t\\t//Save data to local storage: Use stringify to convert our object to a string\\n\\t\\tlocalStorage.setItem(dataId, JSON.stringify(item));\\n\\t\\talert(\\\"Game Saved!\\\");\\n\\t}\",\n \"function updateOutput7() {\\n localStorage.setItem('info7', input_textarea7.value)\\n}\",\n \"function updateOutput3() {\\n localStorage.setItem('info3', input_textarea3.value)\\n}\",\n \"function getAndProcessData() { \\n\\t\\tchooseFileSource();\\n\\t}\",\n \"function preformatRawData(metaData, parser) {\\n\\t\\t//fix title, year and journal abbreviation\\n\\t\\tmetaData[\\\"citation_download\\\"] = metaData[\\\"citation_download\\\"].replace(/(?:JA|JO|PY)[\\\\t\\\\ ]+[\\\\-]+[\\\\t\\\\ ]+/g,\\\"BIT - \\\").trim();\\n\\t}\",\n \"function load_data() {\\n var input = document.getElementById(\\\"commentName\\\");\\n var comm = document.getElementById(\\\"commentText\\\");\\n\\n input.value = localStorage.getItem('Name');\\n comm.value = localStorage.getItem('Comment');\\n}\",\n \"async fetchAndSetMetaData() {\\n const response = await this.apiCall(this.metaUrl);\\n this.metaData = await this.readValue(response, this.fieldPath);\\n this.isLoading = false;\\n\\n // if(this.validate && this.metaData.regex) {\\n if(this.validate) {\\n this.regex = new RegExp('^[a-z]*$');\\n this.shadowRoot.querySelector('slot').addEventListener('keyup', e => this._handleValueChange(e))\\n }\\n }\",\n \"function updateOutput9() {\\n localStorage.setItem('info9', input_textarea9.value)\\n}\",\n \"function editStudyInfoSave(e) {\\r\\n\\r\\n\\t// console.log($('#editStudyInfoModal .form-control').serializeObject());\\r\\n\\r\\n\\tvar newInfo = $('#editStudyInfoModal .form-control').serializeObject();\\r\\n\\t// console.log(newInfo)\\r\\n\\tvar study = $('#edit-study-page').data('editing');\\r\\n\\r\\n\\t_.forEach(newInfo, function(item, key) {\\r\\n\\t\\tstudy[key] = item;\\r\\n\\t});\\r\\n\\r\\n\\t$('#edit-study-page').data('editing', study);\\r\\n\\r\\n\\t$('#editStudyInfoModal').modal('hide');\\r\\n\\r\\n}\",\n \"function saveTerrainModificationForm() {\\n var terrainModificationType = terrainModificationForms[terrainModificationIndex][\\\"terrain-modification\\\"];\\n var formEntries = document.getElementById(\\\"custom-inputs\\\").getElementsByClassName(\\\"custom-input\\\");\\n for (var i = 0; i < formEntries.length; i++) {\\n var input = formEntries.item(i);\\n var fieldName = input.id;\\n terrainModificationForms[terrainModificationIndex][\\\"json\\\"][\\\"fields\\\"][fieldName][\\\"value\\\"] = input.value;\\n }\\n}\",\n \"function postToSource() {\\n // clear unnecessary tags when editor view empty\\n var sourceStrings = editor.text() == \\\"\\\" && editor.html().length < 12 ? \\\"\\\" : editor.html();\\n var value = extractToText(sourceStrings);\\n thisElement.val(value);\\n }\",\n \"fillForm(data) {\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"function load() {\\r\\n this.setContent(this.textarea.value);\\r\\n }\",\n \"loadMeta(meta) {\\n if (!this.metaElement) {\\n this.metaElement = {};\\n }\\n for (const key of MetaCopyableProperty) {\\n const value = meta[key];\\n if (typeof value !== \\\"undefined\\\") {\\n setMetaProperty(this.metaElement, key, value);\\n }\\n else {\\n delete this.metaElement[key];\\n }\\n }\\n }\",\n \"fillForm() {\\n\\n if (localStorage.getItem(\\\"lastname\\\") !== undefined)\\n $(\\\"form\\\")[0].lastname.value = localStorage.getItem(\\\"lastname\\\");\\n\\n if (localStorage.getItem(\\\"firstname\\\") !== undefined)\\n $(\\\"form\\\")[0].firstname.value = localStorage.getItem(\\\"firstname\\\");\\n\\n }\",\n \"function load() {\\n this.setContent(this.textarea.value);\\n }\",\n \"function applyMetadata()\\n {\\n\\n\\n // get metadata values\\n var metadata = groovebox[\\\"metadata\\\"];\\n\\n\\n // get the current audio file name\\n var currentAudioFile = $(\\\".track-info\\\").attr(\\\"file\\\");\\n\\n\\n // check if the (new) metadata is different than the currently playing song\\n if (groovebox[\\\"stream\\\"][\\\"track\\\"] !== currentAudioFile)\\n {\\n\\n\\n // update the metadata\\n\\n\\n // update the track name\\n $(\\\".track-info .track-name\\\").html(metadata[\\\"title\\\"]).attr(\\\"title\\\", metadata[\\\"title\\\"]);\\n\\n\\n // update the track artist\\n $(\\\".track-info .track-artist\\\").html(metadata[\\\"artist\\\"]).attr(\\\"title\\\", metadata[\\\"artist\\\"]);\\n\\n\\n // update the cover-art\\n $(\\\".album-art img\\\").attr(\\\"src\\\", metadata[\\\"coverArt\\\"] +\\\"&\\\"+ new Date().getTime());\\n\\n\\n // update the current audio file\\n $(\\\".track-info\\\").attr(\\\"file\\\", groovebox[\\\"stream\\\"][\\\"track\\\"]);\\n\\n\\n }\\n\\n\\n }\",\n \"function saveData(ranKey) {\\n //random key number\\n //console.log(\\\"save it enter\\\");\\n if(!ranKey){\\n var id = Math.floor(Math.random()*120211);\\n }else{\\n id = ranKey;\\n }\\n getCheckbox();\\n getRadio();\\n var field={};\\n\\n field.title=[\\\"Book Title\\\", $(\\\"Title\\\").value];\\n field.date=[\\\"Date Added:\\\", $(\\\"date\\\").value];\\n field.booknumber=[\\\"Issue Number\\\", $(\\\"booknumber\\\").value];\\n field.coverstyle=[\\\"Cover Style\\\", styleValue];\\n field.read=[\\\"Read\\\", readValue];\\n field.notes=[\\\"Notes\\\", $(\\\"Notes\\\").value];\\n field.grade=[\\\"CCG Grading\\\", $(\\\"slider\\\").value];\\n\\n //Function to convert data into strings (stringify)\\n\\n localStorage.setItem(id, JSON.stringify(field));\\n alert(\\\"Book Saved\\\");\\n }\",\n \"function saveData()\\n{\\n var myid = getBlogId();\\n if( !GM_getValue( 'extra-'+myid, '' ) ) configure();\\n storePostData();\\n var text = $( 'textarea' ), sites=window.sites, html='';\\n var tags = $( 'tags' ).value.split( /\\\\s*[, ]\\\\s*/ ), tag;\\n if( tags[0] != '' )\\n {\\n html = '';\\n for( var i=0; i 1 ) html += sites[i].name +' ';\\n html += GM_getValue( 'title-'+myid, 'Tags:' ) + '

    ';\\n for( var j=0; j ';\\n html += '
';\\n }\\n text.value += html;\\n }\\n}\",\n \"function updateOutput8() {\\n localStorage.setItem('info8', input_textarea8.value)\\n}\",\n \"function get_save_data()\\n {\\n var listselect = $('option:selected', rcmail.gui_objects.notebooks),\\n savedata = {\\n title: $.trim($('.notetitle', rcmail.gui_objects.noteviewtitle).val()),\\n description: rcmail.editor.get_content().replace(/^\\\\s*(

<\\\\/p>\\\\n*)?/, ''),\\n list: listselect.length ? listselect.val() : me.selected_note.list || me.selected_list,\\n uid: me.selected_note.uid,\\n tags: taglist ? kolab_tags_input_value(taglist) : []\\n };\\n\\n // copy links\\n if ($.isArray(me.selected_note.links)) {\\n savedata.links = me.selected_note.links;\\n }\\n\\n return savedata;\\n }\",\n \"function save() {\\n const newcontent = textarea.val().trim()\\n if (has_pretty_content_holder)\\n content_holder.hide()\\n\\n $.post(endpoint, {content: newcontent})\\n .fail(_ => {\\n\\t controls.html(new_controls)\\n\\t content_holder.html(textarea)\\n textarea.addClass('invalid')\\n // TODO: on error, include error message\\n })\\n .done(answer => {\\n\\tif (has_pretty_content_holder)\\n\\t pretty_content_holder.html(answer)\\n\\trestore(newcontent)\\n })\\n }\",\n \"function storeCurrent() {\\r\\n let currentData = {\\r\\n regexInput: regexInput.value,\\r\\n templateInput: templateInput.value,\\r\\n globalCheckbox: globalCheckbox.checked,\\r\\n caseInsensitiveCheckbox: caseInsensitiveCheckbox.checked,\\r\\n multilineCheckbox: multilineCheckbox.checked,\\r\\n IgnoreHTMLCheckbox: IgnoreHTMLCheckbox.checked,\\r\\n resultTextarea: resultTextarea.value,\\r\\n selectedItemIndex:selectedItemIndex,\\r\\n smallForm: smallFormCheckbox.checked\\r\\n };\\r\\n let store = browser.storage.local.set({\\r\\n currentData\\r\\n });\\r\\n store.then(onError, onError);\\r\\n}\",\n \"fillForm ( data ) {\\n this.title.value = data.title;\\n this.body.value = data.body;\\n this.id.value = data.id;\\n\\n // change form state\\n this.changeFormState( \\\"edit\\\" )\\n\\n }\",\n \"function storeData() {\\n\\t// This is a little bit of future proofing \\n\\tif (!submit.key) {\\n\\t\\t// if there is no key, this is a new item and needs a new key\\n\\t\\tvar id = \\\"ubuVers\\\" + Math.floor(Math.random()*10000001);\\n\\t} else {\\n\\t\\t// set the id to the existing key we are editing\\n\\t\\tid = submit.key;\\n\\t};\\n\\t\\n // I like to give all my form elements their own id's to give myself access\\n\\t// outside of the form as well as simple access inside of it\\n var ubuVersNumValue = ge('ubuVersNum').value,\\n ubuVersNameValue = ge('ubuVersName').value,\\n\\t\\tubuVersDict = {version: ubuVersNumValue, release: ubuVersNameValue};\\n\\t// log out those values as a double check\\n console.log(ubuVersNumValue);\\n console.log(ubuVersNameValue);\\t\\n\\t\\n\\t// set the item in localstorage\\n\\t// note the stringify function\\n\\tlocalStorage.setItem(id, JSON.stringify(ubuVersDict));\\n\\t\\n\\t// log out the whole local storage\\n\\tconsole.log(localStorage);\\n\\tge('submit').value = 'Add';\\n\\n\\n}\",\n \"function updateOutput1() {\\n localStorage.setItem('info1', input_textarea1.value)\\n}\",\n \"livelyPrepareSave() {\\n // this.setAttribute(\\\"data-mydata\\\", this.get(\\\"#textField\\\").value);\\n }\",\n \"function preformatRawData(metaData, parser) {\\n\\t\\t//do nothing, as there is no dynamic citation export being requested\\n\\t}\",\n \"function loadData(data)\\n\\t{\\n\\t\\tvar f = document.fuploadr;\\n\\n\\t\\tf.title.value\\t\\t= data.title;\\n\\t\\tf.description.value = data.description;\\n\\t\\tf.tags.value\\t\\t= data.tags;\\n\\t\\tsetChecked(f.is_public, data.is_public);\\n\\t\\tsetChecked(f.is_friend, data.is_friend);\\n\\t\\tsetChecked(f.is_family, data.is_family);\\n\\t\\tsetChecked(f.hidden, data.hidden);\\n\\t\\tsetOption(f.safety_level, data.safety_level);\\n\\t}\",\n \"handleSourceData(){\\n let self = this;\\n $(this.fromInput).on('change keyup', function(e) {\\n e.preventDefault();\\n let slugData = self.generateSlug($(this).val());\\n // Replace new to slug:\\n $(self.wrapper).val(slugData)\\n });\\n }\",\n \"function storePostData()\\n{\\n var blog = GM_getValue( 'extra-'+myid, name );\\n var myid = getBlogId();\\n var tags = $( 'tags' ).value.replace( /\\\\s*,\\\\s*/g, ' ' );\\n if( blog ) tags = blog +' '+ tags;\\n var head = $( 'f-title' ).value;\\n var form = document.forms.namedItem( 'stuffform' ).elements;\\n var date = form.namedItem( 'postYear' ).value +'-'+\\n\\t pad( parseInt(form.namedItem( 'postMonth' ).value, 10)+1 ) +'-'+\\n\\t pad( form.namedItem( 'postDay' ).value ) + ' ';\\n var hour = form.namedItem( 'postHour' ).value % 12;\\n var ampm = form.namedItem( 'postAMPM' ).value;\\n if( ampm ) hour += 12;\\n var time = pad( hour ) +':'+ pad( form.namedItem( 'postMinute' ).value );\\n var data = { title:head, extended:date+time, tags:tags };\\n var save = '';\\n for( var i in data )\\n save += '&'+ i +'='+ encodeURIComponent( data[i] );\\n GM_setValue( 'postdata-'+myid, save );\\n}\",\n \"function updateOutput5() {\\n localStorage.setItem('info5', input_textarea5.value)\\n}\",\n \"function applySourceDataChanges(){\\n var composer = document.getElementById(\\\"composer\\\").value;\\n var title = document.getElementById(\\\"title\\\").value;\\n var location = document.getElementById(\\\"location\\\").value;\\n var ownership = document.getElementById(\\\"ownership\\\").value;\\n var date = document.getElementById(\\\"date\\\").value;\\n var publicationstatus = document.getElementById(\\\"publicationstatus\\\").value;\\n var medium = document.getElementById(\\\"medium\\\").value;\\n var x = document.getElementById(\\\"x\\\").value;\\n var y = document.getElementById(\\\"y\\\").value;\\n var unit = document.getElementById(\\\"unit\\\").value;\\n var condition = document.getElementById(\\\"condition\\\").value;\\n var extent = document.getElementById(\\\"extent\\\").value;\\n var language = document.getElementById(\\\"language\\\").value;\\n var handwriting = document.getElementById(\\\"handwriting\\\").value;\\n \\n if(composer){\\n currentSource.composer = composer;\\n }\\n if(title){\\n currentSource.title = title;\\n }\\n if(location){\\n currentSource.location = location;\\n }\\n if(ownership){\\n currentSource.ownership = ownership;\\n }\\n if(date){\\n currentSource.date = date;\\n }\\n if(publicationstatus){\\n currentSource.publicationstatus = publicationstatus;\\n }\\n if(medium){\\n currentSource.medium = medium;\\n }\\n if(x){\\n currentSource.x = x;\\n }\\n if(y){\\n currentSource.y = y;\\n }\\n if(unit){\\n currentSource.unit = unit;\\n }\\n if(condition){\\n currentSource.condition = condition;\\n }\\n if(extent){\\n currentSource.extent = extent;\\n }\\n if(language){\\n currentSource.language = language;\\n }\\n if(handwriting){\\n currentSource.handwriting = handwriting;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = sourceDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function storeLocally(){\\n var formName = document.getElementById('txtName').value;\\n var formAge = document.getElementById('txtAge').value;\\n sessionStorage.setItem(formName, formAge);\\n\\n var formOutput = formName + \\\": \\\" + formAge + \\\" y.o.\\\";\\n\\n appendObject (formOutput, \\\"P\\\", \\\"output\\\");\\n}\",\n \"function fillForm (data) {\\n\\t\\n edit_record = data.records[0];\\n\\t\\n\\tarchive_id = edit_record['oid'];\\n\\tif ( /^\\\\d/.test(archive_id) ) archive_id = 'dar:' + archive_id;\\n\\t\\n\\tnumeric_id = archive_id;\\n\\tif ( /^dar:/.test(numeric_id) ) numeric_id = numeric_id.substr(4);\\n\\t\\n\\tsetInnerHTML('dar_header', \\\"Data Archive \\\" + numeric_id);\\n\\tsetElementValue('dar_id', archive_id);\\n\\tsetElementValue('dar_title', edit_record['title']);\\n\\tsetElementValue('dar_description', edit_record['description']);\\n\\tsetElementValue('dar_authors', edit_record['authors']);\\n\\tsetElementValue('dar_public', edit_record['is_public']);\\n\\t\\n\\tvar archive_uri = edit_record['uri_path'] + \\\"?\\\" + edit_record['uri_args'];\\n\\t\\n\\tsetElementValue('dar_uri', archive_uri);\\n\\t\\n\\tvar doi_content = '';\\n\\t\\n\\tif ( edit_record['doi'] )\\n\\t{\\n\\t doi_content = '';\\n\\t if ( edit_record.prm == 'admin' )\\n\\t\\tdoi_content = doi_content + '&nbsp;';\\n\\t disableElement('dar_title', true);\\n\\t disableElement('dar_authors', true);\\n\\t disableElement('dar_public', true);\\n\\t}\\n\\t\\n\\telse\\n\\t{\\n\\t if ( edit_record.sta == 'pending' || edit_record.status == 'pending' )\\n\\t {\\n\\t\\tdoi_content = 'DOI has been requested&nbsp;&nbsp;' +\\n\\t\\t \\\"\\\";\\n\\t\\tif ( edit_record.prm == 'admin' )\\n\\t\\t doi_content = doi_content + \\\"&nbsp;\\\";\\n\\t }\\n\\t \\n else\\n\\t {\\n\\t\\tdoi_content = \\\"\\\";\\n }\\n\\t \\n\\t disableElement('dar_title', false);\\n\\t disableElement('dar_authors', false);\\n\\t disableElement('dar_public', false);\\n\\t}\\n\\t\\n\\tsetInnerHTML('dar_doi', doi_content);\\n\\t\\n\\tsetInnerHTML('dar_fetched', edit_record['fetched']);\\n\\tsetInnerHTML('dar_created', edit_record['dcr']);\\n\\tsetInnerHTML('dar_modified', edit_record['dmd']);\\n\\t\\n\\tif ( edit_record['ent'] )\\n\\t{\\n\\t var authent = edit_record['ent'];\\n\\n\\t if ( edit_record['ath'] && edit_record['ath'] != edit_record['ent'] )\\n\\t\\tauthent = authent + ' (' + edit_record['ath'] + ')';\\n\\t \\n\\t setInnerHTML('dar_authent', authent);\\n\\t}\\n }\",\n \"function storeForm() {\\n /*jshint validthis:true */\\n var form = $(this);\\n var formId = form[0].id;\\n if (!formId) return;\\n var formJSON = app.formToData(form);\\n if (!formJSON) return;\\n app.formStoreData(formId, formJSON);\\n form.trigger('store form:storedata', {data: formJSON});\\n }\",\n \"function loaddata(){\\n\\t\\tvar data1 = localStorage.getItem(\\\"infor_sku\\\") || \\\"\\\";\\n\\t\\tvar data2 = localStorage.getItem(\\\"pd\\\") || \\\"\\\";\\n\\t\\tvar data3 = localStorage.getItem(\\\"sh\\\") || \\\"\\\";\\n\\t\\tif (!!data1) { sku_items = JSON.parse(data1); }\\n\\t\\tif (!!data2) { pd_items = JSON.parse(data2); }\\n\\t\\tif (!!data3) { sh_items = JSON.parse(data3); }\\n\\t\\t$(\\\"#datafile\\\").val( localStorage.getItem(\\\"datafile\\\") ||\\\"http://123.123.123.250:5000/\\\");\\n\\t\\t$(\\\"#myfile\\\").val( localStorage.getItem(\\\"myfile\\\") ||\\\"spchkm/\\\");\\n\\t\\t\\n\\t}\",\n \"function storeData (key) {\\n\\t\\tif (!key) {\\n\\t\\t\\tvar id = Math.floor(Math.random()*1000000);\\n\\t\\t} else {\\n\\t\\t\\tvar id = key;\\n\\t\\t}\\t\\t\\n\\t\\tgetSelectedRadio();\\n\\t\\t\\n\\t\\t//Form data into an object..\\n\\t\\t//Object properties has array with label and value.\\n\\t\\t\\n\\t\\tvar item \\t\\t\\t\\t= {};\\n\\t\\titem.group \\t\\t\\t\\t= [\\\"Group:\\\", $('groups').value];\\n\\t\\titem.remindTitle \\t\\t= [\\\"Reminder Title:\\\", $('remindTitle').value];\\n\\t\\titem.dueDate\\t\\t\\t= [\\\"Due Date:\\\", $('due').value];\\n\\t\\titem.priority\\t\\t\\t= [\\\"Priority:\\\", priorityValue];\\n\\t\\titem.recurrence\\t\\t\\t= [\\\"Recurrence:\\\",$('recurrence').value];\\n\\t\\titem.description\\t\\t= [\\\"Description:\\\", $('description').value];\\n\\t\\t\\n\\t\\t\\n\\t\\t//Save to Local Storage\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\n\\t\\talert(\\\"Reminder is set!\\\");\\n\\t\\t\\n\\t\\twindow.location = 'index.html';\\n\\t\\twindow.reload();\\n\\t}\",\n \"function restore_inputs () {\\n\\n\\t\\t\\t\\tparse_variables();\\n\\n\\t\\t\\t\\t$('.form-w').val(W);\\n\\t\\t\\t\\t$('.form-b').val(B);\\n\\t\\t\\t\\t$('.form-mf').val(Mf);\\n\\t\\t\\t\\t$('.form-mt').val(Mt);\\n\\n\\t\\t\\t}\",\n \"function setDataFromLocalStorage() { \\t\\n \\tCORE.LOG.addInfo(\\\"PROFILE_PAGE:setDataFromLocalStorage\\\");\\n \\t$(\\\"#name\\\").val(gameData.data.player.profile.name);\\n \\t$(\\\"#surname\\\").val(gameData.data.player.profile.surname);\\n \\t$(\\\"#age\\\").val(gameData.data.player.profile.age);\\n \\t$(\\\"#sex\\\").val(gameData.data.player.profile.sex);\\n \\t$(\\\"#mobile\\\").val(gameData.data.player.profile.mobile); \\n \\t \\t \\t\\n }\",\n \"fillForm(data){\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"function prefill_form(){\\ndocument.getElementById(\\\"ref\\\").value = localStorage.job1Ref;\\ndocument.getElementById(\\\"jobtitle\\\").value = localStorage.joblTitles;\\n//alert(localStorage.job1Ref);\\n}\",\n \"function inputStoreData() {\\n console.log(\\\"inside original input storage\\\");\\n inputs = $('input[type=\\\"text\\\"],input[type=\\\"password\\\"]').each(function() {\\n $(this).data('original', this.value);\\n });\\n console.log(\\\"Inputs inside store function:\\\" + inputs);\\n}\",\n \"function displayNotes (){\\n if (localStorage.getItem(\\\"generalInfo\\\")){\\n generalInfo = JSON.parse(localStorage.getItem(\\\"generalInfo\\\"));\\n for(i = 0; i < generalInfo.length; i++){\\n $(\\\"#inputEvent\\\"+generalInfo[i].display).attr(\\\"value\\\", generalInfo[i].notes);\\n console.log($(\\\"#inputEvent\\\"+generalInfo[i].display));\\n }\\n }\\n }\",\n \"function storeSettings() {\\n check();\\n browser.storage.local.set(f2j(form));\\n}\",\n \"function displayMemo() {\\n document.getElementById(\\\"memo-title\\\").value = currentMemo.title;\\n document.getElementById(\\\"memo-content\\\").value = currentMemo.content;\\n}\",\n \"function save(){\\n if (!isSaveAllowed) {\\n log('Save was temporarily disabled until you decide what to do with previously saved content.');\\n return;\\n }\\n\\n var data = getFormData();\\n data['_autosaveTime'] = now();\\n var key = getKey();\\n\\n if(typeof key === 'string' && key.length > keyPrefix.length && typeof data === 'object'){\\n localStorage.setItem(key.trim(), JSON.stringify(data));\\n\\n log('Content saved.');\\n }\\n\\n removeOldEntries();\\n}\",\n \"function storeForm() {\\n\\t /*jshint validthis:true */\\n\\t var form = $(this);\\n\\t var formId = form[0].id;\\n\\t if (!formId) return;\\n\\t var formJSON = app.formToData(form);\\n\\t if (!formJSON) return;\\n\\t app.formStoreData(formId, formJSON);\\n\\t form.trigger('store form:storedata', {data: formJSON});\\n\\t }\",\n \"function save(e) {\\n var node = e.target;\\n if (node.nodeName === 'INPUT' && node.checked) {\\n localStorage[node.name] = node.value;\\n }\\n else if (node.nodeName === 'SELECT') {\\n localStorage[node.name] = node.value;\\n }\\n }\",\n \"function updateStore() {\\n //type\\n let type_init = document.getElementById(\\\"type_select\\\");\\n store.set(\\\"type\\\", type_init.options[type_init.selectedIndex].value);\\n\\n //color\\n let color_init = document.getElementById(\\\"color_select\\\");\\n store.set(\\\"color\\\", color_init.options[color_init.selectedIndex].value);\\n\\n //welcome inputs\\n for (let i = 0; i < welcomeInputs.length; i++) {\\n updateStoreFromTextArea(welcomeInputs[i]);\\n }\\n\\n //customization section inputs\\n for (let i = 1; i < customizationSections.length; i++) {\\n updateStoreFromTextArea(customizationSections[i]);\\n }\\n}\",\n \"function updateMeta() {\\r\\n // Eyes wide open for this giant hack. I'm reading the metric HTML (converted from\\r\\n // markdown in build process) and pulling substrings out to place on the page via\\r\\n // ill-advised lefty-righty kind of crap. I should probably be beaten for this.\\r\\n // Given the proclivity of the project partners to edit the metadata nearly\\r\\n // continuously for years, markdown made the most sense, and to process the result\\r\\n // into my various buckets requires this kind of hacky stuff. Needless to say you'll\\r\\n // need to update this if you screw with the metadata markdown layout at all.\\r\\n $.ajax({\\r\\n url: 'data/meta/' + $(\\\"#metric\\\").val() + '.html',\\r\\n type: 'GET',\\r\\n dataType: 'text',\\r\\n success: function (data) {\\r\\n $('.meta-subtitle').html(\\r\\n data.substring(GetSubstringIndex(data, '', 1) + 5, GetSubstringIndex(data, '', 1) + 5, GetSubstringIndex(data, '', 2) + 5, GetSubstringIndex(data, '', 3) + 5, data.length)\\r\\n );\\r\\n\\r\\n // make meta tables (jesus tables really?) from markdown get the bootstrap table class\\r\\n $('.meta-container table').addClass('table table-condensed');\\r\\n },\\r\\n error: function (error, status, desc) {\\r\\n //console.log(status, desc);\\r\\n }\\r\\n });\\r\\n\\r\\n}\",\n \"function storedData() {\\n localStorage.setItem(\\\"journalEntry\\\", newEvent);\\n const storedInput = localStorage.getItem(\\\"journalEntry\\\");\\n\\n // if(storageInput) {\\n\\n // }\\n}\",\n \"function updateOutput6() {\\n localStorage.setItem('info6', input_textarea6.value)\\n}\",\n \"function writeMeta(syntaxObject) {\\n\\t\\tif ($.isEmptyObject(syntaxObject)) {\\n\\t\\t\\tsyntaxString = '';\\n\\t\\t} else {\\n\\t\\t\\tsyntaxString = JSON.stringify(syntaxObject);\\n\\t\\t}\\n\\n\\t\\t$('#syntax-storage').val(syntaxString);\\n\\t}\",\n \"function saveInventory() {\\n Settings.setValue(inventoryDataSettingString, inventoryData);\\n }\",\n \"function onPageDetailsReceived(pageDetails) { \\n document.getElementById('title').value = pageDetails.title; \\n document.getElementById('url').value = pageDetails.url; \\n document.getElementById('abstract').innerText = pageDetails.abstract; \\n}\",\n \"function storeData(key){\\n\\t\\t//if there is no key, this is a brand new item & we need a new key\\n\\t\\tif(!(key)){\\n\\t\\t\\tvar id\\t\\t\\t\\t= Math.floor(Math.random()*1000000001);\\n\\t\\t}else{\\n\\t\\t\\t//set the id to the existing key that we're editing in order to rewrite local storage\\n\\t\\t\\tid = key;\\n\\t\\t}\\n\\t\\t\\n\\t\\t//Gather up all our form field values and store them in an object\\n\\t\\t//Object properties contain array with form label and input values\\n\\n\\t\\tgetSelectedRadio();\\n\\t\\tvar item\\t\\t\\t= {};\\n\\t\\t\\titem.date\\t\\t= [\\\"Date: \\\", $('date').value];\\n\\t\\t\\titem.type\\t\\t= [\\\"Meal Type: \\\", $('type').value];\\n\\t\\t\\titem.group\\t\\t= [\\\"Food Group: \\\", groupValue];\\n\\t\\t\\titem.name\\t\\t= [\\\"Food Name: \\\", $('name').value];\\n\\t\\t\\titem.calories\\t= [\\\"Calories: \\\", $('calories').value];\\n\\t\\t\\titem.notes\\t\\t= [\\\"Additional Notes: \\\", $('notes').value];\\n\\t\\t//Save data to local storage\\n\\t\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\n\\t\\t\\talert(\\\"Meal Saved!\\\");\\n\\t\\t\\t\\n\\t}\",\n \"function saveElementSeedForm() {\\n var elementType = elementSeedForms[elementSeedIndex][\\\"element\\\"];\\n var formEntries = document.getElementById(\\\"custom-inputs\\\").getElementsByClassName(\\\"custom-input\\\");\\n for (var i = 0; i < formEntries.length; i++) {\\n var input = formEntries.item(i);\\n var fieldName = input.id;\\n elementSeedForms[elementSeedIndex][\\\"json\\\"][\\\"fields\\\"][fieldName][\\\"value\\\"] = input.value;\\n }\\n}\",\n \"function setData() {\\n localStorage.setItem('name', username.value);\\n localStorage.setItem('email', email.value);\\n localStorage.setItem('city', city.value);\\n localStorage.setItem('organisation', organisation.value);\\n localStorage.setItem('contact', contact.value);\\n localStorage.setItem('message', message.value);\\n // Reset all the fields.\\n username.value = '';\\n email.value = '';\\n city.value = 'city';\\n organisation.value = '';\\n contact.value = '';\\n message.value = '';\\n\\n}\",\n \"function applyCurrentSource(){\\n currentSID = document.getElementById(\\\"source\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = sourceDataChangeForm();\\n}\",\n \"function handleForm(event) {\\n const { name, value } = event.target;\\n\\n if (name === \\\"name\\\") setName(value);\\n else if (name === \\\"headline\\\") setHeadline(value);\\n else if (name === \\\"highlights\\\") setHighlights(value);\\n else if (name === \\\"tagline\\\") setTagline(value);\\n }\",\n \"function loadExistingData() {\\n existingData = lbs.limeDataConnection.ActiveInspector.Controls.GetValue('creditinfo')\\n if (existingData) {\\n existingData = lbs.loader.xmlToJSON(existingData, 'creditdata');\\n if (moment().diff(existingData.creditdata.ratingData.ratingDate, 'days') < self.config.maxAge) {\\n viewModel.ratingValue(existingData.creditdata.ratingData.ratingValue);\\n viewModel.ratingText(existingData.creditdata.ratingData.ratingText);\\n viewModel.ratingDate(existingData.creditdata.ratingData.ratingDate);\\n }\\n }else if(viewModel.inline){\\n existingData = viewModel.inline;\\n viewModel.ratingValue('?');\\n viewModel.ratingText('Ingen kreditrating tagen');\\n viewModel.loadText('Ta kreditkontroll');\\n }\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.59718615","0.591337","0.57427394","0.5741593","0.5740494","0.5718736","0.5649828","0.56201446","0.54978794","0.54947","0.54677665","0.53675306","0.5363405","0.53455406","0.53410196","0.53374064","0.5306338","0.5278786","0.5275786","0.5230865","0.5230068","0.5221691","0.5213467","0.5201967","0.51999027","0.5192922","0.51913244","0.51764727","0.51665884","0.514595","0.5136657","0.5136427","0.5128325","0.5115726","0.51094836","0.5107303","0.5103985","0.5096581","0.509483","0.5092514","0.509084","0.5081607","0.5079723","0.50711185","0.5070493","0.50552434","0.50546026","0.50543576","0.5041958","0.50328106","0.5025328","0.5024487","0.50238276","0.50069404","0.50067234","0.50054824","0.4998002","0.49932367","0.49930945","0.49922726","0.49913803","0.4988685","0.498121","0.4975858","0.49755824","0.49711704","0.4968705","0.49675807","0.49615765","0.49565664","0.4940181","0.4932478","0.49266663","0.49232566","0.49188942","0.49145204","0.49092695","0.4899692","0.48989606","0.48941183","0.4891323","0.48892257","0.48797324","0.48770395","0.48731086","0.4868711","0.48679906","0.4859507","0.48548478","0.48536927","0.48522344","0.4842455","0.48422128","0.48358628","0.4833187","0.4832859","0.4832475","0.48246136","0.481583","0.48096877"],"string":"[\n \"0.59718615\",\n \"0.591337\",\n \"0.57427394\",\n \"0.5741593\",\n \"0.5740494\",\n \"0.5718736\",\n \"0.5649828\",\n \"0.56201446\",\n \"0.54978794\",\n \"0.54947\",\n \"0.54677665\",\n \"0.53675306\",\n \"0.5363405\",\n \"0.53455406\",\n \"0.53410196\",\n \"0.53374064\",\n \"0.5306338\",\n \"0.5278786\",\n \"0.5275786\",\n \"0.5230865\",\n \"0.5230068\",\n \"0.5221691\",\n \"0.5213467\",\n \"0.5201967\",\n \"0.51999027\",\n \"0.5192922\",\n \"0.51913244\",\n \"0.51764727\",\n \"0.51665884\",\n \"0.514595\",\n \"0.5136657\",\n \"0.5136427\",\n \"0.5128325\",\n \"0.5115726\",\n \"0.51094836\",\n \"0.5107303\",\n \"0.5103985\",\n \"0.5096581\",\n \"0.509483\",\n \"0.5092514\",\n \"0.509084\",\n \"0.5081607\",\n \"0.5079723\",\n \"0.50711185\",\n \"0.5070493\",\n \"0.50552434\",\n \"0.50546026\",\n \"0.50543576\",\n \"0.5041958\",\n \"0.50328106\",\n \"0.5025328\",\n \"0.5024487\",\n \"0.50238276\",\n \"0.50069404\",\n \"0.50067234\",\n \"0.50054824\",\n \"0.4998002\",\n \"0.49932367\",\n \"0.49930945\",\n \"0.49922726\",\n \"0.49913803\",\n \"0.4988685\",\n \"0.498121\",\n \"0.4975858\",\n \"0.49755824\",\n \"0.49711704\",\n \"0.4968705\",\n \"0.49675807\",\n \"0.49615765\",\n \"0.49565664\",\n \"0.4940181\",\n \"0.4932478\",\n \"0.49266663\",\n \"0.49232566\",\n \"0.49188942\",\n \"0.49145204\",\n \"0.49092695\",\n \"0.4899692\",\n \"0.48989606\",\n \"0.48941183\",\n \"0.4891323\",\n \"0.48892257\",\n \"0.48797324\",\n \"0.48770395\",\n \"0.48731086\",\n \"0.4868711\",\n \"0.48679906\",\n \"0.4859507\",\n \"0.48548478\",\n \"0.48536927\",\n \"0.48522344\",\n \"0.4842455\",\n \"0.48422128\",\n \"0.48358628\",\n \"0.4833187\",\n \"0.4832859\",\n \"0.4832475\",\n \"0.48246136\",\n \"0.481583\",\n \"0.48096877\"\n]"},"document_score":{"kind":"string","value":"0.61347723"},"document_rank":{"kind":"string","value":"0"}}},{"rowIdx":216,"cells":{"query":{"kind":"string","value":"Navigational, leads to sources form."},"document":{"kind":"string","value":"function toSources(){\n document.getElementById(\"input\").innerHTML = sourceForm();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function navigateTo(source) {\n EDIT_INTENTION = true;\n console.log($(source).attr('id'));\n if (taskFinder) {\n window.location.href =\n TASK_CREATOR + '?id=' + $(source).attr('id').replace('project', '');\n } else {\n document.getElementById('findProject').style.display = 'none';\n $(source).attr('id').replace('project', '');\n var proj_id = $(source).attr('id');\n proj_id = proj_id.replace('project', '');\n console.log('PROJ MAN: ', proj_id, PROJECT_DATA);\n projectID = proj_id;\n getProject_PROJECT_MANAGER(proj_id);\n $('#projectInformationTabLink').addClass('active');\n $('#projectInformation').addClass('active');\n $('#projectInformation').addClass('active');\n $('#closeout').removeClass('active');\n\n $('.autofill_NA').each(function (index) {\n $(this).val('false');\n });\n\n currentDivLocation = 'projectManager';\n document.getElementById('projectManager').style.display = 'inline';\n }\n}","function goToInvoices(source) {\n hideExtraInvoiceValues();\n\n //sets the selected PE to a global var\n SELECTED_PE_ID = source;\n displayInvDisplay();\n}","function SP_DisplayViewSourceButton()\n{\n\tif(arguments[0])\n\t{\n\t\tif(document.getElementById(\"mastercontrol.links.source\").length > 0)\n\t\t{\n\t\t\tSP_RemoveClass(document.getElementById(arguments[0]),'hide');\n\t\t\tdocument.getElementById(\"mastercontrol.links.view.source\").disabled = false;\n\t\t}\n\t}\n}","function onShowSource() {\n resetPageState();\n\n document.querySelector('.source_con > .source').value = generateClickimageSource(true);\n document.querySelector('.page').classList.add('source');\n }","function selected2link() {\n if (!toolbar.data(\"sourceOpened\")) {\n var selectedTag = getSelectedNode(); // the selected node\n var thisHrefLink = \"http://\"; // default the input value of the link-form-field\n\n // display the link-form-field\n linkAreaSwitch(true);\n\n if (selectedTag) {\n\n var thisTagName = selectedTag.prop('tagName').toLowerCase();\n\n // if tag name of the selected node is \"a\" and the selected node have \"href\" attribute\n if (thisTagName == \"a\" && selectedTag.is('[href]')) {\n thisHrefLink = selectedTag.attr('href');\n\n selectedTag.attr(setdatalink, \"\");\n }\n // if it don't have \"a\" tag name\n else\n replaceSelection(\"a\", setdatalink, \"\");\n\n }\n else\n linkinput.val(thisHrefLink).focus();\n\n // the method of displaying-hiding to link-types\n linktypeselect.click(function (e) {\n if ($(e.target).hasClass(vars.css + \"_linktypetext\") || $(e.target).hasClass(vars.css + \"_linktypearrow\"))\n linktypeSwitch(true);\n });\n\n // the method of selecting to link-types\n linktypes.find(\"a\").click(function () {\n var thisLinkType = $(this).attr(vars.css + \"-linktype\");\n\n linktypes.data(\"linktype\", thisLinkType)\n\n linktypeview.find(\".\" + vars.css + \"_linktypetext\").html(linktypes.find('a:eq(' + linktypes.data(\"linktype\") + ')').text());\n\n linkInputSet(thisHrefLink);\n\n linktypeSwitch();\n });\n\n linkInputSet(thisHrefLink);\n\n // the method of link-input\n linkinput\n // auto focus\n .focus()\n // update to value\n .val(thisHrefLink)\n // the event of key to enter in link-input\n .bind(\"keypress keyup\", function (e) {\n if (e.keyCode == 13) {\n linkRecord(jQTE.find(\"[\" + setdatalink + \"]\"));\n return false;\n }\n });\n\n // the event of click link-button\n linkbutton.click(function () {\n linkRecord(jQTE.find(\"[\" + setdatalink + \"]\"));\n });\n }\n else\n // hide the link-form-field\n linkAreaSwitch(false);\n }","function setup_showSource() {\n\tdocument.getElementById(\"basic\").style.display = \"none\";\n\tdocument.getElementById(\"create\").style.display = \"none\";\n\tdocument.getElementById(\"source\").style.display = \"block\";\n\tdocument.getElementById(\"info\").style.display = \"none\";\n}","function sourceClick(index)\n{\n var\tcitForm\t\t= document.citForm;\n var\telt\t\t = citForm.elements['IDSR'];\n if (elt.length > 1)\n {\t\t// select element has already been populated\n\t\treturn;\n }\t\t// select element has already been populated\n\n // get the subdistrict information file\n HTTP.getXML('/FamilyTree/getSourcesXml.php?name=IDSR',\n\t\t\t\tgotSources,\n\t\t\t\tnoSources);\n}","function destination() {\n setVisibility(\"dest\");\n inputType = \"Destination\";\n}","function directUserFromViewInfo() {\n if (nextStep == \"Departments\") {\n viewDepartments();\n }\n if (nextStep == \"Roles\") {\n viewRoles();\n }\n if (nextStep == \"Employees\") {\n viewEmployees();\n }\n if (nextStep == \"All Information\") {\n viewAll();\n } \n }","function addSourcesToPage(sources) {\n const list = document.getElementById('WaterSources');\n\n for (let i = 0; i < sources.length; i++) {\n let li = createListItem(sources[i]);\n list.appendChild(li);\n }\n}","function nav() {\n\t\t var w = document.reflinkform.reflinklist.selectedIndex;\n\t\t var url_add = document.reflinkform.reflinklist.options[w].value;\n\t\t window.location.href = url_add;\n\t\t}","'click #next'(event) {\n\n let publisher = document.getElementById('publisherList');\n // throw error if user clicks next and no value has been selected\n if( publisher.selectedIndex == 0 ) {\n // throw error\n Bert.alert('Please select a publisher!', 'danger', 'growl-top-right');\n } else {\n let selectedPublisher = $('#publisherList').val();\n //console.log(\"did you forget, the publisher you selected is:\", selectedPublisher);\n const publisherId = selectedPublisher;\n // Route to edit order contexts\n // Example: FlowRouter.go('/blog/my-post?comments=on&color=dark');\n\n //FlowRouter.go('/blog/my-post?comments=on&color=dark');\n FlowRouter.go('/edit-order?publisherId='+publisherId);\n // set template with parameter of publisherId\n }\n\n }","function setPreviewLinks() {\n if (currentPage !== 'webform_preview' || !$form.find('.webform-preview').length) {\n return;\n }\n\n var $button = $form.find('.js-webform-wizard-pages-link[data-webform-page=\"webform_start\"]');\n\n // Link to previous pages in progress steps (aka bar).\n if (options.progressLink) {\n $progress.find('[data-webform-card]').each(function () {\n var $step = $(this);\n var card = $step.data('webform-card');\n var title = $step.attr('title');\n $step\n .find('[data-webform-progress-link]')\n .attr({'role': 'link', 'title': title, 'aria-label': title, 'tabindex': '0'})\n .click(function () {\n // Set current card.\n $currentCardInput.val(card);\n // Click button to return to the 'webform_start' page.\n $button.click();\n })\n .keydown(function (event) {\n if (event.which === 13) {\n $(this).click();\n }\n });\n });\n }\n\n // Link to previous pages in preview.\n if (options.previewLink) {\n $form\n .find('.webform-card-edit[data-webform-card]')\n .each(function appendEditButton() {\n var $card = $(this);\n\n var card = $card.data('webform-card');\n var title = $card.attr('title');\n\n var $cardButton = $button.clone();\n $cardButton\n .removeAttr('data-webform-page data-msg-required')\n .attr('id', $cardButton.attr('id') + '-' + card)\n .attr('name', $cardButton.attr('name') + '-' + card)\n .attr('data-drupal-selector', $cardButton.attr('data-drupal-selector') + '-' + card)\n .attr('title', Drupal.t(\"Edit '@title'\", {'@title': title}).toString())\n .click(function () {\n // Set current card.\n $currentCardInput.val(card);\n // Click button to return to the 'webform_start' page.\n $button.click();\n return false;\n });\n $card.append($cardButton).show();\n });\n }\n }","function originNextStep() {\n $scope.originStep = 'navigationhidden';\n $scope.destinationStep = 'navigationshown';\n $scope.geosuccess = 'navigationhidden';\n }","function linkToDataSource(el) {\n let settings = $(el)[0].settings;\n let ctrlSettings;\n if (!settings.sourceObject) {\n if ($('#' + settings.linkToDataControl).length !== 1) {\n indiciaFns.controlFail(el, 'Failed to find data control ' + settings.linkToDataControl + ' linked to recordsMover');\n }\n // Find the source linked to the data control.\n ctrlSettings = $('#' + settings.linkToDataControl)[0].settings;\n settings.source = ctrlSettings.source;\n settings.sourceObject = indiciaData.esSourceObjects[Object.keys(settings.source)[0]];\n if (settings.sourceObject.settings.mode !== 'docs') {\n indiciaFns.controlFail(el, 'The recordsMover control needs to link to a source that lists occurrences rather than aggregated data');\n }\n }\n }","function go_articulos() {\n $state.go('complex_articles.list');\n }","function sourcesInit() {\n\t\t// Bind this to checking / unchecking the source checkboxes\n\t\t$('body').on('change', '.mobile-kiosk-sources', function(e) {\n\t\t\tvar id = $(this).val();\n\t\t\t$('#' + id + '-options').toggle();\n\t\t});\n\t}","function regionSourceClick() {\n if (document.getElementById(\"rbManual\").checked) {\n gImageInfoViewer.setSource(RegionInfoSourceEnum.MANUAL);\n gImageRegionListViewer.setSource(RegionInfoSourceEnum.MANUAL);\n } else {\n gImageInfoViewer.setSource(RegionInfoSourceEnum.LOADED);\n gImageRegionListViewer.setSource(RegionInfoSourceEnum.LOADED);\n }\n}","function showmenu_source(itemid){\n\t\t/*sourcesourcesourcesourcesourcesourcesourcesource\n\t\t * \n\t\t */\t\t\t\t\t\t\t\t\t\t\t\n\t\t//Frame\n\t\t\tvar framew=150;\n\t\tvar frameh=150;\t\t\n\t\t//url\t\t\t\n\t\tvar itemid='#'+itemid+' .filebox-source-content';\n\t\tvar url=$(itemid).attr('data-src');\t\t\n\t\t//object\n\t\tvar object='#SourceB';\t\t\t\n\t\t//source\t\n\t\tPicturE_show(framew,frameh,url,object);\t\t\n\t\t/*sourcesourcesourcesourcesourcesourcesourcesource\n\t\t * \n\t\t */\n\t\t/*desdesdesdesdesdesdesdesdesdesdesdesdesdesdesdes\n\t\t */\t\t \t\t\t\t \n\t //Focus the DeS\n\t setTimeout(\"$('#InfossM_sdes #DeS').focus();\",500);\n\t \n\t //showshowshowshowshowshowshowshowshowshowshowshow\n\t $('#InfossMbacK,#InfossM').css('display','block');\t\t\t\t\n\t}","navigateHyperlink() {\n let fieldBegin = this.getHyperlinkField();\n if (fieldBegin) {\n this.fireRequestNavigate(fieldBegin);\n }\n }","function showTransfer() {\n clearErrorMsg();\n showView('transferForm');\n showLinks(['logoutLink', 'tradeLink', 'portfolioLink']);\n}","function goToCollection() {\n var links = $scope.response.links || $scope.schema.links;\n links.forEach(function (link) {\n if (link.rel === 'schema/rel/collection') {\n $location.url('https://huggingface.co/view?res=' + normalizeUrl(link.href));\n }\n });\n }","function showList() {\n\t\t\t$state.go('flight.list');\n\t\t}","function setSource(aSrc) {\n\n\tdocument.getElementById('frmFacturation').hdnSource.value = aSrc;\n\tdocument.getElementById('frmFacturation').submit();\n\n}","function showList() {\n\t\t\t$state.go('^');\n\t\t}","function showList() {\n\t\t\t$state.go('^');\n\t\t}","function toChangeSourceData(){\n isChangingSources = true;\n if(sources.length > 0){\n currentSID = sources[0].id;\n }\n document.getElementById(\"input\").innerHTML = sourceDataChangeForm();\n}","function handleSourceChange(sourceCode, sourceName) {\n basicMsg(\"Loading...\");\n $(\"#countriesList\").prop('selectedIndex', 0);\n $(\"#sourcesList\").val(sourceCode);\n\n if (sourceCode === 'All') {\n displayFilterValues('ALL', '');\n showAllNews();\n return;\n }\n\n displayFilterValues('SOURCE -', sourceName)\n\n const url = 'news/bySource/' + sourceCode + '?socketId=' + getSocketId();\n displayNewsInfo(url, sourceCode);\n}","function SP_SetRelatedRecords()\n{\n\tvar oSourceLinks = document.getElementById(\"mastercontrol.links.source\");\n\tvar stepNum = document.getElementById(\"mastercontrol.route.stepnumber\").value*1;\n\tvar formStatus = document.getElementById(\"mastercontrol.hidden.event\").value.toLowerCase();\n\t// Disabled it as per bug 43859\n\tSP_PerformAction(\"mastercontrol.task.parentformid\",\"readonly\",true);\n\t\n\tif(oSourceLinks.length > 0)\n\t{\n\t\tdocument.getElementById(\"mastercontrol.task.parentformid\").parentNode.style.width = \"270px\";\n\t\tSP_RemoveClass(document.getElementById(arguments[2]),'hide');\n\t\tdocument.getElementById(\"mastercontrol.links.view.source\").disabled = false;\n\t\tSP_PerformAction(arguments[0]+\",\"+arguments[1]+\",\"+\"mastercontrol.task.parentformid\",\"disabled\",true);\n\t}\n\telse if(oSourceLinks.length == 0 && (stepNum == 1 || formStatus == \"prepopulate\" || formStatus == \"editform\")) \n\t{\n\t\tSP_PerformAction(arguments[0]+\",\"+arguments[1],\"disabled\",false);\n\t\tSP_PerformAction(arguments[0]+\",\"+arguments[1],\"readonly\",false);\n\t}\n\telse\n\t{\n\t\tSP_PerformAction(arguments[0]+\",\"+arguments[1]+\",\"+\"mastercontrol.task.parentformid\",\"disabled\",true);\n\t}\n}","viewThisInvoice() { FlowRouter.go('invoice', { invoiceId: this.props.invoice._id } ) }","function initiateSourceDetailsByManager() {\n\n\t\tvm.sourceData.startDateTime = moment().subtract(1, 'months').format(\"MM-DD-YYYY\");\n\t\tvm.sourceData.endDateTime = moment(2359, 'HH:mm').format(\"MM-DD-YYYY\");\n\t\tAPIFactory.getSystemList(function (response) {\n\t\t\tif (response.status) {\n\t\t\t\tvm.sourceDetailsList = response.data;\n\t\t\t\t$scope.searchKeyClickedOnScreen = false;\n\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t$(\"#sourceTargetSystems\").select2()\n\n\t\t\t\t\t$(\"#sourceTargetSystems\").on(\"select2:select\", function (evt) {\n\t\t\t\t\t\t$scope.selectedSystems = $(\"#sourceTargetSystems\").select2(\"val\")\n\t\t\t\t\t\tinitTargetSystemFieldByManager()\n\t\t\t\t\t})\n\t\t\t\t\t$(\"#sourceTargetSystems\").val(\"0\").trigger(\"change\")\n\n\t\t\t\t\t$scope.selectedSystems = [\"0\"]\n\t\t\t\t\tinitTargetSystemFieldByManager()\n\t\t\t\t\t$(\"#sourceTargetSystems\").on(\"select2:unselect\", function () {\n\t\t\t\t\t\t$scope.selectedSystems = $(\"#sourceTargetSystems\").select2(\"val\")\n\t\t\t\t\t\t$scope.selectedSystems = $scope.selectedSystems ? $scope.selectedSystems : []\n\t\t\t\t\t\tif ($scope.selectedSystems.indexOf(\"0\") < 0) {\n\t\t\t\t\t\t\t_.each(vm.sourceDetailsList, function (sObj) {\n\t\t\t\t\t\t\t\t$(\"#sourceTargetSystems option[value='\" + sObj.name + \"']\").prop('disabled', false)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t$(\"#sourceTargetSystems\").select2()\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($scope.selectedSystems.length == 0) { // When User Unselects last selected systems\n\t\t\t\t\t\t\t$(\"#sourceTargetSystems option[value='0']\").prop('disabled', false)\n\t\t\t\t\t\t\t$(\"#sourceTargetSystems\").select2()\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$scope.$digest()\n\t\t\t\t\t})\n\t\t\t\t}, 1000)\n\t\t\t}\n\t\t})\n\t}","async function showSources() {\n try {\n const sourceObject = await networkApi('GET', baseApiKey + 'news/sources');\n if (sourceObject.Error != null) {\n errorMsg(sourceObject.Error);\n errorMsg('Error Loading Sources', $('#asideSources'));\n $('#sourcesList').html('');\n return;\n }\n const htmlString = getSourceHtml(sourceObject);\n $('#asideSources').html(htmlString);\n generateSourceList(sourceObject);\n }\n catch (err) {\n return errorMsg('Error retrieving sources from server.');\n }\n}","function linkSource(){\n //link to source\n $('#field_div_id_'+(fieldSet-1)+'_subject').autocomplete({\n source: searchIndex,\n autoFocus:true\n });\n $('#field_div_id_'+(fieldSet-1)+'_year').autocomplete({\n source: years,\n autoFocus:true\n });\n\n\n $('#add-fav-field').autocomplete({\n source: searchIndex,\n autoFocus:true\n });\n\n $('#from-year').autocomplete({\n source: years,\n autoFocus:true\n });\n\n $('#to-year').autocomplete({\n source: years,\n autoFocus:true\n });\n\n\n $('#bulk_year').focusin(function(e){\n $('#quick_year_selector').slideDown();\n });\n\n\n $('#field_div_id_' + (fieldSet-1) + '_year').on('keydown',function(e){\n var keyCode = e.keyCode || e.which;\n if (keyCode == 9){\n //Tab pressed\n addField();\n }\n });\n\n\n\n}","function goToSelection() {\n window.location = selectedHref;\n }","function setGoToData(){\n\n\t\t\t$scope.goToData.links.push({type: 'brand id', namePath: 'id', sref: 'spa.brand.brandEdit', paramKey: 'brandId', paramPath: 'id'});\n\t\t\tif(hasAccountsPermissions) $scope.goToData.links.push({type: 'account', namePath: 'relationsBag.parents.account.name', sref: 'spa.account.accountEdit', paramKey: 'accountId', paramPath: 'relationsBag.parents.account.id'});\n\t\t\tif(hasAdvertisersPermissions) $scope.goToData.links.push({type: 'advertiser', namePath: 'relationsBag.parents.advertiser.name', sref: 'spa.advertiser.advertiserEdit', paramKey: 'advertiserId', paramPath: 'relationsBag.parents.advertiser.id'});\n\t\t\tif(hasCampaignsPermissions) $scope.goToData.links.push({type: 'campaigns', namePath: 'relationsBag.children.campaigns.count', sref: 'spa.brand.campaigns', paramKey: 'brandId', paramPath: 'id'});\n\n\t\t\t$scope.goToData.actions.splice(0, 0, { name: 'New Brand', func: newBrand});\n\t\t\t$scope.goToData.actions.splice(1, 0, { name: 'Delete', func: deleteEntity});\n\t\t}","function cancelForm() { switchToView('listing'); }","function redirectSearches(){\r\n\t\r\n\tvar searchList = getUrlParameter(\"search\");\r\n\tvar eventAddress = getUrlParameter(\"event\");\r\n\tvar isManual = getUrlParameter(\"manual\");\r\n\t\r\n\t\r\n\t//Nearby Search\r\n\tif (searchList != undefined && eventAddress == undefined){\r\n\t\tsearchMap(searchList,false);\r\n\t}\r\n\t\r\n\t//Address Search\r\n\tif (searchList != undefined && searchList != \"None Given\" && eventAddress == \"true\"){\r\n\t\tsearchMap(searchList,true);\r\n\t}\r\n\t\r\n\t//Manual Lists\r\n\tif (searchList != undefined && eventAddress == undefined && isManual ==\"true\"){\r\n\t\tgetList(searchList);\r\n\t}\r\n\t\r\n\t//Load Address Book\r\n\t//loadAddressList(); Thynote: on click for tab now \r\n}","function openlist() {\n $state.go(vm.baseState.name);\n }","function changeSource() {\n if (event) {\n\t if (event.target.innerText==\"Feedr\") {\n\t \tsourceName = sourceNames[0];\n\t } else {\n\t \tsourceName = event.target.innerText;\n\t }\n }\n document.getElementById(\"sourceName\").innerHTML = sourceName;\n if (dataCache[sourceName]) {\n \tfor (var i=0; i> Wunderlist Navigator shortcut clicked');\n $(Config.LIST_SWITCHER).show();\n $(Config.LIST_INPUT).focus();\n var lists = [];\n $(Config.LIST_LINKS).each(function (index, element) {\n var list = {};\n var $this = $(this);\n list.href = $this.attr('href');\n list.title = $this.find('.title').text();\n lists.push(list);\n });\n allLists = lists;\n populateLists(lists);\n }","Navigate(_, src) {\n if (src.tab && src.tab.id) {\n onTabUpdate(src.tab.id, src.tab);\n }\n }","function navigate(){\n const viewerBtn = document.getElementById('viewerBtn');\n const editorBtn = document.getElementById('editorBtn');\n \n viewerBtn.addEventListener('click',function(){\n window.location.href= \"./viewer.html\";\n });\n\n editorBtn.addEventListener ('click',function(){\n window.location.href=\"./editor.html\"\n });\n}","function goToForm() {\n history.push('/form');\n }","function getAllSources() {\r\n\t$.ajax({\r\n\t\ttype: \"GET\",\r\n\t\turl: \"/getAllSources\",\r\n\t\tsuccess: function(response) {\r\n\t\t\tsources = response[\"sources\"]\r\n\t\t\taddSourcesToView(sources)\r\n\t\t},\r\n\t\terror: function(chr) {\r\n\t\t \tconsole.log(\"Error!\")\r\n\t\t}\r\n\t});\r\n}","viewMeta() { FlowRouter.go('invoiceMeta', { invoiceId: this.props.invoice._id } ) }","viewMeta() { FlowRouter.go('invoiceMeta', { invoiceId: this.props.invoice._id } ) }","loadSelections() {\n this.$state.go('textStorageRoot.selectionList', {\n topic: this.currentTopic,\n domain: this.currentDomain\n });\n }","function _resetDestination(){\n displayInfo.searchLocation = null;\n displayInfo.eventInformation = null;\n _removeRoutes();\n clearVenues();\n displayInfo.pagination=null;\n $(\"#moreGoogle\").addClass(\"ui-disabled\");\n $(\"#moreGoogleMain\").hide();\n $(startingLocation2.inputfield.name).next().trigger(\"click\");\n resetInputField(startingLocation2);\n}","link() {\n this._locations = this._sbolDocument.lookupURIs(this._locations);\n this._component = this._sbolDocument.lookupURI(this._component);\n }","onChangeSource(e) {\n\t\tthis.props.onChangeSource(e.target.value);\n\t}","onClick() {\n this.wizard.goToStep(this.destinationStep, this.preFinalize, this.postFinalize);\n }","beforeEnter(to, from, next) {\n if (store.getters.userIsMultiFacilityAdmin) {\n next({ name: 'AllFacilitiesPage', replace: true });\n } else {\n next({ name: 'CoachClassListPage', replace: true });\n }\n }","function candidateList() {\n history.push(\"/CandidateListAdmin\");\n }","function navSubmitClick(evt) {\n evt.preventDefault();\n console.debug(\"navSubmitClick\", evt);\n navAllStories();\n $newStoryForm.show();\n}","[enterHandler]() {\n if (this.suggestionsOpened) {\n return;\n }\n ArcNavigationEvents.navigateExternal(this, this.value, {\n purpose: this.purpose,\n });\n this.opened = false;\n }","function browsePage(e) {\n if (e && e.preventDefault) \n e.preventDefault();\n\n var view = '

Pick a script from the left to view it here.

';\n\n highlightNav('#browse-page');\n\n $('#script-view').html(view);\n\n pushState({\n 'activeNav': '#browse-page',\n 'scriptView': view,\n 'view': 'list scripts'\n }, 'list scripts', '#');\n }","function redirectToPhysioExperts() {\n\t\t\t$state.go(\"homepages.physioexperts\");\n\t\t}","function frmPatientSummary_openAdditionalCPGLinks(){\n var selectedIndices = frmPatientSummary.segadditionalcpglinks.selectedIndices; \n kony.print(\"selectedIndex: -------->>>> \"+JSON.stringify(selectedIndices[0][1][0]));\n var selectedIndex = selectedIndices[0][1][0];\n CPG_Links.fileName=\"\";\n CPG_Links.fileName=patientSummaryObjects.CPGLinks[selectedIndex+1];\n var link = MF_CONSTANTS.CLOUD_URL+\"/\"+CPG_Links.pdfLink+\"=\"+CPG_Links.fileName;\n kony.print(\"CPG link ---->>>\" +link);\n com.healogics.patientSummary.openCPGLink(link);\n}","function initEvents() {\n\t\t\tselectElement.on(\"change\", function () {\n\t\t\t\tif ($(this).val() !== \"\") {\n\t\t\t\t\tlocation.href = $(this).val();\n\t\t\t\t}\n\t\t\t});\n\t\t}","function onNewDestinationBtnClick() {\n modelGeolocation.setDestinationPosition();\n uiDestination.show({\n mapMode: uiDestination.isMapModeActive()\n });\n }","openOptionScreen() {\n NavigationService.navigate('FilterPrechecklist', {\n getOptionData: this.getOptionData.bind(this),\n onChange: this.onChange.bind(this),\n selectItem: this.state.selectItem,\n selectDate: this.state.selectDate\n });\n }","next(source) {\n this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source);\n }","function visSingleView() {\n console.log(\"visSingleView\");\n //add history.back();\n //Konstant der bestemmer window.location.search\n //Konstant der definerer en unik egenskab (her fx. navn).\n //Konstant der definerer URL til json\n //Andre lokale variabler\n //opret en klon med alle info fra json og sæt ind på siden vha textContent, link til billede + alt.\n}","function mercClicked() {\n\twindow.location = '/M152_Autokonfigurator/AuswahlMercedes.html';\n}","function goToPage($this){\n if($this.val() !== null){document.location.href = $this.val()}\n }","function goToPage($this){\n if($this.val() !== null){document.location.href = $this.val()}\n }","function initialDisplay() {\n \tcountLinks();\n \tgetDropDowns();\n \tgetList(\"id\");\n }","function setUrl(e) {\n\n\n let source = document.getElementById(\"search-box\").value;\n\n let newHead = new History(head, source, null);\n head.next = newHead;\n head = newHead;\n let elements = document.getElementsByClassName(\"pane-iframe\")\n for (let elem of elements) {\n elem.src = source;\n }\n console.log(head);\n}","function handleShipToAddress() {\n differentStorePickup = false;\n $.next_button.setTitle(_L('Next'));\n}","function linkStudentCompose(fWhere) {\r\n setUpLinkBackJSON(fWhere);\r\n window.location.href = \"studentCompose.html\";\r\n}","function linkAdminCompose(fWhere) {\r\n setUpLinkBackJSON(fWhere);;\r\n window.location.href = \"adminCompose.html\";\r\n}","function onEdit() {\n setNav(0);\n }","function onSelectGeneratorSite(obj){\n\tvar controller = View.controllers.get(\"defWasteGeneratorController\");\n\tvar treePanel = View.panels.get(\"abWasteDefGeneratorsSiteTree\");\n\t// get clicked site code and store it to controller’s variable curTreeNode\n\tcontroller.curTreeNode=treePanel.lastNodeClicked;\n\tcontroller.curTreeNode.expand();\n\t//Set addNew button enabled\n\ttreePanel.actions.get(\"addNew\").enable(true);\n}","function _showPreviousPage() {\n var listDoneConnectors = DataSourcesHelper.getDoneConnectors(graphInfo.connectorType);\n if (listDoneConnectors.length > 0)\n RightMenu.showRightMenu(Pages.addSerieConnectorsStep, listDoneConnectors);\n }","navigateToClinicPage() {\n return this._navigate(this.buttons.clinic, 'clinicPage.js');\n }","function setGoToData(){\n\t\t\t//set links array\n\t\t\t$scope.goToData.links.push({type: 'user id', namePath: 'id', sref: 'spa.user.userEdit', paramKey: 'userId', paramPath: 'id'});\n\t\t\tif(hasAccountsPermissions) $scope.goToData.links.push({type: 'account', namePath: 'accountName', sref: 'spa.account.accountEdit', paramKey: 'accountId', paramPath: 'accountId'});\n\t\t\t//$scope.goToData.links.push({type: 'permissions', namePath: 'id', sref: 'spa.user.userPermissions', paramKey: 'userId', paramPath: 'id'});\n\n\t\t\t//due to the fact that HISTORY action was already added by entityLayout.js, needs to reorder the actions and add HISTORY to be last\n\t\t\t//set actions array\n\t\t\t$scope.goToData.actions.splice(0, 0, {name: 'New User', func: addNewUser});\n\t\t\t$scope.goToData.actions.splice(1, 0, {name: 'Delete', func: deleteEntity});\n\t\t}","onSelect(event) {\n window.location.href = event.value;\n }","function linkAreaSwitch(status) {\n // remove all pre-link attribute (mark as \"link will be added\")\n clearSetElement(\"[\" + setdatalink + \"]:not([href])\");\n jQTE.find(\"[\" + setdatalink + \"][href]\").removeAttr(setdatalink);\n\n if (status) {\n toolbar.data(\"linkOpened\", true);\n linkform.show();\n }\n else {\n toolbar.data(\"linkOpened\", false);\n linkform.hide();\n }\n\n linktypeSwitch();\n }","function goToAccRec() {\n $('#peInvoiceInformation').show();\n $('#invoiceInformation').hide();\n $('#financialSection').show();\n updatePricingInfo();\n fillPeInvsTable(DATA);\n}","function onTargetOriginClick() {\n console.log(\"Clicked onTargetOriginClick\");\n // update the UI\n w3.toggleClass('#targetOrigin', 'w3-red');\n w3.removeClass('#targetChildren', 'w3-red');\n w3.removeClass('#targetWomen', 'w3-red');\n w3.removeClass('#targetLGTBIQ', 'w3-red');\n // toggle this filter and disable the others\n targetOrigin = !targetOrigin;\n targetChildren = false;\n targetWomen = false;\n targetLGTBIQ = false;\n // trigger the find operation\n findLocationsInDatabase(\"FILTER\", -1);\n}","changeSource(source) {\n\t\tthis.info.source = source\n\t\tthis.config.source = source\n\t}","onSourceButtonClick() {\n let previousCommentBox = this.representedHTMLElement.querySelector(\".at_commentfield\");\n if (previousCommentBox) {\n previousCommentBox.parentNode.removeChild(previousCommentBox);\n }\n new RoKA.CommentField(this, this.commentObject.body);\n }","function changeSourceRecordFK() {\r\n\r\n if (getObjectValue(\"listDisplayed\") == 'Y') {\r\n if (isChanged || isPageDataChanged()) {\r\n if (!confirm(ciDataChangedConfirmation)) {\r\n setObjectValue(\"phoneNumber_sourceRecordFK\", getObjectValue(\"currentSourceRecordFK\"));\r\n return;\r\n }\r\n }\r\n }\r\n setObjectValue(\"process\", \"loadPhoneList\");\r\n submitFirstForm();\r\n\r\n}","function onNavLinkClick(evt) {\n \n if(evt.target.id==\"nav-submit\"){\n $addStoryForm.show();\n }\n if(evt.target.id==\"nav-favorites\"){\n hidePageComponents();\n compileFavorites();\n }\n if(evt.target.id==\"nav-my-stories\"){\n hidePageComponents();\n displayMyStories();\n }\n}","onNavigate (routeData) {\n this.channel.trigger('before:navigate', routeData.linked)\n\n routeData.linked.show(routeData.params)\n .then(() => {\n this.channel.trigger('navigate', routeData.linked)\n })\n .catch((error) => {\n console.error(error)\n this.channel.trigger('error')\n })\n }","handleViewDetailsClick() {\n this[NavigationMixin.Navigate]({\n type: 'standard__recordPage',\n attributes: {\n recordId: this.location.Id,\n objectApiName: LOCATION_OBJECT.objectApiName,\n actionName: 'view'\n }\n });\n }","prepareTourUrl() {\n let code = this.createTourCodeUrl();\n document.getElementById(\"resultBox\").textContent = code;\n document.getElementById(\"resultBox\").select();\n }","gotoListPage() {\n goto.route('/snippets');\n }","function sendTo(e, url) {\n\n var label, text, model;\n\n e.preventDefault();\n e.stopPropagation();\n\n hideCategoryNav();\n\n text = /build/gi.test(e.target.textContent) ? \"Build Your Lexus\" : e.target.textContent;\n label = e.target.getAttribute(\"data-label\") || \"Category not found\";\n model = e.target.getAttribute(\"data-model\") || \"Model data not found\";\n\n if (typeof fireTag === \"function\") {\n onGlobalNavModelClick(\"Model Flyout\", \"CTA Click\", label, text, model);\n }\n\n window.location.href = url;\n }","function gotoForm() {\n toggleForm();\n }","function goToDesEditPage() {\n $('#dest_name').val(window.deliveryRecord.item.object.location_name);\n $('#dest_number').val(window.deliveryRecord.item.object.location_number);\n $('#dest_address').val(window.deliveryRecord.item.object.address);\n $('#dest_city').val(window.deliveryRecord.item.object.city);\n $('#dest_state').val(window.deliveryRecord.item.object.state);\n $('#dest_zip').val(window.deliveryRecord.item.object.zip);\n $('#dest_contact').val(window.deliveryRecord.item.object.contact);\n $('#dest_phone').val(window.deliveryRecord.item.object.phone);\n $('#dest_email').val(window.deliveryRecord.item.object.email);\n $('#dest_cell').val(window.deliveryRecord.item.object.cell);\n $('textarea#dest_notes').val(window.deliveryRecord.item.object.location_notes);\n $('#dest_id').val(window.deliveryRecord.item.object.id);\n }","onChangeSource(newSourceName) {\n\t\tvar sources = this.props.sources;\n\n\t\tfor(let source in sources) {\n\n\t\t\tlet sourceName = sources[source].sourceName;\n\n\t\t\tif(sourceName === newSourceName) {\n\n\t\t\t\tthis.setState({\n\t\t\t\t\tcurrentSource: sources[source],\n\t\t\t\t\tcurrentCategory: sources[source].categories[0]\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t}\n\t}","function View_Change() {\nstrURL = document.getElementById('cmbEntityViews').value;\nwindow.location.assign(strURL);\n}","onClickAdvanced() {\n location.hash = '/content/json/' + this.model.id;\n }"],"string":"[\n \"function navigateTo(source) {\\n EDIT_INTENTION = true;\\n console.log($(source).attr('id'));\\n if (taskFinder) {\\n window.location.href =\\n TASK_CREATOR + '?id=' + $(source).attr('id').replace('project', '');\\n } else {\\n document.getElementById('findProject').style.display = 'none';\\n $(source).attr('id').replace('project', '');\\n var proj_id = $(source).attr('id');\\n proj_id = proj_id.replace('project', '');\\n console.log('PROJ MAN: ', proj_id, PROJECT_DATA);\\n projectID = proj_id;\\n getProject_PROJECT_MANAGER(proj_id);\\n $('#projectInformationTabLink').addClass('active');\\n $('#projectInformation').addClass('active');\\n $('#projectInformation').addClass('active');\\n $('#closeout').removeClass('active');\\n\\n $('.autofill_NA').each(function (index) {\\n $(this).val('false');\\n });\\n\\n currentDivLocation = 'projectManager';\\n document.getElementById('projectManager').style.display = 'inline';\\n }\\n}\",\n \"function goToInvoices(source) {\\n hideExtraInvoiceValues();\\n\\n //sets the selected PE to a global var\\n SELECTED_PE_ID = source;\\n displayInvDisplay();\\n}\",\n \"function SP_DisplayViewSourceButton()\\n{\\n\\tif(arguments[0])\\n\\t{\\n\\t\\tif(document.getElementById(\\\"mastercontrol.links.source\\\").length > 0)\\n\\t\\t{\\n\\t\\t\\tSP_RemoveClass(document.getElementById(arguments[0]),'hide');\\n\\t\\t\\tdocument.getElementById(\\\"mastercontrol.links.view.source\\\").disabled = false;\\n\\t\\t}\\n\\t}\\n}\",\n \"function onShowSource() {\\n resetPageState();\\n\\n document.querySelector('.source_con > .source').value = generateClickimageSource(true);\\n document.querySelector('.page').classList.add('source');\\n }\",\n \"function selected2link() {\\n if (!toolbar.data(\\\"sourceOpened\\\")) {\\n var selectedTag = getSelectedNode(); // the selected node\\n var thisHrefLink = \\\"http://\\\"; // default the input value of the link-form-field\\n\\n // display the link-form-field\\n linkAreaSwitch(true);\\n\\n if (selectedTag) {\\n\\n var thisTagName = selectedTag.prop('tagName').toLowerCase();\\n\\n // if tag name of the selected node is \\\"a\\\" and the selected node have \\\"href\\\" attribute\\n if (thisTagName == \\\"a\\\" && selectedTag.is('[href]')) {\\n thisHrefLink = selectedTag.attr('href');\\n\\n selectedTag.attr(setdatalink, \\\"\\\");\\n }\\n // if it don't have \\\"a\\\" tag name\\n else\\n replaceSelection(\\\"a\\\", setdatalink, \\\"\\\");\\n\\n }\\n else\\n linkinput.val(thisHrefLink).focus();\\n\\n // the method of displaying-hiding to link-types\\n linktypeselect.click(function (e) {\\n if ($(e.target).hasClass(vars.css + \\\"_linktypetext\\\") || $(e.target).hasClass(vars.css + \\\"_linktypearrow\\\"))\\n linktypeSwitch(true);\\n });\\n\\n // the method of selecting to link-types\\n linktypes.find(\\\"a\\\").click(function () {\\n var thisLinkType = $(this).attr(vars.css + \\\"-linktype\\\");\\n\\n linktypes.data(\\\"linktype\\\", thisLinkType)\\n\\n linktypeview.find(\\\".\\\" + vars.css + \\\"_linktypetext\\\").html(linktypes.find('a:eq(' + linktypes.data(\\\"linktype\\\") + ')').text());\\n\\n linkInputSet(thisHrefLink);\\n\\n linktypeSwitch();\\n });\\n\\n linkInputSet(thisHrefLink);\\n\\n // the method of link-input\\n linkinput\\n // auto focus\\n .focus()\\n // update to value\\n .val(thisHrefLink)\\n // the event of key to enter in link-input\\n .bind(\\\"keypress keyup\\\", function (e) {\\n if (e.keyCode == 13) {\\n linkRecord(jQTE.find(\\\"[\\\" + setdatalink + \\\"]\\\"));\\n return false;\\n }\\n });\\n\\n // the event of click link-button\\n linkbutton.click(function () {\\n linkRecord(jQTE.find(\\\"[\\\" + setdatalink + \\\"]\\\"));\\n });\\n }\\n else\\n // hide the link-form-field\\n linkAreaSwitch(false);\\n }\",\n \"function setup_showSource() {\\n\\tdocument.getElementById(\\\"basic\\\").style.display = \\\"none\\\";\\n\\tdocument.getElementById(\\\"create\\\").style.display = \\\"none\\\";\\n\\tdocument.getElementById(\\\"source\\\").style.display = \\\"block\\\";\\n\\tdocument.getElementById(\\\"info\\\").style.display = \\\"none\\\";\\n}\",\n \"function sourceClick(index)\\n{\\n var\\tcitForm\\t\\t= document.citForm;\\n var\\telt\\t\\t = citForm.elements['IDSR'];\\n if (elt.length > 1)\\n {\\t\\t// select element has already been populated\\n\\t\\treturn;\\n }\\t\\t// select element has already been populated\\n\\n // get the subdistrict information file\\n HTTP.getXML('/FamilyTree/getSourcesXml.php?name=IDSR',\\n\\t\\t\\t\\tgotSources,\\n\\t\\t\\t\\tnoSources);\\n}\",\n \"function destination() {\\n setVisibility(\\\"dest\\\");\\n inputType = \\\"Destination\\\";\\n}\",\n \"function directUserFromViewInfo() {\\n if (nextStep == \\\"Departments\\\") {\\n viewDepartments();\\n }\\n if (nextStep == \\\"Roles\\\") {\\n viewRoles();\\n }\\n if (nextStep == \\\"Employees\\\") {\\n viewEmployees();\\n }\\n if (nextStep == \\\"All Information\\\") {\\n viewAll();\\n } \\n }\",\n \"function addSourcesToPage(sources) {\\n const list = document.getElementById('WaterSources');\\n\\n for (let i = 0; i < sources.length; i++) {\\n let li = createListItem(sources[i]);\\n list.appendChild(li);\\n }\\n}\",\n \"function nav() {\\n\\t\\t var w = document.reflinkform.reflinklist.selectedIndex;\\n\\t\\t var url_add = document.reflinkform.reflinklist.options[w].value;\\n\\t\\t window.location.href = url_add;\\n\\t\\t}\",\n \"'click #next'(event) {\\n\\n let publisher = document.getElementById('publisherList');\\n // throw error if user clicks next and no value has been selected\\n if( publisher.selectedIndex == 0 ) {\\n // throw error\\n Bert.alert('Please select a publisher!', 'danger', 'growl-top-right');\\n } else {\\n let selectedPublisher = $('#publisherList').val();\\n //console.log(\\\"did you forget, the publisher you selected is:\\\", selectedPublisher);\\n const publisherId = selectedPublisher;\\n // Route to edit order contexts\\n // Example: FlowRouter.go('/blog/my-post?comments=on&color=dark');\\n\\n //FlowRouter.go('/blog/my-post?comments=on&color=dark');\\n FlowRouter.go('/edit-order?publisherId='+publisherId);\\n // set template with parameter of publisherId\\n }\\n\\n }\",\n \"function setPreviewLinks() {\\n if (currentPage !== 'webform_preview' || !$form.find('.webform-preview').length) {\\n return;\\n }\\n\\n var $button = $form.find('.js-webform-wizard-pages-link[data-webform-page=\\\"webform_start\\\"]');\\n\\n // Link to previous pages in progress steps (aka bar).\\n if (options.progressLink) {\\n $progress.find('[data-webform-card]').each(function () {\\n var $step = $(this);\\n var card = $step.data('webform-card');\\n var title = $step.attr('title');\\n $step\\n .find('[data-webform-progress-link]')\\n .attr({'role': 'link', 'title': title, 'aria-label': title, 'tabindex': '0'})\\n .click(function () {\\n // Set current card.\\n $currentCardInput.val(card);\\n // Click button to return to the 'webform_start' page.\\n $button.click();\\n })\\n .keydown(function (event) {\\n if (event.which === 13) {\\n $(this).click();\\n }\\n });\\n });\\n }\\n\\n // Link to previous pages in preview.\\n if (options.previewLink) {\\n $form\\n .find('.webform-card-edit[data-webform-card]')\\n .each(function appendEditButton() {\\n var $card = $(this);\\n\\n var card = $card.data('webform-card');\\n var title = $card.attr('title');\\n\\n var $cardButton = $button.clone();\\n $cardButton\\n .removeAttr('data-webform-page data-msg-required')\\n .attr('id', $cardButton.attr('id') + '-' + card)\\n .attr('name', $cardButton.attr('name') + '-' + card)\\n .attr('data-drupal-selector', $cardButton.attr('data-drupal-selector') + '-' + card)\\n .attr('title', Drupal.t(\\\"Edit '@title'\\\", {'@title': title}).toString())\\n .click(function () {\\n // Set current card.\\n $currentCardInput.val(card);\\n // Click button to return to the 'webform_start' page.\\n $button.click();\\n return false;\\n });\\n $card.append($cardButton).show();\\n });\\n }\\n }\",\n \"function originNextStep() {\\n $scope.originStep = 'navigationhidden';\\n $scope.destinationStep = 'navigationshown';\\n $scope.geosuccess = 'navigationhidden';\\n }\",\n \"function linkToDataSource(el) {\\n let settings = $(el)[0].settings;\\n let ctrlSettings;\\n if (!settings.sourceObject) {\\n if ($('#' + settings.linkToDataControl).length !== 1) {\\n indiciaFns.controlFail(el, 'Failed to find data control ' + settings.linkToDataControl + ' linked to recordsMover');\\n }\\n // Find the source linked to the data control.\\n ctrlSettings = $('#' + settings.linkToDataControl)[0].settings;\\n settings.source = ctrlSettings.source;\\n settings.sourceObject = indiciaData.esSourceObjects[Object.keys(settings.source)[0]];\\n if (settings.sourceObject.settings.mode !== 'docs') {\\n indiciaFns.controlFail(el, 'The recordsMover control needs to link to a source that lists occurrences rather than aggregated data');\\n }\\n }\\n }\",\n \"function go_articulos() {\\n $state.go('complex_articles.list');\\n }\",\n \"function sourcesInit() {\\n\\t\\t// Bind this to checking / unchecking the source checkboxes\\n\\t\\t$('body').on('change', '.mobile-kiosk-sources', function(e) {\\n\\t\\t\\tvar id = $(this).val();\\n\\t\\t\\t$('#' + id + '-options').toggle();\\n\\t\\t});\\n\\t}\",\n \"function regionSourceClick() {\\n if (document.getElementById(\\\"rbManual\\\").checked) {\\n gImageInfoViewer.setSource(RegionInfoSourceEnum.MANUAL);\\n gImageRegionListViewer.setSource(RegionInfoSourceEnum.MANUAL);\\n } else {\\n gImageInfoViewer.setSource(RegionInfoSourceEnum.LOADED);\\n gImageRegionListViewer.setSource(RegionInfoSourceEnum.LOADED);\\n }\\n}\",\n \"function showmenu_source(itemid){\\n\\t\\t/*sourcesourcesourcesourcesourcesourcesourcesource\\n\\t\\t * \\n\\t\\t */\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t//Frame\\n\\t\\t\\tvar framew=150;\\n\\t\\tvar frameh=150;\\t\\t\\n\\t\\t//url\\t\\t\\t\\n\\t\\tvar itemid='#'+itemid+' .filebox-source-content';\\n\\t\\tvar url=$(itemid).attr('data-src');\\t\\t\\n\\t\\t//object\\n\\t\\tvar object='#SourceB';\\t\\t\\t\\n\\t\\t//source\\t\\n\\t\\tPicturE_show(framew,frameh,url,object);\\t\\t\\n\\t\\t/*sourcesourcesourcesourcesourcesourcesourcesource\\n\\t\\t * \\n\\t\\t */\\n\\t\\t/*desdesdesdesdesdesdesdesdesdesdesdesdesdesdesdes\\n\\t\\t */\\t\\t \\t\\t\\t\\t \\n\\t //Focus the DeS\\n\\t setTimeout(\\\"$('#InfossM_sdes #DeS').focus();\\\",500);\\n\\t \\n\\t //showshowshowshowshowshowshowshowshowshowshowshow\\n\\t $('#InfossMbacK,#InfossM').css('display','block');\\t\\t\\t\\t\\n\\t}\",\n \"navigateHyperlink() {\\n let fieldBegin = this.getHyperlinkField();\\n if (fieldBegin) {\\n this.fireRequestNavigate(fieldBegin);\\n }\\n }\",\n \"function showTransfer() {\\n clearErrorMsg();\\n showView('transferForm');\\n showLinks(['logoutLink', 'tradeLink', 'portfolioLink']);\\n}\",\n \"function goToCollection() {\\n var links = $scope.response.links || $scope.schema.links;\\n links.forEach(function (link) {\\n if (link.rel === 'schema/rel/collection') {\\n $location.url('https://huggingface.co/view?res=' + normalizeUrl(link.href));\\n }\\n });\\n }\",\n \"function showList() {\\n\\t\\t\\t$state.go('flight.list');\\n\\t\\t}\",\n \"function setSource(aSrc) {\\n\\n\\tdocument.getElementById('frmFacturation').hdnSource.value = aSrc;\\n\\tdocument.getElementById('frmFacturation').submit();\\n\\n}\",\n \"function showList() {\\n\\t\\t\\t$state.go('^');\\n\\t\\t}\",\n \"function showList() {\\n\\t\\t\\t$state.go('^');\\n\\t\\t}\",\n \"function toChangeSourceData(){\\n isChangingSources = true;\\n if(sources.length > 0){\\n currentSID = sources[0].id;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = sourceDataChangeForm();\\n}\",\n \"function handleSourceChange(sourceCode, sourceName) {\\n basicMsg(\\\"Loading...\\\");\\n $(\\\"#countriesList\\\").prop('selectedIndex', 0);\\n $(\\\"#sourcesList\\\").val(sourceCode);\\n\\n if (sourceCode === 'All') {\\n displayFilterValues('ALL', '');\\n showAllNews();\\n return;\\n }\\n\\n displayFilterValues('SOURCE -', sourceName)\\n\\n const url = 'news/bySource/' + sourceCode + '?socketId=' + getSocketId();\\n displayNewsInfo(url, sourceCode);\\n}\",\n \"function SP_SetRelatedRecords()\\n{\\n\\tvar oSourceLinks = document.getElementById(\\\"mastercontrol.links.source\\\");\\n\\tvar stepNum = document.getElementById(\\\"mastercontrol.route.stepnumber\\\").value*1;\\n\\tvar formStatus = document.getElementById(\\\"mastercontrol.hidden.event\\\").value.toLowerCase();\\n\\t// Disabled it as per bug 43859\\n\\tSP_PerformAction(\\\"mastercontrol.task.parentformid\\\",\\\"readonly\\\",true);\\n\\t\\n\\tif(oSourceLinks.length > 0)\\n\\t{\\n\\t\\tdocument.getElementById(\\\"mastercontrol.task.parentformid\\\").parentNode.style.width = \\\"270px\\\";\\n\\t\\tSP_RemoveClass(document.getElementById(arguments[2]),'hide');\\n\\t\\tdocument.getElementById(\\\"mastercontrol.links.view.source\\\").disabled = false;\\n\\t\\tSP_PerformAction(arguments[0]+\\\",\\\"+arguments[1]+\\\",\\\"+\\\"mastercontrol.task.parentformid\\\",\\\"disabled\\\",true);\\n\\t}\\n\\telse if(oSourceLinks.length == 0 && (stepNum == 1 || formStatus == \\\"prepopulate\\\" || formStatus == \\\"editform\\\")) \\n\\t{\\n\\t\\tSP_PerformAction(arguments[0]+\\\",\\\"+arguments[1],\\\"disabled\\\",false);\\n\\t\\tSP_PerformAction(arguments[0]+\\\",\\\"+arguments[1],\\\"readonly\\\",false);\\n\\t}\\n\\telse\\n\\t{\\n\\t\\tSP_PerformAction(arguments[0]+\\\",\\\"+arguments[1]+\\\",\\\"+\\\"mastercontrol.task.parentformid\\\",\\\"disabled\\\",true);\\n\\t}\\n}\",\n \"viewThisInvoice() { FlowRouter.go('invoice', { invoiceId: this.props.invoice._id } ) }\",\n \"function initiateSourceDetailsByManager() {\\n\\n\\t\\tvm.sourceData.startDateTime = moment().subtract(1, 'months').format(\\\"MM-DD-YYYY\\\");\\n\\t\\tvm.sourceData.endDateTime = moment(2359, 'HH:mm').format(\\\"MM-DD-YYYY\\\");\\n\\t\\tAPIFactory.getSystemList(function (response) {\\n\\t\\t\\tif (response.status) {\\n\\t\\t\\t\\tvm.sourceDetailsList = response.data;\\n\\t\\t\\t\\t$scope.searchKeyClickedOnScreen = false;\\n\\t\\t\\t\\tsetTimeout(function () {\\n\\t\\t\\t\\t\\t$(\\\"#sourceTargetSystems\\\").select2()\\n\\n\\t\\t\\t\\t\\t$(\\\"#sourceTargetSystems\\\").on(\\\"select2:select\\\", function (evt) {\\n\\t\\t\\t\\t\\t\\t$scope.selectedSystems = $(\\\"#sourceTargetSystems\\\").select2(\\\"val\\\")\\n\\t\\t\\t\\t\\t\\tinitTargetSystemFieldByManager()\\n\\t\\t\\t\\t\\t})\\n\\t\\t\\t\\t\\t$(\\\"#sourceTargetSystems\\\").val(\\\"0\\\").trigger(\\\"change\\\")\\n\\n\\t\\t\\t\\t\\t$scope.selectedSystems = [\\\"0\\\"]\\n\\t\\t\\t\\t\\tinitTargetSystemFieldByManager()\\n\\t\\t\\t\\t\\t$(\\\"#sourceTargetSystems\\\").on(\\\"select2:unselect\\\", function () {\\n\\t\\t\\t\\t\\t\\t$scope.selectedSystems = $(\\\"#sourceTargetSystems\\\").select2(\\\"val\\\")\\n\\t\\t\\t\\t\\t\\t$scope.selectedSystems = $scope.selectedSystems ? $scope.selectedSystems : []\\n\\t\\t\\t\\t\\t\\tif ($scope.selectedSystems.indexOf(\\\"0\\\") < 0) {\\n\\t\\t\\t\\t\\t\\t\\t_.each(vm.sourceDetailsList, function (sObj) {\\n\\t\\t\\t\\t\\t\\t\\t\\t$(\\\"#sourceTargetSystems option[value='\\\" + sObj.name + \\\"']\\\").prop('disabled', false)\\n\\t\\t\\t\\t\\t\\t\\t})\\n\\t\\t\\t\\t\\t\\t\\t$(\\\"#sourceTargetSystems\\\").select2()\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tif ($scope.selectedSystems.length == 0) { // When User Unselects last selected systems\\n\\t\\t\\t\\t\\t\\t\\t$(\\\"#sourceTargetSystems option[value='0']\\\").prop('disabled', false)\\n\\t\\t\\t\\t\\t\\t\\t$(\\\"#sourceTargetSystems\\\").select2()\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t$scope.$digest()\\n\\t\\t\\t\\t\\t})\\n\\t\\t\\t\\t}, 1000)\\n\\t\\t\\t}\\n\\t\\t})\\n\\t}\",\n \"async function showSources() {\\n try {\\n const sourceObject = await networkApi('GET', baseApiKey + 'news/sources');\\n if (sourceObject.Error != null) {\\n errorMsg(sourceObject.Error);\\n errorMsg('Error Loading Sources', $('#asideSources'));\\n $('#sourcesList').html('');\\n return;\\n }\\n const htmlString = getSourceHtml(sourceObject);\\n $('#asideSources').html(htmlString);\\n generateSourceList(sourceObject);\\n }\\n catch (err) {\\n return errorMsg('Error retrieving sources from server.');\\n }\\n}\",\n \"function linkSource(){\\n //link to source\\n $('#field_div_id_'+(fieldSet-1)+'_subject').autocomplete({\\n source: searchIndex,\\n autoFocus:true\\n });\\n $('#field_div_id_'+(fieldSet-1)+'_year').autocomplete({\\n source: years,\\n autoFocus:true\\n });\\n\\n\\n $('#add-fav-field').autocomplete({\\n source: searchIndex,\\n autoFocus:true\\n });\\n\\n $('#from-year').autocomplete({\\n source: years,\\n autoFocus:true\\n });\\n\\n $('#to-year').autocomplete({\\n source: years,\\n autoFocus:true\\n });\\n\\n\\n $('#bulk_year').focusin(function(e){\\n $('#quick_year_selector').slideDown();\\n });\\n\\n\\n $('#field_div_id_' + (fieldSet-1) + '_year').on('keydown',function(e){\\n var keyCode = e.keyCode || e.which;\\n if (keyCode == 9){\\n //Tab pressed\\n addField();\\n }\\n });\\n\\n\\n\\n}\",\n \"function goToSelection() {\\n window.location = selectedHref;\\n }\",\n \"function setGoToData(){\\n\\n\\t\\t\\t$scope.goToData.links.push({type: 'brand id', namePath: 'id', sref: 'spa.brand.brandEdit', paramKey: 'brandId', paramPath: 'id'});\\n\\t\\t\\tif(hasAccountsPermissions) $scope.goToData.links.push({type: 'account', namePath: 'relationsBag.parents.account.name', sref: 'spa.account.accountEdit', paramKey: 'accountId', paramPath: 'relationsBag.parents.account.id'});\\n\\t\\t\\tif(hasAdvertisersPermissions) $scope.goToData.links.push({type: 'advertiser', namePath: 'relationsBag.parents.advertiser.name', sref: 'spa.advertiser.advertiserEdit', paramKey: 'advertiserId', paramPath: 'relationsBag.parents.advertiser.id'});\\n\\t\\t\\tif(hasCampaignsPermissions) $scope.goToData.links.push({type: 'campaigns', namePath: 'relationsBag.children.campaigns.count', sref: 'spa.brand.campaigns', paramKey: 'brandId', paramPath: 'id'});\\n\\n\\t\\t\\t$scope.goToData.actions.splice(0, 0, { name: 'New Brand', func: newBrand});\\n\\t\\t\\t$scope.goToData.actions.splice(1, 0, { name: 'Delete', func: deleteEntity});\\n\\t\\t}\",\n \"function cancelForm() { switchToView('listing'); }\",\n \"function redirectSearches(){\\r\\n\\t\\r\\n\\tvar searchList = getUrlParameter(\\\"search\\\");\\r\\n\\tvar eventAddress = getUrlParameter(\\\"event\\\");\\r\\n\\tvar isManual = getUrlParameter(\\\"manual\\\");\\r\\n\\t\\r\\n\\t\\r\\n\\t//Nearby Search\\r\\n\\tif (searchList != undefined && eventAddress == undefined){\\r\\n\\t\\tsearchMap(searchList,false);\\r\\n\\t}\\r\\n\\t\\r\\n\\t//Address Search\\r\\n\\tif (searchList != undefined && searchList != \\\"None Given\\\" && eventAddress == \\\"true\\\"){\\r\\n\\t\\tsearchMap(searchList,true);\\r\\n\\t}\\r\\n\\t\\r\\n\\t//Manual Lists\\r\\n\\tif (searchList != undefined && eventAddress == undefined && isManual ==\\\"true\\\"){\\r\\n\\t\\tgetList(searchList);\\r\\n\\t}\\r\\n\\t\\r\\n\\t//Load Address Book\\r\\n\\t//loadAddressList(); Thynote: on click for tab now \\r\\n}\",\n \"function openlist() {\\n $state.go(vm.baseState.name);\\n }\",\n \"function changeSource() {\\n if (event) {\\n\\t if (event.target.innerText==\\\"Feedr\\\") {\\n\\t \\tsourceName = sourceNames[0];\\n\\t } else {\\n\\t \\tsourceName = event.target.innerText;\\n\\t }\\n }\\n document.getElementById(\\\"sourceName\\\").innerHTML = sourceName;\\n if (dataCache[sourceName]) {\\n \\tfor (var i=0; i> Wunderlist Navigator shortcut clicked');\\n $(Config.LIST_SWITCHER).show();\\n $(Config.LIST_INPUT).focus();\\n var lists = [];\\n $(Config.LIST_LINKS).each(function (index, element) {\\n var list = {};\\n var $this = $(this);\\n list.href = $this.attr('href');\\n list.title = $this.find('.title').text();\\n lists.push(list);\\n });\\n allLists = lists;\\n populateLists(lists);\\n }\",\n \"Navigate(_, src) {\\n if (src.tab && src.tab.id) {\\n onTabUpdate(src.tab.id, src.tab);\\n }\\n }\",\n \"function navigate(){\\n const viewerBtn = document.getElementById('viewerBtn');\\n const editorBtn = document.getElementById('editorBtn');\\n \\n viewerBtn.addEventListener('click',function(){\\n window.location.href= \\\"./viewer.html\\\";\\n });\\n\\n editorBtn.addEventListener ('click',function(){\\n window.location.href=\\\"./editor.html\\\"\\n });\\n}\",\n \"function goToForm() {\\n history.push('/form');\\n }\",\n \"function getAllSources() {\\r\\n\\t$.ajax({\\r\\n\\t\\ttype: \\\"GET\\\",\\r\\n\\t\\turl: \\\"/getAllSources\\\",\\r\\n\\t\\tsuccess: function(response) {\\r\\n\\t\\t\\tsources = response[\\\"sources\\\"]\\r\\n\\t\\t\\taddSourcesToView(sources)\\r\\n\\t\\t},\\r\\n\\t\\terror: function(chr) {\\r\\n\\t\\t \\tconsole.log(\\\"Error!\\\")\\r\\n\\t\\t}\\r\\n\\t});\\r\\n}\",\n \"viewMeta() { FlowRouter.go('invoiceMeta', { invoiceId: this.props.invoice._id } ) }\",\n \"viewMeta() { FlowRouter.go('invoiceMeta', { invoiceId: this.props.invoice._id } ) }\",\n \"loadSelections() {\\n this.$state.go('textStorageRoot.selectionList', {\\n topic: this.currentTopic,\\n domain: this.currentDomain\\n });\\n }\",\n \"function _resetDestination(){\\n displayInfo.searchLocation = null;\\n displayInfo.eventInformation = null;\\n _removeRoutes();\\n clearVenues();\\n displayInfo.pagination=null;\\n $(\\\"#moreGoogle\\\").addClass(\\\"ui-disabled\\\");\\n $(\\\"#moreGoogleMain\\\").hide();\\n $(startingLocation2.inputfield.name).next().trigger(\\\"click\\\");\\n resetInputField(startingLocation2);\\n}\",\n \"link() {\\n this._locations = this._sbolDocument.lookupURIs(this._locations);\\n this._component = this._sbolDocument.lookupURI(this._component);\\n }\",\n \"onChangeSource(e) {\\n\\t\\tthis.props.onChangeSource(e.target.value);\\n\\t}\",\n \"onClick() {\\n this.wizard.goToStep(this.destinationStep, this.preFinalize, this.postFinalize);\\n }\",\n \"beforeEnter(to, from, next) {\\n if (store.getters.userIsMultiFacilityAdmin) {\\n next({ name: 'AllFacilitiesPage', replace: true });\\n } else {\\n next({ name: 'CoachClassListPage', replace: true });\\n }\\n }\",\n \"function candidateList() {\\n history.push(\\\"/CandidateListAdmin\\\");\\n }\",\n \"function navSubmitClick(evt) {\\n evt.preventDefault();\\n console.debug(\\\"navSubmitClick\\\", evt);\\n navAllStories();\\n $newStoryForm.show();\\n}\",\n \"[enterHandler]() {\\n if (this.suggestionsOpened) {\\n return;\\n }\\n ArcNavigationEvents.navigateExternal(this, this.value, {\\n purpose: this.purpose,\\n });\\n this.opened = false;\\n }\",\n \"function browsePage(e) {\\n if (e && e.preventDefault) \\n e.preventDefault();\\n\\n var view = '

Pick a script from the left to view it here.

';\\n\\n highlightNav('#browse-page');\\n\\n $('#script-view').html(view);\\n\\n pushState({\\n 'activeNav': '#browse-page',\\n 'scriptView': view,\\n 'view': 'list scripts'\\n }, 'list scripts', '#');\\n }\",\n \"function redirectToPhysioExperts() {\\n\\t\\t\\t$state.go(\\\"homepages.physioexperts\\\");\\n\\t\\t}\",\n \"function frmPatientSummary_openAdditionalCPGLinks(){\\n var selectedIndices = frmPatientSummary.segadditionalcpglinks.selectedIndices; \\n kony.print(\\\"selectedIndex: -------->>>> \\\"+JSON.stringify(selectedIndices[0][1][0]));\\n var selectedIndex = selectedIndices[0][1][0];\\n CPG_Links.fileName=\\\"\\\";\\n CPG_Links.fileName=patientSummaryObjects.CPGLinks[selectedIndex+1];\\n var link = MF_CONSTANTS.CLOUD_URL+\\\"/\\\"+CPG_Links.pdfLink+\\\"=\\\"+CPG_Links.fileName;\\n kony.print(\\\"CPG link ---->>>\\\" +link);\\n com.healogics.patientSummary.openCPGLink(link);\\n}\",\n \"function initEvents() {\\n\\t\\t\\tselectElement.on(\\\"change\\\", function () {\\n\\t\\t\\t\\tif ($(this).val() !== \\\"\\\") {\\n\\t\\t\\t\\t\\tlocation.href = $(this).val();\\n\\t\\t\\t\\t}\\n\\t\\t\\t});\\n\\t\\t}\",\n \"function onNewDestinationBtnClick() {\\n modelGeolocation.setDestinationPosition();\\n uiDestination.show({\\n mapMode: uiDestination.isMapModeActive()\\n });\\n }\",\n \"openOptionScreen() {\\n NavigationService.navigate('FilterPrechecklist', {\\n getOptionData: this.getOptionData.bind(this),\\n onChange: this.onChange.bind(this),\\n selectItem: this.state.selectItem,\\n selectDate: this.state.selectDate\\n });\\n }\",\n \"next(source) {\\n this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source);\\n }\",\n \"function visSingleView() {\\n console.log(\\\"visSingleView\\\");\\n //add history.back();\\n //Konstant der bestemmer window.location.search\\n //Konstant der definerer en unik egenskab (her fx. navn).\\n //Konstant der definerer URL til json\\n //Andre lokale variabler\\n //opret en klon med alle info fra json og sæt ind på siden vha textContent, link til billede + alt.\\n}\",\n \"function mercClicked() {\\n\\twindow.location = '/M152_Autokonfigurator/AuswahlMercedes.html';\\n}\",\n \"function goToPage($this){\\n if($this.val() !== null){document.location.href = $this.val()}\\n }\",\n \"function goToPage($this){\\n if($this.val() !== null){document.location.href = $this.val()}\\n }\",\n \"function initialDisplay() {\\n \\tcountLinks();\\n \\tgetDropDowns();\\n \\tgetList(\\\"id\\\");\\n }\",\n \"function setUrl(e) {\\n\\n\\n let source = document.getElementById(\\\"search-box\\\").value;\\n\\n let newHead = new History(head, source, null);\\n head.next = newHead;\\n head = newHead;\\n let elements = document.getElementsByClassName(\\\"pane-iframe\\\")\\n for (let elem of elements) {\\n elem.src = source;\\n }\\n console.log(head);\\n}\",\n \"function handleShipToAddress() {\\n differentStorePickup = false;\\n $.next_button.setTitle(_L('Next'));\\n}\",\n \"function linkStudentCompose(fWhere) {\\r\\n setUpLinkBackJSON(fWhere);\\r\\n window.location.href = \\\"studentCompose.html\\\";\\r\\n}\",\n \"function linkAdminCompose(fWhere) {\\r\\n setUpLinkBackJSON(fWhere);;\\r\\n window.location.href = \\\"adminCompose.html\\\";\\r\\n}\",\n \"function onEdit() {\\n setNav(0);\\n }\",\n \"function onSelectGeneratorSite(obj){\\n\\tvar controller = View.controllers.get(\\\"defWasteGeneratorController\\\");\\n\\tvar treePanel = View.panels.get(\\\"abWasteDefGeneratorsSiteTree\\\");\\n\\t// get clicked site code and store it to controller’s variable curTreeNode\\n\\tcontroller.curTreeNode=treePanel.lastNodeClicked;\\n\\tcontroller.curTreeNode.expand();\\n\\t//Set addNew button enabled\\n\\ttreePanel.actions.get(\\\"addNew\\\").enable(true);\\n}\",\n \"function _showPreviousPage() {\\n var listDoneConnectors = DataSourcesHelper.getDoneConnectors(graphInfo.connectorType);\\n if (listDoneConnectors.length > 0)\\n RightMenu.showRightMenu(Pages.addSerieConnectorsStep, listDoneConnectors);\\n }\",\n \"navigateToClinicPage() {\\n return this._navigate(this.buttons.clinic, 'clinicPage.js');\\n }\",\n \"function setGoToData(){\\n\\t\\t\\t//set links array\\n\\t\\t\\t$scope.goToData.links.push({type: 'user id', namePath: 'id', sref: 'spa.user.userEdit', paramKey: 'userId', paramPath: 'id'});\\n\\t\\t\\tif(hasAccountsPermissions) $scope.goToData.links.push({type: 'account', namePath: 'accountName', sref: 'spa.account.accountEdit', paramKey: 'accountId', paramPath: 'accountId'});\\n\\t\\t\\t//$scope.goToData.links.push({type: 'permissions', namePath: 'id', sref: 'spa.user.userPermissions', paramKey: 'userId', paramPath: 'id'});\\n\\n\\t\\t\\t//due to the fact that HISTORY action was already added by entityLayout.js, needs to reorder the actions and add HISTORY to be last\\n\\t\\t\\t//set actions array\\n\\t\\t\\t$scope.goToData.actions.splice(0, 0, {name: 'New User', func: addNewUser});\\n\\t\\t\\t$scope.goToData.actions.splice(1, 0, {name: 'Delete', func: deleteEntity});\\n\\t\\t}\",\n \"onSelect(event) {\\n window.location.href = event.value;\\n }\",\n \"function linkAreaSwitch(status) {\\n // remove all pre-link attribute (mark as \\\"link will be added\\\")\\n clearSetElement(\\\"[\\\" + setdatalink + \\\"]:not([href])\\\");\\n jQTE.find(\\\"[\\\" + setdatalink + \\\"][href]\\\").removeAttr(setdatalink);\\n\\n if (status) {\\n toolbar.data(\\\"linkOpened\\\", true);\\n linkform.show();\\n }\\n else {\\n toolbar.data(\\\"linkOpened\\\", false);\\n linkform.hide();\\n }\\n\\n linktypeSwitch();\\n }\",\n \"function goToAccRec() {\\n $('#peInvoiceInformation').show();\\n $('#invoiceInformation').hide();\\n $('#financialSection').show();\\n updatePricingInfo();\\n fillPeInvsTable(DATA);\\n}\",\n \"function onTargetOriginClick() {\\n console.log(\\\"Clicked onTargetOriginClick\\\");\\n // update the UI\\n w3.toggleClass('#targetOrigin', 'w3-red');\\n w3.removeClass('#targetChildren', 'w3-red');\\n w3.removeClass('#targetWomen', 'w3-red');\\n w3.removeClass('#targetLGTBIQ', 'w3-red');\\n // toggle this filter and disable the others\\n targetOrigin = !targetOrigin;\\n targetChildren = false;\\n targetWomen = false;\\n targetLGTBIQ = false;\\n // trigger the find operation\\n findLocationsInDatabase(\\\"FILTER\\\", -1);\\n}\",\n \"changeSource(source) {\\n\\t\\tthis.info.source = source\\n\\t\\tthis.config.source = source\\n\\t}\",\n \"onSourceButtonClick() {\\n let previousCommentBox = this.representedHTMLElement.querySelector(\\\".at_commentfield\\\");\\n if (previousCommentBox) {\\n previousCommentBox.parentNode.removeChild(previousCommentBox);\\n }\\n new RoKA.CommentField(this, this.commentObject.body);\\n }\",\n \"function changeSourceRecordFK() {\\r\\n\\r\\n if (getObjectValue(\\\"listDisplayed\\\") == 'Y') {\\r\\n if (isChanged || isPageDataChanged()) {\\r\\n if (!confirm(ciDataChangedConfirmation)) {\\r\\n setObjectValue(\\\"phoneNumber_sourceRecordFK\\\", getObjectValue(\\\"currentSourceRecordFK\\\"));\\r\\n return;\\r\\n }\\r\\n }\\r\\n }\\r\\n setObjectValue(\\\"process\\\", \\\"loadPhoneList\\\");\\r\\n submitFirstForm();\\r\\n\\r\\n}\",\n \"function onNavLinkClick(evt) {\\n \\n if(evt.target.id==\\\"nav-submit\\\"){\\n $addStoryForm.show();\\n }\\n if(evt.target.id==\\\"nav-favorites\\\"){\\n hidePageComponents();\\n compileFavorites();\\n }\\n if(evt.target.id==\\\"nav-my-stories\\\"){\\n hidePageComponents();\\n displayMyStories();\\n }\\n}\",\n \"onNavigate (routeData) {\\n this.channel.trigger('before:navigate', routeData.linked)\\n\\n routeData.linked.show(routeData.params)\\n .then(() => {\\n this.channel.trigger('navigate', routeData.linked)\\n })\\n .catch((error) => {\\n console.error(error)\\n this.channel.trigger('error')\\n })\\n }\",\n \"handleViewDetailsClick() {\\n this[NavigationMixin.Navigate]({\\n type: 'standard__recordPage',\\n attributes: {\\n recordId: this.location.Id,\\n objectApiName: LOCATION_OBJECT.objectApiName,\\n actionName: 'view'\\n }\\n });\\n }\",\n \"prepareTourUrl() {\\n let code = this.createTourCodeUrl();\\n document.getElementById(\\\"resultBox\\\").textContent = code;\\n document.getElementById(\\\"resultBox\\\").select();\\n }\",\n \"gotoListPage() {\\n goto.route('/snippets');\\n }\",\n \"function sendTo(e, url) {\\n\\n var label, text, model;\\n\\n e.preventDefault();\\n e.stopPropagation();\\n\\n hideCategoryNav();\\n\\n text = /build/gi.test(e.target.textContent) ? \\\"Build Your Lexus\\\" : e.target.textContent;\\n label = e.target.getAttribute(\\\"data-label\\\") || \\\"Category not found\\\";\\n model = e.target.getAttribute(\\\"data-model\\\") || \\\"Model data not found\\\";\\n\\n if (typeof fireTag === \\\"function\\\") {\\n onGlobalNavModelClick(\\\"Model Flyout\\\", \\\"CTA Click\\\", label, text, model);\\n }\\n\\n window.location.href = url;\\n }\",\n \"function gotoForm() {\\n toggleForm();\\n }\",\n \"function goToDesEditPage() {\\n $('#dest_name').val(window.deliveryRecord.item.object.location_name);\\n $('#dest_number').val(window.deliveryRecord.item.object.location_number);\\n $('#dest_address').val(window.deliveryRecord.item.object.address);\\n $('#dest_city').val(window.deliveryRecord.item.object.city);\\n $('#dest_state').val(window.deliveryRecord.item.object.state);\\n $('#dest_zip').val(window.deliveryRecord.item.object.zip);\\n $('#dest_contact').val(window.deliveryRecord.item.object.contact);\\n $('#dest_phone').val(window.deliveryRecord.item.object.phone);\\n $('#dest_email').val(window.deliveryRecord.item.object.email);\\n $('#dest_cell').val(window.deliveryRecord.item.object.cell);\\n $('textarea#dest_notes').val(window.deliveryRecord.item.object.location_notes);\\n $('#dest_id').val(window.deliveryRecord.item.object.id);\\n }\",\n \"onChangeSource(newSourceName) {\\n\\t\\tvar sources = this.props.sources;\\n\\n\\t\\tfor(let source in sources) {\\n\\n\\t\\t\\tlet sourceName = sources[source].sourceName;\\n\\n\\t\\t\\tif(sourceName === newSourceName) {\\n\\n\\t\\t\\t\\tthis.setState({\\n\\t\\t\\t\\t\\tcurrentSource: sources[source],\\n\\t\\t\\t\\t\\tcurrentCategory: sources[source].categories[0]\\n\\t\\t\\t\\t});\\n\\n\\t\\t\\t}\\n\\n\\t\\t}\\n\\t}\",\n \"function View_Change() {\\nstrURL = document.getElementById('cmbEntityViews').value;\\nwindow.location.assign(strURL);\\n}\",\n \"onClickAdvanced() {\\n location.hash = '/content/json/' + this.model.id;\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.6332267","0.6285641","0.6214845","0.5970011","0.59195775","0.5869389","0.57146233","0.57079005","0.56988704","0.5688389","0.56698614","0.56232893","0.5587865","0.55839837","0.5567961","0.55326587","0.55229205","0.5460215","0.5429348","0.5410348","0.54040086","0.53922343","0.53648347","0.5361134","0.5348661","0.5348661","0.5346135","0.53223795","0.53134227","0.5313357","0.52947444","0.528114","0.5266438","0.52465314","0.5235615","0.5216647","0.5211965","0.5201834","0.51891035","0.5167695","0.5159835","0.5137654","0.5136378","0.5134823","0.51249224","0.51123226","0.5111486","0.5105498","0.51051456","0.5102323","0.5093127","0.5093127","0.5090351","0.5087115","0.5061981","0.5058273","0.50519276","0.50258857","0.50254995","0.5024723","0.50227493","0.50217557","0.50149095","0.5014111","0.5001037","0.49975306","0.4995239","0.49914265","0.49862567","0.49860483","0.49854445","0.49854445","0.49794462","0.49726817","0.49716282","0.49674976","0.49670017","0.49624604","0.49581572","0.49501678","0.49479255","0.49403757","0.49381888","0.49344125","0.4933988","0.49325413","0.49290535","0.4925969","0.49239987","0.49226","0.49197638","0.49124318","0.49051672","0.49043396","0.49028447","0.48959944","0.48913747","0.4889907","0.48835295","0.4880188"],"string":"[\n \"0.6332267\",\n \"0.6285641\",\n \"0.6214845\",\n \"0.5970011\",\n \"0.59195775\",\n \"0.5869389\",\n \"0.57146233\",\n \"0.57079005\",\n \"0.56988704\",\n \"0.5688389\",\n \"0.56698614\",\n \"0.56232893\",\n \"0.5587865\",\n \"0.55839837\",\n \"0.5567961\",\n \"0.55326587\",\n \"0.55229205\",\n \"0.5460215\",\n \"0.5429348\",\n \"0.5410348\",\n \"0.54040086\",\n \"0.53922343\",\n \"0.53648347\",\n \"0.5361134\",\n \"0.5348661\",\n \"0.5348661\",\n \"0.5346135\",\n \"0.53223795\",\n \"0.53134227\",\n \"0.5313357\",\n \"0.52947444\",\n \"0.528114\",\n \"0.5266438\",\n \"0.52465314\",\n \"0.5235615\",\n \"0.5216647\",\n \"0.5211965\",\n \"0.5201834\",\n \"0.51891035\",\n \"0.5167695\",\n \"0.5159835\",\n \"0.5137654\",\n \"0.5136378\",\n \"0.5134823\",\n \"0.51249224\",\n \"0.51123226\",\n \"0.5111486\",\n \"0.5105498\",\n \"0.51051456\",\n \"0.5102323\",\n \"0.5093127\",\n \"0.5093127\",\n \"0.5090351\",\n \"0.5087115\",\n \"0.5061981\",\n \"0.5058273\",\n \"0.50519276\",\n \"0.50258857\",\n \"0.50254995\",\n \"0.5024723\",\n \"0.50227493\",\n \"0.50217557\",\n \"0.50149095\",\n \"0.5014111\",\n \"0.5001037\",\n \"0.49975306\",\n \"0.4995239\",\n \"0.49914265\",\n \"0.49862567\",\n \"0.49860483\",\n \"0.49854445\",\n \"0.49854445\",\n \"0.49794462\",\n \"0.49726817\",\n \"0.49716282\",\n \"0.49674976\",\n \"0.49670017\",\n \"0.49624604\",\n \"0.49581572\",\n \"0.49501678\",\n \"0.49479255\",\n \"0.49403757\",\n \"0.49381888\",\n \"0.49344125\",\n \"0.4933988\",\n \"0.49325413\",\n \"0.49290535\",\n \"0.4925969\",\n \"0.49239987\",\n \"0.49226\",\n \"0.49197638\",\n \"0.49124318\",\n \"0.49051672\",\n \"0.49043396\",\n \"0.49028447\",\n \"0.48959944\",\n \"0.48913747\",\n \"0.4889907\",\n \"0.48835295\",\n \"0.4880188\"\n]"},"document_score":{"kind":"string","value":"0.5400241"},"document_rank":{"kind":"string","value":"21"}}},{"rowIdx":217,"cells":{"query":{"kind":"string","value":"Reads the data entered in the source form and saves it, leading to the staff form afterwards."},"document":{"kind":"string","value":"function createSource(){\n var composer = document.getElementById(\"composer\").value;\n var title = document.getElementById(\"title\").value;\n var location = document.getElementById(\"location\").value;\n var ownership = document.getElementById(\"ownership\").value;\n var date = document.getElementById(\"date\").value;\n var publicationstatus = document.getElementById(\"publicationstatus\").value;\n var medium = document.getElementById(\"medium\").value;\n var x = document.getElementById(\"x\").value;\n var y = document.getElementById(\"y\").value;\n var unit = document.getElementById(\"unit\").value;\n var condition = document.getElementById(\"condition\").value;\n var extent = document.getElementById(\"extent\").value;\n var language = document.getElementById(\"language\").value;\n var handwriting = document.getElementById(\"handwriting\").value;\n \n currentSource = new Source(composer, title, location, ownership, date, publicationstatus, medium, x, y, unit, condition, extent, language, handwriting);\n \n sources.push(currentSource);\n \n if(isChangingSources){\n for(i = 0; i < syllables.length; i++){\n for(var j = 0; j < syllables[i].neumes.length; j++){\n if(Array.isArray(syllables[i].neumes[j])){\n var neumeVariation = new NeumeVariation(currentSource.id);\n syllables[i].neumes[j].push(neumeVariation);\n }\n else{\n for(var l = 0; l < syllables[i].neumes[j].pitches.length; l++){\n if(Array.isArray(syllables[i].neumes[j].pitches[l])){\n var variation = new Variation(currentSource.id);\n syllables[i].neumes[j].pitches[l].push(variation);\n }\n }\n }\n }\n }\n document.getElementById(\"input\").innerHTML = sourceDataChangeForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = sourceForm();\n }\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function applyCurrentSource(){\n currentSID = document.getElementById(\"source\").value;\n document.getElementById(\"input\").innerHTML = sourceDataChangeForm();\n}","function copyStorageToForm() {\n \"use strict\";\n // Set chosen hair type\n setFormHairType(sessionStorage.getItem(\"hair_type\"));\n\n // Set selected traits\n setFormTraits(sessionStorage.getItem(\"traits\"));\n}","function getForm() {\n inputNombre.value = localStorage.getItem('nombre');\n inputApellido.value = localStorage.getItem('apellido');\n inputTel.value = localStorage.getItem('tel');\n inputDir.value = localStorage.getItem('dir');\n inputObs.value = localStorage.getItem('obs');\n console.log('data loaded');\n}","function toChangeSourceData(){\n isChangingSources = true;\n if(sources.length > 0){\n currentSID = sources[0].id;\n }\n document.getElementById(\"input\").innerHTML = sourceDataChangeForm();\n}","function getAndProcessData() { \n\t\tchooseFileSource();\n\t}","function postToSource() {\n // clear unnecessary tags when editor view empty\n var sourceStrings = editor.text() == \"\" && editor.html().length < 12 ? \"\" : editor.html();\n var value = extractToText(sourceStrings);\n thisElement.val(value);\n }","function save() {\n $editors.find('.text').each(function () {\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\n });\n }","function toSources(){\n document.getElementById(\"input\").innerHTML = sourceForm();\n}","function readform__(formID) {\r\n\tvar formData = null;\r\n\t// alert(\"force edit:\" + forceEdit);\r\n\t//Prefilling dropdowns\r\n\t$('select[cdata=\"catalyst\"]').each(function() {\r\n\r\n\t\tif ($(this).attr('sourcepath') && $(this).attr('datapath')) {\r\n\r\n\t\t\tif ($(this).attr('linkedfields') || ($(this).attr('linkedfields') == null && $(this).attr('linkedto') == null)) {\r\n\r\n\t\t\t\tvar tempJSON = JSON.parse(JSON.stringify(readMasterJson($(this).attr('sourcepath'))));\r\n\t\t\t\tvar curSelect = $(this);\r\n\t\t\t\t// alert(JSON.stringify(tempJSON));\r\n\t\t\t\t$.each(eval('tempJSON.' + curSelect.attr('datapath')), function(i, item) {\r\n\t\t\t\t\t// alert(item.field[0].values.value);\r\n\t\t\t\t\t// debugger;\r\n\t\t\t\t\t//Loop to get rowid \r\n\t\t\t\t\tvar _rowid = 0;\r\n\t\t\t\t\tfor (var k = 0; k < item.field.length; k++) {\r\n\t\t\t\t\t\tif (item.field[k].name == \"rowid\") {\r\n\t\t\t\t\t\t\t//curSelect.append('');\r\n\t\t\t\t\t\t\t// alert(\"Added:\" + item.field[i].values.value);\r\n\t\t\t\t\t\t\t_rowid = item.field[k].values.value;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (var k = 0; k < item.field.length; k++) {\r\n\t\t\t\t\t\tif (item.field[k].name == curSelect.attr(\"id\")) {\r\n\t\t\t\t\t\t\tcurSelect.append('');\r\n\t\t\t\t\t\t\t// alert(\"Added:\" + item.field[i].values.value);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\t// debugger;\r\n\t\t\tif ($(this).attr('linkedfields')) {\r\n\r\n\t\t\t\t$(this).change(function() {\r\n\t\t\t\t\t// debugger;\r\n\t\t\t\t\t$('#content').attr('style', \"opacity:1;\")\r\n\r\n\t\t\t\t\tvar curCtrl = $(this);\r\n\t\t\t\t\t$.each(eval($(this).attr('linkedfields')), function(i, item) {\r\n\t\t\t\t\t\tvar targetCtrl = $('#' + item);\r\n\t\t\t\t\t\ttargetCtrl.html('');\r\n\t\t\t\t\t\tvar opts = getRelatedValues(targetCtrl.attr('sourcepath'), curCtrl.attr(\"id\"), $('#' + curCtrl.attr('id') + ' option:selected').text(), targetCtrl.attr(\"id\"));\r\n\r\n\t\t\t\t\t\t$.each(eval(opts), function(j, itm) {\r\n\t\t\t\t\t\t\tif (targetCtrl.attr('multiselect'))\r\n\t\t\t\t\t\t\t\taddToSelectList(itm, targetCtrl);\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\ttargetCtrl.append('');\r\n\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t//fix for select2 control - Vinod \r\n\t\t\t\t\t\tif (targetCtrl.attr('multiselect') == null)\r\n\t\t\t\t\t\t\ttargetCtrl.select2();\r\n\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//alert(\"Reading\" + JSON.stringify(temp));\r\n\t});\r\n\r\n\t$('input[sourcepath][cdata=\"catalyst\"]').each(function() {\r\n\t\t//debugger;\r\n\t\tif ($(this).attr('sourcepath') && $(this).attr('datapath')) {\r\n\t\t\tvar tempJSON = JSON.parse(readMasterJson($(this).attr('sourcepath')));\r\n\t\t\tvar curInput = $(this);\r\n\t\t\t// alert(JSON.stringify(tempJSON));\r\n\t\t\t$.each(eval('tempJSON.' + curInput.attr('datapath')), function(i, item) {\r\n\t\t\t\t// alert(item.field[0].values.value);\r\n\t\t\t\t// debugger;\r\n\t\t\t\tfor (var k = 0; k < item.field.length; k++) {\r\n\t\t\t\t\tif (item.field[k].name == curInput.attr(\"id\")) {\r\n\t\t\t\t\t\t// curSelect.append('');\r\n\t\t\t\t\t\t// alert(\"Added:\" + item.field[i].values.value);\r\n\t\t\t\t\t\taddToCodeList(item.field[k].values.value, curInput);\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});\r\n\r\n\t$('div[datatype=\"select\"]').each(function() {\r\n\t\t//debugger;\r\n\t\tif ($(this).attr('linkedfields') || ($(this).attr('linkedfields') == null && $(this).attr('linkedto') == null)) {\r\n\t\t\tif ($(this).attr('sourcepath') && $(this).attr('datapath')) {\r\n\t\t\t\tvar tempJSON = JSON.parse(JSON.stringify(readMasterJson($(this).attr('sourcepath'))));\r\n\t\t\t\tvar curInput = $(this);\r\n\t\t\t\t// alert('div select ' + curInput.attr(\"id\"));\r\n\t\t\t\t$.each(eval('tempJSON.' + curInput.attr('datapath')), function(i, item) {\r\n\t\t\t\t\t// alert(item.field[0].values.value);\r\n\t\t\t\t\t// debugger;\r\n\t\t\t\t\tfor (var k = 0; k < item.field.length; k++) {\r\n\t\t\t\t\t\tif (item.field[k].name == curInput.attr(\"id\")) {\r\n\t\t\t\t\t\t\t// curSelect.append('');\r\n\t\t\t\t\t\t\t// alert(\"Added:\" + item.field[i].values.value);\r\n\t\t\t\t\t\t\taddToSelectList(item.field[k].values.value, curInput);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t// End Prefilling dropdowns\r\n\r\n\r\n\r\n\t// alert(\"before d4d\" + JSON.stringify(d4ddata));\r\n\treadMasterJson(formID);\r\n\t//alert(\"after d4d\" + JSON.stringify(d4ddata));\r\n\r\n\t/* $.each(d4ddata.sections.section, function (i, item) {\r\n\t if (item.name == formName) {\r\n\t formData = item;\r\n\t }\r\n\t });*/\r\n\r\n\r\n\t//Reading row to get schema\r\n\tvar formSchema = null;\r\n\tvar orgName = url.substr(url.indexOf(\"?\") + 1);\r\n\t// alert(orgName);\r\n\tvar editMode = false;\r\n\r\n\tformData = d4ddata.masterjson;\r\n\r\n\t//alert(\"here \" + JSON.stringify(formData) + \":\" + orgName);\r\n\r\n\t$.each(formData.rows.row, function(i, item) {\r\n\t\t// alert(item.field.length);\r\n\t\tfor (i = 0; i < item.field.length; i++) {\r\n\t\t\t// alert(typeof item.field[i].values.value);\r\n\t\t\t// alert('Expanded field ' + JSON.stringify(item.field.length) + \":\" + orgName.toLowerCase());\r\n\t\t\tif (typeof item.field[i].values.value == \"string\") {\r\n\t\t\t\tif (item.field[i].values.value.toLowerCase() == orgName.toLowerCase()) {\r\n\t\t\t\t\tformSchema = item.field;\r\n\t\t\t\t\teditMode = true;\r\n\t\t\t\t\treturn (false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tformSchema = item.field;\r\n\t});\r\n\t// alert('Edit Mode:' + editMode);\r\n\tif (forceEdit == true) {\r\n\t\teditMode = true;\r\n\t\tformSchema = formData.rows.row[0].field;\r\n\t}\r\n\tif (editMode == false) {\r\n\t\treturn (false);\r\n\t}\r\n\r\n\t//Setting the header of the form to Edit if shown as Create\r\n\tvar head = $('.widget-header').html().replace('Create', 'Edit').replace('New', 'Edit');\r\n\t$('.widget-header').html(head);\r\n\r\n\r\n\t// debugger;\r\n\t// alert('came here');\r\n\t//Read current form values with the field names\r\n\tvar formSchemaNew = formSchema;\r\n\r\n\r\n\r\n\t//Since this section is executed only in edit mode. The rowid field is injected with the rowid\r\n\t$('button[onclick*=\"saveform\"]').attr(\"rowid\", orgName);\r\n\r\n\r\n\t// alert(JSON.stringify(formData.rows.row[0].field));\r\n\r\n\t$.each(formSchemaNew, function(i, item) {\r\n\t\tvar inputC = null;\r\n\t\t$.each(item, function(k, v) {\r\n\t\t\t// alert(\"k & v:\" + k + \":\" + v);\r\n\t\t\tif (k == \"name\" && v != \"rowid\") {\r\n\t\t\t\tif (v.indexOf(\"_filename\") > 0) {\r\n\t\t\t\t\tv = v.replace('_filename', '');\r\n\t\t\t\t}\r\n\t\t\t\tinputC = $('#' + v);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\t$.each(item, function(k, v) {\r\n\t\t\tif (k == \"values\") {\r\n\t\t\t\tif (inputC && $(inputC).attr(\"id\") != undefined) {\r\n\t\t\t\t\t$.each(v, function(k1, v1) {\r\n\r\n\t\t\t\t\t\tif (inputC.getType().toLowerCase() == \"text\") {\r\n\t\t\t\t\t\t\t// alert(inputC.attr(\"datavalues\"));\r\n\t\t\t\t\t\t\tif (inputC.attr(\"datavalues\")) {\r\n\t\t\t\t\t\t\t\t//var array = v[k1].split(\",\");\r\n\t\t\t\t\t\t\t\t$.each(v[k1], function(i) {\r\n\t\t\t\t\t\t\t\t\taddToCodeList(v[k1][i]);\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\t\tinputC.val(v[k1]);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (inputC.getType().toLowerCase() == \"file\") {\r\n\t\t\t\t\t\t\t// v[k1]\r\n\t\t\t\t\t\t\t$(inputC).closest('input').next().val(v[k1]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (inputC.getType().toLowerCase() == \"select\") {\r\n\t\t\t\t\t\t\t//alert(v[k1]);\r\n\t\t\t\t\t\t\t$(inputC).val(v[k1]);\r\n\t\t\t\t\t\t\t$(inputC).attr('savedvalue', v[k1]);\r\n\t\t\t\t\t\t\t//fix for select2 type control. Expecting all select boxes to be type select2. - Vinod\r\n\r\n\t\t\t\t\t\t\t$(inputC).select2();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (inputC.getType().toLowerCase() == \"ul\") {\r\n\t\t\t\t\t\t\t// alert('in ul');\r\n\t\t\t\t\t\t\tif (v[k1].indexOf(',') >= 0) {\r\n\t\t\t\t\t\t\t\tvar itms = v[k1].split(',');\r\n\t\t\t\t\t\t\t\t$(inputC).attr('defaultvalues', v[k1]);\r\n\r\n\t\t\t\t\t\t\t\t/* for(var j = 0; j < itms.length; j++){\r\n\t\t\t\t\t\t\t\t $(inputC).append('
  • ');\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}\r\n\t\t\t\t\t\tif (inputC.getType().toLowerCase() == \"div\") {\r\n\r\n\t\t\t\t\t\t\t$(inputC).attr('savedvalue', v[k1])\r\n\t\t\t\t\t\t\t\t//Set saved values to div.\r\n\t\t\t\t\t\t\tvar ctype = '';\r\n\t\t\t\t\t\t\tvar csource = '';\r\n\t\t\t\t\t\t\tif ($(inputC).attr('ctype'))\r\n\t\t\t\t\t\t\t\tctype = $(inputC).attr('ctype');\r\n\t\t\t\t\t\t\tif ($(inputC).attr('csource'))\r\n\t\t\t\t\t\t\t\tcsource = $(inputC).attr('csource');\r\n\t\t\t\t\t\t\tvar divselect1 = v[k1].toString().split(',');\r\n\t\t\t\t\t\t\t// alert(v[k1]);\r\n\t\t\t\t\t\t\tfor (var j = 0; j < divselect1.length; j++) {\r\n\t\t\t\t\t\t\t\tif (ctype == 'list' && csource != '') {\r\n\r\n\t\t\t\t\t\t\t\t\taddToTargetList($('#' + csource).clone().val(divselect1[j]));\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (ctype == '')\r\n\t\t\t\t\t\t\t\t\tinputC.find('input[value=\"' + divselect1[j] + '\"]').trigger('click');\r\n\t\t\t\t\t\t\t\tif (ctype == 'checkbox') {\r\n\t\t\t\t\t\t\t\t\tinputC.find('input[id=\"checkbox_' + divselect1[j] + '\"]').attr('checked', 'checked');\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}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tinputC = null;\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n\t//Force clicking on selects that has dependent controls\r\n\t$('[linkedfields]').each(function() {\r\n\t\t$(this).trigger('change');\r\n\t\tvar ctrls = $(this).attr('linkedfields').replace(/'/g, \"\").replace(/]/g, \"\").replace(/\\[/g, \"\").split(',');\r\n\t\tfor (var i = 0; i < ctrls.length; i++) {\r\n\t\t\tvar ctrl = $(\"#\" + ctrls[i]);\r\n\t\t\tif (ctrl.getType() == \"select\") {\r\n\t\t\t\tctrl.val(ctrl.attr('savedvalue'));\r\n\t\t\t}\r\n\t\t\tif (ctrl.getType() == \"div\" && typeof ctrl.attr('savedvalue') != 'undefined') {\r\n\t\t\t\tvar divselect = ctrl.attr('savedvalue').split(',');\r\n\t\t\t\t// alert(divselect.length);\r\n\t\t\t\tfor (var j = 0; j < divselect.length; j++) {\r\n\t\t\t\t\tctrl.find('input[value=\"' + divselect[j] + '\"]').trigger('click');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\r\n\t// alert('almost exiting');\r\n\t//Setting the unique field with current value\r\n\t$('input[unique=\"true\"],select[unique=\"true\"]').each(function() {\r\n\t\t// alert($(this).val());\r\n\t\t$(this).attr('initialvalue', $(this).val());\r\n\t\t// alert($(this).attr('initialvalue'));\r\n\t});\r\n\treturn (true);\r\n}","inputData() {\n return (e) => {\n e.persist();\n var reader = new FileReader();\n const self = this;\n reader.onload = function(e) {\n self.parseInputData(reader.result);\n }\n reader.readAsText(e.target.files[0]);\n e.target.value = \"\";\n };\n }","function eventDSEditOnLoad() {\n var form = EventEditForm.getForm();\n form.setValues(eventDS.getAt(0).data);\n}","fillForm(data) {\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","function load() {\n let savedNotes = localStorage.getItem(\"dataNotes\");\n let savedTitle = localStorage.getItem(\"dataTitle\");\n if (savedNotes) {\n notes.value = savedNotes;\n }\n if (savedTitle) {\n notesTitle.value = savedTitle;\n headerTitleChange()\n }\n}","fillForm(data){\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","function load() {\r\n this.setContent(this.textarea.value);\r\n }","fillForm ( data ) {\n this.title.value = data.title;\n this.body.value = data.body;\n this.id.value = data.id;\n\n // change form state\n this.changeFormState( \"edit\" )\n\n }","function save() {\r\n this.textarea.value = this.content();\r\n }","function load() {\n this.setContent(this.textarea.value);\n }","saveData() {\n if (this.s.unavailable()) {\n return;\n }\n\n for (const val of this.dispField.items) {\n this.s.set(val, this.dispField.checked(val));\n }\n\n this.s.set(\"unit\", this.unitField.get());\n this.s.set(\"format\", this.formatField.get());\n this.s.set(\"sort\", this.sortableField.toArray());\n }","function setSource(aSrc) {\n\n\tdocument.getElementById('frmFacturation').hdnSource.value = aSrc;\n\tdocument.getElementById('frmFacturation').submit();\n\n}","save() {\n try {\n this._toggleSaveThrobber();\n this._readFromForm();\n this.dao.save();\n\n // make sure the edit input is showing the correct id, reload data from server\n document.getElementById('edit_id').value = this.dao.id;\n this.read();\n \n } catch(e) {\n console.log(e);\n alert(e);\n }\n this._toggleSaveThrobber();\n }","function save() {\n this.textarea.value = this.content();\n }","function goToDesEditPage() {\n $('#dest_name').val(window.deliveryRecord.item.object.location_name);\n $('#dest_number').val(window.deliveryRecord.item.object.location_number);\n $('#dest_address').val(window.deliveryRecord.item.object.address);\n $('#dest_city').val(window.deliveryRecord.item.object.city);\n $('#dest_state').val(window.deliveryRecord.item.object.state);\n $('#dest_zip').val(window.deliveryRecord.item.object.zip);\n $('#dest_contact').val(window.deliveryRecord.item.object.contact);\n $('#dest_phone').val(window.deliveryRecord.item.object.phone);\n $('#dest_email').val(window.deliveryRecord.item.object.email);\n $('#dest_cell').val(window.deliveryRecord.item.object.cell);\n $('textarea#dest_notes').val(window.deliveryRecord.item.object.location_notes);\n $('#dest_id').val(window.deliveryRecord.item.object.id);\n }","updateForm(data) {\n\t\tthis.employeeName.value = data.name;\n\t\tthis.employeeAge.value = data.age;\n\t\tthis.employeePosition.value = data.position;\n\t\tthis.employeeSalary.value = data.salary;\n\t}","function setupDataForForm(){\n if(typeof(hotty) != \"undefined\"){\n $('#import_data').val(JSON.stringify(hotty.getData()));\n console.log(\"updating the data...\");\n }\n else{\n console.log(\"hotty isnt there, maybe just booting up!\");\n }\n }","function moveToStep2(student) {\n if (student != null) {\n $('#name').val(student.name);\n $('#gender').val(student.gender);\n $('#birthday').val(student.birthday);\n $('#phone').val(student.phone);\n }\n}","function applyCurrentVarSource(){\n currentVarSourceIndex = document.getElementById(\"varsource\").value;\n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n}","function fillForm (data) {\n\t\n edit_record = data.records[0];\n\t\n\tarchive_id = edit_record['oid'];\n\tif ( /^\\d/.test(archive_id) ) archive_id = 'dar:' + archive_id;\n\t\n\tnumeric_id = archive_id;\n\tif ( /^dar:/.test(numeric_id) ) numeric_id = numeric_id.substr(4);\n\t\n\tsetInnerHTML('dar_header', \"Data Archive \" + numeric_id);\n\tsetElementValue('dar_id', archive_id);\n\tsetElementValue('dar_title', edit_record['title']);\n\tsetElementValue('dar_description', edit_record['description']);\n\tsetElementValue('dar_authors', edit_record['authors']);\n\tsetElementValue('dar_public', edit_record['is_public']);\n\t\n\tvar archive_uri = edit_record['uri_path'] + \"?\" + edit_record['uri_args'];\n\t\n\tsetElementValue('dar_uri', archive_uri);\n\t\n\tvar doi_content = '';\n\t\n\tif ( edit_record['doi'] )\n\t{\n\t doi_content = '';\n\t if ( edit_record.prm == 'admin' )\n\t\tdoi_content = doi_content + '&nbsp;';\n\t disableElement('dar_title', true);\n\t disableElement('dar_authors', true);\n\t disableElement('dar_public', true);\n\t}\n\t\n\telse\n\t{\n\t if ( edit_record.sta == 'pending' || edit_record.status == 'pending' )\n\t {\n\t\tdoi_content = 'DOI has been requested&nbsp;&nbsp;' +\n\t\t \"\";\n\t\tif ( edit_record.prm == 'admin' )\n\t\t doi_content = doi_content + \"&nbsp;\";\n\t }\n\t \n else\n\t {\n\t\tdoi_content = \"\";\n }\n\t \n\t disableElement('dar_title', false);\n\t disableElement('dar_authors', false);\n\t disableElement('dar_public', false);\n\t}\n\t\n\tsetInnerHTML('dar_doi', doi_content);\n\t\n\tsetInnerHTML('dar_fetched', edit_record['fetched']);\n\tsetInnerHTML('dar_created', edit_record['dcr']);\n\tsetInnerHTML('dar_modified', edit_record['dmd']);\n\t\n\tif ( edit_record['ent'] )\n\t{\n\t var authent = edit_record['ent'];\n\n\t if ( edit_record['ath'] && edit_record['ath'] != edit_record['ent'] )\n\t\tauthent = authent + ' (' + edit_record['ath'] + ')';\n\t \n\t setInnerHTML('dar_authent', authent);\n\t}\n }","_readFromForm() {\n this.dao.citation_id = document.getElementById('citation_id').value;\n this.dao.ott_id = document.getElementById('ott_id').value;\n this.dao.background_noise_in_decibel = document.getElementById('background_noise_in_decibel').value;\n this.dao.calibration = document.getElementById('calibration').value;\n this.dao.distance_to_sound_source_in_meter = document.getElementById('distance_to_sound_source_in_meter').value;\n this.dao.facility_id = document.getElementById('facility_id').value;\n this.dao.latitude_in_decimal_degree = document.getElementById('latitude_in_decimal_degree').value;\n this.dao.longitude_in_decimal_degree = document.getElementById('longitude_in_decimal_degree').value;\n this.dao.measurement_method_id = document.getElementById('measurement_method_id').value;\n this.dao.measurement_type = document.getElementById('measurement_type').value;\n this.dao.medium = document.getElementById('medium').value;\n this.dao.number_of_measurements = document.getElementById('number_of_measurements').value;\n this.dao.position_first_electrode = document.getElementById('position_first_electrode').value;\n this.dao.position_second_electrode = document.getElementById('position_second_electrode').value;\n this.dao.position_third_electrode = document.getElementById('position_third_electrode').value;\n this.dao.position_of_animal = document.getElementById('position_of_animal').value;\n this.dao.sedated = document.getElementById('sedated').value;\n this.dao.sedation_details = document.getElementById('sedation_details').value;\n this.dao.test_environment_description = document.getElementById('test_environment_description').value;\n this.dao.testtone_form_method_id = document.getElementById('testtone_form_method_id').value;\n this.dao.testtone_presentation_method_constants = document.getElementById('testtone_presentation_method_constants').value;\n this.dao.testtone_presentation_sound_form = document.getElementById('testtone_presentation_sound_form').value;\n this.dao.testtone_presentation_staircase = document.getElementById('testtone_presentation_staircase').value;\n this.dao.threshold_determination_method = document.getElementById('threshold_determination_method').value;\n this.dao.year_of_experiment_start = document.getElementById('year_of_experiment_start').value;\n this.dao.year_of_experiment_end = document.getElementById('year_of_experiment_end').value;\n }","fillForm(data){\n this.titleInput.value = data.title\n this.bodyInput.value = data.body\n this.idInput.value = data.id\n\n this.changeFormState('edit')\n }","function goToOriginEditPage() {\n $('#location_name').val(window.originRecord.item.object.location_name);\n $('#origin_location_number').val(window.originRecord.item.object.location_number);\n $('#location_address').val(window.originRecord.item.object.address);\n $('#location_city').val(window.originRecord.item.object.city);\n $('#location_state').val(window.originRecord.item.object.state);\n $('#location_zip').val(window.originRecord.item.object.zip);\n $('#location_contact').val(window.originRecord.item.object.contact);\n $('#location_phone').val(window.originRecord.item.object.phone);\n $('#location_email').val(window.originRecord.item.object.email);\n $('#location_cell').val(window.originRecord.item.object.cell);\n $('textarea#location_notes').val(window.originRecord.item.object.location_notes);\n $('#location_id').val(window.originRecord.item.object.id);\n }","function getFormData() {\n // User Info Obj\n const user = {\n netID: document.getElementById('netID').value,\n contact: document.getElementById('contact').value,\n location: document.getElementById('location').value,\n description: document.getElementById('issue').value,\n team: document.getElementById('team').value,\n manager: document.getElementById('managerId').value\n };\n // Get priority level selection RadioButtons\n const rbs = document.querySelectorAll('input[name=radioBtn]');\n let selectedValue;\n for (const rb of rbs) {\n if (rb.checked) {\n selectedValue = rb.value;\n break;\n }\n }\n /*Get category*/\n const category = {\n cat: document.getElementById('cat').value,\n sub: document.getElementById('sub').value\n };\n //Formatting for txt file.\n const userData =\n 'NetID: ' +\n user.netID +\n '\\n' +\n '\\n' +\n 'Contact: ' +\n user.contact +\n '\\n' +\n '\\n' +\n 'Location: ' +\n user.location +\n '\\n' +\n '\\n' +\n 'Priority: ' +\n selectedValue +\n '\\n' +\n '\\n' +\n 'Category: ' +\n category.cat +\n '\\n' +\n '\\n' +\n 'Sub-Category: ' +\n category.sub +\n '\\n' +\n '\\n' +\n 'Assignment Team: ' +\n user.team +\n '\\n' +\n '\\n' +\n 'Group Manager Contact: ' +\n user.manager +\n '\\n' +\n '\\n' +\n 'Full Description: ' +\n '\\n' +\n user.description;\n //print date\n const today = new Date();\n //save BLOB to txt file\n const blob = new Blob([userData], { type: 'text/plain;charset=utf-8' });\n saveAs(blob, today);\n //refresh page for new form\n location.reload();\n}","function startEdit() {\n document.getElementById(\"summaryDetails\").style.display=\"none\"\n document.getElementById(\"editFields\").style.display=\"block\"\n document.getElementById(\"fNameFieldEdit\").value=firstName\n document.getElementById(\"lNameFieldEdit\").value=lastName\n let giftField = document.getElementById(\"giftEdit\")\n for (let i = 0; i < giftField.options.length; i++) {\n if (giftField.options[i].text=== gift) {\n giftField.options[i].selected = true;\n break;\n }\n }\n document.getElementById(\"form1Edit\").value=occasion\n let surpriseField = document.getElementById(\"surpriseEdit\")\n for (let i = 0; i < surpriseField.options.length; i++) {\n if (surpriseField.options[i].text=== suprise) {\n surpriseField.options[i].selected = true;\n break;\n }\n }\n let typeField = document.getElementById(\"typeEdit\")\n for (let i = 0; i < typeField.options.length; i++) {\n if (typeField.options[i].text=== type) {\n typeField.options[i].selected = true;\n break;\n }\n }\n let numberMusiciansField = document.getElementById(\"numberMusiciansEdit\")\n for (let i = 0; i < numberMusiciansField.options.length; i++) {\n if (numberMusiciansField.options[i].text=== numberMusicians) {\n numberMusiciansField.options[i].selected = true;\n break;\n }\n }\n document.getElementById(\"date-time-fieldEdit\").value= dateService + \"T\" + timeService\n document.getElementById(\"address-line-fieldEdit\").value = address\n let cityField = document.getElementById(\"cityEdit\")\n for (let i = 0; i < cityField.options.length; i++) {\n if (cityField.options[i].text=== city) {\n cityField.options[i].selected = true;\n break;\n }\n}\n document.getElementById(\"zipEdit\").value = zip\n document.getElementById(\"offered-fieldEdit\").value = offered\n document.getElementById(\"phoneEdit\").value = number\n document.getElementById(\"emailEdit\").value = email\n document.getElementById(\"commentEdit\").value = comments\n}","function load_data() {\n var input = document.getElementById(\"commentName\");\n var comm = document.getElementById(\"commentText\");\n\n input.value = localStorage.getItem('Name');\n comm.value = localStorage.getItem('Comment');\n}","_save() {\n\t\tconst version = this._editor.model.document.version;\n\n\t\t// Operation may not result in a model change, so the document's version can be the same.\n\t\tif ( version === this._lastDocumentVersion ) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tthis._data = this._getData();\n\t\t\tthis._lastDocumentVersion = version;\n\t\t} catch ( err ) {\n\t\t\tconsole.error(\n\t\t\t\terr,\n\t\t\t\t'An error happened during restoring editor data. ' +\n\t\t\t\t'Editor will be restored from the previously saved data.'\n\t\t\t);\n\t\t}\n\t}","function populate() {\n $('#title').val(localStorage.getItem('title')),\n $('#description').val(localStorage.getItem('description')),\n $('#content').html(localStorage.getItem('content'));\n}","function loadSavedEmp() {\t\n\tcopyContenidoIntegradoSaved();\n\tintegratedPaymentValidation = validateSavedPaymentEmpDesktop;\n}","function fillEditForm() {\n let selectedBook = document.getElementById('selected-book')\n let titleInput = document.getElementById('title-edit-in')\n let authorInput = document.getElementById('author-edit-in')\n let genreInput = document.getElementById('genre-edit-in')\n let pagesInput = document.getElementById('pages-edit-in')\n let i = selectedBook.dataset.index\n\n titleInput.value = library[i].title\n authorInput.value = library[i].author\n genreInput.value = library[i].genre\n pagesInput.value = library[i].numPages \n}","save() {\n const newBasicBinary = trs80_base_1.parseBasicText(this.textarea.value);\n if (typeof newBasicBinary === \"string\") {\n this.showError(newBasicBinary);\n return;\n }\n const newBasicProgram = trs80_base_1.decodeBasicProgram(newBasicBinary);\n if (newBasicProgram === undefined) {\n // I don't know how this might happen.\n this.showError(\"Can't decode Basic program\");\n return;\n }\n this.trs80.loadBasicProgram(newBasicProgram);\n this.close();\n }","function storeData() {\n trainName = $(\"#Train-Name\").val();\n destinationName = $(\"#Destination-Name\").val();\n firstTrainTime = $(\"#First-Time\").val();\n trainFrequency = $(\"#Frequency\").val();\n}","function fread(){\n\tif(x.value == \"\"){\n\t\talert(\"Create a note first!!!\");\n\t}\n\telse if(document.Notes.note.value == \"\"){\n\t\talert(\"Type something!!!\");\n\t}\n\telse if(x.selectedIndex > s.length-1){\n\ts.push(document.Notes.note.value);\n\talert(\"Successfully saved\");\n\t}\n\telse {\n\t\ts[x.selectedIndex] = document.Notes.note.value;\n\t\talert(\"Successfully saved\");\n\t}\n}","function setData() {\n localStorage.setItem('name', username.value);\n localStorage.setItem('email', email.value);\n localStorage.setItem('city', city.value);\n localStorage.setItem('organisation', organisation.value);\n localStorage.setItem('contact', contact.value);\n localStorage.setItem('message', message.value);\n // Reset all the fields.\n username.value = '';\n email.value = '';\n city.value = 'city';\n organisation.value = '';\n contact.value = '';\n message.value = '';\n\n}","fillForm() {\n\n if (localStorage.getItem(\"lastname\") !== undefined)\n $(\"form\")[0].lastname.value = localStorage.getItem(\"lastname\");\n\n if (localStorage.getItem(\"firstname\") !== undefined)\n $(\"form\")[0].firstname.value = localStorage.getItem(\"firstname\");\n\n }","function addData(e) {\n // prevent default - we don't want the form to submit in the conventional way\n e.preventDefault();\n\n // grab the values entered into the form fields and store them in an object ready for being inserted into the DB\n let newItem = { title: titleInput.value, body: bodyInput.value };\n\n // open a read/write db transaction, ready for adding the data\n let transaction = db.transaction(['notes_os'], 'readwrite');\n\n // call an object store that's already been added to the database\n let objectStore = transaction.objectStore('notes_os');\n\n // Make a request to add our newItem object to the object store\n let request = objectStore.add(newItem);\n request.onsuccess = function() {\n // Clear the form, ready for adding the next entry\n titleInput.value = '';\n bodyInput.value = '';\n };\n\n // Report on the success of the transaction completing, when everything is done\n transaction.oncomplete = function() {\n console.log('Transaction completed: database modification finished.');\n\n // update the display of data to show the newly added item, by running displayData() again.\n displayData();\n };\n\n transaction.onerror = function() {\n console.log('Transaction not opened due to error');\n };\n}","function saveState() {\n const state = {\n cf: cfSelect.value,\n gf: gfSelect.value,\n mf: mfSelect.value,\n am: amSelect.value,\n };\n localStorage.setItem('collecting_together_form', JSON.stringify(state));\n }","function applySourceDataChanges(){\n var composer = document.getElementById(\"composer\").value;\n var title = document.getElementById(\"title\").value;\n var location = document.getElementById(\"location\").value;\n var ownership = document.getElementById(\"ownership\").value;\n var date = document.getElementById(\"date\").value;\n var publicationstatus = document.getElementById(\"publicationstatus\").value;\n var medium = document.getElementById(\"medium\").value;\n var x = document.getElementById(\"x\").value;\n var y = document.getElementById(\"y\").value;\n var unit = document.getElementById(\"unit\").value;\n var condition = document.getElementById(\"condition\").value;\n var extent = document.getElementById(\"extent\").value;\n var language = document.getElementById(\"language\").value;\n var handwriting = document.getElementById(\"handwriting\").value;\n \n if(composer){\n currentSource.composer = composer;\n }\n if(title){\n currentSource.title = title;\n }\n if(location){\n currentSource.location = location;\n }\n if(ownership){\n currentSource.ownership = ownership;\n }\n if(date){\n currentSource.date = date;\n }\n if(publicationstatus){\n currentSource.publicationstatus = publicationstatus;\n }\n if(medium){\n currentSource.medium = medium;\n }\n if(x){\n currentSource.x = x;\n }\n if(y){\n currentSource.y = y;\n }\n if(unit){\n currentSource.unit = unit;\n }\n if(condition){\n currentSource.condition = condition;\n }\n if(extent){\n currentSource.extent = extent;\n }\n if(language){\n currentSource.language = language;\n }\n if(handwriting){\n currentSource.handwriting = handwriting;\n }\n \n document.getElementById(\"input\").innerHTML = sourceDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","save () {\n\n // Validate\n if (this.checkValidity()) {\n\n // Collect input\n this.info.item = this.collectInput();\n\n // Show modal\n this.modal.show();\n }\n }","function afterEdit(e) {\n record = e.record;\n if (record.id == 0) {\n draft_store.load({params: {field: e.field, value: e.value}});\n } else {\n save_store.load({params: {field: e.field, id: e.record.id, value: e.value}});\n }\n }","function populateEditScreen(dataPassedIn) {\n // populating the edit screen with fillable fields\n var funnelStageHtmlOutput = '';\n funnelStageHtmlOutput += '';\n var ratingHtmlOutput = '';\n ratingHtmlOutput += '';\n\n $('#js-position-header-edit').html('');\n $('#js-company-header-edit').html('');\n for (var i = 1; i <= 6; i++) {\n if (dataPassedIn.funnelStage == i) {\n // first search for the index where i occurs\n var indx = funnelStageHtmlOutput.search(i);\n // then pass that index (+2 to account for closing double quotes and a space following)\n funnelStageHtmlOutput = funnelStageHtmlOutput.slice(0, indx + 2) + ' selected=\"selected\"' + funnelStageHtmlOutput.slice(indx + 2);\n }\n };\n $('#js-funnel-stage').html(funnelStageHtmlOutput);\n $('#js-company-overview').html('');\n $('#js-company-size').html(' employees');\n $('#js-position-location').html('');\n $('#js-salary-benefits').html('');\n $('#js-job-description').html('');\n if (dataPassedIn.applicationDate != null) {\n var dateForEditScreen = ((dataPassedIn.applicationDate).split('T'))[0];\n $('#js-application-date').html('');\n } else {\n $('#js-application-date').html('');\n };\n $('#js-contact-name').html('');\n $('#js-contact-email').html('');\n $('#js-application-materials').html('');\n if (dataPassedIn.interviewDate != null) {\n var dateForEditScreen = ((dataPassedIn.interviewDate).split('T'))[0];\n $('#js-interview-date').html('');\n } else {\n $('#js-interview-date').html('');\n };\n $('#js-interview-follow-up').html('');\n $('#js-lead-source').html('');\n $('#js-notes').html('');\n for (var i = 1; i <= 4; i++) {\n if (dataPassedIn.rating == i) {\n // first search for the index where i occurs\n var indx = ratingHtmlOutput.search(i);\n // then pass that index (+2 to account for closing double quotes and a space following)\n ratingHtmlOutput = ratingHtmlOutput.slice(0, indx + 2) + ' selected=\"selected\"' + ratingHtmlOutput.slice(indx + 2);\n }\n };\n $('#js-rating').html(ratingHtmlOutput);\n}","function applyStaffDataChanges(){\n var linecount = document.getElementById(\"linecount\").value;\n var linecolor = document.getElementById(\"linecolor\").value;\n var mode = document.getElementById(\"mode\").value;\n \n if(linecount && linecount != \"none\"){\n currentStaff.linecount = linecount;\n }\n if(linecolor && linecolor != \"none\"){\n currentStaff.linecolor = linecolor;\n }\n if(mode && mode != \"none\"){\n currentStaff.mode = mode;\n }\n document.getElementById(\"input\").innerHTML = staffDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function copyInfoToModal(emp) {\n $('#TextBoxTitle').val(emp.Title);\n $('#TextBoxFirstname').val(emp.Firstname);\n $('#TextBoxLastname').val(emp.Lastname);\n $('#TextBoxPhone').val(emp.Phoneno);\n $('#TextBoxEmail').val(emp.Email);\n $('#CheckBoxIsTech').val(emp.IsTech);\n loadDepartmentDDL(emp.DepartmentId);\n $('#HiddenId').val(emp.Id);\n $('#HiddenEntity').val(emp.Entity64);\n $('#HiddenPic').val(emp.StaffPicture64);\n}","resetFormContent() {\n ContentUtils.updateElementContent(\"delimiter\", \"?\");\n ContentUtils.updateElementContent(\"hasHeaderRow\", \"?\");\n ContentUtils.updateElementContent(\"fileSize\", 0);\n ContentUtils.updateElementContent(\"totalRecords\", 0);\n ContentUtils.updateElementContent(\"badRecords\", 0);\n ContentUtils.updateElementContent(\"inputCsvTable\", \"\");\n ContentUtils.updateElementContent(\"badCsvTable\", \"\");\n ContentUtils.updateElementContent(\"interpolatedCsvTable\", \"\");\n ContentUtils.updateElementContent(\"invalidData\", \"\");\n }","function prefill_form(){\ndocument.getElementById(\"ref\").value = localStorage.job1Ref;\ndocument.getElementById(\"jobtitle\").value = localStorage.joblTitles;\n//alert(localStorage.job1Ref);\n}","updateToStore() {\r\n if (this.props.formSetValue)\r\n this.props.formSetValue(this.props.inputProps.name, this.fieldStatus.value, this.fieldStatus.valid, this.fieldStatus.dirty, this.fieldStatus.visited);\r\n }","updateToStore() {\r\n if (this.props.formSetValue)\r\n this.props.formSetValue(this.props.inputProps.name, this.fieldStatus.value, this.fieldStatus.valid, this.fieldStatus.dirty, this.fieldStatus.visited);\r\n }","function fetchStorage() {\n txtFName.value = localStorage.getItem(\"input-name\");\n txtLName.value = localStorage.getItem(\"input-lastname\");\n txtPhone.value = localStorage.getItem(\"input-phone\");\n txtEmail.value = localStorage.getItem(\"input-email\");\n }","function copyForward() {\n if(global_formCount < 1)\n return;\n\n $('#form-' + (global_formCount - 1) + ' :input').each(function(){\n\n if($(this).val()) {\n var classes = $(this).attr(\"class\").split(\" \");\n\n if(classes[0] !== 'apptDate') {\n openFormData(\"#form-\" + global_formCount, classes[0], $(this).val()); \n }\n }\n });\n\n $('#form-' + global_formCount).change();\n}","function setSavedState() {\n const state = JSON.parse(localStorage.getItem('collecting_together_form'));\n if (state) {\n cfSelect.value = state.cf ? state.cf : '';\n gfSelect.value = state.gf ? state.gf : '';\n mfSelect.value = state.mf ? state.mf : '';\n amSelect.value = state.am ? state.am : '';\n }\n }","function displayEditData(){\n \t$('#editItemName').val(dataitemname[currentCount]);\n \t$('#editDepartment').val(datadepartment[currentCount]);\n \t\t$('#editDescription').val(datadescription[currentCount]);\n \t$('#editDesireDate').val(datadesiredate[currentCount]);\n \t$('#editTag').val(datasearchtags[currentCount]);\n \t//$('#editItems').listview('refresh');\n }","function loaddata(){\n\t\tvar data1 = localStorage.getItem(\"infor_sku\") || \"\";\n\t\tvar data2 = localStorage.getItem(\"pd\") || \"\";\n\t\tvar data3 = localStorage.getItem(\"sh\") || \"\";\n\t\tif (!!data1) { sku_items = JSON.parse(data1); }\n\t\tif (!!data2) { pd_items = JSON.parse(data2); }\n\t\tif (!!data3) { sh_items = JSON.parse(data3); }\n\t\t$(\"#datafile\").val( localStorage.getItem(\"datafile\") ||\"http://123.123.123.250:5000/\");\n\t\t$(\"#myfile\").val( localStorage.getItem(\"myfile\") ||\"spchkm/\");\n\t\t\n\t}","function storeForm() {\n /*jshint validthis:true */\n var form = $(this);\n var formId = form[0].id;\n if (!formId) return;\n var formJSON = app.formToData(form);\n if (!formJSON) return;\n app.formStoreData(formId, formJSON);\n form.trigger('store form:storedata', {data: formJSON});\n }","function detailsFromForm(event) {\n event.preventDefault();\n var location = event.target.store_name.value;\n var minCust = event.target.min_cust.value;\n var maxCust = event.target.max_cust.value;\n var aveSales = event.target.ave_sales.value;\n var storenew = new Store(location,minCust,maxCust,aveSales);\n populateRows(storenew);//add an array of hourly sales numbers to store object\n storesToUse.push(storenew);\n\n\n\n //console.log('stores to use',storesToUse);\n dave.innerHTML = '';\n tableheadrow.innerHTML = '';\n createTabel(storesToUse);\n\n\n storeForm.reset();\n}","function storeData(){\r\n\t\tvar id \t\t\t\t= Math.floor(Math.random()*100000000001);\r\n\t\t//Gather up all our form field values and store in an object\r\n\t\t//Object properties contain an array with the form label and input value\r\n\t\tgetSelectedRadio();\r\n\t\tvar item \t\t\t\t= {};\r\n\t\t\titem.comicTitle\t\t= [\"Title of Comic:\", e('comicTitle').value];\r\n\t\t\titem.seriesTitle\t= [\"Title of Series:\", e('seriesTitle').value];\r\n\t\t\titem.issueNum\t\t= [\"Issue Number:\", e('issueNum').value];\r\n\t\t\titem.dateReleased\t= [\"Date Released:\", e('dateReleased').value];\r\n\t\t\titem.publisher\t\t= [\"Publisher:\", e('publisher').value];\r\n\t\t\titem.rateIssue\t\t= [\"Rate of Issue:\", e('rateIssue').value];\r\n\t\t\titem.genre \t\t\t= [\"Genre:\", e('genre').value];\r\n\t\t\titem.illStyle\t\t= [\"Illustration Style:\", styleValue];\r\n\t\t\titem.comments\t\t= [\"Comments:\", e('comments').value];\r\n\t\t//Save data into Local Storage: Use Stringify to convert our object to a string\r\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\r\n\t\talert(\"Comic saved to index!\");\r\n\t}","function storeCurrent() {\r\n let currentData = {\r\n regexInput: regexInput.value,\r\n templateInput: templateInput.value,\r\n globalCheckbox: globalCheckbox.checked,\r\n caseInsensitiveCheckbox: caseInsensitiveCheckbox.checked,\r\n multilineCheckbox: multilineCheckbox.checked,\r\n IgnoreHTMLCheckbox: IgnoreHTMLCheckbox.checked,\r\n resultTextarea: resultTextarea.value,\r\n selectedItemIndex:selectedItemIndex,\r\n smallForm: smallFormCheckbox.checked\r\n };\r\n let store = browser.storage.local.set({\r\n currentData\r\n });\r\n store.then(onError, onError);\r\n}","save(blockContainer) {\n let newData = {}\n\n // Get the contents of each field for this tool.\n for (let key in this.fields) {\n const element = blockContainer.querySelector(`.${this.CSS.input}[data-key=${key}]`)\n newData[key] = element.tagName == 'INPUT' ? element.value : element.innerHTML\n newData[key] = newData[key].replace('&nbsp;', ' ').trim() // Strip non-breaking whitespace\n }\n\n // TODO: Because of autosave, this strips out necessary defaults prematurely.\n //this.removeInactiveData()\n return Object.assign(this.data, newData)\n }","function savestate() {\n state = $(\"#states\").val();\n $(\"#state\").val(state);\n}","function loadExistingFormValues() {\n\n // lesion has been found, load data and fill out form\n if( meCompletedLesions[meCurrentLesion] ) {\n\tloadExistingQuestion4();\n\tloadExistingQuestion5();\n\tloadExistingQuestion6();\n\tloadExistingQuestion7();\n\tloadExistingQuestion8();\n\tloadExistingQuestion9();\n\tloadExistingQuestion10();\n loadExistingQuestion11();\n loadExistingComment();\n showSaveButton();\n }\n}","function applyCurrentStaff(){\n currentN = document.getElementById(\"staff\").value;\n document.getElementById(\"input\").innerHTML = staffDataChangeForm();\n}","function saveData()\n{\n\t\"use strict\";\n\n\n\tvar currentDate = new Date();\n\tvar year, month, day;\n\tyear = currentDate.getFullYear();\n\t\n\tif (currentDate.getMonth().toString().length === 1)\n\t{\n\t\tmonth = \"0\" + currentDate.getMonth().toString(); \n\t}\n\telse\n\t{\n\t\tmonth = currentDate.getMonth().toString();\n\t}\n\t\n\tif (currentDate.getDate().toString().length === 1)\n\t{\n\t\tday = \"0\" + currentDate.getDate().toString(); \n\t}\n\telse\n\t{\n\t\tday = currentDate.getDate().toString();\n\t}\n\t\n\tcreationDate = year + month + day;\n\talert(creationDate);\n\tcreationTime = currentDate.getHours() + \":\" + currentDate.getMinutes();\n\n\t\n\ttitle = document.getElementById(\"txtTitle\").value;\n content = document.getElementById(\"txtContent\").value;\n\tteacherName = document.getElementById(\"txtTeacherName\").value;\n\tsubject = document.getElementById(\"txtSubject\").value;\n\t\n\talert(\"Your information has been saved\");\n\n\tdeadline = document.getElementById(\"txtDeadline\").value;\n\n\n\t// Add code to store rest of input in variables here\n \n// Store the information in localstorage\n localStorage.setItem(\"title\", title);\n localStorage.setItem(\"content\", content);\n\tlocalStorage.setItem(\"teacherName\", teacherName);\n\n \n //alert to inform user data has been saved.\n\n}","function putValueToForm() {\r\n\r\n localStorValues3 = localStorage.getItem(localStorage.key(event.target.id));\r\n\r\n NlistOfLSvalues = JSON.parse(localStorValues3);\r\n\r\n myRef =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .previousElementSibling.previousElementSibling.previousElementSibling\r\n .previousElementSibling.innerText;\r\n removeAfromNameProduct =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .previousElementSibling.previousElementSibling.previousElementSibling\r\n .innerText;\r\n myDescription =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .previousElementSibling.previousElementSibling.innerText;\r\n myPrice =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .previousElementSibling.innerText;\r\n myStock =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .innerText;\r\n\r\n key.value = event.target.id;\r\n ref.value = myRef;\r\n nameProduct.value = removeAfromNameProduct;\r\n descriptionProduct.value = myDescription;\r\n price.value = myPrice;\r\n stock.value = myStock;\r\n}","function editContent(){\n targetItem.children[0].textContent = capitalizeFirstLetter(inputField.value)\n itemEditedSuccess()\n // Pass new values to storage\n storageEditItem(targetItemText, inputField.value)\n \n // Restore app functionality (exit edit-mode)\n clearInputField()\n submitBtnReplace.removeEventListener('click', editContent)\n beginApp()\n }","function setDataFromLocalStorage() { \t\n \tCORE.LOG.addInfo(\"PROFILE_PAGE:setDataFromLocalStorage\");\n \t$(\"#name\").val(gameData.data.player.profile.name);\n \t$(\"#surname\").val(gameData.data.player.profile.surname);\n \t$(\"#age\").val(gameData.data.player.profile.age);\n \t$(\"#sex\").val(gameData.data.player.profile.sex);\n \t$(\"#mobile\").val(gameData.data.player.profile.mobile); \n \t \t \t\n }","function importSave() {\r\n\tlet data = prompt(\"Paste your save string here\");\r\n\r\n\tif (data !== null && data !== '')\r\n\t\tparseAndImportData(data);\r\n\t\t\r\n\trunAll();\r\n}","function updateOutput4() {\n localStorage.setItem('info4', input_textarea4.value)\n}","function copiar(){\n document.frmEditProveedor.mdl_edit_proveedorId.value = $('#prod_proveedorId').val();\n document.frmEditProveedor.mdl_edit_tipoProveedor.value = $('#prod_tipoProveedor').val();\n document.frmEditProveedor.mdl_edit_nombre.value = $('#prod_nombre').val();\n document.frmEditProveedor.mdl_edit_email.value = $('#prod_email').val();\n document.frmEditProveedor.mdl_edit_telefono.value = $('#prod_telefono').val();\n document.frmEditProveedor.mdl_edit_sitioWeb.value = $('#prod_sitioWeb').val(); \n}","function copyUserInfo() {\n \"use strict\";\n if ($(\"sameaddress\").checked) {\n $(\"fname2\").value = $(\"fname\").value;\n $(\"lname2\").value = $(\"lname\").value;\n $(\"addresstype2\").selectedIndex = $(\"addresstype\").selectedIndex;\n if ($(\"addresstype2\").selectedIndex === 6) {\n $(\"otheraddressform2\").classList.remove(\"nonedisplay\");\n $(\"otheraddress2\").value = $(\"otheraddress\").value;\n }\n $(\"address2\").value = $(\"address\").value;\n $(\"aptnumber2\").value = $(\"aptnumber\").value;\n $(\"city2\").value = $(\"city\").value;\n $(\"state2\").value = $(\"state\").value;\n $(\"zip2\").value = $(\"zip\").value;\n $(\"phonenumber2\").value = $(\"phonenumber\").value;\n $(\"state2\").value = $(\"state\").value;\n $(\"email2\").value = $(\"email\").value;\n }\n}","function updateOutput2() {\n localStorage.setItem('info2', input_textarea2.value)\n}","function saveData(id)\n\t{\n\t\tvar f = document.fuploadr;\n\t\tvar data = ImageStore[id];\n\t\t\n\t\tdata.title\t\t = f.title.value;\n\t\tdata.description = f.description.value;\n\t\tdata.tags\t\t = f.tags.value;\n\t\tdata.is_public\t = getChecked(f.is_public, 0);\n\t\tdata.is_friend\t = getChecked(f.is_friend, 0);\n\t\tdata.is_family\t = getChecked(f.is_family, 0);\n\t\tdata.safety_level = f.safety_level.value;\n\t\tdata.hidden\t\t = getChecked(f.hidden, 1);\n\t\t//data.content_type = f.content_type.value;\n\t}","function loadExistingData() {\n existingData = lbs.limeDataConnection.ActiveInspector.Controls.GetValue('creditinfo')\n if (existingData) {\n existingData = lbs.loader.xmlToJSON(existingData, 'creditdata');\n if (moment().diff(existingData.creditdata.ratingData.ratingDate, 'days') < self.config.maxAge) {\n viewModel.ratingValue(existingData.creditdata.ratingData.ratingValue);\n viewModel.ratingText(existingData.creditdata.ratingData.ratingText);\n viewModel.ratingDate(existingData.creditdata.ratingData.ratingDate);\n }\n }else if(viewModel.inline){\n existingData = viewModel.inline;\n viewModel.ratingValue('?');\n viewModel.ratingText('Ingen kreditrating tagen');\n viewModel.loadText('Ta kreditkontroll');\n }\n }","function _loadData()\n\t{\n\t\ttry\n\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t//create EZ.script.options from defaults\n\t\t\tvar options = EZ.script.options = EZ.options(EZ.defaultOptions.script);\t\t\n\t\t\t\n\t\t\t//---------------------------------------------------------------------\n\t\t\tvar json = localStorage.getItem('EZ.script.savedData')\n\t\t\tEZ.script.savedData = json ? JSON.parse(json) : {}\t\n\t\t\t//---------------------------------------------------------------------\n\t\t\t\n\t\t\tvar savedData = json ? JSON.parse(json) : {}\t\n\t\t\tif (savedData.version != options.version)\n\t\t\t\tsavedData = {version: options.version, timestamp:''};\n\t\t\t//savedData.listValues = savedData.listValues || {}\n\t\t\tsavedData.listOptions = savedData.listOptions || {};\n\t\t\tsavedData.fieldValues = savedData.fieldValues || {};\n\t\t\t\n\t\t\tvar log = EZ.field.add(savedData.fieldValues);\t//restore saved fieldValues\n\t\t\tEZ.log('EZscript.loadData', 'restored fieldValues', log);\n\t\t\t\n\t\t\tlog = EZ.field.add(['EZscript']);\t\t\t\t//add fields with default values (not saved)\n\t\t\tEZ.log('EZscript.loadData', 'all EZscript fields', {log:log});\n\t\t\t\n\t\t\tlog = EZ.event.trigger(['EZscript']);\t\t\t//fire events to initialize EZ.script.options\n\t\t\tEZ.log('EZscript.loadData', {'onload events':log})\n\t\t\t\n\t\t\tsetTimeout(function()\t\t\t\t\t\t\t//after events run...\n\t\t\t{\n\t\t\t\toptions.listNames.forEach(function(name)\t//populate saved list(s) options\n\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t//...and select save values\n\t\t\t\t\tvar list = _getEl(options.tags[name]);\n\t\t\t\t\tif (list)\n\t\t\t\t\t{\n\t\t\t\t\t\tvar listValue = EZ.get(list);\n\t\t\t\t\t\tvar listOptions = '.'.concat(name,'.optionsList').ov(savedData.listOptions)\n\t\t\t\t\t\t\t\t\t || [].slice.call(list.options);\n\t\t\t\t\t\tlistOptions = EZ.script.listOptions[name] \n\t\t\t\t\t\t\t\t\t= EZ.displayDropdown(list, listOptions, listValue);\n\t\t\t\t\t\t_displayValue(name + 'Count', listOptions.valueList.length.wrap('['))\n\n\t\t\t\t\t\tvar value = EZ.get(list)\n\t\t\t\t\t\tif (name == 'history' && value.toInt() > 0)\n\t\t\t\t\t\t\t_displayValue('optionTime', value);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (name == 'favorites' && list.selectedIndex > 1)\n\t\t\t\t\t\t\t_displayValue('favoriteName', list.options[list.selectedIndex].text);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tEZ.script.saveData()\n\t\t\t}, 0 );\n\t\t}\n\t\tcatch (e)\n\t\t{\n\t\t\treturn EZ.oops(e);\n\t\t}\n\t}","function storeForm() {\n\t /*jshint validthis:true */\n\t var form = $(this);\n\t var formId = form[0].id;\n\t if (!formId) return;\n\t var formJSON = app.formToData(form);\n\t if (!formJSON) return;\n\t app.formStoreData(formId, formJSON);\n\t form.trigger('store form:storedata', {data: formJSON});\n\t }","function restore_inputs () {\n\n\t\t\t\tparse_variables();\n\n\t\t\t\t$('.form-w').val(W);\n\t\t\t\t$('.form-b').val(B);\n\t\t\t\t$('.form-mf').val(Mf);\n\t\t\t\t$('.form-mt').val(Mt);\n\n\t\t\t}","handleSourceData(){\n let self = this;\n $(this.fromInput).on('change keyup', function(e) {\n e.preventDefault();\n let slugData = self.generateSlug($(this).val());\n // Replace new to slug:\n $(self.wrapper).val(slugData)\n });\n }","function handleEdit() {\n console.log('in handleEdit');\n // Turn on edit mode\n setEditMode(true);\n\n // Set values in state from our list reducer\n setTitle(trip.location);\n setDate(trip.start_date.slice(0, 10));\n setDays(trip.days);\n\n }","function save(e) {\n var node = e.target;\n if (node.nodeName === 'INPUT' && node.checked) {\n localStorage[node.name] = node.value;\n }\n else if (node.nodeName === 'SELECT') {\n localStorage[node.name] = node.value;\n }\n }","function onModalSubmit(){\n if(validatemodalbox()){\n var formData = readEditData();\n if(selectedRow==null)\n insertNewData(formData);\n else\n updateData(formData);\n }\n}","function updateOutput7() {\n localStorage.setItem('info7', input_textarea7.value)\n}","function Save() {\n if ($('#ab041AddEdit').valid()) {\n if (vm.isNew) {\n dataContext.add(\"/api/ab041\",vm.ab041).then(function (data) {\n notify.showMessage('success', \"ab041 record added successfully!\");\n\t\t\t\t\t\twindow.location.hash = \"/ab041/\";\n });\n } else {\n dataContext.upDate(\"/api/ab041\", vm.ab041).then(function (data) {\n notify.showMessage('success', \"ab041 record updated successfully!\");\n\t\t\t\t\t\twindow.location.hash = \"/ab041/\";\n });\n }\n }\n }","function setData(){\n\n\t\t$.ajax({\n\t\t\turl : \"/currentTitle\",\n\t\t\tmethod: \"GET\",\n\t\t\tsuccess : function(foundNote){\n\t\t\t\tif(foundNote!==false){\n\t\t\t\t\t$('#title').val(foundNote.title);\n\t\t\t\t\t$('#note-view').val(foundNote.text);\n\t\t\t\t\t$('#course').val(foundNote.code);\n\t\t\t\t}\n\t\t\t\t$.ajax({\n\t\t\t\t\turl : \"/current\",\n\t\t\t\t\tmethod: \"GET\",\n\t\t\t\t\tsuccess : function(currentUser){\n\t\t\t\t\t\tif(currentUser!==false){\n\t\t\t\t\t\t\t\t$(\"#author\").text(currentUser);\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}\n\t\t});\n\t}","function whenStart() {\n if (localStorage.form) {\n var savedForm = JSON.parse(localStorage.form)\n document.getElementById('00').value = savedForm.column1\n document.getElementById('11').value = savedForm.column2\n document.getElementById('22').value = savedForm.column3\n document.getElementById('33').value = savedForm.column4\n document.getElementById('44').value = savedForm.column5\n document.getElementById('55').value = savedForm.column6\n document.getElementById('66').value = savedForm.column7\n document.getElementById('77').value = savedForm.column8\n document.getElementById('88').value = savedForm.column9\n\n }\n }","function copyData2Form(form, statut, acteurcourant) {\n form.id = globalDAData.id;\n if (globalDAData.bdc != \"\") { form.bdc = \"BDC n° \"+globalDAData.bdc; } else {form.bdc = \"\";}\n form.fournisseur = globalDAData.fournisseur;\n form.statut = statut;\n form.demandeur = globalDAData.emetteur;\n form.typedemande = globalDAData.typedemande;\n form.nature = globalDAData.nature;\n form.contactfournisseur = globalDAData.contactfournisseur;\n form.buimputation = globalDAData.buimputation;\n form.codeprojet = globalDAData.codeprojet;\n form.nomprojet = globalDAData.nomprojet;\n form.quantite = globalDAData.quantite;\n if (globalDAData.prixtjmachat != '') {\n form.prixunitairetjmachat = Utilities.formatString(\"%.2f\", globalDAData.prixtjmachat);\n } else {\n form.prixunitairetjmachat = '';\n }\n if (globalDAData.prixtjmvendu != '') {\n form.prixunitairetjmvendu = Utilities.formatString(\"%.2f\", globalDAData.prixtjmvendu);\n } else {\n form.prixunitairetjmvendu = '';\n }\n if (globalDAData.marge != '') {\n form.marge = Utilities.formatString(\"%.2f\", globalDAData.marge);\n } else {\n form.marge = '';\n }\n form.collaborateur = globalDAData.collaborateur;\n form.datedebutlivraison = globalDAData.datedebutlivraison;\n form.datefinlivraison = globalDAData.datefinlivraison;\n form.adresselivraison = globalDAData.adresselivraison;\n form.conditionreglement = globalDAData.conditionreglement;\n form.urldevis = globalDAData.urlDevis;\n if (globalDAData.urlBDCpdfsigne != '') {\n form.lblbdcsigne = \"Lien de téléchargement\";\n form.urlbdcsigne = globalDAData.urlBDCpdfsigne;\n } else {\n form.lblbdcsigne ='';\n form.urlbdcsigne='';\n }\n form.acteurcourant = acteurcourant;\n}","function loadRecordToForm(data, readOnly) {\n if (!data) {\n data = {};\n }\n \n // set record to form fields\n var frm = self.settings().forms.record;\n \n // enable all form fields so they can be cleared\n $('#'+frm+' :input').attr('disabled', false);\n \n deserializeJsonToForm('#'+frm, data);\n \n // enable or disable all form fields according to readOnly value\n $('#'+frm+' :input').attr('disabled', readOnly ? true : false);\n \n // enable cancel button always\n $('#'+self.settings().actions.btnCancel.id).attr('disabled', false);\n }","function loadData(data)\n\t{\n\t\tvar f = document.fuploadr;\n\n\t\tf.title.value\t\t= data.title;\n\t\tf.description.value = data.description;\n\t\tf.tags.value\t\t= data.tags;\n\t\tsetChecked(f.is_public, data.is_public);\n\t\tsetChecked(f.is_friend, data.is_friend);\n\t\tsetChecked(f.is_family, data.is_family);\n\t\tsetChecked(f.hidden, data.hidden);\n\t\tsetOption(f.safety_level, data.safety_level);\n\t}","function populateUserForm() {\n var cu = currentUser;\n enter.name.value = cu.name;\n enter.email.value = cu.email;\n enter.age.value = cu.age;\n enter.currentWeight.value = cu.currentWeight;\n enter.targetWeight.value = cu.targetWeight;\n}","function backupInput() {\n lastInput = ELEMENTS.UPDATE_TEXTAREA.val();\n }","function get_save_data()\n {\n var listselect = $('option:selected', rcmail.gui_objects.notebooks),\n savedata = {\n title: $.trim($('.notetitle', rcmail.gui_objects.noteviewtitle).val()),\n description: rcmail.editor.get_content().replace(/^\\s*(

    <\\/p>\\n*)?/, ''),\n list: listselect.length ? listselect.val() : me.selected_note.list || me.selected_list,\n uid: me.selected_note.uid,\n tags: taglist ? kolab_tags_input_value(taglist) : []\n };\n\n // copy links\n if ($.isArray(me.selected_note.links)) {\n savedata.links = me.selected_note.links;\n }\n\n return savedata;\n }","function make_ready_for_edit(source) {\n var tr = source.parentNode;\n remove_gray_bg_from_user_list();\n make_appearance_ready_for_edit(tr);\n //load input forms.................\n show_in_form(tr);\n // load referred table.............\n load_ref_table(tr);\n // create buy time select..........\n var id = tr.getAttribute('data-id');\n create_buy_time_part_for_edit(tr,id);\n load_cheque_table(tr);\n // this is for keep editable row after paging\n document.getElementById('userTable').setAttribute('data-selectedId', id);\n}","function editSave() {\n if (document.getElementById('edit_input').value == \"\") {\n DOM.Modal.Close('edit_modal');\n State.Reset();\n return;\n }\n // check whether we're editing or adding\n if (State.Adding.Get()) {\n // the temporary array is necessary, otherwise the array can't be read/written properly\n var tempTracks = [];\n var desiredLocation;\n // determine the array index where the track should be stored\n if (State.Adding.Above.Get()) {desiredLocation = State.Editing.Get()-1}\n if (State.Adding.Below.Get()) {desiredLocation = State.Editing.Get()}\n // if neither add above or add below is specified, it will simply be appended\n if(!State.Adding.Above.Get() && !State.Adding.Below.Get()) {desiredLocation = Data.Tracks.length}\n // iterate through the tracks array\n // shift all entries after the desired location down by one\n for (let i = 0; i < Data.Tracks.length; i++) {\n if (i >= desiredLocation) {\n tempTracks[i+1] = Data.Tracks[i];\n }\n // keep all entries before the desired location\n else {tempTracks[i] = Data.Tracks[i];}\n }\n // assign the added track to the \"now free\" index\n tempTracks[desiredLocation] = document.getElementById('edit_input').value;\n // apply the temporary array\n Data.Tracks = tempTracks;\n }\n // apply the edited value to the original value in the array\n else {\n Data.Tracks[State.Editing.Get()-1] = document.getElementById('edit_input').value;\n }\n // close the modal and reset all the flags\n DOM.Modal.Close('edit_modal');\n State.Reset();\n // refresh the UI\n DOM.UI.Update();\n}","function copyText() {\n\tlocalStorage.setItem(\"text\", document.getElementById(\"textArea\").value);\n\tlocalStorage.setItem(\"size\", document.getElementById(\"fontSize\").value);\n\tlocalStorage.setItem(\"color\", document.getElementById(\"fontColor\").value);\n\tlocalStorage.setItem(\"font\", document.getElementById(\"font\").value);\n}","function save(e) {\n let saveBtn = e.target;\n let inputBox = event.target.parentNode.lastChild;\n event.target.parentNode.firstChild.textContent = inputBox.value;\n inputBox.style.display = \"none\";\n saveBtn.style.display=\"none\";\n let editBtn = event.target.nextSibling;\n editBtn.style.display = \"inline\";\n \n}","function storeEventInfo() {\n\n //altert text needs to be changes\n\n var date, description;\n\n date = document.getElementById(\"eDate\").value;\n description = document.getElementById(\"eDescription\").value;\n \n if (date === \"\" ||\n description === \"\" ){\n alert(\"Please fill in all feilds\");\n }\n else {\n addEventToDB(date, description);\n defaultValues();\n }\n /*\n //Test\n console.log(\"date: \" + date);\n console.log(\"description: \" + description);\n */\n}"],"string":"[\n \"function applyCurrentSource(){\\n currentSID = document.getElementById(\\\"source\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = sourceDataChangeForm();\\n}\",\n \"function copyStorageToForm() {\\n \\\"use strict\\\";\\n // Set chosen hair type\\n setFormHairType(sessionStorage.getItem(\\\"hair_type\\\"));\\n\\n // Set selected traits\\n setFormTraits(sessionStorage.getItem(\\\"traits\\\"));\\n}\",\n \"function getForm() {\\n inputNombre.value = localStorage.getItem('nombre');\\n inputApellido.value = localStorage.getItem('apellido');\\n inputTel.value = localStorage.getItem('tel');\\n inputDir.value = localStorage.getItem('dir');\\n inputObs.value = localStorage.getItem('obs');\\n console.log('data loaded');\\n}\",\n \"function toChangeSourceData(){\\n isChangingSources = true;\\n if(sources.length > 0){\\n currentSID = sources[0].id;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = sourceDataChangeForm();\\n}\",\n \"function getAndProcessData() { \\n\\t\\tchooseFileSource();\\n\\t}\",\n \"function postToSource() {\\n // clear unnecessary tags when editor view empty\\n var sourceStrings = editor.text() == \\\"\\\" && editor.html().length < 12 ? \\\"\\\" : editor.html();\\n var value = extractToText(sourceStrings);\\n thisElement.val(value);\\n }\",\n \"function save() {\\n $editors.find('.text').each(function () {\\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\\n });\\n }\",\n \"function toSources(){\\n document.getElementById(\\\"input\\\").innerHTML = sourceForm();\\n}\",\n \"function readform__(formID) {\\r\\n\\tvar formData = null;\\r\\n\\t// alert(\\\"force edit:\\\" + forceEdit);\\r\\n\\t//Prefilling dropdowns\\r\\n\\t$('select[cdata=\\\"catalyst\\\"]').each(function() {\\r\\n\\r\\n\\t\\tif ($(this).attr('sourcepath') && $(this).attr('datapath')) {\\r\\n\\r\\n\\t\\t\\tif ($(this).attr('linkedfields') || ($(this).attr('linkedfields') == null && $(this).attr('linkedto') == null)) {\\r\\n\\r\\n\\t\\t\\t\\tvar tempJSON = JSON.parse(JSON.stringify(readMasterJson($(this).attr('sourcepath'))));\\r\\n\\t\\t\\t\\tvar curSelect = $(this);\\r\\n\\t\\t\\t\\t// alert(JSON.stringify(tempJSON));\\r\\n\\t\\t\\t\\t$.each(eval('tempJSON.' + curSelect.attr('datapath')), function(i, item) {\\r\\n\\t\\t\\t\\t\\t// alert(item.field[0].values.value);\\r\\n\\t\\t\\t\\t\\t// debugger;\\r\\n\\t\\t\\t\\t\\t//Loop to get rowid \\r\\n\\t\\t\\t\\t\\tvar _rowid = 0;\\r\\n\\t\\t\\t\\t\\tfor (var k = 0; k < item.field.length; k++) {\\r\\n\\t\\t\\t\\t\\t\\tif (item.field[k].name == \\\"rowid\\\") {\\r\\n\\t\\t\\t\\t\\t\\t\\t//curSelect.append('');\\r\\n\\t\\t\\t\\t\\t\\t\\t// alert(\\\"Added:\\\" + item.field[i].values.value);\\r\\n\\t\\t\\t\\t\\t\\t\\t_rowid = item.field[k].values.value;\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\tfor (var k = 0; k < item.field.length; k++) {\\r\\n\\t\\t\\t\\t\\t\\tif (item.field[k].name == curSelect.attr(\\\"id\\\")) {\\r\\n\\t\\t\\t\\t\\t\\t\\tcurSelect.append('');\\r\\n\\t\\t\\t\\t\\t\\t\\t// alert(\\\"Added:\\\" + item.field[i].values.value);\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t});\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t// debugger;\\r\\n\\t\\t\\tif ($(this).attr('linkedfields')) {\\r\\n\\r\\n\\t\\t\\t\\t$(this).change(function() {\\r\\n\\t\\t\\t\\t\\t// debugger;\\r\\n\\t\\t\\t\\t\\t$('#content').attr('style', \\\"opacity:1;\\\")\\r\\n\\r\\n\\t\\t\\t\\t\\tvar curCtrl = $(this);\\r\\n\\t\\t\\t\\t\\t$.each(eval($(this).attr('linkedfields')), function(i, item) {\\r\\n\\t\\t\\t\\t\\t\\tvar targetCtrl = $('#' + item);\\r\\n\\t\\t\\t\\t\\t\\ttargetCtrl.html('');\\r\\n\\t\\t\\t\\t\\t\\tvar opts = getRelatedValues(targetCtrl.attr('sourcepath'), curCtrl.attr(\\\"id\\\"), $('#' + curCtrl.attr('id') + ' option:selected').text(), targetCtrl.attr(\\\"id\\\"));\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t$.each(eval(opts), function(j, itm) {\\r\\n\\t\\t\\t\\t\\t\\t\\tif (targetCtrl.attr('multiselect'))\\r\\n\\t\\t\\t\\t\\t\\t\\t\\taddToSelectList(itm, targetCtrl);\\r\\n\\t\\t\\t\\t\\t\\t\\telse\\r\\n\\t\\t\\t\\t\\t\\t\\t\\ttargetCtrl.append('');\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t});\\r\\n\\t\\t\\t\\t\\t\\t//fix for select2 control - Vinod \\r\\n\\t\\t\\t\\t\\t\\tif (targetCtrl.attr('multiselect') == null)\\r\\n\\t\\t\\t\\t\\t\\t\\ttargetCtrl.select2();\\r\\n\\r\\n\\t\\t\\t\\t\\t});\\r\\n\\t\\t\\t\\t});\\r\\n\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\r\\n\\t\\t//alert(\\\"Reading\\\" + JSON.stringify(temp));\\r\\n\\t});\\r\\n\\r\\n\\t$('input[sourcepath][cdata=\\\"catalyst\\\"]').each(function() {\\r\\n\\t\\t//debugger;\\r\\n\\t\\tif ($(this).attr('sourcepath') && $(this).attr('datapath')) {\\r\\n\\t\\t\\tvar tempJSON = JSON.parse(readMasterJson($(this).attr('sourcepath')));\\r\\n\\t\\t\\tvar curInput = $(this);\\r\\n\\t\\t\\t// alert(JSON.stringify(tempJSON));\\r\\n\\t\\t\\t$.each(eval('tempJSON.' + curInput.attr('datapath')), function(i, item) {\\r\\n\\t\\t\\t\\t// alert(item.field[0].values.value);\\r\\n\\t\\t\\t\\t// debugger;\\r\\n\\t\\t\\t\\tfor (var k = 0; k < item.field.length; k++) {\\r\\n\\t\\t\\t\\t\\tif (item.field[k].name == curInput.attr(\\\"id\\\")) {\\r\\n\\t\\t\\t\\t\\t\\t// curSelect.append('');\\r\\n\\t\\t\\t\\t\\t\\t// alert(\\\"Added:\\\" + item.field[i].values.value);\\r\\n\\t\\t\\t\\t\\t\\taddToCodeList(item.field[k].values.value, curInput);\\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});\\r\\n\\r\\n\\t$('div[datatype=\\\"select\\\"]').each(function() {\\r\\n\\t\\t//debugger;\\r\\n\\t\\tif ($(this).attr('linkedfields') || ($(this).attr('linkedfields') == null && $(this).attr('linkedto') == null)) {\\r\\n\\t\\t\\tif ($(this).attr('sourcepath') && $(this).attr('datapath')) {\\r\\n\\t\\t\\t\\tvar tempJSON = JSON.parse(JSON.stringify(readMasterJson($(this).attr('sourcepath'))));\\r\\n\\t\\t\\t\\tvar curInput = $(this);\\r\\n\\t\\t\\t\\t// alert('div select ' + curInput.attr(\\\"id\\\"));\\r\\n\\t\\t\\t\\t$.each(eval('tempJSON.' + curInput.attr('datapath')), function(i, item) {\\r\\n\\t\\t\\t\\t\\t// alert(item.field[0].values.value);\\r\\n\\t\\t\\t\\t\\t// debugger;\\r\\n\\t\\t\\t\\t\\tfor (var k = 0; k < item.field.length; k++) {\\r\\n\\t\\t\\t\\t\\t\\tif (item.field[k].name == curInput.attr(\\\"id\\\")) {\\r\\n\\t\\t\\t\\t\\t\\t\\t// curSelect.append('');\\r\\n\\t\\t\\t\\t\\t\\t\\t// alert(\\\"Added:\\\" + item.field[i].values.value);\\r\\n\\t\\t\\t\\t\\t\\t\\taddToSelectList(item.field[k].values.value, curInput);\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t});\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t});\\r\\n\\r\\n\\t// End Prefilling dropdowns\\r\\n\\r\\n\\r\\n\\r\\n\\t// alert(\\\"before d4d\\\" + JSON.stringify(d4ddata));\\r\\n\\treadMasterJson(formID);\\r\\n\\t//alert(\\\"after d4d\\\" + JSON.stringify(d4ddata));\\r\\n\\r\\n\\t/* $.each(d4ddata.sections.section, function (i, item) {\\r\\n\\t if (item.name == formName) {\\r\\n\\t formData = item;\\r\\n\\t }\\r\\n\\t });*/\\r\\n\\r\\n\\r\\n\\t//Reading row to get schema\\r\\n\\tvar formSchema = null;\\r\\n\\tvar orgName = url.substr(url.indexOf(\\\"?\\\") + 1);\\r\\n\\t// alert(orgName);\\r\\n\\tvar editMode = false;\\r\\n\\r\\n\\tformData = d4ddata.masterjson;\\r\\n\\r\\n\\t//alert(\\\"here \\\" + JSON.stringify(formData) + \\\":\\\" + orgName);\\r\\n\\r\\n\\t$.each(formData.rows.row, function(i, item) {\\r\\n\\t\\t// alert(item.field.length);\\r\\n\\t\\tfor (i = 0; i < item.field.length; i++) {\\r\\n\\t\\t\\t// alert(typeof item.field[i].values.value);\\r\\n\\t\\t\\t// alert('Expanded field ' + JSON.stringify(item.field.length) + \\\":\\\" + orgName.toLowerCase());\\r\\n\\t\\t\\tif (typeof item.field[i].values.value == \\\"string\\\") {\\r\\n\\t\\t\\t\\tif (item.field[i].values.value.toLowerCase() == orgName.toLowerCase()) {\\r\\n\\t\\t\\t\\t\\tformSchema = item.field;\\r\\n\\t\\t\\t\\t\\teditMode = true;\\r\\n\\t\\t\\t\\t\\treturn (false);\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\tformSchema = item.field;\\r\\n\\t});\\r\\n\\t// alert('Edit Mode:' + editMode);\\r\\n\\tif (forceEdit == true) {\\r\\n\\t\\teditMode = true;\\r\\n\\t\\tformSchema = formData.rows.row[0].field;\\r\\n\\t}\\r\\n\\tif (editMode == false) {\\r\\n\\t\\treturn (false);\\r\\n\\t}\\r\\n\\r\\n\\t//Setting the header of the form to Edit if shown as Create\\r\\n\\tvar head = $('.widget-header').html().replace('Create', 'Edit').replace('New', 'Edit');\\r\\n\\t$('.widget-header').html(head);\\r\\n\\r\\n\\r\\n\\t// debugger;\\r\\n\\t// alert('came here');\\r\\n\\t//Read current form values with the field names\\r\\n\\tvar formSchemaNew = formSchema;\\r\\n\\r\\n\\r\\n\\r\\n\\t//Since this section is executed only in edit mode. The rowid field is injected with the rowid\\r\\n\\t$('button[onclick*=\\\"saveform\\\"]').attr(\\\"rowid\\\", orgName);\\r\\n\\r\\n\\r\\n\\t// alert(JSON.stringify(formData.rows.row[0].field));\\r\\n\\r\\n\\t$.each(formSchemaNew, function(i, item) {\\r\\n\\t\\tvar inputC = null;\\r\\n\\t\\t$.each(item, function(k, v) {\\r\\n\\t\\t\\t// alert(\\\"k & v:\\\" + k + \\\":\\\" + v);\\r\\n\\t\\t\\tif (k == \\\"name\\\" && v != \\\"rowid\\\") {\\r\\n\\t\\t\\t\\tif (v.indexOf(\\\"_filename\\\") > 0) {\\r\\n\\t\\t\\t\\t\\tv = v.replace('_filename', '');\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tinputC = $('#' + v);\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t});\\r\\n\\t\\t$.each(item, function(k, v) {\\r\\n\\t\\t\\tif (k == \\\"values\\\") {\\r\\n\\t\\t\\t\\tif (inputC && $(inputC).attr(\\\"id\\\") != undefined) {\\r\\n\\t\\t\\t\\t\\t$.each(v, function(k1, v1) {\\r\\n\\r\\n\\t\\t\\t\\t\\t\\tif (inputC.getType().toLowerCase() == \\\"text\\\") {\\r\\n\\t\\t\\t\\t\\t\\t\\t// alert(inputC.attr(\\\"datavalues\\\"));\\r\\n\\t\\t\\t\\t\\t\\t\\tif (inputC.attr(\\\"datavalues\\\")) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t//var array = v[k1].split(\\\",\\\");\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t$.each(v[k1], function(i) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\taddToCodeList(v[k1][i]);\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t});\\r\\n\\t\\t\\t\\t\\t\\t\\t} else\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tinputC.val(v[k1]);\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t\\t\\t\\tif (inputC.getType().toLowerCase() == \\\"file\\\") {\\r\\n\\t\\t\\t\\t\\t\\t\\t// v[k1]\\r\\n\\t\\t\\t\\t\\t\\t\\t$(inputC).closest('input').next().val(v[k1]);\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\tif (inputC.getType().toLowerCase() == \\\"select\\\") {\\r\\n\\t\\t\\t\\t\\t\\t\\t//alert(v[k1]);\\r\\n\\t\\t\\t\\t\\t\\t\\t$(inputC).val(v[k1]);\\r\\n\\t\\t\\t\\t\\t\\t\\t$(inputC).attr('savedvalue', v[k1]);\\r\\n\\t\\t\\t\\t\\t\\t\\t//fix for select2 type control. Expecting all select boxes to be type select2. - Vinod\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t$(inputC).select2();\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\tif (inputC.getType().toLowerCase() == \\\"ul\\\") {\\r\\n\\t\\t\\t\\t\\t\\t\\t// alert('in ul');\\r\\n\\t\\t\\t\\t\\t\\t\\tif (v[k1].indexOf(',') >= 0) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tvar itms = v[k1].split(',');\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t$(inputC).attr('defaultvalues', v[k1]);\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t/* for(var j = 0; j < itms.length; j++){\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t $(inputC).append('

  • ');\\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}\\r\\n\\t\\t\\t\\t\\t\\tif (inputC.getType().toLowerCase() == \\\"div\\\") {\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t$(inputC).attr('savedvalue', v[k1])\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t//Set saved values to div.\\r\\n\\t\\t\\t\\t\\t\\t\\tvar ctype = '';\\r\\n\\t\\t\\t\\t\\t\\t\\tvar csource = '';\\r\\n\\t\\t\\t\\t\\t\\t\\tif ($(inputC).attr('ctype'))\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tctype = $(inputC).attr('ctype');\\r\\n\\t\\t\\t\\t\\t\\t\\tif ($(inputC).attr('csource'))\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tcsource = $(inputC).attr('csource');\\r\\n\\t\\t\\t\\t\\t\\t\\tvar divselect1 = v[k1].toString().split(',');\\r\\n\\t\\t\\t\\t\\t\\t\\t// alert(v[k1]);\\r\\n\\t\\t\\t\\t\\t\\t\\tfor (var j = 0; j < divselect1.length; j++) {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif (ctype == 'list' && csource != '') {\\r\\n\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\taddToTargetList($('#' + csource).clone().val(divselect1[j]));\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif (ctype == '')\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tinputC.find('input[value=\\\"' + divselect1[j] + '\\\"]').trigger('click');\\r\\n\\t\\t\\t\\t\\t\\t\\t\\tif (ctype == 'checkbox') {\\r\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tinputC.find('input[id=\\\"checkbox_' + divselect1[j] + '\\\"]').attr('checked', 'checked');\\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}\\r\\n\\t\\t\\t\\t\\t});\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\tinputC = null;\\r\\n\\t\\t\\t}\\r\\n\\t\\t});\\r\\n\\t});\\r\\n\\t//Force clicking on selects that has dependent controls\\r\\n\\t$('[linkedfields]').each(function() {\\r\\n\\t\\t$(this).trigger('change');\\r\\n\\t\\tvar ctrls = $(this).attr('linkedfields').replace(/'/g, \\\"\\\").replace(/]/g, \\\"\\\").replace(/\\\\[/g, \\\"\\\").split(',');\\r\\n\\t\\tfor (var i = 0; i < ctrls.length; i++) {\\r\\n\\t\\t\\tvar ctrl = $(\\\"#\\\" + ctrls[i]);\\r\\n\\t\\t\\tif (ctrl.getType() == \\\"select\\\") {\\r\\n\\t\\t\\t\\tctrl.val(ctrl.attr('savedvalue'));\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tif (ctrl.getType() == \\\"div\\\" && typeof ctrl.attr('savedvalue') != 'undefined') {\\r\\n\\t\\t\\t\\tvar divselect = ctrl.attr('savedvalue').split(',');\\r\\n\\t\\t\\t\\t// alert(divselect.length);\\r\\n\\t\\t\\t\\tfor (var j = 0; j < divselect.length; j++) {\\r\\n\\t\\t\\t\\t\\tctrl.find('input[value=\\\"' + divselect[j] + '\\\"]').trigger('click');\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t});\\r\\n\\r\\n\\r\\n\\t// alert('almost exiting');\\r\\n\\t//Setting the unique field with current value\\r\\n\\t$('input[unique=\\\"true\\\"],select[unique=\\\"true\\\"]').each(function() {\\r\\n\\t\\t// alert($(this).val());\\r\\n\\t\\t$(this).attr('initialvalue', $(this).val());\\r\\n\\t\\t// alert($(this).attr('initialvalue'));\\r\\n\\t});\\r\\n\\treturn (true);\\r\\n}\",\n \"inputData() {\\n return (e) => {\\n e.persist();\\n var reader = new FileReader();\\n const self = this;\\n reader.onload = function(e) {\\n self.parseInputData(reader.result);\\n }\\n reader.readAsText(e.target.files[0]);\\n e.target.value = \\\"\\\";\\n };\\n }\",\n \"function eventDSEditOnLoad() {\\n var form = EventEditForm.getForm();\\n form.setValues(eventDS.getAt(0).data);\\n}\",\n \"fillForm(data) {\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"function load() {\\n let savedNotes = localStorage.getItem(\\\"dataNotes\\\");\\n let savedTitle = localStorage.getItem(\\\"dataTitle\\\");\\n if (savedNotes) {\\n notes.value = savedNotes;\\n }\\n if (savedTitle) {\\n notesTitle.value = savedTitle;\\n headerTitleChange()\\n }\\n}\",\n \"fillForm(data){\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"function load() {\\r\\n this.setContent(this.textarea.value);\\r\\n }\",\n \"fillForm ( data ) {\\n this.title.value = data.title;\\n this.body.value = data.body;\\n this.id.value = data.id;\\n\\n // change form state\\n this.changeFormState( \\\"edit\\\" )\\n\\n }\",\n \"function save() {\\r\\n this.textarea.value = this.content();\\r\\n }\",\n \"function load() {\\n this.setContent(this.textarea.value);\\n }\",\n \"saveData() {\\n if (this.s.unavailable()) {\\n return;\\n }\\n\\n for (const val of this.dispField.items) {\\n this.s.set(val, this.dispField.checked(val));\\n }\\n\\n this.s.set(\\\"unit\\\", this.unitField.get());\\n this.s.set(\\\"format\\\", this.formatField.get());\\n this.s.set(\\\"sort\\\", this.sortableField.toArray());\\n }\",\n \"function setSource(aSrc) {\\n\\n\\tdocument.getElementById('frmFacturation').hdnSource.value = aSrc;\\n\\tdocument.getElementById('frmFacturation').submit();\\n\\n}\",\n \"save() {\\n try {\\n this._toggleSaveThrobber();\\n this._readFromForm();\\n this.dao.save();\\n\\n // make sure the edit input is showing the correct id, reload data from server\\n document.getElementById('edit_id').value = this.dao.id;\\n this.read();\\n \\n } catch(e) {\\n console.log(e);\\n alert(e);\\n }\\n this._toggleSaveThrobber();\\n }\",\n \"function save() {\\n this.textarea.value = this.content();\\n }\",\n \"function goToDesEditPage() {\\n $('#dest_name').val(window.deliveryRecord.item.object.location_name);\\n $('#dest_number').val(window.deliveryRecord.item.object.location_number);\\n $('#dest_address').val(window.deliveryRecord.item.object.address);\\n $('#dest_city').val(window.deliveryRecord.item.object.city);\\n $('#dest_state').val(window.deliveryRecord.item.object.state);\\n $('#dest_zip').val(window.deliveryRecord.item.object.zip);\\n $('#dest_contact').val(window.deliveryRecord.item.object.contact);\\n $('#dest_phone').val(window.deliveryRecord.item.object.phone);\\n $('#dest_email').val(window.deliveryRecord.item.object.email);\\n $('#dest_cell').val(window.deliveryRecord.item.object.cell);\\n $('textarea#dest_notes').val(window.deliveryRecord.item.object.location_notes);\\n $('#dest_id').val(window.deliveryRecord.item.object.id);\\n }\",\n \"updateForm(data) {\\n\\t\\tthis.employeeName.value = data.name;\\n\\t\\tthis.employeeAge.value = data.age;\\n\\t\\tthis.employeePosition.value = data.position;\\n\\t\\tthis.employeeSalary.value = data.salary;\\n\\t}\",\n \"function setupDataForForm(){\\n if(typeof(hotty) != \\\"undefined\\\"){\\n $('#import_data').val(JSON.stringify(hotty.getData()));\\n console.log(\\\"updating the data...\\\");\\n }\\n else{\\n console.log(\\\"hotty isnt there, maybe just booting up!\\\");\\n }\\n }\",\n \"function moveToStep2(student) {\\n if (student != null) {\\n $('#name').val(student.name);\\n $('#gender').val(student.gender);\\n $('#birthday').val(student.birthday);\\n $('#phone').val(student.phone);\\n }\\n}\",\n \"function applyCurrentVarSource(){\\n currentVarSourceIndex = document.getElementById(\\\"varsource\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = pitchDataChangeForm();\\n}\",\n \"function fillForm (data) {\\n\\t\\n edit_record = data.records[0];\\n\\t\\n\\tarchive_id = edit_record['oid'];\\n\\tif ( /^\\\\d/.test(archive_id) ) archive_id = 'dar:' + archive_id;\\n\\t\\n\\tnumeric_id = archive_id;\\n\\tif ( /^dar:/.test(numeric_id) ) numeric_id = numeric_id.substr(4);\\n\\t\\n\\tsetInnerHTML('dar_header', \\\"Data Archive \\\" + numeric_id);\\n\\tsetElementValue('dar_id', archive_id);\\n\\tsetElementValue('dar_title', edit_record['title']);\\n\\tsetElementValue('dar_description', edit_record['description']);\\n\\tsetElementValue('dar_authors', edit_record['authors']);\\n\\tsetElementValue('dar_public', edit_record['is_public']);\\n\\t\\n\\tvar archive_uri = edit_record['uri_path'] + \\\"?\\\" + edit_record['uri_args'];\\n\\t\\n\\tsetElementValue('dar_uri', archive_uri);\\n\\t\\n\\tvar doi_content = '';\\n\\t\\n\\tif ( edit_record['doi'] )\\n\\t{\\n\\t doi_content = '';\\n\\t if ( edit_record.prm == 'admin' )\\n\\t\\tdoi_content = doi_content + '&nbsp;';\\n\\t disableElement('dar_title', true);\\n\\t disableElement('dar_authors', true);\\n\\t disableElement('dar_public', true);\\n\\t}\\n\\t\\n\\telse\\n\\t{\\n\\t if ( edit_record.sta == 'pending' || edit_record.status == 'pending' )\\n\\t {\\n\\t\\tdoi_content = 'DOI has been requested&nbsp;&nbsp;' +\\n\\t\\t \\\"\\\";\\n\\t\\tif ( edit_record.prm == 'admin' )\\n\\t\\t doi_content = doi_content + \\\"&nbsp;\\\";\\n\\t }\\n\\t \\n else\\n\\t {\\n\\t\\tdoi_content = \\\"\\\";\\n }\\n\\t \\n\\t disableElement('dar_title', false);\\n\\t disableElement('dar_authors', false);\\n\\t disableElement('dar_public', false);\\n\\t}\\n\\t\\n\\tsetInnerHTML('dar_doi', doi_content);\\n\\t\\n\\tsetInnerHTML('dar_fetched', edit_record['fetched']);\\n\\tsetInnerHTML('dar_created', edit_record['dcr']);\\n\\tsetInnerHTML('dar_modified', edit_record['dmd']);\\n\\t\\n\\tif ( edit_record['ent'] )\\n\\t{\\n\\t var authent = edit_record['ent'];\\n\\n\\t if ( edit_record['ath'] && edit_record['ath'] != edit_record['ent'] )\\n\\t\\tauthent = authent + ' (' + edit_record['ath'] + ')';\\n\\t \\n\\t setInnerHTML('dar_authent', authent);\\n\\t}\\n }\",\n \"_readFromForm() {\\n this.dao.citation_id = document.getElementById('citation_id').value;\\n this.dao.ott_id = document.getElementById('ott_id').value;\\n this.dao.background_noise_in_decibel = document.getElementById('background_noise_in_decibel').value;\\n this.dao.calibration = document.getElementById('calibration').value;\\n this.dao.distance_to_sound_source_in_meter = document.getElementById('distance_to_sound_source_in_meter').value;\\n this.dao.facility_id = document.getElementById('facility_id').value;\\n this.dao.latitude_in_decimal_degree = document.getElementById('latitude_in_decimal_degree').value;\\n this.dao.longitude_in_decimal_degree = document.getElementById('longitude_in_decimal_degree').value;\\n this.dao.measurement_method_id = document.getElementById('measurement_method_id').value;\\n this.dao.measurement_type = document.getElementById('measurement_type').value;\\n this.dao.medium = document.getElementById('medium').value;\\n this.dao.number_of_measurements = document.getElementById('number_of_measurements').value;\\n this.dao.position_first_electrode = document.getElementById('position_first_electrode').value;\\n this.dao.position_second_electrode = document.getElementById('position_second_electrode').value;\\n this.dao.position_third_electrode = document.getElementById('position_third_electrode').value;\\n this.dao.position_of_animal = document.getElementById('position_of_animal').value;\\n this.dao.sedated = document.getElementById('sedated').value;\\n this.dao.sedation_details = document.getElementById('sedation_details').value;\\n this.dao.test_environment_description = document.getElementById('test_environment_description').value;\\n this.dao.testtone_form_method_id = document.getElementById('testtone_form_method_id').value;\\n this.dao.testtone_presentation_method_constants = document.getElementById('testtone_presentation_method_constants').value;\\n this.dao.testtone_presentation_sound_form = document.getElementById('testtone_presentation_sound_form').value;\\n this.dao.testtone_presentation_staircase = document.getElementById('testtone_presentation_staircase').value;\\n this.dao.threshold_determination_method = document.getElementById('threshold_determination_method').value;\\n this.dao.year_of_experiment_start = document.getElementById('year_of_experiment_start').value;\\n this.dao.year_of_experiment_end = document.getElementById('year_of_experiment_end').value;\\n }\",\n \"fillForm(data){\\n this.titleInput.value = data.title\\n this.bodyInput.value = data.body\\n this.idInput.value = data.id\\n\\n this.changeFormState('edit')\\n }\",\n \"function goToOriginEditPage() {\\n $('#location_name').val(window.originRecord.item.object.location_name);\\n $('#origin_location_number').val(window.originRecord.item.object.location_number);\\n $('#location_address').val(window.originRecord.item.object.address);\\n $('#location_city').val(window.originRecord.item.object.city);\\n $('#location_state').val(window.originRecord.item.object.state);\\n $('#location_zip').val(window.originRecord.item.object.zip);\\n $('#location_contact').val(window.originRecord.item.object.contact);\\n $('#location_phone').val(window.originRecord.item.object.phone);\\n $('#location_email').val(window.originRecord.item.object.email);\\n $('#location_cell').val(window.originRecord.item.object.cell);\\n $('textarea#location_notes').val(window.originRecord.item.object.location_notes);\\n $('#location_id').val(window.originRecord.item.object.id);\\n }\",\n \"function getFormData() {\\n // User Info Obj\\n const user = {\\n netID: document.getElementById('netID').value,\\n contact: document.getElementById('contact').value,\\n location: document.getElementById('location').value,\\n description: document.getElementById('issue').value,\\n team: document.getElementById('team').value,\\n manager: document.getElementById('managerId').value\\n };\\n // Get priority level selection RadioButtons\\n const rbs = document.querySelectorAll('input[name=radioBtn]');\\n let selectedValue;\\n for (const rb of rbs) {\\n if (rb.checked) {\\n selectedValue = rb.value;\\n break;\\n }\\n }\\n /*Get category*/\\n const category = {\\n cat: document.getElementById('cat').value,\\n sub: document.getElementById('sub').value\\n };\\n //Formatting for txt file.\\n const userData =\\n 'NetID: ' +\\n user.netID +\\n '\\\\n' +\\n '\\\\n' +\\n 'Contact: ' +\\n user.contact +\\n '\\\\n' +\\n '\\\\n' +\\n 'Location: ' +\\n user.location +\\n '\\\\n' +\\n '\\\\n' +\\n 'Priority: ' +\\n selectedValue +\\n '\\\\n' +\\n '\\\\n' +\\n 'Category: ' +\\n category.cat +\\n '\\\\n' +\\n '\\\\n' +\\n 'Sub-Category: ' +\\n category.sub +\\n '\\\\n' +\\n '\\\\n' +\\n 'Assignment Team: ' +\\n user.team +\\n '\\\\n' +\\n '\\\\n' +\\n 'Group Manager Contact: ' +\\n user.manager +\\n '\\\\n' +\\n '\\\\n' +\\n 'Full Description: ' +\\n '\\\\n' +\\n user.description;\\n //print date\\n const today = new Date();\\n //save BLOB to txt file\\n const blob = new Blob([userData], { type: 'text/plain;charset=utf-8' });\\n saveAs(blob, today);\\n //refresh page for new form\\n location.reload();\\n}\",\n \"function startEdit() {\\n document.getElementById(\\\"summaryDetails\\\").style.display=\\\"none\\\"\\n document.getElementById(\\\"editFields\\\").style.display=\\\"block\\\"\\n document.getElementById(\\\"fNameFieldEdit\\\").value=firstName\\n document.getElementById(\\\"lNameFieldEdit\\\").value=lastName\\n let giftField = document.getElementById(\\\"giftEdit\\\")\\n for (let i = 0; i < giftField.options.length; i++) {\\n if (giftField.options[i].text=== gift) {\\n giftField.options[i].selected = true;\\n break;\\n }\\n }\\n document.getElementById(\\\"form1Edit\\\").value=occasion\\n let surpriseField = document.getElementById(\\\"surpriseEdit\\\")\\n for (let i = 0; i < surpriseField.options.length; i++) {\\n if (surpriseField.options[i].text=== suprise) {\\n surpriseField.options[i].selected = true;\\n break;\\n }\\n }\\n let typeField = document.getElementById(\\\"typeEdit\\\")\\n for (let i = 0; i < typeField.options.length; i++) {\\n if (typeField.options[i].text=== type) {\\n typeField.options[i].selected = true;\\n break;\\n }\\n }\\n let numberMusiciansField = document.getElementById(\\\"numberMusiciansEdit\\\")\\n for (let i = 0; i < numberMusiciansField.options.length; i++) {\\n if (numberMusiciansField.options[i].text=== numberMusicians) {\\n numberMusiciansField.options[i].selected = true;\\n break;\\n }\\n }\\n document.getElementById(\\\"date-time-fieldEdit\\\").value= dateService + \\\"T\\\" + timeService\\n document.getElementById(\\\"address-line-fieldEdit\\\").value = address\\n let cityField = document.getElementById(\\\"cityEdit\\\")\\n for (let i = 0; i < cityField.options.length; i++) {\\n if (cityField.options[i].text=== city) {\\n cityField.options[i].selected = true;\\n break;\\n }\\n}\\n document.getElementById(\\\"zipEdit\\\").value = zip\\n document.getElementById(\\\"offered-fieldEdit\\\").value = offered\\n document.getElementById(\\\"phoneEdit\\\").value = number\\n document.getElementById(\\\"emailEdit\\\").value = email\\n document.getElementById(\\\"commentEdit\\\").value = comments\\n}\",\n \"function load_data() {\\n var input = document.getElementById(\\\"commentName\\\");\\n var comm = document.getElementById(\\\"commentText\\\");\\n\\n input.value = localStorage.getItem('Name');\\n comm.value = localStorage.getItem('Comment');\\n}\",\n \"_save() {\\n\\t\\tconst version = this._editor.model.document.version;\\n\\n\\t\\t// Operation may not result in a model change, so the document's version can be the same.\\n\\t\\tif ( version === this._lastDocumentVersion ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\ttry {\\n\\t\\t\\tthis._data = this._getData();\\n\\t\\t\\tthis._lastDocumentVersion = version;\\n\\t\\t} catch ( err ) {\\n\\t\\t\\tconsole.error(\\n\\t\\t\\t\\terr,\\n\\t\\t\\t\\t'An error happened during restoring editor data. ' +\\n\\t\\t\\t\\t'Editor will be restored from the previously saved data.'\\n\\t\\t\\t);\\n\\t\\t}\\n\\t}\",\n \"function populate() {\\n $('#title').val(localStorage.getItem('title')),\\n $('#description').val(localStorage.getItem('description')),\\n $('#content').html(localStorage.getItem('content'));\\n}\",\n \"function loadSavedEmp() {\\t\\n\\tcopyContenidoIntegradoSaved();\\n\\tintegratedPaymentValidation = validateSavedPaymentEmpDesktop;\\n}\",\n \"function fillEditForm() {\\n let selectedBook = document.getElementById('selected-book')\\n let titleInput = document.getElementById('title-edit-in')\\n let authorInput = document.getElementById('author-edit-in')\\n let genreInput = document.getElementById('genre-edit-in')\\n let pagesInput = document.getElementById('pages-edit-in')\\n let i = selectedBook.dataset.index\\n\\n titleInput.value = library[i].title\\n authorInput.value = library[i].author\\n genreInput.value = library[i].genre\\n pagesInput.value = library[i].numPages \\n}\",\n \"save() {\\n const newBasicBinary = trs80_base_1.parseBasicText(this.textarea.value);\\n if (typeof newBasicBinary === \\\"string\\\") {\\n this.showError(newBasicBinary);\\n return;\\n }\\n const newBasicProgram = trs80_base_1.decodeBasicProgram(newBasicBinary);\\n if (newBasicProgram === undefined) {\\n // I don't know how this might happen.\\n this.showError(\\\"Can't decode Basic program\\\");\\n return;\\n }\\n this.trs80.loadBasicProgram(newBasicProgram);\\n this.close();\\n }\",\n \"function storeData() {\\n trainName = $(\\\"#Train-Name\\\").val();\\n destinationName = $(\\\"#Destination-Name\\\").val();\\n firstTrainTime = $(\\\"#First-Time\\\").val();\\n trainFrequency = $(\\\"#Frequency\\\").val();\\n}\",\n \"function fread(){\\n\\tif(x.value == \\\"\\\"){\\n\\t\\talert(\\\"Create a note first!!!\\\");\\n\\t}\\n\\telse if(document.Notes.note.value == \\\"\\\"){\\n\\t\\talert(\\\"Type something!!!\\\");\\n\\t}\\n\\telse if(x.selectedIndex > s.length-1){\\n\\ts.push(document.Notes.note.value);\\n\\talert(\\\"Successfully saved\\\");\\n\\t}\\n\\telse {\\n\\t\\ts[x.selectedIndex] = document.Notes.note.value;\\n\\t\\talert(\\\"Successfully saved\\\");\\n\\t}\\n}\",\n \"function setData() {\\n localStorage.setItem('name', username.value);\\n localStorage.setItem('email', email.value);\\n localStorage.setItem('city', city.value);\\n localStorage.setItem('organisation', organisation.value);\\n localStorage.setItem('contact', contact.value);\\n localStorage.setItem('message', message.value);\\n // Reset all the fields.\\n username.value = '';\\n email.value = '';\\n city.value = 'city';\\n organisation.value = '';\\n contact.value = '';\\n message.value = '';\\n\\n}\",\n \"fillForm() {\\n\\n if (localStorage.getItem(\\\"lastname\\\") !== undefined)\\n $(\\\"form\\\")[0].lastname.value = localStorage.getItem(\\\"lastname\\\");\\n\\n if (localStorage.getItem(\\\"firstname\\\") !== undefined)\\n $(\\\"form\\\")[0].firstname.value = localStorage.getItem(\\\"firstname\\\");\\n\\n }\",\n \"function addData(e) {\\n // prevent default - we don't want the form to submit in the conventional way\\n e.preventDefault();\\n\\n // grab the values entered into the form fields and store them in an object ready for being inserted into the DB\\n let newItem = { title: titleInput.value, body: bodyInput.value };\\n\\n // open a read/write db transaction, ready for adding the data\\n let transaction = db.transaction(['notes_os'], 'readwrite');\\n\\n // call an object store that's already been added to the database\\n let objectStore = transaction.objectStore('notes_os');\\n\\n // Make a request to add our newItem object to the object store\\n let request = objectStore.add(newItem);\\n request.onsuccess = function() {\\n // Clear the form, ready for adding the next entry\\n titleInput.value = '';\\n bodyInput.value = '';\\n };\\n\\n // Report on the success of the transaction completing, when everything is done\\n transaction.oncomplete = function() {\\n console.log('Transaction completed: database modification finished.');\\n\\n // update the display of data to show the newly added item, by running displayData() again.\\n displayData();\\n };\\n\\n transaction.onerror = function() {\\n console.log('Transaction not opened due to error');\\n };\\n}\",\n \"function saveState() {\\n const state = {\\n cf: cfSelect.value,\\n gf: gfSelect.value,\\n mf: mfSelect.value,\\n am: amSelect.value,\\n };\\n localStorage.setItem('collecting_together_form', JSON.stringify(state));\\n }\",\n \"function applySourceDataChanges(){\\n var composer = document.getElementById(\\\"composer\\\").value;\\n var title = document.getElementById(\\\"title\\\").value;\\n var location = document.getElementById(\\\"location\\\").value;\\n var ownership = document.getElementById(\\\"ownership\\\").value;\\n var date = document.getElementById(\\\"date\\\").value;\\n var publicationstatus = document.getElementById(\\\"publicationstatus\\\").value;\\n var medium = document.getElementById(\\\"medium\\\").value;\\n var x = document.getElementById(\\\"x\\\").value;\\n var y = document.getElementById(\\\"y\\\").value;\\n var unit = document.getElementById(\\\"unit\\\").value;\\n var condition = document.getElementById(\\\"condition\\\").value;\\n var extent = document.getElementById(\\\"extent\\\").value;\\n var language = document.getElementById(\\\"language\\\").value;\\n var handwriting = document.getElementById(\\\"handwriting\\\").value;\\n \\n if(composer){\\n currentSource.composer = composer;\\n }\\n if(title){\\n currentSource.title = title;\\n }\\n if(location){\\n currentSource.location = location;\\n }\\n if(ownership){\\n currentSource.ownership = ownership;\\n }\\n if(date){\\n currentSource.date = date;\\n }\\n if(publicationstatus){\\n currentSource.publicationstatus = publicationstatus;\\n }\\n if(medium){\\n currentSource.medium = medium;\\n }\\n if(x){\\n currentSource.x = x;\\n }\\n if(y){\\n currentSource.y = y;\\n }\\n if(unit){\\n currentSource.unit = unit;\\n }\\n if(condition){\\n currentSource.condition = condition;\\n }\\n if(extent){\\n currentSource.extent = extent;\\n }\\n if(language){\\n currentSource.language = language;\\n }\\n if(handwriting){\\n currentSource.handwriting = handwriting;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = sourceDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"save () {\\n\\n // Validate\\n if (this.checkValidity()) {\\n\\n // Collect input\\n this.info.item = this.collectInput();\\n\\n // Show modal\\n this.modal.show();\\n }\\n }\",\n \"function afterEdit(e) {\\n record = e.record;\\n if (record.id == 0) {\\n draft_store.load({params: {field: e.field, value: e.value}});\\n } else {\\n save_store.load({params: {field: e.field, id: e.record.id, value: e.value}});\\n }\\n }\",\n \"function populateEditScreen(dataPassedIn) {\\n // populating the edit screen with fillable fields\\n var funnelStageHtmlOutput = '';\\n funnelStageHtmlOutput += '';\\n var ratingHtmlOutput = '';\\n ratingHtmlOutput += '';\\n\\n $('#js-position-header-edit').html('');\\n $('#js-company-header-edit').html('');\\n for (var i = 1; i <= 6; i++) {\\n if (dataPassedIn.funnelStage == i) {\\n // first search for the index where i occurs\\n var indx = funnelStageHtmlOutput.search(i);\\n // then pass that index (+2 to account for closing double quotes and a space following)\\n funnelStageHtmlOutput = funnelStageHtmlOutput.slice(0, indx + 2) + ' selected=\\\"selected\\\"' + funnelStageHtmlOutput.slice(indx + 2);\\n }\\n };\\n $('#js-funnel-stage').html(funnelStageHtmlOutput);\\n $('#js-company-overview').html('');\\n $('#js-company-size').html(' employees');\\n $('#js-position-location').html('');\\n $('#js-salary-benefits').html('');\\n $('#js-job-description').html('');\\n if (dataPassedIn.applicationDate != null) {\\n var dateForEditScreen = ((dataPassedIn.applicationDate).split('T'))[0];\\n $('#js-application-date').html('');\\n } else {\\n $('#js-application-date').html('');\\n };\\n $('#js-contact-name').html('');\\n $('#js-contact-email').html('');\\n $('#js-application-materials').html('');\\n if (dataPassedIn.interviewDate != null) {\\n var dateForEditScreen = ((dataPassedIn.interviewDate).split('T'))[0];\\n $('#js-interview-date').html('');\\n } else {\\n $('#js-interview-date').html('');\\n };\\n $('#js-interview-follow-up').html('');\\n $('#js-lead-source').html('');\\n $('#js-notes').html('');\\n for (var i = 1; i <= 4; i++) {\\n if (dataPassedIn.rating == i) {\\n // first search for the index where i occurs\\n var indx = ratingHtmlOutput.search(i);\\n // then pass that index (+2 to account for closing double quotes and a space following)\\n ratingHtmlOutput = ratingHtmlOutput.slice(0, indx + 2) + ' selected=\\\"selected\\\"' + ratingHtmlOutput.slice(indx + 2);\\n }\\n };\\n $('#js-rating').html(ratingHtmlOutput);\\n}\",\n \"function applyStaffDataChanges(){\\n var linecount = document.getElementById(\\\"linecount\\\").value;\\n var linecolor = document.getElementById(\\\"linecolor\\\").value;\\n var mode = document.getElementById(\\\"mode\\\").value;\\n \\n if(linecount && linecount != \\\"none\\\"){\\n currentStaff.linecount = linecount;\\n }\\n if(linecolor && linecolor != \\\"none\\\"){\\n currentStaff.linecolor = linecolor;\\n }\\n if(mode && mode != \\\"none\\\"){\\n currentStaff.mode = mode;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = staffDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function copyInfoToModal(emp) {\\n $('#TextBoxTitle').val(emp.Title);\\n $('#TextBoxFirstname').val(emp.Firstname);\\n $('#TextBoxLastname').val(emp.Lastname);\\n $('#TextBoxPhone').val(emp.Phoneno);\\n $('#TextBoxEmail').val(emp.Email);\\n $('#CheckBoxIsTech').val(emp.IsTech);\\n loadDepartmentDDL(emp.DepartmentId);\\n $('#HiddenId').val(emp.Id);\\n $('#HiddenEntity').val(emp.Entity64);\\n $('#HiddenPic').val(emp.StaffPicture64);\\n}\",\n \"resetFormContent() {\\n ContentUtils.updateElementContent(\\\"delimiter\\\", \\\"?\\\");\\n ContentUtils.updateElementContent(\\\"hasHeaderRow\\\", \\\"?\\\");\\n ContentUtils.updateElementContent(\\\"fileSize\\\", 0);\\n ContentUtils.updateElementContent(\\\"totalRecords\\\", 0);\\n ContentUtils.updateElementContent(\\\"badRecords\\\", 0);\\n ContentUtils.updateElementContent(\\\"inputCsvTable\\\", \\\"\\\");\\n ContentUtils.updateElementContent(\\\"badCsvTable\\\", \\\"\\\");\\n ContentUtils.updateElementContent(\\\"interpolatedCsvTable\\\", \\\"\\\");\\n ContentUtils.updateElementContent(\\\"invalidData\\\", \\\"\\\");\\n }\",\n \"function prefill_form(){\\ndocument.getElementById(\\\"ref\\\").value = localStorage.job1Ref;\\ndocument.getElementById(\\\"jobtitle\\\").value = localStorage.joblTitles;\\n//alert(localStorage.job1Ref);\\n}\",\n \"updateToStore() {\\r\\n if (this.props.formSetValue)\\r\\n this.props.formSetValue(this.props.inputProps.name, this.fieldStatus.value, this.fieldStatus.valid, this.fieldStatus.dirty, this.fieldStatus.visited);\\r\\n }\",\n \"updateToStore() {\\r\\n if (this.props.formSetValue)\\r\\n this.props.formSetValue(this.props.inputProps.name, this.fieldStatus.value, this.fieldStatus.valid, this.fieldStatus.dirty, this.fieldStatus.visited);\\r\\n }\",\n \"function fetchStorage() {\\n txtFName.value = localStorage.getItem(\\\"input-name\\\");\\n txtLName.value = localStorage.getItem(\\\"input-lastname\\\");\\n txtPhone.value = localStorage.getItem(\\\"input-phone\\\");\\n txtEmail.value = localStorage.getItem(\\\"input-email\\\");\\n }\",\n \"function copyForward() {\\n if(global_formCount < 1)\\n return;\\n\\n $('#form-' + (global_formCount - 1) + ' :input').each(function(){\\n\\n if($(this).val()) {\\n var classes = $(this).attr(\\\"class\\\").split(\\\" \\\");\\n\\n if(classes[0] !== 'apptDate') {\\n openFormData(\\\"#form-\\\" + global_formCount, classes[0], $(this).val()); \\n }\\n }\\n });\\n\\n $('#form-' + global_formCount).change();\\n}\",\n \"function setSavedState() {\\n const state = JSON.parse(localStorage.getItem('collecting_together_form'));\\n if (state) {\\n cfSelect.value = state.cf ? state.cf : '';\\n gfSelect.value = state.gf ? state.gf : '';\\n mfSelect.value = state.mf ? state.mf : '';\\n amSelect.value = state.am ? state.am : '';\\n }\\n }\",\n \"function displayEditData(){\\n \\t$('#editItemName').val(dataitemname[currentCount]);\\n \\t$('#editDepartment').val(datadepartment[currentCount]);\\n \\t\\t$('#editDescription').val(datadescription[currentCount]);\\n \\t$('#editDesireDate').val(datadesiredate[currentCount]);\\n \\t$('#editTag').val(datasearchtags[currentCount]);\\n \\t//$('#editItems').listview('refresh');\\n }\",\n \"function loaddata(){\\n\\t\\tvar data1 = localStorage.getItem(\\\"infor_sku\\\") || \\\"\\\";\\n\\t\\tvar data2 = localStorage.getItem(\\\"pd\\\") || \\\"\\\";\\n\\t\\tvar data3 = localStorage.getItem(\\\"sh\\\") || \\\"\\\";\\n\\t\\tif (!!data1) { sku_items = JSON.parse(data1); }\\n\\t\\tif (!!data2) { pd_items = JSON.parse(data2); }\\n\\t\\tif (!!data3) { sh_items = JSON.parse(data3); }\\n\\t\\t$(\\\"#datafile\\\").val( localStorage.getItem(\\\"datafile\\\") ||\\\"http://123.123.123.250:5000/\\\");\\n\\t\\t$(\\\"#myfile\\\").val( localStorage.getItem(\\\"myfile\\\") ||\\\"spchkm/\\\");\\n\\t\\t\\n\\t}\",\n \"function storeForm() {\\n /*jshint validthis:true */\\n var form = $(this);\\n var formId = form[0].id;\\n if (!formId) return;\\n var formJSON = app.formToData(form);\\n if (!formJSON) return;\\n app.formStoreData(formId, formJSON);\\n form.trigger('store form:storedata', {data: formJSON});\\n }\",\n \"function detailsFromForm(event) {\\n event.preventDefault();\\n var location = event.target.store_name.value;\\n var minCust = event.target.min_cust.value;\\n var maxCust = event.target.max_cust.value;\\n var aveSales = event.target.ave_sales.value;\\n var storenew = new Store(location,minCust,maxCust,aveSales);\\n populateRows(storenew);//add an array of hourly sales numbers to store object\\n storesToUse.push(storenew);\\n\\n\\n\\n //console.log('stores to use',storesToUse);\\n dave.innerHTML = '';\\n tableheadrow.innerHTML = '';\\n createTabel(storesToUse);\\n\\n\\n storeForm.reset();\\n}\",\n \"function storeData(){\\r\\n\\t\\tvar id \\t\\t\\t\\t= Math.floor(Math.random()*100000000001);\\r\\n\\t\\t//Gather up all our form field values and store in an object\\r\\n\\t\\t//Object properties contain an array with the form label and input value\\r\\n\\t\\tgetSelectedRadio();\\r\\n\\t\\tvar item \\t\\t\\t\\t= {};\\r\\n\\t\\t\\titem.comicTitle\\t\\t= [\\\"Title of Comic:\\\", e('comicTitle').value];\\r\\n\\t\\t\\titem.seriesTitle\\t= [\\\"Title of Series:\\\", e('seriesTitle').value];\\r\\n\\t\\t\\titem.issueNum\\t\\t= [\\\"Issue Number:\\\", e('issueNum').value];\\r\\n\\t\\t\\titem.dateReleased\\t= [\\\"Date Released:\\\", e('dateReleased').value];\\r\\n\\t\\t\\titem.publisher\\t\\t= [\\\"Publisher:\\\", e('publisher').value];\\r\\n\\t\\t\\titem.rateIssue\\t\\t= [\\\"Rate of Issue:\\\", e('rateIssue').value];\\r\\n\\t\\t\\titem.genre \\t\\t\\t= [\\\"Genre:\\\", e('genre').value];\\r\\n\\t\\t\\titem.illStyle\\t\\t= [\\\"Illustration Style:\\\", styleValue];\\r\\n\\t\\t\\titem.comments\\t\\t= [\\\"Comments:\\\", e('comments').value];\\r\\n\\t\\t//Save data into Local Storage: Use Stringify to convert our object to a string\\r\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\r\\n\\t\\talert(\\\"Comic saved to index!\\\");\\r\\n\\t}\",\n \"function storeCurrent() {\\r\\n let currentData = {\\r\\n regexInput: regexInput.value,\\r\\n templateInput: templateInput.value,\\r\\n globalCheckbox: globalCheckbox.checked,\\r\\n caseInsensitiveCheckbox: caseInsensitiveCheckbox.checked,\\r\\n multilineCheckbox: multilineCheckbox.checked,\\r\\n IgnoreHTMLCheckbox: IgnoreHTMLCheckbox.checked,\\r\\n resultTextarea: resultTextarea.value,\\r\\n selectedItemIndex:selectedItemIndex,\\r\\n smallForm: smallFormCheckbox.checked\\r\\n };\\r\\n let store = browser.storage.local.set({\\r\\n currentData\\r\\n });\\r\\n store.then(onError, onError);\\r\\n}\",\n \"save(blockContainer) {\\n let newData = {}\\n\\n // Get the contents of each field for this tool.\\n for (let key in this.fields) {\\n const element = blockContainer.querySelector(`.${this.CSS.input}[data-key=${key}]`)\\n newData[key] = element.tagName == 'INPUT' ? element.value : element.innerHTML\\n newData[key] = newData[key].replace('&nbsp;', ' ').trim() // Strip non-breaking whitespace\\n }\\n\\n // TODO: Because of autosave, this strips out necessary defaults prematurely.\\n //this.removeInactiveData()\\n return Object.assign(this.data, newData)\\n }\",\n \"function savestate() {\\n state = $(\\\"#states\\\").val();\\n $(\\\"#state\\\").val(state);\\n}\",\n \"function loadExistingFormValues() {\\n\\n // lesion has been found, load data and fill out form\\n if( meCompletedLesions[meCurrentLesion] ) {\\n\\tloadExistingQuestion4();\\n\\tloadExistingQuestion5();\\n\\tloadExistingQuestion6();\\n\\tloadExistingQuestion7();\\n\\tloadExistingQuestion8();\\n\\tloadExistingQuestion9();\\n\\tloadExistingQuestion10();\\n loadExistingQuestion11();\\n loadExistingComment();\\n showSaveButton();\\n }\\n}\",\n \"function applyCurrentStaff(){\\n currentN = document.getElementById(\\\"staff\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = staffDataChangeForm();\\n}\",\n \"function saveData()\\n{\\n\\t\\\"use strict\\\";\\n\\n\\n\\tvar currentDate = new Date();\\n\\tvar year, month, day;\\n\\tyear = currentDate.getFullYear();\\n\\t\\n\\tif (currentDate.getMonth().toString().length === 1)\\n\\t{\\n\\t\\tmonth = \\\"0\\\" + currentDate.getMonth().toString(); \\n\\t}\\n\\telse\\n\\t{\\n\\t\\tmonth = currentDate.getMonth().toString();\\n\\t}\\n\\t\\n\\tif (currentDate.getDate().toString().length === 1)\\n\\t{\\n\\t\\tday = \\\"0\\\" + currentDate.getDate().toString(); \\n\\t}\\n\\telse\\n\\t{\\n\\t\\tday = currentDate.getDate().toString();\\n\\t}\\n\\t\\n\\tcreationDate = year + month + day;\\n\\talert(creationDate);\\n\\tcreationTime = currentDate.getHours() + \\\":\\\" + currentDate.getMinutes();\\n\\n\\t\\n\\ttitle = document.getElementById(\\\"txtTitle\\\").value;\\n content = document.getElementById(\\\"txtContent\\\").value;\\n\\tteacherName = document.getElementById(\\\"txtTeacherName\\\").value;\\n\\tsubject = document.getElementById(\\\"txtSubject\\\").value;\\n\\t\\n\\talert(\\\"Your information has been saved\\\");\\n\\n\\tdeadline = document.getElementById(\\\"txtDeadline\\\").value;\\n\\n\\n\\t// Add code to store rest of input in variables here\\n \\n// Store the information in localstorage\\n localStorage.setItem(\\\"title\\\", title);\\n localStorage.setItem(\\\"content\\\", content);\\n\\tlocalStorage.setItem(\\\"teacherName\\\", teacherName);\\n\\n \\n //alert to inform user data has been saved.\\n\\n}\",\n \"function putValueToForm() {\\r\\n\\r\\n localStorValues3 = localStorage.getItem(localStorage.key(event.target.id));\\r\\n\\r\\n NlistOfLSvalues = JSON.parse(localStorValues3);\\r\\n\\r\\n myRef =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.innerText;\\r\\n removeAfromNameProduct =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.previousElementSibling.previousElementSibling\\r\\n .innerText;\\r\\n myDescription =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.previousElementSibling.innerText;\\r\\n myPrice =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.innerText;\\r\\n myStock =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .innerText;\\r\\n\\r\\n key.value = event.target.id;\\r\\n ref.value = myRef;\\r\\n nameProduct.value = removeAfromNameProduct;\\r\\n descriptionProduct.value = myDescription;\\r\\n price.value = myPrice;\\r\\n stock.value = myStock;\\r\\n}\",\n \"function editContent(){\\n targetItem.children[0].textContent = capitalizeFirstLetter(inputField.value)\\n itemEditedSuccess()\\n // Pass new values to storage\\n storageEditItem(targetItemText, inputField.value)\\n \\n // Restore app functionality (exit edit-mode)\\n clearInputField()\\n submitBtnReplace.removeEventListener('click', editContent)\\n beginApp()\\n }\",\n \"function setDataFromLocalStorage() { \\t\\n \\tCORE.LOG.addInfo(\\\"PROFILE_PAGE:setDataFromLocalStorage\\\");\\n \\t$(\\\"#name\\\").val(gameData.data.player.profile.name);\\n \\t$(\\\"#surname\\\").val(gameData.data.player.profile.surname);\\n \\t$(\\\"#age\\\").val(gameData.data.player.profile.age);\\n \\t$(\\\"#sex\\\").val(gameData.data.player.profile.sex);\\n \\t$(\\\"#mobile\\\").val(gameData.data.player.profile.mobile); \\n \\t \\t \\t\\n }\",\n \"function importSave() {\\r\\n\\tlet data = prompt(\\\"Paste your save string here\\\");\\r\\n\\r\\n\\tif (data !== null && data !== '')\\r\\n\\t\\tparseAndImportData(data);\\r\\n\\t\\t\\r\\n\\trunAll();\\r\\n}\",\n \"function updateOutput4() {\\n localStorage.setItem('info4', input_textarea4.value)\\n}\",\n \"function copiar(){\\n document.frmEditProveedor.mdl_edit_proveedorId.value = $('#prod_proveedorId').val();\\n document.frmEditProveedor.mdl_edit_tipoProveedor.value = $('#prod_tipoProveedor').val();\\n document.frmEditProveedor.mdl_edit_nombre.value = $('#prod_nombre').val();\\n document.frmEditProveedor.mdl_edit_email.value = $('#prod_email').val();\\n document.frmEditProveedor.mdl_edit_telefono.value = $('#prod_telefono').val();\\n document.frmEditProveedor.mdl_edit_sitioWeb.value = $('#prod_sitioWeb').val(); \\n}\",\n \"function copyUserInfo() {\\n \\\"use strict\\\";\\n if ($(\\\"sameaddress\\\").checked) {\\n $(\\\"fname2\\\").value = $(\\\"fname\\\").value;\\n $(\\\"lname2\\\").value = $(\\\"lname\\\").value;\\n $(\\\"addresstype2\\\").selectedIndex = $(\\\"addresstype\\\").selectedIndex;\\n if ($(\\\"addresstype2\\\").selectedIndex === 6) {\\n $(\\\"otheraddressform2\\\").classList.remove(\\\"nonedisplay\\\");\\n $(\\\"otheraddress2\\\").value = $(\\\"otheraddress\\\").value;\\n }\\n $(\\\"address2\\\").value = $(\\\"address\\\").value;\\n $(\\\"aptnumber2\\\").value = $(\\\"aptnumber\\\").value;\\n $(\\\"city2\\\").value = $(\\\"city\\\").value;\\n $(\\\"state2\\\").value = $(\\\"state\\\").value;\\n $(\\\"zip2\\\").value = $(\\\"zip\\\").value;\\n $(\\\"phonenumber2\\\").value = $(\\\"phonenumber\\\").value;\\n $(\\\"state2\\\").value = $(\\\"state\\\").value;\\n $(\\\"email2\\\").value = $(\\\"email\\\").value;\\n }\\n}\",\n \"function updateOutput2() {\\n localStorage.setItem('info2', input_textarea2.value)\\n}\",\n \"function saveData(id)\\n\\t{\\n\\t\\tvar f = document.fuploadr;\\n\\t\\tvar data = ImageStore[id];\\n\\t\\t\\n\\t\\tdata.title\\t\\t = f.title.value;\\n\\t\\tdata.description = f.description.value;\\n\\t\\tdata.tags\\t\\t = f.tags.value;\\n\\t\\tdata.is_public\\t = getChecked(f.is_public, 0);\\n\\t\\tdata.is_friend\\t = getChecked(f.is_friend, 0);\\n\\t\\tdata.is_family\\t = getChecked(f.is_family, 0);\\n\\t\\tdata.safety_level = f.safety_level.value;\\n\\t\\tdata.hidden\\t\\t = getChecked(f.hidden, 1);\\n\\t\\t//data.content_type = f.content_type.value;\\n\\t}\",\n \"function loadExistingData() {\\n existingData = lbs.limeDataConnection.ActiveInspector.Controls.GetValue('creditinfo')\\n if (existingData) {\\n existingData = lbs.loader.xmlToJSON(existingData, 'creditdata');\\n if (moment().diff(existingData.creditdata.ratingData.ratingDate, 'days') < self.config.maxAge) {\\n viewModel.ratingValue(existingData.creditdata.ratingData.ratingValue);\\n viewModel.ratingText(existingData.creditdata.ratingData.ratingText);\\n viewModel.ratingDate(existingData.creditdata.ratingData.ratingDate);\\n }\\n }else if(viewModel.inline){\\n existingData = viewModel.inline;\\n viewModel.ratingValue('?');\\n viewModel.ratingText('Ingen kreditrating tagen');\\n viewModel.loadText('Ta kreditkontroll');\\n }\\n }\",\n \"function _loadData()\\n\\t{\\n\\t\\ttry\\n\\t\\t{\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//create EZ.script.options from defaults\\n\\t\\t\\tvar options = EZ.script.options = EZ.options(EZ.defaultOptions.script);\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t//---------------------------------------------------------------------\\n\\t\\t\\tvar json = localStorage.getItem('EZ.script.savedData')\\n\\t\\t\\tEZ.script.savedData = json ? JSON.parse(json) : {}\\t\\n\\t\\t\\t//---------------------------------------------------------------------\\n\\t\\t\\t\\n\\t\\t\\tvar savedData = json ? JSON.parse(json) : {}\\t\\n\\t\\t\\tif (savedData.version != options.version)\\n\\t\\t\\t\\tsavedData = {version: options.version, timestamp:''};\\n\\t\\t\\t//savedData.listValues = savedData.listValues || {}\\n\\t\\t\\tsavedData.listOptions = savedData.listOptions || {};\\n\\t\\t\\tsavedData.fieldValues = savedData.fieldValues || {};\\n\\t\\t\\t\\n\\t\\t\\tvar log = EZ.field.add(savedData.fieldValues);\\t//restore saved fieldValues\\n\\t\\t\\tEZ.log('EZscript.loadData', 'restored fieldValues', log);\\n\\t\\t\\t\\n\\t\\t\\tlog = EZ.field.add(['EZscript']);\\t\\t\\t\\t//add fields with default values (not saved)\\n\\t\\t\\tEZ.log('EZscript.loadData', 'all EZscript fields', {log:log});\\n\\t\\t\\t\\n\\t\\t\\tlog = EZ.event.trigger(['EZscript']);\\t\\t\\t//fire events to initialize EZ.script.options\\n\\t\\t\\tEZ.log('EZscript.loadData', {'onload events':log})\\n\\t\\t\\t\\n\\t\\t\\tsetTimeout(function()\\t\\t\\t\\t\\t\\t\\t//after events run...\\n\\t\\t\\t{\\n\\t\\t\\t\\toptions.listNames.forEach(function(name)\\t//populate saved list(s) options\\n\\t\\t\\t\\t{\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t//...and select save values\\n\\t\\t\\t\\t\\tvar list = _getEl(options.tags[name]);\\n\\t\\t\\t\\t\\tif (list)\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\tvar listValue = EZ.get(list);\\n\\t\\t\\t\\t\\t\\tvar listOptions = '.'.concat(name,'.optionsList').ov(savedData.listOptions)\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t || [].slice.call(list.options);\\n\\t\\t\\t\\t\\t\\tlistOptions = EZ.script.listOptions[name] \\n\\t\\t\\t\\t\\t\\t\\t\\t\\t= EZ.displayDropdown(list, listOptions, listValue);\\n\\t\\t\\t\\t\\t\\t_displayValue(name + 'Count', listOptions.valueList.length.wrap('['))\\n\\n\\t\\t\\t\\t\\t\\tvar value = EZ.get(list)\\n\\t\\t\\t\\t\\t\\tif (name == 'history' && value.toInt() > 0)\\n\\t\\t\\t\\t\\t\\t\\t_displayValue('optionTime', value);\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\tif (name == 'favorites' && list.selectedIndex > 1)\\n\\t\\t\\t\\t\\t\\t\\t_displayValue('favoriteName', list.options[list.selectedIndex].text);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t});\\n\\t\\t\\t\\tEZ.script.saveData()\\n\\t\\t\\t}, 0 );\\n\\t\\t}\\n\\t\\tcatch (e)\\n\\t\\t{\\n\\t\\t\\treturn EZ.oops(e);\\n\\t\\t}\\n\\t}\",\n \"function storeForm() {\\n\\t /*jshint validthis:true */\\n\\t var form = $(this);\\n\\t var formId = form[0].id;\\n\\t if (!formId) return;\\n\\t var formJSON = app.formToData(form);\\n\\t if (!formJSON) return;\\n\\t app.formStoreData(formId, formJSON);\\n\\t form.trigger('store form:storedata', {data: formJSON});\\n\\t }\",\n \"function restore_inputs () {\\n\\n\\t\\t\\t\\tparse_variables();\\n\\n\\t\\t\\t\\t$('.form-w').val(W);\\n\\t\\t\\t\\t$('.form-b').val(B);\\n\\t\\t\\t\\t$('.form-mf').val(Mf);\\n\\t\\t\\t\\t$('.form-mt').val(Mt);\\n\\n\\t\\t\\t}\",\n \"handleSourceData(){\\n let self = this;\\n $(this.fromInput).on('change keyup', function(e) {\\n e.preventDefault();\\n let slugData = self.generateSlug($(this).val());\\n // Replace new to slug:\\n $(self.wrapper).val(slugData)\\n });\\n }\",\n \"function handleEdit() {\\n console.log('in handleEdit');\\n // Turn on edit mode\\n setEditMode(true);\\n\\n // Set values in state from our list reducer\\n setTitle(trip.location);\\n setDate(trip.start_date.slice(0, 10));\\n setDays(trip.days);\\n\\n }\",\n \"function save(e) {\\n var node = e.target;\\n if (node.nodeName === 'INPUT' && node.checked) {\\n localStorage[node.name] = node.value;\\n }\\n else if (node.nodeName === 'SELECT') {\\n localStorage[node.name] = node.value;\\n }\\n }\",\n \"function onModalSubmit(){\\n if(validatemodalbox()){\\n var formData = readEditData();\\n if(selectedRow==null)\\n insertNewData(formData);\\n else\\n updateData(formData);\\n }\\n}\",\n \"function updateOutput7() {\\n localStorage.setItem('info7', input_textarea7.value)\\n}\",\n \"function Save() {\\n if ($('#ab041AddEdit').valid()) {\\n if (vm.isNew) {\\n dataContext.add(\\\"/api/ab041\\\",vm.ab041).then(function (data) {\\n notify.showMessage('success', \\\"ab041 record added successfully!\\\");\\n\\t\\t\\t\\t\\t\\twindow.location.hash = \\\"/ab041/\\\";\\n });\\n } else {\\n dataContext.upDate(\\\"/api/ab041\\\", vm.ab041).then(function (data) {\\n notify.showMessage('success', \\\"ab041 record updated successfully!\\\");\\n\\t\\t\\t\\t\\t\\twindow.location.hash = \\\"/ab041/\\\";\\n });\\n }\\n }\\n }\",\n \"function setData(){\\n\\n\\t\\t$.ajax({\\n\\t\\t\\turl : \\\"/currentTitle\\\",\\n\\t\\t\\tmethod: \\\"GET\\\",\\n\\t\\t\\tsuccess : function(foundNote){\\n\\t\\t\\t\\tif(foundNote!==false){\\n\\t\\t\\t\\t\\t$('#title').val(foundNote.title);\\n\\t\\t\\t\\t\\t$('#note-view').val(foundNote.text);\\n\\t\\t\\t\\t\\t$('#course').val(foundNote.code);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t$.ajax({\\n\\t\\t\\t\\t\\turl : \\\"/current\\\",\\n\\t\\t\\t\\t\\tmethod: \\\"GET\\\",\\n\\t\\t\\t\\t\\tsuccess : function(currentUser){\\n\\t\\t\\t\\t\\t\\tif(currentUser!==false){\\n\\t\\t\\t\\t\\t\\t\\t\\t$(\\\"#author\\\").text(currentUser);\\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}\\n\\t\\t});\\n\\t}\",\n \"function whenStart() {\\n if (localStorage.form) {\\n var savedForm = JSON.parse(localStorage.form)\\n document.getElementById('00').value = savedForm.column1\\n document.getElementById('11').value = savedForm.column2\\n document.getElementById('22').value = savedForm.column3\\n document.getElementById('33').value = savedForm.column4\\n document.getElementById('44').value = savedForm.column5\\n document.getElementById('55').value = savedForm.column6\\n document.getElementById('66').value = savedForm.column7\\n document.getElementById('77').value = savedForm.column8\\n document.getElementById('88').value = savedForm.column9\\n\\n }\\n }\",\n \"function copyData2Form(form, statut, acteurcourant) {\\n form.id = globalDAData.id;\\n if (globalDAData.bdc != \\\"\\\") { form.bdc = \\\"BDC n° \\\"+globalDAData.bdc; } else {form.bdc = \\\"\\\";}\\n form.fournisseur = globalDAData.fournisseur;\\n form.statut = statut;\\n form.demandeur = globalDAData.emetteur;\\n form.typedemande = globalDAData.typedemande;\\n form.nature = globalDAData.nature;\\n form.contactfournisseur = globalDAData.contactfournisseur;\\n form.buimputation = globalDAData.buimputation;\\n form.codeprojet = globalDAData.codeprojet;\\n form.nomprojet = globalDAData.nomprojet;\\n form.quantite = globalDAData.quantite;\\n if (globalDAData.prixtjmachat != '') {\\n form.prixunitairetjmachat = Utilities.formatString(\\\"%.2f\\\", globalDAData.prixtjmachat);\\n } else {\\n form.prixunitairetjmachat = '';\\n }\\n if (globalDAData.prixtjmvendu != '') {\\n form.prixunitairetjmvendu = Utilities.formatString(\\\"%.2f\\\", globalDAData.prixtjmvendu);\\n } else {\\n form.prixunitairetjmvendu = '';\\n }\\n if (globalDAData.marge != '') {\\n form.marge = Utilities.formatString(\\\"%.2f\\\", globalDAData.marge);\\n } else {\\n form.marge = '';\\n }\\n form.collaborateur = globalDAData.collaborateur;\\n form.datedebutlivraison = globalDAData.datedebutlivraison;\\n form.datefinlivraison = globalDAData.datefinlivraison;\\n form.adresselivraison = globalDAData.adresselivraison;\\n form.conditionreglement = globalDAData.conditionreglement;\\n form.urldevis = globalDAData.urlDevis;\\n if (globalDAData.urlBDCpdfsigne != '') {\\n form.lblbdcsigne = \\\"Lien de téléchargement\\\";\\n form.urlbdcsigne = globalDAData.urlBDCpdfsigne;\\n } else {\\n form.lblbdcsigne ='';\\n form.urlbdcsigne='';\\n }\\n form.acteurcourant = acteurcourant;\\n}\",\n \"function loadRecordToForm(data, readOnly) {\\n if (!data) {\\n data = {};\\n }\\n \\n // set record to form fields\\n var frm = self.settings().forms.record;\\n \\n // enable all form fields so they can be cleared\\n $('#'+frm+' :input').attr('disabled', false);\\n \\n deserializeJsonToForm('#'+frm, data);\\n \\n // enable or disable all form fields according to readOnly value\\n $('#'+frm+' :input').attr('disabled', readOnly ? true : false);\\n \\n // enable cancel button always\\n $('#'+self.settings().actions.btnCancel.id).attr('disabled', false);\\n }\",\n \"function loadData(data)\\n\\t{\\n\\t\\tvar f = document.fuploadr;\\n\\n\\t\\tf.title.value\\t\\t= data.title;\\n\\t\\tf.description.value = data.description;\\n\\t\\tf.tags.value\\t\\t= data.tags;\\n\\t\\tsetChecked(f.is_public, data.is_public);\\n\\t\\tsetChecked(f.is_friend, data.is_friend);\\n\\t\\tsetChecked(f.is_family, data.is_family);\\n\\t\\tsetChecked(f.hidden, data.hidden);\\n\\t\\tsetOption(f.safety_level, data.safety_level);\\n\\t}\",\n \"function populateUserForm() {\\n var cu = currentUser;\\n enter.name.value = cu.name;\\n enter.email.value = cu.email;\\n enter.age.value = cu.age;\\n enter.currentWeight.value = cu.currentWeight;\\n enter.targetWeight.value = cu.targetWeight;\\n}\",\n \"function backupInput() {\\n lastInput = ELEMENTS.UPDATE_TEXTAREA.val();\\n }\",\n \"function get_save_data()\\n {\\n var listselect = $('option:selected', rcmail.gui_objects.notebooks),\\n savedata = {\\n title: $.trim($('.notetitle', rcmail.gui_objects.noteviewtitle).val()),\\n description: rcmail.editor.get_content().replace(/^\\\\s*(

    <\\\\/p>\\\\n*)?/, ''),\\n list: listselect.length ? listselect.val() : me.selected_note.list || me.selected_list,\\n uid: me.selected_note.uid,\\n tags: taglist ? kolab_tags_input_value(taglist) : []\\n };\\n\\n // copy links\\n if ($.isArray(me.selected_note.links)) {\\n savedata.links = me.selected_note.links;\\n }\\n\\n return savedata;\\n }\",\n \"function make_ready_for_edit(source) {\\n var tr = source.parentNode;\\n remove_gray_bg_from_user_list();\\n make_appearance_ready_for_edit(tr);\\n //load input forms.................\\n show_in_form(tr);\\n // load referred table.............\\n load_ref_table(tr);\\n // create buy time select..........\\n var id = tr.getAttribute('data-id');\\n create_buy_time_part_for_edit(tr,id);\\n load_cheque_table(tr);\\n // this is for keep editable row after paging\\n document.getElementById('userTable').setAttribute('data-selectedId', id);\\n}\",\n \"function editSave() {\\n if (document.getElementById('edit_input').value == \\\"\\\") {\\n DOM.Modal.Close('edit_modal');\\n State.Reset();\\n return;\\n }\\n // check whether we're editing or adding\\n if (State.Adding.Get()) {\\n // the temporary array is necessary, otherwise the array can't be read/written properly\\n var tempTracks = [];\\n var desiredLocation;\\n // determine the array index where the track should be stored\\n if (State.Adding.Above.Get()) {desiredLocation = State.Editing.Get()-1}\\n if (State.Adding.Below.Get()) {desiredLocation = State.Editing.Get()}\\n // if neither add above or add below is specified, it will simply be appended\\n if(!State.Adding.Above.Get() && !State.Adding.Below.Get()) {desiredLocation = Data.Tracks.length}\\n // iterate through the tracks array\\n // shift all entries after the desired location down by one\\n for (let i = 0; i < Data.Tracks.length; i++) {\\n if (i >= desiredLocation) {\\n tempTracks[i+1] = Data.Tracks[i];\\n }\\n // keep all entries before the desired location\\n else {tempTracks[i] = Data.Tracks[i];}\\n }\\n // assign the added track to the \\\"now free\\\" index\\n tempTracks[desiredLocation] = document.getElementById('edit_input').value;\\n // apply the temporary array\\n Data.Tracks = tempTracks;\\n }\\n // apply the edited value to the original value in the array\\n else {\\n Data.Tracks[State.Editing.Get()-1] = document.getElementById('edit_input').value;\\n }\\n // close the modal and reset all the flags\\n DOM.Modal.Close('edit_modal');\\n State.Reset();\\n // refresh the UI\\n DOM.UI.Update();\\n}\",\n \"function copyText() {\\n\\tlocalStorage.setItem(\\\"text\\\", document.getElementById(\\\"textArea\\\").value);\\n\\tlocalStorage.setItem(\\\"size\\\", document.getElementById(\\\"fontSize\\\").value);\\n\\tlocalStorage.setItem(\\\"color\\\", document.getElementById(\\\"fontColor\\\").value);\\n\\tlocalStorage.setItem(\\\"font\\\", document.getElementById(\\\"font\\\").value);\\n}\",\n \"function save(e) {\\n let saveBtn = e.target;\\n let inputBox = event.target.parentNode.lastChild;\\n event.target.parentNode.firstChild.textContent = inputBox.value;\\n inputBox.style.display = \\\"none\\\";\\n saveBtn.style.display=\\\"none\\\";\\n let editBtn = event.target.nextSibling;\\n editBtn.style.display = \\\"inline\\\";\\n \\n}\",\n \"function storeEventInfo() {\\n\\n //altert text needs to be changes\\n\\n var date, description;\\n\\n date = document.getElementById(\\\"eDate\\\").value;\\n description = document.getElementById(\\\"eDescription\\\").value;\\n \\n if (date === \\\"\\\" ||\\n description === \\\"\\\" ){\\n alert(\\\"Please fill in all feilds\\\");\\n }\\n else {\\n addEventToDB(date, description);\\n defaultValues();\\n }\\n /*\\n //Test\\n console.log(\\\"date: \\\" + date);\\n console.log(\\\"description: \\\" + description);\\n */\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.6137056","0.58907235","0.5884312","0.58257735","0.57701504","0.57094574","0.5708018","0.5609881","0.5583303","0.5583078","0.5572007","0.5557354","0.5533146","0.54930824","0.5476319","0.54587466","0.5447343","0.5428146","0.54260945","0.54123664","0.5411267","0.5398148","0.53976446","0.5394337","0.5390247","0.5359353","0.53513026","0.5345939","0.5344817","0.5342787","0.53394777","0.5338808","0.5320329","0.5318637","0.5316784","0.5310457","0.52960306","0.5292902","0.5290222","0.5287646","0.52872","0.52815324","0.52790827","0.52671015","0.52622384","0.5248152","0.523353","0.5219424","0.52183706","0.5205667","0.5204235","0.52041143","0.5198611","0.51975054","0.51975054","0.5196511","0.51705784","0.51650727","0.5157027","0.5152229","0.5145039","0.5142503","0.5141143","0.5133424","0.51318663","0.51258266","0.51256984","0.51097393","0.5103917","0.5103688","0.51014346","0.5087539","0.50867164","0.5086354","0.50819516","0.5081147","0.50749385","0.5072542","0.50719404","0.50691104","0.5065655","0.50618064","0.50571287","0.5056331","0.5054902","0.50525165","0.5046042","0.50453275","0.50376153","0.5035499","0.5029148","0.5028486","0.5027743","0.50255746","0.50193924","0.5014006","0.5004713","0.5003244","0.5002013","0.50017","0.50013375"],"string":"[\n \"0.6137056\",\n \"0.58907235\",\n \"0.5884312\",\n \"0.58257735\",\n \"0.57701504\",\n \"0.57094574\",\n \"0.5708018\",\n \"0.5609881\",\n \"0.5583303\",\n \"0.5583078\",\n \"0.5572007\",\n \"0.5557354\",\n \"0.5533146\",\n \"0.54930824\",\n \"0.5476319\",\n \"0.54587466\",\n \"0.5447343\",\n \"0.5428146\",\n \"0.54260945\",\n \"0.54123664\",\n \"0.5411267\",\n \"0.5398148\",\n \"0.53976446\",\n \"0.5394337\",\n \"0.5390247\",\n \"0.5359353\",\n \"0.53513026\",\n \"0.5345939\",\n \"0.5344817\",\n \"0.5342787\",\n \"0.53394777\",\n \"0.5338808\",\n \"0.5320329\",\n \"0.5318637\",\n \"0.5316784\",\n \"0.5310457\",\n \"0.52960306\",\n \"0.5292902\",\n \"0.5290222\",\n \"0.5287646\",\n \"0.52872\",\n \"0.52815324\",\n \"0.52790827\",\n \"0.52671015\",\n \"0.52622384\",\n \"0.5248152\",\n \"0.523353\",\n \"0.5219424\",\n \"0.52183706\",\n \"0.5205667\",\n \"0.5204235\",\n \"0.52041143\",\n \"0.5198611\",\n \"0.51975054\",\n \"0.51975054\",\n \"0.5196511\",\n \"0.51705784\",\n \"0.51650727\",\n \"0.5157027\",\n \"0.5152229\",\n \"0.5145039\",\n \"0.5142503\",\n \"0.5141143\",\n \"0.5133424\",\n \"0.51318663\",\n \"0.51258266\",\n \"0.51256984\",\n \"0.51097393\",\n \"0.5103917\",\n \"0.5103688\",\n \"0.51014346\",\n \"0.5087539\",\n \"0.50867164\",\n \"0.5086354\",\n \"0.50819516\",\n \"0.5081147\",\n \"0.50749385\",\n \"0.5072542\",\n \"0.50719404\",\n \"0.50691104\",\n \"0.5065655\",\n \"0.50618064\",\n \"0.50571287\",\n \"0.5056331\",\n \"0.5054902\",\n \"0.50525165\",\n \"0.5046042\",\n \"0.50453275\",\n \"0.50376153\",\n \"0.5035499\",\n \"0.5029148\",\n \"0.5028486\",\n \"0.5027743\",\n \"0.50255746\",\n \"0.50193924\",\n \"0.5014006\",\n \"0.5004713\",\n \"0.5003244\",\n \"0.5002013\",\n \"0.50017\",\n \"0.50013375\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":218,"cells":{"query":{"kind":"string","value":"Navigational, leads to staff form."},"document":{"kind":"string","value":"function toStaffs(){\n document.getElementById(\"input\").innerHTML = staffForm();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function directUserFromViewInfo() {\n if (nextStep == \"Departments\") {\n viewDepartments();\n }\n if (nextStep == \"Roles\") {\n viewRoles();\n }\n if (nextStep == \"Employees\") {\n viewEmployees();\n }\n if (nextStep == \"All Information\") {\n viewAll();\n } \n }","function redirectToPhysioExperts() {\n\t\t\t$state.go(\"homepages.physioexperts\");\n\t\t}","function gotoForm() {\n toggleForm();\n }","function onCreateNewStaffClick() {\n $('#modal-register-staff').modal('show');\n }","function goToForm() {\n history.push('/form');\n }","function goToHome()\n{\n\tfrmHome.show();\n}","function redirectToFaq() {\n\t\t\t$state.go(\"homepages.faq\");\n\t\t}","function openEditUser() {\n routingBase.goToCurrentState('userDetails');\n }","function showEditForm(currentList, currentUser) {\n console.log(list);\n self.name = currentList.name;\n\n $state.go('updateList', {\n userId: currentUser._id,\n listId: currentList._id,\n currentList: currentList\n });\n }","function nav() {\n\t\t var w = document.reflinkform.reflinklist.selectedIndex;\n\t\t var url_add = document.reflinkform.reflinklist.options[w].value;\n\t\t window.location.href = url_add;\n\t\t}","function showList() {\n\t\t\t$state.go('flight.list');\n\t\t}","function directUserFromAddInfo() {\n if (nextStep == \"A new department\") {\n addDepartmenet();\n }\n if (nextStep == \"A new role\") {\n addRole();\n }\n if (nextStep == \"A new employee\") {\n addEmployee();\n } \n }","function backToScreenDtl(){\n\tupdateAccountListInfo(); \n\tnavController.initWithRootView('corp/account/list_info/acc_list_account_info_dtl', true, 'xsl');\n}","function openRegistrationPage() {\n $state.go('triangular.admin-default-no-scroll.registration');\n ToastService.showToast('Please create a account before play');\n }","function checkHomeDataFilled() {\n\t\t\tif (vm.flags.booknowSectionfieldsValid != true) {\n\t\t\t\t//$state.go('home');\n\t\t\t\twindow.location = \"/web/CustPortal/\";\n\t\t\t}\n\t\t}","function actionOnContactClick () {\n\n window.location = (\"/contacts/\" + lastName)\n \n }","editWorkAndEducation(){\n\t\tresources.workAndEducationTab().click();\n\t}","navigateAdd() {\n this.channel.trigger('show:form');\n }","function linkAdminCompose(fWhere) {\r\n setUpLinkBackJSON(fWhere);;\r\n window.location.href = \"adminCompose.html\";\r\n}","function linkStudentCompose(fWhere) {\r\n setUpLinkBackJSON(fWhere);\r\n window.location.href = \"studentCompose.html\";\r\n}","function adminForm(){\n $('#adminForm').modal('show');\n _roles_list();\n}","function redirectToHome(){\n\t\t\t\tvar form; // dynamic form that will call controller\t\n\t\t\t form = $('

    ', {\n\t\t\t action: \"dashboard.html\",\n\t\t\t method: 'get',\n\t\t\t style: 'display: none;'\n\t\t\t });\n\t\t\t //Form parameter insightId\n\t\t\t $(\"\").attr(\"type\", \"hidden\").attr(\"name\", \"googleSession\").val(googleStatus).appendTo(form);\n\t\t\t //Form submit\n\t\t\t form.appendTo('body').submit();\n\t\t\t}","redirectToPersonalDashbaord() {\n\t\tthis.props.history.push('/PersonalDashboard');\n\t}","function goToPage($this){\n if($this.val() !== null){document.location.href = $this.val()}\n }","function goToPage($this){\n if($this.val() !== null){document.location.href = $this.val()}\n }","function openULForm(data){\n\t$m.open(\"Edit Lead for IPT\", \"/IncomePlanner/UpdateLeadForm.html\",data.data);\n}","backToReferral(referral) {\n this.goToReferralPanel(referral);\n }","GoToAdmin()\n \t{\n \t\tif(this.state.isAdmin)\n \t\t{\n \t\t\tthis.setState({ currentPage : \"AdminPage\" })\n \t\t}\n \t\telse\n \t\t{\n \t\t\talert('Sorry ! Admins only .');\n \t\t}\n \t\t\n \t}","function firstfocus()\n{\nwindow.history.forward();\nvar uid = document.theForm.cname.focus();\ndocument.getElementById('exemption').style.display = 'none';\nreturn true;\n}","function addNewItem() { switchToView('edit-form'); }","function goToTaskForm() {\n window.location.href = TASK_CREATOR + '?id=' + projectID;\n}","onClick(business){\n\t\tBusinessActions.viewBusiness(business.id);\n\t\tNavigationActions.goTo('/businesses/'+business.id)\n\t}","function goToEmployeeDetail(event)\n{\n\twindow.location.assign(\"/employeeDetail/\");\n}","function show_this_list(lst_id, usr_id) {\r\n console.log(\"show this list called!\");\r\n location.href = \"/lists/\" + usr_id + \"/\" + lst_id;\r\n}","function staffingForm() {\n this.initialize = function() {\n var callbackFunction = $.Callbacks('once');\n callbackFunction.add(this.successUserProfile.bind(this));\n var errorCallbackFunction = $.Callbacks('once');\n errorCallbackFunction.add(this.serviceErrorHandler.bind(this));\n RSASERVICES.getUserProfile(\"\", callbackFunction, errorCallbackFunction,\n false, true, \"\");\n var currentLocation = window.location.href;\n //Click on staffing request link redirects to staffing forms page\n $(\"#staffingReqLink\").on(\n \"click\",\n function() {\n window.location.href = currentLocation.split(\n \"StaffingForms/StaffingFormsMain.html\").join(\n \"RetailStaffing/RetailStaffingRequest.html\");\n });\n //Click on interviewAvailability link redirects to interviewAvailability page\n $(\"#interviewAvailabilityLink\").on(\n \"click\",\n function() {\n window.location.href = currentLocation.split(\n \"StaffingForms/StaffingFormsMain.html\").join(\n \"StaffingForms/InterviewAvailability.html\");\n });\n //Click on interviewAvailability link redirects to interviewAvailability page\n $(\"#interviewSummaryLink\").on(\n \"click\",\n function() {\n window.location.href = currentLocation.split(\n \"StaffingForms/StaffingFormsMain.html\").join(\n \"RetailStaffing/InterviewResults.html\");\n });\n };\n /*\n * Method has the service handler\n * if service fails it will throw popup\n * for the message provided\n */\n this.serviceErrorHandler = function() {\n this\n .showModalPopUp(\"Unable to get your user profile information. Please try again later.\");\n };\n /*\n * Method has the functions can used to\n * show,block and drag the popup\n */\n this.showModalPopUp = function(msg) {\n $(\"#warningpopup\").modal({\n backdrop : 'static',\n keyboard : false\n });\n $(\"#warningpopup\").modal(\"show\");\n $(\"#warningpopup\").on('shown.bs.modal', function() {\n $(\"#warningpopup #warningOkbutton\").focus();\n });\n $(\"#warningpopup\").draggable({\n handle : \".modal-header\"\n });\n $(\"#warningpopup .sureMsg\").html(msg);\n $(\"#warningpopup #warningOkbutton\").attr(\"data-dismiss\", \"modal\");\n $(\"#warningpopup #warningCancelbutton\").hide();\n };\n /*\n * Method has the success response for\n * user profile service\n */\n this.successUserProfile = function(response) {\n $.unblockUI();\n CONSTANTS.userProfile = {};\n CONSTANTS.userProfileDetailsInform = {};\n //validate the condition in which the error code is equal to 0\n if (response && response.UserProfileResponseDTO\n && response.UserProfileResponseDTO.ErrorCd === 0) {\n CONSTANTS.userProfileDetailsInform = response;\n CONSTANTS.userProfile.userId = response.UserProfileResponseDTO.userId;\n $('.navbar-right .WelcomeText').text(\n \"Welcome \" + response.UserProfileResponseDTO.firstName\n + \" \" + response.UserProfileResponseDTO.lastName);\n $('.navbar-right .Storenumber').text(\n \"Store# \" + response.UserProfileResponseDTO.strNbr + \"\");\n } else {\n this\n .showModalPopUp(\"Unable to get your user profile information. Please try again later.\");\n }\n };\n}","function editPersonalInfo() {\n event.preventDefault();\n displayPersonalForm();\n}","function viewFullProfile() {\n history.push('/supported-employees/'+employee.id)\n }","showContact(model) {\n const entry = new ContactEntry({ model });\n this.showChildView('layout', entry);\n\n Backbone.history.navigate(`contact/${model.id}`);\n }","function goToChangeManagerHome() {\n $('#main').show();\n $('#navbuttons').hide();\n $('#requestdetails').hide();\n\n // $('#btnFilter').hide();\n // $('#btnResetFilter').hide();\n // $('.nav-tabs a[href=\"#myAssign\"]').tab('show');\n\n\n //refresh the grids\n showChangeRecords();\n showChangeRequests();\n showMyChangeRecords();\n showMyChangeRequests();\n getMyChangeTasks();\n getAllChangeTasks();\n}","function show_rec_list(lst_id, usr_id) {\r\n console.log(\"show this list called!\");\r\n location.href = \"/lists/\" + usr_id + \"/rec/\" + lst_id;\r\n}","function redirect(dest) {\n\thideCurrent(locate);\n\tactive_nav(dest);\n\t//show desired page element\n\tswitch(dest) {\n\t\tcase 'Home':\n\t\t\tshowElement('#slide-show');\n\t\t\tbreak;\n\t\tcase 'Login':\n\t\t\thideElement('#slide-show');\n\t\t\tshowElement('.full-page');\n\t\t\tshowElement('.login');\n\t\t\tbreak;\n\t\tcase 'SignUp':\n\t\t\thideElement('#slide-show');\n\t\t\tshowElement('.full-page');\n\t\t\tshowElement('.register');\n\t\t\tbreak;\n\t\tcase 'Dashboard':\n\t\t\tshowElement('.sidebar');\n\t\t\tshowElement('#task-dashboard');\n\t\t\tuser_retrieve('dashboard');\n\t\t\ttask_retrieve('ongoing');\n\t\t\tbreak;\n\t\tcase 'Account':\n\t\t\t$('#n_password').prop('disabled', true);\n\t\t\t$('#r_password').prop('disabled', true);\n\t\t\tuser_retrieve('account');\n\t\t\tbreak;\n\t\tcase 'Lead':\n\t\t\tdisplay_leaderboard();\n\t\t\tbreak;\n\t\tcase 'NewTask':\n\t\t\tshowElement('.full-page');\n\t\t\tshowElement('.task-create');\n\t\t\tbreak;\n\t\tcase 'EditTask':\n\t\t\tshowElement('.task-update');\n\t\t\tbreak;\n\t\tcase 'Task':\n\t\t\tshowElement('.full-page');\n\t\t\tshowElement('.sidebar');\n\t\t\tshowElement('#task-dashboard');\n\t\t\tuser_retrieve('dashboard');\n\t\t\ttask_retrieve('ongoing');\n\t\t\tbreak;\n\t\tcase 'About':\n\t\t\thideElement('.sidebar');\n\t\t\thideElement('#slide-show');\n\t\t\tshowElement('.content-about');\n\t\t\tbreak;\n\t\tcase 'Logout':\n\t\t\tlogout();\n\t\t\tbreak;\t\t\t\t\n\t}\n}","editEvent() {\n // redirect to createeventform page\n this.setState({\n view: 'editEvent',\n });\n }","function editUser() {\n window.location.href = '../newadmin/newadmin.html?id=' + admin.id;\n}","function linkBackViewInbox() {\r\n var fromWhere = JSON.parse(localStorage.getItem(\"emailToView\")).fromWhere;\r\n if (fromWhere == FROM_STUDENT_INBOX) {\r\n window.location.href = \"index.html\";\r\n } else if (fromWhere == FROM_ADMIN_INBOX) {\r\n window.location.href = \"adminInbox.html\";\r\n }\r\n localStorage.removeItem(\"emailToView\");\r\n}","function linkBackViewInbox() {\r\n var fromWhere = JSON.parse(localStorage.getItem(\"emailToView\")).fromWhere;\r\n if (fromWhere == FROM_STUDENT_INBOX) {\r\n window.location.href = \"index.html\";\r\n } else if (fromWhere == FROM_ADMIN_INBOX) {\r\n window.location.href = \"adminInbox.html\";\r\n }\r\n localStorage.removeItem(\"emailToView\");\r\n}","function gotoGoalsListScreen() {\n navigation.navigate('goalsListScreen');\n }","render() {\n if (this.state.redirectMain === true){\n return \n }\n return (\n
    \n Create Account Page\n
    \n\n
    \n\n
    \n Select Your Account Type: \n\n \n
    \n\n \n
    \n { this.state.showuser ? : null }\n { this.state.showadmin ? : null }\n
    \n
    \n \n
    \n
    \n );\n }","redirectToMeetings(ev) {\n ev.preventDefault();//prevent form submittion(delete team)\n loadMeetings(this.props.params.teamId,this.loadMeetings);\n }","function showParentForm() {\n $timeout(function () {\n var parentState = module['ModuleId'] + '.' + content.ContentId;\n $state.go(parentState);\n }, 10);\n }","function showParentForm() {\n $timeout(function () {\n var parentState = module['ModuleId'] + '.' + content.ContentId;\n $state.go(parentState);\n }, 10);\n }","function navToAddBook() {\n location.href = 'Admin.php?page=AddBook';\n}","function backToHomeView () {\n currentFolder = -1\n showOneContainer(homeContain)\n fetchSingleUser(currentUser)\n }","function setRoom(name) {\n $('form').remove();\n $('h1').text(name);\n $('#subTitle').text('Link to join: ' + location.href);\n $('body').addClass('active');\n }","function show_lists(usr_id) {\r\n console.log(\"show lists called!\");\r\n location.href = \"/lists/\" + usr_id;\r\n}","function redirectUserToThePageAccordingToHisRole() {\n UserService.requestUser((res) => {\n if (!res.data.success) {\n return NotificationService.info(res.data.data.data.message);\n }\n\n UserService.save(res.data.data);\n\n let isSuperAdmin = UserService.isSuperAdmin;\n if (isSuperAdmin()) {\n $window.location.hash = '#/';\n $window.location.pathname = '/admin/';\n } else {\n $window.location.hash = '#/';\n $window.location.pathname = '/app/';\n }\n });\n }","linkToProfile() {\n const id = this.props.person.id;\n const isStudent = this.props.person.customer_id ? true : false\n\n /* Use the customer_id field to check whether the person is\n a student or a teacher. */\n\n if (isStudent) {\n window.location = RouteConstants.admin.studentProfile(id);\n } else {\n window.location = RouteConstants.admin.teacherProfile(id);\n }\n }","function AddNewDetail() {\r\n navigation.navigate('DetailRegister', { edit: false, step: {} });\r\n }","function navShowSubmitForm(evt) {\n // console.debug(\"navShowSubmitForm\", evt);\n evt.preventDefault();\n // on click, show() the hidden stories form\n $submitForm.show();\n}","function linkAdminCompose(fWhere) {\r\n try {\r\n setUpLinkBackJSON(fWhere);;\r\n window.location.href = \"adminCompose.html\";\r\n } catch (e) {\r\n alert(e.name + \"\\n\" + e.message)\r\n }\r\n}","function getOrderStaffDetails() {\r\n//\tparent.document.searchResultsForm.loadPage.value = \"orderDetailPage\";\r\n\tparent.document.searchResultsForm.loadPage.value = \"orderStaffDetailPage\";\r\n\tparent.document.searchResultsForm.facilityId.value = facilityIdVal;\r\n\tparent.document.searchResultsForm.spectraMRN.value = spectraMRNVal;\r\n\tparent.document.searchResultsForm.processorName.value = 'OrderStaffProcessor';\r\n\tparent.document.searchResultsForm.processorAction.value = 'getOrderSum'; \r\n\tparent.document.searchResultsForm.submit();\r\n}","function handleDreamsEdit() {\n var currentDream = $(this)\n .parent()\n .parent()\n .parent()\n .data(\"dream\");\n window.location.href = \"/new-dream?dream_id=\" + currentDream.id;\n }","openCurrentUser() {\n window.location.href = window.location.origin + '/users?name=' + this.state.currentUser.firstName + ' ' + this.state.currentUser.lastName;\n }","function gotoeditteamsFunction() {\n var x = document.getElementById(\"addteamshtml\");\n var i = document.getElementById(\"editteamshtml\");\n var a = document.getElementById(\"homepagehtml\");\n x.style.display = \"none\";\n i.style.display = \"block\";\n a.style.display = \"none\"\n }","function directToContactForm ()\n{\n\t$('html, body').animate({\n\t\tscrollTop : $(\"#contact-me\").offset().top\n\t}, 'slow');\n}","function showRegister() {\n clearErrorMsg();\n showLinks(['loginLink']);\n showView('registerForm');\n}","function goToAccRec() {\n $('#peInvoiceInformation').show();\n $('#invoiceInformation').hide();\n $('#financialSection').show();\n updatePricingInfo();\n fillPeInvsTable(DATA);\n}","function Users(){\r\n window.location=\"/pages/Admin/users/users_ui.html\";\r\n}","function onEditContact(e) {\n contactForm.buildContactForm(activeContact); \n $.mobile.changePage(\"#edit_contact_page\", { transition: \"pop\" });\n}","goToReferralPanel(referral) {\n let personaBar = window.parent.dnn ? window.parent.dnn.PersonaBar : null;\n if (personaBar) {\n personaBar.openPanel(referral, {}); //Open, panel should already be rendered, so no need to pass params.\n this.updateReferral(\"\", \"\");\n }\n }","function goToTechnician() {\r\n\tdocument.location.href="https://huggingface.co/datasets/nomic-ai/cornstack-javascript-v1/viewer/default/technician.php";\r\n}","function view () {\n $('div.employeeList').removeClass('hidden');\n // $('form.addForm').addClass('hidden');\n var forms = document.querySelectorAll('form');\n if (forms[0] != undefined) {\n document.body.removeChild(forms[0]);\n }\n toggleActive('View');\n}","function showLogin() {\n clearErrorMsg();\n showView('loginForm');\n showLinks(['registerLink']);\n}","function linkStudentCompose(fWhere) {\r\n try {\r\n setUpLinkBackJSON(fWhere);\r\n window.location.href = \"studentCompose.html\";\r\n } catch (e) {\r\n alert(e.name + \"\\n\" + e.message)\r\n }\r\n}","back() {\n this.showUserEditForm = false;\n }","createAccount() {\n this.props.nav.navigate(\"Create Student User\");\n }","onClickNavToOverview() {\n this.transitionToRoute('manage.alert', this.get('id'));\n }","function activateForm(name){\n $('.signup-individual.active, .signup-team.active').removeClass('active');\n $('.signup-' + name).addClass('active');\n $('.register-as:checked').attr('checked', false);\n $('.register-as:not(:checked)').attr('checked', true);\n }","render(){\n return(\n
    \n

    Liste des employés

    \n \n \n
    \n );\n }","function onGoBack() {\n setFormDataEdit(null);\n setStep('Menu');\n }","function showList() {\n\t\t\t$state.go('^');\n\t\t}","function showList() {\n\t\t\t$state.go('^');\n\t\t}","function clickFacultyDirectory(){\r\n window.location.href = 'FacultyDirectory.php';\r\n}","nav_helper_edit(data) {\n\t\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\n\t\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\n\t\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\n\t\tutil.elementClickable(this.editBtn)\n\t}","function editPage () {\n EditReviewService.setFromReviewPage(true)\n $state.go(this.goToRoute)\n }","function goToListView(){\n\t$(\"#bankId\").val(\"\");\n\tvar mainmenu = $('#mainmenu').val();\n\tvar pageview = $('#pageview').val();\n\tif (pageview == \"bankView\") {\n\t\t$('#pageview').val('banklistview');\n\t\t$('#bankView').attr('action', 'listview?mainmenu='+mainmenu+'&time='+datetime);\n\t\t$(\"#bankView\").submit();\n\t} else {\n\t\t$('#pageview').val('othbanklistview');\n\t\t$('#bankView').attr('action', 'othbanklistview?mainmenu='+mainmenu+'&time='+datetime);\n\t\t$(\"#bankView\").submit();\n\t}\n}","function NavFormSelect(strFormName,strFieldName) {\n intSelected = document[strFormName].elements[strFieldName].options.selectedIndex;\n strURL = document[strFormName].elements[strFieldName].options[intSelected].value;\n document[strFormName].elements[strFieldName].options.selectedIndex = 0;\n if (strURL != \"\") {\n location.href = strURL;\n }\n}","showCreateForm(data) {\n this.clearNewOrgan(data);\n this.changeFormMode(this.FORM_MODES.CREATE);\n }","function showListForm() {\n vm.isListFormVisible = true;\n }","function redirect() {\n\tvar schemaBuilder = lf.schema.create('fashionfitness', 1);\n\tschemaBuilder.createTable('login').\n\t\taddColumn('id', lf.Type.INTEGER).\n\t\taddColumn('username', lf.Type.STRING).\n\t\taddColumn('password', lf.Type.STRING).\n\t\taddColumn('active', lf.Type.BOOLEAN).\n\t\taddPrimaryKey(['id']);\n\t// Connect to the database and add an account\n\tschemaBuilder.connect().then(function(db) {\n\t\tvar account = db.getSchema().table('login');\n\t\treturn db.select().\n\t\t\t\tfrom(account).\n\t\t\t\twhere(account.active.eq(true)).\n\t\t\t\texec().\n\t\tthen(function(results) {\n\t\t\tresults.forEach(function(row) {\n\t\t\t\tconsole.log(\"Utente loggato, reindirizzo alla dashboard\");\n\t\t\t\t// window.location.href = \"home.html\" // Adds an item to the history\n\t\t\t\twindow.location.replace(\"home.html\"); // It replaces the current history item, you can't go back\n\t\t\t});\n\t\t});\n\t});\n}","goToAjout() {\n history.push(\"/main/clients/ajout\");\n }","function switchForm(to=0) {\n let viaurl = document.getElementById('new-i-form-viaurl');\n let viaform = document.getElementById('new-i-form-page');\n if (viaurl && viaform) { \n viaurl.style.display = to ? 'none' : '';\n viaform.style.display = to ? '' : 'none';\n }\n}","function adminView(){\r\n window.location=\"/pages/Admin/admin.html\";\r\n}","function onSubmitted(){\n\t\t\t\t\t\t\t\t\t\t\tlocation.hash = \"/tool/list\";\n\t\t\t\t\t\t\t\t\t\t}","function goToEditNewsForm(newsId, urlBeginning) {\n\tvar targetUrl = urlBeginning + newsId + \"/\";\n\n\t$.ajax({\n\t\ttype : \"GET\",\n\t\turl : targetUrl,\n\t\tdata : {},\n\t\tsuccess : function(response) {\n\t\t\tsetInputFields(response.news);\n\t\t\tsetSendNotification(response.sendNotification);\n\t\t\tsetFormAction(response.formAction);\n\t\t\tsetTitleOfSubmitButton(response.localizedTitleOfSubmit);\n\t\t\tshowNewsForm();\n\t\t},\n\t\terror : function(e) {\n\t\t\talert(\"Error: \" + e.toSource());\n\t\t}\n\t});\n}","function updateLangStaff() {\n showOrder(currentTableID);\n showAccountBox();\n}","function StepBackForm(from, to) {\n $(\"#question\" + from).hide();\n $(\"#question\" + to).fadeIn(300);\n\n $(formInUse)[0].reset();\n }","function go_articulos() {\n $state.go('complex_articles.list');\n }","function goToMain() {\n let inputValue = $('#land-input').val()\n\n user.lastRecipeSearched = inputValue;\n user.addSearchedIngredients(inputValue);\n save(user)\n\n redirectMainUrl();\n}","function StaffController(StaffService, loggerFactory, $mdSidenav, $mdToast, $window) {\n var vm = this;\n vm.staffMembers = [];\n vm.appointment = {};\n vm.selectedMember = null;\n vm.isFabOpen = false;\n vm.isSelected = false;\n vm.selectedMemberIndex = 0;\n vm.selectStaffMember = selectStaffMember;\n vm.toggleMemberList = toggleMemberList;\n vm.toggleSelection = toggleSelection;\n vm.openSideMenu = openSideMenu;\n vm.navigateTo = navigateTo;\n vm.desiredDate = new Date();\n vm.currentTime = new Date().getTime();\n\n activate();\n\n /**\n * Initial execution function on page load.\n */\n function activate() {\n return StaffService.getAllStaffMembers().then(function (data) {\n vm.staffMembers = data;\n vm.selectedMember = data[0];\n loggerFactory.info('Staff Members: ', data);\n }, function (err) {\n loggerFactory.error('Get Staff Members: ', err);\n });\n }\n\n /**\n * Select the current staff member.\n * @param memberId\n */\n function selectStaffMember(member, index) {\n vm.isSelected = false;\n vm.selectedMemberIndex = index;\n vm.selectedMember = angular.isDefined(member) ? member : vm.staffMembers[0];\n if (!$mdSidenav('left').isLockedOpen()) {\n $mdSidenav('left').close();\n }\n }\n\n /**\n * Hide or Show the 'left' SideNav when small screen.\n */\n function toggleMemberList() {\n $mdSidenav('left').toggle();\n }\n\n function toggleSelection() {\n vm.isSelected = !vm.isSelected;\n if(vm.isSelected){\n showFavoriteToast();\n }\n }\n\n /**\n * Open the side menu when small screen.\n */\n function openSideMenu($mdMenu, event) {\n $mdMenu.open(event);\n }\n\n /**\n * Open favorite selected tooltip.\n */\n function showFavoriteToast() {\n $mdToast.show({\n hideDelay: 3000,\n position: 'top right',\n controller: 'ToastController',\n controllerAs: 'toast',\n templateUrl: 'fav_toast_template.html',\n bindToController: true\n });\n }\n\n /**\n * Go to requested URL..\n * @param url\n */\n function navigateTo(url){\n $window.open(url, '_blank');\n }\n }","nav_helper_view1(data) {\n\t\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\n\t\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\n\t\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\n\t\t\n\n\t}"],"string":"[\n \"function directUserFromViewInfo() {\\n if (nextStep == \\\"Departments\\\") {\\n viewDepartments();\\n }\\n if (nextStep == \\\"Roles\\\") {\\n viewRoles();\\n }\\n if (nextStep == \\\"Employees\\\") {\\n viewEmployees();\\n }\\n if (nextStep == \\\"All Information\\\") {\\n viewAll();\\n } \\n }\",\n \"function redirectToPhysioExperts() {\\n\\t\\t\\t$state.go(\\\"homepages.physioexperts\\\");\\n\\t\\t}\",\n \"function gotoForm() {\\n toggleForm();\\n }\",\n \"function onCreateNewStaffClick() {\\n $('#modal-register-staff').modal('show');\\n }\",\n \"function goToForm() {\\n history.push('/form');\\n }\",\n \"function goToHome()\\n{\\n\\tfrmHome.show();\\n}\",\n \"function redirectToFaq() {\\n\\t\\t\\t$state.go(\\\"homepages.faq\\\");\\n\\t\\t}\",\n \"function openEditUser() {\\n routingBase.goToCurrentState('userDetails');\\n }\",\n \"function showEditForm(currentList, currentUser) {\\n console.log(list);\\n self.name = currentList.name;\\n\\n $state.go('updateList', {\\n userId: currentUser._id,\\n listId: currentList._id,\\n currentList: currentList\\n });\\n }\",\n \"function nav() {\\n\\t\\t var w = document.reflinkform.reflinklist.selectedIndex;\\n\\t\\t var url_add = document.reflinkform.reflinklist.options[w].value;\\n\\t\\t window.location.href = url_add;\\n\\t\\t}\",\n \"function showList() {\\n\\t\\t\\t$state.go('flight.list');\\n\\t\\t}\",\n \"function directUserFromAddInfo() {\\n if (nextStep == \\\"A new department\\\") {\\n addDepartmenet();\\n }\\n if (nextStep == \\\"A new role\\\") {\\n addRole();\\n }\\n if (nextStep == \\\"A new employee\\\") {\\n addEmployee();\\n } \\n }\",\n \"function backToScreenDtl(){\\n\\tupdateAccountListInfo(); \\n\\tnavController.initWithRootView('corp/account/list_info/acc_list_account_info_dtl', true, 'xsl');\\n}\",\n \"function openRegistrationPage() {\\n $state.go('triangular.admin-default-no-scroll.registration');\\n ToastService.showToast('Please create a account before play');\\n }\",\n \"function checkHomeDataFilled() {\\n\\t\\t\\tif (vm.flags.booknowSectionfieldsValid != true) {\\n\\t\\t\\t\\t//$state.go('home');\\n\\t\\t\\t\\twindow.location = \\\"/web/CustPortal/\\\";\\n\\t\\t\\t}\\n\\t\\t}\",\n \"function actionOnContactClick () {\\n\\n window.location = (\\\"/contacts/\\\" + lastName)\\n \\n }\",\n \"editWorkAndEducation(){\\n\\t\\tresources.workAndEducationTab().click();\\n\\t}\",\n \"navigateAdd() {\\n this.channel.trigger('show:form');\\n }\",\n \"function linkAdminCompose(fWhere) {\\r\\n setUpLinkBackJSON(fWhere);;\\r\\n window.location.href = \\\"adminCompose.html\\\";\\r\\n}\",\n \"function linkStudentCompose(fWhere) {\\r\\n setUpLinkBackJSON(fWhere);\\r\\n window.location.href = \\\"studentCompose.html\\\";\\r\\n}\",\n \"function adminForm(){\\n $('#adminForm').modal('show');\\n _roles_list();\\n}\",\n \"function redirectToHome(){\\n\\t\\t\\t\\tvar form; // dynamic form that will call controller\\t\\n\\t\\t\\t form = $('', {\\n\\t\\t\\t action: \\\"dashboard.html\\\",\\n\\t\\t\\t method: 'get',\\n\\t\\t\\t style: 'display: none;'\\n\\t\\t\\t });\\n\\t\\t\\t //Form parameter insightId\\n\\t\\t\\t $(\\\"\\\").attr(\\\"type\\\", \\\"hidden\\\").attr(\\\"name\\\", \\\"googleSession\\\").val(googleStatus).appendTo(form);\\n\\t\\t\\t //Form submit\\n\\t\\t\\t form.appendTo('body').submit();\\n\\t\\t\\t}\",\n \"redirectToPersonalDashbaord() {\\n\\t\\tthis.props.history.push('/PersonalDashboard');\\n\\t}\",\n \"function goToPage($this){\\n if($this.val() !== null){document.location.href = $this.val()}\\n }\",\n \"function goToPage($this){\\n if($this.val() !== null){document.location.href = $this.val()}\\n }\",\n \"function openULForm(data){\\n\\t$m.open(\\\"Edit Lead for IPT\\\", \\\"/IncomePlanner/UpdateLeadForm.html\\\",data.data);\\n}\",\n \"backToReferral(referral) {\\n this.goToReferralPanel(referral);\\n }\",\n \"GoToAdmin()\\n \\t{\\n \\t\\tif(this.state.isAdmin)\\n \\t\\t{\\n \\t\\t\\tthis.setState({ currentPage : \\\"AdminPage\\\" })\\n \\t\\t}\\n \\t\\telse\\n \\t\\t{\\n \\t\\t\\talert('Sorry ! Admins only .');\\n \\t\\t}\\n \\t\\t\\n \\t}\",\n \"function firstfocus()\\n{\\nwindow.history.forward();\\nvar uid = document.theForm.cname.focus();\\ndocument.getElementById('exemption').style.display = 'none';\\nreturn true;\\n}\",\n \"function addNewItem() { switchToView('edit-form'); }\",\n \"function goToTaskForm() {\\n window.location.href = TASK_CREATOR + '?id=' + projectID;\\n}\",\n \"onClick(business){\\n\\t\\tBusinessActions.viewBusiness(business.id);\\n\\t\\tNavigationActions.goTo('/businesses/'+business.id)\\n\\t}\",\n \"function goToEmployeeDetail(event)\\n{\\n\\twindow.location.assign(\\\"/employeeDetail/\\\");\\n}\",\n \"function show_this_list(lst_id, usr_id) {\\r\\n console.log(\\\"show this list called!\\\");\\r\\n location.href = \\\"/lists/\\\" + usr_id + \\\"/\\\" + lst_id;\\r\\n}\",\n \"function staffingForm() {\\n this.initialize = function() {\\n var callbackFunction = $.Callbacks('once');\\n callbackFunction.add(this.successUserProfile.bind(this));\\n var errorCallbackFunction = $.Callbacks('once');\\n errorCallbackFunction.add(this.serviceErrorHandler.bind(this));\\n RSASERVICES.getUserProfile(\\\"\\\", callbackFunction, errorCallbackFunction,\\n false, true, \\\"\\\");\\n var currentLocation = window.location.href;\\n //Click on staffing request link redirects to staffing forms page\\n $(\\\"#staffingReqLink\\\").on(\\n \\\"click\\\",\\n function() {\\n window.location.href = currentLocation.split(\\n \\\"StaffingForms/StaffingFormsMain.html\\\").join(\\n \\\"RetailStaffing/RetailStaffingRequest.html\\\");\\n });\\n //Click on interviewAvailability link redirects to interviewAvailability page\\n $(\\\"#interviewAvailabilityLink\\\").on(\\n \\\"click\\\",\\n function() {\\n window.location.href = currentLocation.split(\\n \\\"StaffingForms/StaffingFormsMain.html\\\").join(\\n \\\"StaffingForms/InterviewAvailability.html\\\");\\n });\\n //Click on interviewAvailability link redirects to interviewAvailability page\\n $(\\\"#interviewSummaryLink\\\").on(\\n \\\"click\\\",\\n function() {\\n window.location.href = currentLocation.split(\\n \\\"StaffingForms/StaffingFormsMain.html\\\").join(\\n \\\"RetailStaffing/InterviewResults.html\\\");\\n });\\n };\\n /*\\n * Method has the service handler\\n * if service fails it will throw popup\\n * for the message provided\\n */\\n this.serviceErrorHandler = function() {\\n this\\n .showModalPopUp(\\\"Unable to get your user profile information. Please try again later.\\\");\\n };\\n /*\\n * Method has the functions can used to\\n * show,block and drag the popup\\n */\\n this.showModalPopUp = function(msg) {\\n $(\\\"#warningpopup\\\").modal({\\n backdrop : 'static',\\n keyboard : false\\n });\\n $(\\\"#warningpopup\\\").modal(\\\"show\\\");\\n $(\\\"#warningpopup\\\").on('shown.bs.modal', function() {\\n $(\\\"#warningpopup #warningOkbutton\\\").focus();\\n });\\n $(\\\"#warningpopup\\\").draggable({\\n handle : \\\".modal-header\\\"\\n });\\n $(\\\"#warningpopup .sureMsg\\\").html(msg);\\n $(\\\"#warningpopup #warningOkbutton\\\").attr(\\\"data-dismiss\\\", \\\"modal\\\");\\n $(\\\"#warningpopup #warningCancelbutton\\\").hide();\\n };\\n /*\\n * Method has the success response for\\n * user profile service\\n */\\n this.successUserProfile = function(response) {\\n $.unblockUI();\\n CONSTANTS.userProfile = {};\\n CONSTANTS.userProfileDetailsInform = {};\\n //validate the condition in which the error code is equal to 0\\n if (response && response.UserProfileResponseDTO\\n && response.UserProfileResponseDTO.ErrorCd === 0) {\\n CONSTANTS.userProfileDetailsInform = response;\\n CONSTANTS.userProfile.userId = response.UserProfileResponseDTO.userId;\\n $('.navbar-right .WelcomeText').text(\\n \\\"Welcome \\\" + response.UserProfileResponseDTO.firstName\\n + \\\" \\\" + response.UserProfileResponseDTO.lastName);\\n $('.navbar-right .Storenumber').text(\\n \\\"Store# \\\" + response.UserProfileResponseDTO.strNbr + \\\"\\\");\\n } else {\\n this\\n .showModalPopUp(\\\"Unable to get your user profile information. Please try again later.\\\");\\n }\\n };\\n}\",\n \"function editPersonalInfo() {\\n event.preventDefault();\\n displayPersonalForm();\\n}\",\n \"function viewFullProfile() {\\n history.push('/supported-employees/'+employee.id)\\n }\",\n \"showContact(model) {\\n const entry = new ContactEntry({ model });\\n this.showChildView('layout', entry);\\n\\n Backbone.history.navigate(`contact/${model.id}`);\\n }\",\n \"function goToChangeManagerHome() {\\n $('#main').show();\\n $('#navbuttons').hide();\\n $('#requestdetails').hide();\\n\\n // $('#btnFilter').hide();\\n // $('#btnResetFilter').hide();\\n // $('.nav-tabs a[href=\\\"#myAssign\\\"]').tab('show');\\n\\n\\n //refresh the grids\\n showChangeRecords();\\n showChangeRequests();\\n showMyChangeRecords();\\n showMyChangeRequests();\\n getMyChangeTasks();\\n getAllChangeTasks();\\n}\",\n \"function show_rec_list(lst_id, usr_id) {\\r\\n console.log(\\\"show this list called!\\\");\\r\\n location.href = \\\"/lists/\\\" + usr_id + \\\"/rec/\\\" + lst_id;\\r\\n}\",\n \"function redirect(dest) {\\n\\thideCurrent(locate);\\n\\tactive_nav(dest);\\n\\t//show desired page element\\n\\tswitch(dest) {\\n\\t\\tcase 'Home':\\n\\t\\t\\tshowElement('#slide-show');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Login':\\n\\t\\t\\thideElement('#slide-show');\\n\\t\\t\\tshowElement('.full-page');\\n\\t\\t\\tshowElement('.login');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'SignUp':\\n\\t\\t\\thideElement('#slide-show');\\n\\t\\t\\tshowElement('.full-page');\\n\\t\\t\\tshowElement('.register');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Dashboard':\\n\\t\\t\\tshowElement('.sidebar');\\n\\t\\t\\tshowElement('#task-dashboard');\\n\\t\\t\\tuser_retrieve('dashboard');\\n\\t\\t\\ttask_retrieve('ongoing');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Account':\\n\\t\\t\\t$('#n_password').prop('disabled', true);\\n\\t\\t\\t$('#r_password').prop('disabled', true);\\n\\t\\t\\tuser_retrieve('account');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Lead':\\n\\t\\t\\tdisplay_leaderboard();\\n\\t\\t\\tbreak;\\n\\t\\tcase 'NewTask':\\n\\t\\t\\tshowElement('.full-page');\\n\\t\\t\\tshowElement('.task-create');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'EditTask':\\n\\t\\t\\tshowElement('.task-update');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Task':\\n\\t\\t\\tshowElement('.full-page');\\n\\t\\t\\tshowElement('.sidebar');\\n\\t\\t\\tshowElement('#task-dashboard');\\n\\t\\t\\tuser_retrieve('dashboard');\\n\\t\\t\\ttask_retrieve('ongoing');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'About':\\n\\t\\t\\thideElement('.sidebar');\\n\\t\\t\\thideElement('#slide-show');\\n\\t\\t\\tshowElement('.content-about');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Logout':\\n\\t\\t\\tlogout();\\n\\t\\t\\tbreak;\\t\\t\\t\\t\\n\\t}\\n}\",\n \"editEvent() {\\n // redirect to createeventform page\\n this.setState({\\n view: 'editEvent',\\n });\\n }\",\n \"function editUser() {\\n window.location.href = '../newadmin/newadmin.html?id=' + admin.id;\\n}\",\n \"function linkBackViewInbox() {\\r\\n var fromWhere = JSON.parse(localStorage.getItem(\\\"emailToView\\\")).fromWhere;\\r\\n if (fromWhere == FROM_STUDENT_INBOX) {\\r\\n window.location.href = \\\"index.html\\\";\\r\\n } else if (fromWhere == FROM_ADMIN_INBOX) {\\r\\n window.location.href = \\\"adminInbox.html\\\";\\r\\n }\\r\\n localStorage.removeItem(\\\"emailToView\\\");\\r\\n}\",\n \"function linkBackViewInbox() {\\r\\n var fromWhere = JSON.parse(localStorage.getItem(\\\"emailToView\\\")).fromWhere;\\r\\n if (fromWhere == FROM_STUDENT_INBOX) {\\r\\n window.location.href = \\\"index.html\\\";\\r\\n } else if (fromWhere == FROM_ADMIN_INBOX) {\\r\\n window.location.href = \\\"adminInbox.html\\\";\\r\\n }\\r\\n localStorage.removeItem(\\\"emailToView\\\");\\r\\n}\",\n \"function gotoGoalsListScreen() {\\n navigation.navigate('goalsListScreen');\\n }\",\n \"render() {\\n if (this.state.redirectMain === true){\\n return \\n }\\n return (\\n
    \\n Create Account Page\\n
    \\n\\n
    \\n\\n
    \\n Select Your Account Type: \\n\\n \\n
    \\n\\n \\n
    \\n { this.state.showuser ? : null }\\n { this.state.showadmin ? : null }\\n
    \\n
    \\n \\n
    \\n
    \\n );\\n }\",\n \"redirectToMeetings(ev) {\\n ev.preventDefault();//prevent form submittion(delete team)\\n loadMeetings(this.props.params.teamId,this.loadMeetings);\\n }\",\n \"function showParentForm() {\\n $timeout(function () {\\n var parentState = module['ModuleId'] + '.' + content.ContentId;\\n $state.go(parentState);\\n }, 10);\\n }\",\n \"function showParentForm() {\\n $timeout(function () {\\n var parentState = module['ModuleId'] + '.' + content.ContentId;\\n $state.go(parentState);\\n }, 10);\\n }\",\n \"function navToAddBook() {\\n location.href = 'Admin.php?page=AddBook';\\n}\",\n \"function backToHomeView () {\\n currentFolder = -1\\n showOneContainer(homeContain)\\n fetchSingleUser(currentUser)\\n }\",\n \"function setRoom(name) {\\n $('form').remove();\\n $('h1').text(name);\\n $('#subTitle').text('Link to join: ' + location.href);\\n $('body').addClass('active');\\n }\",\n \"function show_lists(usr_id) {\\r\\n console.log(\\\"show lists called!\\\");\\r\\n location.href = \\\"/lists/\\\" + usr_id;\\r\\n}\",\n \"function redirectUserToThePageAccordingToHisRole() {\\n UserService.requestUser((res) => {\\n if (!res.data.success) {\\n return NotificationService.info(res.data.data.data.message);\\n }\\n\\n UserService.save(res.data.data);\\n\\n let isSuperAdmin = UserService.isSuperAdmin;\\n if (isSuperAdmin()) {\\n $window.location.hash = '#/';\\n $window.location.pathname = '/admin/';\\n } else {\\n $window.location.hash = '#/';\\n $window.location.pathname = '/app/';\\n }\\n });\\n }\",\n \"linkToProfile() {\\n const id = this.props.person.id;\\n const isStudent = this.props.person.customer_id ? true : false\\n\\n /* Use the customer_id field to check whether the person is\\n a student or a teacher. */\\n\\n if (isStudent) {\\n window.location = RouteConstants.admin.studentProfile(id);\\n } else {\\n window.location = RouteConstants.admin.teacherProfile(id);\\n }\\n }\",\n \"function AddNewDetail() {\\r\\n navigation.navigate('DetailRegister', { edit: false, step: {} });\\r\\n }\",\n \"function navShowSubmitForm(evt) {\\n // console.debug(\\\"navShowSubmitForm\\\", evt);\\n evt.preventDefault();\\n // on click, show() the hidden stories form\\n $submitForm.show();\\n}\",\n \"function linkAdminCompose(fWhere) {\\r\\n try {\\r\\n setUpLinkBackJSON(fWhere);;\\r\\n window.location.href = \\\"adminCompose.html\\\";\\r\\n } catch (e) {\\r\\n alert(e.name + \\\"\\\\n\\\" + e.message)\\r\\n }\\r\\n}\",\n \"function getOrderStaffDetails() {\\r\\n//\\tparent.document.searchResultsForm.loadPage.value = \\\"orderDetailPage\\\";\\r\\n\\tparent.document.searchResultsForm.loadPage.value = \\\"orderStaffDetailPage\\\";\\r\\n\\tparent.document.searchResultsForm.facilityId.value = facilityIdVal;\\r\\n\\tparent.document.searchResultsForm.spectraMRN.value = spectraMRNVal;\\r\\n\\tparent.document.searchResultsForm.processorName.value = 'OrderStaffProcessor';\\r\\n\\tparent.document.searchResultsForm.processorAction.value = 'getOrderSum'; \\r\\n\\tparent.document.searchResultsForm.submit();\\r\\n}\",\n \"function handleDreamsEdit() {\\n var currentDream = $(this)\\n .parent()\\n .parent()\\n .parent()\\n .data(\\\"dream\\\");\\n window.location.href = \\\"/new-dream?dream_id=\\\" + currentDream.id;\\n }\",\n \"openCurrentUser() {\\n window.location.href = window.location.origin + '/users?name=' + this.state.currentUser.firstName + ' ' + this.state.currentUser.lastName;\\n }\",\n \"function gotoeditteamsFunction() {\\n var x = document.getElementById(\\\"addteamshtml\\\");\\n var i = document.getElementById(\\\"editteamshtml\\\");\\n var a = document.getElementById(\\\"homepagehtml\\\");\\n x.style.display = \\\"none\\\";\\n i.style.display = \\\"block\\\";\\n a.style.display = \\\"none\\\"\\n }\",\n \"function directToContactForm ()\\n{\\n\\t$('html, body').animate({\\n\\t\\tscrollTop : $(\\\"#contact-me\\\").offset().top\\n\\t}, 'slow');\\n}\",\n \"function showRegister() {\\n clearErrorMsg();\\n showLinks(['loginLink']);\\n showView('registerForm');\\n}\",\n \"function goToAccRec() {\\n $('#peInvoiceInformation').show();\\n $('#invoiceInformation').hide();\\n $('#financialSection').show();\\n updatePricingInfo();\\n fillPeInvsTable(DATA);\\n}\",\n \"function Users(){\\r\\n window.location=\\\"/pages/Admin/users/users_ui.html\\\";\\r\\n}\",\n \"function onEditContact(e) {\\n contactForm.buildContactForm(activeContact); \\n $.mobile.changePage(\\\"#edit_contact_page\\\", { transition: \\\"pop\\\" });\\n}\",\n \"goToReferralPanel(referral) {\\n let personaBar = window.parent.dnn ? window.parent.dnn.PersonaBar : null;\\n if (personaBar) {\\n personaBar.openPanel(referral, {}); //Open, panel should already be rendered, so no need to pass params.\\n this.updateReferral(\\\"\\\", \\\"\\\");\\n }\\n }\",\n \"function goToTechnician() {\\r\\n\\tdocument.location.href="https://huggingface.co/datasets/nomic-ai/cornstack-javascript-v1/viewer/default/technician.php";\\r\\n}\",\n \"function view () {\\n $('div.employeeList').removeClass('hidden');\\n // $('form.addForm').addClass('hidden');\\n var forms = document.querySelectorAll('form');\\n if (forms[0] != undefined) {\\n document.body.removeChild(forms[0]);\\n }\\n toggleActive('View');\\n}\",\n \"function showLogin() {\\n clearErrorMsg();\\n showView('loginForm');\\n showLinks(['registerLink']);\\n}\",\n \"function linkStudentCompose(fWhere) {\\r\\n try {\\r\\n setUpLinkBackJSON(fWhere);\\r\\n window.location.href = \\\"studentCompose.html\\\";\\r\\n } catch (e) {\\r\\n alert(e.name + \\\"\\\\n\\\" + e.message)\\r\\n }\\r\\n}\",\n \"back() {\\n this.showUserEditForm = false;\\n }\",\n \"createAccount() {\\n this.props.nav.navigate(\\\"Create Student User\\\");\\n }\",\n \"onClickNavToOverview() {\\n this.transitionToRoute('manage.alert', this.get('id'));\\n }\",\n \"function activateForm(name){\\n $('.signup-individual.active, .signup-team.active').removeClass('active');\\n $('.signup-' + name).addClass('active');\\n $('.register-as:checked').attr('checked', false);\\n $('.register-as:not(:checked)').attr('checked', true);\\n }\",\n \"render(){\\n return(\\n
    \\n

    Liste des employés

    \\n \\n \\n
    \\n );\\n }\",\n \"function onGoBack() {\\n setFormDataEdit(null);\\n setStep('Menu');\\n }\",\n \"function showList() {\\n\\t\\t\\t$state.go('^');\\n\\t\\t}\",\n \"function showList() {\\n\\t\\t\\t$state.go('^');\\n\\t\\t}\",\n \"function clickFacultyDirectory(){\\r\\n window.location.href = 'FacultyDirectory.php';\\r\\n}\",\n \"nav_helper_edit(data) {\\n\\t\\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\\n\\t\\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\\n\\t\\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\\n\\t\\tutil.elementClickable(this.editBtn)\\n\\t}\",\n \"function editPage () {\\n EditReviewService.setFromReviewPage(true)\\n $state.go(this.goToRoute)\\n }\",\n \"function goToListView(){\\n\\t$(\\\"#bankId\\\").val(\\\"\\\");\\n\\tvar mainmenu = $('#mainmenu').val();\\n\\tvar pageview = $('#pageview').val();\\n\\tif (pageview == \\\"bankView\\\") {\\n\\t\\t$('#pageview').val('banklistview');\\n\\t\\t$('#bankView').attr('action', 'listview?mainmenu='+mainmenu+'&time='+datetime);\\n\\t\\t$(\\\"#bankView\\\").submit();\\n\\t} else {\\n\\t\\t$('#pageview').val('othbanklistview');\\n\\t\\t$('#bankView').attr('action', 'othbanklistview?mainmenu='+mainmenu+'&time='+datetime);\\n\\t\\t$(\\\"#bankView\\\").submit();\\n\\t}\\n}\",\n \"function NavFormSelect(strFormName,strFieldName) {\\n intSelected = document[strFormName].elements[strFieldName].options.selectedIndex;\\n strURL = document[strFormName].elements[strFieldName].options[intSelected].value;\\n document[strFormName].elements[strFieldName].options.selectedIndex = 0;\\n if (strURL != \\\"\\\") {\\n location.href = strURL;\\n }\\n}\",\n \"showCreateForm(data) {\\n this.clearNewOrgan(data);\\n this.changeFormMode(this.FORM_MODES.CREATE);\\n }\",\n \"function showListForm() {\\n vm.isListFormVisible = true;\\n }\",\n \"function redirect() {\\n\\tvar schemaBuilder = lf.schema.create('fashionfitness', 1);\\n\\tschemaBuilder.createTable('login').\\n\\t\\taddColumn('id', lf.Type.INTEGER).\\n\\t\\taddColumn('username', lf.Type.STRING).\\n\\t\\taddColumn('password', lf.Type.STRING).\\n\\t\\taddColumn('active', lf.Type.BOOLEAN).\\n\\t\\taddPrimaryKey(['id']);\\n\\t// Connect to the database and add an account\\n\\tschemaBuilder.connect().then(function(db) {\\n\\t\\tvar account = db.getSchema().table('login');\\n\\t\\treturn db.select().\\n\\t\\t\\t\\tfrom(account).\\n\\t\\t\\t\\twhere(account.active.eq(true)).\\n\\t\\t\\t\\texec().\\n\\t\\tthen(function(results) {\\n\\t\\t\\tresults.forEach(function(row) {\\n\\t\\t\\t\\tconsole.log(\\\"Utente loggato, reindirizzo alla dashboard\\\");\\n\\t\\t\\t\\t// window.location.href = \\\"home.html\\\" // Adds an item to the history\\n\\t\\t\\t\\twindow.location.replace(\\\"home.html\\\"); // It replaces the current history item, you can't go back\\n\\t\\t\\t});\\n\\t\\t});\\n\\t});\\n}\",\n \"goToAjout() {\\n history.push(\\\"/main/clients/ajout\\\");\\n }\",\n \"function switchForm(to=0) {\\n let viaurl = document.getElementById('new-i-form-viaurl');\\n let viaform = document.getElementById('new-i-form-page');\\n if (viaurl && viaform) { \\n viaurl.style.display = to ? 'none' : '';\\n viaform.style.display = to ? '' : 'none';\\n }\\n}\",\n \"function adminView(){\\r\\n window.location=\\\"/pages/Admin/admin.html\\\";\\r\\n}\",\n \"function onSubmitted(){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tlocation.hash = \\\"/tool/list\\\";\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\",\n \"function goToEditNewsForm(newsId, urlBeginning) {\\n\\tvar targetUrl = urlBeginning + newsId + \\\"/\\\";\\n\\n\\t$.ajax({\\n\\t\\ttype : \\\"GET\\\",\\n\\t\\turl : targetUrl,\\n\\t\\tdata : {},\\n\\t\\tsuccess : function(response) {\\n\\t\\t\\tsetInputFields(response.news);\\n\\t\\t\\tsetSendNotification(response.sendNotification);\\n\\t\\t\\tsetFormAction(response.formAction);\\n\\t\\t\\tsetTitleOfSubmitButton(response.localizedTitleOfSubmit);\\n\\t\\t\\tshowNewsForm();\\n\\t\\t},\\n\\t\\terror : function(e) {\\n\\t\\t\\talert(\\\"Error: \\\" + e.toSource());\\n\\t\\t}\\n\\t});\\n}\",\n \"function updateLangStaff() {\\n showOrder(currentTableID);\\n showAccountBox();\\n}\",\n \"function StepBackForm(from, to) {\\n $(\\\"#question\\\" + from).hide();\\n $(\\\"#question\\\" + to).fadeIn(300);\\n\\n $(formInUse)[0].reset();\\n }\",\n \"function go_articulos() {\\n $state.go('complex_articles.list');\\n }\",\n \"function goToMain() {\\n let inputValue = $('#land-input').val()\\n\\n user.lastRecipeSearched = inputValue;\\n user.addSearchedIngredients(inputValue);\\n save(user)\\n\\n redirectMainUrl();\\n}\",\n \"function StaffController(StaffService, loggerFactory, $mdSidenav, $mdToast, $window) {\\n var vm = this;\\n vm.staffMembers = [];\\n vm.appointment = {};\\n vm.selectedMember = null;\\n vm.isFabOpen = false;\\n vm.isSelected = false;\\n vm.selectedMemberIndex = 0;\\n vm.selectStaffMember = selectStaffMember;\\n vm.toggleMemberList = toggleMemberList;\\n vm.toggleSelection = toggleSelection;\\n vm.openSideMenu = openSideMenu;\\n vm.navigateTo = navigateTo;\\n vm.desiredDate = new Date();\\n vm.currentTime = new Date().getTime();\\n\\n activate();\\n\\n /**\\n * Initial execution function on page load.\\n */\\n function activate() {\\n return StaffService.getAllStaffMembers().then(function (data) {\\n vm.staffMembers = data;\\n vm.selectedMember = data[0];\\n loggerFactory.info('Staff Members: ', data);\\n }, function (err) {\\n loggerFactory.error('Get Staff Members: ', err);\\n });\\n }\\n\\n /**\\n * Select the current staff member.\\n * @param memberId\\n */\\n function selectStaffMember(member, index) {\\n vm.isSelected = false;\\n vm.selectedMemberIndex = index;\\n vm.selectedMember = angular.isDefined(member) ? member : vm.staffMembers[0];\\n if (!$mdSidenav('left').isLockedOpen()) {\\n $mdSidenav('left').close();\\n }\\n }\\n\\n /**\\n * Hide or Show the 'left' SideNav when small screen.\\n */\\n function toggleMemberList() {\\n $mdSidenav('left').toggle();\\n }\\n\\n function toggleSelection() {\\n vm.isSelected = !vm.isSelected;\\n if(vm.isSelected){\\n showFavoriteToast();\\n }\\n }\\n\\n /**\\n * Open the side menu when small screen.\\n */\\n function openSideMenu($mdMenu, event) {\\n $mdMenu.open(event);\\n }\\n\\n /**\\n * Open favorite selected tooltip.\\n */\\n function showFavoriteToast() {\\n $mdToast.show({\\n hideDelay: 3000,\\n position: 'top right',\\n controller: 'ToastController',\\n controllerAs: 'toast',\\n templateUrl: 'fav_toast_template.html',\\n bindToController: true\\n });\\n }\\n\\n /**\\n * Go to requested URL..\\n * @param url\\n */\\n function navigateTo(url){\\n $window.open(url, '_blank');\\n }\\n }\",\n \"nav_helper_view1(data) {\\n\\t\\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\\n\\t\\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\\n\\t\\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\\n\\t\\t\\n\\n\\t}\"\n]"},"negative_scores":{"kind":"list like","value":["0.6240528","0.61439514","0.61242485","0.6050199","0.600022","0.59662825","0.5946681","0.59011465","0.5860641","0.57740957","0.57555044","0.5737218","0.57329136","0.57038194","0.56832534","0.5556401","0.55382675","0.5529626","0.55082667","0.5499365","0.549182","0.54756427","0.5471945","0.5458416","0.5458416","0.5449401","0.5448497","0.5407151","0.5403561","0.5394021","0.5384159","0.5377258","0.53578645","0.5350801","0.53347504","0.53300697","0.5322196","0.5312139","0.5304346","0.53019094","0.5295631","0.5290626","0.5280081","0.5274358","0.5274358","0.5274283","0.5262221","0.5256027","0.52515894","0.52515894","0.52409524","0.52281994","0.522087","0.52195734","0.52195436","0.52094203","0.5207927","0.5205745","0.51965624","0.51944155","0.51779175","0.5175718","0.51736027","0.5173181","0.5173114","0.5172843","0.51541436","0.51456654","0.51430696","0.5133194","0.51299614","0.5125849","0.5121384","0.512117","0.5115416","0.5107047","0.5102267","0.5088695","0.50864476","0.5073673","0.5073673","0.5070167","0.5068654","0.50640374","0.5063138","0.50594705","0.50586414","0.5054616","0.5053646","0.50513273","0.50489277","0.50458264","0.5037849","0.5037759","0.50330734","0.50329816","0.5028794","0.5027404","0.50218993","0.50214195"],"string":"[\n \"0.6240528\",\n \"0.61439514\",\n \"0.61242485\",\n \"0.6050199\",\n \"0.600022\",\n \"0.59662825\",\n \"0.5946681\",\n \"0.59011465\",\n \"0.5860641\",\n \"0.57740957\",\n \"0.57555044\",\n \"0.5737218\",\n \"0.57329136\",\n \"0.57038194\",\n \"0.56832534\",\n \"0.5556401\",\n \"0.55382675\",\n \"0.5529626\",\n \"0.55082667\",\n \"0.5499365\",\n \"0.549182\",\n \"0.54756427\",\n \"0.5471945\",\n \"0.5458416\",\n \"0.5458416\",\n \"0.5449401\",\n \"0.5448497\",\n \"0.5407151\",\n \"0.5403561\",\n \"0.5394021\",\n \"0.5384159\",\n \"0.5377258\",\n \"0.53578645\",\n \"0.5350801\",\n \"0.53347504\",\n \"0.53300697\",\n \"0.5322196\",\n \"0.5312139\",\n \"0.5304346\",\n \"0.53019094\",\n \"0.5295631\",\n \"0.5290626\",\n \"0.5280081\",\n \"0.5274358\",\n \"0.5274358\",\n \"0.5274283\",\n \"0.5262221\",\n \"0.5256027\",\n \"0.52515894\",\n \"0.52515894\",\n \"0.52409524\",\n \"0.52281994\",\n \"0.522087\",\n \"0.52195734\",\n \"0.52195436\",\n \"0.52094203\",\n \"0.5207927\",\n \"0.5205745\",\n \"0.51965624\",\n \"0.51944155\",\n \"0.51779175\",\n \"0.5175718\",\n \"0.51736027\",\n \"0.5173181\",\n \"0.5173114\",\n \"0.5172843\",\n \"0.51541436\",\n \"0.51456654\",\n \"0.51430696\",\n \"0.5133194\",\n \"0.51299614\",\n \"0.5125849\",\n \"0.5121384\",\n \"0.512117\",\n \"0.5115416\",\n \"0.5107047\",\n \"0.5102267\",\n \"0.5088695\",\n \"0.50864476\",\n \"0.5073673\",\n \"0.5073673\",\n \"0.5070167\",\n \"0.5068654\",\n \"0.50640374\",\n \"0.5063138\",\n \"0.50594705\",\n \"0.50586414\",\n \"0.5054616\",\n \"0.5053646\",\n \"0.50513273\",\n \"0.50489277\",\n \"0.50458264\",\n \"0.5037849\",\n \"0.5037759\",\n \"0.50330734\",\n \"0.50329816\",\n \"0.5028794\",\n \"0.5027404\",\n \"0.50218993\",\n \"0.50214195\"\n]"},"document_score":{"kind":"string","value":"0.514472"},"document_rank":{"kind":"string","value":"68"}}},{"rowIdx":219,"cells":{"query":{"kind":"string","value":"Reads the data entered in the staff form and saves it."},"document":{"kind":"string","value":"function createStaff(){\n var linecount = document.getElementById(\"linecount\").value;\n var linecolor = document.getElementById(\"linecolor\").value;\n var mode = document.getElementById(\"mode\").value;\n \n currentStaff = new Staff(linecount, linecolor, mode);\n \n staffs.push(currentStaff);\n \n document.getElementsByClassName(\"staffdependant\")[0].disabled = false;\n \n document.getElementById(\"input\").innerHTML = staffForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function getForm() {\n inputNombre.value = localStorage.getItem('nombre');\n inputApellido.value = localStorage.getItem('apellido');\n inputTel.value = localStorage.getItem('tel');\n inputDir.value = localStorage.getItem('dir');\n inputObs.value = localStorage.getItem('obs');\n console.log('data loaded');\n}","function applyCurrentStaff(){\n currentN = document.getElementById(\"staff\").value;\n document.getElementById(\"input\").innerHTML = staffDataChangeForm();\n}","function applyStaffDataChanges(){\n var linecount = document.getElementById(\"linecount\").value;\n var linecolor = document.getElementById(\"linecolor\").value;\n var mode = document.getElementById(\"mode\").value;\n \n if(linecount && linecount != \"none\"){\n currentStaff.linecount = linecount;\n }\n if(linecolor && linecolor != \"none\"){\n currentStaff.linecolor = linecolor;\n }\n if(mode && mode != \"none\"){\n currentStaff.mode = mode;\n }\n document.getElementById(\"input\").innerHTML = staffDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","updateForm(data) {\n\t\tthis.employeeName.value = data.name;\n\t\tthis.employeeAge.value = data.age;\n\t\tthis.employeePosition.value = data.position;\n\t\tthis.employeeSalary.value = data.salary;\n\t}","function getFormData() {\n // User Info Obj\n const user = {\n netID: document.getElementById('netID').value,\n contact: document.getElementById('contact').value,\n location: document.getElementById('location').value,\n description: document.getElementById('issue').value,\n team: document.getElementById('team').value,\n manager: document.getElementById('managerId').value\n };\n // Get priority level selection RadioButtons\n const rbs = document.querySelectorAll('input[name=radioBtn]');\n let selectedValue;\n for (const rb of rbs) {\n if (rb.checked) {\n selectedValue = rb.value;\n break;\n }\n }\n /*Get category*/\n const category = {\n cat: document.getElementById('cat').value,\n sub: document.getElementById('sub').value\n };\n //Formatting for txt file.\n const userData =\n 'NetID: ' +\n user.netID +\n '\\n' +\n '\\n' +\n 'Contact: ' +\n user.contact +\n '\\n' +\n '\\n' +\n 'Location: ' +\n user.location +\n '\\n' +\n '\\n' +\n 'Priority: ' +\n selectedValue +\n '\\n' +\n '\\n' +\n 'Category: ' +\n category.cat +\n '\\n' +\n '\\n' +\n 'Sub-Category: ' +\n category.sub +\n '\\n' +\n '\\n' +\n 'Assignment Team: ' +\n user.team +\n '\\n' +\n '\\n' +\n 'Group Manager Contact: ' +\n user.manager +\n '\\n' +\n '\\n' +\n 'Full Description: ' +\n '\\n' +\n user.description;\n //print date\n const today = new Date();\n //save BLOB to txt file\n const blob = new Blob([userData], { type: 'text/plain;charset=utf-8' });\n saveAs(blob, today);\n //refresh page for new form\n location.reload();\n}","function copyStorageToForm() {\n \"use strict\";\n // Set chosen hair type\n setFormHairType(sessionStorage.getItem(\"hair_type\"));\n\n // Set selected traits\n setFormTraits(sessionStorage.getItem(\"traits\"));\n}","function saveManageBusinessFields() {\n // Save business details in local Storage\n var businessName = document.getElementById('businessName').value;\n if (businessName != null) {\n localStorage.setItem('businessName', businessName);\n }\n\n var businessPhone = document.getElementById('businessPhone').value;\n if (businessPhone != null) {\n localStorage.setItem('businessPhone', businessPhone);\n }\n\n var businessAddress = document.getElementById('set-address').value;\n if (businessAddress != null) {\n localStorage.setItem('businessAddress', businessAddress);\n }\n}","function toChangeStaffData(){\n if(staffs.length > 0){\n currentN = staffs[0].n;\n }\n document.getElementById(\"input\").innerHTML = staffDataChangeForm();\n}","function saveData()\n{\n\t\"use strict\";\n\n\n\tvar currentDate = new Date();\n\tvar year, month, day;\n\tyear = currentDate.getFullYear();\n\t\n\tif (currentDate.getMonth().toString().length === 1)\n\t{\n\t\tmonth = \"0\" + currentDate.getMonth().toString(); \n\t}\n\telse\n\t{\n\t\tmonth = currentDate.getMonth().toString();\n\t}\n\t\n\tif (currentDate.getDate().toString().length === 1)\n\t{\n\t\tday = \"0\" + currentDate.getDate().toString(); \n\t}\n\telse\n\t{\n\t\tday = currentDate.getDate().toString();\n\t}\n\t\n\tcreationDate = year + month + day;\n\talert(creationDate);\n\tcreationTime = currentDate.getHours() + \":\" + currentDate.getMinutes();\n\n\t\n\ttitle = document.getElementById(\"txtTitle\").value;\n content = document.getElementById(\"txtContent\").value;\n\tteacherName = document.getElementById(\"txtTeacherName\").value;\n\tsubject = document.getElementById(\"txtSubject\").value;\n\t\n\talert(\"Your information has been saved\");\n\n\tdeadline = document.getElementById(\"txtDeadline\").value;\n\n\n\t// Add code to store rest of input in variables here\n \n// Store the information in localstorage\n localStorage.setItem(\"title\", title);\n localStorage.setItem(\"content\", content);\n\tlocalStorage.setItem(\"teacherName\", teacherName);\n\n \n //alert to inform user data has been saved.\n\n}","fillForm() {\n\n if (localStorage.getItem(\"lastname\") !== undefined)\n $(\"form\")[0].lastname.value = localStorage.getItem(\"lastname\");\n\n if (localStorage.getItem(\"firstname\") !== undefined)\n $(\"form\")[0].firstname.value = localStorage.getItem(\"firstname\");\n\n }","function save_data() {\n var name = document.getElementById(\"getInfo\")[0].value;\n var lastName = document.getElementById(\"getInfo\")[1].value;\n \n localStorage.setItem(\"name\", name);\n localStorage.setItem(\"lastName\", lastName);\n}","function storeData() {\n trainName = $(\"#Train-Name\").val();\n destinationName = $(\"#Destination-Name\").val();\n firstTrainTime = $(\"#First-Time\").val();\n trainFrequency = $(\"#Frequency\").val();\n}","function fetchStorage() {\n txtFName.value = localStorage.getItem(\"input-name\");\n txtLName.value = localStorage.getItem(\"input-lastname\");\n txtPhone.value = localStorage.getItem(\"input-phone\");\n txtEmail.value = localStorage.getItem(\"input-email\");\n }","save() {\n try {\n this._toggleSaveThrobber();\n this._readFromForm();\n this.dao.save();\n\n // make sure the edit input is showing the correct id, reload data from server\n document.getElementById('edit_id').value = this.dao.id;\n this.read();\n \n } catch(e) {\n console.log(e);\n alert(e);\n }\n this._toggleSaveThrobber();\n }","function setData() {\n localStorage.setItem('name', username.value);\n localStorage.setItem('email', email.value);\n localStorage.setItem('city', city.value);\n localStorage.setItem('organisation', organisation.value);\n localStorage.setItem('contact', contact.value);\n localStorage.setItem('message', message.value);\n // Reset all the fields.\n username.value = '';\n email.value = '';\n city.value = 'city';\n organisation.value = '';\n contact.value = '';\n message.value = '';\n\n}","function showUserForm() {\n try {\n var user = JSON.parse(localStorage.getItem(\"user\"));\n } catch(e) {\n if (window.navigator.vendor === \"Google Inc.\") {\n if (e === DOMException.QUOTA_EXCEEDED_ERR) {\n alert(\"Error: Saving to local storage\");\n }\n } else if (e === QUOTA_EXCEEDED_ERR) {\n alert(\"Error: Saving to local storage.\");\n }\n \n console.log(e);\n }\n \n if(user != null) {\n $(\"#FirstName\").val(user.FirstName);\n $(\"#LastName\").val(user.LastName);\n $(\"#DOB\").val(user.DOB);\n $(\"#changePassword\").val(user.NewPassword);\n $(\"#height\").val(user.Height);\n $(\"#weight\").val(user.Weight);\n }\n }","function setInfo() {\n var name = document.querySelector(\"#name_form_student\");\n name.value = local_user.name;\n var account_number = document.querySelector(\"#no_cuenta_form_student\");\n account_number.value = local_user.num_account;\n var career = document.querySelector(\"#carrer_form_student\");\n career.value = local_user.career;\n var email = document.querySelector(\"#email_form_student\");\n email.value = local_user.email;\n var semester = document.querySelector(\"#semester_form_student\");\n semester.value = local_user.semester;\n\n}","function saveData() {\n\t\tif(!key){\n\t\t\tvar id \t\t\t\t\t\t= Math.floor(Math.random()*1000001);\n\t\t}else{\n\t\t\tid = key;\n\t\t}\n\t\t\n\t\tgetRadioValue ();\n\t\tgetCheckbox();\n\t\tvar item\t\t\t\t\t\t= {};\n\t\t\t item.kname\t\t\t\t= [\"Kid's Name:\", $(\"kname\").value];\n\t\t\t item.pname\t\t\t\t= [\"Parent's Name:\", $(\"pname\").value];\n\t\t\t item.phone\t\t\t\t= [\"Phone #:\", $(\"phone\").value];\n\t\t\t item.email\t\t\t\t= [\"Email:\", $(\"email\").value];\n\t\t\t item.date\t\t\t\t= [\"Play Date:\", $(\"date\").value];\n\t\t\t item.sex\t\t\t\t= [\"Sex:\", sexValue];\n\t\t\t item.choice\t\t\t= [\"Best Time of Week:\", $(\"choice\").value];\n\t\t\t item.select\t\t\t= [\"Best Time of Day:\", $(\"dayTimes\").value];\n\t\t\t item.allergies\t\t= [\"Needs:\", hasAllergy];\n\t\t\t item.comments\t\t\t= [\"Notes:\", $(\"comments\").value];\n\t\t\t item.outgoing\t\t\t= [\"How Outgoing? 1-10:\", $(\"outgoing\").value];\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\n\t\talert(\"Saved!\");\n\t}","function storeData(){\r\n\t\tvar id \t\t\t\t= Math.floor(Math.random()*100000000001);\r\n\t\t//Gather up all our form field values and store in an object\r\n\t\t//Object properties contain an array with the form label and input value\r\n\t\tgetSelectedRadio();\r\n\t\tvar item \t\t\t\t= {};\r\n\t\t\titem.comicTitle\t\t= [\"Title of Comic:\", e('comicTitle').value];\r\n\t\t\titem.seriesTitle\t= [\"Title of Series:\", e('seriesTitle').value];\r\n\t\t\titem.issueNum\t\t= [\"Issue Number:\", e('issueNum').value];\r\n\t\t\titem.dateReleased\t= [\"Date Released:\", e('dateReleased').value];\r\n\t\t\titem.publisher\t\t= [\"Publisher:\", e('publisher').value];\r\n\t\t\titem.rateIssue\t\t= [\"Rate of Issue:\", e('rateIssue').value];\r\n\t\t\titem.genre \t\t\t= [\"Genre:\", e('genre').value];\r\n\t\t\titem.illStyle\t\t= [\"Illustration Style:\", styleValue];\r\n\t\t\titem.comments\t\t= [\"Comments:\", e('comments').value];\r\n\t\t//Save data into Local Storage: Use Stringify to convert our object to a string\r\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\r\n\t\talert(\"Comic saved to index!\");\r\n\t}","function saveState() {\n const state = {\n cf: cfSelect.value,\n gf: gfSelect.value,\n mf: mfSelect.value,\n am: amSelect.value,\n };\n localStorage.setItem('collecting_together_form', JSON.stringify(state));\n }","function addData(e) {\n // prevent default - we don't want the form to submit in the conventional way\n e.preventDefault();\n\n // grab the values entered into the form fields and store them in an object ready for being inserted into the DB\n let newItem = { title: titleInput.value, body: bodyInput.value };\n\n // open a read/write db transaction, ready for adding the data\n let transaction = db.transaction(['notes_os'], 'readwrite');\n\n // call an object store that's already been added to the database\n let objectStore = transaction.objectStore('notes_os');\n\n // Make a request to add our newItem object to the object store\n let request = objectStore.add(newItem);\n request.onsuccess = function() {\n // Clear the form, ready for adding the next entry\n titleInput.value = '';\n bodyInput.value = '';\n };\n\n // Report on the success of the transaction completing, when everything is done\n transaction.oncomplete = function() {\n console.log('Transaction completed: database modification finished.');\n\n // update the display of data to show the newly added item, by running displayData() again.\n displayData();\n };\n\n transaction.onerror = function() {\n console.log('Transaction not opened due to error');\n };\n}","function displayData() {\n\n if (localStorage.getItem(\"formData\") != null){\n\n let values = JSON.parse(localStorage.getItem(\"formData\"));\n \n nameInput.value = values[values.length-1].inpName;\n emailInput.value = values[values.length-1].inpEmail;\n phoneInput.value = values[values.length-1].inpPhone;\n messageInput.value = values[values.length-1].inpText;\n }\n \n}","function createStaffWithClefs(){\n var linecount = document.getElementById(\"linecount\").value;\n var linecolor = document.getElementById(\"linecolor\").value;\n var mode = document.getElementById(\"mode\").value;\n \n currentStaff = new Staff(linecount, linecolor, mode);\n \n staffs.push(currentStaff);\n \n document.getElementById(\"input\").innerHTML = clefForm;\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","function storeForm() {\n /*jshint validthis:true */\n var form = $(this);\n var formId = form[0].id;\n if (!formId) return;\n var formJSON = app.formToData(form);\n if (!formJSON) return;\n app.formStoreData(formId, formJSON);\n form.trigger('store form:storedata', {data: formJSON});\n }","function employee_Set_FormData(data)\r\n\t{\r\n\t\t$(\"#employee_title\").val(data.title);\r\n\t\t$(\"#employee_fullName\").val(data.fullName);\r\n\t\t$(\"#employee_surname\").val(data.surname);\r\n\t\t$(\"#employee_fatherName\").val(data.fatherName);\r\n\t\t$(\"#employee_gender\").val(data.gender);\r\n\t\t$(\"#employee_email\").val(data.email);\r\n\t\t$(\"#employee_maritalStatus\").val(data.maritalStatus);\r\n\t\t$(\"#employee_postalAddress\").val(data.postalAddress);\r\n\t\t$(\"#employee_nic\").val(data.nic);\r\n\t\t$(\"#employee_mobile\").val(data.mobile);\r\n\t\t$(\"#employee_phone\").val(data.phone);\r\n\t\t$(\"#employee_religion\").val(data.religion);\r\n\t\t$(\"#employee_department\").val(data.departmentId);\r\n\t\t$(\"#employee_employeeId\").val(data.employeeId);\r\n\t\t$(\"#employee_date\").val(data.dob);\r\n\t\tpageAniamateScroll();\r\n\t}","fillForm(data) {\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","function saveInformation () {\n\t\t numOfCreditFun();\n\t\t bestMthContFun();\n\t\t var info = {};\n\t\t \tinfo.major = [\"Major Choice:\", $('#departments').val()];\n\t\t info.cName = [\"Course Name:\", $('#courseName').val()];\n\t\t info.cSection = [\"Course Section:\", $('#courseSection').val()];\n\t\t info.topicAndSec = [\"Topic and Section:\", $('#topicAndSection').val()];\n\t\t info.todaysDate = [\"Today's Date:\", $('#todaysDate').val];\n\t\t info.dueDate = [\"Due Date:\", $('#dueDate').val()];\n\t\t info.weeksOfClass = [\"Is the Class on Campus or Online:\", $('#weeksOfClass').val()];\n\t\t info.slideValue = [\"Due Date:\", $('#weeksOfClass').val()];\n\t\t info.courseNumCredits = [\"Number of Credits:\", numOfCreditFun];\n\t\t info.teacherName = [\"Teacher Name:\", $('#teacherName').val()];\n\t\t info.teacherEmail = [\"Teacher Email:\", $('#teacherEmail').val()];\n\t\t info.teacherPhone = [\"Teacher Phone:\", $('#teacherPhone').val()];\n\t\t info.bestMthCont = [\"Best Method To Get In Contact:\", bestMthContFun];\n\t\t info.note = [\"Note Section:\", $('#noteSection').val()];\n\t\t //localStorage.setItem(id, JSON.stringify(info));\n\t\t couchDBSave(info);\n\t\t}","function load_data() {\n var input = document.getElementById(\"commentName\");\n var comm = document.getElementById(\"commentText\");\n\n input.value = localStorage.getItem('Name');\n comm.value = localStorage.getItem('Comment');\n}","function storeData() {\n\t// This is a little bit of future proofing \n\tif (!submit.key) {\n\t\t// if there is no key, this is a new item and needs a new key\n\t\tvar id = \"ubuVers\" + Math.floor(Math.random()*10000001);\n\t} else {\n\t\t// set the id to the existing key we are editing\n\t\tid = submit.key;\n\t};\n\t\n // I like to give all my form elements their own id's to give myself access\n\t// outside of the form as well as simple access inside of it\n var ubuVersNumValue = ge('ubuVersNum').value,\n ubuVersNameValue = ge('ubuVersName').value,\n\t\tubuVersDict = {version: ubuVersNumValue, release: ubuVersNameValue};\n\t// log out those values as a double check\n console.log(ubuVersNumValue);\n console.log(ubuVersNameValue);\t\n\t\n\t// set the item in localstorage\n\t// note the stringify function\n\tlocalStorage.setItem(id, JSON.stringify(ubuVersDict));\n\t\n\t// log out the whole local storage\n\tconsole.log(localStorage);\n\tge('submit').value = 'Add';\n\n\n}","function setDataFromLocalStorage() { \t\n \tCORE.LOG.addInfo(\"PROFILE_PAGE:setDataFromLocalStorage\");\n \t$(\"#name\").val(gameData.data.player.profile.name);\n \t$(\"#surname\").val(gameData.data.player.profile.surname);\n \t$(\"#age\").val(gameData.data.player.profile.age);\n \t$(\"#sex\").val(gameData.data.player.profile.sex);\n \t$(\"#mobile\").val(gameData.data.player.profile.mobile); \n \t \t \t\n }","function prefill_form(){\ndocument.getElementById(\"ref\").value = localStorage.job1Ref;\ndocument.getElementById(\"jobtitle\").value = localStorage.joblTitles;\n//alert(localStorage.job1Ref);\n}","save () {\n\n // Validate\n if (this.checkValidity()) {\n\n // Collect input\n this.info.item = this.collectInput();\n\n // Show modal\n this.modal.show();\n }\n }","function storeForm() {\n\t /*jshint validthis:true */\n\t var form = $(this);\n\t var formId = form[0].id;\n\t if (!formId) return;\n\t var formJSON = app.formToData(form);\n\t if (!formJSON) return;\n\t app.formStoreData(formId, formJSON);\n\t form.trigger('store form:storedata', {data: formJSON});\n\t }","function storeFormData() {\n const formData = {\n name: formEl.name.value,\n phone: formEl.phone.value,\n email: formEl.email.value,\n url: formEl.website.value,\n password: formEl.password.value\n }\n\n console.log(formData);\n}","function updateUserData(){\n var new_name = document.getElementById('name_change').value;\n if (new_name == \"\"){\n new_name = name;\n }\n var new_jobs = document.getElementById('jobs_change').value;\n if (new_jobs == \"\"){\n new_jobs = jobs;\n }\n var new_contact = document.getElementById('contact_change').value;\n if (new_contact == \"\"){\n new_contact = contact;\n }\n var new_tjm = document.getElementById('tjm_change').value;\n if (new_tjm == \"\"){\n new_tjm = tjm;\n }\n writeUserData(userId, new_name, new_jobs, new_contact, new_tjm);\n}","fillForm(data){\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","function saveData(id)\n\t{\n\t\tvar f = document.fuploadr;\n\t\tvar data = ImageStore[id];\n\t\t\n\t\tdata.title\t\t = f.title.value;\n\t\tdata.description = f.description.value;\n\t\tdata.tags\t\t = f.tags.value;\n\t\tdata.is_public\t = getChecked(f.is_public, 0);\n\t\tdata.is_friend\t = getChecked(f.is_friend, 0);\n\t\tdata.is_family\t = getChecked(f.is_family, 0);\n\t\tdata.safety_level = f.safety_level.value;\n\t\tdata.hidden\t\t = getChecked(f.hidden, 1);\n\t\t//data.content_type = f.content_type.value;\n\t}","function savesaveInfoLocalStorage(evt){\n saveInfoLocalStorage[evt.currentTarget.name] = evt.currentTarget.value;\n setsaveInfoLocalStorage(saveInfoLocalStorage);\n}","function saveCustomerData(form){\n // pick the data from the inputs\n let first = $(\"input[name=first]\").val();\n let email = $(\"input[name=email]\").val();\n let products = $(\"select[name=products]\").val();\n let quantity = $(\"input[name=quantity]\").val();\n\n // store the data in the object\n let CustomerData = {\n first: first,\n\t\temail: email,\n products:products,\n quantity:quantity\n\t};\n console.log(CustomerData);\n //stroing all the input in the local variable\n\tlocalStorage[\"CustomerData\"]=JSON.stringify(CustomerData);\n form.submit();\n}","fillForm ( data ) {\n this.title.value = data.title;\n this.body.value = data.body;\n this.id.value = data.id;\n\n // change form state\n this.changeFormState( \"edit\" )\n\n }","function store_user1 ()\n{\nlocalStorage.job1Ref = document.getElementById(\"job1ref\").value;\n//alert(localStorage.job1Ref);\nlocalStorage.joblTitles = document.getElementById(\"job1title\").value;\n//alert(localStorage.job1Titles);\n}","function saveData(key) {\n\t\t// Set Random Key for Stored Data //\n\t\tif(!key) {\n\t\t\tvar id = Math.floor(Math.random()*10001);\n\t\t}else{\n\t\t\tid = key;\n\t\t}\n\t\t// Call Functions //\n\t\tgetCheckboxValue();\n\t\tgetSelectedRadio();\n\t\tvar item \t\t\t\t= {};\n\t\t\titem.training \t\t= [\"Training Style: \", $('#training').value];\n\t\t\titem.wname\t\t\t= [\"Workout Name: \", $('#wname').value];\n\t\t\titem.favorite\t\t= [\"Favorite: \", favoriteValue];\n\t\t\titem.howlong\t\t= [\"How Long: \", $('#howlong').value + \" minutes\"];\n\t\t\titem.timeofday\t\t= [\"Preferred Time: \", timeValue];\n\t\t\titem.completiondate\t= [\"Completion Date: \", $('#completiondate').value];\n\t\t\titem.comments\t\t= [\"Self-Motivation: \", $('#comments').value];\n\t\t\t\n\t\t// Save Data into Local Storage with JSON.stringify //\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\n\t\talert(\"Workout Saved!\");//\n\t\t// Set dialog using Dialog //\n\t\t//$('#dialog').attr(\"title\", \"Saved!\").text(\"Your workout has been saved.\").dialog('open');\n\t}","function readUserInput() {\n\tvar settings = {};\n\t//Plasmid Section\n\tsettings.plasmidname = readtxtField(\"txtPlasmidName\");\n\tsettings.plasmidnameon = readField(\"bolShowPlasmidName\");\n\tsettings.plasmidsize = readField(\"txtPlasmidSize\");\n\tsettings.plasmidsizeon = readField(\"bolShowPlasmidSize\");\n\tsettings.plasmidradius = readField(\"txtRadius\");\n\tsettings.bbwidth = readField(\"txtBackBoneWidth\");\n\tsettings.bbcolor = readField(\"optBackBoneColor\");\n\tsettings.bbon = readField(\"bolShowBackBone\");\n\t//Feature Section (General)\n\tsettings.fwidth = readField(\"txtFeatureWidth\");\n\tsettings.fstrokewidth = readField(\"txtFeatureStrokeWidth\");\n\tsettings.fstrokered = readField(\"txtStrokeRed\");\n\tsettings.fstrokegreen = readField(\"txtStrokeGreen\");\n\tsettings.fstrokeblue = readField(\"txtStrokeBlue\");\n\tsettings.farrowlength = readField(\"txtArrowHeadLength\");\n\tsettings.farrowwidth = readField(\"txtArrowHeadWidth\");\n\t//Text section\n\tsettings.txton = readField(\"bolShowText\");\n\tsettings.txtfamily = readField(\"optFontFamily\");\n\tsettings.txtsize = readField(\"txtFontSize\");\n\tsettings.txtcolor = readField(\"optFontColor\");\n\tsettings.txtbold = readField(\"bolTextBold\");\n\tsettings.txtloc = readField(\"optTextLocation\");\n\t//Canvas section\n\tsettings.cw = readField(\"txtCanvasWidth\");\n\tsettings.ch = readField(\"txtCanvasHeight\");\n\tsettings.error = 0;\n\tsettings.errmsg = \"\";\n\t//Calculated properties\n\tsettings.ox = settings.cw / 2;\n\tsettings.oy = settings.ch / 2;\n\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\n\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\n\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\n\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\n\treturn settings;\n}","updateFormFromStorage() {\n // check for data if none return\n let data = localStorage.getItem('formData');\n if (!data) {\n this.setTransactions([]);\n // Looks like new user without data show tips modal.\n setTimeout(() => $('#tipsModal').modal(), 10000);\n return;\n }\n this.setForm(JSON.parse(data));\n // set the interface (transactions) options on the form\n this.setFormTransactions(JSON.parse(localStorage.getItem('transactions')));\n }","function storeLocally(){\n var formName = document.getElementById('txtName').value;\n var formAge = document.getElementById('txtAge').value;\n sessionStorage.setItem(formName, formAge);\n\n var formOutput = formName + \": \" + formAge + \" y.o.\";\n\n appendObject (formOutput, \"P\", \"output\");\n}","function saveLocalStore(){\n for(i = 0; i < generalInfo.length; i++){\n var displayNow = ($(\"#inputEvent\"+generalInfo[i].display).val());\n var notesNow = generalInfo[i].notes;\n generalInfo[i].notes = displayNow;\n console.log(\"grabo vacio\");\n\n }\n localStorage.setItem(\"generalInfo\", JSON.stringify(generalInfo));\n }","function loadManageBusinessFields() {\n // Pull business details from local storage\n var businessName = localStorage.getItem('businessName');\n console.log(localStorage.getItem('businessName'));\n if (businessName != null && businessName != 'undefined') {\n document.getElementById('businessName').value = businessName;\n }\n\n var businessPhone = localStorage.getItem('businessPhone');\n if (businessPhone != null && businessPhone != 'undefined') {\n document.getElementById('businessPhone').value = localStorage.getItem('businessPhone');\n }\n\n var businessAddress = localStorage.getItem('businessAddress');\n if (businessAddress != null && businessAddress != 'undefined') {\n document.getElementById('set-address').value = localStorage.getItem('businessAddress');\n }\n}","function getActivitesData() {\n let oldActivites = JSON.parse(localStorage.getItem(\"Activites\")) || [];\n let ActivitesId = localStorage.length;\n let ActivitesTitle = document.getElementById(\"Activitestitle\").value.trim();\n let dataForm = document.getElementById(\"Activitesmyform\");\n let ActivitesDate = document.getElementById(\"date\").value;\n let ActivitesDataForm = (dataForm.elements[\"ActivitesmyTextArea\"].value =\n window.frames[\"ActivitesrichTextField\"].document.body.textContent);\n if (ActivitesTitle == \"\" && ActivitesDate == \"\" && ActivitesDataForm == \"\") {\n let outputActivites = document.getElementById(\"outputActivites\");\n outputActivites.className = \"bg-danger mt-3 text-white text-center p-2\";\n outputActivites.innerHTML = \"

    Fill all input Please

    \";\n } else {\n let ActivFormData = new ActivitesformData(\n ActivitesId,\n ActivitesTitle,\n ActivitesDate,\n ActivitesDataForm,\n ActivitesUploaded_image\n );\n oldActivites.push(ActivFormData);\n localStorage.setItem(\"Activites\", JSON.stringify(oldActivites));\n \n }\n}","function setupDataForForm(){\n if(typeof(hotty) != \"undefined\"){\n $('#import_data').val(JSON.stringify(hotty.getData()));\n console.log(\"updating the data...\");\n }\n else{\n console.log(\"hotty isnt there, maybe just booting up!\");\n }\n }","_readFromForm() {\n this.dao.citation_id = document.getElementById('citation_id').value;\n this.dao.ott_id = document.getElementById('ott_id').value;\n this.dao.background_noise_in_decibel = document.getElementById('background_noise_in_decibel').value;\n this.dao.calibration = document.getElementById('calibration').value;\n this.dao.distance_to_sound_source_in_meter = document.getElementById('distance_to_sound_source_in_meter').value;\n this.dao.facility_id = document.getElementById('facility_id').value;\n this.dao.latitude_in_decimal_degree = document.getElementById('latitude_in_decimal_degree').value;\n this.dao.longitude_in_decimal_degree = document.getElementById('longitude_in_decimal_degree').value;\n this.dao.measurement_method_id = document.getElementById('measurement_method_id').value;\n this.dao.measurement_type = document.getElementById('measurement_type').value;\n this.dao.medium = document.getElementById('medium').value;\n this.dao.number_of_measurements = document.getElementById('number_of_measurements').value;\n this.dao.position_first_electrode = document.getElementById('position_first_electrode').value;\n this.dao.position_second_electrode = document.getElementById('position_second_electrode').value;\n this.dao.position_third_electrode = document.getElementById('position_third_electrode').value;\n this.dao.position_of_animal = document.getElementById('position_of_animal').value;\n this.dao.sedated = document.getElementById('sedated').value;\n this.dao.sedation_details = document.getElementById('sedation_details').value;\n this.dao.test_environment_description = document.getElementById('test_environment_description').value;\n this.dao.testtone_form_method_id = document.getElementById('testtone_form_method_id').value;\n this.dao.testtone_presentation_method_constants = document.getElementById('testtone_presentation_method_constants').value;\n this.dao.testtone_presentation_sound_form = document.getElementById('testtone_presentation_sound_form').value;\n this.dao.testtone_presentation_staircase = document.getElementById('testtone_presentation_staircase').value;\n this.dao.threshold_determination_method = document.getElementById('threshold_determination_method').value;\n this.dao.year_of_experiment_start = document.getElementById('year_of_experiment_start').value;\n this.dao.year_of_experiment_end = document.getElementById('year_of_experiment_end').value;\n }","function updateOutput7() {\n localStorage.setItem('info7', input_textarea7.value)\n}","function storeForm() {\n\t\t\n\t\t$( \".sessioninput\" ).each(function( index ) {\n\t\t\t\n\t\t\twindow.localStorage.setItem($(this).attr(\"name\"), $(this).val());\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\tstartSession()\n\t}","function save() {\n $editors.find('.text').each(function () {\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\n });\n }","saveData() {\n if (this.s.unavailable()) {\n return;\n }\n\n for (const val of this.dispField.items) {\n this.s.set(val, this.dispField.checked(val));\n }\n\n this.s.set(\"unit\", this.unitField.get());\n this.s.set(\"format\", this.formatField.get());\n this.s.set(\"sort\", this.sortableField.toArray());\n }","function saveForm() {\n return saveCompanySite()\n .then(saveInternalNumbers);\n }","autofill() {\n\t\tif (localStorage.getItem(\"lastname\")) {\n\t\t\t$(\"#lastName\").val(localStorage.getItem(\"lastname\"));\n\t\t\t$(\"#firstName\").val(localStorage.getItem(\"firstName\"));\n\t\t}\n\t}","function load() {\n let savedNotes = localStorage.getItem(\"dataNotes\");\n let savedTitle = localStorage.getItem(\"dataTitle\");\n if (savedNotes) {\n notes.value = savedNotes;\n }\n if (savedTitle) {\n notesTitle.value = savedTitle;\n headerTitleChange()\n }\n}","function showUserForm() {\n let user = null;\n\n // Try getting user object back from storage.\n try {\n user = JSON.parse(localStorage.getItem(\"user\"));\n } catch (e) {\n alert(\"Error loading from user information from storage.\");\n console.log(e);\n }\n\n // If the user object exists and isn't a null reference\n // update the form information with the user info.\n if (user != null) {\n $(\"#txtFirstName\").val(user.FirstName);\n $(\"#txtLastName\").val(user.LastName);\n $(\"#dateBirthday\").val(user.Birthdate);\n $(\"#txtNewPIN\").val(user.PIN);\n $(\"#sldMaxHoursPerDay\").val(user.HoursGoal);\n $(\"#sldMaxHoursPerDay\").slider(\"refresh\");\n }\n}","function storeForm() {\n /*jshint validthis:true */\n var form = $(this);\n var formId = form[0].id;\n if (!formId) return;\n var formJSON = app.formToJSON(form);\n if (!formJSON) return;\n app.formStoreData(formId, formJSON);\n form.trigger('store', {\n data: formJSON\n });\n }","function displayNotes (){\n if (localStorage.getItem(\"generalInfo\")){\n generalInfo = JSON.parse(localStorage.getItem(\"generalInfo\"));\n for(i = 0; i < generalInfo.length; i++){\n $(\"#inputEvent\"+generalInfo[i].display).attr(\"value\", generalInfo[i].notes);\n console.log($(\"#inputEvent\"+generalInfo[i].display));\n }\n }\n }","function storeForm() {\n /*jshint validthis:true */\n var form = $(this);\n var formId = form[0].id;\n if (!formId) return;\n var formJSON = app.formToJSON(form);\n if (!formJSON) return;\n app.formStoreData(formId, formJSON);\n form.trigger('store', {data: formJSON});\n }","function storeData(key){\n\t\t\t// if there is no key, this means this is brand new item and we need a new key.\n\t\t\tif(!key){\n\t\t\tvar id \t\t\t= Math.floor(Math.random()*100000001); // math that randomly picks a number to attach to the string\n\t\t\t}else{\n\t\t\t\t// set the id to the existing key we're editing so that it will save over the data\n\t\t\t\t//the key is the same key that's been passed along from the editSubmit event handler\n\t\t\t\t// id to the validate function, and then passed here, into the storeData function.\n\t\t\tid = key;\n\t\t\t}\n\t\tvar item \t\t\t= {};\n\t\t\titem.fname\t\t= [\"First Name:\", \t\t\t\t$('#fname').val()];\n\t\t\titem.lname\t\t= [\"Last Name:\", \t\t\t\t$('#lname').val()];\n\t\t\titem.email\t\t= [\"Email:\", \t\t\t\t\t$('#email').val()];\n\t\t\titem.date\t\t= [\"Date:\", \t\t\t\t\t$('#date').val()];\n\t\t\titem.make\t\t= [\"Make:\", \t\t\t\t\t$('#make').val()];\n\t\t\titem.car\t\t= [\"Car:\", \t\t\t\t\t\t$('#car').val()];\n\t\t\titem.caramount\t= [\"Number of cars you own:\", \t$('#caramount').val()];\n\t\t\titem.comments\t= [\"Any Comments:\", \t\t\t$('#comments').val()];\n\n\t\t\t// save data stringify\n\t\t\tlocalStorage.setItem(id, JSON.stringify(item));\n\t\t\talert(\"Contact Saved!\");\n\t}","function save(e) {\n var node = e.target;\n if (node.nodeName === 'INPUT' && node.checked) {\n localStorage[node.name] = node.value;\n }\n else if (node.nodeName === 'SELECT') {\n localStorage[node.name] = node.value;\n }\n }","function initialForm() {\n\n\n var date = document.getElementById(\"date\").value\n var name = document.getElementById(\"name\").value\n var address = document.getElementById(\"address\").value\n var datebirth = document.getElementById(\"datebirth\").value\n var sex = document.getElementById(\"sex\").value\n var civil = document.getElementById(\"civil\").value\n var cp = document.getElementById(\"cp\").value\n var tel = document.getElementById(\"tel\").value\n var cel = document.getElementById(\"cel\").value\n var mail = document.getElementById(\"mail\").value\n // \n document.getElementById(\"message\").innerHTML = \"Sus datos fueron guardados correctamente. Si necesita actualizar su información, por favor llene el formulario nuevamente o contacte al administrador.\"\n\n cleanFormInitial()\n addFormToStorage(date, name, address, datebirth, sex, civil, cp, tel, cel, mail)\n\n\n}","function toStaffs(){\n document.getElementById(\"input\").innerHTML = staffForm();\n}","function storeData(key){\n\t\t//if there is no key, this is a brand new item & we need a new key\n\t\tif(!(key)){\n\t\t\tvar id\t\t\t\t= Math.floor(Math.random()*1000000001);\n\t\t}else{\n\t\t\t//set the id to the existing key that we're editing in order to rewrite local storage\n\t\t\tid = key;\n\t\t}\n\t\t\n\t\t//Gather up all our form field values and store them in an object\n\t\t//Object properties contain array with form label and input values\n\n\t\tgetSelectedRadio();\n\t\tvar item\t\t\t= {};\n\t\t\titem.date\t\t= [\"Date: \", $('date').value];\n\t\t\titem.type\t\t= [\"Meal Type: \", $('type').value];\n\t\t\titem.group\t\t= [\"Food Group: \", groupValue];\n\t\t\titem.name\t\t= [\"Food Name: \", $('name').value];\n\t\t\titem.calories\t= [\"Calories: \", $('calories').value];\n\t\t\titem.notes\t\t= [\"Additional Notes: \", $('notes').value];\n\t\t//Save data to local storage\n\t\t\tlocalStorage.setItem(id, JSON.stringify(item));\n\t\t\talert(\"Meal Saved!\");\n\t\t\t\n\t}","function fread(){\n\tif(x.value == \"\"){\n\t\talert(\"Create a note first!!!\");\n\t}\n\telse if(document.Notes.note.value == \"\"){\n\t\talert(\"Type something!!!\");\n\t}\n\telse if(x.selectedIndex > s.length-1){\n\ts.push(document.Notes.note.value);\n\talert(\"Successfully saved\");\n\t}\n\telse {\n\t\ts[x.selectedIndex] = document.Notes.note.value;\n\t\talert(\"Successfully saved\");\n\t}\n}","function saveResponses () { \t\n localStorage.setItem(\"name\", nameField.value); \t\n localStorage.setItem(\"email\", emailField.value); \t\n localStorage.setItem(\"feedback\", feedbackField.value); \n}","function storeData (key) {\n\t\tif (!key) {\n\t\t\tvar id = Math.floor(Math.random()*1000000);\n\t\t} else {\n\t\t\tvar id = key;\n\t\t}\t\t\n\t\tgetSelectedRadio();\n\t\t\n\t\t//Form data into an object..\n\t\t//Object properties has array with label and value.\n\t\t\n\t\tvar item \t\t\t\t= {};\n\t\titem.group \t\t\t\t= [\"Group:\", $('groups').value];\n\t\titem.remindTitle \t\t= [\"Reminder Title:\", $('remindTitle').value];\n\t\titem.dueDate\t\t\t= [\"Due Date:\", $('due').value];\n\t\titem.priority\t\t\t= [\"Priority:\", priorityValue];\n\t\titem.recurrence\t\t\t= [\"Recurrence:\",$('recurrence').value];\n\t\titem.description\t\t= [\"Description:\", $('description').value];\n\t\t\n\t\t\n\t\t//Save to Local Storage\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\n\t\talert(\"Reminder is set!\");\n\t\t\n\t\twindow.location = 'index.html';\n\t\twindow.reload();\n\t}","function editStudyInfoSave(e) {\r\n\r\n\t// console.log($('#editStudyInfoModal .form-control').serializeObject());\r\n\r\n\tvar newInfo = $('#editStudyInfoModal .form-control').serializeObject();\r\n\t// console.log(newInfo)\r\n\tvar study = $('#edit-study-page').data('editing');\r\n\r\n\t_.forEach(newInfo, function(item, key) {\r\n\t\tstudy[key] = item;\r\n\t});\r\n\r\n\t$('#edit-study-page').data('editing', study);\r\n\r\n\t$('#editStudyInfoModal').modal('hide');\r\n\r\n}","function saveMentorForm(e) {\n e.preventDefault();\n var category = document.getElementById(\"category\").value;\n var paragraph = document.getElementById(\"paragraph\").value;\n saveMentor(category, currentMentor.fullName, currentMentor.job, currentMentor.company, paragraph, currentMentor.img, currentMentor.mail, currentMentor.linkedinLink, currentMentor.linkedinID);\n}","fillForm(data){\n this.titleInput.value = data.title\n this.bodyInput.value = data.body\n this.idInput.value = data.id\n\n this.changeFormState('edit')\n }","function saveBookmark(e){\n\t\n\t// get form values\n\tvar siteName = document.getElementById('siteName').value;\n\tvar siteUrl = document.getElementById('siteUrl').value;\n\n\t// calls function to validate form\n\t// if the function returns false\n\t// this if statement returns false\n\t// and doesn't submit form\n\tif(!validateForm(siteName, siteUrl)){\n\t\treturn false;\n\t};\n\n\t// bookmark object is created\n\t// with keys named name and site, \n\t// with property siteName and siteUrl\n\t// with values the user typed in\n\tvar bookmark ={\n\t\tname : siteName,\n\t\tsite : siteUrl\n\t}\n\n\t//check if bookmarks is null (the user didn't type anything)\n\t// in other words looks to check if the used had saved bookmarks already\n\t// if not then it'll create an array called bookmarks\n\tif (localStorage.getItem('bookmarks') ===\"null\"){\n\t\t\n\t\t//init array\n\t\tvar bookmarks = [];\n\n\t\t//add to the array\n\t\tbookmarks.push(bookmark);\n\t\t//set to local storage\n\t\t// HTML5 localStorage object is used here with the\n\t\t// method setItem and sets it in a key called bookmarks, and \n\t\t// you pass the array you created above called bookmarks\n\t\t// but since localStorage only takes strings, JSONs stringify\n\t\t// method is used here to convert the array into a string\n\t\tlocalStorage.setItem('bookmarks', JSON.stringify(bookmarks));\n\t}else{\n\t\t//get bookmarks and parse so it can turn back into an object so it can \n\t\t// be used to used it as an array\n\t\tvar bookmarks = JSON.parse(localStorage.getItem('bookmarks'));\n\t\t//add to array\n\t\tbookmarks.push(bookmark);\n\t\t//and set it in local storage\n\t\tlocalStorage.setItem('bookmarks', JSON.stringify(bookmarks));\n\t}\n\t//clear form\n\tdocument.getElementById('myForm').reset();\n\t//re fetch bookmarks\n\tfetchBookmark();\n\t// prevent form from submitting\n\te.preventDefault();\n}","function storeSettings() {\n check();\n browser.storage.local.set(f2j(form));\n}","function professionPeoples() {\r\n var profession = document.getElementById(\"profession\");\r\n profession[localStorage.getItem(\"save\")];\r\n console.log(profession.value);\r\n localStorage.setItem(\"profession\", profession.value);\r\n \r\n }","function Save_Data()\n{\n //handles setting profile's variable to entered name\n let tempName = name.value;\n if(tempName != \"\")\n {\n profile.name = tempName;\n }\n\n //sets profile's age to entered age\n let tempAge = Number(age.value);\n if ((tempAge != 0) && (tempAge != NaN))\n {\n profile.age = tempAge;\n }\n\n //sets profile's pet name to entered name\n let tempPetName = petName.value;\n if (tempName != \"\")\n {\n profile.petName = tempPetName;\n }\n\n //sets profile's favorite color to entered color\n let tempFavCol = favoriteColor.value;\n if (tempName != \"\")\n {\n profile.favoriteColor = tempFavCol;\n }\n\n //sets profile's favorite food to entered food\n let tempFavFood = favoriteFood.value;\n if (tempName != \"\")\n {\n profile.favoriteFood = tempFavFood;\n }\n\n //turns the profile object into json tet format and is displayed onto the page\n let json = JSON.stringify(profile);\n storage.textContent = json;\n}","function saveUserForm() {\n if (checkUserForm()) {\n // Set up the user object.\n const user = {\n FirstName: $(\"#txtFirstName\").val(),\n LastName: $(\"#txtLastName\").val(),\n Birthdate: $(\"#dateBirthday\").val(),\n PIN: $(\"#txtNewPIN\").val(),\n HoursGoal: $(\"#sldMaxHoursPerDay\").val(),\n };\n\n // Try to save the user object and alert if issues arise.\n try {\n localStorage.setItem(\"user\", JSON.stringify(user));\n alert(\"Saving Information\");\n\n $.mobile.changePage(\"#page-menu\");\n window.location.reload();\n } catch (e) {\n alert(\"Error saving user information to storage.\");\n console.log(e);\n }\n }\n}","_saveData(){\n this.forwardButton.classList.remove('inactive');\n this.backButton.classList.remove('inactive');\n this.homeContainer.classList.remove('inactive');\n this.homeContainer.innerHTML = \"HOME\";\n const entry = this.diaryEntry.value;\n this.diaryService.post(this.journalID,this.date, this.promptIndex,entry);\n }","function saveAnomalyForm() {\n var anomalyType = anomalyForms[anomalyIndex][\"anomaly\"];\n var formEntries = document.getElementById(\"custom-inputs\").getElementsByClassName(\"custom-input\");\n for (var i = 0; i < formEntries.length; i++) {\n var input = formEntries.item(i);\n var fieldName = input.id;\n anomalyForms[anomalyIndex][\"json\"][\"fields\"][fieldName][\"value\"] = input.value;\n }\n}","function saveObject(form) {\n /// know the object\n var which = form.dataset.which;\n // save values as vars\n let objectName = document.getElementById('' + which + 'Name');\n /// preparing form final validation\n //// checking what object to save in DB\n switch (which) {\n case 'student':\n /// gets all checkBox of courses selected to add them to Deals Table.\n var selectedCoursesArray = [];\n var myCheckBoxContChildren = $('#' + which + 'Courses').children();\n for (var i = 0; i < myCheckBoxContChildren.length; i++) {\n if (myCheckBoxContChildren[i].checked) {\n selectedCoursesArray.push(myCheckBoxContChildren[i].dataset.courseid)\n }\n }\n // phone and email validations happened onblur events\n var objectPhone = document.getElementById('' + which + 'Phone');\n var objectEmail = document.getElementById('' + which + 'Email');\n var formOk = (objectName.value.length > 0 && letSaveEmail && letSavePhone);\n break;\n case 'course':\n var objectDescription = document.getElementById('' + which + 'Description');\n ///Course name existence checked ontop on blur event.\n var formOk = (courseName.value.length > 0 && letSaveCName && objectDescription.value.length > 0);\n break;\n case 'administator':\n // phone and email validations happened onblur events\n var objectPhone = document.getElementById('' + which + 'Phone');\n var objectEmail = document.getElementById('' + which + 'Email');\n if (changePassword) {\n /// determine first if user clicked on change password button\n var objectPassword = document.getElementById('' + which + 'Password').value;\n ///add case\n if (objectPassword.length >= 4) {\n //letSavePass stays true\n $('#passErrMsg').hide();\n $('#passErrMsg').empty();\n /// edit case\n if (letSavePass === null) {\n ///null happens only in edit case: if no request to change its still a null.\n letSavePass = false;\n }\n ;\n } else {\n ///err.. password is too short\n $('#passErrMsg').html(\"password is too short-minimum length: 4 digits.\");\n $('#passErrMsg').show();\n }\n ;\n }\n ;\n var objectPassword = document.getElementById('' + which + 'Password');\n var objectRole = document.getElementById('beautifulSelect');\n if (letSavePass === null) {\n //edit case\n if (changePassword) {\n //need to add password.\n var formOk = (objectName.value.length > 0 && $('#' + which + 'Password').val().length >= 4 && letSaveEmail && letSavePhone && letAddRole);\n\n } else {\n //no need to add password.\n var formOk = (objectName.value.length > 0 && letSaveEmail && letSavePhone && letAddRole);\n }\n } else if (letSavePass === false || letSavePass === true) {\n // need to add password.\n var formOk = (objectName.value.length > 0 && $('#' + which + 'Password').val().length >= 4 && letSaveEmail && letSavePhone && letAddRole);\n }\n ;\n break;\n }\n ;\n let addingSucsMsg = document.getElementById('addingSucsMsg');\n let addingErrMsg = document.getElementById('addingErrMsg');\n addingSucsMsg.style.display = \"none\";\n //// make sure didn't upload any wrong type of image\n if ((letSaveImage) || letSaveImage === null) {\n ////\n ///// make sure name is set and email is in the right format.\n if (formOk) {\n addingErrMsg.innerHTML = \"\";\n addingErrMsg.style.display = \"none\";\n ////\n /// last modifying before calling controller.\n var formData = new FormData();\n formData.append('name', objectName.value);\n /// modifying depends on which object\n switch (which) {\n case 'student':\n formData.append('email', objectEmail.value);\n formData.append('phone', objectPhone.value.split('-').join(''));\n formData.append('selectedCourses', JSON.stringify(selectedCoursesArray));\n formData.append('addStudent', null);\n break;\n case 'course':\n formData.append('description', objectDescription.value);\n formData.append('addCourse', null);\n break;\n case 'administator':\n formData.append('email', objectEmail.value);\n formData.append('phone', objectPhone.value.split('-').join(''));\n if (!(letSavePass === null)) {\n ///user want to update password\n formData.append('password', objectPassword.value);\n } else {\n //no change needed\n formData.append('password', \"no\");\n }\n ;\n formData.append('role', objectRole.value);\n formData.append('addAdministator', null);\n break;\n }\n ;\n //// if chose to not use image - give him default image\n if (letSaveImage === null) {\n formData.append('image', 'useDefault');\n } else {\n //// user uploaded an image\n let fileSelect = document.getElementById('' + which + 'Image');\n let file = fileSelect.files[0];\n //// name is going to be student_id for future uses..\n let filename = '.jpg';\n formData.append('image', file, filename);\n }\n ;\n // use hidden\n var hidden = $('#hiddenInput')[0];\n var what = hidden.dataset.what;\n //check what we are doing right now.\n switch (what) {\n case 'add':\n //// calling XHR post Function. for adding new object\n XHRcall(formData, which);\n break;\n case 'edit':\n // gather data about the user and send it along with form\n let who = hidden.dataset.who;\n formData.append('objectID', who);\n formData.append('edit', null);\n setTimeout(() => {\n saveNUpdate(formData, which);\n }, 50);\n if (($('#existingImageOpinion')[0].checked)) {\n removeExistingImage(who, which);\n }\n ;\n break;\n }\n ;\n\n } else {\n ///// not everything is as requested.\n addingErrMsg.innerHTML = \"Some of the required fields are empty or not as requested.\";\n addingErrMsg.style.display = \"block\";\n /// wait 4 seconds, let this error gone away.\n setTimeout(function () {\n addingErrMsg.style.display = \"none\";\n }, 4000)\n }\n }\n ;\n}","function store(){\n var inputFirstName= document.getElementById(\"first_name\");\n var inputLastName= document.getElementById(\"last_name\");\n var inputAddress= document.getElementById(\"address\");\n var inputCity= document.getElementById(\"city\");\n var inputState= document.getElementById(\"state\");\n var inputZipcode= document.getElementById(\"zipcode\");\n localStorage.setItem(\"first_name\", inputFirstName.value);\n localStorage.setItem(\"last_name\", inputLastName.value);\n localStorage.setItem(\"address\", inputAddress.value);\n localStorage.setItem(\"city\", inputCity.value);\n localStorage.setItem(\"state\", inputState.value);\n localStorage.setItem(\"zipcode\", inputZipcode.value);\n \n console.log(inputFirstName.value, inputLastName.value, inputAddress.value, inputCity.value, inputState.value, inputZipcode.value);\n }","function populateUserForm() {\n var cu = currentUser;\n enter.name.value = cu.name;\n enter.email.value = cu.email;\n enter.age.value = cu.age;\n enter.currentWeight.value = cu.currentWeight;\n enter.targetWeight.value = cu.targetWeight;\n}","function saveForm()\n{ \n // retrieve the data from the form\n var first = document.getElementById( \"first\" ).value;\n var last = document.getElementById( \"last\" ).value;\n var street = document.getElementById( \"street\" ).value;\n var city = document.getElementById( \"city\" ).innerHTML;\n var state = document.getElementById( \"state\" ).innerHTML;\n var zip = document.getElementById( \"zip\" ).value;\n var phone = document.getElementById( \"phone\" ).value;\n \n // check if data is valid \n if ( !zipValid || !phoneValid )\n {\n // display error message\n document.getElementById( \"success\" ).innerHTML = \n \"Invalid data entered. Check form for more information\";\n } // end if\n else if ( ( first == \"\" ) || ( last == \"\" ) )\n {\n // display error message\n document.getElementById( \"success\").innerHTML = \n \"First Name and Last Name must have a value.\";\n } // end if\n else\n {\n // hide the form and show the addressbook\n document.getElementById( \"addEntry\" ).style.display = \"none\";\n document.getElementById( \"addressBook\" ).style.display = \"block\";\n\n // call the web service to insert data into the database\n callWebService( \"/addEntry/\" + first + \"/\" + last + \"/\" + street +\n \"/\" + city + \"/\" + state + \"/\" + zip + \"/\" + phone, parseData );\n } // end else\n} // end function saveForm","save() {\n this._toggleSaveThrobber();\n try {\n this._readFromForm();\n var resp = this.dao.save();\n if (!resp) {\n alert(\"Error while saving taxon.\")\n } else {\n var jsonObj = JSON.parse(resp);\n if (jsonObj[0].response == false ) {\n alert(jsonObj[1].response);\n } else {\n console.log(this.dao)\n // make sure the latin name input field is showing the correct name, reload data from server\n document.getElementById('latin_name').value = this.dao.unique_name;\n alert('Saved');\n }\n }\n } catch(e) {\n alert(e);\n console.log(e);\n }\n this._toggleSaveThrobber();\n }","function storeData(key){\n\t\t//If there is no key, this means this is a brand new item and we need a new key.\n\t\tif(!key) {\n\t\t\tvar dataId = Math.floor(Math.random()*100000001)\n\t\t} else {\n\t\t\t//Set the id to the existing key we're editing so that it will save over the data.\n\t\t\t//The key is the same key that's been passed along from the editSubmit event handler\n\t\t\t//to the validate function, and then passed here, into th storeData function.\n\t\t\tdataId = key;\n\t\t}\n\n\t\t//Gather up all our form field values and store in an object\n\t\t//Object properties contain array with the form label and the input values\n\t\tvar item = {};\n\t\t\titem.platforms = [\"Game Platform:\", $('platforms').value ];\n\t\t\titem.game = [\"Game Title:\", $(\"game\").value];\n\t\t\titem.date = [\"Date Purchased:\", $(\"date\").value];\n\t\t\titem.fav = [\"Favorite:\", getFavValue()];\n\t\t\titem.score = [\"Score:\", $(\"score\").value];\n\t\t\titem.comments = [\"Comments:\", $(\"comments\").value];\n\t\t//Save data to local storage: Use stringify to convert our object to a string\n\t\tlocalStorage.setItem(dataId, JSON.stringify(item));\n\t\talert(\"Game Saved!\");\n\t}","function saveObj(form, type) {\n\n // Grab universal entry options from form\n let date = document.forms[form]['date'].value + \"\";\n let time = document.forms[form]['time'].value + \"\";\n let note = document.forms[form]['note'].value + \"\";\n\n // Grab form specific data options\n // -------------------------------------------------------------JavaScript - Conditional Statments Ex. 2||\n if (type == \"weather\") {\n\n let weather = document.forms[form]['weather'].value + \"\";\n \n // -------------------------------------------------------------JavaScript Objects - instantiation Ex. 3||\n let weatherObj = new Weather(time, date, note, weather);\n storeEntry(weatherObj);\n\n } else if (type == \"mood\") {\n\n let mood = document.forms[form]['mood'].value + \"\";\n \n let moodObj = new Mood(time, date, note, mood);\n storeEntry(moodObj);\n\n } else if (type == \"exercise\") {\n\n let workout = document.forms[form]['workout'].value + \"\";\n let duration = document.forms[form]['duration'].value + \"\";\n \n let exerciseObj = new Exercise(time, date, note, workout, duration);\n storeEntry(exerciseObj);\n\n } else {\n\n alert(\"Submission Error: Please reload the page.\")\n\n }\n\n //Re-render List instantly\n removeList();\n buildList();\n}","function saveTerrainModificationForm() {\n var terrainModificationType = terrainModificationForms[terrainModificationIndex][\"terrain-modification\"];\n var formEntries = document.getElementById(\"custom-inputs\").getElementsByClassName(\"custom-input\");\n for (var i = 0; i < formEntries.length; i++) {\n var input = formEntries.item(i);\n var fieldName = input.id;\n terrainModificationForms[terrainModificationIndex][\"json\"][\"fields\"][fieldName][\"value\"] = input.value;\n }\n}","function formData() {\n\n\t// initialise the variables\n\tparticipantID = document.getElementById(\"participantID\").value\n\ttype = document.getElementById(\"type\").value\n\tdate = document.getElementById(\"date\").value\n\ttime = document.getElementById(\"time\").value\n\triskFactor = document.getElementById(\"riskFactor\").value\n\tDescription = document.getElementById(\"description\").value\n\n\t// Test if the variables are filled\n\tif (\n\t\tparticipantID === \"\" ||\n\t\ttype === \"\"||\n\t\tdate === \"\" ||\n\t\ttime === \"\" ||\n\t\triskFactor === \"\" ||\n\t\tDescription === \"\"\n\t\t) {\n\talert(\"Please complete all of the fields\") // tell the user to complete all fields\n\t}\n\t// if the data is filled in then display\n\telse {\n\talert(\n\t\t\" participant ID = \" + participantID +\n\t\t\" Type = \" + type +\n\t\t\" Date = \" + date +\n\t\t\" Time = \" + time +\n\t\t\" Risk Factor = \" + riskFactor +\n\t\t\" Description : \" + Description\n\t\t)\n\t}\n}","function SaveItem() {\n\t\t\t\n\tvar name = document.forms.ShoppingList.name.value;\n\tvar data = document.forms.ShoppingList.data.value;\n\twindow.localStorage.setItem(name,data);\n\tdoShowAll();\n\t\n}","function saveSettings() {\n \n const curUser = getCurrentUser();\n const editedUser = curUser;\n \n editedUser.firstName = document.getElementById('first2').value;\n editedUser.lastName = document.getElementById('last2').value;\n editedUser.email = document.getElementById('email3').value;\n editedUser.password = document.getElementById('pass3').value;\n \n const index = (editedUser.userId-1);\n let allUsers = getAllUsers();\n allUsers[index] = editedUser;\n setAllUsers(allUsers);\n }","function saveData(ranKey) {\n //random key number\n //console.log(\"save it enter\");\n if(!ranKey){\n var id = Math.floor(Math.random()*120211);\n }else{\n id = ranKey;\n }\n getCheckbox();\n getRadio();\n var field={};\n\n field.title=[\"Book Title\", $(\"Title\").value];\n field.date=[\"Date Added:\", $(\"date\").value];\n field.booknumber=[\"Issue Number\", $(\"booknumber\").value];\n field.coverstyle=[\"Cover Style\", styleValue];\n field.read=[\"Read\", readValue];\n field.notes=[\"Notes\", $(\"Notes\").value];\n field.grade=[\"CCG Grading\", $(\"slider\").value];\n\n //Function to convert data into strings (stringify)\n\n localStorage.setItem(id, JSON.stringify(field));\n alert(\"Book Saved\");\n }","function setUpVariableInputs(){\n staff_id = getParameterByName(\"staff\");\n stu_id = getParameterByName(\"stu\");\n set_id = getParameterByName(\"set\");\n start_date = getParameterByName(\"start\");\n end_date = getParameterByName(\"end\");\n set_student = user[\"role\"] === \"STUDENT\" ? user[\"userId\"] : getParameterByName(\"student\");\n\n localStorage.setItem(\"initialRun\", true);\n disableGenerateReportButton();\n if (set_student) {\n student_report_view = true;\n setStudent(set_student);\n $(\"#staff_col\").css(\"display\", \"none\");\n } else {\n getStaff();\n }\n setDates();\n}","function updatePersistentDataForm(iniobj) {\r\n \"use strict\";\r\n document.getElementById(\"ini-name\").value = iniobj.General.Name;\r\n document.getElementById(\"ini-location\").value = parseInt(iniobj.General.Room.trim());\r\n document.getElementById(\"ini-kills\").value = parseInt(iniobj.General.Kills.trim());\r\n document.getElementById(\"ini-love\").value = parseInt(iniobj.General.Love.trim());\r\n if (iniobj.FFFFF) {\r\n if (iniobj.FFFFF.F) {\r\n if (parseInt(iniobj.FFFFF.F.trim()) === 1) {\r\n document.getElementById(\"ini-omega-flowey-trapped\").checked = true;\r\n } else {\r\n document.getElementById(\"ini-omega-flowey-trapped\").checked = false;\r\n }\r\n }\r\n if (iniobj.FFFFF.P) {\r\n document.getElementById(\"ini-omega-flowey-soul\").value = parseInt(iniobj.FFFFF.P.trim());\r\n }\r\n if (iniobj.FFFFF.D) {\r\n document.getElementById(\"ini-omega-flowey-deaths\").value = parseInt(iniobj.FFFFF.D.trim());\r\n }\r\n } else {\r\n document.getElementById(\"ini-omega-flowey-trapped\").checked = false;\r\n }\r\n if (iniobj.reset) {\r\n if (iniobj.reset.s_key) {\r\n if (parseInt(iniobj.reset.s_key.trim()) === 1) {\r\n document.getElementById(\"ini-dodged-all-special-thanks\").checked = true;\r\n } else {\r\n document.getElementById(\"ini-dodged-all-special-thanks\").checked = false;\r\n }\r\n }\r\n } else {\r\n document.getElementById(\"ini-dodged-all-special-thanks\").checked = false;\r\n }\r\n if (iniobj.fun) {\r\n document.getElementById(\"ini-fun\").value = parseInt(iniobj.fun.trim());\r\n }\r\n}","function save(){\n\t\tvar y =$(this).attr(\"id\");\n\t\tvar g= JSON.stringify(y);\n\t\tlocalStorage.setItem(y, $(this).val()); // localStorage.setItem(\"lastname\", \"Smith\"); localStorage.getItem(\"lastname\");\n\t}","function moveToStep2(student) {\n if (student != null) {\n $('#name').val(student.name);\n $('#gender').val(student.gender);\n $('#birthday').val(student.birthday);\n $('#phone').val(student.phone);\n }\n}","function Save() {\n if ($('#ab041AddEdit').valid()) {\n if (vm.isNew) {\n dataContext.add(\"/api/ab041\",vm.ab041).then(function (data) {\n notify.showMessage('success', \"ab041 record added successfully!\");\n\t\t\t\t\t\twindow.location.hash = \"/ab041/\";\n });\n } else {\n dataContext.upDate(\"/api/ab041\", vm.ab041).then(function (data) {\n notify.showMessage('success', \"ab041 record updated successfully!\");\n\t\t\t\t\t\twindow.location.hash = \"/ab041/\";\n });\n }\n }\n }","function storedData() {\n localStorage.setItem(\"journalEntry\", newEvent);\n const storedInput = localStorage.getItem(\"journalEntry\");\n\n // if(storageInput) {\n\n // }\n}","function savedLink(e){\n\t//form values\n\t//logs the value not the input field\n\tvar siteName = document.getElementById('siteName').value;\n\tvar siteURL = document.getElementById('siteURL').value;\n\n\tif(!validForm(siteURL, siteName)){\n\t\treturn false;\n\t}\n\n\t//creating bookmark object with siteName/siteURL variables in it\n\tvar bookmark = {\n\t\tname: siteName,\n\t\turl: siteURL\n\t}\n\n\n\t//if its null need to initialaise bookmarks array\n\tif(localStorage.getItem('bookmarks') === null){\n\t\t//bookmark array\n\t\tvar bookmarks = [];\n\t\t//this will add to the array\n\t\tbookmarks.push(bookmark);\n\t\t//set to local storage + wrapping bookmarks in a json function to turn it into a string before saving it\n\t\tlocalStorage.setItem('bookmarks', JSON.stringify(bookmarks));\n\t} \n\t//if there is an object in bookmarks array\n\telse{\n\t\t//get bookmarks array from localStorage\n\t\tvar bookmarks = JSON.parse(localStorage.getItem('bookmarks'));\n\t\t//add bookmark to array\n\t\tbookmarks.push(bookmark);\n\t\t//reset to localStorage\n\t\tlocalStorage.setItem('bookmarks', JSON.stringify(bookmarks));\n\n\t}\n\n\tgetBookmarks();\n\t//this prevents the default behavour of the event listener, \n\t//stops form from submitting so you can work with it.\n\te.preventDefault();\n}","function saveDraft() {\n\t\t\tvar currentDrafts = getDrafts();\n\t\t\tcurrentDrafts.push($('#comment-text').val());\n\t\t\t\n\t\t\t// Updates the map with an array of drafts for the current user in the private state object (wave)\n\t\t\twave.getPrivateState().submitDelta({'drafts': currentDrafts});\n\t\t}","function setSave(e) {\n e.preventDefault();\n character.savingThrowModifier.strength = document.getElementById('strSave').value;\n character.savingThrowModifier.dexterity = document.getElementById('dexSave').value;\n character.savingThrowModifier.constitution = document.getElementById('conSave').value;\n character.savingThrowModifier.intelligence = document.getElementById('intSave').value;\n character.savingThrowModifier.wisdom = document.getElementById('wisSave').value;\n character.savingThrowModifier.charisma = document.getElementById('chaSave').value;\n}"],"string":"[\n \"function getForm() {\\n inputNombre.value = localStorage.getItem('nombre');\\n inputApellido.value = localStorage.getItem('apellido');\\n inputTel.value = localStorage.getItem('tel');\\n inputDir.value = localStorage.getItem('dir');\\n inputObs.value = localStorage.getItem('obs');\\n console.log('data loaded');\\n}\",\n \"function applyCurrentStaff(){\\n currentN = document.getElementById(\\\"staff\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = staffDataChangeForm();\\n}\",\n \"function applyStaffDataChanges(){\\n var linecount = document.getElementById(\\\"linecount\\\").value;\\n var linecolor = document.getElementById(\\\"linecolor\\\").value;\\n var mode = document.getElementById(\\\"mode\\\").value;\\n \\n if(linecount && linecount != \\\"none\\\"){\\n currentStaff.linecount = linecount;\\n }\\n if(linecolor && linecolor != \\\"none\\\"){\\n currentStaff.linecolor = linecolor;\\n }\\n if(mode && mode != \\\"none\\\"){\\n currentStaff.mode = mode;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = staffDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"updateForm(data) {\\n\\t\\tthis.employeeName.value = data.name;\\n\\t\\tthis.employeeAge.value = data.age;\\n\\t\\tthis.employeePosition.value = data.position;\\n\\t\\tthis.employeeSalary.value = data.salary;\\n\\t}\",\n \"function getFormData() {\\n // User Info Obj\\n const user = {\\n netID: document.getElementById('netID').value,\\n contact: document.getElementById('contact').value,\\n location: document.getElementById('location').value,\\n description: document.getElementById('issue').value,\\n team: document.getElementById('team').value,\\n manager: document.getElementById('managerId').value\\n };\\n // Get priority level selection RadioButtons\\n const rbs = document.querySelectorAll('input[name=radioBtn]');\\n let selectedValue;\\n for (const rb of rbs) {\\n if (rb.checked) {\\n selectedValue = rb.value;\\n break;\\n }\\n }\\n /*Get category*/\\n const category = {\\n cat: document.getElementById('cat').value,\\n sub: document.getElementById('sub').value\\n };\\n //Formatting for txt file.\\n const userData =\\n 'NetID: ' +\\n user.netID +\\n '\\\\n' +\\n '\\\\n' +\\n 'Contact: ' +\\n user.contact +\\n '\\\\n' +\\n '\\\\n' +\\n 'Location: ' +\\n user.location +\\n '\\\\n' +\\n '\\\\n' +\\n 'Priority: ' +\\n selectedValue +\\n '\\\\n' +\\n '\\\\n' +\\n 'Category: ' +\\n category.cat +\\n '\\\\n' +\\n '\\\\n' +\\n 'Sub-Category: ' +\\n category.sub +\\n '\\\\n' +\\n '\\\\n' +\\n 'Assignment Team: ' +\\n user.team +\\n '\\\\n' +\\n '\\\\n' +\\n 'Group Manager Contact: ' +\\n user.manager +\\n '\\\\n' +\\n '\\\\n' +\\n 'Full Description: ' +\\n '\\\\n' +\\n user.description;\\n //print date\\n const today = new Date();\\n //save BLOB to txt file\\n const blob = new Blob([userData], { type: 'text/plain;charset=utf-8' });\\n saveAs(blob, today);\\n //refresh page for new form\\n location.reload();\\n}\",\n \"function copyStorageToForm() {\\n \\\"use strict\\\";\\n // Set chosen hair type\\n setFormHairType(sessionStorage.getItem(\\\"hair_type\\\"));\\n\\n // Set selected traits\\n setFormTraits(sessionStorage.getItem(\\\"traits\\\"));\\n}\",\n \"function saveManageBusinessFields() {\\n // Save business details in local Storage\\n var businessName = document.getElementById('businessName').value;\\n if (businessName != null) {\\n localStorage.setItem('businessName', businessName);\\n }\\n\\n var businessPhone = document.getElementById('businessPhone').value;\\n if (businessPhone != null) {\\n localStorage.setItem('businessPhone', businessPhone);\\n }\\n\\n var businessAddress = document.getElementById('set-address').value;\\n if (businessAddress != null) {\\n localStorage.setItem('businessAddress', businessAddress);\\n }\\n}\",\n \"function toChangeStaffData(){\\n if(staffs.length > 0){\\n currentN = staffs[0].n;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = staffDataChangeForm();\\n}\",\n \"function saveData()\\n{\\n\\t\\\"use strict\\\";\\n\\n\\n\\tvar currentDate = new Date();\\n\\tvar year, month, day;\\n\\tyear = currentDate.getFullYear();\\n\\t\\n\\tif (currentDate.getMonth().toString().length === 1)\\n\\t{\\n\\t\\tmonth = \\\"0\\\" + currentDate.getMonth().toString(); \\n\\t}\\n\\telse\\n\\t{\\n\\t\\tmonth = currentDate.getMonth().toString();\\n\\t}\\n\\t\\n\\tif (currentDate.getDate().toString().length === 1)\\n\\t{\\n\\t\\tday = \\\"0\\\" + currentDate.getDate().toString(); \\n\\t}\\n\\telse\\n\\t{\\n\\t\\tday = currentDate.getDate().toString();\\n\\t}\\n\\t\\n\\tcreationDate = year + month + day;\\n\\talert(creationDate);\\n\\tcreationTime = currentDate.getHours() + \\\":\\\" + currentDate.getMinutes();\\n\\n\\t\\n\\ttitle = document.getElementById(\\\"txtTitle\\\").value;\\n content = document.getElementById(\\\"txtContent\\\").value;\\n\\tteacherName = document.getElementById(\\\"txtTeacherName\\\").value;\\n\\tsubject = document.getElementById(\\\"txtSubject\\\").value;\\n\\t\\n\\talert(\\\"Your information has been saved\\\");\\n\\n\\tdeadline = document.getElementById(\\\"txtDeadline\\\").value;\\n\\n\\n\\t// Add code to store rest of input in variables here\\n \\n// Store the information in localstorage\\n localStorage.setItem(\\\"title\\\", title);\\n localStorage.setItem(\\\"content\\\", content);\\n\\tlocalStorage.setItem(\\\"teacherName\\\", teacherName);\\n\\n \\n //alert to inform user data has been saved.\\n\\n}\",\n \"fillForm() {\\n\\n if (localStorage.getItem(\\\"lastname\\\") !== undefined)\\n $(\\\"form\\\")[0].lastname.value = localStorage.getItem(\\\"lastname\\\");\\n\\n if (localStorage.getItem(\\\"firstname\\\") !== undefined)\\n $(\\\"form\\\")[0].firstname.value = localStorage.getItem(\\\"firstname\\\");\\n\\n }\",\n \"function save_data() {\\n var name = document.getElementById(\\\"getInfo\\\")[0].value;\\n var lastName = document.getElementById(\\\"getInfo\\\")[1].value;\\n \\n localStorage.setItem(\\\"name\\\", name);\\n localStorage.setItem(\\\"lastName\\\", lastName);\\n}\",\n \"function storeData() {\\n trainName = $(\\\"#Train-Name\\\").val();\\n destinationName = $(\\\"#Destination-Name\\\").val();\\n firstTrainTime = $(\\\"#First-Time\\\").val();\\n trainFrequency = $(\\\"#Frequency\\\").val();\\n}\",\n \"function fetchStorage() {\\n txtFName.value = localStorage.getItem(\\\"input-name\\\");\\n txtLName.value = localStorage.getItem(\\\"input-lastname\\\");\\n txtPhone.value = localStorage.getItem(\\\"input-phone\\\");\\n txtEmail.value = localStorage.getItem(\\\"input-email\\\");\\n }\",\n \"save() {\\n try {\\n this._toggleSaveThrobber();\\n this._readFromForm();\\n this.dao.save();\\n\\n // make sure the edit input is showing the correct id, reload data from server\\n document.getElementById('edit_id').value = this.dao.id;\\n this.read();\\n \\n } catch(e) {\\n console.log(e);\\n alert(e);\\n }\\n this._toggleSaveThrobber();\\n }\",\n \"function setData() {\\n localStorage.setItem('name', username.value);\\n localStorage.setItem('email', email.value);\\n localStorage.setItem('city', city.value);\\n localStorage.setItem('organisation', organisation.value);\\n localStorage.setItem('contact', contact.value);\\n localStorage.setItem('message', message.value);\\n // Reset all the fields.\\n username.value = '';\\n email.value = '';\\n city.value = 'city';\\n organisation.value = '';\\n contact.value = '';\\n message.value = '';\\n\\n}\",\n \"function showUserForm() {\\n try {\\n var user = JSON.parse(localStorage.getItem(\\\"user\\\"));\\n } catch(e) {\\n if (window.navigator.vendor === \\\"Google Inc.\\\") {\\n if (e === DOMException.QUOTA_EXCEEDED_ERR) {\\n alert(\\\"Error: Saving to local storage\\\");\\n }\\n } else if (e === QUOTA_EXCEEDED_ERR) {\\n alert(\\\"Error: Saving to local storage.\\\");\\n }\\n \\n console.log(e);\\n }\\n \\n if(user != null) {\\n $(\\\"#FirstName\\\").val(user.FirstName);\\n $(\\\"#LastName\\\").val(user.LastName);\\n $(\\\"#DOB\\\").val(user.DOB);\\n $(\\\"#changePassword\\\").val(user.NewPassword);\\n $(\\\"#height\\\").val(user.Height);\\n $(\\\"#weight\\\").val(user.Weight);\\n }\\n }\",\n \"function setInfo() {\\n var name = document.querySelector(\\\"#name_form_student\\\");\\n name.value = local_user.name;\\n var account_number = document.querySelector(\\\"#no_cuenta_form_student\\\");\\n account_number.value = local_user.num_account;\\n var career = document.querySelector(\\\"#carrer_form_student\\\");\\n career.value = local_user.career;\\n var email = document.querySelector(\\\"#email_form_student\\\");\\n email.value = local_user.email;\\n var semester = document.querySelector(\\\"#semester_form_student\\\");\\n semester.value = local_user.semester;\\n\\n}\",\n \"function saveData() {\\n\\t\\tif(!key){\\n\\t\\t\\tvar id \\t\\t\\t\\t\\t\\t= Math.floor(Math.random()*1000001);\\n\\t\\t}else{\\n\\t\\t\\tid = key;\\n\\t\\t}\\n\\t\\t\\n\\t\\tgetRadioValue ();\\n\\t\\tgetCheckbox();\\n\\t\\tvar item\\t\\t\\t\\t\\t\\t= {};\\n\\t\\t\\t item.kname\\t\\t\\t\\t= [\\\"Kid's Name:\\\", $(\\\"kname\\\").value];\\n\\t\\t\\t item.pname\\t\\t\\t\\t= [\\\"Parent's Name:\\\", $(\\\"pname\\\").value];\\n\\t\\t\\t item.phone\\t\\t\\t\\t= [\\\"Phone #:\\\", $(\\\"phone\\\").value];\\n\\t\\t\\t item.email\\t\\t\\t\\t= [\\\"Email:\\\", $(\\\"email\\\").value];\\n\\t\\t\\t item.date\\t\\t\\t\\t= [\\\"Play Date:\\\", $(\\\"date\\\").value];\\n\\t\\t\\t item.sex\\t\\t\\t\\t= [\\\"Sex:\\\", sexValue];\\n\\t\\t\\t item.choice\\t\\t\\t= [\\\"Best Time of Week:\\\", $(\\\"choice\\\").value];\\n\\t\\t\\t item.select\\t\\t\\t= [\\\"Best Time of Day:\\\", $(\\\"dayTimes\\\").value];\\n\\t\\t\\t item.allergies\\t\\t= [\\\"Needs:\\\", hasAllergy];\\n\\t\\t\\t item.comments\\t\\t\\t= [\\\"Notes:\\\", $(\\\"comments\\\").value];\\n\\t\\t\\t item.outgoing\\t\\t\\t= [\\\"How Outgoing? 1-10:\\\", $(\\\"outgoing\\\").value];\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\n\\t\\talert(\\\"Saved!\\\");\\n\\t}\",\n \"function storeData(){\\r\\n\\t\\tvar id \\t\\t\\t\\t= Math.floor(Math.random()*100000000001);\\r\\n\\t\\t//Gather up all our form field values and store in an object\\r\\n\\t\\t//Object properties contain an array with the form label and input value\\r\\n\\t\\tgetSelectedRadio();\\r\\n\\t\\tvar item \\t\\t\\t\\t= {};\\r\\n\\t\\t\\titem.comicTitle\\t\\t= [\\\"Title of Comic:\\\", e('comicTitle').value];\\r\\n\\t\\t\\titem.seriesTitle\\t= [\\\"Title of Series:\\\", e('seriesTitle').value];\\r\\n\\t\\t\\titem.issueNum\\t\\t= [\\\"Issue Number:\\\", e('issueNum').value];\\r\\n\\t\\t\\titem.dateReleased\\t= [\\\"Date Released:\\\", e('dateReleased').value];\\r\\n\\t\\t\\titem.publisher\\t\\t= [\\\"Publisher:\\\", e('publisher').value];\\r\\n\\t\\t\\titem.rateIssue\\t\\t= [\\\"Rate of Issue:\\\", e('rateIssue').value];\\r\\n\\t\\t\\titem.genre \\t\\t\\t= [\\\"Genre:\\\", e('genre').value];\\r\\n\\t\\t\\titem.illStyle\\t\\t= [\\\"Illustration Style:\\\", styleValue];\\r\\n\\t\\t\\titem.comments\\t\\t= [\\\"Comments:\\\", e('comments').value];\\r\\n\\t\\t//Save data into Local Storage: Use Stringify to convert our object to a string\\r\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\r\\n\\t\\talert(\\\"Comic saved to index!\\\");\\r\\n\\t}\",\n \"function saveState() {\\n const state = {\\n cf: cfSelect.value,\\n gf: gfSelect.value,\\n mf: mfSelect.value,\\n am: amSelect.value,\\n };\\n localStorage.setItem('collecting_together_form', JSON.stringify(state));\\n }\",\n \"function addData(e) {\\n // prevent default - we don't want the form to submit in the conventional way\\n e.preventDefault();\\n\\n // grab the values entered into the form fields and store them in an object ready for being inserted into the DB\\n let newItem = { title: titleInput.value, body: bodyInput.value };\\n\\n // open a read/write db transaction, ready for adding the data\\n let transaction = db.transaction(['notes_os'], 'readwrite');\\n\\n // call an object store that's already been added to the database\\n let objectStore = transaction.objectStore('notes_os');\\n\\n // Make a request to add our newItem object to the object store\\n let request = objectStore.add(newItem);\\n request.onsuccess = function() {\\n // Clear the form, ready for adding the next entry\\n titleInput.value = '';\\n bodyInput.value = '';\\n };\\n\\n // Report on the success of the transaction completing, when everything is done\\n transaction.oncomplete = function() {\\n console.log('Transaction completed: database modification finished.');\\n\\n // update the display of data to show the newly added item, by running displayData() again.\\n displayData();\\n };\\n\\n transaction.onerror = function() {\\n console.log('Transaction not opened due to error');\\n };\\n}\",\n \"function displayData() {\\n\\n if (localStorage.getItem(\\\"formData\\\") != null){\\n\\n let values = JSON.parse(localStorage.getItem(\\\"formData\\\"));\\n \\n nameInput.value = values[values.length-1].inpName;\\n emailInput.value = values[values.length-1].inpEmail;\\n phoneInput.value = values[values.length-1].inpPhone;\\n messageInput.value = values[values.length-1].inpText;\\n }\\n \\n}\",\n \"function createStaffWithClefs(){\\n var linecount = document.getElementById(\\\"linecount\\\").value;\\n var linecolor = document.getElementById(\\\"linecolor\\\").value;\\n var mode = document.getElementById(\\\"mode\\\").value;\\n \\n currentStaff = new Staff(linecount, linecolor, mode);\\n \\n staffs.push(currentStaff);\\n \\n document.getElementById(\\\"input\\\").innerHTML = clefForm;\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"function storeForm() {\\n /*jshint validthis:true */\\n var form = $(this);\\n var formId = form[0].id;\\n if (!formId) return;\\n var formJSON = app.formToData(form);\\n if (!formJSON) return;\\n app.formStoreData(formId, formJSON);\\n form.trigger('store form:storedata', {data: formJSON});\\n }\",\n \"function employee_Set_FormData(data)\\r\\n\\t{\\r\\n\\t\\t$(\\\"#employee_title\\\").val(data.title);\\r\\n\\t\\t$(\\\"#employee_fullName\\\").val(data.fullName);\\r\\n\\t\\t$(\\\"#employee_surname\\\").val(data.surname);\\r\\n\\t\\t$(\\\"#employee_fatherName\\\").val(data.fatherName);\\r\\n\\t\\t$(\\\"#employee_gender\\\").val(data.gender);\\r\\n\\t\\t$(\\\"#employee_email\\\").val(data.email);\\r\\n\\t\\t$(\\\"#employee_maritalStatus\\\").val(data.maritalStatus);\\r\\n\\t\\t$(\\\"#employee_postalAddress\\\").val(data.postalAddress);\\r\\n\\t\\t$(\\\"#employee_nic\\\").val(data.nic);\\r\\n\\t\\t$(\\\"#employee_mobile\\\").val(data.mobile);\\r\\n\\t\\t$(\\\"#employee_phone\\\").val(data.phone);\\r\\n\\t\\t$(\\\"#employee_religion\\\").val(data.religion);\\r\\n\\t\\t$(\\\"#employee_department\\\").val(data.departmentId);\\r\\n\\t\\t$(\\\"#employee_employeeId\\\").val(data.employeeId);\\r\\n\\t\\t$(\\\"#employee_date\\\").val(data.dob);\\r\\n\\t\\tpageAniamateScroll();\\r\\n\\t}\",\n \"fillForm(data) {\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"function saveInformation () {\\n\\t\\t numOfCreditFun();\\n\\t\\t bestMthContFun();\\n\\t\\t var info = {};\\n\\t\\t \\tinfo.major = [\\\"Major Choice:\\\", $('#departments').val()];\\n\\t\\t info.cName = [\\\"Course Name:\\\", $('#courseName').val()];\\n\\t\\t info.cSection = [\\\"Course Section:\\\", $('#courseSection').val()];\\n\\t\\t info.topicAndSec = [\\\"Topic and Section:\\\", $('#topicAndSection').val()];\\n\\t\\t info.todaysDate = [\\\"Today's Date:\\\", $('#todaysDate').val];\\n\\t\\t info.dueDate = [\\\"Due Date:\\\", $('#dueDate').val()];\\n\\t\\t info.weeksOfClass = [\\\"Is the Class on Campus or Online:\\\", $('#weeksOfClass').val()];\\n\\t\\t info.slideValue = [\\\"Due Date:\\\", $('#weeksOfClass').val()];\\n\\t\\t info.courseNumCredits = [\\\"Number of Credits:\\\", numOfCreditFun];\\n\\t\\t info.teacherName = [\\\"Teacher Name:\\\", $('#teacherName').val()];\\n\\t\\t info.teacherEmail = [\\\"Teacher Email:\\\", $('#teacherEmail').val()];\\n\\t\\t info.teacherPhone = [\\\"Teacher Phone:\\\", $('#teacherPhone').val()];\\n\\t\\t info.bestMthCont = [\\\"Best Method To Get In Contact:\\\", bestMthContFun];\\n\\t\\t info.note = [\\\"Note Section:\\\", $('#noteSection').val()];\\n\\t\\t //localStorage.setItem(id, JSON.stringify(info));\\n\\t\\t couchDBSave(info);\\n\\t\\t}\",\n \"function load_data() {\\n var input = document.getElementById(\\\"commentName\\\");\\n var comm = document.getElementById(\\\"commentText\\\");\\n\\n input.value = localStorage.getItem('Name');\\n comm.value = localStorage.getItem('Comment');\\n}\",\n \"function storeData() {\\n\\t// This is a little bit of future proofing \\n\\tif (!submit.key) {\\n\\t\\t// if there is no key, this is a new item and needs a new key\\n\\t\\tvar id = \\\"ubuVers\\\" + Math.floor(Math.random()*10000001);\\n\\t} else {\\n\\t\\t// set the id to the existing key we are editing\\n\\t\\tid = submit.key;\\n\\t};\\n\\t\\n // I like to give all my form elements their own id's to give myself access\\n\\t// outside of the form as well as simple access inside of it\\n var ubuVersNumValue = ge('ubuVersNum').value,\\n ubuVersNameValue = ge('ubuVersName').value,\\n\\t\\tubuVersDict = {version: ubuVersNumValue, release: ubuVersNameValue};\\n\\t// log out those values as a double check\\n console.log(ubuVersNumValue);\\n console.log(ubuVersNameValue);\\t\\n\\t\\n\\t// set the item in localstorage\\n\\t// note the stringify function\\n\\tlocalStorage.setItem(id, JSON.stringify(ubuVersDict));\\n\\t\\n\\t// log out the whole local storage\\n\\tconsole.log(localStorage);\\n\\tge('submit').value = 'Add';\\n\\n\\n}\",\n \"function setDataFromLocalStorage() { \\t\\n \\tCORE.LOG.addInfo(\\\"PROFILE_PAGE:setDataFromLocalStorage\\\");\\n \\t$(\\\"#name\\\").val(gameData.data.player.profile.name);\\n \\t$(\\\"#surname\\\").val(gameData.data.player.profile.surname);\\n \\t$(\\\"#age\\\").val(gameData.data.player.profile.age);\\n \\t$(\\\"#sex\\\").val(gameData.data.player.profile.sex);\\n \\t$(\\\"#mobile\\\").val(gameData.data.player.profile.mobile); \\n \\t \\t \\t\\n }\",\n \"function prefill_form(){\\ndocument.getElementById(\\\"ref\\\").value = localStorage.job1Ref;\\ndocument.getElementById(\\\"jobtitle\\\").value = localStorage.joblTitles;\\n//alert(localStorage.job1Ref);\\n}\",\n \"save () {\\n\\n // Validate\\n if (this.checkValidity()) {\\n\\n // Collect input\\n this.info.item = this.collectInput();\\n\\n // Show modal\\n this.modal.show();\\n }\\n }\",\n \"function storeForm() {\\n\\t /*jshint validthis:true */\\n\\t var form = $(this);\\n\\t var formId = form[0].id;\\n\\t if (!formId) return;\\n\\t var formJSON = app.formToData(form);\\n\\t if (!formJSON) return;\\n\\t app.formStoreData(formId, formJSON);\\n\\t form.trigger('store form:storedata', {data: formJSON});\\n\\t }\",\n \"function storeFormData() {\\n const formData = {\\n name: formEl.name.value,\\n phone: formEl.phone.value,\\n email: formEl.email.value,\\n url: formEl.website.value,\\n password: formEl.password.value\\n }\\n\\n console.log(formData);\\n}\",\n \"function updateUserData(){\\n var new_name = document.getElementById('name_change').value;\\n if (new_name == \\\"\\\"){\\n new_name = name;\\n }\\n var new_jobs = document.getElementById('jobs_change').value;\\n if (new_jobs == \\\"\\\"){\\n new_jobs = jobs;\\n }\\n var new_contact = document.getElementById('contact_change').value;\\n if (new_contact == \\\"\\\"){\\n new_contact = contact;\\n }\\n var new_tjm = document.getElementById('tjm_change').value;\\n if (new_tjm == \\\"\\\"){\\n new_tjm = tjm;\\n }\\n writeUserData(userId, new_name, new_jobs, new_contact, new_tjm);\\n}\",\n \"fillForm(data){\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"function saveData(id)\\n\\t{\\n\\t\\tvar f = document.fuploadr;\\n\\t\\tvar data = ImageStore[id];\\n\\t\\t\\n\\t\\tdata.title\\t\\t = f.title.value;\\n\\t\\tdata.description = f.description.value;\\n\\t\\tdata.tags\\t\\t = f.tags.value;\\n\\t\\tdata.is_public\\t = getChecked(f.is_public, 0);\\n\\t\\tdata.is_friend\\t = getChecked(f.is_friend, 0);\\n\\t\\tdata.is_family\\t = getChecked(f.is_family, 0);\\n\\t\\tdata.safety_level = f.safety_level.value;\\n\\t\\tdata.hidden\\t\\t = getChecked(f.hidden, 1);\\n\\t\\t//data.content_type = f.content_type.value;\\n\\t}\",\n \"function savesaveInfoLocalStorage(evt){\\n saveInfoLocalStorage[evt.currentTarget.name] = evt.currentTarget.value;\\n setsaveInfoLocalStorage(saveInfoLocalStorage);\\n}\",\n \"function saveCustomerData(form){\\n // pick the data from the inputs\\n let first = $(\\\"input[name=first]\\\").val();\\n let email = $(\\\"input[name=email]\\\").val();\\n let products = $(\\\"select[name=products]\\\").val();\\n let quantity = $(\\\"input[name=quantity]\\\").val();\\n\\n // store the data in the object\\n let CustomerData = {\\n first: first,\\n\\t\\temail: email,\\n products:products,\\n quantity:quantity\\n\\t};\\n console.log(CustomerData);\\n //stroing all the input in the local variable\\n\\tlocalStorage[\\\"CustomerData\\\"]=JSON.stringify(CustomerData);\\n form.submit();\\n}\",\n \"fillForm ( data ) {\\n this.title.value = data.title;\\n this.body.value = data.body;\\n this.id.value = data.id;\\n\\n // change form state\\n this.changeFormState( \\\"edit\\\" )\\n\\n }\",\n \"function store_user1 ()\\n{\\nlocalStorage.job1Ref = document.getElementById(\\\"job1ref\\\").value;\\n//alert(localStorage.job1Ref);\\nlocalStorage.joblTitles = document.getElementById(\\\"job1title\\\").value;\\n//alert(localStorage.job1Titles);\\n}\",\n \"function saveData(key) {\\n\\t\\t// Set Random Key for Stored Data //\\n\\t\\tif(!key) {\\n\\t\\t\\tvar id = Math.floor(Math.random()*10001);\\n\\t\\t}else{\\n\\t\\t\\tid = key;\\n\\t\\t}\\n\\t\\t// Call Functions //\\n\\t\\tgetCheckboxValue();\\n\\t\\tgetSelectedRadio();\\n\\t\\tvar item \\t\\t\\t\\t= {};\\n\\t\\t\\titem.training \\t\\t= [\\\"Training Style: \\\", $('#training').value];\\n\\t\\t\\titem.wname\\t\\t\\t= [\\\"Workout Name: \\\", $('#wname').value];\\n\\t\\t\\titem.favorite\\t\\t= [\\\"Favorite: \\\", favoriteValue];\\n\\t\\t\\titem.howlong\\t\\t= [\\\"How Long: \\\", $('#howlong').value + \\\" minutes\\\"];\\n\\t\\t\\titem.timeofday\\t\\t= [\\\"Preferred Time: \\\", timeValue];\\n\\t\\t\\titem.completiondate\\t= [\\\"Completion Date: \\\", $('#completiondate').value];\\n\\t\\t\\titem.comments\\t\\t= [\\\"Self-Motivation: \\\", $('#comments').value];\\n\\t\\t\\t\\n\\t\\t// Save Data into Local Storage with JSON.stringify //\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\n\\t\\talert(\\\"Workout Saved!\\\");//\\n\\t\\t// Set dialog using Dialog //\\n\\t\\t//$('#dialog').attr(\\\"title\\\", \\\"Saved!\\\").text(\\\"Your workout has been saved.\\\").dialog('open');\\n\\t}\",\n \"function readUserInput() {\\n\\tvar settings = {};\\n\\t//Plasmid Section\\n\\tsettings.plasmidname = readtxtField(\\\"txtPlasmidName\\\");\\n\\tsettings.plasmidnameon = readField(\\\"bolShowPlasmidName\\\");\\n\\tsettings.plasmidsize = readField(\\\"txtPlasmidSize\\\");\\n\\tsettings.plasmidsizeon = readField(\\\"bolShowPlasmidSize\\\");\\n\\tsettings.plasmidradius = readField(\\\"txtRadius\\\");\\n\\tsettings.bbwidth = readField(\\\"txtBackBoneWidth\\\");\\n\\tsettings.bbcolor = readField(\\\"optBackBoneColor\\\");\\n\\tsettings.bbon = readField(\\\"bolShowBackBone\\\");\\n\\t//Feature Section (General)\\n\\tsettings.fwidth = readField(\\\"txtFeatureWidth\\\");\\n\\tsettings.fstrokewidth = readField(\\\"txtFeatureStrokeWidth\\\");\\n\\tsettings.fstrokered = readField(\\\"txtStrokeRed\\\");\\n\\tsettings.fstrokegreen = readField(\\\"txtStrokeGreen\\\");\\n\\tsettings.fstrokeblue = readField(\\\"txtStrokeBlue\\\");\\n\\tsettings.farrowlength = readField(\\\"txtArrowHeadLength\\\");\\n\\tsettings.farrowwidth = readField(\\\"txtArrowHeadWidth\\\");\\n\\t//Text section\\n\\tsettings.txton = readField(\\\"bolShowText\\\");\\n\\tsettings.txtfamily = readField(\\\"optFontFamily\\\");\\n\\tsettings.txtsize = readField(\\\"txtFontSize\\\");\\n\\tsettings.txtcolor = readField(\\\"optFontColor\\\");\\n\\tsettings.txtbold = readField(\\\"bolTextBold\\\");\\n\\tsettings.txtloc = readField(\\\"optTextLocation\\\");\\n\\t//Canvas section\\n\\tsettings.cw = readField(\\\"txtCanvasWidth\\\");\\n\\tsettings.ch = readField(\\\"txtCanvasHeight\\\");\\n\\tsettings.error = 0;\\n\\tsettings.errmsg = \\\"\\\";\\n\\t//Calculated properties\\n\\tsettings.ox = settings.cw / 2;\\n\\tsettings.oy = settings.ch / 2;\\n\\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\\n\\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\\n\\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\\n\\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\\n\\treturn settings;\\n}\",\n \"updateFormFromStorage() {\\n // check for data if none return\\n let data = localStorage.getItem('formData');\\n if (!data) {\\n this.setTransactions([]);\\n // Looks like new user without data show tips modal.\\n setTimeout(() => $('#tipsModal').modal(), 10000);\\n return;\\n }\\n this.setForm(JSON.parse(data));\\n // set the interface (transactions) options on the form\\n this.setFormTransactions(JSON.parse(localStorage.getItem('transactions')));\\n }\",\n \"function storeLocally(){\\n var formName = document.getElementById('txtName').value;\\n var formAge = document.getElementById('txtAge').value;\\n sessionStorage.setItem(formName, formAge);\\n\\n var formOutput = formName + \\\": \\\" + formAge + \\\" y.o.\\\";\\n\\n appendObject (formOutput, \\\"P\\\", \\\"output\\\");\\n}\",\n \"function saveLocalStore(){\\n for(i = 0; i < generalInfo.length; i++){\\n var displayNow = ($(\\\"#inputEvent\\\"+generalInfo[i].display).val());\\n var notesNow = generalInfo[i].notes;\\n generalInfo[i].notes = displayNow;\\n console.log(\\\"grabo vacio\\\");\\n\\n }\\n localStorage.setItem(\\\"generalInfo\\\", JSON.stringify(generalInfo));\\n }\",\n \"function loadManageBusinessFields() {\\n // Pull business details from local storage\\n var businessName = localStorage.getItem('businessName');\\n console.log(localStorage.getItem('businessName'));\\n if (businessName != null && businessName != 'undefined') {\\n document.getElementById('businessName').value = businessName;\\n }\\n\\n var businessPhone = localStorage.getItem('businessPhone');\\n if (businessPhone != null && businessPhone != 'undefined') {\\n document.getElementById('businessPhone').value = localStorage.getItem('businessPhone');\\n }\\n\\n var businessAddress = localStorage.getItem('businessAddress');\\n if (businessAddress != null && businessAddress != 'undefined') {\\n document.getElementById('set-address').value = localStorage.getItem('businessAddress');\\n }\\n}\",\n \"function getActivitesData() {\\n let oldActivites = JSON.parse(localStorage.getItem(\\\"Activites\\\")) || [];\\n let ActivitesId = localStorage.length;\\n let ActivitesTitle = document.getElementById(\\\"Activitestitle\\\").value.trim();\\n let dataForm = document.getElementById(\\\"Activitesmyform\\\");\\n let ActivitesDate = document.getElementById(\\\"date\\\").value;\\n let ActivitesDataForm = (dataForm.elements[\\\"ActivitesmyTextArea\\\"].value =\\n window.frames[\\\"ActivitesrichTextField\\\"].document.body.textContent);\\n if (ActivitesTitle == \\\"\\\" && ActivitesDate == \\\"\\\" && ActivitesDataForm == \\\"\\\") {\\n let outputActivites = document.getElementById(\\\"outputActivites\\\");\\n outputActivites.className = \\\"bg-danger mt-3 text-white text-center p-2\\\";\\n outputActivites.innerHTML = \\\"

    Fill all input Please

    \\\";\\n } else {\\n let ActivFormData = new ActivitesformData(\\n ActivitesId,\\n ActivitesTitle,\\n ActivitesDate,\\n ActivitesDataForm,\\n ActivitesUploaded_image\\n );\\n oldActivites.push(ActivFormData);\\n localStorage.setItem(\\\"Activites\\\", JSON.stringify(oldActivites));\\n \\n }\\n}\",\n \"function setupDataForForm(){\\n if(typeof(hotty) != \\\"undefined\\\"){\\n $('#import_data').val(JSON.stringify(hotty.getData()));\\n console.log(\\\"updating the data...\\\");\\n }\\n else{\\n console.log(\\\"hotty isnt there, maybe just booting up!\\\");\\n }\\n }\",\n \"_readFromForm() {\\n this.dao.citation_id = document.getElementById('citation_id').value;\\n this.dao.ott_id = document.getElementById('ott_id').value;\\n this.dao.background_noise_in_decibel = document.getElementById('background_noise_in_decibel').value;\\n this.dao.calibration = document.getElementById('calibration').value;\\n this.dao.distance_to_sound_source_in_meter = document.getElementById('distance_to_sound_source_in_meter').value;\\n this.dao.facility_id = document.getElementById('facility_id').value;\\n this.dao.latitude_in_decimal_degree = document.getElementById('latitude_in_decimal_degree').value;\\n this.dao.longitude_in_decimal_degree = document.getElementById('longitude_in_decimal_degree').value;\\n this.dao.measurement_method_id = document.getElementById('measurement_method_id').value;\\n this.dao.measurement_type = document.getElementById('measurement_type').value;\\n this.dao.medium = document.getElementById('medium').value;\\n this.dao.number_of_measurements = document.getElementById('number_of_measurements').value;\\n this.dao.position_first_electrode = document.getElementById('position_first_electrode').value;\\n this.dao.position_second_electrode = document.getElementById('position_second_electrode').value;\\n this.dao.position_third_electrode = document.getElementById('position_third_electrode').value;\\n this.dao.position_of_animal = document.getElementById('position_of_animal').value;\\n this.dao.sedated = document.getElementById('sedated').value;\\n this.dao.sedation_details = document.getElementById('sedation_details').value;\\n this.dao.test_environment_description = document.getElementById('test_environment_description').value;\\n this.dao.testtone_form_method_id = document.getElementById('testtone_form_method_id').value;\\n this.dao.testtone_presentation_method_constants = document.getElementById('testtone_presentation_method_constants').value;\\n this.dao.testtone_presentation_sound_form = document.getElementById('testtone_presentation_sound_form').value;\\n this.dao.testtone_presentation_staircase = document.getElementById('testtone_presentation_staircase').value;\\n this.dao.threshold_determination_method = document.getElementById('threshold_determination_method').value;\\n this.dao.year_of_experiment_start = document.getElementById('year_of_experiment_start').value;\\n this.dao.year_of_experiment_end = document.getElementById('year_of_experiment_end').value;\\n }\",\n \"function updateOutput7() {\\n localStorage.setItem('info7', input_textarea7.value)\\n}\",\n \"function storeForm() {\\n\\t\\t\\n\\t\\t$( \\\".sessioninput\\\" ).each(function( index ) {\\n\\t\\t\\t\\n\\t\\t\\twindow.localStorage.setItem($(this).attr(\\\"name\\\"), $(this).val());\\n\\t\\t\\t\\n\\t\\t});\\n\\t\\t\\n\\t\\t\\n\\t\\tstartSession()\\n\\t}\",\n \"function save() {\\n $editors.find('.text').each(function () {\\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\\n });\\n }\",\n \"saveData() {\\n if (this.s.unavailable()) {\\n return;\\n }\\n\\n for (const val of this.dispField.items) {\\n this.s.set(val, this.dispField.checked(val));\\n }\\n\\n this.s.set(\\\"unit\\\", this.unitField.get());\\n this.s.set(\\\"format\\\", this.formatField.get());\\n this.s.set(\\\"sort\\\", this.sortableField.toArray());\\n }\",\n \"function saveForm() {\\n return saveCompanySite()\\n .then(saveInternalNumbers);\\n }\",\n \"autofill() {\\n\\t\\tif (localStorage.getItem(\\\"lastname\\\")) {\\n\\t\\t\\t$(\\\"#lastName\\\").val(localStorage.getItem(\\\"lastname\\\"));\\n\\t\\t\\t$(\\\"#firstName\\\").val(localStorage.getItem(\\\"firstName\\\"));\\n\\t\\t}\\n\\t}\",\n \"function load() {\\n let savedNotes = localStorage.getItem(\\\"dataNotes\\\");\\n let savedTitle = localStorage.getItem(\\\"dataTitle\\\");\\n if (savedNotes) {\\n notes.value = savedNotes;\\n }\\n if (savedTitle) {\\n notesTitle.value = savedTitle;\\n headerTitleChange()\\n }\\n}\",\n \"function showUserForm() {\\n let user = null;\\n\\n // Try getting user object back from storage.\\n try {\\n user = JSON.parse(localStorage.getItem(\\\"user\\\"));\\n } catch (e) {\\n alert(\\\"Error loading from user information from storage.\\\");\\n console.log(e);\\n }\\n\\n // If the user object exists and isn't a null reference\\n // update the form information with the user info.\\n if (user != null) {\\n $(\\\"#txtFirstName\\\").val(user.FirstName);\\n $(\\\"#txtLastName\\\").val(user.LastName);\\n $(\\\"#dateBirthday\\\").val(user.Birthdate);\\n $(\\\"#txtNewPIN\\\").val(user.PIN);\\n $(\\\"#sldMaxHoursPerDay\\\").val(user.HoursGoal);\\n $(\\\"#sldMaxHoursPerDay\\\").slider(\\\"refresh\\\");\\n }\\n}\",\n \"function storeForm() {\\n /*jshint validthis:true */\\n var form = $(this);\\n var formId = form[0].id;\\n if (!formId) return;\\n var formJSON = app.formToJSON(form);\\n if (!formJSON) return;\\n app.formStoreData(formId, formJSON);\\n form.trigger('store', {\\n data: formJSON\\n });\\n }\",\n \"function displayNotes (){\\n if (localStorage.getItem(\\\"generalInfo\\\")){\\n generalInfo = JSON.parse(localStorage.getItem(\\\"generalInfo\\\"));\\n for(i = 0; i < generalInfo.length; i++){\\n $(\\\"#inputEvent\\\"+generalInfo[i].display).attr(\\\"value\\\", generalInfo[i].notes);\\n console.log($(\\\"#inputEvent\\\"+generalInfo[i].display));\\n }\\n }\\n }\",\n \"function storeForm() {\\n /*jshint validthis:true */\\n var form = $(this);\\n var formId = form[0].id;\\n if (!formId) return;\\n var formJSON = app.formToJSON(form);\\n if (!formJSON) return;\\n app.formStoreData(formId, formJSON);\\n form.trigger('store', {data: formJSON});\\n }\",\n \"function storeData(key){\\n\\t\\t\\t// if there is no key, this means this is brand new item and we need a new key.\\n\\t\\t\\tif(!key){\\n\\t\\t\\tvar id \\t\\t\\t= Math.floor(Math.random()*100000001); // math that randomly picks a number to attach to the string\\n\\t\\t\\t}else{\\n\\t\\t\\t\\t// set the id to the existing key we're editing so that it will save over the data\\n\\t\\t\\t\\t//the key is the same key that's been passed along from the editSubmit event handler\\n\\t\\t\\t\\t// id to the validate function, and then passed here, into the storeData function.\\n\\t\\t\\tid = key;\\n\\t\\t\\t}\\n\\t\\tvar item \\t\\t\\t= {};\\n\\t\\t\\titem.fname\\t\\t= [\\\"First Name:\\\", \\t\\t\\t\\t$('#fname').val()];\\n\\t\\t\\titem.lname\\t\\t= [\\\"Last Name:\\\", \\t\\t\\t\\t$('#lname').val()];\\n\\t\\t\\titem.email\\t\\t= [\\\"Email:\\\", \\t\\t\\t\\t\\t$('#email').val()];\\n\\t\\t\\titem.date\\t\\t= [\\\"Date:\\\", \\t\\t\\t\\t\\t$('#date').val()];\\n\\t\\t\\titem.make\\t\\t= [\\\"Make:\\\", \\t\\t\\t\\t\\t$('#make').val()];\\n\\t\\t\\titem.car\\t\\t= [\\\"Car:\\\", \\t\\t\\t\\t\\t\\t$('#car').val()];\\n\\t\\t\\titem.caramount\\t= [\\\"Number of cars you own:\\\", \\t$('#caramount').val()];\\n\\t\\t\\titem.comments\\t= [\\\"Any Comments:\\\", \\t\\t\\t$('#comments').val()];\\n\\n\\t\\t\\t// save data stringify\\n\\t\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\n\\t\\t\\talert(\\\"Contact Saved!\\\");\\n\\t}\",\n \"function save(e) {\\n var node = e.target;\\n if (node.nodeName === 'INPUT' && node.checked) {\\n localStorage[node.name] = node.value;\\n }\\n else if (node.nodeName === 'SELECT') {\\n localStorage[node.name] = node.value;\\n }\\n }\",\n \"function initialForm() {\\n\\n\\n var date = document.getElementById(\\\"date\\\").value\\n var name = document.getElementById(\\\"name\\\").value\\n var address = document.getElementById(\\\"address\\\").value\\n var datebirth = document.getElementById(\\\"datebirth\\\").value\\n var sex = document.getElementById(\\\"sex\\\").value\\n var civil = document.getElementById(\\\"civil\\\").value\\n var cp = document.getElementById(\\\"cp\\\").value\\n var tel = document.getElementById(\\\"tel\\\").value\\n var cel = document.getElementById(\\\"cel\\\").value\\n var mail = document.getElementById(\\\"mail\\\").value\\n // \\n document.getElementById(\\\"message\\\").innerHTML = \\\"Sus datos fueron guardados correctamente. Si necesita actualizar su información, por favor llene el formulario nuevamente o contacte al administrador.\\\"\\n\\n cleanFormInitial()\\n addFormToStorage(date, name, address, datebirth, sex, civil, cp, tel, cel, mail)\\n\\n\\n}\",\n \"function toStaffs(){\\n document.getElementById(\\\"input\\\").innerHTML = staffForm();\\n}\",\n \"function storeData(key){\\n\\t\\t//if there is no key, this is a brand new item & we need a new key\\n\\t\\tif(!(key)){\\n\\t\\t\\tvar id\\t\\t\\t\\t= Math.floor(Math.random()*1000000001);\\n\\t\\t}else{\\n\\t\\t\\t//set the id to the existing key that we're editing in order to rewrite local storage\\n\\t\\t\\tid = key;\\n\\t\\t}\\n\\t\\t\\n\\t\\t//Gather up all our form field values and store them in an object\\n\\t\\t//Object properties contain array with form label and input values\\n\\n\\t\\tgetSelectedRadio();\\n\\t\\tvar item\\t\\t\\t= {};\\n\\t\\t\\titem.date\\t\\t= [\\\"Date: \\\", $('date').value];\\n\\t\\t\\titem.type\\t\\t= [\\\"Meal Type: \\\", $('type').value];\\n\\t\\t\\titem.group\\t\\t= [\\\"Food Group: \\\", groupValue];\\n\\t\\t\\titem.name\\t\\t= [\\\"Food Name: \\\", $('name').value];\\n\\t\\t\\titem.calories\\t= [\\\"Calories: \\\", $('calories').value];\\n\\t\\t\\titem.notes\\t\\t= [\\\"Additional Notes: \\\", $('notes').value];\\n\\t\\t//Save data to local storage\\n\\t\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\n\\t\\t\\talert(\\\"Meal Saved!\\\");\\n\\t\\t\\t\\n\\t}\",\n \"function fread(){\\n\\tif(x.value == \\\"\\\"){\\n\\t\\talert(\\\"Create a note first!!!\\\");\\n\\t}\\n\\telse if(document.Notes.note.value == \\\"\\\"){\\n\\t\\talert(\\\"Type something!!!\\\");\\n\\t}\\n\\telse if(x.selectedIndex > s.length-1){\\n\\ts.push(document.Notes.note.value);\\n\\talert(\\\"Successfully saved\\\");\\n\\t}\\n\\telse {\\n\\t\\ts[x.selectedIndex] = document.Notes.note.value;\\n\\t\\talert(\\\"Successfully saved\\\");\\n\\t}\\n}\",\n \"function saveResponses () { \\t\\n localStorage.setItem(\\\"name\\\", nameField.value); \\t\\n localStorage.setItem(\\\"email\\\", emailField.value); \\t\\n localStorage.setItem(\\\"feedback\\\", feedbackField.value); \\n}\",\n \"function storeData (key) {\\n\\t\\tif (!key) {\\n\\t\\t\\tvar id = Math.floor(Math.random()*1000000);\\n\\t\\t} else {\\n\\t\\t\\tvar id = key;\\n\\t\\t}\\t\\t\\n\\t\\tgetSelectedRadio();\\n\\t\\t\\n\\t\\t//Form data into an object..\\n\\t\\t//Object properties has array with label and value.\\n\\t\\t\\n\\t\\tvar item \\t\\t\\t\\t= {};\\n\\t\\titem.group \\t\\t\\t\\t= [\\\"Group:\\\", $('groups').value];\\n\\t\\titem.remindTitle \\t\\t= [\\\"Reminder Title:\\\", $('remindTitle').value];\\n\\t\\titem.dueDate\\t\\t\\t= [\\\"Due Date:\\\", $('due').value];\\n\\t\\titem.priority\\t\\t\\t= [\\\"Priority:\\\", priorityValue];\\n\\t\\titem.recurrence\\t\\t\\t= [\\\"Recurrence:\\\",$('recurrence').value];\\n\\t\\titem.description\\t\\t= [\\\"Description:\\\", $('description').value];\\n\\t\\t\\n\\t\\t\\n\\t\\t//Save to Local Storage\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\n\\t\\talert(\\\"Reminder is set!\\\");\\n\\t\\t\\n\\t\\twindow.location = 'index.html';\\n\\t\\twindow.reload();\\n\\t}\",\n \"function editStudyInfoSave(e) {\\r\\n\\r\\n\\t// console.log($('#editStudyInfoModal .form-control').serializeObject());\\r\\n\\r\\n\\tvar newInfo = $('#editStudyInfoModal .form-control').serializeObject();\\r\\n\\t// console.log(newInfo)\\r\\n\\tvar study = $('#edit-study-page').data('editing');\\r\\n\\r\\n\\t_.forEach(newInfo, function(item, key) {\\r\\n\\t\\tstudy[key] = item;\\r\\n\\t});\\r\\n\\r\\n\\t$('#edit-study-page').data('editing', study);\\r\\n\\r\\n\\t$('#editStudyInfoModal').modal('hide');\\r\\n\\r\\n}\",\n \"function saveMentorForm(e) {\\n e.preventDefault();\\n var category = document.getElementById(\\\"category\\\").value;\\n var paragraph = document.getElementById(\\\"paragraph\\\").value;\\n saveMentor(category, currentMentor.fullName, currentMentor.job, currentMentor.company, paragraph, currentMentor.img, currentMentor.mail, currentMentor.linkedinLink, currentMentor.linkedinID);\\n}\",\n \"fillForm(data){\\n this.titleInput.value = data.title\\n this.bodyInput.value = data.body\\n this.idInput.value = data.id\\n\\n this.changeFormState('edit')\\n }\",\n \"function saveBookmark(e){\\n\\t\\n\\t// get form values\\n\\tvar siteName = document.getElementById('siteName').value;\\n\\tvar siteUrl = document.getElementById('siteUrl').value;\\n\\n\\t// calls function to validate form\\n\\t// if the function returns false\\n\\t// this if statement returns false\\n\\t// and doesn't submit form\\n\\tif(!validateForm(siteName, siteUrl)){\\n\\t\\treturn false;\\n\\t};\\n\\n\\t// bookmark object is created\\n\\t// with keys named name and site, \\n\\t// with property siteName and siteUrl\\n\\t// with values the user typed in\\n\\tvar bookmark ={\\n\\t\\tname : siteName,\\n\\t\\tsite : siteUrl\\n\\t}\\n\\n\\t//check if bookmarks is null (the user didn't type anything)\\n\\t// in other words looks to check if the used had saved bookmarks already\\n\\t// if not then it'll create an array called bookmarks\\n\\tif (localStorage.getItem('bookmarks') ===\\\"null\\\"){\\n\\t\\t\\n\\t\\t//init array\\n\\t\\tvar bookmarks = [];\\n\\n\\t\\t//add to the array\\n\\t\\tbookmarks.push(bookmark);\\n\\t\\t//set to local storage\\n\\t\\t// HTML5 localStorage object is used here with the\\n\\t\\t// method setItem and sets it in a key called bookmarks, and \\n\\t\\t// you pass the array you created above called bookmarks\\n\\t\\t// but since localStorage only takes strings, JSONs stringify\\n\\t\\t// method is used here to convert the array into a string\\n\\t\\tlocalStorage.setItem('bookmarks', JSON.stringify(bookmarks));\\n\\t}else{\\n\\t\\t//get bookmarks and parse so it can turn back into an object so it can \\n\\t\\t// be used to used it as an array\\n\\t\\tvar bookmarks = JSON.parse(localStorage.getItem('bookmarks'));\\n\\t\\t//add to array\\n\\t\\tbookmarks.push(bookmark);\\n\\t\\t//and set it in local storage\\n\\t\\tlocalStorage.setItem('bookmarks', JSON.stringify(bookmarks));\\n\\t}\\n\\t//clear form\\n\\tdocument.getElementById('myForm').reset();\\n\\t//re fetch bookmarks\\n\\tfetchBookmark();\\n\\t// prevent form from submitting\\n\\te.preventDefault();\\n}\",\n \"function storeSettings() {\\n check();\\n browser.storage.local.set(f2j(form));\\n}\",\n \"function professionPeoples() {\\r\\n var profession = document.getElementById(\\\"profession\\\");\\r\\n profession[localStorage.getItem(\\\"save\\\")];\\r\\n console.log(profession.value);\\r\\n localStorage.setItem(\\\"profession\\\", profession.value);\\r\\n \\r\\n }\",\n \"function Save_Data()\\n{\\n //handles setting profile's variable to entered name\\n let tempName = name.value;\\n if(tempName != \\\"\\\")\\n {\\n profile.name = tempName;\\n }\\n\\n //sets profile's age to entered age\\n let tempAge = Number(age.value);\\n if ((tempAge != 0) && (tempAge != NaN))\\n {\\n profile.age = tempAge;\\n }\\n\\n //sets profile's pet name to entered name\\n let tempPetName = petName.value;\\n if (tempName != \\\"\\\")\\n {\\n profile.petName = tempPetName;\\n }\\n\\n //sets profile's favorite color to entered color\\n let tempFavCol = favoriteColor.value;\\n if (tempName != \\\"\\\")\\n {\\n profile.favoriteColor = tempFavCol;\\n }\\n\\n //sets profile's favorite food to entered food\\n let tempFavFood = favoriteFood.value;\\n if (tempName != \\\"\\\")\\n {\\n profile.favoriteFood = tempFavFood;\\n }\\n\\n //turns the profile object into json tet format and is displayed onto the page\\n let json = JSON.stringify(profile);\\n storage.textContent = json;\\n}\",\n \"function saveUserForm() {\\n if (checkUserForm()) {\\n // Set up the user object.\\n const user = {\\n FirstName: $(\\\"#txtFirstName\\\").val(),\\n LastName: $(\\\"#txtLastName\\\").val(),\\n Birthdate: $(\\\"#dateBirthday\\\").val(),\\n PIN: $(\\\"#txtNewPIN\\\").val(),\\n HoursGoal: $(\\\"#sldMaxHoursPerDay\\\").val(),\\n };\\n\\n // Try to save the user object and alert if issues arise.\\n try {\\n localStorage.setItem(\\\"user\\\", JSON.stringify(user));\\n alert(\\\"Saving Information\\\");\\n\\n $.mobile.changePage(\\\"#page-menu\\\");\\n window.location.reload();\\n } catch (e) {\\n alert(\\\"Error saving user information to storage.\\\");\\n console.log(e);\\n }\\n }\\n}\",\n \"_saveData(){\\n this.forwardButton.classList.remove('inactive');\\n this.backButton.classList.remove('inactive');\\n this.homeContainer.classList.remove('inactive');\\n this.homeContainer.innerHTML = \\\"HOME\\\";\\n const entry = this.diaryEntry.value;\\n this.diaryService.post(this.journalID,this.date, this.promptIndex,entry);\\n }\",\n \"function saveAnomalyForm() {\\n var anomalyType = anomalyForms[anomalyIndex][\\\"anomaly\\\"];\\n var formEntries = document.getElementById(\\\"custom-inputs\\\").getElementsByClassName(\\\"custom-input\\\");\\n for (var i = 0; i < formEntries.length; i++) {\\n var input = formEntries.item(i);\\n var fieldName = input.id;\\n anomalyForms[anomalyIndex][\\\"json\\\"][\\\"fields\\\"][fieldName][\\\"value\\\"] = input.value;\\n }\\n}\",\n \"function saveObject(form) {\\n /// know the object\\n var which = form.dataset.which;\\n // save values as vars\\n let objectName = document.getElementById('' + which + 'Name');\\n /// preparing form final validation\\n //// checking what object to save in DB\\n switch (which) {\\n case 'student':\\n /// gets all checkBox of courses selected to add them to Deals Table.\\n var selectedCoursesArray = [];\\n var myCheckBoxContChildren = $('#' + which + 'Courses').children();\\n for (var i = 0; i < myCheckBoxContChildren.length; i++) {\\n if (myCheckBoxContChildren[i].checked) {\\n selectedCoursesArray.push(myCheckBoxContChildren[i].dataset.courseid)\\n }\\n }\\n // phone and email validations happened onblur events\\n var objectPhone = document.getElementById('' + which + 'Phone');\\n var objectEmail = document.getElementById('' + which + 'Email');\\n var formOk = (objectName.value.length > 0 && letSaveEmail && letSavePhone);\\n break;\\n case 'course':\\n var objectDescription = document.getElementById('' + which + 'Description');\\n ///Course name existence checked ontop on blur event.\\n var formOk = (courseName.value.length > 0 && letSaveCName && objectDescription.value.length > 0);\\n break;\\n case 'administator':\\n // phone and email validations happened onblur events\\n var objectPhone = document.getElementById('' + which + 'Phone');\\n var objectEmail = document.getElementById('' + which + 'Email');\\n if (changePassword) {\\n /// determine first if user clicked on change password button\\n var objectPassword = document.getElementById('' + which + 'Password').value;\\n ///add case\\n if (objectPassword.length >= 4) {\\n //letSavePass stays true\\n $('#passErrMsg').hide();\\n $('#passErrMsg').empty();\\n /// edit case\\n if (letSavePass === null) {\\n ///null happens only in edit case: if no request to change its still a null.\\n letSavePass = false;\\n }\\n ;\\n } else {\\n ///err.. password is too short\\n $('#passErrMsg').html(\\\"password is too short-minimum length: 4 digits.\\\");\\n $('#passErrMsg').show();\\n }\\n ;\\n }\\n ;\\n var objectPassword = document.getElementById('' + which + 'Password');\\n var objectRole = document.getElementById('beautifulSelect');\\n if (letSavePass === null) {\\n //edit case\\n if (changePassword) {\\n //need to add password.\\n var formOk = (objectName.value.length > 0 && $('#' + which + 'Password').val().length >= 4 && letSaveEmail && letSavePhone && letAddRole);\\n\\n } else {\\n //no need to add password.\\n var formOk = (objectName.value.length > 0 && letSaveEmail && letSavePhone && letAddRole);\\n }\\n } else if (letSavePass === false || letSavePass === true) {\\n // need to add password.\\n var formOk = (objectName.value.length > 0 && $('#' + which + 'Password').val().length >= 4 && letSaveEmail && letSavePhone && letAddRole);\\n }\\n ;\\n break;\\n }\\n ;\\n let addingSucsMsg = document.getElementById('addingSucsMsg');\\n let addingErrMsg = document.getElementById('addingErrMsg');\\n addingSucsMsg.style.display = \\\"none\\\";\\n //// make sure didn't upload any wrong type of image\\n if ((letSaveImage) || letSaveImage === null) {\\n ////\\n ///// make sure name is set and email is in the right format.\\n if (formOk) {\\n addingErrMsg.innerHTML = \\\"\\\";\\n addingErrMsg.style.display = \\\"none\\\";\\n ////\\n /// last modifying before calling controller.\\n var formData = new FormData();\\n formData.append('name', objectName.value);\\n /// modifying depends on which object\\n switch (which) {\\n case 'student':\\n formData.append('email', objectEmail.value);\\n formData.append('phone', objectPhone.value.split('-').join(''));\\n formData.append('selectedCourses', JSON.stringify(selectedCoursesArray));\\n formData.append('addStudent', null);\\n break;\\n case 'course':\\n formData.append('description', objectDescription.value);\\n formData.append('addCourse', null);\\n break;\\n case 'administator':\\n formData.append('email', objectEmail.value);\\n formData.append('phone', objectPhone.value.split('-').join(''));\\n if (!(letSavePass === null)) {\\n ///user want to update password\\n formData.append('password', objectPassword.value);\\n } else {\\n //no change needed\\n formData.append('password', \\\"no\\\");\\n }\\n ;\\n formData.append('role', objectRole.value);\\n formData.append('addAdministator', null);\\n break;\\n }\\n ;\\n //// if chose to not use image - give him default image\\n if (letSaveImage === null) {\\n formData.append('image', 'useDefault');\\n } else {\\n //// user uploaded an image\\n let fileSelect = document.getElementById('' + which + 'Image');\\n let file = fileSelect.files[0];\\n //// name is going to be student_id for future uses..\\n let filename = '.jpg';\\n formData.append('image', file, filename);\\n }\\n ;\\n // use hidden\\n var hidden = $('#hiddenInput')[0];\\n var what = hidden.dataset.what;\\n //check what we are doing right now.\\n switch (what) {\\n case 'add':\\n //// calling XHR post Function. for adding new object\\n XHRcall(formData, which);\\n break;\\n case 'edit':\\n // gather data about the user and send it along with form\\n let who = hidden.dataset.who;\\n formData.append('objectID', who);\\n formData.append('edit', null);\\n setTimeout(() => {\\n saveNUpdate(formData, which);\\n }, 50);\\n if (($('#existingImageOpinion')[0].checked)) {\\n removeExistingImage(who, which);\\n }\\n ;\\n break;\\n }\\n ;\\n\\n } else {\\n ///// not everything is as requested.\\n addingErrMsg.innerHTML = \\\"Some of the required fields are empty or not as requested.\\\";\\n addingErrMsg.style.display = \\\"block\\\";\\n /// wait 4 seconds, let this error gone away.\\n setTimeout(function () {\\n addingErrMsg.style.display = \\\"none\\\";\\n }, 4000)\\n }\\n }\\n ;\\n}\",\n \"function store(){\\n var inputFirstName= document.getElementById(\\\"first_name\\\");\\n var inputLastName= document.getElementById(\\\"last_name\\\");\\n var inputAddress= document.getElementById(\\\"address\\\");\\n var inputCity= document.getElementById(\\\"city\\\");\\n var inputState= document.getElementById(\\\"state\\\");\\n var inputZipcode= document.getElementById(\\\"zipcode\\\");\\n localStorage.setItem(\\\"first_name\\\", inputFirstName.value);\\n localStorage.setItem(\\\"last_name\\\", inputLastName.value);\\n localStorage.setItem(\\\"address\\\", inputAddress.value);\\n localStorage.setItem(\\\"city\\\", inputCity.value);\\n localStorage.setItem(\\\"state\\\", inputState.value);\\n localStorage.setItem(\\\"zipcode\\\", inputZipcode.value);\\n \\n console.log(inputFirstName.value, inputLastName.value, inputAddress.value, inputCity.value, inputState.value, inputZipcode.value);\\n }\",\n \"function populateUserForm() {\\n var cu = currentUser;\\n enter.name.value = cu.name;\\n enter.email.value = cu.email;\\n enter.age.value = cu.age;\\n enter.currentWeight.value = cu.currentWeight;\\n enter.targetWeight.value = cu.targetWeight;\\n}\",\n \"function saveForm()\\n{ \\n // retrieve the data from the form\\n var first = document.getElementById( \\\"first\\\" ).value;\\n var last = document.getElementById( \\\"last\\\" ).value;\\n var street = document.getElementById( \\\"street\\\" ).value;\\n var city = document.getElementById( \\\"city\\\" ).innerHTML;\\n var state = document.getElementById( \\\"state\\\" ).innerHTML;\\n var zip = document.getElementById( \\\"zip\\\" ).value;\\n var phone = document.getElementById( \\\"phone\\\" ).value;\\n \\n // check if data is valid \\n if ( !zipValid || !phoneValid )\\n {\\n // display error message\\n document.getElementById( \\\"success\\\" ).innerHTML = \\n \\\"Invalid data entered. Check form for more information\\\";\\n } // end if\\n else if ( ( first == \\\"\\\" ) || ( last == \\\"\\\" ) )\\n {\\n // display error message\\n document.getElementById( \\\"success\\\").innerHTML = \\n \\\"First Name and Last Name must have a value.\\\";\\n } // end if\\n else\\n {\\n // hide the form and show the addressbook\\n document.getElementById( \\\"addEntry\\\" ).style.display = \\\"none\\\";\\n document.getElementById( \\\"addressBook\\\" ).style.display = \\\"block\\\";\\n\\n // call the web service to insert data into the database\\n callWebService( \\\"/addEntry/\\\" + first + \\\"/\\\" + last + \\\"/\\\" + street +\\n \\\"/\\\" + city + \\\"/\\\" + state + \\\"/\\\" + zip + \\\"/\\\" + phone, parseData );\\n } // end else\\n} // end function saveForm\",\n \"save() {\\n this._toggleSaveThrobber();\\n try {\\n this._readFromForm();\\n var resp = this.dao.save();\\n if (!resp) {\\n alert(\\\"Error while saving taxon.\\\")\\n } else {\\n var jsonObj = JSON.parse(resp);\\n if (jsonObj[0].response == false ) {\\n alert(jsonObj[1].response);\\n } else {\\n console.log(this.dao)\\n // make sure the latin name input field is showing the correct name, reload data from server\\n document.getElementById('latin_name').value = this.dao.unique_name;\\n alert('Saved');\\n }\\n }\\n } catch(e) {\\n alert(e);\\n console.log(e);\\n }\\n this._toggleSaveThrobber();\\n }\",\n \"function storeData(key){\\n\\t\\t//If there is no key, this means this is a brand new item and we need a new key.\\n\\t\\tif(!key) {\\n\\t\\t\\tvar dataId = Math.floor(Math.random()*100000001)\\n\\t\\t} else {\\n\\t\\t\\t//Set the id to the existing key we're editing so that it will save over the data.\\n\\t\\t\\t//The key is the same key that's been passed along from the editSubmit event handler\\n\\t\\t\\t//to the validate function, and then passed here, into th storeData function.\\n\\t\\t\\tdataId = key;\\n\\t\\t}\\n\\n\\t\\t//Gather up all our form field values and store in an object\\n\\t\\t//Object properties contain array with the form label and the input values\\n\\t\\tvar item = {};\\n\\t\\t\\titem.platforms = [\\\"Game Platform:\\\", $('platforms').value ];\\n\\t\\t\\titem.game = [\\\"Game Title:\\\", $(\\\"game\\\").value];\\n\\t\\t\\titem.date = [\\\"Date Purchased:\\\", $(\\\"date\\\").value];\\n\\t\\t\\titem.fav = [\\\"Favorite:\\\", getFavValue()];\\n\\t\\t\\titem.score = [\\\"Score:\\\", $(\\\"score\\\").value];\\n\\t\\t\\titem.comments = [\\\"Comments:\\\", $(\\\"comments\\\").value];\\n\\t\\t//Save data to local storage: Use stringify to convert our object to a string\\n\\t\\tlocalStorage.setItem(dataId, JSON.stringify(item));\\n\\t\\talert(\\\"Game Saved!\\\");\\n\\t}\",\n \"function saveObj(form, type) {\\n\\n // Grab universal entry options from form\\n let date = document.forms[form]['date'].value + \\\"\\\";\\n let time = document.forms[form]['time'].value + \\\"\\\";\\n let note = document.forms[form]['note'].value + \\\"\\\";\\n\\n // Grab form specific data options\\n // -------------------------------------------------------------JavaScript - Conditional Statments Ex. 2||\\n if (type == \\\"weather\\\") {\\n\\n let weather = document.forms[form]['weather'].value + \\\"\\\";\\n \\n // -------------------------------------------------------------JavaScript Objects - instantiation Ex. 3||\\n let weatherObj = new Weather(time, date, note, weather);\\n storeEntry(weatherObj);\\n\\n } else if (type == \\\"mood\\\") {\\n\\n let mood = document.forms[form]['mood'].value + \\\"\\\";\\n \\n let moodObj = new Mood(time, date, note, mood);\\n storeEntry(moodObj);\\n\\n } else if (type == \\\"exercise\\\") {\\n\\n let workout = document.forms[form]['workout'].value + \\\"\\\";\\n let duration = document.forms[form]['duration'].value + \\\"\\\";\\n \\n let exerciseObj = new Exercise(time, date, note, workout, duration);\\n storeEntry(exerciseObj);\\n\\n } else {\\n\\n alert(\\\"Submission Error: Please reload the page.\\\")\\n\\n }\\n\\n //Re-render List instantly\\n removeList();\\n buildList();\\n}\",\n \"function saveTerrainModificationForm() {\\n var terrainModificationType = terrainModificationForms[terrainModificationIndex][\\\"terrain-modification\\\"];\\n var formEntries = document.getElementById(\\\"custom-inputs\\\").getElementsByClassName(\\\"custom-input\\\");\\n for (var i = 0; i < formEntries.length; i++) {\\n var input = formEntries.item(i);\\n var fieldName = input.id;\\n terrainModificationForms[terrainModificationIndex][\\\"json\\\"][\\\"fields\\\"][fieldName][\\\"value\\\"] = input.value;\\n }\\n}\",\n \"function formData() {\\n\\n\\t// initialise the variables\\n\\tparticipantID = document.getElementById(\\\"participantID\\\").value\\n\\ttype = document.getElementById(\\\"type\\\").value\\n\\tdate = document.getElementById(\\\"date\\\").value\\n\\ttime = document.getElementById(\\\"time\\\").value\\n\\triskFactor = document.getElementById(\\\"riskFactor\\\").value\\n\\tDescription = document.getElementById(\\\"description\\\").value\\n\\n\\t// Test if the variables are filled\\n\\tif (\\n\\t\\tparticipantID === \\\"\\\" ||\\n\\t\\ttype === \\\"\\\"||\\n\\t\\tdate === \\\"\\\" ||\\n\\t\\ttime === \\\"\\\" ||\\n\\t\\triskFactor === \\\"\\\" ||\\n\\t\\tDescription === \\\"\\\"\\n\\t\\t) {\\n\\talert(\\\"Please complete all of the fields\\\") // tell the user to complete all fields\\n\\t}\\n\\t// if the data is filled in then display\\n\\telse {\\n\\talert(\\n\\t\\t\\\" participant ID = \\\" + participantID +\\n\\t\\t\\\" Type = \\\" + type +\\n\\t\\t\\\" Date = \\\" + date +\\n\\t\\t\\\" Time = \\\" + time +\\n\\t\\t\\\" Risk Factor = \\\" + riskFactor +\\n\\t\\t\\\" Description : \\\" + Description\\n\\t\\t)\\n\\t}\\n}\",\n \"function SaveItem() {\\n\\t\\t\\t\\n\\tvar name = document.forms.ShoppingList.name.value;\\n\\tvar data = document.forms.ShoppingList.data.value;\\n\\twindow.localStorage.setItem(name,data);\\n\\tdoShowAll();\\n\\t\\n}\",\n \"function saveSettings() {\\n \\n const curUser = getCurrentUser();\\n const editedUser = curUser;\\n \\n editedUser.firstName = document.getElementById('first2').value;\\n editedUser.lastName = document.getElementById('last2').value;\\n editedUser.email = document.getElementById('email3').value;\\n editedUser.password = document.getElementById('pass3').value;\\n \\n const index = (editedUser.userId-1);\\n let allUsers = getAllUsers();\\n allUsers[index] = editedUser;\\n setAllUsers(allUsers);\\n }\",\n \"function saveData(ranKey) {\\n //random key number\\n //console.log(\\\"save it enter\\\");\\n if(!ranKey){\\n var id = Math.floor(Math.random()*120211);\\n }else{\\n id = ranKey;\\n }\\n getCheckbox();\\n getRadio();\\n var field={};\\n\\n field.title=[\\\"Book Title\\\", $(\\\"Title\\\").value];\\n field.date=[\\\"Date Added:\\\", $(\\\"date\\\").value];\\n field.booknumber=[\\\"Issue Number\\\", $(\\\"booknumber\\\").value];\\n field.coverstyle=[\\\"Cover Style\\\", styleValue];\\n field.read=[\\\"Read\\\", readValue];\\n field.notes=[\\\"Notes\\\", $(\\\"Notes\\\").value];\\n field.grade=[\\\"CCG Grading\\\", $(\\\"slider\\\").value];\\n\\n //Function to convert data into strings (stringify)\\n\\n localStorage.setItem(id, JSON.stringify(field));\\n alert(\\\"Book Saved\\\");\\n }\",\n \"function setUpVariableInputs(){\\n staff_id = getParameterByName(\\\"staff\\\");\\n stu_id = getParameterByName(\\\"stu\\\");\\n set_id = getParameterByName(\\\"set\\\");\\n start_date = getParameterByName(\\\"start\\\");\\n end_date = getParameterByName(\\\"end\\\");\\n set_student = user[\\\"role\\\"] === \\\"STUDENT\\\" ? user[\\\"userId\\\"] : getParameterByName(\\\"student\\\");\\n\\n localStorage.setItem(\\\"initialRun\\\", true);\\n disableGenerateReportButton();\\n if (set_student) {\\n student_report_view = true;\\n setStudent(set_student);\\n $(\\\"#staff_col\\\").css(\\\"display\\\", \\\"none\\\");\\n } else {\\n getStaff();\\n }\\n setDates();\\n}\",\n \"function updatePersistentDataForm(iniobj) {\\r\\n \\\"use strict\\\";\\r\\n document.getElementById(\\\"ini-name\\\").value = iniobj.General.Name;\\r\\n document.getElementById(\\\"ini-location\\\").value = parseInt(iniobj.General.Room.trim());\\r\\n document.getElementById(\\\"ini-kills\\\").value = parseInt(iniobj.General.Kills.trim());\\r\\n document.getElementById(\\\"ini-love\\\").value = parseInt(iniobj.General.Love.trim());\\r\\n if (iniobj.FFFFF) {\\r\\n if (iniobj.FFFFF.F) {\\r\\n if (parseInt(iniobj.FFFFF.F.trim()) === 1) {\\r\\n document.getElementById(\\\"ini-omega-flowey-trapped\\\").checked = true;\\r\\n } else {\\r\\n document.getElementById(\\\"ini-omega-flowey-trapped\\\").checked = false;\\r\\n }\\r\\n }\\r\\n if (iniobj.FFFFF.P) {\\r\\n document.getElementById(\\\"ini-omega-flowey-soul\\\").value = parseInt(iniobj.FFFFF.P.trim());\\r\\n }\\r\\n if (iniobj.FFFFF.D) {\\r\\n document.getElementById(\\\"ini-omega-flowey-deaths\\\").value = parseInt(iniobj.FFFFF.D.trim());\\r\\n }\\r\\n } else {\\r\\n document.getElementById(\\\"ini-omega-flowey-trapped\\\").checked = false;\\r\\n }\\r\\n if (iniobj.reset) {\\r\\n if (iniobj.reset.s_key) {\\r\\n if (parseInt(iniobj.reset.s_key.trim()) === 1) {\\r\\n document.getElementById(\\\"ini-dodged-all-special-thanks\\\").checked = true;\\r\\n } else {\\r\\n document.getElementById(\\\"ini-dodged-all-special-thanks\\\").checked = false;\\r\\n }\\r\\n }\\r\\n } else {\\r\\n document.getElementById(\\\"ini-dodged-all-special-thanks\\\").checked = false;\\r\\n }\\r\\n if (iniobj.fun) {\\r\\n document.getElementById(\\\"ini-fun\\\").value = parseInt(iniobj.fun.trim());\\r\\n }\\r\\n}\",\n \"function save(){\\n\\t\\tvar y =$(this).attr(\\\"id\\\");\\n\\t\\tvar g= JSON.stringify(y);\\n\\t\\tlocalStorage.setItem(y, $(this).val()); // localStorage.setItem(\\\"lastname\\\", \\\"Smith\\\"); localStorage.getItem(\\\"lastname\\\");\\n\\t}\",\n \"function moveToStep2(student) {\\n if (student != null) {\\n $('#name').val(student.name);\\n $('#gender').val(student.gender);\\n $('#birthday').val(student.birthday);\\n $('#phone').val(student.phone);\\n }\\n}\",\n \"function Save() {\\n if ($('#ab041AddEdit').valid()) {\\n if (vm.isNew) {\\n dataContext.add(\\\"/api/ab041\\\",vm.ab041).then(function (data) {\\n notify.showMessage('success', \\\"ab041 record added successfully!\\\");\\n\\t\\t\\t\\t\\t\\twindow.location.hash = \\\"/ab041/\\\";\\n });\\n } else {\\n dataContext.upDate(\\\"/api/ab041\\\", vm.ab041).then(function (data) {\\n notify.showMessage('success', \\\"ab041 record updated successfully!\\\");\\n\\t\\t\\t\\t\\t\\twindow.location.hash = \\\"/ab041/\\\";\\n });\\n }\\n }\\n }\",\n \"function storedData() {\\n localStorage.setItem(\\\"journalEntry\\\", newEvent);\\n const storedInput = localStorage.getItem(\\\"journalEntry\\\");\\n\\n // if(storageInput) {\\n\\n // }\\n}\",\n \"function savedLink(e){\\n\\t//form values\\n\\t//logs the value not the input field\\n\\tvar siteName = document.getElementById('siteName').value;\\n\\tvar siteURL = document.getElementById('siteURL').value;\\n\\n\\tif(!validForm(siteURL, siteName)){\\n\\t\\treturn false;\\n\\t}\\n\\n\\t//creating bookmark object with siteName/siteURL variables in it\\n\\tvar bookmark = {\\n\\t\\tname: siteName,\\n\\t\\turl: siteURL\\n\\t}\\n\\n\\n\\t//if its null need to initialaise bookmarks array\\n\\tif(localStorage.getItem('bookmarks') === null){\\n\\t\\t//bookmark array\\n\\t\\tvar bookmarks = [];\\n\\t\\t//this will add to the array\\n\\t\\tbookmarks.push(bookmark);\\n\\t\\t//set to local storage + wrapping bookmarks in a json function to turn it into a string before saving it\\n\\t\\tlocalStorage.setItem('bookmarks', JSON.stringify(bookmarks));\\n\\t} \\n\\t//if there is an object in bookmarks array\\n\\telse{\\n\\t\\t//get bookmarks array from localStorage\\n\\t\\tvar bookmarks = JSON.parse(localStorage.getItem('bookmarks'));\\n\\t\\t//add bookmark to array\\n\\t\\tbookmarks.push(bookmark);\\n\\t\\t//reset to localStorage\\n\\t\\tlocalStorage.setItem('bookmarks', JSON.stringify(bookmarks));\\n\\n\\t}\\n\\n\\tgetBookmarks();\\n\\t//this prevents the default behavour of the event listener, \\n\\t//stops form from submitting so you can work with it.\\n\\te.preventDefault();\\n}\",\n \"function saveDraft() {\\n\\t\\t\\tvar currentDrafts = getDrafts();\\n\\t\\t\\tcurrentDrafts.push($('#comment-text').val());\\n\\t\\t\\t\\n\\t\\t\\t// Updates the map with an array of drafts for the current user in the private state object (wave)\\n\\t\\t\\twave.getPrivateState().submitDelta({'drafts': currentDrafts});\\n\\t\\t}\",\n \"function setSave(e) {\\n e.preventDefault();\\n character.savingThrowModifier.strength = document.getElementById('strSave').value;\\n character.savingThrowModifier.dexterity = document.getElementById('dexSave').value;\\n character.savingThrowModifier.constitution = document.getElementById('conSave').value;\\n character.savingThrowModifier.intelligence = document.getElementById('intSave').value;\\n character.savingThrowModifier.wisdom = document.getElementById('wisSave').value;\\n character.savingThrowModifier.charisma = document.getElementById('chaSave').value;\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.61165017","0.59940886","0.5951816","0.589807","0.58838904","0.5882665","0.58765554","0.58599234","0.58225846","0.58007205","0.5765815","0.5747694","0.57297796","0.57008415","0.56817067","0.56741977","0.5651191","0.56107545","0.56027067","0.5595887","0.5554713","0.5551617","0.5549382","0.5535833","0.55267614","0.55266875","0.5513884","0.5505466","0.549454","0.5486835","0.54851204","0.5483648","0.5480801","0.54780793","0.5473306","0.54722506","0.5459782","0.54567134","0.54513973","0.54456216","0.54397476","0.5439057","0.54387826","0.54380584","0.54346144","0.54338664","0.54244715","0.5420732","0.5418258","0.54144216","0.54143316","0.5404577","0.5403334","0.54032105","0.5402285","0.5391244","0.53907645","0.53889376","0.5387484","0.5386419","0.5384604","0.53838736","0.5380244","0.53641385","0.5359551","0.5356672","0.5356172","0.53457993","0.53438914","0.53307176","0.532787","0.53273356","0.53232","0.53212225","0.5318766","0.53171283","0.5316374","0.5315506","0.5312603","0.5305387","0.5303253","0.5293654","0.5285855","0.52827394","0.52820045","0.52750117","0.5272941","0.5264412","0.5263235","0.5254066","0.5251532","0.52485377","0.524044","0.5236695","0.52342695","0.5225182","0.52182955","0.521654","0.52133346","0.521239"],"string":"[\n \"0.61165017\",\n \"0.59940886\",\n \"0.5951816\",\n \"0.589807\",\n \"0.58838904\",\n \"0.5882665\",\n \"0.58765554\",\n \"0.58599234\",\n \"0.58225846\",\n \"0.58007205\",\n \"0.5765815\",\n \"0.5747694\",\n \"0.57297796\",\n \"0.57008415\",\n \"0.56817067\",\n \"0.56741977\",\n \"0.5651191\",\n \"0.56107545\",\n \"0.56027067\",\n \"0.5595887\",\n \"0.5554713\",\n \"0.5551617\",\n \"0.5549382\",\n \"0.5535833\",\n \"0.55267614\",\n \"0.55266875\",\n \"0.5513884\",\n \"0.5505466\",\n \"0.549454\",\n \"0.5486835\",\n \"0.54851204\",\n \"0.5483648\",\n \"0.5480801\",\n \"0.54780793\",\n \"0.5473306\",\n \"0.54722506\",\n \"0.5459782\",\n \"0.54567134\",\n \"0.54513973\",\n \"0.54456216\",\n \"0.54397476\",\n \"0.5439057\",\n \"0.54387826\",\n \"0.54380584\",\n \"0.54346144\",\n \"0.54338664\",\n \"0.54244715\",\n \"0.5420732\",\n \"0.5418258\",\n \"0.54144216\",\n \"0.54143316\",\n \"0.5404577\",\n \"0.5403334\",\n \"0.54032105\",\n \"0.5402285\",\n \"0.5391244\",\n \"0.53907645\",\n \"0.53889376\",\n \"0.5387484\",\n \"0.5386419\",\n \"0.5384604\",\n \"0.53838736\",\n \"0.5380244\",\n \"0.53641385\",\n \"0.5359551\",\n \"0.5356672\",\n \"0.5356172\",\n \"0.53457993\",\n \"0.53438914\",\n \"0.53307176\",\n \"0.532787\",\n \"0.53273356\",\n \"0.53232\",\n \"0.53212225\",\n \"0.5318766\",\n \"0.53171283\",\n \"0.5316374\",\n \"0.5315506\",\n \"0.5312603\",\n \"0.5305387\",\n \"0.5303253\",\n \"0.5293654\",\n \"0.5285855\",\n \"0.52827394\",\n \"0.52820045\",\n \"0.52750117\",\n \"0.5272941\",\n \"0.5264412\",\n \"0.5263235\",\n \"0.5254066\",\n \"0.5251532\",\n \"0.52485377\",\n \"0.524044\",\n \"0.5236695\",\n \"0.52342695\",\n \"0.5225182\",\n \"0.52182955\",\n \"0.521654\",\n \"0.52133346\",\n \"0.521239\"\n]"},"document_score":{"kind":"string","value":"0.5477856"},"document_rank":{"kind":"string","value":"34"}}},{"rowIdx":220,"cells":{"query":{"kind":"string","value":"Reads the data entered in the staff form and saves it, leading to the clef form afterwards."},"document":{"kind":"string","value":"function createStaffWithClefs(){\n var linecount = document.getElementById(\"linecount\").value;\n var linecolor = document.getElementById(\"linecolor\").value;\n var mode = document.getElementById(\"mode\").value;\n \n currentStaff = new Staff(linecount, linecolor, mode);\n \n staffs.push(currentStaff);\n \n document.getElementById(\"input\").innerHTML = clefForm;\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function getForm() {\n inputNombre.value = localStorage.getItem('nombre');\n inputApellido.value = localStorage.getItem('apellido');\n inputTel.value = localStorage.getItem('tel');\n inputDir.value = localStorage.getItem('dir');\n inputObs.value = localStorage.getItem('obs');\n console.log('data loaded');\n}","function applyStaffDataChanges(){\n var linecount = document.getElementById(\"linecount\").value;\n var linecolor = document.getElementById(\"linecolor\").value;\n var mode = document.getElementById(\"mode\").value;\n \n if(linecount && linecount != \"none\"){\n currentStaff.linecount = linecount;\n }\n if(linecolor && linecolor != \"none\"){\n currentStaff.linecolor = linecolor;\n }\n if(mode && mode != \"none\"){\n currentStaff.mode = mode;\n }\n document.getElementById(\"input\").innerHTML = staffDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function applyCurrentStaff(){\n currentN = document.getElementById(\"staff\").value;\n document.getElementById(\"input\").innerHTML = staffDataChangeForm();\n}","function copyStorageToForm() {\n \"use strict\";\n // Set chosen hair type\n setFormHairType(sessionStorage.getItem(\"hair_type\"));\n\n // Set selected traits\n setFormTraits(sessionStorage.getItem(\"traits\"));\n}","function setData() {\n localStorage.setItem('name', username.value);\n localStorage.setItem('email', email.value);\n localStorage.setItem('city', city.value);\n localStorage.setItem('organisation', organisation.value);\n localStorage.setItem('contact', contact.value);\n localStorage.setItem('message', message.value);\n // Reset all the fields.\n username.value = '';\n email.value = '';\n city.value = 'city';\n organisation.value = '';\n contact.value = '';\n message.value = '';\n\n}","fillForm() {\n\n if (localStorage.getItem(\"lastname\") !== undefined)\n $(\"form\")[0].lastname.value = localStorage.getItem(\"lastname\");\n\n if (localStorage.getItem(\"firstname\") !== undefined)\n $(\"form\")[0].firstname.value = localStorage.getItem(\"firstname\");\n\n }","updateForm(data) {\n\t\tthis.employeeName.value = data.name;\n\t\tthis.employeeAge.value = data.age;\n\t\tthis.employeePosition.value = data.position;\n\t\tthis.employeeSalary.value = data.salary;\n\t}","function getFormData() {\n // User Info Obj\n const user = {\n netID: document.getElementById('netID').value,\n contact: document.getElementById('contact').value,\n location: document.getElementById('location').value,\n description: document.getElementById('issue').value,\n team: document.getElementById('team').value,\n manager: document.getElementById('managerId').value\n };\n // Get priority level selection RadioButtons\n const rbs = document.querySelectorAll('input[name=radioBtn]');\n let selectedValue;\n for (const rb of rbs) {\n if (rb.checked) {\n selectedValue = rb.value;\n break;\n }\n }\n /*Get category*/\n const category = {\n cat: document.getElementById('cat').value,\n sub: document.getElementById('sub').value\n };\n //Formatting for txt file.\n const userData =\n 'NetID: ' +\n user.netID +\n '\\n' +\n '\\n' +\n 'Contact: ' +\n user.contact +\n '\\n' +\n '\\n' +\n 'Location: ' +\n user.location +\n '\\n' +\n '\\n' +\n 'Priority: ' +\n selectedValue +\n '\\n' +\n '\\n' +\n 'Category: ' +\n category.cat +\n '\\n' +\n '\\n' +\n 'Sub-Category: ' +\n category.sub +\n '\\n' +\n '\\n' +\n 'Assignment Team: ' +\n user.team +\n '\\n' +\n '\\n' +\n 'Group Manager Contact: ' +\n user.manager +\n '\\n' +\n '\\n' +\n 'Full Description: ' +\n '\\n' +\n user.description;\n //print date\n const today = new Date();\n //save BLOB to txt file\n const blob = new Blob([userData], { type: 'text/plain;charset=utf-8' });\n saveAs(blob, today);\n //refresh page for new form\n location.reload();\n}","function saveManageBusinessFields() {\n // Save business details in local Storage\n var businessName = document.getElementById('businessName').value;\n if (businessName != null) {\n localStorage.setItem('businessName', businessName);\n }\n\n var businessPhone = document.getElementById('businessPhone').value;\n if (businessPhone != null) {\n localStorage.setItem('businessPhone', businessPhone);\n }\n\n var businessAddress = document.getElementById('set-address').value;\n if (businessAddress != null) {\n localStorage.setItem('businessAddress', businessAddress);\n }\n}","function initialForm() {\n\n\n var date = document.getElementById(\"date\").value\n var name = document.getElementById(\"name\").value\n var address = document.getElementById(\"address\").value\n var datebirth = document.getElementById(\"datebirth\").value\n var sex = document.getElementById(\"sex\").value\n var civil = document.getElementById(\"civil\").value\n var cp = document.getElementById(\"cp\").value\n var tel = document.getElementById(\"tel\").value\n var cel = document.getElementById(\"cel\").value\n var mail = document.getElementById(\"mail\").value\n // \n document.getElementById(\"message\").innerHTML = \"Sus datos fueron guardados correctamente. Si necesita actualizar su información, por favor llene el formulario nuevamente o contacte al administrador.\"\n\n cleanFormInitial()\n addFormToStorage(date, name, address, datebirth, sex, civil, cp, tel, cel, mail)\n\n\n}","function applyClefDataChanges(){\n var line = document.getElementById(\"line\").value;\n var shape = document.getElementById(\"shape\").value;\n \n if(line && line != \"none\"){\n currentStaff.clefs[currentClefIndex].line = line;\n }\n if(shape && shape != \"none\"){\n currentStaffs.clefs[currentClefIndex].shape = shape;\n }\n \n document.getElementById(\"input\").innerHTML = clefDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function saveState() {\n const state = {\n cf: cfSelect.value,\n gf: gfSelect.value,\n mf: mfSelect.value,\n am: amSelect.value,\n };\n localStorage.setItem('collecting_together_form', JSON.stringify(state));\n }","resetFormContent() {\n ContentUtils.updateElementContent(\"delimiter\", \"?\");\n ContentUtils.updateElementContent(\"hasHeaderRow\", \"?\");\n ContentUtils.updateElementContent(\"fileSize\", 0);\n ContentUtils.updateElementContent(\"totalRecords\", 0);\n ContentUtils.updateElementContent(\"badRecords\", 0);\n ContentUtils.updateElementContent(\"inputCsvTable\", \"\");\n ContentUtils.updateElementContent(\"badCsvTable\", \"\");\n ContentUtils.updateElementContent(\"interpolatedCsvTable\", \"\");\n ContentUtils.updateElementContent(\"invalidData\", \"\");\n }","function toChangeClefData(){\n currentClefIndex = 0;\n document.getElementById(\"input\").innerHTML = clefDataChangeForm();\n}","function fetchStorage() {\n txtFName.value = localStorage.getItem(\"input-name\");\n txtLName.value = localStorage.getItem(\"input-lastname\");\n txtPhone.value = localStorage.getItem(\"input-phone\");\n txtEmail.value = localStorage.getItem(\"input-email\");\n }","updateFormFromStorage() {\n // check for data if none return\n let data = localStorage.getItem('formData');\n if (!data) {\n this.setTransactions([]);\n // Looks like new user without data show tips modal.\n setTimeout(() => $('#tipsModal').modal(), 10000);\n return;\n }\n this.setForm(JSON.parse(data));\n // set the interface (transactions) options on the form\n this.setFormTransactions(JSON.parse(localStorage.getItem('transactions')));\n }","function toChangeStaffData(){\n if(staffs.length > 0){\n currentN = staffs[0].n;\n }\n document.getElementById(\"input\").innerHTML = staffDataChangeForm();\n}","function storeForm() {\n /*jshint validthis:true */\n var form = $(this);\n var formId = form[0].id;\n if (!formId) return;\n var formJSON = app.formToData(form);\n if (!formJSON) return;\n app.formStoreData(formId, formJSON);\n form.trigger('store form:storedata', {data: formJSON});\n }","function storeForm() {\n\t /*jshint validthis:true */\n\t var form = $(this);\n\t var formId = form[0].id;\n\t if (!formId) return;\n\t var formJSON = app.formToData(form);\n\t if (!formJSON) return;\n\t app.formStoreData(formId, formJSON);\n\t form.trigger('store form:storedata', {data: formJSON});\n\t }","function clear_form_data() {\n var item_area=$('#item_area');\n console.log(\"Clear all data\");\n item_area.val(\"\");\n $('#change_course_dis_text').val(\"\");\n $('#course_name_text').val(\"\");\n $('#course_dis_text').val(\"\");\n\n }","function prefill_form(){\ndocument.getElementById(\"ref\").value = localStorage.job1Ref;\ndocument.getElementById(\"jobtitle\").value = localStorage.joblTitles;\n//alert(localStorage.job1Ref);\n}","function saveForm() {\n return saveCompanySite()\n .then(saveInternalNumbers);\n }","function fillFormfromLocal(saveInfoLocalStorage){\n const inputArray = document.querySelectorAll('input');\n \n for(let inputName of inputArray){\n if(saveInfoLocalStorage[inputName.name] !== undefined){\n inputName.value = saveInfoLocalStorage[inputName.name]\n } else {\n inputName.value = '';\n }\n }\n}","function updatePersistentDataForm(iniobj) {\r\n \"use strict\";\r\n document.getElementById(\"ini-name\").value = iniobj.General.Name;\r\n document.getElementById(\"ini-location\").value = parseInt(iniobj.General.Room.trim());\r\n document.getElementById(\"ini-kills\").value = parseInt(iniobj.General.Kills.trim());\r\n document.getElementById(\"ini-love\").value = parseInt(iniobj.General.Love.trim());\r\n if (iniobj.FFFFF) {\r\n if (iniobj.FFFFF.F) {\r\n if (parseInt(iniobj.FFFFF.F.trim()) === 1) {\r\n document.getElementById(\"ini-omega-flowey-trapped\").checked = true;\r\n } else {\r\n document.getElementById(\"ini-omega-flowey-trapped\").checked = false;\r\n }\r\n }\r\n if (iniobj.FFFFF.P) {\r\n document.getElementById(\"ini-omega-flowey-soul\").value = parseInt(iniobj.FFFFF.P.trim());\r\n }\r\n if (iniobj.FFFFF.D) {\r\n document.getElementById(\"ini-omega-flowey-deaths\").value = parseInt(iniobj.FFFFF.D.trim());\r\n }\r\n } else {\r\n document.getElementById(\"ini-omega-flowey-trapped\").checked = false;\r\n }\r\n if (iniobj.reset) {\r\n if (iniobj.reset.s_key) {\r\n if (parseInt(iniobj.reset.s_key.trim()) === 1) {\r\n document.getElementById(\"ini-dodged-all-special-thanks\").checked = true;\r\n } else {\r\n document.getElementById(\"ini-dodged-all-special-thanks\").checked = false;\r\n }\r\n }\r\n } else {\r\n document.getElementById(\"ini-dodged-all-special-thanks\").checked = false;\r\n }\r\n if (iniobj.fun) {\r\n document.getElementById(\"ini-fun\").value = parseInt(iniobj.fun.trim());\r\n }\r\n}","fillForm(data) {\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","function displayData() {\n\n if (localStorage.getItem(\"formData\") != null){\n\n let values = JSON.parse(localStorage.getItem(\"formData\"));\n \n nameInput.value = values[values.length-1].inpName;\n emailInput.value = values[values.length-1].inpEmail;\n phoneInput.value = values[values.length-1].inpPhone;\n messageInput.value = values[values.length-1].inpText;\n }\n \n}","function storeData(){\r\n\t\tvar id \t\t\t\t= Math.floor(Math.random()*100000000001);\r\n\t\t//Gather up all our form field values and store in an object\r\n\t\t//Object properties contain an array with the form label and input value\r\n\t\tgetSelectedRadio();\r\n\t\tvar item \t\t\t\t= {};\r\n\t\t\titem.comicTitle\t\t= [\"Title of Comic:\", e('comicTitle').value];\r\n\t\t\titem.seriesTitle\t= [\"Title of Series:\", e('seriesTitle').value];\r\n\t\t\titem.issueNum\t\t= [\"Issue Number:\", e('issueNum').value];\r\n\t\t\titem.dateReleased\t= [\"Date Released:\", e('dateReleased').value];\r\n\t\t\titem.publisher\t\t= [\"Publisher:\", e('publisher').value];\r\n\t\t\titem.rateIssue\t\t= [\"Rate of Issue:\", e('rateIssue').value];\r\n\t\t\titem.genre \t\t\t= [\"Genre:\", e('genre').value];\r\n\t\t\titem.illStyle\t\t= [\"Illustration Style:\", styleValue];\r\n\t\t\titem.comments\t\t= [\"Comments:\", e('comments').value];\r\n\t\t//Save data into Local Storage: Use Stringify to convert our object to a string\r\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\r\n\t\talert(\"Comic saved to index!\");\r\n\t}","save() {\n try {\n this._toggleSaveThrobber();\n this._readFromForm();\n this.dao.save();\n\n // make sure the edit input is showing the correct id, reload data from server\n document.getElementById('edit_id').value = this.dao.id;\n this.read();\n \n } catch(e) {\n console.log(e);\n alert(e);\n }\n this._toggleSaveThrobber();\n }","function updateOutput7() {\n localStorage.setItem('info7', input_textarea7.value)\n}","function saveInformation () {\n\t\t numOfCreditFun();\n\t\t bestMthContFun();\n\t\t var info = {};\n\t\t \tinfo.major = [\"Major Choice:\", $('#departments').val()];\n\t\t info.cName = [\"Course Name:\", $('#courseName').val()];\n\t\t info.cSection = [\"Course Section:\", $('#courseSection').val()];\n\t\t info.topicAndSec = [\"Topic and Section:\", $('#topicAndSection').val()];\n\t\t info.todaysDate = [\"Today's Date:\", $('#todaysDate').val];\n\t\t info.dueDate = [\"Due Date:\", $('#dueDate').val()];\n\t\t info.weeksOfClass = [\"Is the Class on Campus or Online:\", $('#weeksOfClass').val()];\n\t\t info.slideValue = [\"Due Date:\", $('#weeksOfClass').val()];\n\t\t info.courseNumCredits = [\"Number of Credits:\", numOfCreditFun];\n\t\t info.teacherName = [\"Teacher Name:\", $('#teacherName').val()];\n\t\t info.teacherEmail = [\"Teacher Email:\", $('#teacherEmail').val()];\n\t\t info.teacherPhone = [\"Teacher Phone:\", $('#teacherPhone').val()];\n\t\t info.bestMthCont = [\"Best Method To Get In Contact:\", bestMthContFun];\n\t\t info.note = [\"Note Section:\", $('#noteSection').val()];\n\t\t //localStorage.setItem(id, JSON.stringify(info));\n\t\t couchDBSave(info);\n\t\t}","function showUserForm() {\n try {\n var user = JSON.parse(localStorage.getItem(\"user\"));\n } catch(e) {\n if (window.navigator.vendor === \"Google Inc.\") {\n if (e === DOMException.QUOTA_EXCEEDED_ERR) {\n alert(\"Error: Saving to local storage\");\n }\n } else if (e === QUOTA_EXCEEDED_ERR) {\n alert(\"Error: Saving to local storage.\");\n }\n \n console.log(e);\n }\n \n if(user != null) {\n $(\"#FirstName\").val(user.FirstName);\n $(\"#LastName\").val(user.LastName);\n $(\"#DOB\").val(user.DOB);\n $(\"#changePassword\").val(user.NewPassword);\n $(\"#height\").val(user.Height);\n $(\"#weight\").val(user.Weight);\n }\n }","function setSavedState() {\n const state = JSON.parse(localStorage.getItem('collecting_together_form'));\n if (state) {\n cfSelect.value = state.cf ? state.cf : '';\n gfSelect.value = state.gf ? state.gf : '';\n mfSelect.value = state.mf ? state.mf : '';\n amSelect.value = state.am ? state.am : '';\n }\n }","function savedData() {\n var i1 = localStorage.getItem('inputText1');\n inOutText1.text(i1);\n var i2 = localStorage.getItem('inputText2');\n inOutText2.text(i2);\n var i3 = localStorage.getItem('inputText3');\n inOutText3.text(i3);\n var i4 = localStorage.getItem('inputText4');\n inOutText4.text(i4);\n var i5 = localStorage.getItem('inputText5');\n inOutText5.text(i5);\n var i6 = localStorage.getItem('inputText6');\n inOutText6.text(i6);\n var i7 = localStorage.getItem('inputText7');\n inOutText7.text(i7);\n var i8 = localStorage.getItem('inputText8');\n inOutText8.text(i8);\n var i9 = localStorage.getItem('inputText9');\n inOutText9.text(i9);\n $('#clear').on(\"click\", function () {\n localStorage.clear();\n });\n\n }","function saveData()\n{\n\t\"use strict\";\n\n\n\tvar currentDate = new Date();\n\tvar year, month, day;\n\tyear = currentDate.getFullYear();\n\t\n\tif (currentDate.getMonth().toString().length === 1)\n\t{\n\t\tmonth = \"0\" + currentDate.getMonth().toString(); \n\t}\n\telse\n\t{\n\t\tmonth = currentDate.getMonth().toString();\n\t}\n\t\n\tif (currentDate.getDate().toString().length === 1)\n\t{\n\t\tday = \"0\" + currentDate.getDate().toString(); \n\t}\n\telse\n\t{\n\t\tday = currentDate.getDate().toString();\n\t}\n\t\n\tcreationDate = year + month + day;\n\talert(creationDate);\n\tcreationTime = currentDate.getHours() + \":\" + currentDate.getMinutes();\n\n\t\n\ttitle = document.getElementById(\"txtTitle\").value;\n content = document.getElementById(\"txtContent\").value;\n\tteacherName = document.getElementById(\"txtTeacherName\").value;\n\tsubject = document.getElementById(\"txtSubject\").value;\n\t\n\talert(\"Your information has been saved\");\n\n\tdeadline = document.getElementById(\"txtDeadline\").value;\n\n\n\t// Add code to store rest of input in variables here\n \n// Store the information in localstorage\n localStorage.setItem(\"title\", title);\n localStorage.setItem(\"content\", content);\n\tlocalStorage.setItem(\"teacherName\", teacherName);\n\n \n //alert to inform user data has been saved.\n\n}","function saveObject(form) {\n /// know the object\n var which = form.dataset.which;\n // save values as vars\n let objectName = document.getElementById('' + which + 'Name');\n /// preparing form final validation\n //// checking what object to save in DB\n switch (which) {\n case 'student':\n /// gets all checkBox of courses selected to add them to Deals Table.\n var selectedCoursesArray = [];\n var myCheckBoxContChildren = $('#' + which + 'Courses').children();\n for (var i = 0; i < myCheckBoxContChildren.length; i++) {\n if (myCheckBoxContChildren[i].checked) {\n selectedCoursesArray.push(myCheckBoxContChildren[i].dataset.courseid)\n }\n }\n // phone and email validations happened onblur events\n var objectPhone = document.getElementById('' + which + 'Phone');\n var objectEmail = document.getElementById('' + which + 'Email');\n var formOk = (objectName.value.length > 0 && letSaveEmail && letSavePhone);\n break;\n case 'course':\n var objectDescription = document.getElementById('' + which + 'Description');\n ///Course name existence checked ontop on blur event.\n var formOk = (courseName.value.length > 0 && letSaveCName && objectDescription.value.length > 0);\n break;\n case 'administator':\n // phone and email validations happened onblur events\n var objectPhone = document.getElementById('' + which + 'Phone');\n var objectEmail = document.getElementById('' + which + 'Email');\n if (changePassword) {\n /// determine first if user clicked on change password button\n var objectPassword = document.getElementById('' + which + 'Password').value;\n ///add case\n if (objectPassword.length >= 4) {\n //letSavePass stays true\n $('#passErrMsg').hide();\n $('#passErrMsg').empty();\n /// edit case\n if (letSavePass === null) {\n ///null happens only in edit case: if no request to change its still a null.\n letSavePass = false;\n }\n ;\n } else {\n ///err.. password is too short\n $('#passErrMsg').html(\"password is too short-minimum length: 4 digits.\");\n $('#passErrMsg').show();\n }\n ;\n }\n ;\n var objectPassword = document.getElementById('' + which + 'Password');\n var objectRole = document.getElementById('beautifulSelect');\n if (letSavePass === null) {\n //edit case\n if (changePassword) {\n //need to add password.\n var formOk = (objectName.value.length > 0 && $('#' + which + 'Password').val().length >= 4 && letSaveEmail && letSavePhone && letAddRole);\n\n } else {\n //no need to add password.\n var formOk = (objectName.value.length > 0 && letSaveEmail && letSavePhone && letAddRole);\n }\n } else if (letSavePass === false || letSavePass === true) {\n // need to add password.\n var formOk = (objectName.value.length > 0 && $('#' + which + 'Password').val().length >= 4 && letSaveEmail && letSavePhone && letAddRole);\n }\n ;\n break;\n }\n ;\n let addingSucsMsg = document.getElementById('addingSucsMsg');\n let addingErrMsg = document.getElementById('addingErrMsg');\n addingSucsMsg.style.display = \"none\";\n //// make sure didn't upload any wrong type of image\n if ((letSaveImage) || letSaveImage === null) {\n ////\n ///// make sure name is set and email is in the right format.\n if (formOk) {\n addingErrMsg.innerHTML = \"\";\n addingErrMsg.style.display = \"none\";\n ////\n /// last modifying before calling controller.\n var formData = new FormData();\n formData.append('name', objectName.value);\n /// modifying depends on which object\n switch (which) {\n case 'student':\n formData.append('email', objectEmail.value);\n formData.append('phone', objectPhone.value.split('-').join(''));\n formData.append('selectedCourses', JSON.stringify(selectedCoursesArray));\n formData.append('addStudent', null);\n break;\n case 'course':\n formData.append('description', objectDescription.value);\n formData.append('addCourse', null);\n break;\n case 'administator':\n formData.append('email', objectEmail.value);\n formData.append('phone', objectPhone.value.split('-').join(''));\n if (!(letSavePass === null)) {\n ///user want to update password\n formData.append('password', objectPassword.value);\n } else {\n //no change needed\n formData.append('password', \"no\");\n }\n ;\n formData.append('role', objectRole.value);\n formData.append('addAdministator', null);\n break;\n }\n ;\n //// if chose to not use image - give him default image\n if (letSaveImage === null) {\n formData.append('image', 'useDefault');\n } else {\n //// user uploaded an image\n let fileSelect = document.getElementById('' + which + 'Image');\n let file = fileSelect.files[0];\n //// name is going to be student_id for future uses..\n let filename = '.jpg';\n formData.append('image', file, filename);\n }\n ;\n // use hidden\n var hidden = $('#hiddenInput')[0];\n var what = hidden.dataset.what;\n //check what we are doing right now.\n switch (what) {\n case 'add':\n //// calling XHR post Function. for adding new object\n XHRcall(formData, which);\n break;\n case 'edit':\n // gather data about the user and send it along with form\n let who = hidden.dataset.who;\n formData.append('objectID', who);\n formData.append('edit', null);\n setTimeout(() => {\n saveNUpdate(formData, which);\n }, 50);\n if (($('#existingImageOpinion')[0].checked)) {\n removeExistingImage(who, which);\n }\n ;\n break;\n }\n ;\n\n } else {\n ///// not everything is as requested.\n addingErrMsg.innerHTML = \"Some of the required fields are empty or not as requested.\";\n addingErrMsg.style.display = \"block\";\n /// wait 4 seconds, let this error gone away.\n setTimeout(function () {\n addingErrMsg.style.display = \"none\";\n }, 4000)\n }\n }\n ;\n}","function applyCurrentClef(){\n currentClefIndex = document.getElementById(\"clef\").value;\n document.getElementById(\"input\").innerHTML = clefDataChangeForm();\n}","fillForm ( data ) {\n this.title.value = data.title;\n this.body.value = data.body;\n this.id.value = data.id;\n\n // change form state\n this.changeFormState( \"edit\" )\n\n }","function clean() {\r\n document.form.textview.value = \"\";\r\n}","fillForm(data){\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","_readFromForm() {\n this.dao.citation_id = document.getElementById('citation_id').value;\n this.dao.ott_id = document.getElementById('ott_id').value;\n this.dao.background_noise_in_decibel = document.getElementById('background_noise_in_decibel').value;\n this.dao.calibration = document.getElementById('calibration').value;\n this.dao.distance_to_sound_source_in_meter = document.getElementById('distance_to_sound_source_in_meter').value;\n this.dao.facility_id = document.getElementById('facility_id').value;\n this.dao.latitude_in_decimal_degree = document.getElementById('latitude_in_decimal_degree').value;\n this.dao.longitude_in_decimal_degree = document.getElementById('longitude_in_decimal_degree').value;\n this.dao.measurement_method_id = document.getElementById('measurement_method_id').value;\n this.dao.measurement_type = document.getElementById('measurement_type').value;\n this.dao.medium = document.getElementById('medium').value;\n this.dao.number_of_measurements = document.getElementById('number_of_measurements').value;\n this.dao.position_first_electrode = document.getElementById('position_first_electrode').value;\n this.dao.position_second_electrode = document.getElementById('position_second_electrode').value;\n this.dao.position_third_electrode = document.getElementById('position_third_electrode').value;\n this.dao.position_of_animal = document.getElementById('position_of_animal').value;\n this.dao.sedated = document.getElementById('sedated').value;\n this.dao.sedation_details = document.getElementById('sedation_details').value;\n this.dao.test_environment_description = document.getElementById('test_environment_description').value;\n this.dao.testtone_form_method_id = document.getElementById('testtone_form_method_id').value;\n this.dao.testtone_presentation_method_constants = document.getElementById('testtone_presentation_method_constants').value;\n this.dao.testtone_presentation_sound_form = document.getElementById('testtone_presentation_sound_form').value;\n this.dao.testtone_presentation_staircase = document.getElementById('testtone_presentation_staircase').value;\n this.dao.threshold_determination_method = document.getElementById('threshold_determination_method').value;\n this.dao.year_of_experiment_start = document.getElementById('year_of_experiment_start').value;\n this.dao.year_of_experiment_end = document.getElementById('year_of_experiment_end').value;\n }","function clearFormContent() {\n $(\"#formOrgList\").empty();\n Organizations.length = 0;\n // Reset the name field\n clearDetailContent();\n currentOrg = undefined;\n }","function clearFormContent() {\n $(\"#formOrgList\").empty();\n Organizations.length = 0;\n // Reset the name field\n clearDetailContent();\n currentOrg = undefined;\n }","function saveLocalStorage() {\n localStorage['mainText'] = text_area.value;\n localStorage['excText'] = excludeWord.value;\n localStorage['percentReplacement'] = percentReplSlider.value;\n localStorage['excludePronouns'] = chkPronouns.checked;\n localStorage['excludeHyphenated'] = chkHyphens.checked;\n localStorage['excludeConjunctions'] = chkConjunctions.checked;\n localStorage['currReplacement'] = currReplacement;\n localStorage['chkMultiWord'] = chkMultiWord.checked;\n localStorage['chkNoRepeat'] = chkNoRepeat.checked;\n}","function storeForm() {\n /*jshint validthis:true */\n var form = $(this);\n var formId = form[0].id;\n if (!formId) return;\n var formJSON = app.formToJSON(form);\n if (!formJSON) return;\n app.formStoreData(formId, formJSON);\n form.trigger('store', {\n data: formJSON\n });\n }","function restore_inputs () {\n\n\t\t\t\tparse_variables();\n\n\t\t\t\t$('.form-w').val(W);\n\t\t\t\t$('.form-b').val(B);\n\t\t\t\t$('.form-mf').val(Mf);\n\t\t\t\t$('.form-mt').val(Mt);\n\n\t\t\t}","function storeForm() {\n /*jshint validthis:true */\n var form = $(this);\n var formId = form[0].id;\n if (!formId) return;\n var formJSON = app.formToJSON(form);\n if (!formJSON) return;\n app.formStoreData(formId, formJSON);\n form.trigger('store', {data: formJSON});\n }","function submitData(){\r\n localStorage.clear();\r\n setFinalData(finalData => [...finalData, userData]);\r\n setUserData('');\r\n setStep(4);\r\n onSubmitRegister();\r\n }","function save() {\n $editors.find('.text').each(function () {\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\n });\n }","function getActivitesData() {\n let oldActivites = JSON.parse(localStorage.getItem(\"Activites\")) || [];\n let ActivitesId = localStorage.length;\n let ActivitesTitle = document.getElementById(\"Activitestitle\").value.trim();\n let dataForm = document.getElementById(\"Activitesmyform\");\n let ActivitesDate = document.getElementById(\"date\").value;\n let ActivitesDataForm = (dataForm.elements[\"ActivitesmyTextArea\"].value =\n window.frames[\"ActivitesrichTextField\"].document.body.textContent);\n if (ActivitesTitle == \"\" && ActivitesDate == \"\" && ActivitesDataForm == \"\") {\n let outputActivites = document.getElementById(\"outputActivites\");\n outputActivites.className = \"bg-danger mt-3 text-white text-center p-2\";\n outputActivites.innerHTML = \"

    Fill all input Please

    \";\n } else {\n let ActivFormData = new ActivitesformData(\n ActivitesId,\n ActivitesTitle,\n ActivitesDate,\n ActivitesDataForm,\n ActivitesUploaded_image\n );\n oldActivites.push(ActivFormData);\n localStorage.setItem(\"Activites\", JSON.stringify(oldActivites));\n \n }\n}","function clearForm (title, author, pages, read) {\n title.value = \"\";\n author.value = \"\";\n pages.value = \"\";\n read.checked = false;\n}","function uniPrograms_Clear_FromData()\r\n{\r\n\tclearFields(\"uniProgram_form\");\r\n\t//remove Delete Button\r\n\tremove_child_Elements('uniPrograms-delete-btn');\r\n\taddValidationClass('uniProgram_form', 'uni_program_data_upload_file', 'validate-required');\r\n}","function toStaffs(){\n document.getElementById(\"input\").innerHTML = staffForm();\n}","function doEdit(){\n\n\n if(validation() == false)\n return ;\n\n doEditInLocalstorage(prevli) ;\n doEditInShowList(prevli) ;\n\n\n /*********** Going back to again add Task Field ************/ \n \n document.getElementById(\"task\").value = \"\" ;\n document.getElementById(\"editButton\").style.display = 'none' ;\n document.getElementById(\"addButton\").style.display = 'block' ;\n\n /***************** End ***********************/\n\n\n }","function saveMentorForm(e) {\n e.preventDefault();\n var category = document.getElementById(\"category\").value;\n var paragraph = document.getElementById(\"paragraph\").value;\n saveMentor(category, currentMentor.fullName, currentMentor.job, currentMentor.company, paragraph, currentMentor.img, currentMentor.mail, currentMentor.linkedinLink, currentMentor.linkedinID);\n}","function loadExistingFormValues() {\n\n // lesion has been found, load data and fill out form\n if( meCompletedLesions[meCurrentLesion] ) {\n\tloadExistingQuestion4();\n\tloadExistingQuestion5();\n\tloadExistingQuestion6();\n\tloadExistingQuestion7();\n\tloadExistingQuestion8();\n\tloadExistingQuestion9();\n\tloadExistingQuestion10();\n loadExistingQuestion11();\n loadExistingComment();\n showSaveButton();\n }\n}","save () {\n\n // Validate\n if (this.checkValidity()) {\n\n // Collect input\n this.info.item = this.collectInput();\n\n // Show modal\n this.modal.show();\n }\n }","inputData() {\n return (e) => {\n e.persist();\n var reader = new FileReader();\n const self = this;\n reader.onload = function(e) {\n self.parseInputData(reader.result);\n }\n reader.readAsText(e.target.files[0]);\n e.target.value = \"\";\n };\n }","function FunctionUpdate() \r\n\r\n{\r\nvar x = document.forms[\"myForm\"][\"txt_notepad_title\"].value;\r\nvar y = document.forms[\"myForm\"][\"txt_area\"].value;\r\n \r\nif (x == \"\")\r\n \r\n{\r\n \r\nalert(\"Please Choose Notepad Title From Table Below To Update\");\r\n \r\n}\r\n\r\nelse if(y == \"\")\r\n\r\n{\r\n\t\r\nalert(\"Please Fill In The TextBox Area\");\r\n\r\n}\r\n \r\nelse\r\n \r\n{\r\n\r\n//Update Local Storage--------------------------------------------------------------------------------------------->\r\nvar title = document.forms.myForm.txt_notepad_title.value;\r\nvar text = document.forms.myForm.txt_area.value;\r\n\t\r\nlocalStorage.setItem(title, text);\r\ndocument.getElementById(\"myForm\").reset();\r\nalert(\"Update Succesfull\");\r\ndoShowAll();\r\n\r\n}\r\n}","function storeSettings() {\n check();\n browser.storage.local.set(f2j(form));\n}","function readUserInput() {\n\tvar settings = {};\n\t//Plasmid Section\n\tsettings.plasmidname = readtxtField(\"txtPlasmidName\");\n\tsettings.plasmidnameon = readField(\"bolShowPlasmidName\");\n\tsettings.plasmidsize = readField(\"txtPlasmidSize\");\n\tsettings.plasmidsizeon = readField(\"bolShowPlasmidSize\");\n\tsettings.plasmidradius = readField(\"txtRadius\");\n\tsettings.bbwidth = readField(\"txtBackBoneWidth\");\n\tsettings.bbcolor = readField(\"optBackBoneColor\");\n\tsettings.bbon = readField(\"bolShowBackBone\");\n\t//Feature Section (General)\n\tsettings.fwidth = readField(\"txtFeatureWidth\");\n\tsettings.fstrokewidth = readField(\"txtFeatureStrokeWidth\");\n\tsettings.fstrokered = readField(\"txtStrokeRed\");\n\tsettings.fstrokegreen = readField(\"txtStrokeGreen\");\n\tsettings.fstrokeblue = readField(\"txtStrokeBlue\");\n\tsettings.farrowlength = readField(\"txtArrowHeadLength\");\n\tsettings.farrowwidth = readField(\"txtArrowHeadWidth\");\n\t//Text section\n\tsettings.txton = readField(\"bolShowText\");\n\tsettings.txtfamily = readField(\"optFontFamily\");\n\tsettings.txtsize = readField(\"txtFontSize\");\n\tsettings.txtcolor = readField(\"optFontColor\");\n\tsettings.txtbold = readField(\"bolTextBold\");\n\tsettings.txtloc = readField(\"optTextLocation\");\n\t//Canvas section\n\tsettings.cw = readField(\"txtCanvasWidth\");\n\tsettings.ch = readField(\"txtCanvasHeight\");\n\tsettings.error = 0;\n\tsettings.errmsg = \"\";\n\t//Calculated properties\n\tsettings.ox = settings.cw / 2;\n\tsettings.oy = settings.ch / 2;\n\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\n\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\n\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\n\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\n\treturn settings;\n}","function storeData() {\n trainName = $(\"#Train-Name\").val();\n destinationName = $(\"#Destination-Name\").val();\n firstTrainTime = $(\"#First-Time\").val();\n trainFrequency = $(\"#Frequency\").val();\n}","function createStaff(){\n var linecount = document.getElementById(\"linecount\").value;\n var linecolor = document.getElementById(\"linecolor\").value;\n var mode = document.getElementById(\"mode\").value;\n \n currentStaff = new Staff(linecount, linecolor, mode);\n \n staffs.push(currentStaff);\n \n document.getElementsByClassName(\"staffdependant\")[0].disabled = false;\n \n document.getElementById(\"input\").innerHTML = staffForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","clearInput() {\n if (this.getCurTab() === \"dbms\") {\n var curDocName = DOC.iSel(\"docNameID\").value; // Stores current value of docName\n DOC.iSel(\"dbmsFormID\").reset(); // Resets entire form\n DOC.iSel(\"docNameID\").value = curDocName; // Added so docname is not reset\n } else if (this.getCurTab() === \"fs\") {\n var curDocName = DOC.iSel(\"docNameID2\").value;\n DOC.iSel(\"fsFormID\").reset();\n DOC.iSel(\"docNameID2\").value = curDocName;\n }\n }","function loadManageBusinessFields() {\n // Pull business details from local storage\n var businessName = localStorage.getItem('businessName');\n console.log(localStorage.getItem('businessName'));\n if (businessName != null && businessName != 'undefined') {\n document.getElementById('businessName').value = businessName;\n }\n\n var businessPhone = localStorage.getItem('businessPhone');\n if (businessPhone != null && businessPhone != 'undefined') {\n document.getElementById('businessPhone').value = localStorage.getItem('businessPhone');\n }\n\n var businessAddress = localStorage.getItem('businessAddress');\n if (businessAddress != null && businessAddress != 'undefined') {\n document.getElementById('set-address').value = localStorage.getItem('businessAddress');\n }\n}","function dissection_sticky_fields_save() {\nlogger(\"dissection_sticky_fields_save()\");\n var sf = window.dissection_sticky_fields;\n var form = $(featherlight_selector()+\" form\");\n var vals = {}\n for (const tag in sf) {\n sf[tag].forEach(function(field) {\n var name = \"sample[\"+field+\"]\";\n vals[field] = form.find(tag+\"[name='\"+name+\"']\").val();\n });\n }\n window.dissection_sticky_vals = vals;\n}","function clearData(e) {\n\te.preventDefault();\n\t// Remove temp-div container from the page\n\tvar getTempDiv = document.getElementById('temp-div');\n\tvar mainDiv = getTempDiv.parentNode;\n\tmainDiv.removeChild(getTempDiv);\n\t// clear the form values\n\tdocument.getElementById('donald-inputs').reset();\n}","function clear_form_data() {\n $(\"#promotion_title\").val(\"\");\n $(\"#promotion_promotion_type\").val(\"\");\n $(\"#promotion_start_date\").val(\"\");\n $(\"#promotion_end_date\").val(\"\");\n $(\"#promotion_active\").val(\"\");\n }","function saveCustomerData(form){\n // pick the data from the inputs\n let first = $(\"input[name=first]\").val();\n let email = $(\"input[name=email]\").val();\n let products = $(\"select[name=products]\").val();\n let quantity = $(\"input[name=quantity]\").val();\n\n // store the data in the object\n let CustomerData = {\n first: first,\n\t\temail: email,\n products:products,\n quantity:quantity\n\t};\n console.log(CustomerData);\n //stroing all the input in the local variable\n\tlocalStorage[\"CustomerData\"]=JSON.stringify(CustomerData);\n form.submit();\n}","function save_data() {\n var name = document.getElementById(\"getInfo\")[0].value;\n var lastName = document.getElementById(\"getInfo\")[1].value;\n \n localStorage.setItem(\"name\", name);\n localStorage.setItem(\"lastName\", lastName);\n}","fillForm(data){\n this.titleInput.value = data.title\n this.bodyInput.value = data.body\n this.idInput.value = data.id\n\n this.changeFormState('edit')\n }","function saveForm()\n{ \n // retrieve the data from the form\n var first = document.getElementById( \"first\" ).value;\n var last = document.getElementById( \"last\" ).value;\n var street = document.getElementById( \"street\" ).value;\n var city = document.getElementById( \"city\" ).innerHTML;\n var state = document.getElementById( \"state\" ).innerHTML;\n var zip = document.getElementById( \"zip\" ).value;\n var phone = document.getElementById( \"phone\" ).value;\n \n // check if data is valid \n if ( !zipValid || !phoneValid )\n {\n // display error message\n document.getElementById( \"success\" ).innerHTML = \n \"Invalid data entered. Check form for more information\";\n } // end if\n else if ( ( first == \"\" ) || ( last == \"\" ) )\n {\n // display error message\n document.getElementById( \"success\").innerHTML = \n \"First Name and Last Name must have a value.\";\n } // end if\n else\n {\n // hide the form and show the addressbook\n document.getElementById( \"addEntry\" ).style.display = \"none\";\n document.getElementById( \"addressBook\" ).style.display = \"block\";\n\n // call the web service to insert data into the database\n callWebService( \"/addEntry/\" + first + \"/\" + last + \"/\" + street +\n \"/\" + city + \"/\" + state + \"/\" + zip + \"/\" + phone, parseData );\n } // end else\n} // end function saveForm","function setupDataForForm(){\n if(typeof(hotty) != \"undefined\"){\n $('#import_data').val(JSON.stringify(hotty.getData()));\n console.log(\"updating the data...\");\n }\n else{\n console.log(\"hotty isnt there, maybe just booting up!\");\n }\n }","saveData() {\n if (this.s.unavailable()) {\n return;\n }\n\n for (const val of this.dispField.items) {\n this.s.set(val, this.dispField.checked(val));\n }\n\n this.s.set(\"unit\", this.unitField.get());\n this.s.set(\"format\", this.formatField.get());\n this.s.set(\"sort\", this.sortableField.toArray());\n }","function clear_inputs() {\n\n\t\t\t\t$('.form-w').val(\"\");\n\t\t\t\t$('.form-b').val(\"\");\n\t\t\t\t$('.form-mf').val(\"\");\n\t\t\t\t$('.form-mt').val(\"\");\n\n\t\t\t\tlocalStorage.clear();\n\n\t\t\t}","function updateOutput4() {\n localStorage.setItem('info4', input_textarea4.value)\n}","function storeForm() {\n\t\t\n\t\t$( \".sessioninput\" ).each(function( index ) {\n\t\t\t\n\t\t\twindow.localStorage.setItem($(this).attr(\"name\"), $(this).val());\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\tstartSession()\n\t}","function saveAndExit() {\r\n\tvar form = document.getElementById( \"hiddenfieldform\" );\r\n\thidden.value = experior.getText(form);\r\n}","autofill() {\n\t\tif (localStorage.getItem(\"lastname\")) {\n\t\t\t$(\"#lastName\").val(localStorage.getItem(\"lastname\"));\n\t\t\t$(\"#firstName\").val(localStorage.getItem(\"firstName\"));\n\t\t}\n\t}","function load() {\n let savedNotes = localStorage.getItem(\"dataNotes\");\n let savedTitle = localStorage.getItem(\"dataTitle\");\n if (savedNotes) {\n notes.value = savedNotes;\n }\n if (savedTitle) {\n notesTitle.value = savedTitle;\n headerTitleChange()\n }\n}","function processForm() {\n\n // get the entered user name from the input\n var enteredUsername = $('input').val();\n localStorage.setItem('username', enteredUsername);\n database.ref('users/'+ enteredUsername).set({\n \tusername: enteredUsername\n \t});\n \n finishedCurrentView();\n \t//window.location.href = '/app/davidToLife';\n $('.username').html(enteredUsername);\n\n return false;\n}","function Finish(){\r\n//If there's a form, fill it out and submit it\r\n\tif (document.store != null){\r\n\t\tFrm = document.store;\r\n\t\tFrm.starttime.value = HPNStartTime;\r\n\t\tFrm.endtime.value = (new Date()).getTime();\r\n\t\tFrm.mark.value = Score;\r\n\t\tFrm.detail.value = Detail;\r\n\t\tFrm.submit();\r\n\t}\r\n}","function employee_Set_FormData(data)\r\n\t{\r\n\t\t$(\"#employee_title\").val(data.title);\r\n\t\t$(\"#employee_fullName\").val(data.fullName);\r\n\t\t$(\"#employee_surname\").val(data.surname);\r\n\t\t$(\"#employee_fatherName\").val(data.fatherName);\r\n\t\t$(\"#employee_gender\").val(data.gender);\r\n\t\t$(\"#employee_email\").val(data.email);\r\n\t\t$(\"#employee_maritalStatus\").val(data.maritalStatus);\r\n\t\t$(\"#employee_postalAddress\").val(data.postalAddress);\r\n\t\t$(\"#employee_nic\").val(data.nic);\r\n\t\t$(\"#employee_mobile\").val(data.mobile);\r\n\t\t$(\"#employee_phone\").val(data.phone);\r\n\t\t$(\"#employee_religion\").val(data.religion);\r\n\t\t$(\"#employee_department\").val(data.departmentId);\r\n\t\t$(\"#employee_employeeId\").val(data.employeeId);\r\n\t\t$(\"#employee_date\").val(data.dob);\r\n\t\tpageAniamateScroll();\r\n\t}","function resetPresidentForm(){\n consecuenciasField.setValue('');\n descripcionField.setValue('');\n }","function clearData(){\n\tdocument.getElementById('userName').value = \"\";\n\tdocument.getElementById('jobTitle').value = \"\";\n\tdocument.getElementById('license').value = \"\";\n\tdocument.getElementById('cellPhone').value = \"\";\n\tdocument.getElementById('phone').value = \"\";\n\tdocument.getElementById('date_from').value = \"\";\n\tdocument.getElementById('date_end').value = \"\";\n}","function saveHelper(){\n\tvar occupants = document.getElementById(\"occupantInput\");\n\tif(occupants)\n\t{\n\t\tselected_furn.totalOccupants = occupants.value;\n\t}\n\tselected_marker.setOpacity(1);\n\tselected_furn.seat_places = temp_seat_places;\n\t\n\tif(temp_wb != [])\n\t{\n\t\tselected_furn.whiteboard = temp_wb;\n\t}\n\t\n \tmymap.closePopup();\n}","function remove(){\n document.getElementById('textField').value = \"\";\n localStorage.removeItem('text');\n\n document.getElementById('emailField').value = \"\";\n localStorage.removeItem('email');\n\n\n document.getElementById('numField').value = \"\";\n localStorage.removeItem('num');\n\n\n document.getElementById('areaField').value = \"\";\n localStorage.removeItem('area');\n\n alert('The Form Local Storage Data Is Terminated !!!')\n }","function startEdit() {\n document.getElementById(\"summaryDetails\").style.display=\"none\"\n document.getElementById(\"editFields\").style.display=\"block\"\n document.getElementById(\"fNameFieldEdit\").value=firstName\n document.getElementById(\"lNameFieldEdit\").value=lastName\n let giftField = document.getElementById(\"giftEdit\")\n for (let i = 0; i < giftField.options.length; i++) {\n if (giftField.options[i].text=== gift) {\n giftField.options[i].selected = true;\n break;\n }\n }\n document.getElementById(\"form1Edit\").value=occasion\n let surpriseField = document.getElementById(\"surpriseEdit\")\n for (let i = 0; i < surpriseField.options.length; i++) {\n if (surpriseField.options[i].text=== suprise) {\n surpriseField.options[i].selected = true;\n break;\n }\n }\n let typeField = document.getElementById(\"typeEdit\")\n for (let i = 0; i < typeField.options.length; i++) {\n if (typeField.options[i].text=== type) {\n typeField.options[i].selected = true;\n break;\n }\n }\n let numberMusiciansField = document.getElementById(\"numberMusiciansEdit\")\n for (let i = 0; i < numberMusiciansField.options.length; i++) {\n if (numberMusiciansField.options[i].text=== numberMusicians) {\n numberMusiciansField.options[i].selected = true;\n break;\n }\n }\n document.getElementById(\"date-time-fieldEdit\").value= dateService + \"T\" + timeService\n document.getElementById(\"address-line-fieldEdit\").value = address\n let cityField = document.getElementById(\"cityEdit\")\n for (let i = 0; i < cityField.options.length; i++) {\n if (cityField.options[i].text=== city) {\n cityField.options[i].selected = true;\n break;\n }\n}\n document.getElementById(\"zipEdit\").value = zip\n document.getElementById(\"offered-fieldEdit\").value = offered\n document.getElementById(\"phoneEdit\").value = number\n document.getElementById(\"emailEdit\").value = email\n document.getElementById(\"commentEdit\").value = comments\n}","function setInfo() {\n var name = document.querySelector(\"#name_form_student\");\n name.value = local_user.name;\n var account_number = document.querySelector(\"#no_cuenta_form_student\");\n account_number.value = local_user.num_account;\n var career = document.querySelector(\"#carrer_form_student\");\n career.value = local_user.career;\n var email = document.querySelector(\"#email_form_student\");\n email.value = local_user.email;\n var semester = document.querySelector(\"#semester_form_student\");\n semester.value = local_user.semester;\n\n}","function savedata(){\n var message = messageField.value;\n\n messagesRef.push({fieldName:'messageField', text:message});\n messageField.value = '';\n }","function saveResponses () { \t\n localStorage.setItem(\"name\", nameField.value); \t\n localStorage.setItem(\"email\", emailField.value); \t\n localStorage.setItem(\"feedback\", feedbackField.value); \n}","function load_data() {\n var input = document.getElementById(\"commentName\");\n var comm = document.getElementById(\"commentText\");\n\n input.value = localStorage.getItem('Name');\n comm.value = localStorage.getItem('Comment');\n}","function fread(){\n\tif(x.value == \"\"){\n\t\talert(\"Create a note first!!!\");\n\t}\n\telse if(document.Notes.note.value == \"\"){\n\t\talert(\"Type something!!!\");\n\t}\n\telse if(x.selectedIndex > s.length-1){\n\ts.push(document.Notes.note.value);\n\talert(\"Successfully saved\");\n\t}\n\telse {\n\t\ts[x.selectedIndex] = document.Notes.note.value;\n\t\talert(\"Successfully saved\");\n\t}\n}","function closeForm() {\n document.getElementById(\"author\").value = \"\";\n document.getElementById(\"title\").value = \"\";\n document.getElementById(\"pages\").value = \"\";\n document.getElementById(\"read\").checked = false;\n document.getElementById(\"notRead\").checked = true;\n document.getElementById(\"form\").style.display = \"none\";\n}","clearForm() {\n // clear any previous highlighted row\n this.clearPrevHighlight();\n // clear the inputs\n $(\"#item_id\").val(0);\n $(\"#item_title\").val(\"\");\n $(\"#item_author_first_name\").val(\"\");\n $(\"#item_author_surname\").val(\"\");\n $(\"#item_year\").val(\"\");\n // disable buttons dependent on a table row having been clicked\n $(\"#btn_search\").prop(\"disabled\", true);\n $(\"#btn_add_item\").prop(\"disabled\", true);\n $(\"#btn_update_item\").prop(\"disabled\", true);\n $(\"#btn_delete_item\").prop(\"disabled\", true);\n // disable link to author page\n $(\"#link_current_author\").removeClass(\"text-primary\");\n $(\"#link_current_author\").addClass(\"text-muted\");\n // hide editions page\n $(\"#page_editions\").hide(\"slow\");\n }","function saveLocalStore(){\n for(i = 0; i < generalInfo.length; i++){\n var displayNow = ($(\"#inputEvent\"+generalInfo[i].display).val());\n var notesNow = generalInfo[i].notes;\n generalInfo[i].notes = displayNow;\n console.log(\"grabo vacio\");\n\n }\n localStorage.setItem(\"generalInfo\", JSON.stringify(generalInfo));\n }","function validateForm() {\r\n var namee = document.forms[\"myForm\"][\"fname\"].value;\r\n if (namee == \"\") {\r\n alert(\"Please let me know your name. (*゚∀゚*)\");\r\n return false;\r\n }\r\n // console.log(x);\r\n window.localStorage.setItem('username', namee);\r\n clearForm();\r\n clearHearts();\r\n startPage();\r\n }","function _qForm_saveFields(){\n\tvar expires = new Date(_c_dToday.getTime() + (_c_iExpiresIn * 86400000));\n\tvar strPackage = _createCookiePackage(this.getFields());\n\t_setCookie(\"qForm_\" + this._name + \"_\" + _c_strName, strPackage, expires);\n}","function updateOutput9() {\n localStorage.setItem('info9', input_textarea9.value)\n}","function updateOutput6() {\n localStorage.setItem('info6', input_textarea6.value)\n}","function checkLocalStorageData() {\n let email = localStorage.getItem('email');\n let firstName = localStorage.getItem('firstName');\n let lastName = localStorage.getItem('lastName');\n let textarea = localStorage.getItem('textarea');\n if (\n email != null &&\n firstName != null &&\n lastName != null &&\n textarea != null\n ) {\n $('#email').val(email);\n $('#firstName').val(firstName);\n $('#lastName').val(lastName);\n $('#taMessage').val(textarea);\n }\n}"],"string":"[\n \"function getForm() {\\n inputNombre.value = localStorage.getItem('nombre');\\n inputApellido.value = localStorage.getItem('apellido');\\n inputTel.value = localStorage.getItem('tel');\\n inputDir.value = localStorage.getItem('dir');\\n inputObs.value = localStorage.getItem('obs');\\n console.log('data loaded');\\n}\",\n \"function applyStaffDataChanges(){\\n var linecount = document.getElementById(\\\"linecount\\\").value;\\n var linecolor = document.getElementById(\\\"linecolor\\\").value;\\n var mode = document.getElementById(\\\"mode\\\").value;\\n \\n if(linecount && linecount != \\\"none\\\"){\\n currentStaff.linecount = linecount;\\n }\\n if(linecolor && linecolor != \\\"none\\\"){\\n currentStaff.linecolor = linecolor;\\n }\\n if(mode && mode != \\\"none\\\"){\\n currentStaff.mode = mode;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = staffDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function applyCurrentStaff(){\\n currentN = document.getElementById(\\\"staff\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = staffDataChangeForm();\\n}\",\n \"function copyStorageToForm() {\\n \\\"use strict\\\";\\n // Set chosen hair type\\n setFormHairType(sessionStorage.getItem(\\\"hair_type\\\"));\\n\\n // Set selected traits\\n setFormTraits(sessionStorage.getItem(\\\"traits\\\"));\\n}\",\n \"function setData() {\\n localStorage.setItem('name', username.value);\\n localStorage.setItem('email', email.value);\\n localStorage.setItem('city', city.value);\\n localStorage.setItem('organisation', organisation.value);\\n localStorage.setItem('contact', contact.value);\\n localStorage.setItem('message', message.value);\\n // Reset all the fields.\\n username.value = '';\\n email.value = '';\\n city.value = 'city';\\n organisation.value = '';\\n contact.value = '';\\n message.value = '';\\n\\n}\",\n \"fillForm() {\\n\\n if (localStorage.getItem(\\\"lastname\\\") !== undefined)\\n $(\\\"form\\\")[0].lastname.value = localStorage.getItem(\\\"lastname\\\");\\n\\n if (localStorage.getItem(\\\"firstname\\\") !== undefined)\\n $(\\\"form\\\")[0].firstname.value = localStorage.getItem(\\\"firstname\\\");\\n\\n }\",\n \"updateForm(data) {\\n\\t\\tthis.employeeName.value = data.name;\\n\\t\\tthis.employeeAge.value = data.age;\\n\\t\\tthis.employeePosition.value = data.position;\\n\\t\\tthis.employeeSalary.value = data.salary;\\n\\t}\",\n \"function getFormData() {\\n // User Info Obj\\n const user = {\\n netID: document.getElementById('netID').value,\\n contact: document.getElementById('contact').value,\\n location: document.getElementById('location').value,\\n description: document.getElementById('issue').value,\\n team: document.getElementById('team').value,\\n manager: document.getElementById('managerId').value\\n };\\n // Get priority level selection RadioButtons\\n const rbs = document.querySelectorAll('input[name=radioBtn]');\\n let selectedValue;\\n for (const rb of rbs) {\\n if (rb.checked) {\\n selectedValue = rb.value;\\n break;\\n }\\n }\\n /*Get category*/\\n const category = {\\n cat: document.getElementById('cat').value,\\n sub: document.getElementById('sub').value\\n };\\n //Formatting for txt file.\\n const userData =\\n 'NetID: ' +\\n user.netID +\\n '\\\\n' +\\n '\\\\n' +\\n 'Contact: ' +\\n user.contact +\\n '\\\\n' +\\n '\\\\n' +\\n 'Location: ' +\\n user.location +\\n '\\\\n' +\\n '\\\\n' +\\n 'Priority: ' +\\n selectedValue +\\n '\\\\n' +\\n '\\\\n' +\\n 'Category: ' +\\n category.cat +\\n '\\\\n' +\\n '\\\\n' +\\n 'Sub-Category: ' +\\n category.sub +\\n '\\\\n' +\\n '\\\\n' +\\n 'Assignment Team: ' +\\n user.team +\\n '\\\\n' +\\n '\\\\n' +\\n 'Group Manager Contact: ' +\\n user.manager +\\n '\\\\n' +\\n '\\\\n' +\\n 'Full Description: ' +\\n '\\\\n' +\\n user.description;\\n //print date\\n const today = new Date();\\n //save BLOB to txt file\\n const blob = new Blob([userData], { type: 'text/plain;charset=utf-8' });\\n saveAs(blob, today);\\n //refresh page for new form\\n location.reload();\\n}\",\n \"function saveManageBusinessFields() {\\n // Save business details in local Storage\\n var businessName = document.getElementById('businessName').value;\\n if (businessName != null) {\\n localStorage.setItem('businessName', businessName);\\n }\\n\\n var businessPhone = document.getElementById('businessPhone').value;\\n if (businessPhone != null) {\\n localStorage.setItem('businessPhone', businessPhone);\\n }\\n\\n var businessAddress = document.getElementById('set-address').value;\\n if (businessAddress != null) {\\n localStorage.setItem('businessAddress', businessAddress);\\n }\\n}\",\n \"function initialForm() {\\n\\n\\n var date = document.getElementById(\\\"date\\\").value\\n var name = document.getElementById(\\\"name\\\").value\\n var address = document.getElementById(\\\"address\\\").value\\n var datebirth = document.getElementById(\\\"datebirth\\\").value\\n var sex = document.getElementById(\\\"sex\\\").value\\n var civil = document.getElementById(\\\"civil\\\").value\\n var cp = document.getElementById(\\\"cp\\\").value\\n var tel = document.getElementById(\\\"tel\\\").value\\n var cel = document.getElementById(\\\"cel\\\").value\\n var mail = document.getElementById(\\\"mail\\\").value\\n // \\n document.getElementById(\\\"message\\\").innerHTML = \\\"Sus datos fueron guardados correctamente. Si necesita actualizar su información, por favor llene el formulario nuevamente o contacte al administrador.\\\"\\n\\n cleanFormInitial()\\n addFormToStorage(date, name, address, datebirth, sex, civil, cp, tel, cel, mail)\\n\\n\\n}\",\n \"function applyClefDataChanges(){\\n var line = document.getElementById(\\\"line\\\").value;\\n var shape = document.getElementById(\\\"shape\\\").value;\\n \\n if(line && line != \\\"none\\\"){\\n currentStaff.clefs[currentClefIndex].line = line;\\n }\\n if(shape && shape != \\\"none\\\"){\\n currentStaffs.clefs[currentClefIndex].shape = shape;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = clefDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function saveState() {\\n const state = {\\n cf: cfSelect.value,\\n gf: gfSelect.value,\\n mf: mfSelect.value,\\n am: amSelect.value,\\n };\\n localStorage.setItem('collecting_together_form', JSON.stringify(state));\\n }\",\n \"resetFormContent() {\\n ContentUtils.updateElementContent(\\\"delimiter\\\", \\\"?\\\");\\n ContentUtils.updateElementContent(\\\"hasHeaderRow\\\", \\\"?\\\");\\n ContentUtils.updateElementContent(\\\"fileSize\\\", 0);\\n ContentUtils.updateElementContent(\\\"totalRecords\\\", 0);\\n ContentUtils.updateElementContent(\\\"badRecords\\\", 0);\\n ContentUtils.updateElementContent(\\\"inputCsvTable\\\", \\\"\\\");\\n ContentUtils.updateElementContent(\\\"badCsvTable\\\", \\\"\\\");\\n ContentUtils.updateElementContent(\\\"interpolatedCsvTable\\\", \\\"\\\");\\n ContentUtils.updateElementContent(\\\"invalidData\\\", \\\"\\\");\\n }\",\n \"function toChangeClefData(){\\n currentClefIndex = 0;\\n document.getElementById(\\\"input\\\").innerHTML = clefDataChangeForm();\\n}\",\n \"function fetchStorage() {\\n txtFName.value = localStorage.getItem(\\\"input-name\\\");\\n txtLName.value = localStorage.getItem(\\\"input-lastname\\\");\\n txtPhone.value = localStorage.getItem(\\\"input-phone\\\");\\n txtEmail.value = localStorage.getItem(\\\"input-email\\\");\\n }\",\n \"updateFormFromStorage() {\\n // check for data if none return\\n let data = localStorage.getItem('formData');\\n if (!data) {\\n this.setTransactions([]);\\n // Looks like new user without data show tips modal.\\n setTimeout(() => $('#tipsModal').modal(), 10000);\\n return;\\n }\\n this.setForm(JSON.parse(data));\\n // set the interface (transactions) options on the form\\n this.setFormTransactions(JSON.parse(localStorage.getItem('transactions')));\\n }\",\n \"function toChangeStaffData(){\\n if(staffs.length > 0){\\n currentN = staffs[0].n;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = staffDataChangeForm();\\n}\",\n \"function storeForm() {\\n /*jshint validthis:true */\\n var form = $(this);\\n var formId = form[0].id;\\n if (!formId) return;\\n var formJSON = app.formToData(form);\\n if (!formJSON) return;\\n app.formStoreData(formId, formJSON);\\n form.trigger('store form:storedata', {data: formJSON});\\n }\",\n \"function storeForm() {\\n\\t /*jshint validthis:true */\\n\\t var form = $(this);\\n\\t var formId = form[0].id;\\n\\t if (!formId) return;\\n\\t var formJSON = app.formToData(form);\\n\\t if (!formJSON) return;\\n\\t app.formStoreData(formId, formJSON);\\n\\t form.trigger('store form:storedata', {data: formJSON});\\n\\t }\",\n \"function clear_form_data() {\\n var item_area=$('#item_area');\\n console.log(\\\"Clear all data\\\");\\n item_area.val(\\\"\\\");\\n $('#change_course_dis_text').val(\\\"\\\");\\n $('#course_name_text').val(\\\"\\\");\\n $('#course_dis_text').val(\\\"\\\");\\n\\n }\",\n \"function prefill_form(){\\ndocument.getElementById(\\\"ref\\\").value = localStorage.job1Ref;\\ndocument.getElementById(\\\"jobtitle\\\").value = localStorage.joblTitles;\\n//alert(localStorage.job1Ref);\\n}\",\n \"function saveForm() {\\n return saveCompanySite()\\n .then(saveInternalNumbers);\\n }\",\n \"function fillFormfromLocal(saveInfoLocalStorage){\\n const inputArray = document.querySelectorAll('input');\\n \\n for(let inputName of inputArray){\\n if(saveInfoLocalStorage[inputName.name] !== undefined){\\n inputName.value = saveInfoLocalStorage[inputName.name]\\n } else {\\n inputName.value = '';\\n }\\n }\\n}\",\n \"function updatePersistentDataForm(iniobj) {\\r\\n \\\"use strict\\\";\\r\\n document.getElementById(\\\"ini-name\\\").value = iniobj.General.Name;\\r\\n document.getElementById(\\\"ini-location\\\").value = parseInt(iniobj.General.Room.trim());\\r\\n document.getElementById(\\\"ini-kills\\\").value = parseInt(iniobj.General.Kills.trim());\\r\\n document.getElementById(\\\"ini-love\\\").value = parseInt(iniobj.General.Love.trim());\\r\\n if (iniobj.FFFFF) {\\r\\n if (iniobj.FFFFF.F) {\\r\\n if (parseInt(iniobj.FFFFF.F.trim()) === 1) {\\r\\n document.getElementById(\\\"ini-omega-flowey-trapped\\\").checked = true;\\r\\n } else {\\r\\n document.getElementById(\\\"ini-omega-flowey-trapped\\\").checked = false;\\r\\n }\\r\\n }\\r\\n if (iniobj.FFFFF.P) {\\r\\n document.getElementById(\\\"ini-omega-flowey-soul\\\").value = parseInt(iniobj.FFFFF.P.trim());\\r\\n }\\r\\n if (iniobj.FFFFF.D) {\\r\\n document.getElementById(\\\"ini-omega-flowey-deaths\\\").value = parseInt(iniobj.FFFFF.D.trim());\\r\\n }\\r\\n } else {\\r\\n document.getElementById(\\\"ini-omega-flowey-trapped\\\").checked = false;\\r\\n }\\r\\n if (iniobj.reset) {\\r\\n if (iniobj.reset.s_key) {\\r\\n if (parseInt(iniobj.reset.s_key.trim()) === 1) {\\r\\n document.getElementById(\\\"ini-dodged-all-special-thanks\\\").checked = true;\\r\\n } else {\\r\\n document.getElementById(\\\"ini-dodged-all-special-thanks\\\").checked = false;\\r\\n }\\r\\n }\\r\\n } else {\\r\\n document.getElementById(\\\"ini-dodged-all-special-thanks\\\").checked = false;\\r\\n }\\r\\n if (iniobj.fun) {\\r\\n document.getElementById(\\\"ini-fun\\\").value = parseInt(iniobj.fun.trim());\\r\\n }\\r\\n}\",\n \"fillForm(data) {\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"function displayData() {\\n\\n if (localStorage.getItem(\\\"formData\\\") != null){\\n\\n let values = JSON.parse(localStorage.getItem(\\\"formData\\\"));\\n \\n nameInput.value = values[values.length-1].inpName;\\n emailInput.value = values[values.length-1].inpEmail;\\n phoneInput.value = values[values.length-1].inpPhone;\\n messageInput.value = values[values.length-1].inpText;\\n }\\n \\n}\",\n \"function storeData(){\\r\\n\\t\\tvar id \\t\\t\\t\\t= Math.floor(Math.random()*100000000001);\\r\\n\\t\\t//Gather up all our form field values and store in an object\\r\\n\\t\\t//Object properties contain an array with the form label and input value\\r\\n\\t\\tgetSelectedRadio();\\r\\n\\t\\tvar item \\t\\t\\t\\t= {};\\r\\n\\t\\t\\titem.comicTitle\\t\\t= [\\\"Title of Comic:\\\", e('comicTitle').value];\\r\\n\\t\\t\\titem.seriesTitle\\t= [\\\"Title of Series:\\\", e('seriesTitle').value];\\r\\n\\t\\t\\titem.issueNum\\t\\t= [\\\"Issue Number:\\\", e('issueNum').value];\\r\\n\\t\\t\\titem.dateReleased\\t= [\\\"Date Released:\\\", e('dateReleased').value];\\r\\n\\t\\t\\titem.publisher\\t\\t= [\\\"Publisher:\\\", e('publisher').value];\\r\\n\\t\\t\\titem.rateIssue\\t\\t= [\\\"Rate of Issue:\\\", e('rateIssue').value];\\r\\n\\t\\t\\titem.genre \\t\\t\\t= [\\\"Genre:\\\", e('genre').value];\\r\\n\\t\\t\\titem.illStyle\\t\\t= [\\\"Illustration Style:\\\", styleValue];\\r\\n\\t\\t\\titem.comments\\t\\t= [\\\"Comments:\\\", e('comments').value];\\r\\n\\t\\t//Save data into Local Storage: Use Stringify to convert our object to a string\\r\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\r\\n\\t\\talert(\\\"Comic saved to index!\\\");\\r\\n\\t}\",\n \"save() {\\n try {\\n this._toggleSaveThrobber();\\n this._readFromForm();\\n this.dao.save();\\n\\n // make sure the edit input is showing the correct id, reload data from server\\n document.getElementById('edit_id').value = this.dao.id;\\n this.read();\\n \\n } catch(e) {\\n console.log(e);\\n alert(e);\\n }\\n this._toggleSaveThrobber();\\n }\",\n \"function updateOutput7() {\\n localStorage.setItem('info7', input_textarea7.value)\\n}\",\n \"function saveInformation () {\\n\\t\\t numOfCreditFun();\\n\\t\\t bestMthContFun();\\n\\t\\t var info = {};\\n\\t\\t \\tinfo.major = [\\\"Major Choice:\\\", $('#departments').val()];\\n\\t\\t info.cName = [\\\"Course Name:\\\", $('#courseName').val()];\\n\\t\\t info.cSection = [\\\"Course Section:\\\", $('#courseSection').val()];\\n\\t\\t info.topicAndSec = [\\\"Topic and Section:\\\", $('#topicAndSection').val()];\\n\\t\\t info.todaysDate = [\\\"Today's Date:\\\", $('#todaysDate').val];\\n\\t\\t info.dueDate = [\\\"Due Date:\\\", $('#dueDate').val()];\\n\\t\\t info.weeksOfClass = [\\\"Is the Class on Campus or Online:\\\", $('#weeksOfClass').val()];\\n\\t\\t info.slideValue = [\\\"Due Date:\\\", $('#weeksOfClass').val()];\\n\\t\\t info.courseNumCredits = [\\\"Number of Credits:\\\", numOfCreditFun];\\n\\t\\t info.teacherName = [\\\"Teacher Name:\\\", $('#teacherName').val()];\\n\\t\\t info.teacherEmail = [\\\"Teacher Email:\\\", $('#teacherEmail').val()];\\n\\t\\t info.teacherPhone = [\\\"Teacher Phone:\\\", $('#teacherPhone').val()];\\n\\t\\t info.bestMthCont = [\\\"Best Method To Get In Contact:\\\", bestMthContFun];\\n\\t\\t info.note = [\\\"Note Section:\\\", $('#noteSection').val()];\\n\\t\\t //localStorage.setItem(id, JSON.stringify(info));\\n\\t\\t couchDBSave(info);\\n\\t\\t}\",\n \"function showUserForm() {\\n try {\\n var user = JSON.parse(localStorage.getItem(\\\"user\\\"));\\n } catch(e) {\\n if (window.navigator.vendor === \\\"Google Inc.\\\") {\\n if (e === DOMException.QUOTA_EXCEEDED_ERR) {\\n alert(\\\"Error: Saving to local storage\\\");\\n }\\n } else if (e === QUOTA_EXCEEDED_ERR) {\\n alert(\\\"Error: Saving to local storage.\\\");\\n }\\n \\n console.log(e);\\n }\\n \\n if(user != null) {\\n $(\\\"#FirstName\\\").val(user.FirstName);\\n $(\\\"#LastName\\\").val(user.LastName);\\n $(\\\"#DOB\\\").val(user.DOB);\\n $(\\\"#changePassword\\\").val(user.NewPassword);\\n $(\\\"#height\\\").val(user.Height);\\n $(\\\"#weight\\\").val(user.Weight);\\n }\\n }\",\n \"function setSavedState() {\\n const state = JSON.parse(localStorage.getItem('collecting_together_form'));\\n if (state) {\\n cfSelect.value = state.cf ? state.cf : '';\\n gfSelect.value = state.gf ? state.gf : '';\\n mfSelect.value = state.mf ? state.mf : '';\\n amSelect.value = state.am ? state.am : '';\\n }\\n }\",\n \"function savedData() {\\n var i1 = localStorage.getItem('inputText1');\\n inOutText1.text(i1);\\n var i2 = localStorage.getItem('inputText2');\\n inOutText2.text(i2);\\n var i3 = localStorage.getItem('inputText3');\\n inOutText3.text(i3);\\n var i4 = localStorage.getItem('inputText4');\\n inOutText4.text(i4);\\n var i5 = localStorage.getItem('inputText5');\\n inOutText5.text(i5);\\n var i6 = localStorage.getItem('inputText6');\\n inOutText6.text(i6);\\n var i7 = localStorage.getItem('inputText7');\\n inOutText7.text(i7);\\n var i8 = localStorage.getItem('inputText8');\\n inOutText8.text(i8);\\n var i9 = localStorage.getItem('inputText9');\\n inOutText9.text(i9);\\n $('#clear').on(\\\"click\\\", function () {\\n localStorage.clear();\\n });\\n\\n }\",\n \"function saveData()\\n{\\n\\t\\\"use strict\\\";\\n\\n\\n\\tvar currentDate = new Date();\\n\\tvar year, month, day;\\n\\tyear = currentDate.getFullYear();\\n\\t\\n\\tif (currentDate.getMonth().toString().length === 1)\\n\\t{\\n\\t\\tmonth = \\\"0\\\" + currentDate.getMonth().toString(); \\n\\t}\\n\\telse\\n\\t{\\n\\t\\tmonth = currentDate.getMonth().toString();\\n\\t}\\n\\t\\n\\tif (currentDate.getDate().toString().length === 1)\\n\\t{\\n\\t\\tday = \\\"0\\\" + currentDate.getDate().toString(); \\n\\t}\\n\\telse\\n\\t{\\n\\t\\tday = currentDate.getDate().toString();\\n\\t}\\n\\t\\n\\tcreationDate = year + month + day;\\n\\talert(creationDate);\\n\\tcreationTime = currentDate.getHours() + \\\":\\\" + currentDate.getMinutes();\\n\\n\\t\\n\\ttitle = document.getElementById(\\\"txtTitle\\\").value;\\n content = document.getElementById(\\\"txtContent\\\").value;\\n\\tteacherName = document.getElementById(\\\"txtTeacherName\\\").value;\\n\\tsubject = document.getElementById(\\\"txtSubject\\\").value;\\n\\t\\n\\talert(\\\"Your information has been saved\\\");\\n\\n\\tdeadline = document.getElementById(\\\"txtDeadline\\\").value;\\n\\n\\n\\t// Add code to store rest of input in variables here\\n \\n// Store the information in localstorage\\n localStorage.setItem(\\\"title\\\", title);\\n localStorage.setItem(\\\"content\\\", content);\\n\\tlocalStorage.setItem(\\\"teacherName\\\", teacherName);\\n\\n \\n //alert to inform user data has been saved.\\n\\n}\",\n \"function saveObject(form) {\\n /// know the object\\n var which = form.dataset.which;\\n // save values as vars\\n let objectName = document.getElementById('' + which + 'Name');\\n /// preparing form final validation\\n //// checking what object to save in DB\\n switch (which) {\\n case 'student':\\n /// gets all checkBox of courses selected to add them to Deals Table.\\n var selectedCoursesArray = [];\\n var myCheckBoxContChildren = $('#' + which + 'Courses').children();\\n for (var i = 0; i < myCheckBoxContChildren.length; i++) {\\n if (myCheckBoxContChildren[i].checked) {\\n selectedCoursesArray.push(myCheckBoxContChildren[i].dataset.courseid)\\n }\\n }\\n // phone and email validations happened onblur events\\n var objectPhone = document.getElementById('' + which + 'Phone');\\n var objectEmail = document.getElementById('' + which + 'Email');\\n var formOk = (objectName.value.length > 0 && letSaveEmail && letSavePhone);\\n break;\\n case 'course':\\n var objectDescription = document.getElementById('' + which + 'Description');\\n ///Course name existence checked ontop on blur event.\\n var formOk = (courseName.value.length > 0 && letSaveCName && objectDescription.value.length > 0);\\n break;\\n case 'administator':\\n // phone and email validations happened onblur events\\n var objectPhone = document.getElementById('' + which + 'Phone');\\n var objectEmail = document.getElementById('' + which + 'Email');\\n if (changePassword) {\\n /// determine first if user clicked on change password button\\n var objectPassword = document.getElementById('' + which + 'Password').value;\\n ///add case\\n if (objectPassword.length >= 4) {\\n //letSavePass stays true\\n $('#passErrMsg').hide();\\n $('#passErrMsg').empty();\\n /// edit case\\n if (letSavePass === null) {\\n ///null happens only in edit case: if no request to change its still a null.\\n letSavePass = false;\\n }\\n ;\\n } else {\\n ///err.. password is too short\\n $('#passErrMsg').html(\\\"password is too short-minimum length: 4 digits.\\\");\\n $('#passErrMsg').show();\\n }\\n ;\\n }\\n ;\\n var objectPassword = document.getElementById('' + which + 'Password');\\n var objectRole = document.getElementById('beautifulSelect');\\n if (letSavePass === null) {\\n //edit case\\n if (changePassword) {\\n //need to add password.\\n var formOk = (objectName.value.length > 0 && $('#' + which + 'Password').val().length >= 4 && letSaveEmail && letSavePhone && letAddRole);\\n\\n } else {\\n //no need to add password.\\n var formOk = (objectName.value.length > 0 && letSaveEmail && letSavePhone && letAddRole);\\n }\\n } else if (letSavePass === false || letSavePass === true) {\\n // need to add password.\\n var formOk = (objectName.value.length > 0 && $('#' + which + 'Password').val().length >= 4 && letSaveEmail && letSavePhone && letAddRole);\\n }\\n ;\\n break;\\n }\\n ;\\n let addingSucsMsg = document.getElementById('addingSucsMsg');\\n let addingErrMsg = document.getElementById('addingErrMsg');\\n addingSucsMsg.style.display = \\\"none\\\";\\n //// make sure didn't upload any wrong type of image\\n if ((letSaveImage) || letSaveImage === null) {\\n ////\\n ///// make sure name is set and email is in the right format.\\n if (formOk) {\\n addingErrMsg.innerHTML = \\\"\\\";\\n addingErrMsg.style.display = \\\"none\\\";\\n ////\\n /// last modifying before calling controller.\\n var formData = new FormData();\\n formData.append('name', objectName.value);\\n /// modifying depends on which object\\n switch (which) {\\n case 'student':\\n formData.append('email', objectEmail.value);\\n formData.append('phone', objectPhone.value.split('-').join(''));\\n formData.append('selectedCourses', JSON.stringify(selectedCoursesArray));\\n formData.append('addStudent', null);\\n break;\\n case 'course':\\n formData.append('description', objectDescription.value);\\n formData.append('addCourse', null);\\n break;\\n case 'administator':\\n formData.append('email', objectEmail.value);\\n formData.append('phone', objectPhone.value.split('-').join(''));\\n if (!(letSavePass === null)) {\\n ///user want to update password\\n formData.append('password', objectPassword.value);\\n } else {\\n //no change needed\\n formData.append('password', \\\"no\\\");\\n }\\n ;\\n formData.append('role', objectRole.value);\\n formData.append('addAdministator', null);\\n break;\\n }\\n ;\\n //// if chose to not use image - give him default image\\n if (letSaveImage === null) {\\n formData.append('image', 'useDefault');\\n } else {\\n //// user uploaded an image\\n let fileSelect = document.getElementById('' + which + 'Image');\\n let file = fileSelect.files[0];\\n //// name is going to be student_id for future uses..\\n let filename = '.jpg';\\n formData.append('image', file, filename);\\n }\\n ;\\n // use hidden\\n var hidden = $('#hiddenInput')[0];\\n var what = hidden.dataset.what;\\n //check what we are doing right now.\\n switch (what) {\\n case 'add':\\n //// calling XHR post Function. for adding new object\\n XHRcall(formData, which);\\n break;\\n case 'edit':\\n // gather data about the user and send it along with form\\n let who = hidden.dataset.who;\\n formData.append('objectID', who);\\n formData.append('edit', null);\\n setTimeout(() => {\\n saveNUpdate(formData, which);\\n }, 50);\\n if (($('#existingImageOpinion')[0].checked)) {\\n removeExistingImage(who, which);\\n }\\n ;\\n break;\\n }\\n ;\\n\\n } else {\\n ///// not everything is as requested.\\n addingErrMsg.innerHTML = \\\"Some of the required fields are empty or not as requested.\\\";\\n addingErrMsg.style.display = \\\"block\\\";\\n /// wait 4 seconds, let this error gone away.\\n setTimeout(function () {\\n addingErrMsg.style.display = \\\"none\\\";\\n }, 4000)\\n }\\n }\\n ;\\n}\",\n \"function applyCurrentClef(){\\n currentClefIndex = document.getElementById(\\\"clef\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = clefDataChangeForm();\\n}\",\n \"fillForm ( data ) {\\n this.title.value = data.title;\\n this.body.value = data.body;\\n this.id.value = data.id;\\n\\n // change form state\\n this.changeFormState( \\\"edit\\\" )\\n\\n }\",\n \"function clean() {\\r\\n document.form.textview.value = \\\"\\\";\\r\\n}\",\n \"fillForm(data){\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"_readFromForm() {\\n this.dao.citation_id = document.getElementById('citation_id').value;\\n this.dao.ott_id = document.getElementById('ott_id').value;\\n this.dao.background_noise_in_decibel = document.getElementById('background_noise_in_decibel').value;\\n this.dao.calibration = document.getElementById('calibration').value;\\n this.dao.distance_to_sound_source_in_meter = document.getElementById('distance_to_sound_source_in_meter').value;\\n this.dao.facility_id = document.getElementById('facility_id').value;\\n this.dao.latitude_in_decimal_degree = document.getElementById('latitude_in_decimal_degree').value;\\n this.dao.longitude_in_decimal_degree = document.getElementById('longitude_in_decimal_degree').value;\\n this.dao.measurement_method_id = document.getElementById('measurement_method_id').value;\\n this.dao.measurement_type = document.getElementById('measurement_type').value;\\n this.dao.medium = document.getElementById('medium').value;\\n this.dao.number_of_measurements = document.getElementById('number_of_measurements').value;\\n this.dao.position_first_electrode = document.getElementById('position_first_electrode').value;\\n this.dao.position_second_electrode = document.getElementById('position_second_electrode').value;\\n this.dao.position_third_electrode = document.getElementById('position_third_electrode').value;\\n this.dao.position_of_animal = document.getElementById('position_of_animal').value;\\n this.dao.sedated = document.getElementById('sedated').value;\\n this.dao.sedation_details = document.getElementById('sedation_details').value;\\n this.dao.test_environment_description = document.getElementById('test_environment_description').value;\\n this.dao.testtone_form_method_id = document.getElementById('testtone_form_method_id').value;\\n this.dao.testtone_presentation_method_constants = document.getElementById('testtone_presentation_method_constants').value;\\n this.dao.testtone_presentation_sound_form = document.getElementById('testtone_presentation_sound_form').value;\\n this.dao.testtone_presentation_staircase = document.getElementById('testtone_presentation_staircase').value;\\n this.dao.threshold_determination_method = document.getElementById('threshold_determination_method').value;\\n this.dao.year_of_experiment_start = document.getElementById('year_of_experiment_start').value;\\n this.dao.year_of_experiment_end = document.getElementById('year_of_experiment_end').value;\\n }\",\n \"function clearFormContent() {\\n $(\\\"#formOrgList\\\").empty();\\n Organizations.length = 0;\\n // Reset the name field\\n clearDetailContent();\\n currentOrg = undefined;\\n }\",\n \"function clearFormContent() {\\n $(\\\"#formOrgList\\\").empty();\\n Organizations.length = 0;\\n // Reset the name field\\n clearDetailContent();\\n currentOrg = undefined;\\n }\",\n \"function saveLocalStorage() {\\n localStorage['mainText'] = text_area.value;\\n localStorage['excText'] = excludeWord.value;\\n localStorage['percentReplacement'] = percentReplSlider.value;\\n localStorage['excludePronouns'] = chkPronouns.checked;\\n localStorage['excludeHyphenated'] = chkHyphens.checked;\\n localStorage['excludeConjunctions'] = chkConjunctions.checked;\\n localStorage['currReplacement'] = currReplacement;\\n localStorage['chkMultiWord'] = chkMultiWord.checked;\\n localStorage['chkNoRepeat'] = chkNoRepeat.checked;\\n}\",\n \"function storeForm() {\\n /*jshint validthis:true */\\n var form = $(this);\\n var formId = form[0].id;\\n if (!formId) return;\\n var formJSON = app.formToJSON(form);\\n if (!formJSON) return;\\n app.formStoreData(formId, formJSON);\\n form.trigger('store', {\\n data: formJSON\\n });\\n }\",\n \"function restore_inputs () {\\n\\n\\t\\t\\t\\tparse_variables();\\n\\n\\t\\t\\t\\t$('.form-w').val(W);\\n\\t\\t\\t\\t$('.form-b').val(B);\\n\\t\\t\\t\\t$('.form-mf').val(Mf);\\n\\t\\t\\t\\t$('.form-mt').val(Mt);\\n\\n\\t\\t\\t}\",\n \"function storeForm() {\\n /*jshint validthis:true */\\n var form = $(this);\\n var formId = form[0].id;\\n if (!formId) return;\\n var formJSON = app.formToJSON(form);\\n if (!formJSON) return;\\n app.formStoreData(formId, formJSON);\\n form.trigger('store', {data: formJSON});\\n }\",\n \"function submitData(){\\r\\n localStorage.clear();\\r\\n setFinalData(finalData => [...finalData, userData]);\\r\\n setUserData('');\\r\\n setStep(4);\\r\\n onSubmitRegister();\\r\\n }\",\n \"function save() {\\n $editors.find('.text').each(function () {\\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\\n });\\n }\",\n \"function getActivitesData() {\\n let oldActivites = JSON.parse(localStorage.getItem(\\\"Activites\\\")) || [];\\n let ActivitesId = localStorage.length;\\n let ActivitesTitle = document.getElementById(\\\"Activitestitle\\\").value.trim();\\n let dataForm = document.getElementById(\\\"Activitesmyform\\\");\\n let ActivitesDate = document.getElementById(\\\"date\\\").value;\\n let ActivitesDataForm = (dataForm.elements[\\\"ActivitesmyTextArea\\\"].value =\\n window.frames[\\\"ActivitesrichTextField\\\"].document.body.textContent);\\n if (ActivitesTitle == \\\"\\\" && ActivitesDate == \\\"\\\" && ActivitesDataForm == \\\"\\\") {\\n let outputActivites = document.getElementById(\\\"outputActivites\\\");\\n outputActivites.className = \\\"bg-danger mt-3 text-white text-center p-2\\\";\\n outputActivites.innerHTML = \\\"

    Fill all input Please

    \\\";\\n } else {\\n let ActivFormData = new ActivitesformData(\\n ActivitesId,\\n ActivitesTitle,\\n ActivitesDate,\\n ActivitesDataForm,\\n ActivitesUploaded_image\\n );\\n oldActivites.push(ActivFormData);\\n localStorage.setItem(\\\"Activites\\\", JSON.stringify(oldActivites));\\n \\n }\\n}\",\n \"function clearForm (title, author, pages, read) {\\n title.value = \\\"\\\";\\n author.value = \\\"\\\";\\n pages.value = \\\"\\\";\\n read.checked = false;\\n}\",\n \"function uniPrograms_Clear_FromData()\\r\\n{\\r\\n\\tclearFields(\\\"uniProgram_form\\\");\\r\\n\\t//remove Delete Button\\r\\n\\tremove_child_Elements('uniPrograms-delete-btn');\\r\\n\\taddValidationClass('uniProgram_form', 'uni_program_data_upload_file', 'validate-required');\\r\\n}\",\n \"function toStaffs(){\\n document.getElementById(\\\"input\\\").innerHTML = staffForm();\\n}\",\n \"function doEdit(){\\n\\n\\n if(validation() == false)\\n return ;\\n\\n doEditInLocalstorage(prevli) ;\\n doEditInShowList(prevli) ;\\n\\n\\n /*********** Going back to again add Task Field ************/ \\n \\n document.getElementById(\\\"task\\\").value = \\\"\\\" ;\\n document.getElementById(\\\"editButton\\\").style.display = 'none' ;\\n document.getElementById(\\\"addButton\\\").style.display = 'block' ;\\n\\n /***************** End ***********************/\\n\\n\\n }\",\n \"function saveMentorForm(e) {\\n e.preventDefault();\\n var category = document.getElementById(\\\"category\\\").value;\\n var paragraph = document.getElementById(\\\"paragraph\\\").value;\\n saveMentor(category, currentMentor.fullName, currentMentor.job, currentMentor.company, paragraph, currentMentor.img, currentMentor.mail, currentMentor.linkedinLink, currentMentor.linkedinID);\\n}\",\n \"function loadExistingFormValues() {\\n\\n // lesion has been found, load data and fill out form\\n if( meCompletedLesions[meCurrentLesion] ) {\\n\\tloadExistingQuestion4();\\n\\tloadExistingQuestion5();\\n\\tloadExistingQuestion6();\\n\\tloadExistingQuestion7();\\n\\tloadExistingQuestion8();\\n\\tloadExistingQuestion9();\\n\\tloadExistingQuestion10();\\n loadExistingQuestion11();\\n loadExistingComment();\\n showSaveButton();\\n }\\n}\",\n \"save () {\\n\\n // Validate\\n if (this.checkValidity()) {\\n\\n // Collect input\\n this.info.item = this.collectInput();\\n\\n // Show modal\\n this.modal.show();\\n }\\n }\",\n \"inputData() {\\n return (e) => {\\n e.persist();\\n var reader = new FileReader();\\n const self = this;\\n reader.onload = function(e) {\\n self.parseInputData(reader.result);\\n }\\n reader.readAsText(e.target.files[0]);\\n e.target.value = \\\"\\\";\\n };\\n }\",\n \"function FunctionUpdate() \\r\\n\\r\\n{\\r\\nvar x = document.forms[\\\"myForm\\\"][\\\"txt_notepad_title\\\"].value;\\r\\nvar y = document.forms[\\\"myForm\\\"][\\\"txt_area\\\"].value;\\r\\n \\r\\nif (x == \\\"\\\")\\r\\n \\r\\n{\\r\\n \\r\\nalert(\\\"Please Choose Notepad Title From Table Below To Update\\\");\\r\\n \\r\\n}\\r\\n\\r\\nelse if(y == \\\"\\\")\\r\\n\\r\\n{\\r\\n\\t\\r\\nalert(\\\"Please Fill In The TextBox Area\\\");\\r\\n\\r\\n}\\r\\n \\r\\nelse\\r\\n \\r\\n{\\r\\n\\r\\n//Update Local Storage--------------------------------------------------------------------------------------------->\\r\\nvar title = document.forms.myForm.txt_notepad_title.value;\\r\\nvar text = document.forms.myForm.txt_area.value;\\r\\n\\t\\r\\nlocalStorage.setItem(title, text);\\r\\ndocument.getElementById(\\\"myForm\\\").reset();\\r\\nalert(\\\"Update Succesfull\\\");\\r\\ndoShowAll();\\r\\n\\r\\n}\\r\\n}\",\n \"function storeSettings() {\\n check();\\n browser.storage.local.set(f2j(form));\\n}\",\n \"function readUserInput() {\\n\\tvar settings = {};\\n\\t//Plasmid Section\\n\\tsettings.plasmidname = readtxtField(\\\"txtPlasmidName\\\");\\n\\tsettings.plasmidnameon = readField(\\\"bolShowPlasmidName\\\");\\n\\tsettings.plasmidsize = readField(\\\"txtPlasmidSize\\\");\\n\\tsettings.plasmidsizeon = readField(\\\"bolShowPlasmidSize\\\");\\n\\tsettings.plasmidradius = readField(\\\"txtRadius\\\");\\n\\tsettings.bbwidth = readField(\\\"txtBackBoneWidth\\\");\\n\\tsettings.bbcolor = readField(\\\"optBackBoneColor\\\");\\n\\tsettings.bbon = readField(\\\"bolShowBackBone\\\");\\n\\t//Feature Section (General)\\n\\tsettings.fwidth = readField(\\\"txtFeatureWidth\\\");\\n\\tsettings.fstrokewidth = readField(\\\"txtFeatureStrokeWidth\\\");\\n\\tsettings.fstrokered = readField(\\\"txtStrokeRed\\\");\\n\\tsettings.fstrokegreen = readField(\\\"txtStrokeGreen\\\");\\n\\tsettings.fstrokeblue = readField(\\\"txtStrokeBlue\\\");\\n\\tsettings.farrowlength = readField(\\\"txtArrowHeadLength\\\");\\n\\tsettings.farrowwidth = readField(\\\"txtArrowHeadWidth\\\");\\n\\t//Text section\\n\\tsettings.txton = readField(\\\"bolShowText\\\");\\n\\tsettings.txtfamily = readField(\\\"optFontFamily\\\");\\n\\tsettings.txtsize = readField(\\\"txtFontSize\\\");\\n\\tsettings.txtcolor = readField(\\\"optFontColor\\\");\\n\\tsettings.txtbold = readField(\\\"bolTextBold\\\");\\n\\tsettings.txtloc = readField(\\\"optTextLocation\\\");\\n\\t//Canvas section\\n\\tsettings.cw = readField(\\\"txtCanvasWidth\\\");\\n\\tsettings.ch = readField(\\\"txtCanvasHeight\\\");\\n\\tsettings.error = 0;\\n\\tsettings.errmsg = \\\"\\\";\\n\\t//Calculated properties\\n\\tsettings.ox = settings.cw / 2;\\n\\tsettings.oy = settings.ch / 2;\\n\\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\\n\\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\\n\\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\\n\\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\\n\\treturn settings;\\n}\",\n \"function storeData() {\\n trainName = $(\\\"#Train-Name\\\").val();\\n destinationName = $(\\\"#Destination-Name\\\").val();\\n firstTrainTime = $(\\\"#First-Time\\\").val();\\n trainFrequency = $(\\\"#Frequency\\\").val();\\n}\",\n \"function createStaff(){\\n var linecount = document.getElementById(\\\"linecount\\\").value;\\n var linecolor = document.getElementById(\\\"linecolor\\\").value;\\n var mode = document.getElementById(\\\"mode\\\").value;\\n \\n currentStaff = new Staff(linecount, linecolor, mode);\\n \\n staffs.push(currentStaff);\\n \\n document.getElementsByClassName(\\\"staffdependant\\\")[0].disabled = false;\\n \\n document.getElementById(\\\"input\\\").innerHTML = staffForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"clearInput() {\\n if (this.getCurTab() === \\\"dbms\\\") {\\n var curDocName = DOC.iSel(\\\"docNameID\\\").value; // Stores current value of docName\\n DOC.iSel(\\\"dbmsFormID\\\").reset(); // Resets entire form\\n DOC.iSel(\\\"docNameID\\\").value = curDocName; // Added so docname is not reset\\n } else if (this.getCurTab() === \\\"fs\\\") {\\n var curDocName = DOC.iSel(\\\"docNameID2\\\").value;\\n DOC.iSel(\\\"fsFormID\\\").reset();\\n DOC.iSel(\\\"docNameID2\\\").value = curDocName;\\n }\\n }\",\n \"function loadManageBusinessFields() {\\n // Pull business details from local storage\\n var businessName = localStorage.getItem('businessName');\\n console.log(localStorage.getItem('businessName'));\\n if (businessName != null && businessName != 'undefined') {\\n document.getElementById('businessName').value = businessName;\\n }\\n\\n var businessPhone = localStorage.getItem('businessPhone');\\n if (businessPhone != null && businessPhone != 'undefined') {\\n document.getElementById('businessPhone').value = localStorage.getItem('businessPhone');\\n }\\n\\n var businessAddress = localStorage.getItem('businessAddress');\\n if (businessAddress != null && businessAddress != 'undefined') {\\n document.getElementById('set-address').value = localStorage.getItem('businessAddress');\\n }\\n}\",\n \"function dissection_sticky_fields_save() {\\nlogger(\\\"dissection_sticky_fields_save()\\\");\\n var sf = window.dissection_sticky_fields;\\n var form = $(featherlight_selector()+\\\" form\\\");\\n var vals = {}\\n for (const tag in sf) {\\n sf[tag].forEach(function(field) {\\n var name = \\\"sample[\\\"+field+\\\"]\\\";\\n vals[field] = form.find(tag+\\\"[name='\\\"+name+\\\"']\\\").val();\\n });\\n }\\n window.dissection_sticky_vals = vals;\\n}\",\n \"function clearData(e) {\\n\\te.preventDefault();\\n\\t// Remove temp-div container from the page\\n\\tvar getTempDiv = document.getElementById('temp-div');\\n\\tvar mainDiv = getTempDiv.parentNode;\\n\\tmainDiv.removeChild(getTempDiv);\\n\\t// clear the form values\\n\\tdocument.getElementById('donald-inputs').reset();\\n}\",\n \"function clear_form_data() {\\n $(\\\"#promotion_title\\\").val(\\\"\\\");\\n $(\\\"#promotion_promotion_type\\\").val(\\\"\\\");\\n $(\\\"#promotion_start_date\\\").val(\\\"\\\");\\n $(\\\"#promotion_end_date\\\").val(\\\"\\\");\\n $(\\\"#promotion_active\\\").val(\\\"\\\");\\n }\",\n \"function saveCustomerData(form){\\n // pick the data from the inputs\\n let first = $(\\\"input[name=first]\\\").val();\\n let email = $(\\\"input[name=email]\\\").val();\\n let products = $(\\\"select[name=products]\\\").val();\\n let quantity = $(\\\"input[name=quantity]\\\").val();\\n\\n // store the data in the object\\n let CustomerData = {\\n first: first,\\n\\t\\temail: email,\\n products:products,\\n quantity:quantity\\n\\t};\\n console.log(CustomerData);\\n //stroing all the input in the local variable\\n\\tlocalStorage[\\\"CustomerData\\\"]=JSON.stringify(CustomerData);\\n form.submit();\\n}\",\n \"function save_data() {\\n var name = document.getElementById(\\\"getInfo\\\")[0].value;\\n var lastName = document.getElementById(\\\"getInfo\\\")[1].value;\\n \\n localStorage.setItem(\\\"name\\\", name);\\n localStorage.setItem(\\\"lastName\\\", lastName);\\n}\",\n \"fillForm(data){\\n this.titleInput.value = data.title\\n this.bodyInput.value = data.body\\n this.idInput.value = data.id\\n\\n this.changeFormState('edit')\\n }\",\n \"function saveForm()\\n{ \\n // retrieve the data from the form\\n var first = document.getElementById( \\\"first\\\" ).value;\\n var last = document.getElementById( \\\"last\\\" ).value;\\n var street = document.getElementById( \\\"street\\\" ).value;\\n var city = document.getElementById( \\\"city\\\" ).innerHTML;\\n var state = document.getElementById( \\\"state\\\" ).innerHTML;\\n var zip = document.getElementById( \\\"zip\\\" ).value;\\n var phone = document.getElementById( \\\"phone\\\" ).value;\\n \\n // check if data is valid \\n if ( !zipValid || !phoneValid )\\n {\\n // display error message\\n document.getElementById( \\\"success\\\" ).innerHTML = \\n \\\"Invalid data entered. Check form for more information\\\";\\n } // end if\\n else if ( ( first == \\\"\\\" ) || ( last == \\\"\\\" ) )\\n {\\n // display error message\\n document.getElementById( \\\"success\\\").innerHTML = \\n \\\"First Name and Last Name must have a value.\\\";\\n } // end if\\n else\\n {\\n // hide the form and show the addressbook\\n document.getElementById( \\\"addEntry\\\" ).style.display = \\\"none\\\";\\n document.getElementById( \\\"addressBook\\\" ).style.display = \\\"block\\\";\\n\\n // call the web service to insert data into the database\\n callWebService( \\\"/addEntry/\\\" + first + \\\"/\\\" + last + \\\"/\\\" + street +\\n \\\"/\\\" + city + \\\"/\\\" + state + \\\"/\\\" + zip + \\\"/\\\" + phone, parseData );\\n } // end else\\n} // end function saveForm\",\n \"function setupDataForForm(){\\n if(typeof(hotty) != \\\"undefined\\\"){\\n $('#import_data').val(JSON.stringify(hotty.getData()));\\n console.log(\\\"updating the data...\\\");\\n }\\n else{\\n console.log(\\\"hotty isnt there, maybe just booting up!\\\");\\n }\\n }\",\n \"saveData() {\\n if (this.s.unavailable()) {\\n return;\\n }\\n\\n for (const val of this.dispField.items) {\\n this.s.set(val, this.dispField.checked(val));\\n }\\n\\n this.s.set(\\\"unit\\\", this.unitField.get());\\n this.s.set(\\\"format\\\", this.formatField.get());\\n this.s.set(\\\"sort\\\", this.sortableField.toArray());\\n }\",\n \"function clear_inputs() {\\n\\n\\t\\t\\t\\t$('.form-w').val(\\\"\\\");\\n\\t\\t\\t\\t$('.form-b').val(\\\"\\\");\\n\\t\\t\\t\\t$('.form-mf').val(\\\"\\\");\\n\\t\\t\\t\\t$('.form-mt').val(\\\"\\\");\\n\\n\\t\\t\\t\\tlocalStorage.clear();\\n\\n\\t\\t\\t}\",\n \"function updateOutput4() {\\n localStorage.setItem('info4', input_textarea4.value)\\n}\",\n \"function storeForm() {\\n\\t\\t\\n\\t\\t$( \\\".sessioninput\\\" ).each(function( index ) {\\n\\t\\t\\t\\n\\t\\t\\twindow.localStorage.setItem($(this).attr(\\\"name\\\"), $(this).val());\\n\\t\\t\\t\\n\\t\\t});\\n\\t\\t\\n\\t\\t\\n\\t\\tstartSession()\\n\\t}\",\n \"function saveAndExit() {\\r\\n\\tvar form = document.getElementById( \\\"hiddenfieldform\\\" );\\r\\n\\thidden.value = experior.getText(form);\\r\\n}\",\n \"autofill() {\\n\\t\\tif (localStorage.getItem(\\\"lastname\\\")) {\\n\\t\\t\\t$(\\\"#lastName\\\").val(localStorage.getItem(\\\"lastname\\\"));\\n\\t\\t\\t$(\\\"#firstName\\\").val(localStorage.getItem(\\\"firstName\\\"));\\n\\t\\t}\\n\\t}\",\n \"function load() {\\n let savedNotes = localStorage.getItem(\\\"dataNotes\\\");\\n let savedTitle = localStorage.getItem(\\\"dataTitle\\\");\\n if (savedNotes) {\\n notes.value = savedNotes;\\n }\\n if (savedTitle) {\\n notesTitle.value = savedTitle;\\n headerTitleChange()\\n }\\n}\",\n \"function processForm() {\\n\\n // get the entered user name from the input\\n var enteredUsername = $('input').val();\\n localStorage.setItem('username', enteredUsername);\\n database.ref('users/'+ enteredUsername).set({\\n \\tusername: enteredUsername\\n \\t});\\n \\n finishedCurrentView();\\n \\t//window.location.href = '/app/davidToLife';\\n $('.username').html(enteredUsername);\\n\\n return false;\\n}\",\n \"function Finish(){\\r\\n//If there's a form, fill it out and submit it\\r\\n\\tif (document.store != null){\\r\\n\\t\\tFrm = document.store;\\r\\n\\t\\tFrm.starttime.value = HPNStartTime;\\r\\n\\t\\tFrm.endtime.value = (new Date()).getTime();\\r\\n\\t\\tFrm.mark.value = Score;\\r\\n\\t\\tFrm.detail.value = Detail;\\r\\n\\t\\tFrm.submit();\\r\\n\\t}\\r\\n}\",\n \"function employee_Set_FormData(data)\\r\\n\\t{\\r\\n\\t\\t$(\\\"#employee_title\\\").val(data.title);\\r\\n\\t\\t$(\\\"#employee_fullName\\\").val(data.fullName);\\r\\n\\t\\t$(\\\"#employee_surname\\\").val(data.surname);\\r\\n\\t\\t$(\\\"#employee_fatherName\\\").val(data.fatherName);\\r\\n\\t\\t$(\\\"#employee_gender\\\").val(data.gender);\\r\\n\\t\\t$(\\\"#employee_email\\\").val(data.email);\\r\\n\\t\\t$(\\\"#employee_maritalStatus\\\").val(data.maritalStatus);\\r\\n\\t\\t$(\\\"#employee_postalAddress\\\").val(data.postalAddress);\\r\\n\\t\\t$(\\\"#employee_nic\\\").val(data.nic);\\r\\n\\t\\t$(\\\"#employee_mobile\\\").val(data.mobile);\\r\\n\\t\\t$(\\\"#employee_phone\\\").val(data.phone);\\r\\n\\t\\t$(\\\"#employee_religion\\\").val(data.religion);\\r\\n\\t\\t$(\\\"#employee_department\\\").val(data.departmentId);\\r\\n\\t\\t$(\\\"#employee_employeeId\\\").val(data.employeeId);\\r\\n\\t\\t$(\\\"#employee_date\\\").val(data.dob);\\r\\n\\t\\tpageAniamateScroll();\\r\\n\\t}\",\n \"function resetPresidentForm(){\\n consecuenciasField.setValue('');\\n descripcionField.setValue('');\\n }\",\n \"function clearData(){\\n\\tdocument.getElementById('userName').value = \\\"\\\";\\n\\tdocument.getElementById('jobTitle').value = \\\"\\\";\\n\\tdocument.getElementById('license').value = \\\"\\\";\\n\\tdocument.getElementById('cellPhone').value = \\\"\\\";\\n\\tdocument.getElementById('phone').value = \\\"\\\";\\n\\tdocument.getElementById('date_from').value = \\\"\\\";\\n\\tdocument.getElementById('date_end').value = \\\"\\\";\\n}\",\n \"function saveHelper(){\\n\\tvar occupants = document.getElementById(\\\"occupantInput\\\");\\n\\tif(occupants)\\n\\t{\\n\\t\\tselected_furn.totalOccupants = occupants.value;\\n\\t}\\n\\tselected_marker.setOpacity(1);\\n\\tselected_furn.seat_places = temp_seat_places;\\n\\t\\n\\tif(temp_wb != [])\\n\\t{\\n\\t\\tselected_furn.whiteboard = temp_wb;\\n\\t}\\n\\t\\n \\tmymap.closePopup();\\n}\",\n \"function remove(){\\n document.getElementById('textField').value = \\\"\\\";\\n localStorage.removeItem('text');\\n\\n document.getElementById('emailField').value = \\\"\\\";\\n localStorage.removeItem('email');\\n\\n\\n document.getElementById('numField').value = \\\"\\\";\\n localStorage.removeItem('num');\\n\\n\\n document.getElementById('areaField').value = \\\"\\\";\\n localStorage.removeItem('area');\\n\\n alert('The Form Local Storage Data Is Terminated !!!')\\n }\",\n \"function startEdit() {\\n document.getElementById(\\\"summaryDetails\\\").style.display=\\\"none\\\"\\n document.getElementById(\\\"editFields\\\").style.display=\\\"block\\\"\\n document.getElementById(\\\"fNameFieldEdit\\\").value=firstName\\n document.getElementById(\\\"lNameFieldEdit\\\").value=lastName\\n let giftField = document.getElementById(\\\"giftEdit\\\")\\n for (let i = 0; i < giftField.options.length; i++) {\\n if (giftField.options[i].text=== gift) {\\n giftField.options[i].selected = true;\\n break;\\n }\\n }\\n document.getElementById(\\\"form1Edit\\\").value=occasion\\n let surpriseField = document.getElementById(\\\"surpriseEdit\\\")\\n for (let i = 0; i < surpriseField.options.length; i++) {\\n if (surpriseField.options[i].text=== suprise) {\\n surpriseField.options[i].selected = true;\\n break;\\n }\\n }\\n let typeField = document.getElementById(\\\"typeEdit\\\")\\n for (let i = 0; i < typeField.options.length; i++) {\\n if (typeField.options[i].text=== type) {\\n typeField.options[i].selected = true;\\n break;\\n }\\n }\\n let numberMusiciansField = document.getElementById(\\\"numberMusiciansEdit\\\")\\n for (let i = 0; i < numberMusiciansField.options.length; i++) {\\n if (numberMusiciansField.options[i].text=== numberMusicians) {\\n numberMusiciansField.options[i].selected = true;\\n break;\\n }\\n }\\n document.getElementById(\\\"date-time-fieldEdit\\\").value= dateService + \\\"T\\\" + timeService\\n document.getElementById(\\\"address-line-fieldEdit\\\").value = address\\n let cityField = document.getElementById(\\\"cityEdit\\\")\\n for (let i = 0; i < cityField.options.length; i++) {\\n if (cityField.options[i].text=== city) {\\n cityField.options[i].selected = true;\\n break;\\n }\\n}\\n document.getElementById(\\\"zipEdit\\\").value = zip\\n document.getElementById(\\\"offered-fieldEdit\\\").value = offered\\n document.getElementById(\\\"phoneEdit\\\").value = number\\n document.getElementById(\\\"emailEdit\\\").value = email\\n document.getElementById(\\\"commentEdit\\\").value = comments\\n}\",\n \"function setInfo() {\\n var name = document.querySelector(\\\"#name_form_student\\\");\\n name.value = local_user.name;\\n var account_number = document.querySelector(\\\"#no_cuenta_form_student\\\");\\n account_number.value = local_user.num_account;\\n var career = document.querySelector(\\\"#carrer_form_student\\\");\\n career.value = local_user.career;\\n var email = document.querySelector(\\\"#email_form_student\\\");\\n email.value = local_user.email;\\n var semester = document.querySelector(\\\"#semester_form_student\\\");\\n semester.value = local_user.semester;\\n\\n}\",\n \"function savedata(){\\n var message = messageField.value;\\n\\n messagesRef.push({fieldName:'messageField', text:message});\\n messageField.value = '';\\n }\",\n \"function saveResponses () { \\t\\n localStorage.setItem(\\\"name\\\", nameField.value); \\t\\n localStorage.setItem(\\\"email\\\", emailField.value); \\t\\n localStorage.setItem(\\\"feedback\\\", feedbackField.value); \\n}\",\n \"function load_data() {\\n var input = document.getElementById(\\\"commentName\\\");\\n var comm = document.getElementById(\\\"commentText\\\");\\n\\n input.value = localStorage.getItem('Name');\\n comm.value = localStorage.getItem('Comment');\\n}\",\n \"function fread(){\\n\\tif(x.value == \\\"\\\"){\\n\\t\\talert(\\\"Create a note first!!!\\\");\\n\\t}\\n\\telse if(document.Notes.note.value == \\\"\\\"){\\n\\t\\talert(\\\"Type something!!!\\\");\\n\\t}\\n\\telse if(x.selectedIndex > s.length-1){\\n\\ts.push(document.Notes.note.value);\\n\\talert(\\\"Successfully saved\\\");\\n\\t}\\n\\telse {\\n\\t\\ts[x.selectedIndex] = document.Notes.note.value;\\n\\t\\talert(\\\"Successfully saved\\\");\\n\\t}\\n}\",\n \"function closeForm() {\\n document.getElementById(\\\"author\\\").value = \\\"\\\";\\n document.getElementById(\\\"title\\\").value = \\\"\\\";\\n document.getElementById(\\\"pages\\\").value = \\\"\\\";\\n document.getElementById(\\\"read\\\").checked = false;\\n document.getElementById(\\\"notRead\\\").checked = true;\\n document.getElementById(\\\"form\\\").style.display = \\\"none\\\";\\n}\",\n \"clearForm() {\\n // clear any previous highlighted row\\n this.clearPrevHighlight();\\n // clear the inputs\\n $(\\\"#item_id\\\").val(0);\\n $(\\\"#item_title\\\").val(\\\"\\\");\\n $(\\\"#item_author_first_name\\\").val(\\\"\\\");\\n $(\\\"#item_author_surname\\\").val(\\\"\\\");\\n $(\\\"#item_year\\\").val(\\\"\\\");\\n // disable buttons dependent on a table row having been clicked\\n $(\\\"#btn_search\\\").prop(\\\"disabled\\\", true);\\n $(\\\"#btn_add_item\\\").prop(\\\"disabled\\\", true);\\n $(\\\"#btn_update_item\\\").prop(\\\"disabled\\\", true);\\n $(\\\"#btn_delete_item\\\").prop(\\\"disabled\\\", true);\\n // disable link to author page\\n $(\\\"#link_current_author\\\").removeClass(\\\"text-primary\\\");\\n $(\\\"#link_current_author\\\").addClass(\\\"text-muted\\\");\\n // hide editions page\\n $(\\\"#page_editions\\\").hide(\\\"slow\\\");\\n }\",\n \"function saveLocalStore(){\\n for(i = 0; i < generalInfo.length; i++){\\n var displayNow = ($(\\\"#inputEvent\\\"+generalInfo[i].display).val());\\n var notesNow = generalInfo[i].notes;\\n generalInfo[i].notes = displayNow;\\n console.log(\\\"grabo vacio\\\");\\n\\n }\\n localStorage.setItem(\\\"generalInfo\\\", JSON.stringify(generalInfo));\\n }\",\n \"function validateForm() {\\r\\n var namee = document.forms[\\\"myForm\\\"][\\\"fname\\\"].value;\\r\\n if (namee == \\\"\\\") {\\r\\n alert(\\\"Please let me know your name. (*゚∀゚*)\\\");\\r\\n return false;\\r\\n }\\r\\n // console.log(x);\\r\\n window.localStorage.setItem('username', namee);\\r\\n clearForm();\\r\\n clearHearts();\\r\\n startPage();\\r\\n }\",\n \"function _qForm_saveFields(){\\n\\tvar expires = new Date(_c_dToday.getTime() + (_c_iExpiresIn * 86400000));\\n\\tvar strPackage = _createCookiePackage(this.getFields());\\n\\t_setCookie(\\\"qForm_\\\" + this._name + \\\"_\\\" + _c_strName, strPackage, expires);\\n}\",\n \"function updateOutput9() {\\n localStorage.setItem('info9', input_textarea9.value)\\n}\",\n \"function updateOutput6() {\\n localStorage.setItem('info6', input_textarea6.value)\\n}\",\n \"function checkLocalStorageData() {\\n let email = localStorage.getItem('email');\\n let firstName = localStorage.getItem('firstName');\\n let lastName = localStorage.getItem('lastName');\\n let textarea = localStorage.getItem('textarea');\\n if (\\n email != null &&\\n firstName != null &&\\n lastName != null &&\\n textarea != null\\n ) {\\n $('#email').val(email);\\n $('#firstName').val(firstName);\\n $('#lastName').val(lastName);\\n $('#taMessage').val(textarea);\\n }\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.59387565","0.5866843","0.5829839","0.58029896","0.5783174","0.57760817","0.575963","0.57110256","0.5631983","0.5620991","0.5618701","0.5580822","0.5574503","0.5552196","0.5548763","0.5520207","0.5477826","0.54530936","0.5416794","0.5404392","0.54028666","0.5395635","0.5385948","0.5381497","0.5376308","0.53717613","0.5367473","0.53667474","0.5355327","0.5350382","0.5342601","0.5334897","0.5330942","0.53308517","0.53268355","0.53258276","0.532209","0.53213525","0.531629","0.5310668","0.5309443","0.5309443","0.5303446","0.52961904","0.52954036","0.5295201","0.52781373","0.52625597","0.5260555","0.5259083","0.5255228","0.5253479","0.5245509","0.5243715","0.524171","0.52411175","0.5231881","0.5231297","0.52253914","0.5224925","0.5223636","0.5221303","0.5218236","0.5215246","0.52135307","0.5195116","0.5193454","0.5192737","0.51915973","0.5188412","0.51882035","0.5187317","0.518246","0.5181884","0.5181543","0.5173127","0.5172938","0.51704943","0.5158779","0.51528263","0.5149807","0.51468045","0.51446605","0.5141091","0.5135072","0.5135007","0.513449","0.5132387","0.51309025","0.51303905","0.5128715","0.51261294","0.5125838","0.512105","0.5119473","0.5116601","0.5116264","0.51144886","0.5113854","0.51103497"],"string":"[\n \"0.59387565\",\n \"0.5866843\",\n \"0.5829839\",\n \"0.58029896\",\n \"0.5783174\",\n \"0.57760817\",\n \"0.575963\",\n \"0.57110256\",\n \"0.5631983\",\n \"0.5620991\",\n \"0.5618701\",\n \"0.5580822\",\n \"0.5574503\",\n \"0.5552196\",\n \"0.5548763\",\n \"0.5520207\",\n \"0.5477826\",\n \"0.54530936\",\n \"0.5416794\",\n \"0.5404392\",\n \"0.54028666\",\n \"0.5395635\",\n \"0.5385948\",\n \"0.5381497\",\n \"0.5376308\",\n \"0.53717613\",\n \"0.5367473\",\n \"0.53667474\",\n \"0.5355327\",\n \"0.5350382\",\n \"0.5342601\",\n \"0.5334897\",\n \"0.5330942\",\n \"0.53308517\",\n \"0.53268355\",\n \"0.53258276\",\n \"0.532209\",\n \"0.53213525\",\n \"0.531629\",\n \"0.5310668\",\n \"0.5309443\",\n \"0.5309443\",\n \"0.5303446\",\n \"0.52961904\",\n \"0.52954036\",\n \"0.5295201\",\n \"0.52781373\",\n \"0.52625597\",\n \"0.5260555\",\n \"0.5259083\",\n \"0.5255228\",\n \"0.5253479\",\n \"0.5245509\",\n \"0.5243715\",\n \"0.524171\",\n \"0.52411175\",\n \"0.5231881\",\n \"0.5231297\",\n \"0.52253914\",\n \"0.5224925\",\n \"0.5223636\",\n \"0.5221303\",\n \"0.5218236\",\n \"0.5215246\",\n \"0.52135307\",\n \"0.5195116\",\n \"0.5193454\",\n \"0.5192737\",\n \"0.51915973\",\n \"0.5188412\",\n \"0.51882035\",\n \"0.5187317\",\n \"0.518246\",\n \"0.5181884\",\n \"0.5181543\",\n \"0.5173127\",\n \"0.5172938\",\n \"0.51704943\",\n \"0.5158779\",\n \"0.51528263\",\n \"0.5149807\",\n \"0.51468045\",\n \"0.51446605\",\n \"0.5141091\",\n \"0.5135072\",\n \"0.5135007\",\n \"0.513449\",\n \"0.5132387\",\n \"0.51309025\",\n \"0.51303905\",\n \"0.5128715\",\n \"0.51261294\",\n \"0.5125838\",\n \"0.512105\",\n \"0.5119473\",\n \"0.5116601\",\n \"0.5116264\",\n \"0.51144886\",\n \"0.5113854\",\n \"0.51103497\"\n]"},"document_score":{"kind":"string","value":"0.56170547"},"document_rank":{"kind":"string","value":"11"}}},{"rowIdx":221,"cells":{"query":{"kind":"string","value":"Reads the data entered in the clef form and saves it."},"document":{"kind":"string","value":"function createClef(){\n var line = document.getElementById(\"line\").value;\n var shape = document.getElementById(\"shape\").value;\n \n var clef = new Clef(line, shape);\n currentStaff.clefs.push(clef);\n \n document.getElementById(\"input\").innerHTML = clefForm;\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["inputData() {\n return (e) => {\n e.persist();\n var reader = new FileReader();\n const self = this;\n reader.onload = function(e) {\n self.parseInputData(reader.result);\n }\n reader.readAsText(e.target.files[0]);\n e.target.value = \"\";\n };\n }","function getForm() {\n inputNombre.value = localStorage.getItem('nombre');\n inputApellido.value = localStorage.getItem('apellido');\n inputTel.value = localStorage.getItem('tel');\n inputDir.value = localStorage.getItem('dir');\n inputObs.value = localStorage.getItem('obs');\n console.log('data loaded');\n}","function saveAndExit() {\r\n\tvar form = document.getElementById( \"hiddenfieldform\" );\r\n\thidden.value = experior.getText(form);\r\n}","function storeData(){\r\n\t\tvar id \t\t\t\t= Math.floor(Math.random()*100000000001);\r\n\t\t//Gather up all our form field values and store in an object\r\n\t\t//Object properties contain an array with the form label and input value\r\n\t\tgetSelectedRadio();\r\n\t\tvar item \t\t\t\t= {};\r\n\t\t\titem.comicTitle\t\t= [\"Title of Comic:\", e('comicTitle').value];\r\n\t\t\titem.seriesTitle\t= [\"Title of Series:\", e('seriesTitle').value];\r\n\t\t\titem.issueNum\t\t= [\"Issue Number:\", e('issueNum').value];\r\n\t\t\titem.dateReleased\t= [\"Date Released:\", e('dateReleased').value];\r\n\t\t\titem.publisher\t\t= [\"Publisher:\", e('publisher').value];\r\n\t\t\titem.rateIssue\t\t= [\"Rate of Issue:\", e('rateIssue').value];\r\n\t\t\titem.genre \t\t\t= [\"Genre:\", e('genre').value];\r\n\t\t\titem.illStyle\t\t= [\"Illustration Style:\", styleValue];\r\n\t\t\titem.comments\t\t= [\"Comments:\", e('comments').value];\r\n\t\t//Save data into Local Storage: Use Stringify to convert our object to a string\r\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\r\n\t\talert(\"Comic saved to index!\");\r\n\t}","function save() {\n $editors.find('.text').each(function () {\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\n });\n }","function fetchStorage() {\n txtFName.value = localStorage.getItem(\"input-name\");\n txtLName.value = localStorage.getItem(\"input-lastname\");\n txtPhone.value = localStorage.getItem(\"input-phone\");\n txtEmail.value = localStorage.getItem(\"input-email\");\n }","function copyStorageToForm() {\n \"use strict\";\n // Set chosen hair type\n setFormHairType(sessionStorage.getItem(\"hair_type\"));\n\n // Set selected traits\n setFormTraits(sessionStorage.getItem(\"traits\"));\n}","function toChangeClefData(){\n currentClefIndex = 0;\n document.getElementById(\"input\").innerHTML = clefDataChangeForm();\n}","save() {\n const newBasicBinary = trs80_base_1.parseBasicText(this.textarea.value);\n if (typeof newBasicBinary === \"string\") {\n this.showError(newBasicBinary);\n return;\n }\n const newBasicProgram = trs80_base_1.decodeBasicProgram(newBasicBinary);\n if (newBasicProgram === undefined) {\n // I don't know how this might happen.\n this.showError(\"Can't decode Basic program\");\n return;\n }\n this.trs80.loadBasicProgram(newBasicProgram);\n this.close();\n }","function applyCurrentClef(){\n currentClefIndex = document.getElementById(\"clef\").value;\n document.getElementById(\"input\").innerHTML = clefDataChangeForm();\n}","function save() {\r\n this.textarea.value = this.content();\r\n }","function initialForm() {\n\n\n var date = document.getElementById(\"date\").value\n var name = document.getElementById(\"name\").value\n var address = document.getElementById(\"address\").value\n var datebirth = document.getElementById(\"datebirth\").value\n var sex = document.getElementById(\"sex\").value\n var civil = document.getElementById(\"civil\").value\n var cp = document.getElementById(\"cp\").value\n var tel = document.getElementById(\"tel\").value\n var cel = document.getElementById(\"cel\").value\n var mail = document.getElementById(\"mail\").value\n // \n document.getElementById(\"message\").innerHTML = \"Sus datos fueron guardados correctamente. Si necesita actualizar su información, por favor llene el formulario nuevamente o contacte al administrador.\"\n\n cleanFormInitial()\n addFormToStorage(date, name, address, datebirth, sex, civil, cp, tel, cel, mail)\n\n\n}","_readFromForm() {\n this.dao.citation_id = document.getElementById('citation_id').value;\n this.dao.ott_id = document.getElementById('ott_id').value;\n this.dao.background_noise_in_decibel = document.getElementById('background_noise_in_decibel').value;\n this.dao.calibration = document.getElementById('calibration').value;\n this.dao.distance_to_sound_source_in_meter = document.getElementById('distance_to_sound_source_in_meter').value;\n this.dao.facility_id = document.getElementById('facility_id').value;\n this.dao.latitude_in_decimal_degree = document.getElementById('latitude_in_decimal_degree').value;\n this.dao.longitude_in_decimal_degree = document.getElementById('longitude_in_decimal_degree').value;\n this.dao.measurement_method_id = document.getElementById('measurement_method_id').value;\n this.dao.measurement_type = document.getElementById('measurement_type').value;\n this.dao.medium = document.getElementById('medium').value;\n this.dao.number_of_measurements = document.getElementById('number_of_measurements').value;\n this.dao.position_first_electrode = document.getElementById('position_first_electrode').value;\n this.dao.position_second_electrode = document.getElementById('position_second_electrode').value;\n this.dao.position_third_electrode = document.getElementById('position_third_electrode').value;\n this.dao.position_of_animal = document.getElementById('position_of_animal').value;\n this.dao.sedated = document.getElementById('sedated').value;\n this.dao.sedation_details = document.getElementById('sedation_details').value;\n this.dao.test_environment_description = document.getElementById('test_environment_description').value;\n this.dao.testtone_form_method_id = document.getElementById('testtone_form_method_id').value;\n this.dao.testtone_presentation_method_constants = document.getElementById('testtone_presentation_method_constants').value;\n this.dao.testtone_presentation_sound_form = document.getElementById('testtone_presentation_sound_form').value;\n this.dao.testtone_presentation_staircase = document.getElementById('testtone_presentation_staircase').value;\n this.dao.threshold_determination_method = document.getElementById('threshold_determination_method').value;\n this.dao.year_of_experiment_start = document.getElementById('year_of_experiment_start').value;\n this.dao.year_of_experiment_end = document.getElementById('year_of_experiment_end').value;\n }","function getFormData() {\n // User Info Obj\n const user = {\n netID: document.getElementById('netID').value,\n contact: document.getElementById('contact').value,\n location: document.getElementById('location').value,\n description: document.getElementById('issue').value,\n team: document.getElementById('team').value,\n manager: document.getElementById('managerId').value\n };\n // Get priority level selection RadioButtons\n const rbs = document.querySelectorAll('input[name=radioBtn]');\n let selectedValue;\n for (const rb of rbs) {\n if (rb.checked) {\n selectedValue = rb.value;\n break;\n }\n }\n /*Get category*/\n const category = {\n cat: document.getElementById('cat').value,\n sub: document.getElementById('sub').value\n };\n //Formatting for txt file.\n const userData =\n 'NetID: ' +\n user.netID +\n '\\n' +\n '\\n' +\n 'Contact: ' +\n user.contact +\n '\\n' +\n '\\n' +\n 'Location: ' +\n user.location +\n '\\n' +\n '\\n' +\n 'Priority: ' +\n selectedValue +\n '\\n' +\n '\\n' +\n 'Category: ' +\n category.cat +\n '\\n' +\n '\\n' +\n 'Sub-Category: ' +\n category.sub +\n '\\n' +\n '\\n' +\n 'Assignment Team: ' +\n user.team +\n '\\n' +\n '\\n' +\n 'Group Manager Contact: ' +\n user.manager +\n '\\n' +\n '\\n' +\n 'Full Description: ' +\n '\\n' +\n user.description;\n //print date\n const today = new Date();\n //save BLOB to txt file\n const blob = new Blob([userData], { type: 'text/plain;charset=utf-8' });\n saveAs(blob, today);\n //refresh page for new form\n location.reload();\n}","function readUserInput() {\n\tvar settings = {};\n\t//Plasmid Section\n\tsettings.plasmidname = readtxtField(\"txtPlasmidName\");\n\tsettings.plasmidnameon = readField(\"bolShowPlasmidName\");\n\tsettings.plasmidsize = readField(\"txtPlasmidSize\");\n\tsettings.plasmidsizeon = readField(\"bolShowPlasmidSize\");\n\tsettings.plasmidradius = readField(\"txtRadius\");\n\tsettings.bbwidth = readField(\"txtBackBoneWidth\");\n\tsettings.bbcolor = readField(\"optBackBoneColor\");\n\tsettings.bbon = readField(\"bolShowBackBone\");\n\t//Feature Section (General)\n\tsettings.fwidth = readField(\"txtFeatureWidth\");\n\tsettings.fstrokewidth = readField(\"txtFeatureStrokeWidth\");\n\tsettings.fstrokered = readField(\"txtStrokeRed\");\n\tsettings.fstrokegreen = readField(\"txtStrokeGreen\");\n\tsettings.fstrokeblue = readField(\"txtStrokeBlue\");\n\tsettings.farrowlength = readField(\"txtArrowHeadLength\");\n\tsettings.farrowwidth = readField(\"txtArrowHeadWidth\");\n\t//Text section\n\tsettings.txton = readField(\"bolShowText\");\n\tsettings.txtfamily = readField(\"optFontFamily\");\n\tsettings.txtsize = readField(\"txtFontSize\");\n\tsettings.txtcolor = readField(\"optFontColor\");\n\tsettings.txtbold = readField(\"bolTextBold\");\n\tsettings.txtloc = readField(\"optTextLocation\");\n\t//Canvas section\n\tsettings.cw = readField(\"txtCanvasWidth\");\n\tsettings.ch = readField(\"txtCanvasHeight\");\n\tsettings.error = 0;\n\tsettings.errmsg = \"\";\n\t//Calculated properties\n\tsettings.ox = settings.cw / 2;\n\tsettings.oy = settings.ch / 2;\n\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\n\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\n\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\n\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\n\treturn settings;\n}","function save() {\n this.textarea.value = this.content();\n }","function updateOutput7() {\n localStorage.setItem('info7', input_textarea7.value)\n}","function updateOutput4() {\n localStorage.setItem('info4', input_textarea4.value)\n}","function saveFormInput() {\n var nameInput = $('name').value;\n var keyInput = $('key').value;\n var actionInput = $('action').value;\n\n // validation\n if (!nameInput) {\n showAlert('Name cannot be empty!', 'warning');\n return;\n }\n\n if (!keyInput) {\n showAlert('Key cannot be empty!', 'warning');\n return;\n }\n\n if (!actionInput) {\n showAlert('Action cannot be empty!', 'warning');\n return;\n }\n\n // Everything is saved in local storage as a JSON object\n saveToLocalStorage(nameInput, keyInput, actionInput);\n}","fillForm() {\n\n if (localStorage.getItem(\"lastname\") !== undefined)\n $(\"form\")[0].lastname.value = localStorage.getItem(\"lastname\");\n\n if (localStorage.getItem(\"firstname\") !== undefined)\n $(\"form\")[0].firstname.value = localStorage.getItem(\"firstname\");\n\n }","function load_data() {\n var input = document.getElementById(\"commentName\");\n var comm = document.getElementById(\"commentText\");\n\n input.value = localStorage.getItem('Name');\n comm.value = localStorage.getItem('Comment');\n}","function setupDataForForm(){\n if(typeof(hotty) != \"undefined\"){\n $('#import_data').val(JSON.stringify(hotty.getData()));\n console.log(\"updating the data...\");\n }\n else{\n console.log(\"hotty isnt there, maybe just booting up!\");\n }\n }","function updateOutput3() {\n localStorage.setItem('info3', input_textarea3.value)\n}","resetFormContent() {\n ContentUtils.updateElementContent(\"delimiter\", \"?\");\n ContentUtils.updateElementContent(\"hasHeaderRow\", \"?\");\n ContentUtils.updateElementContent(\"fileSize\", 0);\n ContentUtils.updateElementContent(\"totalRecords\", 0);\n ContentUtils.updateElementContent(\"badRecords\", 0);\n ContentUtils.updateElementContent(\"inputCsvTable\", \"\");\n ContentUtils.updateElementContent(\"badCsvTable\", \"\");\n ContentUtils.updateElementContent(\"interpolatedCsvTable\", \"\");\n ContentUtils.updateElementContent(\"invalidData\", \"\");\n }","function applyClefDataChanges(){\n var line = document.getElementById(\"line\").value;\n var shape = document.getElementById(\"shape\").value;\n \n if(line && line != \"none\"){\n currentStaff.clefs[currentClefIndex].line = line;\n }\n if(shape && shape != \"none\"){\n currentStaffs.clefs[currentClefIndex].shape = shape;\n }\n \n document.getElementById(\"input\").innerHTML = clefDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function read() {\n \t// Keep the newline value for substitutin\n \t// when cleaning the
    \n var newLine = String.fromCharCode(10);\n \t// Firefox adds a
    for each new line, we replace it back\n \t// to a regular '\\n'\n var formattedValue = element.html().replace(/
    /ig,newLine).replace(/\\r/ig,'');\n \t// update the model\n ngModel.$setViewValue(formattedValue);\n \t// Set the formated (cleaned) value back into\n \t// the element's html.\n element.text(formattedValue);\n }","function updateOutput9() {\n localStorage.setItem('info9', input_textarea9.value)\n}","function saveLocalStorage() {\n localStorage['mainText'] = text_area.value;\n localStorage['excText'] = excludeWord.value;\n localStorage['percentReplacement'] = percentReplSlider.value;\n localStorage['excludePronouns'] = chkPronouns.checked;\n localStorage['excludeHyphenated'] = chkHyphens.checked;\n localStorage['excludeConjunctions'] = chkConjunctions.checked;\n localStorage['currReplacement'] = currReplacement;\n localStorage['chkMultiWord'] = chkMultiWord.checked;\n localStorage['chkNoRepeat'] = chkNoRepeat.checked;\n}","function updateOutput2() {\n localStorage.setItem('info2', input_textarea2.value)\n}","function fillFormfromLocal(saveInfoLocalStorage){\n const inputArray = document.querySelectorAll('input');\n \n for(let inputName of inputArray){\n if(saveInfoLocalStorage[inputName.name] !== undefined){\n inputName.value = saveInfoLocalStorage[inputName.name]\n } else {\n inputName.value = '';\n }\n }\n}","_readFromForm() {\n this.dao.phylum = document.getElementById('phylum').value;\n this.dao.phylum_ott_id = document.getElementById('phylum_ott_id').value;\n this.dao.class = document.getElementById('class').value;\n this.dao.class_ott_id = document.getElementById('class_ott_id').value;\n this.dao.order = document.getElementById('order').value;\n this.dao.order_ott_id = document.getElementById('order_ott_id').value;\n this.dao.family = document.getElementById('family').value;\n this.dao.family_ott_id = document.getElementById('family_ott_id').value;\n this.dao.genus = document.getElementById('genus').value;\n this.dao.genus_ott_id = document.getElementById('genus_ott_id').value;\n this.dao.species = document.getElementById('species').value;\n this.dao.species_ott_id = document.getElementById('species_ott_id').value;\n this.dao.unique_name = document.getElementById('unique_name').value;\n this.dao.vernacular_name = document.getElementById('vernacular_name').value;\n\n if (this.dao.ott_id =='' || this.dao.phylum == '' || this.dao.class == '' || \n this.dao.order == '' || this.dao.family == '' || this.dao.genus == '' ||\n this.dao.species == '' || this.dao.unique_name == '' ||\n this.dao.vernacular_name == '') throw('Please fill all fields');\n }","function saveInformation () {\n\t\t numOfCreditFun();\n\t\t bestMthContFun();\n\t\t var info = {};\n\t\t \tinfo.major = [\"Major Choice:\", $('#departments').val()];\n\t\t info.cName = [\"Course Name:\", $('#courseName').val()];\n\t\t info.cSection = [\"Course Section:\", $('#courseSection').val()];\n\t\t info.topicAndSec = [\"Topic and Section:\", $('#topicAndSection').val()];\n\t\t info.todaysDate = [\"Today's Date:\", $('#todaysDate').val];\n\t\t info.dueDate = [\"Due Date:\", $('#dueDate').val()];\n\t\t info.weeksOfClass = [\"Is the Class on Campus or Online:\", $('#weeksOfClass').val()];\n\t\t info.slideValue = [\"Due Date:\", $('#weeksOfClass').val()];\n\t\t info.courseNumCredits = [\"Number of Credits:\", numOfCreditFun];\n\t\t info.teacherName = [\"Teacher Name:\", $('#teacherName').val()];\n\t\t info.teacherEmail = [\"Teacher Email:\", $('#teacherEmail').val()];\n\t\t info.teacherPhone = [\"Teacher Phone:\", $('#teacherPhone').val()];\n\t\t info.bestMthCont = [\"Best Method To Get In Contact:\", bestMthContFun];\n\t\t info.note = [\"Note Section:\", $('#noteSection').val()];\n\t\t //localStorage.setItem(id, JSON.stringify(info));\n\t\t couchDBSave(info);\n\t\t}","function storeSettings() {\n check();\n browser.storage.local.set(f2j(form));\n}","function updateOutput6() {\n localStorage.setItem('info6', input_textarea6.value)\n}","function savedata(){\n var message = messageField.value;\n\n messagesRef.push({fieldName:'messageField', text:message});\n messageField.value = '';\n }","function updateOutput1() {\n localStorage.setItem('info1', input_textarea1.value)\n}","function savedData() {\n var i1 = localStorage.getItem('inputText1');\n inOutText1.text(i1);\n var i2 = localStorage.getItem('inputText2');\n inOutText2.text(i2);\n var i3 = localStorage.getItem('inputText3');\n inOutText3.text(i3);\n var i4 = localStorage.getItem('inputText4');\n inOutText4.text(i4);\n var i5 = localStorage.getItem('inputText5');\n inOutText5.text(i5);\n var i6 = localStorage.getItem('inputText6');\n inOutText6.text(i6);\n var i7 = localStorage.getItem('inputText7');\n inOutText7.text(i7);\n var i8 = localStorage.getItem('inputText8');\n inOutText8.text(i8);\n var i9 = localStorage.getItem('inputText9');\n inOutText9.text(i9);\n $('#clear').on(\"click\", function () {\n localStorage.clear();\n });\n\n }","save () {\n\n // Validate\n if (this.checkValidity()) {\n\n // Collect input\n this.info.item = this.collectInput();\n\n // Show modal\n this.modal.show();\n }\n }","function read() {\n\t\t\t\t\t\tvar html = element.html();\n\t\t\t\t\t\t// When we clear the content editable the browser leaves a
    behind\n\t\t\t\t\t\t// If strip-br attribute is provided then we strip this out\n\t\t\t\t\t\tif (attrs.stripBr && html == \"
    \") {\n\t\t\t\t\t\t\thtml = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tngModel.$setViewValue(html);\n\t\t\t\t\t}","_setEditorContentOnFormSubmit() {\n document.querySelector('#submit').addEventListener('click', () => {\n let ckeditorContent = this.editor.getData();\n $(\"textarea#entry_content\").val(ckeditorContent);\n\n return true;\n });\n }","save(blockContainer) {\n let newData = {}\n\n // Get the contents of each field for this tool.\n for (let key in this.fields) {\n const element = blockContainer.querySelector(`.${this.CSS.input}[data-key=${key}]`)\n newData[key] = element.tagName == 'INPUT' ? element.value : element.innerHTML\n newData[key] = newData[key].replace('&nbsp;', ' ').trim() // Strip non-breaking whitespace\n }\n\n // TODO: Because of autosave, this strips out necessary defaults prematurely.\n //this.removeInactiveData()\n return Object.assign(this.data, newData)\n }","function saveFormState() {\n const form = d.querySelector('form');\n const data = objectFromEntries(new FormData(form).entries());\n /*if (!wifi_store.checked) {\n data.json_config = '';\n }*/\n let formJson = JSON.stringify(data);\n storage.setItem('form', formJson);\n}","function updateOutput8() {\n localStorage.setItem('info8', input_textarea8.value)\n}","function read() {\n var html = element.html();\n // // When we clear the content editable the browser leaves a
    behind\n // // If strip-br attribute is provided then we strip this out\n // if( attrs.stripBr && html == '
    ' ) {\n // html = '';\n // }\n ngModel.$setViewValue(html);\n scope.$eval(attrs.change);\n\n }","function readEditData(){\n var formData = {};\n formData[\"namahasiswa\"] = document.getElementById(\"namahasiswa\").value;\n formData[\"NoInduk\"] = document.getElementById(\"NoInduk\").value;\n formData[\"Jurus\"] = document.getElementById(\"Jurus\").value;\n formData[\"Angkat\"] = document.getElementById(\"Angkat\").value;\n return formData\n}","function restore_inputs () {\n\n\t\t\t\tparse_variables();\n\n\t\t\t\t$('.form-w').val(W);\n\t\t\t\t$('.form-b').val(B);\n\t\t\t\t$('.form-mf').val(Mf);\n\t\t\t\t$('.form-mt').val(Mt);\n\n\t\t\t}","function storeData() {\n trainName = $(\"#Train-Name\").val();\n destinationName = $(\"#Destination-Name\").val();\n firstTrainTime = $(\"#First-Time\").val();\n trainFrequency = $(\"#Frequency\").val();\n}","function submit_inputs() {\n\n\t\t\t\tvar W = $('.form-w').val();\n\t\t\t\tvar B = $('.form-b').val();\n\t\t\t\tvar Mf = $('.form-mf').val();\n\t\t\t\tvar Mt = $('.form-mt').val();\n\n\t\t\t\tlocalStorage.setItem('SPLITTER_W', W);\n\t\t\t\tlocalStorage.setItem('SPLITTER_B', B);\n\t\t\t\tlocalStorage.setItem('SPLITTER_MF', Mf);\n\t\t\t\tlocalStorage.setItem('SPLITTER_MT', Mt);\n\n\t\t\t}","function saveState() {\n const state = {\n cf: cfSelect.value,\n gf: gfSelect.value,\n mf: mfSelect.value,\n am: amSelect.value,\n };\n localStorage.setItem('collecting_together_form', JSON.stringify(state));\n }","function storeData() {\n\t// This is a little bit of future proofing \n\tif (!submit.key) {\n\t\t// if there is no key, this is a new item and needs a new key\n\t\tvar id = \"ubuVers\" + Math.floor(Math.random()*10000001);\n\t} else {\n\t\t// set the id to the existing key we are editing\n\t\tid = submit.key;\n\t};\n\t\n // I like to give all my form elements their own id's to give myself access\n\t// outside of the form as well as simple access inside of it\n var ubuVersNumValue = ge('ubuVersNum').value,\n ubuVersNameValue = ge('ubuVersName').value,\n\t\tubuVersDict = {version: ubuVersNumValue, release: ubuVersNameValue};\n\t// log out those values as a double check\n console.log(ubuVersNumValue);\n console.log(ubuVersNameValue);\t\n\t\n\t// set the item in localstorage\n\t// note the stringify function\n\tlocalStorage.setItem(id, JSON.stringify(ubuVersDict));\n\t\n\t// log out the whole local storage\n\tconsole.log(localStorage);\n\tge('submit').value = 'Add';\n\n\n}","function read() {\n var html = element.html();\n // When we clear the content editable the browser leaves a
    behind\n // If strip-br attribute is provided then we strip this out\n if (attrs.stripBr && html == '
    ') {\n html = '';\n }\n ngModel.$setViewValue(html);\n }","function putValueToForm() {\r\n\r\n localStorValues3 = localStorage.getItem(localStorage.key(event.target.id));\r\n\r\n NlistOfLSvalues = JSON.parse(localStorValues3);\r\n\r\n myRef =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .previousElementSibling.previousElementSibling.previousElementSibling\r\n .previousElementSibling.innerText;\r\n removeAfromNameProduct =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .previousElementSibling.previousElementSibling.previousElementSibling\r\n .innerText;\r\n myDescription =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .previousElementSibling.previousElementSibling.innerText;\r\n myPrice =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .previousElementSibling.innerText;\r\n myStock =\r\n event.target.parentElement.previousElementSibling.previousElementSibling\r\n .innerText;\r\n\r\n key.value = event.target.id;\r\n ref.value = myRef;\r\n nameProduct.value = removeAfromNameProduct;\r\n descriptionProduct.value = myDescription;\r\n price.value = myPrice;\r\n stock.value = myStock;\r\n}","function readStuff() \n{ \n\tvar theform = document.theform;\n\n\t// Parse the category list\n\tcat = rewrite(theform.cats);\n\tncat = cat.length;\n\tvar badcats = false;\n\n\t// Make sure cats have structure like V=aeiou\n\tcatindex = \"\";\n\tvar w;\n\tfor (w = 0; w < ncat; w++) {\n\t\t// A final empty cat can be ignored\n\t\tthiscat = cat[w];\n\t\tif (thiscat.charCodeAt(thiscat.length - 1) == 13) {\n\t\t\tthiscat = thiscat.substr(0, thiscat .length - 1);\n\t\t\tcat[w] = thiscat;\n\t\t}\n\t\tif (thiscat.length == 0 && w == ncat - 1) {\n\t\t\tncat--;\n\t\t} else if (thiscat.length < 3) {\n\t\t\tbadcats = true;\n\t\t} else {\n\t\t\tif (find(thiscat , \"=\") == -1) {\n\t\t\t\tbadcats = true;\n\t\t\t} else {\n\t\t\t\tcatindex += thiscat.charAt(0);\n all_categories.push(thiscat);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Parse the sound changes \n\trul = rewrite(theform.rules);\n\tnrul = rul.length;\n \n var db = document.getElementById('db');\n db.style.display = 'none';\n db.innerHTML = '

    Bad rules which could not be parsed:

      ';\n \n\t// Remove trailing returns\n\tfor (w = 0; w < nrul; w++) {\n\t\tvar t = rul[w];\n\t\tif (t.charCodeAt(t.length - 1) == 13) {\n\t\t\trul[w] = t.substr(0, t.length - 1);\n\t\t\tt = rul[w];\n\t\t}\n\t\t\n\t\t// Sanity checks for valid rules\n\t\tvar valid = t.length > 0 && find(t, \">\") != -1;\n\t\tif (valid) {\n var pre = t.split('>')[0].replace(/[\\sØ]/g,'');\n if(t.indexOf('/') == -1){var post = '_';}\n else{var post = t.split('/')[1].replace(/\\s/,'');}\n var middle = t.split('>')[1].split('/')[0].replace(/[\\sØ]/,'');\n\n\t var thisrule = [pre,middle,post]; \n \n\t\t\tvalid = thisrule.length > 2 || \n\t\t\t\t(thisrule.length ==2 && \n\t\t\t\t find(thisrule[0], '\\u2192') != -1);\n\t\t\tif (valid) {\n\t\t\t\t// Insertions must have repl & nonuniversal env\n\t\t\t\tif (thisrule[0].length == 0) \n\t\t\t\t\tvalid = thisrule[1].length > 0 &&\n\t\t\t\t\t\tthisrule[2] != \"_\";\n\t\t\t}\n if(valid){all_rules.push(thisrule[0]+'>'+thisrule[1]+'/'+thisrule[2]);}\n\t\t}\n else\n {\n if(t.replace(/\\s/g,'') != '' && t[0] != '%')\n {\n db.innerHTML += '
    1. '+t+'
    2. ';\n db.style.display = 'block';\n }\n }\n\n\t\t// Invalid rules: move 'em all up\n\t\tif (!valid) {\n\t\t\tnrul--;\n\t\t\tfor (var q = w; q < nrul; q++) {\n\t\t\t\trul[q] = rul[q+1];\n\t\t\t}\n\t\t\tw--;\n\t\t}\n\t}\n db.innerHTML += '

    ';\n\n\t// Error strings\n\tif (badcats) {\n\t\treturn \"Categories are weird.\";\n\t} else if (nrul == 0) {\n\t\treturn \"There are no valid sound changes, so no output can be generated. Rules must be of the form s1/s2/e1_e2. The strings are optional, but the slashes are not.\" ;\n\t} else {\n\t\treturn \"\";\n\t}\n}","updateFormFromStorage() {\n // check for data if none return\n let data = localStorage.getItem('formData');\n if (!data) {\n this.setTransactions([]);\n // Looks like new user without data show tips modal.\n setTimeout(() => $('#tipsModal').modal(), 10000);\n return;\n }\n this.setForm(JSON.parse(data));\n // set the interface (transactions) options on the form\n this.setFormTransactions(JSON.parse(localStorage.getItem('transactions')));\n }","save() {\n try {\n this._toggleSaveThrobber();\n this._readFromForm();\n this.dao.save();\n\n // make sure the edit input is showing the correct id, reload data from server\n document.getElementById('edit_id').value = this.dao.id;\n this.read();\n \n } catch(e) {\n console.log(e);\n alert(e);\n }\n this._toggleSaveThrobber();\n }","function prefill_form(){\ndocument.getElementById(\"ref\").value = localStorage.job1Ref;\ndocument.getElementById(\"jobtitle\").value = localStorage.joblTitles;\n//alert(localStorage.job1Ref);\n}","function processForm() {\n\n // get the entered user name from the input\n var enteredUsername = $('input').val();\n localStorage.setItem('username', enteredUsername);\n database.ref('users/'+ enteredUsername).set({\n \tusername: enteredUsername\n \t});\n \n finishedCurrentView();\n \t//window.location.href = '/app/davidToLife';\n $('.username').html(enteredUsername);\n\n return false;\n}","function saveManageBusinessFields() {\n // Save business details in local Storage\n var businessName = document.getElementById('businessName').value;\n if (businessName != null) {\n localStorage.setItem('businessName', businessName);\n }\n\n var businessPhone = document.getElementById('businessPhone').value;\n if (businessPhone != null) {\n localStorage.setItem('businessPhone', businessPhone);\n }\n\n var businessAddress = document.getElementById('set-address').value;\n if (businessAddress != null) {\n localStorage.setItem('businessAddress', businessAddress);\n }\n}","function setData() {\n localStorage.setItem('name', username.value);\n localStorage.setItem('email', email.value);\n localStorage.setItem('city', city.value);\n localStorage.setItem('organisation', organisation.value);\n localStorage.setItem('contact', contact.value);\n localStorage.setItem('message', message.value);\n // Reset all the fields.\n username.value = '';\n email.value = '';\n city.value = 'city';\n organisation.value = '';\n contact.value = '';\n message.value = '';\n\n}","function read() {\n var html = element.html();\n // When we clear the content editable the browser leaves a
    behind\n // If strip-br attribute is provided then we strip this out\n if ( attrs.stripBr && html == '
    ' ) {\n html = '';\n }\n ngModel.$setViewValue(html);\n }","function read() {\n var html = element.html();\n // When we clear the content editable the browser leaves a
    behind\n // If strip-br attribute is provided then we strip this out\n if ( attrs.stripBr && html == '
    ' ) {\n html = '';\n }\n ngModel.$setViewValue(html);\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 save() {\n const newcontent = textarea.val().trim()\n if (has_pretty_content_holder)\n content_holder.hide()\n\n $.post(endpoint, {content: newcontent})\n .fail(_ => {\n\t controls.html(new_controls)\n\t content_holder.html(textarea)\n textarea.addClass('invalid')\n // TODO: on error, include error message\n })\n .done(answer => {\n\tif (has_pretty_content_holder)\n\t pretty_content_holder.html(answer)\n\trestore(newcontent)\n })\n }","function read() {\n var text = element.text();\n // When we clear the content editable the browser leaves a
    behind\n // If strip-br attribute is provided then we strip this out\n if (attrs.stripBr && text == '
    ') {\n text = '';\n }\n ngModel.$setViewValue(text);\n }","function copyText() {\n\tlocalStorage.setItem(\"text\", document.getElementById(\"textArea\").value);\n\tlocalStorage.setItem(\"size\", document.getElementById(\"fontSize\").value);\n\tlocalStorage.setItem(\"color\", document.getElementById(\"fontColor\").value);\n\tlocalStorage.setItem(\"font\", document.getElementById(\"font\").value);\n}","saveData() {\n if (this.s.unavailable()) {\n return;\n }\n\n for (const val of this.dispField.items) {\n this.s.set(val, this.dispField.checked(val));\n }\n\n this.s.set(\"unit\", this.unitField.get());\n this.s.set(\"format\", this.formatField.get());\n this.s.set(\"sort\", this.sortableField.toArray());\n }","function submitForm() {\n\n localStorage.setItem('pseudo', inputName.value); //Je stocke l'item \"pseudo\" dans localStorage\n}","function read() {\n var html = element.html();\n // When we clear the content editable the browser leaves a
    behind\n // If strip-br attribute is provided then we strip this out\n //if (attrs.stripBr && html == '
    ') {\n // html = '';\n //}\n ngModel.$setViewValue(html);\n }","function saveForm() {\n return saveCompanySite()\n .then(saveInternalNumbers);\n }","function read() {\n var html = element.html();\n // When we clear the content editable the browser leaves a
    behind\n // If strip-br attribute is provided then we strip this out\n if ( attrs.stripBr && html == '
    ' ) {\n html = '';\n }\n\n ngModel.$setViewValue(html);\n }","function read() {\n var html = element.html();\n // When we clear the content editable the browser leaves a
    behind\n // If strip-br attribute is provided then we strip this out\n if ( attrs.stripBr && html == '
    ' ) {\n html = '';\n }\n\n ngModel.$setViewValue(html);\n }","save() {\n this._toggleSaveThrobber();\n try {\n this._readFromForm();\n var resp = this.dao.save();\n if (!resp) {\n alert(\"Error while saving taxon.\")\n } else {\n var jsonObj = JSON.parse(resp);\n if (jsonObj[0].response == false ) {\n alert(jsonObj[1].response);\n } else {\n console.log(this.dao)\n // make sure the latin name input field is showing the correct name, reload data from server\n document.getElementById('latin_name').value = this.dao.unique_name;\n alert('Saved');\n }\n }\n } catch(e) {\n alert(e);\n console.log(e);\n }\n this._toggleSaveThrobber();\n }","function saveInfo(e) {\n e.preventDefault();\n //console.log(\"click\")\n var text = $(this).siblings('textarea').val().trim();\n var id = $(this).siblings('textarea').attr('id');\n\n localStorage.setItem(id, JSON.stringify(text));\n\n}","function saveCustomerData(form){\n // pick the data from the inputs\n let first = $(\"input[name=first]\").val();\n let email = $(\"input[name=email]\").val();\n let products = $(\"select[name=products]\").val();\n let quantity = $(\"input[name=quantity]\").val();\n\n // store the data in the object\n let CustomerData = {\n first: first,\n\t\temail: email,\n products:products,\n quantity:quantity\n\t};\n console.log(CustomerData);\n //stroing all the input in the local variable\n\tlocalStorage[\"CustomerData\"]=JSON.stringify(CustomerData);\n form.submit();\n}","function intosc()\n{\n\tvar theform = document.theform;\n\n\ttheform.rules.value =\n\t\ttheform.cats.value + \"\\n\" + \n\t\ttheform.rewrite.value + \"\\n\" + \n\t\ttheform.rules.value + \"\\n\";\n}","function onSubmitClick() {\n // get get-train-name\n data.train.code = inputElements.name.value;\n // get get-destination\n data.train.destination = inputElements.destination.value;\n // Check if all required fields are populated\n if (!isDataMissing()) {\n // Push data to firebase\n // database.ref().push(trainInfo);\n database.ref().push(data);\n // loop trough elements text input and\n for (let _key in inputElements) {\n // clean the text inputs\n inputElements[_key].value = \"\";\n }\n }\n // if any missing data display error\n else {\n // TODO: display error if missing data\n alert(\"Missing data\");\n }\n}","function updateOutput5() {\n localStorage.setItem('info5', input_textarea5.value)\n}","function writeToTempStorage(e) {\n //prevent page from refreshing when using form submit\n e.preventDefault();\n\n //if form empty send out alert\n if(text.value.trim() == '') {\n alert('Please enter text');\n }\n //else overwrite string html element for tempData\n else {\n tempData.innerHTML = `${text.value}`;\n }\n}","function processProcedure() {\n var form = document.forms[0];\n if (hasEmptyFields(form)) {\n alert('Es müssen alle Felder ausgefüllt werden!\\nDie Texte dürfen außerdem keine Sonderzeichen enthalten!');\n return;\n }\n var submitForm = document.forms[1];\n submitForm.elements[1].value = form.elements['name'].value;\n submitForm.elements[2].value = generateJson(form);\n submitForm.submit();\n}","function clean() {\r\n document.form.textview.value = \"\";\r\n}","function displayForm(res) {\n fs.readFile('betterform.html', function (err, data) {\n res.write(data);\n res.end();\n });\n}","function textChanged(e) {\n currentMemo.title = document.getElementById(\"memo-title\").value;\n currentMemo.content = document.getElementById(\"memo-content\").value;\n saveMemo(currentMemo, function (err, succ) {\n console.log(\"save memo callback \", err, succ);\n if (!err) {\n currentMemo.id = succ;\n }\n });\n}","fillForm(data) {\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","function backupInput() {\n lastInput = ELEMENTS.UPDATE_TEXTAREA.val();\n }","function saveMentorForm(e) {\n e.preventDefault();\n var category = document.getElementById(\"category\").value;\n var paragraph = document.getElementById(\"paragraph\").value;\n saveMentor(category, currentMentor.fullName, currentMentor.job, currentMentor.company, paragraph, currentMentor.img, currentMentor.mail, currentMentor.linkedinLink, currentMentor.linkedinID);\n}","_save() {\n let content = this.input.getContent().split(\"
    \").join(\"\")\n .split(\"
    \").join(\"\\n\");\n this.file.setContent(content);\n\n // create new file\n if (this.createFile)\n this.parentDirectory.addChild(this.file);\n }","function displayData() {\n\n if (localStorage.getItem(\"formData\") != null){\n\n let values = JSON.parse(localStorage.getItem(\"formData\"));\n \n nameInput.value = values[values.length-1].inpName;\n emailInput.value = values[values.length-1].inpEmail;\n phoneInput.value = values[values.length-1].inpPhone;\n messageInput.value = values[values.length-1].inpText;\n }\n \n}","function savingInLocalStorage() {\n\n\n //1.get all the calaculated data from the BudgetController:\n let sendDataToLocalStorage = budgetCtrl.getAllData();\n\n //2.send data to UIcontroller for storing it in local storage:\n document.querySelector(DOMClassNames.savingData).addEventListener('click', () => {\n\n //update the data to be sent:\n if (input && input.description !== '' && !isNaN(input.value) && input.value > 0) {\n\n sendDataToLocalStorage.total_income = budget.totalInc;\n sendDataToLocalStorage.total_expenditure = budget.totalExp\n sendDataToLocalStorage.final_budget = budget.budget;\n sendDataToLocalStorage.percentage = budget.percentage;\n\n UIctrl.saving(sendDataToLocalStorage);\n }\n })\n\n }","function saveTerrainModificationForm() {\n var terrainModificationType = terrainModificationForms[terrainModificationIndex][\"terrain-modification\"];\n var formEntries = document.getElementById(\"custom-inputs\").getElementsByClassName(\"custom-input\");\n for (var i = 0; i < formEntries.length; i++) {\n var input = formEntries.item(i);\n var fieldName = input.id;\n terrainModificationForms[terrainModificationIndex][\"json\"][\"fields\"][fieldName][\"value\"] = input.value;\n }\n}","function populate() {\n $('#title').val(localStorage.getItem('title')),\n $('#description').val(localStorage.getItem('description')),\n $('#content').html(localStorage.getItem('content'));\n}","function saveForm() {\n if (isNaN(inputTel.value)) {\n const newP = document.createElement('p');\n const textVal = document.createTextNode('Solo se aceptan números en el campo de Telefono');\n newP.appendChild(textVal);\n formContainer.appendChild(newP);\n } else {\n console.log('inside save funct');\n localStorage.setItem('nombre', inputNombre.value);\n localStorage.setItem('apellido', inputApellido.value);\n localStorage.setItem('tel', inputTel.value);\n localStorage.setItem('dir', inputDir.value);\n localStorage.setItem('obs', inputObs.value);\n console.log('data saved');\n }\n}","function read() {\n\t\t var html = element.html();\n\t\t console.log('HTM',html)\n\t\t // When we clear the content editable the browser leaves a
    behind\n\t\t // If strip-br attribute is provided then we strip this out\n\t\t if ( attrs.stripBr && html == '
    ' ) {\n\t\t html = '';\n\t\t }\n\t\t ngModel.$setViewValue(html);\n\t\t }","function setupFormEventListener() {\n form.addEventListener(\"submit\", function (e) {\n e.preventDefault();\n\n // Get the form data.\n var filename = filenameInput.value;\n var content = contentTextArea.value;\n\n // Save the file.\n saveFile(filename, content);\n });\n}","function saveData(id)\n\t{\n\t\tvar f = document.fuploadr;\n\t\tvar data = ImageStore[id];\n\t\t\n\t\tdata.title\t\t = f.title.value;\n\t\tdata.description = f.description.value;\n\t\tdata.tags\t\t = f.tags.value;\n\t\tdata.is_public\t = getChecked(f.is_public, 0);\n\t\tdata.is_friend\t = getChecked(f.is_friend, 0);\n\t\tdata.is_family\t = getChecked(f.is_family, 0);\n\t\tdata.safety_level = f.safety_level.value;\n\t\tdata.hidden\t\t = getChecked(f.hidden, 1);\n\t\t//data.content_type = f.content_type.value;\n\t}","fillForm(data){\n this.titleInput.value = data.title;\n this.bodyInput.value = data.body;\n this.idInput.value = data.id;\n\n this.changeFormState('edit');\n }","function storeFormData() {\n const formData = {\n name: formEl.name.value,\n phone: formEl.phone.value,\n email: formEl.email.value,\n url: formEl.website.value,\n password: formEl.password.value\n }\n\n console.log(formData);\n}","function importSave() {\r\n\tlet data = prompt(\"Paste your save string here\");\r\n\r\n\tif (data !== null && data !== '')\r\n\t\tparseAndImportData(data);\r\n\t\t\r\n\trunAll();\r\n}","function storeCurrent() {\r\n let currentData = {\r\n regexInput: regexInput.value,\r\n templateInput: templateInput.value,\r\n globalCheckbox: globalCheckbox.checked,\r\n caseInsensitiveCheckbox: caseInsensitiveCheckbox.checked,\r\n multilineCheckbox: multilineCheckbox.checked,\r\n IgnoreHTMLCheckbox: IgnoreHTMLCheckbox.checked,\r\n resultTextarea: resultTextarea.value,\r\n selectedItemIndex:selectedItemIndex,\r\n smallForm: smallFormCheckbox.checked\r\n };\r\n let store = browser.storage.local.set({\r\n currentData\r\n });\r\n store.then(onError, onError);\r\n}","function guardarFormData() {\n this.datos;\n this.fmodificado;\n this.usrid;\n this.casid;\n}","function save() {\n editors.forEach(function (editor, index) {\n textareas[index].value = editor.querySelector('.text').innerHTML;\n });\n }","function saveAnomalyForm() {\n var anomalyType = anomalyForms[anomalyIndex][\"anomaly\"];\n var formEntries = document.getElementById(\"custom-inputs\").getElementsByClassName(\"custom-input\");\n for (var i = 0; i < formEntries.length; i++) {\n var input = formEntries.item(i);\n var fieldName = input.id;\n anomalyForms[anomalyIndex][\"json\"][\"fields\"][fieldName][\"value\"] = input.value;\n }\n}"],"string":"[\n \"inputData() {\\n return (e) => {\\n e.persist();\\n var reader = new FileReader();\\n const self = this;\\n reader.onload = function(e) {\\n self.parseInputData(reader.result);\\n }\\n reader.readAsText(e.target.files[0]);\\n e.target.value = \\\"\\\";\\n };\\n }\",\n \"function getForm() {\\n inputNombre.value = localStorage.getItem('nombre');\\n inputApellido.value = localStorage.getItem('apellido');\\n inputTel.value = localStorage.getItem('tel');\\n inputDir.value = localStorage.getItem('dir');\\n inputObs.value = localStorage.getItem('obs');\\n console.log('data loaded');\\n}\",\n \"function saveAndExit() {\\r\\n\\tvar form = document.getElementById( \\\"hiddenfieldform\\\" );\\r\\n\\thidden.value = experior.getText(form);\\r\\n}\",\n \"function storeData(){\\r\\n\\t\\tvar id \\t\\t\\t\\t= Math.floor(Math.random()*100000000001);\\r\\n\\t\\t//Gather up all our form field values and store in an object\\r\\n\\t\\t//Object properties contain an array with the form label and input value\\r\\n\\t\\tgetSelectedRadio();\\r\\n\\t\\tvar item \\t\\t\\t\\t= {};\\r\\n\\t\\t\\titem.comicTitle\\t\\t= [\\\"Title of Comic:\\\", e('comicTitle').value];\\r\\n\\t\\t\\titem.seriesTitle\\t= [\\\"Title of Series:\\\", e('seriesTitle').value];\\r\\n\\t\\t\\titem.issueNum\\t\\t= [\\\"Issue Number:\\\", e('issueNum').value];\\r\\n\\t\\t\\titem.dateReleased\\t= [\\\"Date Released:\\\", e('dateReleased').value];\\r\\n\\t\\t\\titem.publisher\\t\\t= [\\\"Publisher:\\\", e('publisher').value];\\r\\n\\t\\t\\titem.rateIssue\\t\\t= [\\\"Rate of Issue:\\\", e('rateIssue').value];\\r\\n\\t\\t\\titem.genre \\t\\t\\t= [\\\"Genre:\\\", e('genre').value];\\r\\n\\t\\t\\titem.illStyle\\t\\t= [\\\"Illustration Style:\\\", styleValue];\\r\\n\\t\\t\\titem.comments\\t\\t= [\\\"Comments:\\\", e('comments').value];\\r\\n\\t\\t//Save data into Local Storage: Use Stringify to convert our object to a string\\r\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\r\\n\\t\\talert(\\\"Comic saved to index!\\\");\\r\\n\\t}\",\n \"function save() {\\n $editors.find('.text').each(function () {\\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\\n });\\n }\",\n \"function fetchStorage() {\\n txtFName.value = localStorage.getItem(\\\"input-name\\\");\\n txtLName.value = localStorage.getItem(\\\"input-lastname\\\");\\n txtPhone.value = localStorage.getItem(\\\"input-phone\\\");\\n txtEmail.value = localStorage.getItem(\\\"input-email\\\");\\n }\",\n \"function copyStorageToForm() {\\n \\\"use strict\\\";\\n // Set chosen hair type\\n setFormHairType(sessionStorage.getItem(\\\"hair_type\\\"));\\n\\n // Set selected traits\\n setFormTraits(sessionStorage.getItem(\\\"traits\\\"));\\n}\",\n \"function toChangeClefData(){\\n currentClefIndex = 0;\\n document.getElementById(\\\"input\\\").innerHTML = clefDataChangeForm();\\n}\",\n \"save() {\\n const newBasicBinary = trs80_base_1.parseBasicText(this.textarea.value);\\n if (typeof newBasicBinary === \\\"string\\\") {\\n this.showError(newBasicBinary);\\n return;\\n }\\n const newBasicProgram = trs80_base_1.decodeBasicProgram(newBasicBinary);\\n if (newBasicProgram === undefined) {\\n // I don't know how this might happen.\\n this.showError(\\\"Can't decode Basic program\\\");\\n return;\\n }\\n this.trs80.loadBasicProgram(newBasicProgram);\\n this.close();\\n }\",\n \"function applyCurrentClef(){\\n currentClefIndex = document.getElementById(\\\"clef\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = clefDataChangeForm();\\n}\",\n \"function save() {\\r\\n this.textarea.value = this.content();\\r\\n }\",\n \"function initialForm() {\\n\\n\\n var date = document.getElementById(\\\"date\\\").value\\n var name = document.getElementById(\\\"name\\\").value\\n var address = document.getElementById(\\\"address\\\").value\\n var datebirth = document.getElementById(\\\"datebirth\\\").value\\n var sex = document.getElementById(\\\"sex\\\").value\\n var civil = document.getElementById(\\\"civil\\\").value\\n var cp = document.getElementById(\\\"cp\\\").value\\n var tel = document.getElementById(\\\"tel\\\").value\\n var cel = document.getElementById(\\\"cel\\\").value\\n var mail = document.getElementById(\\\"mail\\\").value\\n // \\n document.getElementById(\\\"message\\\").innerHTML = \\\"Sus datos fueron guardados correctamente. Si necesita actualizar su información, por favor llene el formulario nuevamente o contacte al administrador.\\\"\\n\\n cleanFormInitial()\\n addFormToStorage(date, name, address, datebirth, sex, civil, cp, tel, cel, mail)\\n\\n\\n}\",\n \"_readFromForm() {\\n this.dao.citation_id = document.getElementById('citation_id').value;\\n this.dao.ott_id = document.getElementById('ott_id').value;\\n this.dao.background_noise_in_decibel = document.getElementById('background_noise_in_decibel').value;\\n this.dao.calibration = document.getElementById('calibration').value;\\n this.dao.distance_to_sound_source_in_meter = document.getElementById('distance_to_sound_source_in_meter').value;\\n this.dao.facility_id = document.getElementById('facility_id').value;\\n this.dao.latitude_in_decimal_degree = document.getElementById('latitude_in_decimal_degree').value;\\n this.dao.longitude_in_decimal_degree = document.getElementById('longitude_in_decimal_degree').value;\\n this.dao.measurement_method_id = document.getElementById('measurement_method_id').value;\\n this.dao.measurement_type = document.getElementById('measurement_type').value;\\n this.dao.medium = document.getElementById('medium').value;\\n this.dao.number_of_measurements = document.getElementById('number_of_measurements').value;\\n this.dao.position_first_electrode = document.getElementById('position_first_electrode').value;\\n this.dao.position_second_electrode = document.getElementById('position_second_electrode').value;\\n this.dao.position_third_electrode = document.getElementById('position_third_electrode').value;\\n this.dao.position_of_animal = document.getElementById('position_of_animal').value;\\n this.dao.sedated = document.getElementById('sedated').value;\\n this.dao.sedation_details = document.getElementById('sedation_details').value;\\n this.dao.test_environment_description = document.getElementById('test_environment_description').value;\\n this.dao.testtone_form_method_id = document.getElementById('testtone_form_method_id').value;\\n this.dao.testtone_presentation_method_constants = document.getElementById('testtone_presentation_method_constants').value;\\n this.dao.testtone_presentation_sound_form = document.getElementById('testtone_presentation_sound_form').value;\\n this.dao.testtone_presentation_staircase = document.getElementById('testtone_presentation_staircase').value;\\n this.dao.threshold_determination_method = document.getElementById('threshold_determination_method').value;\\n this.dao.year_of_experiment_start = document.getElementById('year_of_experiment_start').value;\\n this.dao.year_of_experiment_end = document.getElementById('year_of_experiment_end').value;\\n }\",\n \"function getFormData() {\\n // User Info Obj\\n const user = {\\n netID: document.getElementById('netID').value,\\n contact: document.getElementById('contact').value,\\n location: document.getElementById('location').value,\\n description: document.getElementById('issue').value,\\n team: document.getElementById('team').value,\\n manager: document.getElementById('managerId').value\\n };\\n // Get priority level selection RadioButtons\\n const rbs = document.querySelectorAll('input[name=radioBtn]');\\n let selectedValue;\\n for (const rb of rbs) {\\n if (rb.checked) {\\n selectedValue = rb.value;\\n break;\\n }\\n }\\n /*Get category*/\\n const category = {\\n cat: document.getElementById('cat').value,\\n sub: document.getElementById('sub').value\\n };\\n //Formatting for txt file.\\n const userData =\\n 'NetID: ' +\\n user.netID +\\n '\\\\n' +\\n '\\\\n' +\\n 'Contact: ' +\\n user.contact +\\n '\\\\n' +\\n '\\\\n' +\\n 'Location: ' +\\n user.location +\\n '\\\\n' +\\n '\\\\n' +\\n 'Priority: ' +\\n selectedValue +\\n '\\\\n' +\\n '\\\\n' +\\n 'Category: ' +\\n category.cat +\\n '\\\\n' +\\n '\\\\n' +\\n 'Sub-Category: ' +\\n category.sub +\\n '\\\\n' +\\n '\\\\n' +\\n 'Assignment Team: ' +\\n user.team +\\n '\\\\n' +\\n '\\\\n' +\\n 'Group Manager Contact: ' +\\n user.manager +\\n '\\\\n' +\\n '\\\\n' +\\n 'Full Description: ' +\\n '\\\\n' +\\n user.description;\\n //print date\\n const today = new Date();\\n //save BLOB to txt file\\n const blob = new Blob([userData], { type: 'text/plain;charset=utf-8' });\\n saveAs(blob, today);\\n //refresh page for new form\\n location.reload();\\n}\",\n \"function readUserInput() {\\n\\tvar settings = {};\\n\\t//Plasmid Section\\n\\tsettings.plasmidname = readtxtField(\\\"txtPlasmidName\\\");\\n\\tsettings.plasmidnameon = readField(\\\"bolShowPlasmidName\\\");\\n\\tsettings.plasmidsize = readField(\\\"txtPlasmidSize\\\");\\n\\tsettings.plasmidsizeon = readField(\\\"bolShowPlasmidSize\\\");\\n\\tsettings.plasmidradius = readField(\\\"txtRadius\\\");\\n\\tsettings.bbwidth = readField(\\\"txtBackBoneWidth\\\");\\n\\tsettings.bbcolor = readField(\\\"optBackBoneColor\\\");\\n\\tsettings.bbon = readField(\\\"bolShowBackBone\\\");\\n\\t//Feature Section (General)\\n\\tsettings.fwidth = readField(\\\"txtFeatureWidth\\\");\\n\\tsettings.fstrokewidth = readField(\\\"txtFeatureStrokeWidth\\\");\\n\\tsettings.fstrokered = readField(\\\"txtStrokeRed\\\");\\n\\tsettings.fstrokegreen = readField(\\\"txtStrokeGreen\\\");\\n\\tsettings.fstrokeblue = readField(\\\"txtStrokeBlue\\\");\\n\\tsettings.farrowlength = readField(\\\"txtArrowHeadLength\\\");\\n\\tsettings.farrowwidth = readField(\\\"txtArrowHeadWidth\\\");\\n\\t//Text section\\n\\tsettings.txton = readField(\\\"bolShowText\\\");\\n\\tsettings.txtfamily = readField(\\\"optFontFamily\\\");\\n\\tsettings.txtsize = readField(\\\"txtFontSize\\\");\\n\\tsettings.txtcolor = readField(\\\"optFontColor\\\");\\n\\tsettings.txtbold = readField(\\\"bolTextBold\\\");\\n\\tsettings.txtloc = readField(\\\"optTextLocation\\\");\\n\\t//Canvas section\\n\\tsettings.cw = readField(\\\"txtCanvasWidth\\\");\\n\\tsettings.ch = readField(\\\"txtCanvasHeight\\\");\\n\\tsettings.error = 0;\\n\\tsettings.errmsg = \\\"\\\";\\n\\t//Calculated properties\\n\\tsettings.ox = settings.cw / 2;\\n\\tsettings.oy = settings.ch / 2;\\n\\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\\n\\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\\n\\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\\n\\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\\n\\treturn settings;\\n}\",\n \"function save() {\\n this.textarea.value = this.content();\\n }\",\n \"function updateOutput7() {\\n localStorage.setItem('info7', input_textarea7.value)\\n}\",\n \"function updateOutput4() {\\n localStorage.setItem('info4', input_textarea4.value)\\n}\",\n \"function saveFormInput() {\\n var nameInput = $('name').value;\\n var keyInput = $('key').value;\\n var actionInput = $('action').value;\\n\\n // validation\\n if (!nameInput) {\\n showAlert('Name cannot be empty!', 'warning');\\n return;\\n }\\n\\n if (!keyInput) {\\n showAlert('Key cannot be empty!', 'warning');\\n return;\\n }\\n\\n if (!actionInput) {\\n showAlert('Action cannot be empty!', 'warning');\\n return;\\n }\\n\\n // Everything is saved in local storage as a JSON object\\n saveToLocalStorage(nameInput, keyInput, actionInput);\\n}\",\n \"fillForm() {\\n\\n if (localStorage.getItem(\\\"lastname\\\") !== undefined)\\n $(\\\"form\\\")[0].lastname.value = localStorage.getItem(\\\"lastname\\\");\\n\\n if (localStorage.getItem(\\\"firstname\\\") !== undefined)\\n $(\\\"form\\\")[0].firstname.value = localStorage.getItem(\\\"firstname\\\");\\n\\n }\",\n \"function load_data() {\\n var input = document.getElementById(\\\"commentName\\\");\\n var comm = document.getElementById(\\\"commentText\\\");\\n\\n input.value = localStorage.getItem('Name');\\n comm.value = localStorage.getItem('Comment');\\n}\",\n \"function setupDataForForm(){\\n if(typeof(hotty) != \\\"undefined\\\"){\\n $('#import_data').val(JSON.stringify(hotty.getData()));\\n console.log(\\\"updating the data...\\\");\\n }\\n else{\\n console.log(\\\"hotty isnt there, maybe just booting up!\\\");\\n }\\n }\",\n \"function updateOutput3() {\\n localStorage.setItem('info3', input_textarea3.value)\\n}\",\n \"resetFormContent() {\\n ContentUtils.updateElementContent(\\\"delimiter\\\", \\\"?\\\");\\n ContentUtils.updateElementContent(\\\"hasHeaderRow\\\", \\\"?\\\");\\n ContentUtils.updateElementContent(\\\"fileSize\\\", 0);\\n ContentUtils.updateElementContent(\\\"totalRecords\\\", 0);\\n ContentUtils.updateElementContent(\\\"badRecords\\\", 0);\\n ContentUtils.updateElementContent(\\\"inputCsvTable\\\", \\\"\\\");\\n ContentUtils.updateElementContent(\\\"badCsvTable\\\", \\\"\\\");\\n ContentUtils.updateElementContent(\\\"interpolatedCsvTable\\\", \\\"\\\");\\n ContentUtils.updateElementContent(\\\"invalidData\\\", \\\"\\\");\\n }\",\n \"function applyClefDataChanges(){\\n var line = document.getElementById(\\\"line\\\").value;\\n var shape = document.getElementById(\\\"shape\\\").value;\\n \\n if(line && line != \\\"none\\\"){\\n currentStaff.clefs[currentClefIndex].line = line;\\n }\\n if(shape && shape != \\\"none\\\"){\\n currentStaffs.clefs[currentClefIndex].shape = shape;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = clefDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function read() {\\n \\t// Keep the newline value for substitutin\\n \\t// when cleaning the
    \\n var newLine = String.fromCharCode(10);\\n \\t// Firefox adds a
    for each new line, we replace it back\\n \\t// to a regular '\\\\n'\\n var formattedValue = element.html().replace(/
    /ig,newLine).replace(/\\\\r/ig,'');\\n \\t// update the model\\n ngModel.$setViewValue(formattedValue);\\n \\t// Set the formated (cleaned) value back into\\n \\t// the element's html.\\n element.text(formattedValue);\\n }\",\n \"function updateOutput9() {\\n localStorage.setItem('info9', input_textarea9.value)\\n}\",\n \"function saveLocalStorage() {\\n localStorage['mainText'] = text_area.value;\\n localStorage['excText'] = excludeWord.value;\\n localStorage['percentReplacement'] = percentReplSlider.value;\\n localStorage['excludePronouns'] = chkPronouns.checked;\\n localStorage['excludeHyphenated'] = chkHyphens.checked;\\n localStorage['excludeConjunctions'] = chkConjunctions.checked;\\n localStorage['currReplacement'] = currReplacement;\\n localStorage['chkMultiWord'] = chkMultiWord.checked;\\n localStorage['chkNoRepeat'] = chkNoRepeat.checked;\\n}\",\n \"function updateOutput2() {\\n localStorage.setItem('info2', input_textarea2.value)\\n}\",\n \"function fillFormfromLocal(saveInfoLocalStorage){\\n const inputArray = document.querySelectorAll('input');\\n \\n for(let inputName of inputArray){\\n if(saveInfoLocalStorage[inputName.name] !== undefined){\\n inputName.value = saveInfoLocalStorage[inputName.name]\\n } else {\\n inputName.value = '';\\n }\\n }\\n}\",\n \"_readFromForm() {\\n this.dao.phylum = document.getElementById('phylum').value;\\n this.dao.phylum_ott_id = document.getElementById('phylum_ott_id').value;\\n this.dao.class = document.getElementById('class').value;\\n this.dao.class_ott_id = document.getElementById('class_ott_id').value;\\n this.dao.order = document.getElementById('order').value;\\n this.dao.order_ott_id = document.getElementById('order_ott_id').value;\\n this.dao.family = document.getElementById('family').value;\\n this.dao.family_ott_id = document.getElementById('family_ott_id').value;\\n this.dao.genus = document.getElementById('genus').value;\\n this.dao.genus_ott_id = document.getElementById('genus_ott_id').value;\\n this.dao.species = document.getElementById('species').value;\\n this.dao.species_ott_id = document.getElementById('species_ott_id').value;\\n this.dao.unique_name = document.getElementById('unique_name').value;\\n this.dao.vernacular_name = document.getElementById('vernacular_name').value;\\n\\n if (this.dao.ott_id =='' || this.dao.phylum == '' || this.dao.class == '' || \\n this.dao.order == '' || this.dao.family == '' || this.dao.genus == '' ||\\n this.dao.species == '' || this.dao.unique_name == '' ||\\n this.dao.vernacular_name == '') throw('Please fill all fields');\\n }\",\n \"function saveInformation () {\\n\\t\\t numOfCreditFun();\\n\\t\\t bestMthContFun();\\n\\t\\t var info = {};\\n\\t\\t \\tinfo.major = [\\\"Major Choice:\\\", $('#departments').val()];\\n\\t\\t info.cName = [\\\"Course Name:\\\", $('#courseName').val()];\\n\\t\\t info.cSection = [\\\"Course Section:\\\", $('#courseSection').val()];\\n\\t\\t info.topicAndSec = [\\\"Topic and Section:\\\", $('#topicAndSection').val()];\\n\\t\\t info.todaysDate = [\\\"Today's Date:\\\", $('#todaysDate').val];\\n\\t\\t info.dueDate = [\\\"Due Date:\\\", $('#dueDate').val()];\\n\\t\\t info.weeksOfClass = [\\\"Is the Class on Campus or Online:\\\", $('#weeksOfClass').val()];\\n\\t\\t info.slideValue = [\\\"Due Date:\\\", $('#weeksOfClass').val()];\\n\\t\\t info.courseNumCredits = [\\\"Number of Credits:\\\", numOfCreditFun];\\n\\t\\t info.teacherName = [\\\"Teacher Name:\\\", $('#teacherName').val()];\\n\\t\\t info.teacherEmail = [\\\"Teacher Email:\\\", $('#teacherEmail').val()];\\n\\t\\t info.teacherPhone = [\\\"Teacher Phone:\\\", $('#teacherPhone').val()];\\n\\t\\t info.bestMthCont = [\\\"Best Method To Get In Contact:\\\", bestMthContFun];\\n\\t\\t info.note = [\\\"Note Section:\\\", $('#noteSection').val()];\\n\\t\\t //localStorage.setItem(id, JSON.stringify(info));\\n\\t\\t couchDBSave(info);\\n\\t\\t}\",\n \"function storeSettings() {\\n check();\\n browser.storage.local.set(f2j(form));\\n}\",\n \"function updateOutput6() {\\n localStorage.setItem('info6', input_textarea6.value)\\n}\",\n \"function savedata(){\\n var message = messageField.value;\\n\\n messagesRef.push({fieldName:'messageField', text:message});\\n messageField.value = '';\\n }\",\n \"function updateOutput1() {\\n localStorage.setItem('info1', input_textarea1.value)\\n}\",\n \"function savedData() {\\n var i1 = localStorage.getItem('inputText1');\\n inOutText1.text(i1);\\n var i2 = localStorage.getItem('inputText2');\\n inOutText2.text(i2);\\n var i3 = localStorage.getItem('inputText3');\\n inOutText3.text(i3);\\n var i4 = localStorage.getItem('inputText4');\\n inOutText4.text(i4);\\n var i5 = localStorage.getItem('inputText5');\\n inOutText5.text(i5);\\n var i6 = localStorage.getItem('inputText6');\\n inOutText6.text(i6);\\n var i7 = localStorage.getItem('inputText7');\\n inOutText7.text(i7);\\n var i8 = localStorage.getItem('inputText8');\\n inOutText8.text(i8);\\n var i9 = localStorage.getItem('inputText9');\\n inOutText9.text(i9);\\n $('#clear').on(\\\"click\\\", function () {\\n localStorage.clear();\\n });\\n\\n }\",\n \"save () {\\n\\n // Validate\\n if (this.checkValidity()) {\\n\\n // Collect input\\n this.info.item = this.collectInput();\\n\\n // Show modal\\n this.modal.show();\\n }\\n }\",\n \"function read() {\\n\\t\\t\\t\\t\\t\\tvar html = element.html();\\n\\t\\t\\t\\t\\t\\t// When we clear the content editable the browser leaves a
    behind\\n\\t\\t\\t\\t\\t\\t// If strip-br attribute is provided then we strip this out\\n\\t\\t\\t\\t\\t\\tif (attrs.stripBr && html == \\\"
    \\\") {\\n\\t\\t\\t\\t\\t\\t\\thtml = \\\"\\\";\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tngModel.$setViewValue(html);\\n\\t\\t\\t\\t\\t}\",\n \"_setEditorContentOnFormSubmit() {\\n document.querySelector('#submit').addEventListener('click', () => {\\n let ckeditorContent = this.editor.getData();\\n $(\\\"textarea#entry_content\\\").val(ckeditorContent);\\n\\n return true;\\n });\\n }\",\n \"save(blockContainer) {\\n let newData = {}\\n\\n // Get the contents of each field for this tool.\\n for (let key in this.fields) {\\n const element = blockContainer.querySelector(`.${this.CSS.input}[data-key=${key}]`)\\n newData[key] = element.tagName == 'INPUT' ? element.value : element.innerHTML\\n newData[key] = newData[key].replace('&nbsp;', ' ').trim() // Strip non-breaking whitespace\\n }\\n\\n // TODO: Because of autosave, this strips out necessary defaults prematurely.\\n //this.removeInactiveData()\\n return Object.assign(this.data, newData)\\n }\",\n \"function saveFormState() {\\n const form = d.querySelector('form');\\n const data = objectFromEntries(new FormData(form).entries());\\n /*if (!wifi_store.checked) {\\n data.json_config = '';\\n }*/\\n let formJson = JSON.stringify(data);\\n storage.setItem('form', formJson);\\n}\",\n \"function updateOutput8() {\\n localStorage.setItem('info8', input_textarea8.value)\\n}\",\n \"function read() {\\n var html = element.html();\\n // // When we clear the content editable the browser leaves a
    behind\\n // // If strip-br attribute is provided then we strip this out\\n // if( attrs.stripBr && html == '
    ' ) {\\n // html = '';\\n // }\\n ngModel.$setViewValue(html);\\n scope.$eval(attrs.change);\\n\\n }\",\n \"function readEditData(){\\n var formData = {};\\n formData[\\\"namahasiswa\\\"] = document.getElementById(\\\"namahasiswa\\\").value;\\n formData[\\\"NoInduk\\\"] = document.getElementById(\\\"NoInduk\\\").value;\\n formData[\\\"Jurus\\\"] = document.getElementById(\\\"Jurus\\\").value;\\n formData[\\\"Angkat\\\"] = document.getElementById(\\\"Angkat\\\").value;\\n return formData\\n}\",\n \"function restore_inputs () {\\n\\n\\t\\t\\t\\tparse_variables();\\n\\n\\t\\t\\t\\t$('.form-w').val(W);\\n\\t\\t\\t\\t$('.form-b').val(B);\\n\\t\\t\\t\\t$('.form-mf').val(Mf);\\n\\t\\t\\t\\t$('.form-mt').val(Mt);\\n\\n\\t\\t\\t}\",\n \"function storeData() {\\n trainName = $(\\\"#Train-Name\\\").val();\\n destinationName = $(\\\"#Destination-Name\\\").val();\\n firstTrainTime = $(\\\"#First-Time\\\").val();\\n trainFrequency = $(\\\"#Frequency\\\").val();\\n}\",\n \"function submit_inputs() {\\n\\n\\t\\t\\t\\tvar W = $('.form-w').val();\\n\\t\\t\\t\\tvar B = $('.form-b').val();\\n\\t\\t\\t\\tvar Mf = $('.form-mf').val();\\n\\t\\t\\t\\tvar Mt = $('.form-mt').val();\\n\\n\\t\\t\\t\\tlocalStorage.setItem('SPLITTER_W', W);\\n\\t\\t\\t\\tlocalStorage.setItem('SPLITTER_B', B);\\n\\t\\t\\t\\tlocalStorage.setItem('SPLITTER_MF', Mf);\\n\\t\\t\\t\\tlocalStorage.setItem('SPLITTER_MT', Mt);\\n\\n\\t\\t\\t}\",\n \"function saveState() {\\n const state = {\\n cf: cfSelect.value,\\n gf: gfSelect.value,\\n mf: mfSelect.value,\\n am: amSelect.value,\\n };\\n localStorage.setItem('collecting_together_form', JSON.stringify(state));\\n }\",\n \"function storeData() {\\n\\t// This is a little bit of future proofing \\n\\tif (!submit.key) {\\n\\t\\t// if there is no key, this is a new item and needs a new key\\n\\t\\tvar id = \\\"ubuVers\\\" + Math.floor(Math.random()*10000001);\\n\\t} else {\\n\\t\\t// set the id to the existing key we are editing\\n\\t\\tid = submit.key;\\n\\t};\\n\\t\\n // I like to give all my form elements their own id's to give myself access\\n\\t// outside of the form as well as simple access inside of it\\n var ubuVersNumValue = ge('ubuVersNum').value,\\n ubuVersNameValue = ge('ubuVersName').value,\\n\\t\\tubuVersDict = {version: ubuVersNumValue, release: ubuVersNameValue};\\n\\t// log out those values as a double check\\n console.log(ubuVersNumValue);\\n console.log(ubuVersNameValue);\\t\\n\\t\\n\\t// set the item in localstorage\\n\\t// note the stringify function\\n\\tlocalStorage.setItem(id, JSON.stringify(ubuVersDict));\\n\\t\\n\\t// log out the whole local storage\\n\\tconsole.log(localStorage);\\n\\tge('submit').value = 'Add';\\n\\n\\n}\",\n \"function read() {\\n var html = element.html();\\n // When we clear the content editable the browser leaves a
    behind\\n // If strip-br attribute is provided then we strip this out\\n if (attrs.stripBr && html == '
    ') {\\n html = '';\\n }\\n ngModel.$setViewValue(html);\\n }\",\n \"function putValueToForm() {\\r\\n\\r\\n localStorValues3 = localStorage.getItem(localStorage.key(event.target.id));\\r\\n\\r\\n NlistOfLSvalues = JSON.parse(localStorValues3);\\r\\n\\r\\n myRef =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.innerText;\\r\\n removeAfromNameProduct =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.previousElementSibling.previousElementSibling\\r\\n .innerText;\\r\\n myDescription =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.previousElementSibling.innerText;\\r\\n myPrice =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .previousElementSibling.innerText;\\r\\n myStock =\\r\\n event.target.parentElement.previousElementSibling.previousElementSibling\\r\\n .innerText;\\r\\n\\r\\n key.value = event.target.id;\\r\\n ref.value = myRef;\\r\\n nameProduct.value = removeAfromNameProduct;\\r\\n descriptionProduct.value = myDescription;\\r\\n price.value = myPrice;\\r\\n stock.value = myStock;\\r\\n}\",\n \"function readStuff() \\n{ \\n\\tvar theform = document.theform;\\n\\n\\t// Parse the category list\\n\\tcat = rewrite(theform.cats);\\n\\tncat = cat.length;\\n\\tvar badcats = false;\\n\\n\\t// Make sure cats have structure like V=aeiou\\n\\tcatindex = \\\"\\\";\\n\\tvar w;\\n\\tfor (w = 0; w < ncat; w++) {\\n\\t\\t// A final empty cat can be ignored\\n\\t\\tthiscat = cat[w];\\n\\t\\tif (thiscat.charCodeAt(thiscat.length - 1) == 13) {\\n\\t\\t\\tthiscat = thiscat.substr(0, thiscat .length - 1);\\n\\t\\t\\tcat[w] = thiscat;\\n\\t\\t}\\n\\t\\tif (thiscat.length == 0 && w == ncat - 1) {\\n\\t\\t\\tncat--;\\n\\t\\t} else if (thiscat.length < 3) {\\n\\t\\t\\tbadcats = true;\\n\\t\\t} else {\\n\\t\\t\\tif (find(thiscat , \\\"=\\\") == -1) {\\n\\t\\t\\t\\tbadcats = true;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tcatindex += thiscat.charAt(0);\\n all_categories.push(thiscat);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// Parse the sound changes \\n\\trul = rewrite(theform.rules);\\n\\tnrul = rul.length;\\n \\n var db = document.getElementById('db');\\n db.style.display = 'none';\\n db.innerHTML = '

    Bad rules which could not be parsed:

      ';\\n \\n\\t// Remove trailing returns\\n\\tfor (w = 0; w < nrul; w++) {\\n\\t\\tvar t = rul[w];\\n\\t\\tif (t.charCodeAt(t.length - 1) == 13) {\\n\\t\\t\\trul[w] = t.substr(0, t.length - 1);\\n\\t\\t\\tt = rul[w];\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Sanity checks for valid rules\\n\\t\\tvar valid = t.length > 0 && find(t, \\\">\\\") != -1;\\n\\t\\tif (valid) {\\n var pre = t.split('>')[0].replace(/[\\\\sØ]/g,'');\\n if(t.indexOf('/') == -1){var post = '_';}\\n else{var post = t.split('/')[1].replace(/\\\\s/,'');}\\n var middle = t.split('>')[1].split('/')[0].replace(/[\\\\sØ]/,'');\\n\\n\\t var thisrule = [pre,middle,post]; \\n \\n\\t\\t\\tvalid = thisrule.length > 2 || \\n\\t\\t\\t\\t(thisrule.length ==2 && \\n\\t\\t\\t\\t find(thisrule[0], '\\\\u2192') != -1);\\n\\t\\t\\tif (valid) {\\n\\t\\t\\t\\t// Insertions must have repl & nonuniversal env\\n\\t\\t\\t\\tif (thisrule[0].length == 0) \\n\\t\\t\\t\\t\\tvalid = thisrule[1].length > 0 &&\\n\\t\\t\\t\\t\\t\\tthisrule[2] != \\\"_\\\";\\n\\t\\t\\t}\\n if(valid){all_rules.push(thisrule[0]+'>'+thisrule[1]+'/'+thisrule[2]);}\\n\\t\\t}\\n else\\n {\\n if(t.replace(/\\\\s/g,'') != '' && t[0] != '%')\\n {\\n db.innerHTML += '
    1. '+t+'
    2. ';\\n db.style.display = 'block';\\n }\\n }\\n\\n\\t\\t// Invalid rules: move 'em all up\\n\\t\\tif (!valid) {\\n\\t\\t\\tnrul--;\\n\\t\\t\\tfor (var q = w; q < nrul; q++) {\\n\\t\\t\\t\\trul[q] = rul[q+1];\\n\\t\\t\\t}\\n\\t\\t\\tw--;\\n\\t\\t}\\n\\t}\\n db.innerHTML += '

    ';\\n\\n\\t// Error strings\\n\\tif (badcats) {\\n\\t\\treturn \\\"Categories are weird.\\\";\\n\\t} else if (nrul == 0) {\\n\\t\\treturn \\\"There are no valid sound changes, so no output can be generated. Rules must be of the form s1/s2/e1_e2. The strings are optional, but the slashes are not.\\\" ;\\n\\t} else {\\n\\t\\treturn \\\"\\\";\\n\\t}\\n}\",\n \"updateFormFromStorage() {\\n // check for data if none return\\n let data = localStorage.getItem('formData');\\n if (!data) {\\n this.setTransactions([]);\\n // Looks like new user without data show tips modal.\\n setTimeout(() => $('#tipsModal').modal(), 10000);\\n return;\\n }\\n this.setForm(JSON.parse(data));\\n // set the interface (transactions) options on the form\\n this.setFormTransactions(JSON.parse(localStorage.getItem('transactions')));\\n }\",\n \"save() {\\n try {\\n this._toggleSaveThrobber();\\n this._readFromForm();\\n this.dao.save();\\n\\n // make sure the edit input is showing the correct id, reload data from server\\n document.getElementById('edit_id').value = this.dao.id;\\n this.read();\\n \\n } catch(e) {\\n console.log(e);\\n alert(e);\\n }\\n this._toggleSaveThrobber();\\n }\",\n \"function prefill_form(){\\ndocument.getElementById(\\\"ref\\\").value = localStorage.job1Ref;\\ndocument.getElementById(\\\"jobtitle\\\").value = localStorage.joblTitles;\\n//alert(localStorage.job1Ref);\\n}\",\n \"function processForm() {\\n\\n // get the entered user name from the input\\n var enteredUsername = $('input').val();\\n localStorage.setItem('username', enteredUsername);\\n database.ref('users/'+ enteredUsername).set({\\n \\tusername: enteredUsername\\n \\t});\\n \\n finishedCurrentView();\\n \\t//window.location.href = '/app/davidToLife';\\n $('.username').html(enteredUsername);\\n\\n return false;\\n}\",\n \"function saveManageBusinessFields() {\\n // Save business details in local Storage\\n var businessName = document.getElementById('businessName').value;\\n if (businessName != null) {\\n localStorage.setItem('businessName', businessName);\\n }\\n\\n var businessPhone = document.getElementById('businessPhone').value;\\n if (businessPhone != null) {\\n localStorage.setItem('businessPhone', businessPhone);\\n }\\n\\n var businessAddress = document.getElementById('set-address').value;\\n if (businessAddress != null) {\\n localStorage.setItem('businessAddress', businessAddress);\\n }\\n}\",\n \"function setData() {\\n localStorage.setItem('name', username.value);\\n localStorage.setItem('email', email.value);\\n localStorage.setItem('city', city.value);\\n localStorage.setItem('organisation', organisation.value);\\n localStorage.setItem('contact', contact.value);\\n localStorage.setItem('message', message.value);\\n // Reset all the fields.\\n username.value = '';\\n email.value = '';\\n city.value = 'city';\\n organisation.value = '';\\n contact.value = '';\\n message.value = '';\\n\\n}\",\n \"function read() {\\n var html = element.html();\\n // When we clear the content editable the browser leaves a
    behind\\n // If strip-br attribute is provided then we strip this out\\n if ( attrs.stripBr && html == '
    ' ) {\\n html = '';\\n }\\n ngModel.$setViewValue(html);\\n }\",\n \"function read() {\\n var html = element.html();\\n // When we clear the content editable the browser leaves a
    behind\\n // If strip-br attribute is provided then we strip this out\\n if ( attrs.stripBr && html == '
    ' ) {\\n html = '';\\n }\\n ngModel.$setViewValue(html);\\n }\",\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}\",\n \"function save() {\\n const newcontent = textarea.val().trim()\\n if (has_pretty_content_holder)\\n content_holder.hide()\\n\\n $.post(endpoint, {content: newcontent})\\n .fail(_ => {\\n\\t controls.html(new_controls)\\n\\t content_holder.html(textarea)\\n textarea.addClass('invalid')\\n // TODO: on error, include error message\\n })\\n .done(answer => {\\n\\tif (has_pretty_content_holder)\\n\\t pretty_content_holder.html(answer)\\n\\trestore(newcontent)\\n })\\n }\",\n \"function read() {\\n var text = element.text();\\n // When we clear the content editable the browser leaves a
    behind\\n // If strip-br attribute is provided then we strip this out\\n if (attrs.stripBr && text == '
    ') {\\n text = '';\\n }\\n ngModel.$setViewValue(text);\\n }\",\n \"function copyText() {\\n\\tlocalStorage.setItem(\\\"text\\\", document.getElementById(\\\"textArea\\\").value);\\n\\tlocalStorage.setItem(\\\"size\\\", document.getElementById(\\\"fontSize\\\").value);\\n\\tlocalStorage.setItem(\\\"color\\\", document.getElementById(\\\"fontColor\\\").value);\\n\\tlocalStorage.setItem(\\\"font\\\", document.getElementById(\\\"font\\\").value);\\n}\",\n \"saveData() {\\n if (this.s.unavailable()) {\\n return;\\n }\\n\\n for (const val of this.dispField.items) {\\n this.s.set(val, this.dispField.checked(val));\\n }\\n\\n this.s.set(\\\"unit\\\", this.unitField.get());\\n this.s.set(\\\"format\\\", this.formatField.get());\\n this.s.set(\\\"sort\\\", this.sortableField.toArray());\\n }\",\n \"function submitForm() {\\n\\n localStorage.setItem('pseudo', inputName.value); //Je stocke l'item \\\"pseudo\\\" dans localStorage\\n}\",\n \"function read() {\\n var html = element.html();\\n // When we clear the content editable the browser leaves a
    behind\\n // If strip-br attribute is provided then we strip this out\\n //if (attrs.stripBr && html == '
    ') {\\n // html = '';\\n //}\\n ngModel.$setViewValue(html);\\n }\",\n \"function saveForm() {\\n return saveCompanySite()\\n .then(saveInternalNumbers);\\n }\",\n \"function read() {\\n var html = element.html();\\n // When we clear the content editable the browser leaves a
    behind\\n // If strip-br attribute is provided then we strip this out\\n if ( attrs.stripBr && html == '
    ' ) {\\n html = '';\\n }\\n\\n ngModel.$setViewValue(html);\\n }\",\n \"function read() {\\n var html = element.html();\\n // When we clear the content editable the browser leaves a
    behind\\n // If strip-br attribute is provided then we strip this out\\n if ( attrs.stripBr && html == '
    ' ) {\\n html = '';\\n }\\n\\n ngModel.$setViewValue(html);\\n }\",\n \"save() {\\n this._toggleSaveThrobber();\\n try {\\n this._readFromForm();\\n var resp = this.dao.save();\\n if (!resp) {\\n alert(\\\"Error while saving taxon.\\\")\\n } else {\\n var jsonObj = JSON.parse(resp);\\n if (jsonObj[0].response == false ) {\\n alert(jsonObj[1].response);\\n } else {\\n console.log(this.dao)\\n // make sure the latin name input field is showing the correct name, reload data from server\\n document.getElementById('latin_name').value = this.dao.unique_name;\\n alert('Saved');\\n }\\n }\\n } catch(e) {\\n alert(e);\\n console.log(e);\\n }\\n this._toggleSaveThrobber();\\n }\",\n \"function saveInfo(e) {\\n e.preventDefault();\\n //console.log(\\\"click\\\")\\n var text = $(this).siblings('textarea').val().trim();\\n var id = $(this).siblings('textarea').attr('id');\\n\\n localStorage.setItem(id, JSON.stringify(text));\\n\\n}\",\n \"function saveCustomerData(form){\\n // pick the data from the inputs\\n let first = $(\\\"input[name=first]\\\").val();\\n let email = $(\\\"input[name=email]\\\").val();\\n let products = $(\\\"select[name=products]\\\").val();\\n let quantity = $(\\\"input[name=quantity]\\\").val();\\n\\n // store the data in the object\\n let CustomerData = {\\n first: first,\\n\\t\\temail: email,\\n products:products,\\n quantity:quantity\\n\\t};\\n console.log(CustomerData);\\n //stroing all the input in the local variable\\n\\tlocalStorage[\\\"CustomerData\\\"]=JSON.stringify(CustomerData);\\n form.submit();\\n}\",\n \"function intosc()\\n{\\n\\tvar theform = document.theform;\\n\\n\\ttheform.rules.value =\\n\\t\\ttheform.cats.value + \\\"\\\\n\\\" + \\n\\t\\ttheform.rewrite.value + \\\"\\\\n\\\" + \\n\\t\\ttheform.rules.value + \\\"\\\\n\\\";\\n}\",\n \"function onSubmitClick() {\\n // get get-train-name\\n data.train.code = inputElements.name.value;\\n // get get-destination\\n data.train.destination = inputElements.destination.value;\\n // Check if all required fields are populated\\n if (!isDataMissing()) {\\n // Push data to firebase\\n // database.ref().push(trainInfo);\\n database.ref().push(data);\\n // loop trough elements text input and\\n for (let _key in inputElements) {\\n // clean the text inputs\\n inputElements[_key].value = \\\"\\\";\\n }\\n }\\n // if any missing data display error\\n else {\\n // TODO: display error if missing data\\n alert(\\\"Missing data\\\");\\n }\\n}\",\n \"function updateOutput5() {\\n localStorage.setItem('info5', input_textarea5.value)\\n}\",\n \"function writeToTempStorage(e) {\\n //prevent page from refreshing when using form submit\\n e.preventDefault();\\n\\n //if form empty send out alert\\n if(text.value.trim() == '') {\\n alert('Please enter text');\\n }\\n //else overwrite string html element for tempData\\n else {\\n tempData.innerHTML = `${text.value}`;\\n }\\n}\",\n \"function processProcedure() {\\n var form = document.forms[0];\\n if (hasEmptyFields(form)) {\\n alert('Es müssen alle Felder ausgefüllt werden!\\\\nDie Texte dürfen außerdem keine Sonderzeichen enthalten!');\\n return;\\n }\\n var submitForm = document.forms[1];\\n submitForm.elements[1].value = form.elements['name'].value;\\n submitForm.elements[2].value = generateJson(form);\\n submitForm.submit();\\n}\",\n \"function clean() {\\r\\n document.form.textview.value = \\\"\\\";\\r\\n}\",\n \"function displayForm(res) {\\n fs.readFile('betterform.html', function (err, data) {\\n res.write(data);\\n res.end();\\n });\\n}\",\n \"function textChanged(e) {\\n currentMemo.title = document.getElementById(\\\"memo-title\\\").value;\\n currentMemo.content = document.getElementById(\\\"memo-content\\\").value;\\n saveMemo(currentMemo, function (err, succ) {\\n console.log(\\\"save memo callback \\\", err, succ);\\n if (!err) {\\n currentMemo.id = succ;\\n }\\n });\\n}\",\n \"fillForm(data) {\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"function backupInput() {\\n lastInput = ELEMENTS.UPDATE_TEXTAREA.val();\\n }\",\n \"function saveMentorForm(e) {\\n e.preventDefault();\\n var category = document.getElementById(\\\"category\\\").value;\\n var paragraph = document.getElementById(\\\"paragraph\\\").value;\\n saveMentor(category, currentMentor.fullName, currentMentor.job, currentMentor.company, paragraph, currentMentor.img, currentMentor.mail, currentMentor.linkedinLink, currentMentor.linkedinID);\\n}\",\n \"_save() {\\n let content = this.input.getContent().split(\\\"
    \\\").join(\\\"\\\")\\n .split(\\\"
    \\\").join(\\\"\\\\n\\\");\\n this.file.setContent(content);\\n\\n // create new file\\n if (this.createFile)\\n this.parentDirectory.addChild(this.file);\\n }\",\n \"function displayData() {\\n\\n if (localStorage.getItem(\\\"formData\\\") != null){\\n\\n let values = JSON.parse(localStorage.getItem(\\\"formData\\\"));\\n \\n nameInput.value = values[values.length-1].inpName;\\n emailInput.value = values[values.length-1].inpEmail;\\n phoneInput.value = values[values.length-1].inpPhone;\\n messageInput.value = values[values.length-1].inpText;\\n }\\n \\n}\",\n \"function savingInLocalStorage() {\\n\\n\\n //1.get all the calaculated data from the BudgetController:\\n let sendDataToLocalStorage = budgetCtrl.getAllData();\\n\\n //2.send data to UIcontroller for storing it in local storage:\\n document.querySelector(DOMClassNames.savingData).addEventListener('click', () => {\\n\\n //update the data to be sent:\\n if (input && input.description !== '' && !isNaN(input.value) && input.value > 0) {\\n\\n sendDataToLocalStorage.total_income = budget.totalInc;\\n sendDataToLocalStorage.total_expenditure = budget.totalExp\\n sendDataToLocalStorage.final_budget = budget.budget;\\n sendDataToLocalStorage.percentage = budget.percentage;\\n\\n UIctrl.saving(sendDataToLocalStorage);\\n }\\n })\\n\\n }\",\n \"function saveTerrainModificationForm() {\\n var terrainModificationType = terrainModificationForms[terrainModificationIndex][\\\"terrain-modification\\\"];\\n var formEntries = document.getElementById(\\\"custom-inputs\\\").getElementsByClassName(\\\"custom-input\\\");\\n for (var i = 0; i < formEntries.length; i++) {\\n var input = formEntries.item(i);\\n var fieldName = input.id;\\n terrainModificationForms[terrainModificationIndex][\\\"json\\\"][\\\"fields\\\"][fieldName][\\\"value\\\"] = input.value;\\n }\\n}\",\n \"function populate() {\\n $('#title').val(localStorage.getItem('title')),\\n $('#description').val(localStorage.getItem('description')),\\n $('#content').html(localStorage.getItem('content'));\\n}\",\n \"function saveForm() {\\n if (isNaN(inputTel.value)) {\\n const newP = document.createElement('p');\\n const textVal = document.createTextNode('Solo se aceptan números en el campo de Telefono');\\n newP.appendChild(textVal);\\n formContainer.appendChild(newP);\\n } else {\\n console.log('inside save funct');\\n localStorage.setItem('nombre', inputNombre.value);\\n localStorage.setItem('apellido', inputApellido.value);\\n localStorage.setItem('tel', inputTel.value);\\n localStorage.setItem('dir', inputDir.value);\\n localStorage.setItem('obs', inputObs.value);\\n console.log('data saved');\\n }\\n}\",\n \"function read() {\\n\\t\\t var html = element.html();\\n\\t\\t console.log('HTM',html)\\n\\t\\t // When we clear the content editable the browser leaves a
    behind\\n\\t\\t // If strip-br attribute is provided then we strip this out\\n\\t\\t if ( attrs.stripBr && html == '
    ' ) {\\n\\t\\t html = '';\\n\\t\\t }\\n\\t\\t ngModel.$setViewValue(html);\\n\\t\\t }\",\n \"function setupFormEventListener() {\\n form.addEventListener(\\\"submit\\\", function (e) {\\n e.preventDefault();\\n\\n // Get the form data.\\n var filename = filenameInput.value;\\n var content = contentTextArea.value;\\n\\n // Save the file.\\n saveFile(filename, content);\\n });\\n}\",\n \"function saveData(id)\\n\\t{\\n\\t\\tvar f = document.fuploadr;\\n\\t\\tvar data = ImageStore[id];\\n\\t\\t\\n\\t\\tdata.title\\t\\t = f.title.value;\\n\\t\\tdata.description = f.description.value;\\n\\t\\tdata.tags\\t\\t = f.tags.value;\\n\\t\\tdata.is_public\\t = getChecked(f.is_public, 0);\\n\\t\\tdata.is_friend\\t = getChecked(f.is_friend, 0);\\n\\t\\tdata.is_family\\t = getChecked(f.is_family, 0);\\n\\t\\tdata.safety_level = f.safety_level.value;\\n\\t\\tdata.hidden\\t\\t = getChecked(f.hidden, 1);\\n\\t\\t//data.content_type = f.content_type.value;\\n\\t}\",\n \"fillForm(data){\\n this.titleInput.value = data.title;\\n this.bodyInput.value = data.body;\\n this.idInput.value = data.id;\\n\\n this.changeFormState('edit');\\n }\",\n \"function storeFormData() {\\n const formData = {\\n name: formEl.name.value,\\n phone: formEl.phone.value,\\n email: formEl.email.value,\\n url: formEl.website.value,\\n password: formEl.password.value\\n }\\n\\n console.log(formData);\\n}\",\n \"function importSave() {\\r\\n\\tlet data = prompt(\\\"Paste your save string here\\\");\\r\\n\\r\\n\\tif (data !== null && data !== '')\\r\\n\\t\\tparseAndImportData(data);\\r\\n\\t\\t\\r\\n\\trunAll();\\r\\n}\",\n \"function storeCurrent() {\\r\\n let currentData = {\\r\\n regexInput: regexInput.value,\\r\\n templateInput: templateInput.value,\\r\\n globalCheckbox: globalCheckbox.checked,\\r\\n caseInsensitiveCheckbox: caseInsensitiveCheckbox.checked,\\r\\n multilineCheckbox: multilineCheckbox.checked,\\r\\n IgnoreHTMLCheckbox: IgnoreHTMLCheckbox.checked,\\r\\n resultTextarea: resultTextarea.value,\\r\\n selectedItemIndex:selectedItemIndex,\\r\\n smallForm: smallFormCheckbox.checked\\r\\n };\\r\\n let store = browser.storage.local.set({\\r\\n currentData\\r\\n });\\r\\n store.then(onError, onError);\\r\\n}\",\n \"function guardarFormData() {\\n this.datos;\\n this.fmodificado;\\n this.usrid;\\n this.casid;\\n}\",\n \"function save() {\\n editors.forEach(function (editor, index) {\\n textareas[index].value = editor.querySelector('.text').innerHTML;\\n });\\n }\",\n \"function saveAnomalyForm() {\\n var anomalyType = anomalyForms[anomalyIndex][\\\"anomaly\\\"];\\n var formEntries = document.getElementById(\\\"custom-inputs\\\").getElementsByClassName(\\\"custom-input\\\");\\n for (var i = 0; i < formEntries.length; i++) {\\n var input = formEntries.item(i);\\n var fieldName = input.id;\\n anomalyForms[anomalyIndex][\\\"json\\\"][\\\"fields\\\"][fieldName][\\\"value\\\"] = input.value;\\n }\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.6194441","0.6126557","0.5600388","0.55794096","0.5555186","0.5546033","0.5545269","0.55256814","0.5491216","0.54909706","0.5480427","0.54792804","0.54788136","0.54729193","0.5470531","0.5464479","0.5461352","0.54437494","0.5426067","0.54226685","0.54057217","0.5395973","0.5390775","0.5381406","0.5381323","0.5380298","0.5376208","0.5374116","0.5373218","0.53718","0.53643656","0.5341248","0.53406066","0.5327468","0.5324177","0.5319086","0.53179693","0.531191","0.5307026","0.5300099","0.52831745","0.52773595","0.52749234","0.5267227","0.5260061","0.52511","0.5247399","0.5242478","0.52415967","0.52363384","0.52148896","0.5214595","0.5213605","0.52101785","0.520905","0.52069235","0.52036184","0.5199112","0.5198693","0.5185127","0.5185127","0.5181979","0.51776034","0.5176891","0.5171459","0.5162523","0.5158621","0.5155198","0.5155129","0.51507723","0.51507723","0.5147714","0.51272297","0.5127103","0.512501","0.5118284","0.51166683","0.5116103","0.5113854","0.5110333","0.5104683","0.5101776","0.51005226","0.50978833","0.50920874","0.50901926","0.50847805","0.508113","0.5075988","0.50705576","0.50700456","0.50659615","0.5059787","0.5058901","0.50588524","0.50566787","0.50546116","0.5053139","0.50529546","0.5051645","0.5050183"],"string":"[\n \"0.6194441\",\n \"0.6126557\",\n \"0.5600388\",\n \"0.55794096\",\n \"0.5555186\",\n \"0.5546033\",\n \"0.5545269\",\n \"0.55256814\",\n \"0.5491216\",\n \"0.54909706\",\n \"0.5480427\",\n \"0.54792804\",\n \"0.54788136\",\n \"0.54729193\",\n \"0.5470531\",\n \"0.5464479\",\n \"0.5461352\",\n \"0.54437494\",\n \"0.5426067\",\n \"0.54226685\",\n \"0.54057217\",\n \"0.5395973\",\n \"0.5390775\",\n \"0.5381406\",\n \"0.5381323\",\n \"0.5380298\",\n \"0.5376208\",\n \"0.5374116\",\n \"0.5373218\",\n \"0.53718\",\n \"0.53643656\",\n \"0.5341248\",\n \"0.53406066\",\n \"0.5327468\",\n \"0.5324177\",\n \"0.5319086\",\n \"0.53179693\",\n \"0.531191\",\n \"0.5307026\",\n \"0.5300099\",\n \"0.52831745\",\n \"0.52773595\",\n \"0.52749234\",\n \"0.5267227\",\n \"0.5260061\",\n \"0.52511\",\n \"0.5247399\",\n \"0.5242478\",\n \"0.52415967\",\n \"0.52363384\",\n \"0.52148896\",\n \"0.5214595\",\n \"0.5213605\",\n \"0.52101785\",\n \"0.520905\",\n \"0.52069235\",\n \"0.52036184\",\n \"0.5199112\",\n \"0.5198693\",\n \"0.5185127\",\n \"0.5185127\",\n \"0.5181979\",\n \"0.51776034\",\n \"0.5176891\",\n \"0.5171459\",\n \"0.5162523\",\n \"0.5158621\",\n \"0.5155198\",\n \"0.5155129\",\n \"0.51507723\",\n \"0.51507723\",\n \"0.5147714\",\n \"0.51272297\",\n \"0.5127103\",\n \"0.512501\",\n \"0.5118284\",\n \"0.51166683\",\n \"0.5116103\",\n \"0.5113854\",\n \"0.5110333\",\n \"0.5104683\",\n \"0.5101776\",\n \"0.51005226\",\n \"0.50978833\",\n \"0.50920874\",\n \"0.50901926\",\n \"0.50847805\",\n \"0.508113\",\n \"0.5075988\",\n \"0.50705576\",\n \"0.50700456\",\n \"0.50659615\",\n \"0.5059787\",\n \"0.5058901\",\n \"0.50588524\",\n \"0.50566787\",\n \"0.50546116\",\n \"0.5053139\",\n \"0.50529546\",\n \"0.5051645\",\n \"0.5050183\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":222,"cells":{"query":{"kind":"string","value":"Navigational, leads to staff form."},"document":{"kind":"string","value":"function createNewStaff(){\n document.getElementById(\"input\").innerHTML = staffForm();\n \n document.getElementsByClassName(\"staffdependant\")[0].disabled = false;\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function directUserFromViewInfo() {\n if (nextStep == \"Departments\") {\n viewDepartments();\n }\n if (nextStep == \"Roles\") {\n viewRoles();\n }\n if (nextStep == \"Employees\") {\n viewEmployees();\n }\n if (nextStep == \"All Information\") {\n viewAll();\n } \n }","function redirectToPhysioExperts() {\n\t\t\t$state.go(\"homepages.physioexperts\");\n\t\t}","function gotoForm() {\n toggleForm();\n }","function onCreateNewStaffClick() {\n $('#modal-register-staff').modal('show');\n }","function goToForm() {\n history.push('/form');\n }","function goToHome()\n{\n\tfrmHome.show();\n}","function redirectToFaq() {\n\t\t\t$state.go(\"homepages.faq\");\n\t\t}","function openEditUser() {\n routingBase.goToCurrentState('userDetails');\n }","function showEditForm(currentList, currentUser) {\n console.log(list);\n self.name = currentList.name;\n\n $state.go('updateList', {\n userId: currentUser._id,\n listId: currentList._id,\n currentList: currentList\n });\n }","function nav() {\n\t\t var w = document.reflinkform.reflinklist.selectedIndex;\n\t\t var url_add = document.reflinkform.reflinklist.options[w].value;\n\t\t window.location.href = url_add;\n\t\t}","function showList() {\n\t\t\t$state.go('flight.list');\n\t\t}","function directUserFromAddInfo() {\n if (nextStep == \"A new department\") {\n addDepartmenet();\n }\n if (nextStep == \"A new role\") {\n addRole();\n }\n if (nextStep == \"A new employee\") {\n addEmployee();\n } \n }","function backToScreenDtl(){\n\tupdateAccountListInfo(); \n\tnavController.initWithRootView('corp/account/list_info/acc_list_account_info_dtl', true, 'xsl');\n}","function openRegistrationPage() {\n $state.go('triangular.admin-default-no-scroll.registration');\n ToastService.showToast('Please create a account before play');\n }","function checkHomeDataFilled() {\n\t\t\tif (vm.flags.booknowSectionfieldsValid != true) {\n\t\t\t\t//$state.go('home');\n\t\t\t\twindow.location = \"/web/CustPortal/\";\n\t\t\t}\n\t\t}","function actionOnContactClick () {\n\n window.location = (\"/contacts/\" + lastName)\n \n }","editWorkAndEducation(){\n\t\tresources.workAndEducationTab().click();\n\t}","navigateAdd() {\n this.channel.trigger('show:form');\n }","function linkAdminCompose(fWhere) {\r\n setUpLinkBackJSON(fWhere);;\r\n window.location.href = \"adminCompose.html\";\r\n}","function linkStudentCompose(fWhere) {\r\n setUpLinkBackJSON(fWhere);\r\n window.location.href = \"studentCompose.html\";\r\n}","function adminForm(){\n $('#adminForm').modal('show');\n _roles_list();\n}","function redirectToHome(){\n\t\t\t\tvar form; // dynamic form that will call controller\t\n\t\t\t form = $('', {\n\t\t\t action: \"dashboard.html\",\n\t\t\t method: 'get',\n\t\t\t style: 'display: none;'\n\t\t\t });\n\t\t\t //Form parameter insightId\n\t\t\t $(\"\").attr(\"type\", \"hidden\").attr(\"name\", \"googleSession\").val(googleStatus).appendTo(form);\n\t\t\t //Form submit\n\t\t\t form.appendTo('body').submit();\n\t\t\t}","redirectToPersonalDashbaord() {\n\t\tthis.props.history.push('/PersonalDashboard');\n\t}","function goToPage($this){\n if($this.val() !== null){document.location.href = $this.val()}\n }","function goToPage($this){\n if($this.val() !== null){document.location.href = $this.val()}\n }","function openULForm(data){\n\t$m.open(\"Edit Lead for IPT\", \"/IncomePlanner/UpdateLeadForm.html\",data.data);\n}","backToReferral(referral) {\n this.goToReferralPanel(referral);\n }","GoToAdmin()\n \t{\n \t\tif(this.state.isAdmin)\n \t\t{\n \t\t\tthis.setState({ currentPage : \"AdminPage\" })\n \t\t}\n \t\telse\n \t\t{\n \t\t\talert('Sorry ! Admins only .');\n \t\t}\n \t\t\n \t}","function firstfocus()\n{\nwindow.history.forward();\nvar uid = document.theForm.cname.focus();\ndocument.getElementById('exemption').style.display = 'none';\nreturn true;\n}","function addNewItem() { switchToView('edit-form'); }","function goToTaskForm() {\n window.location.href = TASK_CREATOR + '?id=' + projectID;\n}","onClick(business){\n\t\tBusinessActions.viewBusiness(business.id);\n\t\tNavigationActions.goTo('/businesses/'+business.id)\n\t}","function goToEmployeeDetail(event)\n{\n\twindow.location.assign(\"/employeeDetail/\");\n}","function show_this_list(lst_id, usr_id) {\r\n console.log(\"show this list called!\");\r\n location.href = \"/lists/\" + usr_id + \"/\" + lst_id;\r\n}","function staffingForm() {\n this.initialize = function() {\n var callbackFunction = $.Callbacks('once');\n callbackFunction.add(this.successUserProfile.bind(this));\n var errorCallbackFunction = $.Callbacks('once');\n errorCallbackFunction.add(this.serviceErrorHandler.bind(this));\n RSASERVICES.getUserProfile(\"\", callbackFunction, errorCallbackFunction,\n false, true, \"\");\n var currentLocation = window.location.href;\n //Click on staffing request link redirects to staffing forms page\n $(\"#staffingReqLink\").on(\n \"click\",\n function() {\n window.location.href = currentLocation.split(\n \"StaffingForms/StaffingFormsMain.html\").join(\n \"RetailStaffing/RetailStaffingRequest.html\");\n });\n //Click on interviewAvailability link redirects to interviewAvailability page\n $(\"#interviewAvailabilityLink\").on(\n \"click\",\n function() {\n window.location.href = currentLocation.split(\n \"StaffingForms/StaffingFormsMain.html\").join(\n \"StaffingForms/InterviewAvailability.html\");\n });\n //Click on interviewAvailability link redirects to interviewAvailability page\n $(\"#interviewSummaryLink\").on(\n \"click\",\n function() {\n window.location.href = currentLocation.split(\n \"StaffingForms/StaffingFormsMain.html\").join(\n \"RetailStaffing/InterviewResults.html\");\n });\n };\n /*\n * Method has the service handler\n * if service fails it will throw popup\n * for the message provided\n */\n this.serviceErrorHandler = function() {\n this\n .showModalPopUp(\"Unable to get your user profile information. Please try again later.\");\n };\n /*\n * Method has the functions can used to\n * show,block and drag the popup\n */\n this.showModalPopUp = function(msg) {\n $(\"#warningpopup\").modal({\n backdrop : 'static',\n keyboard : false\n });\n $(\"#warningpopup\").modal(\"show\");\n $(\"#warningpopup\").on('shown.bs.modal', function() {\n $(\"#warningpopup #warningOkbutton\").focus();\n });\n $(\"#warningpopup\").draggable({\n handle : \".modal-header\"\n });\n $(\"#warningpopup .sureMsg\").html(msg);\n $(\"#warningpopup #warningOkbutton\").attr(\"data-dismiss\", \"modal\");\n $(\"#warningpopup #warningCancelbutton\").hide();\n };\n /*\n * Method has the success response for\n * user profile service\n */\n this.successUserProfile = function(response) {\n $.unblockUI();\n CONSTANTS.userProfile = {};\n CONSTANTS.userProfileDetailsInform = {};\n //validate the condition in which the error code is equal to 0\n if (response && response.UserProfileResponseDTO\n && response.UserProfileResponseDTO.ErrorCd === 0) {\n CONSTANTS.userProfileDetailsInform = response;\n CONSTANTS.userProfile.userId = response.UserProfileResponseDTO.userId;\n $('.navbar-right .WelcomeText').text(\n \"Welcome \" + response.UserProfileResponseDTO.firstName\n + \" \" + response.UserProfileResponseDTO.lastName);\n $('.navbar-right .Storenumber').text(\n \"Store# \" + response.UserProfileResponseDTO.strNbr + \"\");\n } else {\n this\n .showModalPopUp(\"Unable to get your user profile information. Please try again later.\");\n }\n };\n}","function editPersonalInfo() {\n event.preventDefault();\n displayPersonalForm();\n}","function viewFullProfile() {\n history.push('/supported-employees/'+employee.id)\n }","showContact(model) {\n const entry = new ContactEntry({ model });\n this.showChildView('layout', entry);\n\n Backbone.history.navigate(`contact/${model.id}`);\n }","function goToChangeManagerHome() {\n $('#main').show();\n $('#navbuttons').hide();\n $('#requestdetails').hide();\n\n // $('#btnFilter').hide();\n // $('#btnResetFilter').hide();\n // $('.nav-tabs a[href=\"#myAssign\"]').tab('show');\n\n\n //refresh the grids\n showChangeRecords();\n showChangeRequests();\n showMyChangeRecords();\n showMyChangeRequests();\n getMyChangeTasks();\n getAllChangeTasks();\n}","function show_rec_list(lst_id, usr_id) {\r\n console.log(\"show this list called!\");\r\n location.href = \"/lists/\" + usr_id + \"/rec/\" + lst_id;\r\n}","function redirect(dest) {\n\thideCurrent(locate);\n\tactive_nav(dest);\n\t//show desired page element\n\tswitch(dest) {\n\t\tcase 'Home':\n\t\t\tshowElement('#slide-show');\n\t\t\tbreak;\n\t\tcase 'Login':\n\t\t\thideElement('#slide-show');\n\t\t\tshowElement('.full-page');\n\t\t\tshowElement('.login');\n\t\t\tbreak;\n\t\tcase 'SignUp':\n\t\t\thideElement('#slide-show');\n\t\t\tshowElement('.full-page');\n\t\t\tshowElement('.register');\n\t\t\tbreak;\n\t\tcase 'Dashboard':\n\t\t\tshowElement('.sidebar');\n\t\t\tshowElement('#task-dashboard');\n\t\t\tuser_retrieve('dashboard');\n\t\t\ttask_retrieve('ongoing');\n\t\t\tbreak;\n\t\tcase 'Account':\n\t\t\t$('#n_password').prop('disabled', true);\n\t\t\t$('#r_password').prop('disabled', true);\n\t\t\tuser_retrieve('account');\n\t\t\tbreak;\n\t\tcase 'Lead':\n\t\t\tdisplay_leaderboard();\n\t\t\tbreak;\n\t\tcase 'NewTask':\n\t\t\tshowElement('.full-page');\n\t\t\tshowElement('.task-create');\n\t\t\tbreak;\n\t\tcase 'EditTask':\n\t\t\tshowElement('.task-update');\n\t\t\tbreak;\n\t\tcase 'Task':\n\t\t\tshowElement('.full-page');\n\t\t\tshowElement('.sidebar');\n\t\t\tshowElement('#task-dashboard');\n\t\t\tuser_retrieve('dashboard');\n\t\t\ttask_retrieve('ongoing');\n\t\t\tbreak;\n\t\tcase 'About':\n\t\t\thideElement('.sidebar');\n\t\t\thideElement('#slide-show');\n\t\t\tshowElement('.content-about');\n\t\t\tbreak;\n\t\tcase 'Logout':\n\t\t\tlogout();\n\t\t\tbreak;\t\t\t\t\n\t}\n}","editEvent() {\n // redirect to createeventform page\n this.setState({\n view: 'editEvent',\n });\n }","function editUser() {\n window.location.href = '../newadmin/newadmin.html?id=' + admin.id;\n}","function linkBackViewInbox() {\r\n var fromWhere = JSON.parse(localStorage.getItem(\"emailToView\")).fromWhere;\r\n if (fromWhere == FROM_STUDENT_INBOX) {\r\n window.location.href = \"index.html\";\r\n } else if (fromWhere == FROM_ADMIN_INBOX) {\r\n window.location.href = \"adminInbox.html\";\r\n }\r\n localStorage.removeItem(\"emailToView\");\r\n}","function linkBackViewInbox() {\r\n var fromWhere = JSON.parse(localStorage.getItem(\"emailToView\")).fromWhere;\r\n if (fromWhere == FROM_STUDENT_INBOX) {\r\n window.location.href = \"index.html\";\r\n } else if (fromWhere == FROM_ADMIN_INBOX) {\r\n window.location.href = \"adminInbox.html\";\r\n }\r\n localStorage.removeItem(\"emailToView\");\r\n}","function gotoGoalsListScreen() {\n navigation.navigate('goalsListScreen');\n }","render() {\n if (this.state.redirectMain === true){\n return \n }\n return (\n
    \n Create Account Page\n
    \n\n
    \n\n
    \n Select Your Account Type: \n\n \n
    \n\n \n
    \n { this.state.showuser ? : null }\n { this.state.showadmin ? : null }\n
    \n
    \n \n
    \n
    \n );\n }","redirectToMeetings(ev) {\n ev.preventDefault();//prevent form submittion(delete team)\n loadMeetings(this.props.params.teamId,this.loadMeetings);\n }","function showParentForm() {\n $timeout(function () {\n var parentState = module['ModuleId'] + '.' + content.ContentId;\n $state.go(parentState);\n }, 10);\n }","function showParentForm() {\n $timeout(function () {\n var parentState = module['ModuleId'] + '.' + content.ContentId;\n $state.go(parentState);\n }, 10);\n }","function navToAddBook() {\n location.href = 'Admin.php?page=AddBook';\n}","function backToHomeView () {\n currentFolder = -1\n showOneContainer(homeContain)\n fetchSingleUser(currentUser)\n }","function setRoom(name) {\n $('form').remove();\n $('h1').text(name);\n $('#subTitle').text('Link to join: ' + location.href);\n $('body').addClass('active');\n }","function show_lists(usr_id) {\r\n console.log(\"show lists called!\");\r\n location.href = \"/lists/\" + usr_id;\r\n}","function redirectUserToThePageAccordingToHisRole() {\n UserService.requestUser((res) => {\n if (!res.data.success) {\n return NotificationService.info(res.data.data.data.message);\n }\n\n UserService.save(res.data.data);\n\n let isSuperAdmin = UserService.isSuperAdmin;\n if (isSuperAdmin()) {\n $window.location.hash = '#/';\n $window.location.pathname = '/admin/';\n } else {\n $window.location.hash = '#/';\n $window.location.pathname = '/app/';\n }\n });\n }","linkToProfile() {\n const id = this.props.person.id;\n const isStudent = this.props.person.customer_id ? true : false\n\n /* Use the customer_id field to check whether the person is\n a student or a teacher. */\n\n if (isStudent) {\n window.location = RouteConstants.admin.studentProfile(id);\n } else {\n window.location = RouteConstants.admin.teacherProfile(id);\n }\n }","function AddNewDetail() {\r\n navigation.navigate('DetailRegister', { edit: false, step: {} });\r\n }","function navShowSubmitForm(evt) {\n // console.debug(\"navShowSubmitForm\", evt);\n evt.preventDefault();\n // on click, show() the hidden stories form\n $submitForm.show();\n}","function linkAdminCompose(fWhere) {\r\n try {\r\n setUpLinkBackJSON(fWhere);;\r\n window.location.href = \"adminCompose.html\";\r\n } catch (e) {\r\n alert(e.name + \"\\n\" + e.message)\r\n }\r\n}","function getOrderStaffDetails() {\r\n//\tparent.document.searchResultsForm.loadPage.value = \"orderDetailPage\";\r\n\tparent.document.searchResultsForm.loadPage.value = \"orderStaffDetailPage\";\r\n\tparent.document.searchResultsForm.facilityId.value = facilityIdVal;\r\n\tparent.document.searchResultsForm.spectraMRN.value = spectraMRNVal;\r\n\tparent.document.searchResultsForm.processorName.value = 'OrderStaffProcessor';\r\n\tparent.document.searchResultsForm.processorAction.value = 'getOrderSum'; \r\n\tparent.document.searchResultsForm.submit();\r\n}","function handleDreamsEdit() {\n var currentDream = $(this)\n .parent()\n .parent()\n .parent()\n .data(\"dream\");\n window.location.href = \"/new-dream?dream_id=\" + currentDream.id;\n }","openCurrentUser() {\n window.location.href = window.location.origin + '/users?name=' + this.state.currentUser.firstName + ' ' + this.state.currentUser.lastName;\n }","function gotoeditteamsFunction() {\n var x = document.getElementById(\"addteamshtml\");\n var i = document.getElementById(\"editteamshtml\");\n var a = document.getElementById(\"homepagehtml\");\n x.style.display = \"none\";\n i.style.display = \"block\";\n a.style.display = \"none\"\n }","function directToContactForm ()\n{\n\t$('html, body').animate({\n\t\tscrollTop : $(\"#contact-me\").offset().top\n\t}, 'slow');\n}","function showRegister() {\n clearErrorMsg();\n showLinks(['loginLink']);\n showView('registerForm');\n}","function goToAccRec() {\n $('#peInvoiceInformation').show();\n $('#invoiceInformation').hide();\n $('#financialSection').show();\n updatePricingInfo();\n fillPeInvsTable(DATA);\n}","function Users(){\r\n window.location=\"/pages/Admin/users/users_ui.html\";\r\n}","function onEditContact(e) {\n contactForm.buildContactForm(activeContact); \n $.mobile.changePage(\"#edit_contact_page\", { transition: \"pop\" });\n}","function toStaffs(){\n document.getElementById(\"input\").innerHTML = staffForm();\n}","goToReferralPanel(referral) {\n let personaBar = window.parent.dnn ? window.parent.dnn.PersonaBar : null;\n if (personaBar) {\n personaBar.openPanel(referral, {}); //Open, panel should already be rendered, so no need to pass params.\n this.updateReferral(\"\", \"\");\n }\n }","function goToTechnician() {\r\n\tdocument.location.href="https://huggingface.co/datasets/nomic-ai/cornstack-javascript-v1/viewer/default/technician.php";\r\n}","function view () {\n $('div.employeeList').removeClass('hidden');\n // $('form.addForm').addClass('hidden');\n var forms = document.querySelectorAll('form');\n if (forms[0] != undefined) {\n document.body.removeChild(forms[0]);\n }\n toggleActive('View');\n}","function showLogin() {\n clearErrorMsg();\n showView('loginForm');\n showLinks(['registerLink']);\n}","function linkStudentCompose(fWhere) {\r\n try {\r\n setUpLinkBackJSON(fWhere);\r\n window.location.href = \"studentCompose.html\";\r\n } catch (e) {\r\n alert(e.name + \"\\n\" + e.message)\r\n }\r\n}","back() {\n this.showUserEditForm = false;\n }","createAccount() {\n this.props.nav.navigate(\"Create Student User\");\n }","onClickNavToOverview() {\n this.transitionToRoute('manage.alert', this.get('id'));\n }","function activateForm(name){\n $('.signup-individual.active, .signup-team.active').removeClass('active');\n $('.signup-' + name).addClass('active');\n $('.register-as:checked').attr('checked', false);\n $('.register-as:not(:checked)').attr('checked', true);\n }","render(){\n return(\n
    \n

    Liste des employés

    \n \n \n
    \n );\n }","function onGoBack() {\n setFormDataEdit(null);\n setStep('Menu');\n }","function showList() {\n\t\t\t$state.go('^');\n\t\t}","function showList() {\n\t\t\t$state.go('^');\n\t\t}","function clickFacultyDirectory(){\r\n window.location.href = 'FacultyDirectory.php';\r\n}","nav_helper_edit(data) {\n\t\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\n\t\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\n\t\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\n\t\tutil.elementClickable(this.editBtn)\n\t}","function editPage () {\n EditReviewService.setFromReviewPage(true)\n $state.go(this.goToRoute)\n }","function goToListView(){\n\t$(\"#bankId\").val(\"\");\n\tvar mainmenu = $('#mainmenu').val();\n\tvar pageview = $('#pageview').val();\n\tif (pageview == \"bankView\") {\n\t\t$('#pageview').val('banklistview');\n\t\t$('#bankView').attr('action', 'listview?mainmenu='+mainmenu+'&time='+datetime);\n\t\t$(\"#bankView\").submit();\n\t} else {\n\t\t$('#pageview').val('othbanklistview');\n\t\t$('#bankView').attr('action', 'othbanklistview?mainmenu='+mainmenu+'&time='+datetime);\n\t\t$(\"#bankView\").submit();\n\t}\n}","function NavFormSelect(strFormName,strFieldName) {\n intSelected = document[strFormName].elements[strFieldName].options.selectedIndex;\n strURL = document[strFormName].elements[strFieldName].options[intSelected].value;\n document[strFormName].elements[strFieldName].options.selectedIndex = 0;\n if (strURL != \"\") {\n location.href = strURL;\n }\n}","showCreateForm(data) {\n this.clearNewOrgan(data);\n this.changeFormMode(this.FORM_MODES.CREATE);\n }","function showListForm() {\n vm.isListFormVisible = true;\n }","function redirect() {\n\tvar schemaBuilder = lf.schema.create('fashionfitness', 1);\n\tschemaBuilder.createTable('login').\n\t\taddColumn('id', lf.Type.INTEGER).\n\t\taddColumn('username', lf.Type.STRING).\n\t\taddColumn('password', lf.Type.STRING).\n\t\taddColumn('active', lf.Type.BOOLEAN).\n\t\taddPrimaryKey(['id']);\n\t// Connect to the database and add an account\n\tschemaBuilder.connect().then(function(db) {\n\t\tvar account = db.getSchema().table('login');\n\t\treturn db.select().\n\t\t\t\tfrom(account).\n\t\t\t\twhere(account.active.eq(true)).\n\t\t\t\texec().\n\t\tthen(function(results) {\n\t\t\tresults.forEach(function(row) {\n\t\t\t\tconsole.log(\"Utente loggato, reindirizzo alla dashboard\");\n\t\t\t\t// window.location.href = \"home.html\" // Adds an item to the history\n\t\t\t\twindow.location.replace(\"home.html\"); // It replaces the current history item, you can't go back\n\t\t\t});\n\t\t});\n\t});\n}","goToAjout() {\n history.push(\"/main/clients/ajout\");\n }","function switchForm(to=0) {\n let viaurl = document.getElementById('new-i-form-viaurl');\n let viaform = document.getElementById('new-i-form-page');\n if (viaurl && viaform) { \n viaurl.style.display = to ? 'none' : '';\n viaform.style.display = to ? '' : 'none';\n }\n}","function adminView(){\r\n window.location=\"/pages/Admin/admin.html\";\r\n}","function onSubmitted(){\n\t\t\t\t\t\t\t\t\t\t\tlocation.hash = \"/tool/list\";\n\t\t\t\t\t\t\t\t\t\t}","function goToEditNewsForm(newsId, urlBeginning) {\n\tvar targetUrl = urlBeginning + newsId + \"/\";\n\n\t$.ajax({\n\t\ttype : \"GET\",\n\t\turl : targetUrl,\n\t\tdata : {},\n\t\tsuccess : function(response) {\n\t\t\tsetInputFields(response.news);\n\t\t\tsetSendNotification(response.sendNotification);\n\t\t\tsetFormAction(response.formAction);\n\t\t\tsetTitleOfSubmitButton(response.localizedTitleOfSubmit);\n\t\t\tshowNewsForm();\n\t\t},\n\t\terror : function(e) {\n\t\t\talert(\"Error: \" + e.toSource());\n\t\t}\n\t});\n}","function updateLangStaff() {\n showOrder(currentTableID);\n showAccountBox();\n}","function StepBackForm(from, to) {\n $(\"#question\" + from).hide();\n $(\"#question\" + to).fadeIn(300);\n\n $(formInUse)[0].reset();\n }","function go_articulos() {\n $state.go('complex_articles.list');\n }","function goToMain() {\n let inputValue = $('#land-input').val()\n\n user.lastRecipeSearched = inputValue;\n user.addSearchedIngredients(inputValue);\n save(user)\n\n redirectMainUrl();\n}","function StaffController(StaffService, loggerFactory, $mdSidenav, $mdToast, $window) {\n var vm = this;\n vm.staffMembers = [];\n vm.appointment = {};\n vm.selectedMember = null;\n vm.isFabOpen = false;\n vm.isSelected = false;\n vm.selectedMemberIndex = 0;\n vm.selectStaffMember = selectStaffMember;\n vm.toggleMemberList = toggleMemberList;\n vm.toggleSelection = toggleSelection;\n vm.openSideMenu = openSideMenu;\n vm.navigateTo = navigateTo;\n vm.desiredDate = new Date();\n vm.currentTime = new Date().getTime();\n\n activate();\n\n /**\n * Initial execution function on page load.\n */\n function activate() {\n return StaffService.getAllStaffMembers().then(function (data) {\n vm.staffMembers = data;\n vm.selectedMember = data[0];\n loggerFactory.info('Staff Members: ', data);\n }, function (err) {\n loggerFactory.error('Get Staff Members: ', err);\n });\n }\n\n /**\n * Select the current staff member.\n * @param memberId\n */\n function selectStaffMember(member, index) {\n vm.isSelected = false;\n vm.selectedMemberIndex = index;\n vm.selectedMember = angular.isDefined(member) ? member : vm.staffMembers[0];\n if (!$mdSidenav('left').isLockedOpen()) {\n $mdSidenav('left').close();\n }\n }\n\n /**\n * Hide or Show the 'left' SideNav when small screen.\n */\n function toggleMemberList() {\n $mdSidenav('left').toggle();\n }\n\n function toggleSelection() {\n vm.isSelected = !vm.isSelected;\n if(vm.isSelected){\n showFavoriteToast();\n }\n }\n\n /**\n * Open the side menu when small screen.\n */\n function openSideMenu($mdMenu, event) {\n $mdMenu.open(event);\n }\n\n /**\n * Open favorite selected tooltip.\n */\n function showFavoriteToast() {\n $mdToast.show({\n hideDelay: 3000,\n position: 'top right',\n controller: 'ToastController',\n controllerAs: 'toast',\n templateUrl: 'fav_toast_template.html',\n bindToController: true\n });\n }\n\n /**\n * Go to requested URL..\n * @param url\n */\n function navigateTo(url){\n $window.open(url, '_blank');\n }\n }","nav_helper_view1(data) {\n\t\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\n\t\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\n\t\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\n\t\t\n\n\t}"],"string":"[\n \"function directUserFromViewInfo() {\\n if (nextStep == \\\"Departments\\\") {\\n viewDepartments();\\n }\\n if (nextStep == \\\"Roles\\\") {\\n viewRoles();\\n }\\n if (nextStep == \\\"Employees\\\") {\\n viewEmployees();\\n }\\n if (nextStep == \\\"All Information\\\") {\\n viewAll();\\n } \\n }\",\n \"function redirectToPhysioExperts() {\\n\\t\\t\\t$state.go(\\\"homepages.physioexperts\\\");\\n\\t\\t}\",\n \"function gotoForm() {\\n toggleForm();\\n }\",\n \"function onCreateNewStaffClick() {\\n $('#modal-register-staff').modal('show');\\n }\",\n \"function goToForm() {\\n history.push('/form');\\n }\",\n \"function goToHome()\\n{\\n\\tfrmHome.show();\\n}\",\n \"function redirectToFaq() {\\n\\t\\t\\t$state.go(\\\"homepages.faq\\\");\\n\\t\\t}\",\n \"function openEditUser() {\\n routingBase.goToCurrentState('userDetails');\\n }\",\n \"function showEditForm(currentList, currentUser) {\\n console.log(list);\\n self.name = currentList.name;\\n\\n $state.go('updateList', {\\n userId: currentUser._id,\\n listId: currentList._id,\\n currentList: currentList\\n });\\n }\",\n \"function nav() {\\n\\t\\t var w = document.reflinkform.reflinklist.selectedIndex;\\n\\t\\t var url_add = document.reflinkform.reflinklist.options[w].value;\\n\\t\\t window.location.href = url_add;\\n\\t\\t}\",\n \"function showList() {\\n\\t\\t\\t$state.go('flight.list');\\n\\t\\t}\",\n \"function directUserFromAddInfo() {\\n if (nextStep == \\\"A new department\\\") {\\n addDepartmenet();\\n }\\n if (nextStep == \\\"A new role\\\") {\\n addRole();\\n }\\n if (nextStep == \\\"A new employee\\\") {\\n addEmployee();\\n } \\n }\",\n \"function backToScreenDtl(){\\n\\tupdateAccountListInfo(); \\n\\tnavController.initWithRootView('corp/account/list_info/acc_list_account_info_dtl', true, 'xsl');\\n}\",\n \"function openRegistrationPage() {\\n $state.go('triangular.admin-default-no-scroll.registration');\\n ToastService.showToast('Please create a account before play');\\n }\",\n \"function checkHomeDataFilled() {\\n\\t\\t\\tif (vm.flags.booknowSectionfieldsValid != true) {\\n\\t\\t\\t\\t//$state.go('home');\\n\\t\\t\\t\\twindow.location = \\\"/web/CustPortal/\\\";\\n\\t\\t\\t}\\n\\t\\t}\",\n \"function actionOnContactClick () {\\n\\n window.location = (\\\"/contacts/\\\" + lastName)\\n \\n }\",\n \"editWorkAndEducation(){\\n\\t\\tresources.workAndEducationTab().click();\\n\\t}\",\n \"navigateAdd() {\\n this.channel.trigger('show:form');\\n }\",\n \"function linkAdminCompose(fWhere) {\\r\\n setUpLinkBackJSON(fWhere);;\\r\\n window.location.href = \\\"adminCompose.html\\\";\\r\\n}\",\n \"function linkStudentCompose(fWhere) {\\r\\n setUpLinkBackJSON(fWhere);\\r\\n window.location.href = \\\"studentCompose.html\\\";\\r\\n}\",\n \"function adminForm(){\\n $('#adminForm').modal('show');\\n _roles_list();\\n}\",\n \"function redirectToHome(){\\n\\t\\t\\t\\tvar form; // dynamic form that will call controller\\t\\n\\t\\t\\t form = $('', {\\n\\t\\t\\t action: \\\"dashboard.html\\\",\\n\\t\\t\\t method: 'get',\\n\\t\\t\\t style: 'display: none;'\\n\\t\\t\\t });\\n\\t\\t\\t //Form parameter insightId\\n\\t\\t\\t $(\\\"\\\").attr(\\\"type\\\", \\\"hidden\\\").attr(\\\"name\\\", \\\"googleSession\\\").val(googleStatus).appendTo(form);\\n\\t\\t\\t //Form submit\\n\\t\\t\\t form.appendTo('body').submit();\\n\\t\\t\\t}\",\n \"redirectToPersonalDashbaord() {\\n\\t\\tthis.props.history.push('/PersonalDashboard');\\n\\t}\",\n \"function goToPage($this){\\n if($this.val() !== null){document.location.href = $this.val()}\\n }\",\n \"function goToPage($this){\\n if($this.val() !== null){document.location.href = $this.val()}\\n }\",\n \"function openULForm(data){\\n\\t$m.open(\\\"Edit Lead for IPT\\\", \\\"/IncomePlanner/UpdateLeadForm.html\\\",data.data);\\n}\",\n \"backToReferral(referral) {\\n this.goToReferralPanel(referral);\\n }\",\n \"GoToAdmin()\\n \\t{\\n \\t\\tif(this.state.isAdmin)\\n \\t\\t{\\n \\t\\t\\tthis.setState({ currentPage : \\\"AdminPage\\\" })\\n \\t\\t}\\n \\t\\telse\\n \\t\\t{\\n \\t\\t\\talert('Sorry ! Admins only .');\\n \\t\\t}\\n \\t\\t\\n \\t}\",\n \"function firstfocus()\\n{\\nwindow.history.forward();\\nvar uid = document.theForm.cname.focus();\\ndocument.getElementById('exemption').style.display = 'none';\\nreturn true;\\n}\",\n \"function addNewItem() { switchToView('edit-form'); }\",\n \"function goToTaskForm() {\\n window.location.href = TASK_CREATOR + '?id=' + projectID;\\n}\",\n \"onClick(business){\\n\\t\\tBusinessActions.viewBusiness(business.id);\\n\\t\\tNavigationActions.goTo('/businesses/'+business.id)\\n\\t}\",\n \"function goToEmployeeDetail(event)\\n{\\n\\twindow.location.assign(\\\"/employeeDetail/\\\");\\n}\",\n \"function show_this_list(lst_id, usr_id) {\\r\\n console.log(\\\"show this list called!\\\");\\r\\n location.href = \\\"/lists/\\\" + usr_id + \\\"/\\\" + lst_id;\\r\\n}\",\n \"function staffingForm() {\\n this.initialize = function() {\\n var callbackFunction = $.Callbacks('once');\\n callbackFunction.add(this.successUserProfile.bind(this));\\n var errorCallbackFunction = $.Callbacks('once');\\n errorCallbackFunction.add(this.serviceErrorHandler.bind(this));\\n RSASERVICES.getUserProfile(\\\"\\\", callbackFunction, errorCallbackFunction,\\n false, true, \\\"\\\");\\n var currentLocation = window.location.href;\\n //Click on staffing request link redirects to staffing forms page\\n $(\\\"#staffingReqLink\\\").on(\\n \\\"click\\\",\\n function() {\\n window.location.href = currentLocation.split(\\n \\\"StaffingForms/StaffingFormsMain.html\\\").join(\\n \\\"RetailStaffing/RetailStaffingRequest.html\\\");\\n });\\n //Click on interviewAvailability link redirects to interviewAvailability page\\n $(\\\"#interviewAvailabilityLink\\\").on(\\n \\\"click\\\",\\n function() {\\n window.location.href = currentLocation.split(\\n \\\"StaffingForms/StaffingFormsMain.html\\\").join(\\n \\\"StaffingForms/InterviewAvailability.html\\\");\\n });\\n //Click on interviewAvailability link redirects to interviewAvailability page\\n $(\\\"#interviewSummaryLink\\\").on(\\n \\\"click\\\",\\n function() {\\n window.location.href = currentLocation.split(\\n \\\"StaffingForms/StaffingFormsMain.html\\\").join(\\n \\\"RetailStaffing/InterviewResults.html\\\");\\n });\\n };\\n /*\\n * Method has the service handler\\n * if service fails it will throw popup\\n * for the message provided\\n */\\n this.serviceErrorHandler = function() {\\n this\\n .showModalPopUp(\\\"Unable to get your user profile information. Please try again later.\\\");\\n };\\n /*\\n * Method has the functions can used to\\n * show,block and drag the popup\\n */\\n this.showModalPopUp = function(msg) {\\n $(\\\"#warningpopup\\\").modal({\\n backdrop : 'static',\\n keyboard : false\\n });\\n $(\\\"#warningpopup\\\").modal(\\\"show\\\");\\n $(\\\"#warningpopup\\\").on('shown.bs.modal', function() {\\n $(\\\"#warningpopup #warningOkbutton\\\").focus();\\n });\\n $(\\\"#warningpopup\\\").draggable({\\n handle : \\\".modal-header\\\"\\n });\\n $(\\\"#warningpopup .sureMsg\\\").html(msg);\\n $(\\\"#warningpopup #warningOkbutton\\\").attr(\\\"data-dismiss\\\", \\\"modal\\\");\\n $(\\\"#warningpopup #warningCancelbutton\\\").hide();\\n };\\n /*\\n * Method has the success response for\\n * user profile service\\n */\\n this.successUserProfile = function(response) {\\n $.unblockUI();\\n CONSTANTS.userProfile = {};\\n CONSTANTS.userProfileDetailsInform = {};\\n //validate the condition in which the error code is equal to 0\\n if (response && response.UserProfileResponseDTO\\n && response.UserProfileResponseDTO.ErrorCd === 0) {\\n CONSTANTS.userProfileDetailsInform = response;\\n CONSTANTS.userProfile.userId = response.UserProfileResponseDTO.userId;\\n $('.navbar-right .WelcomeText').text(\\n \\\"Welcome \\\" + response.UserProfileResponseDTO.firstName\\n + \\\" \\\" + response.UserProfileResponseDTO.lastName);\\n $('.navbar-right .Storenumber').text(\\n \\\"Store# \\\" + response.UserProfileResponseDTO.strNbr + \\\"\\\");\\n } else {\\n this\\n .showModalPopUp(\\\"Unable to get your user profile information. Please try again later.\\\");\\n }\\n };\\n}\",\n \"function editPersonalInfo() {\\n event.preventDefault();\\n displayPersonalForm();\\n}\",\n \"function viewFullProfile() {\\n history.push('/supported-employees/'+employee.id)\\n }\",\n \"showContact(model) {\\n const entry = new ContactEntry({ model });\\n this.showChildView('layout', entry);\\n\\n Backbone.history.navigate(`contact/${model.id}`);\\n }\",\n \"function goToChangeManagerHome() {\\n $('#main').show();\\n $('#navbuttons').hide();\\n $('#requestdetails').hide();\\n\\n // $('#btnFilter').hide();\\n // $('#btnResetFilter').hide();\\n // $('.nav-tabs a[href=\\\"#myAssign\\\"]').tab('show');\\n\\n\\n //refresh the grids\\n showChangeRecords();\\n showChangeRequests();\\n showMyChangeRecords();\\n showMyChangeRequests();\\n getMyChangeTasks();\\n getAllChangeTasks();\\n}\",\n \"function show_rec_list(lst_id, usr_id) {\\r\\n console.log(\\\"show this list called!\\\");\\r\\n location.href = \\\"/lists/\\\" + usr_id + \\\"/rec/\\\" + lst_id;\\r\\n}\",\n \"function redirect(dest) {\\n\\thideCurrent(locate);\\n\\tactive_nav(dest);\\n\\t//show desired page element\\n\\tswitch(dest) {\\n\\t\\tcase 'Home':\\n\\t\\t\\tshowElement('#slide-show');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Login':\\n\\t\\t\\thideElement('#slide-show');\\n\\t\\t\\tshowElement('.full-page');\\n\\t\\t\\tshowElement('.login');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'SignUp':\\n\\t\\t\\thideElement('#slide-show');\\n\\t\\t\\tshowElement('.full-page');\\n\\t\\t\\tshowElement('.register');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Dashboard':\\n\\t\\t\\tshowElement('.sidebar');\\n\\t\\t\\tshowElement('#task-dashboard');\\n\\t\\t\\tuser_retrieve('dashboard');\\n\\t\\t\\ttask_retrieve('ongoing');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Account':\\n\\t\\t\\t$('#n_password').prop('disabled', true);\\n\\t\\t\\t$('#r_password').prop('disabled', true);\\n\\t\\t\\tuser_retrieve('account');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Lead':\\n\\t\\t\\tdisplay_leaderboard();\\n\\t\\t\\tbreak;\\n\\t\\tcase 'NewTask':\\n\\t\\t\\tshowElement('.full-page');\\n\\t\\t\\tshowElement('.task-create');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'EditTask':\\n\\t\\t\\tshowElement('.task-update');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Task':\\n\\t\\t\\tshowElement('.full-page');\\n\\t\\t\\tshowElement('.sidebar');\\n\\t\\t\\tshowElement('#task-dashboard');\\n\\t\\t\\tuser_retrieve('dashboard');\\n\\t\\t\\ttask_retrieve('ongoing');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'About':\\n\\t\\t\\thideElement('.sidebar');\\n\\t\\t\\thideElement('#slide-show');\\n\\t\\t\\tshowElement('.content-about');\\n\\t\\t\\tbreak;\\n\\t\\tcase 'Logout':\\n\\t\\t\\tlogout();\\n\\t\\t\\tbreak;\\t\\t\\t\\t\\n\\t}\\n}\",\n \"editEvent() {\\n // redirect to createeventform page\\n this.setState({\\n view: 'editEvent',\\n });\\n }\",\n \"function editUser() {\\n window.location.href = '../newadmin/newadmin.html?id=' + admin.id;\\n}\",\n \"function linkBackViewInbox() {\\r\\n var fromWhere = JSON.parse(localStorage.getItem(\\\"emailToView\\\")).fromWhere;\\r\\n if (fromWhere == FROM_STUDENT_INBOX) {\\r\\n window.location.href = \\\"index.html\\\";\\r\\n } else if (fromWhere == FROM_ADMIN_INBOX) {\\r\\n window.location.href = \\\"adminInbox.html\\\";\\r\\n }\\r\\n localStorage.removeItem(\\\"emailToView\\\");\\r\\n}\",\n \"function linkBackViewInbox() {\\r\\n var fromWhere = JSON.parse(localStorage.getItem(\\\"emailToView\\\")).fromWhere;\\r\\n if (fromWhere == FROM_STUDENT_INBOX) {\\r\\n window.location.href = \\\"index.html\\\";\\r\\n } else if (fromWhere == FROM_ADMIN_INBOX) {\\r\\n window.location.href = \\\"adminInbox.html\\\";\\r\\n }\\r\\n localStorage.removeItem(\\\"emailToView\\\");\\r\\n}\",\n \"function gotoGoalsListScreen() {\\n navigation.navigate('goalsListScreen');\\n }\",\n \"render() {\\n if (this.state.redirectMain === true){\\n return \\n }\\n return (\\n
    \\n Create Account Page\\n
    \\n\\n
    \\n\\n
    \\n Select Your Account Type: \\n\\n \\n
    \\n\\n \\n
    \\n { this.state.showuser ? : null }\\n { this.state.showadmin ? : null }\\n
    \\n
    \\n \\n
    \\n
    \\n );\\n }\",\n \"redirectToMeetings(ev) {\\n ev.preventDefault();//prevent form submittion(delete team)\\n loadMeetings(this.props.params.teamId,this.loadMeetings);\\n }\",\n \"function showParentForm() {\\n $timeout(function () {\\n var parentState = module['ModuleId'] + '.' + content.ContentId;\\n $state.go(parentState);\\n }, 10);\\n }\",\n \"function showParentForm() {\\n $timeout(function () {\\n var parentState = module['ModuleId'] + '.' + content.ContentId;\\n $state.go(parentState);\\n }, 10);\\n }\",\n \"function navToAddBook() {\\n location.href = 'Admin.php?page=AddBook';\\n}\",\n \"function backToHomeView () {\\n currentFolder = -1\\n showOneContainer(homeContain)\\n fetchSingleUser(currentUser)\\n }\",\n \"function setRoom(name) {\\n $('form').remove();\\n $('h1').text(name);\\n $('#subTitle').text('Link to join: ' + location.href);\\n $('body').addClass('active');\\n }\",\n \"function show_lists(usr_id) {\\r\\n console.log(\\\"show lists called!\\\");\\r\\n location.href = \\\"/lists/\\\" + usr_id;\\r\\n}\",\n \"function redirectUserToThePageAccordingToHisRole() {\\n UserService.requestUser((res) => {\\n if (!res.data.success) {\\n return NotificationService.info(res.data.data.data.message);\\n }\\n\\n UserService.save(res.data.data);\\n\\n let isSuperAdmin = UserService.isSuperAdmin;\\n if (isSuperAdmin()) {\\n $window.location.hash = '#/';\\n $window.location.pathname = '/admin/';\\n } else {\\n $window.location.hash = '#/';\\n $window.location.pathname = '/app/';\\n }\\n });\\n }\",\n \"linkToProfile() {\\n const id = this.props.person.id;\\n const isStudent = this.props.person.customer_id ? true : false\\n\\n /* Use the customer_id field to check whether the person is\\n a student or a teacher. */\\n\\n if (isStudent) {\\n window.location = RouteConstants.admin.studentProfile(id);\\n } else {\\n window.location = RouteConstants.admin.teacherProfile(id);\\n }\\n }\",\n \"function AddNewDetail() {\\r\\n navigation.navigate('DetailRegister', { edit: false, step: {} });\\r\\n }\",\n \"function navShowSubmitForm(evt) {\\n // console.debug(\\\"navShowSubmitForm\\\", evt);\\n evt.preventDefault();\\n // on click, show() the hidden stories form\\n $submitForm.show();\\n}\",\n \"function linkAdminCompose(fWhere) {\\r\\n try {\\r\\n setUpLinkBackJSON(fWhere);;\\r\\n window.location.href = \\\"adminCompose.html\\\";\\r\\n } catch (e) {\\r\\n alert(e.name + \\\"\\\\n\\\" + e.message)\\r\\n }\\r\\n}\",\n \"function getOrderStaffDetails() {\\r\\n//\\tparent.document.searchResultsForm.loadPage.value = \\\"orderDetailPage\\\";\\r\\n\\tparent.document.searchResultsForm.loadPage.value = \\\"orderStaffDetailPage\\\";\\r\\n\\tparent.document.searchResultsForm.facilityId.value = facilityIdVal;\\r\\n\\tparent.document.searchResultsForm.spectraMRN.value = spectraMRNVal;\\r\\n\\tparent.document.searchResultsForm.processorName.value = 'OrderStaffProcessor';\\r\\n\\tparent.document.searchResultsForm.processorAction.value = 'getOrderSum'; \\r\\n\\tparent.document.searchResultsForm.submit();\\r\\n}\",\n \"function handleDreamsEdit() {\\n var currentDream = $(this)\\n .parent()\\n .parent()\\n .parent()\\n .data(\\\"dream\\\");\\n window.location.href = \\\"/new-dream?dream_id=\\\" + currentDream.id;\\n }\",\n \"openCurrentUser() {\\n window.location.href = window.location.origin + '/users?name=' + this.state.currentUser.firstName + ' ' + this.state.currentUser.lastName;\\n }\",\n \"function gotoeditteamsFunction() {\\n var x = document.getElementById(\\\"addteamshtml\\\");\\n var i = document.getElementById(\\\"editteamshtml\\\");\\n var a = document.getElementById(\\\"homepagehtml\\\");\\n x.style.display = \\\"none\\\";\\n i.style.display = \\\"block\\\";\\n a.style.display = \\\"none\\\"\\n }\",\n \"function directToContactForm ()\\n{\\n\\t$('html, body').animate({\\n\\t\\tscrollTop : $(\\\"#contact-me\\\").offset().top\\n\\t}, 'slow');\\n}\",\n \"function showRegister() {\\n clearErrorMsg();\\n showLinks(['loginLink']);\\n showView('registerForm');\\n}\",\n \"function goToAccRec() {\\n $('#peInvoiceInformation').show();\\n $('#invoiceInformation').hide();\\n $('#financialSection').show();\\n updatePricingInfo();\\n fillPeInvsTable(DATA);\\n}\",\n \"function Users(){\\r\\n window.location=\\\"/pages/Admin/users/users_ui.html\\\";\\r\\n}\",\n \"function onEditContact(e) {\\n contactForm.buildContactForm(activeContact); \\n $.mobile.changePage(\\\"#edit_contact_page\\\", { transition: \\\"pop\\\" });\\n}\",\n \"function toStaffs(){\\n document.getElementById(\\\"input\\\").innerHTML = staffForm();\\n}\",\n \"goToReferralPanel(referral) {\\n let personaBar = window.parent.dnn ? window.parent.dnn.PersonaBar : null;\\n if (personaBar) {\\n personaBar.openPanel(referral, {}); //Open, panel should already be rendered, so no need to pass params.\\n this.updateReferral(\\\"\\\", \\\"\\\");\\n }\\n }\",\n \"function goToTechnician() {\\r\\n\\tdocument.location.href="https://huggingface.co/datasets/nomic-ai/cornstack-javascript-v1/viewer/default/technician.php";\\r\\n}\",\n \"function view () {\\n $('div.employeeList').removeClass('hidden');\\n // $('form.addForm').addClass('hidden');\\n var forms = document.querySelectorAll('form');\\n if (forms[0] != undefined) {\\n document.body.removeChild(forms[0]);\\n }\\n toggleActive('View');\\n}\",\n \"function showLogin() {\\n clearErrorMsg();\\n showView('loginForm');\\n showLinks(['registerLink']);\\n}\",\n \"function linkStudentCompose(fWhere) {\\r\\n try {\\r\\n setUpLinkBackJSON(fWhere);\\r\\n window.location.href = \\\"studentCompose.html\\\";\\r\\n } catch (e) {\\r\\n alert(e.name + \\\"\\\\n\\\" + e.message)\\r\\n }\\r\\n}\",\n \"back() {\\n this.showUserEditForm = false;\\n }\",\n \"createAccount() {\\n this.props.nav.navigate(\\\"Create Student User\\\");\\n }\",\n \"onClickNavToOverview() {\\n this.transitionToRoute('manage.alert', this.get('id'));\\n }\",\n \"function activateForm(name){\\n $('.signup-individual.active, .signup-team.active').removeClass('active');\\n $('.signup-' + name).addClass('active');\\n $('.register-as:checked').attr('checked', false);\\n $('.register-as:not(:checked)').attr('checked', true);\\n }\",\n \"render(){\\n return(\\n
    \\n

    Liste des employés

    \\n \\n \\n
    \\n );\\n }\",\n \"function onGoBack() {\\n setFormDataEdit(null);\\n setStep('Menu');\\n }\",\n \"function showList() {\\n\\t\\t\\t$state.go('^');\\n\\t\\t}\",\n \"function showList() {\\n\\t\\t\\t$state.go('^');\\n\\t\\t}\",\n \"function clickFacultyDirectory(){\\r\\n window.location.href = 'FacultyDirectory.php';\\r\\n}\",\n \"nav_helper_edit(data) {\\n\\t\\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\\n\\t\\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\\n\\t\\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\\n\\t\\tutil.elementClickable(this.editBtn)\\n\\t}\",\n \"function editPage () {\\n EditReviewService.setFromReviewPage(true)\\n $state.go(this.goToRoute)\\n }\",\n \"function goToListView(){\\n\\t$(\\\"#bankId\\\").val(\\\"\\\");\\n\\tvar mainmenu = $('#mainmenu').val();\\n\\tvar pageview = $('#pageview').val();\\n\\tif (pageview == \\\"bankView\\\") {\\n\\t\\t$('#pageview').val('banklistview');\\n\\t\\t$('#bankView').attr('action', 'listview?mainmenu='+mainmenu+'&time='+datetime);\\n\\t\\t$(\\\"#bankView\\\").submit();\\n\\t} else {\\n\\t\\t$('#pageview').val('othbanklistview');\\n\\t\\t$('#bankView').attr('action', 'othbanklistview?mainmenu='+mainmenu+'&time='+datetime);\\n\\t\\t$(\\\"#bankView\\\").submit();\\n\\t}\\n}\",\n \"function NavFormSelect(strFormName,strFieldName) {\\n intSelected = document[strFormName].elements[strFieldName].options.selectedIndex;\\n strURL = document[strFormName].elements[strFieldName].options[intSelected].value;\\n document[strFormName].elements[strFieldName].options.selectedIndex = 0;\\n if (strURL != \\\"\\\") {\\n location.href = strURL;\\n }\\n}\",\n \"showCreateForm(data) {\\n this.clearNewOrgan(data);\\n this.changeFormMode(this.FORM_MODES.CREATE);\\n }\",\n \"function showListForm() {\\n vm.isListFormVisible = true;\\n }\",\n \"function redirect() {\\n\\tvar schemaBuilder = lf.schema.create('fashionfitness', 1);\\n\\tschemaBuilder.createTable('login').\\n\\t\\taddColumn('id', lf.Type.INTEGER).\\n\\t\\taddColumn('username', lf.Type.STRING).\\n\\t\\taddColumn('password', lf.Type.STRING).\\n\\t\\taddColumn('active', lf.Type.BOOLEAN).\\n\\t\\taddPrimaryKey(['id']);\\n\\t// Connect to the database and add an account\\n\\tschemaBuilder.connect().then(function(db) {\\n\\t\\tvar account = db.getSchema().table('login');\\n\\t\\treturn db.select().\\n\\t\\t\\t\\tfrom(account).\\n\\t\\t\\t\\twhere(account.active.eq(true)).\\n\\t\\t\\t\\texec().\\n\\t\\tthen(function(results) {\\n\\t\\t\\tresults.forEach(function(row) {\\n\\t\\t\\t\\tconsole.log(\\\"Utente loggato, reindirizzo alla dashboard\\\");\\n\\t\\t\\t\\t// window.location.href = \\\"home.html\\\" // Adds an item to the history\\n\\t\\t\\t\\twindow.location.replace(\\\"home.html\\\"); // It replaces the current history item, you can't go back\\n\\t\\t\\t});\\n\\t\\t});\\n\\t});\\n}\",\n \"goToAjout() {\\n history.push(\\\"/main/clients/ajout\\\");\\n }\",\n \"function switchForm(to=0) {\\n let viaurl = document.getElementById('new-i-form-viaurl');\\n let viaform = document.getElementById('new-i-form-page');\\n if (viaurl && viaform) { \\n viaurl.style.display = to ? 'none' : '';\\n viaform.style.display = to ? '' : 'none';\\n }\\n}\",\n \"function adminView(){\\r\\n window.location=\\\"/pages/Admin/admin.html\\\";\\r\\n}\",\n \"function onSubmitted(){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tlocation.hash = \\\"/tool/list\\\";\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t}\",\n \"function goToEditNewsForm(newsId, urlBeginning) {\\n\\tvar targetUrl = urlBeginning + newsId + \\\"/\\\";\\n\\n\\t$.ajax({\\n\\t\\ttype : \\\"GET\\\",\\n\\t\\turl : targetUrl,\\n\\t\\tdata : {},\\n\\t\\tsuccess : function(response) {\\n\\t\\t\\tsetInputFields(response.news);\\n\\t\\t\\tsetSendNotification(response.sendNotification);\\n\\t\\t\\tsetFormAction(response.formAction);\\n\\t\\t\\tsetTitleOfSubmitButton(response.localizedTitleOfSubmit);\\n\\t\\t\\tshowNewsForm();\\n\\t\\t},\\n\\t\\terror : function(e) {\\n\\t\\t\\talert(\\\"Error: \\\" + e.toSource());\\n\\t\\t}\\n\\t});\\n}\",\n \"function updateLangStaff() {\\n showOrder(currentTableID);\\n showAccountBox();\\n}\",\n \"function StepBackForm(from, to) {\\n $(\\\"#question\\\" + from).hide();\\n $(\\\"#question\\\" + to).fadeIn(300);\\n\\n $(formInUse)[0].reset();\\n }\",\n \"function go_articulos() {\\n $state.go('complex_articles.list');\\n }\",\n \"function goToMain() {\\n let inputValue = $('#land-input').val()\\n\\n user.lastRecipeSearched = inputValue;\\n user.addSearchedIngredients(inputValue);\\n save(user)\\n\\n redirectMainUrl();\\n}\",\n \"function StaffController(StaffService, loggerFactory, $mdSidenav, $mdToast, $window) {\\n var vm = this;\\n vm.staffMembers = [];\\n vm.appointment = {};\\n vm.selectedMember = null;\\n vm.isFabOpen = false;\\n vm.isSelected = false;\\n vm.selectedMemberIndex = 0;\\n vm.selectStaffMember = selectStaffMember;\\n vm.toggleMemberList = toggleMemberList;\\n vm.toggleSelection = toggleSelection;\\n vm.openSideMenu = openSideMenu;\\n vm.navigateTo = navigateTo;\\n vm.desiredDate = new Date();\\n vm.currentTime = new Date().getTime();\\n\\n activate();\\n\\n /**\\n * Initial execution function on page load.\\n */\\n function activate() {\\n return StaffService.getAllStaffMembers().then(function (data) {\\n vm.staffMembers = data;\\n vm.selectedMember = data[0];\\n loggerFactory.info('Staff Members: ', data);\\n }, function (err) {\\n loggerFactory.error('Get Staff Members: ', err);\\n });\\n }\\n\\n /**\\n * Select the current staff member.\\n * @param memberId\\n */\\n function selectStaffMember(member, index) {\\n vm.isSelected = false;\\n vm.selectedMemberIndex = index;\\n vm.selectedMember = angular.isDefined(member) ? member : vm.staffMembers[0];\\n if (!$mdSidenav('left').isLockedOpen()) {\\n $mdSidenav('left').close();\\n }\\n }\\n\\n /**\\n * Hide or Show the 'left' SideNav when small screen.\\n */\\n function toggleMemberList() {\\n $mdSidenav('left').toggle();\\n }\\n\\n function toggleSelection() {\\n vm.isSelected = !vm.isSelected;\\n if(vm.isSelected){\\n showFavoriteToast();\\n }\\n }\\n\\n /**\\n * Open the side menu when small screen.\\n */\\n function openSideMenu($mdMenu, event) {\\n $mdMenu.open(event);\\n }\\n\\n /**\\n * Open favorite selected tooltip.\\n */\\n function showFavoriteToast() {\\n $mdToast.show({\\n hideDelay: 3000,\\n position: 'top right',\\n controller: 'ToastController',\\n controllerAs: 'toast',\\n templateUrl: 'fav_toast_template.html',\\n bindToController: true\\n });\\n }\\n\\n /**\\n * Go to requested URL..\\n * @param url\\n */\\n function navigateTo(url){\\n $window.open(url, '_blank');\\n }\\n }\",\n \"nav_helper_view1(data) {\\n\\t\\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\\n\\t\\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\\n\\t\\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\\n\\t\\t\\n\\n\\t}\"\n]"},"negative_scores":{"kind":"list like","value":["0.6240528","0.61439514","0.61242485","0.6050199","0.600022","0.59662825","0.5946681","0.59011465","0.5860641","0.57740957","0.57555044","0.5737218","0.57329136","0.57038194","0.56832534","0.5556401","0.55382675","0.5529626","0.55082667","0.5499365","0.549182","0.54756427","0.5471945","0.5458416","0.5458416","0.5449401","0.5448497","0.5407151","0.5403561","0.5394021","0.5384159","0.5377258","0.53578645","0.5350801","0.53347504","0.53300697","0.5322196","0.5312139","0.5304346","0.53019094","0.5295631","0.5290626","0.5280081","0.5274358","0.5274358","0.5274283","0.5262221","0.5256027","0.52515894","0.52515894","0.52409524","0.52281994","0.522087","0.52195734","0.52195436","0.52094203","0.5207927","0.5205745","0.51965624","0.51944155","0.51779175","0.5175718","0.51736027","0.5173181","0.5173114","0.5172843","0.51541436","0.51456654","0.514472","0.51430696","0.5133194","0.51299614","0.5125849","0.5121384","0.512117","0.5115416","0.5107047","0.5102267","0.5088695","0.50864476","0.5073673","0.5073673","0.5070167","0.5068654","0.50640374","0.5063138","0.50594705","0.50586414","0.5054616","0.5053646","0.50513273","0.50489277","0.50458264","0.5037849","0.5037759","0.50330734","0.50329816","0.5028794","0.5027404","0.50218993","0.50214195"],"string":"[\n \"0.6240528\",\n \"0.61439514\",\n \"0.61242485\",\n \"0.6050199\",\n \"0.600022\",\n \"0.59662825\",\n \"0.5946681\",\n \"0.59011465\",\n \"0.5860641\",\n \"0.57740957\",\n \"0.57555044\",\n \"0.5737218\",\n \"0.57329136\",\n \"0.57038194\",\n \"0.56832534\",\n \"0.5556401\",\n \"0.55382675\",\n \"0.5529626\",\n \"0.55082667\",\n \"0.5499365\",\n \"0.549182\",\n \"0.54756427\",\n \"0.5471945\",\n \"0.5458416\",\n \"0.5458416\",\n \"0.5449401\",\n \"0.5448497\",\n \"0.5407151\",\n \"0.5403561\",\n \"0.5394021\",\n \"0.5384159\",\n \"0.5377258\",\n \"0.53578645\",\n \"0.5350801\",\n \"0.53347504\",\n \"0.53300697\",\n \"0.5322196\",\n \"0.5312139\",\n \"0.5304346\",\n \"0.53019094\",\n \"0.5295631\",\n \"0.5290626\",\n \"0.5280081\",\n \"0.5274358\",\n \"0.5274358\",\n \"0.5274283\",\n \"0.5262221\",\n \"0.5256027\",\n \"0.52515894\",\n \"0.52515894\",\n \"0.52409524\",\n \"0.52281994\",\n \"0.522087\",\n \"0.52195734\",\n \"0.52195436\",\n \"0.52094203\",\n \"0.5207927\",\n \"0.5205745\",\n \"0.51965624\",\n \"0.51944155\",\n \"0.51779175\",\n \"0.5175718\",\n \"0.51736027\",\n \"0.5173181\",\n \"0.5173114\",\n \"0.5172843\",\n \"0.51541436\",\n \"0.51456654\",\n \"0.514472\",\n \"0.51430696\",\n \"0.5133194\",\n \"0.51299614\",\n \"0.5125849\",\n \"0.5121384\",\n \"0.512117\",\n \"0.5115416\",\n \"0.5107047\",\n \"0.5102267\",\n \"0.5088695\",\n \"0.50864476\",\n \"0.5073673\",\n \"0.5073673\",\n \"0.5070167\",\n \"0.5068654\",\n \"0.50640374\",\n \"0.5063138\",\n \"0.50594705\",\n \"0.50586414\",\n \"0.5054616\",\n \"0.5053646\",\n \"0.50513273\",\n \"0.50489277\",\n \"0.50458264\",\n \"0.5037849\",\n \"0.5037759\",\n \"0.50330734\",\n \"0.50329816\",\n \"0.5028794\",\n \"0.5027404\",\n \"0.50218993\",\n \"0.50214195\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":223,"cells":{"query":{"kind":"string","value":"Navigational, leads to syllable form."},"document":{"kind":"string","value":"function toSyllable(){\n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function L() {\n if (Syllable.DEBUG) Vex.L(\"Vex.Flow.Syllable\", arguments);\n }","function applyCurrentSyllable(){\n currentSyllableIndex = document.getElementById(\"syllable\").value;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}","viewTranslation() {\n switch(this.state.CurrentViewIndex) {\n case 0 :\n return \"By Student\";\n case 1 :\n return \"By Poem\";\n default:\n return \"\";\n }\n }","function translationLabels(){\n /** This help array shows the hints for this experiment */\n\t\t\t\thelpArray=[_(\"help1\"),_(\"help2\"),_(\"help3\"),_(\"help4\"),_(\"help5\"),_(\"help6\"),_(\"help7\"),_(\"Next\"),_(\"Close\"),_(\"help8\"),_(\"help9\")];\n scope.heading=_(\"Emission spectra\");\n\t\t\t\tscope.variables=_(\"Variables\"); \n\t\t\t\tscope.result=_(\"Result\"); \n\t\t\t\tscope.copyright=_(\"copyright\"); \n\t\t\t\tscope.calibrate_txt = _(\"Reset\");\n scope.calibrate_slider_txt = _(\"Calibrate Telescope :\");\n scope.select_lamp_txt = _(\"Select Lamp :\");\n light_on_txt = _(\"Switch On Light\");\n light_off_txt = _(\"Switch Off Light\");\n place_grating_txt = _(\"Place grating\");\n remove_grating_txt = _(\"Remove grating\");\n scope.telescope_angle_txt = _(\"Angle of Telescope :\");\n scope.vernier_table_angle_txt = _(\"Angle of Vernier Table :\");\n scope.fine_angle_txt = _(\"Fine Angle of Telescope :\");\n scope.start_txt = _(\"Start\");\n\t\t\t\tscope.reset_txt = _(\"Reset\");\n scope.lamp_array = [{\n lamp:_(\"Mercury\"),\n index:0\n },{\n lamp:_(\"Hydrogen\"),\n index:1\n },{\n lamp:_(\"Neon\"),\n index:2\n }];\n scope.$apply();\t\t\t\t\n\t\t\t}","title() { return this.owner.name + \" - \" + this.label.replace('\\n', ' ') }","function translationLabels(){\n /** This help array shows the hints for this experiment */\n\t\t\t\thelpArray=[_(\"help1\"),_(\"help2\"),_(\"help3\"),_(\"help4\"),_(\"help5\"),_(\"Next\"),_(\"Close\")];\n scope.heading=_(\"Millikan's Oil Drop Experiment\");\n\t\t\t\tscope.variables=_(\"Variables\"); \n\t\t\t\tscope.result=_(\"Result\"); \n\t\t\t\tscope.copyright=_(\"copyright\");\n buttonTxt = [_(\"Start\"),_(\"Reset\"),_(\"Voltage On\"),_(\"Voltage Off\"), _(\"X Ray On\"), _(\"X Ray Off\")];\n scope.start_txt = buttonTxt[0];\n scope.oil_type_txt = _(\"Choose Oil Type\");\n scope.voltageOnOff_txt = buttonTxt[2];\n scope.adjustVoltage_txt = _(\"Adjust Voltage(KV): \");\n scope.xRay_txt = buttonTxt[4];\n scope.reset_txt = buttonTxt[1];\n scope.voltApplied_txt = _(\"Voltage Applied (v)\");\n\t\t\t\tscope.oilDensity_txt = _(\"Oil Density (kg/m\");\n scope.oil_type = [{\n oil:_(\"Olive Oil\"),\n index:0\n },{\n oil:_(\"Glycerin\"),\n index:1\n }];\n scope.$apply();\t\t\t\t\n\t\t\t}","get text(){ return this.__label.text; }","function translationLabels() {\n\t\t\t\t\t/** This help array shows the hints for this experiment */\n\t\t\t\t\thelp_array = [_(\"help1\"), _(\"help2\"), _(\"help3\"), _(\"help4\"),_(\"Next\"), _(\"Close\")];\n\t\t\t\t\tscope.heading = _(\"heading\");\n\t\t\t\t\tscope.Variables = _(\"Variables\");\n\t\t\t\t\tscope.BaseValue=_(\"basevalue\");\n\t\t\t\t\tscope.Doublebond=_(\"Doublebond\");\n\t\t\t\t\tscope.Exocyclicdouble=_(\"Exocyclicdouble\");\n\t\t\t\t\tscope.Polargroups=_(\"Polargroups\");\n\t\t\t\t\tscope.AlkylSubstituent=_(\"AlkylSubstituent\");\n\t\t\t\t\tscope.ringResidue=_(\"ringResidue\");\n\t\t\t\t\tscope.Controls=_(\"Controls\");\n\t\t\t\t\tscope.lamdaMax=_(\"lamdaMax\");\n\t\t\t\t\tscope.Correct=_(\"Correct\");\n\t\t\t\t\tscope.Submit=_(\"Submit\"); \t\t\t\t\n\t\t\t\t\tscope.Aromatic=_(\"Aromatic\"); \t\t\t\t\n\t\t\t\t\tscope.Ketone=_(\"Ketone\"); \t\t\t\t\n\t\t\t\t\tscope.Conjugate=_(\"Conjugate\"); \t\t\t\t\n\t\t\t\t\tscope.AlkylSubstituentKeto=_(\"AlkylSubstituentKeto\"); \t\t\t\t\n\t\t\t\t\tscope.Polargroupsposition=_(\"Polargroupsposition\"); \t\t\t\t\n\t\t\t\t\tscope.Homodienecompound=_(\"Homodienecompound\"); \t\t\t\t\n\t\t\t\t\tscope.Ortho=_(\"Ortho\"); \t\t\t\t\n\t\t\t\t\tscope.Para=_(\"Para\"); \t\t\t\t\n\t\t\t\t\tscope.Meta=_(\"Meta\"); \t\t\t\t\n\t\t\t\t\tscope.lambdamax=_(\"lambdamax\"); \t\t\t\t\n\t\t\t\t\tscope.lambdamax=_(\"lambdamax\"); \t\t\t\t\n\t\t\t\t\tscope.result = _(\"Result\");\n\t\t\t\t\tscope.copyright = _(\"copyright\");\n\t\t\t\t\twoodward_fieser_stage.update();\n\t\t\t\t}","function toChangeSyllableData(){\n if(syllables.length > 0){\n currentType = syllables[0].type;\n currentColor = syllables[0].color;\n }\n pushedNeumeVariations = false;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}","formatDefaultLabel(text) {\n const { disabled, onFocus, onBlur, onClick } = this.props\n const { value, open } = this.state\n return (\n disabled ?\n \n {text}\n \n : {\n this.toggleOpen(!open)\n if (onClick) onClick()\n }\n }>\n {text}\n \n )\n }","static get BUTTON_L() {\n return \"tl\";\n }","function idiomaingles() {\n alert('Nivel Alto. Título Superior de la Escuela Oficial de Idiomas');\n }","function createSimplifiedWordLabel(item) {\n return '' +\n item.originalValue + \n '';\n }","function translationLabels(){\n /** This help array shows the hints for this experiment */\n\t\t\t\thelpArray = [_(\"Next\"),_(\"Close\"),_(\"help1\"),_(\"help2\"),_(\"help3\"),_(\"help4\"),_(\"help5\"),_(\"help6\"),_(\"help7\"),_(\"help8\"),_(\"help9\"),_(\"help10\")];\n scope.heading = _(\"Young's Modulus-Uniform Bending\");\n\t\t\t\tscope.variables = _(\"Variables\"); \n\t\t\t\tscope.result = _(\"Result\"); \n\t\t\t\tscope.copyright = _(\"copyright\"); \n\t\t\t\tscope.environment_lbl = _(\"Select Environment\");\n\t\t\t\tscope.material_lbl = _(\"Select Material\");\n\t\t\t\tscope.mass_lbl = _(\"Mass of weight hanger : \");\n\t\t\t\tscope.material_lbl = _(\"Select Material\");\n\t\t\t\tscope.unit_gram = _(\"g\");\n\t\t\t\tscope.unit_cm = _(\"cm\");\n\t\t\t\tscope.breadth_lbl = _(\"Breadth of bar(b) : \");\n scope.thickness_lbl = _(\"Thickness of bar(d) : \");\n scope.blade_distance_lbl = _(\"Knife edge distance : \");\n scope.weight_hangers_distance_lbl = _(\"Weight hangers distance : \");\n scope.reset = _(\"Reset\");\n\t\t\t\tscope.result_txt = _(\"Young's Modulus of \");\n\t\t\t\tscope.environment_array = [{\n environment: _('Earth, g=9.8m/s'),\n value: 9.8\n }, {\n environment: _('Moon, g=1.63m/s'),\n value: 1.63\n }, {\n environment: _('Uranus, g=10.67m/s'),\n value: 10.67\n }, {\n environment: _('Saturn, g=11.08m/s'),\n value: 11.08\n }];\n scope.material_array = [{\n material: _('Wood'),\n value: 1.1\n }, {\n material: _('Aluminium'),\n value: 6.9\n }, {\n material: _('Copper'),\n value: 11.7\n }, {\n material: _('Steel'),\n value: 20\n }];\n\n scope.$apply();\t\t\t\t\n\t\t\t}","function stepSyllable() {\n drums();\n try {\n var s = poem[stanza];\n\n var v = s[verse];\n if (!v) {\n stepStanza();\n return stepSyllable();\n }\n var w = v.w[word];\n if (!w) {\n stepVerse();\n return stepSyllable();\n }\n var sb = w.s[syllable];\n if (!sb) {\n stepWord();\n return stepSyllable();\n }\n\n printSyllable(sb);\n\n var note = chooseNote(sb);\n playNote(note);\n sock.write(deaccent(sb));\n syllable++\n\n } catch (e) {\n stepStanza();\n intro.draw(1);\n }\n}","function showPhrase(link, path, trans, lang, explan) {\r\n}","function translationLabels(){\n /** This help array shows the hints for this experiment */\n helpArray=[_(\"Next\"),_(\"Close\"),_(\"help1\"),_(\"help2\"),_(\"help3\"),_(\"help4\"),_(\"help5\")];\n scope.heading=_(\"Moment of Inertia of Flywheel\");\n scope.variables=_(\"Variables\"); \n scope.result=_(\"Result\"); \n scope.copyright=_(\"copyright\"); \n scope.choose_enviornment = _(\"Choose Environment:\");\n cm = _(\" cm\");\n scope.kg = _(\"kg\");\n scope.cm = cm;\n scope.gm = _(\"gm\");\n scope.earth = _(\"Earth, g=9.8m/s\");\n scope.mass_of_fly_wheel_lbl = _(\"Mass of fly wheel:\");\n scope.dia_of_fly_wheel_lbl = _(\"Diameter of fly wheel:\");\n scope.mass_of_rings_lbl = _(\"Mass of rings:\");\n scope.axle_diameter_lbl = _(\"Diameter of axle:\");\n scope.no_of_wound_lbl = _(\"No. of wound of chord:\");\n scope.mInertia_lbl = _(\"First start experiment..!\");\n scope.mInertia_val = \"\";\n btn_lbls = [_(\"Release fly wheel\"),_(\"Hold fly wheel\")];\n scope.release_hold_txt = btn_lbls[0];\n scope.reset = _(\"Reset\");\n scope.enviornment_array = [{\n enviornment: _('Earth, g=9.8m/s'),\n type: 9.8\n }, {\n enviornment: _('Moon, g=1.63m/s'),\n type: 1.63\n }, {\n enviornment: _('Uranus, g=10.5m/s'),\n type: 10.5\n }, {\n enviornment: _('Saturn, g=11.08m/s'),\n type: 11.08\n }, {\n enviornment: _('Jupiter, g=25.95m/s'),\n type: 25.95\n }];\n scope.$apply(); \n }","function TI18n() { }","function TI18n() { }","function helpMenu() {\n $scope.menuTitle = createText(\"Help\", [20, 10]);\n createText(\"Sorry you can't count on anyone's help for now\", [50, 80], {font: 'bold 20px Arial'});\n }","function createOptionLabel(Text,URL){\n if ( URL && !isAllWhite(URL) )\n return ( Text + \" (\" + URL + \")\" );\n else\n return Text ;\n}","function q(a){var c=g(a);if(c.id){\n// get the related l10n object\nvar d=n(c.id,c.args);if(!d)return void console.warn(\"#\"+c.id+\" is undefined.\");\n// translate element (TODO: security checks?)\nif(d[v]){// XXX\nif(0===r(a))a[v]=d[v];else{for(var e=a.childNodes,f=!1,h=0,i=e.length;i>h;h++)3===e[h].nodeType&&/\\S/.test(e[h].nodeValue)&&(f?e[h].nodeValue=\"\":(e[h].nodeValue=d[v],f=!0));\n// if no (non-empty) textNode is found, insert a textNode before the\n// first element child.\nif(!f){var j=b.createTextNode(d[v]);a.insertBefore(j,a.firstChild)}}delete d[v]}for(var k in d)a[k]=d[k]}}","get escapeLabelHTML() {\n return false;\n }","get title() { return \"Local Coding\"}","function toSyllableFromNeumeVariations(){\n pushedNeumeVariations = false;\n neumeVariations = new Array();\n \n isNeumeVariant = false;\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","@readOnly\n @computed('label', 'opened')\n ariaLabel (label, opened) {\n const verb = opened ? 'Hide' : 'Show'\n\n if (label) {\n return `${verb} ${label} combobox`\n }\n\n return `${verb} combobox`\n }","function spellsMenu() {\n $scope.menuTitle = createText(\"Spells\", [20, 10]);\n createText(\"Not yet implemented\", [50, 80], {});\n }","render_explanation () {}","getAriaLabel() {\n var states;\n if (this.isDrillable()) {\n states = [this._axis.getOptions().translations.stateDrillable];\n }\n if (this.getDatatip() != null) {\n return dvt.Displayable.generateAriaLabel(this.getDatatip(), states);\n } else if (states != null) {\n return dvt.Displayable.generateAriaLabel(this.getLabel().getTextString(), states);\n }\n }","function VIEWAS_boring_default(obj) {\n //tabulator.log.debug(\"entered VIEWAS_boring_default...\");\n var rep; //representation in html\n\n if (obj.termType == 'literal')\n {\n var styles = { 'integer': 'text-align: right;',\n 'decimal': 'text-align: \".\";',\n 'double' : 'text-align: \".\";',\n };\n rep = myDocument.createElement('span');\n rep.textContent = obj.value;\n // Newlines have effect and overlong lines wrapped automatically\n var style = '';\n if (obj.datatype && obj.datatype.uri) {\n var xsd = tabulator.ns.xsd('').uri;\n if (obj.datatype.uri.slice(0, xsd.length) == xsd)\n style = styles[obj.datatype.uri.slice(xsd.length)];\n }\n rep.setAttribute('style', style ? style : 'white-space: pre-wrap;');\n\n } else if (obj.termType == 'symbol' || obj.termType == 'bnode') {\n rep = myDocument.createElement('span');\n rep.setAttribute('about', obj.toNT());\n thisOutline.appendAccessIcons(kb, rep, obj);\n\n if (obj.termType == 'symbol') {\n if (obj.uri.slice(0,4) == 'tel:') {\n var num = obj.uri.slice(4);\n var anchor = myDocument.createElement('a');\n rep.appendChild(myDocument.createTextNode(num));\n anchor.setAttribute('href', obj.uri);\n anchor.appendChild(tabulator.Util.AJARImage(tabulator.Icon.src.icon_telephone,\n 'phone', 'phone '+num,myDocument))\n rep.appendChild(anchor);\n anchor.firstChild.setAttribute('class', 'phoneIcon');\n } else { // not tel:\n rep.appendChild(myDocument.createTextNode(tabulator.Util.label(obj)));\n }\n } else { // bnode\n rep.appendChild(myDocument.createTextNode(tabulator.Util.label(obj)));\n }\n } else if (obj.termType=='collection'){\n // obj.elements is an array of the elements in the collection\n rep = myDocument.createElement('table');\n rep.setAttribute('about', obj.toNT());\n /* Not sure which looks best -- with or without. I think without\n\n var tr = rep.appendChild(document.createElement('tr'));\n tr.appendChild(document.createTextNode(\n obj.elements.length ? '(' + obj.elements.length+')' : '(none)'));\n */\n for (var i=0; i(\")\n .replaceAll(\"hysician\", \"hys.\")\n .replaceAll(\"Emergency room\", \"ER\");\n return newlabel;\n }\n }","function showLicenceKey() {\n routingBase.goToCurrentState('license');\n }","displayRender(label) {\n return label[label.length - 1]\n }","function addMainElementLabel () {\n\t\tvar h1 = $(\"#ibm-leadspace-head h1\").text() || \"\",\n\t\t\tselectedTab = $(\"#ibm-primary-tabs li a[aria-selected='true']\").text() || \"\",\n\t\t\tselectedSubtab = $(\"#ibm-secondary-tabs li a[aria-selected='true']\").text() || \"\",\n\t\t\tselectedLeftNav = $(\"#ibm-primary-links > li > a[aria-selected='true']\").text() || \"\",\n\t\t\tselectedLeftSubNav = $(\"#ibm-primary-links > li ul li a[aria-selected='true']\").text() || \"\";\n\t\t\t\n\t\t$(\"main\").removeAttr(\"aria-labelledby\").attr(\"aria-label\", $.trim(selectedLeftSubNav + \" \" + selectedSubtab + \" \" + selectedLeftNav + \" \" + selectedTab + \" \" + h1));\n\t}","_getAriaLabel(title) {\n return !title ? \"Modal Dialog\" : null;\n }","function PLAIN$static_(){ToolbarSkin.PLAIN=( new ToolbarSkin(\"plain\"));}","function TI18n() {}","function TI18n() {}","function TI18n() {}","function newAnchorLabel() {\n count = ++that.anchor_count;\n anchor_label = strval((count + 1)); //generating footnote number starting at 1 instead of 0\n /* yil original letter generating label code\n anchor_label = '';\n do {\n anchor_label = chr(ord('a') + (count % 26)) + anchor_label;\n count = (int) floor(count / 26);\n } while (count > 0);*/\n return anchor_label;\n }","static get LABEL_NONE () {return 'none';}","function Lang() { \n}","UpdateAriaLabel() {\n // subclasses should override\n }","function helpNav(){\n helpBox.innerHTML = \"

    This is the navigation bar. It displays links to other basic applications on the site. Authentication is also listed.

    \";\n showHelp();\n }","showFullName() {\n return `${this._fullName}`;\n }","function useMngLblLnk()\n {\n this.ruleID = 'useMngLblLnk';\n }","function showLangs(data, status, repo){\n\t\t\t// clear the elements out\n\t\t\tcall_EventDrop(searchterm, repo);\n\n\n\t\t}","function assLblExpCtrl()\n {\n this.ruleID = 'assLblExpCtrl';\n }","function translate(el){\n/* 306 */ \t\t\t\t$(el).attr(\"title\", $(el).attr(\"title\").replace(/_/g, \"\").replace(/\\\\n/g, \"
    \").replace(/\\\\r\\\\n/g, \"
    \"));\n/* 307 */ \t\t\t}","function showLatex(){\n\tif(masterNode.getLatex() == '\\\\bigstar'){\n\t\twindow.alert('Create a deduction and then press this button to get the Virginia Lake LaTeX code for it.');\n\t\treturn false;\n\t}\n const text = toLatex(masterNode);\n\t// if successful, show and return true\n\tif(text){\n\t\twindow.prompt('Copy the LaTeX markup below and paste it into your LaTeX editor.\\nMake sure to include the Virginia Lake package.', text);\n\t\treturn true;\n\t}\n\t// if unsuccessful, show help text and return false. May be error or just no deduction\n\telse{\n\t\twindow.alert('Create a deduction and then press this button to get the Virginia Lake LaTeX code for it.');\n\t\treturn false;\n\t}\n}","renderTransitionText() {\n return (\n \n Already have an account? Sign In\n \n );\n }","function translationLabels() { /** Labels used in the experiment initialize here */\n /** This help array shows the hints for this experiment */\n help_array = [_(\"help1\"), _(\"help2\"), _(\"help3\"), _(\"help4\"), _(\"help5\"), _(\"help6\"), _(\"help7\"), _(\"Next\"), _(\"Close\")];\n /** Experiment name */\n\t\t\t\tscope.heading = _(\"Compound Pendulum\"); \n\t\t\t\t/**Show Result checkbox label*/\n scope.show_result = _(\"Show Result\");\n\t\t\t\t/**Mass of the block slider label*/\t\t\t\t\n scope.change_length = _(\"Length\"); \n\t\t\t\t/** 'Stop' button label */\n scope.stop_label = _(\"Stop\");\n\t\t\t\t/** 'Reset' button label */\t\t\t\t\n scope.reset_label = _(\"Reset\"); \n\t\t\t\t/**environment unit*/\n\t\t\t\tscope.gyration_unit = _(\"m\"); \n\t\t\t scope.gravity_unit = _(\"m/s\");\n\t\t\t\tscope.inertia_unit = _(\"kgm\");\n\t\t\t\tscope.gravity = 9.8;\n\t\t\t\tscope.gyration = 0.25;\n\t\t\t\tscope.inertia = 0.26500;\n\t\t\t\t/** length unit */\n scope.length_unit = _(\"cm\"); \n\t\t\t\t/**environment dropdown value*/\n scope.earth = _(\"Earth(g=9.8 m/s)\"); \n\t\t\t\t/**environment dropdown label*/\n scope.environment_types = _(\"Environment\"); \n /**array that shows different type of environment*/\n scope.environmentArray = [{\n environment: _('Earth(g=9.8 m/s)'),\n type: 0\n }, {\n environment: _('Moon(g=1.62 m/s)'),\n type: 1\n }, {\n environment: _('Uranus(g=9.01 m/s)'),\n type: 2\n }, {\n environment: _('Neptune(g=11.28 m/s)'),\n type: 3\n }, {\n environment: _('Jupitor(g=25.93 m/s)'),\n type: 4\n }, {\n environment: _('Venus(g=8.87 m/s)'),\n type: 5\n }, {\n environment: _('Mercury(g=3.70 m/s)'),\n type: 6\n }];\n\t\t\t\t/**label for values shown in the result part*/\n scope.result_label1 = _(\"Accelaration due to Gravity,g \");\n scope.result_label2 = _(\"Radius of Gyration,K\");\n scope.result_label3 = _(\"Moment of Inertia,I\");\n\t\t\t\tscope.variables = _(\"Variables\");\n scope.result = _(\"Result\");\n scope.copyright = _(\"copyright\");\n scope.$apply();\n }","function LabelOptions() { }","function defaultNames(){\r\n //CETE\r\n //return \"Par défaut\";\r\n return \"Par d\\u00e9faut\";\r\n //FIN CETE\r\n}","function beforeShowInfantglossary(e)\n{\n BindInfantGlossaryDetails(currentBook);\n closeNav();\n}","formatSynopsis() {\n if (this.demand) {\n return ` <${this.name}>`\n }\n return ` [${this.name}]`\n }","function displayTextTLComplete(){\r\r\n quoteLargeSplit.revert();\r\r\n }","function showPlainLanguageStatement() {\n\n hideElements();\n $('#instructions').show();\n $('#instructions').load('html/pls.html');\n $('#next').show();\n $('#next').click(showConsent);\n}","function a11yc_validation_code_display(level_arr){\njQuery(function($){\n\tvar $code = $('#a11yc_validation_code_raw'),\n\t\t\t$levels = $code.find(level_arr.map(function(el){ return '.a11yc_leve'+el }).join(',')),\n\t\t\t$objs = $code.find('.a11yc_validation_code_error, strong, a');\n\t$objs.addClass('a11yc_dn').attr('role', 'presentation');\n\t$levels.removeClass('a11yc_dn').removeAttr('role');\n});\n}","static get defaultTitle() { return 'Tool'; }","function setLabel(props){\n //label content\n var labelAttribute = \"

    \" + props[expressed] +\n \"

    \" + expressed + \"\";\n\n //create info label div\n var infolabel = d3.select(\"body\")\n .append(\"div\")\n .attr(\"class\", \"infolabel\")\n .attr(\"id\", props.adm1_code + \"_label\")\n .html(labelAttribute)\n\n var regionName = infolabel.append(\"div\")\n .attr(\"class\", \"labelname\")\n .html((props.NAME_1 + \" Region\").bold());\n }","function showProt(label) {\n\t\tvar node = cy.$(\"node[role='protein_main'][label='\"+label+\"']\");\n\t\tvar display = node.style(\"display\");\n\t\tif (display==\"none\"){\n\t\t\tnode.style(\"display\", \"element\");\n\t\t\t// cy.center(node);\n\t\t} else {\n\t\t\tnode.style(\"display\", \"none\");\n\t\t}\n\t}","lldisplayWordDefinition() {\r\n console.log(`\\nDefinition: ${this.definition}`);\r\n }","function fillLabel(opt) {\n Object(util_model[\"f\" /* defaultEmphasis */])(opt, 'label', ['show']);\n} // { [componentType]: MarkerModel }","function OLshowMarkup(str,quo){\r\r\n var so=OLoverHTML,s=(str||'null').toString(),q=(quo||0);\r\r\n overlib(OLhtmlspecialchars(s,q), CAPTION,'
    Markup
    ', EXCLUSIVEOVERRIDE, STICKY, EXCLUSIVE,\r\r\n BGCLASS,'', BORDER,1, BGCOLOR,'#666666', BASE,0, CGCLASS,'', CAPTIONFONTCLASS,'', CLOSEFONTCLASS,'', CAPTIONPADDING,6,\r\r\n CGCOLOR,'#999999', CAPTIONSIZE,'12px', CAPCOLOR,'#ffffff', CLOSESIZE,'11px', CLOSECOLOR,'#ffffff', FGCLASS,'',\r\r\n TEXTFONTCLASS,'', TEXTPADDING,6, FGCOLOR,'#eeeeee', TEXTSIZE,'12px', TEXTCOLOR,'#000000', MIDX,0, RELY,5, WRAP,\r\r\n (OLfilterPI)?-FILTER:DONOTHING, (OLshadowPI)?-SHADOW:DONOTHING);\r\r\n OLoverHTML=so;\r\r\n}","addPhraseToDisplay(){\r\n this.setupLetterToBeDisplayed()\r\n }","function toSyllableFromVariations(){\n pushedVariations = false;\n variations = new Array();\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function translationLabels() {\n\t\t\t\t/** This help array shows the hints for this experiment */\n\t\t\t\thelpArray = [_(\"help1\"), _(\"help2\"), _(\"help3\"), _(\"help4\"),_(\"help5\"),_(\"help6\"),_(\"help7\"), _(\"Next\"), _(\"Close\")];\n\t\t\t\t/** Experiment name */\n\t\t\t\tscope.heading = _(\" Electrogravimetric Estimation of Metals\");\n\t\t\t\t/** Label for voltage slider */\n\t\t\t\tscope.voltage_label = _(\"Voltage\")\n\t\t\t\t/** Unit for voltage */\n scope.voltage_unit = _(\"V\");\n\t\t\t\t/** Label for resistance slider */\n\t\t\t\tscope.resistance_label = _(\"Resistance\")\n\t\t\t\t/** Unit for resistance */\n\t\t\t\tscope.resistance_unit = _(\"Ω\");\n\t\t\t\t/** Label for time slider */\n\t\t\t\tscope.time_label = _(\"Time\")\n\t\t\t\t/** Unit for time */\n\t\t\t\tscope.time_unit = _(\"min\");\n\t\t\t\t/** Labels for buttons */\n\t\t\t\tstart_btn_var =_(\"start\");\n\t\t\t\tstop_btn_var =_(\"stop\");\n\t\t\t\tpause_btn_var =_(\"pause\");\n\t\t\t\tplay_btn_var =_(\"play\");\n\t\t\t\tplatinum_text = _('Platinum');\n\t\t\t\tscope.reset = _(\"Reset\");\n\t\t\t\tscope.variables = _(\"variables\");\n\t\t\t\tscope.result = _(\"result\");\n\t\t\t\tscope.copyright = _(\"copyright\");\n\t\t\t\t/** Labels for select solution */\n\t\t\t\tscope.selectSolution_label = _(\"Select Solution :\");\n\t\t\t\t/** Labels for cathode */\n\t\t\t\tscope.cathode_label = _(\"Cathode\");\n\t\t\t\t/** Labels for anode */\n\t\t\t\tscope.anode_label = _(\"Anode\");\n\t\t\t\t/** Labels for initial weight of cathode */\n\t\t\t\tscope.initial_weight_label = _(\"Initial weight of cathode : 10.00 g\");\n\t\t\t\t/** Labels for total weight of cathode */\n\t\t\t\tscope.total_weight_label = _(\"Total weight of cathode\");\n\t\t\t\t/** Unit for total weight */\n\t\t\t\tscope.total_weight_unit = _(\"g\");\n\t\t\t\t/** Initializing solution array*/\n\t\t\t\tscope.selectSolutionArray = [{optionsSolution: _('CuSO₄'),type: 0}, {optionsSolution: _('PbSO₄'),type: 1}, {optionsSolution: _('MnSO₄'),type: 2},{optionsSolution: _('NiSO₄'),type: 3}, {optionsSolution: _('CdSO₄'),type: 4}];\n\t\t\t\t/** Setting initial value of cathode and anode*/\n\t\t\t\tscope.cathode_value = platinum_text;\n\t\t\t\tscope.anode_value = platinum_text;\n }","function TI18n(){}","function displayQuestion() {\n push();\n textAlign(LEFT, CENTER);\n textSize(28);\n fill(255);\n text(`lvl #2`, width / 20, height / 20);\n text(`On a scale from 'I got this' to 'AAAAAAH',\nhow confident do you feel about the future?`, width / 20, height / 10 * 2)\n pop()\n}","function LabelOptions() {}","getAddNewLabel() {\n return 'Add New';\n }","function doctorize2(name) {\r\n return `Dr. ${name}`;\r\n}","displayWordInfo() {\r\n this.displayHangman();\r\n this.displayLives();\r\n this.displayLetters();\r\n this.displayLettersToGuess();\r\n }","function StringHelp() {\n}","function NamaLabel(props) {\n return ;\n}","static labelOf(t) {\n const label= !t.desc ? Filters.titlecase(t.name.replace(/[-_]/g, ' ')) /* friendlyish name */ :\n (typeof t.desc === 'string') ? t.desc :\n t.desc.label;\n return label;\n }","function Assign_Lex_Other() {\r\n}","function __dlg_translate(_1){\r\nvar _2=[\"span\",\"option\",\"td\",\"th\",\"button\",\"div\",\"label\",\"a\",\"img\",\"legend\"];\r\nfor(var _3=0;_3<_2.length;++_3){\r\nvar _4=document.getElementsByTagName(_2[_3]);\r\nfor(var i=_4.length;--i>=0;){\r\nvar _6=_4[i];\r\nif(_6.firstChild&&_6.firstChild.data){\r\nvar _7=Xinha._lc(_6.firstChild.data,_1);\r\nif(_7){\r\n_6.firstChild.data=_7;\r\n}\r\n}\r\nif(_6.title){\r\nvar _7=Xinha._lc(_6.title,_1);\r\nif(_7){\r\n_6.title=_7;\r\n}\r\n}\r\nif(_6.alt){\r\nvar _7=Xinha._lc(_6.alt,_1);\r\nif(_7){\r\n_6.alt=_7;\r\n}\r\n}\r\n}\r\n}\r\ndocument.title=Xinha._lc(document.title,_1);\r\n}","function implAssLblFrmCtrlPrPos()\n {\n this.ruleID = 'implAssLblFrmCtrlPrPos';\n }","function showLabel(labelToken) {\n $(labelToken).css(\"left\", \"0px\");\n}","function renderNavigationMenu() {\n\n }","function VLabel(value, name, isMandatory, isADControl) {\n value = value != null ? value.replace(\"[&]\", \"\") : \"\";\n var strFor = ' for=\"' + name + '\"';\n if (isADControl)\n strFor = '';\n\n var $ctrl = $('');\n\n IControl.call(this, $ctrl, VIS.DisplayType.Label, true, isADControl ? name : \"lbl\" + name);\n if (isMandatory) {\n $ctrl.text(value).append(\"*\");\n }\n else {\n $ctrl.text(value);\n }\n\n this.disposeComponent = function () {\n $ctrl = null;\n self = null;\n }\n }","function PlcGeral(){\r\n}","function onEmphasis(){labelLine.ignore = labelLine.hoverIgnore;text.ignore = text.hoverIgnore;}","function simple(){\n aff('Exercice n°01 : Bienvenue');\n var name = 'loic';\n aff(`Bienvenue à vous -> ${name} !`);\n jump();\n}","function L(...args) { if (TextBracket.DEBUG) Vex.L('Vex.Flow.TextBracket', args); }","function replaceLanguageLabels() {\n const languageLabels = $('ul[class=\"objects\"]').find('label:contains(\" [\")');\n if (languageLabels.length) {\n // if state is undefined, set the language labels in state\n if (typeof state.languageLabels === 'undefined') {\n state.languageLabels = languageLabels;\n } else {\n for (let label in languageLabels) {\n state.languageLabels.push(languageLabels[label]);\n }\n }\n // replace brackets with hidden span tags\n languageLabels.each(function() {\n this.innerHTML = this.innerHTML.replace(\n '[',\n \" \",\n );\n this.innerHTML = this.innerHTML.replace(']', '');\n });\n }\n }","function showLinkLabel(e) {\n var label = e.subject.findObject(\"LABEL\");\n if (label !== null) label.visible = (e.subject.fromNode.data.figure === \"Diamond\");\n }","show(status, crud, name) {\n if(status) {\n switch(crud){\n case 'create':\n return `${name} اضافه شد`\n case 'read':\n return `${name} نمایش داده شد`\n case 'update':\n return ` به روزرسانی ${name} انجام شد`\n case 'delete':\n return `${name} حذف گردید`\n }\n } else {\n return `درخواست با خطا مواجه شد`\n }\n }","__getTypeLabel() {\n return this.constructor.LabelSingular;\n }","function LanguageUnderstandingModel() {\n }","static get properties(){return{/**\n * The label for the breadcrums area.\n */breadcrumbsLabel:{name:\"breadcrumbsLabel\",type:String,value:\"Expand selection: \"}}}","function lsLimpaLabel( input )\r\n{\r\n\tif ( input )\r\n\t{\r\n\t\tvar label = document.getElementById( 'LSLabel_' + input.id );\r\n\t\tif ( label )\r\n\t\t{\r\n\t\t\tlabel.innerHTML = '';\r\n\t\t}\r\n\t}\r\n}","function highlightTranslatedCode( title, code, gray ) {\n\t\treturn \"'\n\t\t+ code\n\t \t+ \"\";\n}","getCodeNorm() {\n const c = this.getCode();\n return c === NL_LIKE ? NL : c;\n }","static get definition() {\n return {\n i18n: {\n default: 'Table'\n }\n };\n }"],"string":"[\n \"function L() {\\n if (Syllable.DEBUG) Vex.L(\\\"Vex.Flow.Syllable\\\", arguments);\\n }\",\n \"function applyCurrentSyllable(){\\n currentSyllableIndex = document.getElementById(\\\"syllable\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n}\",\n \"viewTranslation() {\\n switch(this.state.CurrentViewIndex) {\\n case 0 :\\n return \\\"By Student\\\";\\n case 1 :\\n return \\\"By Poem\\\";\\n default:\\n return \\\"\\\";\\n }\\n }\",\n \"function translationLabels(){\\n /** This help array shows the hints for this experiment */\\n\\t\\t\\t\\thelpArray=[_(\\\"help1\\\"),_(\\\"help2\\\"),_(\\\"help3\\\"),_(\\\"help4\\\"),_(\\\"help5\\\"),_(\\\"help6\\\"),_(\\\"help7\\\"),_(\\\"Next\\\"),_(\\\"Close\\\"),_(\\\"help8\\\"),_(\\\"help9\\\")];\\n scope.heading=_(\\\"Emission spectra\\\");\\n\\t\\t\\t\\tscope.variables=_(\\\"Variables\\\"); \\n\\t\\t\\t\\tscope.result=_(\\\"Result\\\"); \\n\\t\\t\\t\\tscope.copyright=_(\\\"copyright\\\"); \\n\\t\\t\\t\\tscope.calibrate_txt = _(\\\"Reset\\\");\\n scope.calibrate_slider_txt = _(\\\"Calibrate Telescope :\\\");\\n scope.select_lamp_txt = _(\\\"Select Lamp :\\\");\\n light_on_txt = _(\\\"Switch On Light\\\");\\n light_off_txt = _(\\\"Switch Off Light\\\");\\n place_grating_txt = _(\\\"Place grating\\\");\\n remove_grating_txt = _(\\\"Remove grating\\\");\\n scope.telescope_angle_txt = _(\\\"Angle of Telescope :\\\");\\n scope.vernier_table_angle_txt = _(\\\"Angle of Vernier Table :\\\");\\n scope.fine_angle_txt = _(\\\"Fine Angle of Telescope :\\\");\\n scope.start_txt = _(\\\"Start\\\");\\n\\t\\t\\t\\tscope.reset_txt = _(\\\"Reset\\\");\\n scope.lamp_array = [{\\n lamp:_(\\\"Mercury\\\"),\\n index:0\\n },{\\n lamp:_(\\\"Hydrogen\\\"),\\n index:1\\n },{\\n lamp:_(\\\"Neon\\\"),\\n index:2\\n }];\\n scope.$apply();\\t\\t\\t\\t\\n\\t\\t\\t}\",\n \"title() { return this.owner.name + \\\" - \\\" + this.label.replace('\\\\n', ' ') }\",\n \"function translationLabels(){\\n /** This help array shows the hints for this experiment */\\n\\t\\t\\t\\thelpArray=[_(\\\"help1\\\"),_(\\\"help2\\\"),_(\\\"help3\\\"),_(\\\"help4\\\"),_(\\\"help5\\\"),_(\\\"Next\\\"),_(\\\"Close\\\")];\\n scope.heading=_(\\\"Millikan's Oil Drop Experiment\\\");\\n\\t\\t\\t\\tscope.variables=_(\\\"Variables\\\"); \\n\\t\\t\\t\\tscope.result=_(\\\"Result\\\"); \\n\\t\\t\\t\\tscope.copyright=_(\\\"copyright\\\");\\n buttonTxt = [_(\\\"Start\\\"),_(\\\"Reset\\\"),_(\\\"Voltage On\\\"),_(\\\"Voltage Off\\\"), _(\\\"X Ray On\\\"), _(\\\"X Ray Off\\\")];\\n scope.start_txt = buttonTxt[0];\\n scope.oil_type_txt = _(\\\"Choose Oil Type\\\");\\n scope.voltageOnOff_txt = buttonTxt[2];\\n scope.adjustVoltage_txt = _(\\\"Adjust Voltage(KV): \\\");\\n scope.xRay_txt = buttonTxt[4];\\n scope.reset_txt = buttonTxt[1];\\n scope.voltApplied_txt = _(\\\"Voltage Applied (v)\\\");\\n\\t\\t\\t\\tscope.oilDensity_txt = _(\\\"Oil Density (kg/m\\\");\\n scope.oil_type = [{\\n oil:_(\\\"Olive Oil\\\"),\\n index:0\\n },{\\n oil:_(\\\"Glycerin\\\"),\\n index:1\\n }];\\n scope.$apply();\\t\\t\\t\\t\\n\\t\\t\\t}\",\n \"get text(){ return this.__label.text; }\",\n \"function translationLabels() {\\n\\t\\t\\t\\t\\t/** This help array shows the hints for this experiment */\\n\\t\\t\\t\\t\\thelp_array = [_(\\\"help1\\\"), _(\\\"help2\\\"), _(\\\"help3\\\"), _(\\\"help4\\\"),_(\\\"Next\\\"), _(\\\"Close\\\")];\\n\\t\\t\\t\\t\\tscope.heading = _(\\\"heading\\\");\\n\\t\\t\\t\\t\\tscope.Variables = _(\\\"Variables\\\");\\n\\t\\t\\t\\t\\tscope.BaseValue=_(\\\"basevalue\\\");\\n\\t\\t\\t\\t\\tscope.Doublebond=_(\\\"Doublebond\\\");\\n\\t\\t\\t\\t\\tscope.Exocyclicdouble=_(\\\"Exocyclicdouble\\\");\\n\\t\\t\\t\\t\\tscope.Polargroups=_(\\\"Polargroups\\\");\\n\\t\\t\\t\\t\\tscope.AlkylSubstituent=_(\\\"AlkylSubstituent\\\");\\n\\t\\t\\t\\t\\tscope.ringResidue=_(\\\"ringResidue\\\");\\n\\t\\t\\t\\t\\tscope.Controls=_(\\\"Controls\\\");\\n\\t\\t\\t\\t\\tscope.lamdaMax=_(\\\"lamdaMax\\\");\\n\\t\\t\\t\\t\\tscope.Correct=_(\\\"Correct\\\");\\n\\t\\t\\t\\t\\tscope.Submit=_(\\\"Submit\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Aromatic=_(\\\"Aromatic\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Ketone=_(\\\"Ketone\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Conjugate=_(\\\"Conjugate\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.AlkylSubstituentKeto=_(\\\"AlkylSubstituentKeto\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Polargroupsposition=_(\\\"Polargroupsposition\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Homodienecompound=_(\\\"Homodienecompound\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Ortho=_(\\\"Ortho\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Para=_(\\\"Para\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Meta=_(\\\"Meta\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.lambdamax=_(\\\"lambdamax\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.lambdamax=_(\\\"lambdamax\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.result = _(\\\"Result\\\");\\n\\t\\t\\t\\t\\tscope.copyright = _(\\\"copyright\\\");\\n\\t\\t\\t\\t\\twoodward_fieser_stage.update();\\n\\t\\t\\t\\t}\",\n \"function toChangeSyllableData(){\\n if(syllables.length > 0){\\n currentType = syllables[0].type;\\n currentColor = syllables[0].color;\\n }\\n pushedNeumeVariations = false;\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n}\",\n \"formatDefaultLabel(text) {\\n const { disabled, onFocus, onBlur, onClick } = this.props\\n const { value, open } = this.state\\n return (\\n disabled ?\\n \\n {text}\\n \\n : {\\n this.toggleOpen(!open)\\n if (onClick) onClick()\\n }\\n }>\\n {text}\\n \\n )\\n }\",\n \"static get BUTTON_L() {\\n return \\\"tl\\\";\\n }\",\n \"function idiomaingles() {\\n alert('Nivel Alto. Título Superior de la Escuela Oficial de Idiomas');\\n }\",\n \"function createSimplifiedWordLabel(item) {\\n return '' +\\n item.originalValue + \\n '';\\n }\",\n \"function translationLabels(){\\n /** This help array shows the hints for this experiment */\\n\\t\\t\\t\\thelpArray = [_(\\\"Next\\\"),_(\\\"Close\\\"),_(\\\"help1\\\"),_(\\\"help2\\\"),_(\\\"help3\\\"),_(\\\"help4\\\"),_(\\\"help5\\\"),_(\\\"help6\\\"),_(\\\"help7\\\"),_(\\\"help8\\\"),_(\\\"help9\\\"),_(\\\"help10\\\")];\\n scope.heading = _(\\\"Young's Modulus-Uniform Bending\\\");\\n\\t\\t\\t\\tscope.variables = _(\\\"Variables\\\"); \\n\\t\\t\\t\\tscope.result = _(\\\"Result\\\"); \\n\\t\\t\\t\\tscope.copyright = _(\\\"copyright\\\"); \\n\\t\\t\\t\\tscope.environment_lbl = _(\\\"Select Environment\\\");\\n\\t\\t\\t\\tscope.material_lbl = _(\\\"Select Material\\\");\\n\\t\\t\\t\\tscope.mass_lbl = _(\\\"Mass of weight hanger : \\\");\\n\\t\\t\\t\\tscope.material_lbl = _(\\\"Select Material\\\");\\n\\t\\t\\t\\tscope.unit_gram = _(\\\"g\\\");\\n\\t\\t\\t\\tscope.unit_cm = _(\\\"cm\\\");\\n\\t\\t\\t\\tscope.breadth_lbl = _(\\\"Breadth of bar(b) : \\\");\\n scope.thickness_lbl = _(\\\"Thickness of bar(d) : \\\");\\n scope.blade_distance_lbl = _(\\\"Knife edge distance : \\\");\\n scope.weight_hangers_distance_lbl = _(\\\"Weight hangers distance : \\\");\\n scope.reset = _(\\\"Reset\\\");\\n\\t\\t\\t\\tscope.result_txt = _(\\\"Young's Modulus of \\\");\\n\\t\\t\\t\\tscope.environment_array = [{\\n environment: _('Earth, g=9.8m/s'),\\n value: 9.8\\n }, {\\n environment: _('Moon, g=1.63m/s'),\\n value: 1.63\\n }, {\\n environment: _('Uranus, g=10.67m/s'),\\n value: 10.67\\n }, {\\n environment: _('Saturn, g=11.08m/s'),\\n value: 11.08\\n }];\\n scope.material_array = [{\\n material: _('Wood'),\\n value: 1.1\\n }, {\\n material: _('Aluminium'),\\n value: 6.9\\n }, {\\n material: _('Copper'),\\n value: 11.7\\n }, {\\n material: _('Steel'),\\n value: 20\\n }];\\n\\n scope.$apply();\\t\\t\\t\\t\\n\\t\\t\\t}\",\n \"function stepSyllable() {\\n drums();\\n try {\\n var s = poem[stanza];\\n\\n var v = s[verse];\\n if (!v) {\\n stepStanza();\\n return stepSyllable();\\n }\\n var w = v.w[word];\\n if (!w) {\\n stepVerse();\\n return stepSyllable();\\n }\\n var sb = w.s[syllable];\\n if (!sb) {\\n stepWord();\\n return stepSyllable();\\n }\\n\\n printSyllable(sb);\\n\\n var note = chooseNote(sb);\\n playNote(note);\\n sock.write(deaccent(sb));\\n syllable++\\n\\n } catch (e) {\\n stepStanza();\\n intro.draw(1);\\n }\\n}\",\n \"function showPhrase(link, path, trans, lang, explan) {\\r\\n}\",\n \"function translationLabels(){\\n /** This help array shows the hints for this experiment */\\n helpArray=[_(\\\"Next\\\"),_(\\\"Close\\\"),_(\\\"help1\\\"),_(\\\"help2\\\"),_(\\\"help3\\\"),_(\\\"help4\\\"),_(\\\"help5\\\")];\\n scope.heading=_(\\\"Moment of Inertia of Flywheel\\\");\\n scope.variables=_(\\\"Variables\\\"); \\n scope.result=_(\\\"Result\\\"); \\n scope.copyright=_(\\\"copyright\\\"); \\n scope.choose_enviornment = _(\\\"Choose Environment:\\\");\\n cm = _(\\\" cm\\\");\\n scope.kg = _(\\\"kg\\\");\\n scope.cm = cm;\\n scope.gm = _(\\\"gm\\\");\\n scope.earth = _(\\\"Earth, g=9.8m/s\\\");\\n scope.mass_of_fly_wheel_lbl = _(\\\"Mass of fly wheel:\\\");\\n scope.dia_of_fly_wheel_lbl = _(\\\"Diameter of fly wheel:\\\");\\n scope.mass_of_rings_lbl = _(\\\"Mass of rings:\\\");\\n scope.axle_diameter_lbl = _(\\\"Diameter of axle:\\\");\\n scope.no_of_wound_lbl = _(\\\"No. of wound of chord:\\\");\\n scope.mInertia_lbl = _(\\\"First start experiment..!\\\");\\n scope.mInertia_val = \\\"\\\";\\n btn_lbls = [_(\\\"Release fly wheel\\\"),_(\\\"Hold fly wheel\\\")];\\n scope.release_hold_txt = btn_lbls[0];\\n scope.reset = _(\\\"Reset\\\");\\n scope.enviornment_array = [{\\n enviornment: _('Earth, g=9.8m/s'),\\n type: 9.8\\n }, {\\n enviornment: _('Moon, g=1.63m/s'),\\n type: 1.63\\n }, {\\n enviornment: _('Uranus, g=10.5m/s'),\\n type: 10.5\\n }, {\\n enviornment: _('Saturn, g=11.08m/s'),\\n type: 11.08\\n }, {\\n enviornment: _('Jupiter, g=25.95m/s'),\\n type: 25.95\\n }];\\n scope.$apply(); \\n }\",\n \"function TI18n() { }\",\n \"function TI18n() { }\",\n \"function helpMenu() {\\n $scope.menuTitle = createText(\\\"Help\\\", [20, 10]);\\n createText(\\\"Sorry you can't count on anyone's help for now\\\", [50, 80], {font: 'bold 20px Arial'});\\n }\",\n \"function createOptionLabel(Text,URL){\\n if ( URL && !isAllWhite(URL) )\\n return ( Text + \\\" (\\\" + URL + \\\")\\\" );\\n else\\n return Text ;\\n}\",\n \"function q(a){var c=g(a);if(c.id){\\n// get the related l10n object\\nvar d=n(c.id,c.args);if(!d)return void console.warn(\\\"#\\\"+c.id+\\\" is undefined.\\\");\\n// translate element (TODO: security checks?)\\nif(d[v]){// XXX\\nif(0===r(a))a[v]=d[v];else{for(var e=a.childNodes,f=!1,h=0,i=e.length;i>h;h++)3===e[h].nodeType&&/\\\\S/.test(e[h].nodeValue)&&(f?e[h].nodeValue=\\\"\\\":(e[h].nodeValue=d[v],f=!0));\\n// if no (non-empty) textNode is found, insert a textNode before the\\n// first element child.\\nif(!f){var j=b.createTextNode(d[v]);a.insertBefore(j,a.firstChild)}}delete d[v]}for(var k in d)a[k]=d[k]}}\",\n \"get escapeLabelHTML() {\\n return false;\\n }\",\n \"get title() { return \\\"Local Coding\\\"}\",\n \"function toSyllableFromNeumeVariations(){\\n pushedNeumeVariations = false;\\n neumeVariations = new Array();\\n \\n isNeumeVariant = false;\\n \\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"@readOnly\\n @computed('label', 'opened')\\n ariaLabel (label, opened) {\\n const verb = opened ? 'Hide' : 'Show'\\n\\n if (label) {\\n return `${verb} ${label} combobox`\\n }\\n\\n return `${verb} combobox`\\n }\",\n \"function spellsMenu() {\\n $scope.menuTitle = createText(\\\"Spells\\\", [20, 10]);\\n createText(\\\"Not yet implemented\\\", [50, 80], {});\\n }\",\n \"render_explanation () {}\",\n \"getAriaLabel() {\\n var states;\\n if (this.isDrillable()) {\\n states = [this._axis.getOptions().translations.stateDrillable];\\n }\\n if (this.getDatatip() != null) {\\n return dvt.Displayable.generateAriaLabel(this.getDatatip(), states);\\n } else if (states != null) {\\n return dvt.Displayable.generateAriaLabel(this.getLabel().getTextString(), states);\\n }\\n }\",\n \"function VIEWAS_boring_default(obj) {\\n //tabulator.log.debug(\\\"entered VIEWAS_boring_default...\\\");\\n var rep; //representation in html\\n\\n if (obj.termType == 'literal')\\n {\\n var styles = { 'integer': 'text-align: right;',\\n 'decimal': 'text-align: \\\".\\\";',\\n 'double' : 'text-align: \\\".\\\";',\\n };\\n rep = myDocument.createElement('span');\\n rep.textContent = obj.value;\\n // Newlines have effect and overlong lines wrapped automatically\\n var style = '';\\n if (obj.datatype && obj.datatype.uri) {\\n var xsd = tabulator.ns.xsd('').uri;\\n if (obj.datatype.uri.slice(0, xsd.length) == xsd)\\n style = styles[obj.datatype.uri.slice(xsd.length)];\\n }\\n rep.setAttribute('style', style ? style : 'white-space: pre-wrap;');\\n\\n } else if (obj.termType == 'symbol' || obj.termType == 'bnode') {\\n rep = myDocument.createElement('span');\\n rep.setAttribute('about', obj.toNT());\\n thisOutline.appendAccessIcons(kb, rep, obj);\\n\\n if (obj.termType == 'symbol') {\\n if (obj.uri.slice(0,4) == 'tel:') {\\n var num = obj.uri.slice(4);\\n var anchor = myDocument.createElement('a');\\n rep.appendChild(myDocument.createTextNode(num));\\n anchor.setAttribute('href', obj.uri);\\n anchor.appendChild(tabulator.Util.AJARImage(tabulator.Icon.src.icon_telephone,\\n 'phone', 'phone '+num,myDocument))\\n rep.appendChild(anchor);\\n anchor.firstChild.setAttribute('class', 'phoneIcon');\\n } else { // not tel:\\n rep.appendChild(myDocument.createTextNode(tabulator.Util.label(obj)));\\n }\\n } else { // bnode\\n rep.appendChild(myDocument.createTextNode(tabulator.Util.label(obj)));\\n }\\n } else if (obj.termType=='collection'){\\n // obj.elements is an array of the elements in the collection\\n rep = myDocument.createElement('table');\\n rep.setAttribute('about', obj.toNT());\\n /* Not sure which looks best -- with or without. I think without\\n\\n var tr = rep.appendChild(document.createElement('tr'));\\n tr.appendChild(document.createTextNode(\\n obj.elements.length ? '(' + obj.elements.length+')' : '(none)'));\\n */\\n for (var i=0; i(\\\")\\n .replaceAll(\\\"hysician\\\", \\\"hys.\\\")\\n .replaceAll(\\\"Emergency room\\\", \\\"ER\\\");\\n return newlabel;\\n }\\n }\",\n \"function showLicenceKey() {\\n routingBase.goToCurrentState('license');\\n }\",\n \"displayRender(label) {\\n return label[label.length - 1]\\n }\",\n \"function addMainElementLabel () {\\n\\t\\tvar h1 = $(\\\"#ibm-leadspace-head h1\\\").text() || \\\"\\\",\\n\\t\\t\\tselectedTab = $(\\\"#ibm-primary-tabs li a[aria-selected='true']\\\").text() || \\\"\\\",\\n\\t\\t\\tselectedSubtab = $(\\\"#ibm-secondary-tabs li a[aria-selected='true']\\\").text() || \\\"\\\",\\n\\t\\t\\tselectedLeftNav = $(\\\"#ibm-primary-links > li > a[aria-selected='true']\\\").text() || \\\"\\\",\\n\\t\\t\\tselectedLeftSubNav = $(\\\"#ibm-primary-links > li ul li a[aria-selected='true']\\\").text() || \\\"\\\";\\n\\t\\t\\t\\n\\t\\t$(\\\"main\\\").removeAttr(\\\"aria-labelledby\\\").attr(\\\"aria-label\\\", $.trim(selectedLeftSubNav + \\\" \\\" + selectedSubtab + \\\" \\\" + selectedLeftNav + \\\" \\\" + selectedTab + \\\" \\\" + h1));\\n\\t}\",\n \"_getAriaLabel(title) {\\n return !title ? \\\"Modal Dialog\\\" : null;\\n }\",\n \"function PLAIN$static_(){ToolbarSkin.PLAIN=( new ToolbarSkin(\\\"plain\\\"));}\",\n \"function TI18n() {}\",\n \"function TI18n() {}\",\n \"function TI18n() {}\",\n \"function newAnchorLabel() {\\n count = ++that.anchor_count;\\n anchor_label = strval((count + 1)); //generating footnote number starting at 1 instead of 0\\n /* yil original letter generating label code\\n anchor_label = '';\\n do {\\n anchor_label = chr(ord('a') + (count % 26)) + anchor_label;\\n count = (int) floor(count / 26);\\n } while (count > 0);*/\\n return anchor_label;\\n }\",\n \"static get LABEL_NONE () {return 'none';}\",\n \"function Lang() { \\n}\",\n \"UpdateAriaLabel() {\\n // subclasses should override\\n }\",\n \"function helpNav(){\\n helpBox.innerHTML = \\\"

    This is the navigation bar. It displays links to other basic applications on the site. Authentication is also listed.

    \\\";\\n showHelp();\\n }\",\n \"showFullName() {\\n return `${this._fullName}`;\\n }\",\n \"function useMngLblLnk()\\n {\\n this.ruleID = 'useMngLblLnk';\\n }\",\n \"function showLangs(data, status, repo){\\n\\t\\t\\t// clear the elements out\\n\\t\\t\\tcall_EventDrop(searchterm, repo);\\n\\n\\n\\t\\t}\",\n \"function assLblExpCtrl()\\n {\\n this.ruleID = 'assLblExpCtrl';\\n }\",\n \"function translate(el){\\n/* 306 */ \\t\\t\\t\\t$(el).attr(\\\"title\\\", $(el).attr(\\\"title\\\").replace(/_/g, \\\"\\\").replace(/\\\\\\\\n/g, \\\"
    \\\").replace(/\\\\\\\\r\\\\\\\\n/g, \\\"
    \\\"));\\n/* 307 */ \\t\\t\\t}\",\n \"function showLatex(){\\n\\tif(masterNode.getLatex() == '\\\\\\\\bigstar'){\\n\\t\\twindow.alert('Create a deduction and then press this button to get the Virginia Lake LaTeX code for it.');\\n\\t\\treturn false;\\n\\t}\\n const text = toLatex(masterNode);\\n\\t// if successful, show and return true\\n\\tif(text){\\n\\t\\twindow.prompt('Copy the LaTeX markup below and paste it into your LaTeX editor.\\\\nMake sure to include the Virginia Lake package.', text);\\n\\t\\treturn true;\\n\\t}\\n\\t// if unsuccessful, show help text and return false. May be error or just no deduction\\n\\telse{\\n\\t\\twindow.alert('Create a deduction and then press this button to get the Virginia Lake LaTeX code for it.');\\n\\t\\treturn false;\\n\\t}\\n}\",\n \"renderTransitionText() {\\n return (\\n \\n Already have an account? Sign In\\n \\n );\\n }\",\n \"function translationLabels() { /** Labels used in the experiment initialize here */\\n /** This help array shows the hints for this experiment */\\n help_array = [_(\\\"help1\\\"), _(\\\"help2\\\"), _(\\\"help3\\\"), _(\\\"help4\\\"), _(\\\"help5\\\"), _(\\\"help6\\\"), _(\\\"help7\\\"), _(\\\"Next\\\"), _(\\\"Close\\\")];\\n /** Experiment name */\\n\\t\\t\\t\\tscope.heading = _(\\\"Compound Pendulum\\\"); \\n\\t\\t\\t\\t/**Show Result checkbox label*/\\n scope.show_result = _(\\\"Show Result\\\");\\n\\t\\t\\t\\t/**Mass of the block slider label*/\\t\\t\\t\\t\\n scope.change_length = _(\\\"Length\\\"); \\n\\t\\t\\t\\t/** 'Stop' button label */\\n scope.stop_label = _(\\\"Stop\\\");\\n\\t\\t\\t\\t/** 'Reset' button label */\\t\\t\\t\\t\\n scope.reset_label = _(\\\"Reset\\\"); \\n\\t\\t\\t\\t/**environment unit*/\\n\\t\\t\\t\\tscope.gyration_unit = _(\\\"m\\\"); \\n\\t\\t\\t scope.gravity_unit = _(\\\"m/s\\\");\\n\\t\\t\\t\\tscope.inertia_unit = _(\\\"kgm\\\");\\n\\t\\t\\t\\tscope.gravity = 9.8;\\n\\t\\t\\t\\tscope.gyration = 0.25;\\n\\t\\t\\t\\tscope.inertia = 0.26500;\\n\\t\\t\\t\\t/** length unit */\\n scope.length_unit = _(\\\"cm\\\"); \\n\\t\\t\\t\\t/**environment dropdown value*/\\n scope.earth = _(\\\"Earth(g=9.8 m/s)\\\"); \\n\\t\\t\\t\\t/**environment dropdown label*/\\n scope.environment_types = _(\\\"Environment\\\"); \\n /**array that shows different type of environment*/\\n scope.environmentArray = [{\\n environment: _('Earth(g=9.8 m/s)'),\\n type: 0\\n }, {\\n environment: _('Moon(g=1.62 m/s)'),\\n type: 1\\n }, {\\n environment: _('Uranus(g=9.01 m/s)'),\\n type: 2\\n }, {\\n environment: _('Neptune(g=11.28 m/s)'),\\n type: 3\\n }, {\\n environment: _('Jupitor(g=25.93 m/s)'),\\n type: 4\\n }, {\\n environment: _('Venus(g=8.87 m/s)'),\\n type: 5\\n }, {\\n environment: _('Mercury(g=3.70 m/s)'),\\n type: 6\\n }];\\n\\t\\t\\t\\t/**label for values shown in the result part*/\\n scope.result_label1 = _(\\\"Accelaration due to Gravity,g \\\");\\n scope.result_label2 = _(\\\"Radius of Gyration,K\\\");\\n scope.result_label3 = _(\\\"Moment of Inertia,I\\\");\\n\\t\\t\\t\\tscope.variables = _(\\\"Variables\\\");\\n scope.result = _(\\\"Result\\\");\\n scope.copyright = _(\\\"copyright\\\");\\n scope.$apply();\\n }\",\n \"function LabelOptions() { }\",\n \"function defaultNames(){\\r\\n //CETE\\r\\n //return \\\"Par défaut\\\";\\r\\n return \\\"Par d\\\\u00e9faut\\\";\\r\\n //FIN CETE\\r\\n}\",\n \"function beforeShowInfantglossary(e)\\n{\\n BindInfantGlossaryDetails(currentBook);\\n closeNav();\\n}\",\n \"formatSynopsis() {\\n if (this.demand) {\\n return ` <${this.name}>`\\n }\\n return ` [${this.name}]`\\n }\",\n \"function displayTextTLComplete(){\\r\\r\\n quoteLargeSplit.revert();\\r\\r\\n }\",\n \"function showPlainLanguageStatement() {\\n\\n hideElements();\\n $('#instructions').show();\\n $('#instructions').load('html/pls.html');\\n $('#next').show();\\n $('#next').click(showConsent);\\n}\",\n \"function a11yc_validation_code_display(level_arr){\\njQuery(function($){\\n\\tvar $code = $('#a11yc_validation_code_raw'),\\n\\t\\t\\t$levels = $code.find(level_arr.map(function(el){ return '.a11yc_leve'+el }).join(',')),\\n\\t\\t\\t$objs = $code.find('.a11yc_validation_code_error, strong, a');\\n\\t$objs.addClass('a11yc_dn').attr('role', 'presentation');\\n\\t$levels.removeClass('a11yc_dn').removeAttr('role');\\n});\\n}\",\n \"static get defaultTitle() { return 'Tool'; }\",\n \"function setLabel(props){\\n //label content\\n var labelAttribute = \\\"

    \\\" + props[expressed] +\\n \\\"

    \\\" + expressed + \\\"\\\";\\n\\n //create info label div\\n var infolabel = d3.select(\\\"body\\\")\\n .append(\\\"div\\\")\\n .attr(\\\"class\\\", \\\"infolabel\\\")\\n .attr(\\\"id\\\", props.adm1_code + \\\"_label\\\")\\n .html(labelAttribute)\\n\\n var regionName = infolabel.append(\\\"div\\\")\\n .attr(\\\"class\\\", \\\"labelname\\\")\\n .html((props.NAME_1 + \\\" Region\\\").bold());\\n }\",\n \"function showProt(label) {\\n\\t\\tvar node = cy.$(\\\"node[role='protein_main'][label='\\\"+label+\\\"']\\\");\\n\\t\\tvar display = node.style(\\\"display\\\");\\n\\t\\tif (display==\\\"none\\\"){\\n\\t\\t\\tnode.style(\\\"display\\\", \\\"element\\\");\\n\\t\\t\\t// cy.center(node);\\n\\t\\t} else {\\n\\t\\t\\tnode.style(\\\"display\\\", \\\"none\\\");\\n\\t\\t}\\n\\t}\",\n \"lldisplayWordDefinition() {\\r\\n console.log(`\\\\nDefinition: ${this.definition}`);\\r\\n }\",\n \"function fillLabel(opt) {\\n Object(util_model[\\\"f\\\" /* defaultEmphasis */])(opt, 'label', ['show']);\\n} // { [componentType]: MarkerModel }\",\n \"function OLshowMarkup(str,quo){\\r\\r\\n var so=OLoverHTML,s=(str||'null').toString(),q=(quo||0);\\r\\r\\n overlib(OLhtmlspecialchars(s,q), CAPTION,'
    Markup
    ', EXCLUSIVEOVERRIDE, STICKY, EXCLUSIVE,\\r\\r\\n BGCLASS,'', BORDER,1, BGCOLOR,'#666666', BASE,0, CGCLASS,'', CAPTIONFONTCLASS,'', CLOSEFONTCLASS,'', CAPTIONPADDING,6,\\r\\r\\n CGCOLOR,'#999999', CAPTIONSIZE,'12px', CAPCOLOR,'#ffffff', CLOSESIZE,'11px', CLOSECOLOR,'#ffffff', FGCLASS,'',\\r\\r\\n TEXTFONTCLASS,'', TEXTPADDING,6, FGCOLOR,'#eeeeee', TEXTSIZE,'12px', TEXTCOLOR,'#000000', MIDX,0, RELY,5, WRAP,\\r\\r\\n (OLfilterPI)?-FILTER:DONOTHING, (OLshadowPI)?-SHADOW:DONOTHING);\\r\\r\\n OLoverHTML=so;\\r\\r\\n}\",\n \"addPhraseToDisplay(){\\r\\n this.setupLetterToBeDisplayed()\\r\\n }\",\n \"function toSyllableFromVariations(){\\n pushedVariations = false;\\n variations = new Array();\\n \\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function translationLabels() {\\n\\t\\t\\t\\t/** This help array shows the hints for this experiment */\\n\\t\\t\\t\\thelpArray = [_(\\\"help1\\\"), _(\\\"help2\\\"), _(\\\"help3\\\"), _(\\\"help4\\\"),_(\\\"help5\\\"),_(\\\"help6\\\"),_(\\\"help7\\\"), _(\\\"Next\\\"), _(\\\"Close\\\")];\\n\\t\\t\\t\\t/** Experiment name */\\n\\t\\t\\t\\tscope.heading = _(\\\" Electrogravimetric Estimation of Metals\\\");\\n\\t\\t\\t\\t/** Label for voltage slider */\\n\\t\\t\\t\\tscope.voltage_label = _(\\\"Voltage\\\")\\n\\t\\t\\t\\t/** Unit for voltage */\\n scope.voltage_unit = _(\\\"V\\\");\\n\\t\\t\\t\\t/** Label for resistance slider */\\n\\t\\t\\t\\tscope.resistance_label = _(\\\"Resistance\\\")\\n\\t\\t\\t\\t/** Unit for resistance */\\n\\t\\t\\t\\tscope.resistance_unit = _(\\\"Ω\\\");\\n\\t\\t\\t\\t/** Label for time slider */\\n\\t\\t\\t\\tscope.time_label = _(\\\"Time\\\")\\n\\t\\t\\t\\t/** Unit for time */\\n\\t\\t\\t\\tscope.time_unit = _(\\\"min\\\");\\n\\t\\t\\t\\t/** Labels for buttons */\\n\\t\\t\\t\\tstart_btn_var =_(\\\"start\\\");\\n\\t\\t\\t\\tstop_btn_var =_(\\\"stop\\\");\\n\\t\\t\\t\\tpause_btn_var =_(\\\"pause\\\");\\n\\t\\t\\t\\tplay_btn_var =_(\\\"play\\\");\\n\\t\\t\\t\\tplatinum_text = _('Platinum');\\n\\t\\t\\t\\tscope.reset = _(\\\"Reset\\\");\\n\\t\\t\\t\\tscope.variables = _(\\\"variables\\\");\\n\\t\\t\\t\\tscope.result = _(\\\"result\\\");\\n\\t\\t\\t\\tscope.copyright = _(\\\"copyright\\\");\\n\\t\\t\\t\\t/** Labels for select solution */\\n\\t\\t\\t\\tscope.selectSolution_label = _(\\\"Select Solution :\\\");\\n\\t\\t\\t\\t/** Labels for cathode */\\n\\t\\t\\t\\tscope.cathode_label = _(\\\"Cathode\\\");\\n\\t\\t\\t\\t/** Labels for anode */\\n\\t\\t\\t\\tscope.anode_label = _(\\\"Anode\\\");\\n\\t\\t\\t\\t/** Labels for initial weight of cathode */\\n\\t\\t\\t\\tscope.initial_weight_label = _(\\\"Initial weight of cathode : 10.00 g\\\");\\n\\t\\t\\t\\t/** Labels for total weight of cathode */\\n\\t\\t\\t\\tscope.total_weight_label = _(\\\"Total weight of cathode\\\");\\n\\t\\t\\t\\t/** Unit for total weight */\\n\\t\\t\\t\\tscope.total_weight_unit = _(\\\"g\\\");\\n\\t\\t\\t\\t/** Initializing solution array*/\\n\\t\\t\\t\\tscope.selectSolutionArray = [{optionsSolution: _('CuSO₄'),type: 0}, {optionsSolution: _('PbSO₄'),type: 1}, {optionsSolution: _('MnSO₄'),type: 2},{optionsSolution: _('NiSO₄'),type: 3}, {optionsSolution: _('CdSO₄'),type: 4}];\\n\\t\\t\\t\\t/** Setting initial value of cathode and anode*/\\n\\t\\t\\t\\tscope.cathode_value = platinum_text;\\n\\t\\t\\t\\tscope.anode_value = platinum_text;\\n }\",\n \"function TI18n(){}\",\n \"function displayQuestion() {\\n push();\\n textAlign(LEFT, CENTER);\\n textSize(28);\\n fill(255);\\n text(`lvl #2`, width / 20, height / 20);\\n text(`On a scale from 'I got this' to 'AAAAAAH',\\nhow confident do you feel about the future?`, width / 20, height / 10 * 2)\\n pop()\\n}\",\n \"function LabelOptions() {}\",\n \"getAddNewLabel() {\\n return 'Add New';\\n }\",\n \"function doctorize2(name) {\\r\\n return `Dr. ${name}`;\\r\\n}\",\n \"displayWordInfo() {\\r\\n this.displayHangman();\\r\\n this.displayLives();\\r\\n this.displayLetters();\\r\\n this.displayLettersToGuess();\\r\\n }\",\n \"function StringHelp() {\\n}\",\n \"function NamaLabel(props) {\\n return ;\\n}\",\n \"static labelOf(t) {\\n const label= !t.desc ? Filters.titlecase(t.name.replace(/[-_]/g, ' ')) /* friendlyish name */ :\\n (typeof t.desc === 'string') ? t.desc :\\n t.desc.label;\\n return label;\\n }\",\n \"function Assign_Lex_Other() {\\r\\n}\",\n \"function __dlg_translate(_1){\\r\\nvar _2=[\\\"span\\\",\\\"option\\\",\\\"td\\\",\\\"th\\\",\\\"button\\\",\\\"div\\\",\\\"label\\\",\\\"a\\\",\\\"img\\\",\\\"legend\\\"];\\r\\nfor(var _3=0;_3<_2.length;++_3){\\r\\nvar _4=document.getElementsByTagName(_2[_3]);\\r\\nfor(var i=_4.length;--i>=0;){\\r\\nvar _6=_4[i];\\r\\nif(_6.firstChild&&_6.firstChild.data){\\r\\nvar _7=Xinha._lc(_6.firstChild.data,_1);\\r\\nif(_7){\\r\\n_6.firstChild.data=_7;\\r\\n}\\r\\n}\\r\\nif(_6.title){\\r\\nvar _7=Xinha._lc(_6.title,_1);\\r\\nif(_7){\\r\\n_6.title=_7;\\r\\n}\\r\\n}\\r\\nif(_6.alt){\\r\\nvar _7=Xinha._lc(_6.alt,_1);\\r\\nif(_7){\\r\\n_6.alt=_7;\\r\\n}\\r\\n}\\r\\n}\\r\\n}\\r\\ndocument.title=Xinha._lc(document.title,_1);\\r\\n}\",\n \"function implAssLblFrmCtrlPrPos()\\n {\\n this.ruleID = 'implAssLblFrmCtrlPrPos';\\n }\",\n \"function showLabel(labelToken) {\\n $(labelToken).css(\\\"left\\\", \\\"0px\\\");\\n}\",\n \"function renderNavigationMenu() {\\n\\n }\",\n \"function VLabel(value, name, isMandatory, isADControl) {\\n value = value != null ? value.replace(\\\"[&]\\\", \\\"\\\") : \\\"\\\";\\n var strFor = ' for=\\\"' + name + '\\\"';\\n if (isADControl)\\n strFor = '';\\n\\n var $ctrl = $('');\\n\\n IControl.call(this, $ctrl, VIS.DisplayType.Label, true, isADControl ? name : \\\"lbl\\\" + name);\\n if (isMandatory) {\\n $ctrl.text(value).append(\\\"*\\\");\\n }\\n else {\\n $ctrl.text(value);\\n }\\n\\n this.disposeComponent = function () {\\n $ctrl = null;\\n self = null;\\n }\\n }\",\n \"function PlcGeral(){\\r\\n}\",\n \"function onEmphasis(){labelLine.ignore = labelLine.hoverIgnore;text.ignore = text.hoverIgnore;}\",\n \"function simple(){\\n aff('Exercice n°01 : Bienvenue');\\n var name = 'loic';\\n aff(`Bienvenue à vous -> ${name} !`);\\n jump();\\n}\",\n \"function L(...args) { if (TextBracket.DEBUG) Vex.L('Vex.Flow.TextBracket', args); }\",\n \"function replaceLanguageLabels() {\\n const languageLabels = $('ul[class=\\\"objects\\\"]').find('label:contains(\\\" [\\\")');\\n if (languageLabels.length) {\\n // if state is undefined, set the language labels in state\\n if (typeof state.languageLabels === 'undefined') {\\n state.languageLabels = languageLabels;\\n } else {\\n for (let label in languageLabels) {\\n state.languageLabels.push(languageLabels[label]);\\n }\\n }\\n // replace brackets with hidden span tags\\n languageLabels.each(function() {\\n this.innerHTML = this.innerHTML.replace(\\n '[',\\n \\\" \\\",\\n );\\n this.innerHTML = this.innerHTML.replace(']', '');\\n });\\n }\\n }\",\n \"function showLinkLabel(e) {\\n var label = e.subject.findObject(\\\"LABEL\\\");\\n if (label !== null) label.visible = (e.subject.fromNode.data.figure === \\\"Diamond\\\");\\n }\",\n \"show(status, crud, name) {\\n if(status) {\\n switch(crud){\\n case 'create':\\n return `${name} اضافه شد`\\n case 'read':\\n return `${name} نمایش داده شد`\\n case 'update':\\n return ` به روزرسانی ${name} انجام شد`\\n case 'delete':\\n return `${name} حذف گردید`\\n }\\n } else {\\n return `درخواست با خطا مواجه شد`\\n }\\n }\",\n \"__getTypeLabel() {\\n return this.constructor.LabelSingular;\\n }\",\n \"function LanguageUnderstandingModel() {\\n }\",\n \"static get properties(){return{/**\\n * The label for the breadcrums area.\\n */breadcrumbsLabel:{name:\\\"breadcrumbsLabel\\\",type:String,value:\\\"Expand selection: \\\"}}}\",\n \"function lsLimpaLabel( input )\\r\\n{\\r\\n\\tif ( input )\\r\\n\\t{\\r\\n\\t\\tvar label = document.getElementById( 'LSLabel_' + input.id );\\r\\n\\t\\tif ( label )\\r\\n\\t\\t{\\r\\n\\t\\t\\tlabel.innerHTML = '';\\r\\n\\t\\t}\\r\\n\\t}\\r\\n}\",\n \"function highlightTranslatedCode( title, code, gray ) {\\n\\t\\treturn \\\"'\\n\\t\\t+ code\\n\\t \\t+ \\\"\\\";\\n}\",\n \"getCodeNorm() {\\n const c = this.getCode();\\n return c === NL_LIKE ? NL : c;\\n }\",\n \"static get definition() {\\n return {\\n i18n: {\\n default: 'Table'\\n }\\n };\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.6028341","0.5768904","0.5507391","0.5350279","0.5341399","0.5230816","0.5203465","0.5178822","0.5172382","0.5162885","0.5162119","0.5146023","0.51416767","0.50568616","0.5051006","0.5044222","0.5040293","0.50203663","0.50203663","0.49983624","0.4995916","0.49811646","0.49770665","0.49768794","0.49522603","0.49509785","0.49325043","0.4929955","0.49261","0.49128973","0.49110147","0.49042758","0.48951647","0.489282","0.4892705","0.48909795","0.4883197","0.4879303","0.48764628","0.4875895","0.4875895","0.4875895","0.48705518","0.48590067","0.48539433","0.48511866","0.48198605","0.48157588","0.47970244","0.4791011","0.4790669","0.479005","0.47884834","0.47851363","0.47760984","0.47748458","0.4765617","0.4763903","0.47521615","0.47483143","0.47433734","0.47416112","0.47393885","0.47389907","0.4733006","0.47312042","0.47290638","0.47254965","0.47247717","0.47228488","0.4720508","0.47150275","0.47105286","0.47059754","0.46923968","0.46919143","0.46892986","0.46871516","0.46870393","0.4685418","0.46849537","0.46790987","0.4678505","0.46715045","0.46667042","0.46644807","0.46614724","0.46562344","0.4656152","0.4655482","0.46538895","0.46486422","0.46477818","0.46469623","0.46418917","0.46405372","0.46350166","0.4628495","0.46220708","0.46191084"],"string":"[\n \"0.6028341\",\n \"0.5768904\",\n \"0.5507391\",\n \"0.5350279\",\n \"0.5341399\",\n \"0.5230816\",\n \"0.5203465\",\n \"0.5178822\",\n \"0.5172382\",\n \"0.5162885\",\n \"0.5162119\",\n \"0.5146023\",\n \"0.51416767\",\n \"0.50568616\",\n \"0.5051006\",\n \"0.5044222\",\n \"0.5040293\",\n \"0.50203663\",\n \"0.50203663\",\n \"0.49983624\",\n \"0.4995916\",\n \"0.49811646\",\n \"0.49770665\",\n \"0.49768794\",\n \"0.49522603\",\n \"0.49509785\",\n \"0.49325043\",\n \"0.4929955\",\n \"0.49261\",\n \"0.49128973\",\n \"0.49110147\",\n \"0.49042758\",\n \"0.48951647\",\n \"0.489282\",\n \"0.4892705\",\n \"0.48909795\",\n \"0.4883197\",\n \"0.4879303\",\n \"0.48764628\",\n \"0.4875895\",\n \"0.4875895\",\n \"0.4875895\",\n \"0.48705518\",\n \"0.48590067\",\n \"0.48539433\",\n \"0.48511866\",\n \"0.48198605\",\n \"0.48157588\",\n \"0.47970244\",\n \"0.4791011\",\n \"0.4790669\",\n \"0.479005\",\n \"0.47884834\",\n \"0.47851363\",\n \"0.47760984\",\n \"0.47748458\",\n \"0.4765617\",\n \"0.4763903\",\n \"0.47521615\",\n \"0.47483143\",\n \"0.47433734\",\n \"0.47416112\",\n \"0.47393885\",\n \"0.47389907\",\n \"0.4733006\",\n \"0.47312042\",\n \"0.47290638\",\n \"0.47254965\",\n \"0.47247717\",\n \"0.47228488\",\n \"0.4720508\",\n \"0.47150275\",\n \"0.47105286\",\n \"0.47059754\",\n \"0.46923968\",\n \"0.46919143\",\n \"0.46892986\",\n \"0.46871516\",\n \"0.46870393\",\n \"0.4685418\",\n \"0.46849537\",\n \"0.46790987\",\n \"0.4678505\",\n \"0.46715045\",\n \"0.46667042\",\n \"0.46644807\",\n \"0.46614724\",\n \"0.46562344\",\n \"0.4656152\",\n \"0.4655482\",\n \"0.46538895\",\n \"0.46486422\",\n \"0.46477818\",\n \"0.46469623\",\n \"0.46418917\",\n \"0.46405372\",\n \"0.46350166\",\n \"0.4628495\",\n \"0.46220708\",\n \"0.46191084\"\n]"},"document_score":{"kind":"string","value":"0.53894603"},"document_rank":{"kind":"string","value":"3"}}},{"rowIdx":224,"cells":{"query":{"kind":"string","value":"Navigational, leads to neume form."},"document":{"kind":"string","value":"function toNeume(){\n document.getElementById(\"input\").innerHTML = neumeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function go_articulos() {\n $state.go('complex_articles.list');\n }","function navigation() {\n\t\n\t/* @TODO: reverse li und stelle angemeldet als nach oben */\n\t//$$('#account ul').insert( $$('#account ul li').reverse() );\n}","function _addNavigation() {}","function visSingleView() {\n console.log(\"visSingleView\");\n //add history.back();\n //Konstant der bestemmer window.location.search\n //Konstant der definerer en unik egenskab (her fx. navn).\n //Konstant der definerer URL til json\n //Andre lokale variabler\n //opret en klon med alle info fra json og sæt ind på siden vha textContent, link til billede + alt.\n}","function navigation() {\n\n console.log(\"Bienvenue dans le gestionnaire de contact\");\n console.log(\"1 : Liste des contacts\");\n console.log(\"2 : Ajouter un contact\");\n console.log(\"3 : Quitter\");\n}","createNavigation() {\n var nav = super.createNavigation();\n nav.left.push(new NavButton('Review/Change Responses', this.back, true, false, 0));\n nav.right.push(new NavButton('Submit Assessment', scope.submitAndEnd, true, !this.isValid, 1));\n nav.right.push(new NavButton('Save and Exit', saveAndExit, true, false, 0));\n\n this.navigation = nav;\n }","function go_articulos() {\n $state.go('articles.list');\n }","function backToScreenDtl(){\n\tupdateAccountListInfo(); \n\tnavController.initWithRootView('corp/account/list_info/acc_list_account_info_dtl', true, 'xsl');\n}","createNavigation() {\n var nav = super.createNavigation();\n nav.right.push(new NavButton('Continue', this.next, true, true));\n this.navigation = nav;\n }","createNavigation() {\n var nav = super.createNavigation();\n nav.left.push(\n new NavButton('Back', this.back, !this.isFirstQuestionOfWizard, false, 0));\n nav.left.push(\n new NavButton('Cancel', this.cancel, true, false, 1));\n nav.right.push(\n new NavButton('Continue', this.next, true, false, 1));\n nav.right.push(\n new NavButton('Save and Exit', this.saveAndExit, true, false, 0));\n\n this.navigation = nav;\n }","function redirectToPhysioExperts() {\n\t\t\t$state.go(\"homepages.physioexperts\");\n\t\t}","function directUserFromViewInfo() {\n if (nextStep == \"Departments\") {\n viewDepartments();\n }\n if (nextStep == \"Roles\") {\n viewRoles();\n }\n if (nextStep == \"Employees\") {\n viewEmployees();\n }\n if (nextStep == \"All Information\") {\n viewAll();\n } \n }","function goBack() {\r\n \t\t$state.go('main.afiliado.edit.examen.list', {afiliadoId: $stateParams.afiliadoId});\r\n \t}","function originNextStep() {\n $scope.originStep = 'navigationhidden';\n $scope.destinationStep = 'navigationshown';\n $scope.geosuccess = 'navigationhidden';\n }","afficherEcranParent(ecran) {\n this.props.navigation.navigate(ecran);\n }","function nav() {\n\t\t var w = document.reflinkform.reflinklist.selectedIndex;\n\t\t var url_add = document.reflinkform.reflinklist.options[w].value;\n\t\t window.location.href = url_add;\n\t\t}","nav_helper_view(data) {\n\t\tp11.nav_helper_view(data);\n\t\tutil.elementClickable(p11.nextBtn)\n\t}","handleNavPage(e) {\n history.push('/GeneralQuestionnarie');\n }","function goBack() {\n $state.go('tribes.list');\n }","function zurueck(){\n\t\tif(!pfeilAktivitaet) {\n\t\t\tneuLaden();\n\t\t}\n\t\telse {\n\t\t\ttoggleDetailView_textauszug();\n\t\t\tpfeilAktivitaet = false;\n\t\t}\n\t}//ENDE zurueck()","function onGoBack() {\n setFormDataEdit(null);\n setStep('Menu');\n }","function setupPublicNavigation() {\n Navigation.clear();\n Navigation.breadcrumbs.add('Openings', '#!/openings', '#!/openings'); // add a breadcrumb\n Navigation.viewTitle.set('View Opening');\n }","function DisplayNav() {\n switch (userInfo.accountType) {\n case 'E':\n return ()\n\n case 'U':\n return ()\n\n default:\n return ()\n }\n }","function ukoncitObrazovku() {\n $state.go(\n 'app.dashboard',\n {notify: false, reloadOnSearch: false, reload: false, location: 'replace', inherit: true}\n );\n }","onNavigate (routeData) {\n this.channel.trigger('before:navigate', routeData.linked)\n\n routeData.linked.show(routeData.params)\n .then(() => {\n this.channel.trigger('navigate', routeData.linked)\n })\n .catch((error) => {\n console.error(error)\n this.channel.trigger('error')\n })\n }","function _plmNav(navInfo)\r\n{\t\r\n\tif(navInfo!=null)\r\n\t{\r\n\t\tloadWorkArea(navInfo,\"\",\"\",loadNavigationGrid);\r\n\t}\t\r\n}","function renderNavigationMenu() {\n\n }","function showList() {\n\t\t\t$state.go('^');\n\t\t}","function showList() {\n\t\t\t$state.go('^');\n\t\t}","navigateHyperlink() {\n let fieldBegin = this.getHyperlinkField();\n if (fieldBegin) {\n this.fireRequestNavigate(fieldBegin);\n }\n }","function onNavigateLeftClicked(event) {\n event.preventDefault();\n navigateLeft();\n }","function beforeShowInfantglossary(e)\n{\n BindInfantGlossaryDetails(currentBook);\n closeNav();\n}","function gotoOts()\n {\n $state.go('app.notificaciones_promociones');\n }","function goBack()\n {\n $state.go('app.admin-users.browse');\n }","createNavigation() {\n var nav = {\n left: [],\n right: []\n };\n nav.right.push(new NavButton('Review Results', scope.review, true, false, 0));\n\n this.navigation = nav;\n }","function viewBackFromOther() {\n\tlogInfo('Back change pasword');\n}","function viewBackFromOther() {\n\tlogInfo('Back change pasword');\n}","function NavNavigate(/**string*/ page, /**string*/ company)\r\n{\r\n\tSeS(\"G_AddressBar\").DoClick();\r\n\tvar addressEdit = SeS(\"G_AddressEdit\");\r\n\tif (!company)\r\n\t{\r\n\t\tvar currentPage = \"\" + addressEdit.GetText();\r\n\t\tcompany = currentPage.split(\"/\")[0];\r\n\t}\r\n\taddressEdit.DoSetText(company + \"/\" + page);\r\n\taddressEdit.DoSendKeys(\"{ENTER}\");\r\n}","function onEdit() {\n setNav(0);\n }","function _navTo( n ) {\n\t\t// go to it\n\t\t$( \"#taxa > section\", _sandbox.context ).scrollTo( \"#\" + n.link.attr( \"id\" ), 100, { offset: -45 } );\n\t}","navigatPageMonCompte() {\n this.props.navigation.navigate('MonCompte');\n }","function goBack() {\n\t\t\t$state.go('^.detail', {id: vm.order._id});\n\t\t}","function PagesNavigation() {\n\n}","function AddNewDetail() {\r\n navigation.navigate('DetailRegister', { edit: false, step: {} });\r\n }","back () {\n // realization in Class\n }","function navigate() {\n\t   \t//remove css classes from items\n\t\t$('#js_itemlist > li').removeAttr('style');\n\t\t$('#js_itemlist > li.current').removeClass('current');\n\t\t$('#js_itemlist > li.next-out').removeClass('next-out');\n\t\t$('#js_itemlist > li.next-in').removeClass('next-in');\n\t\t$('#js_itemlist > li.prev-out').removeClass('prev-out');\n\t\t$('#js_itemlist > li.prev-in').removeClass('prev-in');\n\t\t\n\t\t\t\t\n\t\t//active and isNext nodes\n\t\tvar $active = $('#js_itemlist > li.current'),\n\t isNext = $(this).hasClass('next');\n\t\t\n\t\t//get current index\n\t\tcurrentIndex = (currentIndex + (isNext ? 1 : -1)) % itemCount;\n\n\t\t/* go back to the last item if we hit -1 */\n\t\tif (currentIndex === -1) {\n\t\t\tcurrentIndex = itemCount - 1;\n\t\t}\n\t\t\n\t\t//add css classes for transition\n\t\tvar $next = $('#js_itemlist > li:eq(' + currentIndex + ')');\n\t\t$active.addClass(isNext ? 'next-out' : 'prev-out');\n\t\t$next.addClass('current').addClass(isNext ? 'next-in' : 'prev-in');\n\t\t\n\t\treturn false;\n\t\t\n}","function navigate(index) {\n World.diagram.getBounded(index, function(graph) {\n Display.update(graph);\n current = graph.meta('index');\n highlight(current);\n\n window.location.replace(\"#\" + (current +1)); \n })\n }","function goBack()\n {\n $state.go('app.location_city_browse');\n }","redirect() {\n const hash = Radio.request('utils/Url', 'getHash');\n\n // Redirect back only if it's notebooks page\n if (hash.search(/notebooks/) !== -1) {\n Radio.request('utils/Url', 'navigate', {\n trigger : false,\n url : '/notebooks',\n includeProfile : true,\n });\n }\n }","navigateToPharmacyPage() {\n return this._navigate(this.buttons.pharmacy, 'pharmacyPage.js');\n }","addVuln() {\n const navigateAction = NavigationActions.navigate({\n routeName: 'AddVuln'\n });\n this.props.navigation.dispatch(navigateAction);\n }","function viewBackFromOther() {\n\tlogInfo('Back send info user approve');\n}","confirmPageNavigate() {\n this.confirm_navigation_level = 0;\n this.pageNavigate();\n }","function OsNavAdditionInfo() {\r\n $('.os-menu a[href=\"#\"]').on('click', function (event) {\r\n event.preventDefault();\r\n });\r\n $('.os-menu li').has('ul').addClass('li-node').parent().addClass('ul-node');\r\n //$('.os-menu .mega-menu:not(.menu-fullwidth)').parent().css('position', 'relative')\r\n }","function goTo(lala) {\n $state.go(lala);\n }","function loadDirections(string) {\r\n document.querySelector(\"nav ul li:first-of-type\").className = \"\";\r\n document.querySelector(\"nav ul li:last-of-type\").className = \"current\";\r\n document.getElementById(\"setup\").style.display = \"none\";\r\n document.getElementById(\"location\").style.display = \"block\";\r\n}","redirct(id)\n{\n this[NavigationMixin.Navigate]({\n type: 'standard__recordPage',\n attributes: {\n recordId: id,\n // objectApiName: 'Opportunity', // objectApiName is optional\n actionName: 'view'\n }\n });\n}","function goBack(event) {\n $(this).parent('ul').prev('a').removeClass('selected').attr('aria-expanded','false')\n $(this).parent('ul').addClass('is-hidden').attr('aria-hidden', 'true').parent('.has-children').parent('ul').removeClass('moves-out'); \n }","function showList() {\n\t\t\t$state.go('flight.list');\n\t\t}","Navigate(string, Variant, Variant, Variant, Variant) {\n\n }","function sceneEnter(scene){\r\n\t\tvar currentNav = \"\"; // Aktueller Navigationspunkt\r\n\t\tswitch(scene){\r\n\t\t\tcase \"intro1\":\r\n\t\t\tcase \"intro2\":\r\n\t\t\t\tcurrentNav = \"intro\";\r\n\t\t\t\tbreak; \r\n\t\t\tcase \"lecture\": \r\n\t\t\t\tcurrentNav = \"lecture\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"selfstudy1\":\r\n\t\t\tcase \"selfstudy2\":\r\n\t\t\tcase \"selfstudy3\":\r\n\t\t\t\tcurrentNav = \"selfstudy\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"canteen\":\r\n\t\t\tcase \"feature\":\r\n\t\t\tcase \"outro\":\r\n\t\t\t\tcurrentNav = \"tools\";\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tactivateNav(currentNav);\r\n\t}","function nextScreen(navigation,id,name,desc){\r\n if(name==''){alert('Enter a valid name')}\r\n navigation.navigate('Create2',{id:id,name:name,desc:desc})\r\n}","function showNavigator() {\n console.log('>> Wunderlist Navigator shortcut clicked');\n $(Config.LIST_SWITCHER).show();\n $(Config.LIST_INPUT).focus();\n var lists = [];\n $(Config.LIST_LINKS).each(function (index, element) {\n var list = {};\n var $this = $(this);\n list.href = $this.attr('href');\n list.title = $this.find('.title').text();\n lists.push(list);\n });\n allLists = lists;\n populateLists(lists);\n }","function onNavBack() {\n _currentTilesType = \"variables\";\n _selectedVariable = null;\n _$searchControl.val(_savedSearchQuery);\n\n _datasourceInfoPanel.hide();\n _$datasourcesList.hide();\n _$datasourcesListContent.empty();\n _$variablesList.show();\n _$navBackBtn.hide();\n _$sortControl.show();\n\n _$navPath.text(_currentSortMode == \"byName\" ?\n FC.Settings.LAYERS_BY_NAME_MESSAGE : FC.Settings.LAYERS_BY_CATEGORY_MESSAGE);\n\n if(_noCategoriesFound)\n _$sectionHeader.css(\"display\", \"none\");\n }","backToReferral(referral) {\n this.goToReferralPanel(referral);\n }","onClickNavToOverview() {\n this.transitionToRoute('manage.alert', this.get('id'));\n }","showBackToAlgorithimPageCustom() {\n return this.state.showFirstPage ? showBackToAlgorithimPage() : null;\n }","function navBack(prevState) {\n $state.go(prevState, {}, {reload: true}); // reload to get reslove data again\n }","function updateNavigation()\r\n {\r\n $('#linkLogin').hide();\r\n $('#linkRegister').hide(); \r\n $('#linkListBooks').show();\r\n $('#linkCreateBook').show();\r\n $('#linkLogout').show();\r\n showPage('viewBooks');\r\n }","function goToForm() {\n history.push('/form');\n }","goToScene(){\n this.return = false;\n this.nameArea.text = \"\";\n }","function volver(){ javascript:history.go(-1); }","function showParentForm() {\n $timeout(function () {\n var parentState = module['ModuleId'] + '.' + content.ContentId;\n $state.go(parentState);\n }, 10);\n }","function showParentForm() {\n $timeout(function () {\n var parentState = module['ModuleId'] + '.' + content.ContentId;\n $state.go(parentState);\n }, 10);\n }","function openNextLevel(event) {\n event.preventDefault();\n var $this = $(this);\n $('#au-site-nav li').removeClass('active');\n \n if( $this.next('ul').hasClass('is-hidden') ) {\n $this.addClass('selected').attr('aria-expanded', 'true').next('ul').removeClass('is-hidden').attr('aria-hidden', 'false').end().parent('.has-children').parent('ul').addClass('moves-out');\n $this.parent('.has-children').siblings('.has-children').children('ul').addClass('is-hidden').attr('aria-hidden', 'true').end().children('a').removeClass('selected');\n } else {\n $this.removeClass('selected').attr('aria-expanded', 'false').next('ul').addClass('is-hidden').attr('aria-hidden', 'true').end().parent('.has-children').parent('ul').removeClass('moves-out');\n }\n }","function returnHome() {\n $state.go(constants.states.soon);\n }","function Navigate() {\n source_vector_draw_rdc.clear();\n source_vector_draw_etage.clear();\n drawPinStart();\n\n var porte_start = porteStartLocalisation;\n var porte_end = document.getElementById(\"endNavigation\").value;\n\n var collection_route = Route(porte_start, porte_end);\n collection_route.forEach(triple => { //start, end, layer\n Drawline(triple[0], triple[1], triple[2]);\n });\n}","function setNav() {\n\n\t\t\t\tvar $nav = _$parent.find('nav');\n\t\t\t\tvar $contents = _$parent.find('.contents');\n\t\t\t\tvar $btn = $nav.find('p');\n\n\t\t\t\t$btn.on('click',function() {\n\n\t\t\t\t\tvar $target = $(this);\n\n\t\t\t\t\tif ($target.hasClass('active')) return;\n\t\t\t\t\t$contents.removeClass('show');\n\t\t\t\t\t$btn.removeClass('active');\n\t\t\t\t\t$target.addClass('active');\n\t\t\t\t\tvar id = $target.prop('id').split('-')[1];\n\t\t\t\t\t$contents.filter('#contet-' + id).addClass('show');\n\n\t\t\t\t});\n\n\t\t\t\treturn false;\n\t\t\t}","function setNavigation() {\r\n\t\t\tvar i, html = '';\r\n\r\n\t\t\t//generate the buttons\r\n\t\t\tif(o.buttons) {\r\n\t\t\t\t$nav = $('
      ', {\r\n\t\t\t\t\tid: o.navigationId\r\n\t\t\t\t});\r\n\t\t\t\tfor(i = 0; i < itemNum; i++) {\r\n\t\t\t\t\thtml += '
    • ';\r\n\t\t\t\t}\r\n\t\t\t\t$nav.html(html).appendTo($root).fadeIn(700);\r\n\r\n\t\t\t\t$navLi = $nav.find('li');\r\n\t\t\t\t$navLi.eq(0).addClass(o.selectedClass);\r\n\t\t\t}\r\n\r\n\t\t\t//generate the arrows\r\n\t\t\tif(o.arrows) {\r\n\t\t\t\t$prevArrow = $('
      ', {\r\n\t\t\t\t\t'class': o.prevArrowClass\r\n\t\t\t\t}).appendTo($root);\r\n\t\t\t\t$nextArrow = $('
      ', {\r\n\t\t\t\t\t'class': o.nextArrowClass\r\n\t\t\t\t}).appendTo($root);\r\n\t\t\t}\r\n\r\n\t\t}","nav_helper_view1(data) {\n\t\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\n\t\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\n\t\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\n\t\t\n\n\t}","function setupPageNavs () {\n\t\t// For any nested list items, wrap the link text in a span so that we can put a border under the text on hover.\n\t\t$mobilemenu.find(\".ibm-mobilemenu-section li li a\").wrapInner(\"\");\n\n\t\tIBM.common.util.a11y.makeTreeAccessible({\n\t\t\tel: $mobilemenu.find(\".ibm-mobilemenu-pagenav > ul\")\n\t\t});\n\t}","function navigate(nav, navArray){\n for (var i = 0; i < navArray.length; i++) {\n if (nav == navArray[i].nav) {\n navArray[i].page.style.display = \"block\";\n if (nav != document.getElementById('homenav')){\n navArray[i].nav.style.backgroundColor = \"#FAA669\";\n }\n navArray[i].nav.style.cursor = \"default\";\n } else {\n if (!(navArray[i].page == account && (nav == signNav || nav == logNav)))\n {\n navArray[i].page.style.display = \"none\";\n }\n if (navArray[i].nav != document.getElementById('homenav')){\n navArray[i].nav.style.backgroundColor = navArray[i].color;\n }\n navArray[i].nav.style.cursor = \"pointer\";\n }\n }\n }","function updateNavigationLinks()\n {\n if (currentSubunitIsTheFirstSubunit()) {\n my.html.previousLink.style.visibility = 'hidden'\n my.html.nextLink.style.visibility = 'visible'\n } else if (currentSubunitIsTheLastSubunit()) {\n my.html.previousLink.style.visibility = 'visible'\n my.html.nextLink.style.visibility = 'hidden'\n } else {\n my.html.previousLink.style.visibility = 'visible'\n my.html.nextLink.style.visibility = 'visible'\n }\n }","function addClicked(){\n\trouter.goBack();\n}","mainNav() {}","function BackToList() {\r\n // const jumpToAction = TabActions.jumpTo('List Page');\r\n // return navigation.dispatch(jumpToAction);\r\n navigation.navigate('List Page');\r\n }","buscarPokemon(termino) {\n console.log('capturo info de text - navbar.component.ts ', termino);\n this.router.navigate(['/buscar', termino]);\n }","initialNavigation() {\n this.setUpLocationChangeListener();\n if (this.navigationId === 0) {\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\n }\n }","initialNavigation() {\n this.setUpLocationChangeListener();\n if (this.navigationId === 0) {\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\n }\n }","initialNavigation() {\n this.setUpLocationChangeListener();\n if (this.navigationId === 0) {\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\n }\n }","initialNavigation() {\n this.setUpLocationChangeListener();\n if (this.navigationId === 0) {\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\n }\n }","initialNavigation() {\n this.setUpLocationChangeListener();\n if (this.navigationId === 0) {\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\n }\n }","static goBack(navigation) {\n navigation.goBack();\n }","function generateNav(callback){\n\t\t\tdocument.getElementById(\"terminal\").innerHTML = framework[\"terminal\"];\n\t\t\tdocument.getElementById(\"terminal-content\").innerHTML = framework[\"nav\"];\n\t\t\tcallback(current_tab);\n\t\t}","displaySearch() {\n var route = {\n scene: 2\n }\n this.props.navigator.push(route);\n }","navigateToRecordViewPage() {\n this[NavigationMixin.Navigate]({\n type:'standard__recordPage',\n attributes :{\n recordId:this.boatId,\n objectApiName:'Boat__c',\n actionName:'view'\n }\n });\n }","function goBack() {\n\t\t\t$state.go('^.detail', {id: vm.basket._id});\n\t\t}","function determineNavAction() {\n if (options.jq.navContent.is(':hidden')) {\n openNav();\n } else {\n closeNav();\n }\n }","static goPage(params, page) {\n const navigation = NavigationUtil.navigation;\n /*children level router can't jump to parent level router*/\n //const {navigation} = params;\n if (!navigation) {\n console.log('NavigationUtil.navigation can\\'t be null.')\n }\n navigation.navigate(\n page,\n {\n ...params\n }\n );\n }","onClick() {\n this.wizard.goToPreviousStep(this.preFinalize, this.postFinalize);\n }","function findNavigation() {\n var navs = d.querySelectorAll('.' + proto.classes.nav);\n for (var i = navs.length; i--;) {\n new Navigation({ parent: navs[i] });\n }\n }"],"string":"[\n \"function go_articulos() {\\n $state.go('complex_articles.list');\\n }\",\n \"function navigation() {\\n\\t\\n\\t/* @TODO: reverse li und stelle angemeldet als nach oben */\\n\\t//$$('#account ul').insert( $$('#account ul li').reverse() );\\n}\",\n \"function _addNavigation() {}\",\n \"function visSingleView() {\\n console.log(\\\"visSingleView\\\");\\n //add history.back();\\n //Konstant der bestemmer window.location.search\\n //Konstant der definerer en unik egenskab (her fx. navn).\\n //Konstant der definerer URL til json\\n //Andre lokale variabler\\n //opret en klon med alle info fra json og sæt ind på siden vha textContent, link til billede + alt.\\n}\",\n \"function navigation() {\\n\\n console.log(\\\"Bienvenue dans le gestionnaire de contact\\\");\\n console.log(\\\"1 : Liste des contacts\\\");\\n console.log(\\\"2 : Ajouter un contact\\\");\\n console.log(\\\"3 : Quitter\\\");\\n}\",\n \"createNavigation() {\\n var nav = super.createNavigation();\\n nav.left.push(new NavButton('Review/Change Responses', this.back, true, false, 0));\\n nav.right.push(new NavButton('Submit Assessment', scope.submitAndEnd, true, !this.isValid, 1));\\n nav.right.push(new NavButton('Save and Exit', saveAndExit, true, false, 0));\\n\\n this.navigation = nav;\\n }\",\n \"function go_articulos() {\\n $state.go('articles.list');\\n }\",\n \"function backToScreenDtl(){\\n\\tupdateAccountListInfo(); \\n\\tnavController.initWithRootView('corp/account/list_info/acc_list_account_info_dtl', true, 'xsl');\\n}\",\n \"createNavigation() {\\n var nav = super.createNavigation();\\n nav.right.push(new NavButton('Continue', this.next, true, true));\\n this.navigation = nav;\\n }\",\n \"createNavigation() {\\n var nav = super.createNavigation();\\n nav.left.push(\\n new NavButton('Back', this.back, !this.isFirstQuestionOfWizard, false, 0));\\n nav.left.push(\\n new NavButton('Cancel', this.cancel, true, false, 1));\\n nav.right.push(\\n new NavButton('Continue', this.next, true, false, 1));\\n nav.right.push(\\n new NavButton('Save and Exit', this.saveAndExit, true, false, 0));\\n\\n this.navigation = nav;\\n }\",\n \"function redirectToPhysioExperts() {\\n\\t\\t\\t$state.go(\\\"homepages.physioexperts\\\");\\n\\t\\t}\",\n \"function directUserFromViewInfo() {\\n if (nextStep == \\\"Departments\\\") {\\n viewDepartments();\\n }\\n if (nextStep == \\\"Roles\\\") {\\n viewRoles();\\n }\\n if (nextStep == \\\"Employees\\\") {\\n viewEmployees();\\n }\\n if (nextStep == \\\"All Information\\\") {\\n viewAll();\\n } \\n }\",\n \"function goBack() {\\r\\n \\t\\t$state.go('main.afiliado.edit.examen.list', {afiliadoId: $stateParams.afiliadoId});\\r\\n \\t}\",\n \"function originNextStep() {\\n $scope.originStep = 'navigationhidden';\\n $scope.destinationStep = 'navigationshown';\\n $scope.geosuccess = 'navigationhidden';\\n }\",\n \"afficherEcranParent(ecran) {\\n this.props.navigation.navigate(ecran);\\n }\",\n \"function nav() {\\n\\t\\t var w = document.reflinkform.reflinklist.selectedIndex;\\n\\t\\t var url_add = document.reflinkform.reflinklist.options[w].value;\\n\\t\\t window.location.href = url_add;\\n\\t\\t}\",\n \"nav_helper_view(data) {\\n\\t\\tp11.nav_helper_view(data);\\n\\t\\tutil.elementClickable(p11.nextBtn)\\n\\t}\",\n \"handleNavPage(e) {\\n history.push('/GeneralQuestionnarie');\\n }\",\n \"function goBack() {\\n $state.go('tribes.list');\\n }\",\n \"function zurueck(){\\n\\t\\tif(!pfeilAktivitaet) {\\n\\t\\t\\tneuLaden();\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\ttoggleDetailView_textauszug();\\n\\t\\t\\tpfeilAktivitaet = false;\\n\\t\\t}\\n\\t}//ENDE zurueck()\",\n \"function onGoBack() {\\n setFormDataEdit(null);\\n setStep('Menu');\\n }\",\n \"function setupPublicNavigation() {\\n Navigation.clear();\\n Navigation.breadcrumbs.add('Openings', '#!/openings', '#!/openings'); // add a breadcrumb\\n Navigation.viewTitle.set('View Opening');\\n }\",\n \"function DisplayNav() {\\n switch (userInfo.accountType) {\\n case 'E':\\n return ()\\n\\n case 'U':\\n return ()\\n\\n default:\\n return ()\\n }\\n }\",\n \"function ukoncitObrazovku() {\\n $state.go(\\n 'app.dashboard',\\n {notify: false, reloadOnSearch: false, reload: false, location: 'replace', inherit: true}\\n );\\n }\",\n \"onNavigate (routeData) {\\n this.channel.trigger('before:navigate', routeData.linked)\\n\\n routeData.linked.show(routeData.params)\\n .then(() => {\\n this.channel.trigger('navigate', routeData.linked)\\n })\\n .catch((error) => {\\n console.error(error)\\n this.channel.trigger('error')\\n })\\n }\",\n \"function _plmNav(navInfo)\\r\\n{\\t\\r\\n\\tif(navInfo!=null)\\r\\n\\t{\\r\\n\\t\\tloadWorkArea(navInfo,\\\"\\\",\\\"\\\",loadNavigationGrid);\\r\\n\\t}\\t\\r\\n}\",\n \"function renderNavigationMenu() {\\n\\n }\",\n \"function showList() {\\n\\t\\t\\t$state.go('^');\\n\\t\\t}\",\n \"function showList() {\\n\\t\\t\\t$state.go('^');\\n\\t\\t}\",\n \"navigateHyperlink() {\\n let fieldBegin = this.getHyperlinkField();\\n if (fieldBegin) {\\n this.fireRequestNavigate(fieldBegin);\\n }\\n }\",\n \"function onNavigateLeftClicked(event) {\\n event.preventDefault();\\n navigateLeft();\\n }\",\n \"function beforeShowInfantglossary(e)\\n{\\n BindInfantGlossaryDetails(currentBook);\\n closeNav();\\n}\",\n \"function gotoOts()\\n {\\n $state.go('app.notificaciones_promociones');\\n }\",\n \"function goBack()\\n {\\n $state.go('app.admin-users.browse');\\n }\",\n \"createNavigation() {\\n var nav = {\\n left: [],\\n right: []\\n };\\n nav.right.push(new NavButton('Review Results', scope.review, true, false, 0));\\n\\n this.navigation = nav;\\n }\",\n \"function viewBackFromOther() {\\n\\tlogInfo('Back change pasword');\\n}\",\n \"function viewBackFromOther() {\\n\\tlogInfo('Back change pasword');\\n}\",\n \"function NavNavigate(/**string*/ page, /**string*/ company)\\r\\n{\\r\\n\\tSeS(\\\"G_AddressBar\\\").DoClick();\\r\\n\\tvar addressEdit = SeS(\\\"G_AddressEdit\\\");\\r\\n\\tif (!company)\\r\\n\\t{\\r\\n\\t\\tvar currentPage = \\\"\\\" + addressEdit.GetText();\\r\\n\\t\\tcompany = currentPage.split(\\\"/\\\")[0];\\r\\n\\t}\\r\\n\\taddressEdit.DoSetText(company + \\\"/\\\" + page);\\r\\n\\taddressEdit.DoSendKeys(\\\"{ENTER}\\\");\\r\\n}\",\n \"function onEdit() {\\n setNav(0);\\n }\",\n \"function _navTo( n ) {\\n\\t\\t// go to it\\n\\t\\t$( \\\"#taxa > section\\\", _sandbox.context ).scrollTo( \\\"#\\\" + n.link.attr( \\\"id\\\" ), 100, { offset: -45 } );\\n\\t}\",\n \"navigatPageMonCompte() {\\n this.props.navigation.navigate('MonCompte');\\n }\",\n \"function goBack() {\\n\\t\\t\\t$state.go('^.detail', {id: vm.order._id});\\n\\t\\t}\",\n \"function PagesNavigation() {\\n\\n}\",\n \"function AddNewDetail() {\\r\\n navigation.navigate('DetailRegister', { edit: false, step: {} });\\r\\n }\",\n \"back () {\\n // realization in Class\\n }\",\n \"function navigate() {\\n\\t   \\t//remove css classes from items\\n\\t\\t$('#js_itemlist > li').removeAttr('style');\\n\\t\\t$('#js_itemlist > li.current').removeClass('current');\\n\\t\\t$('#js_itemlist > li.next-out').removeClass('next-out');\\n\\t\\t$('#js_itemlist > li.next-in').removeClass('next-in');\\n\\t\\t$('#js_itemlist > li.prev-out').removeClass('prev-out');\\n\\t\\t$('#js_itemlist > li.prev-in').removeClass('prev-in');\\n\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t//active and isNext nodes\\n\\t\\tvar $active = $('#js_itemlist > li.current'),\\n\\t isNext = $(this).hasClass('next');\\n\\t\\t\\n\\t\\t//get current index\\n\\t\\tcurrentIndex = (currentIndex + (isNext ? 1 : -1)) % itemCount;\\n\\n\\t\\t/* go back to the last item if we hit -1 */\\n\\t\\tif (currentIndex === -1) {\\n\\t\\t\\tcurrentIndex = itemCount - 1;\\n\\t\\t}\\n\\t\\t\\n\\t\\t//add css classes for transition\\n\\t\\tvar $next = $('#js_itemlist > li:eq(' + currentIndex + ')');\\n\\t\\t$active.addClass(isNext ? 'next-out' : 'prev-out');\\n\\t\\t$next.addClass('current').addClass(isNext ? 'next-in' : 'prev-in');\\n\\t\\t\\n\\t\\treturn false;\\n\\t\\t\\n}\",\n \"function navigate(index) {\\n World.diagram.getBounded(index, function(graph) {\\n Display.update(graph);\\n current = graph.meta('index');\\n highlight(current);\\n\\n window.location.replace(\\\"#\\\" + (current +1)); \\n })\\n }\",\n \"function goBack()\\n {\\n $state.go('app.location_city_browse');\\n }\",\n \"redirect() {\\n const hash = Radio.request('utils/Url', 'getHash');\\n\\n // Redirect back only if it's notebooks page\\n if (hash.search(/notebooks/) !== -1) {\\n Radio.request('utils/Url', 'navigate', {\\n trigger : false,\\n url : '/notebooks',\\n includeProfile : true,\\n });\\n }\\n }\",\n \"navigateToPharmacyPage() {\\n return this._navigate(this.buttons.pharmacy, 'pharmacyPage.js');\\n }\",\n \"addVuln() {\\n const navigateAction = NavigationActions.navigate({\\n routeName: 'AddVuln'\\n });\\n this.props.navigation.dispatch(navigateAction);\\n }\",\n \"function viewBackFromOther() {\\n\\tlogInfo('Back send info user approve');\\n}\",\n \"confirmPageNavigate() {\\n this.confirm_navigation_level = 0;\\n this.pageNavigate();\\n }\",\n \"function OsNavAdditionInfo() {\\r\\n $('.os-menu a[href=\\\"#\\\"]').on('click', function (event) {\\r\\n event.preventDefault();\\r\\n });\\r\\n $('.os-menu li').has('ul').addClass('li-node').parent().addClass('ul-node');\\r\\n //$('.os-menu .mega-menu:not(.menu-fullwidth)').parent().css('position', 'relative')\\r\\n }\",\n \"function goTo(lala) {\\n $state.go(lala);\\n }\",\n \"function loadDirections(string) {\\r\\n document.querySelector(\\\"nav ul li:first-of-type\\\").className = \\\"\\\";\\r\\n document.querySelector(\\\"nav ul li:last-of-type\\\").className = \\\"current\\\";\\r\\n document.getElementById(\\\"setup\\\").style.display = \\\"none\\\";\\r\\n document.getElementById(\\\"location\\\").style.display = \\\"block\\\";\\r\\n}\",\n \"redirct(id)\\n{\\n this[NavigationMixin.Navigate]({\\n type: 'standard__recordPage',\\n attributes: {\\n recordId: id,\\n // objectApiName: 'Opportunity', // objectApiName is optional\\n actionName: 'view'\\n }\\n });\\n}\",\n \"function goBack(event) {\\n $(this).parent('ul').prev('a').removeClass('selected').attr('aria-expanded','false')\\n $(this).parent('ul').addClass('is-hidden').attr('aria-hidden', 'true').parent('.has-children').parent('ul').removeClass('moves-out'); \\n }\",\n \"function showList() {\\n\\t\\t\\t$state.go('flight.list');\\n\\t\\t}\",\n \"Navigate(string, Variant, Variant, Variant, Variant) {\\n\\n }\",\n \"function sceneEnter(scene){\\r\\n\\t\\tvar currentNav = \\\"\\\"; // Aktueller Navigationspunkt\\r\\n\\t\\tswitch(scene){\\r\\n\\t\\t\\tcase \\\"intro1\\\":\\r\\n\\t\\t\\tcase \\\"intro2\\\":\\r\\n\\t\\t\\t\\tcurrentNav = \\\"intro\\\";\\r\\n\\t\\t\\t\\tbreak; \\r\\n\\t\\t\\tcase \\\"lecture\\\": \\r\\n\\t\\t\\t\\tcurrentNav = \\\"lecture\\\";\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase \\\"selfstudy1\\\":\\r\\n\\t\\t\\tcase \\\"selfstudy2\\\":\\r\\n\\t\\t\\tcase \\\"selfstudy3\\\":\\r\\n\\t\\t\\t\\tcurrentNav = \\\"selfstudy\\\";\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase \\\"canteen\\\":\\r\\n\\t\\t\\tcase \\\"feature\\\":\\r\\n\\t\\t\\tcase \\\"outro\\\":\\r\\n\\t\\t\\t\\tcurrentNav = \\\"tools\\\";\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tactivateNav(currentNav);\\r\\n\\t}\",\n \"function nextScreen(navigation,id,name,desc){\\r\\n if(name==''){alert('Enter a valid name')}\\r\\n navigation.navigate('Create2',{id:id,name:name,desc:desc})\\r\\n}\",\n \"function showNavigator() {\\n console.log('>> Wunderlist Navigator shortcut clicked');\\n $(Config.LIST_SWITCHER).show();\\n $(Config.LIST_INPUT).focus();\\n var lists = [];\\n $(Config.LIST_LINKS).each(function (index, element) {\\n var list = {};\\n var $this = $(this);\\n list.href = $this.attr('href');\\n list.title = $this.find('.title').text();\\n lists.push(list);\\n });\\n allLists = lists;\\n populateLists(lists);\\n }\",\n \"function onNavBack() {\\n _currentTilesType = \\\"variables\\\";\\n _selectedVariable = null;\\n _$searchControl.val(_savedSearchQuery);\\n\\n _datasourceInfoPanel.hide();\\n _$datasourcesList.hide();\\n _$datasourcesListContent.empty();\\n _$variablesList.show();\\n _$navBackBtn.hide();\\n _$sortControl.show();\\n\\n _$navPath.text(_currentSortMode == \\\"byName\\\" ?\\n FC.Settings.LAYERS_BY_NAME_MESSAGE : FC.Settings.LAYERS_BY_CATEGORY_MESSAGE);\\n\\n if(_noCategoriesFound)\\n _$sectionHeader.css(\\\"display\\\", \\\"none\\\");\\n }\",\n \"backToReferral(referral) {\\n this.goToReferralPanel(referral);\\n }\",\n \"onClickNavToOverview() {\\n this.transitionToRoute('manage.alert', this.get('id'));\\n }\",\n \"showBackToAlgorithimPageCustom() {\\n return this.state.showFirstPage ? showBackToAlgorithimPage() : null;\\n }\",\n \"function navBack(prevState) {\\n $state.go(prevState, {}, {reload: true}); // reload to get reslove data again\\n }\",\n \"function updateNavigation()\\r\\n {\\r\\n $('#linkLogin').hide();\\r\\n $('#linkRegister').hide(); \\r\\n $('#linkListBooks').show();\\r\\n $('#linkCreateBook').show();\\r\\n $('#linkLogout').show();\\r\\n showPage('viewBooks');\\r\\n }\",\n \"function goToForm() {\\n history.push('/form');\\n }\",\n \"goToScene(){\\n this.return = false;\\n this.nameArea.text = \\\"\\\";\\n }\",\n \"function volver(){ javascript:history.go(-1); }\",\n \"function showParentForm() {\\n $timeout(function () {\\n var parentState = module['ModuleId'] + '.' + content.ContentId;\\n $state.go(parentState);\\n }, 10);\\n }\",\n \"function showParentForm() {\\n $timeout(function () {\\n var parentState = module['ModuleId'] + '.' + content.ContentId;\\n $state.go(parentState);\\n }, 10);\\n }\",\n \"function openNextLevel(event) {\\n event.preventDefault();\\n var $this = $(this);\\n $('#au-site-nav li').removeClass('active');\\n \\n if( $this.next('ul').hasClass('is-hidden') ) {\\n $this.addClass('selected').attr('aria-expanded', 'true').next('ul').removeClass('is-hidden').attr('aria-hidden', 'false').end().parent('.has-children').parent('ul').addClass('moves-out');\\n $this.parent('.has-children').siblings('.has-children').children('ul').addClass('is-hidden').attr('aria-hidden', 'true').end().children('a').removeClass('selected');\\n } else {\\n $this.removeClass('selected').attr('aria-expanded', 'false').next('ul').addClass('is-hidden').attr('aria-hidden', 'true').end().parent('.has-children').parent('ul').removeClass('moves-out');\\n }\\n }\",\n \"function returnHome() {\\n $state.go(constants.states.soon);\\n }\",\n \"function Navigate() {\\n source_vector_draw_rdc.clear();\\n source_vector_draw_etage.clear();\\n drawPinStart();\\n\\n var porte_start = porteStartLocalisation;\\n var porte_end = document.getElementById(\\\"endNavigation\\\").value;\\n\\n var collection_route = Route(porte_start, porte_end);\\n collection_route.forEach(triple => { //start, end, layer\\n Drawline(triple[0], triple[1], triple[2]);\\n });\\n}\",\n \"function setNav() {\\n\\n\\t\\t\\t\\tvar $nav = _$parent.find('nav');\\n\\t\\t\\t\\tvar $contents = _$parent.find('.contents');\\n\\t\\t\\t\\tvar $btn = $nav.find('p');\\n\\n\\t\\t\\t\\t$btn.on('click',function() {\\n\\n\\t\\t\\t\\t\\tvar $target = $(this);\\n\\n\\t\\t\\t\\t\\tif ($target.hasClass('active')) return;\\n\\t\\t\\t\\t\\t$contents.removeClass('show');\\n\\t\\t\\t\\t\\t$btn.removeClass('active');\\n\\t\\t\\t\\t\\t$target.addClass('active');\\n\\t\\t\\t\\t\\tvar id = $target.prop('id').split('-')[1];\\n\\t\\t\\t\\t\\t$contents.filter('#contet-' + id).addClass('show');\\n\\n\\t\\t\\t\\t});\\n\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\",\n \"function setNavigation() {\\r\\n\\t\\t\\tvar i, html = '';\\r\\n\\r\\n\\t\\t\\t//generate the buttons\\r\\n\\t\\t\\tif(o.buttons) {\\r\\n\\t\\t\\t\\t$nav = $('
        ', {\\r\\n\\t\\t\\t\\t\\tid: o.navigationId\\r\\n\\t\\t\\t\\t});\\r\\n\\t\\t\\t\\tfor(i = 0; i < itemNum; i++) {\\r\\n\\t\\t\\t\\t\\thtml += '
      • ';\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t$nav.html(html).appendTo($root).fadeIn(700);\\r\\n\\r\\n\\t\\t\\t\\t$navLi = $nav.find('li');\\r\\n\\t\\t\\t\\t$navLi.eq(0).addClass(o.selectedClass);\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t//generate the arrows\\r\\n\\t\\t\\tif(o.arrows) {\\r\\n\\t\\t\\t\\t$prevArrow = $('
        ', {\\r\\n\\t\\t\\t\\t\\t'class': o.prevArrowClass\\r\\n\\t\\t\\t\\t}).appendTo($root);\\r\\n\\t\\t\\t\\t$nextArrow = $('
        ', {\\r\\n\\t\\t\\t\\t\\t'class': o.nextArrowClass\\r\\n\\t\\t\\t\\t}).appendTo($root);\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t}\",\n \"nav_helper_view1(data) {\\n\\t\\tutil.selectDropDown(this.group,data.Group,'Group','Account Info');\\n\\t\\tutil.selectDropDown(this.clientName,data.ClientName,'Client Name','Account Info ');\\n\\t\\tutil.selectDropDown(this.accountNameDpn,data.AccountName,'Account Number','Account Info');\\n\\t\\t\\n\\n\\t}\",\n \"function setupPageNavs () {\\n\\t\\t// For any nested list items, wrap the link text in a span so that we can put a border under the text on hover.\\n\\t\\t$mobilemenu.find(\\\".ibm-mobilemenu-section li li a\\\").wrapInner(\\\"\\\");\\n\\n\\t\\tIBM.common.util.a11y.makeTreeAccessible({\\n\\t\\t\\tel: $mobilemenu.find(\\\".ibm-mobilemenu-pagenav > ul\\\")\\n\\t\\t});\\n\\t}\",\n \"function navigate(nav, navArray){\\n for (var i = 0; i < navArray.length; i++) {\\n if (nav == navArray[i].nav) {\\n navArray[i].page.style.display = \\\"block\\\";\\n if (nav != document.getElementById('homenav')){\\n navArray[i].nav.style.backgroundColor = \\\"#FAA669\\\";\\n }\\n navArray[i].nav.style.cursor = \\\"default\\\";\\n } else {\\n if (!(navArray[i].page == account && (nav == signNav || nav == logNav)))\\n {\\n navArray[i].page.style.display = \\\"none\\\";\\n }\\n if (navArray[i].nav != document.getElementById('homenav')){\\n navArray[i].nav.style.backgroundColor = navArray[i].color;\\n }\\n navArray[i].nav.style.cursor = \\\"pointer\\\";\\n }\\n }\\n }\",\n \"function updateNavigationLinks()\\n {\\n if (currentSubunitIsTheFirstSubunit()) {\\n my.html.previousLink.style.visibility = 'hidden'\\n my.html.nextLink.style.visibility = 'visible'\\n } else if (currentSubunitIsTheLastSubunit()) {\\n my.html.previousLink.style.visibility = 'visible'\\n my.html.nextLink.style.visibility = 'hidden'\\n } else {\\n my.html.previousLink.style.visibility = 'visible'\\n my.html.nextLink.style.visibility = 'visible'\\n }\\n }\",\n \"function addClicked(){\\n\\trouter.goBack();\\n}\",\n \"mainNav() {}\",\n \"function BackToList() {\\r\\n // const jumpToAction = TabActions.jumpTo('List Page');\\r\\n // return navigation.dispatch(jumpToAction);\\r\\n navigation.navigate('List Page');\\r\\n }\",\n \"buscarPokemon(termino) {\\n console.log('capturo info de text - navbar.component.ts ', termino);\\n this.router.navigate(['/buscar', termino]);\\n }\",\n \"initialNavigation() {\\n this.setUpLocationChangeListener();\\n if (this.navigationId === 0) {\\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\\n }\\n }\",\n \"initialNavigation() {\\n this.setUpLocationChangeListener();\\n if (this.navigationId === 0) {\\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\\n }\\n }\",\n \"initialNavigation() {\\n this.setUpLocationChangeListener();\\n if (this.navigationId === 0) {\\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\\n }\\n }\",\n \"initialNavigation() {\\n this.setUpLocationChangeListener();\\n if (this.navigationId === 0) {\\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\\n }\\n }\",\n \"initialNavigation() {\\n this.setUpLocationChangeListener();\\n if (this.navigationId === 0) {\\n this.navigateByUrl(this.location.path(true), { replaceUrl: true });\\n }\\n }\",\n \"static goBack(navigation) {\\n navigation.goBack();\\n }\",\n \"function generateNav(callback){\\n\\t\\t\\tdocument.getElementById(\\\"terminal\\\").innerHTML = framework[\\\"terminal\\\"];\\n\\t\\t\\tdocument.getElementById(\\\"terminal-content\\\").innerHTML = framework[\\\"nav\\\"];\\n\\t\\t\\tcallback(current_tab);\\n\\t\\t}\",\n \"displaySearch() {\\n var route = {\\n scene: 2\\n }\\n this.props.navigator.push(route);\\n }\",\n \"navigateToRecordViewPage() {\\n this[NavigationMixin.Navigate]({\\n type:'standard__recordPage',\\n attributes :{\\n recordId:this.boatId,\\n objectApiName:'Boat__c',\\n actionName:'view'\\n }\\n });\\n }\",\n \"function goBack() {\\n\\t\\t\\t$state.go('^.detail', {id: vm.basket._id});\\n\\t\\t}\",\n \"function determineNavAction() {\\n if (options.jq.navContent.is(':hidden')) {\\n openNav();\\n } else {\\n closeNav();\\n }\\n }\",\n \"static goPage(params, page) {\\n const navigation = NavigationUtil.navigation;\\n /*children level router can't jump to parent level router*/\\n //const {navigation} = params;\\n if (!navigation) {\\n console.log('NavigationUtil.navigation can\\\\'t be null.')\\n }\\n navigation.navigate(\\n page,\\n {\\n ...params\\n }\\n );\\n }\",\n \"onClick() {\\n this.wizard.goToPreviousStep(this.preFinalize, this.postFinalize);\\n }\",\n \"function findNavigation() {\\n var navs = d.querySelectorAll('.' + proto.classes.nav);\\n for (var i = navs.length; i--;) {\\n new Navigation({ parent: navs[i] });\\n }\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.6448033","0.64108765","0.6338784","0.62081534","0.61156356","0.607189","0.60513556","0.59961957","0.59856904","0.5983315","0.5941946","0.5932606","0.58797026","0.5803799","0.5801197","0.57656354","0.57558286","0.57253456","0.5720218","0.5699523","0.5681147","0.5661803","0.565745","0.564335","0.5620135","0.56175447","0.5592534","0.5577401","0.5577401","0.5538913","0.55387014","0.55210173","0.5519797","0.55147326","0.5513057","0.5509067","0.5509067","0.5502191","0.54905","0.5472949","0.54670453","0.5461584","0.5447958","0.54382503","0.543644","0.54343826","0.5424236","0.5422898","0.54155624","0.5415106","0.54051334","0.5402741","0.54015034","0.5399321","0.5395034","0.53897893","0.53864145","0.5385417","0.53821266","0.5371045","0.53512996","0.53486395","0.5342241","0.5338545","0.53380454","0.53366816","0.5331851","0.53313154","0.5312887","0.5308676","0.5305513","0.530104","0.5298998","0.5298998","0.5295203","0.5292176","0.52843934","0.5273832","0.52690685","0.5268966","0.52663016","0.5262736","0.52518797","0.52478737","0.5243739","0.5241068","0.5240207","0.52341044","0.52341044","0.52341044","0.52341044","0.52341044","0.52335006","0.523267","0.5228469","0.52275836","0.52256495","0.52254367","0.5225143","0.52230173","0.5222414"],"string":"[\n \"0.6448033\",\n \"0.64108765\",\n \"0.6338784\",\n \"0.62081534\",\n \"0.61156356\",\n \"0.607189\",\n \"0.60513556\",\n \"0.59961957\",\n \"0.59856904\",\n \"0.5983315\",\n \"0.5941946\",\n \"0.5932606\",\n \"0.58797026\",\n \"0.5803799\",\n \"0.5801197\",\n \"0.57656354\",\n \"0.57558286\",\n \"0.57253456\",\n \"0.5720218\",\n \"0.5699523\",\n \"0.5681147\",\n \"0.5661803\",\n \"0.565745\",\n \"0.564335\",\n \"0.5620135\",\n \"0.56175447\",\n \"0.5592534\",\n \"0.5577401\",\n \"0.5577401\",\n \"0.5538913\",\n \"0.55387014\",\n \"0.55210173\",\n \"0.5519797\",\n \"0.55147326\",\n \"0.5513057\",\n \"0.5509067\",\n \"0.5509067\",\n \"0.5502191\",\n \"0.54905\",\n \"0.5472949\",\n \"0.54670453\",\n \"0.5461584\",\n \"0.5447958\",\n \"0.54382503\",\n \"0.543644\",\n \"0.54343826\",\n \"0.5424236\",\n \"0.5422898\",\n \"0.54155624\",\n \"0.5415106\",\n \"0.54051334\",\n \"0.5402741\",\n \"0.54015034\",\n \"0.5399321\",\n \"0.5395034\",\n \"0.53897893\",\n \"0.53864145\",\n \"0.5385417\",\n \"0.53821266\",\n \"0.5371045\",\n \"0.53512996\",\n \"0.53486395\",\n \"0.5342241\",\n \"0.5338545\",\n \"0.53380454\",\n \"0.53366816\",\n \"0.5331851\",\n \"0.53313154\",\n \"0.5312887\",\n \"0.5308676\",\n \"0.5305513\",\n \"0.530104\",\n \"0.5298998\",\n \"0.5298998\",\n \"0.5295203\",\n \"0.5292176\",\n \"0.52843934\",\n \"0.5273832\",\n \"0.52690685\",\n \"0.5268966\",\n \"0.52663016\",\n \"0.5262736\",\n \"0.52518797\",\n \"0.52478737\",\n \"0.5243739\",\n \"0.5241068\",\n \"0.5240207\",\n \"0.52341044\",\n \"0.52341044\",\n \"0.52341044\",\n \"0.52341044\",\n \"0.52341044\",\n \"0.52335006\",\n \"0.523267\",\n \"0.5228469\",\n \"0.52275836\",\n \"0.52256495\",\n \"0.52254367\",\n \"0.5225143\",\n \"0.52230173\",\n \"0.5222414\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":225,"cells":{"query":{"kind":"string","value":"Navigational, leads to neume variation form."},"document":{"kind":"string","value":"function toNeumeVariationForm(){\n \n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function applyCurrentNeumeVariation(){\n currentNeumeVariationIndex = document.getElementById(\"neumevariation\").value;\n document.getElementById(\"input\").innerHTML = neumeDataChangeForm();\n}","function displayVariation(varObj) {\r\n}\t// end of displayVariation","function applyCurrentNeumeInVariation(){\n currentNeumeInVariationIndex = document.getElementById(\"neumeinvariation\").value;\n document.getElementById(\"input\").innerHTML = neumeDataChangeForm();\n}","function toNeumeFromVariations(){\n pushedVariations = false;\n variations = new Array();\n \n document.getElementById(\"input\").innerHTML = neumeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function toNeumeFromNeumeVariations(){\n pushedNeumeVariations = false;\n neumeVariations = new Array();\n \n isNeumeVariant = false;\n \n document.getElementById(\"input\").innerHTML = neumeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","function show_variation( variation ) {\n var img = $('div.images img:eq(0)');\n var link = $('div.images a.zoom:eq(0)');\n var o_src = $(img).attr('original-src');\n var o_link = $(link).attr('original-href');\n\n var variation_image = variation.image_src;\n var variation_link = variation.image_link;\n var var_display;\n\n if ( variation.same_prices ) var_display = variation.availability_html;\n else var_display = variation.price_html + variation.availability_html;\n\n $('.single_variation').html( var_display );\n\n if ( ! o_src ) {\n $(img).attr('original-src', $(img).attr('src'));\n }\n\n if ( ! o_link ) {\n $(link).attr('original-href', $(link).attr('href'));\n }\n\n if ( variation_image && variation_image.length > 1 ) {\n $(img).attr('src', variation_image);\n $(link).attr('href', variation_link);\n } else {\n $(img).attr('src', o_src);\n $(link).attr('href', o_link);\n }\n\n $('.product_meta .sku').remove();\n $('.product_meta').append(variation.sku);\n\n $('.shop_attributes').find('.weight').remove();\n if ( variation.a_weight ) {\n $('.shop_attributes').append(variation.a_weight);\n }\n\n $('.shop_attributes').find('.length').remove();\n if ( variation.a_length ) {\n $('.shop_attributes').append(variation.a_length);\n }\n\n $('.shop_attributes').find('.width').remove();\n if ( variation.a_width ) {\n $('.shop_attributes').append(variation.a_width);\n }\n\n $('.shop_attributes').find('.height').remove();\n if ( variation.a_height ) {\n $('.shop_attributes').append(variation.a_height);\n }\n\n if ( ! variation.in_stock ) {\n $('.single_variation').slideDown();\n } else {\n $('.variations_button, .single_variation').slideDown();\n }\n }","set_variant_segment(field, normal_segment) {\n\n let graph = this.g.set_graph();\n\n let a_variant = this.db_anatomy_data[field]\n if (a_variant == 'undefined' || a_variant == null) {\n let default_variant = normal_segment;\n let d_node = graph.getNodeAttributes(default_variant);\n return d_node;\n }\n\n if (this.db_lesion_data.length !== 0 &&\n this.db_lesion_data.length !== null\n ) {\n\n for (let i = 0; i < this.db_lesion_data.length; i++) {\n let d_i = this.db_lesion_data[i];\n let a_node = graph.getNodeAttributes(a_variant);\n return a_node;\n } //for lesion_data\n }\n }","function drawNeueAmeise() {\n let a = new Sem.Ameise();\n Sem.ant.push(a);\n let h = new Sem.AmeiseRot();\n Sem.antRed.push(h);\n let b = new Sem.AmeiseBrown();\n Sem.antBrown.push(b);\n n++;\n }","function deleteNeumeInVariant(){\n currentSyllable.neumes[currentNeumeIndex][currentNeumeVariationIndex].additionalNeumes.splice(currentNeumeInVariationIndex, 1);\n \n currentNeumeInVariationIndex = 0;\n \n document.getElementById(\"input\").innerHTML = neumeDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","get Directionality() {}","setSelectedViewedItemVariation(state, variation) {\n state.selectedViewedItemVariation = variation;\n }","function toVariant(){\n document.getElementById(\"input\").innerHTML = variationForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","get defaultVariation() {\n // We don't have to check invalid itemData because we've filtered them out when initialize.\n return this.catalogItemObj.itemData.variations[0];\n }","function napVector (vectorChoice) {\n\t location.href = document.nap.vector.options[document.nap.vector.selectedIndex].value;\n\t }","function createAdditionalVariation(){\n \n variations = new Array();\n \n for(i = 0; i < sources.length; i++){\n var variation = new Variation(sources[i].id);\n variations.push(variation);\n }\n \n currentNeume.pitches.splice(currentPitchIndex, 0, variations);\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n createSVGOutput();\n}","function pesticides(){\n a_FAO_i='pesticides';\n initializing_change();\n change();\n}","function visVare(snap) {\n const key = snap.key;\n const vare = snap.val();\n\n let index = 4; // Tilfeldig farge er teit - Math.floor(Math.random() * 5);\n let rabatt = 1 - (Math.floor(Math.random() * 15) / 20);\n let orginalPris = `${vare.Pris}`\n let prisDecider = `${vare.Pris}` * rabatt;\n let pris = Math.round(prisDecider);\n\n\n if (orginalPris == pris) {\n pris *= 0.9;\n }\n\n\n display.innerHTML += `\n
        \n

        ${vare.Navn}

        \n \n

        Før ${orginalPris},-

        \n

        ${pris},-

        \n Se mer\n
        \n `;\n}","function setDominance(Dominance)\n{\n //reset all new dominance is set incase of back!!\n reset();\n\n meDominance=Dominance;\n fillDiffuseTableArray();\n FillSegmentVisualizedArray();\n\n if (meDominance=='left')\n {\n\t//setFrameUrl('left','selectedleft.htm');\n\tsetHeaderText('dominance','Dominance: left');\n }\n if (meDominance=='right')\n {\n\t//setFrameUrl('left','selectedright.htm');\n\tsetHeaderText('dominance','Dominance: right');\n }\n\n // //setFrameUrl('right','nroflesions.htm');\n setNrOfLesionsToOne();\n //setFrameUrl('right','lesion_segments.htm');\n}","participating() {\n const allocateVariant = () => {\n const randomVariant = this.options.random();\n let cumerlativeWeight = 0;\n\n for(let variant of this.variants) {\n cumerlativeWeight += variant.options.weight;\n if(cumerlativeWeight >= randomVariant) {\n return variant;\n }\n }\n\n return { id: 'no-chosen-variant' };\n };\n\n const allocatedVariant = allocateVariant();\n this.setVariant(allocatedVariant);\n }","function o$8(o,d){0===d.normalType&&(o.attributes.add(\"normal\",\"vec3\"),o.vertex.code.add(t$i`vec3 normalModel() {\nreturn normal;\n}`)),1===d.normalType&&(o.include(o$9),o.attributes.add(\"normalCompressed\",\"vec2\"),o.vertex.code.add(t$i`vec3 normalModel() {\nreturn decodeNormal(normalCompressed);\n}`)),3===d.normalType&&(o.extensions.add(\"GL_OES_standard_derivatives\"),o.fragment.code.add(t$i`vec3 screenDerivativeNormal(vec3 positionView) {\nreturn normalize(cross(dFdx(positionView), dFdy(positionView)));\n}`));}","link() {\n this._variable = this._sbolDocument.lookupURI(this._variable);\n this._variantDerivations = this._sbolDocument.lookupURIs(this._variantDerivations);\n this._variantCollections = this._sbolDocument.lookupURIs(this._variantCollections);\n this._variants = this._sbolDocument.lookupURIs(this._variants);\n }","function fertilizers_nutrient(){\n a_FAO_i='fertilizers_nutrient';\n initializing_change();\n change();\n}","function createNeumeVariationWithPitches(){\n var sourceID = document.getElementById(\"source\").value;\n var type = document.getElementById(\"type\").value;\n \n if(isClimacus){\n maxPitches = document.getElementById(\"numberofpitches\").value;\n }\n \n currentNeume = new Neume();\n currentNeume.type = type;\n \n var i;\n \n if(neumeVariations.length < 1){\n for(i = 0; i < sources.length; i++){\n var neumeVariation = new NeumeVariation(sources[i].id);\n neumeVariations.push(neumeVariation);\n }\n }\n \n for(i = 0; i < neumeVariations.length; i++){\n if(neumeVariations[i].sourceID == sourceID){\n neumeVariations[i].additionalNeumes.push(currentNeume);\n break;\n }\n }\n \n if(!pushedNeumeVariations){\n currentSyllable.neumes.push(neumeVariations);\n pushedNeumeVariations = true;\n }\n else{\n currentSyllable.neumes.pop();\n currentSyllable.neumes.push(neumeVariations);\n }\n \n isNeumeVariant = true;\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = pitchForm();\n createSVGOutput();\n}","get defaultVariationId() {\n return this.defaultVariation.id;\n }","function fertilizers_nutrient_agricultural_use(){\n a_FAO_i='fertilizers_nutrient_agricultural_use';\n initializing_change();\n change();\n}","randomNaves() {\n return Math.floor(Math.random() * this.poscionNaves.length) + 0;\n }","function go_articulos() {\n $state.go('complex_articles.list');\n }","set Directionality(value) {}","function abrePredio(sigla) {\n history.push(`/apartamentos-predio/${sigla}`)\n }","function getRandomPageVariant() {\n // Get random index of variants array \n const randomVariant = Math.round(Math.random())\n\n // Page url\n return randomVariant\n}","function gotoVictoryVan(event) {\n\taddNavActionJS(\"initial victory van\", \"\");\n\tswitchTo('victoryVanStart');\n}","function Interpreter_AddVariation(theObject, eProp, strValue)\n{\n\t//get this object's variations map\n\tvar objectMap = this.Variations[theObject.DataObject.Id];\n\t//no map?\n\tif (!objectMap)\n\t{\n\t\t//create a new one\n\t\tobjectMap = {};\n\t\t//set it\n\t\tthis.Variations[theObject.DataObject.Id] = objectMap;\n\t}\n\n\t//some variations need to be forced as the user could have manually changed the value\n\tvar bForceVariation = false;\n\t//check the class\n\tswitch (theObject.DataObject.Class)\n\t{\n\t\tcase __NEMESIS_CLASS_EDIT:\n\t\tcase __NEMESIS_CLASS_COMBO_BOX:\n\t\t\t//these are easilly changed by the user, check the property\n\t\t\tswitch (eProp)\n\t\t\t{\n\t\t\t\tcase __NEMESIS_PROPERTY_CAPTION:\n\t\t\t\t\t//force these\n\t\t\t\t\tbForceVariation = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbreak;\n\t}\n\n\t//get this variation\n\tvar variation = objectMap[eProp];\n\t//first time? or its a new value\n\tif (!variation || variation.Variation != strValue || bForceVariation)\n\t{\n\t\t//create a new variation\n\t\tvariation = { Original: theObject.DataObject.Properties[eProp], Variation: strValue, State: __INTERPRETER_VARIATION_NEW };\n\t\t//set the variation\n\t\tobjectMap[eProp] = variation;\n\t}\n\t//so we have a variation with the same value\n\telse\n\t{\n\t\t//check the state\n\t\tswitch (variation.State)\n\t\t{\n\t\t\tcase __INTERPRETER_VARIATION_DELETE:\n\t\t\t\t//dont delete this one, keep it\n\t\t\t\tvariation.State = __INTERPRETER_VARIATION_KEEP;\n\t\t\t\tbreak;\n\t\t}\n\t}\n}","function toSyllableFromNeumeVariations(){\n pushedNeumeVariations = false;\n neumeVariations = new Array();\n \n isNeumeVariant = false;\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","activateVariation(x) {\n return (x + this.maxVariancePerPeriod - 1) / (2 * this.maxVariancePerPeriod);\n }","activateVariation(x) {\n return (x + this.maxVariancePerPeriod - 1) / (2 * this.maxVariancePerPeriod);\n }","genereazaVariabilaLognormala() {\n\t\t\t// Calculam media miu si dispersia sigma\n\t\t\tlet mu = this.calculeazaMediaMiu(this.getM, this.getS);\n\t\t\tlet sigma = this.calculeazaDispersiaSigmaPatrat(this.getM, this.getS);\n\t\t\t// Generam Z cu distributia normala N(0,1)\n\t\t\tlet Z = Normal.genereazaVariabilaNormala01();\n\t\t\t// Calculam X (sigma = sqrt(sigma patrat))\n\t\t\tlet X = mu + (Z * Math.sqrt(sigma));\n\t\t\t// Calculam si intoarcem pe Y cu distributia lognormala (miu, sigma)\n\t\t\treturn ( Math.pow(Math.E, X) );\n\t\t}","Navigate(string, Variant, Variant, Variant, Variant) {\n\n }","function decorationVariation(num) {\n \n $('#dnadecoration').html(num)\n \n switch (num) {\n case 1:\n $('#decorationName').html('Basic')\n normaldecoration()\n break\n case 2:\n normaldecoration()\n $('#decorationName').html('Messy')\n fringeType2()\n break\n case 3:\n normaldecoration()\n $('#decorationName').html('Crown')\n fringeType3()\n break\n case 4:\n normaldecoration()\n $('#decorationName').html('Gelly')\n fringeType4()\n break\n case 5:\n normaldecoration()\n $('#decorationName').html('Floppy')\n fringeType5()\n break\n case 6:\n normaldecoration()\n $('#decorationName').html('Funky')\n fringeType6()\n break\n case 7:\n normaldecoration()\n $('#decorationName').html('Funky Long')\n fringeType7()\n break\n case 8:\n normaldecoration()\n $('#decorationName').html('To The Side')\n fringeType8()\n break\n case 9:\n normaldecoration()\n $('#decorationName').html('To The Side Floppy')\n fringeType9()\n break\n \n }\n}","function displayLiquid() {\n displayConsistency(liquid);\n }","function visSingleView() {\n console.log(\"visSingleView\");\n //add history.back();\n //Konstant der bestemmer window.location.search\n //Konstant der definerer en unik egenskab (her fx. navn).\n //Konstant der definerer URL til json\n //Andre lokale variabler\n //opret en klon med alle info fra json og sæt ind på siden vha textContent, link til billede + alt.\n}","function forestry_production(){\n a_FAO_i='forestry_production';\n initializing_change();\n change();\n}","function LV(i) {\n if (i <= 1) {\n return 0;\n }\n return THETA * (i - 1) * (S + i - 1);\n}","function toggleRepr3Dview(elt) {\n document.getElementById(\"view3DIfram\").contentDocument.getElementById(\"Reprbtn\").click();\n \n track_representation = ( track_representation + 1 ) % 3;\n switch( track_representation ) {\n case 0:\n elt.innerHTML=\"Show Wireframe\";\n break;\n case 1:\n elt.innerHTML=\"Show Wireframe & Surface\";\n break;\n case 2:\n elt.innerHTML=\"Show Surface\";\n break;\n }\n}","determinant() {\n return (\n this.a00*this.adj(0, 0)\n +this.a01*this.adj(0, 1)\n +this.a02*this.adj(0, 2)\n +this.a03*this.adj(0, 3)\n );\n }","function createNeumeVariation(){\n var sourceID = document.getElementById(\"source\").value;\n var type = document.getElementById(\"type\").value;\n \n if(isClimacus){\n maxPitches = document.getElementById(\"numberofpitches\").value;\n }\n \n currentSID = sourceID;\n \n currentNeume = new Neume();\n currentNeume.type = type;\n \n if(type == \"virga\" || type == \"punctum\"){\n var p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"pes\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"clivis\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"torculus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"porrectus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"climacus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n if(maxPitches == 4){\n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n \n if(maxPitches == 5){\n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n }\n else if(currentNeume.type == \"scandicus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n }\n \n var i;\n \n if(neumeVariations.length < 1){\n for(i = 0; i < sources.length; i++){\n var neumeVariation = new NeumeVariation(sources[i].id);\n neumeVariations.push(neumeVariation);\n }\n }\n \n for(i = 0; i < neumeVariations.length; i++){\n if(neumeVariations[i].sourceID == sourceID){\n neumeVariations[i].additionalNeumes.push(currentNeume);\n break;\n }\n }\n \n if(!pushedNeumeVariations){\n currentSyllable.neumes.push(neumeVariations);\n pushedNeumeVariations = true;\n }\n else{\n currentSyllable.neumes.pop();\n currentSyllable.neumes.push(neumeVariations);\n }\n \n isNeumeVariant = true;\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n createSVGOutput();\n}","function SPVTL(a, state) {\n var stack = state.stack;\n var p2i = stack.pop();\n var p1i = stack.pop();\n var p2 = state.z2[p2i];\n var p1 = state.z1[p1i];\n\n if (exports.DEBUG) {\n console.log('SPVTL[' + a + ']', p2i, p1i);\n }\n\n var dx;\n var dy;\n\n if (!a) {\n dx = p1.x - p2.x;\n dy = p1.y - p2.y;\n } else {\n dx = p2.y - p1.y;\n dy = p1.x - p2.x;\n }\n\n state.pv = state.dpv = getUnitVector(dx, dy);\n }","function inverse()\n {\n current_input = 1 / current_input\n displayCurrentInput();\n }","function tourDeMot(){\n\tif(qual1Accept){\n\t\ttourDeLettres(document.getElementById('qual1'),0);\n\t}\n\tif(qual2Accept){\n\t\ttourDeLettres(document.getElementById('qual2'),1);\n\t}\n\tif(qual3Accept){\n\t\ttourDeLettres(document.getElementById('qual3'),2);\n\t}\n\tif(qual4Accept){\n\t\ttourDeLettres(document.getElementById('qual4'),3);\n\t}\n\tif(qual5Accept){\n\t\ttourDeLettres(document.getElementById('qual5'),4);\n\t}\n}","function fasesTorneo() {\n vm.paso = 3;\n obtenerFases();\n obtenerTiposDeFase();\n obtenerPenalizaciones();\n }","get Normal() {}","function getVNdPV(){\r\n\t\tlet verb1\t= Words.randomWord(VERBPREF)\r\n\t\tlet noun\t= Words.randomWord(verb1.prefferedNext)\r\n\t\tlet verb2\t= getRandomVerbpref(verb1.prefferedNext)\r\n\t\treturn randomOf(\r\n\t\t\t[verb1, noun, 'dat', w(PRON), verb2],\r\n\t\t\t[verb1, getPreadj(), noun, 'dat', w(PRON), verb2]\r\n\t\t)\r\n\t}","function Guarda_Clics_AFN_Menos()\r\n{\r\n\tGuarda_Clics(4,0);\r\n}","function removersom(){\n som.volume=0;\n}","function NeurolaxTerm(){}","function displayNei(){\n activaTab(\"boxdashboard-body-nei-generic\");\n }","function decisionVanish2(data, pos) {\n vanish2(data, pos);\n}","function toSyllableFromVariations(){\n pushedVariations = false;\n variations = new Array();\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function initialisationOfVariables(scope) {\n\tdocument.getElementById(\"site-sidenav\").style.display=\"block\";\n\ttab_label=\"conjugate\";\n\tselectedIndex=1;\n\tborder_style_black=\"1px solid black\";\n\tborder_style_red=\"1px solid red\";\t\n\trandum_selected_img = 12;\n\tgetChild();\n}","function newFieldNeuralStructure(){\n var structureField = select('#neural-structure-field-value');\n var bias = select('#checkbox-1');\n\n var text = structureField.value();\n numbers = textToNumbers(text);\n\n if(numbers.length>=2){ //Minimum les entrées et sorties\n displayNewNetwork(numbers, bias.checked());\n }else console.log(\"! : il faut minimum 2 chiffres (>0)\");\n}","function SPVTL(a, state) {\n const stack = state.stack;\n const p2i = stack.pop();\n const p1i = stack.pop();\n const p2 = state.z2[p2i];\n const p1 = state.z1[p1i];\n\n if (exports.DEBUG) console.log('SPVTL[' + a + ']', p2i, p1i);\n\n let dx;\n let dy;\n\n if (!a) {\n dx = p1.x - p2.x;\n dy = p1.y - p2.y;\n } else {\n dx = p2.y - p1.y;\n dy = p1.x - p2.x;\n }\n\n state.pv = state.dpv = getUnitVector(dx, dy);\n}","function verifGg() {\r\n verifColonne();\r\n verifLigne();\r\n verifDiagonaleSlach();\r\n verifDiagonaleBackSlash();\r\n basculeJoueur();\r\n}","function visVare(snap) {\n const key = snap.key;\n const vare = snap.val();\n\n let index = 4;\n\n let pris = `${vare.Pris}`\n\n allDisplay.innerHTML += `\n
        \n

        ${vare.Navn}

        \n \n

        ${pris},-

        \n Se mer\n
        \n `;\n}","function fl_outToLevivot ()\n\t\t{if(freez==\"false\"){\n\t\t\tconsole.log(\"hit\")\n\t\t\tthis.rimon.alpha=1\n\t\t\tthis.sufgania.alpha=1\n\t\t\tthis.selek.alpha=1\n\t\t\tthis.tamar.alpha=1\n\t\t\tthis.karpas.alpha=1\n\t\t\tthis.haroset.alpha=1\n\t\t\tthis.maza.alpha=1\n\t\t\tthis.hasa.alpha=1\n\t\t\tthis.beiza.alpha=1\n\t\t\tthis.hazeret.alpha=1\n\t\t\tthis.mamtak.alpha=1\n\t\t\tthis.gvina.alpha=1\n\t\t\tthis.oznei_aman.alpha=1\n\t\t\tthis.dvash.alpha=1\n\t\t\tthis.dag.alpha=1\n\t\t\tthis.sumsum.alpha=1\n\t\t\tthis.perot.alpha=1\n\t\t\tthis.mishloah.alpha=1\n\t\t\tthis.of.alpha=1\n\t\t this.tu_btn.alpha=1\n\t\t this.purim_btn.alpha=1\n\t\t this.pesach_btn.alpha=1\n\t\t this.shavuot_btn.alpha=1\n\t\t this.rosh_ha_shana_btn.alpha=1\n\t\t this.modern_btn.alpha=1\n\t\t\t\t\t this.arrow_btn.alpha=0\n\t\tthis.arrowAside_mc.alpha=0\n\t\tthis.gvina_explain.alpha=0\n\t\tthis.mishloah_explain.alpha=0\n\t\tthis.sufgania_explain.alpha=0\n\t\tthis.perot_explain.alpha=0\n\t\tthis.tapuah_explain.alpha=0\n\t\tthis.maza_explain.alpha=0\n\t\t\n\t\t}}","function verTax () {\n\t\t\tif (product.tax == 1){\n\t\t\t\t$scope.vistaTax = 'Iva Incluido';\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$scope.vistaTax = product.tax;\n\t\t\t}\n\t\t}","calcNUV() {\n this.N = this.viewingPoint.subtract(this.position).unit();\n this.U = this.N.crossProduct(this.UP).unit();\n this.V = this.U.crossProduct(this.N);\n }","function chgGarden(tgt, btn) {\n \n //if sun or soil \"drop down\" choice is clicked\n if ([\"ulSun\", \"ulSoil\"].some(className => btn.classList.contains(className))) {\n //update the \"drop UL button\" text with the value chosen + arrow\n btn.textContent = tgt.innerText + \" \" + btn.textContent.split(\" \")[1]\n\n //call the update of the garden's colors\n sunSoilChoice(btn.parentElement);\n\n //call the update of the local storage with sun & soil choices\n updateLocalStorage(\n btn.parentElement.id,\n btn.classList.contains(\"ulSun\")?\"sun\":\"soil\", \n tgt.textContent);\n }\n \n //if one of tools choices is clicked\n else if (tgt.textContent === \"Duplicate this garden\") {\n //the yOffset is needed for the vertical offset of duplicate garden and its plants\n const yOffset = gnH+munit * 2;\n //clone the garden\n let dupGardenId = addGarden(\n {gId:null, \n x:gnX,\n y:gnY + yOffset,\n w:gnW,\n h:gnH,\n nm:gnNM + \" copy\",\n sn:btn.parentElement.getElementsByClassName(\"ulSun\")[0].textContent.split(\" \")[0],\n sl:btn.parentElement.getElementsByClassName(\"ulSoil\")[0].textContent.split(\" \")[0]\n });\n //if there are any plants in the garden, clone them too\n let len = btn.parentElement.getElementsByTagName(\"g\").length;\n if (len) {\n for (let i = 0; i < len; i++) {\n let dupPlantSpecs = localStorage.getItem(\n \"aas_myGardenVs_plnt\" + \n btn.parentElement.getElementsByTagName(\"g\")[i].id.split(\"_\")[1])\n .split(\",\");\n addPlant ({\n pId:null, \n x:Number(dupPlantSpecs[0]),\n y:Number(dupPlantSpecs[1]) + yOffset ,\n w:Number(dupPlantSpecs[2]),\n h:Number(dupPlantSpecs[3]),\n nm:dupPlantSpecs[4],\n gId:dupGardenId,\n lnm:dupPlantSpecs[6], //plant's latin name\n shp:dupPlantSpecs[7], //shape\n clr:dupPlantSpecs[8], //color\n blm:dupPlantSpecs[9] //bloom months\n })\n }\n }\n }\n \n //place \"plants in garden\", \"companions\", \"sun/soil\" plants container next to the clicked garden \n else if (tgt.textContent.slice(0,4) === \"Pull\") {\n let flt = null, tp = null, f_plntLN = null, f_plntCN = null;\n switch (tgt.textContent.slice(0,15)) {\n case \"Pull plants bas\":\n flt = [btn.parentElement.getElementsByClassName(\"ulSun\")[0].textContent.split(\" \")[0].toLowerCase(),\n btn.parentElement.getElementsByClassName(\"ulSoil\")[0].textContent.split(\" \")[0].toLowerCase()],\n tp = \"sunSoil\";\n break;\n case \"Pull plants for\":\n flt = btn.parentElement.getElementsByClassName(\"editable\")[0].children[0].value.toLowerCase();\n tp = \"gName\";\n break;\n case \"Pull companions\":\n f_plntLN = btn.parentElement.getElementsByTagName(\"g\")[0].children[0].getAttribute(\"desc\"),\n f_plntCN = tgt.innerText.replace(\"Pull companions for \", \"\").toLowerCase(),\n tp = \"companions\";\n break;\n }\n addPlantMenu({\n xPos: gnX + gnW + xOffset,\n yPos: gnY,\n type: tp,\n filter: flt,\n forPlantLN: f_plntLN,\n forPlantCN: f_plntCN,\n gId: btn.parentElement.id, \n gX: gnX,\n gY: gnY,\n gW: gnW,\n gH: gnH\n });\n } \n }","function l$5(l,e){0===e.normalType||1===e.normalType?(l.include(o$8,e),l.varyings.add(\"vNormalWorld\",\"vec3\"),l.varyings.add(\"vNormalView\",\"vec3\"),l.vertex.uniforms.add(\"uTransformNormal_GlobalFromModel\",\"mat3\"),l.vertex.uniforms.add(\"uTransformNormal_ViewFromGlobal\",\"mat3\"),l.vertex.code.add(t$i`void forwardNormal() {\nvNormalWorld = uTransformNormal_GlobalFromModel * normalModel();\nvNormalView = uTransformNormal_ViewFromGlobal * vNormalWorld;\n}`)):2===e.normalType?(l.include(d$2,e),l.varyings.add(\"vNormalWorld\",\"vec3\"),l.vertex.code.add(t$i`\n void forwardNormal() {\n vNormalWorld = ${1===e.viewingMode?t$i`normalize(vPositionWorldCameraRelative);`:t$i`vec3(0.0, 0.0, 1.0);`}\n }\n `)):l.vertex.code.add(t$i`void forwardNormal() {}`);}","function visualEaten()\n{\n\tdocument.getElementById(\"eaten_n\").innerHTML=\"\";\n\tdocument.getElementById(\"eaten_b\").innerHTML=\"\";\n\t//visualizza le pedine mangiate nere\n\tfor(var i=0;i v.binormal = [0, 0, 1]);\n\n v1.tangente = vec3.clone(tangenteLadoIzquierdo);\n v1.normal = vec3.clone(normalLadoIzquierdo);\n v2.tangente = vec3.clone(tangenteLadoIzquierdo);\n v2.normal = vec3.clone(normalLadoIzquierdo);\n\n v3.tangente = [1, 0, 0];\n v3.normal = [0, 1, 0];\n v4.tangente = [1, 0, 0];\n v4.normal = [0, 1, 0];\n\n v5.tangente = vec3.clone(tangenteLadoDerecho);\n v5.normal = vec3.clone(normalLadoDerecho);\n v6.tangente = vec3.clone(tangenteLadoDerecho);\n v6.normal = vec3.clone(normalLadoDerecho);\n\n v7.tangente = [-1, 0, 0];\n v7.normal = [0, -1, 0];\n v8.tangente = [-1, 0, 0];\n v8.normal = [0, -1, 0];\n\n this.centro.posicion = vec3.fromValues(0, 0, 0);\n this.centro.normal = vec3.fromValues(0, 0, 1);\n\n [v1, v2, v3, v4, v5, v6, v7, v8].forEach(v => {\n v.coordenadaTextura = ((v[1] + (altura / 2)) / altura) * this.cantRepeticionesTextura;\n this.vertices.push(v)\n });\n }","function Guarda_Clics_EPR_Menos()\r\n{\r\n\tGuarda_Clics(0,0);\r\n}","function intercambiar() {\n const aux = vaso1;\n vaso1 = vaso2;\n vaso2 = aux;\n}","function enteric_fermentation(){\n a_FAO_i='enteric_fermentation';\n initializing_change();\n change();\n}","set Normal(value) {}","function prevGraph() {\nif(graphIndex === 0) {\ngraphIndex = 4;\n} else {\ngraphIndex--;\n}\nswitchGraph();\nlocation.href = '#prev-button';\n}","getSide() { return 0; }","function getVardas3() {\n return vardas + \"3\";\n}","mostrarTarefas() {\n printPlanejamentoAtual(this.getPlanejamentoAtual());\n printListaTarefa(this.listaQuadros());\n }","function inverse() {\ncurrentInput = 1 / currentInput;\ndisplayCurrentInput();\n}","function Scene_DynamicShop() {\n\t\tthis.initialize.apply(this, arguments);\t\n\t}","niveauSuivant()\r\n\t{\r\n\t\tthis._termine = false;\r\n\t\tthis._gagne = false;\r\n\t\tthis._niveau++;\r\n\t\tthis.demarrerNiveau();\r\n\t}","get normal (){\n\t\treturn this.dir.perp(1);\t\t\t\n\t}","function go_articulos() {\n $state.go('articles.list');\n }","function land_use(){\n a_FAO_i='land_use';\n initializing_change();\n change();\n}","function menu_paquet(){\n\t\taction=prompt(\"F fin de tour | P piocher une carte\");\n\t\taction=action.toUpperCase();\n\t\tif (action != null){\n\t\t\tswitch(action){\n\t\t\t\tcase \"F\":\n\t\t\t\t\tif (att_me.length>0){\n\t\t\t\t\t\t//MAJ des cartes en INV_ATT1,2\n\t\t\t\t\t\tmajCartesEnAttaque();\n\t\t\t\t\t}\n\t\t\t\t\tif (pv_adv==0 || pv_me==0){\n\t\t\t\t\t\tif (pv_adv==0){\n\t\t\t\t\t\t\talert(\"Vous avez gagné !!!\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\talert(\"Vous avez perdu !!!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/////////////////////////////////Gérer la fin de partie ICI\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIA_jouer(IA_stategie_basic);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase \"P\":\n\t\t\t\t\tjeu_piocherDsPaquet(true);\t\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}","function IA_sacrifier(){\n\t\t // IA sacrifie la carte de plus haut cout d'invocation\n\t\t //SSI aucune carte vide\n\t\t \n\t\t no=rechercherIdxCarteAdvCoutMax()\n\t\t if (no>=0){\n\t\t\tlaCarte = jeu_adv[no];\n\t\t \tsacrifierUneCarte(no,laCarte,false,true);\n\t\t}\n\t }","function applyCurrentTypeVariation(){\n currentType = document.getElementById(\"type\").value;\n if(currentType == \"climacus\"){\n isClimacus = true;\n }\n else{\n isClimacus = false;\n }\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n}","function previousSubunit()\n {\n var m = my.current.unitNo\n var n = my.current.subunitNo\n\n if (!currentSubunitIsTheFirstSubunit()) {\n if (n == 1) {\n // If the user is at unit M.1, go to unit (M - 1).L\n // where L is the last subunit of the previous unit.\n previousUnit = unit(m - 1)\n var previousSubunitTitles = []\n for (var subunitTitle in previousUnit.subunits) {\n previousSubunitTitles.push(subunitTitle)\n }\n\n m--\n n = previousSubunitTitles.length\n } else {\n // If the user is at unit M.N, go to unit M.(N - 1)\n n--\n }\n }\n\n window.location.href = unitHref(m, n)\n }","function novelty_diversity(algorithmName){\n\tvar noveltyCheck = document.getElementsByName(\"noveltyCheck\")[0];\n\tvar diversityCheck = document.getElementsByName(\"diversityCheck\")[0];\n\tvar str = \"\";\n if(noveltyCheck.checked == true){\n \tstr += \"&novelty=true\";\n }\n else{\n \tstr += \"&novelty=false\";\n }\n if(diversityCheck.checked == true){\n \tstr += \"&diversity=true\";\n }\n else{\n \tstr += \"&diversity=false\";\n }\n \n // similarity name\n var simNameSelect = document.getElementsByName(\"simNameSelect\")[0];\n var simName = \"\";\n if(simNameSelect != null){\n \tsimName = simNameSelect.value;\n }\n var url = \"/NRS/IndexAction.do?method=ShowCompare&algorithmName=\" + algorithmName + str + \"&simName=\" + simName;\n window.location.href = url;\n}","function home() {\n if ( index != vCount ) {\n return;\n }\n // reset state variables\n theta = 0;\n trans = [0,0,0]; // issue \n mv = mat4();\n whereami();\n render(); \n}","function paralax() {\n $('.clouds ul li:nth-child(1)').plaxmove({ratioH: 0.01, ratioV: 0.05, reversed: true, invertH: false});\n $('.clouds ul li:nth-child(2)').plaxmove({ratioH: 0.01, ratioV: 0.05, reversed: false, invertH: false});\n $('.clouds ul li:nth-child(3)').plaxmove({ratioH: 0.03, ratioV: 0.09, invertV: true});\n $('.clouds ul li:nth-child(4)').plaxmove({ratioH: 0.06, ratioV: 0.15, reversed: false, invertH: false});\n\n }","function useVisualMode(initial) {\n const [mode, setMode] = useState(initial);\n const [history, setHistory] = useState([initial]);\n\n // Creates an array with the states' history\n const transition = (changeMode, replace = false) => {\n if (!replace) {\n setHistory(prev => [...prev, changeMode]);\n } else {\n setHistory(prev => {\n prev.pop();\n return [...prev, changeMode];\n });\n }\n setMode(changeMode);\n };\n\n const back = () => {\n setHistory(prev => {\n if (history.length > 1) {\n prev.pop();\n setMode(prev[prev.length - 1]);\n } else {\n setMode(initial);\n }\n return prev;\n });\n };\n\n return { mode, transition, back };\n}","function NextLesion()\n{\n if( meNumberOfLesions + 1 <= 12 ) {\n\tmeNumberOfLesions++;\n\tmeCurrentLesion = meNumberOfLesions-1;\n\n\t//setFrameUrl('left','empty.htm');\n\t//setFrameUrl('right','empty.htm');\n\n\tif( meDominance == 'left' ){\n\t //setFrameUrl('left','selectedleft.htm');\n\t} else {\n\t\t\n\t}\n\t //setFrameUrl('left','selectedright.htm');\n\n\t//setFrameUrl('right','lesion_segments.htm');\n\n\t// header update\n\tUpdateCurrentLesion();\n }\n else {\n\talert(\"Maximum number of lesions is 12\");\n\treturn;\n }\n}","function SPVTL(a, state) {\n var stack = state.stack;\n var p2i = stack.pop();\n var p1i = stack.pop();\n var p2 = state.z2[p2i];\n var p1 = state.z1[p1i];\n\n if (DEBUG) console.log('SPVTL[' + a + ']', p2i, p1i);\n\n var dx;\n var dy;\n\n if (!a) {\n dx = p1.x - p2.x;\n dy = p1.y - p2.y;\n } else {\n dx = p2.y - p1.y;\n dy = p1.x - p2.x;\n }\n\n state.pv = state.dpv = getUnitVector(dx, dy);\n}","function Vitals(bp, pr, rr, other){\n\n\tthis.bp = bp;\n\tthis.pr = pr;\n\tthis.rr = rr;\n\tthis.other = other;\n}","function o$9(o){const d=t$i`vec3 decodeNormal(vec2 f) {\nfloat z = 1.0 - abs(f.x) - abs(f.y);\nreturn vec3(f + sign(f) * min(z, 0.0), z);\n}`;o.fragment.code.add(d),o.vertex.code.add(d);}","function inverse() {\n current_input = 1 / current_input;\n displayCurrentInput();\n}"],"string":"[\n \"function applyCurrentNeumeVariation(){\\n currentNeumeVariationIndex = document.getElementById(\\\"neumevariation\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = neumeDataChangeForm();\\n}\",\n \"function displayVariation(varObj) {\\r\\n}\\t// end of displayVariation\",\n \"function applyCurrentNeumeInVariation(){\\n currentNeumeInVariationIndex = document.getElementById(\\\"neumeinvariation\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = neumeDataChangeForm();\\n}\",\n \"function toNeumeFromVariations(){\\n pushedVariations = false;\\n variations = new Array();\\n \\n document.getElementById(\\\"input\\\").innerHTML = neumeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function toNeumeFromNeumeVariations(){\\n pushedNeumeVariations = false;\\n neumeVariations = new Array();\\n \\n isNeumeVariant = false;\\n \\n document.getElementById(\\\"input\\\").innerHTML = neumeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"function show_variation( variation ) {\\n var img = $('div.images img:eq(0)');\\n var link = $('div.images a.zoom:eq(0)');\\n var o_src = $(img).attr('original-src');\\n var o_link = $(link).attr('original-href');\\n\\n var variation_image = variation.image_src;\\n var variation_link = variation.image_link;\\n var var_display;\\n\\n if ( variation.same_prices ) var_display = variation.availability_html;\\n else var_display = variation.price_html + variation.availability_html;\\n\\n $('.single_variation').html( var_display );\\n\\n if ( ! o_src ) {\\n $(img).attr('original-src', $(img).attr('src'));\\n }\\n\\n if ( ! o_link ) {\\n $(link).attr('original-href', $(link).attr('href'));\\n }\\n\\n if ( variation_image && variation_image.length > 1 ) {\\n $(img).attr('src', variation_image);\\n $(link).attr('href', variation_link);\\n } else {\\n $(img).attr('src', o_src);\\n $(link).attr('href', o_link);\\n }\\n\\n $('.product_meta .sku').remove();\\n $('.product_meta').append(variation.sku);\\n\\n $('.shop_attributes').find('.weight').remove();\\n if ( variation.a_weight ) {\\n $('.shop_attributes').append(variation.a_weight);\\n }\\n\\n $('.shop_attributes').find('.length').remove();\\n if ( variation.a_length ) {\\n $('.shop_attributes').append(variation.a_length);\\n }\\n\\n $('.shop_attributes').find('.width').remove();\\n if ( variation.a_width ) {\\n $('.shop_attributes').append(variation.a_width);\\n }\\n\\n $('.shop_attributes').find('.height').remove();\\n if ( variation.a_height ) {\\n $('.shop_attributes').append(variation.a_height);\\n }\\n\\n if ( ! variation.in_stock ) {\\n $('.single_variation').slideDown();\\n } else {\\n $('.variations_button, .single_variation').slideDown();\\n }\\n }\",\n \"set_variant_segment(field, normal_segment) {\\n\\n let graph = this.g.set_graph();\\n\\n let a_variant = this.db_anatomy_data[field]\\n if (a_variant == 'undefined' || a_variant == null) {\\n let default_variant = normal_segment;\\n let d_node = graph.getNodeAttributes(default_variant);\\n return d_node;\\n }\\n\\n if (this.db_lesion_data.length !== 0 &&\\n this.db_lesion_data.length !== null\\n ) {\\n\\n for (let i = 0; i < this.db_lesion_data.length; i++) {\\n let d_i = this.db_lesion_data[i];\\n let a_node = graph.getNodeAttributes(a_variant);\\n return a_node;\\n } //for lesion_data\\n }\\n }\",\n \"function drawNeueAmeise() {\\n let a = new Sem.Ameise();\\n Sem.ant.push(a);\\n let h = new Sem.AmeiseRot();\\n Sem.antRed.push(h);\\n let b = new Sem.AmeiseBrown();\\n Sem.antBrown.push(b);\\n n++;\\n }\",\n \"function deleteNeumeInVariant(){\\n currentSyllable.neumes[currentNeumeIndex][currentNeumeVariationIndex].additionalNeumes.splice(currentNeumeInVariationIndex, 1);\\n \\n currentNeumeInVariationIndex = 0;\\n \\n document.getElementById(\\\"input\\\").innerHTML = neumeDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"get Directionality() {}\",\n \"setSelectedViewedItemVariation(state, variation) {\\n state.selectedViewedItemVariation = variation;\\n }\",\n \"function toVariant(){\\n document.getElementById(\\\"input\\\").innerHTML = variationForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"get defaultVariation() {\\n // We don't have to check invalid itemData because we've filtered them out when initialize.\\n return this.catalogItemObj.itemData.variations[0];\\n }\",\n \"function napVector (vectorChoice) {\\n\\t location.href = document.nap.vector.options[document.nap.vector.selectedIndex].value;\\n\\t }\",\n \"function createAdditionalVariation(){\\n \\n variations = new Array();\\n \\n for(i = 0; i < sources.length; i++){\\n var variation = new Variation(sources[i].id);\\n variations.push(variation);\\n }\\n \\n currentNeume.pitches.splice(currentPitchIndex, 0, variations);\\n \\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n document.getElementById(\\\"input\\\").innerHTML = pitchDataChangeForm();\\n createSVGOutput();\\n}\",\n \"function pesticides(){\\n a_FAO_i='pesticides';\\n initializing_change();\\n change();\\n}\",\n \"function visVare(snap) {\\n const key = snap.key;\\n const vare = snap.val();\\n\\n let index = 4; // Tilfeldig farge er teit - Math.floor(Math.random() * 5);\\n let rabatt = 1 - (Math.floor(Math.random() * 15) / 20);\\n let orginalPris = `${vare.Pris}`\\n let prisDecider = `${vare.Pris}` * rabatt;\\n let pris = Math.round(prisDecider);\\n\\n\\n if (orginalPris == pris) {\\n pris *= 0.9;\\n }\\n\\n\\n display.innerHTML += `\\n
        \\n

        ${vare.Navn}

        \\n \\n

        Før ${orginalPris},-

        \\n

        ${pris},-

        \\n Se mer\\n
        \\n `;\\n}\",\n \"function setDominance(Dominance)\\n{\\n //reset all new dominance is set incase of back!!\\n reset();\\n\\n meDominance=Dominance;\\n fillDiffuseTableArray();\\n FillSegmentVisualizedArray();\\n\\n if (meDominance=='left')\\n {\\n\\t//setFrameUrl('left','selectedleft.htm');\\n\\tsetHeaderText('dominance','Dominance: left');\\n }\\n if (meDominance=='right')\\n {\\n\\t//setFrameUrl('left','selectedright.htm');\\n\\tsetHeaderText('dominance','Dominance: right');\\n }\\n\\n // //setFrameUrl('right','nroflesions.htm');\\n setNrOfLesionsToOne();\\n //setFrameUrl('right','lesion_segments.htm');\\n}\",\n \"participating() {\\n const allocateVariant = () => {\\n const randomVariant = this.options.random();\\n let cumerlativeWeight = 0;\\n\\n for(let variant of this.variants) {\\n cumerlativeWeight += variant.options.weight;\\n if(cumerlativeWeight >= randomVariant) {\\n return variant;\\n }\\n }\\n\\n return { id: 'no-chosen-variant' };\\n };\\n\\n const allocatedVariant = allocateVariant();\\n this.setVariant(allocatedVariant);\\n }\",\n \"function o$8(o,d){0===d.normalType&&(o.attributes.add(\\\"normal\\\",\\\"vec3\\\"),o.vertex.code.add(t$i`vec3 normalModel() {\\nreturn normal;\\n}`)),1===d.normalType&&(o.include(o$9),o.attributes.add(\\\"normalCompressed\\\",\\\"vec2\\\"),o.vertex.code.add(t$i`vec3 normalModel() {\\nreturn decodeNormal(normalCompressed);\\n}`)),3===d.normalType&&(o.extensions.add(\\\"GL_OES_standard_derivatives\\\"),o.fragment.code.add(t$i`vec3 screenDerivativeNormal(vec3 positionView) {\\nreturn normalize(cross(dFdx(positionView), dFdy(positionView)));\\n}`));}\",\n \"link() {\\n this._variable = this._sbolDocument.lookupURI(this._variable);\\n this._variantDerivations = this._sbolDocument.lookupURIs(this._variantDerivations);\\n this._variantCollections = this._sbolDocument.lookupURIs(this._variantCollections);\\n this._variants = this._sbolDocument.lookupURIs(this._variants);\\n }\",\n \"function fertilizers_nutrient(){\\n a_FAO_i='fertilizers_nutrient';\\n initializing_change();\\n change();\\n}\",\n \"function createNeumeVariationWithPitches(){\\n var sourceID = document.getElementById(\\\"source\\\").value;\\n var type = document.getElementById(\\\"type\\\").value;\\n \\n if(isClimacus){\\n maxPitches = document.getElementById(\\\"numberofpitches\\\").value;\\n }\\n \\n currentNeume = new Neume();\\n currentNeume.type = type;\\n \\n var i;\\n \\n if(neumeVariations.length < 1){\\n for(i = 0; i < sources.length; i++){\\n var neumeVariation = new NeumeVariation(sources[i].id);\\n neumeVariations.push(neumeVariation);\\n }\\n }\\n \\n for(i = 0; i < neumeVariations.length; i++){\\n if(neumeVariations[i].sourceID == sourceID){\\n neumeVariations[i].additionalNeumes.push(currentNeume);\\n break;\\n }\\n }\\n \\n if(!pushedNeumeVariations){\\n currentSyllable.neumes.push(neumeVariations);\\n pushedNeumeVariations = true;\\n }\\n else{\\n currentSyllable.neumes.pop();\\n currentSyllable.neumes.push(neumeVariations);\\n }\\n \\n isNeumeVariant = true;\\n \\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n document.getElementById(\\\"input\\\").innerHTML = pitchForm();\\n createSVGOutput();\\n}\",\n \"get defaultVariationId() {\\n return this.defaultVariation.id;\\n }\",\n \"function fertilizers_nutrient_agricultural_use(){\\n a_FAO_i='fertilizers_nutrient_agricultural_use';\\n initializing_change();\\n change();\\n}\",\n \"randomNaves() {\\n return Math.floor(Math.random() * this.poscionNaves.length) + 0;\\n }\",\n \"function go_articulos() {\\n $state.go('complex_articles.list');\\n }\",\n \"set Directionality(value) {}\",\n \"function abrePredio(sigla) {\\n history.push(`/apartamentos-predio/${sigla}`)\\n }\",\n \"function getRandomPageVariant() {\\n // Get random index of variants array \\n const randomVariant = Math.round(Math.random())\\n\\n // Page url\\n return randomVariant\\n}\",\n \"function gotoVictoryVan(event) {\\n\\taddNavActionJS(\\\"initial victory van\\\", \\\"\\\");\\n\\tswitchTo('victoryVanStart');\\n}\",\n \"function Interpreter_AddVariation(theObject, eProp, strValue)\\n{\\n\\t//get this object's variations map\\n\\tvar objectMap = this.Variations[theObject.DataObject.Id];\\n\\t//no map?\\n\\tif (!objectMap)\\n\\t{\\n\\t\\t//create a new one\\n\\t\\tobjectMap = {};\\n\\t\\t//set it\\n\\t\\tthis.Variations[theObject.DataObject.Id] = objectMap;\\n\\t}\\n\\n\\t//some variations need to be forced as the user could have manually changed the value\\n\\tvar bForceVariation = false;\\n\\t//check the class\\n\\tswitch (theObject.DataObject.Class)\\n\\t{\\n\\t\\tcase __NEMESIS_CLASS_EDIT:\\n\\t\\tcase __NEMESIS_CLASS_COMBO_BOX:\\n\\t\\t\\t//these are easilly changed by the user, check the property\\n\\t\\t\\tswitch (eProp)\\n\\t\\t\\t{\\n\\t\\t\\t\\tcase __NEMESIS_PROPERTY_CAPTION:\\n\\t\\t\\t\\t\\t//force these\\n\\t\\t\\t\\t\\tbForceVariation = true;\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\tbreak;\\n\\t}\\n\\n\\t//get this variation\\n\\tvar variation = objectMap[eProp];\\n\\t//first time? or its a new value\\n\\tif (!variation || variation.Variation != strValue || bForceVariation)\\n\\t{\\n\\t\\t//create a new variation\\n\\t\\tvariation = { Original: theObject.DataObject.Properties[eProp], Variation: strValue, State: __INTERPRETER_VARIATION_NEW };\\n\\t\\t//set the variation\\n\\t\\tobjectMap[eProp] = variation;\\n\\t}\\n\\t//so we have a variation with the same value\\n\\telse\\n\\t{\\n\\t\\t//check the state\\n\\t\\tswitch (variation.State)\\n\\t\\t{\\n\\t\\t\\tcase __INTERPRETER_VARIATION_DELETE:\\n\\t\\t\\t\\t//dont delete this one, keep it\\n\\t\\t\\t\\tvariation.State = __INTERPRETER_VARIATION_KEEP;\\n\\t\\t\\t\\tbreak;\\n\\t\\t}\\n\\t}\\n}\",\n \"function toSyllableFromNeumeVariations(){\\n pushedNeumeVariations = false;\\n neumeVariations = new Array();\\n \\n isNeumeVariant = false;\\n \\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"activateVariation(x) {\\n return (x + this.maxVariancePerPeriod - 1) / (2 * this.maxVariancePerPeriod);\\n }\",\n \"activateVariation(x) {\\n return (x + this.maxVariancePerPeriod - 1) / (2 * this.maxVariancePerPeriod);\\n }\",\n \"genereazaVariabilaLognormala() {\\n\\t\\t\\t// Calculam media miu si dispersia sigma\\n\\t\\t\\tlet mu = this.calculeazaMediaMiu(this.getM, this.getS);\\n\\t\\t\\tlet sigma = this.calculeazaDispersiaSigmaPatrat(this.getM, this.getS);\\n\\t\\t\\t// Generam Z cu distributia normala N(0,1)\\n\\t\\t\\tlet Z = Normal.genereazaVariabilaNormala01();\\n\\t\\t\\t// Calculam X (sigma = sqrt(sigma patrat))\\n\\t\\t\\tlet X = mu + (Z * Math.sqrt(sigma));\\n\\t\\t\\t// Calculam si intoarcem pe Y cu distributia lognormala (miu, sigma)\\n\\t\\t\\treturn ( Math.pow(Math.E, X) );\\n\\t\\t}\",\n \"Navigate(string, Variant, Variant, Variant, Variant) {\\n\\n }\",\n \"function decorationVariation(num) {\\n \\n $('#dnadecoration').html(num)\\n \\n switch (num) {\\n case 1:\\n $('#decorationName').html('Basic')\\n normaldecoration()\\n break\\n case 2:\\n normaldecoration()\\n $('#decorationName').html('Messy')\\n fringeType2()\\n break\\n case 3:\\n normaldecoration()\\n $('#decorationName').html('Crown')\\n fringeType3()\\n break\\n case 4:\\n normaldecoration()\\n $('#decorationName').html('Gelly')\\n fringeType4()\\n break\\n case 5:\\n normaldecoration()\\n $('#decorationName').html('Floppy')\\n fringeType5()\\n break\\n case 6:\\n normaldecoration()\\n $('#decorationName').html('Funky')\\n fringeType6()\\n break\\n case 7:\\n normaldecoration()\\n $('#decorationName').html('Funky Long')\\n fringeType7()\\n break\\n case 8:\\n normaldecoration()\\n $('#decorationName').html('To The Side')\\n fringeType8()\\n break\\n case 9:\\n normaldecoration()\\n $('#decorationName').html('To The Side Floppy')\\n fringeType9()\\n break\\n \\n }\\n}\",\n \"function displayLiquid() {\\n displayConsistency(liquid);\\n }\",\n \"function visSingleView() {\\n console.log(\\\"visSingleView\\\");\\n //add history.back();\\n //Konstant der bestemmer window.location.search\\n //Konstant der definerer en unik egenskab (her fx. navn).\\n //Konstant der definerer URL til json\\n //Andre lokale variabler\\n //opret en klon med alle info fra json og sæt ind på siden vha textContent, link til billede + alt.\\n}\",\n \"function forestry_production(){\\n a_FAO_i='forestry_production';\\n initializing_change();\\n change();\\n}\",\n \"function LV(i) {\\n if (i <= 1) {\\n return 0;\\n }\\n return THETA * (i - 1) * (S + i - 1);\\n}\",\n \"function toggleRepr3Dview(elt) {\\n document.getElementById(\\\"view3DIfram\\\").contentDocument.getElementById(\\\"Reprbtn\\\").click();\\n \\n track_representation = ( track_representation + 1 ) % 3;\\n switch( track_representation ) {\\n case 0:\\n elt.innerHTML=\\\"Show Wireframe\\\";\\n break;\\n case 1:\\n elt.innerHTML=\\\"Show Wireframe & Surface\\\";\\n break;\\n case 2:\\n elt.innerHTML=\\\"Show Surface\\\";\\n break;\\n }\\n}\",\n \"determinant() {\\n return (\\n this.a00*this.adj(0, 0)\\n +this.a01*this.adj(0, 1)\\n +this.a02*this.adj(0, 2)\\n +this.a03*this.adj(0, 3)\\n );\\n }\",\n \"function createNeumeVariation(){\\n var sourceID = document.getElementById(\\\"source\\\").value;\\n var type = document.getElementById(\\\"type\\\").value;\\n \\n if(isClimacus){\\n maxPitches = document.getElementById(\\\"numberofpitches\\\").value;\\n }\\n \\n currentSID = sourceID;\\n \\n currentNeume = new Neume();\\n currentNeume.type = type;\\n \\n if(type == \\\"virga\\\" || type == \\\"punctum\\\"){\\n var p = new Pitch();\\n p.pitch = \\\"none\\\";\\n currentNeume.pitches.push(p);\\n }\\n else if(currentNeume.type == \\\"pes\\\"){\\n var p;\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"u\\\";\\n currentNeume.pitches.push(p);\\n }\\n else if(currentNeume.type == \\\"clivis\\\"){\\n var p;\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"d\\\";\\n currentNeume.pitches.push(p);\\n }\\n else if(currentNeume.type == \\\"torculus\\\"){\\n var p;\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"u\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"d\\\";\\n currentNeume.pitches.push(p);\\n }\\n else if(currentNeume.type == \\\"porrectus\\\"){\\n var p;\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"d\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"u\\\";\\n currentNeume.pitches.push(p);\\n }\\n else if(currentNeume.type == \\\"climacus\\\"){\\n var p;\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"d\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"d\\\";\\n currentNeume.pitches.push(p);\\n \\n if(maxPitches == 4){\\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"d\\\";\\n currentNeume.pitches.push(p);\\n }\\n \\n if(maxPitches == 5){\\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"d\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"d\\\";\\n currentNeume.pitches.push(p);\\n }\\n }\\n else if(currentNeume.type == \\\"scandicus\\\"){\\n var p;\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"u\\\";\\n currentNeume.pitches.push(p);\\n \\n p = new Pitch();\\n p.pitch = \\\"none\\\";\\n p.intm = \\\"u\\\";\\n currentNeume.pitches.push(p);\\n }\\n \\n var i;\\n \\n if(neumeVariations.length < 1){\\n for(i = 0; i < sources.length; i++){\\n var neumeVariation = new NeumeVariation(sources[i].id);\\n neumeVariations.push(neumeVariation);\\n }\\n }\\n \\n for(i = 0; i < neumeVariations.length; i++){\\n if(neumeVariations[i].sourceID == sourceID){\\n neumeVariations[i].additionalNeumes.push(currentNeume);\\n break;\\n }\\n }\\n \\n if(!pushedNeumeVariations){\\n currentSyllable.neumes.push(neumeVariations);\\n pushedNeumeVariations = true;\\n }\\n else{\\n currentSyllable.neumes.pop();\\n currentSyllable.neumes.push(neumeVariations);\\n }\\n \\n isNeumeVariant = true;\\n \\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n document.getElementById(\\\"input\\\").innerHTML = neumeVariationForm();\\n createSVGOutput();\\n}\",\n \"function SPVTL(a, state) {\\n var stack = state.stack;\\n var p2i = stack.pop();\\n var p1i = stack.pop();\\n var p2 = state.z2[p2i];\\n var p1 = state.z1[p1i];\\n\\n if (exports.DEBUG) {\\n console.log('SPVTL[' + a + ']', p2i, p1i);\\n }\\n\\n var dx;\\n var dy;\\n\\n if (!a) {\\n dx = p1.x - p2.x;\\n dy = p1.y - p2.y;\\n } else {\\n dx = p2.y - p1.y;\\n dy = p1.x - p2.x;\\n }\\n\\n state.pv = state.dpv = getUnitVector(dx, dy);\\n }\",\n \"function inverse()\\n {\\n current_input = 1 / current_input\\n displayCurrentInput();\\n }\",\n \"function tourDeMot(){\\n\\tif(qual1Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual1'),0);\\n\\t}\\n\\tif(qual2Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual2'),1);\\n\\t}\\n\\tif(qual3Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual3'),2);\\n\\t}\\n\\tif(qual4Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual4'),3);\\n\\t}\\n\\tif(qual5Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual5'),4);\\n\\t}\\n}\",\n \"function fasesTorneo() {\\n vm.paso = 3;\\n obtenerFases();\\n obtenerTiposDeFase();\\n obtenerPenalizaciones();\\n }\",\n \"get Normal() {}\",\n \"function getVNdPV(){\\r\\n\\t\\tlet verb1\\t= Words.randomWord(VERBPREF)\\r\\n\\t\\tlet noun\\t= Words.randomWord(verb1.prefferedNext)\\r\\n\\t\\tlet verb2\\t= getRandomVerbpref(verb1.prefferedNext)\\r\\n\\t\\treturn randomOf(\\r\\n\\t\\t\\t[verb1, noun, 'dat', w(PRON), verb2],\\r\\n\\t\\t\\t[verb1, getPreadj(), noun, 'dat', w(PRON), verb2]\\r\\n\\t\\t)\\r\\n\\t}\",\n \"function Guarda_Clics_AFN_Menos()\\r\\n{\\r\\n\\tGuarda_Clics(4,0);\\r\\n}\",\n \"function removersom(){\\n som.volume=0;\\n}\",\n \"function NeurolaxTerm(){}\",\n \"function displayNei(){\\n activaTab(\\\"boxdashboard-body-nei-generic\\\");\\n }\",\n \"function decisionVanish2(data, pos) {\\n vanish2(data, pos);\\n}\",\n \"function toSyllableFromVariations(){\\n pushedVariations = false;\\n variations = new Array();\\n \\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function initialisationOfVariables(scope) {\\n\\tdocument.getElementById(\\\"site-sidenav\\\").style.display=\\\"block\\\";\\n\\ttab_label=\\\"conjugate\\\";\\n\\tselectedIndex=1;\\n\\tborder_style_black=\\\"1px solid black\\\";\\n\\tborder_style_red=\\\"1px solid red\\\";\\t\\n\\trandum_selected_img = 12;\\n\\tgetChild();\\n}\",\n \"function newFieldNeuralStructure(){\\n var structureField = select('#neural-structure-field-value');\\n var bias = select('#checkbox-1');\\n\\n var text = structureField.value();\\n numbers = textToNumbers(text);\\n\\n if(numbers.length>=2){ //Minimum les entrées et sorties\\n displayNewNetwork(numbers, bias.checked());\\n }else console.log(\\\"! : il faut minimum 2 chiffres (>0)\\\");\\n}\",\n \"function SPVTL(a, state) {\\n const stack = state.stack;\\n const p2i = stack.pop();\\n const p1i = stack.pop();\\n const p2 = state.z2[p2i];\\n const p1 = state.z1[p1i];\\n\\n if (exports.DEBUG) console.log('SPVTL[' + a + ']', p2i, p1i);\\n\\n let dx;\\n let dy;\\n\\n if (!a) {\\n dx = p1.x - p2.x;\\n dy = p1.y - p2.y;\\n } else {\\n dx = p2.y - p1.y;\\n dy = p1.x - p2.x;\\n }\\n\\n state.pv = state.dpv = getUnitVector(dx, dy);\\n}\",\n \"function verifGg() {\\r\\n verifColonne();\\r\\n verifLigne();\\r\\n verifDiagonaleSlach();\\r\\n verifDiagonaleBackSlash();\\r\\n basculeJoueur();\\r\\n}\",\n \"function visVare(snap) {\\n const key = snap.key;\\n const vare = snap.val();\\n\\n let index = 4;\\n\\n let pris = `${vare.Pris}`\\n\\n allDisplay.innerHTML += `\\n
        \\n

        ${vare.Navn}

        \\n \\n

        ${pris},-

        \\n Se mer\\n
        \\n `;\\n}\",\n \"function fl_outToLevivot ()\\n\\t\\t{if(freez==\\\"false\\\"){\\n\\t\\t\\tconsole.log(\\\"hit\\\")\\n\\t\\t\\tthis.rimon.alpha=1\\n\\t\\t\\tthis.sufgania.alpha=1\\n\\t\\t\\tthis.selek.alpha=1\\n\\t\\t\\tthis.tamar.alpha=1\\n\\t\\t\\tthis.karpas.alpha=1\\n\\t\\t\\tthis.haroset.alpha=1\\n\\t\\t\\tthis.maza.alpha=1\\n\\t\\t\\tthis.hasa.alpha=1\\n\\t\\t\\tthis.beiza.alpha=1\\n\\t\\t\\tthis.hazeret.alpha=1\\n\\t\\t\\tthis.mamtak.alpha=1\\n\\t\\t\\tthis.gvina.alpha=1\\n\\t\\t\\tthis.oznei_aman.alpha=1\\n\\t\\t\\tthis.dvash.alpha=1\\n\\t\\t\\tthis.dag.alpha=1\\n\\t\\t\\tthis.sumsum.alpha=1\\n\\t\\t\\tthis.perot.alpha=1\\n\\t\\t\\tthis.mishloah.alpha=1\\n\\t\\t\\tthis.of.alpha=1\\n\\t\\t this.tu_btn.alpha=1\\n\\t\\t this.purim_btn.alpha=1\\n\\t\\t this.pesach_btn.alpha=1\\n\\t\\t this.shavuot_btn.alpha=1\\n\\t\\t this.rosh_ha_shana_btn.alpha=1\\n\\t\\t this.modern_btn.alpha=1\\n\\t\\t\\t\\t\\t this.arrow_btn.alpha=0\\n\\t\\tthis.arrowAside_mc.alpha=0\\n\\t\\tthis.gvina_explain.alpha=0\\n\\t\\tthis.mishloah_explain.alpha=0\\n\\t\\tthis.sufgania_explain.alpha=0\\n\\t\\tthis.perot_explain.alpha=0\\n\\t\\tthis.tapuah_explain.alpha=0\\n\\t\\tthis.maza_explain.alpha=0\\n\\t\\t\\n\\t\\t}}\",\n \"function verTax () {\\n\\t\\t\\tif (product.tax == 1){\\n\\t\\t\\t\\t$scope.vistaTax = 'Iva Incluido';\\n\\t\\t\\t}\\n\\t\\t\\telse{\\n\\t\\t\\t\\t$scope.vistaTax = product.tax;\\n\\t\\t\\t}\\n\\t\\t}\",\n \"calcNUV() {\\n this.N = this.viewingPoint.subtract(this.position).unit();\\n this.U = this.N.crossProduct(this.UP).unit();\\n this.V = this.U.crossProduct(this.N);\\n }\",\n \"function chgGarden(tgt, btn) {\\n \\n //if sun or soil \\\"drop down\\\" choice is clicked\\n if ([\\\"ulSun\\\", \\\"ulSoil\\\"].some(className => btn.classList.contains(className))) {\\n //update the \\\"drop UL button\\\" text with the value chosen + arrow\\n btn.textContent = tgt.innerText + \\\" \\\" + btn.textContent.split(\\\" \\\")[1]\\n\\n //call the update of the garden's colors\\n sunSoilChoice(btn.parentElement);\\n\\n //call the update of the local storage with sun & soil choices\\n updateLocalStorage(\\n btn.parentElement.id,\\n btn.classList.contains(\\\"ulSun\\\")?\\\"sun\\\":\\\"soil\\\", \\n tgt.textContent);\\n }\\n \\n //if one of tools choices is clicked\\n else if (tgt.textContent === \\\"Duplicate this garden\\\") {\\n //the yOffset is needed for the vertical offset of duplicate garden and its plants\\n const yOffset = gnH+munit * 2;\\n //clone the garden\\n let dupGardenId = addGarden(\\n {gId:null, \\n x:gnX,\\n y:gnY + yOffset,\\n w:gnW,\\n h:gnH,\\n nm:gnNM + \\\" copy\\\",\\n sn:btn.parentElement.getElementsByClassName(\\\"ulSun\\\")[0].textContent.split(\\\" \\\")[0],\\n sl:btn.parentElement.getElementsByClassName(\\\"ulSoil\\\")[0].textContent.split(\\\" \\\")[0]\\n });\\n //if there are any plants in the garden, clone them too\\n let len = btn.parentElement.getElementsByTagName(\\\"g\\\").length;\\n if (len) {\\n for (let i = 0; i < len; i++) {\\n let dupPlantSpecs = localStorage.getItem(\\n \\\"aas_myGardenVs_plnt\\\" + \\n btn.parentElement.getElementsByTagName(\\\"g\\\")[i].id.split(\\\"_\\\")[1])\\n .split(\\\",\\\");\\n addPlant ({\\n pId:null, \\n x:Number(dupPlantSpecs[0]),\\n y:Number(dupPlantSpecs[1]) + yOffset ,\\n w:Number(dupPlantSpecs[2]),\\n h:Number(dupPlantSpecs[3]),\\n nm:dupPlantSpecs[4],\\n gId:dupGardenId,\\n lnm:dupPlantSpecs[6], //plant's latin name\\n shp:dupPlantSpecs[7], //shape\\n clr:dupPlantSpecs[8], //color\\n blm:dupPlantSpecs[9] //bloom months\\n })\\n }\\n }\\n }\\n \\n //place \\\"plants in garden\\\", \\\"companions\\\", \\\"sun/soil\\\" plants container next to the clicked garden \\n else if (tgt.textContent.slice(0,4) === \\\"Pull\\\") {\\n let flt = null, tp = null, f_plntLN = null, f_plntCN = null;\\n switch (tgt.textContent.slice(0,15)) {\\n case \\\"Pull plants bas\\\":\\n flt = [btn.parentElement.getElementsByClassName(\\\"ulSun\\\")[0].textContent.split(\\\" \\\")[0].toLowerCase(),\\n btn.parentElement.getElementsByClassName(\\\"ulSoil\\\")[0].textContent.split(\\\" \\\")[0].toLowerCase()],\\n tp = \\\"sunSoil\\\";\\n break;\\n case \\\"Pull plants for\\\":\\n flt = btn.parentElement.getElementsByClassName(\\\"editable\\\")[0].children[0].value.toLowerCase();\\n tp = \\\"gName\\\";\\n break;\\n case \\\"Pull companions\\\":\\n f_plntLN = btn.parentElement.getElementsByTagName(\\\"g\\\")[0].children[0].getAttribute(\\\"desc\\\"),\\n f_plntCN = tgt.innerText.replace(\\\"Pull companions for \\\", \\\"\\\").toLowerCase(),\\n tp = \\\"companions\\\";\\n break;\\n }\\n addPlantMenu({\\n xPos: gnX + gnW + xOffset,\\n yPos: gnY,\\n type: tp,\\n filter: flt,\\n forPlantLN: f_plntLN,\\n forPlantCN: f_plntCN,\\n gId: btn.parentElement.id, \\n gX: gnX,\\n gY: gnY,\\n gW: gnW,\\n gH: gnH\\n });\\n } \\n }\",\n \"function l$5(l,e){0===e.normalType||1===e.normalType?(l.include(o$8,e),l.varyings.add(\\\"vNormalWorld\\\",\\\"vec3\\\"),l.varyings.add(\\\"vNormalView\\\",\\\"vec3\\\"),l.vertex.uniforms.add(\\\"uTransformNormal_GlobalFromModel\\\",\\\"mat3\\\"),l.vertex.uniforms.add(\\\"uTransformNormal_ViewFromGlobal\\\",\\\"mat3\\\"),l.vertex.code.add(t$i`void forwardNormal() {\\nvNormalWorld = uTransformNormal_GlobalFromModel * normalModel();\\nvNormalView = uTransformNormal_ViewFromGlobal * vNormalWorld;\\n}`)):2===e.normalType?(l.include(d$2,e),l.varyings.add(\\\"vNormalWorld\\\",\\\"vec3\\\"),l.vertex.code.add(t$i`\\n void forwardNormal() {\\n vNormalWorld = ${1===e.viewingMode?t$i`normalize(vPositionWorldCameraRelative);`:t$i`vec3(0.0, 0.0, 1.0);`}\\n }\\n `)):l.vertex.code.add(t$i`void forwardNormal() {}`);}\",\n \"function visualEaten()\\n{\\n\\tdocument.getElementById(\\\"eaten_n\\\").innerHTML=\\\"\\\";\\n\\tdocument.getElementById(\\\"eaten_b\\\").innerHTML=\\\"\\\";\\n\\t//visualizza le pedine mangiate nere\\n\\tfor(var i=0;i v.binormal = [0, 0, 1]);\\n\\n v1.tangente = vec3.clone(tangenteLadoIzquierdo);\\n v1.normal = vec3.clone(normalLadoIzquierdo);\\n v2.tangente = vec3.clone(tangenteLadoIzquierdo);\\n v2.normal = vec3.clone(normalLadoIzquierdo);\\n\\n v3.tangente = [1, 0, 0];\\n v3.normal = [0, 1, 0];\\n v4.tangente = [1, 0, 0];\\n v4.normal = [0, 1, 0];\\n\\n v5.tangente = vec3.clone(tangenteLadoDerecho);\\n v5.normal = vec3.clone(normalLadoDerecho);\\n v6.tangente = vec3.clone(tangenteLadoDerecho);\\n v6.normal = vec3.clone(normalLadoDerecho);\\n\\n v7.tangente = [-1, 0, 0];\\n v7.normal = [0, -1, 0];\\n v8.tangente = [-1, 0, 0];\\n v8.normal = [0, -1, 0];\\n\\n this.centro.posicion = vec3.fromValues(0, 0, 0);\\n this.centro.normal = vec3.fromValues(0, 0, 1);\\n\\n [v1, v2, v3, v4, v5, v6, v7, v8].forEach(v => {\\n v.coordenadaTextura = ((v[1] + (altura / 2)) / altura) * this.cantRepeticionesTextura;\\n this.vertices.push(v)\\n });\\n }\",\n \"function Guarda_Clics_EPR_Menos()\\r\\n{\\r\\n\\tGuarda_Clics(0,0);\\r\\n}\",\n \"function intercambiar() {\\n const aux = vaso1;\\n vaso1 = vaso2;\\n vaso2 = aux;\\n}\",\n \"function enteric_fermentation(){\\n a_FAO_i='enteric_fermentation';\\n initializing_change();\\n change();\\n}\",\n \"set Normal(value) {}\",\n \"function prevGraph() {\\nif(graphIndex === 0) {\\ngraphIndex = 4;\\n} else {\\ngraphIndex--;\\n}\\nswitchGraph();\\nlocation.href = '#prev-button';\\n}\",\n \"getSide() { return 0; }\",\n \"function getVardas3() {\\n return vardas + \\\"3\\\";\\n}\",\n \"mostrarTarefas() {\\n printPlanejamentoAtual(this.getPlanejamentoAtual());\\n printListaTarefa(this.listaQuadros());\\n }\",\n \"function inverse() {\\ncurrentInput = 1 / currentInput;\\ndisplayCurrentInput();\\n}\",\n \"function Scene_DynamicShop() {\\n\\t\\tthis.initialize.apply(this, arguments);\\t\\n\\t}\",\n \"niveauSuivant()\\r\\n\\t{\\r\\n\\t\\tthis._termine = false;\\r\\n\\t\\tthis._gagne = false;\\r\\n\\t\\tthis._niveau++;\\r\\n\\t\\tthis.demarrerNiveau();\\r\\n\\t}\",\n \"get normal (){\\n\\t\\treturn this.dir.perp(1);\\t\\t\\t\\n\\t}\",\n \"function go_articulos() {\\n $state.go('articles.list');\\n }\",\n \"function land_use(){\\n a_FAO_i='land_use';\\n initializing_change();\\n change();\\n}\",\n \"function menu_paquet(){\\n\\t\\taction=prompt(\\\"F fin de tour | P piocher une carte\\\");\\n\\t\\taction=action.toUpperCase();\\n\\t\\tif (action != null){\\n\\t\\t\\tswitch(action){\\n\\t\\t\\t\\tcase \\\"F\\\":\\n\\t\\t\\t\\t\\tif (att_me.length>0){\\n\\t\\t\\t\\t\\t\\t//MAJ des cartes en INV_ATT1,2\\n\\t\\t\\t\\t\\t\\tmajCartesEnAttaque();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tif (pv_adv==0 || pv_me==0){\\n\\t\\t\\t\\t\\t\\tif (pv_adv==0){\\n\\t\\t\\t\\t\\t\\t\\talert(\\\"Vous avez gagné !!!\\\");\\n\\t\\t\\t\\t\\t\\t}else{\\n\\t\\t\\t\\t\\t\\t\\talert(\\\"Vous avez perdu !!!\\\");\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t/////////////////////////////////Gérer la fin de partie ICI\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tIA_jouer(IA_stategie_basic);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\tcase \\\"P\\\":\\n\\t\\t\\t\\t\\tjeu_piocherDsPaquet(true);\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\",\n \"function IA_sacrifier(){\\n\\t\\t // IA sacrifie la carte de plus haut cout d'invocation\\n\\t\\t //SSI aucune carte vide\\n\\t\\t \\n\\t\\t no=rechercherIdxCarteAdvCoutMax()\\n\\t\\t if (no>=0){\\n\\t\\t\\tlaCarte = jeu_adv[no];\\n\\t\\t \\tsacrifierUneCarte(no,laCarte,false,true);\\n\\t\\t}\\n\\t }\",\n \"function applyCurrentTypeVariation(){\\n currentType = document.getElementById(\\\"type\\\").value;\\n if(currentType == \\\"climacus\\\"){\\n isClimacus = true;\\n }\\n else{\\n isClimacus = false;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = neumeVariationForm();\\n}\",\n \"function previousSubunit()\\n {\\n var m = my.current.unitNo\\n var n = my.current.subunitNo\\n\\n if (!currentSubunitIsTheFirstSubunit()) {\\n if (n == 1) {\\n // If the user is at unit M.1, go to unit (M - 1).L\\n // where L is the last subunit of the previous unit.\\n previousUnit = unit(m - 1)\\n var previousSubunitTitles = []\\n for (var subunitTitle in previousUnit.subunits) {\\n previousSubunitTitles.push(subunitTitle)\\n }\\n\\n m--\\n n = previousSubunitTitles.length\\n } else {\\n // If the user is at unit M.N, go to unit M.(N - 1)\\n n--\\n }\\n }\\n\\n window.location.href = unitHref(m, n)\\n }\",\n \"function novelty_diversity(algorithmName){\\n\\tvar noveltyCheck = document.getElementsByName(\\\"noveltyCheck\\\")[0];\\n\\tvar diversityCheck = document.getElementsByName(\\\"diversityCheck\\\")[0];\\n\\tvar str = \\\"\\\";\\n if(noveltyCheck.checked == true){\\n \\tstr += \\\"&novelty=true\\\";\\n }\\n else{\\n \\tstr += \\\"&novelty=false\\\";\\n }\\n if(diversityCheck.checked == true){\\n \\tstr += \\\"&diversity=true\\\";\\n }\\n else{\\n \\tstr += \\\"&diversity=false\\\";\\n }\\n \\n // similarity name\\n var simNameSelect = document.getElementsByName(\\\"simNameSelect\\\")[0];\\n var simName = \\\"\\\";\\n if(simNameSelect != null){\\n \\tsimName = simNameSelect.value;\\n }\\n var url = \\\"/NRS/IndexAction.do?method=ShowCompare&algorithmName=\\\" + algorithmName + str + \\\"&simName=\\\" + simName;\\n window.location.href = url;\\n}\",\n \"function home() {\\n if ( index != vCount ) {\\n return;\\n }\\n // reset state variables\\n theta = 0;\\n trans = [0,0,0]; // issue \\n mv = mat4();\\n whereami();\\n render(); \\n}\",\n \"function paralax() {\\n $('.clouds ul li:nth-child(1)').plaxmove({ratioH: 0.01, ratioV: 0.05, reversed: true, invertH: false});\\n $('.clouds ul li:nth-child(2)').plaxmove({ratioH: 0.01, ratioV: 0.05, reversed: false, invertH: false});\\n $('.clouds ul li:nth-child(3)').plaxmove({ratioH: 0.03, ratioV: 0.09, invertV: true});\\n $('.clouds ul li:nth-child(4)').plaxmove({ratioH: 0.06, ratioV: 0.15, reversed: false, invertH: false});\\n\\n }\",\n \"function useVisualMode(initial) {\\n const [mode, setMode] = useState(initial);\\n const [history, setHistory] = useState([initial]);\\n\\n // Creates an array with the states' history\\n const transition = (changeMode, replace = false) => {\\n if (!replace) {\\n setHistory(prev => [...prev, changeMode]);\\n } else {\\n setHistory(prev => {\\n prev.pop();\\n return [...prev, changeMode];\\n });\\n }\\n setMode(changeMode);\\n };\\n\\n const back = () => {\\n setHistory(prev => {\\n if (history.length > 1) {\\n prev.pop();\\n setMode(prev[prev.length - 1]);\\n } else {\\n setMode(initial);\\n }\\n return prev;\\n });\\n };\\n\\n return { mode, transition, back };\\n}\",\n \"function NextLesion()\\n{\\n if( meNumberOfLesions + 1 <= 12 ) {\\n\\tmeNumberOfLesions++;\\n\\tmeCurrentLesion = meNumberOfLesions-1;\\n\\n\\t//setFrameUrl('left','empty.htm');\\n\\t//setFrameUrl('right','empty.htm');\\n\\n\\tif( meDominance == 'left' ){\\n\\t //setFrameUrl('left','selectedleft.htm');\\n\\t} else {\\n\\t\\t\\n\\t}\\n\\t //setFrameUrl('left','selectedright.htm');\\n\\n\\t//setFrameUrl('right','lesion_segments.htm');\\n\\n\\t// header update\\n\\tUpdateCurrentLesion();\\n }\\n else {\\n\\talert(\\\"Maximum number of lesions is 12\\\");\\n\\treturn;\\n }\\n}\",\n \"function SPVTL(a, state) {\\n var stack = state.stack;\\n var p2i = stack.pop();\\n var p1i = stack.pop();\\n var p2 = state.z2[p2i];\\n var p1 = state.z1[p1i];\\n\\n if (DEBUG) console.log('SPVTL[' + a + ']', p2i, p1i);\\n\\n var dx;\\n var dy;\\n\\n if (!a) {\\n dx = p1.x - p2.x;\\n dy = p1.y - p2.y;\\n } else {\\n dx = p2.y - p1.y;\\n dy = p1.x - p2.x;\\n }\\n\\n state.pv = state.dpv = getUnitVector(dx, dy);\\n}\",\n \"function Vitals(bp, pr, rr, other){\\n\\n\\tthis.bp = bp;\\n\\tthis.pr = pr;\\n\\tthis.rr = rr;\\n\\tthis.other = other;\\n}\",\n \"function o$9(o){const d=t$i`vec3 decodeNormal(vec2 f) {\\nfloat z = 1.0 - abs(f.x) - abs(f.y);\\nreturn vec3(f + sign(f) * min(z, 0.0), z);\\n}`;o.fragment.code.add(d),o.vertex.code.add(d);}\",\n \"function inverse() {\\n current_input = 1 / current_input;\\n displayCurrentInput();\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.57391584","0.572973","0.5680283","0.5678754","0.56052494","0.52984256","0.52108747","0.51524496","0.5117782","0.50801706","0.5063693","0.50506973","0.5034637","0.5022225","0.49968153","0.49807635","0.49631998","0.4963123","0.49615604","0.49117392","0.49044204","0.48728675","0.48728493","0.48655304","0.48567936","0.48562425","0.4855167","0.48498672","0.48476306","0.48139283","0.4806062","0.47886157","0.47804382","0.4770801","0.4770801","0.4734546","0.47255787","0.47143793","0.47098947","0.47093368","0.46986166","0.46985558","0.46937928","0.46895987","0.46894255","0.46839872","0.4679884","0.46709648","0.46677074","0.46632138","0.4659883","0.46597946","0.46513054","0.46489558","0.4646147","0.4640583","0.46317697","0.46283996","0.46264133","0.46228728","0.46173677","0.46158794","0.46083936","0.4607367","0.46068782","0.46040323","0.4601827","0.4595479","0.45887578","0.4587393","0.45866898","0.45858306","0.45831198","0.45789638","0.45750654","0.4570535","0.45704547","0.45690918","0.4560833","0.45575723","0.4549531","0.45475873","0.45411977","0.4540493","0.45379114","0.45366186","0.45346683","0.4530076","0.4529871","0.45249394","0.45247713","0.4522895","0.45208052","0.45192638","0.45188177","0.4515997","0.45144385","0.45114303","0.45076394","0.45066908"],"string":"[\n \"0.57391584\",\n \"0.572973\",\n \"0.5680283\",\n \"0.5678754\",\n \"0.56052494\",\n \"0.52984256\",\n \"0.52108747\",\n \"0.51524496\",\n \"0.5117782\",\n \"0.50801706\",\n \"0.5063693\",\n \"0.50506973\",\n \"0.5034637\",\n \"0.5022225\",\n \"0.49968153\",\n \"0.49807635\",\n \"0.49631998\",\n \"0.4963123\",\n \"0.49615604\",\n \"0.49117392\",\n \"0.49044204\",\n \"0.48728675\",\n \"0.48728493\",\n \"0.48655304\",\n \"0.48567936\",\n \"0.48562425\",\n \"0.4855167\",\n \"0.48498672\",\n \"0.48476306\",\n \"0.48139283\",\n \"0.4806062\",\n \"0.47886157\",\n \"0.47804382\",\n \"0.4770801\",\n \"0.4770801\",\n \"0.4734546\",\n \"0.47255787\",\n \"0.47143793\",\n \"0.47098947\",\n \"0.47093368\",\n \"0.46986166\",\n \"0.46985558\",\n \"0.46937928\",\n \"0.46895987\",\n \"0.46894255\",\n \"0.46839872\",\n \"0.4679884\",\n \"0.46709648\",\n \"0.46677074\",\n \"0.46632138\",\n \"0.4659883\",\n \"0.46597946\",\n \"0.46513054\",\n \"0.46489558\",\n \"0.4646147\",\n \"0.4640583\",\n \"0.46317697\",\n \"0.46283996\",\n \"0.46264133\",\n \"0.46228728\",\n \"0.46173677\",\n \"0.46158794\",\n \"0.46083936\",\n \"0.4607367\",\n \"0.46068782\",\n \"0.46040323\",\n \"0.4601827\",\n \"0.4595479\",\n \"0.45887578\",\n \"0.4587393\",\n \"0.45866898\",\n \"0.45858306\",\n \"0.45831198\",\n \"0.45789638\",\n \"0.45750654\",\n \"0.4570535\",\n \"0.45704547\",\n \"0.45690918\",\n \"0.4560833\",\n \"0.45575723\",\n \"0.4549531\",\n \"0.45475873\",\n \"0.45411977\",\n \"0.4540493\",\n \"0.45379114\",\n \"0.45366186\",\n \"0.45346683\",\n \"0.4530076\",\n \"0.4529871\",\n \"0.45249394\",\n \"0.45247713\",\n \"0.4522895\",\n \"0.45208052\",\n \"0.45192638\",\n \"0.45188177\",\n \"0.4515997\",\n \"0.45144385\",\n \"0.45114303\",\n \"0.45076394\",\n \"0.45066908\"\n]"},"document_score":{"kind":"string","value":"0.47547698"},"document_rank":{"kind":"string","value":"35"}}},{"rowIdx":226,"cells":{"query":{"kind":"string","value":"Navigational, leads to neume form from neume variants."},"document":{"kind":"string","value":"function toNeumeFromNeumeVariations(){\n pushedNeumeVariations = false;\n neumeVariations = new Array();\n \n isNeumeVariant = false;\n \n document.getElementById(\"input\").innerHTML = neumeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function go_articulos() {\n $state.go('complex_articles.list');\n }","set_variant_segment(field, normal_segment) {\n\n let graph = this.g.set_graph();\n\n let a_variant = this.db_anatomy_data[field]\n if (a_variant == 'undefined' || a_variant == null) {\n let default_variant = normal_segment;\n let d_node = graph.getNodeAttributes(default_variant);\n return d_node;\n }\n\n if (this.db_lesion_data.length !== 0 &&\n this.db_lesion_data.length !== null\n ) {\n\n for (let i = 0; i < this.db_lesion_data.length; i++) {\n let d_i = this.db_lesion_data[i];\n let a_node = graph.getNodeAttributes(a_variant);\n return a_node;\n } //for lesion_data\n }\n }","function visSingleView() {\n console.log(\"visSingleView\");\n //add history.back();\n //Konstant der bestemmer window.location.search\n //Konstant der definerer en unik egenskab (her fx. navn).\n //Konstant der definerer URL til json\n //Andre lokale variabler\n //opret en klon med alle info fra json og sæt ind på siden vha textContent, link til billede + alt.\n}","link() {\n this._variable = this._sbolDocument.lookupURI(this._variable);\n this._variantDerivations = this._sbolDocument.lookupURIs(this._variantDerivations);\n this._variantCollections = this._sbolDocument.lookupURIs(this._variantCollections);\n this._variants = this._sbolDocument.lookupURIs(this._variants);\n }","randomNaves() {\n return Math.floor(Math.random() * this.poscionNaves.length) + 0;\n }","function go_articulos() {\n $state.go('articles.list');\n }","function drawNeueAmeise() {\n let a = new Sem.Ameise();\n Sem.ant.push(a);\n let h = new Sem.AmeiseRot();\n Sem.antRed.push(h);\n let b = new Sem.AmeiseBrown();\n Sem.antBrown.push(b);\n n++;\n }","afficherEcranParent(ecran) {\n this.props.navigation.navigate(ecran);\n }","Navigate(string, Variant, Variant, Variant, Variant) {\n\n }","req_07_printAllRev() {\n let nav = this.hacker2;\n\n let textoInverso = nav\n .replace(/ /g, '')\n .split('')\n .reverse()\n .join('');\n\n console.log(textoInverso);\n }","function loadExistingLesion(lesionNumber) {\n meCurrentLesion = lesionNumber;\n //setFrameUrl('right','lesion_segments.htm');\n\n if( meDominance == 'left' ) {\n\t//setFrameUrl('left','selectedleft.htm');\n }\n else {\n\t//setFrameUrl('left','selectedright.htm');\n }\n}","function navigation() {\n\n console.log(\"Bienvenue dans le gestionnaire de contact\");\n console.log(\"1 : Liste des contacts\");\n console.log(\"2 : Ajouter un contact\");\n console.log(\"3 : Quitter\");\n}","function loadDirections(string) {\r\n document.querySelector(\"nav ul li:first-of-type\").className = \"\";\r\n document.querySelector(\"nav ul li:last-of-type\").className = \"current\";\r\n document.getElementById(\"setup\").style.display = \"none\";\r\n document.getElementById(\"location\").style.display = \"block\";\r\n}","function visVare(snap) {\n const key = snap.key;\n const vare = snap.val();\n\n let index = 4;\n\n let pris = `${vare.Pris}`\n\n allDisplay.innerHTML += `\n
        \n

        ${vare.Navn}

        \n \n

        ${pris},-

        \n Se mer\n
        \n `;\n}","function cambioNaturaSplitReverse() {\n var selectedOption = $('option:selected', selectNaturaOnere);\n var codiceSplitReverseSelezionato = $('option:selected', selectSplitReverse).data('codice');\n var divsToHide;\n if(!selectedOption.length || !selectedOption.val()) {\n // Nulla da effettuare: esco\n return;\n }\n\n codice = selectedOption.data('codice');\n divsToHide = divsMayHideNatura.filter('[data-hidden-natura~=\"' + codice + '\"]');\n divsMayHideSplitReverse.slideDown();\n showDivs(divsMayHideNatura.not(divsToHide));\n hideDivs(divsToHide);\n\n // Gestione della select\n if(codice === codiceEsenzione) {\n divSelectSplitReverse.slideUp();\n // Esente: seleziono direttamente il campo 'esente'\n selectSplitReverse.removeAttr('disabled');\n optionEsente.prop('selected', true);\n return;\n }\n if(codice === codiceSplitReverse) {\n divSelectSplitReverse.slideDown();\n selectSplitReverse.removeAttr('disabled');\n if (optionEsente.is(':checked')) {\n selectSplitReverse.val('');\n }\n $(\"label[for='aliquotaCaricoSoggetto']\").html(codiceSplitReverseSelezionato === \"SI\" || codiceSplitReverseSelezionato === \"SC\"? \"Aliquota\": \"Aliquota a carico soggetto\");\n return;\n }\n divSelectSplitReverse.slideUp();\n $(\"label[for='aliquotaCaricoSoggetto']\").html(\"Aliquota a carico soggetto\");\n selectSplitReverse.attr('disabled', true);\n }","function _addNavigation() {}","function visVare(snap) {\n const key = snap.key;\n const vare = snap.val();\n\n let index = 4; // Tilfeldig farge er teit - Math.floor(Math.random() * 5);\n let rabatt = 1 - (Math.floor(Math.random() * 15) / 20);\n let orginalPris = `${vare.Pris}`\n let prisDecider = `${vare.Pris}` * rabatt;\n let pris = Math.round(prisDecider);\n\n\n if (orginalPris == pris) {\n pris *= 0.9;\n }\n\n\n display.innerHTML += `\n
        \n

        ${vare.Navn}

        \n \n

        Før ${orginalPris},-

        \n

        ${pris},-

        \n Se mer\n
        \n `;\n}","function napVector (vectorChoice) {\n\t location.href = document.nap.vector.options[document.nap.vector.selectedIndex].value;\n\t }","function navigation() {\n\t\n\t/* @TODO: reverse li und stelle angemeldet als nach oben */\n\t//$$('#account ul').insert( $$('#account ul li').reverse() );\n}","function verifierMot()\n{\n var lemot = \"\";\n for(let i=0; i {\n if (filter == ur.Farve || filter == \"alle\") {\n let klon = temp.cloneNode(true).content;\n klon.querySelector(\"img\").src = \"images/\" + ur.Billede + \".webp\";\n klon.querySelector(\".navn\").textContent = ur.Navn;\n klon.querySelector(\".farve\").textContent = ur.Farve;\n klon.querySelector(\".pris\").textContent = ur.Pris + \",-\";\n klon.querySelector(\"article\").addEventListener(\"click\", () => {\n location.href = \"produkter_detaljer.html?id=\" + ur._id;\n });\n\n container.appendChild(klon);\n }\n });\n}","buscarPokemon(termino) {\n console.log('capturo info de text - navbar.component.ts ', termino);\n this.router.navigate(['/buscar', termino]);\n }","function Navigate() {\n source_vector_draw_rdc.clear();\n source_vector_draw_etage.clear();\n drawPinStart();\n\n var porte_start = porteStartLocalisation;\n var porte_end = document.getElementById(\"endNavigation\").value;\n\n var collection_route = Route(porte_start, porte_end);\n collection_route.forEach(triple => { //start, end, layer\n Drawline(triple[0], triple[1], triple[2]);\n });\n}","function toNeumeFromVariations(){\n pushedVariations = false;\n variations = new Array();\n \n document.getElementById(\"input\").innerHTML = neumeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function sceneEnter(scene){\r\n\t\tvar currentNav = \"\"; // Aktueller Navigationspunkt\r\n\t\tswitch(scene){\r\n\t\t\tcase \"intro1\":\r\n\t\t\tcase \"intro2\":\r\n\t\t\t\tcurrentNav = \"intro\";\r\n\t\t\t\tbreak; \r\n\t\t\tcase \"lecture\": \r\n\t\t\t\tcurrentNav = \"lecture\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"selfstudy1\":\r\n\t\t\tcase \"selfstudy2\":\r\n\t\t\tcase \"selfstudy3\":\r\n\t\t\t\tcurrentNav = \"selfstudy\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"canteen\":\r\n\t\t\tcase \"feature\":\r\n\t\t\tcase \"outro\":\r\n\t\t\t\tcurrentNav = \"tools\";\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tactivateNav(currentNav);\r\n\t}","function verifGg() {\r\n verifColonne();\r\n verifLigne();\r\n verifDiagonaleSlach();\r\n verifDiagonaleBackSlash();\r\n basculeJoueur();\r\n}","function NextLesion()\n{\n if( meNumberOfLesions + 1 <= 12 ) {\n\tmeNumberOfLesions++;\n\tmeCurrentLesion = meNumberOfLesions-1;\n\n\t//setFrameUrl('left','empty.htm');\n\t//setFrameUrl('right','empty.htm');\n\n\tif( meDominance == 'left' ){\n\t //setFrameUrl('left','selectedleft.htm');\n\t} else {\n\t\t\n\t}\n\t //setFrameUrl('left','selectedright.htm');\n\n\t//setFrameUrl('right','lesion_segments.htm');\n\n\t// header update\n\tUpdateCurrentLesion();\n }\n else {\n\talert(\"Maximum number of lesions is 12\");\n\treturn;\n }\n}","function setLinkOrientation() {\n\n for (var i = 0, n = links.length; i < n; i++) {\n if (vertical) {\n // vertical scheme\n /*switch (getTipoNo(links[i].target)) {\n // CVM && PAT priority is highest\n case 'CVM':\n case 'PAT':\n links[i] = switchLinks(links[i]);\n break;\n // ATE && CEMU priority is second highest\n case 'ATE':\n if (getTipoNo(links[i].source) != 'CVM' || getTipoNo(links[i].source) != 'PAT' || getTipoNo(links[i].source) != 'CP')\n links[i] = switchLinks(links[i]);\n break;\n case 'CEMU':\n if (getTipoNo(links[i].source) == 'CVM' || getTipoNo(links[i].source) == 'PAT' || getTipoNo(links[i].source) == 'CP')\n links[i] = switchLinks(links[i]);\n break;\n // CP priority is third highest\n case 'CP':\n if (getTipoNo(links[i].source) != 'CVM' || getTipoNo(links[i].source) != 'PAT')\n links[i] = switchLinks(links[i]);\n break;\n // CC priority is fourth highest\n case 'CC':\n if (getTipoNo(links[i].source) != 'ATE' || getTipoNo(links[i].source) == 'CP')\n links[i] = switchLinks(links[i]);\n break;\n }*/\n\n switch (getTipoNo(links[i].source)) {\n // CVM && PAT priority is highest\n case 'CVM':\n case 'PAT':\n if (getTipoNo(links[i].target) != 'CP' && getTipoNo(links[i].target) != 'ATE')\n links[i] = switchLinks(links[i]);\n break;\n // ATE && CEMU priority is second highest\n case 'ATE':\n if (getTipoNo(links[i].target) != 'CC')\n links[i] = switchLinks(links[i]);\n break;\n case 'CEMU':\n if (getTipoNo(links[i].target) == 'CVM' && getTipoNo(links[i].source) == 'PAT' && getTipoNo(links[i].source) == 'CP')\n links[i] = switchLinks(links[i]);\n break;\n // CP priority is third highest\n case 'CP':\n if (getTipoNo(links[i].target) != 'CC' && getTipoNo(links[i].target) != 'ATE')\n links[i] = switchLinks(links[i]);\n break;\n // CC priority is third highest\n case 'CC':\n links[i] = switchLinks(links[i]);\n break;\n }\n } else {\n // horizontal scheme\n switch (getTipoNo(links[i]['target'])) {\n // CVM && PAT priority is highest\n case 'CVM':\n case 'PAT':\n links[i] = switchLinks(links[i]);\n break;\n // ATE && CEMU priority is second highest\n case 'ATE':\n case 'CEMU':\n if (getTipoNo(links[i].source) == 'CVM' || getTipoNo(links[i].source) == 'PAT')\n links[i] = switchLinks(links[i]);\n break;\n // ATI priority is third highest\n //case 'ATI':\n // CC priority is third highest\n case 'CC':\n if (getTipoNo(links[i].source) == 'CVM' || getTipoNo(links[i].source) == 'PAT' || getTipoNo(links[i].source) == 'ATE')\n links[i] = switchLinks(links[i]);\n break;\n }\n }\n }\n\n // compute paths to endpoints\n if (links.length > 0) {\n\n // select the source node\n var start = firstOfType('CVM');\n if (start == -1)\n start = firstOfType('ATE');\n //if (start == -1)\n // start = firstOfType('ATI');\n if (start == -1)\n start = firstOfType('CC');\n if (start != -1) {\n\n for (i = 0, n = nodes.length; i < n; i++) {\n if (neighbourNodes(i, []).length == 1 && getTipoNo(nodes[i]) == 'CP' || getTipoNo(nodes[i]) == 'TT') {\n\n // get the path from the ati to the node\n var path = findPath(start, nodes[i].id - 1, neighbourNodes(start, []), []);\n\n // update source and target\n for (var j = 0, m = path.length - 1; j < m; j++)\n for (var k = 0; k < links.length; k++)\n if (compareNodes(links[k].source, nodes[path[j]]) && compareNodes(links[k].target, nodes[path[j + 1]]))\n switchLinks(links[k]);\n }\n }\n }\n }\n\n // PAT -> [ATE,ATI]\n for (i = 0, n = nodes.length; i < n; i++) {\n if (getTipoNo(nodes[i]) == 'PAT') {\n\n // find ATE or ATI\n for (j = 0; j < nodes.length; j++) {\n if (getTipoNo(nodes[j]) == 'ATE' || getTipoNo(nodes[j]) == 'ATI') {\n\n // get path to ATE/ATI\n path = findPath(i, j, neighbourNodes(i, []), []).reverse();\n\n // stop if ATI is found (for ATE targets)\n for (k = 0; k < path.length; k++)\n if (getTipoNo(nodes[path[k]]) == 'ATI')\n path.splice(k + 1, path.length - k - 1);\n\n // find links in path\n for (k = 1; k < path.length; k++)\n for (var l = 0; l < links.length; l++)\n if (compareNodes(nodes[path[k]], links[l].source) && compareNodes(nodes[path[k - 1]], links[l].target))\n switchLinks(links[l]);\n }\n }\n }\n }\n}","function Nevis() {}","function Nevis() {}","function Nevis() {}","function abrePredio(sigla) {\n history.push(`/apartamentos-predio/${sigla}`)\n }","navigatPageMonCompte() {\n this.props.navigation.navigate('MonCompte');\n }","function nav() {\n return (\n
        \n
        \n
        Genre
        \n \n \n Romance\n \n \n Science Fiction\n \n \n Horror\n \n \n Poetry\n \n \n
        Popular
        \n \n \n EXAMPLE\n \n \n EXAMPLE\n \n \n EXAMPLE\n \n \n EXAMPLE\n \n \n EXAMPLE\n \n \n
        \n
        \n );\n}","navToArt(slug) {\n\n this.setState(() => {\n return {\n\n slug: slug,\n whichPage: \"Art\"\n }\n })\n\n\n }","function replaceNavText(league) {\n $('.league-name-active a').text(league);\n \n // hide current league name in dropdown, show all the others\n $('.drop-down li').each(function(){\n $(this).show();\n });\n $('#nav-'+league).parent().hide();\n}","function findNavigation() {\n var navs = d.querySelectorAll('.' + proto.classes.nav);\n for (var i = navs.length; i--;) {\n new Navigation({ parent: navs[i] });\n }\n }","function beforeShowInfantglossary(e)\n{\n BindInfantGlossaryDetails(currentBook);\n closeNav();\n}","detail(route) {\n route.steps = _.map(route[0].legs, (leg) => {\n return {\n type: leg.type,\n shape: _.map(leg.shape, (shape) => {\n return {\n latitude: shape.y,\n longitude: shape.x\n }\n })\n }\n })\n this.props.navigator.replacePreviousAndPop({\n props: route,\n index: 2\n });\n }","function $8ec3412bfa22abb7$var$routeros(hljs) {\n const STATEMENTS = \"foreach do while for if from to step else on-error and or not in\";\n // Global commands: Every global command should start with \":\" token, otherwise it will be treated as variable.\n const GLOBAL_COMMANDS = \"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime\";\n // Common commands: Following commands available from most sub-menus:\n const COMMON_COMMANDS = \"add remove enable disable set get print export edit find run debug error info warning\";\n const LITERALS = \"true false yes no nothing nil null\";\n const OBJECTS = \"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw\";\n const VAR = {\n className: \"variable\",\n variants: [\n {\n begin: /\\$[\\w\\d#@][\\w\\d_]*/\n },\n {\n begin: /\\$\\{(.*?)\\}/\n }\n ]\n };\n const QUOTE_STRING = {\n className: \"string\",\n begin: /\"/,\n end: /\"/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR,\n {\n className: \"variable\",\n begin: /\\$\\(/,\n end: /\\)/,\n contains: [\n hljs.BACKSLASH_ESCAPE\n ]\n }\n ]\n };\n const APOS_STRING = {\n className: \"string\",\n begin: /'/,\n end: /'/\n };\n return {\n name: \"Microtik RouterOS script\",\n aliases: [\n \"routeros\",\n \"mikrotik\"\n ],\n case_insensitive: true,\n keywords: {\n $pattern: /:?[\\w-]+/,\n literal: LITERALS,\n keyword: STATEMENTS + \" :\" + STATEMENTS.split(\" \").join(\" :\") + \" :\" + GLOBAL_COMMANDS.split(\" \").join(\" :\")\n },\n contains: [\n {\n variants: [\n {\n begin: /\\/\\*/,\n end: /\\*\\//\n },\n {\n begin: /\\/\\//,\n end: /$/\n },\n {\n begin: /<\\//,\n end: />/\n }\n ],\n illegal: /./\n },\n hljs.COMMENT(\"^#\", \"$\"),\n QUOTE_STRING,\n APOS_STRING,\n VAR,\n {\n begin: /[\\w-]+=([^\\s{}[\\]()]+)/,\n relevance: 0,\n returnBegin: true,\n contains: [\n {\n className: \"attribute\",\n begin: /[^=]+/\n },\n {\n begin: /=/,\n endsWithParent: true,\n relevance: 0,\n contains: [\n QUOTE_STRING,\n APOS_STRING,\n VAR,\n {\n className: \"literal\",\n begin: \"\\\\b(\" + LITERALS.split(\" \").join(\"|\") + \")\\\\b\"\n },\n {\n // Do not format unclassified values. Needed to exclude highlighting of values as built_in.\n begin: /(\"[^\"]*\"|[^\\s{}[\\]]+)/\n }\n ]\n }\n ]\n },\n {\n // HEX values\n className: \"number\",\n begin: /\\*[0-9a-fA-F]+/\n },\n {\n begin: \"\\\\b(\" + COMMON_COMMANDS.split(\" \").join(\"|\") + \")([\\\\s[(\\\\]|])\",\n returnBegin: true,\n contains: [\n {\n className: \"builtin-name\",\n begin: /\\w+/\n }\n ]\n },\n {\n className: \"built_in\",\n variants: [\n {\n begin: \"(\\\\.\\\\./|/|\\\\s)((\" + OBJECTS.split(\" \").join(\"|\") + \");?\\\\s)+\"\n },\n {\n begin: /\\.\\./,\n relevance: 0\n }\n ]\n }\n ]\n };\n}","function gotoVictoryVan(event) {\n\taddNavActionJS(\"initial victory van\", \"\");\n\tswitchTo('victoryVanStart');\n}","function swapLanguage() {\n\tconst syntax = language.value || 'plain text'\n\tdecoration.highlighter.setSyntax(LANGUAGES.BANK[syntax].scopes)\n\tdecoration.innerHTML = relations.analyze(input, decoration)\n}","function displayNei(){\n activaTab(\"boxdashboard-body-nei-generic\");\n }","onNavigate (routeData) {\n this.channel.trigger('before:navigate', routeData.linked)\n\n routeData.linked.show(routeData.params)\n .then(() => {\n this.channel.trigger('navigate', routeData.linked)\n })\n .catch((error) => {\n console.error(error)\n this.channel.trigger('error')\n })\n }","function computeNavigation(commands){if(typeof commands[0]==='string'&&commands.length===1&&commands[0]==='/'){return new Navigation(true,0,commands);}var numberOfDoubleDots=0;var isAbsolute=false;var res=commands.reduce(function(res,cmd,cmdIdx){if(_typeof(cmd)==='object'&&cmd!=null){if(cmd.outlets){var outlets_1={};forEach(cmd.outlets,function(commands,name){outlets_1[name]=typeof commands==='string'?commands.split('/'):commands;});return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__spread\"])(res,[{outlets:outlets_1}]);}if(cmd.segmentPath){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__spread\"])(res,[cmd.segmentPath]);}}if(!(typeof cmd==='string')){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__spread\"])(res,[cmd]);}if(cmdIdx===0){cmd.split('/').forEach(function(urlPart,partIndex){if(partIndex==0&&urlPart==='.');else if(partIndex==0&&urlPart===''){// '/a'\nisAbsolute=true;}else if(urlPart==='..'){// '../a'\nnumberOfDoubleDots++;}else if(urlPart!=''){res.push(urlPart);}});return res;}return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__spread\"])(res,[cmd]);},[]);return new Navigation(isAbsolute,numberOfDoubleDots,res);}","function Guarda_Clics_AFN_Menos()\r\n{\r\n\tGuarda_Clics(4,0);\r\n}","function simple(){\n aff('Exercice n°01 : Bienvenue');\n var name = 'loic';\n aff(`Bienvenue à vous -> ${name} !`);\n jump();\n}","function zurueck(){\n\t\tif(!pfeilAktivitaet) {\n\t\t\tneuLaden();\n\t\t}\n\t\telse {\n\t\t\ttoggleDetailView_textauszug();\n\t\t\tpfeilAktivitaet = false;\n\t\t}\n\t}//ENDE zurueck()","function originNextStep() {\n $scope.originStep = 'navigationhidden';\n $scope.destinationStep = 'navigationshown';\n $scope.geosuccess = 'navigationhidden';\n }","function createNeumeVariationWithPitches(){\n var sourceID = document.getElementById(\"source\").value;\n var type = document.getElementById(\"type\").value;\n \n if(isClimacus){\n maxPitches = document.getElementById(\"numberofpitches\").value;\n }\n \n currentNeume = new Neume();\n currentNeume.type = type;\n \n var i;\n \n if(neumeVariations.length < 1){\n for(i = 0; i < sources.length; i++){\n var neumeVariation = new NeumeVariation(sources[i].id);\n neumeVariations.push(neumeVariation);\n }\n }\n \n for(i = 0; i < neumeVariations.length; i++){\n if(neumeVariations[i].sourceID == sourceID){\n neumeVariations[i].additionalNeumes.push(currentNeume);\n break;\n }\n }\n \n if(!pushedNeumeVariations){\n currentSyllable.neumes.push(neumeVariations);\n pushedNeumeVariations = true;\n }\n else{\n currentSyllable.neumes.pop();\n currentSyllable.neumes.push(neumeVariations);\n }\n \n isNeumeVariant = true;\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = pitchForm();\n createSVGOutput();\n}","function toSyllableFromNeumeVariations(){\n pushedNeumeVariations = false;\n neumeVariations = new Array();\n \n isNeumeVariant = false;\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","displayScene()\r\n {\r\n this.traverseGraph(this.components[this.idRoot], this.components[this.idRoot].materials, this.components[this.idRoot].texture);\r\n }","function addNavigationLink(_data, _json) {\n var data = _data.replace(/\"/g, \"\");\n var test = identifyDataType(data);\n\n\n if (test == false) {\n return `\"${data}\"`\n \n } else if (test == \"isBlockHash\"){\n return `\"${data}\"`\n \n } else if (test == \"isBlockNb\"){\n // récupération de segments présécent data dans _json\n var index = _json.indexOf(data);\n var test1 = _json.substr((index - 15), index);\n var test2 = _json.substr((index - 11), index);\n var test3 = _json.substr((index - 16), index);\n\n // Vérification que que ce sont les bons mots clés\n // précent la data que l'on veut vérifier\n if (/(\"nb\":)/.test(test1) |/(\"blocks\":)|(\"height\":)/.test(test2) || /(\"block_height\":)/.test(test3)) {\n return `\"${data}\"`\n } else {\n return data;\n }\n \n } else if (test == \"isTx\") {\n return `\"${data}\"`\n \n } else if (test == \"isAddress\"){\n return `\"${data}\"`\n }\n}","function nodeToNav(n, baseUrl) {\n if (n.mine && n.report && n.sheet) {\n return {\n id: n.code,\n hint: '',\n caption: n.caption,\n url: baseUrl + '/' + n.mine + '/' + n.report + '/' + n.sheet,\n external: false,\n nodes: buildSubMenu(n.subs, baseUrl)\n };\n } else if (n.mine && n.report) {\n return {\n id: n.code,\n hint: '',\n caption: n.caption,\n url: baseUrl + '/' + n.mine + '/' + n.report,\n external: false,\n nodes: buildSubMenu(n.subs, baseUrl)\n };\n } else if (Array.isArray(n.subs) && n.subs.length) {\n return {\n id: n.code,\n nodes: buildSubMenu(n.subs, baseUrl),\n hint: '',\n caption: n.caption,\n url: '',\n external: false\n };\n } else {\n return {\n id: n.code,\n hint: '',\n caption: n.caption,\n url: '',\n external: false,\n nodes: []\n };\n }\n}","function trasforma(pos,selected)\n{\n\tdocument.getElementById(pos).innerHTML=\"\";//trasforma il pedone nella pedina selezionata\n\tdocument.getElementById(\"transPedone\").innerHTML='';//toglie il menu di selezione delle pedine per la trasformazione\n}","function navigate(index) {\n World.diagram.getBounded(index, function(graph) {\n Display.update(graph);\n current = graph.meta('index');\n highlight(current);\n\n window.location.replace(\"#\" + (current +1)); \n })\n }","function tilfeldigNavn() {\n var navn = [\n 'Merrick',\n 'Lean Bean',\n 'The Leanest Bean',\n 'Merikstad',\n 'T-rex',\n 'Bean',\n 'Merrick - black of hair',\n 'Pett',\n 'Johan Pettersen'\n ];\n var tilfeldigTall = Math.floor(Math.random() * navn.length);\n $('.hvaOgHvem').text(navn[tilfeldigTall]);\n}","_getARNavigator(organization) {\n if (this.state.cause === ENV){\n return (\n \n );\n } else if (this.state.cause === RIGHTS){\n return (\n \n );\n } else if (this.state.cause === SOCIAL){\n return (\n \n );\n }\n }","function setDominance(Dominance)\n{\n //reset all new dominance is set incase of back!!\n reset();\n\n meDominance=Dominance;\n fillDiffuseTableArray();\n FillSegmentVisualizedArray();\n\n if (meDominance=='left')\n {\n\t//setFrameUrl('left','selectedleft.htm');\n\tsetHeaderText('dominance','Dominance: left');\n }\n if (meDominance=='right')\n {\n\t//setFrameUrl('left','selectedright.htm');\n\tsetHeaderText('dominance','Dominance: right');\n }\n\n // //setFrameUrl('right','nroflesions.htm');\n setNrOfLesionsToOne();\n //setFrameUrl('right','lesion_segments.htm');\n}","function do_verse_split( opt )\n{\n\tfunction do_one_ref( ref, verse_test )\n\t{\n\t\t// Split the verse\n\t\tif ( opt.split )\n\t\t{\n\t\t\tif ( ref.c === opt.c && verse_test )\n\t\t\t{\n\t\t\t\tref.v++;\n\t\t\t}\n\t\t}\n\t\t// Join them back together\n\t\telse\n\t\t{\n\t\t\tif ( ref.c === opt.c && ref.v >= opt.v + 1 )\n\t\t\t{\n\t\t\t\tref.v--;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( opt.split )\n\t{\n\t\topt.v -= opt.psalm_heading || 0;\n\t}\n\tdo_one_ref( opt.entity.start, opt.entity.start.v > opt.v );\n\tdo_one_ref( opt.entity.end, opt.entity.end.v >= opt.v );\n}","function o$8(o,d){0===d.normalType&&(o.attributes.add(\"normal\",\"vec3\"),o.vertex.code.add(t$i`vec3 normalModel() {\nreturn normal;\n}`)),1===d.normalType&&(o.include(o$9),o.attributes.add(\"normalCompressed\",\"vec2\"),o.vertex.code.add(t$i`vec3 normalModel() {\nreturn decodeNormal(normalCompressed);\n}`)),3===d.normalType&&(o.extensions.add(\"GL_OES_standard_derivatives\"),o.fragment.code.add(t$i`vec3 screenDerivativeNormal(vec3 positionView) {\nreturn normalize(cross(dFdx(positionView), dFdy(positionView)));\n}`));}","function arrowNav(event) {\n event.preventDefault();\n // find the index of the data-index in the object.keys, and then find the next item in object.keys, and find the url from that link. \n if (event.currentTarget.getAttribute('data-arrow')=='left') {\n if (linkKeysIndex>0) {\n var url = links[linkKeys[linkKeysIndex-1]];\n linkKeysIndex -= 1;\n } else {\n var url = links[linkKeys[linkKeysIndex+linkKeys.length -1]]\n linkKeysIndex = linkKeysIndex+linkKeys.length -1;\n }\n } else if (event.currentTarget.getAttribute('data-arrow')=='right') {\n if (linkKeysIndex code.startsWith(item.phenomenon.code));\n if (effectiveMapping.length === 1) {\n if (effectiveMapping[0].phenomenon.code === code) {\n effectiveMapping[0].variants = [];\n effectiveMapping[0].additions = [];\n }\n } else {\n effectiveMapping = cloneDeep(phenomenonMapping).map((item) => {\n if (item.variants.length > 0) {\n variantIndex = item.variants.findIndex((variant) => codeFragments[0].startsWith(variant.code));\n if (variantIndex > -1) {\n item.variants = [item.variants[variantIndex]];\n return item;\n }\n } else if (item.phenomenon.code.startsWith(codeFragments[0])) {\n return item;\n }\n }).filter((item) => typeof item !== 'undefined').filter((item) => {\n if (item.variants.length > 0) {\n return codeFragments[1].startsWith(item.phenomenon.code);\n } else {\n return true;\n }\n }).map((item) => {\n if (item.additions.length > 0) {\n additionIndex = item.additions.findIndex((addition) => codeFragments[1].endsWith(addition.code));\n if (additionIndex > -1) {\n item.additions = [item.additions[additionIndex]];\n return item;\n } else if (codeFragments.length > 2) {\n additionIndex = item.additions.findIndex((addition) => codeFragments[2].endsWith(addition.code));\n if (additionIndex > -1) {\n item.additions = [item.additions[additionIndex]];\n return item;\n }\n }\n }\n item.additions = [];\n return item;\n });\n }\n if (effectiveMapping.length === 1) {\n if (effectiveMapping[0].variants.length === 1) {\n result = effectiveMapping[0].variants[0].name + ' ' + effectiveMapping[0].phenomenon.name.toLowerCase();\n } else if (effectiveMapping[0].variants.length === 0) {\n result = effectiveMapping[0].phenomenon.name;\n } else {\n result = UNKNOWN;\n }\n if (effectiveMapping[0].additions.length === 1) {\n result += ' ' + effectiveMapping[0].additions[0].name;\n }\n return result;\n }\n return UNKNOWN;\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 navGreen(){\n for(let i = 0; i < navAnchorTags.length; i++) {\n navAnchorTags[i].textContent = navContents[i]\n }\n}","get referenceAllele() {\n\t\treturn this.__referenceAllele;\n\t}","link() {\n\t\t// Call super link to link members of Top Level (Identified)\n\t\tsuper.link();\n\n this._components = this._sbolDocument.lookupURIs(this._components);\n\n this._sequenceAnnotations = this._sbolDocument.lookupURIs(this._sequenceAnnotations).sort(function(a, b) {\n\n if(a instanceof URI || b instanceof URI)\n return 0;\n\n if(a.ranges.length === 0 || b.ranges.length === 0)\n return 0;\n\n return a.ranges[0].start - b.ranges[0].start;\n });\n\n this._sequenceConstraints = this._sbolDocument.lookupURIs(this._sequenceConstraints);\n this._sequences = this._sbolDocument.lookupURIs(this._sequences);\n }","function oldGLnk(target, description, linkData)\n{\n}","function Komunalne() {}","function computeNavigation(commands) {\n if (typeof commands[0] === 'string' && commands.length === 1 && commands[0] === '/') {\n return new Navigation(true, 0, commands);\n }\n\n var numberOfDoubleDots = 0;\n var isAbsolute = false;\n var res = commands.reduce(function (res, cmd, cmdIdx) {\n if (typeof cmd === 'object' && cmd != null) {\n if (cmd.outlets) {\n var outlets = {};\n forEach(cmd.outlets, function (commands, name) {\n outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;\n });\n return [].concat(Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(res), [{\n outlets: outlets\n }]);\n }\n\n if (cmd.segmentPath) {\n return [].concat(Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(res), [cmd.segmentPath]);\n }\n }\n\n if (!(typeof cmd === 'string')) {\n return [].concat(Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(res), [cmd]);\n }\n\n if (cmdIdx === 0) {\n cmd.split('/').forEach(function (urlPart, partIndex) {\n if (partIndex == 0 && urlPart === '.') {// skip './a'\n } else if (partIndex == 0 && urlPart === '') {\n // '/a'\n isAbsolute = true;\n } else if (urlPart === '..') {\n // '../a'\n numberOfDoubleDots++;\n } else if (urlPart != '') {\n res.push(urlPart);\n }\n });\n return res;\n }\n\n return [].concat(Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(res), [cmd]);\n }, []);\n return new Navigation(isAbsolute, numberOfDoubleDots, res);\n}","function list_vert()\r\n{\r\n\tvar i, v;\r\n\tfor (i=0; i < this.nv; i++)\r\n\t{\r\n\t\tv = this.vert[i];\r\n\t\tdocument.write( \"VERTEX: \", i, \" {\", v.label, \"} - VISIT: \", v.visit, \r\n\t\t\t\" - ADJACENCY: \", v.adjacent.traverse(), \"
        \" );\r\n\t}\r\n}","function navegaSeccion(idSeccionNueva, transicion, esReverse) {\n\n var miTransicion;\n var esReverse;\n\n switch (transicion) {\n\n case \"slide\":\n case \"fade\":\n case \"flip\":\n case \"pop\":\n case \"slidedown\":\n case \"slideup\":\n miTransicion = transicion;\n break;\n\n default:\n miTransicion = \"none\";\n break;\n }\n\n\n $.mobile.changePage(idSeccionNueva, {\"transition\": miTransicion, \"reverse\": esReverse});\n\n\n}","function inverser(){\n var motInverse = \"\";\n for( i=0; i hy\n if (tag.variants.length >= 1 &&\n callFunction(ArrayIndexOf, tag.variants, \"arevela\") > -1)\n {\n var newVariants = [];\n for (var i = 0; i < tag.variants.length; i++) {\n var variant = tag.variants[i];\n if (variant === \"arevela\")\n continue;\n _DefineDataProperty(newVariants, newVariants.length, variant);\n }\n tag.variants = newVariants;\n }\n // hy-arevmda -> hyw\n else if (tag.variants.length >= 1 &&\n callFunction(ArrayIndexOf, tag.variants, \"arevmda\") > -1)\n {\n tag.language = \"hyw\";\n var newVariants = [];\n for (var i = 0; i < tag.variants.length; i++) {\n var variant = tag.variants[i];\n if (variant === \"arevmda\")\n continue;\n _DefineDataProperty(newVariants, newVariants.length, variant);\n }\n tag.variants = newVariants;\n }\n break;\n case \"ja\":\n // ja-Latn-hepburn-heploc -> ja-Latn-alalc97\n if (tag.script === \"Latn\" &&\n tag.variants.length >= 2 &&\n callFunction(ArrayIndexOf, tag.variants, \"hepburn\") > -1 &&\n callFunction(ArrayIndexOf, tag.variants, \"heploc\", callFunction(ArrayIndexOf, tag.variants, \"hepburn\") + 1) > -1)\n {\n var newVariants = [];\n for (var i = 0; i < tag.variants.length; i++) {\n var variant = tag.variants[i];\n if (variant === \"hepburn\")\n continue;\n if (variant === \"heploc\")\n continue;\n _DefineDataProperty(newVariants, newVariants.length, variant);\n }\n if (callFunction(ArrayIndexOf, newVariants, \"alalc97\") < 0)\n _DefineDataProperty(newVariants, newVariants.length, \"alalc97\");\n tag.variants = newVariants;\n }\n break;\n case \"sgn\":\n // sgn-BR -> bzs\n if (tag.region === \"BR\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"bzs\";\n tag.region = undefined;\n }\n // sgn-CO -> csn\n else if (tag.region === \"CO\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"csn\";\n tag.region = undefined;\n }\n // sgn-DE -> gsg\n else if (tag.region === \"DE\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"gsg\";\n tag.region = undefined;\n }\n // sgn-DK -> dsl\n else if (tag.region === \"DK\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"dsl\";\n tag.region = undefined;\n }\n // sgn-ES -> ssp\n else if (tag.region === \"ES\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"ssp\";\n tag.region = undefined;\n }\n // sgn-FR -> fsl\n else if (tag.region === \"FR\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"fsl\";\n tag.region = undefined;\n }\n // sgn-GB -> bfi\n else if (tag.region === \"GB\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"bfi\";\n tag.region = undefined;\n }\n // sgn-GR -> gss\n else if (tag.region === \"GR\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"gss\";\n tag.region = undefined;\n }\n // sgn-IE -> isg\n else if (tag.region === \"IE\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"isg\";\n tag.region = undefined;\n }\n // sgn-IT -> ise\n else if (tag.region === \"IT\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"ise\";\n tag.region = undefined;\n }\n // sgn-JP -> jsl\n else if (tag.region === \"JP\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"jsl\";\n tag.region = undefined;\n }\n // sgn-MX -> mfs\n else if (tag.region === \"MX\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"mfs\";\n tag.region = undefined;\n }\n // sgn-NI -> ncs\n else if (tag.region === \"NI\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"ncs\";\n tag.region = undefined;\n }\n // sgn-NL -> dse\n else if (tag.region === \"NL\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"dse\";\n tag.region = undefined;\n }\n // sgn-NO -> nsl\n else if (tag.region === \"NO\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"nsl\";\n tag.region = undefined;\n }\n // sgn-PT -> psr\n else if (tag.region === \"PT\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"psr\";\n tag.region = undefined;\n }\n // sgn-SE -> swl\n else if (tag.region === \"SE\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"swl\";\n tag.region = undefined;\n }\n // sgn-US -> ase\n else if (tag.region === \"US\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"ase\";\n tag.region = undefined;\n }\n // sgn-ZA -> sfs\n else if (tag.region === \"ZA\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"sfs\";\n tag.region = undefined;\n }\n break;\n }\n}","viewTranslation() {\n switch(this.state.CurrentViewIndex) {\n case 0 :\n return \"By Student\";\n case 1 :\n return \"By Poem\";\n default:\n return \"\";\n }\n }","constructor(anchoInferior, anchoSuperior, altura, cantRepeticionesTextura = 1) {\n super();\n this.cantRepeticionesTextura = cantRepeticionesTextura;\n this.anguloTrapecio = Math.atan(2 * altura / (anchoInferior - anchoSuperior));\n\n const v1 = new Vertice();\n v1.posicion = [-anchoInferior / 2, -altura / 2, 0];\n const v2 = new Vertice();\n v2.posicion = [-anchoSuperior / 2, altura / 2, 0];\n\n const v3 = new Vertice();\n v3.posicion = [-anchoSuperior / 2, altura / 2, 0];\n const v4 = new Vertice();\n v4.posicion = [anchoSuperior / 2, altura / 2, 0];\n\n const v5 = new Vertice();\n v5.posicion = [anchoSuperior / 2, altura / 2, 0];\n const v6 = new Vertice();\n v6.posicion = [anchoInferior / 2, -altura / 2, 0];\n\n const v7 = new Vertice();\n v7.posicion = [anchoInferior / 2, -altura / 2, 0];\n const v8 = new Vertice();\n v8.posicion = [-anchoInferior / 2, -altura / 2, 0];\n\n const anguloNormalDerechaYEjeX = Math.PI - (Math.PI / 2) - this.anguloTrapecio;\n const normalLadoDerecho = [Math.cos(anguloNormalDerechaYEjeX), Math.sin(anguloNormalDerechaYEjeX), 0];\n const normalLadoIzquierdo = [-normalLadoDerecho[0], normalLadoDerecho[1], 0];\n\n const tangenteLadoDerecho = vec3.create();\n vec3.subtract(tangenteLadoDerecho, v6.posicion, v5.posicion);\n vec3.normalize(tangenteLadoDerecho, tangenteLadoDerecho);\n\n const tangenteLadoIzquierdo = vec3.create();\n vec3.subtract(tangenteLadoIzquierdo, v2.posicion, v1.posicion);\n vec3.normalize(tangenteLadoIzquierdo, tangenteLadoIzquierdo);\n\n [v1, v2, v3, v4, v5, v6, v7, v8].forEach(v => v.binormal = [0, 0, 1]);\n\n v1.tangente = vec3.clone(tangenteLadoIzquierdo);\n v1.normal = vec3.clone(normalLadoIzquierdo);\n v2.tangente = vec3.clone(tangenteLadoIzquierdo);\n v2.normal = vec3.clone(normalLadoIzquierdo);\n\n v3.tangente = [1, 0, 0];\n v3.normal = [0, 1, 0];\n v4.tangente = [1, 0, 0];\n v4.normal = [0, 1, 0];\n\n v5.tangente = vec3.clone(tangenteLadoDerecho);\n v5.normal = vec3.clone(normalLadoDerecho);\n v6.tangente = vec3.clone(tangenteLadoDerecho);\n v6.normal = vec3.clone(normalLadoDerecho);\n\n v7.tangente = [-1, 0, 0];\n v7.normal = [0, -1, 0];\n v8.tangente = [-1, 0, 0];\n v8.normal = [0, -1, 0];\n\n this.centro.posicion = vec3.fromValues(0, 0, 0);\n this.centro.normal = vec3.fromValues(0, 0, 1);\n\n [v1, v2, v3, v4, v5, v6, v7, v8].forEach(v => {\n v.coordenadaTextura = ((v[1] + (altura / 2)) / altura) * this.cantRepeticionesTextura;\n this.vertices.push(v)\n });\n }","function goToAenides(){\n\t\tif(visitedAen===0){\n\t\t\tvisitedAen=1;\n\t\t\t// artifacts=1;\n\t\t\tgamePrompt(\"You discover upon arrival to Aenides that they are a hostile people. You attempt to land, but they begin to fire upon your S.R.S.V. and you are forced to retreat.\",beginTravel);\n\t\t}else{\n\t\t\tgamePrompt([\"You've already been here!\",\"Where to next?\"],beginTravel);\n\t\t}\n}","function navigate(nav, navArray){\n for (var i = 0; i < navArray.length; i++) {\n if (nav == navArray[i].nav) {\n navArray[i].page.style.display = \"block\";\n if (nav != document.getElementById('homenav')){\n navArray[i].nav.style.backgroundColor = \"#FAA669\";\n }\n navArray[i].nav.style.cursor = \"default\";\n } else {\n if (!(navArray[i].page == account && (nav == signNav || nav == logNav)))\n {\n navArray[i].page.style.display = \"none\";\n }\n if (navArray[i].nav != document.getElementById('homenav')){\n navArray[i].nav.style.backgroundColor = navArray[i].color;\n }\n navArray[i].nav.style.cursor = \"pointer\";\n }\n }\n }","function mobileNavMegamenuCorrect() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t////mobile megamenus without titles / nested groupings\r\n\t\t\t\t\tvar $mobileNavSelector = '.off-canvas-menu-container.mobile-only ';\r\n\t\t\t\t\t\r\n\t\t\t\t\t$($mobileNavSelector + '.megamenu > ul > li > a').each(function () {\r\n\t\t\t\t\t\tif ($(this).text() == '–') {\r\n\t\t\t\t\t\t\tvar $navLIs = $(this).parent().find('> ul > li').clone();\r\n\t\t\t\t\t\t\t$(this).parent().find('ul').remove();\r\n\t\t\t\t\t\t\t$(this).parent().parent().append($navLIs);\r\n\t\t\t\t\t\t\t$(this).parent().remove();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t}","function routeros(hljs) {\n\n var STATEMENTS = 'foreach do while for if from to step else on-error and or not in';\n\n // Global commands: Every global command should start with \":\" token, otherwise it will be treated as variable.\n var GLOBAL_COMMANDS = 'global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime';\n\n // Common commands: Following commands available from most sub-menus:\n var COMMON_COMMANDS = 'add remove enable disable set get print export edit find run debug error info warning';\n\n var LITERALS = 'true false yes no nothing nil null';\n\n var OBJECTS = 'traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firewall firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw';\n\n var VAR = {\n className: 'variable',\n variants: [\n {begin: /\\$[\\w\\d#@][\\w\\d_]*/},\n {begin: /\\$\\{(.*?)}/}\n ]\n };\n\n var QUOTE_STRING = {\n className: 'string',\n begin: /\"/, end: /\"/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR,\n {\n className: 'variable',\n begin: /\\$\\(/, end: /\\)/,\n contains: [hljs.BACKSLASH_ESCAPE]\n }\n ]\n };\n\n var APOS_STRING = {\n className: 'string',\n begin: /'/, end: /'/\n };\n //////////////////////////////////////////////////////////////////////\n return {\n name: 'Microtik RouterOS script',\n aliases: ['routeros', 'mikrotik'],\n case_insensitive: true,\n keywords: {\n $pattern: /:?[\\w-]+/,\n literal: LITERALS,\n keyword: STATEMENTS + ' :' + STATEMENTS.split(' ').join(' :') + ' :' + GLOBAL_COMMANDS.split(' ').join(' :'),\n },\n contains: [\n { // недопустимые конструкции\n variants: [\n { begin: /^@/, end: /$/, }, // dns\n { begin: /\\/\\*/, end: /\\*\\//, }, // -- comment\n { begin: /%%/, end: /$/, }, // -- comment\n { begin: /^'/, end: /$/, }, // Monkey one line comment\n { begin: /^\\s*\\/[\\w-]+=/, end: /$/, }, // jboss-cli\n { begin: /\\/\\//, end: /$/, }, // Stan comment\n { begin: /^\\[\\\\]$/, }, // F# class declaration?\n { begin: /<\\//, end: />/, }, // HTML tags\n { begin: /^facet /, end: /\\}/, }, // roboconf - лютый костыль )))\n { begin: '^1\\\\.\\\\.(\\\\d+)$', end: /$/, }, // tap\n ],\n illegal: /./,\n },\n hljs.COMMENT('^#', '$'),\n QUOTE_STRING,\n APOS_STRING,\n VAR,\n { // attribute=value\n begin: /[\\w-]+\\=([^\\s\\{\\}\\[\\]\\(\\)]+)/,\n relevance: 0,\n returnBegin: true,\n contains: [\n {\n className: 'attribute',\n begin: /[^=]+/\n },\n {\n begin: /=/,\n endsWithParent: true,\n relevance: 0,\n contains: [\n QUOTE_STRING,\n APOS_STRING,\n VAR,\n {\n className: 'literal',\n begin: '\\\\b(' + LITERALS.split(' ').join('|') + ')\\\\b',\n },\n /*{\n // IPv4 addresses and subnets\n className: 'number',\n variants: [\n {begin: IPADDR_wBITMASK+'(,'+IPADDR_wBITMASK+')*'}, //192.168.0.0/24,1.2.3.0/24\n {begin: IPADDR+'-'+IPADDR}, // 192.168.0.1-192.168.0.3\n {begin: IPADDR+'(,'+IPADDR+')*'}, // 192.168.0.1,192.168.0.34,192.168.24.1,192.168.0.1\n ]\n }, // */\n /*{\n // MAC addresses and DHCP Client IDs\n className: 'number',\n begin: /\\b(1:)?([0-9A-Fa-f]{1,2}[:-]){5}([0-9A-Fa-f]){1,2}\\b/,\n }, //*/\n {\n // Не форматировать не классифицированные значения. Необходимо для исключения подсветки значений как built_in.\n // className: 'number',\n begin: /(\"[^\"]*\"|[^\\s\\{\\}\\[\\]]+)/,\n }, //*/\n ]\n } //*/\n ]\n },//*/\n {\n // HEX values\n className: 'number',\n begin: /\\*[0-9a-fA-F]+/,\n }, //*/\n\n {\n begin: '\\\\b(' + COMMON_COMMANDS.split(' ').join('|') + ')([\\\\s\\[\\(]|\\])',\n returnBegin: true,\n contains: [\n {\n className: 'builtin-name', //'function',\n begin: /\\w+/,\n },\n ],\n },\n\n {\n className: 'built_in',\n variants: [\n {begin: '(\\\\.\\\\./|/|\\\\s)((' + OBJECTS.split(' ').join('|') + ');?\\\\s)+',relevance: 10,},\n {begin: /\\.\\./,},\n ],\n },//*/\n ]\n };\n}","function routeros(hljs) {\n\n var STATEMENTS = 'foreach do while for if from to step else on-error and or not in';\n\n // Global commands: Every global command should start with \":\" token, otherwise it will be treated as variable.\n var GLOBAL_COMMANDS = 'global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime';\n\n // Common commands: Following commands available from most sub-menus:\n var COMMON_COMMANDS = 'add remove enable disable set get print export edit find run debug error info warning';\n\n var LITERALS = 'true false yes no nothing nil null';\n\n var OBJECTS = 'traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firewall firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw';\n\n var VAR = {\n className: 'variable',\n variants: [\n {begin: /\\$[\\w\\d#@][\\w\\d_]*/},\n {begin: /\\$\\{(.*?)}/}\n ]\n };\n\n var QUOTE_STRING = {\n className: 'string',\n begin: /\"/, end: /\"/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR,\n {\n className: 'variable',\n begin: /\\$\\(/, end: /\\)/,\n contains: [hljs.BACKSLASH_ESCAPE]\n }\n ]\n };\n\n var APOS_STRING = {\n className: 'string',\n begin: /'/, end: /'/\n };\n //////////////////////////////////////////////////////////////////////\n return {\n name: 'Microtik RouterOS script',\n aliases: ['routeros', 'mikrotik'],\n case_insensitive: true,\n lexemes: /:?[\\w-]+/,\n keywords: {\n literal: LITERALS,\n keyword: STATEMENTS + ' :' + STATEMENTS.split(' ').join(' :') + ' :' + GLOBAL_COMMANDS.split(' ').join(' :'),\n },\n contains: [\n { // недопустимые конструкции\n variants: [\n { begin: /^@/, end: /$/, }, // dns\n { begin: /\\/\\*/, end: /\\*\\//, }, // -- comment\n { begin: /%%/, end: /$/, }, // -- comment\n { begin: /^'/, end: /$/, }, // Monkey one line comment\n { begin: /^\\s*\\/[\\w-]+=/, end: /$/, }, // jboss-cli\n { begin: /\\/\\//, end: /$/, }, // Stan comment\n { begin: /^\\[\\\\]$/, }, // F# class declaration?\n { begin: /<\\//, end: />/, }, // HTML tags\n { begin: /^facet /, end: /\\}/, }, // roboconf - лютый костыль )))\n { begin: '^1\\\\.\\\\.(\\\\d+)$', end: /$/, }, // tap\n ],\n illegal: /./,\n },\n hljs.COMMENT('^#', '$'),\n QUOTE_STRING,\n APOS_STRING,\n VAR,\n { // attribute=value\n begin: /[\\w-]+\\=([^\\s\\{\\}\\[\\]\\(\\)]+)/,\n relevance: 0,\n returnBegin: true,\n contains: [\n {\n className: 'attribute',\n begin: /[^=]+/\n },\n {\n begin: /=/,\n endsWithParent: true,\n relevance: 0,\n contains: [\n QUOTE_STRING,\n APOS_STRING,\n VAR,\n {\n className: 'literal',\n begin: '\\\\b(' + LITERALS.split(' ').join('|') + ')\\\\b',\n },\n /*{\n // IPv4 addresses and subnets\n className: 'number',\n variants: [\n {begin: IPADDR_wBITMASK+'(,'+IPADDR_wBITMASK+')*'}, //192.168.0.0/24,1.2.3.0/24\n {begin: IPADDR+'-'+IPADDR}, // 192.168.0.1-192.168.0.3\n {begin: IPADDR+'(,'+IPADDR+')*'}, // 192.168.0.1,192.168.0.34,192.168.24.1,192.168.0.1\n ]\n }, // */\n /*{\n // MAC addresses and DHCP Client IDs\n className: 'number',\n begin: /\\b(1:)?([0-9A-Fa-f]{1,2}[:-]){5}([0-9A-Fa-f]){1,2}\\b/,\n }, //*/\n {\n // Не форматировать не классифицированные значения. Необходимо для исключения подсветки значений как built_in.\n // className: 'number',\n begin: /(\"[^\"]*\"|[^\\s\\{\\}\\[\\]]+)/,\n }, //*/\n ]\n } //*/\n ]\n },//*/\n {\n // HEX values\n className: 'number',\n begin: /\\*[0-9a-fA-F]+/,\n }, //*/\n\n {\n begin: '\\\\b(' + COMMON_COMMANDS.split(' ').join('|') + ')([\\\\s\\[\\(]|\\])',\n returnBegin: true,\n contains: [\n {\n className: 'builtin-name', //'function',\n begin: /\\w+/,\n },\n ],\n },\n\n {\n className: 'built_in',\n variants: [\n {begin: '(\\\\.\\\\./|/|\\\\s)((' + OBJECTS.split(' ').join('|') + ');?\\\\s)+',relevance: 10,},\n {begin: /\\.\\./,},\n ],\n },//*/\n ]\n };\n}","function variants() {\n\t\tvar oList = document.getElementById(\"variantsList\"),\n\t\t\tmQueryOptions = {\n\t\t\t\tteam : mParameters.team,\n\t\t\t\tframes : mParameters.frames || 4\n\t\t\t};\n\n\t\tObject.keys(mVariants).forEach(function (sTitle) {\n\t\t\tvar oAnchor = document.createElement(\"a\"),\n\t\t\t\toItem = document.createElement(\"li\"),\n\t\t\t\tmVariantQueryOptions = Object.assign({}, mQueryOptions, mVariants[sTitle]),\n\t\t\t\tsQuery = Object.keys(mVariantQueryOptions).map(function (sKey) {\n\t\t\t\t\t\treturn sKey + \"=\" + mVariantQueryOptions[sKey];\n\t\t\t\t\t}).join(\"&\");\n\n\t\t\toAnchor.setAttribute(\"href\",\n\t\t\t\t\"test-resources/sap/ui/core/qunit/internal/BeforePush.html?\" + sQuery);\n\t\t\toAnchor.appendChild(document.createTextNode(sTitle));\n\t\t\toItem.appendChild(oAnchor);\n\t\t\toList.appendChild(oItem);\n\t\t});\n\t\tdocument.getElementById(\"variants\").classList.remove(\"hidden\");\n\t}","function getVoisins(name){\r\n\tif(name==\"eastern_australia\"){return [\"western_australia\",\"new_guinea\",\"indonesia\"]}\r\n\tif(name==\"western_australia\"){return [\"eastern_australia\",\"new_guinea\",\"indonesia\"]}\r\n\tif(name==\"new_guinea\"){return [\"western_australia\",\"eastern_australia\",\"indonesia\"]}\r\n\tif(name==\"indonesia\"){return [\"western_australia\",\"new_guinea\",\"siam\"]}\r\n\tif(name==\"siam\"){return [\"indonesia\",\"india\",\"china\"]}\r\n\tif(name==\"india\"){return [\"siam\",\"china\",\"afghanistan\",\"middle_east\"]}\r\n\tif(name==\"middle_east\"){return [\"russia\",\"east_africa\",\"egypt\",\"afghanistan\",\"india\",\"southern_europe\"]}\r\n\tif(name==\"afghanistan\"){return [\"middle_east\",\"india\",\"china\",\"russia\",\"ural\"]}\r\n\tif(name==\"china\"){return [\"afghanistan\",\"siam\",\"india\",\"ural\",\"siberia\",\"mongolia\"]}\r\n\tif(name==\"mongolia\"){return [\"china\",\"siberia\",\"japan\",\"kamchatka\",\"irkutsk\"]}\r\n\tif(name==\"japan\"){return [\"kamchatka\",\"mongolia\"]}\r\n\tif(name==\"siberia\"){return [\"ural\",\"china\",\"mongolia\",\"yakursk\",\"irkutsk\"]}\r\n\tif(name==\"ural\"){return [\"russia\",\"afghanistan\",\"china\",\"siberia\"]}\r\n\tif(name==\"irkutsk\"){return [\"mongolia\",\"siberia\",\"kamchatka\",\"yakursk\"]}\r\n\tif(name==\"yakursk\"){return [\"irkutsk\",\"kamchatka\",\"siberia\"]}\r\n\tif(name==\"kamchatka\"){return [\"irkutsk\",\"yakursk\",\"japan\",\"mongolia\",\"alaska\"]}\r\n\tif(name==\"russia\"){return [\"ural\",\"afghanistan\",\"middle_east\",\"southern_europe\",\"northern_europe\",\"scandinavia\"]}\r\n\tif(name==\"scandinavia\"){return [\"russia\",\"iceland\",\"great_britain\",\"northern_europe\"]}\r\n\tif(name==\"northern_europe\"){return [\"southern_europe\",\"russia\",\"scandinavia\",\"western_europe\",\"great_britain\"]}\r\n\tif(name==\"southern_europe\"){return [\"egypt\",\"north_africa\",\"middle_east\",\"western_europe\",\"russia\"]}\r\n\tif(name==\"western_europe\"){return [\"north_africa\",\"great_britain\",\"southern_europe\",\"northern_europe\"]}\r\n\tif(name==\"great_britain\"){return [\"western_europe\",\"iceland\",\"scandinavia\",\"northern_europe\"]}\r\n\tif(name==\"iceland\"){return [\"great_britain\",\"northern_europe\",\"scandinavia\",\"greenland\"]}\r\n\tif(name==\"greenland\"){return [\"iceland\",\"northwest_territory\",\"ontario\",\"quebec\"]}\r\n\tif(name==\"northwest_territory\"){return [\"alaska\",\"ontario\",\"greenland\",\"alberta\"]}\r\n\tif(name==\"alaska\"){return [\"northwest_territory\",\"alberta\",\"kamchatka\"]}\r\n\tif(name==\"alberta\"){return [\"alaska\",\"northwest_territory\",\"ontario\",\"western_united_states\"]}\r\n\tif(name==\"ontario\"){return [\"western_united_states\",\"alberta\",\"quebec\",\"eastern_united_states\",\"northwest_territory\",\"greenland\"]}\r\n\tif(name==\"quebec\"){return [\"greenland\",\"ontario\",\"eastern_united_states\"]}\r\n\tif(name==\"eastern_united_states\"){return [\"western_united_states\",\"ontario\",\"quebec\",\"central_america\"]}\r\n\tif(name==\"western_united_states\"){return [\"alberta\",\"ontario\",\"central_america\",\"eastern_united_states\"]}\r\n\tif(name==\"central_america\"){return [\"western_united_states\",\"eastern_united_states\",\"venezuela\"]}\r\n\tif(name==\"venezuela\"){return [\"central_america\",\"brazil\",\"peru\"]}\r\n\tif(name==\"peru\"){return [\"brazil\",\"venezuela\",\"argentina\"]}\r\n\tif(name==\"brazil\"){return [\"peru\",\"venezuela\",\"argentina\",\"north_africa\"]}\r\n\tif(name==\"argentina\"){return [\"peru\",\"brazil\"]}\r\n\tif(name==\"north_africa\"){return [\"brazil\",\"western_europe\",\"southern_europe\",\"egypt\",\"east_africa\",\"congo\"]}\r\n\tif(name==\"egypt\"){return [\"southern_europe\",\"middle_east\",\"north_africa\",\"east_africa\"]}\r\n\tif(name==\"east_africa\"){return [\"egypt\",\"middle_east\",\"north_africa\",\"congo\",\"madagascar\",\"south_africa\"]}\r\n\tif(name==\"madagascar\"){return [\"south_africa\",\"east_africa\"]}\r\n\tif(name==\"south_africa\"){return [\"madagascar\",\"congo\",\"east_africa\"]}\r\n\tif(name==\"congo\"){return [\"south_africa\",\"north_africa\",\"east_africa\"]}\r\n}","function fl_outToLevivot ()\n\t\t{if(freez==\"false\"){\n\t\t\tconsole.log(\"hit\")\n\t\t\tthis.rimon.alpha=1\n\t\t\tthis.sufgania.alpha=1\n\t\t\tthis.selek.alpha=1\n\t\t\tthis.tamar.alpha=1\n\t\t\tthis.karpas.alpha=1\n\t\t\tthis.haroset.alpha=1\n\t\t\tthis.maza.alpha=1\n\t\t\tthis.hasa.alpha=1\n\t\t\tthis.beiza.alpha=1\n\t\t\tthis.hazeret.alpha=1\n\t\t\tthis.mamtak.alpha=1\n\t\t\tthis.gvina.alpha=1\n\t\t\tthis.oznei_aman.alpha=1\n\t\t\tthis.dvash.alpha=1\n\t\t\tthis.dag.alpha=1\n\t\t\tthis.sumsum.alpha=1\n\t\t\tthis.perot.alpha=1\n\t\t\tthis.mishloah.alpha=1\n\t\t\tthis.of.alpha=1\n\t\t this.tu_btn.alpha=1\n\t\t this.purim_btn.alpha=1\n\t\t this.pesach_btn.alpha=1\n\t\t this.shavuot_btn.alpha=1\n\t\t this.rosh_ha_shana_btn.alpha=1\n\t\t this.modern_btn.alpha=1\n\t\t\t\t\t this.arrow_btn.alpha=0\n\t\tthis.arrowAside_mc.alpha=0\n\t\tthis.gvina_explain.alpha=0\n\t\tthis.mishloah_explain.alpha=0\n\t\tthis.sufgania_explain.alpha=0\n\t\tthis.perot_explain.alpha=0\n\t\tthis.tapuah_explain.alpha=0\n\t\tthis.maza_explain.alpha=0\n\t\t\n\t\t}}","addVuln() {\n const navigateAction = NavigationActions.navigate({\n routeName: 'AddVuln'\n });\n this.props.navigation.dispatch(navigateAction);\n }","previousChapter() {\n var prev = '/' + (parseInt(this.props.currentRoute.get('params').get('surahId')) - 1);\n var currentPos = parseInt(this.props.currentRoute.get('params').get('surahId'));\n if (currentPos <= 1){\n return null;\n }\n else {\n return (\n \n \n PREVIOUS SURAH\n \n );\n }\n }","function back() {\n\tif (!alternativeRatingViewFlag) {\n\t\thideView(schritteTeilnehmen[currentView]);\n\t\tdisableNavElement(schritteNavTeilnehmen[currentView]);\n\t\tif (currentView > 0) {\n\t\t\tcurrentView -= 1;\n\t\t} else {\n\t\t\tcurrentView = schritteTeilnehmen.length - 1;\n\t\t}\n\t\tdocument.getElementById(schritteTeilnehmen[currentView]).style.visibility = \"visible\";\n\t\tdocument.getElementById(schritteNavTeilnehmen[currentView]).style.backgroundColor = navActiveTeilnehmenColor;\n\t\tspecificViewChanges(currentView);\n\t\tif (currentView >= 2) { // reached the alternative ratings view where we will \"fake\" move next, but stay at current view\n alternativeRatingViewFlag = true;\n\t\t}\n\t} else {\n\t\trateHint = document.getElementById(\"rateHint\");\n\t\thideHints(rateHint);\n\t\tif (currentAlternative <= 0) {\n //alternativeRatingViewFlag = false;\n\t\t\t//back();\n\t\t} else {\n\t\t\tbackAlternative();\n }\n }\n}","function goBack() {\r\n \t\t$state.go('main.afiliado.edit.examen.list', {afiliadoId: $stateParams.afiliadoId});\r\n \t}","inventarioNaves() {\n return this.poscionNaves.length;\n }","function tourDeMot(){\n\tif(qual1Accept){\n\t\ttourDeLettres(document.getElementById('qual1'),0);\n\t}\n\tif(qual2Accept){\n\t\ttourDeLettres(document.getElementById('qual2'),1);\n\t}\n\tif(qual3Accept){\n\t\ttourDeLettres(document.getElementById('qual3'),2);\n\t}\n\tif(qual4Accept){\n\t\ttourDeLettres(document.getElementById('qual4'),3);\n\t}\n\tif(qual5Accept){\n\t\ttourDeLettres(document.getElementById('qual5'),4);\n\t}\n}","function redirect(v) {\n var edges = tree.inEdges(v);\n for (var i in edges) {\n var e = edges[i];\n var u = tree.source(e);\n var value = tree.edge(e);\n redirect(u);\n tree.delEdge(e);\n value.reversed = !value.reversed;\n tree.addEdge(e, v, u, value);\n }\n }","function NFA(lang, states, initial) {\n this.lang = lang;\n this.states = states;\n this.initial = initial;\n this.current = [initial];\n}","function l$5(l,e){0===e.normalType||1===e.normalType?(l.include(o$8,e),l.varyings.add(\"vNormalWorld\",\"vec3\"),l.varyings.add(\"vNormalView\",\"vec3\"),l.vertex.uniforms.add(\"uTransformNormal_GlobalFromModel\",\"mat3\"),l.vertex.uniforms.add(\"uTransformNormal_ViewFromGlobal\",\"mat3\"),l.vertex.code.add(t$i`void forwardNormal() {\nvNormalWorld = uTransformNormal_GlobalFromModel * normalModel();\nvNormalView = uTransformNormal_ViewFromGlobal * vNormalWorld;\n}`)):2===e.normalType?(l.include(d$2,e),l.varyings.add(\"vNormalWorld\",\"vec3\"),l.vertex.code.add(t$i`\n void forwardNormal() {\n vNormalWorld = ${1===e.viewingMode?t$i`normalize(vPositionWorldCameraRelative);`:t$i`vec3(0.0, 0.0, 1.0);`}\n }\n `)):l.vertex.code.add(t$i`void forwardNormal() {}`);}","equivalentMove(_move,size){\n const move =_move.split('');\n let inverted = '';\n let depth;\n if(move[0]==='0'){\n depth = size - parseInt(move[1]) + 1;\n }\n else{\n depth = size - parseInt(move[0]+move[1]) + 1;\n }\n \n if(depth<10){\n inverted+=`0${depth}`\n }\n else{\n inverted+=`${depth}`\n }\n \n switch(move[2]){\n case 'F':\n inverted+='B';\n break;\n case 'f':\n inverted+='b';\n break;\n case 'U':\n inverted+='D';\n break;\n case 'u':\n inverted+='d';\n break;\n case 'R':\n inverted+='L';\n break;\n case 'r':\n inverted+='l';\n break;\n case 'B':\n inverted+='F';\n break;\n case 'b':\n inverted+='f';\n break;\n case 'L':\n inverted+='R';\n break;\n case 'l':\n inverted+='r';\n break;\n case 'D':\n inverted+='U';\n break;\n case 'd':\n inverted+='u';\n break;\n default:\n }\n \n if(move.length<4) inverted+=\"'\";\n return inverted;\n \n }","function onNavBack() {\n _currentTilesType = \"variables\";\n _selectedVariable = null;\n _$searchControl.val(_savedSearchQuery);\n\n _datasourceInfoPanel.hide();\n _$datasourcesList.hide();\n _$datasourcesListContent.empty();\n _$variablesList.show();\n _$navBackBtn.hide();\n _$sortControl.show();\n\n _$navPath.text(_currentSortMode == \"byName\" ?\n FC.Settings.LAYERS_BY_NAME_MESSAGE : FC.Settings.LAYERS_BY_CATEGORY_MESSAGE);\n\n if(_noCategoriesFound)\n _$sectionHeader.css(\"display\", \"none\");\n }","get defaultNomenCode() {\n if (has(this.phyx, 'defaultNomenclaturalCodeIRI')) return this.phyx.defaultNomenclaturalCodeIRI;\n const nomenCodes = (this.phyx.phylorefs || [])\n .map(phyloref => new PhylorefWrapper(phyloref).defaultNomenCode);\n const uniqNomenCodes = uniq(nomenCodes);\n if (uniqNomenCodes.length === 1) return uniqNomenCodes[0];\n return owlterms.UNKNOWN_CODE;\n }"],"string":"[\n \"function go_articulos() {\\n $state.go('complex_articles.list');\\n }\",\n \"set_variant_segment(field, normal_segment) {\\n\\n let graph = this.g.set_graph();\\n\\n let a_variant = this.db_anatomy_data[field]\\n if (a_variant == 'undefined' || a_variant == null) {\\n let default_variant = normal_segment;\\n let d_node = graph.getNodeAttributes(default_variant);\\n return d_node;\\n }\\n\\n if (this.db_lesion_data.length !== 0 &&\\n this.db_lesion_data.length !== null\\n ) {\\n\\n for (let i = 0; i < this.db_lesion_data.length; i++) {\\n let d_i = this.db_lesion_data[i];\\n let a_node = graph.getNodeAttributes(a_variant);\\n return a_node;\\n } //for lesion_data\\n }\\n }\",\n \"function visSingleView() {\\n console.log(\\\"visSingleView\\\");\\n //add history.back();\\n //Konstant der bestemmer window.location.search\\n //Konstant der definerer en unik egenskab (her fx. navn).\\n //Konstant der definerer URL til json\\n //Andre lokale variabler\\n //opret en klon med alle info fra json og sæt ind på siden vha textContent, link til billede + alt.\\n}\",\n \"link() {\\n this._variable = this._sbolDocument.lookupURI(this._variable);\\n this._variantDerivations = this._sbolDocument.lookupURIs(this._variantDerivations);\\n this._variantCollections = this._sbolDocument.lookupURIs(this._variantCollections);\\n this._variants = this._sbolDocument.lookupURIs(this._variants);\\n }\",\n \"randomNaves() {\\n return Math.floor(Math.random() * this.poscionNaves.length) + 0;\\n }\",\n \"function go_articulos() {\\n $state.go('articles.list');\\n }\",\n \"function drawNeueAmeise() {\\n let a = new Sem.Ameise();\\n Sem.ant.push(a);\\n let h = new Sem.AmeiseRot();\\n Sem.antRed.push(h);\\n let b = new Sem.AmeiseBrown();\\n Sem.antBrown.push(b);\\n n++;\\n }\",\n \"afficherEcranParent(ecran) {\\n this.props.navigation.navigate(ecran);\\n }\",\n \"Navigate(string, Variant, Variant, Variant, Variant) {\\n\\n }\",\n \"req_07_printAllRev() {\\n let nav = this.hacker2;\\n\\n let textoInverso = nav\\n .replace(/ /g, '')\\n .split('')\\n .reverse()\\n .join('');\\n\\n console.log(textoInverso);\\n }\",\n \"function loadExistingLesion(lesionNumber) {\\n meCurrentLesion = lesionNumber;\\n //setFrameUrl('right','lesion_segments.htm');\\n\\n if( meDominance == 'left' ) {\\n\\t//setFrameUrl('left','selectedleft.htm');\\n }\\n else {\\n\\t//setFrameUrl('left','selectedright.htm');\\n }\\n}\",\n \"function navigation() {\\n\\n console.log(\\\"Bienvenue dans le gestionnaire de contact\\\");\\n console.log(\\\"1 : Liste des contacts\\\");\\n console.log(\\\"2 : Ajouter un contact\\\");\\n console.log(\\\"3 : Quitter\\\");\\n}\",\n \"function loadDirections(string) {\\r\\n document.querySelector(\\\"nav ul li:first-of-type\\\").className = \\\"\\\";\\r\\n document.querySelector(\\\"nav ul li:last-of-type\\\").className = \\\"current\\\";\\r\\n document.getElementById(\\\"setup\\\").style.display = \\\"none\\\";\\r\\n document.getElementById(\\\"location\\\").style.display = \\\"block\\\";\\r\\n}\",\n \"function visVare(snap) {\\n const key = snap.key;\\n const vare = snap.val();\\n\\n let index = 4;\\n\\n let pris = `${vare.Pris}`\\n\\n allDisplay.innerHTML += `\\n
        \\n

        ${vare.Navn}

        \\n \\n

        ${pris},-

        \\n Se mer\\n
        \\n `;\\n}\",\n \"function cambioNaturaSplitReverse() {\\n var selectedOption = $('option:selected', selectNaturaOnere);\\n var codiceSplitReverseSelezionato = $('option:selected', selectSplitReverse).data('codice');\\n var divsToHide;\\n if(!selectedOption.length || !selectedOption.val()) {\\n // Nulla da effettuare: esco\\n return;\\n }\\n\\n codice = selectedOption.data('codice');\\n divsToHide = divsMayHideNatura.filter('[data-hidden-natura~=\\\"' + codice + '\\\"]');\\n divsMayHideSplitReverse.slideDown();\\n showDivs(divsMayHideNatura.not(divsToHide));\\n hideDivs(divsToHide);\\n\\n // Gestione della select\\n if(codice === codiceEsenzione) {\\n divSelectSplitReverse.slideUp();\\n // Esente: seleziono direttamente il campo 'esente'\\n selectSplitReverse.removeAttr('disabled');\\n optionEsente.prop('selected', true);\\n return;\\n }\\n if(codice === codiceSplitReverse) {\\n divSelectSplitReverse.slideDown();\\n selectSplitReverse.removeAttr('disabled');\\n if (optionEsente.is(':checked')) {\\n selectSplitReverse.val('');\\n }\\n $(\\\"label[for='aliquotaCaricoSoggetto']\\\").html(codiceSplitReverseSelezionato === \\\"SI\\\" || codiceSplitReverseSelezionato === \\\"SC\\\"? \\\"Aliquota\\\": \\\"Aliquota a carico soggetto\\\");\\n return;\\n }\\n divSelectSplitReverse.slideUp();\\n $(\\\"label[for='aliquotaCaricoSoggetto']\\\").html(\\\"Aliquota a carico soggetto\\\");\\n selectSplitReverse.attr('disabled', true);\\n }\",\n \"function _addNavigation() {}\",\n \"function visVare(snap) {\\n const key = snap.key;\\n const vare = snap.val();\\n\\n let index = 4; // Tilfeldig farge er teit - Math.floor(Math.random() * 5);\\n let rabatt = 1 - (Math.floor(Math.random() * 15) / 20);\\n let orginalPris = `${vare.Pris}`\\n let prisDecider = `${vare.Pris}` * rabatt;\\n let pris = Math.round(prisDecider);\\n\\n\\n if (orginalPris == pris) {\\n pris *= 0.9;\\n }\\n\\n\\n display.innerHTML += `\\n
        \\n

        ${vare.Navn}

        \\n \\n

        Før ${orginalPris},-

        \\n

        ${pris},-

        \\n Se mer\\n
        \\n `;\\n}\",\n \"function napVector (vectorChoice) {\\n\\t location.href = document.nap.vector.options[document.nap.vector.selectedIndex].value;\\n\\t }\",\n \"function navigation() {\\n\\t\\n\\t/* @TODO: reverse li und stelle angemeldet als nach oben */\\n\\t//$$('#account ul').insert( $$('#account ul li').reverse() );\\n}\",\n \"function verifierMot()\\n{\\n var lemot = \\\"\\\";\\n for(let i=0; i {\\n if (filter == ur.Farve || filter == \\\"alle\\\") {\\n let klon = temp.cloneNode(true).content;\\n klon.querySelector(\\\"img\\\").src = \\\"images/\\\" + ur.Billede + \\\".webp\\\";\\n klon.querySelector(\\\".navn\\\").textContent = ur.Navn;\\n klon.querySelector(\\\".farve\\\").textContent = ur.Farve;\\n klon.querySelector(\\\".pris\\\").textContent = ur.Pris + \\\",-\\\";\\n klon.querySelector(\\\"article\\\").addEventListener(\\\"click\\\", () => {\\n location.href = \\\"produkter_detaljer.html?id=\\\" + ur._id;\\n });\\n\\n container.appendChild(klon);\\n }\\n });\\n}\",\n \"buscarPokemon(termino) {\\n console.log('capturo info de text - navbar.component.ts ', termino);\\n this.router.navigate(['/buscar', termino]);\\n }\",\n \"function Navigate() {\\n source_vector_draw_rdc.clear();\\n source_vector_draw_etage.clear();\\n drawPinStart();\\n\\n var porte_start = porteStartLocalisation;\\n var porte_end = document.getElementById(\\\"endNavigation\\\").value;\\n\\n var collection_route = Route(porte_start, porte_end);\\n collection_route.forEach(triple => { //start, end, layer\\n Drawline(triple[0], triple[1], triple[2]);\\n });\\n}\",\n \"function toNeumeFromVariations(){\\n pushedVariations = false;\\n variations = new Array();\\n \\n document.getElementById(\\\"input\\\").innerHTML = neumeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function sceneEnter(scene){\\r\\n\\t\\tvar currentNav = \\\"\\\"; // Aktueller Navigationspunkt\\r\\n\\t\\tswitch(scene){\\r\\n\\t\\t\\tcase \\\"intro1\\\":\\r\\n\\t\\t\\tcase \\\"intro2\\\":\\r\\n\\t\\t\\t\\tcurrentNav = \\\"intro\\\";\\r\\n\\t\\t\\t\\tbreak; \\r\\n\\t\\t\\tcase \\\"lecture\\\": \\r\\n\\t\\t\\t\\tcurrentNav = \\\"lecture\\\";\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase \\\"selfstudy1\\\":\\r\\n\\t\\t\\tcase \\\"selfstudy2\\\":\\r\\n\\t\\t\\tcase \\\"selfstudy3\\\":\\r\\n\\t\\t\\t\\tcurrentNav = \\\"selfstudy\\\";\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t\\tcase \\\"canteen\\\":\\r\\n\\t\\t\\tcase \\\"feature\\\":\\r\\n\\t\\t\\tcase \\\"outro\\\":\\r\\n\\t\\t\\t\\tcurrentNav = \\\"tools\\\";\\r\\n\\t\\t\\t\\tbreak;\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\tactivateNav(currentNav);\\r\\n\\t}\",\n \"function verifGg() {\\r\\n verifColonne();\\r\\n verifLigne();\\r\\n verifDiagonaleSlach();\\r\\n verifDiagonaleBackSlash();\\r\\n basculeJoueur();\\r\\n}\",\n \"function NextLesion()\\n{\\n if( meNumberOfLesions + 1 <= 12 ) {\\n\\tmeNumberOfLesions++;\\n\\tmeCurrentLesion = meNumberOfLesions-1;\\n\\n\\t//setFrameUrl('left','empty.htm');\\n\\t//setFrameUrl('right','empty.htm');\\n\\n\\tif( meDominance == 'left' ){\\n\\t //setFrameUrl('left','selectedleft.htm');\\n\\t} else {\\n\\t\\t\\n\\t}\\n\\t //setFrameUrl('left','selectedright.htm');\\n\\n\\t//setFrameUrl('right','lesion_segments.htm');\\n\\n\\t// header update\\n\\tUpdateCurrentLesion();\\n }\\n else {\\n\\talert(\\\"Maximum number of lesions is 12\\\");\\n\\treturn;\\n }\\n}\",\n \"function setLinkOrientation() {\\n\\n for (var i = 0, n = links.length; i < n; i++) {\\n if (vertical) {\\n // vertical scheme\\n /*switch (getTipoNo(links[i].target)) {\\n // CVM && PAT priority is highest\\n case 'CVM':\\n case 'PAT':\\n links[i] = switchLinks(links[i]);\\n break;\\n // ATE && CEMU priority is second highest\\n case 'ATE':\\n if (getTipoNo(links[i].source) != 'CVM' || getTipoNo(links[i].source) != 'PAT' || getTipoNo(links[i].source) != 'CP')\\n links[i] = switchLinks(links[i]);\\n break;\\n case 'CEMU':\\n if (getTipoNo(links[i].source) == 'CVM' || getTipoNo(links[i].source) == 'PAT' || getTipoNo(links[i].source) == 'CP')\\n links[i] = switchLinks(links[i]);\\n break;\\n // CP priority is third highest\\n case 'CP':\\n if (getTipoNo(links[i].source) != 'CVM' || getTipoNo(links[i].source) != 'PAT')\\n links[i] = switchLinks(links[i]);\\n break;\\n // CC priority is fourth highest\\n case 'CC':\\n if (getTipoNo(links[i].source) != 'ATE' || getTipoNo(links[i].source) == 'CP')\\n links[i] = switchLinks(links[i]);\\n break;\\n }*/\\n\\n switch (getTipoNo(links[i].source)) {\\n // CVM && PAT priority is highest\\n case 'CVM':\\n case 'PAT':\\n if (getTipoNo(links[i].target) != 'CP' && getTipoNo(links[i].target) != 'ATE')\\n links[i] = switchLinks(links[i]);\\n break;\\n // ATE && CEMU priority is second highest\\n case 'ATE':\\n if (getTipoNo(links[i].target) != 'CC')\\n links[i] = switchLinks(links[i]);\\n break;\\n case 'CEMU':\\n if (getTipoNo(links[i].target) == 'CVM' && getTipoNo(links[i].source) == 'PAT' && getTipoNo(links[i].source) == 'CP')\\n links[i] = switchLinks(links[i]);\\n break;\\n // CP priority is third highest\\n case 'CP':\\n if (getTipoNo(links[i].target) != 'CC' && getTipoNo(links[i].target) != 'ATE')\\n links[i] = switchLinks(links[i]);\\n break;\\n // CC priority is third highest\\n case 'CC':\\n links[i] = switchLinks(links[i]);\\n break;\\n }\\n } else {\\n // horizontal scheme\\n switch (getTipoNo(links[i]['target'])) {\\n // CVM && PAT priority is highest\\n case 'CVM':\\n case 'PAT':\\n links[i] = switchLinks(links[i]);\\n break;\\n // ATE && CEMU priority is second highest\\n case 'ATE':\\n case 'CEMU':\\n if (getTipoNo(links[i].source) == 'CVM' || getTipoNo(links[i].source) == 'PAT')\\n links[i] = switchLinks(links[i]);\\n break;\\n // ATI priority is third highest\\n //case 'ATI':\\n // CC priority is third highest\\n case 'CC':\\n if (getTipoNo(links[i].source) == 'CVM' || getTipoNo(links[i].source) == 'PAT' || getTipoNo(links[i].source) == 'ATE')\\n links[i] = switchLinks(links[i]);\\n break;\\n }\\n }\\n }\\n\\n // compute paths to endpoints\\n if (links.length > 0) {\\n\\n // select the source node\\n var start = firstOfType('CVM');\\n if (start == -1)\\n start = firstOfType('ATE');\\n //if (start == -1)\\n // start = firstOfType('ATI');\\n if (start == -1)\\n start = firstOfType('CC');\\n if (start != -1) {\\n\\n for (i = 0, n = nodes.length; i < n; i++) {\\n if (neighbourNodes(i, []).length == 1 && getTipoNo(nodes[i]) == 'CP' || getTipoNo(nodes[i]) == 'TT') {\\n\\n // get the path from the ati to the node\\n var path = findPath(start, nodes[i].id - 1, neighbourNodes(start, []), []);\\n\\n // update source and target\\n for (var j = 0, m = path.length - 1; j < m; j++)\\n for (var k = 0; k < links.length; k++)\\n if (compareNodes(links[k].source, nodes[path[j]]) && compareNodes(links[k].target, nodes[path[j + 1]]))\\n switchLinks(links[k]);\\n }\\n }\\n }\\n }\\n\\n // PAT -> [ATE,ATI]\\n for (i = 0, n = nodes.length; i < n; i++) {\\n if (getTipoNo(nodes[i]) == 'PAT') {\\n\\n // find ATE or ATI\\n for (j = 0; j < nodes.length; j++) {\\n if (getTipoNo(nodes[j]) == 'ATE' || getTipoNo(nodes[j]) == 'ATI') {\\n\\n // get path to ATE/ATI\\n path = findPath(i, j, neighbourNodes(i, []), []).reverse();\\n\\n // stop if ATI is found (for ATE targets)\\n for (k = 0; k < path.length; k++)\\n if (getTipoNo(nodes[path[k]]) == 'ATI')\\n path.splice(k + 1, path.length - k - 1);\\n\\n // find links in path\\n for (k = 1; k < path.length; k++)\\n for (var l = 0; l < links.length; l++)\\n if (compareNodes(nodes[path[k]], links[l].source) && compareNodes(nodes[path[k - 1]], links[l].target))\\n switchLinks(links[l]);\\n }\\n }\\n }\\n }\\n}\",\n \"function Nevis() {}\",\n \"function Nevis() {}\",\n \"function Nevis() {}\",\n \"function abrePredio(sigla) {\\n history.push(`/apartamentos-predio/${sigla}`)\\n }\",\n \"navigatPageMonCompte() {\\n this.props.navigation.navigate('MonCompte');\\n }\",\n \"function nav() {\\n return (\\n
        \\n
        \\n
        Genre
        \\n \\n \\n Romance\\n \\n \\n Science Fiction\\n \\n \\n Horror\\n \\n \\n Poetry\\n \\n \\n
        Popular
        \\n \\n \\n EXAMPLE\\n \\n \\n EXAMPLE\\n \\n \\n EXAMPLE\\n \\n \\n EXAMPLE\\n \\n \\n EXAMPLE\\n \\n \\n
        \\n
        \\n );\\n}\",\n \"navToArt(slug) {\\n\\n this.setState(() => {\\n return {\\n\\n slug: slug,\\n whichPage: \\\"Art\\\"\\n }\\n })\\n\\n\\n }\",\n \"function replaceNavText(league) {\\n $('.league-name-active a').text(league);\\n \\n // hide current league name in dropdown, show all the others\\n $('.drop-down li').each(function(){\\n $(this).show();\\n });\\n $('#nav-'+league).parent().hide();\\n}\",\n \"function findNavigation() {\\n var navs = d.querySelectorAll('.' + proto.classes.nav);\\n for (var i = navs.length; i--;) {\\n new Navigation({ parent: navs[i] });\\n }\\n }\",\n \"function beforeShowInfantglossary(e)\\n{\\n BindInfantGlossaryDetails(currentBook);\\n closeNav();\\n}\",\n \"detail(route) {\\n route.steps = _.map(route[0].legs, (leg) => {\\n return {\\n type: leg.type,\\n shape: _.map(leg.shape, (shape) => {\\n return {\\n latitude: shape.y,\\n longitude: shape.x\\n }\\n })\\n }\\n })\\n this.props.navigator.replacePreviousAndPop({\\n props: route,\\n index: 2\\n });\\n }\",\n \"function $8ec3412bfa22abb7$var$routeros(hljs) {\\n const STATEMENTS = \\\"foreach do while for if from to step else on-error and or not in\\\";\\n // Global commands: Every global command should start with \\\":\\\" token, otherwise it will be treated as variable.\\n const GLOBAL_COMMANDS = \\\"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime\\\";\\n // Common commands: Following commands available from most sub-menus:\\n const COMMON_COMMANDS = \\\"add remove enable disable set get print export edit find run debug error info warning\\\";\\n const LITERALS = \\\"true false yes no nothing nil null\\\";\\n const OBJECTS = \\\"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw\\\";\\n const VAR = {\\n className: \\\"variable\\\",\\n variants: [\\n {\\n begin: /\\\\$[\\\\w\\\\d#@][\\\\w\\\\d_]*/\\n },\\n {\\n begin: /\\\\$\\\\{(.*?)\\\\}/\\n }\\n ]\\n };\\n const QUOTE_STRING = {\\n className: \\\"string\\\",\\n begin: /\\\"/,\\n end: /\\\"/,\\n contains: [\\n hljs.BACKSLASH_ESCAPE,\\n VAR,\\n {\\n className: \\\"variable\\\",\\n begin: /\\\\$\\\\(/,\\n end: /\\\\)/,\\n contains: [\\n hljs.BACKSLASH_ESCAPE\\n ]\\n }\\n ]\\n };\\n const APOS_STRING = {\\n className: \\\"string\\\",\\n begin: /'/,\\n end: /'/\\n };\\n return {\\n name: \\\"Microtik RouterOS script\\\",\\n aliases: [\\n \\\"routeros\\\",\\n \\\"mikrotik\\\"\\n ],\\n case_insensitive: true,\\n keywords: {\\n $pattern: /:?[\\\\w-]+/,\\n literal: LITERALS,\\n keyword: STATEMENTS + \\\" :\\\" + STATEMENTS.split(\\\" \\\").join(\\\" :\\\") + \\\" :\\\" + GLOBAL_COMMANDS.split(\\\" \\\").join(\\\" :\\\")\\n },\\n contains: [\\n {\\n variants: [\\n {\\n begin: /\\\\/\\\\*/,\\n end: /\\\\*\\\\//\\n },\\n {\\n begin: /\\\\/\\\\//,\\n end: /$/\\n },\\n {\\n begin: /<\\\\//,\\n end: />/\\n }\\n ],\\n illegal: /./\\n },\\n hljs.COMMENT(\\\"^#\\\", \\\"$\\\"),\\n QUOTE_STRING,\\n APOS_STRING,\\n VAR,\\n {\\n begin: /[\\\\w-]+=([^\\\\s{}[\\\\]()]+)/,\\n relevance: 0,\\n returnBegin: true,\\n contains: [\\n {\\n className: \\\"attribute\\\",\\n begin: /[^=]+/\\n },\\n {\\n begin: /=/,\\n endsWithParent: true,\\n relevance: 0,\\n contains: [\\n QUOTE_STRING,\\n APOS_STRING,\\n VAR,\\n {\\n className: \\\"literal\\\",\\n begin: \\\"\\\\\\\\b(\\\" + LITERALS.split(\\\" \\\").join(\\\"|\\\") + \\\")\\\\\\\\b\\\"\\n },\\n {\\n // Do not format unclassified values. Needed to exclude highlighting of values as built_in.\\n begin: /(\\\"[^\\\"]*\\\"|[^\\\\s{}[\\\\]]+)/\\n }\\n ]\\n }\\n ]\\n },\\n {\\n // HEX values\\n className: \\\"number\\\",\\n begin: /\\\\*[0-9a-fA-F]+/\\n },\\n {\\n begin: \\\"\\\\\\\\b(\\\" + COMMON_COMMANDS.split(\\\" \\\").join(\\\"|\\\") + \\\")([\\\\\\\\s[(\\\\\\\\]|])\\\",\\n returnBegin: true,\\n contains: [\\n {\\n className: \\\"builtin-name\\\",\\n begin: /\\\\w+/\\n }\\n ]\\n },\\n {\\n className: \\\"built_in\\\",\\n variants: [\\n {\\n begin: \\\"(\\\\\\\\.\\\\\\\\./|/|\\\\\\\\s)((\\\" + OBJECTS.split(\\\" \\\").join(\\\"|\\\") + \\\");?\\\\\\\\s)+\\\"\\n },\\n {\\n begin: /\\\\.\\\\./,\\n relevance: 0\\n }\\n ]\\n }\\n ]\\n };\\n}\",\n \"function gotoVictoryVan(event) {\\n\\taddNavActionJS(\\\"initial victory van\\\", \\\"\\\");\\n\\tswitchTo('victoryVanStart');\\n}\",\n \"function swapLanguage() {\\n\\tconst syntax = language.value || 'plain text'\\n\\tdecoration.highlighter.setSyntax(LANGUAGES.BANK[syntax].scopes)\\n\\tdecoration.innerHTML = relations.analyze(input, decoration)\\n}\",\n \"function displayNei(){\\n activaTab(\\\"boxdashboard-body-nei-generic\\\");\\n }\",\n \"onNavigate (routeData) {\\n this.channel.trigger('before:navigate', routeData.linked)\\n\\n routeData.linked.show(routeData.params)\\n .then(() => {\\n this.channel.trigger('navigate', routeData.linked)\\n })\\n .catch((error) => {\\n console.error(error)\\n this.channel.trigger('error')\\n })\\n }\",\n \"function computeNavigation(commands){if(typeof commands[0]==='string'&&commands.length===1&&commands[0]==='/'){return new Navigation(true,0,commands);}var numberOfDoubleDots=0;var isAbsolute=false;var res=commands.reduce(function(res,cmd,cmdIdx){if(_typeof(cmd)==='object'&&cmd!=null){if(cmd.outlets){var outlets_1={};forEach(cmd.outlets,function(commands,name){outlets_1[name]=typeof commands==='string'?commands.split('/'):commands;});return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\\\"__spread\\\"])(res,[{outlets:outlets_1}]);}if(cmd.segmentPath){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\\\"__spread\\\"])(res,[cmd.segmentPath]);}}if(!(typeof cmd==='string')){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\\\"__spread\\\"])(res,[cmd]);}if(cmdIdx===0){cmd.split('/').forEach(function(urlPart,partIndex){if(partIndex==0&&urlPart==='.');else if(partIndex==0&&urlPart===''){// '/a'\\nisAbsolute=true;}else if(urlPart==='..'){// '../a'\\nnumberOfDoubleDots++;}else if(urlPart!=''){res.push(urlPart);}});return res;}return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\\\"__spread\\\"])(res,[cmd]);},[]);return new Navigation(isAbsolute,numberOfDoubleDots,res);}\",\n \"function Guarda_Clics_AFN_Menos()\\r\\n{\\r\\n\\tGuarda_Clics(4,0);\\r\\n}\",\n \"function simple(){\\n aff('Exercice n°01 : Bienvenue');\\n var name = 'loic';\\n aff(`Bienvenue à vous -> ${name} !`);\\n jump();\\n}\",\n \"function zurueck(){\\n\\t\\tif(!pfeilAktivitaet) {\\n\\t\\t\\tneuLaden();\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\ttoggleDetailView_textauszug();\\n\\t\\t\\tpfeilAktivitaet = false;\\n\\t\\t}\\n\\t}//ENDE zurueck()\",\n \"function originNextStep() {\\n $scope.originStep = 'navigationhidden';\\n $scope.destinationStep = 'navigationshown';\\n $scope.geosuccess = 'navigationhidden';\\n }\",\n \"function createNeumeVariationWithPitches(){\\n var sourceID = document.getElementById(\\\"source\\\").value;\\n var type = document.getElementById(\\\"type\\\").value;\\n \\n if(isClimacus){\\n maxPitches = document.getElementById(\\\"numberofpitches\\\").value;\\n }\\n \\n currentNeume = new Neume();\\n currentNeume.type = type;\\n \\n var i;\\n \\n if(neumeVariations.length < 1){\\n for(i = 0; i < sources.length; i++){\\n var neumeVariation = new NeumeVariation(sources[i].id);\\n neumeVariations.push(neumeVariation);\\n }\\n }\\n \\n for(i = 0; i < neumeVariations.length; i++){\\n if(neumeVariations[i].sourceID == sourceID){\\n neumeVariations[i].additionalNeumes.push(currentNeume);\\n break;\\n }\\n }\\n \\n if(!pushedNeumeVariations){\\n currentSyllable.neumes.push(neumeVariations);\\n pushedNeumeVariations = true;\\n }\\n else{\\n currentSyllable.neumes.pop();\\n currentSyllable.neumes.push(neumeVariations);\\n }\\n \\n isNeumeVariant = true;\\n \\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n document.getElementById(\\\"input\\\").innerHTML = pitchForm();\\n createSVGOutput();\\n}\",\n \"function toSyllableFromNeumeVariations(){\\n pushedNeumeVariations = false;\\n neumeVariations = new Array();\\n \\n isNeumeVariant = false;\\n \\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"displayScene()\\r\\n {\\r\\n this.traverseGraph(this.components[this.idRoot], this.components[this.idRoot].materials, this.components[this.idRoot].texture);\\r\\n }\",\n \"function addNavigationLink(_data, _json) {\\n var data = _data.replace(/\\\"/g, \\\"\\\");\\n var test = identifyDataType(data);\\n\\n\\n if (test == false) {\\n return `\\\"${data}\\\"`\\n \\n } else if (test == \\\"isBlockHash\\\"){\\n return `\\\"${data}\\\"`\\n \\n } else if (test == \\\"isBlockNb\\\"){\\n // récupération de segments présécent data dans _json\\n var index = _json.indexOf(data);\\n var test1 = _json.substr((index - 15), index);\\n var test2 = _json.substr((index - 11), index);\\n var test3 = _json.substr((index - 16), index);\\n\\n // Vérification que que ce sont les bons mots clés\\n // précent la data que l'on veut vérifier\\n if (/(\\\"nb\\\":)/.test(test1) |/(\\\"blocks\\\":)|(\\\"height\\\":)/.test(test2) || /(\\\"block_height\\\":)/.test(test3)) {\\n return `\\\"${data}\\\"`\\n } else {\\n return data;\\n }\\n \\n } else if (test == \\\"isTx\\\") {\\n return `\\\"${data}\\\"`\\n \\n } else if (test == \\\"isAddress\\\"){\\n return `\\\"${data}\\\"`\\n }\\n}\",\n \"function nodeToNav(n, baseUrl) {\\n if (n.mine && n.report && n.sheet) {\\n return {\\n id: n.code,\\n hint: '',\\n caption: n.caption,\\n url: baseUrl + '/' + n.mine + '/' + n.report + '/' + n.sheet,\\n external: false,\\n nodes: buildSubMenu(n.subs, baseUrl)\\n };\\n } else if (n.mine && n.report) {\\n return {\\n id: n.code,\\n hint: '',\\n caption: n.caption,\\n url: baseUrl + '/' + n.mine + '/' + n.report,\\n external: false,\\n nodes: buildSubMenu(n.subs, baseUrl)\\n };\\n } else if (Array.isArray(n.subs) && n.subs.length) {\\n return {\\n id: n.code,\\n nodes: buildSubMenu(n.subs, baseUrl),\\n hint: '',\\n caption: n.caption,\\n url: '',\\n external: false\\n };\\n } else {\\n return {\\n id: n.code,\\n hint: '',\\n caption: n.caption,\\n url: '',\\n external: false,\\n nodes: []\\n };\\n }\\n}\",\n \"function trasforma(pos,selected)\\n{\\n\\tdocument.getElementById(pos).innerHTML=\\\"\\\";//trasforma il pedone nella pedina selezionata\\n\\tdocument.getElementById(\\\"transPedone\\\").innerHTML='';//toglie il menu di selezione delle pedine per la trasformazione\\n}\",\n \"function navigate(index) {\\n World.diagram.getBounded(index, function(graph) {\\n Display.update(graph);\\n current = graph.meta('index');\\n highlight(current);\\n\\n window.location.replace(\\\"#\\\" + (current +1)); \\n })\\n }\",\n \"function tilfeldigNavn() {\\n var navn = [\\n 'Merrick',\\n 'Lean Bean',\\n 'The Leanest Bean',\\n 'Merikstad',\\n 'T-rex',\\n 'Bean',\\n 'Merrick - black of hair',\\n 'Pett',\\n 'Johan Pettersen'\\n ];\\n var tilfeldigTall = Math.floor(Math.random() * navn.length);\\n $('.hvaOgHvem').text(navn[tilfeldigTall]);\\n}\",\n \"_getARNavigator(organization) {\\n if (this.state.cause === ENV){\\n return (\\n \\n );\\n } else if (this.state.cause === RIGHTS){\\n return (\\n \\n );\\n } else if (this.state.cause === SOCIAL){\\n return (\\n \\n );\\n }\\n }\",\n \"function setDominance(Dominance)\\n{\\n //reset all new dominance is set incase of back!!\\n reset();\\n\\n meDominance=Dominance;\\n fillDiffuseTableArray();\\n FillSegmentVisualizedArray();\\n\\n if (meDominance=='left')\\n {\\n\\t//setFrameUrl('left','selectedleft.htm');\\n\\tsetHeaderText('dominance','Dominance: left');\\n }\\n if (meDominance=='right')\\n {\\n\\t//setFrameUrl('left','selectedright.htm');\\n\\tsetHeaderText('dominance','Dominance: right');\\n }\\n\\n // //setFrameUrl('right','nroflesions.htm');\\n setNrOfLesionsToOne();\\n //setFrameUrl('right','lesion_segments.htm');\\n}\",\n \"function do_verse_split( opt )\\n{\\n\\tfunction do_one_ref( ref, verse_test )\\n\\t{\\n\\t\\t// Split the verse\\n\\t\\tif ( opt.split )\\n\\t\\t{\\n\\t\\t\\tif ( ref.c === opt.c && verse_test )\\n\\t\\t\\t{\\n\\t\\t\\t\\tref.v++;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t// Join them back together\\n\\t\\telse\\n\\t\\t{\\n\\t\\t\\tif ( ref.c === opt.c && ref.v >= opt.v + 1 )\\n\\t\\t\\t{\\n\\t\\t\\t\\tref.v--;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\tif ( opt.split )\\n\\t{\\n\\t\\topt.v -= opt.psalm_heading || 0;\\n\\t}\\n\\tdo_one_ref( opt.entity.start, opt.entity.start.v > opt.v );\\n\\tdo_one_ref( opt.entity.end, opt.entity.end.v >= opt.v );\\n}\",\n \"function o$8(o,d){0===d.normalType&&(o.attributes.add(\\\"normal\\\",\\\"vec3\\\"),o.vertex.code.add(t$i`vec3 normalModel() {\\nreturn normal;\\n}`)),1===d.normalType&&(o.include(o$9),o.attributes.add(\\\"normalCompressed\\\",\\\"vec2\\\"),o.vertex.code.add(t$i`vec3 normalModel() {\\nreturn decodeNormal(normalCompressed);\\n}`)),3===d.normalType&&(o.extensions.add(\\\"GL_OES_standard_derivatives\\\"),o.fragment.code.add(t$i`vec3 screenDerivativeNormal(vec3 positionView) {\\nreturn normalize(cross(dFdx(positionView), dFdy(positionView)));\\n}`));}\",\n \"function arrowNav(event) {\\n event.preventDefault();\\n // find the index of the data-index in the object.keys, and then find the next item in object.keys, and find the url from that link. \\n if (event.currentTarget.getAttribute('data-arrow')=='left') {\\n if (linkKeysIndex>0) {\\n var url = links[linkKeys[linkKeysIndex-1]];\\n linkKeysIndex -= 1;\\n } else {\\n var url = links[linkKeys[linkKeysIndex+linkKeys.length -1]]\\n linkKeysIndex = linkKeysIndex+linkKeys.length -1;\\n }\\n } else if (event.currentTarget.getAttribute('data-arrow')=='right') {\\n if (linkKeysIndex code.startsWith(item.phenomenon.code));\\n if (effectiveMapping.length === 1) {\\n if (effectiveMapping[0].phenomenon.code === code) {\\n effectiveMapping[0].variants = [];\\n effectiveMapping[0].additions = [];\\n }\\n } else {\\n effectiveMapping = cloneDeep(phenomenonMapping).map((item) => {\\n if (item.variants.length > 0) {\\n variantIndex = item.variants.findIndex((variant) => codeFragments[0].startsWith(variant.code));\\n if (variantIndex > -1) {\\n item.variants = [item.variants[variantIndex]];\\n return item;\\n }\\n } else if (item.phenomenon.code.startsWith(codeFragments[0])) {\\n return item;\\n }\\n }).filter((item) => typeof item !== 'undefined').filter((item) => {\\n if (item.variants.length > 0) {\\n return codeFragments[1].startsWith(item.phenomenon.code);\\n } else {\\n return true;\\n }\\n }).map((item) => {\\n if (item.additions.length > 0) {\\n additionIndex = item.additions.findIndex((addition) => codeFragments[1].endsWith(addition.code));\\n if (additionIndex > -1) {\\n item.additions = [item.additions[additionIndex]];\\n return item;\\n } else if (codeFragments.length > 2) {\\n additionIndex = item.additions.findIndex((addition) => codeFragments[2].endsWith(addition.code));\\n if (additionIndex > -1) {\\n item.additions = [item.additions[additionIndex]];\\n return item;\\n }\\n }\\n }\\n item.additions = [];\\n return item;\\n });\\n }\\n if (effectiveMapping.length === 1) {\\n if (effectiveMapping[0].variants.length === 1) {\\n result = effectiveMapping[0].variants[0].name + ' ' + effectiveMapping[0].phenomenon.name.toLowerCase();\\n } else if (effectiveMapping[0].variants.length === 0) {\\n result = effectiveMapping[0].phenomenon.name;\\n } else {\\n result = UNKNOWN;\\n }\\n if (effectiveMapping[0].additions.length === 1) {\\n result += ' ' + effectiveMapping[0].additions[0].name;\\n }\\n return result;\\n }\\n return UNKNOWN;\\n }\",\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}\",\n \"function navGreen(){\\n for(let i = 0; i < navAnchorTags.length; i++) {\\n navAnchorTags[i].textContent = navContents[i]\\n }\\n}\",\n \"get referenceAllele() {\\n\\t\\treturn this.__referenceAllele;\\n\\t}\",\n \"link() {\\n\\t\\t// Call super link to link members of Top Level (Identified)\\n\\t\\tsuper.link();\\n\\n this._components = this._sbolDocument.lookupURIs(this._components);\\n\\n this._sequenceAnnotations = this._sbolDocument.lookupURIs(this._sequenceAnnotations).sort(function(a, b) {\\n\\n if(a instanceof URI || b instanceof URI)\\n return 0;\\n\\n if(a.ranges.length === 0 || b.ranges.length === 0)\\n return 0;\\n\\n return a.ranges[0].start - b.ranges[0].start;\\n });\\n\\n this._sequenceConstraints = this._sbolDocument.lookupURIs(this._sequenceConstraints);\\n this._sequences = this._sbolDocument.lookupURIs(this._sequences);\\n }\",\n \"function oldGLnk(target, description, linkData)\\n{\\n}\",\n \"function Komunalne() {}\",\n \"function computeNavigation(commands) {\\n if (typeof commands[0] === 'string' && commands.length === 1 && commands[0] === '/') {\\n return new Navigation(true, 0, commands);\\n }\\n\\n var numberOfDoubleDots = 0;\\n var isAbsolute = false;\\n var res = commands.reduce(function (res, cmd, cmdIdx) {\\n if (typeof cmd === 'object' && cmd != null) {\\n if (cmd.outlets) {\\n var outlets = {};\\n forEach(cmd.outlets, function (commands, name) {\\n outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;\\n });\\n return [].concat(Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\\\"default\\\"])(res), [{\\n outlets: outlets\\n }]);\\n }\\n\\n if (cmd.segmentPath) {\\n return [].concat(Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\\\"default\\\"])(res), [cmd.segmentPath]);\\n }\\n }\\n\\n if (!(typeof cmd === 'string')) {\\n return [].concat(Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\\\"default\\\"])(res), [cmd]);\\n }\\n\\n if (cmdIdx === 0) {\\n cmd.split('/').forEach(function (urlPart, partIndex) {\\n if (partIndex == 0 && urlPart === '.') {// skip './a'\\n } else if (partIndex == 0 && urlPart === '') {\\n // '/a'\\n isAbsolute = true;\\n } else if (urlPart === '..') {\\n // '../a'\\n numberOfDoubleDots++;\\n } else if (urlPart != '') {\\n res.push(urlPart);\\n }\\n });\\n return res;\\n }\\n\\n return [].concat(Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\\\"default\\\"])(res), [cmd]);\\n }, []);\\n return new Navigation(isAbsolute, numberOfDoubleDots, res);\\n}\",\n \"function list_vert()\\r\\n{\\r\\n\\tvar i, v;\\r\\n\\tfor (i=0; i < this.nv; i++)\\r\\n\\t{\\r\\n\\t\\tv = this.vert[i];\\r\\n\\t\\tdocument.write( \\\"VERTEX: \\\", i, \\\" {\\\", v.label, \\\"} - VISIT: \\\", v.visit, \\r\\n\\t\\t\\t\\\" - ADJACENCY: \\\", v.adjacent.traverse(), \\\"
        \\\" );\\r\\n\\t}\\r\\n}\",\n \"function navegaSeccion(idSeccionNueva, transicion, esReverse) {\\n\\n var miTransicion;\\n var esReverse;\\n\\n switch (transicion) {\\n\\n case \\\"slide\\\":\\n case \\\"fade\\\":\\n case \\\"flip\\\":\\n case \\\"pop\\\":\\n case \\\"slidedown\\\":\\n case \\\"slideup\\\":\\n miTransicion = transicion;\\n break;\\n\\n default:\\n miTransicion = \\\"none\\\";\\n break;\\n }\\n\\n\\n $.mobile.changePage(idSeccionNueva, {\\\"transition\\\": miTransicion, \\\"reverse\\\": esReverse});\\n\\n\\n}\",\n \"function inverser(){\\n var motInverse = \\\"\\\";\\n for( i=0; i hy\\n if (tag.variants.length >= 1 &&\\n callFunction(ArrayIndexOf, tag.variants, \\\"arevela\\\") > -1)\\n {\\n var newVariants = [];\\n for (var i = 0; i < tag.variants.length; i++) {\\n var variant = tag.variants[i];\\n if (variant === \\\"arevela\\\")\\n continue;\\n _DefineDataProperty(newVariants, newVariants.length, variant);\\n }\\n tag.variants = newVariants;\\n }\\n // hy-arevmda -> hyw\\n else if (tag.variants.length >= 1 &&\\n callFunction(ArrayIndexOf, tag.variants, \\\"arevmda\\\") > -1)\\n {\\n tag.language = \\\"hyw\\\";\\n var newVariants = [];\\n for (var i = 0; i < tag.variants.length; i++) {\\n var variant = tag.variants[i];\\n if (variant === \\\"arevmda\\\")\\n continue;\\n _DefineDataProperty(newVariants, newVariants.length, variant);\\n }\\n tag.variants = newVariants;\\n }\\n break;\\n case \\\"ja\\\":\\n // ja-Latn-hepburn-heploc -> ja-Latn-alalc97\\n if (tag.script === \\\"Latn\\\" &&\\n tag.variants.length >= 2 &&\\n callFunction(ArrayIndexOf, tag.variants, \\\"hepburn\\\") > -1 &&\\n callFunction(ArrayIndexOf, tag.variants, \\\"heploc\\\", callFunction(ArrayIndexOf, tag.variants, \\\"hepburn\\\") + 1) > -1)\\n {\\n var newVariants = [];\\n for (var i = 0; i < tag.variants.length; i++) {\\n var variant = tag.variants[i];\\n if (variant === \\\"hepburn\\\")\\n continue;\\n if (variant === \\\"heploc\\\")\\n continue;\\n _DefineDataProperty(newVariants, newVariants.length, variant);\\n }\\n if (callFunction(ArrayIndexOf, newVariants, \\\"alalc97\\\") < 0)\\n _DefineDataProperty(newVariants, newVariants.length, \\\"alalc97\\\");\\n tag.variants = newVariants;\\n }\\n break;\\n case \\\"sgn\\\":\\n // sgn-BR -> bzs\\n if (tag.region === \\\"BR\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"bzs\\\";\\n tag.region = undefined;\\n }\\n // sgn-CO -> csn\\n else if (tag.region === \\\"CO\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"csn\\\";\\n tag.region = undefined;\\n }\\n // sgn-DE -> gsg\\n else if (tag.region === \\\"DE\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"gsg\\\";\\n tag.region = undefined;\\n }\\n // sgn-DK -> dsl\\n else if (tag.region === \\\"DK\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"dsl\\\";\\n tag.region = undefined;\\n }\\n // sgn-ES -> ssp\\n else if (tag.region === \\\"ES\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"ssp\\\";\\n tag.region = undefined;\\n }\\n // sgn-FR -> fsl\\n else if (tag.region === \\\"FR\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"fsl\\\";\\n tag.region = undefined;\\n }\\n // sgn-GB -> bfi\\n else if (tag.region === \\\"GB\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"bfi\\\";\\n tag.region = undefined;\\n }\\n // sgn-GR -> gss\\n else if (tag.region === \\\"GR\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"gss\\\";\\n tag.region = undefined;\\n }\\n // sgn-IE -> isg\\n else if (tag.region === \\\"IE\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"isg\\\";\\n tag.region = undefined;\\n }\\n // sgn-IT -> ise\\n else if (tag.region === \\\"IT\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"ise\\\";\\n tag.region = undefined;\\n }\\n // sgn-JP -> jsl\\n else if (tag.region === \\\"JP\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"jsl\\\";\\n tag.region = undefined;\\n }\\n // sgn-MX -> mfs\\n else if (tag.region === \\\"MX\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"mfs\\\";\\n tag.region = undefined;\\n }\\n // sgn-NI -> ncs\\n else if (tag.region === \\\"NI\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"ncs\\\";\\n tag.region = undefined;\\n }\\n // sgn-NL -> dse\\n else if (tag.region === \\\"NL\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"dse\\\";\\n tag.region = undefined;\\n }\\n // sgn-NO -> nsl\\n else if (tag.region === \\\"NO\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"nsl\\\";\\n tag.region = undefined;\\n }\\n // sgn-PT -> psr\\n else if (tag.region === \\\"PT\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"psr\\\";\\n tag.region = undefined;\\n }\\n // sgn-SE -> swl\\n else if (tag.region === \\\"SE\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"swl\\\";\\n tag.region = undefined;\\n }\\n // sgn-US -> ase\\n else if (tag.region === \\\"US\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"ase\\\";\\n tag.region = undefined;\\n }\\n // sgn-ZA -> sfs\\n else if (tag.region === \\\"ZA\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"sfs\\\";\\n tag.region = undefined;\\n }\\n break;\\n }\\n}\",\n \"viewTranslation() {\\n switch(this.state.CurrentViewIndex) {\\n case 0 :\\n return \\\"By Student\\\";\\n case 1 :\\n return \\\"By Poem\\\";\\n default:\\n return \\\"\\\";\\n }\\n }\",\n \"constructor(anchoInferior, anchoSuperior, altura, cantRepeticionesTextura = 1) {\\n super();\\n this.cantRepeticionesTextura = cantRepeticionesTextura;\\n this.anguloTrapecio = Math.atan(2 * altura / (anchoInferior - anchoSuperior));\\n\\n const v1 = new Vertice();\\n v1.posicion = [-anchoInferior / 2, -altura / 2, 0];\\n const v2 = new Vertice();\\n v2.posicion = [-anchoSuperior / 2, altura / 2, 0];\\n\\n const v3 = new Vertice();\\n v3.posicion = [-anchoSuperior / 2, altura / 2, 0];\\n const v4 = new Vertice();\\n v4.posicion = [anchoSuperior / 2, altura / 2, 0];\\n\\n const v5 = new Vertice();\\n v5.posicion = [anchoSuperior / 2, altura / 2, 0];\\n const v6 = new Vertice();\\n v6.posicion = [anchoInferior / 2, -altura / 2, 0];\\n\\n const v7 = new Vertice();\\n v7.posicion = [anchoInferior / 2, -altura / 2, 0];\\n const v8 = new Vertice();\\n v8.posicion = [-anchoInferior / 2, -altura / 2, 0];\\n\\n const anguloNormalDerechaYEjeX = Math.PI - (Math.PI / 2) - this.anguloTrapecio;\\n const normalLadoDerecho = [Math.cos(anguloNormalDerechaYEjeX), Math.sin(anguloNormalDerechaYEjeX), 0];\\n const normalLadoIzquierdo = [-normalLadoDerecho[0], normalLadoDerecho[1], 0];\\n\\n const tangenteLadoDerecho = vec3.create();\\n vec3.subtract(tangenteLadoDerecho, v6.posicion, v5.posicion);\\n vec3.normalize(tangenteLadoDerecho, tangenteLadoDerecho);\\n\\n const tangenteLadoIzquierdo = vec3.create();\\n vec3.subtract(tangenteLadoIzquierdo, v2.posicion, v1.posicion);\\n vec3.normalize(tangenteLadoIzquierdo, tangenteLadoIzquierdo);\\n\\n [v1, v2, v3, v4, v5, v6, v7, v8].forEach(v => v.binormal = [0, 0, 1]);\\n\\n v1.tangente = vec3.clone(tangenteLadoIzquierdo);\\n v1.normal = vec3.clone(normalLadoIzquierdo);\\n v2.tangente = vec3.clone(tangenteLadoIzquierdo);\\n v2.normal = vec3.clone(normalLadoIzquierdo);\\n\\n v3.tangente = [1, 0, 0];\\n v3.normal = [0, 1, 0];\\n v4.tangente = [1, 0, 0];\\n v4.normal = [0, 1, 0];\\n\\n v5.tangente = vec3.clone(tangenteLadoDerecho);\\n v5.normal = vec3.clone(normalLadoDerecho);\\n v6.tangente = vec3.clone(tangenteLadoDerecho);\\n v6.normal = vec3.clone(normalLadoDerecho);\\n\\n v7.tangente = [-1, 0, 0];\\n v7.normal = [0, -1, 0];\\n v8.tangente = [-1, 0, 0];\\n v8.normal = [0, -1, 0];\\n\\n this.centro.posicion = vec3.fromValues(0, 0, 0);\\n this.centro.normal = vec3.fromValues(0, 0, 1);\\n\\n [v1, v2, v3, v4, v5, v6, v7, v8].forEach(v => {\\n v.coordenadaTextura = ((v[1] + (altura / 2)) / altura) * this.cantRepeticionesTextura;\\n this.vertices.push(v)\\n });\\n }\",\n \"function goToAenides(){\\n\\t\\tif(visitedAen===0){\\n\\t\\t\\tvisitedAen=1;\\n\\t\\t\\t// artifacts=1;\\n\\t\\t\\tgamePrompt(\\\"You discover upon arrival to Aenides that they are a hostile people. You attempt to land, but they begin to fire upon your S.R.S.V. and you are forced to retreat.\\\",beginTravel);\\n\\t\\t}else{\\n\\t\\t\\tgamePrompt([\\\"You've already been here!\\\",\\\"Where to next?\\\"],beginTravel);\\n\\t\\t}\\n}\",\n \"function navigate(nav, navArray){\\n for (var i = 0; i < navArray.length; i++) {\\n if (nav == navArray[i].nav) {\\n navArray[i].page.style.display = \\\"block\\\";\\n if (nav != document.getElementById('homenav')){\\n navArray[i].nav.style.backgroundColor = \\\"#FAA669\\\";\\n }\\n navArray[i].nav.style.cursor = \\\"default\\\";\\n } else {\\n if (!(navArray[i].page == account && (nav == signNav || nav == logNav)))\\n {\\n navArray[i].page.style.display = \\\"none\\\";\\n }\\n if (navArray[i].nav != document.getElementById('homenav')){\\n navArray[i].nav.style.backgroundColor = navArray[i].color;\\n }\\n navArray[i].nav.style.cursor = \\\"pointer\\\";\\n }\\n }\\n }\",\n \"function mobileNavMegamenuCorrect() {\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t////mobile megamenus without titles / nested groupings\\r\\n\\t\\t\\t\\t\\tvar $mobileNavSelector = '.off-canvas-menu-container.mobile-only ';\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t\\t$($mobileNavSelector + '.megamenu > ul > li > a').each(function () {\\r\\n\\t\\t\\t\\t\\t\\tif ($(this).text() == '–') {\\r\\n\\t\\t\\t\\t\\t\\t\\tvar $navLIs = $(this).parent().find('> ul > li').clone();\\r\\n\\t\\t\\t\\t\\t\\t\\t$(this).parent().find('ul').remove();\\r\\n\\t\\t\\t\\t\\t\\t\\t$(this).parent().parent().append($navLIs);\\r\\n\\t\\t\\t\\t\\t\\t\\t$(this).parent().remove();\\r\\n\\t\\t\\t\\t\\t\\t}\\r\\n\\t\\t\\t\\t\\t});\\r\\n\\t\\t\\t\\t\\t\\r\\n\\t\\t\\t\\t}\",\n \"function routeros(hljs) {\\n\\n var STATEMENTS = 'foreach do while for if from to step else on-error and or not in';\\n\\n // Global commands: Every global command should start with \\\":\\\" token, otherwise it will be treated as variable.\\n var GLOBAL_COMMANDS = 'global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime';\\n\\n // Common commands: Following commands available from most sub-menus:\\n var COMMON_COMMANDS = 'add remove enable disable set get print export edit find run debug error info warning';\\n\\n var LITERALS = 'true false yes no nothing nil null';\\n\\n var OBJECTS = 'traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firewall firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw';\\n\\n var VAR = {\\n className: 'variable',\\n variants: [\\n {begin: /\\\\$[\\\\w\\\\d#@][\\\\w\\\\d_]*/},\\n {begin: /\\\\$\\\\{(.*?)}/}\\n ]\\n };\\n\\n var QUOTE_STRING = {\\n className: 'string',\\n begin: /\\\"/, end: /\\\"/,\\n contains: [\\n hljs.BACKSLASH_ESCAPE,\\n VAR,\\n {\\n className: 'variable',\\n begin: /\\\\$\\\\(/, end: /\\\\)/,\\n contains: [hljs.BACKSLASH_ESCAPE]\\n }\\n ]\\n };\\n\\n var APOS_STRING = {\\n className: 'string',\\n begin: /'/, end: /'/\\n };\\n //////////////////////////////////////////////////////////////////////\\n return {\\n name: 'Microtik RouterOS script',\\n aliases: ['routeros', 'mikrotik'],\\n case_insensitive: true,\\n keywords: {\\n $pattern: /:?[\\\\w-]+/,\\n literal: LITERALS,\\n keyword: STATEMENTS + ' :' + STATEMENTS.split(' ').join(' :') + ' :' + GLOBAL_COMMANDS.split(' ').join(' :'),\\n },\\n contains: [\\n { // недопустимые конструкции\\n variants: [\\n { begin: /^@/, end: /$/, }, // dns\\n { begin: /\\\\/\\\\*/, end: /\\\\*\\\\//, }, // -- comment\\n { begin: /%%/, end: /$/, }, // -- comment\\n { begin: /^'/, end: /$/, }, // Monkey one line comment\\n { begin: /^\\\\s*\\\\/[\\\\w-]+=/, end: /$/, }, // jboss-cli\\n { begin: /\\\\/\\\\//, end: /$/, }, // Stan comment\\n { begin: /^\\\\[\\\\\\\\]$/, }, // F# class declaration?\\n { begin: /<\\\\//, end: />/, }, // HTML tags\\n { begin: /^facet /, end: /\\\\}/, }, // roboconf - лютый костыль )))\\n { begin: '^1\\\\\\\\.\\\\\\\\.(\\\\\\\\d+)$', end: /$/, }, // tap\\n ],\\n illegal: /./,\\n },\\n hljs.COMMENT('^#', '$'),\\n QUOTE_STRING,\\n APOS_STRING,\\n VAR,\\n { // attribute=value\\n begin: /[\\\\w-]+\\\\=([^\\\\s\\\\{\\\\}\\\\[\\\\]\\\\(\\\\)]+)/,\\n relevance: 0,\\n returnBegin: true,\\n contains: [\\n {\\n className: 'attribute',\\n begin: /[^=]+/\\n },\\n {\\n begin: /=/,\\n endsWithParent: true,\\n relevance: 0,\\n contains: [\\n QUOTE_STRING,\\n APOS_STRING,\\n VAR,\\n {\\n className: 'literal',\\n begin: '\\\\\\\\b(' + LITERALS.split(' ').join('|') + ')\\\\\\\\b',\\n },\\n /*{\\n // IPv4 addresses and subnets\\n className: 'number',\\n variants: [\\n {begin: IPADDR_wBITMASK+'(,'+IPADDR_wBITMASK+')*'}, //192.168.0.0/24,1.2.3.0/24\\n {begin: IPADDR+'-'+IPADDR}, // 192.168.0.1-192.168.0.3\\n {begin: IPADDR+'(,'+IPADDR+')*'}, // 192.168.0.1,192.168.0.34,192.168.24.1,192.168.0.1\\n ]\\n }, // */\\n /*{\\n // MAC addresses and DHCP Client IDs\\n className: 'number',\\n begin: /\\\\b(1:)?([0-9A-Fa-f]{1,2}[:-]){5}([0-9A-Fa-f]){1,2}\\\\b/,\\n }, //*/\\n {\\n // Не форматировать не классифицированные значения. Необходимо для исключения подсветки значений как built_in.\\n // className: 'number',\\n begin: /(\\\"[^\\\"]*\\\"|[^\\\\s\\\\{\\\\}\\\\[\\\\]]+)/,\\n }, //*/\\n ]\\n } //*/\\n ]\\n },//*/\\n {\\n // HEX values\\n className: 'number',\\n begin: /\\\\*[0-9a-fA-F]+/,\\n }, //*/\\n\\n {\\n begin: '\\\\\\\\b(' + COMMON_COMMANDS.split(' ').join('|') + ')([\\\\\\\\s\\\\[\\\\(]|\\\\])',\\n returnBegin: true,\\n contains: [\\n {\\n className: 'builtin-name', //'function',\\n begin: /\\\\w+/,\\n },\\n ],\\n },\\n\\n {\\n className: 'built_in',\\n variants: [\\n {begin: '(\\\\\\\\.\\\\\\\\./|/|\\\\\\\\s)((' + OBJECTS.split(' ').join('|') + ');?\\\\\\\\s)+',relevance: 10,},\\n {begin: /\\\\.\\\\./,},\\n ],\\n },//*/\\n ]\\n };\\n}\",\n \"function routeros(hljs) {\\n\\n var STATEMENTS = 'foreach do while for if from to step else on-error and or not in';\\n\\n // Global commands: Every global command should start with \\\":\\\" token, otherwise it will be treated as variable.\\n var GLOBAL_COMMANDS = 'global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime';\\n\\n // Common commands: Following commands available from most sub-menus:\\n var COMMON_COMMANDS = 'add remove enable disable set get print export edit find run debug error info warning';\\n\\n var LITERALS = 'true false yes no nothing nil null';\\n\\n var OBJECTS = 'traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firewall firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw';\\n\\n var VAR = {\\n className: 'variable',\\n variants: [\\n {begin: /\\\\$[\\\\w\\\\d#@][\\\\w\\\\d_]*/},\\n {begin: /\\\\$\\\\{(.*?)}/}\\n ]\\n };\\n\\n var QUOTE_STRING = {\\n className: 'string',\\n begin: /\\\"/, end: /\\\"/,\\n contains: [\\n hljs.BACKSLASH_ESCAPE,\\n VAR,\\n {\\n className: 'variable',\\n begin: /\\\\$\\\\(/, end: /\\\\)/,\\n contains: [hljs.BACKSLASH_ESCAPE]\\n }\\n ]\\n };\\n\\n var APOS_STRING = {\\n className: 'string',\\n begin: /'/, end: /'/\\n };\\n //////////////////////////////////////////////////////////////////////\\n return {\\n name: 'Microtik RouterOS script',\\n aliases: ['routeros', 'mikrotik'],\\n case_insensitive: true,\\n lexemes: /:?[\\\\w-]+/,\\n keywords: {\\n literal: LITERALS,\\n keyword: STATEMENTS + ' :' + STATEMENTS.split(' ').join(' :') + ' :' + GLOBAL_COMMANDS.split(' ').join(' :'),\\n },\\n contains: [\\n { // недопустимые конструкции\\n variants: [\\n { begin: /^@/, end: /$/, }, // dns\\n { begin: /\\\\/\\\\*/, end: /\\\\*\\\\//, }, // -- comment\\n { begin: /%%/, end: /$/, }, // -- comment\\n { begin: /^'/, end: /$/, }, // Monkey one line comment\\n { begin: /^\\\\s*\\\\/[\\\\w-]+=/, end: /$/, }, // jboss-cli\\n { begin: /\\\\/\\\\//, end: /$/, }, // Stan comment\\n { begin: /^\\\\[\\\\\\\\]$/, }, // F# class declaration?\\n { begin: /<\\\\//, end: />/, }, // HTML tags\\n { begin: /^facet /, end: /\\\\}/, }, // roboconf - лютый костыль )))\\n { begin: '^1\\\\\\\\.\\\\\\\\.(\\\\\\\\d+)$', end: /$/, }, // tap\\n ],\\n illegal: /./,\\n },\\n hljs.COMMENT('^#', '$'),\\n QUOTE_STRING,\\n APOS_STRING,\\n VAR,\\n { // attribute=value\\n begin: /[\\\\w-]+\\\\=([^\\\\s\\\\{\\\\}\\\\[\\\\]\\\\(\\\\)]+)/,\\n relevance: 0,\\n returnBegin: true,\\n contains: [\\n {\\n className: 'attribute',\\n begin: /[^=]+/\\n },\\n {\\n begin: /=/,\\n endsWithParent: true,\\n relevance: 0,\\n contains: [\\n QUOTE_STRING,\\n APOS_STRING,\\n VAR,\\n {\\n className: 'literal',\\n begin: '\\\\\\\\b(' + LITERALS.split(' ').join('|') + ')\\\\\\\\b',\\n },\\n /*{\\n // IPv4 addresses and subnets\\n className: 'number',\\n variants: [\\n {begin: IPADDR_wBITMASK+'(,'+IPADDR_wBITMASK+')*'}, //192.168.0.0/24,1.2.3.0/24\\n {begin: IPADDR+'-'+IPADDR}, // 192.168.0.1-192.168.0.3\\n {begin: IPADDR+'(,'+IPADDR+')*'}, // 192.168.0.1,192.168.0.34,192.168.24.1,192.168.0.1\\n ]\\n }, // */\\n /*{\\n // MAC addresses and DHCP Client IDs\\n className: 'number',\\n begin: /\\\\b(1:)?([0-9A-Fa-f]{1,2}[:-]){5}([0-9A-Fa-f]){1,2}\\\\b/,\\n }, //*/\\n {\\n // Не форматировать не классифицированные значения. Необходимо для исключения подсветки значений как built_in.\\n // className: 'number',\\n begin: /(\\\"[^\\\"]*\\\"|[^\\\\s\\\\{\\\\}\\\\[\\\\]]+)/,\\n }, //*/\\n ]\\n } //*/\\n ]\\n },//*/\\n {\\n // HEX values\\n className: 'number',\\n begin: /\\\\*[0-9a-fA-F]+/,\\n }, //*/\\n\\n {\\n begin: '\\\\\\\\b(' + COMMON_COMMANDS.split(' ').join('|') + ')([\\\\\\\\s\\\\[\\\\(]|\\\\])',\\n returnBegin: true,\\n contains: [\\n {\\n className: 'builtin-name', //'function',\\n begin: /\\\\w+/,\\n },\\n ],\\n },\\n\\n {\\n className: 'built_in',\\n variants: [\\n {begin: '(\\\\\\\\.\\\\\\\\./|/|\\\\\\\\s)((' + OBJECTS.split(' ').join('|') + ');?\\\\\\\\s)+',relevance: 10,},\\n {begin: /\\\\.\\\\./,},\\n ],\\n },//*/\\n ]\\n };\\n}\",\n \"function variants() {\\n\\t\\tvar oList = document.getElementById(\\\"variantsList\\\"),\\n\\t\\t\\tmQueryOptions = {\\n\\t\\t\\t\\tteam : mParameters.team,\\n\\t\\t\\t\\tframes : mParameters.frames || 4\\n\\t\\t\\t};\\n\\n\\t\\tObject.keys(mVariants).forEach(function (sTitle) {\\n\\t\\t\\tvar oAnchor = document.createElement(\\\"a\\\"),\\n\\t\\t\\t\\toItem = document.createElement(\\\"li\\\"),\\n\\t\\t\\t\\tmVariantQueryOptions = Object.assign({}, mQueryOptions, mVariants[sTitle]),\\n\\t\\t\\t\\tsQuery = Object.keys(mVariantQueryOptions).map(function (sKey) {\\n\\t\\t\\t\\t\\t\\treturn sKey + \\\"=\\\" + mVariantQueryOptions[sKey];\\n\\t\\t\\t\\t\\t}).join(\\\"&\\\");\\n\\n\\t\\t\\toAnchor.setAttribute(\\\"href\\\",\\n\\t\\t\\t\\t\\\"test-resources/sap/ui/core/qunit/internal/BeforePush.html?\\\" + sQuery);\\n\\t\\t\\toAnchor.appendChild(document.createTextNode(sTitle));\\n\\t\\t\\toItem.appendChild(oAnchor);\\n\\t\\t\\toList.appendChild(oItem);\\n\\t\\t});\\n\\t\\tdocument.getElementById(\\\"variants\\\").classList.remove(\\\"hidden\\\");\\n\\t}\",\n \"function getVoisins(name){\\r\\n\\tif(name==\\\"eastern_australia\\\"){return [\\\"western_australia\\\",\\\"new_guinea\\\",\\\"indonesia\\\"]}\\r\\n\\tif(name==\\\"western_australia\\\"){return [\\\"eastern_australia\\\",\\\"new_guinea\\\",\\\"indonesia\\\"]}\\r\\n\\tif(name==\\\"new_guinea\\\"){return [\\\"western_australia\\\",\\\"eastern_australia\\\",\\\"indonesia\\\"]}\\r\\n\\tif(name==\\\"indonesia\\\"){return [\\\"western_australia\\\",\\\"new_guinea\\\",\\\"siam\\\"]}\\r\\n\\tif(name==\\\"siam\\\"){return [\\\"indonesia\\\",\\\"india\\\",\\\"china\\\"]}\\r\\n\\tif(name==\\\"india\\\"){return [\\\"siam\\\",\\\"china\\\",\\\"afghanistan\\\",\\\"middle_east\\\"]}\\r\\n\\tif(name==\\\"middle_east\\\"){return [\\\"russia\\\",\\\"east_africa\\\",\\\"egypt\\\",\\\"afghanistan\\\",\\\"india\\\",\\\"southern_europe\\\"]}\\r\\n\\tif(name==\\\"afghanistan\\\"){return [\\\"middle_east\\\",\\\"india\\\",\\\"china\\\",\\\"russia\\\",\\\"ural\\\"]}\\r\\n\\tif(name==\\\"china\\\"){return [\\\"afghanistan\\\",\\\"siam\\\",\\\"india\\\",\\\"ural\\\",\\\"siberia\\\",\\\"mongolia\\\"]}\\r\\n\\tif(name==\\\"mongolia\\\"){return [\\\"china\\\",\\\"siberia\\\",\\\"japan\\\",\\\"kamchatka\\\",\\\"irkutsk\\\"]}\\r\\n\\tif(name==\\\"japan\\\"){return [\\\"kamchatka\\\",\\\"mongolia\\\"]}\\r\\n\\tif(name==\\\"siberia\\\"){return [\\\"ural\\\",\\\"china\\\",\\\"mongolia\\\",\\\"yakursk\\\",\\\"irkutsk\\\"]}\\r\\n\\tif(name==\\\"ural\\\"){return [\\\"russia\\\",\\\"afghanistan\\\",\\\"china\\\",\\\"siberia\\\"]}\\r\\n\\tif(name==\\\"irkutsk\\\"){return [\\\"mongolia\\\",\\\"siberia\\\",\\\"kamchatka\\\",\\\"yakursk\\\"]}\\r\\n\\tif(name==\\\"yakursk\\\"){return [\\\"irkutsk\\\",\\\"kamchatka\\\",\\\"siberia\\\"]}\\r\\n\\tif(name==\\\"kamchatka\\\"){return [\\\"irkutsk\\\",\\\"yakursk\\\",\\\"japan\\\",\\\"mongolia\\\",\\\"alaska\\\"]}\\r\\n\\tif(name==\\\"russia\\\"){return [\\\"ural\\\",\\\"afghanistan\\\",\\\"middle_east\\\",\\\"southern_europe\\\",\\\"northern_europe\\\",\\\"scandinavia\\\"]}\\r\\n\\tif(name==\\\"scandinavia\\\"){return [\\\"russia\\\",\\\"iceland\\\",\\\"great_britain\\\",\\\"northern_europe\\\"]}\\r\\n\\tif(name==\\\"northern_europe\\\"){return [\\\"southern_europe\\\",\\\"russia\\\",\\\"scandinavia\\\",\\\"western_europe\\\",\\\"great_britain\\\"]}\\r\\n\\tif(name==\\\"southern_europe\\\"){return [\\\"egypt\\\",\\\"north_africa\\\",\\\"middle_east\\\",\\\"western_europe\\\",\\\"russia\\\"]}\\r\\n\\tif(name==\\\"western_europe\\\"){return [\\\"north_africa\\\",\\\"great_britain\\\",\\\"southern_europe\\\",\\\"northern_europe\\\"]}\\r\\n\\tif(name==\\\"great_britain\\\"){return [\\\"western_europe\\\",\\\"iceland\\\",\\\"scandinavia\\\",\\\"northern_europe\\\"]}\\r\\n\\tif(name==\\\"iceland\\\"){return [\\\"great_britain\\\",\\\"northern_europe\\\",\\\"scandinavia\\\",\\\"greenland\\\"]}\\r\\n\\tif(name==\\\"greenland\\\"){return [\\\"iceland\\\",\\\"northwest_territory\\\",\\\"ontario\\\",\\\"quebec\\\"]}\\r\\n\\tif(name==\\\"northwest_territory\\\"){return [\\\"alaska\\\",\\\"ontario\\\",\\\"greenland\\\",\\\"alberta\\\"]}\\r\\n\\tif(name==\\\"alaska\\\"){return [\\\"northwest_territory\\\",\\\"alberta\\\",\\\"kamchatka\\\"]}\\r\\n\\tif(name==\\\"alberta\\\"){return [\\\"alaska\\\",\\\"northwest_territory\\\",\\\"ontario\\\",\\\"western_united_states\\\"]}\\r\\n\\tif(name==\\\"ontario\\\"){return [\\\"western_united_states\\\",\\\"alberta\\\",\\\"quebec\\\",\\\"eastern_united_states\\\",\\\"northwest_territory\\\",\\\"greenland\\\"]}\\r\\n\\tif(name==\\\"quebec\\\"){return [\\\"greenland\\\",\\\"ontario\\\",\\\"eastern_united_states\\\"]}\\r\\n\\tif(name==\\\"eastern_united_states\\\"){return [\\\"western_united_states\\\",\\\"ontario\\\",\\\"quebec\\\",\\\"central_america\\\"]}\\r\\n\\tif(name==\\\"western_united_states\\\"){return [\\\"alberta\\\",\\\"ontario\\\",\\\"central_america\\\",\\\"eastern_united_states\\\"]}\\r\\n\\tif(name==\\\"central_america\\\"){return [\\\"western_united_states\\\",\\\"eastern_united_states\\\",\\\"venezuela\\\"]}\\r\\n\\tif(name==\\\"venezuela\\\"){return [\\\"central_america\\\",\\\"brazil\\\",\\\"peru\\\"]}\\r\\n\\tif(name==\\\"peru\\\"){return [\\\"brazil\\\",\\\"venezuela\\\",\\\"argentina\\\"]}\\r\\n\\tif(name==\\\"brazil\\\"){return [\\\"peru\\\",\\\"venezuela\\\",\\\"argentina\\\",\\\"north_africa\\\"]}\\r\\n\\tif(name==\\\"argentina\\\"){return [\\\"peru\\\",\\\"brazil\\\"]}\\r\\n\\tif(name==\\\"north_africa\\\"){return [\\\"brazil\\\",\\\"western_europe\\\",\\\"southern_europe\\\",\\\"egypt\\\",\\\"east_africa\\\",\\\"congo\\\"]}\\r\\n\\tif(name==\\\"egypt\\\"){return [\\\"southern_europe\\\",\\\"middle_east\\\",\\\"north_africa\\\",\\\"east_africa\\\"]}\\r\\n\\tif(name==\\\"east_africa\\\"){return [\\\"egypt\\\",\\\"middle_east\\\",\\\"north_africa\\\",\\\"congo\\\",\\\"madagascar\\\",\\\"south_africa\\\"]}\\r\\n\\tif(name==\\\"madagascar\\\"){return [\\\"south_africa\\\",\\\"east_africa\\\"]}\\r\\n\\tif(name==\\\"south_africa\\\"){return [\\\"madagascar\\\",\\\"congo\\\",\\\"east_africa\\\"]}\\r\\n\\tif(name==\\\"congo\\\"){return [\\\"south_africa\\\",\\\"north_africa\\\",\\\"east_africa\\\"]}\\r\\n}\",\n \"function fl_outToLevivot ()\\n\\t\\t{if(freez==\\\"false\\\"){\\n\\t\\t\\tconsole.log(\\\"hit\\\")\\n\\t\\t\\tthis.rimon.alpha=1\\n\\t\\t\\tthis.sufgania.alpha=1\\n\\t\\t\\tthis.selek.alpha=1\\n\\t\\t\\tthis.tamar.alpha=1\\n\\t\\t\\tthis.karpas.alpha=1\\n\\t\\t\\tthis.haroset.alpha=1\\n\\t\\t\\tthis.maza.alpha=1\\n\\t\\t\\tthis.hasa.alpha=1\\n\\t\\t\\tthis.beiza.alpha=1\\n\\t\\t\\tthis.hazeret.alpha=1\\n\\t\\t\\tthis.mamtak.alpha=1\\n\\t\\t\\tthis.gvina.alpha=1\\n\\t\\t\\tthis.oznei_aman.alpha=1\\n\\t\\t\\tthis.dvash.alpha=1\\n\\t\\t\\tthis.dag.alpha=1\\n\\t\\t\\tthis.sumsum.alpha=1\\n\\t\\t\\tthis.perot.alpha=1\\n\\t\\t\\tthis.mishloah.alpha=1\\n\\t\\t\\tthis.of.alpha=1\\n\\t\\t this.tu_btn.alpha=1\\n\\t\\t this.purim_btn.alpha=1\\n\\t\\t this.pesach_btn.alpha=1\\n\\t\\t this.shavuot_btn.alpha=1\\n\\t\\t this.rosh_ha_shana_btn.alpha=1\\n\\t\\t this.modern_btn.alpha=1\\n\\t\\t\\t\\t\\t this.arrow_btn.alpha=0\\n\\t\\tthis.arrowAside_mc.alpha=0\\n\\t\\tthis.gvina_explain.alpha=0\\n\\t\\tthis.mishloah_explain.alpha=0\\n\\t\\tthis.sufgania_explain.alpha=0\\n\\t\\tthis.perot_explain.alpha=0\\n\\t\\tthis.tapuah_explain.alpha=0\\n\\t\\tthis.maza_explain.alpha=0\\n\\t\\t\\n\\t\\t}}\",\n \"addVuln() {\\n const navigateAction = NavigationActions.navigate({\\n routeName: 'AddVuln'\\n });\\n this.props.navigation.dispatch(navigateAction);\\n }\",\n \"previousChapter() {\\n var prev = '/' + (parseInt(this.props.currentRoute.get('params').get('surahId')) - 1);\\n var currentPos = parseInt(this.props.currentRoute.get('params').get('surahId'));\\n if (currentPos <= 1){\\n return null;\\n }\\n else {\\n return (\\n \\n \\n PREVIOUS SURAH\\n \\n );\\n }\\n }\",\n \"function back() {\\n\\tif (!alternativeRatingViewFlag) {\\n\\t\\thideView(schritteTeilnehmen[currentView]);\\n\\t\\tdisableNavElement(schritteNavTeilnehmen[currentView]);\\n\\t\\tif (currentView > 0) {\\n\\t\\t\\tcurrentView -= 1;\\n\\t\\t} else {\\n\\t\\t\\tcurrentView = schritteTeilnehmen.length - 1;\\n\\t\\t}\\n\\t\\tdocument.getElementById(schritteTeilnehmen[currentView]).style.visibility = \\\"visible\\\";\\n\\t\\tdocument.getElementById(schritteNavTeilnehmen[currentView]).style.backgroundColor = navActiveTeilnehmenColor;\\n\\t\\tspecificViewChanges(currentView);\\n\\t\\tif (currentView >= 2) { // reached the alternative ratings view where we will \\\"fake\\\" move next, but stay at current view\\n alternativeRatingViewFlag = true;\\n\\t\\t}\\n\\t} else {\\n\\t\\trateHint = document.getElementById(\\\"rateHint\\\");\\n\\t\\thideHints(rateHint);\\n\\t\\tif (currentAlternative <= 0) {\\n //alternativeRatingViewFlag = false;\\n\\t\\t\\t//back();\\n\\t\\t} else {\\n\\t\\t\\tbackAlternative();\\n }\\n }\\n}\",\n \"function goBack() {\\r\\n \\t\\t$state.go('main.afiliado.edit.examen.list', {afiliadoId: $stateParams.afiliadoId});\\r\\n \\t}\",\n \"inventarioNaves() {\\n return this.poscionNaves.length;\\n }\",\n \"function tourDeMot(){\\n\\tif(qual1Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual1'),0);\\n\\t}\\n\\tif(qual2Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual2'),1);\\n\\t}\\n\\tif(qual3Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual3'),2);\\n\\t}\\n\\tif(qual4Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual4'),3);\\n\\t}\\n\\tif(qual5Accept){\\n\\t\\ttourDeLettres(document.getElementById('qual5'),4);\\n\\t}\\n}\",\n \"function redirect(v) {\\n var edges = tree.inEdges(v);\\n for (var i in edges) {\\n var e = edges[i];\\n var u = tree.source(e);\\n var value = tree.edge(e);\\n redirect(u);\\n tree.delEdge(e);\\n value.reversed = !value.reversed;\\n tree.addEdge(e, v, u, value);\\n }\\n }\",\n \"function NFA(lang, states, initial) {\\n this.lang = lang;\\n this.states = states;\\n this.initial = initial;\\n this.current = [initial];\\n}\",\n \"function l$5(l,e){0===e.normalType||1===e.normalType?(l.include(o$8,e),l.varyings.add(\\\"vNormalWorld\\\",\\\"vec3\\\"),l.varyings.add(\\\"vNormalView\\\",\\\"vec3\\\"),l.vertex.uniforms.add(\\\"uTransformNormal_GlobalFromModel\\\",\\\"mat3\\\"),l.vertex.uniforms.add(\\\"uTransformNormal_ViewFromGlobal\\\",\\\"mat3\\\"),l.vertex.code.add(t$i`void forwardNormal() {\\nvNormalWorld = uTransformNormal_GlobalFromModel * normalModel();\\nvNormalView = uTransformNormal_ViewFromGlobal * vNormalWorld;\\n}`)):2===e.normalType?(l.include(d$2,e),l.varyings.add(\\\"vNormalWorld\\\",\\\"vec3\\\"),l.vertex.code.add(t$i`\\n void forwardNormal() {\\n vNormalWorld = ${1===e.viewingMode?t$i`normalize(vPositionWorldCameraRelative);`:t$i`vec3(0.0, 0.0, 1.0);`}\\n }\\n `)):l.vertex.code.add(t$i`void forwardNormal() {}`);}\",\n \"equivalentMove(_move,size){\\n const move =_move.split('');\\n let inverted = '';\\n let depth;\\n if(move[0]==='0'){\\n depth = size - parseInt(move[1]) + 1;\\n }\\n else{\\n depth = size - parseInt(move[0]+move[1]) + 1;\\n }\\n \\n if(depth<10){\\n inverted+=`0${depth}`\\n }\\n else{\\n inverted+=`${depth}`\\n }\\n \\n switch(move[2]){\\n case 'F':\\n inverted+='B';\\n break;\\n case 'f':\\n inverted+='b';\\n break;\\n case 'U':\\n inverted+='D';\\n break;\\n case 'u':\\n inverted+='d';\\n break;\\n case 'R':\\n inverted+='L';\\n break;\\n case 'r':\\n inverted+='l';\\n break;\\n case 'B':\\n inverted+='F';\\n break;\\n case 'b':\\n inverted+='f';\\n break;\\n case 'L':\\n inverted+='R';\\n break;\\n case 'l':\\n inverted+='r';\\n break;\\n case 'D':\\n inverted+='U';\\n break;\\n case 'd':\\n inverted+='u';\\n break;\\n default:\\n }\\n \\n if(move.length<4) inverted+=\\\"'\\\";\\n return inverted;\\n \\n }\",\n \"function onNavBack() {\\n _currentTilesType = \\\"variables\\\";\\n _selectedVariable = null;\\n _$searchControl.val(_savedSearchQuery);\\n\\n _datasourceInfoPanel.hide();\\n _$datasourcesList.hide();\\n _$datasourcesListContent.empty();\\n _$variablesList.show();\\n _$navBackBtn.hide();\\n _$sortControl.show();\\n\\n _$navPath.text(_currentSortMode == \\\"byName\\\" ?\\n FC.Settings.LAYERS_BY_NAME_MESSAGE : FC.Settings.LAYERS_BY_CATEGORY_MESSAGE);\\n\\n if(_noCategoriesFound)\\n _$sectionHeader.css(\\\"display\\\", \\\"none\\\");\\n }\",\n \"get defaultNomenCode() {\\n if (has(this.phyx, 'defaultNomenclaturalCodeIRI')) return this.phyx.defaultNomenclaturalCodeIRI;\\n const nomenCodes = (this.phyx.phylorefs || [])\\n .map(phyloref => new PhylorefWrapper(phyloref).defaultNomenCode);\\n const uniqNomenCodes = uniq(nomenCodes);\\n if (uniqNomenCodes.length === 1) return uniqNomenCodes[0];\\n return owlterms.UNKNOWN_CODE;\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.5387351","0.5278744","0.52666324","0.5205549","0.5166075","0.50942576","0.5093182","0.50588995","0.503767","0.4994336","0.4987667","0.49594438","0.49576536","0.48770863","0.48586988","0.4854245","0.4854172","0.48401853","0.48336586","0.48108345","0.47913316","0.47784883","0.47714087","0.47658178","0.47637102","0.47630298","0.4734685","0.47238448","0.47213614","0.47101063","0.47100186","0.4699309","0.4699309","0.4699309","0.4694382","0.4671528","0.46649632","0.46492556","0.46383205","0.4625557","0.46203467","0.46153453","0.46142596","0.4611613","0.46035698","0.4601067","0.45942986","0.4585357","0.45775336","0.457716","0.45745993","0.4574139","0.45706978","0.45698446","0.45622662","0.456005","0.45552936","0.45464143","0.45434523","0.45432097","0.45430535","0.45333785","0.45320415","0.45310116","0.4527018","0.4524589","0.45237675","0.45126212","0.45120075","0.4510302","0.4496541","0.44954792","0.44948545","0.4494392","0.4490293","0.4489725","0.44852617","0.4475045","0.44746342","0.44739673","0.44689012","0.44661114","0.4465326","0.44625565","0.44625565","0.44605854","0.4459952","0.4456992","0.44549656","0.4450821","0.4450517","0.444834","0.44408864","0.44390956","0.4437567","0.44355795","0.4435545","0.44334242","0.44304442","0.44260037"],"string":"[\n \"0.5387351\",\n \"0.5278744\",\n \"0.52666324\",\n \"0.5205549\",\n \"0.5166075\",\n \"0.50942576\",\n \"0.5093182\",\n \"0.50588995\",\n \"0.503767\",\n \"0.4994336\",\n \"0.4987667\",\n \"0.49594438\",\n \"0.49576536\",\n \"0.48770863\",\n \"0.48586988\",\n \"0.4854245\",\n \"0.4854172\",\n \"0.48401853\",\n \"0.48336586\",\n \"0.48108345\",\n \"0.47913316\",\n \"0.47784883\",\n \"0.47714087\",\n \"0.47658178\",\n \"0.47637102\",\n \"0.47630298\",\n \"0.4734685\",\n \"0.47238448\",\n \"0.47213614\",\n \"0.47101063\",\n \"0.47100186\",\n \"0.4699309\",\n \"0.4699309\",\n \"0.4699309\",\n \"0.4694382\",\n \"0.4671528\",\n \"0.46649632\",\n \"0.46492556\",\n \"0.46383205\",\n \"0.4625557\",\n \"0.46203467\",\n \"0.46153453\",\n \"0.46142596\",\n \"0.4611613\",\n \"0.46035698\",\n \"0.4601067\",\n \"0.45942986\",\n \"0.4585357\",\n \"0.45775336\",\n \"0.457716\",\n \"0.45745993\",\n \"0.4574139\",\n \"0.45706978\",\n \"0.45698446\",\n \"0.45622662\",\n \"0.456005\",\n \"0.45552936\",\n \"0.45464143\",\n \"0.45434523\",\n \"0.45432097\",\n \"0.45430535\",\n \"0.45333785\",\n \"0.45320415\",\n \"0.45310116\",\n \"0.4527018\",\n \"0.4524589\",\n \"0.45237675\",\n \"0.45126212\",\n \"0.45120075\",\n \"0.4510302\",\n \"0.4496541\",\n \"0.44954792\",\n \"0.44948545\",\n \"0.4494392\",\n \"0.4490293\",\n \"0.4489725\",\n \"0.44852617\",\n \"0.4475045\",\n \"0.44746342\",\n \"0.44739673\",\n \"0.44689012\",\n \"0.44661114\",\n \"0.4465326\",\n \"0.44625565\",\n \"0.44625565\",\n \"0.44605854\",\n \"0.4459952\",\n \"0.4456992\",\n \"0.44549656\",\n \"0.4450821\",\n \"0.4450517\",\n \"0.444834\",\n \"0.44408864\",\n \"0.44390956\",\n \"0.4437567\",\n \"0.44355795\",\n \"0.4435545\",\n \"0.44334242\",\n \"0.44304442\",\n \"0.44260037\"\n]"},"document_score":{"kind":"string","value":"0.5199221"},"document_rank":{"kind":"string","value":"4"}}},{"rowIdx":227,"cells":{"query":{"kind":"string","value":"Navigational, leads to syllable form from neume variants."},"document":{"kind":"string","value":"function toSyllableFromNeumeVariations(){\n pushedNeumeVariations = false;\n neumeVariations = new Array();\n \n isNeumeVariant = false;\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function L() {\n if (Syllable.DEBUG) Vex.L(\"Vex.Flow.Syllable\", arguments);\n }","function toSyllableFromVariations(){\n pushedVariations = false;\n variations = new Array();\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function stepSyllable() {\n drums();\n try {\n var s = poem[stanza];\n\n var v = s[verse];\n if (!v) {\n stepStanza();\n return stepSyllable();\n }\n var w = v.w[word];\n if (!w) {\n stepVerse();\n return stepSyllable();\n }\n var sb = w.s[syllable];\n if (!sb) {\n stepWord();\n return stepSyllable();\n }\n\n printSyllable(sb);\n\n var note = chooseNote(sb);\n playNote(note);\n sock.write(deaccent(sb));\n syllable++\n\n } catch (e) {\n stepStanza();\n intro.draw(1);\n }\n}","getCodeNorm() {\n const c = this.getCode();\n return c === NL_LIKE ? NL : c;\n }","mapSyllableRomajiUnicode() {\n return {\n mapping: [\n {syllable: {alphabet: \"h\", consonant: \"\", vowel: \"a\"}, romaji: \"a\", unicode: \"\\u3042\"},\n {syllable: {alphabet: \"h\", consonant: \"\", vowel: \"i\"}, romaji: \"i\", unicode: \"\\u3044\"},\n {syllable: {alphabet: \"h\", consonant: \"\", vowel: \"u\"}, romaji: \"u\", unicode: \"\\u3046\"},\n {syllable: {alphabet: \"h\", consonant: \"\", vowel: \"e\"}, romaji: \"e\", unicode: \"\\u3048\"},\n {syllable: {alphabet: \"h\", consonant: \"\", vowel: \"o\"}, romaji: \"o\", unicode: \"\\u304A\"},\n {syllable: {alphabet: \"h\", consonant: \"k\", vowel: \"a\"}, romaji: \"ka\", unicode: \"\\u304B\"},\n {syllable: {alphabet: \"h\", consonant: \"k\", vowel: \"i\"}, romaji: \"ki\", unicode: \"\\u304D\"},\n {syllable: {alphabet: \"h\", consonant: \"k\", vowel: \"u\"}, romaji: \"ku\", unicode: \"\\u304F\"},\n {syllable: {alphabet: \"h\", consonant: \"k\", vowel: \"e\"}, romaji: \"ke\", unicode: \"\\u3051\"},\n {syllable: {alphabet: \"h\", consonant: \"k\", vowel: \"o\"}, romaji: \"ko\", unicode: \"\\u3053\"},\n {syllable: {alphabet: \"h\", consonant: \"s\", vowel: \"a\"}, romaji: \"sa\", unicode: \"\\u3055\"},\n {syllable: {alphabet: \"h\", consonant: \"s\", vowel: \"i\"}, romaji: \"shi\", unicode: \"\\u3057\"},\n {syllable: {alphabet: \"h\", consonant: \"s\", vowel: \"u\"}, romaji: \"su\", unicode: \"\\u3059\"},\n {syllable: {alphabet: \"h\", consonant: \"s\", vowel: \"e\"}, romaji: \"se\", unicode: \"\\u305B\"},\n {syllable: {alphabet: \"h\", consonant: \"s\", vowel: \"o\"}, romaji: \"so\", unicode: \"\\u305D\"},\n {syllable: {alphabet: \"h\", consonant: \"t\", vowel: \"a\"}, romaji: \"ta\", unicode: \"\\u305F\"},\n {syllable: {alphabet: \"h\", consonant: \"t\", vowel: \"i\"}, romaji: \"chi\", unicode: \"\\u3061\"},\n {syllable: {alphabet: \"h\", consonant: \"t\", vowel: \"u\"}, romaji: \"tsu\", unicode: \"\\u3064\"},\n {syllable: {alphabet: \"h\", consonant: \"t\", vowel: \"e\"}, romaji: \"te\", unicode: \"\\u3066\"},\n {syllable: {alphabet: \"h\", consonant: \"t\", vowel: \"o\"}, romaji: \"to\", unicode: \"\\u3068\"},\n {syllable: {alphabet: \"h\", consonant: \"n\", vowel: \"a\"}, romaji: \"na\", unicode: \"\\u306A\"},\n {syllable: {alphabet: \"h\", consonant: \"n\", vowel: \"i\"}, romaji: \"ni\", unicode: \"\\u306B\"},\n {syllable: {alphabet: \"h\", consonant: \"n\", vowel: \"u\"}, romaji: \"nu\", unicode: \"\\u306C\"},\n {syllable: {alphabet: \"h\", consonant: \"n\", vowel: \"e\"}, romaji: \"ne\", unicode: \"\\u306D\"},\n {syllable: {alphabet: \"h\", consonant: \"n\", vowel: \"o\"}, romaji: \"no\", unicode: \"\\u306E\"},\n {syllable: {alphabet: \"h\", consonant: \"h\", vowel: \"a\"}, romaji: \"ha\", unicode: \"\\u306F\"},\n {syllable: {alphabet: \"h\", consonant: \"h\", vowel: \"i\"}, romaji: \"hi\", unicode: \"\\u3072\"},\n {syllable: {alphabet: \"h\", consonant: \"h\", vowel: \"u\"}, romaji: \"fu\", unicode: \"\\u3075\"},\n {syllable: {alphabet: \"h\", consonant: \"h\", vowel: \"e\"}, romaji: \"he\", unicode: \"\\u3078\"},\n {syllable: {alphabet: \"h\", consonant: \"h\", vowel: \"o\"}, romaji: \"ho\", unicode: \"\\u307B\"},\n {syllable: {alphabet: \"h\", consonant: \"m\", vowel: \"a\"}, romaji: \"ma\", unicode: \"\\u307E\"},\n {syllable: {alphabet: \"h\", consonant: \"m\", vowel: \"i\"}, romaji: \"mi\", unicode: \"\\u307F\"},\n {syllable: {alphabet: \"h\", consonant: \"m\", vowel: \"u\"}, romaji: \"mu\", unicode: \"\\u3080\"},\n {syllable: {alphabet: \"h\", consonant: \"m\", vowel: \"e\"}, romaji: \"me\", unicode: \"\\u3081\"},\n {syllable: {alphabet: \"h\", consonant: \"m\", vowel: \"o\"}, romaji: \"mo\", unicode: \"\\u3082\"},\n {syllable: {alphabet: \"h\", consonant: \"y\", vowel: \"a\"}, romaji: \"ya\", unicode: \"\\u3084\"},\n {syllable: {alphabet: \"h\", consonant: \"y\", vowel: \"u\"}, romaji: \"yu\", unicode: \"\\u3086\"},\n {syllable: {alphabet: \"h\", consonant: \"y\", vowel: \"o\"}, romaji: \"yo\", unicode: \"\\u3088\"},\n {syllable: {alphabet: \"h\", consonant: \"r\", vowel: \"a\"}, romaji: \"ra\", unicode: \"\\u3089\"},\n {syllable: {alphabet: \"h\", consonant: \"r\", vowel: \"i\"}, romaji: \"ri\", unicode: \"\\u308A\"},\n {syllable: {alphabet: \"h\", consonant: \"r\", vowel: \"u\"}, romaji: \"ru\", unicode: \"\\u308B\"},\n {syllable: {alphabet: \"h\", consonant: \"r\", vowel: \"e\"}, romaji: \"re\", unicode: \"\\u308C\"},\n {syllable: {alphabet: \"h\", consonant: \"r\", vowel: \"o\"}, romaji: \"ro\", unicode: \"\\u308D\"},\n {syllable: {alphabet: \"h\", consonant: \"w\", vowel: \"a\"}, romaji: \"wa\", unicode: \"\\u308F\"},\n {syllable: {alphabet: \"h\", consonant: \"w\", vowel: \"o\"}, romaji: \"wo\", unicode: \"\\u3092\"},\n {syllable: {alphabet: \"h\", consonant: \"\", vowel: \"n\"}, romaji: \"n\", unicode: \"\\u3093\"},\n {syllable: {alphabet: \"h\", consonant: \"g\", vowel: \"a\"}, romaji: \"ga\", unicode: \"\\u304C\"},\n {syllable: {alphabet: \"h\", consonant: \"g\", vowel: \"i\"}, romaji: \"gi\", unicode: \"\\u304E\"},\n {syllable: {alphabet: \"h\", consonant: \"g\", vowel: \"u\"}, romaji: \"gu\", unicode: \"\\u3050\"},\n {syllable: {alphabet: \"h\", consonant: \"g\", vowel: \"e\"}, romaji: \"ge\", unicode: \"\\u3052\"},\n {syllable: {alphabet: \"h\", consonant: \"g\", vowel: \"o\"}, romaji: \"go\", unicode: \"\\u3054\"},\n {syllable: {alphabet: \"h\", consonant: \"z\", vowel: \"a\"}, romaji: \"za\", unicode: \"\\u3056\"},\n {syllable: {alphabet: \"h\", consonant: \"z\", vowel: \"i\"}, romaji: \"ji\", unicode: \"\\u3058\"},\n {syllable: {alphabet: \"h\", consonant: \"z\", vowel: \"u\"}, romaji: \"zu\", unicode: \"\\u305A\"},\n {syllable: {alphabet: \"h\", consonant: \"z\", vowel: \"e\"}, romaji: \"ze\", unicode: \"\\u305C\"},\n {syllable: {alphabet: \"h\", consonant: \"z\", vowel: \"o\"}, romaji: \"zo\", unicode: \"\\u305E\"},\n {syllable: {alphabet: \"h\", consonant: \"d\", vowel: \"a\"}, romaji: \"da\", unicode: \"\\u3060\"},\n {syllable: {alphabet: \"h\", consonant: \"d\", vowel: \"i\"}, romaji: \"ji\", unicode: \"\\u3062\"},\n {syllable: {alphabet: \"h\", consonant: \"d\", vowel: \"u\"}, romaji: \"zu\", unicode: \"\\u3065\"},\n {syllable: {alphabet: \"h\", consonant: \"d\", vowel: \"e\"}, romaji: \"de\", unicode: \"\\u3067\"},\n {syllable: {alphabet: \"h\", consonant: \"d\", vowel: \"o\"}, romaji: \"do\", unicode: \"\\u3069\"},\n {syllable: {alphabet: \"h\", consonant: \"b\", vowel: \"a\"}, romaji: \"ba\", unicode: \"\\u3070\"},\n {syllable: {alphabet: \"h\", consonant: \"b\", vowel: \"i\"}, romaji: \"bi\", unicode: \"\\u3073\"},\n {syllable: {alphabet: \"h\", consonant: \"b\", vowel: \"u\"}, romaji: \"bu\", unicode: \"\\u3076\"},\n {syllable: {alphabet: \"h\", consonant: \"b\", vowel: \"e\"}, romaji: \"be\", unicode: \"\\u3079\"},\n {syllable: {alphabet: \"h\", consonant: \"b\", vowel: \"o\"}, romaji: \"bo\", unicode: \"\\u307C\"},\n {syllable: {alphabet: \"h\", consonant: \"p\", vowel: \"a\"}, romaji: \"pa\", unicode: \"\\u3071\"},\n {syllable: {alphabet: \"h\", consonant: \"p\", vowel: \"i\"}, romaji: \"pi\", unicode: \"\\u3074\"},\n {syllable: {alphabet: \"h\", consonant: \"p\", vowel: \"u\"}, romaji: \"pu\", unicode: \"\\u3077\"},\n {syllable: {alphabet: \"h\", consonant: \"p\", vowel: \"e\"}, romaji: \"pe\", unicode: \"\\u307A\"},\n {syllable: {alphabet: \"h\", consonant: \"p\", vowel: \"o\"}, romaji: \"po\", unicode: \"\\u307D\"},\n\n {syllable: {alphabet: \"k\", consonant: \"\", vowel: \"a\"}, romaji: \"a\", unicode: \"\\u30A2\"},\n {syllable: {alphabet: \"k\", consonant: \"\", vowel: \"i\"}, romaji: \"i\", unicode: \"\\u30A4\"},\n {syllable: {alphabet: \"k\", consonant: \"\", vowel: \"u\"}, romaji: \"u\", unicode: \"\\u30A6\"},\n {syllable: {alphabet: \"k\", consonant: \"\", vowel: \"e\"}, romaji: \"e\", unicode: \"\\u30A8\"},\n {syllable: {alphabet: \"k\", consonant: \"\", vowel: \"o\"}, romaji: \"o\", unicode: \"\\u30AA\"},\n {syllable: {alphabet: \"k\", consonant: \"k\", vowel: \"a\"}, romaji: \"ka\", unicode: \"\\u30AB\"},\n {syllable: {alphabet: \"k\", consonant: \"k\", vowel: \"i\"}, romaji: \"ki\", unicode: \"\\u30AD\"},\n {syllable: {alphabet: \"k\", consonant: \"k\", vowel: \"u\"}, romaji: \"ku\", unicode: \"\\u30AF\"},\n {syllable: {alphabet: \"k\", consonant: \"k\", vowel: \"e\"}, romaji: \"ke\", unicode: \"\\u30B1\"},\n {syllable: {alphabet: \"k\", consonant: \"k\", vowel: \"o\"}, romaji: \"ko\", unicode: \"\\u30B3\"},\n {syllable: {alphabet: \"k\", consonant: \"s\", vowel: \"a\"}, romaji: \"sa\", unicode: \"\\u30B5\"},\n {syllable: {alphabet: \"k\", consonant: \"s\", vowel: \"i\"}, romaji: \"shi\", unicode: \"\\u30B7\"},\n {syllable: {alphabet: \"k\", consonant: \"s\", vowel: \"u\"}, romaji: \"su\", unicode: \"\\u30B9\"},\n {syllable: {alphabet: \"k\", consonant: \"s\", vowel: \"e\"}, romaji: \"se\", unicode: \"\\u30BB\"},\n {syllable: {alphabet: \"k\", consonant: \"s\", vowel: \"o\"}, romaji: \"so\", unicode: \"\\u30BD\"},\n {syllable: {alphabet: \"k\", consonant: \"t\", vowel: \"a\"}, romaji: \"ta\", unicode: \"\\u30BF\"},\n {syllable: {alphabet: \"k\", consonant: \"t\", vowel: \"i\"}, romaji: \"chi\", unicode: \"\\u30C1\"},\n {syllable: {alphabet: \"k\", consonant: \"t\", vowel: \"u\"}, romaji: \"tsu\", unicode: \"\\u30C4\"},\n {syllable: {alphabet: \"k\", consonant: \"t\", vowel: \"e\"}, romaji: \"te\", unicode: \"\\u30C6\"},\n {syllable: {alphabet: \"k\", consonant: \"t\", vowel: \"o\"}, romaji: \"to\", unicode: \"\\u30C8\"},\n {syllable: {alphabet: \"k\", consonant: \"n\", vowel: \"a\"}, romaji: \"na\", unicode: \"\\u30CA\"},\n {syllable: {alphabet: \"k\", consonant: \"n\", vowel: \"i\"}, romaji: \"ni\", unicode: \"\\u30CB\"},\n {syllable: {alphabet: \"k\", consonant: \"n\", vowel: \"u\"}, romaji: \"nu\", unicode: \"\\u30CC\"},\n {syllable: {alphabet: \"k\", consonant: \"n\", vowel: \"e\"}, romaji: \"ne\", unicode: \"\\u30CD\"},\n {syllable: {alphabet: \"k\", consonant: \"n\", vowel: \"o\"}, romaji: \"no\", unicode: \"\\u30CE\"},\n {syllable: {alphabet: \"k\", consonant: \"h\", vowel: \"a\"}, romaji: \"ha\", unicode: \"\\u30CF\"},\n {syllable: {alphabet: \"k\", consonant: \"h\", vowel: \"i\"}, romaji: \"hi\", unicode: \"\\u30D2\"},\n {syllable: {alphabet: \"k\", consonant: \"h\", vowel: \"u\"}, romaji: \"fu\", unicode: \"\\u30D5\"},\n {syllable: {alphabet: \"k\", consonant: \"h\", vowel: \"e\"}, romaji: \"he\", unicode: \"\\u30D8\"},\n {syllable: {alphabet: \"k\", consonant: \"h\", vowel: \"o\"}, romaji: \"ho\", unicode: \"\\u30DB\"},\n {syllable: {alphabet: \"k\", consonant: \"m\", vowel: \"a\"}, romaji: \"ma\", unicode: \"\\u30DE\"},\n {syllable: {alphabet: \"k\", consonant: \"m\", vowel: \"i\"}, romaji: \"mi\", unicode: \"\\u30DF\"},\n {syllable: {alphabet: \"k\", consonant: \"m\", vowel: \"u\"}, romaji: \"mu\", unicode: \"\\u30E0\"},\n {syllable: {alphabet: \"k\", consonant: \"m\", vowel: \"e\"}, romaji: \"me\", unicode: \"\\u30E1\"},\n {syllable: {alphabet: \"k\", consonant: \"m\", vowel: \"o\"}, romaji: \"mo\", unicode: \"\\u30E2\"},\n {syllable: {alphabet: \"k\", consonant: \"y\", vowel: \"a\"}, romaji: \"ya\", unicode: \"\\u30E4\"},\n {syllable: {alphabet: \"k\", consonant: \"y\", vowel: \"u\"}, romaji: \"yu\", unicode: \"\\u30E6\"},\n {syllable: {alphabet: \"k\", consonant: \"y\", vowel: \"o\"}, romaji: \"yo\", unicode: \"\\u30E8\"},\n {syllable: {alphabet: \"k\", consonant: \"r\", vowel: \"a\"}, romaji: \"ra\", unicode: \"\\u30E9\"},\n {syllable: {alphabet: \"k\", consonant: \"r\", vowel: \"i\"}, romaji: \"ri\", unicode: \"\\u30EA\"},\n {syllable: {alphabet: \"k\", consonant: \"r\", vowel: \"u\"}, romaji: \"ru\", unicode: \"\\u30EB\"},\n {syllable: {alphabet: \"k\", consonant: \"r\", vowel: \"e\"}, romaji: \"re\", unicode: \"\\u30EC\"},\n {syllable: {alphabet: \"k\", consonant: \"r\", vowel: \"o\"}, romaji: \"ro\", unicode: \"\\u30ED\"},\n {syllable: {alphabet: \"k\", consonant: \"w\", vowel: \"a\"}, romaji: \"wa\", unicode: \"\\u30EF\"},\n {syllable: {alphabet: \"k\", consonant: \"w\", vowel: \"o\"}, romaji: \"wo\", unicode: \"\\u30F2\"},\n {syllable: {alphabet: \"k\", consonant: \"\", vowel: \"n\"}, romaji: \"n\", unicode: \"\\u30F3\"},\n {syllable: {alphabet: \"k\", consonant: \"g\", vowel: \"a\"}, romaji: \"ga\", unicode: \"\\u30AC\"},\n {syllable: {alphabet: \"k\", consonant: \"g\", vowel: \"i\"}, romaji: \"gi\", unicode: \"\\u30AE\"},\n {syllable: {alphabet: \"k\", consonant: \"g\", vowel: \"u\"}, romaji: \"gu\", unicode: \"\\u30B0\"},\n {syllable: {alphabet: \"k\", consonant: \"g\", vowel: \"e\"}, romaji: \"ge\", unicode: \"\\u30B2\"},\n {syllable: {alphabet: \"k\", consonant: \"g\", vowel: \"o\"}, romaji: \"go\", unicode: \"\\u30B4\"},\n {syllable: {alphabet: \"k\", consonant: \"z\", vowel: \"a\"}, romaji: \"za\", unicode: \"\\u30B6\"},\n {syllable: {alphabet: \"k\", consonant: \"z\", vowel: \"i\"}, romaji: \"ji\", unicode: \"\\u30B8\"},\n {syllable: {alphabet: \"k\", consonant: \"z\", vowel: \"u\"}, romaji: \"zu\", unicode: \"\\u30BA\"},\n {syllable: {alphabet: \"k\", consonant: \"z\", vowel: \"e\"}, romaji: \"ze\", unicode: \"\\u30BC\"},\n {syllable: {alphabet: \"k\", consonant: \"z\", vowel: \"o\"}, romaji: \"zo\", unicode: \"\\u30BE\"},\n {syllable: {alphabet: \"k\", consonant: \"d\", vowel: \"a\"}, romaji: \"da\", unicode: \"\\u30C0\"},\n {syllable: {alphabet: \"k\", consonant: \"d\", vowel: \"i\"}, romaji: \"ji\", unicode: \"\\u30C2\"},\n {syllable: {alphabet: \"k\", consonant: \"d\", vowel: \"u\"}, romaji: \"zu\", unicode: \"\\u30C5\"},\n {syllable: {alphabet: \"k\", consonant: \"d\", vowel: \"e\"}, romaji: \"de\", unicode: \"\\u30C7\"},\n {syllable: {alphabet: \"k\", consonant: \"d\", vowel: \"o\"}, romaji: \"do\", unicode: \"\\u30C9\"},\n {syllable: {alphabet: \"k\", consonant: \"b\", vowel: \"a\"}, romaji: \"ba\", unicode: \"\\u30D0\"},\n {syllable: {alphabet: \"k\", consonant: \"b\", vowel: \"i\"}, romaji: \"bi\", unicode: \"\\u30D3\"},\n {syllable: {alphabet: \"k\", consonant: \"b\", vowel: \"u\"}, romaji: \"bu\", unicode: \"\\u30D6\"},\n {syllable: {alphabet: \"k\", consonant: \"b\", vowel: \"e\"}, romaji: \"be\", unicode: \"\\u30D9\"},\n {syllable: {alphabet: \"k\", consonant: \"b\", vowel: \"o\"}, romaji: \"bo\", unicode: \"\\u30DC\"},\n {syllable: {alphabet: \"k\", consonant: \"p\", vowel: \"a\"}, romaji: \"pa\", unicode: \"\\u30D1\"},\n {syllable: {alphabet: \"k\", consonant: \"p\", vowel: \"i\"}, romaji: \"pi\", unicode: \"\\u30D4\"},\n {syllable: {alphabet: \"k\", consonant: \"p\", vowel: \"u\"}, romaji: \"pu\", unicode: \"\\u30D7\"},\n {syllable: {alphabet: \"k\", consonant: \"p\", vowel: \"e\"}, romaji: \"pe\", unicode: \"\\u30DA\"},\n {syllable: {alphabet: \"k\", consonant: \"p\", vowel: \"o\"}, romaji: \"po\", unicode: \"\\u30DD\"},\n ]\n }\n }","viewTranslation() {\n switch(this.state.CurrentViewIndex) {\n case 0 :\n return \"By Student\";\n case 1 :\n return \"By Poem\";\n default:\n return \"\";\n }\n }","function isVariantLabel(v) {\n return typeof v === \"string\" || isVariantLabels(v);\n}","function isVariantLabel(v) {\n return typeof v === \"string\" || isVariantLabels(v);\n}","function isVariantLabel(v) {\n return typeof v === \"string\" || isVariantLabels(v);\n}","function isVariantLabel(v) {\n return typeof v === \"string\" || isVariantLabels(v);\n}","function translationLabels(){\n /** This help array shows the hints for this experiment */\n\t\t\t\thelpArray=[_(\"help1\"),_(\"help2\"),_(\"help3\"),_(\"help4\"),_(\"help5\"),_(\"help6\"),_(\"help7\"),_(\"Next\"),_(\"Close\"),_(\"help8\"),_(\"help9\")];\n scope.heading=_(\"Emission spectra\");\n\t\t\t\tscope.variables=_(\"Variables\"); \n\t\t\t\tscope.result=_(\"Result\"); \n\t\t\t\tscope.copyright=_(\"copyright\"); \n\t\t\t\tscope.calibrate_txt = _(\"Reset\");\n scope.calibrate_slider_txt = _(\"Calibrate Telescope :\");\n scope.select_lamp_txt = _(\"Select Lamp :\");\n light_on_txt = _(\"Switch On Light\");\n light_off_txt = _(\"Switch Off Light\");\n place_grating_txt = _(\"Place grating\");\n remove_grating_txt = _(\"Remove grating\");\n scope.telescope_angle_txt = _(\"Angle of Telescope :\");\n scope.vernier_table_angle_txt = _(\"Angle of Vernier Table :\");\n scope.fine_angle_txt = _(\"Fine Angle of Telescope :\");\n scope.start_txt = _(\"Start\");\n\t\t\t\tscope.reset_txt = _(\"Reset\");\n scope.lamp_array = [{\n lamp:_(\"Mercury\"),\n index:0\n },{\n lamp:_(\"Hydrogen\"),\n index:1\n },{\n lamp:_(\"Neon\"),\n index:2\n }];\n scope.$apply();\t\t\t\t\n\t\t\t}","function nounForms() {\n return [...Array(28).keys()].map(i => (plurality[i >= cases.length ? 1 : 0] + \" \" + cases[i % cases.length]));\n}","function __doubleMetaphone(value) {\n var primary = '',\n secondary = '',\n index = 0,\n length = value.length,\n last = length - 1,\n isSlavoGermanic = SLAVO_GERMANIC.test(value),\n isGermanic = GERMANIC.test(value),\n characters = value.split(''),\n subvalue,\n next,\n prev,\n nextnext;\n\n value = String(value).toUpperCase() + ' ';\n\n // Skip this at beginning of word.\n if (INITIAL_EXCEPTIONS.test(value))\n index++;\n\n // Initial X is pronounced Z, which maps to S. Such as `Xavier`\n if (characters[0] === 'X') {\n primary += 'S';\n secondary += 'S';\n\n index++;\n }\n\n while (index < length) {\n prev = characters[index - 1];\n next = characters[index + 1];\n nextnext = characters[index + 2];\n\n switch (characters[index]) {\n case 'A':\n case 'E':\n case 'I':\n case 'O':\n case 'U':\n case 'Y':\n case 'À':\n case 'Ê':\n case 'É':\n case 'É':\n if (index === 0) {\n // All initial vowels now map to `A`.\n primary += 'A';\n secondary += 'A';\n }\n\n index++;\n\n break;\n case 'B':\n primary += 'P';\n secondary += 'P';\n\n if (next === 'B')\n index++;\n\n index++;\n\n break;\n case 'Ç':\n primary += 'S';\n secondary += 'S';\n index++;\n\n break;\n case 'C':\n // Various Germanic:\n if (prev === 'A' &&\n next === 'H' &&\n nextnext !== 'I' &&\n !VOWELS.test(characters[index - 2]) &&\n (nextnext !== 'E' || (subvalue = value.slice(index - 2, index + 4) &&\n (subvalue === 'BACHER' || subvalue === 'MACHER')))\n ) {\n primary += 'K';\n secondary += 'K';\n index += 2;\n\n break;\n }\n\n // Special case for `Caesar`.\n if (index === 0 && value.slice(index + 1, index + 6) === 'AESAR') {\n primary += 'S';\n secondary += 'S';\n index += 2;\n\n break;\n }\n\n // Italian `Chianti`.\n if (value.slice(index + 1, index + 4) === 'HIA') {\n primary += 'K';\n secondary += 'K';\n index += 2;\n\n break;\n }\n\n if (next === 'H') {\n // Find `Michael`.\n if (index > 0 && nextnext === 'A' && characters[index + 3] === 'E') {\n primary += 'K';\n secondary += 'X';\n index += 2;\n\n break;\n }\n\n // Greek roots such as `chemistry`, `chorus`.\n if (index === 0 && GREEK_INITIAL_CH.test(value)) {\n primary += 'K';\n secondary += 'K';\n index += 2;\n\n break;\n }\n\n // Germanic, Greek, or otherwise `CH` for `KH` sound.\n if (isGermanic ||\n // Such as 'architect' but not 'arch', orchestra', 'orchid'.\n GREEK_CH.test(value.slice(index - 2, index + 4)) ||\n (nextnext === 'T' || nextnext === 'S') ||\n ((index === 0 ||\n prev === 'A' ||\n prev === 'E' ||\n prev === 'O' ||\n prev === 'U') &&\n // Such as `wachtler`, `weschsler`, but not `tichner`.\n CH_FOR_KH.test(nextnext))\n ) {\n primary += 'K';\n secondary += 'K';\n } else if (index === 0) {\n primary += 'X';\n secondary += 'X';\n } else if (value.slice(0, 2) === 'MC') { // Such as 'McHugh'.\n // Bug? Why matching absolute? what about McHiccup?\n primary += 'K';\n secondary += 'K';\n } else {\n primary += 'X';\n secondary += 'K';\n }\n\n index += 2;\n\n break;\n }\n\n // Such as `Czerny`.\n if (next === 'Z' && value.slice(index - 2, index) !== 'WI') {\n primary += 'S';\n secondary += 'X';\n index += 2;\n\n break;\n }\n\n // Such as `Focaccia`.\n if (value.slice(index + 1, index + 4) === 'CIA') {\n primary += 'X';\n secondary += 'X';\n index += 3;\n\n break;\n }\n\n // Double `C`, but not `McClellan`.\n if (next === 'C' && !(index === 1 && characters[0] === 'M')) {\n // Such as `Bellocchio`, but not `Bacchus`.\n if ((nextnext === 'I' ||\n nextnext === 'E' ||\n nextnext === 'H') &&\n value.slice(index + 2, index + 4) !== 'HU'\n ) {\n subvalue = value.slice(index - 1, index + 4);\n\n // Such as `Accident`, `Accede`, `Succeed`.\n if ((index === 1 && prev === 'A') || subvalue === 'UCCEE' || subvalue === 'UCCES') {\n primary += 'KS';\n secondary += 'KS';\n } else { // Such as `Bacci`, `Bertucci`, other Italian.\n primary += 'X';\n secondary += 'X';\n }\n\n index += 3;\n\n break;\n } else {\n // Pierce's rule.\n primary += 'K';\n secondary += 'K';\n index += 2;\n\n break;\n }\n }\n\n if (next === 'G' || next === 'K' || next === 'Q') {\n primary += 'K';\n secondary += 'K';\n index += 2;\n\n break;\n }\n\n // Italian.\n if (next === 'I' && (nextnext === 'A' || nextnext === 'E' || nextnext === 'O')) {\n primary += 'S';\n secondary += 'X';\n index += 2;\n\n break;\n }\n\n if (next === 'I' || next === 'E' || next === 'Y') {\n primary += 'S';\n secondary += 'S';\n index += 2;\n\n break;\n }\n\n primary += 'K';\n secondary += 'K';\n\n // Skip two extra characters ahead in `Mac Caffrey`, `Mac Gregor`.\n if (next === ' ' && (nextnext === 'C' || nextnext === 'G' || nextnext === 'Q')) {\n index += 3;\n break;\n }\n\n if (next === 'K' || next === 'Q' || (next === 'C' && nextnext !== 'E' && nextnext !== 'I'))\n index++;\n\n index++;\n\n break;\n case 'D':\n if (next === 'G') {\n // Such as `edge`.\n if (nextnext === 'E' || nextnext === 'I' || nextnext === 'Y') {\n primary += 'J';\n secondary += 'J';\n index += 3;\n } else { // Such as `Edgar`.\n primary += 'TK';\n secondary += 'TK';\n index += 2;\n }\n\n break;\n }\n\n if (next === 'T' || next === 'D') {\n primary += 'T';\n secondary += 'T';\n index += 2;\n\n break;\n }\n\n primary += 'T';\n secondary += 'T';\n index++;\n\n break;\n case 'F':\n if (next === 'F')\n index++;\n\n index++;\n primary += 'F';\n secondary += 'F';\n\n break;\n case 'G':\n if (next === 'H') {\n if (index > 0 && !VOWELS.test(prev)) {\n primary += 'K';\n secondary += 'K';\n index += 2;\n\n break;\n }\n\n // Such as `Ghislane`, `Ghiradelli`.\n if (index === 0) {\n if (nextnext === 'I') {\n primary += 'J';\n secondary += 'J';\n } else {\n primary += 'K';\n secondary += 'K';\n }\n index += 2;\n break;\n }\n\n // Parker's rule (with some further refinements).\n if ((// Such as `Hugh`\n subvalue = characters[index - 2],\n subvalue === 'B' ||\n subvalue === 'H' ||\n subvalue === 'D'\n ) ||\n (// Such as `bough`.\n subvalue = characters[index - 3],\n subvalue === 'B' ||\n subvalue === 'H' ||\n subvalue === 'D'\n ) ||\n (// Such as `Broughton`.\n subvalue = characters[index - 4],\n subvalue === 'B' ||\n subvalue === 'H'\n )\n ) {\n index += 2;\n\n break;\n }\n\n // Such as `laugh`, `McLaughlin`, `cough`, `gough`, `rough`, `tough`.\n if (index > 2 && prev === 'U' && G_FOR_F.test(characters[index - 3])) {\n primary += 'F';\n secondary += 'F';\n } else if (index > 0 && prev !== 'I') {\n primary += 'K';\n secondary += 'K';\n }\n\n index += 2;\n\n break;\n }\n\n if (next === 'N') {\n if (index === 1 && VOWELS.test(characters[0]) && !isSlavoGermanic) {\n primary += 'KN';\n secondary += 'N';\n } else if (\n // Not like `Cagney`.\n value.slice(index + 2, index + 4) !== 'EY' &&\n value.slice(index + 1) !== 'Y' &&\n !isSlavoGermanic\n ) {\n primary += 'N';\n secondary += 'KN';\n } else {\n primary += 'KN';\n secondary += 'KN';\n }\n\n index += 2;\n\n break;\n }\n\n //Such as `Tagliaro`.\n if (value.slice(index + 1, index + 3) === 'LI' && !isSlavoGermanic) {\n primary += 'KL';\n secondary += 'L';\n index += 2;\n\n break;\n }\n\n // -ges-, -gep-, -gel- at beginning.\n if (index === 0 && INITIAL_G_FOR_KJ.test(value.slice(1, 3))) {\n primary += 'K';\n secondary += 'J';\n index += 2;\n\n break;\n }\n\n // -ger-, -gy-.\n if ((value.slice(index + 1, index + 3) === 'ER' &&\n prev !== 'I' && prev !== 'E' &&\n !INITIAL_ANGER_EXCEPTION.test(value.slice(0, 6))\n ) ||\n (next === 'Y' && !G_FOR_KJ.test(prev))\n ) {\n primary += 'K';\n secondary += 'J';\n index += 2;\n\n break;\n }\n\n // Italian such as `biaggi`.\n if (next === 'E' || next === 'I' || next === 'Y' || (\n (prev === 'A' || prev === 'O') &&\n next === 'G' && nextnext === 'I'\n )\n ) {\n // Obvious Germanic.\n if (value.slice(index + 1, index + 3) === 'ET' || isGermanic) {\n primary += 'K';\n secondary += 'K';\n } else {\n // Always soft if French ending.\n if (value.slice(index + 1, index + 5) === 'IER ') {\n primary += 'J';\n secondary += 'J';\n } else {\n primary += 'J';\n secondary += 'K';\n }\n }\n\n index += 2;\n\n break;\n }\n\n if (next === 'G')\n index++;\n\n index++;\n\n primary += 'K';\n secondary += 'K';\n\n break;\n case 'H':\n // Only keep if first & before vowel or btw. 2 vowels.\n if (VOWELS.test(next) && (index === 0 || VOWELS.test(prev))) {\n primary += 'H';\n secondary += 'H';\n\n index++;\n }\n\n index++;\n\n break;\n case 'J':\n // Obvious Spanish, `jose`, `San Jacinto`.\n if (value.slice(index, index + 4) === 'JOSE' || value.slice(0, 4) === 'SAN ') {\n if (value.slice(0, 4) === 'SAN ' || (index === 0 && characters[index + 4] === ' ')) {\n primary += 'H';\n secondary += 'H';\n } else {\n primary += 'J';\n secondary += 'H';\n }\n\n index++;\n\n break;\n }\n\n if (index === 0) {\n // Such as `Yankelovich` or `Jankelowicz`.\n primary += 'J';\n secondary += 'A';\n } else if (// Spanish pron. of such as `bajador`.\n !isSlavoGermanic &&\n (next === 'A' || next === 'O') &&\n VOWELS.test(prev)\n ) {\n primary += 'J';\n secondary += 'H';\n } else if (index === last) {\n primary += 'J';\n } else if (prev !== 'S' && prev !== 'K' && prev !== 'L' && !J_FOR_J_EXCEPTION.test(next)) {\n primary += 'J';\n secondary += 'J';\n } else if (next === 'J') {\n index++;\n }\n\n index++;\n\n break;\n case 'K':\n if (next === 'K')\n index++;\n\n primary += 'K';\n secondary += 'K';\n index++;\n\n break;\n case 'L':\n if (next === 'L') {\n // Spanish such as `cabrillo`, `gallegos`.\n if ((index === length - 3 && ((\n prev === 'I' && (\n nextnext === 'O' || nextnext === 'A'\n )\n ) || (\n prev === 'A' && nextnext === 'E'\n )\n )) || (\n prev === 'A' && nextnext === 'E' && ((\n characters[last] === 'A' || characters[last] === 'O'\n ) || ALLE.test(value.slice(last - 1, length))\n )\n )\n ) {\n primary += 'L';\n index += 2;\n\n break;\n }\n\n index++;\n }\n\n primary += 'L';\n secondary += 'L';\n index++;\n\n break;\n case 'M':\n // Such as `dumb`, `thumb`.\n if (next === 'M' || (\n prev === 'U' && next === 'B' && (\n index + 1 === last || value.slice(index + 2, index + 4) === 'ER')\n )\n ) {\n index++;\n }\n\n index++;\n primary += 'M';\n secondary += 'M';\n\n break;\n case 'N':\n if (next === 'N')\n index++;\n\n index++;\n primary += 'N';\n secondary += 'N';\n\n break;\n case 'Ñ':\n index++;\n primary += 'N';\n secondary += 'N';\n\n break;\n case 'P':\n if (next === 'H') {\n primary += 'F';\n secondary += 'F';\n index += 2;\n\n break;\n }\n\n // Also account for `campbell` and `raspberry`.\n subvalue = next;\n\n if (subvalue === 'P' || subvalue === 'B')\n index++;\n\n index++;\n\n primary += 'P';\n secondary += 'P';\n\n break;\n case 'Q':\n if (next === 'Q') {\n index++;\n }\n\n index++;\n primary += 'K';\n secondary += 'K';\n\n break;\n case 'R':\n // French such as `Rogier`, but exclude `Hochmeier`.\n if (index === last &&\n !isSlavoGermanic &&\n prev === 'E' &&\n characters[index - 2] === 'I' &&\n characters[index - 4] !== 'M' && (\n characters[index - 3] !== 'E' &&\n characters[index - 3] !== 'A'\n )\n ) {\n secondary += 'R';\n } else {\n primary += 'R';\n secondary += 'R';\n }\n\n if (next === 'R')\n index++;\n\n index++;\n\n break;\n case 'S':\n // Special cases `island`, `isle`, `carlisle`, `carlysle`.\n if (next === 'L' && (prev === 'I' || prev === 'Y')) {\n index++;\n\n break;\n }\n\n // Special case `sugar-`.\n if (index === 0 && value.slice(1, 5) === 'UGAR') {\n primary += 'X';\n secondary += 'S';\n index++;\n\n break;\n }\n\n if (next === 'H') {\n // Germanic.\n if (H_FOR_S.test(value.slice(index + 1, index + 5))) {\n primary += 'S';\n secondary += 'S';\n } else {\n primary += 'X';\n secondary += 'X';\n }\n\n index += 2;\n break;\n }\n\n if (next === 'I' && (nextnext === 'O' || nextnext === 'A')) {\n if (!isSlavoGermanic) {\n primary += 'S';\n secondary += 'X';\n } else {\n primary += 'S';\n secondary += 'S';\n }\n\n index += 3;\n\n break;\n }\n\n /*\n * German & Anglicization's, such as `Smith` match `Schmidt`,\n * `snider` match `Schneider`. Also, -sz- in slavic language\n * although in hungarian it is pronounced `s`.\n */\n if (next === 'Z' || (\n index === 0 && (\n next === 'L' || next === 'M' || next === 'N' || next === 'W'\n )\n )\n ) {\n primary += 'S';\n secondary += 'X';\n\n if (next === 'Z')\n index++;\n\n index++;\n\n break;\n }\n\n if (next === 'C') {\n // Schlesinger's rule.\n if (nextnext === 'H') {\n subvalue = value.slice(index + 3, index + 5);\n\n // Dutch origin, such as `school`, `schooner`.\n if (DUTCH_SCH.test(subvalue)) {\n // Such as `schermerhorn`, `schenker`.\n if (subvalue === 'ER' || subvalue === 'EN') {\n primary += 'X';\n secondary += 'SK';\n } else {\n primary += 'SK';\n secondary += 'SK';\n }\n\n index += 3;\n\n break;\n }\n\n if (index === 0 && !VOWELS.test(characters[3]) && characters[3] !== 'W') {\n primary += 'X';\n secondary += 'S';\n } else {\n primary += 'X';\n secondary += 'X';\n }\n\n index += 3;\n\n break;\n }\n\n if (nextnext === 'I' || nextnext === 'E' || nextnext === 'Y') {\n primary += 'S';\n secondary += 'S';\n index += 3;\n break;\n }\n\n primary += 'SK';\n secondary += 'SK';\n index += 3;\n\n break;\n }\n\n subvalue = value.slice(index - 2, index);\n\n // French such as `resnais`, `artois`.\n if (index === last && (subvalue === 'AI' || subvalue === 'OI')) {\n secondary += 'S';\n } else {\n primary += 'S';\n secondary += 'S';\n }\n\n if (next === 'S' || next === 'Z')\n index++;\n\n index++;\n\n break;\n case 'T':\n if (next === 'I' && nextnext === 'O' && characters[index + 3] === 'N') {\n primary += 'X';\n secondary += 'X';\n index += 3;\n\n break;\n }\n\n subvalue = value.slice(index + 1, index + 3);\n\n if ((next === 'I' && nextnext === 'A') || (next === 'C' && nextnext === 'H')) {\n primary += 'X';\n secondary += 'X';\n index += 3;\n\n break;\n }\n\n if (next === 'H' || (next === 'T' && nextnext === 'H')) {\n // Special case `Thomas`, `Thames` or Germanic.\n if (isGermanic || ((nextnext === 'O' || nextnext === 'A') && characters[index + 3] === 'M')) {\n primary += 'T';\n secondary += 'T';\n } else {\n primary += '0';\n secondary += 'T';\n }\n\n index += 2;\n\n break;\n }\n\n if (next === 'T' || next === 'D')\n index++;\n\n index++;\n primary += 'T';\n secondary += 'T';\n\n break;\n case 'V':\n if (next === 'V')\n index++;\n\n primary += 'F';\n secondary += 'F';\n index++;\n\n break;\n case 'W':\n // Can also be in middle of word (as already taken care of for initial).\n if (next === 'R') {\n primary += 'R';\n secondary += 'R';\n index += 2;\n\n break;\n }\n\n if (index === 0) {\n // `Wasserman` should match `Vasserman`.\n if (VOWELS.test(next)) {\n primary += 'A';\n secondary += 'F';\n } else if (next === 'H') {\n // Need `Uomo` to match `Womo`.\n primary += 'A';\n secondary += 'A';\n }\n }\n\n // `Arnow` should match `Arnoff`.\n if (((prev === 'E' || prev === 'O') &&\n next === 'S' && nextnext === 'K' && (\n characters[index + 3] === 'I' ||\n characters[index + 3] === 'Y'\n )\n ) || value.slice(0, 3) === 'SCH' || (index === last && VOWELS.test(prev))\n ) {\n secondary += 'F';\n index++;\n\n break;\n }\n\n // Polish such as `Filipowicz`.\n if (next === 'I' && (nextnext === 'C' || nextnext === 'T') && characters[index + 3] === 'Z') {\n primary += 'TS';\n secondary += 'FX';\n index += 4;\n\n break;\n }\n\n index++;\n\n break;\n case 'X':\n // French such as `breaux`.\n if (index === last || (prev === 'U' && (\n characters[index - 2] === 'A' ||\n characters[index - 2] === 'O'\n ))\n ) {\n primary += 'KS';\n secondary += 'KS';\n }\n\n if (next === 'C' || next === 'X')\n index++;\n\n index++;\n\n break;\n case 'Z':\n // Chinese pinyin such as `Zhao`.\n if (next === 'H') {\n primary += 'J';\n secondary += 'J';\n index += 2;\n\n break;\n } else if ((next === 'Z' && (\n nextnext === 'A' || nextnext === 'I' || nextnext === 'O'\n )) || (\n isSlavoGermanic && index > 0 && prev !== 'T'\n )\n ) {\n primary += 'S';\n secondary += 'TS';\n } else {\n primary += 'S';\n secondary += 'S';\n }\n\n if (next === 'Z')\n index++;\n\n index++;\n\n break;\n default:\n index++;\n\n }\n }\n\n return [primary, secondary];\n }","function toSyllable(){\n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","alist2string(u, elab=0, vlab=0) {\n\t\tlet s = '';\n\t\tfor (let e = this.firstAt(u); e != 0; e = this.nextAt(u, e)) {\n\t\t\tlet ns = elab(e,u);\n\t\t\tif (s.length > 0 && ns.length > 0) s += ' ';\n\t\t\ts += ns;\n\t\t}\n\t\treturn vlab(u) + (s ? `[${s}]` : '');\n\t}","static theRealNameOfTheVirus(extended = false){\n if(extended){\n return \"No, the SARS-CoV-2 coronavirus causes the CoVID-19 disease.\"\n }else{\n return false;\n }\n }","function translationLabels(){\n /** This help array shows the hints for this experiment */\n\t\t\t\thelpArray = [_(\"Next\"),_(\"Close\"),_(\"help1\"),_(\"help2\"),_(\"help3\"),_(\"help4\"),_(\"help5\"),_(\"help6\"),_(\"help7\"),_(\"help8\"),_(\"help9\"),_(\"help10\")];\n scope.heading = _(\"Young's Modulus-Uniform Bending\");\n\t\t\t\tscope.variables = _(\"Variables\"); \n\t\t\t\tscope.result = _(\"Result\"); \n\t\t\t\tscope.copyright = _(\"copyright\"); \n\t\t\t\tscope.environment_lbl = _(\"Select Environment\");\n\t\t\t\tscope.material_lbl = _(\"Select Material\");\n\t\t\t\tscope.mass_lbl = _(\"Mass of weight hanger : \");\n\t\t\t\tscope.material_lbl = _(\"Select Material\");\n\t\t\t\tscope.unit_gram = _(\"g\");\n\t\t\t\tscope.unit_cm = _(\"cm\");\n\t\t\t\tscope.breadth_lbl = _(\"Breadth of bar(b) : \");\n scope.thickness_lbl = _(\"Thickness of bar(d) : \");\n scope.blade_distance_lbl = _(\"Knife edge distance : \");\n scope.weight_hangers_distance_lbl = _(\"Weight hangers distance : \");\n scope.reset = _(\"Reset\");\n\t\t\t\tscope.result_txt = _(\"Young's Modulus of \");\n\t\t\t\tscope.environment_array = [{\n environment: _('Earth, g=9.8m/s'),\n value: 9.8\n }, {\n environment: _('Moon, g=1.63m/s'),\n value: 1.63\n }, {\n environment: _('Uranus, g=10.67m/s'),\n value: 10.67\n }, {\n environment: _('Saturn, g=11.08m/s'),\n value: 11.08\n }];\n scope.material_array = [{\n material: _('Wood'),\n value: 1.1\n }, {\n material: _('Aluminium'),\n value: 6.9\n }, {\n material: _('Copper'),\n value: 11.7\n }, {\n material: _('Steel'),\n value: 20\n }];\n\n scope.$apply();\t\t\t\t\n\t\t\t}","function undo_cyrillic_adjustments(graphemes) {\n\n var lzlls = { \n \"\\u043B\":\"l\", // CYRILLIC SMALL LETTER EL\n \"\\u0437\":\"z\", // CYRILLIC SMALL LETTER ZE\n \"\\u043B\\u044C\":\"ll\", // CYRILLIC SMALL LETTER EL and SMALL LETTER SOFT SIGN\n \"\\u0441\":\"s\", // CYRILLIC SMALL LETTER ES\n\n \"\\u041B\":\"L\", // CYRILLIC CAPITAL LETTER EL\n \"\\u0417\":\"Z\", // CYRILLIC CAPITAL LETTER ZE\n \"\\u0421\":\"S\", // CYRILLIC CAPITAL LETTER ES\n \"\\u041B\\u044C\":\"Ll\", // CYRILLIC CAPITAL LETTER EL and SMALL LETTER SOFT SIGN\n } \n\n var undo_lzlls = {\n \"\\u044F\\u0304\":\"\\u0430\\u0430\", // CYRILLIC SMALL LETTER YA with COMBINING MACRON to 'aa'\n \"\\u044F\":\"\\u0430\", // CYRILLIC SMALL LETTER YA to 'a'\n \"\\u044E\\u0304\":\"\\u0443\\u0443\", // CYRILLIC SMALL LETTER YA with COMBINING MACRON to 'uu'\n \"\\u044E\":\"\\u0443\", // CYRILLIC SMALL LETTER YU to 'u'\n }\n\n // Moves labialization symbol, i.e. Small Letter U with Dieresis to post-consonant position\n var undo_labialC = {\n \"\\u043A\":\"\\u043A\\u04F1\", // CYRILLIC SMALL LETTER KA and SMALL LETTER U with DIERESIS\n \"\\u049B\":\"\\u049B\\u04F1\", // CYRILLIC SMALL LETTER KA with DESCENDER and SMALL LETTER U with DIERESIS \n \"\\u04F7\":\"\\u04F7\\u04F1\", // CYRILLIC SMALL LETTER GHE with DESCENDER and SMALL LETTER U with DIERESIS \n \"\\u0445\":\"\\u0445\\u04F1\", // CYRILLIC SMALL LETTER HA and SMALL LETTER U with DIERESIS\n \"\\u04B3\":\"\\u04B3\\u04F1\", // CYRILLIC SMALL LETTER HA with DESCENDER and SMALL LETTER U with DIERESIS\n \"\\u04A3\":\"\\u04A3\\u04F1\", // CYRILLIC SMALL LETTER EN with DESCENDER and SMALL LETTER U with DIERESIS\n \"\\u04A3\\u044C\":\"\\u04A3\\u044C\\u04F1\", // CYRILLIC SMALL LETTER EN with DESCENDER & SMALL LETTER SOFT SIGN\n // & SMALL LETTER U with DIERESIS\n }\n\n var result = []\n\n for (var i = 0; i < graphemes.length; i++) {\n var grapheme = graphemes[i]\n\n // ADJUSTMENT 2: Delete the Cyrillic soft sign that is inserted between 'ya'/'yu' and a consonant\n if (i < graphemes.length - 1 && grapheme == \"\\u044C\" && graphemes[i+1] in undo_lzlls) {\n result.push(graphemes[i+1])\n i++\n }\n\n // ADJUSTMENT 3: The 'ya', 'yu' Cyrillic representations are rewritten as 'a'\n // and 'u' if they follow the Cyrillic representations of 'l', 'z', 'll', 's'\n else if (i < graphemes.length - 1 && grapheme in lzlls && graphemes[i+1] in undo_lzlls) {\n result.push(grapheme, undo_lzlls[graphemes[i+1]])\n i++\n }\n \n // ADJUSTMENT - A labialization symbol that appears before the consonant\n // it labializes is moved to a position after the consonant\n else if (i < graphemes.length - 1 && grapheme == \"\\u04F1\" && graphemes[i+1] in undo_labialC) {\n result.push(undo_labialC[graphemes[i+1]])\n i++\n }\n\n // No adjustments applicable\n else {\n result.push(grapheme)\n }\n }\n\n return result\n}","function HyderabadTirupati() // extends PhoneticMapper\n{\n var map = [ \n new KeyMap(\"\\u0901\", \"?\", \"z\", true), // Candrabindu\n new KeyMap(\"\\u0902\", \"\\u1E41\", \"M\"), // Anusvara\n new KeyMap(\"\\u0903\", \"\\u1E25\", \"H\"), // Visarga\n new KeyMap(\"\\u1CF2\", \"\\u1E96\", \"Z\"), // jihvamuliya\n new KeyMap(\"\\u1CF2\", \"h\\u032C\", \"V\"), // upadhmaniya\n new KeyMap(\"\\u0905\", \"a\", \"a\"), // a\n new KeyMap(\"\\u0906\", \"\\u0101\", \"A\"), // long a\n new KeyMap(\"\\u093E\", null, \"A\", true), // long a attached\n new KeyMap(\"\\u0907\", \"i\", \"i\"), // i\n new KeyMap(\"\\u093F\", null, \"i\", true), // i attached\n new KeyMap(\"\\u0908\", \"\\u012B\", \"I\"), // long i\n new KeyMap(\"\\u0940\", null, \"I\", true), // long i attached\n new KeyMap(\"\\u0909\", \"u\", \"u\"), // u\n new KeyMap(\"\\u0941\", null, \"u\", true), // u attached\n new KeyMap(\"\\u090A\", \"\\u016B\", \"U\"), // long u\n new KeyMap(\"\\u0942\", null, \"U\", true), // long u attached\n new KeyMap(\"\\u090B\", \"\\u1E5B\", \"q\"), // vocalic r\n new KeyMap(\"\\u0943\", null, \"q\", true), // vocalic r attached\n new KeyMap(\"\\u0960\", \"\\u1E5D\", \"Q\"), // long vocalic r\n new KeyMap(\"\\u0944\", null, \"Q\", true), // long vocalic r attached\n new KeyMap(\"\\u090C\", \"\\u1E37\", \"L\"), // vocalic l\n new KeyMap(\"\\u0962\", null, \"L\", true), // vocalic l attached\n new KeyMap(\"\\u0961\", \"\\u1E39\", \"LY\"), // long vocalic l\n new KeyMap(\"\\u0963\", null, \"LY\", true), // long vocalic l attached\n new KeyMap(\"\\u090F\", \"e\", \"e\"), // e\n new KeyMap(\"\\u0947\", null, \"e\", true), // e attached\n new KeyMap(\"\\u0910\", \"ai\", \"E\"), // ai\n new KeyMap(\"\\u0948\", null, \"E\", true), // ai attached\n new KeyMap(\"\\u0913\", \"o\", \"o\"), // o\n new KeyMap(\"\\u094B\", null, \"o\", true), // o attached\n new KeyMap(\"\\u0914\", \"au\", \"O\"), // au\n new KeyMap(\"\\u094C\", null, \"O\", true), // au attached\n\n // velars\n new KeyMap(\"\\u0915\\u094D\", \"k\", \"k\"), // k\n new KeyMap(\"\\u0916\\u094D\", \"kh\", \"K\"), // kh\n new KeyMap(\"\\u0917\\u094D\", \"g\", \"g\"), // g\n new KeyMap(\"\\u0918\\u094D\", \"gh\", \"G\"), // gh\n new KeyMap(\"\\u0919\\u094D\", \"\\u1E45\", \"f\"), // velar n\n\n // palatals\n new KeyMap(\"\\u091A\\u094D\", \"c\", \"c\"), // c\n new KeyMap(\"\\u091B\\u094D\", \"ch\", \"C\"), // ch\n new KeyMap(\"\\u091C\\u094D\", \"j\", \"j\"), // j\n new KeyMap(\"\\u091D\\u094D\", \"jh\", \"J\"), // jh\n new KeyMap(\"\\u091E\\u094D\", \"\\u00F1\", \"F\"), // palatal n\n\n // retroflex\n new KeyMap(\"\\u091F\\u094D\", \"\\u1E6D\", \"t\"), // retroflex t\n new KeyMap(\"\\u0920\\u094D\", \"\\u1E6Dh\", \"T\"), // retroflex th\n new KeyMap(\"\\u0921\\u094D\", \"\\u1E0D\", \"d\"), // retroflex d\n new KeyMap(\"\\u0922\\u094D\", \"\\u1E0Dh\", \"D\"), // retroflex dh\n new KeyMap(\"\\u0923\\u094D\", \"\\u1E47\", \"N\"), // retroflex n\n new KeyMap(\"\\u0933\\u094D\", \"\\u1E37\", \"lY\"), // retroflex l\n new KeyMap(\"\\u0933\\u094D\\u0939\\u094D\", \"\\u1E37\", \"lYh\"), // retroflex lh\n\n // dental\n new KeyMap(\"\\u0924\\u094D\", \"t\", \"w\"), // dental t\n new KeyMap(\"\\u0925\\u094D\", \"th\", \"W\"), // dental th\n new KeyMap(\"\\u0926\\u094D\", \"d\", \"x\"), // dental d\n new KeyMap(\"\\u0927\\u094D\", \"dh\", \"X\"), // dental dh\n new KeyMap(\"\\u0928\\u094D\", \"n\", \"n\"), // dental n\n\n // labials\n new KeyMap(\"\\u092A\\u094D\", \"p\", \"p\"), // p\n new KeyMap(\"\\u092B\\u094D\", \"ph\", \"P\"), // ph\n new KeyMap(\"\\u092C\\u094D\", \"b\", \"b\"), // b\n new KeyMap(\"\\u092D\\u094D\", \"bh\", \"B\"), // bh\n new KeyMap(\"\\u092E\\u094D\", \"m\", \"m\"), // m\n\n // sibillants\n new KeyMap(\"\\u0936\\u094D\", \"\\u015B\", \"S\"), // palatal s\n new KeyMap(\"\\u0937\\u094D\", \"\\u1E63\", \"R\"), // retroflex s\n new KeyMap(\"\\u0938\\u094D\", \"s\", \"s\"), // dental s\n new KeyMap(\"\\u0939\\u094D\", \"h\", \"h\"), // h\n\n // semivowels\n new KeyMap(\"\\u092F\\u094D\", \"y\", \"y\"), // y\n new KeyMap(\"\\u0930\\u094D\", \"r\", \"r\"), // r\n new KeyMap(\"\\u0932\\u094D\", \"l\", \"l\"), // l\n new KeyMap(\"\\u0935\\u094D\", \"v\", \"v\"), // v\n\n\n // numerals\n new KeyMap(\"\\u0966\", \"0\", \"0\"), // 0\n new KeyMap(\"\\u0967\", \"1\", \"1\"), // 1\n new KeyMap(\"\\u0968\", \"2\", \"2\"), // 2\n new KeyMap(\"\\u0969\", \"3\", \"3\"), // 3\n new KeyMap(\"\\u096A\", \"4\", \"4\"), // 4\n new KeyMap(\"\\u096B\", \"5\", \"5\"), // 5\n new KeyMap(\"\\u096C\", \"6\", \"6\"), // 6\n new KeyMap(\"\\u096D\", \"7\", \"7\"), // 7\n new KeyMap(\"\\u096E\", \"8\", \"8\"), // 8\n new KeyMap(\"\\u096F\", \"9\", \"9\"), // 9\n\n // accents\n new KeyMap(\"\\u0951\", \"|\", \"|\"), // udatta\n new KeyMap(\"\\u0952\", \"_\", \"_\"), // anudatta\n new KeyMap(\"\\u0953\", null, \"//\"), // grave accent\n new KeyMap(\"\\u0954\", null, \"\\\\\"), // acute accent\n\n // miscellaneous\n new KeyMap(\"\\u0933\\u094D\", \"\\u1E37\", \"L\"), // retroflex l\n new KeyMap(\"\\u093D\", \"'\", \"'\"), // avagraha\n new KeyMap(\"\\u0950\", null, \"om\"), // om\n new KeyMap(\"\\u0964\", \".\", \".\") // single danda\n ];\n\n PhoneticMapper.call(this, map);\n}","function doubleMetaphone(value) {\n var primary = ''\n var secondary = ''\n var index = 0\n var length = value.length\n var last = length - 1\n var isSlavoGermanic\n var isGermanic\n var subvalue\n var next\n var prev\n var nextnext\n var characters\n\n value = String(value).toUpperCase() + ' '\n isSlavoGermanic = slavoGermanic.test(value)\n isGermanic = germanic.test(value)\n characters = value.split('')\n\n // Skip this at beginning of word.\n if (initialExceptions.test(value)) {\n index++\n }\n\n // Initial X is pronounced Z, which maps to S. Such as `Xavier`.\n if (characters[0] === 'X') {\n primary += 'S'\n secondary += 'S'\n index++\n }\n\n while (index < length) {\n prev = characters[index - 1]\n next = characters[index + 1]\n nextnext = characters[index + 2]\n\n switch (characters[index]) {\n case 'A':\n case 'E':\n case 'I':\n case 'O':\n case 'U':\n case 'Y':\n case 'À':\n case 'Ê':\n case 'É':\n if (index === 0) {\n // All initial vowels now map to `A`.\n primary += 'A'\n secondary += 'A'\n }\n\n index++\n\n break\n case 'B':\n primary += 'P'\n secondary += 'P'\n\n if (next === 'B') {\n index++\n }\n\n index++\n\n break\n case 'Ç':\n primary += 'S'\n secondary += 'S'\n index++\n\n break\n case 'C':\n // Various Germanic:\n if (\n prev === 'A' &&\n next === 'H' &&\n nextnext !== 'I' &&\n !vowels.test(characters[index - 2]) &&\n (nextnext !== 'E' ||\n (subvalue =\n value.slice(index - 2, index + 4) &&\n (subvalue === 'BACHER' || subvalue === 'MACHER')))\n ) {\n primary += 'K'\n secondary += 'K'\n index += 2\n\n break\n }\n\n // Special case for `Caesar`.\n if (index === 0 && value.slice(index + 1, index + 6) === 'AESAR') {\n primary += 'S'\n secondary += 'S'\n index += 2\n\n break\n }\n\n // Italian `Chianti`.\n if (value.slice(index + 1, index + 4) === 'HIA') {\n primary += 'K'\n secondary += 'K'\n index += 2\n\n break\n }\n\n if (next === 'H') {\n // Find `Michael`.\n if (index > 0 && nextnext === 'A' && characters[index + 3] === 'E') {\n primary += 'K'\n secondary += 'X'\n index += 2\n\n break\n }\n\n // Greek roots such as `chemistry`, `chorus`.\n if (index === 0 && initialGreekCh.test(value)) {\n primary += 'K'\n secondary += 'K'\n index += 2\n\n break\n }\n\n // Germanic, Greek, or otherwise `CH` for `KH` sound.\n if (\n isGermanic ||\n // Such as 'architect' but not 'arch', orchestra', 'orchid'.\n greekCh.test(value.slice(index - 2, index + 4)) ||\n (nextnext === 'T' || nextnext === 'S') ||\n ((index === 0 ||\n prev === 'A' ||\n prev === 'E' ||\n prev === 'O' ||\n prev === 'U') &&\n // Such as `wachtler`, `weschsler`, but not `tichner`.\n chForKh.test(nextnext))\n ) {\n primary += 'K'\n secondary += 'K'\n } else if (index === 0) {\n primary += 'X'\n secondary += 'X'\n // Such as 'McHugh'.\n } else if (value.slice(0, 2) === 'MC') {\n // Bug? Why matching absolute? what about McHiccup?\n primary += 'K'\n secondary += 'K'\n } else {\n primary += 'X'\n secondary += 'K'\n }\n\n index += 2\n\n break\n }\n\n // Such as `Czerny`.\n if (next === 'Z' && value.slice(index - 2, index) !== 'WI') {\n primary += 'S'\n secondary += 'X'\n index += 2\n\n break\n }\n\n // Such as `Focaccia`.\n if (value.slice(index + 1, index + 4) === 'CIA') {\n primary += 'X'\n secondary += 'X'\n index += 3\n\n break\n }\n\n // Double `C`, but not `McClellan`.\n if (next === 'C' && !(index === 1 && characters[0] === 'M')) {\n // Such as `Bellocchio`, but not `Bacchus`.\n if (\n (nextnext === 'I' || nextnext === 'E' || nextnext === 'H') &&\n value.slice(index + 2, index + 4) !== 'HU'\n ) {\n subvalue = value.slice(index - 1, index + 4)\n\n // Such as `Accident`, `Accede`, `Succeed`.\n if (\n (index === 1 && prev === 'A') ||\n subvalue === 'UCCEE' ||\n subvalue === 'UCCES'\n ) {\n primary += 'KS'\n secondary += 'KS'\n // Such as `Bacci`, `Bertucci`, other Italian.\n } else {\n primary += 'X'\n secondary += 'X'\n }\n\n index += 3\n\n break\n } else {\n // Pierce's rule.\n primary += 'K'\n secondary += 'K'\n index += 2\n\n break\n }\n }\n\n if (next === 'G' || next === 'K' || next === 'Q') {\n primary += 'K'\n secondary += 'K'\n index += 2\n\n break\n }\n\n // Italian.\n if (\n next === 'I' &&\n // Bug: The original algorithm also calls for A (as in CIA), which is\n // already taken care of above.\n (nextnext === 'E' || nextnext === 'O')\n ) {\n primary += 'S'\n secondary += 'X'\n index += 2\n\n break\n }\n\n if (next === 'I' || next === 'E' || next === 'Y') {\n primary += 'S'\n secondary += 'S'\n index += 2\n\n break\n }\n\n primary += 'K'\n secondary += 'K'\n\n // Skip two extra characters ahead in `Mac Caffrey`, `Mac Gregor`.\n if (\n next === ' ' &&\n (nextnext === 'C' || nextnext === 'G' || nextnext === 'Q')\n ) {\n index += 3\n break\n }\n\n // Bug: Already covered above.\n // if (\n // next === 'K' ||\n // next === 'Q' ||\n // (next === 'C' && nextnext !== 'E' && nextnext !== 'I')\n // ) {\n // index++;\n // }\n\n index++\n\n break\n case 'D':\n if (next === 'G') {\n // Such as `edge`.\n if (nextnext === 'E' || nextnext === 'I' || nextnext === 'Y') {\n primary += 'J'\n secondary += 'J'\n index += 3\n // Such as `Edgar`.\n } else {\n primary += 'TK'\n secondary += 'TK'\n index += 2\n }\n\n break\n }\n\n if (next === 'T' || next === 'D') {\n primary += 'T'\n secondary += 'T'\n index += 2\n\n break\n }\n\n primary += 'T'\n secondary += 'T'\n index++\n\n break\n case 'F':\n if (next === 'F') {\n index++\n }\n\n index++\n primary += 'F'\n secondary += 'F'\n\n break\n case 'G':\n if (next === 'H') {\n if (index > 0 && !vowels.test(prev)) {\n primary += 'K'\n secondary += 'K'\n index += 2\n\n break\n }\n\n // Such as `Ghislane`, `Ghiradelli`.\n if (index === 0) {\n if (nextnext === 'I') {\n primary += 'J'\n secondary += 'J'\n } else {\n primary += 'K'\n secondary += 'K'\n }\n\n index += 2\n\n break\n }\n\n // Parker's rule (with some further refinements).\n if (\n // Such as `Hugh`. The comma is not a bug.\n ((subvalue = characters[index - 2]),\n subvalue === 'B' || subvalue === 'H' || subvalue === 'D') ||\n // Such as `bough`. The comma is not a bug.\n ((subvalue = characters[index - 3]),\n subvalue === 'B' || subvalue === 'H' || subvalue === 'D') ||\n // Such as `Broughton`. The comma is not a bug.\n ((subvalue = characters[index - 4]),\n subvalue === 'B' || subvalue === 'H')\n ) {\n index += 2\n\n break\n }\n\n // Such as `laugh`, `McLaughlin`, `cough`, `gough`, `rough`, `tough`.\n if (index > 2 && prev === 'U' && gForF.test(characters[index - 3])) {\n primary += 'F'\n secondary += 'F'\n } else if (index > 0 && prev !== 'I') {\n primary += 'K'\n secondary += 'K'\n }\n\n index += 2\n\n break\n }\n\n if (next === 'N') {\n if (index === 1 && vowels.test(characters[0]) && !isSlavoGermanic) {\n primary += 'KN'\n secondary += 'N'\n // Not like `Cagney`.\n } else if (\n value.slice(index + 2, index + 4) !== 'EY' &&\n value.slice(index + 1) !== 'Y' &&\n !isSlavoGermanic\n ) {\n primary += 'N'\n secondary += 'KN'\n } else {\n primary += 'KN'\n secondary += 'KN'\n }\n\n index += 2\n\n break\n }\n\n // Such as `Tagliaro`.\n if (value.slice(index + 1, index + 3) === 'LI' && !isSlavoGermanic) {\n primary += 'KL'\n secondary += 'L'\n index += 2\n\n break\n }\n\n // -ges-, -gep-, -gel- at beginning.\n if (index === 0 && initialGForKj.test(value.slice(1, 3))) {\n primary += 'K'\n secondary += 'J'\n index += 2\n\n break\n }\n\n // -ger-, -gy-.\n if (\n (value.slice(index + 1, index + 3) === 'ER' &&\n prev !== 'I' &&\n prev !== 'E' &&\n !initialAngerException.test(value.slice(0, 6))) ||\n (next === 'Y' && !gForKj.test(prev))\n ) {\n primary += 'K'\n secondary += 'J'\n index += 2\n\n break\n }\n\n // Italian such as `biaggi`.\n if (\n next === 'E' ||\n next === 'I' ||\n next === 'Y' ||\n ((prev === 'A' || prev === 'O') && next === 'G' && nextnext === 'I')\n ) {\n // Obvious Germanic.\n if (value.slice(index + 1, index + 3) === 'ET' || isGermanic) {\n primary += 'K'\n secondary += 'K'\n } else {\n primary += 'J'\n\n // Always soft if French ending.\n if (value.slice(index + 1, index + 5) === 'IER ') {\n secondary += 'J'\n } else {\n secondary += 'K'\n }\n }\n\n index += 2\n\n break\n }\n\n if (next === 'G') {\n index++\n }\n\n index++\n\n primary += 'K'\n secondary += 'K'\n\n break\n case 'H':\n // Only keep if first & before vowel or btw. 2 vowels.\n if (vowels.test(next) && (index === 0 || vowels.test(prev))) {\n primary += 'H'\n secondary += 'H'\n\n index++\n }\n\n index++\n\n break\n case 'J':\n // Obvious Spanish, `jose`, `San Jacinto`.\n if (\n value.slice(index, index + 4) === 'JOSE' ||\n value.slice(0, 4) === 'SAN '\n ) {\n if (\n value.slice(0, 4) === 'SAN ' ||\n (index === 0 && characters[index + 4] === ' ')\n ) {\n primary += 'H'\n secondary += 'H'\n } else {\n primary += 'J'\n secondary += 'H'\n }\n\n index++\n\n break\n }\n\n if (\n index === 0\n // Bug: unreachable (see previous statement).\n // && value.slice(index, index + 4) !== 'JOSE'.\n ) {\n primary += 'J'\n\n // Such as `Yankelovich` or `Jankelowicz`.\n secondary += 'A'\n // Spanish pron. of such as `bajador`.\n } else if (\n !isSlavoGermanic &&\n (next === 'A' || next === 'O') &&\n vowels.test(prev)\n ) {\n primary += 'J'\n secondary += 'H'\n } else if (index === last) {\n primary += 'J'\n } else if (\n prev !== 'S' &&\n prev !== 'K' &&\n prev !== 'L' &&\n !jForJException.test(next)\n ) {\n primary += 'J'\n secondary += 'J'\n // It could happen.\n } else if (next === 'J') {\n index++\n }\n\n index++\n\n break\n case 'K':\n if (next === 'K') {\n index++\n }\n\n primary += 'K'\n secondary += 'K'\n index++\n\n break\n case 'L':\n if (next === 'L') {\n // Spanish such as `cabrillo`, `gallegos`.\n if (\n (index === length - 3 &&\n ((prev === 'A' && nextnext === 'E') ||\n (prev === 'I' && (nextnext === 'O' || nextnext === 'A')))) ||\n (prev === 'A' &&\n nextnext === 'E' &&\n (characters[last] === 'A' ||\n characters[last] === 'O' ||\n alle.test(value.slice(last - 1, length))))\n ) {\n primary += 'L'\n index += 2\n\n break\n }\n\n index++\n }\n\n primary += 'L'\n secondary += 'L'\n index++\n\n break\n case 'M':\n if (\n next === 'M' ||\n // Such as `dumb`, `thumb`.\n (prev === 'U' &&\n next === 'B' &&\n (index + 1 === last || value.slice(index + 2, index + 4) === 'ER'))\n ) {\n index++\n }\n\n index++\n primary += 'M'\n secondary += 'M'\n\n break\n case 'N':\n if (next === 'N') {\n index++\n }\n\n index++\n primary += 'N'\n secondary += 'N'\n\n break\n case 'Ñ':\n index++\n primary += 'N'\n secondary += 'N'\n\n break\n case 'P':\n if (next === 'H') {\n primary += 'F'\n secondary += 'F'\n index += 2\n\n break\n }\n\n // Also account for `campbell` and `raspberry`.\n subvalue = next\n\n if (subvalue === 'P' || subvalue === 'B') {\n index++\n }\n\n index++\n\n primary += 'P'\n secondary += 'P'\n\n break\n case 'Q':\n if (next === 'Q') {\n index++\n }\n\n index++\n primary += 'K'\n secondary += 'K'\n\n break\n case 'R':\n // French such as `Rogier`, but exclude `Hochmeier`.\n if (\n index === last &&\n !isSlavoGermanic &&\n prev === 'E' &&\n characters[index - 2] === 'I' &&\n characters[index - 4] !== 'M' &&\n (characters[index - 3] !== 'E' && characters[index - 3] !== 'A')\n ) {\n secondary += 'R'\n } else {\n primary += 'R'\n secondary += 'R'\n }\n\n if (next === 'R') {\n index++\n }\n\n index++\n\n break\n case 'S':\n // Special cases `island`, `isle`, `carlisle`, `carlysle`.\n if (next === 'L' && (prev === 'I' || prev === 'Y')) {\n index++\n\n break\n }\n\n // Special case `sugar-`.\n if (index === 0 && value.slice(1, 5) === 'UGAR') {\n primary += 'X'\n secondary += 'S'\n index++\n\n break\n }\n\n if (next === 'H') {\n // Germanic.\n if (hForS.test(value.slice(index + 1, index + 5))) {\n primary += 'S'\n secondary += 'S'\n } else {\n primary += 'X'\n secondary += 'X'\n }\n\n index += 2\n break\n }\n\n if (\n next === 'I' &&\n (nextnext === 'O' || nextnext === 'A')\n // Bug: Already covered by previous branch\n // || value.slice(index, index + 4) === 'SIAN'\n ) {\n if (isSlavoGermanic) {\n primary += 'S'\n secondary += 'S'\n } else {\n primary += 'S'\n secondary += 'X'\n }\n\n index += 3\n\n break\n }\n\n // German & Anglicization's, such as `Smith` match `Schmidt`, `snider`\n // match `Schneider`. Also, -sz- in slavic language although in\n // hungarian it is pronounced `s`.\n if (\n next === 'Z' ||\n (index === 0 &&\n (next === 'L' || next === 'M' || next === 'N' || next === 'W'))\n ) {\n primary += 'S'\n secondary += 'X'\n\n if (next === 'Z') {\n index++\n }\n\n index++\n\n break\n }\n\n if (next === 'C') {\n // Schlesinger's rule.\n if (nextnext === 'H') {\n subvalue = value.slice(index + 3, index + 5)\n\n // Dutch origin, such as `school`, `schooner`.\n if (dutchSch.test(subvalue)) {\n // Such as `schermerhorn`, `schenker`.\n if (subvalue === 'ER' || subvalue === 'EN') {\n primary += 'X'\n secondary += 'SK'\n } else {\n primary += 'SK'\n secondary += 'SK'\n }\n\n index += 3\n\n break\n }\n\n if (\n index === 0 &&\n !vowels.test(characters[3]) &&\n characters[3] !== 'W'\n ) {\n primary += 'X'\n secondary += 'S'\n } else {\n primary += 'X'\n secondary += 'X'\n }\n\n index += 3\n\n break\n }\n\n if (nextnext === 'I' || nextnext === 'E' || nextnext === 'Y') {\n primary += 'S'\n secondary += 'S'\n index += 3\n break\n }\n\n primary += 'SK'\n secondary += 'SK'\n index += 3\n\n break\n }\n\n subvalue = value.slice(index - 2, index)\n\n // French such as `resnais`, `artois`.\n if (index === last && (subvalue === 'AI' || subvalue === 'OI')) {\n secondary += 'S'\n } else {\n primary += 'S'\n secondary += 'S'\n }\n\n if (\n next === 'S'\n // Bug: already taken care of by `German & Anglicization's` above:\n // || next === 'Z'\n ) {\n index++\n }\n\n index++\n\n break\n case 'T':\n if (next === 'I' && nextnext === 'O' && characters[index + 3] === 'N') {\n primary += 'X'\n secondary += 'X'\n index += 3\n\n break\n }\n\n subvalue = value.slice(index + 1, index + 3)\n\n if (\n (next === 'I' && nextnext === 'A') ||\n (next === 'C' && nextnext === 'H')\n ) {\n primary += 'X'\n secondary += 'X'\n index += 3\n\n break\n }\n\n if (next === 'H' || (next === 'T' && nextnext === 'H')) {\n // Special case `Thomas`, `Thames` or Germanic.\n if (\n isGermanic ||\n ((nextnext === 'O' || nextnext === 'A') &&\n characters[index + 3] === 'M')\n ) {\n primary += 'T'\n secondary += 'T'\n } else {\n primary += '0'\n secondary += 'T'\n }\n\n index += 2\n\n break\n }\n\n if (next === 'T' || next === 'D') {\n index++\n }\n\n index++\n primary += 'T'\n secondary += 'T'\n\n break\n case 'V':\n if (next === 'V') {\n index++\n }\n\n primary += 'F'\n secondary += 'F'\n index++\n\n break\n case 'W':\n // Can also be in middle of word (as already taken care of for initial).\n if (next === 'R') {\n primary += 'R'\n secondary += 'R'\n index += 2\n\n break\n }\n\n if (index === 0) {\n // `Wasserman` should match `Vasserman`.\n if (vowels.test(next)) {\n primary += 'A'\n secondary += 'F'\n } else if (next === 'H') {\n // Need `Uomo` to match `Womo`.\n primary += 'A'\n secondary += 'A'\n }\n }\n\n // `Arnow` should match `Arnoff`.\n if (\n ((prev === 'E' || prev === 'O') &&\n next === 'S' &&\n nextnext === 'K' &&\n (characters[index + 3] === 'I' || characters[index + 3] === 'Y')) ||\n // Maybe a bug? Shouldn't this be general Germanic?\n value.slice(0, 3) === 'SCH' ||\n (index === last && vowels.test(prev))\n ) {\n secondary += 'F'\n index++\n\n break\n }\n\n // Polish such as `Filipowicz`.\n if (\n next === 'I' &&\n (nextnext === 'C' || nextnext === 'T') &&\n characters[index + 3] === 'Z'\n ) {\n primary += 'TS'\n secondary += 'FX'\n index += 4\n\n break\n }\n\n index++\n\n break\n case 'X':\n // French such as `breaux`.\n if (\n !(\n index === last &&\n // Bug: IAU and EAU also match by AU\n // (/IAU|EAU/.test(value.slice(index - 3, index))) ||\n (prev === 'U' &&\n (characters[index - 2] === 'A' || characters[index - 2] === 'O'))\n )\n ) {\n primary += 'KS'\n secondary += 'KS'\n }\n\n if (next === 'C' || next === 'X') {\n index++\n }\n\n index++\n\n break\n case 'Z':\n // Chinese pinyin such as `Zhao`.\n if (next === 'H') {\n primary += 'J'\n secondary += 'J'\n index += 2\n\n break\n } else if (\n (next === 'Z' &&\n (nextnext === 'A' || nextnext === 'I' || nextnext === 'O')) ||\n (isSlavoGermanic && index > 0 && prev !== 'T')\n ) {\n primary += 'S'\n secondary += 'TS'\n } else {\n primary += 'S'\n secondary += 'S'\n }\n\n if (next === 'Z') {\n index++\n }\n\n index++\n\n break\n default:\n index++\n }\n }\n\n return [primary, secondary]\n}","function showPhrase(link, path, trans, lang, explan) {\r\n}","function translationLabels(){\n /** This help array shows the hints for this experiment */\n\t\t\t\thelpArray=[_(\"help1\"),_(\"help2\"),_(\"help3\"),_(\"help4\"),_(\"help5\"),_(\"Next\"),_(\"Close\")];\n scope.heading=_(\"Millikan's Oil Drop Experiment\");\n\t\t\t\tscope.variables=_(\"Variables\"); \n\t\t\t\tscope.result=_(\"Result\"); \n\t\t\t\tscope.copyright=_(\"copyright\");\n buttonTxt = [_(\"Start\"),_(\"Reset\"),_(\"Voltage On\"),_(\"Voltage Off\"), _(\"X Ray On\"), _(\"X Ray Off\")];\n scope.start_txt = buttonTxt[0];\n scope.oil_type_txt = _(\"Choose Oil Type\");\n scope.voltageOnOff_txt = buttonTxt[2];\n scope.adjustVoltage_txt = _(\"Adjust Voltage(KV): \");\n scope.xRay_txt = buttonTxt[4];\n scope.reset_txt = buttonTxt[1];\n scope.voltApplied_txt = _(\"Voltage Applied (v)\");\n\t\t\t\tscope.oilDensity_txt = _(\"Oil Density (kg/m\");\n scope.oil_type = [{\n oil:_(\"Olive Oil\"),\n index:0\n },{\n oil:_(\"Glycerin\"),\n index:1\n }];\n scope.$apply();\t\t\t\t\n\t\t\t}","function createSimplifiedWordLabel(item) {\n return '' +\n item.originalValue + \n '';\n }","function ae(a){return a&&a.rd?a.uc():a}","function Assign_Lex_Other() {\r\n}","function LanguageUnderstandingModel() {\n }","static uposTags() {\n // return [ \"ADJ\", \"ADP\", \"ADV\", \"AUX\", \"CONJ\", \"DET\", \"INTJ\", \"NOUN\", \"NUM\", \"PART\", \"PRON\", \"PROPN\", \"PUNCT\", \"SCONJ\", \"SYM\", \"VERB\", \"X\" ]\n return [\n {\n \"value\": \"ADJ\",\n \"label\": \"Adjective\"\n },\n {\n \"value\": \"ADP\",\n \"label\": \"Adposition\"\n },\n {\n \"value\": \"ADV\",\n \"label\": \"Adverb\"\n },\n {\n \"value\": \"AUX\",\n \"label\": \"Auxiliary Verb\"\n },\n {\n \"value\": \"CCONJ\",\n \"label\": \"Coordinating Conjunction\"\n },\n {\n \"value\": \"DET\",\n \"label\": \"Determiner\"\n },\n {\n \"value\": \"INTJ\",\n \"label\": \"Interjection\"\n },\n {\n \"value\": \"NOUN\",\n \"label\": \"Noun\"\n },\n {\n \"value\": \"NUM\",\n \"label\": \"Numeral\"\n },\n {\n \"value\": \"PART\",\n \"label\": \"Particle\"\n },\n {\n \"value\": \"PRON\",\n \"label\": \"Pronoun\"\n },\n {\n \"value\": \"PROPN\",\n \"label\": \"Proper Noun\"\n },\n {\n \"value\": \"PUNCT\",\n \"label\": \"Punctuation\"\n },\n {\n \"value\": \"SCONJ\",\n \"label\": \"Subordinating Conjunction\"\n },\n {\n \"value\": \"SYM\",\n \"label\": \"Symbol\"\n },\n {\n \"value\": \"VERB\",\n \"label\": \"Verb\"\n },\n {\n \"value\": \"X\",\n \"label\": \"Other\"\n }\n ]\n }","function q(a){var c=g(a);if(c.id){\n// get the related l10n object\nvar d=n(c.id,c.args);if(!d)return void console.warn(\"#\"+c.id+\" is undefined.\");\n// translate element (TODO: security checks?)\nif(d[v]){// XXX\nif(0===r(a))a[v]=d[v];else{for(var e=a.childNodes,f=!1,h=0,i=e.length;i>h;h++)3===e[h].nodeType&&/\\S/.test(e[h].nodeValue)&&(f?e[h].nodeValue=\"\":(e[h].nodeValue=d[v],f=!0));\n// if no (non-empty) textNode is found, insert a textNode before the\n// first element child.\nif(!f){var j=b.createTextNode(d[v]);a.insertBefore(j,a.firstChild)}}delete d[v]}for(var k in d)a[k]=d[k]}}","function translationLabels() {\n\t\t\t\t\t/** This help array shows the hints for this experiment */\n\t\t\t\t\thelp_array = [_(\"help1\"), _(\"help2\"), _(\"help3\"), _(\"help4\"),_(\"Next\"), _(\"Close\")];\n\t\t\t\t\tscope.heading = _(\"heading\");\n\t\t\t\t\tscope.Variables = _(\"Variables\");\n\t\t\t\t\tscope.BaseValue=_(\"basevalue\");\n\t\t\t\t\tscope.Doublebond=_(\"Doublebond\");\n\t\t\t\t\tscope.Exocyclicdouble=_(\"Exocyclicdouble\");\n\t\t\t\t\tscope.Polargroups=_(\"Polargroups\");\n\t\t\t\t\tscope.AlkylSubstituent=_(\"AlkylSubstituent\");\n\t\t\t\t\tscope.ringResidue=_(\"ringResidue\");\n\t\t\t\t\tscope.Controls=_(\"Controls\");\n\t\t\t\t\tscope.lamdaMax=_(\"lamdaMax\");\n\t\t\t\t\tscope.Correct=_(\"Correct\");\n\t\t\t\t\tscope.Submit=_(\"Submit\"); \t\t\t\t\n\t\t\t\t\tscope.Aromatic=_(\"Aromatic\"); \t\t\t\t\n\t\t\t\t\tscope.Ketone=_(\"Ketone\"); \t\t\t\t\n\t\t\t\t\tscope.Conjugate=_(\"Conjugate\"); \t\t\t\t\n\t\t\t\t\tscope.AlkylSubstituentKeto=_(\"AlkylSubstituentKeto\"); \t\t\t\t\n\t\t\t\t\tscope.Polargroupsposition=_(\"Polargroupsposition\"); \t\t\t\t\n\t\t\t\t\tscope.Homodienecompound=_(\"Homodienecompound\"); \t\t\t\t\n\t\t\t\t\tscope.Ortho=_(\"Ortho\"); \t\t\t\t\n\t\t\t\t\tscope.Para=_(\"Para\"); \t\t\t\t\n\t\t\t\t\tscope.Meta=_(\"Meta\"); \t\t\t\t\n\t\t\t\t\tscope.lambdamax=_(\"lambdamax\"); \t\t\t\t\n\t\t\t\t\tscope.lambdamax=_(\"lambdamax\"); \t\t\t\t\n\t\t\t\t\tscope.result = _(\"Result\");\n\t\t\t\t\tscope.copyright = _(\"copyright\");\n\t\t\t\t\twoodward_fieser_stage.update();\n\t\t\t\t}","function getLabelDescriptions () {\n return {\n 'Walk' : {\n 'id' : 'Walk',\n 'text' : 'Walk'\n },\n 'StopSign' : {\n 'id' : 'StopSign',\n 'text' : 'Bus Stop Sign'\n },\n 'StopSign_OneLeg' : {\n 'id' : 'StopSign_OneLeg',\n 'text' : 'One-leg Stop Sign'\n },\n 'StopSign_TwoLegs' : {\n 'id' : 'StopSign_TwoLegs',\n 'text' : 'Two-leg Stop Sign'\n },\n 'StopSign_Column' : {\n 'id' : 'StopSign_Column',\n 'text' : 'Column Stop Sign'\n },\n 'StopSign_None' : {\n 'id' : 'StopSign_None',\n 'text' : 'Not provided'\n },\n 'Landmark_Shelter' : {\n 'id' : 'Landmark_Shelter',\n 'text' : 'Bus Stop Shelter'\n },\n 'Landmark_Bench' : {\n 'id' : 'Landmark_Bench',\n 'text' : 'Bench'\n },\n 'Landmark_TrashCan' : {\n 'id' : 'Landmark_TrashCan',\n 'text' : 'Trash Can / Recycle Can'\n },\n 'Landmark_MailboxAndNewsPaperBox' : {\n 'id' : 'Landmark_MailboxAndNewsPaperBox',\n 'text' : 'Mailbox / News Paper Box'\n },\n 'Landmark_OtherPole' : {\n 'id' : 'Landmark_OtherPole',\n 'text' : 'Traffic Sign / Pole'\n }\n }\n}","function translateSimilarity(similarity) {\n if (similarity >= 80) {\n return '매우 가까운 편';\n } else if (similarity >= 60) {\n return '가까운 편';\n } else if (similarity >= 40) {\n return '가깝지도 멀지도 않은 편';\n } else if (similarity >= 20) {\n return '먼 편';\n } else {\n return '매우 먼 편';\n }\n}","function replaceLanguageLabels() {\n const languageLabels = $('ul[class=\"objects\"]').find('label:contains(\" [\")');\n if (languageLabels.length) {\n // if state is undefined, set the language labels in state\n if (typeof state.languageLabels === 'undefined') {\n state.languageLabels = languageLabels;\n } else {\n for (let label in languageLabels) {\n state.languageLabels.push(languageLabels[label]);\n }\n }\n // replace brackets with hidden span tags\n languageLabels.each(function() {\n this.innerHTML = this.innerHTML.replace(\n '[',\n \" \",\n );\n this.innerHTML = this.innerHTML.replace(']', '');\n });\n }\n }","function applyCurrentSyllable(){\n currentSyllableIndex = document.getElementById(\"syllable\").value;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}","function halo() {\n return '\"Halo Sanbers!\"';\n}","function convertAndDisplay(str) {\n\n\t\tvar phon = document.getElementById(\"phonetic\");\n\t\tphon.innerHTML = '';\n\n\t\tvar curr = undefined; /* holds current key */\n\t\tvar next = undefined; /* holds the next key (look-ahead) */\n\n\t\tvar chars = str.toLowerCase().split('');\n\t\tvar charsorig = str.split(''); /* keep non-lowercased string around */\n\t\tvar cursor = 0;\n\n\t\twhile (cursor !== chars.length) {\n\n\t\t\tvar curr = munch(root, chars.slice(cursor), 0);\n\n\t\t\tvar nextcursor = cursor + curr.until;\n\n\t\t\tif (!curr.ipa) { /* partial or no match */\n\t\t\t\tif (curr.until !== 0) { /* partial match */\n\t\t\t\t\tvar content = charsorig.slice(cursor, nextcursor).join('');\n\t\t\t\t\tcreatePinyinElement(phon, 'incomplete', content);\n\t\t\t\t} else { /* no match, unknown character */\n\t\t\t\t\tvar content = charsorig[cursor];\n\t\t\t\t\tcreatePinyinElement(phon, 'ignore', content);\n\t\t\t\t}\n\t\t\t} else { /* match */\n\n\t\t\t\t/* last syllable */\n\t\t\t\tif (chars[nextcursor] === undefined) {\n\t\t\t\t\tcreatePinyinElement(phon, 'pinyin', curr.ipa);\n\t\t\t\t}\n\t\t\t\t/* more to come, deal with combinatory effects */\n\t\t\t\telse {\n\n\t\t\t\t\t/* munch next sequence */\n\t\t\t\t\tvar next = munch(root, chars.slice(nextcursor), 0);\n\n\t\t\t\t\t/* For syllables ending in \"n\" or \"g\", the correct\n\t\t\t\t\t * segmentation depends on the following syllable:\n\t\t\t\t\t * - \"xining\" -> xi-ning, not xin-*ing\n\t\t\t\t\t * - \"danao\" -> da-nao, not dan-ao (Pinyin \"dan'ao\") */\n\t\t\t\t\t// TODO optimization: process two syllables in one go?\n\n\t\t\t\t\tif (chars[nextcursor-1].match(/[ng]/i)) {\n\t\t\t\t\t\tvar altcurr = { until: curr.until-1, ipa: find(root, chars.slice(cursor, nextcursor-1), 0) };\n\t\t\t\t\t\tvar altnext = munch(root, chars.slice(nextcursor-1), 0);\n\t\t\t\t\t\tif (altcurr.ipa && altnext.ipa && altnext.until > next.until) {\n\t\t\t\t\t\t\tcurr = altcurr; /* use the shorter alternative */\n\t\t\t\t\t\t\tnext = altnext;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tvar content = curr.ipa;\n\n\t\t\t\t\t/* Treat isolated -r as erhua-r */\n\t\t\t\t\tif (next.until === 1 && chars[nextcursor] === 'r') {\n\t\t\t\t\t\tcontent += \"ɻ\";\n\t\t\t\t\t\tcontent = content.replace(/[nŋ]ɻ$/i, \"\\u0303ɻ\");\n\t\t\t\t\t\tcurr.until++;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Tone mark */\n\t\t\t\t\tvar nextchar = chars[cursor+curr.until];\n\t\t\t\t\tif (nextchar && nextchar.match(/[1-4]/)) {\n\t\t\t\t\t\tcontent += tones[parseInt(nextchar)];\n\t\t\t\t\t\tcurr.until++;\n\t\t\t\t\t}\n\n\t\t\t\t\tcreatePinyinElement(phon, 'pinyin', content);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcursor += curr.until || 1;\n\t\t}\n\n\t}","function languagePair ( from, to ) {\n return '' + from + '|' + to;\n}","function idiomaingles() {\n alert('Nivel Alto. Título Superior de la Escuela Oficial de Idiomas');\n }","function localize(e,t){return t?e.replace(/(\"|')~\\//g,\"$1\"+options.root):e.replace(/^~\\//,options.root)}","function toChangeSyllableData(){\n if(syllables.length > 0){\n currentType = syllables[0].type;\n currentColor = syllables[0].color;\n }\n pushedNeumeVariations = false;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}","function translationLabels(){\n /** This help array shows the hints for this experiment */\n helpArray=[_(\"Next\"),_(\"Close\"),_(\"help1\"),_(\"help2\"),_(\"help3\"),_(\"help4\"),_(\"help5\")];\n scope.heading=_(\"Moment of Inertia of Flywheel\");\n scope.variables=_(\"Variables\"); \n scope.result=_(\"Result\"); \n scope.copyright=_(\"copyright\"); \n scope.choose_enviornment = _(\"Choose Environment:\");\n cm = _(\" cm\");\n scope.kg = _(\"kg\");\n scope.cm = cm;\n scope.gm = _(\"gm\");\n scope.earth = _(\"Earth, g=9.8m/s\");\n scope.mass_of_fly_wheel_lbl = _(\"Mass of fly wheel:\");\n scope.dia_of_fly_wheel_lbl = _(\"Diameter of fly wheel:\");\n scope.mass_of_rings_lbl = _(\"Mass of rings:\");\n scope.axle_diameter_lbl = _(\"Diameter of axle:\");\n scope.no_of_wound_lbl = _(\"No. of wound of chord:\");\n scope.mInertia_lbl = _(\"First start experiment..!\");\n scope.mInertia_val = \"\";\n btn_lbls = [_(\"Release fly wheel\"),_(\"Hold fly wheel\")];\n scope.release_hold_txt = btn_lbls[0];\n scope.reset = _(\"Reset\");\n scope.enviornment_array = [{\n enviornment: _('Earth, g=9.8m/s'),\n type: 9.8\n }, {\n enviornment: _('Moon, g=1.63m/s'),\n type: 1.63\n }, {\n enviornment: _('Uranus, g=10.5m/s'),\n type: 10.5\n }, {\n enviornment: _('Saturn, g=11.08m/s'),\n type: 11.08\n }, {\n enviornment: _('Jupiter, g=25.95m/s'),\n type: 25.95\n }];\n scope.$apply(); \n }","function newAnchorLabel() {\n count = ++that.anchor_count;\n anchor_label = strval((count + 1)); //generating footnote number starting at 1 instead of 0\n /* yil original letter generating label code\n anchor_label = '';\n do {\n anchor_label = chr(ord('a') + (count % 26)) + anchor_label;\n count = (int) floor(count / 26);\n } while (count > 0);*/\n return anchor_label;\n }","function getLabelDescriptions () {\n return {\n 'Walk' : {\n 'id' : 'Walk',\n 'text' : 'Walk'\n },\n CurbRamp: {\n id: 'CurbRamp',\n text: 'Curb Ramp'\n },\n NoCurbRamp: {\n id: 'NoCurbRamp',\n text: 'Missing Curb Ramp'\n },\n Obstacle: {\n id: 'Obstacle',\n text: 'Obstacle in a Path'\n },\n Other: {\n id: 'Other',\n text: 'Other'\n },\n SurfaceProblem: {\n id: 'SurfaceProblem',\n text: 'Surface Problem'\n },\n Void: {\n id: 'Void',\n text: 'Void'\n },\n Unclear: {\n id: 'Unclear',\n text: 'Unclear'\n },\n 'StopSign' : {\n 'id' : 'StopSign',\n 'text' : 'Bus Stop Sign'\n },\n 'StopSign_OneLeg' : {\n 'id' : 'StopSign_OneLeg',\n 'text' : 'One-leg Stop Sign'\n },\n 'StopSign_TwoLegs' : {\n 'id' : 'StopSign_TwoLegs',\n 'text' : 'Two-leg Stop Sign'\n },\n 'StopSign_Column' : {\n 'id' : 'StopSign_Column',\n 'text' : 'Column Stop Sign'\n },\n 'StopSign_None' : {\n 'id' : 'StopSign_None',\n 'text' : 'Not provided'\n },\n 'Landmark_Shelter' : {\n 'id' : 'Landmark_Shelter',\n 'text' : 'Bus Stop Shelter'\n },\n 'Landmark_Bench' : {\n 'id' : 'Landmark_Bench',\n 'text' : 'Bench'\n },\n 'Landmark_TrashCan' : {\n 'id' : 'Landmark_TrashCan',\n 'text' : 'Trash Can / Recycle Can'\n },\n 'Landmark_MailboxAndNewsPaperBox' : {\n 'id' : 'Landmark_MailboxAndNewsPaperBox',\n 'text' : 'Mailbox / News Paper Box'\n },\n 'Landmark_OtherPole' : {\n 'id' : 'Landmark_OtherPole',\n 'text' : 'Traffic Sign / Pole'\n }\n }\n}","function PlcGeral(){\r\n}","__getTypeLabel() {\n return this.constructor.LabelSingular;\n }","function swapLanguage() {\n\tconst syntax = language.value || 'plain text'\n\tdecoration.highlighter.setSyntax(LANGUAGES.BANK[syntax].scopes)\n\tdecoration.innerHTML = relations.analyze(input, decoration)\n}","function defaultNames(){\r\n //CETE\r\n //return \"Par défaut\";\r\n return \"Par d\\u00e9faut\";\r\n //FIN CETE\r\n}","changeLanguageStrings () {\n\t\tthis.emojiInformationModalMarkup = \tthis.emojiInformationModalMarkup.replace(\"REPLACE_modal_header_text\", this.labels.modal_header_text);\n\t\tthis.emojiInformationModalMarkup = \tthis.emojiInformationModalMarkup.replace(\"REPLACE_btn_ok_text\", this.labels.btn_ok_text);\n\t\tthis.emojiInformationModalMarkup = \tthis.emojiInformationModalMarkup.replace(\"REPLACE_btn_all_text\", this.labels.btn_all_text);\n\n\t\tthis.emojiserverTitlesMarkup = \t\tthis.emojiserverTitlesMarkup.replace(\"REPLACE_modal_titlesicon-label\", this.labels.modal_titlesicon_text);\n\t\tthis.emojiserverTitlesMarkup = \t\tthis.emojiserverTitlesMarkup.replace(\"REPLACE_modal_titlesname_text\", this.labels.modal_titlesname_text);\n\t\tthis.emojiserverTitlesMarkup = \t\tthis.emojiserverTitlesMarkup.replace(\"REPLACE_modal_titlestotal_text\", this.labels.modal_titlestotal_text);\n\t\tthis.emojiserverTitlesMarkup = \t\tthis.emojiserverTitlesMarkup.replace(\"REPLACE_modal_titlesglobal_text\", this.labels.modal_titlesglobal_text);\n\t\tthis.emojiserverTitlesMarkup = \t\tthis.emojiserverTitlesMarkup.replace(\"REPLACE_modal_titleslocal_text\", this.labels.modal_titleslocal_text);\n\t\tthis.emojiserverTitlesMarkup = \t\tthis.emojiserverTitlesMarkup.replace(\"REPLACE_modal_titlescopies_text\", this.labels.modal_titlescopies_text);\n\t}","function label(node) {\n var type = node.referenceType;\n var value = type === 'full' ? node.identifier : '';\n\n return type === 'shortcut' ? value : '[' + value + ']';\n}","function translatePlantLatin(message) {\n message = message.toLowerCase();\n let newMessage = Array.from(message)\n .reduce((acc, val) => {\n return acc + val + ({\n a: 'tiva',\n e: 'llia',\n i: 'mus',\n o: 'phylum',\n u: 'rea',\n }[val] || '')\n }, '')\n return newMessage;\n}","function sb_(text) {\n if (SB_TRANSLATIONS != false && text in SB_TRANSLATIONS) {\n return SB_TRANSLATIONS[text];\n } else {\n return text;\n }\n }","function buildAstral(slug, isNegated) {\n var item = unicode[slug];\n var combined = '';\n\n if (item.bmp && !item.isBmpLast) {\n combined = '[' + item.bmp + ']' + (item.astral ? '|' : '');\n }\n if (item.astral) {\n combined += item.astral;\n }\n if (item.isBmpLast && item.bmp) {\n combined += (item.astral ? '|' : '') + '[' + item.bmp + ']';\n }\n\n // Astral Unicode tokens always match a code point, never a code unit\n return isNegated ? '(?:(?!' + combined + ')(?:[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\0-\\uFFFF]))' : '(?:' + combined + ')';\n }","getAccidental() {\n const acc = this.Accidental;\n switch (acc) {\n case 'natural':\n return 'n';\n case 'flat':\n return 'b';\n case 'sharp':\n return '#';\n default:\n return null;\n }\n }","static get LABEL_NONE () {return 'none';}","static definition() {\n return 'A tree is a perennial plant with an elongated stem, or trunk, supporting branches and leaves.'\n }","function updateLangTagMappings(tag) {\n assert(IsObject(tag), \"tag is an object\");\n assert(!hasOwn(\"grandfathered\", tag), \"tag is not a grandfathered tag\");\n\n switch (tag.language) {\n case \"hy\":\n // hy-arevela -> hy\n if (tag.variants.length >= 1 &&\n callFunction(ArrayIndexOf, tag.variants, \"arevela\") > -1)\n {\n var newVariants = [];\n for (var i = 0; i < tag.variants.length; i++) {\n var variant = tag.variants[i];\n if (variant === \"arevela\")\n continue;\n _DefineDataProperty(newVariants, newVariants.length, variant);\n }\n tag.variants = newVariants;\n }\n // hy-arevmda -> hyw\n else if (tag.variants.length >= 1 &&\n callFunction(ArrayIndexOf, tag.variants, \"arevmda\") > -1)\n {\n tag.language = \"hyw\";\n var newVariants = [];\n for (var i = 0; i < tag.variants.length; i++) {\n var variant = tag.variants[i];\n if (variant === \"arevmda\")\n continue;\n _DefineDataProperty(newVariants, newVariants.length, variant);\n }\n tag.variants = newVariants;\n }\n break;\n case \"ja\":\n // ja-Latn-hepburn-heploc -> ja-Latn-alalc97\n if (tag.script === \"Latn\" &&\n tag.variants.length >= 2 &&\n callFunction(ArrayIndexOf, tag.variants, \"hepburn\") > -1 &&\n callFunction(ArrayIndexOf, tag.variants, \"heploc\", callFunction(ArrayIndexOf, tag.variants, \"hepburn\") + 1) > -1)\n {\n var newVariants = [];\n for (var i = 0; i < tag.variants.length; i++) {\n var variant = tag.variants[i];\n if (variant === \"hepburn\")\n continue;\n if (variant === \"heploc\")\n continue;\n _DefineDataProperty(newVariants, newVariants.length, variant);\n }\n if (callFunction(ArrayIndexOf, newVariants, \"alalc97\") < 0)\n _DefineDataProperty(newVariants, newVariants.length, \"alalc97\");\n tag.variants = newVariants;\n }\n break;\n case \"sgn\":\n // sgn-BR -> bzs\n if (tag.region === \"BR\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"bzs\";\n tag.region = undefined;\n }\n // sgn-CO -> csn\n else if (tag.region === \"CO\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"csn\";\n tag.region = undefined;\n }\n // sgn-DE -> gsg\n else if (tag.region === \"DE\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"gsg\";\n tag.region = undefined;\n }\n // sgn-DK -> dsl\n else if (tag.region === \"DK\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"dsl\";\n tag.region = undefined;\n }\n // sgn-ES -> ssp\n else if (tag.region === \"ES\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"ssp\";\n tag.region = undefined;\n }\n // sgn-FR -> fsl\n else if (tag.region === \"FR\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"fsl\";\n tag.region = undefined;\n }\n // sgn-GB -> bfi\n else if (tag.region === \"GB\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"bfi\";\n tag.region = undefined;\n }\n // sgn-GR -> gss\n else if (tag.region === \"GR\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"gss\";\n tag.region = undefined;\n }\n // sgn-IE -> isg\n else if (tag.region === \"IE\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"isg\";\n tag.region = undefined;\n }\n // sgn-IT -> ise\n else if (tag.region === \"IT\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"ise\";\n tag.region = undefined;\n }\n // sgn-JP -> jsl\n else if (tag.region === \"JP\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"jsl\";\n tag.region = undefined;\n }\n // sgn-MX -> mfs\n else if (tag.region === \"MX\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"mfs\";\n tag.region = undefined;\n }\n // sgn-NI -> ncs\n else if (tag.region === \"NI\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"ncs\";\n tag.region = undefined;\n }\n // sgn-NL -> dse\n else if (tag.region === \"NL\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"dse\";\n tag.region = undefined;\n }\n // sgn-NO -> nsl\n else if (tag.region === \"NO\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"nsl\";\n tag.region = undefined;\n }\n // sgn-PT -> psr\n else if (tag.region === \"PT\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"psr\";\n tag.region = undefined;\n }\n // sgn-SE -> swl\n else if (tag.region === \"SE\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"swl\";\n tag.region = undefined;\n }\n // sgn-US -> ase\n else if (tag.region === \"US\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"ase\";\n tag.region = undefined;\n }\n // sgn-ZA -> sfs\n else if (tag.region === \"ZA\" &&\n tag.extlang1 === undefined &&\n tag.extlang2 === undefined &&\n tag.extlang3 === undefined &&\n tag.script === undefined &&\n tag.variants.length === 0 &&\n tag.extensions.length === 0 &&\n tag.privateuse === undefined)\n {\n tag.language = \"sfs\";\n tag.region = undefined;\n }\n break;\n }\n}","static relations() {\n return [\"acl\", \"advcl\", \"advmod\", \"amod\", \"appos\", \"aux\", \"auxpass\", \"case\", \"cc\", \"ccomp\", \"compound\", \"conj\", \"cop\", \"csubj\", \"csubjpass\", \"dep\", \"det\", \"discourse\", \"dislocated\", \"dobj\", \"expl\", \"foreign\", \"goeswith\", \"iobj\", \"list\", \"mark\", \"mwe\", \"name\", \"neg\", \"nmod\", \"nsubj\", \"nsubjpass\", \"nummod\", \"parataxis\", \"punct\", \"remnant\", \"reparandum\", \"root\", \"vocative\", \"xcomp\"]\n }","export() {\n const wordToConll = (word, indexOverride = null) => {\n const stringifyList = object => {\n let pairs = []\n for (const key in object) {\n pairs.push(`${key}=${object[key]}`)\n }\n pairs.sort()\n let string = pairs.join(\"|\")\n return string ? string : \"_\"\n }\n let data = [].fill(\"_\", 0, 9)\n data[0] = indexOverride || word.index || \"_\"\n data[1] = word.inflection || \"_\"\n data[2] = word.lemma || \"_\"\n data[3] = word.uposTag || \"_\"\n data[4] = word.xposTag || \"_\"\n data[5] = stringifyList(word.features)\n data[6] = word.parent === 0 ? 0 : word.parent || \"_\"\n data[7] = this.settings.relations[word.relation] || \"_\"\n data[8] = word.dependencies || \"_\"\n data[9] = stringifyList(word.misc)\n let line = data.join(\"\\t\")\n //Add an extra line for each following empty node\n word.emptyNodes.forEach( (emptyNode, index) => {\n line = line + \"\\n\" + wordToConll(new Word(emptyNode), `${word.index}.${index+1}`)\n })\n return line\n }\n\n let lines = []\n this.sentences.forEach(sentence => {\n sentence.comments.forEach(comment => lines.push(comment))\n sentence.words.forEach(word => lines.push(wordToConll(word)))\n lines[lines.length-1] += \"\\n\" //sentence separator\n })\n\n return lines.join(\"\\n\")\n }","function addTranslatedDiseaseName(diseases) {\n\tfor (key in diseases) {\n\t\tif (diseases[key]['Disease Code']=='other'||diseases[key]['Disease Code']=='other-undefined') {\n\t\t\tdiseases[key]['translatedDiseaseName']=diseases[key]['Detailed Disease Name'];\t\n\t\t\tdiseases[key]['Disease Code']=diseases[key]['Detailed Disease Name'];\t\n\n\t\t}\n\t\t\n\t\telse{\n\t\t\tdiseases[key]['translatedDiseaseName']=$.t(\"diseases:\"+diseases[key]['Disease Code']).replace(\"diseases:\",\"\");\n\t\t}\n \t}\n \treturn diseases;\n}","function printVitals(v){\n\tvar vital_string = \"BP:\" + v.bp + \", \" +\n\t\t\t\t\t\t\"PR:\" + v.pr + \", \" +\n\t\t\t\t\t\t\"RR:\" + v.rr;\n\treturn vital_string;\n}","function letrasMa(v){\n\treturn v.toUpperCase();\n}","function dizerOla(nome) {\n console.log('Olá ' + nome);\n console.log(\"Ol\\u00E1 \" + nome); //interpolarização\n}","function addSyllables(){\n const reducer = (accumulator, currentValue) => accumulator + currentValue;\n return syllableArray.reduce(reducer);\n}","function isVariantLabels(v) {\n return Array.isArray(v);\n}","function isVariantLabels(v) {\n return Array.isArray(v);\n}","function isVariantLabels(v) {\n return Array.isArray(v);\n}","function isVariantLabels(v) {\n return Array.isArray(v);\n}","function isVisualPrefix( prefix, string ) {\n\t\t// Pre-base vowel signs of Indic languages. A vowel sign is called pre-base if\n\t\t// consonant + vowel becomes [vowel][consonant] when rendered. Eg: ക + െ => കെ\n\t\tvar prebases = 'െേൈൊോൌெேைொோௌେୈୋୌિਿिিেৈোৌෙේෛොෝෞ';\n\t\treturn prebases.indexOf( string[prefix.length] ) <= 0;\n\t}","toJugglerDirectionString() {\n let retStr = this.toDirectionString();\n if (this.juggler != null && this.direction != SELF && this.direction != HEFF)\n retStr += this.juggler;\n return retStr;\n }","toJugglerDirectionString() {\n let retStr = this.toDirectionString();\n if (this.juggler != null && this.direction != SELF && this.direction != HEFF)\n retStr += this.juggler;\n return retStr;\n }","function plainNegativeComplete(hiraganaVerb, type) {\n return type == \"u\" ? hiraganaVerb.substring(0, hiraganaVerb.length - 1) + changeUtoA(hiraganaVerb.charAt(hiraganaVerb.length - 1)) + \"ない\" :\n hiraganaVerb.substring(0, hiraganaVerb.length - 1) + \"ない\";\n}","getAriaLabel() {\n var states;\n if (this.isDrillable()) {\n states = [this._axis.getOptions().translations.stateDrillable];\n }\n if (this.getDatatip() != null) {\n return dvt.Displayable.generateAriaLabel(this.getDatatip(), states);\n } else if (states != null) {\n return dvt.Displayable.generateAriaLabel(this.getLabel().getTextString(), states);\n }\n }","function grammarize (name) {\n const wrongWords = ['arent', 'githubbin', 'its']\n const rightWords = [\"aren't\", 'GitHubbin', \"it's\"]\n let correctedName = name\n\n // Correct listed terms\n wrongWords.forEach((word, i) => {\n if (name.match(word)) {\n correctedName = name.replace(word, rightWords[i])\n }\n })\n\n // First Char to upper case\n correctedName = correctedName.charAt(0).toUpperCase() + correctedName.substr(1)\n\n return correctedName\n}","translate(s) {\n s = sanitizeHtml(_t(s));\n // ugly fix for https://github.com/vector-im/riot-web/issues/4243\n s = s.replace(/Riot\\.im/, 'Riot.im');\n s = s.replace(/\\[matrix\\]/, '\"[matrix]\"');\n return s;\n }","function Lang() { \n}","function LangMap() {}","function LangMap() {}","function smarten(a) {\n a = a.replace(/(^|[-\\u2014\\s(\\[\"])'/g, \"$1\\u2018\"); // opening singles\n a = a.replace(/'/g, \"\\u2019\"); // closing singles & apostrophes\n a = a.replace(/(^|[-\\u2014/\\[(\\u2018\\s])\"/g, \"$1\\u201c\"); // opening doubles\n a = a.replace(/\"/g, \"\\u201d\"); // closing doubles\n a = a.replace(/--/g, \"\\u2014\"); // em-dashes\n return a;\n}","function translatePigLatin(str) {\n let consonantRegex = /^[^aeiou]+/;\n \n let myConsonants = str.match(consonantRegex);\n \n return myConsonants !== null ? str.replace(consonantRegex, \"\").concat(myConsonants).concat('ay') : str.concat('way')\n \n }","natural_lexeme() { return new GeneratorLexeme(\"nat\", \"\\\\d+\") }","function swedishTranslationNavbar() {\n let aboutMeLink = $(\"#about_meLink\").text(\"Om mig\");\n let resumeLink = $(\"#resumeLink\").text(\"CV\");\n let portfolioLink = $(\"#portfolioLink\").text(\"Portfölj\");\n let languageLink = $(\"#dropdownMenu\").text(\"Språk\");\n}","function choice(...alternatives) {\n const altsDefs = _.map(alternatives, alt => {\n return new Flat({ definition: toDefinition(alt) })\n })\n\n const orgTextParts = _.map(alternatives, toOriginalText)\n\n const definition = new Alternation({ definition: altsDefs })\n definition.orgText = `choice(${orgTextParts.join(\", \")})`\n\n return {\n toRule: toRule,\n definition: definition\n }\n}","function L(...args) { if (TextBracket.DEBUG) Vex.L('Vex.Flow.TextBracket', args); }","function $8ec3412bfa22abb7$var$routeros(hljs) {\n const STATEMENTS = \"foreach do while for if from to step else on-error and or not in\";\n // Global commands: Every global command should start with \":\" token, otherwise it will be treated as variable.\n const GLOBAL_COMMANDS = \"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime\";\n // Common commands: Following commands available from most sub-menus:\n const COMMON_COMMANDS = \"add remove enable disable set get print export edit find run debug error info warning\";\n const LITERALS = \"true false yes no nothing nil null\";\n const OBJECTS = \"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw\";\n const VAR = {\n className: \"variable\",\n variants: [\n {\n begin: /\\$[\\w\\d#@][\\w\\d_]*/\n },\n {\n begin: /\\$\\{(.*?)\\}/\n }\n ]\n };\n const QUOTE_STRING = {\n className: \"string\",\n begin: /\"/,\n end: /\"/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR,\n {\n className: \"variable\",\n begin: /\\$\\(/,\n end: /\\)/,\n contains: [\n hljs.BACKSLASH_ESCAPE\n ]\n }\n ]\n };\n const APOS_STRING = {\n className: \"string\",\n begin: /'/,\n end: /'/\n };\n return {\n name: \"Microtik RouterOS script\",\n aliases: [\n \"routeros\",\n \"mikrotik\"\n ],\n case_insensitive: true,\n keywords: {\n $pattern: /:?[\\w-]+/,\n literal: LITERALS,\n keyword: STATEMENTS + \" :\" + STATEMENTS.split(\" \").join(\" :\") + \" :\" + GLOBAL_COMMANDS.split(\" \").join(\" :\")\n },\n contains: [\n {\n variants: [\n {\n begin: /\\/\\*/,\n end: /\\*\\//\n },\n {\n begin: /\\/\\//,\n end: /$/\n },\n {\n begin: /<\\//,\n end: />/\n }\n ],\n illegal: /./\n },\n hljs.COMMENT(\"^#\", \"$\"),\n QUOTE_STRING,\n APOS_STRING,\n VAR,\n {\n begin: /[\\w-]+=([^\\s{}[\\]()]+)/,\n relevance: 0,\n returnBegin: true,\n contains: [\n {\n className: \"attribute\",\n begin: /[^=]+/\n },\n {\n begin: /=/,\n endsWithParent: true,\n relevance: 0,\n contains: [\n QUOTE_STRING,\n APOS_STRING,\n VAR,\n {\n className: \"literal\",\n begin: \"\\\\b(\" + LITERALS.split(\" \").join(\"|\") + \")\\\\b\"\n },\n {\n // Do not format unclassified values. Needed to exclude highlighting of values as built_in.\n begin: /(\"[^\"]*\"|[^\\s{}[\\]]+)/\n }\n ]\n }\n ]\n },\n {\n // HEX values\n className: \"number\",\n begin: /\\*[0-9a-fA-F]+/\n },\n {\n begin: \"\\\\b(\" + COMMON_COMMANDS.split(\" \").join(\"|\") + \")([\\\\s[(\\\\]|])\",\n returnBegin: true,\n contains: [\n {\n className: \"builtin-name\",\n begin: /\\w+/\n }\n ]\n },\n {\n className: \"built_in\",\n variants: [\n {\n begin: \"(\\\\.\\\\./|/|\\\\s)((\" + OBJECTS.split(\" \").join(\"|\") + \");?\\\\s)+\"\n },\n {\n begin: /\\.\\./,\n relevance: 0\n }\n ]\n }\n ]\n };\n}","get lowerLegTwist() {}","function AvsAnOverride_(fword) {\n //var exeptionsA_ = /^(?:uis?|co\\w|form|v|data|media)/i;\n var exeptionsA_ = /^(?:uis?|data)/i;\n var exeptionsAn_ = /(?:^[lr]value|a\\b|sql)/i;\n return (exeptionsA_.test(fword) ? article[0] :\n exeptionsAn_.test(fword) ? article[0]+\"n\" : false);\n }","function Assign_Lex() {\r\n}","static get definition() {\n return {\n i18n: {\n default: 'Table'\n }\n };\n }","function letrasMi(v){\n\treturn v.toLowerCase();\n}","function createSyllableWithNeumes(){\n \n var page = document.getElementById(\"page\").value;\n var line = document.getElementById(\"line\").value;\n var staff = document.getElementById(\"staff\").value;\n var syllable = document.getElementById(\"syllable\").value;\n var initial = document.getElementById(\"initial\").checked;\n var color = document.getElementById(\"color\").value;\n var comment = document.getElementById(\"comment\").value;\n \n currentSyllable = new Syllable(page, line, staff, syllable, initial, color, comment);\n \n syllables.push(currentSyllable);\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = neumeForm();\n createSVGOutput();\n}","function Assign_Lex_Lex() {\r\n}","get Directionality() {}","function printLatinWord(word){\r\n\t// combine the word without its first letter, then the first letter, then 'ay'.\r\n\treturn word.slice(1) + word.slice(0, 1) + \"ay \";\r\n}","function simple(){\n aff('Exercice n°01 : Bienvenue');\n var name = 'loic';\n aff(`Bienvenue à vous -> ${name} !`);\n jump();\n}","get lemmasList () {\n if (this.homonym && this.homonym.lexemes) {\n return this.homonym.lexemes.map(lexeme => lexeme.lemma.word).filter((value, index, self) => {\n return self.indexOf(value) === index\n }).join(', ')\n }\n return ''\n }","title() { return this.owner.name + \" - \" + this.label.replace('\\n', ' ') }","translate(...args) {\n\t\tif (this._localizationEnabled) {\n\t\t\treturn this.__(...args)\n\t\t}\n\n\t\treturn args[0]\n\t}","set Directionality(value) {}","function makeGerund(styleVerb) {\n if (styleVerb === \"Boulder\") {\n return \"Bouldering\";\n } else if (styleVerb === \"Top Rope\")\n return \"Top Rope Climbing\";\n}","function lexicograph(name){\r\n console.log(name.toUpperCase().split(\"\").sort().join(\"\").toLowerCase());\r\n }","function flat2(){\n vm.input = vm.input.concat(\"😑\");\n }"],"string":"[\n \"function L() {\\n if (Syllable.DEBUG) Vex.L(\\\"Vex.Flow.Syllable\\\", arguments);\\n }\",\n \"function toSyllableFromVariations(){\\n pushedVariations = false;\\n variations = new Array();\\n \\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function stepSyllable() {\\n drums();\\n try {\\n var s = poem[stanza];\\n\\n var v = s[verse];\\n if (!v) {\\n stepStanza();\\n return stepSyllable();\\n }\\n var w = v.w[word];\\n if (!w) {\\n stepVerse();\\n return stepSyllable();\\n }\\n var sb = w.s[syllable];\\n if (!sb) {\\n stepWord();\\n return stepSyllable();\\n }\\n\\n printSyllable(sb);\\n\\n var note = chooseNote(sb);\\n playNote(note);\\n sock.write(deaccent(sb));\\n syllable++\\n\\n } catch (e) {\\n stepStanza();\\n intro.draw(1);\\n }\\n}\",\n \"getCodeNorm() {\\n const c = this.getCode();\\n return c === NL_LIKE ? NL : c;\\n }\",\n \"mapSyllableRomajiUnicode() {\\n return {\\n mapping: [\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"\\\", vowel: \\\"a\\\"}, romaji: \\\"a\\\", unicode: \\\"\\\\u3042\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"\\\", vowel: \\\"i\\\"}, romaji: \\\"i\\\", unicode: \\\"\\\\u3044\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"\\\", vowel: \\\"u\\\"}, romaji: \\\"u\\\", unicode: \\\"\\\\u3046\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"\\\", vowel: \\\"e\\\"}, romaji: \\\"e\\\", unicode: \\\"\\\\u3048\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"\\\", vowel: \\\"o\\\"}, romaji: \\\"o\\\", unicode: \\\"\\\\u304A\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"k\\\", vowel: \\\"a\\\"}, romaji: \\\"ka\\\", unicode: \\\"\\\\u304B\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"k\\\", vowel: \\\"i\\\"}, romaji: \\\"ki\\\", unicode: \\\"\\\\u304D\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"k\\\", vowel: \\\"u\\\"}, romaji: \\\"ku\\\", unicode: \\\"\\\\u304F\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"k\\\", vowel: \\\"e\\\"}, romaji: \\\"ke\\\", unicode: \\\"\\\\u3051\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"k\\\", vowel: \\\"o\\\"}, romaji: \\\"ko\\\", unicode: \\\"\\\\u3053\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"s\\\", vowel: \\\"a\\\"}, romaji: \\\"sa\\\", unicode: \\\"\\\\u3055\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"s\\\", vowel: \\\"i\\\"}, romaji: \\\"shi\\\", unicode: \\\"\\\\u3057\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"s\\\", vowel: \\\"u\\\"}, romaji: \\\"su\\\", unicode: \\\"\\\\u3059\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"s\\\", vowel: \\\"e\\\"}, romaji: \\\"se\\\", unicode: \\\"\\\\u305B\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"s\\\", vowel: \\\"o\\\"}, romaji: \\\"so\\\", unicode: \\\"\\\\u305D\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"t\\\", vowel: \\\"a\\\"}, romaji: \\\"ta\\\", unicode: \\\"\\\\u305F\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"t\\\", vowel: \\\"i\\\"}, romaji: \\\"chi\\\", unicode: \\\"\\\\u3061\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"t\\\", vowel: \\\"u\\\"}, romaji: \\\"tsu\\\", unicode: \\\"\\\\u3064\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"t\\\", vowel: \\\"e\\\"}, romaji: \\\"te\\\", unicode: \\\"\\\\u3066\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"t\\\", vowel: \\\"o\\\"}, romaji: \\\"to\\\", unicode: \\\"\\\\u3068\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"n\\\", vowel: \\\"a\\\"}, romaji: \\\"na\\\", unicode: \\\"\\\\u306A\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"n\\\", vowel: \\\"i\\\"}, romaji: \\\"ni\\\", unicode: \\\"\\\\u306B\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"n\\\", vowel: \\\"u\\\"}, romaji: \\\"nu\\\", unicode: \\\"\\\\u306C\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"n\\\", vowel: \\\"e\\\"}, romaji: \\\"ne\\\", unicode: \\\"\\\\u306D\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"n\\\", vowel: \\\"o\\\"}, romaji: \\\"no\\\", unicode: \\\"\\\\u306E\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"h\\\", vowel: \\\"a\\\"}, romaji: \\\"ha\\\", unicode: \\\"\\\\u306F\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"h\\\", vowel: \\\"i\\\"}, romaji: \\\"hi\\\", unicode: \\\"\\\\u3072\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"h\\\", vowel: \\\"u\\\"}, romaji: \\\"fu\\\", unicode: \\\"\\\\u3075\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"h\\\", vowel: \\\"e\\\"}, romaji: \\\"he\\\", unicode: \\\"\\\\u3078\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"h\\\", vowel: \\\"o\\\"}, romaji: \\\"ho\\\", unicode: \\\"\\\\u307B\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"m\\\", vowel: \\\"a\\\"}, romaji: \\\"ma\\\", unicode: \\\"\\\\u307E\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"m\\\", vowel: \\\"i\\\"}, romaji: \\\"mi\\\", unicode: \\\"\\\\u307F\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"m\\\", vowel: \\\"u\\\"}, romaji: \\\"mu\\\", unicode: \\\"\\\\u3080\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"m\\\", vowel: \\\"e\\\"}, romaji: \\\"me\\\", unicode: \\\"\\\\u3081\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"m\\\", vowel: \\\"o\\\"}, romaji: \\\"mo\\\", unicode: \\\"\\\\u3082\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"y\\\", vowel: \\\"a\\\"}, romaji: \\\"ya\\\", unicode: \\\"\\\\u3084\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"y\\\", vowel: \\\"u\\\"}, romaji: \\\"yu\\\", unicode: \\\"\\\\u3086\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"y\\\", vowel: \\\"o\\\"}, romaji: \\\"yo\\\", unicode: \\\"\\\\u3088\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"r\\\", vowel: \\\"a\\\"}, romaji: \\\"ra\\\", unicode: \\\"\\\\u3089\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"r\\\", vowel: \\\"i\\\"}, romaji: \\\"ri\\\", unicode: \\\"\\\\u308A\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"r\\\", vowel: \\\"u\\\"}, romaji: \\\"ru\\\", unicode: \\\"\\\\u308B\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"r\\\", vowel: \\\"e\\\"}, romaji: \\\"re\\\", unicode: \\\"\\\\u308C\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"r\\\", vowel: \\\"o\\\"}, romaji: \\\"ro\\\", unicode: \\\"\\\\u308D\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"w\\\", vowel: \\\"a\\\"}, romaji: \\\"wa\\\", unicode: \\\"\\\\u308F\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"w\\\", vowel: \\\"o\\\"}, romaji: \\\"wo\\\", unicode: \\\"\\\\u3092\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"\\\", vowel: \\\"n\\\"}, romaji: \\\"n\\\", unicode: \\\"\\\\u3093\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"g\\\", vowel: \\\"a\\\"}, romaji: \\\"ga\\\", unicode: \\\"\\\\u304C\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"g\\\", vowel: \\\"i\\\"}, romaji: \\\"gi\\\", unicode: \\\"\\\\u304E\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"g\\\", vowel: \\\"u\\\"}, romaji: \\\"gu\\\", unicode: \\\"\\\\u3050\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"g\\\", vowel: \\\"e\\\"}, romaji: \\\"ge\\\", unicode: \\\"\\\\u3052\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"g\\\", vowel: \\\"o\\\"}, romaji: \\\"go\\\", unicode: \\\"\\\\u3054\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"z\\\", vowel: \\\"a\\\"}, romaji: \\\"za\\\", unicode: \\\"\\\\u3056\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"z\\\", vowel: \\\"i\\\"}, romaji: \\\"ji\\\", unicode: \\\"\\\\u3058\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"z\\\", vowel: \\\"u\\\"}, romaji: \\\"zu\\\", unicode: \\\"\\\\u305A\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"z\\\", vowel: \\\"e\\\"}, romaji: \\\"ze\\\", unicode: \\\"\\\\u305C\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"z\\\", vowel: \\\"o\\\"}, romaji: \\\"zo\\\", unicode: \\\"\\\\u305E\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"d\\\", vowel: \\\"a\\\"}, romaji: \\\"da\\\", unicode: \\\"\\\\u3060\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"d\\\", vowel: \\\"i\\\"}, romaji: \\\"ji\\\", unicode: \\\"\\\\u3062\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"d\\\", vowel: \\\"u\\\"}, romaji: \\\"zu\\\", unicode: \\\"\\\\u3065\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"d\\\", vowel: \\\"e\\\"}, romaji: \\\"de\\\", unicode: \\\"\\\\u3067\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"d\\\", vowel: \\\"o\\\"}, romaji: \\\"do\\\", unicode: \\\"\\\\u3069\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"b\\\", vowel: \\\"a\\\"}, romaji: \\\"ba\\\", unicode: \\\"\\\\u3070\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"b\\\", vowel: \\\"i\\\"}, romaji: \\\"bi\\\", unicode: \\\"\\\\u3073\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"b\\\", vowel: \\\"u\\\"}, romaji: \\\"bu\\\", unicode: \\\"\\\\u3076\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"b\\\", vowel: \\\"e\\\"}, romaji: \\\"be\\\", unicode: \\\"\\\\u3079\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"b\\\", vowel: \\\"o\\\"}, romaji: \\\"bo\\\", unicode: \\\"\\\\u307C\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"p\\\", vowel: \\\"a\\\"}, romaji: \\\"pa\\\", unicode: \\\"\\\\u3071\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"p\\\", vowel: \\\"i\\\"}, romaji: \\\"pi\\\", unicode: \\\"\\\\u3074\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"p\\\", vowel: \\\"u\\\"}, romaji: \\\"pu\\\", unicode: \\\"\\\\u3077\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"p\\\", vowel: \\\"e\\\"}, romaji: \\\"pe\\\", unicode: \\\"\\\\u307A\\\"},\\n {syllable: {alphabet: \\\"h\\\", consonant: \\\"p\\\", vowel: \\\"o\\\"}, romaji: \\\"po\\\", unicode: \\\"\\\\u307D\\\"},\\n\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"\\\", vowel: \\\"a\\\"}, romaji: \\\"a\\\", unicode: \\\"\\\\u30A2\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"\\\", vowel: \\\"i\\\"}, romaji: \\\"i\\\", unicode: \\\"\\\\u30A4\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"\\\", vowel: \\\"u\\\"}, romaji: \\\"u\\\", unicode: \\\"\\\\u30A6\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"\\\", vowel: \\\"e\\\"}, romaji: \\\"e\\\", unicode: \\\"\\\\u30A8\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"\\\", vowel: \\\"o\\\"}, romaji: \\\"o\\\", unicode: \\\"\\\\u30AA\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"k\\\", vowel: \\\"a\\\"}, romaji: \\\"ka\\\", unicode: \\\"\\\\u30AB\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"k\\\", vowel: \\\"i\\\"}, romaji: \\\"ki\\\", unicode: \\\"\\\\u30AD\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"k\\\", vowel: \\\"u\\\"}, romaji: \\\"ku\\\", unicode: \\\"\\\\u30AF\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"k\\\", vowel: \\\"e\\\"}, romaji: \\\"ke\\\", unicode: \\\"\\\\u30B1\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"k\\\", vowel: \\\"o\\\"}, romaji: \\\"ko\\\", unicode: \\\"\\\\u30B3\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"s\\\", vowel: \\\"a\\\"}, romaji: \\\"sa\\\", unicode: \\\"\\\\u30B5\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"s\\\", vowel: \\\"i\\\"}, romaji: \\\"shi\\\", unicode: \\\"\\\\u30B7\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"s\\\", vowel: \\\"u\\\"}, romaji: \\\"su\\\", unicode: \\\"\\\\u30B9\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"s\\\", vowel: \\\"e\\\"}, romaji: \\\"se\\\", unicode: \\\"\\\\u30BB\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"s\\\", vowel: \\\"o\\\"}, romaji: \\\"so\\\", unicode: \\\"\\\\u30BD\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"t\\\", vowel: \\\"a\\\"}, romaji: \\\"ta\\\", unicode: \\\"\\\\u30BF\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"t\\\", vowel: \\\"i\\\"}, romaji: \\\"chi\\\", unicode: \\\"\\\\u30C1\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"t\\\", vowel: \\\"u\\\"}, romaji: \\\"tsu\\\", unicode: \\\"\\\\u30C4\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"t\\\", vowel: \\\"e\\\"}, romaji: \\\"te\\\", unicode: \\\"\\\\u30C6\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"t\\\", vowel: \\\"o\\\"}, romaji: \\\"to\\\", unicode: \\\"\\\\u30C8\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"n\\\", vowel: \\\"a\\\"}, romaji: \\\"na\\\", unicode: \\\"\\\\u30CA\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"n\\\", vowel: \\\"i\\\"}, romaji: \\\"ni\\\", unicode: \\\"\\\\u30CB\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"n\\\", vowel: \\\"u\\\"}, romaji: \\\"nu\\\", unicode: \\\"\\\\u30CC\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"n\\\", vowel: \\\"e\\\"}, romaji: \\\"ne\\\", unicode: \\\"\\\\u30CD\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"n\\\", vowel: \\\"o\\\"}, romaji: \\\"no\\\", unicode: \\\"\\\\u30CE\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"h\\\", vowel: \\\"a\\\"}, romaji: \\\"ha\\\", unicode: \\\"\\\\u30CF\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"h\\\", vowel: \\\"i\\\"}, romaji: \\\"hi\\\", unicode: \\\"\\\\u30D2\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"h\\\", vowel: \\\"u\\\"}, romaji: \\\"fu\\\", unicode: \\\"\\\\u30D5\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"h\\\", vowel: \\\"e\\\"}, romaji: \\\"he\\\", unicode: \\\"\\\\u30D8\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"h\\\", vowel: \\\"o\\\"}, romaji: \\\"ho\\\", unicode: \\\"\\\\u30DB\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"m\\\", vowel: \\\"a\\\"}, romaji: \\\"ma\\\", unicode: \\\"\\\\u30DE\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"m\\\", vowel: \\\"i\\\"}, romaji: \\\"mi\\\", unicode: \\\"\\\\u30DF\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"m\\\", vowel: \\\"u\\\"}, romaji: \\\"mu\\\", unicode: \\\"\\\\u30E0\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"m\\\", vowel: \\\"e\\\"}, romaji: \\\"me\\\", unicode: \\\"\\\\u30E1\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"m\\\", vowel: \\\"o\\\"}, romaji: \\\"mo\\\", unicode: \\\"\\\\u30E2\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"y\\\", vowel: \\\"a\\\"}, romaji: \\\"ya\\\", unicode: \\\"\\\\u30E4\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"y\\\", vowel: \\\"u\\\"}, romaji: \\\"yu\\\", unicode: \\\"\\\\u30E6\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"y\\\", vowel: \\\"o\\\"}, romaji: \\\"yo\\\", unicode: \\\"\\\\u30E8\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"r\\\", vowel: \\\"a\\\"}, romaji: \\\"ra\\\", unicode: \\\"\\\\u30E9\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"r\\\", vowel: \\\"i\\\"}, romaji: \\\"ri\\\", unicode: \\\"\\\\u30EA\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"r\\\", vowel: \\\"u\\\"}, romaji: \\\"ru\\\", unicode: \\\"\\\\u30EB\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"r\\\", vowel: \\\"e\\\"}, romaji: \\\"re\\\", unicode: \\\"\\\\u30EC\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"r\\\", vowel: \\\"o\\\"}, romaji: \\\"ro\\\", unicode: \\\"\\\\u30ED\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"w\\\", vowel: \\\"a\\\"}, romaji: \\\"wa\\\", unicode: \\\"\\\\u30EF\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"w\\\", vowel: \\\"o\\\"}, romaji: \\\"wo\\\", unicode: \\\"\\\\u30F2\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"\\\", vowel: \\\"n\\\"}, romaji: \\\"n\\\", unicode: \\\"\\\\u30F3\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"g\\\", vowel: \\\"a\\\"}, romaji: \\\"ga\\\", unicode: \\\"\\\\u30AC\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"g\\\", vowel: \\\"i\\\"}, romaji: \\\"gi\\\", unicode: \\\"\\\\u30AE\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"g\\\", vowel: \\\"u\\\"}, romaji: \\\"gu\\\", unicode: \\\"\\\\u30B0\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"g\\\", vowel: \\\"e\\\"}, romaji: \\\"ge\\\", unicode: \\\"\\\\u30B2\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"g\\\", vowel: \\\"o\\\"}, romaji: \\\"go\\\", unicode: \\\"\\\\u30B4\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"z\\\", vowel: \\\"a\\\"}, romaji: \\\"za\\\", unicode: \\\"\\\\u30B6\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"z\\\", vowel: \\\"i\\\"}, romaji: \\\"ji\\\", unicode: \\\"\\\\u30B8\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"z\\\", vowel: \\\"u\\\"}, romaji: \\\"zu\\\", unicode: \\\"\\\\u30BA\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"z\\\", vowel: \\\"e\\\"}, romaji: \\\"ze\\\", unicode: \\\"\\\\u30BC\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"z\\\", vowel: \\\"o\\\"}, romaji: \\\"zo\\\", unicode: \\\"\\\\u30BE\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"d\\\", vowel: \\\"a\\\"}, romaji: \\\"da\\\", unicode: \\\"\\\\u30C0\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"d\\\", vowel: \\\"i\\\"}, romaji: \\\"ji\\\", unicode: \\\"\\\\u30C2\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"d\\\", vowel: \\\"u\\\"}, romaji: \\\"zu\\\", unicode: \\\"\\\\u30C5\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"d\\\", vowel: \\\"e\\\"}, romaji: \\\"de\\\", unicode: \\\"\\\\u30C7\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"d\\\", vowel: \\\"o\\\"}, romaji: \\\"do\\\", unicode: \\\"\\\\u30C9\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"b\\\", vowel: \\\"a\\\"}, romaji: \\\"ba\\\", unicode: \\\"\\\\u30D0\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"b\\\", vowel: \\\"i\\\"}, romaji: \\\"bi\\\", unicode: \\\"\\\\u30D3\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"b\\\", vowel: \\\"u\\\"}, romaji: \\\"bu\\\", unicode: \\\"\\\\u30D6\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"b\\\", vowel: \\\"e\\\"}, romaji: \\\"be\\\", unicode: \\\"\\\\u30D9\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"b\\\", vowel: \\\"o\\\"}, romaji: \\\"bo\\\", unicode: \\\"\\\\u30DC\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"p\\\", vowel: \\\"a\\\"}, romaji: \\\"pa\\\", unicode: \\\"\\\\u30D1\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"p\\\", vowel: \\\"i\\\"}, romaji: \\\"pi\\\", unicode: \\\"\\\\u30D4\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"p\\\", vowel: \\\"u\\\"}, romaji: \\\"pu\\\", unicode: \\\"\\\\u30D7\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"p\\\", vowel: \\\"e\\\"}, romaji: \\\"pe\\\", unicode: \\\"\\\\u30DA\\\"},\\n {syllable: {alphabet: \\\"k\\\", consonant: \\\"p\\\", vowel: \\\"o\\\"}, romaji: \\\"po\\\", unicode: \\\"\\\\u30DD\\\"},\\n ]\\n }\\n }\",\n \"viewTranslation() {\\n switch(this.state.CurrentViewIndex) {\\n case 0 :\\n return \\\"By Student\\\";\\n case 1 :\\n return \\\"By Poem\\\";\\n default:\\n return \\\"\\\";\\n }\\n }\",\n \"function isVariantLabel(v) {\\n return typeof v === \\\"string\\\" || isVariantLabels(v);\\n}\",\n \"function isVariantLabel(v) {\\n return typeof v === \\\"string\\\" || isVariantLabels(v);\\n}\",\n \"function isVariantLabel(v) {\\n return typeof v === \\\"string\\\" || isVariantLabels(v);\\n}\",\n \"function isVariantLabel(v) {\\n return typeof v === \\\"string\\\" || isVariantLabels(v);\\n}\",\n \"function translationLabels(){\\n /** This help array shows the hints for this experiment */\\n\\t\\t\\t\\thelpArray=[_(\\\"help1\\\"),_(\\\"help2\\\"),_(\\\"help3\\\"),_(\\\"help4\\\"),_(\\\"help5\\\"),_(\\\"help6\\\"),_(\\\"help7\\\"),_(\\\"Next\\\"),_(\\\"Close\\\"),_(\\\"help8\\\"),_(\\\"help9\\\")];\\n scope.heading=_(\\\"Emission spectra\\\");\\n\\t\\t\\t\\tscope.variables=_(\\\"Variables\\\"); \\n\\t\\t\\t\\tscope.result=_(\\\"Result\\\"); \\n\\t\\t\\t\\tscope.copyright=_(\\\"copyright\\\"); \\n\\t\\t\\t\\tscope.calibrate_txt = _(\\\"Reset\\\");\\n scope.calibrate_slider_txt = _(\\\"Calibrate Telescope :\\\");\\n scope.select_lamp_txt = _(\\\"Select Lamp :\\\");\\n light_on_txt = _(\\\"Switch On Light\\\");\\n light_off_txt = _(\\\"Switch Off Light\\\");\\n place_grating_txt = _(\\\"Place grating\\\");\\n remove_grating_txt = _(\\\"Remove grating\\\");\\n scope.telescope_angle_txt = _(\\\"Angle of Telescope :\\\");\\n scope.vernier_table_angle_txt = _(\\\"Angle of Vernier Table :\\\");\\n scope.fine_angle_txt = _(\\\"Fine Angle of Telescope :\\\");\\n scope.start_txt = _(\\\"Start\\\");\\n\\t\\t\\t\\tscope.reset_txt = _(\\\"Reset\\\");\\n scope.lamp_array = [{\\n lamp:_(\\\"Mercury\\\"),\\n index:0\\n },{\\n lamp:_(\\\"Hydrogen\\\"),\\n index:1\\n },{\\n lamp:_(\\\"Neon\\\"),\\n index:2\\n }];\\n scope.$apply();\\t\\t\\t\\t\\n\\t\\t\\t}\",\n \"function nounForms() {\\n return [...Array(28).keys()].map(i => (plurality[i >= cases.length ? 1 : 0] + \\\" \\\" + cases[i % cases.length]));\\n}\",\n \"function __doubleMetaphone(value) {\\n var primary = '',\\n secondary = '',\\n index = 0,\\n length = value.length,\\n last = length - 1,\\n isSlavoGermanic = SLAVO_GERMANIC.test(value),\\n isGermanic = GERMANIC.test(value),\\n characters = value.split(''),\\n subvalue,\\n next,\\n prev,\\n nextnext;\\n\\n value = String(value).toUpperCase() + ' ';\\n\\n // Skip this at beginning of word.\\n if (INITIAL_EXCEPTIONS.test(value))\\n index++;\\n\\n // Initial X is pronounced Z, which maps to S. Such as `Xavier`\\n if (characters[0] === 'X') {\\n primary += 'S';\\n secondary += 'S';\\n\\n index++;\\n }\\n\\n while (index < length) {\\n prev = characters[index - 1];\\n next = characters[index + 1];\\n nextnext = characters[index + 2];\\n\\n switch (characters[index]) {\\n case 'A':\\n case 'E':\\n case 'I':\\n case 'O':\\n case 'U':\\n case 'Y':\\n case 'À':\\n case 'Ê':\\n case 'É':\\n case 'É':\\n if (index === 0) {\\n // All initial vowels now map to `A`.\\n primary += 'A';\\n secondary += 'A';\\n }\\n\\n index++;\\n\\n break;\\n case 'B':\\n primary += 'P';\\n secondary += 'P';\\n\\n if (next === 'B')\\n index++;\\n\\n index++;\\n\\n break;\\n case 'Ç':\\n primary += 'S';\\n secondary += 'S';\\n index++;\\n\\n break;\\n case 'C':\\n // Various Germanic:\\n if (prev === 'A' &&\\n next === 'H' &&\\n nextnext !== 'I' &&\\n !VOWELS.test(characters[index - 2]) &&\\n (nextnext !== 'E' || (subvalue = value.slice(index - 2, index + 4) &&\\n (subvalue === 'BACHER' || subvalue === 'MACHER')))\\n ) {\\n primary += 'K';\\n secondary += 'K';\\n index += 2;\\n\\n break;\\n }\\n\\n // Special case for `Caesar`.\\n if (index === 0 && value.slice(index + 1, index + 6) === 'AESAR') {\\n primary += 'S';\\n secondary += 'S';\\n index += 2;\\n\\n break;\\n }\\n\\n // Italian `Chianti`.\\n if (value.slice(index + 1, index + 4) === 'HIA') {\\n primary += 'K';\\n secondary += 'K';\\n index += 2;\\n\\n break;\\n }\\n\\n if (next === 'H') {\\n // Find `Michael`.\\n if (index > 0 && nextnext === 'A' && characters[index + 3] === 'E') {\\n primary += 'K';\\n secondary += 'X';\\n index += 2;\\n\\n break;\\n }\\n\\n // Greek roots such as `chemistry`, `chorus`.\\n if (index === 0 && GREEK_INITIAL_CH.test(value)) {\\n primary += 'K';\\n secondary += 'K';\\n index += 2;\\n\\n break;\\n }\\n\\n // Germanic, Greek, or otherwise `CH` for `KH` sound.\\n if (isGermanic ||\\n // Such as 'architect' but not 'arch', orchestra', 'orchid'.\\n GREEK_CH.test(value.slice(index - 2, index + 4)) ||\\n (nextnext === 'T' || nextnext === 'S') ||\\n ((index === 0 ||\\n prev === 'A' ||\\n prev === 'E' ||\\n prev === 'O' ||\\n prev === 'U') &&\\n // Such as `wachtler`, `weschsler`, but not `tichner`.\\n CH_FOR_KH.test(nextnext))\\n ) {\\n primary += 'K';\\n secondary += 'K';\\n } else if (index === 0) {\\n primary += 'X';\\n secondary += 'X';\\n } else if (value.slice(0, 2) === 'MC') { // Such as 'McHugh'.\\n // Bug? Why matching absolute? what about McHiccup?\\n primary += 'K';\\n secondary += 'K';\\n } else {\\n primary += 'X';\\n secondary += 'K';\\n }\\n\\n index += 2;\\n\\n break;\\n }\\n\\n // Such as `Czerny`.\\n if (next === 'Z' && value.slice(index - 2, index) !== 'WI') {\\n primary += 'S';\\n secondary += 'X';\\n index += 2;\\n\\n break;\\n }\\n\\n // Such as `Focaccia`.\\n if (value.slice(index + 1, index + 4) === 'CIA') {\\n primary += 'X';\\n secondary += 'X';\\n index += 3;\\n\\n break;\\n }\\n\\n // Double `C`, but not `McClellan`.\\n if (next === 'C' && !(index === 1 && characters[0] === 'M')) {\\n // Such as `Bellocchio`, but not `Bacchus`.\\n if ((nextnext === 'I' ||\\n nextnext === 'E' ||\\n nextnext === 'H') &&\\n value.slice(index + 2, index + 4) !== 'HU'\\n ) {\\n subvalue = value.slice(index - 1, index + 4);\\n\\n // Such as `Accident`, `Accede`, `Succeed`.\\n if ((index === 1 && prev === 'A') || subvalue === 'UCCEE' || subvalue === 'UCCES') {\\n primary += 'KS';\\n secondary += 'KS';\\n } else { // Such as `Bacci`, `Bertucci`, other Italian.\\n primary += 'X';\\n secondary += 'X';\\n }\\n\\n index += 3;\\n\\n break;\\n } else {\\n // Pierce's rule.\\n primary += 'K';\\n secondary += 'K';\\n index += 2;\\n\\n break;\\n }\\n }\\n\\n if (next === 'G' || next === 'K' || next === 'Q') {\\n primary += 'K';\\n secondary += 'K';\\n index += 2;\\n\\n break;\\n }\\n\\n // Italian.\\n if (next === 'I' && (nextnext === 'A' || nextnext === 'E' || nextnext === 'O')) {\\n primary += 'S';\\n secondary += 'X';\\n index += 2;\\n\\n break;\\n }\\n\\n if (next === 'I' || next === 'E' || next === 'Y') {\\n primary += 'S';\\n secondary += 'S';\\n index += 2;\\n\\n break;\\n }\\n\\n primary += 'K';\\n secondary += 'K';\\n\\n // Skip two extra characters ahead in `Mac Caffrey`, `Mac Gregor`.\\n if (next === ' ' && (nextnext === 'C' || nextnext === 'G' || nextnext === 'Q')) {\\n index += 3;\\n break;\\n }\\n\\n if (next === 'K' || next === 'Q' || (next === 'C' && nextnext !== 'E' && nextnext !== 'I'))\\n index++;\\n\\n index++;\\n\\n break;\\n case 'D':\\n if (next === 'G') {\\n // Such as `edge`.\\n if (nextnext === 'E' || nextnext === 'I' || nextnext === 'Y') {\\n primary += 'J';\\n secondary += 'J';\\n index += 3;\\n } else { // Such as `Edgar`.\\n primary += 'TK';\\n secondary += 'TK';\\n index += 2;\\n }\\n\\n break;\\n }\\n\\n if (next === 'T' || next === 'D') {\\n primary += 'T';\\n secondary += 'T';\\n index += 2;\\n\\n break;\\n }\\n\\n primary += 'T';\\n secondary += 'T';\\n index++;\\n\\n break;\\n case 'F':\\n if (next === 'F')\\n index++;\\n\\n index++;\\n primary += 'F';\\n secondary += 'F';\\n\\n break;\\n case 'G':\\n if (next === 'H') {\\n if (index > 0 && !VOWELS.test(prev)) {\\n primary += 'K';\\n secondary += 'K';\\n index += 2;\\n\\n break;\\n }\\n\\n // Such as `Ghislane`, `Ghiradelli`.\\n if (index === 0) {\\n if (nextnext === 'I') {\\n primary += 'J';\\n secondary += 'J';\\n } else {\\n primary += 'K';\\n secondary += 'K';\\n }\\n index += 2;\\n break;\\n }\\n\\n // Parker's rule (with some further refinements).\\n if ((// Such as `Hugh`\\n subvalue = characters[index - 2],\\n subvalue === 'B' ||\\n subvalue === 'H' ||\\n subvalue === 'D'\\n ) ||\\n (// Such as `bough`.\\n subvalue = characters[index - 3],\\n subvalue === 'B' ||\\n subvalue === 'H' ||\\n subvalue === 'D'\\n ) ||\\n (// Such as `Broughton`.\\n subvalue = characters[index - 4],\\n subvalue === 'B' ||\\n subvalue === 'H'\\n )\\n ) {\\n index += 2;\\n\\n break;\\n }\\n\\n // Such as `laugh`, `McLaughlin`, `cough`, `gough`, `rough`, `tough`.\\n if (index > 2 && prev === 'U' && G_FOR_F.test(characters[index - 3])) {\\n primary += 'F';\\n secondary += 'F';\\n } else if (index > 0 && prev !== 'I') {\\n primary += 'K';\\n secondary += 'K';\\n }\\n\\n index += 2;\\n\\n break;\\n }\\n\\n if (next === 'N') {\\n if (index === 1 && VOWELS.test(characters[0]) && !isSlavoGermanic) {\\n primary += 'KN';\\n secondary += 'N';\\n } else if (\\n // Not like `Cagney`.\\n value.slice(index + 2, index + 4) !== 'EY' &&\\n value.slice(index + 1) !== 'Y' &&\\n !isSlavoGermanic\\n ) {\\n primary += 'N';\\n secondary += 'KN';\\n } else {\\n primary += 'KN';\\n secondary += 'KN';\\n }\\n\\n index += 2;\\n\\n break;\\n }\\n\\n //Such as `Tagliaro`.\\n if (value.slice(index + 1, index + 3) === 'LI' && !isSlavoGermanic) {\\n primary += 'KL';\\n secondary += 'L';\\n index += 2;\\n\\n break;\\n }\\n\\n // -ges-, -gep-, -gel- at beginning.\\n if (index === 0 && INITIAL_G_FOR_KJ.test(value.slice(1, 3))) {\\n primary += 'K';\\n secondary += 'J';\\n index += 2;\\n\\n break;\\n }\\n\\n // -ger-, -gy-.\\n if ((value.slice(index + 1, index + 3) === 'ER' &&\\n prev !== 'I' && prev !== 'E' &&\\n !INITIAL_ANGER_EXCEPTION.test(value.slice(0, 6))\\n ) ||\\n (next === 'Y' && !G_FOR_KJ.test(prev))\\n ) {\\n primary += 'K';\\n secondary += 'J';\\n index += 2;\\n\\n break;\\n }\\n\\n // Italian such as `biaggi`.\\n if (next === 'E' || next === 'I' || next === 'Y' || (\\n (prev === 'A' || prev === 'O') &&\\n next === 'G' && nextnext === 'I'\\n )\\n ) {\\n // Obvious Germanic.\\n if (value.slice(index + 1, index + 3) === 'ET' || isGermanic) {\\n primary += 'K';\\n secondary += 'K';\\n } else {\\n // Always soft if French ending.\\n if (value.slice(index + 1, index + 5) === 'IER ') {\\n primary += 'J';\\n secondary += 'J';\\n } else {\\n primary += 'J';\\n secondary += 'K';\\n }\\n }\\n\\n index += 2;\\n\\n break;\\n }\\n\\n if (next === 'G')\\n index++;\\n\\n index++;\\n\\n primary += 'K';\\n secondary += 'K';\\n\\n break;\\n case 'H':\\n // Only keep if first & before vowel or btw. 2 vowels.\\n if (VOWELS.test(next) && (index === 0 || VOWELS.test(prev))) {\\n primary += 'H';\\n secondary += 'H';\\n\\n index++;\\n }\\n\\n index++;\\n\\n break;\\n case 'J':\\n // Obvious Spanish, `jose`, `San Jacinto`.\\n if (value.slice(index, index + 4) === 'JOSE' || value.slice(0, 4) === 'SAN ') {\\n if (value.slice(0, 4) === 'SAN ' || (index === 0 && characters[index + 4] === ' ')) {\\n primary += 'H';\\n secondary += 'H';\\n } else {\\n primary += 'J';\\n secondary += 'H';\\n }\\n\\n index++;\\n\\n break;\\n }\\n\\n if (index === 0) {\\n // Such as `Yankelovich` or `Jankelowicz`.\\n primary += 'J';\\n secondary += 'A';\\n } else if (// Spanish pron. of such as `bajador`.\\n !isSlavoGermanic &&\\n (next === 'A' || next === 'O') &&\\n VOWELS.test(prev)\\n ) {\\n primary += 'J';\\n secondary += 'H';\\n } else if (index === last) {\\n primary += 'J';\\n } else if (prev !== 'S' && prev !== 'K' && prev !== 'L' && !J_FOR_J_EXCEPTION.test(next)) {\\n primary += 'J';\\n secondary += 'J';\\n } else if (next === 'J') {\\n index++;\\n }\\n\\n index++;\\n\\n break;\\n case 'K':\\n if (next === 'K')\\n index++;\\n\\n primary += 'K';\\n secondary += 'K';\\n index++;\\n\\n break;\\n case 'L':\\n if (next === 'L') {\\n // Spanish such as `cabrillo`, `gallegos`.\\n if ((index === length - 3 && ((\\n prev === 'I' && (\\n nextnext === 'O' || nextnext === 'A'\\n )\\n ) || (\\n prev === 'A' && nextnext === 'E'\\n )\\n )) || (\\n prev === 'A' && nextnext === 'E' && ((\\n characters[last] === 'A' || characters[last] === 'O'\\n ) || ALLE.test(value.slice(last - 1, length))\\n )\\n )\\n ) {\\n primary += 'L';\\n index += 2;\\n\\n break;\\n }\\n\\n index++;\\n }\\n\\n primary += 'L';\\n secondary += 'L';\\n index++;\\n\\n break;\\n case 'M':\\n // Such as `dumb`, `thumb`.\\n if (next === 'M' || (\\n prev === 'U' && next === 'B' && (\\n index + 1 === last || value.slice(index + 2, index + 4) === 'ER')\\n )\\n ) {\\n index++;\\n }\\n\\n index++;\\n primary += 'M';\\n secondary += 'M';\\n\\n break;\\n case 'N':\\n if (next === 'N')\\n index++;\\n\\n index++;\\n primary += 'N';\\n secondary += 'N';\\n\\n break;\\n case 'Ñ':\\n index++;\\n primary += 'N';\\n secondary += 'N';\\n\\n break;\\n case 'P':\\n if (next === 'H') {\\n primary += 'F';\\n secondary += 'F';\\n index += 2;\\n\\n break;\\n }\\n\\n // Also account for `campbell` and `raspberry`.\\n subvalue = next;\\n\\n if (subvalue === 'P' || subvalue === 'B')\\n index++;\\n\\n index++;\\n\\n primary += 'P';\\n secondary += 'P';\\n\\n break;\\n case 'Q':\\n if (next === 'Q') {\\n index++;\\n }\\n\\n index++;\\n primary += 'K';\\n secondary += 'K';\\n\\n break;\\n case 'R':\\n // French such as `Rogier`, but exclude `Hochmeier`.\\n if (index === last &&\\n !isSlavoGermanic &&\\n prev === 'E' &&\\n characters[index - 2] === 'I' &&\\n characters[index - 4] !== 'M' && (\\n characters[index - 3] !== 'E' &&\\n characters[index - 3] !== 'A'\\n )\\n ) {\\n secondary += 'R';\\n } else {\\n primary += 'R';\\n secondary += 'R';\\n }\\n\\n if (next === 'R')\\n index++;\\n\\n index++;\\n\\n break;\\n case 'S':\\n // Special cases `island`, `isle`, `carlisle`, `carlysle`.\\n if (next === 'L' && (prev === 'I' || prev === 'Y')) {\\n index++;\\n\\n break;\\n }\\n\\n // Special case `sugar-`.\\n if (index === 0 && value.slice(1, 5) === 'UGAR') {\\n primary += 'X';\\n secondary += 'S';\\n index++;\\n\\n break;\\n }\\n\\n if (next === 'H') {\\n // Germanic.\\n if (H_FOR_S.test(value.slice(index + 1, index + 5))) {\\n primary += 'S';\\n secondary += 'S';\\n } else {\\n primary += 'X';\\n secondary += 'X';\\n }\\n\\n index += 2;\\n break;\\n }\\n\\n if (next === 'I' && (nextnext === 'O' || nextnext === 'A')) {\\n if (!isSlavoGermanic) {\\n primary += 'S';\\n secondary += 'X';\\n } else {\\n primary += 'S';\\n secondary += 'S';\\n }\\n\\n index += 3;\\n\\n break;\\n }\\n\\n /*\\n * German & Anglicization's, such as `Smith` match `Schmidt`,\\n * `snider` match `Schneider`. Also, -sz- in slavic language\\n * although in hungarian it is pronounced `s`.\\n */\\n if (next === 'Z' || (\\n index === 0 && (\\n next === 'L' || next === 'M' || next === 'N' || next === 'W'\\n )\\n )\\n ) {\\n primary += 'S';\\n secondary += 'X';\\n\\n if (next === 'Z')\\n index++;\\n\\n index++;\\n\\n break;\\n }\\n\\n if (next === 'C') {\\n // Schlesinger's rule.\\n if (nextnext === 'H') {\\n subvalue = value.slice(index + 3, index + 5);\\n\\n // Dutch origin, such as `school`, `schooner`.\\n if (DUTCH_SCH.test(subvalue)) {\\n // Such as `schermerhorn`, `schenker`.\\n if (subvalue === 'ER' || subvalue === 'EN') {\\n primary += 'X';\\n secondary += 'SK';\\n } else {\\n primary += 'SK';\\n secondary += 'SK';\\n }\\n\\n index += 3;\\n\\n break;\\n }\\n\\n if (index === 0 && !VOWELS.test(characters[3]) && characters[3] !== 'W') {\\n primary += 'X';\\n secondary += 'S';\\n } else {\\n primary += 'X';\\n secondary += 'X';\\n }\\n\\n index += 3;\\n\\n break;\\n }\\n\\n if (nextnext === 'I' || nextnext === 'E' || nextnext === 'Y') {\\n primary += 'S';\\n secondary += 'S';\\n index += 3;\\n break;\\n }\\n\\n primary += 'SK';\\n secondary += 'SK';\\n index += 3;\\n\\n break;\\n }\\n\\n subvalue = value.slice(index - 2, index);\\n\\n // French such as `resnais`, `artois`.\\n if (index === last && (subvalue === 'AI' || subvalue === 'OI')) {\\n secondary += 'S';\\n } else {\\n primary += 'S';\\n secondary += 'S';\\n }\\n\\n if (next === 'S' || next === 'Z')\\n index++;\\n\\n index++;\\n\\n break;\\n case 'T':\\n if (next === 'I' && nextnext === 'O' && characters[index + 3] === 'N') {\\n primary += 'X';\\n secondary += 'X';\\n index += 3;\\n\\n break;\\n }\\n\\n subvalue = value.slice(index + 1, index + 3);\\n\\n if ((next === 'I' && nextnext === 'A') || (next === 'C' && nextnext === 'H')) {\\n primary += 'X';\\n secondary += 'X';\\n index += 3;\\n\\n break;\\n }\\n\\n if (next === 'H' || (next === 'T' && nextnext === 'H')) {\\n // Special case `Thomas`, `Thames` or Germanic.\\n if (isGermanic || ((nextnext === 'O' || nextnext === 'A') && characters[index + 3] === 'M')) {\\n primary += 'T';\\n secondary += 'T';\\n } else {\\n primary += '0';\\n secondary += 'T';\\n }\\n\\n index += 2;\\n\\n break;\\n }\\n\\n if (next === 'T' || next === 'D')\\n index++;\\n\\n index++;\\n primary += 'T';\\n secondary += 'T';\\n\\n break;\\n case 'V':\\n if (next === 'V')\\n index++;\\n\\n primary += 'F';\\n secondary += 'F';\\n index++;\\n\\n break;\\n case 'W':\\n // Can also be in middle of word (as already taken care of for initial).\\n if (next === 'R') {\\n primary += 'R';\\n secondary += 'R';\\n index += 2;\\n\\n break;\\n }\\n\\n if (index === 0) {\\n // `Wasserman` should match `Vasserman`.\\n if (VOWELS.test(next)) {\\n primary += 'A';\\n secondary += 'F';\\n } else if (next === 'H') {\\n // Need `Uomo` to match `Womo`.\\n primary += 'A';\\n secondary += 'A';\\n }\\n }\\n\\n // `Arnow` should match `Arnoff`.\\n if (((prev === 'E' || prev === 'O') &&\\n next === 'S' && nextnext === 'K' && (\\n characters[index + 3] === 'I' ||\\n characters[index + 3] === 'Y'\\n )\\n ) || value.slice(0, 3) === 'SCH' || (index === last && VOWELS.test(prev))\\n ) {\\n secondary += 'F';\\n index++;\\n\\n break;\\n }\\n\\n // Polish such as `Filipowicz`.\\n if (next === 'I' && (nextnext === 'C' || nextnext === 'T') && characters[index + 3] === 'Z') {\\n primary += 'TS';\\n secondary += 'FX';\\n index += 4;\\n\\n break;\\n }\\n\\n index++;\\n\\n break;\\n case 'X':\\n // French such as `breaux`.\\n if (index === last || (prev === 'U' && (\\n characters[index - 2] === 'A' ||\\n characters[index - 2] === 'O'\\n ))\\n ) {\\n primary += 'KS';\\n secondary += 'KS';\\n }\\n\\n if (next === 'C' || next === 'X')\\n index++;\\n\\n index++;\\n\\n break;\\n case 'Z':\\n // Chinese pinyin such as `Zhao`.\\n if (next === 'H') {\\n primary += 'J';\\n secondary += 'J';\\n index += 2;\\n\\n break;\\n } else if ((next === 'Z' && (\\n nextnext === 'A' || nextnext === 'I' || nextnext === 'O'\\n )) || (\\n isSlavoGermanic && index > 0 && prev !== 'T'\\n )\\n ) {\\n primary += 'S';\\n secondary += 'TS';\\n } else {\\n primary += 'S';\\n secondary += 'S';\\n }\\n\\n if (next === 'Z')\\n index++;\\n\\n index++;\\n\\n break;\\n default:\\n index++;\\n\\n }\\n }\\n\\n return [primary, secondary];\\n }\",\n \"function toSyllable(){\\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"alist2string(u, elab=0, vlab=0) {\\n\\t\\tlet s = '';\\n\\t\\tfor (let e = this.firstAt(u); e != 0; e = this.nextAt(u, e)) {\\n\\t\\t\\tlet ns = elab(e,u);\\n\\t\\t\\tif (s.length > 0 && ns.length > 0) s += ' ';\\n\\t\\t\\ts += ns;\\n\\t\\t}\\n\\t\\treturn vlab(u) + (s ? `[${s}]` : '');\\n\\t}\",\n \"static theRealNameOfTheVirus(extended = false){\\n if(extended){\\n return \\\"No, the SARS-CoV-2 coronavirus causes the CoVID-19 disease.\\\"\\n }else{\\n return false;\\n }\\n }\",\n \"function translationLabels(){\\n /** This help array shows the hints for this experiment */\\n\\t\\t\\t\\thelpArray = [_(\\\"Next\\\"),_(\\\"Close\\\"),_(\\\"help1\\\"),_(\\\"help2\\\"),_(\\\"help3\\\"),_(\\\"help4\\\"),_(\\\"help5\\\"),_(\\\"help6\\\"),_(\\\"help7\\\"),_(\\\"help8\\\"),_(\\\"help9\\\"),_(\\\"help10\\\")];\\n scope.heading = _(\\\"Young's Modulus-Uniform Bending\\\");\\n\\t\\t\\t\\tscope.variables = _(\\\"Variables\\\"); \\n\\t\\t\\t\\tscope.result = _(\\\"Result\\\"); \\n\\t\\t\\t\\tscope.copyright = _(\\\"copyright\\\"); \\n\\t\\t\\t\\tscope.environment_lbl = _(\\\"Select Environment\\\");\\n\\t\\t\\t\\tscope.material_lbl = _(\\\"Select Material\\\");\\n\\t\\t\\t\\tscope.mass_lbl = _(\\\"Mass of weight hanger : \\\");\\n\\t\\t\\t\\tscope.material_lbl = _(\\\"Select Material\\\");\\n\\t\\t\\t\\tscope.unit_gram = _(\\\"g\\\");\\n\\t\\t\\t\\tscope.unit_cm = _(\\\"cm\\\");\\n\\t\\t\\t\\tscope.breadth_lbl = _(\\\"Breadth of bar(b) : \\\");\\n scope.thickness_lbl = _(\\\"Thickness of bar(d) : \\\");\\n scope.blade_distance_lbl = _(\\\"Knife edge distance : \\\");\\n scope.weight_hangers_distance_lbl = _(\\\"Weight hangers distance : \\\");\\n scope.reset = _(\\\"Reset\\\");\\n\\t\\t\\t\\tscope.result_txt = _(\\\"Young's Modulus of \\\");\\n\\t\\t\\t\\tscope.environment_array = [{\\n environment: _('Earth, g=9.8m/s'),\\n value: 9.8\\n }, {\\n environment: _('Moon, g=1.63m/s'),\\n value: 1.63\\n }, {\\n environment: _('Uranus, g=10.67m/s'),\\n value: 10.67\\n }, {\\n environment: _('Saturn, g=11.08m/s'),\\n value: 11.08\\n }];\\n scope.material_array = [{\\n material: _('Wood'),\\n value: 1.1\\n }, {\\n material: _('Aluminium'),\\n value: 6.9\\n }, {\\n material: _('Copper'),\\n value: 11.7\\n }, {\\n material: _('Steel'),\\n value: 20\\n }];\\n\\n scope.$apply();\\t\\t\\t\\t\\n\\t\\t\\t}\",\n \"function undo_cyrillic_adjustments(graphemes) {\\n\\n var lzlls = { \\n \\\"\\\\u043B\\\":\\\"l\\\", // CYRILLIC SMALL LETTER EL\\n \\\"\\\\u0437\\\":\\\"z\\\", // CYRILLIC SMALL LETTER ZE\\n \\\"\\\\u043B\\\\u044C\\\":\\\"ll\\\", // CYRILLIC SMALL LETTER EL and SMALL LETTER SOFT SIGN\\n \\\"\\\\u0441\\\":\\\"s\\\", // CYRILLIC SMALL LETTER ES\\n\\n \\\"\\\\u041B\\\":\\\"L\\\", // CYRILLIC CAPITAL LETTER EL\\n \\\"\\\\u0417\\\":\\\"Z\\\", // CYRILLIC CAPITAL LETTER ZE\\n \\\"\\\\u0421\\\":\\\"S\\\", // CYRILLIC CAPITAL LETTER ES\\n \\\"\\\\u041B\\\\u044C\\\":\\\"Ll\\\", // CYRILLIC CAPITAL LETTER EL and SMALL LETTER SOFT SIGN\\n } \\n\\n var undo_lzlls = {\\n \\\"\\\\u044F\\\\u0304\\\":\\\"\\\\u0430\\\\u0430\\\", // CYRILLIC SMALL LETTER YA with COMBINING MACRON to 'aa'\\n \\\"\\\\u044F\\\":\\\"\\\\u0430\\\", // CYRILLIC SMALL LETTER YA to 'a'\\n \\\"\\\\u044E\\\\u0304\\\":\\\"\\\\u0443\\\\u0443\\\", // CYRILLIC SMALL LETTER YA with COMBINING MACRON to 'uu'\\n \\\"\\\\u044E\\\":\\\"\\\\u0443\\\", // CYRILLIC SMALL LETTER YU to 'u'\\n }\\n\\n // Moves labialization symbol, i.e. Small Letter U with Dieresis to post-consonant position\\n var undo_labialC = {\\n \\\"\\\\u043A\\\":\\\"\\\\u043A\\\\u04F1\\\", // CYRILLIC SMALL LETTER KA and SMALL LETTER U with DIERESIS\\n \\\"\\\\u049B\\\":\\\"\\\\u049B\\\\u04F1\\\", // CYRILLIC SMALL LETTER KA with DESCENDER and SMALL LETTER U with DIERESIS \\n \\\"\\\\u04F7\\\":\\\"\\\\u04F7\\\\u04F1\\\", // CYRILLIC SMALL LETTER GHE with DESCENDER and SMALL LETTER U with DIERESIS \\n \\\"\\\\u0445\\\":\\\"\\\\u0445\\\\u04F1\\\", // CYRILLIC SMALL LETTER HA and SMALL LETTER U with DIERESIS\\n \\\"\\\\u04B3\\\":\\\"\\\\u04B3\\\\u04F1\\\", // CYRILLIC SMALL LETTER HA with DESCENDER and SMALL LETTER U with DIERESIS\\n \\\"\\\\u04A3\\\":\\\"\\\\u04A3\\\\u04F1\\\", // CYRILLIC SMALL LETTER EN with DESCENDER and SMALL LETTER U with DIERESIS\\n \\\"\\\\u04A3\\\\u044C\\\":\\\"\\\\u04A3\\\\u044C\\\\u04F1\\\", // CYRILLIC SMALL LETTER EN with DESCENDER & SMALL LETTER SOFT SIGN\\n // & SMALL LETTER U with DIERESIS\\n }\\n\\n var result = []\\n\\n for (var i = 0; i < graphemes.length; i++) {\\n var grapheme = graphemes[i]\\n\\n // ADJUSTMENT 2: Delete the Cyrillic soft sign that is inserted between 'ya'/'yu' and a consonant\\n if (i < graphemes.length - 1 && grapheme == \\\"\\\\u044C\\\" && graphemes[i+1] in undo_lzlls) {\\n result.push(graphemes[i+1])\\n i++\\n }\\n\\n // ADJUSTMENT 3: The 'ya', 'yu' Cyrillic representations are rewritten as 'a'\\n // and 'u' if they follow the Cyrillic representations of 'l', 'z', 'll', 's'\\n else if (i < graphemes.length - 1 && grapheme in lzlls && graphemes[i+1] in undo_lzlls) {\\n result.push(grapheme, undo_lzlls[graphemes[i+1]])\\n i++\\n }\\n \\n // ADJUSTMENT - A labialization symbol that appears before the consonant\\n // it labializes is moved to a position after the consonant\\n else if (i < graphemes.length - 1 && grapheme == \\\"\\\\u04F1\\\" && graphemes[i+1] in undo_labialC) {\\n result.push(undo_labialC[graphemes[i+1]])\\n i++\\n }\\n\\n // No adjustments applicable\\n else {\\n result.push(grapheme)\\n }\\n }\\n\\n return result\\n}\",\n \"function HyderabadTirupati() // extends PhoneticMapper\\n{\\n var map = [ \\n new KeyMap(\\\"\\\\u0901\\\", \\\"?\\\", \\\"z\\\", true), // Candrabindu\\n new KeyMap(\\\"\\\\u0902\\\", \\\"\\\\u1E41\\\", \\\"M\\\"), // Anusvara\\n new KeyMap(\\\"\\\\u0903\\\", \\\"\\\\u1E25\\\", \\\"H\\\"), // Visarga\\n new KeyMap(\\\"\\\\u1CF2\\\", \\\"\\\\u1E96\\\", \\\"Z\\\"), // jihvamuliya\\n new KeyMap(\\\"\\\\u1CF2\\\", \\\"h\\\\u032C\\\", \\\"V\\\"), // upadhmaniya\\n new KeyMap(\\\"\\\\u0905\\\", \\\"a\\\", \\\"a\\\"), // a\\n new KeyMap(\\\"\\\\u0906\\\", \\\"\\\\u0101\\\", \\\"A\\\"), // long a\\n new KeyMap(\\\"\\\\u093E\\\", null, \\\"A\\\", true), // long a attached\\n new KeyMap(\\\"\\\\u0907\\\", \\\"i\\\", \\\"i\\\"), // i\\n new KeyMap(\\\"\\\\u093F\\\", null, \\\"i\\\", true), // i attached\\n new KeyMap(\\\"\\\\u0908\\\", \\\"\\\\u012B\\\", \\\"I\\\"), // long i\\n new KeyMap(\\\"\\\\u0940\\\", null, \\\"I\\\", true), // long i attached\\n new KeyMap(\\\"\\\\u0909\\\", \\\"u\\\", \\\"u\\\"), // u\\n new KeyMap(\\\"\\\\u0941\\\", null, \\\"u\\\", true), // u attached\\n new KeyMap(\\\"\\\\u090A\\\", \\\"\\\\u016B\\\", \\\"U\\\"), // long u\\n new KeyMap(\\\"\\\\u0942\\\", null, \\\"U\\\", true), // long u attached\\n new KeyMap(\\\"\\\\u090B\\\", \\\"\\\\u1E5B\\\", \\\"q\\\"), // vocalic r\\n new KeyMap(\\\"\\\\u0943\\\", null, \\\"q\\\", true), // vocalic r attached\\n new KeyMap(\\\"\\\\u0960\\\", \\\"\\\\u1E5D\\\", \\\"Q\\\"), // long vocalic r\\n new KeyMap(\\\"\\\\u0944\\\", null, \\\"Q\\\", true), // long vocalic r attached\\n new KeyMap(\\\"\\\\u090C\\\", \\\"\\\\u1E37\\\", \\\"L\\\"), // vocalic l\\n new KeyMap(\\\"\\\\u0962\\\", null, \\\"L\\\", true), // vocalic l attached\\n new KeyMap(\\\"\\\\u0961\\\", \\\"\\\\u1E39\\\", \\\"LY\\\"), // long vocalic l\\n new KeyMap(\\\"\\\\u0963\\\", null, \\\"LY\\\", true), // long vocalic l attached\\n new KeyMap(\\\"\\\\u090F\\\", \\\"e\\\", \\\"e\\\"), // e\\n new KeyMap(\\\"\\\\u0947\\\", null, \\\"e\\\", true), // e attached\\n new KeyMap(\\\"\\\\u0910\\\", \\\"ai\\\", \\\"E\\\"), // ai\\n new KeyMap(\\\"\\\\u0948\\\", null, \\\"E\\\", true), // ai attached\\n new KeyMap(\\\"\\\\u0913\\\", \\\"o\\\", \\\"o\\\"), // o\\n new KeyMap(\\\"\\\\u094B\\\", null, \\\"o\\\", true), // o attached\\n new KeyMap(\\\"\\\\u0914\\\", \\\"au\\\", \\\"O\\\"), // au\\n new KeyMap(\\\"\\\\u094C\\\", null, \\\"O\\\", true), // au attached\\n\\n // velars\\n new KeyMap(\\\"\\\\u0915\\\\u094D\\\", \\\"k\\\", \\\"k\\\"), // k\\n new KeyMap(\\\"\\\\u0916\\\\u094D\\\", \\\"kh\\\", \\\"K\\\"), // kh\\n new KeyMap(\\\"\\\\u0917\\\\u094D\\\", \\\"g\\\", \\\"g\\\"), // g\\n new KeyMap(\\\"\\\\u0918\\\\u094D\\\", \\\"gh\\\", \\\"G\\\"), // gh\\n new KeyMap(\\\"\\\\u0919\\\\u094D\\\", \\\"\\\\u1E45\\\", \\\"f\\\"), // velar n\\n\\n // palatals\\n new KeyMap(\\\"\\\\u091A\\\\u094D\\\", \\\"c\\\", \\\"c\\\"), // c\\n new KeyMap(\\\"\\\\u091B\\\\u094D\\\", \\\"ch\\\", \\\"C\\\"), // ch\\n new KeyMap(\\\"\\\\u091C\\\\u094D\\\", \\\"j\\\", \\\"j\\\"), // j\\n new KeyMap(\\\"\\\\u091D\\\\u094D\\\", \\\"jh\\\", \\\"J\\\"), // jh\\n new KeyMap(\\\"\\\\u091E\\\\u094D\\\", \\\"\\\\u00F1\\\", \\\"F\\\"), // palatal n\\n\\n // retroflex\\n new KeyMap(\\\"\\\\u091F\\\\u094D\\\", \\\"\\\\u1E6D\\\", \\\"t\\\"), // retroflex t\\n new KeyMap(\\\"\\\\u0920\\\\u094D\\\", \\\"\\\\u1E6Dh\\\", \\\"T\\\"), // retroflex th\\n new KeyMap(\\\"\\\\u0921\\\\u094D\\\", \\\"\\\\u1E0D\\\", \\\"d\\\"), // retroflex d\\n new KeyMap(\\\"\\\\u0922\\\\u094D\\\", \\\"\\\\u1E0Dh\\\", \\\"D\\\"), // retroflex dh\\n new KeyMap(\\\"\\\\u0923\\\\u094D\\\", \\\"\\\\u1E47\\\", \\\"N\\\"), // retroflex n\\n new KeyMap(\\\"\\\\u0933\\\\u094D\\\", \\\"\\\\u1E37\\\", \\\"lY\\\"), // retroflex l\\n new KeyMap(\\\"\\\\u0933\\\\u094D\\\\u0939\\\\u094D\\\", \\\"\\\\u1E37\\\", \\\"lYh\\\"), // retroflex lh\\n\\n // dental\\n new KeyMap(\\\"\\\\u0924\\\\u094D\\\", \\\"t\\\", \\\"w\\\"), // dental t\\n new KeyMap(\\\"\\\\u0925\\\\u094D\\\", \\\"th\\\", \\\"W\\\"), // dental th\\n new KeyMap(\\\"\\\\u0926\\\\u094D\\\", \\\"d\\\", \\\"x\\\"), // dental d\\n new KeyMap(\\\"\\\\u0927\\\\u094D\\\", \\\"dh\\\", \\\"X\\\"), // dental dh\\n new KeyMap(\\\"\\\\u0928\\\\u094D\\\", \\\"n\\\", \\\"n\\\"), // dental n\\n\\n // labials\\n new KeyMap(\\\"\\\\u092A\\\\u094D\\\", \\\"p\\\", \\\"p\\\"), // p\\n new KeyMap(\\\"\\\\u092B\\\\u094D\\\", \\\"ph\\\", \\\"P\\\"), // ph\\n new KeyMap(\\\"\\\\u092C\\\\u094D\\\", \\\"b\\\", \\\"b\\\"), // b\\n new KeyMap(\\\"\\\\u092D\\\\u094D\\\", \\\"bh\\\", \\\"B\\\"), // bh\\n new KeyMap(\\\"\\\\u092E\\\\u094D\\\", \\\"m\\\", \\\"m\\\"), // m\\n\\n // sibillants\\n new KeyMap(\\\"\\\\u0936\\\\u094D\\\", \\\"\\\\u015B\\\", \\\"S\\\"), // palatal s\\n new KeyMap(\\\"\\\\u0937\\\\u094D\\\", \\\"\\\\u1E63\\\", \\\"R\\\"), // retroflex s\\n new KeyMap(\\\"\\\\u0938\\\\u094D\\\", \\\"s\\\", \\\"s\\\"), // dental s\\n new KeyMap(\\\"\\\\u0939\\\\u094D\\\", \\\"h\\\", \\\"h\\\"), // h\\n\\n // semivowels\\n new KeyMap(\\\"\\\\u092F\\\\u094D\\\", \\\"y\\\", \\\"y\\\"), // y\\n new KeyMap(\\\"\\\\u0930\\\\u094D\\\", \\\"r\\\", \\\"r\\\"), // r\\n new KeyMap(\\\"\\\\u0932\\\\u094D\\\", \\\"l\\\", \\\"l\\\"), // l\\n new KeyMap(\\\"\\\\u0935\\\\u094D\\\", \\\"v\\\", \\\"v\\\"), // v\\n\\n\\n // numerals\\n new KeyMap(\\\"\\\\u0966\\\", \\\"0\\\", \\\"0\\\"), // 0\\n new KeyMap(\\\"\\\\u0967\\\", \\\"1\\\", \\\"1\\\"), // 1\\n new KeyMap(\\\"\\\\u0968\\\", \\\"2\\\", \\\"2\\\"), // 2\\n new KeyMap(\\\"\\\\u0969\\\", \\\"3\\\", \\\"3\\\"), // 3\\n new KeyMap(\\\"\\\\u096A\\\", \\\"4\\\", \\\"4\\\"), // 4\\n new KeyMap(\\\"\\\\u096B\\\", \\\"5\\\", \\\"5\\\"), // 5\\n new KeyMap(\\\"\\\\u096C\\\", \\\"6\\\", \\\"6\\\"), // 6\\n new KeyMap(\\\"\\\\u096D\\\", \\\"7\\\", \\\"7\\\"), // 7\\n new KeyMap(\\\"\\\\u096E\\\", \\\"8\\\", \\\"8\\\"), // 8\\n new KeyMap(\\\"\\\\u096F\\\", \\\"9\\\", \\\"9\\\"), // 9\\n\\n // accents\\n new KeyMap(\\\"\\\\u0951\\\", \\\"|\\\", \\\"|\\\"), // udatta\\n new KeyMap(\\\"\\\\u0952\\\", \\\"_\\\", \\\"_\\\"), // anudatta\\n new KeyMap(\\\"\\\\u0953\\\", null, \\\"//\\\"), // grave accent\\n new KeyMap(\\\"\\\\u0954\\\", null, \\\"\\\\\\\\\\\"), // acute accent\\n\\n // miscellaneous\\n new KeyMap(\\\"\\\\u0933\\\\u094D\\\", \\\"\\\\u1E37\\\", \\\"L\\\"), // retroflex l\\n new KeyMap(\\\"\\\\u093D\\\", \\\"'\\\", \\\"'\\\"), // avagraha\\n new KeyMap(\\\"\\\\u0950\\\", null, \\\"om\\\"), // om\\n new KeyMap(\\\"\\\\u0964\\\", \\\".\\\", \\\".\\\") // single danda\\n ];\\n\\n PhoneticMapper.call(this, map);\\n}\",\n \"function doubleMetaphone(value) {\\n var primary = ''\\n var secondary = ''\\n var index = 0\\n var length = value.length\\n var last = length - 1\\n var isSlavoGermanic\\n var isGermanic\\n var subvalue\\n var next\\n var prev\\n var nextnext\\n var characters\\n\\n value = String(value).toUpperCase() + ' '\\n isSlavoGermanic = slavoGermanic.test(value)\\n isGermanic = germanic.test(value)\\n characters = value.split('')\\n\\n // Skip this at beginning of word.\\n if (initialExceptions.test(value)) {\\n index++\\n }\\n\\n // Initial X is pronounced Z, which maps to S. Such as `Xavier`.\\n if (characters[0] === 'X') {\\n primary += 'S'\\n secondary += 'S'\\n index++\\n }\\n\\n while (index < length) {\\n prev = characters[index - 1]\\n next = characters[index + 1]\\n nextnext = characters[index + 2]\\n\\n switch (characters[index]) {\\n case 'A':\\n case 'E':\\n case 'I':\\n case 'O':\\n case 'U':\\n case 'Y':\\n case 'À':\\n case 'Ê':\\n case 'É':\\n if (index === 0) {\\n // All initial vowels now map to `A`.\\n primary += 'A'\\n secondary += 'A'\\n }\\n\\n index++\\n\\n break\\n case 'B':\\n primary += 'P'\\n secondary += 'P'\\n\\n if (next === 'B') {\\n index++\\n }\\n\\n index++\\n\\n break\\n case 'Ç':\\n primary += 'S'\\n secondary += 'S'\\n index++\\n\\n break\\n case 'C':\\n // Various Germanic:\\n if (\\n prev === 'A' &&\\n next === 'H' &&\\n nextnext !== 'I' &&\\n !vowels.test(characters[index - 2]) &&\\n (nextnext !== 'E' ||\\n (subvalue =\\n value.slice(index - 2, index + 4) &&\\n (subvalue === 'BACHER' || subvalue === 'MACHER')))\\n ) {\\n primary += 'K'\\n secondary += 'K'\\n index += 2\\n\\n break\\n }\\n\\n // Special case for `Caesar`.\\n if (index === 0 && value.slice(index + 1, index + 6) === 'AESAR') {\\n primary += 'S'\\n secondary += 'S'\\n index += 2\\n\\n break\\n }\\n\\n // Italian `Chianti`.\\n if (value.slice(index + 1, index + 4) === 'HIA') {\\n primary += 'K'\\n secondary += 'K'\\n index += 2\\n\\n break\\n }\\n\\n if (next === 'H') {\\n // Find `Michael`.\\n if (index > 0 && nextnext === 'A' && characters[index + 3] === 'E') {\\n primary += 'K'\\n secondary += 'X'\\n index += 2\\n\\n break\\n }\\n\\n // Greek roots such as `chemistry`, `chorus`.\\n if (index === 0 && initialGreekCh.test(value)) {\\n primary += 'K'\\n secondary += 'K'\\n index += 2\\n\\n break\\n }\\n\\n // Germanic, Greek, or otherwise `CH` for `KH` sound.\\n if (\\n isGermanic ||\\n // Such as 'architect' but not 'arch', orchestra', 'orchid'.\\n greekCh.test(value.slice(index - 2, index + 4)) ||\\n (nextnext === 'T' || nextnext === 'S') ||\\n ((index === 0 ||\\n prev === 'A' ||\\n prev === 'E' ||\\n prev === 'O' ||\\n prev === 'U') &&\\n // Such as `wachtler`, `weschsler`, but not `tichner`.\\n chForKh.test(nextnext))\\n ) {\\n primary += 'K'\\n secondary += 'K'\\n } else if (index === 0) {\\n primary += 'X'\\n secondary += 'X'\\n // Such as 'McHugh'.\\n } else if (value.slice(0, 2) === 'MC') {\\n // Bug? Why matching absolute? what about McHiccup?\\n primary += 'K'\\n secondary += 'K'\\n } else {\\n primary += 'X'\\n secondary += 'K'\\n }\\n\\n index += 2\\n\\n break\\n }\\n\\n // Such as `Czerny`.\\n if (next === 'Z' && value.slice(index - 2, index) !== 'WI') {\\n primary += 'S'\\n secondary += 'X'\\n index += 2\\n\\n break\\n }\\n\\n // Such as `Focaccia`.\\n if (value.slice(index + 1, index + 4) === 'CIA') {\\n primary += 'X'\\n secondary += 'X'\\n index += 3\\n\\n break\\n }\\n\\n // Double `C`, but not `McClellan`.\\n if (next === 'C' && !(index === 1 && characters[0] === 'M')) {\\n // Such as `Bellocchio`, but not `Bacchus`.\\n if (\\n (nextnext === 'I' || nextnext === 'E' || nextnext === 'H') &&\\n value.slice(index + 2, index + 4) !== 'HU'\\n ) {\\n subvalue = value.slice(index - 1, index + 4)\\n\\n // Such as `Accident`, `Accede`, `Succeed`.\\n if (\\n (index === 1 && prev === 'A') ||\\n subvalue === 'UCCEE' ||\\n subvalue === 'UCCES'\\n ) {\\n primary += 'KS'\\n secondary += 'KS'\\n // Such as `Bacci`, `Bertucci`, other Italian.\\n } else {\\n primary += 'X'\\n secondary += 'X'\\n }\\n\\n index += 3\\n\\n break\\n } else {\\n // Pierce's rule.\\n primary += 'K'\\n secondary += 'K'\\n index += 2\\n\\n break\\n }\\n }\\n\\n if (next === 'G' || next === 'K' || next === 'Q') {\\n primary += 'K'\\n secondary += 'K'\\n index += 2\\n\\n break\\n }\\n\\n // Italian.\\n if (\\n next === 'I' &&\\n // Bug: The original algorithm also calls for A (as in CIA), which is\\n // already taken care of above.\\n (nextnext === 'E' || nextnext === 'O')\\n ) {\\n primary += 'S'\\n secondary += 'X'\\n index += 2\\n\\n break\\n }\\n\\n if (next === 'I' || next === 'E' || next === 'Y') {\\n primary += 'S'\\n secondary += 'S'\\n index += 2\\n\\n break\\n }\\n\\n primary += 'K'\\n secondary += 'K'\\n\\n // Skip two extra characters ahead in `Mac Caffrey`, `Mac Gregor`.\\n if (\\n next === ' ' &&\\n (nextnext === 'C' || nextnext === 'G' || nextnext === 'Q')\\n ) {\\n index += 3\\n break\\n }\\n\\n // Bug: Already covered above.\\n // if (\\n // next === 'K' ||\\n // next === 'Q' ||\\n // (next === 'C' && nextnext !== 'E' && nextnext !== 'I')\\n // ) {\\n // index++;\\n // }\\n\\n index++\\n\\n break\\n case 'D':\\n if (next === 'G') {\\n // Such as `edge`.\\n if (nextnext === 'E' || nextnext === 'I' || nextnext === 'Y') {\\n primary += 'J'\\n secondary += 'J'\\n index += 3\\n // Such as `Edgar`.\\n } else {\\n primary += 'TK'\\n secondary += 'TK'\\n index += 2\\n }\\n\\n break\\n }\\n\\n if (next === 'T' || next === 'D') {\\n primary += 'T'\\n secondary += 'T'\\n index += 2\\n\\n break\\n }\\n\\n primary += 'T'\\n secondary += 'T'\\n index++\\n\\n break\\n case 'F':\\n if (next === 'F') {\\n index++\\n }\\n\\n index++\\n primary += 'F'\\n secondary += 'F'\\n\\n break\\n case 'G':\\n if (next === 'H') {\\n if (index > 0 && !vowels.test(prev)) {\\n primary += 'K'\\n secondary += 'K'\\n index += 2\\n\\n break\\n }\\n\\n // Such as `Ghislane`, `Ghiradelli`.\\n if (index === 0) {\\n if (nextnext === 'I') {\\n primary += 'J'\\n secondary += 'J'\\n } else {\\n primary += 'K'\\n secondary += 'K'\\n }\\n\\n index += 2\\n\\n break\\n }\\n\\n // Parker's rule (with some further refinements).\\n if (\\n // Such as `Hugh`. The comma is not a bug.\\n ((subvalue = characters[index - 2]),\\n subvalue === 'B' || subvalue === 'H' || subvalue === 'D') ||\\n // Such as `bough`. The comma is not a bug.\\n ((subvalue = characters[index - 3]),\\n subvalue === 'B' || subvalue === 'H' || subvalue === 'D') ||\\n // Such as `Broughton`. The comma is not a bug.\\n ((subvalue = characters[index - 4]),\\n subvalue === 'B' || subvalue === 'H')\\n ) {\\n index += 2\\n\\n break\\n }\\n\\n // Such as `laugh`, `McLaughlin`, `cough`, `gough`, `rough`, `tough`.\\n if (index > 2 && prev === 'U' && gForF.test(characters[index - 3])) {\\n primary += 'F'\\n secondary += 'F'\\n } else if (index > 0 && prev !== 'I') {\\n primary += 'K'\\n secondary += 'K'\\n }\\n\\n index += 2\\n\\n break\\n }\\n\\n if (next === 'N') {\\n if (index === 1 && vowels.test(characters[0]) && !isSlavoGermanic) {\\n primary += 'KN'\\n secondary += 'N'\\n // Not like `Cagney`.\\n } else if (\\n value.slice(index + 2, index + 4) !== 'EY' &&\\n value.slice(index + 1) !== 'Y' &&\\n !isSlavoGermanic\\n ) {\\n primary += 'N'\\n secondary += 'KN'\\n } else {\\n primary += 'KN'\\n secondary += 'KN'\\n }\\n\\n index += 2\\n\\n break\\n }\\n\\n // Such as `Tagliaro`.\\n if (value.slice(index + 1, index + 3) === 'LI' && !isSlavoGermanic) {\\n primary += 'KL'\\n secondary += 'L'\\n index += 2\\n\\n break\\n }\\n\\n // -ges-, -gep-, -gel- at beginning.\\n if (index === 0 && initialGForKj.test(value.slice(1, 3))) {\\n primary += 'K'\\n secondary += 'J'\\n index += 2\\n\\n break\\n }\\n\\n // -ger-, -gy-.\\n if (\\n (value.slice(index + 1, index + 3) === 'ER' &&\\n prev !== 'I' &&\\n prev !== 'E' &&\\n !initialAngerException.test(value.slice(0, 6))) ||\\n (next === 'Y' && !gForKj.test(prev))\\n ) {\\n primary += 'K'\\n secondary += 'J'\\n index += 2\\n\\n break\\n }\\n\\n // Italian such as `biaggi`.\\n if (\\n next === 'E' ||\\n next === 'I' ||\\n next === 'Y' ||\\n ((prev === 'A' || prev === 'O') && next === 'G' && nextnext === 'I')\\n ) {\\n // Obvious Germanic.\\n if (value.slice(index + 1, index + 3) === 'ET' || isGermanic) {\\n primary += 'K'\\n secondary += 'K'\\n } else {\\n primary += 'J'\\n\\n // Always soft if French ending.\\n if (value.slice(index + 1, index + 5) === 'IER ') {\\n secondary += 'J'\\n } else {\\n secondary += 'K'\\n }\\n }\\n\\n index += 2\\n\\n break\\n }\\n\\n if (next === 'G') {\\n index++\\n }\\n\\n index++\\n\\n primary += 'K'\\n secondary += 'K'\\n\\n break\\n case 'H':\\n // Only keep if first & before vowel or btw. 2 vowels.\\n if (vowels.test(next) && (index === 0 || vowels.test(prev))) {\\n primary += 'H'\\n secondary += 'H'\\n\\n index++\\n }\\n\\n index++\\n\\n break\\n case 'J':\\n // Obvious Spanish, `jose`, `San Jacinto`.\\n if (\\n value.slice(index, index + 4) === 'JOSE' ||\\n value.slice(0, 4) === 'SAN '\\n ) {\\n if (\\n value.slice(0, 4) === 'SAN ' ||\\n (index === 0 && characters[index + 4] === ' ')\\n ) {\\n primary += 'H'\\n secondary += 'H'\\n } else {\\n primary += 'J'\\n secondary += 'H'\\n }\\n\\n index++\\n\\n break\\n }\\n\\n if (\\n index === 0\\n // Bug: unreachable (see previous statement).\\n // && value.slice(index, index + 4) !== 'JOSE'.\\n ) {\\n primary += 'J'\\n\\n // Such as `Yankelovich` or `Jankelowicz`.\\n secondary += 'A'\\n // Spanish pron. of such as `bajador`.\\n } else if (\\n !isSlavoGermanic &&\\n (next === 'A' || next === 'O') &&\\n vowels.test(prev)\\n ) {\\n primary += 'J'\\n secondary += 'H'\\n } else if (index === last) {\\n primary += 'J'\\n } else if (\\n prev !== 'S' &&\\n prev !== 'K' &&\\n prev !== 'L' &&\\n !jForJException.test(next)\\n ) {\\n primary += 'J'\\n secondary += 'J'\\n // It could happen.\\n } else if (next === 'J') {\\n index++\\n }\\n\\n index++\\n\\n break\\n case 'K':\\n if (next === 'K') {\\n index++\\n }\\n\\n primary += 'K'\\n secondary += 'K'\\n index++\\n\\n break\\n case 'L':\\n if (next === 'L') {\\n // Spanish such as `cabrillo`, `gallegos`.\\n if (\\n (index === length - 3 &&\\n ((prev === 'A' && nextnext === 'E') ||\\n (prev === 'I' && (nextnext === 'O' || nextnext === 'A')))) ||\\n (prev === 'A' &&\\n nextnext === 'E' &&\\n (characters[last] === 'A' ||\\n characters[last] === 'O' ||\\n alle.test(value.slice(last - 1, length))))\\n ) {\\n primary += 'L'\\n index += 2\\n\\n break\\n }\\n\\n index++\\n }\\n\\n primary += 'L'\\n secondary += 'L'\\n index++\\n\\n break\\n case 'M':\\n if (\\n next === 'M' ||\\n // Such as `dumb`, `thumb`.\\n (prev === 'U' &&\\n next === 'B' &&\\n (index + 1 === last || value.slice(index + 2, index + 4) === 'ER'))\\n ) {\\n index++\\n }\\n\\n index++\\n primary += 'M'\\n secondary += 'M'\\n\\n break\\n case 'N':\\n if (next === 'N') {\\n index++\\n }\\n\\n index++\\n primary += 'N'\\n secondary += 'N'\\n\\n break\\n case 'Ñ':\\n index++\\n primary += 'N'\\n secondary += 'N'\\n\\n break\\n case 'P':\\n if (next === 'H') {\\n primary += 'F'\\n secondary += 'F'\\n index += 2\\n\\n break\\n }\\n\\n // Also account for `campbell` and `raspberry`.\\n subvalue = next\\n\\n if (subvalue === 'P' || subvalue === 'B') {\\n index++\\n }\\n\\n index++\\n\\n primary += 'P'\\n secondary += 'P'\\n\\n break\\n case 'Q':\\n if (next === 'Q') {\\n index++\\n }\\n\\n index++\\n primary += 'K'\\n secondary += 'K'\\n\\n break\\n case 'R':\\n // French such as `Rogier`, but exclude `Hochmeier`.\\n if (\\n index === last &&\\n !isSlavoGermanic &&\\n prev === 'E' &&\\n characters[index - 2] === 'I' &&\\n characters[index - 4] !== 'M' &&\\n (characters[index - 3] !== 'E' && characters[index - 3] !== 'A')\\n ) {\\n secondary += 'R'\\n } else {\\n primary += 'R'\\n secondary += 'R'\\n }\\n\\n if (next === 'R') {\\n index++\\n }\\n\\n index++\\n\\n break\\n case 'S':\\n // Special cases `island`, `isle`, `carlisle`, `carlysle`.\\n if (next === 'L' && (prev === 'I' || prev === 'Y')) {\\n index++\\n\\n break\\n }\\n\\n // Special case `sugar-`.\\n if (index === 0 && value.slice(1, 5) === 'UGAR') {\\n primary += 'X'\\n secondary += 'S'\\n index++\\n\\n break\\n }\\n\\n if (next === 'H') {\\n // Germanic.\\n if (hForS.test(value.slice(index + 1, index + 5))) {\\n primary += 'S'\\n secondary += 'S'\\n } else {\\n primary += 'X'\\n secondary += 'X'\\n }\\n\\n index += 2\\n break\\n }\\n\\n if (\\n next === 'I' &&\\n (nextnext === 'O' || nextnext === 'A')\\n // Bug: Already covered by previous branch\\n // || value.slice(index, index + 4) === 'SIAN'\\n ) {\\n if (isSlavoGermanic) {\\n primary += 'S'\\n secondary += 'S'\\n } else {\\n primary += 'S'\\n secondary += 'X'\\n }\\n\\n index += 3\\n\\n break\\n }\\n\\n // German & Anglicization's, such as `Smith` match `Schmidt`, `snider`\\n // match `Schneider`. Also, -sz- in slavic language although in\\n // hungarian it is pronounced `s`.\\n if (\\n next === 'Z' ||\\n (index === 0 &&\\n (next === 'L' || next === 'M' || next === 'N' || next === 'W'))\\n ) {\\n primary += 'S'\\n secondary += 'X'\\n\\n if (next === 'Z') {\\n index++\\n }\\n\\n index++\\n\\n break\\n }\\n\\n if (next === 'C') {\\n // Schlesinger's rule.\\n if (nextnext === 'H') {\\n subvalue = value.slice(index + 3, index + 5)\\n\\n // Dutch origin, such as `school`, `schooner`.\\n if (dutchSch.test(subvalue)) {\\n // Such as `schermerhorn`, `schenker`.\\n if (subvalue === 'ER' || subvalue === 'EN') {\\n primary += 'X'\\n secondary += 'SK'\\n } else {\\n primary += 'SK'\\n secondary += 'SK'\\n }\\n\\n index += 3\\n\\n break\\n }\\n\\n if (\\n index === 0 &&\\n !vowels.test(characters[3]) &&\\n characters[3] !== 'W'\\n ) {\\n primary += 'X'\\n secondary += 'S'\\n } else {\\n primary += 'X'\\n secondary += 'X'\\n }\\n\\n index += 3\\n\\n break\\n }\\n\\n if (nextnext === 'I' || nextnext === 'E' || nextnext === 'Y') {\\n primary += 'S'\\n secondary += 'S'\\n index += 3\\n break\\n }\\n\\n primary += 'SK'\\n secondary += 'SK'\\n index += 3\\n\\n break\\n }\\n\\n subvalue = value.slice(index - 2, index)\\n\\n // French such as `resnais`, `artois`.\\n if (index === last && (subvalue === 'AI' || subvalue === 'OI')) {\\n secondary += 'S'\\n } else {\\n primary += 'S'\\n secondary += 'S'\\n }\\n\\n if (\\n next === 'S'\\n // Bug: already taken care of by `German & Anglicization's` above:\\n // || next === 'Z'\\n ) {\\n index++\\n }\\n\\n index++\\n\\n break\\n case 'T':\\n if (next === 'I' && nextnext === 'O' && characters[index + 3] === 'N') {\\n primary += 'X'\\n secondary += 'X'\\n index += 3\\n\\n break\\n }\\n\\n subvalue = value.slice(index + 1, index + 3)\\n\\n if (\\n (next === 'I' && nextnext === 'A') ||\\n (next === 'C' && nextnext === 'H')\\n ) {\\n primary += 'X'\\n secondary += 'X'\\n index += 3\\n\\n break\\n }\\n\\n if (next === 'H' || (next === 'T' && nextnext === 'H')) {\\n // Special case `Thomas`, `Thames` or Germanic.\\n if (\\n isGermanic ||\\n ((nextnext === 'O' || nextnext === 'A') &&\\n characters[index + 3] === 'M')\\n ) {\\n primary += 'T'\\n secondary += 'T'\\n } else {\\n primary += '0'\\n secondary += 'T'\\n }\\n\\n index += 2\\n\\n break\\n }\\n\\n if (next === 'T' || next === 'D') {\\n index++\\n }\\n\\n index++\\n primary += 'T'\\n secondary += 'T'\\n\\n break\\n case 'V':\\n if (next === 'V') {\\n index++\\n }\\n\\n primary += 'F'\\n secondary += 'F'\\n index++\\n\\n break\\n case 'W':\\n // Can also be in middle of word (as already taken care of for initial).\\n if (next === 'R') {\\n primary += 'R'\\n secondary += 'R'\\n index += 2\\n\\n break\\n }\\n\\n if (index === 0) {\\n // `Wasserman` should match `Vasserman`.\\n if (vowels.test(next)) {\\n primary += 'A'\\n secondary += 'F'\\n } else if (next === 'H') {\\n // Need `Uomo` to match `Womo`.\\n primary += 'A'\\n secondary += 'A'\\n }\\n }\\n\\n // `Arnow` should match `Arnoff`.\\n if (\\n ((prev === 'E' || prev === 'O') &&\\n next === 'S' &&\\n nextnext === 'K' &&\\n (characters[index + 3] === 'I' || characters[index + 3] === 'Y')) ||\\n // Maybe a bug? Shouldn't this be general Germanic?\\n value.slice(0, 3) === 'SCH' ||\\n (index === last && vowels.test(prev))\\n ) {\\n secondary += 'F'\\n index++\\n\\n break\\n }\\n\\n // Polish such as `Filipowicz`.\\n if (\\n next === 'I' &&\\n (nextnext === 'C' || nextnext === 'T') &&\\n characters[index + 3] === 'Z'\\n ) {\\n primary += 'TS'\\n secondary += 'FX'\\n index += 4\\n\\n break\\n }\\n\\n index++\\n\\n break\\n case 'X':\\n // French such as `breaux`.\\n if (\\n !(\\n index === last &&\\n // Bug: IAU and EAU also match by AU\\n // (/IAU|EAU/.test(value.slice(index - 3, index))) ||\\n (prev === 'U' &&\\n (characters[index - 2] === 'A' || characters[index - 2] === 'O'))\\n )\\n ) {\\n primary += 'KS'\\n secondary += 'KS'\\n }\\n\\n if (next === 'C' || next === 'X') {\\n index++\\n }\\n\\n index++\\n\\n break\\n case 'Z':\\n // Chinese pinyin such as `Zhao`.\\n if (next === 'H') {\\n primary += 'J'\\n secondary += 'J'\\n index += 2\\n\\n break\\n } else if (\\n (next === 'Z' &&\\n (nextnext === 'A' || nextnext === 'I' || nextnext === 'O')) ||\\n (isSlavoGermanic && index > 0 && prev !== 'T')\\n ) {\\n primary += 'S'\\n secondary += 'TS'\\n } else {\\n primary += 'S'\\n secondary += 'S'\\n }\\n\\n if (next === 'Z') {\\n index++\\n }\\n\\n index++\\n\\n break\\n default:\\n index++\\n }\\n }\\n\\n return [primary, secondary]\\n}\",\n \"function showPhrase(link, path, trans, lang, explan) {\\r\\n}\",\n \"function translationLabels(){\\n /** This help array shows the hints for this experiment */\\n\\t\\t\\t\\thelpArray=[_(\\\"help1\\\"),_(\\\"help2\\\"),_(\\\"help3\\\"),_(\\\"help4\\\"),_(\\\"help5\\\"),_(\\\"Next\\\"),_(\\\"Close\\\")];\\n scope.heading=_(\\\"Millikan's Oil Drop Experiment\\\");\\n\\t\\t\\t\\tscope.variables=_(\\\"Variables\\\"); \\n\\t\\t\\t\\tscope.result=_(\\\"Result\\\"); \\n\\t\\t\\t\\tscope.copyright=_(\\\"copyright\\\");\\n buttonTxt = [_(\\\"Start\\\"),_(\\\"Reset\\\"),_(\\\"Voltage On\\\"),_(\\\"Voltage Off\\\"), _(\\\"X Ray On\\\"), _(\\\"X Ray Off\\\")];\\n scope.start_txt = buttonTxt[0];\\n scope.oil_type_txt = _(\\\"Choose Oil Type\\\");\\n scope.voltageOnOff_txt = buttonTxt[2];\\n scope.adjustVoltage_txt = _(\\\"Adjust Voltage(KV): \\\");\\n scope.xRay_txt = buttonTxt[4];\\n scope.reset_txt = buttonTxt[1];\\n scope.voltApplied_txt = _(\\\"Voltage Applied (v)\\\");\\n\\t\\t\\t\\tscope.oilDensity_txt = _(\\\"Oil Density (kg/m\\\");\\n scope.oil_type = [{\\n oil:_(\\\"Olive Oil\\\"),\\n index:0\\n },{\\n oil:_(\\\"Glycerin\\\"),\\n index:1\\n }];\\n scope.$apply();\\t\\t\\t\\t\\n\\t\\t\\t}\",\n \"function createSimplifiedWordLabel(item) {\\n return '' +\\n item.originalValue + \\n '';\\n }\",\n \"function ae(a){return a&&a.rd?a.uc():a}\",\n \"function Assign_Lex_Other() {\\r\\n}\",\n \"function LanguageUnderstandingModel() {\\n }\",\n \"static uposTags() {\\n // return [ \\\"ADJ\\\", \\\"ADP\\\", \\\"ADV\\\", \\\"AUX\\\", \\\"CONJ\\\", \\\"DET\\\", \\\"INTJ\\\", \\\"NOUN\\\", \\\"NUM\\\", \\\"PART\\\", \\\"PRON\\\", \\\"PROPN\\\", \\\"PUNCT\\\", \\\"SCONJ\\\", \\\"SYM\\\", \\\"VERB\\\", \\\"X\\\" ]\\n return [\\n {\\n \\\"value\\\": \\\"ADJ\\\",\\n \\\"label\\\": \\\"Adjective\\\"\\n },\\n {\\n \\\"value\\\": \\\"ADP\\\",\\n \\\"label\\\": \\\"Adposition\\\"\\n },\\n {\\n \\\"value\\\": \\\"ADV\\\",\\n \\\"label\\\": \\\"Adverb\\\"\\n },\\n {\\n \\\"value\\\": \\\"AUX\\\",\\n \\\"label\\\": \\\"Auxiliary Verb\\\"\\n },\\n {\\n \\\"value\\\": \\\"CCONJ\\\",\\n \\\"label\\\": \\\"Coordinating Conjunction\\\"\\n },\\n {\\n \\\"value\\\": \\\"DET\\\",\\n \\\"label\\\": \\\"Determiner\\\"\\n },\\n {\\n \\\"value\\\": \\\"INTJ\\\",\\n \\\"label\\\": \\\"Interjection\\\"\\n },\\n {\\n \\\"value\\\": \\\"NOUN\\\",\\n \\\"label\\\": \\\"Noun\\\"\\n },\\n {\\n \\\"value\\\": \\\"NUM\\\",\\n \\\"label\\\": \\\"Numeral\\\"\\n },\\n {\\n \\\"value\\\": \\\"PART\\\",\\n \\\"label\\\": \\\"Particle\\\"\\n },\\n {\\n \\\"value\\\": \\\"PRON\\\",\\n \\\"label\\\": \\\"Pronoun\\\"\\n },\\n {\\n \\\"value\\\": \\\"PROPN\\\",\\n \\\"label\\\": \\\"Proper Noun\\\"\\n },\\n {\\n \\\"value\\\": \\\"PUNCT\\\",\\n \\\"label\\\": \\\"Punctuation\\\"\\n },\\n {\\n \\\"value\\\": \\\"SCONJ\\\",\\n \\\"label\\\": \\\"Subordinating Conjunction\\\"\\n },\\n {\\n \\\"value\\\": \\\"SYM\\\",\\n \\\"label\\\": \\\"Symbol\\\"\\n },\\n {\\n \\\"value\\\": \\\"VERB\\\",\\n \\\"label\\\": \\\"Verb\\\"\\n },\\n {\\n \\\"value\\\": \\\"X\\\",\\n \\\"label\\\": \\\"Other\\\"\\n }\\n ]\\n }\",\n \"function q(a){var c=g(a);if(c.id){\\n// get the related l10n object\\nvar d=n(c.id,c.args);if(!d)return void console.warn(\\\"#\\\"+c.id+\\\" is undefined.\\\");\\n// translate element (TODO: security checks?)\\nif(d[v]){// XXX\\nif(0===r(a))a[v]=d[v];else{for(var e=a.childNodes,f=!1,h=0,i=e.length;i>h;h++)3===e[h].nodeType&&/\\\\S/.test(e[h].nodeValue)&&(f?e[h].nodeValue=\\\"\\\":(e[h].nodeValue=d[v],f=!0));\\n// if no (non-empty) textNode is found, insert a textNode before the\\n// first element child.\\nif(!f){var j=b.createTextNode(d[v]);a.insertBefore(j,a.firstChild)}}delete d[v]}for(var k in d)a[k]=d[k]}}\",\n \"function translationLabels() {\\n\\t\\t\\t\\t\\t/** This help array shows the hints for this experiment */\\n\\t\\t\\t\\t\\thelp_array = [_(\\\"help1\\\"), _(\\\"help2\\\"), _(\\\"help3\\\"), _(\\\"help4\\\"),_(\\\"Next\\\"), _(\\\"Close\\\")];\\n\\t\\t\\t\\t\\tscope.heading = _(\\\"heading\\\");\\n\\t\\t\\t\\t\\tscope.Variables = _(\\\"Variables\\\");\\n\\t\\t\\t\\t\\tscope.BaseValue=_(\\\"basevalue\\\");\\n\\t\\t\\t\\t\\tscope.Doublebond=_(\\\"Doublebond\\\");\\n\\t\\t\\t\\t\\tscope.Exocyclicdouble=_(\\\"Exocyclicdouble\\\");\\n\\t\\t\\t\\t\\tscope.Polargroups=_(\\\"Polargroups\\\");\\n\\t\\t\\t\\t\\tscope.AlkylSubstituent=_(\\\"AlkylSubstituent\\\");\\n\\t\\t\\t\\t\\tscope.ringResidue=_(\\\"ringResidue\\\");\\n\\t\\t\\t\\t\\tscope.Controls=_(\\\"Controls\\\");\\n\\t\\t\\t\\t\\tscope.lamdaMax=_(\\\"lamdaMax\\\");\\n\\t\\t\\t\\t\\tscope.Correct=_(\\\"Correct\\\");\\n\\t\\t\\t\\t\\tscope.Submit=_(\\\"Submit\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Aromatic=_(\\\"Aromatic\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Ketone=_(\\\"Ketone\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Conjugate=_(\\\"Conjugate\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.AlkylSubstituentKeto=_(\\\"AlkylSubstituentKeto\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Polargroupsposition=_(\\\"Polargroupsposition\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Homodienecompound=_(\\\"Homodienecompound\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Ortho=_(\\\"Ortho\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Para=_(\\\"Para\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.Meta=_(\\\"Meta\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.lambdamax=_(\\\"lambdamax\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.lambdamax=_(\\\"lambdamax\\\"); \\t\\t\\t\\t\\n\\t\\t\\t\\t\\tscope.result = _(\\\"Result\\\");\\n\\t\\t\\t\\t\\tscope.copyright = _(\\\"copyright\\\");\\n\\t\\t\\t\\t\\twoodward_fieser_stage.update();\\n\\t\\t\\t\\t}\",\n \"function getLabelDescriptions () {\\n return {\\n 'Walk' : {\\n 'id' : 'Walk',\\n 'text' : 'Walk'\\n },\\n 'StopSign' : {\\n 'id' : 'StopSign',\\n 'text' : 'Bus Stop Sign'\\n },\\n 'StopSign_OneLeg' : {\\n 'id' : 'StopSign_OneLeg',\\n 'text' : 'One-leg Stop Sign'\\n },\\n 'StopSign_TwoLegs' : {\\n 'id' : 'StopSign_TwoLegs',\\n 'text' : 'Two-leg Stop Sign'\\n },\\n 'StopSign_Column' : {\\n 'id' : 'StopSign_Column',\\n 'text' : 'Column Stop Sign'\\n },\\n 'StopSign_None' : {\\n 'id' : 'StopSign_None',\\n 'text' : 'Not provided'\\n },\\n 'Landmark_Shelter' : {\\n 'id' : 'Landmark_Shelter',\\n 'text' : 'Bus Stop Shelter'\\n },\\n 'Landmark_Bench' : {\\n 'id' : 'Landmark_Bench',\\n 'text' : 'Bench'\\n },\\n 'Landmark_TrashCan' : {\\n 'id' : 'Landmark_TrashCan',\\n 'text' : 'Trash Can / Recycle Can'\\n },\\n 'Landmark_MailboxAndNewsPaperBox' : {\\n 'id' : 'Landmark_MailboxAndNewsPaperBox',\\n 'text' : 'Mailbox / News Paper Box'\\n },\\n 'Landmark_OtherPole' : {\\n 'id' : 'Landmark_OtherPole',\\n 'text' : 'Traffic Sign / Pole'\\n }\\n }\\n}\",\n \"function translateSimilarity(similarity) {\\n if (similarity >= 80) {\\n return '매우 가까운 편';\\n } else if (similarity >= 60) {\\n return '가까운 편';\\n } else if (similarity >= 40) {\\n return '가깝지도 멀지도 않은 편';\\n } else if (similarity >= 20) {\\n return '먼 편';\\n } else {\\n return '매우 먼 편';\\n }\\n}\",\n \"function replaceLanguageLabels() {\\n const languageLabels = $('ul[class=\\\"objects\\\"]').find('label:contains(\\\" [\\\")');\\n if (languageLabels.length) {\\n // if state is undefined, set the language labels in state\\n if (typeof state.languageLabels === 'undefined') {\\n state.languageLabels = languageLabels;\\n } else {\\n for (let label in languageLabels) {\\n state.languageLabels.push(languageLabels[label]);\\n }\\n }\\n // replace brackets with hidden span tags\\n languageLabels.each(function() {\\n this.innerHTML = this.innerHTML.replace(\\n '[',\\n \\\" \\\",\\n );\\n this.innerHTML = this.innerHTML.replace(']', '');\\n });\\n }\\n }\",\n \"function applyCurrentSyllable(){\\n currentSyllableIndex = document.getElementById(\\\"syllable\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n}\",\n \"function halo() {\\n return '\\\"Halo Sanbers!\\\"';\\n}\",\n \"function convertAndDisplay(str) {\\n\\n\\t\\tvar phon = document.getElementById(\\\"phonetic\\\");\\n\\t\\tphon.innerHTML = '';\\n\\n\\t\\tvar curr = undefined; /* holds current key */\\n\\t\\tvar next = undefined; /* holds the next key (look-ahead) */\\n\\n\\t\\tvar chars = str.toLowerCase().split('');\\n\\t\\tvar charsorig = str.split(''); /* keep non-lowercased string around */\\n\\t\\tvar cursor = 0;\\n\\n\\t\\twhile (cursor !== chars.length) {\\n\\n\\t\\t\\tvar curr = munch(root, chars.slice(cursor), 0);\\n\\n\\t\\t\\tvar nextcursor = cursor + curr.until;\\n\\n\\t\\t\\tif (!curr.ipa) { /* partial or no match */\\n\\t\\t\\t\\tif (curr.until !== 0) { /* partial match */\\n\\t\\t\\t\\t\\tvar content = charsorig.slice(cursor, nextcursor).join('');\\n\\t\\t\\t\\t\\tcreatePinyinElement(phon, 'incomplete', content);\\n\\t\\t\\t\\t} else { /* no match, unknown character */\\n\\t\\t\\t\\t\\tvar content = charsorig[cursor];\\n\\t\\t\\t\\t\\tcreatePinyinElement(phon, 'ignore', content);\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else { /* match */\\n\\n\\t\\t\\t\\t/* last syllable */\\n\\t\\t\\t\\tif (chars[nextcursor] === undefined) {\\n\\t\\t\\t\\t\\tcreatePinyinElement(phon, 'pinyin', curr.ipa);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t/* more to come, deal with combinatory effects */\\n\\t\\t\\t\\telse {\\n\\n\\t\\t\\t\\t\\t/* munch next sequence */\\n\\t\\t\\t\\t\\tvar next = munch(root, chars.slice(nextcursor), 0);\\n\\n\\t\\t\\t\\t\\t/* For syllables ending in \\\"n\\\" or \\\"g\\\", the correct\\n\\t\\t\\t\\t\\t * segmentation depends on the following syllable:\\n\\t\\t\\t\\t\\t * - \\\"xining\\\" -> xi-ning, not xin-*ing\\n\\t\\t\\t\\t\\t * - \\\"danao\\\" -> da-nao, not dan-ao (Pinyin \\\"dan'ao\\\") */\\n\\t\\t\\t\\t\\t// TODO optimization: process two syllables in one go?\\n\\n\\t\\t\\t\\t\\tif (chars[nextcursor-1].match(/[ng]/i)) {\\n\\t\\t\\t\\t\\t\\tvar altcurr = { until: curr.until-1, ipa: find(root, chars.slice(cursor, nextcursor-1), 0) };\\n\\t\\t\\t\\t\\t\\tvar altnext = munch(root, chars.slice(nextcursor-1), 0);\\n\\t\\t\\t\\t\\t\\tif (altcurr.ipa && altnext.ipa && altnext.until > next.until) {\\n\\t\\t\\t\\t\\t\\t\\tcurr = altcurr; /* use the shorter alternative */\\n\\t\\t\\t\\t\\t\\t\\tnext = altnext;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tvar content = curr.ipa;\\n\\n\\t\\t\\t\\t\\t/* Treat isolated -r as erhua-r */\\n\\t\\t\\t\\t\\tif (next.until === 1 && chars[nextcursor] === 'r') {\\n\\t\\t\\t\\t\\t\\tcontent += \\\"ɻ\\\";\\n\\t\\t\\t\\t\\t\\tcontent = content.replace(/[nŋ]ɻ$/i, \\\"\\\\u0303ɻ\\\");\\n\\t\\t\\t\\t\\t\\tcurr.until++;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t/* Tone mark */\\n\\t\\t\\t\\t\\tvar nextchar = chars[cursor+curr.until];\\n\\t\\t\\t\\t\\tif (nextchar && nextchar.match(/[1-4]/)) {\\n\\t\\t\\t\\t\\t\\tcontent += tones[parseInt(nextchar)];\\n\\t\\t\\t\\t\\t\\tcurr.until++;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\tcreatePinyinElement(phon, 'pinyin', content);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\tcursor += curr.until || 1;\\n\\t\\t}\\n\\n\\t}\",\n \"function languagePair ( from, to ) {\\n return '' + from + '|' + to;\\n}\",\n \"function idiomaingles() {\\n alert('Nivel Alto. Título Superior de la Escuela Oficial de Idiomas');\\n }\",\n \"function localize(e,t){return t?e.replace(/(\\\"|')~\\\\//g,\\\"$1\\\"+options.root):e.replace(/^~\\\\//,options.root)}\",\n \"function toChangeSyllableData(){\\n if(syllables.length > 0){\\n currentType = syllables[0].type;\\n currentColor = syllables[0].color;\\n }\\n pushedNeumeVariations = false;\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n}\",\n \"function translationLabels(){\\n /** This help array shows the hints for this experiment */\\n helpArray=[_(\\\"Next\\\"),_(\\\"Close\\\"),_(\\\"help1\\\"),_(\\\"help2\\\"),_(\\\"help3\\\"),_(\\\"help4\\\"),_(\\\"help5\\\")];\\n scope.heading=_(\\\"Moment of Inertia of Flywheel\\\");\\n scope.variables=_(\\\"Variables\\\"); \\n scope.result=_(\\\"Result\\\"); \\n scope.copyright=_(\\\"copyright\\\"); \\n scope.choose_enviornment = _(\\\"Choose Environment:\\\");\\n cm = _(\\\" cm\\\");\\n scope.kg = _(\\\"kg\\\");\\n scope.cm = cm;\\n scope.gm = _(\\\"gm\\\");\\n scope.earth = _(\\\"Earth, g=9.8m/s\\\");\\n scope.mass_of_fly_wheel_lbl = _(\\\"Mass of fly wheel:\\\");\\n scope.dia_of_fly_wheel_lbl = _(\\\"Diameter of fly wheel:\\\");\\n scope.mass_of_rings_lbl = _(\\\"Mass of rings:\\\");\\n scope.axle_diameter_lbl = _(\\\"Diameter of axle:\\\");\\n scope.no_of_wound_lbl = _(\\\"No. of wound of chord:\\\");\\n scope.mInertia_lbl = _(\\\"First start experiment..!\\\");\\n scope.mInertia_val = \\\"\\\";\\n btn_lbls = [_(\\\"Release fly wheel\\\"),_(\\\"Hold fly wheel\\\")];\\n scope.release_hold_txt = btn_lbls[0];\\n scope.reset = _(\\\"Reset\\\");\\n scope.enviornment_array = [{\\n enviornment: _('Earth, g=9.8m/s'),\\n type: 9.8\\n }, {\\n enviornment: _('Moon, g=1.63m/s'),\\n type: 1.63\\n }, {\\n enviornment: _('Uranus, g=10.5m/s'),\\n type: 10.5\\n }, {\\n enviornment: _('Saturn, g=11.08m/s'),\\n type: 11.08\\n }, {\\n enviornment: _('Jupiter, g=25.95m/s'),\\n type: 25.95\\n }];\\n scope.$apply(); \\n }\",\n \"function newAnchorLabel() {\\n count = ++that.anchor_count;\\n anchor_label = strval((count + 1)); //generating footnote number starting at 1 instead of 0\\n /* yil original letter generating label code\\n anchor_label = '';\\n do {\\n anchor_label = chr(ord('a') + (count % 26)) + anchor_label;\\n count = (int) floor(count / 26);\\n } while (count > 0);*/\\n return anchor_label;\\n }\",\n \"function getLabelDescriptions () {\\n return {\\n 'Walk' : {\\n 'id' : 'Walk',\\n 'text' : 'Walk'\\n },\\n CurbRamp: {\\n id: 'CurbRamp',\\n text: 'Curb Ramp'\\n },\\n NoCurbRamp: {\\n id: 'NoCurbRamp',\\n text: 'Missing Curb Ramp'\\n },\\n Obstacle: {\\n id: 'Obstacle',\\n text: 'Obstacle in a Path'\\n },\\n Other: {\\n id: 'Other',\\n text: 'Other'\\n },\\n SurfaceProblem: {\\n id: 'SurfaceProblem',\\n text: 'Surface Problem'\\n },\\n Void: {\\n id: 'Void',\\n text: 'Void'\\n },\\n Unclear: {\\n id: 'Unclear',\\n text: 'Unclear'\\n },\\n 'StopSign' : {\\n 'id' : 'StopSign',\\n 'text' : 'Bus Stop Sign'\\n },\\n 'StopSign_OneLeg' : {\\n 'id' : 'StopSign_OneLeg',\\n 'text' : 'One-leg Stop Sign'\\n },\\n 'StopSign_TwoLegs' : {\\n 'id' : 'StopSign_TwoLegs',\\n 'text' : 'Two-leg Stop Sign'\\n },\\n 'StopSign_Column' : {\\n 'id' : 'StopSign_Column',\\n 'text' : 'Column Stop Sign'\\n },\\n 'StopSign_None' : {\\n 'id' : 'StopSign_None',\\n 'text' : 'Not provided'\\n },\\n 'Landmark_Shelter' : {\\n 'id' : 'Landmark_Shelter',\\n 'text' : 'Bus Stop Shelter'\\n },\\n 'Landmark_Bench' : {\\n 'id' : 'Landmark_Bench',\\n 'text' : 'Bench'\\n },\\n 'Landmark_TrashCan' : {\\n 'id' : 'Landmark_TrashCan',\\n 'text' : 'Trash Can / Recycle Can'\\n },\\n 'Landmark_MailboxAndNewsPaperBox' : {\\n 'id' : 'Landmark_MailboxAndNewsPaperBox',\\n 'text' : 'Mailbox / News Paper Box'\\n },\\n 'Landmark_OtherPole' : {\\n 'id' : 'Landmark_OtherPole',\\n 'text' : 'Traffic Sign / Pole'\\n }\\n }\\n}\",\n \"function PlcGeral(){\\r\\n}\",\n \"__getTypeLabel() {\\n return this.constructor.LabelSingular;\\n }\",\n \"function swapLanguage() {\\n\\tconst syntax = language.value || 'plain text'\\n\\tdecoration.highlighter.setSyntax(LANGUAGES.BANK[syntax].scopes)\\n\\tdecoration.innerHTML = relations.analyze(input, decoration)\\n}\",\n \"function defaultNames(){\\r\\n //CETE\\r\\n //return \\\"Par défaut\\\";\\r\\n return \\\"Par d\\\\u00e9faut\\\";\\r\\n //FIN CETE\\r\\n}\",\n \"changeLanguageStrings () {\\n\\t\\tthis.emojiInformationModalMarkup = \\tthis.emojiInformationModalMarkup.replace(\\\"REPLACE_modal_header_text\\\", this.labels.modal_header_text);\\n\\t\\tthis.emojiInformationModalMarkup = \\tthis.emojiInformationModalMarkup.replace(\\\"REPLACE_btn_ok_text\\\", this.labels.btn_ok_text);\\n\\t\\tthis.emojiInformationModalMarkup = \\tthis.emojiInformationModalMarkup.replace(\\\"REPLACE_btn_all_text\\\", this.labels.btn_all_text);\\n\\n\\t\\tthis.emojiserverTitlesMarkup = \\t\\tthis.emojiserverTitlesMarkup.replace(\\\"REPLACE_modal_titlesicon-label\\\", this.labels.modal_titlesicon_text);\\n\\t\\tthis.emojiserverTitlesMarkup = \\t\\tthis.emojiserverTitlesMarkup.replace(\\\"REPLACE_modal_titlesname_text\\\", this.labels.modal_titlesname_text);\\n\\t\\tthis.emojiserverTitlesMarkup = \\t\\tthis.emojiserverTitlesMarkup.replace(\\\"REPLACE_modal_titlestotal_text\\\", this.labels.modal_titlestotal_text);\\n\\t\\tthis.emojiserverTitlesMarkup = \\t\\tthis.emojiserverTitlesMarkup.replace(\\\"REPLACE_modal_titlesglobal_text\\\", this.labels.modal_titlesglobal_text);\\n\\t\\tthis.emojiserverTitlesMarkup = \\t\\tthis.emojiserverTitlesMarkup.replace(\\\"REPLACE_modal_titleslocal_text\\\", this.labels.modal_titleslocal_text);\\n\\t\\tthis.emojiserverTitlesMarkup = \\t\\tthis.emojiserverTitlesMarkup.replace(\\\"REPLACE_modal_titlescopies_text\\\", this.labels.modal_titlescopies_text);\\n\\t}\",\n \"function label(node) {\\n var type = node.referenceType;\\n var value = type === 'full' ? node.identifier : '';\\n\\n return type === 'shortcut' ? value : '[' + value + ']';\\n}\",\n \"function translatePlantLatin(message) {\\n message = message.toLowerCase();\\n let newMessage = Array.from(message)\\n .reduce((acc, val) => {\\n return acc + val + ({\\n a: 'tiva',\\n e: 'llia',\\n i: 'mus',\\n o: 'phylum',\\n u: 'rea',\\n }[val] || '')\\n }, '')\\n return newMessage;\\n}\",\n \"function sb_(text) {\\n if (SB_TRANSLATIONS != false && text in SB_TRANSLATIONS) {\\n return SB_TRANSLATIONS[text];\\n } else {\\n return text;\\n }\\n }\",\n \"function buildAstral(slug, isNegated) {\\n var item = unicode[slug];\\n var combined = '';\\n\\n if (item.bmp && !item.isBmpLast) {\\n combined = '[' + item.bmp + ']' + (item.astral ? '|' : '');\\n }\\n if (item.astral) {\\n combined += item.astral;\\n }\\n if (item.isBmpLast && item.bmp) {\\n combined += (item.astral ? '|' : '') + '[' + item.bmp + ']';\\n }\\n\\n // Astral Unicode tokens always match a code point, never a code unit\\n return isNegated ? '(?:(?!' + combined + ')(?:[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF]|[\\\\0-\\\\uFFFF]))' : '(?:' + combined + ')';\\n }\",\n \"getAccidental() {\\n const acc = this.Accidental;\\n switch (acc) {\\n case 'natural':\\n return 'n';\\n case 'flat':\\n return 'b';\\n case 'sharp':\\n return '#';\\n default:\\n return null;\\n }\\n }\",\n \"static get LABEL_NONE () {return 'none';}\",\n \"static definition() {\\n return 'A tree is a perennial plant with an elongated stem, or trunk, supporting branches and leaves.'\\n }\",\n \"function updateLangTagMappings(tag) {\\n assert(IsObject(tag), \\\"tag is an object\\\");\\n assert(!hasOwn(\\\"grandfathered\\\", tag), \\\"tag is not a grandfathered tag\\\");\\n\\n switch (tag.language) {\\n case \\\"hy\\\":\\n // hy-arevela -> hy\\n if (tag.variants.length >= 1 &&\\n callFunction(ArrayIndexOf, tag.variants, \\\"arevela\\\") > -1)\\n {\\n var newVariants = [];\\n for (var i = 0; i < tag.variants.length; i++) {\\n var variant = tag.variants[i];\\n if (variant === \\\"arevela\\\")\\n continue;\\n _DefineDataProperty(newVariants, newVariants.length, variant);\\n }\\n tag.variants = newVariants;\\n }\\n // hy-arevmda -> hyw\\n else if (tag.variants.length >= 1 &&\\n callFunction(ArrayIndexOf, tag.variants, \\\"arevmda\\\") > -1)\\n {\\n tag.language = \\\"hyw\\\";\\n var newVariants = [];\\n for (var i = 0; i < tag.variants.length; i++) {\\n var variant = tag.variants[i];\\n if (variant === \\\"arevmda\\\")\\n continue;\\n _DefineDataProperty(newVariants, newVariants.length, variant);\\n }\\n tag.variants = newVariants;\\n }\\n break;\\n case \\\"ja\\\":\\n // ja-Latn-hepburn-heploc -> ja-Latn-alalc97\\n if (tag.script === \\\"Latn\\\" &&\\n tag.variants.length >= 2 &&\\n callFunction(ArrayIndexOf, tag.variants, \\\"hepburn\\\") > -1 &&\\n callFunction(ArrayIndexOf, tag.variants, \\\"heploc\\\", callFunction(ArrayIndexOf, tag.variants, \\\"hepburn\\\") + 1) > -1)\\n {\\n var newVariants = [];\\n for (var i = 0; i < tag.variants.length; i++) {\\n var variant = tag.variants[i];\\n if (variant === \\\"hepburn\\\")\\n continue;\\n if (variant === \\\"heploc\\\")\\n continue;\\n _DefineDataProperty(newVariants, newVariants.length, variant);\\n }\\n if (callFunction(ArrayIndexOf, newVariants, \\\"alalc97\\\") < 0)\\n _DefineDataProperty(newVariants, newVariants.length, \\\"alalc97\\\");\\n tag.variants = newVariants;\\n }\\n break;\\n case \\\"sgn\\\":\\n // sgn-BR -> bzs\\n if (tag.region === \\\"BR\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"bzs\\\";\\n tag.region = undefined;\\n }\\n // sgn-CO -> csn\\n else if (tag.region === \\\"CO\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"csn\\\";\\n tag.region = undefined;\\n }\\n // sgn-DE -> gsg\\n else if (tag.region === \\\"DE\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"gsg\\\";\\n tag.region = undefined;\\n }\\n // sgn-DK -> dsl\\n else if (tag.region === \\\"DK\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"dsl\\\";\\n tag.region = undefined;\\n }\\n // sgn-ES -> ssp\\n else if (tag.region === \\\"ES\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"ssp\\\";\\n tag.region = undefined;\\n }\\n // sgn-FR -> fsl\\n else if (tag.region === \\\"FR\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"fsl\\\";\\n tag.region = undefined;\\n }\\n // sgn-GB -> bfi\\n else if (tag.region === \\\"GB\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"bfi\\\";\\n tag.region = undefined;\\n }\\n // sgn-GR -> gss\\n else if (tag.region === \\\"GR\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"gss\\\";\\n tag.region = undefined;\\n }\\n // sgn-IE -> isg\\n else if (tag.region === \\\"IE\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"isg\\\";\\n tag.region = undefined;\\n }\\n // sgn-IT -> ise\\n else if (tag.region === \\\"IT\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"ise\\\";\\n tag.region = undefined;\\n }\\n // sgn-JP -> jsl\\n else if (tag.region === \\\"JP\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"jsl\\\";\\n tag.region = undefined;\\n }\\n // sgn-MX -> mfs\\n else if (tag.region === \\\"MX\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"mfs\\\";\\n tag.region = undefined;\\n }\\n // sgn-NI -> ncs\\n else if (tag.region === \\\"NI\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"ncs\\\";\\n tag.region = undefined;\\n }\\n // sgn-NL -> dse\\n else if (tag.region === \\\"NL\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"dse\\\";\\n tag.region = undefined;\\n }\\n // sgn-NO -> nsl\\n else if (tag.region === \\\"NO\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"nsl\\\";\\n tag.region = undefined;\\n }\\n // sgn-PT -> psr\\n else if (tag.region === \\\"PT\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"psr\\\";\\n tag.region = undefined;\\n }\\n // sgn-SE -> swl\\n else if (tag.region === \\\"SE\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"swl\\\";\\n tag.region = undefined;\\n }\\n // sgn-US -> ase\\n else if (tag.region === \\\"US\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"ase\\\";\\n tag.region = undefined;\\n }\\n // sgn-ZA -> sfs\\n else if (tag.region === \\\"ZA\\\" &&\\n tag.extlang1 === undefined &&\\n tag.extlang2 === undefined &&\\n tag.extlang3 === undefined &&\\n tag.script === undefined &&\\n tag.variants.length === 0 &&\\n tag.extensions.length === 0 &&\\n tag.privateuse === undefined)\\n {\\n tag.language = \\\"sfs\\\";\\n tag.region = undefined;\\n }\\n break;\\n }\\n}\",\n \"static relations() {\\n return [\\\"acl\\\", \\\"advcl\\\", \\\"advmod\\\", \\\"amod\\\", \\\"appos\\\", \\\"aux\\\", \\\"auxpass\\\", \\\"case\\\", \\\"cc\\\", \\\"ccomp\\\", \\\"compound\\\", \\\"conj\\\", \\\"cop\\\", \\\"csubj\\\", \\\"csubjpass\\\", \\\"dep\\\", \\\"det\\\", \\\"discourse\\\", \\\"dislocated\\\", \\\"dobj\\\", \\\"expl\\\", \\\"foreign\\\", \\\"goeswith\\\", \\\"iobj\\\", \\\"list\\\", \\\"mark\\\", \\\"mwe\\\", \\\"name\\\", \\\"neg\\\", \\\"nmod\\\", \\\"nsubj\\\", \\\"nsubjpass\\\", \\\"nummod\\\", \\\"parataxis\\\", \\\"punct\\\", \\\"remnant\\\", \\\"reparandum\\\", \\\"root\\\", \\\"vocative\\\", \\\"xcomp\\\"]\\n }\",\n \"export() {\\n const wordToConll = (word, indexOverride = null) => {\\n const stringifyList = object => {\\n let pairs = []\\n for (const key in object) {\\n pairs.push(`${key}=${object[key]}`)\\n }\\n pairs.sort()\\n let string = pairs.join(\\\"|\\\")\\n return string ? string : \\\"_\\\"\\n }\\n let data = [].fill(\\\"_\\\", 0, 9)\\n data[0] = indexOverride || word.index || \\\"_\\\"\\n data[1] = word.inflection || \\\"_\\\"\\n data[2] = word.lemma || \\\"_\\\"\\n data[3] = word.uposTag || \\\"_\\\"\\n data[4] = word.xposTag || \\\"_\\\"\\n data[5] = stringifyList(word.features)\\n data[6] = word.parent === 0 ? 0 : word.parent || \\\"_\\\"\\n data[7] = this.settings.relations[word.relation] || \\\"_\\\"\\n data[8] = word.dependencies || \\\"_\\\"\\n data[9] = stringifyList(word.misc)\\n let line = data.join(\\\"\\\\t\\\")\\n //Add an extra line for each following empty node\\n word.emptyNodes.forEach( (emptyNode, index) => {\\n line = line + \\\"\\\\n\\\" + wordToConll(new Word(emptyNode), `${word.index}.${index+1}`)\\n })\\n return line\\n }\\n\\n let lines = []\\n this.sentences.forEach(sentence => {\\n sentence.comments.forEach(comment => lines.push(comment))\\n sentence.words.forEach(word => lines.push(wordToConll(word)))\\n lines[lines.length-1] += \\\"\\\\n\\\" //sentence separator\\n })\\n\\n return lines.join(\\\"\\\\n\\\")\\n }\",\n \"function addTranslatedDiseaseName(diseases) {\\n\\tfor (key in diseases) {\\n\\t\\tif (diseases[key]['Disease Code']=='other'||diseases[key]['Disease Code']=='other-undefined') {\\n\\t\\t\\tdiseases[key]['translatedDiseaseName']=diseases[key]['Detailed Disease Name'];\\t\\n\\t\\t\\tdiseases[key]['Disease Code']=diseases[key]['Detailed Disease Name'];\\t\\n\\n\\t\\t}\\n\\t\\t\\n\\t\\telse{\\n\\t\\t\\tdiseases[key]['translatedDiseaseName']=$.t(\\\"diseases:\\\"+diseases[key]['Disease Code']).replace(\\\"diseases:\\\",\\\"\\\");\\n\\t\\t}\\n \\t}\\n \\treturn diseases;\\n}\",\n \"function printVitals(v){\\n\\tvar vital_string = \\\"BP:\\\" + v.bp + \\\", \\\" +\\n\\t\\t\\t\\t\\t\\t\\\"PR:\\\" + v.pr + \\\", \\\" +\\n\\t\\t\\t\\t\\t\\t\\\"RR:\\\" + v.rr;\\n\\treturn vital_string;\\n}\",\n \"function letrasMa(v){\\n\\treturn v.toUpperCase();\\n}\",\n \"function dizerOla(nome) {\\n console.log('Olá ' + nome);\\n console.log(\\\"Ol\\\\u00E1 \\\" + nome); //interpolarização\\n}\",\n \"function addSyllables(){\\n const reducer = (accumulator, currentValue) => accumulator + currentValue;\\n return syllableArray.reduce(reducer);\\n}\",\n \"function isVariantLabels(v) {\\n return Array.isArray(v);\\n}\",\n \"function isVariantLabels(v) {\\n return Array.isArray(v);\\n}\",\n \"function isVariantLabels(v) {\\n return Array.isArray(v);\\n}\",\n \"function isVariantLabels(v) {\\n return Array.isArray(v);\\n}\",\n \"function isVisualPrefix( prefix, string ) {\\n\\t\\t// Pre-base vowel signs of Indic languages. A vowel sign is called pre-base if\\n\\t\\t// consonant + vowel becomes [vowel][consonant] when rendered. Eg: ക + െ => കെ\\n\\t\\tvar prebases = 'െേൈൊോൌெேைொோௌେୈୋୌિਿिিেৈোৌෙේෛොෝෞ';\\n\\t\\treturn prebases.indexOf( string[prefix.length] ) <= 0;\\n\\t}\",\n \"toJugglerDirectionString() {\\n let retStr = this.toDirectionString();\\n if (this.juggler != null && this.direction != SELF && this.direction != HEFF)\\n retStr += this.juggler;\\n return retStr;\\n }\",\n \"toJugglerDirectionString() {\\n let retStr = this.toDirectionString();\\n if (this.juggler != null && this.direction != SELF && this.direction != HEFF)\\n retStr += this.juggler;\\n return retStr;\\n }\",\n \"function plainNegativeComplete(hiraganaVerb, type) {\\n return type == \\\"u\\\" ? hiraganaVerb.substring(0, hiraganaVerb.length - 1) + changeUtoA(hiraganaVerb.charAt(hiraganaVerb.length - 1)) + \\\"ない\\\" :\\n hiraganaVerb.substring(0, hiraganaVerb.length - 1) + \\\"ない\\\";\\n}\",\n \"getAriaLabel() {\\n var states;\\n if (this.isDrillable()) {\\n states = [this._axis.getOptions().translations.stateDrillable];\\n }\\n if (this.getDatatip() != null) {\\n return dvt.Displayable.generateAriaLabel(this.getDatatip(), states);\\n } else if (states != null) {\\n return dvt.Displayable.generateAriaLabel(this.getLabel().getTextString(), states);\\n }\\n }\",\n \"function grammarize (name) {\\n const wrongWords = ['arent', 'githubbin', 'its']\\n const rightWords = [\\\"aren't\\\", 'GitHubbin', \\\"it's\\\"]\\n let correctedName = name\\n\\n // Correct listed terms\\n wrongWords.forEach((word, i) => {\\n if (name.match(word)) {\\n correctedName = name.replace(word, rightWords[i])\\n }\\n })\\n\\n // First Char to upper case\\n correctedName = correctedName.charAt(0).toUpperCase() + correctedName.substr(1)\\n\\n return correctedName\\n}\",\n \"translate(s) {\\n s = sanitizeHtml(_t(s));\\n // ugly fix for https://github.com/vector-im/riot-web/issues/4243\\n s = s.replace(/Riot\\\\.im/, 'Riot.im');\\n s = s.replace(/\\\\[matrix\\\\]/, '\\\"[matrix]\\\"');\\n return s;\\n }\",\n \"function Lang() { \\n}\",\n \"function LangMap() {}\",\n \"function LangMap() {}\",\n \"function smarten(a) {\\n a = a.replace(/(^|[-\\\\u2014\\\\s(\\\\[\\\"])'/g, \\\"$1\\\\u2018\\\"); // opening singles\\n a = a.replace(/'/g, \\\"\\\\u2019\\\"); // closing singles & apostrophes\\n a = a.replace(/(^|[-\\\\u2014/\\\\[(\\\\u2018\\\\s])\\\"/g, \\\"$1\\\\u201c\\\"); // opening doubles\\n a = a.replace(/\\\"/g, \\\"\\\\u201d\\\"); // closing doubles\\n a = a.replace(/--/g, \\\"\\\\u2014\\\"); // em-dashes\\n return a;\\n}\",\n \"function translatePigLatin(str) {\\n let consonantRegex = /^[^aeiou]+/;\\n \\n let myConsonants = str.match(consonantRegex);\\n \\n return myConsonants !== null ? str.replace(consonantRegex, \\\"\\\").concat(myConsonants).concat('ay') : str.concat('way')\\n \\n }\",\n \"natural_lexeme() { return new GeneratorLexeme(\\\"nat\\\", \\\"\\\\\\\\d+\\\") }\",\n \"function swedishTranslationNavbar() {\\n let aboutMeLink = $(\\\"#about_meLink\\\").text(\\\"Om mig\\\");\\n let resumeLink = $(\\\"#resumeLink\\\").text(\\\"CV\\\");\\n let portfolioLink = $(\\\"#portfolioLink\\\").text(\\\"Portfölj\\\");\\n let languageLink = $(\\\"#dropdownMenu\\\").text(\\\"Språk\\\");\\n}\",\n \"function choice(...alternatives) {\\n const altsDefs = _.map(alternatives, alt => {\\n return new Flat({ definition: toDefinition(alt) })\\n })\\n\\n const orgTextParts = _.map(alternatives, toOriginalText)\\n\\n const definition = new Alternation({ definition: altsDefs })\\n definition.orgText = `choice(${orgTextParts.join(\\\", \\\")})`\\n\\n return {\\n toRule: toRule,\\n definition: definition\\n }\\n}\",\n \"function L(...args) { if (TextBracket.DEBUG) Vex.L('Vex.Flow.TextBracket', args); }\",\n \"function $8ec3412bfa22abb7$var$routeros(hljs) {\\n const STATEMENTS = \\\"foreach do while for if from to step else on-error and or not in\\\";\\n // Global commands: Every global command should start with \\\":\\\" token, otherwise it will be treated as variable.\\n const GLOBAL_COMMANDS = \\\"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime\\\";\\n // Common commands: Following commands available from most sub-menus:\\n const COMMON_COMMANDS = \\\"add remove enable disable set get print export edit find run debug error info warning\\\";\\n const LITERALS = \\\"true false yes no nothing nil null\\\";\\n const OBJECTS = \\\"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw\\\";\\n const VAR = {\\n className: \\\"variable\\\",\\n variants: [\\n {\\n begin: /\\\\$[\\\\w\\\\d#@][\\\\w\\\\d_]*/\\n },\\n {\\n begin: /\\\\$\\\\{(.*?)\\\\}/\\n }\\n ]\\n };\\n const QUOTE_STRING = {\\n className: \\\"string\\\",\\n begin: /\\\"/,\\n end: /\\\"/,\\n contains: [\\n hljs.BACKSLASH_ESCAPE,\\n VAR,\\n {\\n className: \\\"variable\\\",\\n begin: /\\\\$\\\\(/,\\n end: /\\\\)/,\\n contains: [\\n hljs.BACKSLASH_ESCAPE\\n ]\\n }\\n ]\\n };\\n const APOS_STRING = {\\n className: \\\"string\\\",\\n begin: /'/,\\n end: /'/\\n };\\n return {\\n name: \\\"Microtik RouterOS script\\\",\\n aliases: [\\n \\\"routeros\\\",\\n \\\"mikrotik\\\"\\n ],\\n case_insensitive: true,\\n keywords: {\\n $pattern: /:?[\\\\w-]+/,\\n literal: LITERALS,\\n keyword: STATEMENTS + \\\" :\\\" + STATEMENTS.split(\\\" \\\").join(\\\" :\\\") + \\\" :\\\" + GLOBAL_COMMANDS.split(\\\" \\\").join(\\\" :\\\")\\n },\\n contains: [\\n {\\n variants: [\\n {\\n begin: /\\\\/\\\\*/,\\n end: /\\\\*\\\\//\\n },\\n {\\n begin: /\\\\/\\\\//,\\n end: /$/\\n },\\n {\\n begin: /<\\\\//,\\n end: />/\\n }\\n ],\\n illegal: /./\\n },\\n hljs.COMMENT(\\\"^#\\\", \\\"$\\\"),\\n QUOTE_STRING,\\n APOS_STRING,\\n VAR,\\n {\\n begin: /[\\\\w-]+=([^\\\\s{}[\\\\]()]+)/,\\n relevance: 0,\\n returnBegin: true,\\n contains: [\\n {\\n className: \\\"attribute\\\",\\n begin: /[^=]+/\\n },\\n {\\n begin: /=/,\\n endsWithParent: true,\\n relevance: 0,\\n contains: [\\n QUOTE_STRING,\\n APOS_STRING,\\n VAR,\\n {\\n className: \\\"literal\\\",\\n begin: \\\"\\\\\\\\b(\\\" + LITERALS.split(\\\" \\\").join(\\\"|\\\") + \\\")\\\\\\\\b\\\"\\n },\\n {\\n // Do not format unclassified values. Needed to exclude highlighting of values as built_in.\\n begin: /(\\\"[^\\\"]*\\\"|[^\\\\s{}[\\\\]]+)/\\n }\\n ]\\n }\\n ]\\n },\\n {\\n // HEX values\\n className: \\\"number\\\",\\n begin: /\\\\*[0-9a-fA-F]+/\\n },\\n {\\n begin: \\\"\\\\\\\\b(\\\" + COMMON_COMMANDS.split(\\\" \\\").join(\\\"|\\\") + \\\")([\\\\\\\\s[(\\\\\\\\]|])\\\",\\n returnBegin: true,\\n contains: [\\n {\\n className: \\\"builtin-name\\\",\\n begin: /\\\\w+/\\n }\\n ]\\n },\\n {\\n className: \\\"built_in\\\",\\n variants: [\\n {\\n begin: \\\"(\\\\\\\\.\\\\\\\\./|/|\\\\\\\\s)((\\\" + OBJECTS.split(\\\" \\\").join(\\\"|\\\") + \\\");?\\\\\\\\s)+\\\"\\n },\\n {\\n begin: /\\\\.\\\\./,\\n relevance: 0\\n }\\n ]\\n }\\n ]\\n };\\n}\",\n \"get lowerLegTwist() {}\",\n \"function AvsAnOverride_(fword) {\\n //var exeptionsA_ = /^(?:uis?|co\\\\w|form|v|data|media)/i;\\n var exeptionsA_ = /^(?:uis?|data)/i;\\n var exeptionsAn_ = /(?:^[lr]value|a\\\\b|sql)/i;\\n return (exeptionsA_.test(fword) ? article[0] :\\n exeptionsAn_.test(fword) ? article[0]+\\\"n\\\" : false);\\n }\",\n \"function Assign_Lex() {\\r\\n}\",\n \"static get definition() {\\n return {\\n i18n: {\\n default: 'Table'\\n }\\n };\\n }\",\n \"function letrasMi(v){\\n\\treturn v.toLowerCase();\\n}\",\n \"function createSyllableWithNeumes(){\\n \\n var page = document.getElementById(\\\"page\\\").value;\\n var line = document.getElementById(\\\"line\\\").value;\\n var staff = document.getElementById(\\\"staff\\\").value;\\n var syllable = document.getElementById(\\\"syllable\\\").value;\\n var initial = document.getElementById(\\\"initial\\\").checked;\\n var color = document.getElementById(\\\"color\\\").value;\\n var comment = document.getElementById(\\\"comment\\\").value;\\n \\n currentSyllable = new Syllable(page, line, staff, syllable, initial, color, comment);\\n \\n syllables.push(currentSyllable);\\n \\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n document.getElementById(\\\"input\\\").innerHTML = neumeForm();\\n createSVGOutput();\\n}\",\n \"function Assign_Lex_Lex() {\\r\\n}\",\n \"get Directionality() {}\",\n \"function printLatinWord(word){\\r\\n\\t// combine the word without its first letter, then the first letter, then 'ay'.\\r\\n\\treturn word.slice(1) + word.slice(0, 1) + \\\"ay \\\";\\r\\n}\",\n \"function simple(){\\n aff('Exercice n°01 : Bienvenue');\\n var name = 'loic';\\n aff(`Bienvenue à vous -> ${name} !`);\\n jump();\\n}\",\n \"get lemmasList () {\\n if (this.homonym && this.homonym.lexemes) {\\n return this.homonym.lexemes.map(lexeme => lexeme.lemma.word).filter((value, index, self) => {\\n return self.indexOf(value) === index\\n }).join(', ')\\n }\\n return ''\\n }\",\n \"title() { return this.owner.name + \\\" - \\\" + this.label.replace('\\\\n', ' ') }\",\n \"translate(...args) {\\n\\t\\tif (this._localizationEnabled) {\\n\\t\\t\\treturn this.__(...args)\\n\\t\\t}\\n\\n\\t\\treturn args[0]\\n\\t}\",\n \"set Directionality(value) {}\",\n \"function makeGerund(styleVerb) {\\n if (styleVerb === \\\"Boulder\\\") {\\n return \\\"Bouldering\\\";\\n } else if (styleVerb === \\\"Top Rope\\\")\\n return \\\"Top Rope Climbing\\\";\\n}\",\n \"function lexicograph(name){\\r\\n console.log(name.toUpperCase().split(\\\"\\\").sort().join(\\\"\\\").toLowerCase());\\r\\n }\",\n \"function flat2(){\\n vm.input = vm.input.concat(\\\"😑\\\");\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.5760608","0.562237","0.5390461","0.5292844","0.52794814","0.5221145","0.5215348","0.5215348","0.5215348","0.5215348","0.519355","0.51407933","0.5074362","0.5043243","0.5035038","0.50228405","0.49539477","0.495328","0.49445188","0.4937989","0.49374697","0.4916687","0.4915139","0.49131477","0.49118263","0.48638466","0.4852628","0.48485267","0.4836091","0.4816314","0.48152155","0.4815042","0.4806667","0.48048875","0.48019844","0.47958335","0.47913402","0.47843888","0.47840062","0.477352","0.47716272","0.47708586","0.4762391","0.47593927","0.47511974","0.47506595","0.47445846","0.47435305","0.47430617","0.47288924","0.47258925","0.4723777","0.4723773","0.47145507","0.4714523","0.4705567","0.4704379","0.46902937","0.46892878","0.46790314","0.46768254","0.4673717","0.46714908","0.46714908","0.46714908","0.46714908","0.46680328","0.4658796","0.4658796","0.46577984","0.46576568","0.46505025","0.46426812","0.46309793","0.4630085","0.4630085","0.4627808","0.46230555","0.46165782","0.4613211","0.46117255","0.46077546","0.46070644","0.46003693","0.45990494","0.4595788","0.45934924","0.45930678","0.45914325","0.45875117","0.4583021","0.4578417","0.4573034","0.45686328","0.45648134","0.45643818","0.45641384","0.45635942","0.4560745","0.45586193"],"string":"[\n \"0.5760608\",\n \"0.562237\",\n \"0.5390461\",\n \"0.5292844\",\n \"0.52794814\",\n \"0.5221145\",\n \"0.5215348\",\n \"0.5215348\",\n \"0.5215348\",\n \"0.5215348\",\n \"0.519355\",\n \"0.51407933\",\n \"0.5074362\",\n \"0.5043243\",\n \"0.5035038\",\n \"0.50228405\",\n \"0.49539477\",\n \"0.495328\",\n \"0.49445188\",\n \"0.4937989\",\n \"0.49374697\",\n \"0.4916687\",\n \"0.4915139\",\n \"0.49131477\",\n \"0.49118263\",\n \"0.48638466\",\n \"0.4852628\",\n \"0.48485267\",\n \"0.4836091\",\n \"0.4816314\",\n \"0.48152155\",\n \"0.4815042\",\n \"0.4806667\",\n \"0.48048875\",\n \"0.48019844\",\n \"0.47958335\",\n \"0.47913402\",\n \"0.47843888\",\n \"0.47840062\",\n \"0.477352\",\n \"0.47716272\",\n \"0.47708586\",\n \"0.4762391\",\n \"0.47593927\",\n \"0.47511974\",\n \"0.47506595\",\n \"0.47445846\",\n \"0.47435305\",\n \"0.47430617\",\n \"0.47288924\",\n \"0.47258925\",\n \"0.4723777\",\n \"0.4723773\",\n \"0.47145507\",\n \"0.4714523\",\n \"0.4705567\",\n \"0.4704379\",\n \"0.46902937\",\n \"0.46892878\",\n \"0.46790314\",\n \"0.46768254\",\n \"0.4673717\",\n \"0.46714908\",\n \"0.46714908\",\n \"0.46714908\",\n \"0.46714908\",\n \"0.46680328\",\n \"0.4658796\",\n \"0.4658796\",\n \"0.46577984\",\n \"0.46576568\",\n \"0.46505025\",\n \"0.46426812\",\n \"0.46309793\",\n \"0.4630085\",\n \"0.4630085\",\n \"0.4627808\",\n \"0.46230555\",\n \"0.46165782\",\n \"0.4613211\",\n \"0.46117255\",\n \"0.46077546\",\n \"0.46070644\",\n \"0.46003693\",\n \"0.45990494\",\n \"0.4595788\",\n \"0.45934924\",\n \"0.45930678\",\n \"0.45914325\",\n \"0.45875117\",\n \"0.4583021\",\n \"0.4578417\",\n \"0.4573034\",\n \"0.45686328\",\n \"0.45648134\",\n \"0.45643818\",\n \"0.45641384\",\n \"0.45635942\",\n \"0.4560745\",\n \"0.45586193\"\n]"},"document_score":{"kind":"string","value":"0.59461"},"document_rank":{"kind":"string","value":"0"}}},{"rowIdx":228,"cells":{"query":{"kind":"string","value":"Reads the data entered in the syllable form and saves it."},"document":{"kind":"string","value":"function createSyllable(){\n var page = document.getElementById(\"page\").value;\n var line = document.getElementById(\"line\").value;\n var staff = document.getElementById(\"staff\").value;\n var syllable = document.getElementById(\"syllable\").value;\n var initial = document.getElementById(\"initial\").checked;\n var color = document.getElementById(\"color\").value;\n var comment = document.getElementById(\"comment\").value;\n \n currentSyllable = new Syllable(page, line, staff, syllable, initial, color, comment);\n \n syllables.push(currentSyllable);\n \n currentColor = color;\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = syllableForm();\n createSVGOutput();\n \n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function applyCurrentSyllable(){\n currentSyllableIndex = document.getElementById(\"syllable\").value;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}","function toChangeSyllableData(){\n if(syllables.length > 0){\n currentType = syllables[0].type;\n currentColor = syllables[0].color;\n }\n pushedNeumeVariations = false;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}","function applySyllableDataChanges(){\n \n var page = document.getElementById(\"page\").value;\n var line = document.getElementById(\"line\").value;\n var staff = document.getElementById(\"staff\").value;\n var syllable = document.getElementById(\"syllabletext\").value;\n var initial = document.getElementById(\"initial\").checked;\n var color = document.getElementById(\"color\").value;\n var comment = document.getElementById(\"comment\").value;\n \n if(page){\n currentSyllable.page = page;\n }\n if(line){\n currentSyllable.line = line;\n }\n \n if(staff){\n currentSyllable.staff = staff;\n }\n \n if(syllable){\n currentSyllable.syllable = syllable;\n }\n \n currentSyllable.initial = initial;\n \n if(color && color != \"none\"){\n currentSyllable.color = color;\n }\n \n if(comment){\n currentSyllable.comment = comment;\n }\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n createSVGOutput();\n}","save() {\n const newBasicBinary = trs80_base_1.parseBasicText(this.textarea.value);\n if (typeof newBasicBinary === \"string\") {\n this.showError(newBasicBinary);\n return;\n }\n const newBasicProgram = trs80_base_1.decodeBasicProgram(newBasicBinary);\n if (newBasicProgram === undefined) {\n // I don't know how this might happen.\n this.showError(\"Can't decode Basic program\");\n return;\n }\n this.trs80.loadBasicProgram(newBasicProgram);\n this.close();\n }","function toSyllable(){\n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","function updateOutput8() {\n localStorage.setItem('info8', input_textarea8.value)\n}","function updateOutput7() {\n localStorage.setItem('info7', input_textarea7.value)\n}","function deleteSyllable(){\n syllables.splice(currentSyllableIndex, 1);\n \n currentSyllableIndex = 0;\n \n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function importSave() {\r\n\tlet data = prompt(\"Paste your save string here\");\r\n\r\n\tif (data !== null && data !== '')\r\n\t\tparseAndImportData(data);\r\n\t\t\r\n\trunAll();\r\n}","save() {\n this._toggleSaveThrobber();\n try {\n this._readFromForm();\n var resp = this.dao.save();\n if (!resp) {\n alert(\"Error while saving taxon.\")\n } else {\n var jsonObj = JSON.parse(resp);\n if (jsonObj[0].response == false ) {\n alert(jsonObj[1].response);\n } else {\n console.log(this.dao)\n // make sure the latin name input field is showing the correct name, reload data from server\n document.getElementById('latin_name').value = this.dao.unique_name;\n alert('Saved');\n }\n }\n } catch(e) {\n alert(e);\n console.log(e);\n }\n this._toggleSaveThrobber();\n }","function updateOutput9() {\n localStorage.setItem('info9', input_textarea9.value)\n}","function showCurrentLangData(){\n document.getElementById('title').value=point.currentLangData.title;\n document.getElementById('prim').value=point.currentLangData.prim;\n document.getElementById('primsaf').value=point.currentLangData.primsaf;\n autosize.update(document.getElementById('primsaf'));\n autosize.update(document.getElementById('prim'));\n for(var i=0;i 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","function stepSyllable() {\n drums();\n try {\n var s = poem[stanza];\n\n var v = s[verse];\n if (!v) {\n stepStanza();\n return stepSyllable();\n }\n var w = v.w[word];\n if (!w) {\n stepVerse();\n return stepSyllable();\n }\n var sb = w.s[syllable];\n if (!sb) {\n stepWord();\n return stepSyllable();\n }\n\n printSyllable(sb);\n\n var note = chooseNote(sb);\n playNote(note);\n sock.write(deaccent(sb));\n syllable++\n\n } catch (e) {\n stepStanza();\n intro.draw(1);\n }\n}","function updateOutput1() {\n localStorage.setItem('info1', input_textarea1.value)\n}","function save() {\r\n\t\tvar str = myDiagram.model.toJson();\r\n\t\tdocument.getElementById(\"mySavedModel\").value = str;\r\n\t }","function saveData() {\n\t\tif(!key){\n\t\t\tvar id \t\t\t\t\t\t= Math.floor(Math.random()*1000001);\n\t\t}else{\n\t\t\tid = key;\n\t\t}\n\t\t\n\t\tgetRadioValue ();\n\t\tgetCheckbox();\n\t\tvar item\t\t\t\t\t\t= {};\n\t\t\t item.kname\t\t\t\t= [\"Kid's Name:\", $(\"kname\").value];\n\t\t\t item.pname\t\t\t\t= [\"Parent's Name:\", $(\"pname\").value];\n\t\t\t item.phone\t\t\t\t= [\"Phone #:\", $(\"phone\").value];\n\t\t\t item.email\t\t\t\t= [\"Email:\", $(\"email\").value];\n\t\t\t item.date\t\t\t\t= [\"Play Date:\", $(\"date\").value];\n\t\t\t item.sex\t\t\t\t= [\"Sex:\", sexValue];\n\t\t\t item.choice\t\t\t= [\"Best Time of Week:\", $(\"choice\").value];\n\t\t\t item.select\t\t\t= [\"Best Time of Day:\", $(\"dayTimes\").value];\n\t\t\t item.allergies\t\t= [\"Needs:\", hasAllergy];\n\t\t\t item.comments\t\t\t= [\"Notes:\", $(\"comments\").value];\n\t\t\t item.outgoing\t\t\t= [\"How Outgoing? 1-10:\", $(\"outgoing\").value];\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\n\t\talert(\"Saved!\");\n\t}","function toSyllableFromVariations(){\n pushedVariations = false;\n variations = new Array();\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function restoreStudy(){\n $('[data-save]').each(function(){\n $(this).val(localStorage.getItem(prefix+'/'+currentTopic+'-'+$(this).attr('data-save')));\n });\n }","function saveStage(stateNum)\n {\n try\n {\n document.getElementById('longName').value = trim(document.getElementById('longName').value);\n if(document.getElementById('longName').value.match('#'))\n {\n document.getElementById('longName').value = document.getElementById('longName').value.replace(/#/g,\"\");\n } \n warn(stateNum);\n \n }\n catch(ex)\n {}\n \n }","function saveEditCaption(e, data) {\n var $wp = $('.write-pages li'), // the list of book pages\n $page = $($wp.get(editIndex)), // the current page\n $caption = $page.find('p.thr-caption'),\n tooLong = typeof(data.value) == 'string' &&\n data.value.length > maxCaptionLength;\n //console.log('saving', data.value, 'was', $caption.html());\n $caption.html(data.value).toggleClass('text-too-long', tooLong);\n setModified();\n $editDialog.find('p.thr-caption').toggleClass('text-too-long', tooLong);\n }","function onSaveAs(name) {\n\n // do we have a current file name?\n if(name == null) {\n // no, so choose one\n let file = dialog.showSaveDialog( mainWindow, {\n filters: [\n { name: 'System Exclusive Dump', extensions: ['syx'] },\n { name: 'All Files', extensions: ['*'] }\n ]\n });\n if(file == undefined || !file.length) {\n return;\n }\n name = file; \n }\n\n // prepare the handler to receive the serialised SYSEX\n // data from the form and save it to the file\n ipcMain.once('save-midi-rs', function(e, data) {\n try { \n fs.writeFileSync(name, new Buffer(data));\n setCurrentFileName(name);\n }\n catch(e) {\n dialog.showErrorBox(\"Failed To Save\", e.message);\n setCurrentFileName(null);\n }\n });\n\n // request the serialized SYSEX data from the form\n mainWindow.webContents.send('save-midi-rq');\n}","livelyPrepareSave() {\n // this.setAttribute(\"data-mydata\", this.get(\"#textField\").value);\n }","function updateOutput6() {\n localStorage.setItem('info6', input_textarea6.value)\n}","function save() {\n str = myDiagram.model.toJson();\n document.getElementById(\"mySavedModel\").value = str;\n }","function textToView () {\n\n var exhistData = JSON.parse(localStorage.getItem(\"setText\"));\n\n if (exhistData) {\n saveText = exhistData;\n }\n\n textToView();\n}","saveData() {\n if (this.s.unavailable()) {\n return;\n }\n\n for (const val of this.dispField.items) {\n this.s.set(val, this.dispField.checked(val));\n }\n\n this.s.set(\"unit\", this.unitField.get());\n this.s.set(\"format\", this.formatField.get());\n this.s.set(\"sort\", this.sortableField.toArray());\n }","function savedData() {\n var i1 = localStorage.getItem('inputText1');\n inOutText1.text(i1);\n var i2 = localStorage.getItem('inputText2');\n inOutText2.text(i2);\n var i3 = localStorage.getItem('inputText3');\n inOutText3.text(i3);\n var i4 = localStorage.getItem('inputText4');\n inOutText4.text(i4);\n var i5 = localStorage.getItem('inputText5');\n inOutText5.text(i5);\n var i6 = localStorage.getItem('inputText6');\n inOutText6.text(i6);\n var i7 = localStorage.getItem('inputText7');\n inOutText7.text(i7);\n var i8 = localStorage.getItem('inputText8');\n inOutText8.text(i8);\n var i9 = localStorage.getItem('inputText9');\n inOutText9.text(i9);\n $('#clear').on(\"click\", function () {\n localStorage.clear();\n });\n\n }","function writeText() {\n\ttext.innerHTML = input.value;\n\tconst textSave = text.innerHTML;\n\tlocalStorage.setItem(\"textInStorage\", textSave); //textInStorage es un nombre que nosotras le damos\n\tconsole.log(textSave);\n}","function display_saved_note() {\n if(check_web_storage_support() == true) {\n result = localStorage.getItem('note');\n }\n if(result === null) {\n result = \"\";\n }\n\n document.getElementById('area').value = result;\n}","function data(origin){\n switch (origin) {\n case 0://// saving \"key\" and it \"value\" in localStorage\n var input = document.getElementById(\"textMe\");\n localStorage.setItem(\"text\", input.value);\n var storedValue = localStorage.getItem(\"text\");\n document.getElementById('outputMe').innerHTML = storedValue = \"NOW YOU'R SAVED\";\n break;\n\n\n case 1:/// clears typing area, but keeps data in localStorage\n input = document.getElementById(\"textMe\");\n input.value = \"\";\n document.getElementById('outputMe').innerHTML = \"CAN TYPE AGAIN\";\n break;\n\n\n case 2:/// gets data from localStorage and displays at typing area\n var lastText = localStorage.getItem(\"text\");\n console.log(\"last text =\" + lastText);\n document.getElementById('textMe').value = lastText;\n document.getElementById('outputMe').innerHTML = \"LOOK I REMEMBER YOU\";\n break;\n\n\n case 3:/// clears all data from localStorage\n input = document.getElementById(\"textMe\");\n input.value = \"\";\n localStorage.clear();\n document.getElementById('outputMe').innerHTML = \"NOW IT IS EMTY\";\n break;\n\n default:\n\n break;\n }\n\n }","function save() {\n $editors.find('.text').each(function () {\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\n });\n }","function read() {\n \t// Keep the newline value for substitutin\n \t// when cleaning the
        \n var newLine = String.fromCharCode(10);\n \t// Firefox adds a
        for each new line, we replace it back\n \t// to a regular '\\n'\n var formattedValue = element.html().replace(/
        /ig,newLine).replace(/\\r/ig,'');\n \t// update the model\n ngModel.$setViewValue(formattedValue);\n \t// Set the formated (cleaned) value back into\n \t// the element's html.\n element.text(formattedValue);\n }","function setSave(e) {\n e.preventDefault();\n character.savingThrowModifier.strength = document.getElementById('strSave').value;\n character.savingThrowModifier.dexterity = document.getElementById('dexSave').value;\n character.savingThrowModifier.constitution = document.getElementById('conSave').value;\n character.savingThrowModifier.intelligence = document.getElementById('intSave').value;\n character.savingThrowModifier.wisdom = document.getElementById('wisSave').value;\n character.savingThrowModifier.charisma = document.getElementById('chaSave').value;\n}","function load() {\r\n this.setContent(this.textarea.value);\r\n }","function setData() {\n\n if (localStorage.length != 0) {\n loadData();\n document.getElementById('name').value = playerData.name;\n document.getElementById('l1').innerHTML = playerData.live;\n }\n if (playerData.close == \"true\") {\n document.getElementById('name').value = playerData.name;\n gewLevel = playerData.diff;\n document.getElementById('level').innerHTML = playerData.level;\n document.getElementById('l1').innerHTML = playerData.live;\n document.getElementById('score').innerHTML = playerData.highscore;\n gewModus = playerData.design;\n document.getElementById('a1').innerHTML = playerData.alien1;\n document.getElementById('a2').innerHTML = playerData.alien2;\n document.getElementById('a3').innerHTML = playerData.alien3;\n document.getElementById('a4').innerHTML = playerData.alien4;\n document.getElementById('a5').innerHTML = playerData.alien5;\n }\n }","function intosc()\n{\n\tvar theform = document.theform;\n\n\ttheform.rules.value =\n\t\ttheform.cats.value + \"\\n\" + \n\t\ttheform.rewrite.value + \"\\n\" + \n\t\ttheform.rules.value + \"\\n\";\n}","function readUserInput() {\n\tvar settings = {};\n\t//Plasmid Section\n\tsettings.plasmidname = readtxtField(\"txtPlasmidName\");\n\tsettings.plasmidnameon = readField(\"bolShowPlasmidName\");\n\tsettings.plasmidsize = readField(\"txtPlasmidSize\");\n\tsettings.plasmidsizeon = readField(\"bolShowPlasmidSize\");\n\tsettings.plasmidradius = readField(\"txtRadius\");\n\tsettings.bbwidth = readField(\"txtBackBoneWidth\");\n\tsettings.bbcolor = readField(\"optBackBoneColor\");\n\tsettings.bbon = readField(\"bolShowBackBone\");\n\t//Feature Section (General)\n\tsettings.fwidth = readField(\"txtFeatureWidth\");\n\tsettings.fstrokewidth = readField(\"txtFeatureStrokeWidth\");\n\tsettings.fstrokered = readField(\"txtStrokeRed\");\n\tsettings.fstrokegreen = readField(\"txtStrokeGreen\");\n\tsettings.fstrokeblue = readField(\"txtStrokeBlue\");\n\tsettings.farrowlength = readField(\"txtArrowHeadLength\");\n\tsettings.farrowwidth = readField(\"txtArrowHeadWidth\");\n\t//Text section\n\tsettings.txton = readField(\"bolShowText\");\n\tsettings.txtfamily = readField(\"optFontFamily\");\n\tsettings.txtsize = readField(\"txtFontSize\");\n\tsettings.txtcolor = readField(\"optFontColor\");\n\tsettings.txtbold = readField(\"bolTextBold\");\n\tsettings.txtloc = readField(\"optTextLocation\");\n\t//Canvas section\n\tsettings.cw = readField(\"txtCanvasWidth\");\n\tsettings.ch = readField(\"txtCanvasHeight\");\n\tsettings.error = 0;\n\tsettings.errmsg = \"\";\n\t//Calculated properties\n\tsettings.ox = settings.cw / 2;\n\tsettings.oy = settings.ch / 2;\n\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\n\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\n\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\n\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\n\treturn settings;\n}","function load() {\n this.setContent(this.textarea.value);\n }","function read() {\n var text = element.text();\n ngModel.$setViewValue(text);\n }","function saveData(ranKey) {\n //random key number\n //console.log(\"save it enter\");\n if(!ranKey){\n var id = Math.floor(Math.random()*120211);\n }else{\n id = ranKey;\n }\n getCheckbox();\n getRadio();\n var field={};\n\n field.title=[\"Book Title\", $(\"Title\").value];\n field.date=[\"Date Added:\", $(\"date\").value];\n field.booknumber=[\"Issue Number\", $(\"booknumber\").value];\n field.coverstyle=[\"Cover Style\", styleValue];\n field.read=[\"Read\", readValue];\n field.notes=[\"Notes\", $(\"Notes\").value];\n field.grade=[\"CCG Grading\", $(\"slider\").value];\n\n //Function to convert data into strings (stringify)\n\n localStorage.setItem(id, JSON.stringify(field));\n alert(\"Book Saved\");\n }","function saveInput() {\n\t$(\"button\").on(\"click\", function () {\n\t\tevent.preventDefault(event);\n\t\tvar button = $(this);\n\n\t\tlocalStorage.setItem(\n\t\t\tbutton[0].form.nextElementSibling.dataset.value,\n\t\t\tbutton[0].form[0].value\n\t\t);\n\t});\n}","function updateOutput5() {\n localStorage.setItem('info5', input_textarea5.value)\n}","function savestate() {\n state = $(\"#states\").val();\n $(\"#state\").val(state);\n}","function save() {\n if (document.getElementById('workSettings').value < 1) {\n alert(usePositiveNumberText[localStorage.getItem('language')]);\n return;\n } else if (document.getElementById('shortBreakSettings').value < 1) {\n alert(usePositiveNumberText[localStorage.getItem('language')]);\n return;\n } else if (document.getElementById('longBreakSettings').value < 1) {\n alert(usePositiveNumberText[localStorage.getItem('language')]);\n return;\n }\n\n valueWork = document.getElementById('workSettings').value;\n valueShort = document.getElementById('shortBreakSettings').value;\n valueLong = document.getElementById('longBreakSettings').value;\n valueSound = document.getElementById('volume-slider').value;\n document.getElementById('clock').innerHTML = `${valueWork}:00`;\n\n localStorage.setItem('workSettings', `${valueWork}`);\n localStorage.setItem('shortBreakSettings', `${valueShort}`);\n localStorage.setItem('longBreakSettings', `${valueLong}`);\n localStorage.setItem('volume-slider', `${valueSound}`);\n}","function input(){\n\n serviceKeyPath = readline.question(\"Input Service key's absolute path : \");\n // db_list = readline.question(\"Input database list path : (bluelens-browser/db_list) \");\n // if(db_list.length == 0 ){db_list = \"bluelens-browser/db_list\";}\n var info = {'serviceKeyPath': serviceKeyPath, 'topPath' : process.cwd()};\n if(fs.existsSync(infoPath)===false){fs.mkdirSync(infoPath)};\n fs.writeFile(infoPath+\"blu-info.json\", JSON.stringify(info), function(err) {\n if(err) {\n return console.log(err);\n }\n console.log(\"save blu-info.json finish in ~/.blu directory\");\n process.exit(0);\n });\n}","function restore_inputs () {\n\n\t\t\t\tparse_variables();\n\n\t\t\t\t$('.form-w').val(W);\n\t\t\t\t$('.form-b').val(B);\n\t\t\t\t$('.form-mf').val(Mf);\n\t\t\t\t$('.form-mt').val(Mt);\n\n\t\t\t}","function save(e) {\n let saveBtn = e.target;\n let inputBox = event.target.parentNode.lastChild;\n event.target.parentNode.firstChild.textContent = inputBox.value;\n inputBox.style.display = \"none\";\n saveBtn.style.display=\"none\";\n let editBtn = event.target.nextSibling;\n editBtn.style.display = \"inline\";\n \n}","readData() {\n\t\t// Se non esiste, lo crea, con le impostazioni di default\n\t\tif (!fs.existsSync(this.filepath)) {\n\t\t\tlogger.debug('Creato nuovo file di impostazioni.');\n\t\t\tthis.writeData();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tconst text = fs.readFileSync(this.filepath, 'utf8');\n\t\t\t// file YAML => {}\n\t\t\tconst data = yaml.safeLoad(text);\n\n\t\t\t// NOTE: validazione in lettura su readData, mentre in scrittura su setData.\n\t\t\tif (!isValid(data)) {\n\t\t\t\tthrow new Error('impostazioni del file non valide.');\n\t\t\t} else {\n\t\t\t\tthis.data = data;\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tlogger.error(`Errore nella lettura file yaml: ${e.toString()}`);\n\t\t}\n\t}","handleSpoofaxEdit(data)\r\n {\r\n console.log(\"Incoming Spoofax edit: \", JSON.stringify(data));\r\n switch (data[\"opType\"]) \r\n {\r\n case \"SetPropertyOp\":\r\n var lineArr = this.spoofaxData[\"model_0.dsl\"].split('%0A');\r\n lineArr[data[\"lineIndex\"]] = data[\"text\"];\r\n var outputText = '';\r\n for (let i = 0; i < lineArr.length - 1; i++) \r\n {\r\n outputText += lineArr[i] + '%0A';\r\n }\r\n outputText += lineArr[lineArr.length - 1];\r\n if (lineArr[lineArr.length - 1].length == 0)\r\n { \r\n outputText += '%0A';\r\n }\r\n this.spoofaxData[\"model_0.dsl\"] = outputText;\r\n break;\r\n \r\n default:\r\n break;\r\n }\r\n\r\n this.updateSpoofaxData(this.spoofaxData);\r\n }","function save() {\n str = myDiagram.model.toJson();\n document.getElementById(\"mySavedModel\").value = str;\n }","function readStuff() \n{ \n\tvar theform = document.theform;\n\n\t// Parse the category list\n\tcat = rewrite(theform.cats);\n\tncat = cat.length;\n\tvar badcats = false;\n\n\t// Make sure cats have structure like V=aeiou\n\tcatindex = \"\";\n\tvar w;\n\tfor (w = 0; w < ncat; w++) {\n\t\t// A final empty cat can be ignored\n\t\tthiscat = cat[w];\n\t\tif (thiscat.charCodeAt(thiscat.length - 1) == 13) {\n\t\t\tthiscat = thiscat.substr(0, thiscat .length - 1);\n\t\t\tcat[w] = thiscat;\n\t\t}\n\t\tif (thiscat.length == 0 && w == ncat - 1) {\n\t\t\tncat--;\n\t\t} else if (thiscat.length < 3) {\n\t\t\tbadcats = true;\n\t\t} else {\n\t\t\tif (find(thiscat , \"=\") == -1) {\n\t\t\t\tbadcats = true;\n\t\t\t} else {\n\t\t\t\tcatindex += thiscat.charAt(0);\n all_categories.push(thiscat);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Parse the sound changes \n\trul = rewrite(theform.rules);\n\tnrul = rul.length;\n \n var db = document.getElementById('db');\n db.style.display = 'none';\n db.innerHTML = '

        Bad rules which could not be parsed:

          ';\n \n\t// Remove trailing returns\n\tfor (w = 0; w < nrul; w++) {\n\t\tvar t = rul[w];\n\t\tif (t.charCodeAt(t.length - 1) == 13) {\n\t\t\trul[w] = t.substr(0, t.length - 1);\n\t\t\tt = rul[w];\n\t\t}\n\t\t\n\t\t// Sanity checks for valid rules\n\t\tvar valid = t.length > 0 && find(t, \">\") != -1;\n\t\tif (valid) {\n var pre = t.split('>')[0].replace(/[\\sØ]/g,'');\n if(t.indexOf('/') == -1){var post = '_';}\n else{var post = t.split('/')[1].replace(/\\s/,'');}\n var middle = t.split('>')[1].split('/')[0].replace(/[\\sØ]/,'');\n\n\t var thisrule = [pre,middle,post]; \n \n\t\t\tvalid = thisrule.length > 2 || \n\t\t\t\t(thisrule.length ==2 && \n\t\t\t\t find(thisrule[0], '\\u2192') != -1);\n\t\t\tif (valid) {\n\t\t\t\t// Insertions must have repl & nonuniversal env\n\t\t\t\tif (thisrule[0].length == 0) \n\t\t\t\t\tvalid = thisrule[1].length > 0 &&\n\t\t\t\t\t\tthisrule[2] != \"_\";\n\t\t\t}\n if(valid){all_rules.push(thisrule[0]+'>'+thisrule[1]+'/'+thisrule[2]);}\n\t\t}\n else\n {\n if(t.replace(/\\s/g,'') != '' && t[0] != '%')\n {\n db.innerHTML += '
        1. '+t+'
        2. ';\n db.style.display = 'block';\n }\n }\n\n\t\t// Invalid rules: move 'em all up\n\t\tif (!valid) {\n\t\t\tnrul--;\n\t\t\tfor (var q = w; q < nrul; q++) {\n\t\t\t\trul[q] = rul[q+1];\n\t\t\t}\n\t\t\tw--;\n\t\t}\n\t}\n db.innerHTML += '

        ';\n\n\t// Error strings\n\tif (badcats) {\n\t\treturn \"Categories are weird.\";\n\t} else if (nrul == 0) {\n\t\treturn \"There are no valid sound changes, so no output can be generated. Rules must be of the form s1/s2/e1_e2. The strings are optional, but the slashes are not.\" ;\n\t} else {\n\t\treturn \"\";\n\t}\n}","validate()\n {\n if (this.dirty)\n {\n this.updateText();\n this.dirty = false;\n }\n }","function sid_handle_kbdevent(e) {\n\t\t\n\t\tif(e.keyCode == 13) {\n\t\t\t// if enter key is pressed\n\t\t\tsid.write('');\n\n\t\t\tif(sid.value == \"\") {\n\t\t\t\tsid.write((sid.state > 2 ? 'Please enter your name.' : 'Please enter your student ID.'));\n\t\t\t} else if(sid.state == 1 && sid.value.match(/^[a-z\\ ]+/gi) && !sid.reg) {\n\t\t\t\tif(sid.value.match(/^(export|update|give|make|save|create)/gi) && !sid.value.match(/([\"']+)/gi)) {\n\t\t\t\t\tif(sid.value.match(/(\\ )+(csv)/gi)) {\n\t\t\t\t\t\tif(sid.temp = sid.value.match(/(emails|first names|ids|last names|fname(s|)|lname(s|))/gi)) {\n\t\t\t\t\t\t\tsid.write(sid.temp);\n\t\t\t\t\t\t\t// sid.command('/create/csv/'+sid.temp,function(err) {\n\t\t\t\t\t\t\t// \tif(err) {\n\t\t\t\t\t\t\t// \t\treturn sid.write('There was an error creating a csv file from the requested data.');\n\t\t\t\t\t\t\t// \t}\n\n\t\t\t\t\t\t\t// \tsid.value = '';\n\t\t\t\t\t\t\t// \tsid.write('A comma-separated values file has been created from the requested data.');\n\t\t\t\t\t\t\t// });\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsid.command('/export/csv',function(err) {\n\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\treturn sid.write('There was an error creating a CSV file from the data: '+err);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\t\tsid.write('A CSV file has been created from the data.');\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(sid.value.match(/(\\ )+(db|mysql|sql|database)/gi) || !sid.value.match(/(\\ )+(excel)/gi)) {\n\t\t\t\t\t\tsid.command('/export/mysql',function(err) {\n\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\treturn sid.write('There was an error updating the Excel spreadsheet.');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\tsid.write('The data has been successfully exported.');\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsid.command('/export/excel',function(err) {\n\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\treturn sid.write('There was an error updating the Excel spreadsheet.');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\tsid.write('The data has been successfully exported.');\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else if(sid.value.match(/^(how)([a-z\\ ]+)(people|students|persons)/gi)) {\n\t\t\t\t\tif(sid.value.match(/(new)/gi)) {\n\t\t\t\t\t\tsid.write(stats.registered+' new people have signed up so far.');\n\t\t\t\t\t} else if(sid.value.match(/(((are)([\\ ]?)(there|here|present)|((have))([\\ ]?)(come|arrived|shown up|shown|signed (up|in)|registered))|(\\?|()))/gi)) {\n\t\t\t\t\t\tsid.write('There are currently '+stats.total+' people signed in.');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsid.error();\n\t\t\t\t\t}\n\t\t\t\t\tsid.value = '';\n\t\t\t\t} else if(sid.value.match(/^(I|())(\\ )+([a-z\\'\\.\\ ]+)(id)$/gi)) {\n\t\t\t\t\tsid.write('If you know your student ID, please type that in.');\n\t\t\t\t} else if(sid.value.match(/^(delete|remove|erase|undo)(\\ )+(the|())([a-z0-9\\ ]+)(people|entr(y|ies)|row(s|)|person(s|())|name(s|)|student(s|))/)) {\n\t\t\t\t\tif(sid.value.match(/(last|first|latest)([\\ ]+)(two|three|four|five|six|seven|eight|nine|ten)?(\\ )*(new)?(\\ )*(person|student|name|entry|row)/gi)) {\n\t\t\t\t\t\tif(sid.value.match(/(latest)/gi) || sid.value.match(/(last)([\\ ]+)(new)?(\\ )*(person|student|name|entry|row)/gi)) {\n\t\t\t\t\t\t\t//remove the last new person signed in\n\t\t\t\t\t\t\tif(sid.value.match(/(new)/gi)) {\n\t\t\t\t\t\t\t\tsid.command('/event/delete/bottom/1/new', function(err) {\n\t\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\t\t// adverise error to client console\n\t\t\t\t\t\t\t\t\t\tconsole.log('The event requested could not be removed -> ' + err);\n\n\t\t\t\t\t\t\t\t\t\t// log error to gui console and exit function\n\t\t\t\t\t\t\t\t\t\treturn sid.error(err);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// log success to gui console\n\t\t\t\t\t\t\t\t\tsid.write('The last new person signed in has been removed.');\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t// remove the last person to have signed in\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// send request to server to server to delete last added entry\n\t\t\t\t\t\t\t\tsid.command('/event/delete/bottom/1', function(err, data) {\n\t\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\t\t// adverise error to client console\n\t\t\t\t\t\t\t\t\t\tconsole.log('The event requested could not be removed -> ' + err);\n\n\t\t\t\t\t\t\t\t\t\t// log error to gui console and exit function\n\t\t\t\t\t\t\t\t\t\treturn sid.error(err);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// update server stats locally\n\t\t\t\t\t\t\t\t\tevents.emit('serverStatsReceived', JSON.parse(data).data);\n\n\t\t\t\t\t\t\t\t\t// log success to gui console\n\t\t\t\t\t\t\t\t\tsid.write('The last person signed in has been removed.');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if(sid.value.match(/(first (person|student|name|entry|row))/gi)) {\n\t\t\t\t\t\t\t//remove the first student signed in\n\t\t\t\t\t\t\tif(sid.value.match(/(new)/gi)) {\n\t\t\t\t\t\t\t\tsid.command('/event/delete/top/1/new',function(err) {\n\t\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\t\treturn sid.error('The event requested could not be removed: '+err);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tsid.write('The first new person signed in has been removed.');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//'event/delete/(top|bottom|id)/(amount|amount|id)/flag\n\t\t\t\t\t\t\t\tsid.command('/event/delete/top/1',function(err) {\n\t\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\t\treturn sid.error('The event requested could not be removed: '+err);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tsid.write('The first person signed in has been removed.');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if(sid.value.match(/(people|persons|names|students|rows)/gi)) {\n\t\t\t\t\t\t\t//remove x amount of people\n\t\t\t\t\t\t\tsid.error('I can\\'t do that yet.');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsid.error();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(sid.temp = sid.value.match(/(last|first|latest)(\\ )+([0-9]+)(\\ )+(new)?(\\ )*(people|students|names|rows|entries)/gi)) {\n\t\t\t\t\t\tif(sid.value.match(/(new)/gi)) {\n\t\t\t\t\t\t\tsid.write('The last '+sid.temp[0].split(' ')[1]+' new people have been deleted.');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsid.write('The last '+sid.temp[0].split(' ')[1]+' people have been deleted.');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsid.error();\n\t\t\t\t\t}\n\t\t\t\t} else if(sid.value.match(/(set|event|name|speaker|company|talk|speech|presentation)/gi)) {\n\t\t\t\t\tif(sid.temp = sid.value.match(/([\"']{1})([a-z\\ 0-9\\.\\,\\-\\_\\+\\=\\(\\)\\:\\;\\/\\%\\$\\#\\@\\!\\*]+)([\"']{1})/gi)) {\n\t\t\t\t\t\tsid.command('/event/name/'+encodeURIComponent(sid.temp[0].substring(1,sid.temp[0].length-1)),function(err) {\n\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\treturn sid.error('The event\\'s name could not be set: '+err);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\tsid.write('This event\\'s name has been set to '+sid.temp[0]);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsid.error();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvar xhr = new XMLHttpRequest();\n\t\t\t\t\txhr.open('GET','http://navigator-fixed.rhcloud.com/apis/askcom/http://www.ask.com/web?q='+encodeURIComponent(sid.value.split('?')[0])+'&qsrc=0&o=0&l=dir',true);\n\t\t\t\t\txhr.send();\n\t\t\t\t\txhr.addEventListener('readystatechange',function() {\n\t\t\t\t\t\tif(this.readyState == 4 && this.status == 200) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar wrapper = document.createElement('div');\n\t\t\t\t\t\t\twrapper.innerHTML = this.responseText;\n\n\t\t\t\t\t\t\tvar found = false;\n\n\t\t\t\t\t\t\tvar ansrs = wrapper.getElementsByClassName('tsrc_answ');\n\t\t\t\t\t\t\tvar rsrs = wrapper.getElementsByClassName('rightrail-web-result-description');\n\t\t\t\t\t\t\tvar wres = wrapper.getElementsByClassName('web-result-description');\n\n\t\t\t\t\t\t\tif((ansrs.length || rsrs.length) && wres.length && Math.round(Math.random() * 50) > 25) {\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t\tanswer = wres.item(Math.round(Math.random() * Math.min((wres.length - 1), 3))).innerHTML;\n\t\t\t\t\t\t\t\tanswer = answer.split(\"\\\"\\>\\ More\")[0];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tif(ansrs.length && rsrs.length) {\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t\tif(Math.round(Math.random() * 10) > 5) {\n\t\t\t\t\t\t\t\t\tanswer = ansrs.item(Math.round(Math.random() * (ansrs.length - 1))).children[1].children[1].innerHTML;\n\t\t\t\t\t\t\t\t\tanswer = answer.split(\"\\\"\\>Read\\ More\")[0];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tanswer = rsrs.item(Math.round(Math.random() * (rsrs.length - 1))).innerHTML;\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(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tif(ansrs.length) {\n\t\t\t\t\t\t\t\tanswer = ansrs.item(Math.round(Math.random() * (ansrs.length - 1))).children[1].children[1].innerHTML;\n\t\t\t\t\t\t\t\tanswer = answer.split(\"\\\"\\>Read\\ More\")[0];\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tif(rsrs.length) {\n\t\t\t\t\t\t\t\tanswer = rsrs.item(Math.round(Math.random() * (rsrs.length - 1))).innerHTML;\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tif(wres.length) {\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t\tanswer = wres.item(Math.round(Math.random() * Math.min((wres.length - 1), 3))).innerHTML;\n\t\t\t\t\t\t\t\tanswer = answer.split(\"\\\"\\>\\ More\")[0];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tsid.error();\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsid.error();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// strip first two numbers from student ID\n\t\t\t\tif(sid.value.match(/^20(00|000)[0-9]{5,6}/gi)) {\n\t\t\t\t\tsid.value = sid.value.substring(2, sid.value.length);\n\t\t\t\t}\n\n\t\t\t\t// if the registering-new-student 'reg' property is set on the input and value matches a string,\n\t\t\t\t// or if there is no 'reg' property set and the value matches a number (for a student id), continue\n\t\t\t\tif((!sid.reg && sid.value.match(/^(00|000)[0-9]{5,6}/gi)) || (sid.reg && sid.dataState != null)) {\n\t\t\t\t\t// if the 'register' flag is set, meaning we want to add a new entry and\n\t\t\t\t\t// that a dataState exists\n\t\t\t\t\tif(sid.reg && sid.dataState) {\n\t\t\t\t\t\t// check which 'input' stage the new user is on\n\t\t\t\t\t\tif(sid.dataState == 1) {\n\t\t\t\t\t\t\t// check to see that a first and last name are entered\n\t\t\t\t\t\t\tif(sid.value.match(/^[a-z\\'\\-]+(\\ )[a-z\\'\\-]+/gi)) {\n\t\t\t\t\t\t\t\t// collect stuname and move on to next data state\n\t\t\t\t\t\t\t\tsid.dataState = 2;\n\n\t\t\t\t\t\t\t\t// parse first and last name from sid.value by splitting by spaces\n\t\t\t\t\t\t\t\t// and assigning values to sid.fname and sid.lname respectively\n\t\t\t\t\t\t\t\tsid.fname = sid.value.split(' ')[0];\n\t\t\t\t\t\t\t\tsid.lname = sid.value.split(' ')[1];\n\n\t\t\t\t\t\t\t\t// prompt student to enter the next dataState value (year)\n\t\t\t\t\t\t\t\tsid.placeholder = 'Enter graduating year to continue...';\n\n\t\t\t\t\t\t\t\t// reset input value\n\t\t\t\t\t\t\t\tsid.value = '';\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// if an invalid name is entered, \n\t\t\t\t\t\t\t\tsid.error('Please enter a valid name.');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if(sid.dataState == 2) {\n\t\t\t\t\t\t\t// collect year and move on to next data state\n\t\t\t\t\t\t\tsid.dataState = 3;\n\n\t\t\t\t\t\t\t// set sid.year to current sid value to save entered value (year)\n\t\t\t\t\t\t\tsid.year = sid.value;\n\n\t\t\t\t\t\t\t// prompt student to enter the next dataState value (major)\n\t\t\t\t\t\t\tsid.placeholder = 'Please enter your major...';\n\n\t\t\t\t\t\t\t// reset input value\n\t\t\t\t\t\t\tsid.value = '';\n\n\t\t\t\t\t\t} else if(sid.dataState == 3) {\n\t\t\t\t\t\t\t// collect 'major' and set dataState flag to 0. This tells the program\n\t\t\t\t\t\t\t// that the registration process is ending and must be reset.\n\t\t\t\t\t\t\tsid.dataState = 0;\n\n\t\t\t\t\t\t\t// set sid.major to current sid value to save entered value (major)\n\t\t\t\t\t\t\tsid.major = sid.value;\n\n\t\t\t\t\t\t\t// prompt student to enter the next dataState value (email)\n\t\t\t\t\t\t\tsid.placeholder = 'Finally, enter your email to sign in...';\n\n\t\t\t\t\t\t\t// reset input value\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// store data to be sent as post request to server containing\n\t\t\t\t\t\t// entry information such as name, id, major, etc.\n\t\t\t\t\t\tvar data = \"id=\" + sid.value;\n\n\t\t\t\t\t\t// default uri for logging already existing entries\n\t\t\t\t\t\tvar uri = '/register';\n\n\t\t\t\t\t\t// if the 'reg' flag is set, but there is no dataState flag, or the dataState\n\t\t\t\t\t\t// flag is 0, this indicates the registration process has ended and must be reset.\n\t\t\t\t\t\tif(sid.reg && !sid.dataState) {\n\t\t\t\t\t\t\t// set sid.email to current sid value to save entered value (email)\n\t\t\t\t\t\t\tsid.email = sid.value;\n\n\t\t\t\t\t\t\t// reset input and placeholder values\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\tsid.placeholder = 'Scan your ID';\n\n\t\t\t\t\t\t\t// format outgoing data string with new student information\n\t\t\t\t\t\t\tdata = \t'student_id='\t+ sid.sid \t\t+ \t\t\t// contains student id\n\t\t\t\t\t\t\t\t\t'&first=' \t\t+ sid.fname \t+ \t\t\t// contains student first name\n\t\t\t\t\t\t\t\t\t'&last='\t\t+ sid.lname\t\t+\t\t\t// contains student last name\n\t\t\t\t\t\t\t\t\t'&year=' \t\t+ sid.year \t\t+\t\t\t// contains student year\n\t\t\t\t\t\t\t\t\t'&major='\t\t+ sid.major\t\t+\t\t\t// contains student major\n\t\t\t\t\t\t\t\t\t'&email='\t\t+ sid.email \t;\t\t\t// contains student email\n\n\t\t\t\t\t\t\t// update api request to register entry as new\n\t\t\t\t\t\t\turi = '/register/new';\n\n\t\t\t\t\t\t\t// reset 'reg' flag to end registration mode and clear the 'sid' field of our input field object\n\t\t\t\t\t\t\tsid.reg = false;\n\t\t\t\t\t\t\tsid.sid = null;\n\n\t\t\t\t\t\t\t// clear dataState flag to indicate no registration prompt is going to be shown\n\t\t\t\t\t\t\tsid.dataState = null;\n\n\t\t\t\t\t\t\t// advertise registration was successful\n\t\t\t\t\t\t\tsid.write('You have been successfully registered!');\n\n\t\t\t\t\t\t\t// if information is entered successfully, update registrant counter\n\t\t\t\t\t\t\tstats.registered++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// if program is no longer in 'registration' mode, send new data to the server\n\t\t\t\t\t\tvar xhr = new XMLHttpRequest();\n\t\t\t\t\t\txhr.open('POST', uri, true);\n\t\t\t\t\t\txhr.send(data);\n\t\t\t\t\t\txhr.addEventListener('readystatechange',function() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(this.readyState == 4 && this.status == 200) {\n\t\t\t\t\t\t\t\tvar student = JSON.parse(this.responseText);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsid.state = 2; // state of 2 tells input field to reset its value\n\n\t\t\t\t\t\t\t\t// if the entry exists in the server 'database'\n\t\t\t\t\t\t\t\tif(student.registered) {\n\t\t\t\t\t\t\t\t\t// check if the entry has already been updated with the server\n\t\t\t\t\t\t\t\t\tif(student.alreadyRegistered) {\n\t\t\t\t\t\t\t\t\t\t// output message to the input field\n\t\t\t\t\t\t\t\t\t\tsid.value = 'You have already been signed in!';\n\n\t\t\t\t\t\t\t\t\t\t// output message to the interface console\n\t\t\t\t\t\t\t\t\t\tsid.error('You cannot register more than once per event.');\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// output welcome message to the input field\n\t\t\t\t\t\t\t\t\t\tsid.value = 'Welcome, ' + student.fname + ' ' + student.lname;\n\n\t\t\t\t\t\t\t\t\t\t// broadcast 'register' event\n\t\t\t\t\t\t\t\t\t\tevents.emit('register', [stats.total]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tsid.value \t\t= '';\t\t\t\t\t\t// reset our input value\n\t\t\t\t\t\t\t\t\tsid.placeholder = \t\t\t\t\t\t\t// sets input with instructions for user\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t'Enter your name to continue...';\n\n\t\t\t\t\t\t\t\t\tsid.state \t\t= 3;\t\t\t\t\t\t// state of '3' tells input field to reset its value\n\t\t\t\t\t\t\t\t\tsid.dataState \t= 1;\n\t\t\t\t\t\t\t\t\tsid.reg \t\t= true;\t\t\t\t\t\t// tell app it is now in 'registration' mode\n\t\t\t\t\t\t\t\t\tsid.sid \t\t= student.id; \t\t\t\t// store student id in our main input field object\n\n\t\t\t\t\t\t\t\t\t// output registration message to the interface console\n\t\t\t\t\t\t\t\t\tsid.write('Welcome. Follow the steps above to register.');\n\n\t\t\t\t\t\t\t\t\t// play sound alert\n\t\t\t\t\t\t\t\t\tApp.playAlert();\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}\n\t\t\t\t} else {\n\t\t\t\t\tif(!sid.reg) {\n\t\t\t\t\t\tsid.write('Please enter a valid student ID.');\n\t\t\t\t\t} else {\t\n\t\t\t\t\t\tsid.write('Please enter your full name.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if(e.keyCode == 27) {\n\t\t\tif(sid.reg) {\n\t\t\t\tsid.state = 1;\n\t\t\t\tsid.reg = false;\n\t\t\t\tsid.value = '';\n\n\t\t\t\t// output default message\n\t\t\t\tsid.placeholder = 'Type your ID to continue...';\n\n\t\t\t\t// clear input\n\t\t\t\tsid.write('');\n\t\t\t}\n\t\t\tsid.blur();\n\t\t} else {\n\t\t\tif(sid.state == 2) {\n\t\t\t\t// change input value type from \n\t\t\t\tsid.state = 1;\n\t\t\t\tsid.value = '';\n\t\t\t} else if(sid.state == 3) {\n\t\t\t\t// clear student id input and set current input value\n\t\t\t\t// type to accept student's name\n\t\t\t\tsid.state = 1;\n\t\t\t\tsid.value = '';\n\t\t\t}\t\t\t\n\t\t}\n\t}","function storeData(){\r\n\t\tvar id \t\t\t\t= Math.floor(Math.random()*100000000001);\r\n\t\t//Gather up all our form field values and store in an object\r\n\t\t//Object properties contain an array with the form label and input value\r\n\t\tgetSelectedRadio();\r\n\t\tvar item \t\t\t\t= {};\r\n\t\t\titem.comicTitle\t\t= [\"Title of Comic:\", e('comicTitle').value];\r\n\t\t\titem.seriesTitle\t= [\"Title of Series:\", e('seriesTitle').value];\r\n\t\t\titem.issueNum\t\t= [\"Issue Number:\", e('issueNum').value];\r\n\t\t\titem.dateReleased\t= [\"Date Released:\", e('dateReleased').value];\r\n\t\t\titem.publisher\t\t= [\"Publisher:\", e('publisher').value];\r\n\t\t\titem.rateIssue\t\t= [\"Rate of Issue:\", e('rateIssue').value];\r\n\t\t\titem.genre \t\t\t= [\"Genre:\", e('genre').value];\r\n\t\t\titem.illStyle\t\t= [\"Illustration Style:\", styleValue];\r\n\t\t\titem.comments\t\t= [\"Comments:\", e('comments').value];\r\n\t\t//Save data into Local Storage: Use Stringify to convert our object to a string\r\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\r\n\t\talert(\"Comic saved to index!\");\r\n\t}","function onDataUpdate() {\n var data = JSON.parse(document.getElementsByTagName('textarea')[0].value);\n var dataKey = document.getElementById(\"dataKey\").value;\n scObj.update({\n data: data,\n dataKey: dataKey\n });\n}","_saveVocab() {\n let deutsch = document.querySelector(\".deutsch\").value;\n let englisch = document.querySelector(\".englisch\").value;\n let notiz = document.querySelector(\".notiz\").value;\n\n if (deutsch != \"\" || englisch != \"\"){\n\n // zurück zu input!!\n\n this._vokabeln.saveNew({\n deutsch: deutsch,\n englisch: englisch,\n notiz: notiz,\n //format: html,\n });\n\n // aus JS auf andere Seite leiten\n this._app.showVocabularyOverview();\n this._app.navigate(\"/\");\n\n } else {\n alert(\"Bitte alle Angaben ausfüllen!♥\");\n }\n }","function saveInfo() {\n\n let textarea = $(this).siblings(\"textarea\");\n let textAreaValue = textarea.val();\n let timeSlot = textarea.attr(\"time\");\n\n if(textAreaValue === \"\" && schedule[timeSlot]){\n //Remove key value pair from schedule if textArea is blank\n delete schedule[timeSlot];\n } else if (textAreaValue !== \"\"){\n schedule[timeSlot] = textAreaValue;\n }\n localStorage.setItem(\"schedule\", JSON.stringify(schedule));\n}","function readInp(){\n\tvar inp = document.getElementById(\"cfg\").value;\n\tvar without = interpret(inp);\n\tvar SymSet = new SymbolSet(without);\n\tvar startSym = SymSet.findSym(\"S\");\n\tvar sentence = SymSet.writeSymbol(startSym);\n\t//console.log(sentence);\n\tdocument.getElementById(\"output\").innerHTML += \"
      • \" + sentence + \"
      • \";\n}","function update() {\n\t\tUtil.txt.setLibraryBrowser( Util.fs.getLibraries() );\n\t\tUtil.txt.setFileBrowser( Util.fs.getNotes(currentLib) );\n\t\tUtil.txt.setInputText( Util.fs.getNoteContent(currentLib,currentNote) );\n\t}","function write() {\n var store = {};\n\n // store inputs\n var inputs = document.querySelectorAll('input');\n for(var i=0;i {\n\t controls.html(new_controls)\n\t content_holder.html(textarea)\n textarea.addClass('invalid')\n // TODO: on error, include error message\n })\n .done(answer => {\n\tif (has_pretty_content_holder)\n\t pretty_content_holder.html(answer)\n\trestore(newcontent)\n })\n }","function save() {\n\t\tdocument.getElementById(\"mySavedModel\").value = myDiagram.model.toJson();\n\t\tmyDiagram.isModified = false;\n\t}","function saveQuestion(){\n rightPane.innerHTML = templates.renderQuestionForm();\n var questionForm = document.getElementById(\"question-form\");\n questionForm.addEventListener('click', function(event){\n event.preventDefault();\n var target = event.target;\n var submit = document.querySelector(\"input.btn\");\n if (target === submit){\n var textArea = questionForm.querySelector('textarea').value;\n var nameInput = questionForm.querySelector('input[type=\"text\"]').value;\n var newEntry = {\n subject: nameInput, \n question: textArea,\n id: Math.random(),\n responses: []\n }\n var oldList = getStoredQuestions();\n oldList.push(newEntry);\n storeQuestions(oldList);\n var questionHtml = templates.renderQuestion({ \n questions: getStoredQuestions()\n });\n leftPane.innerHTML = questionHtml;\n questionForm.querySelector('textarea').value = \"\";\n questionForm.querySelector('input[type=\"text\"]').value = \"\"; \n addListeners();\n }\n });\n }","function save() {\n localStorage && localStorage.setItem(key, Y.JSON.stringify(data));\n }","function saveLayout() {\n var layout = []\n layout.push(myDiagram.model.nodeDataArray)\n layout.push(myDiagram.model.linkDataArray)\n var summarized = document.getElementById(\"summarized\").checked\n var save = prompt(\"Please enter a layout name\"); \n\t\tif (save != null) {\t\t\n\t\t\t\tvar data = {\n\t\t\t\t\t'name':save,\n\t\t\t\t\t\"layout\":layout,\n\t\t\t\t\t\"state\":summarized\n\t\t\t\t};\n\t\t\t\n\t\t\t/*send layout data to back end*/\n\t\t\t$.ajax({\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\t\tcontentType: 'application/json',\n\t\t\t\t\turl: '/save_layout',\n\t\t\t\t\tsuccess:function(text){\n\t\t\t\t\t\t//alert(text);\n\t\t\t\t\t}\n\t\t\t});\n\t\t}\n }","function backupInput() {\n lastInput = ELEMENTS.UPDATE_TEXTAREA.val();\n }","_save() {\n\t\tconst version = this._editor.model.document.version;\n\n\t\t// Operation may not result in a model change, so the document's version can be the same.\n\t\tif ( version === this._lastDocumentVersion ) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tthis._data = this._getData();\n\t\t\tthis._lastDocumentVersion = version;\n\t\t} catch ( err ) {\n\t\t\tconsole.error(\n\t\t\t\terr,\n\t\t\t\t'An error happened during restoring editor data. ' +\n\t\t\t\t'Editor will be restored from the previously saved data.'\n\t\t\t);\n\t\t}\n\t}","function save() {\n if (confirm('Are you sure you want to save the recording?')){\n let name = prompt('Enter a name of your recording')\n if (localStorage.getItem(name)== null) {\n document.getElementById('recordinglist').add(new Option(name));\n localStorage.setItem(name, sessionStorage.getItem('recording'));\n head = null;\n tail = null;\n sessionStorage.removeItem('recording');\n } else {alert('The name you entered already exists. Please try again and enter a different name.')}\n }\n }","function saveAsProgramToServer() {\n $formSingleModal.validate();\n if ($formSingleModal.valid()) {\n $('.modal').modal('hide'); // close all opened popups\n var xml = Blockly.Xml.workspaceToDom(blocklyWorkspace);\n var xmlText = Blockly.Xml.domToText(xml);\n var progName = $('#singleModalInput').val().trim();\n LOG.info('saveAs program ' + GUISTATE_C.getProgramName());\n PROGRAM.saveAsProgramToServer(progName, GUISTATE_C.getProgramTimestamp(), xmlText, function(result) {\n UTIL.response(result);\n if (result.rc === 'ok') {\n result.name = progName;\n result.programShared = false;\n GUISTATE_C.setProgram(result);\n MSG.displayInformation(result, \"MESSAGE_EDIT_SAVE_PROGRAM_AS\", result.message, GUISTATE_C.getProgramName());\n }\n });\n }\n }","function copyStorageToForm() {\n \"use strict\";\n // Set chosen hair type\n setFormHairType(sessionStorage.getItem(\"hair_type\"));\n\n // Set selected traits\n setFormTraits(sessionStorage.getItem(\"traits\"));\n}","function saveInfo(e) {\n e.preventDefault();\n //console.log(\"click\")\n var text = $(this).siblings('textarea').val().trim();\n var id = $(this).siblings('textarea').attr('id');\n\n localStorage.setItem(id, JSON.stringify(text));\n\n}","save () {\n\n // Validate\n if (this.checkValidity()) {\n\n // Collect input\n this.info.item = this.collectInput();\n\n // Show modal\n this.modal.show();\n }\n }","function saveText() {\n\t if (input.value.trim().length > 0) {\n\t var clientX = parseInt(input.style.left, 10);\n\t var clientY = parseInt(input.style.top, 10);\n\t var svg = (0, _utils.findSVGAtPoint)(clientX, clientY);\n\t if (!svg) {\n\t return;\n\t }\n\t\n\t var _getMetadata = (0, _utils.getMetadata)(svg),\n\t documentId = _getMetadata.documentId,\n\t pageNumber = _getMetadata.pageNumber;\n\t\n\t var rect = svg.getBoundingClientRect();\n\t var annotation = Object.assign({\n\t type: 'textbox',\n\t size: _textSize,\n\t color: _textColor,\n\t content: input.value.trim()\n\t }, (0, _utils.scaleDown)(svg, {\n\t x: clientX - rect.left,\n\t y: clientY - rect.top,\n\t width: input.offsetWidth,\n\t height: input.offsetHeight\n\t }));\n\t\n\t _PDFJSAnnotate2.default.getStoreAdapter().addAnnotation(documentId, pageNumber, annotation).then(function (annotation) {\n\t (0, _appendChild2.default)(svg, annotation);\n\t });\n\t }\n\t\n\t closeInput();\n\t}","function displayNotes (){\n if (localStorage.getItem(\"generalInfo\")){\n generalInfo = JSON.parse(localStorage.getItem(\"generalInfo\"));\n for(i = 0; i < generalInfo.length; i++){\n $(\"#inputEvent\"+generalInfo[i].display).attr(\"value\", generalInfo[i].notes);\n console.log($(\"#inputEvent\"+generalInfo[i].display));\n }\n }\n }","function saveAndExit() {\r\n\tvar form = document.getElementById( \"hiddenfieldform\" );\r\n\thidden.value = experior.getText(form);\r\n}","function savesaveInfoLocalStorage(evt){\n saveInfoLocalStorage[evt.currentTarget.name] = evt.currentTarget.value;\n setsaveInfoLocalStorage(saveInfoLocalStorage);\n}","function saveLocation (loc_name, user_id) {\n\tdocument.getElementById(loc_name + \"id\").className=\"edited-location hidden\";\n\tdocument.getElementById(loc_name + \"label\").className=\"edited-location\";\n\tdocument.getElementById(loc_name + \"save\").className=\"checklist hidden\";\n\tdocument.getElementById(loc_name + \"edit\").className=\"pencil orange left\";\n\n var input = document.getElementById(loc_name + \"id\").value;\n var prevLoc = document.getElementById(loc_name + \"label\").innerText;\n\n var error = false;\n var errorMsg = \"\";\n\n if (input == \"\") {\n \t\terror = true;\n \t\terrorMsg += \"Location cannot be blank.\";\n }\n}","function saveData()\n{\n\t\"use strict\";\n\n\n\tvar currentDate = new Date();\n\tvar year, month, day;\n\tyear = currentDate.getFullYear();\n\t\n\tif (currentDate.getMonth().toString().length === 1)\n\t{\n\t\tmonth = \"0\" + currentDate.getMonth().toString(); \n\t}\n\telse\n\t{\n\t\tmonth = currentDate.getMonth().toString();\n\t}\n\t\n\tif (currentDate.getDate().toString().length === 1)\n\t{\n\t\tday = \"0\" + currentDate.getDate().toString(); \n\t}\n\telse\n\t{\n\t\tday = currentDate.getDate().toString();\n\t}\n\t\n\tcreationDate = year + month + day;\n\talert(creationDate);\n\tcreationTime = currentDate.getHours() + \":\" + currentDate.getMinutes();\n\n\t\n\ttitle = document.getElementById(\"txtTitle\").value;\n content = document.getElementById(\"txtContent\").value;\n\tteacherName = document.getElementById(\"txtTeacherName\").value;\n\tsubject = document.getElementById(\"txtSubject\").value;\n\t\n\talert(\"Your information has been saved\");\n\n\tdeadline = document.getElementById(\"txtDeadline\").value;\n\n\n\t// Add code to store rest of input in variables here\n \n// Store the information in localstorage\n localStorage.setItem(\"title\", title);\n localStorage.setItem(\"content\", content);\n\tlocalStorage.setItem(\"teacherName\", teacherName);\n\n \n //alert to inform user data has been saved.\n\n}","function saveNotesTextArea(e){\n\t YAHOO.util.Event.preventDefault(e);\n\t var notesSpaceTest = /^\\s+$/;\n\t var sellerNotesGot = document.getElementById('sellerNotesNew').value;\n\t sellerNotesGot = sellerNotesGot.replace(/^\\s+|\\s+$/g,\"\");\n\t\tif (notesSpaceTest.test(sellerNotesGot) || sellerNotesGot == \"\"){\n\t\t\tdocument.getElementById('sellerNotesNew').value = \"\";\n\t\t\tdocument.getElementById('addInstructions').title = document.getElementById('addInstructions').childNodes[0].nodeValue;\n\t\t\tYAHOO.util.Dom.removeClass(document.getElementById(\"changeInstructions\"), 'show')\n\t\t\tYAHOO.util.Dom.addClass(document.getElementById('changeInstructions'), 'hide');\n\t\t\tYAHOO.util.Dom.removeClass(document.getElementById(\"addInstructions\"), 'hide')\n\t\t\tYAHOO.util.Dom.addClass(document.getElementById('addInstructions'), 'show');\n\t\t\tdocument.getElementById('notesCharacterCount').innerHTML = \"255\";\n\t\t}\n\t\telse{\n\t\t\tdocument.getElementById('sellerNotesNew').value = sellerNotesGot;\n\t\t\tdocument.getElementById('changeInstructions').title = document.getElementById('changeInstructions').childNodes[0].nodeValue;\n\t\t\tYAHOO.util.Dom.removeClass(document.getElementById(\"changeInstructions\"), 'hide')\n\t\t\tYAHOO.util.Dom.addClass(document.getElementById('changeInstructions'), 'show');\n\t\t\tYAHOO.util.Dom.removeClass(document.getElementById(\"addInstructions\"), 'show')\n\t\t\tYAHOO.util.Dom.addClass(document.getElementById('addInstructions'), 'hide');\n\t\t\ttruncatedInstructionShown(sellerNotesGot);\n\t\t}\n\tPAYPAL.reset.margin.orderInfo.saveInstructions();\n\tdocument.getElementById('sellerNotesCont').style.display = \"none\";\n\tYAHOO.util.Dom.removeClass(document.getElementById(\"addInstructions\"), 'opened')\n\tYAHOO.util.Dom.removeClass(document.getElementById(\"changeInstructions\"), 'opened')\n}","function loaddata(){\n\t\tvar data1 = localStorage.getItem(\"infor_sku\") || \"\";\n\t\tvar data2 = localStorage.getItem(\"pd\") || \"\";\n\t\tvar data3 = localStorage.getItem(\"sh\") || \"\";\n\t\tif (!!data1) { sku_items = JSON.parse(data1); }\n\t\tif (!!data2) { pd_items = JSON.parse(data2); }\n\t\tif (!!data3) { sh_items = JSON.parse(data3); }\n\t\t$(\"#datafile\").val( localStorage.getItem(\"datafile\") ||\"http://123.123.123.250:5000/\");\n\t\t$(\"#myfile\").val( localStorage.getItem(\"myfile\") ||\"spchkm/\");\n\t\t\n\t}","function FunctionUpdate() \r\n\r\n{\r\nvar x = document.forms[\"myForm\"][\"txt_notepad_title\"].value;\r\nvar y = document.forms[\"myForm\"][\"txt_area\"].value;\r\n \r\nif (x == \"\")\r\n \r\n{\r\n \r\nalert(\"Please Choose Notepad Title From Table Below To Update\");\r\n \r\n}\r\n\r\nelse if(y == \"\")\r\n\r\n{\r\n\t\r\nalert(\"Please Fill In The TextBox Area\");\r\n\r\n}\r\n \r\nelse\r\n \r\n{\r\n\r\n//Update Local Storage--------------------------------------------------------------------------------------------->\r\nvar title = document.forms.myForm.txt_notepad_title.value;\r\nvar text = document.forms.myForm.txt_area.value;\r\n\t\r\nlocalStorage.setItem(title, text);\r\ndocument.getElementById(\"myForm\").reset();\r\nalert(\"Update Succesfull\");\r\ndoShowAll();\r\n\r\n}\r\n}"],"string":"[\n \"function applyCurrentSyllable(){\\n currentSyllableIndex = document.getElementById(\\\"syllable\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n}\",\n \"function toChangeSyllableData(){\\n if(syllables.length > 0){\\n currentType = syllables[0].type;\\n currentColor = syllables[0].color;\\n }\\n pushedNeumeVariations = false;\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n}\",\n \"function applySyllableDataChanges(){\\n \\n var page = document.getElementById(\\\"page\\\").value;\\n var line = document.getElementById(\\\"line\\\").value;\\n var staff = document.getElementById(\\\"staff\\\").value;\\n var syllable = document.getElementById(\\\"syllabletext\\\").value;\\n var initial = document.getElementById(\\\"initial\\\").checked;\\n var color = document.getElementById(\\\"color\\\").value;\\n var comment = document.getElementById(\\\"comment\\\").value;\\n \\n if(page){\\n currentSyllable.page = page;\\n }\\n if(line){\\n currentSyllable.line = line;\\n }\\n \\n if(staff){\\n currentSyllable.staff = staff;\\n }\\n \\n if(syllable){\\n currentSyllable.syllable = syllable;\\n }\\n \\n currentSyllable.initial = initial;\\n \\n if(color && color != \\\"none\\\"){\\n currentSyllable.color = color;\\n }\\n \\n if(comment){\\n currentSyllable.comment = comment;\\n }\\n \\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n createSVGOutput();\\n}\",\n \"save() {\\n const newBasicBinary = trs80_base_1.parseBasicText(this.textarea.value);\\n if (typeof newBasicBinary === \\\"string\\\") {\\n this.showError(newBasicBinary);\\n return;\\n }\\n const newBasicProgram = trs80_base_1.decodeBasicProgram(newBasicBinary);\\n if (newBasicProgram === undefined) {\\n // I don't know how this might happen.\\n this.showError(\\\"Can't decode Basic program\\\");\\n return;\\n }\\n this.trs80.loadBasicProgram(newBasicProgram);\\n this.close();\\n }\",\n \"function toSyllable(){\\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"function updateOutput8() {\\n localStorage.setItem('info8', input_textarea8.value)\\n}\",\n \"function updateOutput7() {\\n localStorage.setItem('info7', input_textarea7.value)\\n}\",\n \"function deleteSyllable(){\\n syllables.splice(currentSyllableIndex, 1);\\n \\n currentSyllableIndex = 0;\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function importSave() {\\r\\n\\tlet data = prompt(\\\"Paste your save string here\\\");\\r\\n\\r\\n\\tif (data !== null && data !== '')\\r\\n\\t\\tparseAndImportData(data);\\r\\n\\t\\t\\r\\n\\trunAll();\\r\\n}\",\n \"save() {\\n this._toggleSaveThrobber();\\n try {\\n this._readFromForm();\\n var resp = this.dao.save();\\n if (!resp) {\\n alert(\\\"Error while saving taxon.\\\")\\n } else {\\n var jsonObj = JSON.parse(resp);\\n if (jsonObj[0].response == false ) {\\n alert(jsonObj[1].response);\\n } else {\\n console.log(this.dao)\\n // make sure the latin name input field is showing the correct name, reload data from server\\n document.getElementById('latin_name').value = this.dao.unique_name;\\n alert('Saved');\\n }\\n }\\n } catch(e) {\\n alert(e);\\n console.log(e);\\n }\\n this._toggleSaveThrobber();\\n }\",\n \"function updateOutput9() {\\n localStorage.setItem('info9', input_textarea9.value)\\n}\",\n \"function showCurrentLangData(){\\n document.getElementById('title').value=point.currentLangData.title;\\n document.getElementById('prim').value=point.currentLangData.prim;\\n document.getElementById('primsaf').value=point.currentLangData.primsaf;\\n autosize.update(document.getElementById('primsaf'));\\n autosize.update(document.getElementById('prim'));\\n for(var i=0;i 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"function stepSyllable() {\\n drums();\\n try {\\n var s = poem[stanza];\\n\\n var v = s[verse];\\n if (!v) {\\n stepStanza();\\n return stepSyllable();\\n }\\n var w = v.w[word];\\n if (!w) {\\n stepVerse();\\n return stepSyllable();\\n }\\n var sb = w.s[syllable];\\n if (!sb) {\\n stepWord();\\n return stepSyllable();\\n }\\n\\n printSyllable(sb);\\n\\n var note = chooseNote(sb);\\n playNote(note);\\n sock.write(deaccent(sb));\\n syllable++\\n\\n } catch (e) {\\n stepStanza();\\n intro.draw(1);\\n }\\n}\",\n \"function updateOutput1() {\\n localStorage.setItem('info1', input_textarea1.value)\\n}\",\n \"function save() {\\r\\n\\t\\tvar str = myDiagram.model.toJson();\\r\\n\\t\\tdocument.getElementById(\\\"mySavedModel\\\").value = str;\\r\\n\\t }\",\n \"function saveData() {\\n\\t\\tif(!key){\\n\\t\\t\\tvar id \\t\\t\\t\\t\\t\\t= Math.floor(Math.random()*1000001);\\n\\t\\t}else{\\n\\t\\t\\tid = key;\\n\\t\\t}\\n\\t\\t\\n\\t\\tgetRadioValue ();\\n\\t\\tgetCheckbox();\\n\\t\\tvar item\\t\\t\\t\\t\\t\\t= {};\\n\\t\\t\\t item.kname\\t\\t\\t\\t= [\\\"Kid's Name:\\\", $(\\\"kname\\\").value];\\n\\t\\t\\t item.pname\\t\\t\\t\\t= [\\\"Parent's Name:\\\", $(\\\"pname\\\").value];\\n\\t\\t\\t item.phone\\t\\t\\t\\t= [\\\"Phone #:\\\", $(\\\"phone\\\").value];\\n\\t\\t\\t item.email\\t\\t\\t\\t= [\\\"Email:\\\", $(\\\"email\\\").value];\\n\\t\\t\\t item.date\\t\\t\\t\\t= [\\\"Play Date:\\\", $(\\\"date\\\").value];\\n\\t\\t\\t item.sex\\t\\t\\t\\t= [\\\"Sex:\\\", sexValue];\\n\\t\\t\\t item.choice\\t\\t\\t= [\\\"Best Time of Week:\\\", $(\\\"choice\\\").value];\\n\\t\\t\\t item.select\\t\\t\\t= [\\\"Best Time of Day:\\\", $(\\\"dayTimes\\\").value];\\n\\t\\t\\t item.allergies\\t\\t= [\\\"Needs:\\\", hasAllergy];\\n\\t\\t\\t item.comments\\t\\t\\t= [\\\"Notes:\\\", $(\\\"comments\\\").value];\\n\\t\\t\\t item.outgoing\\t\\t\\t= [\\\"How Outgoing? 1-10:\\\", $(\\\"outgoing\\\").value];\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\n\\t\\talert(\\\"Saved!\\\");\\n\\t}\",\n \"function toSyllableFromVariations(){\\n pushedVariations = false;\\n variations = new Array();\\n \\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function restoreStudy(){\\n $('[data-save]').each(function(){\\n $(this).val(localStorage.getItem(prefix+'/'+currentTopic+'-'+$(this).attr('data-save')));\\n });\\n }\",\n \"function saveStage(stateNum)\\n {\\n try\\n {\\n document.getElementById('longName').value = trim(document.getElementById('longName').value);\\n if(document.getElementById('longName').value.match('#'))\\n {\\n document.getElementById('longName').value = document.getElementById('longName').value.replace(/#/g,\\\"\\\");\\n } \\n warn(stateNum);\\n \\n }\\n catch(ex)\\n {}\\n \\n }\",\n \"function saveEditCaption(e, data) {\\n var $wp = $('.write-pages li'), // the list of book pages\\n $page = $($wp.get(editIndex)), // the current page\\n $caption = $page.find('p.thr-caption'),\\n tooLong = typeof(data.value) == 'string' &&\\n data.value.length > maxCaptionLength;\\n //console.log('saving', data.value, 'was', $caption.html());\\n $caption.html(data.value).toggleClass('text-too-long', tooLong);\\n setModified();\\n $editDialog.find('p.thr-caption').toggleClass('text-too-long', tooLong);\\n }\",\n \"function onSaveAs(name) {\\n\\n // do we have a current file name?\\n if(name == null) {\\n // no, so choose one\\n let file = dialog.showSaveDialog( mainWindow, {\\n filters: [\\n { name: 'System Exclusive Dump', extensions: ['syx'] },\\n { name: 'All Files', extensions: ['*'] }\\n ]\\n });\\n if(file == undefined || !file.length) {\\n return;\\n }\\n name = file; \\n }\\n\\n // prepare the handler to receive the serialised SYSEX\\n // data from the form and save it to the file\\n ipcMain.once('save-midi-rs', function(e, data) {\\n try { \\n fs.writeFileSync(name, new Buffer(data));\\n setCurrentFileName(name);\\n }\\n catch(e) {\\n dialog.showErrorBox(\\\"Failed To Save\\\", e.message);\\n setCurrentFileName(null);\\n }\\n });\\n\\n // request the serialized SYSEX data from the form\\n mainWindow.webContents.send('save-midi-rq');\\n}\",\n \"livelyPrepareSave() {\\n // this.setAttribute(\\\"data-mydata\\\", this.get(\\\"#textField\\\").value);\\n }\",\n \"function updateOutput6() {\\n localStorage.setItem('info6', input_textarea6.value)\\n}\",\n \"function save() {\\n str = myDiagram.model.toJson();\\n document.getElementById(\\\"mySavedModel\\\").value = str;\\n }\",\n \"function textToView () {\\n\\n var exhistData = JSON.parse(localStorage.getItem(\\\"setText\\\"));\\n\\n if (exhistData) {\\n saveText = exhistData;\\n }\\n\\n textToView();\\n}\",\n \"saveData() {\\n if (this.s.unavailable()) {\\n return;\\n }\\n\\n for (const val of this.dispField.items) {\\n this.s.set(val, this.dispField.checked(val));\\n }\\n\\n this.s.set(\\\"unit\\\", this.unitField.get());\\n this.s.set(\\\"format\\\", this.formatField.get());\\n this.s.set(\\\"sort\\\", this.sortableField.toArray());\\n }\",\n \"function savedData() {\\n var i1 = localStorage.getItem('inputText1');\\n inOutText1.text(i1);\\n var i2 = localStorage.getItem('inputText2');\\n inOutText2.text(i2);\\n var i3 = localStorage.getItem('inputText3');\\n inOutText3.text(i3);\\n var i4 = localStorage.getItem('inputText4');\\n inOutText4.text(i4);\\n var i5 = localStorage.getItem('inputText5');\\n inOutText5.text(i5);\\n var i6 = localStorage.getItem('inputText6');\\n inOutText6.text(i6);\\n var i7 = localStorage.getItem('inputText7');\\n inOutText7.text(i7);\\n var i8 = localStorage.getItem('inputText8');\\n inOutText8.text(i8);\\n var i9 = localStorage.getItem('inputText9');\\n inOutText9.text(i9);\\n $('#clear').on(\\\"click\\\", function () {\\n localStorage.clear();\\n });\\n\\n }\",\n \"function writeText() {\\n\\ttext.innerHTML = input.value;\\n\\tconst textSave = text.innerHTML;\\n\\tlocalStorage.setItem(\\\"textInStorage\\\", textSave); //textInStorage es un nombre que nosotras le damos\\n\\tconsole.log(textSave);\\n}\",\n \"function display_saved_note() {\\n if(check_web_storage_support() == true) {\\n result = localStorage.getItem('note');\\n }\\n if(result === null) {\\n result = \\\"\\\";\\n }\\n\\n document.getElementById('area').value = result;\\n}\",\n \"function data(origin){\\n switch (origin) {\\n case 0://// saving \\\"key\\\" and it \\\"value\\\" in localStorage\\n var input = document.getElementById(\\\"textMe\\\");\\n localStorage.setItem(\\\"text\\\", input.value);\\n var storedValue = localStorage.getItem(\\\"text\\\");\\n document.getElementById('outputMe').innerHTML = storedValue = \\\"NOW YOU'R SAVED\\\";\\n break;\\n\\n\\n case 1:/// clears typing area, but keeps data in localStorage\\n input = document.getElementById(\\\"textMe\\\");\\n input.value = \\\"\\\";\\n document.getElementById('outputMe').innerHTML = \\\"CAN TYPE AGAIN\\\";\\n break;\\n\\n\\n case 2:/// gets data from localStorage and displays at typing area\\n var lastText = localStorage.getItem(\\\"text\\\");\\n console.log(\\\"last text =\\\" + lastText);\\n document.getElementById('textMe').value = lastText;\\n document.getElementById('outputMe').innerHTML = \\\"LOOK I REMEMBER YOU\\\";\\n break;\\n\\n\\n case 3:/// clears all data from localStorage\\n input = document.getElementById(\\\"textMe\\\");\\n input.value = \\\"\\\";\\n localStorage.clear();\\n document.getElementById('outputMe').innerHTML = \\\"NOW IT IS EMTY\\\";\\n break;\\n\\n default:\\n\\n break;\\n }\\n\\n }\",\n \"function save() {\\n $editors.find('.text').each(function () {\\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\\n });\\n }\",\n \"function read() {\\n \\t// Keep the newline value for substitutin\\n \\t// when cleaning the
        \\n var newLine = String.fromCharCode(10);\\n \\t// Firefox adds a
        for each new line, we replace it back\\n \\t// to a regular '\\\\n'\\n var formattedValue = element.html().replace(/
        /ig,newLine).replace(/\\\\r/ig,'');\\n \\t// update the model\\n ngModel.$setViewValue(formattedValue);\\n \\t// Set the formated (cleaned) value back into\\n \\t// the element's html.\\n element.text(formattedValue);\\n }\",\n \"function setSave(e) {\\n e.preventDefault();\\n character.savingThrowModifier.strength = document.getElementById('strSave').value;\\n character.savingThrowModifier.dexterity = document.getElementById('dexSave').value;\\n character.savingThrowModifier.constitution = document.getElementById('conSave').value;\\n character.savingThrowModifier.intelligence = document.getElementById('intSave').value;\\n character.savingThrowModifier.wisdom = document.getElementById('wisSave').value;\\n character.savingThrowModifier.charisma = document.getElementById('chaSave').value;\\n}\",\n \"function load() {\\r\\n this.setContent(this.textarea.value);\\r\\n }\",\n \"function setData() {\\n\\n if (localStorage.length != 0) {\\n loadData();\\n document.getElementById('name').value = playerData.name;\\n document.getElementById('l1').innerHTML = playerData.live;\\n }\\n if (playerData.close == \\\"true\\\") {\\n document.getElementById('name').value = playerData.name;\\n gewLevel = playerData.diff;\\n document.getElementById('level').innerHTML = playerData.level;\\n document.getElementById('l1').innerHTML = playerData.live;\\n document.getElementById('score').innerHTML = playerData.highscore;\\n gewModus = playerData.design;\\n document.getElementById('a1').innerHTML = playerData.alien1;\\n document.getElementById('a2').innerHTML = playerData.alien2;\\n document.getElementById('a3').innerHTML = playerData.alien3;\\n document.getElementById('a4').innerHTML = playerData.alien4;\\n document.getElementById('a5').innerHTML = playerData.alien5;\\n }\\n }\",\n \"function intosc()\\n{\\n\\tvar theform = document.theform;\\n\\n\\ttheform.rules.value =\\n\\t\\ttheform.cats.value + \\\"\\\\n\\\" + \\n\\t\\ttheform.rewrite.value + \\\"\\\\n\\\" + \\n\\t\\ttheform.rules.value + \\\"\\\\n\\\";\\n}\",\n \"function readUserInput() {\\n\\tvar settings = {};\\n\\t//Plasmid Section\\n\\tsettings.plasmidname = readtxtField(\\\"txtPlasmidName\\\");\\n\\tsettings.plasmidnameon = readField(\\\"bolShowPlasmidName\\\");\\n\\tsettings.plasmidsize = readField(\\\"txtPlasmidSize\\\");\\n\\tsettings.plasmidsizeon = readField(\\\"bolShowPlasmidSize\\\");\\n\\tsettings.plasmidradius = readField(\\\"txtRadius\\\");\\n\\tsettings.bbwidth = readField(\\\"txtBackBoneWidth\\\");\\n\\tsettings.bbcolor = readField(\\\"optBackBoneColor\\\");\\n\\tsettings.bbon = readField(\\\"bolShowBackBone\\\");\\n\\t//Feature Section (General)\\n\\tsettings.fwidth = readField(\\\"txtFeatureWidth\\\");\\n\\tsettings.fstrokewidth = readField(\\\"txtFeatureStrokeWidth\\\");\\n\\tsettings.fstrokered = readField(\\\"txtStrokeRed\\\");\\n\\tsettings.fstrokegreen = readField(\\\"txtStrokeGreen\\\");\\n\\tsettings.fstrokeblue = readField(\\\"txtStrokeBlue\\\");\\n\\tsettings.farrowlength = readField(\\\"txtArrowHeadLength\\\");\\n\\tsettings.farrowwidth = readField(\\\"txtArrowHeadWidth\\\");\\n\\t//Text section\\n\\tsettings.txton = readField(\\\"bolShowText\\\");\\n\\tsettings.txtfamily = readField(\\\"optFontFamily\\\");\\n\\tsettings.txtsize = readField(\\\"txtFontSize\\\");\\n\\tsettings.txtcolor = readField(\\\"optFontColor\\\");\\n\\tsettings.txtbold = readField(\\\"bolTextBold\\\");\\n\\tsettings.txtloc = readField(\\\"optTextLocation\\\");\\n\\t//Canvas section\\n\\tsettings.cw = readField(\\\"txtCanvasWidth\\\");\\n\\tsettings.ch = readField(\\\"txtCanvasHeight\\\");\\n\\tsettings.error = 0;\\n\\tsettings.errmsg = \\\"\\\";\\n\\t//Calculated properties\\n\\tsettings.ox = settings.cw / 2;\\n\\tsettings.oy = settings.ch / 2;\\n\\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\\n\\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\\n\\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\\n\\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\\n\\treturn settings;\\n}\",\n \"function load() {\\n this.setContent(this.textarea.value);\\n }\",\n \"function read() {\\n var text = element.text();\\n ngModel.$setViewValue(text);\\n }\",\n \"function saveData(ranKey) {\\n //random key number\\n //console.log(\\\"save it enter\\\");\\n if(!ranKey){\\n var id = Math.floor(Math.random()*120211);\\n }else{\\n id = ranKey;\\n }\\n getCheckbox();\\n getRadio();\\n var field={};\\n\\n field.title=[\\\"Book Title\\\", $(\\\"Title\\\").value];\\n field.date=[\\\"Date Added:\\\", $(\\\"date\\\").value];\\n field.booknumber=[\\\"Issue Number\\\", $(\\\"booknumber\\\").value];\\n field.coverstyle=[\\\"Cover Style\\\", styleValue];\\n field.read=[\\\"Read\\\", readValue];\\n field.notes=[\\\"Notes\\\", $(\\\"Notes\\\").value];\\n field.grade=[\\\"CCG Grading\\\", $(\\\"slider\\\").value];\\n\\n //Function to convert data into strings (stringify)\\n\\n localStorage.setItem(id, JSON.stringify(field));\\n alert(\\\"Book Saved\\\");\\n }\",\n \"function saveInput() {\\n\\t$(\\\"button\\\").on(\\\"click\\\", function () {\\n\\t\\tevent.preventDefault(event);\\n\\t\\tvar button = $(this);\\n\\n\\t\\tlocalStorage.setItem(\\n\\t\\t\\tbutton[0].form.nextElementSibling.dataset.value,\\n\\t\\t\\tbutton[0].form[0].value\\n\\t\\t);\\n\\t});\\n}\",\n \"function updateOutput5() {\\n localStorage.setItem('info5', input_textarea5.value)\\n}\",\n \"function savestate() {\\n state = $(\\\"#states\\\").val();\\n $(\\\"#state\\\").val(state);\\n}\",\n \"function save() {\\n if (document.getElementById('workSettings').value < 1) {\\n alert(usePositiveNumberText[localStorage.getItem('language')]);\\n return;\\n } else if (document.getElementById('shortBreakSettings').value < 1) {\\n alert(usePositiveNumberText[localStorage.getItem('language')]);\\n return;\\n } else if (document.getElementById('longBreakSettings').value < 1) {\\n alert(usePositiveNumberText[localStorage.getItem('language')]);\\n return;\\n }\\n\\n valueWork = document.getElementById('workSettings').value;\\n valueShort = document.getElementById('shortBreakSettings').value;\\n valueLong = document.getElementById('longBreakSettings').value;\\n valueSound = document.getElementById('volume-slider').value;\\n document.getElementById('clock').innerHTML = `${valueWork}:00`;\\n\\n localStorage.setItem('workSettings', `${valueWork}`);\\n localStorage.setItem('shortBreakSettings', `${valueShort}`);\\n localStorage.setItem('longBreakSettings', `${valueLong}`);\\n localStorage.setItem('volume-slider', `${valueSound}`);\\n}\",\n \"function input(){\\n\\n serviceKeyPath = readline.question(\\\"Input Service key's absolute path : \\\");\\n // db_list = readline.question(\\\"Input database list path : (bluelens-browser/db_list) \\\");\\n // if(db_list.length == 0 ){db_list = \\\"bluelens-browser/db_list\\\";}\\n var info = {'serviceKeyPath': serviceKeyPath, 'topPath' : process.cwd()};\\n if(fs.existsSync(infoPath)===false){fs.mkdirSync(infoPath)};\\n fs.writeFile(infoPath+\\\"blu-info.json\\\", JSON.stringify(info), function(err) {\\n if(err) {\\n return console.log(err);\\n }\\n console.log(\\\"save blu-info.json finish in ~/.blu directory\\\");\\n process.exit(0);\\n });\\n}\",\n \"function restore_inputs () {\\n\\n\\t\\t\\t\\tparse_variables();\\n\\n\\t\\t\\t\\t$('.form-w').val(W);\\n\\t\\t\\t\\t$('.form-b').val(B);\\n\\t\\t\\t\\t$('.form-mf').val(Mf);\\n\\t\\t\\t\\t$('.form-mt').val(Mt);\\n\\n\\t\\t\\t}\",\n \"function save(e) {\\n let saveBtn = e.target;\\n let inputBox = event.target.parentNode.lastChild;\\n event.target.parentNode.firstChild.textContent = inputBox.value;\\n inputBox.style.display = \\\"none\\\";\\n saveBtn.style.display=\\\"none\\\";\\n let editBtn = event.target.nextSibling;\\n editBtn.style.display = \\\"inline\\\";\\n \\n}\",\n \"readData() {\\n\\t\\t// Se non esiste, lo crea, con le impostazioni di default\\n\\t\\tif (!fs.existsSync(this.filepath)) {\\n\\t\\t\\tlogger.debug('Creato nuovo file di impostazioni.');\\n\\t\\t\\tthis.writeData();\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\ttry {\\n\\t\\t\\tconst text = fs.readFileSync(this.filepath, 'utf8');\\n\\t\\t\\t// file YAML => {}\\n\\t\\t\\tconst data = yaml.safeLoad(text);\\n\\n\\t\\t\\t// NOTE: validazione in lettura su readData, mentre in scrittura su setData.\\n\\t\\t\\tif (!isValid(data)) {\\n\\t\\t\\t\\tthrow new Error('impostazioni del file non valide.');\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tthis.data = data;\\n\\t\\t\\t}\\n\\t\\t} catch (e) {\\n\\t\\t\\tlogger.error(`Errore nella lettura file yaml: ${e.toString()}`);\\n\\t\\t}\\n\\t}\",\n \"handleSpoofaxEdit(data)\\r\\n {\\r\\n console.log(\\\"Incoming Spoofax edit: \\\", JSON.stringify(data));\\r\\n switch (data[\\\"opType\\\"]) \\r\\n {\\r\\n case \\\"SetPropertyOp\\\":\\r\\n var lineArr = this.spoofaxData[\\\"model_0.dsl\\\"].split('%0A');\\r\\n lineArr[data[\\\"lineIndex\\\"]] = data[\\\"text\\\"];\\r\\n var outputText = '';\\r\\n for (let i = 0; i < lineArr.length - 1; i++) \\r\\n {\\r\\n outputText += lineArr[i] + '%0A';\\r\\n }\\r\\n outputText += lineArr[lineArr.length - 1];\\r\\n if (lineArr[lineArr.length - 1].length == 0)\\r\\n { \\r\\n outputText += '%0A';\\r\\n }\\r\\n this.spoofaxData[\\\"model_0.dsl\\\"] = outputText;\\r\\n break;\\r\\n \\r\\n default:\\r\\n break;\\r\\n }\\r\\n\\r\\n this.updateSpoofaxData(this.spoofaxData);\\r\\n }\",\n \"function save() {\\n str = myDiagram.model.toJson();\\n document.getElementById(\\\"mySavedModel\\\").value = str;\\n }\",\n \"function readStuff() \\n{ \\n\\tvar theform = document.theform;\\n\\n\\t// Parse the category list\\n\\tcat = rewrite(theform.cats);\\n\\tncat = cat.length;\\n\\tvar badcats = false;\\n\\n\\t// Make sure cats have structure like V=aeiou\\n\\tcatindex = \\\"\\\";\\n\\tvar w;\\n\\tfor (w = 0; w < ncat; w++) {\\n\\t\\t// A final empty cat can be ignored\\n\\t\\tthiscat = cat[w];\\n\\t\\tif (thiscat.charCodeAt(thiscat.length - 1) == 13) {\\n\\t\\t\\tthiscat = thiscat.substr(0, thiscat .length - 1);\\n\\t\\t\\tcat[w] = thiscat;\\n\\t\\t}\\n\\t\\tif (thiscat.length == 0 && w == ncat - 1) {\\n\\t\\t\\tncat--;\\n\\t\\t} else if (thiscat.length < 3) {\\n\\t\\t\\tbadcats = true;\\n\\t\\t} else {\\n\\t\\t\\tif (find(thiscat , \\\"=\\\") == -1) {\\n\\t\\t\\t\\tbadcats = true;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tcatindex += thiscat.charAt(0);\\n all_categories.push(thiscat);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// Parse the sound changes \\n\\trul = rewrite(theform.rules);\\n\\tnrul = rul.length;\\n \\n var db = document.getElementById('db');\\n db.style.display = 'none';\\n db.innerHTML = '

        Bad rules which could not be parsed:

          ';\\n \\n\\t// Remove trailing returns\\n\\tfor (w = 0; w < nrul; w++) {\\n\\t\\tvar t = rul[w];\\n\\t\\tif (t.charCodeAt(t.length - 1) == 13) {\\n\\t\\t\\trul[w] = t.substr(0, t.length - 1);\\n\\t\\t\\tt = rul[w];\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Sanity checks for valid rules\\n\\t\\tvar valid = t.length > 0 && find(t, \\\">\\\") != -1;\\n\\t\\tif (valid) {\\n var pre = t.split('>')[0].replace(/[\\\\sØ]/g,'');\\n if(t.indexOf('/') == -1){var post = '_';}\\n else{var post = t.split('/')[1].replace(/\\\\s/,'');}\\n var middle = t.split('>')[1].split('/')[0].replace(/[\\\\sØ]/,'');\\n\\n\\t var thisrule = [pre,middle,post]; \\n \\n\\t\\t\\tvalid = thisrule.length > 2 || \\n\\t\\t\\t\\t(thisrule.length ==2 && \\n\\t\\t\\t\\t find(thisrule[0], '\\\\u2192') != -1);\\n\\t\\t\\tif (valid) {\\n\\t\\t\\t\\t// Insertions must have repl & nonuniversal env\\n\\t\\t\\t\\tif (thisrule[0].length == 0) \\n\\t\\t\\t\\t\\tvalid = thisrule[1].length > 0 &&\\n\\t\\t\\t\\t\\t\\tthisrule[2] != \\\"_\\\";\\n\\t\\t\\t}\\n if(valid){all_rules.push(thisrule[0]+'>'+thisrule[1]+'/'+thisrule[2]);}\\n\\t\\t}\\n else\\n {\\n if(t.replace(/\\\\s/g,'') != '' && t[0] != '%')\\n {\\n db.innerHTML += '
        1. '+t+'
        2. ';\\n db.style.display = 'block';\\n }\\n }\\n\\n\\t\\t// Invalid rules: move 'em all up\\n\\t\\tif (!valid) {\\n\\t\\t\\tnrul--;\\n\\t\\t\\tfor (var q = w; q < nrul; q++) {\\n\\t\\t\\t\\trul[q] = rul[q+1];\\n\\t\\t\\t}\\n\\t\\t\\tw--;\\n\\t\\t}\\n\\t}\\n db.innerHTML += '

        ';\\n\\n\\t// Error strings\\n\\tif (badcats) {\\n\\t\\treturn \\\"Categories are weird.\\\";\\n\\t} else if (nrul == 0) {\\n\\t\\treturn \\\"There are no valid sound changes, so no output can be generated. Rules must be of the form s1/s2/e1_e2. The strings are optional, but the slashes are not.\\\" ;\\n\\t} else {\\n\\t\\treturn \\\"\\\";\\n\\t}\\n}\",\n \"validate()\\n {\\n if (this.dirty)\\n {\\n this.updateText();\\n this.dirty = false;\\n }\\n }\",\n \"function sid_handle_kbdevent(e) {\\n\\t\\t\\n\\t\\tif(e.keyCode == 13) {\\n\\t\\t\\t// if enter key is pressed\\n\\t\\t\\tsid.write('');\\n\\n\\t\\t\\tif(sid.value == \\\"\\\") {\\n\\t\\t\\t\\tsid.write((sid.state > 2 ? 'Please enter your name.' : 'Please enter your student ID.'));\\n\\t\\t\\t} else if(sid.state == 1 && sid.value.match(/^[a-z\\\\ ]+/gi) && !sid.reg) {\\n\\t\\t\\t\\tif(sid.value.match(/^(export|update|give|make|save|create)/gi) && !sid.value.match(/([\\\"']+)/gi)) {\\n\\t\\t\\t\\t\\tif(sid.value.match(/(\\\\ )+(csv)/gi)) {\\n\\t\\t\\t\\t\\t\\tif(sid.temp = sid.value.match(/(emails|first names|ids|last names|fname(s|)|lname(s|))/gi)) {\\n\\t\\t\\t\\t\\t\\t\\tsid.write(sid.temp);\\n\\t\\t\\t\\t\\t\\t\\t// sid.command('/create/csv/'+sid.temp,function(err) {\\n\\t\\t\\t\\t\\t\\t\\t// \\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t// \\t\\treturn sid.write('There was an error creating a csv file from the requested data.');\\n\\t\\t\\t\\t\\t\\t\\t// \\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t// \\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\t// \\tsid.write('A comma-separated values file has been created from the requested data.');\\n\\t\\t\\t\\t\\t\\t\\t// });\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tsid.command('/export/csv',function(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.write('There was an error creating a CSV file from the data: '+err);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.write('A CSV file has been created from the data.');\\n\\t\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t} else if(sid.value.match(/(\\\\ )+(db|mysql|sql|database)/gi) || !sid.value.match(/(\\\\ )+(excel)/gi)) {\\n\\t\\t\\t\\t\\t\\tsid.command('/export/mysql',function(err) {\\n\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\treturn sid.write('There was an error updating the Excel spreadsheet.');\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\tsid.write('The data has been successfully exported.');\\n\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tsid.command('/export/excel',function(err) {\\n\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\treturn sid.write('There was an error updating the Excel spreadsheet.');\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\tsid.write('The data has been successfully exported.');\\n\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else if(sid.value.match(/^(how)([a-z\\\\ ]+)(people|students|persons)/gi)) {\\n\\t\\t\\t\\t\\tif(sid.value.match(/(new)/gi)) {\\n\\t\\t\\t\\t\\t\\tsid.write(stats.registered+' new people have signed up so far.');\\n\\t\\t\\t\\t\\t} else if(sid.value.match(/(((are)([\\\\ ]?)(there|here|present)|((have))([\\\\ ]?)(come|arrived|shown up|shown|signed (up|in)|registered))|(\\\\?|()))/gi)) {\\n\\t\\t\\t\\t\\t\\tsid.write('There are currently '+stats.total+' people signed in.');\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t} else if(sid.value.match(/^(I|())(\\\\ )+([a-z\\\\'\\\\.\\\\ ]+)(id)$/gi)) {\\n\\t\\t\\t\\t\\tsid.write('If you know your student ID, please type that in.');\\n\\t\\t\\t\\t} else if(sid.value.match(/^(delete|remove|erase|undo)(\\\\ )+(the|())([a-z0-9\\\\ ]+)(people|entr(y|ies)|row(s|)|person(s|())|name(s|)|student(s|))/)) {\\n\\t\\t\\t\\t\\tif(sid.value.match(/(last|first|latest)([\\\\ ]+)(two|three|four|five|six|seven|eight|nine|ten)?(\\\\ )*(new)?(\\\\ )*(person|student|name|entry|row)/gi)) {\\n\\t\\t\\t\\t\\t\\tif(sid.value.match(/(latest)/gi) || sid.value.match(/(last)([\\\\ ]+)(new)?(\\\\ )*(person|student|name|entry|row)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t//remove the last new person signed in\\n\\t\\t\\t\\t\\t\\t\\tif(sid.value.match(/(new)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.command('/event/delete/bottom/1/new', function(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// adverise error to client console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tconsole.log('The event requested could not be removed -> ' + err);\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// log error to gui console and exit function\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error(err);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// log success to gui console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('The last new person signed in has been removed.');\\n\\t\\t\\t\\t\\t\\t\\t\\t});\\n\\n\\t\\t\\t\\t\\t\\t\\t// remove the last person to have signed in\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t// send request to server to server to delete last added entry\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.command('/event/delete/bottom/1', function(err, data) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// adverise error to client console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tconsole.log('The event requested could not be removed -> ' + err);\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// log error to gui console and exit function\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error(err);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// update server stats locally\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tevents.emit('serverStatsReceived', JSON.parse(data).data);\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// log success to gui console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('The last person signed in has been removed.');\\n\\t\\t\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} else if(sid.value.match(/(first (person|student|name|entry|row))/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t//remove the first student signed in\\n\\t\\t\\t\\t\\t\\t\\tif(sid.value.match(/(new)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.command('/event/delete/top/1/new',function(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error('The event requested could not be removed: '+err);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('The first new person signed in has been removed.');\\n\\t\\t\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t//'event/delete/(top|bottom|id)/(amount|amount|id)/flag\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.command('/event/delete/top/1',function(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error('The event requested could not be removed: '+err);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('The first person signed in has been removed.');\\n\\t\\t\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} else if(sid.value.match(/(people|persons|names|students|rows)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t//remove x amount of people\\n\\t\\t\\t\\t\\t\\t\\tsid.error('I can\\\\'t do that yet.');\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t} else if(sid.temp = sid.value.match(/(last|first|latest)(\\\\ )+([0-9]+)(\\\\ )+(new)?(\\\\ )*(people|students|names|rows|entries)/gi)) {\\n\\t\\t\\t\\t\\t\\tif(sid.value.match(/(new)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\tsid.write('The last '+sid.temp[0].split(' ')[1]+' new people have been deleted.');\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tsid.write('The last '+sid.temp[0].split(' ')[1]+' people have been deleted.');\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else if(sid.value.match(/(set|event|name|speaker|company|talk|speech|presentation)/gi)) {\\n\\t\\t\\t\\t\\tif(sid.temp = sid.value.match(/([\\\"']{1})([a-z\\\\ 0-9\\\\.\\\\,\\\\-\\\\_\\\\+\\\\=\\\\(\\\\)\\\\:\\\\;\\\\/\\\\%\\\\$\\\\#\\\\@\\\\!\\\\*]+)([\\\"']{1})/gi)) {\\n\\t\\t\\t\\t\\t\\tsid.command('/event/name/'+encodeURIComponent(sid.temp[0].substring(1,sid.temp[0].length-1)),function(err) {\\n\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error('The event\\\\'s name could not be set: '+err);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\tsid.write('This event\\\\'s name has been set to '+sid.temp[0]);\\n\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tvar xhr = new XMLHttpRequest();\\n\\t\\t\\t\\t\\txhr.open('GET','http://navigator-fixed.rhcloud.com/apis/askcom/http://www.ask.com/web?q='+encodeURIComponent(sid.value.split('?')[0])+'&qsrc=0&o=0&l=dir',true);\\n\\t\\t\\t\\t\\txhr.send();\\n\\t\\t\\t\\t\\txhr.addEventListener('readystatechange',function() {\\n\\t\\t\\t\\t\\t\\tif(this.readyState == 4 && this.status == 200) {\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tvar wrapper = document.createElement('div');\\n\\t\\t\\t\\t\\t\\t\\twrapper.innerHTML = this.responseText;\\n\\n\\t\\t\\t\\t\\t\\t\\tvar found = false;\\n\\n\\t\\t\\t\\t\\t\\t\\tvar ansrs = wrapper.getElementsByClassName('tsrc_answ');\\n\\t\\t\\t\\t\\t\\t\\tvar rsrs = wrapper.getElementsByClassName('rightrail-web-result-description');\\n\\t\\t\\t\\t\\t\\t\\tvar wres = wrapper.getElementsByClassName('web-result-description');\\n\\n\\t\\t\\t\\t\\t\\t\\tif((ansrs.length || rsrs.length) && wres.length && Math.round(Math.random() * 50) > 25) {\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = wres.item(Math.round(Math.random() * Math.min((wres.length - 1), 3))).innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = answer.split(\\\"\\\\\\\"\\\\>\\\\ More\\\")[0];\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tif(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tif(ansrs.length && rsrs.length) {\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t\\tif(Math.round(Math.random() * 10) > 5) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tanswer = ansrs.item(Math.round(Math.random() * (ansrs.length - 1))).children[1].children[1].innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tanswer = answer.split(\\\"\\\\\\\"\\\\>Read\\\\ More\\\")[0];\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tanswer = rsrs.item(Math.round(Math.random() * (rsrs.length - 1))).innerHTML;\\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(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tif(ansrs.length) {\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = ansrs.item(Math.round(Math.random() * (ansrs.length - 1))).children[1].children[1].innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = answer.split(\\\"\\\\\\\"\\\\>Read\\\\ More\\\")[0];\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tif(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tif(rsrs.length) {\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = rsrs.item(Math.round(Math.random() * (rsrs.length - 1))).innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tif(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tif(wres.length) {\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = wres.item(Math.round(Math.random() * Math.min((wres.length - 1), 3))).innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = answer.split(\\\"\\\\\\\"\\\\>\\\\ More\\\")[0];\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tif(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tsid.error();\\n\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t// strip first two numbers from student ID\\n\\t\\t\\t\\tif(sid.value.match(/^20(00|000)[0-9]{5,6}/gi)) {\\n\\t\\t\\t\\t\\tsid.value = sid.value.substring(2, sid.value.length);\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// if the registering-new-student 'reg' property is set on the input and value matches a string,\\n\\t\\t\\t\\t// or if there is no 'reg' property set and the value matches a number (for a student id), continue\\n\\t\\t\\t\\tif((!sid.reg && sid.value.match(/^(00|000)[0-9]{5,6}/gi)) || (sid.reg && sid.dataState != null)) {\\n\\t\\t\\t\\t\\t// if the 'register' flag is set, meaning we want to add a new entry and\\n\\t\\t\\t\\t\\t// that a dataState exists\\n\\t\\t\\t\\t\\tif(sid.reg && sid.dataState) {\\n\\t\\t\\t\\t\\t\\t// check which 'input' stage the new user is on\\n\\t\\t\\t\\t\\t\\tif(sid.dataState == 1) {\\n\\t\\t\\t\\t\\t\\t\\t// check to see that a first and last name are entered\\n\\t\\t\\t\\t\\t\\t\\tif(sid.value.match(/^[a-z\\\\'\\\\-]+(\\\\ )[a-z\\\\'\\\\-]+/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t\\t// collect stuname and move on to next data state\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.dataState = 2;\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// parse first and last name from sid.value by splitting by spaces\\n\\t\\t\\t\\t\\t\\t\\t\\t// and assigning values to sid.fname and sid.lname respectively\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.fname = sid.value.split(' ')[0];\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.lname = sid.value.split(' ')[1];\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// prompt student to enter the next dataState value (year)\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.placeholder = 'Enter graduating year to continue...';\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// reset input value\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t// if an invalid name is entered, \\n\\t\\t\\t\\t\\t\\t\\t\\tsid.error('Please enter a valid name.');\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} else if(sid.dataState == 2) {\\n\\t\\t\\t\\t\\t\\t\\t// collect year and move on to next data state\\n\\t\\t\\t\\t\\t\\t\\tsid.dataState = 3;\\n\\n\\t\\t\\t\\t\\t\\t\\t// set sid.year to current sid value to save entered value (year)\\n\\t\\t\\t\\t\\t\\t\\tsid.year = sid.value;\\n\\n\\t\\t\\t\\t\\t\\t\\t// prompt student to enter the next dataState value (major)\\n\\t\\t\\t\\t\\t\\t\\tsid.placeholder = 'Please enter your major...';\\n\\n\\t\\t\\t\\t\\t\\t\\t// reset input value\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\n\\t\\t\\t\\t\\t\\t} else if(sid.dataState == 3) {\\n\\t\\t\\t\\t\\t\\t\\t// collect 'major' and set dataState flag to 0. This tells the program\\n\\t\\t\\t\\t\\t\\t\\t// that the registration process is ending and must be reset.\\n\\t\\t\\t\\t\\t\\t\\tsid.dataState = 0;\\n\\n\\t\\t\\t\\t\\t\\t\\t// set sid.major to current sid value to save entered value (major)\\n\\t\\t\\t\\t\\t\\t\\tsid.major = sid.value;\\n\\n\\t\\t\\t\\t\\t\\t\\t// prompt student to enter the next dataState value (email)\\n\\t\\t\\t\\t\\t\\t\\tsid.placeholder = 'Finally, enter your email to sign in...';\\n\\n\\t\\t\\t\\t\\t\\t\\t// reset input value\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\t\\t// store data to be sent as post request to server containing\\n\\t\\t\\t\\t\\t\\t// entry information such as name, id, major, etc.\\n\\t\\t\\t\\t\\t\\tvar data = \\\"id=\\\" + sid.value;\\n\\n\\t\\t\\t\\t\\t\\t// default uri for logging already existing entries\\n\\t\\t\\t\\t\\t\\tvar uri = '/register';\\n\\n\\t\\t\\t\\t\\t\\t// if the 'reg' flag is set, but there is no dataState flag, or the dataState\\n\\t\\t\\t\\t\\t\\t// flag is 0, this indicates the registration process has ended and must be reset.\\n\\t\\t\\t\\t\\t\\tif(sid.reg && !sid.dataState) {\\n\\t\\t\\t\\t\\t\\t\\t// set sid.email to current sid value to save entered value (email)\\n\\t\\t\\t\\t\\t\\t\\tsid.email = sid.value;\\n\\n\\t\\t\\t\\t\\t\\t\\t// reset input and placeholder values\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\tsid.placeholder = 'Scan your ID';\\n\\n\\t\\t\\t\\t\\t\\t\\t// format outgoing data string with new student information\\n\\t\\t\\t\\t\\t\\t\\tdata = \\t'student_id='\\t+ sid.sid \\t\\t+ \\t\\t\\t// contains student id\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&first=' \\t\\t+ sid.fname \\t+ \\t\\t\\t// contains student first name\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&last='\\t\\t+ sid.lname\\t\\t+\\t\\t\\t// contains student last name\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&year=' \\t\\t+ sid.year \\t\\t+\\t\\t\\t// contains student year\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&major='\\t\\t+ sid.major\\t\\t+\\t\\t\\t// contains student major\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&email='\\t\\t+ sid.email \\t;\\t\\t\\t// contains student email\\n\\n\\t\\t\\t\\t\\t\\t\\t// update api request to register entry as new\\n\\t\\t\\t\\t\\t\\t\\turi = '/register/new';\\n\\n\\t\\t\\t\\t\\t\\t\\t// reset 'reg' flag to end registration mode and clear the 'sid' field of our input field object\\n\\t\\t\\t\\t\\t\\t\\tsid.reg = false;\\n\\t\\t\\t\\t\\t\\t\\tsid.sid = null;\\n\\n\\t\\t\\t\\t\\t\\t\\t// clear dataState flag to indicate no registration prompt is going to be shown\\n\\t\\t\\t\\t\\t\\t\\tsid.dataState = null;\\n\\n\\t\\t\\t\\t\\t\\t\\t// advertise registration was successful\\n\\t\\t\\t\\t\\t\\t\\tsid.write('You have been successfully registered!');\\n\\n\\t\\t\\t\\t\\t\\t\\t// if information is entered successfully, update registrant counter\\n\\t\\t\\t\\t\\t\\t\\tstats.registered++;\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t// if program is no longer in 'registration' mode, send new data to the server\\n\\t\\t\\t\\t\\t\\tvar xhr = new XMLHttpRequest();\\n\\t\\t\\t\\t\\t\\txhr.open('POST', uri, true);\\n\\t\\t\\t\\t\\t\\txhr.send(data);\\n\\t\\t\\t\\t\\t\\txhr.addEventListener('readystatechange',function() {\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tif(this.readyState == 4 && this.status == 200) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar student = JSON.parse(this.responseText);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.state = 2; // state of 2 tells input field to reset its value\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// if the entry exists in the server 'database'\\n\\t\\t\\t\\t\\t\\t\\t\\tif(student.registered) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// check if the entry has already been updated with the server\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(student.alreadyRegistered) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// output message to the input field\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.value = 'You have already been signed in!';\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// output message to the interface console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.error('You cannot register more than once per event.');\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// output welcome message to the input field\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.value = 'Welcome, ' + student.fname + ' ' + student.lname;\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// broadcast 'register' event\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tevents.emit('register', [stats.total]);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.value \\t\\t= '';\\t\\t\\t\\t\\t\\t// reset our input value\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.placeholder = \\t\\t\\t\\t\\t\\t\\t// sets input with instructions for user\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'Enter your name to continue...';\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.state \\t\\t= 3;\\t\\t\\t\\t\\t\\t// state of '3' tells input field to reset its value\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.dataState \\t= 1;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.reg \\t\\t= true;\\t\\t\\t\\t\\t\\t// tell app it is now in 'registration' mode\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.sid \\t\\t= student.id; \\t\\t\\t\\t// store student id in our main input field object\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// output registration message to the interface console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('Welcome. Follow the steps above to register.');\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// play sound alert\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tApp.playAlert();\\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}\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tif(!sid.reg) {\\n\\t\\t\\t\\t\\t\\tsid.write('Please enter a valid student ID.');\\n\\t\\t\\t\\t\\t} else {\\t\\n\\t\\t\\t\\t\\t\\tsid.write('Please enter your full name.');\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} else if(e.keyCode == 27) {\\n\\t\\t\\tif(sid.reg) {\\n\\t\\t\\t\\tsid.state = 1;\\n\\t\\t\\t\\tsid.reg = false;\\n\\t\\t\\t\\tsid.value = '';\\n\\n\\t\\t\\t\\t// output default message\\n\\t\\t\\t\\tsid.placeholder = 'Type your ID to continue...';\\n\\n\\t\\t\\t\\t// clear input\\n\\t\\t\\t\\tsid.write('');\\n\\t\\t\\t}\\n\\t\\t\\tsid.blur();\\n\\t\\t} else {\\n\\t\\t\\tif(sid.state == 2) {\\n\\t\\t\\t\\t// change input value type from \\n\\t\\t\\t\\tsid.state = 1;\\n\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t} else if(sid.state == 3) {\\n\\t\\t\\t\\t// clear student id input and set current input value\\n\\t\\t\\t\\t// type to accept student's name\\n\\t\\t\\t\\tsid.state = 1;\\n\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t}\\t\\t\\t\\n\\t\\t}\\n\\t}\",\n \"function storeData(){\\r\\n\\t\\tvar id \\t\\t\\t\\t= Math.floor(Math.random()*100000000001);\\r\\n\\t\\t//Gather up all our form field values and store in an object\\r\\n\\t\\t//Object properties contain an array with the form label and input value\\r\\n\\t\\tgetSelectedRadio();\\r\\n\\t\\tvar item \\t\\t\\t\\t= {};\\r\\n\\t\\t\\titem.comicTitle\\t\\t= [\\\"Title of Comic:\\\", e('comicTitle').value];\\r\\n\\t\\t\\titem.seriesTitle\\t= [\\\"Title of Series:\\\", e('seriesTitle').value];\\r\\n\\t\\t\\titem.issueNum\\t\\t= [\\\"Issue Number:\\\", e('issueNum').value];\\r\\n\\t\\t\\titem.dateReleased\\t= [\\\"Date Released:\\\", e('dateReleased').value];\\r\\n\\t\\t\\titem.publisher\\t\\t= [\\\"Publisher:\\\", e('publisher').value];\\r\\n\\t\\t\\titem.rateIssue\\t\\t= [\\\"Rate of Issue:\\\", e('rateIssue').value];\\r\\n\\t\\t\\titem.genre \\t\\t\\t= [\\\"Genre:\\\", e('genre').value];\\r\\n\\t\\t\\titem.illStyle\\t\\t= [\\\"Illustration Style:\\\", styleValue];\\r\\n\\t\\t\\titem.comments\\t\\t= [\\\"Comments:\\\", e('comments').value];\\r\\n\\t\\t//Save data into Local Storage: Use Stringify to convert our object to a string\\r\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\r\\n\\t\\talert(\\\"Comic saved to index!\\\");\\r\\n\\t}\",\n \"function onDataUpdate() {\\n var data = JSON.parse(document.getElementsByTagName('textarea')[0].value);\\n var dataKey = document.getElementById(\\\"dataKey\\\").value;\\n scObj.update({\\n data: data,\\n dataKey: dataKey\\n });\\n}\",\n \"_saveVocab() {\\n let deutsch = document.querySelector(\\\".deutsch\\\").value;\\n let englisch = document.querySelector(\\\".englisch\\\").value;\\n let notiz = document.querySelector(\\\".notiz\\\").value;\\n\\n if (deutsch != \\\"\\\" || englisch != \\\"\\\"){\\n\\n // zurück zu input!!\\n\\n this._vokabeln.saveNew({\\n deutsch: deutsch,\\n englisch: englisch,\\n notiz: notiz,\\n //format: html,\\n });\\n\\n // aus JS auf andere Seite leiten\\n this._app.showVocabularyOverview();\\n this._app.navigate(\\\"/\\\");\\n\\n } else {\\n alert(\\\"Bitte alle Angaben ausfüllen!♥\\\");\\n }\\n }\",\n \"function saveInfo() {\\n\\n let textarea = $(this).siblings(\\\"textarea\\\");\\n let textAreaValue = textarea.val();\\n let timeSlot = textarea.attr(\\\"time\\\");\\n\\n if(textAreaValue === \\\"\\\" && schedule[timeSlot]){\\n //Remove key value pair from schedule if textArea is blank\\n delete schedule[timeSlot];\\n } else if (textAreaValue !== \\\"\\\"){\\n schedule[timeSlot] = textAreaValue;\\n }\\n localStorage.setItem(\\\"schedule\\\", JSON.stringify(schedule));\\n}\",\n \"function readInp(){\\n\\tvar inp = document.getElementById(\\\"cfg\\\").value;\\n\\tvar without = interpret(inp);\\n\\tvar SymSet = new SymbolSet(without);\\n\\tvar startSym = SymSet.findSym(\\\"S\\\");\\n\\tvar sentence = SymSet.writeSymbol(startSym);\\n\\t//console.log(sentence);\\n\\tdocument.getElementById(\\\"output\\\").innerHTML += \\\"
      • \\\" + sentence + \\\"
      • \\\";\\n}\",\n \"function update() {\\n\\t\\tUtil.txt.setLibraryBrowser( Util.fs.getLibraries() );\\n\\t\\tUtil.txt.setFileBrowser( Util.fs.getNotes(currentLib) );\\n\\t\\tUtil.txt.setInputText( Util.fs.getNoteContent(currentLib,currentNote) );\\n\\t}\",\n \"function write() {\\n var store = {};\\n\\n // store inputs\\n var inputs = document.querySelectorAll('input');\\n for(var i=0;i {\\n\\t controls.html(new_controls)\\n\\t content_holder.html(textarea)\\n textarea.addClass('invalid')\\n // TODO: on error, include error message\\n })\\n .done(answer => {\\n\\tif (has_pretty_content_holder)\\n\\t pretty_content_holder.html(answer)\\n\\trestore(newcontent)\\n })\\n }\",\n \"function save() {\\n\\t\\tdocument.getElementById(\\\"mySavedModel\\\").value = myDiagram.model.toJson();\\n\\t\\tmyDiagram.isModified = false;\\n\\t}\",\n \"function saveQuestion(){\\n rightPane.innerHTML = templates.renderQuestionForm();\\n var questionForm = document.getElementById(\\\"question-form\\\");\\n questionForm.addEventListener('click', function(event){\\n event.preventDefault();\\n var target = event.target;\\n var submit = document.querySelector(\\\"input.btn\\\");\\n if (target === submit){\\n var textArea = questionForm.querySelector('textarea').value;\\n var nameInput = questionForm.querySelector('input[type=\\\"text\\\"]').value;\\n var newEntry = {\\n subject: nameInput, \\n question: textArea,\\n id: Math.random(),\\n responses: []\\n }\\n var oldList = getStoredQuestions();\\n oldList.push(newEntry);\\n storeQuestions(oldList);\\n var questionHtml = templates.renderQuestion({ \\n questions: getStoredQuestions()\\n });\\n leftPane.innerHTML = questionHtml;\\n questionForm.querySelector('textarea').value = \\\"\\\";\\n questionForm.querySelector('input[type=\\\"text\\\"]').value = \\\"\\\"; \\n addListeners();\\n }\\n });\\n }\",\n \"function save() {\\n localStorage && localStorage.setItem(key, Y.JSON.stringify(data));\\n }\",\n \"function saveLayout() {\\n var layout = []\\n layout.push(myDiagram.model.nodeDataArray)\\n layout.push(myDiagram.model.linkDataArray)\\n var summarized = document.getElementById(\\\"summarized\\\").checked\\n var save = prompt(\\\"Please enter a layout name\\\"); \\n\\t\\tif (save != null) {\\t\\t\\n\\t\\t\\t\\tvar data = {\\n\\t\\t\\t\\t\\t'name':save,\\n\\t\\t\\t\\t\\t\\\"layout\\\":layout,\\n\\t\\t\\t\\t\\t\\\"state\\\":summarized\\n\\t\\t\\t\\t};\\n\\t\\t\\t\\n\\t\\t\\t/*send layout data to back end*/\\n\\t\\t\\t$.ajax({\\n\\t\\t\\t\\t\\ttype: 'POST',\\n\\t\\t\\t\\t\\tdata: JSON.stringify(data),\\n\\t\\t\\t\\t\\tcontentType: 'application/json',\\n\\t\\t\\t\\t\\turl: '/save_layout',\\n\\t\\t\\t\\t\\tsuccess:function(text){\\n\\t\\t\\t\\t\\t\\t//alert(text);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t});\\n\\t\\t}\\n }\",\n \"function backupInput() {\\n lastInput = ELEMENTS.UPDATE_TEXTAREA.val();\\n }\",\n \"_save() {\\n\\t\\tconst version = this._editor.model.document.version;\\n\\n\\t\\t// Operation may not result in a model change, so the document's version can be the same.\\n\\t\\tif ( version === this._lastDocumentVersion ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\ttry {\\n\\t\\t\\tthis._data = this._getData();\\n\\t\\t\\tthis._lastDocumentVersion = version;\\n\\t\\t} catch ( err ) {\\n\\t\\t\\tconsole.error(\\n\\t\\t\\t\\terr,\\n\\t\\t\\t\\t'An error happened during restoring editor data. ' +\\n\\t\\t\\t\\t'Editor will be restored from the previously saved data.'\\n\\t\\t\\t);\\n\\t\\t}\\n\\t}\",\n \"function save() {\\n if (confirm('Are you sure you want to save the recording?')){\\n let name = prompt('Enter a name of your recording')\\n if (localStorage.getItem(name)== null) {\\n document.getElementById('recordinglist').add(new Option(name));\\n localStorage.setItem(name, sessionStorage.getItem('recording'));\\n head = null;\\n tail = null;\\n sessionStorage.removeItem('recording');\\n } else {alert('The name you entered already exists. Please try again and enter a different name.')}\\n }\\n }\",\n \"function saveAsProgramToServer() {\\n $formSingleModal.validate();\\n if ($formSingleModal.valid()) {\\n $('.modal').modal('hide'); // close all opened popups\\n var xml = Blockly.Xml.workspaceToDom(blocklyWorkspace);\\n var xmlText = Blockly.Xml.domToText(xml);\\n var progName = $('#singleModalInput').val().trim();\\n LOG.info('saveAs program ' + GUISTATE_C.getProgramName());\\n PROGRAM.saveAsProgramToServer(progName, GUISTATE_C.getProgramTimestamp(), xmlText, function(result) {\\n UTIL.response(result);\\n if (result.rc === 'ok') {\\n result.name = progName;\\n result.programShared = false;\\n GUISTATE_C.setProgram(result);\\n MSG.displayInformation(result, \\\"MESSAGE_EDIT_SAVE_PROGRAM_AS\\\", result.message, GUISTATE_C.getProgramName());\\n }\\n });\\n }\\n }\",\n \"function copyStorageToForm() {\\n \\\"use strict\\\";\\n // Set chosen hair type\\n setFormHairType(sessionStorage.getItem(\\\"hair_type\\\"));\\n\\n // Set selected traits\\n setFormTraits(sessionStorage.getItem(\\\"traits\\\"));\\n}\",\n \"function saveInfo(e) {\\n e.preventDefault();\\n //console.log(\\\"click\\\")\\n var text = $(this).siblings('textarea').val().trim();\\n var id = $(this).siblings('textarea').attr('id');\\n\\n localStorage.setItem(id, JSON.stringify(text));\\n\\n}\",\n \"save () {\\n\\n // Validate\\n if (this.checkValidity()) {\\n\\n // Collect input\\n this.info.item = this.collectInput();\\n\\n // Show modal\\n this.modal.show();\\n }\\n }\",\n \"function saveText() {\\n\\t if (input.value.trim().length > 0) {\\n\\t var clientX = parseInt(input.style.left, 10);\\n\\t var clientY = parseInt(input.style.top, 10);\\n\\t var svg = (0, _utils.findSVGAtPoint)(clientX, clientY);\\n\\t if (!svg) {\\n\\t return;\\n\\t }\\n\\t\\n\\t var _getMetadata = (0, _utils.getMetadata)(svg),\\n\\t documentId = _getMetadata.documentId,\\n\\t pageNumber = _getMetadata.pageNumber;\\n\\t\\n\\t var rect = svg.getBoundingClientRect();\\n\\t var annotation = Object.assign({\\n\\t type: 'textbox',\\n\\t size: _textSize,\\n\\t color: _textColor,\\n\\t content: input.value.trim()\\n\\t }, (0, _utils.scaleDown)(svg, {\\n\\t x: clientX - rect.left,\\n\\t y: clientY - rect.top,\\n\\t width: input.offsetWidth,\\n\\t height: input.offsetHeight\\n\\t }));\\n\\t\\n\\t _PDFJSAnnotate2.default.getStoreAdapter().addAnnotation(documentId, pageNumber, annotation).then(function (annotation) {\\n\\t (0, _appendChild2.default)(svg, annotation);\\n\\t });\\n\\t }\\n\\t\\n\\t closeInput();\\n\\t}\",\n \"function displayNotes (){\\n if (localStorage.getItem(\\\"generalInfo\\\")){\\n generalInfo = JSON.parse(localStorage.getItem(\\\"generalInfo\\\"));\\n for(i = 0; i < generalInfo.length; i++){\\n $(\\\"#inputEvent\\\"+generalInfo[i].display).attr(\\\"value\\\", generalInfo[i].notes);\\n console.log($(\\\"#inputEvent\\\"+generalInfo[i].display));\\n }\\n }\\n }\",\n \"function saveAndExit() {\\r\\n\\tvar form = document.getElementById( \\\"hiddenfieldform\\\" );\\r\\n\\thidden.value = experior.getText(form);\\r\\n}\",\n \"function savesaveInfoLocalStorage(evt){\\n saveInfoLocalStorage[evt.currentTarget.name] = evt.currentTarget.value;\\n setsaveInfoLocalStorage(saveInfoLocalStorage);\\n}\",\n \"function saveLocation (loc_name, user_id) {\\n\\tdocument.getElementById(loc_name + \\\"id\\\").className=\\\"edited-location hidden\\\";\\n\\tdocument.getElementById(loc_name + \\\"label\\\").className=\\\"edited-location\\\";\\n\\tdocument.getElementById(loc_name + \\\"save\\\").className=\\\"checklist hidden\\\";\\n\\tdocument.getElementById(loc_name + \\\"edit\\\").className=\\\"pencil orange left\\\";\\n\\n var input = document.getElementById(loc_name + \\\"id\\\").value;\\n var prevLoc = document.getElementById(loc_name + \\\"label\\\").innerText;\\n\\n var error = false;\\n var errorMsg = \\\"\\\";\\n\\n if (input == \\\"\\\") {\\n \\t\\terror = true;\\n \\t\\terrorMsg += \\\"Location cannot be blank.\\\";\\n }\\n}\",\n \"function saveData()\\n{\\n\\t\\\"use strict\\\";\\n\\n\\n\\tvar currentDate = new Date();\\n\\tvar year, month, day;\\n\\tyear = currentDate.getFullYear();\\n\\t\\n\\tif (currentDate.getMonth().toString().length === 1)\\n\\t{\\n\\t\\tmonth = \\\"0\\\" + currentDate.getMonth().toString(); \\n\\t}\\n\\telse\\n\\t{\\n\\t\\tmonth = currentDate.getMonth().toString();\\n\\t}\\n\\t\\n\\tif (currentDate.getDate().toString().length === 1)\\n\\t{\\n\\t\\tday = \\\"0\\\" + currentDate.getDate().toString(); \\n\\t}\\n\\telse\\n\\t{\\n\\t\\tday = currentDate.getDate().toString();\\n\\t}\\n\\t\\n\\tcreationDate = year + month + day;\\n\\talert(creationDate);\\n\\tcreationTime = currentDate.getHours() + \\\":\\\" + currentDate.getMinutes();\\n\\n\\t\\n\\ttitle = document.getElementById(\\\"txtTitle\\\").value;\\n content = document.getElementById(\\\"txtContent\\\").value;\\n\\tteacherName = document.getElementById(\\\"txtTeacherName\\\").value;\\n\\tsubject = document.getElementById(\\\"txtSubject\\\").value;\\n\\t\\n\\talert(\\\"Your information has been saved\\\");\\n\\n\\tdeadline = document.getElementById(\\\"txtDeadline\\\").value;\\n\\n\\n\\t// Add code to store rest of input in variables here\\n \\n// Store the information in localstorage\\n localStorage.setItem(\\\"title\\\", title);\\n localStorage.setItem(\\\"content\\\", content);\\n\\tlocalStorage.setItem(\\\"teacherName\\\", teacherName);\\n\\n \\n //alert to inform user data has been saved.\\n\\n}\",\n \"function saveNotesTextArea(e){\\n\\t YAHOO.util.Event.preventDefault(e);\\n\\t var notesSpaceTest = /^\\\\s+$/;\\n\\t var sellerNotesGot = document.getElementById('sellerNotesNew').value;\\n\\t sellerNotesGot = sellerNotesGot.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\");\\n\\t\\tif (notesSpaceTest.test(sellerNotesGot) || sellerNotesGot == \\\"\\\"){\\n\\t\\t\\tdocument.getElementById('sellerNotesNew').value = \\\"\\\";\\n\\t\\t\\tdocument.getElementById('addInstructions').title = document.getElementById('addInstructions').childNodes[0].nodeValue;\\n\\t\\t\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"changeInstructions\\\"), 'show')\\n\\t\\t\\tYAHOO.util.Dom.addClass(document.getElementById('changeInstructions'), 'hide');\\n\\t\\t\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"addInstructions\\\"), 'hide')\\n\\t\\t\\tYAHOO.util.Dom.addClass(document.getElementById('addInstructions'), 'show');\\n\\t\\t\\tdocument.getElementById('notesCharacterCount').innerHTML = \\\"255\\\";\\n\\t\\t}\\n\\t\\telse{\\n\\t\\t\\tdocument.getElementById('sellerNotesNew').value = sellerNotesGot;\\n\\t\\t\\tdocument.getElementById('changeInstructions').title = document.getElementById('changeInstructions').childNodes[0].nodeValue;\\n\\t\\t\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"changeInstructions\\\"), 'hide')\\n\\t\\t\\tYAHOO.util.Dom.addClass(document.getElementById('changeInstructions'), 'show');\\n\\t\\t\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"addInstructions\\\"), 'show')\\n\\t\\t\\tYAHOO.util.Dom.addClass(document.getElementById('addInstructions'), 'hide');\\n\\t\\t\\ttruncatedInstructionShown(sellerNotesGot);\\n\\t\\t}\\n\\tPAYPAL.reset.margin.orderInfo.saveInstructions();\\n\\tdocument.getElementById('sellerNotesCont').style.display = \\\"none\\\";\\n\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"addInstructions\\\"), 'opened')\\n\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"changeInstructions\\\"), 'opened')\\n}\",\n \"function loaddata(){\\n\\t\\tvar data1 = localStorage.getItem(\\\"infor_sku\\\") || \\\"\\\";\\n\\t\\tvar data2 = localStorage.getItem(\\\"pd\\\") || \\\"\\\";\\n\\t\\tvar data3 = localStorage.getItem(\\\"sh\\\") || \\\"\\\";\\n\\t\\tif (!!data1) { sku_items = JSON.parse(data1); }\\n\\t\\tif (!!data2) { pd_items = JSON.parse(data2); }\\n\\t\\tif (!!data3) { sh_items = JSON.parse(data3); }\\n\\t\\t$(\\\"#datafile\\\").val( localStorage.getItem(\\\"datafile\\\") ||\\\"http://123.123.123.250:5000/\\\");\\n\\t\\t$(\\\"#myfile\\\").val( localStorage.getItem(\\\"myfile\\\") ||\\\"spchkm/\\\");\\n\\t\\t\\n\\t}\",\n \"function FunctionUpdate() \\r\\n\\r\\n{\\r\\nvar x = document.forms[\\\"myForm\\\"][\\\"txt_notepad_title\\\"].value;\\r\\nvar y = document.forms[\\\"myForm\\\"][\\\"txt_area\\\"].value;\\r\\n \\r\\nif (x == \\\"\\\")\\r\\n \\r\\n{\\r\\n \\r\\nalert(\\\"Please Choose Notepad Title From Table Below To Update\\\");\\r\\n \\r\\n}\\r\\n\\r\\nelse if(y == \\\"\\\")\\r\\n\\r\\n{\\r\\n\\t\\r\\nalert(\\\"Please Fill In The TextBox Area\\\");\\r\\n\\r\\n}\\r\\n \\r\\nelse\\r\\n \\r\\n{\\r\\n\\r\\n//Update Local Storage--------------------------------------------------------------------------------------------->\\r\\nvar title = document.forms.myForm.txt_notepad_title.value;\\r\\nvar text = document.forms.myForm.txt_area.value;\\r\\n\\t\\r\\nlocalStorage.setItem(title, text);\\r\\ndocument.getElementById(\\\"myForm\\\").reset();\\r\\nalert(\\\"Update Succesfull\\\");\\r\\ndoShowAll();\\r\\n\\r\\n}\\r\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.66930264","0.64311683","0.6271666","0.6085117","0.5833296","0.5465856","0.5437732","0.54368776","0.5387771","0.52789766","0.52747476","0.52533346","0.5243427","0.52310866","0.5228665","0.5212262","0.5211791","0.5210552","0.51716185","0.5164059","0.5154473","0.5136113","0.513006","0.51151043","0.51061296","0.50811553","0.5071252","0.5056751","0.50565577","0.50559604","0.5043653","0.5035899","0.503258","0.5029956","0.50217044","0.5017663","0.5014401","0.5003389","0.4998213","0.49962327","0.49787363","0.4973842","0.49719736","0.49716863","0.496476","0.49468958","0.49451607","0.49271223","0.49109644","0.4908361","0.48994842","0.48955345","0.48947653","0.4893352","0.48932678","0.4892955","0.48903114","0.48873135","0.48797485","0.48654822","0.48648763","0.48561132","0.4847648","0.4838861","0.48368585","0.4836829","0.48260012","0.48217887","0.4814809","0.48147726","0.48088238","0.4806579","0.48062995","0.4805176","0.4795077","0.47846296","0.4783255","0.47806","0.4779978","0.47770682","0.47746176","0.47689912","0.4766943","0.4766931","0.4766259","0.47652772","0.47645697","0.47583747","0.47566146","0.47516388","0.4746974","0.4744505","0.47428438","0.4737993","0.47358766","0.47335893","0.47329786","0.47277296","0.47248307","0.4717336"],"string":"[\n \"0.66930264\",\n \"0.64311683\",\n \"0.6271666\",\n \"0.6085117\",\n \"0.5833296\",\n \"0.5465856\",\n \"0.5437732\",\n \"0.54368776\",\n \"0.5387771\",\n \"0.52789766\",\n \"0.52747476\",\n \"0.52533346\",\n \"0.5243427\",\n \"0.52310866\",\n \"0.5228665\",\n \"0.5212262\",\n \"0.5211791\",\n \"0.5210552\",\n \"0.51716185\",\n \"0.5164059\",\n \"0.5154473\",\n \"0.5136113\",\n \"0.513006\",\n \"0.51151043\",\n \"0.51061296\",\n \"0.50811553\",\n \"0.5071252\",\n \"0.5056751\",\n \"0.50565577\",\n \"0.50559604\",\n \"0.5043653\",\n \"0.5035899\",\n \"0.503258\",\n \"0.5029956\",\n \"0.50217044\",\n \"0.5017663\",\n \"0.5014401\",\n \"0.5003389\",\n \"0.4998213\",\n \"0.49962327\",\n \"0.49787363\",\n \"0.4973842\",\n \"0.49719736\",\n \"0.49716863\",\n \"0.496476\",\n \"0.49468958\",\n \"0.49451607\",\n \"0.49271223\",\n \"0.49109644\",\n \"0.4908361\",\n \"0.48994842\",\n \"0.48955345\",\n \"0.48947653\",\n \"0.4893352\",\n \"0.48932678\",\n \"0.4892955\",\n \"0.48903114\",\n \"0.48873135\",\n \"0.48797485\",\n \"0.48654822\",\n \"0.48648763\",\n \"0.48561132\",\n \"0.4847648\",\n \"0.4838861\",\n \"0.48368585\",\n \"0.4836829\",\n \"0.48260012\",\n \"0.48217887\",\n \"0.4814809\",\n \"0.48147726\",\n \"0.48088238\",\n \"0.4806579\",\n \"0.48062995\",\n \"0.4805176\",\n \"0.4795077\",\n \"0.47846296\",\n \"0.4783255\",\n \"0.47806\",\n \"0.4779978\",\n \"0.47770682\",\n \"0.47746176\",\n \"0.47689912\",\n \"0.4766943\",\n \"0.4766931\",\n \"0.4766259\",\n \"0.47652772\",\n \"0.47645697\",\n \"0.47583747\",\n \"0.47566146\",\n \"0.47516388\",\n \"0.4746974\",\n \"0.4744505\",\n \"0.47428438\",\n \"0.4737993\",\n \"0.47358766\",\n \"0.47335893\",\n \"0.47329786\",\n \"0.47277296\",\n \"0.47248307\",\n \"0.4717336\"\n]"},"document_score":{"kind":"string","value":"0.5448408"},"document_rank":{"kind":"string","value":"6"}}},{"rowIdx":229,"cells":{"query":{"kind":"string","value":"Reads the data entered in the syllable form and saves it, leading to the neume form afterwards."},"document":{"kind":"string","value":"function createSyllableWithNeumes(){\n \n var page = document.getElementById(\"page\").value;\n var line = document.getElementById(\"line\").value;\n var staff = document.getElementById(\"staff\").value;\n var syllable = document.getElementById(\"syllable\").value;\n var initial = document.getElementById(\"initial\").checked;\n var color = document.getElementById(\"color\").value;\n var comment = document.getElementById(\"comment\").value;\n \n currentSyllable = new Syllable(page, line, staff, syllable, initial, color, comment);\n \n syllables.push(currentSyllable);\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = neumeForm();\n createSVGOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function toChangeSyllableData(){\n if(syllables.length > 0){\n currentType = syllables[0].type;\n currentColor = syllables[0].color;\n }\n pushedNeumeVariations = false;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}","function applyCurrentSyllable(){\n currentSyllableIndex = document.getElementById(\"syllable\").value;\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n}","function applySyllableDataChanges(){\n \n var page = document.getElementById(\"page\").value;\n var line = document.getElementById(\"line\").value;\n var staff = document.getElementById(\"staff\").value;\n var syllable = document.getElementById(\"syllabletext\").value;\n var initial = document.getElementById(\"initial\").checked;\n var color = document.getElementById(\"color\").value;\n var comment = document.getElementById(\"comment\").value;\n \n if(page){\n currentSyllable.page = page;\n }\n if(line){\n currentSyllable.line = line;\n }\n \n if(staff){\n currentSyllable.staff = staff;\n }\n \n if(syllable){\n currentSyllable.syllable = syllable;\n }\n \n currentSyllable.initial = initial;\n \n if(color && color != \"none\"){\n currentSyllable.color = color;\n }\n \n if(comment){\n currentSyllable.comment = comment;\n }\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n createSVGOutput();\n}","function toSyllable(){\n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","save() {\n const newBasicBinary = trs80_base_1.parseBasicText(this.textarea.value);\n if (typeof newBasicBinary === \"string\") {\n this.showError(newBasicBinary);\n return;\n }\n const newBasicProgram = trs80_base_1.decodeBasicProgram(newBasicBinary);\n if (newBasicProgram === undefined) {\n // I don't know how this might happen.\n this.showError(\"Can't decode Basic program\");\n return;\n }\n this.trs80.loadBasicProgram(newBasicProgram);\n this.close();\n }","function toSyllableFromNeumeVariations(){\n pushedNeumeVariations = false;\n neumeVariations = new Array();\n \n isNeumeVariant = false;\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n}","function deleteSyllable(){\n syllables.splice(currentSyllableIndex, 1);\n \n currentSyllableIndex = 0;\n \n document.getElementById(\"input\").innerHTML = syllableDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function stepSyllable() {\n drums();\n try {\n var s = poem[stanza];\n\n var v = s[verse];\n if (!v) {\n stepStanza();\n return stepSyllable();\n }\n var w = v.w[word];\n if (!w) {\n stepVerse();\n return stepSyllable();\n }\n var sb = w.s[syllable];\n if (!sb) {\n stepWord();\n return stepSyllable();\n }\n\n printSyllable(sb);\n\n var note = chooseNote(sb);\n playNote(note);\n sock.write(deaccent(sb));\n syllable++\n\n } catch (e) {\n stepStanza();\n intro.draw(1);\n }\n}","function createSyllable(){\n var page = document.getElementById(\"page\").value;\n var line = document.getElementById(\"line\").value;\n var staff = document.getElementById(\"staff\").value;\n var syllable = document.getElementById(\"syllable\").value;\n var initial = document.getElementById(\"initial\").checked;\n var color = document.getElementById(\"color\").value;\n var comment = document.getElementById(\"comment\").value;\n \n currentSyllable = new Syllable(page, line, staff, syllable, initial, color, comment);\n \n syllables.push(currentSyllable);\n \n currentColor = color;\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = syllableForm();\n createSVGOutput();\n \n}","function updateOutput8() {\n localStorage.setItem('info8', input_textarea8.value)\n}","function toSyllableFromVariations(){\n pushedVariations = false;\n variations = new Array();\n \n if(syllables.length > 1){\n currentColor = syllables[syllables.length-1].color;\n }\n \n document.getElementById(\"input\").innerHTML = syllableForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function importSave() {\r\n\tlet data = prompt(\"Paste your save string here\");\r\n\r\n\tif (data !== null && data !== '')\r\n\t\tparseAndImportData(data);\r\n\t\t\r\n\trunAll();\r\n}","function updateOutput7() {\n localStorage.setItem('info7', input_textarea7.value)\n}","function saveLocalStorage() {\n localStorage['mainText'] = text_area.value;\n localStorage['excText'] = excludeWord.value;\n localStorage['percentReplacement'] = percentReplSlider.value;\n localStorage['excludePronouns'] = chkPronouns.checked;\n localStorage['excludeHyphenated'] = chkHyphens.checked;\n localStorage['excludeConjunctions'] = chkConjunctions.checked;\n localStorage['currReplacement'] = currReplacement;\n localStorage['chkMultiWord'] = chkMultiWord.checked;\n localStorage['chkNoRepeat'] = chkNoRepeat.checked;\n}","function showCurrentLangData(){\n document.getElementById('title').value=point.currentLangData.title;\n document.getElementById('prim').value=point.currentLangData.prim;\n document.getElementById('primsaf').value=point.currentLangData.primsaf;\n autosize.update(document.getElementById('primsaf'));\n autosize.update(document.getElementById('prim'));\n for(var i=0;i\n var newLine = String.fromCharCode(10);\n \t// Firefox adds a
        for each new line, we replace it back\n \t// to a regular '\\n'\n var formattedValue = element.html().replace(/
        /ig,newLine).replace(/\\r/ig,'');\n \t// update the model\n ngModel.$setViewValue(formattedValue);\n \t// Set the formated (cleaned) value back into\n \t// the element's html.\n element.text(formattedValue);\n }","function updateOutput2() {\n localStorage.setItem('info2', input_textarea2.value)\n}","function readInp(){\n\tvar inp = document.getElementById(\"cfg\").value;\n\tvar without = interpret(inp);\n\tvar SymSet = new SymbolSet(without);\n\tvar startSym = SymSet.findSym(\"S\");\n\tvar sentence = SymSet.writeSymbol(startSym);\n\t//console.log(sentence);\n\tdocument.getElementById(\"output\").innerHTML += \"
      • \" + sentence + \"
      • \";\n}","function updateOutput4() {\n localStorage.setItem('info4', input_textarea4.value)\n}","function saveCharacterEdits(){}","function restore_inputs () {\n\n\t\t\t\tparse_variables();\n\n\t\t\t\t$('.form-w').val(W);\n\t\t\t\t$('.form-b').val(B);\n\t\t\t\t$('.form-mf').val(Mf);\n\t\t\t\t$('.form-mt').val(Mt);\n\n\t\t\t}","function updateOutput6() {\n localStorage.setItem('info6', input_textarea6.value)\n}","function readStuff() \n{ \n\tvar theform = document.theform;\n\n\t// Parse the category list\n\tcat = rewrite(theform.cats);\n\tncat = cat.length;\n\tvar badcats = false;\n\n\t// Make sure cats have structure like V=aeiou\n\tcatindex = \"\";\n\tvar w;\n\tfor (w = 0; w < ncat; w++) {\n\t\t// A final empty cat can be ignored\n\t\tthiscat = cat[w];\n\t\tif (thiscat.charCodeAt(thiscat.length - 1) == 13) {\n\t\t\tthiscat = thiscat.substr(0, thiscat .length - 1);\n\t\t\tcat[w] = thiscat;\n\t\t}\n\t\tif (thiscat.length == 0 && w == ncat - 1) {\n\t\t\tncat--;\n\t\t} else if (thiscat.length < 3) {\n\t\t\tbadcats = true;\n\t\t} else {\n\t\t\tif (find(thiscat , \"=\") == -1) {\n\t\t\t\tbadcats = true;\n\t\t\t} else {\n\t\t\t\tcatindex += thiscat.charAt(0);\n all_categories.push(thiscat);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Parse the sound changes \n\trul = rewrite(theform.rules);\n\tnrul = rul.length;\n \n var db = document.getElementById('db');\n db.style.display = 'none';\n db.innerHTML = '

        Bad rules which could not be parsed:

          ';\n \n\t// Remove trailing returns\n\tfor (w = 0; w < nrul; w++) {\n\t\tvar t = rul[w];\n\t\tif (t.charCodeAt(t.length - 1) == 13) {\n\t\t\trul[w] = t.substr(0, t.length - 1);\n\t\t\tt = rul[w];\n\t\t}\n\t\t\n\t\t// Sanity checks for valid rules\n\t\tvar valid = t.length > 0 && find(t, \">\") != -1;\n\t\tif (valid) {\n var pre = t.split('>')[0].replace(/[\\sØ]/g,'');\n if(t.indexOf('/') == -1){var post = '_';}\n else{var post = t.split('/')[1].replace(/\\s/,'');}\n var middle = t.split('>')[1].split('/')[0].replace(/[\\sØ]/,'');\n\n\t var thisrule = [pre,middle,post]; \n \n\t\t\tvalid = thisrule.length > 2 || \n\t\t\t\t(thisrule.length ==2 && \n\t\t\t\t find(thisrule[0], '\\u2192') != -1);\n\t\t\tif (valid) {\n\t\t\t\t// Insertions must have repl & nonuniversal env\n\t\t\t\tif (thisrule[0].length == 0) \n\t\t\t\t\tvalid = thisrule[1].length > 0 &&\n\t\t\t\t\t\tthisrule[2] != \"_\";\n\t\t\t}\n if(valid){all_rules.push(thisrule[0]+'>'+thisrule[1]+'/'+thisrule[2]);}\n\t\t}\n else\n {\n if(t.replace(/\\s/g,'') != '' && t[0] != '%')\n {\n db.innerHTML += '
        1. '+t+'
        2. ';\n db.style.display = 'block';\n }\n }\n\n\t\t// Invalid rules: move 'em all up\n\t\tif (!valid) {\n\t\t\tnrul--;\n\t\t\tfor (var q = w; q < nrul; q++) {\n\t\t\t\trul[q] = rul[q+1];\n\t\t\t}\n\t\t\tw--;\n\t\t}\n\t}\n db.innerHTML += '

        ';\n\n\t// Error strings\n\tif (badcats) {\n\t\treturn \"Categories are weird.\";\n\t} else if (nrul == 0) {\n\t\treturn \"There are no valid sound changes, so no output can be generated. Rules must be of the form s1/s2/e1_e2. The strings are optional, but the slashes are not.\" ;\n\t} else {\n\t\treturn \"\";\n\t}\n}","function save() {\r\n this.textarea.value = this.content();\r\n }","function save() {\n this.textarea.value = this.content();\n }","function updateOutput1() {\n localStorage.setItem('info1', input_textarea1.value)\n}","function intosc()\n{\n\tvar theform = document.theform;\n\n\ttheform.rules.value =\n\t\ttheform.cats.value + \"\\n\" + \n\t\ttheform.rewrite.value + \"\\n\" + \n\t\ttheform.rules.value + \"\\n\";\n}","function renderMessege() { \n var userInput = localStorage.getItem(\"inputField\")\n userTextInput.textContent = userInput;\n }","function saveStage(stateNum)\n {\n try\n {\n document.getElementById('longName').value = trim(document.getElementById('longName').value);\n if(document.getElementById('longName').value.match('#'))\n {\n document.getElementById('longName').value = document.getElementById('longName').value.replace(/#/g,\"\");\n } \n warn(stateNum);\n \n }\n catch(ex)\n {}\n \n }","function saveLSystem() {\n let data = getDOMRules();\n\n let saved = {}\n saved[iName.value] = {\n starts : iStart.value,\n len : parseFloat(iLen.value),\n angle : parseFloat(iAngle.value),\n rules : [\n ...data\n ]\n };\n \n if (localStorage.getItem('SavedLSystem')) {\n let ls = JSON.parse(localStorage.getItem('SavedLSystem'));\n for (const i in ls) {\n saved[i] = ls[i];\n }\n }\n \n localStorage.setItem('SavedLSystem', JSON.stringify(saved));\n}","function writeText() {\n\ttext.innerHTML = input.value;\n\tconst textSave = text.innerHTML;\n\tlocalStorage.setItem(\"textInStorage\", textSave); //textInStorage es un nombre que nosotras le damos\n\tconsole.log(textSave);\n}","function data(origin){\n switch (origin) {\n case 0://// saving \"key\" and it \"value\" in localStorage\n var input = document.getElementById(\"textMe\");\n localStorage.setItem(\"text\", input.value);\n var storedValue = localStorage.getItem(\"text\");\n document.getElementById('outputMe').innerHTML = storedValue = \"NOW YOU'R SAVED\";\n break;\n\n\n case 1:/// clears typing area, but keeps data in localStorage\n input = document.getElementById(\"textMe\");\n input.value = \"\";\n document.getElementById('outputMe').innerHTML = \"CAN TYPE AGAIN\";\n break;\n\n\n case 2:/// gets data from localStorage and displays at typing area\n var lastText = localStorage.getItem(\"text\");\n console.log(\"last text =\" + lastText);\n document.getElementById('textMe').value = lastText;\n document.getElementById('outputMe').innerHTML = \"LOOK I REMEMBER YOU\";\n break;\n\n\n case 3:/// clears all data from localStorage\n input = document.getElementById(\"textMe\");\n input.value = \"\";\n localStorage.clear();\n document.getElementById('outputMe').innerHTML = \"NOW IT IS EMTY\";\n break;\n\n default:\n\n break;\n }\n\n }","function load_data() {\n var input = document.getElementById(\"commentName\");\n var comm = document.getElementById(\"commentText\");\n\n input.value = localStorage.getItem('Name');\n comm.value = localStorage.getItem('Comment');\n}","function savedData() {\n var i1 = localStorage.getItem('inputText1');\n inOutText1.text(i1);\n var i2 = localStorage.getItem('inputText2');\n inOutText2.text(i2);\n var i3 = localStorage.getItem('inputText3');\n inOutText3.text(i3);\n var i4 = localStorage.getItem('inputText4');\n inOutText4.text(i4);\n var i5 = localStorage.getItem('inputText5');\n inOutText5.text(i5);\n var i6 = localStorage.getItem('inputText6');\n inOutText6.text(i6);\n var i7 = localStorage.getItem('inputText7');\n inOutText7.text(i7);\n var i8 = localStorage.getItem('inputText8');\n inOutText8.text(i8);\n var i9 = localStorage.getItem('inputText9');\n inOutText9.text(i9);\n $('#clear').on(\"click\", function () {\n localStorage.clear();\n });\n\n }","function backupInput() {\n lastInput = ELEMENTS.UPDATE_TEXTAREA.val();\n }","function onSaveAs(name) {\n\n // do we have a current file name?\n if(name == null) {\n // no, so choose one\n let file = dialog.showSaveDialog( mainWindow, {\n filters: [\n { name: 'System Exclusive Dump', extensions: ['syx'] },\n { name: 'All Files', extensions: ['*'] }\n ]\n });\n if(file == undefined || !file.length) {\n return;\n }\n name = file; \n }\n\n // prepare the handler to receive the serialised SYSEX\n // data from the form and save it to the file\n ipcMain.once('save-midi-rs', function(e, data) {\n try { \n fs.writeFileSync(name, new Buffer(data));\n setCurrentFileName(name);\n }\n catch(e) {\n dialog.showErrorBox(\"Failed To Save\", e.message);\n setCurrentFileName(null);\n }\n });\n\n // request the serialized SYSEX data from the form\n mainWindow.webContents.send('save-midi-rq');\n}","function updateOutput5() {\n localStorage.setItem('info5', input_textarea5.value)\n}","function display_saved_note() {\n if(check_web_storage_support() == true) {\n result = localStorage.getItem('note');\n }\n if(result === null) {\n result = \"\";\n }\n\n document.getElementById('area').value = result;\n}","function textToView () {\n\n var exhistData = JSON.parse(localStorage.getItem(\"setText\"));\n\n if (exhistData) {\n saveText = exhistData;\n }\n\n textToView();\n}","save() {\n this._toggleSaveThrobber();\n try {\n this._readFromForm();\n var resp = this.dao.save();\n if (!resp) {\n alert(\"Error while saving taxon.\")\n } else {\n var jsonObj = JSON.parse(resp);\n if (jsonObj[0].response == false ) {\n alert(jsonObj[1].response);\n } else {\n console.log(this.dao)\n // make sure the latin name input field is showing the correct name, reload data from server\n document.getElementById('latin_name').value = this.dao.unique_name;\n alert('Saved');\n }\n }\n } catch(e) {\n alert(e);\n console.log(e);\n }\n this._toggleSaveThrobber();\n }","function setData() {\n\n if (localStorage.length != 0) {\n loadData();\n document.getElementById('name').value = playerData.name;\n document.getElementById('l1').innerHTML = playerData.live;\n }\n if (playerData.close == \"true\") {\n document.getElementById('name').value = playerData.name;\n gewLevel = playerData.diff;\n document.getElementById('level').innerHTML = playerData.level;\n document.getElementById('l1').innerHTML = playerData.live;\n document.getElementById('score').innerHTML = playerData.highscore;\n gewModus = playerData.design;\n document.getElementById('a1').innerHTML = playerData.alien1;\n document.getElementById('a2').innerHTML = playerData.alien2;\n document.getElementById('a3').innerHTML = playerData.alien3;\n document.getElementById('a4').innerHTML = playerData.alien4;\n document.getElementById('a5').innerHTML = playerData.alien5;\n }\n }","function save() {\r\n\t\tvar str = myDiagram.model.toJson();\r\n\t\tdocument.getElementById(\"mySavedModel\").value = str;\r\n\t }","function saveEditCaption(e, data) {\n var $wp = $('.write-pages li'), // the list of book pages\n $page = $($wp.get(editIndex)), // the current page\n $caption = $page.find('p.thr-caption'),\n tooLong = typeof(data.value) == 'string' &&\n data.value.length > maxCaptionLength;\n //console.log('saving', data.value, 'was', $caption.html());\n $caption.html(data.value).toggleClass('text-too-long', tooLong);\n setModified();\n $editDialog.find('p.thr-caption').toggleClass('text-too-long', tooLong);\n }","function read() {\n var text = element.text();\n ngModel.$setViewValue(text);\n }","function setSave(e) {\n e.preventDefault();\n character.savingThrowModifier.strength = document.getElementById('strSave').value;\n character.savingThrowModifier.dexterity = document.getElementById('dexSave').value;\n character.savingThrowModifier.constitution = document.getElementById('conSave').value;\n character.savingThrowModifier.intelligence = document.getElementById('intSave').value;\n character.savingThrowModifier.wisdom = document.getElementById('wisSave').value;\n character.savingThrowModifier.charisma = document.getElementById('chaSave').value;\n}","function save(e) {\n let saveBtn = e.target;\n let inputBox = event.target.parentNode.lastChild;\n event.target.parentNode.firstChild.textContent = inputBox.value;\n inputBox.style.display = \"none\";\n saveBtn.style.display=\"none\";\n let editBtn = event.target.nextSibling;\n editBtn.style.display = \"inline\";\n \n}","function save() {\n str = myDiagram.model.toJson();\n document.getElementById(\"mySavedModel\").value = str;\n }","function load() {\r\n this.setContent(this.textarea.value);\r\n }","function save() {\n if (document.getElementById('workSettings').value < 1) {\n alert(usePositiveNumberText[localStorage.getItem('language')]);\n return;\n } else if (document.getElementById('shortBreakSettings').value < 1) {\n alert(usePositiveNumberText[localStorage.getItem('language')]);\n return;\n } else if (document.getElementById('longBreakSettings').value < 1) {\n alert(usePositiveNumberText[localStorage.getItem('language')]);\n return;\n }\n\n valueWork = document.getElementById('workSettings').value;\n valueShort = document.getElementById('shortBreakSettings').value;\n valueLong = document.getElementById('longBreakSettings').value;\n valueSound = document.getElementById('volume-slider').value;\n document.getElementById('clock').innerHTML = `${valueWork}:00`;\n\n localStorage.setItem('workSettings', `${valueWork}`);\n localStorage.setItem('shortBreakSettings', `${valueShort}`);\n localStorage.setItem('longBreakSettings', `${valueLong}`);\n localStorage.setItem('volume-slider', `${valueSound}`);\n}","readData() {\n\t\t// Se non esiste, lo crea, con le impostazioni di default\n\t\tif (!fs.existsSync(this.filepath)) {\n\t\t\tlogger.debug('Creato nuovo file di impostazioni.');\n\t\t\tthis.writeData();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tconst text = fs.readFileSync(this.filepath, 'utf8');\n\t\t\t// file YAML => {}\n\t\t\tconst data = yaml.safeLoad(text);\n\n\t\t\t// NOTE: validazione in lettura su readData, mentre in scrittura su setData.\n\t\t\tif (!isValid(data)) {\n\t\t\t\tthrow new Error('impostazioni del file non valide.');\n\t\t\t} else {\n\t\t\t\tthis.data = data;\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tlogger.error(`Errore nella lettura file yaml: ${e.toString()}`);\n\t\t}\n\t}","function saveLabel() {\n labelSave = true;\n labelCanc = false;\n $('#labelEditModal').modal('hide');\n}","function load() {\n this.setContent(this.textarea.value);\n }","_saveVocab() {\n let deutsch = document.querySelector(\".deutsch\").value;\n let englisch = document.querySelector(\".englisch\").value;\n let notiz = document.querySelector(\".notiz\").value;\n\n if (deutsch != \"\" || englisch != \"\"){\n\n // zurück zu input!!\n\n this._vokabeln.saveNew({\n deutsch: deutsch,\n englisch: englisch,\n notiz: notiz,\n //format: html,\n });\n\n // aus JS auf andere Seite leiten\n this._app.showVocabularyOverview();\n this._app.navigate(\"/\");\n\n } else {\n alert(\"Bitte alle Angaben ausfüllen!♥\");\n }\n }","saveData() {\n if (this.s.unavailable()) {\n return;\n }\n\n for (const val of this.dispField.items) {\n this.s.set(val, this.dispField.checked(val));\n }\n\n this.s.set(\"unit\", this.unitField.get());\n this.s.set(\"format\", this.formatField.get());\n this.s.set(\"sort\", this.sortableField.toArray());\n }","function customText() {\n let text = document.querySelector(\"textarea\").value;\n let parsedText = validateText(text);\n if (parsedText != null) {\n setInitials();\n displayText(parsedText);\n }\n}","function saveNotesTextArea(e){\n\t YAHOO.util.Event.preventDefault(e);\n\t var notesSpaceTest = /^\\s+$/;\n\t var sellerNotesGot = document.getElementById('sellerNotesNew').value;\n\t sellerNotesGot = sellerNotesGot.replace(/^\\s+|\\s+$/g,\"\");\n\t\tif (notesSpaceTest.test(sellerNotesGot) || sellerNotesGot == \"\"){\n\t\t\tdocument.getElementById('sellerNotesNew').value = \"\";\n\t\t\tdocument.getElementById('addInstructions').title = document.getElementById('addInstructions').childNodes[0].nodeValue;\n\t\t\tYAHOO.util.Dom.removeClass(document.getElementById(\"changeInstructions\"), 'show')\n\t\t\tYAHOO.util.Dom.addClass(document.getElementById('changeInstructions'), 'hide');\n\t\t\tYAHOO.util.Dom.removeClass(document.getElementById(\"addInstructions\"), 'hide')\n\t\t\tYAHOO.util.Dom.addClass(document.getElementById('addInstructions'), 'show');\n\t\t\tdocument.getElementById('notesCharacterCount').innerHTML = \"255\";\n\t\t}\n\t\telse{\n\t\t\tdocument.getElementById('sellerNotesNew').value = sellerNotesGot;\n\t\t\tdocument.getElementById('changeInstructions').title = document.getElementById('changeInstructions').childNodes[0].nodeValue;\n\t\t\tYAHOO.util.Dom.removeClass(document.getElementById(\"changeInstructions\"), 'hide')\n\t\t\tYAHOO.util.Dom.addClass(document.getElementById('changeInstructions'), 'show');\n\t\t\tYAHOO.util.Dom.removeClass(document.getElementById(\"addInstructions\"), 'show')\n\t\t\tYAHOO.util.Dom.addClass(document.getElementById('addInstructions'), 'hide');\n\t\t\ttruncatedInstructionShown(sellerNotesGot);\n\t\t}\n\tPAYPAL.reset.margin.orderInfo.saveInstructions();\n\tdocument.getElementById('sellerNotesCont').style.display = \"none\";\n\tYAHOO.util.Dom.removeClass(document.getElementById(\"addInstructions\"), 'opened')\n\tYAHOO.util.Dom.removeClass(document.getElementById(\"changeInstructions\"), 'opened')\n}","function updateTextArea() {\n // update save button\n if (localStorage.textAreaData != notepad.node.html()) {\n $(\"#save i\").addClass(\"shake\");\n $(\"#save i\").css(\"color\", \"rgb(33, 37, 41)\");\n } else {\n $(\"#save i\").removeClass(\"shake\");\n $(\"#save i\").css(\"color\", \"rgba(0,0,0,0.1)\");\n }\n wordsCount();\n checkSelectionFormat();\n ee();\n}","handleSpoofaxEdit(data)\r\n {\r\n console.log(\"Incoming Spoofax edit: \", JSON.stringify(data));\r\n switch (data[\"opType\"]) \r\n {\r\n case \"SetPropertyOp\":\r\n var lineArr = this.spoofaxData[\"model_0.dsl\"].split('%0A');\r\n lineArr[data[\"lineIndex\"]] = data[\"text\"];\r\n var outputText = '';\r\n for (let i = 0; i < lineArr.length - 1; i++) \r\n {\r\n outputText += lineArr[i] + '%0A';\r\n }\r\n outputText += lineArr[lineArr.length - 1];\r\n if (lineArr[lineArr.length - 1].length == 0)\r\n { \r\n outputText += '%0A';\r\n }\r\n this.spoofaxData[\"model_0.dsl\"] = outputText;\r\n break;\r\n \r\n default:\r\n break;\r\n }\r\n\r\n this.updateSpoofaxData(this.spoofaxData);\r\n }","updateDataInput(text){\n this.setState({soLanQuay: text});\n GlobalValue.soLanQuay = text;\n }","function updateSaveModal() {\r\n regexInput_modal.value = regexInput.value;\r\n templateInput_modal.value = templateInput.value;\r\n globalCheckbox_modal.checked = globalCheckbox.checked;\r\n caseInsensitiveCheckbox_modal.checked = caseInsensitiveCheckbox.checked;\r\n multilineCheckbox_modal.checked = multilineCheckbox.checked;\r\n IgnoreHTMLCheckbox_modal.checked = IgnoreHTMLCheckbox.checked;\r\n}","function saveLayout() {\n var layout = []\n layout.push(myDiagram.model.nodeDataArray)\n layout.push(myDiagram.model.linkDataArray)\n var summarized = document.getElementById(\"summarized\").checked\n var save = prompt(\"Please enter a layout name\"); \n\t\tif (save != null) {\t\t\n\t\t\t\tvar data = {\n\t\t\t\t\t'name':save,\n\t\t\t\t\t\"layout\":layout,\n\t\t\t\t\t\"state\":summarized\n\t\t\t\t};\n\t\t\t\n\t\t\t/*send layout data to back end*/\n\t\t\t$.ajax({\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\t\tcontentType: 'application/json',\n\t\t\t\t\turl: '/save_layout',\n\t\t\t\t\tsuccess:function(text){\n\t\t\t\t\t\t//alert(text);\n\t\t\t\t\t}\n\t\t\t});\n\t\t}\n }","function sid_handle_kbdevent(e) {\n\t\t\n\t\tif(e.keyCode == 13) {\n\t\t\t// if enter key is pressed\n\t\t\tsid.write('');\n\n\t\t\tif(sid.value == \"\") {\n\t\t\t\tsid.write((sid.state > 2 ? 'Please enter your name.' : 'Please enter your student ID.'));\n\t\t\t} else if(sid.state == 1 && sid.value.match(/^[a-z\\ ]+/gi) && !sid.reg) {\n\t\t\t\tif(sid.value.match(/^(export|update|give|make|save|create)/gi) && !sid.value.match(/([\"']+)/gi)) {\n\t\t\t\t\tif(sid.value.match(/(\\ )+(csv)/gi)) {\n\t\t\t\t\t\tif(sid.temp = sid.value.match(/(emails|first names|ids|last names|fname(s|)|lname(s|))/gi)) {\n\t\t\t\t\t\t\tsid.write(sid.temp);\n\t\t\t\t\t\t\t// sid.command('/create/csv/'+sid.temp,function(err) {\n\t\t\t\t\t\t\t// \tif(err) {\n\t\t\t\t\t\t\t// \t\treturn sid.write('There was an error creating a csv file from the requested data.');\n\t\t\t\t\t\t\t// \t}\n\n\t\t\t\t\t\t\t// \tsid.value = '';\n\t\t\t\t\t\t\t// \tsid.write('A comma-separated values file has been created from the requested data.');\n\t\t\t\t\t\t\t// });\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsid.command('/export/csv',function(err) {\n\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\treturn sid.write('There was an error creating a CSV file from the data: '+err);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\t\tsid.write('A CSV file has been created from the data.');\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(sid.value.match(/(\\ )+(db|mysql|sql|database)/gi) || !sid.value.match(/(\\ )+(excel)/gi)) {\n\t\t\t\t\t\tsid.command('/export/mysql',function(err) {\n\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\treturn sid.write('There was an error updating the Excel spreadsheet.');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\tsid.write('The data has been successfully exported.');\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsid.command('/export/excel',function(err) {\n\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\treturn sid.write('There was an error updating the Excel spreadsheet.');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\tsid.write('The data has been successfully exported.');\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else if(sid.value.match(/^(how)([a-z\\ ]+)(people|students|persons)/gi)) {\n\t\t\t\t\tif(sid.value.match(/(new)/gi)) {\n\t\t\t\t\t\tsid.write(stats.registered+' new people have signed up so far.');\n\t\t\t\t\t} else if(sid.value.match(/(((are)([\\ ]?)(there|here|present)|((have))([\\ ]?)(come|arrived|shown up|shown|signed (up|in)|registered))|(\\?|()))/gi)) {\n\t\t\t\t\t\tsid.write('There are currently '+stats.total+' people signed in.');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsid.error();\n\t\t\t\t\t}\n\t\t\t\t\tsid.value = '';\n\t\t\t\t} else if(sid.value.match(/^(I|())(\\ )+([a-z\\'\\.\\ ]+)(id)$/gi)) {\n\t\t\t\t\tsid.write('If you know your student ID, please type that in.');\n\t\t\t\t} else if(sid.value.match(/^(delete|remove|erase|undo)(\\ )+(the|())([a-z0-9\\ ]+)(people|entr(y|ies)|row(s|)|person(s|())|name(s|)|student(s|))/)) {\n\t\t\t\t\tif(sid.value.match(/(last|first|latest)([\\ ]+)(two|three|four|five|six|seven|eight|nine|ten)?(\\ )*(new)?(\\ )*(person|student|name|entry|row)/gi)) {\n\t\t\t\t\t\tif(sid.value.match(/(latest)/gi) || sid.value.match(/(last)([\\ ]+)(new)?(\\ )*(person|student|name|entry|row)/gi)) {\n\t\t\t\t\t\t\t//remove the last new person signed in\n\t\t\t\t\t\t\tif(sid.value.match(/(new)/gi)) {\n\t\t\t\t\t\t\t\tsid.command('/event/delete/bottom/1/new', function(err) {\n\t\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\t\t// adverise error to client console\n\t\t\t\t\t\t\t\t\t\tconsole.log('The event requested could not be removed -> ' + err);\n\n\t\t\t\t\t\t\t\t\t\t// log error to gui console and exit function\n\t\t\t\t\t\t\t\t\t\treturn sid.error(err);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// log success to gui console\n\t\t\t\t\t\t\t\t\tsid.write('The last new person signed in has been removed.');\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t// remove the last person to have signed in\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// send request to server to server to delete last added entry\n\t\t\t\t\t\t\t\tsid.command('/event/delete/bottom/1', function(err, data) {\n\t\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\t\t// adverise error to client console\n\t\t\t\t\t\t\t\t\t\tconsole.log('The event requested could not be removed -> ' + err);\n\n\t\t\t\t\t\t\t\t\t\t// log error to gui console and exit function\n\t\t\t\t\t\t\t\t\t\treturn sid.error(err);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// update server stats locally\n\t\t\t\t\t\t\t\t\tevents.emit('serverStatsReceived', JSON.parse(data).data);\n\n\t\t\t\t\t\t\t\t\t// log success to gui console\n\t\t\t\t\t\t\t\t\tsid.write('The last person signed in has been removed.');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if(sid.value.match(/(first (person|student|name|entry|row))/gi)) {\n\t\t\t\t\t\t\t//remove the first student signed in\n\t\t\t\t\t\t\tif(sid.value.match(/(new)/gi)) {\n\t\t\t\t\t\t\t\tsid.command('/event/delete/top/1/new',function(err) {\n\t\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\t\treturn sid.error('The event requested could not be removed: '+err);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tsid.write('The first new person signed in has been removed.');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//'event/delete/(top|bottom|id)/(amount|amount|id)/flag\n\t\t\t\t\t\t\t\tsid.command('/event/delete/top/1',function(err) {\n\t\t\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\t\t\treturn sid.error('The event requested could not be removed: '+err);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tsid.write('The first person signed in has been removed.');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if(sid.value.match(/(people|persons|names|students|rows)/gi)) {\n\t\t\t\t\t\t\t//remove x amount of people\n\t\t\t\t\t\t\tsid.error('I can\\'t do that yet.');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsid.error();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(sid.temp = sid.value.match(/(last|first|latest)(\\ )+([0-9]+)(\\ )+(new)?(\\ )*(people|students|names|rows|entries)/gi)) {\n\t\t\t\t\t\tif(sid.value.match(/(new)/gi)) {\n\t\t\t\t\t\t\tsid.write('The last '+sid.temp[0].split(' ')[1]+' new people have been deleted.');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsid.write('The last '+sid.temp[0].split(' ')[1]+' people have been deleted.');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsid.error();\n\t\t\t\t\t}\n\t\t\t\t} else if(sid.value.match(/(set|event|name|speaker|company|talk|speech|presentation)/gi)) {\n\t\t\t\t\tif(sid.temp = sid.value.match(/([\"']{1})([a-z\\ 0-9\\.\\,\\-\\_\\+\\=\\(\\)\\:\\;\\/\\%\\$\\#\\@\\!\\*]+)([\"']{1})/gi)) {\n\t\t\t\t\t\tsid.command('/event/name/'+encodeURIComponent(sid.temp[0].substring(1,sid.temp[0].length-1)),function(err) {\n\t\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\t\treturn sid.error('The event\\'s name could not be set: '+err);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\tsid.write('This event\\'s name has been set to '+sid.temp[0]);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsid.error();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvar xhr = new XMLHttpRequest();\n\t\t\t\t\txhr.open('GET','http://navigator-fixed.rhcloud.com/apis/askcom/http://www.ask.com/web?q='+encodeURIComponent(sid.value.split('?')[0])+'&qsrc=0&o=0&l=dir',true);\n\t\t\t\t\txhr.send();\n\t\t\t\t\txhr.addEventListener('readystatechange',function() {\n\t\t\t\t\t\tif(this.readyState == 4 && this.status == 200) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar wrapper = document.createElement('div');\n\t\t\t\t\t\t\twrapper.innerHTML = this.responseText;\n\n\t\t\t\t\t\t\tvar found = false;\n\n\t\t\t\t\t\t\tvar ansrs = wrapper.getElementsByClassName('tsrc_answ');\n\t\t\t\t\t\t\tvar rsrs = wrapper.getElementsByClassName('rightrail-web-result-description');\n\t\t\t\t\t\t\tvar wres = wrapper.getElementsByClassName('web-result-description');\n\n\t\t\t\t\t\t\tif((ansrs.length || rsrs.length) && wres.length && Math.round(Math.random() * 50) > 25) {\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t\tanswer = wres.item(Math.round(Math.random() * Math.min((wres.length - 1), 3))).innerHTML;\n\t\t\t\t\t\t\t\tanswer = answer.split(\"\\\"\\>\\ More\")[0];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tif(ansrs.length && rsrs.length) {\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t\tif(Math.round(Math.random() * 10) > 5) {\n\t\t\t\t\t\t\t\t\tanswer = ansrs.item(Math.round(Math.random() * (ansrs.length - 1))).children[1].children[1].innerHTML;\n\t\t\t\t\t\t\t\t\tanswer = answer.split(\"\\\"\\>Read\\ More\")[0];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tanswer = rsrs.item(Math.round(Math.random() * (rsrs.length - 1))).innerHTML;\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(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tif(ansrs.length) {\n\t\t\t\t\t\t\t\tanswer = ansrs.item(Math.round(Math.random() * (ansrs.length - 1))).children[1].children[1].innerHTML;\n\t\t\t\t\t\t\t\tanswer = answer.split(\"\\\"\\>Read\\ More\")[0];\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tif(rsrs.length) {\n\t\t\t\t\t\t\t\tanswer = rsrs.item(Math.round(Math.random() * (rsrs.length - 1))).innerHTML;\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tif(wres.length) {\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t\tanswer = wres.item(Math.round(Math.random() * Math.min((wres.length - 1), 3))).innerHTML;\n\t\t\t\t\t\t\t\tanswer = answer.split(\"\\\"\\>\\ More\")[0];\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(found) return sid.write(answer);\n\n\t\t\t\t\t\t\tsid.error();\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsid.error();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// strip first two numbers from student ID\n\t\t\t\tif(sid.value.match(/^20(00|000)[0-9]{5,6}/gi)) {\n\t\t\t\t\tsid.value = sid.value.substring(2, sid.value.length);\n\t\t\t\t}\n\n\t\t\t\t// if the registering-new-student 'reg' property is set on the input and value matches a string,\n\t\t\t\t// or if there is no 'reg' property set and the value matches a number (for a student id), continue\n\t\t\t\tif((!sid.reg && sid.value.match(/^(00|000)[0-9]{5,6}/gi)) || (sid.reg && sid.dataState != null)) {\n\t\t\t\t\t// if the 'register' flag is set, meaning we want to add a new entry and\n\t\t\t\t\t// that a dataState exists\n\t\t\t\t\tif(sid.reg && sid.dataState) {\n\t\t\t\t\t\t// check which 'input' stage the new user is on\n\t\t\t\t\t\tif(sid.dataState == 1) {\n\t\t\t\t\t\t\t// check to see that a first and last name are entered\n\t\t\t\t\t\t\tif(sid.value.match(/^[a-z\\'\\-]+(\\ )[a-z\\'\\-]+/gi)) {\n\t\t\t\t\t\t\t\t// collect stuname and move on to next data state\n\t\t\t\t\t\t\t\tsid.dataState = 2;\n\n\t\t\t\t\t\t\t\t// parse first and last name from sid.value by splitting by spaces\n\t\t\t\t\t\t\t\t// and assigning values to sid.fname and sid.lname respectively\n\t\t\t\t\t\t\t\tsid.fname = sid.value.split(' ')[0];\n\t\t\t\t\t\t\t\tsid.lname = sid.value.split(' ')[1];\n\n\t\t\t\t\t\t\t\t// prompt student to enter the next dataState value (year)\n\t\t\t\t\t\t\t\tsid.placeholder = 'Enter graduating year to continue...';\n\n\t\t\t\t\t\t\t\t// reset input value\n\t\t\t\t\t\t\t\tsid.value = '';\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// if an invalid name is entered, \n\t\t\t\t\t\t\t\tsid.error('Please enter a valid name.');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if(sid.dataState == 2) {\n\t\t\t\t\t\t\t// collect year and move on to next data state\n\t\t\t\t\t\t\tsid.dataState = 3;\n\n\t\t\t\t\t\t\t// set sid.year to current sid value to save entered value (year)\n\t\t\t\t\t\t\tsid.year = sid.value;\n\n\t\t\t\t\t\t\t// prompt student to enter the next dataState value (major)\n\t\t\t\t\t\t\tsid.placeholder = 'Please enter your major...';\n\n\t\t\t\t\t\t\t// reset input value\n\t\t\t\t\t\t\tsid.value = '';\n\n\t\t\t\t\t\t} else if(sid.dataState == 3) {\n\t\t\t\t\t\t\t// collect 'major' and set dataState flag to 0. This tells the program\n\t\t\t\t\t\t\t// that the registration process is ending and must be reset.\n\t\t\t\t\t\t\tsid.dataState = 0;\n\n\t\t\t\t\t\t\t// set sid.major to current sid value to save entered value (major)\n\t\t\t\t\t\t\tsid.major = sid.value;\n\n\t\t\t\t\t\t\t// prompt student to enter the next dataState value (email)\n\t\t\t\t\t\t\tsid.placeholder = 'Finally, enter your email to sign in...';\n\n\t\t\t\t\t\t\t// reset input value\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// store data to be sent as post request to server containing\n\t\t\t\t\t\t// entry information such as name, id, major, etc.\n\t\t\t\t\t\tvar data = \"id=\" + sid.value;\n\n\t\t\t\t\t\t// default uri for logging already existing entries\n\t\t\t\t\t\tvar uri = '/register';\n\n\t\t\t\t\t\t// if the 'reg' flag is set, but there is no dataState flag, or the dataState\n\t\t\t\t\t\t// flag is 0, this indicates the registration process has ended and must be reset.\n\t\t\t\t\t\tif(sid.reg && !sid.dataState) {\n\t\t\t\t\t\t\t// set sid.email to current sid value to save entered value (email)\n\t\t\t\t\t\t\tsid.email = sid.value;\n\n\t\t\t\t\t\t\t// reset input and placeholder values\n\t\t\t\t\t\t\tsid.value = '';\n\t\t\t\t\t\t\tsid.placeholder = 'Scan your ID';\n\n\t\t\t\t\t\t\t// format outgoing data string with new student information\n\t\t\t\t\t\t\tdata = \t'student_id='\t+ sid.sid \t\t+ \t\t\t// contains student id\n\t\t\t\t\t\t\t\t\t'&first=' \t\t+ sid.fname \t+ \t\t\t// contains student first name\n\t\t\t\t\t\t\t\t\t'&last='\t\t+ sid.lname\t\t+\t\t\t// contains student last name\n\t\t\t\t\t\t\t\t\t'&year=' \t\t+ sid.year \t\t+\t\t\t// contains student year\n\t\t\t\t\t\t\t\t\t'&major='\t\t+ sid.major\t\t+\t\t\t// contains student major\n\t\t\t\t\t\t\t\t\t'&email='\t\t+ sid.email \t;\t\t\t// contains student email\n\n\t\t\t\t\t\t\t// update api request to register entry as new\n\t\t\t\t\t\t\turi = '/register/new';\n\n\t\t\t\t\t\t\t// reset 'reg' flag to end registration mode and clear the 'sid' field of our input field object\n\t\t\t\t\t\t\tsid.reg = false;\n\t\t\t\t\t\t\tsid.sid = null;\n\n\t\t\t\t\t\t\t// clear dataState flag to indicate no registration prompt is going to be shown\n\t\t\t\t\t\t\tsid.dataState = null;\n\n\t\t\t\t\t\t\t// advertise registration was successful\n\t\t\t\t\t\t\tsid.write('You have been successfully registered!');\n\n\t\t\t\t\t\t\t// if information is entered successfully, update registrant counter\n\t\t\t\t\t\t\tstats.registered++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// if program is no longer in 'registration' mode, send new data to the server\n\t\t\t\t\t\tvar xhr = new XMLHttpRequest();\n\t\t\t\t\t\txhr.open('POST', uri, true);\n\t\t\t\t\t\txhr.send(data);\n\t\t\t\t\t\txhr.addEventListener('readystatechange',function() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(this.readyState == 4 && this.status == 200) {\n\t\t\t\t\t\t\t\tvar student = JSON.parse(this.responseText);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsid.state = 2; // state of 2 tells input field to reset its value\n\n\t\t\t\t\t\t\t\t// if the entry exists in the server 'database'\n\t\t\t\t\t\t\t\tif(student.registered) {\n\t\t\t\t\t\t\t\t\t// check if the entry has already been updated with the server\n\t\t\t\t\t\t\t\t\tif(student.alreadyRegistered) {\n\t\t\t\t\t\t\t\t\t\t// output message to the input field\n\t\t\t\t\t\t\t\t\t\tsid.value = 'You have already been signed in!';\n\n\t\t\t\t\t\t\t\t\t\t// output message to the interface console\n\t\t\t\t\t\t\t\t\t\tsid.error('You cannot register more than once per event.');\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// output welcome message to the input field\n\t\t\t\t\t\t\t\t\t\tsid.value = 'Welcome, ' + student.fname + ' ' + student.lname;\n\n\t\t\t\t\t\t\t\t\t\t// broadcast 'register' event\n\t\t\t\t\t\t\t\t\t\tevents.emit('register', [stats.total]);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tsid.value \t\t= '';\t\t\t\t\t\t// reset our input value\n\t\t\t\t\t\t\t\t\tsid.placeholder = \t\t\t\t\t\t\t// sets input with instructions for user\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t'Enter your name to continue...';\n\n\t\t\t\t\t\t\t\t\tsid.state \t\t= 3;\t\t\t\t\t\t// state of '3' tells input field to reset its value\n\t\t\t\t\t\t\t\t\tsid.dataState \t= 1;\n\t\t\t\t\t\t\t\t\tsid.reg \t\t= true;\t\t\t\t\t\t// tell app it is now in 'registration' mode\n\t\t\t\t\t\t\t\t\tsid.sid \t\t= student.id; \t\t\t\t// store student id in our main input field object\n\n\t\t\t\t\t\t\t\t\t// output registration message to the interface console\n\t\t\t\t\t\t\t\t\tsid.write('Welcome. Follow the steps above to register.');\n\n\t\t\t\t\t\t\t\t\t// play sound alert\n\t\t\t\t\t\t\t\t\tApp.playAlert();\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}\n\t\t\t\t} else {\n\t\t\t\t\tif(!sid.reg) {\n\t\t\t\t\t\tsid.write('Please enter a valid student ID.');\n\t\t\t\t\t} else {\t\n\t\t\t\t\t\tsid.write('Please enter your full name.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if(e.keyCode == 27) {\n\t\t\tif(sid.reg) {\n\t\t\t\tsid.state = 1;\n\t\t\t\tsid.reg = false;\n\t\t\t\tsid.value = '';\n\n\t\t\t\t// output default message\n\t\t\t\tsid.placeholder = 'Type your ID to continue...';\n\n\t\t\t\t// clear input\n\t\t\t\tsid.write('');\n\t\t\t}\n\t\t\tsid.blur();\n\t\t} else {\n\t\t\tif(sid.state == 2) {\n\t\t\t\t// change input value type from \n\t\t\t\tsid.state = 1;\n\t\t\t\tsid.value = '';\n\t\t\t} else if(sid.state == 3) {\n\t\t\t\t// clear student id input and set current input value\n\t\t\t\t// type to accept student's name\n\t\t\t\tsid.state = 1;\n\t\t\t\tsid.value = '';\n\t\t\t}\t\t\t\n\t\t}\n\t}","function process() {\n fs.writeFileSync(\"./js/english/data.json\", JSON.stringify(english));\n}","function save() {\n const newcontent = textarea.val().trim()\n if (has_pretty_content_holder)\n content_holder.hide()\n\n $.post(endpoint, {content: newcontent})\n .fail(_ => {\n\t controls.html(new_controls)\n\t content_holder.html(textarea)\n textarea.addClass('invalid')\n // TODO: on error, include error message\n })\n .done(answer => {\n\tif (has_pretty_content_holder)\n\t pretty_content_holder.html(answer)\n\trestore(newcontent)\n })\n }","function workWithEntry(texts,n)\\par\r\n \\{\\par\r\n var texts = texts;\\par\r\n if(typeof(n) != 'undefined')\\par\r\n \\{\\par\r\n var header = 'Pers\\'f6nlichen Text bearbeiten';\\par\r\n var name = texts[n].name;\\par\r\n var text = texts[n].value;\\par\r\n \\}\\par\r\n else\\par\r\n \\{\\par\r\n var header = '\\lang1025\\f1\\rtlch\\'e4\\'d5 \\'cc\\'cf\\'ed\\'cf\\lang1036\\f0\\ltrch ';\\par\r\n var name = '';\\par\r\n var text = '';\\par\r\n \\}","function readUserInput() {\n\tvar settings = {};\n\t//Plasmid Section\n\tsettings.plasmidname = readtxtField(\"txtPlasmidName\");\n\tsettings.plasmidnameon = readField(\"bolShowPlasmidName\");\n\tsettings.plasmidsize = readField(\"txtPlasmidSize\");\n\tsettings.plasmidsizeon = readField(\"bolShowPlasmidSize\");\n\tsettings.plasmidradius = readField(\"txtRadius\");\n\tsettings.bbwidth = readField(\"txtBackBoneWidth\");\n\tsettings.bbcolor = readField(\"optBackBoneColor\");\n\tsettings.bbon = readField(\"bolShowBackBone\");\n\t//Feature Section (General)\n\tsettings.fwidth = readField(\"txtFeatureWidth\");\n\tsettings.fstrokewidth = readField(\"txtFeatureStrokeWidth\");\n\tsettings.fstrokered = readField(\"txtStrokeRed\");\n\tsettings.fstrokegreen = readField(\"txtStrokeGreen\");\n\tsettings.fstrokeblue = readField(\"txtStrokeBlue\");\n\tsettings.farrowlength = readField(\"txtArrowHeadLength\");\n\tsettings.farrowwidth = readField(\"txtArrowHeadWidth\");\n\t//Text section\n\tsettings.txton = readField(\"bolShowText\");\n\tsettings.txtfamily = readField(\"optFontFamily\");\n\tsettings.txtsize = readField(\"txtFontSize\");\n\tsettings.txtcolor = readField(\"optFontColor\");\n\tsettings.txtbold = readField(\"bolTextBold\");\n\tsettings.txtloc = readField(\"optTextLocation\");\n\t//Canvas section\n\tsettings.cw = readField(\"txtCanvasWidth\");\n\tsettings.ch = readField(\"txtCanvasHeight\");\n\tsettings.error = 0;\n\tsettings.errmsg = \"\";\n\t//Calculated properties\n\tsettings.ox = settings.cw / 2;\n\tsettings.oy = settings.ch / 2;\n\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\n\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\n\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\n\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\n\treturn settings;\n}","function save() {\n $editors.find('.text').each(function () {\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\n });\n }","inputData() {\n return (e) => {\n e.persist();\n var reader = new FileReader();\n const self = this;\n reader.onload = function(e) {\n self.parseInputData(reader.result);\n }\n reader.readAsText(e.target.files[0]);\n e.target.value = \"\";\n };\n }","function load() {\n colors();\n timeDis();\n timeChange();\n\n var input = JSON.parse(localStorage.getItem(\"input\"));\n\n if (input == null) {\n localStorage.setItem(\"input\", JSON.stringify(schedule));\n input = JSON.parse(localStorage.getItem(\"input\"));\n }\n for (var i = 0; i < time.length; i++) {\n if (input[i] == null) {\n schedule[i] = \"\";\n }\n schedule = input;\n $(\"#\" + i).siblings(\"textarea\").val(schedule[i]);\n }\n}","function parseAndDisplayRelabel() {\n if (relabelFirstLine >= 0 && relabelFirstLine <= relabelLastLine) {\n let l = relabelFirstLine\n while (l <= relabelLastLine) {\n const colon = puzzleTextLines[l].indexOf(':')\n if (colon < 0) {\n throwErr('Line in exolve-relabel does not look like ' +\n '\"id: new-label\":' + puzzleTextLines[l])\n }\n let id = puzzleTextLines[l].substr(0, colon).trim()\n let elt = document.getElementById(id)\n if (!elt) {\n throwErr('exolve-relabel: no element found with id: ' + id)\n }\n elt.innerHTML = puzzleTextLines[l].substr(colon + 1).trim()\n l++;\n }\n }\n if (language) {\n document.documentElement.lang = language\n gridInput.lang = language\n questions.lang = language\n gridInput.maxLength = '' + (2 * langMaxCharCodes)\n }\n}","function saveAsProgramToServer() {\n $formSingleModal.validate();\n if ($formSingleModal.valid()) {\n $('.modal').modal('hide'); // close all opened popups\n var xml = Blockly.Xml.workspaceToDom(blocklyWorkspace);\n var xmlText = Blockly.Xml.domToText(xml);\n var progName = $('#singleModalInput').val().trim();\n LOG.info('saveAs program ' + GUISTATE_C.getProgramName());\n PROGRAM.saveAsProgramToServer(progName, GUISTATE_C.getProgramTimestamp(), xmlText, function(result) {\n UTIL.response(result);\n if (result.rc === 'ok') {\n result.name = progName;\n result.programShared = false;\n GUISTATE_C.setProgram(result);\n MSG.displayInformation(result, \"MESSAGE_EDIT_SAVE_PROGRAM_AS\", result.message, GUISTATE_C.getProgramName());\n }\n });\n }\n }","function updateLs() { \n \n const notesText = document.querySelectorAll('textarea'); // queryselector all return array od elements\n\n const notes = [];\n\n notesText.forEach((note) => {\n notes.push(note.value);\n });\n\n localStorage.setItem('notes',JSON.stringify(notes));\n\n }","function saveCaptionEdit(_data){\n if(_data != \"add caption here\"){\n\t var docu = new DOMParser().parseFromString('', \"application/xml\")\n\t var newCDATA=docu.createCDATASection(_data);\n\t console.log(_data);\n\t if(rootType != 'branching' && rootType != \"pathing\" && rootType != \"chaining\"){\n\t\t $(data).find(\"page\").eq(currentPage).find(\"caption\").first().empty();\n\t\t $(data).find(\"page\").eq(currentPage).find(\"caption\").first().append(newCDATA);\n\t\t }else{\n\t\t\t $(data).find(\"page\").eq(currentPage).find(\"branch\").eq(_id).append($(\"\"));\n\t\t\t var newPageCaption = new DOMParser().parseFromString('', \"text/xml\");\n\t\t\t $(data).find(\"page\").eq(currentPage).find(\"branch\").eq(_id).find(\"caption\").first().empty();\n\t\t $(data).find(\"page\").eq(currentPage).find(\"branch\").eq(_id).find(\"caption\").first().append(newCDATA);\n\t\t\t}\n\t sendUpdate();\n\t }\n }","function update() {\n\t\tUtil.txt.setLibraryBrowser( Util.fs.getLibraries() );\n\t\tUtil.txt.setFileBrowser( Util.fs.getNotes(currentLib) );\n\t\tUtil.txt.setInputText( Util.fs.getNoteContent(currentLib,currentNote) );\n\t}","function read() {\n\t\t\t\t\t\tvar html = element.html();\n\t\t\t\t\t\t// When we clear the content editable the browser leaves a
        behind\n\t\t\t\t\t\t// If strip-br attribute is provided then we strip this out\n\t\t\t\t\t\tif (attrs.stripBr && html == \"
        \") {\n\t\t\t\t\t\t\thtml = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tngModel.$setViewValue(html);\n\t\t\t\t\t}","function save() {\n editors.forEach(function (editor, index) {\n textareas[index].value = editor.querySelector('.text').innerHTML;\n });\n }","function restoreState() {\n\t\tvar cookieData;\n\t\tif (!elToPaste) {\n\t\t\tcookieData = getCookie(save_file_cookie);\n\t\t\tif (cookieData != null) {\n\t\t\t\tcookieData = cookieData.split(',');\n\t\t\t\telToPaste = {type: unescape(unescape(cookieData[0])), name: unescape(unescape(cookieData[1])), cmd: unescape(unescape(cookieData[2]))};\n\t\t\t}\n\t\t}\n\t\tcookieData = getCookie(save_inf_cookie);\n\t\tif (cookieData != null) {\n\t\t\tcookieData = cookieData.split(',');\n\t\t\tif ((cookieData[0] != '') || (cookieData[0] != '/')) {\n\t\t\t\tcur_path = unescape(cookieData[0]);\n\t\t\t}\n\t\t\tview_type = cookieData[1];\n\t\t}\n\t}","function saveData() {\n\t\tif(!key){\n\t\t\tvar id \t\t\t\t\t\t= Math.floor(Math.random()*1000001);\n\t\t}else{\n\t\t\tid = key;\n\t\t}\n\t\t\n\t\tgetRadioValue ();\n\t\tgetCheckbox();\n\t\tvar item\t\t\t\t\t\t= {};\n\t\t\t item.kname\t\t\t\t= [\"Kid's Name:\", $(\"kname\").value];\n\t\t\t item.pname\t\t\t\t= [\"Parent's Name:\", $(\"pname\").value];\n\t\t\t item.phone\t\t\t\t= [\"Phone #:\", $(\"phone\").value];\n\t\t\t item.email\t\t\t\t= [\"Email:\", $(\"email\").value];\n\t\t\t item.date\t\t\t\t= [\"Play Date:\", $(\"date\").value];\n\t\t\t item.sex\t\t\t\t= [\"Sex:\", sexValue];\n\t\t\t item.choice\t\t\t= [\"Best Time of Week:\", $(\"choice\").value];\n\t\t\t item.select\t\t\t= [\"Best Time of Day:\", $(\"dayTimes\").value];\n\t\t\t item.allergies\t\t= [\"Needs:\", hasAllergy];\n\t\t\t item.comments\t\t\t= [\"Notes:\", $(\"comments\").value];\n\t\t\t item.outgoing\t\t\t= [\"How Outgoing? 1-10:\", $(\"outgoing\").value];\n\t\tlocalStorage.setItem(id, JSON.stringify(item));\n\t\talert(\"Saved!\");\n\t}","function save() {\n str = myDiagram.model.toJson();\n document.getElementById(\"mySavedModel\").value = str;\n }","function displayNotes (){\n if (localStorage.getItem(\"generalInfo\")){\n generalInfo = JSON.parse(localStorage.getItem(\"generalInfo\"));\n for(i = 0; i < generalInfo.length; i++){\n $(\"#inputEvent\"+generalInfo[i].display).attr(\"value\", generalInfo[i].notes);\n console.log($(\"#inputEvent\"+generalInfo[i].display));\n }\n }\n }","function saveLocalStorage() {\n const userInput9 = localStorage.getItem('9');\n $('#9')\n .children('.description')\n .text(userInput9);\n\n const userInput10 = localStorage.getItem('10');\n $('#10')\n .children('.description')\n .text(userInput10);\n\n const userInput11 = localStorage.getItem('11');\n $('#11')\n .children('.description')\n .text(userInput11);\n\n const userInput12 = localStorage.getItem('12');\n $('#12')\n .children('.description')\n .text(userInput12);\n\n const userInput1 = localStorage.getItem('13');\n $('#13')\n .children('.description')\n .text(userInput1);\n\n const userInput2 = localStorage.getItem('14');\n $('#14')\n .children('.description')\n .text(userInput2);\n\n const userInput3 = localStorage.getItem('15');\n $('#15')\n .children('.description')\n .text(userInput3);\n\n const userInput4 = localStorage.getItem('16');\n $('#16')\n .children('.description')\n .text(userInput4);\n\n const userInput5 = localStorage.getItem('17');\n $('#17')\n .children('.description')\n .text(userInput5);\n }","function saveNote() {\n var sText = document.getElementById('note_area').value;\n\n if (oSelectedNote == null) {\n note = new Note();\n note.sNote = sText;\n\n oData.jsFormula.addNote(note);\n\n oNotesTable.row.add([\n note.nuNote,\n note.iIdNote,\n note.sNote\n ]).draw( false );\n }\n else {\n oData.jsFormula.getNote(oSelectedNote.nuNote).sNote = sText;\n $('#notes_table').dataTable().fnUpdate(sText , oSelectedNote.nuNote, 2);\n }\n\n initNote();\n}","_save() {\n\t\tconst version = this._editor.model.document.version;\n\n\t\t// Operation may not result in a model change, so the document's version can be the same.\n\t\tif ( version === this._lastDocumentVersion ) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tthis._data = this._getData();\n\t\t\tthis._lastDocumentVersion = version;\n\t\t} catch ( err ) {\n\t\t\tconsole.error(\n\t\t\t\terr,\n\t\t\t\t'An error happened during restoring editor data. ' +\n\t\t\t\t'Editor will be restored from the previously saved data.'\n\t\t\t);\n\t\t}\n\t}","function loaddata(){\n\t\tvar data1 = localStorage.getItem(\"infor_sku\") || \"\";\n\t\tvar data2 = localStorage.getItem(\"pd\") || \"\";\n\t\tvar data3 = localStorage.getItem(\"sh\") || \"\";\n\t\tif (!!data1) { sku_items = JSON.parse(data1); }\n\t\tif (!!data2) { pd_items = JSON.parse(data2); }\n\t\tif (!!data3) { sh_items = JSON.parse(data3); }\n\t\t$(\"#datafile\").val( localStorage.getItem(\"datafile\") ||\"http://123.123.123.250:5000/\");\n\t\t$(\"#myfile\").val( localStorage.getItem(\"myfile\") ||\"spchkm/\");\n\t\t\n\t}","function read() {\n var html = element.html();\n // // When we clear the content editable the browser leaves a
        behind\n // // If strip-br attribute is provided then we strip this out\n // if( attrs.stripBr && html == '
        ' ) {\n // html = '';\n // }\n ngModel.$setViewValue(html);\n scope.$eval(attrs.change);\n\n }","function storeInputInLocalStorage(myTitle, mySubtext, myDate) {\n let noteObj = {\n title: myTitle,\n subtext: mySubtext,\n date: myDate\n };\n\n let notes;\n if (localStorage.getItem('notes') === null) {\n notes = [];\n } else {\n notes = JSON.parse(localStorage.getItem('notes'));\n }\n\n notes.push(noteObj);\n\n localStorage.setItem('notes', JSON.stringify(notes));\n}","function NoteSave(){\n\t\tvar noteData;\n\t\tvar newNote = $(\".bootbox-body textarea\").val().trim();\n\t\tif(newNote){\n\t\t\tnoteData = {\n\t\t\t\t_id: $(this).data(\"article\")._id,\n\t\t\t\tnoteText: newNote\n\t\t\t};\n\t\t\t$.post(\"/scrape/notes\", noteData).then(function(){\n\t\t\t\tbootbox.hideAll();\n\t\t\t});\n\t\t}\n\t}","function Submit(){\n var input = document.getElementById(\"input\").textContent;\n console.log(input);\n input = input.replace(\"
        \", \"\\n\");\n var output = eval(input);\n document.getElementById(\"question\").innerHTML = output;\n }","function savestate() {\n state = $(\"#states\").val();\n $(\"#state\").val(state);\n}","function saveQuestion(){\n rightPane.innerHTML = templates.renderQuestionForm();\n var questionForm = document.getElementById(\"question-form\");\n questionForm.addEventListener('click', function(event){\n event.preventDefault();\n var target = event.target;\n var submit = document.querySelector(\"input.btn\");\n if (target === submit){\n var textArea = questionForm.querySelector('textarea').value;\n var nameInput = questionForm.querySelector('input[type=\"text\"]').value;\n var newEntry = {\n subject: nameInput, \n question: textArea,\n id: Math.random(),\n responses: []\n }\n var oldList = getStoredQuestions();\n oldList.push(newEntry);\n storeQuestions(oldList);\n var questionHtml = templates.renderQuestion({ \n questions: getStoredQuestions()\n });\n leftPane.innerHTML = questionHtml;\n questionForm.querySelector('textarea').value = \"\";\n questionForm.querySelector('input[type=\"text\"]').value = \"\"; \n addListeners();\n }\n });\n }","function savePhrase (app, phrase) {\n setData(app, Object.assign({}, getData(app), {\n lastPhrase: phrase,\n }));\n}","function read() {\n var text = element.text();\n // When we clear the content editable the browser leaves a
        behind\n // If strip-br attribute is provided then we strip this out\n if (attrs.stripBr && text == '
        ') {\n text = '';\n }\n ngModel.$setViewValue(text);\n }","livelyPrepareSave() {\n // this.setAttribute(\"data-mydata\", this.get(\"#textField\").value);\n }","function restoreAll() {\r\n var saveString = getCookieValue('jscn');\r\n if (saveString.length == 0) {\r\n return;\r\n }\r\n allNotes = atob(saveString).split(',');\r\n for (var i = 0; i < allNotes.length; i++) {\r\n allNotes[i] = decodeURIComponent(allNotes[i]);\r\n }\r\n}","saveNote() {\n if (this.noteMessageInput.value) {\n let key = Date.now().toString();\n localStorage.setItem(key, this.noteMessageInput.value);\n this.displayNote(key, this.noteMessageInput.value);\n StickyNotesApp.resetMaterialTextfield(this.noteMessageInput);\n this.toggleButton();\n }\n }","function read() {\n ngModel.$setViewValue(element.html());\n //ngModel.$ModelValue = element.html();\n }","function input(){\n\n serviceKeyPath = readline.question(\"Input Service key's absolute path : \");\n // db_list = readline.question(\"Input database list path : (bluelens-browser/db_list) \");\n // if(db_list.length == 0 ){db_list = \"bluelens-browser/db_list\";}\n var info = {'serviceKeyPath': serviceKeyPath, 'topPath' : process.cwd()};\n if(fs.existsSync(infoPath)===false){fs.mkdirSync(infoPath)};\n fs.writeFile(infoPath+\"blu-info.json\", JSON.stringify(info), function(err) {\n if(err) {\n return console.log(err);\n }\n console.log(\"save blu-info.json finish in ~/.blu directory\");\n process.exit(0);\n });\n}"],"string":"[\n \"function toChangeSyllableData(){\\n if(syllables.length > 0){\\n currentType = syllables[0].type;\\n currentColor = syllables[0].color;\\n }\\n pushedNeumeVariations = false;\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n}\",\n \"function applyCurrentSyllable(){\\n currentSyllableIndex = document.getElementById(\\\"syllable\\\").value;\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n}\",\n \"function applySyllableDataChanges(){\\n \\n var page = document.getElementById(\\\"page\\\").value;\\n var line = document.getElementById(\\\"line\\\").value;\\n var staff = document.getElementById(\\\"staff\\\").value;\\n var syllable = document.getElementById(\\\"syllabletext\\\").value;\\n var initial = document.getElementById(\\\"initial\\\").checked;\\n var color = document.getElementById(\\\"color\\\").value;\\n var comment = document.getElementById(\\\"comment\\\").value;\\n \\n if(page){\\n currentSyllable.page = page;\\n }\\n if(line){\\n currentSyllable.line = line;\\n }\\n \\n if(staff){\\n currentSyllable.staff = staff;\\n }\\n \\n if(syllable){\\n currentSyllable.syllable = syllable;\\n }\\n \\n currentSyllable.initial = initial;\\n \\n if(color && color != \\\"none\\\"){\\n currentSyllable.color = color;\\n }\\n \\n if(comment){\\n currentSyllable.comment = comment;\\n }\\n \\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n createSVGOutput();\\n}\",\n \"function toSyllable(){\\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"save() {\\n const newBasicBinary = trs80_base_1.parseBasicText(this.textarea.value);\\n if (typeof newBasicBinary === \\\"string\\\") {\\n this.showError(newBasicBinary);\\n return;\\n }\\n const newBasicProgram = trs80_base_1.decodeBasicProgram(newBasicBinary);\\n if (newBasicProgram === undefined) {\\n // I don't know how this might happen.\\n this.showError(\\\"Can't decode Basic program\\\");\\n return;\\n }\\n this.trs80.loadBasicProgram(newBasicProgram);\\n this.close();\\n }\",\n \"function toSyllableFromNeumeVariations(){\\n pushedNeumeVariations = false;\\n neumeVariations = new Array();\\n \\n isNeumeVariant = false;\\n \\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n}\",\n \"function deleteSyllable(){\\n syllables.splice(currentSyllableIndex, 1);\\n \\n currentSyllableIndex = 0;\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableDataChangeForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function stepSyllable() {\\n drums();\\n try {\\n var s = poem[stanza];\\n\\n var v = s[verse];\\n if (!v) {\\n stepStanza();\\n return stepSyllable();\\n }\\n var w = v.w[word];\\n if (!w) {\\n stepVerse();\\n return stepSyllable();\\n }\\n var sb = w.s[syllable];\\n if (!sb) {\\n stepWord();\\n return stepSyllable();\\n }\\n\\n printSyllable(sb);\\n\\n var note = chooseNote(sb);\\n playNote(note);\\n sock.write(deaccent(sb));\\n syllable++\\n\\n } catch (e) {\\n stepStanza();\\n intro.draw(1);\\n }\\n}\",\n \"function createSyllable(){\\n var page = document.getElementById(\\\"page\\\").value;\\n var line = document.getElementById(\\\"line\\\").value;\\n var staff = document.getElementById(\\\"staff\\\").value;\\n var syllable = document.getElementById(\\\"syllable\\\").value;\\n var initial = document.getElementById(\\\"initial\\\").checked;\\n var color = document.getElementById(\\\"color\\\").value;\\n var comment = document.getElementById(\\\"comment\\\").value;\\n \\n currentSyllable = new Syllable(page, line, staff, syllable, initial, color, comment);\\n \\n syllables.push(currentSyllable);\\n \\n currentColor = color;\\n \\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n createSVGOutput();\\n \\n}\",\n \"function updateOutput8() {\\n localStorage.setItem('info8', input_textarea8.value)\\n}\",\n \"function toSyllableFromVariations(){\\n pushedVariations = false;\\n variations = new Array();\\n \\n if(syllables.length > 1){\\n currentColor = syllables[syllables.length-1].color;\\n }\\n \\n document.getElementById(\\\"input\\\").innerHTML = syllableForm();\\n document.getElementById(\\\"meiOutput\\\").value = createMEIOutput();\\n createSVGOutput();\\n}\",\n \"function importSave() {\\r\\n\\tlet data = prompt(\\\"Paste your save string here\\\");\\r\\n\\r\\n\\tif (data !== null && data !== '')\\r\\n\\t\\tparseAndImportData(data);\\r\\n\\t\\t\\r\\n\\trunAll();\\r\\n}\",\n \"function updateOutput7() {\\n localStorage.setItem('info7', input_textarea7.value)\\n}\",\n \"function saveLocalStorage() {\\n localStorage['mainText'] = text_area.value;\\n localStorage['excText'] = excludeWord.value;\\n localStorage['percentReplacement'] = percentReplSlider.value;\\n localStorage['excludePronouns'] = chkPronouns.checked;\\n localStorage['excludeHyphenated'] = chkHyphens.checked;\\n localStorage['excludeConjunctions'] = chkConjunctions.checked;\\n localStorage['currReplacement'] = currReplacement;\\n localStorage['chkMultiWord'] = chkMultiWord.checked;\\n localStorage['chkNoRepeat'] = chkNoRepeat.checked;\\n}\",\n \"function showCurrentLangData(){\\n document.getElementById('title').value=point.currentLangData.title;\\n document.getElementById('prim').value=point.currentLangData.prim;\\n document.getElementById('primsaf').value=point.currentLangData.primsaf;\\n autosize.update(document.getElementById('primsaf'));\\n autosize.update(document.getElementById('prim'));\\n for(var i=0;i\\n var newLine = String.fromCharCode(10);\\n \\t// Firefox adds a
        for each new line, we replace it back\\n \\t// to a regular '\\\\n'\\n var formattedValue = element.html().replace(/
        /ig,newLine).replace(/\\\\r/ig,'');\\n \\t// update the model\\n ngModel.$setViewValue(formattedValue);\\n \\t// Set the formated (cleaned) value back into\\n \\t// the element's html.\\n element.text(formattedValue);\\n }\",\n \"function updateOutput2() {\\n localStorage.setItem('info2', input_textarea2.value)\\n}\",\n \"function readInp(){\\n\\tvar inp = document.getElementById(\\\"cfg\\\").value;\\n\\tvar without = interpret(inp);\\n\\tvar SymSet = new SymbolSet(without);\\n\\tvar startSym = SymSet.findSym(\\\"S\\\");\\n\\tvar sentence = SymSet.writeSymbol(startSym);\\n\\t//console.log(sentence);\\n\\tdocument.getElementById(\\\"output\\\").innerHTML += \\\"
      • \\\" + sentence + \\\"
      • \\\";\\n}\",\n \"function updateOutput4() {\\n localStorage.setItem('info4', input_textarea4.value)\\n}\",\n \"function saveCharacterEdits(){}\",\n \"function restore_inputs () {\\n\\n\\t\\t\\t\\tparse_variables();\\n\\n\\t\\t\\t\\t$('.form-w').val(W);\\n\\t\\t\\t\\t$('.form-b').val(B);\\n\\t\\t\\t\\t$('.form-mf').val(Mf);\\n\\t\\t\\t\\t$('.form-mt').val(Mt);\\n\\n\\t\\t\\t}\",\n \"function updateOutput6() {\\n localStorage.setItem('info6', input_textarea6.value)\\n}\",\n \"function readStuff() \\n{ \\n\\tvar theform = document.theform;\\n\\n\\t// Parse the category list\\n\\tcat = rewrite(theform.cats);\\n\\tncat = cat.length;\\n\\tvar badcats = false;\\n\\n\\t// Make sure cats have structure like V=aeiou\\n\\tcatindex = \\\"\\\";\\n\\tvar w;\\n\\tfor (w = 0; w < ncat; w++) {\\n\\t\\t// A final empty cat can be ignored\\n\\t\\tthiscat = cat[w];\\n\\t\\tif (thiscat.charCodeAt(thiscat.length - 1) == 13) {\\n\\t\\t\\tthiscat = thiscat.substr(0, thiscat .length - 1);\\n\\t\\t\\tcat[w] = thiscat;\\n\\t\\t}\\n\\t\\tif (thiscat.length == 0 && w == ncat - 1) {\\n\\t\\t\\tncat--;\\n\\t\\t} else if (thiscat.length < 3) {\\n\\t\\t\\tbadcats = true;\\n\\t\\t} else {\\n\\t\\t\\tif (find(thiscat , \\\"=\\\") == -1) {\\n\\t\\t\\t\\tbadcats = true;\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tcatindex += thiscat.charAt(0);\\n all_categories.push(thiscat);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\n\\t// Parse the sound changes \\n\\trul = rewrite(theform.rules);\\n\\tnrul = rul.length;\\n \\n var db = document.getElementById('db');\\n db.style.display = 'none';\\n db.innerHTML = '

        Bad rules which could not be parsed:

          ';\\n \\n\\t// Remove trailing returns\\n\\tfor (w = 0; w < nrul; w++) {\\n\\t\\tvar t = rul[w];\\n\\t\\tif (t.charCodeAt(t.length - 1) == 13) {\\n\\t\\t\\trul[w] = t.substr(0, t.length - 1);\\n\\t\\t\\tt = rul[w];\\n\\t\\t}\\n\\t\\t\\n\\t\\t// Sanity checks for valid rules\\n\\t\\tvar valid = t.length > 0 && find(t, \\\">\\\") != -1;\\n\\t\\tif (valid) {\\n var pre = t.split('>')[0].replace(/[\\\\sØ]/g,'');\\n if(t.indexOf('/') == -1){var post = '_';}\\n else{var post = t.split('/')[1].replace(/\\\\s/,'');}\\n var middle = t.split('>')[1].split('/')[0].replace(/[\\\\sØ]/,'');\\n\\n\\t var thisrule = [pre,middle,post]; \\n \\n\\t\\t\\tvalid = thisrule.length > 2 || \\n\\t\\t\\t\\t(thisrule.length ==2 && \\n\\t\\t\\t\\t find(thisrule[0], '\\\\u2192') != -1);\\n\\t\\t\\tif (valid) {\\n\\t\\t\\t\\t// Insertions must have repl & nonuniversal env\\n\\t\\t\\t\\tif (thisrule[0].length == 0) \\n\\t\\t\\t\\t\\tvalid = thisrule[1].length > 0 &&\\n\\t\\t\\t\\t\\t\\tthisrule[2] != \\\"_\\\";\\n\\t\\t\\t}\\n if(valid){all_rules.push(thisrule[0]+'>'+thisrule[1]+'/'+thisrule[2]);}\\n\\t\\t}\\n else\\n {\\n if(t.replace(/\\\\s/g,'') != '' && t[0] != '%')\\n {\\n db.innerHTML += '
        1. '+t+'
        2. ';\\n db.style.display = 'block';\\n }\\n }\\n\\n\\t\\t// Invalid rules: move 'em all up\\n\\t\\tif (!valid) {\\n\\t\\t\\tnrul--;\\n\\t\\t\\tfor (var q = w; q < nrul; q++) {\\n\\t\\t\\t\\trul[q] = rul[q+1];\\n\\t\\t\\t}\\n\\t\\t\\tw--;\\n\\t\\t}\\n\\t}\\n db.innerHTML += '

        ';\\n\\n\\t// Error strings\\n\\tif (badcats) {\\n\\t\\treturn \\\"Categories are weird.\\\";\\n\\t} else if (nrul == 0) {\\n\\t\\treturn \\\"There are no valid sound changes, so no output can be generated. Rules must be of the form s1/s2/e1_e2. The strings are optional, but the slashes are not.\\\" ;\\n\\t} else {\\n\\t\\treturn \\\"\\\";\\n\\t}\\n}\",\n \"function save() {\\r\\n this.textarea.value = this.content();\\r\\n }\",\n \"function save() {\\n this.textarea.value = this.content();\\n }\",\n \"function updateOutput1() {\\n localStorage.setItem('info1', input_textarea1.value)\\n}\",\n \"function intosc()\\n{\\n\\tvar theform = document.theform;\\n\\n\\ttheform.rules.value =\\n\\t\\ttheform.cats.value + \\\"\\\\n\\\" + \\n\\t\\ttheform.rewrite.value + \\\"\\\\n\\\" + \\n\\t\\ttheform.rules.value + \\\"\\\\n\\\";\\n}\",\n \"function renderMessege() { \\n var userInput = localStorage.getItem(\\\"inputField\\\")\\n userTextInput.textContent = userInput;\\n }\",\n \"function saveStage(stateNum)\\n {\\n try\\n {\\n document.getElementById('longName').value = trim(document.getElementById('longName').value);\\n if(document.getElementById('longName').value.match('#'))\\n {\\n document.getElementById('longName').value = document.getElementById('longName').value.replace(/#/g,\\\"\\\");\\n } \\n warn(stateNum);\\n \\n }\\n catch(ex)\\n {}\\n \\n }\",\n \"function saveLSystem() {\\n let data = getDOMRules();\\n\\n let saved = {}\\n saved[iName.value] = {\\n starts : iStart.value,\\n len : parseFloat(iLen.value),\\n angle : parseFloat(iAngle.value),\\n rules : [\\n ...data\\n ]\\n };\\n \\n if (localStorage.getItem('SavedLSystem')) {\\n let ls = JSON.parse(localStorage.getItem('SavedLSystem'));\\n for (const i in ls) {\\n saved[i] = ls[i];\\n }\\n }\\n \\n localStorage.setItem('SavedLSystem', JSON.stringify(saved));\\n}\",\n \"function writeText() {\\n\\ttext.innerHTML = input.value;\\n\\tconst textSave = text.innerHTML;\\n\\tlocalStorage.setItem(\\\"textInStorage\\\", textSave); //textInStorage es un nombre que nosotras le damos\\n\\tconsole.log(textSave);\\n}\",\n \"function data(origin){\\n switch (origin) {\\n case 0://// saving \\\"key\\\" and it \\\"value\\\" in localStorage\\n var input = document.getElementById(\\\"textMe\\\");\\n localStorage.setItem(\\\"text\\\", input.value);\\n var storedValue = localStorage.getItem(\\\"text\\\");\\n document.getElementById('outputMe').innerHTML = storedValue = \\\"NOW YOU'R SAVED\\\";\\n break;\\n\\n\\n case 1:/// clears typing area, but keeps data in localStorage\\n input = document.getElementById(\\\"textMe\\\");\\n input.value = \\\"\\\";\\n document.getElementById('outputMe').innerHTML = \\\"CAN TYPE AGAIN\\\";\\n break;\\n\\n\\n case 2:/// gets data from localStorage and displays at typing area\\n var lastText = localStorage.getItem(\\\"text\\\");\\n console.log(\\\"last text =\\\" + lastText);\\n document.getElementById('textMe').value = lastText;\\n document.getElementById('outputMe').innerHTML = \\\"LOOK I REMEMBER YOU\\\";\\n break;\\n\\n\\n case 3:/// clears all data from localStorage\\n input = document.getElementById(\\\"textMe\\\");\\n input.value = \\\"\\\";\\n localStorage.clear();\\n document.getElementById('outputMe').innerHTML = \\\"NOW IT IS EMTY\\\";\\n break;\\n\\n default:\\n\\n break;\\n }\\n\\n }\",\n \"function load_data() {\\n var input = document.getElementById(\\\"commentName\\\");\\n var comm = document.getElementById(\\\"commentText\\\");\\n\\n input.value = localStorage.getItem('Name');\\n comm.value = localStorage.getItem('Comment');\\n}\",\n \"function savedData() {\\n var i1 = localStorage.getItem('inputText1');\\n inOutText1.text(i1);\\n var i2 = localStorage.getItem('inputText2');\\n inOutText2.text(i2);\\n var i3 = localStorage.getItem('inputText3');\\n inOutText3.text(i3);\\n var i4 = localStorage.getItem('inputText4');\\n inOutText4.text(i4);\\n var i5 = localStorage.getItem('inputText5');\\n inOutText5.text(i5);\\n var i6 = localStorage.getItem('inputText6');\\n inOutText6.text(i6);\\n var i7 = localStorage.getItem('inputText7');\\n inOutText7.text(i7);\\n var i8 = localStorage.getItem('inputText8');\\n inOutText8.text(i8);\\n var i9 = localStorage.getItem('inputText9');\\n inOutText9.text(i9);\\n $('#clear').on(\\\"click\\\", function () {\\n localStorage.clear();\\n });\\n\\n }\",\n \"function backupInput() {\\n lastInput = ELEMENTS.UPDATE_TEXTAREA.val();\\n }\",\n \"function onSaveAs(name) {\\n\\n // do we have a current file name?\\n if(name == null) {\\n // no, so choose one\\n let file = dialog.showSaveDialog( mainWindow, {\\n filters: [\\n { name: 'System Exclusive Dump', extensions: ['syx'] },\\n { name: 'All Files', extensions: ['*'] }\\n ]\\n });\\n if(file == undefined || !file.length) {\\n return;\\n }\\n name = file; \\n }\\n\\n // prepare the handler to receive the serialised SYSEX\\n // data from the form and save it to the file\\n ipcMain.once('save-midi-rs', function(e, data) {\\n try { \\n fs.writeFileSync(name, new Buffer(data));\\n setCurrentFileName(name);\\n }\\n catch(e) {\\n dialog.showErrorBox(\\\"Failed To Save\\\", e.message);\\n setCurrentFileName(null);\\n }\\n });\\n\\n // request the serialized SYSEX data from the form\\n mainWindow.webContents.send('save-midi-rq');\\n}\",\n \"function updateOutput5() {\\n localStorage.setItem('info5', input_textarea5.value)\\n}\",\n \"function display_saved_note() {\\n if(check_web_storage_support() == true) {\\n result = localStorage.getItem('note');\\n }\\n if(result === null) {\\n result = \\\"\\\";\\n }\\n\\n document.getElementById('area').value = result;\\n}\",\n \"function textToView () {\\n\\n var exhistData = JSON.parse(localStorage.getItem(\\\"setText\\\"));\\n\\n if (exhistData) {\\n saveText = exhistData;\\n }\\n\\n textToView();\\n}\",\n \"save() {\\n this._toggleSaveThrobber();\\n try {\\n this._readFromForm();\\n var resp = this.dao.save();\\n if (!resp) {\\n alert(\\\"Error while saving taxon.\\\")\\n } else {\\n var jsonObj = JSON.parse(resp);\\n if (jsonObj[0].response == false ) {\\n alert(jsonObj[1].response);\\n } else {\\n console.log(this.dao)\\n // make sure the latin name input field is showing the correct name, reload data from server\\n document.getElementById('latin_name').value = this.dao.unique_name;\\n alert('Saved');\\n }\\n }\\n } catch(e) {\\n alert(e);\\n console.log(e);\\n }\\n this._toggleSaveThrobber();\\n }\",\n \"function setData() {\\n\\n if (localStorage.length != 0) {\\n loadData();\\n document.getElementById('name').value = playerData.name;\\n document.getElementById('l1').innerHTML = playerData.live;\\n }\\n if (playerData.close == \\\"true\\\") {\\n document.getElementById('name').value = playerData.name;\\n gewLevel = playerData.diff;\\n document.getElementById('level').innerHTML = playerData.level;\\n document.getElementById('l1').innerHTML = playerData.live;\\n document.getElementById('score').innerHTML = playerData.highscore;\\n gewModus = playerData.design;\\n document.getElementById('a1').innerHTML = playerData.alien1;\\n document.getElementById('a2').innerHTML = playerData.alien2;\\n document.getElementById('a3').innerHTML = playerData.alien3;\\n document.getElementById('a4').innerHTML = playerData.alien4;\\n document.getElementById('a5').innerHTML = playerData.alien5;\\n }\\n }\",\n \"function save() {\\r\\n\\t\\tvar str = myDiagram.model.toJson();\\r\\n\\t\\tdocument.getElementById(\\\"mySavedModel\\\").value = str;\\r\\n\\t }\",\n \"function saveEditCaption(e, data) {\\n var $wp = $('.write-pages li'), // the list of book pages\\n $page = $($wp.get(editIndex)), // the current page\\n $caption = $page.find('p.thr-caption'),\\n tooLong = typeof(data.value) == 'string' &&\\n data.value.length > maxCaptionLength;\\n //console.log('saving', data.value, 'was', $caption.html());\\n $caption.html(data.value).toggleClass('text-too-long', tooLong);\\n setModified();\\n $editDialog.find('p.thr-caption').toggleClass('text-too-long', tooLong);\\n }\",\n \"function read() {\\n var text = element.text();\\n ngModel.$setViewValue(text);\\n }\",\n \"function setSave(e) {\\n e.preventDefault();\\n character.savingThrowModifier.strength = document.getElementById('strSave').value;\\n character.savingThrowModifier.dexterity = document.getElementById('dexSave').value;\\n character.savingThrowModifier.constitution = document.getElementById('conSave').value;\\n character.savingThrowModifier.intelligence = document.getElementById('intSave').value;\\n character.savingThrowModifier.wisdom = document.getElementById('wisSave').value;\\n character.savingThrowModifier.charisma = document.getElementById('chaSave').value;\\n}\",\n \"function save(e) {\\n let saveBtn = e.target;\\n let inputBox = event.target.parentNode.lastChild;\\n event.target.parentNode.firstChild.textContent = inputBox.value;\\n inputBox.style.display = \\\"none\\\";\\n saveBtn.style.display=\\\"none\\\";\\n let editBtn = event.target.nextSibling;\\n editBtn.style.display = \\\"inline\\\";\\n \\n}\",\n \"function save() {\\n str = myDiagram.model.toJson();\\n document.getElementById(\\\"mySavedModel\\\").value = str;\\n }\",\n \"function load() {\\r\\n this.setContent(this.textarea.value);\\r\\n }\",\n \"function save() {\\n if (document.getElementById('workSettings').value < 1) {\\n alert(usePositiveNumberText[localStorage.getItem('language')]);\\n return;\\n } else if (document.getElementById('shortBreakSettings').value < 1) {\\n alert(usePositiveNumberText[localStorage.getItem('language')]);\\n return;\\n } else if (document.getElementById('longBreakSettings').value < 1) {\\n alert(usePositiveNumberText[localStorage.getItem('language')]);\\n return;\\n }\\n\\n valueWork = document.getElementById('workSettings').value;\\n valueShort = document.getElementById('shortBreakSettings').value;\\n valueLong = document.getElementById('longBreakSettings').value;\\n valueSound = document.getElementById('volume-slider').value;\\n document.getElementById('clock').innerHTML = `${valueWork}:00`;\\n\\n localStorage.setItem('workSettings', `${valueWork}`);\\n localStorage.setItem('shortBreakSettings', `${valueShort}`);\\n localStorage.setItem('longBreakSettings', `${valueLong}`);\\n localStorage.setItem('volume-slider', `${valueSound}`);\\n}\",\n \"readData() {\\n\\t\\t// Se non esiste, lo crea, con le impostazioni di default\\n\\t\\tif (!fs.existsSync(this.filepath)) {\\n\\t\\t\\tlogger.debug('Creato nuovo file di impostazioni.');\\n\\t\\t\\tthis.writeData();\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\ttry {\\n\\t\\t\\tconst text = fs.readFileSync(this.filepath, 'utf8');\\n\\t\\t\\t// file YAML => {}\\n\\t\\t\\tconst data = yaml.safeLoad(text);\\n\\n\\t\\t\\t// NOTE: validazione in lettura su readData, mentre in scrittura su setData.\\n\\t\\t\\tif (!isValid(data)) {\\n\\t\\t\\t\\tthrow new Error('impostazioni del file non valide.');\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tthis.data = data;\\n\\t\\t\\t}\\n\\t\\t} catch (e) {\\n\\t\\t\\tlogger.error(`Errore nella lettura file yaml: ${e.toString()}`);\\n\\t\\t}\\n\\t}\",\n \"function saveLabel() {\\n labelSave = true;\\n labelCanc = false;\\n $('#labelEditModal').modal('hide');\\n}\",\n \"function load() {\\n this.setContent(this.textarea.value);\\n }\",\n \"_saveVocab() {\\n let deutsch = document.querySelector(\\\".deutsch\\\").value;\\n let englisch = document.querySelector(\\\".englisch\\\").value;\\n let notiz = document.querySelector(\\\".notiz\\\").value;\\n\\n if (deutsch != \\\"\\\" || englisch != \\\"\\\"){\\n\\n // zurück zu input!!\\n\\n this._vokabeln.saveNew({\\n deutsch: deutsch,\\n englisch: englisch,\\n notiz: notiz,\\n //format: html,\\n });\\n\\n // aus JS auf andere Seite leiten\\n this._app.showVocabularyOverview();\\n this._app.navigate(\\\"/\\\");\\n\\n } else {\\n alert(\\\"Bitte alle Angaben ausfüllen!♥\\\");\\n }\\n }\",\n \"saveData() {\\n if (this.s.unavailable()) {\\n return;\\n }\\n\\n for (const val of this.dispField.items) {\\n this.s.set(val, this.dispField.checked(val));\\n }\\n\\n this.s.set(\\\"unit\\\", this.unitField.get());\\n this.s.set(\\\"format\\\", this.formatField.get());\\n this.s.set(\\\"sort\\\", this.sortableField.toArray());\\n }\",\n \"function customText() {\\n let text = document.querySelector(\\\"textarea\\\").value;\\n let parsedText = validateText(text);\\n if (parsedText != null) {\\n setInitials();\\n displayText(parsedText);\\n }\\n}\",\n \"function saveNotesTextArea(e){\\n\\t YAHOO.util.Event.preventDefault(e);\\n\\t var notesSpaceTest = /^\\\\s+$/;\\n\\t var sellerNotesGot = document.getElementById('sellerNotesNew').value;\\n\\t sellerNotesGot = sellerNotesGot.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\");\\n\\t\\tif (notesSpaceTest.test(sellerNotesGot) || sellerNotesGot == \\\"\\\"){\\n\\t\\t\\tdocument.getElementById('sellerNotesNew').value = \\\"\\\";\\n\\t\\t\\tdocument.getElementById('addInstructions').title = document.getElementById('addInstructions').childNodes[0].nodeValue;\\n\\t\\t\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"changeInstructions\\\"), 'show')\\n\\t\\t\\tYAHOO.util.Dom.addClass(document.getElementById('changeInstructions'), 'hide');\\n\\t\\t\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"addInstructions\\\"), 'hide')\\n\\t\\t\\tYAHOO.util.Dom.addClass(document.getElementById('addInstructions'), 'show');\\n\\t\\t\\tdocument.getElementById('notesCharacterCount').innerHTML = \\\"255\\\";\\n\\t\\t}\\n\\t\\telse{\\n\\t\\t\\tdocument.getElementById('sellerNotesNew').value = sellerNotesGot;\\n\\t\\t\\tdocument.getElementById('changeInstructions').title = document.getElementById('changeInstructions').childNodes[0].nodeValue;\\n\\t\\t\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"changeInstructions\\\"), 'hide')\\n\\t\\t\\tYAHOO.util.Dom.addClass(document.getElementById('changeInstructions'), 'show');\\n\\t\\t\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"addInstructions\\\"), 'show')\\n\\t\\t\\tYAHOO.util.Dom.addClass(document.getElementById('addInstructions'), 'hide');\\n\\t\\t\\ttruncatedInstructionShown(sellerNotesGot);\\n\\t\\t}\\n\\tPAYPAL.reset.margin.orderInfo.saveInstructions();\\n\\tdocument.getElementById('sellerNotesCont').style.display = \\\"none\\\";\\n\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"addInstructions\\\"), 'opened')\\n\\tYAHOO.util.Dom.removeClass(document.getElementById(\\\"changeInstructions\\\"), 'opened')\\n}\",\n \"function updateTextArea() {\\n // update save button\\n if (localStorage.textAreaData != notepad.node.html()) {\\n $(\\\"#save i\\\").addClass(\\\"shake\\\");\\n $(\\\"#save i\\\").css(\\\"color\\\", \\\"rgb(33, 37, 41)\\\");\\n } else {\\n $(\\\"#save i\\\").removeClass(\\\"shake\\\");\\n $(\\\"#save i\\\").css(\\\"color\\\", \\\"rgba(0,0,0,0.1)\\\");\\n }\\n wordsCount();\\n checkSelectionFormat();\\n ee();\\n}\",\n \"handleSpoofaxEdit(data)\\r\\n {\\r\\n console.log(\\\"Incoming Spoofax edit: \\\", JSON.stringify(data));\\r\\n switch (data[\\\"opType\\\"]) \\r\\n {\\r\\n case \\\"SetPropertyOp\\\":\\r\\n var lineArr = this.spoofaxData[\\\"model_0.dsl\\\"].split('%0A');\\r\\n lineArr[data[\\\"lineIndex\\\"]] = data[\\\"text\\\"];\\r\\n var outputText = '';\\r\\n for (let i = 0; i < lineArr.length - 1; i++) \\r\\n {\\r\\n outputText += lineArr[i] + '%0A';\\r\\n }\\r\\n outputText += lineArr[lineArr.length - 1];\\r\\n if (lineArr[lineArr.length - 1].length == 0)\\r\\n { \\r\\n outputText += '%0A';\\r\\n }\\r\\n this.spoofaxData[\\\"model_0.dsl\\\"] = outputText;\\r\\n break;\\r\\n \\r\\n default:\\r\\n break;\\r\\n }\\r\\n\\r\\n this.updateSpoofaxData(this.spoofaxData);\\r\\n }\",\n \"updateDataInput(text){\\n this.setState({soLanQuay: text});\\n GlobalValue.soLanQuay = text;\\n }\",\n \"function updateSaveModal() {\\r\\n regexInput_modal.value = regexInput.value;\\r\\n templateInput_modal.value = templateInput.value;\\r\\n globalCheckbox_modal.checked = globalCheckbox.checked;\\r\\n caseInsensitiveCheckbox_modal.checked = caseInsensitiveCheckbox.checked;\\r\\n multilineCheckbox_modal.checked = multilineCheckbox.checked;\\r\\n IgnoreHTMLCheckbox_modal.checked = IgnoreHTMLCheckbox.checked;\\r\\n}\",\n \"function saveLayout() {\\n var layout = []\\n layout.push(myDiagram.model.nodeDataArray)\\n layout.push(myDiagram.model.linkDataArray)\\n var summarized = document.getElementById(\\\"summarized\\\").checked\\n var save = prompt(\\\"Please enter a layout name\\\"); \\n\\t\\tif (save != null) {\\t\\t\\n\\t\\t\\t\\tvar data = {\\n\\t\\t\\t\\t\\t'name':save,\\n\\t\\t\\t\\t\\t\\\"layout\\\":layout,\\n\\t\\t\\t\\t\\t\\\"state\\\":summarized\\n\\t\\t\\t\\t};\\n\\t\\t\\t\\n\\t\\t\\t/*send layout data to back end*/\\n\\t\\t\\t$.ajax({\\n\\t\\t\\t\\t\\ttype: 'POST',\\n\\t\\t\\t\\t\\tdata: JSON.stringify(data),\\n\\t\\t\\t\\t\\tcontentType: 'application/json',\\n\\t\\t\\t\\t\\turl: '/save_layout',\\n\\t\\t\\t\\t\\tsuccess:function(text){\\n\\t\\t\\t\\t\\t\\t//alert(text);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t});\\n\\t\\t}\\n }\",\n \"function sid_handle_kbdevent(e) {\\n\\t\\t\\n\\t\\tif(e.keyCode == 13) {\\n\\t\\t\\t// if enter key is pressed\\n\\t\\t\\tsid.write('');\\n\\n\\t\\t\\tif(sid.value == \\\"\\\") {\\n\\t\\t\\t\\tsid.write((sid.state > 2 ? 'Please enter your name.' : 'Please enter your student ID.'));\\n\\t\\t\\t} else if(sid.state == 1 && sid.value.match(/^[a-z\\\\ ]+/gi) && !sid.reg) {\\n\\t\\t\\t\\tif(sid.value.match(/^(export|update|give|make|save|create)/gi) && !sid.value.match(/([\\\"']+)/gi)) {\\n\\t\\t\\t\\t\\tif(sid.value.match(/(\\\\ )+(csv)/gi)) {\\n\\t\\t\\t\\t\\t\\tif(sid.temp = sid.value.match(/(emails|first names|ids|last names|fname(s|)|lname(s|))/gi)) {\\n\\t\\t\\t\\t\\t\\t\\tsid.write(sid.temp);\\n\\t\\t\\t\\t\\t\\t\\t// sid.command('/create/csv/'+sid.temp,function(err) {\\n\\t\\t\\t\\t\\t\\t\\t// \\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t// \\t\\treturn sid.write('There was an error creating a csv file from the requested data.');\\n\\t\\t\\t\\t\\t\\t\\t// \\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t// \\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\t// \\tsid.write('A comma-separated values file has been created from the requested data.');\\n\\t\\t\\t\\t\\t\\t\\t// });\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tsid.command('/export/csv',function(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.write('There was an error creating a CSV file from the data: '+err);\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.write('A CSV file has been created from the data.');\\n\\t\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t} else if(sid.value.match(/(\\\\ )+(db|mysql|sql|database)/gi) || !sid.value.match(/(\\\\ )+(excel)/gi)) {\\n\\t\\t\\t\\t\\t\\tsid.command('/export/mysql',function(err) {\\n\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\treturn sid.write('There was an error updating the Excel spreadsheet.');\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\tsid.write('The data has been successfully exported.');\\n\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tsid.command('/export/excel',function(err) {\\n\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\treturn sid.write('There was an error updating the Excel spreadsheet.');\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\tsid.write('The data has been successfully exported.');\\n\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else if(sid.value.match(/^(how)([a-z\\\\ ]+)(people|students|persons)/gi)) {\\n\\t\\t\\t\\t\\tif(sid.value.match(/(new)/gi)) {\\n\\t\\t\\t\\t\\t\\tsid.write(stats.registered+' new people have signed up so far.');\\n\\t\\t\\t\\t\\t} else if(sid.value.match(/(((are)([\\\\ ]?)(there|here|present)|((have))([\\\\ ]?)(come|arrived|shown up|shown|signed (up|in)|registered))|(\\\\?|()))/gi)) {\\n\\t\\t\\t\\t\\t\\tsid.write('There are currently '+stats.total+' people signed in.');\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t} else if(sid.value.match(/^(I|())(\\\\ )+([a-z\\\\'\\\\.\\\\ ]+)(id)$/gi)) {\\n\\t\\t\\t\\t\\tsid.write('If you know your student ID, please type that in.');\\n\\t\\t\\t\\t} else if(sid.value.match(/^(delete|remove|erase|undo)(\\\\ )+(the|())([a-z0-9\\\\ ]+)(people|entr(y|ies)|row(s|)|person(s|())|name(s|)|student(s|))/)) {\\n\\t\\t\\t\\t\\tif(sid.value.match(/(last|first|latest)([\\\\ ]+)(two|three|four|five|six|seven|eight|nine|ten)?(\\\\ )*(new)?(\\\\ )*(person|student|name|entry|row)/gi)) {\\n\\t\\t\\t\\t\\t\\tif(sid.value.match(/(latest)/gi) || sid.value.match(/(last)([\\\\ ]+)(new)?(\\\\ )*(person|student|name|entry|row)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t//remove the last new person signed in\\n\\t\\t\\t\\t\\t\\t\\tif(sid.value.match(/(new)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.command('/event/delete/bottom/1/new', function(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// adverise error to client console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tconsole.log('The event requested could not be removed -> ' + err);\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// log error to gui console and exit function\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error(err);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// log success to gui console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('The last new person signed in has been removed.');\\n\\t\\t\\t\\t\\t\\t\\t\\t});\\n\\n\\t\\t\\t\\t\\t\\t\\t// remove the last person to have signed in\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t// send request to server to server to delete last added entry\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.command('/event/delete/bottom/1', function(err, data) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// adverise error to client console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tconsole.log('The event requested could not be removed -> ' + err);\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// log error to gui console and exit function\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error(err);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// update server stats locally\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tevents.emit('serverStatsReceived', JSON.parse(data).data);\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// log success to gui console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('The last person signed in has been removed.');\\n\\t\\t\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} else if(sid.value.match(/(first (person|student|name|entry|row))/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t//remove the first student signed in\\n\\t\\t\\t\\t\\t\\t\\tif(sid.value.match(/(new)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.command('/event/delete/top/1/new',function(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error('The event requested could not be removed: '+err);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('The first new person signed in has been removed.');\\n\\t\\t\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t//'event/delete/(top|bottom|id)/(amount|amount|id)/flag\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.command('/event/delete/top/1',function(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error('The event requested could not be removed: '+err);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('The first person signed in has been removed.');\\n\\t\\t\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} else if(sid.value.match(/(people|persons|names|students|rows)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t//remove x amount of people\\n\\t\\t\\t\\t\\t\\t\\tsid.error('I can\\\\'t do that yet.');\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t} else if(sid.temp = sid.value.match(/(last|first|latest)(\\\\ )+([0-9]+)(\\\\ )+(new)?(\\\\ )*(people|students|names|rows|entries)/gi)) {\\n\\t\\t\\t\\t\\t\\tif(sid.value.match(/(new)/gi)) {\\n\\t\\t\\t\\t\\t\\t\\tsid.write('The last '+sid.temp[0].split(' ')[1]+' new people have been deleted.');\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tsid.write('The last '+sid.temp[0].split(' ')[1]+' people have been deleted.');\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else if(sid.value.match(/(set|event|name|speaker|company|talk|speech|presentation)/gi)) {\\n\\t\\t\\t\\t\\tif(sid.temp = sid.value.match(/([\\\"']{1})([a-z\\\\ 0-9\\\\.\\\\,\\\\-\\\\_\\\\+\\\\=\\\\(\\\\)\\\\:\\\\;\\\\/\\\\%\\\\$\\\\#\\\\@\\\\!\\\\*]+)([\\\"']{1})/gi)) {\\n\\t\\t\\t\\t\\t\\tsid.command('/event/name/'+encodeURIComponent(sid.temp[0].substring(1,sid.temp[0].length-1)),function(err) {\\n\\t\\t\\t\\t\\t\\t\\tif(err) {\\n\\t\\t\\t\\t\\t\\t\\t\\treturn sid.error('The event\\\\'s name could not be set: '+err);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\tsid.write('This event\\\\'s name has been set to '+sid.temp[0]);\\n\\t\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tvar xhr = new XMLHttpRequest();\\n\\t\\t\\t\\t\\txhr.open('GET','http://navigator-fixed.rhcloud.com/apis/askcom/http://www.ask.com/web?q='+encodeURIComponent(sid.value.split('?')[0])+'&qsrc=0&o=0&l=dir',true);\\n\\t\\t\\t\\t\\txhr.send();\\n\\t\\t\\t\\t\\txhr.addEventListener('readystatechange',function() {\\n\\t\\t\\t\\t\\t\\tif(this.readyState == 4 && this.status == 200) {\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tvar wrapper = document.createElement('div');\\n\\t\\t\\t\\t\\t\\t\\twrapper.innerHTML = this.responseText;\\n\\n\\t\\t\\t\\t\\t\\t\\tvar found = false;\\n\\n\\t\\t\\t\\t\\t\\t\\tvar ansrs = wrapper.getElementsByClassName('tsrc_answ');\\n\\t\\t\\t\\t\\t\\t\\tvar rsrs = wrapper.getElementsByClassName('rightrail-web-result-description');\\n\\t\\t\\t\\t\\t\\t\\tvar wres = wrapper.getElementsByClassName('web-result-description');\\n\\n\\t\\t\\t\\t\\t\\t\\tif((ansrs.length || rsrs.length) && wres.length && Math.round(Math.random() * 50) > 25) {\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = wres.item(Math.round(Math.random() * Math.min((wres.length - 1), 3))).innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = answer.split(\\\"\\\\\\\"\\\\>\\\\ More\\\")[0];\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tif(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tif(ansrs.length && rsrs.length) {\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t\\tif(Math.round(Math.random() * 10) > 5) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tanswer = ansrs.item(Math.round(Math.random() * (ansrs.length - 1))).children[1].children[1].innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tanswer = answer.split(\\\"\\\\\\\"\\\\>Read\\\\ More\\\")[0];\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tanswer = rsrs.item(Math.round(Math.random() * (rsrs.length - 1))).innerHTML;\\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(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tif(ansrs.length) {\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = ansrs.item(Math.round(Math.random() * (ansrs.length - 1))).children[1].children[1].innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = answer.split(\\\"\\\\\\\"\\\\>Read\\\\ More\\\")[0];\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tif(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tif(rsrs.length) {\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = rsrs.item(Math.round(Math.random() * (rsrs.length - 1))).innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tif(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tif(wres.length) {\\n\\t\\t\\t\\t\\t\\t\\t\\tfound = true;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = wres.item(Math.round(Math.random() * Math.min((wres.length - 1), 3))).innerHTML;\\n\\t\\t\\t\\t\\t\\t\\t\\tanswer = answer.split(\\\"\\\\\\\"\\\\>\\\\ More\\\")[0];\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t\\tif(found) return sid.write(answer);\\n\\n\\t\\t\\t\\t\\t\\t\\tsid.error();\\n\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tsid.error();\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t});\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t// strip first two numbers from student ID\\n\\t\\t\\t\\tif(sid.value.match(/^20(00|000)[0-9]{5,6}/gi)) {\\n\\t\\t\\t\\t\\tsid.value = sid.value.substring(2, sid.value.length);\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t// if the registering-new-student 'reg' property is set on the input and value matches a string,\\n\\t\\t\\t\\t// or if there is no 'reg' property set and the value matches a number (for a student id), continue\\n\\t\\t\\t\\tif((!sid.reg && sid.value.match(/^(00|000)[0-9]{5,6}/gi)) || (sid.reg && sid.dataState != null)) {\\n\\t\\t\\t\\t\\t// if the 'register' flag is set, meaning we want to add a new entry and\\n\\t\\t\\t\\t\\t// that a dataState exists\\n\\t\\t\\t\\t\\tif(sid.reg && sid.dataState) {\\n\\t\\t\\t\\t\\t\\t// check which 'input' stage the new user is on\\n\\t\\t\\t\\t\\t\\tif(sid.dataState == 1) {\\n\\t\\t\\t\\t\\t\\t\\t// check to see that a first and last name are entered\\n\\t\\t\\t\\t\\t\\t\\tif(sid.value.match(/^[a-z\\\\'\\\\-]+(\\\\ )[a-z\\\\'\\\\-]+/gi)) {\\n\\t\\t\\t\\t\\t\\t\\t\\t// collect stuname and move on to next data state\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.dataState = 2;\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// parse first and last name from sid.value by splitting by spaces\\n\\t\\t\\t\\t\\t\\t\\t\\t// and assigning values to sid.fname and sid.lname respectively\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.fname = sid.value.split(' ')[0];\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.lname = sid.value.split(' ')[1];\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// prompt student to enter the next dataState value (year)\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.placeholder = 'Enter graduating year to continue...';\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// reset input value\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t// if an invalid name is entered, \\n\\t\\t\\t\\t\\t\\t\\t\\tsid.error('Please enter a valid name.');\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} else if(sid.dataState == 2) {\\n\\t\\t\\t\\t\\t\\t\\t// collect year and move on to next data state\\n\\t\\t\\t\\t\\t\\t\\tsid.dataState = 3;\\n\\n\\t\\t\\t\\t\\t\\t\\t// set sid.year to current sid value to save entered value (year)\\n\\t\\t\\t\\t\\t\\t\\tsid.year = sid.value;\\n\\n\\t\\t\\t\\t\\t\\t\\t// prompt student to enter the next dataState value (major)\\n\\t\\t\\t\\t\\t\\t\\tsid.placeholder = 'Please enter your major...';\\n\\n\\t\\t\\t\\t\\t\\t\\t// reset input value\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\n\\t\\t\\t\\t\\t\\t} else if(sid.dataState == 3) {\\n\\t\\t\\t\\t\\t\\t\\t// collect 'major' and set dataState flag to 0. This tells the program\\n\\t\\t\\t\\t\\t\\t\\t// that the registration process is ending and must be reset.\\n\\t\\t\\t\\t\\t\\t\\tsid.dataState = 0;\\n\\n\\t\\t\\t\\t\\t\\t\\t// set sid.major to current sid value to save entered value (major)\\n\\t\\t\\t\\t\\t\\t\\tsid.major = sid.value;\\n\\n\\t\\t\\t\\t\\t\\t\\t// prompt student to enter the next dataState value (email)\\n\\t\\t\\t\\t\\t\\t\\tsid.placeholder = 'Finally, enter your email to sign in...';\\n\\n\\t\\t\\t\\t\\t\\t\\t// reset input value\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\t\\t// store data to be sent as post request to server containing\\n\\t\\t\\t\\t\\t\\t// entry information such as name, id, major, etc.\\n\\t\\t\\t\\t\\t\\tvar data = \\\"id=\\\" + sid.value;\\n\\n\\t\\t\\t\\t\\t\\t// default uri for logging already existing entries\\n\\t\\t\\t\\t\\t\\tvar uri = '/register';\\n\\n\\t\\t\\t\\t\\t\\t// if the 'reg' flag is set, but there is no dataState flag, or the dataState\\n\\t\\t\\t\\t\\t\\t// flag is 0, this indicates the registration process has ended and must be reset.\\n\\t\\t\\t\\t\\t\\tif(sid.reg && !sid.dataState) {\\n\\t\\t\\t\\t\\t\\t\\t// set sid.email to current sid value to save entered value (email)\\n\\t\\t\\t\\t\\t\\t\\tsid.email = sid.value;\\n\\n\\t\\t\\t\\t\\t\\t\\t// reset input and placeholder values\\n\\t\\t\\t\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t\\t\\t\\t\\tsid.placeholder = 'Scan your ID';\\n\\n\\t\\t\\t\\t\\t\\t\\t// format outgoing data string with new student information\\n\\t\\t\\t\\t\\t\\t\\tdata = \\t'student_id='\\t+ sid.sid \\t\\t+ \\t\\t\\t// contains student id\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&first=' \\t\\t+ sid.fname \\t+ \\t\\t\\t// contains student first name\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&last='\\t\\t+ sid.lname\\t\\t+\\t\\t\\t// contains student last name\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&year=' \\t\\t+ sid.year \\t\\t+\\t\\t\\t// contains student year\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&major='\\t\\t+ sid.major\\t\\t+\\t\\t\\t// contains student major\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t'&email='\\t\\t+ sid.email \\t;\\t\\t\\t// contains student email\\n\\n\\t\\t\\t\\t\\t\\t\\t// update api request to register entry as new\\n\\t\\t\\t\\t\\t\\t\\turi = '/register/new';\\n\\n\\t\\t\\t\\t\\t\\t\\t// reset 'reg' flag to end registration mode and clear the 'sid' field of our input field object\\n\\t\\t\\t\\t\\t\\t\\tsid.reg = false;\\n\\t\\t\\t\\t\\t\\t\\tsid.sid = null;\\n\\n\\t\\t\\t\\t\\t\\t\\t// clear dataState flag to indicate no registration prompt is going to be shown\\n\\t\\t\\t\\t\\t\\t\\tsid.dataState = null;\\n\\n\\t\\t\\t\\t\\t\\t\\t// advertise registration was successful\\n\\t\\t\\t\\t\\t\\t\\tsid.write('You have been successfully registered!');\\n\\n\\t\\t\\t\\t\\t\\t\\t// if information is entered successfully, update registrant counter\\n\\t\\t\\t\\t\\t\\t\\tstats.registered++;\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\t// if program is no longer in 'registration' mode, send new data to the server\\n\\t\\t\\t\\t\\t\\tvar xhr = new XMLHttpRequest();\\n\\t\\t\\t\\t\\t\\txhr.open('POST', uri, true);\\n\\t\\t\\t\\t\\t\\txhr.send(data);\\n\\t\\t\\t\\t\\t\\txhr.addEventListener('readystatechange',function() {\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\tif(this.readyState == 4 && this.status == 200) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar student = JSON.parse(this.responseText);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\tsid.state = 2; // state of 2 tells input field to reset its value\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t// if the entry exists in the server 'database'\\n\\t\\t\\t\\t\\t\\t\\t\\tif(student.registered) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// check if the entry has already been updated with the server\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tif(student.alreadyRegistered) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// output message to the input field\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.value = 'You have already been signed in!';\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// output message to the interface console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.error('You cannot register more than once per event.');\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// output welcome message to the input field\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.value = 'Welcome, ' + student.fname + ' ' + student.lname;\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// broadcast 'register' event\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tevents.emit('register', [stats.total]);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t\\t} else {\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.value \\t\\t= '';\\t\\t\\t\\t\\t\\t// reset our input value\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.placeholder = \\t\\t\\t\\t\\t\\t\\t// sets input with instructions for user\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t'Enter your name to continue...';\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.state \\t\\t= 3;\\t\\t\\t\\t\\t\\t// state of '3' tells input field to reset its value\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.dataState \\t= 1;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.reg \\t\\t= true;\\t\\t\\t\\t\\t\\t// tell app it is now in 'registration' mode\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.sid \\t\\t= student.id; \\t\\t\\t\\t// store student id in our main input field object\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// output registration message to the interface console\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tsid.write('Welcome. Follow the steps above to register.');\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t// play sound alert\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tApp.playAlert();\\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}\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tif(!sid.reg) {\\n\\t\\t\\t\\t\\t\\tsid.write('Please enter a valid student ID.');\\n\\t\\t\\t\\t\\t} else {\\t\\n\\t\\t\\t\\t\\t\\tsid.write('Please enter your full name.');\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} else if(e.keyCode == 27) {\\n\\t\\t\\tif(sid.reg) {\\n\\t\\t\\t\\tsid.state = 1;\\n\\t\\t\\t\\tsid.reg = false;\\n\\t\\t\\t\\tsid.value = '';\\n\\n\\t\\t\\t\\t// output default message\\n\\t\\t\\t\\tsid.placeholder = 'Type your ID to continue...';\\n\\n\\t\\t\\t\\t// clear input\\n\\t\\t\\t\\tsid.write('');\\n\\t\\t\\t}\\n\\t\\t\\tsid.blur();\\n\\t\\t} else {\\n\\t\\t\\tif(sid.state == 2) {\\n\\t\\t\\t\\t// change input value type from \\n\\t\\t\\t\\tsid.state = 1;\\n\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t} else if(sid.state == 3) {\\n\\t\\t\\t\\t// clear student id input and set current input value\\n\\t\\t\\t\\t// type to accept student's name\\n\\t\\t\\t\\tsid.state = 1;\\n\\t\\t\\t\\tsid.value = '';\\n\\t\\t\\t}\\t\\t\\t\\n\\t\\t}\\n\\t}\",\n \"function process() {\\n fs.writeFileSync(\\\"./js/english/data.json\\\", JSON.stringify(english));\\n}\",\n \"function save() {\\n const newcontent = textarea.val().trim()\\n if (has_pretty_content_holder)\\n content_holder.hide()\\n\\n $.post(endpoint, {content: newcontent})\\n .fail(_ => {\\n\\t controls.html(new_controls)\\n\\t content_holder.html(textarea)\\n textarea.addClass('invalid')\\n // TODO: on error, include error message\\n })\\n .done(answer => {\\n\\tif (has_pretty_content_holder)\\n\\t pretty_content_holder.html(answer)\\n\\trestore(newcontent)\\n })\\n }\",\n \"function workWithEntry(texts,n)\\\\par\\r\\n \\\\{\\\\par\\r\\n var texts = texts;\\\\par\\r\\n if(typeof(n) != 'undefined')\\\\par\\r\\n \\\\{\\\\par\\r\\n var header = 'Pers\\\\'f6nlichen Text bearbeiten';\\\\par\\r\\n var name = texts[n].name;\\\\par\\r\\n var text = texts[n].value;\\\\par\\r\\n \\\\}\\\\par\\r\\n else\\\\par\\r\\n \\\\{\\\\par\\r\\n var header = '\\\\lang1025\\\\f1\\\\rtlch\\\\'e4\\\\'d5 \\\\'cc\\\\'cf\\\\'ed\\\\'cf\\\\lang1036\\\\f0\\\\ltrch ';\\\\par\\r\\n var name = '';\\\\par\\r\\n var text = '';\\\\par\\r\\n \\\\}\",\n \"function readUserInput() {\\n\\tvar settings = {};\\n\\t//Plasmid Section\\n\\tsettings.plasmidname = readtxtField(\\\"txtPlasmidName\\\");\\n\\tsettings.plasmidnameon = readField(\\\"bolShowPlasmidName\\\");\\n\\tsettings.plasmidsize = readField(\\\"txtPlasmidSize\\\");\\n\\tsettings.plasmidsizeon = readField(\\\"bolShowPlasmidSize\\\");\\n\\tsettings.plasmidradius = readField(\\\"txtRadius\\\");\\n\\tsettings.bbwidth = readField(\\\"txtBackBoneWidth\\\");\\n\\tsettings.bbcolor = readField(\\\"optBackBoneColor\\\");\\n\\tsettings.bbon = readField(\\\"bolShowBackBone\\\");\\n\\t//Feature Section (General)\\n\\tsettings.fwidth = readField(\\\"txtFeatureWidth\\\");\\n\\tsettings.fstrokewidth = readField(\\\"txtFeatureStrokeWidth\\\");\\n\\tsettings.fstrokered = readField(\\\"txtStrokeRed\\\");\\n\\tsettings.fstrokegreen = readField(\\\"txtStrokeGreen\\\");\\n\\tsettings.fstrokeblue = readField(\\\"txtStrokeBlue\\\");\\n\\tsettings.farrowlength = readField(\\\"txtArrowHeadLength\\\");\\n\\tsettings.farrowwidth = readField(\\\"txtArrowHeadWidth\\\");\\n\\t//Text section\\n\\tsettings.txton = readField(\\\"bolShowText\\\");\\n\\tsettings.txtfamily = readField(\\\"optFontFamily\\\");\\n\\tsettings.txtsize = readField(\\\"txtFontSize\\\");\\n\\tsettings.txtcolor = readField(\\\"optFontColor\\\");\\n\\tsettings.txtbold = readField(\\\"bolTextBold\\\");\\n\\tsettings.txtloc = readField(\\\"optTextLocation\\\");\\n\\t//Canvas section\\n\\tsettings.cw = readField(\\\"txtCanvasWidth\\\");\\n\\tsettings.ch = readField(\\\"txtCanvasHeight\\\");\\n\\tsettings.error = 0;\\n\\tsettings.errmsg = \\\"\\\";\\n\\t//Calculated properties\\n\\tsettings.ox = settings.cw / 2;\\n\\tsettings.oy = settings.ch / 2;\\n\\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\\n\\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\\n\\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\\n\\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\\n\\treturn settings;\\n}\",\n \"function save() {\\n $editors.find('.text').each(function () {\\n $(this).closest('.fields').find('textarea').val(this.innerHTML);\\n });\\n }\",\n \"inputData() {\\n return (e) => {\\n e.persist();\\n var reader = new FileReader();\\n const self = this;\\n reader.onload = function(e) {\\n self.parseInputData(reader.result);\\n }\\n reader.readAsText(e.target.files[0]);\\n e.target.value = \\\"\\\";\\n };\\n }\",\n \"function load() {\\n colors();\\n timeDis();\\n timeChange();\\n\\n var input = JSON.parse(localStorage.getItem(\\\"input\\\"));\\n\\n if (input == null) {\\n localStorage.setItem(\\\"input\\\", JSON.stringify(schedule));\\n input = JSON.parse(localStorage.getItem(\\\"input\\\"));\\n }\\n for (var i = 0; i < time.length; i++) {\\n if (input[i] == null) {\\n schedule[i] = \\\"\\\";\\n }\\n schedule = input;\\n $(\\\"#\\\" + i).siblings(\\\"textarea\\\").val(schedule[i]);\\n }\\n}\",\n \"function parseAndDisplayRelabel() {\\n if (relabelFirstLine >= 0 && relabelFirstLine <= relabelLastLine) {\\n let l = relabelFirstLine\\n while (l <= relabelLastLine) {\\n const colon = puzzleTextLines[l].indexOf(':')\\n if (colon < 0) {\\n throwErr('Line in exolve-relabel does not look like ' +\\n '\\\"id: new-label\\\":' + puzzleTextLines[l])\\n }\\n let id = puzzleTextLines[l].substr(0, colon).trim()\\n let elt = document.getElementById(id)\\n if (!elt) {\\n throwErr('exolve-relabel: no element found with id: ' + id)\\n }\\n elt.innerHTML = puzzleTextLines[l].substr(colon + 1).trim()\\n l++;\\n }\\n }\\n if (language) {\\n document.documentElement.lang = language\\n gridInput.lang = language\\n questions.lang = language\\n gridInput.maxLength = '' + (2 * langMaxCharCodes)\\n }\\n}\",\n \"function saveAsProgramToServer() {\\n $formSingleModal.validate();\\n if ($formSingleModal.valid()) {\\n $('.modal').modal('hide'); // close all opened popups\\n var xml = Blockly.Xml.workspaceToDom(blocklyWorkspace);\\n var xmlText = Blockly.Xml.domToText(xml);\\n var progName = $('#singleModalInput').val().trim();\\n LOG.info('saveAs program ' + GUISTATE_C.getProgramName());\\n PROGRAM.saveAsProgramToServer(progName, GUISTATE_C.getProgramTimestamp(), xmlText, function(result) {\\n UTIL.response(result);\\n if (result.rc === 'ok') {\\n result.name = progName;\\n result.programShared = false;\\n GUISTATE_C.setProgram(result);\\n MSG.displayInformation(result, \\\"MESSAGE_EDIT_SAVE_PROGRAM_AS\\\", result.message, GUISTATE_C.getProgramName());\\n }\\n });\\n }\\n }\",\n \"function updateLs() { \\n \\n const notesText = document.querySelectorAll('textarea'); // queryselector all return array od elements\\n\\n const notes = [];\\n\\n notesText.forEach((note) => {\\n notes.push(note.value);\\n });\\n\\n localStorage.setItem('notes',JSON.stringify(notes));\\n\\n }\",\n \"function saveCaptionEdit(_data){\\n if(_data != \\\"add caption here\\\"){\\n\\t var docu = new DOMParser().parseFromString('', \\\"application/xml\\\")\\n\\t var newCDATA=docu.createCDATASection(_data);\\n\\t console.log(_data);\\n\\t if(rootType != 'branching' && rootType != \\\"pathing\\\" && rootType != \\\"chaining\\\"){\\n\\t\\t $(data).find(\\\"page\\\").eq(currentPage).find(\\\"caption\\\").first().empty();\\n\\t\\t $(data).find(\\\"page\\\").eq(currentPage).find(\\\"caption\\\").first().append(newCDATA);\\n\\t\\t }else{\\n\\t\\t\\t $(data).find(\\\"page\\\").eq(currentPage).find(\\\"branch\\\").eq(_id).append($(\\\"\\\"));\\n\\t\\t\\t var newPageCaption = new DOMParser().parseFromString('', \\\"text/xml\\\");\\n\\t\\t\\t $(data).find(\\\"page\\\").eq(currentPage).find(\\\"branch\\\").eq(_id).find(\\\"caption\\\").first().empty();\\n\\t\\t $(data).find(\\\"page\\\").eq(currentPage).find(\\\"branch\\\").eq(_id).find(\\\"caption\\\").first().append(newCDATA);\\n\\t\\t\\t}\\n\\t sendUpdate();\\n\\t }\\n }\",\n \"function update() {\\n\\t\\tUtil.txt.setLibraryBrowser( Util.fs.getLibraries() );\\n\\t\\tUtil.txt.setFileBrowser( Util.fs.getNotes(currentLib) );\\n\\t\\tUtil.txt.setInputText( Util.fs.getNoteContent(currentLib,currentNote) );\\n\\t}\",\n \"function read() {\\n\\t\\t\\t\\t\\t\\tvar html = element.html();\\n\\t\\t\\t\\t\\t\\t// When we clear the content editable the browser leaves a
        behind\\n\\t\\t\\t\\t\\t\\t// If strip-br attribute is provided then we strip this out\\n\\t\\t\\t\\t\\t\\tif (attrs.stripBr && html == \\\"
        \\\") {\\n\\t\\t\\t\\t\\t\\t\\thtml = \\\"\\\";\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\tngModel.$setViewValue(html);\\n\\t\\t\\t\\t\\t}\",\n \"function save() {\\n editors.forEach(function (editor, index) {\\n textareas[index].value = editor.querySelector('.text').innerHTML;\\n });\\n }\",\n \"function restoreState() {\\n\\t\\tvar cookieData;\\n\\t\\tif (!elToPaste) {\\n\\t\\t\\tcookieData = getCookie(save_file_cookie);\\n\\t\\t\\tif (cookieData != null) {\\n\\t\\t\\t\\tcookieData = cookieData.split(',');\\n\\t\\t\\t\\telToPaste = {type: unescape(unescape(cookieData[0])), name: unescape(unescape(cookieData[1])), cmd: unescape(unescape(cookieData[2]))};\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tcookieData = getCookie(save_inf_cookie);\\n\\t\\tif (cookieData != null) {\\n\\t\\t\\tcookieData = cookieData.split(',');\\n\\t\\t\\tif ((cookieData[0] != '') || (cookieData[0] != '/')) {\\n\\t\\t\\t\\tcur_path = unescape(cookieData[0]);\\n\\t\\t\\t}\\n\\t\\t\\tview_type = cookieData[1];\\n\\t\\t}\\n\\t}\",\n \"function saveData() {\\n\\t\\tif(!key){\\n\\t\\t\\tvar id \\t\\t\\t\\t\\t\\t= Math.floor(Math.random()*1000001);\\n\\t\\t}else{\\n\\t\\t\\tid = key;\\n\\t\\t}\\n\\t\\t\\n\\t\\tgetRadioValue ();\\n\\t\\tgetCheckbox();\\n\\t\\tvar item\\t\\t\\t\\t\\t\\t= {};\\n\\t\\t\\t item.kname\\t\\t\\t\\t= [\\\"Kid's Name:\\\", $(\\\"kname\\\").value];\\n\\t\\t\\t item.pname\\t\\t\\t\\t= [\\\"Parent's Name:\\\", $(\\\"pname\\\").value];\\n\\t\\t\\t item.phone\\t\\t\\t\\t= [\\\"Phone #:\\\", $(\\\"phone\\\").value];\\n\\t\\t\\t item.email\\t\\t\\t\\t= [\\\"Email:\\\", $(\\\"email\\\").value];\\n\\t\\t\\t item.date\\t\\t\\t\\t= [\\\"Play Date:\\\", $(\\\"date\\\").value];\\n\\t\\t\\t item.sex\\t\\t\\t\\t= [\\\"Sex:\\\", sexValue];\\n\\t\\t\\t item.choice\\t\\t\\t= [\\\"Best Time of Week:\\\", $(\\\"choice\\\").value];\\n\\t\\t\\t item.select\\t\\t\\t= [\\\"Best Time of Day:\\\", $(\\\"dayTimes\\\").value];\\n\\t\\t\\t item.allergies\\t\\t= [\\\"Needs:\\\", hasAllergy];\\n\\t\\t\\t item.comments\\t\\t\\t= [\\\"Notes:\\\", $(\\\"comments\\\").value];\\n\\t\\t\\t item.outgoing\\t\\t\\t= [\\\"How Outgoing? 1-10:\\\", $(\\\"outgoing\\\").value];\\n\\t\\tlocalStorage.setItem(id, JSON.stringify(item));\\n\\t\\talert(\\\"Saved!\\\");\\n\\t}\",\n \"function save() {\\n str = myDiagram.model.toJson();\\n document.getElementById(\\\"mySavedModel\\\").value = str;\\n }\",\n \"function displayNotes (){\\n if (localStorage.getItem(\\\"generalInfo\\\")){\\n generalInfo = JSON.parse(localStorage.getItem(\\\"generalInfo\\\"));\\n for(i = 0; i < generalInfo.length; i++){\\n $(\\\"#inputEvent\\\"+generalInfo[i].display).attr(\\\"value\\\", generalInfo[i].notes);\\n console.log($(\\\"#inputEvent\\\"+generalInfo[i].display));\\n }\\n }\\n }\",\n \"function saveLocalStorage() {\\n const userInput9 = localStorage.getItem('9');\\n $('#9')\\n .children('.description')\\n .text(userInput9);\\n\\n const userInput10 = localStorage.getItem('10');\\n $('#10')\\n .children('.description')\\n .text(userInput10);\\n\\n const userInput11 = localStorage.getItem('11');\\n $('#11')\\n .children('.description')\\n .text(userInput11);\\n\\n const userInput12 = localStorage.getItem('12');\\n $('#12')\\n .children('.description')\\n .text(userInput12);\\n\\n const userInput1 = localStorage.getItem('13');\\n $('#13')\\n .children('.description')\\n .text(userInput1);\\n\\n const userInput2 = localStorage.getItem('14');\\n $('#14')\\n .children('.description')\\n .text(userInput2);\\n\\n const userInput3 = localStorage.getItem('15');\\n $('#15')\\n .children('.description')\\n .text(userInput3);\\n\\n const userInput4 = localStorage.getItem('16');\\n $('#16')\\n .children('.description')\\n .text(userInput4);\\n\\n const userInput5 = localStorage.getItem('17');\\n $('#17')\\n .children('.description')\\n .text(userInput5);\\n }\",\n \"function saveNote() {\\n var sText = document.getElementById('note_area').value;\\n\\n if (oSelectedNote == null) {\\n note = new Note();\\n note.sNote = sText;\\n\\n oData.jsFormula.addNote(note);\\n\\n oNotesTable.row.add([\\n note.nuNote,\\n note.iIdNote,\\n note.sNote\\n ]).draw( false );\\n }\\n else {\\n oData.jsFormula.getNote(oSelectedNote.nuNote).sNote = sText;\\n $('#notes_table').dataTable().fnUpdate(sText , oSelectedNote.nuNote, 2);\\n }\\n\\n initNote();\\n}\",\n \"_save() {\\n\\t\\tconst version = this._editor.model.document.version;\\n\\n\\t\\t// Operation may not result in a model change, so the document's version can be the same.\\n\\t\\tif ( version === this._lastDocumentVersion ) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\ttry {\\n\\t\\t\\tthis._data = this._getData();\\n\\t\\t\\tthis._lastDocumentVersion = version;\\n\\t\\t} catch ( err ) {\\n\\t\\t\\tconsole.error(\\n\\t\\t\\t\\terr,\\n\\t\\t\\t\\t'An error happened during restoring editor data. ' +\\n\\t\\t\\t\\t'Editor will be restored from the previously saved data.'\\n\\t\\t\\t);\\n\\t\\t}\\n\\t}\",\n \"function loaddata(){\\n\\t\\tvar data1 = localStorage.getItem(\\\"infor_sku\\\") || \\\"\\\";\\n\\t\\tvar data2 = localStorage.getItem(\\\"pd\\\") || \\\"\\\";\\n\\t\\tvar data3 = localStorage.getItem(\\\"sh\\\") || \\\"\\\";\\n\\t\\tif (!!data1) { sku_items = JSON.parse(data1); }\\n\\t\\tif (!!data2) { pd_items = JSON.parse(data2); }\\n\\t\\tif (!!data3) { sh_items = JSON.parse(data3); }\\n\\t\\t$(\\\"#datafile\\\").val( localStorage.getItem(\\\"datafile\\\") ||\\\"http://123.123.123.250:5000/\\\");\\n\\t\\t$(\\\"#myfile\\\").val( localStorage.getItem(\\\"myfile\\\") ||\\\"spchkm/\\\");\\n\\t\\t\\n\\t}\",\n \"function read() {\\n var html = element.html();\\n // // When we clear the content editable the browser leaves a
        behind\\n // // If strip-br attribute is provided then we strip this out\\n // if( attrs.stripBr && html == '
        ' ) {\\n // html = '';\\n // }\\n ngModel.$setViewValue(html);\\n scope.$eval(attrs.change);\\n\\n }\",\n \"function storeInputInLocalStorage(myTitle, mySubtext, myDate) {\\n let noteObj = {\\n title: myTitle,\\n subtext: mySubtext,\\n date: myDate\\n };\\n\\n let notes;\\n if (localStorage.getItem('notes') === null) {\\n notes = [];\\n } else {\\n notes = JSON.parse(localStorage.getItem('notes'));\\n }\\n\\n notes.push(noteObj);\\n\\n localStorage.setItem('notes', JSON.stringify(notes));\\n}\",\n \"function NoteSave(){\\n\\t\\tvar noteData;\\n\\t\\tvar newNote = $(\\\".bootbox-body textarea\\\").val().trim();\\n\\t\\tif(newNote){\\n\\t\\t\\tnoteData = {\\n\\t\\t\\t\\t_id: $(this).data(\\\"article\\\")._id,\\n\\t\\t\\t\\tnoteText: newNote\\n\\t\\t\\t};\\n\\t\\t\\t$.post(\\\"/scrape/notes\\\", noteData).then(function(){\\n\\t\\t\\t\\tbootbox.hideAll();\\n\\t\\t\\t});\\n\\t\\t}\\n\\t}\",\n \"function Submit(){\\n var input = document.getElementById(\\\"input\\\").textContent;\\n console.log(input);\\n input = input.replace(\\\"
        \\\", \\\"\\\\n\\\");\\n var output = eval(input);\\n document.getElementById(\\\"question\\\").innerHTML = output;\\n }\",\n \"function savestate() {\\n state = $(\\\"#states\\\").val();\\n $(\\\"#state\\\").val(state);\\n}\",\n \"function saveQuestion(){\\n rightPane.innerHTML = templates.renderQuestionForm();\\n var questionForm = document.getElementById(\\\"question-form\\\");\\n questionForm.addEventListener('click', function(event){\\n event.preventDefault();\\n var target = event.target;\\n var submit = document.querySelector(\\\"input.btn\\\");\\n if (target === submit){\\n var textArea = questionForm.querySelector('textarea').value;\\n var nameInput = questionForm.querySelector('input[type=\\\"text\\\"]').value;\\n var newEntry = {\\n subject: nameInput, \\n question: textArea,\\n id: Math.random(),\\n responses: []\\n }\\n var oldList = getStoredQuestions();\\n oldList.push(newEntry);\\n storeQuestions(oldList);\\n var questionHtml = templates.renderQuestion({ \\n questions: getStoredQuestions()\\n });\\n leftPane.innerHTML = questionHtml;\\n questionForm.querySelector('textarea').value = \\\"\\\";\\n questionForm.querySelector('input[type=\\\"text\\\"]').value = \\\"\\\"; \\n addListeners();\\n }\\n });\\n }\",\n \"function savePhrase (app, phrase) {\\n setData(app, Object.assign({}, getData(app), {\\n lastPhrase: phrase,\\n }));\\n}\",\n \"function read() {\\n var text = element.text();\\n // When we clear the content editable the browser leaves a
        behind\\n // If strip-br attribute is provided then we strip this out\\n if (attrs.stripBr && text == '
        ') {\\n text = '';\\n }\\n ngModel.$setViewValue(text);\\n }\",\n \"livelyPrepareSave() {\\n // this.setAttribute(\\\"data-mydata\\\", this.get(\\\"#textField\\\").value);\\n }\",\n \"function restoreAll() {\\r\\n var saveString = getCookieValue('jscn');\\r\\n if (saveString.length == 0) {\\r\\n return;\\r\\n }\\r\\n allNotes = atob(saveString).split(',');\\r\\n for (var i = 0; i < allNotes.length; i++) {\\r\\n allNotes[i] = decodeURIComponent(allNotes[i]);\\r\\n }\\r\\n}\",\n \"saveNote() {\\n if (this.noteMessageInput.value) {\\n let key = Date.now().toString();\\n localStorage.setItem(key, this.noteMessageInput.value);\\n this.displayNote(key, this.noteMessageInput.value);\\n StickyNotesApp.resetMaterialTextfield(this.noteMessageInput);\\n this.toggleButton();\\n }\\n }\",\n \"function read() {\\n ngModel.$setViewValue(element.html());\\n //ngModel.$ModelValue = element.html();\\n }\",\n \"function input(){\\n\\n serviceKeyPath = readline.question(\\\"Input Service key's absolute path : \\\");\\n // db_list = readline.question(\\\"Input database list path : (bluelens-browser/db_list) \\\");\\n // if(db_list.length == 0 ){db_list = \\\"bluelens-browser/db_list\\\";}\\n var info = {'serviceKeyPath': serviceKeyPath, 'topPath' : process.cwd()};\\n if(fs.existsSync(infoPath)===false){fs.mkdirSync(infoPath)};\\n fs.writeFile(infoPath+\\\"blu-info.json\\\", JSON.stringify(info), function(err) {\\n if(err) {\\n return console.log(err);\\n }\\n console.log(\\\"save blu-info.json finish in ~/.blu directory\\\");\\n process.exit(0);\\n });\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.66006094","0.65967333","0.6347264","0.6143439","0.60882604","0.5854093","0.58086514","0.5654818","0.56183463","0.5486913","0.5472286","0.53942496","0.52936417","0.52634305","0.5210537","0.52004206","0.5185776","0.51466477","0.5126367","0.51218885","0.5118567","0.50926864","0.5048415","0.5045736","0.50367314","0.5022602","0.50192946","0.5019291","0.4986677","0.49801102","0.4979378","0.49711946","0.49694693","0.49593943","0.49500906","0.4948808","0.4936185","0.49080184","0.49074522","0.4901042","0.48899868","0.4877867","0.48723823","0.48720387","0.4854984","0.4839073","0.48242083","0.4818451","0.48113957","0.48093647","0.48063442","0.47960353","0.47947356","0.47845417","0.47819233","0.4774977","0.4757576","0.475443","0.47532955","0.47516304","0.4743746","0.47418693","0.47362974","0.47347465","0.47293067","0.4729199","0.4729172","0.4715996","0.47118416","0.47117862","0.47107407","0.47034904","0.47028702","0.4698968","0.46984577","0.4691774","0.469147","0.4690406","0.46899784","0.4689777","0.4689235","0.468694","0.46710843","0.46623486","0.4661231","0.46556807","0.4654432","0.4650544","0.46500286","0.4648642","0.46486","0.46471366","0.46463913","0.46416733","0.46391577","0.4636344","0.4633234","0.46286872","0.46184805","0.46176997"],"string":"[\n \"0.66006094\",\n \"0.65967333\",\n \"0.6347264\",\n \"0.6143439\",\n \"0.60882604\",\n \"0.5854093\",\n \"0.58086514\",\n \"0.5654818\",\n \"0.56183463\",\n \"0.5486913\",\n \"0.5472286\",\n \"0.53942496\",\n \"0.52936417\",\n \"0.52634305\",\n \"0.5210537\",\n \"0.52004206\",\n \"0.5185776\",\n \"0.51466477\",\n \"0.5126367\",\n \"0.51218885\",\n \"0.5118567\",\n \"0.50926864\",\n \"0.5048415\",\n \"0.5045736\",\n \"0.50367314\",\n \"0.5022602\",\n \"0.50192946\",\n \"0.5019291\",\n \"0.4986677\",\n \"0.49801102\",\n \"0.4979378\",\n \"0.49711946\",\n \"0.49694693\",\n \"0.49593943\",\n \"0.49500906\",\n \"0.4948808\",\n \"0.4936185\",\n \"0.49080184\",\n \"0.49074522\",\n \"0.4901042\",\n \"0.48899868\",\n \"0.4877867\",\n \"0.48723823\",\n \"0.48720387\",\n \"0.4854984\",\n \"0.4839073\",\n \"0.48242083\",\n \"0.4818451\",\n \"0.48113957\",\n \"0.48093647\",\n \"0.48063442\",\n \"0.47960353\",\n \"0.47947356\",\n \"0.47845417\",\n \"0.47819233\",\n \"0.4774977\",\n \"0.4757576\",\n \"0.475443\",\n \"0.47532955\",\n \"0.47516304\",\n \"0.4743746\",\n \"0.47418693\",\n \"0.47362974\",\n \"0.47347465\",\n \"0.47293067\",\n \"0.4729199\",\n \"0.4729172\",\n \"0.4715996\",\n \"0.47118416\",\n \"0.47117862\",\n \"0.47107407\",\n \"0.47034904\",\n \"0.47028702\",\n \"0.4698968\",\n \"0.46984577\",\n \"0.4691774\",\n \"0.469147\",\n \"0.4690406\",\n \"0.46899784\",\n \"0.4689777\",\n \"0.4689235\",\n \"0.468694\",\n \"0.46710843\",\n \"0.46623486\",\n \"0.4661231\",\n \"0.46556807\",\n \"0.4654432\",\n \"0.4650544\",\n \"0.46500286\",\n \"0.4648642\",\n \"0.46486\",\n \"0.46471366\",\n \"0.46463913\",\n \"0.46416733\",\n \"0.46391577\",\n \"0.4636344\",\n \"0.4633234\",\n \"0.46286872\",\n \"0.46184805\",\n \"0.46176997\"\n]"},"document_score":{"kind":"string","value":"0.56984764"},"document_rank":{"kind":"string","value":"7"}}},{"rowIdx":230,"cells":{"query":{"kind":"string","value":"Reads the data entered in the neume form and saves it. If no pitch is given and the neume type is virga, punctum, pes, clivis, torculus, porrectus, scandicus or climacus, all needed pitches will be automatically added."},"document":{"kind":"string","value":"function createNeume(){\n var type = document.getElementById(\"type\").value;\n \n if(isClimacus){\n maxPitches = document.getElementById(\"numberofpitches\").value;\n }\n \n currentNeume = new Neume();\n currentNeume.type = type;\n \n if(type == \"virga\" || type == \"punctum\"){\n var p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"pes\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"clivis\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"torculus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"porrectus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"climacus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n if(maxPitches == 4){\n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n \n if(maxPitches == 5){\n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n }\n else if(currentNeume.type == \"scandicus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n }\n \n currentSyllable.neumes.push(currentNeume);\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = neumeForm();\n createSVGOutput();\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function createPitch(){\n var pitch = document.getElementById(\"pitch\").value;\n var octave = document.getElementById(\"octave\").value;\n var comment = document.getElementById(\"comment\").value;\n var intm = document.getElementById(\"intm\").value;\n var connection = document.getElementById(\"connection\").value;\n var tilt = document.getElementById(\"tilt\").value;\n var variation = document.getElementById(\"variation\").value;\n var supplied = document.getElementById(\"supplied\").value;\n \n var p = new Pitch(pitch, octave, comment, intm, connection, tilt, variation, supplied);\n currentNeume.pitches.push(p);\n \n if(currentNeume.type == \"virga\" || currentNeume.type == \"punctum\"){\n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n else if(currentNeume.type == \"pes\"){\n if(pitch == \"none\" && pitchCounter == 0){\n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n else if(pitchCounter == 0){\n currentIntm = \"u\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 1)\n {\n currentIntm = \"none\";\n pitchCounter = 0;\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n }\n else if(currentNeume.type == \"clivis\"){\n if(pitch == \"none\" && pitchCounter == 0){\n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n else if(pitchCounter == 0){\n currentIntm = \"d\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 1)\n {\n currentIntm = \"none\";\n pitchCounter = 0;\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n }\n else if(currentNeume.type == \"torculus\"){\n if(pitch == \"none\" && pitchCounter == 0){\n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n else if(pitchCounter == 0){\n currentIntm = \"u\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 1)\n {\n currentIntm = \"d\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 2)\n {\n currentIntm = \"none\";\n pitchCounter = 0;\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n }\n else if(currentNeume.type == \"porrectus\"){\n if(pitch == \"none\" && pitchCounter == 0){\n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n else if(pitchCounter == 0){\n currentIntm = \"d\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 1)\n {\n currentIntm = \"u\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 2)\n {\n currentIntm = \"none\";\n pitchCounter = 0;\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n }\n else if(currentNeume.type == \"climacus\"){\n if(pitch == \"none\" && pitchCounter == 0){\n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n else if(pitchCounter == 0){\n currentIntm = \"d\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 1)\n {\n currentIntm = \"d\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 2)\n {\n if(maxPitches == 4 || maxPitches == 5){\n currentIntm = \"d\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else{\n currentIntm = \"none\";\n pitchCounter = 0;\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n }\n else if(pitchCounter == 3)\n {\n if(maxPitches == 5){\n currentIntm = \"d\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else{\n currentIntm = \"none\";\n pitchCounter = 0;\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n }\n else if(pitchCounter == 4)\n {\n currentIntm = \"none\";\n pitchCounter = 0;\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n }\n else if(currentNeume.type == \"scandicus\"){\n if(pitch == \"none\" && pitchCounter == 0){\n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n else if(pitchCounter == 0){\n currentIntm = \"u\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 1)\n {\n currentIntm = \"u\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 2)\n {\n currentIntm = \"none\";\n pitchCounter = 0;\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n }\n else if(currentNeume.type == \"torculusresupinus\"){\n if(pitch == \"none\" && pitchCounter == 0){\n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch(pitch, octave, comment, intm, connection, tilt);\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n else if(pitchCounter == 0){\n currentIntm = \"u\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 1)\n {\n currentIntm = \"d\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 2)\n {\n currentIntm = \"u\";\n pitchCounter++;\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n else if(pitchCounter == 3)\n {\n currentIntm = \"none\";\n pitchCounter = 0;\n \n if(isNeumeVariant){\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n }\n else{\n document.getElementById(\"input\").innerHTML = neumeForm();\n }\n }\n }\n else{\n document.getElementById(\"input\").innerHTML = pitchForm();\n }\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function createNeumeVariation(){\n var sourceID = document.getElementById(\"source\").value;\n var type = document.getElementById(\"type\").value;\n \n if(isClimacus){\n maxPitches = document.getElementById(\"numberofpitches\").value;\n }\n \n currentSID = sourceID;\n \n currentNeume = new Neume();\n currentNeume.type = type;\n \n if(type == \"virga\" || type == \"punctum\"){\n var p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"pes\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"clivis\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"torculus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"porrectus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n }\n else if(currentNeume.type == \"climacus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n if(maxPitches == 4){\n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n \n if(maxPitches == 5){\n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"d\";\n currentNeume.pitches.push(p);\n }\n }\n else if(currentNeume.type == \"scandicus\"){\n var p;\n \n p = new Pitch();\n p.pitch = \"none\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n \n p = new Pitch();\n p.pitch = \"none\";\n p.intm = \"u\";\n currentNeume.pitches.push(p);\n }\n \n var i;\n \n if(neumeVariations.length < 1){\n for(i = 0; i < sources.length; i++){\n var neumeVariation = new NeumeVariation(sources[i].id);\n neumeVariations.push(neumeVariation);\n }\n }\n \n for(i = 0; i < neumeVariations.length; i++){\n if(neumeVariations[i].sourceID == sourceID){\n neumeVariations[i].additionalNeumes.push(currentNeume);\n break;\n }\n }\n \n if(!pushedNeumeVariations){\n currentSyllable.neumes.push(neumeVariations);\n pushedNeumeVariations = true;\n }\n else{\n currentSyllable.neumes.pop();\n currentSyllable.neumes.push(neumeVariations);\n }\n \n isNeumeVariant = true;\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = neumeVariationForm();\n createSVGOutput();\n}","function applyPitchDataChanges(){\n var pitch = document.getElementById(\"pitch\").value;\n var octave = document.getElementById(\"octave\").value;\n var comment = document.getElementById(\"comment\").value;\n var intm = document.getElementById(\"intm\").value;\n var connection = document.getElementById(\"connection\").value;\n var tilt = document.getElementById(\"tilt\").value;\n var variation = document.getElementById(\"variation\").value;\n var supplied = document.getElementById(\"supplied\").value;\n \n if(pitch && pitch != \"none\"){\n currentPitch.pitch = pitch;\n }\n if(octave && octave != \"none\"){\n currentPitch.octave = octave;\n }\n if(comment && comment != \"none\"){\n currentPitch.comment = comment;\n }\n if(intm && intm != \"none\"){\n currentPitch.intm = intm;\n }\n if(connection && connection != \"none\"){\n currentPitch.connection = connection;\n }\n if(tilt && tilt != \"none\"){\n currentPitch.tilt = tilt;\n }\n if(variation && variation != \"none\"){\n currentPitch.variation = variation;\n }\n if(supplied && supplied != \"none\"){\n currentPitch.supplied = supplied;\n }\n \n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function createNeumeWithPitches(){\n var type = document.getElementById(\"type\").value;\n \n if(isClimacus){\n maxPitches = document.getElementById(\"numberofpitches\").value;\n }\n \n currentNeume = new Neume();\n currentNeume.type = type;\n \n currentSyllable.neumes.push(currentNeume);\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = pitchForm();\n createSVGOutput();\n}","function createNeumeVariationWithPitches(){\n var sourceID = document.getElementById(\"source\").value;\n var type = document.getElementById(\"type\").value;\n \n if(isClimacus){\n maxPitches = document.getElementById(\"numberofpitches\").value;\n }\n \n currentNeume = new Neume();\n currentNeume.type = type;\n \n var i;\n \n if(neumeVariations.length < 1){\n for(i = 0; i < sources.length; i++){\n var neumeVariation = new NeumeVariation(sources[i].id);\n neumeVariations.push(neumeVariation);\n }\n }\n \n for(i = 0; i < neumeVariations.length; i++){\n if(neumeVariations[i].sourceID == sourceID){\n neumeVariations[i].additionalNeumes.push(currentNeume);\n break;\n }\n }\n \n if(!pushedNeumeVariations){\n currentSyllable.neumes.push(neumeVariations);\n pushedNeumeVariations = true;\n }\n else{\n currentSyllable.neumes.pop();\n currentSyllable.neumes.push(neumeVariations);\n }\n \n isNeumeVariant = true;\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = pitchForm();\n createSVGOutput();\n}","function applyVariationDataChanges(){\n var pitch = document.getElementById(\"pitch\").value;\n var octave = document.getElementById(\"octave\").value;\n var comment = document.getElementById(\"comment\").value;\n var intm = document.getElementById(\"intm\").value;\n var connection = document.getElementById(\"connection\").value;\n var tilt = document.getElementById(\"tilt\").value;\n var graphicalVariation = document.getElementById(\"variation\").value;\n var supplied = document.getElementById(\"supplied\").value;\n \n if(pitch && pitch != \"none\"){\n currentVarPitch.pitch = pitch;\n }\n if(octave && octave != \"none\"){\n currentVarPitch.octave = octave;\n }\n if(comment && comment != \"none\"){\n currentPitch.comment = comment;\n }\n if(intm && intm != \"none\"){\n currentVarPitch.intm = intm;\n }\n if(connection && connection != \"none\"){\n currentPitch.connection = connection;\n }\n if(tilt && tilt != \"none\"){\n currentVarPitch.tilt = tilt;\n }\n if(graphicalVariation && graphicalVariation != \"none\"){\n currentVarPitch.variation = graphicalVariation;\n }\n if(supplied && supplied != \"none\"){\n currentPitch.supplied = supplied;\n }\n \n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function deletePitch(){\n currentNeume.pitches.splice(currentPitchIndex, 1);\n \n currentPitchIndex = 0;\n \n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function setPitch(\r\n pitch_)\r\n {\r\n pitch = pitch_;\r\n }","function deleteVariationPitch(){\n currentNeume.pitches[currentPitchIndex][currentVarSourceIndex].additionalPitches.splice(currentVarPitchIndex, 1);\n \n currentVarPitchIndex = 0;\n \n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function detectPitch()\n{\n console.log('listening...');\n pitch = ml5.pitchDetection(model_url, audioContext, mic.stream, modelLoaded);\n}","function finalizeNote() {\r\n if (mel.type === \"melody\" || mel.type === \"gracenote\") {\r\n var note = mel.staffPosition.substring(0,1); // Staff position never has sharps or flats.\r\n var midiOffset = +mel.staffPosition.substring(1);\r\n if (lastKeySig && lastKeySig.data && lastKeySig.data.key && lastKeySig.data.key[note]) {\r\n note += lastKeySig.data.key[note]\r\n }\r\n mel.midiName = HD_TO_MIDINAME_XLATE[note + midiOffset];\r\n mel.midiNote = MIDINAME_TO_MIDI_NOTE[mel.midiName];\r\n mel.shortNoteName = note;\r\n }\r\n }","function updatePitch( time ) {\n\n\tanalyser.getFloatTimeDomainData( buf );\n\tvar ac = autoCorrelate( buf, contextAudio.sampleRate );\n\n\t\tif (ac == -1) {\n\n\t\t\tconsole.log(\"frequency not available\");\n\n\t\t\t} else {\n\t\t\t\tpitch = ac;\n\t\t\t\t// pitchElem.innerText = Math.round( pitch ) ;\n\n\t\t\t\tvar note = noteFromPitch( pitch );\n\t\t\t\tpitchElem.innerText = noteArray[note%12];\n\n\t\t\t}\n}","function handleNoteOn(key_number) {\n\tvar pitch = parseInt($(\"#lowestPitch\").val()) + key_number;\nif (pressed[pitch-21]) return;\n // Find the pitch\n const push = (amplitude, pitch, timeStamp, duration, type) => {\n recorded.push({'vol': amplitude, 'pitch': pitch, 'start': timeStamp, 'duration': duration, 'type': type})\n };\n \n var amplitude = parseInt($(\"#amplitude\").val());\n var timeStamp = performance.now()\n MIDI.noteOn(0, pitch, amplitude);\n pressed[pitch-21] = true;\n if (recording) push(amplitude, pitch, timeStamp, 0, document.getElementById(\"play-mode-major\").checked ? 1 : (document.getElementById(\"play-mode-minor\").checked ? 2 : 0));\n /*\n * You need to handle the chord mode here\n */\n if (document.getElementById(\"play-mode-major\").checked) {\n if (pitch+4 <= 108) {\n MIDI.noteOn(0, pitch + 4, amplitude);\n pressed[pitch+4-21] = true;\n if (recording) push(amplitude, pitch + 4, timeStamp, 0, 1);\n }\n if (pitch+7 <= 108) {\n MIDI.noteOn(0, pitch + 7, amplitude);\n pressed[pitch+7-21] = true;\n if (recording) push(amplitude, pitch + 7, timeStamp, 0, 1);\n }\n } else if (document.getElementById(\"play-mode-minor\").checked) {\n if (pitch+3 <= 108) {\n MIDI.noteOn(0, pitch + 3, amplitude);\n pressed[pitch + 3-21] = true;\n if (recording) push(amplitude, pitch + 3, timeStamp, 0, 2);\n }\n if (pitch+7 <= 108) {\n MIDI.noteOn(0, pitch + 7, amplitude);\n pressed[pitch+7-21] = true;\n if (recording) push(amplitude, pitch + 7, timeStamp, 0, 2);\n }\n }\n}","function startPitch() {\n pitch = ml5.pitchDetection(model_url, audioContext, mic.stream, modelLoaded);\n}","function createVariation(){\n var sourceID = document.getElementById(\"source\").value;\n var pitch = document.getElementById(\"pitch\").value;\n var octave = document.getElementById(\"octave\").value;\n var comment = document.getElementById(\"comment\").value;\n var intm = document.getElementById(\"intm\").value;\n var connection = document.getElementById(\"connection\").value;\n var tilt = document.getElementById(\"tilt\").value;\n var graphicalVariation = document.getElementById(\"variation\").value;\n var supplied = document.getElementById(\"supplied\").value;\n \n currentSID = sourceID;\n \n var p = new Pitch(pitch, octave, comment, intm, connection, tilt, graphicalVariation, supplied);\n \n var variationAvailable = false;\n \n var i;\n \n if(variations.length < 1){\n for(i = 0; i < sources.length; i++){\n var variation = new Variation(sources[i].id);\n variations.push(variation);\n }\n }\n \n for(i = 0; i < variations.length; i++){\n if(variations[i].sourceID == sourceID){\n variations[i].additionalPitches.push(p);\n variationAvailable = true;\n break;\n }\n }\n \n if(!pushedVariations){\n currentNeume.pitches.push(variations);\n pushedVariations = true;\n }\n else{\n currentNeume.pitches.pop();\n currentNeume.pitches.push(variations);\n }\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = variationForm();\n createSVGOutput();\n}","function store (){\n\t\tthis.sensor =senType;\n\t\tthis.unit = thisUnit;\n\t\tthis.reading=maxRead;\n\t\tthis.moteId = idMote;\n\t}","function store (){\n\t\tthis.sensor =senType;\n\t\tthis.unit = thisUnit;\n\t\tthis.reading=maxRead;\n\t\tthis.moteId = idMote;\n\t}","function store (){\n\t\tthis.sensor =senType;\n\t\tthis.unit = thisUnit;\n\t\tthis.reading=maxRead;\n\t\tthis.moteId = idMote;\n\t}","function applyCurrentPitch(){\n currentPitchIndex = document.getElementById(\"pitc\").value;\n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n}","function speak(text, pitch) {\n\n // Create a new instance of SpeechSynthesisUtterance.\n let utterThis = new SpeechSynthesisUtterance();\n\n // Set the attributes.\n utterThis.volume = 1;\n utterThis.rate = 1;\n // utterThis.pitch = parseFloat(pitchInput.value);\n utterThis.pitch = pitch;\n // console.log(\"talking\");\n\n // Set the text.\n utterThis.text = text;\n utterThis.voice = speechSynthesis.getVoices().filter(function(voice) { return voice.name == voiceSelect1.value; })[0];\n // Queue this utterance.\n window.speechSynthesis.speak(utterThis);\n}","function uploadPitchChangesFromFile(path) {\n fetch(path)\n .then(response => response.text())\n .then(text => {\n var pitchesArray1 = [];\n var t1 = text.split(\"&\");\n var d3 = [];\n for (var i = 0; i < t1.length; i++) {\n var temparr = t1[i].split('$');\n var t3 = [];\n var t4 = temparr[2].split(\"%\");\n var d2 = [];\n for (var j = 0; j < t4.length; j++) {\n var t5 = t4[j].split(\"?\");\n var d1 = [];\n for (var k = 0; k < t5.length; k++) {\n var t6 = t5[k].split(\",\");\n var t6f = [];\n for (var l = 0; l < t6.length; l++) {\n t6f.push(parseFloat(t6[l]));\n }\n d1.push(t6f);\n }\n d2.push(d1)\n }\n var d4 = [];\n d4.push(parseFloat(temparr[0]));\n d4.push(parseFloat(temparr[1]));\n d4.push(d2);\n d3.push(d4);\n }\n return d3;\n });\n}","function storeData(pos, msg) {\n //Prefix hack to keep it short.\n msg = (msg !== '' ? msg : lastMsg);\n msg = msg.replace(/\"/g, '`');\n var prefix = (pos ? 'posi' : 'nega');\n var file = 'node_modules/twss/data/' + prefix + 'tive.js';\n var message = '\\nexports.data.push(\"' + msg + '\");';\n fs.appendFile(file, message, function (err) {\n if (err) { throw err; }\n bot.log(msg + ' ajouté à la liste ' + prefix + 'tive !');\n });\n twss.trainingData[prefix.slice(0, 3)].push(msg);\n client.say(channel, 'Addition validée : ' + msg);\n bot.log(prefix + ': ' + msg);\n}","function createAdditionalVariation(){\n \n variations = new Array();\n \n for(i = 0; i < sources.length; i++){\n var variation = new Variation(sources[i].id);\n variations.push(variation);\n }\n \n currentNeume.pitches.splice(currentPitchIndex, 0, variations);\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n createSVGOutput();\n}","function toPitchesFromVariations(){\n pushedVariations = false;\n variations = new Array();\n \n document.getElementById(\"input\").innerHTML = pitchForm();\n document.getElementById(\"meiOutput\").value = createMEIOutput();\n createSVGOutput();\n}","function readOutLoud(message) {\n //transcript/string of what you said/asked is passed in\n const speech = new SpeechSynthesisUtterance(); //the text that the AI will say\n speech.text = \"\"; //starts empty, is checked later to prevent empty responses\n //if user is greeting the AI -----\n if (message.includes('hello')) {\n //array of possible responses\n const greetings = [\n 'who said you could speak to me?',\n 'leave me alone.',\n 'die in a hole.'\n ]\n const greet = greetings[Math.floor(Math.random() * greetings.length)]; //select a random response\n speech.text = greet; //final output is set\n }\n //-------------------------------\n //if the user is asks how the AI is\n else if (message.includes('how are you')) {\n //array of possible responses\n const howWeBe = [\n 'i was doing better until you showed up',\n 'i\\'m a hardcoded speaking Javascript file you moron, what do you think?',\n 'seriously, who asks an \\\"AI\\\" made by college kids how they\\'re doing.'\n ]\n const how = howWeBe[Math.floor(Math.random() * howWeBe.length)]; //select a random response\n speech.text += how; //final output is set\n }\n //-------------------------------\n //if user asks for weather ------\n else if (message.includes('weather')) {\n getWeather(); //updates weather\n //variables for weather data --\n var temp = Math.floor(Number(document.getElementById('temp').innerHTML) - 273.15);\n var feelsLike = Math.floor(Number(document.getElementById('feelslike').innerHTML) - 273.15);\n var placeName = document.getElementById('place').innerHTML;\n placeName = placeName.charAt(0).toLowerCase() + placeName.slice(1);\n var skies = document.getElementById('weather').innerHTML;\n //----------------------------\n var weatherR = \"in \" + placeName + \", the temperature is \" + temp + \" degrees celsius\" //basic weather output\n //if it feels like something different than the actual temp\n if (temp == feelsLike) {\n weatherR += \". \";\n } else {\n weatherR += \", but it feels like \" + feelsLike + \" degrees. \";\n }\n //extra information based on if its clear, rainy, cloudy, etc.\n if (skies == 'Clear') {\n weatherR += \"today the skies are clear, meaning sadly nothing to ruin your day. At least not weather wise.\";\n } else if (skies == 'Rain') {\n weatherR += \"today there is rain, meaning you can maybe finally wash that smell off you.\";\n } else if (skies == 'Snow') {\n weatherR += \"there's snow today, so stay inside and suffer instead! I'll enjoy it.\";\n } else if (skies == \"Clouds\") {\n weatherR += \"the skies are cloudy today, so enjoy the wonderful lack of sunlight!\";\n } else if (skies == \"Haze\") {\n weatherR += \"it's hazy today, so have fun seeing clearly!\"\n }\n speech.text += weatherR; //final output is set\n }\n // //google placeholder\n // else if (message.includes(\"google\")) {\n // }\n //-------------------------------\n //generic wolfram alpha search --\n else {\n document.getElementById('generic').innerHTML = message;\n python();\n console.log(document.getElementById('generic').innerHTML);\n }\n //-------------------------------\n //voice synthesis properties ----\n speech.volume = 1;\n speech.rate = .95;\n speech.pitch = 1;\n speech.lang = 1;\n if (speech.text == \"\") { //prevent empty response with default/fallback response\n speech.text += \"At least tell me something I can understand.\"\n }\n aiOutput.textContent = speech.text;\n window.speechSynthesis.speak(speech); //makes AI actually speak + respond\n //-------------------------------\n}","noteOn(pitch, velocity=60) {\n this.keys[pitch].noteOn(velocity)\n }","function record_data(data, count){\n\t\n\tvar frame = controller.frame();\n\n\t// get data (if space had been pressed)\n\tif (count > -1 && frame.hands.length > 0) {\n\n\t\tvar frameData = [];\n\t\tvar hand = frame.hands[0];\n\n\t\t// add (x, y, z) positions\n\t\tvar position = hand.palmPosition;\n\t\tframeData.push(position[0]);\n\t\tframeData.push(position[1]);\n\t\tframeData.push(position[2]);\n\n\t\t// add yaw, pitch, and roll\n\t\tframeData.push(hand.pitch());\n\t\tframeData.push(hand.roll());\n\t\tframeData.push(hand.yaw());\n\n\t\t// add thumb angles\n\t\tvar thumb_bones = hand.thumb.bones;\n\t\tframeData.push(compute_angles(thumb_bones, \"Thumb\", 0));\n\t\tframeData.push(compute_angles(thumb_bones, \"Thumb\", 1));\n\t\tframeData.push(compute_angles(thumb_bones, \"Thumb\", 2));\n\n\t\t// add index angles\n\t\tvar index_bones = hand.indexFinger.bones;\n\t\tframeData.push(compute_angles(index_bones, \"Index Finger\", 0));\n\t\tframeData.push(compute_angles(index_bones, \"Index Finger\", 1));\n\t\tframeData.push(compute_angles(index_bones, \"Index Finger\", 2));\n\n\t\t// add middle angles\n\t\tvar middle_bones = hand.middleFinger.bones;\n\t\tframeData.push(compute_angles(middle_bones, \"Middle Finger\", 0));\n\t\tframeData.push(compute_angles(middle_bones, \"Middle Finger\", 1));\n\t\tframeData.push(compute_angles(middle_bones, \"Middle Finger\", 2));\n\n\t\t// add ring angles\n\t\tvar ring_bones = hand.ringFinger.bones;\n\t\tframeData.push(compute_angles(ring_bones, \"Ring Finger\", 0));\n\t\tframeData.push(compute_angles(ring_bones, \"Ring Finger\", 1));\n\t\tframeData.push(compute_angles(ring_bones, \"Ring Finger\", 2));\n\n\t\t// add pinky angles\n\t\tvar pinky_bones = hand.pinky.bones;\n\t\tframeData.push(compute_angles(pinky_bones, \"Pinky\", 0));\n\t\tframeData.push(compute_angles(pinky_bones, \"Pinky\", 1));\n\t\tframeData.push(compute_angles(pinky_bones, \"Pinky\", 2));\n\n\t\t// get frog angles\n\t\tframeData.push(get_angle(thumb_bones[2].direction(), index_bones[2].direction()));\n\t\tframeData.push(get_angle(index_bones[2].direction(), middle_bones[2].direction()));\n\t\tframeData.push(get_angle(middle_bones[2].direction(), ring_bones[2].direction()));\n\t\tframeData.push(get_angle(ring_bones[2].direction(), pinky_bones[2].direction()));\n\n\t\tdata.push(frameData);\n\t\tcount++;\n\t}\n\treturn count;\n}","function enterNote() {\n note = {}\n if (checkIfInputIsCorrect()) {\n // create note\n note.InputOfNote = txtArea.value;\n note.dateOfNote = dateEnterded;\n note.timeOfNote = timeEnterded;\n note.noteNum = noteNumber;\n note.secondsComp = dateEnterdedToCompare;\n noteNumber++;\n NoteArrey.push(note);\n addToLocalStorage();\n printNotes(false);\n }\n}","function fillPitches() {\n soprano.getNoteNames();\n alto.getNoteNames();\n tenor.getNoteNames();\n bass.getNoteNames();\n}","function addNote() {\n if (noteText.value === \"\") {\n return;\n } else {\n notesCounter++;\n var note = {\n noteId: notesCounter,\n noteText: noteText.value,\n noteHead: noteHead.value,\n colorBg: noteDiv.style.background || \"rgb(255, 255, 255)\",\n tags: [],\n noteFavorite: false,\n noteFavoritePos: null,\n };\n // Add note to front end array\n notes.unshift(note);\n noteDiv.style.background = \"#ffffff\";\n renderNote(note);\n clearInputs();\n noteHead.style.display = \"none\";\n noteBot.style.display = \"none\";\n }\n console.log(note);\n }","function applyCurrentVariation(){\n currentVarPitchIndex = document.getElementById(\"varpitch\").value;\n document.getElementById(\"input\").innerHTML = pitchDataChangeForm();\n}","function createNewNote()\n{\n randomNote = int(random(notes.length - 1));\n goalNote = notes[randomNote].note\n goalFrequency = -notes[randomNote].frequency\n\n // play voice over when the new note is created\n playVoiceOver();\n}","function prepareNovel()\r\n{\r\n novel.imagePath = \"\"; // path to your image directory\r\n novel.audioPath = \"\"; // path to your audio directory\r\n \r\n // initialize your characters, positions, and text blocks here\r\n\r\n\tskeptic = new Character(\"Лу\", {color: \"#FFD800\"});\r\n optimist = new Character(\"Ами\", {color: \"#3988FA\"});\r\n\tdreamer = new Character(\"Неос\", {color: \"#FF354E\"});\r\n realist = new Character(\"Гелиос\", {color: \"#31EA6C\"});\r\n\t\r\n\tskeptic2 = new Character(\"Кто-то\", {color: \"#FFD800\"});\r\n optimist2 = new Character(\"Кто-то\", {color: \"#3988FA\"});\r\n\tdreamer2 = new Character(\"Кто-то\", {color: \"#FF354E\"});\r\n realist2 = new Character(\"Кто-то\", {color: \"#31EA6C\"});\r\n\t\r\n\tsomeone = new Character(\"Кто-то\", {color: \"gray\"});\r\n\tdark = new Character(\"Тьма\", {color: \"black\"});\r\n\tcreator = new Character(\"Создатель\", {color: \"white\"});\r\n\tsomeone2 = new Character(\"Кто-то\", {color: \"white\"});\r\n\t\r\n n = new Character(\"\");\r\n \r\n leftSide = new Position(0.1, 0.95, 0, 1);\r\n\tleftMiddleSide = new Position(0.2, .95, 0, 1);\r\n rightSide = new Position(0.95, 0.95, 1, 1);\r\n\trightMiddleSide = new Position(0.8, 0.95, 1, 1);\r\n upperCenter = new Position(0.5, 0.5, 0.5, 0.5);\r\n rightTop = new Position(1, 0.1, 1, 0);\r\n\tCenter = new Position(0.64, 0.97, 1, 1);\r\n \r\n photo = new Character(\"\"); \r\n lionText = new TextBlock(\"myText\");\r\n\t\r\n \r\n // and put your script commands into this array\r\n script = [\r\n label, \"start\",\r\n\t\t\r\n\t\tn, \"История начинается прямо здесь, с этой минуты. Приятного прохождения!\",\r\n\t\t\r\n\t\tscene, {image: \"start.png\", position: Center, effect: \"fade\"},\r\n\t\tn, \"Представляют.\",\r\n\t\tn, \"...\",\r\n\t\tscene, \"\",\r\n\t\t\r\n\t\taudio, {src: \"bensound-memories\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\r\n\t\tn, \"— ...\",\r\n\t\tsomeone, \"— В самом начале было ни-че-го.\",\r\n\t\tsomeone, \"— ...ничего кроме тишины и полной темноты, и ведь казалось бы, ничего не может появится, как и до этого...\",\r\n\t\tscene, {image: \"BG1.png\", position: Center},\r\n\t\tsomeone, \"— Но рассеял полную темноту светом Создатель... и это было хорошо.\",\r\n\t\tsomeone, \"— То, что это было хорошо, надо просто принять.\",\r\n\t\tscene, {image: \"BG0.png\", position: Center},\r\n\t\tsomeone, \"— Свет не имел формы, но постепенно начал принимать очертания.\",\r\n\t\tscene, {image: \"BG.png\", position: Center},\r\n\t\tsomeone, \"— Очертания эти изливались в самые своеобразные формы...\",\r\n\t\tsomeone, \"— ...пока наконец не приняли форму четырёх существ, которым было подвластно формировать мир вокруг себя.\",\r\n\t\t\r\n\t\taudio, {src: \"stop\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\r\n\t \r\n\trealist2, {image: \"realist.png\", position: Center, avatar: \"avataragelious.png\"},\r\n\trealist2, \"— ...Так-так.\",\r\n\t\taudio, {src: \"bensound-sweet\", format: [\"mp3\"], action: \"play\"},\r\n\t\trealist2, \"— Ты вообще тут? Может вернемся к нашим баранам?\",\t\r\n\trealist, {image: \"realist.png\", position: leftMiddleSide, avatar: \"avataragelious.png\"},\r\n\toptimist2, {image: \"optimist2.png\", position: rightMiddleSide, avatar: \"avatarami.png\"},\r\n\t\toptimist2, \"— ...Да.\",\r\n\t\toptimist2, \"— Извини, Гелиос.\",\r\n\t\toptimist2, \"— Что-то в ностальгию ударилась…\",\r\n\toptimist2, {image: \"optimist.png\", position: rightMiddleSide},\t\t\r\n\t\tn, \"*Героиня слегка дёрнула плечами*.\",\r\n\t\toptimist2, \"— Вспоминала, зачем мы вообще здесь собрались.\",\r\n\t\toptimist2, \"— А кто такие бараны?\",\r\n\t\tn, \"*Гелиос отмахивается*\",\r\n\t\trealist, \"— ...Не суть важно.\",\r\n\t\trealist, \"— Давайте сосредоточимся.\",\r\n\toptimist2, {image: \"optimist.png\", position: rightMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\tskeptic2,{image: \"skeptic2.png\", position: rightMiddleSide, avatar: \"avatarlu.png\"},\r\n\t\tskeptic2, \"— ...\",\r\n\t\tskeptic2, \"— А где Неос?\",\r\n\t\tskeptic2, \"— Разве она не должна быть с нами?\",\r\n\trealist, {image: \"realist0.png\", position: leftSide},\r\n\tskeptic2,{image: \"empty.png\", position: leftMiddleSide},\r\n\toptimist2, {image: \"empty.png\", position: leftSide},\r\n\t\trealist, \"— Должна. Сейчас.\",\r\n\trealist, {image: \"realist2.png\", position: leftSide, avatar: \"avataragelious.png\"},\t\r\n\t\tn, \"*Гелиос привычно щёлкает пальцами*.\",\r\n\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\t\tn, \"*Издалека появлятся маленькое светило.*\", \r\n\t\tn, \"*Спустя несколько мгновений светило приобретает вполне понятные очертания.*\", \r\n\t\tdreamer2, \"— ... \",\r\n\tdreamer, {image: \"dreamer2.png\", position: Center, avatar: \"avatarneos.png\"},\r\n\t\tdreamer2, \"— Я тут.\",\r\n\t\tdreamer, \"— И мне не нравится, когда меня призывают.\",\r\n\tdreamer, {image: \"dreamer2.png\", position: rightMiddleSide},\t\r\n\toptimist2, {image: \"optimist.png\", position: leftMiddleSide},\t\r\n\t\toptimist2, \"— Неос... Сама понимаешь... Путешествия — потом.\",\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\tskeptic2,{image: \"skeptic.png\", position: Center},\r\n\t\tskeptic2, \"— Решения не ждут.\",\r\n\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\tskeptic2,{image: \"empty.png\", position: rightMiddleSide},\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\t\tlabel, \"oof\",\r\n\t\t\r\n\t\tn, \"— ...\",\r\n\toptimist2, {image: \"optimist.png\", position: Center, avatar: \"avatarami.png\"},\r\n\t\toptimist2, \"— Существам Создателя будет очень сложно в этом пространстве, конечно...\",\r\n\t\toptimist2, \"— Кто вообще в здравом уме ограничивает квинтэссенцию света всего в 3 измерениях!\",\r\n\toptimist2, {image: \"optimist.png\", position: rightSide},\t\r\n\tdreamer, {image: \"dreamer.png\", position: Center},\t\r\n\t\tdreamer, \"— Как там тебя… Ами? это от Amigo?\",\r\n\tdreamer, {image: \"dreamer.png\", position: rightMiddleSide},\t\r\n\t\tdreamer, \"— Я полагаю, всё не просто так.\",\r\n\toptimist2, {image: \"empty.png\", position: rightMiddleSide},\t\r\n\t\tdreamer, \"— Зато их индивидуальные ограничения дают им увлекательные сюжеты для жизни.\",\r\n\t\tdreamer, \"— Только посмотрите, что для них придумал Лу, наш техник вселенной.\",\r\n\t\tdreamer, \"— Они могут совершать действия только вперёд!\",\r\n\tdreamer, {image: \"dreamer3.png\", position: rightMiddleSide},\t\t\r\n\t\tdreamer, \"— Да, Лу?\",\r\n\t\tn, \"— Неос смеётся и дружески толкает плечом Лу.\",\r\n\t\t\r\n\t\r\n\tskeptic,{image: \"skeptic.png\", position: leftSide, avatar: \"avatarlu.png\"},\t\r\n\t\tskeptic, \"— Человеки позже назовут это ‘хроносом’.\",\r\n\t\tskeptic, \"— ...а ещё позже ‘временем’.\",\r\n\tdreamer, {image: \"empty.png\", position: rightMiddleSide},\t\r\n\r\n\tskeptic,{image: \"skeptic3.png\", position: Center},\t\t\t\r\n\t\tskeptic, \"— Всё дело в направлении света. Для меньших существ Создателя невозможно будет воспринимать такое количество света.\",\r\n\t\tskeptic, \"— Поэтому для них условия существования более сжаты.\",\r\n\tdreamer, {image: \"empty.png\", position: leftMiddleSide},\t\t\r\n\tskeptic,{image: \"skeptic.png\", position: rightMiddleSide},\t\r\n\toptimist2, {image: \"optimist.png\", position: leftMiddleSide},\r\n\t\toptimist, \"— Но им всё равно нужны дополнительные условия...\",\r\n\t\t\t\t\r\n\tskeptic,{image: \"skeptic.png\", position: rightSide},\t\r\n\trealist, {image: \"realist.png\", position: Center},\t\r\n\toptimist2, {image: \"empty.png\", position: leftSide},\r\n\t\trealist, \"— Подождите. Я давно хотел вам показать...\",\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\t\r\n\toptimist2,{image: \"empty.png\", position: rightMiddleSide},\r\n\trealist, {image: \"realist2.png\", position: rightMiddleSide},\t\r\n\t\trealist, \"— Для начала нам нужна концепция свободного выбора.\",\r\n\t\trealist, \"— ...с этой концепцией появляется многолинейность в потоке времени для человеков.\",\r\n\t\t\r\n\trealist, {image: \"realist0.png\", position: rightMiddleSide},\t\r\n\tdreamer, {image: \"dreamer.png\", position: leftMiddleSide},\t\r\n\t\tdreamer, \"— То есть, развитие временной спирали больше не предопределено?\",\r\n\trealist, {image: \"realist.png\", position: rightMiddleSide},\t\t\r\n\t\trealist, \"— предопределено, просто к одному и тому же последствию теперь можно прийти разными путями.\",\r\n\t\trealist, \"— правда, человеки назовут это ‘будущим’ и всё равно будут верить в неопределённость.\",\t\r\n\tdreamer, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\tskeptic,{image: \"skeptic.png\", position: leftMiddleSide},\t\r\n\trealist, {image: \"realist0.png\", position: rightSide},\t\r\n\t\tskeptic, \"— Что ещё от них ожидать...\",\r\n\tskeptic,{image: \"skeptic.png\", position: Center},\t\r\n\trealist, {image: \"empty.png\", position: rightSide},\t\r\n\t\tn, \"В умных глазах Лу отражается сомнение.\", \r\n\t\tskeptic, \"— Концепция работает?\",\r\n\tskeptic,{image: \"empty.png\", position: Center},\t\r\n\trealist,{image: \"Head Gelious.png\", position: upperCenter},\r\n\t\r\n label, \"menu0\",\r\n menu, [\r\n\t\t\t\"Концепция работает?\",\r\n\t\t\t\"Да.\", [jump, \"main0\"],\r\n \"Другое да.\", [jump, \"main0\"],\r\n ],\r\n \r\n label, \"main0\",\r\n scene, {image: \"BG10.png\", position: Center},\r\n\t\t\t\t\r\n\trealist, {image: \"realist.png\", position: leftMiddleSide},\t\t\r\n\t\trealist, \"— Как видишь.\",\r\n\trealist, {image: \"realist2.png\", position: leftMiddleSide},\t\r\n\t\trealist, \"— Что насчёт элементов?.\",\r\n\t\t\r\n\trealist, {image: \"realist.png\", position: rightSide},\t\r\n\tskeptic,{image: \"skeptic.png\", position: leftMiddleSide},\t\r\n\t\tskeptic, \"— Вода и огонь, земля и воздух. Кстати, эти элементы между собой неожиданно сгенерировали целую систему механизмов.\",\r\n\t\tskeptic, \"— Живые существа будут называть это Природой.\",\r\n\t\t\r\n\tskeptic,{image: \"skeptic.png\", position: rightMiddleSide},\r\n\tdreamer, {image: \"dreamer.png\", position: leftSide},\t\r\n\t\tdreamer, \"— Невероятно большая...\", \r\n\tdreamer, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\toptimist,{image: \"optimist.png\", position: leftMiddleSide, avatar: \"avatarami.png\"},\r\n\t\toptimist, \"— Это не будет опасно?.\",\r\n\t\t\r\n\tdreamer, {image: \"dreamer.png\", position: Center},\r\n\toptimist,{image: \"empty.png\", position: leftSide},\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\tdreamer, \"— Ха, поверь мне, человеки только и будут мечтать о том, чтобы познать эту систему.\", \r\n\t\tn, \"*Неос вскидывает голову*\",\r\n\t\t\r\n\tdreamer, {image: \"dreamer.png\", position: rightMiddleSide},\t\r\n\t\tdreamer, \"— Природа будет важна для всех живых существ.\",\r\n\t\r\n\toptimist,{image: \"optimist.png\", position: leftMiddleSide},\t\r\n\t\toptimist, \"— Но ведь огонь может их ранить!\",\r\n\t\toptimist, \"— Воздух не пригоден для жизни, вода — вообще яд!\",\r\n\tdreamer, {image: \"empty.png\", position: rightMiddleSide},\t\t\r\n\toptimist,{image: \"optimist.png\", position: leftSide},\t\r\n\trealist, {image: \"empty.png\", position: rightSide},\r\n\t\tn, \"Можно заметить, как Ами нервничает.\", \r\n\t\r\n\toptimist,{image: \"empty.png\", position: leftSide},\t\r\n\tskeptic,{image: \"skeptic.png\", position: Center},\r\n\t\tskeptic, \"— Да, по отдельности эти элементы нестабильны.\",\r\n\t\tskeptic, \"— Но вместе они создают нечто прекрасное.\",\r\n\t\t\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\r\n\tskeptic,{image: \"Head Lu.png\", position: upperCenter},\r\n\t\r\n\t\tlabel, \"menu1\",\r\n menu, [\r\n\t\t\t\"Выбор\",\r\n\t\t\t\"Оставить жизнь без базовых элементов. \", [jump, \"end1\"],\r\n \"Природа\", [jump, \"main1\"],\r\n ],\r\n\t\t\r\n\t\t\t\tlabel, \"end1\",\r\n\t\t\t\tscene, {image: \"BG.png\", position: Center},\r\n\t\t\t\t\r\n\t\t\r\n\t\t\tskeptic,{image: \"skeptic2.png\", position: rightMiddleSide},\r\n\t\t\t\tskeptic, \"— Кхм...\",\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightSide},\t\r\n\t\t\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\t\r\n\t\t\t\tdreamer, \"— Что-то мы запутались.\", \r\n\t\t\t\tn, \"*Неос хмурит брови*\", \r\n\t\t\t\tdreamer, \"— Разве мы не должны были создавать условия для жизни?.\", \r\n\t\t\t\tdreamer, \"— Ами, зачем? Доверься Лу!\", \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\t\t\r\n\t\t\t\taudio, {src: \"bensound-tomorrow\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\t\tn, \"— ...\",\r\n\t\t\t\tn, \"Без материального мира вы не смогли существовать.\",\r\n\t\t\t\tn, \"Пожалуйста, следите внимательнее за тем, что происходит в диалоге.\",\r\n\t\t\t\tn, \"Персонажи часто говорят важные детали, помогающие сделать правильный выбор.\",\r\n\t\t\t\r\n\t\t\t\tlabel, \"menuend1\",\r\n\t\t\t\tmenu, [\r\n\t\t\t\t\t\"Вселенная будет пересоздана. Будьте аккуратны, принимая решения!\",\r\n\t\t\t\t\t\"Переродиться.\", [jump, \"menu1\"],\r\n\t\t\t\t],\r\n\r\n\t\tlabel, \"main1\",\r\n scene, {image: \"BG.png\", position: Center},\r\n\t\taudio, {src: \"bensound-sweet\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\r\n\t\t\r\n\trealist, {image: \"realist2.png\", position: rightMiddleSide},\t\t\r\n\t\trealist, \"— Ну что-ж, вот и решили.\",\r\n\trealist, {image: \"realist.png\", position: rightMiddleSide},\t\t\t\r\n\t\trealist, \"— Предлагаю заодно поселить их на огромных сферах, бесконечно парящих с определённой скоростью в пространстве.\",\r\n\tdreamer, {image: \"dreamer.png\", position: leftSide},\t\r\n\t\tdreamer, \"— Человеков? Гелиос, зачем?\",\r\n\trealist, {image: \"realist2.png\", position: rightMiddleSide},\t\r\n\t\trealist, \"— Концентрировать их в одном месте удобнее, и давать условия для их существования тоже.\",\r\n\tdreamer, {image: \"empty.png\", position: leftSide},\t\r\n\tskeptic, {image: \"skeptic.png\", position: leftMiddleSide},\t\r\n\t\tskeptic, \"— Звучит логично.\",\r\n\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\t\r\n\trealist, {image: \"empty.png\", position: rightMiddleSide},\r\n\t\toptimist, \"— Да, а сверху можно расположить защитный купол от внешних угроз.\",\r\n\tskeptic, {image: \"skeptic.png\", position: leftMiddleSide},\r\n\t\tskeptic, \"— Кстати, геометрически, это не сферы, а шары.\",\r\n\toptimist, {image: \"optimist.png\", position: rightSide},\t\r\n\t\toptimist, \"— Геометрия?\",\r\n\t\tskeptic, \"— Да, я добавил, хотя смысла в этом....\",\r\n\t\tskeptic, \"— Меня будут ненавидеть за это.\",\r\n\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\t\r\n\t\tn, \"*Ами пожимает плечами*\", \r\n\t\toptimist, \" — Ну, если это зачем-то было нужно.\",\r\n\t\t\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\r\n\t\t\r\n\trealist, {image: \"realist0.png\", position: leftMiddleSide},\t\r\n\t\trealist, \"— ...\",\r\n\t\trealist, \"— Ребят, тут вообще есть проблемка...\",\r\n\trealist, {image: \"realist0.png\", position: rightMiddleSide},\t\r\n\tdreamer, {image: \"dreamer.png\", position: leftMiddleSide},\t\r\n\t\tdreamer, \"— Что случилось??\",\r\n\tskeptic, {image: \"skeptic.png\", position: leftSide},\t\r\n\tdreamer, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\tskeptic, \"*шёпотом* — Как всегда, одни проблемы.\",\r\n\tskeptic, {image: \"empty.png\", position: rightMiddleSide},\t\r\n\trealist, {image: \"realist0.png\", position: leftMiddleSide},\t\r\n\t\trealist, \"— Помните ту концепцию времени, которую мы добавили?\",\r\n\t\trealist, \"— ...В общем, из-за неё человеки... как это...\",\r\n\t\trealist, \"— Их материальные тела рассыпаются, и их свету больше негде находиться.\",\r\n\tskeptic, {image: \"skeptic.png\", position:rightMiddleSide},\t\r\n\t\tskeptic, \"*продолжая шёпотом* — Ну я не удивлён, что что-то не работает.\",\r\n\tskeptic,{image: \"empty.png\", position: leftSide},\t\r\n\t\trealist, \"— ...Мы можем что-то придумать?\",\r\n\t\t\r\n\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\t\r\n\trealist, {image: \"realist.png\", position: rightSide},\r\n\t\toptimist, \"— Нам нужен защитный механизм для этого процесса.\",\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\tdreamer, {image: \"dreamer.png\", position: leftMiddleSide},\t\r\n\t\tdreamer, \"— Можем создать концепцию перехода их света от предыдущего объекта к новому.\",\r\n\t\tdreamer, \"— Бесконечное существование!\",\r\n\tdreamer, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\toptimist, {image: \"optimist.png\", position: leftSide},\t\r\n\trealist, {image: \"empty.png\", position: rightSide},\r\n\t\toptimist, \"— Мне кажется, это не разумно.\",\r\n\t\tn, \"*Ами хватается за голову*\", \r\n\t\toptimist, \"— Человеки сойдут с ума пребывать в разных телах навечно...\",\r\n\t\t\r\n\t\toptimist, \"— Пусть лучше их опыт обнуляется.\",\r\n\tdreamer, {image: \"empty.png\", position: rightMiddleSide},\t\r\n\trealist, {image: \"realist3.png\", position: rightMiddleSide},\t\r\n\t\trealist, \"— Да, мы не можем дать им существовать вечно.\",\r\n\t\t\r\n\t\toptimist, \"— Пусть свет стремится из тела человека в новое тело, а цикл между телами будет называться жизнью.\",\r\n\toptimist, {image: \"empty.png\", position: leftSide},\t\r\n\trealist, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\tdreamer, {image: \"dreamer.png\", position: Center},\t\t\r\n\t\tdreamer, \"— Так...\",\r\n\r\n\t\tlabel, \"menu2\",\r\n\t\tdreamer, {image: \"Head Neos.png\", position: upperCenter},\r\n menu, [\r\n\t\t\t\"Неос выбирает\",\r\n\t\t\t\"Оставить переход между объектами.\", [jump, \"end2\"],\r\n \"Послушать Ами и Гелиоса\", [jump, \"main2\"],\r\n ],\r\n\t\t\r\n\t\t\t\tlabel, \"end2\",\r\n\t\t\t\tscene, {image: \"BG10.png\", position: Center},\r\n\t\t\t\taudio, {src: \"bensound-tomorrow\", format: [\"mp3\"], action: \"play\"},\r\n\r\n\t\t\tdreamer, {image: \"dreamer.png\", position: leftMiddleSide},\t\t\r\n\t\t\t\tdreamer, \"— Это не зачем.\", \r\n\t\t\t\tdreamer, \"— Сможем придумать сверх этого другой механизм.\", \r\n\t\t\tskeptic, {image: \"skeptic.png\", position: rightMiddleSide},\t\r\n\t\t\t\tskeptic, \"— Конечно, это то, что нам стоит делать — нагромождать механизмы один на другой!\",\r\n\t\t\tskeptic, {image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\r\n\t\t\t\toptimist, \"— ...Они же сойдут с ума...\",\r\n\t\t\trealist, {image: \"realist0.png\", position: leftMiddleSide},\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\t\trealist, \"*смотрит в будущее* — Хватит. Сейчас мы увидим, что там происходит.\",\r\n\t\t\t\tdreamer, \"— Оу. \",\r\n\t\t\t\toptimist, \"— ...оуу.\",\r\n\t\t\t\tskeptic, \"— А я говорил...\",\r\n\t\t\trealist, {image: \"realist3.png\", position: leftMiddleSide},\t\r\n\t\t\t\trealist, \"— Они решили прекратить существовать...\",\r\n\t\t\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\r\n\t\t\t\tn, \"— ...\",\r\n\t\t\t\tn, \"Человечество не смогло найти реализации себя через бессмертие сознания.\",\r\n\t\t\t\tn, \"Пожалуйста, следите внимательнее за тем, что происходит в диалоге.\",\r\n\t\t\t\tn, \"Персонажи часто говорят важные детали, помогающие сделать правильный выбор.\",\r\n\t\t\t\r\n\t\t\t\tlabel, \"menuend2\", \t\r\n\t\t\t\tmenu, [\r\n\t\t\t\t\t\"Вселенная будет пересоздана. Будьте аккуратны, принимая решения!\",\r\n\t\t\t\t\t\"Переродиться.\", [jump, \"menu2\"],\r\n\t\t\t\t],\r\n\t\t\t\r\n\t\tlabel, \"main2\",\r\n\t\tscene, {image: \"BG10.png\", position: Center},\r\n\t\taudio, {src: \"bensound-sweet\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\r\n\tdreamer, {image: \"dreamer.png\", position: leftMiddleSide},\t\r\n\t\tdreamer, \"— Ну хорошо... \",\r\n\t\tdreamer, \"— Не то, чтобы мне это нравится, но, кажется, так действительно лучше.\",\r\n\tdreamer, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\tskeptic,{image: \"skeptic.png\", position: leftMiddleSide},\r\n\t\tskeptic, \"— ...ого, мы договорились без всяких ссор.\",\r\n\trealist, {image: \"realist.png\", position: rightSide},\t\r\n\t\tn, \"*Гелиос ставит руки в бока, но по нему видно, что он улыбается*\",\r\n\trealist, {image: \"realist2.png\", position: rightMiddleSide},\t\r\n\t\trealist, \"— Ты такой скептик!\",\r\n\t\trealist, \"— ...А ссоры? Что это?\",\r\n\t\t\r\n\t\tskeptic, \"— Так человеки будут называть неспособность услышать друг друга в определённый момент.\",\r\n\t\tskeptic, \"— А ещё я очень устал, мы немного отклоняемся от поставленных задач.\",\r\n\trealist, {image: \"empty.png\", position: rightMiddleSide},\t\r\n\tskeptic,{image: \"skeptic.png\", position: rightMiddleSide},\r\n\tdreamer, {image: \"dreamer.png\", position: leftMiddleSide},\t\t\r\n\t\tdreamer, \"— Ну хватит уже бурчать.\",\r\n\t\tskeptic, \"— Я не бурчу!.\",\r\n\tdreamer, {image: \"empty.png\", position: leftMiddleSide},\t\t\r\n\t\tskeptic, \"— ...\",\r\n\t\tskeptic, \"— Ну и ладно. Я в любом случае собирался поработать над некоторыми деталями отдельно.\",\r\n\t\tskeptic, \"— Всё-таки природа очень комплексная по своей системе.\",\r\n\t\tskeptic, \"— Позовите, если буду нужен.\",\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\t\r\n\t\tn, \"*Лу удаляется в неопределённом напрапвлении*\",\r\n\t\r\n\tdreamer, {image: \"dreamer.png\", position: leftMiddleSide},\t\r\n\t\tdreamer, \"— ...как там человеки говорят… 'ну и лол!'.\",\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\r\n\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\t\r\n\t\toptimist, \"*про себя* — надеюсь он там ничего не сломает своими проработками...\",\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\trealist, {image: \"realist.png\", position: leftMiddleSide},\r\n\t\trealist, \"— Но в чём-то он может и прав. Возможно, нам нужно немного подумать в одиночестве.\",\r\n\tdreamer, {image: \"dreamer.png\", position: rightMiddleSide},\t\r\n\t\tdreamer, \"— Тогда давайте разойдемся. Мне нужно отдохнуть от всего этого.\",\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\t\r\n\trealist, {image: \"realist2.png\", position: leftMiddleSide},\t\r\n\t\tn, \"Гелиос кривит губы в саркатисческой улыбке, показывая иронию.\",\r\n\t\trealist, \"— В таком случае, выбора здесь нет.\",\r\n\t\t\r\n\t\tlabel, \"menu3\",\r\n menu, [\r\n\t\t\t\"Выбор без выбора\",\r\n\t\t\t\"Разойтись ненадолго.\", [jump, \"main3\"],\r\n ],\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\tlabel, \"main3\",\r\n\t\tscene, {image: \"BG.png\", position: Center},\r\n\t\taudio, {src: \"bensound-memories\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\r\n\t\tn, \"— ...\",\r\n\t\tn, \"— Свет всё преломлялся и изменялся, порождая жизнь на своём пути.\",\r\n\t\tn, \"— Механизмы и структуры, разработанные 4 богами, функционировали и помогали жизни адаптироваться.\",\r\n\t\tn, \"— ...но настал момент, когда им снова пришлось собраться.\",\r\n\t\tn, \"— Что-то неладное происходило в мире.\",\r\n\r\n\t\taudio, {src: \"bensound-sweet\", format: [\"mp3\"], action: \"play\"},\r\n\t\tscene, {image: \"BG.png\", position: Center},\r\n\trealist, {image: \"realist.png\", position: leftMiddleSide},\t\r\n\t\tn, \"Гелиос машет рукой издалека.\", \r\n\t\trealist, \" — Ну здравствуй.\",\r\n\t\trealist, \" — Ты тут одна?\",\r\n\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\t\r\n\t\toptimist, \"— ...А мы тут только вдвоём? Где остальные?\",\r\n\t\tn, \"Ами хмурится.\",\r\n\t\toptimist, \"— Особенно Лу меня волнует, негодяй...\",\r\n\trealist, {image: \"realist2.png\", position: leftMiddleSide},\t\r\n\toptimist, {image: \"empty.png\", position: rightMiddleSide},\t\r\n\t\trealist, \"— Ну сейчас.\",\r\n\t\tn, \"*Гелиос привычно щёлкает пальцами*\", \r\n\t\taudio, {src: \"bensound-sweet\", format: [\"mp3\"], action: \"stop\"},\r\n\trealist, {image: \"realist0.png\", position: leftSide},\t\r\n\t\trealist, \"— ...\",\r\n\t\trealist, \"— ......\",\r\n\toptimist, {image: \"optimist.png\", position: rightSide},\t\t\r\n\t\toptimist, \"— .......\",\r\n\t\trealist, \"— ................\",\r\n\t\trealist, \"— В смысле????.\",\r\n\toptimist, {image: \"optimist3.png\", position: rightSide},\t\r\n\t\toptimist, \"— Они... не могут прийти?!\",\r\n\t\tn, \"Гелиос и Ами ошеломлённо смотрят друг на друга.\", \r\n\trealist, {image: \"realist0.png\", position: leftMiddleSide},\t\r\n\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\t\t\r\n\t\trealist, \"— Что вообще могло случиться...\",\r\n\t\trealist, \"— Нужно найти их, пока не случилось что-то действительно ужасное..\",\r\n\t\toptimist, \"— Надеюсь, они наткнулись хотя бы друг на друга... \",\r\n\t\trealist, \"— Вперёд!\",\r\n\r\n\r\n\t\tlabel, \"menu4\",\r\n\t\tmenu, [\r\n\t\t\t\"— Ради всех остальных.\",\r\n\t\t\t\"Отправиться на поиски.\", [jump, \"main4\"],\r\n ],\r\n\r\n\t\tlabel, \"main4\",\r\n\t\tscene, {image: \"BG10.png\", position: Center},\r\n\t\taudio, {src: \"bensound-scifi\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\r\n\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\t\r\n\t\toptimist, \"— ...\",\r\n\t\toptimist, \"— Что делаем?\",\r\n\trealist, {image: \"realist.png\", position: rightMiddleSide},\t\r\n\t\trealist, \"— Так-с.\",\r\n\t\trealist, \"— Из-за того, что скорость света ограничена, у нас получаются отдельные участки космоса, в которые мы не можем попасть сразу.\",\r\n\t\trealist, \"— И это значит, что нам надо искать где-то там.\",\r\n\trealist, {image: \"realist0.png\", position: rightMiddleSide},\t\r\n\t\tn, \"Гелиос берёт Ами за руку и закрывает глаза.\",\r\n\t\trealist, \"— Говори, куда отправимся.\",\r\n\trealist, {image: \"empty.png\", position: rightMiddleSide},\t\t\r\n\toptimist, {image: \"Head Ami.png\", position: upperCenter},\t\r\n\r\n\t\tlabel, \"menu5\",\r\n\t\tmenu, [\r\n\t\t\t\"Выбрать за Ами, куда отправиться.\",\r\n\t\t\t\"1. Большая Медведица I (UMa I dSph).\", [jump, \"end3\"],\r\n\t\t\t\"2. Segue 2 — карликовая сфероидальная галактика.\", [jump, \"end3\"],\r\n\t\t\t\"3. Галактика в Драконе (Draco dSph).\", [jump, \"end3\"],\r\n\t\t\t\"4. Волосы Вероники (Com) — карликовая сфероидальная галактика.\", [jump, \"end3\"],\r\n\t\t\t\"5. Гончие Псы II (CVn II).\", [jump, \"end3\"],\r\n\t\t\t\"6. Большой Пёс (лат. Canis Major) — Искать около Сириуса.\", [jump, \"main5\"],\r\n\t\t\t\"7. Большое Магелланово Облако (Large Magellanic Cloud, LMC).\", [jump, \"end3\"],\r\n\t\t\t\"8. Ма́лое Магелла́ново О́блако (SMC, NGC 292).\", [jump, \"end3\"],\r\n ],\r\n\t\t\r\n\t\tlabel, \"end3\",\r\n\t\tscene, {image: \"BG20.png\", position: Center},\r\n\t\t\r\n\t\tn, \"Здесь никого нет.\",\r\n\t\t\r\n\t\tlabel, \"menuend3\",\r\n\t\tmenu, [\r\n\t\t\t\"— Нужно пойти назад.\",\r\n\t\t\t\"— Вернуться.\", [jump, \"menu5\"],\r\n ],\r\n\t\t\r\n\t\tlabel, \"main5\",\r\n\t\tscene, {image: \"BG.png\", position: Center},\r\n\t\t\t\r\n\t\tdreamer, \"— ...\",\r\n\t\t\r\n\t\trealist, \"— ох...\",\r\n\toptimist, {image: \"optimist.png\", position: leftSide},\r\n\trealist, {image: \"realist3.png\", position: leftMiddleSide},\t\r\n\t\r\n\t\tn, \"Гелиос и Ами находят Неос.\", \r\n\t\t\r\n\tdreamer, {image: \"dreamerdead.png\", position: rightSide},\t\t\r\n\t\tn, \"Её свёт был тусклый, а она сама еле живая.\", \r\n\t\toptimist, \"— Ч-что произошло?\",\r\n\t\trealist, \"— Мда, тут бы никто не смог прийти на встречу...\",\r\n\t\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\tn, \"*Гелиос и Ами помогают Неос прийти в себя*\",\r\n\t\r\n\tdreamer, {image: \"dreamer2.png\", position: rightSide},\t\r\n\t\tdreamer, \"— угхх...\",\r\n\t\tdreamer, \"— ...вот это жесть, конечно...\",\r\n\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\r\n\trealist, {image: \"realist0.png\", position: leftSide},\t\t\r\n\t\trealist, \"— Что случилось?\",\r\n\t\toptimist, \"— Ты в порядке?\",\r\n\t\t\r\n\tdreamer, {image: \"dreamer2.png\", position: rightMiddleSide},\t\t\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\r\n\t\tdreamer, \"— Теперь вроде бы да.\",\r\n\t\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\r\n\trealist, {image: \"realist.png\", position: leftSide},\t\r\n\t\t\r\n\t\t\r\n\t\toptimist, \"— Кто сделал это с тобой?\",\r\n\tdreamer, {image: \"dreamer2.png\", position: rightMiddleSide},\t\t\t\r\n\t\tdreamer, \"— кхх… скорее что, а не кто. Это очень странно, но... \",\r\n\t\tdreamer, \"— Это было что-то невероятно ужасное и неприятное\",\r\n\t\tdreamer, \"— Как будто оно поглощает свет\",\r\n\t\t\r\n\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\toptimist, {image: \"optimist.png\", position: leftSide},\t\r\n\t\toptimist, \"*боязливо*— Ч-что... Что оно хотело?\",\r\n\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\t\t\r\n\t\tdreamer, \"— Кушать оно хотело!\",\r\n\t\tn, \"*Неос немного пугает Ами*\",\r\n\t\tn, \"*Ами визжит*\",\r\n\t\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\r\n\trealist, {image: \"realist.png\", position: rightMiddleSide},\t\r\n\t\tn, \"*Гелиос улыбается*\",\r\n\t\trealist, \" — Спокойнее. Ты снова светишь, и это главное.\",\r\n\tdreamer, {image: \"dreamer2.png\", position: rightSide},\t\t\r\n\t\tdreamer, \"— Да нужно найти это нечто и разобраться!\",\r\n\toptimist, {image: \"optimist.png\", position: leftSide},\t\r\n\t\toptimist, \"— Ааа...! Я не хочу… я...\",\r\n\t\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\t\tlabel, \"menu6\",\r\n\t\tscene, {image: \"BG.png\", position: Center},\r\n\t\taudio, {src: \"bensound-scifi\", format: [\"mp3\"], action: \"play\"},\r\n\t\tskeptic, {image: \"skeptic2.png\", position: Center},\r\n\t\tskeptic, \"— ...\",\r\n\t\tskeptic, {image: \"Head Lu.png\", position: upperCenter},\r\n\t\tmenu, [\r\n\t\t\t\"Сказать фразу за Лу:\",\r\n\t\t\t\"Дослушать | Не хотелось бы вас перебивать, но...\", [jump, \"main6\"],\r\n\t\t\t\"Перебить | Короче,смотрите...\", [jump, \"end4\"],\r\n ],\r\n\r\n\t\t\t\tlabel, \"end4\",\r\n\t\t\t\tscene, {image: \"BG10.png\", position: Center},\r\n\t\t\r\n\t\t\tskeptic,{image: \"skeptic2.png\", position: leftMiddleSide},\r\n\t\t\t\tskeptic, \"— Короче, смотрите...\",\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\t\r\n\t\t\trealist, {image: \"realist3.png\", position: rightMiddleSide},\r\n\t\t\t\trealist, \"— Ты где вообще был? Почему не отзывался?\",\r\n\t\t\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\t\r\n\t\t\t\toptimist, \"— Совсем уже...\",\r\n\t\t\tdreamer, {image: \"dreamer2.png\", position: rightSide},\t\r\n\t\t\t\tdreamer, \"— Лу тоже пропадал? Пока меня пытались съесть заживо?\",\r\n\t\t\t\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\t\r\n\t\t\tskeptic,{image: \"skeptic.png\", position: leftMiddleSide},\r\n\t\t\t\tskeptic, \"— Ребят, у меня....\",\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\t\r\n\t\t\tdreamer, {image: \"dreamer2.png\", position: rightSide},\t\r\n\t\t\t\tdreamer, \"*перебивает* — Лу, меня тут чуть не стало, а ты ходишь непонятно где.\",\r\n\t\t\t\tdreamer, \"— Просто невыносимо!\",\r\n\t\t\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\t\r\n\t\t\t\toptimist, \"— Тебе всё равно на нас, да?\",\r\n\t\t\trealist, {image: \"realist3.png\", position: rightMiddleSide},\t\r\n\t\t\t\trealist, \"— Лу, это всё нехорошо, ты же понимаешь..\",\r\n\t\t\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\t\t\r\n\t\t\t\r\n\t\t\tskeptic,{image: \"skeptic.png\", position: leftMiddleSide},\r\n\t\t\t\tskeptic, \"— Да что-ж вы... я... кхгшш… хфф...\",\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\t\r\n\t\t\t\taudio, {src: \"bensound-tomorrow\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\tscene, {image: \"BGDark.png\", position: Center},\t\r\n\t\t\t\tdark, \"*приглушённо* — шшшш....\",\r\n\t\t\t\tdark, \"*приглушённо* — ......\",\r\n\t\t\r\n\t\t\t\tn, \"— ...\",\r\n\t\t\t\tn, \"— Пока вы не могли услышать друг друга, к вам незаметно подкралась Тьма и поглотила вас.\",\r\n\t\t\r\n\t\t\t\tlabel, \"menuend4\",\r\n\t\t\t\tmenu, [\r\n\t\t\t\t\t\"— Вселенная будет пересоздана. Будьте аккуратны, принимая решения!\",\r\n\t\t\t\t\t\"Переродиться.\", [jump, \"menu6\"],\r\n\t\t\t\t],\r\n\r\n\t\tlabel, \"main6\",\r\n\t\tscene, {image: \"BG10.png\", position: Center},\r\n\t\t\r\n\tskeptic,{image: \"skeptic.png\", position: leftSide},\t\r\n\t\tskeptic, \"— Не хотелось бы вас перебивать, но….\",\r\n\trealist, {image: \"realist3.png\", position: rightMiddleSide},\t\r\n\t\trealist, \"— Лу? Где ты был?\",\r\n\tskeptic,{image: \"skeptic2.png\", position: leftMiddleSide},\t\t\r\n\t\tskeptic, \"— Я был около Магелланового скопления. Послушайте!\",\r\n\t\tskeptic, \"— Я встретил там существ, которых ранее не видел никогда.\",\r\n\t\tskeptic, \"— В них просто нет никакого света!\",\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\t\r\n\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\tdreamer, {image: \"dreamer2.png\", position: rightMiddleSide},\t\r\n\t\tdreamer, \"— Ага… Вот что пыталось меня сожрать.\",\r\n\trealist, {image: \"realist0.png\", position: rightSide},\r\n\t\trealist, \"— Мы как раз наткнулись на такое, буквально только что!\",\r\n\t\r\n\tskeptic,{image: \"empty.png\", position: leftMiddleSide},\t\r\n\t\tskeptic, \"— Невообразимо просто, как такое вообще может быть...\",\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\r\n\t\toptimist, \"— А главное, что нам делать?\",\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\tdreamer, {image: \"dreamer2.png\", position: rightMiddleSide},\t\r\n\t\tn, \"*Неос сжимает кулаки*.\", \r\n\t\tdreamer, \"Мы должны противостоять.\",\r\n\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\r\n\t\toptimist, \"— ...Но как?\",\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\t\t\r\n\trealist, {image: \"realist3.png\", position: leftMiddleSide},\r\n\t\trealist, \"— Тьма — это отсутствие Света. Мы должны рассеять её.\",\r\n\tskeptic,{image: \"skeptic2.png\", position: rightMiddleSide},\t\r\n\t\tskeptic, \"— Это какая-то странная игра Создателя, внутри которой мы оказались.\",\r\n\t\tskeptic, \"— Нам теперь ничего не остается.\",\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\t\r\n\r\n\t\trealist, \"— Готовимся к битве...\",\r\n\r\n\trealist,{image: \"Head Gelious.png\", position: upperCenter},\t\r\n\r\n\t\tlabel, \"menu7\",\r\n\t\tmenu, [\r\n\t\t\t\"— \",\r\n\t\t\t\"Подготовиться к битве.\", [jump, \"main7\"],\r\n\t\t],\r\n\r\n\t\tlabel, \"main7\",\r\n\t\taudio, {src: \"bensound-epicbattle\", format: [\"mp3\"], action: \"play\"},\r\n\t\tscene, {image: \"BG.png\", position: Center},\r\n\t\t\r\n\t\tn, \"Наши герои собрались вместе, собирая свои силы.\", \r\n\t\tn, \"Подготовка шла полным ходом.\", \r\n\t\tn, \"Всё, что нужно сделать — это принять правильную последовательность шагов против действий врага.\", \r\n\t\tn, \"И только умея слушать других, умея вести диалог, можно противостоять Вселенской Тьме.\",\r\n\t\t\r\n\trealist, {image: \"realist0.png\", position: leftMiddleSide},\r\n\t\trealist, \"— ...Все помнят план?\",\r\n\t\trealist, \"— Я ставлю щит под атаку Тьмы, Неос меня поддерживает, Лу атакует Светом вместе с Ами.\",\r\n\tskeptic,{image: \"skeptic.png\", position: rightMiddleSide},\t\r\n\t\tskeptic, \"— Да.. да, мы помним.\",\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\t\t\r\n\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\t\r\n\t\tdreamer, \"— Чшш...\",\r\n\tskeptic,{image: \"skeptic2.png\", position: rightMiddleSide},\t\r\n\t\tskeptic, \"— М?\",\r\n\t\tdreamer, \"— Оно приближается...\",\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\t\t\r\n\t\tsomeone, \" — ...\",\r\n\tdark, {image: \"dark.png\", position: upperCenter},\t\r\n\t\tdark, \" — шшшшфффф......\",\r\n\tdark, {image: \"empty.png\", position: upperCenter},\t\t\r\n\trealist, {image: \"realist3.png\", position: leftSide},\t\r\n\t\tn, \"*Гелиос глубоко вдыхает и выдыхает*\",\r\n\t\tn, \"*...затем резко щёлкает пальцами*\",\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\tskeptic,{image: \"skeptic2.png\", position: rightSide},\t\r\n\t\trealist, \"— Создаю концепцию защиты!\",\r\n\t\tn, \"*Лу вскидывает руки*\",\r\n\t\tskeptic, \"— Беру на себя оптику преломлений.\",\r\n\tskeptic,{image: \"empty.png\", position: leftMiddleSide},\t\r\n\t\t\r\n\trealist, {image: \"realist0.png\", position: leftMiddleSide},\t\r\n\t\trealist, \"— Начинаем!\",\t\r\n\r\n\trealist, {image: \"empty.png\", position: leftMiddleSide},\r\n\r\n\r\n\t\t\r\n\t\tlabel, \"mainBattleStart\",\r\n\t\t\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Световой щит Гелиоса\",\r\n\t\t\t\t\"Поставить световой щит справа\", [jump, \"mainBattleRight\"],\r\n\t\t\t\t\"Поставить световой щит слева\", [jump, \"mainBattleLeft\"],\r\n\t\t\t],\r\n\r\n\t\tlabel, \"mainBattleRight\",\r\n\t\t\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\t\r\n\t\t\trealist, \"— Атакуем слева.\",\r\n\t\t\tskeptic, \"— Направляю луч света!\",\r\n\t\t\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Оптика световых лучей\",\r\n\t\t\t\t\"Направить налево\", [jump, \"mainBattleRight2\"],\r\n\t\t\t\t\"Направить направо\", [jump, \"mainBattleLeft2\"],\r\n\t\t\t],\r\n\t\t\r\n\t\tlabel, \"mainBattleLeft\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\t\t\t\r\n\t\t\trealist, \"— Атакуем справа.\",\r\n\t\t\tskeptic, \"— Направляю этот сверх-тяжелый луч света...\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Оптика световых лучей\",\r\n\t\t\t\t\"Направить налево\", [jump, \"mainBattleLeft2\"],\r\n\t\t\t\t\"Направить направо\", [jump, \"mainBattleRight2\"],\r\n\t\t\t],\r\n\t\t\r\n\t\tlabel, \"mainBattleLeft2\",\r\n\t\t\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\t\toptimist, \"— Ты целишься не туда!\",\r\n\t\t\tskeptic, \"— Ты не видишь, я пытаюсь!\",\r\n\t\t\tdreamer, \"— Ну же, давай...\", \r\n\t\t\trealist, \"— Приготовьтесь, теперь будет сложно!\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Выставить новую защиту\",\r\n\t\t\t\t\"Поставить световой щит справа\", [jump, \"mainBattleLeft3\"],\r\n\t\t\t\t\"Поставить световой щит слева\", [jump, \"mainBattleLeftLeft3\"],\r\n\t\t\t],\r\n\t\t\r\n\t\t\r\n\t\tlabel, \"mainBattleRight2\",\r\n\t\t\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\r\n\t\t\trealist, \"— Приготовьтесь, теперь будет сложно!\",\r\n\t\t\tskeptic, \"— Ами, атакуй сверху!\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\t\"— Ами, давай!\",\r\n\t\t\t\t\"Атаковать сверху\", [jump, \"mainBattleSkip\"],\r\n\t\t\t],\r\n\r\n\t\t\r\n\t\tlabel, \"mainBattleSkip\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\t\t\trealist, {image: \"realist.png\", position: leftMiddleSide},\r\n\t\t\trealist, \"— Аккуратнее!\",\r\n\t\t\tskeptic,{image: \"skeptic.png\", position: rightMiddleSide},\t\r\n\t\t\tskeptic, \"— Сам аккуратнее!\",\r\n\t\t\tskeptic, \"— Давай выбирай, что делать дальше!\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Сделать выбор за Гелиоса:\",\r\n\t\t\t\t\"Новая атака\", [jump, \"mainBattleRight3\"],\r\n\t\t\t\t\"Укрепить позиции\", [jump, \"mainBattleRight4\"],\r\n\t\t\t],\r\n\t\t\r\n\t\tlabel, \"mainBattleLeft3\", \r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\t\t\trealist, \"— Атакуй снова, теперь с нужной стороны!\",\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Оптика световых лучей — вторая попытка\",\r\n\t\t\t\t\"Направить налево\", [jump, \"mainBattleRight3\"],\r\n\t\t\t\t\"Направить направо\", [jump, \"mainBattleLeft4\"],\r\n\t\t\t],\r\n\r\n\t\tlabel, \"mainBattleLeftLeft3\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\t\t\trealist, {image: \"realist.png\", position: leftMiddleSide},\r\n\t\t\trealist, \"— Атакуй снова, теперь с нужной стороны!\",\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Оптика световых лучей — вторая попытка\",\r\n\t\t\t\t\"Направить налево\", [jump, \"mainBattleLeft4\"],\r\n\t\t\t\t\"Направить направо\", [jump, \"mainBattleRight3\"],\r\n\t\t\t],\r\n\t\t\t\r\n\t\t\r\n\t\tlabel, \"mainBattleRight3\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\tdreamer, {image: \"dreamer.png\", position: leftMiddleSide},\r\n\t\t\tdreamer, \"— Так, что теперь?\", \r\n\t\t\tskeptic,{image: \"skeptic.png\", position: rightMiddleSide},\r\n\t\t\tskeptic, \"— Новая атака, нужно только выбрать правильное направление..\",\r\n\t\t\t\r\n\t\t\tskeptic, {image: \"skeptic.png\", position: rightMiddleSide},\r\n\t\t\tskeptic, \"— А вот теперь будет по-настоящему сложно...\",\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"— Скорее решай!\",\r\n\t\t\t\t\"Атака сверху\", [jump, \"mainBattleLeftLeft4\"],\r\n\t\t\t\t\"Атака снизу\", [jump, \"mainBattleLeftLeft4\"],\r\n\t\t\t\t\"Атака слева\", [jump, \"mainBattleLeftLeft4\"],\r\n\t\t\t\t\"Атака справа\", [jump, \"mainBattleRight4\"],\r\n\t\t\t],\r\n\t\t\r\n\t\tlabel, \"mainBattleRight4\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\t\tdreamer, {image: \"dreamer.png\", position: leftMiddleSide},\r\n\t\t\tdreamer, \"— Осталось немного.\", \r\n\t\t\tdreamer, \"— Дайте мне атаковать!\", \r\n\t\t\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\r\n\t\t\toptimist, \"— Неос, нет, ты нужна мне здесь!\",\r\n\t\t\toptimist, \"— Лучше дайте мне поставить щит!\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Командная работа — ключ к победе.\",\r\n\t\t\t\t\"Перестроить всех стратегически по кругу \", [jump, \"mainBattleRight5\"],\r\n\t\t\t\t\"Выпустить Неос вперёд\", [jump, \"mainBattleLeft5\"],\r\n\t\t\t\t\"Перестроить Ами в авангард\", [jump, \"mainBattleLeftLeft4\"],\r\n\t\t\t],\r\n\t\t\r\n\t\tlabel, \"mainBattleRight5\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\t\trealist, {image: \"realist2.png\", position: Center},\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Решение на миллион.\",\r\n\t\t\t\t\"Непредсказуемая атака | Серия резких ударов светом\", [jump, \"mainBattleLeft7\"],\r\n\t\t\t\t\"Совместная атака | Концентрация света на Тьме\", [jump, \"mainBattleRight6\"],\r\n\t\t\t\t\"Защита | Укрепить позиции против Тьмы\", [jump, \"mainBattleLeft5\"],\r\n\t\t\t],\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tlabel, \"mainBattleLeftLeft4\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trealist, {image: \"realist3.png\", position: leftMiddleSide},\r\n\t\t\trealist, \"— Нет, мы не угадали. Тьма парировала нашим действиям.\",\r\n\t\t\trealist, \"— ...\",\r\n\t\t\trealist, \"— Всё очень плохо...\",\r\n\t\t\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\r\n\t\t\toptimist, \"— Теперь что?\",\r\n\t\t\tskeptic,{image: \"skeptic.png\", position: leftSide},\r\n\t\t\tskeptic, \" — Теперь погибель наша, вот что...\",\r\n\t\t\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\t\r\n\t\t\tdreamer, {image: \"dreamer.png\", position: rightSide},\r\n\t\t\tdreamer, \"— Эта битва ещё не проиграна, соберитесь!\", \r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Быстрое решение\",\r\n\t\t\t\t\"Исправить ошибку | Переместиться назад во времени\", [jump, \"mainBattleLeft6\"],\r\n\t\t\t\t\"Убежать | Переместиться на пару парсек от места битвы\", [jump, \"mainBattleLeft6\"],\r\n\t\t\t\t\"Командное действие | Выстроить щиты и подготовиться к атаке\", [jump, \"mainBattleLeft5\"],\r\n\t\t\t],\r\n\t\t\r\n\t\tlabel, \"mainBattleLeft4\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\t\r\n\t\t\trealist, {image: \"realist3.png\", position: leftMiddleSide},\r\n\t\t\trealist, \"— Да как же так... Мы не можем защищаться и атаковать с одной и той же стороны!\",\r\n\t\t\trealist, \"— Перед атакой всегда должна быть защита.\",\r\n\t\t\t\r\n\t\t\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\r\n\t\t\toptimist, \"— Блин...\",\r\n\t\t\toptimist, \"— Какая там обстановка?\",\r\n\t\t\trealist, \"— ...\",\r\n\t\t\trealist, \"— Всё очень плохо...\",\r\n\t\t\toptimist, \"— Теперь что?\",\r\n\t\t\tskeptic,{image: \"skeptic.png\", position: leftSide},\r\n\t\t\tskeptic, \" — Теперь погибель наша, вот что...\",\r\n\t\t\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\r\n\t\t\tdreamer, \"— Эта битва ещё не проиграна, соберитесь!\", \r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Быстрое решение\",\r\n\t\t\t\t\"Исправить ошибку | Переместиться назад во времени\", [jump, \"mainBattleLeft6\"],\r\n\t\t\t\t\"Убежать | Переместиться на пару парсек от места битвы\", [jump, \"mainBattleLeft6\"],\r\n\t\t\t\t\"Командное действие | Выстроить щиты и подготовиться к атаке\", [jump, \"mainBattleLeft5\"],\r\n\t\t\t],\r\n\t\t\t\r\n\t\t\r\n\t\tlabel, \"mainBattleLeft5\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\t\r\n\t\t\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\r\n\t\t\toptimist, \"— Кажется, получается!\",\r\n\t\t\toptimist, \"— Нужно перегруппироваться и атаковать снова!\",\r\n\t\t\tdreamer, {image: \"dreamer.png\", position: rightMiddleSide},\r\n\t\t\tdreamer, \"— Вперёд!\", \r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Последний шанс\",\r\n\t\t\t\t\"Командная Атака| 4 мощные атаки каждого героя\", [jump, \"mainBattleRightRight4\"],\r\n\t\t\t\t\"Индивидуальная атака| 4 разных приёма героев для победы\", [jump, \"mainBattleLeft7\"],\t\r\n\t\t\t\t\"Атака + Защита| Ами и Гелиос ставят щиты, Неос и Лу атакуют\", [jump, \"mainBattleWellEnd\"],\t\t\t\r\n\t\t\t],\r\n\t\t\t\r\n\t\tlabel, \"mainBattleRightRight4\", \r\n\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\tscene, {image: \"battle.png\", position: Center},\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Нет поражения хуже.\",\r\n\t\t\t\t\"Индивидуальная защита| Световые щиты для каждого героя\", [jump, \"mainBattleLeft7\"],\r\n\t\t\t\t\"Командная защита| Командный световой щит\", [jump, \"mainBattleWellEnd\"],\r\n\t\t\t],\r\n\r\n\t\t\r\n\t\tlabel, \"mainBattleLeft6\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\t\t\t\tscene, \"\",\r\n\t\t\t\t\r\n\t\t\tskeptic,{image: \"skeptic.png\", position: leftMiddleSide},\r\n\t\t\t\tskeptic, \"— \",\r\n\t\t\t\taudio, {src: \"bensound-tomorrow\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\t\tdark, \"*приглушённо* — шшшш....\",\r\n\t\t\t\tdark, \" ......\",\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\t\r\n\t\t\t\tn, \"— ...\",\r\n\t\t\t\tn, \"— Как известно, убегать от проблем никогда не было хорошим решением..\",\r\n\t\t\t\tphoto, {image: \"1-1.png\", position: upperCenter},\r\n\t\t\t\tn, \"— Вам пришел конец.\",\r\n\t\t\t\tn, \"— Вы прошли игру на 1/3 звёзд.\",\r\n\t\t\t\t\r\n\t\t\t\tmenu, [\r\n\t\t\t\t\t\"Better Luck Next Time.\",\r\n\t\t\t\t\t\"Перейти в конец.\", [jump, \"lastlabel\"],\r\n\t\t\t\t],\r\n\t\t\r\n\t\tlabel, \"mainBattleLeft7\",\r\n\t\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\r\n\t\t\t\tscene, \"\",\r\n\t\t\t\taudio, {src: \"bensound-tomorrow\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\t\t\r\n\t\t\t\tn, \"— ...\",\r\n\t\t\t\tn, \"— Недоговорившись о своих действиях, каждый сделал какое-то действие, которое помешало другому. \",\r\n\t\t\t\tn, \"— Замешкавшись, вы потеряли контроль над светом, и Тьма этим воспользовалась.\",\r\n\t\t\tphoto, {image: \"1-1.png\", position: upperCenter},\r\n\t\t\t\tn, \"— Вам пришел конец.\",\r\n\t\t\t\tn, \"— Вы прошли игру на 1/3 звёзд.\",\r\n\t\t\r\n\t\t\t\tmenu, [\r\n\t\t\t\t\t\"Ну может в следующий раз.\",\r\n\t\t\t\t\t\"Перейти в конец.\", [jump, \"lastlabel\"],\r\n\t\t\t\t],\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tlabel, \"mainBattleWellEnd\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\t\taudio, {src: \"piano\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\t\r\n\t\t\tn, \"...\", \r\n\t\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\t\r\n\t\t\tdreamer, \"— ...Оно отступает.\",\r\n\t\toptimist, {image: \"optimist.png\", position: leftSide},\t\r\n\t\t\toptimist, \"— ...кажется, да!\",\r\n\t\tskeptic,{image: \"skeptic2.png\", position: rightMiddleSide},\r\n\t\tdreamer, {image: \"empty.png\", position: rightSide},\r\n\t\t\tskeptic, \"— Существовать в одном мире с этой тварью стало как-то мрачновато.\",\r\n\t\t\tskeptic, \"— Откуда оно вообщё взялось, и зачем?\",\r\n\t\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\t\r\n\t\t\toptimist, \"— Вот бы мы могли призвать Создателя и понять, зачем...\",\r\n\t\t\t\r\n\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\t\r\n\t\trealist, {image: \"realist4.png\", position: leftMiddleSide},\t\r\n\t\t\trealist, \"— Предлагаю узнать прямо сейчас.\",\r\n\t\t\tn, \"Гелиос складывает руки в молитвенной позе.\",\r\n\t\t\tn, \"Яркий свет отражался сквозь его полу-закрытые глаза.\",\r\n\t\t\tn, \"Гелиос засиял.\",\r\n\t\t\t\r\n\t\tlabel, \"wellEndingX\",\r\n\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Призвать Создателя.\",\r\n\t\t\t\t\"Прочитать молитву.\", [jump, \"nothingHappened\"],\r\n\t\t\t],\r\n\t\t\r\n\t\t\r\n\t\tlabel, \"nothingHappened\",\r\n\t\t\r\n\t\t\r\n\t\t\taudio, {src: \"piano\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\tn, \"...\", \r\n\t\t\tn, \"....\",\r\n\t\t\tn, \".....\",\r\n\t\t\tn, \"Ничего не произошло\",\r\n\t\t\t\r\n\t\trealist, {image: \"realist0.png\", position: leftMiddleSide},\t\t\r\n\t\t\trealist, \"— Мда.\",\r\n\t\t\trealist, \"— Ладно, в любом случае...\",\r\n\t\t\trealist, \"— Не расслабляйтесь.\",\r\n\t\t\trealist, \"— Нам ещё предстоит сражаться с этим, в любой момент.\",\r\n\t\t\trealist, \"— Создатель говорил, у него всегда есть план.\",\r\n\t\t\trealist, \"— И мы должны ему следовать.\",\r\n\t\t\r\n\t\trealist, {image: \"Head Gelious.png\", position: upperCenter},\r\n\t\t\r\n\t\tlabel, \"wellEnding0\",\r\n\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Выбрать за Гелиоса.\",\r\n\t\t\t\t\"Поверить в значимость плана Создателя.\", [jump, \"WellEnding1\"],\r\n\t\t\t\t\"Это всё бред.\", [jump, \"WellEnding2\"],\r\n\t\t\t],\r\n\t\t\r\n\t\tlabel, \"WellEnding1\",\r\n\t\t\r\n\t\trealist, {image: \"realist.png\", position: leftMiddleSide},\t\t\r\n\t\t\trealist, \"— Всегда есть план...\",\r\n\t\tskeptic,{image: \"skeptic2.png\", position: rightMiddleSide},\t\r\n\t\t\tskeptic, \"— Будешь слепо верить каким-то словам?\",\r\n\t\t\tskeptic, \"— Я устал от всей этой лжи.\",\r\n\t\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\t\r\n\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\tdreamer, \"— Не надо, Лу..\",\r\n\t\t\r\n\t\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\trealist, {image: \"realist0.png\", position: leftMiddleSide},\t\t\r\n\t\t\trealist, \"— В любом случае.\",\r\n\t\t\trealist, \"— Мы ничего не можем поделать, кроме как подготовиться к следующей битве.\",\r\n\t\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\t\r\n\t\t\toptimist, \"— ...получается, что так.\",\r\n\t\toptimist, {image: \"empty.png\", position: rightMiddleSide},\r\n\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\t\r\n\t\tskeptic,{image: \"skeptic.png\", position: leftMiddleSide},\r\n\t\t\tskeptic, \"— Как хотите.\",\r\n\t\t\tskeptic, \"— В таком случае я лучше подготовлюсь в одиночку.\",\r\n\t\t\tskeptic, \"— Я уверен, что если мы возможно сможем выстоять против этого существа.\",\r\n\t\t\tskeptic, \"— То люди точно не смогут.\",\r\n\t\tskeptic,{image: \"skeptic3.png\", position: rightMiddleSide},\t\r\n\t\t\tskeptic, \"— Я отправляюсь на ближайшую заселенную ими планету.\",\r\n\t\t\tskeptic, \"— Она недалеко, Млечный Путь.\",\r\n\t\t\tskeptic, \"— Вы знаете, где меня искать.\",\r\n\t\toptimist, {image: \"optimist2.png\", position: leftMiddleSide},\t\r\n\t\t\toptimist, \"— Подожди!\",\r\n\t\t\toptimist, \"— Я пойду с тобой.\",\r\n\t\t\toptimist, \"— Я не выдержу в одиночестве открытого пространства.\",\r\n\t\t\t\r\n\t\t\t\r\n\t\trealist, {image: \"realist.png\", position: Center},\t\r\n\t\t\trealist, \"— Ну может тогда и ты, Неос, пойдешь с ними?\",\r\n\t\t\r\n\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\r\n\t\t\tdreamer, \"— Не-е...\",\r\n\t\t\tdreamer, \"— Мне с вами не по пути.\",\r\n\t\t\tdreamer, \"— Слишком много вопросов к одной занимательной персоне...\",\r\n\t\t\tdreamer, \"— Я лучше погибну, но найду Создателя.\",\r\n\t\t\tn, \"*Неос скрипит зубами*\",\r\n\t\t\tdreamer, \"— Он ответит за всё...\",\r\n\t\t\t\r\n\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\trealist, {image: \"realist.png\", position: Center},\t\r\n\t\t\trealist, \"— Что-ж...\",\r\n\t\t\trealist, \"— Тогда удачи вам всем в пути.\",\r\n\t\t\trealist, \"— Мне было счастьем быть с вами...\",\r\n\t\t\t\r\n\t\tdreamer, {image: \"dreamer.png\", position: rightSide},\r\n\t\t\tdreamer, \"— А что будет с тобой, Гелиос?\",\t\r\n\t\t\r\n\t\trealist, {image: \"realist2.png\", position: Center},\t\r\n\t\t\tn, \"Гелиос многозначительно улыбнулся самой грустной улыбкой, какая вообще может существовать.\",\r\n\t\t\trealist, \"— Увидишь.\",\r\n\t\t\r\n\t\t\tscene, \"\",\r\n\t\t\t\r\n\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\t\r\n\t\t\r\n\t\t\tsomeone2, \"— ...\",\r\n\t\t\tsomeone2, \"— Герои разбрелись в разные стороны.\",\r\n\t\t\tsomeone2, \"— Теперь их путь — долгий и полный скорби.\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"luandami1.png\", position: Center},\r\n\t\t\t\r\n\t\t\tsomeone2, \"— Ами с Лу спустятся девой и мужем на Землю утренней звездой.\",\r\n\t\t\tsomeone2, \"— Ами разделит свой свет на крылатых человеко-подобных существ.\",\r\n\t \t\tscene, {image: \"luandami2.png\", position: Center},\r\n\t\t\tsomeone2, \"— Чтобы контролировать и оберегать жизнь людей.\",\r\n\t\t\t\r\n\t\t\tsomeone2, \"— Лу же взял на себя обязанности после смерти.\",\r\n\t\t\tsomeone2, \"— Он присматривает за смертными в своём огненном царстве.\",\r\n\t\t\tsomeone2, \"...\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"neos1.png\", position: Center},\r\n\t\t\t\r\n\t\t\tsomeone2, \"— Неос была с трудным характером.\",\r\n\t\t\tsomeone2, \"— Но она просто хочет понять, что не так...\",\r\n\t \t\tscene, {image: \"neos2.png\", position: Center},\r\n\t\t\tsomeone2, \"— Отчаявшись найти Создателя в одной вселенной, она отправилась в другие.\",\r\n\t\t\tsomeone2, \"— И теперь люди гадают, действительно ли работает теория мультивселенных.\",\r\n\t\t\tsomeone2, \"...\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"gelious1.png\", position: Center},\r\n\t\t\t\r\n\t\t\tsomeone2, \"— Гелиос же решился на очень отважный поступок.\",\r\n\t\t\tsomeone2, \"— Пытаясь защитить живые существа против Тьмы, он понял, насколько мало Света вокруг...\",\r\n\t \t\tscene, {image: \"gelious2.png\", position: Center},\r\n\t\t\tsomeone2, \"— И он сам стал этим светом, обернувшись в яркий шар света — Солнце.\",\r\n\t\t\tsomeone2, \"— Испуская свет в разные стороны, Гелиос освещает вселенную...\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t \r\n\t\t\tsomeone2, \"— ...\",\r\n\t\t\tsomeone2, \"— Герои разбрелись в разные стороны, но Тьма не дремлет.\",\r\n\t\t\tsomeone2, \"— Героям удалось отпугнуть её, но она всё ещё существует.\",\r\n\t\t\tsomeone2, \"— И существует она в их сердцах.\",\r\n\t\t\tsomeone2, \"— И пускай они разошлись своими путями, им предстоит ещё встретиться с Тьмой прямо у себя под носом.\",\r\n\t\t\t\r\n\t\t\tsomeone2, \"— ...\",\r\n\t\t\tcreator, \"— Ведь это я их такими создал.\",\r\n\t\t\tcreator, \"— Именно Тьма внутри наших сердец мешает нам услышать других.\",\r\n\t\t\tcreator, \"— Увидеть наши светлые души...\",\r\n\t\t\tcreator, \"— Понять и принять.\",\r\n\t\t\t\r\n\t\t\tcreator, \"— Теперь герои заняты — присматривают за Вами, людьми.\",\r\n\t\t\tcreator, \"— Но Вселенская Тьма всё ещё рядом.\",\r\n\t\t\tcreator, \"— 2020 по Григорианскому календарю год может стать губительным.\",\r\n\t\t\tcreator, \"— Удачи вам всем.\",\r\n\t\t\t\r\n\t\t\tphoto, {image: \"2-2.png\", position: upperCenter},\r\n\t\t\tn, \"— Вы прошли игру на 2/3 звёзд.\",\r\n\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Частичная победа.\",\r\n\t\t\t\t\"Перейти в конец.\", [jump, \"lastlabel\"],\r\n\t\t\t],\r\n\t\t\t\r\n\t\tlabel, \"WellEnding2\",\t\r\n\t\t\t\r\n\t\t\tscene, \"\",\r\n\t\t\t\r\n\t\trealist, {image: \"realist3.png\", position: leftMiddleSide},\t\r\n\t\t\trealist, \"— Но я не хочу верить этому.\",\r\n\t\t\trealist, \"— Зачем ему понадобилось это всё?!\",\r\n\t\tskeptic,{image: \"skeptic2.png\", position: rightMiddleSide},\t\r\n\t\t\tskeptic, \"— Согласен, это просто смертельная игра.\",\r\n\t\toptimist, {image: \"optimist.png\", position: leftSide},\t\r\n\t\t\toptimist, \"— Не надо так о Создателе!\",\r\n\t\t\toptimist, \"— Никто даже не погиб.\",\r\n\t\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\t\r\n\t\t\tdreamer, \"— Она права!\",\r\n\t\t\tdreamer, \"— Выстояли сейчас, сможем и потом.\",\r\n\t\trealist, {image: \"realist3.png\", position: leftMiddleSide},\t\r\n\t\t\tn, \"*Гелиос саркастически поднял брови*\",\r\n\t\t\trealist, \"— Да, конечно.\",\r\n\t\t\t\r\n\t\t\tskeptic, \"— Издеваетесь? Нас чуть живьем не поглотили!\",\r\n\t\t\tdreamer, \"— Перестань орать, скептик несчастный!\",\r\n\t\t\tskeptic, \"— Что ты мне ска...\",\r\n\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\taudio, {src: \"bensound-tomorrow\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\tdark, {image: \"dark.png\", position: upperCenter},\t\r\n\t\t\tdark, \"*приглушённо* — шшшш....\",\r\n\t\t\tdark, \" ......\",\r\n\t\t\r\n\t\t\tn, \"— ...\",\r\n\t\t\tn, \"— Ваши споры и ругань дали возможность Тьме подкрастаться незаметно.\",\r\n\t\t\tn, \"— Тьма поглотила вас.\",\r\n\t\t\tn, \"— В общем-то...\",\r\n\t\t\tphoto, {image: \"1-1.png\", position: upperCenter},\r\n\t\t\tn, \"— ...вам пришел конец.\",\r\n\t\t\tn, \"— Вы удалось прийти игру только на 1/3 звёзд.\",\r\n\t\t\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\"Ну ничего страшного.\",\r\n\t\t\t\"Перейти в конец.\", [jump, \"lastlabel\"],\r\n\t\t\t],\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\tlabel, \"mainBattleRight6\",\r\n\t\taudio, {src: \"bensound-memories\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\r\n\t\t\tscene, \"\", \r\n\t\t\t\r\n\t\t\tn, \"...\", \r\n\t\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\r\n\t\t\tdreamer, \"— ...а?\",\r\n\t\t\tdreamer, \"— Оно... оно кончилось?\",\r\n\t\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\t\r\n\t\t\toptimist, \"— ...кажется, да\",\r\n\t\t\t\r\n\t\trealist, {image: \"realist0.png\", position: Center},\t\t\r\n\t\t\trealist, \"— Вот это было жёстко, конечно...\",\r\n\t\t\trealist, \"— Столько взаимодействия командного, вот это у нас сплочённость!\",\r\n\t\t\t\r\n\t\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\t\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\t\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\t\t\t\r\n\t\t\tn, \"*Всё медленно расслабляются, не веря в свою победу*\", \r\n\t\tskeptic,{image: \"skeptic3.png\", position: leftMiddleSide},\t\r\n\t\t\tn, \"*Лу медленно выдыхает*\", \r\n\t\t\tskeptic, \"— Как же хорошо, что всё это кончилось...\",\r\n\t\t\r\n\t\tskeptic,{image: \"skeptic.png\", position: rightMiddleSide},\r\n\t\t\tskeptic, \"— У меня есть только один вопрос...\",\r\n\t\t\tskeptic, \"— Это существо... оно состоит не из света.\",\r\n\t\t\tskeptic, \"— Откуда оно взялось и зачем?\",\r\n\t\t\r\n\t\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\t\r\n\t\trealist, {image: \"realist4.png\", position: leftMiddleSide},\t\r\n\t\t\trealist, \"— Предлагаю узнать прямо сейчас.\",\r\n\t\t\tn, \"Гелиос складывает руки в молитвенной позе.\",\r\n\t\t\tn, \"Яркий свет отражался сквозь его полу-закрытые глаза.\",\r\n\t\t\tn, \"Гелиос засиял. Связь была установлена.\",\r\n\t\t\r\n\t\tlabel, \"mainEnding0\",\r\n\t\t\r\n\t\t\tmenu, [\r\n\t\t\t\t\"Призвать Создателя.\",\r\n\t\t\t\t\"Прочитать молитву.\", [jump, \"mainEnding1\"],\r\n\t\t\t],\r\n\t\t\r\n\t\t\r\n\t\tlabel, \"mainEnding1\",\r\n\t\t\r\n\t\t\r\n\t\taudio, {src: \"piano\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\r\n\t\tscene, \"\",\r\n\t\tn, \"...\", \r\n\t\tn, \"Неожиданно, послышался невероятно спокойный, мягкий голос, сразу со всех сторон.\", \r\n\t\tn, \"Как будто его источник был везде.\", \r\n\t\tcreator, \"Sit vis vobiscum.\",\r\n\t\tcreator, \"...Приветствую вас.\",\r\n\tskeptic,{image: \"skeptic3.png\", position: leftMiddleSide},\t\r\n\t\tskeptic, \"— Кхм...\",\r\n\tskeptic,{image: \"empty.png\", position: leftMiddleSide},\t\r\n\tdreamer, {image: \"dreamer3.png\", position: leftMiddleSide},\r\n\t\tdreamer, \"— Создатель!\",\r\n\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\t\r\n\t\tdreamer, \"— Скажи, зачем существовало это... Оно...?\",\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\t\r\n\trealist, {image: \"realist0.png\", position: leftMiddleSide},\r\n\t\trealist, \"*напряжён*\",\r\n\trealist, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\t\r\n\t\r\n\t\tcreator, \"— ...\",\r\n\t\tcreator, \"— ...Видите-ли.\",\r\n\t\tcreator, \"— ...Эта Тьма — ваша персональная борьба.\",\r\n\toptimist, {image: \"optimist.png\", position: leftMiddleSide},\t\r\n\t\toptimist, \"— ...но зачем?\",\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\t\r\n\t\tcreator, \"— ...Для меня нет возможности создавать себе подобных, милые мои создания.\",\r\n\t\tcreator, \"— ..И только сами вы можете не воссоединиться со мной, но стать, как я, пройдя свой путь..\",\r\n\t\tcreator, \"— ...Вы победили Тьму ради других, но главное — вы победили её в себе.\",\r\n\t\tcreator, \"— ...И это был первый шаг к вашему пониманию сути бытия.\",\r\n\t\tcreator, \"— ...Светославляю вас...\",\r\n\t\t\r\n\tdreamer, {image: \"dreamer.png\", position: rightMiddleSide},\t\r\n\t\tdreamer, \"— ...Но создатель? Что нам делать теперь?\",\r\n\tdreamer, {image: \"empty.png\", position: rightMiddleSide},\t\t\r\n\t\tn, \"*Создатель загадочно улыбается*\",\r\n\t\tcreator, \"— ...На самом деле вы всегда знали, что делать.\",\r\n\t\tcreator, \"— ...\",\r\n\t\tsomeone2, \"— .........\",\r\n\t\t\r\n\t\tlabel, \"mainEnding2\",\r\n\t\t\r\n\tdreamer, {image: \"dreamer2.png\", position: leftMiddleSide},\t\r\n\t\tdreamer, \"— ...\",\r\n\toptimist, {image: \"optimist.png\", position: rightMiddleSide},\t\r\n\t\toptimist, \"— Невероятно, конечно.\",\r\n\trealist, {image: \"realist0.png\", position: leftSide},\t\r\n\t\tn, \"*Гелиос вздыхает*\",\r\n\tskeptic,{image: \"skeptic2.png\", position: rightSide},\t\r\n\t\tskeptic, \"— Получается, нам всем нужно разойтись своим путём?\",\r\n\t\r\n\t\trealist, \"— Да.\",\r\n\t\trealist, \"— Вы прекрасно знаете, что теперь нужно делать.\",\r\n\r\n\tdreamer, {image: \"empty.png\", position: rightSide},\t\r\n\tskeptic,{image: \"empty.png\", position: rightMiddleSide},\r\n\toptimist, {image: \"empty.png\", position: leftMiddleSide},\r\n\trealist, {image: \"empty.png\", position: leftSide},\r\n\t\r\n\t\tn, \"*Произошли коллективные объятья. Без выбора*\", \r\n\t\t\r\n\t\tskeptic, \"Тогда прощаемся...\",\r\n\t\tskeptic, \"Теперь мы должны защищать людей от Тьмы..\",\r\n\t\t\r\n\t\tscene, \"\",\r\n\t\tskeptic, \"*Ярким светом сбрасывает себя на Землю вместе с Ами*\",\r\n\t\t\r\n\t\tscene, \"\",\r\n\t\tdreamer, \"*Выходит из за пределы галактических пространств в параллельную вселенную.*\",\r\n\t\t\r\n\t\tn, \"...\",\r\n\t\trealist, \"— ...\",\r\n\trealist, {image: \"realist.png\", position: Center},\r\n\t\trealist, \"— Хей.\",\r\n\t\trealist, \"— Надеюсь, ты понимаешь, для чего тебе всё это было показано.\",\r\n\r\n\t\trealist, \"— Будь осторожен. Тьма среди людей всё ещё существует.\",\r\n\t\trealist, \"— ...\",\r\n\t\trealist, \"— ...Я всегда буду рядом с тобой, светить для тебя.\",\r\n\trealist, {image: \"empty.png\", position: leftSide},\t\r\n\t\tn, \"*Гелиос ушёл*\",\r\n\t\t\r\n\t\tsomeone2, \"— ...\",\r\n\t\tsomeone2, \"— ...\",\r\n\t\t\tsomeone2, \"— Герои разбрелись в разные стороны.\",\r\n\t\t\tsomeone2, \"— Их путь великий и прекрасный.\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"luandami1.png\", position: Center},\r\n\t\t\t\r\n\t\t\tsomeone2, \"— Ами с Лу спустятся девой и мужем на Землю утренней звездой.\",\r\n\t\t\tsomeone2, \"— Ами разделит свой свет на крылатых человеко-подобных существ.\",\r\n\t \t\tscene, {image: \"luandami2.png\", position: Center},\r\n\t\t\tsomeone2, \"— Чтобы контролировать и оберегать жизнь людей.\",\r\n\t\t\t\r\n\t\t\tsomeone2, \"— Лу же взял на себя обязанности после смерти.\",\r\n\t\t\tsomeone2, \"— Он присматривает за смертными в своём огненном царстве.\",\r\n\t\t\tsomeone2, \"...\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"neos1.png\", position: Center},\r\n\t\t\t\r\n\t\t\tsomeone2, \"— Неос была с трудным характером.\",\r\n\t\t\tsomeone2, \"— Но она просто хочет понять, что не так...\",\r\n\t \t\tscene, {image: \"neos2.png\", position: Center},\r\n\t\t\tsomeone2, \"— Отчаявшись найти Создателя в одной вселенной, она отправилась в другие.\",\r\n\t\t\tsomeone2, \"— И теперь люди гадают, действительно ли работает теория мультивселенных.\",\r\n\t\t\tsomeone2, \"...\",\r\n\t\t\t\r\n\t\t\tscene, {image: \"gelious1.png\", position: Center},\r\n\t\t\t\r\n\t\t\tsomeone2, \"— Гелиос же решился на очень отважный поступок.\",\r\n\t\t\tsomeone2, \"— Пытаясь защитить живые существа против Тьмы, он понял, насколько мало Света вокруг...\",\r\n\t \t\tscene, {image: \"gelious2.png\", position: Center},\r\n\t\t\tsomeone2, \"— И он сам стал этим светом, обернувшись в яркий шар света — Солнце.\",\r\n\t\t\tsomeone2, \"— Испуская свет в разные стороны, Гелиос освещает вселенную...\",\r\n\t\t\tscene, {image: \"empty.png\", position: Center},\r\n\t\t\tsomeone2, \"— ...\",\r\n\t\t\tsomeone2, \"— Героям удалось победить Тьму, но она всё ещё существует.\",\r\n\t\t\tsomeone2, \"— И существует она в сердцах всего живого.\",\r\n\t\t\tsomeone2, \"— ...\",\r\n\t\t\t\r\n\t\t\tsomeone2, \"— ...\",\r\n\t\t\tcreator, \"— Ведь это я их такими создал.\",\r\n\t\t\tcreator, \"— Именно Тьма внутри наших сердец мешает нам услышать других.\",\r\n\t\t\tcreator, \"— Увидеть наши светлые души.\",\r\n\t\t\tcreator, \"— Понять и принять...\",\r\n\t\t\t\r\n\t\t\tcreator, \"— 4 героя Света теперь заняты — присматривают за Вами, людьми.\",\r\n\t\t\tcreator, \"— Но Вселенская Тьма всё ещё рядом.\",\r\n\t\t\tcreator, \"— 2020 по Григорианскому календарю год может стать губительным.\",\r\n\t\t\tcreator, \"— Удачи вам всем.\",\r\n\t\t\r\n\t\tn, \"— ...\",\r\n\t\tphoto, {image: \"3-3.png\", position: upperCenter},\r\n\t\tn, \"— Поздравляем!.\",\r\n\t\tn, \"— Вы прошли игру на 3/3 звёзд.\",\r\n\t\t\r\n\t\tmenu, [\r\n\t\t\t\"Победа.\",\r\n\t\t\t\"Перейти в конец.\", [jump, \"lastlabel\"],\r\n\t\t],\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tlabel, \"lastlabel\",\r\n\t\t\t\r\n\t\t\taudio, {src: \"bensound-memories\", format: [\"mp3\"], action: \"play\"},\r\n\t\t\tn, \"...\",\r\n\t\t\tn, \"Поздравляем вас с успешным (или не очень) прохождением игры.\",\r\n\t\t\tn, \"Мы очень надеемся, что вам она понравилась.\",\r\n\t\t\tn, \"Перед тем, как закончить, пожалуйста, пройдите небольшой опросник об игре, а после вернитесь на readymag, чтобы посмотреть интервью с разработчиками\",\r\n\t\t\t\r\n\t\tlionText, {\r\n width: 0.6, color: \"grey\", border: \"1px solid grey\",\r\n backgroundColor: \"#2E3540\",\r\n position: new Position(0.20, 0.3), align: \"wenter\",\r\n visibility: \"visible\",\r\n text:\"Пожалуйста, пройдите небольшой опросник об игре: Google Forms\"},\r\n\t\t\t\r\n\t\t\tn, \"Ещё раз спасибо <3.\",\r\n\t\t\tn, \"Перепройти игру?\",\r\n\t\t\r\n\t\t\r\n ];\r\n}","function readOutLoud(message){\n var speech = new SpeechSynthesisUtterance(); //Built-in fuction which help JS to talk to us\n\n speech.text = \"Pardon!!\"; // Default speech\n\n if(message.includes(\"how are you\")) {\n var final = greetings[Math.floor(Math.random() * greetings.length)];\n speech.text = final;\n }else if(message.includes(\"joke\")){\n var final = jokes[Math.floor(Math.random() * jokes.length)];\n speech.text = final;\n }else if(message.includes(\"your name\")){\n speech.text = \"My name is Noxi\";\n }\n\n \n speech.volume = 1;\n speech.rate = 0.7;\n speech.pitch = 1;\n\n //Now Noxi will speak\n window.speechSynthesis.speak(speech);\n}","function pitchClassToMidi(pitch) {\n var scaleIndexToNote = [\"C\", \"C#\", \"D\", \"D#\", \"E\", \"F\", \"F#\", \"G\", \"G#\", \"A\", \"A#\", \"B\"];\n return scaleIndexToNote.indexOf(pitch);\n}","readData() {\n\t\t// Se non esiste, lo crea, con le impostazioni di default\n\t\tif (!fs.existsSync(this.filepath)) {\n\t\t\tlogger.debug('Creato nuovo file di impostazioni.');\n\t\t\tthis.writeData();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tconst text = fs.readFileSync(this.filepath, 'utf8');\n\t\t\t// file YAML => {}\n\t\t\tconst data = yaml.safeLoad(text);\n\n\t\t\t// NOTE: validazione in lettura su readData, mentre in scrittura su setData.\n\t\t\tif (!isValid(data)) {\n\t\t\t\tthrow new Error('impostazioni del file non valide.');\n\t\t\t} else {\n\t\t\t\tthis.data = data;\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tlogger.error(`Errore nella lettura file yaml: ${e.toString()}`);\n\t\t}\n\t}","function updatePreviewWithNote(sender, paeNote) {\r\n // console.log(\"key pressed is \" + paeNote)\r\n plaineEasieCodes.push(paeNote)\r\n updateNotesSVG()\r\n}","function getPitch()\r\n {\r\n return pitch;\r\n }","noteOff(pitch) {\n this.keys[pitch].noteOff()\n }","function noteFromPitch( frequency ) {\n\t// CORRELATED FREQUENCY NOTENUM CALCULATION===>\n\tvar noteNum = 12 * (Math.log( frequency / 440 )/Math.log(2) );\n\treturn Math.round( noteNum ) + 69;\n}","function gotData() {\n var currentString = serial.readLine(); // read the incoming data\n trim(currentString); // trim off any trailing whitespace\n if (!currentString) return; // if the incoming string is empty, do no more\n\n //hopefully, it's in the format \"key=value\"\n // e.g. \"compass=342\"\n // e.g. \"light=220\"\n [key, value] = currentString.split('=');\n \n // store the key and value in our dictionary\n // For security, you may want to allow only keys from a whitelist, \n // and to screen the values. None of that, here.\n controls[key] = value;\n\n //Find the a-frame element we want to manipulate in the DOM\n var elemToMod = document.querySelector('#robot');\n\n setRotation(elemToMod, controls);\n \n //Here we also have the chance to do something specific \n // for the reported parameter\n switch(key) {\n case \"compass\": \n break;\n case \"rotation\": \n break;\n case \"light\": \n break;\n case \"pitch\": \n break;\n default: \n break;\n }\n}","function applyNeumeDataChanges(){\n var type = document.getElementById(\"type\").value;\n \n if(type && type != \"none\"){\n currentNeume.type = type;\n }\n \n document.getElementById(\"meiOutput\").value = createMEIOutput();\n document.getElementById(\"input\").innerHTML = neumeDataChangeForm();\n createSVGOutput();\n}","function setUpreload(world) {\n if (window.File && window.FileReader && window.FileList && window.Blob) {\n var fileSelected = document.getElementById(\"txtfiletoread\");\n fileSelected.addEventListener(\n \"change\",\n function(e) {\n //Get the file object\n var fileTobeRead = fileSelected.files[0];\n //Initialize the FileReader object to read the 2file\n var fileReader = new FileReader();\n fileReader.onload = function(e) {\n var result = fileReader.result.split(/\\s+/);\n if (result.length % 6 != 0 || result.length < 18) {\n console.log(result);\n alert(\"Wrong data format or too few data entries\");\n }\n // re-setup the world\n world.renderer.setAnimationLoop(null);\n removeAllPoints(world);\n\n // add points\n for (var i = 0; i < result.length / 6; i++) {\n var new_point = new ControlPoint(\n parseInt(result[i * 6]),\n parseInt(result[i * 6 + 1]),\n parseInt(result[i * 6 + 2]),\n world\n );\n new_point.setOrient(\n parseInt(result[i * 6 + 3]),\n parseInt(result[i * 6 + 4]),\n parseInt(result[i * 6 + 5])\n );\n world.addObject(new_point.mesh);\n console.log(new_point);\n }\n\n // initial calculations\n drawCurves(params.CurveSegments);\n computeNormals(params.CurveSegments);\n computerTimeIncrements();\n drawRail(params.CurveSegments);\n world.renderer.setAnimationLoop(render);\n };\n fileReader.readAsText(fileTobeRead);\n },\n false\n );\n } else {\n alert(\"Files are not supported\");\n }\n}","function readUserInput() {\n\tvar settings = {};\n\t//Plasmid Section\n\tsettings.plasmidname = readtxtField(\"txtPlasmidName\");\n\tsettings.plasmidnameon = readField(\"bolShowPlasmidName\");\n\tsettings.plasmidsize = readField(\"txtPlasmidSize\");\n\tsettings.plasmidsizeon = readField(\"bolShowPlasmidSize\");\n\tsettings.plasmidradius = readField(\"txtRadius\");\n\tsettings.bbwidth = readField(\"txtBackBoneWidth\");\n\tsettings.bbcolor = readField(\"optBackBoneColor\");\n\tsettings.bbon = readField(\"bolShowBackBone\");\n\t//Feature Section (General)\n\tsettings.fwidth = readField(\"txtFeatureWidth\");\n\tsettings.fstrokewidth = readField(\"txtFeatureStrokeWidth\");\n\tsettings.fstrokered = readField(\"txtStrokeRed\");\n\tsettings.fstrokegreen = readField(\"txtStrokeGreen\");\n\tsettings.fstrokeblue = readField(\"txtStrokeBlue\");\n\tsettings.farrowlength = readField(\"txtArrowHeadLength\");\n\tsettings.farrowwidth = readField(\"txtArrowHeadWidth\");\n\t//Text section\n\tsettings.txton = readField(\"bolShowText\");\n\tsettings.txtfamily = readField(\"optFontFamily\");\n\tsettings.txtsize = readField(\"txtFontSize\");\n\tsettings.txtcolor = readField(\"optFontColor\");\n\tsettings.txtbold = readField(\"bolTextBold\");\n\tsettings.txtloc = readField(\"optTextLocation\");\n\t//Canvas section\n\tsettings.cw = readField(\"txtCanvasWidth\");\n\tsettings.ch = readField(\"txtCanvasHeight\");\n\tsettings.error = 0;\n\tsettings.errmsg = \"\";\n\t//Calculated properties\n\tsettings.ox = settings.cw / 2;\n\tsettings.oy = settings.ch / 2;\n\tsettings.ri = settings.plasmidradius - settings.fwidth / 2;\n\tsettings.ro = settings.plasmidradius + settings.fwidth / 2;\n\tsettings.rim = settings.plasmidradius - settings.fwidth / 2 - settings.farrowwidth;\n\tsettings.rom = settings.plasmidradius + settings.fwidth / 2 + settings.farrowwidth;\n\treturn settings;\n}","function addNote() {\n if (noteText.value === \"\") {\n return;\n } else {\n notesCounter++; // increamenting notes count\n var note = {\n noteId: notesCounter,\n noteText: noteText.value,\n noteHead: noteHead.value,\n colorBg: noteDiv.style.background || \"rgb(255, 255, 255)\",\n tags: [],\n noteFavorite: false,\n noteFavoritePos: null,\n };\n notes.unshift(note);\n noteDiv.style.background = \"#ffffff\";\n renderNote(note);\n updateDB();\n clearInputs();\n noteHead.style.display = \"none\";\n noteBot.style.display = \"none\";\n }\n}","parse(buffer) {\n\n // Define the list of face normals\n const normals = [];\n\n // Define the list of face positions\n const positions = [];\n \n // Define the list of face indices\n const indices = [];\n \n // Define the index\n let index = 0;\n \n // Iterate through the buffer\n for (let i = 0; i < buffer.readUInt32LE(80); i++) {\n \n // Define the normal offset within the buffer\n const normalOffset = (84 + (i * 50));\n \n // Define the normals\n const normalX = buffer.readFloatLE((normalOffset + 0), true);\n const normalY = buffer.readFloatLE((normalOffset + 8), true);\n const normalZ = buffer.readFloatLE((normalOffset + 4), true);\n \n // Iterate through the section of the buffer\n for (let j = 1; j <= 3; j++) {\n \n // Define the position offset within the buffer\n const positionOffset = (normalOffset + j * 12);\n \n // Define the positions\n const positionX = buffer.readFloatLE((positionOffset + 0), true);\n const positionY = buffer.readFloatLE((positionOffset + 8), true);\n const positionZ = buffer.readFloatLE((positionOffset + 4), true);\n \n // Add the normals to the normals set\n normals.push(normalX, normalY, normalZ);\n \n // Add the positions to the positions set\n positions.push(positionX, positionY, positionZ);\n \n // Add the index to the indices set\n indices.push(index++);\n }\n }\n\n // Return the data\n return { normals, positions, indices };\n }","function main() {\n var m_temp = readLine().split(' ');\n var m = parseInt(m_temp[0]);\n var n = parseInt(m_temp[1]);\n magazine = readLine().split(' ');\n ransom = readLine().split(' ');\n if (canCreateNote(ransom, magazine)) {\n console.log('Yes');\n } else {\n console.log('No');\n }\n}","function addNote() {\n\t\t\n\t\tid++;\n\t\tzIndex++;\n\t\t\n\t\tvar body = document.querySelector('body');\n\t\t\n\t\tvar note = document.createElement('div');\n\t\tvar close = document.createElement('div');\n\t\tvar field = document.createElement('div');\n\t\tvar footer = document.createElement('div');\n \t\t\n\t\tnote.setAttribute('id', 'note' + id);\n\t\tclose.setAttribute('id', 'note' + id);\n\t\tfield.setAttribute('id', 'note' + id);\n\t\tfield.setAttribute('contenteditable', true);\n\t\t\t\n\t\tnote.classList.add('note');\n\t\tclose.classList.add('close');\n\t\tfield.classList.add('field');\n\t\tfooter.classList.add('footer');\n\t\t\n\t\tnote.style.zIndex = zIndex;\n\t\t\t\n\t\tnote.appendChild(close);\n\t\tnote.appendChild(field);\n\t\tnote.appendChild(footer);\n\t\tbody.appendChild(note);\n\t\t\n\t\tattachListeners(note, close, field, footer);\n\t\t\n\t\tvar data = JSON.parse(localStorage['data']);\n\t\t\n\t\t// Save the current note's data\n\t\tdata.push({\n\t\t\n\t\t\tid: id,\n\t\t\ttext: '',\n\t\t\tposition: { x: 20, y: 20 },\n\t\t\tzIndex: zIndex,\n\t\t\t\n\t\t\ttime: { \n\t\t\t\n\t\t\t\tday: new Date().getDate(), \n\t\t\t\tmonth: new Date().getMonth() + 1, \n\t\t\t\tyear: new Date().getFullYear(), \n\t\t\t\th: new Date().getHours(), \n\t\t\t\tm: new Date().getMinutes(), \n\t\t\t\ts: new Date().getSeconds() \n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t});\n\t\t\n\t\tlocalStorage['data'] = JSON.stringify(data);\n\t\t\n\t}","function createSampleConfig(data){\r\n\r\n if(data.n){\r\n // get the buffer by an id\r\n buffer = me.samples[data.n];\r\n //console.log(data.n, buffer);\r\n }\r\n\r\n\r\n if(buffer === undefined){\r\n if(sequencer.debug){\r\n console.log('no buffer found for ' + id + ' (' + me.name + ')');\r\n }\r\n sampleConfig = false;\r\n return;\r\n }\r\n\r\n sampleConfig = {\r\n noteNumber: noteNumber,\r\n buffer: buffer,\r\n autopan: me.autopan\r\n };\r\n\r\n // sample pack sustain\r\n if(config.sustain === true){\r\n sampleConfig.sustain = true;\r\n update = true;\r\n }\r\n\r\n // sustain\r\n if(data.s !== undefined){\r\n sampleConfig.sustain_start = data.s[0];\r\n sampleConfig.sustain_end = data.s[1];\r\n sampleConfig.sustain = true;\r\n update = true;\r\n }\r\n\r\n // global release\r\n if(config.release_duration !== undefined){\r\n sampleConfig.release_duration = config.release_duration;\r\n sampleConfig.release_envelope = config.release_envelope || me.releaseEnvelope;\r\n sampleConfig.release = true;\r\n update = true;\r\n }\r\n\r\n // release duration and envelope per sample overrules global release duration and envelope\r\n if(data.r !== undefined){\r\n if(typeString(data.r) === 'array'){\r\n sampleConfig.release_duration = data.r[0];\r\n sampleConfig.release_envelope = data.r[1] || me.releaseEnvelope;\r\n }else if(!isNaN(data.r)){\r\n sampleConfig.release_duration = data.r;\r\n sampleConfig.release_envelope = me.releaseEnvelope;\r\n }\r\n sampleConfig.release = true;\r\n update = true;\r\n //console.log(data.r, sampleConfig.release_duration, sampleConfig.release_envelope)\r\n }\r\n\r\n // panning\r\n if(data.p !== undefined){\r\n sampleConfig.panPosition = data.p;\r\n sampleConfig.panning = true;\r\n }\r\n //console.log(data.p, sampleConfig.panning);\r\n //console.log('ready', sampleConfig);\r\n }","function runPiano() {\n\t// input the individual note into a json object and uploaded to the\n\t// VF.StaveNote function in order to print the music note notation\n\n\t// json2obj function can convert the three array list, alphabet, repeats, and speed sound\n\t// into a object\n\tfunction json2obj(notes_list, repeat_list, timeout_list){\n\t\tvar i = 1;\n\t\t// verifying wheter there is no duplicate\n\t\tif (i == repeat_list) {\n\t\t\t// appending into a new array\n\t\t\tnotes_parsed.push(notes_list)\n\t\t\tnotes_time.push(timeout_list)\n\t\t\t// generating the syntax string in order to converted into a json\n\t\t\tvar json1 = '{\"keys\": [\"';\n\t\t\tvar json2 = notes_list + '/4\"], \"duration\": \"q\"}';\n\t\t\tvar json3 = json1.concat(json2)\n\t\t\t// parse the json into a object\n\t\t\tconst obj = JSON.parse(json3);\n\t\t\t// create a note using Vexflow\n\t\t\tvar note = new VF.StaveNote(obj);\n\t\t\t// append the final result\n\t\t\tnotes.push(note);\n\t\t\treturn notes;\n\t\t} else {\n\t\t\t\t// generate the duplicate audio\n\t\t\t\twhile( i <= repeat_list)\n\t\t\t\t{\n\t\t\t\t// append the input into a new array\n\t\t\t\tnotes_parsed.push(notes_list)\n\t\t\t\tnotes_time.push(timeout_list)\n\t\t\t\t// generating the syntax string in oreder to converted into a json\n\t\t\t\tvar json1 = '{\"keys\": [\"';\n\t\t\t\tvar json2 = notes_list + '/4\"], \"duration\": \"q\"}';\n\t\t\t\tvar json3 = json1.concat(json2)\n\t\t\t\t// parse the json into a object\n\t\t\t\tconst obj = JSON.parse(json3);\n\t\t\t\t// create a note using Vexflow\n\t\t\t\tvar note = new VF.StaveNote(obj);\n\t\t\t\t\n\t\t\t\t// append the input\n\t\t\t\tnotes.push(note);\n\t\t\t\ti = i + 1;\n\t\t\t\t\n\t\t\t}\n\t\t\t// return the final result\n\t\t\treturn notes;\n\t\t}\n\t\t\n\t}\n\n\t// getUnique function will eliminate any duplicate in the array\n\tfunction getUnique(array) {\n\t\tvar uniqueArray = [];\n\t\t// Loop through array values\n\t\tfor (i = 0; i < array.length; i++) {\n\t\t\t// check wheter there is no duplicate\n\t\t\tif (uniqueArray.indexOf(array[i]) === -1) {\n\t\t\t\t// append into the array\n\t\t\t\tuniqueArray.push(array[i]);\n\t\t\t}\n\t\t}\n\t\t// return the result\n\t\treturn uniqueArray;\n\n\t}\n\t// try and catch used for Error Handling\n\ttry {\n\n\tvar complete_note_list = [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\"];\n\t// delete the lines\n\tnotes_raw = $(\"#input_notes\").val().split(/\\r?\\n/);\n\t\n\tlet onlyLetters = /[a-zA-Z]+/g\n\tlet onlyNumeric = /[+-]?(\\d+([.]\\d*)?(e[+-]?\\d+)?|[.]\\d+(e[+-]?\\d+)?)/g\n\tlet onlyFloat = /[+-]?(\\d+([.]\\d*)?(e[+-]?\\d+)?|[.]\\d+(e[+-]?\\d+)?)/g\n\t// generate an array only show the repetition\n\tnotes_repeat = $(\"#input_notes\").val().match(onlyNumeric).map(s => s.slice(0, 1));\n\t// generate an array only show the speed\n\tnotes_timeout = ($(\"#input_notes\").val().match(onlyFloat)).map(s => s.slice(1, 4));\n\t\n\n\t//////////////////////////////\n\t// Error Handling //\n\t/////////////////////////////\n\tvar max_repeat_numb_notes = 9;\n\t// Error try and catch\n\t// It constrains the user to use only one note per line.\n\n\t// This for loop clean the white spaces and appends into new string array\n\t// empty array\n\tnew_notes_raw = [];\n\tnotes_letter = [];\n\t// for loop go through alphabet notes input\n\tfor (m = 0; m < notes_raw.length; m++) {\n\t\t// trim every row that does have any white space\n\t\tnumber_rows = notes_raw[m].trim();\n\t\tif (Boolean(number_rows)) {\n\t\t\t// store the letter into a variable\n\t\t\tletter = number_rows.match(onlyLetters)[0];\n\t\t\t// append the letter,duplicate, and speed\n\t\t\tnew_notes_raw.push(number_rows);\n\t\t\t// append the letter\n\t\t\tnotes_letter.push(letter)\n\t\t}\n\t}\n\t\n\t\n\t// Sorting and Unique the Alphabet Notes\n\tsort_letters = notes_letter.sort();\n\tsort_uniq_letters = getUnique(sort_letters);\n\t\n\n\t// Debuginnin to see what is going on in the code\n\t/*console.log(new_notes_raw);\n\tconsole.log(notes_letter);\n\tconsole.log(sort_uniq_letters);\n\tconsole.log(complete_note_list);\n\tconsole.log(notes_repeat);\n\tconsole.log(notes_timeout);\n\t*/\n\t\n\n\t// Check the number of row per each line \n\t// if there is more than one note will stop the code\n\tfor (m = 0; m < new_notes_raw.length; m++) {\n\t\t// split the space of the input value note\n\t\tnumber_rows = new_notes_raw[m].split(\" \").length;\n\t\t\n\t\t//console.log(number_rows)\n\t\t// if there are two or more inputs in one row\n\t\tif (number_rows > 1) {\n\t\t\t// Give error to the user\n\t\t\tthrow \"Please add one note per line!\";\n\t\t} \n\n\t}\n\t// Use the filter command to determine the difference and it is not in the notes of the alphabet\n\tlet difference = sort_uniq_letters.filter(element => !complete_note_list.includes(element));\n\t//console.log(difference);\n\t// if there more than one in the difference array that means the user has alphabet that does not \n\t// follow the alphabet notes\n\tif (difference.length > 0 ) {\n\t\tthrow \"Please use first seven letters of the alphabet!\"\n\t}\n\t// Use only 1-9 repetitions\n\t// If statement will constraint the user and allow to use only certain number of repetitions\n\tif (max_repeat_numb_notes > 10){\n\t\tthrow \"Please use no more than 9 duplicates!\"\n\t}\n\n\t\n\t\n /////////////////////\n\t// Reference Notes //\n\t/////////////////////\n\n\t// It will print the symbol note notation for the user to help follow the audio\n\n\tVF1 = Vex.Flow;\n\t\n\t// Create an SVG renderer and attach it tot he DIV element named \"reference notes\"\n\tvar div1 = document.getElementById(\"reference_notes\")\n\n\tvar renderer = new VF1.Renderer(div1, VF1.Renderer.Backends.SVG);\n\n\tpx1=500;\n\t// Size SVG\n\trenderer.resize(px1+100, px1/4);\n\t// and get a drawing context\n\tvar context1 = renderer.getContext();\n\t\n\tcontext1.setFont(\"Times\", 10, \"\").setBackgroundFillStyle(\"#eed\");\n\n\tvar stave1 = new VF1.Stave(10, 0, px1);\n\n\tstave1.addClef(\"treble\");\n\t// Connect it to the rendering context and draw!\n\tstave1.setContext(context1).draw();\n\t// Generate your input notes\n\tvar notes_ref = [\n\t\tnew VF1.StaveNote({ keys: [\"a/4\"], duration: \"q\" }),\n\t\tnew VF1.StaveNote({ keys: [\"b/4\"], duration: \"q\" }),\n\t\tnew VF1.StaveNote({ keys: [\"c/4\"], duration: \"q\" }),\n\t\tnew VF1.StaveNote({ keys: [\"d/4\"], duration: \"q\" }),\n\t\tnew VF1.StaveNote({ keys: [\"e/4\"], duration: \"q\" }),\n\t\tnew VF1.StaveNote({ keys: [\"f/4\"], duration: \"q\" }),\n\t\tnew VF1.StaveNote({ keys: [\"g/4\"], duration: \"q\" })\n\t];\t\n\n\t// Create a voice in 4/4 and add above notes\n\tvar voice_ref = new VF1.Voice({ num_beats: 7, beat_value: 4 });\n\tvoice_ref.addTickables(notes_ref);\n\n\t// Format and justify the notes to 400 pixels.\n\tvar formatter1 = new VF1.Formatter().joinVoices([voice_ref]).format([voice_ref], px1);\n\n\t// Render voice\n\tvoice_ref.draw(context1, stave1);\n\t\n\n\t/////////////////////\n\t// Real-Time Notes //\n\t/////////////////////\n\n\tVF = Vex.Flow;\n\n\t// Create an SVG renderer and attach it to the DIV element named \"play piano\".\n\tvar div = document.getElementById(\"play_piano\")\n\tvar renderer = new VF.Renderer(div, VF.Renderer.Backends.SVG);\n\n\t//px = notes_letter.length * 500;\n\tpx=1000;\n\t// Configure the rendering context.\n\n\trenderer.resize(px+100, px/5);\n\tvar context = renderer.getContext();\n\t\n\tcontext.setFont(\"Arial\", 10, \"\").setBackgroundFillStyle(\"#eed\");\n\t// 13 notes = 500 px\n\t// Create a stave of width 400 at position 10, 40 on the canvas.\n\t\n\tvar stave = new VF.Stave(10, 0, px);\n\t\n\t// Add a clef and time signature.\n\t\n\tstave.addClef(\"treble\");\n\t// Connect it to the rendering context and draw!\n\tstave.setContext(context).draw();\n\t\n\t// empty array\n\tvar notes_parsed = []\n\tvar notes_time = []\n\tvar notes=[];\n\t\n\t\n\t// for loop will convert the array into json to object\n\tfor (index = 0; index < notes_raw.length; index++) {\n\t\t\tfor (n = 0; n < notes_raw.length; n++) {\n\t\t\t\tfor (i = 0; i < complete_note_list.length; i++){\n\t\t\t\t\t// compare if the notes are identical\n\t\t\t\t\tif (notes_raw[index][n] == complete_note_list[i]) {\n\t\t\t\t\t\t// call the json to object function\n\t\t\t\t\t\tnotes = json2obj(notes_raw[index][n], notes_repeat[index],notes_timeout[index]);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t}\n\n\n\t\n\tconsole.log(notes)\n\t\n\t// for loop determine whether the following notes belong to the \n\t// correct audio\n\ttiming = 0\n\t//index_ms_offset = 3000\n\t// Adding a weight to speed or slow down the audio note\n\tweight=30000;\n\tfor (index = 0; index < notes_parsed.length; index++) {\n\t\tif (notes_parsed[index] == 'A') {\n\t\t\t// Time delay\n\t\t\tsetTimeout( function() {\n\t\t\t// Play Audio\t\n\t\t\t\tnew Audio('media/high_a.mp3').play()\n\t\t\t}, weight*notes_time[index] * index)\n\t\t} else if (notes_parsed[index] == 'B' ) {\t\n\t\t\t// Time delay\n\t\t\tsetTimeout(function() {\n\t\t\t// Play Audio\t\n\t\t\t\tnew Audio('media/high_b.mp3').play()\n\t\t\t}, weight*notes_time[index] * index )\n\t\t} else if (notes_parsed[index] == 'C' ) {\n\t\t\t// Time delay\t\t\n\t\t\tsetTimeout(function() {\t\n\t\t\t// Play Audio\t\n\t\t\t\tnew Audio('media/high_c.mp3').play()\n\t\t\t}, weight*notes_time[index] * index )\n\t\t} else if (notes_parsed[index] == 'D' ) {\n\t\t\t// Time delay\t\n\t\t\tsetTimeout(function() {\n\t\t\t// PLay Audio\t\n\t\t\t\tnew Audio('media/high_d.mp3').play()\n\t\t\t}, weight*notes_time[index] * index ) \n\t\t} else if (notes_parsed[index] == 'E' ) {\n\t\t\t\n\t\t\t// Time Audio\n\t\t\tsetTimeout(function() {\n\t\t\t// Play Audio\n\t\t\t\tnew Audio('media/high_e.mp3').play()\n\t\t\t}, weight*notes_time[index] * index )\n\t\t} else if (notes_parsed[index] == 'F') {\n\t\t\t\n\t\t\t// Time Audio\n\t\t\tsetTimeout(function() {\n\t\t\t// Play Audio\n\t\t\t\tnew Audio('media/high_f.mp3').play()\n\t\t\t}, weight*notes_time[index] * index )\n\t\t} else if (notes_parsed[index] == 'G') {\n\t\t\t\n\t\t\t// Time Audio\n\t\t\tsetTimeout(function() {\n\t\t\t// Play Audio\t\n\t\t\t\tnew Audio('media/high_g.mp3').play()\n\t\t\t}, weight*notes_time[index] * index )\n\n\t\t}\n\t}\n\t\n\t//alert(notes_parsed)\n\tconsole.log(notes);\n\n\n\n// Create a voice in 4/4 and add above notes\nvar voice = new VF.Voice({num_beats: notes_parsed.length, beat_value: 4});\nvoice.addTickables(notes);\n\n// Format and justify the notes to 400 pixels.\nvar formatter = new VF.Formatter().joinVoices([voice]).format([voice], px);\n\n// Render voice\nvoice.draw(context, stave);\n\n\n\t// Javascript Buttons -> HTML5\n\tvar clearBtn = document.getElementById('ClearNote');\n\tclearBtn.addEventListener('click', e => {\n\t\t\n\t\tconst staff1 = document.getElementById('reference_notes')\n\t\twhile (staff1.hasChildNodes()) {\n\t\t\tstaff1.removeChild(staff1.lastChild);\n\t\t}\n\n\t\tconst staff2 = document.getElementById('play_piano')\n\t\twhile (staff2.hasChildNodes()) {\n\t\t\tstaff2.removeChild(staff2.lastChild);\n\t\t}\n\n\t})\n\t// Generate the concatenate code for stand-alone html5\n\t\tvar htmlTEMPLATE=\"\"\n\t\thtmlTEMPLATE=htmlTEMPLATE+\"\\n<\\/head>\\n\\n\"\n\t\thtmlTEMPLATE=htmlTEMPLATE+\"