query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
sequencelengths
0
101
negative_scores
sequencelengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
assigns most common fields. if different, assign individually after this call.
function getBaseColObj(dataField, dataType, baseObject) { var objColumn = {}; // objColumn.caption = ""; objColumn.dataField = dataField; objColumn.dataType = dataType; objColumn.width = "auto"; objColumn.allowEditing = false; objColumn.showInColumnChooser = true; objColumn.allowResizing = true; objColumn.allowHiding = true; baseObject.push(objColumn); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setupCommonData () {\n for (const field in commonFields) {\n setSharedData(field, getSharedDataInitialValue(field, commonFields[field]))\n }\n }", "resetFields() {\n keys(this.initialFields).forEach((key) => this[key] = this.initialFields[key]);\n }", "function setUpFields(fields){\n\n\t_.forEach(fields, function(value, key){\n\t\tif(value.type == 'date'){\n\t\t\t$scope.data.thisContent[value.field || value.key] = {\n\t\t\t\tstartDate: $scope.data.thisContent[value.field || value.key] || null,\n\t\t\t\tendDate: null //have to stub but don't use all the time\n\t\t\t}\n\t\t}\n\t})\n\n\treturn fields;\n\n}", "function declaringFields() { }", "function populateDataFields() {}", "function _assign(target, source, fields) {\n return _.assign(target, _.pick(source, fields));\n}", "function setCommonFields(solrRecord, vprRecord) {\n\tsetStringFromSimple(solrRecord, 'uid', vprRecord, 'uid');\n\tsetStringFromSimple(solrRecord, 'pid', vprRecord, 'pid');\n\tsetStringFromSimple(solrRecord, 'facility_code', vprRecord, 'facilityCode');\n\tsetStringFromSimple(solrRecord, 'facility_name', vprRecord, 'facilityName');\n\tsetStringFromSimple(solrRecord, 'kind', vprRecord, 'kind');\n\tsetStringFromSimple(solrRecord, 'summary', vprRecord, 'summary');\n setStringFromSimple(solrRecord, 'removed', vprRecord, 'removed');\n\tsetStringArrayFromObjectArrayField(solrRecord, 'codes_code', vprRecord, 'codes', 'code');\n\tsetStringArrayFromObjectArrayField(solrRecord, 'codes_system', vprRecord, 'codes', 'system');\n\tsetStringArrayFromObjectArrayField(solrRecord, 'codes_display', vprRecord, 'codes', 'display');\n\tsetDateTimes(solrRecord, vprRecord);\n}", "function updateHeaderFields() {\n data.fields.forEach(field => {\n let id = GatherComponent.idByGatherTeamField(gatherMakers, gatherMakers.team, field);\n field.attributes.name = elementById(id).value;\n });\n}", "parseFields(fields) {\n for (let index in fields) {\n let obj = fields[index];\n let name = \"\";\n let type = \"\";\n for (let prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n if (prop === \"name\") {\n name = obj[prop];\n }\n if (prop === \"type\") {\n type = obj[prop];\n }\n }\n }\n this.fieldTypes[name] = Number(type);\n }\n }", "ensureFields() {\n if (this.options.fields === undefined) {\n this.options.fields = this.config.fieldNames.reduce((fields, field) => {\n fields[field] = field;\n return fields;\n }, {});\n }\n }", "_assignToActorField (fields, value) {\n const actorData = duplicate(this.actor)\n const lastField = fields.pop()\n fields.reduce((data, field) => data[field], actorData)[lastField] = value\n this.actor.update(actorData)\n }", "updateFieldItems() {\n this.fieldItems = this.getFieldItems();\n this.fullQueryFields = this.getFullQueryFields();\n this.availableFieldItemsForFieldMapping = this.getAvailableFieldItemsForFieldMapping();\n this.availableFieldItemsForMocking = this.getAvailableFieldItemsForMocking();\n this.mockPatterns = this.getMockPatterns();\n }", "_updateCommonFields(updateData, {\n firstName, lastName, picture, website, interests, careerGoals, retired,\n }) {\n if (firstName) {\n updateData.firstName = firstName;\n }\n if (lastName) {\n updateData.lastName = lastName;\n }\n if (picture) {\n updateData.picture = picture;\n }\n if (website) {\n updateData.website = website;\n }\n if (interests) {\n updateData.interestIDs = Interests.getIDs(interests);\n }\n if (careerGoals) {\n updateData.careerGoalIDs = CareerGoals.getIDs(careerGoals);\n }\n if (_.isBoolean(retired)) {\n updateData.retired = retired;\n }\n // console.log('_updateCommonFields', updateData);\n }", "_mapFieldsToMenu() {\n const that = this;\n\n if (!that.fields && !that._valueFields) {\n return;\n }\n\n that._fields = (that.fields || that._valueFields).map(field => {\n let menuField = {};\n\n menuField.label = field.label;\n menuField.value = field.dataField;\n menuField.dataType = field.dataType;\n\n return menuField;\n });\n }", "_setFields (fields, valueOptions = {}) {\n if (typeof fields !== 'object') {\n throw new Error(\"Expected an object but got \" + typeof fields);\n }\n\n for (let field in fields) {\n this._set(field, fields[field], valueOptions);\n }\n }", "function mergeMetaFields(matched) {\r\n return matched.reduce((meta, record) => assign(meta, record.meta), {});\r\n}", "configureFields() {\n let fields = {}\n\n for(let fieldName in this.props.schema.fields) {\n let field = this.props.schema.fields[fieldName]\n\n fields[fieldName] = {}\n fields[fieldName].value = undefined\n fields[fieldName].isValid = false\n fields[fieldName].required = false\n\n if(\n field.type === 'select'\n || field.type === 'checkbox'\n ) {\n fields[fieldName].isValid = true\n }\n }\n\n if(this.props.schema.required) {\n this.props.schema.required.forEach(fieldName => {\n fields[fieldName].required = true\n })\n }\n\n return fields\n }", "fill(data, fields, fieldCheck) {\n const props = {};\n const doFieldCheck = typeof fieldCheck === 'function';\n\n fields = Array.isArray(fields) ? fields : Object.keys(data);\n\n fields.forEach((propKey) => {\n if (\n !Object.prototype.hasOwnProperty.call(this.getDefinitions(), propKey)\n ) {\n return;\n }\n\n if (doFieldCheck) {\n const fieldCheckResult = fieldCheck(propKey, data[propKey]);\n if (fieldCheckResult === false) {\n return;\n } else if (fieldCheckResult) {\n props[propKey] = fieldCheckResult;\n return;\n }\n }\n\n props[propKey] = data[propKey];\n });\n console.log('properties now ', props);\n this.property(props);\n return props;\n }", "function mergeMetaFields(matched) {\n return matched.reduce((meta, record) => assign(meta, record.meta), {});\n}", "_mapFieldsToMenu() {\n const that = this;\n\n if (!that.fields && !that._valueFields) {\n return;\n }\n\n that._fields = (that.fields || that._valueFields).concat(that._manuallyAddedFields).map(field => {\n return { label: field.label, value: field.dataField, dataType: field.dataType, filterOperations: field.filterOperations, lookup: field.lookup };\n });\n }", "static getDefinedFields() {\n const fields = {};\n for (let fieldName in this) {\n const field = this[fieldName];\n if (field instanceof fields_1.Field) {\n fields[fieldName] = field;\n }\n }\n return fields;\n }", "setDetailsFieldValue() {\n let allData = this.props.venueTimeState.venueConstrainstData;\n\n ////Non playing dates value\n // if (allData.nonPlayingDates.length > 0) {\n // allData.nonPlayingDates.forEach((item, index) => {\n // let name = `name${index}`;\n // let date = `date${index}`;\n // this.formRef.current.setFieldsValue({\n // [name]: item.name,\n // [date]: moment(item.nonPlayingDate)\n // });\n // });\n // }\n\n ////Court preferences value\n if (allData.courtPreferences.length > 0) {\n allData.courtPreferences.forEach((item, index) => {\n let courtIDS = `courtIDS${index}`;\n let entitiesDivisionId = `entitiesDivisionId${index}`;\n let entitiesGradeId = `entitiesGradeId${index}`;\n this.formRef.current.setFieldsValue({\n [courtIDS]: item.venueCourtId,\n [entitiesDivisionId]: item.entitiesDivisionId,\n [entitiesGradeId]: item.entitiesGradeId,\n });\n });\n }\n }", "constructor(fields, data = {}) {\n fields.forEach((fieldDefinition) => {\n if (typeof fieldDefinition === \"string\") {\n this[fieldDefinition] = this.convertSimpleField(\n data[fieldDefinition],\n null\n );\n } else {\n // fieldDefinition must be an object\n let fieldName = fieldDefinition.name;\n let fieldType = fieldDefinition.type;\n let fieldIsList =\n typeof fieldDefinition.list !== \"undefined\"\n ? fieldDefinition.list\n : false;\n let fieldDefault =\n typeof fieldDefinition.default !== \"undefined\"\n ? this.getDefaultValue(fieldDefinition.default)\n : null;\n let fieldValue = data[fieldName];\n if (fieldIsList) {\n this[fieldName] = fieldValue\n ? fieldValue.map((item) =>\n this.convertField(fieldType, item, fieldDefault)\n )\n : fieldDefault;\n } else {\n this[fieldName] = this.convertField(\n fieldType,\n fieldValue,\n fieldDefault\n );\n }\n }\n });\n }", "assignFields(scope) {\n const fields = Object\n .keys(scope.source)\n .filter((field) => this.assignFilter(scope.source, field, scope));\n return Promise.all(\n fields.map((fieldName) => this.assignField(fieldName, scope)),\n );\n }", "function syncFields(fields,rv,fitsData) {\n const newFields= clone(fields);\n if (Number.parseInt(rv.lowerWhich)!==ZSCALE) {\n newFields.lowerRange= clone(fields.lowerRange, computeLowerRangeField(fields,rv,fitsData));\n newFields.upperRange= clone(fields.upperRange, computeUpperRangeField(fields,rv,fitsData));\n }\n\n newFields.algorithm= clone(fields.algorithm, {value: rv.algorithm});\n newFields.lowerWhich= clone(fields.lowerWhich, {value: rv.lowerWhich});\n newFields.upperWhich= clone(fields.upperWhich, {value: rv.upperWhich});\n if (newFields.lowerWhich.value===ZSCALE) newFields.lowerWhich.value= PERCENTAGE;\n if (newFields.upperWhich.value===ZSCALE) newFields.upperWhich.value= PERCENTAGE;\n\n return newFields;\n}", "injectDataIntoFormFields() {\n let fields = this.injectCategoryDataIntoFormFields()\n\n\n let initialValues = {}\n fields.forEach((field) => {\n switch (field.name) {\n case \"depth\":\n initialValues[field.name] = this.state.product.dimensions.depth\n break;\n case \"width\":\n initialValues[field.name] = this.state.product.dimensions.width \n break;\n case \"height\":\n initialValues[field.name] = this.state.product.dimensions.height \n break;\n default:\n initialValues[field.name] = this.state.product[field.name]\n break;\n }\n })\n\n\n\n return initialValues\n }", "setFields(entity, fieldValues) {\n\n if (this.guardMode) {\n throw new Error(`E_SCHEMA_GUARD_MODE: Could not mass assign entity fields in guard mode`);\n }\n\n lodash.forIn(fieldValues, (value, field) => {\n this.set(entity, field, value);\n });\n }", "function assignTestFields(n, target) {\n for (var i = 1; i <= n; i++) {\n target['test' + i] = true;\n }\n return target;\n}", "beforeInit() {\n const { ele } = this.props;\n this._value = [];\n if (!ele.fieldClass) {\n FieldUtiles.prepareFieldsRec(ele);\n }\n this.ele = ele.fieldClass\n ? ele\n : FieldUtiles.getFieldData({ ele }, ObjectField);\n }", "function calcMetaDataField_assign(data,params,field)\n{\n // only one target field is used. Note that there is data normalization\n // that occurs, causing the assignment to always have something. But\n // the rules are slightly different.\n //\n // target doesn't exist ==> null\n // target = null ==> null\n // target = single value ==> single value (as opposed to normalized array)\n // target = anything else ==> exact value of target\n //\n \n if(!field.hasOwnProperty('target')) {\n\tconsole.log('assignment in field ' + field.name + ' missing target');\n } else {\n\tvar item = normalizeDataItem(data,field.target[0]);\n\n\tif(item.length < 1) {\n\t item = null;\n\t} else if(item.length == 1) {\n\t item = item[0];\n\t}\n }\n\n return(item);\n}", "function TSplit_doAssign(split)\n {\n var i;\n for (i in split) this[i] = split[i];\n }", "prepareViewsModelsFields() {\n for(let path in this.views) {\n let view = this.views[path];\n\n for(let key in view.objects.model.fields) {\n let field = view.objects.model.fields[key];\n\n if(field.constructor.prepareField) {\n let prepared = field.constructor.prepareField(field, path);\n\n view.objects.model.fields[key] = prepared;\n }\n }\n }\n }", "function _initFields(scope, obj, isFromDB) {\n\t\tvar i,\n\t\t\tfield,\n\t\t\tinitValue;\n\n\t\tfor (i = 0; i < _configData.length; i = i + 1) {\n\t\t\tfield = _configData[i];\n\t\t\tinitValue = undefined;\n\t\t\tif (obj) {\n\t\t\t\tif (typeof obj !== \"object\") {\n\t\t\t\t\tAssert.require(_isPrimitiveType, \"PropertyBase - Sanity check failed: argument passed is not an object and there is more than one field: \" +\n\t\t\t\t\t\t\"field name: \" + field.dbFieldName +\n\t\t\t\t\t\t\" OBJ: \" + JSON.stringify(obj) +\n\t\t\t\t\t\t\" isPrimitiveType: \" + _isPrimitiveType +\n\t\t\t\t\t\t\" config length: \" + _configData.length);\n\n\t\t\t\t\tinitValue = obj;\n\t\t\t\t} else if (undefined !== obj[field.dbFieldName]) {\n\t\t\t\t\tinitValue = obj[field.dbFieldName];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// only setting the default when no raw object has been passed\n\t\t\t// We should only do this on new objects. We don't want to start setting defaults\n\t\t\t// on an object that came down from a sync source because we will send that change back up\n\t\t\t//\n\t\t\t// Do not set a default value if this object is being constructed from a DB object\n\t\t\t//\n\t\t\t// The caller needs to have an undefined check\n\t\t\tif (!isFromDB && undefined === initValue && undefined !== field.defaultValue) {\n\t\t\t\tinitValue = field.defaultValue;\n\t\t\t}\n\n\t\t\tif (field.classObject) {\n\t\t\t\tinitValue = new field.classObject(initValue);\n\t\t\t}\n\n\t\t\tif (undefined !== initValue) {\n\t\t\t\tscope[field.setterName].apply(scope, [initValue, true]);\n\t\t\t}\n\t\t}\n\t}", "function ResetCompanyFieldValues(){\n\t\t\t\n\t\t\tCompanyData.CompanyID2_FieldValue=\"NONE\";//\n\t\t\tCompanyData.CompanyEmail_FieldValue=\"NONE\";//\n\t\t\tCompanyData.CompanyPhone_FieldValue=\"NONE\";//\n\t\t\tCompanyData.Address_FieldValue=\"NONE\";//\t\t\n\t\t}", "constructor(fields = {}) {\n this.lname = fields.lname;\n this.fname = fields.fname;\n this.email = fields.email;\n this.phone = fields.phone || null;\n this.years_employed = fields.years_employed || 0;\n this.annual_leave = fields.annual_leave || 40;\n this.sick_leave = fields.sick_leave || 40;\n this.personal_day = fields.personal_day || 1;\n this.title = fields.title || null;\n this.manager_email = fields.manager_email || null;\n }", "function updatePartnersFields() {\n data.partners.forEach(partner => {\n data.fields.forEach(field => {\n let id = GatherComponent.idByPartnerField(partner, field);\n partner.attributes[field.id] = elementById(id).value;\n });\n });\n}", "getPageValues() {\n return assign( {}, pick( this.state, this.getPageFields() ) );\n }", "function assignAll() {\n\tgetPresent();\n\n\tunassignedList();\n\n\tvar unassigned = unassignedList();\n\n\tfor (var i = 0; i < unassigned.length; i++) {\n\t\tassignCapableCourier(unassigned[i]);\n\t}\n}", "applyDefaultToUndefined(field, data) {\n if(data[field] === undefined && this.model[field].default !== undefined)\n data[field] = this.model[field].default;\n }", "get fields() {\n const allFields = [\n fields.projectLocation,\n fields.projectLocationDescription,\n fields.projectPostcode,\n ];\n return conditionalFields(\n allFields,\n has('projectCountry')(data) ? allFields : []\n );\n }", "function copyFields(source, fieldList, target={}) {\n return fieldList.reduce((orig, field) => {\n if (source[field] && isNonBlank(source[field])) orig[field] = source[field]\n return orig\n }, target)\n}", "constructor() { \n PersonNameCountAndEmailInfoWithIds.initialize(this);MergePersonDealRelatedInfo.initialize(this);\n AdditionalMergePersonInfo.initialize(this);\n }", "function initializeFields() {\n // Not used\n}", "addFields(fields) {\n if (fields[0] === false) {\n this.options.fields = false;\n\n return this;\n }\n\n this.options.fields = this.options.fields || {};\n\n fields.forEach((field) => {\n if (isArray(field)) {\n field.forEach((field) => {\n this.options.fields[field] = field;\n });\n } else if (isObject(field)) {\n this.options.fields = Object.assign(this.options.fields, field);\n } else if (isString(field)) {\n this.options.fields[field] = field;\n }\n });\n\n return this;\n }", "function initFromCommon(item, common) {\n if (common.type !== void 0) {\n item.type = common.type;\n }\n if (common.text !== void 0) {\n item.text = common.text;\n }\n if (common.shortcut !== void 0) {\n item.shortcut = common.shortcut;\n }\n if (common.disabled !== void 0) {\n item.disabled = common.disabled;\n }\n if (common.hidden !== void 0) {\n item.hidden = common.hidden;\n }\n if (common.checked !== void 0) {\n item.checked = common.checked;\n }\n if (common.className !== void 0) {\n item.className = common.className;\n }\n if (common.handler !== void 0) {\n item.handler = common.handler;\n }\n}", "function calculate_common_fields() {\n var r = get_all_pi_data();\n var vpfvi = pii_vault.aggregate_data.pi_field_value_identifiers;\n var common_fields = {};\n\n for (f in r) {\n\tfor (v in r[f]) {\n\t var value_identifier = undefined;\n\t if (v in vpfvi) {\n\t\tvalue_identifier = vpfvi[v];\n\t }\n\t else {\n\t\tvar j = 1;\n\t\tvar identifier_array = Object.keys(vpfvi).map(function(key){\n\t\t\treturn vpfvi[key];\n\t\t });\n\t\t//Just to check that this identifier does not already exist.\n\t\twhile(1) {\n\t\t value_identifier = f + j;\n\t\t if (identifier_array.indexOf(value_identifier) == -1) {\n\t\t\tbreak;\n\t\t }\n\t\t j++;\n\t\t}\n\t\tvpfvi[v] = value_identifier;\n\t }\n\t common_fields[value_identifier] = r[f][v].substring(0, r[f][v].length - 2 ).split(\",\");\n\t}\n }\n \n pii_vault.current_report.common_fields = common_fields;\n flush_selective_entries(\"current_report\", [\"common_fields\"]);\n flush_selective_entries(\"aggregate_data\", [\"pi_field_value_identifiers\"]);\n}", "assign(target, data, omitFields = [] ) {\n let changes = this._copyFields(target, data, omitFields);\n\n if (data.elements !== undefined) {\n if (target.elements !== undefined) {\n changes['elements'] = [...target.elements]\n }\n target.elements = [];\n for (let index = 0; index < data.elements.length; index++) {\n target.elements.push(typeof data.elements[index] !== 'object' ? {id: data.elements[index]} : data.elements[index])\n }\n }\n if (!target.title && Object.keys(changes).length) {\n target.title = '(no title)';\n changes.title = ''\n }\n\n if (Object.keys(changes).length) {\n if (target['creationData'] === undefined) {\n target['creationDate'] = Date.now()\n }\n target['modifiedDate'] = Date.now();\n }\n return target;\n }", "function set_all_meta_inputs() {\n var proj_inputs = $('#proj');\n var common_inputs = $('#sample_common_form');\n read_object_from_temp('proj_inputs', function (obj, form) {\n set_proj_meta_inputs(form, obj);\n\n read_object_from_temp('common_inputs', function (obj, form) {\n set_common_meta_inputs(form, obj);\n\n for (var id in sample_forms) {\n var sample_form = sample_forms[id];\n read_object_from_temp('sample_' + id + '_inputs', function (obj, form) {\n // Give it a timeout so that everything else has been set up.\n setTimeout(set_sample_meta_inputs, 2000, form, obj);\n }, sample_form);\n }\n }, common_inputs);\n }, proj_inputs);\n\n // Re-fire factor change.\n proj_inputs.find('.proj_experimental_design_group').find('select').change();\n setTimeout(function () {\n common_inputs.find('.sample_characteristics_group').find('button').change();\n }, 4000);\n}", "setSearchEngineFields() {\n this.searchEngine.setFields(this.fields);\n this.searchEngine.setSortFields(this.sortFields);\n }", "function assign(newStats) {\n\n // Flip iAmRed.\n newStats.iAmRed = !newStats.iAmRed;\n\n // Swap names.\n var temp = newStats.myName;\n newStats.myName = newStats.theirName;\n newStats.theirName = temp;\n\n // Swap readinesses.\n temp = newStats.iAmReady;\n newStats.iAmReady = newStats.theyAreReady;\n newStats.theyAreReady = temp;\n\n // Swap desires to rematch.\n temp = newStats.iWantMore;\n newStats.iWantMore = newStats.theyWantMore;\n newStats.theyWantMore = temp;\n\n // Update our stats.\n Object.assign(stats, newStats);\n }", "function getFields() {\n console.log(DataDB.find().count())\n var unique_data_sets = unique(data.retina.map(function(d) {\n return d.data_set;\n }));\n Session.set(\"data_set\", unique_data_sets[0])\n for(var i = 0; i < unique_data_sets.length; i++) {\n var unique_cell_types = unique(data.retina.filter(function(d) {\n return d.data_set == unique_data_sets[i]\n }).map(function(d) {\n return d.cell_type;\n }));\n var unique_fit_types = unique(data.retina.filter(function(d) {\n return d.data_set == unique_data_sets[i]\n }).map(function(d) {\n return d.fit_type;\n }));\n DataDB.insert({\n data_set: unique_data_sets[i],\n cell_types: unique_cell_types,\n fit_types: unique_fit_types\n })\n if(i === 0) {\n Session.set(\"cell_type\", unique_cell_types[0])\n Session.set(\"fit_type\", unique_fit_types[0])\n }\n };\n }", "initialiseSurveyFieldsMirror() {\n this.addListener(App.EVENT_NEW_SURVEY, () => {\n console.log('Try to initialise core fields of new survey.');\n if (this._coreSurveyFieldCache) {\n console.log({'Using cached survey values' : this._coreSurveyFieldCache});\n for (let key of this._coreSurveyFields) {\n this.currentSurvey.attributes[key] = this._coreSurveyFieldCache[key];\n }\n }\n });\n\n this.addListener(App.EVENT_SURVEYS_CHANGED, () => {\n if (this.currentSurvey && !this.currentSurvey.isNew) {\n for (let key of this._coreSurveyFields) {\n this._coreSurveyFieldCache[key] = this.currentSurvey.attributes[key];\n }\n\n console.log({'Saved core survey fields' : this._coreSurveyFieldCache});\n }\n });\n\n this.addListener(App.EVENT_RESET_SURVEYS, () => {\n this._coreSurveyFieldCache = [];\n console.log('Have reset core survey field cache.');\n });\n }", "initDataListVariables(entity_name) {\n\t\tthis.entity_name = entity_name;\n\t\tthis.lowercase_entity_name = entity_name.replace(/([a-z0-9])([A-Z])/g, '$1_$2').toLowerCase();\n\t\tthis.included_all_object = {...this.included_attributes_object,...this.included_relationships_object};\n\t\tlet included_keys = Object.keys(this.included_all_object);\n\t\tthis.current_sort_column = [included_keys[0],true]; // Sort on first column, desc\n\t}", "data() {\n let data = {};\n\n for (let property in this.originalData) {\n let field = this[property];\n\n //if ( !field ) continue;\n\n if ( this.dateFields.includes(property) ) {\n field = this.parseAsDate(field);\n }\n\n if ( this.floatFields.includes(property) ) {\n field = this.parseAsFloat(field);\n }\n \n data[property] = field;\n }\n\n return data;\n }", "function ReadCompanyFields () {\n\t\t\t\t\n\t\t\t//alert(\"(DEBUG)ReadCompanyFields()- starting\");\t\n\t\t\t\n\t\t\tif (typeof $scope.CompanyID2_Input_Model !== 'undefined' && $scope.CompanyID2_Input_Model !== null && $scope.CompanyID2_Input_Model !== \"\") {\n\t\t\t\tCompanyData.CompanyID2_FieldValue = $scope.CompanyID2_Input_Model; \n\t\t\t}else{\n\t\t\t\tCompanyData.CompanyID2_FieldValue = \"NONE\";\n\t\t\t}\n\t\t\t\n\t\t\tif (typeof $scope.CompanyEmail_Input_Model !== 'undefined' && $scope.CompanyEmail_Input_Model !== null && $scope.CompanyEmail_Input_Model !== \"\") {\n\t\t\t\tCompanyData.CompanyEmail_FieldValue = $scope.CompanyEmail_Input_Model; \n\t\t\t}else{\n\t\t\t\tCompanyData.CompanyEmail_FieldValue = \"NONE\";\n\t\t\t}\n\n\t\t\tif (typeof $scope.CompanyPhone_Input_Model !== 'undefined' && $scope.CompanyPhone_Input_Model !== null && $scope.CompanyPhone_Input_Model !== \"\") {\n\t\t\t\tCompanyData.CompanyPhone_FieldValue = $scope.CompanyPhone_Input_Model; \n\t\t\t}else{\n\t\t\t\tCompanyData.CompanyPhone_FieldValue = \"NONE\";\n\t\t\t}\n\t\t\t\n\t\t\tif (typeof $scope.CompanyAddress_Input_Model !== 'undefined' && $scope.CompanyAddress_Input_Model !== null && $scope.CompanyAddress_Input_Model !== \"\") {\n\t\t\t\tCompanyData.Address_FieldValue = $scope.CompanyAddress_Input_Model; \n\t\t\t}else{\n\t\t\t\tCompanyData.Address_FieldValue = \"NONE\";\n\t\t\t}\t\t\t\n\t\t\t\t\t\t\n\t\t\t$debug_string = \"\\nCompanyID2_FieldValue=\"+CompanyData.CompanyID2_FieldValue;\n\t\t\t$debug_string +=\"\\nCompanyEmail_FieldValue=\"+CompanyData.CompanyEmail_FieldValue;\n\t\t\t$debug_string +=\"\\nCompanyPhone_FieldValue=\"+CompanyData.CompanyPhone_FieldValue;\n\t\t\t$debug_string +=\"\\nCompanyAddress_FieldValue=\"+CompanyData.Address_FieldValue;\n\t\t\t//alert(\"(DEBUG)ReadCompanyFields()-data=\"+$debug_string);\n\t\t\t\n\t\t}", "_initSearchFields() {\n\t\t\tvar oFields = this._oViewModel.getProperty(\"/fields\");\n\t\t\tvar aSearchFields = Object.entries(oFields)\n\t\t\t\t.filter(([, oField]) => oField.canSearch)\n\t\t\t\t.map(([sKey, oField]) => Object.assign({\n\t\t\t\t\tpath: sKey,\n\t\t\t\t\tsearchSelected: true\n\t\t\t\t}, oField));\n\t\t\tthis._oViewModel.setProperty(\"/search/fields\", aSearchFields);\n\t\t}", "_initializeSearchFieldConstants() {\n this.constants = {};\n Object.assign(this.constants, {\n searchFieldNames: Object.keys(this._searchFields),\n stateSelectionFilter: this._stateSelectionFilter,\n });\n }", "setCustomerFieldValues(currentValues) {\n\t\tthis.customerFieldValues.replace(currentValues);\n\n\t\tthis.props.business.customerFields.forEach((field) => {\n\t\t\tif (this.customerFieldValues.has(field.id)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (typeof field.defaultValue === 'string' || typeof field.defaultValue === 'number') {\n\t\t\t\tthis.customerFieldValues.set(field.id, field.defaultValue);\n\t\t\t}\n\t\t});\n\t}", "function ResetPatientFieldValues(){\t\t\t\n\t\t\t\n\t\t\tPatientData.PatientID_FieldValue=\"NONE\";//\n\t\t\tPatientData.Forename_FieldValue=\"NONE\";//\n PatientData.MiddleName_FieldValue=\"NONE\";//\n\t\t\tPatientData.FirstSurname_FieldValue=\"NONE\";//\n\t\t\tPatientData.SecondSurname_FieldValue=\"NONE\";//\n\t\t\tPatientData.PatientPhone_FieldValue=\"NONE\";//\n\t\t\tPatientData.PatientEmail_FieldValue=\"NONE\";//\n\t\t\tPatientData.CompanyID_FieldValue=\"NONE\";//\n\t\t\tPatientData.Site_FieldValue=\"NONE\";\n\t\t\tPatientData.Department_FieldValue=\"NONE\";\n\t\t\tPatientData.BirthDate_FieldValue=\"NONE\";\n\t\t\tPatientData.JoinDate_FieldValue=\"NONE\";\n\t\t\tPatientData.Gender_FieldValue=\"NONE\";\n\t\t\tPatientData.PatientAddress_FieldValue=\"NONE\";\t\t\t\n\t\t\tPatientData['Income_FieldValue']=\"NONE\";\t\n\t\t}", "assignField(fieldName, scope) {\n const obj = scope.model;\n if (_.isFunction(this.dataSource.assignField)) {\n return this.dataSource.assignField(fieldName, scope);\n } else {\n return this.setProp(obj, fieldName, scope.source[fieldName]);\n }\n }", "static packViewedFields(fields) {\n return [this.FieldsPrefix, fields.length, ...new Set(fields).values()];\n }", "get fields() {\n var c = this.payloadClass;\n return merge(this._dynamicFields, c._fields);\n }", "_init(fields) {\n if (fields && fields.length) {\n let cols = fields.replace(/ /g, \"\").split(',');\n if (cols.length > 0) {\n this.cols = [];\n cols.forEach(c => {\n this._internalAddColumn(c);\n });\n }\n }\n }", "initBySavedData() {\n if (this.s.unavailable()) {\n return;\n }\n\n this.dispField.items.forEach((val, i) => {\n const storageItem = this.s.get(val);\n const showTarget = storageItem === null ? true : storageItem === \"true\";\n this.dispField.check(val, showTarget);\n this.dispField.show(this.dispField.getOrderName(i), showTarget);\n });\n\n if (this.s.has(\"sort\")) {\n const sorts = this.s.get(\"sort\").split(',').reverse();\n\n for (const val of sorts) {\n $(\"#\" + val).prependTo(this.sortableField.id);\n }\n }\n\n if (this.s.has(\"format\")) {\n this.formatField.set(this.s.get(\"format\"));\n } else {\n this.formatField.set(0);\n }\n\n this.unitField.set(this.s.get(\"unit\"));\n }", "function copyFields(target, source) {\r\n for (var id in source) {\r\n target[id] = source[id];\r\n }\r\n return target;\r\n}", "setFillItem(item , index){\n for(let field in this.originalData){\n\n if(field in item){\n this[field] = item[field];\n }else{\n // if is index\n if(field == 'index'){ this[field] = index; }\n\n }\n\n }\n\n }", "function fillFields(response) {\n const { name, cpf_cnpj, rg, phone, email, active } = response.person;\n console.log(response.peopleType);\n const typeIds = response.peopleType.map((index) => {\n if (index.Type_people.active) {\n return index.Type_people.id_type;\n }\n });\n\n console.log(typeIds);\n\n console.log(typeIds.includes(\"1\"));\n\n name ? setName(name) : setName(\"\");\n\n cpf_cnpj ? setCpf_cnpj(cpf_cnpj) : setCpf_cnpj(\"\");\n\n rg ? setRg(rg) : setRg(\"\");\n\n phone ? setPhone(phone) : setPhone(\"\");\n\n email ? setEmail(email) : setEmail(\"\");\n\n active ? setActive(active) : setActive(false);\n\n typeIds.includes(1) || typeIds.includes(\"1\")\n ? setCheckedTypeAdmin(true)\n : setCheckedTypeAdmin(false);\n\n typeIds.includes(2) || typeIds.includes(\"2\")\n ? setCheckedTypeAttendance(true)\n : setCheckedTypeAttendance(false);\n\n typeIds.includes(3) || typeIds.includes(\"3\")\n ? setCheckedTypeDriver(true)\n : setCheckedTypeDriver(false);\n }", "function setDataFields(formField, options) {\n // For search widget, set search key and display label\n if (isSearchWidgetType(formField[options.widget])) {\n formField.datafield = options.aliasColumn || LIVE_CONSTANTS.LABEL_KEY;\n formField.searchkey = options.distinctField || LIVE_CONSTANTS.LABEL_KEY;\n formField.displaylabel = formField.displayfield = (options.aliasColumn || LIVE_CONSTANTS.LABEL_VALUE);\n return;\n }\n formField.datafield = LIVE_CONSTANTS.LABEL_KEY;\n formField.displayfield = LIVE_CONSTANTS.LABEL_VALUE;\n}", "function prepareToRead() {\n if (fields) return; // already initialized\n var headerEncoding = 'ascii';\n initEncoding();\n if (getNonAsciiHeaders().length > 0) {\n headerEncoding = getEncoding();\n }\n fields = header.fields.map(function(f) {\n var copy = utils.extend({}, f);\n copy.name = decodeString(f.namebuf, headerEncoding);\n return copy;\n });\n // Uniqify header names\n getUniqFieldNames(utils.pluck(fields, 'name')).forEach(function(name2, i) {\n fields[i].name = name2;\n });\n }", "function setupFields() {\r\n this.foreach(function (field) {\r\n // Exclude layout container elements\r\n if (/^(?!vbox|hbox)/.test(field.type)) {\r\n if (!field.setup) {\r\n // Read the dialog fields values from the specified\r\n // element attributes.\r\n field.setup = function (element) {\r\n field.setValue(element.getAttribute(field.id) || '');\r\n };\r\n }\r\n if (!field.commit) {\r\n // Set element attributes assigned by the dialog\r\n // fields.\r\n field.commit = function (element) {\r\n var fieldValue = this.getValue();\r\n // ignore default element attribute values\r\n if ('dir' == field.id && element.getComputedStyle('direction') == fieldValue)\r\n return;\r\n\r\n if (fieldValue)\r\n element.setAttribute(field.id, fieldValue);\r\n else\r\n element.removeAttribute(field.id);\r\n };\r\n }\r\n }\r\n });\r\n }", "reset() {\n for (let field in this.originalData) {\n this[field] = '';\n }\n\n this.errors.clear();\n }", "reset() {\n for (let field in this.originalData) {\n this[field] = '';\n }\n\n this.errors.clear();\n }", "reset() {\n for (let field in this.originalData) {\n this[field] = '';\n }\n\n this.errors.clear();\n }", "function populate(frm, formDataDefault) {\n\t\t$.each(formDataDefault, function(key, value) {\n\t\t\tvar ctrl = $('[name=' + key + ']', frm);\n\t\t\tswitch (ctrl.prop(\"type\")) {\n\t\t\t\tcase \"radio\":\n\t\t\t\tcase \"checkbox\":\n\t\t\t\t\tctrl.each(function() {\n\t\t\t\t\t\tif ($(this).attr('value') == value) $(this).attr(\"checked\", value);\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tctrl.val(value);\n\t\t\t}\n\t\t});\n\t}", "assign(){\n index = this.index; \n PlayerIndex = this.playerIndex;\n block = this.block;\n turn = this.turn;\n }", "function defineClassVars(vars) {\n // Restructure vars from: { public: { varName: options } } to: { varName: options }\n let varsBuffer = {}\n if ('public' in vars) {\n for (let n of Object.keys(vars.public)) {\n if (Object.keys(varsBuffer).length > 0 && n in varsBuffer) // Check for duplicate variable names\n throw new Error(`The field '${n}' cannot be redeclared`)\n if (vars.public[n] != null && typeof vars.public[n] == 'object' && 'value' in vars.public[n])\n varsBuffer[n] = Object.assign({}, vars.public[n], { public: true })\n else\n varsBuffer[n] = { public: true, value: vars.public[n] }\n delete varsBuffer[n].pointer\n }\n }\n if ('private' in vars) {\n for (let n of Object.keys(vars.private)) {\n if (Object.keys(varsBuffer).length > 0 && n in varsBuffer) // Check for duplicate variable names\n throw new Error(`The field '${n}' cannot be redeclared`)\n if (vars.private[n] != null && typeof vars.private[n] == 'object' && 'value' in vars.private[n])\n varsBuffer[n] = Object.assign({}, vars.private[n], { public: false })\n else\n varsBuffer[n] = { public: false, value: vars.private[n] }\n delete varsBuffer[n].pointer\n }\n }\n if (Object.keys(varsBuffer).length > 0) vars = varsBuffer\n\n // Check for duplicate variable names\n if (Object.keys(extendTemplate).length > 0) {\n varsBuffer = {}\n for (let n of Object.keys(extendTemplate)) {\n if (Object.keys(vars).length > 0 && n in vars)\n throw new Error(`The field '${n}' cannot be redeclared`)\n if (Object.keys(varsBuffer).length > 0 && n in varsBuffer)\n throw new Error(`The field '${n}' cannot be redeclared`)\n varsBuffer[n] = extendTemplate[n]\n }\n }\n\n vars = Object.assign({}, vars, extendTemplate) // Merge extendTemplate with vars\n extendTemplate = Object.assign({}, vars) // Prepare extendTemplate for next subclass\n\n // Iterate each of the variables to be created\n for (let n of Object.keys(vars)) {\n let v = vars[n]\n\n if (typeof v == 'object' && ('value' in v || 'public' in v || 'static' in v || 'final' in v)) { // standard syntax\n if (v.public == null) v.public = true\t// defaults to public\n if (v.static == null) v.static = false\t// defaults to instanced (non-static)\n if (v.final == null) v.final = false\t// defaults to mutable (non-final)\n } else { // shorthand syntax\n v = {\n value: v,\n public: true,\n static: false,\n final: false\n }\n }\n\n if (v.static) { // add static variable to static var and update pointer for extending\n v.pointer = createStaticVar(n, v.value, v.pointer)\n } else { // add instanced variable to instanced var object\n instanceTemplate[n] = v.value\n }\n\n publicLedger[n] = v.public\n staticLedger[n] = v.static\n finalLedger[n] = v.final\n\n // Internally expose vars to class\n VarHandler.prototype.__defineGetter__(n, function() {\n if (staticLedger[n]) // variable is static\n return getStaticVar(n)\n else // variable is instanced\n return instanceVars.get(this._this)[n]\n })\n VarHandler.prototype.__defineSetter__(n, function(v) {\n if (staticLedger[n]) { // variable is static\n if (finalLedger[n] && getStaticVar(n) != null) // check if final\n throw new Error(`The final field '${n}' cannot be reassigned`)\n\n setStaticVar(n, v)\n } else { // variable is instanced\n let varsBuffer = instanceVars.get(this._this)\n\n if (finalLedger[n] && varsBuffer[n] != null) // check if final\n throw new Error(`The final field '${n}' cannot be reassigned`)\n\n varsBuffer[n] = v\n instanceVars.set(this._this, varsBuffer)\n }\n })\n\n // Expose public static vars\n if (v.public && v.static) {\n BaseClass.prototype.__defineGetter__(n, function() {\n return getStaticVar(n)\n })\n BaseClass.prototype.__defineSetter__(n, function(v) {\n if (finalLedger[n] && getStaticVar(n) != null) // check if final\n throw new Error(`The final static field '${n}' cannot be reassigned`)\n setStaticVar(n, v)\n })\n BaseClass.__defineGetter__(n, function() {\n return getStaticVar(n)\n })\n BaseClass.__defineSetter__(n, function(v) {\n if (finalLedger[n] && getStaticVar(n) != null) // check if final\n throw new Error(`The final static field '${n}' cannot be reassigned`)\n setStaticVar(n, v)\n })\n }\n }\n }", "getFieldProps (field) {\n\t\tvar props = assign({}, field);\n\t\tprops.value = this.state.values[field.path];\n\t\tprops.values = this.state.values;\n\t\tprops.onChange = this.handleChange;\n\t\tprops.mode = 'create';\n\t\tprops.key = field.path;\n\t\treturn props;\n\t}", "setFieldValues(fieldValues) {\n if (Array.isArray(fieldValues)) {\n fieldValues.forEach(this.setFieldValue);\n } else {\n for (const key of Object.keys(fieldValues)) {\n this.setFieldValue({ name: key, value: fieldValues[key] })\n }\n }\n }", "function updateFieldsFromRange() {\n return;\n if (settings.mode !== 'FDM' || !api.view.is_slice() || !settings.process.ranges) {\n let okeys = Object.keys(overrides);\n if (okeys.length) {\n api.conf.update_fields(overrides);\n overrides = {};\n }\n return;\n }\n let match = 0;\n let values = {};\n let restores = Object.clone(overrides);\n let { layer_lo, layer_hi } = api.var;\n for (let range of getOverlappingRanges(api.var.layer_lo, api.var.layer_hi)) {\n for (let key of Object.keys(range.fields)) {\n values[key] = range.fields[key];\n overrides[key] = settings.process[key];\n delete restores[key];\n match++;\n }\n }\n if (match) {\n api.conf.update_fields(values);\n }\n let rkeys = Object.keys(restores);\n if (rkeys.length) {\n api.conf.update_fields(restores);\n for (let key of rkeys) {\n delete overrides[key];\n }\n }\n api.uc.refresh();\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}", "assign(target, data, omitFields = [] ) {\n let changes = super.assign(target, data, omitFields);\n if (target.subType === undefined) {\n target.subType = 'columns'\n changes.subType = ''\n }\n // image is allowed but should exist withing the current layout\n if (LayoutSubTypes.indexOf(target.subType) < 0) {\n target.subType = 'columns'\n }\n if (!target.image) {\n target.image = ImageUtil.randomImage('layout');\n if (!target.image) {\n delete target.image\n }\n }\n return target;\n }", "function pick$2(obj, arr) {\n\t var res = {};\n\t for (var i = 0, len = arr.length; i < len; i++) {\n\t var parsedField = parseField$1(arr[i]);\n\t var value = getFieldFromDoc$1(obj, parsedField);\n\t if (typeof value !== 'undefined') {\n\t setFieldInDoc(res, parsedField, value);\n\t }\n\t }\n\t return res;\n\t}", "get fields() {\n let fields = pick(this, keys(this.initialFields));\n\n // Here we unset null fields.\n forIn(fields, function (value, key) {\n if (value == null) {\n delete fields[key];\n }\n })\n\n return fields;\n }", "function update() {\n\t\tfilterName = $(\"#new_pipeline #filterName\");\n\t\trequestType = $(\"#new_pipeline #requestType\");\n\t\trequestRank = $(\"#new_pipeline #requestRank\");\n\t\tmakeTrace = $(\"#new_pipeline #makeTrace\");\n\t\ttips = $(\"#new_pipeline .validateTips\");\n\t\tallFields = $([]).add(filterName).add(requestType).add(requestRank).add(makeTrace);\n\t}", "function fillIn(obj, var_defaults){\n\t forEach(slice(arguments, 1), function(base){\n\t forOwn(base, function(val, key){\n\t if (obj[key] == null) {\n\t obj[key] = val;\n\t }\n\t });\n\t });\n\t return obj;\n\t }", "function fillInAnyNewData(taxonName, field, idx, tP) { // console.log(\"fillInAnyNewData aclled for \", taxonName); \n if ( tP.fieldAry.indexOf(field) === tP.fieldAry.length - 1 ) { return; } //console.log(\"last field in set\"); \n if (tP.fieldAry[0] === field) { fillNullGenus() } //If species...\n var existingParentId = tP.taxaObjs[taxonName].parent;\n var newParentId = linkparentTaxonId(idx, tP);\n\n if ( newParentId !== existingParentId ) {\n checkIfTreesMerge(taxonName, newParentId, existingParentId, tP); \n }\n // If Genus is null, set genus as the first word of the species string.\n function fillNullGenus() {\n if (tP.recrd[tP.fieldAry[1]] === null) { \n tP.recrd[tP.fieldAry[1]] = tP.genusParent; }\n }\n }", "static claerFields() {\n document.querySelector('#title').value = '';\n document.querySelector('#author').value = '';\n document.querySelector('#isbn').value = '';\n }", "createDefaultData() {\n this.formData = Object.assign({}, dataApplier(this.formData));\n }", "static initialize(obj, actionField, emailField, flowIDField) { \n obj['ActionField'] = actionField;\n obj['EmailField'] = emailField;\n obj['FlowIDField'] = flowIDField;\n }", "function parseArticleFields(article) {\n\t// Can't assume that any of the values will be present in the, returned\n\t// article data set. Initialise all of the fields as their empty placeholders,\n\t// and fill them if they're defined in the 'article' object \n\tvar title = \"No Title Provided\";\n\tvar snippet = \"No Snippet Provided\";\n\tvar year = \"\";\n\tvar relevance = \"\";\n\tvar url = \"http://trove.nla.gov.au/\";\n\n\n\tif (article.title != undefined) title = article.title;\n\tif (article.snippet != undefined) snippet = article.snippet;\n\tif (article.issued != undefined) year = article.issued;\n\tif (article.relevance != undefined) relevance = article.relevance;\n\tif (article.troveUrl != undefined) url = article.troveUrl;\n\n\n\tvar articleData = {\n\t\ttitle: title,\n\t\tsnippet: snippet,\n\t\tyear: year,\n\t\trelevance: relevance,\n\t\turl: url\n\t}\n\n\treturn articleData;\n}", "function index_browser_es_pick(obj, arr) {\n var res = {};\n for (var i = 0, len = arr.length; i < len; i++) {\n var parsedField = parseField(arr[i]);\n var value = getFieldFromDoc(obj, parsedField);\n if (typeof value !== 'undefined') {\n setFieldInDoc(res, parsedField, value);\n }\n }\n return res;\n}", "function setAddressRelatedFieldValues(record){\r\n record.setFieldValue('billaddresslist', record.getFieldValue('billaddresslist') || '');\r\n record.setFieldValue('billaddress', record.getFieldValue('billaddress') || '');\r\n record.setFieldValue('shipaddresslist', record.getFieldValue('shipaddresslist') || '');\r\n record.setFieldValue('shipaddress', record.getFieldValue('shipaddress') || '');\r\n}", "function assignVals(o) {\n // replace the original ids in our intermediate _ids structure\n // with the documents found by query\n assignRawDocsToIdStructure(o.rawIds, o.rawDocs, o.rawOrder, o.options,\n o.localField, o.foreignField);\n\n // now update the original documents being populated using the\n // result structure that contains real documents.\n\n var docs = o.docs;\n var rawIds = o.rawIds;\n var options = o.options;\n\n function setValue(val) {\n return valueFilter(val, options);\n }\n\n for (var i = 0; i < docs.length; ++i) {\n if (utils.getValue(o.path, docs[i]) == null &&\n !o.originalModel.schema._getVirtual(o.path)) {\n continue;\n }\n\n if (o.isVirtual && !o.justOne && !Array.isArray(rawIds[i])) {\n if (rawIds[i] == null) {\n rawIds[i] = [];\n } else {\n rawIds[i] = [rawIds[i]];\n }\n }\n\n if (o.isVirtual && docs[i].constructor.name === 'model') {\n // If virtual populate and doc is already init-ed, need to walk through\n // the actual doc to set rather than setting `_doc` directly\n mpath.set(o.path, rawIds[i], docs[i]);\n } else {\n var parts = o.path.split('.');\n var cur = docs[i];\n for (var j = 0; j < parts.length - 1; ++j) {\n if (cur[parts[j]] == null) {\n cur[parts[j]] = {};\n }\n cur = cur[parts[j]];\n }\n if (docs[i].$__) {\n docs[i].populated(o.path, o.allIds[i], o.allOptions);\n }\n utils.setValue(o.path, rawIds[i], docs[i], setValue);\n }\n }\n}", "_setRequiredFields() {\n const that = this;\n\n if (!that.requiredFields || !that.requiredFields.length) {\n return;\n }\n\n const currentValue = that.value;\n let reqGroup = [];\n\n for (let i = 0; i < that.requiredFields.length; i++) {\n const reqField = that.requiredFields[i],\n field = that.fields.find(field => field.dataField === reqField);\n\n if (field) {\n let valueRecords = [];\n\n if (currentValue) {\n let i = 0;\n\n //Doing a lookup on the value for records that contain 'requiredFields'\n //Modifies the value dynamically\n while (i < currentValue.length) {\n const val = currentValue[i];\n\n if (Array.isArray(val)) {\n let r = 0;\n\n while (r < val.length) {\n let record = val[r];\n\n if (record && record[0] === field.dataField) {\n valueRecords.push(record);\n val.splice(r > 0 ? r - 1 : r, 2);\n continue;\n }\n\n r++;\n }\n }\n\n if (!val.length) {\n currentValue.splice(i, 2);\n continue;\n }\n\n i++;\n }\n }\n\n //Check if group records exist inside value\n if (valueRecords) {\n for (let r = 0; r < valueRecords.length; r++) {\n reqGroup.push(valueRecords[r]);\n reqGroup.push('and');\n }\n }\n else {\n //If no records create a placeholder\n reqGroup.push([reqField]);\n reqGroup.push('and');\n }\n }\n }\n\n //Remove the lastly added 'and' condition\n if (typeof reqGroup[reqGroup.length - 1] === 'string') {\n reqGroup.pop();\n }\n\n //Add the Required Fields on Top of the value\n that.value.unshift(reqGroup, 'and')\n }", "reset() {\n for (let field in this.originalData) {\n this[field] = '';\n }\n\n this.errors.clear();\n }", "setData(dataObj) {\n for (let field in dataObj) {\n this.data[field] = dataObj[field];\n this.changedFields.add(field);\n }\n }", "function dissection_sticky_fields_copy() {\nlogger(\"dissection_sticky_fields_copy()\");\n var vals = window.dissection_sticky_vals;\n if (vals == null) { return } // first dissection\n var sf = window.dissection_sticky_fields;\n var form = $(featherlight_selector()+\" form\");\n for (const tag in sf) {\n sf[tag].forEach(function(field) {\n var name = \"sample[\"+field+\"]\";\n var elem = form.find(tag+\"[name='\"+name+\"']\").val(vals[field]);\n if (tag == \"select\") {\n elem.trigger(\"change\");\n }\n });\n }\n}", "static fields () {\n return { \n id: this.attr(null), \n brand: this.attr(''),\n c_price: this.attr(''),\n catalog_brand_id: this.attr(''),\n catalog_cate_id: this.attr(''),\n catalog_county_id: this.attr(''),\n catalog_unit_id: this.attr(''),\n code: this.attr(''),\n county: this.attr(''),\n created_at: this.attr(''),\n d_price: this.attr(''),\n e_price: this.attr(''), \n m_price: this.attr(''),\n name: this.attr(''),\n nh_price: this.attr(''),\n seq: this.attr(''),\n sku: this.attr(''),\n t_price: this.attr(''),\n unit: this.attr(''),\n updated_at: this.attr(''),\n weight: this.attr(''),\n shipping: this.attr(''), \n qty: this.attr(''), \n amount: this.attr(''), \n profit: this.attr(''), \n }\n }", "function associateData (newItem, items, field, zoteroField) {\n\tif (items[field]) {\n\tnewItem[zoteroField] = items[field];\n\t}\n}", "function injectData(m,c){\n\t\t\tif (fields && fields.length) { // Case 1, copy the [several] specified fields from new object to masterData object\n\t\t\t\tif(fields[0]==\"*\"){ // copy all fields\n\t\t\t\t\tCIQ.extend(m, c);\n\t\t\t\t}else{\n\t\t\t\t\tfor (var i = 0; i < fields.length; i++) {\n\t\t\t\t\t\tm[fields[i]] = c[fields[i]];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (createObject) { // Case 2, the new object will become a child object of the masterData object\n\t\t\t\tm[label] = c;\n\t\t\t} else if (fieldForLabel) { // Case 3, copy the data from one label (fieldForLabel) to another (label)\n\t\t\t\tm[label] = c[fieldForLabel];\n\t\t\t} else if (isLineType && defaultPlotField && c[defaultPlotField] !== undefined) { // If a default field on the chart has been provided, then use that if it's in the new object\n\t\t\t\tm[label] = c[defaultPlotField];\n\t\t\t} else if (layout.adj && c.Adj_Close !== undefined) { // If Adjusted close is in the new object, use that\n\t\t\t\tm[label] = c.Adj_Close;\n\t\t\t} else if (c.Close !== undefined) { // If Close is in the new object use that\n\t\t\t\tm[label] = c.Close;\n\t\t\t} else if(c.Value !== undefined) { // If \"Value\" is in the new object use that\n\t\t\t\tm[label] = c.Value;\n\t\t\t}else { // Default to copying the same label from the old to the new object.\n\t\t\t\tm[label] = c[label];\n\t\t\t}\n\t\t}", "function accumulate(dict, defs) {\n defs.forEach(function (fieldDef) {\n // Consider only pure fieldDef properties (ignoring scale, axis, legend)\n var pureFieldDef = ['field', 'type', 'value', 'timeUnit', 'bin', 'aggregate'].reduce(function (f, key$$1) {\n if (fieldDef[key$$1] !== undefined) {\n f[key$$1] = fieldDef[key$$1];\n }\n return f;\n }, {});\n var key$$1 = hash(pureFieldDef);\n dict[key$$1] = dict[key$$1] || fieldDef;\n });\n return dict;\n }" ]
[ "0.5959618", "0.5810431", "0.5778541", "0.57492185", "0.5659831", "0.5567871", "0.5419523", "0.5365992", "0.53191066", "0.52941424", "0.5288597", "0.5285243", "0.52661186", "0.52308005", "0.52087677", "0.520761", "0.5177636", "0.5176716", "0.51059186", "0.5076708", "0.5065225", "0.50546867", "0.50526273", "0.5038563", "0.50348216", "0.5020436", "0.50096196", "0.4987132", "0.49808913", "0.49702537", "0.49692622", "0.49135247", "0.48947352", "0.48917958", "0.4884005", "0.48722112", "0.4871938", "0.48642188", "0.48628706", "0.48559", "0.48203424", "0.4813494", "0.48110712", "0.48039472", "0.4788949", "0.4787609", "0.4786536", "0.4771085", "0.47670883", "0.47650605", "0.475938", "0.47474542", "0.47366542", "0.47285256", "0.47024202", "0.46996978", "0.46958393", "0.4687331", "0.46862316", "0.46767783", "0.46766666", "0.46748212", "0.4673218", "0.46677655", "0.46671534", "0.466467", "0.4657816", "0.46492216", "0.46491775", "0.46486077", "0.4644185", "0.4644185", "0.4644185", "0.4642997", "0.46305385", "0.46268797", "0.46208254", "0.46150678", "0.46134976", "0.46045706", "0.46030635", "0.45933846", "0.45927775", "0.45927122", "0.45922926", "0.45848757", "0.45823932", "0.45818305", "0.4579253", "0.4573064", "0.4568731", "0.45655927", "0.45467556", "0.4538951", "0.45360717", "0.45303345", "0.45282802", "0.45198357", "0.45136023", "0.4513039", "0.45102102" ]
0.0
-1
Uses the bandsintown api to search for the artist selected
function getBandsInTown() { if (searchTerm === "") { searchTerm = "Ariana Grande"; //default search } axios .get( "https://rest.bandsintown.com/artists/" + searchTerm + "/events?app_id=codingbootcamp" ) .then(function(response) { logString += "\n\n\nYou Searched For: " + searchTerm + "\n******** Results *********\n\n"; if (response.data[0] === undefined) { logString += "*** There were no results for this search ***\n\n\n"; } else { var unformattedDate = response.data[0].datetime; var dateFormat = "MM/DD/YYYY hh:mmA"; var formattedDate = moment(unformattedDate).format(dateFormat); logString += "Venue Name - " + response.data[0].venue.name; logString += "\nVenue City - " + response.data[0].venue.city; logString += "\nRegion - " + response.data[0].venue.region; logString += "\nEvent Date - " + formattedDate; } logString += "\n\n******** End *********\n\n\n"; console.log(logString); logResults(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function searchBandsInTown(artist) {\n\n // Querying the bandsintown api for the selected artist, the ?app_id parameter is required, but can equal anything\n var queryURL = \"https://rest.bandsintown.com/artists/\" + artist + \"/?app_id=codingbootcamp\";\n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function (response) {\n\n\n // Printing the entire object to console\n //console.log(response);\n\n // Constructing HTML containing the artist information\n var artistName = $(\"<h3>\").text(response.name);\n var artistURL = $(\"<a>\").attr(\"href\", response.url).append(artistName);\n var artistImage = $(\"<img>\").attr(\"src\", response.thumb_url);\n var trackerCount = $(\"<h2>\").text(response.tracker_count + \" fans tracking this artist\");\n var upcomingEvents = $(\"<h3>\").text(response.upcoming_event_count + \" Upcoming Events\");\n var goToArtist = $(\"<a>\").attr(\"href\", response.url).text(\"See Tour Dates\");\n\n // Empty the contents of the artist-div, append the new artist content\n //$(\"#event-div\").append(artistURL, artistImage, trackerCount, upcomingEvents, goToArtist);\n // $(\"#artist-div\").append(artistImage); \n // $(\"#artist-div\").append(artistName);\n // $(\"#artist-div\").append(upcomingEvents);\n\n });\n }", "function searchBandsInTown(artist) {\n // Querying the bandsintown api for the selected artist, the ?app_id parameter is required, but can equal anything\n var queryURL = \"https://rest.bandsintown.com/artists/\" + artist + \"?app_id=codingbootcamp\";\n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function (response) {\n\n // Printing the entire object to console\n console.log(response);\n\n // Constructing HTML containing the artist information\n var artistName = $(\"<h1>\").text(response.name);\n var artistURL = $(\"<a>\").attr(\"href\", response.facebook_page_url).append(artistName);\n var artistImage = $(\"<img>\").attr(\"src\", response.thumb_url);\n\n\n\n\n // Empty the contents of the artist-div, append the new artist content\n $(\"#artist-div\").empty();\n $(\"#artist-div\").append(artistURL, artistImage);\n });\n\n }", "function artistSearch() {\n let userInput = id(\"artist-query\").value;\n if (userInput.includes(\" \")) {\n userInput = userInput.replace(\" \", \"_\");\n }\n let apiURL = BASE_URL + \"artist.search?q_artist=\" + userInput + \"&page_size=1&\" + API_KEY;\n apiURL = encodeURIComponent(apiURL);\n apiURL = fetchURL(apiURL);\n\n fetch(apiURL)\n .then(checkStatus)\n .then(parseText)\n .then(function(response) {\n artistId = response[\"message\"][\"body\"]['artist_list'][0][\"artist\"][\"artist_id\"];\n })\n .then(albumSearch)\n .then(trackSearch)\n .then(snippetSearch)\n .then(displayResults)\n .catch(errorReport);\n }", "function findSong(){\r\n\"https://rest.bandsintown.com/artists/\" + artist + \"/events?app_id=codingbootcamp\"\r\n\r\n\r\n\r\n// query \r\n\r\n\r\n// axios call\r\n \r\n// get the info and\r\n\r\n// console log \r\n\r\n}", "function bandsSearch(search) {\n var artist;\n\n if (search === null || search === undefined || search === \"\") {\n artist = \"Post Malone\";\n } else {\n artist = search;\n }\n\n axios.get(\"https://rest.bandsintown.com/artists/\" + artist + \"/events?app_id=codingbootcamp\").then(\n function (response, error) {\n\n if (error) {\n return console.log(error);\n }\n console.log(\"\\n Here are upcoming event details for \" + artist + \"...\\n\")\n for (i = 0; i < response.data.length; i++) {\n console.log(\"----------Event Info----------\" + \"\\n\");\n console.log(\"\\033[38;5;6m\" + \"Venue Name: \" + \"\\033[0m\" + response.data[i].venue.name);\n console.log(\"\\033[38;5;6m\" + \"Venue Location: \" + \"\\033[0m\" + response.data[i].venue.city + \", \" + response.data[i].venue.region);\n console.log(\"\\033[38;5;6m\" + \"Date of event: \" + \"\\033[0m\" + moment(response.data[i].datetime).format(\"MM/DD/YYYY\") + \"\\n\");\n console.log(\"-------------------------------\");\n }\n }\n );\n}", "function getArtistResults() {\n fetch (`https://itunes.apple.com/search?term=${userInput.value}`)\n .then(convertFromJson)\n .then(showArtistDeets);\n // .then(playSong);\n}", "function callBandsintown(artist, callback) {\n if (!artist) {\n console.log('\\n\\nPlease enter an artist or band.\\n\\n');\n callback();\n return;\n }\n axios\n .get(`https://rest.bandsintown.com/artists/${artist}/events?app_id=secret`)\n .then(function (response) {\n // Catch an error when query contains quotes\n if (response.data === '\\n{error=An error occurred while searching.}\\n') {\n console.log('\\nEnter an artist/band name without any quotes or special characters.\\n');\n callback();\n return;\n }\n // Catch an error when query was not found\n if (response.data === '\\n{warn=Not found}\\n') {\n console.log(chalk`\\nNo results for {bold ${artist}}\\n`);\n callback();\n return;\n }\n // Show how many results were found\n console.log(`\\n- * - * - * - * -\\n`);\n // Iterate through each result and display the data\n response.data.forEach(function (event) {\n let { name, city, region, country } = event.venue;\n let { datetime } = event;\n\n console.log(chalk`{bold Venue:} {yellowBright ${name}}\\n{bold Location:} ${city}, ${region}, ${country}\\n{bold When:} ${datetime}`);\n // If there are tickets available provide a link\n if (event.offers.length !== 0) {\n let { url } = event.offers[0];\n console.log(chalk`{bold Tickets:} {cyan ${url}}`);\n }\n // Separator\n console.log(`\\n- * - * - * - * -\\n`);\n });\n // Display number of results\n console.log(chalk`Found {inverse ${response.data.length}} upcoming events for {bold.yellowBright ${artist}}\\n`);\n // Run a callback function after data has been logged\n callback();\n })\n .catch(function (err) {\n console.log('\\nTry that again...\\n');\n callback();\n });\n}", "function getArtistEvent(artistName) {\r\n fetch(\"https://rest.bandsintown.com/artists/\" + artistName + \"/events?app_id=1&date=all\")\r\n .then(res => res.json())\r\n .then(b => {\r\n let eventsList = b;\r\n let artist = null;\r\n\r\n for (let i = 0; i < artistsList.length; i++) {\r\n if (artistsList[i].name === artistName) {\r\n artist = artistsList[i];\r\n break;\r\n }\r\n }\r\n\r\n searchedArtist.disabled = true;\r\n searchBtn.disabled = true;\r\n artistsCardListContainer.style.display = \"none\";\r\n searchedArtistsListContainer.innerHTML = \"\";\r\n createElementsOnCheckEventsCLicked(artist, eventsList);\r\n });\r\n}", "function doBandInTown() {\n axios\n .get(\n \"https://rest.bandsintown.com/artists/\" + Search + \"/events?app_id=%3Fapp_id%3Db7b374713cf3e2cf710b82eac648971e\"\n )\n .then(function(response) {\n for (var i = 0; i < response.data.length; i++) {\n console.log(\"Artist/Band you choose is: \" + Search);\n console.log(\"Venue is located in: \" + response.data[i].venue.name);\n console.log(\"Venue is located in: \" + response.data[i].venue.city);\n console.log(\"Date/Time is: \" + response.data[i].datetime);\n console.log(\"-----------------------------------\");\n }\n });\n}", "async fetchArtist(value) {\n let collection = [];\n\n const res = await fetch(`//ws.audioscrobbler.com/2.0/?method=artist.search&artist=${value}&api_key=77730a79e57e200de8fac0acd06a6bb6&format=json`)\n const data = await res.json()\n console.log(data);\n if (data.results) {\n for (let i = 0; i < 9; i++) {\n collection.push(data.results.artistmatches.artist[i]);\n }\n console.log(collection);\n this.setState({ collection });\n return collection;\n }\n }", "function spotifySearch(){\n spotify.search({ type: 'track', query: songToSearch}, function(error, data){\n if(!error){\n for(var i = 0; i < data.tracks.items.length; i++){\n var song = data.tracks.items[i];\n console.log(\"Artist: \" + song.artists[0].name);\n console.log(\"Song: \" + song.name);\n console.log(\"Preview: \" + song.preview_url);\n console.log(\"Album: \" + song.album.name);\n console.log(\"-----------------------\");\n }\n } else{\n console.log('Error occurred.');\n }\n });\n }", "function searchArtist() {\n //display searching artist\n let name = document.getElementById(\"searchName\").value;\n\n fetch(server + '/search/s' + name).\n then((res) => res.json() ). // obtain data as json\n then( (data) => { \n //init\n hideArtists();\n if(data.result) {\n for (let i = 0; i < data.artist.length; i++){\n addArtistToList(data.artist[i]);\n }\n } else {\n alert(\"Something wrong: Failed to save artist to database\");\n }\n }).\n catch((err) => console.log(err));\n}", "static searchArtists(term) {\n return fetch(this.url + '/search?term=' + term + '&entity=musicArtist');\n }", "function searchArtist() {\n var usersArtist = $(artistSearch).val();\n\n $.ajax({\n url: 'https://api.spotify.com/v1/search',\n data: {\n q: usersArtist,\n type: 'artist'\n },\n success: function(data) {\n console.log('success', data);\n for(secondCounter in data.artists.items) {\n var artist = data.artists.items[secondCounter]\n $('.results').append('<div class=\"result-background\"><div class=\"result-content\">' +\n '<img src=\"' + artist.images[0].url + '\" onload=\"this.width/=2;this.onload=null;\"><span>' +\n artist.name + '</span></div></div>');\n\n //clicking on an artist returns albums from that artist\n var artistAlbums = function() {\n var artistId = artist.id;\n console.log(artistId)\n $.ajax({\n url: 'https://api.spotify.com/v1/artists/' + artistId + '/albums',\n success: function(data) {\n console.log('success', data);\n for(thirdCounter in data.items) {\n var album = data.items[thirdCounter];\n $('.results').append('<div class=\"result-background\"><div class=\"result-content\">' +\n '<img src=\"' + album.images[0].url + '\" onload=\"this.width/=2;this.onload=null;\"><span>' +\n album.name + '</span></div></div>');\n }\n },\n error: function(data) {\n console.log('error', data);\n }\n });\n };\n\n $('.result-content span').click(function() {\n $('.result-background, result-content').remove();\n artistAlbums();\n });\n };\n },\n error: function(data) {\n console.log('error', data)\n }\n });\n }", "function band() {\n\n var queryUrl = \"https://rest.bandsintown.com/artists/\" + input + \"/events?app_id=codingbootcamp\"\n\n\n\n axios\n .get(queryUrl)\n .then(function (bandResponse) {\n console.log(\n \"\\n ========== Band Search ==========\\n\"\n )\n\n // console.log(bandResponse.data);\n var venueInfo = bandResponse.data[1];\n console.log(\"Band Search: \" + input);\n console.log(\"Name of the venue \" + venueInfo.venue.name);\n console.log(\"Venue located at \" + venueInfo.venue.city + \",\" + venueInfo.venue.region);\n console.log(\"Event date \" + moment(venueInfo.datetime).format(\"MM/DD/YYYY\") + \"\\n\");\n // name of the venue\n // venue location \n // date of the event (use moment to format this as \"MM/DD/YYYY\");\n }\n );\n}", "function getArtistInfo() {\n url = '/search_artist' + \"?artist=\" + document.getElementById('search2').value;\n var request = new XMLHttpRequest();\n\n request.open(\"GET\", url, true);\n request.setRequestHeader('Content-type', 'text/plain');\n\n request.onreadystatechange = function() {\n if (request.readyState == 4 && request.status == 200) {\n data = request.responseText;\n getArtistSongs(data);\n };\n };\n request.send();\n}", "function bandsInTownCommand(){\n inquirer.prompt([\n {\n name: \"artist\",\n message:\"What artist would you like to search?\"\n }\n ]).then(function(answer){\n if(!answer.artist){\n commandParam = defaulted.artist\n concertThis(commandParam)\n } else {\n commandParam = answer.artist;\n concertThis(commandParam);\n }\n })\n}", "async getArtist(artist) {\r\n const artistResponse = await fetch(`https://itunes.apple.com/search?term=${artist}&country=${this.country}&entity=${this.entity}&limit=${this.limit}`);\r\n const artistProfile = await artistResponse.json();\r\n return artistProfile;\r\n }", "performSearch() {\n const\n thiz = this,\n url = spotyfySearch + this.state.inputValue + '&type=artist&limit=10';\n\n if(this.state.inputValue !== '') {\n fetchArtists(url)\n .then(function(res) {\n let artistsName;\n let data = res.artists.items;\n\n // Map artists from the API call into an array and set the state in the main component\n artistsName = data.map(result => result.name );\n thiz.setState({\n dataSource: artistsName\n });\n thiz.props.upArtists(data);\n })\n .catch(function(err){\n console.log(\"could not resolve promise with error: \", err)\n })\n }\n }", "searchIt(term) {\n const accessToken = Spotify.getAccessToken();\n return fetch(`${spotifyURIBase}search?type=track&q=${term}`, { // retrival of the info for the term supplied.\n headers: {\n Authorization: `Bearer ${accessToken}`\n }\n }\n ).then(response => { return response.json(); }\n ).then(jsonResponse => { // parsing of the retreived data into json objects.\n if (!jsonResponse.tracks) {\n return [];\n }\n/* picking of the json data and assigning to track object. */\n return jsonResponse.tracks.items.map(track => ({\n id: track.id,\n name: track.name,\n length: track.duration_ms,\n image: track.album.images[2],\n artist: track.artists[0].name,\n album: track.album.name,\n uri: track.uri\n }));\n });\n }", "search(term) {\n const accessToken = Spotify.getAccessToken();\n const baseRequestUrl = 'https://api.spotify.com/v1/search?';\n const queryParams = `type=track&q=${term}`;\n const requestUrl = baseRequestUrl + queryParams;\n return fetch(requestUrl, {\n headers: {\n Authorization: `Bearer ${accessToken}`\n }\n })\n .then(response => response.json())\n .then(jsonData => {\n if (!jsonData.tracks) {\n return [];\n }\n return jsonData.tracks.items.map(track => ({\n id: track.id,\n name: track.name,\n artists: track.artists[0].name,\n album: track.album.name,\n uri: track.uri\n }))\n });\n }", "function searchMusic(name){\n if(!name){\n name = \"The sigin\";\n }\n spotify.search({ type: 'track', query: name }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n for (var i = 0; i < 5; i++) {\n console.log(\"Artist Name: \"+data.tracks.items[i].artist[0].name); \n console.log(\"Song name: \"+data.tracks.items[i].name);\n console.log(\"Link: \"+data.tracks.items[i].album.name);\n console.log(\"Album\"+data.tracks.items[i].preview_url);\n console.log(\"-------------------------------------\");\n }\n });\n}", "function findArtists(uri) {\n if(city.ArtistStore.getCount()==0) {\n $.get(\"http://dbpedia.org/sparql\",\n\t{\"query\":\"\\\nPREFIX dbpedia-owl: <http://dbpedia.org/ontology/> \\\nPREFIX foaf: <http://xmlns.com/foaf/0.1/> \\\nSELECT ?artist ?name WHERE { \\\n?artist dbpedia-owl:hometown <\"+uri+\"> . \\\n{ ?artist a dbpedia-owl:Band } UNION { ?artist a dbpedia-owl:MusicalArtist } \\\n?artist foaf:name ?name \\\n} ORDER BY ASC(?name)\",\n\t \"format\":\"application/sparql-results+json\"},\n\tfunction(data,status,xhr) {\n\t var tbl = $(\"ul#artists\");\n\t for(i=0;i<data.results.bindings.length;i++) {\n\t // Extract information from SPARQL results\n\t var name=data.results.bindings[i].name.value;\n\t var iname=escape(name.toLowerCase().replace(/ /g,\"-\"));\n\t var artist=data.results.bindings[i].artist.value\n\t // Add data to the local store\n\t city.ArtistStore.add({'uri':artist,\n\t\t\t\t 'name':name,\n\t\t\t\t 'itunes':'http://itunes.com/'+iname});\n\t }\n\t // Sync (i.e. commit) the store\n\t city.ArtistStore.sync();\n\t},\n\t\"json\");\n }\n}", "function getArtistInfo(artist) {\r\n\r\n console.log(artist);\r\n // var performer = $(artist).attr('artists-name');\r\n // console.log(\"this is\" + performer);\r\n var apiUrl = 'https://itunes.apple.com/search?term=' + artist +\r\n \"&media=music&country=US&limit=1\";\r\n\r\n $.ajax({\r\n url: apiUrl,\r\n method: 'GET',\r\n dataType: 'json'\r\n }).done(function(response) {\r\n console.log(response)\r\n\r\n previewUrl = response.results[0].previewUrl;\r\n console.log(previewUrl)\r\n \r\n }) //AJAX\r\n} //function get artist info", "function searchMusic(searchTerm) {\n if (!searchTerm) { searchTerm = \"311\" }\n return axios.get(`https://api.seatgeek.com/2/events?client_id=${keys.seatgeak.id}&performers.slug=${searchTerm}`)\n .then(function (response) {\n for (let i = 0; i < response.data.events.length; i++) {\n console.log(`\nPerformer:\n ${response.data.events[i].performers[0].name}\nvenue:\n ${response.data.events[i].venue.name}\n ${response.data.events[i].venue.city}\n ${moment(response.data.events[i].datetime_local).format(\"MM/DD/YYYY\")}\n___________ `);\n }\n\n })\n .catch(function (error) {\n console.log(\"An error occured \" + error);\n });\n //return response;\n\n}", "function getArtistListFromQuery() {\n const artist = STORE.artistQuery\n let offset = makeOffsetArtists(STORE.artistCurrentPageNumber)\n let url = `https://musicbrainz.org/ws/2/artist/?query=artist:${artist}&fmt=json&offset=${offset}&limit=${STORE.artistResultsPerPage}`;\n console.log(\"query artist url \", url);\n fetch(url)\n .then(response => {\n if (response.ok) {\n return response.json();\n }\n throw new Error(response.statusText);\n })\n .then(responseJson => {\n console.log('getArtistListFromQuery() response:', responseJson);\n STORE.artistQueryResponse = responseJson;\n const nextPage = getNextPageArtists()\n console.log('next page:', nextPage)\n STORE.artistNextPageNumber = null\n if (nextPage) {\n // offset = makeOffsetArtists(nextPage)\n // url = `https://musicbrainz.org/ws/2/artist/?query=artist:${artist}&fmt=json&offset=${offset}`; \n STORE.artistNextPageNumber = nextPage\n }\n STORE.artistPrevPageNumber = null\n if (STORE.artistCurrentPageNumber > 1) {\n // offset = makeOffsetArtists(STORE.artistCurrentPageNumber-1)\n // url = `https://musicbrainz.org/ws/2/artist/?query=artist:${artist}&fmt=json&offset=${offset}`; \n STORE.artistPrevPageNumber = STORE.artistCurrentPageNumber - 1\n }\n displayArtistList();\n })\n .catch(err => {\n $(\"#js-error-message\").text(`Something went wrong: ${err.message}`);\n });\n}", "function searchBand(bandQuery) {\n console.log(\"searching concerts\");\n var queryURL = \"https://rest.bandsintown.com/artists/\" + bandQuery + \"/events?app_id=codingbootcamp\";\n //console.log(queryURL);\n\n //searching for concerts with bands in town API\n request(queryURL, function (error, response, body) {\n //error occurs\n if (error) {\n console.log(error);\n }\n\n //request processed successfully\n if (!error && response.statusCode === 200) {\n //console.log(\"processed request\");\n\n var events = JSON.parse(body);\n //console.log(events);\n\n //displaying information for each event\n for (var i = 0; i < events.length; i++) {\n var event = events[i];\n\n var venue = event.venue.name;\n var location = event.venue.city + \", \" + event.venue.country;\n\n var moment = require(\"moment\");\n var date = moment(event.datetime).format(\"L\");\n\n console.log(\"\\n\");\n console.log(venue);\n console.log(location);\n console.log(date);\n }\n }\n });\n}", "async search(term) {\n const accessToken = this.accessToken || this.getAccessToken();\n const headers = { Authorization: `Bearer ${accessToken}` };\n // GET method\n try {\n const response = await fetch(\n `https://api.spotify.com/v1/search?type=track&limit=50&q=${term}`,\n { headers: headers }\n );\n if (response.ok) {\n const jsonResponse = await response.json();\n if (jsonResponse && jsonResponse !== {}) {\n return jsonResponse.tracks.items.map(track => {\n return {\n id: track.id,\n name: track.name,\n artist: track.artists[0].name,\n album: track.album.name,\n uri: track.uri,\n preview: track.preview_url,\n };\n });\n }\n } else {\n throw new Error('Search Request Failed!');\n }\n } catch (err) {\n this.authFailed();\n console.log(err);\n }\n }", "function searchTrack() {\n if (searchQuery.length === 0) {\n searchQuery = \"The Sign Ace of Base\"\n }\n spotify.search({ type: 'track', query: searchQuery }, function (err, data) {\n if (err) {\n return console.log('Error: ' + err);\n }\n console.log(`Artist: ${data.tracks.items[0].artists[0].name}`);\n console.log(`Song: ${data.tracks.items[0].name}`);\n console.log(`Album: ${data.tracks.items[0].album.name}`);\n console.log(`Preview Link: ${data.tracks.items[0].preview_url}`);\n });\n}", "function showArtistDeets (artist) {\n console.log(artist);\n\n let artistDisplay = '';\n\n for (let i = 0; i < artist.results.length; i++) {\n\n let artistResults = artist.results[i];\n // display search results\n let artistCode = `\n <div class=\"track-info\" data-song-url=\"${artistResults.previewUrl}\">\n <img src=\"${artistResults.artworkUrl100}\" class=\"track-image\">\n <h4 class=\"song-name\">${artistResults.trackName}</h4>\n <h3 class=\"artist-name\">${artistResults.artistName}</h3>\n </div>\n `;\n artistDisplay += artistCode;\n\n // play song\n songToPlay = artistResults.previewUrl;\n\n // display song to play\n }\n results.innerHTML = artistDisplay;\n}", "function concertThis(artistname) {\n // if no argument entered, default argument\n if (!argument) {\n artistname = \"Drake\";\n }\n // search bands in town API for events with artistname\n axios\n .get(`https://rest.bandsintown.com/artists/${artistname}/events?app_id=codingbootcamp`)\n // function to console log response when data is received\n .then(function(response) {\n var results = response.data;\n // for loop to iterate through all the venues/events for artistname\n for(var i = 0; i < results.length; i++){\n var venue = results[i].venue;\n // function to console log response when data is received\n console.log(\"\\n------------------------------------------\");\n console.log(`Name of Venue: ${venue.name}`);\n console.log(`Venue location: ${venue.city}, ${venue.country}`);\n console.log(\"Date of the Event: \"+ moment(results[i].datetime).format('MM/DD/YYYY')); \n console.log(\"\\n\");\n }\n })\n // if error, console logs error message\n .catch(function(err) {\n console.error(err); \n })\n}", "async function getSongsSearch() {\n let searchTerm = document.getElementById('searchSong').value;\n console.log(searchTerm);\n let songs = await fetch(`https://shazam.p.rapidapi.com/search?term=${searchTerm}&locale=en-US&offset=0&limit=8`, {\n \"method\": \"GET\",\n \"headers\": {\n \"x-rapidapi-key\": \"xxxxxxxxxxxxxxxxx\",\n \"x-rapidapi-host\": \"shazam.p.rapidapi.com\"\n }\n });\n let songsJson = await songs.json();\n let tracks = songsJson.tracks.hits;\n let count = songsJson.tracks.hits.length - 1;\n console.log(tracks);\n displaySongs(tracks, count, false);\n}", "search(term) {\n const accessToken = Spotify.getAccessToken();\n //start promise chain be returning GET request using fetch()\n return fetch(`https://api.spotify.com/v1/search?type=track&q=${term}`,\n //pass 2nd argument to fetch and add authorization header to the request and pass in accessToken\n //in implicit grant flow request format\n {\n headers: {\n Authorization: `Bearer ${accessToken}`\n }\n }\n //convert the response to JSON\n ).then(response => {\n return response.json();\n }).then(jsonResponse => {\n //make sure that some tracks actually exist\n if (!jsonResponse.tracks) {\n return [];\n }\n // return a mapped array with a list of track objects to pass to states in App.js\n return jsonResponse.tracks.items.map(track => ({\n id: track.id,\n name: track.name,\n artist: track.artists[0].name,\n album: track.album.name,\n uri: track.uri\n }));\n });\n }", "function bandsInTown(input) {\n console.log(\"\\n Searching for \" + input + \"'s next shows...\");\n console.log(\"\\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\");\n\n let queryURL = \"http://rest.bandsintown.com/artists/\" + input + \"/events?app_id=codingbootcamp\";\n\n axios.get(queryURL).then(function(response) {\n //console.log(response.data); \n for (let i = 0; i < response.data.length; i++) {\n\n console.log(\"\\nVenue Name: \" + response.data[i].venue.name + \"\\nVenue Location: \" \n + response.data[i].venue.city + \", \" + response.data[i].venue.region + \n \"\\nDate of Event: \" + moment(response.data[i].datetime).format(\"MM/DD/YYYY\"));\n console.log(divider);\n }\n })\n .catch(function(err) {\n console.log(\"Error \" + err + \" has occurred.\");\n return;\n});\n}", "function spotifySearch() {\n spotify.search({ type: 'track', query: searchName }, function(err, data) {\n\tif ( err ) {\n console.log('Error occurred: ' + err);\n return;\n\t} else {\n\t console.log(JSON.stringify(data.tracks.items[0].artists, null, 2));\n\t //artists\n\t console.log(\"Artitst(s): \" + data.tracks.items[0].artists[0].name);\n\t // song name\n\t console.log(\"Song Name: \" + data.tracks.items[0].name);\n\t // spotify link\n\t console.log(\"Spotify Link: \" + data.tracks.items[0].href);\n\t // album\n\t console.log(\"Album: \" + data.tracks.items[0].album.name);\n\t}\n });\n} // close spotify function", "function lexaBrain (service, search) {\n let queryUrl =\"\";\n switch (service){\n case \"spotify-this-song\":\n\n //checking to see if a song was provide, if not defaults to the sign\n let spotifySearch = \"\";\n if(search===\"\"){\n spotifySearch=\"the+sign\"\n }else{\n spotifySearch=search;\n }\n\n //call out to spotify for 5 results.\n spotify.search({ \n type: 'track', query: spotifySearch, limit: 5\n }).then(function(response) {\n\n //checking to see if any items in response, if none let user know\n if(response.track.items.length===0){\n console.log(\"No song by that name found.\")\n }\n //each song sent back, we print out the info for it.\n response.tracks.items.forEach(function(result){\n console.log();\n console.log (\"Artist(s): \"+result.artists[0].name);\n console.log (\"Song Title: \"+result.name);\n console.log (\"Album: \"+result.album.name);\n console.log (\"On Spotify: \"+result.external_urls.spotify);\n })\n \n })\n //incase something goes wrong\n .catch(function(err) {\n console.log(\"No song by that name found\");\n });\n break;\n\n case \"concert-this\":\n //using axios to call out to bandsintown and get back results\n queryUrl = \"https://rest.bandsintown.com/artists/\" + search + \"/events?app_id=codingbootcamp\";\n axios.get(queryUrl.replace(\"+\", \" \")).then(function(response){\n\n if(response.data.length === 0){\n console.log (\"No band by that name found.\");\n }\n\n //for each gig a band has, print out the info\n response.data.forEach(function(gig){\n let date = gig.datetime.split(\"T\");\n let formatedDate = moment(date[0]).format(\"MM/DD/YYYY\");\n let venue = gig.venue\n console.log(`\n Venue name: ${venue.name}\n Location: ${venue.city}, ${venue.region}, ${venue.country}\n Date of show: ${formatedDate} \n `)\n });\n })\n //if something goes wrong...\n .catch(function(err){\n console.log (\"Band not found\");\n });\n break;\n\n case \"movie-this\":\n queryUrl = \"http://www.omdbapi.com/?t=\" + search + \"&y=&plot=short&apikey=trilogy\";\n axios.get(queryUrl).then(function(response) {\n let movie = response.data\n if (movie.length === 0){\n console.log(\"No movie by that name found\");\n }\n console.log(`\n Movie Title: ${movie.Title}\n Release Date: ${movie.Released}\n IMDB Rating: ${movie.imdbRating}\n Rotten T: ${movie.Ratings[1].Value}\n Country of O: ${movie.Country}\n Language: ${movie.Language}\n Movie Plot: ${movie.Plot}\n Actors: ${movie.Actors}\n `)\n })\n //incase something goes wrong.\n .catch(function(err){\n console.log(\"No movies by that name found\");\n });\n break;\n case \"do-what-it-says\":\n console.log(\"FreeStyle huh?...lets see....\");\n //reading my file and getting its contents\n fs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n if(err){\n console.log(\"I wasn't able to read that...\")\n }\n console.log(data);\n //removes \"\" around song name, then splits the command in two. one for command. one for searchterm.\n let response = data.replace(/\"+/g, '').split(\",\");;\n lexaBrain(response[0],response[1]);\n });\n break;\n default:\n console.log(\"I havent been programmed to do that yet...\");\n break;\n }\n}", "function songSearch(searchTerm) {\n \n spotify.search({ type: \"track\", query: searchTerm}, function(err, data) {\n if (err) {\n return console.log(\"Error occurred: \" + err);\n }\n console.log(\"Song Name : \" + data.tracks.items[0].name);\n console.log(\"Album Name : \" + data.tracks.items[0].album.name);\n console.log(\"Song Preview : \" + data.tracks.items[0].preview_url);\n });\n}", "function searchAlbum() {\n var usersAlbum = $(albumSearch).val();\n\n $.ajax({\n url: 'https://api.spotify.com/v1/search',\n data: {\n q: usersAlbum,\n type: 'album'\n },\n success: function(data) {\n console.log('success', data);\n for(fourthCounter in data.albums.items) {\n var album = data.albums.items[fourthCounter]\n $('.results').append('<div class=\"result-background\"><div class=\"result-content\">' +\n '<img src=\"' + album.images[0].url + '\" onload=\"this.width/=2;this.onload=null;\"><span>' +\n album.name + '</span></div></div>');\n }\n },\n error: function(data) {\n console.log('error', data)\n }\n });\n }", "function searchSeries() {\n const userInput = inputElement.value.toUpperCase();\n fetch('https://api.tvmaze.com/search/shows?q=' + userInput)\n .then((response) => response.json())\n .then((data) => {\n resultShows = data;\n paintShows();\n });\n}", "search(term) {\n // get access token\n accessToken = Spotify.getAccessToken();\n return fetch(`https://api.spotify.com/v1/search?type=track&q=${term}`, {\n headers: {\n Authorization: `Bearer ${accessToken}`\n }\n }).then(response => {\n // check if the response is successful for the API call\n debugger\n if (response.ok) {\n return response.json();\n }\n throw new Error('Request failed!');\n }).then(jsonResponse => {\n // get tracks from item list\n debugger\n if (!jsonResponse.tracks.items){\n // if nothing is returned, return an empty array\n return [];\n }\n else {\n // get search results back and map them to track structure for later display\n return jsonResponse.tracks.items.map(track => ({\n id: track.id,\n name: track.name,\n artist: track.artists[0].name,\n album: track.album.name,\n uri: track.uri,\n preview: track.preview_url,\n }));\n }\n });\n }", "searchSong(song = \"The Sign\") {\n let params = {\n type: 'track',\n query: song,\n limit: 5\n }\n\n console.log(`\\n=======\\nSearching for the song \"${song}\"`);\n this.api.search(params, function(err, data) {\n if (err) {\n console.log('Error occurred: ' + err);\n return;\n }\n else if (data.tracks.items.length === 0) {\n console.log(\"No song found.\");\n return;\n }\n // console.log(data);\n\n console.log(`\\n=======\\nSeach result for the song \"${song}\"`);\n let items = data.tracks.items;\n for (let i = 0; i < items.length; i++ ) {\n let artist = items[i].artists.map(a => a.name).join(\", \");\n let songName = items[i].name;\n let link = items[i].external_urls.spotify;\n let album = items[i].album.name;\n\n console.log(\"- \" + (i + 1) + \" -\");\n console.log(`\\tArtist(s): ${artist}`);\n console.log(`\\tSong Name: ${songName}`);\n console.log(`\\tLink: ${link}`);\n console.log(`\\tAlbum: ${album}`);\n }\n });\n }", "function findSong(searchTerm) {\n // spotify package\n var spotify = require('spotify');\n // search for track\n spotify.search({ type: 'track', query: searchTerm }, function(err, data) {\n\n if (err || searchTerm == null) {\n\n console.log('Because this error occurred: ' + err + \" you will be hearing Ace of Base!\");\n console.log(\"=======================\");\n // I use lookup instead of seach because I know the unique id of the song that is required in the instructions\n spotify.lookup({ type: 'track', id: '0hrBpAOgrt8RXigk83LLNE' }, function(err, data) {\n // name of song and its artists\n console.log(\"Song name: \" + data.name);\n console.log(\"Band: \" + data.artists[0].name);\n })\n return;\n }\n\n if (!err) {\n\n console.log(\"========================\");\n // name of artist\n console.log(\"Name of artist: \" + JSON.stringify(data.tracks.items[0].artists[0].name, null, 2));\n // name of song\n console.log(\"Song name: \" + JSON.stringify(data.tracks.items[0].name, null, 2));\n // preview of song\n console.log(\"Use this link for a song preview: \" + JSON.stringify(data.tracks.items[0].preview_url, null, 2));\n // Album where the songs come from\n console.log(\"Album name: \" + JSON.stringify(data.tracks.items[0].album.name, null, 2));\n console.log(\"========================\");\n }\n });\n}", "async search(term){\n\n // if no search term was given, abort the search\n if(term === '' || term == null){\n return;\n }\n\n // check if there is no access token => first login \n if(typeof accessToken === 'undefined'){\n checkAccessToken();\n }\n\n // search for tracks, since it contains ablbums and artists\n // limit search results to 5 results\n const response = await fetch(`${apiURL}search?q=${term}&type=track&limit=5`, {\n headers: {Authorization: `Bearer ${accessToken}`}\n });\n\n // check if there was error on an existing access token\n // i.e. access token expired\n if(response.status === 401){\n checkAccessToken();\n }\n\n // get the array with the search results\n const jsonResponse = await response.json();\n if(typeof jsonResponse.tracks.items !== 'undefined'){\n return jsonResponse.tracks.items.map(track => {\n return {\n id: track.id,\n album: track.album.name,\n artist: track.artists[0].name,\n track: track.name,\n image: track.album.images[0].url\n }\n })\n } \n }", "async function getTopTracks(bandSearched) {\n console.log(\"getTopTracks\");\n await $.ajax({\n type : 'POST',\n url : 'http://ws.audioscrobbler.com/2.0/',\n data : 'method=artist.gettoptracks&' +\n 'artist='+bandSearched+'&' +\n 'api_key=57ee3318536b23ee81d6b27e36997cde&' +\n 'format=json',\n dataType : 'jsonp',\n success : response => {\n console.log(response);\n\n this.tracks = response.toptracks.track;\n\n },\n error : (code, message) => {\n console.log(code, message);\n }\n });\n }", "function spotifyThisSong() {\n let song = \"The Sign Ace of Base\";\n if (searchTerm) {\n song = searchTerm;\n }\n spotify.request('https://api.spotify.com/v1/search?q=track:' + song + '&type=track&limit=10', function (error, response) {\n for (i = 0; i < 3; i++) {\n if (error) {\n return console.log(error);\n }\n console.log(\"\\nArtist: \" + response.tracks.items[i].artists[0].name + \"\\nSong: \" + response.tracks.items[i].name + \"\\nPreview: \" + response.tracks.items[i].preview_url + \"\\nAlbum: \" + response.tracks.items[i].album.name);\n };\n });\n}", "async function concertThis(searchFor) {\n\n //console.log(\"Inside concertThis()\");\n\n //Store artist name taken from file\n let artistName = searchFor;\n\n //If 'artistName' is null then prompt user for artist name\n if (artistName === \"\") {\n // Prompt to get artist name from user input\n const artistResp = await getArtistNameToSearchConcerts();\n\n //Extract artist name from user input\n artistName = artistResp.artist;\n }\n\n\n let queryUrl = `https://rest.bandsintown.com/artists/${artistName}/events?app_id=\"6e95880a-cca7-4c54-957a-290bd8f52183\"`;\n // console.log(\"queryUrl: \" + queryUrl);\n\n // Run a request with axios to the \"Bands In Town\" API with the specified artist name\n axios\n .get(queryUrl)\n .then(function (eventResp) {\n\n console.log(\"\\n-------------------------------------------------------\\n\");\n\n //If there are no events \n if (eventResp.data.length === 0) {\n console.log(`No events found for ${artistName} to be held in US soon.`);\n return;\n }\n\n console.log(`Below are the details of ${artistName}'s events to be held in US:`);\n\n //Loop through the event objects to display the required fields\n for (let eventNo = 0; eventNo < eventResp.data.length; eventNo++) {\n\n //Show events that are only in United States\n if (eventResp.data[eventNo].venue.country !== \"United States\") {\n continue; //Moveon to the next event\n }\n\n //By default show only top 10 results from the response\n if (eventNo >= 10)\n break; //break the for loop if we have displayed top 10 events\n\n console.log(\"\\n\");\n\n // Name of the venue\n console.log(`Name of the venue: ${eventResp.data[eventNo].venue.name}`);\n\n // Venue location\n console.log(`Venue location: ${eventResp.data[eventNo].venue.city}, ${eventResp.data[eventNo].venue.country}`);\n\n // Date of the Event (use moment to format this as \"MM/DD/YYYY\")\n var dateToBeConverted = moment(eventResp.data[eventNo].datetime, \"YYYY-MM-DDTHH:mm:ss\");\n console.log(`Date of the Event: ${dateToBeConverted.format(\"MM/DD/YYYY\")}`);\n\n\n }\n //Call restartApp() to restart the app if user wishes to\n restartApp();\n })\n .catch(function (err) {\n console.log(err);\n });\n\n} //End of concertThis()", "function search(searchTerm) {\n\tSC.get('/tracks', { q: searchTerm}, function(tracks) {\n\t\tdisplay(tracks);\n\t});\n}", "function spotifySearch() {\n\n console.log(\"initializing funciton\");\n var spotify = new Spotify(keys.spotify);\n\n if(!value) {\n value = \"The Sign by Ace of Base\";\n }\n\n \n\n spotify.search({ type: 'track', query: value }, function(error, data, response) {\n if (error) {\n\n console.log('Error occurred: ' + error);\n return;\n }\n var songInfo = data.tracks.items[0];\n var songData =\n \"\\r\\n Artist: \" + songInfo.artists[0].name +\n \"\\r\\n Song Title: \" + songInfo.name +\n \"\\r\\n Song Preview: \" + songInfo.preview_url ;\n\n console.log(songData);\n }); \n \n }", "findTrack() {\n fetch('https://peaceful-sierra-85182.herokuapp.com/search/' + this.state.userQuery, {\n method: 'GET',\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n },\n })\n .then(res => res.json())\n .then(trackInfo => {\n\n this.setState({\n artistName: trackInfo.tracks.items[0].artists[0].name,\n albumName: trackInfo.tracks.items[0].album.name,\n albumImage: trackInfo.tracks.items[0].album.images[1],\n trackId: trackInfo.tracks.items[0].id,\n trackName: trackInfo.tracks.items[0].name,\n releaseDate: trackInfo.tracks.items[0].album.release_date,\n trackAnalysisFound: false,\n loading: true\n\n })\n })\n .catch(err => console.log(err));\n }", "function searchBand() {\n var queryUrl = \"https://rest.bandsintown.com/artists/\" + userChoice + \"/events?app_id=codingbootcamp&limit=20\";\n axios.get(queryUrl).then(\n function (response) {\n console.log(\"------ CONCERT THIS ------\");\n console.log(\" \");\n console.log(\"Search: \" + userChoice);\n console.log(\"-----------------------------\");\n for (i = 0; i < response.data.length; i++) {\n\n\n\n //VENUES WITHOUT REGIONS\n if (response.data[i].venue.region === \"\") {\n console.log(response.data[i].venue.name);\n console.log(response.data[i].venue.city + \", \" + response.data[i].venue.country);\n console.log(moment(response.data[i].datetime).format('MM-DD-YYYY'));\n console.log(\"-----------------------------\");\n }\n\n\n // VENUES WITH REGIONS\n else {\n console.log(response.data[i].venue.name);\n console.log(response.data[i].venue.city + \", \" + response.data[i].venue.region + \", \" + response.data[i].venue.country);\n console.log(moment(response.data[i].datetime).format('MM-DD-YYYY'));\n console.log(\"-----------------------------\");\n }\n }\n })\n .catch(function (error) {\n if (error.response) {\n\n\n\n // ERROR RESPONSES\n console.log(\"-----------Data-----------\");\n console.log(error.response.data);\n console.log(\"-----------Status-----------\");\n console.log(error.response.status);\n console.log(\"-----------Status-----------\");\n console.log(error.response.headers);\n } else if (error.request) {\n\n console.log(error.request);\n } else {\n\n console.log(\"Error\", error.message);\n }\n console.log(error.config);\n });\n\n}", "async function searchForSongs() {\n const apiUrl = `/audiobooks/${artist}`;\n try {\n if (artist) {\n await axios.get(apiUrl).then((res) => {\n const resultsFromApiCall = res.data.results;\n setSearchResults([...resultsFromApiCall]);\n setPageHasLoaded({ pageHasLoaded: true });\n console.log(searchResults);\n });\n } else {\n alert(\"Please enter an artist's name before searching.\");\n }\n {\n /* Catching errors that may occur and I am logging them to the console and alerting\n the user to the error. */\n }\n } catch (e) {\n alert(\"The error encountered is: \" + e.message);\n console.log(\"The error encountered is: \" + e.message);\n }\n }", "function spotifyThisSong(){\n console.log(\"Getting the information you requested\");\n if (!userQuery) {\n userQuery = \"the sign ace of base\"\n };\n spotify.search({ type: 'track', query: userQuery, limit: 1 }, function (error, data) {\n if (error) {\n return console.log(\"Error occurred \");\n }\n let spotifyArr = data.tracks.items;\n// console.log(spotifyArr);\n for (var i=0; i < spotifyArr.length; i++){\n\n // display artist\n console.log(\"Artist: \"+JSON.stringify(spotifyArr[i].artists[0].name));\n // display song name\n console.log(\"Song name: \" +spotifyArr[i].name);\n // display a preview link of the song from Spotify\n console.log(\"Song preview: \"+spotifyArr[i].preview_url);\n // display the album that the song is from\n console.log(\"Album name: \"+spotifyArr[i].album.name);\n };\n});\n\n}", "async getAlbums(artist) {\r\n const albumResponse = await fetch(`https://itunes.apple.com/lookup?id=${artist}&entity=album`);\r\n const album = await albumResponse.json();\r\n return album;\r\n }", "function getBandsInTown(artist) {\n\n var artist = userSearch;\n var bandsInTownUrl = \"https://rest.bandsintown.com/artists/\" + artist + \"/events?app_id=codingbootcamp\"\n\n axios.get(bandsInTownUrl).then(function (response) {\n //console.log(response.data)\n console.log(\"****************************************************\");\n console.log(\"Name of the Band: \" + userSearch + \"\\r\\n\")\n console.log(\"Name of the Venue: \" +response.data[0].venue.name+\"\\r\\n\");\n console.log(\"Venue location: \" + response.data[0].venue.city + \"\\r\\n\");\n console.log(\"Date of the Event :\" + moment(response.data[0].datetime).format('MM/DD/YYYY') + \"\\r\\n\");\n\n //Appends the search results to a text file name \"log\"\n var logConcert = (\"*****Bands In Town Log Entry*****\" + \n \"\\nMusician - \" + userSearch + \n \"\\nVenue - \" + response.data[0].venue.name + \n \"\\nDate -\" + moment(response.data[0].datetime).format('MM/DD/YYYY')+ \"\\n\" + \"\\r\\n\");\n fs.appendFile(\"log.txt\", logConcert, function (err){\n if(err) throw err\n});\n\n })\n}", "function songLookup() {\n let song = indicator[3];\n //Check if Search Song is not empty\n if (song != undefined) {\n //Loop thru and build query for more than one word\n for (let i = 3; i < indicator.length; i++) {\n if (i > 3 && i < indicator.length) {\n song = song + \" \" + indicator[i];\n } else {\n song = indicator[3];\n }\n }\n //Give user song \"The Sign\" if left empty \n } else {\n console.log(\"You didn't enter a song. Here's your sign!\");\n song = \"Ace of base\", \"The Sign\";\n }\n\n spotify.search({ type: 'track', query: song, limit: 1 }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n //If no results are found\n if (data.tracks.total == 0) {\n console.log(\"Sorry, no results found!..Try another song\");\n }\n\n let TrackSearchResult = data.tracks.items\n for (let i = 0; i < TrackSearchResult.length; i++) {\n console.log(\"*************************************************\")\n console.log(\"Artist: \" + JSON.stringify(TrackSearchResult[i].artists[0].name));\n console.log(\"Song: \" + JSON.stringify(TrackSearchResult[i].name));\n console.log(\"Preview Link: \" + JSON.stringify(TrackSearchResult[i].preview_url));\n console.log(\"Album: \" + JSON.stringify(TrackSearchResult[i].album.name));\n console.log(\"*************************************************\")\n }\n });\n}", "function searchAlbumCovers(id) {\n\n\n \n var queryUrl = \"https://api.spotify.com/v1/artists/\" + id + \"/albums?market=us&limit=10\"\n\n $.ajax({\n url: queryUrl,\n type: \"GET\",\n beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', 'Bearer ' + _token); },\n success: function (response) {\n\n $(\".image-results\").attr(\"src\", response.items[0].images[0].url)\n $(\".image-results\").attr(\"value\", response.items[0].id)\n $(\".image-results2\").attr(\"src\", response.items[1].images[0].url)\n $(\".image-results2\").attr(\"value\", response.items[1].id)\n\n $(\".image-results3\").attr(\"src\", response.items[2].images[0].url)\n $(\".image-results3\").attr(\"value\", response.items[2].id)\n\n $(\".image-results4\").attr(\"src\", response.items[3].images[0].url)\n $(\".image-results4\").attr(\"value\", response.items[3].id)\n\n $(\".image-results5\").attr(\"src\", response.items[4].images[0].url)\n $(\".image-results5\").attr(\"value\", response.items[4].id)\n\n $(\".image-results6\").attr(\"src\", response.items[6].images[0].url)\n $(\".image-results6\").attr(\"value\", response.items[6].id)\n\n\n $(\".album-name\").text(response.items[0].name)\n $(\".album-name2\").text(response.items[1].name)\n $(\".album-name3\").text(response.items[2].name)\n $(\".album-name4\").text(response.items[3].name)\n $(\".album-name5\").text(response.items[4].name)\n $(\".album-name6\").text(response.items[5].name)\n $(\".album-name7\").text(response.items[6].name)\n\n $(\".more-albums\").attr(\"src\", response.items[i].images[0].url)\n $(\".more-albums:nth-child(2)\").attr(\"src\", response.items[1].images[0].url)\n $(\".more-albums:nth-child(3)\").attr(\"src\", response.items[2].images[0].url)\n $(\".more-albums:nth-child(4)\").attr(\"src\", response.items[3].images[0].url)\n $(\".more-albums:nth-child(5)\").attr(\"src\", response.items[4].images[0].url)\n $(\".more-albums:nth-child(6)\").attr(\"src\", response.items[5].images[0].url)\n\n\n console.log(response.items[0].images[0].url)\n console.log(response)\n }\n});\n\n\n}", "getTracksMatchingArtist(artist) {\n return this.collecTracks(artist.getAlbums()); \n }", "function findSong(savedArrayOfChoices) {\n // declaring all vars according to savedArrayOfChoices \n var pickCountry = savedArrayOfChoices[0];\n var pickArtist = savedArrayOfChoices[1];\n var pickRelatedArtist = savedArrayOfChoices[2];\n var pickAlbum = savedArrayOfChoices[3];\n var pickSong = savedArrayOfChoices[4];\n\n // pushing country into chartQuery, returns artist\n var chartQuery = `chart.artists.get?page=1&page_size=4&country=${pickCountry}`;\n var musixUrl = `https://api.musixmatch.com/ws/1.1/${chartQuery}&format=jsonp&callback=callback&quorum_factor=1&apikey=${musixApikey}`;\n\n $.ajax({\n url: musixUrl,\n method: \"GET\",\n dataType: \"jsonp\"\n\n }).then(function (music) {\n\n // declaring artistId and artistname\n var artistId = music.message.body.artist_list[pickArtist].artist.artist_id;\n var artistName = music.message.body.artist_list[pickArtist].artist.artist_name;\n\n // pushing artistid, returns related artist\n var chartQuery = `artist.related.get?artist_id=${artistId}&page_size=4&page=1`;\n var musixUrl = `https://api.musixmatch.com/ws/1.1/${chartQuery}&format=jsonp&callback=callback&quorum_factor=1&apikey=${musixApikey}`;\n\n $.ajax({\n url: musixUrl,\n method: \"GET\",\n dataType: \"jsonp\"\n\n }).then(function (music) {\n\n // declaring related artist id and name\n var relatedArtistId;\n var relatedArtistName;\n\n // if no related artists, just use artist\n if (music.message.body.artist_list.length === 0) {\n relatedArtistId = artistId;\n relatedArtistName = artistName;\n }\n // otherwise use the related artist\n else {\n relatedArtistId = music.message.body.artist_list[pickRelatedArtist].artist.artist_id;\n relatedArtistName = music.message.body.artist_list[pickRelatedArtist].artist.artist_name;\n\n }\n\n // pushing relatedArtistId, returns album\n var chartQuery = `artist.albums.get?artist_id=${relatedArtistId}&s_release_date=desc&page_size=4`;\n var musixUrl = `https://api.musixmatch.com/ws/1.1/${chartQuery}&format=jsonp&callback=callback&quorum_factor=1&apikey=${musixApikey}`;\n\n $.ajax({\n url: musixUrl,\n method: \"GET\",\n dataType: \"jsonp\"\n\n }).then(function (music) {\n\n // declaring album id\n var albumId\n\n // if statements for if the artist doesn't have 4 albums\n if (music.message.body.album_list.length === pickSong) {\n albumId = music.message.body.album_list[pickAlbum].album.album_id;\n }\n else if (music.message.body.album_list.length === 3) {\n albumId = music.message.body.album_list[2].album.album_id;\n\n }\n else if (music.message.body.album_list.length === 2) {\n albumId = music.message.body.album_list[1].album.album_id;\n }\n else {\n albumId = music.message.body.album_list[0].album.album_id;\n\n }\n\n // pushing albumID, returns song\n var chartQuery = `album.tracks.get?album_id=${albumId}&page=1&page_size=4`;\n var musixUrl = `https://api.musixmatch.com/ws/1.1/${chartQuery}&format=jsonp&callback=callback&quorum_factor=1&apikey=${musixApikey}`;\n\n $.ajax({\n url: musixUrl,\n method: \"GET\",\n dataType: \"jsonp\"\n\n }).then(function (music) {\n // declaring song name\n var songName;\n\n // if statements for if the album doesn't have 4 songs\n if (music.message.body.track_list.length === pickSong) {\n songName = music.message.body.track_list[pickSong].track.track_name;\n\n }\n else if (music.message.body.track_list.length === 3) {\n songName = music.message.body.track_list[2].track.track_name;\n\n }\n else if (music.message.body.track_list.length === 2) {\n songName = music.message.body.track_list[1].track.track_name;\n\n }\n else {\n songName = music.message.body.track_list[0].track.track_name;\n\n }\n // finds video with youtube api\n getVideo(`${songName} ${relatedArtistName}`);\n\n // sets the text of final-artist-song to the song and artist that is found\n $(\"#final-artist-song\").text(`${songName} by ${relatedArtistName}`);\n });\n });\n });\n });\n}", "function retrieveBandsInTown(artist) {\n // Append the command to the log file\n fs.appendFile('./log.txt', `**************************************************************************\\nUser Command: node liri.js concert-this ${artist} \\n\\n`, (err) => {\n if (err) throw err;\n });\n\n var bandSearch;\n\n // Replace spaces with '' for the query string\n bandSearch = artist.split(' ').join('');\n\n if (artist === ``) {\n bandSearch = `NickiMinaj`;\n }\n\n console.log(bandSearch);\n const bandsInTownAPIKey = keys.bands.BANDS_API_KEY;\n // Construct the query string\n var queryStr = `https://rest.bandsintown.com/artists/${bandSearch}/events?app_id=${bandsInTownAPIKey}`;\n console.log(queryStr);\n\n fs.appendFile(`./log.txt`, `Query: ${queryStr} \\n\\n`, (err) => {\n if (err) throw err;\n });\n\n const options = {\n url: queryStr,\n method: \"GET\",\n headers: {\n 'Accept': 'application/json',\n 'Accept-Charset': 'utf-8'\n }\n };\n\n // Send the request to BandsInTown\n request(options, function (error, response, body) {\n var data = JSON.parse(body);\n\n if (error != null) {\n var errorStr1 = 'ERROR: Retrieving artist entry -- ' + error;\n\n // Append the error string to the log file\n fs.appendFile('./log.txt', errorStr1, (err) => {\n if (err) throw err;\n console.log(errorStr1);\n });\n return;\n } else {\n for (event in data) {\n\n const venue = data[0].venue;\n const eventInfo = data[event];\n //format the date \n const date = moment(eventInfo.datetime).format(\"MM/DD/YYYY\");\n\n //Return and Print the Concert information\n var outputStr =\n `\\n\n**************************************************************************\n Concert Information\n****************************${date}************************************\nArtist: ${eventInfo.lineup[0]} \nVenue: ${eventInfo.venue.name} \nCity: ${eventInfo.venue.city} \nState: ${eventInfo.venue.region}\nCountry: ${eventInfo.venue.country}`;\n console.log(outputStr);\n\n // Append the output to the log file\n fs.appendFile('./log.txt', `LIRI Response: ${outputStr} \\n\\n`, (err) => {\n if (err) throw err;\n });\n\n }\n\n }\n });\n}", "searchSpotify () {\n spotifyApi.searchTracks(this.state.queryTerm)\n .then((response) => {\n this.setState({\n results: response.tracks.items\n })\n });\n }", "function getArtistName() {\n\n return inquirer.prompt({\n type: \"input\",\n message: \"Enter artist/band name you want to search?\",\n name: \"artistOrBandName\",\n default: \"The Sign, Ace of Base\"\n });\n\n}", "function Search(term, type, callback){\n\n\tconsole.log(term + \" : \" + type);\n\n\tswitch(type){\n\n\t\tcase \"artist\":\n\t\t\tconsole.log(\"artist search\")\n\t\t\tJam.artistSearch(term, function(aSearch){\n\t\t\t\t/*\n\t\t\t\taArtists[\n\t\t\t\t\ttoArtist{\n\t\t\t\t\tID,\n\t\t\t\t\tType,\n\t\t\t\t\tName,\n\t\t\t\t\tCountry,\n\t\t\t\t\tScore,\n\t\t\t\t\tDisambiguation\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t*/\n\n\t\t\t\tconsole.log(aSearch)\n\n\t\t\t\t//First we need to check how many results were returned:\n\t\t\t\tif(!(aSearch.length > 0)){\n\t\t\t\t\t//Show some sort of error, 0 results\n\t\t\t\t\tconsole.log(\"No results\");\n\t\t\t\t\t$(\"#main-content\").html(\"\").append(Title(\"icon-search\", \"Search for \" + term)).append(\"<p>Returned no results, try a different search term.</p>\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//Display artists as a grid:\n\t\t\t\t\tvar grid = $(\"<div class='grid clearfix'></div>\");\n\t\t\t\t\tvar iResults = aSearch.length;\n\n\t\t\t\t\tvar markers = new Array();\n\n\t\t\t\t\tfor( var i = 0; i < iResults; i++ ){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tvar aTemplate = Template(\"artist\",\"grid\");\n\t\t\t\t\t\taTemplate = aTemplate.clone();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$(\".artist-mbid-link\", aTemplate).attr(\"href\", \"#artist:\" + aSearch[i].ID)\n\t\t\t\t\t\t$(\".artist-image\", aTemplate).attr(\"src\", Martwork.fetchImage(aSearch[i].ID));\n\t\t\t\t\t\t$(\".artist-name\", aTemplate).text(aSearch[i].Name);\n\n\t\t\t\t\t\tvar artistcountry = \"\";\n\t\t\t\t\t\tif(aSearch[i].Country != \"\"){\n\t\t\t\t\t\t\tartistcountry = aSearch[i].Country;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(aSearch[i].Type != \"\"){\n\t\t\t\t\t\t\tif(artistcountry == \"\"){\n\t\t\t\t\t\t\t\tartistcountry = aSearch[i].Type;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tartistcountry = artistcountry + \", \" + aSearch[i].Type;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$(\".artist-country\", aTemplate).text(artistcountry);\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t$(\".artist-disambiguation\", aTemplate).text(aSearch[i].Disambiguation);\n\t\t\t\t\t\t$(grid).append(aTemplate);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tvar content = $(\"<div class='content'></div>\");\n\n\t\t\t\t\t$(content).append(Title(\"icon-search\", \"Search for \" + term)).append(\"<div id='map_canvas' style='height: 300px; width:500px; float:right;'></div>\").append(grid);\n\t\t\t\t\t$(\"#main-content\").html(\"\").append(content);\n\t\t\t\t\tvar latlng = new google.maps.LatLng(-34.397, 150.644);\n\t\t\t\t\tvar mapOptions = {\n\t\t\t\t\tzoom: 8,\n\t\t\t\t\tcenter: latlng,\n\t\t\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n\t\t\t\t\t}\n\t\t\t\t\tmap = new google.maps.Map(document.getElementById(\"map_canvas\"), mapOptions);\n\t\t\t\t\tbounds = new google.maps.LatLngBounds();\n\t\t\t\t\tfor(var i=0; i< iResults; i++){\n\t\t\t\t\t\tvar artistcountry\n\t\t\t\t\t\tif(aSearch[i].Country != \"\"){\n\t\t\t\t\t\t\tartistcountry = aSearch[i].Country;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tartistcountry = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconsole.log(artistcountry);\n\t\t\t\t\t\t\n\t\t\t\t\t\tgeocoder = new google.maps.Geocoder();\n\t\t\t\t\t\tgeocoder.geocode( { 'address': 'Country: ' + artistcountry}, function(results, status) {\n\n\t\t\t\t\t\t\tif (status == google.maps.GeocoderStatus.OK) {\n\t\t\t\t\t\t\t\tconsole.log(\"marker\")\n\t\t\t\t\t\t\t\tmarkers.push(new google.maps.Marker({ map: map, position: results[0].geometry.location }));\n\t\t\t\t\t\t\t\tbounds.extend(results[0].geometry.location);\n\t\t\t\t\t\t\t\tmap.fitBounds(bounds); \n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t}\n\n\t\t\t});\n\t\tbreak;\n\n\t\tcase \"track\":\n\t\t\tJam.recordingSearch(term, function(aSearch){\n\t\t\t\t/*\n\t\t\t\taRecordings[\n\t\t\t\t\ttoRecording{\n\t\t\t\t\tTitle,\n\t\t\t\t\tDuration,\n\t\t\t\t\tID,\n\t\t\t\t\tScore,\n\t\t\t\t\tArtist{\n\t\t\t\t\t\tName,\n\t\t\t\t\t\tDisambiguation,\n\t\t\t\t\t\tID\n\t\t\t\t\t}\n\t\t\t\t\tReleases[\n\t\t\t\t\t\ttoRecordingRelease{\n\t\t\t\t\t\t\tTitle,\n\t\t\t\t\t\t\tID,\n\t\t\t\t\t\t\tType,\n\t\t\t\t\t\t\tReleaseDate,\n\t\t\t\t\t\t\tCountry,\n\t\t\t\t\t\t\tTrackCount\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t*/\n\n\t\t\t\t//First we need to check how many results were returned:\n\t\t\t\tif(!(aSearch.length > 0)){\n\t\t\t\t\t//Show some sort of error, 0 results\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//Display artists as a grid:\n\n\t\t\t\t}\n\n\t\t\t});\n\t\tbreak;\n\n\t\tcase \"album\":\n\n\t\tbreak;\n\n\t\tcase \"all\":\n\n\t\tbreak;\n\n\t}\n\n}", "function findTheArtists(artists) {\n artists.forEach(function(artist) {\n $http.get(artistSearchUrl + artist.id).success(function(response){\n data = $scope.artists.push(response);\n });\n });\n }", "getMusicByArtist({commit, dispatch}, artist) {\n itunes.get('search?term='+artist).then(res=>{\n console.log(res)\n commit('setItunes', res.data.results)\n })\n .catch(err=>{\n console.error(err)\n })\n }", "function searchArtist(artist, type, callback) \n{\n\ttype = type.toLowerCase();\n\tvar type2Urls = Constants.Type2URLs[type];\n\tif (!type2Urls){\n\t\tprocess.nextTick(function(){\n\t\t\tcallback(\"Unrecognized type in artist search [type=\" + type + \"]\");\n\t\t});\n\t\treturn;\n\t}\n\n\tsuperAgent.get(type2Urls.artist_url + artist)\n\t.set(\"Accept\", \"text/html\")\n\t.end(function (res) {\n\t\tdebugger;\n\t\tif (res.ok) \n\t\t{\n\t\t\tparseArtistHTML(res.text, type, function(result){\n\t\t\t\tif (result instanceof Error) \n\t\t\t\t{\n\t\t\t\t\tcallback(result);\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tcallback(null, result);\n\t\t\t\t}\n\t\t\t\tconsole.log(\"searchArtist called its callback\");\n\t\t\t});\n\t\t} \n\t\telse \n\t\t{\n\t\t\tconsole.log(\"Received a non expected HTTP status [status=\" + res.status + \"]\");\n\t\t\treturn callback(new Error(\"Unexpected HTTP status: \" + res.status));\n\t\t}\n\t});\n}", "function spotifyThis() {\n // console.log(searchQuery);\n if (!searchQuery) {\n searchQuery = \"The Sign by Ace of Base\"\n // console.log(searchQuery);\n }\n spotify.search({\n type: 'track',\n query: searchQuery\n }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n // console.log(JSON.stringify(data.tracks))\n console.log(\"Artist: \" + data.tracks.items[0].album.artists[0].name);\n console.log(\"Song Title: \" + data.tracks.items[0].name);\n console.log(\"Album Name: \" + data.tracks.items[0].album.name);\n console.log(\"Spotify Preview link: \" + data.tracks.items[0].preview_url);\n\n\n\n });\n}", "function getDeezerArtist(name) {\n axios.get(`https://cors-anywhere.herokuapp.com/api.deezer.com/search/artist/?q=${name}&index=0&limit=1`)\n .then(resp => {\n setSingleArtist(resp.data.data[0])\n const artistId = resp.data.data[0].id\n axios.get(`https://cors-anywhere.herokuapp.com/api.deezer.com/artist/${artistId}/top`)\n .then(resp => {\n setSongPreviews(resp.data.data)\n })\n })\n }", "function searchCategory(artistName) {\n // storing the artist name\n var artist = artistName;\n // eventbrite query for address\n var queryURL = \"https://www.eventbriteapi.com/v3/events/search/?q=\" + artist + \"&categories=103&sort_by=date&token=LZK5FF2X7F4CBKXH2PUW\";\n\n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function (response) {\n\n //tracking if artist was found\n var foundArtist = false;\n var artistTracker = 0; //4 max\n\n //loop to search for keyword in \n for (var i = 0; i < response.events.length; i++) {\n var description = response.events[i].name.text.toLowerCase();\n if (description.includes(artist.toLowerCase())) {\n\n\n //create one row div per artist\n var newDiv = $(\"<div>\").addClass(\"row mt-2 mb-2\").attr(\"id\", \"number\" + i);\n $(\"#new-artist-div\").append(newDiv);\n\n //for a copy\n var newDiv2 = $(\"<div>\").addClass(\"row mt-2 mb-2\").attr(\"id\", \"numberm\" + i);\n $(\"#new-artist-div2\").append(newDiv2);\n\n //IF ARTIST WAS FOUND IN MUSIC CATEGORY\n artistTracker++;\n\n //just a response check\n console.log(\"searchCategory response: \");\n console.log(response.events[i]);\n foundArtist = true;\n\n //extract event id \n var getID = response.events[i].id;\n console.log(\"searchCategory getid: \" + getID);\n\n // search by id and print address\n searchbyID(getID, i);\n\n //extract organizer id \n organizerID = response.events[i].organizer_id;\n console.log(\"searchCategory organizer_id: \" + organizerID);\n\n // Constructing HTML containing the artist information\n var artistName1 = $(\"<h1>\").text(artistName);\n\n // var startTime = $(\"<h3>\").text(\"Event date and start time details in searchCategory: \" + formattedEventDate);\n\n // var endTime = $(\"<h3>\").text(\"Event date and end time details: \" + response.end.utc)\n $(\"#artist-div\").empty();\n $(\"#artist-div\").append(artistName1);\n\n if (artistTracker > 4) {\n console.log(\"more than 4\");\n break;\n }\n\n } else if (foundArtist === false) {\n //show Sorry message\n\n //hide concert and merch divs if artist not found\n console.log(\"No artist found in: \" + response.events[i].name.text);\n console.log(response.events[i]);\n }\n }\n\n //hide concert and merch divs if artist not found\n if (!foundArtist) {\n console.log(\"No artist found!\");\n }\n\n });\n }", "function bandSearch() {\nbandsintown\n .getArtistEventList(userInput)\n .then(function(events, err) {\n if(err) {\n console.log('Error occured: ' + err);\n return;}\n console.log(\"--------BANDS IN TOWN START---------\");\n console.log(\"Venue: \" + JSON.stringify(events[0].venue.place));\n console.log(\"Location: \" + JSON.stringify(events[0].formatted_location));\n date = moment(events[0].datetime).format(\"MM/DD/YYYY\");\n console.log(\"Date: \" + date);\n console.log(\"--------BANDS IN TOWN END---------\");\n fs.appendFileSync(\"log.txt\",\"==============BANDS IN TOWN START==============\");\n fs.appendFileSync(\"log.txt\",\"\\nVenue: \" + JSON.stringify(events[0].venue.place));\n fs.appendFileSync(\"log.txt\", \"\\nLocation: \" + JSON.stringify(events[0].formatted_location));\n fs.appendFileSync(\"log.txt\", \"\\nDate: \" + JSON.stringify(date));\n fs.appendFileSync(\"log.txt\",\"\\n==============BANDS IN TOWN END================\\n\");\n fs.appendFileSync(\"log.txt\",\" \\n \");\n });\n}", "function bands(input) {\n\n var bandName;\n if (input === undefined) {\n bandName = \"Judah & the Lion\";\n } else {\n bandName = input;\n }\n\n //Setting the Bandsintown API query URL \n var queryURL = \"https://rest.bandsintown.com/artists/\" + bandName + \"/events?app_id=codingbootcamp&tracker_count=10\";\n\n request(queryURL, function (error, response, body) {\n\n if (!error && response.statusCode === 200){\n\n var jsData = JSON.parse(body);\n for (i = 0; i < jsData.length; i++) {\n var dTime = jsData[i].datetime;\n var month = dTime.substring(5, 7);\n var day = dTime.substring(8, 10);\n var year = dTime.substring(0, 4);\n var dateFormat = month + \"-\" + day + \"-\" + year;\n\n logged(\"\\n---------\\n\");\n logged(\"Band:\" + bandName);\n logged(\"Date: \" + dateFormat);\n logged(\"Venue: \" + jsData[i].venue.name);\n logged(\"City: \" + jsData[i].venue.city);\n logged(\"Country: \" + jsData[i].venue.country);\n logged(\"\\n---------\\n\");\n\n }\n }\n });\n}", "getTracksMatchingArtist(_artist) {\n const artist = this.artists.find( artist => \n artist.isName(_artist.name)\n );\n return artist.getAllTracks();\n }", "function concertThis(){ \n axios.get('https://rest.bandsintown.com/artists/' + arg2 + '/events?app_id='+ keys.bandsintown.apiKey)\n .then(function (response) {\n var bandsInTown = response.data\n // request return 20 results\n // only use data from the first 5 \n if(bandsInTown.length>0 && Array.isArray(bandsInTown)){\n console.log('\\n##########################')\n console.log('\\nconcert-this =>', arg2)\n console.log('\\n------------------------')\n for(var i = 0; i<5; i++) {\n console.log('\\n')\n console.log('**************************')\n console.log('Venue Name:',bandsInTown[i].venue.name)\n console.log('Venue Location:', bandsInTown[i].venue.city +\", \"+ bandsInTown[i].venue.country)\n console.log('Event Date:', moment(bandsInTown[i].datetime).format('MM/DD/YYYY'))\n console.log('**************************')\n console.log('\\n')\n }\n console.log('\\n##########################')\n console.log('\\n')\n } else {\n console.log('\\n##########################')\n console.log('\\nspotify-this-song =>', arg2)\n console.log('\\n------------------------')\n console.log('\\n')\n console.log('Sorry, no upcoming events are listed for this artist/band. \\nPlease try another!')\n console.log('\\n##########################')\n console.log('\\n')\n return\n }\n })\n .catch(function (error) {\n return console.log('Error occurred: please try again O_o');\n });\n }", "function spotify(){\n spotify = new Spotify({\n id: spotifyKeys.id,\n secret: spotifyKeys.secret,\n });\n //console.log(spotSearch);\n if(spotSearch !== \"\"){\n spotify.search({\n type:'track',\n query: spotSearch,\n }, function(err, data){\n if (!err){\n var trackInfo = data.tracks.items[0];\n //console.log(data);\n //console.log(spotSearch);\n console.log('Title: ' + trackInfo.name + '\\nAlbum: ' + trackInfo.album.name + '\\nArtists: ');\n for (i = 0; i < trackInfo.album.artists.length; i++){\n console.log(trackInfo.artists[i].name)\n }\n console.log('Preview Link: ' + trackInfo.href)\n }\n })\n }\n else {\n spotify.search({type:'track', query:'The Sign Ace of Base'}, function(err, data){\n if (!err){\n var trackInfo = data.tracks.item[0];\n cconsole.log(\"Title: \" + trackInfo.name + '\\nAlbum: ' + trackInfo.album.name + '\\nArtists: ');\n for (i = 0; i < trackInfo.album.artists.length; i++){\n console.log(trackInfo.artists[i].name)\n }\n console.log('Preview Link: ' + trackInfo.href)\n }\n })\n }\n // spotify.search({type:'artist', query: spotSearch}, function(err, data){\n // if (err){\n // return console.log('Error occured: ' + err);\n // }\n // console.log(data);\n}", "function artist(player, values, callback) {\r\n \r\n var artistQuery = decodeURIComponent(values[0]);\r\n \r\n console.log(getTimestamp() + ': Artist ' + artistQuery);\r\n \r\n callback.invokeIntended = true;\r\n \r\n player.browse('A:ALBUMARTIST:'+artistQuery, null, null, function(error, result) {\r\n console.log(getTimestamp() + ': query success: ' + error);\r\n\r\n if (error) {\r\n console.log('Error searching for artist ' + artistQuery + ':' + error);\r\n callback({success: false, text: 'Error searching for artist ' + artistQuery});\r\n }\r\n else if (result.items.length == 0) {\r\n console.log('Error: artist ' + artistQuery + ' not found');\r\n callback({success: false, text: 'Artist ' + artistQuery + ' not found'});\r\n }\r\n else {\r\n // todo: check if this artist is already playing?\r\n var queueURI = \"x-rincon-queue:\" + player.uuid + \"#0\";\r\n \r\n // clear current queue, so we can fill with songs from artist\r\n player.removeAllTracksFromQueue(function (error) {\r\n if (error) {\r\n console.log('Error clearing the queue');\r\n callback({success: false, text: 'Error clearing the queue'});\r\n }\r\n else {\r\n player.addURIToQueue(result.items[0].uri, '', function (error) {\r\n if (error) {\r\n console.log(\"Error: problem loading playlist\");\r\n callback({success: false, text: 'Error loading playlist'});\r\n }\r\n else {\r\n //need this to tell sonos to use queue (it may be playing from line in, etc)\r\n player.setAVTransportURI(queueURI, \"\", function (error) {\r\n console.log('Playing ' + result.items[0].title);\r\n player.coordinator.play();\r\n callback({success: true, text: 'Playing music from ' + result.items[0].title });\r\n });\r\n }\r\n });\r\n }\r\n \r\n });\r\n }\r\n });\r\n}", "function getRequestArtistInfo(artistName) {\n var params = {\n api_key: \"28013ebbad44c5793cdc84377c824554\",\n method: \"artist.getInfo\",\n format: \"json\",\n artist: artistName\n };\n var url = \"https://ws.audioscrobbler.com/2.0\";\n state.countCallbacks++; // keep track of callback count so render function knows when to fire\n $.getJSON(url, params).done(setArtistInfo).fail(function(){ console.log(\"Error getting artist\"); });\n}", "function spotifySearch() {\n\tsearchTerm = '\"' + process.argv.slice(3).join(\" \") + '\"';\n\tconsole.log(\"Searching for \" + searchTerm + \"...\\n\");\n\tspotify\n .search({ type: 'track', query: searchTerm, limit: 1 })\n .then(function(response) {\n console.log(`\n----------------------------------------------------------------------------------------\n\t\t\tYou searched for the song: ${response.tracks.items[0].name} \n\t\t\tThe Artist is: ${response.tracks.items[0].album.artists[0].name}\n\t\t\tThe Album is: ${response.tracks.items[0].album.name}\n\t\t\tClick here to hear a clip: ${response.tracks.items[0].external_urls.spotify}\n \t`);\n\n })\n .catch(function(err) {\n return console.log('Error occurred: ' + err);\n });\n }", "function findTheSign() {\n \t\tspotify.search({ type:\"track\", query:\"The Sign\" }, function(err, data) {\n \t\t\tvar firstStep = data.tracks;\n \t\t\tvar secondStep = data.tracks.items;\n \t\t\tfor (var i = 0; i < secondStep.length; i++) {\n \t \t\t\tif (firstStep.items[i].artists[0].name === \"Ace of Base\") {\n\t \t\t\t\tif (firstStep.items[i].album.name != \"Greatest Hits\") {\n\t \t\t\t\t\tconsole.log(firstStep.items[i].artists[0].name);\n\t\t\t\t\t\tconsole.log(firstStep.items[i].name);\n\t\t\t\t\t\tconsole.log(firstStep.items[i].preview_url);\n\t\t\t\t\t\tconsole.log(firstStep.items[i].album.name);\n\t\t\t\t\t}\n\t \t\t\t}\n \t\t\t}\n \t\t});\t\t\t\n\t}", "function ShowBandsInTownInformation(info){\n if(info == \"\" || info == null || info.length == 0){\n console.log(chalk.yellow(\" ____ _ _ _ ____ ____ ___ _ _ _____ _____ ___ _ \"));\n console.log(chalk.yellow(\" | __ ) / \\\\ | \\\\ | | _ \\\\/ ___| |_ _| \\\\ | | |_ _/ _ \\\\ \\\\ / / \\\\ | |\"));\n console.log(chalk.yellow(\" | _ \\\\ / _ \\\\ | \\\\| | | | \\\\___ \\\\ | || \\\\| | | || | | \\\\ \\\\ /\\\\ / /| \\\\| |\"));\n console.log(chalk.yellow(\" | |_) / ___ \\\\| |\\\\ | |_| |___) | | || |\\\\ | | || |_| |\\\\ \\V V / | |\\\\ |\"));\n console.log(chalk.yellow(\" |____/_/ \\\\_\\\\_| \\\\_|____/|____/ |___|_| \\\\_| |_| \\\\___/ \\\\_/\\\\_/ |_| \\\\_|\"));\n console.log(\" \");\n console.log(\"================================================================================\\n\");\n console.log(chalk.green(\"\\t> LIRI:\") + \" You're searching for an empty query. Please type something.\");\n console.log(\"\\n================================================================================\\n\");\n }else{ \n axios\n .get(\"https://rest.bandsintown.com/artists/\" + info + \"/events?app_id=codingbootcamp\")\n .then(function(response) {\n\n console.log(chalk.yellow(\" ____ _ _ _ ____ ____ ___ _ _ _____ _____ ___ _ \"));\n console.log(chalk.yellow(\" | __ ) / \\\\ | \\\\ | | _ \\\\/ ___| |_ _| \\\\ | | |_ _/ _ \\\\ \\\\ / / \\\\ | |\"));\n console.log(chalk.yellow(\" | _ \\\\ / _ \\\\ | \\\\| | | | \\\\___ \\\\ | || \\\\| | | || | | \\\\ \\\\ /\\\\ / /| \\\\| |\"));\n console.log(chalk.yellow(\" | |_) / ___ \\\\| |\\\\ | |_| |___) | | || |\\\\ | | || |_| |\\\\ \\V V / | |\\\\ |\"));\n console.log(chalk.yellow(\" |____/_/ \\\\_\\\\_| \\\\_|____/|____/ |___|_| \\\\_| |_| \\\\___/ \\\\_/\\\\_/ |_| \\\\_|\"));\n console.log(\" \");\n console.log(\"================================================================================\\n\");\n console.log(chalk.green(\"\\t> LIRI:\") + \" You searched for '\" + chalk.bgBlue.white(info) + \"'. Please wait until I get the \" + \"\\n\\t\\tinformation you need.\\n\");\n console.log(chalk.bgWhite.black(\"\\t\\t\\tL O A D I N G . . . 100%\\n\"));\n console.log(\"\\n================================================================================\\n\");\n \n var data = response.data;\n if(data == null || data == 0 || data == \"\"){\n console.log(chalk.green(\"\\t> LIRI:\") + \" I'm sorry, but concert data 404\");\n }else \n if(data.length == 1){\n console.log(chalk.green(\"\\t> LIRI:\") + \" I have \" + chalk.red(data.length) + \" result for you\\n\"); \n }else{\n console.log(chalk.green(\"\\t> LIRI:\") + \" I have \" + chalk.red(data.length) + \" results for you\\n\");\n }\n \n for(var i = 0; i < data.length; i++){\n if(moment(moment()).isBefore(data[i].datetime, 'week')){\n var eventNumber = 1;\n eventNumber+=eventNumber;\n console.log(\"============================= EVENT INFORMATION ================================\")\n console.log(chalk.yellow(\"\\n\\tArtist/Band Name: \") + data[i].lineup);\n console.log(chalk.yellow(\"\\n\\ttVenue Name\\t: \") + data[i].venue.name);\n console.log(chalk.yellow(\"\\n\\tLocation \\t: \") + data[i].venue.city + \", \" +\n data[i].venue.region + \", \" + data[i].venue.country);\n console.log(chalk.yellow(\"\\n\\tDate \\t\\t: \") + moment(data[i].datetime).format(\"MM/DD/YYYY\") + \"\\n\\n\");\n }\n }\n \n } \n )\n .catch(function(error) {\n if (error.response) {\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n console.log(error.response.data);\n console.log(error.response.status);\n console.log(error.response.headers);\n } else if (error.request) {\n // The request was made but no response was received\n // `error.request` is an object that comes back with details pertaining to the error that occurred.\n console.log(error.request);\n } else {\n // Something happened in setting up the request that triggered an Error\n console.log(\"Error\", error.message);\n }\n console.log(error.config);\n });\n } \n}", "function showSpotifySong() {\n\n //variable for search term, test if defined.\n\n\n var searchTrack;\n\n if (secondCommand === undefined) {\n\n searchTrack = \"The Sign\";\n\n } else {\n\n searchTrack = secondCommand;\n\n }\n\n //launch spotify search\n\n spotify.search({ type: 'track', query: searchTrack }, function(err, data) {\n\n if (err) {\n\n console.log('Error occurred: ' + err);\n\n return;\n\n } else {\n\n\n console.log(\"Artist: \" + data.tracks.items[0].artists[0].name);\n\n console.log(\"Song: \" + data.tracks.items[0].name);\n\n console.log(\"Album: \" + data.tracks.items[0].album.name);\n\n\n\n }\n\n });\n\n}", "getTracksMatchingArtist(artistName) {\n const artist= this.getArtistByName(artistName);\n return artist.getTracks();\n }", "function concertThis(bandName) {\n\tconsole.log(\"concert-this\");\n\tvar queryUrl = \"https://rest.bandsintown.com/artists/\" + bandName + \"/events?app_id=codecademy\";\n\taxios.get(queryUrl).then((response) => {\n\t\t// console.log('response.data', response.data);\n\n\t\tconst bandNames = response.data.map(function(band) {\n\t\t\treturn band.lineup.join(\", \");\n\t\t});\n\t\tconsole.log(\"bandNames\", bandNames);\n\n\t\t//console.log('Name', Name);\n\t\t//console.log('City', City);\n\t\t// console.log('Date', Date);\n\t\t// console.log('Country', Country);\n\n\t\t//command 3 movie this\n\t\t// run a movie to the OMDB API with the movie specified\n\t});\n}", "function searchItunesDatabase(name) {\n const artist = name;\n const searchTerm = artist.split(' ').join('+');\n return fetch(`http://itunes.apple.com/search?term=${searchTerm}&entity=album`, {\n method: 'GET', // *GET, POST, PUT, DELETE, etc.\n })\n .then(function(res) {\n if (!res.ok) {\n return Promise.reject(res.statusText);\n }\n return res.json()\n })\n .then(function(data) {\n data.results.map(music => music)\n return data.results\n })\n}", "function findByArtist(artist){\n// - Create an array to hold any results, empty to start\n let holdTheseArtists = []\n// - Loop through the `collection` and add any objects with a matching artist to the array.\nfor (let i = 0; i < collection.length; i++) {\n const element = collection[i];\n\n if (artist == element.artist) {\n holdTheseArtists.push(element)\n }\n \n}\n// - Return the array with the matching results. If no results are found, return an empty array.\nreturn holdTheseArtists && console.log('Find by Artist:', artist, holdTheseArtists);\n}", "function townArtists(){\n\nvar artist = \"\";\nbandPlaying = process.argv;\nif(input===undefined){\n artist = \"Santana\" \n} else {\n for(i=3; i<bandPlaying.length; i++){\n artist += bandPlaying[i];\n }\n}\n\n//use the provided link in README.md for bandsintown\n//axios request using Bands in Town API\naxios.get(\"https://rest.bandsintown.com/artists/\" + artist +\"/events?app_id=codingbootcamp\").then(\n function(response) {\n quick = response.data[0];\n console.log(\"Name of Venue: \"+quick.venue.name);\n console.log(\"Venue Location: \"+quick.venue.city);\n console.log(moment(quick.datetime).format('MM-DD-YY'));\n\n }\n );\n}", "function spotSearch(song){\n\n if(!song){\n var daSong = \"The Sign\";\n } else{\n daSong = song\n }\n spotify.search({type: 'track', query: daSong, limit: \"1\"}, function(err, data){\n \n if(err){\n console.log(err);\n }\n \n let artist = data.tracks.items[0].album.artists[0].name;\n let songName = data.tracks.items[0].name;\n let album = data.tracks.items[0].album.name;\n let release = data.tracks.items[0].album.release_date;\n\n \n console.log(\"Artist: \" + artist);\n console.log(\"Album: \" + album);\n console.log(\"Release date: \" + release);\n console.log(\"Song name: \" + songName);\n\n\n });\n}", "function concertThis(artist) {\n\n // Bands in town API\n var queryURL = \"https://rest.bandsintown.com/artists/\" + artist + \"/events?app_id=codingbootcamp\";\n\n // Helps to debug actual URL\n // console.log(queryURL);\n\n // Using axios get method and catch method to print data \n axios.get(queryURL).then(\n function (response) {\n console.log(\"Venue Name: \" + response.data[0].venue.name);\n console.log(\"Venue Location: \" + response.data[0].venue.city);\n console.log(\"Date of Event: \" + moment(response.data[0].datetime).format(\"MM/DD/YYYY\"));\n }\n\n ).catch(function (error) {\n console.log(error);\n });\n}", "async fetchTopArtist() {\n const res = await fetch(`//ws.audioscrobbler.com/2.0/?method=chart.gettopartists&api_key=77730a79e57e200de8fac0acd06a6bb6&format=json`)\n const data = await res.json()\n console.log(data);\n }", "function spotifySearch() {\n // console.log(\"This is the spotify search\");\n if(process.argv.length === 3){\n searchTerm = \"The Sign\";\n }\n spotify.search({\n type: \"track\",\n query: searchTerm,\n limit: 10,\n }, function(err,data) {\n if(err) {\n return console.log(\"Error occurred: \" + err);\n }\n for (var i = 0; i < data.tracks.items.length; i++) {\n \n console.log(`Artist: ${data.tracks.items[i].artists[0].name}\\nSong Name: ${data.tracks.items[i].name}\\nSpotify Preview Link: ${data.tracks.items[i].preview_url}\\nAlbum: ${data.tracks.items[i].album.name}\\n\\n`);\n }\n })\n trackInfo(action, searchTerm);\n }", "function spotifyThisSong(value) {\n if (value == null) {\n value = \"The Sign\";\n }\n spotify.search({\n type: 'track',\n query: value\n }, function (err, data) {\n if (err) {\n return outputAndLog('Error occurred: ' + err);\n }\n var artist = data.tracks.items[0].album.artists[0].name;\n outputAndLog(\"Artist: \" + artist);\n var song = data.tracks.items[0].name;\n outputAndLog(\"Song: \" + song);\n var link = data.tracks.items[0].external_urls.spotify;\n outputAndLog(\"Link: \" + link);\n var album = data.tracks.items[0].album.name;\n outputAndLog(\"Album: \" + album);\n\n });\n\n}", "function searchSpotify() {\n inquirer.prompt([{\n type: 'input',\n name: 'song',\n message: \"Name a song:\"\n }, {\n type: 'input',\n name: 'artist',\n message: \"Name the artist:\"\n }\n ]).then(answers => {\n spotify.search({ type: 'track', query: (answers.song + \", \" + answers.artist) }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n console.log(\"Here is '\" + data.tracks.items[0].name + \"' from the album, \" + data.tracks.items[0].album.name + \", by \" + data.tracks.items[0].album.artists[0].name);\n console.log(\"Spotify Link: \" + data.tracks.items[0].preview_url);\n });\n });\n}", "function bandsInTown(artist) {\n // Default value\n if (artist == \"\") {\n artist = \"Cher\";\n }\n request(\n `https://rest.bandsintown.com/artists/${artist}/events?app_id=codingbootcamp`,\n function(err, response, data) {\n try {\n let response = JSON.parse(data);\n if (response.length != 0) {\n console.log(`Upcoming concerts for ${artist} include: `);\n response.forEach(function(element) {\n console.log(`Venue name: ${element.venue.name}`);\n if (element.venue.country === \"United States\") {\n console.log(\n `City: ${element.venue.city} ${element.venue.region}`\n );\n } else {\n console.log(\n `City: ${element.venue.city} ${element.venue.country}`\n );\n }\n console.log(\n `Date: ${moment(element.datetime).format(\"MM/DD/YYYY\")}`\n );\n console.log();\n });\n } else {\n console.log(\"No concerts found\");\n }\n } catch (err) {\n console.log(\"No concerts\");\n }\n }\n );\n}", "function bandsInTownAPI(){\n // Create a variable to store the user's argument\n var nodeArgs = process.argv;\n // Create a variable to store the artist/bands name\n var artistName = \"\";\n\n // Loop through all the words in the node argument starting at the 3rd arguement\n for (var i = 3; i < nodeArgs.length; i++) {\n\n if (i > 3 && i < nodeArgs.length) {\n artistName = artistName + \"+\" + nodeArgs[i];\n }\n else { artistName += nodeArgs[i]; }\n }\n // Querying the bandsintown api for the selected artist\n var queryUrl = \"https://rest.bandsintown.com/artists/\" + artistName + \"/events?app_id=codingbootcamp\";\n axios.get(queryUrl).then(\n function(response) {\n // console log event information\n console.log(\"Name of venue: \" + response.data[0].venue.name);\n console.log(\"Venue location: \" + response.data[0].venue.city + \", \" + response.data[0].venue.country);\n // Create a variable to store the event date\n var rawDate = response.data[0].datetime;\n // Formate the event date using moment\n var formattedDate = moment(rawDate).format('MM/DD/YYYY')\n console.log(\"Date of Event: \" + formattedDate); \n }\n );\n}", "function lastFm(artist) {\n\n let apiKey = \"0cbe3f08368a5039e0df2102a963979e\";\n let queryURL = \"https://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist=\" + artist + \"&api_key=\" + apiKey + \"&format=json\";\n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function (response) {\nconsole.log(response)\n $(\"#ar_info\").append(response.artist.bio.summary);\n \n })\n\n}", "function searchArtist(){\n artist = document.getElementById(\"search\");\n id = 0;\n var aux4 = null;//boolean\n $.ajax({\n url: 'https://itunes.apple.com/search',\n crossDomain: true,\n dataType: 'jsonp',\n data: {\n term: artist.value,\n entity: 'song',\n limit: 30,\n explicit: 'No'\n },\n method: 'GET',\n success: function(data){\n console.log(data);\n\n results.innerHTML =\"\";//clear search\n\n $.each(data.results,function(i,result){\n if ( i > 23 ) { return false; }\n var hires = result.artworkUrl100.replace('100x100','480x480');\n aux='<div class=\"card-container\"><img src=\"'+hires+'\" onerror=\"src='+result.artworkUrl100+'\" /> <div class=\"card\"><h2>'+result.trackName+'</h2><p>'+result.collectionCensoredName+'</p></div><div><button id='+id+' class=\"heartButton\">';\n //Put correct icon button --> fav song (heart) | no fav song (heart-outline)\n if(favSongList.length > 0){\n aux4 = true;\n for(var i=0; i<favSongList.length; i++){\n if(favSongList[i].querySelector(\".card\").querySelector(\"h2\").textContent == result.trackName){\n aux+='<img src=\"icon/heart.png\"/></button></div></div>';\n aux4 = false;\n }\n }\n if(aux4){\n aux+='<img src=\"icon/heart-outline.png\"/></button></div></div>';\n }\n }\n else{\n aux='<div class=\"card-container\"><img src=\"'+hires+'\" onerror=\"src='+result.artworkUrl100+'\" /> <div class=\"card\"><h2>'+result.trackName+'</h2><p>'+result.collectionCensoredName+'</p></div><div><button id='+id+' class=\"heartButton\"><img src=\"icon/heart-outline.png\"/></button></div></div>';\n }\n results.innerHTML+=aux;\n id++;\n });\n addSongsToFav(false);//fill var 'favSongList'\n },\n error: function(e){\n console.log(e);\n }\n }); \n}", "findConcert(artistName, maxEvents = this.maxEvents) {\n let query = \"https://rest.bandsintown.com/artists/\" \n + artistName + \"/events?\" + this.key;\n\n console.log(`\\n=======\\nFinding concerts for \"${artistName}\"`);\n this.request(query, (error, response, body) => {\n if (error) {\n console.log(\"ERROR: \", error);\n return;\n }\n const jsonObj = this.body2JSON(body);\n if (!jsonObj) return;\n\n console.log(`\\n=======\\nResult for \"${artistName}\" concerts`);\n this.printConcertInfo(jsonObj, maxEvents);\n });\n }", "function searchTracks() {\n let searchResults = trackInput.value;\n\n fetch('https://api.soundcloud.com/tracks/?client_id=86b6a66bb2d863f5d64dd8a91cd8de94&q=' + searchResults).then(function(response) {\n if (response.status != 200) {\n console.log('Looks like there was a problem. Status Code' + response.status);\n return;\n }\n\n response.json().then(function(data) {\n let track = data;\n console.log(track);\n\n\n\n let searchedFor = document.createElement('div');\n\n searchedFor.id = 'searchedFor';\n document.body.appendChild(searchedFor);\n document.getElementById('searched').appendChild(searchedFor);\n searchedFor.className = 'searchedFor';\n searchedFor.innerHTML = \"Recent Searches\" +\": \"+ searchResults;\n\n\n\n var clientId = \"/?client_id=86b6a66bb2d863f5d64dd8a91cd8de94\";\n function renderTracks() {\n\n return `\n ${track.map(track =>\n `<div class=\"box\">\n <div class=\"blankImage\"></div>\n <div src=\"${track.stream_url}\"></div>\n <button id=\"albumBtn\" class=\"albumButton\"><img id=\"${track.stream_url}${clientId}\" src=\"${track.artwork_url}\"></img></button>\n <div id=\"songTitle\" class=\"title\">${track.title}</div>\n </div>`\n )}\n `\n }\n\n let markup = `${renderTracks()}`;\n document.getElementById('bands').innerHTML = markup;\n\n var playThis = document.getElementsByClassName('albumButton');\n var playInDocument = document.getElementById('bands').addEventListener('click', function (event) {\n event.target = playThis;\n let playTrack = `<audio src=\"${event.target.id}\" id=\"audio\" controls=\"controls\"></audio>`\n \n return document.getElementById('playAudioHere').innerHTML = playTrack\n\n\n })\n\n\n })\n })\n}", "function spotifyThisSong(songName) {\n console.log(\"spotify is working\");\n if (songName === undefined) {\n songName = \"What's my age again\";\n }\n \n spotify.search(\n {\n type: \"track\",\n query: songName\n },\n function(err, data) {\n if (err) {\n console.log(\"Error occurred: \" + err);\n return;\n }\n \n var songs = data.tracks.items;\n \n for (var i = 0; i < songs.length; i++) {\n console.log(i);\n console.log(\"artist(s): \" + songs[i].artists.map(getArtistNames));\n console.log(\"song name: \" + songs[i].name);\n console.log(\"preview song: \" + songs[i].preview_url);\n console.log(\"album: \" + songs[i].album.name);\n console.log(\"-----------------------------------\");\n }\n }\n );\n\n\n}", "function spofityPlay() {\n spotify\n .search({ type: 'track', query: \"\\\" \" + input + \"\\\" \" })\n .then(function (data) {\n console.log(\n \"\\n ========== Spotify Search ==========\\n\"\n )\n\n // console.log(data);\n // The song's name\n // A preview link of the song from Spotify\n // The album that the song is from\n //Artist(s)\n // console.log(data.tracks.items[1])\n var song = data.tracks.items[1];\n console.log(\"Song Search: \" + song.album.name);\n console.log(\"Want a quick listen, click here: \" + song.external_urls.spotify)\n console.log(\"The Song is in Album: \" + song.album.name);\n console.log(\"Artist(s): \" + song.artists[0].name + \"\\n\");\n\n // ARTISTS VS ALBUM\n // ALBUM: given to us as an object allows us to call on it normally\n // ARISTS: looks like an object but its really an array with an object\n // nested inside (sneaky bitch.)\n // for the artist name you have to call the array FIRST then the object\n\n })\n .catch(function (err) {\n console.log('Error occurred: '+ err);\n \n\n });\n\n\n}", "function spotifyThis(option1) {\n if (typeof option1 === \"undefined\") {\n option1 = \"The Sign\"\n }\n querySong = option1.split(\" \").join(\"+\");\n\n spotify.search({ type: 'track', query: querySong })\n .then(function(response) {\n tracks = response[\"tracks\"];\n\n tracks.items.forEach(song => {\n\n if (song.type === \"track\" && song.name.toLowerCase() === option1.toLowerCase()) {\n\n console.log();\n // The song's name \n console.log(\"Song: \" + song.name);\n // The album that the song is from\n console.log(\"Album: \" + song.album.name);\n // A preview link of the song from Spotify\n console.log(\"Preview: \" + song.preview_url);\n\n // Artist(s)\n console.log(\"Artist(s)\");\n song.artists.forEach(artist => {\n console.log(\" \" + artist.name);\n })\n }\n\n })\n\n })\n .catch(function(err) {\n console.log(err);\n });\n\n}", "function submitInput() {\n var userInput= $(\"input\").val();\n // console.log(\"userInput:\" + userInput);\n var artistOrAlbum = $(\".album-or-artist\").val();\n // console.log(\"artistOrAlbum:\"+ artistOrAlbum);\n\n\n $.ajax({\n url: baseUrl,\n // method: \"GET\",\n data: {\n query: userInput,\n type: artistOrAlbum\n },\n success: function (data) {\n $(\"#results-container\").html('');\n data=data.albums || data.artists;\n // exact the same objects, but one gives artists, one gives albums;\n nextUrl =data.next && data.next.replace('https://api.spotify.com/v1/search',\n baseUrl);\n console.log(nextUrl);\n console.log(\"DATA\", data);\n\n var resultsFor =\"<h3 id='results-for'>Results for: '<span class='search-term'>\"+ userInput + \"'</span></h3>\";\n var noResults =\"No results for '<span class='search-term'>\"+ userInput + \"'</span>\";\n var html =\"\";\n\n for (var i=0; data.items.length >i; i++) {\n\n //variables to get data\n var linkToPlay = data.items[i].external_urls.spotify;\n if (data.items[i].images.length >0) {\n var linkToImage = data.items[i].images[0].url;\n } else {\n linkToImage = '/default.png';\n }\n var artistsName = data.items[i].name;\n\n html += `<a href='${linkToPlay}' target='blank'><img class='image' src='${linkToImage}'>\n </a><div class='artist-name'><a class='link-to-result' href='${linkToPlay}' target='blank'><p>${artistsName}</p></a>`;\n\n // console.log('url', data.items[i].external_urls.spotify);\n // console.log('artist', data.items[i].images);\n }\n try {\n (data.items[i].name == null);\n }\n catch (e) {\n $(\"#no-results\").append(noResults);\n }\n if (html){\n $(\"#no-results\").html('');\n $(\"#results-container\").append(resultsFor);\n $(\"#results-container\").append(html);\n\n var currentResults = $(\"#results-container\");\n\n console.log(data.total);\n // if(data.total >currentResults.length) {\n // $(\"#results-container\").append(moreButton);\n // }\n\n\n if(data.total >currentResults.length) {\n if (infiniteScroll) {\n console.log(\"scroll=infinite yeah!\");\n //call the function to check if the user scrolled; apart of the cilck handler; in the highest scope;\n //and if the condition is true; call more data;\n checkScrollPostion();\n } else {\n $(\"#results-container\").append(moreButton);\n }\n }\n\n //\n\n }\n }\n });\n\n } //end of submit click//ajax call" ]
[ "0.7821169", "0.7791348", "0.75015295", "0.7329022", "0.71192056", "0.70393944", "0.6978266", "0.69250035", "0.6918478", "0.68931204", "0.68496895", "0.6803995", "0.68021816", "0.6800402", "0.6780966", "0.6753521", "0.6732823", "0.6726986", "0.6705482", "0.6629712", "0.66162956", "0.660415", "0.6597281", "0.6595334", "0.6591379", "0.65719265", "0.65697974", "0.65513426", "0.65512186", "0.6534093", "0.6529956", "0.65217364", "0.6521172", "0.6509727", "0.6497535", "0.6487052", "0.6479616", "0.6477195", "0.64591014", "0.64588577", "0.64379126", "0.64267385", "0.64074755", "0.6406043", "0.64016366", "0.64007616", "0.63998955", "0.63983804", "0.6385132", "0.6382631", "0.63801885", "0.63791966", "0.6354231", "0.6320565", "0.6319482", "0.62954265", "0.6291573", "0.62896055", "0.6287804", "0.62839156", "0.628366", "0.6275308", "0.626976", "0.62672836", "0.62609094", "0.62603956", "0.6256443", "0.62264043", "0.622561", "0.6221034", "0.6220868", "0.6218692", "0.62119454", "0.6208188", "0.62018657", "0.6192912", "0.6192449", "0.6186797", "0.61841595", "0.6174215", "0.6171427", "0.6168626", "0.6168346", "0.6167041", "0.6165039", "0.61643434", "0.61584365", "0.6153187", "0.61501104", "0.6148681", "0.61361563", "0.6126716", "0.61164", "0.6112009", "0.6111309", "0.6111265", "0.61064374", "0.6099801", "0.60974836", "0.6096589" ]
0.6723383
18
Uses the nodespotifyapi package to get information from spotify based on song selected
function getSpotifyInfo() { if (searchTerm === "") { searchTerm = "the sign ace of base"; // default search } spotify.search({ type: "track", query: searchTerm }, function(err, data) { if (err) { logString += "Error occurred: " + err; return console.log(logString); } logString += "\n\n\nYou Searched For: " + searchTerm; logString += "\n******** Results *********\n\n"; logString += "\nSong Name - " + data.tracks.items[0].name; logString += "\nArtist Name - " + data.tracks.items[0].album.artists[0].name; logString += "\nAlbum Name - " + data.tracks.items[0].album.name; if (data.tracks.items[0].preview_url) { logString += "\nPreview URL - " + data.tracks.items[0].preview_url; } else { logString += '\nPreview URL - Unavailable for "' + searchTerm + '"'; } logString += "\n\n******** End *********\n\n\n"; console.log(logString); logResults(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lookupSpecificSong() {\n\n//sets spotify equal to the key info to call the spotify API\nvar spotify = new Spotify(SpotifyKeys.spotify);\n\n//searches the spotify API by track name \nspotify\n .request( 'https://api.spotify.com/v1/tracks/3DYVWvPh3kGwPasp7yjahc' )\n .then(function(response) {\n //Console.logs the response from the Spotify API for Artist, Song title, URL, and Album name\n logOutput(\"Command: spotify-this-song \" + response.name);\n logOutput(\"Artist: \" + response.artists[0].name);\n logOutput(\"Song: \" + response.name);\n logOutput(\"Spotify preview URL: \" + response.preview_url);\n logOutput(\"Album name: \" + response.album.name);\n logOutput(\"------------\");\n })\n .catch(function(err) {\n //console.logs any caught errors\n console.log(err);\n logOutput(err);\n });\n}", "function spotify(song) {\n\n//this song is a default if user did not request the song\nsong = \"The Sign by Ace of Base\"\nif (parameter ==\"\"){\n parameter = song;\n}\n\n//send request to spotify queryURL\nvar spotify = require ('spotify');\n\n//run the request to spotify with specific song the user entered\nspotify.search({ type: 'track', query: parameter }, function(err, data) {\n if ( err ) {\n //console.log('Error occurred: ' + err);\n return;\n }\n\n\n //loop through all the data requested\n //for (var i=0; i<11; i++) {\n\n //console.log(JSON.stringify(data, null, 2));\n //log all necessary information of the song user requested\n ////console.log(\"----------------------------------------------------------------\");\n ////console.log(\"Artist: \" + data.tracks.items[i].artists[0].name);\n ////console.log(\"Song Name: \" + data.tracks.items[i].name);\n ////console.log(\"Spotify Link: \" + data.tracks.items[i].external_urls.spotify);\n ////console.log(\"Album Name: \" + data.tracks.items[i].album.name);\n ////console.log(\"----------------------------------------------------------------\");\n // };\n });\n}", "function spotifyThisSong() {\n // To include the spotify-api\n var Spotify = require('node-spotify-api');\n var spotify = new Spotify(liriKeys.spotify);\n\n // To search for the song name entered by user\n spotify.search({ type: 'track', query: songName, limit: 1 }, function (error, data) {\n if (!error) {\n // For loop to go through all the data items\n for (var i = 0; i < data.tracks.items.length; i++) {\n var songData = data.tracks.items[i];\n // To log all the information required for the assignment\n console.log(\"* Artist: \" + songData.artists[0].name);\n console.log(\"* Song: \" + songData.name);\n console.log(\"* Preview URL: \" + songData.preview_url);\n console.log(\"* Album: \" + songData.album.name);\n console.log(\"-----------------------\");\n }\n }\n else {\n // To log an error message if error occurs\n console.log(\"Error occurred\" + error);\n }\n });\n}", "function spofityPlay() {\n spotify\n .search({ type: 'track', query: \"\\\" \" + input + \"\\\" \" })\n .then(function (data) {\n console.log(\n \"\\n ========== Spotify Search ==========\\n\"\n )\n\n // console.log(data);\n // The song's name\n // A preview link of the song from Spotify\n // The album that the song is from\n //Artist(s)\n // console.log(data.tracks.items[1])\n var song = data.tracks.items[1];\n console.log(\"Song Search: \" + song.album.name);\n console.log(\"Want a quick listen, click here: \" + song.external_urls.spotify)\n console.log(\"The Song is in Album: \" + song.album.name);\n console.log(\"Artist(s): \" + song.artists[0].name + \"\\n\");\n\n // ARTISTS VS ALBUM\n // ALBUM: given to us as an object allows us to call on it normally\n // ARISTS: looks like an object but its really an array with an object\n // nested inside (sneaky bitch.)\n // for the artist name you have to call the array FIRST then the object\n\n })\n .catch(function (err) {\n console.log('Error occurred: '+ err);\n \n\n });\n\n\n}", "function spot() {\n\tvar Spotify = require('node-spotify-api');\n\n\tvar spotify = new Spotify(keys.spotifyKeys);\n\n\tif (process.argv[3] === undefined) {\n\t\tprocess.argv[3] = 'The Sign Ace of Base'\n\t};\n\n\tspotify.search({ type: 'track', query: process.argv[3] }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n\tvar artistName = data.tracks.items[0].artists[0].name;\n\tvar songName = data.tracks.items[0].name;\n\tvar link = data.tracks.items[0].href;\n\tvar album = data.tracks.items[0].album.name;\n\t \n\tconsole.log(\"Artist Name:\", artistName); \n\tconsole.log(\"Song Name:\", songName);\n\tconsole.log(\"Song Link:\", link);\n\tconsole.log(\"Album Name:\", album);\n});\n\n}", "function spotify(song) {\nvar spotify = new Spotify({\n id: \"569b986909fb40db838262de1380d393\",\n secret: \"f5b7b55801464dd3bc672665bd685f57\"\n });\n // console.log(\"TEXT TEXT TEXT TEXT\",text);\n var nodeArgsSong = process.argv;\n var songName = song;\n // if(argumentInput == \"spotify-this-song\"){\n for (var i = 3; i < nodeArgsSong.length; i++){\n if(i > 3 && i < nodeArgsSong.length){\n songName = songName + \"+\" + nodeArgsSong[i];\n } \n else{\n songName += nodeArgsSong[i];\n }\n }\n\n if (songName === \"\") {\n songName = 'ace+of+base+sign';\n };\n\n spotify.search({ type: 'track', query: songName, limit: 1 }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n if (!err) {\n var spotifyData = data.tracks.items;\n // for (var i = 0; i < spotifyData.length; i++){\n \n console.log(spotifyData[0].album.name); \n console.log(spotifyData[0].artists[0].name); \n console.log(spotifyData[0].name); \n console.log(spotifyData[0].external_urls);\n // };\n }\n });\n}", "function songfind() {\n\nvar spotify = new Spotify(\n keys.spotify\n);\n var songTitle = process.argv.slice(2);\nspotify.search({ type: 'track', query: songTitle, limit: 1 }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n // console.log(\"Artist: \" + \"\");\n console.log(\"Song: \" + data.tracks.items[0].name);\n console.log(\"Spotify URL: \" + data.tracks.items[0].preview_url);\n console.log(\"Album Name:\" + data.tracks.items[0].album.name)\n\t\n})}", "function showSpotifySong() {\n\n //variable for search term, test if defined.\n\n\n var searchTrack;\n\n if (secondCommand === undefined) {\n\n searchTrack = \"The Sign\";\n\n } else {\n\n searchTrack = secondCommand;\n\n }\n\n //launch spotify search\n\n spotify.search({ type: 'track', query: searchTrack }, function(err, data) {\n\n if (err) {\n\n console.log('Error occurred: ' + err);\n\n return;\n\n } else {\n\n\n console.log(\"Artist: \" + data.tracks.items[0].artists[0].name);\n\n console.log(\"Song: \" + data.tracks.items[0].name);\n\n console.log(\"Album: \" + data.tracks.items[0].album.name);\n\n\n\n }\n\n });\n\n}", "function retrieveSong(song) {\n // var song = userEntry[3]; // This has to be commented out in order for do-what-it-says to work... hmmmmmmmm probably a simple fix, but stuck.\n console.log(\"trying to retrieve song info...\")\n var songQuery = [];\n //\n for (i = 3; i < userEntry.length; i++) {\n songQuery.push(userEntry[i]);\n }\n \n var song = songQuery.join(\"+\");\n console.log(song);\n\n // search = song\n\n var spotify = new Spotify(myKeys.spotify);\n\n spotify.search({type: 'track', query: song}, function(err, data) {\n if (err) {\n console.log(\"Looks like an error... try a different SONG? || \" + err)\n }\n\n else {\n \n var songInfo = data.tracks.items[0]\n \n // Prints the artist(s), track name, preview url, and album name.\n console.log(\"Artist(s): \" + songInfo.album.artists[0].name); \n console.log(\"Song: \" + songInfo.name)\n console.log(\"Spotify Preview @: \" + songInfo.preview_url)\n console.log(\"Album: \" + songInfo.album.name);\n\t }\n });\n}", "function getSpotify(song='The Sign', artist='Ace of Base') {\n\t// console.log(\"Spotify function ran\");\n\t// console.log(\"spotifyClient: \", spotifyClient);\n\n\tspotifyClient.search({type: 'track', query: song, artist: artist, limit: 1})\n\t\t.then(function(data) {\n\t\t\tvar firstItem=data.tracks.items[0];\n\t\t console.log(\"\\n\\n\" + \"SPOTIFY SONG RESULTS\".black.bgMagenta);\t\t\t\n\t\t\t// console.log (JSON.stringify(firstItem, null, 2));\n\t\t\tconsole.log(`Artist ${firstItem.album.artists[0].name.underline} | Song name ${firstItem.name} | Album name is ${firstItem.album.name}`);\n\t\t\tconsole.log(`Preview url ${firstItem.preview_url}`.white);\n\n\t\t}, function(err) {\n\t\t\tconsole.log('Sorry, I had a problem. ', err);\n\t\t});\n}", "function spotifyAPI(){\n\tvar Spotify = require(\"node-spotify-api\");\n\n\tvar spotify = new Spotify(keys.spotify);\n\n\tif (argument){\n\t\tspotify.search({ \n\t\t\ttype: 'track', \n\t\t\tquery: argument \n\t\t}, function(error, data) {\n \t\t\tif (!error) {\n \t\t\t\tconsole.log(\"----------------\");\n \t\t\t\tconsole.log(\"Artist Name: \" + data.tracks.artists.name); \n \t\t\t\tconsole.log(\"Song Name: \" + data.tracks.name);\n \t\t\t\tconsole.log(\"Album Name: \" + data.tracks.album.name);\n \t\t\t\tconsole.log(\"Song Preview Link :\" + data.body.tracks.external_urls);\n \t\t}\n \t});\t\n\t}\n else {\n \tspotify.search({ \n\t\t\ttype: 'track', \n\t\t\tquery: 'The Sign' \n\t\t}, function(error, data) {\n \t\t\tif (!error) {\n \t\t\t\tconsole.log(\"----------------\");\n \t\t\t\tconsole.log(\"Artist Name: \" + data.tracks.artists.name); \n \t\t\t\tconsole.log(\"Song Name: \" + data.tracks.name);\n \t\t\t\tconsole.log(\"Album Name: \" + data.tracks.album.name);\n \t\t\t\tconsole.log(\"Song Preview Link :\" + data.body.tracks.external_urls);\n \t\t}\n \t});\t\t\n }\t\n}", "function spotifyIt(song) {\n // set up new spotify object for node-spotify-api\n var spotify = new Spotify({\n id: keys.spotify.id,\n secret: keys.spotify.secret\n });\n\n // search spotify using the api\n spotify.search({ type: 'track', query: song }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n } else if (data.tracks.items[0] != undefined) {\n // console loge out the results from the first item in the array\n console.log(`Artist: ${data.tracks.items[0].artists[0].name}`);\n console.log(`Title: ${data.tracks.items[0].name}`);\n console.log(`Album: ${data.tracks.items[0].album.name}`);\n console.log(`Preview: ${data.tracks.items[0].preview_url}`);\n } else {\n console.log(`Track: '${song}' not found`)\n\n }\n });\n}", "function spotifySong(){\n var songTitle =\"\"; \n if (userInput[3] === undefined){\n songTitle = \"The Sign Ace of Base\"\n } else {\n songTitle = userInput[3];\n }; \n spotify.search({type:'track', query:songTitle, limit:1},\nfunction (err,data){\n \n if(err){\n console.log(\"Oops. Something unexpected happened\" + err);\n return false;\n }\n console.log(\"\\n====== Spotify: '\" + songTitle + \"' ==========\");\n console.log(\"Artist(s): \"+ data.tracks.items[0].album.artists[0].name);\n console.log(\"Song: \"+data.tracks.items[0].name);\n console.log(\"Preview URL: \"+data.tracks.items[0].preview_url);\n console.log(\"Album: \"+data.tracks.items[0].album.name);\n console.log(\"\\n\" );\n })\n }", "function spotifySearch() {\n\n console.log(\"initializing funciton\");\n var spotify = new Spotify(keys.spotify);\n\n if(!value) {\n value = \"The Sign by Ace of Base\";\n }\n\n \n\n spotify.search({ type: 'track', query: value }, function(error, data, response) {\n if (error) {\n\n console.log('Error occurred: ' + error);\n return;\n }\n var songInfo = data.tracks.items[0];\n var songData =\n \"\\r\\n Artist: \" + songInfo.artists[0].name +\n \"\\r\\n Song Title: \" + songInfo.name +\n \"\\r\\n Song Preview: \" + songInfo.preview_url ;\n\n console.log(songData);\n }); \n \n }", "function mySpotify() {\n console.log(\"Here's The Song Info!\")\n\n\n var searchTrack = '';\n\n var spotify = new Spotify({\n id: 'c4f36b57f5e74a6b858c77acfaf184e5',\n secret: '81b5017ea23848bd85953b8ab0f8e612'\n })\n // if the secondCommand input is not recognized, will automatically search \"The Sign\"\n console.log(spotify);\n if (secondCommand === undefined) {\n searchTrack = \"The Sign\";\n } else {\n searchTrack = secondCommand;\n }\n // searches spotify for requested song\n spotify.search({ type: 'track', query: searchTrack }, function(err, data) {\n if (err) {\n return console.log(\"Error Occurred: \" + err);\n } else {\n\n \t// Dot chain within the object to retrive the desired information\n // console.log(data.tracks.items[0].url);\n console.log(\"Artist: \" + data.tracks.items[0].artists[0].name);\n console.log(\"Song: \" + data.tracks.items[0].name);\n console.log(\"Preview: \" + data.tracks.items[0].preview_url);\n console.log(\"Album: \" + data.tracks.items[0].album.name);\n }\n });\n\n //end of mySpotify\t\n}", "function spotify(){\n spotify = new Spotify({\n id: spotifyKeys.id,\n secret: spotifyKeys.secret,\n });\n //console.log(spotSearch);\n if(spotSearch !== \"\"){\n spotify.search({\n type:'track',\n query: spotSearch,\n }, function(err, data){\n if (!err){\n var trackInfo = data.tracks.items[0];\n //console.log(data);\n //console.log(spotSearch);\n console.log('Title: ' + trackInfo.name + '\\nAlbum: ' + trackInfo.album.name + '\\nArtists: ');\n for (i = 0; i < trackInfo.album.artists.length; i++){\n console.log(trackInfo.artists[i].name)\n }\n console.log('Preview Link: ' + trackInfo.href)\n }\n })\n }\n else {\n spotify.search({type:'track', query:'The Sign Ace of Base'}, function(err, data){\n if (!err){\n var trackInfo = data.tracks.item[0];\n cconsole.log(\"Title: \" + trackInfo.name + '\\nAlbum: ' + trackInfo.album.name + '\\nArtists: ');\n for (i = 0; i < trackInfo.album.artists.length; i++){\n console.log(trackInfo.artists[i].name)\n }\n console.log('Preview Link: ' + trackInfo.href)\n }\n })\n }\n // spotify.search({type:'artist', query: spotSearch}, function(err, data){\n // if (err){\n // return console.log('Error occured: ' + err);\n // }\n // console.log(data);\n}", "function spot(b) {\n console.log(\"*******SPOTIFY*********\");\n\n var spotify = new Spotify({\n id: spotID,\n secret: spotSecret\n });\n\n var song = \"\";\n if (b == \"\") {\n // default song\n if (term.length == 3)\n song = \"All The Small Things\";\n else {\n // get console song input\n for (var i = 2; i < term.length; i++) {\n if (i > 2 && i < term.length)\n song = song + \"+\" + term[i];\n }\n }\n } else\n song = b;\n // api call\n spotify.search({ type: 'track', query: song }).then(function(response) {\n //array containing show info\n var showme = [];\n //console.log(response);\n var find = response.tracks.items[0];\n //console.log(find);\n //artist\n showme.push(find.album.artists[0].name);\n //name of song\n showme.push(find.name);\n //preview link \n showme.push(find.external_urls.spotify);\n //album name\n showme.push(find.album.name);\n\n //display information\n console.log(\"Artist: \" + showme[0]);\n console.log(\"Song Name: \" + showme[1]);\n console.log(\"Link: \" + showme[2]);\n console.log(\"Album Name: \" + showme[3]);\n console.log(\"******END SPOTIFY******\");\n }).catch(function(err) {\n console.log(err);\n });\n\n} //end spot", "function spotify(song) {\n var spotify = new Spotify(keys.spotify);\n spotify.search({ type: 'track', query: song }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n console.log(\"Artist: \" + data.tracks.items[0].artists[0].name);\n console.log(\"Song name: \" + data.tracks.items[0].name);\n console.log(\"Preview link: \" + data.tracks.items[0].external_urls.spotify);\n console.log(\"Album: \" + data.tracks.items[0].album.name);\n });\n}", "function getSongInfo(songTitle) {\n\n //sets spotify equal to the key info to call the spotify API\n var spotify = new Spotify(SpotifyKeys.spotify);\n\n spotify\n .search({ type: 'track', query: songTitle})\n .then(function(response) {\n\n //Default search on the spotify API returns 20 objects\n //Going to attempt to find documentation regarding limit on npm later to render this solution unneeded\n var artistsArray = response.tracks.items[0].album.artists;\n \n //Array to hold artists names, for songs that return multiple artists\n var artistNames = [];\n \n //Goes down the length of the array and pushes the artists names for each song\n for (var i = 0; i < artistsArray.length; i++) {\n artistNames.push(artistsArray[i].name);\n }\n\n //Converts the array into a string\n var artists = artistNames.join(\", \");\n \n //Console.logs the response from the Spotify API for Artist, Song title, URL, and Album name\n logOutput(\"Command: spotify-this-song \" + response.tracks.items[0].name);\n logOutput(\"Artist: \" + artists);\n logOutput(\"Song: \" + response.tracks.items[0].name);\n logOutput(\"Spotify preview URL: \" + response.tracks.items[0].preview_url);\n logOutput(\"Album name: \" + response.tracks.items[0].album.name);\n logOutput(\"------------\");\n })\n .catch(function(err) {\n //console.logs any caught errors\n console.log(err);\n logOutput(err);\n });\n\n}", "function spotifySong(song) {\n\n var spotify = new Spotify(keys.spotify);\n\n spotify.search({\n type: 'track',\n query: song,\n limit: 20\n }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n var songObject = data.tracks.items[0];\n\n console.log(\"\");\n console.log(\"Artist(s): \" + songObject.artists[0].name);\n console.log(\"\");\n console.log(\"Song Name: \" + songObject.name);\n console.log(\"\");\n console.log(\"Preview Link: \" + songObject.preview_url);\n console.log(\"\");\n console.log(\"Album: \" + songObject.album.name);\n console.log(\"\");\n });\n\n}", "function spotifyThisSong(){\n\n var spotify = new spotify({\n \tid: keys.spotify.id,\n \tsecret: keys.spotify.secret\n });\n\n\tvar searchSong;\n\tif(userInput2 === undefined){\n\t\tsearchSong = \"What's My Age Again?\";\n\t}else{\n\t\tsearchSong = userInput2;\n\t}\n\n\tspotify.search({type:'track', query:searchSong}, function(err,data){\n\t if(err){\n\t console.log('Error: ' + err);\n\t return;\n\t }else{\n\t \n\t \t\tconsole.log(\"Artist: \" + data.tracks.items[0].artists[0].name);\n\t console.log(\"Song: \" + data.tracks.items[0].name);\n\t console.log(\"Album: \" + data.tracks.items[0].album.name);\n\t console.log(\"Preview: \" + data.tracks.items[0].preview_url);\n\t }\n\t});\n}", "function getSpotify(){\t\n\t\n\tvar params = {\n\t\ttype: 'track',\n\t\tquery: userInput,\n\t\tlimit: 1\n\t}\n\n// If no song is provided then your program will default to \"The Sign\" by Ace of Base\n\tif (userInput === undefined){\n\t\tparams.query = \"Ace of Base The Sign\";\n\t}\n\n\tspotify.search(params, function(error, data) {\n\t\tif (error) {\n\t \t\treturn console.log('Error occurred: ' + err);\n\t\t}\n\t \tvar track = data.tracks.items[0]\n\t\tconsole.log(\"Artist name(s): \" + track.artists[0].name); \n\t\tconsole.log(\"Song name: \" + track.name); \n\t\tconsole.log(\"Preview link: \" + track.preview_url); \n\t\tconsole.log(\"Album name: \" + track.album.name); \n\t});\n}", "function spotify(){\n\n\tvar spotify = require('spotify');\n\n\tvar nodeArgs = process.argv;\n\n\tvar songName = \"\";\n\n\tfor (var i=3; i<nodeArgs.length; i++){\n\n\tif (i>3 && i < nodeArgs.length){\n\n\t\tsongName = songName + \" \" + nodeArgs[i];\n\t}\n\n\telse{\n\n\t\tsongName = songName + nodeArgs[i];\n\t}\n\t\n}\n\n\tspotify.search({ type: 'track', query: songName }, function(err, data) {\n \t\n \tif ( err ) {\n console.log('Error occurred: ' + err);\n return;\n \t}else {\n \t\t//console.log(JSON.stringify(data, null, 2));\n \t\tconsole.log( \"Artist: \")\n \t\tconsole.log( data.tracks.items[0].artists[0].name);\n \t\tconsole.log( \"URL: \")\n \t\tconsole.log( data.tracks.items[0].artists[0].uri);\n \t}\n\t});\n}", "function doSpotify(song) {\n\n\tif(song === \"\") {\n\n\t\tsong = \"the sign\";\t\n\n\t}\n\n\n\n\t// console.log(\"song title: \"+song)\n\n\n\n\tvar spotify = new Spotify(keys.spotify);\t\n\n\tspotify.search({ type: 'track', query: song }, function(err, data) {\n\n\t \tif (err) {\n\n\t \treturn console.log('Error occurred: ' + err);\n\n\t \t}\n\n\t \tconsole.log(\"title: \" + data.tracks.items[0].name);\n\n\t \tconsole.log(\"artist: \" + data.tracks.items[0].artists[0].name);\n\n\t \tconsole.log(\"album: \" + data.tracks.items[0].album.name);\n\n\t \tif(data.tracks.items[0].preview_url != null) {\n\n\t \t\tconsole.log(\"previewLink: \" + data.tracks.items[0].preview_url);\n\n\t \t} else{\n\n\t \t\tconsole.log(\"no url\");\n\n\t \t}\n\n\t});\n\n}", "function getSongs() {\n\n var spotify = new Spotify(keys.spotify);\n\n var songName = process.argv[3];\n\n spotify.search({ type: 'track', query: songName, limit: 1 }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n console.log(data.tracks.items[0].artists[0].name);\n console.log(data.tracks.items[0].album.name);\n console.log(data.tracks.items[0].name);\n console.log(data.tracks.items[0].external_urls.spotify);\n });\n\n\n}", "function getSpotify(b){\n\n // Test to see if Spotify works\n // console.log(\"Spotify works!\");\n\n // Paste the sample code from npm\n spotify.search({ type: 'track', query: b }, function(err, data) {\n\n if ( err ) {\n \n console.log('Error occurred: ' + err);\n \n return;\n \n }\n\n // console.log(\"The raw data: \" + JSON.stringify(data, null, 3));\n \n for(var i = 0; i < data.tracks.items.length; i++) {\n\n // Do something with 'data' \n console.log(\"=================================================================\");\n\n console.log(\"Potential Song Origin ~ \" + i);\n \n for(var j = 0; j < data.tracks.items[i].artists.length; j++) {\n\n console.log(\"Artist involved: \" + data.tracks.items[i].artists[j].name);\n \n }\n\n console.log(\"Album Name: \" + data.tracks.items[i].album.name);\n\n console.log(\"Song Name: \" + value);\n\n console.log(\"=================================================================\");\n\n console.log(\"\");\n\n console.log(\"\");\n\n }\n\n checkConfirm();\n \n });\n\n}", "function callSpotify() {\n var spotify = new Spotify(keys.spotify);\n spotify.search({ type: 'track', query: searchParams }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n console.log(` -============= Song Results =========================-\n Artist(s): ${data.tracks.items[0].artists[0].name}\n Song Name: ${data.tracks.items[0].name}\n Spotify Preview Link: ${data.tracks.items[0].artists[0].external_urls.spotify}\n Album: ${data.tracks.items[0].album.name}\n -=====================================================-`);\n });\n}", "function spotifysong(song) {\n\n spotify.search({ type: 'track', query: song, limit: 20 }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + error);\n }\n for (var i = 0; i < data.tracks.items.length; i++) {\n console.log(i);\n console.log(\"artist(s) : \" + data.tracks.items[i].album.artists[0].name);\n console.log(\"song name : \" + data.tracks.items[i].name);\n console.log(\"preview song : \" + data.tracks.items[i].preview_url)\n console.log(\"album : \" + data.tracks.items[i].album.name)\n console.log(\"----------------------------------------------\")\n }\n // console.log(data.tracks.items)\n\n });\n\n}", "function spotify(){\n //Spotifiy API keys\n var spot = keys.spotifyKeys;\n //Argument for song query\n var song = process.argv[3];\n //Spotify Node Construct\n var spotify = require('spotify');\n\n //Spotify search NPM\n spotify.search({type:'track', query: song}, function(err, data){\n if(!error){\n var artist = data.tracks.items[0].artists[0].name;\n var title = data.tracks.items[0].name;\n var album = data.tracks.items[0].album.name;\n console.log(' ');\n console.log('================ Spotify This ================');\n console.log(\"Artist: \" + artist);\n console.log(\"Song: \" + title);\n console.log(\"Album: \" + album);\n console.log('===========================================');\n console.log(' ');\n }else{console.log(\"Spotify Error or No Track Found\")}\n })\n}", "function spotifySong(){\n if(!title){\n title = \"The Sign\"\n }\n spotify.search({type: 'track', query: title, limit: 10}, function(err, data){\n if(err){\n return console.log(err);\n }\n for(var i = 0; i < data.tracks.items.length; i++){\n console.log(\"Artist(s): \" + data.tracks.items[i].album.artists[0].name);\n console.log(\"The song name: \" + data.tracks.items[i].name);\n console.log(\"The preview link from Spotify: \" + data.tracks.items[i].album.external_urls.spotify);\n console.log(\"The album that the song is from: \" + data.tracks.items[i].album.name);\n console.log(\"-----------------------------------------\\n\")\n }\n });\n}", "function lookupSpecificSong() {\n\n // Calls Spotify API to retrieve a specific track, The Sign, Ace of Base\n spotify.lookup({type: 'track', id }, function(err, data) {\n if (err) {\n logOutput.error(err);\n return\n }\n\n // Prints the artist, track name, preview url and album name\n logOutput(\"Artist: \" + data.artists[0].name);\n logOutput(\"Song: \" + data.name);\n logOutput(\"Spotify Preview URL: \" + data.preview_url);\n logOutput(\"Album Name: \" + data.album.name);\n });\n}", "function songIt(song) {\n //sets up the key\n var spotify = new Spotify(keys.spotify);\n //if there is are other arguments in the terminal line, it searches for that given string\n if (song != \"\") {\n spotify.search({ type: 'track', query: song }, function (error, data) {\n if (!error) {\n console.log(divider);\n //prints artist, song name, preview url, and album name\n for (var i = 0; i < data.tracks.items.length; i++) {\n var songData = data.tracks.items[i];\n console.log(\"Artist: \" + songData.artists[0].name + \"\\nSong: \" + songData.name + \"\\nURL: \" + songData.preview_url + \"\\nAlbum: \" + songData.album.name);\n console.log(divider);\n }\n }\n else {\n console.log(\"You have issues.\");\n }\n });\n }\n //default to given song\n else {\n var special = { type: 'track', id: '3DYVWvPh3kGwPasp7yjahc' };\n spotify.lookup(special, function (error, data) {\n if (!error) {\n console.log(divider);\n for (var i = 0; i < data.tracks.items.length; i++) {\n var songData = data.tracks.items[i];\n console.log(\"Artist: \" + songData.artists[0].name + \"\\nSong: \" + songData.name + \"\\nURL: \" + songData.preview_url + \"\\nAlbum: \" + songData.album.name);\n console.log(divider);\n }\n }\n else {\n console.log(\"You have issues.\");\n }\n });\n }\n}", "function spotifyThis (song) {\n //variable for spotify key\n var spotify = new Spotify(keys.spotify);\n \n // default variable if no user input\nif (song == \"\") {\n song = \"The Sign by Ace of Base\";\n }\n// searching spotify\n spotify.search({ type: 'track', query: song }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n \n console.log(\"The artist for \" + song + \" is \" + data.tracks.items[0].artists[0].name + \". \"); \n console.log(\"Here is a preview: \" + data.tracks.items[0].preview_url)\n console.log(\"The name of the album that \" + song + \" is from: \" + data.tracks.items[0].album.name + \". \");\n });\n\n }", "function searchSpotify(song){\n spotify.search({ type: 'track', query: song }, function(err, data) {\n if ( err ) {\n console.log('Error occurred: ' + err);\n return;\n }\n console.log(\"_______________________________________________________\");\n var artist = data.tracks.items[0].album.artists[0].name;\n console.log(\"Artist: \" + artist);\n var songName = data.tracks.items[0].name;\n console.log(\"Song Name: \" + songName);\n var songLink = data.tracks.items[0].external_urls.spotify;\n console.log(\"Link: \" + songLink);\n var album = data.tracks.items[0].album.name;\n console.log(\"Album: \" + album);\n console.log(\"_______________________________________________________\");\n});\n}", "function spotSearch(song){\n\n if(!song){\n var daSong = \"The Sign\";\n } else{\n daSong = song\n }\n spotify.search({type: 'track', query: daSong, limit: \"1\"}, function(err, data){\n \n if(err){\n console.log(err);\n }\n \n let artist = data.tracks.items[0].album.artists[0].name;\n let songName = data.tracks.items[0].name;\n let album = data.tracks.items[0].album.name;\n let release = data.tracks.items[0].album.release_date;\n\n \n console.log(\"Artist: \" + artist);\n console.log(\"Album: \" + album);\n console.log(\"Release date: \" + release);\n console.log(\"Song name: \" + songName);\n\n\n });\n}", "function spotifyThisSong(){\n var spotify = new Spotify({\n id: keyz.spotifyKeys.clientId,\n secret: keyz.spotifyKeys.clientSecret\n });\nvar userinput = process.argv.slice(3);\n//console.log(userinput);\n if(userinput.length === 0){\n var userQuery = \"ace of base\";\n }else{\n var userQuery = userinput.join(\" \");\n }\n//console.log(userinput);\n//console.log(userQuery);\n\n spotify.search({ type: 'track', query: userQuery}, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n } \n console.log(\"artist: \" + data.tracks.items[0].artists[0].name);\n console.log(\"song's name: \" + data.tracks.items[0].name); \n console.log(\"preview link: \" + data.tracks.items[0].external_urls.spotify);\n console.log(\"album name: \" + data.tracks.items[0].album.name); \n \n });\n \n }", "function spotifyThisSong(){\n console.log(\"Getting the information you requested\");\n if (!userQuery) {\n userQuery = \"the sign ace of base\"\n };\n spotify.search({ type: 'track', query: userQuery, limit: 1 }, function (error, data) {\n if (error) {\n return console.log(\"Error occurred \");\n }\n let spotifyArr = data.tracks.items;\n// console.log(spotifyArr);\n for (var i=0; i < spotifyArr.length; i++){\n\n // display artist\n console.log(\"Artist: \"+JSON.stringify(spotifyArr[i].artists[0].name));\n // display song name\n console.log(\"Song name: \" +spotifyArr[i].name);\n // display a preview link of the song from Spotify\n console.log(\"Song preview: \"+spotifyArr[i].preview_url);\n // display the album that the song is from\n console.log(\"Album name: \"+spotifyArr[i].album.name);\n };\n});\n\n}", "function getTheSongInfo (spot, thisSong)\n{\n spot.search({ type: 'track', query: thisSong }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n if (data.tracks.items.length === 0) {\n console.log(\"I'm sorry. We could not find [\" + thisSong + \"]. Let's try THE SIGN\");\n getTheSongInfo(spot, \"The Sign\");\n }\n\n var l = data.tracks.items.length;\n // console.log(\"The number of results ar: \" + l);\n for (var i = 0; i<l; i++){\n console.log(\"The Artist is \" + data.tracks.items[i].album.artists[0].name);\n console.log(\"The Album is \" + data.tracks.items[i].album.name);\n console.log(\"The Song's name is: \" + thisSong);\n console.log(\"The Song's Spotify link is: \" + data.tracks.items[i].href);\n console.log(\"\\n\");\n }\n\n // console.log(JSON.stringify(data, null, 2));\n });\n}", "function spotifyThis(option1) {\n if (typeof option1 === \"undefined\") {\n option1 = \"The Sign\"\n }\n querySong = option1.split(\" \").join(\"+\");\n\n spotify.search({ type: 'track', query: querySong })\n .then(function(response) {\n tracks = response[\"tracks\"];\n\n tracks.items.forEach(song => {\n\n if (song.type === \"track\" && song.name.toLowerCase() === option1.toLowerCase()) {\n\n console.log();\n // The song's name \n console.log(\"Song: \" + song.name);\n // The album that the song is from\n console.log(\"Album: \" + song.album.name);\n // A preview link of the song from Spotify\n console.log(\"Preview: \" + song.preview_url);\n\n // Artist(s)\n console.log(\"Artist(s)\");\n song.artists.forEach(artist => {\n console.log(\" \" + artist.name);\n })\n }\n\n })\n\n })\n .catch(function(err) {\n console.log(err);\n });\n\n}", "function getSong() {\n //import the spotify package\n var Spotify = require('node-spotify-api');\n var spotify = new Spotify(keys.spotify);\n // set up call to Spotify\n if (process.argv[3]=== undefined) {\n spotify.search({ type: 'track', query: 'Ace of Base' }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n // output the Artist(s), song name, preview link, and album.\n console.log(\"Artist: \"+ data.tracks.items[0].artists[0].name);\n console.log(\"Song Name: \" + data.tracks.items[0].name);\n console.log(\"Preview: \"+ data.tracks.items[0].preview_url);\n console.log(\"Album: \"+ data.tracks.items[0].album.name);\n });\n } else {\n // Store all of the arguments in an array\n var nodeSongArgs = process.argv;\n // Create an empty variable for holding the song name\n var songName = \"\";\n // Loop through all the words in the node argument\n for (var i = 3; i < nodeSongArgs.length; i++) {\n if (i > 3 && i < nodeSongArgs.length) {\n songName = songName + \"+\" + nodeSongArgs[i];\n }\n else {\n songName += nodeSongArgs[i];\n }\n }\n spotify.search({ type: 'track', query: songName }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n // output the Artist(s), song name, preview link, and album.\n console.log(\"Artist: \"+ data.tracks.items[0].artists[0].name);\n console.log(\"Song Name: \" + data.tracks.items[0].name);\n console.log(\"Preview: \"+ data.tracks.items[0].preview_url);\n console.log(\"Album: \"+ data.tracks.items[0].album.name);\n });\n }\n}", "function spotifySearch(){\n spotify.search({ type: 'track', query: songToSearch}, function(error, data){\n if(!error){\n for(var i = 0; i < data.tracks.items.length; i++){\n var song = data.tracks.items[i];\n console.log(\"Artist: \" + song.artists[0].name);\n console.log(\"Song: \" + song.name);\n console.log(\"Preview: \" + song.preview_url);\n console.log(\"Album: \" + song.album.name);\n console.log(\"-----------------------\");\n }\n } else{\n console.log('Error occurred.');\n }\n });\n }", "function getSongInfo() {\n // if no song is provided, default to \"The Sign\" by Ace of Base (assignment instructions)\n if (userQuery === undefined) {\n userQuery = \"The Sign\";\n /* \"The Sign\" by Ace of Base currently displays as the 11th result in the list\n if I allow for > 10 results to display.\n */\n }\n // requests data for the userQuery song name\n spotify.search({ type: 'track', query: `${userQuery}`, limit: 15}, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n displaySongInfo(data)\n });\n}", "function getSongInfo() {\n\n\t//var spotify = new Spotify(keys.spotify);\n\tvar spotify = new Spotify({\n \t\tid: process.env.SPOTIFY_ID,\n \t\tsecret: process.env.SPOTIFY_SECRET\n\t});\n\n\t//Use the Spotify package to search for a song/track. Set search results limit to 10.\n\tspotify.search({ type: 'track', query: songName, limit: 10 }, function(err, data) {\n \n \t\t//If there is an error, log it.\n \t\tif (err) {\n \t\treturn console.log('Error occurred: ' + err);\n \t\t}\n \n \t// If there is no error... then print out the song data.\n \t// Use JSON.stringify to print the data in string format.\n \t// Use the JSON.stringify argument of \"2\" to make the format pretty.\n \t// See link here: http://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript\n\t//console.log(JSON.stringify(data, null, 2)); \n\n\t//Loop through the JSON data to display the top songs.\n\tfor (var i = 0; i < data.tracks.items.length; i ++) {\n\tconsole.log(\"========================================================================================================================================\");\n\t//Display song number for each song. For example, the first song returned will be Song #1, the second returned will be Song #2, etc.\n\tconsole.log(\"Song #\" + (i+1));\n\t//Output the artist\n\tconsole.log(\"Artist: \" + data.tracks.items[i].artists[0].name);\n\t//Output the song's name.\n\tconsole.log(\"Song title: \" + data.tracks.items[i].name)\n\t//Output a preview link of the song from Spotify.\n\tconsole.log(\"Preview song: \" + data.tracks.items[i].preview_url);\n\t//Output the album that the song is from.\n\tconsole.log(\"Album: \" + data.tracks.items[i].album.name);\n\tconsole.log(\"========================================================================================================================================\");\n\t}\n\t});\n}", "function getSong(userInput) {\r\n if (userInput) {\r\n var song = userInput\r\n } else {\r\n var song = \"The Sign\"\r\n }\r\n spotify.search({ type: 'track', query: song, limit: 10 }, function (error, data) {\r\n if (error) {\r\n return console.log(error);\r\n }\r\n\r\n else {\r\n for (var i = 0; i < data.tracks.items.length; i++) {\r\n var trackInfo = data.tracks.items[i];\r\n //Create variable for song preview link.\r\n var previewSong = trackInfo.preview_url;\r\n //If the song preview is not available, display the song preview is not available.\r\n if (previewSong === null) {\r\n previewSong = \"Song preview is not available for this song.\";\r\n }\r\n //song results.\r\n var songResults =\r\n \"________________________________________________\" + \"\\r\\n\" +\r\n //Output the artist\r\n \"Artist: \" + trackInfo.artists[0].name + \"\\r\\n\" +\r\n //Output the song's name.\r\n \"Song title: \" + trackInfo.name + \"\\r\\n\" +\r\n //Output a preview link of the song from Spotify.\r\n \"Preview song: \" + previewSong + \"\\r\\n\" +\r\n //Output the album that the song is from.\r\n \"Album: \" + trackInfo.album.name + \"\\r\\n\" +\r\n \"________________________________________________\";\r\n //Display song info in the terminal.\r\n console.log(songResults);\r\n\r\n logData(songResults);\r\n }\r\n\r\n }\r\n\r\n });\r\n}", "function spotifySearch() {\n spotify.search({ type: 'track', query: searchName }, function(err, data) {\n\tif ( err ) {\n console.log('Error occurred: ' + err);\n return;\n\t} else {\n\t console.log(JSON.stringify(data.tracks.items[0].artists, null, 2));\n\t //artists\n\t console.log(\"Artitst(s): \" + data.tracks.items[0].artists[0].name);\n\t // song name\n\t console.log(\"Song Name: \" + data.tracks.items[0].name);\n\t // spotify link\n\t console.log(\"Spotify Link: \" + data.tracks.items[0].href);\n\t // album\n\t console.log(\"Album: \" + data.tracks.items[0].album.name);\n\t}\n });\n} // close spotify function", "function getSongInfo() {\n let songName = \"\";\n if (!name) {\n songName = \"the sign\";\n }\n else {\n songName = name;\n }\n spotify.search({\n type: \"track\",\n query: songName,\n limit: 5\n }, function (error, data) {\n for (let i = 0; i < data.tracks.items.length; i++) {\n songInfo = [\"Song Title: \" + data.tracks.items[i].name,\n \"Album Title: \" + data.tracks.items[i].album.name,\n \"Artist(s) Name: \" + data.tracks.items[i].artists[0].name,\n \"Preview URL: \" + data.tracks.items[i].preview_url];\n console.log(\"\\nSong Title: \" + data.tracks.items[i].name,\n \"\\nAlbum Title: \" + data.tracks.items[i].album.name,\n \"\\nArtist(s) Name: \" + data.tracks.items[i].artists[0].name,\n \"\\nPreview URL: \" + data.tracks.items[i].preview_url);\n }\n });\n}", "function song() {\n\n var spotify = new Spotify(keys.spotify);\n var args = process.argv;\n var songName = \"\";\n\n for (i = 3; i < args.length; i++) {\n if (i > 3 && i < args.length) {\n songName = songName + \" \" + args[i];\n } else {\n songName = args[i];\n }\n };\n //console.log(songName);\n if (args.length < 4) {\n songName = \"the sign ace of base\"\n process.argv[3] = songName;\n }\n //console.log(songName);\n spotify.search({\n type: \"track\",\n query: songName,\n limit: 1\n }, function (err, data) {\n if (err) {\n console.log(\"ya' messed up: \" + err);\n return;\n }\n console.log(\"-------------------------------------------------------------------------------------------\");\n console.log(\"Artist: \" + data.tracks.items[0].album.artists[0].name);\n console.log(\"Song: \" + data.tracks.items[0].name);\n console.log(\"Preview link: \" + data.tracks.items[0].external_urls.spotify);\n console.log(\"Album: \" + data.tracks.items[0].album.name);\n console.log(\"-------------------------------------------------------------------------------------------\");\n });\n}", "function song() {\n spotify.search({\n type: 'track',\n query: search\n }, function (err, data) {\n if (err) {\n return console.log('ERROR! Search could not find results for: ' + err);\n } else {\n var results = data.tracks.items\n for (i = 0; i < results.length; i++) {\n console.log(\"================================================\");\n console.log(\"Artist: \" + results[i].artists[0].name);\n console.log(\"Song Name: \" + results[i].name);\n console.log(\"Follow this Spotify Link: \" + results[i].external_urls.spotify);\n console.log(\"Album Name: \" + results[i].album.name);\n };\n };\n });\n}", "function spotifySong(data) {\n\tvar Spotify=require('node-spotify-api');\n\n\tvar spotify = new Spotify({\n \t\tid: \"c8f9c16590344e52958c43c6c66267e4\",\n \t\tsecret: \"01323ed470fe4a0eb339120d5591dd38\"\n\t});\n\n\t// if (y === null) {\n // y = \"The Sign Ace of Base\";\n // console.log(y);\n // };\n\n\tspotify.search({type:'track',query:data},function(err,data){\n\t\tif(err) {\n\t\t\tconsole.log('Error occurred: ' + err);\n \treturn;\n\t\t// } else {\n\t\t// \ty == \"I+saw+the+sign\"\n\t\t// };\n \t\t // console.log(JSON.stringify(data, null, 2));\n\t\t}\n // Do something with 'data'\n \t\tfor (var i=0; i < data.tracks.items.length || i<19; i++) {\n\t\t\tconsole.log(\"Artist: \"+data.tracks.items[i].artists[0].name);\n\t\t\tconsole.log(\"Song Name: \"+data.tracks.items[i].name);\n\t\t\tconsole.log(\"Album: \"+data.tracks.items[i].album.name);\n\t\t\tconsole.log(\"Preview Link: \"+data.tracks.items[i].preview_url);\n\t\t\tconsole.log(\"\");\n\t\t\tconsole.log(\"-------------------------\");\n\t\t\tconsole.log(\"\");}\n\t\t});\n}", "function spotifyNow(){\n console.log(\"Now time for some music!\");\n\n var searchMusic;\n if(search === undefined){\n console.log(\"Please try again\"); //Cannot find user input\n }\n else{\n searchMusic = search; //Finds user input\n }\n\n spotify.search({type: \"track\", query: searchMusic}, function(err , data){\n if(err){\n console.log(\"Error occurred: \" + err);\n return;\n } else if (data.error) {\n console.log(\"Error occurred: \" + data);\n return;\n }\n\n else{\n console.dir(data);\n // console.log(\"Artist: \" + data.tracks.items[0].artists[0].name);\n // console.log(\"Song: \" + data.tracks.items[0].name);\n // console.log(\"Album: \" + data.tracks.items[0].album.name);\n // console.log(\"Preview here: \" + data.tracks.items[0].preview_url);\n }\n\n })\n\n}", "function spotifyThisSong(songName) {\n\n // Default set as \"The Sign\" by Ace of Base if user doesn't specify a song.\n if (songName == \"\") {\n songName = \"The Sign\";\n };\n // URL for this one is defined inside \"node-spotify-api\". Therefore it only needs arguments as shown below.\n spotify.search({ type: 'track', query: songName, limit: 10 })\n .then(function (response) {\n\n var spotifyResponse = response.tracks\n\n if (songName == \"The Sign\") {\n return (console.log(\"-----------------------------\" + \"\\n\",\n \"Song Title: \" + spotifyResponse.items[8].name + \"\\n\",\n \"Album: \" + spotifyResponse.items[8].album.name + \"\\n\",\n \"Artist/s: \" + spotifyResponse.items[8].artists[0].name + \"\\n\",\n \"Preview URL: \" + spotifyResponse.items[8].external_urls.spotify + \"\\n\",\n \"-----------------------------\"));\n\n }\n for (var i = 0; i < spotifyResponse.items.length; i++) {\n console.log(\"-----------------------------\");\n console.log(\"Song Title: \" + spotifyResponse.items[i].name);\n console.log(\"Album: \" + spotifyResponse.items[i].album.name);\n console.log(\"Artist/s: \" + spotifyResponse.items[i].artists[0].name);\n console.log(\"Preview URL: \" + spotifyResponse.items[i].external_urls.spotify);\n console.log(\"-----------------------------\");\n }\n })\n .catch(function (err) {\n console.log(err);\n });\n}", "function spotifySong(song) {\n\t// Initialize spotify API keys\n\tvar client = new Spotify (keys.spotifyKeys);\n\t// If a song has been passed into the function\n\t// then set parameters to the specified song. \n\t// Otherwise set it to The Sign by Ace of Base\n\tif (typeof(song) != \"undefined\") {\n\t\t// Specify parameters for API call\n\t\tvar params = {\n\t\t\ttype: 'track',\n\t\t\tquery: song,\n\t\t\tlimit: 1\n\t\t};\n\t\t// Append the command (argument 1 and 2) to the log file log.txt\n\t\tfs.appendFile(\"log.txt\",';'+argument1 + ';' + argument2 , function(err){\n\t\t//If the code experiences any errors it will log the error to the console.\n\t\t if (err) {\n\t\t return console.log(err);\n\t\t };\n\t\t});\n\t} else {\n\t\t// Specify alternate parameters for API call\n\t\tvar params = {\n\t\t\ttype: 'track',\n\t\t\tquery: \"The Sign Ace of Base\",\n\t\t\tlimit: 1\n\t\t};\n\t\t// Append the command (argument 1 only) to the log file log.txt\n\t\tfs.appendFile(\"log.txt\",';' + argument1, function(err){\n\t\t//If the code experiences any errors it will log the error to the console.\n\t\t if (err) {\n\t\t return console.log(err);\n\t\t };\n\t\t});\n\t};\n\t// Execute API call\n\tclient.search(params, function(err, data) {\n\t\tif (err) {\n\t\t\treturn console.log('Error occurred: ' + err);\n\t\t};\n\t\t// Display the artists by looping through length or artist array\n\t\tfor (var i =0; i < data.tracks.items[0].album.artists.length; i++) {\n\t\t\tconsole.log(\"Artists: \" + data.tracks.items[0].album.artists[i].name);\n\t\t};\n\t\t// Display the song name\n\t\tconsole.log(\"Song: \" + data.tracks.items[0].name);\n\t\t// Display the preview link\n\t\tconsole.log(\"Preview link: \" + data.tracks.items[0].preview_url);\n\t\t// Display the album that the song is from\n\t\tconsole.log(\"Album: \" + data.tracks.items[0].album.name);\n\t\t// Append the results to the log file log.txt\n\t\tfs.appendFile(\"log.txt\",';'+ \"Song: \" + data.tracks.items[0].name + ';' + \n\t\t\t\t\t\t\"Preview link: \" + data.tracks.items[0].preview_url + ';' +\n\t\t\t\t\t\t\"Album: \" + data.tracks.items[0].album.name , function(err){\n\t\t\t//If the code experiences any errors it will log the error to the console.\n\t\t \tif (err) {\n\t\t return console.log(err);\n\t\t };\n\t\t});\n\t}); \n}", "function getSongInfo(song) {\n // If no song is provided, default it to \"The Sign\" by Ace of Base.\n if (song == \"\") {\n song = \"The Sign Ace of Base\";\n };\n // Please don't actually let this happen.\n\n // Create the Spotify object\n let spotifyClient = new Spotify({\n id: keys.spotify.id,\n secret: keys.spotify.secret\n });\n\n // Search parameter object we'll pass in to the search function\n searchParams = {\n type: \"track\",\n query: song,\n limit: 1\n };\n\n // Search for the song\n spotifyClient.search(searchParams, function (err, data) {\n if (err) {\n console.log(\"Something wrong happened. I blame you.\");\n console.log(err);\n return;\n }\n // Little shortcut variable because Spotify returns GIGANTIC response objects\n let spotifyResults = data.tracks.items[0];\n\n // Display the song results. If you got \"The Sign\", shame on you.\n let arrLog = [];\n arrLog.push(\"Song: \" + spotifyResults.name);\n arrLog.push(\"Band: \" + spotifyResults.artists[0].name);\n arrLog.push(\"Album: \" + spotifyResults.album.name);\n arrLog.push(\"Preview the song: \" + spotifyResults.artists[0].external_urls.spotify);\n arrLog.push(logSeparator);\n logAndStoreResults(arrLog);\n });\n}", "function spotifyThisSong() {\n var songName = \"\";\n\n //move over all of the entered words to \n for (var i = 3; i < input.length; i++) {\n if (i > 3 && i < input.length) {\n songName = songName + \"+\" + input[i];\n } else {\n songName += input[i];\n }\n }\n if (songName === \"\") {\n songName = \"The Sign Ace of Base\";\n }\n\n // console.log(keys.spotify);\n spotify.search({ type: 'track', query: songName }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n // console.log(data);\n var track = data.tracks.items[0];\n console.log(\"Song Name: \" + track.artists[0].name);\n console.log(\"Song Name: \" + track.name);\n console.log(\"External Link: \" + track.external_urls.spotify);\n console.log(\"Album Name: \" + track.album.name);\n });\n}", "function spotifySong(input) {\n\n var songTitle;\n if (input === undefined) {\n songTitle = \"The Sign - Ace of Base\";\n } else {\n songTitle = input;\n }\n\n spotify.search({\n type: 'track',\n query: songTitle\n }, function (error, data) {\n if (error) {\n logged('Error occurred: ' + error);\n return;\n } else {\n logged(\"\\n---------\\n\");\n logged(\"Artist: \" + data.tracks.items[0].artists[0].name);\n logged(\"Song: \" + data.tracks.items[0].name);\n logged(\"Preview: \" + data.tracks.items[3].preview_url);\n logged(\"Album: \" + data.tracks.items[0].album.name);\n logged(\"\\n---------\\n\");\n }\n });\n}", "function spotifyThisSong() {\n const spotify = new Spotify(keys.spotify);\n if (!userInput) {\n userInput = 'The Sign, Ace of Base';\n spotifyThisSong();\n }\n else {\n spotify.search({ type: 'track', query: userInput })\n .then(function (songResponse) {\n console.group('Song Name: ' + songResponse.tracks.items[0].name);\n console.log('Artist Name: ' + songResponse.tracks.items[0].artists[0].name)\n console.log('Album Name: ' + songResponse.tracks.items[0].album.name);\n console.log('Preview Link: ' + songResponse.tracks.items[0].artists[0].external_urls.spotify)\n });\n };\n}", "function spotifyThisSong(song){\n //console.log(\"Spotify This Song\");\n\n if (song === undefined){\n song = \"The Sign Ace of Base\";\n }\n //else song = inputs[3];\n\n spotify\n .search({\n type: \"track\",\n query: song,\n limit: 3\n })\n .then(results => {\n console.log(\"Song name: \" + results.tracks.items[0].name);\n console.log(\"Artists names: \" + results.tracks.items[0].artists[0].name);\n console.log(\"Preview link: \" + results.tracks.items[0].preview_url);\n console.log(\"Album name: \" + results.tracks.items[0].album.name);\n })\n .catch(err => {\n console.log(err);\n });\n}", "function spotifyThisSong() {\n var spotify = new Spotify(keys.spotify);\n // If no track is entered, it will default to 'The Sign' by Ace of Base\n if (!liriSearchTerm) {\n var songTitle = \"The Sign, Ace of Base\";\n }\n else {\n var songTitle = liriSearchTerm;\n }\n // search: function({ type: 'artist OR album OR track', query: 'My search query', limit: 20 }, callback);\n spotify.search({ type: 'track', query: songTitle }, function (err, response) {\n // Create a variable to store the first song in the response\n var spotifyData = response.tracks.items[0];\n // console.log (spotifyData);\n\n // Create an array to store the information about the song, that will be written to the log.txt\n var spotifyData = [\n \"Artist: \" + spotifyData.artists[0].name,\n \"Song Link: \" + spotifyData.name,\n \"Song Preview: \" + spotifyData.preview_url,\n \"Album: \" + spotifyData.album.name,\n ].join(\"\\n\");\n\n // Write the data from the response to the terminal window\n console.log(spotifyData);\n // Write the data to log.txt\n updateLogFile(spotifyData);\n })\n}", "function mySpotify(functionParameters) {\n\tvar spotify = new Spotify({\n \t\tid: \"0888876dd4e746b69a275d3c58cd021c\",\n \t\tsecret: \"4afc6e98cbf6417996aa4beb038144c3\"\n});\n \tif(functionParameters < 1) {\n \t\tfunctionParameters = \"The Sign Ace of Base\";\n \t}\nspotify.search({ type: 'track', query: functionParameters }, function(err, data) {\n if (err) {\n \tconsole.log('Error occurred: ' + err);\n return;\n } else {\n \tvar songData = data.tracks.items[0];\n \tvar songResult = console.log(songData.artists[0].name)\n \t\tconsole.log(songData.name)\n \t\tconsole.log(songData.preview_url)\n \t\tconsole.log(songData.album.name)\n \t}\n \n// console.log(data); \n});\n}", "function getSongInfo(arg2) {\n var Spotify = require(\"node-spotify-api\");\n var track = arg2;\n var spotify = new Spotify({\n id: dot.parsed.SPOTIFY_ID,\n secret: dot.parsed.SPOTIFY_SECRET\n });\n\n spotify\n .search({ type: \"track\", query: track, limit: 1 })\n .then(function(response) {\n console.log(response);\n var response = response.tracks.items[0];\n var musicData = [\n divider,\n \"Album Name: \" + response.album.name,\n \"Song Name: \" + response.name,\n \"Artist Name: \" + response.artists[0].name,\n \"Preview Link: \" + response.external_urls.spotify,\n divider\n ].join(\"\\n\\n\");\n console.log(musicData);\n })\n .catch(function(error) {\n console.log(error);\n getSongInfo(\"The Sign Ace of Base\");\n });\n}", "function spotifyThisSong(receivedSong) {\n // so what I'm doing here is having the input to receive whichever song the person puts in an save it to the song variable.\n // IF you don't put in a song, I'm having it default to 'The Sign' using the ?. It's like an if else statement without the if else.\n var song = receivedSong ? receivedSong : \"The Sign , Ace Of Base\";\n\n // run a search on the Spotify API by track name for the query: song\n spotify.search({ type: 'track', query: song }, function (error, data) {\n\n // FIRST-IF an error is entered in, this will catch it and log it to the prompt\n if (error) return console.log('Spotify Error: ' + error);\n\n // SECOND-IF the song is not found in the Spotify database, console log 'NO SONG FOUND!'\n if (data.tracks.items.length === 0) return (console.log('NO SONG FOUND!'));\n\n // ELSE-log the command issued to the log.txt file selecting the best match item [0] in the index\n else {\n logCommand();\n\n //Display data\n //ARTIST NAME, SONG NAME, PREVIEW URL, AND ALBUM NAME\n console.log('Artist Name: ' + data.tracks.items[0].artists[0].name);\n console.log('Song Name: ' + data.tracks.items[0].name);\n console.log('Preview Link: ' + data.tracks.items[0].preview_url);\n console.log('Album Title: ' + data.tracks.items[0].album.name);\n }\n });\n\n}", "function spotifyThisSong() {\n let song = \"The Sign Ace of Base\";\n if (searchTerm) {\n song = searchTerm;\n }\n spotify.request('https://api.spotify.com/v1/search?q=track:' + song + '&type=track&limit=10', function (error, response) {\n for (i = 0; i < 3; i++) {\n if (error) {\n return console.log(error);\n }\n console.log(\"\\nArtist: \" + response.tracks.items[i].artists[0].name + \"\\nSong: \" + response.tracks.items[i].name + \"\\nPreview: \" + response.tracks.items[i].preview_url + \"\\nAlbum: \" + response.tracks.items[i].album.name);\n };\n });\n}", "function search_track(song) {\n spotify.search({ type: 'track', query: song, limit: 1 }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n // Go through the result\n var songSelected = data.tracks.items;\n var songInfo = \"\\n\\n============Song Information =========\";\n songSelected.forEach(function (track, index) {\n\n songInfo += \"\\nArtist: \" + track.artists[0].name;\n songInfo += \"\\nThe song's Name: \" + track.name;\n songInfo += \"\\nPreview Link: \" + track.external_urls.spotify;\n songInfo += \"\\nAlbum: \" + track.album.name\n songInfo += \"\\n=====================\";\n\n console.log(songInfo);\n writeToFile(songInfo);\n songInfo = \"\";\n\n });\n\n });\n\n}", "function getSong(track) {\n // If there is no track listed display the default of \"The Sign, by Ace of Base\"\n if (track === \"\" || track === undefined || track === null) {\n var defaultTrack = \"The Sign\";\n spotify.search({ type: \"track\", query: defaultTrack, limit: 10 }, function (err, response) {\n if (err) {\n return console.log('It seems you have an error:: ' + err);\n }\n //the default was displaying The Sign by Ty Dolla Sign so I just hard coded the default\n console.log('---------------------------------------------\\nArtist: \"' + \"Ace of Base\" +\n '\"\\nTrack: \"' + \"The Sign\" +\n '\"\\nAlbum: \"' + \"The Sign (US Album) [Remastered]\" +\n '\"\\nLink: \"' + \"https://p.scdn.co/mp3-preview/4c463359f67dd3546db7294d236dd0ae991882ff?cid=731f3e4c779047e89b0f836152cd61cc\" + '\"\\n');\n });\n }\n else {\n //run if a track is listed\n spotify.search({ type: \"track\", query: track, limit: 3 }, function (err, response) {\n if (err) {\n return console.log('It seems you have an error:: ' + err);\n }\n for (i = 0; i < response.tracks.items.length; i+=1) {\n // if there is no preview default a link\n if (response.tracks.items[i].preview_url === null) {\n console.log('---------------------------------------------\\nArtist: \"' + response.tracks.items[i].album.artists[0].name +\n '\"\\nTrack: \"' + response.tracks.items[i].name +\n '\"\\nAlbum: \"' + response.tracks.items[i].album.name +\n '\"\\nLink: \"' + response.tracks.items[i].album.external_urls.spotify + '');\n }\n else {\n console.log('---------------------------------------------\\nArtist: \"' + response.tracks.items[i].album.artists[0].name +\n '\"\\nTrack: \"' + response.tracks.items[i].name +\n '\"\\nAlbum: \"' + response.tracks.items[i].album.name +\n '\"\\nLink: \"' + response.tracks.items[i].preview_url + '\"');\n }\n }\n });\n }\n}", "function spotifySong(songName) {\n if (songName === undefined) {\n songName = \"The Sign\";\n }\n\n spotify.search(\n {\n type: 'track',\n query: songName\n },\n function (err, data) {\n if (err) {\n return console.log(\"Error occurred: \" + err);\n }\n\n for (var i = 0; i < data.tracks.items.length; i++) {\n var songs = data.tracks.items[i];\n console.log(i);\n console.log(\"artist(s): \" + songs.artists[0].name);\n console.log(\"song name: \" + songs.name);\n console.log(\"album: \" + songs.album.name);\n if (songs.artists.preview_url) {\n console.log(\"preview song: \" + songs.artists.preview_url);\n } else {\n console.log(\"Sorry preview song not available\");\n \n }\n console.log(\"-----------------------------------\");\n }\n });\n}", "function spotifyRequest() {\n\n var spotify = new Spotify(keys.spotify);\n\n spotify.search({ type: 'track', query: song }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n console.log(\"*************this is parse**********\")\n // console.log(JSON.parse(data));\n console.log(\"*************this is stringify**********\")\n // console.log(JSON.stringify(data, null, 2));\n data.tracks.items.forEach(function (element) {\n console.log(\"*************Song's Name**********\")\n console.log(element.name);\n\n console.log(\"*************Artists Name**********\")\n element.artists.forEach(function (element) {\n console.log(element.name + \" \")\n\n })\n\n console.log(\"*************Song's URL**********\")\n console.log(element.external_urls.spotify + \"\\n----------\");\n\n })\n\n });\n}", "function runSpotify(songTitle) {\n //check for user input\n if (songTitle === null || typeof songTitle === 'undefined' || songTitle === undefined) {\n songTitle = \"The+Sign\";\n }\n\n console.log(\"spotify this \" + songTitle);\n console.log(\"==========================\");\n\n spotify.search({ type: 'track', query: songTitle }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n for (i = 0; i < data.tracks.items.length; i++) {\n console.log(\"---------------------------------------------\")\n console.log(data.tracks.items[i].album.artists[0].name);\n console.log(data.tracks.items[i].album.name);\n console.log(data.tracks.items[i].external_urls.spotify);\n };\n });\n}", "function spotifyAPI(songName) {\n // Begin If statement in case a song is not entered after command\n if (songName) {\n // Use node-spotify-api docs to set up searches\n spotify.search({type: \"track\", query: songName}, function(error, data) {\n if (error) {\n return console.log(\"Error occurred: \" + error);\n };\n\n // Put data.tracks.items object into variable to shorten code\n var songs = data.tracks.items;\n //console.log(data.tracks.items[0]); \n\n // Loop through songs variable and console.log all required song information\n for (var i = 0; i < songs.length; i++){\n console.log(\"Artist(s): \" + songs[i].artists.map(artistNames));\n console.log(\"Song Name: \" + songs[i].name);\n console.log(\"Preview song: \" + songs[i].preview_url);\n console.log(\"Album: \" + songs[i].album.name);\n console.log(\"==============================================================================\");\n }; \n });\n } \n // Else statement in case a song is not entered after command, alert user of Error and suggest Ace of Base's \"The Sign\"\n else {\n console.log(\"Error: A song was not entered\");\n console.log(\"==============================================================================\");\n console.log(\"Suggestion:\");\n console.log(\"Artist: Ace of Base\");\n console.log(\"Song Name: The Sign\");\n console.log(\"Preview song: <https://p.scdn.co/mp3-preview/4c463359f67dd3546db7294d236dd0ae991882ff?cid=fc5f31bbde1e400687ad0b26c4f50951>\");\n console.log(\"Album: The Sign (US Album) [Remastered]\");\n console.log(\"==============================================================================\");\n };\n}", "function spotifySong(songName){\n spotify.search({type: \"track\", query: songName, limit: 5}, function (err, data) {\n if (err){\n return console.log(\"ERROR: \" + err);\n }\n data.tracks.items.forEach(function(element){\n console.log(\"\");\n console.log(\n `Artist: ${element.artists[0].name}\\n`,\n `Song: ${songName}\\n`,\n `Spotify Preview Link: ${element.preview_url}\\n`,\n `Album: ${element.album.name}\\n`)\n });\n })\n}", "function spotifySong() {\n\n\t// it will execute user input of argv[3] or it will execute the sign if there is no argv[3]\n\tvar songData = process.argv[3] || \"The Sign Ace of Base\";\n\n\tspotify.search({ type: 'track', query: songData }, function(err, data) {\n \tif (err) {\n \tconsole.log('Error occurred: ' + err);\n \t// return;\n \t}\n \t// console.log(data);\n \t// console.log(data.tracks.items);\n\n \tfor (var i = 0; i < 1; i++){\n\n \t\t// artist's name\n \t\tconsole.log(\"\");\n \t\tconsole.log('Artists\\' Name:');\n \t\tdata.tracks.items[i].artists.forEach(function(el){\n \t\t\tconsole.log(el.name);\n \t\t});\n\n \t\t// song name\n \t\tconsole.log(\"\");\n \t\tconsole.log('Song Name:');\n \t\tconsole.log(data.tracks.items[i].name);\n\n \t\t// this is name of album\n \t\tconsole.log(\"\");\n \t\tconsole.log('Album Name: ' + data.tracks.items[i].album.name);\n\n \t\t// track 30 seconds preview url\n \t\tconsole.log(\"\");\n \t\tconsole.log('Preview of the song:');\n \t\tconsole.log(data.tracks.items[i].preview_url);\n\n \t\t// album image url\n \t\tconsole.log(\"\");\n \t\tconsole.log('Album URL:');\n \t\tconsole.log(data.tracks.items[i].album.external_urls.spotify);\n\n\n \t}\n\n });\n}", "function callSpotify() {\n //Requires the .env file where the API Key and Secret are hidden.\n require(\"dotenv\").config();\n //Requires Loads Spotify API module and Spotify API Key.\n var keys = require(\"./keys.js\");\n var Spotify = require('node-spotify-api');\n var spotify = new Spotify(keys.spotify);\n var spotifyNodeArgs = process.argv;\n var songTitle = \"\";\n //If the user does not enter a search term it will search for \"The Sign\" by Ace of Bass as default.\n if (spotifyNodeArgs.length === 3){\n songTitle = \"The Sign US Remastered\";\n };\n //For Loop that checks the entire process.argv for the users term and combines the terms into \"songTitle\" variable.\n for (var i = 3; i < spotifyNodeArgs.length; i++) {\n if (i > 3 && i < spotifyNodeArgs.length) {\n songTitle = songTitle + \"+\" + spotifyNodeArgs[i];\n }\n else {\n songTitle += spotifyNodeArgs[i];\n }\n };\n //Spotify API call. Uses the \"songTitle\" variable to search for a song. The Artist, song, album, and a preview are logged to the terminal.\n spotify.search({ type: 'track', query: songTitle }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n console.log(\"\\nArtist: \" + data.tracks.items[0].album.artists[0].name, \"\\nSong: \" + data.tracks.items[0].name, \"\\nPreview: \" + data.tracks.items[0].preview_url, \"\\nAlbum: \" + data.tracks.items[0].album.name);\n });\n}", "function song() {\n\tvar client = new Spotify(theKeys.spotifyKeys);\n\tvar playSong = process.argv[3];\n\t//retrieving Spotify song\n\tclient.search({ type: 'track', query: playSong, limit: 1}, function(error, data) {\n \t\tif (error) {\n \t\treturn console.log('Error occurred: ' + error);\n \t\t\t} else {\n\t\t\t\tvar artistNames = function (artist) { \n\t\t\t\treturn artist.name;\t\t\t\t\n \t\t\t}\n \t\t\tvar tracks=data.tracks.items;\n \t\t\tfor (var i=0; i<tracks.length; i++){\n\t\t\tconsole.log(\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n\t \tconsole.log('\\nArtist(s): ' + tracks[i].artists.map(artistNames));\n\t \tconsole.log('Song Name: ' + tracks[i].name);\n\t \tconsole.log('Preview Song: ' + tracks[i].preview_url);\n\t \tconsole.log('Album: ' + tracks[i].album.name);\n\t \tconsole.log(\"\\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\")\n\t\t\t}\t\n\t\t}\n\t});\n}", "function spotifythissong(name) {\n var spotify = require('node-spotify-api');\n var spotify = new spotify({\n id: keys.spotify.id,\n secret: keys.spotify.secret\n });\n\n spotify.search({ type: 'track', query: 'All the small things', artists: \"artist\" }, function (err, data) {\n if (err) {\n\n return console.log('there is an error' + err);\n }\n console.log(data.tracks.items[0]);\n\n\n });//End of the spotify function\n}", "function spotifyThisSong() {\n\n\tvar spotifyInput = process.argv[3];\n\n\t// If there is no input provided by the user,\n\tif (spotifyInput === undefined) {\n\n\t\t// Return information for \"The Sign\" by Ace of Base! :)\n\t\t// Got specific song reference, as searching for \"The Sign\" gave way different results than the \n\t\t// song asked for\n\t\tspotify.lookup({type: \"track\", id: \"3DYVWvPh3kGwPasp7yjahc\"}, function(err, data) {\n\n\t\t\t// If there's an error..\n\t\t\tif (err) {\n\t\t\t\tconsole.log('Error occurred: ' + err);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If no error..\n\t\t\telse {\n\n\t \t\t\t// Console log header\n\t \t\t\tconsole.log(\"--------------------------------------------------------------------\");\n\n\t\t\t\t// Artist(s) Name\n\t\t \t\tconsole.log(\"Artist(s) Name(s): \" + data.album.artists[0].name);\n\n\t\t\t\t// Song Name\n\t\t\t\tconsole.log(\"Song Name: \" + data.name);\n\n\t\t\t\t// Preview Link to the song on Spotify\n\t\t\t\tconsole.log(\"Preview Link: \" + data.preview_url);\n\n\t\t\t\t// Album Name\n\t\t\t\tconsole.log(\"Album Name: \" + data.album.name);\n\n\t\t\t\t// Console log footer\n\t\t\t\tconsole.log(\"--------------------------------------------------------------------\");\n\n\t \t\t}\n\t\t});\n\t}\n\n\t// If Spotify input is defined/has a value\n\telse if (spotifyInput !== undefined) {\n\n\t// Search for a track with input search term\n\tspotify.search({type: \"track\", query: spotifyInput}, function(err, data) {\n\n\t\t// If there's an error..\n\t if (err) {\n\t console.log('Error occurred: ' + err);\n\t return;\n\t }\n\n\t // If no error..\n\t \telse {\n\n\t\t\t// Console log header\n\t\t\tconsole.log(\"----- Top 3 Results ---------------------------------------------------------------\");\n\n\t \t\t// Display top three song results\n\t \t\tfor (var i = 0; i < 3; i++) {\n\n\t \t\t\t// Create/empty blank array\n\t\t\t\tvar multArtists = [];\n\n\t\t\t\t\t// Display all artists for track (some have one, some have multiple)\n\t\t \t\t\tfor (var j = 0; j < data.tracks.items[j].artists.length; j++) {\n\n\t\t \t\t\t\t// Push all artists on track to blank array\n\t\t \t\t\t\tmultArtists.push(data.tracks.items[i].artists[j].name);\n\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t// Artist(s) Name(s)\n\t\t\t\tconsole.log(\"Artist(s) Name(s): \" + multArtists.join(\", \"));\n\n\t\t\t\t// Song Name\n\t\t\t\tconsole.log(\"Song Name: \" + data.tracks.items[i].name);\n\n\t\t\t\t// Preview Link to the song on Spotify\n\t\t\t\tconsole.log(\"Preview Link: \" + data.tracks.items[i].preview_url);\n\n\t\t\t\t// Album Name\n\t\t\t\tconsole.log(\"Album Name: \" + data.tracks.items[i].album.name);\n\n\t\t\t\t// Line break between songs\n\t\t\t\tconsole.log(\"-----\");\n\n\t\t\t}\n\n\t\t\t// Console log footer\n\t\t\tconsole.log(\"--------------------------------------------------------------------\");\n\t \t}\n\t});\n\t}\n}", "function song(s) {\n if (s) {\n var songName = s;\n } else {\n var songName = 'the sign';\n }\n spotify.search({ type: 'track', query: songName, limit: 6 }, function(err, data) {\n if (err) {\n return console.log('error: ' + err);\n }\n // log data about the song passed as an argument or 'The Sign' as default\n if (songName === s) {\n console.log('artist: ' + data.tracks.items[0].artists[0].name); \n console.log('song: ' + data.tracks.items[0].name);\n console.log('album: ' + data.tracks.items[0].album.name);\n console.log('listen: ' + data.tracks.items[0].external_urls.spotify);\n } else {\n console.log('artist: ' + data.tracks.items[5].artists[0].name); \n console.log('song: ' + data.tracks.items[5].name);\n console.log('album: ' + data.tracks.items[5].album.name);\n console.log('listen: ' + data.tracks.items[5].external_urls.spotify);\n }\n });\n}", "function getSpotify(songName) {\n\n var spotify = new Spotify(keys.spotify)\n // console.log(\"Spotify Key: \" + spotify);\n\n //HA-HA, I'm sorry. I just couldn't bring myself to put \"The Sign\"\n if(!songName){\n songName =\"Overkill\";\n }\n\n spotify.search({type:'track', query: songName}, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n console.log(\"***************************************************************\")\n //console.log(\"Data.Tracks.items is \" + JSON.stringify(data.tracks.items[0]))\n\n console.log(\"Song Searched For: \" + userSearch+\"\\r\\n\");\n console.log(\"Artist(s): \", data.tracks.items[0].album.artists[0].name + \"\\r\\n\")\n console.log(\"Album Name: \", data.tracks.items[0].album.name + \"\\r\\n\")\n console.log(\"Relase Date: \", data.tracks.items[0].album.release_date +\"\\r\\n\")\n console.log(\"Preview Link: \", data.tracks.items[0].preview_url+ \"\\r\\n\")\n\n //Appends the search results to a text file name \"log\"\n var logSong = (\"***** Spotify Log Entry *****\" + \n \"\\nSong: \" + userSearch +\n \"\\nArtist: - \" + data.tracks.items[0].album.artists[0].name +\n \"\\nAlbum Name: \"+ data.tracks.items[0].album.name +\n \"\\mRelase Date: \"+ data.tracks.items[0].album.release_date+\n \"\\nPreview Link: \" +data.tracks.items[0].preview_url+\"\\n\" +\"\\r\\n\");\n fs.appendFile(\"log.txt\", logSong, function (err){\n if(err) throw err\n });\n\n });\n\n }", "function findSong(searchTerm) {\n // spotify package\n var spotify = require('spotify');\n // search for track\n spotify.search({ type: 'track', query: searchTerm }, function(err, data) {\n\n if (err || searchTerm == null) {\n\n console.log('Because this error occurred: ' + err + \" you will be hearing Ace of Base!\");\n console.log(\"=======================\");\n // I use lookup instead of seach because I know the unique id of the song that is required in the instructions\n spotify.lookup({ type: 'track', id: '0hrBpAOgrt8RXigk83LLNE' }, function(err, data) {\n // name of song and its artists\n console.log(\"Song name: \" + data.name);\n console.log(\"Band: \" + data.artists[0].name);\n })\n return;\n }\n\n if (!err) {\n\n console.log(\"========================\");\n // name of artist\n console.log(\"Name of artist: \" + JSON.stringify(data.tracks.items[0].artists[0].name, null, 2));\n // name of song\n console.log(\"Song name: \" + JSON.stringify(data.tracks.items[0].name, null, 2));\n // preview of song\n console.log(\"Use this link for a song preview: \" + JSON.stringify(data.tracks.items[0].preview_url, null, 2));\n // Album where the songs come from\n console.log(\"Album name: \" + JSON.stringify(data.tracks.items[0].album.name, null, 2));\n console.log(\"========================\");\n }\n });\n}", "function lookupSpecificSong() {\n\n\t// Calls Spotify API to retrieve a specific track, The Sign, Ace of Base.\n\n\tvar songDetails = {\n\t\ttype: \"track\",\n\t\tid: \"\"\n\t};\n\n\tspotify.lookup(songDetails, function (err, data) {\n\n\t\tif (err) {\n\n\t\t\tlogOutput(err);\n\n\t\t\treturn;\n\n\t\t}\n\n\t\t// Prints the artist, track name, preview url, and album name.\n\n\t\tlogOutput(\"Artist: \" + data.artists[0].name);\n\n\t\tlogOutput(\"Song: \" + data.name);\n\n\t\tlogOutput(\"Spotify Preview URL: \" + data.preview_url);\n\n\t\tlogOutput(\"Album Name: \" + data.album.name);\n\n\t});\n\n}", "function searchSpotify (trackName, itemNum) {\n\n\tspotify.search({ type: 'track', query: trackName }, function(err, data) {\n\t\tif (err) {\n\t\t\tconsole.log('Error occurred: ' + err);\n\t\treturn;\n\t\t}\n\n\t// extract the desired song details from the spotify json object\n\n\t\tconsole.log(\"\\nMy Song:\");\n\t\tconsole.log(\"\\nArtist Name: \" + data.tracks.items[itemNum].album.artists[0].name);\n\t \tconsole.log(\"Song Name: \" + data.tracks.items[itemNum].name);\n\t \tconsole.log(\"Preview URL: \" + data.tracks.items[itemNum].preview_url);\n\t \tconsole.log(\"Album Name: \" + data.tracks.items[itemNum].album.name);\n\n\t }); // end function to search Spotify\n\n} // function to search OMDB using the request package", "function searchSpotify() {\n\n var songTitle = \"\"; // var to be set by user input and submitted to the search method\n\n var spotify = new Spotify(keys.spotify); //new instance of Spotify via constructor functionality included in the node-spotify-api package\n \n // if-else setup to use a default song if nothing is input after the song-this command\n if (input[1] === undefined) {\n songTitle = \"The Sign Ace\"; //viable string for returning \"The Sign\" by Ace Of Base\n } else {\n songTitle = input.slice(1).join(' '); //otherwise the title will be built by joining the rest of the inputs into a string with each item separated by a space\n }\n \n spotify\n .search({ type: 'track', query: songTitle})\n .then(function(response) {\n\n if (response.tracks.items[0] === undefined) \n {\n console.log(songBumpers);\n console.log(\"\\n\" + beginBold + songTitle + endBold + \"? Sorry, I don't know that song! Maybe if I heard it....\"); \n console.log(songBumpers); \n return;\n } \n else \n {\n console.log(songBumpers);\n console.log(beginBold + \"Song title: \" + endBold + response.tracks.items[0].name);\n console.log(beginBold + \"Artist: \" + endBold + response.tracks.items[0].album.artists[0].name);\n console.log(beginBold + \"Album: \" + endBold + response.tracks.items[0].album.name);\n console.log(beginBold + \"Listen on Spotify at: \" + endBold + \"https://open.spotify.com/track/\" + response.tracks.items[0].uri.substring(14,36)); //substring method used to target specific 22-char id part of link-object, which is concat'd into a URL the user can copy/paste into a browser\n console.log(songBumpers);\n\n logFile(\"\\nSpotify search returned: \" + response.tracks.items[0].name + \", \" + response.tracks.items[0].album.artists[0].name);\n }\n })\n}", "function searchSpotify(search){\n\tvar Spotify = require('node-spotify-api');\n \n\tvar spotify = new Spotify({\n\t\tid: 'da97b33e9f4640e08420c513eed1b7e2',\n\t\tsecret: '7fc8dcaebc8a40cb9f47b20f9f9f2e43'\n\t});\n\t \n\tspotify.search({ type: 'track', query: search }, function(err, data) {\n\t\tif (err) {\n\t \treturn searchSpotify(\"The Sign Ace\");\n\t\t}else{ \n\t\t\tconsole.log(\"Band Name: \" + data.tracks.items[0].artists[0].name); \n\t\t\tconsole.log(\"Song Name: \"+ data.tracks.items[0].name);\n\t\t\tconsole.log(\"Album Name: \" + data.tracks.items[0].album.name);\n\t\t\tconsole.log(\"Spotify Link: \" + data.tracks.href);\n\t\t\tlog(\"Band Name: \" + data.tracks.items[0].artists[0].name);\n\t\t\tlog(\"Song Name: \"+ data.tracks.items[0].name);\n\t\t\tlog(\"Album Name: \" + data.tracks.items[0].album.name);\n\t\t\tlog(\"Spotify Link: \" + data.tracks.href);\n\t \t}\n\t});\n}", "function songLookup() {\n let song = indicator[3];\n //Check if Search Song is not empty\n if (song != undefined) {\n //Loop thru and build query for more than one word\n for (let i = 3; i < indicator.length; i++) {\n if (i > 3 && i < indicator.length) {\n song = song + \" \" + indicator[i];\n } else {\n song = indicator[3];\n }\n }\n //Give user song \"The Sign\" if left empty \n } else {\n console.log(\"You didn't enter a song. Here's your sign!\");\n song = \"Ace of base\", \"The Sign\";\n }\n\n spotify.search({ type: 'track', query: song, limit: 1 }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n //If no results are found\n if (data.tracks.total == 0) {\n console.log(\"Sorry, no results found!..Try another song\");\n }\n\n let TrackSearchResult = data.tracks.items\n for (let i = 0; i < TrackSearchResult.length; i++) {\n console.log(\"*************************************************\")\n console.log(\"Artist: \" + JSON.stringify(TrackSearchResult[i].artists[0].name));\n console.log(\"Song: \" + JSON.stringify(TrackSearchResult[i].name));\n console.log(\"Preview Link: \" + JSON.stringify(TrackSearchResult[i].preview_url));\n console.log(\"Album: \" + JSON.stringify(TrackSearchResult[i].album.name));\n console.log(\"*************************************************\")\n }\n });\n}", "function ShowSongTrackInformation(info){\n if(info == \"\" || info == null || info.length == 0){\n info = \"The Sign\"\n }\n spotify.search({ type: 'track', query: info}, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n var songDetails = data.tracks.items;\n console.log(chalk.green(\" ____ ____ ___ _____ ___ _______ __\"));\n console.log(chalk.green(\" / ___|| _ \\\\ / _ \\\\_ _|_ _| ___\\\\ \\\\ / /\"));\n console.log(chalk.green(\" \\\\___ \\\\| |_) | | | || | | || |_ \\\\ V / \"));\n console.log(chalk.green(\" ___) | __/| |_| || | | || _| | | \"));\n console.log(chalk.green(\" |____/|_| \\\\___/ |_| |___|_| |_| \"));\n console.log(\" \");\n console.log(\"================================================================================\\n\");\n console.log(chalk.green(\"\\tSpotify This Song's Information: \") +\"\\n\");\n console.log(\"\\t> \"+ chalk.green('LIRI:') + \" You are searching for '\" + chalk.bgBlue.white(info) + \"'\\n\"); \n console.log(chalk.bgWhite.black(\"\\t\\t\\tL O A D I N G . . . 100%\\n\"));\n console.log(\"================================================================================\\n\");\n console.log(\"\\t> \" + chalk.green('LIRI:') + \" I found \" + chalk.red(songDetails.length) + \" results for you\\n\\n\");\n\n for(var i = 0; i < songDetails.length; i++){\n console.log(\"============================== Track Result #\" + (i+1) + \" =================================\");\n console.log(chalk.green(\"\\n\\tSong Title \\t: \") + songDetails[i].name);\n console.log(chalk.green(\"\\n\\tArtist \\t\\t: \") + songDetails[i].album.artists[0].name);\n console.log(chalk.green(\"\\n\\tAlbum \\t\\t: \") + songDetails[i].album.name);\n console.log(chalk.green(\"\\n\\tSong URL \\t: \") + chalk.blue(songDetails[i].preview_url) + \"\\n\");\n }\n });\n}", "async function spotifyThisSong(searchFor) {\n\n // console.log(\"Inside spotifyThisSong()\");\n\n //Store artist name taken from file\n let artist = searchFor;\n\n //If 'artist' is null then prompt user for artist/song name\n if (artist === \"\") {\n\n // Prompt to get artist name from user input\n const artistOrBandNameResp = await getArtistName();\n\n //Extract artist/band name from user input\n artist = artistOrBandNameResp.artistOrBandName;\n }\n\n //Spotify API call\n spotify\n .search({\n type: 'track',\n query: artist,\n limit: 10\n })\n .then(function (response) {\n\n // console.log(\"response.tracks.items.length: \" + response.tracks.items.length);\n\n console.log(\"\\n-------------------------------------------------------\");\n\n for (let trackCount = 0; trackCount < response.tracks.items.length; trackCount++) {\n\n console.log(\"\\n\");\n\n //Show Artist(s)\n let getArtists = response.tracks.items[trackCount].artists;\n let artistsName = [];\n for (let j = 0; j < getArtists.length; j++) {\n artistsName += getArtists[j].name + \" \";\n }\n console.log(\"Artist/s: \" + artistsName);\n\n // The song's name\n console.log(\"Song's name: \" + response.tracks.items[trackCount].name);\n\n // A preview link of the song from Spotify\n console.log(\"Preview URL: \" + response.tracks.items[trackCount].preview_url);\n\n // The album that the song is from\n console.log(\"Album name: \" + response.tracks.items[trackCount].album.name);\n\n }\n\n //Call restartApp() to restart the app if user wishes to\n restartApp();\n })\n .catch(function (err) {\n console.log(err);\n });\n\n} //End of spotifyThisSong()", "function spotifyThis(song){\n var spotify = new Spotify(keys.spotify);\n spotify.search({ type: 'track', query: song })\n .then(function(data) {\n var index = 0;\n function printTrack(){\n var track = data.tracks.items[index];\n console.log(\n \"\\n-----------------------\\n\" +\n \"Title: \" + track.name + \"\\n\" +\n \"Artist: \" + track.artists[0].name + \"\\n\" +\n \"Album: \" + track.album.name + \"\\n\" +\n \"Release Date: \" + track.album.release_date + \"\\n\" +\n \"Spotify preview URL: \" + track.preview_url + \"\\n\" +\n \"\\n-----------------------\\n\" \n );\n // will cycle through top 3 songs if displayed song is not correct\n inquirer.prompt([\n {\n name: \"song\",\n type: \"confirm\",\n message: \"is this the song you were looking for?\"\n }\n ]).then(function(answer){\n if(!answer.song && index < 3){\n index++;\n printTrack()\n } else if (!answer.song && index >= 3) {\n console.log(\"Sorry. I couldn't find your Song..\")\n anythingElse();\n } else {\n anythingElse()\n }\n })\n }\n printTrack()\n })\n}", "function searchSpotify() {\n inquirer.prompt([{\n type: 'input',\n name: 'song',\n message: \"Name a song:\"\n }, {\n type: 'input',\n name: 'artist',\n message: \"Name the artist:\"\n }\n ]).then(answers => {\n spotify.search({ type: 'track', query: (answers.song + \", \" + answers.artist) }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n console.log(\"Here is '\" + data.tracks.items[0].name + \"' from the album, \" + data.tracks.items[0].album.name + \", by \" + data.tracks.items[0].album.artists[0].name);\n console.log(\"Spotify Link: \" + data.tracks.items[0].preview_url);\n });\n });\n}", "function spotifyThisSong(song) {\n // if no argument entered, default argument\n if (!argument) {\n song = \"I Saw The Sign\";\n }\n // search spotify track with song \n spotify\n .search ({ \n type: \"track\", \n query: song,\n })\n // function to console log response when data is received\n .then(function(response) {\n //for each song it will console log the following data\n response.tracks.items.forEach(function (track) {\n console.log(\"\\n------------------------------------------\");\n console.log(`Preview: ${track.preview_url}`);\n console.log(`Track Name: ${track.name}`);\n console.log(`Artist: ${track.artists[0].name}`);\n console.log(`Album: ${track.album.name}`);\n console.log(\"\\n\");\n })\n })\n // if error, console logs error message\n .catch(function(err) {\n console.error(err);\n })\n}", "function spotifyThisSong(){\n var songArg = process.argv;\n input = input+\"+\";\n if(input===undefined){\n artist = \"The Sign\"\n } else {\n for(var i=4; i < songArg.length; i++){\n input += songArg[i]+\"+\";\n }\n } \n\n spotify.search({ type: 'track', query: input, limit:1 }, function(err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n console.log(input);\n var quick = data.tracks.items;\n console.log(\"Artist: \"+quick[0].artists[0].name)\n console.log(\"Song Name: \"+quick[0].name);\n console.log(\"Check out a Preview: \"+JSON.stringify(quick[0].external_urls));\n console.log(\"Album: \"+quick[0].album.name); \n }\n );\n }", "function displaySpotify() {\n if (process.argv[3]) {\n spotifySong = process.argv[3];\n }\n spotify\n .search({ type: 'track', query: spotifySong })\n .then(function (response) {\n\n dataOutPut = \"\\n\" + commandRequest + \"\\n---------------------------------------------------------------------------------------------------------------------------------\" +\n \"\\nArtist(s): \" + response.tracks.items[0].artists[0].name + \"\\n\" +\n \"\\nSong: \" + response.tracks.items[0].name + \"\\n\" +\n \"\\nPreview: \" + response.tracks.items[0].preview_url + \"\\n\" +\n \"\\nAlbum: \" + response.tracks.items[0].album.name + \"\\n\" +\n \"---------------------------------------------------------------------------------------------------------------------------------\";\n logOutPut();\n })\n .catch(function (err) {\n console.log(err);\n });\n}", "function spotifyCall() {\n\nvar spotifyQuestion = [\n {\n type: 'input',\n name: 'spotifyInput',\n message: \"Input the Spotify song you'd like information on.\"\n }\n]\n\nfunction displaySpotify() {\n\n inquirer.prompt(spotifyQuestion).then(function(answers) {\n\n var spotifyApi = new spotify( {\n clientId: spotifyKeys.client_id,\n clientSecret: spotifyKeys.client_secret,\n })\n\n // Retrieve an access token.\n spotifyApi.clientCredentialsGrant().then(function(data) {\n console.log('The access token expires in ' + data.body['expires_in']);\n console.log('The access token is ' + data.body['access_token']);\n //console.log(params)\n // Save the access token so that it's used in future calls\n spotifyApi.setAccessToken(data.body['access_token']);\n\n var spotifySong = answers.spotifyInput;\n params = spotifySong;\n console.log(params);\n\n spotifyApi.searchTracks(params).then(function(data) {\n console.log('Results for tracks titled ' + params,(JSON.stringify(data.body, null, 2)));\n }, function(err) {\n console.log(err);\n })\n\n\n }, function(err) {\n console.log(spotifyApi);\n console.log('Something went wrong when retrieving an access token', err);\n });\n })\n }\n\ndisplaySpotify()\n}", "function spotify_this(){\n // console.log(\"spotify_this works\")\n //make sure keys are accessible\n // console.log(spotify)\n\n //spotify search track\n spotify.search({ \n type: 'track', \n query: `${input}` }, \n function(err, data) {\n \n if (err) {\n return console.log('Error occurred: ' + err);\n }\n // console.log(data.tracks.items[0]); \n console.log(\"__________________________\")\n console.log(`Artist Name: ${data.tracks.items[0].artists[0].name}`);\n console.log(`Track Name: ${data.tracks.items[0].name}`);\n console.log(`Preview URL: ${data.tracks.items[0].preview_url}`);\n console.log(`Album Title: ${data.tracks.items[0].album.name}`)\n console.log(\"__________________________\")\n });\n}", "spotifyThisSong() {\n const spotify = new SpotifyAPI(KEYS.spotify);\n let songName = \"The Sign Ace of Base\";\n\n if (this.cmdArgs.length > 0) {\n songName = this.cmdArgs.join(\" \");\n }\n spotify.searchSong(songName);\n }", "function spotifyThisSong(songName) {\n console.log(\"spotify is working\");\n if (songName === undefined) {\n songName = \"What's my age again\";\n }\n \n spotify.search(\n {\n type: \"track\",\n query: songName\n },\n function(err, data) {\n if (err) {\n console.log(\"Error occurred: \" + err);\n return;\n }\n \n var songs = data.tracks.items;\n \n for (var i = 0; i < songs.length; i++) {\n console.log(i);\n console.log(\"artist(s): \" + songs[i].artists.map(getArtistNames));\n console.log(\"song name: \" + songs[i].name);\n console.log(\"preview song: \" + songs[i].preview_url);\n console.log(\"album: \" + songs[i].album.name);\n console.log(\"-----------------------------------\");\n }\n }\n );\n\n\n}", "function spotifySong(parameter) {\n // If no song is provided then your program will default to \"The Sign\" by Ace of Base.\n if (parameter === undefined || null) {\n parameter = \"The Sign\";\n };\n\n spotify.search({\n type: 'track',\n query: parameter\n }, function (error, data) {\n if (error) {\n console.log('Error occurred: ' + error);\n return;\n };\n var song = data.tracks.items;\n for (var i = 0; i < song.length; i++) {\n console.log(\"Song Info - \" + [i + 1]);\n fs.appendFileSync(\"log.txt\", \"Song Info - \" + [i + 1] + \"\\n\");\n\n // Artist(s)\n console.log(\"Artist(s): \" + song[i].artists[0].name);\n fs.appendFileSync(\"log.txt\", \"artist(s): \" + song[i].artists[0].name + \"\\n\");\n\n // The song's name\n console.log(\"Song name: \" + song[i].name);\n fs.appendFileSync(\"log.txt\", \"song name: \" + song[i].name + \"\\n\");\n\n // A preview link of the song from Spotify\n console.log(\"Preview song: \" + song[i].preview_url);\n fs.appendFileSync(\"log.txt\", \"preview song: \" + song[i].preview_url + \"\\n\");\n\n // The album that the song is from\n console.log(\"Album: \" + song[i].album.name);\n fs.appendFileSync(\"log.txt\", \"album: \" + song[i].album.name + \"\\n\");\n\n console.log(\"-----------------------------------------------------------\")\n fs.appendFileSync(\"log.txt\", \"-----------------------------------------------------\");\n }\n });\n}", "function songInfo(songName) {\n console.log(\"Searching for: \" + songName.toUpperCase());\n spotify.search({type: \"track\", query: songName}, function(err, data) {\n if (err) {\n console.log(\"Error: \" + err);\n log(\"error_log.txt\", command + \" Error: \" + err);\n return;\n } else {\n for (var i = 0; i < data.tracks.items.length; i++) {\n console.log(\"--------------------------------------------------------------------\");\n console.log(\"Artist: \" + data.tracks.items[i].artists[0].name);\n console.log(\"Song Name: \" + data.tracks.items[i].name);\n console.log(\"Album: \" + data.tracks.items[i].album.name);\n console.log(\"Preview Link: \" + data.tracks.items[i].external_urls.spotify + \"\\n\");\n };\n };\n });\n}", "function spotifyThis(checkThis) {\n \t\tspotify.search({ type:\"track\", query:checkThis }, function(err, data) {\n\t\t\tvar songInfo = data.tracks.items[0];\n\t\t\tconsole.log(songInfo.artists[0].name);\n\t\t\tconsole.log(songInfo.name);\n\t\t\tconsole.log(songInfo.preview_url);\n\t\t\tconsole.log(songInfo.album.name);\n\t\t});\n\t}", "function mySpotify(receivedSong) {\n\n\t// first save the name of the song\n\t// if it is provided from command line then use that otherwise\n\t// set it to 'The Sign' by Ace of Base\n\t// using ternary function seems to be the easiest way to do this\n\t// basically, if receivedSong exists then set it to that otherwise 'The Sign'\n\tvar mySong = receivedSong ? receivedSong : 'The Sign Ace of Base';\n\n\t// run a search on the Spotify API by track name for mySong\n\tSpotify.search({ type: 'track', query: mySong }, function(err, data) {\n\n\t\t// if an error is caught in the call, display that and exit the function\n\t\tif (err) return console.log('Spotify Error: ' + err);\n\n\t\t// if the song is not found in the Spotify database, log that and exit the function\n\t\tif (data.tracks.items.length == 0) return (console.log('No such song found!'));\n\n\t\t// log the command issued to the log.txt file\n\t\tlogCommand();\n\n\t\t// log out the song details, but go with the 0th item returned as API can return\n\t\t// multiple hits - basicaly go with the best match\n\t\tlogThis('Artist Name: ' + data.tracks.items[0].artists[0].name);\n\t\tlogThis('Song Name: ' + data.tracks.items[0].name);\n\t\tlogThis('Preview Link: ' + data.tracks.items[0].preview_url);\n\t\tlogThis('Album Title: ' + data.tracks.items[0].album.name);\n\n\t// end the search function\n\t});\n\n// end the mySpotify function\n}", "function spotifySearch(search) {\n var song;\n\n if (search === null || search === undefined || search === \"\") {\n song = \"I Want It That Way\";\n } else {\n song = search;\n }\n spotify.search({ type: 'track', query: song }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n // console.log(data);\n var spotifySearchResult = data.tracks.items[0];\n // console.log(spotifySearchResult);\n for (i = 0; i < spotifySearchResult.artists.length; i++) {\n console.log(\"\\n----------Song Info----------\\n\")\n console.log(\"\\033[38;5;6m\" + \"Artist(s): \" + \"\\033[0m\" + spotifySearchResult.artists[i].name);\n console.log(\"\\033[38;5;6m\" + \"Song Name: \" + \"\\033[0m\" + spotifySearchResult.name);\n console.log(\"\\033[38;5;6m\" + \"Preview Link: \" + \"\\033[0m\" + spotifySearchResult.preview_url);\n console.log(\"\\033[38;5;6m\" + \"Album: \" + \"\\033[0m\" + spotifySearchResult.album.name + \"\\n\");\n console.log(\"---------------------------------\");\n }\n });\n\n}", "function searchSpotify() {\n inquirer.prompt([\n {\n type: \"input\",\n name: \"query\",\n message: \"Search Spotify:\"\n }\n ]).then(function(input) {\n var query = input.query;\n if (input.query == \"\") {\n query = \"The Sign Ace of Base\"\n }\n var spotify = new Spotify({\n id: spotifyKeys.id,\n secret: spotifyKeys.secret\n });\n spotify.search({ type: \"track\", query: query }, function (error, data) {\n if(error) {\n console.log(error)\n } else {\n var title = data.tracks.items[0].name;\n var artist = data.tracks.items[0].artists[0].name;\n var album = data.tracks.items[0].album.name;\n var previewLink = data.tracks.items[0].preview_url;\n if(!previewLink) {\n previewLink = \"No preview available :(\"\n }\n console.log(\"~Siri~ Here is some information about \" + title + \".\")\n console.log(\"...\");\n console.log(\"Title: \" + title);\n console.log(\"Artist: \" + artist);\n console.log(\"Album: \" + album);\n console.log(\"Preview: \" + previewLink); \n console.log(\"...\");\n logData(\"Searched Spotify for \" + title + \" by \" + artist);\n }\n })\n \n })\n}", "function spotifyThis() {\n // console.log(searchQuery);\n if (!searchQuery) {\n searchQuery = \"The Sign by Ace of Base\"\n // console.log(searchQuery);\n }\n spotify.search({\n type: 'track',\n query: searchQuery\n }, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n // console.log(JSON.stringify(data.tracks))\n console.log(\"Artist: \" + data.tracks.items[0].album.artists[0].name);\n console.log(\"Song Title: \" + data.tracks.items[0].name);\n console.log(\"Album Name: \" + data.tracks.items[0].album.name);\n console.log(\"Spotify Preview link: \" + data.tracks.items[0].preview_url);\n\n\n\n });\n}", "function spotifySearch() {\n // console.log(\"This is the spotify search\");\n if(process.argv.length === 3){\n searchTerm = \"The Sign\";\n }\n spotify.search({\n type: \"track\",\n query: searchTerm,\n limit: 10,\n }, function(err,data) {\n if(err) {\n return console.log(\"Error occurred: \" + err);\n }\n for (var i = 0; i < data.tracks.items.length; i++) {\n \n console.log(`Artist: ${data.tracks.items[i].artists[0].name}\\nSong Name: ${data.tracks.items[i].name}\\nSpotify Preview Link: ${data.tracks.items[i].preview_url}\\nAlbum: ${data.tracks.items[i].album.name}\\n\\n`);\n }\n })\n trackInfo(action, searchTerm);\n }" ]
[ "0.83971447", "0.823613", "0.81894684", "0.8185489", "0.8134054", "0.8132945", "0.80786073", "0.8076742", "0.80210364", "0.8003488", "0.8002035", "0.7974239", "0.7962454", "0.7961985", "0.7957632", "0.7948961", "0.7948034", "0.7937842", "0.793703", "0.79339707", "0.79287845", "0.7920958", "0.79207873", "0.79100186", "0.78911626", "0.78896594", "0.78894174", "0.7882259", "0.78707623", "0.78649426", "0.7850045", "0.78416234", "0.78357875", "0.78060615", "0.7797579", "0.7792028", "0.77915734", "0.77904665", "0.7783667", "0.7776659", "0.7764388", "0.77359384", "0.7722319", "0.7719298", "0.77125174", "0.7707399", "0.7706345", "0.7703789", "0.7699436", "0.7693688", "0.7684927", "0.7677142", "0.76717377", "0.7670294", "0.76679957", "0.7665043", "0.76612055", "0.76508784", "0.7642443", "0.7640566", "0.76379347", "0.76374084", "0.7637149", "0.7622561", "0.7619211", "0.7591054", "0.7590205", "0.75786763", "0.757716", "0.757009", "0.75700873", "0.7556951", "0.755691", "0.7552826", "0.7551015", "0.7546574", "0.75347847", "0.75323516", "0.75303686", "0.75302494", "0.7517767", "0.75130635", "0.7512026", "0.74990076", "0.74888235", "0.7485668", "0.74805325", "0.7476254", "0.7473777", "0.7471088", "0.74561447", "0.7452154", "0.74506915", "0.7447009", "0.7444212", "0.74360055", "0.74293655", "0.73949444", "0.73919094", "0.73914135", "0.7389897" ]
0.0
-1
Uses the omdb api to display results for the movie searched
function getMovieInfo() { if (searchTerm === "") { searchTerm = "Star Wars"; } axios .get("http://omdbapi.com/?apikey=trilogy&s=" + searchTerm) .then(function(response) { logString += "\n\n\nYou Searched For: " + searchTerm + "\nThis Search Resulted in " + response.data.Search.length + " results" + "\n******** Results *********\n\n"; response.data.Search.forEach(movie => { logString += "Movie Title - " + movie.Title + `\nMovie Year - ${movie.Year}` + `\nMovie IMDB ID - ${movie.imdbID}` + "\nMedia Type - " + movie.Type + "\nPoster URL - " + movie.Poster + "\n\n"; }); logString += "\n******** End *********\n"; console.log(logString); logResults(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function searchMovie(searchWord, page) {\n fetch(\n `http://www.omdbapi.com/?s=${searchWord}&apikey=dd68f9f&page=${page}&plot=short`\n )\n .then(function(response) {\n return response.json();\n })\n .then(function(data) {\n let searchResults = data.Search;\n results.innerHTML = \"\";\n return searchResults.map(function(movie) {\n let movieDiv = createNode(\"div\");\n let movieTitle = createNode(\"h1\");\n let moviePoster = createNode(\"img\");\n let more = createNode(\"div\");\n let movieDetails = createNode(\"p\");\n let movieID = movie.imdbID;\n let movieActors = createNode(\"p\");\n let movieDirector = createNode(\"p\");\n let movieRating = createNode(\"p\");\n\n movieDiv.className = \"movie-div\";\n\n movieTitle.textContent = `${movie.Title} (${movie.Year})`;\n movieTitle.className = \"movie-title\";\n\n moviePoster.src = movie.Poster;\n moviePoster.className = \"movie-images\";\n\n more.textContent = \"More...\";\n more.className = \"more\";\n\n movieDetails.className = \"movie-details--off\";\n\n append(results, movieDiv);\n append(movieDiv, movieTitle);\n append(movieDiv, moviePoster);\n append(movieDiv, more);\n append(more, movieActors);\n append(more, movieDirector);\n append(more, movieRating);\n append(more, movieDetails);\n\n more.addEventListener(\"click\", function(event) {\n event.preventDefault();\n if (movieDetails.className == \"movie-details--off\") {\n fetch(\n `http://www.omdbapi.com/?i=${movieID}&apikey=dd68f9f&plot=full`\n )\n .then(function(response) {\n return response.json();\n })\n .then(function(data) {\n console.log(data);\n movieActors.textContent = `Cast: ${data.Actors}`;\n if (movie.Director !== \"N/A\") {\n movieDirector.textContent = `Directed by: ${data.Director}`;\n }\n movieRating.textContent = `${data.Ratings[0].Source}: ${\n data.Ratings[0].Value\n }\n ${data.Ratings[1].Source}: ${data.Ratings[1].Value}\n ${data.Ratings[2].Source}: ${data.Ratings[2].Value}`;\n\n movieDetails.className = \"movie-plot\";\n movieDetails.textContent = `Plot: ${data.Plot}`;\n });\n\n movieDetails.classList.toggle(\"movie-details--on\");\n } else if (movieDetails.className == \"movie-details--on\") {\n movieDetails.classList.toggle(\"movie-details--off\");\n }\n });\n });\n });\n}", "function getMovies(searchText) {\r\n getData('https://www.omdbapi.com/?s=' + searchText + '&apikey=' + OMDBAPIKEY, function(err,\r\n response) {\r\n if (err) {\r\n return;\r\n }\r\n if (response.Search) {\r\n response.Search.pop();\r\n var omdbData = response.Search;\r\n var output = '';\r\n $.each(omdbData, (index, movie) => {\r\n output += htmlWriteResults(movie);\r\n });\r\n\r\n $('#movies').html(output);\r\n } else {\r\n // If we can't find any results we give a nice error message.\r\n $('#movies').html(\r\n '<section><div class=\"col-md-12\"><div class=\"well text-center\"><br><i class=\"fa fa-exclamation-triangle fa-4x whiteheader\" style=\"color: rgba(243,156,18, 1)\"></i><h2 class=\"whiteheader\">Sorry, but <b>' +\r\n searchText +\r\n '</b> gave no results</h2><br><p class=\"whiteheader\">But we would <i class=\"fa fa-heart\" style=\"color: rgba(231,76,60, 1)\"> </i> for you to try something else.</p></div></div></section>'\r\n );\r\n }\r\n });\r\n}", "function searchFilm() {\n if (searchQuery.length === 0) {\n searchQuery = \"Mr. Nobody\"\n }\n request(`http://www.omdbapi.com/?t=${searchQuery}&plot=short&apikey=5d94fa00`, function (error, response, body) {\n if (!error && response.statusCode === 200) {\n console.log(`Movie: ${JSON.parse(body).Title}`);\n console.log(`Starring: ${JSON.parse(body).Actors}`);\n console.log(`Year: ${JSON.parse(body).Year}`);\n console.log(`Origin: ${JSON.parse(body).Country}`);\n console.log(`Language: ${JSON.parse(body).Language}`);\n console.log(`IMDB Rating: ${JSON.parse(body).imdbRating}`);\n console.log(`Tomato-meter: ${JSON.parse(body).Ratings[1].Value}`);\n console.log(`Synopsis: ${JSON.parse(body).Plot}`); \n }\n });\n}", "function movieSearch() {\n var encodeName = encodeURI(searchName);\n request(\"http://www.omdbapi.com/?t=\" + encodeName + \"&y=&plot=short&r=json\", function(error, response, body) {\n\tif (!error && response.statusCode === 200) {\n\t //console.log(JSON.parse(body));\n\t console.log(\"Title: \" + JSON.parse(body).Title);\n\t // year\n\t console.log(\"Year Released: \" + JSON.parse(body).Year);\n\t // imdb rating\n\t console.log(\"IMDB Rating: \" + JSON.parse(body).imdbRating);\n\t // country produced\n\t console.log(\"Country: \" + JSON.parse(body).Country);\n\t // language of movie\n\t console.log(\"Language: \" + JSON.parse(body).Language);\n\t // plot\n\t console.log(\"Plot: \" + JSON.parse(body).Plot);\n\t // actors\n\t console.log(\"Actors: \" + JSON.parse(body).Actors);\n\t // rotten tomatoes rating\n\t console.log(\"Rotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value);\n\t // rotten tomotoes url\n\t console.log(\"Rotten Tomatoes: https://www.rottentomatoes.com/search/?search=\" + encodeName);\n\t} else {\n\t console.log(error);\n\t}\n });\n} // close movie search", "function searchMovie(movie) {\n var queryURL = \"http://www.omdbapi.com/?t=\" + movie + \"&apikey=trilogy\";\n //console.log(queryURL);\n\n //searching for movie with omdb api\n request(queryURL, function (error, response, body) {\n //if error occurs\n if (error) {\n console.log(error);\n }\n\n //request processed successfully\n if (!error && response.statusCode === 200) {\n //console.log(JSON.parse(body));\n var result = JSON.parse(body);\n\n var title = result.Title;\n var year = result.Year;\n var rating1 = result.imdbRating;\n var rating2 = result.Ratings[1].Value;\n var country = result.Country;\n var language = result.Language;\n var plot = result.Plot;\n var actors = result.Actors;\n\n console.log(\"\\n\");\n console.log(\"Movie: \" + title);\n console.log(\"Year: \" + year);\n console.log(\"IMDB Rating: \" + rating1);\n console.log(\"Rotten Tomatos Rating: \" + rating2);\n console.log(\"Countries of production: \" + country);\n console.log(\"Language(s): \" + language);\n console.log(\"Plot: \" + plot);\n console.log(\"Actors: \" + actors);\n }\n });\n}", "function movieSearch(movie)\n{\n request(\"http://www.omdbapi.com/?t=\" + movie + \"&y=&plot=short&tomatoes=true&r=json\", function (error, response, body) {\n console.log('error:', error); // Print the error if one occurre\n console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received\n console.log('body:', body); // Print the HTML for the Google homepage.\n console.log(body.title);\n console.log(response.title);\n});\n}", "function OMDBquery(movie) {\n console.log(\"searching for movie: \" + movie);\n const queryURL =\n \"https://www.omdbapi.com/?t=\" + movie + \"=&plot=short&apikey=trilogy\";\n $.ajax({\n url: queryURL,\n method: \"GET\"\n })\n .then(function (response) {\n handleMovieResponse(response);\n })\n .catch(function (error) {\n // error case\n let message = `${movie} was not found in OMDB`;\n updateErrorDiv(message);\n });\n}", "function movieThis() {\n var movie = \"Mr. Nobody\";\n if (searchTerm) {\n var movie = searchTerm;\n };\n let movieUrl = \"http://www.omdbapi.com/?apikey=715b0924&t=\" + movie\n axios.get(movieUrl).then(response => {\n let data = response.data;\n console.log(\"Title: \" + data[\"Title\"] + \"\\nYear: \" + data[\"Year\"] + \"\\nIMDB Rating: \" + data[\"imdbRating\"] + \"\\nRotten Tomatoes Rating: \" + data[\"Ratings\"][1][\"Value\"] + \"\\nCountry of Production: \" + data[\"Country\"] + \"\\nLanguage: \" + data[\"Language\"] + \"\\nPlot: \" + data[\"Plot\"]\n + \"\\nActors: \" + data[\"Actors\"]);\n }).catch(error => {\n console.log(error);\n });\n}", "searchMovie() {\n //If applications just created set the boolean representation to false\n if (this.created) {\n this.created = false;\n this.searchBoxLayout = \"space-between center\";\n }\n this.url = \"https://www.omdbapi.com/?\";\n //Combine various parameters to form url\n this.url = this.url.concat(`s=${this.title}`, `&type=${this.selectedType}`, `&page=${this.page}`, `&y=${this.year}`, \"&apikey=f2de4f33\");\n fetch(this.url)\n .then(response => response.json())\n .then((data) => {\n if (data.Response == \"True\") {\n this.movies = data.Search;\n this.totalResults = data.totalResults;\n this.totalPages = Math.ceil(this.totalResults / 10);\n this.movieNotFound = false;\n }\n else if (data.Response == \"False\") {\n this.movieNotFound = true;\n this.totalResults = 0;\n this.movies = [];\n }\n });\n }", "function callOmdb() {\n request(\"http://www.omdbapi.com/?apikey=trilogy&t=\" + searchParams, function(error, response, body) {\n\n // If the request is successful (i.e. if the response status code is 200)\n if (!error && response.statusCode === 200) {\n var movieObj = JSON.parse(body);\n\n console.log(` -============= Movie Results =========================-\n The title of the movie is: ${movieObj.Title}\n This movie was released in: ${movieObj.Year}\n The IMDB Rating of the movie is: ${movieObj.imdbRating}\n The Rotten Tomatoes Rating of the movie is: ${movieObj.Ratings[1]}\n This movie was produced in: ${movieObj.Country}\n This movie is in: ${movieObj.Language}\n The plot of the movie is: ${movieObj.Plot}\n Actors: ${movieObj.Actors}\n -=====================================================-`);\n }\n});\n}", "function movieSearch(movieInput) { \n \n if (movieInput === \"\") {\n movieInput = \"Mr. Nobody\";\n }\n console.log(\"movie input: \" + movieInput);\n\n axios.get(\"http://www.omdbapi.com/?t=\" + movieInput + \"&y=&plot=short&apikey=trilogy\").then(\n function (response) {\n // console.log(response.data);\n console.log(\"Title: \" + response.data.Title);\n console.log(\"Release Year: \" + response.data.Year);\n console.log(\"IMdB Rating: \" + response.data.imdbRating);\n console.log(\"Country: \" + response.data.Country);\n console.log(\"Language: \" + response.data.Language);\n console.log(\"Rotten Tomatoes: \" + response.data.Ratings[0].Value);\n console.log(\"Plot: \" + response.data.Plot);\n console.log(\"Actors: \" + response.data.Actors);\n }\n );\n}", "function fetchMovie(e){\n e.preventDefault();\n \n const searchText = document.querySelector('#search-text').value;\n searchText.replace(' ','+');\n const fetchUrl =`http://www.omdbapi.com/?i=tt3896198&apikey=3f6a0e17&s=${searchText}&type=movie&page=1`;\n\n axios.get(fetchUrl)\n .then(response => {\n var ms = response.data;\n if(ms.Response){\n showMovie(ms.Search);\n }else{\n alert(\"error\")\n }\n })\n .catch(error => {\n console.log(error);\n });\n}", "function movieSearch(movie, cb) {\n request(`http://www.omdbapi.com/?apikey=${omdbKey}&s=${movie}&page=${page}&type=movie&r=json`, function (error, response, body) {\n\n // If the request is successful (i.e. if the response status code is 200)\n if (!error && response.statusCode === 200) {\n\n return cb(JSON.parse(body));\n }\n\n });\n }", "function searchMovie(value) {\n\n const path = '/search/movie';\n\n const url = generateUrl(path) + '&query=' + value;\n\n const render = renderMovies.bind({title: 'Results'});\n\n sectionMovies(url, render, handleError);\n\n}", "function movieSearch(movie){\n if(!movie){\n var movieName = \"Mr. Nobody\";\n } else{\n movieName = movie;\n }\n let queryUrl = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\n request(queryUrl, function(err, response, body){\n\n if(!err && response.statusCode === 200){\n\n //need to look at responses from IMDB, responses seem to change based on the movie\n //also if possible add some input validation\n console.log(\"Movie title: \" + JSON.parse(body).Title);\n console.log(\"Release date: \" + JSON.parse(body).Year);\n console.log(\"Rating: \" + JSON.parse(body).imdbRating);\n //rotten tomatoes rating\n if(JSON.parse(body).Ratings[1]){\n console.log(\"Rotten tomatoes rating: \" + JSON.parse(body).Ratings[1].Value);\n }\n console.log(\"Produced in \" + JSON.parse(body).Country);\n console.log(\"Language: \" + JSON.parse(body).Language);\n console.log(\"Plot: \" + JSON.parse(body).Plot);\n console.log(\"Actors: \" + JSON.parse(body).Actors);\n \n } else{\n\n console.log(err);\n }\n\n\n });\n \n\n\n}", "async function getMovies(e){\n e.preventDefault()\n page = 1\n if (!search.value.trim()){\n results.innerHTML = `Please Enter a movie keyword in the search box `\n return\n }\n const res = await fetch(`https://www.omdbapi.com/?apikey=1a241340&s=${search.value}&type=movie&page=${page}`)\n const data = await res.json()\n if (data.Response === 'False'){\n results.innerHTML = `There are no results for search ${search.value}`\n }\n else { displayMovies(data.Search, Number(data.totalResults))}\n \n}", "function searchOMDBbyMovie(searchObject, searchKey) {\n\n\tvar omdbApiKey = 'd20f646e';\n\n\t// query URL for OMDB API\n\tvar queryURL = 'https://www.omdbapi.com/?apikey=' + omdbApiKey \n\t\t\t\t+ '&t=' + searchObject.query;\n\n\t// AJAX request\n\t$.ajax({\n\t\tmethod: \"GET\",\n\t\turl: queryURL\n\t}).done(function(r){\n\t\tconsole.log(r);\n\t\tif (r.Response !== \"False\") {\n\t\t\t// saves results in searchObject.results\n\t\t\tsearchObject.results = r;\n\t\t\t// checks search history again using retrieved results to avoid rewriting the\n\t\t\t// same data to firebase, sending retrieved title as argument instead of query term\n\t\t\tif (!wasSearchedBefore(searchObject.results.Title, 'movie')) {\n\t\t\t\t// writes search results to firebase\n\t\t\t\twriteSearchData(searchObject, searchKey);\n\n\t\t\t\t// calls function which listens for firebase uploading to finish \n\t\t\t\t// before redirecting to 'search.html'\n\t\t\t\tafterLoadRedirectTo(searchObject, 'search.html');\n\t\t\t} //recycles old search data\n\t\t\telse {reuseSearchData(searchObject.results.Title, 'movie');}\n\t\t\t\t\n\t\t} \n\t\telse{\n\t\t\t// Materialize.toast(message, displayLength, className, completeCallback);\n \t\t\tMaterialize.toast('Sorry, your search didnt yield any results.', 4000);\n\t\t}\n\t});\n}", "function searchOMDB (input) {\n // If nothing is searched, Mr. Nobody will be used.\n if (input == \"\") {\n input = \"Fantastic Mr. Fox\"\n };\n // OMDB request\n request(\"http://www.omdbapi.com/?t=\" + input + \"&y=&plot=shortnode&apikey=trilogy\", function (error, response, body) {\n if (error) {\n console.log(\"An error occured: \" + error)\n } else {\n console.log(\n \"Movie title: \" + JSON.parse(body).Title +\n \"\\nReleased: \" + JSON.parse(body).Year +\n \"\\nIMDB Rating: \" + JSON.parse(body).imdbRating +\n \"\\nRotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value +\n \"\\nThe movie was produced in: \" + JSON.parse(body).Country +\n \"\\nLanguage: \" + JSON.parse(body).Language +\n \"\\nThe Plot: \" + JSON.parse(body).Plot +\n \"\\nThe Actors: \" + JSON.parse(body).Actors\n );\n }\n })\n}", "static search(query, callback) {\n const path = `/?type=movie&s=${query}`;\n\n return makeOmdbRequest(path, (err, response) => {\n if(response) {\n // If there was no error, only return the movies array\n response = response.Search;\n }\n\n callback(err, response);\n });\n }", "function searchMovie(movieName){\n var fix=movieName.replace(/ /g,\"+\");\n console.log(fix);\n //dauflt when name is undefine\n\n axios.get(\"http://www.omdbapi.com/?t=\"+fix+\"&y=&plot=short&apikey=trilogy\").then(\n function(response) {\n console.log(\"Movie Title: \"+response.data.Title);\n console.log(\"Year: \"+response.data.Year);\n console.log(\"IMDB Rating: \"+response.data.Ratings[0]);\n console.log(\"Rotten Rating: \"+response.data.Ratings[1]);\n console.log(\"Conutry: \"+response.data.Country);\n console.log(\"Language: \"+response.data.Language);\n console.log(\"Plot of Movie: \"+response.data.Plot);\n console.log(\"Actors List: \"+response.data.Actors);\n console.log(\"-------------------------------------\");\n })\n .catch(function(error) {\n console.log(\"error\");\n });\n\n}", "function movieThis(movie) {\n\n var queryUrl = \"http://www.omdbapi.com/?t=\" + searchInput + \"&y=&plot=short&apikey=trilogy\";\n\n request(queryUrl, function (error, response, body) {\n\n if (!error && response.statusCode === 200) {\n var body = JSON.parse(body);\n\n console.log(\"\");\n console.log(\"Title: \" + body.Title);\n console.log(\"\");\n console.log(\"Release Year: \" + body.Year);\n console.log(\"\");\n console.log(\"IMDB Rating: \" + body.imdbRating);\n console.log(\"\");\n console.log(\"Rotten Tomatoes Rating: \" + body.Ratings[1].Value);\n console.log(\"\");\n console.log(\"Country: \" + body.Country);\n console.log(\"\");\n console.log(\"Language: \" + body.Language);\n console.log(\"\");\n console.log(\"Plot: \" + body.Plot);\n console.log(\"\");\n console.log(\"Actors: \" + body.Actors);\n console.log(\"\");\n }\n });\n}", "function getFilm(search) {\n\n\tomdb.getMovie(search)\n\n}", "function movie() {\n //****************** OMDB movies API ********************\n var API2 = \"https://www.omdbapi.com/?t=\" + search + \"&y=&plot=short&apikey=trilogy\"\n\n axios.get(API2).then(\n function (response) {\n console.log(\"================================================\");\n console.log(\"Title of the Movie: \" + response.data.Title);\n console.log(\"Year Released: \" + response.data.Year);\n console.log(\"IMDB Rating: \" + response.data.imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + response.data.Ratings[1].Value);\n console.log(\"Country Produced in: \" + response.data.Country);\n console.log(\"Language of the Movie: \" + response.data.Language);\n console.log(\"Plot: \" + response.data.Plot);\n console.log(\"Cast: \" + response.data.Actors);\n }\n )\n}", "function searchFilmsByTitle(title) {\n let format = title.split(' ').join('+'); // replace spaces with plus\n $.ajax({\n url: `https://www.omdbapi.com/?apikey=ac155d96&s=${format}`,\n dataType: \"json\"\n }).done(function(resp) {\n if (resp.Search != null) {\n let respSize = resp.Search.length;\n for (let i = 0; i < respSize; i++) {\n if(resp.Search[i].Poster != 'N/A' && resp.Search[i].Type == 'movie') {\n let myHTML = \n `<div class=\"col-sm-6\">\n <a class=\"movie-select\" href=\"#\" id=\"${resp.Search[i].imdbID}\">\n <img class=\"movie-image\" src=\"${resp.Search[i].Poster}\">\n </a>\n </div>`;\n $(\"#movies\").append(myHTML);\n }\n }\n } else {\n let myHTML =\n `<div class=\"col-sm-12\">\n <div class=\"alert alert-primary col\" role=\"alert\">\n ${resp.Error}\n </div></div>`;\n $(\"#movies\").append(myHTML);\n }\n });\n }", "findMovie(movieName = \"Mr. Nobody\") {\n let query = [\n 'http://www.omdbapi.com/?',\n this.key,\n `t=${movieName}`,\n 'page=3',\n 'type=movie',\n 'r=json'\n ].join('&');\n\n console.log(`\\n=======\\nFinding the movie \"${movieName}\"`);\n this.request(query, (error, response, body) => {\n if (error) {\n console.log(\"ERROR: \", error);\n return;\n }\n\n const jsonObj = this.body2JSON(body);\n if (!jsonObj) return;\n\n console.log(`\\n=======\\nResult for the movie \"${movieName}\"`);\n this.printMovieInfo(jsonObj);\n });\n }", "function movieThis(movie) {\n\n if (movie.length === 0) {\n var queryURL = \"http://www.omdbapi.com/?t=\" + \"Mr.Nobody\" + \"&y=&plot=short&apikey=trilogy\";\n } else {\n var queryURL = \"http://www.omdbapi.com/?t=\" + searchQuery + \"&y=&plot=short&apikey=trilogy\";\n }\n\n // axios method to recieve and print data\n axios.get(queryURL).then(function (response) {\n console.log(\"Movie Title: \" + response.data.Title);\n console.log(\"Year: \" + response.data.Year);\n console.log(\"IMBD Rating: \" + response.data.Ratings[0].Value);\n console.log(\"Rotten Tomatoes Rating: \" + response.data.Ratings[1].Value);\n console.log(\"Country: \" + response.data.Country);\n console.log(\"Language: \" + response.data.Language);\n console.log(\"Plot: \" + response.data.Plot);\n console.log(\"Actors: \" + response.data.Actors);\n }\n\n );\n}", "function movieThis(search){\n axios.get(\"https://www.omdbapi.com/?t=\" + search + \"&y=&plot=short&apikey=trilogy\")\n .then(function(response) {\n console.log(\n `--------------------------------------------------------------------\nMovie Title: ${response.data.Title}\nYear of Release: ${response.data.Year}\nIMDB Rating: ${response.data.imdbRating}\nRotten Tomatoes Rating: ${response.data.Ratings[1].Value}\nLanguage: ${response.data.Language}\nCast: ${response.data.Actors}\nPlot: ${response.data.Plot}`\n );\n \n })\n .catch(function (error) {\n console.log(error);\n });\n \n}", "function getMovies() {\n var movieSearch = process.argv.slice(3).join(\" \");\n var queryURL = \"http://www.omdbapi.com/?apikey=trilogy&t=\" + movieSearch;\n axios\n .get(queryURL)\n .then(function(response) {\n //Function for Response of movies.\n //console.log(response);\n var searchRes = response.data;\n console.log(\"Movie Title: \" + searchRes.Title + \n \"\\nReleased In: \" + searchRes.Year + \n \"\\nIMDB Rating: \" + searchRes.imdbRating + \n \"\\nRotten Tomatoes Rating: \" + searchRes.Ratings[1].Value + \n \"\\nCountry where movie was produced: \" + searchRes.Country + \n \"\\nLanguage: \" + searchRes.Language + \n \"\\nPlot: \" + searchRes.Plot + \n \"\\nActors: \" + searchRes.Actors);\n console.log(\"------------------------------------------\");\n })\n //Function for ERRORS\n .catch(function(error) {\n if (error.response) {\n console.log(error.response.data);\n console.log(\"------------------------------------------\");\n }\n })\n}", "async function getSearch(){\n const res = await fetch(`https://www.omdbapi.com/?apikey=1a241340&s=${search.value}&type=movie&page=${page}`)\n const data = await res.json()\n if (data.Response === 'False'){\n results.innerHTML = `There is no results for search ${search.value}`\n }\n else { displayMovies(data.Search, Number(data.totalResults))}\n}", "function omdbThis(movieEntered) {\n // if no movie is entered, defaults to \"Mr. Nobody\"\n if (movieEntered === undefined || null) {\n movieEntered = \"Mr.Nobody\";\n console.log(\"If you haven't watched 'Mr. Nobody', then you should: \")\n console.log(\"It's on Netflix!\")\n }\n\n // request to omdb api with a movie\n var searchUrl = \"http://www.omdbapi.com/?t=\" + movieEntered + \"&y=&plot=short&apikey=trilogy\";\n\n console.log(searchUrl);\n\n request(searchUrl, function (error, response, body) {\n // if request is successful \n if (!error && response.statusCode === 200) {\n //json parse\n var movieData = JSON.parse(body);\n\n console.log(\"========================\");\n // title of movie\n console.log(\"Movie Title: \" + movieData.Title +\n // year released\n \"\\nYear Released: \" + movieData.Released +\n // IMDB rating\n \"\\nIMDB Rating: \" + movieData.imdbRating +\n // Rotten Tomatoes rating\n \"\\nRotten Tomatoes Rating: \" + movieData.Ratings[1].Value +\n // countries movie was produced\n \"\\nCountry Produced: \" + movieData.Country +\n // language \n \"\\nLanguage: \" + movieData.Language +\n // plot\n \"\\nPlot: \" + movieData.Plot +\n // actors\n \"\\nActors: \" + movieData.Actors +\n \"\\n========================\");\n \n };\n });\n}", "async fetchMovies(ctx, search) {\n let result = [];\n await axios\n .get(\n \"http://www.omdbapi.com/?apiKey=\" + key.key + \"&s=\" + search + \"&page=1\"\n )\n .then(response => {\n result = response.data.Search;\n });\n ctx.commit(\"setSearchResult\", result);\n if(result == undefined) {\n ctx.commit('setSearchResponse', false);\n }\n }", "function MovieSearch(movie) {\n request(omdb.url + movie, function (error, response, body) {\n if (error) {\n console.log('error:', error);\n console.log('statusCode:', response && response.statusCode);\n }\n //Convert string to JSON object\n var data = JSON.parse(body)\n //Desired properties to log\n var properties = [data.Title, data.Year, data.Rated, data.Ratings[1].Value,\n data.Country, data.Language, data.Plot, data.Actors\n ];\n //Property text (aesthetics)\n var text = ['Title: ', 'Year: ', 'Rated: ', 'Rotten Tomatoes: ',\n 'Country: ', 'Language: ', 'Plot: ', 'Actors: '\n ];\n //Log results\n for (var i = 0; i < properties.length; i++) {\n console.log(text[i], properties[i]);\n }\n });\n}", "function loadMovies(searchTerm){\n //console.log(loaderEl);\n loaderEl.classList.toggle(\"invisible\");\n //console.log(\"retrieving movie data request\");\n var requestURL = 'http://www.omdbapi.com/?s=' + searchTerm;\n var results = [];\n //Build an XHR request and then send it.\n //If you want a more structured approach, write an XHR constructor and call it here\n //Read this for more info: https://www.kirupa.com/html5/making_http_requests_js.htm\n var xhr = new XMLHttpRequest();\n xhr.open('GET', requestURL, true);\n xhr.send();\n xhr.onreadystatechange = processRequest();\n \n //This function keeps track of changes to the xhr request\n function processRequest() {\n console.log(xhr.readyState);\n if (xhr.readyState == XMLHttpRequest.DONE){\n console.log(\"xhr request DONE SON\");\n //console.log(xhr.response);\n //The result of the XHR will be a string that we need to turn into JSON\n var result = JSON.parse(xhr.response);\n results = result.Search;\n console.table(results);\n renderDOM(results);\n }\n //TODO: add error handling\n }\n}", "async fetchSpecificMovie(ctx, payload) {\n let specificSearchResult = [];\n let result = [];\n await axios.get('http://www.omdbapi.com/?apiKey='+ key.key + '&t='+ payload.searchReplaced + '&y=' + payload.year).then((response) => { specificSearchResult = response.data });\n result.push(specificSearchResult);\n ctx.commit('setSearchResult', result);\n ctx.commit('setSearchResponse', result[0].Response);\n }", "function getMovie(search) {\n return fetch(\"http://www.omdbapi.com/?apikey=cc5844e4&s=\" + search)\n .then((response) => {\n if (!response.ok) {\n throw new Error(response.statusText);\n }\n return response.json();\n })\n .then((result) => {\n if (result.Response === \"False\") {\n throw new Error(result.Error);\n }\n return result.Search;\n });\n}", "function movieThis() {\n //default input if there is no input from user\n if (!input) {\n input = \"Mr. Nobody\";\n console.log(\"If you haven't watched Mr. Nobody then you should: http://www.imdb.com/title/tt0485947/\");\n console.log(\"It's on Netflix!\");\n };\n\n //axios get callback to the omdb api\n axios.get(\"http://www.omdbapi.com/?t=\" + input + \"&y=&plot=short&apikey=trilogy\")\n .then (function(response) {\n console.log(\"========SEARCHING...========\");\n console.log(\"Title: \" + response.data.Title);\n console.log(\"Released: \" + response.data.Year);\n console.log(\"IMDb Rating: \" + response.data.imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + response.data.Ratings[1].Value);\n console.log(\"Country: \" + response.data.Country);\n console.log(\"Language: \" + response.data.Language);\n console.log(\"Plot: \" + response.data.Plot);\n console.log(\"Cast: \" + response.data.Actors);\n console.log(\"============================\");\n })\n}", "function getMovie() {\n\n var omdbApi = require('omdb-client');\n\n var params = {\n apiKey: 'XXXXXXX',\n title: 'Terminator',\n year: 2012\n }\n omdbApi.get(params, function (err, data) {\n // process response...\n });\n}", "function getData() {\r\n fetch('http://www.omdbapi.com?s='+guardian+'&apikey=893a62a')\r\n .then(Response => Response.json())\r\n .then(data => {\r\n moviesData = data.Search\r\n console.log(moviesData);\r\n render(moviesData);\r\n })\r\n }", "function searchMovie(search){\n\tvar request = require('request');\n\trequest('http://www.omdbapi.com/?apikey=40e9cece&t='+search, function (error, response, body) {\n\t\tvar movie = JSON.parse(body); \n\t \t\n\t\tif(error){\n\t \t\tconsole.log('error:', error); \n\t \t\tlog('error:', error);\n\t \t}\n\t \tif(movie.Title == null){\n\t \t\tconsole.log(\"If you haven't watched 'Mr. Nobody', then you should: http://www.imdb.com/title/tt0485947/\" );\n\t \t\tconsole.log(\"It's on Netflix!\")\n\t \t\tlog(\"If you haven't watched 'Mr. Nobody', then you should: http://www.imdb.com/title/tt0485947/\" );\n\t \t\tlog(\"It's on Netflix!\");\n\t \t}else{\n\t\t\tconsole.log(\"Title of the Movie: \" + movie.Title )\n\t\t\tconsole.log(\"Year the movie came out: \" + movie.Year)\n\t\t\tconsole.log(\"IMDB Rating of the movie: \" + movie.imdbRating)\n\t\t\tconsole.log(\"Country where the movie was produced: \" + movie.Country)\n\t\t\tconsole.log(\"Language of the Movie: \" + movie.Language)\n\t\t\tconsole.log(\"Plot of the movie: \" + movie.Plot)\n\t\t\tconsole.log(\"Actors in the movie: \" + movie.Actors)\n\t\t\tconsole.log(\"Rotten Tomatoes URL\" + movie.Website)\n\n\t\t\tlog(\"Title of the Movie: \" + movie.Title )\n\t\t\tlog(\"Year the movie came out: \" + movie.Year)\n\t\t\tlog(\"IMDB Rating of the movie: \" + movie.imdbRating)\n\t\t\tlog(\"Country where the movie was produced: \" + movie.Country)\n\t\t\tlog(\"Language of the Movie: \" + movie.Language)\n\t\t\tlog(\"Plot of the movie: \" + movie.Plot)\n\t\t\tlog(\"Actors in the movie: \" + movie.Actors)\n\t\t\tlog(\"Rotten Tomatoes URL\" + movie.Website)\n\t\t}\n\t});\n}", "async function searchMovies(){\n\n // Replaces the list sections HTML with a pulsating search indicator\n document.getElementById(\"movieList\").innerHTML = `<div class=\"searchIndicator\"><h1>Searching...</h1></div>`;\n\n // Retrieves the type constraints options, including the checked result\n // then, filters through the constraint list to find the specified type\n // Options: Any, Movies, Series, Episodes\n let types = document.getElementsByName(\"type\")\n let type = null;\n types.forEach(option => {\n if (option.checked) {\n type = option.value;\n }\n });\n\n // Checks and rearranges the order of yearRange1 and yearRange2 values for accurate min and max values\n let minYear = document.getElementById(\"yearRange1\").value;\n let maxYear = document.getElementById(\"yearRange2\").value;\n if (minYear > maxYear) {\n replaceYear = minYear;\n minYear = maxYear;\n maxYear = replaceYear;\n }\n\n\n // Retrieves the search key terms, processes them into an API request \n // with the dbURI constant kept in app.js, which is then sent to the OMDB API\n let search = document.getElementById(\"search\").value;\n let searchURI = encodeURIComponent(search);\n let response = await fetch(dbURI + `s=${searchURI}`);\n\n // Prevents empty or whitespace searches from being processed\n if (!search || !search.trim()) {\n document.getElementById(\"movieList\").innerHTML = `<div class=\"\"><h1>Invalid Search</h1></div>`;\n return;\n }\n\n // Awaits the response from API request and converts the response into JSON format,\n // then distributes desired search and result data to allocated variables.\n let data = await response.json();\n\n // \"Search\" retrieves the list of movies found from the search term keys, \n // totalResults is a count of all items\n let result = data[\"Search\"];\n let totalResults = data[\"totalResults\"];\n\n // filteredTotal exists to retrieve an accurate total by removing filtered options\n // and invalid ones such as games\n let filteredTotal = 0;\n\n // As OMDB API is restricted by pagination in units of 10 (0 - 9, 10 - 19...)\n // if the total is higher than ten, several more requests will need to be made\n // in order to pull the full list of movies\n if(totalResults > 10){\n\n // Math.ceil rounds up to the nearest integer, this is important to make sure that the\n // resulting number of pages is inclusive of any tailing incomplete pages under all \n // conditions. Example, a result of 10.4 means 11 pages in total, not 10.\n let pages = Math.ceil(totalResults/10);\n\n // push - appends every set of 10 or less items from each page until all pages are processed\n for (let x = 2; x < pages; x++) {\n response = await fetch(dbURI + `s=${searchURI}&page=${x}`);\n data = await response.json();\n data[\"Search\"].forEach(movie => {\n result.push(movie);\n });\n }\n }\n\n // Recalculates an accurate total based on the chosen search menu constraints\n switch (type) {\n case \"any\":\n result.forEach(movie => {\n if(movie.Type != 'game' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n filteredTotal++;\n }\n });\n break;\n\n case \"movies\":\n result.forEach(movie => {\n if(movie.Type == 'movie' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n filteredTotal++;\n }\n });\n break;\n\n case \"series\":\n result.forEach(movie => {\n if(movie.Type == 'series' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n filteredTotal++;\n }\n });\n break;\n \n case \"episodes\":\n result.forEach(movie => {\n if(movie.Type == 'episode' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n filteredTotal++;\n }\n });\n break;\n \n default:\n result.forEach(movie => {\n if(movie.Type != 'game' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n filteredTotal++;\n }\n });\n break;\n }\n\n // clears the search indicator ONLY after all API requests are complete and processed\n document.getElementById(\"movieList\").innerHTML = ``;\n\n // If there are any results, this section displays the final information \n // to the item list on the left-hand side of the webpage\n if (result != null && result.length > 0){\n\n // Display the true count of items post-filtration\n document.getElementById(\"movieList\").innerHTML += `<p class=\"resultCount\">${filteredTotal} Results</p>`;\n\n // Checks that each movie has a poster and if not, replace it with a default no poster image\n result.forEach(movie => {\n if(movie[\"Poster\"] == null || movie[\"Poster\"] == \"N/A\"){\n movie[\"Poster\"] = \"/NoMoviePoster.jpg\"\n }\n });\n\n // Based on the constraints, generates HTML for all relevant results to the movie list \n switch (type) {\n case \"any\":\n result.forEach(movie => {\n if(movie.Type != 'game' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n document.getElementById(\"movieList\").innerHTML +=\n `<div class=\"movie\" onclick=\"displayMovie(event)\">\n <img src=\"${movie[\"Poster\"]} alt=\"Image Unavailable\" class=\"listImage\">\n <h3 class=\"title\">${movie.Title}</h3>\n </div>`;\n }\n });\n break;\n \n case \"movies\":\n result.forEach(movie => {\n if(movie.Type == 'movie' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n document.getElementById(\"movieList\").innerHTML +=\n `<div class=\"movie\" onclick=\"displayMovie(event)\">\n <img src=\"${movie[\"Poster\"]} alt=\"Image Unavailable\" class=\"listImage\">\n <h3 class=\"title\">${movie.Title}</h3>\n </div>`;\n }\n });\n break;\n \n case \"series\":\n result.forEach(movie => {\n if(movie.Type == 'series' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n document.getElementById(\"movieList\").innerHTML +=\n `<div class=\"movie\" onclick=\"displayMovie(event)\">\n <img src=\"${movie[\"Poster\"]} alt=\"Image Unavailable\" class=\"listImage\">\n <h3 class=\"title\">${movie.Title}</h3>\n </div>`;\n }\n });\n break;\n \n case \"episodes\":\n result.forEach(movie => {\n if(movie.Type == 'episode' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n document.getElementById(\"movieList\").innerHTML +=\n `<div class=\"movie\" onclick=\"displayMovie(event)\">\n <img src=\"${movie[\"Poster\"]} alt=\"Image Unavailable\" class=\"listImage\">\n <h3 class=\"title\">${movie.Title}</h3>\n </div>`;\n }\n });\n break;\n \n default:\n result.forEach(movie => {\n if(movie.Type != 'game' && maxYear >= parseInt(movie.Year) && parseInt(movie.Year) >= minYear){\n document.getElementById(\"movieList\").innerHTML +=\n `<div class=\"movie\" onclick=\"displayMovie(event)\">\n <img src=\"${movie[\"Poster\"]} alt=\"Image Unavailable\" class=\"listImage\">\n <h3 class=\"title\">${movie.Title}</h3>\n </div>`;\n }\n });\n break;\n }\n \n } else{\n document.getElementById(\"movieList\").innerHTML = `<p class=\"resultCount\">0 Results</p>`\n }\n}", "function searchMovies(title) {\n\n var url = 'http://www.omdbapi.com/?i=tt3896198&apikey=18c5a437&s=' + title;\n\n $http.get(url)\n .then(function (response) {\n model.movies = response.data.Search\n\n })\n $location.url('/movie')\n }", "function getMovie(movieName) {\n\n // If no movie name, do a search for Mr.Nobody\n if (!movieName) {\n var movieName = \"Mr. Nobody\";\n }\n\n var queryURL = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=full&tomatoes=true&apikey=[key]\";\n axios.get(queryURL).then(\n function (response) {\n\n // Movie info\n console.log(`Title: ${response.data.Title}\nYear: ${response.data.Year}\nRated: ${response.data.Rated}\nRotten Tomatoes Rating: ${response.data.tomatoRating}\nCountry Produced in: ${response.data.Country}\nLanguage: ${response.data.Language}\nPlot: ${response.data.Plot}\nActors: ${response.data.Actors}`\n );\n }\n )\n}", "function getSimilarMovies(searchInput, maxResults) {\n\n const parameters = {\n api_key: tmdbKey,\n language: \"en-US\",\n query: searchInput,\n page: 1,\n }\n const queryString = formatTmdbQueryParams(parameters);\n const tmdbSearchURL = \"https://api.themoviedb.org/3/search/movie/?\"\n const similarURL = tmdbSearchURL + queryString;\n\n fetch(similarURL).then(response => {\n if(response.ok) {\n return response.json();\n } throw new Error(\"Oh the HORROR! Something went wrong :(\")\n }).then(responseJson => { \nconsole.log(`responseJson is:`, responseJson);\n if(responseJson.hasOwnProperty(\"0\")) {\n throw new Error(responseJson.Error);\n }\n let results = responseJson.results;\n let titles = results.map(item => item[\"title\"]);\n //for each result, display the title per the displaySimilarMovies function them in a list item\n displaySimilarMovies(titles, maxResults) \n }).catch(err => {\nconsole.log(`err is ${err}`)\n handleUndefined()\n });\n }", "performSearch(searchTerm) {\n console.log(\"Perform search using moviedb\"); \n const urlString = \"https://api.themoviedb.org/3/search/movie?api_key={keyomitted}}&language=en-US&page=1&include_adult=false&query=\" + searchTerm;\n \n // The API we are using is the one provided by imdb\n $.ajax({\n url: urlString,\n success: (searchResults) => {\n console.log(\"Fetched data successfully\")\n console.log(searchResults);\n const results = searchResults.results\n console.log(results[0])\n\n var movieRows = []\n\n // Loop through each row to later display customized results\n results.forEach((movie) => {\n movie.poster_src = \"https://image.tmdb.org/t/p/w185\" + movie.poster_path;\n const movieRow = <MovieRow movie={movie}/>\n movieRows.push(movieRow)\n })\n this.setState({rows: movieRows})\n },\n error: (xhr, status, error) => {\n console.log(\"Failed to fetch data\")\n }\n })\n }", "async function getMovies(searchText){\n //console.log(searchText);\n await fetch(`https://www.omdbapi.com?s=`+searchText+'&apikey=9a7c1c71')\n .then(Response => Response.json())\n .then(data => {\n console.log(data);//logging as one data\n\n /*If the movie is not found ,display an error message*/ \n if (data.Error == \"Movie not found!\"){\n $(\"#search_result\").append(`\n <div class=\"not_found\">\n <p>Search results for <span class=\"not-found-alert\">${searchText}</span> not found</p>\n <p>Please enter another title</p>\n </div>`) \n }\n \n /*Retrieve the results*/\n var movies = data.Search;\n console.log(movies);\n let styleName = \"\"; \n\n /*Loop throught the mvoies information retrieved to extract specific data*/\n for(var i = 0; i < movies.length; i++) {\n var obj = movies[i];//Individual datas extracted from the nested portion\n\n if (obj.Poster == \"N/A\"){\n obj.Poster = \"images/not-found-image.jpg\";\n styleName = \"na\";\n }\n //logging object titles\n console.log(obj.Title);\n var id = obj.imdbID;\n var votes = obj.imdbVotes;\n //Append the results into the search results div to display to the user \n $(\"#search_result\").append(`\n <div class='movie-card'>\n <img class=\"${styleName}\" src =\"${obj.Poster}\"></img>\\\n <h5>${obj.Title}</h5>\n <button id=\"${id}\" class=\"movie-card-btn\" onclick=\"getInfo(this.id)\">Learn More</button>\n </div>`) \n }\n })\n}", "function runOMDB(query) {\n\n\n\n axios.get(\"http://www.omdbapi.com/?t=\" + query + \"&apikey=trilogy&\")\n .then(function (response) {\n\n var movie = response.data\n // response\n console.log(\"Movie Title: \", movie.Title);\n console.log(\"Reliease Year\", movie.Year);\n console.log(\"IMBD Rating:\", movie.imdbRating);\n console.log(\"Rotten Tomatoes Rating: \", movie.Ratings[0].Value);\n console.log(\"Country Produced \", movie.Country);\n console.log(\"Movie Lang :\", movie.Language);\n console.log(\"Plot: \", movie.Plot);\n console.log(\"Actors in Movie: \", movie.Actors);\n\n\n })\n .catch(function (error) {\n\n });\n}", "function getMoviesList(){\n let SearchInput = document.getElementById('movie-search').value;\n fetch(`https://www.omdbapi.com/?apikey=${apiKey}&s=${SearchInput}`)\n .then((Response)=> Response.json())\n .then((data)=>{\n console.log(data.Search);\n let html = '';\n let movies = data.Search;\n if(movies){\n movies.forEach((movies)=>{\n html += `\n <div class=\"movie-item\" data-id = \"${movies.imdbID}\">\n <div class=\"movie-img\">\n <img src=\"${movies.Poster}\" alt=\"food\">\n </div>\n <div class=\"movie-name\">\n <h3>${movies.Title}</h3>\n <a class=\"info-btn\" href=\"#\">Get Info</a>\n </div>\n </div>\n \n `;\n });\n movieList.classList.remove('not-found');\n\n }else{\n html= 'Unable to find the movie';\n movieList.classList.add('not-found');\n } \n movieList.innerHTML =html; \n });\n}", "function movies(input) {\n\n var movieTitle;\n if (input === undefined) {\n movieTitle = \"Cool Runnings\";\n } else {\n movieTitle = input;\n };\n\n var queryURL = \"http://www.omdbapi.com/?t=\" + movieTitle + \"&y=&plot=short&apikey=b41b7cf6\";\n\n request(queryURL, function (err, res, body) {\n var bodyOf = JSON.parse(body);\n if (!err && res.statusCode === 200) {\n logged(\"\\n---------\\n\");\n logged(\"Title: \" + bodyOf.Title);\n logged(\"Release Year: \" + bodyOf.Year);\n logged(\"Actors: \" + bodyOf.Actors);\n logged(\"IMDB Rating: \" + bodyOf.imdbRating);\n logged(\"Rotten Tomatoes Rating: \" + bodyOf.Ratings[1].Value);\n logged(\"Plot: \" + bodyOf.Plot);\n logged(\"\\n---------\\n\");\n }\n });\n}", "function searchForMovie() {\n let userMovie = \"Django Unchained\";\n let queryURL =\n \"https://api.themoviedb.org/3/search/movie?api_key=\" +\n API_KEY +\n \"&language=en-US&query=\" +\n userMovie;\n\n $.ajax({\n url: queryURL,\n method: \"GET\",\n }).then(function(response) {\n // console.log(response);\n // let title = response.results[0].title;\n // let posterURL = response.results[0].poster_path;\n // let rating = response.results[0].vote_average;\n // let releaseDate = response.results[0].release_date;\n // let summary = response.results[0].overview;\n // let genreID = response.results[0].genre_ids[0];\n let movieID = response.results[0].id;\n let streaming = whereToWatch(movieID);\n // object.entries\n let movie = {\n title: response.results[0].title,\n year: response.results[0].release_date,\n // rated: ????,\n genre: response.results[0].genre_ids[0],\n plot: response.results[0].overview,\n poster:\n \"https://image.tmdb.org/t/p/w500\" + response.results[0].poster_path,\n rating: response.results[0].vote_average,\n streaming: streaming,\n // user: ????,\n // watched: ????\n };\n\n // Poster Path: \"https://image.tmdb.org/t/p/w500\" + POSTER_URL;\n });\n}", "function getMovies(searchText) {\n $.get(\n baseURL + searchName + searchText + \"&type=movie\",\n (respuesta, estado) => {\n if (estado === \"success\") {\n let movies = respuesta.Search;\n let output = \"\";\n $.each(movies, (i, movie) => {\n output += `\n <div class=\"col-md-3\">\n <div class=\"well text-center\">\n <img class=\"imgSearch\" src=\"${movie.Poster}\">\n <h5>${movie.Title}</h5>\n <a onclick=\"selectedMovie('${movie.imdbID}')\" class=\"btn btn-info\" href=\"#\">Mas info</a>\n </div>\n </div>\n \n `;\n });\n\n result.html(output);\n }\n }\n );\n}", "function getSearchedMovie(movie) {\n spinner.style.display = \"block\";\n fetch('https://www.omdbapi.com/?apikey=da783fad&s=' + movie + '')\n .then((response) => response.json())\n .then(function (movies) {\n //Make sure the array is empty when doing a new search\n globalMovieArray.length = 0;\n globalMovieArray.push(movies);\n movieInformation.classList.remove('hidden')\n displayMovies(movies)\n })\n .catch(function (error) {\n let errorMessage = `<div class=\"messageNoMoviesFound\"><p>Movie not found! Please try again</p></div>`\n movieInformation.innerHTML = errorMessage\n })\n spinner.style.display = \"block\";\n searchMovie.value = \"\";\n}", "function getMovieList(callback){\n\tconst query = {\n\t\tapi_key: TMDB_API_AUTH.KEY,\n\t\tsort_by: \"release_date.desc\",\n\t\tpage: pageCounter\n\t};\n\t$.getJSON(TMDB_SEARCH_URL_MOVIES_LIST, query, callback);\n}", "function action(movieName) {\n if (movieName === \"\") {\n movieName = \"Mr Nobody\"\n }\n var queryUrl =\n \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\";\n\n axios\n .get(queryUrl)\n .then(function(response) {\n console.log(\n `\n Title: ${response.data.Title}\n Release Year: ${response.data.Year}\n IMDB Ratings: ${response.data.imdbRating}\n Rotten Tomatoes Ratings: ${response.data.Ratings[1].Value}\n Country produced: ${response.data.Country}\n Lanuage: ${response.data.Language}\n Plot: ${response.data.Plot}\n Actors: ${response.data.Actors}\n `\n );\n \n })\n .catch(function(error) {\n console.log(error);\n });\n}", "function movieThis(input) {\n if(input.length < 1) {\n console.log(\"Nothing was searched...\");\n console.log(\"Here! Let me try searching something!\");\n movieThis(\"Mulan\");\n }\n else{\n console.log(\"Searching \" + input + \" on IMDB...\");\n axios.get(\"https://www.omdbapi.com/?t=\" + input + \"&apikey=trilogy\")\n .then(function(response) {\n data = response.data\n var result = {\n Title : data.Title,\n Year : data.Year,\n \"IMDB Rating\" : data.imdbRating,\n Country : data.Country,\n Language : data.Language,\n Plot : data.Plot,\n Actors : data.Actors\n };\n console.log(JSON.stringify(result, null, 2));\n // Asks the user if they want to continue searching\n searchAgain();\n })\n }\n}", "async function getMovie(){\n const movie = movieInput.value\n const movieUrl = `https://api.themoviedb.org/3/search/movie?api_key=${apiKey}&query=${movie}`;\n try{\n const response = await fetch(movieUrl);\n if(response.ok){\n const jsonResponse = await response.json();\n const topResult = jsonResponse.results[0];\n console.log(topResult);\n // render the description of the top result\n renderDescription(topResult);\n // get hero section movie title\n renderHeroMovieTitle(topResult);\n // ger the average vote for movie\n renderHeroMovieStars(topResult);\n // get the image of the top result\n getMovieImages(topResult);\n // get the trailer for the movie\n getMovieTrailer(topResult);\n // get the general info about a movie - for genres\n getMovieInfo(topResult);\n }\n }catch(error){\n console.log(error);\n }\n}", "function getMovies(searchText) {\n\n input = searchText\n\n\n $.ajax({\n url: 'https://api.themoviedb.org/3/search/movie?',\n dataType: 'json',\n type: 'GET',\n data: {\n api_key: api_key,\n lang: lang,\n query: input,\n },\n\n // FUNCTION success: USED TO PRINT IN A HTML PAGE ALL THE DATA FROM API;\n success: function data(data) {\n displayMovie(data);\n },\n\n error: function(data) {\n let movies = data.results;\n\n }\n });\n}", "function getMovies(searchText) {\n $.ajax({\n method: 'Get',\n url: 'http://www.omdbapi.com/?apikey=65a08387&s=' + searchText\n }).done(function (data) {\n let movies = data.Search;\n let output = '';\n $.each(movies, function(index, movie) {\n output += `\n <li>\n <a onclick=\"movieClicked('${movie.imdbID}')\" href=\"#\">\n <img src=\"${movie.Poster}\">\n <h2>${movie.Title}</h2>\n <p>Release Year: ${movie.Year}</p>\n </a>\n </li>\n `;\n });\n $('#movies').html(output).listview('refresh');\n });\n}", "function getMovieInfo() {\n // if no movie entered, default to \"Mr. Nobody\"\n if (userQuery === undefined) {\n userQuery = \"Mr. Nobody\";\n }\n\n axios.get(`http://www.omdbapi.com/?t=${userQuery}&y=&plot=short&apikey=trilogy`)\n .then(function (response) {\n displayMovieInfo(response)\n })\n}", "function movieThis(movie) {\n // if no argument entered, default argument\n if (!argument) {\n movie = \"Mr. Nobody\";\n }\n // search ombd API movie with movie\n axios\n .get(`https://www.omdbapi.com/?t=${movie}&apikey=trilogy`)\n // function to console log response when data is received\n .then(function(response) {\n console.log(\"\\n------------------------------------------\");\n console.log(`Movie Title: ${response.data.Title}`);\n console.log(`Year Released: ${response.data.Year}`);\n console.log(`Actors: ${response.data.Actors}`);\n console.log(`IMBD Rating: ${response.data.imdbRating}`);\n console.log(`Rotten Tomatoes Rating: ${response.data.Ratings[1].Value}`);\n console.log(`Produced in: ${response.data.Country}`);\n console.log(`Language: ${response.data.Language}`);\n console.log(`Plot: ${response.data.Plot}`);\n console.log(\"\\n\");\n })\n // if error, console logs error message\n .catch(function(err) {\n console.error(err);\n })\n}", "function do_search (page) {\n\tvar search_term = $(\"#search_term\").val();\n\tvar source = $(\"#source\").val();\n\tvar source_parameter, results_length, parameters, response_type;\n\tvar pagination_html, row_html;\n\n\t// Clear data of pagination and detail area.\n\tclear_detail_fields();\n\t$(\"#detail_area\").hide();\n\t$(\"#pagination\").html(\"\");\n\n\tif (search_term !== \"\") {\n\t\t// There is a search term.\n\n\t\t// Parameters of the API call:\n\t\t// \ts: search term\n\t\t// \tpage: page of results to retrieve\n\t\tparameters = \"&s=\" + encodeURIComponent(search_term) + \"&page=\" + encodeURIComponent(page);\n\n\t\t// Translate the source field value to the number needed by the API.\n\t\tswitch (source) {\n\t\t\tcase \"2\": source_parameter = \"movie\"; break;\n\t case \"3\": source_parameter = \"episode\"; break;\n\t case \"4\": source_parameter = \"series\"; break;\n\t\t\tdefault: source_parameter = \"\";\n\t\t}\n\n\t\tif (source_parameter !== \"\") {\n\t\t\t// There is a valid source parameter.\n\t\t\tparameters += \"&type=\" + source_parameter;\n\t\t}\n\n\t\t// Loading animation.\n\t\t$(\"#results_table\").html(\"<img src=\\\"img/loading.gif\\\" alt=\\\"Loading...\\\" class=\\\"js_img_loading\\\" />\");\n\n\t\t// AJAX call to OMDb API.\n\t\t$.ajax({\n\t\t\turl: \"https://www.omdbapi.com/?apikey=\" + omdb_api_key + parameters,\n\t\t\tdataType: \"json\",\n\n\t\t\tsuccess: function (response) {\n\t\t\t\t// Do this after successful response from the server.\n\n\t\t\t\tvar last_page;\n\n\t\t\t\t// Clear results area.\n\t\t\t\t$(\"#results_table\").html(\"\");\n\n\t\t\t\tif (response.Response === \"True\") {\n\t\t\t\t\t// There are valid results coming from OMDb.\n\n\t\t\t\t\t// If there are more results than those fetched, show pagination.\n\t\t\t\t\tif (response.totalResults > api_results_per_page) {\n\t\t\t\t\t\tlast_page = Math.ceil(response.totalResults / api_results_per_page);\n\t\t\t\t\t\tpagination_html = \"\";\n\t\t\t\t\t\tfor (i=1; i<=last_page; i++) {\n\t\t\t\t\t\t\tif (i.toString() !== page) {\n\t\t\t\t\t\t\t\t// Add link to page.\n\t\t\t\t\t\t\t\tpagination_html += \"<a href=\\\"javascript:void(0)\\\" class=\\\"pagination_link\\\">\" + i + \"</a>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t// Add current page without link.\n\t\t\t\t\t\t\t\tpagination_html += \"<span id=\\\"pagination_current\\\">\" + i + \"</span>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$(\"#pagination\").html(pagination_html);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Set the message of the results area.\n\t\t\t\t\t$(\"#results_title\").html(response.totalResults + \" results for \\\"\" + search_term + \"\\\":\");\n\n\t\t\t\t\t// Fill in the results area.\n\t\t\t\t\t$.each(response.Search, function(index, element) {\n\n\t\t\t\t\t\t// Add a row in the results table for each retrieved element.\n\t\t\t\t\t\t// Ignore not available fields (value=\"N/A\").\n\n\t\t\t\t\t\trow_html = \"<tr class=\\\"results_row\\\" data-id=\\\"\" + element.imdbID + \"\\\">\";\n\t\t\t\t\t\t\trow_html += \"<td class=\\\"results_poster_cell\\\">\";\n\t\t\t\t\t\t\tif (element.Poster !== \"N/A\") {\n\t\t\t\t\t\t\t\trow_html += \"<img class=\\\"results_poster\\\" src=\\\"\" + element.Poster + \"\\\" alt=\\\"Poster of \" + element.Title + \"\\\" />\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trow_html += \"</td>\";\n\t\t\t\t\t\t\trow_html += \"<td class=\\\"results_title_cell\\\">\" + element.Title + \" (\" + element.Year + \")</td>\";\n\n\t\t\t\t\t\t\t// Set uppercase for the retrieved \"Type\" string.\n\t\t\t\t\t\t\tif (element.Type !== \"\") {\n\t\t\t\t\t\t\t\tresponse_type = element.Type.charAt(0).toUpperCase() + element.Type.slice(1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trow_html += \"<td class=\\\"results_type_cell\\\">(\" + response_type + \")</td>\";\n\t\t\t\t\t\trow_html += \"</tr>\";\n\n\t\t\t\t\t\t$(\"#results_table\").append(row_html);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Results coming from OMDb are not valid.\n\t\t\t\t\t$(\"#results_title\").html(response.Error);\n\t\t\t\t}\n\t\t\t},\n\t\t\terror: function() {\n \t// Do this after error response from the server.\n\n\t\t\t\t// Show error message in results area.\n\t\t\t\t$(\"#results_title\").html(\"Couldn't connect to server.\");\n\t\t\t},\n\n complete: function() {\n \t// Do this after any response from the server.\n\n\t\t\t\t// Remove loading animation.\n\t\t\t\t$(\"#results_table .js_img_loading\").remove();\n\t\t\t}\n\t\t});\n\t}\n\telse {\n\t\t// No search term.\n $(\"#results_title\").html(\"Please enter your search.\");\n\t}\n}", "function getMovies(myInput) {\n axios.get('https://www.omdbapi.com?s=' + myInput + '&apikey=5623718')\n .then((response) => {\n let movies = response.data.Search;\n let output = '';\n $.each(movies, (index, movie) => {\n output += `\n <a href=\"movieresult.html?${movie.imdbID}\" class=\"nav-link text-white\">\n <div class=\"movie_card\" style=\"width: 18rem;margin: 0 auto;>\n <div class=\"card h-100\">\n <img src=\"${movie.Poster}\" class=\"poster\">\n <div class=\"card-body\">\n <h5>${movie.Title}</h5>\n </div>\n </div>\n </div>\n </a>\n `;\n });\n $('#movies').html(output);\n })\n .catch((err) => {\n console.log(err);\n });\n}", "function movieInfo(userSearch) {\n //If user does not enter any info\n if (userSearch === undefined) {\n userSearch = \"Mr. Nobody\"\n console.log('--------------------')\n console.log('')\n console.log(`If you haven't watched \"Mr. Nobody,\" then you should: http://www.imdb.com/title/tt0485947/. It's on Netflix`)\n } {\n //Call API once user enter search\n axios.get(`http://www.omdbapi.com/?t=${userSearch}&y=&plot=short&apikey=trilogy`)\n .then(function (response) {\n console.log(`Title: ${response.data.Title}`)\n console.log(`Released: ${response.data.Year}`)\n console.log(`The IMDB rating is: ${response.data.imdbRating}`)\n console.log(`The Rotten Tomotoes score is: ${response.data.Ratings[1].Value}`)\n console.log(`Country: ${response.data.Country}`)\n console.log(`Language: ${response.data.Language}`)\n console.log(`Plot: ${response.data.Plot}`)\n console.log(`Actors: ${response.data.Actors}`)\n })\n }\n}", "function searchMovie(req, res, next) {\n fetch(`${API_URL}t=${req.query.movie}&y=&plot=short&r=json`)\n\n//parses the json string on the server\n .then(results => results.json())\n .then((results) => {\n res.movie = results;\n next();\n })\n .catch((err) => {\n res.err = err;\n next();\n });\n}", "function movieSearch(search) {\n console.log(\"Give it a second...\");\n if(search == undefined) {\n search = 'Mr. Nobody';\n }\n var options = {\n url: 'http://www.omdbapi.com/',\n qs: {\n t: search,\n plot: 'short',\n r: 'json',\n tomatoes: 'true'\n }\n }\n request(options, function(error, response, body) {\n if(!error && response.statusCode == 200) {\n //converts body from string type to JSON object\n body = JSON.parse(body);\n console.log('--------------------------------------------------------------');\n console.log('Title: '+ body.Title);\n console.log('--------------------------------------------------------------');\n console.log('Year Released: '+ body.Year);\n console.log('--------------------------------------------------------------');\n console.log('Plot: '+ body.Plot);\n console.log('--------------------------------------------------------------');\n console.log('Countries Released in: '+ body.Country);\n console.log('--------------------------------------------------------------');\n console.log('Languages Released in: '+ body.Language);\n console.log('--------------------------------------------------------------');\n console.log('Actors: '+ body.Actors);\n console.log('--------------------------------------------------------------');\n console.log('IMDB Rating: '+ body.imdbRating);\n console.log('--------------------------------------------------------------');\n console.log('Rotten Tomatoes Rating: '+ body.tomatoRating);\n console.log('--------------------------------------------------------------');\n console.log('Rotten Tomatoes URL: '+ body.tomatoURL);\n console.log('--------------------------------------------------------------');\n\n var movieData = {\n 'Title': body.Title, 'Year Released': body.Year, 'Plot': body.Plot, \n 'Countries Released in': body.Country, 'Languages Released in': body.Language,\n 'Actors': body.Actors, 'IMDB Rating': body.imdbRating,\n 'Rotten Tomatoes Rating': body.tomatoRating, 'Rotten Tomatoes URL': body.tomatoURL\n }\n\n //Passes the movie data to the appendToLog function which appends the data to the log file\n appendToLog(movieData, 'movie');\n }\n })\n}", "function OMDBKeywordQuery(keyword, apiKey) {\n var keywordURL =\n \"https://www.omdbapi.com/?s=\" + keyword + \"&apikey=\" + apiKey;\n\n //This code performs the ajax query call based on the URL and returns response object respKeywordMovie\n $.ajax({\n url: keywordURL,\n method: \"GET\",\n }).then(function (respKeywordMovie) {\n var countRowDiv3 = 0;\n var rowDiv3 = $(\"<div>\").attr(\"class\", \"row\");\n\n //if the object returns an error call noResultsFound function\n if (respKeywordMovie.Error === \"Movie not found!\") {\n noResultsFound($(\"#movieContent\"));\n }\n\n //this opens the collapsible div when the results are rendered\n instance.open(0);\n\n //badge count\n $(\"#MovieCount\").text(respKeywordMovie.Search.length);\n\n //execite a function for each index of respKeywordMovie.Search object\n $.each(respKeywordMovie.Search, function (index) {\n //The below if statement, else statement and code within's purpose is to render only four objects with col classes into a div with class row. Once four have been rendered a new row div is created.\n //this if statement runs the code within for the first four indexes (indexes: 0,1,2,3) of the response object.\n if (countRowDiv3 < 3) {\n var colDiv3 = $(\"<div>\").attr(\"class\", \"col s12 m6 l4\");\n\n rowDiv3.append(\n colDiv3.append(\n $(\"<p>\").text(\"Title: \" + respKeywordMovie.Search[index].Title)\n )\n );\n rowDiv3.append(\n colDiv3.append(\n $(\"<p>\").text(\"Type: \" + respKeywordMovie.Search[index].Type)\n )\n );\n rowDiv3.append(\n colDiv3.append(\n $(\"<p>\").text(\n \"Release year: \" + respKeywordMovie.Search[index].Year\n )\n )\n );\n rowDiv3.append(\n colDiv3.append(\n $(\"<img>\").attr({\n src: respKeywordMovie.Search[index].Poster,\n alt: \"Movie Poster\",\n })\n )\n );\n\n countRowDiv3++;\n //This else runs once the countRowDiv variable hits four.\n } else {\n $(\"#movieContent\").append(rowDiv3);\n rowDiv3 = $(\"<div>\").attr(\"class\", \"row\");\n countRowDiv3 = 0;\n }\n //This line of code exists here because if the response object returns a number of results that is not divisible by 4 a row is never completely filled and doesn't get appended to bookcontent div by else statment.\n $(\"#movieContent\").append(rowDiv3);\n });\n });\n}", "function omdb(input) {\n if (!input) {\n input = \"Mr. Nobody\";\n };\n\n if (input === \"Mr. Nobody\") {\n console.log(\"*** If you haven't watched 'Mr. Nobody,' then you should: http://www.imdb.com/title/tt0485947/ ***\");\n console.log(\"*** It's on Netflix! ***\");\n };\n\n let queryURL = \"http://www.omdbapi.com/?t=\" + input + \"&apikey=trilogy&plot=short&tomatoes=true\";\n\n axios.get(queryURL).then(function(response) {\n console.log(divider + \"\\nTitle: \" + response.data.Title + \"\\nRelease Year: \" + response.data.Year + \"\\nIMDB Rating: \" + response.data.imdbRating\n + \"\\nRotten Tomatoes Rating: \" + response.data.Ratings[1].Value + \"\\nCountry: \" + response.data.Country + \"\\nLanguage: \" +\n response.data.Language + \"\\nPlot: \" + response.data.Plot + \"\\nActors: \" + response.data.Actors + divider);\n });\n}", "function findMovie() {\n\n var searchTerm = process.argv[3]; //input name of movie\n // query for omdb\n queryUrl = 'http://www.omdbapi.com/?t=' + searchTerm + '&y=&plot=short&r=json&tomatoes=true';\n //request data only if there are no errors\n request(queryUrl, function(error, response, body) {\n if (!error && response.statusCode == 200) {\n console.log(\"========================\");\n // title of movie & release year\n console.log(\"The title of the movie is \" + JSON.parse(body)['Title'] + \".\" + \" The release year of \" + JSON.parse(body)['Title'] + \" is \" + JSON.parse(body)['Year'] + \".\");\n // rating & country & language\n console.log(\"It has an imdb rating of \" + JSON.parse(body)['imdbRating'] + \".\" + \" Filmed in: \" + JSON.parse(body)['Country'] + \".\" + \" Language: \" + JSON.parse(body)['Language'] + \".\");\n // plot\n console.log(\"Plot: \" + JSON.parse(body)['Plot'] + \".\");\n // actors\n console.log(\"Actors in the movie: \" + JSON.parse(body)['Actors'] + \".\");\n // rotten tomatoes rating\n console.log(\"Rotten tomatoes rating is: \" + JSON.parse(body)['tomatoRating']);\n // rotten tomatoes URL\n console.log(\"Rotten tomatoes URL: \" + JSON.parse(body)['tomatoURL']);\n console.log(\"========================\");\n }\n })\n}", "function movieThis(movieName) {\n\n // Default set as Mr. Nobody if user doesn't specify a movie.\n if (movieName == \"\") {\n movieName = \"Mr. Nobody\"\n }\n // Call to and responce from omdb API\n axios.get(\"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=full&tomatoes=true&apikey=\" + process.env.MOVIE_SECRET)\n .then(function (response) {\n\n var data = response.data\n\n console.log(\"-------------------------------\");\n console.log(\"* Title: \" + data.Title);\n console.log(\"* Year: \" + data.Year);\n console.log(\"* IMDB: \" + data.Ratings[0].Value);\n console.log(\"* Roten Tomatoes: \" + data.Ratings[1].Value);\n console.log(\"* Country: \" + data.Country);\n console.log(\"* Language: \" + data.Language);\n console.log(\"* Plot: \" + data.Plot);\n console.log(\"* Actors: \" + data.Actors);\n console.log(\"---------------------------------\");\n })\n .catch(function (err) {\n console.log(err);\n });\n}", "async function getMovieResults({ movieId, title }) {\n await logger(`finding: ${title}`);\n\n const parameters = querystring.stringify({\n movieId,\n apiKey: config.radarr.apiKey,\n });\n\n const searchUrl = `${_getRadarrApiPath()}/release?${parameters}`;\n return await getData({ uri: searchUrl });\n}", "function findMovie(title){\n\tvar title = processInput(title);\n\n\tif(title != undefined){\n\t\tvar formattedTitle = title.replace(\" \", \"+\");\t\n\t\tvar query = \"http://www.omdbapi.com/?t=\" + formattedTitle;\n\n\t\trequest(query, function (error, response, body) {\n\t\t\tif(error){\n\t\t\t\tconsole.log(error);\n\t\t\t} else{\n\t\t\t\tvar movieTitle = JSON.parse(body).Title;\n\t\t\t\tvar year = JSON.parse(body).Year;\n\t\t\t\tvar imdbRating = JSON.parse(body).Ratings[0].Value;\n\t\t\t\tvar country = JSON.parse(body).Country;\n\t\t\t\tvar language = JSON.parse(body).Language;\n\t\t\t\tvar plot = JSON.parse(body).Plot;\n\t\t\t\tvar actors = JSON.parse(body).Actors;\n\t\t\t\tvar rottenRating = JSON.parse(body).Ratings[1].Value;\n\t\t\t\tvar rottenURL = \"blah\";\n\n\t\t\t\tvar output = \"\\nMovie Title: \" + movieTitle + \"\\nYear Released: \" \n\t\t\t\t\t+ year + \"\\nCountry Filmed: \" + country + \"\\nLanguages Released In: \"\n\t\t\t\t\t + language + \"\\nActors: \" + actors + \"\\n\\nPlot: \" + plot + \"\\n\\nIMDB Rating: \" \n\t\t\t\t\t + imdbRating + \"\\nRotten Tomatoes Rating: \" + rottenRating + \"\\nRotten Tomatoes URL: \" \n\t\t\t\t\t + rottenURL;\n\n\t\t\t\tconsole.log(output);\n\t\t\t\twriteFS(output);\n\n\t\t\t};\n\t\t});\n\t};\n}", "function getMovie(search_movie) {\n bg.innerHTML = `<img id=\"img1\" crossOrigin=\"anonymous\" src='${\n movies[search_movie.id].Poster\n }' width=\"100%\"></img>`;\n\n img = document.querySelector('img');\n title_image.innerHTML = bg.innerHTML;\n header.innerText = movies[search_movie.id].Title;\n changeBackgroundColor();\n search_results.innerHTML = '';\n search_box.value = '';\n let movie = fetch(\n `https://www.omdbapi.com/?i=${\n movies[search_movie.id].imdbID\n }&plot=full&apikey=${key}`\n )\n .then((response) => response.json())\n .then((json) => {\n summary.innerText = json.Plot;\n\n //GENERATING A LINK TO THE MOVIE ON IMDB\n score_wrapper.children[0].href = `https://www.imdb.com/title/${json.imdbID}`;\n score_wrapper.children[0].children[1].innerText =\n json.Ratings[0].Value;\n\n //GENERATING A LINK TO THE MOVIE ON ROTTEN TOMATOES\n try {\n let formatted_title_rotten = json.Title.split(' ')\n .join('_')\n .toLowerCase();\n score_wrapper.children[1].href = `https://www.rottentomatoes.com/m/${formatted_title_rotten}`;\n score_wrapper.children[1].children[1].innerText =\n json.Ratings[1].Value;\n } catch {\n score_wrapper.children[1].href = 'javascript:;';\n score_wrapper.children[1].children[1].innerText = 'N/A';\n }\n //GENERATING A LINK TO THE MOVIE ON METACRITIC\n try {\n let formatted_title_metacritic = json.Title.split(' ')\n .join('-')\n .toLowerCase();\n score_wrapper.children[2].href = `https://www.metacritic.com/movie/${formatted_title_metacritic}`;\n score_wrapper.children[2].children[1].innerText =\n json.Ratings[2].Value;\n } catch {\n score_wrapper.children[2].href = 'javascript:;';\n score_wrapper.children[2].children[1].innerText = 'N/A';\n }\n\n stats.style.display = 'flex';\n start_screen.style.display = 'none';\n title_image.style.display = 'block';\n score_wrapper.style.display = 'flex';\n\n stats.children[1].innerText = json.Director;\n stats.children[3].innerText = json.Production;\n stats.children[5].innerText = json.Released;\n stats.children[7].innerText = json.Genre;\n stats.children[9].innerText = json.Country;\n stats.children[11].innerText = json.Awards;\n stats.children[13].innerText = json.BoxOffice;\n\n let actor_names = json.Actors.split(', ');\n actors.innerHTML = '<div class=\"starring\"><h1>Starring</h1></div>';\n for (let actor of actor_names) {\n let formatted_name = actor.split(' ').join('-').toLowerCase();\n let actor_data = fetch(\n `https://api.tvmaze.com/search/people?q=${formatted_name}`\n )\n .then((actor_response) => actor_response.json())\n .then((actor_json) => {\n actors.innerHTML += `<div class=\"actor-image\"><img src=\"${actor_json[0].person.image.medium}\"><p>${actor_json[0].person.name}</p></div>`;\n })\n .catch((error) => {\n //DO NOTHING BUT BAD DATA IS HIDDEN\n });\n }\n });\n }", "function searchShow(query) {\n var url = `https://api.tvmaze.com/search/shows?q=${query}`;\n fetch(url)\n // .then(response => response.json())\n .then(function(response){\n if(response.ok){\n return response.json();\n }\n else{\n console.log('Unable to connect to tvmaze');\n }\n })\n .then((jsonData) => {\n // gets specific string from array\n if(jsonData != null){\n var movieInfoList = jsonData.map((element) => ({\n movieId: element.show.id ? element.show.id : 0, \n movieName: element.show.name ? element.show.name : \"\", \n imgLink: element.show.image ? element.show.image.medium : \"\"\n }));\n }\n renderResults(movieInfoList);\n \n })\n .catch((error) => {\n //console.log('error', error);\n });\n}", "function getMovieInfo(movie) {\n // If no movie is provided, get the deets for Mr. Nobody\n if (movie === \"\") {\n movie = \"Mr. Nobody\";\n }\n // Variable to hold the query URL\n let queryURL = \"http://www.omdbapi.com/?t=\" + movie + \"&y=&plot=short&apikey=trilogy\";\n // API request\n request(queryURL, function (error, response, body) {\n let movieResponse = JSON.parse(body);\n if (error || movieResponse.Response == \"False\") {\n console.log(\"Something went wrong. Try again?\", error);\n }\n else {\n let arrLog = [];\n arrLog.push(\"Title: \" + movieResponse.Title);\n arrLog.push(\"Year: \" + movieResponse.Year);\n arrLog.push(\"IMDB Rating: \" + movieResponse.Ratings[0].Value);\n arrLog.push(\"Rotten Tomatoes Rating: \" + movieResponse.Ratings[1].Value);\n arrLog.push(\"Produced in: \" + movieResponse.Country);\n arrLog.push(\"Language: \" + movieResponse.Language);\n arrLog.push(\"Plot: \" + movieResponse.Plot);\n arrLog.push(\"Actors: \" + movieResponse.Actors);\n arrLog.push(logSeparator);\n logAndStoreResults(arrLog);\n }\n });\n}", "function getMovies(searchText) {\n axios\n .get(\"https://www.omdbapi.com/?s=\" + searchText + \"&apikey=bfae7d3\")\n .then(res => {\n //Setting User Serach to Data From API\n let movies = res.data.Search;\n\n //Initial State\n let output = \"\";\n\n // Using jQuery 'each()' function to loop through movies data pulled from API.\n $.each(movies, (index, movie) => {\n output += `\n <div class=\"col-md-4 \">\n <div class=\"card mb-3\">\n <img class=\"card-img-top\" src=\"${\n movie.Poster\n }\" alt=\"Sorry Img Not Available At The Moment\" style=\"border-radius: 5px\">\n <div class=\"card-body\">\n <h5 class=\"card-title text-center\">${\n movie.Title\n }</h5>\n <a onclick=\"movieSelected('${\n movie.imdbID\n }')\" class=\"btn btn-primary d-flex text-center justify-content-center\" href=\"#\">Movie Deails</a>\n </div>\n </div>\n </div>\n `;\n });\n\n // Rendering to out Movies div\n $(\"#movies\").html(output);\n })\n //Checking for Any Error\n .catch(err => {\n console.log(err);\n });\n}", "function search() {\n\tevent.preventDefault();\n\tvar response_text;\n\tvar title = document.getElementById(\"title\").value;\n\tif (!title)\n\t\tdocument.getElementById(\"searchResults\").innerHTML = \"You must enter a title!\";\n\telse {\n\t\tvar URL = \"http://www.omdbapi.com/?s=\" + title;\n\t\tvar httpRequest = createHttpRequestObject(); \n\t\thttpRequest.onreadystatechange = function() {\n\t\t\tif (httpRequest.readyState != 4) {\n\t\t\t\treturn; \n\t\t\t}\n\t\t\tif (httpRequest.readyState === 4 && httpRequest.status === 200) {\n\t\t\t\tresponse_text = JSON.parse(httpRequest.responseText);\n\t\t\t\tdisplay(response_text);\n\t\t\t} else {\n\t\t\t\talert('There was a problem with the request.'); \n\t\t\t}\n\n\t\t}\n\t\thttpRequest.open(\"GET\", URL, true);\n\t\thttpRequest.send();\n\t}\n}", "async function movieThis(searchFor) {\n\n // console.log(\"Inside movieThis()\");\n\n //Store movie name taken from file\n let movie = searchFor;\n\n //If 'movie' is null then prompt user for movie name\n if (movie === \"\") {\n\n // Prompt to get artist name from user input\n const movieResponse = await getMovieName();\n\n //Get movie name from user response\n movie = movieResponse.movie;\n }\n\n let queryUrl = `http://www.omdbapi.com/?t=${movie}&y=&plot=short&apikey=trilogy`;\n // console.log(\"queryUrl: \" + queryUrl);\n\n // Then run a request with axios to the OMDB API with the movie specified\n axios\n .get(queryUrl)\n .then(function (response) {\n\n console.log(\"\\n-------------------------------------------------------\\n\");\n\n //Check if omdb server response is null\n if (response.data === \"\") {\n console.log(\"Movie not found !!\");\n return;\n }\n\n console.log(`Title of the movie: ${response.data.Title}`);\n console.log(`Year the movie came out: ${response.data.Year}`);\n console.log(`IMDB Rating of the movie: ${response.data.imdbRating}`);\n console.log(`Rotten Tomatoes Rating of the movie: ${response.data.Ratings[1].Value}`);\n console.log(`Country where the movie was produced: ${response.data.Country}`);\n console.log(`Language of the movie: ${response.data.Language}`);\n console.log(`Plot of the movie: ${response.data.Plot}`);\n console.log(`Actors in the movie: ${response.data.Actors}`);\n\n //Call restartApp() to restart the app if user wishes to\n restartApp();\n })\n .catch(function (err) {\n console.log(err);\n });\n\n} //End of movieThis()", "function getOmdb(){\n\n// If the user doesn't type a movie in, the program will output data for the movie 'Mr. Nobody.'\n\tif (userInput === undefined){\n\t\tuserInput = \"Mr. Nobody\"\n\t}\n\tvar movieName = userInput;\n\trequest(\"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=trilogy\", function(error, response, body) {\n\n\t\tif (!error && response.statusCode === 200) {\n\t\t\tconsole.log(\"Title: \" + JSON.parse(body).Title);\n\t\t\tconsole.log(\"Year: \" + JSON.parse(body).Year);\n\t\t\tconsole.log(\"IMDB Rating: \" + JSON.parse(body).imdbRating);\n\t\t\tconsole.log(\"Rotten Tomatoes score: \" +JSON.parse(body).Ratings[1].Value);\n\t\t\tconsole.log(\"Country: \" + JSON.parse(body).Country);\n\t\t\tconsole.log(\"Language: \" + JSON.parse(body).Language);\n\t\t\tconsole.log(\"Plot: \" + JSON.parse(body).Plot);\n\t\t\tconsole.log(\"Actors: \" + JSON.parse(body).Actors);\n\t\t}\n\t});\n}", "function movieDisplay(movieTitle) {\n // console.log(\"Movie Display Function\");\n var queryURL = `http://www.omdbapi.com/?t=${movieTitle}&y=&plot=short&apikey=trilogy`\n // console.log(queryURL);\n\n request(queryURL, function (error, response, body) {\n if (!error && response.statusCode === 200) {\n\n var movieData = JSON.parse(body);\n\n console.log(`Title:${movieData.Title}\\n` +\n `Release Year: ${movieData.Year}\\n` +\n `IMDB Rating: ${movieData.imdbRating}/10\\n` +\n `Rotten Tomatoes Rating: ${movieData.Ratings[1].Value}\\n` +\n `Production Location: ${movieData.Country}\\n` +\n `Movie Language(s): ${movieData.Language}\\n` +\n `Plot: ${movieData.Plot}\\n` +\n `Actors: ${movieData.Actors}\\n`\n )\n }\n\n })\n}", "function searchMovies(movies){\n console.log(\"searching for:\", movies);\n axios.get(generateApiUrl('search/movie'))\n .then( (response) => {\n console.log(response);\n })\n .catch((err) => {\n console.error(err);\n });\n}", "function searchMovies(searchType, movie) {\n const url = `http://www.omdbapi.com/?t=${movie}&y=&plot=short&apikey=trilogy`;\n axios.get(url).then(\n function (response) {\n let data = \"\";\n //console.log(response.data);\n if (response.data !== null) {\n\n console.log(`Movie Title: ${response.data.Title}`);\n console.log(`Year Release: ${response.data.Year}`);\n console.log(`Imdb Rating: ${response.data.imdbRating}`);\n //response.data.Ratings.filter(\"\")\n let rott = \"\";\n if (Object.values(response.data.Ratings).length > 1) {\n rott = Object.values(response.data.Ratings[1]).join(\": \");\n\n } else {\n rott = \"Rotten tomatoes: not rated yet\";\n }\n console.log(rott);\n console.log(`Country: ${response.data.Country}`);\n console.log(`Languages: ${response.data.Language}`);\n console.log(`Plot: ${response.data.Plot}`);\n console.log(`Main Cast: ${response.data.Actors}`);\n console.log(`------------------------------------------------------`);\n rott = rott.split(\":\");\n data = `{\"${searchType} ${movie}\":{\n \"Movie Title\": \"${response.data.Title}\"\n \"Year Release\": \"${response.data.Year}\",\n \"Imdb Rating\": \"${response.data.imdbRating}\",\n \"${rott[0]}\":\"${rott[1]}\",\n \"Country\": \"${response.data.Country}\",\n \"Languages\": \"${response.data.Language}\",\n \"Plot\": \"${response.data.Plot}\",\n \"Main Cast\": \"${response.data.Actors}\"\n },`\n } else {\n console.log(\"movie not found\");\n }\n\n logData(data);\n }\n ).catch(err => {\n console.log(`Oh oh, something went wrong...${err}`);\n continueMenu();\n });\n}", "function omdb(input) {\n if (!input) {\n input = \"Mr. Nobody\";\n }\n input = input.replace(' ', '+');\n var queryUrl = \"http://www.omdbapi.com/?t=\" + input + \"&y=&plot=short&apikey=trilogy\";\n\n console.log(queryUrl);\n\n request(queryUrl, function (error, response, body) {\n var data = JSON.parse(body)\n var movie = [];\n // If the request is successful\n if (!error && response.statusCode === 200) {\n\n movie.push({\n \"Title\": data.Title,\n \"Release Year\": data.Year,\n \"IMDB Rating\": data.imdbRating,\n \"Rotten Tomatoes Rating\": data.Ratings[1].Value,\n \"Country\": data.Country,\n \"Language\": data.Language,\n \"Plot\": data.Plot,\n \"Actors\": data.Actors\n\n })\n\n console.log(\"Title: \" + data.Title)\n console.log(\"Release Year: \" + data.Year);\n console.log(\"IMDB Rating: \" + data.imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + data.Ratings[1].Value);\n console.log(\"Country: \" + data.Country);\n console.log(\"Language: \" + data.Language);\n console.log(\"Plot: \" + data.Plot);\n console.log(\"Actors: \" + data.Actors);\n\n logData(movie);\n\n }\n\n })\n}", "function searchOMDb() {\n // vars to build url string for axios:\n var movieTitle = \"\";\n var OMDBkey = keys.omdb.key; //key stored in gitignored .env file, ref'd thru keys.js\n\n /* if nothing is entered after the 'movie-this' command, Jaco Van Dormael's criminally-underrated \n surrealist sci-fi masterpiece 'Mr. Nobody' will be assigned to the movieTitle var by default */\n if (input[1] === undefined) {\n movieTitle = \"Mr. Nobody\";\n } else {\n movieTitle = input.slice(1).join(\" \"); //otherwise the title will be built by joining the rest of the inputs into a string with each item separated by a space\n }\n\n //axios request:\n axios.get(\"http://www.omdbapi.com/?t=\" + movieTitle + \"&y=&plot=short&apikey=\" + OMDBkey).then(\n function(response) { \n \n if (response.data.Title === undefined) { //checks if first item in the return array(in this case, 'Title', is undefined; defaults out with a message if so)\n console.log(movieBumpers);\n console.log(\"Sorry, I don't know that movie! Have you tried the Lost Films subreddit @ https://www.reddit.com/r/Lost_Films/ ?\");\n console.log(movieBumpers);\n return;\n }\n\n //successful query returns block of console logs with strings formatted for readability(in the terminal, anyway)\n console.log(movieBumpers);\n console.log(beginBold + \"Title: \" + endBold + response.data.Title);\n console.log(beginBold + \"Release year: \" + endBold + response.data.Year);\n console.log(beginBold + \"IMDb user rating(out of 10): \" + endBold + response.data.imdbRating);\n console.log(beginBold + \"RottenTomatoes score(out of 100%): \" + endBold + response.data.Ratings[1].Value); //<- well this one took a lot of trial and error to figure out how to reference....\n console.log(beginBold + \"Country of production: \" + endBold + response.data.Country);\n console.log(beginBold + \"Language: \" + endBold + response.data.Language);\n console.log(beginBold + \"Plot synopsis: \" + endBold + response.data.Plot);\n console.log(beginBold + \"Starring: \" + endBold + response.data.Actors);\n console.log(movieBumpers);\n\n logFile(\"\\nOMDb search returned: \" + response.data.Title + \", \" + response.data.Year); //pass some of the data as an argument to logFile function which will add it to log.txt\n }\n );\n}", "function Omdb(key) {\n // store key as part of base url\n this.url = \"http://www.omdbapi.com/?apikey=\" + key;\n\n this.search = function(title, callback) {\n // do a generic search against the api based on the title given\n request(this.url + \"&s=\" + title, function(error, response, body) {\n // send back parsed \"Search\" array\n callback(JSON.parse(body).Search);\n });\n };\n\n this.get = function(title, callback) {\n // do a specific search against the api\n request(this.url + \"&t=\" + title, function(error, response, body) {\n // send back the movie object\n callback(JSON.parse(body));\n });\n };\n}", "function movieinfo() {\n \n var queryURL = \"http://www.omdbapi.com/?t=rock&apikey=//!InsertKey\";\n // Creating an AJAX call for the specific movie \n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function(response) {\n console.log(response);\n }\n)}", "function selectMovies() {\n\n var type = Session.get('type');\n var search = Session.get('search');\n var sort = Session.get('sort');\n var filter = Session.get('filter') || {};\n\n\n\n // Update scroll position when the query changes -----------------------------\n var instantaneaousRepositionning = false;\n var query = [type, search, sort, filter.genre].join('|');\n if (query !== queryCache) {\n scroll = 0;\n scrollTo(0, 600);\n queryCache = query;\n instantaneaousRepositionning = true;\n }\n\n\n // TODO Loading icons, what happens if you search <2 letters\n\n\n // Load Data -----------------------------------------------------------------\n\n if (search.length > 1 && type === 'suggested') {\n // Global Search\n searchMovies(search, filter, sort);\n } else {\n lookupMovies(type, search, sort, filter, instantaneaousRepositionning);\n }\n}", "function movie(b) {\n console.log(\"*******omdb*******\");\n\n var movieName = \"\";\n //if called from text function b will hold moviename else will be empty\n if (b == \"\") {\n // default movie\n if (term.length == 3)\n movieName = \"Mr. Nobody\";\n else {\n // get console song input\n for (var i = 2; i < term.length; i++) {\n if (i > 2 && i < term.length)\n movieName = movieName + \"+\" + term[i];\n }\n }\n } else\n movieName = b;\n\n // api call\n var url = \"http://www.omdbapi.com/?t=\" + movieName + \"&y=&plot=short&apikey=40e9cece\";\n\n request(url, function(error, response, body) {\n if (!error && response.statusCode === 200) {\n result = JSON.parse(body);\n //console.log(result);\n //Title\n console.log(\"Title: \" + result.Title);\n //Year\n console.log(\"Year: \" + result.Year);\n //IMDB Rating\n console.log(\"IMDB Rating: \" + result.Ratings[0].Value);\n //RT rating\n if (typeof result.Ratings[1] != \"undefined\")\n console.log(\"Rotten Tomatoes Rating: \" + result.Ratings[1].Value);\n else\n console.log(\"No Rotten Tomatoes Rating.\");\n //Country Produced\n console.log(\"Produced In: \" + result.Country);\n //Plot\n console.log(\"Plot: \" + result.Plot);\n //Actors\n console.log(\"Actors / Actresses: \" + result.Actors);\n\n console.log(\"*****end omdb*****\");\n }\n if (error) {\n console.log(error);\n }\n });\n} //end movie", "function searchMovie(imdbID){\n\t\tif(imdbID=\"undefined\")\n\t\t{\n\t\talert(\"Please Enter imdbID , from search page\");\n\t\tvar url=\"http://www.omdbapi.com/?i=tt1935859&apikey=6c3a2d45\";\n\t\t\t$http.get(url).then(function success(response){\n\t\tvalue.movies=response;\n\t\tconsole.log(response);\n\n}, function error(err) {\n\n})\n\t\t}\n\t\telse\n\t\t\n\t\tvar url=\"http://www.omdbapi.com/?i=\" + imdbID + \"&apikey=6c3a2d45\"\n\t\t$http.get(url).then(function success(response){\n\t\tvalue.movies=response;\n\t\tconsole.log(response);\n\n}, function error(err) {\n\n})\n\t\t\n\t\n\t\t\n\t\t\n\t\t\n}", "function movieThis(movie){\n //console.log(\"Movie This\");\n\n if (movie === undefined){\n movie = \"Mr. Nobody\";\n }\n //else movie = inputs[3];\n\n axios.get(\"http://www.omdbapi.com/?t=\" + movie + \"&apikey=\" + omdb).then(\n results => {\n //console.log(results.data);\n console.log(\"Title: \" + results.data[\"Title\"]);\n console.log(\"Year: \" + results.data[\"Year\"]);\n //console.log(\"IMDB Rating: \" + results.data[\"Ratings\"][0][\"Value\"]);\n console.log(\"IMDB Rating: \" + results.data[\"imdbRating\"]);\n console.log(\"Rotten Tomatoes Rating: \" + results.data[\"Ratings\"][1][\"Value\"]);\n console.log(\"Country: \" + results.data[\"Country\"]);\n console.log(\"Language: \" + results.data[\"Language\"]);\n console.log(\"Plot: \" + results.data[\"Plot\"]);\n console.log(\"Actors: \" + results.data[\"Actors\"]);\n },\n err => {\n console.log(err);\n }\n );\n}", "function searchMovies(query, callback) {\n $.ajax({\n url: api.root + \"/search/movie\",\n data: {\n api_key: api.token,\n query: query\n },\n success: function(response) {\n model.browseItems = response.results;\n callback(response);\n }\n });\n}", "function movieSearch(event) {\n var movieSearch = $(\"#movie-input\")\n .val()\n .trim();\n\n event.preventDefault();\n\n if (!movieSearch) return;\n var queryURL =\n \"https://utelly-tv-shows-and-movies-availability-v1.p.mashape.com/lookup?\";\n var queryString = queryURL + \"country=\" + \"us\" + \"&term=\" + movieSearch;\n getMovies(queryString);\n }", "async fetchDataFromApi(movieIndex) {\n const res = await axios.get(\"http://www.omdbapi.com/\", {\n params: {\n apikey: \"b796d8f8\",\n s: `${movieIndex}`,\n },\n });\n if (res.data.Error) {\n return [];\n }\n return res.data.Search;\n }", "function movie (term) {\n\n var url = \"http://www.omdbapi.com/?t=\" + term + \"&y=&plot=short&apikey=trilogy\";\n\n request(url, function(error, response, body) {\n\n // If there were no errors and the response code was 200 (i.e. the request was successful)...\n \n if (!error && response.statusCode === 200) {\n\n // Then we print out the desired info\n console.log(divider);\n console.log(\"Title of the movie: \" + JSON.parse(body).Title);\n console.log(\"The movie's rating is: \" + JSON.parse(body).imdbRating);\n console.log(\"Year the movie came out: \" + JSON.parse(body).Year);\n console.log(\"The country where the movie was produced: \" + JSON.parse(body).Country);\n // unable to search using rottentomato api field.\n console.log(\"Rotten Tomatoes Rating of the movie: \" + JSON.parse(body).tomatoRating);\n console.log(\"Language of the movie: \" + JSON.parse(body).Language);\n console.log(\"Plot of the movie: \" + JSON.parse(body).Plot);\n console.log(\"Actors in the movie: \" + JSON.parse(body).Actors);\n console.log(divider);\n \n }\n \n\n\n});\n\n}", "function lookupSpecificMovie () {\n //Calls upon the OMDB api to get data related to the 2009 movie MR. Nobody\n axios.get('http://www.omdbapi.com/?apikey=trilogy&t=Mr.+Nobody')\n .then(function (response) {\n //Node command\n logOutput('Command: node liri.js movie-this ' + response.data.Title);\n //Title of the movie.\n logOutput('Title: ' + response.data.Title);\n //Year the movie came out.\n logOutput('Year: ' + response.data.Year);\n //IMDB Rating of the movie.\n logOutput('IMDB Rating: ' + response.data.Ratings[0].Value);\n //Rotten Tomatoes Rating of the movie.\n logOutput('Rotton Tomatoes Rating ' + response.data.Ratings[1].Value);\n //Country where the movie was produced.\n logOutput('Country ' + response.data.Country);\n //Language of the movie.\n logOutput('Language ' + response.data.Language);\n //Plot of the movie.\n logOutput('Plot ' + response.data.Plot);\n //Actors in the movie.\n logOutput('Actors ' + response.data.Actors);\n logOutput(\"------------\");\n})\n.catch(function (error) {\n //Logs any errors to the log.txt files\n logOutput(error);\n});\n}", "searchMovie(name) {\n let movieByName = `https://api.themoviedb.org/3/search/movie?api_key=${this.API_KEY}&language=en-US&query=${name}&page=1&include_adult=false`\n\n fetch(movieByName)\n .then(response => {\n return response.json()\n }).then(movie => {\n let fiveMovieName = ''\n\n // Take only five movie within all movie\n if (movie) {\n try {\n fiveMovieName = movie.results.filter((movie, index) => {\n return index < 5\n })\n } catch(err) {\n \n }\n }\n this.getRelatedMovie(fiveMovieName)\n // It pass first movie id to searchMovieById\n this.searchMovieById(movie.results[0].id)\n })\n }", "function movie_find_show_all(url_query, respond){\r\n respond.write(\"<script>document.getElementById('heading').innerHTML ='Movie search All';</script>\");\r\n \r\n var search_input ='<style>input[type=search] {width: 130px;box-sizing: border-box;border: 2px solid #ccc;border-radius: 4px;font-size: 16px;background-color: white; margin:2% auto 2% 40%;background-image:url(\"searchicon.png\");background-position: 10px 10px;background-repeat: no-repeat;padding: 12px 20px 12px 40px;-webkit-transition: width 0.4s ease-in-out;transition: width 0.4s ease-in-out;}input[type=search]:focus {width: 95%;margin:2% auto 2% auto;}/* #searh_input{margin:2% auto 2% 40%;width: 50%;} */</style><input type=\"search\" name=\"search\" placeholder=\"Search..\" id=\"search_input\" onsearch =\"call_db_search()\"><button onclick=\"call_db_search()\" style =\"width:4%; height:7.5%;font-size:2.3em;border-radius:0px;background-color:transparent;\" class=\"btn btn-info\"><i class=\"fas fa-search\"></i></button><br><div id style=\"width:100%;height:7%;background-color:white;color:black;font-size:1em;\"><a href=\"movie_find_show_all\" onclick =\"\">Show all stored movies</a><br><a href=\"delete_all\" onclick =\"\">Delete all stored movies</a></div><hr><script> function call_db_search(){ var search_query = document.getElementById(\"search_input\"); if(search_query.value == \"\"){ document.getElementById(\"heading\").innerHTML =\"Please feel data to be searched for\"; } else{ window.open(\"movie_find_search?\"+search_query.value, \"_self\"); } } </script>';\r\n\r\n\r\n respond.write(search_input);\r\n \r\n \r\n //get data from db\r\n my_sql_conn.connect(function(err){//doing mysql connection handshake aka test connectability\r\n if(err){\r\n // respond.write(\"<p style='width:100%;height:10%;overflow:auto;background-color:white;color:black'>connection error: \"+err+\"</p>\");\r\n //return respond.end();//ending here\r\n }\r\n else{\r\n // respond.write(\"<p>connected to db</p>\");\r\n //respond.end();//ending here\r\n }\r\n \r\n //get data from db\r\n var mysql_db_data_get = \"SELECT * FROM movie_table\"\r\n \r\n \r\n //connect to existing db\r\n \r\n my_sql_conn_db.query(mysql_db_data_get, function(err, results){\r\n \r\n if(err){\r\n // respond.write(\"<p style='width:100%;height:10%;overflow:auto;background-color:white;color:black'>Data adding err (serach) \"+err+\"</p>\");\r\n return ;//respond.end();//ending here\r\n }\r\n else{\r\n // respond.write(\"<p>Data added \"+JSON.stringify(results[0].m_producer)+\"</p>\");\r\n var result = results;\r\n if(results.length ==0){return respond.write(\"<p style='width:100%;height:10%;overflow:auto;background-color:white;color:black'>Could'nt find movie in db, please add some</p>\");}//if record match not found\r\n var extra_results = 1;//skip result duplicate\r\n var count = 0;\r\n for(var i =0; i<=result.length; i++){\r\n db_data_shower();//break if setup is not like this\r\n extra_results =i;//capture duplicate\r\n count = i;\r\n \r\n }\r\n \r\n\r\n \r\n //respond.end();//ending here\r\n }\r\n function db_data_shower(){\r\n if(extra_results==0){return} \r\n respond.write(\"<p style='width:100%;height:10%;overflow:auto;background-color:white;color:black'>Movie Title : \"+result[count].m_title+\" | Movie Director : \"+result[count].m_director+\" | Movie Producer : \"+result[count].m_producer+\" | Movie Producing Company : \"+result[count].m_production_company+\" | Movie filmed Country : \"+result[count].m_country+\" | Movie Starring : \"+result[count].m_actor+\" | Movie Genre : \"+result[count].m_genre+\" | Movie Synopsis : \"+result[count].m_description+\" | Movie Disclaimer : \"+result[count].m_disclaimer+\" | Movie Poster : \"+result[count].m_image+\"<br>\"+ \r\n '<input type=\"button\" style=\"width:40%;height:2em;margin:1% 1% 1% 1%\" onclick=\"window.open(\\'movie_update?'+result[count].movie_id+'\\',\\'_self\\')\" value=\"Update Movie\" class=\"btn btn-primary\"><input type=\"button\" style=\"width:40%;height:2em;margin:1% 1% 1% 1%\" onclick=\"window.open(\\'movie_delete?'+result[count].movie_id+'\\',\\'_self\\')\" value=\"Delete Movie\" class=\"btn btn-primary\"></p>');\r\n }\r\n }\r\n \r\n ); \r\n \r\n });\r\n \r\n}", "async function getMovieQuery(){\n clearFields(); \n const query = document.getElementById('searchbtn')\n const input = query.value; \n if(input === ''){\n showError('Enter a movie')\n }else { \n const QUERY_URL = `https://api.themoviedb.org/3/search/movie?query=${input}&api_key=xxxxxxxxxxxxx&language=en-US&page=1&include_adult=false`; \n const response = await fetch(`${QUERY_URL}`) \n const json = await response.json(); \n showQueryData(json); \n }\n}", "async function search(moviesName) {\r\n\r\n\r\n let response = await fetch(`https://api.themoviedb.org/3/search/movie?api_key=f485e5c815c3b8ee3e79e1f1309aa1b1&language=en-US&query=${moviesName}&page=1&include_adult=false`);\r\n\r\n\r\n if (response.status === 200) {\r\n let data = await response.json();\r\n\r\n showMovise(data.results);\r\n\r\n } else {\r\n\r\n\r\n console.log(response.status); // 400\r\n console.log(response.statusText); // Not Found\r\n\r\n }\r\n}", "function doOMDB() {\n axios.get(\"http://www.omdbapi.com/?t=\" + Search + \"&y=&plot=short&apikey=trilogy\").then(function(response) {\n console.log(\"Title: \" + response.data.Title);\n console.log(\"Release Year: \" + response.data.Year);\n console.log(\"IMBD Rating: \" + response.data.imdbRating);\n console.log(\"Rotten Tomatos: \" + response.data.Ratings[1].Value);\n console.log(\"Country Produced in: \" + response.data.Country);\n console.log(\"Language: \" + response.data.Language);\n console.log(\"Plot: \" + response.data.Plot);\n console.log(\"Actors: \" + response.data.Actors);\n console.log(\"-----------------------------------\");\n });\n}", "function getMovies(url){\n fetch(url, {\n \"method\": \"GET\",\n \"headers\": {\n \"x-rapidapi-host\": \"unogsng.p.rapidapi.com\",\n \"x-rapidapi-key\": \"b2b3be113bmshd0fa0a5597cdfeap1cb263jsnd640f9883203\"\n }\n })\n .then(function(response){\n return response.json()\n })\n .then(function(data){\n // console.log(data);\n if(data.results.length !== 0){\n showMovies(data.results)\n }else {\n main.innerHTML = `<h1 class='noResults'>No Results Found</h1>`\n }\n \n })\n}", "async fetchData(searchTerm) {\n const response = await axios.get('https://api.themoviedb.org/3/search/movie', {\n params: {\n api_key: 'f1aa11a7624dbaf3024fa5751d21ee70',\n query: searchTerm,\n }\n });\n // console.log(response);\n if(response.data.page === undefined){\n return [];\n }\n return response.data.results;\n }" ]
[ "0.7878871", "0.785368", "0.77785176", "0.7773909", "0.77615285", "0.77196485", "0.76891106", "0.7630794", "0.7605803", "0.7590908", "0.758079", "0.7555545", "0.7530774", "0.7530091", "0.7512227", "0.7493034", "0.74816453", "0.7469865", "0.7461724", "0.7441799", "0.73821294", "0.7377024", "0.73577535", "0.7348534", "0.7338781", "0.7321107", "0.7299127", "0.72892976", "0.72842205", "0.7264038", "0.72621065", "0.72431505", "0.7240511", "0.7238303", "0.7233695", "0.72270304", "0.7224589", "0.72208774", "0.72111076", "0.7200539", "0.71992606", "0.7187759", "0.71676105", "0.7163726", "0.71531934", "0.712799", "0.71160007", "0.7105843", "0.7103428", "0.70976186", "0.70787805", "0.7065857", "0.70658416", "0.7063463", "0.7054559", "0.70497966", "0.7047067", "0.7043492", "0.70423514", "0.70415485", "0.7023411", "0.7022436", "0.7013699", "0.700685", "0.7003763", "0.7002324", "0.69985867", "0.69901526", "0.6988403", "0.697636", "0.6973028", "0.6969043", "0.6967288", "0.69649374", "0.69627744", "0.6959606", "0.6955117", "0.694332", "0.694006", "0.69364774", "0.6933313", "0.69295126", "0.692751", "0.6918142", "0.6915304", "0.6915106", "0.6910867", "0.6903576", "0.6900521", "0.6896331", "0.689393", "0.68898106", "0.6884671", "0.68819195", "0.68791735", "0.6872481", "0.686673", "0.6860019", "0.6850729", "0.6848598" ]
0.7667548
7
A default function that reads from random.txt
function doWhatItSays() { fs.readFile("./random.txt", "utf8", (err, data) => { if (err) { console.log(err); } else { const searchTermArray = data.split(","); command = searchTermArray[0]; searchTerm = searchTermArray[1]; executeRequest(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function random() {\n\tfs.readFile(random.txt, \"utf8\", function(err, data){\n\n\t});\n}", "function readRandom() {\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n\n if (error) {\n return console.log(error);\n }\n // Feed info from random into global function for main switch\n var dataArr = data.split(\",\");\n action = dataArr[0];\n input = dataArr[1];\n\n mainSwitch(input);\n });\n}", "function randomize() {\n\tfs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n\t\tvar dataArr = data.split(',');\n\n\t\tif (dataArr[0] === 'spotify-this-song') {\n\t\t\tsong = dataArr[1];\n\t\t\tspotifyIt();\n\t\t}\n\t\telse if (dataArr[0] === 'movie-this') {\n\t\t\tmovie = dataArr[1];\n\t\t\tmovieInfo();\n\t\t}\n\t\telse if (dataArr[0] === 'my-tweets') {\n\t\t\tshowLastTweets();\n\t\t}\n\t});\n}", "function readRandomTxtFile() {\n // read the random.txt file\n fs.readFile('random.txt', 'utf8', function (error, data) {\n // If the code experiences any errors it will log the error to the console.\n if (error) {\n return console.log(error)\n }\n // split the text file data by commas and place into an array\n var dataArr = data.split(',')\n\n // assign command and query values based on the text file data\n userCommand = dataArr[0];\n userQuery = dataArr[1];\n // run the switch case with the given command\n runLiri(userCommand)\n })\n}", "function read() {\n fs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n if (err) {\n return console.log(err);\n }\n var output = data.split(\",\");\n value = output[1];\n commands(output[0], value);\n });\n}", "function randomText() {\n fs.readFile('random.txt', 'utf-8', function read(err, data) {\n var dataArr = data.split(\",\");\n randomSearch = dataArr[1];\n\n switch (dataArr[0]) {\n case \"my-tweets\":\n twitterCommand();\n break;\n case \"spotify-this-song\":\n spotifyCommand();\n break;\n case \"movie-this\":\n movieCommand();\n break;\n case \"do-what-it-says\":\n log();\n break;\n };\n log(\"do-what-it-says was run and returned the following informtion: \");\n });\n}", "function random() {\n\t// This will read the file\n\tfs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n\n\t\t// If the code experiences any errors it will log the error to the console.\n\t\tif (error) {\n\t\t\treturn console.log(error);\n\t\t};\n\n\t\t// split data by commas\n\t\tvar dataArr = data.split(\",\");\n\n\t\t// Save the arguments from the array\n\t\tvar textArg1 = dataArr[0];\n\t\tvar textArg2 = dataArr[1];\n\n\t\t// Check if there are quotations around the second argument\n\t\t// If so, then delete quotation marks.\n\t\t// This is done using character codes because the code in the \n\t\t// text file for \" is different from that typed in js\n\n\t\tif(textArg2.charCodeAt(0)===8221 && textArg2.charCodeAt(textArg2.length - 1) === 8221) \n\t\t{\n\t\t\ttextArg2 = textArg2.substr(1, textArg2.length - 2);\n\t\t};\n\n\t\t// Depending on argument1 call the relevant function\n\t\tswitch(textArg1) {\n\t\t\t// call the myTweets function\n\t\t\tcase \"my-tweets\":\n\t\t\t\t// run the my-tweets function\n\t\t\t\tmyTweets();\n\t\t\t\tbreak;\n\t\t\t// call the spotify function\n\t\t\tcase \"spotify-this-song\":\n\t\t\t\t// run the spotify function\n\t\t\t\tspotifySong(textArg2);\n\t\t\t\tbreak;\n\t\t\t// call the movies function\n\t\t\tcase \"movie-this\":\n\t\t\t\t// run the movies function\n\t\t\t\tmovieInfo(textArg2);\n\t\t\t\tbreak;\n\t\t};\n\t});\n}", "function random() {\n fs.readFile('random.txt', 'utf8', function(error, data) {\n // if the code experiences any errors it will log them to the console\n if (error) {\n return console.log(error);\n } \n var readArr = data.split(',');\n \n action = readArr[0];\n\n liriSwitch(action, readArr[1]);\n });\n}", "function whatever() {\n fs.readFile('random.txt', 'utf8', function(error, data) {\n \t// text converted to array\n var randomArray = data.split(\",\");\n // passes array data to appropriate function\n if (randomArray[0] == 'spotify-this-song') {\n \tspotify(randomArray[1]);\n }\n if (randomArray[0] == 'movie-this') {\n movies(randomArray[1]);\n }\n });\n}", "function random() {\n fs.readFile(\"random.txt\", \"utf8\", function (err, data) {\n if (err) {\n return console.log(err);\n }\n data = data.split(\",\");\n\n // Extract command\n var command = data[0];\n \n if (command === \"spotify-this-song\") {\n getSong(data[1]);\n }\n else if (command === \"movie-this\") {\n getMovie(data[1]);\n }\n else {\n getTweets();\n }\n });\n}", "function doWhatItSays() {\n fs.readFile('random.txt', 'utf8', function (err, data) {\n if (err) throw err;\n console.log(data);\n });\n}", "function read() {\n fs.readFile(\"random.txt\", \"utf8\", function (err, data) {\n if (err) {\n return console.log(err);\n }\n console.log(data);\n song(data);\n });\n}", "function random() {\n\n fs.readFile('./random.txt', 'utf8', function (err, data) {\n if (err) {\n return console.log(err);\n }\n else {\n console.log(data);\n\n //Converts data in text file into array\n var arr = data.split(\",\");\n var value = arr[1];\n // If command name at index[0] matches the string, invoke the function\n if (arr[0] === \"movie-this\") {\n myMovie(value);\n }\n else if (arr[0] === \"spotify-this-song\") {\n mySpotify(value);\n }\n else if (arr[0] === \"concert-this\") {\n myBand(value);\n }\n }\n });\n}", "function randomLiri(){\n\tfs.readFile('random.txt', 'utf8', function(err, data){\n \n if (err){ \n\t\t\treturn console.log(err);\n\t\t}\n var dataArr = data.split(',');\n AskLiri(dataArr[0], dataArr[1]);\n\t});\n}", "function doWhatItSays() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n // If the code experiences any errors it will log the error to the console.\n if (error) {\n return console.log(error);\n }\n var dataArr = data.split(\",\");\n\n var ran = (Math.floor(Math.random() * 6)) * 2;\n\n if (dataArr[ran] === \"spotify-this-song\") {\n spotifyThis(dataArr[ran+1]);\n }\n else if (dataArr[ran] === \"concert-this\") {\n concertThis(dataArr[ran+1]);\n }\n else if (dataArr[ran] === \"movie-this\") {\n movieThis(dataArr[ran+1]);\n }\n });\n}", "function readText() {\n\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n var dataArr = data.split(\",\");\n\n // Calls switch case \n switcher(dataArr[0], dataArr[1]);\n });\n}", "function beRandom(){\n\tfs.appendFile(\"log.txt\", \" (%) Read file named random.txt and \");\n\tvar useful = fs.readFileSync(\"random.txt\");\n\tvar fromFile = useful.toString().split(\",\");\n\taction = fromFile[0];\n\tterm = fromFile[1];\n\treturn;\n}", "function randomChoice(){\n fs.readFile(\"random.txt\", 'utf8', function(error, data) { \n // If the code experiences any errors it will log the error to the console. \n if(error) {\n return console.log(error);\n }else{\n var dataArr = data.split(\",\");\n var userFirstInput = dataArr[0];\n var userSecondInput = dataArr[1];\n\n switch(userFirstInput){\n case \"spotify-this-song\":\n chosenSpotify(userSecondInput);\n break;\n }\n }\n }); \n}", "function readRandom() {\n\t// Reads random.txt file, and assignes the values from the file to the arguments\n\tfs.readFile('random.txt', 'utf8', function(err, data) {\n\t\tif (err) {\n\t\t\treturn console.log(\"Error occured: \" + err);\n\t\t}\n\n\t\tvar dataArr = data.split(',');\n\n\t\targ_1 = dataArr[0];\n\t\targ_2 = dataArr[1];\n\t\tprocess.argv[3] = true; \n\n\t\tstartApp();\n\t})\n}", "function doWhatItSays() {\n fs.readFile('./random.txt', 'utf8', function (error, data) {\n if (error) {\n return console.log(error);\n }\n let fileContent = data.split(\",\");\n let searchString = fileContent[1].replace(/[\"]/g, '');\n switch (fileContent[0]) {\n case \"concert-this\":\n concertThis(searchString);\n break;\n case \"spotify-this-song\":\n spotifyThisSong(searchString);\n break;\n case \"movie-this\":\n movieThis(searchString);\n break;\n default:\n console.log(\"Invalid input\");\n break;\n }\n });\n}", "function showRandom(){\n\tfs.readFile('random.txt', 'utf8', function(err, data){\n\t\tif (err){ \n\t\t\treturn console.log(err);\n\t\t}\n var dataArr = data.split(',');\n UserInputs(dataArr[0], dataArr[1]);\n\t});\n}", "function doRandom() {\n\n fs.readFile(\"random.txt\", 'utf8', function (err, data) {\n console.log(data);\n\n var dataArray = data.split(',');\n request = dataArray[0];\n name = dataArray[1];\n doWhat(request, name);\n\n })\n\n}", "function doIt() {\n\t\tfs.readFile(\"random.txt\", \"UTF8\", function(err,data){\n\t\t\tif(err){\n\t\t\t\tconsole.log(\"Bummer.There's an error: \" + err);\n\t\t\t}\n\n\t\t\tvar dataArray = data.split(',');\n\t\t\tliri(dataArray[0], dataArray[1]);\n\t\t});\n\n\t}", "function doThis() {\n // This block of code will read from the \"random.txt\" file.\n // It's important to include the \"utf8\" parameter or the code will provide stream data (garbage)\n // The code will store the contents of the reading inside the variable \"data\"\n fs.readFile(\"./random.txt\", \"utf8\", function (error, data) {\n // If the code experiences any errors it will log the error to the console.\n if (error) {\n return console.log(error);\n }\n // We will then print the contents of data\n console.log(data);\n // Then split it by commas (to make it more readable)\n var dataArr = data.split(\",\");\n // We will then re-display the content as an array for later use.\n // console.log(dataArr);\n spotifyThis(dataArr[1]);\n // movieThis(dataArr[1]);\n });\n}", "function whateverYouSay() {\n fs.readFile('random.txt', 'utf8', function(error, data) {\n \n if (error) {\n return console.log(error)\n }\n\n});\n}", "function randomTxt() {\n fs.readFile('./random.txt', 'utf8', function(error, data) {\n if(error) {\n return console.log(error);\n }\n\n let dataArr = data.split(',');\n\n if(dataArr[0] === 'spotify-this-song') {\n let textSong = dataArr[1];\n spotifySearch(textSong);\n }\n else if(dataArr[0] === 'concert-this') {\n let textArtist = dataArr[1];\n concertSearch(textArtist);\n }\n else if(dataArr[0] === 'movie-this') {\n let textMovie = dataArr[1];\n movieSearch(textMovie);\n }\n });\n} // ends randomTxt function", "function doWhatItSays() {\r\n fs.readFile(\"./random.txt\", \"utf8\", function (error, data) {\r\n if (error) {\r\n return console.log(error);\r\n }\r\n var dataArr = data.split(\",\");\r\n var songFromTxtFile = dataArr[1];\r\n // console.log(songFromTxtFile);\r\n getSong(songFromTxtFile);\r\n });\r\n}", "function getRandom() {\n fs.readFile(\"random.txt\", \"utf8\", function (error, data){\n if (error){\n return console.log(error);\n } else {\n console.log(data);\n var randomData = data.split(\",\");\n liriRun(randomData[0], randomData[1]);\n }\n // console.log(\"\\r\\n\" +\"testing : \" + randomData[0] + randomData[1]);\n});\n}", "function random() {\n // read random.txt\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n if (error) {\n return console.log(error);\n }\n // split file by ,\n // liri is index 0\n let dataArr = data.split(\",\");\n // query is index 1\n spotifySearch(dataArr[1]);\n })\n}", "function randomTextRead() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n if (error) {\n return console.log(error);\n }\n console.log(data);\n var dataArr = data.split(\",\");\n console.log(dataArr);\n command = dataArr[0];\n song = dataArr[1];\n getSongs();\n console.log(\"------------------------------------------\");\n \n\n })\n}", "function doWhatItSays() {\n fs.readFile(\"random.txt\", \"utf8\", function (err, data) {\n if (err) {\n return console.log(err);\n }\n\n data = data.split(\",\");\n // console.log(data[1]);\n masterFunction(data[0], data[1] || null);\n\n });\n}", "function fsRandom(){\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n\n // If the code experiences any errors it will log the error to the console.\n if (error) {\n return console.log(error);\n }\n\n // console.log(data);\n\n var dataArr = data.split(\",\");\n \n console.log(dataArr[1]);\n \n spotifySong(dataArr[1]);\n });\n}", "function doWhat() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data){\n if (error) {\n return console.log(error);\n }\n \n let text = data.split(\",\");\n spotifyThisSong(text);\n });\n}", "function readFS(){\n\tfs.readFile(\"random.txt\", \"utf8\", function(error, data){\n\t\tif (error){\n\t\t\tconsole.log(error);\n\t\t} else {\n\t\t\tvar randomArr = data.split(\",\");\n\t\t\tvar command = randomArr[0].trim();\n\t\t\tvar title = randomArr[1].trim();\n\t\t\t\n\t\t\tdoIt(command, title);\n\t\t};\n\t});\n}", "function doWhatItSays() {\n fs.readFile(\"./random.txt\", \"utf8\", function (error, contents) {\n if (error) {\n return console.log(\"There was a problem reading the file.\");\n }\n // Write the contents of the file for debugging purposes\n writeLog(contents);\n\n // Split the data into separat pieces\n var dataArray = contents.split(\",\");\n\n // First entry is the user selection\n userChoice = dataArray[0];\n\n // Search item is the second element in the data array\n searchItem = dataArray[1];\n\n // Call the user selection function to process the data\n userSelection();\n })\n}", "function getRead() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n\n // If the code experiences any errors it will log the error to the console.\n if (error) {\n return console.log(error);\n }else {\n console.log(data);\n var dataArr = data.split(\",\");\n runLiri(dataArr[0],dataArr[1]);\n } \n \n });\n }", "function doWhatItSays () {\n fs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n if (err) {\n console.log(\"Ran into an error trying to use random.txt! -- \" + err)\n }\n else {\n console.log(\"raw data: \" + data)\n var randomArray = data.split(\",\");\n \n var command = randomArray[0].trim();\n var argument = randomArray[1].trim();\n\n switch(command) {\n case 'my-tweets':\n retrieveTweets();\n break;\n \n case 'spotify-this-song':\n retrieveSong(argument);\n break;\n\n case 'movie-this':\n retrieveOMDB(argument);\n break;\n }\n }\n })\n}", "function doWhatItSays() {\n\n fs.readFile(\"random.txt\", \"utf8\", function (err, data) {\n if (err) {\n return outputAndLog(err);\n }\n data = data.split(',');\n if (data[0] === \"concert-this\") {\n concertThis(data[1]);\n } else if (data[0] === \"spotify-this-song\") {\n spotifyThisSong(data[1]);\n } else if (data[0] === \"movie-this\") {\n movieThis(data[1]);\n }\n })\n}", "function doWhatItSays() {\n fs.readFile('random.txt', \"utf8\", function (err, data) {\n let dataArray = data.split(\",\");\n userSelect = dataArray[0];\n userInput = dataArray[1];\n spotifyThisSong(userInput);\n });\n}", "function randomCommand() {\n\tfs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n\t\tif (!err) {\t\n\t\tvar output = data.split(',');\n\t\toutputRead = output[1];\n\t\tspotifyReadCommand(outputRead);\n\t\t} \n\t\telse {\n\t\t\tconsole.log(\"Error has occurred\" + err);\n\t\t}\n\t\t\n\t});\n\n}", "function doWhatItSays() {\n\t//using fs it will read the text file \"random.txt\"\n\tfs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n\t\tvar dataArray = data.split(\",\");\n\t\tparameters = dataArray[0];\n\t\tif (dataArray.length > 1) {\n\t\t\tinput = dataArray[1];\n\t\t}\n\t\tspotifyThisSong();\n\t});\n}", "function callTxt() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n\n // If the code experiences any errors it will log the error to the console.\n if (error) {\n return console.log(error);\n }\n // Then split it by commas (to make it more readable)\n var dataArr = data.split(\",\");\n \n //assign command and search based on contents of random.txt\n liriCommand = dataArr[0];\n searchParams = dataArr[1];\n return checkCommand(liriCommand);\n });\n}", "function doThis(){\n \n const fs = require('fs');\n fs.readFile('random.txt', 'utf8', function(error, data) {\n \n if (error) \n {\n return console.log(error);\n }\n\n //getSongInfo(data);\n getMovieInfo(data);\n\n});\n}", "function whatItSays() {\n\n var fs = require(\"fs\");\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n console.log(data);\n if (error) {\n return console.log(error);\n }\n \n var dataArr = data.split(\",\"); // turn string from random.txt into array\n choice(dataArr[0], dataArr[1]);\n\n })\n // fs.appendFile(\"log.txt\", choice, function(err) {\n // if (err) throw err;\n \n // });\n}", "function doWhatItSays() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n if (!error) {\n doWhatItSaysResults = data.split(\",\");\n songLookup(doWhatItSaysResults[0], doWhatItSaysResults[1]);\n } else {\n console.log(\"Error occurred\" + error);\n }\n });\n}", "function doWhat (){\n var fs = require(\"fs\");\n\n// Running the readFile module that's inside of fs.\n// Stores the read information into the variable \"data\"\nfs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n if (err) {\n return console.log(err);\n }\n\n // We will then print the contents of data\n console.log(data);\n\n// // Then split it by commas (to make it more readable)\n// var dataArr = data.split(\",\");\n\n// // We will then re-display the content as an array for later use.\n// console.log(dataArr);\n});\n\n}", "function doWhatItSays() {\n\t\tfs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n\t\t\tvar separateIt = data.split(\",\").pop();\n \t\t\tspotifyThis(separateIt);\n\t\t});\n\t}", "function doThis() {\r\n fs.readFile(\"./random.txt\", \"utf8\", function(error, data) {\r\n\r\n // If the code experiences any errors it will log the error to the console.\r\n if (error) {\r\n return console.log(error);\r\n };\r\n\r\n var dataArr = data.split(' ');\r\n action = dataArr[0];\r\n value = dataArr.slice(1, dataArr.length).join(\" \");\r\n runLIRI();\r\n });\r\n}", "function doWhatItSays(){\n fs.readFile(\"random.txt\", \"utf8\", function(err,data){\n if(err){\n return console.log(err);\n }else{\n dataArray = data.split(\",\");\n request = dataArray[0];\n input= dataArray[1];\n userInput();\n\n }\n\n\n });\n}", "function doWhatItSays () {\n \n fs.readFile('random.txt', \"utf8\", function read(err, data) {\n if (err) throw err;\n var randomArray = data.split(\",\");\n trafficFlow (randomArray[0],randomArray[1]);\n }); \n}", "function randomSearch() {\n \n fs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n if (err) {\n return console.log(err);\n }\n console.log(data);\n data = data.split(\",\");\n SC(data[0], data[1]);\n });\n}", "function doIt() {\n\n fs.readFile('random.txt', 'utf8', function(err, data){\n\n\t\tif (err){ \n\t\t\treturn console.log(err);\n\t\t}\n\n\t\tvar dataArr = data.split(',');\n\n\t\tcommands(dataArr[0], dataArr[1]);\n\t});\n}", "function doWhatItSays() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n\n let dataArr = data.split(\",\");\n\n spotifyThisSong(dataArr[1]);\n\n });\n}", "function random() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n if (error) {\n return console.log(error);\n }\n\n console.log(\"command from random.txt file\")\n\n var array = data.split(\",\");\n command = array[0];\n searchterm = array[1];\n\n runApp(command, searchterm);\n });\n}", "function dothething() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n if (error) {\n return console.log(error);\n }\n var dataArr = data.split(\",\");\n\n if (dataArr[0] === \"spotify-this-song\") {\n var songadoo = dataArr[1].slice(1, -1);\n spotify(songadoo);\n } else if (data[0] === \"band-this\") {\n var bandyband = dataArr[1].slice(1, -1);\n band(bandyband);\n } else if (dataArr[0] === \"movie-this\") {\n var movie = dataArr[1].slice(1, -1);\n movie(movie);\n }\n });\n}", "function doTheThing() {\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n\n // If the code experiences any errors it will log the error to the console.\n if (error) {\n return console.log(error);\n }\n\n // Then split it by commas (to make it more readable)\n var dataArr = data.split(\",\");\n\n spotifyThis(dataArr[1])\n\n\n\n });\n}", "function doWhat() {\n fs.readFile('random.txt', 'utf8', function (err, data) {\n if (err) {\n console.log(err);\n }\n let dataArr = data.trim().split(',');\n \n runCMD(dataArr[0], dataArr[1]);\n\n\n \n\n \n\n })\n}", "function doIt() {\n fs.readFile('random.txt', 'utf8', function(error, data) {\n\n if (error) {\n console.log(error);\n }\n// TODO: parse format of text in random.txt so it will be accepted as a command/input pair and allow for using other commands as well\n console.log(data)\n \n dataArr = data.split(',');\n\n console.log(dataArr[0]);\n\n input = dataArr[1];\n\n switch(dataArr[0]) { // get command in random.txt and compare with commands in switch cases\n case 'my-tweets':\n twitter();\n break;\n\n case 'spotify-this-song':\n spotify(input);\n break;\n\n case 'movie-this':\n movie(input);\n break;\n }\n appendToLog(data);\n });\n\n}", "function getRandom() {\n\n\nfs.readFile(\"./random.txt\", 'utf8' , (err, data) => {\n if (err) throw err;\n console.log(data);\n var execute = data.trim().split(',')\n command = execute[0].slice(2)\n search = execute[1]\n\n run()\n});\n\n}", "function randomSearch() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n\tif (error) {\n\t console.log(error);\n\t} else {\n\t var randArr = data.split(\",\");\n\t console.log(randArr);\n\t searchName = randArr[1];\n\t searchType = randArr[0];\n\t searchCheck();\n\t}\n });\n} // close random search", "function doWhatItSays () {\n fs.readFile(\"random.txt\", \"utf8\", function (err, data) {\n \n // split txt into two\n var dataArray = data.split(\",\");\n var option = (dataArray[0]);\n var parameter = (dataArray[1]);\n console.log(option, parameter);\n\n if (err) {\n console.log(error);\n } \n else if (option == \"movie-this\") {\n movieEntered = parameter;\n omdbThis()\n }\n else if (option == \"spotify-this-song\") {\n songEntered = parameter;\n spotifyThis()\n }\n \n });\n}", "function doWhatItSays() {\n fs.readFile('./random.txt', 'utf8', function (error, data) {\n if (error) {\n console.log(error);\n } else {\n let dataArr = data.split(',');\n if (dataArr[0] === 'spotify-this-song') {\n query = dataArr[1];\n spotifyThisSong();\n }\n if (dataArr[0] === 'movie-this') {\n query = dataArr[1];\n movieThis();\n }\n }\n })\n}", "function readFile() {\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n\n if (error) {\n return console.log(error);\n }\n\n var data = data.split(\",\");\n argument = data[0];\n search = data[1];\n console.log(argument, search);\n\n runSearch(argument, search);\n\n });\n}", "function doWhatItSaysInfo() {\n // console.log(\"do what it says\")\n fs.readFile('random.txt', 'utf8', function (err, data) {\n if (err) {\n return console.log(err + \"has occurred\");\n }\n var dataArray = data.split(',');\n console.log(dataArray);\n if (dataArray[0] !== \"do-what-it-says\") {\n run(dataArray[0], dataArray[1]);\n } else {\n console.log(\"do-what-it-says not valid for random.txt\")\n }\n });\n}", "function doIt() {\n console.log(\"do what it says is called\");\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n if (error) {\n return console.log(error);\n }\n var dataArr = data.split(\",\");\n console.log(dataArr);\n doWhatISay(dataArr[0], dataArr[1]);\n });\n}", "function doSomething(){\n fs.readFile('random.txt', \"utf8\", function(error, data){\n var readText = data.split(',');\n\n spotifySong(readText[1]);\n });\n}", "function doWhatItSays() {\n\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n if (!error) {\n var txt = data.split(\",\");\n songName = txt[1];\n spotifyThisSong();\n \n } else {\n console.log(\"Error occurred\" + error);\n }\n });\n}", "function doWhatItSays() {\n fs.readFile(\"random.txt\", \"utf8\", function (err, data) {\n if (err) {\n return log.info(err)\n };\n var randomRequest = data.split(\",\")[0];\n var randomQuery = data.split(\",\")[1];\n function runCommand() {\n cmd.run(`node liri.js ${randomRequest} ${randomQuery}`)\n }\n runCommand()\n });\n\n}", "function doWhatItSays() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n // if error, console log error\n if (error) {\n return console.log(error);\n }\n else {\n // split data from text file\n data = data.split(\",\");\n // assign data values to command and argument variables\n var command = data[0];\n var argument = data[1];\n // run function and consolde log with data values from text file\n commandList[command](argument);\n console.log(command, argument);\n }\n });\n}", "function doWhatItSays() {\n\n fs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n if (err) {\n logOutput.error(err);\n } else {\n\n // Creates array with data\n var randomArray = data.split(\",\");\n\n // Sets action to first item in array\n action = randomArray[0];\n\n // Sets optional third argument to second item in array\n argument = randomArray[1];\n\n // Calls main controller to do something based on action and argument\n doSomething(action, argument);\n }\n });\n}", "function doWhat() {\n fs.readFile(\"random.txt\", \"utf8\", function (err, data) {\n if (err) {\n return console.log(err);\n }\n let output = data.split(\",\");\n for (let i = 0; i < output.length; i++) {\n // return (\"node liri.js \" + (output[i]).split(\",\").join());\n }\n // console.log(output);\n mainFunction(output[0], output[1])\n })\n}", "function doWhat(){\n\n\nvar fs = require(\"fs\");\n\nfs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n \n if (err) {\n return console.log(err);\n }\n \n var output = data.split(\",\");\n\n for (var i = 0; i < output.length; i++) {\n console.log(output[i]);\n\n }\n});\n\n}", "function doWhatItSays() {\n\t//This code will read from the random.txt file.\n\t// It's important to include the \"utf8\" parameter or the code will provide stream data (garbage)\n\t// The code will store the contents of the reading inside the variable \"data\"\n\tfs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n\t\t// If the code experiences any errors it will log the error to the console.\n\t\tif (error) {\n\t\t\treturn console.log(error);\n\t\t}\n\t\t// We will then print the contents of data\n\t\t//console.log(data);\n\n\t\t// Then split it by commas (to make it more readable)\n\t\tvar songdataArray = data.split(\",\");\n\n\t\t// We will then re-display the content as an array for later use.\n\t\t//console.log(songdataArray);\n\t\t//console.log(songdataArray[1]);\n\t\t//Call the getSongInfo function to display the song info for \"I want it that way.\"\n\t\tgetSongInfo(songdataArray[1]);\n\t});\n}", "function hazLo() {\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n if (error) {\n console.log(\"Error occurred\" + error);\n } else {\n\n results = data.split(\",\");\n\n let command;\n let parameter;\n\n command = results[0];\n parameter = results[1];\n\n parameter = parameter.replace('\"', '');\n parameter = parameter.replace('\"', '');\n //console.log(\"PARAMETER\" + parameter);\n\n switch (command) {\n case 'my-tweets':\n userINPUT = parameter;\n myTweets(results[1]);\n break;\n\n case 'spotify-this-song':\n userINPUT = parameter;\n spotifySong();\n break;\n\n case 'movie-this':\n userINPUT = parameter;\n simpleRequest();\n break;\n }\n }\n });\n}", "function doWhatItSays() {\n // Reads the random text file and passes it to the spotify function\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n if(error){\n console.log(error);\n whatIsNext();\n\n }\n getMeSpotify(data);\n });\n}", "function doWhatItSays(){\n\n\tvar fs = require(\"fs\");\n\n\tfs.readFile(\"./../random.txt\", \"utf8\", function(error, data) {\n\n\tif (error) {\n \treturn console.log(error);\n \t}\n \tconsole.log(data);\n \tspotifyAPI();\n\n\t});\n}", "function doThis(){ \n fs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n if (err) {\n console.log(\"Error\" + err);\n return;\n }else {\n console.log(data);\n\n var whatever = data.split(\",\");\n commands(whatever[0], whatever[1]);\n }\n });\n}", "function doRandom(){\n fs.readFile(\"random.txt\", \"utf8\", function(err, response){\n if(err) throw err\n\n var responseArr = response.split(',');\n console.log(responseArr);\n console.log('');\n console.log('---MAIN--CONTENT---');\n console.log('');\n var input = responseArr[0];\n var searchType = responseArr[1];\n\n \n runSearch (input, searchType);\n\n })\n}", "function doIt() {\n fs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n if (err) {\n return console.log(err);\n }\n var dataArray = data.split(\",\");\n argument = dataArray[0];\n inputVal = dataArray[1];\n // console.log(dataArray);\n\n switch (argument) {\n case \"movie-this\":\n movieThis();\n break;\n\n case \"spotify-this-song\":\n mySpotify();\n break;\n\n case \"my-tweets\":\n myTwitter();\n break;\n };\n });\n}", "function doThis() {\n\n\t// reading random.txt from filesystem (fs)\n\tfs.readFile(\"random.txt\", \"utf8\", function(error,data) {\n\t\t// if error is caught console log it\n\t\tif (error) {\n\t\t\tconsole.log(error);\n\t\t}\n\t\t// create an array from the data split by ','\n\t\tvar dataArr = data.split(',');\n\n\t\t// use first string in array to call switchstate\n\t\tswitchstate(dataArr[0]);\n\t})\n}", "function doWhatItSays() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data){\n if (!error) {\n doWhatItSaysResults = data.split(\",\");\n spotifyThisSong(doWhatItSaysResults[0], doWhatItSaysResults[1]);\n } else {\n console.log(\"Error occurred\" + error);\n }\n });\n}", "function FsDb_GetLoremFromFile(size) {\n\tvar loremFile = \"file://Data/Lorem.txt\";\n\tvar allLorem = ReadFile(loremFile);\n\tvar myResponse = GetRandomPieceOfText(allLorem, size);\n}", "function doWhatItSays () {\n\n fs.readFile('random.txt', 'utf8', function(error, data) {\n\n if (error) {\n throw error;\n }\n\n var dataArray = data.split(',');\n console.log(dataArray);\n\n action = dataArray[0];\n value = dataArray[1];\n input(action, value);\n\n\n });\n}", "function read() {\n if (param === \"do-what-it-says\") {\n fs.readFile(\"random.txt\", \"utf8\", function (err, data) {\n //striking our initial input from the array\n fromTheTop.slice(2)\n test = data.split(\",\")\n var readParam1=test[0]\n var readParam2=test[1]\n //calling all of the functions and passing the parameters\n spotSearch(readParam1,readParam2)\n omdb(readParam1,readParam2)\n concert(readParam1,readParam2)\n if (err) {\n return console.log(err)\n }\n\n })\n }\n}", "function doWhat() {\n fs.readFile(\"random.txt\", \"utf8\", function(error, data) {\n //Return ERROR.\n if (error) {\n return console.log(error);\n }\n // SPLIT COMMAS\n var dataArr = data.split(\",\");\n \n // Each command is represented. Because of the format in the txt file, remove the quotes to run these commands. \n \n action = dataArr[0];\n value = dataArr[1];\n if (action === \"spotify-this\"){\n spotifyThis();\n } else if (action === \"concert-this\") {\n concertThis();\n }\n else if (action === \"movie-this\") {\n movieThis();\n } \n }); \n\n}", "function dootherthings(){\n fs.readFile(\"random.txt\", \"utf8\", function(data, error) {\n\n if (error) {\n return console.log(error);\n }\n\n var dataArr = data.split(\",\");\n spotifySong(data[1]);\n console.log(dataArr);\n console.log(spotifySong);\n })\n }", "function doIt() {\n fs.readFile('./random.txt', 'utf8', function (error, data) {\n if (error) {\n var errMessage = \"Sorry. This genie don't take no commands\" + error;\n return;\n } else {\n var dataArr = data.split(\",\");\n console.log(dataArr[1]);\n\n spotifySong(dataArr[1]);\n }\n\n })\n}", "function doWhat() {\n\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n if (error) {\n return console.log(error);\n }\n else {\n var textArray = data.split(\",\");\n songCMD = textArray[0];\n rndmSong = textArray[1];\n console.log(\"------------------------------\")\n console.log(rndmSong);\n /* instead of logging rndmSong, this is where I would somehow pass this value through songChoice function,\n which would replace songTitle, search for \"I Want It That Way\" */\n }\n })\n\n}", "function readFile(){\n fs.readFile(\"random.txt\", \"utf8\", function(error, data){\n var dataArr = data.split(\",\");\n console.log(dataArr);\n searchSpotify(dataArr[1])\n })\n}", "function random() {\n\t\tif (!data) {\n\t\t\tloadFile();\n\t\t}\n\t\treturn data[Math.floor(Math.random()*data.length)];\n\t}", "function doWhatFileSays(){\n\n // Load the NPM Package fs\n // fs is a core Node package for reading and writing files\n var fs = require(\"fs\");\n\n // This block of code will read from the \"random.txt\" file.\n // It's important to include the \"utf8\" parameter or the code will provide stream data (garbage)\n // The code will store the contents of the reading inside the variable \"instructions\"\n fs.readFile(\"random.txt\", \"utf8\", function(error, instructions) {\n\n // If the code experiences any errors it will log the error to the console.\n if (error) {\n return console.log(error);\n }\n\n // We will then print the contents of data\n console.log(instructions);\n\n // Then split it by commas (to make it more readable)\n var dataArr = instructions.split(\",\");\n\n // We will then re-display the content as an array for later use.\n console.log(dataArr);\n\n switch(dataArr[0])\n {\n\n case \"concert-this\":\n console.log(\"calling concert-this\");\n writeConcertInfo(dataArr[1]);\n break;\n\n case \"spotify-this-song\":\n console.log(\"calling spotify-this-song\");\n writeSongInfo(dataArr[1]);\n break;\n\n case \"movie-this\":\n console.log(\"calling movie-this\");\n writeMovieInfo(dataArr[1]);\n break;\n }\n\n });\n}", "function doWhatItSays(){\n //console.log(\"Do What It Says\");\n fs.readFile(\"random.txt\", \"utf8\", function(error, data){\n if (error) {\n return console.log(error);\n }\n\n //console.log(data);\n var dataArr = data.split(\",\");\n //console.log(dataArr);\n runLiri(dataArr[0], dataArr[1]);\n });\n}", "function doIt() {\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n if (error) {\n return console.log(error);\n }\n let dataArr = data.split(\",\");\n userInput = dataArr[0];\n userQuery = dataArr[1];\n custComm(userInput, userQuery);\n });\n}", "function randomDisplay() {\n // console.log(\"Do something!\");\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n\n // If the code experiences any errors it will log the error to the console.\n if (error) {\n return console.log(error);\n };\n\n // We will then print the contents of data\n // console.log(data);\n\n // Then split it by commas (to make it more readable)\n // console.log(data)\n var dataArr = data.split(\",\");\n\n // We will then re-display the content as an array for later use.\n // console.log(dataArr);\n // console.log(dataArr);\n\n if (dataArr[0] === \"spotify-this-song\") {\n spotifyDisplay(dataArr[1])\n } else {\n tweetDisplay();\n }\n });\n\n}", "function doWhatItSays() {\n\n\tfs.readFile(\"random.txt\", \"utf8\", function (err, data) {\n\t\t\n\t\tif (err) {\n\n\t\t\tlogOutput(err);\n\n\t\t} else {\n\n\t\t\t// Creates array with data.\n\n\t\t\tvar randomArray = data.split(\",\");\n\n\t\t\t// Sets action to first item in array.\n\n\t\t\taction = randomArray[0];\n\n\t\t\t// Sets optional third argument to second item in array.\n\n\t\t\targument = randomArray[1];\n\n\n\t\t\t// Calls main controller to do something based on action and argument.\n\n\t\t\tdoSomething(action, argument);\n\n\t\t}\n\n\t});\n\n}", "function doWhatItSays(){\n var fs = require(\"fs\")\n var readline = require(\"readline\");\n\n var myInterface = readline.createInterface({\n input: fs.createReadStream('random.txt')\n });\n\n var lineNo = 0;\n var dataArr = [];\n \n myInterface.on('line', function(line){\n lineNo++;\n //console.log(\"Line number \" + lineNo +\":\" + line)\n var propArr = line.split(\",\");\n //console.log(propArr);\n dataArr.push(propArr);\n //console.log(dataArr);\n })\n\n function randomizer(){\n var randIndex = Math.floor(Math.random()*dataArr.length)\n //console.log(randIndex);\n //console.log(dataArr[randIndex])\n\n arg1 = dataArr[randIndex][0]\n //console.log(arg1)\n if (dataArr[randIndex].length > 1){\n arg2 = dataArr[randIndex][1]\n //console.log(arg2)\n \n }\n runLIRI();\n } \n \n setTimeout(randomizer, 500)\n\n }", "static readRandomSentence(theme) {\r\n console.log(Main.firstPartlistImpl.readRandomThemedPart(theme) + Main.secondPartListImpl.readRandomPart() + Main.thirdPartListImpl.readRandomPart()); \r\n }", "function doWhatItSays(){\n\tvar fs = require('fs')\n\tfs.readFile('random.txt', 'utf8', function (err,data) {\n\t \tif (err) {\n\t \treturn \n\t \t\tconsole.log(err);\n\t \t\tlog(err);\n\t \t}\n\t \tconsole.log(data);\n\t \tlog(data);\n\t \tvar stringArray = data.split(',');\n\t \tconsole.log(\"string array: \" + stringArray);\n\t \tlog(\"string array: \" + stringArray)\n\t \tuserSearch = stringArray[1];\n\t \tcommands(stringArray[0]);\n });\n}", "function randomSearch() {\n\nfs.readFile(\"random.txt\", \"utf8\", function(respError, data) {\n\n var randomArray = data.split(\", \");\n\n errorCheck();\n\n if (randomArray[0] == \"spotify-this\") {\n findSong(randomArray[1]);\n } else if (randomArray[0] == \"movie-this\") {\n findMovie(randomArray[1]);\n } else if(randomArray[0] == \"concert-this\") {\n findConcert(randomArray[1]);\n }\n});\n}", "function doWhat() {\n\n fs.readFile(\"random.txt\", \"utf8\", function (error, data) {\n var dataArr = data.split(\",\");\n var action = dataArr[0];\n switch (action) {\n case \"my-tweets\":\n getTwitter();\n break;\n case \"spotify-this-song\":\n var search = \"\";\n search = dataArr[1];\n getSpotify(search);\n break;\n case \"movie-this\":\n var search = \"\";\n search = dataArr[1];\n getMovie(search);\n break;\n }\n console.log(search);\n })\n}", "function doThis() {\n //fs reading random.txt\n fs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n //error catch and console.log\n if (err) {\n console.log(err);\n }\n\n //splitting the data in random.txt into an array variable\n var readArray = data.split(\",\");\n\n //setting input to the second value in the array declared above\n input = readArray[1];\n\n //using the spotify-this function to display the variable above\n spotifyThis(input);\n })\n}" ]
[ "0.80098003", "0.78512967", "0.75839806", "0.7449414", "0.7435265", "0.7419434", "0.7407276", "0.73581463", "0.73260665", "0.7298345", "0.7270083", "0.7217721", "0.71686184", "0.7129002", "0.712501", "0.7123335", "0.7108262", "0.7038708", "0.7008166", "0.6992401", "0.6972389", "0.69686896", "0.69454294", "0.6940198", "0.693137", "0.69280946", "0.69105154", "0.6902126", "0.6892914", "0.6867574", "0.68607646", "0.6858773", "0.6809707", "0.6795898", "0.6785205", "0.6783567", "0.6775319", "0.6766882", "0.67617583", "0.67466974", "0.67414314", "0.6739863", "0.67390513", "0.67340416", "0.67150617", "0.6708215", "0.6701967", "0.6653422", "0.66517204", "0.6645536", "0.6643248", "0.6640608", "0.6633479", "0.6633011", "0.6623279", "0.6615516", "0.65876", "0.6569123", "0.65631586", "0.6539606", "0.65317005", "0.65294725", "0.6528408", "0.6510717", "0.6505765", "0.64952576", "0.6494754", "0.6486285", "0.64831734", "0.64732337", "0.6470076", "0.64581233", "0.64467955", "0.6440191", "0.6438699", "0.6433032", "0.6419419", "0.6413722", "0.64102554", "0.6387684", "0.6384748", "0.6375392", "0.63694406", "0.6352172", "0.6336288", "0.63284266", "0.6322692", "0.6303884", "0.62997466", "0.62864107", "0.628488", "0.6279438", "0.62739646", "0.6248169", "0.6242672", "0.6239515", "0.6230569", "0.62295145", "0.62260115", "0.62245584", "0.62212646" ]
0.0
-1
Users are able to run the request with a command in argv[2] and a search term in argv[3] OR without argv, inquirer presents a menu instead
function executeRequest() { switch (command) { case "concert-this": getBandsInTown(); break; case "Bands in town": getBandsInTown(); break; case "spotify-this-song": getSpotifyInfo(); break; case "Search for a Spotify song": getSpotifyInfo(); break; case "movie-this": getMovieInfo(); break; case "Search for movie info": getMovieInfo(); break; case "do-what-it-says": doWhatItSays(); break; case "Default": doWhatItSays(); break; default: console.log( "This was not a valid option. Please make a valid selection" ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function runSearch() {\n inquirer\n .prompt({\n name: 'action',\n type: 'list',\n message: 'What action would you like to perform?',\n choices: [\n 'Add new department?',\n 'Add new Employee role?',\n 'Add new Employee?',\n 'View different departments?',\n 'View all Employee roles?',\n 'View all Employees?',\n // 'Update Employee?',\n 'Exit Application?'\n ]\n })\n .then(function (answer) {\n switch (answer.action) {\n case 'Add new department?':\n addDepartment();\n break;\n\n case 'Add new Employee role?':\n addRole();\n break;\n\n case 'Add new Employee?':\n addEmployee();\n break;\n\n case 'View different departments?':\n viewDepartment();\n break;\n\n case 'View all Employee roles?':\n viewRoles();\n break;\n\n case 'View all Employees?':\n viewEmloyees();\n break;\n\n // case 'Update Emloyee?':\n // updateEmloyees();\n // break;\n\n case 'Exit Application?':\n console.log('Press: Ctrl + C')\n break;\n }\n })\n}", "function runSearch() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"rawlist\",\n message: \"GREETINGS! WHAT WOULD YOU LIKE TO DO?\",\n choices: [\n \"ADD Department, Role, and/or Employee\",\n \"VIEW CURRENT Department, Role, and/or Employee's\",\n \"UPDATE An Employee Role\",\n ],\n })\n //==============PATH TO THE 'ADD' SELECTOR============//\n .then(function (answer) {\n switch (answer.action) {\n case \"ADD Department, Role, and/or Employee\":\n addInformation();\n break;\n //===============PATH TO THE 'VIEW' SELECTOR==========//\n case \"VIEW CURRENT Department, Role, and/or Employee's\":\n viewInformation();\n break;\n //===============PATH TO THE 'UPDATE' SELECTOR========//\n case \"UPDATE An Employee Role\":\n updateInformation();\n break;\n }\n });\n}", "function liriRun(appCommand, userSearch) {\n\n switch (appCommand) {\n case \"spotify-this-song\":\n getSpotify(userSearch);\n break;\n\n case \"concert-this\":\n getBranndsInTown(userSearch);\n break;\n\n case \"movie-this\":\n getOMDB(userSearch);\n break;\n\n case \"do-what-it-says\":\n getRandom();\n break;\n // if appCommand is left blank, return a default message to user\n\n default:\n console.log(\"Please enter one of the following commands: 'concert-this', 'spotify-this-song', 'movie-this' and 'do-what-it-says'\")\n }\n}", "function startApp() {\n\n //Take user input\n inquirer.prompt({\n type: \"list\",\n message: \"Enter your choice of liri search?\",\n choices: [\"concert-this\", \"spotify-this-song\", \"movie-this\", \"do-what-it-says\"],\n name: \"liriSearch\"\n })\n .then(function (inquirerResponse) {\n\n //Call function with user option to execute desired operation\n liriSearch(inquirerResponse.liriSearch, \"\");\n\n })\n .catch(function (err) {\n console.log(err);\n });\n\n\n}", "function userSearch() {\n\n inquirer.prompt([\n {\n type: \"list\",\n name: \"choice\",\n message: \"What would you like to do:\",\n choices: [\"View product sales by Department\", \"Create new department\", \"Exit Supervisor Mode\"]\n }\n\n ]).then(function (manager) {\n\n switch (manager.choice) {\n case \"View product sales by Department\":\n viewDepartments();\n break;\n \n case \"Create new department\":\n addNewDepartment();\n break;\n\n case \"Exit Supervisor Mode\":\n console.log(\"\\nSee ya later!\\n\");\n connection.end ();\n break;\n }\n\n });\n\n}", "function userInput() {\n debugger;\n userChoice = process.argv[2];\n userSearch = process.argv.splice(3).join(\" \");\n\n if (userChoice === undefined) {\n toDo();\n } else {\n checkingToDo();\n }\n}", "function runLiri(appCommand, userSearch) {\n switch (appCommand) {\n case \"concert-this\":\n getBandsInTown(userSearch);\n break;\n\n case \"movie-this\":\n getOMDB(userSearch);\n break;\n\n case \"spotify-this-song\":\n getSpotify(userSearch);\n break;\n\n case \"do-what-it-says\":\n getRead();\n break;\n //If user doesn't enter anything\n default:\n console.log(\"YO! Buttercup! Enter one of the following PHRASES! concert-this, spotify-this-song, or movie-this! \")\n\n }\n\n}", "function search() {\n\n inquirer.prompt({\n name: \"action\",\n type: \"list\",\n message: \"Choose what you would like to do:\",\n choices: options\n })\n\n .then(function (answer) {\n switch (answer.action) {\n case options[0]:\n viewDepartment();\n break;\n\n case options[1]:\n viewRole();\n break;\n\n case options[2]:\n viewEmp();\n break;\n\n case options[3]:\n updEmp();\n\n case options[4]:\n addDepartment();\n break\n\n case options[5]:\n addRole();\n break\n\n case options[6]:\n addEmp();\n break\n\n case options[7]:\n connection.end();\n break\n }\n })\n}", "function omdbCommand(){\n inquirer.prompt([\n {\n name: \"movie\",\n message:\"What movie would you like to search?\"\n }\n ]).then(function(answer){\n if(answer.movie === \"\"){\n movieThis(defaulted.movie);\n } else {\n commandParam = answer.movie;\n movieThis(commandParam);\n } \n })\n}", "function liri() {\n\n switch(input[0]) {\n case \"movie-this\":\n searchOMDb();\n break;\n case \"concert-this\":\n searchBandsInTown();\n break;\n case \"spotify-this-song\":\n searchSpotify();\n break;\n case \"do-what-it-says\":\n doWhat();\n break;\n default:\n console.log(\"Please enter a command....\")\n }\n}", "function runSearch(){\n inquirer.prompt({\n name: \"action\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"Search for an artist\",\n \"Search for artists who appear multiple times on the chart\",\n \"Search for a song/artist by release year or popularity\",\n \"Search for a specific song\"\n ]\n }).then(function (answer){\n switch (answer.action){\n case \"Search for an artist\":\n findArtistSongs();\n break;\n \n case \"Search for artists who appear multiple times on the chart\":\n findRepeatArtists();\n break;\n case \"Search for a song/artist by release year or popularity\":\n\n break;\n case \"Search for a specific song\" :\n \n break;\n }\n\n })\n}", "function spotifyCommand(){\n inquirer.prompt([\n {\n name: \"song\",\n message:\"What song would you like to search?\"\n }\n ]).then(function(answer){\n if(answer.song === \"\"){\n spotifyThis(defaulted.song)\n } else {\n commandParam = answer.song;\n spotifyThis(commandParam);\n }\n })\n}", "function startApp() {\n //ask user question of what they would like to do\n inquirer.prompt([\n // Here we create a list of choices\n {\n type: \"list\",\n message: \"What command would you like to run?\",\n choices: ['spotify-this-song', 'movie-this', 'concert-this', 'do-what-it-says'],\n name: \"command\"\n },\n\n ])\n .then(function(inqResponse) {\n\n var operator = inqResponse.command;\n // var querySearch = inqResponse.input;\n\n\n //Switch case to decide what to do based on the operator specifiec\n figureFunc(operator);\n\n });\n}", "function runSearch() {\n\tinquirer.prompt({\n\t\tname: \"action\",\n\t\ttype: \"list\",\n\t\tmessage: \"What would you like to do?\",\n\t\tchoices: [\n\t\t\"View Products For Sale\",\n\t\t\"View Low Inventory\",\n\t\t\"Add To Inventory\",\n\t\t\"Add New Product\",\n\t\t]\n\t})\n\t.then(function(answer){\n\t\tswitch(answer.action) {\n\t\t\tcase \"View Products For Sale\":\n\t\t\tproductsForSale();\n\t\t\tbreak;\n\n\t\t\tcase \"View Low Inventory\":\n\t\t\tlowInventory();\n\t\t\tbreak;\n\n\t\t\tcase \"Add To Inventory\":\n\t\t\taddToInventory();\n\t\t\tbreak;\n\n\t\t\tcase \"Add New Product\":\n\t\t\taddNewProduct();\n\t\t\tbreak;\n\t\t}\n\t});\n}", "function inquireMain() {\n\tinquirer.prompt([\n\t{\n\t\ttype: \"list\",\n\t\tmessage: \"Welcome to Flashcard App, Select an Option Below:\",\n\t\tchoices: [\"Add New\", \"Query by Artist\", \"QUIT\"],\n\t\tname: \"command\"\n\t}\n\t]).then(function (user) {\n\t\tswitch (user.command) {\n\t\t\tcase \"Add New\":\n\t\t\tconsole.log('POST');\n\t\t\tinquireItem();\n\t\t\tbreak;\n\t\t\tcase \"Query by Artist\":\n\t\t\tconsole.log('Query by Artist');\n\t\t\tinquire_by_artist();\n\t\t\tbreak;\n\t\t\tcase \"QUIT\":\n\t\t\tconsole.log(\"Goodbye!\");\n\t\t\tprocess.exit(0);\n\t\t}\n\t});\n}", "function buildRequest() {\n inquirer\n .prompt([\n {\n type: \"list\",\n message: \"What type of search would you like to do?\",\n name: \"searchType\",\n choices: [\n \"Bands in town\",\n \"Search for a Spotify song\",\n \"Search for movie info\",\n \"Default\"\n ]\n },\n {\n type: \"input\",\n message: \"What would you like to search for?\",\n name: \"searchTerm\"\n }\n ])\n .then(answers => {\n searchTerm = answers.searchTerm;\n command = answers.searchType;\n executeRequest();\n });\n}", "function runSearch() {\n inquirer.prompt({\n name: \"action\",\n type: \"list\",\n message: \"Choose between the given choices\",\n choices: [\n \"View employees\",\n \"Add employee\",\n \"Remove employee\",\n \"Update employee role\",\n \"View roles\",\n \"Add role\",\n \"Remove role\",\n \"View departments\",\n \"Add department\",\n \"Remove department\",\n \"Exit\"\n ]\n\n })\n // so then the function have a parameter answer\n // and he will switch to answer.action \n // and var query = \"SELECT * FROM employee\"; \n // will show me the employee list \n \n .then(function (answer) {\n switch (answer.action) {\n case \"View employees\":\n var query = \"SELECT * FROM employee\";\n connection.query(query, function (err, res) {\n console.table(res);\n runSearch();\n });\n\n break;\n\n case \"View roles\":\n employeeRole();\n break;\n\n\n case \"View departments\":\n var query = \"SELECT * FROM department\";\n connection.query(query, function (err, res) {\n console.table(res)\n runSearch();\n });\n\n break;\n\n case \"Add employee\":\n addEmployee();\n break;\n\n case \"Remove employee\":\n removeEmployee()\n break;\n\n\n case \"Update employee role\":\n updateEmployeeRool();\n break;\n\n\n case \"Add department\":\n addDepartment();\n break;\n\n\n case \"Remove department\":\n removeDepartment();\n break;\n\n\n case \"Add role\":\n addRole();\n break;\n\n\n case \"Remove role\":\n removeRole();\n break;\n\n\n case \"Exit\":\n console.log(\"You have a nide day!\")\n connection.end();\n\n break;\n\n }\n });\n}", "function menu() {\n //promt selection of what to search for\n inquirer.prompt([{\n type: \"list\",\n message: \"Please select what you want to search:\",\n choices: [\"concert-this\", \"spotify-this-song\", \"movie-this\", \"do-what-it-says\", \"exit\"],\n name: \"search\"\n }]).then(function (response) {\n //elaborate the question ask to the user\n let question = \"Please enter the name of the \";\n switch (response.search) {\n case \"concert-this\":\n question += \"Artist/Band: \";\n break;\n case \"spotify-this-song\":\n question += \"Song: \";\n break;\n case \"movie-this\":\n question += \"Movie: \";\n break;\n case \"do-what-it-says\":\n //if the user chose do what is says call the funcion to retrieve data from file\n readRandomTxt(response.search);\n break;\n default:\n // function ends if user chose exit\n return;\n }\n // call function to ask next question to the user\n if (response.search !== \"do-what-it-says\") {\n nextQuestion(question, response.search);\n }\n });\n} // end of main menu", "function runApp(what, search){\n if (what === 'concert-this'){\n bandsInTown(search)\n } else if (what === 'spotify-this-song') {\n spotifySearch(search);\n } else if (what === 'movie-this'){\n omdb(search)\n } else if (what === 'do-what-it-says'){\n doThis();\n } else {\n console.log('Please enter a valid cmd: concert-this, spotify-this-song, movie-this, do-what-it-says');\n }\n}", "function liriApp() {\n\n // if statement to check user's search input or arguments for songs\n // if the first argument is spotify-this-song and no second argument\n\n if ((process.argv[2] === \"spotify-this-song\" ) && (!process.argv[3])) {\n\n // choose this song as default\n\n songName = \"All the Small Things\";\n \n // call the spotifySong\n\n spotifySong(songName);\n\n // if the first argument is spotify-this-song and there's second argument\n\n }else if((process.argv[2] === \"spotify-this-song\") && (process.argv[3])) {\n\n // make the second argument the song's name\n\n songName = process.argv[3];\n\n // spotify the song\n\n spotifySong(songName);\n }\n\n\n // if statement to check user's search input or arguments for movies\n // if the first argument is movie-this and no second argument\n\n if ((process.argv[2] === \"movie-this\") && (!process.argv[3])) {\n\n // choose this movie as default\n\n movieName = \"remember the titans\";\n\n // call the movieThis() function\n\n movieThis(movieName);\n\n // if the first argument is movie-this and there's second argument\n\n }else if((process.argv[2] === \"movie-this\") && (process.argv[3])) {\n\n // make the second argument the movie's name\n\n movieName = process.argv[3];\n\n // call the movieThis() function\n\n movieThis(movieName);\n }\n\n // calling the do-whatever-it-says doSay() function\n \n doSay();\n\n}", "function selectCommand(liriCommand,queryInput) {\n\n\t\n\t//if command my-tweets\n\tif(liriCommand==='my-tweets')\n\t{\n\t\t//console.log('werwerw')\n\t\ttweet()\n\t}\n\t//if command is spotify-this-song\n\telse if(liriCommand==='spotify-this-song')\n\t{\t\n\t\t//console.log(input)\n\t\tspotify(queryInput)\n\t}\n\n\t//if command movie-this\n\telse if(liriCommand==='movie-this')\n\t{\n\t\tomdb(queryInput)\n\t}\n\t//if command do-what-it-says\n\telse if(liriCommand===\"do-what-it-says\") {\n\n\t\tdothis()\n\t}\n}", "function runQuery() {\n\tinquirer.prompt({\n\t\tname: \"options\",\n\t\ttype: \"rawlist\",\n\t\tmessage: \"What would you like to do?\",\n\t\tchoices: [\n\t\t\t\"View products for sale\",\n\t\t\t\"View low inventory\",\n\t\t\t\"Add to inventory\",\n\t\t\t\"Add new product\"\n\t\t]\n\t}).then(function(answer) {\n\t\tswitch (answer.options) {\n\t\t\tcase \"View products for sale\":\n\t\t\t\tviewProducts();\n\t\t\t\tbreak;\n\n\t\t\tcase \"View low inventory\":\n\t\t\t\tviewLowInventory();\n\t\t\t\tbreak;\n\n\t\t\tcase \"Add to inventory\":\n\t\t\t\taddInventory();\n\t\t\t\tbreak;\n\n\t\t\tcase \"Add new product\":\n\t\t\t\taddProduct();\n\t\t\t\tbreak;\n\t\t}\n\t});\n}", "function App()\r\n{\r\n\tconsole.log(\"===========================================\");\r\n\tconsole.log(\"\\t\\tWelcome to LIRI.\");\r\n\tconsole.log(\"===========================================\");\r\n\tinquirer.prompt(questions[0]).then(answer => {//promts the first question in our questions list object\r\n\t\tswitch(answer['MenuOption']) {//answer['MenuOption'] in order to get the users input result\r\n\t\t\tcase '1':\r\n\t\t\t\tinquirer.prompt(questions[1]).then(answer => {\r\n\t\t\t\t\tExecuteCommand('get-tweets', answer['TwitterUsername']);//runs the get latest tweets command\r\n\t\t\t\t});\r\n\t\t\t break;\r\n\t\t\tcase '2':\r\n\t\t\t\tinquirer.prompt(questions[2]).then(answer => {\r\n\t\t\t\t\tExecuteCommand('spotify-this-song', answer['SpotifySongSearch']);//runs the Spotify Song search command\r\n\t\t\t\t});\r\n\t\t\t break;\r\n\t\t\tcase '3':\r\n\t\t\t\tinquirer.prompt(questions[3]).then(answer => {\r\n\t\t\t\t ExecuteCommand('movie-this', answer['MovieName']);//runs the movie name search command\r\n\t\t\t\t});\r\n\t\t\t break;\r\n\t\t\tcase '4':\r\n\t\t\t\tExecuteCommand('do-what-it-says', null);//runs the command in the textfile \r\n\t\t\t break;\r\n\t\t\tcase '5':\r\n\t\t\t\tExecuteCommand('exit', null);//exits the application\r\n\t\t\t break;\r\n\t\t\tdefault:\r\n\t\t\t\tconsole.log(\"Command not recognized! Please try again.\");\r\n\t\t\t break;\r\n\t\t }\r\n\t})\r\n}", "function liriCalls(command, searchInput) {\n switch (command) {\n case \"concert-this\":\n concertThis(searchInput);\n break;\n\n case \"spotify-this-song\":\n SpotifyThisSong(searchInput);\n break;\n\n case \"movie-this\":\n movieThis(searchInput);\n break;\n\n case \"do-what-it-says\":\n doWhatItSays(searchInput);\n break;\n\n default:\n console.log(\"Input any of the following commands:\\n\\n\" +\n \"node liri.js concert-this,\\n\\n\" +\n \"node liri.js spotify-this-song,\\n\\n\" +\n \"node liri.js movie-this,\\n\\n\" +\n \"node liri.js do-what-it-says\");\n }\n}", "function start() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"rawlist\",\n message: \"What would you like to do?\",\n choices: [\n // \"View all employees\",\n // \"View all employees by department\",\n \"View all employees by manager\",\n \"Add employee\",\n // \"Remove employee\",\n \"Update employee role\",\n \"Update employee manager\",\n // \"View all roles\",\n \"Add role\",\n // \"Remove role\",\n // \"Exit\"\n ]\n })\n .then(function (answer) {\n switch (answer.action) {\n case \"View all employees\":\n // returns data\n viewEmploys();\n break;\n\n case \"View all employees by department\":\n // needs inquirer by which department\n inqViewDep();\n break;\n\n case \"View all employees by manager\":\n // needs inquirer by which manager\n inqViewMang();\n break;\n\n case \"Add employee\":\n // needs inquirer to ask info\n inqAddEmploy();\n break;\n\n case \"Remove employee\":\n // needs inquiere to ask info\n inqRemoveEmploy();\n break;\n\n case \"Update employee role\":\n // reutrns update message is a PUT\n inqUpdateEmployRole();\n break;\n\n case \"Update employee manager\":\n // returns update messge is a PUT\n inqUpdateEmployMang();\n break;\n\n case \"View all roles\":\n // returns data\n viewRoles();\n break;\n\n case \"Add role\":\n // needs inquirer to ask info\n inqAddRole();\n break;\n\n case \"Remove role\":\n // needs inquirer to ask info\n inqRemoveRole();\n break;\n\n case \"Exit\":\n // needs SQL to end connection\n exit();\n break;\n }\n });\n}", "function menu(){\n inquirer.prompt([\n {\n name:\"menuOption\",\n type:\"rawlist\",\n choices:[\"View inventory\", \"View low inventory\", \"Add to inventory\", \"Add new product\"],\n message:\"\\nHi! What would you like to do today?\"\n }\n ])\n .then(function(answer){\n //switch case for answer.option\n switch (answer.menuOption){\n case \"View inventory\":\n var query=\"Select item_id, product_name, price, stock_quantity From products\"; \n console.log(\"\\nInventory:\");\n viewProducts(query);\n break;\n case \"View low inventory\":\n var query=\"Select item_id, product_name, price, stock_quantity From products Where stock_quantity<5\";\n console.log(\"\\nLow Inventory:\");\n viewProducts(query);\n break;\n case \"Add to inventory\":\n var query = \"Select * From products\";\n addingInventory=true;\n viewProducts(query);\n break;\n default:\n newProduct();\n };\n });\n}", "function bandsInTownCommand(){\n inquirer.prompt([\n {\n name: \"artist\",\n message:\"What artist would you like to search?\"\n }\n ]).then(function(answer){\n if(!answer.artist){\n commandParam = defaulted.artist\n concertThis(commandParam)\n } else {\n commandParam = answer.artist;\n concertThis(commandParam);\n }\n })\n}", "function SC(command, term) \n{\n switch (command) {\n\n case \"concert-this\":\n concertSearch(term);\n break;\n\n case \"spotify-this-song\":\n songSearch(term);\n break;\n \n case \"movie-this\":\n if (term === \"\" || term === null) {\n movieSearch();\n }\n else {\n movieSearch(term);\n }\n break;\n\n case \"do-what-it-says\":\n randomSearch();\n break;\n \n default:\n console.log(output); \n }\n}", "function masterSearch(){\n switch (userCommand) {\n\n case \"my-tweets\":\n findTweets();\n break;\n\n case \"spotify-song\":\n spotifyNow();\n break;\n\n case \"movie-please\":\n movie();\n break;\n\n case \"directions-por-favor\":\n followDirections();\n break;\n }\n}", "function runMenu() {\n inquirer\n .prompt({\n type: \"list\",\n name: \"action\",\n message: \"WELCOME TO THE EMPLOYEE TRACKER...\",\n choices: [\"View all employees\",\n \"View all departments\",\n \"View all roles\",\n \"Add Employee\",\n \"Add Department\",\n \"Add Role\",\n \"Remove Employee\",\n \"Update Employee Role\",\n \"Exit\"]\n\n })\n .then(function (answer) {\n console.log(answer.action);\n switch (answer.action) {\n case \"View all employees\":\n employeeView();\n break;\n\n case \"View all departments\":\n departmentView();\n break;\n\n case \"View all roles\":\n rolesView();\n break;\n\n case \"Add Employee\":\n employeeAdd();\n break;\n\n case \"Add Department\":\n departmentAdd();\n break;\n\n case \"Add Role\":\n roleAdd();\n break;\n\n case \"Remove Employee\":\n employeeRemove();\n break;\n\n case \"Update Employee Role\":\n employeeUpdate();\n break;\n\n case \"Exit\":\n connection.end();\n break;\n }\n });\n}", "function liriCommand(c, t){\n // if(c === \"concert-this\" ){\n // concertThis(commandParam)\n // }\n // if neither are stated propts the user to select functionality\n if(!c && !t){\n selectFunction();\n // if no topic specified propts the user to select topic\n } else if (!t){\n selectCommand(c) \n // if both the command and topic are specified will run search with no prompts\n } else {\n switch(c){\n case \"spotify-this-song\":\n spotifyThis(t);\n break;\n case \"movie-this\":\n movieThis(t);\n break;\n case \"concert-this\":\n concertThis(t);\n break;\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n }\n }\n}", "function managerView() {\n\n inquirer.prompt([{\n type: 'list',\n name: 'manage',\n message: 'Manager View Menu: Pick a task.',\n choices: [\n 'View Products for Sale',\n 'View Low Inventory',\n 'Add to Inventory',\n 'Add New Product',\n '(Exit Program)'\n\n ],\n filter: function (val) {\n //return val;\n if (val === 'View Products for Sale') {\n return 'viewInventory';\n } else if (val === 'View Low Inventory') {\n return 'lowInventory';\n } else if (val === 'Add to Inventory') {\n return 'addInventory';\n } else if (val === 'Add New Product') {\n return 'addNew';\n } else if (val === '(Exit Program)') {\n return 'quit';\n } else {\n console.error('Error: selection not programmed');\n\n }\n }\n }\n\n ]).then(choice => {\n //console.log(`Manager choice:`+ JSON.stringify(choice));\n if (choice.manage === 'viewInventory') {\n viewProducts();\n } else if (choice.manage === 'lowInventory') {\n viewLowInventory();\n } else if (choice.manage === 'addInventory') {\n addToInventory();\n } else if (choice.manage === 'addNew') {\n addNewProduct();\n } else if (choice.manage === 'quit') {\n console.log(\"Goodbye!\")\n connection.end();\n\n return;\n }\n\n });\n}", "function menuoption(){\n inquirer.prompt({\n type: \"list\",\n name : \"menu\",\n message : \"What do you want to see ?\",\n choices : [\"\\n\",\"View Products for Sale\",\"View Low Inventory\",\"Add to Inventory\",\"Add New Product\"]\n\n }).then(function(answer){\n // var update;\n // var addnew;\n console.log(answer.menu);\n //if else option to compare user input and call the required function\n if(answer.menu == \"View Products for Sale\" ){\n showitem();\n }else if(answer.menu == \"View Low Inventory\"){\n \n lowinventory();\n }else if(answer.menu == \"Add to Inventory\"){\n updateinventory();\n // updateonecolumn(itemidinput);\n }else if(answer.menu == \"Add New Product\"){\n addnewproduct();\n }\n \n });\n }", "function commands(input){\n\tswitch(input){\n\t\tcase \"my-tweets\" : \n\t\t\tmyTweets();\n\t\t\tbreak;\n\t\tcase \"spotify-this-song\":\n\t\t\tsearchSpotify(userSearch);\n\t\t\tbreak;\n\t\tcase \"movie-this\":\n\t\t\tsearchMovie(userSearch);\n\t\t\tbreak;\n\t\tcase \"do-what-it-says\":\n\t\t\tdoWhatItSays();\n\t\t\tbreak;\n\t}\n}", "function menu()\n{\n\ninquirer.prompt({\n name:'menu',\n type:\"list\",\n choices:['View Products for Sale','View Low Inventory','Add to Inventory','Add New Product','exit'],\n message:\"MENU\\n ==================\\n\"\n}).then(function(choice)\n{\n console.log(choice.menu);\n var op=choice.menu;\n switch(op)\n {\n case 'View Products for Sale' :\n products_for_sale();\n break;\n case 'View Low Inventory' :\n low_inventory();\n break;\n case 'Add to Inventory' :\n add_inventory();\n break;\n case 'Add New Product' :\n add_product()\n break;\n case 'exit':\n connection.end();\n break;\n }\n}\n);\n}", "function runProgram() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add To Inventory\", \"Exit\"],\n name: \"userChoice\"\n }\n ]).then(function (inquirerResponse) {\n userChoice = inquirerResponse.userChoice;\n switchChoices(userChoice);\n })\n}", "function userRequest(userCommand, userInput) {\n switch (userCommand) {\n case \"concert-this\":\n concertThis();\n break;\n case \"spotify-this-song\":\n spotifyThis();\n break;\n case \"movie-this\":\n movieThis();\n break;\n case \"do-what-it-says\":\n doThis(userInput);\n break;\n default:\n console.log(\"Try again, please!\");\n break;\n }\n}", "function spotifyCommand() {\n var trackName;\n // If the user does not type a search value, default to ace of base - the sign.\n if (process.argv[3] === undefined && randomSearch === undefined) {\n trackName = \"ace the sign\"\n } else if (randomSearch !== undefined) {\n trackName = randomSearch\n } else {\n trackName = process.argv[3];\n };\n\n var params = { type: 'track', query: trackName }\n spotify.search(params, function (err, data) {\n if (err) {\n return console.log(\"Error occurred: \" + err);\n }\n console.log(\"Your search is complete! Let's take a look...\"+\n \"\\nArtist: \" + data.tracks.items[0].artists[0].name +\n \"\\nSong Name: \" + data.tracks.items[0].name +\n \"\\nPreview Link: \" + data.tracks.items[0].href +\n \"\\nAlbum: \" + data.tracks.items[0].album.name);\n log(\"spotify-this-song was run and returned the following informtion: \"+\n \"\\nArtist: \" + data.tracks.items[0].artists[0].name +\n \"\\nSong Name: \" + data.tracks.items[0].name +\n \"\\nPreview Link: \" + data.tracks.items[0].href +\n \"\\nAlbum: \" + data.tracks.items[0].album.name +\n \"\\n------------------------------------------------------------\"\n )\n });\n}", "function userSelection() {\n writeLog(\"Selection: \" + userChoice);\n writeLog(\"Search Item: \" + searchItem);\n switch (userChoice) {\n case \"help\":\n console.log(\"The following options are valid:\");\n console.log(\"-----------------------------------------------------------------------\");\n console.log(\"'node liri concert-this <artist>' --> search bandsintown for the artist\");\n console.log(\"'node liri spotify-this-song <song>' --> search spotify for the song\");\n console.log(\"'node liri movie-this <movie>' --> search omdb for the movie\");\n console.log(\"'node liri do-what-it-says' --> read commands from the random.txt file and execute\");\n break;\n case \"concert-this\":\n doConcertThis(searchItem);\n break;\n case \"spotify-this-song\":\n doSpotifyThisSong(searchItem);\n break;\n case \"movie-this\":\n doMovieThis(searchItem);\n break;\n case \"do-what-it-says\":\n doWhatItSays(searchItem);\n break;\n default:\n writeLog(\"You gave me '\" + userChoice + \"' which is not a valid option. Enter 'node liri help' to display valid options.\");\n }\n}", "function appMenu() {\n inquirer\n .prompt({\n name: 'options',\n type: 'rawlist',\n message: 'What would you like to do?',\n choices: [\n 'Add a new department',\n 'Add a new role',\n 'Add a new employee',\n 'View all departments',\n 'View all roles',\n 'View all employees',\n 'Update an employee role',\n 'Exit',\n ],\n }).then((answer) => {\n switch (answer.options) {\n case 'Add a new department':\n addDept();\n break;\n\n case 'Add a new role':\n addRole();\n break;\n\n case 'Add a new employee':\n addEmployee();\n break;\n\n case 'View all departments':\n viewDept();\n break;\n\n case 'View all roles':\n viewRoles();\n break;\n\n case 'View all employees':\n viewEmployees();\n break;\n\n case 'Update an employee role':\n updateRole();\n break;\n\n case 'Exit':\n connection.end();\n break;\n\n };\n });\n}", "function main() {\n inquirer.prompt([\n {\n type: \"list\",\n name: \"list\",\n message: \"What would you like to do?\",\n choices: [\"Add Employee\", \"Add Employee Role\", \"Add Department\", \"View Employees\", \"View Employee Role\", \"View Departments\", \"Update Employee\", \"Delete Employee\", \"Delete Employee Role\", \"Delete Department\", \"Exit\"]\n }\n ]).then(answers => {\n if (answers.list === \"View Employees\") {\n viewEmp();\n }\n else if (answers.list === \"View Employee Role\") {\n viewRole();\n }\n else if (answers.list === \"View Departments\") {\n viewDept();\n }\n else if (answers.list === \"Add Employee\") {\n addEmp();\n }\n else if (answers.list === \"Add Employee Role\") {\n addRole();\n }\n else if (answers.list === \"Add Department\") {\n addDept();\n }\n else if (answers.list === \"Update Employee\") {\n updateEmpRole();\n }\n else if (answers.list === \"Delete Employee\") {\n deleteEmp();\n }\n else if (answers.list === \"Delete Employee Role\") {\n deleteRole();\n }\n else if (answers.list === \"Delete Department\") {\n deleteDept();\n }\n else if (answers.list === \"Exit\") {\n connection.end();\n }\n });\n}", "function PromptUser() {\n if (DebugON) console.log (\"Prompt for input\");\n\n if (DebugON) console.log (\"Prompt the user\");\n // Created a series of prompts\n inquirer.prompt([\n\n { // prompt user to select an action from the list\n type: \"list\",\n name: \"SelectAction\",\n message: \"Select what you would like to do:\",\n choices: [\"concert-this\", \"spotify-this-song\", \"movie-this\", \"do-what-it-says\", \"quit\"]\n },\n\n { // prompt the user to unput the appropriate search string\n type: \"input\",\n name: \"InputSearchStr\",\n message: \"Input corresponding band/artist, song, movie or filename\"\n },\n \n ]).then(function(user) {\n\n switch (user.SelectAction) {\n case \"concert-this\" :\n ConcertThis(user.InputSearchStr)\n break;concert\n\n case \"spotify-this-song\" :\n SpotifyThis(user.InputSearchStr)\n break;\n\n case \"movie-this\" :\n MovieThis(user.InputSearchStr)\n break;\n \n case \"do-what-it-says\" :\n DoThis(user.InputSearchStr)\n break;\n\n case \"quit\" :\n return;\n break;\n\n default :\n console.log (\"Unrecognized action \" + Action);\n break;\n } // switch\n }); // .then(function(user)\n\n} // function PromptUser()", "function startLiriBot(command, search){\n switch (command){\n case 'my-tweets':\n getMyTwitter()\n break;\n case 'spotify-this-song':\n spotiFind(search)\n break;\n case 'movie-this':\n omdb(search)\n break;\n case 'do-what-it-says':\n random()\n break;\n }\n}", "function managerInput() {\n inquirer.prompt([\n {\n type: \"list\",\n name: \"options\",\n message: \"Please Select from options..\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\"]\n }\n\n ]).then(function (response) {\n //console.log(response.options);\n switch (response.options) {\n case \"View Products for Sale\":\n viewProducts();\n connectionDB.end();\n break;\n case \"View Low Inventory\":\n viewLowInventory();\n break;\n case \"Add to Inventory\":\n viewProducts();\n setTimeout(function () { addInventory(); }, 500);\n break;\n case \"Add New Product\":\n addProduct();\n break;\n }\n });\n}", "function userCommand(userInput, userQuery) {\n // THE DIFFERENT SWITCH CASES\n switch (userInput) {\n case \"concert-this\":\n concertThis();\n break;\n case \"spotify-this\":\n spotifyThisSong();\n break;\n case \"movie-this\":\n movieThis();\n break;\n case \"do-this\":\n doThis(userQuery);\n break;\n default:\n console.log(\"Sorry, I didn't get that. Try again?\");\n break;\n }\n}", "function superAsk(){\n\n inquirer\n .prompt([\n // Here we create a basic text prompt.\n {\n type: \"rawlist\",\n message: \"Greetings, what action would you like to perform today? (select by picking a #)\",\n choices: ['View Product Sales by Department', 'Create New Department', 'Exit'],\n name: \"action\", \n },\n\n ])\n .then(function(response) {\n\n switch (response.action) {\n case 'View Product Sales by Department':\n viewProdSales();\n break;\n case 'Create New Department':\n createDept();\n break;\n case 'Exit':\n process.exit();\n break;\n default:\n console.log('Whoops! Looks like something went wrong. Are you sure you picked a number 1-2?');\n }\n });\n}", "function supervisorPrompt(){\n inquirer\n .prompt([\n {\n type: \"list\",\n message: \"Select a menu action\",\n choices: [\"View Product Sales By Department\", \"Create New Department\", \"Quit\"],\n name: \"menu\"\n },\n ])\n .then(function(response) {\n console.log(response.menu);\n if (response.menu === \"View Product Sales By Department\"){\n displayDepartmentSales();\n }\n else if (response.menu === \"Create New Department\"){\n addDepartment();\n }\n else {\n connection.destroy();\n }\n \n }); \n}", "function actions() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View All Employees\",\n \"View All Employees By Department\",\n \"View All Employees By Manager\",\n \"View All Employees By Role\",\n \"Add Employee\",\n \"Update Employee's Role\",\n \"Update Employee's Manager\",\n \"Remove Employee\",\n \"View All Roles\",\n \"Add Role\",\n \"Remove Role\",\n \"View All Departments\",\n \"View Total Utilized Budget By Department\",\n \"Add Department\",\n \"Remove Department\",\n \"Exit\",\n ],\n })\n // On selection in the terminal, evaluate the selection and run the appropriate function...\n .then(function (answer) {\n switch (answer.action) {\n case \"View All Employees\":\n viewAllEmp();\n break;\n\n case \"View All Employees By Department\":\n viewEmpByDept();\n break;\n\n case \"View All Employees By Manager\":\n viewEmpByMgr();\n break;\n\n case \"View All Employees By Role\":\n viewEmpByRole();\n break;\n\n case \"Add Employee\":\n addEmp();\n break;\n\n case \"Update Employee's Role\":\n updateEmpRole();\n break;\n\n case \"Update Employee's Manager\":\n updateEmpMgr();\n break;\n\n case \"Remove Employee\":\n removeEmp();\n break;\n\n case \"View All Roles\":\n viewAllRoles();\n break;\n\n case \"Add Role\":\n addRole();\n break;\n\n case \"Remove Role\":\n removeRole();\n break;\n\n case \"View All Departments\":\n viewAllDepts();\n break;\n\n case \"Add Department\":\n addDept();\n break;\n\n case \"Remove Department\":\n removeDept();\n break;\n\n case \"View Total Utilized Budget By Department\":\n viewBudget();\n break;\n\n case \"Exit\":\n console.log(\"GOODBYE!\");\n //Exits application when \"Exit\" selected...\n connection.end();\n break;\n\n default:\n console.log(\"Not a valid selection.\");\n break;\n }\n });\n}", "function inquire() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\", \"Leave Store\"],\n name: \"askManager\"\n }\n ]).then(function(user) {\n var path = user.askManager;\n\n switch (path) {\n case \"View Products for Sale\":\n return createTable();\n \n case \"View Low Inventory\":\n return lowInv();\n\n case \"Add to Inventory\":\n return addInv();\n\n case \"Add New Product\":\n return newItem();\n \n case \"Close Program\":\n console.log(\"See you next time!\")\n console.log(\"\\n\")\n return connection.end();\n\n default:\n console.log(\"There seems to be an issue, try again.\")\n console.log(\"\\n\")\n return connection.end();\n }\n })\n }", "function main() {\n\n inquirer.prompt([\n {\n type: \"list\",\n name: \"choice\",\n message: \"What would you like to do?\",\n choices: [\"View all Employees\", \"View employee roles\", \"View all departments\", \"View all employees by department\", \"View all employees by Manager\",\n \"Add Employee\", \"Add Role\", \"Add departments\", \"Remove Role\", \"Remove department\", \"Remove Employee\", \"Update Employee Role\", \"Update Employee Manager\", \"Total budget by department\", \"quit\"]\n }\n ]).then((answers) => {\n switch (answers.choice) {\n case \"View all Employees\": getEmployees();\n break;\n\n case \"View employee roles\": getEmployeeRoles();\n break;\n\n case \"View all departments\": getEmployeeDepartments();\n break;\n\n case \"View all employees by department\": getEmployeesByDept();\n break;\n\n case \"View all employees by Manager\": getEmployeesByManager();\n break;\n\n case \"Add Employee\": addEmployee();\n break;\n\n case \"Add Role\": addRole();\n break;\n\n case \"Add departments\": addDepartments();\n break;\n\n case \"Remove Employee\": removeEmployee();\n break;\n\n case \"Remove Role\": removeRole();\n break;\n\n case \"Remove department\": removeDepartment();\n break;\n\n case \"Update Employee Role\": updateEmployeeRole();\n break;\n\n case \"Update Employee Manager\": updateEmployeeManager();\n break;\n\n case \"Total budget by department\": budgetByDept();\n break;\n\n case \"quit\":\n connection.end();\n break;\n\n }\n })\n}", "function search(command, query) {\n if (command === \"concert-this\") {\n searchBand(query);\n }\n //song search\n else if (command === \"spotify-this-song\") {\n //no song provided. defaulting to \"The Sign\" by Ace of Base\n if (query === undefined) {\n query = \"The Sign\";\n }\n searchSong(query);\n }\n //movie search\n else if (command === \"movie-this\") {\n //no movie provided. defaulting to \"Mr Nobody\"\n if (query === undefined) {\n query = \"Mr Nobody\";\n }\n searchMovie(query);\n }\n //command not recognized\n else {\n console.log(\"command not recognized\");\n }\n}", "function inquirerAction() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n name: \"action\",\n choices: [\n \"View all employees\",\n \"View all departments\",\n \"View all roles\",\n \"Alter Employee List\"\n ]\n }\n // function uses switch case to determine next query from response\n ]).then(function (response) {\n const action = response.action;\n switch (action) {\n case \"View all employees\":\n sqlQuery(\"SELECT employee.id,first_name,last_name,title,department,manager FROM employee INNER JOIN role ON employee.role = role.title;\", true, inquirerAction);\n break;\n case \"View all departments\":\n sqlQuery(\"SELECT * FROM department\", true, inquirerAction);\n break;\n case \"View all roles\":\n sqlQuery(\"SELECT * FROM role\", true, inquirerAction);\n break;\n case \"Alter Employee List\":\n alterData();\n break;\n default:\n console.log(\"Error: Can't Determine Choice\");\n break;\n }\n });\n}", "function start(){\n inquirer.prompt({\n type: \"list\",\n message: \"What would you like to view?\",\n name: \"answer\",\n choices: [\"All inventory\", \"Electronics\", \"Furniture\", \"Apparel\", \"Camping/Outdoors\", \"Tools\", \"Exit\"]\n }).then(function(data){\n if(data.answer === \"Exit\"){\n console.log(\"\\nThanks for shopping with Bamazon!\\n\".green);\n connection.end();\n }\n else if(data.answer === \"All inventory\"){\n query = \"SELECT * FROM products\"\n showItems();\n }\n else{\n query = \"SELECT * FROM products WHERE department = \" + \"'\" + data.answer.toLowerCase() + \"'\"\n showItems();\n }\n \n }) \n}", "function startApp() {\n inquirer.prompt([\n {\n name: 'menu',\n type: 'list',\n message: 'What would you like to do?',\n choices: ['View Products for Sale', 'View Low Inventory', 'Add to Inventory', 'Add New Product']\n }\n ]).then(function(answers) {\n if (answers.menu === 'View Products for Sale') {\n viewProducts();\n }\n else if (answers.menu === 'View Low Inventory') {\n lowInventory();\n }\n else if (answers.menu === 'Add to Inventory') {\n addInventory();\n }\n else if (answers.menu === 'Add New Product') {\n addProduct();\n }\n });\n}", "function menu(){\n inquirer.prompt({\n name: \"action\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View Products for Sale\",\n \"View Low Inventory\",\n \"Add to Inventory\",\n \"Add New Product\",\n \"exit\"\n ]\n }).then(function(answer){\n switch(answer.action){\n case \"View Products for Sale\":\n products();\n break;\n\n case \"View Low Inventory\":\n lowInventory();\n break;\n\n case \"Add to Inventory\":\n addToInventory();\n break;\n\n case \"Add New Product\":\n addProduct();\n break;\n\n case \"exit\":\n connection.end();\n break;\n }\n });\n}", "function managerAsk(){\n\n inquirer\n .prompt([\n\n {\n type: \"rawlist\",\n message: \"Greetings, what action would you like to perform today? (select by picking a #)\",\n choices: ['View Products for Sale', 'View Low Inventory', 'Add to Inventory', 'Add New Product', 'Exit'],\n name: \"action\", \n },\n\n ])\n .then(function(response) {\n\n switch (response.action) {\n case 'View Products for Sale':\n viewProducts();\n break;\n case 'View Low Inventory':\n viewLowInventory();\n break;\n case 'Add to Inventory':\n addToInventory();\n break;\n case 'Add New Product':\n addNewProduct();\n break;\n case 'Exit':\n process.exit();\n break;\n default:\n console.log('Whoops! Looks like something went wrong. Are you sure you picked a number 1-4?');\n }\n });\n}", "function menu() {\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"inventory\",\n message: \"Select the options below to manage the inventory:\",\n choices: [\n \"View products available for sale.\",\n \"View low inventory.\",\n \"Add new quantitites to inventory.\",\n \"Add new products to products database.\"\n ]\n }\n ])\n .then(function(answer) {\n if (answer.inventory === \"View products available for sale.\") {\n viewProducts();\n } else if (answer.inventory === \"View low inventory.\") {\n viewLowInventory();\n } else if (answer.inventory === \"Add new quantitites to inventory.\") {\n addToInventory();\n } else if (\n answer.inventory === \"Add new products to products database.\"\n ) {\n addNewProduct();\n }\n });\n}", "function viewSelection(){\n inquirer\n .prompt({\n name: \"view menu\",\n type: \"rawlist\",\n message: \"Make a selection?\",\n choices: [\n \"View all employee records\",\n \"Search records by manager\",\n \"Show Department Budget\",\n \"Exit\"\n ]\n })\n .then(function(res){\n switch(res[\"view menu\"]) {\n case \"View all employee records\":\n viewAll(); \n break;\n case \"Search records by manager\":\n searchByManager(); \n break;\n case \"Show Department Budget\":\n displayDepartmentBudget(); \n break;\n case \"Exit\":\n connection.end(); \n break;\n }\n }).catch(function(error){\n console.log(error);\n });\n}", "function showMenu() {\n\n inquirer\n .prompt([{\n type: \"list\",\n name: \"managerOption\",\n message: \"Please select an option from the list below:\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\"]\n\n\n }\n ])\n .then(function (answer) {\n\n switch (answer.managerOption) {\n case \"View Products for Sale\":\n readProducts();\n break;\n\n case \"View Low Inventory\":\n readLowInventory();\n break;\n\n case \"Add to Inventory\":\n identifyItem();\n break;\n\n case \"Add New Product\":\n updateProducts();\n break;\n\n }\n })\n}", "function run(){\n inquirer.prompt([{\n type: \"list\",\n name: \"action\",\n message: \"What would you like to do?\",\n choices: [\"View Product Sales by Department\", \"Create New Department\"]\n }]).then(function(ans){\n switch(ans.action){\n case \"View Product Sales by Department\": viewSalesByDept();\n break;\n case \"Create New Department\": createNewDept();\n }\n });\n}", "function supervisorMenu() {\n inquirer\n .prompt({\n name: 'apple',\n type: 'list',\n message: 'What would you like to do?'.yellow,\n choices: ['View Product Sales by Department',\n 'View/Update Department',\n 'Create New Department',\n 'Exit']\n })\n .then(function (pick) {\n switch (pick.apple) {\n case 'View Product Sales by Department':\n departmentSales();\n break;\n case 'View/Update Department':\n updateDepartment();\n break;\n case 'Create New Department':\n createDepartment();\n break;\n case 'Exit':\n connection.end();\n break;\n }\n });\n}", "function userCommand(choice, input) {\n switch (choice) {\n case \"concert-this\":\n concertThis();\n break;\n case \"spotify-this-song\":\n spotifyThis();\n break;\n case \"movie-this\":\n movieThis();\n break;\n case \"do-what-it-says\":\n doThis(input);\n break;\n default:\n console.log(\"Looks like something went wrong, please try again.\");\n break;\n }\n}", "function appMenu() {\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"intro\",\n message: \"What would you like to do?\",\n choices: [\n \"View all employees\",\n \"View Departments\",\n \"View Roles\",\n \"Add Department\",\n \"Add Role\",\n \"Add Employee\",\n \"Update Employee Role\",\n \"Exit\",\n ],\n },\n ])\n .then((introChoice) => {\n switch (introChoice.intro) {\n case \"View all employees\":\n viewAllEmployees();\n break;\n case \"View Departments\":\n viewDepartment();\n break;\n case \"View Roles\":\n viewRoles();\n break;\n case \"Add Department\":\n addDepartment();\n break;\n case \"Add Role\":\n addRole();\n break;\n case \"Add Employee\":\n addEmployee();\n break;\n case \"Update Employee Role\":\n updateRole();\n break;\n case \"Exit\":\n process.exit();\n }\n });\n}", "function selectFunction(){\n inquirer.prompt([\n {\n type: \"rawlist\",\n message: \"Please select what you would like me to search for you\",\n choices: commands,\n name: \"selection\",\n }\n ]).then(function(answer){\n liriCommand(answer.selection)\n })\n}", "function run() {\n\nswitch (command) {\n\ncase 'my-tweets':\n\tgetTweets();\n break;\ncase 'spotify-this-song':\n\tgetSong(search);\n break;\ncase 'movie-this':\n\tgetFilm(search);\n break;\ncase 'do-what-it-says':\n\tgetRandom();\n break;\ncase 'HELP':\n\tconsole.log(\"Options: \\n my-tweets \\n spotify-this-song SONGNAME \\n movie-this MOVIENAME \\n do-what-it-says\")\ndefault:\n\tconsole.log(\"Enter a command, type 'node liri.js HELP' if need be\")\n break;\n}\n}", "function bamazonManagerView() {\n\n //Take user input\n inquirer.prompt({\n type: \"list\",\n message: \"Enter your choice?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\", \"Exit app\"],\n name: \"view\"\n })\n .then(function (inquirerResponse) {\n\n //Call function with user option to execute desired operation\n switch (inquirerResponse.view) {\n\n case 'View Products for Sale':\n viewProductsForSale(true);\n break;\n\n case 'View Low Inventory':\n viewLowInventory();\n break;\n\n case 'Add to Inventory':\n addToInventory();\n break;\n\n case 'Add New Product':\n addNewProduct();\n break;\n\n default:\n console.log(\"\\n\\n\\tExiting the app!!\\n\\n\");\n connection.end();\n\n }\n\n })\n .catch(function (err) {\n console.log(err);\n });\n\n}", "function main(){\n\n //This will show the manager and menu list for a selection \n //Prompt for \"View Products for Sale\"\n //Prompt for \"View Low Inventory\"\n //Prompt for \"Add to Inventory\"\n //Prompt for \"Add New Product\"\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"mgrAction\",\n message: \"\\nWhat manager action would you like to perform?\",\n choices: [\"View Products for Sale\", \"View Low Qty Products\", \"Add to Inventory\",\"Add New Product\",\"Exit\"]\n }\n ])\n .then(function(res){\n if (res.mgrAction === 'View Products for Sale') {\n showProd();\n } else if (res.mgrAction === 'View Low Qty Products') {\n showLowProd();\n } else if (res.mgrAction === 'Add to Inventory') {\n addProdQty();\n } else if (res.mgrAction === 'Add New Product') {\n addNewProd();\n } else if (res.mgrAction === 'Exit') {\n conn.end();\n }\n else {\n //Show error message\n console.log(\"*** Sorry, an invalid selection was made!\");\n main();\n } \n\n })\n}", "function liri() {\n inquirer\n .prompt([{\n type: \"list\",\n message: \"What can i do for you?\",\n choices: [\"my-tweets\", \"get-song-details\", \"get-movie-details\", \"do-what-it-says\", \"exit\"],\n name: \"command\"\n },\n {\n type: \"input\",\n message: \"Enter the song/album name:\",\n name: \"song\",\n default: \"The Sign\",\n when: function(userInput) {\n return userInput.command === \"get-song-details\"\n }\n },\n {\n type: \"input\",\n message: \"Enter the movie name:\",\n name: \"movie\",\n default: \"Mr. Nobody.\",\n when: function(userInput) {\n return userInput.command === \"get-movie-details\"\n }\n }\n ])\n .then(async function(userInput) {\n logger.info(\"User selected command is \" + userInput.command);\n if (userInput.command === \"my-tweets\") {\n console.log(\"\\n\\n--------------Tweets---------------\");\n try {\n var tweets = await myTweets();\n logger.info(\"Successfully retrived tweets\");\n logger.debug(tweets);\n tweets.forEach(function(tweet, index) {\n console.log((parseInt(index) + 1) + \". \" + tweet);\n });\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive your tweets\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else if (userInput.command === \"get-song-details\") {\n console.log(\"\\n\\n-----------Song Details------------\");\n try {\n var songDetails = await getSongDetails(userInput.song);\n logger.info(\"Successfully retrived song details\");\n logger.debug(JSON.stringify(songDetails));\n\n console.log(\"Name: \" + songDetails.name);\n console.log(\"Artist(s): \" + songDetails.artists);\n console.log(\"Preview URL: \" + songDetails.preview);\n console.log(\"Album: \" + songDetails.album);\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive song details\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else if (userInput.command === \"get-movie-details\") {\n console.log(\"\\n\\n-----------Movie Details-----------\");\n try {\n var movieDetails = await getMovieDetails(userInput.movie);\n logger.info(\"Successfully retrived movie details\");\n logger.debug(JSON.stringify(movieDetails));\n\n console.log(\"Movie Title: \" + movieDetails.Title);\n console.log(\"Year: \" + movieDetails.Year);\n console.log(\"IMDB Rating: \" + movieDetails.imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + movieDetails.Ratings.find(function (rating) { return rating.Source === \"Rotten Tomatoes\"; }).Value);\n console.log(\"Country produced in: \" + movieDetails.Country);\n console.log(\"Language: \" + movieDetails.Language);\n console.log(\"Plot: \" + movieDetails.Plot);\n console.log(\"Actors: \" + movieDetails.Actors);\n\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive movie details\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else if (userInput.command === \"do-what-it-says\") {\n fs.readFile(\"random.txt\", \"utf8\", async function(error, data) {\n var fileCommand = data.split(\",\");\n if (fileCommand[0] === \"my-tweets\") {\n console.log(\"\\n\\n-----------Tweets------------\");\n try {\n var tweets = await myTweets();\n logger.info(\"Successfully retrived tweets\");\n logger.debug(tweets);\n tweets.forEach(function(tweet, index) {\n console.log((parseInt(index) + 1) + \". \" + tweet);\n });\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive your tweets\");\n }\n console.log(\"-----------------------------\\n\\n\");\n liri();\n } else if (fileCommand[0] === \"get-song-details\") {\n console.log(\"\\n\\n-----------Song Details------------\");\n try {\n var songDetails = await getSongDetails(fileCommand[1]);\n logger.info(\"Successfully retrived song details\");\n logger.debug(JSON.stringify(songDetails));\n\n console.log(\"Name: \" + songDetails.name);\n console.log(\"Artist(s): \" + songDetails.artists);\n console.log(\"Preview URL: \" + songDetails.preview);\n console.log(\"Album: \" + songDetails.album);\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive song details\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else if (fileCommand[0] === \"get-movie-details\") {\n console.log(\"\\n\\n-----------Movie Details-----------\");\n try {\n var movieDetails = await getMovieDetails(fileCommand[1]);\n logger.info(\"Successfully retrived movie details\");\n logger.debug(JSON.stringify(movieDetails));\n\n console.log(\"Movie Title: \" + movieDetails.Title);\n console.log(\"Year: \" + movieDetails.Year);\n console.log(\"IMDB Rating: \" + movieDetails.imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + movieDetails.Ratings.find(function (rating) { return rating.Source === \"Rotten Tomatoes\"; }).Value);\n console.log(\"Country produced in: \" + movieDetails.Country);\n console.log(\"Language: \" + movieDetails.Language);\n console.log(\"Plot: \" + movieDetails.Plot);\n console.log(\"Actors: \" + movieDetails.Actors);\n\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive movie details\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else {\n liri();\n }\n\n });\n\n } else {\n \t//Exit the application\n \tlogger.info(\"Shutting down liri....\");\n process.exit();\n\n }\n });\n}", "function runApp() {\n inquirer.prompt({\n name: \"mainmenu\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View All Employees\",\n \"Edit Employeee Info\",\n \"View Roles\",\n \"Edit Roles\",\n \"View Departments\",\n \"Edit Departments\"\n ]\n }).then(responses => {\n switch (responses.mainmenu) {\n case \"View All Employees\":\n showEmployeeSummary();\n break;\n case \"Edit Employeee Info\":\n editEmployeeOptions();\n break;\n case \"View Roles\":\n showRoleSummary();\n break;\n case \"Edit Roles\":\n editRoleOptions();\n break;\n case \"View Departments\":\n showDepartments();\n break;\n case \"Edit Departments\":\n editDepartmentOptions();\n break;\n }\n });\n}", "function liriBot(liriCommand, userInput) {\nswitch(liriCommand) {\n\n case \"movie-this\":\n getOMDB(userInput);\n break;\n\n case \"concert-this\":\n getBands(userInput);\n break;\n\n case \"spotify-this-song\":\n getSpotify(userInput);\n break;\n\n case \"do-what-it-says\":\n getRandomTxt();\n break;\n }\n}", "function mainMenu() {\n inquirer\n .prompt([\n {\n type: \"confirm\",\n name: \"choice\",\n message: \"Would you like to place another order?\"\n }\n ]).then(function (answer) {//response is boolean only\n if (answer.choice) { //if true, run func\n startBamazon();\n } else {\n console.log(\"Thanks for shopping at Bamazon. See you soon!\")\n connection.end();\n }\n })\n}", "function mainMenu() {\n //Use Inquirer to ask User What They Would Like to do\n inquirer\n .prompt([\n {\n type: \"list\",\n message: \"Welcome Manager, What are you Doing?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\", \"Exit\"],\n name: \"menu\"\n }\n ]).then(function (inquirerResponse) {\n //User Chose to View all Products in DB\n if (inquirerResponse.menu === \"View Products for Sale\") {\n showProducts();\n }\n //User Chose to see all Products That Have low Stock Counts\n else if (inquirerResponse.menu === \"View Low Inventory\") {\n lowInventory();\n }\n //User Chose to Order More of an Item\n else if (inquirerResponse.menu === \"Add to Inventory\") {\n fillList();\n }\n //User Chose to add a new Product to DB\n else if (inquirerResponse.menu === \"Add New Product\") {\n addProduct(); \n }\n //User Chose to Exit Program\n else {\n console.log(\"Logging Out of Manager Portal....\"); //Show Exit Message\n connection.end(); //Close Connection to DB\n }\n });\n}", "function start(){\n inquirer\n .prompt([\n {\n name: \"commands\",\n type: \"list\",\n choices: ['View Products for Sale', 'View Low Inventory', 'Add to Inventory', 'Add New Product', 'Exit'],\n message: 'What would you like to do?'\n }\n ])\n .then(function(answer){\n switch(answer.commands) {\n case \"View Products for Sale\":\n viewProducts();\n break;\n case \"View Low Inventory\":\n viewInventory();\n break;\n case \"Add to Inventory\":\n addInventory();\n break;\n case \"Add New Product\":\n addProduct();\n break;\n case \"Exit\":\n connection.end();\n }\n })\n}", "function options() {\n inquirer.prompt({\n type: 'list',\n name: 'menu',\n message: 'What would you like to do?',\n choices: [\n 'View All Departments',\n 'Add Department',\n 'View All Roles',\n 'Add Role',\n 'View All Employees',\n 'Add Employee',\n 'Update Employee Role',\n 'Delete Department',\n 'Delete Employee',\n 'Delete Role',\n 'Quit'\n ]\n\n })\n .then(function (answers) {\n console.log('view');\n switch (answers.menu) {\n case 'View All Departments':\n viewAllDepartments();\n break;\n case 'Add Department':\n addDepartment();\n break;\n case 'View All Roles':\n viewAllRoles();\n break;\n case 'Add Role':\n addRole();\n break;\n case 'View All Employees':\n viewAllEmployees();\n break;\n case 'Add Employee':\n addEmployee();\n break;\n case 'Update Employee Role':\n updateEmployeeRole();\n break;\n case 'Delete Department':\n deleteDepartment();\n break;\n case 'Delete Employee':\n deleteEmployee();\n break;\n case 'Delete Role':\n deleteRole();\n break;\n case 'Quit':\n quitApp();\n break;\n default:\n console.log(\"You chose wrong.\")\n }\n })\n\n}", "function switchCases(commandInput, searchTerm) {\n let resultPromise;\n\n switch (commandInput) {\n case 'concert-this':\n console.log('searching concert');\n resultPromise = searchMusic(searchTerm);\n break;\n case 'spotify-this-song':\n console.log('searching song');\n resultPromise = searchSpot(searchTerm);\n break;\n case 'movie-this':\n console.log('searching movies');\n resultPromise = searchMovies(searchTerm);\n break;\n case 'do-what-it-says':\n console.log('doing what it says');\n resultPromise = randomDo();\n break;\n\n }\n\n return resultPromise;\n}", "function run(){\n //console.log(\"O meu programa esta a correr\");\n\n inquirer.prompt([\n {\n type: \"rawlist\",\n name: \"action\",\n message: \"Action?\",\n choices: [\"Create Index\", \"Get Index\", \"Delete Index\"]\n }\n ]).then(function (answers) {\n if(answers['action'] == \"Create Index\"){\n // Create Index\n createIndex();\n }else if(answers['action'] == \"Delete Index\"){\n // TODO: Delete index\n }else if(answers['action'] == \"Get Index\"){\n getIndex()\n }else{\n // Do nothing\n }\n }).catch()\n}", "runApplication()\n {\n //run inquirer\n inquirer\n .prompt({\n type: \"list\",\n name: \"selection\",\n message: \"What would you like to do?\",\n choices: [\"View all departments\", \"View all roles\", \"View all employees\", \"Add a department\", \"Add a role\", \"Add an employee\", \"Update an employee role\", \"Update an employee manager\", \"Delete an employee\", \"Exit\"]\n })\n .then(({selection}) => {\n this.displayResults(selection);\n });\n }", "function mainMenu() {\n\n inquirer\n .prompt({\n type: \"list\",\n name: \"task\",\n message: \"Plz, select your entry ?\",\n choices: [\n \"View Employees\",\n \"View Departments\",\n \"View Roles\",\n \"Add Employees\",\n \"Update EmployeeRole\",\n \"Add Role\",\n \"Exit\"]\n })\n .then(function ({ task }) {\n switch (task) {\n case \"View Employees\":\n viewEmployee();\n break;\n case \"View Departments\":\n viewDepartmnt();\n break;\n case \"View Roles\":\n viewRole();\n break;\n case \"Add Employees\":\n addEmployee();\n break;\n case \"Update EmployeeRole\":\n updateEmployeeRole();\n break;\n case \"Add Role\":\n addRole();\n break;\n case \"Exit\":\n connection.end();\n break;\n \n }\n });\n}", "function start() {\n inquirer\n .prompt([{\n type: \"list\",\n name: \"menu\",\n message: \"What would you like to do?\",\n choices: [\"View Products for sale\",\n \"View Low Inventory\",\n \"Add to Inventory\",\n \"Add New Product\"\n ]\n }\n\n ])\n .then(function (answers) {\n if (answers.menu === \"View Products for sale\") {\n return viewProducts();\n } else if (answers.menu === \"View Low Inventory\") {\n return lowInventory();\n } else if (answers.menu === \"Add to Inventory\") {\n return addInventory();\n } else if (answers.menu === \"Add New Product\") {\n return addProduct();\n }\n });\n}", "function mainMenu() {\n mapping();\n inquirer.prompt(\n {\n type: \"list\",\n message: \"What would you like to do?\",\n name: \"choices\",\n choices: [\n {\n name: \"View All Employees\",\n value: \"viewEmp\"\n },\n {\n name: \"View Employees by Manager\",\n value: \"viewEmpMan\"\n },\n {\n name: \"View All Departments\",\n value: \"viewDept\"\n },\n {\n name: \"View All Roles\",\n value: \"viewRoles\"\n },\n {\n name: \"Add an Employee\",\n value: \"addEmp\"\n },\n {\n name: \"Add a Department\",\n value: \"addDept\"\n },\n {\n name: \"Add a Role\",\n value: \"addRole\"\n },\n {\n name: \"Update Employee Role\",\n value: \"updateRole\"\n },\n {\n name: \"Update Employee Manager\",\n value: \"updateManager\"\n },\n {\n name: \"Delete a Department\",\n value: \"deleteDept\"\n },\n {\n name: \"Delete a Role\",\n value: \"deleteRole\"\n },\n {\n name: \"Delete an Employee\",\n value: \"deleteEmp\"\n },\n {\n name: \"Quit\",\n value: \"end\"\n }\n ]\n }).then(function(res) {\n execute(res.choices)\n })\n}", "function menu() {\n inquirer\n .prompt({\n name: \"menuOptions\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\"View Products\", \"View Low Inventory\", \"Add Inventory\", \"Add New Product\"]\n })\n .then(function(answer) {\n // based on their answer, run appropriate function\n if (answer.menuOptions === \"View Products\") {\n viewProducts();\n }\n else if (answer.menuOptions === \"View Low Inventory\") {\n viewLowInventory();\n }\n else if (answer.menuOptions === \"Add Inventory\") {\n addInventory();\n }\n else if (answer.menuOptions === \"Add New Product\") {\n addNewProduct();\n }\n else {\n connection.end();\n }\n });\n}", "function start() {\n\n //prompt user to view products for sale\n inquirer\n .prompt({\n name: \"menu_option\",\n type: \"list\",\n message: \"What would you like to view?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\"]\n })\n //based on user input-determine which function to run\n .then(function (answer_menu) {\n gAnswer_menu = answer_menu;\n if (gAnswer_menu.menu_option === \"View Products for Sale\") {\n viewProducts();\n } else if (gAnswer_menu.menu_option === \"View Low Inventory\") {\n viewLowInventory();\n } else if (gAnswer_menu.menu_option === \"Add to Inventory\") {\n addInventory();\n } else if (gAnswer_menu.menu_option === \"Add New Product\") {\n addProduct();\n }\n })\n}", "function start(){\ninquirer.prompt(\n {\n name: 'actionList',\n type: 'rawlist',\n message: \"What would you like to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\"]\n}).then(function(action){\n let managerAction = action.actionList.toLowerCase();\n switch(managerAction){\n case 'view products for sale':\n inventory();\n break;\n case 'view low inventory':\n lowInventory();\n break;\n case 'add to inventory':\n addInventory();\n break;\n case 'add new product':\n addProduct();\n break;\n default: \n console.log(\"Please select a valid action.\");\n break;\n }\n});\n}", "function menuOptions() {\n inquirer.prompt([\n {\n name: \"action\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View products for sale\",\n \"View inventory with stock lower than five\",\n \"Add to inventory to current product\",\n \"Add a new product\",\n \"EXIT\"\n\n ]\n }\n ]).then(function(answer) {\n switch (answer.action) {\n case \"View products for sale\":\n displayProducts();\n break;\n\n case \"View inventory with stock lower than five\":\n lowerStock();\n break;\n\n case \"Add to inventory to current product\":\n addItems();\n\n break;\n\n case \"Add a new product\":\n addProduct();\n break;\n\n case \"EXIT\":\n connection.end();\n break;\n }\n })\n}", "function menuPrompt(repeat) {\n // If logic that checks if the user came from a repeat calling of the function\n if(repeat === \"repeat\") {\n console.log(\"Thanks for your continued usage.\")\n }\n // When a new instance of the script is run, this message is provided.\n else{\n console.log(\"Welcome to the entertainment LIRI. Learn details about different spheres of entertainment!\");\n }\n inquirer.prompt([\n {\n name: \"searchterm\",\n message: \"What would you like to know more about?\"\n },\n {\n name: \"option\",\n message: \"What category is this?\",\n choices: menuChoices,\n type: \"list\",\n },\n ]).then(function(response) {\n // Uses the menuChoices array to run unique functions\n var value = menuChoices.indexOf(response.option);\n if(value === 0) {\n concertThis(response.searchterm);\n }\n else if(value === 1) {\n spotifyThisSong(response.searchterm);\n }\n else if(value === 2) {\n movieThis(response.searchterm)\n }\n else if(value === 3) {\n random();\n }\n })\n}", "function startPrompt(){\n\n const questions = \n [{\n type: 'list',\n name: 'programs',\n message: 'What would you like to do?',\n choices: ['Look up a song', 'Look up a movie', 'Find a concert', 'Look up something random']\n },\n {\n type: 'input',\n name: 'movieChoice',\n message: 'What movie would you like to look up?',\n when: function(answers) {\n return answers.programs == 'Look up a movie';\n }\n },\n {\n type: 'input',\n name: 'artistName',\n message: 'What artist do you want to see in concert?',\n when: function(answers) {\n return answers.programs == 'Find a concert';\n }\n },\n {\n type: 'input',\n name: 'songChoice',\n message: 'What song would you like to look up?',\n when: function(answers) {\n return answers.programs == 'Look up a song';\n }\n }];\n\n inquirer\n .prompt(questions)\n .then(answers => {\n\n switch (answers.programs) {\n case 'Look up a song':\n getMeSpotify(answers.songChoice);\n break;\n case 'Look up a movie':\n getMeMovie(answers.movieChoice);\n break;\n case 'Find a concert':\n getMeConcert(answers.artistName);\n break;\n case 'Look up something random':\n doWhatItSays();\n break;\n default:\n console.log('LIRI doesn\\'t know how to do that');\n \n }\n });\n}", "function askForPrompt() {\n\tprompt.start();\n\n\tprompt.get({\"properties\":{\"name\":{\"description\":\"Enter a command\", \"required\": true}}}, function (err, result) { \n\t\tcommandFinder(result.name)\n\t})\n}", "function runSearch(argument, search) {\n switch (argument) {\n case \"spotify-this-song\":\n spotifySearch(search);\n break;\n\n case \"movie-this\":\n omdbSearch(search);\n break;\n\n case \"concert-this\":\n bandsSearch(search);\n break;\n\n case \"do-what-it-says\":\n readFile(search);\n break;\n\n case \"help\":\n help();\n break;\n\n default:\n nullCase();\n }\n}", "function liriCommand(vliriCommand) {\n\tif(vliriCommand==='fav-tweets') {\n\t\tconsole.log('fav-tweets'.inverse);\n\t\tgetFavTweets();\n\t} else if (vliriCommand===\"my-tweets\") {\n\t\tconsole.log('my-tweets'.inverse);\n\t\tgetMyTweets();\n\t} else if (vliriCommand==='spotify-this-song') {\n\t\tconsole.log('spotify-this-song'.inverse);\n\t\tgetSpotify(vliriArgument1, vliriArgument2);\n\t} else if (vliriCommand==='movie-this') {\n\t\tconsole.log('movie-this'.inverse);\n\t\tgetOMDB(vliriArgument1);\n\t} else if (vliriCommand==='do-what-it-says') {\n\t\tconsole.log('do-what-it-says'.inverse);\n\t\tdoWhatItSays();\n\t} else {\n\t\tconsole.log(\"You made an incorrect choice. Please use: my-tweets, fav-tweets,\".inverse + \"\\n\" + \"spotify-this-song, movie-this or do-what-it-says\".inverse);\n\t}\n}", "function managerMenu(){\n inquirer.prompt([\n\t\t{\n\t\t\t type: \"list\",\n\t\t message: \"Select an operation to perform\",\n name: \"mgrmenu\",\n choices: ['1 - View Products', '2 - View Low Inventory', '3 - Add to Inventory', '4 - Add New Product', '5 - Exit']\n\t\t},\n\t]).then(function(response){\n if(response.mgrmenu.includes(1)){\n viewSaleProducts();\n }\n else if(response.mgrmenu.includes(2)){\n viewLowInvetory();\n }\n else if(response.mgrmenu.includes(3)){\n viewSaleProducts(addInventory);\n }\n else if(response.mgrmenu.includes(4)){\n addProduct();\n }\n else{\n //close the connection\n connection.end();\n }\n });\n}", "function getEngineer() {\n\n inquirer \n .prompt([\n \n\n ])\n .then(answers =>{\n \n })\n\n}", "function managerOptions(){\n inquirer\n .prompt({\n //format and question #1 to ask manager--menu options\n name: \"mgrMenu\",\n type: \"list\",\n message: \"What do you need to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory Products\", \"Update Inventory for a Product\", \"Add Product to Inventory\"]\n })\n //function to run after the inquiry based on manager's selection\n .then(function(answer){\n switch (answer.mgrMenu){\n //to view all products for sale\n case \"View Products for Sale\":\n totalInv();\n break;\n //to view products with low inventory\n case \"View Low Inventory Products\":\n lowInv();\n break;\n //to update inventory for a product\n case \"Update Inventory for a Product\":\n updateInv();\n break;\n //to add a product to products for sale\n case \"Add Product to Inventory\":\n addProduct();\n break\n }\n \n })\n}", "function liriSearch(option, searchFor) {\n\n switch (option) {\n\n case \"concert-this\":\n console.log(\"\\nYou have selected to know about events\\n\");\n concertThis(searchFor);\n break;\n\n case \"spotify-this-song\":\n console.log(\"\\nYou have selected to do a Spotify search\\n\");\n spotifyThisSong(searchFor);\n break;\n\n case \"movie-this\":\n console.log(\"\\nYou have selected to know about a movie\\n\");\n movieThis(searchFor);\n break;\n\n case \"do-what-it-says\":\n console.log(\"\\nYou have selected 'do-what-it-says'\\n\");\n doWhatItSays();\n break;\n\n default:\n console.log(\"\\nInvalide user input!\\n\");\n\n } //End of switch statement\n\n}", "function mainMenu() {\n inquirer.prompt(\n {\n name: \"choice\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"Add department, role or employee\",\n \"View departments, roles or employees\",\n \"Update roles\",\n \"Quit\"\n ]\n }\n ).then(function(response){ \n console.log(response);\n switch (response.choice) {\n case \"Add department, role or employee\":\n addMenu();\n break;\n\n case \"View departments, roles or employees\":\n viewMenu();\n break;\n\n case \"Update roles\":\n updateRoles();\n break;\n\n case \"Quit\":\n connection.end()\n break;\n }\n })\n}", "function anythingElse(){\n inquirer.prompt([\n {\n type: \"confirm\",\n name: \"anything_else\",\n message: \"Can I look up anything else for you?\"\n },\n ]).then(function(answer){\n if(answer.anything_else){\n inquirer.prompt([\n {\n message: \"What can I do for you\",\n name: \"new_command\",\n }\n ]).then(function(answer){\n var topic = answer.new_command.split(\" \");\n topic.unshift(\"0\", \"1\")\n command = topic[2];\n buildTopic(topic)\n liriCommand(command, commandParam);\n });\n };\n });\n}", "showMenu() {\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"choice\",\n message: \"What next?\",\n choices: [\n \"Add an Engineer\",\n \"Add an Intern\",\n \"Show Current Employee List\",\n \"Finish and Generate HTML\",\n \"Quit\"\n ]\n }\n ])\n .then( ({ choice }) => {\n switch(choice) {\n case \"Add an Engineer\":\n this.inputEmployee(\"engineer\");\n break;\n\n case \"Add an Intern\":\n this.inputEmployee(\"intern\");\n break;\n\n case \"Show Current Employee List\":\n this.displayList();\n break;\n\n case \"Finish and Generate HTML\":\n this.buildHTML();\n break;\n\n case \"Quit\":\n this.quit();\n break;\n }\n });\n }", "function getIntern() {\n\n inquirer \n .prompt([\n \n\n ])\n .then(answers =>{\n \n })\n\n}", "function mainMenu() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"rawlist\",\n message: \"What would you like to do?\",\n choices: [\n \"Add Departments\",\n \"Add Roles\",\n \"Add Employees\",\n \"View Departments\",\n \"View Roles\",\n \"View Employees\",\n \"Update Role\",\n \"Update Manager\"\n // \"View Employees by Manager\"\n ]\n })\n // Case statement for selection of menu item\n .then(function(answer) {\n switch (answer.action) {\n case \"Add Departments\":\n addDepartments();\n break;\n case \"Add Roles\":\n addRoles();\n break;\n case \"Add Employees\":\n addEmployees();\n break;\n case \"View Departments\":\n viewDepartments();\n break;\n\n case \"View Roles\":\n viewRoles();\n break;\n case \"View Employees\":\n viewEmployees();\n break;\n case \"Update Role\":\n updateRole();\n break;\n case \"Update Manager\":\n updateManager();\n break;\n // case \"View Employees by Manager\":\n // viewEmployeesByManager();\n // break;\n }\n });\n}", "startApp() {\n inquirer.prompt(this.startActions).then(data => {\n switch (data.actions) {\n // View All Departments\n case \"View All Departments\":\n this.viewDepartments();\n break;\n // View All Roles\n case \"View All Roles\":\n this.viewRoles();\n break;\n // View All Employees\n case \"View All Employees\":\n this.viewEmployees();\n break;\n // View Employees By Manager\n case \"View Employees By Manager\":\n this.viewEmployeesByManager();\n break;\n //View Employees By Department\n case \"View Employees By Department\":\n this.viewEmployeesByDepartment();\n break;\n // Add A Department\n case \"Add A Department\":\n this.addDepartment();\n break;\n // Add A Role\n case \"Add A Role\":\n this.addRole();\n break;\n // Add An Employee\n case \"Add An Employee\":\n this.addEmployee();\n break;\n // Update Employee Role\n case \"Update Employee Role\":\n this.updateRole();\n break;\n // Update Employee Manager\n case \"Update Employee Manager\":\n this.updateManager();\n break;\n // Delete A Department\n case \"Delete A Department\":\n this.deleteDepartment();\n break;\n // Delete A Role\n case \"Delete A Role\":\n this.deleteRole();\n break;\n // Delete An Employee\n case \"Delete An Employee\":\n this.deleteEmployee();\n break;\n // case \"View Department Budgets\":\n // this.viewBudgets();\n // break;\n case \"Exit\":\n connection.end();\n break;\n }\n })\n }", "function runApp() {\n\n// switch case for the user input argument\nswitch (userInput) {\n case \"concert-this\":\n concertThis();\n break;\n\n case \"spotify-this-song\":\n spotifyThis();\n break;\n\n case \"movie-this\":\n movieThis();\n break;\n\n case \"do-what-it-says\":\n doThisThing();\n break;\n }\n}" ]
[ "0.7080934", "0.70037", "0.6926543", "0.68710035", "0.6841091", "0.6811644", "0.67863184", "0.67243725", "0.6664714", "0.66454047", "0.66433966", "0.6630193", "0.6627814", "0.65823215", "0.6572293", "0.6547668", "0.65012944", "0.6496893", "0.6420769", "0.6354439", "0.6350943", "0.6339421", "0.63385385", "0.626251", "0.62536997", "0.6235151", "0.6230395", "0.6200058", "0.61876464", "0.61846495", "0.61803186", "0.616704", "0.61400586", "0.61314625", "0.6130197", "0.61270833", "0.609978", "0.60884607", "0.60790366", "0.6078306", "0.6065077", "0.60574883", "0.60462475", "0.6029333", "0.6023573", "0.6020725", "0.6015487", "0.60016036", "0.5981373", "0.59806323", "0.5976777", "0.5973909", "0.59734905", "0.59671503", "0.59650415", "0.59591967", "0.59391737", "0.59377444", "0.59254414", "0.591245", "0.5911554", "0.5909364", "0.5908708", "0.5906807", "0.58999664", "0.58935493", "0.58892643", "0.5883382", "0.5881639", "0.5879991", "0.5876404", "0.5874785", "0.5867733", "0.5862566", "0.5862239", "0.58619523", "0.58609384", "0.5860476", "0.5860021", "0.585916", "0.5850673", "0.5847479", "0.58421946", "0.5840203", "0.5837694", "0.5837353", "0.5836879", "0.58346534", "0.58321583", "0.5831589", "0.5831109", "0.58236605", "0.5819116", "0.5816908", "0.58144253", "0.58131593", "0.58126634", "0.579655", "0.57894087", "0.5788404" ]
0.62929934
23
Used in all search functions to log results
function logResults() { fs.appendFile("log.txt", logString, "utf8", function(err) { if (err) throw err; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function logResults(data) {\n console.log(data);\n}", "searchAndLog(phrase) {\n /* eslint-disable no-console */\n this.search(phrase).then(results => {\n console.group(`Search For '${phrase}'`);\n for (let result of results) {\n let doc = result.document;\n if (doc.type === 'class') {\n console.groupCollapsed(`Class: %c${doc.title}`, 'font-family: monospace');\n for (let [term, match] of Object.entries(result.resultInfo.matchData.metadata)) {\n for (let [key, data] of Object.entries(match)) {\n if (key === 'keywords') {\n let test = term.toLowerCase();\n for (let keyword of doc.keywords) {\n if (keyword.toLowerCase().indexOf(test) !== -1) {\n console.log(`%c${keyword} %c(field)`, 'font-family: monospace; font-weight: bold', 'font-family: inherit; font-weight: normal');\n }\n }\n } else {\n for (let position of data.position) {\n logSnippet(doc, key, position);\n }\n }\n }\n }\n console.groupEnd();\n } else if (doc.type === 'template') {\n console.groupCollapsed(`Route: %c${doc.route}`, 'font-family: monospace');\n for (let match of Object.values(result.resultInfo.matchData.metadata)) {\n for (let [key, data] of Object.entries(match)) {\n for (let position of data.position) {\n logSnippet(doc, key, position);\n }\n }\n }\n console.groupEnd();\n }\n }\n console.groupEnd();\n });\n /* eslint-enable */\n }", "afterSearch(result, params) {\n console.log(\"Hereeeeeeeeeee 12\");\n }", "logViewSearchResults(object) {\n if (!isObject(object)) {\n throw new Error(\n 'firebase.analytics().logViewSearchResults(*): The supplied arg must be an object of key/values.',\n );\n }\n\n return this.logEvent(\n 'view_search_results',\n validateStruct(\n object,\n structs.ViewSearchResults,\n 'firebase.analytics().logViewSearchResults(*):',\n ),\n );\n }", "function logSearches(term) {\n\n fs.appendFile(\"log.txt\", term, function (err) {\n if (err) throw err;\n })\n\n}", "function searchLog({\n query,\n limit=defaultResultLimit,\n}) {\n return db.search({\n query,\n fields: ['title', 'text'],\n include_docs: true,\n highlighting: true,\n limit,\n }).then(\n result => result.rows\n ).catch(\n err => console.error(err)\n )\n}", "function fetchResults(txt) {\n\tconsole.log(searchStr);\n}", "function logScores(results, next, context) {\n if (context.query) {\n AJS.debug(\"*** Mentions *** user-pipeline/logger: Logging search results for \" + context.query);\n\n results.forEach(function (user) {\n AJS.debug(\"*** Mentions *** user-pipeline/logger: \" + user.displayName + \" has a score of \" + user.fuseScore);\n });\n }\n\n next(results);\n }", "function logScores(results, next, context) {\n if (context.query) {\n AJS.debug(\"*** Mentions *** user-pipeline/logger: Logging search results for \" + context.query);\n\n results.forEach(function (user) {\n AJS.debug(\"*** Mentions *** user-pipeline/logger: \" + user.displayName + \" has a score of \" + user.fuseScore);\n });\n }\n\n next(results);\n }", "function notifySavedResults() {\n console.log('\\n==============================================\\n');\n console.log(\"I've went ahead and query results into log.txt as well!\");\n console.log('\\n==============================================\\n');\n}", "afterCountSearch(result, params) {\n console.log(\"Hereeeeeeeeeee 14\");\n }", "function PathSearchResultCollector() {\n\n}", "function logResults(results, meta)\n{\n\tvar done,output,result;\n\tvar nextIsReady = true;\n\t\n\twhile (nextIsReady)\n\t{\n\t\tresult = results[meta.currentIndex];\n\t\t\n\t\tif (result !== undefined)\n\t\t{\n\t\t\tdone = meta.done===true && meta.currentIndex>=results.length-1;\n\t\t\t\n\t\t\toutput = logResult(result, done);\n\t\t\t\n\t\t\tif (done === true)\n\t\t\t{\n\t\t\t\tif (output !== \"\") output += \"\\n\";\n\t\t\t\t\n\t\t\t\toutput += chalk.gray(\"Finished! \"+meta.totalCount+\" links found. \");\n\t\t\t\t\n\t\t\t\tif (meta.excludedCount > 0)\n\t\t\t\t{\n\t\t\t\t\toutput += chalk.gray(meta.excludedCount+\" excluded. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\toutput += chalk[ meta.brokenCount>0 ? \"red\" : \"green\" ](meta.brokenCount+\" broken\");\n\t\t\t\toutput += chalk.gray(\".\");\n\t\t\t}\n\t\t\t\n\t\t\tif (output !== \"\") console.log(output);\n\t\t\tif (done === true) return;\n\t\t\t\n\t\t\tmeta.currentIndex++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnextIsReady = false;\n\t\t}\n\t}\n}", "function searchLogs() {\n var search_text = $(\"#searchlogtext\").val();\n search_text = search_text.replace(/^ +/g, \"\");\n search_text = search_text.replace(/ +$/g, \"\");\n search_text = search_text.replace(/ +/g, \" \");\n search_logparam = '';\n if (/date/.test(search_text)) {\n var date = search_text.split(\":\")[1];\n search_logparam += \"&search_date=\" + date;\n } else if (/message/.test(search_text)) {\n var msg = search_text.split(\":\")[1];\n search_logparam += \"&search_message=\" + msg;\n }\n $('#logspagination').twbsPagination('destroy');\n show_logs(lrole, 1);\n\n}", "function getParamsAndLog(userID, workerID, businessID, searchTerm, pageName, action, ipAdress) {\n log(userID||\"\", workerID||\"\", businessID||\"\", searchTerm||\"\", pageName||\"\", action||\"\", ipAdress||\"\", document.referrer);\n}", "function logResults(results) {\n fs.appendFile(\"log.txt\", results[0] + \"\\n\", function(err) {\n if (err) {\n return console.log(err);\n }\n let remainder = results.slice(1)\n if (remainder.length > 0) {\n logResults(remainder);\n }\n });\n}", "function log() {\n logger.hit(`${this.req.url} ${this.statusCode} ${this.req.method} ${this.req.body.From} ${this.req.body.Body} ${this[action_symbol]}`, this)\n}", "function logText(search){\nfs.appendFile('log.txt', `\\nInput: ${input}, Search: ${search.join(\" \")}`, function (err) {\n if (err) \n return console.log(err);\n console.log('Search Stored');\n});\n}", "function printLogs(file, per_page, search) {\n curr_log = file;\n $('#actions-menu').empty();\n $('#actions-menu').append('<li><a href=\"#\" onclick=\"search_log(); return false\"><i class=\"glyphicon glyphicon-refresh\"></i> Refresh</a></li>');\n\n $.when(getLogs(file, per_page, search)).done(function (data) {\n\n }).fail(function (message) {\n addModalError(message);\n });\n}", "function showResults() {\n\t\t\t\tconsole.clear();\n\t\t\t\tconsole.log(data);\n\t\t\t}", "static logResult(result) {\n console.log(result);\n }", "function spotifySong(){\n\tspotify.search({type: 'track', query: term}, function(err, data) {\n\t if (err) {\n\t console.log('Error occurred: ' + err);\n\t return;\n\t } else{\n\t \tvar results = data.tracks;\n\t \tfor (var i = 0; i < 20; i++) {\n\t \t\tconsole.log(\" \");\n\t \t\tconsole.log(\"Song Title: \" + results.items[i].name +\n\t \t\t\t\"\\nArtist: \" + results.items[i].artists[0].name + \"\\nPreview: \" + \n\t \t\t\tresults.items[i].preview_url + \"\\nAlbum Name: \" \n\t \t\t\t+ results.items[i].album.name + \n\t \t\t\t\"\\n-------------------------------------------------------------------------------------------------------\");\n\t \t}\n\t }\n\t});\n\tfs.appendFile(\"log.txt\", \" (%) Find song: \" + term);\n}", "function handleMultipleResults(address, result) {\n logGeo('Sorry, your query \"' + address + '\" returned multiple results:<br>');\n for (var i = 0; i<result.length; i++) {\n logGeoAdd (result[i].formatted_address);\n }\n logGeoAdd('<br>Please refine your search.');\n}", "function getSearchResults(request) {\n return \"Search Results.\";\n}", "function find_logs(es_server, my_index, user, pretty, mysorttype){\n\tvar filter = [ { \"date\": { \"order\": \"desc\" }}];\nif (mysorttype!=undefined){\n\tmysorttype=mysorttype %10;\n\tif (mysorttype== \"2\"){//Code\n\t\tfilter = [ {\"code\":{ \"order\":\"asc\"}}, { \"date\": { \"order\": \"desc\" }} ];\n\t} else if (mysorttype== \"3\"){//User\n\t\tfilter = [ {\"user\":{ \"order\":\"asc\"}}, { \"date\": { \"order\": \"desc\" }} ];\n\t} else if (mysorttype== \"4\"){//Ip\n\t\tfilter = [ {\"ip\":{ \"order\":\"asc\"}}, { \"date\": { \"order\": \"desc\" }} ];\n\t} else if (mysorttype== \"5\"){//Message\n\t\tfilter = [ {\"message\":{ \"order\":\"asc\"}}, { \"date\": { \"order\": \"desc\" }} ];\n\t}\n}else{\n\tmysorttype=6;\n}\n\tvar my_type = 'logs';\n\treturn new Promise( (resolve,reject) => {\n\t\tvar elasticsearch = require('elasticsearch');\n\t\tvar client = new elasticsearch.Client({\n\t\t\thost: es_server,\n\t\t\tlog: 'error'\n\t\t});\n\t\tuser=\"\";\n\t\tif(user.length==0){\n\t\t\tvar myquery = {\"query\":{\"match_all\": {} }, \"sort\": filter };\n\t\t\tif (mysorttype== \"1\"){//_id\n\t\t\t\tmyquery = { \"query\": { \"match_all\": {} }, \"sort\": { \"_uid\": \"desc\" }, \"size\": 1 };\n\t\t\t}\n\t\t\tclient.search({\n\t\t\t\tindex: my_index,\n\t\t\t\ttype: my_type,\n\t\t\t\tsize: 1000,\n\t\t\t\tbody:myquery\n\t\t\t}, function(error, response) {\n\t\t\t\tif (error) {\n\t\t\t\t\treject(\"error: \"+error);\n\t\t\t\t}else{\n\t\t\t\t\tresolve( (JSON.stringify(response.hits.hits)));\n\t\t\t\t}\n\t\t\t});\n\t\t}else{\n\t\t\tclient.search({\n\t\t\t\tindex: my_index,\n\t\t\t\ttype: my_type,\n\t\t\t\tsize: 1000,\n\t\t\t\tbody: {\n\t\t\t\t\t\"query\":{\"bool\":{\"must\":[\n\t\t\t\t\t\t{\"match_phrase\":{\"user\": user }}\n\t\t\t\t\t]}}\n\t\t\t\t}\n\t\t\t}, function(error, response) {\n\t\t\t\tif (error) {\n\t\t\t\t\treject(\"error: \"+error);\n\t\t\t\t}else{\n\t\t\t\t\tresolve( (JSON.stringify(response.hits.hits)));\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n}", "function logResults(data) {\n fs.appendFile(\"log.txt\", data, function (err) {\n if (err) throw err;\n });\n}", "function logResults (data){\n fs.appendFile(\"log.txt\", data, function (err) {\n if (err) throw err;\n });\n}", "function getMovieInfo() {\n if (searchTerm === \"\") {\n searchTerm = \"Star Wars\";\n }\n axios\n .get(\"http://omdbapi.com/?apikey=trilogy&s=\" + searchTerm)\n .then(function(response) {\n logString +=\n \"\\n\\n\\nYou Searched For: \" +\n searchTerm +\n \"\\nThis Search Resulted in \" +\n response.data.Search.length +\n \" results\" +\n \"\\n******** Results *********\\n\\n\";\n response.data.Search.forEach(movie => {\n logString +=\n \"Movie Title - \" +\n movie.Title +\n `\\nMovie Year - ${movie.Year}` +\n `\\nMovie IMDB ID - ${movie.imdbID}` +\n \"\\nMedia Type - \" +\n movie.Type +\n \"\\nPoster URL - \" +\n movie.Poster +\n \"\\n\\n\";\n });\n logString += \"\\n******** End *********\\n\";\n console.log(logString);\n logResults();\n });\n}", "function handleNormalSearch(query) {\n\tconsole.log(\"doing normal search with query: \" + query);\n\t// TODO: you should do normal search here\n}", "function DO_LOG(aText) {\n dump(SEARCH_LOG_PREFIX + aText + \"\\n\");\n var consoleService = Cc[\"@mozilla.org/consoleservice;1\"].\n getService(Ci.nsIConsoleService);\n consoleService.logStringMessage(aText);\n}", "function performSearch() {\n // reset the scroll in case they scrolled down to read prior results\n window.scrollTo(0, 0)\n\n fetchSearch(\n // Ensures event properties include \"type\": \"gene\" in search logging.\n 'gene', {\n page: searchParams.page,\n genes: searchParams.genes,\n preset: searchParams.preset\n }).then(results => {\n setSearchState({\n params: searchParams,\n isError: false,\n isLoading: false,\n isLoaded: true,\n results,\n updateSearch\n })\n }).catch(error => {\n setSearchState({\n params: searchParams,\n isError: true,\n isLoading: false,\n isLoaded: true,\n results: error,\n updateSearch\n })\n })\n }", "onSearch() {\n try {\n const searchText = this.getSearchHash();\n if (searchText === this.priorSearchText)\n return;\n this.engine.search(searchText);\n this.priorSearchText = searchText;\n }\n catch (ex) {\n this.publish(\"error\", ex.message);\n }\n }", "afterSearch(searchText, result) {\n }", "function movieSearch(search) {\n console.log(\"Give it a second...\");\n if(search == undefined) {\n search = 'Mr. Nobody';\n }\n var options = {\n url: 'http://www.omdbapi.com/',\n qs: {\n t: search,\n plot: 'short',\n r: 'json',\n tomatoes: 'true'\n }\n }\n request(options, function(error, response, body) {\n if(!error && response.statusCode == 200) {\n //converts body from string type to JSON object\n body = JSON.parse(body);\n console.log('--------------------------------------------------------------');\n console.log('Title: '+ body.Title);\n console.log('--------------------------------------------------------------');\n console.log('Year Released: '+ body.Year);\n console.log('--------------------------------------------------------------');\n console.log('Plot: '+ body.Plot);\n console.log('--------------------------------------------------------------');\n console.log('Countries Released in: '+ body.Country);\n console.log('--------------------------------------------------------------');\n console.log('Languages Released in: '+ body.Language);\n console.log('--------------------------------------------------------------');\n console.log('Actors: '+ body.Actors);\n console.log('--------------------------------------------------------------');\n console.log('IMDB Rating: '+ body.imdbRating);\n console.log('--------------------------------------------------------------');\n console.log('Rotten Tomatoes Rating: '+ body.tomatoRating);\n console.log('--------------------------------------------------------------');\n console.log('Rotten Tomatoes URL: '+ body.tomatoURL);\n console.log('--------------------------------------------------------------');\n\n var movieData = {\n 'Title': body.Title, 'Year Released': body.Year, 'Plot': body.Plot, \n 'Countries Released in': body.Country, 'Languages Released in': body.Language,\n 'Actors': body.Actors, 'IMDB Rating': body.imdbRating,\n 'Rotten Tomatoes Rating': body.tomatoRating, 'Rotten Tomatoes URL': body.tomatoURL\n }\n\n //Passes the movie data to the appendToLog function which appends the data to the log file\n appendToLog(movieData, 'movie');\n }\n })\n}", "function onSearchResponse(response) {\n\t\tconsole.log(\"FUNCTION: onSearchResponse()\");\n\t\tshowResponse(response);\n\t}", "function logSuggestions(response) {\n console.log(response.result);\n return res.status(200).json(response.result);\n console.log(\"*********************\");\n }", "function songSearch(userInput) {\nspotify.search({type: \"track\", query:userInput}, function(err, data){\n if(err) {\n console.log('Error Occured: ' + err);\n return;\n }\n console.log(\"--------SPOTIFY START---------\");\n console.log(\"Artist: \" + JSON.stringify(data.tracks.items[0].artists[0].name));\n console.log(\"Song Name: \" + JSON.stringify(data.tracks.items[0].name));\n console.log(\"Preview Link: \" + JSON.stringify(data.tracks.items[0].preview_url));\n console.log(\"Album: \" + JSON.stringify(data.tracks.items[0].album.name));\n console.log(\"--------SPOTIFY END---------\");\n fs.appendFileSync(\"log.txt\",\"==============SPOTIFY START==============\");\n fs.appendFileSync(\"log.txt\",\"\\nArtist: \" + JSON.stringify(data.tracks.items[0].artists[0].name));\n fs.appendFileSync(\"log.txt\", \"\\nSong Name: \" + JSON.stringify(data.tracks.items[0].name));\n fs.appendFileSync(\"log.txt\", \"\\nPreview Link: \" + JSON.stringify(data.tracks.items[0].preview_url));\n fs.appendFileSync(\"log.txt\", \"\\nAlbum: \" + JSON.stringify(data.tracks.items[0].album.name));\n fs.appendFileSync(\"log.txt\",\"\\n==============SPOTIFY END================\\n\");\n fs.appendFileSync(\"log.txt\",\" \\n \");\n });\n}", "function songSearch() {\n spotify\n .search({ type: \"track\", query: `${userSearch}` })\n .then(function(response) {\n var matches = 0;\n for (var i = 0; i < response.tracks.items.length; i++) {\n if (\n response.tracks.items[i].name.toLowerCase() ===\n userSearch.toLowerCase()\n ) {\n matches++;\n console.log(`Artist: ${response.tracks.items[i].artists[0].name}`);\n console.log(`Title: ${response.tracks.items[i].name}`);\n console.log(\n `Link to Song: ${response.tracks.items[i].external_urls.spotify}`\n );\n console.log(`Album: ${response.tracks.items[i].album.name}`);\n fs.appendFile(\n \"log.txt\",\n JSON.stringify(`${userChoice} ${userSearch} Artist: ${\n response.tracks.items[i].artists[0].name\n }\n Title: ${response.tracks.items[i].name}\n Link to Song: ${\n response.tracks.items[i].external_urls.spotify\n } Album: ${response.tracks.items[i].album.name}`),\n err => {\n if (err) throw err;\n }\n );\n }\n }\n if (matches === 0) {\n for (var i = 0; i < response.tracks.items.length; i++) {\n matches++;\n console.log(`Artist: ${response.tracks.items[i].artists[0].name}`);\n console.log(`Title: ${response.tracks.items[i].name}`);\n console.log(\n `Link to Song: ${response.tracks.items[i].external_urls.spotify}`\n );\n console.log(`Album: ${response.tracks.items[i].album.name}`);\n }\n }\n userSearch = \"\";\n userChoice = undefined;\n toDo();\n })\n .catch(function(err) {\n console.log(err);\n });\n}", "function bandSearch() {\n axios\n .get(\n `https://rest.bandsintown.com/artists/${userSearch}/events?app_id=${\n bands.id\n }`\n )\n .then(function(response) {\n for (var i = 0; i < response.data.length; i++) {\n console.log(`Venue: ${response.data[i].venue.name}\n Location: ${response.data[i].venue.city}, ${\n response.data[i].venue.country\n }\n Time: ${moment(response.data[i].datetime).format(\"MM/DD/YYYY\")}`);\n fs.appendFile(\n \"log.txt\",\n JSON.stringify(`${userChoice} ${userSearch} Venue: ${\n response.data[i].venue.name\n }\n Location: ${response.data[i].venue.city}, ${\n response.data[i].venue.country\n }\n Time: ${moment(response.data[i].datetime).format(\"MM/DD/YYYY\")}`),\n err => {\n if (err) throw err;\n }\n );\n }\n userSearch = \"\";\n userChoice = undefined;\n toDo();\n });\n}", "function LogSearcher(cfg) {\n var db = new sqli.Database(cfg.fileName, sqli.OPEN_READONLY, function(err) {\n });\n \n \n \n \n this.search = function(query, start, limit, sort, dir, opts, callback) {\n if (isNaN(start)) start = 0;\n if (isNaN(limit)) limit = 100;\n if (sort == undefined || sort == null || sort == '') sort = 'entryid';\n if (dir == undefined || dir == null || !_.isString(dir) || (dir.toUpperCase() != 'ASC' && dir.toUpperCase() != 'DESC')) dir = 'asc';\n \n if (!_.isFunction(callback)) throw new Error('callback expected (param #7)');\n console.log('got query:', query);\n var qry = [];\n prm = {};\n \n var getTS = function(v) {\n if (isNaN(v)) {\n var ts = moment.tz(v, cfg.timeZone || 'UTC').valueOf();\n if (isNaN(ts)) throw new Error('timestamp invalid');\n return ts;\n } else {\n return parseInt(v);\n }\n };\n if (_.has(query, 'startTime') && query.startTime != undefined) {\n var ts = getTS(query.startTime);\n prm.$ts_from = ts;\n qry.push(\"ts >= $ts_from\");\n };\n if (_.has(query, 'endTime') && query.endTime != undefined) {\n var ts = getTS(query.endTime);\n prm.$ts_to = ts;\n qry.push(\"ts < $ts_to\");\n };\n if (_.has(query, 'timestamp') && query.timestamp != undefined) {\n var ts = query.timestamp;\n if (!_.isArray(ts) || ts.length != 2) throw new Error('timestamp should be a 2-element array [from, to]');\n qry.push(\"ts >= $ts_from AND ts < $ts_to\");\n prm.$ts_from = ts[0];\n prm.$ts_to = ts[1];\n };\n if (_.has(query, 'correlation') && query.correlation != undefined) {\n if (!_.isString(query.correlation)) throw new Error('correlation should be a string');\n qry.push('correlation = $correlation');\n prm.$correlation = query.correlation;\n };\n if (_.has(query, 'source') && query.source != undefined) {\n if (!_.isString(query.source)) throw new Error('source should be a string');\n qry.push('source == $source');\n prm.$source = query.source;\n };\n if (_.has(query, 'uid') && query.uid != undefined) {\n if (!_.isString(query.uid)) throw new Error('uid should be a string');\n qry.push('uid == $uid');\n prm.$uid = query.uid;\n };\n if (_.has(query, 'logname') && query.logname != undefined) {\n qry.push('logname LIKE $logname');\n prm.$logname = query.logname + '%';\n };\n if (_.has(query, 'text') && query.text != undefined) {\n if (false) qry.push('message LIKE $text');\n if (true) qry.push('entryid in (select rowid from logentry_fts where message MATCH $text)');\n prm.$text = query.text;\n };\n if (_.has(query, 'pid')) {\n qry.push('pid == $pid');\n prm.$pid = query.pid;\n };\n if (_.has(query, 'threadid')) {\n qry.push('threadid == $threadid');\n prm.$threadid = query.threadid;\n };\n if (_.has(query, 'level') && query.level != undefined) {\n var lvl = _.isArray(query.level) ? query.level : [query.level];\n lvl = _.map(lvl, getLogLevelId);\n if (lvl.length == 1) {\n qry.push('level <= $level');\n prm.$level = lvl[0];\n }\n else {\n qry.push('level in (' + lvl.join(', ') + ')');\n };\n };\n var sql = \"select entryid, ts, level, correlation, source, logname, message, pid, threadid, uid, send_addr from logentry \";\n if (qry.length > 0) sql += \"where \" + qry.join(\" AND \");\n sql += \" order by \" + sort + \" \" + dir;\n sql += \" LIMIT \" + start + \", \" + (limit + 1);\n console.log('sql', sql, prm);\n db.all(sql, prm, function(err, rows) {\n if (err) {\n callback(false, 'query error');\n } else {\n var hasMore = rows.length > limit;\n if (hasMore) rows = rows.slice(0, -1);\n _.forEach(rows, function(r) {\n r.time = moment.tz(r.ts, cfg.timeZone || 'UTC').format('YYYY-MM-DD HH:mm:ss.SSS');\n r.level = getLogLevelName(r.level);\n });\n var ret = {\n data: rows,\n hasMore: hasMore,\n start: start,\n limit: limit,\n query: query,\n sort: '',\n dir: 'asc',\n logStartTime: 'TODO: base date of log start/log rotation'\n };\n \n callback(true, ret);\n }\n });\n };\n \n this.getLogStats = function(prm, callback) {\n callback(true, {\n logName: '',\n logStartTime: '',\n firstEventTS: 323,\n lastEventTS: 423423,\n totalEvents: 342349920\n }); \n };\n \n this.close = function() {\n if (db != null) {\n console.log('closing db');\n db.close();\n db = null;\n };\n };\n}", "function renderResults(){\n console.log(results)\n}", "function displayQueryLogs() {\n\t\t\t$scope.queryLogsBusy = true;\n\t\t\tdisplayLogsTimeout = $timeout(function() {\n\t\t\t\tvar queryLogsStamp=lastLogStamp;\n\t\t\t\tjawsService.getQueryLogs(curQueryId,lastLogStamp,CONFIG.LOGS_PER_PAGE)\n\t\t\t\t\t.then(function(response) {\n\t\t\t\t\t\tvar logsNum = response.logs.length;\n\t\t\t\t\t\t//remove first log as we already processed it in last request\n\t\t\t\t\t\tif (queryLogsStamp!==0)\n\t\t\t\t\t\t\tresponse.logs.shift();\n\t\t\t\t\t\t\n\t\t\t\t\t\taddLogs(response.logs);\n\t\t\t\t\t\tif (logsNum >= CONFIG.LOGS_PER_PAGE) \n\t\t\t\t\t\t\tdisplayQueryLogs();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$scope.queryLogsBusy = false;\n\t\t\t\t\t});\n\t\t\t\t},10);\n\t\t\t\n\t\t}", "function afterMatchFound(result, ctx) {\n\n if(ctx.friendlies.indexOf(result.user.toLowerCase()) > -1) {\n result.relevance += ((1.0 - result.relevance) * 0.5); // up the relevance because it comes from a friendly\n }\n\n if(result.tags.length > 0) { // result.relevance\n console.debug(\"Found relevant match\" + (result.volatile ? \" [VOLATILE]\" : \"\") + \".\");\n console.debug(result.tweetid + \" [\"+result.relevance+\"]: \" + JSON.stringify(result.tags));\n // send through to InfluxDB\n saveTweetToInflux(result)\n } else {\n console.debug(\"Event not found to be relevant.\");\n }\n}", "function logCurentCallToLocaLStorage() {\n\n}", "function spotifySearch(){\n outPutForLog = [];\n outPutForLog.unshift(outputText);\n outPutForLog.unshift(\"\\n\");\n\n //if there is no song typed into the CLI then 'The Sign' by Ace of Base will be searched\n if(process.argv.length === 3){\n userQuestion = \"The Sign\"\n spotify.search({ type: 'track', query: userQuestion ,limit: 10 })\n .then(function(response) {\n console.log(\"\\r\\n\\r\\n\\r\\n\");\n \n //artist name\n console.log(\"Artists: \" + response.tracks.items[9].album.artists[0].name);\n outPutForLog.push(\"Artists: \" + response.tracks.items[9].album.artists[0].name);\n //song name\n console.log(\"Song Title: \" + response.tracks.items[9].name);\n outPutForLog.push(\"Song Title: \" + response.tracks.items[9].name);\n //preview link\n console.log(\"Preview Url: \" + response.tracks.items[9].preview_url);\n outPutForLog.push(\"Preview Url: \" + response.tracks.items[9].preview_url);\n //album name\n console.log(\"Album Title: \" + response.tracks.items[9].album.name);\n outPutForLog.push(\"Album Title: \" + response.tracks.items[9].album.name);\n \n console.log(\"\\r\\n\\r\\n\\r\\n\");\n displayForLog = outPutForLog.join(\"\\n \");\n appendOutput();\n })\n .catch(function(err) {\n console.log(err);\n });\n } else {\n spotify.search({ type: 'track', query: userQuestion ,limit: 1 })\n .then(function(response) {\n console.log(\"\\r\\n\\r\\n\\r\\n\");\n\n //artist name\n console.log(\"Artists: \" + response.tracks.items[0].album.artists[0].name);\n outPutForLog.push(\"Artists: \" + response.tracks.items[0].album.artists[0].name);\n //song name\n console.log(\"Song Title: \" + response.tracks.items[0].name);\n outPutForLog.push(\"Song Title: \" + response.tracks.items[0].name);\n //preview link\n console.log(\"Preview Url: \" + response.tracks.items[0].preview_url);\n outPutForLog.push(\"Preview Url: \" + response.tracks.items[0].preview_url);\n //album name\n console.log(\"Album Title: \" + response.tracks.items[0].album.name);\n outPutForLog.push(\"Album Title: \" + response.tracks.items[0].album.name);\n\n console.log(\"\\r\\n\\r\\n\\r\\n\");\n displayForLog = outPutForLog.join(\"\\n \");\n appendOutput();\n\n })\n .catch(function(err) {\n console.log(err);\n });\n}\n}", "function spotifySearch(search) {\n console.log(\"Give it a second...\");\n if(search == undefined) {\n search = \"what's my age again\";\n }\n spotify.search({ type: 'track', query: search }, function(error, response) {\n if ( error ) {\n console.log('Error occurred: ' + error);\n return;\n }\n console.log('--------------------------------------------------------------');\n console.log('Artist(s): ' + response.tracks.items[0].artists[0].name);\n console.log('--------------------------------------------------------------');\n console.log('Song Name: ' + response.tracks.items[0].name);\n console.log('--------------------------------------------------------------');\n console.log('Preview Link: ' + response.tracks.items[0].preview_url);\n console.log('--------------------------------------------------------------');\n console.log('Album: ' + response.tracks.items[0].album.name);\n console.log('--------------------------------------------------------------');\n \n var spotifyData = {\n 'Artist(s)': response.tracks.items[0].artists[0].name,\n 'Song Name': response.tracks.items[0].name,\n 'Preview Link': response.tracks.items[0].preview_url,\n 'Album': response.tracks.items[0].album.name\n }\n appendToLog(spotifyData, 'spotify');\n});\n}", "function logResults(action, response, autoplay) {\n\n var text = action + \", \" + response + \", \" + autoplay + \"\\n\";\n\n fs.appendFile(\"log.txt\", text, function (err) {\n\n if (err) {\n console.log(\"Danger! Danger Will Robinson!\");\n }\n\n })\n}", "function thisSong(string) {\n spotify.search({ type: \"track\", query: string, limit: 1 }, function(\n err,\n data\n ) {\n if (err) {\n return console.log(\"Error occurred: \" + err);\n }\n\n var artist = data.tracks.items[0].artists[0].name;\n var song = data.tracks.items[0].name;\n var link = data.tracks.items[0].external_urls.spotify;\n var album = data.tracks.items[0].album.name;\n\n console.log(separator.gray);\n console.log(\" \");\n console.log(\" \" + \"The song \" + song.green + \" by \" + artist.green);\n console.log(\" \" + \"is included in the album \" + album.green);\n console.log(\" \" + \"and can be previewed at \" + link.green);\n console.log(separator.gray);\n\n logIt(\n \"<<<<<<<<<<<<<<<<<<<<<<<< NEW LOG STARTS HERE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\"\n );\n logIt(separator);\n logIt(\" \");\n logIt(\" \" + \"The song \" + song + \" by \" + artist);\n logIt(\" \" + \"is included in the album \" + album);\n logIt(\" \" + \"and can be previewed at \" + link);\n logIt(separator);\n });\n}", "function backendSearch(params) {\n\n $.post('/' + engine + '/points/get', params)\n .done(function (data) {\n\n logger.addItem('Engine: ' + engine);\n logger.addItem('Items found: ' + data.stats.found);\n logger.addItem('Query time (ms): ' + data.stats.time);\n clearOverlays();\n\n data.items.forEach(function (item) {\n addMarker(item.location.coordinates[1], item.location.coordinates[0], $map.data('gmap').map);\n });\n\n logger.render();\n });\n }", "function logData(trigger) {\r\n\t// ajax call to database to store interactions\r\n}", "trackResultsChange(results) {\n /**\n * Construct the payload.\n */\n const gtmSearchTitle = this.props.searchName || 'Unnamed React search';\n const keywordField = this.props.keywordField || 'q';\n const query = this.searchkit.state[keywordField];\n let page = typeof this.searchkit.state.p == 'undefined' ? 1 : this.searchkit.state.p;\n let totalResults = this.getHitsCount();\n\n /**\n * Figure out paging and filtering events.\n */\n let previousPage = typeof this.previousState.p == 'undefined' ? 1 : this.previousState.p;\n let pagingEvent = page != previousPage && query == this.previousState.q;\n\n var pushObject = {\n 'event': 'site search event',\n 'content-name': '/search?query=' + query + '&cat=' + gtmSearchTitle + '&page=' + page,\n 'keyword': query,\n 'target': gtmSearchTitle,\n 'value': totalResults,\n 'searchFiltered': 'false',\n 'searchSorted': 'false',\n 'searchPaged': pagingEvent ? 'true' : 'false',\n 'searchNoResults': totalResults < 1 ? 'true' : 'false',\n 'searchGeo': 'false',\n 'pageNumber': page\n };\n\n /**\n * Allow the object to be changed.\n */\n const derivedValues = this.derivePayloadValues(results);\n let payload = defaults(derivedValues, pushObject);\n\n /**\n * Set the content-name to be constructed from other values.\n */\n payload['content-name'] = '/search?query=' + payload.keyword + '&cat=' + payload.target + '&page=' + payload.pageNumber;\n\n /**\n * Push the event to dataLayer.\n */\n dataLayer.push(payload);\n\n /**\n * Save state for later, this needs redux :C\n */\n this.previousState = this.searchkit.state;\n }", "function display_results() {\n}", "function search() {\n\tvar query = $(\".searchfield\").val();\n\tif (query == \"\") {\n\t\tdisplaySearchResults(\"\", data, data);\n\t}\n\telse {\n\t\tvar results = idx.search(query);\n\t\tdisplaySearchResults(query, results, data);\n\t\tga('send', 'event', 'Search', 'submit', query);\n\t}\n}", "function processResults(data, requestStatus, requestId) {\n\t\tconsole.log('data:', data);\n\t}", "async function allSearch(searchTerm) {\n\tconst wikipedia = await wikiSearch(searchTerm);\n\tconst youtube = await youTubeSearch(searchTerm);\n const listenNotes = await listenNotesSearch(searchTerm);\n\tconst apiNews = await apiNewsSearch(searchTerm);\n\t\n\tconst historyItem = {\n\t\twikipedia,\n\t\tyoutube,\n\t\tlistenNotes,\n apiNews,\n\t\tsearchTerm,\n\t};\n\n\tappendHistory(historyItem);\n}", "onResults(event) {\n this.logger('[SpeechRecognition] onResults triggered.');\n\n const current = event.resultIndex;\n const transcript = event.results[current][0].transcript;\n\n const matches = /(?:show me )(.*)/gi.exec(transcript);\n\n if (matches) {\n const place = matches[1];\n\n this.logger('[SpeechRecognition] City detected: ' + place);\n this.app.onPlaceChose({name: place});\n this.app.mainInput.setText(place);\n }\n }", "function getSpotifyInfo() {\n if (searchTerm === \"\") {\n searchTerm = \"the sign ace of base\"; // default search\n }\n spotify.search({ type: \"track\", query: searchTerm }, function(err, data) {\n if (err) {\n logString += \"Error occurred: \" + err;\n return console.log(logString);\n }\n logString += \"\\n\\n\\nYou Searched For: \" + searchTerm;\n logString += \"\\n******** Results *********\\n\\n\";\n logString += \"\\nSong Name - \" + data.tracks.items[0].name;\n logString +=\n \"\\nArtist Name - \" + data.tracks.items[0].album.artists[0].name;\n logString += \"\\nAlbum Name - \" + data.tracks.items[0].album.name;\n if (data.tracks.items[0].preview_url) {\n logString += \"\\nPreview URL - \" + data.tracks.items[0].preview_url;\n } else {\n logString += '\\nPreview URL - Unavailable for \"' + searchTerm + '\"';\n }\n logString += \"\\n\\n******** End *********\\n\\n\\n\";\n console.log(logString);\n logResults();\n });\n}", "function SearchWrapper () {}", "onOutput(data) {\n //this propagates the query output back to the recipe, who will delegate it further to any configured visualisation\n if (this.props.onOutput) {\n this.props.onOutput(this.constructor.name, data);\n }\n if (data && !data.error) {\n\n this.setState({\n \t//so involved components know that a new search was done\n \tsearchId: data.searchId,\n\n \t//refresh params of the query object\n \tquery : data.query,\n\n //actual OUTPUT of the query\n aggregations: data.aggregations, //for drawing the AggregationBox/List/Histogram\n totalHits: data.totalHits, //shown in the stats\n totalUniqueHits: data.totalUniqueHits, //shown in the stats\n\n //we're not searching anymore\n isSearching: false\n });\n } else {\n \t//Note: searchLayers & desiredFacets & selectedSortParams stay the same\n \tlet q = this.state.query;\n \tq.dateRange = null;\n \tq.selectedFacets = {};\n \tq.fieldCategory = null;\n\n this.setState({\n \tsearchId: null,\n\n \tquery : q,\n\n //query OUTPUT is all empty\n\t\t\t\taggregations: null,\n totalHits: 0,\n totalUniqueHits: 0,\n\n //we're not searching anymore\n isSearching: false\n });\n }\n\n if(data && data.error == 'access denied') {\n \talert('The system is not allowed to search through this collection');\n }\n }", "function findSong(term, response) {\r\n if (!term) {\r\n term = 'The Sign';\r\n }\r\n // console.log(term);\r\n spotify.search({ type: 'track', query: term })\r\n .then(function (response) {\r\n\r\n // console.log(\"B: \" + JSON.stringify(response));\r\n\r\n // Print info to consolelog\r\n //console.log(JSON.stringify(response));\r\n console.log(\"\\n*************SONG INFO**************\\n\");\r\n // Append in log.txt file\r\n fs.appendFileSync(\"log.txt\", \"***************SONG INFO*****************\\n\");\r\n console.log(\"Artist(s): \" + JSON.stringify(response.tracks.items[0].album.artists[0].name));\r\n fs.appendFileSync(\"log.txt\", \"Artist(s): \" + JSON.stringify(response.tracks.items[0].artists[0].name) + \"\\n\");\r\n console.log(\"Song Name: \" + JSON.stringify(response.tracks.items[0].name));\r\n fs.appendFileSync(\"log.txt\", \"Song Name: \" + JSON.stringify(response.tracks.items[0].name) + \"\\n\");\r\n console.log(\"Preview URL: \" + JSON.stringify(response.tracks.items[0].preview_url));\r\n fs.appendFileSync(\"log.txt\", \"Preview URL: \" + (JSON.stringify(response.tracks.items[0].preview_url)) + \"\\n\");\r\n console.log(\"Album: \" + JSON.stringify(response.tracks.items[0].album.name));\r\n fs.appendFileSync(\"log.txt\", \"Album: \" + (JSON.stringify(response.tracks.items[0].album.name)) + \"\\n\");\r\n console.log(divider);\r\n fs.appendFileSync(\"log.txt\", \"-----------------------------------------\\n\");\r\n })\r\n .catch(function (err) {\r\n console.log(err);\r\n });\r\n\r\n //Append songData and the divider to log.txt, print songData to the console\r\n fs.appendFile(\"log.txt\", response + divider, function (err) {\r\n if (err) throw err;\r\n });\r\n}", "function runSearch(e) {\n if (e.target.value === \"\") {\n // On empty string, remove all search results\n // Otherwise this may show all results as everything is a \"match\"\n applySearchResults([]);\n } else {\n const tokens = e.target.value.split(\" \");\n const moddedTokens = tokens.map(function (token) {\n // \"*\" + token + \"*\"\n return token;\n })\n const searchTerm = moddedTokens.join(\" \");\n const searchResults = idx.search(searchTerm);\n const mapResults = searchResults.map(function (result) {\n const resultUrl = docMap.get(result.ref);\n return { name: result.ref, url: resultUrl };\n })\n\n applySearchResults(mapResults);\n }\n\n}", "function track_search_ga_event() {\n\t\tvar formName = '#form_topsearch';\n\t\tvar selected_option_id = $.trim( $( formName + \" #topsearch_type\" ).val() );\n\t\tvar div_id = 'tab' + selected_option_id;\n\t\tvar option_text = $.trim( $( '#' + div_id ).find('a').text() );\n\n\t\tGAEventTracker( 'SEARCHUSAGE', 'NO_OF_USERS', 'RESULTCLICK' ); \n\t\tGAEventTracker( 'SEARCHUSAGE', 'RESULTCLICK', option_text.toUpperCase() );\n\t}", "function waitForResults() {\n\t\t\t$scope.queryLogsBusy = true;\n\t\t\tqueryLogsTimeout = $timeout(function() {\n\t\t\t\tvar queryLogsStamp=lastLogStamp;\n\t\t\t\tjawsService.getQueryLogs(curQueryId,lastLogStamp,CONFIG.LOGS_PER_PAGE)\n\t\t\t\t\t.then(function(response) {\n\t\t\t\t\t\tvar logsNum = response.logs.length;\n\t\t\t\t\t\t//remove first log as we already processed it in last request\n\t\t\t\t\t\tif (queryLogsStamp!==0)\n\t\t\t\t\t\t\tresponse.logs.shift();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\taddLogs(response.logs);\n\t\t\t\t\t\tswitch (response.status) {\n\t\t\t\t\t\t\tcase QUERY_STATUS.IN_PROGRESS:\n\t\t\t\t\t\t\t\twaitForResults();\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase QUERY_STATUS.DONE:\n\t\t\t\t\t\t\t\t$scope.showConfirmation(\"Query executed successfully\");\n\t\t\t\t\t\t\t\tswitchTab(TABIDX_RESULTS);\n\t\t\t\t\t\t\t\tdisplayQueryResults();\n\t\t\t\t\t\t\t\t//make sure we display remaining logs, if any\n\t\t\t\t\t\t\t\tif (logsNum >= CONFIG.LOGS_PER_PAGE)\n\t\t\t\t\t\t\t\t\tdisplayQueryLogs();\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t$scope.queryLogsBusy = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase QUERY_STATUS.FAILED:\n\t\t\t\t\t\t\t\t//make sure we display remaining logs, if any\n\t\t\t\t\t\t\t\tif (logsNum >= CONFIG.LOGS_PER_PAGE)\n\t\t\t\t\t\t\t\t\tdisplayQueryLogs();\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t$scope.queryLogsBusy = false;\n\t\t\t\t\t\t\t\t$scope.showError(\"Query failed!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t},function(response) {$scope.warnNetworkError();});\n\t\t\t}, 1000);\n\t\t}", "function getSpotify(){\n\n\tlet searchTerm;\n\tif(userParameters === undefined){\n searchTerm = \"The Sign Ace of Base\";\n console.log(\"no search term was detected, searching for The Sign by Ace of Base\");\n\t}else{\n // if there are search terms, use the userParameter that was formatted by our for loop\n\t\tsearchTerm = userParameters;\n\t}\n\t//execute the spotify search using the searchTerm\n\tspot.search({type:'track', query:searchTerm}, function(error,data){\n\t if(error){\n\t console.log(`The call to Spotify encountered an error: ${error}`);\n\t return;\n\t }else{\n // if no error was encountered, print the return data: \n\t \t\tconsole.log(\"Artist Name: \" + data.tracks.items[0].artists[0].name);\n console.log(\"Song Name: \" + data.tracks.items[0].name);\n\n // check to see if the preview URL returned is null. Spotify returns null for preview URL \n // when you query a song that is not available to stream in your region. If it is null, return \n // some information to that effect. If it's not null, return the preview URL\n if (data.tracks.items[0].preview_url == null){\n console.log(\"Preview URL is not available - song is not available to stream in your region\")\n }\n else{\n console.log(\"Preview URL: \" + data.tracks.items[0].preview_url);\n };\n console.log(\"Album Name: \" + data.tracks.items[0].album.name);\n getTimeStamp();\n fs.appendFile(\"log.txt\", `***New Log Entry at ${timeStamp}***\\nNEW SONG SEARCH EVENT:\\nArtist Name: ${data.tracks.items[0].artists[0].name}\\nSong Name: ${data.tracks.items[0].name}\\nPreview URL: ${data.tracks.items[0].preview_url}\\nAlbum Name:${data.tracks.items[0].album.name}\\n------\\n`,function(err) {\n });\n\t }\n\t});\n}", "function movieSearch(){\n outPutForLog = [];\n outPutForLog.unshift(outputText);\n outPutForLog.unshift(\"\\n\");\n\n axios.get(\"http://www.omdbapi.com/?t=\" + userQuestion + \"&y=&plot=short&apikey=trilogy\").then(\n function(response) {\n console.log(\"\\r\\n\\r\\n\\r\\n\");\n\n //Title of the movie.\n console.log(\"Movie Title: \" + response.data.Title);\n outPutForLog.push(\"Movie Title: \" + response.data.Title);\n //Release Date\n console.log(\"Release Date: \" + response.data.Released);\n outPutForLog.push(\"Release Date: \" + response.data.Released);\n // IMDB Rating of the movie.\n console.log(\"IMDB Ratinge: \" + response.data.imdbRating);\n outPutForLog.push(\"IMDB Ratinge: \" + response.data.imdbRating);\n //Rotten Tomatoes Rating of the movie.\n console.log(\"Rotten Tomatoes Ratinge: \" + response.data.Ratings[1].Value);\n outPutForLog.push(\"Rotten Tomatoes Ratinge: \" + response.data.Ratings[1].Value);\n //Country where the movie was produced.\n console.log(\"Country: \" + response.data.Country);\n outPutForLog.push(\"Country: \" + response.data.Country);\n //Language of the movie.\n console.log(\"Language: \" + response.data.Language);\n outPutForLog.push(\"Language: \" + response.data.Language);\n //Plot of the movie.\n console.log(\"Plot: \" + response.data.Plot);\n outPutForLog.push(\"Plot: \" + response.data.Plot);\n //Actors in the movie.\n console.log(\"Actors: \" + response.data.Actors);\n outPutForLog.push(\"Actors: \" + response.data.Actors);\n\n console.log(\"\\r\\n\\r\\n\\r\\n\");\n displayForLog = outPutForLog.join(\"\\n \");\n appendOutput();\n }\n );\n}", "function sendSearchQuery(){\n lastAction = \"search\";\n if(!stopped){\n data = {};\n data['instance'] = collection;\n data['string_query'] = 'true';\n data['vector_query'] = 'false';\n query = $(\"div.task\"+currentTask).find('input[name=\"query\"]').val();\n data['query'] = query;\n data['vector_query'] = JSON.stringify(getCurrentVectorQuery());\n $(\".relevance-feedback-search-results\").show();\n $(\".relevance-feedback-search-results\").html(\"Loading...\");\n $.post(\"src/php/similarsentences/similarsentences.php\",\n data,\n handleResults);\n } else {\n startTimedTask(currentTask);\n sendSearchQuery();\n }\n logActivity({\n instance:collection,\n participant: getParticipant(),\n task_number: currentTask,\n activity: \"search\",\n search_query: query,\n num_relevant : -1,\n num_irrelevant: -1,\n })\n}", "executeSearch(term) {\n var results;\n try {\n results = this.search.fuse.search(term); // the actual query being run using fuse.js\n } catch (err) {\n if (err instanceof TypeError) {\n console.log(\"hugo-fuse-search: search failed because Fuse.js was not instantiated properly.\")\n } else {\n console.log(\"hugo-fuse-search: search failed: \" + err)\n }\n return;\n }\n let searchitems = '';\n\n if (results.length === 0) { // no results based on what was typed into the input box\n this.resultsAvailable = false;\n searchitems = '';\n } else { // we got results, show 5\n for (let item in results.slice(0,5)) {\n let result = results[item];\n if ('item' in result) {\n let item = result.item;\n searchitems += this.itemHtml(item);\n }\n }\n this.resultsAvailable = true;\n }\n\n this.element_results.innerHTML = searchitems;\n if (results.length > 0) {\n this.top_result = this.element_results.firstChild;\n this.bottom_result = this.element_results.lastChild;\n }\n }", "onSearchTermChange() {\n this.search();\n Metrics.getInstance().updateMetric(Filters.SEARCH, 1);\n }", "function showResults(results){\n\t\n}", "function SearchResults() {\n\n}", "function movieSearch() {\n axios\n .get(\n `http://www.omdbapi.com/?t=${userSearch}&y=&plot=short&apikey=${OMDB.id}`\n )\n .then(function(response) {\n console.log(`Title: ${response.data.Title}`);\n console.log(`Year: ${response.data.Year}`);\n console.log(`IMDB Rating: ${response.data.imdbRating}`);\n console.log(\n `${response.data.Ratings[1].Source}: ${response.data.Ratings[1].Value}`\n );\n console.log(`Country: ${response.data.Country}`);\n console.log(`Language: ${response.data.Language}`);\n console.log(`Plot: ${response.data.Plot}`);\n console.log(`Actors: ${response.data.Actors}`);\n fs.appendFile(\n \"log.txt\",\n JSON.stringify(`${userChoice} Title: ${response.data.Title}\n Year: ${response.data.Year}\n IMDB Rating: ${response.data.imdbRating}\n ${response.data.Ratings[1].Source}: ${response.data.Ratings[1].Value}\n Country: ${response.data.Country}\n Language: ${response.data.Language}\n Plot: ${response.data.Plot}\n Actors: ${response.data.Actors}`),\n err => {\n if (err) throw err;\n }\n );\n userSearch = \"\";\n userChoice = undefined;\n toDo();\n });\n}", "function spotifySearch() {\n // console.log(\"This is the spotify search\");\n if(process.argv.length === 3){\n searchTerm = \"The Sign\";\n }\n spotify.search({\n type: \"track\",\n query: searchTerm,\n limit: 10,\n }, function(err,data) {\n if(err) {\n return console.log(\"Error occurred: \" + err);\n }\n for (var i = 0; i < data.tracks.items.length; i++) {\n \n console.log(`Artist: ${data.tracks.items[i].artists[0].name}\\nSong Name: ${data.tracks.items[i].name}\\nSpotify Preview Link: ${data.tracks.items[i].preview_url}\\nAlbum: ${data.tracks.items[i].album.name}\\n\\n`);\n }\n })\n trackInfo(action, searchTerm);\n }", "function getSpotify(songName) {\n\n var spotify = new Spotify(keys.spotify)\n // console.log(\"Spotify Key: \" + spotify);\n\n //HA-HA, I'm sorry. I just couldn't bring myself to put \"The Sign\"\n if(!songName){\n songName =\"Overkill\";\n }\n\n spotify.search({type:'track', query: songName}, function (err, data) {\n if (err) {\n return console.log('Error occurred: ' + err);\n }\n\n console.log(\"***************************************************************\")\n //console.log(\"Data.Tracks.items is \" + JSON.stringify(data.tracks.items[0]))\n\n console.log(\"Song Searched For: \" + userSearch+\"\\r\\n\");\n console.log(\"Artist(s): \", data.tracks.items[0].album.artists[0].name + \"\\r\\n\")\n console.log(\"Album Name: \", data.tracks.items[0].album.name + \"\\r\\n\")\n console.log(\"Relase Date: \", data.tracks.items[0].album.release_date +\"\\r\\n\")\n console.log(\"Preview Link: \", data.tracks.items[0].preview_url+ \"\\r\\n\")\n\n //Appends the search results to a text file name \"log\"\n var logSong = (\"***** Spotify Log Entry *****\" + \n \"\\nSong: \" + userSearch +\n \"\\nArtist: - \" + data.tracks.items[0].album.artists[0].name +\n \"\\nAlbum Name: \"+ data.tracks.items[0].album.name +\n \"\\mRelase Date: \"+ data.tracks.items[0].album.release_date+\n \"\\nPreview Link: \" +data.tracks.items[0].preview_url+\"\\n\" +\"\\r\\n\");\n fs.appendFile(\"log.txt\", logSong, function (err){\n if(err) throw err\n });\n\n });\n\n }", "function search() {\n\t\n}", "beforeCountSearch(params) {\n console.log(\"Hereeeeeeeeeee 13\");\n }", "function song() {\n\n // search through spotify api\n spotifyKey.search({type: \"track\", query: input}, function(err, data) {\n if (err) {\n return console.log(\"Error occurred: \" + err);\n }\n\n var result = \"\\n\" + \"******* \" + input + \" *******\" + \"\\n\" + \"\\n\" +\n \"Artist: \" + data.tracks.items[0].artists[0].name + \"\\n\" + \n \"Song: \" + data.tracks.items[0].name + \"\\n\" + \n \"View on Spotify: \" + data.tracks.items[0].href + \"\\n\" + \n \"Album: \" + data.tracks.items[0].album.name + \"\\n\";\n\n // display song artist, name, link, album\n console.log(result);\n\n // log info to log.txt \n fs.appendFile(\"log.txt\", result, function(err) {\n if (err) {\n console.log(err);\n }\n });\n });\n}", "localSearch(queryId, searchInput, maxResults) {\n // This results dictionary will have domain object ID keys which\n // point to the value the domain object's score.\n let results;\n const input = searchInput.trim().toLowerCase();\n const message = {\n request: 'search',\n results: {},\n total: 0,\n queryId\n };\n\n results = Object.values(this.localIndexedItems).filter((indexedItem) => {\n return indexedItem.name.toLowerCase().includes(input);\n });\n\n message.total = results.length;\n message.results = results\n .slice(0, maxResults);\n const eventToReturn = {\n data: message\n };\n this.onWorkerMessage(eventToReturn);\n }", "function searchTerm(){\n \n }", "function logResults () {\n // JS doesn't have sortable objects but it can sort arrays\n const sortable = []\n for (let artist in artistCounts) {\n const count = artistCounts[artist]\n sortable.push([artist, count])\n }\n // Sort by the object value, which is the artist count.\n sortable.sort((a, b) => a[1] - b[1])\n sortable.reverse().forEach((artistEntry) => {\n console.log(`${artistEntry[0]}: ${artistEntry[1]}`)\n })\n process.exit()\n}", "_search() {\n console.log(\"Not found\");\n }", "function handleSearch() {\n triggerSearch({}); // need empty braces here\n }", "function sendSearchResult(search) {\n selectAndExecute(\"sr/\" + forHash(search), function() {\n var response = {type: \"searchresult\", link: \"search\", search: search, lists: [], controlLink: location.hash};\n response.header = $.trim($(\"#breadcrumbs\").find(\".tab-text\").text());\n var searchView = $(\"#main .search-view\");\n response.moreText = $.trim(searchView.find(\"div .header .more:visible\").first().text());\n response.lists.push(parseSublist(searchView, \"srar\", 6));\n response.lists.push(parseSublist(searchView, \"sral\", 5));\n response.lists.push(parseSublist(searchView, \"srs\", 10));\n response.empty = response.lists[0] === null && response.lists[1] === null && response.lists[2] === null;\n post(\"player-navigationList\", response);\n });\n }", "function onSearchResponse(response) {\r\n showResponse(response);\r\n}", "function updateLogs() {\r\n updatePositionLogs();\r\n updateContactLogs();\r\n}", "processLog(results,operation) {\n if (results[0].logRecords !== null) {\n const log = JSON.parse(results[0].logRecords)\n super.processLog(log, operation, this.status, this.yadamuLogger)\n return log\n }\n else {\n return null\n }\n }", "function registerSearch(user, results, query) {\n\tvar evalue = new Object();\n\tevalue.query = query;\n\tvar queryResults = JSON.parse(results);\n\tevalue.took = queryResults.took;\n\tevalue.hits = queryResults.hits.total;\n\t\n\tapone.registerJSON(\"search\", evalue, function(info) {console.log(\"search event registered\")}, \n\t\t\tfunction(status) {console.log(status);});\n}", "function onSearchResponse(response) {\n showResponse(response);\n }", "function log() {\n //log here\n }", "function concertSearch(){\n outPutForLog = [];\n outPutForLog.unshift(outputText);\n outPutForLog.unshift(\"\\n\");\n axios.get(\"https://rest.bandsintown.com/artists/\" + userQuestion + \"/events?app_id=codingbootcamp\").then(\n function(response) {\n var venueDate =response.data[0].datetime;\n console.log(\"\\r\\n\\r\\n\\r\\n\");\n\n //artist searched\n console.log(\"Artist Searched: \" + userQuestion);\n outPutForLog.push(\"Artist Searched: \" + userQuestion);\n //Name of the venue\n console.log(\"Venue Name: \" + response.data[0].venue.name);\n outPutForLog.push(\"Venue Name: \" + response.data[0].venue.name);\n //Venue location\n console.log(\"Venue Location: \" + response.data[0].venue.city + \", \" + response.data[0].venue.country);\n outPutForLog.push(\"Venue Location: \" + response.data[0].venue.city + \", \" + response.data[0].venue.country);\n //Date of the Event (use moment to format this as \"MM/DD/YYYY\")\n console.log(\"Event Date: \" + moment(venueDate).format(\"MM/DD/YYYY\"));\n outPutForLog.push(\"Event Date: \" + moment(venueDate).format(\"MM/DD/YYYY\"));\n\n console.log(\"\\r\\n\\r\\n\\r\\n\");\n displayForLog = outPutForLog.join(\"\\n \");\n appendOutput();\n }\n);\n}", "function Searcher(iLogger, iDisplayResult) {\r\n this.url = \"https://pbparser.appspot.com/search/main/\";\r\n this.logger = iLogger;\r\n this.result = iDisplayResult;\r\n}", "function whereToSearch(){\n console.log('whereToSearch')\n}", "function results(data) {\n $(\"#movie_results\").html(data.results.length+\" Results for search '\"+$(\"#movieQuery\").val()+\"'\");\n data.results.forEach(function(item){$(\"#movie_results\").append(\"<hr><ul>\").append(\"<li>Title: \"+item.title+\"</li>\").append(\"<li><img src=\"+img_base_url+item.poster_path+\"></img></li>\").append(\"<li>Popularity: \"+item.popularity+\"</li>\").append(\"</ul><hr>\")});\n}", "function displayNewSearchResults(event) {\n let searchTerm = event.target.value;\n let currentSearch = giphy[\"query\"][\"q\"];\n if (searchTerm !== currentSearch && searchTerm !== \"\") {\n giphy[\"query\"][\"q\"] = searchTerm;\n updateOffset(true);\n update();\n }\n}", "function onSearchResponse(response) {\n showResponse(response);\n\n}", "function onSearchResponse(response) {\n showResponse(response);\n\n}", "function onSearchResponse(response) {\n showResponse(response);\n\n}", "function onSearchResponse(response) {\n showResponse(response);\n\n}", "function queryCheck() {\n var queryLog = document.querySelector(\".query\");\n var query = response.query;\n console.log(query);\n\n queryLog.innerHTML += query;\n }", "function displayResults(data) {\n console.log('Results that will be displayed in HTML looks like this first:', data);\n $('#results').append(resultsHTML(data));\n }", "function searchSuccess() {\n var results = range.end - range.start;\n if (results === 1)\n $('#status').html(\"Found \" + (range.end-range.start) + \" result\");\n else\n $('#status').html(\"Found \" + (range.end-range.start) + \" results\");\n $('#status').css('color', 'green');\n queryPosition = query.length - 1;\n var resultPositions = new Array();\n for (var i=range.start; i < range.end; ++i) {\n resultPositions.push(bwtIndex.suffixArray[i]);\n }\n bwtView.text.setActiveAll(resultPositions, 'green');\n enableButtons();\n}" ]
[ "0.7280798", "0.71244586", "0.6808927", "0.67695844", "0.66040295", "0.65138143", "0.6489094", "0.6468287", "0.6468287", "0.63495666", "0.6228953", "0.6224071", "0.6169784", "0.6155906", "0.614315", "0.6073584", "0.60394686", "0.6020869", "0.59996074", "0.5983229", "0.59723264", "0.59688604", "0.59640676", "0.59565765", "0.59494346", "0.5937712", "0.5931926", "0.5923519", "0.59091103", "0.5908794", "0.58733946", "0.5866462", "0.5849223", "0.5841857", "0.58344775", "0.5796267", "0.5789017", "0.57842827", "0.5776698", "0.5764099", "0.57455504", "0.5741244", "0.57378316", "0.57313114", "0.57288903", "0.571298", "0.5712133", "0.5708725", "0.5698981", "0.56973207", "0.56786287", "0.56751615", "0.5668399", "0.56378025", "0.5637667", "0.562497", "0.5620175", "0.56198233", "0.5615649", "0.5607674", "0.56047565", "0.5598775", "0.55947435", "0.55930275", "0.5591993", "0.55909604", "0.5585921", "0.55813634", "0.5576176", "0.5566616", "0.5566308", "0.55628866", "0.5537466", "0.55365145", "0.5534298", "0.552613", "0.5522982", "0.5511201", "0.5488015", "0.5485673", "0.54740834", "0.54711133", "0.5464893", "0.5461486", "0.54601234", "0.54597366", "0.54555357", "0.5455233", "0.54498297", "0.544789", "0.5446145", "0.5444366", "0.5443089", "0.54385024", "0.54385024", "0.54385024", "0.54385024", "0.5437171", "0.54371256", "0.5435993" ]
0.6189312
12
Builds the menu using Inquirer if the user doesn't provide argv[2] and argv[3]
function buildRequest() { inquirer .prompt([ { type: "list", message: "What type of search would you like to do?", name: "searchType", choices: [ "Bands in town", "Search for a Spotify song", "Search for movie info", "Default" ] }, { type: "input", message: "What would you like to search for?", name: "searchTerm" } ]) .then(answers => { searchTerm = answers.searchTerm; command = answers.searchType; executeRequest(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function userInput() {\n debugger;\n userChoice = process.argv[2];\n userSearch = process.argv.splice(3).join(\" \");\n\n if (userChoice === undefined) {\n toDo();\n } else {\n checkingToDo();\n }\n}", "function appMenu() {\n inquirer\n .prompt({\n name: 'options',\n type: 'rawlist',\n message: 'What would you like to do?',\n choices: [\n 'Add a new department',\n 'Add a new role',\n 'Add a new employee',\n 'View all departments',\n 'View all roles',\n 'View all employees',\n 'Update an employee role',\n 'Exit',\n ],\n }).then((answer) => {\n switch (answer.options) {\n case 'Add a new department':\n addDept();\n break;\n\n case 'Add a new role':\n addRole();\n break;\n\n case 'Add a new employee':\n addEmployee();\n break;\n\n case 'View all departments':\n viewDept();\n break;\n\n case 'View all roles':\n viewRoles();\n break;\n\n case 'View all employees':\n viewEmployees();\n break;\n\n case 'Update an employee role':\n updateRole();\n break;\n\n case 'Exit':\n connection.end();\n break;\n\n };\n });\n}", "function appMenu() {\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"intro\",\n message: \"What would you like to do?\",\n choices: [\n \"View all employees\",\n \"View Departments\",\n \"View Roles\",\n \"Add Department\",\n \"Add Role\",\n \"Add Employee\",\n \"Update Employee Role\",\n \"Exit\",\n ],\n },\n ])\n .then((introChoice) => {\n switch (introChoice.intro) {\n case \"View all employees\":\n viewAllEmployees();\n break;\n case \"View Departments\":\n viewDepartment();\n break;\n case \"View Roles\":\n viewRoles();\n break;\n case \"Add Department\":\n addDepartment();\n break;\n case \"Add Role\":\n addRole();\n break;\n case \"Add Employee\":\n addEmployee();\n break;\n case \"Update Employee Role\":\n updateRole();\n break;\n case \"Exit\":\n process.exit();\n }\n });\n}", "function menu() {\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"inventory\",\n message: \"Select the options below to manage the inventory:\",\n choices: [\n \"View products available for sale.\",\n \"View low inventory.\",\n \"Add new quantitites to inventory.\",\n \"Add new products to products database.\"\n ]\n }\n ])\n .then(function(answer) {\n if (answer.inventory === \"View products available for sale.\") {\n viewProducts();\n } else if (answer.inventory === \"View low inventory.\") {\n viewLowInventory();\n } else if (answer.inventory === \"Add new quantitites to inventory.\") {\n addToInventory();\n } else if (\n answer.inventory === \"Add new products to products database.\"\n ) {\n addNewProduct();\n }\n });\n}", "function menu() {\n inquirer\n .prompt({\n name: \"menuOptions\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\"View Products\", \"View Low Inventory\", \"Add Inventory\", \"Add New Product\"]\n })\n .then(function(answer) {\n // based on their answer, run appropriate function\n if (answer.menuOptions === \"View Products\") {\n viewProducts();\n }\n else if (answer.menuOptions === \"View Low Inventory\") {\n viewLowInventory();\n }\n else if (answer.menuOptions === \"Add Inventory\") {\n addInventory();\n }\n else if (answer.menuOptions === \"Add New Product\") {\n addNewProduct();\n }\n else {\n connection.end();\n }\n });\n}", "function menuoption(){\n inquirer.prompt({\n type: \"list\",\n name : \"menu\",\n message : \"What do you want to see ?\",\n choices : [\"\\n\",\"View Products for Sale\",\"View Low Inventory\",\"Add to Inventory\",\"Add New Product\"]\n\n }).then(function(answer){\n // var update;\n // var addnew;\n console.log(answer.menu);\n //if else option to compare user input and call the required function\n if(answer.menu == \"View Products for Sale\" ){\n showitem();\n }else if(answer.menu == \"View Low Inventory\"){\n \n lowinventory();\n }else if(answer.menu == \"Add to Inventory\"){\n updateinventory();\n // updateonecolumn(itemidinput);\n }else if(answer.menu == \"Add New Product\"){\n addnewproduct();\n }\n \n });\n }", "function initMenu() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"list\",\n message: \"\\nSelect from the following actions:\",\n choices: [\n \"View all employees\", //Done\n \"View departments\", //Done\n \"View roles\", //Done\n \"Add a new employee\", //WIP\n \"Add a new department\",\n \"Add a new role\",\n \"Remove an employee\",\n \"Remove a department\",\n \"Remove a role\",\n \"See total wages\",\n \"View employees by manager\",\n \"Update employees' role\",\n \"Update employees' manager\",\n \"Exit employee tracker\", //Done\n ],\n })\n .then((answer) => {\n switch (answer.action) {\n case \"View all employees\":\n viewEmp();\n break;\n\n case \"View departments\":\n viewDep();\n break;\n\n case \"View roles\":\n viewRole();\n break;\n\n case \"Add a new employee\":\n addEmp();\n break;\n\n case \"Add a new department\":\n addDep();\n break;\n\n case \"Add a new role\":\n addRole();\n break;\n\n case \"Remove an employee\":\n deleteEmp();\n break;\n\n case \"Remove a department\":\n deleteDep();\n break;\n\n case \"Remove a role\":\n deleteRole();\n break;\n\n case \"See total wages\":\n totalWages();\n break;\n\n case \"View employees by manager\":\n viewByManager();\n break;\n\n case \"Update employees' role\":\n updateRole();\n break;\n\n case \"Update employees' manager\":\n updateManager();\n break;\n\n case \"Exit employee tracker\":\n console.log(\"Goodbye!\");\n // process.exit();\n\n default:\n console.log(`Invalid input: ${answer.action}`);\n break;\n }\n });\n}", "function menu() {\n inquirer.prompt([{\n type: \"list\",\n message: \"what would you like to do?\",\n choices: [\"add departments\", \"add roles\", \"add employees\", \"view departments\", \"view roles\", \"view employee\", \"update employee roles\"],\n name: \"selection\"\n }]).then(function (userInput) {\n switch (userInput.selection) {\n case \"add departments\":\n addDepartment()\n break\n case \"add roles\":\n addRole()\n break\n case \"add employees\":\n addEmployee()\n break\n case \"view departments\":\n viewDepartments()\n break\n case \"view roles\":\n viewRoles()\n break\n case \"view employee\":\n viewEmployee()\n break\n case \"update employee roles\":\n updateEmployeeRole()\n break\n }\n })\n}", "function menuOptions() {\n inquirer.prompt([\n {\n name: \"action\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View products for sale\",\n \"View inventory with stock lower than five\",\n \"Add to inventory to current product\",\n \"Add a new product\",\n \"EXIT\"\n\n ]\n }\n ]).then(function(answer) {\n switch (answer.action) {\n case \"View products for sale\":\n displayProducts();\n break;\n\n case \"View inventory with stock lower than five\":\n lowerStock();\n break;\n\n case \"Add to inventory to current product\":\n addItems();\n\n break;\n\n case \"Add a new product\":\n addProduct();\n break;\n\n case \"EXIT\":\n connection.end();\n break;\n }\n })\n}", "function mainMenu() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"rawlist\",\n message: \"What would you like to do?\",\n choices: [\n \"Add Departments\",\n \"Add Roles\",\n \"Add Employees\",\n \"View Departments\",\n \"View Roles\",\n \"View Employees\",\n \"Update Role\",\n \"Update Manager\"\n // \"View Employees by Manager\"\n ]\n })\n // Case statement for selection of menu item\n .then(function(answer) {\n switch (answer.action) {\n case \"Add Departments\":\n addDepartments();\n break;\n case \"Add Roles\":\n addRoles();\n break;\n case \"Add Employees\":\n addEmployees();\n break;\n case \"View Departments\":\n viewDepartments();\n break;\n\n case \"View Roles\":\n viewRoles();\n break;\n case \"View Employees\":\n viewEmployees();\n break;\n case \"Update Role\":\n updateRole();\n break;\n case \"Update Manager\":\n updateManager();\n break;\n // case \"View Employees by Manager\":\n // viewEmployeesByManager();\n // break;\n }\n });\n}", "function menu(){\n inquirer.prompt([\n {\n name:\"menuOption\",\n type:\"rawlist\",\n choices:[\"View inventory\", \"View low inventory\", \"Add to inventory\", \"Add new product\"],\n message:\"\\nHi! What would you like to do today?\"\n }\n ])\n .then(function(answer){\n //switch case for answer.option\n switch (answer.menuOption){\n case \"View inventory\":\n var query=\"Select item_id, product_name, price, stock_quantity From products\"; \n console.log(\"\\nInventory:\");\n viewProducts(query);\n break;\n case \"View low inventory\":\n var query=\"Select item_id, product_name, price, stock_quantity From products Where stock_quantity<5\";\n console.log(\"\\nLow Inventory:\");\n viewProducts(query);\n break;\n case \"Add to inventory\":\n var query = \"Select * From products\";\n addingInventory=true;\n viewProducts(query);\n break;\n default:\n newProduct();\n };\n });\n}", "function menu() {\n inquirer.prompt([\n {\n name: \"menu\",\n message: \"Menu:\",\n type: \"list\",\n choices: [\"Products for Sale\", \"Low Inventory\", \"Add to Inventory\", \"New Product\", \"Exit\"],\n }]).then(function (answer) {\n\n // depending on the option picked for the chosen call the correct function\n switch (answer.menu) {\n case \"Products for Sale\": {\n showInventory();\n break;\n }\n case \"Low Inventory\": {\n lowerInventory();\n break;\n }\n case \"Add to Inventory\": {\n addInventory();\n \n break;\n }\n case \"New Product\": {\n addNewProduct();\n break;\n }\n case \"Exit\": {\n connection.end();\n break;\n }\n }\n\n });\n}", "function menu()\n{\n\ninquirer.prompt({\n name:'menu',\n type:\"list\",\n choices:['View Products for Sale','View Low Inventory','Add to Inventory','Add New Product','exit'],\n message:\"MENU\\n ==================\\n\"\n}).then(function(choice)\n{\n console.log(choice.menu);\n var op=choice.menu;\n switch(op)\n {\n case 'View Products for Sale' :\n products_for_sale();\n break;\n case 'View Low Inventory' :\n low_inventory();\n break;\n case 'Add to Inventory' :\n add_inventory();\n break;\n case 'Add New Product' :\n add_product()\n break;\n case 'exit':\n connection.end();\n break;\n }\n}\n);\n}", "function menu() {\n const option = `(v) View • (n) New • (cX) Complete • (dX) Delete • (q) Quit\\n`\n rl.question(option, answer => {\n if (answer === \"v\") return view();\n else if (answer === \"n\") return add();\n else if (answer.includes(\"c\")) return complete(answer);\n else if (answer[0] === \"d\") return del(answer);\n else if (answer === \"q\") return quit();\n else return `Choose a existing option.`;\n });\n}", "function showMenu() {\n\n inquirer\n .prompt([{\n type: \"list\",\n name: \"managerOption\",\n message: \"Please select an option from the list below:\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\"]\n\n\n }\n ])\n .then(function (answer) {\n\n switch (answer.managerOption) {\n case \"View Products for Sale\":\n readProducts();\n break;\n\n case \"View Low Inventory\":\n readLowInventory();\n break;\n\n case \"Add to Inventory\":\n identifyItem();\n break;\n\n case \"Add New Product\":\n updateProducts();\n break;\n\n }\n })\n}", "function mainMenu() {\n inquirer.prompt([\n {\n type: 'list',\n name: 'selectOptions',\n message: 'What would you like to do?',\n choices: [\n 'View all the Departments',\n 'Show Employees by Department',\n 'Add a Department',\n 'Delete a Department',\n new inquirer.Separator(),\n 'View all the Roles',\n 'Add a Role',\n 'Delete a Role',\n new inquirer.Separator(),\n 'View all Employees',\n 'Add an Employee',\n 'Delete an Employee',\n `Update an Employee's role`,\n `Update an Employee's manager`,\n new inquirer.Separator(),\n 'Quit',\n new inquirer.Separator(),\n ]\n }\n ]).then(options => {\n switch (options.selectOptions) {\n case 'View all the Departments':\n showDepartments();\n break;\n case 'Add a Department':\n addDepartment();\n break;\n case 'Delete a Department':\n deleteDepartment();\n break;\n case 'View all the Roles':\n showRoles();\n break;\n case 'Add a Role':\n addRole();\n break;\n case 'Delete a Role':\n deleteRole();\n break;\n case 'View all Employees':\n showEmployees();\n break;\n case 'Add an Employee':\n addEmployee();\n break;\n case 'Delete an Employee':\n deleteEmployee();\n break;\n case `Update an Employee's role`:\n updateRole();\n break;\n case `Update an Employee's manager`:\n updateManager()\n break;\n case 'Show Employees by Department':\n showEmployeebyDept();\n break;\n default:\n connection.end();\n }\n });\n}", "function supervisorMenu() {\n inquirer\n .prompt({\n name: 'apple',\n type: 'list',\n message: 'What would you like to do?'.yellow,\n choices: ['View Product Sales by Department',\n 'View/Update Department',\n 'Create New Department',\n 'Exit']\n })\n .then(function (pick) {\n switch (pick.apple) {\n case 'View Product Sales by Department':\n departmentSales();\n break;\n case 'View/Update Department':\n updateDepartment();\n break;\n case 'Create New Department':\n createDepartment();\n break;\n case 'Exit':\n connection.end();\n break;\n }\n });\n}", "function runMenu() {\n inquirer\n .prompt({\n type: \"list\",\n name: \"action\",\n message: \"WELCOME TO THE EMPLOYEE TRACKER...\",\n choices: [\"View all employees\",\n \"View all departments\",\n \"View all roles\",\n \"Add Employee\",\n \"Add Department\",\n \"Add Role\",\n \"Remove Employee\",\n \"Update Employee Role\",\n \"Exit\"]\n\n })\n .then(function (answer) {\n console.log(answer.action);\n switch (answer.action) {\n case \"View all employees\":\n employeeView();\n break;\n\n case \"View all departments\":\n departmentView();\n break;\n\n case \"View all roles\":\n rolesView();\n break;\n\n case \"Add Employee\":\n employeeAdd();\n break;\n\n case \"Add Department\":\n departmentAdd();\n break;\n\n case \"Add Role\":\n roleAdd();\n break;\n\n case \"Remove Employee\":\n employeeRemove();\n break;\n\n case \"Update Employee Role\":\n employeeUpdate();\n break;\n\n case \"Exit\":\n connection.end();\n break;\n }\n });\n}", "function mainMenu() {\n mapping();\n inquirer.prompt(\n {\n type: \"list\",\n message: \"What would you like to do?\",\n name: \"choices\",\n choices: [\n {\n name: \"View All Employees\",\n value: \"viewEmp\"\n },\n {\n name: \"View Employees by Manager\",\n value: \"viewEmpMan\"\n },\n {\n name: \"View All Departments\",\n value: \"viewDept\"\n },\n {\n name: \"View All Roles\",\n value: \"viewRoles\"\n },\n {\n name: \"Add an Employee\",\n value: \"addEmp\"\n },\n {\n name: \"Add a Department\",\n value: \"addDept\"\n },\n {\n name: \"Add a Role\",\n value: \"addRole\"\n },\n {\n name: \"Update Employee Role\",\n value: \"updateRole\"\n },\n {\n name: \"Update Employee Manager\",\n value: \"updateManager\"\n },\n {\n name: \"Delete a Department\",\n value: \"deleteDept\"\n },\n {\n name: \"Delete a Role\",\n value: \"deleteRole\"\n },\n {\n name: \"Delete an Employee\",\n value: \"deleteEmp\"\n },\n {\n name: \"Quit\",\n value: \"end\"\n }\n ]\n }).then(function(res) {\n execute(res.choices)\n })\n}", "function startApp() {\n inquirer.prompt([\n {\n name: 'menu',\n type: 'list',\n message: 'What would you like to do?',\n choices: ['View Products for Sale', 'View Low Inventory', 'Add to Inventory', 'Add New Product']\n }\n ]).then(function(answers) {\n if (answers.menu === 'View Products for Sale') {\n viewProducts();\n }\n else if (answers.menu === 'View Low Inventory') {\n lowInventory();\n }\n else if (answers.menu === 'Add to Inventory') {\n addInventory();\n }\n else if (answers.menu === 'Add New Product') {\n addProduct();\n }\n });\n}", "function mainMenu(){\n inquirer.prompt([\n {\n name: \"mainOptions\",\n type: \"list\",\n message:\"What would you like to do?\",\n choices: [\"View Products\", \"View Low Inventory Products\", \"Add Product Inventory\", \"Add New Product\", \"Exit\"]\n }\n ]).then(function(answer){\n switch (answer.mainOptions) {\n case \"View Products\":\n displayInventory();\n break;\n case \"View Low Inventory Products\":\n displayLowInv();\n break;\n case \"Add Product Inventory\":\n addInventory();\n break;\n case \"Add New Product\":\n addProduct();\n break;\n case \"Exit\":\n console.log(\"***********************************************************\");\n console.log(\"* Have a productive day :-) *\");\n console.log(\"***********************************************************\");\n connection.end();\n };\n });\n}", "function mainMenu() {\n inquirer\n .prompt([\n {\n type: \"list\",\n message: \"What Type of Employee Would You Like to Add?\",\n choices: [\n \"Engineer\",\n \"Intern\",\n \"I have added all the employees that I need to.\",\n ],\n name: \"menuChoice\",\n },\n ])\n .then((response) => {\n if (\n response.menuChoice === \"I have added all the employees that I need to.\"\n ) {\n let finalHTML = htmlBuild + htmlEnd;\n writetoHTML(finalHTML);\n return;\n } else if (response.menuChoice === \"Engineer\") {\n engineerPrompt();\n } else {\n internPrompt();\n }\n });\n}", "function mainMenu() {\n\n //Present the user with a list of options to choose from\n inquirer\n .prompt([\n //give user main menu options\n {\n name: \"choice\",\n type: \"rawlist\",\n choices: info.menus.main,\n message: \"What would you like to do?\"\n }\n ])\n .then(function(answer) {\n //Check if the user wants to exit\n checkForExit(answer.choice);\n\n switch(answer.choice) {\n case \"Run Test\":\n pickDirectory(\"test\");\n break;\n case \"View Scores\":\n viewMenu();\n break;\n default:\n mainMenu();\n }\n \n });\n}", "function menu(){\n inquirer.prompt({\n name: \"action\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View Products for Sale\",\n \"View Low Inventory\",\n \"Add to Inventory\",\n \"Add New Product\",\n \"exit\"\n ]\n }).then(function(answer){\n switch(answer.action){\n case \"View Products for Sale\":\n products();\n break;\n\n case \"View Low Inventory\":\n lowInventory();\n break;\n\n case \"Add to Inventory\":\n addToInventory();\n break;\n\n case \"Add New Product\":\n addProduct();\n break;\n\n case \"exit\":\n connection.end();\n break;\n }\n });\n}", "function mainMenu() {\n\n inquirer\n .prompt({\n type: \"list\",\n name: \"task\",\n message: \"Plz, select your entry ?\",\n choices: [\n \"View Employees\",\n \"View Departments\",\n \"View Roles\",\n \"Add Employees\",\n \"Update EmployeeRole\",\n \"Add Role\",\n \"Exit\"]\n })\n .then(function ({ task }) {\n switch (task) {\n case \"View Employees\":\n viewEmployee();\n break;\n case \"View Departments\":\n viewDepartmnt();\n break;\n case \"View Roles\":\n viewRole();\n break;\n case \"Add Employees\":\n addEmployee();\n break;\n case \"Update EmployeeRole\":\n updateEmployeeRole();\n break;\n case \"Add Role\":\n addRole();\n break;\n case \"Exit\":\n connection.end();\n break;\n \n }\n });\n}", "showMenu() {\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"choice\",\n message: \"What next?\",\n choices: [\n \"Add an Engineer\",\n \"Add an Intern\",\n \"Show Current Employee List\",\n \"Finish and Generate HTML\",\n \"Quit\"\n ]\n }\n ])\n .then( ({ choice }) => {\n switch(choice) {\n case \"Add an Engineer\":\n this.inputEmployee(\"engineer\");\n break;\n\n case \"Add an Intern\":\n this.inputEmployee(\"intern\");\n break;\n\n case \"Show Current Employee List\":\n this.displayList();\n break;\n\n case \"Finish and Generate HTML\":\n this.buildHTML();\n break;\n\n case \"Quit\":\n this.quit();\n break;\n }\n });\n }", "function createMenu() {\n inquirer.prompt({\n type: \"list\",\n name: \"action\",\n message: \"What would you like to add?\",\n choices: [\n { name: \"Add a department\", value: createDepartment },\n { name: \"Add a role\", value: createRole },\n { name: \"Add an employee\", value: createEmployee },\n { name: \"Go back\", value: mainMenu }\n ]\n }).then(({ action }) => action());\n}", "function mainMenu() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n name: \"optionsList\",\n choices: [\n \"View All Employees\",\n \"Add Employee\",\n \"Update Employee Role\",\n \"View All Roles\",\n \"Add a Role\",\n \"View All departments\",\n \"Add departments\",\n \"Quit\"\n ]\n }\n ]).then(function (response) {\n // Switch Case that will trigger user choices\n switch (response.optionsList) {\n case \"View All Employees\":\n showEmployees();\n break;\n\n case \"Add Employee\":\n addEmployee();\n break;\n\n case \"Update Employee Role\":\n updateEmployeeRole();\n break;\n\n case \"View All Roles\":\n viewAllRoles();\n break;\n\n case \"Add a Role\":\n addRole();\n break;\n\n case \"View All departments\":\n viewAllDepartments();\n break;\n\n case \"Add departments\":\n addDepartments();\n break;\n\n case \"Quit\":\n break;\n }\n })\n}", "function liriApp() {\n\n // if statement to check user's search input or arguments for songs\n // if the first argument is spotify-this-song and no second argument\n\n if ((process.argv[2] === \"spotify-this-song\" ) && (!process.argv[3])) {\n\n // choose this song as default\n\n songName = \"All the Small Things\";\n \n // call the spotifySong\n\n spotifySong(songName);\n\n // if the first argument is spotify-this-song and there's second argument\n\n }else if((process.argv[2] === \"spotify-this-song\") && (process.argv[3])) {\n\n // make the second argument the song's name\n\n songName = process.argv[3];\n\n // spotify the song\n\n spotifySong(songName);\n }\n\n\n // if statement to check user's search input or arguments for movies\n // if the first argument is movie-this and no second argument\n\n if ((process.argv[2] === \"movie-this\") && (!process.argv[3])) {\n\n // choose this movie as default\n\n movieName = \"remember the titans\";\n\n // call the movieThis() function\n\n movieThis(movieName);\n\n // if the first argument is movie-this and there's second argument\n\n }else if((process.argv[2] === \"movie-this\") && (process.argv[3])) {\n\n // make the second argument the movie's name\n\n movieName = process.argv[3];\n\n // call the movieThis() function\n\n movieThis(movieName);\n }\n\n // calling the do-whatever-it-says doSay() function\n \n doSay();\n\n}", "function mainMenu() {\n inquirer.prompt({\n type: \"list\",\n name: \"action\",\n message: \"What would you like to do?\",\n choices: [\n { name: \"Add something\", value: createMenu },\n { name: \"View something\", value: readMenu },\n { name: \"Change something\", value: updateMenu },\n { name: \"Remove something\", value: deleteMenu },\n { name: \"Quit\", value: quit }\n ]\n }).then(({ action }) => action());\n}", "function mainMenu() {\n //Use Inquirer to ask User What They Would Like to do\n inquirer\n .prompt([\n {\n type: \"list\",\n message: \"Welcome Manager, What are you Doing?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\", \"Exit\"],\n name: \"menu\"\n }\n ]).then(function (inquirerResponse) {\n //User Chose to View all Products in DB\n if (inquirerResponse.menu === \"View Products for Sale\") {\n showProducts();\n }\n //User Chose to see all Products That Have low Stock Counts\n else if (inquirerResponse.menu === \"View Low Inventory\") {\n lowInventory();\n }\n //User Chose to Order More of an Item\n else if (inquirerResponse.menu === \"Add to Inventory\") {\n fillList();\n }\n //User Chose to add a new Product to DB\n else if (inquirerResponse.menu === \"Add New Product\") {\n addProduct(); \n }\n //User Chose to Exit Program\n else {\n console.log(\"Logging Out of Manager Portal....\"); //Show Exit Message\n connection.end(); //Close Connection to DB\n }\n });\n}", "async function promptForMissingOptions(options) {\n const defaultTemplate = 'express-fullstack';\n const defaultName = 'my-app';\n const defaultCategory = 'javascript';\n\n // if help options == true call the helpDocumentation method\n if (options.helpInfo) {\n console.log(helpDocumentation())\n process.exit()\n }\n\n //skips questions to ask the user if specified in command line arguments\n if (options.skipPrompts) {\n return {\n ...options,\n template: options.template || defaultTemplate,\n projectName: options.projectName || defaultName,\n category: options.category || defaultCategory\n }\n }\n\n\n //initializes argument questions to ask the user in the command line\n const javascript = ['express-fullstack', 'express-fullstack-with-sql', 'express-fullstack-with-nosql',\n 'express-rest-api', 'express-rest-api-with-sql', 'express-rest-api-with-nosql'];\n\n const python = ['django-sql', 'djangoRest', 'flask-sql', 'flaskRest'];\n\n\n\n const initialQuestion = [{\n type: 'list',\n name: 'category',\n message: 'Please choose which language to use',\n choices: ['javascript', 'python'],\n default: defaultCategory,\n }];\n\n\n\n const initialAnswer = await inquirer.prompt(initialQuestion);\n const templateChoices = initialAnswer.category === 'javascript' ? javascript : python;\n\n const secondaryQuestions = []\n if (!options.template) {\n secondaryQuestions.push({\n type: 'list',\n name: 'template',\n message: 'Please choose which project template to generate',\n // Add Templates here\n choices: templateChoices,\n default: defaultTemplate,\n })\n }\n if (!options.projectName) {\n secondaryQuestions.push({\n name: 'projectName',\n message: 'Enter your project name: ',\n default: defaultName\n })\n }\n\n if (!options.git) {\n secondaryQuestions.push({\n type: 'confirm',\n name: 'git',\n message: 'Initialize a git repository',\n default: false,\n })\n }\n if (!options.runInstall) {\n secondaryQuestions.push({\n type: 'confirm',\n name: 'runInstall',\n message: 'Automatically install app dependecies',\n default: false,\n })\n }\n\n const answers = await inquirer.prompt(secondaryQuestions);\n\n //updates and returns options variable based on answers from the user\n return {\n ...options,\n template: options.template || answers.template,\n projectName: options.projectName || answers.projectName,\n git: options.git || answers.git,\n runInstall: options.runInstall || answers.runInstall,\n category: options.category || initialAnswer.category\n }\n}", "function mainMenu() {\n inquirer\n .prompt({\n name: \"mainMenu\",\n type: \"list\",\n name: \"action\",\n message: \"What would you like to do?\",\n choices: [\"Add Employee\", \"Add Role\", \"Add Department\", \"View All Departments\", \"View All Employees\", \"View All Roles\", \"Update Employee\", \"Exit\"]\n })\n .then(function (res) {\n switch (res.action) {\n case \"Add Employee\":\n addEmployee();\n break;\n case \"Add Role\":\n addRole();\n break;\n case \"Add Department\":\n addDepartment();\n break;\n case \"View All Departments\":\n viewAllDepartment();\n break;\n case \"View All Employees\":\n viewAllEmployee();\n break;\n case \"View All Roles\":\n viewAllRoles();\n break;\n case \"Update Employee\":\n updateEmployee();\n break;\n case \"Exit\":\n return;\n }\n })\n}", "function start() {\r\n var questions = [{\r\n type: 'rawlist',\r\n name: 'choice',\r\n message: 'What would you like to do?',\r\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\", \"Exit Store\"]\r\n }];\r\n inquirer.prompt(questions).then(answers => {\r\n mainMenu(answers.choice);\r\n });\r\n}", "function mainOptions() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View\",\n \"Add\",\n \"Delete\",\n \"Update\"\n ]\n })\n .then(function (answer) {\n switch (answer.action) {\n\n case \"View\":\n viewChoice();\n break;\n\n case \"Add\":\n addChoice();\n break;\n\n case \"Delete\":\n deleteChoice()\n break;\n\n case \"Update\":\n updateChoice()\n break;\n\n\n }\n });\n\n}", "function mainMenu() {\n makeDepartmentArr();\n makeRoleArr();\n makeEmployeeArr();\n inquirer.prompt([\n {\n type: 'list',\n message: 'What would you like to do?',\n name: 'action',\n choices: [\n \"view all departments\",\n \"view all roles\",\n \"view all employees\",\n \"add a department\",\n \"add a role\",\n \"add an employee\",\n \"update an employee role\",\n \"end session\"\n ]\n }\n ]).then(({ action }) => {\n switch (action) {\n case \"view all departments\":\n viewAllDepartments();\n break;\n case \"view all roles\":\n viewAllRoles();\n break;\n case \"view all employees\":\n viewAllEmployees();\n break;\n case \"add a department\":\n addDepartment();\n break;\n case \"add a role\":\n addRole();\n break;\n case \"add an employee\":\n addEmployee();\n break;\n case \"update an employee role\":\n updateEmployee();\n break;\n case \"end session\":\n connection.end();\n break;\n }\n });\n}", "function optionMenu(){\n inquirer\n .prompt({\n name: \"menu\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View Products for Sale\",\n \"View Low Inventory\",\n \"Add to Inventory\",\n \"Add New Product\",\n \"Nothing, I've changed my mind.\"\n ]\n })\n .then(function(answer) {\n switch(answer.menu){\n case \"View Products for Sale\":\n showProducts();\n\n // continuePrompt is delayed to allow showProducts to be completed\n setTimeout(continuePrompt,300);\n break;\n\n case \"View Low Inventory\":\n lowInventory();\n\n // continuePrompt is delayed to allow lowInventory to be completed\n setTimeout(continuePrompt,300);\n break;\n\n case \"Add to Inventory\":\n showProducts()\n\n // addInventory is delayed to allow lowInventory to be completed\n setTimeout(addInventory,300);\n break;\n\n case \"Add New Product\":\n newProduct();\n break;\n\n case \"Nothing, I've changed my mind.\":\n console.log(\"\\nHave a nice day!\\n\");\n connection.end();\n break;\n }\n });\n}", "function start() {\n inquirer\n .prompt([{\n type: \"list\",\n name: \"menu\",\n message: \"What would you like to do?\",\n choices: [\"View Products for sale\",\n \"View Low Inventory\",\n \"Add to Inventory\",\n \"Add New Product\"\n ]\n }\n\n ])\n .then(function (answers) {\n if (answers.menu === \"View Products for sale\") {\n return viewProducts();\n } else if (answers.menu === \"View Low Inventory\") {\n return lowInventory();\n } else if (answers.menu === \"Add to Inventory\") {\n return addInventory();\n } else if (answers.menu === \"Add New Product\") {\n return addProduct();\n }\n });\n}", "function options() {\n inquirer.prompt({\n type: 'list',\n name: 'menu',\n message: 'What would you like to do?',\n choices: [\n 'View All Departments',\n 'Add Department',\n 'View All Roles',\n 'Add Role',\n 'View All Employees',\n 'Add Employee',\n 'Update Employee Role',\n 'Delete Department',\n 'Delete Employee',\n 'Delete Role',\n 'Quit'\n ]\n\n })\n .then(function (answers) {\n console.log('view');\n switch (answers.menu) {\n case 'View All Departments':\n viewAllDepartments();\n break;\n case 'Add Department':\n addDepartment();\n break;\n case 'View All Roles':\n viewAllRoles();\n break;\n case 'Add Role':\n addRole();\n break;\n case 'View All Employees':\n viewAllEmployees();\n break;\n case 'Add Employee':\n addEmployee();\n break;\n case 'Update Employee Role':\n updateEmployeeRole();\n break;\n case 'Delete Department':\n deleteDepartment();\n break;\n case 'Delete Employee':\n deleteEmployee();\n break;\n case 'Delete Role':\n deleteRole();\n break;\n case 'Quit':\n quitApp();\n break;\n default:\n console.log(\"You chose wrong.\")\n }\n })\n\n}", "function mainMenu(){\n\tinquirer.prompt([{\n\t\ttype: \"list\",\n\t\tname: \"introAction\",\n\t\tmessage: \"Welcome, pick an action: \",\n\t\tchoices: [\"Create a Basic Card\", \"Create a Cloze Card\", \"Review Existing Cards\"]\n\t}]).then(function(answers){\n\t\tswitch (answers.introAction) {\n\t\t\tcase \"Create a Basic Card\":\n\t\t\t\tcreateBasicCard();\n\t\t\t\tbreak;\n\t\t\tcase \"Create a Cloze Card\":\n\t\t\t\tcreateClozeCard();\n\t\t\t\tbreak;\n\t\t\tcase \"Review Existing Cards\":\n\t\t\t\treviewCards();\n\t\t\t\tbreak;\n\t\t}\n\t});\n}", "function openMenu() {\n//use inquirer to ask question \n inquirer.prompt([ \n {\n//type list gives user a list of options \n type: \"list\", \n//message shown to the user \n message: \"\\nPlease choose a menu option from the list below?\",\n//options that show in list \n choices: [\"Create New Card\", \"Use Existing Cards\", \"Exit\"], \n//refrence name of object \n name: \"menuOptions\" \n }\n//Once inquirer gets answer then... \n ]).then(function (answer) { \n \n\n switch (answer.menuOptions) {\n\n case 'Create New Card':\n console.log(\"Make a new flashcards\");\n createCard();\n break;\n\n case 'Use Existing Cards':\n console.log(\"Use flashcards on file\");\n askQuestions();\n break;\n \n\n case 'Exit':\n console.log(\"Thank you for using the Disney Flashcard-Generator\")\n return;\n break;\n\n default:\n console.log(\"\");\n console.log(\"Sorry I don't understand yoour request\");\n console.log(\"\");\n }\n\n });\n\n}", "function menuPrompt() {\n\tinquirer\n\t\t.prompt([\n\t\t\t{\n\t\t\t\ttype: 'list',\n\t\t\t\tname: 'menuOption',\n\t\t\t\tmessage: 'What would you like to do next?',\n\t\t\t\tchoices: [ 'Add Another Manager', 'Add An Engineer', 'Add An Intern', 'Finish Building My Team' ]\n\t\t\t}\n\t\t])\n\t\t.then((selection) => {\n\t\t\t// if they want to add another manager, call manager questions function\n\t\t\tif (selection.menuOption === 'Add Another Manager') {\n\t\t\t\tmanagerPrompt();\n\t\t\t\t// else if they want to add engineer, call engineer questions function\n\t\t\t} else if (selection.menuOption === 'Add An Engineer') {\n\t\t\t\taddEngineer();\n\t\t\t\t// else if they want to add inter, call intern questions function\n\t\t\t} else if (selection.menuOption === 'Add An Intern') {\n\t\t\t\taddIntern();\n\t\t\t\t// else if they want to finish their team, call the finish team function\n\t\t\t} else if (selection.menuOption === 'Finish Building My Team') {\n\t\t\t\tfinishTeam();\n\t\t\t} else {\n\t\t\t\tconsole.log('SOMETHING WENT WRONG!');\n\t\t\t}\n\t\t});\n}", "function inquireMain() {\n\tinquirer.prompt([\n\t{\n\t\ttype: \"list\",\n\t\tmessage: \"Welcome to Flashcard App, Select an Option Below:\",\n\t\tchoices: [\"Add New\", \"Query by Artist\", \"QUIT\"],\n\t\tname: \"command\"\n\t}\n\t]).then(function (user) {\n\t\tswitch (user.command) {\n\t\t\tcase \"Add New\":\n\t\t\tconsole.log('POST');\n\t\t\tinquireItem();\n\t\t\tbreak;\n\t\t\tcase \"Query by Artist\":\n\t\t\tconsole.log('Query by Artist');\n\t\t\tinquire_by_artist();\n\t\t\tbreak;\n\t\t\tcase \"QUIT\":\n\t\t\tconsole.log(\"Goodbye!\");\n\t\t\tprocess.exit(0);\n\t\t}\n\t});\n}", "function promptUser() {\n return inquirer.prompt(\n [\n {\n type: 'input',\n name: 'title',\n message: 'What is your project title?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Requires title to continue' }}\n },\n\n {\n type: 'input',\n name: 'Description',\n message: 'Enter a brief description of the project',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Provide description to continue' }}\n }, \n \n \n {\n type: 'input',\n name: 'Installation',\n message: 'How do you install your app?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Steps needed' }}\n }, \n \n {\n type: 'input',\n name: 'Usage',\n message: 'How do you use your app?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Steps needed' }}\n }, \n\n {\n type: \"list\",\n message: \"What license should your project have?\",\n name: \"license\",\n choices: [\n \"MIT\",\n \"Unlicense\",\n \"Apache 2.0\",\n \"GNU v3\",\n \"BSD 3-Clause\",\n \"Mozilla Public License 2.0\"\n ],\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Choose a license' }}\n },\n \n {\n type: 'input',\n name: 'Contribution',\n message: 'How to contribute to the project?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Steps needed' }}\n }, \n\n {\n type: 'input',\n name: 'Link',\n message: 'Enter a deployed link?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Enter a deployable link' }}\n }, \n\n {\n type: 'input',\n name: 'Questions',\n message: 'Enter questions for future development',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Enter questions for future development' }}\n },\n\n {\n type: 'input',\n name: 'email',\n message: 'What is your email address?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Enter questions for future development' }}\n },\n ]);\n}", "function menu(){\n inquirer.prompt({\n name: \"action\",\n type: \"list\",\n message: \"What do you want to do?\",\n choices: [\"Add Manager\", \"Add Engineer\", \"Add Intern\", \"Create Profile\", \"Exit\"]\n }).then(async function(response){\n\n if(response.action === \"Add Engineer\"){\n await addEngineer();\n }\n else if(response.action === \"Add Intern\"){\n await addIntern();\n }\n else if(response.action === \"Add Manager\"){\n await addManager();\n }\n else if(response.action === \"Create Profile\"){\n await createProfile();\n }\n\n else{\n return;\n }\n menu();\n })\n\n}", "function runMenu() {\n inquirer.prompt([\n {\n name: 'menu',\n type: 'list',\n choices: [\n 'View Products for Sale',\n 'View Low Inventory',\n 'Add to Inventory',\n 'Add New Product',\n 'Exit'\n ],\n message: chalk.cyan('Select an option:')\n }\n ]).then(function(answers) {\n switch (answers.menu) {\n case 'View Products for Sale':\n getProducts(false);\n break;\n case 'View Low Inventory':\n getProducts(true);\n break;\n case 'Add to Inventory':\n addInventory();\n break;\n case 'Add New Product':\n addProduct();\n break;\n default:\n connection.end();\n }\n });\n}", "function displayMenu() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What role are you populating today?\",\n name: \"userInput\",\n choices: [\"manager\", \"intern\", \"engineer\", \"exit application\"]\n\n }\n ])\n .then(function (response) {\n switch (response.userInput) {\n case \"manager\":\n addmanager()\n break;\n case \"intern\":\n addintern()\n break;\n case \"engineer\":\n addengineer()\n break;\n default:\n exitapp()\n }\n } )\n }", "function managerMenu() {\n\n inquirer\n .prompt([\n {\n type: \"list\",\n message: \"Please select from the following options:\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\", \"Exit Inventory Management\"],\n name: \"action\",\n }\n ])\n .then(function(inquirerResponse) {\n \n switch (inquirerResponse.action) {\n case \"View Products for Sale\":\n displayInventory();\n \n break;\n\n case \"View Low Inventory\":\n lowInventory();\n \n break;\n\n case \"Add to Inventory\":\n addInventory();\n \n break;\n\n case \"Add New Product\":\n addProduct();\n\n break;\n\n case \"Exit Inventory Management\":\n console.log(\"Exiting Inventory Management...Goodbye!\".bold.yellow);\n //only end connection when manager chooses to from main menu\n connection.end(); \n break;\n\n }\n \n });\n}", "function start() {\n\n //prompt user to view products for sale\n inquirer\n .prompt({\n name: \"menu_option\",\n type: \"list\",\n message: \"What would you like to view?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\"]\n })\n //based on user input-determine which function to run\n .then(function (answer_menu) {\n gAnswer_menu = answer_menu;\n if (gAnswer_menu.menu_option === \"View Products for Sale\") {\n viewProducts();\n } else if (gAnswer_menu.menu_option === \"View Low Inventory\") {\n viewLowInventory();\n } else if (gAnswer_menu.menu_option === \"Add to Inventory\") {\n addInventory();\n } else if (gAnswer_menu.menu_option === \"Add New Product\") {\n addProduct();\n }\n })\n}", "function showMainMenu(){\n console.log(\"Welcome to Employ-E-Manager\");\n\n inquirer.prompt(\n {type: \"rawlist\",\n name: \"mainmenu_action\",\n message: \"Please selection one of the below actions to perform:\",\n choices: [\n \"Add data to Department/Role/Employee\",\n \"View Department/Role/Employee information\",\n \"Update Employee information\",\n \"Delete Department/Role/Employee\",\n \"Report - Total utilized budget by Department\",\n \"Exit\"\n ]\n }\n ).then(function(answer){\n switch (answer.mainmenu_action){\n case \"Add data to Department/Role/Employee\":\n showAddMenu();\n break;\n \n case \"View Department/Role/Employee information\":\n showViewMenu();\n break;\n\n case \"Update Employee information\":\n showUpdateMenu();\n break;\n\n case \"Delete Department/Role/Employee\":\n showDeleteMenu();\n break;\n\n case \"Report - Total utilized budget by Department\":\n showReportMenu();\n break;\n\n case \"Exit\":\n exit();\n break;\n\n }\n }).catch(function(err){\n if (err){\n console.log(\"Main menu error: \" + err);\n }\n });\n}", "function menu() {\n inquirer.prompt([\n {\n type: \"list\",\n name: \"choice\",\n message: \"Supervisor's Menu Options:\",\n choices: [\"View Product Sales By Department\", \"Create New Department\", \"Exit\"]\n }\n ]).then(function (answers) {\n if (answers.choice === \"View Product Sales By Department\") {\n displaySales();\n }\n else if (answers.choice === \"Create New Department\") {\n createDepartment();\n }\n else {\n connection.end();\n }\n });\n}", "function supervisorMenu (){\n inquirer.prompt({\n name: \"selection\",\n type: \"list\",\n message: \"Make a selection:\",\n choices: [\"Department Product Sales\", \"Create New Department\", \"Exit\"]\n }).then(function(answer) {\n \n switch(answer.selection) {\n case 'Department Product Sales':\n productSalesByDept();\n break;\n\n case 'Create New Department':\n createDepartment();\n break; \n \n default:\n console.log(\"Exiting program\");\n connection.end();\n } \n })\n}", "function start() {\n inquirer.prompt([\n {\n type: \"list\",\n name: \"choice\",\n message: \"What would you like to do?\",\n choices: [\"Purchase Items\", \n \"Exit\"],\n }\n ]).then(function(answer) {\n\n // Based on the selection, the user experience will be routed in one of these directions\n switch (answer.choice) {\n case \"Purchase Items\":\n displayItems();\n break;\n case \"Exit\":\n exit();\n break;\n }\n });\n} // End start function", "function runApp() {\n inquirer.prompt({\n name: \"mainmenu\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View All Employees\",\n \"Edit Employeee Info\",\n \"View Roles\",\n \"Edit Roles\",\n \"View Departments\",\n \"Edit Departments\"\n ]\n }).then(responses => {\n switch (responses.mainmenu) {\n case \"View All Employees\":\n showEmployeeSummary();\n break;\n case \"Edit Employeee Info\":\n editEmployeeOptions();\n break;\n case \"View Roles\":\n showRoleSummary();\n break;\n case \"Edit Roles\":\n editRoleOptions();\n break;\n case \"View Departments\":\n showDepartments();\n break;\n case \"Edit Departments\":\n editDepartmentOptions();\n break;\n }\n });\n}", "function userOptions() {\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"managerSelection\",\n message: \"What would you like to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\", \"Exit\"]\n }\n ])\n .then(function (answer) {\n switch (answer.managerSelection) {\n case 'View Products for Sale':\n viewProducts();\n break;\n case 'View Low Inventory':\n viewLowInventory();\n break;\n case 'Add to Inventory':\n addToInventory();\n break;\n case 'Add New Product':\n addNewProduct();\n break;\n default:\n closeAndExit();\n }\n });\n}", "function App()\r\n{\r\n\tconsole.log(\"===========================================\");\r\n\tconsole.log(\"\\t\\tWelcome to LIRI.\");\r\n\tconsole.log(\"===========================================\");\r\n\tinquirer.prompt(questions[0]).then(answer => {//promts the first question in our questions list object\r\n\t\tswitch(answer['MenuOption']) {//answer['MenuOption'] in order to get the users input result\r\n\t\t\tcase '1':\r\n\t\t\t\tinquirer.prompt(questions[1]).then(answer => {\r\n\t\t\t\t\tExecuteCommand('get-tweets', answer['TwitterUsername']);//runs the get latest tweets command\r\n\t\t\t\t});\r\n\t\t\t break;\r\n\t\t\tcase '2':\r\n\t\t\t\tinquirer.prompt(questions[2]).then(answer => {\r\n\t\t\t\t\tExecuteCommand('spotify-this-song', answer['SpotifySongSearch']);//runs the Spotify Song search command\r\n\t\t\t\t});\r\n\t\t\t break;\r\n\t\t\tcase '3':\r\n\t\t\t\tinquirer.prompt(questions[3]).then(answer => {\r\n\t\t\t\t ExecuteCommand('movie-this', answer['MovieName']);//runs the movie name search command\r\n\t\t\t\t});\r\n\t\t\t break;\r\n\t\t\tcase '4':\r\n\t\t\t\tExecuteCommand('do-what-it-says', null);//runs the command in the textfile \r\n\t\t\t break;\r\n\t\t\tcase '5':\r\n\t\t\t\tExecuteCommand('exit', null);//exits the application\r\n\t\t\t break;\r\n\t\t\tdefault:\r\n\t\t\t\tconsole.log(\"Command not recognized! Please try again.\");\r\n\t\t\t break;\r\n\t\t }\r\n\t})\r\n}", "function liriRun(appCommand, userSearch) {\n\n switch (appCommand) {\n case \"spotify-this-song\":\n getSpotify(userSearch);\n break;\n\n case \"concert-this\":\n getBranndsInTown(userSearch);\n break;\n\n case \"movie-this\":\n getOMDB(userSearch);\n break;\n\n case \"do-what-it-says\":\n getRandom();\n break;\n // if appCommand is left blank, return a default message to user\n\n default:\n console.log(\"Please enter one of the following commands: 'concert-this', 'spotify-this-song', 'movie-this' and 'do-what-it-says'\")\n }\n}", "function displayMenu() {\n inquirer.prompt([\n {\n type: \"list\",\n name: \"action\",\n message: \"Select action\",\n choices: [\n \"View Products for Sale\",\n \"View Low Inventory\",\n \"Add to Inventory\",\n \"Add New Product\"\n ]\n }\n ]).then(function (answers) {\n //console.log(answers);\n\n switch (answers.action) {\n case \"View Products for Sale\":\n viewProducts();\n break;\n case \"View Low Inventory\":\n viewLowInventory();\n break;\n case \"Add to Inventory\":\n addToInventory();\n break;\n case \"Add New Product\":\n addNewProduct();\n break;\n }\n });\n}", "function menu() {\n //promt selection of what to search for\n inquirer.prompt([{\n type: \"list\",\n message: \"Please select what you want to search:\",\n choices: [\"concert-this\", \"spotify-this-song\", \"movie-this\", \"do-what-it-says\", \"exit\"],\n name: \"search\"\n }]).then(function (response) {\n //elaborate the question ask to the user\n let question = \"Please enter the name of the \";\n switch (response.search) {\n case \"concert-this\":\n question += \"Artist/Band: \";\n break;\n case \"spotify-this-song\":\n question += \"Song: \";\n break;\n case \"movie-this\":\n question += \"Movie: \";\n break;\n case \"do-what-it-says\":\n //if the user chose do what is says call the funcion to retrieve data from file\n readRandomTxt(response.search);\n break;\n default:\n // function ends if user chose exit\n return;\n }\n // call function to ask next question to the user\n if (response.search !== \"do-what-it-says\") {\n nextQuestion(question, response.search);\n }\n });\n} // end of main menu", "function runProgram() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add To Inventory\", \"Exit\"],\n name: \"userChoice\"\n }\n ]).then(function (inquirerResponse) {\n userChoice = inquirerResponse.userChoice;\n switchChoices(userChoice);\n })\n}", "function menuOptions() {\n\tinquirer.prompt([\n\t{\n\t\ttype: \"list\",\n\t\tmessage:\"\\nSelect a menu option from below\",\n\t\tchoices: [\"Make a new card\", \"Show existing cards\", \"Exit\"],\n\t\tname: \"menuChoices\"\n\t}\n\t\t]).then(function(useranswer){\n\n\t\t\tswitch (useranswer.menuChoices){\n\t\t\t\tcase 'Make a new card':\n\t\t\t\tconsole.log(\"Make a new flashcard\");\n\t\t\t\tBasicCard();\n\t\t\t\tbreak;\n\n\t\t\t\tcase 'Show existing cards':\n\t\t\t\tconsole.log(\"This feature is not yet active\");\n\t\t\t\tbreak;\n\n\t\t\t\tcase 'Exit':\n\t\t\t\tconsole.log(\"Exit\");\n\t\t\t\treturn;\n\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\treturn;\n\t\t\t\tconsole.log(\"\");\n\t\t\t\tconsole.log(\"Try Again\");\n\t\t\t\tconsole.log(\"\");\n\t\t\t} // close question selection\n\t\t});\n\t} // close function menuOptions", "function start() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"rawlist\",\n message: \"What would you like to do?\",\n choices: [\n // \"View all employees\",\n // \"View all employees by department\",\n \"View all employees by manager\",\n \"Add employee\",\n // \"Remove employee\",\n \"Update employee role\",\n \"Update employee manager\",\n // \"View all roles\",\n \"Add role\",\n // \"Remove role\",\n // \"Exit\"\n ]\n })\n .then(function (answer) {\n switch (answer.action) {\n case \"View all employees\":\n // returns data\n viewEmploys();\n break;\n\n case \"View all employees by department\":\n // needs inquirer by which department\n inqViewDep();\n break;\n\n case \"View all employees by manager\":\n // needs inquirer by which manager\n inqViewMang();\n break;\n\n case \"Add employee\":\n // needs inquirer to ask info\n inqAddEmploy();\n break;\n\n case \"Remove employee\":\n // needs inquiere to ask info\n inqRemoveEmploy();\n break;\n\n case \"Update employee role\":\n // reutrns update message is a PUT\n inqUpdateEmployRole();\n break;\n\n case \"Update employee manager\":\n // returns update messge is a PUT\n inqUpdateEmployMang();\n break;\n\n case \"View all roles\":\n // returns data\n viewRoles();\n break;\n\n case \"Add role\":\n // needs inquirer to ask info\n inqAddRole();\n break;\n\n case \"Remove role\":\n // needs inquirer to ask info\n inqRemoveRole();\n break;\n\n case \"Exit\":\n // needs SQL to end connection\n exit();\n break;\n }\n });\n}", "function displayMenu() {\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"Menu\",\n message: \"Choose your option from the below menu???\",\n choices: [\n \"a: View Products for Sale\",\n \"b: View Low Inventory\",\n \"c: Add to Inventory\",\n \"d: Add New Product\",\n \"e: Exit\"\n ]\n }\n ])\n .then(function(choice) {\n switch (choice.Menu) {\n case \"a: View Products for Sale\":\n viewProductsForSale();\n break;\n case \"b: View Low Inventory\":\n viewLowInventory();\n break;\n case \"c: Add to Inventory\":\n addToInventory();\n break;\n case \"d: Add New Product\":\n addNewProduct();\n break;\n case \"e: Exit\":\n console.log(\"Thank-you!\");\n break;\n }\n });\n}", "function managerOptions(){\n inquirer\n .prompt({\n //format and question #1 to ask manager--menu options\n name: \"mgrMenu\",\n type: \"list\",\n message: \"What do you need to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory Products\", \"Update Inventory for a Product\", \"Add Product to Inventory\"]\n })\n //function to run after the inquiry based on manager's selection\n .then(function(answer){\n switch (answer.mgrMenu){\n //to view all products for sale\n case \"View Products for Sale\":\n totalInv();\n break;\n //to view products with low inventory\n case \"View Low Inventory Products\":\n lowInv();\n break;\n //to update inventory for a product\n case \"Update Inventory for a Product\":\n updateInv();\n break;\n //to add a product to products for sale\n case \"Add Product to Inventory\":\n addProduct();\n break\n }\n \n })\n}", "function main(){\n\n //This will show the manager and menu list for a selection \n //Prompt for \"View Products for Sale\"\n //Prompt for \"View Low Inventory\"\n //Prompt for \"Add to Inventory\"\n //Prompt for \"Add New Product\"\n inquirer\n .prompt([\n {\n type: \"list\",\n name: \"mgrAction\",\n message: \"\\nWhat manager action would you like to perform?\",\n choices: [\"View Products for Sale\", \"View Low Qty Products\", \"Add to Inventory\",\"Add New Product\",\"Exit\"]\n }\n ])\n .then(function(res){\n if (res.mgrAction === 'View Products for Sale') {\n showProd();\n } else if (res.mgrAction === 'View Low Qty Products') {\n showLowProd();\n } else if (res.mgrAction === 'Add to Inventory') {\n addProdQty();\n } else if (res.mgrAction === 'Add New Product') {\n addNewProd();\n } else if (res.mgrAction === 'Exit') {\n conn.end();\n }\n else {\n //Show error message\n console.log(\"*** Sorry, an invalid selection was made!\");\n main();\n } \n\n })\n}", "function user(){\n inquirer.prompt([{\n name : \"userMenu\",\n type : \"list\",\n message : \"What do you want to do?\",\n choices : [\"purchase on an item\", \"check price/stock of an item\", \"quit\"]\n }]).then(answers=>{\n if (answers.userMenu === \"purchase on an item\"){\n bid()\n }\n else if (answers.userMenu === \"check price/stock of an item\"){\n check()\n }\n else if(answers.userMenu === \"quit\"){\n connection.end()\n }\n })\n}", "function startApp() {\n\n //Take user input\n inquirer.prompt({\n type: \"list\",\n message: \"Enter your choice of liri search?\",\n choices: [\"concert-this\", \"spotify-this-song\", \"movie-this\", \"do-what-it-says\"],\n name: \"liriSearch\"\n })\n .then(function (inquirerResponse) {\n\n //Call function with user option to execute desired operation\n liriSearch(inquirerResponse.liriSearch, \"\");\n\n })\n .catch(function (err) {\n console.log(err);\n });\n\n\n}", "function managerView() {\n\n inquirer.prompt([{\n type: 'list',\n name: 'manage',\n message: 'Manager View Menu: Pick a task.',\n choices: [\n 'View Products for Sale',\n 'View Low Inventory',\n 'Add to Inventory',\n 'Add New Product',\n '(Exit Program)'\n\n ],\n filter: function (val) {\n //return val;\n if (val === 'View Products for Sale') {\n return 'viewInventory';\n } else if (val === 'View Low Inventory') {\n return 'lowInventory';\n } else if (val === 'Add to Inventory') {\n return 'addInventory';\n } else if (val === 'Add New Product') {\n return 'addNew';\n } else if (val === '(Exit Program)') {\n return 'quit';\n } else {\n console.error('Error: selection not programmed');\n\n }\n }\n }\n\n ]).then(choice => {\n //console.log(`Manager choice:`+ JSON.stringify(choice));\n if (choice.manage === 'viewInventory') {\n viewProducts();\n } else if (choice.manage === 'lowInventory') {\n viewLowInventory();\n } else if (choice.manage === 'addInventory') {\n addToInventory();\n } else if (choice.manage === 'addNew') {\n addNewProduct();\n } else if (choice.manage === 'quit') {\n console.log(\"Goodbye!\")\n connection.end();\n\n return;\n }\n\n });\n}", "function startApp() {\n //ask user question of what they would like to do\n inquirer.prompt([\n // Here we create a list of choices\n {\n type: \"list\",\n message: \"What command would you like to run?\",\n choices: ['spotify-this-song', 'movie-this', 'concert-this', 'do-what-it-says'],\n name: \"command\"\n },\n\n ])\n .then(function(inqResponse) {\n\n var operator = inqResponse.command;\n // var querySearch = inqResponse.input;\n\n\n //Switch case to decide what to do based on the operator specifiec\n figureFunc(operator);\n\n });\n}", "function menuPrompt(repeat) {\n // If logic that checks if the user came from a repeat calling of the function\n if(repeat === \"repeat\") {\n console.log(\"Thanks for your continued usage.\")\n }\n // When a new instance of the script is run, this message is provided.\n else{\n console.log(\"Welcome to the entertainment LIRI. Learn details about different spheres of entertainment!\");\n }\n inquirer.prompt([\n {\n name: \"searchterm\",\n message: \"What would you like to know more about?\"\n },\n {\n name: \"option\",\n message: \"What category is this?\",\n choices: menuChoices,\n type: \"list\",\n },\n ]).then(function(response) {\n // Uses the menuChoices array to run unique functions\n var value = menuChoices.indexOf(response.option);\n if(value === 0) {\n concertThis(response.searchterm);\n }\n else if(value === 1) {\n spotifyThisSong(response.searchterm);\n }\n else if(value === 2) {\n movieThis(response.searchterm)\n }\n else if(value === 3) {\n random();\n }\n })\n}", "function startApp() {\n inquirer\n .prompt({\n type: \"list\",\n name: \"choice\",\n message: \"What would you like to do?\",\n choices: userChoices,\n })\n .then((answer) => {\n require(\"./lib/databasePath\")(answer.choice);\n });\n}", "function actions() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"View All Employees\",\n \"View All Employees By Department\",\n \"View All Employees By Manager\",\n \"View All Employees By Role\",\n \"Add Employee\",\n \"Update Employee's Role\",\n \"Update Employee's Manager\",\n \"Remove Employee\",\n \"View All Roles\",\n \"Add Role\",\n \"Remove Role\",\n \"View All Departments\",\n \"View Total Utilized Budget By Department\",\n \"Add Department\",\n \"Remove Department\",\n \"Exit\",\n ],\n })\n // On selection in the terminal, evaluate the selection and run the appropriate function...\n .then(function (answer) {\n switch (answer.action) {\n case \"View All Employees\":\n viewAllEmp();\n break;\n\n case \"View All Employees By Department\":\n viewEmpByDept();\n break;\n\n case \"View All Employees By Manager\":\n viewEmpByMgr();\n break;\n\n case \"View All Employees By Role\":\n viewEmpByRole();\n break;\n\n case \"Add Employee\":\n addEmp();\n break;\n\n case \"Update Employee's Role\":\n updateEmpRole();\n break;\n\n case \"Update Employee's Manager\":\n updateEmpMgr();\n break;\n\n case \"Remove Employee\":\n removeEmp();\n break;\n\n case \"View All Roles\":\n viewAllRoles();\n break;\n\n case \"Add Role\":\n addRole();\n break;\n\n case \"Remove Role\":\n removeRole();\n break;\n\n case \"View All Departments\":\n viewAllDepts();\n break;\n\n case \"Add Department\":\n addDept();\n break;\n\n case \"Remove Department\":\n removeDept();\n break;\n\n case \"View Total Utilized Budget By Department\":\n viewBudget();\n break;\n\n case \"Exit\":\n console.log(\"GOODBYE!\");\n //Exits application when \"Exit\" selected...\n connection.end();\n break;\n\n default:\n console.log(\"Not a valid selection.\");\n break;\n }\n });\n}", "function managerMenu(){\n\tinquirer.prompt([{\n\t\ttype: \"list\",\n\t\tname: \"mainSelection\",\n\t\tmessage: \"Please make a selection: \",\n\t\tchoices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\"]\n\t}]).then(function(selection){\n\n\t\t// Call a particular function depending on user's selection\n\t\tswitch(selection.mainSelection){\n\t\t\tcase \"View Products for Sale\":\n\t\t\t\tviewProducts();\n\t\t\t\tbreak;\n\t\t\tcase \"View Low Inventory\":\n\t\t\t\tviewLowInventory();\n\t\t\t\tbreak;\n\t\t\tcase \"Add to Inventory\":\n\t\t\t\taddInventory();\n\t\t\t\tbreak;\n\t\t\tcase \"Add New Product\":\n\t\t\t\taddProduct();\n\t\t}\n\t});\n}", "function runSupervisorMenu() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"Please select from menu: \".magenta.italic.bold,\n name: \"menu\",\n choices: [\"View Product Sales By Department\", \"Create New Department\", \"View All Users\", \"Create User\", \"Exit\"]\n }\n ]).then(function (inquirerResponse) {\n switch (inquirerResponse.menu) {\n case \"View Product Sales By Department\":\n viewDepartmentSales();\n break;\n case \"Create New Department\":\n addDepartment();\n break;\n case \"View All Users\":\n viewAllUsers();\n break;\n case \"Create User\":\n addUser();\n break;\n case \"Exit\":\n process.exit();\n break;\n }\n });\n}", "function mainMenu() {\n inquirer.prompt(\n {\n name: \"choice\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"Add department, role or employee\",\n \"View departments, roles or employees\",\n \"Update roles\",\n \"Quit\"\n ]\n }\n ).then(function(response){ \n console.log(response);\n switch (response.choice) {\n case \"Add department, role or employee\":\n addMenu();\n break;\n\n case \"View departments, roles or employees\":\n viewMenu();\n break;\n\n case \"Update roles\":\n updateRoles();\n break;\n\n case \"Quit\":\n connection.end()\n break;\n }\n })\n}", "function init() {\n inquirer.prompt([\n {\n type: 'input',\n name: 'title',\n message: 'What is the title of your application?'\n },\n {\n type: 'input',\n name: 'email',\n message: 'Please enter your email address'\n },\n {\n type: 'input',\n name: 'github',\n message: 'Please enter your github user name.'\n },\n {\n type: 'input',\n name: 'description',\n message: 'Please enter a description of your application.'\n\n },\n {\n type: 'list',\n name: 'license',\n choices: ['MIT', 'Apache', 'OSC'],\n message: 'Pick your license:'\n }\n ])\n .then(answers => {\n \n \n })\n\n}", "function menuSelection(menuChoice) {\n //prompt Engineer questions\n if (menuChoice === \"Add Engineer\") {\n inquirer\n .prompt([\n {\n type: \"input\",\n name: \"name\",\n message: \"What is the engineer's name?\",\n validate: function (input) {\n const namePass = input.match(/^$/);\n if (namePass) {\n return \"Please enter a name!\";\n }\n return true;\n },\n },\n {\n type: \"input\",\n name: \"id\",\n message: \"What is the engineer's id?\",\n validate: function (input) {\n const idPass = input.match(/^$/);\n if (idPass) {\n return \"Please enter an id!\";\n }\n return true;\n },\n },\n {\n type: \"input\",\n name: \"email\",\n message: \"What is the engineer's email?\",\n validate: function (input) {\n const emailPass = input.match(\n /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/\n );\n if (emailPass) {\n return true;\n }\n return \"Please enter a valid email address!\";\n },\n },\n {\n type: \"input\",\n name: \"github\",\n message: \"What is the engineer's GitHub username?\",\n validate: function (input) {\n const idPass = input.match(/^$/);\n if (idPass) {\n return \"Please enter a Github username!\";\n }\n return true;\n },\n },\n {\n type: \"list\",\n name: \"menu\",\n message: \"Please select and option from the menu below:\",\n choices: [\"Add Engineer\", \"Add Intern\", \"Finished Building Team\"],\n },\n ])\n .then(function (data) {\n //create engineer object and save engineer object to userInput array\n let engineer1 = new Engineer(\n data.name,\n data.id,\n data.email,\n data.github\n );\n userInput.push(engineer1);\n menuSelection(data.menu);\n });\n }\n //prompt Intern questions\n else if (menuChoice === \"Add Intern\") {\n inquirer\n .prompt([\n {\n type: \"input\",\n name: \"name\",\n message: \"What is the intern's name?\",\n validate: function (input) {\n const namePass = input.match(/^$/);\n if (namePass) {\n return \"Please enter a name!\";\n }\n return true;\n },\n },\n {\n type: \"input\",\n name: \"id\",\n message: \"What is the intern's id?\",\n validate: function (input) {\n const idPass = input.match(/^$/);\n if (idPass) {\n return \"Please enter an id!\";\n }\n return true;\n },\n },\n {\n type: \"input\",\n name: \"email\",\n message: \"What is the intern's email?\",\n validate: function (input) {\n const emailPass = input.match(\n /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/\n );\n if (emailPass) {\n return true;\n }\n return \"Please enter a valid email address!\";\n },\n },\n {\n type: \"input\",\n name: \"school\",\n message: \"Where did the intern go to school?\",\n validate: function (input) {\n const idPass = input.match(/^$/);\n if (idPass) {\n return \"Please enter a school!\";\n }\n return true;\n },\n },\n {\n type: \"list\",\n name: \"menu\",\n message: \"Please select and option from the menu below:\",\n choices: [\"Add Engineer\", \"Add Intern\", \"Finished Building Team\"],\n },\n ])\n .then(function (data) {\n //create intern object and save intern object to userInput array\n let intern1 = new Intern(data.name, data.id, data.email, data.school);\n userInput.push(intern1);\n menuSelection(data.menu);\n });\n } else {\n //finish buillding team option, create html\n writeToFile(\"dist/index.html\", userInput);\n }\n}", "function mainMenu() {\n inquirer\n .prompt([\n {\n type: \"confirm\",\n name: \"choice\",\n message: \"Would you like to place another order?\"\n }\n ]).then(function (answer) {//response is boolean only\n if (answer.choice) { //if true, run func\n startBamazon();\n } else {\n console.log(\"Thanks for shopping at Bamazon. See you soon!\")\n connection.end();\n }\n })\n}", "function secondMenu(){\n\tinquirer.prompt([\n\t\t\t{\n\t\t\t\tname: \"menuOption\",\n\t\t\t\tmessage: \"What would you like to do?\",\n\t\t\t\ttype: \"list\",\n\t\t\t\tchoices: [\"Add Basic Card\",\"Add Cloze Card\",\"Remove Card\",\"Start Quiz\",\"Go Back\",\"Exit\"]\n\t\t\t}\n\t\t])\n\t.then(function(response){\n\t\tif(response.menuOption === \"Add Basic Card\"){\n\t\t\t//create Basic Card\n\t\t\t\t//prompts user for a front and back text.\n\t\t\taddBasicCard(myDeck);\n\t\t} else if(response.menuOption === \"Add Cloze Card\"){\n\t\t\t//create Cloze Card\n\t\t\t\t//prompts user for front text and a cloze(must be part of full text)\n\t\t\taddClozeCard(myDeck);\n\t\t}else if(response.menuOption === \"Remove Card\"){\n\t\t\t//?remove card\n\t\t\t\t//list out cards and choose one to destroy\n\t\t}else if(response.menuOption === \"Start Quiz\"){\n\t\t\t//quiz\n\t\t\t\t//loop thru the cards and ask for input on each card.\n\t\t\tif(myDeck.length === 0){\n\t\t\t\t//do not start the quiz\n\t\t\t\tconsole.log(\"This deck has no cards in it\");\n\t\t\t\tsecondMenu();\n\t\t\t} else{\n\t\t\t\tstartQuiz(0);\n\t\t\t}\n\t\t}else if(response.menuOption === \"Go Back\"){\n\t\t\t//back\n\t\t\t\t//return to the previous menu\n\t\t\tmyDeck = {};\n\t\t\tfirstMenu();\n\t\t}else if(response.menuOption === \"Exit\"){\n\t\t\t//exit \n\t\t\t\t//quit the application\n\t\t\treturn false;\n\t\t}\n\t});\n}", "function mainMenu()\n{\n let mainMenu=readlineSync.question(`1. 添加学生\n 2. 生成成绩单\n 3. 退出\n 请输入你的选择(1~3):`);\n return mainMenu;\n}", "function readMenu() {\n inquirer.prompt({\n type: \"list\",\n name: \"action\",\n message: \"What would you like to view?\",\n choices: [\n { name: \"View all departments\", value: viewAllDepartments },\n { name: \"View all roles\", value: viewAllRoles },\n { name: \"View roles by department\", value: viewRolesByDepartment },\n { name: \"View all employees\", value: viewAllEmployees },\n { name: \"View employees by department\", value: viewEmployeesByDepartment },\n { name: \"View employees by role\", value: viewEmployeesByRole },\n { name: \"View employees by manager\", value: viewEmployeesByManager },\n { name: \"View department budget utilization\", value: viewDepartmentBudget },\n { name: \"Go back\", value: mainMenu }\n ]\n }).then(({ action }) => action());\n}", "function inquire() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\", \"Leave Store\"],\n name: \"askManager\"\n }\n ]).then(function(user) {\n var path = user.askManager;\n\n switch (path) {\n case \"View Products for Sale\":\n return createTable();\n \n case \"View Low Inventory\":\n return lowInv();\n\n case \"Add to Inventory\":\n return addInv();\n\n case \"Add New Product\":\n return newItem();\n \n case \"Close Program\":\n console.log(\"See you next time!\")\n console.log(\"\\n\")\n return connection.end();\n\n default:\n console.log(\"There seems to be an issue, try again.\")\n console.log(\"\\n\")\n return connection.end();\n }\n })\n }", "function supervisorPrompt(){\n inquirer\n .prompt([\n {\n type: \"list\",\n message: \"Select a menu action\",\n choices: [\"View Product Sales By Department\", \"Create New Department\", \"Quit\"],\n name: \"menu\"\n },\n ])\n .then(function(response) {\n console.log(response.menu);\n if (response.menu === \"View Product Sales By Department\"){\n displayDepartmentSales();\n }\n else if (response.menu === \"Create New Department\"){\n addDepartment();\n }\n else {\n connection.destroy();\n }\n \n }); \n}", "function managerMenu(){\n inquirer.prompt([\n\t\t{\n\t\t\t type: \"list\",\n\t\t message: \"Select an operation to perform\",\n name: \"mgrmenu\",\n choices: ['1 - View Products', '2 - View Low Inventory', '3 - Add to Inventory', '4 - Add New Product', '5 - Exit']\n\t\t},\n\t]).then(function(response){\n if(response.mgrmenu.includes(1)){\n viewSaleProducts();\n }\n else if(response.mgrmenu.includes(2)){\n viewLowInvetory();\n }\n else if(response.mgrmenu.includes(3)){\n viewSaleProducts(addInventory);\n }\n else if(response.mgrmenu.includes(4)){\n addProduct();\n }\n else{\n //close the connection\n connection.end();\n }\n });\n}", "function main() {\n inquirer.prompt([\n {\n type: \"list\",\n name: \"list\",\n message: \"What would you like to do?\",\n choices: [\"Add Employee\", \"Add Employee Role\", \"Add Department\", \"View Employees\", \"View Employee Role\", \"View Departments\", \"Update Employee\", \"Delete Employee\", \"Delete Employee Role\", \"Delete Department\", \"Exit\"]\n }\n ]).then(answers => {\n if (answers.list === \"View Employees\") {\n viewEmp();\n }\n else if (answers.list === \"View Employee Role\") {\n viewRole();\n }\n else if (answers.list === \"View Departments\") {\n viewDept();\n }\n else if (answers.list === \"Add Employee\") {\n addEmp();\n }\n else if (answers.list === \"Add Employee Role\") {\n addRole();\n }\n else if (answers.list === \"Add Department\") {\n addDept();\n }\n else if (answers.list === \"Update Employee\") {\n updateEmpRole();\n }\n else if (answers.list === \"Delete Employee\") {\n deleteEmp();\n }\n else if (answers.list === \"Delete Employee Role\") {\n deleteRole();\n }\n else if (answers.list === \"Delete Department\") {\n deleteDept();\n }\n else if (answers.list === \"Exit\") {\n connection.end();\n }\n });\n}", "function displayMenu () {\n inquirer\n .prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n name: \"choice\",\n choices: [\"View Product Sales by Department\", \"Create New Department\", \"Exit\"]\n }\n ]).then(answers => {\n\n switch (answers.choice) {\n\n case \"View Product Sales by Department\":\n viewSalesbyDept();\n break;\n\n case \"Create New Department\":\n createNewDepartment();\n break;\n\n case \"Exit\":\n connection.end();\n break;\n }\n });\n}", "function mainProcess(){\n\n //2: It will then show the Menu = main_menu()\n //options in the main menu array\n main_menu(['Products ','View Credits ','Refund', 'Top-up']);\n\n //3: The user will select an item = main_menu()\n selection = getuserselection();\n\n //4: It will then go to what ever menu the user has selecetd\n menuSelection(selection);\n //If user selects Products this code will then show the products menu\nif(selection == 0){\n //get the choice from the user from the set array\n choice = getuserchoice();\n //From the choice\n purchase(choice);\n //5; It will show the remaining credit after purchase = purchase()\n showCredits();\n}\n}", "function showAddMenu(){\n inquirer.prompt(\n {type: \"rawlist\",\n name: \"add_action\",\n message: \"Add departments, roles, employees?\",\n choices: [\n \"Add Departments\",\n \"Add Roles\",\n \"Add Employees\",\n \"Return to Main Menu\",\n \"Exit\"\n ]\n }\n ).then(function(answer){\n switch (answer.add_action){\n case \"Add Departments\":\n addDepartment();\n break;\n \n case \"Add Roles\":\n addEmpRole();\n break;\n\n case \"Add Employees\":\n addEmployee();\n break;\n\n case \"Return to Add Data Menu\":\n showAddMenu();\n break;\n \n case \"Return to Main Menu\":\n showMainMenu();\n break;\n\n case \"Exit\":\n exit();\n break;\n\n }\n }).catch(function(err){\n if (err){\n console.log(\"Add Menu error: \" + err);\n }\n });\n}", "function Start () {\n console.log(gradient.summer('Welcome to Liri\\n\\nList of Commands: \"node liri\" +\\n\\n- concert-this \"band/artist name\"\\n- spotify-this-song \"song name\"\\n- movie-this \"movie title\"\\n- do-what-it-says'));\n if (inputString.length > 4) {\n argument = inputString.slice(3, inputString.length).join('+')\n }\n ask(command, argument)\n}", "function liri(userCommandChoice){\n switch(userCommandChoice){\n case `concert-this`:\n if(validateUserInput()){\n concertThis()\n }else {\n console.log('please input artist/band name after liri command!');\n return\n }\n \n break;\n case `spotify-this-song`:\n if(validateUserInput()){\n spotifyThis()\n }else {\n arg2 = 'The Sign'\n spotifyThis();\n }\n break;\n case `movie-this`:\n if(validateUserInput()){\n movieThis();\n }else {\n console.log('please input movie name after liri command!');\n return\n }\n break;\n case `do-what-it-says`:\n liriChoice();\n break;\n default:\n console.log('OOPS! I do not know that command. please choice from: \\n concert-this \\n spotify-this-song \\n movie-this \\n do-what-it-says');\n break;\n }\n }", "function userSelection() {\n writeLog(\"Selection: \" + userChoice);\n writeLog(\"Search Item: \" + searchItem);\n switch (userChoice) {\n case \"help\":\n console.log(\"The following options are valid:\");\n console.log(\"-----------------------------------------------------------------------\");\n console.log(\"'node liri concert-this <artist>' --> search bandsintown for the artist\");\n console.log(\"'node liri spotify-this-song <song>' --> search spotify for the song\");\n console.log(\"'node liri movie-this <movie>' --> search omdb for the movie\");\n console.log(\"'node liri do-what-it-says' --> read commands from the random.txt file and execute\");\n break;\n case \"concert-this\":\n doConcertThis(searchItem);\n break;\n case \"spotify-this-song\":\n doSpotifyThisSong(searchItem);\n break;\n case \"movie-this\":\n doMovieThis(searchItem);\n break;\n case \"do-what-it-says\":\n doWhatItSays(searchItem);\n break;\n default:\n writeLog(\"You gave me '\" + userChoice + \"' which is not a valid option. Enter 'node liri help' to display valid options.\");\n }\n}", "function UserInputs(action, input) {\n switch (action) {\n case \"concert-this\":\n runBandsInTown(input);\n fixString(input)\n break;\n case \"spotify-this-song\":\n runSpotify(input);\n fixString(input)\n break;\n case \"movie-this\":\n runOmdb(input);\n fixString(input)\n break;\n case \"do-what-it-says\":\n runRandom(input);\n break;\n default:\n console.log(\"\\n--------------------------------------------------------\");\n console.log(\n \"Please enter a valid argument, such as:\\n\\nnode liri.js movie-this [MOVIE TITLE]\\n\\nnode liri.js spotify-this-song [SONG TITLE]\\n\\nnode liri.js concert-this [ARTIST NAME]\\n\\nnode liri.js do-what-it-says\"\n );\n console.log(\n \"--------------------------------------------------------\\n\\n\"\n );\n }\n}", "function init() {\n return inquirer.prompt([\n {\n type: 'input',\n name:'github',\n message: github,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'email',\n message: email,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'title',\n message: title,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'description',\n message: description,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'installation',\n message: installation,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'usage',\n message: usage,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'list',\n name: 'license',\n message: license,\n choices: ['MIT', 'GNU GPLv3', 'Apache', 'GNU AGPLv3', 'None'] \n },\n {\n type: 'input',\n name: 'contribution',\n message: contribution,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'test',\n message: test,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n ])\n}", "function startPrompt(){\n\n const questions = \n [{\n type: 'list',\n name: 'programs',\n message: 'What would you like to do?',\n choices: ['Look up a song', 'Look up a movie', 'Find a concert', 'Look up something random']\n },\n {\n type: 'input',\n name: 'movieChoice',\n message: 'What movie would you like to look up?',\n when: function(answers) {\n return answers.programs == 'Look up a movie';\n }\n },\n {\n type: 'input',\n name: 'artistName',\n message: 'What artist do you want to see in concert?',\n when: function(answers) {\n return answers.programs == 'Find a concert';\n }\n },\n {\n type: 'input',\n name: 'songChoice',\n message: 'What song would you like to look up?',\n when: function(answers) {\n return answers.programs == 'Look up a song';\n }\n }];\n\n inquirer\n .prompt(questions)\n .then(answers => {\n\n switch (answers.programs) {\n case 'Look up a song':\n getMeSpotify(answers.songChoice);\n break;\n case 'Look up a movie':\n getMeMovie(answers.movieChoice);\n break;\n case 'Find a concert':\n getMeConcert(answers.artistName);\n break;\n case 'Look up something random':\n doWhatItSays();\n break;\n default:\n console.log('LIRI doesn\\'t know how to do that');\n \n }\n });\n}", "function promptManagerMenu() {\n inquirer.prompt([\n {\n type: \"list\",\n choices: [\n { name: \"View Products for Sale\", value: \"forSale\", short: \"View Products for Sale\"},\n { name: \"View Low Inventory\", value: \"lowInventory\", short: \"View Low Inventory\"},\n { name: \"Add to Inventory\", value: \"addInventory\", short: \"Add to Inventory\"},\n { name: \"Add New Product\", value: \"newProduct\", short: \"Add New Product\"},\n { name: \"Exit\", value: \"exit\", short: \"Exit\"}\n ],\n name: \"selection\"\n }\n ]).then(menu => {\n switch (menu.selection) {\n case \"forSale\":\n db.product.list(promptManagerMenu);\n break;\n case \"lowInventory\":\n db.product.findWhere(\"stock_quantity < 5\", promptManagerMenu);\n break;\n case \"addInventory\":\n let products = [];\n\n db.product.list(\n function () {\n addInventory(products);\n },\n products\n );\n break;\n case \"newProduct\":\n addNewProduct();\n break;\n case \"exit\":\n db.connection.end();\n }\n })\n}", "function init() {\n inquirer\n .prompt([\n /* Pass your questions in here */\n {\n type: 'input',\n name: 'title',\n message: questions[0],\n },\n {\n type: 'input',\n name: 'description',\n message: questions[1],\n },\n {\n type: 'input',\n name: 'install',\n message: questions[2],\n },\n {\n type: 'input',\n name: 'usage',\n message: questions[3],\n },\n {\n type: 'input',\n name: 'contribution',\n message: questions[4],\n },\n {\n type: 'input',\n name: 'test',\n message: questions[5],\n },\n {\n type: 'list',\n name: 'license',\n message: questions[6],\n choices: ['Apache', 'MIT', 'GPL','None'],\n },\n {\n type: 'input',\n name: 'username',\n message: questions[7],\n },\n {\n type: 'input',\n name: 'email',\n message: questions[8],\n },\n ])\n .then((data) => {\n const fileName = 'Sample.md'\n writeToFile(fileName, data)\n })\n}", "function startApp() {\n\tswitch (arg_1) {\n\t\tcase 'spotify-this-song':\n\t\t\tgetMusic();\n\t\t\tbreak;\n\t\tcase 'my-tweets':\n\t\t\tgetTweets();\n\t\t\tbreak;\n\t\tcase 'movie-this':\n\t\t\tgetMovie();\n\t\t\tbreak;\n\t\tcase 'do-what-it-says':\n\t\t\treadRandom();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log('Wrong entry! Please try again.');\n\t}\n}", "function showOptions() {\n inquirer.prompt([\n {\n type: \"list\",\n name: \"menu_options\",\n message: \"Choose from the menu below:\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\"]\n }\n ])\n //once they respond\n .then(function (response) {\n\n //use a switch block to use the managers answer to trigger the\n //respective function to kick off\n switch (response.menu_options) {\n case \"View Products for Sale\":\n viewProduct();\n break;\n\n case \"View Low Inventory\":\n viewInventory();\n break;\n\n case \"Add to Inventory\":\n addInventory();\n break;\n\n case \"Add New Product\":\n addProduct();\n break;\n }\n });\n\n //======================================= VIEW PRODUCT =========================================================\n //if the manager chooses to view all products\n function viewProduct() {\n\n //query from the database all products\n connection.query(\"SELECT * FROM products\",\n\n //if there is an error, show it\n function (err, res) {\n\n if (err) throw (err);\n\n for (var i = 0; i < res.length; i++) {\n console.log(\"----------------------\\n\" + \"ID: \" + res[i].item_id + \"\\nProduct: \" + res[i].product_name + \"\\nPrice: $\" + res[i].price + \"\\nQuantity: \" + res[i].stock_quantity + \"\\n----------------------\");\n }\n\n inquirer.prompt([\n {\n type: \"confirm\",\n name: \"continue\",\n message: \"Would you like to add a new product?\"\n }\n ])\n .then(function (continue_response) {\n if (continue_response.continue) {\n addProduct();\n } else {\n console.log(\"goodbye\");\n connection.end();\n }\n })\n })\n };\n\n //======================================= VIEW INVENTORY =========================================================\n //if the manager chooses to view all inventory\n function viewInventory() {\n connection.query(\"SELECT * FROM products WHERE stock_quantity < 5\",\n function (err, res) {\n for (var i = 0; i < res.length; i++) {\n console.log(res[i].product_name + \"\\n----------------------\\n\");\n }\n }\n )\n };\n\n //======================================= ADD INVENTORY =========================================================\n //if the manager chooses to add to inventory\n function addInventory() {\n connection.query(\"SELECT * FROM products\",\n function (err, res) {\n\n if (err) throw (err);\n\n var results = [];\n\n for (var i = 0; i < res.length; i++) {\n results.push(res[i].product_name)\n }\n\n inquirer.prompt([\n {\n type: \"list\",\n name: \"update_choice\",\n message: \"Which item would you like to add to?\",\n choices: results\n }\n ]).then(function (results_two) {\n console.log(results_two.update_choice);\n })\n }\n )\n };\n\n //======================================= ADD PRODUCT =========================================================\n //if the manager chooses to add a product\n function addProduct() {\n connection.query(\"SELECT * FROM products\",\n function (err, res) {\n\n if (err) throw (err);\n\n inquirer.prompt([\n {\n type: \"input\",\n name: \"input_product\",\n message: \"Which product would you like to add?\",\n }\n ]).then(function (results_three) {\n console.log(results_three);\n })\n }\n )\n\n };\n\n\n}", "function init() {\n inquirer.prompt([\n {\n type: \"input\",\n name: \"title\",\n message: \"What is the title of this project?\"\n },\n {\n type: \"input\",\n name: \"description\",\n message: \"Provide a description for this project: \"\n },\n {\n type: \"list\",\n name: \"licenses\",\n message: \"Identify (if any) the license for this project: \",\n choices: licenseOptions \n },\n { type: \"input\",\n name: \"installation\",\n message: \"What are the installation instructions for this project?\"\n },\n {\n type: \"input\",\n name: \"usage\",\n message: \"What is the usage information for this project?\"\n },\n {\n type: \"input\",\n name: \"contributing\",\n message: \"What are the contributing guidelines for this project?\"\n },\n {\n type: \"input\",\n name: \"test\",\n message: \"What commands should be run to test this project?\"\n },\n {\n type: \"input\",\n name: \"github\",\n message: \"What is your GitHub user name?\" \n },\n {\n type: \"input\",\n name: \"email\",\n message: \"What is your email?\"\n }\n\n ]).then(function(res){\n writeToFile(res)\n })\n}", "function start(){\n //inquirer allows a cli prompt to gather info from the user\n inquirer\n .prompt(\n { //type of prompt is a list the user can choose different options\n //this allows the user to choose from a list\n type: \"list\",\n //this is the message that is displayed to the user\n message: \"What would you like to do?\",\n //this is an array of choices the user can cycle through an choose from\n choices: [\"VIEW Employee Directory\", \"VIEW Company Roles\", \"VIEW Company Departments\", \"VIEW Comprehensive Employee\", \"ADD Company Employee\", \"ADD Company Role\", \"ADD Company Department\", \"UPDATE An Employee Role\", \"DELETE a Company Employee\", \"DELETE a Company Role\", \"DELETE a Company Department\", \"EXIT\"],\n //this is the name of data is stored under\n name: \"action\"\n }\n //this handles the callback of the prompt\n ).then(function(answer) {\n //switch statement to handle the different the choices\n switch (answer.action) {\n case \"VIEW Employee Directory\":\n //SELECT id, first_name, last_name FROM company_db.employee;\n db.viewQuery(\"id, first_name, last_name\", \"company_db.employee\");\n break;\n case \"VIEW Company Roles\":\n //SELECT id, title, salary FROM company_db.role;\n db.viewQuery(\"id, title, salary\", \"company_db.role\");\n break;\n case \"VIEW Company Departments\":\n //SELECT * FROM company_db.department;\n db.viewQuery(\"*\", \"company_db.department\");\n break; \n case \"ADD Company Department\":\n //start the prompt that gathers the necessary info to add a department\n addDepartmentPrompt();\n break;\n case \"ADD Company Role\": \n //start the prompt that gathers the necessary info to add a role\n addRolePrompt();\n break;\n case \"ADD Company Employee\": \n //start the prompt that gathers the necessary info to add an employee\n addEmployeePrompt()\n break;\n case \"UPDATE An Employee Role\":\n //start the prompt that gathers the necessary info to update an employees role\n updateEmployeeRolePrompt()\n break;\n case \"DELETE a Company Department\":\n //start the prompt that gathers the necessary info to delete a department\n deleteDepartmentPrompt()\n break;\n case \"DELETE a Company Role\":\n //start the prompt that gathers the necessary info to delete a role\n deleteRolePrompt()\n break;\n case \"DELETE a Company Employee\":\n //start the prompt that gathers the necessary info to delete an employee\n deleteEmployeePrompt() \n break;\n case \"VIEW Comprehensive Employee\":\n //a query that grabs all relative info for each employee\n db.comprehensiveEmployeeQuery()\n break;\n case \"EXIT\":\n //ends the connection to the database and ends the application\n db.endConnection();\n }\n })\n}" ]
[ "0.63738406", "0.62467605", "0.61290306", "0.6073349", "0.6065181", "0.6016832", "0.5969397", "0.59220463", "0.5899242", "0.5897801", "0.58758014", "0.58625966", "0.5841483", "0.5821357", "0.58135724", "0.580731", "0.5799611", "0.57930106", "0.57923263", "0.57882756", "0.57882375", "0.5781308", "0.57645226", "0.5761584", "0.57567954", "0.57315993", "0.5718954", "0.5715327", "0.5699856", "0.5684746", "0.5672629", "0.5671335", "0.56486946", "0.5639593", "0.55919755", "0.55770344", "0.55745935", "0.5570645", "0.55667365", "0.55561006", "0.55550927", "0.55446714", "0.5543298", "0.55377734", "0.552965", "0.55276847", "0.55274826", "0.55182284", "0.5517102", "0.5506294", "0.55023813", "0.5493539", "0.54746556", "0.54744405", "0.5472279", "0.54666746", "0.5449924", "0.54434204", "0.5436744", "0.5436361", "0.5435961", "0.54312116", "0.54301447", "0.542944", "0.54261065", "0.54251826", "0.54193026", "0.54131854", "0.5411317", "0.5404587", "0.5393471", "0.5383705", "0.53825533", "0.5376697", "0.5359445", "0.5356378", "0.5353812", "0.53458405", "0.5345055", "0.53432304", "0.5337566", "0.5329949", "0.5328775", "0.5321437", "0.53211516", "0.5312794", "0.53025055", "0.53021365", "0.5297886", "0.52888024", "0.5268963", "0.5260387", "0.52559376", "0.5255153", "0.5255013", "0.52530766", "0.5249635", "0.5247355", "0.52418196", "0.5241179" ]
0.52482367
97
switch is set for the command the user gave, looking for the correct keywords
function lexaBrain (service, search) { let queryUrl =""; switch (service){ case "spotify-this-song": //checking to see if a song was provide, if not defaults to the sign let spotifySearch = ""; if(search===""){ spotifySearch="the+sign" }else{ spotifySearch=search; } //call out to spotify for 5 results. spotify.search({ type: 'track', query: spotifySearch, limit: 5 }).then(function(response) { //checking to see if any items in response, if none let user know if(response.track.items.length===0){ console.log("No song by that name found.") } //each song sent back, we print out the info for it. response.tracks.items.forEach(function(result){ console.log(); console.log ("Artist(s): "+result.artists[0].name); console.log ("Song Title: "+result.name); console.log ("Album: "+result.album.name); console.log ("On Spotify: "+result.external_urls.spotify); }) }) //incase something goes wrong .catch(function(err) { console.log("No song by that name found"); }); break; case "concert-this": //using axios to call out to bandsintown and get back results queryUrl = "https://rest.bandsintown.com/artists/" + search + "/events?app_id=codingbootcamp"; axios.get(queryUrl.replace("+", " ")).then(function(response){ if(response.data.length === 0){ console.log ("No band by that name found."); } //for each gig a band has, print out the info response.data.forEach(function(gig){ let date = gig.datetime.split("T"); let formatedDate = moment(date[0]).format("MM/DD/YYYY"); let venue = gig.venue console.log(` Venue name: ${venue.name} Location: ${venue.city}, ${venue.region}, ${venue.country} Date of show: ${formatedDate} `) }); }) //if something goes wrong... .catch(function(err){ console.log ("Band not found"); }); break; case "movie-this": queryUrl = "http://www.omdbapi.com/?t=" + search + "&y=&plot=short&apikey=trilogy"; axios.get(queryUrl).then(function(response) { let movie = response.data if (movie.length === 0){ console.log("No movie by that name found"); } console.log(` Movie Title: ${movie.Title} Release Date: ${movie.Released} IMDB Rating: ${movie.imdbRating} Rotten T: ${movie.Ratings[1].Value} Country of O: ${movie.Country} Language: ${movie.Language} Movie Plot: ${movie.Plot} Actors: ${movie.Actors} `) }) //incase something goes wrong. .catch(function(err){ console.log("No movies by that name found"); }); break; case "do-what-it-says": console.log("FreeStyle huh?...lets see...."); //reading my file and getting its contents fs.readFile("random.txt", "utf8", function(err, data) { if(err){ console.log("I wasn't able to read that...") } console.log(data); //removes "" around song name, then splits the command in two. one for command. one for searchterm. let response = data.replace(/"+/g, '').split(",");; lexaBrain(response[0],response[1]); }); break; default: console.log("I havent been programmed to do that yet..."); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function switchCommand(){\n\tswitch(command){\n\t\tcase \"my-tweets\":\n\t\t\tmyTweets();\n\t\t\tbreak;\n\t\tcase \"spotify-this-song\":\n\t\t\tspotifyThisSong(userChoice);\n\t\t\tbreak;\n\t\tcase \"movie-this\":\n\t\t\tmovieThis(userChoice);\n\t\t\tbreak;\n\t\tcase \"do-what-it-says\":\n\t\t\tdoWhatItSays();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tconsole.log(\"Please enter a valid command.\");\n\t\t\tconsole.log('\"my-tweets\", \"spotify-this-song\", \"movie-this\", \"do-what-it-says\"');\n\t\t\tbreak;\n\t}\n}", "function switchBoard() {\n // console.log(\"The value of command is: \" + command);\n\n switch (command) {\n case \"concert-this\": \n // console.log(\"option1\");\n concertThis(queryTerm);\n break;\n case \"spotify-this-song\":\n // console.log(\"option2\");\n spotifyThisSong(queryTerm);\n break;\n case \"movie-this\": \n // console.log(\"option3\");\n movieThis(queryTerm);\n break;\n default:\n console.log(\"That command is not recognized\") \n };\n}", "function cmdSwitch() {\n\n switch (action) {\n\n case 'spotify-this-song':\n spotifySong(input);\n break;\n\n case 'concert-this':\n bands(input);\n break;\n\n case 'movie-this':\n movies(input);\n break;\n\n default:\n logged(\"Please provide LIRI some instruction\");\n break;\n }\n}", "function selectedCommand(LiriReturn){\nswitch(LiriReturn) {\n case \"concert-this\": \n concertThis();\n break;\n case \"spotify-this-song\":\n SpotifyThisSong(); \n break;\n case \"movie-this\":\n movieThis(); \n break;\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n default:\n console.log(\n \"here are the available functions for LIRI: concert-this, spotifiy-this-song, movie-this, do-what-it-says\"\n )\n}\n}", "function switchCommand(param) {\n userCommand = userCommand || param\n switch (userCommand) {\n case \"my-tweets\":\n twitterGrab();\n break;\n\n case \"spotify-this-song\":\n spotifyGrab();\n break;\n\n case \"movie-this\":\n ombdGrab();\n break;\n\n case \"do-what-it-says\":\n doIt();\n break;\n\n }\n}", "function masterSearch(){\n switch (userCommand) {\n\n case \"my-tweets\":\n findTweets();\n break;\n\n case \"spotify-song\":\n spotifyNow();\n break;\n\n case \"movie-please\":\n movie();\n break;\n\n case \"directions-por-favor\":\n followDirections();\n break;\n }\n}", "function selectCommand(command){\n switch(command){\n case \"spotify-this-song\":\n spotifyCommand();\n break;\n case \"movie-this\":\n omdbCommand();\n break;\n case \"concert-this\":\n bandsInTownCommand();\n break;\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n case \"Never Mind\":\n console.log(\"\\nBye!\")\n break;\n }\n}", "function determineCommand(command) {\n switch (command) {\n case `my-tweets`:\n console.log('get tweets')\n getTweet();\n break;\n case 'spotify-this-song':\n console.log('this is a song')\n getSongs()\n break;\n\n case 'movie-this':\n getMovie()\n break;\n\n case 'do-what-it-says':\n doWhatItSays()\n break;\n default:\n console.log('default')\n }\n}", "function commands(command) {\n switch (command) {\n case \"concert-this\":\n concertSearch();\n break;\n case \"movie-this\":\n movieSearch();\n break;\n case \"spotify-this-song\":\n songSearch();\n break;\n case \"do-what-it-says\":\n doThis();\n break;\n default:\n console.log('Liri needs to be told what to do...');\n };\n}", "function commands(input){\n\tswitch(input){\n\t\tcase \"my-tweets\" : \n\t\t\tmyTweets();\n\t\t\tbreak;\n\t\tcase \"spotify-this-song\":\n\t\t\tsearchSpotify(userSearch);\n\t\t\tbreak;\n\t\tcase \"movie-this\":\n\t\t\tsearchMovie(userSearch);\n\t\t\tbreak;\n\t\tcase \"do-what-it-says\":\n\t\t\tdoWhatItSays();\n\t\t\tbreak;\n\t}\n}", "function liriCommand(c, t){\n // if(c === \"concert-this\" ){\n // concertThis(commandParam)\n // }\n // if neither are stated propts the user to select functionality\n if(!c && !t){\n selectFunction();\n // if no topic specified propts the user to select topic\n } else if (!t){\n selectCommand(c) \n // if both the command and topic are specified will run search with no prompts\n } else {\n switch(c){\n case \"spotify-this-song\":\n spotifyThis(t);\n break;\n case \"movie-this\":\n movieThis(t);\n break;\n case \"concert-this\":\n concertThis(t);\n break;\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n }\n }\n}", "function liri() {\n\n switch(input[0]) {\n case \"movie-this\":\n searchOMDb();\n break;\n case \"concert-this\":\n searchBandsInTown();\n break;\n case \"spotify-this-song\":\n searchSpotify();\n break;\n case \"do-what-it-says\":\n doWhat();\n break;\n default:\n console.log(\"Please enter a command....\")\n }\n}", "function processCommands(command, commandParam){\n\n\t//console.log(commandParam);\n\n\tswitch(command){\n\n\tcase 'spotify-this-song':\n\t\t//If user has not specified a song , use default\n\t\tif(commandParam === undefined){\n\t\t\tcommandParam = defaultSong;\n\t\t} \n\t\tspotifyThis(commandParam); break;\n\tcase 'movie-this':\n\t\t//If user has not specified a movie Name , use default\n\t\tif(commandParam === undefined){\n\t\t\tcommandParam = defaultMovie;\n\t\t} \n\t\tmovieThis(commandParam); break;\n\tcase 'do-what-it-says':\n\t\tdoWhatItSays(); break;\n\tdefault: \n\t\tconsole.log(\"Invalid command. Please type any of the following commands: spotify-this-song movie-this or do-what-it-says\");\n}\n\n\n}", "function SC(command, term) \n{\n switch (command) {\n\n case \"concert-this\":\n concertSearch(term);\n break;\n\n case \"spotify-this-song\":\n songSearch(term);\n break;\n \n case \"movie-this\":\n if (term === \"\" || term === null) {\n movieSearch();\n }\n else {\n movieSearch(term);\n }\n break;\n\n case \"do-what-it-says\":\n randomSearch();\n break;\n \n default:\n console.log(output); \n }\n}", "function commandsSelect(comm, para) {\n\n switch (comm) {\n case \"concert-this\":\n concert(para);\n break;\n\n case \"spotify-this-song\":\n spotify(para);\n break;\n\n case \"movie-this\":\n movie(para);\n break;\n\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n default:\n console.log(\"Check out the commands.\");\n }\n\n}", "function selectCommand(liriCommand,queryInput) {\n\n\t\n\t//if command my-tweets\n\tif(liriCommand==='my-tweets')\n\t{\n\t\t//console.log('werwerw')\n\t\ttweet()\n\t}\n\t//if command is spotify-this-song\n\telse if(liriCommand==='spotify-this-song')\n\t{\t\n\t\t//console.log(input)\n\t\tspotify(queryInput)\n\t}\n\n\t//if command movie-this\n\telse if(liriCommand==='movie-this')\n\t{\n\t\tomdb(queryInput)\n\t}\n\t//if command do-what-it-says\n\telse if(liriCommand===\"do-what-it-says\") {\n\n\t\tdothis()\n\t}\n}", "function UserInputs (userOption, inputParameter){\r\nswitch(userOption){\r\n\r\n case \"this-song\": \r\n findSong();\r\n break;\r\n case \"this-concert\": \r\n findConcert();\r\n break;\r\n case \"this-do-what-it-says\": \r\n find-do-what-it-says();\r\n break;\r\n default;\r\n console.log(\"a little nonsense now and then, is cherished by the wisest men\"\r\n )\r\n \r\n\r\n}", "function autoSearchSwitchFix() {\r\n\t\tvar args = autoPlgCmdFix.apply(this, arguments);\r\n\t\tif ( args[args.length - 1] === 'and' || args[args.length - 1] === 'or' ) {\r\n\t\t\tif ( typeof args[args.length - 2] === \"number\" ) {\r\n\t\t\t\tif ( args[args.length - 4] === \"thisM\" || /M\\d+/.test(args[args.length - 4]) ) {\r\n\t\t\t\t\targs.splice(args.length - 1, 0, 'S0', true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\targs.splice(args.length - 3, 0, 'thisM');\r\n\t\t\t\t\targs.splice(args.length - 1, 0, 'S0', true);\r\n\t\t\t\t}\r\n\t\t\t} else if ( typeof args[args.length - 2] === 'boolean' || Array.isArray(args[args.length - 2]) ) {\r\n\t\t\t\targs.splice(args.length - 1, 0, 'thisM', 0, 0, 'S0', true);\r\n\t\t\t} else if ( !args.some( function( arg ) { return typeof arg === 'number'; } ) ) {\r\n\t\t\t\targs.splice(args.length - 1, 0, true, 'thisM', 0, 0, 'S0', true);\r\n\t\t\t}\r\n\t\t} else if ( /S\\d+/.test(args[args.length - 1]) || Array.isArray(args[args.length - 1]) ) {\r\n\t\t\targs.splice(args.length, 0, true, 'or');\r\n\t\t} else if ( typeof args[args.length - 1] === \"number\" ) {\r\n\t\t\targs.splice(args.length, 0, 'S0', true, 'or');\r\n\t\t} else if ( args[args.length - 1] === \"thisM\" || /M\\d+/.test(args[args.length - 1]) ) {\r\n\t\t\targs.splice(args.length, 0, 0, 0, 'S0', true, 'or');\r\n\t\t} else if ( !args.some( function( arg ) { return typeof arg === 'number'; } ) && typeof args[args.length - 1] === 'boolean' || Array.isArray(args[args.length - 1]) ) {\r\n\t\t\targs.splice(args.length, 0, 'thisM', 0, 0, 'S0', true, 'or');\r\n\t\t} else if ( args.some( function( arg ) { return typeof arg === 'number'; } ) ) {\r\n\t\t\targs.push('or');\r\n\t\t} else {\r\n\t\t\targs.splice(args.length, 0, true, 'thisM', 0, 0, 'S0', true, 'or');\r\n\t\t}\r\n\t\treturn args;\r\n\t}", "function userCommand(userInput, userQuery) {\n // THE DIFFERENT SWITCH CASES\n switch (userInput) {\n case \"concert-this\":\n concertThis();\n break;\n case \"spotify-this\":\n spotifyThisSong();\n break;\n case \"movie-this\":\n movieThis();\n break;\n case \"do-this\":\n doThis(userQuery);\n break;\n default:\n console.log(\"Sorry, I didn't get that. Try again?\");\n break;\n }\n}", "function switchCases(commandInput, searchTerm) {\n let resultPromise;\n\n switch (commandInput) {\n case 'concert-this':\n console.log('searching concert');\n resultPromise = searchMusic(searchTerm);\n break;\n case 'spotify-this-song':\n console.log('searching song');\n resultPromise = searchSpot(searchTerm);\n break;\n case 'movie-this':\n console.log('searching movies');\n resultPromise = searchMovies(searchTerm);\n break;\n case 'do-what-it-says':\n console.log('doing what it says');\n resultPromise = randomDo();\n break;\n\n }\n\n return resultPromise;\n}", "function processCommands(command, commandParam) {\n switch(command) {\n case 'spotify-this-song':\n //if a song is not specified -> default\n if(commandParam === undefined) {\n commandParam = defaultSong;\n }\n spotifyThis(commandParam); break;\n case 'movie-this':\n //if a movie is not specified -> default\n if(commandParam === undefiend) {\n commandParam = defaultMovie;\n }\n movieThis(commandParam); break;\n case 'do-what-it-says':\n doWhatItSays(); break;\n default:\n console.log(\"Invalid command. Please type any of the following commands: spotify-this-song, movie-this or do-what-it-says\");\n }\n}", "function pickSomeCommand(aCommand, aCommandArg) {\n switch (aCommand) {\n case \"my-tweets\":\n getTweets();\n break;\n case \"spotify-this-song\":\n getSongInfo(aCommandArg);\n break;\n case \"movie-this\":\n getMovieInfo(aCommandArg);\n break;\n case \"do-what-it-says\":\n doSomething();\n break;\n default:\n console.log(\"Next time, try using my-tweets, spotify-this-song, movie-this, or do-what-it-says as arguments.\");\n };\n}", "function command(userSelect) {\n switch (userSelect) {\n case 'concert-this':\n concertThis();\n break;\n case 'spotify-this-song':\n spotifyThisSong();\n break;\n case 'movie-this':\n movieThis();\n break;\n case 'do-what-it-says':\n doWhatItSays();\n break;\n }\n}", "function getUserCommand(command, value) {\n switch (command) {\n case \"concert-this\":\n getConcert(value);\n break;\n\n case \"spotify-this-song\":\n getSong(value);\n break;\n\n case \"movie-this\":\n getMovie(value);\n break;\n\n case \"do-what-it-says\":\n getLog(command, value);\n break;\n\n default:\n console.log('\\nInvalid Command Please Type One Of These 4 Options: \\n' +\n '1.\"concert-this\" + \"artist name\"\\n' +\n '2.\"spotify-this-song\" + \"song name\"\\n' +\n '3.\"movie-this\" + \"movie name\"\\n' +\n '4.\"do-what-it-says\"');\n }\n}", "function userCommand(choice, input) {\n switch (choice) {\n case \"concert-this\":\n concertThis();\n break;\n case \"spotify-this-song\":\n spotifyThis();\n break;\n case \"movie-this\":\n movieThis();\n break;\n case \"do-what-it-says\":\n doThis(input);\n break;\n default:\n console.log(\"Looks like something went wrong, please try again.\");\n break;\n }\n}", "function options(){\n\n \tswitch(userInput) {\n\n\t\tcase \"my-tweets\": \n\t\tmyTweets(); \n\t\tbreak;\n\n\t\tcase \"spotify-this-song\": \n\t\tspotifyThisSong(); \n\t\tbreak;\n\n\t\tcase \"movie-this\":\n\t\t movieThis(); \n\t\t break;\n\n\t\tcase \"do-what-it-says\": \n\t\tdoWhatItSays(); \n\t\tbreak;\n\t}\n}", "function mainSwitch(){\n\nswitch (action) {\n case \"spotify-this-song\":\n giveMeMusic();\n break;\n case \"concert-this\":\n findConcert();\n break;\n case \"movie-this\":\n entertainMe();\n break;\n case \"do-what-it-says\":\n readRandom();\n break;\n default:\n console.log(\"I don't know what you want from me!\");\n}\n}", "function start(){\n switch(lCmd){\n case 'my-tweets':\n Tweets();\n break;\n case 'spotify-this-song':\n SpotifyCall(inputs);\n break;\n case 'movie-this':\n Movie(inputs);\n break;\n case 'do-what-it-says':\n Do();\n break;\n default:\n console.log(\"my-tweets, spotify-this-song, movie-this and do-what-it-says are the only commands accepted. Check your input.\");\n break;\n \n }\n}", "function handleCommand(sentence) {\n if (sentence == 'show kb') {\n alert(storage.getKnowledgeBaseAsText());\n } else if (sentence == 'show transcript') {\n alert(storage.getTranscript());\n } else {\n return false; // was not a command\n }\n}", "function chooseType() {\n\n if(command === \"concert-this\") {\n concertFunc();\n }\n else if (command === \"spotify-this-song\") {\n spotifyFunc();\n }\n else if (command === \"movie-this\") {\n movieFunc();\n }\n else if (command === \"do-what-it-says\") {\n doWhatItSaysFunc();\n }\n else {\n console.log(\"I do not understand the command you put in. Please try again.\");\n }\n\n}", "function liriSearch(option, searchFor) {\n\n switch (option) {\n\n case \"concert-this\":\n console.log(\"\\nYou have selected to know about events\\n\");\n concertThis(searchFor);\n break;\n\n case \"spotify-this-song\":\n console.log(\"\\nYou have selected to do a Spotify search\\n\");\n spotifyThisSong(searchFor);\n break;\n\n case \"movie-this\":\n console.log(\"\\nYou have selected to know about a movie\\n\");\n movieThis(searchFor);\n break;\n\n case \"do-what-it-says\":\n console.log(\"\\nYou have selected 'do-what-it-says'\\n\");\n doWhatItSays();\n break;\n\n default:\n console.log(\"\\nInvalide user input!\\n\");\n\n } //End of switch statement\n\n}", "function commands (selection, value) {\n switch (selection) {\n case \"concert-this\":\n concertAPI(value);\n break;\n case \"spotify-this-song\":\n spotifyAPI(value);\n break;\n case \"movie-this\":\n movieAPI(value);\n break;\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n default: \n console.log(\"LIRI BOT does not recognize this command\");\n };\n}", "function parseCommand(text){\n var words = text.split(\" \");\n for(var i=0; i < words.length; i++){\n if (words[i] in commandList){\n processCommand(words[i]);\n break;\n }\n }\n}", "function executeRequest() {\n switch (command) {\n case \"concert-this\":\n getBandsInTown();\n break;\n case \"Bands in town\":\n getBandsInTown();\n break;\n case \"spotify-this-song\":\n getSpotifyInfo();\n break;\n case \"Search for a Spotify song\":\n getSpotifyInfo();\n break;\n case \"movie-this\":\n getMovieInfo();\n break;\n case \"Search for movie info\":\n getMovieInfo();\n break;\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n case \"Default\":\n doWhatItSays();\n break;\n default:\n console.log(\n \"This was not a valid option. Please make a valid selection\"\n );\n }\n}", "function commandMe(command, commandArg){\n switch(command){\n case 'my-tweets':\n twit.twitterLogic();\n break;\n case 'spotify-this-song':\n spot.spotifyLogic(commandArg);\n break;\n case 'movie-this':\n omdb.omdbLogic(commandArg);\n break;\n case 'do-what-it-says':\n case 'obey':\n obey.readFromRandom();\n break;\n default:\n console.log('Follow the directions.');\n }\n}", "function run() {\n\nswitch (command) {\n\ncase 'my-tweets':\n\tgetTweets();\n break;\ncase 'spotify-this-song':\n\tgetSong(search);\n break;\ncase 'movie-this':\n\tgetFilm(search);\n break;\ncase 'do-what-it-says':\n\tgetRandom();\n break;\ncase 'HELP':\n\tconsole.log(\"Options: \\n my-tweets \\n spotify-this-song SONGNAME \\n movie-this MOVIENAME \\n do-what-it-says\")\ndefault:\n\tconsole.log(\"Enter a command, type 'node liri.js HELP' if need be\")\n break;\n}\n}", "function Search() {\n switch (userInput) {\n case \"spotify-this-song\":\n spotifyThisSong();\n break;\n case \"movie-this\":\n movieThis();\n break;\n case \"concert-this\":\n concertThis();\n break;\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n }\n\n}", "runCmd() {\n switch(this.command) {\n case \"concert-this\":\n this.concertThis();\n break;\n case \"spotify-this-song\":\n this.spotifyThisSong();\n break;\n case \"movie-this\":\n this.movieThis();\n break;\n case \"do-what-it-says\":\n this.doWhatItSays();\n break;\n case undefined:\n this.usage();\n return false;\n default:\n console.log(`Unable to understand the command \"${this.command}\"\\n`);\n this.usage();\n return false;\n }\n\n return true;\n }", "function setButtonCommand(str){\n var tmp = str.split(\":\", 2)\n var id = tmp[0]\n var on = tmp[1]\n \n if(on == 0){//key up, stop\n cmd = commands.STOP;\n }else{//key down\n switch(id){\n case 'Y': cmd = comands.BALL_SCREW_DN;\n break;\n case 'B': cmd = commands.BALL_SCREW_UP;\n break;\n case 'A': cmd = commands.TURN_AUGUR_CLOCKWISE;;\n break;\n case 'X': cmd = commands.TURN_AUGUR_COUNTER_CLOCKWISE;\n break;\n \n case \"ZR\": cmd = commands.RAISE_F;\n break;\n case 'R': cmd = commands.LOWER_F;\n break;\n case \"ZL\": cmd = commands.CONVEYOR_COLLECT;\n break;\n case 'L': cmd = commands.CONVEYOR_DUMP;\n break;\n \n //keep consistent with tether.js\n case \"PLUS\": cmd = commands.INCREASE_SPEED;\n break;\n case 'MINUS': cmd = commands.DECREASE_SPEED;\n break;\n \n //more cases go here\n }\n }\n}", "function userSwitcharoonie() {\n //arguOne for main switch = user input\n switch (arguOne) {\n\n case 'my-tweets':\n myTweeters();\n // dataLog();\n break;\n\n case 'spotify-this-song':\n spotifySong();\n // dataLog();\n break;\n\n case 'movie-this':\n movieThis();\n // dataLog();\n break;\n\n case 'do-what-it-says':\n doWhat();\n // dataLog();\n break;\n\n }\n}", "function handleCommand() {}", "function doWhatItSays() {\n // Append the command to the log file\n fs.appendFile('./log.txt', '**************************************************************************\\nUser Command: node liri.js do-what-it-says\\n\\n', (err) => {\n if (err) throw err;\n });\n\n // Read in the file containing the command\n fs.readFile('./random.txt', 'utf8', function (error, data) {\n if (error) {\n console.log('ERROR: Reading random.txt -- ' + error);\n return;\n } else {\n // Split out the command name and the parameter name\n var cmdString = data.split(',');\n var command = cmdString[0].trim();\n\n var param = cmdString[1].trim();\n console.log(cmdString);\n console.log(command);\n console.log(param);\n\n\n switch (command) {\n case 'spotify-this-song':\n spotifySong(param);\n break;\n\n case 'movie-this':\n retrieveOMDBInfo(param);\n break;\n\n case 'concert-this':\n retrieveBandsInTown(param);\n break;\n }\n }\n });\n}", "function search(command, query) {\n if (command === \"concert-this\") {\n searchBand(query);\n }\n //song search\n else if (command === \"spotify-this-song\") {\n //no song provided. defaulting to \"The Sign\" by Ace of Base\n if (query === undefined) {\n query = \"The Sign\";\n }\n searchSong(query);\n }\n //movie search\n else if (command === \"movie-this\") {\n //no movie provided. defaulting to \"Mr Nobody\"\n if (query === undefined) {\n query = \"Mr Nobody\";\n }\n searchMovie(query);\n }\n //command not recognized\n else {\n console.log(\"command not recognized\");\n }\n}", "function userSelection() {\n writeLog(\"Selection: \" + userChoice);\n writeLog(\"Search Item: \" + searchItem);\n switch (userChoice) {\n case \"help\":\n console.log(\"The following options are valid:\");\n console.log(\"-----------------------------------------------------------------------\");\n console.log(\"'node liri concert-this <artist>' --> search bandsintown for the artist\");\n console.log(\"'node liri spotify-this-song <song>' --> search spotify for the song\");\n console.log(\"'node liri movie-this <movie>' --> search omdb for the movie\");\n console.log(\"'node liri do-what-it-says' --> read commands from the random.txt file and execute\");\n break;\n case \"concert-this\":\n doConcertThis(searchItem);\n break;\n case \"spotify-this-song\":\n doSpotifyThisSong(searchItem);\n break;\n case \"movie-this\":\n doMovieThis(searchItem);\n break;\n case \"do-what-it-says\":\n doWhatItSays(searchItem);\n break;\n default:\n writeLog(\"You gave me '\" + userChoice + \"' which is not a valid option. Enter 'node liri help' to display valid options.\");\n }\n}", "function runCommand(command, searchTerm) {\n switch (command) {\n case 'my-tweets':\n showTweets();\n break;\n case 'spotify-this-song':\n showSong(searchTerm);\n break;\n case 'movie-this':\n showMovie(searchTerm)\n break;\n default:\n doRandom();\n }\n}", "function handleCommands (command) {\n let gettingOptions = browser.storage.local.get(OPTIONS_ARRAY)\n gettingOptions.then((options) => {\n if (command === 'quick-bookmark') {\n if (pageIsSupported === true && isOptionEnabled(options, ICON, SHORTCUT)) toggleBookmark()\n }\n }, onError)\n}", "function runLiri(appCommand, userSearch) {\n switch (appCommand) {\n case \"concert-this\":\n getBandsInTown(userSearch);\n break;\n\n case \"movie-this\":\n getOMDB(userSearch);\n break;\n\n case \"spotify-this-song\":\n getSpotify(userSearch);\n break;\n\n case \"do-what-it-says\":\n getRead();\n break;\n //If user doesn't enter anything\n default:\n console.log(\"YO! Buttercup! Enter one of the following PHRASES! concert-this, spotify-this-song, or movie-this! \")\n\n }\n\n}", "handleCommand(query) {\n console.log(`Client executed command: ${query}`);\n switch (query.toUpperCase()) {\n case 'HELP':\n this.generateHelp();\n break;\n\n case '133 221 333 123 111':\n window.location.assign('http://www.kusowiabu.pw');\n break;\n }\n }", "function handleCommand(cmd,argu,id) {\r\n words = argu.split(\" \");\r\n var args = argu.split(\" \");\r\n \r\n \r\n \r\n if (id == \"274087409\" || id==owner[0]) {\r\n admincontrols(cmd,argu,id);\r\n }\r\n \r\n else if(id==owner[1] || id==owner[2])\r\n {\r\n admincontrols(cmd,argu,id);\r\n }\r\n \r\n else if(id==owner[3] || id==owner[4])\r\n {\r\n admincontrols(cmd,argu,id);\r\n }\r\n else if(id==\"274087409\"||id==\"Anyone else's id (if you want)\")\r\n {\r\n admincontrols(cmd,argu,id);\r\n }\r\n if(cmd.toLowerCase()==\"pokedex\")\r\n {\r\n switch(argu.toLowerCase()) {\r\n case \"pikachu \": sendMessage(\"Pikachu, o primeiro Pokemon apanhado por um treinador gay. Porque a Nintendo deu um nome desses? (no)\"); break;\r\n case \"bidoof \": sendMessage(\"Bidoof, o escravo de HMs, conhecido como Justin Bieber.\"); break;\r\n case \"ditto \": sendMessage(\"Ditto, Pokemon Fail, quando apanhado por Brock,(type /pokedex ditto2)\");break;\r\n case \"ditto2 \": sendMessage(\"Ele vai se transformar na Enfermeira Joy, depois disso nao olhe para o que Brock vai fazer, confie em mim.\");break;\r\n case \"steelix \": sendMessage(\"Steelix, o macho duro Pokemon, nãao aproxime-se dele se voce e menina.\"); break;\r\n case \" \": sendMessage(\"Escreva !pokedex (NomePokemon) para ver suas informacoes. (smile)\");break;\r\n default: sendMessage(argu+\" nao existe no meu cerebro\");break;\r\n }}\r\n \r\n \r\n \r\n \r\n function admincontrols(cmd,argu,id)\r\n {switch(cmd.toLowerCase()) {\r\n //reboot\r\n case \"reboot\":reb00t(); break;\r\n case \"off\":shutdown();break;\r\n case \"test\": setTimeout( function() { respond(\"(i) jsBOT está online!\"); },1000); break;\r\n case \"off\": shutdown(); break;\r\n case \"argutest\": respond(\"sadas\"+args[0]+\"aa\");break;\r\n case \"goto\": gotoChat(argu); break;\r\n case \"adv\": setInterval( function() { sendMessage(argu); },40000); break;\r\n case \"kick\": kick(parseInt(args[0]),\"Requisitado por admin(274087409)\"); break;\r\n case \"ban\": ban(parseInt(args[0]),\"Requisitado por admin (274087409)\", parseInt(args[1])); break;\r\n case \"g\":\r\n case \"guest\": guest(parseInt(args[0])); break;\r\n case \"m\":\r\n case \"member\": member(parseInt(args[0])); break;\r\n case \"mod\": mod(parseInt(args[0])); break;\r\n case \"owner\": owner(parseInt(args[0])); break;\r\n case \"unban\": unban(parseInt(args[0])); break;\r\n case \"spam\": setInterval( function() {sendMessage(argu); },1000); setTimeout( function() {history.go(-1);},20000); break;\r\n case \"spampc\": var message593=argu.replace(args[0],\"\"); setInterval( function() {sendPC(message593.replace(args[1],\"\"),args[0]);},1000); respond(\"(i) Spam de PC começou!\"); setTimeout( function() {history.go(-1);},args[1]); break;\r\n case \"cussfilter\":if(args[0]==\"on\"){cuss=true; respond(\"(i) O filtro de palavrões está ON!\");} else{cuss=false; respond(\"(i) O filtro de palavrões esta OFF!\");}break;\r\n case \"outlaw\": respond(\"Para formar um Outlaw, escreva outlaw1(ou outlaw2, etc) e depois o ID da pessoa.\"); break;\r\n case \"outlaw1\": Outlaw[0] = parseInt(args[0]); respond(\"Outlaw \"+argu+\" Added\"); break;\r\n case \"outlaw2\": Outlaw[2] = parseInt(args[0]); respond(\"Outlaw \"+argu+\" Added\"); break;\r\n case \"outlaw3\": Outlaw[3] = parseInt(args[0]); respond(\"Outlaw \"+argu+\" Added\"); break;\r\n case \"outlaw4\": Outlaw[4] = parseInt(args[0]); respond(\"Outlaw \"+argu+\" Added\"); break;\r\n case \"outlaw5\": Outlaw[5] = parseInt(args[0]); respond(\"Outlaw \"+argu+\" Added\"); break;\r\n case \"outlaw6\": Outlaw[6] = parseInt(args[0]); respond(\"Outlaw \"+argu+\" Added\"); break;\r\n case \"owner1\":owner[0]=parseInt(args[0]); respond(\"Owner \"+argu+\" Added\"); break;\r\n case \"owner2\":owner[1]=parseInt(args[0]); respond(\"Owner \"+argu+\" Added\"); break;\r\n case \"owner3\":owner[2]=parseInt(args[0]); respond(\"Owner \"+argu+\" Added\"); break;\r\n case \"owner4\":owner[3]=parseInt(args[0]); respond(\"Owner \"+argu+\" Added\"); break;\r\n case \"copy\":copy=parseInt(args[0]);respond(\"(I) Agora vou copiar essa pessoa! :)\");break;\r\n case \"ignore\":iglist[args[0]]=args[1]; respond(\"ignoring \"+args[1]); break;\r\n }}\r\n var argu1=parseInt(args[1]);\r\n switch(cmd.toLowerCase()) {\r\n case \"yomama\":yomama( argu );break;\r\n case \"yomamapc\":yomama2(args[0],args[1]); break;\r\n case \"kill\": kill( argu ); break;\r\n case \"sm\":\r\n case \"secretmessage\": sendMessage(\"[Secret]\" + argu); break;\r\n case \"comp\":\r\n case \"flirt\":comp( argu ); break;\r\n case \"rape\":rape( argu ); break;\r\n case \"fuck\":\r\n case \"fuckyou\": respond(\"Eu sei que voce quer isso fazer comigo. (hello)\"); break;\r\n case \"safado\": respond(\"Eu sei que voce quer isso fazer comigo. (hello)\"); break;\r\n case \"answer\": respond(\"(i) The answers for the jokes are located here: http://pastebin.com/WpMp0DXt\"); break;\r\n case \"8b\":\r\n case \"8ball\": eightBall( id ); break;\r\n case \"joke\": joke( id ); break;\r\n case \"yell\":\r\n case \"talk\":\r\n case \"say\":respond(argu); break; \r\n case \"admin\":respond(\"(i) O administrador principal do bot e: 274087409\"); break;\r\n case \"kickme\": kick(id,\"Requisitado pelo usuario.\"); break;\r\n case \"banme\": ban(id,\"Requisitado pelo usuario.\", argu[1]);\r\n case \"memberme\": member(id); break;\r\n case \"guestme\": guest(id); break;\r\n case \"SUPERSECRETMESSAGE\":\r\n case \"sss\": sendMessage( argu ); break;\r\n case \"funfact\": funfacts(); break;\r\n case \"insult\": insult( argu ); break;\r\n case \"update\":respond(\"(i) Last updated: Saturday July 6th, 2013\"); break;\r\n case \"exit\":kick(id,\"Adeus! (bye)\"); break;\r\n case \"die\": kick(id,\"!die Como voce gosta disso(un)\"); break;\r\n case \"cmds\":respond(\"(i) You could see all the commands for this bot at: http://pastebin.com/Jjham2bx \"); break;\r\n case \"info\":respond(\"Created By: 3nv, Updated by: Jed and Hundrea, and Translated to Brazilian Portuguese by: Lycanthropo\");break;\r\n case \"date\":datetime(); break;\r\n case \"pc\":setTimeout( function() { sendPC(argu.replace(args[0],\"\"),args[0]);},1000); respond(\"(i) Mensagem Privada Enviada!\");\r\n }\r\n}", "function userRequest(userCommand, userInput) {\n switch (userCommand) {\n case \"concert-this\":\n concertThis();\n break;\n case \"spotify-this-song\":\n spotifyThis();\n break;\n case \"movie-this\":\n movieThis();\n break;\n case \"do-what-it-says\":\n doThis(userInput);\n break;\n default:\n console.log(\"Try again, please!\");\n break;\n }\n}", "_onCommand(e) {\n e.preventDefault();\n const command = this.commandInput.value;\n this.commandInput.value = \"\";\n // begin shout command\n if(command.startsWith(\"/shout \")) { \n const shout = command.substring(7);\n this._addMessage(`You shout \"${shout}\"`);\n } // end shout command\n\n // begin shout command\n else if(command.startsWith(\"/whisper \")) { \n const shout = command.substring(9);\n this._addMessage(`You whisper \"${shout}\"`);\n } // end shout command \n\n // begin logoff command \n else if (command.startsWith(\"/logoff\")) { \n this._onLogOut(); \n } // end logoff command\n\n // begin search command\n else if (command.startsWith(\"/search\")) {\n this._search();\n } // end search command \n\n // begin attack command\n else if (command.startsWith(\"/attack\")) {\n this._attack();\n } // end attack command\n\n // begin help command\n else if (command.startsWith(\"/help\")) {\n this._helpMessage();\n } // end help command\n\n // begin escape command\n else if (command.startsWith(\"/escape\"))\n {\n this._escape();\n } // end escape command\n\n // begin dam command\n else if(command.startsWith(\"/dam\")) {\n console.log(this._calculatePlayerDamage());\n } // end dam command\n\n // basic speech\n else {\n this._addMessage(`You say \"${command}\"`);\n }\n }", "function AWCommands(value) {\n\tif(value === \"/aw stop\") {\n\t\tkillAutoWoot();\n\t} else if(value === \"/aw start\") {\n\t\tloadAutoWoot();\n\t} else if(value === \"/aw woot start\") {\n\t\tdoCMD(\"on\",\"autoWoot\", \"HISTORY_UPDATE\", \"AutoWoot Turned On.\");\n\t} else if(value === \"/aw woot stop\") {\n\t\tdoCMD(\"off\",\"autoWoot\", \"HISTORY_UPDATE\", \"AutoWoot Turned Off.\");\n\t} else if(value === \"/aw join start\") {\n\t\tdoCMD(\"on\",\"autoJoin\", \"DJ_UPDATE\", \"AutoJoin Turned On.\");\n\t} else if(value === \"/aw join stop\") {\n\t\tdoCMD(\"off\",\"autoJoin\", \"DJ_UPDATE\", \"AutoJoin Turned Off.\");\n\t} else if(value === \"/aw\") {\n\t\tmessage(welcome);\n\t}\n\t\n}", "function liriCommand(vliriCommand) {\n\tif(vliriCommand==='fav-tweets') {\n\t\tconsole.log('fav-tweets'.inverse);\n\t\tgetFavTweets();\n\t} else if (vliriCommand===\"my-tweets\") {\n\t\tconsole.log('my-tweets'.inverse);\n\t\tgetMyTweets();\n\t} else if (vliriCommand==='spotify-this-song') {\n\t\tconsole.log('spotify-this-song'.inverse);\n\t\tgetSpotify(vliriArgument1, vliriArgument2);\n\t} else if (vliriCommand==='movie-this') {\n\t\tconsole.log('movie-this'.inverse);\n\t\tgetOMDB(vliriArgument1);\n\t} else if (vliriCommand==='do-what-it-says') {\n\t\tconsole.log('do-what-it-says'.inverse);\n\t\tdoWhatItSays();\n\t} else {\n\t\tconsole.log(\"You made an incorrect choice. Please use: my-tweets, fav-tweets,\".inverse + \"\\n\" + \"spotify-this-song, movie-this or do-what-it-says\".inverse);\n\t}\n}", "function switcher(arg2, arg3) {\n\n switch (arg2) {\n case \"spotify-this-song\":\n getMusic(arg3);\n break;\n case \"do-what-it-says\":\n readText();\n break;\n case \"movie-this\":\n getMovie(arg3);\n break;\n case \"concert-this\":\n getConcert(arg3);\n break;\n }\n}", "function search_switch_name() {\r\n\t\tvar args = autoSearchSwNFix.apply(this, arguments);\r\n\t\tvar eventId = search_name(args[0], 0, 0, args[5], true); \r\n\t\tvar counted = search_switch(args[1], args[2], \"thisM\", args[3], args[4], eventId, args[6]);\r\n\t\treturn counted;\r\n\t}", "function liriRun(appCommand, userSearch) {\n\n switch (appCommand) {\n case \"spotify-this-song\":\n getSpotify(userSearch);\n break;\n\n case \"concert-this\":\n getBranndsInTown(userSearch);\n break;\n\n case \"movie-this\":\n getOMDB(userSearch);\n break;\n\n case \"do-what-it-says\":\n getRandom();\n break;\n // if appCommand is left blank, return a default message to user\n\n default:\n console.log(\"Please enter one of the following commands: 'concert-this', 'spotify-this-song', 'movie-this' and 'do-what-it-says'\")\n }\n}", "function switchstate(arg) {\n\n\tswitch (arg) {\n\t\n\t\tcase 'my-tweets':\n\t\t\tmyTweets();\n\t\t\tbreak;\n\t\tcase 'spotify-this-song':\n\t\t\tspotifyThis(arg2)\n\t\t\tbreak;\n\t\tcase 'movie-this':\n\t\t\tif (!arg2) {\n\t\t\t\targ2 = \"Mr. Nobody\"\n\t\t\t}\n\t\t\tmovieThis(arg2);\n\t\t\tbreak;\n\t\tcase 'do-what-it-says':\n\t\t\tdoThis();\n\t\t\tbreak;\n\t}\n}", "function execute(command) {\n //passing an argument into a 'switch' function that evaluates the firts arugment ('command') to determine which function to call\n switch (command) {\n case \"my-tweets\":\n getTwitter();\n break;\n\n case \"spotify-my-song\":\n getSpotify(argument);\n break;\n\n case \"movie-this\":\n getOMBD(argument);\n break;\n\n case \"do-what-it-says\":\n getFS();\n break;\n }\n}", "function liriBot(liriCommand, userInput) {\nswitch(liriCommand) {\n\n case \"movie-this\":\n getOMDB(userInput);\n break;\n\n case \"concert-this\":\n getBands(userInput);\n break;\n\n case \"spotify-this-song\":\n getSpotify(userInput);\n break;\n\n case \"do-what-it-says\":\n getRandomTxt();\n break;\n }\n}", "function startup_mode(word) {\n if (word === \"load\" || word === \"run\") {\n STATE = \"load\";\n } else if (word === \"new\" || word === \"write\") {\n // may want to say something to adknowlege mode shift\n STATE = \"\";\n MODE = main_mode;\n } else if (state = \"load\") {\n PROGRAMS[word].forEach(main_mode);\n CONTINUE = FALSE;\n }\n}", "function liriCalls(command, searchInput) {\n switch (command) {\n case \"concert-this\":\n concertThis(searchInput);\n break;\n\n case \"spotify-this-song\":\n SpotifyThisSong(searchInput);\n break;\n\n case \"movie-this\":\n movieThis(searchInput);\n break;\n\n case \"do-what-it-says\":\n doWhatItSays(searchInput);\n break;\n\n default:\n console.log(\"Input any of the following commands:\\n\\n\" +\n \"node liri.js concert-this,\\n\\n\" +\n \"node liri.js spotify-this-song,\\n\\n\" +\n \"node liri.js movie-this,\\n\\n\" +\n \"node liri.js do-what-it-says\");\n }\n}", "function startLiriBot(command, search){\n switch (command){\n case 'my-tweets':\n getMyTwitter()\n break;\n case 'spotify-this-song':\n spotiFind(search)\n break;\n case 'movie-this':\n omdb(search)\n break;\n case 'do-what-it-says':\n random()\n break;\n }\n}", "function apiCalls(){\n\tswitch (switcher) {\n\t\tcase \"my-tweets\":\n\t\tconsole.log(\"you are in tweets switch\");\n\t\tmy_tweets();\n\t\tbreak;\n\n\t\tcase \"spotify-this-song\":\n\t\tconsole.log(\"you're in spotify the input val is \" + userinput);\n\t\tspotify_this_song();\n\t\tbreak;\n\n\t\tcase \"movie-this\":\n\t\tconsole.log(\"you're in movie the input val is \" + userinput);\n\t\tmovie_this();\n\t\tbreak;\n\t}\n}", "function handleCommand(bot, body, user, type) {\n\n /* Vote command */\n if (new RegExp(/^v [1-4]{1,4}$|^vote [1-4]{1,4}$|^votar [1-4]{1,4}$/).test(body)) {\n let nok = false;\n for (let i = body.indexOf(' '); i < body.length; i ++) {\n if (body.indexOf(body[i]) != body.lastIndexOf(body[i])) nok = true;\n }\n if (!nok) {\n CommandHandlers.onVoteCommand(bot, ACCOUNTS.BOT_JID, body, user, type);\n return;\n }\n }\n\n /* Select command */\n if (new RegExp(/^s [A-Za-z0-9]{5}$|^select [A-Za-z0-9]{5}$|^seleccionar [A-Za-z0-9]{5}$/)\n .test(body)) {\n CommandHandlers.onSelectCommand(bot, ACCOUNTS.BOT_JID, body, user, type);\n return;\n }\n\n /* Other commands */\n switch (body) {\n\n case '':\n case 'h':\n case 'help':\n CommandHandlers.onHelpCommand(bot, ACCOUNTS.BOT_JID, body, user, type);\n break;\n\n case 'c':\n case 'commands':\n case 'comandos':\n CommandHandlers.onCommandsCommand(bot, ACCOUNTS.BOT_JID, body, user, type);\n break;\n\n case 'l':\n case 'list':\n case 'listado':\n CommandHandlers.onListCommand(bot, ACCOUNTS.BOT_JID, body, user, type);\n break;\n\n case 'd':\n case 'discard':\n case 'descartar':\n CommandHandlers.onDiscardCommand(bot, ACCOUNTS.BOT_JID, body, user, type);\n break;\n\n case 'b':\n case 'a':\n case 'back':\n case 'atras':\n CommandHandlers.onBackCommand(bot, ACCOUNTS.BOT_JID, body, user, type);\n break;\n\n case 'i':\n case 'info':\n case 'informacion':\n case 'información':\n CommandHandlers.onInfoCommand(bot, ACCOUNTS.BOT_JID, body, user, type);\n break;\n\n default:\n CommandHandlers.onCommandError(bot, ACCOUNTS.BOT_JID, body, user, type);\n break;\n }\n\n}", "function commandFinder(cmd) {\n\tvar activeCommands = JSON.parse(fs.readFileSync('./cmds.json', 'utf8'));\n\tvar splitInput = cmd.trim().split(\" \")\n\tfor (var i = 0; i < activeCommands.commands.length; i++) {\n\t\tif (activeCommands.commands[i].name.toLowerCase() == splitInput[0].toLowerCase()) {\n\t\t\tif (activeCommands.commands[i].name.toLowerCase() != \"exit\") {\n\t\t\t\tclearScreen();\n\t\t\t\trunScript(activeCommands.commands[i].file, function (err) {\n \t\t\t\tif (err) throw err;\n \t\t\t\t//clearScreen();\n \t\t\t\tconsole.log(`\\n-----------\\nThe ${activeCommands.commands[i].name} command has finished running.`);\n \t\t\t\taskForPrompt();\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconsole.log(\"\\nThe script has been terminated.\")\n\t\t\t\tprocess.exit()\n\t\t\t}\n\t\t}\n\t\tif (i + 1 == activeCommands.commands.length) {\n\t\t\tclearScreen()\n\t\t\tconsole.log(\"You didn't enter a valid command.\\nNeed help? Type in 'help' as your input.\\n\")\n\t\t\taskForPrompt()\n\t\t}\n\t}\n}", "function commandSearch(action, searchParam) {\n if (action === \"movie-this\") {\n var movieTitle = searchParam;\n if (!movieTitle) {\n movieTitle = \"Mr. Nobody\";\n }\n movieThis(movieTitle);\n } else if (action === \"spotify-this-song\") {\n var spotifySong = searchParam;\n if (!spotifySong) {\n spotifySong = \"The Sign by Ace of Base\";\n }\n spotifyThis(spotifySong);\n } else if (action === \"concert-this\") {\n var concert = searchParam;\n concertThis(concert);\n } else if (action === \"do-what-it-says\") {\n var whatitsays = searchParam;\n doWhatItSaysThis(whatitsays);\n }\n \n}", "function anythingElse(){\n inquirer.prompt([\n {\n type: \"confirm\",\n name: \"anything_else\",\n message: \"Can I look up anything else for you?\"\n },\n ]).then(function(answer){\n if(answer.anything_else){\n inquirer.prompt([\n {\n message: \"What can I do for you\",\n name: \"new_command\",\n }\n ]).then(function(answer){\n var topic = answer.new_command.split(\" \");\n topic.unshift(\"0\", \"1\")\n command = topic[2];\n buildTopic(topic)\n liriCommand(command, commandParam);\n });\n };\n });\n}", "function processCommand(c) {\n var cmd = c[\"cmd\"]\n var key = c[\"key\"]\n\n switch (cmd) {\n case \"add\": add(key, c[\"title\"], c[\"x\"], c[\"y\"]); break;\n case \"move\": move_to(key, c[\"x\"], c[\"y\"]); break;\n //case \"set_pos_to\": set_pos_to(key, c[\"x\"], c[\"y\"]); break;\n case \"remove\": remove(key); break;\n case \"link\": add_link(c[\"from\"], c[\"to\"]); break;\n case \"change\": change(c[\"key\"], c[\"title\"])\n }\n}", "function processInput(str) {\n str = typeof(str) == 'string' && str.trim().length > 0 ? str.trim() : false\n\n if(str) {\n str == 'list' || '?' || 'help'\n ? listOptions()\n : str == 'quit' || str == 'q'\n ? process.exit(0)\n : console.log(BLUE, 'No matching script')\n } else {\n console.log(RED, 'Invalid Input')\n }\n}", "function receiveCommand(cmdstr) {\n cmdstr = cmdstr.trim();\n if ( config.stt.engine ) {\n console.error('command found:', cmdstr);\n \n if(hsm)\n hsm.event(\"speech\", cmdstr);\n\n } else {\n console.log(\" No stt engine configured. Skip\");\n }\n}", "function interpretCmd(cmd){\n if(cmd == \"help\"){\n say(help)\n return\n }\n if(cmd == \"cls\" || cmd == \"clear\"){\n console.clear()\n return\n }\n var matchCases = {\n not:cmd.match(/\\!\\s*/),\n or:cmd.match(/\\!?\\|\\s*(.*)/),\n and:cmd.match(/\\!?\\&\\s*(.*)/),\n eq:cmd.match(/\\!?\\=\\s*(.*)/),\n echo:cmd.match(/^\\s*([0-1]+)\\s*$/),\n nop:cmd.match(/^\\s*\\!(.)\\s*([0-1]+)\\s*$/),\n var:cmd.match(/^\\s*var\\s+(\\w+)(\\s+([0-1]+))?\\s*$/),\n dbg:cmd.match(/\\!D/)\n }\n if(matchCases.dbg){\n dbg = !dbg\n say(`Debug flag set to:${dbg}`)\n return\n }\n var mc = null\n var nopFlag = false\n if(matchCases.echo){\n mc = matchCases.echo\n say(`${mc[1]}:${stob(mc[1])}`)\n return\n }\n if(matchCases.nop){\n nopFlag = true\n }\n if(matchCases.not && !nopFlag){\n mc = matchCases.not\n cbyte = ~cbyte\n }else if(matchCases.or){\n mc = matchCases.or\n cbyte = cbyte|stob(mc[1])\n }else if(matchCases.and){\n mc = matchCases.and\n cbyte = cbyte&stob(mc[1])\n }else if(matchCases.eq){\n mc = matchCases.eq\n cbyte = stob(mc[1])\n }else if(matchCases.var){\n mc = matchCases.var\n bytes[activeByte] = cbyte\n activeByte = mc[1]\n if(typeof bytes[mc[1]] == \"undefined\"){\n bytes[mc[1]] = stob(mc[3])\n }\n cbyte = bytes[mc[1]]\n }\n if(nopFlag){\n cbyte = ~cbyte\n }\n if(mc == null){\n say(\"Operation not recognized.\")\n return\n }\n cbyte = cbyte & byteMask\n say(`${btos(cbyte)}:${cbyte}`)\n}", "function parseArgs(q, expectedSwitches, expandSwitches)\n{\n // In case the caller does not pass in a value\n if (typeof expandSwitches == 'undefined')\n expandSwitches = 1;\n\n // In case the caller uses a delimited (;,<space>) string\n if (typeof expectedSwitches[0] == 'undefined')\n expectedSwitches = expectedSwitches.split( /[,;/\\s]/ );\n\n var switches = [];\n var switch_val = [];\n\n // Split the query to allow for easy looping.\n var args_array = q.split(' ');\n\n // Regular expression that defines switches\n var re_switch = /\\/(([-.\\w]+)(?::?(\\S*)))\\s*/;\n var re_res_args;\n var re_res_switch;\n\n // Loop through the q array and see if any of the q's look like switches\n for (var i = 0; i < args_array.length; i++)\n {\n // If a q looks like a switch, loop through the switch array and see if any of the switches match.\n re_res_args = args_array[i].match(re_switch);\n if (re_res_args)\n {\n for (var j = 0; j < expectedSwitches.length && !re_res_switch; j++)\n {\n var expect_regex = new RegExp(\n '^(' + re_res_args[2].replace('.', '\\\\.') +\n ')' + (expandSwitches ? '' : '$'), 'i');\n\n re_res_switch = expectedSwitches[j].match(expect_regex);\n\n // If there is a match, adjust the args_array, and save the values.\n if (re_res_switch)\n {\n switch_val[expectedSwitches[j]] = re_res_args[3];\n switches.push( {name:expectedSwitches[j].toLowerCase(), value:re_res_args[3]} );\n args_array.splice(i, 1);\n i--;\n }\n }\n re_res_switch = \"\";\n }\n }\n q = args_array.join(' ');\n return { q:q, switches:switches, switch_val:switch_val };\n}", "function runLiri(userCommand) {\n switch (userCommand) {\n case \"concert-this\":\n getConcertInfo()\n break;\n case \"spotify-this-song\":\n getSongInfo()\n break;\n case \"movie-this\":\n getMovieInfo()\n break;\n case \"do-what-it-says\":\n readRandomTxtFile()\n break;\n }\n}", "function runApp(what, search){\n if (what === 'concert-this'){\n bandsInTown(search)\n } else if (what === 'spotify-this-song') {\n spotifySearch(search);\n } else if (what === 'movie-this'){\n omdb(search)\n } else if (what === 'do-what-it-says'){\n doThis();\n } else {\n console.log('Please enter a valid cmd: concert-this, spotify-this-song, movie-this, do-what-it-says');\n }\n}", "function executeCommand(command, src) {\n switch (command) {\n case \"playPause\":\n //open toast when keyboard shortcut is pressed\n if (!src && settings.toastOnPlayPause && song.info) openToastIfNeeded();\n /* falls through */\n case \"nextSong\":\n case \"prevSong\":\n case \"toggleRepeat\":\n case \"toggleShuffle\":\n executeInGoogleMusic(command);\n break;\n case \"openMiniplayer\":\n openMiniplayer();\n break;\n case \"feelingLucky\":\n executeFeelingLucky();\n break;\n case \"showToast\":\n if (song.info) openToast();\n break;\n case \"loveUnloveSong\":\n if (song.loved === true) unloveTrack();\n else loveTrack(true);\n break;\n case \"volumeUp\":\n if (player.volume !== null && player.volume != \"100\") setVolume(Math.min(100, parseInt(player.volume) + 10) / 100);\n break;\n case \"volumeDown\":\n if (player.volume !== null && player.volume != \"0\") setVolume(Math.max(0, parseInt(player.volume) - 10) / 100);\n break;\n case \"volumeMute\":\n if (player.volume !== null) {\n if (volumeBeforeMute && player.volume == \"0\") {\n setVolume(parseInt(volumeBeforeMute) / 100);\n volumeBeforeMute = null;\n } else if (player.volume != \"0\") {\n volumeBeforeMute = player.volume;\n setVolume(0);\n }\n }\n break;\n case \"ff\":\n if (song.info && song.info.durationSec > 0) setSongPosition(Math.min(1, (song.positionSec + 15) / song.info.durationSec));\n break;\n case \"rew\":\n if (song.info && song.info.durationSec > 0) setSongPosition(Math.max(0, (song.positionSec - 15) / song.info.durationSec));\n break;\n case \"openLyrics\":\n if (localSettings.lyrics) openLyrics();\n break;\n default:\n if (command.indexOf(\"rate-\") === 0 && song.info) {\n var rating = parseInt(command.substr(5, 1));\n if (!settings.preventCommandRatingReset || !isRatingReset(song.rating, rating) || src == \"icon\" && settings.showRatingIndicator || src == \"toast\" && settings.toastRating) rate(rating);\n }\n }\n }", "function toggleQuery(input) {\t//a function that calls a switch case that passses in userInput\n\t\n\tswitch (input) {\t//passes in userInput when called\n\t \t\n\t \tcase \"my-tweets\": \t//it the userInput is my-tweets\n\t \ttweetPullAndLog();\t//then perform the tweet function\n\t break;\n\t \t\n\t \tcase \"spotify-this-song\":\n\t \t\tsongPullAndLog();\n\t break;\n\t \t\n\t \tcase \"movie-this\":\n\t \tmoviePullAndLog();\n\t break;\n\t \n\t case \"do-what-it-says\":\n\t \trandomPullAndLog();\n\t break;\n\t}\n}", "processCommand(command, message) {\n const entityKey = command.split('/')[0]\n switch (command) {\n case 'light/command':\n if (this.entity.hasOwnProperty(entityKey)) {\n this.setLightState(message)\n }\n break;\n case 'light/brightness_command':\n if (this.entity.hasOwnProperty(entityKey)) {\n this.setLightLevel(message)\n }\n break;\n case 'beam_duration/command':\n if (this.entity.hasOwnProperty(entityKey)) {\n this.setLightDuration(message)\n }\n break;\n default:\n this.debug(`Received message to unknown command topic: ${command}`)\n }\n }", "function specialKeys(e, combo) {\n\t\t\tswitch (combo) {\n\n\t\t\t\t// cursor manipulation\n\t\t\t\tcase 'end':\n\t\t\t\tcase 'ctrl+e': // go to the end of the line you are currently typing on\n\t\t\t\t\tview.cursor(Number.MAX_VALUE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'home':\n\t\t\t\tcase 'ctrl+a': // go to the beginning of the line you are currently typing on\n\t\t\t\t\tview.cursor(-Number.MAX_VALUE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'left':\n\t\t\t\t\tview.cursor(-1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'right':\n\t\t\t\t\tview.cursor(+1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'alt+f': // move cursor forward one word on the current line\n\t\t\t\t\tview.cursor('+w');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'alt+b': // move cursor backward one word on the current line\n\t\t\t\t\tview.cursor('-w');\n\t\t\t\t\tbreak;\n\n\t\t\t\t// command manipulation\n\t\t\t\tcase 'backspace':\n\t\t\t\tcase 'ctrl+h': // same as backspace\n\t\t\t\t\tview.deleteBefore();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'del':\n\t\t\t\t\tview.deleleAfter();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ctrl+k': // clear the line after the cursor\n\t\t\t\t\tview.deleteAllAfter();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ctrl+u': // clears the line before the cursor position\n\t\t\t\t\tview.deleteAllBefore();\n\t\t\t\t\tbreak;\n\t\t\t\t// case 'ctrl+t': // swap the last two characters before the cursor // -> default 'new tab'\n\t\t\t\t// case 'esc t': // swap the last two words before the cursor // conflicts with 'show hint'\n\t\t\t\t// case 'ctrl+w': // delete the word before the cursor // -> default 'close tab'\n\t\t\t\tcase 'space':\n\t\t\t\t\tview.put(' ');\n\t\t\t\t\tbreak;\n\n\t\t\t\t// show hint\n\t\t\t\tcase 'tab': // auto-complete\n\t\t\t\tcase 'esc':\n\t\t\t\t\tview.hint();\n\t\t\t\t\tbreak;\n\n\t\t\t\t// history manipulation\n\t\t\t\tcase 'up':\n\t\t\t\t\tview.historyCmd(-1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'down':\n\t\t\t\t\tview.historyCmd(+1);\n\t\t\t\t\tbreak;\n\t\t\t\t// case 'ctrl+r': // let’s you search through previously used commands // -> default 'reload page'\n\n\t\t\t\t// execute smth\n\t\t\t\tcase 'ctrl+l': // clears the screen, similar to the clear command\n\t\t\t\t\tview.set('clear');\n\t\t\t\t\tview.execute();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ctrl+d': // exit the current shell\n\t\t\t\t\tview.set('logout');\n\t\t\t\t\tview.execute();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'enter':\n\t\t\t\t\tview.execute();\n\t\t\t\t\tbreak;\n\t\t\t\t// case 'ctrl+c': // kill whatever you are running\n\t\t\t\t// case 'ctrl+z': // puts whatever you are running into a suspended background process. fg restores it.\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "function omdbCommand(){\n inquirer.prompt([\n {\n name: \"movie\",\n message:\"What movie would you like to search?\"\n }\n ]).then(function(answer){\n if(answer.movie === \"\"){\n movieThis(defaulted.movie);\n } else {\n commandParam = answer.movie;\n movieThis(commandParam);\n } \n })\n}", "function test_switches(opt) {\n var test_types = ['symbols', 'strings', 'oddball', 'smi', 'heapnum'];\n\n function test(clause_type) {\n var values = clause_values[clause_type];\n\n test_types.forEach(function(test_type) {\n test_switch(clause_type, test_type, 'all', opt);\n test_switch(clause_type, test_type, 'none', opt);\n\n // Targeting specific clause feedback\n values.forEach(function(value) {\n test_switch(clause_type, test_type, [value], value, opt);\n test_switch(clause_type, test_type, value, value, opt);\n });\n });\n };\n\n test('string');\n test('smi');\n test('mixed');\n}", "function liri() {\n if (userCommand === \"concert-this\") {\n concertThis();\n } else if (userCommand === \"spotify-this-song\") {\n spotifyThis();\n } else if (userCommand === \"movie-this\") {\n movieThis();\n } else if (userCommand === \"do-what-it-says\") {\n doWhat();\n }\n}", "function userInput() {\n debugger;\n userChoice = process.argv[2];\n userSearch = process.argv.splice(3).join(\" \");\n\n if (userChoice === undefined) {\n toDo();\n } else {\n checkingToDo();\n }\n}", "function liri(userCommandChoice){\n switch(userCommandChoice){\n case `concert-this`:\n if(validateUserInput()){\n concertThis()\n }else {\n console.log('please input artist/band name after liri command!');\n return\n }\n \n break;\n case `spotify-this-song`:\n if(validateUserInput()){\n spotifyThis()\n }else {\n arg2 = 'The Sign'\n spotifyThis();\n }\n break;\n case `movie-this`:\n if(validateUserInput()){\n movieThis();\n }else {\n console.log('please input movie name after liri command!');\n return\n }\n break;\n case `do-what-it-says`:\n liriChoice();\n break;\n default:\n console.log('OOPS! I do not know that command. please choice from: \\n concert-this \\n spotify-this-song \\n movie-this \\n do-what-it-says');\n break;\n }\n }", "function word_present(command, synonyms){\n for (n in synonyms){\n var synonym = synonyms[n];\n if (synonym.charAt(0) == \"<\"){\n //must be an exact match\n synonym = synonym.substring(1);\n if (command == synonym)\n return true;\n }\n else{\n if (command.includes(synonym))\n return true;\n }\n }\n return false;\n}", "function userInput(option, input){\n switch (option) {\n case 'concert-this':\n concertInfo(input);\n break; \n \n case 'spotify-this-song': \n songInfo(input);\n break; \n \n case 'movie-this': \n movieInfo(input); \n\n break; \n\n case 'do-what-it-says':\n showInfo();\n break; \n\n default: \n log(\"Invalid\");\n }\n }", "function evaluateCmd(userInput) {\n //parses the user input to understand which command was typed\n const userInputArray = userInput.split(\" \");\n const command = userInputArray[0];\n\n switch (command) {\n case \"echo\":\n commandLibrary.echo(userInputArray.slice(1).join(\" \"));\n break;\n case \"cat\":\n commandLibrary.cat(userInputArray.slice(1));\n break;\n case \"head\":\n commandLibrary.head(userInputArray.slice(1));\n break;\n case \"tail\":\n commandLibrary.tail(userInputArray.slice(1));\n break;\n default:\n console.log('No such command found');\n }\n}", "lookupCallback(found, rawInput) {\n\n\n switch (found.length) {\n case 0:\n this.agent.ask(`\n I heard you say: \"${rawInput}\". Could you be more specific?\n `, { lastOperator: null });\n break;\n case 1:\n const op = found[0];\n const successPhrase = () => {\n const s = [\n 'Alright, you should try out the \"%s\" operator.',\n 'Well, the \"%s\" operator is what you are looking for.',\n 'For this specific use case, the \"%s\" operator would be fine.',\n 'May be the \"%s\" operator could help.',\n 'I believe the \"%s\" operator is perfect for that.',\n 'André Staltz suggests you try the \"%s\" operator.',\n 'Kwon Oh-joong thinks the \"%s\" operator is what you are looking for.'\n ];\n return s[(Math.random() * (s.length - 1)) | 0];\n }\n this.agent.ask(`\n ${ successPhrase().replace('%s', op) }\n ${this.agent.getRandomConversationMessage()}\n `, { lastOperator: found });\n break;\n case 2:\n this.agent.ask(`\n I found 2 operators for you. The \"${found[0]}\" operator and \"${found[1]}\" operator.\n ${this.agent.getRandomConversationMessage()}\n `, { lastOperator: found });\n break;\n default:\n const partial = (found) => {\n const cloned = Object.create(found);\n const r = () => (Math.random() * (cloned.length - 1)) | 0;\n return [\n cloned.splice(r(), 1),\n cloned.splice(r(), 1),\n cloned.splice(r(), 1)\n ];\n };\n const phrase = () => {\n return (found.length === 3) ? ':' : '. Here are 3 of them:';\n };\n const smartJoin = (arr) => {\n const last = arr.pop();\n return `\"${arr.join('\", \"')}\" and \"${last}\"`;\n };\n const arr = partial(found);\n this.agent.ask(`\n I found ${found.length} operators that match your request${phrase(arr)} \n ${smartJoin(arr)}. \n ${this.agent.getRandomConversationMessage()}\n `, { lastOperator: arr });\n }\n }", "function runSearch (input, searchType) {\n\n //Switch Function - determines input / request type// \n switch(input) {\n //OMDB// \n case \"movie-this\":\n console.log(searchType);\n movieThis(searchType);\n break;\n\n //Bands In Town//\n case \"concert-this\":\n concertThis(searchType);\n break;\n\n //Spotify//\n case \"spotify-this-song\":\n spotifyTrack(searchType);\n break;\n\n //Do Random from File//\n case \"do-what-it-says\":\n doRandom();\n break;\n }\n}", "function UserInputs(action, input) {\n switch (action) {\n case \"concert-this\":\n runBandsInTown(input);\n fixString(input)\n break;\n case \"spotify-this-song\":\n runSpotify(input);\n fixString(input)\n break;\n case \"movie-this\":\n runOmdb(input);\n fixString(input)\n break;\n case \"do-what-it-says\":\n runRandom(input);\n break;\n default:\n console.log(\"\\n--------------------------------------------------------\");\n console.log(\n \"Please enter a valid argument, such as:\\n\\nnode liri.js movie-this [MOVIE TITLE]\\n\\nnode liri.js spotify-this-song [SONG TITLE]\\n\\nnode liri.js concert-this [ARTIST NAME]\\n\\nnode liri.js do-what-it-says\"\n );\n console.log(\n \"--------------------------------------------------------\\n\\n\"\n );\n }\n}", "function switchCase(action, input) {\n switch (action) {\n case \"concert-this\": bandsInTown(input);\n break;\n\n case \"spotify-this-song\": spotifyThisSong(input);\n break;\n\n case \"movie-this\": omdb(input);\n break;\n\n case \"do-what-it-says\": doWhat();\n break;\n }\n}", "processCommand(command, message) {\n const entityKey = command.split('/')[0]\n switch (command) {\n case 'outlet1/command':\n if (this.entity.hasOwnProperty(entityKey)) {\n this.setOutletState(message, 'outlet1')\n }\n break;\n case 'outlet2/command':\n if (this.entity.hasOwnProperty(entityKey)) {\n this.setOutletState(message, 'outlet2')\n }\n break;\n default:\n this.debug(`Received message to unknown command topic: ${command}`)\n }\n }", "function spotifyCommand(){\n inquirer.prompt([\n {\n name: \"song\",\n message:\"What song would you like to search?\"\n }\n ]).then(function(answer){\n if(answer.song === \"\"){\n spotifyThis(defaulted.song)\n } else {\n commandParam = answer.song;\n spotifyThis(commandParam);\n }\n })\n}", "function kitchenOptions (command) {\n if (command === 'talk' && lady.repeatInteraction === false) {\n ladyInteraction()\n } else {\n optionsAlert()\n }\n}", "function doWhatItSays() {\n\tfs.readFile('random.txt', 'utf8' , function(err, data) {\n\t\tif(err) throw err;\n\t\tconsole.log(data);\n\n\t\tvar dataArr = data.split(',');\n\n\t\tfunctionName = dataArr[0].trim();\n\t\tfunctionParameters = dataArr[1].trim();\n\n\n\n\t// re-use switch for search parameters\n\t \n\tswitch (functionName) {\n\t\tcase 'my-tweets':\n\t \t showTweets();\n \t break;\n\t \tcase 'spotify-this-song': \n\t \t mySpotify(functionParameters);\n\t\t break;\n\t \tcase 'movie-this':\n\t \t movieThis(functionParameters);\n\t \t break;\n\t \tcase 'do-what-it-says':\n\t \t doWhatItSays();\n\t\t break;\n\t \tdefault:\n\t \t console.log(\"Invalid Command. Please try again!\");\n\t\t}\n\t});\n\n\n}", "function doSomething(chosen, title) {\n switch (chosen) {\n case 'my-tweets':\n tweetIt();\n break;\n case 'spotify-this-song':\n songIt(title);\n break;\n case 'movie-this':\n movieIt(title);\n break;\n case 'do-what-it-says':\n doIt();\n break;\n }\n}", "function processInputCommand()\n {\n var inputText = my.html.input.value\n var goodChars = my.current.correctInputLength\n\n if (inputCommandIs('restart') || inputCommandIs('rst')) {\n location.href = '#restart'\n } else if (inputCommandIs('fix') || inputCommandIs('xxx')){\n my.html.input.value = inputText.substring(0, goodChars)\n updatePracticePane()\n } else if (inputCommandIs('qtpi')) {\n qtpi()\n }\n }", "function runSearch(argument, search) {\n switch (argument) {\n case \"spotify-this-song\":\n spotifySearch(search);\n break;\n\n case \"movie-this\":\n omdbSearch(search);\n break;\n\n case \"concert-this\":\n bandsSearch(search);\n break;\n\n case \"do-what-it-says\":\n readFile(search);\n break;\n\n case \"help\":\n help();\n break;\n\n default:\n nullCase();\n }\n}", "function search(text){\n if(text.split(' ')[0] === 'search'){\n console.log('searching')\n search_ele = ['search','search for']\n for(i = 0;i<search_ele.length;i++){\n if (text.includes(search_ele[i])){\n c = text.split(search_ele[i])\n }\n }\n messageTemplate(\"Opening google\",\"left\")\n read(\"Opening google\")\n window.open('http://google.com/search?q='+c[1]);\n }\n else if(text.localeCompare('stop') === 0 || text.localeCompare('stop speaking') === 0 || text.localeCompare('hey floran stop speaking') === 0 ){\n console.log('inside tatti')\n stopSpeaking()\n }\n else if(text.localeCompare('hey floran change name') === 0 || text.localeCompare('change name') === 0 || text.localeCompare('change the name') === 0 || text.localeCompare('hey floran change the name') === 0 ){\n is_input = true\n read(\"Enter or tell the name you want\")\n messageTemplate(\"Enter or tell the name you want\",\"left\")\n console.log(\"inside change name\")\n }\n else if(text.localeCompare('hey floran change theme') === 0 || text.localeCompare('change theme') === 0 || text.localeCompare('change the theme') === 0 || text.localeCompare('hey floran change the theme') === 0 ){\n // is_input = true\n // read(\"Enter or tell the name you want\")\n // messageTemplate(\"Enter or tell the name you want\",\"left\")\n // console.log(\"inside change name\")\n change_theme()\n }\n else if (text.localeCompare('help') == 0){\n read(\"Here are the commands that you can tell me\")\n messageTemplate(\"Greeting | hi, hello, hey\",\"left\")\n messageTemplate(\"Take a photo | launch camera, take a photo\",\"left\")\n messageTemplate(\"search in browser | search <query>, search for <query>\",\"left\")\n messageTemplate(\"jokes | tell me a joke, can you say a joke, joke\",\"left\")\n messageTemplate(\"you can also get the information you want try saying 'naruto uzumaki'\",\"left\")\n messageTemplate(\"you can also perform mathematical operation here\",\"left\")\n }\n else{\n eel.search(text)(answer)\n }\n}", "function doWhatItSays() {\n let commands = [];\n let command = '';\n let arg = '';\n let key = true;\n\n for (let i = 0; i < randomText.length; i++) {\n if (randomText[i] !== '\\n' && randomText[i] !== ' ' && key) {\n command += randomText[i];\n } else {\n arg += randomText[i];\n }\n\n if (randomText[i] === ' ') {\n key = false;\n }\n\n if (randomText[i] === '\\n') {\n commands.push({\n command,\n arg: arg.slice(1, -1)\n })\n command = '';\n arg = '';\n key = true;\n }\n\n }\n let randomTask = commands[randomizer(0, commands.length)];\n terminalArg = randomTask.command;\n let words = randomTask.arg.split(' ');\n\n words.forEach((word) => {\n process.argv.push(word);\n })\n\n}", "function validCommand() {\n console.log(\"\\n\" + \"Please enter a valid command from the following list:\");\n console.log(\"concert-this\");\n console.log(\"spotify-this-song\");\n console.log(\"movie-this\");\n console.log(\"do-what-it-says\" + \"\\n\");\n}", "function userInput(userSelect, userSearch) {\n if (userSelect === \"movie-this\") {\n movieInfo(userSearch);\n } if (userSelect === \"concert-this\") {\n concertInfo(userSearch);\n } if (userSelect === \"spotify-this-song\") {\n songInfo(userSearch);\n } if (userSelect === \"do-what-it-says\") {\n doWhatitSays(userSearch);\n }\n}" ]
[ "0.74844915", "0.73354304", "0.7311376", "0.70203483", "0.6978233", "0.6945885", "0.68616295", "0.68492204", "0.6840321", "0.6824964", "0.6800482", "0.68002796", "0.6779106", "0.6704138", "0.66694117", "0.6649002", "0.66163087", "0.65868175", "0.6571123", "0.656467", "0.6527115", "0.6480731", "0.63556564", "0.6258167", "0.62515897", "0.6240212", "0.62020653", "0.61272526", "0.61082506", "0.6063736", "0.60420954", "0.6005854", "0.6000443", "0.5982151", "0.5976772", "0.5975977", "0.5958217", "0.59498435", "0.5934309", "0.59310734", "0.5901726", "0.5880907", "0.5872878", "0.5851429", "0.58159226", "0.5815506", "0.5812289", "0.5801802", "0.57945836", "0.579429", "0.57684714", "0.57657313", "0.5744422", "0.57308847", "0.5727195", "0.57074344", "0.5701319", "0.56681067", "0.56650305", "0.5652269", "0.565092", "0.5633326", "0.56320226", "0.55785364", "0.5565457", "0.55644673", "0.55585366", "0.5553862", "0.55353564", "0.5533941", "0.55326873", "0.5528802", "0.55110735", "0.55097073", "0.5494861", "0.54866004", "0.54788566", "0.547616", "0.5474916", "0.5473039", "0.5459343", "0.5453917", "0.5452932", "0.5441325", "0.54254633", "0.54149485", "0.54085076", "0.540064", "0.539974", "0.53962076", "0.5394775", "0.5386642", "0.5385345", "0.53784645", "0.5374417", "0.5374259", "0.53739214", "0.53636384", "0.53545034", "0.5353397", "0.5344776" ]
0.0
-1
Sigma Create a function "sigma(num)" that given a number, returns the sum of all positive integers up to that number. e.g., sigma(3) = 6 (1+2+3) Assume the argument passed is a positive integers Approach1: Math Sum of first 'n' integers = n(n+1)/2
function sigma(num){ return num * (num + 1)/2 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sigma(num){\n var sum = (num*(num+1))/2\n\n return sum\n}", "function sigma(num){\n var sum = 0 // total starts at 0 because anything added to 0 is itself\n for(var i=1;i<=num;i++){\n sum += i\n }\n return sum\n}", "function sigma(num) {\n var sum = 0;\n for (var i = 0; i <= num; i++) {\n sum += i;\n }\n return sum;\n}", "function sigma(num){\n // YOUR CODE HERE\n var sum=0;\n for(var i=0; i<=num; i++){\n sum+=i;\n }\n return sum;\n}", "function sigma(num) {\n var sum = 0;\n for(var i = 1; i <= num; i++) {\n sum += i;\n }\n\n return sum;\n}", "function sigma(num) {\n var sum = 0;\n for (var i = 0; i <num; i++){\n sum += i+1;\n }\n return sum\n}", "function sigma(num) {\n let sum = 0\n for(let i = 1; i <= num; i++) {\n sum += i;\n }\n return sum;\n}", "function sigma(num){\n var sum = 0;\n for(var i = 0; i <= num; i++){\n sum += i;\n }\n console.log(sum);\n return sum;\n}", "function sigma(num) {\n // YOUR CODE HERE\n console.log(\"adding up\");\n var sum = 0;\n\n for (var i = 1; i <= num; i++) {\n sum = i + sum;\n }\n return sum;\n}", "function sigma(num){\n var sum = 0;\n for (var i=num; i>0; i--){\n sum = sum + num;\n }\n return console.log(sum)\n}", "function sigma(num) {\n // set variable sum\n // loop through each number\n // start with num\n // end with 0\n // run while i is greater than or equal to 0\n // add current number to sum\n // i--\n var sum = 0;\n for(var i = num; i >= 0; i--) {\n sum += i;\n }\n // console.log(sum);\n return sum;\n}", "function sigma(num){\n var value = 0\n for(var i = 1; i <=num; i++){\n value = value + i;\n } \n console.log(\"adding up\");\n return value;\n}", "function recursiveSigma(num) {\n // base case\n if (num < 1) {\n return 0;\n }\n return num + recursiveSigma(num - 1);\n}", "function rSigma(num) {\n num = Math.floor(num)\n let sum = num;\n if (num <=0) {\n return 0;\n }\n while (num>0) {\n num-=1;\n sum+= num; \n rSigma(num-1)\n }\n return sum;\n}", "function recursiveSigma(num) {\n if (num == 1) {\n return 1;\n }\n return num + recursiveSigma(num - 1);\n}", "function sigma(num, index=1) {\n \n}", "function recursiveSigma(n) {\n // code here\n}", "function rSigma(userNum){\n let num = Math.floor(userNum); \n let totalSum = 0;\n if (num < 0) {\n return 0;\n }\n while (num > 0) {\n totalSum += num;\n // console.log(totalSum)\n num--\n // console.log(num);\n rSigma(num);\n }\n return totalSum;\n}", "function sigma2(num) {\n var sum = 0\n for(var i = 0; i <= num; i++) {\n sum = sum += i\n // console.log(\"sum: \"+sum+\"idx: \"+i)\n }\n\n return sum\n}", "function sum(numbers){\n var sigma = 0;\n for(var i = 0; i < numbers.length; i++){\n sigma += numbers[i];\n }\n return sigma;\n}", "function show_sigma(radius, number)\n{\n\n\tsigma = radius - radius * Math.cos(Math.PI / number);\n\t\n}", "function summation(num) {}", "function gauss(x, sigma) {\n\n return Math.exp(-(x * x) / (2.0 * sigma * sigma));\n }", "function gauss(x, sigma) {\n return Math.exp(-(x * x) / (2.0 * sigma * sigma));\n }", "function gauss( x, sigma ) {\n\n\t\t\treturn Math.exp( - ( x * x ) / ( 2.0 * sigma * sigma ) );\n\n\t\t}", "function gauss( x, sigma ) {\n\n\t\t\treturn Math.exp( - ( x * x ) / ( 2.0 * sigma * sigma ) );\n\n\t\t}", "function gauss( x, sigma ) {\n\n\t\t\treturn Math.exp( - ( x * x ) / ( 2.0 * sigma * sigma ) );\n\n\t\t}", "function gauss( x, sigma ) {\n\n\t\t\treturn Math.exp( - ( x * x ) / ( 2.0 * sigma * sigma ) );\n\n\t\t}", "function gauss( x, sigma ) {\n\n\t\t\treturn Math.exp( - ( x * x ) / ( 2.0 * sigma * sigma ) );\n\n\t\t}", "function sig(nbr){return 1/(1+Math.pow(Math.E,-nbr));}", "function summation(num){\n if(num === 1) return 1;\n return num + summation(num - 1);\n}", "function sum_n( n )\n{\n return n*( n + 1 )/2.0 ;\n}", "function digital_root(n) {\n var finalSum = sum(n);\n while (finalSum >= 10) {\n finalSum = sum(finalSum);\n }\n return finalSum;\n}", "function summation(num) {\n let arr = Array.from({ length: num }, (v, k) => k + 1);\n return arr.reduce((a, b) => a + b, 0)\n}", "function sum_n_sq( n )\n{\n return n*( n + 1 )*( 2*n + 1 )/6.0 ;\n}", "function summation(number) {\n if (number <= 1) {\n return 1\n } else {\n return number + summation(number - 1)\n }\n}", "function scale(n) { return (1 + n)/2; }", "function sum(n) {\n return (n * (n + 1)) / 2;\n}", "sigma(val) {\n this._sigma = val;\n return this;\n }", "function summation(number) {\r\n \r\n var sum, i;\r\nsum = 0;\r\n for(var i = 0; i <= number; i++){\r\n sum = sum + i\r\n }\r\nreturn sum;\r\n}", "function calculateSigmaSq(totalLen, spread) {\n var lengthSpread = totalLen/2;\n var sigmaSq = (lengthSpread * lengthSpread)/(-2 * Math.log(spread));\n return sigmaSq;\n }", "function sum1ToN(n){\n\n}", "gaussianRandom_(mu, sigma) {\r\n let nsamples = 12\r\n if (!sigma) sigma = 1\r\n if (!mu) mu = 0\r\n\r\n var run_total = 0\r\n for(var i=0 ; i<nsamples ; i++){\r\n run_total += Math.random()\r\n }\r\n\r\n return sigma*(run_total - nsamples/2)/(nsamples/2) + mu;\r\n }", "function summation1(num) {\n return num * (num + 1) / 2\n}", "function summation1(num) {\n return num * (num + 1) / 2\n}", "function prob1(n){\r\n\tsum=0;\r\n sum=(3*(n/3)*((n/3)+1)/2)+(5*(n/5)*((n/5)+1)/2)-(15*(n/15)*((n/15)+1)/2);\r\n console.log(sum);\r\n}", "function kertoma(n) {\n let kert = 1;\n for (i = 1; i <= n; i++) {\n kert *= i;\n }\n return (kert);\n}", "function firstNPrimes (num) {\n let sum = 0;\n\n}", "function getStandardDeviation (integers) {\r\n const n = integers.length\r\n const mean = integers.reduce((a, b) => a + b) / n\r\n return Math.sqrt(integers.map(x => Math.pow(x - mean, 2)).reduce((a, b) => a + b) / n)\r\n }", "function rekursiivinenSumma(n) {\n if (n < 0) {\n return ('negative number!');\n } else if (n == 0) {\n return 0;\n } else if (n == 1) {\n return 1;\n } else {\n return (n + rekursiivinenSumma(n - 1));\n }\n}", "function sumPrimes(num){\n var arr = [];\n var sum = 0;\n for (var i = num; i > 0; i--){\n if(isPrime3(i)){\n arr.push(i);\n }\n }\n console.log(arr);\n sum = sumArray(arr);\n return sum;\n}", "function findGaussian(dataArray, inMean, inSx){\n\tlet amountArray = [0,0,0,0]; //index 0 = total, index 1 = 3sX, 2 = 2sX, 3 = 1sX\n\tfor (let i = 0; i < dataArray.length; i++){\n\t\tif (i >= (inMean - (1*inSx)) && i <= (inMean + (1*inSx))){\n\t\t\tamountArray[3] += dataArray[i];\n\t\t}\n\t\tif (i >= (inMean - (2*inSx)) && i <= (inMean + (2*inSx))){\n\t\t\tamountArray[2] += dataArray[i];\n\t\t}\n\t\tif (i >= (inMean - (3*inSx)) && i <= (inMean + (3*inSx))){\n\t\t\tamountArray[1] += dataArray[i];\n\t\t}\n\t\tamountArray[0] += dataArray[i];\n\t}\n\ts1 = (amountArray[3]/amountArray[0]);\n\ts2 = (amountArray[2]/amountArray[0]);\n\ts3 = (amountArray[1]/amountArray[0]);\n\treturn [s1,s2,s3];\n}", "function getOccurenceSigma(arrayOfPrimeAndSigmaValue) {\n const occurrencesSigmaObj = {};\n\n for (const [_, sigma] of arrayOfPrimeAndSigmaValue) {\n if (occurrencesSigmaObj[sigma]) {\n occurrencesSigmaObj[sigma] += 1;\n } else {\n occurrencesSigmaObj[sigma] = 1;\n }\n }\n\n const arrayOfOccurenceSigma = Object.entries(occurrencesSigmaObj)\n .filter(([_, occurrencesSigmaObj]) => occurrencesSigmaObj > 1)\n .map(([value, occurrence]) => [Number(value), occurrence]);\n\n return arrayOfOccurenceSigma;\n}", "function SMA(period) {\n var nums = [];\n return function(num) {\n nums.push(num);\n if (nums.length > period)\n nums.splice(0,1); // remove the first element of the array\n var sum = 0;\n for (var i in nums)\n sum += nums[i];\n var n = period;\n if (nums.length < period)\n n = nums.length;\n return(sum/n);\n }\n}", "function summation(n) {\n\n let sum = 0;\n //start the count at 1, and if the \"i\" is less than or equal to the number, add 1 to the number\n //in this case if \"i\" is less than 4, add 1 and loop again\n for (let i = 1; i <= n; i++) {\n //add the value to the variable until it reaches the condition\n sum += i;\n }\n //return the vale\n return sum;\n}", "function sum(n) {\n if (n <= 0) return 0;\n return n + sum(n - 1);\n}", "function sum(n) { \n \tif (n === 0){//stop condition\n \t\treturn 0;\n \t}\n return n + sum (n-1);\n }", "function printSum(x){\n var sum = 0;\n //your code here\n \n for(var i=0;i<=x;i++){\n sum += i;\n console.log(sum);\n }\n \n return sum\n}", "function sumPrimes(num) {\n if (num === null) throw new Error(\"Input is null\");\n if (num === 0) return 0;\n let current = 2;\n let sum = 0;\n while (current <= num) {\n if (isPrime(current)) {\n sum += current;\n }\n current++;\n }\n return sum;\n}", "function sum(n) {\r\n if (n == 0) {\r\n return 0;\r\n }\r\n return n + sum(n - 1);\r\n}", "function sumRange(num){\n if (num === 1) return 1;\n return num + sumRange(num -1)\n}", "function sum(number) {\n if (number > 0){\n return number + sum(number - 1);\n } else if (number == 0) {\n return 0;\n }\n}", "function sumUpto(n) {\n return n * (n + 1)/ 2 ;\n}", "function get_posterior_sigma(prior_sigma, likelihood_sigma) {\n return prior_sigma * likelihood_sigma / (prior_sigma + likelihood_sigma)\n }", "function sumofNnumbers(number){\n let sum = 0;\n for(let count = 1; count <= number; count++){\n sum = sum + count;\n }\n return sum;\n }", "function sumPrimes(num) {\n if (typeof num !== 'number') {\n throw new Error('input should be a number.');\n }\n if (num % 1 !== 0) {\n throw new Error('input should be an integer.');\n }\n\n if (num === 1) {\n return 1;\n }\n var res = 0;\n\n for (var i = 2; i <= num; i++) {\n if (i % 2 === 0 && i !== 2) {\n continue;\n }\n\n if (i === 2 || i === 3 || i === 5 || i === 7) {\n res += i;\n continue;\n }\n\n\n\n var flag = true;\n for (var j = 3; j <= Math.sqrt(i); j++) {\n if (i % j === 0) {\n flag = false;\n }\n }\n if (flag) {\n res += i;\n }\n }\n\n return res;\n}", "function gaussian_pdf(x,mu,sigma)\n{\n x-=mu;\n var asigma = Math.abs(sigma);\n var u = x/asigma;\n return (1/ Math.sqrt(2*Math.PI) * asigma) * Math.exp(-u*u/2); \n}", "function gaussian_pdf(x,mu,sigma)\n{\n x-=mu;\n var asigma = Math.abs(sigma);\n var u = x/asigma;\n return (1/ Math.sqrt(2*Math.PI) * asigma) * Math.exp(-u*u/2); \n}", "function sumPrimes(num) {\nlet sumaPrimo = 0,\n j = 2; // se inicio desde 2 dado que el 1 digamos es un numero ya considerado como primo.\n\nwhile( j <= num){\n if(primo(j)){\n sumaPrimo += j; \n }\n j++;\n}\nreturn sumaPrimo\n}", "function sumation(num) {\n let count = 0;\n for (i = 0; i <= num; i++) {\n count = count + i;\n }\n return count;\n}", "function totSum(num) {\n let rest = 0;\n for (let i = 0; i < num; i++) rest += i;\n return rest;\n}", "function sumFibs(num) {\n var arr = [1,1];\n var sum=0;\n for(var i = 1; arr[arr.length-1] < num; i++){\n arr.push(arr[i-1]+arr[i]);\n } \n \n for (i = 0;i<arr.length;i++){\n if(arr[i]%2 === 0){arr.splice(i,1);}\n }\n if(arr[arr.length-1]>num)\n arr.pop();\n \n for(i=0;i<arr.length;i++){\n sum += arr[i];\n }\n return sum;\n}", "function sumOfNumbers(num) {\n let sum = 0;\n for (let i = 0; i <= num; i++) {\n sum += i;\n }\n return sum;\n}", "function somaPrimos(num) {\n return 0\n}", "function sigFig(num, digits) {\n\tif (num==0) return 0;\n\t/// Get a multiplier based on the log position of most sig digit (add 1 to avoid 100...0 not being rounded up)\n\tvar mul = Math.pow(10,Math.floor(Math.log10(num)));\n\tvar sigPow = Math.pow(10,digits-1);\n\t/// XXX: I need to work this out properly at some point\n\tvar v = Math.round((num/mul)*sigPow);\n\tif ((mul/sigPow) < 1) {\n\t\tvar d = Math.round(1/(mul/sigPow));\n\t\tv = v/d;\n\t}\n\telse {\n\t\tvar d = Math.round(mul/sigPow);\n\t\tv = v*d;\n\t}\n\n\treturn v;\n}", "function printSum(x){\n var sum = 0;\n for(var i = 0; i<=x; i++){\n sum += i\n }\n return sum;\n}", "function gamma(n) {\n var t, x;\n\n if (isInteger(n)) {\n if (n <= 0) {\n return isFinite(n) ? Infinity : NaN;\n }\n\n if (n > 171) {\n return Infinity; // Will overflow\n }\n\n var value = n - 2;\n var res = n - 1;\n while (value > 1) {\n res *= value;\n value--;\n }\n\n if (res === 0) {\n res = 1; // 0! is per definition 1\n }\n\n return res;\n }\n\n if (n < 0.5) {\n return Math.PI / (Math.sin(Math.PI * n) * gamma(1 - n));\n }\n\n if (n >= 171.35) {\n return Infinity; // will overflow\n }\n\n if (n > 85.0) { // Extended Stirling Approx\n var twoN = n * n;\n var threeN = twoN * n;\n var fourN = threeN * n;\n var fiveN = fourN * n;\n return Math.sqrt(2 * Math.PI / n) * Math.pow((n / Math.E), n) *\n (1 + (1 / (12 * n)) + (1 / (288 * twoN)) - (139 / (51840 * threeN)) -\n (571 / (2488320 * fourN)) + (163879 / (209018880 * fiveN)) +\n (5246819 / (75246796800 * fiveN * n)));\n }\n\n --n;\n x = GAMMA_P[0];\n for (var i = 1; i < GAMMA_P.length; ++i) {\n x += GAMMA_P[i] / (n + i);\n }\n\n t = n + GAMMA_G + 0.5;\n return Math.sqrt(2 * Math.PI) * Math.pow(t, n + 0.5) * Math.exp(-t) * x;\n}", "function calculateSum(num){\n let sum = 0;\n\n for(let i = 0; i <= num; i++){\n sum += i;\n };\n\n return sum;\n}", "function smallestN(num) {\n let n =1;\n let count = 0;\n while(n*n<=num) {\n count = n;\n n++;\n } return count;\n}", "function sumPrimes(num) {\n // CREATE ARRAY TO STORE PRIMES\n var result = [];\n // GO OVER THE NUMBERS +1 BECAUSE WE WANT TO TEST THE GIVEN NUMBER AS WELL\n for (var i = 1; i < num + 1; i++) {\n // 2 IS THE FIRST PRIME SO WE PUSH\n if (i === 2) {\n result.push(i);\n } else {\n var x = 1;\n // WHILE THE X IS SMALLER THEN THE I UNTIL THE LAST\n while (x < i) {\n x++;\n if (i % x === 0) {\n break;\n }\n // -1 BECAUSE WE LOOK IF X<I THIS IS THE LAST PRIME IN I\n if (x === i - 1) result.push(i);\n }\n }\n }\n // console.log(result)\n return result.reduce((a, b) => a + b);\n}", "function variance(x,size){\r\nvar av=avg(x,size);\r\nvar sum=0;\r\nfor(var i=0;i<size;i++){\r\n sum+=x[i]*x[i];\r\n}\r\nvar t = sum/size\r\nvar z = av*av\r\nvar total = t - z\r\n//console.log(\"variance : \" + total)\r\nreturn total;\r\n}", "function summation2(num) {\n return num * (num + 1) / 2\n }", "function gaussian(mu = 0.5, sigma = 1) {\n let gauss = {};\n gauss.mu = mu;\n gauss.sigma = sigma;\n gauss.pdf = function(x){\n const exp = Math.exp(Math.pow(x - gauss.mu, 2) / (-2 * Math.pow(gauss.sigma, 2)));\n return (1 / (gauss.sigma * Math.sqrt(2 * Math.PI))) * exp;\n };\n return gauss;\n}", "function sumPrimes(num) {\n let sum = 0;\n while (num > 1) {\n if (isPrime(num)) {\n sum += num;\n }\n num--;\n }\n return sum;\n}", "function sum(n){\n if(n == 1){\n return 1 ;\n }else{\n return sum(n-1)+n ;\n }\n}", "function sumPrimes(num) {\n let sum = 0;\n for (var i = 2; i <= num; i++) {\n if(isPrime(i)){\n sum+=i;\n console.log(i);\n }\n\n }\n return sum;\n}", "function digital_root(n){\n\n var sum = 0\n var nArray = n.toString().split('');\n if(nArray.length === 1){\n return parseInt(nArray[0]); \n }\n for(var digitIndex = 0; digitIndex < nArray.length; digitIndex++ ){\n sum += parseInt(nArray[digitIndex]);\n }\n return digital_root(sum);\n}", "function sumToN(n) {\n return n * (n + 1) / 2;\n}", "function primaBerikutnya(n){\r\n if (isNaN(n) || !isFinite(n)) return NaN; \r\n if (n<2) return 2;\r\n n = Math.floor(n);\r\n for (var i=n+n%2+1; i<9007199254740992; i+=2) {\r\n if (cekPrima(i)) return i;\r\n }\r\n return NaN;\r\n }", "function random_bm(mean=0.5, sigma=0.125) {\n let u = 0, v = 0;\n while(u === 0) u = random(); //Converting [0,1) to (0,1)\n while(v === 0) v = random();\n let num = Math.sqrt( -2.0 * Math.log( u ) ) * Math.cos( 2.0 * Math.PI * v );\n num = num / 10.0 + 0.5; // Translate to 0 -> 1\n let diff_mean = mean - 0.5;\n let diff_stddev = sigma / 0.125;\n // bring value down to be around 0 and scale/translate\n num -= 0.5;\n num *= diff_stddev;\n num += diff_mean + 0.5;\n return num;\n}", "function steps(n, k) {\n var sum = (n * (n + 1) / 2)\n console.log('numberofsteps', sum);\n var badS = (-1 + Math.sqrt(1 - (4 * 1 * -(2 * k)))) / 2\n console.log(\"badstep is\", badS);\n if (Number.isInteger(badS)) {\n sum = sum - 1;\n return sum;\n } else {\n return sum;\n }\n\n}", "function summationOfPrimes(n) {\n var sum = 0;\n var i;\n for(i = 2; i <= n; i++) {\n if(isPrime(i)) {\n sum += i;\n }\n }\n return sum;\n}", "function multisum(number) {\n var sum = 0;\n\n for (var i = 1; i <= number; i++) {\n i % 3 === 0 || i % 5 === 0 ? sum += i : sum;\n }\n\n return sum;\n}", "function sumPrimes(num) {\n var sum = 0;\n if(isPrime(num)){\n sum = sum+num;\n }\n for(j=2; j<num; j++){\n if(isPrime(j)){\n console.log(j);\n sum = sum + j;\n }\n\n }\n return sum;\n}", "function sumRange(int) {\n if (int <= 1) {\n return int;\n }\n return int + sumRange(int-1);\n}", "function avg() {\n var sum = 0;\n for (var i = 0, j = arguments.length; i < j; i++) {\n sum += arguments[i];\n }\n return sum / arguments.length;\n}", "function avg() {\n var sum = 0;\n for (var i = 0, j = arguments.length; i < j; i++) {\n sum += arguments[i];\n }\n return sum / arguments.length;\n}", "function digital_root(n) {\n let numString = n.toString();\n let sum = 0\n for (let i = 0; i<numString.length; i++) {\n sum += Number(numString[i])\n }\n \n while (sum >= 10) {\n sum = digital_root(sum)\n }\n\n return sum\n\n }", "function findNb(m) {\n var sum = 0;\n var i = 1;\n while (sum <m) {\n sum = sum + Math.pow(i, 3);\n i++;\n }\n if (sum === m) {\n return (i-1);\n } else {\n return -1;\n }\n}", "function sums(n) {\n let sum = 0;\n for (let i = 0; i <= n; i++) {\n sum+=i;\n }\n return sum;\n}" ]
[ "0.86038154", "0.840468", "0.83293515", "0.83150125", "0.8301374", "0.82602745", "0.8193486", "0.8175304", "0.80067545", "0.79544044", "0.79159516", "0.7850919", "0.78148293", "0.7715286", "0.75696945", "0.75355506", "0.7471225", "0.74197567", "0.73510236", "0.67472255", "0.62246585", "0.61674106", "0.59677404", "0.5953986", "0.5831756", "0.5831756", "0.5831756", "0.5831756", "0.5831756", "0.57737285", "0.56222516", "0.55075216", "0.54756236", "0.54748017", "0.5471065", "0.54386467", "0.5380227", "0.5372922", "0.535482", "0.53450865", "0.5340959", "0.53360534", "0.53250974", "0.53106475", "0.53106475", "0.53035283", "0.5289794", "0.52287394", "0.5228722", "0.5222303", "0.5193393", "0.518991", "0.5179548", "0.5174226", "0.51579386", "0.5138466", "0.5122367", "0.51159126", "0.50936913", "0.50921506", "0.50878215", "0.50772196", "0.5076162", "0.50754625", "0.5070162", "0.5069446", "0.506889", "0.506889", "0.5060277", "0.50472337", "0.50374705", "0.5030483", "0.5028808", "0.50275534", "0.5020096", "0.50040627", "0.49927706", "0.49862453", "0.49785683", "0.4978087", "0.4977011", "0.49719685", "0.4971015", "0.49656284", "0.49597302", "0.49569967", "0.49537078", "0.49534425", "0.49530604", "0.49492845", "0.49473038", "0.49454758", "0.49430373", "0.4941553", "0.4932447", "0.49323654", "0.49323654", "0.49210104", "0.4920997", "0.49200165" ]
0.8369511
2
While mouse is over the image, move the crop line.
function mouseMove(event) { //mouse x position in percentage var x = (event.clientX / innerWidth)*100; //Whole numbers z=~~x; //Set value for HTML. 100-z mirrors the movement. root.style.setProperty('--mouse-x', 100-z+"%"); //Test Values //document.getElementById('demoT').innerHTML = "Mouse position once leave Div: " + z; //Kills the centerCrop() while mouse is over the img stopTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function move(deltaX, deltaY){\n\t\t\tif(is_pinching)\n\t\t\t\treturn;\n\t\t\timg_to_crop.css({\n\t\t\t\tleft: (x_pos + deltaX) + 'px',\n\t\t\t\ttop: (y_pos + deltaY) + 'px' \n\t\t\t});\n\t\t}", "function _onMouseMove(e) {\n if (this.activeEl) {\n this.activeEl.style.transform = 'translate(0, 0)';\n let parent = document.querySelector('.picture-crop-area'),\n parentX = parent.getBoundingClientRect().left,\n parentY = parent.getBoundingClientRect().top,\n maxRightCoord = parent.offsetWidth - this.activeEl.offsetWidth,\n maxBottomCoord = parent.offsetHeight - this.activeEl.offsetHeight;\n\n let leftCoord = e.clientX - this._offsetX - parentX,\n topCoord = e.clientY - this._offsetY - parentY;\n\n if (leftCoord <= 0) {\n leftCoord = 0;\n }\n\n if (topCoord <= 0) {\n topCoord = 0;\n }\n\n if (leftCoord >= maxRightCoord) {\n leftCoord = maxRightCoord;\n }\n\n if (topCoord >= maxBottomCoord) {\n topCoord = maxBottomCoord;\n }\n\n this.activeEl.style.left = leftCoord + 'px';\n this.activeEl.style.top = topCoord + 'px';\n }\n}", "function interMouseMove() {\n var m = d3.mouse(this);\n line.attr(\"x2\", m[0]-3)\n .attr(\"y2\", m[1]-3);\n}", "function interMouseMove() {\n var m = d3.mouse(this);\n line.attr(\"x2\", m[0]-3)\n .attr(\"y2\", m[1]-3);\n}", "function eventMouseMove(e) {\n\n //move the box based on the mouse X and Y\n movePiece(e.offsetX, e.offsetY);\n\n }", "function mouseMoved(){\n stroke(r, g, b, 120);\n strokeWeight(5);\n fill(r, g, b, 100);\n ellipse(mouseX, mouseY, 10);\n}", "function MouseMoveHandler(e) {\n if (pan_context == true) {\n // Pan ccording to delta x, y and scale of canvas\n var panx = (e.x - pan_dx)/canvas_scale;\n var pany = (e.y - pan_dy)/canvas_scale;\n\n context.translate(panx, pany);\n redraw(contex_line_data);\n\n pan_dx = e.x;\n pan_dy = e.y;\n }\n}", "_onMouseMove(event) {\n super._onMouseMove(event);\n if (event.data.createState >= 1) {\n let drawing = event.data.object;\n let [gx, gy] = [event.data.originalEvent.x, event.data.originalEvent.y];\n\n // If the cursor has moved close to the edge of the window\n this._panCanvasEdge(gx, gy);\n\n drawing.updateDragPosition(event.data.destination)\n drawing.refresh();\n event.data.createState = 2;\n }\n }", "function OnMouseMove(e) {\n if (!pressed) return;\n en = { x: e.x - rect.left, y: e.y - rect.top };\n clearCanvas();\n drawLineUpperLayer(st, en);\n}", "function moveLens(event) \r\n {\r\n ratioX = result.offsetWidth / lens.offsetWidth;\r\n ratioY = result.offsetHeight / lens.offsetHeight;\r\n result.style.backgroundImage = \"url('\" + image.src + \"')\";\r\n result.style.backgroundSize = (image.width * ratioX) + \"px \" + (image.height * ratioY) + \"px\";\r\n \r\n // Determinarea pozitiei cursorului\r\n let position = getCursorPos(event);\r\n \r\n // Determinarea pozitiei lupei\r\n let x = position.x - (lens.offsetWidth / 2);\r\n let y = position.y - (lens.offsetHeight / 2);\r\n \r\n // Limitam aria de deplasare a lupei\r\n if (x > image.width - lens.offsetWidth) \r\n x = image.width - lens.offsetWidth;\r\n if (x < 0) \r\n x = 0;\r\n if (y > image.height - lens.offsetHeight) \r\n y = image.height - lens.offsetHeight;\r\n if (y < 0) \r\n y = 0;\r\n \r\n // Setarea pozitiei lupei\r\n lens.style.left = x + \"px\";\r\n lens.style.top = y + \"px\";\r\n \r\n // Afisarea rezultatului\r\n result.style.backgroundPosition = \"-\" + (x * ratioX) + \"px -\" + (y * ratioY) + \"px\";\r\n\r\n // Setarea background-ului pentru lupa\r\n lens.style.backgroundPosition = \"-\" + x + \"px -\" + y + \"px\";\r\n\r\n }", "function handlePan(loc) {\r\n // Update the source rectangle origin, but afterwards, check to\r\n // make sure we're not trying to look outside the image bounds.\r\n drawingCenter[0] += (loc[0] - lastLocation[0]);\r\n drawingCenter[1] += (loc[1] - lastLocation[1]);\r\n\r\n // Update mouse location\r\n lastLocation = loc;\r\n }", "function image_clipping(){\n\tvar top \t= (man_settings.man_cropper.offsetTop<=0) ? (-1*man_settings.man_crop_cliped_img.offsetTop) : (man_settings.man_cropper.offsetTop+(-1*man_settings.man_crop_cliped_img.offsetTop)),\n\t\tleft \t= (man_settings.man_cropper.offsetLeft<=0) ? (-1*man_settings.man_crop_cliped_img.offsetLeft) : (man_settings.man_cropper.offsetLeft+(-1*man_settings.man_crop_cliped_img.offsetLeft)),\n\t\twidth \t= (man_settings.man_cropper.offsetWidth+left),\n\t\theight \t= (man_settings.man_cropper.offsetHeight+top);\n\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\n\t/*left boundary set start*/\n\tif(man_settings.man_cropper.offsetLeft){\n\t\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\t}\n\t/*left boundary set end*/\n\n\t/*top boundary set start*/\n\tif(man_settings.man_cropper.offsetTop){\n\t\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\t}\n\t/*top boundary set end*/\n\n\t/*bottom boundary set start*/\n\tif((height+man_settings.man_crop_cliped_img.offsetTop)>=man_settings.man_crop_box.offsetHeight){\n\t\theight = (man_settings.man_crop_box.offsetHeight-man_settings.man_crop_cliped_img.offsetTop);\n\t\ttop = (height-man_settings.man_cropper.offsetHeight);\n\t\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\t}\n\t/*bottom boundary set end*/\n\n\t/*right boundary set start*/\n\tif((width+man_settings.man_crop_cliped_img.offsetLeft)>=man_settings.man_crop_box.offsetWidth){\n\t\twidth = (man_settings.man_crop_box.offsetWidth-man_settings.man_crop_cliped_img.offsetLeft);\n\t\tleft = (width-man_settings.man_cropper.offsetWidth);\n\t\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\t}\n\t/*right boundary set end*/\n}", "function onMouseMove(e){\n if (!drawing) { return; }\n drawLine(current.x, current.y, e.clientX, e.clientY, current.color, getLineWidth(), true);\n current.x = e.clientX;\n current.y = e.clientY;\n }", "mouseMove(prev, pt) {}", "function myMove(e){\n \n if (isDrag){\n getMouse(e);\n \n mySel.x = mx - offsetx;\n mySel.y = my - offsety; \n //console.log(mySel.x+' '+mySel.y);\n \n // something is changing position so we better invalidate the canvas!\n invalidate();\n }\n}", "function cutSelectionTool() {\n\t// Saving the coordinates\n\tcopiedEndX = endX;\n\tcopiedEndY = endY;\n\n\tcopiedStartX = startX;\n\tcopiedStartY = startY;\n\n\t// Getting the selected pixels\n\t// If I'm already moving a selection\n\tif (imageDataToMove !== undefined) {\n\t\t// I just save that selection in the clipboard\n\t\tclipboardData = imageDataToMove;\n\t\t// And clear the underlying space\n\t\tTMPLayer.context.clearRect(0, 0, TMPLayer.canvas.width, TMPLayer.canvas.height);\n\t\t// The image has been cleared, so I don't have anything to move anymore\n\t\timageDataToMove = undefined;\n\t}\n\telse {\n\t\t// Otherwise, I copy the current selection into the clipboard\n\t\tcopySelection();\n\t\t// And clear the selection\n\t\tcurrentLayer.context.clearRect(startX - 0.5, startY - 0.5, endX - startX + 1, endY - startY + 1);\n\t}\n}", "function myMove(e){\n\n if (isDrag) {\n getMouse(e);\n // console.log('Vikram: myMove');\n mySel.x = mx - offsetx;\n mySel.y = my - offsety; \n \n // something is changing position so we better invalidate the canvas!\n invalidate();\n } else if (isResizeDrag) {\n // time ro resize!\n var oldx = mySel.x;\n var oldy = mySel.y;\n // console.log('vikram: new move');\n // console.log('vikram: mysel values: ' + oldx + \" \" + oldy );\n // console.log('vikram: mx values: ' + mx + \" \" + my );\n // console.log('vikram: Corners values: ' + expectResize );\n // console.log(\"Vikram: image size: \" + mySelImageWidth + ' X ' + mySelImageHeight);\n // 0 1 2\n // 3 4\n // 5 6 7\n switch (expectResize) {\n case 0:\n mySel.x = mx;\n mySel.y = my;\n mySel.w += oldx - mx;\n // mySel.h += oldy - my;\n mySel.h = mySel.w/mySelImageWidth*mySelImageHeight;\n break;\n case 1:\n mySel.y = my;\n mySel.w = mx - oldx;\n mySel.h = mySel.w/mySelImageWidth*mySelImageHeight;\n // mySel.h += oldy - my;\n break;\n // case 3:\n // mySel.x = mx;\n // mySel.w += oldx - mx;\n // break;\n // case 4:\n // mySel.w = mx - oldx;\n // break;\n case 2:\n mySel.x = mx;\n mySel.w += oldx - mx;\n // mySel.h = my - oldy;\n mySel.h = mySel.w/mySelImageWidth*mySelImageHeight;\n break;\n // case 6:\n // mySel.h = my - oldy;\n // break;\n case 3:\n mySel.w = mx - oldx;\n // mySel.h = my - oldy;\n mySel.h = mySel.w/mySelImageWidth*mySelImageHeight;\n break;\n case 4:\n mySel.y = my;\n mySel.h += oldy - my;\n break;\n }\n \n invalidate();\n }\n \n getMouse(e);\n // if there's a selection see if we grabbed one of the selection handles\n if (mySel !== null && !isResizeDrag) {\n for (var i = 0; i < 5; i++) {\n // 0 1 2\n // 3 4\n // 5 6 7\n \n var cur = selectionHandles[i];\n \n // we dont need to use the ghost context because\n // selection handles will always be rectangles\n if (mx >= cur.x && mx <= cur.x + mySelBoxSize &&\n my >= cur.y && my <= cur.y + mySelBoxSize) {\n // we found one!\n expectResize = i;\n invalidate();\n \n switch (i) {\n case 0:\n this.style.cursor='nw-resize';\n break;\n case 1:\n this.style.cursor='ne-resize';\n break;\n // case 322:\n // this.style.cursor='w-resize';\n // break;\n // case 4333:\n // this.style.cursor='e-resize';\n // break;\n case 2:\n this.style.cursor='sw-resize';\n break;\n // case 63333:\n // this.style.cursor='s-resize';\n // break;\n case 3:\n this.style.cursor='se-resize';\n break;\n case 4:\n this.style.cursor='n-resize';\n break;\n }\n return;\n }\n \n }\n // not over a selection box, return to normal\n isResizeDrag = false;\n expectResize = -1;\n this.style.cursor='auto';\n }\n \n}", "function move (e){\n\t\t\t\t// Determine the mouse position in the canvas (X,Y)\n\t\t\t\tvar mouseX;\n\t\t\t\tvar mouseY;\n\t\t\t\t// if the user is painting\n\t\t\t\tif(paint){\n\t\t\t\t\tmouseX = e.pageX - this.offsetParent.offsetLeft;// - this.offsetLeft;\n\t\t\t\t\tmouseY = e.pageY - this.offsetParent.offsetTop;// - this.offsetTop;\n\t\t\t\t\t// Save the mouse position and redraw the image\n\t\t \t\taddClick(mouseX, mouseY, true);\n\t\t \t\tredraw();\n\t\t \t\t}\n\t\t\t}", "function mousemove(event) {\n y = event.pageY - startY;\n x = event.pageX - startX;\n element.css({\n top: y + 'px',\n left: x + 'px'\n });\n }", "function handleSelection(event) {\n calculateImageScale();\n var cH = $('#crosshair-h'), cV = $('#crosshair-v');\n var position = globals.image.offset();\n if (event.pageX > position.left &&\n event.pageX < position.left + globals.image.width() &&\n event.pageY > position.top &&\n event.pageY < position.top + globals.image.height()) {\n cH.show();\n cV.show();\n gMousepos.show();\n\n cH.css('top', event.pageY + 1);\n cV.css('left', event.pageX + 1);\n cV.css('height', globals.image.height() - 1);\n cV.css('margin-top', position.top);\n cH.css('width', globals.image.width() - 1);\n cH.css('margin-left', position.left);\n\n gMousepos.css({\n top: (event.pageY) + 'px',\n left: (event.pageX) + 'px'\n }, 800);\n gMousepos.text(\n '(' + Math.round((event.pageX - position.left) * globals.imageScaleWidth) + ', ' +\n Math.round((event.pageY - position.top) * globals.imageScaleHeight) + ')');\n event.stopPropagation();\n }\n else{\n cH.hide();\n cV.hide();\n gMousepos.hide();\n }\n tool.handleMousemove(event);\n }", "function canvasMouseMoveEv(event) {}", "function myMove(e){\n if (isDrag){\n getMouse(e);\n\n mySel.x = mx - offsetx;\n mySel.y = my - offsety; \n //<!-- moveFirst() -->\n // something is changing position so we better invalidate the canvas!\n invalidate();\n }\n}", "function handoffMouseMove() {\n console.log(\"in the mouse move\");\n var m = d3.mouse(this);\n line.attr(\"x2\", m[0])\n .attr(\"y2\", m[1]);\n //timeline_svg.on(\"click\", handoffMouseClick);\n}", "onMouseMove (event) {\n let x = event.offsetX;\n let y = event.offsetY;\n\n var dx = 0.01 * (x - this.dragOffset[0]);\n var dy = 0.01 * (y - this.dragOffset[1]);\n\n if (this.overPoint) {\n let invM = this.camera.getInv();\n let vel = invM.getMult([dx, -dy, 0.0]);\n vel.mult(2);\n this.value.add(vel);\n this.point = [this.value.x * this.scale, this.value.y * this.scale, this.value.z * this.scale];\n // fire 'changed'\n this.trigger('changed', this.value);\n }\n else {\n this.camera.rotateX(dy);\n this.camera.rotateY(dx);\n }\n\n this.dragOffset = [x, y];\n }", "function moveImage(event) {\n // position\n var x = event.pageX + 5;\n var y = event.pageY + 5;\n // placement\n document.getElementById(\"div_zoom_image\").style.left = x + \"px\";\n document.getElementById(\"div_zoom_image\").style.top = y + \"px\";\n}", "onMouseMove(event) {\n if (!this.state.moving) return;\n\n // # Calculate new coords delta from initial\n x = event.pageX - this.state.rel.x;\n y = event.pageY - this.state.rel.y;\n\n // # Move the image\n this.setState({ pos: this.constrain(x, y) });\n\n event.stopPropagation();\n event.preventDefault();\n }", "rollover(px, py) {\n var d = dist(px, py, this.x, this.y);\n if (d < this.diameter/2) {\n this.over = true;\n } else {\n this.over = false;\n }\n }", "function mousemove() {\n\t\tvar x0 = self.x.invert(d3.mouse(this)[0]);\n\t\tvar i = self.bisectDate(self.dataset, x0, 1);\n\t\tvar d0 = self.dataset[i - 1];\n\t\tvar d1 = self.dataset[i];\n\t\tif (typeof d0 != 'undefined' && typeof d1 != 'undefined') {\n\t\t\tvar point = x0 - d0.date > d1.date - x0 ? d1: d0;\n\t\t\tself.focus.select(\".focusCircle\").attr(\"cx\", self.x(point.date))\n\t\t\t\t.attr(\"cy\", self.height - self.y(point.value));\n\n\t\t\tadjustCount(target, point.value);\n\t\t\tadjustDate(target, point.date);\n\t\t}\n\t}", "function imageMoveByMouse() {\n\n $('.slide-l .js-slide-cell')\n .on('mousemove', function (e) {\n $(this).children('img').css({\n 'transform-origin': ((e.pageX - $(this).offset().left) / $(this).width()) * 100 + '% ' + ((e.pageY - $(this).offset().top) / $(this).height()) * 100 + '%'\n });\n });\n $('.slide-r .js-slide-cell')\n .on('mousemove', function (e) {\n $(this).children('img').css({\n 'transform-origin': ((e.pageX - $(this).offset().left) / $(this).width()) * 100 + '% ' + ((e.pageY - $(this).offset().top) / $(this).height()) * 100 + '%'\n });\n });\n}", "moveTool(e) {\n //find the cropper\n let cropper = this.state.cropper;\n //trigger the move tool\n cropper.setDragMode(\"move\");\n //reset active buttons\n this.clearActiveButtons();\n this.setActiveButton(\"moveTool\");\n }", "function mousemove() {\n if (isMouseDown) {\n draw();\n }\n}", "function mousemove(e) {\n\tif (!e) var e = event;\n\t\tstate.canvasX = e.pageX - state.canvas.offsetLeft;\n state.canvasY = e.pageY - state.canvas.offsetTop;\n state.context.strokeStyle = state.penColor;\n state.context.lineWidth = state.penWidth;\n if (isDrawing) {\n state.context.lineTo(state.canvasX, state.canvasY);\n state.context.stroke();\n console.log(isDrawing);\n }\n}", "mouseMoved() {\n const m = d3.mouse(this.baseGroup.node());\n const p = this.closestPoint(this.polarCurves.nodes(), m);\n // line.attr(\"x1\", p[0]).attr(\"y1\", p[1]).attr(\"x2\", m[0]).attr(\"y2\", m[1]);\n this.closestPointMarker.attr(\"cx\", p.x).attr(\"cy\", p.y);\n this.updateCurrentPoint(p);\n }", "function canvasMouseMove(e) {\n\tblockus.setMousePosition(getCursorPosition(e));\n}", "function onMouseMove(evt) {\n\t\t\t\tnativeEvt = evt.data.$;\n\n\t\t\t\t// This is how far the mouse is from the point the button was pressed.\n\n\t\t\t\tmoveDiffX = nativeEvt.screenX - startX;\n\t\t\t\tmoveDiffY = startY - nativeEvt.screenY;\n\n\t\t\t\t// Resize with NE, SE drag handles\n\n\t\t\t\tif (factorX == 1) {\n\t\t\t\t\tif (moveDiffX <= 0) {\n\t\t\t\t\t\tadjustToY();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadjustToX();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Resize with NW, SW drag handles\n\t\t\t\telse {\n\t\t\t\t\t\tif (moveDiffX <= 0) {\n\t\t\t\t\t\t\tadjustToX();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tadjustToY();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t// Don't update attributes if less than 10.\n\t\t\t\t// This is to prevent images to visually disappear.\n\n\t\t\t\tif (newWidth >= 15 && newHeight >= 15) {\n\t\t\t\t\timage.$.style.width = newWidth + 'px';\n\t\t\t\t\timage.$.style.height = widget.data.lock ? 'auto' : newHeight + 'px';\n\n\t\t\t\t\tupdateData = true;\n\t\t\t\t} else {\n\t\t\t\t\tupdateData = false;\n\t\t\t\t}\n\t\t\t}", "function overImage(imgUrl) {\n document.getElementById(\"div_zoom_image\").style.visibility = \"visible\";\n document.getElementById(\"img_zoom_image\").src = imgUrl;\n document.onmousemove = moveImage;\n}", "function mouseDragged () { \n // draw under certain conditions\n if (mouseX > ux && mouseY > uy && mouseX < ux + uw && mouseY < uy + uw) {\n console.log(mouseX)\n userPixels.fill(255); // draw white circles\n userPixels.stroke(255);\n userPixels.ellipse(mouseX, mouseY - uy, 8, 8);\n let img = userPixels.get();\n smaller.copy(img, 0, 0, uw, uw, 0, 0, smaller.width, smaller.height);\n }\n}", "mouseMove(evt, point) {\n this.setHover(this.topBlockAt(point));\n }", "function mousemove() {\r\n if (drawing_line && !should_drag) {\r\n var m = d3.mouse(svg.node());\r\n var x = Math.max(0, Math.min(width, m[0]));\r\n var y = Math.max(0, Math.min(height, m[1]));\r\n // debounce - only start drawing line if it gets a bit big\r\n var dx = selected_node.x - x;\r\n var dy = selected_node.y - y;\r\n if (Math.sqrt(dx * dx + dy * dy) > 10) {\r\n // draw a line\r\n if (!new_line) {\r\n new_line = linesg.append(\"line\").attr(\"class\", \"new_line\");\r\n }\r\n new_line.attr(\"x1\", function(d) { return selected_node.x; })\r\n .attr(\"y1\", function(d) { return selected_node.y; })\r\n .attr(\"x2\", function(d) { return x; })\r\n .attr(\"y2\", function(d) { return y; });\r\n }\r\n }\r\n update();\r\n}", "startdraw(ev) {\n this.is_drawing = true;\n var rect = this.canvas.getBoundingClientRect();\n this.ctx.beginPath();\n this.ctx.lineWidth = 5;\n this.ctx.lineCap = 'round';\n this.ctx.strokeStyle = 'red';\n var x = ev.pageX - rect.left;\n var y = ev.pageY - rect.top;\n this.ctx.moveTo(x, y);\n ev.preventDefault();\n }", "function whiteboard_mousedown() {\n\n // definir ponto inicial da régua no SVG\n if (scaling) {\n initialPoint.x = (d3.mouse(this)[0] - panZoom.getPan().x) / (panZoom.getZoom());\n initialPoint.y = (d3.mouse(this)[1] - panZoom.getPan().y) / (panZoom.getZoom());\n scale_line\n .attr('x1', initialPoint.x)\n .attr('x2', initialPoint.x)\n .attr('y1', initialPoint.y)\n .attr('y2', initialPoint.y)\n .classed('hidden', false);\n }\n}", "function centerCrop() {\n\t//48% simply crops better on my face\n\tif (z<48){\n\t\tz++;\n\t\troot.style.setProperty('--mouse-x', 100-z+\"%\");\n\t\t//document.getElementById('demoT').innerHTML = \"Mouse position once leave Div: \" + z;\n\t}\n\telse if (z>48){\n\t\tz--;\n\t\troot.style.setProperty('--mouse-x', 100-z+\"%\");\n\t\t//document.getElementById('demoT').innerHTML = \"Mouse position once leave Div: \" + z;\n\t}\n\t//Kills timer once centered\n\telse if (z==48){\n\t\tstopTime()\n\t}\t\n}", "mouseMove(event) {\n this.pmouse = this.mouse.clone();\n\n if (event.offsetX) {\n this.mouse.x = event.offsetX;\n this.mouse.y = event.offsetY;\n } else {\n var clientRect = this.container.getBoundingClientRect();\n this.mouse.x = event.pageX - Math.round(clientRect.left + window.pageXOffset);\n this.mouse.y = event.pageY - Math.round(clientRect.top + window.pageYOffset);\n }\n }", "mouseMove(event) {\n this.pmouse = this.mouse.clone();\n\n if (event.offsetX) {\n this.mouse.x = event.offsetX;\n this.mouse.y = event.offsetY;\n } else {\n var clientRect = this.container.getBoundingClientRect();\n this.mouse.x = event.pageX - Math.round(clientRect.left + window.pageXOffset);\n this.mouse.y = event.pageY - Math.round(clientRect.top + window.pageYOffset);\n }\n }", "function canvasMouseMove(event) {\r\n\tvar mouseX = event.pageX - canvas[0].offsetLeft;\r\n\tvar mouseY = event.pageY - canvas[0].offsetTop;\r\n\tif (mouseDown && anySelected && !resize) {\r\n\t\t// move shape\r\n\t\tmoveShape(mouseX, mouseY);\r\n\t} else if (mouseDown && !resize) {\r\n\t\t// add shape\r\n\t\taddShape(mouseX, mouseY);\r\n\t\tmouseDown = false;\r\n\t} else if (anySelected && resize && !resizeChange) {\r\n\t\t// resize shape\r\n\t\tvar shape = previousSelectedShape;\r\n\t\tif (shape.testHit(mouseX+10, mouseY+10) || shape.testHit(mouseX+10, mouseY-10) || shape.testHit(mouseX-10, mouseY+10) || shape.testHit(mouseX-10, mouseY-10)) {\r\n\t\t\tshape.update(shape.x1, shape.y1, mouseX, mouseY);\r\n\t\t\tdrawShapes();\r\n\t\t\tresizeChange = true;\r\n\t\t}\r\n\t} else if ((!anySelected && !resize) || resizeChange) {\r\n\t\t// update shape\r\n\t\tif (resizeChange){\r\n\t\t\tvar shape = previousSelectedShape;\r\n\t\t} else {\r\n\t\t\tvar shape = shapes[shapes.length-1];\r\n\t\t}\r\n\t\tif (shape) {\r\n\t\t\tshape.update(shape.x1, shape.y1, mouseX, mouseY);\r\n\t\t}\r\n\t}\r\n\tdrawShapes();\r\n}", "function myMove(e){\n if (isDrag){\n getMouse(e);\n mySel.x = mx - offsetx;\n mySel.y = my - offsety;\n // something is changing position so we better invalidate the canvas!\n canvas.style.cursor = 'move';\n\n updateInputs();\n\n invalidate();\n } else {\n myHover(e);\n }\n}", "function touchMoved() {\n strokeWeight(10);\n stroke(252, 74, 26);\n\n line(mouseX, mouseY, pmouseX, pmouseY);\n return false;\n}", "function whiteboard_mousemove() {\n\n if (d3.event.ctrlKey && mousedown_node && !draggingNode)\n draggingNode = true;\n\n // atualizar a posição da tooltip\n if (showing_tooltip)\n $('.info')\n .css('left', (mouse.x + 10) + 'px')\n .css('top', (mouse.y + 10) + 'px');\n\n // obter a posição do rato no SVG\n var px = (d3.mouse(this)[0] - panZoom.getPan().x) / (panZoom.getZoom());\n var py = (d3.mouse(this)[1] - panZoom.getPan().y) / (panZoom.getZoom());\n\n // atualizar a linha da ferramenta da escala\n if (scaling)\n scale_line\n .attr('x1', initialPoint.x)\n .attr('x2', px)\n .attr('y1', initialPoint.y)\n .attr('y2', py);\n\n // atualizar a linha de ligação de nós\n else if (mousedown_node)\n drag_line\n .attr('x1', mousedown_node.x + (side / 2))\n .attr('x2', px)\n .attr('y1', mousedown_node.y + (side / 2))\n .attr('y2', py);\n}", "handlemouseMove(e) {\n const rect = this.canvas.getBoundingClientRect();\n if (this.flag) {\n this.prevX = this.currX;\n this.prevY = this.currY;\n this.currX = e.clientX - rect.left;\n this.currY = e.clientY - rect.top;\n this.draw(this.template, this.ctx);\n }\n }", "function mousemove() {\n var x0 = x.invert(d3.mouse(this)[0]),\n i = bisectDate(data, x0, 1),\n d0 = data[i - 1],\n d1 = data[i],\n d = x0 - d0.date > d1.date - x0 ? d1 : d0;\n\n focus\n .select(\".lineHover\")\n .attr(\"transform\", \"translate(\" + x(d.date) + \",\" + height + \")\");\n\n focus\n .select(\".lineHoverDate\")\n .attr(\n \"transform\",\n \"translate(\" + x(d.date) + \",\" + (height + margin.bottom) + \")\"\n )\n .text(formatDate(d.date));\n\n focus\n .selectAll(\".hoverCircle\")\n .attr(\"cy\", (e) => y(d[e]))\n .attr(\"cx\", x(d.date));\n\n focus\n .selectAll(\".lineHoverText\")\n .attr(\"transform\", \"translate(\" + x(d.date) + \",\" + height / 2.5 + \")\")\n .text((e) => e + \" \" + formatValue(d[e]) + \"%\");\n\n x(d.date) > width - width / 4\n ? focus\n .selectAll(\"text.lineHoverText\")\n .attr(\"text-anchor\", \"end\")\n .attr(\"dx\", -10)\n : focus\n .selectAll(\"text.lineHoverText\")\n .attr(\"text-anchor\", \"start\")\n .attr(\"dx\", 10);\n\n //reorders Gantt bars depending on the mouse position\n reorderGanttBars(d.date);\n }", "function canvasMouseMove(event){\r\n var pos = mousePos(event);\r\n if (MOUSE_IS_DOWN && ((LAST_X !== pos[0]) || (LAST_Y !== pos[1]))){\r\n userMove(event, pos[0], pos[1]);\r\n LAST_X = pos[0];\r\n LAST_Y = pos[1];\r\n }\r\n }", "function move(e){\n // don't move anything until inital movement on 'mouseenter' has finished\n if( animated ) return;\n\n ratio = scrollWidth / containerWidth;\n stripePos = e.pageX - padding - posFromLeft; // the mouse X position, \"normalized\" to the carousel position\n\n if( stripePos < 0)\n stripePos = 0;\n\n pos = stripePos / (containerWidth - padding*2); // calculated position between 0 to 1\n // calculate the percentage of the mouse position within the carousel\n scrollPos = (scrollWidth - containerWidth ) * pos; \n\n el.scrollLeft = scrollPos;\n if( $indicator[0] && scrollPos < (scrollWidth - containerWidth) )\n $indicator[0].style.left = (scrollPos / scrollWidth ) * 100 + '%';\n\n // check if element has reached an edge\n prevMore = el.scrollLeft > 0;\n nextMore = el.scrollLeft < (scrollWidth - containerWidth);\n\n $carousel[prevMore ? \"addClass\" : \"removeClass\"]('left');\n $carousel[nextMore ? \"addClass\" : \"removeClass\"]('right');\n }", "function drawingLayerMouseMove (e) {\n // This function is fired when mouse cursor moves\n // over the drawing layer.\n var mousePosition = mouseposition(e, this);\n mouseStatus.currX = mousePosition.x;\n mouseStatus.currY = mousePosition.y;\n\n // Change a cursor according to the label type.\n // $(this).css('cursor', )\n if ('ribbon' in svl) {\n var cursorImagePaths = svl.misc.getLabelCursorImagePath();\n var labelType = svl.ribbon.getStatus('mode');\n if (labelType) {\n var cursorImagePath = cursorImagePaths[labelType].cursorImagePath;\n var cursorUrl = \"url(\" + cursorImagePath + \") 6 25, auto\";\n\n if (rightClickMenu && rightClickMenu.isAnyOpen()) {\n cursorUrl = 'default';\n }\n\n $(this).css('cursor', cursorUrl);\n }\n } else {\n throw self.className + ': Import the RibbonMenu.js and instantiate it!';\n }\n\n\n if (!status.drawing) {\n var ret = isOn(mouseStatus.currX, mouseStatus.currY);\n if (ret && ret.className === 'Path') {\n self.showLabelTag(status.currentLabel);\n ret.renderBoundingBox(ctx);\n } else {\n self.showLabelTag(undefined);\n }\n }\n self.clear();\n self.render2();\n mouseStatus.prevX = mouseposition(e, this).x;\n mouseStatus.prevY = mouseposition(e, this).y;\n }", "_strikeMouseMove() {\n for (let i = 0; i < this._mouseMoveCallbacks.length; i++) {\n let currentCallback = this._mouseMoveCallbacks[i][0];\n\n currentCallback(this, event);\n }\n\n for (let i = 0; i < this._mouseMoveCallbacks.length; i++) {\n if (this._mouseMoveCallbacks[i][1])\n this._mouseMoveCallbacks.splice(i--, 1);\n }\n }", "function onMouseMove(event) {\n moveAt(event.pageX, event.pageY);\n }", "moveAvatar(e) {\r\n let dragObj = this.dragObj;\r\n let avatar = dragObj.avatar;\r\n avatar.style.left = e.pageX - dragObj.shiftX + 'px';\r\n avatar.style.top = e.pageY - dragObj.shiftY + 'px';\r\n }", "function mousemove() {\n if(!mousedown_node) return;\n\n // update drag line\n drag_line.attr('d', 'M' + mousedown_node.x + ',' + mousedown_node.y + 'L' + d3.mouse(this)[0] + ',' + d3.mouse(this)[1]);\n\n /////////////////restart();\n }", "function dibujoMouseMove(evento)\n{\n \n if (estado == true)//paso2: como el estado es igual a true se ejecuta el bloque de codigo \n {\n dibujarLinea(color, xinic, yinic, evento.offsetX , evento.offsetY , trazo);//paso2: se ejecuta la funcion dibujarLinea\n }\n\n xinic = evento.offsetX;//paso2: al mover el mause asigna esa posicion en x \n yinic = evento.offsetY;//paso2: al mover el mause asigna esa posicion en y\n console.log(xinic+\"*-*\"+yinic);\n}", "mousemove_handler(e) {\n if (!this.mouseDown) { return true; }\n\n const local = this.getLocalCoords(this.mainCanvas, e);\n\n this.scratchLine(local.x, local.y, false);\n\n e.preventDefault();\n return false;\n }", "function onMouseMove(event) {\n\tmousePos = event.point;\n}", "function _onMouseMove(event) {\n $.mouse.x = Graphics.pageToCanvasX(event.pageX);\n $.mouse.y = Graphics.pageToCanvasY(event.pageY);\n }", "externalMouseMove() {\n this._strikeMouseMove();\n this._localPointer._mouseX = this.getPointer()._mouseX;\n this._localPointer._mouseY = this.getPointer()._mouseY;\n }", "function mouseMoved()\n{\n\t\n}", "function CanvasMouseup(action) {\n if (mouseMoved) {\n var x = action.offsetX / scrollOffset[2] + scrollOffset[0] - resizeOffset[0];\n var y = action.offsetY / scrollOffset[2] + scrollOffset[1] - resizeOffset[1];\n var diffX = x - mouseMovement[0];\n var diffY = y - mouseMovement[1];\n if (selectedSpots.length > 0) {\n // Update Spots' Locations\n for (var _i = 0, selectedSpots_2 = selectedSpots; _i < selectedSpots_2.length; _i++) {\n var spot = selectedSpots_2[_i];\n spot.X = spot.XRight += diffX;\n spot.Y = spot.YDown += diffY;\n }\n }\n else {\n // Update Pieces' Spots Locations\n for (var _a = 0, selectedPieces_2 = selectedPieces; _a < selectedPieces_2.length; _a++) {\n var piece = selectedPieces_2[_a];\n for (var _b = 0, _c = piece.Data; _b < _c.length; _b++) {\n var spot = _c[_b];\n spot.X = spot.XRight += diffX;\n spot.Y = spot.YDown += diffY;\n }\n }\n }\n Redraw();\n }\n mouseMovement = null;\n mouseMoved = false;\n}", "function drawRect() {\n changeCursor(\"crosshair\")\n coordinates = getCanvasMousePosition(canvas, event)\n if(coordinates.x > leftCorner.x && coordinates.y > leftCorner.y)\n {\n drawDragRect(canvas, event, leftCorner)\n }\n }", "function movePiece(mouseX, mouseY) {\n piece.x = mouseX - piece.w/2;\n if (piece.x <= 0)\n piece.x = 0;\n if (piece.x >= canvasWidth - piece.w)\n piece.x = canvasWidth - piece.w;\n }", "function moveDisplayImg(e) {\n let mouseXposition = e.clientX - 100;\n let mouseYposition = e.clientY;\n gsap.to(containerWrapperImg, { x: mouseXposition, y: mouseYposition });\n}", "function sketchpad_mouseMove(e) { \n // Update the mouse co-ordinates when moved\n getMousePos(e);\n\n // Draw a line if the mouse button is currently being pressed\n if (mouseDown==1) {\n drawLine(ctx, mouseX, mouseY);\n }\n}", "function preview(img, selection) { \n var scaleX = settings.cropwidth / (selection.width || 1); \n var scaleY = settings.cropheight / (selection.height || 1);\n\n canvas = document.getElementById(settings.canvasid);\n canvas.width = settings.cropwidth;\n canvas.height = settings.cropheight;\n context = canvas.getContext('2d');\n \n var imageObj = new Image();\n\n imageObj.onload = function() { \n // draw cropped image\n var sourceX = selection.x1;\n var sourceY = selection.y1;\n var sourceWidth = selection.width || 1;\n var sourceHeight = selection.height || 1;\n var destWidth = settings.cropwidth; \n var destHeight = settings.cropheight;\n var destX = 0;\n var destY = 0;\n\n context.drawImage(imageObj, sourceX, sourceY, sourceWidth, sourceHeight, destX, destY, destWidth, destHeight); \n };\n \n imageObj.src = img.src;\n\n }", "function mouseMoveCanvas() {\n\n if (mouseDownPos.down === false) return;\n\n var mouseCoords = d3.mouse(this);\n\n var newX = mouseCoords[0] - network.display.width / 2.0;\n var newY = mouseCoords[1] - network.display.height / 2.0;\n var oldX = mouseDownPos.x;\n var oldY = mouseDownPos.y;\n var oldRot = mouseDownPos.origRot;\n var oldAngle = mouseDownPos.angle;\n var newAngle = Math.atan2(newY, newX) * 180.0/Math.PI;\n var newRot = (newAngle - oldAngle + oldRot) % 360;\n\n mouseDownPos.newRot = newRot;\n\n parentGroup\n .attr(\"transform\", \"translate(\" + radius + \",\" + radius + \")\" + \n \"rotate(\" + newRot + \")\");\n }", "function CanvasMousemove(action) {\n if (mouseMovement != null) {\n var x = action.offsetX / scrollOffset[2] + scrollOffset[0] - resizeOffset[0];\n var y = action.offsetY / scrollOffset[2] + scrollOffset[1] - resizeOffset[1];\n if (!mouseMoved) {\n mouseMoved = x > mouseMovement[0] + DragPrecision || x < mouseMovement[0] - DragPrecision ||\n y > mouseMovement[1] + DragPrecision || y < mouseMovement[1] - DragPrecision;\n }\n if (mouseMoved) {\n var diffX = x - mouseMovement[0];\n var diffY = y - mouseMovement[1];\n Redraw();\n if (selectedSpots.length > 0) {\n // Draw Shadow Spots at New Location\n for (var _i = 0, selectedSpots_1 = selectedSpots; _i < selectedSpots_1.length; _i++) {\n var spot = selectedSpots_1[_i];\n DrawCross(ctx, spot.X + diffX, spot.Y + diffY, shadowShade);\n }\n }\n else {\n // Draw Shadow Pieces at New Location\n ctx.translate(diffX, diffY);\n for (var _a = 0, selectedPieces_1 = selectedPieces; _a < selectedPieces_1.length; _a++) {\n var piece = selectedPieces_1[_a];\n DrawShape(ctx, piece, [ConvertToHexi(shadowShade)]);\n }\n ctx.translate(-diffX, -diffY);\n }\n }\n }\n}", "function setupCropping () {\n\t\t\t\t\t\timageElement.on('load.areaSelect', function() {\n\t\t\t\t\t\t\tvar ratio = null,\n\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\twidth = imageElement.width(),\n\t\t\t\t\t\t\t\theight = imageElement.height();\n\t\t\t\t\t\t\tif(aspectRatio) {\n\t\t\t\t\t\t\t\tratio = (d = aspectRatio.split(/:/))[0] / d[1];\n\n\t\t\t\t\t\t\t\tif((height * ratio) > width) {\n\t\t\t\t\t\t\t\t\theight = width / ratio;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\twidth = height * ratio;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n \t\t\t\t\t\timgAreaSelect = imageElement.imgAreaSelect({\n\t \t\t\t\t\t\thandles:true,\n\t \t\t\t\t\t\tenable:true,\n\t \t\t\t\t\t\tshow:true,\n\t \t\t\t\t\t\tonSelectEnd: selectionEnd,\n\t \t\t\t\t\t\tparent: dialog,\n\t \t\t\t\t\t\tinstance: true,\n\t \t\t\t\t\t\taspectRatio: aspectRatio,\n\t \t\t\t\t\t\tpersistent: true,\n\t \t\t\t\t\t\tx1: 0,\n\t \t\t\t\t\t\ty1: 0,\n\t \t\t\t\t\t\tx2: width,\n\t \t\t\t\t\t\ty2: height\n\t \t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}", "function mouseReleased(){\n\t//if (mouseX >= canvasWidth/2 - tappy.width/2 && mouseX <= canvasWidth/2 + tappy.width/2 &&\n\t//\tmouseY >= canvasHeight/2 - tappy.height/2 && mouseY <= canvasHeight/2 + tappy.height/2){\n\t\ttappy.width = imageWidth;\n\t\ttappy.height = imageHeight;\n\t\ttappy.x -= 8; \n\t\ttappy.y -= 8;\n\t//}\n}", "function mouseMoveHandler(event){\n\t\t\tif(event.pageX == null && event.clientX != null){\n\t\t\t\tvar de = document.documentElement, b = document.body;\n\t\t\t\tlastMousePos.pageX = event.clientX + (de && de.scrollLeft || b.scrollLeft || 0);\n\t\t\t\tlastMousePos.pageY = event.clientY + (de && de.scrollTop || b.scrollTop || 0);\n\t\t\t}else{\n\t\t\t\tlastMousePos.pageX = event.pageX;\n\t\t\t\tlastMousePos.pageY = event.pageY;\n\t\t\t}\n\t\t\t\n\t\t\tvar offset = overlay.cumulativeOffset();\n\t\t\tvar pos = {\n\t\t\t\tx: xaxis.min + (event.pageX - offset.left - plotOffset.left) / hozScale,\n\t\t\t\ty: yaxis.max - (event.pageY - offset.top - plotOffset.top) / vertScale\n\t\t\t};\n\t\t\t\n\t\t\tif(options.mouse.track && selectionInterval == null){\t\t\t\t\n\t\t\t\thit(pos);\n\t\t\t}\n\t\t\t\n\t\t\ttarget.fire('flotr:mousemove', [event, pos]);\n\t\t}", "function onMouseMove(event) {\n mousePos = event.point;\n}", "function mouseDragged() {\n let x = floor(mouseX / cellSize);\n let y = floor(mouseY / cellSize);\n if (farmingAbility === 1 && crops >= 1 && grid[x][y].currentState === 0) {\n grid[x][y].currentState = 1;\n grid[x][y].whenPlanted = millis();\n crops--;\n } else if (farmingAbility === 2 && grid[x][y].currentState === 2) {\n grid[x][y].currentState = 0;\n crops += 2;\n }\n}", "function captureMouseMove(event) {\n\n\n if (isDrawingEdge) {\n\n \n let inputX = event.offsetX;\n let inputY = CANVAS_H - event.offsetY;\n\n\n //set the ready to draw edge flag upon mouse button lifted if on a dot\n let dragPos = insideDot(inputX, inputY);\n if (dragPos !== undefined) {\n mouseUpDrawEdge = true;\n finalDotPoint = dragPos;\n }\n\n\n drawGraphics.clearRect(0, 0, CANVAS_W, CANVAS_H);\n\n //the second draw canvas gets erased while the game canvas stays permanent, or else\n //redraws would happen every time\n drawGraphics.strokeStyle = \"#0B0B0B\";\n drawGraphics.beginPath();\n drawGraphics.moveTo(initialDotPoint[0], CANVAS_H - initialDotPoint[1]);\n drawGraphics.lineTo(inputX, CANVAS_H - inputY);\n drawGraphics.stroke();\n\n\n\n }\n\n}", "function onMouseMove(evt){\n if(evt.pageX > canvasMinX && evt.pageX < canvasMaxX){\n paddlex = Math.max(evt.pageX - canvasMinX - (paddlew/2), 0);\n paddlex = Math.min(WIDTH - paddlew, paddlex);\n }\n }", "function onMouseMove(event)\n{\n if (dragging)\n {\n var pos = getRelative(event);\n var deltaX = mouseDragStartX - pos.x;\n var deltaY = mouseDragStartY - pos.y;\n if (!isNaN(deltaX) && !isNaN(deltaY)) // check if mouse is inside div element\n {\n camRotationY += deltaX;\n camRotationX += deltaY;\n mouseDragStartX = pos.x;\n mouseDragStartY = pos.y;\n }\n }\n}", "function draw() {\n\n // Move the felt image down by increasing its y position\n feltTextureImageY += 1;\n\n // Display the felt image\n image(feltTextureImage,feltTextureImageX,feltTextureImageY);\n\n // Move the clown by moving it 1/10th of its current distance from the mouse\n\n // Calculate the distance in X and in Y\n var xDistance = mouseX - clownImageX;\n var yDistance = mouseY - clownImageY;\n // Add 1/10th of the x and y distance to the clown's current (x,y) location\n clownImageX = clownImageX + xDistance/10;\n clownImageY = clownImageY + yDistance/10;\n\n // Display the clown image\n image(clownImage,clownImageX,clownImageY);\n}", "function cropImage(evt) {\n var image = evt.target;\n var style = image.style;\n\n var parentWidth = image.parentElement.clientWidth;\n var parentHeight = image.parentElement.clientHeight;\n\n var childRatio = image.naturalWidth / image.naturalHeight;\n var parentRatio = parentWidth / parentHeight;\n\n if (childRatio > parentRatio) {\n style.width = 'auto';\n style.height = parentHeight + 'px';\n\n style.left = -(parentHeight * childRatio - parentWidth) / 2 + 'px';\n } else {\n style.width = parentWidth + 'px';\n style.height = 'auto';\n\n style.top = -(parentWidth / childRatio - parentHeight) / 2 + 'px';\n }\n}", "function cropImage(evt) {\n var image = evt.target;\n var style = image.style;\n\n var parentWidth = image.parentElement.clientWidth;\n var parentHeight = image.parentElement.clientHeight;\n\n var childRatio = image.naturalWidth / image.naturalHeight;\n var parentRatio = parentWidth / parentHeight;\n\n if (childRatio > parentRatio) {\n style.width = 'auto';\n style.height = parentHeight + 'px';\n\n style.left = -(parentHeight * childRatio - parentWidth) / 2 + 'px';\n } else {\n style.width = parentWidth + 'px';\n style.height = 'auto';\n\n style.top = -(parentWidth / childRatio - parentHeight) / 2 + 'px';\n }\n}", "mouseDrag(prev, pt) {}", "mouseDrag(prev, pt) {}", "function mouseMove(e) {\n if (drag) {\n rect.w = (e.pageX - this.offsetLeft) - rect.startX;\n rect.h = (e.pageY - this.offsetTop) - rect.startY;\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n draw();\n }\n}", "function mouseover() {\r\n\t// if the piece is movable, give a class name \"highlight\"\r\n\tif(movable(this)) {\r\n\t\tthis.className = \"highlight\";\r\n\t\t// if not, remove the class name \"highlight\"\r\n\t\t} else {\r\n\t\tthis.removeClassName(\"highlight\");\r\n\t}\r\n}", "function moveSelect(e)\n{\n\tif (selectionStarted)\n\t{\n\t\tif (e.offsetX || e.offsetX == 0) \n\t\t{\n\t\t\tselectStopX = e.offsetX;\n\t\t\tselectStopY = e.offsetY;\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tselectStopX = e.layerX;\n\t\t\tselectStopY = e.layerY;\n\t\t}\n\t\tcanvas.width = canvas.width; /* clear canvas */\n\t\tctx.putImageData(imageData, 0, 0); /* put fractal on the canvas */\n\t\tif (selectStartX != selectStopX && selectStartY != selectStopY)\n\t\t{\n\t\t\t/* make sure that selection area has the same ratio as original area */\n\t\t\tif (width/height < Math.abs(selectStartX-selectStopX)/Math.abs(selectStartY-selectStopY))\n\t\t\t{\n\t\t\t\tselectStopY = selectStartY+sgn(selectStopY-selectStartY)*height*Math.abs(selectStartX-selectStopX)/width;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tselectStopX = selectStartX+sgn(selectStopX-selectStartX)*width*Math.abs(selectStartY-selectStopY)/height;\n\t\t\t}\n\t\t\t/* put select rectangle on the canvas */\n\t\t\tctx.fillStyle = 'rgba(100,200,300,0.5)';\n\t\t\tctx.fillRect(Math.min(selectStartX, selectStopX), Math.min(selectStartY, selectStopY), Math.abs(selectStartX-selectStopX), Math.abs(selectStartY-selectStopY));\n\t\t}\n\t}\n}", "function myMove(e){\n\n\t\tvar element = e.target;\n\t\tvar canvasObject = canvases[element.getAttribute(\"parent\")]; //allCanvases[parseInt(element.getAttribute(\"canvpos\"))];\n\n\t\tif(timeout == null){\n\t\t\ttimeout = setInterval(function(){myHover(canvasObject)}, 300);\n\t\t}\t\t\n\n\n\t if (isDrag) {\n\t getMouse(e);\n\t \n\t mySel.x = mx - offsetx;\n\t mySel.y = my - offsety; \n\t \n\t // something is changing position so we better invalidate the canvas!\n\t invalidate(canvasObject);\n\t } else if (isResizeDrag) {\n\t // time ro resize!\n\t var oldx = mySel.x;\n\t var oldy = mySel.y;\n\t \n\t // 0 1 2\n\t // 3 4\n\t // 5 6 7\n\t switch (expectResize) {\n\t case 0:\n\t mySel.x = mx;\n\t mySel.y = my;\n\t mySel.w += oldx - mx;\n\t mySel.h += oldy - my;\n\t break;\n\t case 1:\n\t mySel.y = my;\n\t mySel.h += oldy - my;\n\t break;\n\t case 2:\n\t mySel.y = my;\n\t mySel.w = mx - oldx;\n\t mySel.h += oldy - my;\n\t break;\n\t case 3:\n\t mySel.x = mx;\n\t mySel.w += oldx - mx;\n\t break;\n\t case 4:\n\t mySel.w = mx - oldx;\n\t break;\n\t case 5:\n\t mySel.x = mx;\n\t mySel.w += oldx - mx;\n\t mySel.h = my - oldy;\n\t break;\n\t case 6:\n\t mySel.h = my - oldy;\n\t break;\n\t case 7:\n\t mySel.w = mx - oldx;\n\t mySel.h = my - oldy;\n\t break;\n\t }\n\t \n\t invalidate(canvasObject);\n\t }\n\t \n\t getMouse(e);\n\t // if there's a selection see if we grabbed one of the selection handles\n\t if (mySel !== null && !isResizeDrag) {\n\t for (var i = 0; i < 8; i++) {\n\t // 0 1 2\n\t // 3 4\n\t // 5 6 7\n\t \n\t var cur = selectionHandles[i];\n\t \n\t // we dont need to use the ghost context because\n\t // selection handles will always be rectangles\n\t if (mx >= cur.x && mx <= cur.x + mySelBoxSize &&\n\t my >= cur.y && my <= cur.y + mySelBoxSize) {\n\t // we found one!\n\t expectResize = i;\n\t invalidate(canvasObject);\n\t \n\t switch (i) {\n\t case 0:\n\t this.style.cursor='nw-resize';\n\t break;\n\t case 1:\n\t this.style.cursor='n-resize';\n\t break;\n\t case 2:\n\t this.style.cursor='ne-resize';\n\t break;\n\t case 3:\n\t this.style.cursor='w-resize';\n\t break;\n\t case 4:\n\t this.style.cursor='e-resize';\n\t break;\n\t case 5:\n\t this.style.cursor='sw-resize';\n\t break;\n\t case 6:\n\t this.style.cursor='s-resize';\n\t break;\n\t case 7:\n\t this.style.cursor='se-resize';\n\t break;\n\t }\n\t return;\n\t }\n\t \n\t }\n\t // not over a selection box, return to normal\n\t isResizeDrag = false;\n\t expectResize = -1;\n\t this.style.cursor='auto';\n\t }\n\t \n\t}", "mouseMove(prev, pt) {\n this.selected = -1;\n }", "function moveAndClip(ctx, x, y, size, color) {\n ctx.save();\n ctx.translate(x, y);\n ctx.scale(ZOOM, ZOOM);\n ctx.beginPath();\n ctx.rect(-size/2 - 0.5, -size/2 - 0.5, size + 1, size + 1);\n ctx.fillStyle = color;\n ctx.closePath();\n ctx.fill();\n ctx.clip();\n }", "previewImage() {\n this._qs(\".main-image\").addEventListener(\"mousemove\", () => {\n this._qs(\".preview-image-container\").style.display = \"flex\";\n this._qs(\".preview-image\").src = this._qs(\".main-image\").src;\n });\n\n this._qs(\".main-image\").addEventListener(\"mouseout\", () => {\n this._qs(\".preview-image-container\").style.display = \"none\";\n });\n }", "function moveCandyByDragging(e){\n\tvar x = e.pageX - mouseDownCoordinates.left - fromTopLeftX;\n\tvar y = e.pageY - mouseDownCoordinates.top - fromTopLeftY;\n\tcurrentlyDragging.style.left = x + 'px';\n\tcurrentlyDragging.style.top = y + 'px';\n\tcurrentlyDragging.style.height = sizeOfCandy + 'px';\n\tcurrentlyDragging.style.width = sizeOfCandy + 'px';\n}", "function viewControlLayerMouseMove (e) {\n mouseStatus.currX = mouseposition(e, this).x;\n mouseStatus.currY = mouseposition(e, this).y;\n\n //\n // Show a link and fade it out\n if (!status.disableWalking) {\n showLinks(2000);\n if (!mouseStatus.isLeftDown) {\n try {\n if (!svl.keyboard.isShiftDown()) {\n setViewControlLayerCursor('OpenHand');\n // $divViewControlLayer.css(\"cursor\", \"url(public/img/cursors/openhand.cur) 4 4, move\");\n } else {\n setViewControlLayerCursor('ZoomOut');\n }\n } catch (e) {\n console.error(e);\n }\n } else {\n\n }\n } else {\n setViewControlLayerCursor('default');\n // $divViewControlLayer.css(\"cursor\", \"default\");\n }\n\n if (mouseStatus.isLeftDown &&\n status.disableWalking === false) {\n //\n // If a mouse is being dragged on the control layer, move the sv image.\n var dx = mouseStatus.currX - mouseStatus.prevX;\n var dy = mouseStatus.currY - mouseStatus.prevY;\n var pov = svl.getPOV();\n var zoom = pov.zoom;\n var zoomLevel = svl.zoomFactor[zoom];\n\n dx = dx / (2 * zoomLevel);\n dy = dy / (2 * zoomLevel);\n\n //\n // It feels the panning is a little bit slow, so speed it up by 50%.\n dx *= 1.5;\n dy *= 1.5;\n\n updatePov(dx, dy);\n }\n\n //\n // Show label delete menu\n if ('canvas' in svl && svl.canvas) {\n var item = svl.canvas.isOn(mouseStatus.currX, mouseStatus.currY);\n if (item && item.className === \"Point\") {\n var path = item.belongsTo();\n var selectedLabel = path.belongsTo();\n\n svl.canvas.setCurrentLabel(selectedLabel);\n svl.canvas.showLabelTag(selectedLabel);\n svl.canvas.clear();\n svl.canvas.render2();\n } else if (item && item.className === \"Label\") {\n var selectedLabel = item;\n svl.canvas.setCurrentLabel(selectedLabel);\n svl.canvas.showLabelTag(selectedLabel);\n } else if (item && item.className === \"Path\") {\n var label = item.belongsTo();\n svl.canvas.clear();\n svl.canvas.render2();\n svl.canvas.showLabelTag(label);\n }\n else {\n // canvas.hideDeleteLabel();\n svl.canvas.showLabelTag(undefined);\n svl.canvas.setCurrentLabel(undefined);\n }\n }\n\n mouseStatus.prevX = mouseposition(e, this).x;\n mouseStatus.prevY = mouseposition(e, this).y;\n }", "function draw() {\n background(0); // Set the background to black\n\n \n var prev = 0;\n\n\n fill(102);\n ellipse(width/2, height/2, 15, 15);\n\n line(width/2, height/2, mouseX, mouseY);\n var normXDiff = 2 * mouseX/width - 1;\n var normYDiff = 2 * mouseY/height - 1;\n\n\n // we obtain values from -1 to 1\n // transX += normXDiff * width/10;\n\n if (move) {\n zoom += normXDiff * speed;\n posY += normYDiff * speed / zoom;\n }\n\n posY = max(posY, 0);\n posY = min(posY, 1);\n\n zoom = max(0.7, zoom);\n\n for (var i = 0; i < p_s.length; i++) {\n var p = p_s[i];\n var size = p * height;\n\n var y = prev * height;\n\n y *= zoom;\n\n if (zoom >= 1) {\n y -= posY * height * (zoom-1);\n } else\n y -= 0.5 * height * (zoom-1);\n size *= zoom;\n fill(102);\n var x = width-size;\n rect(x, y, size, size);\n prev += p;\n }\n}", "function onMouseMove(event) {\n\tmousePosition=event;\n}", "function cropImage(image) {\n \n let draw = new DrawContext()\n let rect = new Rect(crop.x,crop.y,crop.w,crop.h)\n draw.size = new Size(rect.width, rect.height)\n \n draw.drawImageAtPoint(image,new Point(-rect.x, -rect.y)) \n return draw.getImage()\n}", "function mouseOverWhich(x, pic, picX, set1, set2, set3){\n push();\n rectMode(CENTER);\n rect(x, height/2+height/6, width/10, height);\n noTint();\n image(pic, picX, height/2, width/13, width/13);\n setText(set1, set2, set3);\n pop();\n\n}", "function mouse_move_handler(e) {\n //Saves the previous coordinates\n mouse.px = mouse.x;\n mouse.py = mouse.y;\n\n //Sets the new coordinates\n mouse.x = e.offsetX || e.layerX;\n mouse.y = e.offsetY || e.layerY;\n }", "mouseOn() {\n if (mouseX > this.x && mouseX < this.x + this.w\n && mouseY > this.y && mouseY < this.y + this.h) {\n this.mouseover = true;\n this.stroke = 3;\n }\n else {\n this.mouseover = false;\n this.stroke = 2;\n }\n }", "rollover(px, py) {\n\t\tthis.over = px > this.x && px < this.x + this.width\n\t}" ]
[ "0.64896244", "0.6479174", "0.62135065", "0.62135065", "0.61003375", "0.6051681", "0.60460746", "0.6024008", "0.602197", "0.5991036", "0.5979421", "0.59721714", "0.59677637", "0.5956943", "0.59469306", "0.59291136", "0.5890521", "0.5888201", "0.5881932", "0.57974154", "0.57762223", "0.5774054", "0.57597595", "0.5753183", "0.5733933", "0.573359", "0.5730216", "0.5725308", "0.5721847", "0.5716805", "0.5713242", "0.5703477", "0.56908447", "0.5685881", "0.5680755", "0.5659926", "0.5652965", "0.56520075", "0.5649419", "0.56490827", "0.563046", "0.562696", "0.56177706", "0.56177706", "0.5617031", "0.5609054", "0.5608619", "0.56052417", "0.56032515", "0.5598584", "0.55984974", "0.5597931", "0.55975276", "0.5597366", "0.5597331", "0.55950433", "0.5592597", "0.55924594", "0.55906665", "0.5584227", "0.55667937", "0.55616647", "0.556165", "0.5561178", "0.55606383", "0.5559891", "0.5555385", "0.5550841", "0.55430174", "0.5539683", "0.55377257", "0.55315644", "0.5513454", "0.5502654", "0.550255", "0.5500551", "0.5499499", "0.54947966", "0.54944056", "0.5492995", "0.54916584", "0.54916584", "0.54904646", "0.54904646", "0.54770684", "0.5475676", "0.5472918", "0.5471564", "0.5471204", "0.54605347", "0.5459436", "0.5457076", "0.54569894", "0.5454575", "0.54485387", "0.54464585", "0.54398996", "0.5436517", "0.54317486", "0.54290944" ]
0.63598144
2
Once mouse is not over the image, auto center the crop
function centerCrop() { //48% simply crops better on my face if (z<48){ z++; root.style.setProperty('--mouse-x', 100-z+"%"); //document.getElementById('demoT').innerHTML = "Mouse position once leave Div: " + z; } else if (z>48){ z--; root.style.setProperty('--mouse-x', 100-z+"%"); //document.getElementById('demoT').innerHTML = "Mouse position once leave Div: " + z; } //Kills timer once centered else if (z==48){ stopTime() } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cropImage(evt) {\n var image = evt.target;\n var style = image.style;\n\n var parentWidth = image.parentElement.clientWidth;\n var parentHeight = image.parentElement.clientHeight;\n\n var childRatio = image.naturalWidth / image.naturalHeight;\n var parentRatio = parentWidth / parentHeight;\n\n if (childRatio > parentRatio) {\n style.width = 'auto';\n style.height = parentHeight + 'px';\n\n style.left = -(parentHeight * childRatio - parentWidth) / 2 + 'px';\n } else {\n style.width = parentWidth + 'px';\n style.height = 'auto';\n\n style.top = -(parentWidth / childRatio - parentHeight) / 2 + 'px';\n }\n}", "function cropImage(evt) {\n var image = evt.target;\n var style = image.style;\n\n var parentWidth = image.parentElement.clientWidth;\n var parentHeight = image.parentElement.clientHeight;\n\n var childRatio = image.naturalWidth / image.naturalHeight;\n var parentRatio = parentWidth / parentHeight;\n\n if (childRatio > parentRatio) {\n style.width = 'auto';\n style.height = parentHeight + 'px';\n\n style.left = -(parentHeight * childRatio - parentWidth) / 2 + 'px';\n } else {\n style.width = parentWidth + 'px';\n style.height = 'auto';\n\n style.top = -(parentWidth / childRatio - parentHeight) / 2 + 'px';\n }\n}", "function _onMouseMove(e) {\n if (this.activeEl) {\n this.activeEl.style.transform = 'translate(0, 0)';\n let parent = document.querySelector('.picture-crop-area'),\n parentX = parent.getBoundingClientRect().left,\n parentY = parent.getBoundingClientRect().top,\n maxRightCoord = parent.offsetWidth - this.activeEl.offsetWidth,\n maxBottomCoord = parent.offsetHeight - this.activeEl.offsetHeight;\n\n let leftCoord = e.clientX - this._offsetX - parentX,\n topCoord = e.clientY - this._offsetY - parentY;\n\n if (leftCoord <= 0) {\n leftCoord = 0;\n }\n\n if (topCoord <= 0) {\n topCoord = 0;\n }\n\n if (leftCoord >= maxRightCoord) {\n leftCoord = maxRightCoord;\n }\n\n if (topCoord >= maxBottomCoord) {\n topCoord = maxBottomCoord;\n }\n\n this.activeEl.style.left = leftCoord + 'px';\n this.activeEl.style.top = topCoord + 'px';\n }\n}", "function _center_image(image){\r\n\t\t$this = image;\r\n\t\t\r\n \tif(opts.horizontalAlign == 'center'){\r\n\t \tvar pageWidth = $(window).width() - opts.horizontalOffset;\r\n\t\t\tvar newWidth = -1*($this.width() - pageWidth)/2;\r\n \t\t$(image).css({'left':newWidth});\r\n \t}\r\n\t\t\r\n\t\tif(opts.verticalAlign == 'center'){\r\n\t\t\tvar pageHeight = $(window).height() - opts.verticalOffset;\r\n\t\t\tvar newHeight = -1*($this.height() - pageHeight)/2;\r\n\t\t\t$(image).css({'top':newHeight});\r\n \t}\r\n\t}", "centerSelected(event) {\n\t\tlet element = document.querySelector('.slide img#active')\n\t\tlet scrollMax = this.slider.scrollWidth;\n\t\tlet offsetLeft = element.offsetLeft - this.slider.offsetLeft;\n\t\tlet centerView = this.slider.offsetWidth / 2;\n\t\tlet width = element.getBoundingClientRect().width;\n\t\tlet offset = offsetLeft - centerView + width / 2;\n\t\toffset = (offset <= 0) ? 0 : (offset >= scrollMax) ? scrollMax : offset\n\t\tthis.slider.scrollLeft = offset;\n\t\tthis.scrollOffset = offset;\n\t\tconsole.log('setting ', offset)\n\n\t}", "function mouseMove(event) {\n\t//mouse x position in percentage\n\tvar x = (event.clientX / innerWidth)*100;\n\t//Whole numbers\n\tz=~~x;\n\t\n\t//Set value for HTML. 100-z mirrors the movement.\n\troot.style.setProperty('--mouse-x', 100-z+\"%\");\n\t\n\t//Test Values\n\t//document.getElementById('demoT').innerHTML = \"Mouse position once leave Div: \" + z;\n\t\n\t//Kills the centerCrop() while mouse is over the img\n\tstopTime();\n}", "function setupCropping () {\n\t\t\t\t\t\timageElement.on('load.areaSelect', function() {\n\t\t\t\t\t\t\tvar ratio = null,\n\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\twidth = imageElement.width(),\n\t\t\t\t\t\t\t\theight = imageElement.height();\n\t\t\t\t\t\t\tif(aspectRatio) {\n\t\t\t\t\t\t\t\tratio = (d = aspectRatio.split(/:/))[0] / d[1];\n\n\t\t\t\t\t\t\t\tif((height * ratio) > width) {\n\t\t\t\t\t\t\t\t\theight = width / ratio;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\twidth = height * ratio;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n \t\t\t\t\t\timgAreaSelect = imageElement.imgAreaSelect({\n\t \t\t\t\t\t\thandles:true,\n\t \t\t\t\t\t\tenable:true,\n\t \t\t\t\t\t\tshow:true,\n\t \t\t\t\t\t\tonSelectEnd: selectionEnd,\n\t \t\t\t\t\t\tparent: dialog,\n\t \t\t\t\t\t\tinstance: true,\n\t \t\t\t\t\t\taspectRatio: aspectRatio,\n\t \t\t\t\t\t\tpersistent: true,\n\t \t\t\t\t\t\tx1: 0,\n\t \t\t\t\t\t\ty1: 0,\n\t \t\t\t\t\t\tx2: width,\n\t \t\t\t\t\t\ty2: height\n\t \t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}", "function preview(img, selection) { \n var scaleX = settings.cropwidth / (selection.width || 1); \n var scaleY = settings.cropheight / (selection.height || 1);\n\n canvas = document.getElementById(settings.canvasid);\n canvas.width = settings.cropwidth;\n canvas.height = settings.cropheight;\n context = canvas.getContext('2d');\n \n var imageObj = new Image();\n\n imageObj.onload = function() { \n // draw cropped image\n var sourceX = selection.x1;\n var sourceY = selection.y1;\n var sourceWidth = selection.width || 1;\n var sourceHeight = selection.height || 1;\n var destWidth = settings.cropwidth; \n var destHeight = settings.cropheight;\n var destX = 0;\n var destY = 0;\n\n context.drawImage(imageObj, sourceX, sourceY, sourceWidth, sourceHeight, destX, destY, destWidth, destHeight); \n };\n \n imageObj.src = img.src;\n\n }", "function image_clipping(){\n\tvar top \t= (man_settings.man_cropper.offsetTop<=0) ? (-1*man_settings.man_crop_cliped_img.offsetTop) : (man_settings.man_cropper.offsetTop+(-1*man_settings.man_crop_cliped_img.offsetTop)),\n\t\tleft \t= (man_settings.man_cropper.offsetLeft<=0) ? (-1*man_settings.man_crop_cliped_img.offsetLeft) : (man_settings.man_cropper.offsetLeft+(-1*man_settings.man_crop_cliped_img.offsetLeft)),\n\t\twidth \t= (man_settings.man_cropper.offsetWidth+left),\n\t\theight \t= (man_settings.man_cropper.offsetHeight+top);\n\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\n\t/*left boundary set start*/\n\tif(man_settings.man_cropper.offsetLeft){\n\t\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\t}\n\t/*left boundary set end*/\n\n\t/*top boundary set start*/\n\tif(man_settings.man_cropper.offsetTop){\n\t\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\t}\n\t/*top boundary set end*/\n\n\t/*bottom boundary set start*/\n\tif((height+man_settings.man_crop_cliped_img.offsetTop)>=man_settings.man_crop_box.offsetHeight){\n\t\theight = (man_settings.man_crop_box.offsetHeight-man_settings.man_crop_cliped_img.offsetTop);\n\t\ttop = (height-man_settings.man_cropper.offsetHeight);\n\t\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\t}\n\t/*bottom boundary set end*/\n\n\t/*right boundary set start*/\n\tif((width+man_settings.man_crop_cliped_img.offsetLeft)>=man_settings.man_crop_box.offsetWidth){\n\t\twidth = (man_settings.man_crop_box.offsetWidth-man_settings.man_crop_cliped_img.offsetLeft);\n\t\tleft = (width-man_settings.man_cropper.offsetWidth);\n\t\tman_settings.man_crop_cliped_img.style.cssText = `clip: rect(${top}px, ${width}px, ${height}px, ${left}px)`;\n\t}\n\t/*right boundary set end*/\n}", "function centerImage() {\n var curnt = $(\".review_large_img img\");\n\n /*The content size*/\n var content_height = 530;\n var content_width = 994;\n\n /*The new image size*/\n var new_height = content_height;\n var new_width = content_width;\n\n /*The real image size*/\n var real_height = $(\".oldReviewsImg a.active\").attr('data-height');\n var real_width = $(\".oldReviewsImg a.active\").attr('data-width');\n\n /*The ratio*/\n var scale_width = new_width / real_width;\n var scale_height = new_height / real_height;\n\n\n if (scale_width < scale_height) {\n\tnew_width = real_width * scale_width;\n\tnew_height = real_height * scale_width;\n } else {\n\tnew_width = real_width * scale_height;\n\tnew_height = real_height * scale_height;\n }\n\n new_width = Math.round(new_width);\n new_height = Math.round(new_height);\n\n var left = (content_width - new_width) / 2;\n var top = (content_height - new_height) / 2;\n\n top = Math.round(top);\n left = Math.round(left);\n\n var new_style = {\n\t'top': top,\n\t//'left':left,\n\t'width': new_width,\n\t'height': new_height\n };\n curnt.css(new_style);\n// $style = \"width: {$new_width}px; height: {$new_height}px;\";\n}", "function mouseClicked() {\n if ((mouseX >= 0 & mouseX <= width) & (mouseY >= 0 & mouseY <= height)) {\n master.origin = [mouseX - 5, mouseY - 5];\n }\n}", "function handleSelection(event) {\n calculateImageScale();\n var cH = $('#crosshair-h'), cV = $('#crosshair-v');\n var position = globals.image.offset();\n if (event.pageX > position.left &&\n event.pageX < position.left + globals.image.width() &&\n event.pageY > position.top &&\n event.pageY < position.top + globals.image.height()) {\n cH.show();\n cV.show();\n gMousepos.show();\n\n cH.css('top', event.pageY + 1);\n cV.css('left', event.pageX + 1);\n cV.css('height', globals.image.height() - 1);\n cV.css('margin-top', position.top);\n cH.css('width', globals.image.width() - 1);\n cH.css('margin-left', position.left);\n\n gMousepos.css({\n top: (event.pageY) + 'px',\n left: (event.pageX) + 'px'\n }, 800);\n gMousepos.text(\n '(' + Math.round((event.pageX - position.left) * globals.imageScaleWidth) + ', ' +\n Math.round((event.pageY - position.top) * globals.imageScaleHeight) + ')');\n event.stopPropagation();\n }\n else{\n cH.hide();\n cV.hide();\n gMousepos.hide();\n }\n tool.handleMousemove(event);\n }", "function centerCurrentImage(target) {\n setTimeout(function() {\n var offset = (window.innerWidth - target.width()) / 2;\n var reset = target.parent().parent().scrollLeft() + target.position().left - offset;\n target.parent().parent().animate({ scrollLeft: reset });\n }, 310);\n }", "function iniCropper() {\n var $image = $('.image'),\n image = $image[0];\n var cropper = new Cropper(image, {\n dragMode: 'none',\n aspectRatio: 1,\n autoCropArea: 0.5,\n restore: false,\n viewMode: 1,\n guides: false,\n center: true,\n highlight: false,\n cropBoxMovable: true,\n cropBoxResizable: false,\n mouseWheelZoom:false,\n toggleDragModeOnDblclick: false,\n zoomable:true,\n // ready: function () {\n // croppable = true;\n // }\n });\n }", "previewImage() {\n this._qs(\".main-image\").addEventListener(\"mousemove\", () => {\n this._qs(\".preview-image-container\").style.display = \"flex\";\n this._qs(\".preview-image\").src = this._qs(\".main-image\").src;\n });\n\n this._qs(\".main-image\").addEventListener(\"mouseout\", () => {\n this._qs(\".preview-image-container\").style.display = \"none\";\n });\n }", "function centerCropAndResize(img) {\n return tfjsCore.tidy(function () {\n var _a = img.shape.slice(0, 2),\n height = _a[0],\n width = _a[1];\n var top = 0;\n var left = 0;\n if (height > width) {\n top = (height - width) / 2;\n } else {\n left = (width - height) / 2;\n }\n var size = Math.min(width, height);\n var boxes = [\n [\n top / height,\n left / width,\n (top + size) / height,\n (left + size) / width,\n ],\n ];\n var boxIndices = [0];\n return tfjsCore.image.cropAndResize(\n img.toFloat().expandDims(),\n boxes,\n boxIndices,\n IMG_SIZE\n );\n });\n }", "function scrollToCenter(){\n\t\t\t\t\tvar pw = $zoomContain.width();\n\t\t\t\t\tvar ph = $zoomContain.height();\n\t\t\t\t\tvar w = targetImg.offsetWidth;\n\t\t\t\t\tvar h = targetImg.offsetHeight;\n\t\t\t\t\t$zoomContain[ 0 ].scrollLeft = ( w / 2 ) - ( pw / 2 );\n\t\t\t\t\t$zoomContain[ 0 ].scrollTop = ( h / 2 ) - ( ph / 2 );\n\t\t\t\t}", "centerImage(event) {\n if (event) event.preventDefault();\n\n let canvasHeight, canvasRatio, canvasWidth, imageHeight, imageRatio, imageWidth, pos, scale;\n\n canvasWidth = this.props.width;\n canvasHeight = this.props.height;\n canvasRatio = canvasWidth / canvasHeight;\n imageWidth = this.state.element.width;\n imageHeight = this.state.element.height;\n imageRatio = imageWidth / imageHeight;\n scale = this.state.scale;\n\n if (canvasRatio > imageRatio && imageWidth > canvasWidth) {\n scale = canvasWidth / imageWidth;\n }\n\n if (imageRatio > canvasRatio && imageHeight > canvasHeight) {\n scale = canvasHeight / imageHeight;\n }\n\n if (scale) {\n this.setState({\n scale: scale\n });\n }\n\n pos = {\n x: (canvasWidth - imageWidth * scale) / 2,\n y: (canvasHeight - imageHeight * scale) / 2\n };\n\n this.setState({\n size: {\n width: imageWidth,\n height: imageHeight\n },\n pos: pos\n });\n }", "function mouseReleased(){\n while(myCenter.size > center_size){\n myCenter.size -= 1;\n }\n}", "pintar() {\n\n imageMode(CENTER);\n\n if (!this.overBox) {\n image(circleDavid, this.posx, this.posy);\n\n } else {\n\n image(DSmallCircle, this.posx, this.posy);\n }\n\n }", "function displayMouse() {\n imageMode(CENTER);\n image(mouse.img, mouse.x, mouse.y, mouse.size);\n}", "show_initial_crop() {\n let wdt = this.config[\"image_width\"];\n let hgt = this.config[\"image_height\"];\n let lft_cntr = 0;\n let top_cntr = 0;\n let initcrp = this.config[\"initial_crop\"];\n if (initcrp != null) {\n if (\n \"width\" in initcrp && \n \"height\" in initcrp &&\n \"left\" in initcrp &&\n \"top\" in initcrp\n ) {\n wdt = initcrp[\"width\"];\n hgt = initcrp[\"height\"];\n lft_cntr = initcrp[\"left\"] + initcrp[\"width\"]/2;\n top_cntr = initcrp[\"top\"] + initcrp[\"height\"]/2;\n }\n else {\n this.raise_error(`Initial crop must contain properties \"width\", \"height\", \"left\", and \"top\". Ignoring.`, ULabel.elvl_info);\n }\n }\n this.state[\"zoom_val\"] = Math.min(this.get_viewport_height_ratio(hgt), this.get_viewport_width_ratio(wdt));\n this.rezoom(lft_cntr, top_cntr, true);\n return;\n\t}", "function crop() {\n\n initJcrop();\n document.getElementById('canvasCrop').style.background = \"white\";\n document.getElementById('myCanvas').style.display = \"none\";\n document.getElementById('cut').style.display = \"inline\";\n document.getElementById('release').style.display = \"inline\";\n document.getElementById(\"buttonZoomin\").disabled = true;\n document.getElementById(\"buttonZoomout\").disabled = true;\n document.getElementById(\"buttonCrop\").disabled = true;\n //var newCanvas = document.createElement('canvas');\n $('#canvasCrop').Jcrop({\n setSelect: [ 60, 70, 540, 330 ],\n onSelect: function(c) {\n a3 = c.w;\n a4 = c.h;\n }\n });\n $('#canvasCrop').Jcrop({\n onChange: function(c) {\n a1 = c.x;\n a2 = c.y;\n a3 = c.w;\n a4 = c.h;\n }\n });\n\n theCanvasCrop2 = document.getElementById(\"canvasCrop\");\n ctxcrop= theCanvasCrop2.getContext(\"2d\");\n ctxcrop.drawImage(theCanvas,0,0);\n}", "function mouseClicked(){\n if(current_img == null) current_img = flowers_img;\n if(mouseX>=0 && mouseX<width && mouseY>=0 && mouseY<height)\n image(current_img, mouseX - 37, mouseY - 50, 75, 100);\n}", "function imageMoveByMouse() {\n\n $('.slide-l .js-slide-cell')\n .on('mousemove', function (e) {\n $(this).children('img').css({\n 'transform-origin': ((e.pageX - $(this).offset().left) / $(this).width()) * 100 + '% ' + ((e.pageY - $(this).offset().top) / $(this).height()) * 100 + '%'\n });\n });\n $('.slide-r .js-slide-cell')\n .on('mousemove', function (e) {\n $(this).children('img').css({\n 'transform-origin': ((e.pageX - $(this).offset().left) / $(this).width()) * 100 + '% ' + ((e.pageY - $(this).offset().top) / $(this).height()) * 100 + '%'\n });\n });\n}", "function moveLens(event) \r\n {\r\n ratioX = result.offsetWidth / lens.offsetWidth;\r\n ratioY = result.offsetHeight / lens.offsetHeight;\r\n result.style.backgroundImage = \"url('\" + image.src + \"')\";\r\n result.style.backgroundSize = (image.width * ratioX) + \"px \" + (image.height * ratioY) + \"px\";\r\n \r\n // Determinarea pozitiei cursorului\r\n let position = getCursorPos(event);\r\n \r\n // Determinarea pozitiei lupei\r\n let x = position.x - (lens.offsetWidth / 2);\r\n let y = position.y - (lens.offsetHeight / 2);\r\n \r\n // Limitam aria de deplasare a lupei\r\n if (x > image.width - lens.offsetWidth) \r\n x = image.width - lens.offsetWidth;\r\n if (x < 0) \r\n x = 0;\r\n if (y > image.height - lens.offsetHeight) \r\n y = image.height - lens.offsetHeight;\r\n if (y < 0) \r\n y = 0;\r\n \r\n // Setarea pozitiei lupei\r\n lens.style.left = x + \"px\";\r\n lens.style.top = y + \"px\";\r\n \r\n // Afisarea rezultatului\r\n result.style.backgroundPosition = \"-\" + (x * ratioX) + \"px -\" + (y * ratioY) + \"px\";\r\n\r\n // Setarea background-ului pentru lupa\r\n lens.style.backgroundPosition = \"-\" + x + \"px -\" + y + \"px\";\r\n\r\n }", "function resizeSelection(event) {\n event.preventDefault();\n event.stopPropagation();\n console.log('Calling resizeSelection');\n \n var dx = event.pageX - optimalApp.selectionOrigin[0];\n var dy = event.pageY - optimalApp.selectionOrigin[1];\n \n if (optimalApp.resizingFrom === 'image-crop-nw-resize-handle' ||\n optimalApp.resizingFrom === 'image-crop-w-resize-handle' ||\n optimalApp.resizingFrom === 'image-crop-sw-resize-handle') {\n optimalApp.selectionPosition[0] = event.pageX;\n optimalApp.selectionWidth = optimalApp.selectionBaseWidth - dx;\n }\n if (optimalApp.resizingFrom === 'image-crop-nw-resize-handle' ||\n optimalApp.resizingFrom === 'image-crop-n-resize-handle' ||\n optimalApp.resizingFrom === 'image-crop-ne-resize-handle') {\n optimalApp.selectionPosition[1] = event.pageY;\n optimalApp.selectionHeight = optimalApp.selectionBaseHeight - dy;\n }\n if (optimalApp.resizingFrom === 'image-crop-se-resize-handle' ||\n optimalApp.resizingFrom === 'image-crop-s-resize-handle' ||\n optimalApp.resizingFrom === 'image-crop-sw-resize-handle') {\n optimalApp.selectionHeight = dy + optimalApp.selectionBaseHeight;\n }\n if (optimalApp.resizingFrom === 'image-crop-ne-resize-handle' ||\n optimalApp.resizingFrom === 'image-crop-e-resize-handle' ||\n optimalApp.resizingFrom === 'image-crop-se-resize-handle') {\n optimalApp.selectionWidth = dx + optimalApp.selectionBaseWidth;\n }\n \n updateSelection();\n}", "function mousemove(e){\n e.preventDefault();\n state.dragging.dragOffset = {\n x: e.pageX - state.dragging.start.x,\n y: e.pageY - state.dragging.start.y\n }\n var newcenter = {\n x: state.dragging.original_x - state.dragging.dragOffset.x,\n y: state.dragging.original_y - state.dragging.dragOffset.y\n }\n $this.trigger(\"changecenter\", newcenter);\n }", "function imageEditorDocumentReadyCrop() {\n $('#cropped_image').imgAreaSelect({\n hide: true,\n disable: true,\n handles: true,\n onSelectEnd: function(img, selection) {\n $('input[name=\"x1\"]').val(selection.x1);\n $('input[name=\"y1\"]').val(selection.y1);\n $('input[name=\"x2\"]').val(selection.x2);\n $('input[name=\"y2\"]').val(selection.y2);\n if($('.imgareaselect-outer').first().is(':visible')) {\n $('#image_editor_crop_buttons ._do').removeClass('disabled');\n }\n }\n });\n $body.on('click', '.imgareaselect-outer', function() {\n $('#image_editor_crop_buttons ._do').addClass('disabled');\n });\n $body.on('click', '#image_editor_crop_action', function() {\n if(!$(this).hasClass('current')) {\n resetImageEditorOperationsChoice();\n resetImageEditorTexts();\n $(this).addClass('current');\n $('#image_editor_empty_buttons').hide();\n $('#image_editor_crop_buttons').show();\n $('#image_wrapper img').addClass('forCrop');\n $('._commit_media_element_editor').css('visibility', 'hidden');\n $('#cropped_image').imgAreaSelect({\n hide: false,\n disable: false\n });\n }\n });\n $body.on('click', '#image_editor_crop_buttons ._cancel', function() {\n resetImageEditorOperationsChoice();\n resetImageEditorCrop();\n $('._commit_media_element_editor').css('visibility', 'visible');\n });\n $body.on('click', '#image_editor_crop_buttons ._do', function() {\n if(!$(this).hasClass('disabled')) {\n var form = $('#image_editor_form');\n form.attr('action', '/images/crop');\n form.submit();\n }\n });\n}", "function image_crop(width,ratio,minX,minY,maxX,maxY)\n{\n var w1 = width;\n var h1 = (ratio)*w1;\n jQuery(function($){\n var jcrop_api,boundx,boundy;\n $('#crop_image').Jcrop({\n boxWidth:width,\n onChange: updateCoords,\n onSelect: updateCoords,\n setSelect: [ 0, 0, w1, h1 ],\n minSize:[minX,minY],\n maxSize:[maxX,maxY],\n aspectRatio: ratio \n },function(){\n // Use the API to get the real image size\n var bounds = this.getBounds();\n boundx = bounds[0];\n boundy = bounds[1];\n // Store the API in the jcrop_api variable\n jcrop_api = this;\n // Move the preview into the jcrop container for css positioning \n });\n function updateCoords(c)\n {\n $('#x').val(c.x);\n $('#y').val(c.y);\n $('#w').val(c.w);\n $('#h').val(c.h);\n };\n\n });\n}", "function brushcenter() {\n var target = d3.event.target,\n extent = brush.extent(),\n size = extent[1] - extent[0],\n range = mini_yScale.range(),\n y0 = d3.min(range) + size / 2,\n y1 = d3.max(range) + mini_yScale.rangeBand() - size / 2,\n center = Math.max( y0, Math.min( y1, d3.mouse(target)[1] ) );\n\n d3.event.stopPropagation();\n\n gBrush\n .call(brush.extent([center - size / 2, center + size / 2]))\n .call(brush.event);\n }//brushcenter", "function centerAnchorPoint(layer){\n var comp = app.project.activeItem;\n var x = layer.sourceRectAtTime(comp.time,false).width/2 + layer.sourceRectAtTime(comp.time,false).left;\n var y = layer.sourceRectAtTime(comp.time,false).height/2 + layer.sourceRectAtTime(comp.time,false).top;\n layer.anchorPoint.setValue([x,y]);\n }", "function centerSelectableImageInfo(element) {\n var container = $(element).parent();\n\n var elementWidth = $(element).outerWidth();\n var containerWidth = container.width();\n\n var marginLeft = (containerWidth / 2 - elementWidth / 2) / containerWidth * 100;\n\n $(element).css('margin-left', marginLeft.toString() + '%');\n}", "function onImageClick(event) {\n var imageWrap = document.querySelector('.image_wrap');\n if(!imageWrap.classList.contains('image_displayed')) return;\n\n if(imageWrap.classList.contains('positioning')) {\n var posRel = getPositionRel(event, document.querySelector('.image_wrap .image_con'));\n\n if(posRel.x >= 0 && posRel.x <= 1\n && posRel.y >= 0 && posRel.y <= 1) {\n placePinSelection(posRel);\n event.stopPropagation();\n }\n }\n\n if(imageWrap.classList.contains('moving')) {\n // ignore moving click events, mouse/touch events do everything\n event.stopPropagation();\n event.preventDefault();\n }\n }", "function moveImage(event) {\n // position\n var x = event.pageX + 5;\n var y = event.pageY + 5;\n // placement\n document.getElementById(\"div_zoom_image\").style.left = x + \"px\";\n document.getElementById(\"div_zoom_image\").style.top = y + \"px\";\n}", "function cutSelectionTool() {\n\t// Saving the coordinates\n\tcopiedEndX = endX;\n\tcopiedEndY = endY;\n\n\tcopiedStartX = startX;\n\tcopiedStartY = startY;\n\n\t// Getting the selected pixels\n\t// If I'm already moving a selection\n\tif (imageDataToMove !== undefined) {\n\t\t// I just save that selection in the clipboard\n\t\tclipboardData = imageDataToMove;\n\t\t// And clear the underlying space\n\t\tTMPLayer.context.clearRect(0, 0, TMPLayer.canvas.width, TMPLayer.canvas.height);\n\t\t// The image has been cleared, so I don't have anything to move anymore\n\t\timageDataToMove = undefined;\n\t}\n\telse {\n\t\t// Otherwise, I copy the current selection into the clipboard\n\t\tcopySelection();\n\t\t// And clear the selection\n\t\tcurrentLayer.context.clearRect(startX - 0.5, startY - 0.5, endX - startX + 1, endY - startY + 1);\n\t}\n}", "function handlePan(loc) {\r\n // Update the source rectangle origin, but afterwards, check to\r\n // make sure we're not trying to look outside the image bounds.\r\n drawingCenter[0] += (loc[0] - lastLocation[0]);\r\n drawingCenter[1] += (loc[1] - lastLocation[1]);\r\n\r\n // Update mouse location\r\n lastLocation = loc;\r\n }", "function overImage(imgUrl) {\n document.getElementById(\"div_zoom_image\").style.visibility = \"visible\";\n document.getElementById(\"img_zoom_image\").src = imgUrl;\n document.onmousemove = moveImage;\n}", "function autoCrop() {\n\n // Find origin and destination to form a rectangle.\n var top = charaster.gridHeight;\n var right = 0;\n var bottom = 0;\n var left = charaster.gridWidth;\n for (var col = 0; col < charaster.gridWidth; col++) {\n for (var row = 0; row < charaster.gridHeight; row++) {\n var cell = charaster.getCell(new Point(col, row));\n if (isEmptyCell(cell)) {\n continue;\n }\n if (row < top) {\n top = row;\n }\n if (col > right) {\n right = col;\n }\n if (row > bottom) {\n bottom = row;\n }\n if (col < left) {\n left = col;\n }\n }\n }\n right++;\n bottom++;\n\n // Copy the cells to move.\n var cells = [];\n for (var col = left; col < right; col++) {\n for (var row = top; row < bottom; row++) {\n cells.push(charaster.getCell(new Point(col, row)).copy());\n }\n }\n\n // New smaller raster.\n charaster.gridWidth = Math.max(1, right - left);\n charaster.gridHeight = Math.max(1, bottom - top);\n charaster.raster = charaster.createRaster(charaster.gridWidth, charaster.gridHeight);\n for (var i = 0; i < cells.length; i++) {\n cells[i].point.x -= left;\n cells[i].point.y -= top;\n charaster.setCell(cells[i]);\n }\n rasterHistory.add(charaster.raster);\n charaster.drawAll();\n}", "crop() {\n const canvas = this.refs.canvas.getDOMNode();\n context = canvas.getContext('2d');\n\n // # start with blank white canvas\n context.clearRect(0, 0, this.props.width, this.props.height);\n context.fillStyle = \"white\";\n context.fillRect(0, 0, this.props.width, this.props.height);\n\n // # draw user image to match framed version\n dx = this.state.pos.x;\n dy = this.state.pos.y;\n dWidth = this.state.size.width * this.state.scale;\n dHeight = this.state.size.height * this.state.scale;\n\n context.drawImage(this.state.element, dx, dy, dWidth, dHeight);\n\n // # return cropped image\n canvas.toBlob( (blob) => {\n blob.filename = this.state.filename.substr(0, this.state.filename.lastIndexOf(\".\")) + \".jpg\";\n this.props.onCrop(blob);\n }, \"image/jpeg\", 0.95);\n\n // # mission complete, close crop dialog\n this.close();\n }", "function mouseReleased(){\n\t//if (mouseX >= canvasWidth/2 - tappy.width/2 && mouseX <= canvasWidth/2 + tappy.width/2 &&\n\t//\tmouseY >= canvasHeight/2 - tappy.height/2 && mouseY <= canvasHeight/2 + tappy.height/2){\n\t\ttappy.width = imageWidth;\n\t\ttappy.height = imageHeight;\n\t\ttappy.x -= 8; \n\t\ttappy.y -= 8;\n\t//}\n}", "function centerBoard() {\r\n\tpaper.project.activeLayer.position = paper.view.center;\r\n}", "function move(deltaX, deltaY){\n\t\t\tif(is_pinching)\n\t\t\t\treturn;\n\t\t\timg_to_crop.css({\n\t\t\t\tleft: (x_pos + deltaX) + 'px',\n\t\t\t\ttop: (y_pos + deltaY) + 'px' \n\t\t\t});\n\t\t}", "function centerUs() {\n\t\t\t var sizeAll = that.loaded.getBBox();\n\t\t\t\tobj.set.undrag();\n\t\t\t\tthat.loaded.animate({\n\t\t\t\t\ttransform: 'T'+(that.cx-sizeAll.x-sizeAll.width/2)+','+(that.cy-sizeAll.y-sizeAll.height/2)+'...'\n\t\t\t\t}, 1000, 'ease-in-out', function() {\n\t\t\t obj.set.drag(move, start, end);\n\t\t\t });\n\t\t\t}", "function repositionCoverPhoto( element )\n{\n\t$('ul.cover_photo_menu').hide();\n\t// Puting rel value in cancel button so as to know \n\t// whether to cancel cover photos repositioning or uploading.\n\t$('a#cancel_cover').attr('rel','cancel_repositioning');\n\t$('input#save_cover').attr('rel','save_new_positioning');\n\t$('div.instructionWrap').show();\n\t\n\t//Show save and cancel btns.\n\t$('div#update_cover_outer').show();\n\t\n\t//Making cover image draggable to reposition it.\n\t$('div#cover_photo img#cvr_photo_img').css('cursor', 'all-scroll')\n\t.draggable({ \n\t\tscroll: false,\n\t disabled: false,\n\t\tcursor: \"all-scroll\", \n\t\taxis:\"y\",\n\t\tdrag: function (event, ui) \n\t\t{\n\t\t\ty1 = $('.timeline-header-wrapper').height(); \n\t\t\ty2 = $('div#cover_photo').find('img').height(); \n\t \n\t\t\tif (ui.position.top >= 0) \n\t\t\t{ \n\t\t\t\tui.position.top = 0;\n\t\t\t} \n\t\t\telse if (ui.position.top <= (y1-y2)) \n\t\t\t{\n\t\t\t\tui.position.top = y1-y2; \n\t\t\t}\n\t\t\t\t\n\t\t\t},\n\t\t\tstop: function(event, ui) \n\t\t\t{ \n\t\t\t\t$('input.cover-position').val(ui.position.top);\n\t\t\t} \n\t\t}); \n}", "function mouseOverWhich(x, pic, picX, set1, set2, set3){\n push();\n rectMode(CENTER);\n rect(x, height/2+height/6, width/10, height);\n noTint();\n image(pic, picX, height/2, width/13, width/13);\n setText(set1, set2, set3);\n pop();\n\n}", "function selectBox() {\n\tclear();\n\t$('#imgcanvas').imgAreaSelect({\n\t\thandles : true,\n\t\tonSelectEnd : function(img, selection) {\n\t\t\t// create box\n\t\t\tvar box = [selection.x1, selection.y1, selection.width, selection.height];\n\t\t\t// do fitting\n\t\t\tpositions = estimatePositions(box);\n\t\t\tif (!positions) {\n\t\t\t\tclear();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// put boundary on estimated points\n\t\t\tfor (var i = 0;i < positions.length;i++) {\n\t\t\t\tif (positions[i][0][0] > img.width) {\n\t\t\t\t\tpositions[i][0][0] = img.width;\n\t\t\t\t} else if (positions[i][0][0] < 0) {\n\t\t\t\t\tpositions[i][0][0] = 0;\n\t\t\t\t}\n\t\t\t\tif (positions[i][0][1] > img.height) {\n\t\t\t\t\tpositions[i][0][1] = img.height;\n\t\t\t\t} else if (positions[i][0][1] < 0) {\n\t\t\t\t\tpositions[i][0][1] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// render points\n\t\t\trenderPoints(positions, img.width, img.height);\n\t\t\tstoreCurrent();\n\t\t},\n\t\tautoHide : true\n\t});\n}", "selectionTool(e) {\n //find the cropper\n let cropper = this.state.cropper;\n //trigger the crop/selection tool\n cropper.setDragMode(\"crop\");\n //reset active buttons\n this.clearActiveButtons();\n this.setActiveButton(\"selectionTool\");\n }", "function centerImage(i, img, el) {\r\n\t\tel = el || $(img);\r\n\t\tif (!img.naturalWidth) {\r\n\t\t\t//Work-around for Opera which doesn't support naturalWidth/Height. This works because\r\n\t\t\t//the function is invoked once for each image before it is scaled.\r\n\t\t\timg.naturalWidth = img.width;\r\n\t\t\timg.naturalHeight = img.height;\r\n\t\t}\r\n\t\tvar s = Math.min(getViewportScale(), Math.min(getInnerHeight()/img.naturalHeight, getInnerWidth()/img.naturalWidth));\r\n\t\tel.css({\r\n\t\t\ttop: Math.round((getInnerHeight() - img.naturalHeight * s) / 2) + 'px',\r\n\t\t\tleft: Math.round((getInnerWidth() - img.naturalWidth * s) / 2) + 'px'\r\n\t\t}).width(Math.round(img.naturalWidth * s));\r\n\t\treturn el;\r\n\t}", "function center_tile_mapcanvas(ptile)\n{\n var r = map_to_gui_pos(ptile['x'], ptile['y']);\n var gui_x = r['gui_dx'];\n var gui_y = r['gui_dy'];\n \n gui_x -= (mapview['width'] - tileset_tile_width) >> 1 ;\n gui_y -= (mapview['height'] - tileset_tile_height) >> 1;\n \n set_mapview_origin(gui_x, gui_y);\n \n}", "function TooltipFollow(evt) \n{\n var e = window.event || evt; \n\tvar imageTooltipheight = parseInt(document.getElementById(\"preview\").height);\n\tvar imageTooltipwidth = parseInt(document.getElementById(\"preview\").width);\n\n\n var Y = parseInt(e.clientY) + OffsetY;\n if (Y + imageTooltipheight >= OffsetY + document.documentElement.clientHeight )\n {\n \tY -= imageTooltipheight + OffsetY*1.5;\n }\n\n var X = parseInt(e.clientX) + OffsetX;\n var leftEdge = (X - imageTooltipwidth/2 <= OffsetX)? true:false;\n var rightEdge = (X + imageTooltipwidth/2 >= OffsetX + document.documentElement.clientWidth)?true:false;\n\n if (leftEdge !== rightEdge)\n {\n\t if (rightEdge)\n\t {\n\t \tX = document.documentElement.clientWidth - OffsetX - imageTooltipwidth*3/2;\n\t }\n\t else \n\t {\n\t \tX = OffsetX + imageTooltipwidth/2;\n\t }\n\t}\n\n\n\tvar imageTooltip = document.getElementById(\"preview\");\n imageTooltip.style.left = X + 'px'; \n imageTooltip.style.top = Y + 'px'; \n}", "function centerSlideWhenZoomedIn() {\n $('.active').css({\n \"top\": ($(window).height() - $('.active').outerHeight()) / 2,\n \"left\": calculateEdgeWidth()\n });\n }", "_updateImage() {\n let boundsSize = [getWidth(this.bounds), getHeight(this.bounds)]\n let regionSize = [getWidth(this.region), getHeight(this.region)]\n if (this._orientation === 90 || this._orientation === 270) {\n boundsSize = [boundsSize[1], boundsSize[0]]\n regionSize = [regionSize[1], regionSize[0]]\n }\n\n // Set the size of the image\n this._dom.image.style.backgroundSize\n = `${boundsSize[0]}px ${boundsSize[1]}px`\n this._dom.image.style.width = `${regionSize[0]}px`\n this._dom.image.style.height = `${regionSize[1]}px`\n\n // Position the image centerally so the rotatation is aligned\n this._dom.image.style.marginLeft = `-${regionSize[0] / 2}px`\n this._dom.image.style.marginTop = `-${regionSize[1] / 2}px`\n this._dom.image.style.left = `${getWidth(this.region) / 2}px`\n this._dom.image.style.top = `${getHeight(this.region) / 2}px`\n\n // Set the orientation of the image\n this._dom.image.style.transform = `rotate(${this._orientation}deg)`\n\n // Set the background's position inline with the crop region's\n let bkgX = this._region[0][0] // eslint-disable-line\n let bkgY = this._region[0][1] // eslint-disable-line\n\n switch (this._orientation) {\n\n case 90:\n bkgX = this._region[0][1] // eslint-disable-line\n bkgY = (boundsSize[1] - regionSize[1]) - this._region[0][0]\n break\n\n case 180:\n bkgX = (boundsSize[0] - regionSize[0]) - this._region[0][0]\n bkgY = (boundsSize[1] - regionSize[1]) - this._region[0][1]\n break\n\n case 270:\n bkgX = (boundsSize[0] - regionSize[0]) - this._region[0][1]\n bkgY = this._region[0][0] // eslint-disable-line\n break\n\n // No default\n\n }\n\n // Ceil the values to prevent fractions causing jerking when dragging\n // or resizing.\n bkgX = Math.ceil(bkgX)\n bkgY = Math.ceil(bkgY)\n\n this._dom.image.style.backgroundPosition = `-${bkgX}px -${bkgY}px`\n }", "function cropImage(image) {\n \n let draw = new DrawContext()\n let rect = new Rect(crop.x,crop.y,crop.w,crop.h)\n draw.size = new Size(rect.width, rect.height)\n \n draw.drawImageAtPoint(image,new Point(-rect.x, -rect.y)) \n return draw.getImage()\n}", "function fullsizeimagepos(){\r\n $('.imagefull').css('top',$(window).height()/2 - $('.imagefull').height()/2 - 15)\r\n }", "function imageEditorUpdateCropCoords (c) {\r\n $('#imageEditorCropX').val(c.x);\r\n $('#imageEditorCropY').val(c.y);\r\n $('#imageEditorCropX2').val(c.x2);\r\n $('#imageEditorCropY2').val(c.y2);\r\n $('#imageEditorCropW').val(c.w);\r\n $('#imageEditorCropH').val(c.h);\r\n $('#imageEditorHeightInfo').html(c.h + ' px');\r\n $('#imageEditorWidthInfo').html(c.w + ' px');\r\n }", "function mouseOver() {\n document.getElementById(\"image\").style.border = \"solid 2px #FFFC92\"; \n document.getElementById(\"image\").style.backgroundColor = \"#6000CE\";\n document.getElementById(\"image\").style.padding = \"-1%\"; \n}", "reset() {\n\n // Set the initial crop to match any given fixed aspect ratio (or\n // default to a square crop 1:1).\n let aspectRatio = this._initialAspectRatio\n\n // Calculate the initial crop size such that it fits within the bounds\n let width = getWidth(this.bounds)\n let height = getWidth(this.bounds) / aspectRatio\n\n if (aspectRatio < width / getHeight(this.bounds)) {\n width = getHeight(this.bounds) * aspectRatio\n height = getHeight(this.bounds)\n }\n\n // Calculate the initial crop position to be central to the bounds\n const x = (getWidth(this.bounds) - width) / 2\n const y = (getHeight(this.bounds) - height) / 2\n\n // Set the region\n this.region = [\n [x, y],\n [x + width, y + height]\n ]\n }", "function pickImage() {\n\t// find intersections\n\tvar vector = new THREE.Vector3( pickMouse.x, pickMouse.y, 1 );\n\tpickProjector.unprojectVector( vector, camera );\n\n\tpickRaycaster.set( camera.position, vector.sub( camera.position ).normalize() );\n\n\tvar intersects = pickRaycaster.intersectObjects( scene.children );\n\n\tif ( intersects.length > 0 ) {\n\t\tINTERSECTED = intersects[ 0 ].object;\n\n\t\taddAutoCursor();\n\n\t\tfor (var i = 0; i < planeList.length; i++) {\n\t\t\tif (planeList[i].pic.id == INTERSECTED.id) {\n\t\t\t\tvar d = lineLength( lookAtThis.position.x, lookAtThis.position.y, planeList[i].pic.position.x, planeList[i].pic.position.y );\n\t\t\t\t\n\t\t\t\tif ( d < imageSize / 2 ) {\n\t\t\t\t\tdragState = 0;\n\t\t\t\t\taddTranslateCursor();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdragState = 1;\n\n\t\t\t\t\t//We should also change the cursor.\n\t\t\t\t\tcheckRotateCursor( i );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\tINTERSECTED = null;\n\t}\n}", "cropImage(img) {\n const width = img.shape[0];\n const height = img.shape[1];\n const shorterSide = Math.min(img.shape[0], img.shape[1]);\n // calculate beginning and ending crop points\n const startingHeight = (height - shorterSide) / 2;\n const startingWidth = (width - shorterSide) / 2;\n const endingHeight = startingHeight + shorterSide;\n const endingWidth = startingWidth + shorterSide;\n // return image data cropped to those points\n return img.slice([startingWidth, startingHeight, 0], [endingWidth, endingHeight, 3]);\n }", "function mouseToCenter(){\n return dist(mouseX, mouseY, center.x, center.y);\n}", "onMouseMove(event) {\n if (!this.state.moving) return;\n\n // # Calculate new coords delta from initial\n x = event.pageX - this.state.rel.x;\n y = event.pageY - this.state.rel.y;\n\n // # Move the image\n this.setState({ pos: this.constrain(x, y) });\n\n event.stopPropagation();\n event.preventDefault();\n }", "display() {\n push();\n noStroke();\n imageMode(CENTER);\n image(this.avalancheImg, this.x, this.y, this.width, this.height);\n pop();\n }", "function resizeImageOverlay() {\n var rectangle;\n $(\".picture-container\").find(\"img\").each(function() {\n rectangle = $(this).get(0).getBoundingClientRect();\n $(this).closest(\"figure\").find(\".content-hover\").css(\"width\", rectangle.width);\n $(this).closest(\"figure\").find(\".content-hover\").css(\"height\", rectangle.height);\n });\n}", "function mousePressed() {\n // The mouse was clicked!\n // Check if the cursor is in the x range of the target\n // (We're subtracting the image's width/2 because we're using\nimageMode(CENTER)\n // the key is we want to determine the left and right edges of the\n\n if (mouseX > targetX - targetImage.width / 2 && mouseX < targetX +\ntargetImage.width / 2) {\n // Check if the cursor is also in the y range of the target\n // i.e. check if it's within the top and bottom of the image\n if (mouseY > targetY - targetImage.height / 2 && mouseY < targetY +\ntargetImage.height / 2) {\n gameOver = true;\n }\n }\n}", "function cortado() {\n $('canvasCrop').setLayerGroup(\"all\", {\n visible: false\n }).drawLayers();\n theCanvasCrop = document.getElementById(\"canvasCrop\");\n ctx2 = theCanvasCrop2.getContext(\"2d\");\n theCanvasCrop.width = (a3);\n theCanvasCrop.height = (a4);\n\n //document.getElementById('canvasCrop').style.display = \"inline\";\n document.getElementById('myCanvas').style.display = \"inline\";\n //document.getElementById('download').style.display = \"none\";\n //document.getElementById('buttonScreen').style.display = \"none\";\n //document.getElementById('buttonZoomin').style.display = \"none\";\n //document.getElementById('buttonZoomout').style.display = \"none\";\n //document.getElementById('buttonCrop').style.display = \"none\";\n document.getElementById('cut').style.display = \"none\";\n document.getElementById('release').style.display = \"none\";\n //document.getElementById('myControls').style.display = \"none\";\n\n //ctx2.scale(1.5, 1.5);\n //ctx2.drawImage(theCanvas, a1, a2, a3, a4, 0, 0, 0, 0);\n ctx2.drawImage(theCanvas, a1, a2, a3, a4, 0, 0, a3, a4);\n var dataURL= theCanvasCrop.toDataURL();\n window.open(dataURL);\n // jcrop_api.destroy();\n //restore();\n document.getElementById('jcropArea').remove();\n restore();\n}", "function _center(width, height) {\n\t\tvar\n\t\t\tx = _getWindowWidth() / 2,\n\t\t\ty = _getWindowHeight() / 2;\n\t\tvar max = Math.max;\n\t\treturn {\n\t\t\tleft: max(0, $(window).scrollLeft() + x - width / 2), // user should always be able to view the full image by scrolling the document\n\t\t\ttop: max(0, $(window).scrollTop() + y - height / 2)\n\t\t};\n\t}", "function mouseMove() {\n /* jshint validthis: true */ // `this` is the D3 svg object\n var m = d3.mouse(this);\n zoomHandler.center([\n m[0] - layoutOffset[0] - margin.left,\n m[1] - layoutOffset[1] - margin.top]);\n }", "function doRecenter(offsetX,offsetY)\n{\n if (imgPath == \"\")\n \treturn;\n\n //alert(offsetX + \",\" + offsetY);\n oldCenterX = centerX;\n oldCenterY = centerY;\n scaleWidth = Math.abs(Math.abs(mapright) - Math.abs(mapleft));\n scaleHeight = Math.abs(Math.abs(maptop) - Math.abs(mapbottom));\n degPerPixX = scaleWidth / (imgWidth);\n degPerPixY = scaleHeight / (imgHeight);\n xDelta = degPerPixX * parseFloat(offsetX);\n yDelta = degPerPixY * parseFloat(offsetY);\n centerX = parseFloat(oldCenterX) - xDelta;\n centerY = parseFloat(oldCenterY) + yDelta;\n log(\"imgWidth:\" + imgWidth + \",imgHeight:\" + imgHeight + \",degPerPixX:\" + degPerPixX + \",degPerPixY:\" + degPerPixY);\n log(\"x delta:\" + xDelta + \", y delta:\" + yDelta);\n //alert(\"old:\" + oldCenterX + \",\" + oldCenterY + \" - new: \" + centerX + \",\" + centerY);\n recenterMap(centerX, centerY);\n //zoomIn();\n bShowPinpoint=false;\n showScale();\n}", "function MousePic(i,newSize) {\n i.width = newSize;\n}", "initAvatarCropper() {\n const image = document.getElementById('avatar-image-preview');\n this.cropper = new Cropper(image, {\n aspectRatio: 1,\n autoCropArea: 1,\n minContainerWidth: 250,\n minContainerHeight: 250,\n zoomable: false,\n crop: (event) => {\n let canvas = this.cropper.getCroppedCanvas()\n\n // Convert image into data string\n this.canvasDataUrl = canvas.toDataURL()\n\n $(\"img.image\").prop('src', this.canvasDataUrl)\n },\n })\n }", "function mouseOver(x) {\r\nvar img = x;\r\n\r\ndocument.body.style.cursor = \"pointer\";\r\npopUpImg.src=\"\";\r\npopUp.style.display = \"hidden\";\r\n\r\n// Pop-up image of board when it is clicked on the image map\r\nimg.onclick = function(){\r\n popUpImg.src = this.alt;\r\n popUp.style.display = \"block\";\r\n}\r\n}", "updateImage_() {\n const {width: frameW, height: frameH} = this.frameSize_;\n const {width: rawImageW, height: rawImageH} = this.imageOriginalSize_;\n const style = this.image_.attributeStyleMap;\n\n let rotatedW = rawImageW;\n let rotatedH = rawImageH;\n if (ROTATIONS[this.rotation_] === Rotation.ANGLE_90 ||\n ROTATIONS[this.rotation_] === Rotation.ANGLE_270) {\n [rotatedW, rotatedH] = [rotatedH, rotatedW];\n }\n const scale = Math.min(1, frameW / rotatedW, frameH / rotatedH);\n const newImageW = scale * rawImageW;\n const newImageH = scale * rawImageH;\n style.set('width', CSS.px(newImageW));\n style.set('height', CSS.px(newImageH));\n this.cropAreaContainer_.setAttribute(\n 'viewBox', `0 0 ${newImageW} ${newImageH}`);\n\n // Update corner space.\n if (this.cornerSpaceSize_ === null) {\n this.initialCorners_.forEach(({x, y}, idx) => {\n this.corners_[idx].pt = new Point(x * newImageW, y * newImageH);\n });\n this.initialCorners_ = null;\n } else {\n const oldImageW = this.cornerSpaceSize_?.width || newImageW;\n const oldImageH = this.cornerSpaceSize_?.height || newImageH;\n this.corners_.forEach((corn) => {\n corn.pt = new Point(\n corn.pt.x / oldImageW * newImageW,\n corn.pt.y / oldImageH * newImageH);\n });\n }\n this.cornerSpaceSize_ = new Size(newImageW, newImageH);\n\n const originX =\n frameW / 2 + rotatedW * scale / 2 * [-1, 1, 1, -1][this.rotation_];\n const originY =\n frameH / 2 + rotatedH * scale / 2 * [-1, -1, 1, 1][this.rotation_];\n style.set('left', CSS.px(originX));\n style.set('top', CSS.px(originY));\n\n const deg = ROTATIONS[this.rotation_];\n style.set(\n 'transform', new CSSTransformValue([new CSSRotate(CSS.deg(deg))]));\n\n this.updateCornerEl_();\n }", "function prepareCrop() {\n\t\tvar coOrdinates,\n\t\t\tdimensions,\n\t\t\tminSize,\n\t\t\toption = $( '#template option:selected' ),\n\t\t\tcropOptions = {};\n\t\t\tselectedTemplateIndex = option.index();\n\n\t\t// if a template has been selected\n\t\t// restrict size of crop area to chosen dimensions & aspect ratio\n\t\tif( option.index() > 0 ) {\t\t\t\n\t\t\tcoordinates = option.data( 'coordinates' );\n\t\t\tdimensions = option.data( 'dimensions' );\n\t\t\tcropOptions = {\n\t\t\t\tonSelect: getCoords,\n\t\t\t\tsetSelect : coordinates,\n\t\t\t\tdimensions : dimensions,\n\t\t\t\taspectRatio : ( dimensions[0] / dimensions[1] ).toFixed(2),\n\t\t\t\tminSize : dimensions\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// no template\n\t\t\tcropOptions = {\n\t\t\t\tonSelect: getCoords,\n\t\t\t\tsetSelect: [ 0, 0, 100, 100 ],\n\t\t\t\tminSize : [ 80, 80 ]\n\t\t\t}\n\t\t}\n\t\tdisplayUploadedImage( cropOptions );\t\n\t}", "hide(){\n this.image.x=this.offset;\n }", "function newCropImageStr(url1){\r\n var imgTemp = new Image(); \r\n imgTemp.src=url1;\r\n imgTemp.addEventListener(\"load\", function() {\r\n aw = imgTemp.naturalWidth;\r\n ah = imgTemp.naturalHeight;\r\n var oc = document.createElement('canvas'),\r\n octx = oc.getContext('2d');\r\n if (aw>500) {\r\n photoWidth = 500;\r\n } else {\r\n photoWidth = aw;\r\n }\r\n \r\n oc.width = photoWidth;\r\n oc.height = photoWidth * ah/aw;\r\n octx.drawImage(imgTemp, 0, 0, oc.width, oc.height);\r\n \r\n var newImg = document.createElement(\"img\");\r\n newImg.src = oc.toDataURL(\"image/png\");\r\n \r\n $( \"#\" + imagelist).append(newImg);\r\n $( \"#\" + imagelist + \" img\").last().wrap(\"<div class='onePhoto'></div>\");\r\n \r\n }, false); \r\n }", "function dropper(event) {\n// Pop image into place\nlet currentX = event.clientX - diffX + 50;\nlet currentY = event.clientY - diffY + 50;\nif ((400 <= currentX && currentX <= 500) && (-320 <= currentY && currentY <= -220)){\n theElement.style.left = \"400px\";\n theElement.style.top = \"-320px\";\n img1 = theElement.alt;\n}\nelse if ((500 <= currentX && currentX <= 600) && (-320 <= currentY && currentY <= -220)){\n theElement.style.left = \"500px\";\n theElement.style.top = \"-320px\";\n img2 = theElement.alt;\n}\nelse if ((600 <= currentX && currentX <= 700) && (-320 <= currentY && currentY <= -220)){\n theElement.style.left = \"600px\";\n theElement.style.top = \"-320px\";\n img3 = theElement.alt;\n}\nelse if ((700 <= currentX && currentX <= 800) && (-320 <= currentY && currentY <= -220)){\n theElement.style.left = \"700px\";\n theElement.style.top = \"-320px\";\n img4 = theElement.alt;\n}\nelse if ((400 <= currentX && currentX <= 500) && (-220 <= currentY && currentY <= -120)){\n theElement.style.left = \"400px\";\n theElement.style.top = \"-220px\";\n img5 = theElement.alt;\n}\nelse if ((500 <= currentX && currentX <= 600) && (-220 <= currentY && currentY <= -120)){\n theElement.style.left = \"500px\";\n theElement.style.top = \"-220px\";\n img6 = theElement.alt;\n}\nelse if ((600 <= currentX && currentX <= 700) && (-220 <= currentY && currentY <= -120)){\n theElement.style.left = \"600px\";\n theElement.style.top = \"-220px\";\n img7 = theElement.alt;\n}\nelse if ((700 <= currentX && currentX <= 800) && (-220 <= currentY && currentY <= -120)){\n theElement.style.left = \"700px\";\n theElement.style.top = \"-220px\";\n img8 = theElement.alt;\n}\nelse if ((400 <= currentX && currentX <= 500) && (-120 <= currentY && currentY <= -20)){\n theElement.style.left = \"400px\";\n theElement.style.top = \"-120px\";\n img9 = theElement.alt;\n}\nelse if ((500 <= currentX && currentX <= 600) && (-120 <= currentY && currentY <= -20)){\n theElement.style.left = \"500px\";\n theElement.style.top = \"-120px\";\n img10 = theElement.alt;\n}\nelse if ((600 <= currentX && currentX <= 700) && (-120 <= currentY && currentY <= -20)){\n theElement.style.left = \"600px\";\n theElement.style.top = \"-120px\";\n img11 = theElement.alt;\n}\nelse if ((700 <= currentX && currentX <= 800) && (-120 <= currentY && currentY <= -20)){\n theElement.style.left = \"700px\";\n theElement.style.top = \"-120px\";\n img12 = theElement.alt;\n}\n\n// Unregister the event handlers for mouseup and mousemove\n\n document.removeEventListener(\"mouseup\", dropper, true);\n document.removeEventListener(\"mousemove\", mover, true);\n\n// Prevent propagation of the event\n\n event.stopPropagation();\n} //** end of dropper", "function styleImg(ev) {\n img.attributes.removeNamedItem('width');\n img.attributes.removeNamedItem('height');\n img.style.position = 'static';\n img.style.margin = 'auto';\n img.style.cursor = 'pointer';\n img.onclick = goToAlbum;\n }", "function selectedCenter() {\n var sel = $(svgRoot).find('.selected').closest('g');\n if ( sel.length > 0 && ! sel.hasClass('dragging') ) {\n var rect = sel[0].getBBox();\n if ( rect.width == 0 && rect.height == 0 )\n return;\n return { x: rect.x + 0.5*rect.width, y: rect.y + 0.5*rect.height };\n }\n else\n return self.util.mouseCoords;\n }", "function moveDisplayImg(e) {\n let mouseXposition = e.clientX - 100;\n let mouseYposition = e.clientY;\n gsap.to(containerWrapperImg, { x: mouseXposition, y: mouseYposition });\n}", "function _set_parallax_effect(intImageWidth, intImageHeight) {\n\t\t\t$('#largephotobox-container-image').mousemove(function(e){\n\t\t\t\tvar posX = $('#largephotobox-container-image').offset().left;\n\t\t\t\tvar posY = $('#largephotobox-container-image').offset().top;\n\t\t\t\t\n\t\t\t\tvar containerX = $('#largephotobox-container-image').width();\n\t\t\t\tvar containerY = $('#largephotobox-container-image').height();\n\t\t\t\t\n\t\t\t\tvar contentX = $('#largephotobox-image').width();\n\t\t\t\tvar contentY = $('#largephotobox-image').height();\n\t\t\t\t\n\t\t\t\tvar differenceX = contentX - containerX;\n\t\t\t\tvar differenceY = contentY - containerY;\n\t\t\t\t\n\t\t\t\tvar halfX = - parseInt(differenceX / 2);\n\t\t\t\tvar halfy = - parseInt(differenceY / 2);\n\t\t\t\t\n\t\t\t\tporcentageX = parseInt( (e.pageX - posX) / containerX * 100);\n\t\t\t\tporcentagey = parseInt( (e.pageY - posY) / containerY * 100);\n\t\t\t\tleftPosition = parseInt(0 - (differenceX / 100 * porcentageX ));\n\t\t\t\ttopPosition = parseInt(0 - (differenceY / 100 * porcentagey ));\n\t\t\t\t$('#largephotobox-image').css({\n\t\t\t\t\ttop: topPosition,\n\t\t\t\t\tleft: leftPosition\n\t\t\t\t});\n\t\t\t});\n\t\t}", "function gallery_hover() {\r\n\r\n if ($(\".gallery-caption img\").length) {\r\n $(\".gallery-caption img\").on('mouseover', function() {\r\n var img_width = $(\".gallery-caption img\").width();\r\n var img_height = $(\".gallery-caption img\").height();\r\n $(\".gallery-caption .blur\").css({\r\n \"height\": img_height,\r\n \"width\": img_width\r\n });\r\n });\r\n }\r\n }", "function PosCenterTop() {\n var top = M.R((va.hRuby - M.OuterHeight($imgItem, true)) / 2);\n if (top == 0)\n top = '';\n $imgItem.css('top', top);\n }", "function centerReg(obj){\n\tobj.regX=obj.image.naturalWidth/2;\n\tobj.regY=obj.image.naturalHeight/2;\n}", "recenter() {\n this.pan = {\n x: 0,\n y: 0\n };\n this.zoom = 1;\n }", "function zoom() {\n $(\".main-content .container .content .productDetail .slideProduct .image .item\").each(function(index, el) {\n $(this).hover(function() {\n $(\".main-content .container .content .productDetail .zoom\").show();\n }, function() {\n $(\".main-content .container .content .productDetail .zoom\").hide();\n })\n $(this).mousemove(function() {\n\n var pos = $(this).offset();\n var x = event.pageX - pos.left - 75;\n var y = event.pageY - pos.top - 75;\n\n if (x < 0) x = 0;\n if (x > $(this).width() - 150) x = $(this).width() - 150;\n if (y < 0) y = 0;\n if (y > $(this).height() - 150) y = $(this).height() - 150;\n\n\n $(this).children(\".move\").css({\n top: y + 'px',\n left: x + 'px'\n });\n\n var zoomSrc = $(this).find(\"img\").attr('src');\n var zoomWidth = $(this).find(\"img\").width();\n var zoomHeight = $(this).find(\"img\").height();\n\n $(\".main-content .container .content .productDetail .zoom\").css({\n 'background': \"url('\" + zoomSrc + \"') no-repeat\",\n 'background-size': zoomWidth * 3 + \"px \" + zoomHeight * 3 + \"px\",\n 'background-position': -x * 3 + \"px \" + -y * 3 + \"px\"\n })\n if( $(window).width() < 768){\n $(\".main-content .container .content .productDetail .slideProduct .image .item\").click(function(event) {\n $(this).children('.hover').show();\n });\n } else{\n $(\".main-content .container .content .productDetail .slideProduct .image .item\").click(function(event) {\n $(this).children('.hover').hide();\n }); \n }\n $(\".main-content .container .content .productDetail .slideProduct .image .item\").mouseleave(function(event) {\n $(this).children('.hover').hide();\n });\n $(\".main-content .container .content .productDetail .slideProduct .image .item\").parents(\".productDetail\").find(\".slick-current\").find(\".hover\").css({\n 'background': \"url('\" + zoomSrc + \"') no-repeat\",\n 'background-size': $(\".main-content .container .content .productDetail .slideProduct .image .item\").width() * 2 + \"px \" + $(\".main-content .container .content .productDetail .slideProduct .image .item\").height() * 2 + \"px\",\n 'background-position': -(event.pageX - pos.left) + \"px \" + -(event.pageY - pos.top) + \"px\"\n });\n });\n $(this).hover(function() {\n $(this).children(\".move\").show();\n }, function() {\n $(this).children(\".move\").hide();\n });\n });\n }", "putCenter(b, xOffset = 0, yOffset = 0) { \n let a = this\n b.x = (a.x + a.halfWidth - b.halfWidth) + xOffset \n b.y = (a.y + a.halfHeight - b.halfHeight) + yOffset \n }", "function validatePosition(){\n if (cursorPos.x < 0){\n cursorPos.x = 0;\n }\n\n if (cursorPos.x + img.width > canvasCrosshair.width){\n cursorPos.x = canvasCrosshair.width - img.width;\n }\n\n if (cursorPos.y < 0){\n cursorPos.y = 0;\n }\n\n if (cursorPos.y +img.height > canvasCrosshair.height){\n cursorPos.y = canvasCrosshair.height - img.height;\n }\n\n}", "aim()\n {\n this.aimX = mouseX - (this.sprite.width / 2 - 33);\n this.aimY = mouseY - ((this.sprite.height / 2) + 10);\n image(this.crosshair, this.aimX, this.aimY);\n }", "function mouseout() {\n icon.transition(\"dezoom_rect\")\n .duration(750)\n .attr(\"x\", img_x)\n .attr(\"height\", img_height)\n .attr(\"width\", img_width);\n}", "function resizeCenterImage($image){\n\t\tvar theImage \t= new Image();\n\t\ttheImage.src \t= $image.attr(\"src\");\n\t\tvar imgwidth \t= theImage.width;\n\t\tvar imgheight \t= theImage.height;\n\t\t\n\t\tvar containerwidth = 460;\n\t\tvar containerheight = 330;\n\t\t\n\t\tif(imgwidth\t> containerwidth){\n\t\t\tvar newwidth = containerwidth;\n\t\t\tvar ratio = imgwidth / containerwidth;\n\t\t\tvar newheight = imgheight / ratio;\n\t\t\tif(newheight > containerheight){\n\t\t\t\tvar newnewheight = containerheight;\n\t\t\t\tvar newratio = newheight/containerheight;\n\t\t\t\tvar newnewwidth =newwidth/newratio;\n\t\t\t\ttheImage.width = newnewwidth;\n\t\t\t\ttheImage.height= newnewheight;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttheImage.width = newwidth;\n\t\t\t\ttheImage.height= newheight;\n\t\t\t}\n\t\t}\n\t\telse if(imgheight > containerheight){\n\t\t\tvar newheight = containerheight;\n\t\t\tvar ratio = imgheight / containerheight;\n\t\t\tvar newwidth = imgwidth / ratio;\n\t\t\tif(newwidth > containerwidth){\n\t\t\t\tvar newnewwidth = containerwidth;\n\t\t\t\tvar newratio = newwidth/containerwidth;\n\t\t\t\tvar newnewheight =newheight/newratio;\n\t\t\t\ttheImage.height = newnewheight;\n\t\t\t\ttheImage.width= newnewwidth;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttheImage.width = newwidth;\n\t\t\t\ttheImage.height= newheight;\n\t\t\t}\n\t\t}\n\t\t$image.css({\n\t\t\t'width'\t\t\t:theImage.width,\n\t\t\t'height'\t\t:theImage.height,\n\t\t\t'margin-top'\t:-(theImage.height/2)-10+'px',\n\t\t\t'margin-left'\t:-(theImage.width/2)-10+'px'\t\n\t\t});\n\t}", "function processImage() {\n // if there is an image tag inside the container\n // and it has a src setted\n if(f.o.src && f.o.src != \"\")\n {\n\n // if container size if not setted resize it to the image size\n if (Math.floor(f.$el.height()) <= 0) { f.o.clearhg = true; f.$el.height(f.o.naturalimghg); } \n if (Math.floor(f.$el.width()) <= 0) { f.o.clearwd = true; f.$el.width(f.o.naturalimgwd ); }\n\n // get the container size\n f.o.containerwd = f.$el.width();\n f.o.containerhg = f.$el.height();\n\n // get the size of the visible area for the image we need this \n // to not draw the image outside the parent container\n f.o.imghg = ((f.o.naturalimgwd/f.o.naturalimghg < f.o.containerwd/f.o.containerhg) ? \n f.o.containerhg :\n Math.ceil(f.o.containerwd/f.o.naturalimgwd * f.o.naturalimghg)); \n\n f.o.imgwd = ((f.o.naturalimgwd/f.o.naturalimghg < f.o.containerwd/f.o.containerhg) ? \n Math.ceil(f.o.containerhg/f.o.naturalimghg * f.o.naturalimgwd) :\n f.o.containerwd);\n\n }\n else {\n // if no principal image takes the container size \n f.o.imgwd = f.o.containerwd = f.$el.width();\n f.o.imghg = f.o.containerhg = f.$el.height();\n }\n // calculate margin for horizontal alingment inside the container\n f.o.marginleft = (f.o.containerwd > f.o.imgwd) ? (f.o.containerwd/2) - (f.o.imgwd/2) : 0;\n\n }", "function onMouseMove(e) {\n\tif (box != null) {\n\t\t// if the mouse hasn't moved much, it might just be a click and not a drag, so you shouldn't make a new box yet\n\t\tif (!click || e.layerPoint.distanceTo(clickStart.layerPoint) > MAX_CLICK_MOVE) {\n\t\t\tclick = false;\n\t\t\tbox.setBounds(L.latLngBounds(e.latlng, clickStart.latlng));\n\t\t\tminibox.addTo(minimap).setBounds(box.getBounds());\n\t\t\taddMiniBox(minimap);\n\t\t\tshowHandles();\n\t\t\tminimap.fitBounds(box.getBounds());\n\t\t}\n\t} else if (!selected) {\n minimap.setView(e.latlng, 21);\n }\n}", "centerSelection() {\n var range = this.getSelectionRange();\n var pos = {\n row: Math.floor(range.start.row + (range.end.row - range.start.row) / 2),\n column: Math.floor(range.start.column + (range.end.column - range.start.column) / 2)\n };\n this.renderer.alignCursor(pos, 0.5);\n }", "function cropConnection(e) {\n var context = e.context, connection;\n if (!context.cropped) {\n connection = context.connection;\n connection.waypoints = connectionDocking.getCroppedWaypoints(connection);\n context.cropped = true;\n }\n }", "function displayImgAtMouse(img, width, height){\n if(mouseX > 0 && mouseY > 0){\n image(img, mouseX, mouseY, width, height);\n }\n}", "function mouseover() {\n icon.transition(\"zoom_rect\")\n .duration(750)\n .attr(\"x\", \"80\")\n .attr(\"height\", 250)\n .attr(\"width\", 250);\n}", "function drawImageProp(cropped, img, x, y, w, h, offsetX, offsetY) {\n\n\t\t if (arguments.length === 2) {\n\t\t x = y = 0;\n\t\t w = cropped.width;\n\t\t h = cropped.height;\n\t\t }\n\n\t\t /// default offset is center\n\t\t offsetX = offsetX ? offsetX : 0.5;\n\t\t offsetY = offsetY ? offsetY : 0.5;\n\n\t\t /// keep bounds [0.0, 1.0]\n\t\t if (offsetX < 0) offsetX = 0;\n\t\t if (offsetY < 0) offsetY = 0;\n\t\t if (offsetX > 1) offsetX = 1;\n\t\t if (offsetY > 1) offsetY = 1;\n\n\t\t //get real size\n\t\t var newImg = new Image();\n\t\t newImg.src = img.src;\n\n\t\t var iw = newImg.width,\n\t\t ih = newImg.height,\n\t\t r = Math.min(w / iw, h / ih),\n\t\t nw = iw * r, /// new prop. width\n\t\t nh = ih * r, /// new prop. height\n\t\t cx, cy, cw, ch, ar = 1;\n\n\t\t /// decide which gap to fill \n\t\t if (nw < w) ar = w / nw;\n\t\t if (nh < h) ar = h / nh;\n\t\t nw *= ar;\n\t\t nh *= ar;\n\n\t\t /// calc source rectangle\n\t\t cw = iw / (nw / w);\n\t\t ch = ih / (nh / h);\n\n\t\t cx = (iw - cw) * offsetX;\n\t\t cy = (ih - ch) * offsetY;\n\n\t\t /// make sure source rectangle is valid\n\t\t if (cx < 0) cx = 0;\n\t\t if (cy < 0) cy = 0;\n\t\t if (cw > iw) cw = iw;\n\t\t if (ch > ih) ch = ih;\n\n\t\t /// fill image in dest. rectangle\n\t\t var canvas = document.createElement(\"canvas\");\n\t\t canvas.width = w;\n\t canvas.height = h;\n\t\t var ctx = canvas.getContext('2d');\n\t\t ctx.drawImage(img, cx, cy, cw, ch, x, y, w, h);\n\t\t var uri = canvas.toDataURL(\"image/jpeg\", 0.8);\n\t\t cropped.src = uri;\n\t\t}", "function SelectCanvas() {\n\n // *******************************************\n // Private variables:\n // *******************************************\n\n this.annotation = null; // includes name, deleted, verified info\n this.isEditingControlPoint = 0;\n this.isMovingCenterOfMass = 0;\n this.editedControlPoints = 0; // whether the control points were edited\n \n // *******************************************\n // Public methods:\n // *******************************************\n\n this.GetAnnotation = function () {\n return this.annotation;\n };\n\n this.GetAnnoID = function () {\n if(this.annotation) return this.annotation.GetAnnoID();\n return -1;\n }\n\n this.didEditControlPoints = function () {\n return this.editedControlPoints;\n }\n\n // Attach the annotation to the canvas.\n this.AttachAnnotation = function (anno) {\n this.editedControlPoints = 0;\n this.annotation = anno;\n this.annotation.SetDivAttach('select_canvas');\n\n if(username_flag) submit_username();\n\n // Make edit popup appear.\n var pt = anno.GetPopupPoint();\n if(anno.GetVerified()) {\n this.annotation.DrawPolygon(main_image.GetImRatio());\n this.annotation.FillPolygon();\n pt = main_image.SlideWindow(pt[0],pt[1]);\n mkVerifiedPopup(pt[0],pt[1]);\n main_image.ScrollbarsOff();\n }\n else {\n this.DrawPolygon();\n main_image.SlideWindow(this.annotation.center_x,this.annotation.center_y);\n }\n };\n\n // Detach the annotation from the canvas.\n this.DetachAnnotation = function () {\n var anno = this.annotation;\n this.annotation = null;\n anno.DeletePolygon();\n\n WriteLogMsg('*Closed_Edit_Popup');\n CloseEditPopup();\n main_image.ScrollbarsOn();\n\n return anno;\n };\n\n this.ClearAnnotation = function () {\n if(this.annotation) this.annotation.DeletePolygon();\n return this.annotation;\n };\n\n this.RedrawAnnotation = function () {\n if(this.annotation) {\n this.annotation.DeletePolygon();\n this.DrawPolygon();\n }\n };\n\n // Move this canvas to the front.\n this.MoveToFront = function () {\n document.getElementById('select_canvas').style.zIndex = 0;\n document.getElementById('select_canvas_div').style.zIndex = 0;\n };\n\n // Move this canvas to the back.\n this.MoveToBack = function () {\n document.getElementById('select_canvas').style.zIndex = -2;\n document.getElementById('select_canvas_div').style.zIndex = -2;\n };\n\n // Handles when the annotation gets deleted.\n this.DeleteAnnotation = function () {\n var idx = this.annotation.GetAnnoID();\n// if(IsUserAnonymous() && (idx<num_orig_anno)) {\n if((IsUserAnonymous() || (!IsCreator(this.annotation.GetUsername()))) && (!IsUserAdmin()) && (idx<num_orig_anno) && !action_DeleteExistingObjects) {\n alert('You do not have permission to delete this polygon');\n return;\n }\n\n this.annotation.SetDeleted(1);\n\n if(idx>=num_orig_anno) {\n anno_count--;\n global_count--;\n setCookie('counter',anno_count);\n UpdateCounterHTML();\n }\n\n if(view_ObjList) {\n RemoveAnnotationList();\n LoadAnnotationList();\n }\n\n submission_edited = 0;\n old_name = this.annotation.GetObjName();\n new_name = this.annotation.GetObjName();\n WriteLogMsg('*Deleting_object');\n\n main_canvas.SubmitAnnotations(0);\n main_canvas.unselectObjects(); // Perhaps this should go elsewhere...\n main_handler.SelectedToRest();\n };\n\n this.MouseDown = function (x,y,button) {\n if(button>1) return;\n if(!this.isEditingControlPoint && this.annotation.StartMoveControlPoint(x,y,main_image.GetImRatio())) {\n this.isEditingControlPoint = 1;\n this.editedControlPoints = 1;\n }\n else if(!this.isMovingCenterOfMass && this.annotation.StartMoveCenterOfMass(x,y,main_image.GetImRatio())) {\n this.isMovingCenterOfMass = 1;\n this.editedControlPoints = 1;\n }\n else main_handler.SubmitEditLabel();\n };\n\n this.MouseMove = function (x,y,button) {\n if(button>1) return;\n if(this.isEditingControlPoint) {\n this.annotation.MoveControlPoint(x,y,main_image.GetImRatio());\n return;\n }\n if(this.isMovingCenterOfMass) {\n this.annotation.MoveCenterOfMass(x,y,main_image.GetImRatio());\n }\n };\n\n this.MouseUp = function (x,y,button) {\n if(button>1) return;\n if(this.isEditingControlPoint) {\n this.annotation.MoveControlPoint(x,y,main_image.GetImRatio());\n this.annotation.FillPolygon();\n// this.annotation.ShowControlPoints();\n this.annotation.ShowCenterOfMass(main_image.GetImRatio());\n this.isEditingControlPoint = 0;\n return;\n }\n if(this.isMovingCenterOfMass) {\n this.annotation.MoveCenterOfMass(x,y,main_image.GetImRatio());\n this.annotation.FillPolygon();\n// this.annotation.ShowControlPoints();\n this.isMovingCenterOfMass = 0;\n }\n };\n\n this.AllowAdjustPolygon = function () {\n var im_ratio = main_image.GetImRatio();\n this.annotation.ShowControlPoints();\n this.annotation.ShowCenterOfMass(im_ratio);\n };\n\n // *******************************************\n // Private methods:\n // *******************************************\n\n // Draw the polygon.\n this.DrawPolygon = function () {\n if(!this.annotation) return;\n var im_ratio = main_image.GetImRatio();\n this.annotation.DrawPolygon(im_ratio);\n this.annotation.FillPolygon();\n\n // If point has been labeled, then make autocomplete have \"point\"\n // be option:\n var isPoint = 0;\n if((this.annotation.GetPtsX().length==1) && (object_choices=='...')) {\n object_choices = 'point';\n object_choices = object_choices.split(/,/);\n isPoint = 1;\n }\n\n // If line has been labeled, then make autocomplete have \"line\"\n // and \"horizon line\" be options:\n var isLine = 0;\n if((this.annotation.GetPtsX().length==2) && (object_choices=='...')) {\n object_choices = 'line,horizon line';\n object_choices = object_choices.split(/,/);\n isLine = 1;\n }\n\n var m = main_image.GetFileInfo().GetMode();\n// if((m=='im') || (m=='mt')) {\n // Popup edit bubble:\n var pt = this.annotation.GetPopupPoint();\n pt = main_image.SlideWindow(pt[0],pt[1]);\n main_image.ScrollbarsOff();\n WriteLogMsg('*Opened_Edit_Popup');\n mkEditPopup(pt[0],pt[1],this.annotation.GetObjName());\n// }\n// else {\n// this.annotation.ShowControlPoints();\n// this.annotation.ShowCenterOfMass(im_ratio);\n// }\n\n if(isPoint || isLine) object_choices = '...';\n };\n\n}", "function setJcrop(index) {\n var imgAttrs = imgData[index];\n \n apiJcrop = $.Jcrop('#crop-img', {\n bgOpacity: config.jCropOpacity,\n //onChange: showCoords, \n onSelect: showCoords\n });\n \n if (hasCropCoords(index)) {\n var cropCoords = imgAttrs.cropCoords;\n\n var x1 = parseInt(cropCoords.x1 / imgAttrs.cropRatio, 10);\n var y1 = parseInt(cropCoords.y1 / imgAttrs.cropRatio, 10);\n var x2 = parseInt(cropCoords.x2 / imgAttrs.cropRatio, 10);\n var y2 = parseInt(cropCoords.y2 / imgAttrs.cropRatio, 10);\n\n $('#x1-val').val(cropCoords.x1),\n $('#y1-val').val(cropCoords.y1),\n $('#x2-val').val(cropCoords.x2),\n $('#y2-val').val(cropCoords.y2),\n $('#width-val').val(cropCoords.x2 - cropCoords.x1);\n $('#height-val').val(cropCoords.y2 - cropCoords.y1);\n \n apiJcrop.setSelect([ x1, y1, x2, y2 ]);\n apiJcrop.enable(); \n }\n }" ]
[ "0.67732865", "0.67732865", "0.67248094", "0.66021156", "0.6565707", "0.6516829", "0.6509342", "0.6470251", "0.62128586", "0.614087", "0.61285263", "0.6102237", "0.60938966", "0.6079338", "0.60525525", "0.6020802", "0.5998355", "0.59373134", "0.59348565", "0.5922593", "0.59047335", "0.58921206", "0.5882973", "0.5866819", "0.58645666", "0.58471", "0.58420867", "0.5829093", "0.581338", "0.58067006", "0.58039755", "0.57638985", "0.57603997", "0.57463247", "0.5736039", "0.57357436", "0.57303625", "0.57071966", "0.57037866", "0.56881464", "0.5683448", "0.56539494", "0.56458896", "0.56439394", "0.5582786", "0.55641264", "0.55619806", "0.5558414", "0.5558264", "0.55474", "0.5536176", "0.5530657", "0.55277824", "0.55264276", "0.5513218", "0.5498823", "0.54933184", "0.54812247", "0.5474778", "0.54739714", "0.5469315", "0.54625386", "0.54529077", "0.5444142", "0.54406506", "0.5433498", "0.54242384", "0.54170233", "0.5414557", "0.5405241", "0.5390492", "0.5385496", "0.5376966", "0.5376892", "0.5375139", "0.53746", "0.53623337", "0.53550214", "0.53511894", "0.53464663", "0.5346235", "0.5345934", "0.5340811", "0.5328596", "0.5324971", "0.5320186", "0.53163093", "0.5308412", "0.53058076", "0.5303214", "0.52965385", "0.5295479", "0.5294207", "0.5288205", "0.5286387", "0.52819014", "0.52781427", "0.525925", "0.5259192", "0.5242472" ]
0.70073164
0
A sample plugin that renders a Youtube video using an iframe
function Video() { const name = 'video'; const tags = [ { html: 'video', slate: 'video', md: 'video' } ]; /** * Augment the base schema with the video type * @param {*} schema */ const augmentSchema = ((schema) => { const additions = { blocks: { video: { isVoid: true, }, }, }; const newSchema = JSON.parse(JSON.stringify(schema)); newSchema.blocks = { ...newSchema.blocks, ...additions.blocks }; newSchema.document.nodes[0].match.push({ type: tags[0].slate }); return newSchema; }); /** * @param {Event} event * @param {Editor} editor * @param {Function} next */ const onEnter = (event, editor, next) => next(); /** * @param {Event} event * @param {Editor} editor * @param {Function} next */ const onKeyDown = (event, editor, next) => { switch (event.key) { case 'Enter': return onEnter(event, editor, next); default: return next(); } }; /** * @param {Object} props * @param {Editor} editor * @param {Function} next */ const renderBlock = (props, editor, next) => { const { node, attributes, children } = props; switch (node.type) { case 'video': { let { src } = node.data.get('attributes'); if (!src) { src = 'https://www.youtube.com/embed/dQw4w9WgXcQ'; } return (<iframe {...attributes} src={src} frameBorder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowFullScreen title="video" >{children}</iframe>); } default: return next(); } }; /** * @param {ToMarkdown} parent * @param {Node} value * @param {Integer} depth */ const toMarkdown = (parent, value, depth) => `<video ${value.data.get('attributeString')}/>\n\n`; /** * @param {fromMarkdown} parent */ const fromMarkdown = (stack, event, tag) => { const block = { object: 'block', type: 'video', data: Object.assign(tag), }; stack.push(block); stack.pop(); return true; }; /** * @param {fromHTML} parent */ const fromHTML = (editor, el, next) => ({ object: 'block', type: 'video', data: {}, nodes: next(el.childNodes), }); /** * When then button is clicked * * @param {Editor} editor * @param {Event} event */ const onClickButton = (editor, event) => { event.preventDefault(); alert('Video plugin button clicked!'); }; /** * Render a video toolbar button. * * @param {Editor} editor * @return {Element} */ const renderToolbar = editor => (<StyledIcon key={name} name='youtube' aria-label='youtube' className='toolbar-2x4' onMouseDown={event => onClickButton(editor, event)} />); return { name, tags, augmentSchema, onKeyDown, renderBlock, toMarkdown, fromMarkdown, fromHTML, renderToolbar }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function playYoutube(element){\r\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\r\n }", "function playYoutube(element){\r\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\r\n }", "function playYoutube(element){\r\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\r\n }", "function playYoutube(element){\r\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\r\n }", "function playYoutube(element){\r\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\r\n }", "async function getYouTubeEmbed(iframesrc) {\n const body = await r2.get(iframesrc).text;\n const tokens = body.match(/youtube.com%2Fembed%2F([^%]+)%3F/);\n if (tokens && tokens.length > 1) {\n const videoId = tokens[1];\n return `<center><iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/${videoId}\" frameborder=\"0\" allowfullscreen></iframe></center>`;\n }\n return `<iframe src=\"${iframesrc}\" frameborder=0></iframe>`;\n}", "function playYoutube(element){\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n }", "function playYoutube(element){\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n }", "function playYoutube(element){\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n }", "function playYoutube(element){\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n }", "function playYoutube(element){\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n }", "function playYoutube(element) {\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n }", "function playYoutube(element) {\n element.contentWindow.postMessage('{\"event\":\"command\",\"func\":\"playVideo\",\"args\":\"\"}', '*');\n }", "function set_youtube_embedded_code() {\n\n var youtube_url = document.getElementById('media_url').value;\n var code = extract_youtube_video_code(youtube_url);\n\n if (code != '') {\n document.getElementById('video_preview').innerHTML = generate_youtube_embedded_code(code);\n }\n\n return '';\n}", "getYoutube(link) {\n if (link) {\n return (\n <iframe\n title={this.state.youtubeEmbedLink}\n className='product-full-youtube'\n height=\"315\"\n src={this.state.youtubeEmbedLink}\n frameBorder=\"0\"\n gesture=\"media\"\n allow=\"encrypted-media\"\n allowFullScreen>\n </iframe>\n )\n }\n }", "function embedVideo(data) {\n\n $('iframe').attr('src', 'https://www.youtube.com/embed/' + data.items[0].id.videoId);\n}", "function getYtPlayer(id) {\n var ifrm = document.createElement(\"IFRAME\");\n ifrm.setAttribute(\"src\", \"https://www.youtube.com/embed/\" + id + \"?rel=0&fs=1&theme=light&loop=1&showinfo=0&disablekb=1&controls=1&autohide=1\");\n ifrm.setAttribute(\"webkitallowfullscreen\", \"\");\n ifrm.setAttribute(\"mozallowfullscreen\",\"\");\n ifrm.setAttribute(\"allowfullscreen\",\"\");\n ifrm.setAttribute(\"frameborder\", \"0\");\n ifrm.setAttribute(\"id\", \"video\");\n ifrm.style.width = 1200;\n ifrm.style.height = 675;\n return ifrm.outerHTML;\n }", "function TestComponent() {\n return (\n <div className=\"video\">\n <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/5TbUxGZtwGI\" frameBorder=\"0\" allow=\"autoplay; encrypted-media\" title=\"time video\" allowFullScreen></iframe>\n </div>\n );\n}", "function LoadYoutubeVidOnPreviewClick(id, w, h) {\n var code = '<iframe src=\"https://www.youtube.com/embed/' + id + '/?autoplay=1&autohide=1&border=0&wmode=opaque&enablejsapi=1\" width=\"' + w + '\" height=\"' + h + '\" frameborder=0 allowfullscreen style=\"border:1px solid #ccc;\" ></iframe>';\n var iframe = document.createElement('div');\n iframe.innerHTML = code;\n iframe = iframe.firstChild;\n var div = document.getElementById(\"skipser-youtubevid-\" + id);\n div.parentNode.replaceChild(iframe, div)\n}", "function loadVideo() {\n console.log(\"loading \" + flow[currentIndex].link + \" into iframe0\");\n document.getElementById(\"iframe0\").src = \"https://www.youtube.com/embed/\" + flow[currentIndex].link + \"?rel=0\";\n}", "function embedVideo(data) {\n $('iframe').attr('src', 'https://www.youtube.com/embed/' + data.items[0].id.videoId)\n $('h3').text(data.items[0].snippet.title)\n $('.description').text(data.items[0].snippet.description)\n}", "function mainVideo(id) {\n $('#video').html(`\n <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/${id}?rel=0&modestbranding=1&autohide=1&mute=1&showinfo=0&controls=0&autoplay=1\" frameborder=\"0\" allow=\"accelerometer; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n `);\n }", "function youtubeLinkReplace() {\r\n (function ($) {\r\n var videoClass = '.youtubeVideoLink';\r\n var iframeTag = '<iframe width=\"100%\" height=\"100%\" src=\"{PROTOCOL}//www.youtube.com/embed/{VIDEO_ID}\" frameborder=\"0\" allowfullscreen></iframe>';\r\n\r\n videoContainers = $(videoClass);\r\n videoContainers.each(function () {\r\n var videoContainer = $(this);\r\n\r\n var parentDiv = $(videoContainer).parent();\r\n var parentWidth = parentDiv.width();\r\n if (parentWidth > 640) {\r\n parentWidth = 640;\r\n }\r\n var videoWidth = parentWidth;\r\n var videoHeight = (parentWidth * (9 / 16)) + 24;\r\n $(videoContainer).css(\"width\", videoWidth + \"px\");\r\n $(videoContainer).css(\"height\", videoHeight + \"px\");\r\n\r\n if (parentWidth == 640) {\r\n $(videoContainer).css(\"margin\", \"0 auto\");\r\n\r\n var nextSibling = $(videoContainer).next();\r\n if (nextSibling.attr(\"class\") == \"youtubeVideoCaption\") {\r\n var captionPaddingLeft = nextSibling.css(\"paddingLeft\");\r\n captionPaddingLeft = captionPaddingLeft.replace('px', '');\r\n captionPaddingLeft = parseInt(captionPaddingLeft);\r\n var captionPaddingRight = nextSibling.css(\"paddingRight\");\r\n captionPaddingRight = captionPaddingRight.replace('px', '');\r\n captionPaddingRight = parseInt(captionPaddingRight);\r\n var captionPadding = captionPaddingLeft + captionPaddingRight;\r\n var captionWidth = videoWidth - captionPadding;\r\n nextSibling.css(\"width\", captionWidth + \"px\");\r\n nextSibling.css(\"margin\", \"0 auto\");\r\n }\r\n }\r\n\r\n var videoUrl = $(videoContainer).text();\r\n if (videoUrl.length) {\r\n var id = getIdFromUrl(videoUrl);\r\n videoTag = iframeTag.replace(/\\{VIDEO_ID\\}/g, id).replace(/\\{PROTOCOL\\}/g, window.location.protocol);\r\n videoContainer.html(videoTag);\r\n }\r\n });\r\n })(jQuery);\r\n}", "function addVideo (video) {\n try {\n let videoFrame = document.createElement('iframe')\n videoFrame.setAttribute('id','iFrame');\n videoFrame.height = '600'\n videoFrame.width = '600'\n let divIframe2 = document.querySelector('#divIframe2')\n divIframe2.height = '400'\n divIframe2.width = '400'\n divIframe2.appendChild(videoFrame)\n // Assign a variable to call the return video (line 48)\n let youTube = `https://www.youtube.com/embed/${video.id.videoId}`\n videoFrame.setAttribute('src',youTube)\n let p1 = document.createElement('p'); \n let titleDescrip = video.snippet.description \n p1.textContent = titleDescrip \n divIframe2.appendChild(p1)\n\n } catch (err) {\n console.log(error)\n }\n}", "function getYouTubeEmbed(yid) {\n var tmpl = \"<iframe width='560' height='315' src='https://www.youtube.com/embed/{{yid}}?ecver=1' frameborder='0' allowfullscreen></iframe>\";\n return template(tmpl, {yid: yid})\n}", "function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}", "function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}", "function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}", "function loadIFrame() {\n var tag = document.createElement('script');\n tag.src = 'https://www.youtube.com/iframe_api';\n var firstScriptTag = document.getElementsByTagName('script')[0];\n firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n}", "function webscrap(cb) {\n cb('https://www.youtube.com/embed/aDa2xBAfSFw')\n}", "function youtube_overlay() {\n jQuery( '.modules, .list-products-360, .parts' ).find( 'a[href*=\"youtube.com/watch\"]' ).addClass( 'video-link' ).click(function(event) {\n if ( this.player ) {\n this.player.start();\n }\n else {\n var video_id = this.href.match( /v=([^&]+)/ )[1];\n this.player = jQuery( '<div/>' ).addClass( 'video-player' )[0];\n this.player.overlay = jQuery( '<div/>' ).addClass( 'overlay' )[0];\n this.player.overlay.player = this.player;\n this.player.close = jQuery( '<button/>' ).text( 'Close' ).addClass( 'close-x' ).appendTo( this.player )[0];\n this.player.close.player = this.player;\n\n this.player.start = function() {\n jQuery( [ this, this.overlay ] ).show();\n this.iframe = jQuery( '<iframe/>', {\n type: 'text/html',\n width: '640',\n height: '435',\n frameborder: '0',\n src: '//www.youtube.com/embed/' + video_id\n }).appendTo( this )[0];\n }\n this.player.stop = function() {\n jQuery( [ this, this.overlay ] ).hide();\n jQuery( this.iframe ).remove();\n }\n\n jQuery( [ this.player.overlay, this.player.close ] ).click( function() {\n this.player.stop();\n })\n\n jQuery( document.body ).append( this.player.overlay, this.player );\n this.player.start();\n }\n event.preventDefault();\n });\n jQuery( document.body ).keyup(function(event) {\n if ( event.keyCode == 27 ) jQuery( '.video-player' ).each(function() { this.stop() });\n });\n}", "function lyt(vid_number) { //reusable for all - just pass in array index of lyt(vidz(4),'v0'), a 2nd argument 'v0' single quoted\n IDx('response_iframe_id').style='z-index:2;width:500px;height:300px';//resets iframe css incase it was altered when 'v0' was passed - no-video\n if(arguments[1]==='v0'){//check if there is a 2nd argument passed--if it is 'v0' 'video 0/video off/sound on' then do something..\n IDx('response_iframe_id').style='z-index:-4;position:absolute;top:250px;left:125px;width:0;height:0';//hide visible part of video clip\n }\n IDx('response_img_id').style.display = 'none'; /*clear img in the same spot if it is still playing-so they dont collide*/\n IDx('response_iframe_id').src = whole_url;\n setTimeout(action_after_delay_timer1, vid[vid_number].dvt); //delay before displaying iframe to not show vid load-also set back start vid time in youtube url to not miss anything\n function action_after_delay_timer1() {\n IDx('response_iframe_id').style.display = 'inline';\n //IDx('response_iframe_id').style.zIndex = '2';\n }\n setTimeout(timerGo_vid, vid[vid_number].evt); //vid close.. display off timer -- looks for timer value passed into function\n\n function timerGo_vid() {\n IDx('response_iframe_id').src = ''; //makes iframe suddenly have no src turning to black background css\n IDx('response_iframe_id').style.display = 'none'; //makes iframe disappear abruptly\n }\n}", "loadIframeApi(){\n\t\tlet tag = document.createElement('script');4\n\t\ttag.src = \"https://www.youtube.com/iframe_api\";\n\t\tlet firstScriptTag = document.getElementsByTagName('script')[0];\n\t\tfirstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n\t}", "function templateAddMediaVideo( videoType, elem, elemParent ){\n var id = elem.attr(\"id\");\n var url = (videoType != \"standalone\") ? url = elem.attr(\"data-url\") : \"\";\n var parent = ( elemParent == undefined) ? elem : elemParent;\n var videoEmbedCode = \"\";\n if( videoType == \"standalone\" ){\n videoEmbedCode += '<video id=\"standalone-wrapper\" class=\"video-js vjs-default-skin\" controls preload=\"none\" width=\"'+ elem.attr(\"data-width\") +'\" height=\"'+ elem.attr(\"data-height\") +'\"'\n + 'poster=\"'+ elem.attr(\"data-poster\") +'\">';\n for( var i = 1; i <= 3; i++ ){\n videoEmbedCode += '<source src=\"' + $(elem).attr(\"data-url\" + i) + '\" type=\"' + $(elem).attr(\"data-type\" + i) + '\" />';\n }\n videoEmbedCode += '</video>';\n }\n else if( videoType != \"standalone\" ){\n videoEmbedCode += '<iframe src=\"' + url + '\" width=\"' + elem.attr(\"data-width\") + '\" height=\"'+ elem.attr(\"data-height\") +'\" frameborder=\"0\" allowfullscreen=\"\" mozallowfullscreen=\"\" webkitallowfullscreen=\"\"></iframe>';\n if ( $.browser.msie && videoType == \"youtube\"){\n if( $.browser.version == \"8.0\" || ( $.browser.version == \"9.0\" && isIE9Std() == false )){\n url = url.replace(\"http://www.youtube.com/embed/\", \"http://www.youtube.com/v/\");\n videoEmbedCode = '<object width=\"' + elem.attr(\"data-width\") + '\" height=\"' + elem.attr(\"data-height\") + '\">'+ '<param name=\"movie\" value=\"' + url + '?fs=1&enablejsapi=1\"></param>' +\n '<param name=\"allowFullScreen\" value=\"true\"></param>' +\n '<param name=\"allowScriptAccess\" value=\"always\"></param>' +\n '<embed id=\"ytplayer\" src=\"' + url + '?fs=1&enablejsapi=1\"' + 'type=\"application/x-shockwave-flash\"' +\n 'allowfullscreen=\"true\"' + 'allowscriptaccess=\"always\"' + 'width=\"' + elem.attr(\"data-width\") + '\" height=\"' + elem.attr(\"data-height\") + '\">' +\n '</embed>' +\n '</object>';\n }\n }\n }\n parent.append( videoEmbedCode );\n destroyVideoJS();\n parent.css(\"opacity\", \"0\").css(\"visibility\",\"visible\");\n if( videoType == \"standalone\" ){ var ready = false;\n videojsHolder = _V_(\"standalone-wrapper\", {}, function(){\n if(ready == false){ ready = true;\n TweenMax.to( [$(\"#standalone-wrapper\"), parent], .6, { css:{ opacity: \"1\" }, ease:Circ.easeOut });\n }\n });\n }\n else{ TweenMax.to( parent, .6, { css:{ opacity: \"1\" }, ease:Circ.easeOut }); }\n }", "function enableYoutubeAPI(){\n container.find('iframe[src*=\"youtube.com/embed/\"]').each(function(){\n var sign = getUrlParamSign($(this).attr('src'));\n $(this).attr('src', $(this).attr('src') + sign + 'enablejsapi=1');\n });\n }", "function enableYoutubeAPI(){\n container.find('iframe[src*=\"youtube.com/embed/\"]').each(function(){\n var sign = getUrlParamSign($(this).attr('src'));\n $(this).attr('src', $(this).attr('src') + sign + 'enablejsapi=1');\n });\n }", "function createVideo(that) {\n // console.log('click');\n var iframe = document.createElement( \"iframe\" ),\n curItem = parseInt(that.getAttribute('data-posnumber'));\n\n iframe.setAttribute( \"frameborder\", \"0\" );\n iframe.setAttribute( \"allowfullscreen\", \"\" );\n iframe.setAttribute( \"src\", \"https://www.youtube.com/embed/\"+ frameNavArr[curItem] +\"?rel=0&showinfo=0&autoplay=1\" );\n that.innerHTML = \"\";\n that.appendChild( iframe );\n}", "function mainVid(id) {\n \n $('#video').html(`\n <iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/${id}\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen></iframe>\n `);\n \n }", "function loadVideo(){\n var iframe = document.createElement(\"iframe\"); // Create an iFrame with autoplay set to true\n var startTime = $(this).parent().attr('start-time');\n var video_id = $(this).parent().attr('data-id');\n iframe.setAttribute(\"src\", \"//www.youtube.com/embed/\" + video_id + \"?start=\" + startTime + \"&autoplay=1&autohide=2&border=0&wmode=opaque&enablejsapi=1&controls=1&showinfo=0&rel=0\"); // Grab the video_id and startTime parameters from the server's (getVideos.php) response to the POST request\n iframe.setAttribute(\"frameborder\", \"0\");\n iframe.setAttribute(\"id\", \"youtube-iframe\");\n this.parentNode.replaceChild(iframe, this); // Replace the YouTube thumbnail with YouTube HTML5 Player\n }", "function embedYoutubeInit(){\n var html = `<div class=\"mmModal embedYoutubeModal show\">\n <div class=\"mm-wrapper\">\n <button type=\"button\" class=\"btn btn-close-mm\"><span>×</span></button>\n <div class=\"mm-content\">\n <div class=\"mmc-header\">\n <h5 class=\"text-title\">Embed Youtube Video</h5>\n </div>\n <div class=\"mmc-body\">\n <div class=\"embedYtbForm\">\n <div class=\"form-group\">\n <label class=\"td\" for=\"title\">Youtube embed URL</label>\n <input class=\"form-control td\" id=\"embedYoutubeUrl\" type=\"text\" placeholder=\"https://www.youtube.com/embed/NZ2FKqtOTnw\">\n </div>\n <div class=\"form-group\">\n <div class=\"td\"></div>\n <div class=\"td\">\n <button class=\"btn btn-primary btn-embedytb-aplly\">Apply</button>\n <button class=\"btn btn-outline-danger btn-mem-close\">Cancel</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"mm-backdrop\"></div>\n </div>`;\n $(\"body\").append(html);\n}", "generateVideo( video ) {\n // Add video for trailer to page by embedding it\n const showVideo = document.getElementById( \"movieTrailer\" );\n const youtube = showVideo;\n const videoId = video;\n\n // Find YouTube thumbnail using given id\n const img = document.createElement( \"img\" );\n img.setAttribute( \"src\", \"http://i.ytimg.com/vi/\"\n + videoId + \"/hqdefault.jpg\" );\n img.setAttribute( \"class\", \"thumb\" );\n\n\n // Overlay the Play icon to make it look like a video player\n const circle = document.createElement( \"div\" );\n circle.setAttribute( \"class\",\"circle\" );\n\n youtube.appendChild( img );\n youtube.appendChild( circle );\n\n // Attach an onclick event to the YouTube Thumbnail\n youtube.onclick = function() {\n // Create an iFrame with autoplay set to true\n const iframe = document.createElement( \"iframe\" );\n iframe.setAttribute( \"src\",\n \"https://www.youtube.com/embed/\" + videoId\n + \"?autoplay=1&autohide=1&border=0&wmode=opaque&enablejsapi=1\" );\n\n // The height and width of the iFrame should be the same as parent\n iframe.style.width = this.style.width;\n iframe.style.height = this.style.height;\n\n // Replace the YouTube thumbnail with YouTube HTML5 Player\n this.parentNode.replaceChild( iframe, this ); \n }\n }", "function get_yt_embed(url) {\n var videoid = url.match(/(?:https?:\\/{2})?(?:w{3}\\.)?youtu(?:be)?\\.(?:com|be)(?:\\/watch\\?v=|\\/)([^\\s&]+)/);\n if(videoid != null) {\n return videoid[1];\n // return \"<iframe id=\\\"ytplayer\\\" type=\\\"text/html\\\" width=\\\"640\\\" height=\\\"390\\\" src=\\\"http://www.youtube.com/embed/\" + videoid[1] + \"?autoplay=1\\\" frameborder=\\\"0\\\"/>\";\n } else {\n return \"\";\n }\n}", "function handleVideo(videoData) {\n const videoContainer = document.getElementById(\"response-videoContainer\");\n const ytFrame = document.createElement(\"iframe\");\n ytFrame.height=315;\n ytFrame.width=420;\n ytFrame.src=videoData.url;\n\n videoContainer.appendChild(ytFrame);\n}", "function ScreenYoutube(settings, jmobj, obj, url, testurl) {\n this.settings = settings; \n this.obj = obj;\n this.url = url;\n this.jmobj = jmobj;\n this.testurl = testurl;\n \n this.cache = [];\n this.timeout = 3000;\n this.position = 0;\n this.player = null;\n this.timer = null;\n this.video_interval = 5*60*1000; // 5 minutes\n this.res_x = 1280;\n this.res_y = 720;\n \n /**\n * Initialize the player with a random video \n */\n this.init = function() {\n this.obj.html('<div id=\"ytplayer\" style=\"display: block;\"></div>');\n this.player = $('#ytplayer');\n this.player.tubeplayer({\n width: this.res_x,\n height: this.res_y,\n allowFullScreen: \"true\",\n initialVideo: \"M_eYSuPKP3Y\",\n preferredQuality: \"hd720\",\n iframed: true,\n onPlayerEnded: $.proxy(function() {\n this.jmobj.jmpress('next');\n }, this)\n });\n }\n \n /**\n * Initialize jmpress related stuff. \n */\n this.post_init = function() {\n this.obj.data(\"stepData\").exclude = true;\n this.jmobj.jmpress('reapply', this.obj);\n this.obj.on('enterStep', $.proxy(this.start, this));\n this.obj.on('leaveStep', $.proxy(this.stop, this));\n }\n \n /**\n * Parses the code part from embedded youtube url.\n */\n this.parse_url = function(url) {\n var code = url;\n if(code[code.length-1] == '/') {\n code = code.substring(0, code.length-1);\n }\n code = code.substring(code.lastIndexOf('/')+1);\n return code;\n }\n \n /**\n * Pick the next video from the playlist and start playing it. \n */\n this.start = function() {\n // Start playback.\n var video = this.cache[this.position++];\n this.player.tubeplayer('play', this.parse_url(video.url));\n\n // Start over if needed\n if(this.position >= this.cache.length) {\n this.position = 0;\n }\n }\n \n /**\n * Make the video slide invisible and attempt to restart the timer. \n */\n this.stop = function() {\n this.obj.data(\"stepData\").exclude = true;\n this.jmobj.jmpress('reapply', this.obj);\n this.timer = null;\n this.attempt_start_timer();\n }\n\n /**\n * Timer hit. Make video available. this.play will automatically pick\n * the next video from the playlist when slide is shown. If, however, \n * video playback is switched off from settings, restart the timer.\n */\n this.set_available = function() {\n if(this.settings.get('enable_videos')) {\n this.obj.data(\"stepData\").exclude = false;\n this.jmobj.jmpress('reapply', this.obj);\n } else {\n this.timer = null;\n this.attempt_start_timer();\n }\n }\n \n /**\n * Handle timer\n * - If cache has items, and timer is already on, do nothing.\n * - If cache has items, but timer is not on, start it\n * - If cache has no items, kill timer.\n */\n this.attempt_start_timer = function() {\n if(this.cache.length > 0) {\n if(this.timer == null) {\n this.timer = setTimeout($.proxy(this.set_available, this), this.video_interval);\n }\n } else {\n if(this.timer != null) {\n window.clearTimeout(this.timer);\n }\n this.timer = null;\n }\n }\n\n /**\n * If the JSON playlist request was successful, this will be executed.\n * Save cache, handle position changes and attempt to start playback timer. \n */\n this.fetch_success = function(data) {\n // Save received data to cache\n this.cache = data['playlist'];\n if(this.cache.length <= this.position) {\n this.position = 0;\n }\n \n this.attempt_start_timer();\n }\n \n /**\n * Handle playlist fetch errors. \n */\n this.fetch_error = function(jqXHR, status, errorThrown) {\n console.log(\"Error while fetching video playlist!\");\n }\n \n /**\n * Attempts to update the playlist from the server,\n * and handles possible timer timeout changes.\n */\n this.update = function() {\n // Handle timer time change\n var newtime = this.settings.get('video_interval') * 60 * 1000;\n if(newtime < 100) {\n newtime = 100; // minimum of 100 milliseconds.\n }\n if(newtime != this.video_interval) {\n this.video_interval = newtime;\n if(this.timer != null) {\n window.clearTimeout(this.timer);\n this.timer = null;\n }\n }\n \n // Request playlist changes\n $.ajax({ \n url: this.url, \n dataType: 'json', \n success: $.proxy(this.fetch_success, this),\n timeout: this.timeout,\n type: 'GET',\n error: $.proxy(this.fetch_error, this)\n });\n }\n}", "function enableYoutubeAPI(){\r\n $('iframe[src*=\"youtube.com/embed/\"]', container).forEach(function(item){\r\n addURLParam(item, 'enablejsapi=1');\r\n });\r\n }", "function enableYoutubeAPI(){\r\n $('iframe[src*=\"youtube.com/embed/\"]', container).forEach(function(item){\r\n addURLParam(item, 'enablejsapi=1');\r\n });\r\n }", "function renderYoutubeVideos(data) {\n return `\n <div class=\"row centered-text\" label='Youtube soccer video'>\n <iframe src=${youtubeEmbedder}${data.items[0].id.videoId} title= 'Soccer video' aria-live= \"assertive\"></iframe>\n </div>\n <div class= 'guide row'>\n <div class= 'item centered-text'>\n <img class='soccer-ball' src= \"http://clipart-library.com/images/pT58x9r7c.png\" alt= 'Picture of a soccer ball'><p>Regular Goal</p>\n </div>\n <div class= 'item centered-text'>\n <img class= 'penalty-kick' src= \"https://thumbs.dreamstime.com/b/den-blonda-tecknad-filmm%C3%A5lvakten-med-flailing-bev%C3%A4pnar-v%C3%A4ntande-p%C3%A5-straff-95129888.jpg\" alt= 'picture of a penalty kick'><p>Penalty Kick</p>\n </div>\n <div class= 'item centered-text'>\n <img class= 'soccer-ball-bad' src= \"https://www.toonpool.com/user/6485/files/worst_soccer_player_ever_1071775.jpg\" alt='picture of a guy kicking himself in the head'><p>Own Goal</p>\n </div>\n </div> `\n}", "renderYoutubePlayer() {\n const { videoId, id, track } = this.props.playlist[0];\n\n return (\n <YoutubePlayer\n onMouseOver={this.handleHover}\n id={id}\n videoId={videoId}\n removeVideo={this.props.removeVideo}\n channel={this.props.match.params.channel}\n addNowPlaying={this.props.addNowPlaying}\n track={track}\n />\n );\n }", "function Player(){\n return(\n <div id=\"embeddedPlayer\"><EmbeddedPlayer url=\"https://www.youtube.com/watch?v=GO5FwsblpT8\" controls={true} /></div>\n );\n}", "function enableYoutubeAPI(){\n $('iframe[src*=\"youtube.com/embed/\"]', container).forEach(function(item){\n addURLParam(item, 'enablejsapi=1');\n });\n }", "function enableYoutubeAPI(){\n $('iframe[src*=\"youtube.com/embed/\"]', container).forEach(function(item){\n addURLParam(item, 'enablejsapi=1');\n });\n }", "function enableYoutubeAPI(){\n $('iframe[src*=\"youtube.com/embed/\"]', container).forEach(function(item){\n addURLParam(item, 'enablejsapi=1');\n });\n }", "render() {\n const videoId = this.props.embed; \n const opts = {\n height: '390',\n width: '640', \n playerVars: {\n showinfo: 0, \n controls: 0, \n rel: 0,\n autoplay: 0,\n version: 3,\n playlist: videoId,\n loop: 1,\n start: 10,\n fs: 1, // Hide the full screen button\n cc_load_policy: 0, // Hide closed captions\n iv_load_policy: 3, // Hide the Video Annotations\n autohide: 1,\n modestbranding: 1,\n origin: 'https://www.behappyforonce.com'\n }\n\n };\n return (\n <div className={galleryStyle.videoContainer/*this.getOverlayClass()*/}>\n <YouTube\n ref={\"player\"}\n videoId={this.props.embed}\n opts={opts}\n className={this.getVideoClass()}\n loadEnd={this.loadEnd}\n onReady={this._onReady}\n />\n </div>\n );\n }", "function youTube(){\n\tvar params = { allowScriptAccess: \"always\" };\n var atts = { id: \"player\" };\n swfobject.embedSWF(\"http://www.youtube.com/apiplayer?enablejsapi=1&version=3\",\n \"player\", \"425\", \"356\", \"8\", null, null, params, atts);\n}", "ord_renderContent () {\n return (\n <div className=\"p_crVideo\">\n <div id=\"fb-root\" />\n <Helmet>\n <script async={true} src=\"https://platform.twitter.com/widgets.js\" charSet=\"utf-8\" />\n <script>\n {`window.fbAsyncInit = function() {\n FB.init({\n appId : '2317676415144125',\n autoLogAppEvents : true,\n xfbml : true,\n version : 'v3.2'\n });\n }`}\n </script>\n <script>\n {`(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2';\n fjs.parentNode.insertBefore(js, fjs);\n }(document, 'script', 'facebook-jssdk'))`}\n </script>\n <script>\n {`\n var tag = document.createElement('script');\n tag.src = \"https://www.youtube.com/iframe_api\";\n var firstScriptTag = document.getElementsByTagName('script')[0];\n firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n\n var player;\n function onYouTubeIframeAPIReady() {\n player = new YT.Player('main_player', {\n events: {\n 'onStateChange': onPlayerStateChange\n }\n });\n }\n\n function onPlayerStateChange(event) {\n switch(event.data) {\n case YT.PlayerState.PLAYING:\n analytics.track('VIDEO_PLAYED', {\n name: 'CR Promo - Nov 2018',\n url: '${location.href}',\n action: 'PLAY',\n video: player.getVideoData().title,\n id: player.getVideoData().video_id,\n duration: player.getDuration()\n })\n break;\n case YT.PlayerState.PAUSED:\n analytics.track('VIDEO_PLAYED', {\n name: 'CR Promo - Nov 2018',\n url: '${location.href}',\n action: 'PAUSE',\n video: player.getVideoData().title,\n id: player.getVideoData().video_id,\n pausedAt: player.getCurrentTime()\n })\n break;\n case YT.PlayerState.ENDED:\n analytics.track('VIDEO_PLAYED', {\n name: 'CR Promo - Nov 2018',\n url: '${location.href}',\n action: 'END',\n video: player.getVideoData().title,\n id: player.getVideoData().video_id,\n duration: player.getDuration()\n })\n break;\n default:\n return;\n }\n }`}\n </script>\n </Helmet>\n <div className=\"ebp-header-divider\" />\n <div className=\"p_admin_index ebp-wrap\">\n <div className=\"d_box\">\n <div className=\"p_admin_content\">\n {this.buildHeader()}\n {this.buildContent()}\n {this.buildTasks()}\n <div className=\"share-icons\">\n <span>SHARE</span>\n <div id=\"twitter_share\" className=\"share-container\" onClick={() => analytics.track('SOCIAL_SHARE_CLICKED', {\n type: 'TWITTER',\n url: location.href\n })}>\n <a onClick={() => {\n const win = window.open('https://twitter.com/share?ref_src=twsrc%5Etfw', 'ShareOnWitter', this.getWindowOptions())\n win.opener = null\n }}>\n <Icon type=\"twitter\" style={{ fontSize: 32}} />\n </a>\n </div>\n <div id=\"facebook_share\" className=\"share-container\" onClick={() => analytics.track('SOCIAL_SHARE_CLICKED', {\n type: 'FACEBOOK',\n url: location.href\n })}>\n <a onClick={() => {\n FB.ui({\n method: 'share',\n display: 'popup',\n href: 'https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.facebook.com%2FElastosCyberRepublic%2F&amp;src=sdkpreparse'\n }, (response) => { })\n }}>\n <Icon type=\"facebook\" style={{ fontSize: 32}} />\n </a>\n </div>\n <div className=\"share-container\" onClick={() => analytics.track('SOCIAL_SHARE_CLICKED', {\n type: 'TELEGRAM',\n url: location.href\n })}>\n <a href=\"https://t.me/elastosgroup\" target=\"_blank\">\n <TelegramIcon style={{ fill: '#333333' }} />\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>\n <Footer/>\n </div>\n )\n }", "function ShowYoutubeUrl(url, cache2)\n{\n\tlet id = url.match(/\\/(tt\\d+)\\//)[1];\n\tlet slate = $(\"div.ipc-slate\");\n\n\tif (slate.length !== 0)\n\t\treturn;\n\n\tlet div = $(\"<div id=imdbe_divtrailer ></div>\").html(\"<h1> \\\n<a href='https://www.youtube.com/results?search_query=\" + cache2[id][\"name\"] + \" trailer'>Search trailer on Youtube</a></h1 >\\\n\");\n\t\t$(\"div.plot_summary_wrapper\").prepend(div);\n}", "function setupYoutube(selector) {\n\t\t\tif ($(\"#youtube\").length > 0) {\n\t\t\t\t// Initialize the youtube object\n\t\t\t\twpi[\"youtube\"] = {\n\t\t\t\t\t\"player\": 0,\n\t\t\t\t\t\"TopShown\":\t0,\n\t\t\t\t\t\"Videos\": [],\n\t\t\t\t\t\"NewVideo\": false,\n\t\t\t\t\t\"carousel\": 0,\n\t\t\t\t\t\"CurrentlyPlaying\": 0,\n\t\t\t\t\t\"UpdateInfo\": function() {\n\t\t\t\t\t\t\t$(\"#youtube #currentvideo h3\").text(this.Videos[this.CurrentlyPlaying].title);\n\t\t\t\t\t\t\t$(\"#youtube #currentvideo p\").text(this.Videos[this.CurrentlyPlaying].description);\n\t\t\t\t\t\t},\n\t\t\t\t\t\"onPlayerStateChange\": function(event) {\n\t\t\t\t\t\t\tif (event.data == 0) {\n\t\t\t\t\t\t\t\twpi[\"youtube\"].NewVideo = true;\n\t\t\t\t\t\t\t} else if (event.data == -1 && wpi[\"youtube\"].NewVideo) {\n\t\t\t\t\t\t\t\tif(wpi[\"youtube\"].CurrentlyPlaying == wpi[\"youtube\"].length-1) {\n\t\t\t\t\t\t\t\t\twpi[\"youtube\"].CurrentlyPlaying = 0;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\twpi[\"youtube\"].CurrentlyPlaying++\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twpi[\"youtube\"].UpdateInfo();\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twpi[\"youtube\"].NewVideo = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t};\n\n\n\t\t\t\t$(\"#youtube h2\").after(\"<div id=\\\"currentvideo\\\"><div id=\\\"player\\\"></div><h3></h3><p></p></div>\");\n\t\t\t\tif (!isMobile) {\n\t\t\t\t $(\"#youtube\").prepend(\"<div id=\\\"ytscroller\\\"><div id=\\\"ytplaylist\\\"><ul></ul></div>\");\n\t\t\t\t $(\"#youtube\").after(\"<div id=\\\"youtubetitles\\\"><div class=\\\"title1\\\"></div><div class=\\\"title2\\\"></div><div class=\\\"title3\\\"></div></div>\");\n\t\t\t\t} else {\n\t\t\t\t $(\"#youtube\").after(\"<div id=\\\"ytscroller\\\"><div id=\\\"ytplaylist\\\"><ul></ul></div>\");\n\t\t\t\t}\n\t\t\t\tvar playlistUrl = $(\"#youtube a\").attr(\"href\");\n\t\t\t\tvar playlistid;\n\t\t\t\tif (playlistUrl.indexOf(\"playlist\") > -1) {\n\t\t\t\t\t// 2015+ style playlist URL like: https://www.youtube.com/playlist?list=PLAD192BFC56EC7A0A\n\t\t\t\t\tplaylistid = playlistUrl.replace(/.*list=([^&]+).*/, \"$1\");\n\t\t\t\t\t//console.log('new playlist');\n\t\t\t\t} else {\n\t\t\t\t\t// old style like: http://www.youtube.com/user/wpibme#p/c/AD192BFC56EC7A0A\n\t\t\t\t\tplaylistid = playlistUrl.replace(/.*\\/([a-zA-Z0-9]*)\\/?/, \"$1\");\n\t\t\t\t\t//console.log('old playlist');\n\t\t\t\t}\n\t\t\t\t//console.log('playlist id: ' + playlistid);\n\t\t\t\t// old, v2 API\n\t\t\t\t//var playlist = \"http://gdata.youtube.com/feeds/api/playlists/\"+playlistid+\"?v=2&alt=jsonc&max-results=10&orderby=position&callback=?\";\n\t\t\t\t// add &callback=? in order for getJSON to work on IE9 and lesser\n\t\t\t\tvar playlist = \"https://www.googleapis.com/youtube/v3/playlistItems?key=AIzaSyC3r_yGbuBHdsx0btpkoEaHFmkKqBBfbrs&maxResults=50&part=snippet,contentDetails&playlistId=\" + playlistid + \"&callback=?\";\n\t\t\t\t$.getJSON(playlist,\n\t\t\t\t\tfunction(data) {\n\t\t\t\t\t\t$.each(data.items, function(i, item) {\n\t\t\t\t\t\t\tvideoId = item.snippet.resourceId.videoId;\n\t\t\t\t\t\t\tvideoTitle = item.snippet.title;\n\t\t\t\t\t\t\tvideoDescription = item.snippet.description;\n\t\t\t\t\t\t\tvideoThumbnail = item['snippet']['thumbnails']['default']['url'];\n\t\t\t\t\t\t\tif (!isMobile) {\n\t\t\t\t\t\t\t $(\"#ytplaylist ul\").append(\"<li><a href=\\\"http://www.youtube.com/watch?v=\"+videoId+\"\\\" class=\\\"\"+i+\"\\\" ><img src=\\\"\"+videoThumbnail+\"\\\" /></a><span class=\\\"playbutton\\\"><\\/span><\\/li>\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t $(\"#ytplaylist ul\").append(\"<li><a href=\\\"http://www.youtube.com/watch?v=\"+videoId+\"\\\" class=\\\"\"+i+\"\\\" >\"+videoTitle+\"</a></li>\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\twpi[\"youtube\"].Videos[i] = { \"id\": videoId, \"description\": videoDescription, \"title\": videoTitle };\n\t\t\t\t\t\t});\n\t\t\t\n\t\t\t\t\t\twpi[\"youtube\"].player = new YT.Player(\"player\", {\n\t\t\t\t\t\t\theight: 210,\n\t\t\t\t\t\t\twidth: 329,\n\t\t\t\t\t\t\tvideoId: wpi[\"youtube\"].Videos[0].id,\n\t\t\t\t\t\t\tevents: {\n\t\t\t\t\t\t\t\t'onStateChange': wpi[\"youtube\"].onPlayerStateChange\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tplayerVars: {\n\t\t\t\t\t\t\t\t'rel': 0,\n\t\t\t\t\t\t\t\twmode: 'transparent'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\twpi[\"youtube\"].UpdateInfo();\n\t\t\t\t\t\tif (!isMobile) {\n\t\t\t\t\t\t wpi[\"youtube\"].carousel = $(\"#ytplaylist ul\").jcarousel({\n\t\t\t\t\t\t\tvertical: true,\n\t\t\t\t\t\t\tscroll: 1,\n\t\t\t\t\t\t\tanimation: \"slow\",\n\t\t\t\t\t\t\twrap: \"circular\",\n\t\t\t\t\t\t\tvisible: 3\n\t\t\t\t\t\t });\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$(\"#youtube li\").click(function(event) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tytid = $(this).find(\"a\").attr(\"class\");\n\t\t\t\t\t\t\twpi[\"youtube\"].player.loadVideoById(wpi[\"youtube\"].Videos[ytid].id);\n\t\t\t\t\t\t\twpi[\"youtube\"].CurrentlyPlaying = ytid;\n\t\t\t\t\t\t\twpi[\"youtube\"].UpdateInfo();\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t$(\"#youtubetitles .title1\").html(\"\").hide();\n\t\t\t\t\t\t$(\"#youtubetitles .title2\").html(\"\").hide();\n\t\t\t\t\t\t$(\"#youtubetitles .title3\").html(\"\").hide();\n\n\t\t\t\t\t\t$(\"#youtube li\").hover(function(event) {\n\t\t\t\t\t\t\tytid = $(this).find(\"a\").attr(\"class\");\n\t\t\t\t\t\t\toffset = parseInt($(\"#ytplaylist ul\").css(\"top\"), 10)/-95;\n\t\t\t\t\t\t\tfirst = $(\"#ytplaylist ul li:eq(\"+offset+\") a\").attr(\"class\");\n\t\t\t\t\t\t\tsecond = $(\"#ytplaylist ul li:eq(\"+(offset+1)+\") a\").attr(\"class\");\n\t\t\t\t\t\t\tthird = $(\"#ytplaylist ul li:eq(\"+(offset+2)+\") a\").attr(\"class\");\n\t\t\t\t\t\t\tpos = 1;\n\t\t\t\t\t\t\tif (ytid == first) {\n\t\t\t\t\t\t\t\tpos = 1;\n\t\t\t\t\t\t\t} else if (ytid == second) {\n\t\t\t\t\t\t\t\tpos = 2;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpos = 3;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$(\"#youtubetitles .title\"+pos).html(\"<p>\"+wpi[\"youtube\"].Videos[ytid].title+\"</p>\").show();\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(event) {\n\t\t\t\t\t\t\t$(\"#youtubetitles .title1\").html(\"\").hide();\n\t\t\t\t\t\t\t$(\"#youtubetitles .title2\").html(\"\").hide();\n\t\t\t\t\t\t\t$(\"#youtubetitles .title3\").html(\"\").hide();\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t}\n\t\t}", "function videoComponent( options ){\n\n this.model = {\n source:'<iframe src=\"https://www.youtube.com/embed/DWcJFNfaw9c\" ' +\n 'frameborder=\"0\" allowfullscreen></iframe>'\n };\n\n if (options && options.state){\n this.model.source = options.source;\n }\n\n // define how the model is displayed to the user\n this.views = [\n {\n // returns html to be placed in destination element\n renderer: function(model){\n return \"<div class='videoComponent'>\" + String(model.source) + \"</div>\";\n },\n destination:options.destination,\n destinationInsertionFunction:\"html\"\n\n }\n ];\n\n this.adapters = [];\n}", "function getVideo(){\n // fetching the api using fetch method\n fetch('https://youtube.googleapis.com/youtube/v3/search?part=snippet&q='+query.value+'&type=video&maxResults=20&key='+api_key)\n // retriving the data using \n .then((response)=>{\n return response.json();\n })\n .then((data)=>{\n console.log(data);\n // we will looping on the data.items\n data.items.forEach((item)=>{\n let vid =\n `<iframe type='text/html' width=\"350\" height=\"200\" src='https://www.youtube.com/embed/${item.id.videoId}' frameborder='0' allowFullScreen>\n </iframe>`;\n video.insertAdjacentHTML(\"afterend\",vid);\n }) \n })\n}", "render() {\n return (\n <div>\n <div className='twitchClip'>\n <iframe\n src={this.state.videoURL}\n height=\"540\"\n width=\"960\"\n title='clip'\n >\n </iframe>\n </div>\n </div>\n );\n }", "function loadLiveStream(videoId) {\n\n\tconsole.log(videoId);\n\tvar tag = document.createElement('script');\n\ttag.src = \"https://www.youtube.com/player_api\";\n\tvar firstScriptTag = document.getElementsByTagName('script')[0];\n\tfirstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n\tvar player;\n\n\tvar livePlayer = document.createElement('iframe');\n\t$(livePlayer).attr(\"id\", \"liveplayerview\");\n\t$(livePlayer).attr(\"type\", \"text/html\");\n\t$(livePlayer).attr(\"width\", \"640\");\n\t$(livePlayer).attr(\"height\", \"360\");\n\t$(livePlayer).attr(\"src\", \"https://www.youtube.com/embed/\" + videoId);\n\t$(livePlayer).attr(\"frameborder\", \"0\");\n\t$(\"#ytliveplayer\").replaceWith(livePlayer);\n\n}", "function loadYoutubeIframeAPI() {\n\n\tvar tag,\n\t firstScriptTag;\n\n\tif ( Number( avadaVars.status_yt ) && true === window.yt_vid_exists ) {\n\t\ttag = document.createElement( 'script' );\n\t\ttag.src = 'https://www.youtube.com/iframe_api';\n\t\tfirstScriptTag = document.getElementsByTagName( 'script' )[0];\n\t\tfirstScriptTag.parentNode.insertBefore( tag, firstScriptTag );\n\t}\n}", "function enableYoutubeAPI(){\r\n container.find('iframe[src*=\"youtube.com/embed/\"]').each(function(){\r\n addURLParam($(this), 'enablejsapi=1');\r\n });\r\n }", "function enableYoutubeAPI(){\r\n container.find('iframe[src*=\"youtube.com/embed/\"]').each(function(){\r\n addURLParam($(this), 'enablejsapi=1');\r\n });\r\n }", "function enableYoutubeAPI(){\r\n container.find('iframe[src*=\"youtube.com/embed/\"]').each(function(){\r\n addURLParam($(this), 'enablejsapi=1');\r\n });\r\n }", "function enableYoutubeAPI() {\n $('iframe[src*=\"youtube.com/embed/\"]', container).forEach(function (item) {\n addURLParam(item, 'enablejsapi=1');\n });\n }", "function prepareHtml(ht,description,callback){\n h2js.parse(ht, {\n 'src': function ($doc) {\n return $doc.find('iframe').attr('src');\n }\n }, function (err, video_result) {\n if(err){\n console.log(err);\n callback(ht);\n }else{\n var html='<iframe ng-src=\"'+video_result.src+'\" width=\"100%\" height=300px></iframe>';\n callback(html);\n }\n\n });\n\n}", "function onYouTubePlayerAPIReady() {\n\n // Initialise the fancyBox after the DOM is loaded\n $(document).ready(function() {\n $(\".fancybox-video\")\n .attr('rel', 'gallery')\n .fancybox({\n openEffect : 'none',\n closeEffect : 'none',\n nextEffect : 'none',\n prevEffect : 'none',\n padding : 0,\n margin : 50,\n beforeShow : function() {\n // Find the iframe ID\n var id = $.fancybox.inner.find('iframe').attr('id');\n\n // Create video player object and add event listeners\n var player = new YT.Player(id, {\n events: {\n 'onReady': onPlayerReady,\n 'onStateChange': onPlayerStateChange\n }\n });\n }\n });\n });\n\n}", "function onYouTubeIframeAPIReady() {\n player = new YT.Player('post_player', {\n height: '390',\n width: '640',\n videoId: yt_video_id[2],\n events: {\n 'onReady': onPlayerReady,\n 'onStateChange': onPlayerStateChange\n }\n });\n }", "function addVideoToDOM(videoId) {\n\t$('#video').html(`<iframe\n\t\twidth=\"560\"\n\t\theight=\"315\"\n\t\tsrc=\"https://www.youtube.com/embed/${videoId}\"\n\t\tframeborder=\"0\"\n\t\tallowfullscreen>\n\t\t</iframe>`\n\t\t);\n}", "function enableYoutubeAPI(){\n container.find('iframe[src*=\"youtube.com/embed/\"]').each(function(){\n addURLParam($(this), 'enablejsapi=1');\n });\n }", "function enableYoutubeAPI(){\n container.find('iframe[src*=\"youtube.com/embed/\"]').each(function(){\n addURLParam($(this), 'enablejsapi=1');\n });\n }", "function generateYoutubeModal() {\n let trigger = $(\"#HowToPlay\");\n trigger.click(function() {\n let targetModal = $(this).data(\"target\");\n videoSource = $(this).attr(\"data-video\");\n $(`${targetModal} iframe`).attr('src', videoSource);\n $(`${targetModal} button.close`).click(function() {//fast and kinda dirty way of getting the elements in the modal, but as long as it works\n $(`${targetModal} iframe`).attr('src', ''); //destroys the videoplayer when the modal closes, should keep potential issues to a minimum.\n });\n });\n}", "function onPlayerReady(event) {\r\n log(\"onPlayerReady\");\r\n if (!dataChk(cjvideoTmpPlayer)) {\r\n return;\r\n }\r\n\r\n var y_data = event.target.getVideoData();\r\n\r\n cjvideoTmpPlayer.opt.youtube_mc = event.target;\r\n //cjvideoTmpPlayer.opt.cover = thumb[target_num].url;\r\n //cjvideoTmpPlayer.info_obj.title = y_data.title;\r\n \r\n if(cjvideoTmpPlayer.opt.isConfigYoutube) {\r\n \r\n cjvideoTmpPlayer.htmlMake();\r\n \r\n } else {\r\n loadData('https://www.googleapis.com/youtube/v3/videos?part=snippet%20&mine=true&key=AIzaSyA35NDEKBJXS43xP1yuZOScpnCE3nZwA0U&id=' + cjvideoTmpPlayer.opt.youtube_id, 'jsonp', function () {\r\n\r\n log(\"유투브 오케이\");\r\n try {\r\n var data = arguments[1];\r\n var yt_data = data.items[0].snippet;\r\n\r\n cjvideoTmpPlayer.info_obj.title = yt_data.title;\r\n\r\n var p = 0;\r\n for (var i in yt_data.thumbnails) {\r\n\r\n if (p < yt_data.thumbnails[i].width) {\r\n cjvideoTmpPlayer.opt.cover = yt_data.thumbnails[i].url;\r\n }\r\n\r\n p = yt_data.thumbnails[i].width;\r\n\r\n if (i == \"maxres\") {\r\n break;\r\n }\r\n }\r\n cjvideoTmpPlayer.opt.cover = String(cjvideoTmpPlayer.opt.cover).replace(\"https://\", \"http://\");\r\n\r\n //media_data.url.pageurl = yt_data.player[\"default\"];\r\n //media_data.cdn\r\n\r\n log(\"유투브 커버 : \" + cjvideoTmpPlayer.opt.cover);\r\n\r\n } catch (e) {\r\n log(e);\r\n }\r\n cjvideoTmpPlayer.htmlMake();\r\n\r\n }, function () {\r\n\r\n });\r\n }\r\n\r\n \r\n\r\n\r\n //event.target.mute();\r\n //event.target.playVideo();\r\n //event.target.pauseVideo();\r\n}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function onYouTubeIframeAPIReady(){ytp.YTAPIReady||(ytp.YTAPIReady=!0,jQuery(document).trigger(\"YTAPIReady\"))}", "function displayResult(videoSnippet) {\n\tvar title = videoSnippet.title;\n\tvar videoId = videoSnippet.resourceId.videoId;\n\tvar thumbnail = videoSnippet.thumbnails.default.url;\n\tvar base = \"http://www.youtube.com/embed/\";\n\tvar video_frame = '<iframe id=\"player\" typle=\"text/html\" width=\"640\" height=\"390\" src=\"' + base + videoId + '?enablejsapi=1&origin=http://www.yat-net.com\" frameborder=\"0\"></iframe>';\n\tvar video_url = base + videoId + '?enablejsapi=1&origin=' + domain;\n\n\t$('#video-container').append(\n\t\t'<p>' + title + ' - ' + videoId + '</p>' +\n \t\t'<a href=\"' + video_url + '\" class=\"youtube\"><img src=\"' + thumbnail + '\" /></a>'\n\t);\n\t$(\".youtube\").colorbox({iframe:true, innerWidth:640, innerHeight:390});\n}", "function page() {\n\n return (\n <div>\n <iframe className=\"video\" width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/muLu_W6ghh0\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>\n <Markdown>{`\n# [La cellule et la membrane plasmique](https://www.youtube.com/watch?v=BxZSeWZyt4k)\nskelet\n\n`}</Markdown>\n </div>\n );\n}", "function youtubeVideo(tag) {\n var queryURL =\n \"https://www.googleapis.com/youtube/v3/search?type=video&maxResults=25&q=\" +\n tag +\n \"&key=AIzaSyCgpNgJWhqC8iroTq5_Sbp53ulbGGbafzU\";\n\n $.ajax({\n url: queryURL,\n method: \"GET\",\n }).then(function (response) {\n //this generates a random number between 1 and 25 - we don't need the for loop since we're only doing it once\n var random = Math.floor(Math.random() * 24) + 1;\n\n //this creates a variable from the video id of the youtube response, we could probably just put this directly into the queryURL code below.\n var videoID = response.items[random].id.videoId;\n\n $(\n \"#youtube\"\n ).html(`<iframe id=\"ytplayer\" type=\"text/html\" width=\"100%\" height=\"360\"\n src=\"https://www.youtube.com/embed/${videoID}?autoplay=1&origin=http://example.com\"\n frameborder=\"0\"></iframe>`);\n }); //closing bracket for youtube ajax call\n}", "function embedYoutubeLinks() {\n Thread.firstLevelYoutubeLinks.each(function() {\n var youtubeLink = $(this);\n var youtubeEmbeddedSource = 'https://youtube.com/embed/' + youtubeLink.attr('href').substring(youtubeLink.attr('href').indexOf('watch?v=') + 8); \n var youtubeEmbeddedIFrame = $('<br><iframe width=560 height=360 src=\"' + youtubeEmbeddedSource + '\" frameborder=0 allowfullscreen></iframe><br>');\n youtubeLink.before(youtubeEmbeddedIFrame);\n youtubeLink.remove();\n });\n}", "function embedTrailer(key) {\n // Create and place the embed code on the page\n player.loadVideoById({'videoId': key});\n // var embed = '<iframe id=\"player\" src=\"https://www.youtube.com/embed/' + key +\n // '\" frameborder=\"0\" allowfullscreen class=\"video\"></iframe>';\n // $('.trailer').html(embed);\n}", "function _embed (ele, youtube_id) {\r\n var iframe = _reusable_iframe_ele.cloneNode(false);\r\n\r\n if (typeof ele === 'string') {\r\n ele = document.getElementById(ele);\r\n } else if (typeof ele === 'object') {\r\n \r\n if (!ele.id) {\r\n throw Error('Must specify an \"id\" property when passing an object.');\r\n }\r\n\r\n for (var key in ele) {\r\n if (ele.hasOwnProperty(key)) {\r\n iframe.setAttribute(key, ele[key]); \r\n }\r\n }\r\n \r\n youtube_id = ele.youtube_id || youtube_id;\r\n ele = document.getElementById(ele.id);\r\n }\r\n\r\n iframe.src = _default_youtube_embed_url.replace('{{id}}', youtube_id);\r\n\r\n ele.appendChild(iframe); \r\n }", "function enableYoutubeAPI() {\n container.find('iframe[src*=\"youtube.com/embed/\"]').each(function() {\n addURLParam($(this), 'enablejsapi=1');\n });\n }", "function createYoutubePlayer(id) {\n var parent, swf;\n\n parent = document.createElement('div');\n swf = document.createElement('p');\n parent.appendChild(swf);\n swfobject.embedSWF(\"https://youtube.com/v/\" + id + \"?enablejsapi=1&version=3&border=0\", swf, \"566\", \"290\", \"8\", null, null);\n\n return parent;\n}", "function generate_embed_code(video_provider, video_id){\n\n var embed_code = \"\";\n\n if (video_provider == \"youtube.com\") {\n embed_code = '<iframe class=\"youtube-player\" type=\"text/html\" width=\"100%\" height=\"100%\" src=\"http://www.youtube.com/embed/' + video_id + '?enablejsapi=1&playerapiid=ytplayer\" frameborder=\"0\" allowfullscreen></iframe>'\n } else if (video_provider == \"vimeo.com\") {\n embed_code = '<iframe src=\"http://player.vimeo.com/video/' + video_id + '?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1\" width=\"100%\" height=\"100%\" frameborder=\"0\"></iframe>';\n }\n\n return embed_code;\n}", "function template(url, width, height) {\n return (\n '<div style=\"width:0;height:0\"> </div><div class=\"videoContainer bandcamp\" style=\"padding-bottom: ' +\n height +\n 'px\"><iframe width=\"' +\n width +\n '\" height=\"' +\n height +\n '\" src=\"' +\n encodeURI(url) + // encodeURI should prevent a passed URI from escaping / causing an XSS\n '\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>'\n );\n}", "function onYouTubeIframeAPIReady() {\n theme.Video.loadVideos();\n \n var home_player;\n function onYouTubeIframeAPIReady() {\n home_player = new YT.Player('Video-161599832034872565', {\n events: {\n 'onReady': onPlayerReady,\n 'onStateChange': onPlayerStateChange\n }\n });\n }\n}", "function getVideoLink(item) {\n var videoID = item.id.videoId;\n var thumb = item.snippet.thumbnails.high.url;\n //build output string\n var output = '<iframe auto src=\"https://youtube.com/embed/' + videoID + '?rel=0\"></iframe>' + '<div class=\"clearfix\"></div>' + '';\n return output;\n }", "function myfunction(){\n var tag = document.createElement('script');\n tag.src = \"https://www.youtube.com/iframe_api\";\n var firstScriptTag = document.getElementsByTagName('script')[0];\n firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n \n // 3. This function creates an <iframe> (and YouTube player)\n // after the API code downloads.\n return;\n}" ]
[ "0.72613734", "0.72613734", "0.72613734", "0.72613734", "0.72613734", "0.7249787", "0.7248794", "0.7248794", "0.7248794", "0.7248794", "0.7248794", "0.72089267", "0.719086", "0.71029", "0.7049943", "0.70475173", "0.7033596", "0.7028378", "0.6992733", "0.6992721", "0.6976561", "0.6960104", "0.69513506", "0.6931687", "0.6925892", "0.686596", "0.686596", "0.686596", "0.6799115", "0.6791824", "0.67783636", "0.6751568", "0.672621", "0.67023414", "0.6688727", "0.6688727", "0.6674955", "0.66640496", "0.66583", "0.66455567", "0.6631872", "0.66315144", "0.66009295", "0.65985835", "0.6592535", "0.6592535", "0.6590765", "0.65906113", "0.65783656", "0.6552562", "0.6552562", "0.6552562", "0.6547281", "0.6544155", "0.6541033", "0.65408814", "0.65396875", "0.65266085", "0.65247905", "0.651749", "0.6491842", "0.6490721", "0.64747787", "0.64747787", "0.64747787", "0.64620656", "0.64485234", "0.64401585", "0.64387053", "0.6434566", "0.64263946", "0.64263946", "0.6423617", "0.6422515", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.6417358", "0.64159834", "0.6411795", "0.63944656", "0.63941425", "0.6384458", "0.6380693", "0.63731694", "0.6368035", "0.6361723", "0.6358094", "0.63519365", "0.6350282", "0.63433117" ]
0.0
-1
Function: computerPlay() Outputs a random rock paper scissor value argument: none return: Rock Paper or Scissors Author: Bhupinder Singh Date: Sept 23 2021 Revision:
function computerPlay(){ let computerNumVal= Math.floor(Math.random()*3) //Math.random returns a value between 0 to 1 not inclusive. The value is scaled by 3 and floored //since the max number .random can provide is 0.99, the floor will round the value down. The max val will always be 2 let computerChoice; switch(computerNumVal){ case 0: computerChoice="Rock"; break; case 1: computerChoice="Scissors"; break; case 2: computerChoice="Paper"; break; default: computerChoice="Error"; break; } return computerChoice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function computerPlay() {\n const choices = [\"rock\", \"paper\", \"scissors\"];\n return choices[Math.floor(Math.random() * choices.length)];\n}", "function computerPlay() {\n const choices = ['rock', 'paper', 'scissors', 'lizard', 'spock']\n return computer = choices[Math.floor(Math.random() * choices.length)] \n }", "function computerPlay() {\n const computerSelection = Math.floor(Math.random() * 100);\n if (computerSelection <= 33) {return 'rock'}\n if (computerSelection <= 66) {return 'paper'}\n return 'scissors'\n}", "function computerPlay() {\n let choices = ['Rock', 'Paper', 'Scissors'];\n let computerChoice = Math.floor(Math.random()*choices.length);\n displayChoice(\"computer\", choices[computerChoice]);\n return choices[computerChoice];\n}", "function computerPlay() {\n\n\tconst choose = [\"rock\", \"paper\", \"scissors\"];\n\n\tlet compChoose = Math.floor(Math.random() * 3);\n\t\n\treturn choose[compChoose];\n\n}", "function computerPlay() {\n let options = [\"rock\", \"paper\", \"scissors\"];\n return options[Math.floor(Math.random() * options.length)];\n }", "function computerPlay() {\n let selector = Math.random();\n // 0-1/3 - Rock || 1/3-2/3 - Paper || 2/3-1 - Scissors\n if (selector < (1/3)) {\n computerSelection = \"rock\";\n } else if (selector < (2/3)) {\n computerSelection = \"paper\";\n } else {\n computerSelection = \"scissors\";\n }\n return computerSelection;\n}", "function computerPlay() {\n let choices = [\"Rock\", \"Paper\", \"Scissors\"];\n return choice = choices[Math.floor(Math.random() * 3)];\n }", "function computerPlay() {\n let arr = [\"rock\", \"paper\", \"scissors\"];\n choice = arr[Math.floor(Math.random() * arr.length)];\n return choice;\n }", "function computerPlay() {\r\n const randomChoice = Math.floor((Math.random() * 3) + 1);\r\n if (randomChoice === 1) {\r\n return \"scissor\";\r\n } else if (randomChoice === 2) {\r\n return \"paper\";\r\n } else {\r\n return \"rock\";\r\n }\r\n}", "function computerPlay() { //This function provides a random choice of rock, paper or scissors\n\n //first a random number generator\n function getRandomInt(max) {\n return Math.floor(Math.random() * Math.floor(max));\n }\n\n let randNum = getRandomInt(3); //Now randNum will -randomly- store three possible numbers: 0, 1 and 2.\n\n if (randNum === 0) {\n return \"Paper\";\n }\n else if (randNum === 1) {\n return \"Rock\";\n } else {\n return \"Scissors\";\n }\n}", "function computerPlay() {\n let choice = [ROCK, PAPER, SCISSORS];\n let computerChoice = choice[Math.floor(Math.random() * choice.length)];\n return computerChoice;\n }", "function computerPlay(){\n let choices = [\"rock\", \"paper\", \"scissors\"];\n let rando = Math.floor(Math.random() * 3);\n return choices[rando];\n }", "function computerPlay() {\n let computerChoice = getRandomNumber(1, 3);\n if (computerChoice === 1) {\n return 'rock';\n } else if (computerChoice === 2) {\n return 'paper';\n } else {\n return 'scissors';\n }\n}", "function computerPlay() {\n const choices = [\"ROCK\", \"SCISSORS\", \"PAPER\"];\n return choices[Math.floor(Math.random() * choices.length)];\n}", "function computerPlay() {\n var randomNum = getRandomInt(0, 2);\n var choices = [\"Rock\", \"Paper\", \"Scissors\"];\n \n computerChoice = choices[randomNum];\n}", "function computerPlay() {\r\n let rockPaperScissors = [\"rock\", \"paper\", \"scissors\"];\r\n computerSelection = rockPaperScissors[Math.floor(Math.random()*3)];\r\n return computerSelection;\r\n}", "function computerPlay() {\r\n let randNumber = Math.random() * 3;\r\n\r\n if (randNumber >= 2) {\r\n computerSelection = 'rock';\r\n } else if (randNumber >= 1) {\r\n computerSelection = 'paper';\r\n } else {\r\n computerSelection = 'scissor';\r\n }\r\n}", "function computerPlay() {\n const computer_choice = Math.floor(Math.random() * (4 - 1) + 1);\n if (computer_choice === 1) {\n return 'rock';\n } else if (computer_choice === 2) {\n return 'paper';\n } else if (computer_choice === 3) {\n return 'scissors';\n } else {\n alert(\"error with the code\");\n }\n }", "function computerPlay(){\n\tlet choiceList = ['rock', 'paper', 'scissors'];\n\tlet choiceSelected = Math.floor(Math.random() * 3);\n\treturn choiceList[choiceSelected];\n}", "function computerPlay() {\n //Generate a random number between 1 and 3 using the Math.random() function\n let num = (Math.floor(Math.random() * 3) + 1) ;\n\n //Decision tree to determine return output based on num\n if( num === 1 ) {\n return 'Rock';\n } else if ( num === 2 ) {\n return 'Paper';\n } else {\n return 'Scissors';\n }\n\n throw \"Function computerPlay() reached unknown value!\";\n}", "function computerPlay() {\n let random = Math.floor(Math.random() * 3) + 1;\n\n if (random === 1) {\n return \"Rock\";\n }\n\n if (random === 2) {\n return \"Paper\";\n }\n\n return \"Scissors\";\n}", "function computerPlay() {\n let randomNumber = Math.floor(Math.random() * 3);\n if (randomNumber === 0) {\n return 'rock';\n } else if (randomNumber === 1) {\n return 'paper';\n } else {\n return 'scissors';\n }\n}", "function computerPlay() {\n let numGen = Math.random();\n if (numGen < 0.34) {\n compChoice = 'ROCK';\n }\n else if (numGen <= 0.67) {\n compChoice = 'PAPER';\n }\n else {\n compChoice = 'SCISSORS';\n }\n console.log('Computer Choice: ' + compChoice);\n return compChoice;\n\n }", "function computerPlay() {\n let randomNumber = Math.random();\n\n if (randomNumber < 0.33) {\n return 'rock';\n } else if (randomNumber > 0.66) {\n return 'paper';\n } else {\n return 'scissors';\n }\n}", "function computerPlay() {\n let plays = ['rock', 'paper', 'scissors'];\n return plays[Math.floor(Math.random() * plays.length)];\n}", "function computerPlay(){\n let rng=Math.floor(Math.random() *3);\n if (rng===0) {computerChoice='rock'}\n else if (rng===1) {computerChoice='paper'}\n else if (rng===2) {computerChoice='scissors'}\n return computerChoice\n \n}", "function computerPlay() {\n let picker = Math.floor(Math.random() * 3);\n\n switch(picker) {\n case 0:\n return 'rock';\n case 1:\n return 'paper';\n case 2:\n return 'scissors';\n }\n}", "function computerPlay()\n{\n let hand = [`rock`, `paper`, `scissors`];\n\n let choice = hand[Math.floor(Math.random() * hand.length)];\n\n return choice;\n}", "function computerPlay()\r\n{\r\n\tchoiceNum = Math.floor(Math.random() * 3);\r\n\tlet computerChoice = \"\";\r\n\r\n\tswitch(choiceNum) \r\n\t{\r\n\t\tcase 0:\r\n\t\tcomputerChoice = \"rock\";\r\n\t\tbreak;\r\n\r\n\t\tcase 1: \r\n\t\tcomputerChoice = \"paper\";\r\n\t\tbreak;\r\n\r\n\t\tcase 2:\r\n\t\tcomputerChoice = \"scissors\";\r\n\t\tbreak;\t\r\n\t}\r\n\treturn computerChoice; \r\n}", "function computerPlay() {\n //initilaize choice\n let choice;\n\n //generate random int between [0,3)\n let num = Math.floor(Math.random()*3);\n if(num===0){\n choice = 'Rock';\n } else if(num===1){\n choice = 'Paper';\n } else{\n choice = 'Scissors';\n }\n return choice;\n}", "function computerPlay() {\r\n let computerChoice;\r\n\r\n computerChoice = Math.floor(Math.random() * 3);\r\n\r\n if (computerChoice == 0) {\r\n console.log(\"Computer choice = rock\");\r\n return \"Rock\";\r\n }\r\n else if (computerChoice == 1) {\r\n console.log(\"Computer choice = paper\");\r\n return \"Paper\";\r\n }\r\n else if (computerChoice == 2) {\r\n console.log(\"Computer choice = scissors\");\r\n return \"Scissors\";\r\n }\r\n\r\n} // End Function", "function computerPlay()\n{\n let randomNum = Math.floor(Math.random() * 3);\n if (randomNum == 0)\n {\n return \"Rock\";\n }\n else if (randomNum == 1)\n {\n return \"Paper\";\n }\n else\n {\n return \"Scissors\";\n }\n}", "function computerPlay() {\n if (Math.random() <=0.33){\n return \"rock\"\n }else if (Math.random() <=0.66) {\n return \"paper\"\n }else {\n return \"scissors\"\n }\n}", "function computerPlay() {\n\tswitch(getRandNum(0, 3)){\n\t\tcase 0:\n\t\t\treturn ROCK;\n\t\tcase 1:\n\t\t\treturn PAPER;\n\t\tcase 2:\n\t\t\treturn SCISSORS;\n\t\tdefault:\n\t\t\tconsole.log(\"Something went wrong D:\");\n\t}\n}", "function computerPlay(cpuPick){\n cpuPick = Math.floor(Math.random() * 3);\n\n if (cpuPick === 0){\n return 'rock'; \n } else if (cpuPick === 1){\n return 'paper';\n }else{\n return 'scissors';\n }\n }", "function computerPlay() {\n const turn = ['rock', 'paper', 'scissors', 'rock'];\n return turn[(Math.random() * turn.length) | 0]\n}", "function computerPlay() {\n let num;\n num = Math.floor(Math.random() * 3 + 1);\n if (num == 1) return \"Rock\";\n if (num == 2) return \"Paper\";\n else return \"Scissors\";\n}", "function computerPlay() {\n let rpsValue = randomNumber(0, 3);\n switch(rpsValue) {\n case 0:\n return \"ROCK\";\n break;\n case 1:\n return \"PAPER\";\n break;\n case 2:\n return \"SCISSORS\";\n break;\n } \n}", "function computerPlay() {\n switch (Math.floor(Math.random() * 3)) {\n case 0:\n return 'rock';\n break;\n case 1:\n return 'scissors';\n break;\n case 2:\n return 'paper';\n break;\n };\n}", "function computerPlay(){\r\n\tlet val = Math.ceil(Math.random()*3);\r\n\tswitch(val){\r\n\t\tcase 1:\r\n\t\t\treturn \"rock\";\r\n\t\tcase 2:\r\n\t\t\treturn \"paper\"\r\n\t\tcase 3:\r\n\t\t\treturn \"scissors\"\r\n\t\tdefault:\r\n\t\t\treturn 0;\r\n\t}\r\n}", "function computerPlay() {\n let option = [\"rock\", \"paper\", \"scissors\"];\n return option[Math.floor(Math.random()*3)];\n}", "function computerChoice() {\r\n choice2 = Math.round(Math.random() * 2) + 1;\r\n\r\n switch (choice2) {\r\n case 1:\r\n choice2 = \"rock\";\r\n break;\r\n case 2:\r\n choice2 = \"paper\";\r\n break;\r\n case 3:\r\n choice2 = \"scissors\";\r\n break;\r\n }\r\n }", "function computerPlay() {\n let computerRandom = ['rock' , 'paper' , 'scissors'];\n computerOut = computerRandom[Math.floor(Math.random()*computerRandom.length)];\n return computerOut;\n}", "function computerChoice() {\n\n let computerNum = Math.floor(Math.random() * 3) + 1;\n if (computerNum === 1) {\n computerPlayed('rock');\n return 'rock';\n } else if (computerNum === 2) {\n computerPlayed('paper');\n return 'paper';\n } else if (computerNum === 3) {\n computerPlayed('scissors');\n return 'scissors';\n }\n}", "function computerPlay() {\n switch (getRandom(1,4)) {\n case 1: return 'Rock'\n case 2: return 'Paper'\n case 3: return 'Scissors'\n }\n}", "function computerPlay() {\r\n let num = Math.floor(Math.random() * 3);\r\n\r\n switch (num) {\r\n case 0:\r\n return 'rock'\r\n break\r\n case 1:\r\n return 'paper'\r\n break\r\n case 2:\r\n return 'scissors'\r\n break\r\n }\r\n}", "function computerPlay() {\n // assign a variable named picked a random number from 0 to 2 [0,2]\n let picked = random(2);\n // check to see which which number was generated\n // return corresponding word as string\n return (picked === 0) ? 'Rock' : (picked === 1) ? 'Paper' : 'Scissors';\n}", "function computerPlay() {\n randnum = Math.floor(Math.random() * 3 + 1);\n if (randnum == 1) return \"rock\";\n else if (randnum == 2) return \"paper\";\n else return \"scissors\";\n}", "function computerPlay() {\n return choices[Math.floor(Math.random() * choices.length)];\n }", "function computerPlay() {\n x = Math.floor(Math.random() * (3 - 1 + 1)) + 1;\n if (x === 1) {\n return 'rock';\n }\n else if (x === 2) {\n return 'paper';\n }\n else return 'scissors';\n}", "function computerPlay() {\n let computerFist = Math.random() * 3; \n if (computerFist <= 1) {\n computerSelection = (\"rock\")\n } else if (computerFist <= 2) {\n computerSelection = (\"paper\")\n } else if (computerFist <= 3) {\n computerSelection = (\"scissors\")\n } else {\n console.log (\"The computer couldn't figure out what to pick! That's weird.\");\n };\n}", "function computerPlay() {\n // get a random number from 0 to 2, unless it's lizard Spock mode\n let randomNum;\n if (!lizardSpock) {\n randomNum = Math.floor(Math.random() * 3);\n }\n else {\n randomNum = Math.floor(Math.random() * 5);\n }\n\n // return either 'rock', 'paper', or 'scissors' (or lizard or Spock), depending on the number\n switch (randomNum) {\n case 0:\n return 'rock';\n \n case 1:\n return 'paper';\n \n case 2:\n return 'scissors';\n \n case 3: \n return 'lizard';\n \n case 4:\n return 'Spock';\n }\n}", "function computerPlay(){\n let value = Math.floor(Math.random()*3);\n let result = (value == 0)? \"rock\":\n (value==1)? \"paper\": \"scissors\";\n return result;\n}", "function computerPlay(){\n let options =['rock', 'paper', 'scissors'];\n let random = Math.floor(Math.random() * 3);\n return options[random];\n }", "function computerPlay(){\n let options = [\"rock\",\"paper\",\"scissors\"];\n let choice = options[Math.floor(Math.random() * options.length)];\n return choice;\n}", "function computerPlay (){\n let result = Math.floor((Math.random() * 3) + 1);\n\n switch (result){\n case 1:\n result = 'rock';\n break;\n\n case 2:\n result = 'paper';\n break;\n \n case 3:\n result = 'scissors';\n break;\n }\n\n return result;\n}", "function computerPlay() {\r\n const values = [\"rock\",\"paper\",\"scissors\"]\r\n let randomValue = values[Math.floor(Math.random() * values.length)];\r\n return randomValue;\r\n}", "function generatedComputerChoice() {\n let randomChoice = Math.floor(Math.random()*3)\n\n if (randomChoice === 0) {\n return computerChosen = 'rock'\n } \n else if (randomChoice === 1) {\n return computerChosen = 'paper'\n } \n else if (randomChoice === 2) {\n return computerChosen = 'scissor'\n }\n}", "function computerChoice() {\n \t//The function computerChoice assigns the random number which the computer generated to be either rock, paper, or scissors\n \tif (randNumber <= 33) {\n \t\tcompChoice=1;\n \t\t//If the variable randNumber is less than 33, the computer chooses rock\n \t} else if (randNumber <= 66) {\n \t\tcompChoice=2;\n \t\t//If the variable randNumber is less than 66, the computer chooses paper\n \t} else if (randNumber <=100) {\n \t\tcompChoice=3;\n \t\t//If the variable randNumber is less than 100, the computer chooses scissors\n \t}\n\tcompare();\n }", "function getComputerPlay() {\n var plays = ['rock', 'paper', 'scissors'];\n computerPlay = plays[Math.floor(Math.random() * plays.length)];\n}", "function computerSelection() {\n\tlet choices = [\"paper\", \"rock\", \"scissor\"];\n\n\tlet randomChoice = choices[Math.floor(Math.random() * choices.length)];\n\n\t//console.log(\"Computer choice is : \" + randomChoice);\n\treturn randomChoice;\n}", "function computerPlay() {\n let computerSelection = inputOption[Math.floor(Math.random() * inputOption.length)];\n return(computerSelection)\n}", "function computerPlay(){\r\n var rps= ['rock','paper','scissors']\r\n var zz= Math.floor(Math.random() * rps.length)\r\n return rps[zz]\r\n}", "function computerPlay () {\n var computerChoice = options[Math.floor(Math.random()*options.length)];\n return computerChoice;\n }", "function playRound(playerSelection, computerSelection){\n \n playerSelection = prompt(\"Please choose Rock, Paper, or Scissors\").toLowerCase();\n computerSelection = computerPlay();\n \n \n if (playerSelection === 'rock' && computerSelection ==='paper'){\n console.log('You lose. Paper beats Rock');\n cpuScore++;\n }else if (playerSelection === 'rock' && computerSelection ==='scissors'){\n console.log('You win. Rock beats Scissors');\n playerScore++;\n }else if (playerSelection === 'rock' && computerSelection === 'rock'){\n console.log('Tie. You both picked Rock.');\n }else if (playerSelection === 'paper' && computerSelection === 'rock'){\n console.log('You win. Paper beats Rock.');\n playerScore++;\n }else if (playerSelection === 'paper' && computerSelection === 'paper'){\n console.log('Tie. You both picked Paper.');\n }else if (playerSelection === 'paper' && computerSelection === 'scissors'){\n console.log('You lose. Scissors beats Paper.');\n cpuScore++;\n }else if (playerSelection === 'scissors' && computerSelection === 'rock'){\n console.log('You lose. Rock beats Scissors.');\n cpuScore++;\n }else if (playerSelection === 'scissors' && computerSelection === 'paper'){\n console.log('You win. Scissors beats Paper.');\n playerScore++;\n }else if (playerSelection === 'scissors' && computerSelection === 'scissors'){\n console.log('Tie. You both picked Scissors.');\n }else{\n console.log('Something went wrong. Please report the problem and refresh');\n }\n }", "function computerPlay() {\n\tconst weapons = ['rock', 'paper', 'scissors']\n\treturn weapon[weapons[getRandomInt(3)]]\n}", "function computerPlay() {\n list = ['rock', 'paper', 'scissors'];\n return list[Math.floor((Math.random() * 3))];\n}", "function computerPlay() {\n return choices[Math.floor(Math.random() * choices.length)];\n}", "function computerPlayer(){\n let randomNumber = Math.floor((Math.random()*3)+1)\n let computerChoice\n if(randomNumber == 1){\n return (computerChoice = 'rock')\n } else if(randomNumber == 2){\n return (computerChoice = 'scissors')\n } else{\n return (computerChoice = 'paper')\n }\n}", "function getComputerChoice() \n {\n \tconst CHOICES = [\"rock\", \"paper\", \"scissors\"];\n\n \tconst choice = Math.floor(Math.random() * CHOICES.length);\n\n \treturn CHOICES[choice];\n }", "function getComputerChoice(){\n Math.floor(Math.random()*3);\n \n switch (Math.floor(Math.random()*3)){\n case 0:\n return 'rock';\n break;\n case 1:\n return 'paper';\n break;\n case 2:\n return 'scissors';\n break;\n }\n }", "function computerChooses(){\r\n //randomly chooses a number\r\n let randChoice=Math.random()\r\n //checks the number and displays rock, paper or scissors\r\n if (randChoice<=.33){\r\n return 'rock'\r\n } else if(randChoice<=.66){\r\n return 'paper'\r\n } else{\r\n return 'scissors'\r\n }\r\n}", "function rockPaperScissor() {\n let erg = Math.floor(Math.random()*3) + 1\n if (erg === 1) {\n return \"rock\"\n } else if (erg === 2) {\n return \"paper\"\n } else {\n return \"scissors\"\n }\n}", "function randomComputerChoice(){\n if(randomNumber === 1){\n return computerChosen = 'rock'\n\n }\n else if(randomNumber === 2){\n return computerChosen = 'paper'\n }\n else if(randomNumber === 3){\n return computerChosen = 'scissors'\n }\n}", "function getComputerChoice(){\n const randomNumber = Math.floor(Math.random() * 3);\n // console.log(randomNumber);\n if(randomNumber === 0){\n return \"rock\"\n } else if (randomNumber === 1){\n return \"paper\"\n } else if (randomNumber === 2){\n return \"scissors\"\n }\n }", "function computerSelection() {\n computerChoicenumber = Math.floor(Math.random() * 3) + 1;\n computerChoiceword = \"\";\n\n if (computerChoicenumber == 1)\n {\n computerChoiceword = \"rock\";\n }\n else if (computerChoicenumber == 2)\n {\n computerChoiceword = \"paper\";\n }\n else if (computerChoicenumber == 3)\n {\n computerChoiceword = \"scissors\";\n }\n }", "function computerPlay()\n{\n // generate random integer 0-2\n let computerMove = getRandomInt(0, 3);\n if(debug) console.log(\"computerMove = \" + computerMove + \".\");\n\n // return appropriate move.\n switch(computerMove)\n {\n case 0: return \"Rock\";\n case 1: return \"Scissors\";\n case 2: return \"Paper\";\n default:\n Alert(\"ERROR: computerPlay switch to default - returns rock\");\n return \"Rock\";\n }\n}", "function computerPlay() {\n var randomNumber;\n randomNumber = Math.floor(Math.random() * 3) + 1;\n console.log(`Random Number: ${randomNumber}`);\n switch (randomNumber) {\n case 1:\n return 'ROCK';\n case 2:\n return 'SCISSORS';\n case 3:\n return 'PAPER';\n default:\n console.error(\"computerPlay: Random Number wasn't within desired results\");\n return 0;\n }\n}", "function computerPlay() {\n computerSelection = availablePlays[Math.floor(Math.random()*availablePlays.length)];\n console.log(computerSelection);\n return computerSelection;\n }", "function generatedComputerChoice() {\n if (randomNumber === 1) {\n return computerChosen = 'rock'\n } else if (randomNumber === 2) {\n return computerChosen = 'paper'\n } else if (randomNumber === 3) {\n return computerChosen = 'scissors'\n }\n}", "function playRound(playerSelection, computerSelection) {\n // Rock choice\n if (playerSelection == 'rock' && computerSelection == 'paper') {\n return \"You lose! Paper beats rock.\"\n } else if (playerSelection == 'rock' && computerSelection == 'scissors') {\n return \"You win! Rock beats Scissors\"\n } else if (playerSelection == computerSelection) {\n return \"It's a tie!\"\n }\n // Paper choice\n if (playerSelection == 'paper' && computerSelection == 'rock') {\n return \"You win! Paper beats Rock\"\n } else if (playerSelection == 'paper' && computerSelection == 'scissors') {\n return \"You lose! Scissors beat Paper\"\n } else if (playerSelection == computerSelection) {\n return \"It's a tie!\"\n }\n // scissor choice\n if (playerSelection == 'scissors' && computerSelection == 'rock') {\n return \"You lose! Rock beats Scissors\"\n } else if (playerSelection == 'scissors' && computerSelection == 'paper') {\n return \"You win! Scissors beat Paper\"\n } else if (playerSelection == computerSelection) {\n return \"It's a tie!\"\n\n } else {\n return \"Something went wrong\";\n }\n}", "function computerPlay(){\n let computerMove= computerRandom();\n let computerChoice;\n\n switch (computerMove){\n case 0:\n computerChoice = \"Rock\";\n break;\n case 1:\n computerChoice = \"Paper\";\n break;\n case 2:\n computerChoice = \"Scissors\";\n break;\n default:\n computerChoice = \"Rock\"\n }\n return computerChoice;\n\n}", "function generateComputerChoice() {\n const randomNumber = Math.floor(Math.random() * 3) + 1 \n \n if (randomNumber === 1) {\n computerChoice = 'Rock'\n }\n if (randomNumber === 2) {\n computerChoice = 'Scissors'\n }\n if (randomNumber === 3) {\n computerChoice = 'Paper'\n }\n computerChoiceDisplay.innerHTML = computerChoice\n }", "function getComputerChoice() {\n\n let computerPicked = Math.ceil(Math.random() * 5);\n\n if (computerPicked === 1) {\n return \"rock\";\n } else if (computerPicked === 2) {\n return \"paper\";\n } else if (computerPicked === 3) {\n return \"scissors\";\n } else if (computerPicked === 4) {\n return \"lizard\";\n } else if (computerPicked === 5) {\n return \"spock\";\n } else {\n return \"error\";\n }\n}", "function playRound(playerSelection, computerSelection){ \n \n document.getElementById('outcome').style.visibility = \"visible\";\n \n if (playerSelection === computerSelection ){\n outcome = [`Tie!!`] \n \n } else if (\n (playerSelection === 'rock' && computerSelection === 'scissors') ||\n (playerSelection === 'paper' && computerSelection === 'rock' ) ||\n (playerSelection === 'scissors' && computerSelection === 'paper')\n ){\n outcome =[`You win! ${playerSelection} beats ${computerSelection}`]\n \n } else {\n outcome = [`You lose! ${computerSelection} beats ${playerSelection}`]\n }\n \n return ( outcome); \n}", "function computerSelection() {\n const options = ['rock', 'paper', 'scissors'];\n const selection = Math.floor(Math.random() * 3);\n return options[selection];\n}", "function rps(hand){\n let computer = Math.floor(Math.random() * Math.floor(3)); // allows me to get only 3 options 0,1,2 at random each time.\n console.log(\"computer: \" +computer);\n let cp=\" \";\n if (computer===0){\n cp = \"rock\";\n } else if(computer===1){\n cp = \"paper\";\n } else if (computer===2){\n cp = \"sissors\";\n }\n console.log(\"cp: \"+ cp + \" vs you: \"+hand);\n //rock beats sissors\n if (hand=== \"rock\" && cp ===\"sissors\"){\n return \"you win\";\n //rock looses to paper\n } else if (hand ===\"rock\" && cp===\"paper\"){\n return \"you loose\";\n //paper beats rock\n } else if (hand === \"paper\" && cp === \"rock\"){\n return \"you win\";\n //paper looses to sissors\n } else if (hand === \"paper\" && cp ===\"sissors\"){\n return \"you loose\";\n //sissors beats paper\n } else if (hand === \"sissors\" && cp === \"paper\"){\n return \"you win\";\n //sissors looses to rock\n } else if (hand === \"sissors\" && cp ===\"rock\"){\n return \"you loose\";\n }\n \n //tie\n if (cp===hand){\n return \"tie\";\n }\n}", "function getComputerChoice() {\n const choice = [\"rock\", \"paper\", \"scissors\"];\n const randomNum = Math.floor(Math.random() * 3);\n\n // return random choice every time (rps)\n return choice[randomNum];\n}", "function computerPlay() \n {\n var x = Math.floor((Math.random()*3)+1); \n document.write(x);\n\n if (x==1) \n { \n document.write('Rock'+'<br>'); \n return 'Rock';\n }\n if (x==2) \n { \n document.write('Paper'+'<br>'); \n return 'Paper';\n }\n if (x==3)\n { \n document.write('Scissors'+'<br>');\n return 'Scissors'; \n }\n else\n {\n \t document.write('Rock'+'<br>'); \n \t return 'Rock';}\n }", "function playRound(playerSelection, computerSelection){\r\n\tif(playerSelection == computerSelection){\r\n\t\tconsole.log(\"tie\");\r\n\t\treturn \"Tie\";\r\n\t}else if(playerSelection == 'rock'){\r\n\t\tif(computerSelection == 'paper'){\r\n\t\t\treturn \"Lose\";\r\n\t\t}else{\r\n\t\t\treturn \"Win\";\r\n\t\t}\r\n\t}else if(playerSelection == 'paper'){\r\n\t\tif(computerSelection == 'scissors'){\r\n\t\t\treturn \"Lose\";\r\n\t\t}else{\r\n\t\t\treturn \"Win\";\r\n\t\t}\r\n\t}else{\r\n\t\tif(computerSelection == 'rock'){\r\n\t\t\treturn \"Lose\";\r\n\t\t}else{\r\n\t\t\treturn \"Win\";\r\n\t\t}\r\n\t}\r\n}", "function getComputerChoice() {\n if (randomNumber === 1) {\n return (computerChosen = \"rock\");\n } else if (randomNumber === 2) {\n return (computerChosen = \"paper\");\n } else if (randomNumber === 3) {\n return (computerChosen = \"scissors\");\n } else if (randomNumber === 4) {\n return (computerChosen = \"lizard\");\n } else if (randomNumber === 5) {\n return (computerChosen = \"spock\");\n }\n}", "function getComputerChoice() {\n const choices = ['rock', 'paper', 'scissors'];\n const randomNumber = Math.floor(Math.random() * 3);\n return choices[randomNumber];\n}", "function getComputerChoice() {\n const rand = Math.floor(Math.random() * 5) + 1;\n console.log(\"rand number \", rand);\n if (rand == 1) {\n return \"Rock\";\n } else if (rand == 2) {\n return \"Paper\";\n } else if (rand == 3) {\n return \"Scissors\";\n } else if (rand == 4) {\n return \"Lizard\";\n } else if (rand == 5) {\n return \"Spock\";\n }\n}", "function computerMove(){\n let choices = [\"compRock\",\"compPaper\",\"compScissor\"];\n\n //storing computer's choice in a variable\n computerPlay = choices[Math.floor(Math.random()*choices.length)];\n return computerPlay;\n }", "function computerPlay(){\r\n const items = [\"rock\", \"paper\",\"scissor\"]\r\n return items[Math.floor(Math.random() * items.length)]\r\n}", "function computerChoice(){\n\t//random choice\n\tvar computerMove=Math.floor(Math.random() * 3) + 1 \n\tif (computerMove==1){\n\t\tcomputerMove='rock';\n\t} else if (computerMove==2){\n\t\tcomputerMove='scissors';\n\t} else {\n\t\tcomputerMove='paper';\n\t}\n\t//computer strategy\n\tif(user.moves.length>=4){\n\t\tif(user.moves[(user.moves.length)-1].move == user.moves[(user.moves.length)-2].move && user.moves[(user.moves.length)-2].move == user.moves[(user.moves.length)-3].move && user.moves[(user.moves.length)-3].move==user.moves[(user.moves.length)-4].move)\n\t\t\tif (user.move=='rock'){\n\t\t\t\tcomputerMove='paper';\n\t\t\t}else if (user.move=='paper'){\n\t\t\t\tcomputerMove='scissors';\n\t\t\t}else if (user.move=='scissors'){\n\t\t\t\tcomputerMove='rock';\n\t\t\t}\n\t}\n\treturn computerMove;\n\t\n}", "function playRPS(playerSelection, computerSelection){\n\n console.log(\"Human Player chooses \")\n console.log(playerSelection)\n console.log(\"Computer chooses \")\n console.log(computerSelection)\n\n if (playerSelection === computerSelection){\n console.log(\"It's a tie!\")\n tie = tie + 1;\n console.log(\"Tie \" + tie);\n } else if (playerSelection === \"rock\" && computerSelection === \"scissors\"){\n console.log(\"Player Human wins! Rock beats Scissors\")\n you = you + 1;\n console.log(\"You Win Round \" + you);\n \n } else if (computerSelection === \"rock\" && playerSelection === \"scissors\"){\n console.log(\"Computer wins! rock beats Scissors\")\n comp = comp +1 ;\n console.log(\"Computer Wins Round \" + comp);\n } else if (playerSelection === \"scissors\" && computerSelection === \"paper\"){\n console.log(\"Player Human wins! scissors beats paper\")\n you = you + 1;\n console.log(\"You Win Round \" + you);\n } else if (computerSelection === \"scissors\" && playerSelection === \"paper\"){\n console.log(\"Computer wins! scissors beats Paper\")\n comp = comp + 1;\n console.log(\"Computer Wins Round \" + comp);\n } else if (playerSelection === \"paper\" && computerSelection === \"rock\"){\n console.log(\"Player Human wins! paper beats Rock\")\n you = you + 1;\n console.log(\"You Win Round \" + you);\n } else if (computerSelection === \"paper\" && playerSelection === \"rock\"){\n console.log(\"Computer wins! paper beats Rock\")\n comp = comp + 1;\n console.log(\"Computer Wins Round \" + comp);\n }\n displayWinner(comp, you)\n}", "function playRound(playerSelection, computerSelection) {\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n computerSelection = computerSelection.toLowerCase();\n if (playerSelection === computerSelection) return 0;\n else if (\n (playerSelection === \"rock\" && computerSelection === \"scissors\") ||\n (playerSelection === \"paper\" && computerSelection === \"rock\") ||\n (playerSelection === \"scissors\" && computerSelection === \"paper\")\n )\n return 1;\n else if (\n (playerSelection === \"rock\" && computerSelection === \"paper\") ||\n (playerSelection === \"paper\" && computerSelection === \"scissors\") ||\n (playerSelection === \"scissors\" && computerSelection === \"rock\")\n )\n return -1;\n else return \"error\";\n}", "function rockChoice() {\n var compChoice = showCompResult();\n // Check for win\n if (compChoice === 0) {\n playerDraws();\n } else if (compChoice === 1) {\n playerLoses();\n } else {\n playerWins();\n }\n}" ]
[ "0.8825437", "0.8809297", "0.875337", "0.8719921", "0.8627114", "0.86139256", "0.8612123", "0.8597474", "0.8585874", "0.85847056", "0.8573937", "0.8539177", "0.85364884", "0.85130465", "0.8488591", "0.8481874", "0.8467892", "0.8441602", "0.84175783", "0.8406771", "0.8405978", "0.84054244", "0.8396721", "0.83653736", "0.83271796", "0.8326023", "0.8289881", "0.82886344", "0.82794285", "0.8275015", "0.8274594", "0.8268818", "0.8268031", "0.8257299", "0.8251917", "0.82428735", "0.8236062", "0.8232941", "0.82136405", "0.82134867", "0.82117873", "0.821174", "0.8205628", "0.8198037", "0.81960917", "0.81943", "0.81844527", "0.81827146", "0.81778806", "0.81702775", "0.8161523", "0.8157546", "0.8145043", "0.81264687", "0.81087625", "0.8106082", "0.80930454", "0.8063748", "0.80276185", "0.80133206", "0.8005504", "0.7991028", "0.79865533", "0.79751205", "0.7962235", "0.7953151", "0.79506785", "0.79407805", "0.7918888", "0.79092187", "0.7905708", "0.7898646", "0.7893165", "0.7890327", "0.7887755", "0.7879304", "0.7865872", "0.7859841", "0.7852094", "0.78515846", "0.78455704", "0.78284466", "0.7823193", "0.78031445", "0.7797915", "0.77959573", "0.77754897", "0.7772864", "0.77700555", "0.7765843", "0.7762035", "0.77335", "0.7710417", "0.77095574", "0.7703955", "0.77025855", "0.7699415", "0.76981115", "0.76896447", "0.7673996" ]
0.8211035
42
Function: playRount Outputs the outcome of one round of rock paper scissors argument: playerSelection and computerSelection return: +1 if player wins, 1 if computer wins, 0 if tie Author: Bhupinder Singh Date: Sept 23 2021 Revision:
function playRound(playerSelection, computerSelection){ playerSelection= playerSelection.toLowerCase(); //converting to this format: Name. This way it's not key sensitive playerSelection= playerSelection.charAt(0).toUpperCase() + playerSelection.slice(1); let matchOutcomeMessage="error"; //initial value is set to error. let pointEarned=404;//404 indicates an invalid selection //if statements to determine outcomes. There must be a big brain algorithm outhere instead. if(playerSelection == "Rock" && computerSelection =="Scissors"){ matchOutcomeMessage= "You win! Rock beats scissors."; resultText.textContent=`${matchOutcomeMessage}`; pointEarned=1; } else if(playerSelection == "Rock" && computerSelection =="Rock"){ matchOutcomeMessage= "It's a tie! Rock cannot beat rock."; resultText.textContent=`${matchOutcomeMessage}`; pointEarned=0; } else if(playerSelection == "Rock" && computerSelection =="Paper"){ matchOutcomeMessage= "You lose! Paper beats rock."; resultText.textContent=`${matchOutcomeMessage}`; pointEarned=-1; } else if(playerSelection == "Paper" && computerSelection =="Rock"){ matchOutcomeMessage= "You win! Paper beats rock."; resultText.textContent=`${matchOutcomeMessage}`; pointEarned=1; } else if(playerSelection == "Paper" && computerSelection =="Paper"){ matchOutcomeMessage= "It's a tie! Paper cannot beat paper."; resultText.textContent=`${matchOutcomeMessage}`; pointEarned=0; } else if(playerSelection == "Paper" && computerSelection =="Scissors"){ matchOutcomeMessage= "You lose! Scissors beats paper."; resultText.textContent=`${matchOutcomeMessage}`; pointEarned=-1; } else if(playerSelection == "Scissors" && computerSelection =="Rock"){ matchOutcomeMessage= "You lose!! Rock beats scissors."; resultText.textContent=`${matchOutcomeMessage}`; pointEarned=-1; } else if(playerSelection == "Scissors" && computerSelection =="Paper"){ matchOutcomeMessage= "You win! Scissors beats paper."; resultText.textContent=`${matchOutcomeMessage}`; pointEarned=1; } else if(playerSelection == "Scissors" && computerSelection =="Scissors"){ matchOutcomeMessage= "It's a tie! Scissors cannot beat scissors."; resultText.textContent=`${matchOutcomeMessage}`; pointEarned=0; } //returning score. return pointEarned; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function playRound(playerSelection, computerSelection) {\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n computerSelection = computerSelection.toLowerCase();\n if (playerSelection === computerSelection) return 0;\n else if (\n (playerSelection === \"rock\" && computerSelection === \"scissors\") ||\n (playerSelection === \"paper\" && computerSelection === \"rock\") ||\n (playerSelection === \"scissors\" && computerSelection === \"paper\")\n )\n return 1;\n else if (\n (playerSelection === \"rock\" && computerSelection === \"paper\") ||\n (playerSelection === \"paper\" && computerSelection === \"scissors\") ||\n (playerSelection === \"scissors\" && computerSelection === \"rock\")\n )\n return -1;\n else return \"error\";\n}", "function playRound(playerSelection, computerSelection) {\r\n if (playerSelection == 'rock' && computerSelection == 'rock') {\r\n return 0\r\n } else if (playerSelection == 'paper' && computerSelection == 'paper') {\r\n return 0\r\n } else if (playerSelection == 'scissors' && computerSelection == 'scissors') {\r\n return 0\r\n } else if (playerSelection == 'rock' && computerSelection == 'paper') {\r\n return 2\r\n } else if (playerSelection == 'rock' && computerSelection == 'scissors') {\r\n return 1\r\n } else if (playerSelection == 'paper' && computerSelection == 'rock') {\r\n return 1\r\n } else if (playerSelection == 'paper' && computerSelection == 'scissors') {\r\n return 2\r\n } else if (playerSelection == 'scissors' && computerSelection == 'rock') {\r\n return 2\r\n } else if (playerSelection == 'scissors' && computerSelection == 'paper') {\r\n return 1\r\n }\r\n}", "function playRound(playerSelection, computerSelection) { \n if (playerSelection.toLowerCase() === 'rock') {\n if (computerSelection === 'scissors') {\n return 'You Win! Rock beats scissors.';\n w++;\n } else if (computerSelection === 'paper') {\n return 'You Lose! Paper beats rock.';\n l++;\n } else {\n return 'Tie!';\n }\n } else if (playerSelection.toLowerCase() === 'paper') {\n if (computerSelection === 'rock') {\n return 'You Win! Paper beats rock.';\n w++;\n } else if (computerSelection === 'scissors') {\n return 'You Lose! Scissors beats paper.';\n l++;\n } else {\n return 'Tie!';\n }\n } else if (playerSelection.toLowerCase() === 'scissors') {\n if (computerSelection === 'rock') {\n return 'You Lose! Rock beats scissors.';\n l++;\n } else if (computerSelection === 'paper') {\n return 'You Win! Scissors beats paper.';\n w++;\n } else {\n return 'Tie!';\n } \n } else {\n alert('You did not enter a valid choice. Try again.');\n round--;\n }\n }", "function playRPS(playerSelection, computerSelection){\n\n console.log(\"Human Player chooses \")\n console.log(playerSelection)\n console.log(\"Computer chooses \")\n console.log(computerSelection)\n\n if (playerSelection === computerSelection){\n console.log(\"It's a tie!\")\n tie = tie + 1;\n console.log(\"Tie \" + tie);\n } else if (playerSelection === \"rock\" && computerSelection === \"scissors\"){\n console.log(\"Player Human wins! Rock beats Scissors\")\n you = you + 1;\n console.log(\"You Win Round \" + you);\n \n } else if (computerSelection === \"rock\" && playerSelection === \"scissors\"){\n console.log(\"Computer wins! rock beats Scissors\")\n comp = comp +1 ;\n console.log(\"Computer Wins Round \" + comp);\n } else if (playerSelection === \"scissors\" && computerSelection === \"paper\"){\n console.log(\"Player Human wins! scissors beats paper\")\n you = you + 1;\n console.log(\"You Win Round \" + you);\n } else if (computerSelection === \"scissors\" && playerSelection === \"paper\"){\n console.log(\"Computer wins! scissors beats Paper\")\n comp = comp + 1;\n console.log(\"Computer Wins Round \" + comp);\n } else if (playerSelection === \"paper\" && computerSelection === \"rock\"){\n console.log(\"Player Human wins! paper beats Rock\")\n you = you + 1;\n console.log(\"You Win Round \" + you);\n } else if (computerSelection === \"paper\" && playerSelection === \"rock\"){\n console.log(\"Computer wins! paper beats Rock\")\n comp = comp + 1;\n console.log(\"Computer Wins Round \" + comp);\n }\n displayWinner(comp, you)\n}", "function playRound(playerSelection, computerSelection) {\n if (playerSelection == 'rock' && computerSelection == 'scissors') {\n playerScore++;\n return 'You win. Rock beats scissors.';\n } else if (playerSelection == 'rock' && computerSelection == 'paper') {\n computerScore++;\n return 'You lose. Paper beats rock.';\n } else if (playerSelection == 'paper' && computerSelection == 'rock') {\n playerScore++;\n return 'You win. Paper beats rock.';\n } else if (playerSelection == 'paper' && computerSelection == 'scissors') {\n computerScore++;\n return 'You lose. Scissors beat paper.';\n } else if (playerSelection == 'scissors' && computerSelection == 'paper') {\n playerScore++;\n return 'You win. Scissors beat paper.';\n } else if (playerSelection == 'scissors' && computerSelection == 'rock') {\n computerScore++;\n return 'You lose. Rock beats scissors.';\n } else {\n return 'It\\'s a tie.';\n }\n}", "function playRound(playerSelection) {\n let computerSelection = computerChoice();\n \n // get the element to show player & computer score\n const playerScoreEl = document.querySelector('#player-score');\n const computerScoreEl = document.querySelector('#computer-score');\n \n showChoice(playerSelection, computerSelection);\n \n //compare and return result\n if(playerSelection == computerSelection) {\n result = \"Its a tie, both called \" + playerSelection;\n }\n else if(playerSelection == 'rock' && computerSelection == 'scissors' \n || playerSelection == 'paper' && computerSelection == 'rock'\n || playerSelection == 'scissors' && computerSelection == 'paper') \n {\n playerWin++;\n playerScoreEl.innerHTML = `Score: ${playerWin}`;\n }\n else {\n computerWin++;\n computerScoreEl.innerHTML = `Score: ${computerWin}`\n }\n \n checkGameOver();\n}", "function playRound(playerSelection, computerSelection){\n \n playerSelection = prompt(\"Please choose Rock, Paper, or Scissors\").toLowerCase();\n computerSelection = computerPlay();\n \n \n if (playerSelection === 'rock' && computerSelection ==='paper'){\n console.log('You lose. Paper beats Rock');\n cpuScore++;\n }else if (playerSelection === 'rock' && computerSelection ==='scissors'){\n console.log('You win. Rock beats Scissors');\n playerScore++;\n }else if (playerSelection === 'rock' && computerSelection === 'rock'){\n console.log('Tie. You both picked Rock.');\n }else if (playerSelection === 'paper' && computerSelection === 'rock'){\n console.log('You win. Paper beats Rock.');\n playerScore++;\n }else if (playerSelection === 'paper' && computerSelection === 'paper'){\n console.log('Tie. You both picked Paper.');\n }else if (playerSelection === 'paper' && computerSelection === 'scissors'){\n console.log('You lose. Scissors beats Paper.');\n cpuScore++;\n }else if (playerSelection === 'scissors' && computerSelection === 'rock'){\n console.log('You lose. Rock beats Scissors.');\n cpuScore++;\n }else if (playerSelection === 'scissors' && computerSelection === 'paper'){\n console.log('You win. Scissors beats Paper.');\n playerScore++;\n }else if (playerSelection === 'scissors' && computerSelection === 'scissors'){\n console.log('Tie. You both picked Scissors.');\n }else{\n console.log('Something went wrong. Please report the problem and refresh');\n }\n }", "function playRound(playerSelection, computerSelection){\n // if statements to test if player wins or loses.\n if (playerSelection === 'rock' && computerSelection === 'paper'){\n ++compScore;\n winner = 'You Lose! Paper beats Rock.';\n return;\n } else if (playerSelection === 'rock' && computerSelection === 'scissors'){\n ++playerScore;\n winner = 'You Win! Rock beats Scissors.';\n return;\n } else if (playerSelection === 'paper' && computerSelection === 'rock'){\n ++playerScore;\n winner = 'You Win! Paper beats Rock.';\n return;\n } else if (playerSelection === 'paper' && computerSelection === 'scissors'){\n ++compScore;\n winner = 'You Lose! Scissors beats Paper.';\n return;\n } else if (playerSelection === 'scissors' && computerSelection === 'paper'){\n ++playerScore;\n winner = 'You Win! Scissors beats Paper.';\n return;\n } else if (playerSelection === 'scissors' && computerSelection === 'rock'){\n ++compScore;\n winner = 'You Lose! Rock beats Scissors.';\n return;\n } else{\n winner = `You Tied! You both selected ${playerSelection}.`;\n return;\n }\n\n}", "function playRound(playerSelection, computerSelection) {\n if (playerSelection == computerSelection) {\n return 1;\n } else if (\n (playerSelection == \"ROCK\" && computerSelection == \"SCISSORS\") ||\n (playerSelection == \"PAPER\" && computerSelection == \"ROCK\") ||\n (playerSelection == \"SCISSORS\" && computerSelection == \"PAPER\")\n ) {\n return 2;\n } else {\n return 3;\n }\n}", "function rpsRound(playerSelection, computerSelection){\n\tif(playerSelection.toUpperCase() === computerSelection){ \n\t\tconsole.log(\"Draw!\"); \n\t\treturn 2;\n\t}\n \n\telse if(playerSelection.toUpperCase() === \"ROCK\" \n\t && computerSelection === \"PAPER\") { \n\t\tconsole.log(\"You lose! \" + computerSelection\n\t\t + \" beats \" + playerSelection + \"!\" );\n\t\treturn 0;\n\t} \n \n\telse if(playerSelection.toUpperCase() === \"PAPER\"\n\t && computerSelection === \"SCISSORS\"){ \n\t\tconsole.log(\"You lose! \" + computerSelection\n\t\t + \" beats \" + playerSelection + \"!\" );\n\t\treturn 0;\n\t} \n\n\telse if(playerSelection.toUpperCase() === \"SCISSORS\"\n\t && computerSelection === \"ROCK\"){\n\t\tconsole.log(\"You lose! \" + computerSelection\n\t\t + \" beats \" + playerSelection + \"!\" );\n\t\treturn 0;\n\t}\n\n\telse{\n\t\tconsole.log(\"You win! \" + playerSelection\n\t\t + \" beats \" + computerSelection + \"!\");\n\n\t\treturn 1;\n\t}\n}", "function playRound(playerSelection, computerSelection){\n if(playerSelection === computerSelection)\n {\n return \"draw\";\n }else if(((playerSelection === \"paper\") && (computerSelection === \"rock\")) || ((playerSelection === \"scissor\") && (computerSelection === \"paper\")) || ((playerSelection === \"rock\") && (computerSelection === \"scissor\"))){\n playerScore++;\n return \"playerWin\";\n }else{\n computerScore++;\n return \"computerWin\";\n }\n}", "function playRound(playerSelection, computerSelection) {\n if (playerSelection === computerSelection) {\n return (\"It's a tie!\");\n } else if (playerSelection === \"rock\" && computerSelection === \"scissors\") {\n playerScore += 1;\n return (\"Rock beats scissors! You won this round!\");\n } else if (playerSelection === \"rock\" && computerSelection === \"paper\") {\n playerScore += 1;\n return (\"Rock beats paper! You won this round!\");\n } else if (playerSelection === \"paper\" && computerSelection === \"rock\") {\n computerScore += 1;\n return (\"Rock beats paper! Computer won this round!\");\n } else if (playerSelection === \"paper\" && computerSelection === \"scissors\") {\n computerScore += 1;\n return (\"Scissors beats paper! Computer won this round!\");\n } else if (playerSelection === \"scissors\" && computerSelection === \"rock\") {\n computerScore += 1;\n return (\"Rock beats scissors! Computer won this round!\");\n } else if (playerSelection === \"scissors\" && computerSelection === \"paper\") {\n playerScore += 1;\n return (\"Scissors beats paper! You won this round!\");\n } else {\n return (\"Something went wrong!\");\n }\n}", "function playRound(playerSelection, computerSelection) {\n var player = toCapital(playerSelection);\n var computer = toCapital(computerSelection);\n \n if (player === 'Rock' && computer === 'Rock') {\n return 'Draw! Rock equals to Rock';\n } else if (player === 'Rock' && computer === 'Paper') {\n loss++;\n return 'You Lose! Paper beats Rock';\n } else if (player === 'Rock' && computer === 'Scissors') {\n win++;\n return 'You Win! Rock beats Scissors';\n } else if (player === 'Paper' && computer === 'Rock') {\n win++;\n return 'You Win! Paper beats Rock';\n } else if (player === 'Paper' && computer === 'Paper') {\n return 'Draw! Paper equals to Paper';\n } else if (player === 'Paper' && computer === 'Scissors') {\n loss++;\n return 'You Lose! Scissors beat Paper';\n } else if (player === 'Scissors' && computer === 'Rock') {\n loss++;\n return 'You Lose! Scissors beat Paper';\n } else if (player === 'Scissors' && computer === 'Paper') {\n win++;\n return 'You Win! Rock beats Scissors';\n } else if (player === 'Scissors' && computer === 'Scissors') {\n return 'Draw! Scissors equal to Scissors';\n } else {\n alert('You did not enter a valid response. Please try again.');\n round--;\n }\n }", "function playRound(playerSelection, computerSelection) {\n if (playerSelection === computerSelection) {\n let outcome = \"Nobody wins!\"\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"paper\" && computerSelection === \"rock\") {\n let outcome = \"You win, paper beats rock!\"\n playerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"rock\" && computerSelection === \"paper\") {\n let outcome = \"You lose, paper beats rock!\"\n computerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"scissors\" && computerSelection === \"rock\") {\n let outcome = \"You lose, rock beats scissors!\"\n computerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"rock\" && computerSelection === \"scissors\") {\n let outcome = \"You win, rock beats scissors!\"\n playerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"paper\" && computerSelection === \"scissors\") {\n let outcome = \"You lose, scissors beat paper!\"\n computerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else {\n let outcome = \"You win, scissors beat paper!\"\n playerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n }\n}", "function playGame(playerSelection){\n const computerSelection=computerPlay();\n if (playerSelection == computerSelection) {\n return \"It's a tie!\";\n } else if (\n (playerSelection == \"rock\" && computerSelection == \"scissors\") ||\n (playerSelection == \"paper\" && computerSelection == \"rock\") ||\n (playerSelection == \"scissors\" && computerSelection == \"paper\")\n ) {\n playerScore++\n return \"Player 1 wins !\";\n } else if (\n (playerSelection == \"rock\" && computerSelection == \"paper\") ||\n (playerSelection == \"paper\" && computerSelection == \"scissors\") ||\n (playerSelection == \"scissors\" && computerSelection == \"rock\")\n ) {\n computerScore++\n return \"Computer wins!\";\n }\n }", "function playRound(playerSelection){\n const computerSelection = computerPlay();\n let result;\n if (playerSelection == \"rock\" && computerSelection == \"scissors\"){\n playerCount++;\n result = \"You Win! \" + playerSelection + \" beats \" + computerSelection + \"!\";\n playerScore.innerHTML = \"Your Score = \" + playerCount;\n document.body.appendChild(playerScore);\n } else if (playerSelection == \"paper\" && computerSelection == \"rock\") {\n playerCount++;\n result = \"You Win! \" + playerSelection + \" beats \" + computerSelection + \"!\";\n playerScore.innerHTML = \"Your Score = \" + playerCount;\n document.body.appendChild(playerScore);\n } else if (playerSelection == \"scissors\" && computerSelection == \"paper\"){\n playerCount++;\n result = \"You Win! \" + playerSelection + \" beats \" + computerSelection + \"!\";\n playerScore.innerHTML = \"Your Score = \" + playerCount;\n document.body.appendChild(playerScore);\n } else if (playerSelection === computerSelection){\n result = \"Draw! Try again!\";\n } else {\n computerCount++;\n result = \"You Lose! \" + computerSelection + \" beats \" + playerSelection + \"!\";\n computerScore.innerHTML = \"Computer Score = \" + computerCount;\n document.body.appendChild(computerScore);\n }\n if (computerCount === 5) alert(\"Computer Wins!\");\n if (playerCount === 5) alert(\"You Win!\");\n return result;\n \n}", "function playRound(playerSelection, computerSelection) {\n\tif (playerSelection == computerSelection){\n\t\tconsole.log(\"You selected \"+playerSelection+\"! The computer selected \" + computerSelection +\"! It's a draw!\")\n\t\tdrawn++;\n\t} else if (playerSelection == \"rock\" && computerSelection == \"paper\" || playerSelection == \"paper\" && computerSelection == \"scissors\" || playerSelection == \"scissors\" && computerSelection == \"rock\"){\n\t\tconsole.log(\"You selected \"+playerSelection+\"! The computer selected \" + computerSelection + \"! You lost! Computer won.\");\n\t\tlost++;\n\t} else if (playerSelection == \"rock\" && computerSelection == \"scissors\" || playerSelection == \"paper\" && computerSelection == \"rock\" || playerSelection == \"scissors\" && computerSelection == \"paper\"){\t\n\t\tconsole.log(\"You selected \"+playerSelection+\"! The computer selected \" + computerSelection + \"! You won!\");\n\t\twon++;\t\n\t}\n}", "function playRound(playerInput) {\n let playerSelection= playerInput.toLowerCase();\n let computerSelection= computerPlay();\n if(playerSelection=== computerSelection){\n alert(\"It is a Tie, try again!\");\n return;\n } \n //check for rock\n if(playerSelection=== \"rock\") {\n if(computerSelection=== \"scissors\") {\n alert(\"Rock beats Scissors, you win!\");\n playerScore++;\n } else {\n alert(\"Paper beats Rock, you lose!\")\n computerScore++;\n }\n }\n //check for paper\n if(playerSelection=== \"paper\") {\n if(computerSelection=== \"scissors\") {\n alert(\"Scissor beats paper, you lose!\");\n computerScore++;\n }else {\n alert(\"Paper beats Rock, you win!\")\n playerScore++;\n }\n}\n //check for scissors\n if(playerSelection=== \"scissors\"){\n if(computerSelection=== \"rock\") {\n alert(\"Rock beats Scissors, you lose!\");\n computerScore++;\n }else{\n alert(\"Scissors beats Paper, you win!\")\n playerScore++;\n }\n}\nconsole.log(playerScore);\nconsole.log(computerScore);\n}", "function playRound(playerSelection, computerSelection) {\n if (playerSelection == 'rock' || playerSelection == 'paper' || playerSelection == 'scissors'){\n gameRound++;\n if (playerSelection == computerSelection) {\n return (\"You've tied with your opponent! Select another weapon for battle!\");\n } else if (playerSelection == 'rock') {\n if (computerSelection == 'scissors') {\n playerScore++;\n return \"Rock beats scissors, you win!\";\n } else {\n computerScore++;\n return \"Paper smothers your rock, you lose!\";\n }\n } else if (playerSelection == 'paper') {\n if (computerSelection == 'rock') {\n playerScore++;\n return \"Paper smothers rock, you win!\";\n } else {\n computerScore++;\n return \"Scissors slice and dice your paper, you lose!\";\n }\n } else if (playerSelection == 'scissors') {\n if (computerSelection == 'rock') {\n computerScore++;\n return \"Rock beats scissors, you lose!\";\n } else {\n playerScore++;\n return \"Scissors slice and dice paper, you win!\";\n }\n }\n } else { \n return ('Please enter a rock, a paper, or scissors into battle!');\n }\n}", "function playRound(playerSelection, computerSelection) {\r\n if (playerSelection == \"rock\" && computerSelection == \"scissor\") {\r\n playerPoints++;\r\n return \"You have won. Rock beats Scissor\";\r\n } else if (playerSelection == \"scissor\" && computerSelection == \"paper\") {\r\n playerPoints++;\r\n return \"You have won. Scissor beats Paper\";\r\n } else if (playerSelection == \"paper\" && computerSelection == \"rock\") {\r\n playerPoints++;\r\n return \"You have won. Paper beats Rock\";\r\n } else if (playerSelection == \"paper\" && computerSelection == \"scissor\") {\r\n cpuPoints++;\r\n return \"You have lost. Scissor beats Paper\";\r\n } else if (playerSelection == \"rock\" && computerSelection == \"paper\") {\r\n cpuPoints++;\r\n return \"You have lost. Paper beats Rock\";\r\n } else if (playerSelection == \"scissor\" && computerSelection == \"rock\") {\r\n cpuPoints++;\r\n return \"You have lost. Rock beats Scissor\";\r\n } else {\r\n return \"It's a tie. Play a new Round\";\r\n }\r\n}", "function playOneRound(playerSelection, computerSelection) {\n\tif (playerSelection == \"rock\" && computerSelection == \"Paper\") {\n\t\tcomputerPoints += 1;\n\t\treturn \"You lose! Paper beats Rock \";\n\t} else if (playerSelection == \"rock\" && computerSelection == \"Scissors\") {\n\t\tplayerPoints += 1;\n\t\treturn \"You win! Rock beats Scissors \";\n\t} else if (playerSelection == \"paper\" && computerSelection == \"Rock\") {\n\t\tplayerPoints += 1;\n\t\treturn \"You win! Paper beats Rock\";\n\t} else if (playerSelection == \"paper\" && computerSelection == \"Scissors\") {\n\t\tcomputerPoints += 1;\n\t\treturn \"You lose! Scissors beats Paper \";\n\t} else if (playerSelection == \"scissors\" && computerSelection == \"Paper\") {\n\t\tplayerPoints += 1;\n\t\treturn \"You win! Scissors beats Paper \";\n\t} else if (playerSelection == \"scissors\" && computerSelection == \"Rock\") {\n\t\tcomputerPoints += 1;\n\t\treturn \"You lose! Rock beats Scissors \";\n\t} else if (playerSelection == \"rock\" && computerSelection == \"Rock\") {\n\t\treturn \"Tie! You both chose Rock\";\n\t} else if (playerSelection == \"paper\" && computerSelection == \"Paper\") {\n\t\treturn \"Tie! You both chose Paper\";\n\t} else if (playerSelection == \"scissors\" && computerSelection == \"Scissors\") {\n\t\treturn \"Tie! You both chose Scissors\";\n\t} else {\n\t\treturn \"That is not one of your choices \";\n\t}\n}", "function playRound(playerSelection, computerSelection) {\n\tif (playerSelection === computerSelection){\n \tdocument.getElementById(\"gamestatus\").innerHTML = \"Tie!\";\n console.log(\"Tie!\");\n }else if (playerSelection == 'paper' && computerSelection == 'rock'){\n document.getElementById(\"gamestatus\").innerHTML = \"You Win!\";\n console.log(\"You win!\");\n return ++userScore;\n }else if (playerSelection == 'rock' && computerSelection == 'scissors'){\n document.getElementById(\"gamestatus\").innerHTML = \"You Win!\";\n console.log(\"You win!\");\n return ++userScore;\n \n }else if (playerSelection == 'scissors' && computerSelection == 'rock'){\n document.getElementById(\"gamestatus\").innerHTML = \"You lose!\";\n console.log(\"You lose!\");\n return ++compScore;\n }else if (playerSelection == 'rock' && computerSelection == 'paper'){\n document.getElementById(\"gamestatus\").innerHTML = \"You lose!\";\n console.log(\"You lose!\");\n return ++compScore;\n }else if (playerSelection == 'paper' && computerSelection == 'scissors'){\n document.getElementById(\"gamestatus\").innerHTML = \"You lose!\";\n \tconsole.log(\"You lose!\");\n return ++compScore;\n }else if (playerSelection == 'scissors' && computerSelection == 'paper'){\n document.getElementById(\"gamestatus\").innerHTML = \"You Win!\";\n console.log(\"You win!\");\n return ++userScore;\n }else{\n console.log(\"Invalid input, please try again\");\n }\n}", "function playRound(playerSelection, computerSelection) {\n // Rock choice\n if (playerSelection == 'rock' && computerSelection == 'paper') {\n return \"You lose! Paper beats rock.\"\n } else if (playerSelection == 'rock' && computerSelection == 'scissors') {\n return \"You win! Rock beats Scissors\"\n } else if (playerSelection == computerSelection) {\n return \"It's a tie!\"\n }\n // Paper choice\n if (playerSelection == 'paper' && computerSelection == 'rock') {\n return \"You win! Paper beats Rock\"\n } else if (playerSelection == 'paper' && computerSelection == 'scissors') {\n return \"You lose! Scissors beat Paper\"\n } else if (playerSelection == computerSelection) {\n return \"It's a tie!\"\n }\n // scissor choice\n if (playerSelection == 'scissors' && computerSelection == 'rock') {\n return \"You lose! Rock beats Scissors\"\n } else if (playerSelection == 'scissors' && computerSelection == 'paper') {\n return \"You win! Scissors beat Paper\"\n } else if (playerSelection == computerSelection) {\n return \"It's a tie!\"\n\n } else {\n return \"Something went wrong\";\n }\n}", "function playRound(playerSelection, computerSelection) {\n // return value announcing the winner, and what each player chose (ex: 'Computer won! Rock beats scissors.')\n if (playerSelection === 'rock' && computerSelection === 'scissors' || playerSelection === 'scissors' && computerSelection === 'paper' || playerSelection === 'paper' && computerSelection === 'rock') {\n return `Player won! ${capitalize(playerSelection)} beats ${computerSelection}.`;\n } else if (playerSelection === computerSelection) {\n return 'It\\'s a tie!';\n } else {\n return `Computer won! ${capitalize(computerSelection)} beats ${playerSelection}.`;\n }\n}", "function playRound(playerSelection, computerSelection) {\n if (playerSelection.toLowerCase() == \"rock\" && computerSelection == \"scissors\") {\n console.log(\"You win! Rock crushes scissors\");\n writeAlert(\"You win! Rock crushes scissors\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"rock\" && computerSelection == \"paper\") {\n console.log(\"You lose! Paper covers rock\");\n writeAlert(\"You lose! Paper covers rock\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"paper\" && computerSelection == \"rock\") {\n console.log(\"You win! Paper covers rock\");\n writeAlert(\"You win! Paper covers rock\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"paper\" && computerSelection == \"scissors\") {\n console.log(\"You lose! scissors cut paper\");\n writeAlert(\"You lose! scissors cut paper\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"scissors\" && computerSelection == \"rock\") {\n console.log(\"You lose! Rock crushes scissors\");\n writeAlert(\"You lose! Rock crushes scissors\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"scissors\" && computerSelection == \"paper\") {\n console.log(\"You win! Scissors cut paper\");\n writeAlert(\"You win! Scissors cut paper\");\n score[0]++;\n return 0\n } \n // Logic extended to lizard and spock\n else if (playerSelection.toLowerCase() == \"rock\" && computerSelection == \"lizard\") {\n console.log(\"You win! Rock crushes lizard\");\n writeAlert(\"You win! Rock crushes lizard\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"lizard\" && computerSelection == \"rock\") {\n console.log(\"You lose! Rock crushes lizard\");\n writeAlert(\"You lose! Rock crushes lizard\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"lizard\" && computerSelection == \"spock\") {\n console.log(\"You win! Lizard poisons Spock\");\n writeAlert(\"You win! Lizard poisons Spock\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"spock\" && computerSelection == \"lizard\") {\n console.log(\"You lose! Lizard poisons Spock\");\n writeAlert(\"You lose! Lizard poisons Spock\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"spock\" && computerSelection == \"scissors\") {\n console.log(\"You win! Spock smashes scissors\");\n writeAlert(\"You win! Spock smashes scissors\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"scissors\" && computerSelection == \"spock\") {\n console.log(\"You lose! Spock smashes scissors\");\n writeAlert(\"You lose! Spock smashes scissors\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"scissors\" && computerSelection == \"lizard\") {\n console.log(\"You win! Scissors decapitate lizard\");\n writeAlert(\"You win! Scissors decapitate lizard\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"lizard\" && computerSelection == \"scissors\") {\n console.log(\"You lose! Scissors decapitate lizard\");\n writeAlert(\"You lose! Scissors decapitate lizard\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"lizard\" && computerSelection == \"paper\") {\n console.log(\"You win! Lizard eats paper\");\n writeAlert(\"You win! Lizard eats paper\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"paper\" && computerSelection == \"lizard\") {\n console.log(\"You lose! Lizard eats paper\");\n writeAlert(\"You lose! Lizard eats paper\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"paper\" && computerSelection == \"spock\") {\n console.log(\"You win! Paper disproves Spock\");\n writeAlert(\"You win! Paper disproves Spock\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"spock\" && computerSelection == \"paper\") {\n console.log(\"You lose! Paper disproves Spock\");\n writeAlert(\"You lose! Paper disproves Spock\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"spock\" && computerSelection == \"rock\") {\n console.log(\"You win! Spock vaporizes rock\");\n writeAlert(\"You win! Spock vaporizes rock\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"rock\" && computerSelection == \"spock\") {\n console.log(\"You lose! Spock vaporizes rock\");\n writeAlert(\"You lose! Spock vaporizes rock\");\n score[1]++;\n return 1\n } else {\n console.log(\"It's a draw!\");\n writeAlert(\"It's a draw!\");\n return 2\n }\n}", "function playRound(playerSelection, computerSelection) {\n \n\n if (playerSelection === \"rock\") {\n if(computerSelection === \"paper\") {\n computerScore += 1;\n document.getElementById(\"result\").innerHTML = \"You lose, paper beats rock!\";\n }\n else if(computerSelection === \"rock\") {\n document.getElementById(\"result\").innerHTML = \"It's a tie!\";\n }\n else if (computerSelection === \"scissors\"){\n document.getElementById(\"result\").innerHTML = \"Congratulations you won, rock beats scissors!\";\n playerScore += 1;\n }\n }\n\n if (playerSelection === \"paper\"){\n if(computerSelection === \"scissors\") {\n document.getElementById(\"result\").innerHTML = \"You lose, scissors beats paper!\";\n computerScore += 1;\n }\n else if(computerSelection === \"paper\") {\n document.getElementById(\"result\").innerHTML = \"It's a tie!\";\n }\n else if(computerSelection === \"rock\") {\n document.getElementById(\"result\").innerHTML = \"Congratulations you won, paper beats rock!\";\n playerScore += 1;\n }\n }\n\n if (playerSelection === \"scissors\") {\n if(computerSelection === \"rock\") {\n computerScore += 1;\n document.getElementById(\"result\").innerHTML = \"You lose, rock beats scissors!\";\n }\n else if(computerSelection === \"scissors\") {\n document.getElementById(\"result\").innerHTML = \"It's a tie!\";\n }\n else if(computerSelection === \"paper\"){\n playerScore += 1;\n document.getElementById(\"result\").innerHTML = \"Congratulations you won, scissors beats paper!\";\n }\n }\n\n}", "function playRound(playerSelection, computerSelection) {\n if(playerSelection === computerSelection) {\n return \"Draw.\"\n }\n if(options.indexOf(playerSelection) === -1) {\n return 'Sorry, ' + playerSelection + ' is not a valid value. Please try rock, paper or scissors.'\n }\n if(playerSelection === 'rock') {\n if(computerSelection === 'paper') {\n return \"Computer win\"\n } else {return \"Player win\"} \n }\n if(playerSelection === 'paper') {\n if(computerSelection === 'scissors') {\n return \"Computer win\"\n } else {\n return \"Player win\"\n }\n }\n if(playerSelection === 'scissors') {\n if(computerSelection === 'rock') {\n return \"Computer win\"\n } else {\n return \"Player win\"\n }\n }\n}", "function playRound(playerSelection, computerSelection){\r\n\r\n\r\n // Decision tree if player chooses rock\r\n trackChoices(playerSelection, computerSelection)\r\n\r\n if (playerSelection == \"Rock\" && computerSelection == \"Rock\") {\r\n keepScore(1, 1);\r\n }\r\n else if (playerSelection == \"Rock\" && computerSelection == \"Scissors\") {\r\n keepScore(0, 1);\r\n }\r\n else if (playerSelection == \"Rock\" && computerSelection == \"Paper\") {\r\n keepScore(1, 0);\r\n }\r\n // Decision tree if player chooses paper\r\n else if (playerSelection == \"Paper\" && computerSelection == \"Paper\") {\r\n keepScore(1, 1);\r\n }\r\n else if (playerSelection == \"Paper\" && computerSelection == \"Rock\") {\r\n keepScore(0, 1);\r\n }\r\n else if (playerSelection == \"Paper\" && computerSelection == \"Scissors\") {\r\n keepScore(1, 0);\r\n }\r\n // Decision tree if player chooses scissors\r\n else if (playerSelection == \"Scissors\" && computerSelection == \"Scissors\") {\r\n keepScore(1, 1);\r\n }\r\n else if (playerSelection == \"Scissors\" && computerSelection == \"Paper\") {\r\n keepScore(0, 1);\r\n }\r\n else if (playerSelection == \"Scissors\" && computerSelection == \"Rock\") {\r\n keepScore(1, 0);\r\n }\r\n}", "function playRound(playerSelection, computerSelection){\r\n // console.log(`Player chose ${playerSelection} and computer chose ${computerSelection}`)\r\n\r\n const p = document.createElement('p')\r\n let status = `Player chose ${playerSelection} and computer chose ${computerSelection} ==> `\r\n let resultGame = 0\r\n //first checking for a tie, then checking for individial test cases\r\n\r\n if(playerSelection === computerSelection){\r\n status += `Its a Tie!! You both chose ${playerSelection}`\r\n resultGame= 1\r\n }else if(playerSelection === \"rock\"){\r\n if(computerSelection === \"paper\"){\r\n status += `You lose!! ${computerSelection} beats ${playerSelection}`\r\n resultGame= 0\r\n }else{\r\n status += `You win!! ${playerSelection} beats ${computerSelection}`\r\n resultGame= 2\r\n }\r\n } else if(playerSelection === \"paper\"){\r\n if(computerSelection === \"scissor\"){\r\n status += `You lose!! ${computerSelection} beats ${playerSelection}`\r\n resultGame= 0\r\n }else{\r\n status += `You win!! ${playerSelection} beats ${computerSelection}`\r\n resultGame= 2\r\n }\r\n }else{\r\n if(computerSelection === \"rock\"){\r\n status += `You lose!! ${computerSelection} beats ${playerSelection}`\r\n resultGame= 0\r\n }else{\r\n status += `You win!! ${playerSelection} beats ${computerSelection}`\r\n resultGame= 2\r\n }\r\n\r\n }\r\n\r\n p.textContent = status\r\n res.appendChild(p)\r\n\r\n return resultGame\r\n\r\n\r\n\r\n}", "function playRound (playerSelection, computerSelection) {\n let playerInput = playerSelection.toLowerCase();\n\n if (playerInput === 'rock'){\n if (computerSelection === 'rock'){\n return alert('Rock against Rock, draw!');\n }\n else if (computerSelection === 'paper') {\n ++computerScore;\n return alert('Rock against Paper, you lose!');\n }\n else if (computerSelection === 'scissors') {\n ++playerScore;\n return alert('Rock against scissors, you win!');\n }\n else {\n return alert('woops, looks like something went wrong')\n }\n }\n else if (playerInput === 'paper'){\n if (computerSelection === 'paper'){\n ++playerScore;\n return alert('Paper against Rock, you win!');\n }\n else if (computerSelection === 'paper') {\n return alert('Paper against Paper, draw!');\n }\n else if (computerSelection === 'scissors') {\n ++computerScore;\n return alert('Paper against scissors, you lose!');\n }\n else {\n return alert('woops, looks like something went wrong')\n }\n }\n else if (playerInput === 'scissors') {\n if (computerSelection === 'scissors'){\n ++computerScore;\n return alert('Scissors against Rock, you lose!');\n }\n else if (computerSelection === 'paper') {\n ++playerScore;\n return alert('Scissors against Paper, you win!');\n }\n else if (computerSelection === 'scissors') {\n return alert('Scissors against scissors, draw!');\n }\n else {\n return alert('woops, looks like something went wrong')\n }\n }\n else {\n return alert('woops, looks like something went wrong')\n }\n \n}", "function round() {\r\n\t//prompt player to choose:\r\n\tlet playerSelection = prompt(\"Rock, Paper, Scissors, SHOOT!\");\r\n\t//avoid case sensitivity issues:\r\n\tplayerSelection = playerSelection.toLowerCase();\r\n\tlet computer = computerPlay();\r\n\t//what do if user's response is something else:\r\n\tif (playerSelection !== \"rock\" && playerSelection !== \"paper\" && playerSelection !== \"scissors\") {\r\n\t\tplayerSelection = prompt(\"Try again- Rock, Paper, Scissors, SHOOT!\");\r\n\t\tplayerSelection = playerSelection.toLowerCase();\r\n\t}\r\n\tconsole.log(\"You chose \" + playerSelection)\r\n\tconsole.log(\"Computer chooses \" + computer);\r\n\t//tie game condition\r\n\tif (playerSelection == computer) {\r\n\t\talert(\"Tie! Try again!\");\r\n\t}\r\n\r\n\t//results will return either \"computer\" or \"player\" (whoever wins the round) so that we can use that value to increment scores in the game function\r\n\t//else if player chooses rock\r\n\telse if (playerSelection == \"rock\") {\r\n\t\t//Rock vs. Paper\r\n\t\tif (computer == \"paper\") {\r\n\t\t\treturn \"computer\";\r\n\t\t\tconsole.log(\"Paper covers Rock! You lose!\");\r\n\t\t}\r\n\t\t//Rock vs. Scissors\r\n\t\telse if (computer == \"scissors\") {\r\n\t\t\treturn \"player\";\r\n\t\t\tconsole.log(\"Rock breaks Scissors! You win!\");\r\n\t\t}\r\n\t}\r\n\t//else if player chooses paper\r\n\telse if (playerSelection == \"paper\") {\r\n\t\t//paper vs rock\r\n\t\tif (computer == \"rock\") {\r\n\t\t\treturn \"player\"\r\n\t\t\tconsole.log(\"Paper covers Rock! You win!\")\r\n\t\t}\r\n\t\t//paper vs scissors\r\n\t\telse if (computer == \"scissors\") {\r\n\t\t\treturn \"computer\"\r\n\t\t\tconsole.log(\"Scissors cut Paper! You lose!\")\r\n\t\t}\r\n\t}\r\n\r\n\t//else- player chooses scissors\r\n\telse {\r\n\t\t//Scissors vs Rock\r\n\t\tif (computer == \"rock\") {\r\n\t\t\treturn \"computer\"\r\n\t\t\tconsole.log(\"Rock braks Scissors! You lose!\")\r\n\t\t}\r\n\t\t//Scissors vs paper\r\n\t\telse if (computer == \"paper\") {\r\n\t\t\treturn \"player\"\r\n\t\t\tconsole.log(\"Scissors cut Paper! You win!\")\r\n\t\t}\r\n\t}\r\n}", "function playRound(playerSelection, computerSelection) {\n let playerChoice = playerSelection.toLowerCase();\n if (playerChoice === 'rock' && computerSelection === 'scissors') {\n playerScore++;\n console.log( `You win! Rock beats scissors. | Player: ${playerScore} Computer: ${computerScore}` );\n }\n else if (playerChoice === 'rock' && computerSelection === 'paper') {\n computerScore++;\n console.log( `You Lose! Paper beats rock. | Player: ${playerScore} Computer: ${computerScore}`);\n } \n else if (playerChoice === 'scissors' && computerSelection === 'paper') {\n playerScore++;\n console.log( `You Win! Scissors beats paper. | Player: ${playerScore} Computer: ${computerScore}`);\n }\n else if (playerChoice === 'scissors' && computerSelection === 'rock') {\n computerScore++;\n console.log( `You Lose! Rock beats Scissors. | Player: ${playerScore} Computer: ${computerScore}`);\n }\n else if (playerChoice === 'paper' && computerSelection === 'rock') {\n playerScore++;\n console.log( `You Win! Paper beats rock. | Player: ${playerScore} Computer: ${computerScore}`);\n }\n else if (playerChoice === 'paper' && computerSelection === 'scissors') {\n computerScore++;\n console.log( `You Lose! Scissors beats paper. | Player: ${playerScore} Computer: ${computerScore}`);\n }\n else if (playerChoice === computerSelection) {\n console.log( `Tie! | Player: ${playerScore} Computer: ${computerScore}`);\n } else {\n computerScore++;\n console.log( `You Lose! | Player: ${playerScore} Computer: ${computerScore}`);\n }\n}", "function playRound(playerSelection, computerSelection) {\n switch (playerSelection + computerSelection) {\n case \"rockscissor\":\n case \"paperrock\":\n case \"scissorpaper\":\n playerScore++;\n console.log(`User Wins! ${playerSelection} beats ${computerSelection}`);\n break;\n case \"rockpaper\":\n case \"paperscissor\":\n case \"scissorrock\":\n computerScore++;\n console.log(`User Loses! ${computerSelection} beats ${playerSelection}`);\n break;\n case \"rockrock\":\n case \"paperpaper\":\n case \"scissorscissor\":\n drawScore++;\n console.log(\"It's a draw!\");\n break;\n }\n}", "function playRound() {\n\n // computerPlay can be moved here for debugging, but is moved later on to make cheating harder. With it after the player picks, he can't know the computer's move before he picks\n\n playerSelection = window.prompt(\"What do you select?\");\n playerSelection = playerSelection.toLowerCase();\n\n // Make a loop until used picks between rock, paper or scissors\n\n while (!(playerSelection == \"rock\" || playerSelection == \"paper\" || playerSelection == \"scissors\")) {\n console.log(\"Hey, no cheating! Please, write 'Rock', 'Paper' or 'Scissors'\");\n playerSelection = window.prompt(\"What do you select?\");\n playerSelection = playerSelection.toLowerCase();\n }\n\n computerPlay();\n\n // Verify winner (or tie), display message and count score\n\n if (computerSelection == playerSelection) {\n console.log(\"It was a tie!\");\n return ties += 1;\n } else if (computerSelection == \"rock\") {\n if (playerSelection == \"paper\") {\n console.log(\"You Win! Paper beats Rock\");\n return playerWins += 1;\n } else {\n console.log(\"You Lose! Rock beats Scissors\");\n return computerWins += 1;\n }\n } else if (computerSelection == \"paper\") {\n if (playerSelection == \"rock\") {\n console.log(\"You Lost! Paper beats Rock\");\n return computerWins += 1;\n } else {\n console.log(\"You Win! Scissors beats Paper\");\n return playerWins += 1;\n }\n } else {\n if (playerSelection == \"rock\") {\n console.log(\"You Win! Rock beats Scissors\");\n return playerWins += 1;\n } else {\n console.log(\"You Lose! Scissors beats Paper\");\n return computerWins += 1;\n }\n }\n}", "function playRound(playerSelection, computerSelection) {\n results = ''\n if (playerSelection == computerSelection) {\n results = 'D';\n } else if (playerSelection == 'rock') {\n results = (computerSelection == 'scissors') ? 'W' : 'L';\n } else if (playerSelection == 'paper') {\n results = (computerSelection == 'rock') ? 'W' : 'L';\n } else if (playerSelection == 'scissors') {\n results = (computerSelection == 'paper') ? 'W' : 'L';\n }\n\n return results;\n}", "function playRound(playerSelection, computerSelection = computerPlay()) {\n\n//setting up some variables for different outcomes\n let win = (\"You win! \" + playerSelection + \" beats \" + computerSelection + \"!\");\n let lose = (\"You loser. \" + computerSelection + \" beats \" + playerSelection + \".\");\n let draw = (\"You drew it, \" + playerSelection + \" bounces harmlessly off \" + computerSelection + \".\");\n\n//a mess of if statments to see what outcome happened, i'm sure this can be improved\n if (computerSelection === \"Rock\") {\n if (playerSelection === \"rock\") {\n draws += 1;\n played += 1;\n return draw;\n } else if (playerSelection === \"scissors\") {\n losses += 1;\n played += 1;\n return lose;\n } else {\n wins += 1;\n played += 1;\n return win;\n }\n } else if (computerSelection === \"Paper\") {\n if (playerSelection === \"rock\") {\n losses += 1;\n played += 1;\n return lose;\n } else if (playerSelection === \"scissors\") {\n wins += 1;\n played += 1;\n return win;\n } else {\n draws += 1;\n played += 1;\n return draw;\n }\n } else {\n if (playerSelection === \"rock\") {\n wins += 1;\n played += 1;\n return win;\n } else if (playerSelection === \"scissors\") {\n draws += 1;\n played += 1;\n return draw;\n } else {\n losses += 1;\n played += 1;\n return lose;\n }\n }\n }", "function playRound(playerSelection, computerSelection) {\r\n let gameDatabase = {\r\n rock: {win: \"scissors\", lose: \"paper\"},\r\n paper: {win: \"rock\", lose: \"scissors\"},\r\n scissors: {win: \"paper\", lose: \"rock\"}\r\n };\r\n\r\n if (gameDatabase[playerSelection].win == computerSelection) {\r\n return 1; \r\n }\r\n else if (gameDatabase[playerSelection].lose == computerSelection) {\r\n return -1; \r\n }\r\n else {\r\n return 0;\r\n }\r\n}", "function playRound() {\n playerSelection = prompt();\n computerSelection = computerPlay();\n if (playerSelection.trim() === computerSelection.trim()) {\n console.log(\"Round is equal\" + \" \" + \"Player has chosen\" + \" \" + playerSelection + \"\\n\" + \"Computer has chosen\" + \" \" + computerSelection);\n\n } else if (playerSelection === \"Scissor\" && computerSelection === \"Paper\") {\n playerScore += 1;\n console.log(\"Player has chosen\" + \" \" + playerSelection + \"\\n\" +\n \"Computer has chosen\" + \" \" + computerSelection);\n\n } else if (playerSelection === \"Paper\" && computerSelection === \"Scissor\") {\n computerScore += 1;\n console.log(\"Player has chosen\" + \" \" + playerSelection + \"\\n\" +\n \"Computer has chosen\" + \" \" + computerSelection);\n \n } else if (playerSelection === \"Rock\" && computerSelection === \"Scissor\") {\n playerScore += 1;\n console.log(\"Player has chosen\" + \" \" + playerSelection + \"\\n\" +\n \"Computer has chosen\" + \" \" + computerSelection);\n\n } else if (playerSelection === \"Scissor\" && computerSelection === \"Rock\") {\n computerScore += 1;\n console.log(\"Player has chosen\" + \" \" + playerSelection + \"\\n\" +\n \"Computer has chosen\" + \" \" + computerSelection);\n \n } else if (playerSelection === \"Paper\" && computerSelection === \"Rock\") {\n playerScore += 1;\n console.log(\"Player has chosen\" + \" \" + playerSelection + \"\\n\" +\n \"Computer has chosen\" + \" \" + computerSelection);\n\n } else if (playerSelection === \"Rock\" && computerSelection === \"Paper\") {\n computerScore += 1;\n console.log(\"Player has chosen\" + \" \" + playerSelection + \"\\n\" +\n \"Computer has chosen\" + \" \" + computerSelection);\n }\n}", "function round() {\n computerSelection = computerPlay()\n playerSelection = prompt(\"Enter either 'rock', 'paper', or 'scissors': \").toLowerCase()\n if (computerSelection === playerSelection) {\n console.log(\"It's a Tie!\")\n } else if (playerSelection === \"rock\" && computerSelection === \"scissors\") {\n console.log(`You win! ${playerSelection} beats ${computerSelection}`);\n return \"1\"\n } else if (playerSelection === \"scissors\" && computerSelection === \"paper\") {\n console.log(`You win! ${playerSelection} beats ${computerSelection}`);\n return \"1\"\n } else if (playerSelection === \"paper\" && computerSelection === \"rock\") {\n console.log(`You win! ${playerSelection} beats ${computerSelection}`);\n return \"1\"\n } else if (playerSelection === \"rock\" && computerSelection === \"paper\") {\n console.log(`You lose! ${computerSelection} beats ${playerSelection}`);\n return \"0\"\n } else if (playerSelection === \"paper\" && computerSelection === \"scissors\") {\n console.log(`You lose! ${computerSelection} beats ${playerSelection}`);\n return \"0\"\n } else if (playerSelection === \"scissors\" && computerSelection === \"rock\") {\n console.log(`You lose! ${computerSelection} beats ${playerSelection}`);\n return \"0\"\n }\n}", "function singleRound(player_selection, computer_selection) {\n // Create an if statement for all potential options of the game\n // Add a point to the winner of the round\n // Return the score for the current round\n if (player_selection === 'rock' && computer_selection === 'rock') {\n return \"Player: \" + player_score + \" Computer: \" + computer_score;\n } else if (player_selection === 'rock' && computer_selection === 'paper') {\n computer_score = computer_score + 1;\n return \"Player: \" + player_score + \" Computer: \" + computer_score;\n } else if (player_selection === 'rock' && computer_selection === 'scissors') {\n player_score = player_score + 1;\n return \"Player: \" + player_score + \" Computer: \" + computer_score;\n } else if (player_selection === 'paper' && computer_selection === 'paper') {\n return \"Player: \" + player_score + \" Computer: \" + computer_score;\n } else if (player_selection === 'paper' && computer_selection === 'rock') {\n player_score = player_score + 1;\n return \"Player: \" + player_score + \" Computer: \" + computer_score;\n } else if (player_selection === 'paper' && computer_selection === 'scissors') {\n computer_score = computer_score + 1;\n return \"Player: \" + player_score + \" Computer: \" + computer_score;\n } else if (player_selection === 'scissors' && computer_selection === 'scissors') {\n return \"Player: \" + player_score + \" Computer: \" + computer_score;\n } else if (player_selection === 'scissors' && computer_selection === 'paper') {\n player_score = player_score + 1;\n return \"Player: \" + player_score + \" Computer: \" + computer_score;\n } else if (player_selection === 'scissors' && computer_selection === 'rock') {\n computer_score = computer_score + 1;\n return \"Player: \" + player_score + \" Computer: \" + computer_score;\n }\n }", "function playRound(playerSelection, computerSelection) {\n playerSelection = this.id;\n computerSelection = computerPlay();\n game();\n\n if (playerSelection == 'rock' && computerSelection == 'paper' ||\n playerSelection == 'paper' && computerSelection == 'scissor' ||\n playerSelection == 'scissor' && computerSelection == 'rock') {\n currentScore.textContent = 'You lose! ' + computerSelection + ' beats ' + playerSelection + '!';\n computerScore++;\n } else if (playerSelection == 'rock' && computerSelection == 'scissor' ||\n playerSelection == 'paper' && computerSelection == 'rock' ||\n playerSelection == 'scissor' && computerSelection =='paper') {\n currentScore.textContent = 'You Win! ' + playerSelection + ' beats ' + computerSelection + '!';\n playerScore++;\n } else if (playerSelection == computerSelection) {\n currentScore.textContent = 'Tie! You chose ' + playerSelection.toUpperCase() + ' and the computer chose ' + computerSelection.toUpperCase() + ' too!';\n } else {\n console.log('You can\\'t enter that! You have to enter rock, paper, or scissor to play the game!')\n }\n}", "function mainPlayRound(playerSelection, computerSelection) {\n if (playerSelection === 'rock' & computerSelection === 'rock') {\n return 'The game is a tie!';\n } else if (playerSelection === 'rock' & computerSelection === 'paper') {\n return 'Computer wins the round!';\n } else if (playerSelection === 'rock' & computerSelection === 'scissors') {\n return 'Player wins the round!';\n } else if (playerSelection === 'paper' & computerSelection === 'rock') {\n return 'Player wins the round!';\n } else if (playerSelection === 'paper' & computerSelection === 'paper') {\n return 'The game is a tie!';\n } else if (playerSelection === 'paper' & computerSelection === 'scissors') {\n return 'Computer wins the round!';\n } else if (playerSelection === 'scissors' & computerSelection === 'rock') {\n return 'Computer wins the round!';\n } else if (playerSelection === 'scissors' & computerSelection === 'paper') {\n return 'Player wins the round!';\n } else if (playerSelection === 'scissors' & computerSelection === 'scissors') {\n return 'The game is a tie!';\n } else {\n return 'Not valid selection';\n }\n}", "function playRound(playerSelection, computerSelection){\r\n\tif(playerSelection == computerSelection){\r\n\t\tconsole.log(\"tie\");\r\n\t\treturn \"Tie\";\r\n\t}else if(playerSelection == 'rock'){\r\n\t\tif(computerSelection == 'paper'){\r\n\t\t\treturn \"Lose\";\r\n\t\t}else{\r\n\t\t\treturn \"Win\";\r\n\t\t}\r\n\t}else if(playerSelection == 'paper'){\r\n\t\tif(computerSelection == 'scissors'){\r\n\t\t\treturn \"Lose\";\r\n\t\t}else{\r\n\t\t\treturn \"Win\";\r\n\t\t}\r\n\t}else{\r\n\t\tif(computerSelection == 'rock'){\r\n\t\t\treturn \"Lose\";\r\n\t\t}else{\r\n\t\t\treturn \"Win\";\r\n\t\t}\r\n\t}\r\n}", "function playRound(playerSelect, computerSelect) {\n\n let player = playerSelect.toLowerCase();\n let computer = computerSelect.toLowerCase();\n\n\n if (player == \"rock\") {\n if (computer == \"paper\") {\n result = \"You lost! Paper beats rock\";\n computerScore++;\n return result;\n\n }\n else if (computer == \"scissors\") {\n result = \"You win! Rock beats Scissors\";\n playerScore++;\n return result;\n }\n else if (computer == \"rock\") {\n result = \"A stalemate has been reached!\";\n return result;\n }\n else {\n return \"Error! Unkown input entered\";\n\n }\n }\n\n if (player == \"scissors\") {\n if (computer == \"paper\") {\n result = \"You win! Scissors beats Paper\";\n playerScore++;\n return result;\n }\n else if (computer === \"rock\") {\n result = \"You lost! Rock beats Scissors\";\n computerScore++;\n return result;\n }\n else if (computer == \"scissors\") {\n result = \"A stalemate has been reached!\";\n return result;\n }\n else {\n return \"Error! Unknown input entered\";\n }\n }\n\n if (player === \"paper\") {\n if (computer == \"rock\") {\n result = \"You win! Paper beats Rock\";\n playerScore++;\n return result;\n }\n else if (computer == \"scissors\") {\n result = \"You lost! Scissors beats Paper\";\n computerScore++;\n return result;\n }\n else if (computer == \"paper\") {\n result = \"A stalemate has been reached!\";\n return result;\n }\n else {\n return \"Error! Unkown input entered\";\n\n }\n }\n\n}", "function playRound(playerSelection, computerSelection) {\n\n // playerSelection = prompt('Rock, paper, or scissors?');\n computerSelection = computerPlay();\n console.log(playerSelection, computerSelection);\n\n if (playerSelection === computerSelection) {\n alert(\"It's a tie\\! No points awarded\\.\");\n } else if (playerSelection === \"rock\" && computerSelection === \"scissors\" ||\n playerSelection === \"paper\" && computerSelection === \"rock\" ||\n playerSelection === \"scissors\" && computerSelection === \"paper\") {\n playerScore++;\n $(\"#player-score\").empty().append('Player Score \\= ' + playerScore);\n alert(\"You Win\\! One point for player\\.\");\n } else {\n computerScore++;\n $(\"#computer-score\").empty().append('Computer Score \\= ' + computerScore);\n alert(\"You Lose\\! One point for computer\\.\");\n }\n\n round++\n\n $(\"#round\").empty().append(\"Round\\: \" + round);\n if (playerScore === 3 || computerScore === 3 ) {\n if (playerScore === 3) {\n alert(\"Congratulations\\! You have defeated the computer\\!\");\n }\n else {\n alert(\"Oh no\\! You have been defeated by the computer\\.\");\n }\n } else {\n return\n }\n}", "function playRound(playerSelection, computerSelection) {\n // compare the selection and decide winner\n // check for computer side only\n // check every possible commination\n let winner = undefined;\n\n switch (computerSelection) {\n case 'rock':\n switch (playerSelection) {\n case 'rock':\n winner = 't'\n break;\n case 'paper':\n winner = 'p'\n break;\n case 'scissors':\n winner = 'c'\n break;\n }\n break;\n\n case 'paper':\n switch (playerSelection) {\n case 'rock':\n winner = 'c'\n break;\n case 'paper':\n winner = 't'\n break;\n case 'scissors':\n winner = 'p'\n break;\n }\n break;\n\n case 'scissors':\n switch (playerSelection) {\n case 'rock':\n winner = 'p'\n break;\n case 'paper':\n winner = 'c'\n break;\n case 'scissors':\n winner = 't'\n break;\n }\n break;\n }\n return winner;\n\n}", "function playerChoseRock() {\r\n let playerSelection = 'rock';\r\n computerPlay();\r\n if (computerSelection == 'rock') {\r\n roundResult = 'ROUND TIE';\r\n } else if (computerSelection == 'paper') {\r\n roundResult = 'ROUND LOSS';\r\n computerScore.innerHTML ++;\r\n } else {\r\n roundResult = 'ROUND WIN';\r\n playerScore.innerHTML ++;\r\n }\r\n roundOutcome.innerHTML = 'COMPUTER CHOSE ' + computerSelection.toUpperCase() + ', ' + roundResult;\r\n}", "function playRound(playerSelection, computerSelection) {\n\n let playerSelectionCapitalized = playerSelection.slice(0, 1).toUpperCase()\n + playerSelection.slice(1).toLowerCase();\n const computerWinMessage = \"Computer wins the round.\";\n const playerWinMessage = \"You win the round!\"\n\n if (playerSelectionCapitalized === computerSelection) {\n\n return \"It's a tie! Player and Computer both chose \"\n + computerSelection;\n\n } else if (playerSelectionCapitalized === \"Rock\") {\n\n if (computerSelection === \"Paper\") {\n return computerWinMessage + \" Paper beats Rock\";\n } else {\n return playerWinMessage + \" Rock beats Scissors\";\n }\n\n } else if (playerSelectionCapitalized === \"Paper\") {\n\n if (computerSelection === \"Scissors\") {\n return computerWinMessage + \" Scissors beats Paper\";\n } else {\n return playerWinMessage + \" Paper beats Rock\";\n }\n\n } else if (playerSelectionCapitalized === \"Scissors\") {\n\n if (computerSelection === \"Rock\") {\n return computerWinMessage + \" Rock beats Scissors\";\n } else {\n return playerWinMessage + \" Scissors beats Paper\";\n }\n\n } else {\n return \"Invalid choice\";\n }\n}", "function playRound(playerSelection, computerSelection){ \n \n document.getElementById('outcome').style.visibility = \"visible\";\n \n if (playerSelection === computerSelection ){\n outcome = [`Tie!!`] \n \n } else if (\n (playerSelection === 'rock' && computerSelection === 'scissors') ||\n (playerSelection === 'paper' && computerSelection === 'rock' ) ||\n (playerSelection === 'scissors' && computerSelection === 'paper')\n ){\n outcome =[`You win! ${playerSelection} beats ${computerSelection}`]\n \n } else {\n outcome = [`You lose! ${computerSelection} beats ${playerSelection}`]\n }\n \n return ( outcome); \n}", "function playRound(playerSelection, computerSelection)\r\n{\r\n\r\n\tif(playerSelection == computerSelection)\r\n\t{\r\n\t\tmessage = \"Tie! Select again.\";\r\n\t\tuserWin = 0;\r\n\t}\r\n\r\n\telse if(playerSelection == \"rock\" && computerSelection == \"scissors\")\r\n\t{\r\n\t\tmessage = \"You Win! Rock beats scissors.\"; \r\n\t\tuserWin = 1;\r\n\t}\r\n\r\n\telse if(playerSelection == \"rock\" && computerSelection == \"paper\")\r\n\t{\r\n\t\tmessage = \"You Lose! Rock loses to paper.\";\r\n\t\tuserWin = 2;\r\n\t}\r\n\r\n\telse if(playerSelection == \"paper\" && computerSelection == \"rock\")\r\n\t{\r\n\t\tmessage = \"You Win! Paper beats rock.\";\r\n\t\tuserWin = 1;\r\n\t}\r\n\r\n\telse if(playerSelection == \"paper\" && computerSelection == \"scissors\")\r\n\t{\r\n\t\tmessage = \"You Lose! Paper loses to scissors.\";\r\n\t\tuserWin = 2;\r\n\t}\r\n\r\n\telse if(playerSelection == \"scissors\" && computerSelection == \"rock\")\r\n\t{\r\n\t\tmessage = \"You Lose! Scissors loses to rock.\";\r\n\t\tuserWin = 2;\r\n\t}\r\n\telse\r\n\t{\r\n\t\tmessage = \"You Win! Scissors beats paper.\";\r\n\t\tuserWin = 1; \r\n\t}\r\n\treturn message;\r\n}", "function playRound(userSelection, computerSelection) {\n userSelection = userSelection.toLowerCase();\n // if its a tie\n if (userSelection == computerSelection) {\n console.log(\"It's a tie\");\n }\n // if the user wins \n else if (userSelection == 'rock' && computerSelection == 'scissors' ||\n userSelection == 'paper' && computerSelection == 'rock' ||\n userSelection == 'scissors' && computerSelection == 'paper')\n {\n userCount++;\n console.log(`You Win! ${userSelection} beats ${computerSelection}, You: ${userCount} : ${computerCount} Computer`);\n }\n // if computer wins\n else {\n computerCount++;\n console.log(`You Lose! ${computerSelection} beats ${userSelection}. You: ${userCount} : ${computerCount} Computer`);\n }\n}", "function playRound(playerPick, computerPick) {\n\n //if both the user and the computer pick the same thing, -> Output is 'That's a tie! You both picked (selection)!''\n if (playerPick == computerPick) {\n let result = \"That's a tie! You both picked \" + playerPick + \"! \";\n return result;\n }\n //If the computer wins, output 'You lose! computerPick beats playerPick!'\n else if (\n (playerPick == 'rock' && computerPick == 'paper') ||\n (playerPick == 'scissors' && computerPick == 'rock') ||\n (playerPick == 'paper' && computerPick == 'scissors')\n ) {\n let result = \"You lose - \" + computerPick + \" beats \" + playerPick + \"!\";\n return result;\n }\n\n //If the user wins - > Output is 'You win! (playerPick) beats (conmputerSelection)!'\n else if (\n (playerPick == 'rock' && computerPick == 'scissors') ||\n (playerPick == 'scissors' && computerPick == 'paper') ||\n (playerPick == 'paper' && computerPick == 'rock')\n ) {\n let result = \"You win - \" + playerPick + \" beats \" + computerPick + \"!\";\n return result;\n }\n\n //error message\n else {\n let result = 'Whoops! Did you pick rock, paper, or scissors?';\n return result;\n }\n\n playerPick = '';\n\n }//end playRound", "function playRound(computerSelection, playerSelection) {\n if (playerSelection === \"rock\") {\n if(computerSelection ===\"rock\"){\n result = \"It's a tie, try again!\\n\"; \n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else if (computerSelection === \"scissors\"){\n playerScore++;\n result = \"Congratulations, You Win this round!\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else{\n computerScore++\n result = \"Too bad! The Computer wins this time...\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n }\n else if(playerSelection === \"scissors\"){\n if(computerSelection === \"scissors\"){\n result = \"It's a tie, try again!\";\n para.textContent = result;\n return game(playerScore,computerScore)\n }\n else if(computerSelection === \"paper\"){\n playerScore++;\n result = \"Congratulations, You win this round!\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else{\n computerScore++;\n result = \"Too bad! The computer wins this time...\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n }\n else if (playerSelection === \"paper\"){\n if(computerSelection === \"paper\"){\n result = \"It's a tie, try again!\"; \n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else if (computerSelection === \"rock\"){\n playerScore++;\n result = \"Congratulation, You win this round!\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else {\n computerScore++;\n result = \"Too bad! The computer wins this time...\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return playerScore,computerScore\n }\n }\n else {\n result = \"invalid value, you must choose between rock, paper or scissors...\";\n para.textContent = result;\n return game(playerScore,computerScore)\n }\n }", "function playRound(playerSelection, computerSelection) {\n \n\n if (playerSelection === \"Rock\" && computerSelection === \"Rock\"){\n draw();\n } else if (playerSelection === \"Rock\" && computerSelection === \"Paper\"){\n computerWin();\n } else if (playerSelection === \"Rock\" && computerSelection === \"Scissors\"){\n playerWin();\n } else if (playerSelection === \"Paper\" && computerSelection === \"Rock\"){\n playerWin();\n } else if (playerSelection === \"Paper\" && computerSelection === \"Scissors\"){\n computerWin();\n } else if (playerSelection === \"Paper\" && computerSelection === \"Paper\"){\n draw();\n } else if (playerSelection === \"Scissors\" && computerSelection === \"Rock\"){\n computerWin();\n roundResult.textContent = \"You lose!\";\n } else if (playerSelection === \"Scissors\" && computerSelection === \"Scissors\"){\n draw();\n } else if (playerSelection === \"Scissors\" && computerSelection === \"Paper\"){\n playerWin();\n }\n}", "function playRound(computerSelection, playerSelection){\n // Go through all possible computer selections. And then compare with the possible player selections.\n\n if (playerSelection === computerSelection)\n return \"COMPUTER ALSO SELECTED \" +playerSelection+ \". ROUND TIED!\"\n \n switch (computerSelection){\n case \"ROCK\":\n if (playerSelection === \"PAPER\")\n return \"PAPER BEATS ROCK. YOU WIN!\";\n if (playerSelection === \"SCISSORS\")\n return \"SCISSORS LOSE TO ROCK. YOU LOSE!\";\n \n case \"PAPER\":\n if (playerSelection === \"SCISSORS\")\n return \"SCISSORS BEAT PAPER. YOU WIN!\";\n if (playerSelection === \"ROCK\")\n return \"ROCK LOSES TO PAPER. YOU LOSE!\";\n \n case \"SCISSORS\":\n if (playerSelection === \"ROCK\")\n return \"ROCK BEATS SCISSORS. YOU WIN!\";\n if (playerSelection === \"PAPER\")\n return \"PAPER LOSES TO SCISSORS. YOU LOSE!\";\n }\n } //end playRound()", "function decideWinner(playerSelection, computerSelection) {\n if (playerSelection == computerSelection) return 0;\n if (\n (playerSelection == \"rock\" && computerSelection == \"scissor\") ||\n (playerSelection == \"paper\" && computerSelection == \"rock\") ||\n (playerSelection == \"scissor\" && computerSelection == \"paper\")\n ) {\n return 1;\n } else {\n return -1;\n }\n}", "function playRound(playerSelection, computerSelection) {\n playerSelection = userChoice;\n computerSelection = computerChoice;\n let playerWin;\n \n\n switch (playerSelection){\n case computerSelection:\n playerWin = 3;\n break;\n case \"rock\":\n if (computerSelection == \"scissors\"){\n playerWin = 1;\n } else if (computerSelection == \"paper\"){\n playerWin = 2;\n }\n break;\n case \"paper\":\n if (computerSelection == \"rock\"){\n playerWin = 1;\n } else if (computerSelection == \"scissors\"){\n playerWin = 2;\n }\n break;\n case \"scissors\":\n if (computerSelection == \"paper\"){\n playerWin = 1;\n }else if (computerSelection == \"rock\"){\n playerWin =2;\n }\n break;\n }\n\n switch(playerWin){\n case 1:\n round.textContent = `You win! ${playerSelection} beats ${computerSelection}.`;\n return playerWin;\n break;\n case 2: \n round.textContent = `You loose! ${computerSelection} beats ${playerSelection}`;\n return playerWin;\n break;\n case 3: \n round.textContent = `WOW! ${playerSelection} vs ${computerSelection} it's a draw!`;\n return playerWin;\n break;\n }\n\n \n \n }", "function playRound (playerSelection) {\n \n \n computerSelection = computerPlay();\n\n // always uppercase\n playerSelection = playerSelection.toUpperCase();\n computerSelection = computerSelection.toUpperCase();\n\n\n // ROCK beats SCISSORS\n if (playerSelection == 'ROCK' && computerSelection == 'SCISSORS'){\n playerWon = 1;\n return `You won! ${playerSelection} beats ${computerSelection}!`;\n } else if (playerSelection == 'SCISSORS' && computerSelection == 'ROCK'){\n playerWon = 0;\n return `Drat! You lost! ${computerSelection} beats ${playerSelection}!`;\n } \n \n // SCISSORS beats PAPER\n else if (playerSelection == 'SCISSORS' && computerSelection == 'PAPER'){\n playerWon = 1;\n return `You won! ${playerSelection} beats ${computerSelection}!`;\n } else if (playerSelection == 'PAPER' && computerSelection == 'SCISSORS'){\n playerWon = 0;\n return `Drat! You lost! ${computerSelection} beats ${playerSelection}!`;\n } \n\n // PAPER beats ROCK\n else if (playerSelection == 'PAPER' && computerSelection == 'ROCK'){\n playerWon = 1;\n return `You won! ${playerSelection} beats ${computerSelection}!`;\n } else if (playerSelection == 'ROCK' && computerSelection == 'PAPER'){\n playerWon = 0;\n return `Drat! You lost! ${computerSelection} beats ${playerSelection}!`;\n } else {\n playerWon = -1;\n return 'Golly Jee-Willikers! It\\'s a tie!';\n }\n}", "function game(playerSelection) {\n computerSelection = Math.floor(Math.random() * 3);\n console.log('computerSelection:', computerSelection);\n if (computerSelection === 0) {\n computerResult = 'rock'\n } else if (computerSelection === 1) {\n computerResult = 'paper';\n } else {\n computerResult = 'scissors';\n }\n console.log('computer:', computerResult);\n \n // tie\n if (computerResult == playerSelection) {\n result = 'tie';\n // win\n } else if (computerResult == 'rock' && playerSelection == 'paper' || computerResult == 'paper' && playerSelection == 'scissors' || computerResult == 'scissors' && playerSelection == 'rock') {\n console.log('won');\n result = 'won';\n // lose\n } else {\n console.log('lost');\n result = 'lost';\n }\n // Result\n document.getElementById('player-result').innerHTML = `It's a ${result} game! The computer chose ${computerResult}.`;\n }", "function rockChoice() {\n var compChoice = showCompResult();\n // Check for win\n if (compChoice === 0) {\n playerDraws();\n } else if (compChoice === 1) {\n playerLoses();\n } else {\n playerWins();\n }\n}", "function PlayRound(player_selection, computer_selection)\n{\n //check if either selection phase failed\n //if so return to selection phase\n if(computer_selection === null) \n {\n return PlayerTurn(player_selection);\n }\n else \n {\n //check if both players made same selection for a tie\n //if not compare player selection to computer selection\n //determine who wins/loses the round\n if(player_selection === computer_selection)\n {\n RoundTie();\n }\n else if(player_selection === rock)\n {\n switch(computer_selection)\n {\n case (paper):\n RoundLoss();\n break;\n case (scissors):\n RoundWin();\n break; \n }\n }\n else if(player_selection === paper)\n {\n switch(computer_selection)\n {\n case (scissors):\n RoundLoss();\n break;\n case (rock):\n RoundWin();\n break; \n }\n }\n else if(player_selection === scissors)\n {\n switch(computer_selection)\n {\n case (rock):\n RoundLoss();\n break;\n case (paper):\n RoundWin();\n break; \n }\n }\n }\n}", "function playOneRound (playerSelection, computerSelection){\n let result = '';\n playerSelection.toUpperCase();\n playerSelection.toLowerCase();\n computerSelection.toUpperCase();\n computerSelection.toLowerCase();\n \n if (playerSelection === computerSelection){\n result = `It's a draw! ${playerSelection} vs ${computerSelection} are the same`;\n alert (result);\n } else if (playerSelection == 'rock' && computerSelection == 'scissors' \n || playerSelection == 'paper' && computerSelection == 'rock' \n || playerSelection == 'scissors' && computerSelection == 'paper') {\n result = `Player chooses ${playerSelection}. Computer chooses ${computerSelection}. PLAYER WIN THIS ROUND!`;\n alert (result);\n playerPoints = playerPoints + 1;\n } else {\n result = `Player chooses ${playerSelection}. Computer chooses ${computerSelection}. COMPUTER WIN THIS ROUND!`;\n alert (result);\n computerPoints = computerPoints + 1;\n }\n return result;\n\n}", "function game() {\n //First round\n let playerSelection = prompt(\"Round one! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n let computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Second round\n playerSelection = prompt(\"Round two! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Third round\n playerSelection = prompt(\"Round three! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Fourth round\n playerSelection = prompt(\"Round four! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Fifth round\n playerSelection = prompt(\"Round five! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Counts the score and announces the winner!\n if (playerScore > computerScore) {\n console.log(\"You won this game! Congratulations!\");\n } else if (computerScore > playerScore) {\n console.log(\"Darn! The computer won. Better luck next time!\");\n } else {\n console.log(\"It's a tie between you and the computer!\");\n }\n}", "function playRound(playerSelection, computerSelection){\n console.log(\"ROUND: \" + (roundNo));\n console.log(\"COMPUTER: \" + computerSelection);\n console.log(\"PLAYER: \" + playerSelection);\n \n if (matchups[playerSelection] == computerSelection)\n {\n document.getElementById('player-score').textContent = ++playerScore;\n return `You win! ${playerSelection} beats ${computerSelection}`;\n }\n else if (matchups[computerSelection] == playerSelection) \n {\n document.getElementById('computer-score').textContent = ++computerScore;\n return `You lose! ${computerSelection} beats ${playerSelection}`;\n }\n else { \n return `You Tie!`;\n }\n}", "function playRound(playerSelection,computerPlay) {\n let play1 = playerSelection[0].toUpperCase() + playerSelection.slice(1).toLowerCase();\n \n if (play1 === \"Rock\" && computerPlay === \"Rock\") {\n return \"It's a tie! Are you reading each other's minds?\"\n } else if (play1 === \"Rock\" && computerPlay === \"Paper\") {\n return \"You lose! Paper beats Rock\"\n } else if (play1 === \"Rock\" && computerPlay === \"Scissors\") {\n return \"You win! Rock always crushes Scissors!\"\n } else if (play1 === \"Paper\" && computerPlay === \"Rock\") {\n return \"You win! Paper always wraps Rock!\"\n } else if (play1 === \"Paper\" && computerPlay === \"Paper\") {\n return \"It's a tie! Are you reading each other's minds?\"\n } else if (play1 === \"Paper\" && computerPlay === \"Scissors\") {\n return \"You lose! Scissors always cuts Paper\"\n } else if (play1 === \"Scissors\" && computerPlay === \"Rock\") {\n return \"You lose! Rock always crushes Scissors\"\n } else if (play1 === \"Scissors\" && computerPlay === \"Paper\") {\n return \"You win! Scissors always cuts Paper\"\n } else if (play1 === \"Scissors\" && computerPlay === \"Scissors\") {\n return \"It's a tie! Are you reading each other's minds?\"\n } else {\n return \"Please write a valid play; we are playing a serious game here!\"\n }\n}", "function playRound(playerSelection, computerSelection) {\n\n //Generates the computer's selection\n computerSelection = computerPlay();\n \n //All below if-statements compare the player and computers selections\n //It also adds 1 to the score, depending on which selection wins\n if (playerSelection === computerSelection) {\n currentRound = currentRound + 1;\n const draw = document.createElement('p');\n draw.textContent = \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". No points for anyone.\";\n resultsWindow.appendChild(draw);\n }\n \n else if (playerSelection === \"rock\" && computerSelection === \"scissors\") {\n playerScore = playerScore + 1;\n currentRound = currentRound + 1;\n const playerRockWins = document.createElement('p');\n playerRockWins.textContent = \"Rock beats scissors.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for you!\";\n resultsWindow.appendChild(playerRockWins);\n }\n \n else if (playerSelection === \"rock\" && computerSelection === \"paper\") {\n computerScore = computerScore + 1;\n currentRound = currentRound + 1;\n const playerRockLose = document.createElement('p');\n playerRockLose.textContent = \"Paper beats rock.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for the computer!\";\n resultsWindow.appendChild(playerRockLose);\n }\n \n else if (playerSelection === \"scissors\" && computerSelection === \"paper\") {\n playerScore = playerScore + 1;\n currentRound = currentRound + 1;\n const playerScissorsWin = document.createElement('p');\n playerScissorsWin.textContent = \"Scisscors beats paper.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for you!\";\n resultsWindow.appendChild(playerScissorsWin);\n }\n \n else if (playerSelection === \"scissors\" && computerSelection === \"rock\") {\n computerScore = computerScore + 1;\n currentRound = currentRound + 1;\n const playerScissorsLose = document.createElement('p');\n playerScissorsLose.textContent = \"Rock beats scissors.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for the computer!\";\n resultsWindow.appendChild(playerScissorsLose);\n }\n \n else if (playerSelection === \"paper\" && computerSelection === \"rock\") {\n playerScore = playerScore + 1;\n currentRound = currentRound + 1;\n const playerPaperWin = document.createElement('p');\n playerPaperWin.textContent = \"Paper beats rock.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for you!\";\n resultsWindow.appendChild(playerPaperWin);\n }\n \n else if (playerSelection === \"paper\" && computerSelection === \"scissors\") {\n computerScore = computerScore + 1;\n currentRound = currentRound + 1;\n const playerPaperLose = document.createElement('p');\n playerPaperLose.textContent = \"Scissors beats paper.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for the computer!\";\n resultsWindow.appendChild(playerPaperLose);\n }\n \n scoreAnnounce();\n updateScroll();\n \n }", "function playRound(playerSelection, computerSelection) {\n // your code here!\n if(playerSelection == computerSelection){\n return \"draw\";\n }else if (playerSelection === \"rock\" && computerSelection === \"Scissors\"){\n return \"you win\";\n }if (playerSelection === \"paper\" && computerSelection === \"rock\" ){\n return \"you win\";\n }\n if (playerSelection === \"Scissors\" && computerSelection === \"paper\" ){\n return \"you win\";\n }\n if (playerSelection === \"Scissors\" && computerSelection === \"rock\" ){\n return \"you lose\";\n }\n if (playerSelection === \"paper\" && computerSelection === \"Scissors\" ){\n return \"you lose\";\n }\n if (playerSelection === \"rock\" && computerSelection === \"paper\" ){\n return \"you win\";\n }\n\n}", "function playRound(playerSelection) {\n let computerSelection = computerPlay();\n playerSelection = playerSelection.toLowerCase();\n let result;\n\n if (playerSelection == computerSelection) {\n result = \"tie\";\n } else {\n // returns a string based on the correct case for all player inputs\n switch (playerSelection) {\n case \"rock\":\n if (computerSelection == \"paper\") {\n result = \"lose\";\n } else {\n result = \"win\";\n }\n break;\n case \"paper\":\n if (computerSelection == \"scissors\") {\n result = \"lose\";\n } else {\n result = \"win\";\n }\n break;\n case \"scissors\":\n if (computerSelection == \"rock\") {\n result = \"lose\";\n } else {\n result = \"win\";\n }\n break;\n }\n }\n\n // change css/html\n displayRound(result, playerSelection, computerSelection);\n\n return result;\n}", "function playRound(userSelection, computerSelection, userScore, computerScore) {\n let userX = options.indexOf(userSelection);\n let compX = options.indexOf(computerSelection);\n\n if (userX === compX) {\n roundResults.textContent = 'Tie! Please re-choose.';\n return['Tie! Please choose again.', userScore, computerScore]\n }\n if ((compX == options.length - 1) && (userX == 0)) {\n userScore++;\n return ['The user wins the round. ' + userSelection + ' beats ' + computerSelection + '.', userScore, computerScore];\n }\n if ((userX == options.length - 1) && (compX == 0)) {\n computerScore++;\n return ['The computer wins the round. ' + computerSelection + ' beats ' + userSelection + '.', userScore, computerScore];\n }\n if (userX > compX) {\n userScore++;\n return ['The user wins the round. ' + userSelection + ' beats ' + computerSelection + '.', userScore, computerScore];\n }\n else {\n computerScore++;\n return ['The computer wins the round. ' + computerSelection + ' beats ' + userSelection + '.', userScore, computerScore];\n }\n\n }", "function playRound(playerSelection, computerSelection) {\n if (playerSelection == computerSelection) {\n log.textContent = 'Tie Game!'\n return \"Tie\";\n } else if (playerSelection == \"ROCK\") {\n if (computerSelection == \"PAPER\") {\n log.textContent = \"You Lose! Paper beats Rock\"\n return \"Lose\"\n } else {\n log.textContent = \"You Win! Rock beats Scissors\"\n return \"Win\"\n }\n } else if (playerSelection == \"PAPER\") {\n if (computerSelection == \"SCISSORS\") {\n log.textContent = \"You Lose! Scissors beats Paper\"\n return \"Lose\"\n } else {\n log.textContent = \"You Win! Paper beats Rock\"\n return \"Win\"\n }\n } else {\n if (computerSelection == \"ROCK\") {\n log.textContent = \"You Lose! Rock beats Scissors\"\n return \"Lose\"\n } else {\n log.textContent = \"You win! Scissors beats Paper\"\n return \"Win\"\n }\n }\n}", "function rock_win(player_Choice, computer_Choice) {\n player_score++;\n span_player_score.innerHTML = player_score;\n outcome_result_h4.innerHTML = player_Choice + \" crushes \" + computer_Choice +\", you win!.\";\n }", "function playRound(playerChoice) {\n\tconst computerChoice = computerPlay();\n\tlet result = \"none\";\n\tif (playerChoice == \"rock\") {\n\t\tif (computerChoice == \"rock\") {\n\t\t\tresult = \"draw\";\n\t\t} else if (computerChoice == \"paper\") {\n\t\t\tresult = \"lose\";\n\t\t} else if (computerChoice == \"scissors\") {\n\t\t\tresult = \"win\";\n\t\t}\n\t} else if (playerChoice == \"paper\") {\n\t\tif (computerChoice == \"rock\") {\n\t\t\tresult = \"win\";\n\t\t} else if (computerChoice == \"paper\") {\n\t\t\tresult = \"draw\";\n\t\t} else if (computerChoice == \"scissors\") {\n\t\t\tresult = \"lose\";\n\t\t}\n\t} else if (playerChoice == \"scissors\") {\n\t\tif (computerChoice == \"rock\") {\n\t\t\tresult = \"lose\";\n\t\t} else if (computerChoice == \"paper\") {\n\t\t\tresult = \"win\";\n\t\t} else if (computerChoice == \"scissors\") {\n\t\t\tresult = \"draw\";\n\t\t}\n\t}\n decideGame(result);\n\treturn ;\n}", "function playRound(playerChoice, computerChoice) {\n\tplayerMove = playerChoice.toLowerCase();\n\tcomputerMove = computerChoice.toLowerCase();\n\tif (\n\t\t(playerMove === \"rock\" && computerMove === \"scissor\") ||\n\t\t(playerMove === \"paper\" && computerMove === \"rock\") ||\n\t\t(plyaerMove === \"scissor\" && computerMove === \"paper\")\n\t) {\n\t\troundResult = \"win\";\n\t} else if (\n\t\t(playerMove === \"scissor\" && computerMove === \"rock\") ||\n\t\t(playerMove === \"rock\" && computerMove === \"paper\") ||\n\t\t(playerMove === \"paper\" && computerMove === \"scissor\")\n\t) {\n\t\troundResult = \"lose\";\n\t} else if (\n\t\t(playerMove == \"scissor\" && computerMove == \"scissor\") ||\n\t\t(playerMove == \"rock\" && computerMove == \"rock\")(\n\t\t\tplayerMove == \"paper\" && computerMove == \"paper\"\n\t\t)\n\t) {\n\t\troundResult = \"draw\";\n\t} else {\n\t\troundResult = \"invaild\";\n\t}\n\treturn roundResult;\n}", "function playRound() {\n const computerSelection = computerPlay()\n console.log(computerSelection)\n\n if (playerSelection === 'rock' && computerSelection === 'rock'){\n return youdraw()\n }\n else if (playerSelection === 'rock' && computerSelection === 'scissors'){\n return youwin();\n }\n else if (playerSelection === 'rock' && computerSelection === 'paper'){\n return youlose()\n }\n else if (playerSelection === 'scissors' && computerSelection === 'rock'){\n return youlose()\n }\n else if (playerSelection === 'scissors' && computerSelection === 'paper'){\n return youwin()\n }\n else if (playerSelection === 'scissors' && computerSelection === 'scissors'){\n return youdraw()\n }\n else if (playerSelection === 'paper' && computerSelection === 'scissors'){\n return youlose()\n }\n else if (playerSelection === 'paper' && computerSelection === 'rock'){\n return youwin()\n }\n else if (playerSelection === 'paper' && computerSelection === 'paper'){\n return youdraw()\n } \n}", "function playRound()\n {\n \tlet outcome;\n \tlet computersChoice = getComputerChoice();\n \tlet playersChoice = getPlayerChoice();\n\n \t// Player Rock comparison\n \tif(playersChoice === \"rock\")\n \t{\n \t\tif(computersChoice === \"rock\")\n \t\t{\n \t\t\toutcome = \"tie\";\n \t\t}\n \t\telse if(computersChoice === \"paper\")\n \t\t{\n \t\t\toutcome = \"lose\";\n \t\t}\n \t\telse //scissors\n \t\t{\n \t\t\toutcome = \"win\";\n \t\t}\n \t}\n\n \t// Player Paper comparison\n \tif(playersChoice === \"paper\")\n \t{\n \t\tif(computersChoice === \"rock\")\n \t\t{\n \t\t\toutcome = \"win\";\n \t\t}\n \t\telse if(computersChoice === \"paper\")\n \t\t{\n \t\t\toutcome = \"tie\";\n \t\t}\n \t\telse //scissors\n \t\t{\n \t\t\toutcome = \"lose\";\n \t\t}\n \t}\n\n \t// Player Scissors comparison\n \tif(playersChoice === \"scissors\")\n \t{\n \t\tif(computersChoice === \"rock\")\n \t\t{\n \t\t\toutcome = \"lose\";\n \t\t}\n \t\telse if(computersChoice === \"paper\")\n \t\t{\n \t\t\toutcome = \"win\";\n \t\t}\n \t\telse //scissors\n \t\t{\n \t\t\toutcome = \"tie\";\n \t\t}\n \t}\n\n \tdisplayOutcome(playersChoice, computersChoice, outcome);\n\n \treturn outcome;\n }", "function playRound(player, computer) {\n switch (player) {\n case 'rock':\n if (computer == 'scissors') {\n wins += 1;\n return 'You win! Rock beats scissors';\n } else if (computer == 'paper') {\n losses += 1;\n return 'You lose! Paper beats rock';\n } else {\n return \"It's a tie\";\n }\n case 'paper':\n if (computer == 'rock') {\n wins += 1;\n return 'You win! Paper beats rock';\n } else if (computer == 'scissors') {\n losses += 1;\n return 'You lose! Scissors beats paper';\n } else {\n return \"It's a tie\";\n }\n case 'scissors':\n if (computer == 'paper') {\n wins += 1;\n return 'You win! Scissors beats paper';\n } else if (computer == 'rock') {\n losses += 1;\n return 'You lose! Rock beats scissors';\n } else {\n return \"It's a tie\";\n }\n }\n}", "function rpsls(player_choice) {\n // computer's number, random\n computer_num = Math.round(Math.random(0,5));\n\n// converts player's choice into a number\n player_num = name_to_number(player_choice);\n\n// converts computer's number to choice\n comp_choice = number_to_name(computer_num);\n\n// computes diff between comp and play and divides by modulo 5\n dif_player_comp = (computer_num - player_num) % 5;\n\n// set winner variable\n var winner;\n if (dif_player_comp < 0 ) {\n dif_player_comp = dif_player_comp * -1;\n }\n if ( dif_player_comp === 1 || dif_player_comp === 2) {\n winner = comp_choice;\n return console.log(\"The winner is \" +winner+ \".\");\n }\n else if (dif_player_comp === 3 || dif_player_comp === 4) {\n winner = player_choice;\n return console.log(\"The winner is \" +winner+ \".\");\n }\n else if (comp_choice === player_choice) {\n return console.log(\"It's a tie!\");\n }\n}", "function game(playerSelection){\n let matchOutcome;\n roundNum++;//new round\n matchOutcome=playRound(playerSelection, computerPlay());\n if(matchOutcome==1){\n playerScore++;\n playerScoreDiv.textContent=`${playerScore}`;\n }\n else if(matchOutcome==-1){\n computerScore++;\n pcScoreDiv.textContent=`${computerScore}`;\n }\n else if(matchOutcome==404){\n resultText.textContent=\"invalid selection\";\n roundNum--; //go again\n }\n if(roundNum>=5){\n if(computerScore>playerScore){\n resultText.textContent=\"You lose!\";\n }\n else if(playerScore>computerScore){\n resultText.textContent=\"You win!\";\n \n }\n else{\n resultText.textContent=\"It's a tie!\";\n }\n roundNum=0;\n computerScore=0;\n playerScore=0;\n playerScoreDiv.textContent=`${playerScore}`;\n pcScoreDiv.textContent=`${computerScore}`;\n }\n roundDiv.textContent=`Round: ${roundNum}`;\n}", "function playRound(playerSelection, computerSelection) {\n if (playerSelection.length === computerSelection.length){\n comments.textContent = 'You both are no good!'; \n } else if (playerSelection.length == 4 && computerSelection.length === 5) {\n comments.textContent = \"Damn! Paper beats Rock! :(\";\n computerScore++\n } else if (playerSelection.length == 4 && computerSelection.length === 8) {\n comments.textContent = \"Nice! Rock beats Scissors!\"; \n humanScore++\n } else if (playerSelection.length == 5 && computerSelection.length === 4) {\n comments.textContent = \"Good going! Paper beats Rock!\"; \n humanScore++\n }else if (playerSelection.length == 5 && computerSelection.length === 8) {\n comments.textContent = \"Try harder! Scissors beats Paper!\"; \n computerScore++\n }else if (playerSelection.length == 8 && computerSelection.length === 4) {\n comments.textContent = \"Damn! Rock beats Scissors!\"; \n computerScore++\n } else if (playerSelection.length == 8 && computerSelection.length === 5) {\n comments.textContent = \"Yay! Scissors beats Paper!\"; \n humanScore++\n } else {\n comments.textContent = 'Nice going. something is broken >:(';\n}\n}", "function playRound(playerSelection, computerSelection) {\n // Filter out invalid input\n if(playerSelection.toUpperCase() == \"ROCK\" || playerSelection.toUpperCase() == \"PAPER\" || playerSelection.toUpperCase() == \"SCISSORS\") {\n // If player selection is equal to computer selection => draw\n if(playerSelection.toUpperCase() == computerSelection.toUpperCase()) {\n appendText(\"You both played \" + computerSelection + \". It's a draw!\");\n return 'draw';\n }\n // Otherwise compare the two unique selections to determine a winner\n else {\n switch (playerSelection.toUpperCase()) {\n case 'ROCK':\n if (computerSelection.toUpperCase() == 'SCISSORS') {\n appendText('Rock smashes Scissors - you win!');\n return 'player';\n }\n else {\n appendText('Paper covers Rock - computer wins.');\n return 'computer';\n }\n break;\n case 'PAPER':\n if (computerSelection.toUpperCase() == 'ROCK') {\n appendText('Paper covers Rock - you win!');\n return 'player';\n }\n else {\n appendText('Scissors cuts Paper - computer wins.');\n return 'computer';\n }\n break;\n case 'SCISSORS':\n if (computerSelection.toUpperCase() == 'PAPER') {\n appendText('Scissors cuts Paper - you win!');\n return 'player';\n }\n else {\n appendText('Rock smashes Scissors - computer wins.');\n return 'computer';\n }\n break;\n }\n }\n }\n else {\n appendText('Invalid option. Please enter Rock, Paper, or Scissors.');\n return 'invalid';\n }\n}", "function playRound(playerSelection, computerSelection)\n{\n //this is how TOP suggested i do things\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerSelection.toLowerCase();\n\n if(playerSelection == computerSelection)\n {\n return \"You tied the computer!\";\n }\n else if((playerSelection == \"rock\" && computerSelection == \"scissors\") ||\n (playerSelection == \"scissors\" && computerSelection == \"paper\") ||\n (playerSelection == \"paper\" && computerSelection == \"rock\"))\n {\n return \"You win! \" + playerSelection + \" beats \" + computerSelection;\n }\n else\n {\n return \"You lose! \" + computerSelection + \" beats \" + playerSelection;\n }\n}", "function playRound(input) {\n let playerSelection = input;\n let computerSelection = computerPlay();\n if (playerSelection === 'rock') {\n if (computerSelection === 'rock') {\n return ['draw',\"It's a draw! You both selected Rock.\"]\n } else if (computerSelection === 'paper') {\n return ['lose',\"You lose! Paper covers Rock.\"]\n } else {\n return ['win',\"You win! Rock crushes Scissors.\"]\n }\n } else if (playerSelection === 'paper') {\n if (computerSelection === 'rock') {\n return ['win',\"You win! Paper covers Rock.\"]\n } else if (computerSelection === 'paper') {\n return ['draw',\"It's a draw! You both selected Paper.\"]\n } else {\n return ['lose',\"You lose! Scissors cut up Paper.\"]\n }\n } else {\n if (computerSelection === 'rock') {\n return ['lose',\"You lose! Rock crushes Scissors.\"]\n } else if (computerSelection === 'paper') {\n return ['win',\"You win! Scissors cut up Paper.\"]\n } else {\n return ['draw',\"It's a draw! You both selected Scissors.\"]\n }\n }\n}", "function roundWinner (playerSelection, computerSelection, victor) {\n let doesExist = checkForRoundScore();\n if (doesExist = \"doesExist\") {\n if (victor == \"tie\") {\n roundOutcome.textContent = `It's a tie, you both chose ${playerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (victor == \"compWin\") {\n if (playerSelection == \"rock\" && computerSelection ==\"paper\") {\n roundOutcome.textContent = `The computer wins. ${capitalize(computerSelection)} beats ${playerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (playerSelection == \"paper\" && computerSelection == \"scissors\") {\n roundOutcome.textContent = `The computer wins. ${capitalize(computerSelection)} beat ${playerSelection}.`; \n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (playerSelection == \"scissors\" && computerSelection == \"rock\") {\n roundOutcome.textContent = `The computer wins. ${capitalize(computerSelection)} beats ${playerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n }\n } else if (victor == \"playerWin\") {\n if (playerSelection == \"rock\" && computerSelection ==\"scissors\") {\n roundOutcome.textContent = `You win! ${capitalize(playerSelection)} beats ${computerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (playerSelection == \"paper\" && computerSelection == \"rock\") {\n roundOutcome.textContent = `You win! ${capitalize(playerSelection)} beats ${computerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (playerSelection == \"scissors\" && computerSelection == \"paper\") {\n roundOutcome.textContent = `You win! ${capitalize(playerSelection)} beat ${computerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n }\n }\n }\n}", "function playRound (playerChoice, computerChoice) {\n playerChoice = playerChoice.toLowerCase(); //this ensures the user's choice is not case sensitive as it will automatically input as all lower case\n computerChoice = computerChoice.toLowerCase(); //this ensures the computer's choice is not case sensitive as it will automatically input as all lower case\n if (playerChoice == computerChoice) { //this is the choice if the user and computer choose the same option\n return `Draw! ${playerChoice} equals ${computerChoice}`\n }\n else if (playerChoice == \"rock\") { //this is the choice if the user chooses rock\n if (computerChoice == \"scissors\") {\n return \"You won! Rock beats Scissors.\";\n }\n else if (computerChoice == \"paper\") {\n return \"You lost... Paper beats Rock.\";\n }\n }\n else if (playerChoice == \"paper\") { //this is the choice if the user chooses paper\n if (computerChoice == \"rock\") {\n return \"You won! Paper beats Rock.\";\n }\n else if (computerChoice == \"scissors\") {\n return \"You lost... Scissors beats Paper.\";\n }\n }\n else if (playerChoice == \"scissors\") { //this is the choice if the use chooses scissors\n if (computerChoice == \"paper\") {\n return \"You won! Scissors beats Paper.\";\n }\n else if (computerChoice == \"rock\") {\n return \"You lost... Rock beats Scissors.\";\n }\n }\n else {\n return \"This should not have happened.\"\n }\n}", "function playRockPaperScissorsRound(selectedObject) {\n //Randomly assign picks to user and enemy\n const userPlay = selectedObject;\n const enemyPlay = getRandomRPSPlay();\n\n //Determine result of round\n const result = determineRPSResult(userPlay, enemyPlay);\n const resultString = getStringForRPSResult(result);\n rpsGameData = updateRPSGameData(rpsGameData, result);\n\n //Handle the result of the round\n if (rpsGameData.wins === 3) {\n //The user won\n const resultText = `You beat ${fight.enemyName}! You gained ${selectedResponse.hpEffect} hp and ${selectedResponse.fameEffect} fame.`;\n handleFightCompletion(resultText, selectedResponse.hpEffect, selectedResponse.fameEffect);\n } else if (rpsGameData.losses === 3) {\n //The enemy won\n const resultText = `You lost to ${fight.enemyName}! You lost ${selectedResponse.hpEffect} hp and ${selectedResponse.fameEffect} fame.`;\n handleFightCompletion(resultText, selectedResponse.hpEffect, selectedResponse.fameEffect);\n } else {\n //The game isn't done, play another round\n resultsDiv.textContent = `You played ${userPlay} and ${fight.enemyName} played ${enemyPlay}. ${resultString}. Wins: ${rpsGameData.wins}, Losses: ${rpsGameData.losses}`;\n }\n}", "function winCounter(roundValue, playerSelection, computerSelection) {\n if (roundValue == 1) {\n return \"You draw this round! You both chose \" + playerSelection + \".\";\n } else if (roundValue == 2) {\n playerWins++;\n return (\n \"You win this round! \" +\n playerSelection +\n \" beats \" +\n computerSelection +\n \".\"\n );\n } else {\n computerWins++;\n return (\n \"You lose this round! \" +\n computerSelection +\n \" beats \" +\n playerSelection +\n \".\"\n );\n }\n}", "function game() {\n // initialize win counter for both player and computerScore\n let playerScore = 0;\n let computerScore = 0;\n \n // make a loop that ::: (loop 5 times)\n\n for(let i = 0; i < 5; i++) {\n // ask the user for the input rock paper or scissors as a string\n const playerSelection = prompt('Choose Rock Paper or Scissors!');\n // generates a computer string value with computerPlay function\n const computerSelection = computerPlay();\n // use playRound function with the two values and increment the result of playerScore and computerScore\n let tempValue = playRound(playerSelection, computerSelection);\n playerScore += tempValue[0];\n computerScore += tempValue[1];\n }\n console.log(playerScore);\n // prints game finished when loop is done and log if player won if playerScore is larger then 2\n (playerScore > computerScore) ? console.log('You Won Yay!!!') : (playerScore === computerScore) ? console.log('Draw!!!') : console.log('You Lose!!!');\n}", "function playRound(choice1, choice2){\n//equavalent choices\n if(choice1 === choice2){\n return(\"The result is a tie\");\n }\n if(choice1 === \"rock\"){\n if(choice2 === \"scissors\"){\n userScore++;\n return (\"Rock Wins\")\n } else {\n computerScore++;\n return(\"paper Wins!\")\n }\n }\n\n if(choice1 === \"paper\"){\n if(choice2 === \"rock\"){\n userScore++;\n return (\"paper Wins\")\n } else {\n computerScore++;\n return(\"scissors Wins!\")\n }\n }\n\n if(choice1 === \"scissors\"){\n if(choice2 === \"paper\"){\n userScore++;\n return (\"Scissors Wins\")\n } else {\n computerScore++;\n return(\"rock Wins!\")\n }\n }\n \n}", "function playRound(player, computer) {\n // Tie scenarios\n if (player === 'rock' && computer === 'rock') {\n thrown(player, computer);\n middleText.innerText = 'Rock matches Rock. Tie.';\n } else if (player === 'scissors' && computer === 'scissors') {\n thrown(player, computer);\n middleText.innerText = 'Scissors matches Scissors. Tie.';\n } else if (player === 'scissors' && computer === 'scissors') {\n thrown(player, computer);\n middleText.innerText = 'Scissors matches Scissors. Tie.';\n } else if (player === 'paper' && computer === 'paper') {\n thrown(player, computer);\n middleText.innerText = 'Paper matches Paper. Tie.';\n }\n // Player Wins\n else if (player === 'rock' && computer === 'scissors') {\n thrown(player, computer);\n middleText.innerText = 'Rock beats Scissors. Player wins.';\n playerScore++;\n playerCurrentScore.innerText = playerScore;\n }\n else if (player === 'paper' && computer === 'rock') {\n thrown(player, computer);\n middleText.innerText = 'Paper beats Rock. Player wins.';\n playerScore++;\n playerCurrentScore.innerText = playerScore;\n }\n else if (player === 'scissors' && computer === 'paper') {\n thrown(player, computer);\n middleText.innerText = 'Scissors beats Paper. Player wins.';\n playerScore++;\n playerCurrentScore.innerText = playerScore;\n }\n // Computer Wins\n else if (player === 'rock' && computer === 'paper') {\n thrown(player, computer);\n middleText.innerText = 'Paper beats Rock. Computer wins.';\n computerScore++;\n computerCurrentScore.innerText = computerScore;\n }\n else if (player === 'scissors' && computer === 'rock') {\n thrown(player, computer);\n middleText.innerText = 'Rock beats Scissors. Computer wins.';\n computerScore++;\n computerCurrentScore.innerText = computerScore;\n }\n else if (player === 'paper' && computer === 'scissors') {\n thrown(player, computer);\n middleText.innerText = 'Scissors beats Paper. Computer wins.';\n computerScore++;\n computerCurrentScore.innerText = computerScore;\n }\n // check at end of playRound function if anyone has won\n if (playerScore === 5 || computerScore === 5) {\n gameOverMan();\n }\n}", "function playRound(player, computer){\r\n if(player == computer){\r\n winnerRound.innerHTML = `Its a tie. ${player}${\"user\".fontsize(3).sub()} equals ${computer}${\"comp\".fontsize(3).sub()}`;\r\n }\r\n else if(player === \"rock\" && computer===\"scissors\" || player === \"paper\" && computer === \"rock\" || player===\"scissors\" && computer ===\"paper\"){\r\n winnerRound.innerHTML = `<em>You win! ${player}${\"user\".fontsize(3).sub()} beats ${computer}${\"comp\".fontsize(3).sub()}</em>`;\r\n playerPoints++; \r\n }\r\n else {\r\n winnerRound.innerHTML = `<em>You lose.. ${computer}${\"comp\".fontsize(3).sub()} beats ${player}${\"user\".fontsize(3).sub()}</em>`;\r\n computerPoints++; \r\n }\r\n score.textContent = `${playerPoints} : ${computerPoints}`;\r\n // --- check if player or computer has reached 5 points\r\n winner();\r\n}", "function playRound(userSelection, computerSelection) {\n // display msg if there is a tie and get input again\n while (userSelection == computerSelection) {\n computerSelection = computerPlay();\n }\n\n // decide who wins and call appropriate func\n switch (userSelection) {\n case \"Paper\":\n computerSelection == \"Rock\" ?\n userWins(userSelection, computerSelection) :\n userLoses(userSelection, computerSelection);\n break;\n case \"Rock\":\n computerSelection == \"Scissors\" ?\n userWins(userSelection, computerSelection) :\n userLoses(userSelection, computerSelection);\n break;\n case \"Scissors\":\n computerSelection == \"Paper\" ?\n userWins(userSelection, computerSelection) :\n userLoses(userSelection, computerSelection);\n break;\n }\n}", "function game(playerPick) {\n \n let computerPick = computerPlay();\n \n let result = playRound(playerPick, computerPick);\n\n \n\n if (result.includes(\"win\")){\n wins++;\n } else if (result.includes(\"lose\")) {\n losses++;\n } else {\n console.log(\"game() something went wrong\");\n } \n rounds++;\n\n if (rounds == 1) {\n outcomeContent.textContent = \" \";\n }\n \n roundContent.textContent = rounds;\n lossesContent.textContent = losses;\n winsContent.textContent = wins;\n\n //outputs score after each round\n console.log(result + \" Round: \" + rounds + \"/5. Wins: \" + wins + \". Losses: \" + losses + \". Ties: \" + ties + \".\");\n\n //Reports final winner after 5 rounds are played\n if (wins == 5 || losses == 5) {\n console.log(finalWinner(wins, losses, ties));\n outcomeContent.textContent = finalWinner(wins, losses, ties);\n rounds = wins = losses = ties = 0;\n } \n\n \n \n }// end of game", "function RockPaperScissors(userChoice){\n var computer = 1 + Math.floor((Math.random()*3));\n if ((userChoice === 1 && computer === 2) || (userChoice === 2 && computer === 3) || (userChoice === 3 && computer === 1)){\n console.log('Sorry, the computer wins!')}\n if ((userChoice === 2 && computer === 1) || (userChoice === 3 && computer === 2) || (userChoice === 1 && computer === 3)){\n console.log('You win!')}\n if (userChoice === computer){\n console.log('Its a tie!') }\n}", "function playRound(playerSelection, computerSelection){\n result = \"\";\n switch (playerSelection){\n case \"rock\":\n switch (computerSelection){\n case \"rock\":\n result = \"It's a draw! Both players selected rock.\";\n break;\n case \"paper\":\n result = \"You lose! Paper beats rock.\";\n break;\n case \"scissors\":\n result = \"You win! Rock beats scissors.\";\n break;\n }\n break;\n case \"paper\":\n switch (computerSelection){\n case \"rock\":\n result = \"You win! Paper beats rock.\";\n break;\n case \"paper\":\n result = \"It's a draw! Both players selected paper.\";\n break;\n case \"scissors\":\n result = \"You lose! Scissors beats paper.\";\n break;\n }\n break;\n case \"scissors\":\n switch (computerSelection){\n case \"rock\":\n result = \"You lose! Rock beats scissors.\";\n break;\n case \"paper\":\n result = \"You win! Scissors beats paper.\";\n break;\n case \"scissors\":\n result = \"It's a draw! Both players selected scissors.\"; \n break;\n }\n break;\n }\n console.log(result);\n return result;\n}", "function playRound(userChoice, computerChoice) {\n if (userChoice === computerChoice) {\n console.log(\n `It\\'s a Tie! You chose ${userChoice} and Computer chose ${computerChoice} `\n );\n } else if (\n (userChoice === \"rock\" && computerChoice === \"scissors\") ||\n (userChoice === \"paper\" && computerChoice === \"rock\") ||\n (userChoice === \"scissors\" && computerChoice === \"paper\")\n ) {\n console.log(`You Win! ${userChoice} beats ${computerChoice}`);\n return \"win\";\n } else if (\n (userChoice === \"scissors\" && computerChoice === \"rock\") ||\n (userChoice === \"rock\" && computerChoice === \"paper\") ||\n (userChoice === \"paper\" && computerChoice === \"scissors\")\n ) {\n console.log(`You Lose! ${userChoice} lost to ${computerChoice}`);\n return \"lose\";\n }\n}", "function playRound(playerSelection, computerSelection) {\n // map array of a move (key) and its corresponding number (value)\n const moves = new Map([['rock',1],['paper', 2],['scissors', 3]]);\n let playerMove = moves.get(playerSelection.toLowerCase());\n let computerMove = moves.get(computerSelection);\n console.log('Computer\\'s choice: ' + computerSelection);\n console.log('Player\\'s choice: ' + playerSelection);\n // logic that decides who wins a round\n if (playerMove < computerMove) {\n if (playerMove === 1 && computerMove === 3) {\n playerWins++;\n roundResultMessage = \"You Win! \" + playerSelection + \" beats \" + computerSelection;\n } else {\n computerWins++\n roundResultMessage = \"You Lose! \" + computerSelection + \" beats \" + playerSelection;\n }\n } else if (playerMove > computerMove) {\n if (playerMove === 3 && computerMove === 1) {\n computerWins++\n roundResultMessage = \"You Lose! \" + computerSelection + \" beats \" + playerSelection;\n } else {\n playerWins++\n roundResultMessage = \"You Win! \" + playerSelection + \" beats \" + computerSelection;\n }\n } else {\n roundResultMessage = 'Draw!';\n } \n}", "function game () {\n let playerSelection = prompt(\"type in one of the following three choices. rock, paper, or scissors.\");\n playRound(playerSelection, computerPlay());\n\n}", "function results() {\n if (computerChosen === userChosen) {\n return (result = \"It is a tie\");\n } else if (computerChosen === \"rock\") {\n if (userChosen === \"scissors\" || userChosen === \"lizard\") {\n return (result = \"you win\" && userScore++);\n } else {\n return (result = \"you lose\" && computerScore++);\n }\n } else if (computerChosen === \"paper\") {\n if (userChosen === \"rock\" || userChosen === \"spock\") {\n return (result = \"you win\" && userScore++);\n } else {\n return (result = \"you lose\" && computerScore++);\n }\n } else if (computerChosen === \"scissors\") {\n if (userChosen === \"paper\" || userChosen === \"lizard\") {\n return (result = \"you win\" && userScore++);\n } else {\n return (result = \"you lose\" && computerScore++);\n }\n } else if (computerChosen === \"lizard\") {\n if (userChosen === \"spock\" || userChosen === \"paper\") {\n return (result = \"you win\" && userScore++);\n } else {\n return (result = \"you lose\" && computerScore++);\n }\n } else if (computerChosen === \"spock\") {\n if (userChosen === \"scissors\" || userChosen === \"rock\") {\n return (result = \"you win\" && userScore++);\n } else {\n return (result = \"you lose\" && computerScore++);\n }\n }\n}", "function game() {\n\n // scores\n let playerScore = 0;\n let computerScore = 0;\n\n for (let i = 0; i < 5; i++) {\n // get choices\n const playerChoice = getPlayerChoice();\n const computerChoice = computerPlay()\n const result = playRound(playerChoice, computerChoice);\n console.log(`you choose: ${playerChoice}`)\n console.log(`and the computer choose ${computerChoice}`)\n\n // print result\n if (result === 'c') {\n computerScore++;\n console.log('Round Winner: Computer');\n } else if (result === 'p') {\n console.log('Round Winner: Player');\n playerScore++;\n } else {\n console.log('It\\'s a tie');\n }\n }\n\n // final result\n console.log(`final result: `);\n console.log(`Player: ${playerScore}`);\n console.log(`Computer: ${computerScore}`);\n}", "function playRound(playerSelection,computerSelection){\n\n // determines the player who won the round (if any)\n // and increments the scores appropriately\n switch(true){\n case playerSelection === \"rock\" && computerSelection == \"scissors\":\n case playerSelection === \"paper\" && computerSelection == \"rock\":\n case playerSelection === \"scissors\" && computerSelection == \"paper\":\n displayWinner.innerText = `You Win! ${playerSelection} beats ${computerSelection}.`;\n pScore++;\n break;\n case playerSelection == computerSelection:\n displayWinner.innerText = `It was a tie! You both chose ${playerSelection}.`;\n pScore+=.5;\n cScore+=.5\n break;\n default:\n displayWinner.innerText = `You Lose! ${computerSelection} beats ${playerSelection}.`;\n cScore++; \n }\n\n // updates the round number and score display\n playerText = playerText.substr(0,8) + pScore;\n playerScore.innerText = playerText;\n compText = compText.substr(0,10) + cScore;\n compScore.innerText = compText;\n\n // checks for game end conditions\n if(pScore >= 5 || cScore >= 5){\n endGame();\n } else {\n roundText = roundText.substr(0,15) + (cScore+pScore+1);\n roundNumber.innerText = roundText;\n }\n}" ]
[ "0.863175", "0.85239923", "0.84496284", "0.8438544", "0.8408462", "0.84058946", "0.8381335", "0.83567536", "0.83399177", "0.83178955", "0.82966834", "0.8285967", "0.8272153", "0.8271456", "0.82300484", "0.82243884", "0.8220587", "0.82109475", "0.8199798", "0.8194244", "0.8189112", "0.81528664", "0.81429785", "0.8141332", "0.81409746", "0.8131884", "0.8114831", "0.80914307", "0.80875385", "0.80861956", "0.8085021", "0.8065941", "0.805253", "0.8042751", "0.802609", "0.80074203", "0.80040264", "0.8000074", "0.7993371", "0.79708856", "0.7957763", "0.7943726", "0.7942107", "0.7928703", "0.7911751", "0.787705", "0.7866064", "0.78620434", "0.7860098", "0.7835796", "0.7834809", "0.7825896", "0.7818375", "0.7814323", "0.7803542", "0.7787748", "0.7769705", "0.77656126", "0.77609986", "0.7748738", "0.77301556", "0.77102107", "0.7707996", "0.77040946", "0.770019", "0.7695669", "0.7688719", "0.76810086", "0.76724064", "0.76721287", "0.7656175", "0.7652653", "0.7650178", "0.7649894", "0.7599018", "0.7594588", "0.757152", "0.75530547", "0.7545498", "0.7532809", "0.7518474", "0.7518413", "0.751183", "0.7470296", "0.74656624", "0.7416564", "0.73907053", "0.7377302", "0.7368589", "0.7362818", "0.7359812", "0.73431087", "0.7336876", "0.7320593", "0.7306841", "0.73034394", "0.7302207", "0.72998405", "0.7297674", "0.728452" ]
0.7489584
83
Function: game() main function that runs 5 rounds and declares a winner argument: none return: none Author: Bhupinder Singh Date: Sept 23 2021 Revision:
function game(playerSelection){ let matchOutcome; roundNum++;//new round matchOutcome=playRound(playerSelection, computerPlay()); if(matchOutcome==1){ playerScore++; playerScoreDiv.textContent=`${playerScore}`; } else if(matchOutcome==-1){ computerScore++; pcScoreDiv.textContent=`${computerScore}`; } else if(matchOutcome==404){ resultText.textContent="invalid selection"; roundNum--; //go again } if(roundNum>=5){ if(computerScore>playerScore){ resultText.textContent="You lose!"; } else if(playerScore>computerScore){ resultText.textContent="You win!"; } else{ resultText.textContent="It's a tie!"; } roundNum=0; computerScore=0; playerScore=0; playerScoreDiv.textContent=`${playerScore}`; pcScoreDiv.textContent=`${computerScore}`; } roundDiv.textContent=`Round: ${roundNum}`; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function game(){\n\twhile(rounds<5){\n\t\tconst playerSelection = playerPLay();\n\t\tconst computerSelection = computerPlay();\n\t\tconsole.log(playRound(playerSelection, computerSelection));\n\t\tconsole.log(\"Scoreboard: Won: \" + won + \" Lost: \" + lost + \" Drawn: \" + drawn );\n\t\trounds++;\n\t}\n\n}", "function game() {\n round = 0;\n while (round < 5) {\n playerSelection = prompt('Enter rock, paper, or scissors.');\n computerSelection = computerPlay();\n console.log(playRound(playerSelection,computerSelection));\n round++;\n }\n \n if (w > l) {\n return 'You Win the Game!';\n } else if (w < l) {\n return 'You Lose the Game!';\n } else {\n return 'It\\'s a draw!';\n }\n }", "function game() {\n\tlet playerWin = 0;\n\tlet computerWin = 0;\n\tlet playCount = 0;\n\n\tfor (i = 0; i < 5; i++) {\n\t\tplayerMove = playerPlay();\n\t\tcomputerMove = computerPlay();\n\t\troundResult = playRound(playerChoice, computerChoice);\n\n\t\tif (roundResult === \"win\") {\n\t\t\tplayerWin++;\n\t\t\tplayCount++;\n\t\t\tconsole.log(\n\t\t\t\t`You win! ${playerMove} beats ${computerMove} in Round ${playCount}`\n\t\t\t);\n\t\t} else if (roundResult === \"lose\") {\n\t\t\tcomputerWin++;\n\t\t\tplayCount++;\n\t\t\tconsole.log(`You lose! ${computerMove} beats ${playerMove}`);\n\t\t} else if (roundResult === \"draw\") {\n\t\t\tplayCount++;\n\t\t\tconsole.log(`It\\'s a draw!`);\n\t\t} else {\n\t\t\tconsole.log(`Invaild!`);\n\t\t}\n\t\tplayerPlay();\n\t\tcomputerPlay();\n\t}\n\tconsole.log(\"---Results----\");\n\tif (playerWin > computerWin) {\n\t\tconsole.log(`Player won ${playerWin} rounds, Player wins!`);\n\t} else if (playerWin < computerWin) {\n\t\tconsole.log(`Computer won ${computerWin} rounds, Computer wins!`);\n\t} else {\n\t\tconsole.log(\n\t\t\t`${playCount} rounds were played, Player won ${playerWin} rounds, Computer won ${computerWin} rounds, it was a draw!`\n\t\t);\n\t}\n}", "function game()\n {\n \tlet playerScore = 0;\n \tlet computerScore = 0;\n \tlet ties = 0;\n \tconst MAX_ROUNDS = 5;\n\n \tfor(let i = 0; i < MAX_ROUNDS; i++)\n \t{\n \t\tif(!(playerScore === 3 || computerScore === 3))\n \t\t{\n \t\t\tlet outcome = playRound();\n\n\t \t\tif(outcome === \"win\")\n\t \t\t{\n\t \t\t\tplayerScore++;\n\t \t\t}\n\t \t\telse if(outcome === \"lose\")\n\t \t\t{\n\t \t\t\tcomputerScore++;\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t \t\t\tties++;\n\t \t\t}\n\n\t \t\tgetCurrentScore(playerScore, computerScore, ties);\n\t \t}\n \t}\n\n \tgetOutcome(playerScore, computerScore, ties);\n }", "function game () {\n /* Function to play the game over 5 rounds */\n let roundResult;\n let round = 0;\n let wins = 0;\n let losses = 0;\n let draws = 0;\n /* Create a while loop that plays 5 rounds */\n while (round < 5) {\n /* Ask the user to enter a choice */\n let userSelection = prompt (\"Enter rock, paper or scissors\");\n /* Now call computerPlay to get the computers selection */\n let computerSelection = computerPlay ();\n /* Call the function playRound that compares what the user entered to the computers choice and returns error, draw, win or lose */\n roundResult = playRound (userSelection, computerSelection);\n /* Check what result of the round was */\n if (roundResult === \"error\") {\n /* User didn't select rock paper or scissors so thats an error, play the round again */\n alert (\"please enter rock, paper or scissors\");\n }\n /* Otherwise depending on the result, increment the appropriate counter and the round count and show a message */\n else if (roundResult === \"draw\") {\n draws++;\n round++;\n alert (\"The round was a draw. The score is player: \" + wins + \" computer: \" + losses + \" draws: \" + draws);\n }\n else if (roundResult === \"win\") {\n wins++;\n round++;\n alert (\"You win. The score is player: \" + wins + \" computer: \" + losses + \" draws: \" + draws);\n }\n else if (roundResult === \"lose\") {\n losses++;\n round++;\n alert (\"You lose. The score is player: \" + wins + \" computer: \" + losses + \" draws: \" + draws);\n }\n\n }\n}", "function game() {\n // Create a loop that will play rock, paper, scissors for 5 rounds\n for (let i = 0; i < 5; i++) {\n // Console.log the results of the game\n let player = player_selection();\n let computer = computerPlay();\n console.log(singleRound(player, computer));\n }\n }", "function game(playerPick) {\n \n let computerPick = computerPlay();\n \n let result = playRound(playerPick, computerPick);\n\n \n\n if (result.includes(\"win\")){\n wins++;\n } else if (result.includes(\"lose\")) {\n losses++;\n } else {\n console.log(\"game() something went wrong\");\n } \n rounds++;\n\n if (rounds == 1) {\n outcomeContent.textContent = \" \";\n }\n \n roundContent.textContent = rounds;\n lossesContent.textContent = losses;\n winsContent.textContent = wins;\n\n //outputs score after each round\n console.log(result + \" Round: \" + rounds + \"/5. Wins: \" + wins + \". Losses: \" + losses + \". Ties: \" + ties + \".\");\n\n //Reports final winner after 5 rounds are played\n if (wins == 5 || losses == 5) {\n console.log(finalWinner(wins, losses, ties));\n outcomeContent.textContent = finalWinner(wins, losses, ties);\n rounds = wins = losses = ties = 0;\n } \n\n \n \n }// end of game", "function game() {\n for (let i = 0; i < 5; i++) {\n let playerSelect = prompt(\"Pick a move\");\n const computerSelect = computerPlay()\n let compSelect = alert(\"computer just chose: \" + computerSelect);\n console.log(playRound(playerSelect, computerSelect));\n }\n return reportWinner(playerScore, computerScore);\n}", "function game() {\n \n round = 0;\n while (round < 5) {\n playerSelection = prompt('Rock Paper Scissors! Please enter your selection:', 'Rock');\n computerSelection = computerPlay();\n console.log(playRound(playerSelection, computerSelection));\n round++;\n }\n\n if (win > loss) {\n return 'You win the game! Player: ' + win + ', Computer: ' + loss;\n } else if (win < loss) {\n return 'You lose the game! Computer wins! Player: ' + win + ', Computer: ' + loss;\n } else {\n return 'It\\'s a draw!';\n }\n}", "function game () {\n\n // need a way to record the winner and keep track of each player's score\n let playerScore = 0;\n let computerScore = 0;\n\n\n // loop for 5 rounds\n for (i = 0; i < 5; i++) {\n \n\n let playerSelection = prompt(\"Enter rock, paper, or scissors.\");\n\n \n // increment score for the winner\n switch (playerWon) {\n case 0:\n computerScore+=1;\n case 1:\n playerScore+= 1;\n case -1:\n break;\n }\n\n // output round results\n console.log(playRound(playerSelection));\n console.log(`Computer chose ${computerSelection} and you chose ${playerSelection}. Your score is ${playerScore} and the computer's is ${computerScore}.`);\n }\n\n\n //output game results \n console.log(`Final score, you: ${playerScore} computer: ${computerScore}`);\n}", "function game() {\n let playerPoints = 0;\n let computerPoints = 0;\n\n for (let i = 0; i < 5; i++) {\n let result = playRound(userPlay(), computerPlay());\n\n // display the value returned on who won\n console.log(result);\n\n // tally up the points\n if (result.slice(0, 6) === 'Player') {\n playerPoints++;\n } else if (result.slice(0, 8) === 'Computer') {\n computerPoints++;\n }\n }\n // choose the final winner based on who won the most rounds (or tie if they have the same wins)\n if (playerPoints > computerPoints) {\n return 'Player has won the game!';\n } else if (playerPoints < computerPoints) {\n return 'Computer has won the game!';\n } else {\n return 'Tie game!';\n }\n}", "function game() {\n for (let round = 1; round <= 5; round++) {\n //playerSelection = humanPlay();\n computerSelection = computerPlay();\n let oneRoundGame = playRound(playerSelection, computerSelection);\n console.log(`round # ${round}: Human = ${playerSelection} & AI = ${computerSelection} | ${oneRoundGame} |`);\n }\n}", "function game() {\n //First round\n let playerSelection = prompt(\"Round one! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n let computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Second round\n playerSelection = prompt(\"Round two! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Third round\n playerSelection = prompt(\"Round three! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Fourth round\n playerSelection = prompt(\"Round four! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Fifth round\n playerSelection = prompt(\"Round five! Rock, Paper or Scissors?\");\n playerSelection = playerSelection.toLowerCase();\n computerSelection = computerPlay();\n console.log(`You chose ${playerSelection}. Computer chose ${computerSelection}.`);\n console.log(playRound(playerSelection, computerSelection));\n console.log(`You: ${playerScore} points, Computer: ${computerScore} points.`);\n\n //Counts the score and announces the winner!\n if (playerScore > computerScore) {\n console.log(\"You won this game! Congratulations!\");\n } else if (computerScore > playerScore) {\n console.log(\"Darn! The computer won. Better luck next time!\");\n } else {\n console.log(\"It's a tie between you and the computer!\");\n }\n}", "function game() {\n for (let i = 0; i < 5; i++) {\n const userChoice = prompt(\"Your Choices... Rock, Paper, Scissors\");\n const computerChoice = getComputerChoice();\n\n console.log(`You chose ${userChoice}`);\n console.log(`Computer chose ${computerChoice}`);\n console.log(score(playRound(userChoice, computerChoice)));\n }\n // print final score outcome to user at end of rounds(loop).\n if (userScore > computerScore) {\n console.log(\n `Well done you WON! Player Score:${userScore} - Computer Score: ${computerScore}`\n );\n } else if (userScore < computerScore) {\n console.log(\n `Oh-No You Lost! Player Score:${userScore} - Computer Score: ${computerScore}`\n );\n } else {\n console.log(\n `It\\'s a DRAW! Player Score:${userScore} - Computer Score: ${computerScore}`\n );\n }\n}", "function Game() {\n rounds = parseInt(prompt(\"How many rounds would you like to play?\"))\n\n for (i = 0; i < rounds; i++) {\n console.log(playRound(playerSelection, computerSelection));\n }\n\n }", "function game() {\n // initialize win counter for both player and computerScore\n let playerScore = 0;\n let computerScore = 0;\n \n // make a loop that ::: (loop 5 times)\n\n for(let i = 0; i < 5; i++) {\n // ask the user for the input rock paper or scissors as a string\n const playerSelection = prompt('Choose Rock Paper or Scissors!');\n // generates a computer string value with computerPlay function\n const computerSelection = computerPlay();\n // use playRound function with the two values and increment the result of playerScore and computerScore\n let tempValue = playRound(playerSelection, computerSelection);\n playerScore += tempValue[0];\n computerScore += tempValue[1];\n }\n console.log(playerScore);\n // prints game finished when loop is done and log if player won if playerScore is larger then 2\n (playerScore > computerScore) ? console.log('You Won Yay!!!') : (playerScore === computerScore) ? console.log('Draw!!!') : console.log('You Lose!!!');\n}", "function game() {\n let matches = 0;\n while (matches < 5) {\n playRound();\n matches += 1;\n }\n console.log(\"You have won \" + playerWins + \", lost \" + computerWins + \" and had \" + ties + \" tied games.\");\n if (playerWins > computerWins) {\n console.log(\"Congratulations! You've won!!\");\n } else if (playerWins < computerWins) {\n console.log (\"I'm sorry, you lost\")\n } else {\n console.log(\"OMG, you guys tied!\")\n }\n}", "function game()\n{\n // Creates a numberOfRounds variable that is used to specify how many rounds of the game should be played\n let numberOfRounds = 5;\n\n for (let i = 1; i <= numberOfRounds; i++)\n {\n playRound();\n }\n}", "function game() {\n let count = 0;\n let win = 0;\n for (let i = 0; i < 5; i++) {\n const playerPrompt = prompt(\"Rock, Paper, or Scissors?\");\n let playerSelection = playerPrompt.toLowerCase();\n const computerSelection = computerPlay();\n const roundResult = playRound(playerSelection, computerSelection);\n alert(roundResult);\n if (!roundResult) {\n i--;\n alert(\"Please choose either rock, paper, or scissors!\");\n } else if (roundResult.charAt(4) === \"w\") {\n count++;\n win++;\n } else if (roundResult.charAt(4) === \"l\") {\n count--;\n }\n }\n let winOrLoss;\n if (count >= 1) {\n winOrLoss = \"YOU WON!\";\n } else if (count === 0) {\n winOrLoss = \"YOU TIED!\";\n } else {\n winOrLoss = \"YOU LOST!\";\n }\n return `${winOrLoss} You won ${win} of 5.`;\n}", "function game(){\n playerScore = 0;\n computerScore = 0;\n for (let i = 0; i < 5; i++){\n playRound();\n }\n if (playerScore > computerScore){\n console.log(`You won the game! Player Score: ${playerScore}, Computer Score: ${computerScore}.`) \n } else if (playerScore < computerScore) {\n console.log(`You lost the game! Player Score: ${playerScore}, Computer Score: ${computerScore}.`);\n } else if (playerScore === computerScore){\n console.log(`It was a draw! Nobody wins!`)\n }\n}", "function playRound()\n {\n \tlet outcome;\n \tlet computersChoice = getComputerChoice();\n \tlet playersChoice = getPlayerChoice();\n\n \t// Player Rock comparison\n \tif(playersChoice === \"rock\")\n \t{\n \t\tif(computersChoice === \"rock\")\n \t\t{\n \t\t\toutcome = \"tie\";\n \t\t}\n \t\telse if(computersChoice === \"paper\")\n \t\t{\n \t\t\toutcome = \"lose\";\n \t\t}\n \t\telse //scissors\n \t\t{\n \t\t\toutcome = \"win\";\n \t\t}\n \t}\n\n \t// Player Paper comparison\n \tif(playersChoice === \"paper\")\n \t{\n \t\tif(computersChoice === \"rock\")\n \t\t{\n \t\t\toutcome = \"win\";\n \t\t}\n \t\telse if(computersChoice === \"paper\")\n \t\t{\n \t\t\toutcome = \"tie\";\n \t\t}\n \t\telse //scissors\n \t\t{\n \t\t\toutcome = \"lose\";\n \t\t}\n \t}\n\n \t// Player Scissors comparison\n \tif(playersChoice === \"scissors\")\n \t{\n \t\tif(computersChoice === \"rock\")\n \t\t{\n \t\t\toutcome = \"lose\";\n \t\t}\n \t\telse if(computersChoice === \"paper\")\n \t\t{\n \t\t\toutcome = \"win\";\n \t\t}\n \t\telse //scissors\n \t\t{\n \t\t\toutcome = \"tie\";\n \t\t}\n \t}\n\n \tdisplayOutcome(playersChoice, computersChoice, outcome);\n\n \treturn outcome;\n }", "function playRound(playerSelection, computerSelection) {\n let win =\n (playerSelection === \"Rock\" && computerSelection === \"Scissors\") ||\n (playerSelection === \"Paper\" && computerSelection === \"Rock\") ||\n (playerSelection === \"Scissors\" && computerSelection === \"Paper\");\n let lose =\n (playerSelection === \"Paper\" && computerSelection === \"Scissors\") ||\n (playerSelection === \"Scissors\" && computerSelection === \"Rock\") ||\n (playerSelection === \"Rock\" && computerSelection === \"Paper\");\n\n while (playerScore < 5 && computerScore < 5) {\n if (win) {\n playerScore++;\n // console.log(\"Player Score: \" + playerScore);\n // console.log(\"Computer Score: \" + computerScore);\n div.innerText = `${playerSelection} beats ${computerSelection}! ${winMessage}`;\n\n round++;\n } else if (lose) {\n computerScore++;\n // console.log(\"Player Score: \" + playerScore);\n // console.log(\"Computer Score: \" + computerScore);\n div.innerText = `${computerSelection} beats ${playerSelection}! ${loseMessage}`;\n\n round++;\n } else if (playerSelection === computerSelection) {\n // console.log(\"Player Score: \" + playerScore);\n // console.log(\"Computer Score: \" + computerScore);\n div.innerText = `You both chose ${computerSelection}. ${tieMessage}`;\n\n round++;\n }\n score_box.innerHTML = `Player Score: ${playerScore} <br> Computer Score: ${computerScore}`;\n roundNo.innerText = round;\n msg_container.appendChild(div);\n return;\n }\n let winner = \"\";\n if (computerScore > playerScore) {\n winner = \"The Computer\";\n } else {\n winner = \"You\";\n }\n\n div.innerText = `GAME OVER - ${winner} Won!`;\n msg_container.appendChild(refresh); //insert refresh button\n}", "function game() {\n\n // scores\n let playerScore = 0;\n let computerScore = 0;\n\n for (let i = 0; i < 5; i++) {\n // get choices\n const playerChoice = getPlayerChoice();\n const computerChoice = computerPlay()\n const result = playRound(playerChoice, computerChoice);\n console.log(`you choose: ${playerChoice}`)\n console.log(`and the computer choose ${computerChoice}`)\n\n // print result\n if (result === 'c') {\n computerScore++;\n console.log('Round Winner: Computer');\n } else if (result === 'p') {\n console.log('Round Winner: Player');\n playerScore++;\n } else {\n console.log('It\\'s a tie');\n }\n }\n\n // final result\n console.log(`final result: `);\n console.log(`Player: ${playerScore}`);\n console.log(`Computer: ${computerScore}`);\n}", "function playToFive() {\n\t//console.log(\"Let's play Rock Paper Scissors\");\n \tplayerRunningTotal = 0; //start each total with zero\n \tcomputerRunningTotal = 0; //start each total with zero\n\t\n while (playerRunningTotal < 5 && computerRunningTotal < 5) {\n\t\t \n userChoice = getPlayerMove(); //calls getPlayerMove function\n \tcomputerChoice = getComputerMove(); //calls getComputerMove function\n \twinner = getWinner(userChoice, computerChoice); //calls getWinner function with the arguments 'userChoice' which is the variable for the function getPlayerMove() and 'computerChoice' which is the variable for the function computerChoice()\n\t\t\t\n if (winner === \"player\") { //if the player is the winner then total increases by one until five is reached\n \tplayerRunningTotal++;\n \t} else if (winner === \"computer\") { //if computer is the winner then total increases by one until five is reached\n \tcomputerRunningTotal++;\n \t}\n \n\talert(\"Player chose \" + userChoice + \" while Computer chose \" + computerChoice + \"! \\nThe score is Player \"+ playerRunningTotal + \", Computer \" + computerRunningTotal + \".\"); //alert is displayed after each round\n }\n}", "function game(win){\n \n for (let i = 0; i < 5; i++){\n\n let win = playRound();\n switch (win){\n case 1: \n playerScore++;\n break;\n case 2: \n computerScore++;\n break;\n case 3: \n draws++;\n break;\n }\n //alert(`win ${win} playerScore ${playerScore} computerscore ${computerScore} round ${i}`)\n }\n\n //add disable play button and reset button\n\n if(computerScore > playerScore){\n alert(`Oh no! you lost ${computerScore} to ${playerScore}. ${draws} draws.`);\n }else if (playerScore > computerScore){\n alert(`Well done! you won ${playerScore} to ${computerScore}. ${draws} draws.`);\n }\n }", "function playToFive() {\n console.log(\"Let's play Rock, Paper, Scissors\");\n var playerWins = 0;\n var computerWins = 0;\n \n while (playerWins < 5 && computerWins < 5) {\n console.log(\"The score is currently player: \" + playerWins + \", computer: \" + computerWins)\n var playerMove = getPlayerMove();\n var computerMove = getComputerMove();\n var winner = getWinner(playerMove,computerMove);\n \n if (winner === \"player\") {\n playerWins += 1;\n console.log(\"You chose \" + playerMove + \" while the computer chose \" + computerMove + \".\");\n console.log(\"The winner of this round is \" + winner + \".\");\n } else if (winner === \"computer\") {\n computerWins += 1;\n console.log(\"You chose \" + playerMove + \" while the computer chose \" + computerMove + \".\");\n console.log(\"The winner of this round is \" + winner + \".\");\n } else if (winner === \"tie\") {\n console.log(\"You chose \" + playerMove + \" while the computer chose \" + computerMove + \".\");\n console.log(\"This round was a tie. Try again!\");\n }\n }\n\n if (playerWins === 5) {\n console.log(\"You won!\"); \n } else if (computerWins === 5) {\n console.log(\"Computer won.\");\n } \n return [playerWins, computerWins];\n \n}", "function round() {\r\n\t//prompt player to choose:\r\n\tlet playerSelection = prompt(\"Rock, Paper, Scissors, SHOOT!\");\r\n\t//avoid case sensitivity issues:\r\n\tplayerSelection = playerSelection.toLowerCase();\r\n\tlet computer = computerPlay();\r\n\t//what do if user's response is something else:\r\n\tif (playerSelection !== \"rock\" && playerSelection !== \"paper\" && playerSelection !== \"scissors\") {\r\n\t\tplayerSelection = prompt(\"Try again- Rock, Paper, Scissors, SHOOT!\");\r\n\t\tplayerSelection = playerSelection.toLowerCase();\r\n\t}\r\n\tconsole.log(\"You chose \" + playerSelection)\r\n\tconsole.log(\"Computer chooses \" + computer);\r\n\t//tie game condition\r\n\tif (playerSelection == computer) {\r\n\t\talert(\"Tie! Try again!\");\r\n\t}\r\n\r\n\t//results will return either \"computer\" or \"player\" (whoever wins the round) so that we can use that value to increment scores in the game function\r\n\t//else if player chooses rock\r\n\telse if (playerSelection == \"rock\") {\r\n\t\t//Rock vs. Paper\r\n\t\tif (computer == \"paper\") {\r\n\t\t\treturn \"computer\";\r\n\t\t\tconsole.log(\"Paper covers Rock! You lose!\");\r\n\t\t}\r\n\t\t//Rock vs. Scissors\r\n\t\telse if (computer == \"scissors\") {\r\n\t\t\treturn \"player\";\r\n\t\t\tconsole.log(\"Rock breaks Scissors! You win!\");\r\n\t\t}\r\n\t}\r\n\t//else if player chooses paper\r\n\telse if (playerSelection == \"paper\") {\r\n\t\t//paper vs rock\r\n\t\tif (computer == \"rock\") {\r\n\t\t\treturn \"player\"\r\n\t\t\tconsole.log(\"Paper covers Rock! You win!\")\r\n\t\t}\r\n\t\t//paper vs scissors\r\n\t\telse if (computer == \"scissors\") {\r\n\t\t\treturn \"computer\"\r\n\t\t\tconsole.log(\"Scissors cut Paper! You lose!\")\r\n\t\t}\r\n\t}\r\n\r\n\t//else- player chooses scissors\r\n\telse {\r\n\t\t//Scissors vs Rock\r\n\t\tif (computer == \"rock\") {\r\n\t\t\treturn \"computer\"\r\n\t\t\tconsole.log(\"Rock braks Scissors! You lose!\")\r\n\t\t}\r\n\t\t//Scissors vs paper\r\n\t\telse if (computer == \"paper\") {\r\n\t\t\treturn \"player\"\r\n\t\t\tconsole.log(\"Scissors cut Paper! You win!\")\r\n\t\t}\r\n\t}\r\n}", "function game() {\n player_count = 0\n computer_count = 0\n for (i = 0; i < 5; i++) {\n result = round()\n if (result === \"1\") {\n player_count++\n } else if (result === \"0\") {\n computer_count++\n }\n } if (player_count > computer_count) {\n console.log(\"You have won the match!\")\n } else if (player_count < computer_count) {\n console.log(\"You have lost the match!\")\n } else {\n console.log(\"The match is a tie!\")\n }\n}", "function playRound(playerSelection, computerSelection){\r\n // console.log(`Player chose ${playerSelection} and computer chose ${computerSelection}`)\r\n\r\n const p = document.createElement('p')\r\n let status = `Player chose ${playerSelection} and computer chose ${computerSelection} ==> `\r\n let resultGame = 0\r\n //first checking for a tie, then checking for individial test cases\r\n\r\n if(playerSelection === computerSelection){\r\n status += `Its a Tie!! You both chose ${playerSelection}`\r\n resultGame= 1\r\n }else if(playerSelection === \"rock\"){\r\n if(computerSelection === \"paper\"){\r\n status += `You lose!! ${computerSelection} beats ${playerSelection}`\r\n resultGame= 0\r\n }else{\r\n status += `You win!! ${playerSelection} beats ${computerSelection}`\r\n resultGame= 2\r\n }\r\n } else if(playerSelection === \"paper\"){\r\n if(computerSelection === \"scissor\"){\r\n status += `You lose!! ${computerSelection} beats ${playerSelection}`\r\n resultGame= 0\r\n }else{\r\n status += `You win!! ${playerSelection} beats ${computerSelection}`\r\n resultGame= 2\r\n }\r\n }else{\r\n if(computerSelection === \"rock\"){\r\n status += `You lose!! ${computerSelection} beats ${playerSelection}`\r\n resultGame= 0\r\n }else{\r\n status += `You win!! ${playerSelection} beats ${computerSelection}`\r\n resultGame= 2\r\n }\r\n\r\n }\r\n\r\n p.textContent = status\r\n res.appendChild(p)\r\n\r\n return resultGame\r\n\r\n\r\n\r\n}", "function playRound(computerSelection, playerSelection) {\n if (playerSelection === \"rock\") {\n if(computerSelection ===\"rock\"){\n result = \"It's a tie, try again!\\n\"; \n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else if (computerSelection === \"scissors\"){\n playerScore++;\n result = \"Congratulations, You Win this round!\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else{\n computerScore++\n result = \"Too bad! The Computer wins this time...\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n }\n else if(playerSelection === \"scissors\"){\n if(computerSelection === \"scissors\"){\n result = \"It's a tie, try again!\";\n para.textContent = result;\n return game(playerScore,computerScore)\n }\n else if(computerSelection === \"paper\"){\n playerScore++;\n result = \"Congratulations, You win this round!\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else{\n computerScore++;\n result = \"Too bad! The computer wins this time...\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n }\n else if (playerSelection === \"paper\"){\n if(computerSelection === \"paper\"){\n result = \"It's a tie, try again!\"; \n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else if (computerSelection === \"rock\"){\n playerScore++;\n result = \"Congratulation, You win this round!\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return game(playerScore,computerScore)\n }\n else {\n computerScore++;\n result = \"Too bad! The computer wins this time...\";\n para.textContent = result;\n board.textContent = \"You\" + playerScore + \" VS \" + computerScore + \"Computer\"\n return playerScore,computerScore\n }\n }\n else {\n result = \"invalid value, you must choose between rock, paper or scissors...\";\n para.textContent = result;\n return game(playerScore,computerScore)\n }\n }", "function playGame(){\n const userChoice = getUserChoice('paper');\n const computerChoice = getComputerChoice();\n console.log('You selected: ' + userChoice);\n console.log('The computer selected: ' + computerChoice);\n \n console.log(determineWinner(userChoice, computerChoice));\n }", "function game() {\r\n\t//initialize scores\r\n\tlet playerScore = 0;\r\n\tlet computerScore = 0;\r\n\t//loop until someone wins 3 rounds\r\n\twhile (playerScore < 3 && computerScore < 3) {\r\n\t\t//score variable to run the round function and store the return value\r\n\t\tlet score = round();\r\n\t\t//if player wins the round, round() should return \"player\"\r\n\t\tif (score == \"player\") {\r\n\t\t\t//increment player's score by one\r\n\t\t\tplayerScore++;\r\n\t\t\t//keeps the player updated on the score after each round\r\n\t\t\tconsole.log(\"You win this round! Score: you: \" + playerScore + \" computer: \" + computerScore)\r\n\t\t}\r\n\t\t//if the computer wins the round, round() should return \"computer\". Used specific else if because when I tried a simple else, computer was credited for tie games.\r\n\t\telse if (score == \"computer\") {\r\n\t\t\t//increment computer's score by one\r\n\t\t\tcomputerScore++;\r\n\t\t\t//update the player with the score after each round\r\n\t\t\tconsole.log(\"You lose this round! Score: you: \" + playerScore + \" computer: \" + computerScore)\r\n\t\t}\r\n\t}\r\n\t//if the player wins 3 rounds, they win and the game ends\r\n\tif (playerScore == 3) {\r\n\t\tconsole.log(\"You win best of 3!\")\r\n\t}\r\n\telse {\r\n\t\t//no need for specific condition here- only other possibility after exiting the while loop is a computer win\r\n\t\tconsole.log(\"You lost 3 rounds! Game over!\")\r\n\t}\r\n}", "function playRound(){\n computerSelection = computerSelectionPhase();\n playerSelection = playerSelectionPhase();\n if (playerSelection === computerSelection){\n console.log(\"You have tied a bow... wait I mean tied with the computer\");\n return 3;\n }\n else if (computerSelection === winningMap[playerSelection]){\n console.log(\"Why couldn't you just let your computer win for once? sigh\");\n return 1;\n }\n console.log(\"Shameful of you to lose... actually nevermind, you tried your best, that's all that matters :)\");\n return 2;\n}", "function singleRound(e) {\n playerInput(e);\n computerPlay();\n resultsDisplay.innerHTML = results;\n displayComputerScore.innerHTML = computerScore;\n displayPlayerScore.innerHTML = playerScore;\n // test if a player has reached 5 points\n if (playerScore === 5) {\n declareWinner.innerHTML = \"You Win!\"\n resetButton.style = \"\";\n } else if (computerScore === 5) {\n declareWinner.innerHTML = \"You Have Been Terminated!\"\n resetButton.style = \"\";\n } else {\n // test selection against computers\n //if not a tie\n if (playerSelection !== computerSelection) {\n //Player Wins Conditions\n if (playerSelection === \"rock\" && computerSelection === \"scissors\") {\n playerScore++;\n return results = \"You Win! Rock beats Scissors!\"\n } else if (playerSelection === \"paper\" && computerSelection === \"rock\") {\n playerScore++;\n return results = \"You Win! Paper beats Rock!\"\n } else if (playerSelection === \"scissors\" && computerSelection === \"paper\") {\n playerScore++;\n return results = \"You Win! Scissors beats Paper!\"\n //Player Loses Conditions\n } else if (playerSelection === \"scissors\" && computerSelection === \"rock\") {\n computerScore++;\n return results = \"You Lose! Rock beats Scissors!\"\n } else if (playerSelection === \"rock\" && computerSelection === \"paper\") {\n computerScore++;\n return results = \"You Lose! Paper beats Rock!\"\n } else if (playerSelection === \"paper\" && computerSelection === \"scissors\") {\n computerScore++;\n return results = \"You Lose! Scissors beats Paper!\"\n }\n } else {\n results = \"It's a Tie!\"\n }\n }\n}", "function playGame() {\n const userChoice = getUserChoice('paper');\n const computerChoice = getComputerChoice();\n console.log(`You: ${userChoice}\nComputer: ${computerChoice}`)\n console.log(determineWinner(userChoice, computerChoice));\n}", "function playRound(uChoice) {\n if (uScore < Math.ceil(rounds/2) && cScore < Math.ceil(rounds/2)) {\n const cChoice = compChoose();\n if (cChoice == uChoice) status.textContent = \"Tie! You both selected \"+uChoice+\".\";\n else if (uChoice == \"rock\" && cChoice == \"scissors\" || \n uChoice == \"paper\" && cChoice == \"rock\" || \n uChoice == \"scissors\" && cChoice == \"paper\") {\n status.textContent = \"Round won! \"+uChoice[0].toUpperCase()+uChoice.substring(1)+\" beats \"+cChoice+\".\";\n uScore +=1;\n } else {\n status.textContent = \"Round lost! \"+cChoice[0].toUpperCase()+cChoice.substring(1)+\" beats \"+uChoice+\".\";\n cScore +=1;\n }\n }\n updateScoreDisplay();\n checkForWinner();\n}", "function game() {\n for (let i = 1; playerScore < 5 && computerScore < 5; i++) {\n let playerChoice = prompt('Rock, Paper, or Scissors?');\n computerSelection = computerPlay();\n playRound(playerChoice, computerSelection);\n }\n if (playerScore === 5) {\n console.log( `Nice job, You won! | Final Score: ${playerScore} - ${computerScore}` );\n } else {\n console.log( `GAME OVER! Try Again. | Final Score: ${playerScore} - ${computerScore}`);\n }\n}", "function playRound(playerSelection, computerSelection = computerPlay()) {\n\n//setting up some variables for different outcomes\n let win = (\"You win! \" + playerSelection + \" beats \" + computerSelection + \"!\");\n let lose = (\"You loser. \" + computerSelection + \" beats \" + playerSelection + \".\");\n let draw = (\"You drew it, \" + playerSelection + \" bounces harmlessly off \" + computerSelection + \".\");\n\n//a mess of if statments to see what outcome happened, i'm sure this can be improved\n if (computerSelection === \"Rock\") {\n if (playerSelection === \"rock\") {\n draws += 1;\n played += 1;\n return draw;\n } else if (playerSelection === \"scissors\") {\n losses += 1;\n played += 1;\n return lose;\n } else {\n wins += 1;\n played += 1;\n return win;\n }\n } else if (computerSelection === \"Paper\") {\n if (playerSelection === \"rock\") {\n losses += 1;\n played += 1;\n return lose;\n } else if (playerSelection === \"scissors\") {\n wins += 1;\n played += 1;\n return win;\n } else {\n draws += 1;\n played += 1;\n return draw;\n }\n } else {\n if (playerSelection === \"rock\") {\n wins += 1;\n played += 1;\n return win;\n } else if (playerSelection === \"scissors\") {\n draws += 1;\n played += 1;\n return draw;\n } else {\n losses += 1;\n played += 1;\n return lose;\n }\n }\n }", "function playRound(playerSelection, computerSelection) {\n if (playerSelection === computerSelection) {\n let outcome = \"Nobody wins!\"\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"paper\" && computerSelection === \"rock\") {\n let outcome = \"You win, paper beats rock!\"\n playerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"rock\" && computerSelection === \"paper\") {\n let outcome = \"You lose, paper beats rock!\"\n computerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"scissors\" && computerSelection === \"rock\") {\n let outcome = \"You lose, rock beats scissors!\"\n computerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"rock\" && computerSelection === \"scissors\") {\n let outcome = \"You win, rock beats scissors!\"\n playerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else if (playerSelection === \"paper\" && computerSelection === \"scissors\") {\n let outcome = \"You lose, scissors beat paper!\"\n computerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n } else {\n let outcome = \"You win, scissors beat paper!\"\n playerScore++\n round++\n displayResult(outcome,playerSelection,computerSelection,playerScore,computerScore,round)\n }\n}", "function game(playerMove) {\r\n\r\n //let playerScore = 0\r\n //let compScore = 0\r\n let roundNum = 0\r\n let playerSelection = playerMove\r\n let computerSelection\r\n let msg\r\n\r\n computerSelection = computerPlay()\r\n switch (playRound(playerSelection, computerSelection)) {\r\n case 0:\r\n msg = 'It\\'s a Tie!'\r\n roundResult.textContent = msg\r\n break\r\n case 1:\r\n playerScore = playerScore + 1\r\n msg = 'You Win! ' + capFirstLtr(playerSelection) + ' beats ' +\r\n capFirstLtr(computerSelection)\r\n roundResult.textContent = msg\r\n break;\r\n case 2:\r\n compScore = compScore + 1\r\n msg = 'You Lose! ' + capFirstLtr(computerSelection) + ' beats ' +\r\n capFirstLtr(playerSelection)\r\n roundResult.textContent = msg\r\n break\r\n }\r\n\r\n pScore.textContent = 'You: ' + playerScore\r\n comScore.textContent = 'CPU: ' + compScore\r\n}", "function game(e) {\n var roundResult;\n var winner;\n\n //update interface based on round result \n roundResult = (singleRound(this.id,computerPlay()));\n if(roundResult.charAt(0) == 'C'){\n cWin++;\n round++;\n document.getElementById(\"cScore\").innerText =cWin;\n document.getElementById(\"roundNum\").innerText =round;\n }\n else if (roundResult.charAt(0) == 'P'){\n pWin++;\n round++;\n document.getElementById(\"pScore\").innerText = pWin;\n document.getElementById(\"roundNum\").innerText =round;\n }\n else {\n draw++;\n round++;\n document.getElementById(\"dScore\").innerText = draw;\n document.getElementById(\"roundNum\").innerText =round;\n }\n console.log('P:'+pWin + ' C:' + cWin + ' ' +roundResult);\n\n //game result\n if (cWin == 5){\n document.getElementById(\"message\").innerHTML = `Sorry, you lost. [Auto reset in 3 second]`;\n };\n if (pWin == 5){\n document.getElementById(\"message\").innerHTML = `Congratulations, you win. [Auto reset in 3 second]`;\n };\n\n if (cWin == 5 || pWin == 5) {\n setTimeout(() => { reset(); }, 3000);\n\n\n }\n\n\n \n}", "function playRound(playerSelection, computerSelection){\n computerSelection = computerSelection.toLowerCase();\n let winner = false;\n\n //if statements for comparing, separate player wins for easier reading.\n //combined computer win for shorter code\n if ((playerSelection == \"rock\") && (computerSelection == \"scissors\")){\n message = \"You Win! Rock beats Scissors!\"\n winner = true;\n }\n else if ((playerSelection == \"paper\") && (computerSelection == \"rock\")){\n message = \"You Win! Paper covers Rock!\";\n winner = true;\n }\n else if ((playerSelection == \"scissors\") && (computerSelection == \"paper\")){\n message = \"You win! Scissors cut Paper!\";\n winner = true;\n }\n else {\n message = `You lose! ${computerSelection} beats ${playerSelection}`;\n winner = false;\n }\n if (winner){\n playerScore++;\n output.style.color = \"green\";\n }\n else {\n computerScore++;\n output.style.color = \"red\"; \n }\n if (playerScore >= 5){\n message =`You won!<br><br>Your score: ${playerScore} | Computer score: ${computerScore}<br>Press 'Play Game' to start a new round.`;\n rock.classList.toggle(\"hidden\");\n paper.classList.toggle(\"hidden\");\n scissors.classList.toggle(\"hidden\"); \n play.classList.toggle(\"attention\"); \n }\n else if (computerScore >= 5){ \n message =`You lost!<br><br>Your score: ${playerScore} | Computer score: ${computerScore}<br>Press 'Play Game' to start a new round.`;\n startGame = false;\n rock.classList.toggle(\"hidden\");\n paper.classList.toggle(\"hidden\");\n scissors.classList.toggle(\"hidden\");\n play.classList.toggle(\"attention\");\n }\n\n //displays winning message\n output.innerHTML = message;\n output.style.display = \"block\";\n //updates scores\n scoreUpdate();\n\n}", "function winner() {\n let hasWinner = false;\n let playerNumber = -1; // -1 for no winner\n let gameOver = false;\n let gameWinner = \"none\";\n\n if (winnerX()) { //Detect Whether X has won the game\n hasWinner = true;\n playerNumber = 1;\n player1Score++;\n }\n else if (winnerO()) { //Detect Whether X has won the game\n hasWinner = true;\n playerNumber = 2;\n player2Score++;\n }\n //Determine if all cells of the board are filled (Tie)\n else if (allFilled()) {\n hasWinner = \"Tie\";\n playerNumber = \"Tie\";\n }\n else\n hasWinner = false\n\n //Check for gameover\n // -A player has more wins than half the total rounds\n //Add 1 to the score because the value hasn't been updated yet\n if (playerNumber != -1) {\n //If the winner is player 1 or 2, check if the score before and after updating (+1) wins the game\n if (player1Score >= Math.floor((span_bestOf.innerText / 2) + 1)) { //Player 1 has won the game\n gameOver = true;\n }\n else if (player2Score >= Math.floor((span_bestOf.innerText / 2) + 1)) { //Player 2 has won the game\n gameOver = true;\n }\n else if (currentRound >= span_bestOf.innerText) { //The maximum rounds have been reached and the game is tied\n gameOver = true;\n }\n }\n\n if (gameOver) {\n if (player1Score > player2Score)\n gameWinner = \"player 1\";\n else if (player2Score > player1Score)\n gameWinner = \"player 2\";\n else\n gameWinner = \"Tie\";\n }\n\n\n const winnerData = {\n hasWinner,\n playerNumber,\n gameOver,\n gameWinner\n }\n\n return winnerData;\n\n}", "function playRound(e) {\n\n // get the user selection and show the image\n let playerSelection = e.target.textContent;\n // get the computer selection and show the image\n let computerSelection = computerPlay();\n\n showImage(playerSelection, computerSelection);\n let winner;\n if (playerSelection == \"rock\") {\n if (computerSelection == \"rock\") {\n winner = \"draw\";\n } else if(computerSelection == \"paper\") {\n winner = \"computer\";\n } else {\n winner = \"player\";\n }\n } else if (playerSelection == \"paper\") {\n if (computerSelection == \"rock\") {\n winner = \"player\";\n } else if (computerSelection == \"paper\") {\n winner = \"draw\";\n } else {\n winner = \"computer\";\n }\n } else if (playerSelection == \"scissors\"){\n if (computerSelection == \"rock\") {\n winner = \"computer\";\n } else if (computerSelection == \"paper\") {\n winner = \"player\";\n } else {\n winner = \"draw\";\n }\n } else {\n alert(\"Selection not recognized!!!\");\n }\n\n if (winner == \"player\") {\n playerScore += 1;\n } else if (winner == \"computer\") {\n computerScore += 1;\n }\n \n // update the points on the screen\n showScore(playerScore, computerScore);\n \n if (playerScore == 5 || computerScore == 5) {\n let h1 = document.querySelector('h1');\n let winner = (playerScore == 5) ? \"player\" : \"computer\";\n let finalResult = document.createElement('div');\n finalResult.classList.add('winner');\n let restartButton = document.createElement('button');\n restartButton.classList.add('restart');\n restartButton.textContent = \"restart\"\n finalResult.appendChild(document.createTextNode(`${winner.toUpperCase()} WINS!!`));\n finalResult.appendChild(restartButton);\n restartButton.addEventListener('click', restartGame);\n body.insertBefore(finalResult,h1);\n }\n}", "function roundWinner (playerSelection, computerSelection, victor) {\n let doesExist = checkForRoundScore();\n if (doesExist = \"doesExist\") {\n if (victor == \"tie\") {\n roundOutcome.textContent = `It's a tie, you both chose ${playerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (victor == \"compWin\") {\n if (playerSelection == \"rock\" && computerSelection ==\"paper\") {\n roundOutcome.textContent = `The computer wins. ${capitalize(computerSelection)} beats ${playerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (playerSelection == \"paper\" && computerSelection == \"scissors\") {\n roundOutcome.textContent = `The computer wins. ${capitalize(computerSelection)} beat ${playerSelection}.`; \n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (playerSelection == \"scissors\" && computerSelection == \"rock\") {\n roundOutcome.textContent = `The computer wins. ${capitalize(computerSelection)} beats ${playerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n }\n } else if (victor == \"playerWin\") {\n if (playerSelection == \"rock\" && computerSelection ==\"scissors\") {\n roundOutcome.textContent = `You win! ${capitalize(playerSelection)} beats ${computerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (playerSelection == \"paper\" && computerSelection == \"rock\") {\n roundOutcome.textContent = `You win! ${capitalize(playerSelection)} beats ${computerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n } else if (playerSelection == \"scissors\" && computerSelection == \"paper\") {\n roundOutcome.textContent = `You win! ${capitalize(playerSelection)} beat ${computerSelection}.`;\n roundPlayerChoice.textContent = `Player choice: ${capitalize(playerSelection)}`;\n roundComputerChoice.textContent = `Computer choice: ${capitalize(computerSelection)}`;\n }\n }\n }\n}", "function playRound(playerSelection, computerSelection) {\n\tif (playerSelection === computerSelection){\n \tdocument.getElementById(\"gamestatus\").innerHTML = \"Tie!\";\n console.log(\"Tie!\");\n }else if (playerSelection == 'paper' && computerSelection == 'rock'){\n document.getElementById(\"gamestatus\").innerHTML = \"You Win!\";\n console.log(\"You win!\");\n return ++userScore;\n }else if (playerSelection == 'rock' && computerSelection == 'scissors'){\n document.getElementById(\"gamestatus\").innerHTML = \"You Win!\";\n console.log(\"You win!\");\n return ++userScore;\n \n }else if (playerSelection == 'scissors' && computerSelection == 'rock'){\n document.getElementById(\"gamestatus\").innerHTML = \"You lose!\";\n console.log(\"You lose!\");\n return ++compScore;\n }else if (playerSelection == 'rock' && computerSelection == 'paper'){\n document.getElementById(\"gamestatus\").innerHTML = \"You lose!\";\n console.log(\"You lose!\");\n return ++compScore;\n }else if (playerSelection == 'paper' && computerSelection == 'scissors'){\n document.getElementById(\"gamestatus\").innerHTML = \"You lose!\";\n \tconsole.log(\"You lose!\");\n return ++compScore;\n }else if (playerSelection == 'scissors' && computerSelection == 'paper'){\n document.getElementById(\"gamestatus\").innerHTML = \"You Win!\";\n console.log(\"You win!\");\n return ++userScore;\n }else{\n console.log(\"Invalid input, please try again\");\n }\n}", "function game() {\n for (let i = 0; i < 5; i++) {\n console.log(playRound(prompt('Enter your choice!'), computerPlay()));\n }\n}", "function playRound(player, computer){\r\n if(player == computer){\r\n winnerRound.innerHTML = `Its a tie. ${player}${\"user\".fontsize(3).sub()} equals ${computer}${\"comp\".fontsize(3).sub()}`;\r\n }\r\n else if(player === \"rock\" && computer===\"scissors\" || player === \"paper\" && computer === \"rock\" || player===\"scissors\" && computer ===\"paper\"){\r\n winnerRound.innerHTML = `<em>You win! ${player}${\"user\".fontsize(3).sub()} beats ${computer}${\"comp\".fontsize(3).sub()}</em>`;\r\n playerPoints++; \r\n }\r\n else {\r\n winnerRound.innerHTML = `<em>You lose.. ${computer}${\"comp\".fontsize(3).sub()} beats ${player}${\"user\".fontsize(3).sub()}</em>`;\r\n computerPoints++; \r\n }\r\n score.textContent = `${playerPoints} : ${computerPoints}`;\r\n // --- check if player or computer has reached 5 points\r\n winner();\r\n}", "function round(playerSelection){\n \n \n \n computerSelection=computerPlay()\n if (\n playerSelection==='rock' && computerSelection==='rock' ||\n playerSelection==='paper' && computerSelection==='paper' ||\n playerSelection==='scissors' && computerSelection==='scissors')\n {ties+=1;\n wltMessage='You tie!';\n }\n \n else if ( \n playerSelection==='rock' && computerSelection==='paper' ||\n playerSelection==='paper' && computerSelection==='scissors' ||\n playerSelection==='scissors' && computerSelection==='rock')\n {losses+=1;\n wltMessage='You lose!';\n }\n \n else if (\n playerSelection==='rock' && computerSelection==='scissors' ||\n playerSelection==='paper' && computerSelection==='rock' ||\n playerSelection==='scissors' && computerSelection==='paper')\n {\n wins+=1;\n wltMessage='You win!'}\n \n \n let score='wins: '+wins+'\\nLosses: '+losses+'\\nTies: '+ties\n p3.textContent=wltMessage;\n p4.textContent=score;\n \n p1.textContent=p1.textContent.replace(p1.textContent, \n 'You throw '+playerSelection);\n p2.textContent=p2.textContent.replace(p2.textContent,\n 'Skynet throws '+computerSelection);\n \n if(wins===3){\n \n p5.textContent='Sarah Connor is saved';\n winImage=document.createElement('img');\n winImage.className='endImage'\n winImage.src='https://static0.srcdn.com/wordpress/wp-content/uploads/2019/09/hero-0-thumbs-up-terminator-2-.jpg?q=50&fit=crop&w=943&h=500&dpr=1.5';\n endContainer.appendChild(winImage);\n gameOverMan();\n }\n \n else if (losses===3){\n p5.textContent='Skynet has enslaved humanity';\n loseImage=document.createElement('img');\n loseImage.className='endImage';\n loseImage.src='https://www.incimages.com/uploaded_files/image/1920x1080/getty_634118910_397717.jpg';\n endContainer.appendChild(loseImage);\n gameOverMan();\n }\n }", "function playRound(e) {\n if (gamePaused) {\n return;\n }\n\n let computerSelection = computerPlay();\n let playerSelection = this.id;\n\n document.getElementById('round-choices').textContent = `You chose ${playerSelection}, the computer chose ${computerSelection}.`;\n\n winner = checkRoundWinner(computerSelection, playerSelection);\n fightReport = getFightReport(computerSelection, playerSelection);\n\n // announce round winner\n if (winner === 'tie') {\n document.getElementById('round-results').textContent = 'Nothing happens.';\n }\n else if (winner === 'computer') {\n document.getElementById('round-results').textContent = `${fightReport} Sorry, you lose this round.`;\n computerScore++;\n }\n else if (winner === 'player') {\n document.getElementById('round-results').textContent = `${fightReport} You win this round!`;\n playerScore++;\n }\n else {\n document.getElementById('round-results').textContent = 'Glitch in the Matrix. Hmm....';\n }\n\n document.getElementById('player-score').textContent = playerScore;\n document.getElementById('computer-score').textContent = computerScore;\n\n // check for the end of the game\n if (playerScore >= 3) {\n gameOver('player');\n }\n else if (computerScore >= 3) {\n gameOver('computer');\n }\n}", "function playRound(playerSelection, computerSelection) {\n if (playerSelection.toLowerCase() == \"rock\" && computerSelection == \"scissors\") {\n console.log(\"You win! Rock crushes scissors\");\n writeAlert(\"You win! Rock crushes scissors\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"rock\" && computerSelection == \"paper\") {\n console.log(\"You lose! Paper covers rock\");\n writeAlert(\"You lose! Paper covers rock\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"paper\" && computerSelection == \"rock\") {\n console.log(\"You win! Paper covers rock\");\n writeAlert(\"You win! Paper covers rock\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"paper\" && computerSelection == \"scissors\") {\n console.log(\"You lose! scissors cut paper\");\n writeAlert(\"You lose! scissors cut paper\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"scissors\" && computerSelection == \"rock\") {\n console.log(\"You lose! Rock crushes scissors\");\n writeAlert(\"You lose! Rock crushes scissors\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"scissors\" && computerSelection == \"paper\") {\n console.log(\"You win! Scissors cut paper\");\n writeAlert(\"You win! Scissors cut paper\");\n score[0]++;\n return 0\n } \n // Logic extended to lizard and spock\n else if (playerSelection.toLowerCase() == \"rock\" && computerSelection == \"lizard\") {\n console.log(\"You win! Rock crushes lizard\");\n writeAlert(\"You win! Rock crushes lizard\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"lizard\" && computerSelection == \"rock\") {\n console.log(\"You lose! Rock crushes lizard\");\n writeAlert(\"You lose! Rock crushes lizard\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"lizard\" && computerSelection == \"spock\") {\n console.log(\"You win! Lizard poisons Spock\");\n writeAlert(\"You win! Lizard poisons Spock\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"spock\" && computerSelection == \"lizard\") {\n console.log(\"You lose! Lizard poisons Spock\");\n writeAlert(\"You lose! Lizard poisons Spock\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"spock\" && computerSelection == \"scissors\") {\n console.log(\"You win! Spock smashes scissors\");\n writeAlert(\"You win! Spock smashes scissors\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"scissors\" && computerSelection == \"spock\") {\n console.log(\"You lose! Spock smashes scissors\");\n writeAlert(\"You lose! Spock smashes scissors\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"scissors\" && computerSelection == \"lizard\") {\n console.log(\"You win! Scissors decapitate lizard\");\n writeAlert(\"You win! Scissors decapitate lizard\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"lizard\" && computerSelection == \"scissors\") {\n console.log(\"You lose! Scissors decapitate lizard\");\n writeAlert(\"You lose! Scissors decapitate lizard\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"lizard\" && computerSelection == \"paper\") {\n console.log(\"You win! Lizard eats paper\");\n writeAlert(\"You win! Lizard eats paper\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"paper\" && computerSelection == \"lizard\") {\n console.log(\"You lose! Lizard eats paper\");\n writeAlert(\"You lose! Lizard eats paper\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"paper\" && computerSelection == \"spock\") {\n console.log(\"You win! Paper disproves Spock\");\n writeAlert(\"You win! Paper disproves Spock\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"spock\" && computerSelection == \"paper\") {\n console.log(\"You lose! Paper disproves Spock\");\n writeAlert(\"You lose! Paper disproves Spock\");\n score[1]++;\n return 1\n } else if (playerSelection.toLowerCase() == \"spock\" && computerSelection == \"rock\") {\n console.log(\"You win! Spock vaporizes rock\");\n writeAlert(\"You win! Spock vaporizes rock\");\n score[0]++;\n return 0\n } else if (playerSelection.toLowerCase() == \"rock\" && computerSelection == \"spock\") {\n console.log(\"You lose! Spock vaporizes rock\");\n writeAlert(\"You lose! Spock vaporizes rock\");\n score[1]++;\n return 1\n } else {\n console.log(\"It's a draw!\");\n writeAlert(\"It's a draw!\");\n return 2\n }\n}", "function gamePlay(playerMove) {\n const computerChoice = generateComputerMove();\n //learnt the use of switch statements via tutorial - used to execute one of many blocks of code to be used. \n //switch expression is evaluated once and then compared against the \"case\" for a match then code can be executed. \n //originally used if statements but this was an easier way to execute.\n switch (playerMove + computerChoice) {\n case \"rockscissor\":\n case \"paperrock\":\n case \"scissorspaper\":\n //change console log \"you win\" to call the win function \n winner(playerMove, computerChoice);\n break; //stops the switch statement from continuing to run\n case \"rockpaper\":\n case \"paperscissors\":\n case \"scissorsrock\":\n // change console log to call the lose function \n //lose(playerMove, computerChoice)\n loser(playerMove, computerChoice);\n break;\n case \"rockrock\":\n case \"paperpaper\":\n case \"scissorsscissors\":\n tie(playerMove, computerChoice);\n break;\n\n }\n\n\n}", "function game () {\n let playerSelection = prompt(\"type in one of the following three choices. rock, paper, or scissors.\");\n playRound(playerSelection, computerPlay());\n\n}", "function playRound(playerSelection, computerSelection) {\n \n\n if (playerSelection === \"Rock\" && computerSelection === \"Rock\"){\n draw();\n } else if (playerSelection === \"Rock\" && computerSelection === \"Paper\"){\n computerWin();\n } else if (playerSelection === \"Rock\" && computerSelection === \"Scissors\"){\n playerWin();\n } else if (playerSelection === \"Paper\" && computerSelection === \"Rock\"){\n playerWin();\n } else if (playerSelection === \"Paper\" && computerSelection === \"Scissors\"){\n computerWin();\n } else if (playerSelection === \"Paper\" && computerSelection === \"Paper\"){\n draw();\n } else if (playerSelection === \"Scissors\" && computerSelection === \"Rock\"){\n computerWin();\n roundResult.textContent = \"You lose!\";\n } else if (playerSelection === \"Scissors\" && computerSelection === \"Scissors\"){\n draw();\n } else if (playerSelection === \"Scissors\" && computerSelection === \"Paper\"){\n playerWin();\n }\n}", "function nextRound(round){\n\tround++;\n\tboard = makeBlank(words[round-1].length);\n\tguess = [];\n\tpile = [];\n\treturn round;\n}", "function playRound() {\n const computerSelection = computerPlay()\n console.log(computerSelection)\n\n if (playerSelection === 'rock' && computerSelection === 'rock'){\n return youdraw()\n }\n else if (playerSelection === 'rock' && computerSelection === 'scissors'){\n return youwin();\n }\n else if (playerSelection === 'rock' && computerSelection === 'paper'){\n return youlose()\n }\n else if (playerSelection === 'scissors' && computerSelection === 'rock'){\n return youlose()\n }\n else if (playerSelection === 'scissors' && computerSelection === 'paper'){\n return youwin()\n }\n else if (playerSelection === 'scissors' && computerSelection === 'scissors'){\n return youdraw()\n }\n else if (playerSelection === 'paper' && computerSelection === 'scissors'){\n return youlose()\n }\n else if (playerSelection === 'paper' && computerSelection === 'rock'){\n return youwin()\n }\n else if (playerSelection === 'paper' && computerSelection === 'paper'){\n return youdraw()\n } \n}", "function playRound(playerSelection, computerSelection){\n // if statements to test if player wins or loses.\n if (playerSelection === 'rock' && computerSelection === 'paper'){\n ++compScore;\n winner = 'You Lose! Paper beats Rock.';\n return;\n } else if (playerSelection === 'rock' && computerSelection === 'scissors'){\n ++playerScore;\n winner = 'You Win! Rock beats Scissors.';\n return;\n } else if (playerSelection === 'paper' && computerSelection === 'rock'){\n ++playerScore;\n winner = 'You Win! Paper beats Rock.';\n return;\n } else if (playerSelection === 'paper' && computerSelection === 'scissors'){\n ++compScore;\n winner = 'You Lose! Scissors beats Paper.';\n return;\n } else if (playerSelection === 'scissors' && computerSelection === 'paper'){\n ++playerScore;\n winner = 'You Win! Scissors beats Paper.';\n return;\n } else if (playerSelection === 'scissors' && computerSelection === 'rock'){\n ++compScore;\n winner = 'You Lose! Rock beats Scissors.';\n return;\n } else{\n winner = `You Tied! You both selected ${playerSelection}.`;\n return;\n }\n\n}", "function game() {\n const textBox = document.getElementById(\"instructions\");\n textBox.textContent = \"Pick one of the above to play a round!\"\n getUserThrow();\n /* playRound(getUserThrow(),randomThrow());\n playRound(getUserThrow(),randomThrow());\n playRound(getUserThrow(),randomThrow());\n playRound(getUserThrow(),randomThrow());\n playRound(getUserThrow(),randomThrow());\n if (score >= 3) {\n alert(\"You just won the game!!!!!! (P.S. You lost the game at the same time...)\");\n }\n else {\n alert(\"You just lost the game. Metaphorically. Also, you lost the game literally.\")\n }*/\n\n }", "function playRound(playerChoice) {\n\tconst computerChoice = computerPlay();\n\tlet result = \"none\";\n\tif (playerChoice == \"rock\") {\n\t\tif (computerChoice == \"rock\") {\n\t\t\tresult = \"draw\";\n\t\t} else if (computerChoice == \"paper\") {\n\t\t\tresult = \"lose\";\n\t\t} else if (computerChoice == \"scissors\") {\n\t\t\tresult = \"win\";\n\t\t}\n\t} else if (playerChoice == \"paper\") {\n\t\tif (computerChoice == \"rock\") {\n\t\t\tresult = \"win\";\n\t\t} else if (computerChoice == \"paper\") {\n\t\t\tresult = \"draw\";\n\t\t} else if (computerChoice == \"scissors\") {\n\t\t\tresult = \"lose\";\n\t\t}\n\t} else if (playerChoice == \"scissors\") {\n\t\tif (computerChoice == \"rock\") {\n\t\t\tresult = \"lose\";\n\t\t} else if (computerChoice == \"paper\") {\n\t\t\tresult = \"win\";\n\t\t} else if (computerChoice == \"scissors\") {\n\t\t\tresult = \"draw\";\n\t\t}\n\t}\n decideGame(result);\n\treturn ;\n}", "function newGame() {\n\tlet playerScore = 0\n\tlet comScore = 0\n\tlet gameOver = false\n\treturn function playRound(playerSelection, computerSelection) {\n\t\tif (gameOver)\n\t\t\treturn [playerwins, whoWon, playerScore, comScore, true, false]\n\t\tif (playerSelection == computerSelection)\n\t\t\treturn [false, \"It's a draw\", playerScore, comScore, gameOver, true]\n\t\tconst [playerwins, message] = playerSelection.vs(computerSelection)\n\t\tlet whoWon = ''\n\t\tif (playerwins) {\n\t\t\twhoWon = `You Won, ${message}`\n\t\t\tplayerScore++\n\t\t} else {\n\t\t\twhoWon = `You Lost, ${message}`\n\t\t\tcomScore++\n\t\t}\n\t\tconsole.log(gameOver, playerScore, comScore)\n\t\tif (playerScore === 5 || comScore === 5) gameOver = true\n\t\treturn [playerwins, whoWon, playerScore, comScore, gameOver, false]\n\t}\n}", "function singleRound(pInput, cInput) {\n let winner;\n let winnerInput;\n let loserInput;\n let winMessage;\n\n if (pInput == cInput) {\n winner = 'Nobody';\n } else if (pInput == 'Rock' && cInput == 'Paper') {\n winner = 'Computer'\n } else if (pInput == 'Rock' && cInput == 'Scissor') {\n winner = 'Player'\n } else if (pInput == 'Paper' && cInput == 'Rock') {\n winner = 'Player'\n } else if (pInput == 'Paper' && cInput == 'Scissor') {\n winner = 'Computer'\n } else if (pInput == 'Scissor' && cInput == 'Rock') {\n winner = 'Computer'\n } else if (pInput == 'Scissor' && cInput == 'Paper') {\n winner = 'Player'\n }\n\n let spInput = pInput.toLowerCase();\n let scInput = cInput.toLowerCase();\n\n document.getElementById(\"player-picked\").src = \"https://raw.githubusercontent.com/alta95/rock-paper-scissor-ui/21b036c2b23a31b3e4023c119896f975d17a396a/img\"+spInput+\".svg\";\n document.getElementById(\"computer-picked\").src = \"https://raw.githubusercontent.com/alta95/rock-paper-scissor-ui/21b036c2b23a31b3e4023c119896f975d17a396a/img\"+scInput+\".svg\";\n\n if (winner == 'Nobody') {\n document.getElementById(\"message\").innerHTML = `It's a draw`;\n winMessage=\"It's a draw\";\n return (winMessage);\n }\n\n if (winner == 'Computer') {\n winnerInput = cInput;\n loserInput = pInput;\n } else if (winner == 'Player') {\n winnerInput = pInput;\n loserInput = cInput;\n }\n\n\n\n \n\n winMessage = `${winner} win. ${winnerInput} beats ${loserInput}`\n document.getElementById(\"message\").innerHTML = `${winner} win`;\n console.log(winMessage);\n return winMessage;\n\n}", "function playRound() {\n\n // computerPlay can be moved here for debugging, but is moved later on to make cheating harder. With it after the player picks, he can't know the computer's move before he picks\n\n playerSelection = window.prompt(\"What do you select?\");\n playerSelection = playerSelection.toLowerCase();\n\n // Make a loop until used picks between rock, paper or scissors\n\n while (!(playerSelection == \"rock\" || playerSelection == \"paper\" || playerSelection == \"scissors\")) {\n console.log(\"Hey, no cheating! Please, write 'Rock', 'Paper' or 'Scissors'\");\n playerSelection = window.prompt(\"What do you select?\");\n playerSelection = playerSelection.toLowerCase();\n }\n\n computerPlay();\n\n // Verify winner (or tie), display message and count score\n\n if (computerSelection == playerSelection) {\n console.log(\"It was a tie!\");\n return ties += 1;\n } else if (computerSelection == \"rock\") {\n if (playerSelection == \"paper\") {\n console.log(\"You Win! Paper beats Rock\");\n return playerWins += 1;\n } else {\n console.log(\"You Lose! Rock beats Scissors\");\n return computerWins += 1;\n }\n } else if (computerSelection == \"paper\") {\n if (playerSelection == \"rock\") {\n console.log(\"You Lost! Paper beats Rock\");\n return computerWins += 1;\n } else {\n console.log(\"You Win! Scissors beats Paper\");\n return playerWins += 1;\n }\n } else {\n if (playerSelection == \"rock\") {\n console.log(\"You Win! Rock beats Scissors\");\n return playerWins += 1;\n } else {\n console.log(\"You Lose! Scissors beats Paper\");\n return computerWins += 1;\n }\n }\n}", "function playRound(playerSelection, computerSelection) {\n playerSelection = userChoice;\n computerSelection = computerChoice;\n let playerWin;\n \n\n switch (playerSelection){\n case computerSelection:\n playerWin = 3;\n break;\n case \"rock\":\n if (computerSelection == \"scissors\"){\n playerWin = 1;\n } else if (computerSelection == \"paper\"){\n playerWin = 2;\n }\n break;\n case \"paper\":\n if (computerSelection == \"rock\"){\n playerWin = 1;\n } else if (computerSelection == \"scissors\"){\n playerWin = 2;\n }\n break;\n case \"scissors\":\n if (computerSelection == \"paper\"){\n playerWin = 1;\n }else if (computerSelection == \"rock\"){\n playerWin =2;\n }\n break;\n }\n\n switch(playerWin){\n case 1:\n round.textContent = `You win! ${playerSelection} beats ${computerSelection}.`;\n return playerWin;\n break;\n case 2: \n round.textContent = `You loose! ${computerSelection} beats ${playerSelection}`;\n return playerWin;\n break;\n case 3: \n round.textContent = `WOW! ${playerSelection} vs ${computerSelection} it's a draw!`;\n return playerWin;\n break;\n }\n\n \n \n }", "function playGame(e) {\n let playerSelection = e.target.innerText;\n let computerSelection = Math.floor(Math.random() * 3);\n if (computerSelection === 0) {\n computerSelection = \"Rock\";\n }else if (computerSelection === 1) {\n computerSelection = \"Paper\";\n }else {\n computerSelection = \"Scissors\";\n }\n\n//this section adds the string \"wins\" onto the result of Player or Computer winning. It then adds one point to the\n//score array from above; with the player located at array index zero, and the computer located at array index 1.\n//If the player and computer choose the same item, the message will display \"results in a tie match\", and no\n//score is added to the score array. The checkwinner function is called to determine a winner.\n let result = checkWinner(playerSelection, computerSelection);\n if (result === \"Player\") {\n result += \" wins!\";\n winner[0]++;\n }else if (result === \"Computer\") {\n result += \" wins!\";\n winner[1]++;\n }else {\n result += \" results in a tie match\";\n }\n\n//This is a string literal, that displays which player is in the lead, at the top of the screen. Below it, is\n//a messager function that displays the player and computer choices, and who is the winner.\n score.innerHTML = `Player: ${winner[0]} Computer: ${winner[1]}`;\n messager(`${playerSelection} vs ${computerSelection} <br> <b> ${result} </b>`)\n}", "function determineWinnings() {\n if (blank == 0) {\n if (grapes == 5) {\n winnings = playerBet * 10;\n } else if (watermalon == 5) {\n winnings = playerBet * 20;\n } else if (oranges == 5) {\n winnings = playerBet * 30;\n } else if (cherries == 5) {\n winnings = playerBet * 40;\n } else if (crown == 5) {\n winnings = playerBet * 50;\n } else if (dollor == 5) {\n winnings = playerBet * 75;\n } else if (seven == 5) {\n winnings = playerBet * 100;\n msgJackpot();\n } else if (grapes == 4) {\n winnings = playerBet * 12;\n } else if (watermalon == 4) {\n winnings = playerBet * 12;\n } else if (oranges == 4) {\n winnings = playerBet * 13;\n } else if (cherries == 4) {\n winnings = playerBet * 14;\n } else if (crown == 4) {\n winnings = playerBet * 15;\n } else if (dollor == 4) {\n winnings = playerBet * 20;\n } else if (seven == 4) {\n winnings = playerBet * 40;\n } else if (grapes == 3) {\n winnings = playerBet * 6;\n } else if (watermalon == 3) {\n winnings = playerBet * 6;\n } else if (oranges == 3) {\n winnings = playerBet * 7;\n } else if (cherries == 3) {\n winnings = playerBet * 8;\n } else if (crown == 3) {\n winnings = playerBet * 9;\n } else if (dollor == 3) {\n winnings = playerBet * 15;\n } else if (seven == 3) {\n winnings = playerBet * 30;\n } else if (grapes == 2) {\n winnings = playerBet * 2;\n } else if (watermalon == 2) {\n winnings = playerBet * 2;\n } else if (oranges == 2) {\n winnings = playerBet * 3;\n } else if (cherries == 2) {\n winnings = playerBet * 4;\n } else if (crown == 2) {\n winnings = playerBet * 5;\n } else if (dollor == 2) {\n winnings = playerBet * 10;\n } else if (seven == 2) {\n winnings = playerBet * 20;\n } else {\n winnings = playerBet * 1;\n }\n\n if (seven == 1) {\n winnings = playerBet * 5;\n }\n winNumber++;\n playerMoney = playerMoney + winnings;\n winRatio = true;\n } else {\n lossNumber++;\n playerMoney = playerMoney - playerBet;\n winRatio = false;\n //showLossMessage();\n }\n\n resetFruitTally();\n}", "function PlayRound(player_selection, computer_selection)\n{\n //check if either selection phase failed\n //if so return to selection phase\n if(computer_selection === null) \n {\n return PlayerTurn(player_selection);\n }\n else \n {\n //check if both players made same selection for a tie\n //if not compare player selection to computer selection\n //determine who wins/loses the round\n if(player_selection === computer_selection)\n {\n RoundTie();\n }\n else if(player_selection === rock)\n {\n switch(computer_selection)\n {\n case (paper):\n RoundLoss();\n break;\n case (scissors):\n RoundWin();\n break; \n }\n }\n else if(player_selection === paper)\n {\n switch(computer_selection)\n {\n case (scissors):\n RoundLoss();\n break;\n case (rock):\n RoundWin();\n break; \n }\n }\n else if(player_selection === scissors)\n {\n switch(computer_selection)\n {\n case (rock):\n RoundLoss();\n break;\n case (paper):\n RoundWin();\n break; \n }\n }\n }\n}", "function playRound(playerSelection, computerSelection) {\n if (playerSelection.length === computerSelection.length){\n comments.textContent = 'You both are no good!'; \n } else if (playerSelection.length == 4 && computerSelection.length === 5) {\n comments.textContent = \"Damn! Paper beats Rock! :(\";\n computerScore++\n } else if (playerSelection.length == 4 && computerSelection.length === 8) {\n comments.textContent = \"Nice! Rock beats Scissors!\"; \n humanScore++\n } else if (playerSelection.length == 5 && computerSelection.length === 4) {\n comments.textContent = \"Good going! Paper beats Rock!\"; \n humanScore++\n }else if (playerSelection.length == 5 && computerSelection.length === 8) {\n comments.textContent = \"Try harder! Scissors beats Paper!\"; \n computerScore++\n }else if (playerSelection.length == 8 && computerSelection.length === 4) {\n comments.textContent = \"Damn! Rock beats Scissors!\"; \n computerScore++\n } else if (playerSelection.length == 8 && computerSelection.length === 5) {\n comments.textContent = \"Yay! Scissors beats Paper!\"; \n humanScore++\n } else {\n comments.textContent = 'Nice going. something is broken >:(';\n}\n}", "function newGame(){\n let scorePlayer = 0;\n let scoreComputer = 0;\n let playerChoice = \"\";\n let computerChoice = \"\";\n let roundResult = \"\";\n\n while (scorePlayer < 3 && scoreComputer < 3){\n playerChoice = playerPlay();\n computerChoice = computerPlay();\n roundResult = playRound(playerChoice, computerChoice);\n\n if (roundResult.search(\"You win!\") != -1){\n scorePlayer++;\n }else if(roundResult.search(\"You lose!\") != -1){\n scoreComputer++;\n }\n }\n\n if (scorePlayer > scoreComputer){\n console.log(\"Congratulations, you win the game!\");\n return \"Congratulations, you win the game!\";\n }else{\n console.log(\"Sorry, you lose the game.\");\n return \"Sorry, you lose the game.\";\n }\n}", "function game() {\n let playAgain = true;\n while (playAgain) {\n let playerScore = 0;\n let aiScore = 0;\n let noWinner = true;\n\n console.log('WELCOME TO ROCK, PAPER, SCISSOR agaist a AI');\n while (noWinner) {\n console.log(`Scoreboard: P-${playerScore} vs. AI-${aiScore}`);\n console.log('Type Rock, Paper, or Scissors: ');\n let playerChoice = prompt();\n let aiChoice = computerPlay();\n console.log(`P-${playerChoice} vs. AI-${aiChoice}`);\n let results = playRound(playerChoice, aiChoice);\n if (results == 1) {\n console.log('Player 1 has won, congrats');\n playerScore++;\n }\n\n if (results == 2) {\n console.log('AI has won, should of choosen better');\n aiScore++;\n }\n\n if (results == 3) {\n console.log('Round was a tie, do over');\n }\n\n if (playerScore == aiScore + 2 || playerScore == aiScore - 2) {\n noWinner = false;\n }\n }\n\n if (playerScore == aiScore + 2) {\n console.log('You have beaten the ai \\n YOU ARE LEGENDARY');\n } else {\n console.log('You lost to the ai, wow');\n }\n\n console.log('try again? 1 = YES, 2 = NO');\n playerChoice = prompt();\n if (playerChoice != 1) {\n console.log('GOODBYE');\n playAgain = false;\n }\n }\n}", "function playRound(playerSelection, computerSelection){\n \n playerSelection= playerSelection.toLowerCase(); //converting to this format: Name. This way it's not key sensitive\n playerSelection= playerSelection.charAt(0).toUpperCase() + playerSelection.slice(1);\n let matchOutcomeMessage=\"error\"; //initial value is set to error.\n let pointEarned=404;//404 indicates an invalid selection\n\n //if statements to determine outcomes. There must be a big brain algorithm outhere instead.\n if(playerSelection == \"Rock\" && computerSelection ==\"Scissors\"){\n matchOutcomeMessage= \"You win! Rock beats scissors.\";\n resultText.textContent=`${matchOutcomeMessage}`;\n pointEarned=1;\n }\n else if(playerSelection == \"Rock\" && computerSelection ==\"Rock\"){\n matchOutcomeMessage= \"It's a tie! Rock cannot beat rock.\";\n resultText.textContent=`${matchOutcomeMessage}`;\n pointEarned=0;\n }\n else if(playerSelection == \"Rock\" && computerSelection ==\"Paper\"){\n matchOutcomeMessage= \"You lose! Paper beats rock.\";\n resultText.textContent=`${matchOutcomeMessage}`;\n pointEarned=-1;\n }\n else if(playerSelection == \"Paper\" && computerSelection ==\"Rock\"){\n matchOutcomeMessage= \"You win! Paper beats rock.\";\n resultText.textContent=`${matchOutcomeMessage}`;\n pointEarned=1;\n }\n else if(playerSelection == \"Paper\" && computerSelection ==\"Paper\"){\n matchOutcomeMessage= \"It's a tie! Paper cannot beat paper.\";\n resultText.textContent=`${matchOutcomeMessage}`;\n pointEarned=0;\n }\n else if(playerSelection == \"Paper\" && computerSelection ==\"Scissors\"){\n matchOutcomeMessage= \"You lose! Scissors beats paper.\";\n resultText.textContent=`${matchOutcomeMessage}`;\n pointEarned=-1;\n }\n else if(playerSelection == \"Scissors\" && computerSelection ==\"Rock\"){\n matchOutcomeMessage= \"You lose!! Rock beats scissors.\";\n resultText.textContent=`${matchOutcomeMessage}`;\n pointEarned=-1;\n }\n else if(playerSelection == \"Scissors\" && computerSelection ==\"Paper\"){\n matchOutcomeMessage= \"You win! Scissors beats paper.\";\n resultText.textContent=`${matchOutcomeMessage}`;\n pointEarned=1;\n }\n else if(playerSelection == \"Scissors\" && computerSelection ==\"Scissors\"){\n matchOutcomeMessage= \"It's a tie! Scissors cannot beat scissors.\";\n resultText.textContent=`${matchOutcomeMessage}`;\n pointEarned=0;\n }\n //returning score.\n return pointEarned; \n}", "function playRound (playerSelection) {\n \n \n computerSelection = computerPlay();\n\n // always uppercase\n playerSelection = playerSelection.toUpperCase();\n computerSelection = computerSelection.toUpperCase();\n\n\n // ROCK beats SCISSORS\n if (playerSelection == 'ROCK' && computerSelection == 'SCISSORS'){\n playerWon = 1;\n return `You won! ${playerSelection} beats ${computerSelection}!`;\n } else if (playerSelection == 'SCISSORS' && computerSelection == 'ROCK'){\n playerWon = 0;\n return `Drat! You lost! ${computerSelection} beats ${playerSelection}!`;\n } \n \n // SCISSORS beats PAPER\n else if (playerSelection == 'SCISSORS' && computerSelection == 'PAPER'){\n playerWon = 1;\n return `You won! ${playerSelection} beats ${computerSelection}!`;\n } else if (playerSelection == 'PAPER' && computerSelection == 'SCISSORS'){\n playerWon = 0;\n return `Drat! You lost! ${computerSelection} beats ${playerSelection}!`;\n } \n\n // PAPER beats ROCK\n else if (playerSelection == 'PAPER' && computerSelection == 'ROCK'){\n playerWon = 1;\n return `You won! ${playerSelection} beats ${computerSelection}!`;\n } else if (playerSelection == 'ROCK' && computerSelection == 'PAPER'){\n playerWon = 0;\n return `Drat! You lost! ${computerSelection} beats ${playerSelection}!`;\n } else {\n playerWon = -1;\n return 'Golly Jee-Willikers! It\\'s a tie!';\n }\n}", "function playRound(playerSelection,computerSelection){\n\n // determines the player who won the round (if any)\n // and increments the scores appropriately\n switch(true){\n case playerSelection === \"rock\" && computerSelection == \"scissors\":\n case playerSelection === \"paper\" && computerSelection == \"rock\":\n case playerSelection === \"scissors\" && computerSelection == \"paper\":\n displayWinner.innerText = `You Win! ${playerSelection} beats ${computerSelection}.`;\n pScore++;\n break;\n case playerSelection == computerSelection:\n displayWinner.innerText = `It was a tie! You both chose ${playerSelection}.`;\n pScore+=.5;\n cScore+=.5\n break;\n default:\n displayWinner.innerText = `You Lose! ${computerSelection} beats ${playerSelection}.`;\n cScore++; \n }\n\n // updates the round number and score display\n playerText = playerText.substr(0,8) + pScore;\n playerScore.innerText = playerText;\n compText = compText.substr(0,10) + cScore;\n compScore.innerText = compText;\n\n // checks for game end conditions\n if(pScore >= 5 || cScore >= 5){\n endGame();\n } else {\n roundText = roundText.substr(0,15) + (cScore+pScore+1);\n roundNumber.innerText = roundText;\n }\n}", "function playGameConsole() {\n let computerChoice;\n let playerChoice;\n let pScore = 0;\n let cScore = 0;\n let result;\n for (i = 0; i < 5; i++) {\n computerChoice = computerPlay();\n playerChoice = prompt(\"Enter your choice:\");\n if (\n playerChoice.toLowerCase() == \"rock\" ||\n playerChoice.toLowerCase() == \"paper\" ||\n playerChoice.toLowerCase() == \"scissors\"\n ) {\n result = playRound(playerChoice, computerChoice);\n if (result === 1) {\n alert(\"Player WINS with \" + playerChoice + \" over \" + computerChoice);\n pScore++;\n } else if (result === 0)\n alert(\"It's a draw! \" + computerChoice + \" over \" + playerChoice);\n else if (result === -1) {\n alert(\"Computer WINS with \" + computerChoice + \" over \" + playerChoice);\n cScore++;\n }\n } else {\n i--;\n alert(\"Wrong input!\");\n }\n }\n alert(\"PLAYER \" + pScore + \" COMPUTER \" + cScore);\n}", "function playRound(playerSelection, computerSelection) {\n\n //Generates the computer's selection\n computerSelection = computerPlay();\n \n //All below if-statements compare the player and computers selections\n //It also adds 1 to the score, depending on which selection wins\n if (playerSelection === computerSelection) {\n currentRound = currentRound + 1;\n const draw = document.createElement('p');\n draw.textContent = \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". No points for anyone.\";\n resultsWindow.appendChild(draw);\n }\n \n else if (playerSelection === \"rock\" && computerSelection === \"scissors\") {\n playerScore = playerScore + 1;\n currentRound = currentRound + 1;\n const playerRockWins = document.createElement('p');\n playerRockWins.textContent = \"Rock beats scissors.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for you!\";\n resultsWindow.appendChild(playerRockWins);\n }\n \n else if (playerSelection === \"rock\" && computerSelection === \"paper\") {\n computerScore = computerScore + 1;\n currentRound = currentRound + 1;\n const playerRockLose = document.createElement('p');\n playerRockLose.textContent = \"Paper beats rock.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for the computer!\";\n resultsWindow.appendChild(playerRockLose);\n }\n \n else if (playerSelection === \"scissors\" && computerSelection === \"paper\") {\n playerScore = playerScore + 1;\n currentRound = currentRound + 1;\n const playerScissorsWin = document.createElement('p');\n playerScissorsWin.textContent = \"Scisscors beats paper.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for you!\";\n resultsWindow.appendChild(playerScissorsWin);\n }\n \n else if (playerSelection === \"scissors\" && computerSelection === \"rock\") {\n computerScore = computerScore + 1;\n currentRound = currentRound + 1;\n const playerScissorsLose = document.createElement('p');\n playerScissorsLose.textContent = \"Rock beats scissors.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for the computer!\";\n resultsWindow.appendChild(playerScissorsLose);\n }\n \n else if (playerSelection === \"paper\" && computerSelection === \"rock\") {\n playerScore = playerScore + 1;\n currentRound = currentRound + 1;\n const playerPaperWin = document.createElement('p');\n playerPaperWin.textContent = \"Paper beats rock.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for you!\";\n resultsWindow.appendChild(playerPaperWin);\n }\n \n else if (playerSelection === \"paper\" && computerSelection === \"scissors\") {\n computerScore = computerScore + 1;\n currentRound = currentRound + 1;\n const playerPaperLose = document.createElement('p');\n playerPaperLose.textContent = \"Scissors beats paper.\\n\" + \"You chose \" + playerSelection + \n \" and the computer chose \" + computerSelection + \". 1 point for the computer!\";\n resultsWindow.appendChild(playerPaperLose);\n }\n \n scoreAnnounce();\n updateScroll();\n \n }", "function game (){\n let finalResult='';\n \n //ROUND ONE\n \n playerSelection = prompt('Select your move for this round', 'rock, paper or scissors?')\n \n console.log(playOneRound(playerSelection, computerPlay()) + `Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n alert(`Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n //ROUND TWO\n \n playerSelection = prompt('Select your move for this round', 'rock, paper or scissors?')\n \n console.log(playOneRound(playerSelection, computerPlay()) + `Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n alert(`Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n //ROUND THREE\n\n playerSelection = prompt('Select your move for this round', 'rock, paper or scissors?')\n \n console.log(playOneRound(playerSelection, computerPlay()) + `Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n alert(`Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n //ROUND FOUR\n \n playerSelection = prompt('Select your move for this round', 'rock, paper or scissors?')\n\n console.log(playOneRound(playerSelection, computerPlay()) + `Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n alert(`Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n //ROUND FIVE\n\n playerSelection = prompt('Select your move for this round', 'rock, paper or scissors?')\n\n console.log(playOneRound(playerSelection, computerPlay()) + `Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n alert(`Payer points: ${playerPoints}, Computer points: ${computerPoints}`);\n\n //Console log the winner of the game\n if (playerPoints > computerPoints){\n finalResult = `Player wins this game with ${playerPoints} points vs computer with ${computerPoints}`;\n console.log(finalResult);\n alert(finalResult);\n } else if (playerPoints < computerPoints) {\n finalResult = `Computer wins this game with ${computerPoints} points vs player with ${playerPoints}`;\n console.log(finalResult);\n alert(finalResult);\n } else {\n finalResult = `No one loses! Both Player and Computer has ${playerPoints}`;\n console.log(finalResult);\n alert(finalResult);\n }\n\n}", "function playGame() {\n gameChoice();\n playerChoice();\n calculateResult();\n roundResult();\n incrementRoundScore();\n gameResult();\n incrementGameScore();\n winnerResult();\n}", "function rpsls(player_choice) {\n // computer's number, random\n computer_num = Math.round(Math.random(0,5));\n\n// converts player's choice into a number\n player_num = name_to_number(player_choice);\n\n// converts computer's number to choice\n comp_choice = number_to_name(computer_num);\n\n// computes diff between comp and play and divides by modulo 5\n dif_player_comp = (computer_num - player_num) % 5;\n\n// set winner variable\n var winner;\n if (dif_player_comp < 0 ) {\n dif_player_comp = dif_player_comp * -1;\n }\n if ( dif_player_comp === 1 || dif_player_comp === 2) {\n winner = comp_choice;\n return console.log(\"The winner is \" +winner+ \".\");\n }\n else if (dif_player_comp === 3 || dif_player_comp === 4) {\n winner = player_choice;\n return console.log(\"The winner is \" +winner+ \".\");\n }\n else if (comp_choice === player_choice) {\n return console.log(\"It's a tie!\");\n }\n}", "function getWinner(playerMove) {\n\n //random number generator for computer move\n randomNum = (Math.floor(Math.random() * 3));\n\n //computer move generator\n //function getComputerMove() {\n if (randomNum === 0) {\n computerMove = 'rock'\n } else if (randomNum === 1) {\n computerMove = 'paper';\n } else if (randomNum === 2) {\n computerMove = 'scissors';\n }\n console.log(computerMove);\n console.log(playerMove);\n //}\n\n//draw/win/lose\n if (playerMove === computerMove) {\n draws = draws + 1\n console.log(\"It's a draw!\");\n displayResult.innerText = \"It's a draw!\";\n } else if (playerMove === 'rock' && computerMove !== 'paper') {\n wins = wins + 1;\n console.log(\"You win!\");\n displayResult.innerText = \"You win!\";\n } else if (playerMove === 'paper' && computerMove !== 'scissors') {\n wins = wins + 1;\n console.log(\"You win!\");\n displayResult.innerText = \"You win!\";\n } else if (playerMove === 'scissors' && computerMove !== 'rock') {\n wins = wins + 1;\n console.log(\"You win!\");\n displayResult.innerText = \"You win!\";\n } else {\n loses = loses + 1;\n console.log(\"You lose!\");\n displayResult.innerText = \"You lose!\";\n }\n\n //games played total \ngamePlays = gamePlays +1;\n\n}", "function winner() {\n\tif (playerPoints == 5) {\n\t\tplayerPoints = 0;\n\t\tcomputerPoints = 0;\n\t\treturn \"You won! Let's play again!\";\n\t} else if (computerPoints == 5) {\n\t\tcomputerPoints = 0;\n\t\tplayerPoints = 0;\n\t\treturn \"Game Over! Let's play again!\";\n\t} else {\n\t\treturn \"First to 5 points wins! Let's Go!\";\n\t}\n}", "function checkRoundWinner() {\n var activePlayer = players[activePlayerIndex];\n var boardScores = getCurrentBoardRowScores();\n var winningScoreValue = activePlayer.scorePoints * 3;\n var isWinningCombination = boardScores.indexOf(winningScoreValue) > 0;\n\n if (isWinningCombination) {\n activePlayer.winningRounds++;\n return $(document).trigger('roundWinner', activePlayer);\n } else {\n return boardHasEmptySpaces() ? switchActivePlayer() : setTimeout(clearBoard, 800);\n }\n}", "function singleGame(userSelection) {\n let computerSelection = computerPlay();\n const intro = document.getElementById('intro');\n intro.innerText = \"The computer chose\";\n const computer = document.getElementById('computer');\n computer.innerText = `${computerSelection}`;\n const outcome = document.getElementById('outcome');\n const roundNumber = document.getElementById('round');\n const winNumber = document.getElementById('win');\n const lossNumber = document.getElementById('loss');\n const tieNumber = document.getElementById('tie');\n \n\n if(round === 5) {\n intro.innerText = \"Press button to play again\";\n computer.innerText = 'the one below...';\n outcome.innerText = 'further down...';\n restartButton.value = 'This buttonzz'\n } else {\n if (userSelection === rock) {\n if (computerSelection === paper) {\n outcome.innerText = 'You lose!'\n lose += 1;\n lossNumber.innerText = `Lose: ${lose}`;\n } else if (computerSelection === scissors) {\n outcome.innerText = 'You win!'\n win += 1;\n winNumber.innerText = `Win: ${win}`;\n } else if (computerSelection === rock) {\n outcome.innerText = `It's a tie!`;\n tie += 1;\n tieNumber.innerText = `Tie: ${tie}`;\n }\n } else if (userSelection === paper) {\n if (computerSelection === scissors) {\n outcome.innerText = 'You lose!'\n lose += 1;\n lossNumber.innerText = `Lose: ${lose}`;\n } else if (computerSelection === rock) {\n outcome.innerText = 'You win!';\n win += 1;\n winNumber.innerText = `Win: ${win}`;\n } else if (computerSelection === paper) {\n outcome.innerText = `It's a tie!`;\n tie += 1;\n tieNumber.innerText = `Tie: ${tie}`;\n }\n } else if (userSelection === scissors) {\n if (computerSelection === rock) {\n outcome.innerText = 'You lose!'\n lose += 1;\n lossNumber.innerText = `Lose: ${lose}`;\n } else if (computerSelection === paper) {\n outcome.innerText = 'You win!';\n win += 1;\n winNumber.innerText = `Win: ${win}`;\n } else if (computerSelection === scissors) {\n outcome.innerText = `It's a tie!`;\n tie += 1;\n tieNumber.innerText = `Tie: ${tie}`;\n }\n }\n round += 1;\n roundNumber.innerText = `Round: ${round}`\n if(round === 5) {\n restartButton.style.display = 'flex';\n restartButton.value = 'Play again?'\n intro.innerText = 'Game Over';\n if(win > lose) {\n computer.innerText = 'You have won!';\n outcome.innerText = 'Congratulations!';\n } else if (lose > win) {\n computer.innerText = 'Oh, you lost...';\n outcome.innerText = 'I am so, so sorry...';\n } else if (tie > win && tie > lose) {\n computer.innerText = 'My, my, my,'\n outcome.innerText = 'Somehow you tied...'\n }\n } \n }\n}", "function newGame(playerMove) {\n console.log(\"Player selects \" + playerMove);\n let cpuMove = generateComputerMove();\n showComputerMove(\"Computer chooses: \" + cpuMove);\n\n // create if statement that runs the game\n // contains different parameters depending on what the player and cpu choose\n // add show winner function (later in code) to show who wins on scoreboard\n\n if (playerMove === cpuMove) {\n showWinner(\"it’s a draw\");\n drawScore++;\n } else if (playerMove === \"rock\") {\n if (cpuMove == \"paper\") {\n showWinner(\"cpu wins\");\n computerScore++;\n } else if (cpuMove === \"scissors\") {\n showWinner(\"player wins\");\n playerScore++;\n }\n } else if (playerMove === \"scissors\") {\n if (cpuMove === \"rock\") {\n showWinner(\"cpu wins\");\n computerScore++;\n } else if (cpuMove === \"paper\") {\n showWinner(\"player wins\");\n playerScore++;\n }\n } else if (playerMove === \"paper\") {\n if (cpuMove === \"scissors\") {\n showWinner(\"cpu wins\");\n computerScore++;\n } else if (cpuMove === \"rock\") {\n showWinner(\"player wins\");\n playerScore++;\n }\n }\n\n // add another variable directly after the game run code\n // this adds the results to the array that shows the game history scores\n\n let gameChoices = {\n playerMove,\n cpuMove\n };\n gameHistory.push(gameChoices);\n // create function to show game history\n // start with document, then method grabbing each element by the id\n // add text to be shown on the browser\n\n document.getElementById(\"wins\").innerText = \"Player score: \" + playerScore;\n document.getElementById(\"losses\").innerText =\n \"Computer score: \" + computerScore;\n document.getElementById(\"draws\").innerText = \"Draws: \" + drawScore;\n}", "function playRound(playerSelection){\n const computerSelection = computerPlay();\n let result;\n if (playerSelection == \"rock\" && computerSelection == \"scissors\"){\n playerCount++;\n result = \"You Win! \" + playerSelection + \" beats \" + computerSelection + \"!\";\n playerScore.innerHTML = \"Your Score = \" + playerCount;\n document.body.appendChild(playerScore);\n } else if (playerSelection == \"paper\" && computerSelection == \"rock\") {\n playerCount++;\n result = \"You Win! \" + playerSelection + \" beats \" + computerSelection + \"!\";\n playerScore.innerHTML = \"Your Score = \" + playerCount;\n document.body.appendChild(playerScore);\n } else if (playerSelection == \"scissors\" && computerSelection == \"paper\"){\n playerCount++;\n result = \"You Win! \" + playerSelection + \" beats \" + computerSelection + \"!\";\n playerScore.innerHTML = \"Your Score = \" + playerCount;\n document.body.appendChild(playerScore);\n } else if (playerSelection === computerSelection){\n result = \"Draw! Try again!\";\n } else {\n computerCount++;\n result = \"You Lose! \" + computerSelection + \" beats \" + playerSelection + \"!\";\n computerScore.innerHTML = \"Computer Score = \" + computerCount;\n document.body.appendChild(computerScore);\n }\n if (computerCount === 5) alert(\"Computer Wins!\");\n if (playerCount === 5) alert(\"You Win!\");\n return result;\n \n}", "function game () {\n rockIconEle.addEventListener('click', () => {\n playerSelection = 'rock'\n round++\n roundNumberEle.textContent = 'Round: '+round\n playRound(playerSelection)\n declareWinner ()\n });\n paperIconEle.addEventListener('click', () => {\n playerSelection = 'paper'\n round++\n roundNumberEle.textContent = 'Round: '+round\n playRound(playerSelection)\n declareWinner ()\n });\n scissorsIconEle.addEventListener('click', () => {\n playerSelection = 'scissors'\n round++\n roundNumberEle.textContent = 'Round: '+round\n playRound(playerSelection)\n declareWinner ()\n });\n}", "function playRound(player, computer) {\n // Tie scenarios\n if (player === 'rock' && computer === 'rock') {\n thrown(player, computer);\n middleText.innerText = 'Rock matches Rock. Tie.';\n } else if (player === 'scissors' && computer === 'scissors') {\n thrown(player, computer);\n middleText.innerText = 'Scissors matches Scissors. Tie.';\n } else if (player === 'scissors' && computer === 'scissors') {\n thrown(player, computer);\n middleText.innerText = 'Scissors matches Scissors. Tie.';\n } else if (player === 'paper' && computer === 'paper') {\n thrown(player, computer);\n middleText.innerText = 'Paper matches Paper. Tie.';\n }\n // Player Wins\n else if (player === 'rock' && computer === 'scissors') {\n thrown(player, computer);\n middleText.innerText = 'Rock beats Scissors. Player wins.';\n playerScore++;\n playerCurrentScore.innerText = playerScore;\n }\n else if (player === 'paper' && computer === 'rock') {\n thrown(player, computer);\n middleText.innerText = 'Paper beats Rock. Player wins.';\n playerScore++;\n playerCurrentScore.innerText = playerScore;\n }\n else if (player === 'scissors' && computer === 'paper') {\n thrown(player, computer);\n middleText.innerText = 'Scissors beats Paper. Player wins.';\n playerScore++;\n playerCurrentScore.innerText = playerScore;\n }\n // Computer Wins\n else if (player === 'rock' && computer === 'paper') {\n thrown(player, computer);\n middleText.innerText = 'Paper beats Rock. Computer wins.';\n computerScore++;\n computerCurrentScore.innerText = computerScore;\n }\n else if (player === 'scissors' && computer === 'rock') {\n thrown(player, computer);\n middleText.innerText = 'Rock beats Scissors. Computer wins.';\n computerScore++;\n computerCurrentScore.innerText = computerScore;\n }\n else if (player === 'paper' && computer === 'scissors') {\n thrown(player, computer);\n middleText.innerText = 'Scissors beats Paper. Computer wins.';\n computerScore++;\n computerCurrentScore.innerText = computerScore;\n }\n // check at end of playRound function if anyone has won\n if (playerScore === 5 || computerScore === 5) {\n gameOverMan();\n }\n}", "function whoWonRound() {\n // USER CHOOSE ROCK\n if (userMove === 0 && botRandom === 2) {\n return \"ROCK beats SCISSORS\"\n } else if (userMove === 0 && botRandom === 1) {\n // OR\n return \"PAPER beats ROCK\"\n } else if (userMove === botRandom) {\n return \"TIE GAME !\"\n }\n // USER CHOOSE PAPER\n if (userMove === 1 && botRandom === 0) {\n return \"PAPER beats ROCK\"\n } else if (userMove === 1 && botRandom === 2) {\n return \"SCISSORS beats PAPER\"\n } else if (userMove === botRandom) {\n return \"TIE GAME !\"\n }\n // USER CHOOSE SCISSORS\n if (userMove === 2 && botRandom === 1) {\n return \"SCISSORS beats PAPER\"\n } else if (userMove === 2 && botRandom === 0) {\n return \"ROCK beats SCISSORS\"\n } else if (userMove === botRandom) {\n return \"TIE GAME !\"\n }\n}", "function playRound (playerSelection, computerSelection) {\n let playerInput = playerSelection.toLowerCase();\n\n if (playerInput === 'rock'){\n if (computerSelection === 'rock'){\n return alert('Rock against Rock, draw!');\n }\n else if (computerSelection === 'paper') {\n ++computerScore;\n return alert('Rock against Paper, you lose!');\n }\n else if (computerSelection === 'scissors') {\n ++playerScore;\n return alert('Rock against scissors, you win!');\n }\n else {\n return alert('woops, looks like something went wrong')\n }\n }\n else if (playerInput === 'paper'){\n if (computerSelection === 'paper'){\n ++playerScore;\n return alert('Paper against Rock, you win!');\n }\n else if (computerSelection === 'paper') {\n return alert('Paper against Paper, draw!');\n }\n else if (computerSelection === 'scissors') {\n ++computerScore;\n return alert('Paper against scissors, you lose!');\n }\n else {\n return alert('woops, looks like something went wrong')\n }\n }\n else if (playerInput === 'scissors') {\n if (computerSelection === 'scissors'){\n ++computerScore;\n return alert('Scissors against Rock, you lose!');\n }\n else if (computerSelection === 'paper') {\n ++playerScore;\n return alert('Scissors against Paper, you win!');\n }\n else if (computerSelection === 'scissors') {\n return alert('Scissors against scissors, draw!');\n }\n else {\n return alert('woops, looks like something went wrong')\n }\n }\n else {\n return alert('woops, looks like something went wrong')\n }\n \n}", "function gameOn() {\n\n var possibleWins = [];\n\n // Check to see if computer has won --------- //\n\n if (pcMoves.length >= 3) {\n for (var a = 0; a < 8; a++) {\n\n var winCheck = 0;\n\n for (var b = 0; b < 3; b++) {\n if (pcMoves.indexOf(winningArray[a][b]) >= 0) {\n winCheck += 1;\n }\n\n if (winCheck == 3) {\n winner = true;\n alert(\"Computer wins. Welcome your new robot overlords.\");\n if (playerIcon == \"<img src='http://www.collinferry.com/codepen/o.png'>\") {\n clear(1);\n } else {\n clear();\n }\n }\n\n }\n\n }\n\n }\n\n // Check to see if human has won --------- //\n\n if (humanMoves.length >= 3) {\n\n for (var a = 0; a < 8; a++) {\n\n var winCheck = 0;\n\n for (var b = 0; b < 3; b++) {\n\n if (humanMoves.indexOf(winningArray[a][b]) >= 0) {\n winCheck += 1;\n }\n\n if (winCheck == 3) {\n winner = true;\n alert(\"You Win! Humans prevail over AI...for now!\");\n if (playerIcon == \"<img src='http://www.collinferry.com/codepen/o.png'>\") {\n clear(1);\n } else {\n clear();\n }\n }\n\n }\n\n }\n\n }\n \n // Check for tie --------- //\n\n if ((takenSquares.length == 9) && (winner === false)) {\n alert(\"Game over! It's a Tie!\");\n if (playerIcon == \"<img src='http://www.collinferry.com/codepen/o.png'>\") {\n clear(1);\n } else {\n clear();\n }\n }\n\n }", "function determineWinnings() {\n if (blanks == 0) {\n if (grapes == 3) {\n winnings = playerBet * 10;\n } else if (bananas == 3) {\n winnings = playerBet * 20;\n } else if (oranges == 3) {\n winnings = playerBet * 30;\n } else if (cherries == 3) {\n winnings = playerBet * 40;\n } else if (bars == 3) {\n winnings = playerBet * 50;\n } else if (bells == 3) {\n winnings = playerBet * 75;\n } else if (sevens == 3) {\n winnings = playerBet * 100;\n } else if (grapes == 2) {\n winnings = playerBet * 2;\n } else if (bananas == 2) {\n winnings = playerBet * 2;\n } else if (oranges == 2) {\n winnings = playerBet * 3;\n } else if (cherries == 2) {\n winnings = playerBet * 4;\n } else if (bars == 2) {\n winnings = playerBet * 5;\n } else if (bells == 2) {\n winnings = playerBet * 10;\n } else if (sevens == 2) {\n winnings = playerBet * 20;\n } else {\n winnings = playerBet * 1;\n }\n\n if (sevens == 1) {\n winnings = playerBet * 5;\n }\n winNumber++;\n //showWinMessage();\n } else {\n lossNumber--;\n //showLossMessage();\n }\n}", "function game(){\n while (playerScore < 5 && cpuScore < 5){\n playRound();\n }\n if(playerScore ==5){\n console.log(\"You Win! Refresh to Play Again. Player Score: \" + playerScore + \" CPU Score: \" + cpuScore);\n }else {\n console.log(\"Computer Wins! Refresh to Play Again. Player Score: \" + playerScore + \" CPU Score: \" + cpuScore);\n }\n }", "function playTo(x) {\n\n // If no parameter is given, x will defualt to 5.\n x = x || 5;\n \n console.log(\"Let's play Rock, Paper, Scissors\");\n\n var playerWins = 0;\n var computerWins = 0;\n\n // playerWins and computerWins is less than x.\n while (playerWins < x && computerWins < x) {\n\n // p equals the result of the getPlayerMove function.\n var p = getPlayerMove();\n\n // c equals the result of the getComputerMove function.\n var c = getComputerMove();\n\n // winner is the result of the getWinner function.\n // p and c are the parameters of getWinner. \n var winner = getWinner(p, c);\n \n // If the computer outputs the same result = draw.\n if (winner === 'tie') {\n console.log('It was a draw.');\n } else if (winner === 'player') {\n // 1 plus counter added to playerWins (score).\n playerWins++;\n } else {\n // 1 plus counter added to computerWins (score).\n computerWins++;\n }\n\n // The scoreboard.\n console.log('You chose ' + p + ' & the Computer chose ' + c + '.');\n console.log('Current score: ' + playerWins + ' : ' + computerWins + '\\n');\n\n }\n\n // Used the ternary operator to log the ultimate winner. Best of (x).\n var playerWonString = 'You beat the computer. Clever human. Here.. have a cookie. ಠ_ಠ';\n var computerWonString = 'The computer beat you.. Machines will take over. No human is safe!';\n playerWins === x ? console.log(playerWonString) : console.log(computerWonString);\n\n}", "function playRound(playerSelection, computerSelection)\r\n{\r\n\r\n\tif(playerSelection == computerSelection)\r\n\t{\r\n\t\tmessage = \"Tie! Select again.\";\r\n\t\tuserWin = 0;\r\n\t}\r\n\r\n\telse if(playerSelection == \"rock\" && computerSelection == \"scissors\")\r\n\t{\r\n\t\tmessage = \"You Win! Rock beats scissors.\"; \r\n\t\tuserWin = 1;\r\n\t}\r\n\r\n\telse if(playerSelection == \"rock\" && computerSelection == \"paper\")\r\n\t{\r\n\t\tmessage = \"You Lose! Rock loses to paper.\";\r\n\t\tuserWin = 2;\r\n\t}\r\n\r\n\telse if(playerSelection == \"paper\" && computerSelection == \"rock\")\r\n\t{\r\n\t\tmessage = \"You Win! Paper beats rock.\";\r\n\t\tuserWin = 1;\r\n\t}\r\n\r\n\telse if(playerSelection == \"paper\" && computerSelection == \"scissors\")\r\n\t{\r\n\t\tmessage = \"You Lose! Paper loses to scissors.\";\r\n\t\tuserWin = 2;\r\n\t}\r\n\r\n\telse if(playerSelection == \"scissors\" && computerSelection == \"rock\")\r\n\t{\r\n\t\tmessage = \"You Lose! Scissors loses to rock.\";\r\n\t\tuserWin = 2;\r\n\t}\r\n\telse\r\n\t{\r\n\t\tmessage = \"You Win! Scissors beats paper.\";\r\n\t\tuserWin = 1; \r\n\t}\r\n\treturn message;\r\n}", "function round() {\n computerSelection = computerPlay()\n playerSelection = prompt(\"Enter either 'rock', 'paper', or 'scissors': \").toLowerCase()\n if (computerSelection === playerSelection) {\n console.log(\"It's a Tie!\")\n } else if (playerSelection === \"rock\" && computerSelection === \"scissors\") {\n console.log(`You win! ${playerSelection} beats ${computerSelection}`);\n return \"1\"\n } else if (playerSelection === \"scissors\" && computerSelection === \"paper\") {\n console.log(`You win! ${playerSelection} beats ${computerSelection}`);\n return \"1\"\n } else if (playerSelection === \"paper\" && computerSelection === \"rock\") {\n console.log(`You win! ${playerSelection} beats ${computerSelection}`);\n return \"1\"\n } else if (playerSelection === \"rock\" && computerSelection === \"paper\") {\n console.log(`You lose! ${computerSelection} beats ${playerSelection}`);\n return \"0\"\n } else if (playerSelection === \"paper\" && computerSelection === \"scissors\") {\n console.log(`You lose! ${computerSelection} beats ${playerSelection}`);\n return \"0\"\n } else if (playerSelection === \"scissors\" && computerSelection === \"rock\") {\n console.log(`You lose! ${computerSelection} beats ${playerSelection}`);\n return \"0\"\n }\n}", "function playRound(playerSelection, computerSelection) { \n if (playerSelection.toLowerCase() === 'rock') {\n if (computerSelection === 'scissors') {\n return 'You Win! Rock beats scissors.';\n w++;\n } else if (computerSelection === 'paper') {\n return 'You Lose! Paper beats rock.';\n l++;\n } else {\n return 'Tie!';\n }\n } else if (playerSelection.toLowerCase() === 'paper') {\n if (computerSelection === 'rock') {\n return 'You Win! Paper beats rock.';\n w++;\n } else if (computerSelection === 'scissors') {\n return 'You Lose! Scissors beats paper.';\n l++;\n } else {\n return 'Tie!';\n }\n } else if (playerSelection.toLowerCase() === 'scissors') {\n if (computerSelection === 'rock') {\n return 'You Lose! Rock beats scissors.';\n l++;\n } else if (computerSelection === 'paper') {\n return 'You Win! Scissors beats paper.';\n w++;\n } else {\n return 'Tie!';\n } \n } else {\n alert('You did not enter a valid choice. Try again.');\n round--;\n }\n }", "function mainGame(ele){\n //if the game has been won this prevents additional clicks on the board\n if(gameState == \"over\"){\n //asks if you'd like to start a new game or not\n if(confirm(\"Game Over:\\nWould you like to start a new game?\")){\n startGame(); //if yes starts a new game\n return;\n }else{\n return; //if no exits function and nothing happens\n }\n }\n \n //if the element already has a 'X' or an 'O' exit the function and do nothing\n if(ele.innerHTML == 'X' || ele.innerHTML == 'O'){\n return; // exits the function\n }\n \n //whos turn equals 'X' or 'O' so it is used to add an 'X' or an 'O' to the board depending whos turn it is\n ele.innerHTML = whosTurn;\n \n //used to update the game board array (boardArray) see function for more detail\n updateArray(ele);\n //increments the moves variable to keep track of the number of moves taken this game\n moves++;\n \n //calls the didWin() function to determine if a win condition exists\n var winner = didWin(whosTurn); //check for a winner and store in winner variable\n if(winner){ //if a winner exists do the following..\n gameState = \"over\";\n if(winner == \"tie\"){\n updateScore('t');\n setTimeout(function(){alert(\"It is a tie!\")}, 100); //if its a tie updates the score for ties\n return;\n }\n gameWon(winner);\n updateScore(whosTurn); //updates the score based on who one\n setTimeout(function(){alert(whosTurn + \"'s WIN!\")}, 100); //do stuff if someone wins\n return;\n }\n \n //calls the switchPlayer() function to alternate between 'x' or 'o'\n switchPlayer();\n}", "function game(player_Choice) {\n let computer_Choice = computer_Selection();\n switch(player_Choice + computer_Choice){\n case 'rockscissors':\n case 'rocklizard':\n rock_win(player_Choice, computer_Choice);\n break;\n case 'paperrock':\n paperrock_win(player_Choice, computer_Choice);\n break;\n case 'paperspock':\n paperspock_win(player_Choice, computer_Choice);\n break;\n case 'scissorspaper':\n scissorspaper_win(player_Choice, computer_Choice);\n break;\n case 'scissorslizard':\n scissorslizard_win(player_Choice, computer_Choice);\n break;\n case 'lizardspock':\n lizardspock_win(player_Choice, computer_Choice);\n break;\n case 'lizardpaper':\n lizardpaper_win(player_Choice, computer_Choice);\n break;\n case 'spockrock':\n spockrock_win(player_Choice, computer_Choice);\n break;\n case 'spockscissors':\n spockscissors_win(player_Choice, computer_Choice);\n break;\n case 'scissorsrock':\n case 'lizardrock':\n rock_loss(player_Choice, computer_Choice);\n break;\n case 'rockpaper':\n rockpaper_loss(player_Choice, computer_Choice);\n break;\n case 'spockpaper':\n spockpaper_loss(player_Choice, computer_Choice);\n break;\n case 'paperscissors':\n paperscissors_loss(player_Choice, computer_Choice);\n break;\n case 'lizardscissors':\n lizardscissors_loss(player_Choice, computer_Choice);\n break;\n case 'spocklizard':\n spocklizard_loss(player_Choice, computer_Choice);\n break;\n case 'paperlizard':\n paperlizard_loss(player_Choice, computer_Choice);\n break;\n case 'rockspock':\n rockspock_loss(player_Choice, computer_Choice);\n break;\n case 'scissorsspock':\n scissorsspock_loss(player_Choice, computer_Choice);\n break;\n case 'rockrrock':\n case 'sissorssissors':\n case 'paperpaper':\n case 'lizardlizard':\n case 'spockspock':\n draw(player_Choice, computer_Choice);\n break;\n }\n}", "function playRound(playerSelection, computerSelection) {\n // compare the selection and decide winner\n // check for computer side only\n // check every possible commination\n let winner = undefined;\n\n switch (computerSelection) {\n case 'rock':\n switch (playerSelection) {\n case 'rock':\n winner = 't'\n break;\n case 'paper':\n winner = 'p'\n break;\n case 'scissors':\n winner = 'c'\n break;\n }\n break;\n\n case 'paper':\n switch (playerSelection) {\n case 'rock':\n winner = 'c'\n break;\n case 'paper':\n winner = 't'\n break;\n case 'scissors':\n winner = 'p'\n break;\n }\n break;\n\n case 'scissors':\n switch (playerSelection) {\n case 'rock':\n winner = 'p'\n break;\n case 'paper':\n winner = 'c'\n break;\n case 'scissors':\n winner = 't'\n break;\n }\n break;\n }\n return winner;\n\n}", "function determineWinnings() {\n if (blanks == 0) {\n if (grapes == 3) {\n winnings = playerBet * 10;\n }\n else if (bananas == 3) {\n winnings = playerBet * 20;\n }\n else if (oranges == 3) {\n winnings = playerBet * 30;\n }\n else if (cherries == 3) {\n winnings = playerBet * 40;\n }\n else if (bars == 3) {\n winnings = playerBet * 50;\n }\n else if (bells == 3) {\n winnings = playerBet * 75;\n }\n else if (sevens == 3) {\n winnings = playerBet * 100;\n }\n else if (grapes == 2) {\n winnings = playerBet * 2;\n }\n else if (bananas == 2) {\n winnings = playerBet * 2;\n }\n else if (oranges == 2) {\n winnings = playerBet * 3;\n }\n else if (cherries == 2) {\n winnings = playerBet * 4;\n }\n else if (bars == 2) {\n winnings = playerBet * 5;\n }\n else if (bells == 2) {\n winnings = playerBet * 10;\n }\n else if (sevens == 2) {\n winnings = playerBet * 20;\n }\n else if (sevens == 1) {\n winnings = playerBet * 5;\n }\n else {\n winnings = playerBet * 1;\n }\n winNumber++;\n showWinMessage();\n }\n else {\n lossNumber++;\n showLossMessage();\n }\n }", "function game() {\n\n\tfor(let i = 0; i < 5; i++) {\n\t\n\t\tplayerInput();\n\t\n\t}\n\t\n\tif(userWin > computerWin) {\n\t\n\t\talert(\"You won! Congratulations!\");\n\t\t\n\t} else if(computerWin > userWin) {\n\t\n\t\talert(\"You lose, noob!\");\n\t\t\n\t} else {\n\t\n\t\talert(\"Tie!\");\n\t\t\n\t}\n\t\n\tlet again = confirm(\"Again?\");\n\t\n\tif(again === true) {\n\t\n\t\tuserWin = 0;\n\t\t\n\t\tcomputerWin = 0;\n\t\t\n\t\tgame();\n\t\t\n\t} else {\n\t\n\t\talert(\"Thanks for playing!\");\n\t\n\t}\n\t\t\n}", "function playRound(playerSelection, computerSelection){\n console.log(\"ROUND: \" + (roundNo));\n console.log(\"COMPUTER: \" + computerSelection);\n console.log(\"PLAYER: \" + playerSelection);\n \n if (matchups[playerSelection] == computerSelection)\n {\n document.getElementById('player-score').textContent = ++playerScore;\n return `You win! ${playerSelection} beats ${computerSelection}`;\n }\n else if (matchups[computerSelection] == playerSelection) \n {\n document.getElementById('computer-score').textContent = ++computerScore;\n return `You lose! ${computerSelection} beats ${playerSelection}`;\n }\n else { \n return `You Tie!`;\n }\n}" ]
[ "0.8215834", "0.8152174", "0.80570525", "0.80288607", "0.7962611", "0.7923167", "0.7895302", "0.7864561", "0.7850117", "0.7830454", "0.78063947", "0.7772654", "0.77143735", "0.77079946", "0.7671418", "0.76088285", "0.7588962", "0.7582852", "0.7556986", "0.7539248", "0.7474877", "0.74554175", "0.7437307", "0.74371314", "0.742508", "0.74045914", "0.73812", "0.7358672", "0.73428845", "0.73097235", "0.7280433", "0.7275614", "0.7267537", "0.7266906", "0.7261714", "0.72604376", "0.723899", "0.72290254", "0.7226913", "0.7224132", "0.7221328", "0.7213258", "0.72110486", "0.7209902", "0.71995544", "0.7190958", "0.71862465", "0.7163029", "0.7147423", "0.7143088", "0.7131158", "0.71234983", "0.7123049", "0.7118381", "0.71055895", "0.7103406", "0.71024936", "0.7094922", "0.7081918", "0.7073609", "0.7070952", "0.7037406", "0.70306677", "0.7029336", "0.70266676", "0.7007264", "0.7000394", "0.69978607", "0.6990897", "0.6989987", "0.6974692", "0.6971596", "0.6970212", "0.6964361", "0.6959356", "0.694897", "0.6947953", "0.6947608", "0.6945297", "0.69378585", "0.6932889", "0.69303364", "0.692996", "0.6929888", "0.6924979", "0.6920248", "0.6919705", "0.6898898", "0.68888676", "0.68855137", "0.6869655", "0.68615806", "0.68610007", "0.6854358", "0.6853804", "0.6853313", "0.6853061", "0.68414265", "0.6840818", "0.68386906" ]
0.7835149
9
listed below. Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the compiled file. Read Sprockets README ( for details about supported directives. = require jquery = require jquery_ujs = require turbolinks = require bootstrap = require bootstrapmultiselect = require_tree .
function loadChoices(id) { var candArr = []; $('#select' + id).find('select').each(function() { candArr.push($(this).children(':selected').text()); }); candArr = $.map(candArr, function(val){ if(val == "No Selection") { return ""; console.log(val + "is ns"); } else { return "<li>" + val + "</li>"; } }); $('#modal'+id+' .cand-list').html(candArr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function js(cb){\n src([jquery,bootstrap_js]).pipe(dest(jsDest));\n cb();\n}", "function js(cb) {\n return gulp.src(['node_modules/bootstrap/dist/js/bootstrap.min.js', 'node_modules/jquery/dist/jquery.min.js', 'node_modules/popper.js/dist/popper.min.js'])\n .pipe(gulp.dest(\"src/js\"));\n cb();\n}", "function js() {\n return gulp.src(['node_modules/bootstrap/dist/js/bootstrap.min.js', 'node_modules/jquery/dist/jquery.min.js', 'node_modules/popper.js/dist/umd/popper.min.js'])\n .pipe(gulp.dest(\"./public/bin/js\"))\n .pipe(browserSync.stream());\n}", "function javascript() {\n return gulp.src('src/assets/js/*.js')\n //.pipe($.sourcemaps.init())\n //.pipe($.babel())\n //.pipe($.concat('appfou.js'))\n .pipe($.if(PRODUCTION, $.uglify()\n .on('error', e => { console.log(e); })\n ))\n //.pipe($.if(!PRODUCTION, $.sourcemaps.write()))\n .pipe(gulp.dest(PATHS.dist + '/assets/js'));\n }", "function js() {\n return gulp.src( 'src/assets/js/*' )\n .pipe( gulp.dest( './build/assets/js/' ) );\n}", "function javascript() {\n return gulp.src(PATHS.javascript)\n .pipe($.sourcemaps.init())\n .pipe($.babel({ignore: ['html2canvas.js', 'quill.min.js']}))\n .pipe($.concat('app.js'))\n .pipe($.if(PRODUCTION, $.uglify()\n .on('error', e => { console.log(e); })\n ))\n .pipe($.if(!PRODUCTION, $.sourcemaps.write()))\n .pipe(gulp.dest(PATHS.dist + '/scripts'));\n}", "function modules() {\n // Bootstrap JS \n var bootstrapJS = gulp.src('./node_modules/startbootstrap-sb-admin-2/vendor/bootstrap/js/*')\n .pipe(gulp.dest(paths.vendor + '/bootstrap/js'));\n\n // Bootstrap Select\n var bootstrapSelectJS = gulp.src('./node_modules/bootstrap-select/dist/js/*')\n .pipe(gulp.dest(paths.vendor + '/bootstrap-select/js'));\n var bootstrapSelectCSS = gulp.src('./node_modules/bootstrap-select/dist/css/*')\n .pipe(gulp.dest(paths.vendor + '/bootstrap-select/css'));\n\n // Bokeh\n var bokehJS = gulp.src('./node_modules/@bokeh/bokehjs/build/js/bokeh.min.js')\n .pipe(gulp.dest(paths.vendor + '/bokehjs'));\n\n // SB Admin 2 Bootstrap template\n var bootstrapSbAdmin2 = gulp.src([\n './node_modules/startbootstrap-sb-admin-2/js/*.js',\n './node_modules/startbootstrap-sb-admin-2/css/*.css'\n ]).pipe(gulp.dest(paths.vendor + '/startbootstrap-sb-admin-2'));\n\n // Bootstrap4 toggle\n var bootstrap4toggle = gulp.src([\n './node_modules/bootstrap4-toggle/js/*.js',\n './node_modules/bootstrap4-toggle/css/*.css'\n ]).pipe(gulp.dest(paths.vendor + '/bootstrap4-toggle'));\n\n // dataTables\n var dataTables = gulp.src([\n './node_modules/datatables.net/js/*.js',\n './node_modules/datatables.net-bs4/js/*.js',\n './node_modules/datatables.net-bs4/css/*.css'\n ])\n .pipe(gulp.dest(paths.vendor + '/datatables'));\n\n // dataTables-buttons\n var dataTablesButtons = gulp.src([\n './node_modules/datatables.net-buttons/js/*.js',\n './node_modules/datatables.net-buttons-bs4/js/*.js',\n './node_modules/datatables.net-buttons-bs4/css/*.css'\n ])\n .pipe(gulp.dest(paths.vendor + '/datatables-buttons'));\n\n // Font Awesome\n var fontAwesome = gulp.src('./node_modules/@fortawesome/**/*')\n .pipe(gulp.dest(paths.vendor + ''));\n\n // jQuery Easing\n var jqueryEasing = gulp.src('./node_modules/jquery.easing/*.js')\n .pipe(gulp.dest(paths.vendor + '/jquery-easing'));\n\n // jQuery\n var jquery = gulp.src([\n './node_modules/jquery/dist/*',\n '!./node_modules/jquery/dist/core.js'\n ])\n .pipe(gulp.dest(paths.vendor + '/jquery'));\n\n // jszip\n var jszip = gulp.src([\n './node_modules/jszip/dist/*.js',\n ])\n .pipe(gulp.dest(paths.vendor + '/jszip'));\n\n // d3 celestial\n var d3Celestial = gulp.src([\n './node_modules/d3-celestial/celestial*.js',\n './node_modules/d3-celestial/lib/d3*.js'\n ])\n .pipe(gulp.dest(paths.vendor + '/d3-celestial'));\n var d3CelestialData = gulp.src('./node_modules/d3-celestial/data/*.json')\n .pipe(gulp.dest(paths.vendor + '/d3-celestial/data'));\n var d3CelestialImage = gulp.src('./node_modules/d3-celestial/images/*')\n .pipe(gulp.dest(paths.cssDir + '/images'));\n\n // particles.js\n var particlesJs = gulp.src('./node_modules/particles.js/particles.js')\n .pipe(gulp.dest(paths.vendor + '/particles.js'));\n\n // PrismJs\n var prismJs = gulp.src('./node_modules/prismjs/prism.js')\n .pipe(gulp.dest(paths.vendor + '/prismjs'));\n var prismJsYaml = gulp.src('./node_modules/prismjs/components/prism-yaml.min.js')\n .pipe(gulp.dest(paths.vendor + '/prismjs'));\n var prismJsLineNum = gulp.src('./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.min.js')\n .pipe(gulp.dest(paths.vendor + '/prismjs/line-numbers'));\n var prismJsCss = gulp.src('./node_modules/prismjs/themes/prism.css')\n .pipe(gulp.dest(paths.vendor + '/prismjs'));\n var prismJsLineNumCss = gulp.src('./node_modules/prismjs/plugins/line-numbers/prism-line-numbers.css')\n .pipe(gulp.dest(paths.vendor + '/prismjs/line-numbers'));\n\n return merge(bootstrapJS, bootstrapSbAdmin2, bootstrap4toggle, bokehJS, dataTables, dataTablesButtons, fontAwesome, jquery, jqueryEasing, jszip, d3Celestial, d3CelestialData, d3CelestialImage, particlesJs, prismJs, prismJsYaml, prismJsLineNum, prismJsCss, prismJsLineNumCss);\n}", "function modules() {\n // Popper\n var popperJS = gulp.src('node_modules/popper.js/dist/umd/popper.js').pipe(gulp.dest('vendor/bootstrap/js'));\n\n // jQuery\n var jqueryJS = gulp.src(['node_modules/jquery/dist/jquery.js']).pipe(gulp.dest('vendor/bootstrap/js'));\n\n // Bootstrap JS\n var bootstrapJS = gulp.src('node_modules/bootstrap/dist/js/bootstrap.js').pipe(gulp.dest('vendor/bootstrap/js'));\n\n // Elektron SCSS\n var elektronJS = gulp.src('node_modules/elektron/dist/elektron.js').pipe(gulp.dest('vendor/elektron/js'));\n\n // MetisMenu JS\n var metismenuJS = gulp.src('node_modules/metismenujs/dist/metismenujs.js').pipe(gulp.dest('vendor/metismenu/js'));\n\n // MetisMenu JS\n var onoffcanvasJS = gulp.src('node_modules/onoffcanvas/dist/onoffcanvas.js').pipe(gulp.dest('vendor/onoffcanvas/js')); \n\n // Kendo JS\n var kendoJS = gulp.src('node_modules/@progress/kendo-ui/js/kendo.all.js').pipe(gulp.dest('vendor/kendo/js')); \n \n // Font Awesome\n var fontAwesome = gulp.src('node_modules/font-awesome/css/font-awesome.css').pipe(gulp.dest('vendor/bootstrap/fonts')); \n\n // Bootstrap SCSS\n var bootstrapSCSS = gulp.src('node_modules/bootstrap/scss/**/*').pipe(gulp.dest('vendor/bootstrap/scss', { overwrite: false }));\n\n // Elektron SCSS\n var elektronSCSS = gulp.src('node_modules/elektron/scss/**/*').pipe(gulp.dest('vendor/elektron/scss', { overwrite: false }));\n\n // MetisMenu SCSS\n\n var metisMenuSCSS = gulp.src('node_modules/metismenujs/scss/**/*').pipe(gulp.dest('vendor/metismenu/scss', { overwrite: false })); \n\n // OnOffCanvas SCSS\n var onoffcanvasSCSS = gulp.src('node_modules/onoffcanvas/scss/**/*').pipe(gulp.dest('vendor/onoffcanvas/scss', { overwrite: false })); \n \n // Kendo\n var kendoSCSS = gulp.src(\"node_modules/@progress/kendo-theme-default/dist/all.scss\").pipe(gulp.dest('vendor/kendo/scss', { overwrite: false })); \n\n return merge(popperJS, jqueryJS, bootstrapJS, elektronJS, metismenuJS, onoffcanvasJS, kendoJS, fontAwesome, bootstrapSCSS, elektronSCSS, metisMenuSCSS, onoffcanvasSCSS, kendoSCSS);\n}", "function loadSideBarEffectsScripts() {\n $.getScript('/resources/js/plugins/sidebar/classie.js');\n $.getScript('/resources/js/plugins/sidebar/sidebar-effects.js');\n}", "function scripts() {\n var jsFile = [\n \"src/js/jquery.js\",\n \"src/js/script.js\"\n ];\n return gulp\n .src(jsFile, { sourcemaps: true })\n .pipe(plumber())\n .pipe( concat( 'theme.js' ) )\n .pipe(gulp.dest(`${config.src.root}/js`, { sourcemaps: true }))\n .pipe(gulp.dest(`${config.dist}/js`, { sourcemaps: true }))\n .pipe(rename({ suffix: \".min\" }))\n .pipe( uglify())\n .pipe(gulp.dest(`${config.src.root}/js`, { sourcemaps: true }))\n .pipe(gulp.dest(`${config.dist}/js`, { sourcemaps: true }));\n}", "function jsProd() {\n return src([\n 'js/**/*.js',\n 'node_modules/bootstrap/dist/js/bootstrap.js'\n ])\n .pipe(\n babel({\n presets: ['@babel/env']\n })\n )\n .pipe(concat('scripts.js'))\n .pipe(uglify())\n .pipe(rename({ suffix: '.min' }))\n .pipe(dest('dist'));\n}", "function initScripts() {\n breakpoint();\n lazyload();\n heroSlider();\n categoriesMobile();\n asideLeftMobile();\n scrollRevealInit();\n seoSpoiler();\n mobileMenuOverflowScroll();\n}", "function js()\n{\n var streams = pathConfig.js.map( function( folder )\n {\n return gulp.src(getGlob( folder ) )\n .pipe( !folder.thirdParty && !$.util.env.production ? $.jsHint(): $.util.noop() )\n .pipe( !folder.thirdParty && !$.util.env.production ? $.jsHint.reporter( 'default' ) : $.util.noop() )\n .pipe( $.util.env.production ? $.uglify() : $.util.noop() )\n .pipe( gulp.dest( folder.dist ) );\n } );\n\n return $.mergeStream( streams );\n}", "function loadScripts(){\n renderer.setIPC();\n inject.uglifyScripts();\n inject.injectScripts();\n}", "function copyJS() {\n return gulp.src(['node_modules/bootstrap/dist/js/bootstrap.min.js', 'node_modules/jquery/dist/jquery.min.js', 'node_modules/popper.js/dist/popper.min.js'])\n .pipe(gulp.dest(\"src/js\"))\n .pipe(browserSync.stream());\n}", "function jsTask() {\n\treturn src([\n\t\t'node_modules/jquery/dist/jquery.js',\t\n\t\t'node_modules/foundation-sites/dist/js/foundation.js',\n\t\t'./js/**/*.js',\n\t])\n\t\t.pipe(sourcemaps.init()) // initialize sourcemaps first\n\t\t.pipe(concat('theme.js'))\n\t\t.pipe(uglify())\n\t\t.pipe(dest('./assets/'));\n}", "function Comprador_elementsExtraJS() {\n // screen (Comprador) extra code\n /* mobilelist_11 */\n listView = $(\"#Comprador_mobilelist_11\");\n theme = listView.attr(\"data-theme\");\n if (typeof theme !== 'undefined') {\n var themeClass = \"ui-btn-up-\" + theme;\n listItem = $(\"#Comprador_mobilelist_11 .ui-li-static\");\n $.each(listItem, function(index, value) {\n $(this).addClass(themeClass);\n });\n }\n /* mobilelistitem_12 */\n /* mobilelistitem_14 */\n /* mobilelistitem_16 */\n /* mobilelistitem_109 */\n }", "function jsTask () {\n return src(['src/assets/js/**/*.js'])\n .pipe(concat('application.js'))\n .pipe(uglify())\n .pipe(dest('output/js'))\n}", "function javascript() {\n return gulp.src('./src/scripts/**/*.js')\n .pipe($.sourcemaps.init())\n .pipe($.concat('app.js'))\n .pipe($.if(PRODUCTION, $.uglify()\n .on('error', e => { console.log(e); })\n ))\n .pipe($.if(!PRODUCTION, $.sourcemaps.write()))\n .pipe(gulp.dest('./dist/js/'));\n}", "function modules() {\n // Bootstrap\n var bootstrap = gulp.src('./node_modules/bootstrap/dist/**/*')\n .pipe(gulp.dest('./vendor/bootstrap'));\n // jQuery\n var jquery = gulp.src([\n './node_modules/jquery/dist/*',\n '!./node_modules/jquery/dist/core.js'\n ])\n .pipe(gulp.dest('./vendor/jquery'));\n return merge(bootstrap, jquery);\n}", "function javascript() {\n return gulp.src(PATHS.javascript.vendor.concat(PATHS.javascript.project))\n .pipe($.sourcemaps.init())\n .pipe($.if(!WATCHER, $.babel()))\n .pipe($.concat('app.js'))\n .pipe($.if(PRODUCTION, $.uglify({\n \"output\": {\n ascii_only: true\n },\n \"mangle\": false,\n \"compress\": {\n dead_code: false,\n hoist_funs: false\n }\n })))\n .on('error', function (e) {\n console.log(e);\n })\n .pipe($.if(!PRODUCTION, $.sourcemaps.write()))\n .pipe(gulp.dest(PATHS.dist + '/js'));\n}", "function javascript() {\n return gulp.src(PATHS.javascript)\n .pipe($.sourcemaps.init())\n .pipe($.babel({ignore: ['vue.js','vue-resource.min.js']}))\n .pipe($.concat('app.js'))\n .pipe($.if(PRODUCTION, $.uglify()\n .on('error', e => { console.log(e); })\n ))\n .pipe($.if(!PRODUCTION, $.sourcemaps.write()))\n .pipe(gulp.dest(PATHS.dist + '/public/js'));\n}", "function scripts() {\r\n return gulp\r\n .src('src/js/**/*.js')\r\n .pipe(plumber())\r\n .pipe(concat('main.js'))\r\n .pipe(terser())\r\n .pipe(gulp.dest('assets/js/'))\r\n .pipe(gulp.dest('_site/assets/js/'))\r\n .pipe(bsync.stream());\r\n}", "function js(){\r\n return src(paths.js)\r\n .pipe(concat('scripts.min.js'))\r\n .pipe(uglify())\r\n .pipe(dest('dist/js'))\r\n .pipe(browserSync.stream());\r\n}", "function init() {\n this.$ = require(\"jquery/dist/jquery\");\n this.jQuery = this.$;\n\n require(\"svg4everybody/dist/svg4everybody\")();\n require(\"retinajs/dist/retina\");\n\n require(\"bootstrap/dist/js/bootstrap.bundle\");\n\n\n\n $(document).ready(function () {\n require(\"./components/interractionObserver\")();\n });\n}", "function jsTask() {\n return src([\n files.jsPath\n //,'!' + 'includes/js/jquery.min.js', // to exclude any specific files\n ])\n .pipe(uglify())\n .pipe(dest(\"dist/js\"));\n}", "function scripts() {\n return (\n gulp\n .src([\"./assets/js/**/*\"])\n .pipe(newer(\"./docs/assets/js\"))\n .pipe(babel({presets: ['@babel/preset-env']}))\n .pipe(minify({noSource: true, ext: {min: '.min.js'}}))\n .pipe(gulp.dest(\"./docs/assets/js/\"))\n );\n}", "function js() {\n\treturn src( folder.src + 'js/*.js' )\n\t\t.pipe( deporder() )\n\t\t.pipe( concat( 'app.js' ) )\n\t\t//.pipe( uglify() )\n\t\t.pipe( dest( folder.build + 'js' ) )\n}", "function js() {\n return gulp.src(jsFiles)\n .pipe(concat(\"main.js\"))\n .pipe(uglify({\n mangle: {\n toplevel: false\n }\n }))\n .pipe(gulp.dest(\"./dist/js\"))\n .pipe(browserSync.stream());\n}", "function scripts() {\n\treturn src([\n\t\t// 'node_modules/jquery/dist/jquery.min.js', // npm vendor example (npm i --save-dev jquery)\n\t\t'docs/js/common.js' // common.js. Always at the end\n\t])\n\t\t.pipe(concat('scripts.min.js'))\n\t\t.pipe(babel({\n\t\t\tpresets: ['@babel/env'],\n\t\t\tplugins: ['@babel/plugin-syntax-import-meta'],\n\t\t}))\n\t\t.pipe(uglify()) // Minify JS (opt.)\n\t\t.pipe(dest('docs/js'))\n\t\t.pipe(browserSync.stream())\n}", "function mainJs() {\n notify('Building JS files...');\n return gulp.src('src/js/main/**/*.js')\n .pipe(sourcemaps.init())\n .pipe(uglify())\n .pipe(concat('scripts.min.js'))\n .pipe(plumber())\n .pipe(sourcemaps.write('.'))\n .pipe(gulp.dest('_site/assets/js/'))\n .pipe(browserSync.reload({ stream: true }))\n .pipe(gulp.dest('assets/js'));\n}", "function initThemeJs() {\n\t\t(function($) {\n\n\t\t\t\"use strict\";\n\n\t\t\tskel.breakpoints({\n\t\t\t\txlarge: '(max-width: 1680px)',\n\t\t\t\tlarge: '(max-width: 1280px)',\n\t\t\t\tmedium: '(max-width: 980px)',\n\t\t\t\tsmall: '(max-width: 736px)',\n\t\t\t\txsmall: '(max-width: 480px)'\n\t\t\t});\n\n\t\t\t$(function() {\n\n\t\t\t\tvar $window = $(window),\n\t\t\t\t\t$body = $('body'),\n\t\t\t\t\t$header = $('#header'),\n\t\t\t\t\t$banner = $('#banner');\n\n\t\t\t\t// Disable animations/transitions until the page has loaded.\n\t\t\t\t$body.addClass('is-loading');\n\n\t\t\t\t$window.on('load', function() {\n\t\t\t\t\twindow.setTimeout(function() {\n\t\t\t\t\t\t$body.removeClass('is-loading');\n\t\t\t\t\t}, 100);\n\t\t\t\t});\n\n\t\t\t\t// Fix: Placeholder polyfill.\n\t\t\t\t$('form').placeholder();\n\n\t\t\t\t// Prioritize \"important\" elements on medium.\n\t\t\t\tskel.on('+medium -medium', function() {\n\t\t\t\t\t$.prioritize(\n\t\t\t\t\t\t'.important\\\\28 medium\\\\29',\n\t\t\t\t\t\tskel.breakpoint('medium').active\n\t\t\t\t\t);\n\t\t\t\t});\n\n\t\t\t\t// Header.\n\t\t\t\tif (skel.vars.IEVersion < 9)\n\t\t\t\t\t$header.removeClass('alt');\n\n\t\t\t\tif ($banner.length > 0 &&\n\t\t\t\t\t$header.hasClass('alt')) {\n\n\t\t\t\t\t$window.on('resize', function() {\n\t\t\t\t\t\t$window.trigger('scroll');\n\t\t\t\t\t});\n\n\t\t\t\t\t$banner.scrollex({\n\t\t\t\t\t\tbottom: $header.outerHeight(),\n\t\t\t\t\t\tterminate: function() {\n\t\t\t\t\t\t\t$header.removeClass('alt');\n\t\t\t\t\t\t},\n\t\t\t\t\t\tenter: function() {\n\t\t\t\t\t\t\t$header.addClass('alt');\n\t\t\t\t\t\t},\n\t\t\t\t\t\tleave: function() {\n\t\t\t\t\t\t\t$header.removeClass('alt');\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t}\n\n\t\t\t\t// Menu.\n\t\t\t\tvar $menu = $('#menu');\n\n\t\t\t\t$menu._locked = false;\n\n\t\t\t\t$menu._lock = function() {\n\n\t\t\t\t\tif ($menu._locked)\n\t\t\t\t\t\treturn false;\n\n\t\t\t\t\t$menu._locked = true;\n\n\t\t\t\t\twindow.setTimeout(function() {\n\t\t\t\t\t\t$menu._locked = false;\n\t\t\t\t\t}, 350);\n\n\t\t\t\t\treturn true;\n\n\t\t\t\t};\n\n\t\t\t\t$menu._show = function() {\n\n\t\t\t\t\tif ($menu._lock())\n\t\t\t\t\t\t$body.addClass('is-menu-visible');\n\n\t\t\t\t};\n\n\t\t\t\t$menu._hide = function() {\n\n\t\t\t\t\tif ($menu._lock())\n\t\t\t\t\t\t$body.removeClass('is-menu-visible');\n\n\t\t\t\t};\n\n\t\t\t\t$menu._toggle = function() {\n\n\t\t\t\t\tif ($menu._lock())\n\t\t\t\t\t\t$body.toggleClass('is-menu-visible');\n\n\t\t\t\t};\n\n\t\t\t\t$menu\n\t\t\t\t\t.appendTo($body)\n\t\t\t\t\t.on('click', function(event) {\n\n\t\t\t\t\t\tevent.stopPropagation();\n\n\t\t\t\t\t\t// Hide.\n\t\t\t\t\t\t$menu._hide();\n\n\t\t\t\t\t})\n\t\t\t\t\t.find('.inner')\n\t\t\t\t\t.on('click', '.close', function(event) {\n\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\tevent.stopImmediatePropagation();\n\n\t\t\t\t\t\t// Hide.\n\t\t\t\t\t\t$menu._hide();\n\n\t\t\t\t\t})\n\t\t\t\t\t.on('click', function(event) {\n\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t})\n\t\t\t\t\t.on('click', 'a', function(event) {\n\n\t\t\t\t\t\tvar href = $(this).attr('href');\n\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tevent.stopPropagation();\n\n\t\t\t\t\t\t// Hide.\n\t\t\t\t\t\t$menu._hide();\n\n\t\t\t\t\t\t// Redirect.\n\t\t\t\t\t\twindow.setTimeout(function() {\n\t\t\t\t\t\t\twindow.location.href = href;\n\t\t\t\t\t\t}, 350);\n\n\t\t\t\t\t});\n\n\t\t\t\t$body\n\t\t\t\t\t.on('click', 'a[href=\"#menu\"]', function(event) {\n\n\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t\t// Toggle.\n\t\t\t\t\t\t$menu._toggle();\n\n\t\t\t\t\t})\n\t\t\t\t\t.on('keydown', function(event) {\n\n\t\t\t\t\t\t// Hide on escape.\n\t\t\t\t\t\tif (event.keyCode == 27)\n\t\t\t\t\t\t\t$menu._hide();\n\n\t\t\t\t\t});\n\t\t\t});\n\t\t})(jQuery);\n\t}", "function jsCombine() {\n return gulp.src(paths.js.vendor)\n .pipe(concat('vendor.js'))\n .pipe(gulp.dest('javascripts/src/'));\n}", "bootstrap() {\n $('.photo_select, .file_upload_select').toArray()\n .filter(Picker.shouldInstall)\n .forEach(Picker.install)\n }", "function getBootstrapPlugins() {\n var ret = []\n var str = global.location.search\n\n // Convert `seajs-xxx` to `seajs-xxx=1`\n str = str.replace(/(seajs-\\w+)(&|$)/g, \"$1=1$2\")\n\n // Add cookie string\n str += \" \" + doc.cookie\n\n // Exclude seajs-xxx=0\n str.replace(/seajs-(\\w+)=1/g, function(m, name) {\n ret.push(\"{seajs}/plugin-\" + name)\n })\n\n return unique(ret)\n}", "function scripts()\n{\n\treturn gulp\n\t\t.src(\"js/*.js\")\n\t\t.pipe(sourcemaps.init())\n\t\t.pipe(babel({presets: ['@babel/preset-env']}))\n\t\t.pipe(order([\n\n\t\t]))\n\t\t.pipe(concat('all.js'))\n\t\t.pipe(sourcemaps.write())\n\t\t.pipe(gulp.dest(\"dist/js\"))\n}", "function setJs() {\n\t\t\tvar body = document.getElementsByTagName(\"body\")[0];\n\t\t\taddClass(body,'js');\n\t\t}", "function jsTask(){\r\n return src([\r\n files.jsPath\r\n //,'!' + 'includes/js/jquery.min.js', // to exclude any specific files\r\n ])\r\n .pipe(concat('main.min.js'))\r\n .pipe(uglify())\r\n .pipe(dest('dist/js')\r\n );\r\n}", "function attachVideoJs() {\n\t\tif ($('.video-js').length > 0) {\n\t\t\tif (typeof(HTMLVideoElement) != 'undefined') {\n\t\t\t\tVideoJS.setupAllWhenReady({\n\t\t\t\t\tcontrolsAtStart: true,\n\t\t\t\t\tcontrolsBelow: false,\n\t\t\t\t\tcontrolsHiding: true,\n\t\t\t\t\tdefaultVolume: 0.8,\n\t\t\t\t\tflashVersion: 9,\n\t\t\t\t\tlinksHiding: true\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}", "function BootstrapOptions() { }", "function BootstrapOptions() { }", "function js() {\n return src(paths.js.src)\n .pipe(concat('scripts.js'))\n .pipe(uglify())\n .pipe(rename({ extname: '.min.js' }))\n .pipe(dest(paths.js.dist))\n .pipe(browserSync.stream())\n}", "function loadScripts() {\r\n\t\t\t\twindow._sf_endpt = (new Date()).getTime();\r\n\t\t\t\tvar cbDomain = ((\"https:\"==document.location.protocol)?\"https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/\":\"http://static.chartbeat.com/\");\r\n\t\t\t\tif(loadPubJS) {\r\n\t\t\t\t\t$.getScript(cbDomain+\"js/chartbeat_pub.js\");\r\n\t\t\t\t}\r\n\t\t\t\tif((loadVidJS) || (typeof StrategyInterface !== 'undefined' && (espn && espn.video))) {\r\n\t\t\t\t\t$.getScript(cbDomain+\"js/chartbeat_video.js\");\r\n\t\t\t\t}\r\n\t\t\t\t// load default chartbeat js others are disabled\r\n\t\t\t\tif(!loadVidJS && !loadPubJS) {\r\n\t\t\t\t\t$.getScript(cbDomain+\"js/chartbeat.js\");\r\n\t\t\t\t}\r\n\t\t\t}", "function modules() {\n // Bootstrap JS\n let bootstrapJS = gulp.src('./node_modules/bootstrap/dist/js/*').pipe(gulp.dest('./libs/bootstrap/js'))\n\n // Font Awesome CSS\n let fontAwesomeCSS = gulp.src('./node_modules/@fortawesome/fontawesome-free/css/**/*')\n .pipe(gulp.dest('./libs/fontawesome-free/css'))\n\n // Font Awesome Webfonts\n let fontAwesomeWebfonts = gulp.src('./node_modules/@fortawesome/fontawesome-free/webfonts/**/*')\n .pipe(gulp.dest('./libs/fontawesome-free/webfonts'))\n\n // Jquery Easing\n let jqueryEasing = gulp.src('./node_modules/jquery-easing/*.js')\n .pipe(gulp.dest('./libs/jquery-easing'))\n\n // JQuery\n let jquery = gulp.src([\n './node_modules/jquery/dist/*',\n '!./node_modules/jquery/dist/core.js'\n ]).pipe(gulp.dest('./libs/jquery'))\n\n return merge(bootstrapJS, fontAwesomeCSS, fontAwesomeWebfonts, jquery, jqueryEasing)\n}", "function loadChartJs(){\n loadJsScript(serverUrl + url_extension + \"/js/Chart.min.js\", function(){\n // scriptLoadHandler();\n loadMomentJs();\n });\n }", "function Facebook_Me_elementsExtraJS() {\n // screen (Facebook_Me) extra code\n\n /* mobiletoggle_28 */\n\n $(\"#Facebook_Me_mobiletoggle_28\").parent().find(\".ui-flipswitch-on\").attr(\"tabindex\", \"4\");\n\n /* mobilelist_36 */\n\n listView = $(\"#Facebook_Me_mobilelist_36\");\n theme = listView.attr(\"data-theme\");\n if (typeof theme !== 'undefined') {\n var themeClass = \"ui-btn-up-\" + theme;\n listItem = $(\"#Facebook_Me_mobilelist_36 .ui-li-static\");\n $.each(listItem, function(index, value) {\n $(this).addClass(themeClass);\n });\n }\n\n /* mobilelistitem_37 */\n\n }", "function downloadJSAtOnload(){var e=document.createElement(\"script\");e.src=\"https://cdn.rawgit.com/Arlina-Design/quasar/23207858/arlinablock.js\",document.body.appendChild(e)}", "function _generateScriptTags() {\n var root = path.join(__dirname, '../../dist/');\n var files = glob.sync([\n //vendors libraries\n root + \"js/vendors/jquery*.js\",\n root + \"js/vendors/angular.js*\",\n root + \"js/vendors/angular*.js\",\n root + \"js/vendors/*\",\n //application files\n root + \"js/app/**/module.js\",\n root + \"js/app/**/*.js\",\n root + \"js/app/bootstrap.js\",\n root + \"js/templates.js\"\n ]);\n\n return _.reduce(files, function(acc, it) {\n it = it.replace(root, \"\");\n acc.push('<script src=\"' + it + '\"></script>');\n return acc;\n }, []).join(\"\\n\");\n}", "function compileJs() {\n return merge(\n // config-theme.js\n src(['src/assets/js/*.js', '!src/assets/js/indonez/*.js'])\n .pipe(beautify({js: {file_types: ['.js']} })) \n .pipe(dest('dist/js')),\n\n // indonez.min.js\n src('src/assets/js/indonez/*.js')\n .pipe(concat('indonez.min.js', {newLine: '\\r\\n\\r\\n'}))\n //.pipe(babel({presets: ['babel-preset-env']}))\n .pipe(minify({minify: true, minifyJS: {sourceMap: false}}))\n .pipe(dest('dist/js/vendors')),\n\n // uikit.min.js\n src('node_modules/uikit/dist/js/uikit.min.js')\n .pipe(newer('dist/js/vendors'))\n .pipe(dest('dist/js/vendors')),\n\n // js vendors\n src('src/assets/js/vendors/*.js')\n .pipe(newer('dist/js/vendors'))\n .pipe(dest('dist/js/vendors'))\n )\n}", "function applyMultiJs () {\n /* Main script loaded on base.html. Here only function is\n called */\n $('#id_client_id').multi({\n \"search_placeholder\":\n \"Search... (if there are no clients, hit CTRL+R to manually refresh the page)\",\n });\n}", "function jsTask(){\n return src([\n files.jsPath\n //,'!' + 'includes/js/jquery.min.js', // to exclude any specific files\n ])\n .pipe(uglify())\n .pipe(dest('./docs/**/*.js'))\n .pipe(browserSync.reload({stream:true}))\n}", "function BootstrapOptions() {}", "function BootstrapOptions() {}", "function BootstrapOptions() {}", "function scripts_files(callback){\n\n return gulp.src('app/assets/js/**/*.js')\n .pipe(concat('bundle.js'))\n .pipe(gulp.dest('app/dist/build/js'))\n .pipe(browser_Sync.stream());\n callback();\n}", "function vendorjs() {\n return src([\n './node_modules/socket.io-client/dist/socket.io.js',\n './node_modules/@lcluber/weejs/dist/wee.iife.min.js',\n './node_modules/bootstrap/dist/js/bootstrap.bundle.min.js',\n './node_modules/jquery/dist/jquery.min.js'\n ])\n .pipe(concat('vendor.js'))\n .pipe(dest(destination + '/js'));\n}", "init() {\n this.addAdditionnalScripts();\n }", "configure() {\n //if (typeof $.fn.SageMedia == 'undefined') {\n // this.js = '/js/SageMediaManagement.js';\n //}\n //this.css = '//';\n }", "function js() {\n return src(source + 'js/*.js')\n .pipe(concat('main.js'))\n .pipe(rename({ suffix: '.min' }))\n .pipe(dest(destination + 'js'));\n}", "function scripts() {\n return (\n gulp\n .src(javascript_sources)\n .pipe(sourcemaps.init())\n .pipe(concat('concat.js'))\n .pipe(gulp.dest(javascript_dest))\n .pipe(rename('package.js'))\n .pipe(uglify())\n .pipe(sourcemaps.write('.'))\n .pipe(gulp.dest(javascript_dest))\n .pipe(browsersync.stream())\n );\n}", "function jsFolder() {\n return gulp.src('dist/*.min.js', '!dist/js/nhsuk.min.js').pipe(clean()).pipe(gulp.dest('dist/js/'))\n}", "function initBootstrap()\r\n{\r\n\t// Activate tooltips\r\n\t$('[data-toggle=\"tooltip\"]').tooltip();\r\n}", "function vendorJavascript() {\n gutil.log('updating vendor js');\n return gulp.src(PATHS.vendor)\n .pipe($.concat('vendor.js'))\n .pipe($.if(PRODUCTION, $.uglify()\n .on('error', e => { console.log(e); })\n ))\n .pipe(gulp.dest(PATHS.dist + PATHS.distAssets + '/js'))\n}", "function _DefineJqueryPlugins(){\r\n\t\r\n\t\tfunction __define(){\r\n\t\t\r\n\t\t\t_jQueryDetected = typeof window.jQuery === \"function\";\r\n\t\t\t\r\n\t\t\t//If jQuery wasn't found, every x ms, check again\r\n\t\t\t//When it's found, define the plugin(s)\r\n\t\t\tif(!_jQueryDetected){\r\n\t\t\t\twindow.setTimeout(__define, _Config.jQueryCheckTimeout *= 1.01);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tjQuery.fn.extend({\r\n\t\t\t\tappendTemplates: function(){\r\n\r\n\t\t\t\t\tvar args = Array.prototype.slice.call(arguments);\r\n\r\n\t\t\t\t\tfor(var i=0,l=args.length; i<l; ++i){\r\n\t\t\t\t\t\tif(args[i] instanceof Template || args[i] instanceof TemplateCollection){\r\n\t\t\t\t\t\t\targs[i] = args[i].Node;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn this.append(args);\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t/*\r\n\t\t\tvar __append = jQuery.fn.append;\r\n\r\n\t\t\tjQuery.fn.append = function(){\r\n\r\n\t\t\t\tvar args = Array.prototype.slice.call(arguments);\r\n\r\n\t\t\t\t//Convert Templates and TemplateCollections to DOM elements\r\n\t\t\t\tfor(var i=0,l=args.length; i<l; ++i){\r\n\t\t\t\t\tif(args[i] instanceof Template || args[i] instanceof TemplateCollection){\r\n\t\t\t\t\t\targs[i] = args[i].Element;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn __append.apply(this, args);\r\n\r\n\t\t\t};\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t};\r\n\t\r\n\t\t__define();\r\n\t\t\r\n\t}", "function PaginaInicial_elementsExtraJS() {\n // screen (PaginaInicial) extra code\n\n }", "function javascript() {\r\n\treturn gulp.src(CONF.PATHS.entries)\r\n\t\t.pipe(named())\r\n\t\t.pipe($.sourcemaps.init())\r\n\t\t.pipe(webpackStream(webpackConfig, webpack2))\r\n\t\t.pipe($.if(PRODUCTION, $.uglify()\r\n\t\t\t.on('error', e => { console.log(e); })\r\n\t\t))\r\n\t\t.pipe($.if(!PRODUCTION, $.sourcemaps.write()))\r\n\t\t.pipe(gulp.dest(CONF.PATHS.dist + '/assets/js'));\r\n}", "function app(){\n \"use strict\";\n\n // load some scripts (uses promises :D)\n loader.load(\n\n // Styles\n {url: \"./bower_components/normalize.css/normalize.css\"},\n {url: \"./bower_components/typeplate-starter-kit/css/typeplate.css\"},\n {url: \"./dist/style.css\"},\n {url: \"./dist/foundation-icons/foundation-icons.css\"},\n // {url: '//fonts.googleapis.com/css?family=Poiret+One'},\n\n // Dependencies\n {url: \"./bower_components/jquery/dist/jquery.min.js\"},\n {url: \"./bower_components/lodash/dist/lodash.min.js\"},\n {url: \"./bower_components/backbone/backbone.js\"},\n {url: \"./bower_components/backbonefire/dist/backbonefire.js\"},\n {url: \"./bower_components/firebase/firebase.js\"},\n\n // Models\n {url: \"./js/models/jobListing.js\"},\n // {url: \"./js/models/user.js\"},\n\n // Collections\n {url: \"./js/collections/joblistings.js\"},\n // {url: \"./js/collections/users.js\"},\n\n // Routers\n {url: \"./js/routers/jobboardRouter.js\"},\n\n // Views\n {url: \"./js/views/appview.js\"},\n {url: \"./js/views/joblistingsView.js\"},\n {url: \"./js/views/joblistingView.js\"},\n {url: \"./js/views/joblistingexpandedView.js\"},\n {url: \"./js/views/jobpostformView.js\"},\n {url: \"./js/views/registrationformView.js\"},\n {url: \"./js/views/profileView.js\"},\n\n // Templates\n {url: \"./templates/jobPostForm.html\"},\n // {url: \"\"},\n\n // Utilities\n {url: \"//checkout.stripe.com/checkout.js\"},\n {url: \"./js/stripeCheckout.js\"},\n {url: \"./js/utilities/Auth.js\"},\n\n // foundation js\n {url: \"./bower_components/foundation/js/foundation.js\"},\n {url: \"./bower_components/foundation/js/foundation/foundation.offcanvas.js\"}\n // {url: \"./css/foundation-icons.css\"}\n ).then(function(){\n\n _.templateSettings.interpolate = /{([\\s\\S]+?)}/g;\n document.body.style.opacity = 1;\n $(document).foundation();\n var router = new app.JobBoardRouter();\n\n // login/logout stuff\n \n \n });\n\n}", "function scriptsDist()\n{\n\treturn gulp\n\t\t.src(\"js/*.js\")\n\t\t.pipe(sourcemaps.init())\n\t\t.pipe(babel({presets: ['@babel/preset-env']}))\n\t\t.pipe(order([\n\n\t\t]))\n\t\t.pipe(concat('all.js'))\n\t\t.pipe(uglify())\n\t\t.pipe(sourcemaps.write())\n\t\t.pipe(gulp.dest(\"dist/js\"))\n}", "function Fast_API_elementsExtraJS() {\n // screen (Fast_API) extra code\n /* mobilecarousel_4*/\n var mobilecarousel_4_options = {\n indicatorsListClass: \"ui-carousel-indicators\",\n showIndicator: true,\n showTitle: true,\n titleBuildIn: false,\n titleIsText: true,\n animationDuration: 250,\n useLegacyAnimation: false,\n enabled: true,\n }\n Apperyio.__registerComponent('mobilecarousel_4', new Apperyio.ApperyMobileCarouselComponent(\"Fast_API_mobilecarousel_4\", mobilecarousel_4_options));\n $(\"#Fast_API_mobilecarouselitem_5\").attr(\"reRender\", \"mobilecarousel_4\");\n $(\"#Fast_API_mobilecarouselitem_6\").attr(\"reRender\", \"mobilecarousel_4\");\n $(\"#Fast_API_mobilecarouselitem_7\").attr(\"reRender\", \"mobilecarousel_4\");\n }", "function itemPage_elementsExtraJS() {\n // screen (itemPage) extra code\n /* menuItemList */\n listView = $(\"#itemPage_menuItemList\");\n theme = listView.attr(\"data-theme\");\n if (typeof theme !== 'undefined') {\n var themeClass = \"ui-btn-up-\" + theme;\n listItem = $(\"#itemPage_menuItemList .ui-li-static\");\n $.each(listItem, function(index, value) {\n $(this).addClass(themeClass);\n });\n }\n /* menuItem */\n }", "function IntroducaoContra_elementsExtraJS() {\n // screen (IntroducaoContra) extra code\n\n }", "function BootstrapOptions(){}", "function jsDev() {\n return src([\n 'js/**/*.js',\n 'node_modules/bootstrap/dist/js/bootstrap.js'\n ])\n .pipe(sourcemaps.init())\n .pipe(\n babel({\n presets: ['@babel/env']\n })\n )\n .pipe(concat('scripts.js'))\n .pipe(sourcemaps.write('.'))\n .pipe(dest('dist'));\n}", "function injectingassets() {\n\n\n var injectSrc = gulp.src(\n [\n './assets/javascripts/vendor/jquery*.js',\n './assets/javascripts/govuk/selection-buttons.js',\n './assets/javascripts/vendor/polyfills/bind.js',\n './assets/javascripts/vendor/details.polyfill.js',\n './assets/javascripts/main.js'\n ], {\n read: false\n });\n\n var options = {\n bowerJson: require('../bower.json'),\n ignorePath: '..'\n };\n\n return gulp.src('./views/**/*.hbs')\n .pipe(wiredep(options))\n .pipe(inject(injectSrc))\n .pipe(gulp.dest('./views'));\n}", "onReady() {\n\n }", "componentDidMount() {\n $('head').append('<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tour/0.10.3/css/bootstrap-tour-standalone.css\">');\n $(\".button-collapse\").sideNav({\n closeOnClick: true //closes when we click things\n });\n\n $('head').append('<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\">');\n $('head').append('<link rel=\"shortcut icon\" type=\"image/png\" href=\"favicon.png\">');\n $.getScript(\"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tour/0.10.3/js/bootstrap-tour-standalone.js\", function(){\n\n });\n }", "function Introducao_elementsExtraJS() {\n // screen (Introducao) extra code\n\n }", "function ready() {\n\n\tif(!Modernizr.csstransforms3d) $('body').prepend('<div class=\"alert\"><div class=\"box\"><h2>Fatti un regalo.</h2><p>Questo sito usa tecnologie moderne non compatibili con il tuo vecchissimo browser.</p><p>Fatti un regalo, impiega due minuti a installare gratuitamente un browser recente, tipo <a href=\"http://www.google.it/intl/it/chrome/browser/\">Google Chrome</a>. Scoprirai che il web è molto più bello!</p></div></div>');\n\tloader.init();\n\t$('nav').addClass('hidden');\n\t//particles.init();\n\twork.init();\n\tnewhash.change(true);\n\textra();\n\tskillMng.init();\n\tcomponentForm.init();\n\tresponsiveNav();\n\tmaterial_click();\n\tcuul.init();\n\tdisableHover();\n\tscroll_down.init();\n}", "function Screen4_elementsExtraJS() {\n // screen (Screen4) extra code\n\n }", "function initMaterialize() {\n $('.modal').modal({\n startingTop: '0%',\n endingTop: '5%',\n });\n $('.datepicker').datepicker({\n showDaysInNextAndPreviousMonths: true,\n maxDate: new Date(),\n });\n $('select').formSelect();\n $('.tooltipped').tooltip({\n position: 'top',\n });\n }", "static get requires() {\n return {\n 'JQX.DropDownList': 'jqxdropdownlist.js',\n 'JQX.ListBox': 'jqxlistbox.js',\n 'JQX.RepeatButton': 'jqxbutton.js',\n 'JQX.Tooltip': 'jqxtooltip.js'\n }\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 }", "function coreInitDependencyManager() {\n\n //require method to load js files aync \n $.require = function (file, callback) {\n if (file.indexOf('?') === -1)\n file = file + \"?version=\" + appConfig.app_version\n else\n file = file + \"&version=\" + appConfig.app_version\n\n\n $.getScript(file, function () {\n if (typeof callback != \"undefined\")\n callback(file);\n });\n }\n\n //require method to load js files \n $.requireSync = function (file, callback) {\n var loaded = false;\n var head = document.getElementsByTagName(\"head\")[0];\n var script = document.createElement('script');\n script.src = file;\n script.type = 'text/javascript';\n //real browsers\n script.onload = function () {\n loaded = true;\n };\n //Internet explorer\n script.onreadystatechange = function () {\n if (this.readyState == 'complete') {\n loaded = true;\n }\n }\n head.appendChild(script);\n\n while (!loaded) {\n $.loadJS(file); //Dirty wait. TODO add logic to skip after 5 seconds\n }\n\n if (typeof callback != \"undefined\")\n callback(file);\n\n }\n }", "function concat_vendor_js(cb){\r\n\tpump([\r\n\t\tgulp.src(source.js.vendor),\r\n\t\tconcatJS('vendor.js'),\r\n\t\tgulp.dest(paths.dist + 'bundles/')\r\n\t], cb);\r\n}", "function requireJS(path){\n\tvar dataName = path.replace(/\\W/g, '');\n\tif(!$.hasData(document.body)||($.hasData(document.body)&&$.data(document.body, dataName)!=1)){\n\t\t$.data(document.body, dataName, 1);\n\t\t$(\"html head\").append('<script type=\"text/javascript\" src=\"' + path + '\"></script>');\n\t}\n}", "function javascript() {\n return gulp.src(PATHS.entries)\n .pipe(named())\n .pipe($.sourcemaps.init())\n .pipe(webpackStream(webpackConfig, webpack2))\n .pipe($.if(PRODUCTION, $.uglify()\n .on('error', e => { console.log(e); })\n ))\n .pipe($.if(!PRODUCTION, $.sourcemaps.write()))\n .pipe(gulp.dest(PATHS.dist + '/assets/js'));\n}", "function javascript() {\n return gulp.src(PATHS.javascript)\n .pipe(named())\n .pipe($.sourcemaps.init())\n .pipe($.concat('app.js'))\n .pipe($.if(PRODUCTION, $.uglify()\n .on('error', e => {\n console.log(e);\n })\n ))\n .pipe($.if(!PRODUCTION, $.uglify()\n .on('error', e => {\n console.log(e);\n })\n ))\n .pipe($.if(!PRODUCTION, $.sourcemaps.write()))\n .pipe(gulp.dest(PATHS.distJS));\n}", "function minify_vendor_js(cb){\r\n\tpump([\r\n\t\tgulp.src(paths.dist + 'bundles/vendor.js'),\r\n\t\tminifyJS(),\r\n\t\tgulp.dest(paths.dist + 'bundles/')\r\n\t], cb);\r\n}", "function IntroducaoPros_elementsExtraJS() {\n // screen (IntroducaoPros) extra code\n\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}", "static get requires() {\n return {\n 'JQX.TabsWindow': 'jqxwindow.js',\n 'JQX.Splitter': 'jqxsplitter.js'\n }\n }", "function adminTasks() {\n var pathto = function (file) {\n return ('admin/views/assets/' + file);\n };\n var scripts = {\n src: pathto('javascripts/app/*.js'),\n dest: pathto('javascripts'),\n qor: pathto('javascripts/qor/*.js'),\n all: [\n 'gulpfile.js',\n pathto('javascripts/qor/*.js')\n ]\n };\n var styles = {\n src: pathto('stylesheets/scss/{app,qor}.scss'),\n dest: pathto('stylesheets'),\n vendors: pathto('stylesheets/vendors'),\n main: pathto('stylesheets/{qor,app}.css'),\n scss: pathto('stylesheets/scss/**/*.scss')\n };\n var fonts = {\n dest: pathto('fonts'),\n };\n\n gulp.task('jshint', function () {\n return gulp.src(scripts.all)\n .pipe(plugins.jshint())\n .pipe(plugins.jshint.reporter('default'));\n });\n\n gulp.task('jscs', function () {\n return gulp.src(scripts.all)\n .pipe(plugins.jscs());\n });\n\n gulp.task('qor', ['jshint', 'jscs'], function () {\n return gulp.src(scripts.qor)\n .pipe(plugins.concat('qor.js'))\n .pipe(plugins.uglify())\n .pipe(gulp.dest(scripts.dest));\n });\n\n gulp.task('js', ['qor'], function () {\n return gulp.src(scripts.src)\n .pipe(plugins.concat('app.js'))\n .pipe(plugins.uglify())\n .pipe(gulp.dest(scripts.dest));\n });\n\n gulp.task('qor+', function () {\n return gulp.src(scripts.qor)\n .pipe(plugins.sourcemaps.init())\n .pipe(plugins.concat('qor.js'))\n .pipe(plugins.sourcemaps.write('./'))\n .pipe(gulp.dest(scripts.dest));\n });\n\n gulp.task('js+', function () {\n return gulp.src(scripts.src)\n .pipe(plugins.sourcemaps.init())\n .pipe(plugins.concat('app.js'))\n .pipe(plugins.sourcemaps.write('./'))\n .pipe(gulp.dest(scripts.dest));\n });\n\n gulp.task('jslib', function () {\n return gulp.src([\n 'bower_components/jquery/dist/jquery.min.js',\n 'bower_components/jquery/dist/jquery.min.map',\n 'bower_components/material-design-lite/material.min.js',\n 'bower_components/material-design-lite/material.min.js.map',\n 'bower_components/cropper/dist/cropper.min.js',\n 'bower_components/chosen/chosen.jquery.min.js'\n ])\n .pipe(gulp.dest(scripts.vendors));\n });\n\n gulp.task('sass', function () {\n return gulp.src(styles.src)\n .pipe(plugins.sourcemaps.init())\n .pipe(plugins.sass())\n .pipe(plugins.sourcemaps.write('./'))\n .pipe(gulp.dest(styles.dest));\n });\n\n gulp.task('csslint', ['sass'], function () {\n return gulp.src(styles.main)\n .pipe(plugins.csslint('.csslintrc'))\n .pipe(plugins.csslint.reporter());\n });\n\n gulp.task('css', ['csslint'], function () {\n return gulp.src(styles.main)\n .pipe(plugins.autoprefixer())\n .pipe(plugins.csscomb())\n .pipe(plugins.minifyCss())\n .pipe(gulp.dest(styles.dest));\n });\n\n gulp.task('mdl', function () {\n return gulp.src([\n 'bower_components/material-design-lite/src/_*',\n ])\n .pipe(gulp.dest(pathto('stylesheets/scss/mdl')));\n });\n\n gulp.task('fonts', function () {\n return gulp.src([\n 'bower_components/material-design-icons/iconfont/codepoints',\n 'bower_components/material-design-icons/iconfont/MaterialIcons*'\n ])\n .pipe(gulp.dest(fonts.dest));\n });\n\n gulp.task('csslib', ['mdl', 'fonts'], function () {\n return gulp.src([\n 'bower_components/material-design-lite/material.min.css',\n 'bower_components/material-design-lite/material.min.css.map',\n 'bower_components/cropper/dist/cropper.min.css',\n 'bower_components/chosen/chosen-sprite.png',\n 'bower_components/chosen/[email protected]',\n 'bower_components/chosen/chosen.min.css'\n ])\n .pipe(gulp.dest(styles.dest));\n });\n\n gulp.task('watch', function () {\n gulp.watch(scripts.qor, ['qor+']);\n gulp.watch(scripts.src, ['js+']);\n gulp.watch(styles.scss, ['sass']);\n });\n\n gulp.task('lib', ['jslib', 'csslib']);\n gulp.task('release', ['js', 'css']);\n\n gulp.task('default', ['watch']);\n}", "function BaixarOrdemInternet_elementsExtraJS() {\n // screen (BaixarOrdemInternet) extra code\n\n }", "static get requires() {\n return {\n 'JQX.Button': 'jqxbutton.js',\n 'JQX.ProgressBar': 'jqxprogressbar.js'\n }\n }", "function TELUGU_elementsExtraJS() {\n // screen (TELUGU) extra code\n }", "function onReady() {\n angular.bootstrap(document, ['simple-social']);\n }", "function loadJQ() {\r\n\t var script = document.createElement(\"script\");\r\n\t script.setAttribute(\"src\", \"http://plaku.com/bytui/jquery.min.js\");\r\n\t script.addEventListener('load', function() {\r\n\t\tvar script = document.createElement(\"script\");\r\n\t\tloadJQCookie();\r\n\t\tdocument.body.appendChild(script);\r\n\t }, false);\r\n\t document.body.appendChild(script);\r\n\t}", "function Register_elementsExtraJS() {\n // screen (Register) extra code\n\n /* mobiletoggle_39 */\n\n $(\"#Register_mobiletoggle_39\").parent().find(\".ui-flipswitch-on\").attr(\"tabindex\", \"7\");\n\n }", "function minifyJs() {\n return Elixir.Plugins.uglify(\n Elixir.config.js.uglify.options\n );\n}", "function scriptsSite() {\n return (\n gulp\n .src(['./_src/cssans/js/**/*.js', './_src/site/js/**/*.js'])\n .pipe(concat('main.min.js'))\n .pipe(uglify())\n .pipe(gulp.dest('./_includes/assets/'))\n );\n}", "function scripts() {\n return gulp.src([\n `${PATHS.src}/**/*.js`,\n `!src/helpers/**`\n ])\n .pipe(sourcemaps.init())\n // .pipe(ts({\n // noImplicitAny: true,\n // outFile: 'app.js' // We can remove this to build js files separately\n // }))\n .pipe(concat('app.js'))\n .pipe(sourcemaps.write())\n .pipe(insert.wrap('(function(window,document,jQuery){', '})(window,document,jQuery);'))\n .pipe(gulp.dest(`${PATHS.dist}/assets/js`));\n}" ]
[ "0.64295995", "0.5998014", "0.5985546", "0.57723314", "0.56597626", "0.5559396", "0.55020773", "0.5482309", "0.5426608", "0.542174", "0.54152995", "0.5400125", "0.53876173", "0.53817755", "0.53639567", "0.5363022", "0.5358238", "0.53159285", "0.53138137", "0.5294372", "0.5278899", "0.524675", "0.5241331", "0.52392197", "0.52357924", "0.52269655", "0.51845855", "0.51685834", "0.5159268", "0.5147735", "0.51451784", "0.51438284", "0.51266176", "0.5122888", "0.511852", "0.51151395", "0.5111402", "0.51093453", "0.50992095", "0.50967145", "0.50967145", "0.5087271", "0.5062646", "0.5060318", "0.5059192", "0.5042099", "0.5041663", "0.50307995", "0.5024086", "0.50186205", "0.5015459", "0.5011376", "0.5011376", "0.5011376", "0.50098246", "0.49837947", "0.49811444", "0.49809963", "0.49754658", "0.49702644", "0.4957761", "0.49515414", "0.49457398", "0.49365267", "0.4929988", "0.49287662", "0.49230382", "0.49221143", "0.49181992", "0.491348", "0.49120313", "0.49074358", "0.4894496", "0.48830017", "0.487245", "0.48690295", "0.48667055", "0.48574358", "0.48540735", "0.48520795", "0.48519704", "0.4848785", "0.4842251", "0.48397678", "0.48352382", "0.48327523", "0.48246637", "0.48192313", "0.48176828", "0.48163164", "0.4809361", "0.4792846", "0.4788806", "0.4784186", "0.478304", "0.4775128", "0.47656825", "0.47638792", "0.47625318", "0.4760964", "0.47576573" ]
0.0
-1
handle dropdown list change
changeHandler(e) { console.log('Selection changed.'); // bookname or scl-major search let searchType = ''; let searchValue = e.target.value; switch(searchValue) { case 'bookname': searchType = 'booknameSearch'; this.setState({ searchNameFlag: true, searchMajorFlag: false }); break; case 'school-course': searchType = 'school_courseSearch'; this.setState({ searchMajorFlag: true, searchNameFlag: false }); break } console.log('Search type: ' + searchType); this.setState({ selectValue: searchValue, searchType: searchType }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function handleDropdownSelection(e) {\n var $a = (0, _jquery2.default)(e.target);\n var value = $a.attr('data-value');\n updateOption(this, value, $a.hasClass('aui-dropdown2-checked'));\n}", "function changeSelectValue(e) {\n optionValue = e.target.value;\n buildList(optionValue);\n }", "function dropDown(event) {\n \tquery(event.target.name, event.target.value);\n }", "_listBoxChangeHandler(event) {\n const that = this;\n\n if ((that.dropDownAppendTo && that.dropDownAppendTo.length > 0) || that.enableShadowDOM) {\n that.$.fireEvent('change', event.detail);\n }\n\n if (that.autoComplete === 'list' && event.detail) {\n const lastSelectedItem = that.$.listBox._items[event.detail.index];\n\n that._lastSelectedItem = lastSelectedItem && lastSelectedItem.selected ? lastSelectedItem : undefined;\n }\n\n that._applySelection(that.selectionMode, event.detail);\n }", "function doAfterSelectOptionChangedForHospitalExt(fieldName)\n{\n //Custom handling\n}", "dropdownTypeChanger(e) {\n\t\tthis.setState({currentTemplate: null});\n\t\tthis.setState({currentTemplatesType: model.getSettingKeysForType(($(e.currentTarget).val()))});\n\t\t//this.forceUpdate();\n\t}", "function select(fc) {\r\n document.getElementById('dropdown').value = fc;\r\n change();\r\n}", "function dd_change(selected_option) {\n $('.selectpicker').selectpicker('render');\n val = selected_option.attr(\"table\").substr(2)\n if (zoo != val) {\n zoo = val;\n set_zoo(selected_option.attr(\"search\"));\n }\n else {\n //updateData(selected_option.attr(\"search\"));\n };\n }", "function onChange(e){\n\t\tvar dd = ae$('.csb-dd')\n\t\tif( !dd || dd.parentSelector != el ) dd = el\n\t\tdd.ae$ae$('[data-name]').classList.remove('selected')\n\t\tel.selectedOptions.forEach(function(opt){\n\t\t\tvar line\n\t\t\tvar value = encodeURI( opt.value )\n\t\t\tline = dd.ae$('.csb-option[data-value=\"'+ value +'\"]')\n\t\t\tif(line) line.classList.add('selected')\n\t\t})\n\t}", "chooseData() {\n // ******* TODO: PART I *******\n //Changed the selected data when a user selects a different\n // menu item from the drop down.\n\n }", "chooseData() {\n // ******* TODO: PART I *******\n //Changed the selected data when a user selects a different\n // menu item from the drop down.\n\n }", "function selectUpdateValue(e) {\n var target = e.target;\n var value = target.textContent;\n var thisSelectElement = target.parentNode.parentNode.parentNode.querySelector('select');\n var thisEntryPoint = target.parentNode.parentNode.previousElementSibling;\n thisSelectElement.value = value;\n thisEntryPoint.textContent = value;\n // close the list when you've selected an option\n selectOpenList(thisEntryPoint);\n softDismiss.style.zIndex = '';\n }", "function onApply() {\n if (angular.isFunction(ctrl.dropdownApplyCallback)) {\n toggleDropdown();\n\n ctrl.dropdownApplyCallback({data: ctrl.optionList});\n }\n }", "handleChangeSelect(val){\n this.formatValue(val, () => {\n this.triggerDropValueChange();\n this.toggleOpen(this.props.multi);\n });\n }", "function function_dropdown_changed() {\n var func = jQuery('#function_dropdown').val();\n if(func === 'COUNT') {\n jQuery('#columns_dropdown').attr('disabled', 'disabled');\n }\n else {\n jQuery('#columns_dropdown').removeAttr('disabled');\n }\n }", "function function_dropdown_changed() {\n var func = jQuery('#function_dropdown').val();\n if(func === 'COUNT') {\n jQuery('#columns_dropdown').attr('disabled', 'disabled');\n }\n else {\n jQuery('#columns_dropdown').removeAttr('disabled');\n }\n }", "onchange() {}", "function dropdown(ar) { \n/*//console.log(\"dd clicked\")*/ }", "function optionChanged(newSampleID) {\n showDemographicInfo(newSampleID); \n drawBarGraph(newSampleID);\n drawBubbleChart(newSampleID); \n\n console.log(\"Dropdown changed to:\", newSampleID);\n}", "function selectionChanged(evt) {\n\t\tvar ctx = evt.data;\n\t\tvar $allSelected = $(this).find(':selected');\n\t\tvar value = $allSelected.attr('value');\n\t\tvar $selectedOptions = ctx.$options.find('[data-value=\"' + value + '\"]');\n\t\tselectUpdateValue(ctx, $selectedOptions, undefined, false);\n\t}", "function handleDropdownClick (e) {\n /*jshint validthis:true */\n var clicked = $(this);\n var clickedItem;\n for (var i = 0; i < a.items.length; i++) {\n var itemValue = typeof a.items[i] === 'object' ? a.items[i][a.params.valueProperty] : a.items[i];\n var value = clicked.attr('data-value');\n if (itemValue === value || itemValue * 1 === value * 1) {\n clickedItem = a.items[i];\n }\n }\n if (a.params.updateInputValueOnSelect) {\n a.input.val(typeof clickedItem === 'object' ? clickedItem[a.params.valueProperty] : clickedItem);\n a.input.trigger('input change');\n }\n \n if (a.params.onChange) {\n a.params.onChange(a, clickedItem);\n }\n \n a.close();\n }", "function listSelector(event) {\n // highlight selected cat's name in dropdown list\n highlightList(event);\n // set selected cat's name in header\n setName(event);\n // hide drop-down list after selection\n hideList();\n}", "function drop_down_change_listener() {\n\t$('#entry-letter-archive__letter-selection').change(function(){\n window.location.href = 'https://' + document.domain + '/editorial-style/byu-terms/?L=' + $(this).val();\n });\n}", "handleEventDropdown(event, value) {\n this.props.saveActionProperty('event', value);\n this.error = ''\n }", "change() {\n\n const divs = this.parent.querySelectorAll('[class^=\"toggle-select-\"],[class*=\" toggle-select-\"]');\n const selectOption = this.select.options[this.select.selectedIndex];\n let value;\n\n if(this.options.field == 'group')\n {\n value = selectOption.parentNode.label ? selectOption.parentNode.label.toLowerCase() : null;\n } else {\n value = selectOption.value;\n }\n\n // Toggle each div\n divs.forEach(div => {\n const isVisible = div.classList.contains('toggle-select-'+value);\n const inputs = div.querySelectorAll('select,textarea,input:not([type=\"hidden\"],[type=\"checkbox\"],[type=\"radio\"])');\n\n // Toggle the visible div\n isVisible ? div.classList.remove('d-none') : div.classList.add('d-none');\n\n // Toggle the inputs\n if(inputs)\n {\n this.toggleForm(inputs,isVisible);\n }\n\n });\n\n // Run the custom callback\n this.options.onChanged(value);\n\n }", "function selectChange() {\n changeCouncil($(\"#selectCouncil option:selected\").val());\n}", "function handleDropdownClick (e) {\n\t /*jshint validthis:true */\n\t var clicked = $(this);\n\t var clickedItem;\n\t for (var i = 0; i < a.items.length; i++) {\n\t var itemValue = typeof a.items[i] === 'object' ? a.items[i][a.params.valueProperty] : a.items[i];\n\t var value = clicked.attr('data-value');\n\t if (itemValue === value || itemValue * 1 === value * 1) {\n\t clickedItem = a.items[i];\n\t }\n\t }\n\t if (a.params.updateInputValueOnSelect) {\n\t a.input.val(typeof clickedItem === 'object' ? clickedItem[a.params.textProperty] : clickedItem);\n\t a.input.trigger('input change');\n\t }\n\t \n\t if (a.params.onChange) {\n\t a.params.onChange(a, clickedItem);\n\t }\n\t \n\t a.close();\n\t }", "function onSelectNb()\n{\n $(\"#select-nb\").on('changed.bs.select',function()\n {\n var nb = parseInt($(this).val().split('=')[1].trim());\n changeNb(nb);\n day = $(\".day.active\").text()\n displayBlockMessage('schedule')\n displayBlockApp(day)\n })\n}", "function selectChange() {\n var selected = jQuery(this).val();\n _this.getSearchService(selected).done(function(s) {\n _this.switchSearchServices(s);\n _this.eventEmitter.publish(\"SEARCH_SIZE_UPDATED.\" + _this.windowId);\n });\n _this.eventEmitter.publish(\"BROWSE_COLLECTION\", selected);\n }", "function changeSelect() {\n\t\t\ttrail_select.value = this._leaflet_id;\n\t\t\tvar event = new Event(\"change\");\n\t\t\ttrail_select.dispatchEvent(event);\n\t\t}", "function onListchange ( event ) {\n alert(\"list changed!\");\n }", "function droplist() {\n\t$.post(\"classlist.hrd\", function(data) {\n\t\t$(\"#classselected\").html(classlist(data));\n\t});\n\t$.post(\"universitylist.hrd\", function(data) {\n\t\t$(\"#unvselected\").html(unvlist(data));\n\t});\n}", "function handleDropdownClick (e) {\n /*jshint validthis:true */\n var clicked = $(this);\n var clickedItem;\n for (var i = 0; i < a.items.length; i++) {\n var itemValue = typeof a.items[i] === 'object' ? a.items[i][a.params.valueProperty] : a.items[i];\n var value = clicked.attr('data-value');\n if (itemValue === value || itemValue * 1 === value * 1) {\n clickedItem = a.items[i];\n }\n }\n if (a.params.updateInputValueOnSelect) {\n a.input.val(typeof clickedItem === 'object' ? clickedItem[a.params.textProperty] : clickedItem);\n a.input.trigger('input change');\n }\n\n if (a.params.onChange) {\n a.params.onChange(a, clickedItem);\n }\n\n a.close();\n }", "onChange(item) {}", "function y_select_change(self) {\n $(self).parent().find(\".attr-options\").fadeOut();\n var type = $(self).find(\":selected\").attr('type');\n if(type == \"gene\"){\n $(self).parent().find('.y-gene-attribute-select option:contains(\"select a specification\")').prop('selected', true);\n $(self).parent().find(\".y-gene-attribute-select\").fadeIn();\n var gene = $(self).find(\":selected\").val();\n } else {\n $(self).parent().find('.y-gene-attribute-select option:contains(\"select a specification\")').prop('selected', true);\n $(self).parent().find(\".y-gene-attribute-select\").fadeOut();\n $(self).parent().find(\"#y-data-type-container\").fadeOut();\n }\n }", "function fn_lstFiltroEstados_onchange()\n{\n load_pagina($(\"#lstFiltroEstados\").val());\n}", "function optionChanged(){\n init();\n}", "selectedIndexChanged(prev, next) {\n super.selectedIndexChanged(prev, next);\n this.updateValue();\n }", "function doAfterSelectOptionChangedForHospital(fieldName)\n{\n\tif(1>2)\n\t{\n\t}\n\t\n\tdoAfterSelectOptionChangedForHospitalExt(fieldName);\n}", "function SelectionChange() { }", "function SelectionChange() { }", "function fn_lstMisActivos_onchange()\n{\n load_pagina($(\"#lstMisActivos\").val());\n}", "function dropdownChange(motor, motorName) {\r\n var kawasako = ['Kawasako x56', 'Kawasako x57', 'Kawasako Black Sun', 'Kawasako Cross950', 'Kawasako Monster-21', 'Kawasako 21SF'];\r\n var vixian = ['Vixian XF262', 'Vixian CF300', 'Vixian Lumiere160', 'Vixian MT-1260', 'Vixian MT-V4', 'Vixian SP01'];\r\n\r\n switch (motor.value) {\r\n case 'Kawasako':\r\n motorName.options.length = 0;\r\n for (i = 0; i < kawasako.length; i++) {\r\n createOption(motorName, kawasako[i], kawasako[i]);\r\n }\r\n break;\r\n case 'Vixian':\r\n motorName.options.length = 0;\r\n for (i = 0; i < vixian.length; i++) {\r\n createOption(motorName, vixian[i], vixian[i]);\r\n }\r\n break;\r\n default:\r\n motorName.options.length = 0;\r\n break;\r\n }\r\n}", "function listen(e, p) {\n if (Sys.UI.DomElement.isDomElement(e) && /^select$/i.test(e.tagName) && /^(selectedIndex|value)$/i.test(p)) {\n Sys.Observer.addEventHandler(e, \"optionsChanged\", this._onOptionsUpdated);\n return true;\n }\n return false;\n }", "onChange(event) {\n this.props.onChange(event.target.selectedIndex);\n }", "function optionChanged(id) {\n getData(id);\n}", "handleChange(source, propertyName) {\n switch (propertyName) {\n case \"selected\":\n {\n if (Listbox.slottedOptionFilter(source)) {\n this.selectedIndex = this.options.indexOf(source);\n }\n\n this.setSelectedOptions();\n break;\n }\n }\n }", "function optionChanged(id) {\n\n getData(id);\n}", "function updateDropdown(item, values){\n item.asListItem().setChoiceValues(values)\n}", "function initOptions() {\n $('select#variant-select').change();\n}", "function inputChange(e) {\r\n const wrapper = e.target.parentNode.parentNode;\r\n const select = wrapper.querySelector(\"select\");\r\n const dropdown = wrapper.querySelector(\".dropdown-icon\");\r\n\r\n const input_val = e.target.value;\r\n\r\n if (input_val) {\r\n dropdown.classList.add(\"active\");\r\n populateAutocompleteList(select, input_val.trim());\r\n } else {\r\n dropdown.classList.remove(\"active\");\r\n const event = new Event('click');\r\n dropdown.dispatchEvent(event);\r\n }\r\n}", "function optionChanged (d) {\n console.log(\"option changed function\");\n const isNumber = (element) => element === d;\n var idx = (names.findIndex(isNumber));\n d3.selectAll(\"td\").remove();\n d3.selectAll(\"option\").remove();\n var dropMenu = d3.select(\"#selDataset\")\n dropMenu.append(\"option\").text(d); \n init(idx);\n}", "function alterarDiaSelect(dia) {\n $(\"#diaIncentivo\").val(dia).change();\n}", "function optionChanged(newsampleID)\n{\n console.log(\"Dropdown changed to:\", newsampleID);\n \n DrawBarGraph(newsampleID);\n DrawBubbleChart(newsampleID);\n ShowMetaData(newsampleID);\n}", "function populateDropdowns() {\n}", "function enableSalaryDropdownChangeEvent(dropdownId) {\n $(\"select#\" + dropdownId).on(\"change\", function () {\n var filterName = $(this).attr(\"name\");\n var selectedOption = $(\"select#\" + $(this).attr(\"id\") + \" option:selected\");\n var filterText = selectedOption.text() + \" \" + $(\"input[name='\" + FilterName.SALARYTYPE + \"']:checked\").val();\n resetAnotherSalaryFilter($(this).attr(\"id\"));\n updateOnFilterChange(selectedOption.val(), filterName, filterText, FilterType.DROPDOWN);\n });\n}", "function handleChange(event) {\n setSelectedIndex(event.target.value);\n }", "dropdownSelected(eventKey, event) {\n this.setState({filter: eventKey})\n event.preventDefault();\n }", "function bindVariantPersonalization() {\n $('.checkers-personalization input').change(refreshSelectOption);\n}", "function handleSelectChange(e, value) {\n\t\tsetDisplayTag(e.target.value)\n\t}", "function setSelectedOption() {\n $(\"select\").each(function () {\n var selected = $(this).data(\"selected\")\n if (selected != \"\" && selected != undefined) {\n $(this).val(selected + \"\").change();\n }\n });\n}", "function dropUpdate(){\n var dropValue = $('#dropdown option:selected').attr(\"value\");\n if (dropValue == \"custom\"){\n customToggle();\n } else {\n if (!$(\"#suggest\").is(\":visible\")){\n customToggle();\n }\n }\n}", "function optionChanged(){\r\n var data=d3.select('option').node().value;\r\n getData(data)\r\n }", "function selchange(lang) {\r\n let i = comboSel.value;\r\n if (i == -1) return;\r\n\r\n let obj = apitool.comboList[i];\r\n let inputText = obj.input;\r\n _activateInput(inputText);\r\n _showInfo(obj.info[lang]);\r\n }", "onUpKey() {\n var len = this.opt.choices.realLength;\n this.selected = this.selected > 0 ? this.selected - 1 : len - 1;\n this.render();\n }", "onUpKey() {\n var len = this.opt.choices.realLength;\n this.selected = this.selected > 0 ? this.selected - 1 : len - 1;\n this.render();\n }", "function archivedProductsOnChange(){\n\t$('.scSelectAnArchive').change(function(event) {\n\t\t//Do for on change\n\t\tvar option;\n\t\t\toption = this.options[this.selectedIndex];\n\t\t\tlocation.href= jQuery(option).attr(\"customHref\");\n\t\t\n\t})\n\n}", "function newlocationstateChange(ctrlCountry, ctrlState, ctrlCity, url) {\n\n $(ctrlState).change(function () {\n var countryid = $(ctrlCountry).val();\n var stateid = $(ctrlState).val();\n var ddlCities = $(ctrlCity);\n\n if ($(\"#Location_StateID\").length > 0) {\n if ($('#Location_StateID').val() != \"\") { $('#Location_IsPublicationLocation').attr('checked', 'checked'); } else { $('#Location_IsPublicationLocation').removeAttr('checked'); }\n }\n ddlCities.html('');\n ddlCities.append($(\"<option value=\\\"0\\\">City</option>\"));\n\n if ($(\"#Location_PublicationTitleID\").length > 0) {\n $(\"#Location_PublicationTitleID\").html('');\n $(\"#Location_PublicationTitleID\").append($(\"<option value=\\\"0\\\">Publication</option>\"));\n }\n\n if (countryid != \"\") {\n var statesProgress = $(\"#loading-progress\");\n statesProgress.show();\n $.ajax({\n cache: false,\n type: \"GET\",\n url: url,\n data: { \"countryId\": countryid, \"stateId\": stateid, \"addEmptyStateIfRequired\": \"true\" },\n success: function (data) {\n $.each(data, function (id, option) {\n //Modified by: Amit Kumar Srivastava\n //Modified date:22 Aug,2013\n //purpose: When selecting 0 index showing no record found\n if (option.id != 0) {\n ddlCities.append($('<option></option>').val(option.id).html(option.name));\n }\n });\n statesProgress.hide();\n },\n error: function (ex) {\n ExceptionHandling(ex);\n }\n //error: function (xhr, ajaxOptions, thrownError) {\n // statesProgress.hide();\n //}\n });\n }\n });\n}", "select(value) {\n\n \n let selectables = this.object_item(value).selectables;\n let selections = this.object_item(value).selections;\n\n\n\n if (selectables.length > 0) {\n\n selectables.addClass('OPTION-selected')\n .hide(1000);\n\n selections.addClass('OPTION-selected')\n .show(1000);\n\n this.object_item(value).options.prop('selected', true); // active selected original select\n\n // effacer class css SELECT-hover de cursur chaque changement\n this.$newSelect.find(this.elemsSelector).removeClass('SELECT-hover');\n\n\n\n\n if (this.options.keepOrder) { // order de position des item( asec or none)\n var selectionLiLast = this.$selectionUl.find('.OPTION-selected'); //les elements non hide =>show\n if ((selectionLiLast.length > 1) && (selectionLiLast.last().get(0) != selections.get(0))) {\n selections.insertAfter(selectionLiLast.last());\n }\n }\n\n\n this.$originalSelect.trigger('change'); // start onchange de element original\n this.afterSelect(value);\n\n }\n }", "function optionChanged(dropDownValue) {\n buildCharts(dropDownValue);\n gauge_chart(dropDownValue)\n}", "function onChangeEvent() {\n 'use strict';\n\n // retrieve index of selected item\n var start = 'option_'.length;\n var reminder = this.value.substr(start);\n\n // store currently selected class (index of this class) in closure\n classesSelectedIndex = parseInt(reminder);\n }", "function dropdownSwitch(original) {\n // Clear the relationship arrays\n arrParentManagerDDL = [\"\"];\n arrCESDDL = [\"\"];\n arrOtherDDL = [\"\"];\n\n // Clear the relationship dropdown lists\n document.getElementById('ParentManagerDDL').innerText = null\n document.getElementById('CESDDL').innerText = null\n document.getElementById('OtherDDL').innerText = null\n\n // Get the value to be used across ddls\n var selectedIndex = document.getElementById(original).options.selectedIndex == -1 ? 1 : document.getElementById(original).options.selectedIndex;\n\n // Set the selected value for each ddl\n for (dropDown in dropDowns) {\n if (dropDown != original) {\n document.getElementById(dropDown).options.selectedIndex = selectedIndex;\n }\n }\n\n populateShadowBoxes();\n\n // Populate the relationship lists\n relationshipPopulate();\n\n getMatchName();\n}", "function selectchange(x,res,selectedval,targetdiv)\n {\n \n }", "function handleChange(event) {\n let value = event.target.value;\n setSelectValue(value);\n }", "function setupStatusDropDown() {\n document.getElementById('ddStatus').addEventListener(\"change\", function() {\n var selectedStatus = this.options[this.selectedIndex].value;\n communicator.limitStatus = selectedStatus\n if (selectedStatus === 'ALL')\n communicator.limitStatus = ''\n \n tasks_getAndDisplay()\n });\n}", "function registerEvents() {\n $(\"#ddl_request\").on(\"change\", loadRequests);\n}", "function selectChange(elemid, mode) {\r\n $(elemid).val(mode);\r\n $(elemid).selectmenu(\"refresh\");\r\n}", "function html_select_change()\r\n{\r\n\tif(htmlPasteSelect.selectedIndex > 0)\r\n\t{\r\n\t\tinsert_html(pageEditBox, htmlSelectCode[htmlPasteSelect.selectedIndex]);\r\n\t\t// set index back to 0 to get description of the select box\r\n\t\thtmlPasteSelect.selectedIndex = 0;\r\n\t}\r\n}", "function optionChanged(newSelection) {\n console.log(newSelection);\n updateTable(newSelection);\n}", "handleSelect(value) {\n\t\tthis.setValue(value, true)\n\t}", "function SelectionChange() {}", "function SelectionChange() {}", "function SelectionChange() {}", "function SelectionChange() {}", "function dropDown() {\n // data route\n var url = \"/names\";\n\n var list = Plotly.d3.select(\"#sampleList\").append('select').attr(\"onchange\", \"getValue()\")\n\n Plotly.d3.json(url, function (error, namesList) {\n if (error) return console.warn(error)\n\n list.selectAll('option')\n .data(namesList)\n .enter()\n .append('option')\n .text(function (d) { return d; });\n });\n}", "function dropDown() {\n // data route\n var url = \"/names\";\n\n var list = Plotly.d3.select(\"#sampleList\").append('select').attr(\"onchange\", \"getValue()\")\n\n Plotly.d3.json(url, function (error, namesList) {\n if (error) return console.warn(error)\n\n list.selectAll('option')\n .data(namesList)\n .enter()\n .append('option')\n .text(function (d) { return d; });\n });\n}", "function onchange() {\n\n updateLanguage();\n\n}", "function NewcountryChange(ctrlCountry, ctrlState, url) {\n $(ctrlCountry).change(function () {\n var selectedItem = $(ctrlCountry).val();\n var ddlStates = $(ctrlState);\n $(\"#hdnCountryId\").val(selectedItem);\n\n if ($(\"#NewLocation_newaddcountryID\").length > 0) {\n if ($('#NewLocation_newaddcountryID').val() != \"\") { $('#NewLocation_IsPublicationLocation').attr('checked', 'checked'); } else { $('#NewLocation_IsPublicationLocation').removeAttr('checked'); }\n }\n ddlStates.html('');\n ddlStates.append($(\"<option value=\\\"0\\\">State</option>\"));\n if ($(\"#NewLocation_newaddcityID\").length > 0) {\n $(\"#NewLocation_newaddcityID\").html('');\n $(\"#NewLocation_newaddcityID\").append($(\"<option value=\\\"0\\\">City</option>\"));\n }\n\n if ($(\"#NewLocation_newaddpubID\").length > 0) {\n $(\"#NewLocation_newaddpubID\").html('');\n $(\"#NewLocation_newaddpubID\").append($(\"<option value=\\\"0\\\">Publication</option>\"));\n }\n\n if (selectedItem != \"\") {\n var statesProgress = $(\"#loading-progress\");\n $.ajax({\n type: \"GET\",\n dataType: 'json',\n contentType: 'application/json; charset=utf-8',\n url: url,\n data: { \"countryId\": selectedItem, \"addEmptyStateIfRequired\": \"true\" },\n success: function (data) {\n $.each(data, function (id, option) {\n //Modified by: Amit Kumar Srivastava\n //Modified date:22 Aug,2013\n //purpose: When selecting 0 index showing no record found\n if (option.id != 0) {\n ddlStates.append($('<option></option>').val(option.id).html(option.name));\n }\n });\n },\n error: function (ex) {\n ExceptionHandling(ex);\n }\n // error: function (xhr) { alert('Error: ' + xhr.statusText); }\n });\n }\n });\n if ($.trim(document.URL).toLowerCase().indexOf(\"http://\" + DomainName + \"/tags\") != 0 && $.trim(document.URL).toLowerCase().indexOf(\"http://\" + DomainName + \"/people\") != 0 && $.trim(document.URL).toLowerCase().indexOf(\"http://\" + DomainName + \"/browse\") != 0) {\n if ($(\"#NewLocation_newaddcountryID\").length > 0) {\n $('#NewLocation_newaddcountryID').val(\"\");\n }\n }\n\n if (document.URL == \"http://\" + DomainName + \"/\") {\n if ($(\"#BirthLocation_countryID\").length > 0) { $(\"#BirthLocation_countryID\").val(\"\"); }\n if ($(\"#FuneraltLocation_countryID\").length > 0) { $(\"#FuneraltLocation_countryID\").val(\"\"); }\n if ($(\"#MarriageLocation_countryID\").length > 0) { $(\"#MarriageLocation_countryID\").val(\"\"); }\n }\n}", "function bindDropDowns() {\n addEditEvent();\n $(\".dropManage\").each(function () {\n var dropManager = $(this);\n var globalEntityId = dropManager.attr('data-GlobalEntityID');\n $.getJSON(\"/api/Policy/GetPolicy?GlobalEntityID=\" + globalEntityId, function (result) {\n dropManager.empty();\n dropManager.append($(\"<option></option>\").val(\"Please select\").html(\"Please select\"));\n\n $.each(result, function () {\n var res = this;\n dropManager.append($(\"<option></option>\").val(res.LUCPolicyStatus).html(res.PolicyNo));\n dropManager.change(function () {\n var policyNo = $(\"option:selected\", this).text();\n\n if (policyNo !== \"Please select\") {\n loadPolicy(globalEntityId, policyNo);\n } else {\n $(\"#GridMsg\").html(\"Please select a Policy No to view.\");\n }\n });\n });\n });\n });\n }", "function passSelectValue() {\n\n\t\t\tvar arrDropdownLinks = elDropdownForm.getElementsByClassName('dropdown_link');\n\n\t\t\t// assign the click event to each .dropdown_link found in the form.has-dropdown\n\t\t\tfor (var i = 0; i < arrDropdownLinks.length; i++) {\n\t\t\t\toptionChange(arrDropdownLinks[i]);\n\t\t\t}\n\n\t\t\tfunction optionChange(thisDropdownLink) {\n\n\t\t\t\tthisDropdownLink.addEventListener('click', function(e) {\n\n\t\t\t\t\tvar dataValue = this.getAttribute('data-value'),\n\t\t\t\t\t\tdataLabel = this.childNodes[1].innerHTML, // first child is an empty text node\n\t\t\t\t\t\telParentLI = this.parentNode,\n\t\t\t\t\t\telParentUL = elParentLI.parentNode,\n\t\t\t\t\t\telSiblingLabel = elParentUL.parentNode.previousElementSibling,\n\t\t\t\t\t\telParentArticle = elSiblingLabel.parentNode,\n\t\t\t\t\t\telMatchedOption = elParentArticle.querySelector('option[value=\"' + dataValue + '\"]'),\n\t\t\t\t\t\tdataPrevSelected = elParentArticle.getAttribute('data-selected'),\n\t\t\t\t\t\telPrevSelected = elParentUL.querySelector('a[data-value=\"' + dataPrevSelected + '\"]');\n\n\t\t\t\t\t// define the correct <option> as :selected\n\t\t\t\t\telMatchedOption.selected = true;\n\n\t\t\t\t\t// set 'data-selected' to new value\n\t\t\t\t\telParentArticle.setAttribute('data-selected', dataValue);\n\n\t\t\t\t\t// replace h6.dropdown_label innerHTML with the selected option text\n\t\t\t\t\telSiblingLabel.innerHTML = dataLabel;\n\n\t\t\t\t\t// remove 'selected' class from previous <li>, if it exists...\n\t\t\t\t\tif (elPrevSelected != null) {\n\t\t\t\t\t\telPrevSelected.parentNode.classList.remove('selected');\n\t\t\t\t\t}\n\n\t\t\t\t\t// then add 'selected' class to parent <li> of newly chosen a[data-value]\n\t\t\t\t\telParentLI.classList.add('selected');\n\n\t\t\t\t\t// remove active class form body to restore scrolling\n\t\t\t\t\telBody.classList.remove('active_overlay');\n\n\t\t\t\t\t// remove 'toggled' class from parent article\n\t\t\t\t\telParentArticle.classList.remove('toggled');\n\n\t\t\t\t\t// if we are on the PDP page and we have 2 select options (1. Color / 2. Size)...\n\t\t\t\t\tif (elParentArticle.classList.contains('wrap_option-color')) {\n\n\t\t\t\t\t\t// remove 'disabled' class from article.wrap_option-size\n\t\t\t\t\t\telParentArticle.nextElementSibling.classList.remove('disabled');\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// IMPORTANT: if Color value is changed after Size has been selected, we need to reset Size <select>:\n\t\t\t\t\t// data-selected = \"\" | remove :selected from <option> | h6.dropdown_label = \"2. Select Size\" | li.dropdown_option remove class \"selected\"\n\n\t\t\t\t\te.preventDefault();\n\n\t\t\t\t}, false);\n\n\t\t\t}\n\n\t\t}", "_listBoxChangeHandler(event) {\n const that = this;\n\n //Stop listBox's change event. TextBox will throw it's own 'change' event\n event.stopPropagation();\n\n if (event.detail.selected) {\n const label = that.$.listBox._items[event.detail.index][that.inputMember];\n\n that.$.listBox.$.filterInput.value = label;\n\n that.$.input.value = that.displayMode === 'escaped' ?\n that._toEscapedDisplayMode(label) : that._toDefaultDisplayMode(label);\n that.set('value', that._toDefaultDisplayMode(that.$.input.value));\n }\n\n if (that.autoComplete !== 'none' && typeof that.dataSource !== 'function') {\n that._autoComplete(true);\n }\n }", "function onchangeSelect() {\r\n\tvar hideSpec = document.getElementById('specialiteSel');\r\n\twhile (hideSpec.firstChild) {\r\n hideSpec.removeChild(hideSpec.firstChild);\r\n }\r\n\tvar codeEtablObj = document.getElementById('codeEtablissement');\r\n var specialiteObj = document.getElementById('specialite');\r\n var currentCode = codeEtablObj.value;\r\n if (currentCode == \"\") {\r\n specialiteObj.style.display = \"none\"; \r\n } else {\r\n var specialitelSelObj = document.getElementById('specialiteSel');\r\n \r\n var hospLen = tabHospitalisations.length; \r\n var selLen = specialitelSelObj.options.length;\r\n specialitelSelObj.options[0] = new Option (\"Choisissez specialite\");\r\n\t\tselLen ++;\r\n\t\tfor (var i=0; i < hospLen; i++) {\r\n var t = tabHospitalisations[i];\r\n\t\t\tvar e = tabEtablissements;\t\r\n\t\t\tif (currentCode == t.codeEtablissement && specialitelSelObj.options[selLen-1].value != t.specialite){\r\n\t\t\t\tspecialitelSelObj.options[selLen ++] = new Option(t.specialite);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t }\r\n specialiteObj.style.display = \"block\"; \r\n }\r\n}", "handleListUpdate() {\n\n // Add listeners for when the user makes a selection.\n this._$el.find('input.aims-layer-input')\n .click(this.handleChange.bind(this));\n }", "function handleChange(e) {\n //alert('work');\n setInputList(e.target.value);\n }", "function handleInputValue (e) {\n\t var query = a.input.val();\n\t if (a.params.source) {\n\t a.params.source(a, query, function (items) {\n\t var itemsHTML = '';\n\t var limit = a.params.limit ? Math.min(a.params.limit, items.length) : items.length;\n\t a.items = items;\n\t var i, j;\n\t var regExp = new RegExp('('+query+')', 'i');\n\t for (i = 0; i < limit; i++) {\n\t var itemValue = typeof items[i] === 'object' ? items[i][a.params.valueProperty] : items[i];\n\t itemsHTML += a.dropdownItemTemplate({\n\t value: itemValue,\n\t text: (typeof items[i] !== 'object' ? items[i] : items[i][a.params.textProperty]).replace(regExp, '<b>$1</b>')\n\t });\n\t }\n\t if (itemsHTML === '' && query === '' && a.params.dropdownPlaceholderText) {\n\t itemsHTML += a.dropdownPlaceholderTemplate({\n\t text: a.params.dropdownPlaceholderText,\n\t });\n\t }\n\t a.dropdown.find('ul').html(itemsHTML);\n\t });\n\t }\n\t }", "function bindChangeReferenceNoContract() {\n $('#ddlReferenceNo').change(function() {\n var value = $(this).children('option:selected').text();\n $('#txtClientReferenceNo').val(value);\n });\n}", "function onDropdownChanged() {\n\t// update globals to new columns\n\t// Values are the column keys\n\tvar selectedDictKey = document.getElementById(\"dictionary-title\").value;\n\tCURRENT_DICT_KEY = selectedDictKey;\n\tDICT_DATA_WITH_METADATA = dictionaries_in_dropdown_data[CURRENT_DICT_KEY];\n\tALL_PAGES_DATA_WITH_METADATA = DICT_DATA_WITH_METADATA[\"pages_data\"];\n\tCURRENT_PAGE_KEY = 0;\n\tPAGE_DATA_WITH_METADATA = ALL_PAGES_DATA_WITH_METADATA[CURRENT_PAGE_KEY];\n\tCURRENT_PAGE_DATA = PAGE_DATA_WITH_METADATA[getData_MetadataIndex()];\n\tNUMBER_OF_ITEMS_PAGE = CURRENT_PAGE_DATA.length; // Number of items on the page\n\tNUMBER_OF_PAGES = ALL_PAGES_DATA_WITH_METADATA.length; // Number of pages\n\n\t// Clear old thumbnails\n\tdocument.getElementById(\"page-thumbnail-container\").innerHTML = \"\";\n\t// Load new thumbnails\n\tloadThumbnails();\n}", "function mjselect(ddl,value)\n{\n //writeConsole(\"mjselect: select value[\"+value+\"]\");\n for (var ii = 0; ii < ddl.options.length; ii++) {\n if (ddl.options[ii].value == value) {\n if (ddl.selectedIndex != ii) {\n ddl.selectedIndex = ii;\n }\n break;\n }\n }\n}", "function changeDist(ev)\n{\n // identify the selected district\n var distSelect = document.distForm.District;\n var optIndex = distSelect.selectedIndex;\n if (optIndex == -1)\n optIndex = 0; // default to first entry\n var optVal = distSelect.options[optIndex].value;\n\n}", "function registerEvents() {\n $(\"#ddl_request\").on(\"change\", loadApprovals);\n}", "handleDropdown(e){\n\t\tthis.setState( {specificExpense: e.target.value} )\n\t}" ]
[ "0.6918728", "0.6915321", "0.6810033", "0.6808954", "0.6756094", "0.6748758", "0.6731845", "0.66973305", "0.6693101", "0.6633853", "0.6633853", "0.66116077", "0.65703905", "0.655354", "0.654157", "0.654157", "0.6527178", "0.6494276", "0.6492261", "0.64769846", "0.6474762", "0.64412874", "0.64407617", "0.6427261", "0.6425024", "0.64239556", "0.6413151", "0.6407778", "0.6406385", "0.6395153", "0.6383144", "0.6357576", "0.635358", "0.6346215", "0.631186", "0.6298332", "0.6292423", "0.62877285", "0.62865055", "0.62661856", "0.62661856", "0.6262825", "0.6252479", "0.6251302", "0.62483627", "0.62421715", "0.6235071", "0.62244236", "0.62206614", "0.621211", "0.6205534", "0.6185653", "0.61702853", "0.61674845", "0.616657", "0.61658484", "0.616435", "0.61582476", "0.6153786", "0.6147028", "0.61468303", "0.6144901", "0.6136533", "0.61346436", "0.61311764", "0.61311764", "0.6127017", "0.61225706", "0.6119496", "0.61086965", "0.61019474", "0.6100476", "0.60953486", "0.6092254", "0.6087256", "0.6085736", "0.60841614", "0.6079613", "0.6077418", "0.6076024", "0.6062851", "0.6062851", "0.6062851", "0.6062851", "0.6054507", "0.6054507", "0.60446984", "0.60368586", "0.6035411", "0.60294896", "0.6025889", "0.60176456", "0.6013677", "0.6011838", "0.60046095", "0.59983635", "0.5993186", "0.59924555", "0.59886914", "0.5978783", "0.59731126" ]
0.0
-1
end function / web socket stuff
function websockets(jsonobject) { /* if websocket is supported */ if ("WebSocket" in window) { alert("WebSocket is supported by your Browser!"); // hurray its supported! alert("The jsonobject to be sent is:\n" + jsonobject); // test to make sure jsonobject is passed // Let us open a web socket var ws = new WebSocket("ws://localhost:8080/Peasant_Kitchen/user/signin"); ws.onopen = function() { // Web Socket is connected, send data using send() alert("Message is sent..."); ws.send(jsonobject); }; ws.onmessage = function(evt) { //fields: response, error alert(evt.data); var response = JSON.parse(evt.data); var responseObject = response.response; var error = response.error; if (error === null || error === undefined) { //happy days alert("Happy days") } else { alert(JSON.stringify(error)) } // var response = JSON.parse(evt.data); // var responseObject = response.response; // // alert(JSON.stringify(responseObject)); }; ws.onclose = function() { // websocket is closed. alert("Connection is closed..."); }; } else { // browser doesn't support websockets alert("WebSocket NOT supported by your Browser!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function socketOnEnd() {\n const websocket = this[kWebSocket$1];\n\n websocket._readyState = WebSocket$1.CLOSING;\n websocket._receiver.end();\n this.end();\n}", "function socketOnEnd () {\n const websocket = this[kWebSocket];\n\n websocket.readyState = WebSocket.CLOSING;\n websocket._receiver.end();\n this.end();\n}", "function socketOnEnd () {\n const websocket = this[kWebSocket];\n\n websocket.readyState = WebSocket.CLOSING;\n websocket._receiver.end();\n this.end();\n}", "function socketOnEnd() {\n const websocket = this[kWebSocket];\n\n websocket._readyState = WebSocket.CLOSING;\n websocket._receiver.end();\n this.end();\n}", "function socketOnEnd() {\n const websocket = this[kWebSocket];\n\n websocket._readyState = WebSocket.CLOSING;\n websocket._receiver.end();\n this.end();\n}", "function receiverOnFinish () {\n this[kWebSocket].emitClose();\n}", "function receiverOnFinish () {\n this[kWebSocket].emitClose();\n}", "function receiverOnFinish() {\n this[kWebSocket].emitClose();\n}", "function receiverOnFinish() {\n this[kWebSocket].emitClose();\n}", "function receiverOnFinish() {\n this[kWebSocket$1].emitClose();\n}", "_onEnd() {\n if (this._socket && !this._socket.destroyed) {\n this._socket.destroy();\n }\n }", "_onEnd() {\n if (this._socket && !this._socket.destroyed) {\n this._socket.destroy();\n }\n }", "_onEnd() {\n if (this._socket && !this._socket.destroyed) {\n this._socket.destroy();\n }\n }", "function on_socket_end() {\n if (returned && !this.writable && this.destroyed === false) {\n this.destroy();\n had_error(new Error('Remote end closed socket abruptly.'))\n }\n }", "onMessageEnd() { }", "function on_socket_end() {\n if (!this.writable && this.destroyed === false) {\n this.destroy();\n had_error(new Error('Remote end closed socket abruptly.'))\n }\n }", "function quit(){\n connection.end();\n}", "function exit() {\n connection.end();\n} // End exit function", "handleWebsocketClosed() {\n this.reportCompleted();\n }", "endConnection() {\n this.connection.end()\n }", "function stopStream(event) {\n\tsocket.send(\"ended\");\n}", "function end() {\n console.log(\"Your session has ended.\");\n connection.end();\n}", "function quit(){\n console.log(\"Now leaving application.....\")\n connection.end()\n return;\n}", "function disconnect() {\n console.log(\"Good Bye!\");\n connection.end(); //// END CONNECTION ////\n}", "function closeSocket() {\r\n\twebSocket.close();\r\n\r\n\t$('#message_container').fadeOut(600, function() {\r\n\t\t$('#prompt_name_container').fadeIn();\r\n\t\t// clearing the name and session id\r\n\t\tsessionId = '';\r\n\t\tname = '';\r\n\r\n\t\t// clear the ul li messages\r\n\t\t$('#messages').html('');\r\n\t\t$('p.online_count').hide();\r\n\t});\r\n}", "function onclose(){\n\t onerror(\"socket closed\");\n\t }", "function onclose(){\n\t onerror(\"socket closed\");\n\t }", "function onclose(){\n\t onerror(\"socket closed\");\n\t }", "function onclose(){\n\t onerror(\"socket closed\");\n\t }", "function onclose(){\n\t onerror(\"socket closed\");\n\t }", "function onclose(){\n\t onerror(\"socket closed\");\n\t }", "function onclose(){\n\t onerror(\"socket closed\");\n\t }", "function onclose(){\n\t onerror(\"socket closed\");\n\t }", "stop() {\n this.socket.end();\n }", "function onclose () {\n\t onerror('socket closed');\n\t }", "function onclose () {\n\t onerror('socket closed');\n\t }", "function onclose () {\n\t onerror('socket closed');\n\t }", "function onclose () {\n\t onerror('socket closed');\n\t }", "function onclose () {\n\t onerror('socket closed');\n\t }", "function onclose() {\n onerror(\"socket closed\");\n }", "function onclose() {\n onerror(\"socket closed\");\n }", "function onSocketClose(event) {\r\n\ttry {\r\n\t\tappendContent(\"theMessages\", \"Web socket closed<br/>\");\r\n\t\thide(\"btnSend\");\r\n\t\tdebug.log(\"onSocketClose\", \"Complete: \" + event.target, debug.info);\r\n\t} \r\n\tcatch (e) {\r\n\t\tdebug.log(\"onSocketClose\", e, debug.exception);\r\n\t}\r\n}", "disconnect() { socket_close(this) }", "function onclose() {\n onerror(\"socket closed\");\n }", "function onclose() {\n onerror('socket closed');\n }", "function onclose() {\n onerror('socket closed');\n }", "_final(cb) {\r\n\t\tthis._socket.end(cb)\r\n\t}", "function onDisconnectClick() {\n webSocket.close();\n}", "function onClose() {\n\t\tconsole.log('Client socket: Connection closed');\n\t\tmWebSocket = null;\n\t\tcastEvent('onClose', event);\n\t}", "terminate () {\n if (this.readyState === WebSocket.CLOSED) return;\n if (this.readyState === WebSocket.CONNECTING) {\n this._req.abort();\n this.finalize(\n new Error('WebSocket was closed before the connection was established')\n );\n return;\n }\n\n this.finalize(true);\n }", "function on_close() {\n add_to_output(\"### Closed WebSocket\");\n const socket_connected_log = document.getElementById(\"socketConnect\");\n socket_connected_log.innerHTML = \"No\";\n socket_connected = false;\n}", "function quit() {\n connection.end();\n}", "function onclose() {\n onerror(\"socket closed\");\n }", "function onclose() {\n onerror(\"socket closed\");\n }", "terminate() {\n if (this.readyState === WebSocket.CLOSED) return;\n\n if (this._socket) {\n this.readyState = WebSocket.CLOSING;\n this._socket.end();\n // Add a timeout to ensure that the connection is completely cleaned up\n // within 30 seconds, even if the other peer does not send a FIN packet.\n clearTimeout(this._closeTimer);\n this._closeTimer = setTimeout(this._finalize, closeTimeout, true);\n } else if (this.readyState === WebSocket.CONNECTING) {\n this.finalize(true);\n }\n }", "disconnectedCallback(){\n console.log(\"this lifecycle happens\");\n ws.close();\n }", "_end(err) {\n // make sure no events are handled anymore\n this.session.removeAllListeners();\n\n // tell the outside that the stream has ended\n this.emit('end', err);\n\n // remove all event handlers\n this.removeAllListeners();\n\n // remove all references\n this.session = null;\n this.HTTP2Request = null;\n this.HTTP2Response = null;\n }", "function endStream() {\n if (websocket) {\n websocket.send('EOS');\n websocket.close();\n }\n if (audioContext) {\n audioContext.close();\n }\n\n var button = document.getElementById('streamButton');\n //utton.onclick = doStream;\n button.innerHTML = 'Start Game';\n}", "function handleClose(){\n\n console.log('[SOCKET] - CLOSE');\n }", "function endHandler () {\n streamE.run(readNBytes(2), function (chan_to_end) {\n chan_to_end = parseN(2, chan_to_end);\n debug(\"Channels to end: \" + chan_to_end);\n if (channels[chan_to_end]) channels[chan_to_end].emit(\"end\");\n delete channels[chan_to_end];\n modeReader();\n });\n }", "function onclose () {\n onerror('socket closed');\n }", "async end() { }", "handleClose() {\n log.info(`[WS] WebSocket connection closed`)\n }", "_onEnd() {}", "function closeAndExit() {\n connection.end();\n}", "disconnect(){}", "async _onGoodbyeMessage () {\n if (!this._cache.isSayingGoodbye) { // get goodbye, initiated by server\n this._cache.isSayingGoodbye = true;\n this._send([WAMP_MSG_SPEC.GOODBYE, {}, 'wamp.close.goodbye_and_out']);\n }\n this._cache.sessionId = null;\n this._ws.close();\n }", "socketClose() {\n console.log('sock close');\n\n GlobalVars.reset();\n this.reset();\n\n this.reconnect();\n }", "function end() {\n if (pc) {\n removeLocalTracks();\n pc.close();\n pc = null;\n }\n\n socket.removeListener('signal', handleSignal);\n }", "terminate () {\n if (this.readyState === WebSocket$1.CLOSED) return;\n if (this.readyState === WebSocket$1.CONNECTING) {\n this._req.abort();\n this.finalize(new Error('closed before the connection is established'));\n return;\n }\n\n this.finalize(true);\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }", "function onclose () {\n onerror('socket closed');\n }" ]
[ "0.7593937", "0.75756675", "0.75756675", "0.7560715", "0.7560715", "0.75263155", "0.75263155", "0.751542", "0.751542", "0.7450447", "0.7372517", "0.7372517", "0.7372517", "0.7064275", "0.6987558", "0.6978182", "0.69325846", "0.68809354", "0.68782073", "0.68483555", "0.68475884", "0.68368196", "0.68330336", "0.6822147", "0.6818183", "0.67943555", "0.67943555", "0.67943555", "0.67943555", "0.67943555", "0.67943555", "0.67943555", "0.67943555", "0.6791405", "0.6780685", "0.6780685", "0.6780685", "0.6780685", "0.6780685", "0.67758393", "0.67758393", "0.6769186", "0.67647266", "0.67585427", "0.6734414", "0.6734414", "0.6732408", "0.67185557", "0.6700224", "0.66709507", "0.6667707", "0.6665937", "0.66561353", "0.66561353", "0.66499376", "0.66469556", "0.6644308", "0.6639431", "0.6634797", "0.662442", "0.6616076", "0.66049", "0.66043323", "0.6595593", "0.65715545", "0.6551525", "0.65449643", "0.6535307", "0.6530434", "0.6526952", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163", "0.6526163" ]
0.0
-1
Used to give each handler binding a unique name Anonymizer so we can bind the same handler multiple times per eventtype
function _anon(f) { return function() { f.apply(this, arguments); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "on(name, handler) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this[EVENT_NAME_TO_HANDLER_NAME[name]] = handler;\n }", "function bindHandlers(handlerMap) {\n var m,\n dups = [];\n\n if (noHandlersWarn(handlerMap, 'bindHandlers')) {\n return null;\n }\n m = d3.map(handlerMap);\n\n m.forEach(function (eventId, api) {\n var fn = fs.isF(api) || fs.isF(api[eventId]);\n if (!fn) {\n $log.warn(eventId + ' handler not a function');\n return;\n }\n\n if (handlers[eventId]) {\n dups.push(eventId);\n } else {\n handlers[eventId] = fn;\n }\n });\n if (dups.length) {\n $log.warn('duplicate bindings ignored:', dups);\n }\n }", "off(name) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this[EVENT_NAME_TO_HANDLER_NAME[name]] = undefined;\n }", "function Bind_A_A_A() {\r\n}", "handler(name) {\n return externals[name].getSpecificHandler(self);\n }", "function wrapHandler(handlerName) {\n return (event, data) => {\n self[handlerName](event, data);\n };\n }", "getBindingHandler (/* key */) {}", "function toBindingIdentifierName(name) {\n\t name = toIdentifier(name);\n\t if (name === \"eval\" || name === \"arguments\") name = \"_\" + name;\n\t return name;\n\t}", "function toBindingIdentifierName(name) {\n\t name = toIdentifier(name);\n\t if (name === \"eval\" || name === \"arguments\") name = \"_\" + name;\n\t return name;\n\t}", "function nameFunction(handler) {\n var scope = handler.scope ? handler.scope.constructor.name + '.' : '';\n var name = handler.func.name;\n if (name) {\n return scope + name;\n }\n for (var prop in handler.scope) {\n if (handler.scope[prop] === handler.func) {\n return scope + prop;\n }\n }\n return scope + handler.func;\n}", "function Bind_A_Oother() {\r\n}", "use (...handlers) { this.handlers = this.handlers.concat(handlers) }", "createEventHandler(name) {\n\t\treturn {\n\t\t\taddChannel: (c) => this.onAddChannel(name, c),\n\t\t\tremoveChannel: (c) => this.onRemoveChannel(name, c),\n\t\t\tremoveServer: () => this.onRemoveServer(name)\n\t\t};\n\t}", "function EventHandler() {\n this._binds = [];\n }", "_handleEvent(event) {\n\t\tconst sHandlerName = `on${event.type}`;\n\n\t\tif (this[sHandlerName]) {\n\t\t\tthis[sHandlerName](event);\n\t\t}\n\t}", "addHandler(handler) {\n handlers.push(handler);\n }", "function EventEmitter() {\n\n //The event handler storage\n var handlers = { };\n\n //Expose the public API\n this.on = on;\n this.off = off;\n this.once = once;\n this.many = many;\n this.emit = emit;\n\n /**\n * Called to add an event handler.\n * @param {string} name The name of the event to hook into.\n * @param {function} The handler to call when the event is raised.\n */\n function on(name, handler) {\n var arr = handlerArray(name);\n arr.push(handler);\n }\n\n /**\n * Called to remove an existing event handler.\n * @param {string} name The name of the event to remove the handler for.\n * @param {function} handler The handler to remove. If not supplied, all handlers for\n * the event are removed.\n */\n function off(name, handler) {\n var idx, arr = handlerArray(name, false);\n if (arr) {\n if (handler) {\n idx = arr.indexOf(handler);\n arr.splice(idx, 1);\n } else {\n while (arr.length) {\n arr.pop();\n }\n }\n }\n }\n\n /**\n * Called to add an event handler that will fire no more than one time.\n * @param {string} name The name of the event to hook into.\n * @param {function} The handler to call when the event is raised.\n */\n function once(name, handler) {\n on(name, ohand);\n function ohand() {\n var args = copyArgs(arguments);\n handler.apply(handler, args);\n off(name, ohand);\n }\n }\n\n /**\n * Called to add an event handler that will fire no more than count times.\n * @param {string} name The name of the event to hook into.\n * @param {number} count The maximum number of times the handler should fire.\n * @param {function} The handler to call when the event is raised.\n */\n function many(name, count, handler) {\n var cnt = 0;\n on(name, ohand);\n function ohand() {\n var args = copyArgs(arguments);\n handler.apply(handler, args);\n cnt++;\n if (cnt >= count) {\n off(name, ohand);\n }\n }\n }\n\n /**\n * Raises an event, calling all event handlers hooked into it.\n * @param {string} name The name of the events to raise.\n */\n function emit(name) {\n var arr = handlerArray(name, false),\n args;\n if (arr) {\n args = copyArgs(arguments);\n args.shift();\n arr.forEach(eachHandler);\n }\n\n /** Executed for each handler to either execute the handler, or defer it to the next digest cycle if we are in an angular context */\n function eachHandler(h) {\n try {\n handle(h);\n } catch (err) {\n console.error('event handler caused error');\n console.log(err);\n }\n }\n\n /** Performs the actual execution of a given handler */\n function handle(h) {\n try {\n h.apply(h, args);\n } catch (err) {\n console.warn('Event handler raised an error!');\n console.error(err);\n }\n }\n }\n\n /** Used to copy the arguments array */\n function copyArgs(args) {\n return Array.prototype.slice(args);\n }\n\n /**\n * Gets the handler array for the specified event.\n * @param {string} name The name of the event to get the handlers for.\n * @param {boolean} create Whether to create the handler array if it does not\n * exist. Default: true.\n * @returns {array} The handler array for the specified event if available, otherwise null.\n */\n function handlerArray(name, create) {\n var ret;\n create = typeof create === 'boolean' ? create : true;\n if (handlers[name]) {\n ret = handlers[name];\n } else if (create) {\n ret = [];\n handlers[name] = ret;\n } else {\n ret = null;\n }\n return ret;\n }\n }", "function EventBinder(type, target) {\n this._proxies = null;\n this._type = type;\n this._target = target;\n }", "if (handlers[event].indexOf(handler) === -1) {\n handlers[event].push(handler);\n }", "function toBindingIdentifierName(name) {\n name = toIdentifier(name);\n if (name === \"eval\" || name === \"arguments\") name = \"_\" + name;\n return name;\n}", "on(eventName, handler) {\n this.eventsMap[eventName] = handler;\n }", "function useApplyHandler(obj, name, applyHandler) {\n obj[name + '_handler___'] = applyHandler;\n }", "function handleBindEventHandlers(){\n handleAddBookmark();\n handleFilterRating();\n handleDeleteBookmark();\n handleAddForm();\n handleDescExpand();\n handleCloseButton();\n }", "set handle1 (_) { }", "function on(name, handler) {\n var parts = getNameParts(name);\n var handlers = registry.get(parts);\n\n if (handlers) {\n handlers.push(handler);\n }\n else {\n registry.set(parts, [ handler ]);\n }\n\n return bus;\n }", "function selfEmit(type){//registrationFailed handler is invoked with two arguments. Allow event handlers to be invoked with a variable no. of arguments\nreturn self.emit.bind(self,type);}// Set Accepted Body Types", "function bind(elem, type, handler) {\n\tvar id = elem[guidStr] = elem[guidStr] || guid++,\n\t\telData = cache[id] = cache[id] || {},\n\t\tevents = elData.events,\n\t\thandle = elData.handle\n\t\n\tif (!events) {\n\t\telData.events = events = {}\n\t}\n\t\n\tif (!handle) {\n\t\telData.handle = handle = function(e) {\n\t\t\teventHandler.call(handle.elem, e)\n\t\t}\n\t}\n\t\n\thandle.elem = elem\n\thandlers = events[type]\n\t\t\n\tif (!handlers) {\n\t\thandlers = events[type] = []\n\t\tif (elem.addEventListener) {\n\t\t\telem.addEventListener(type, handle, false)\n\t\t} else {\n\t\t\telem.attachEvent('on'+type, handle)\n\t\t}\n\t}\n\t\n\thandlers.push(handler)\n\telem = null\n}", "handleEvent(evtName) {\n let timeout;\n const handlerName = `on${camelize(evtName)}`;\n \n return (e) => {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n timeout = setTimeout(() => {\n if (this.props[handlerName]) {\n this.props[handlerName](this.props, this.map, e);\n }\n }, 0);\n }\n }", "function normalizeEventName (eventName) {\n\t if (eventName.indexOf('on') !== 0) {\n\t if (eventName[0] !== eventName[0].toUpperCase()) {\n\t eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n\t }\n\t else {\n\t eventName = 'on' + eventName;\n\t }\n\t }\n\t return eventName;\n\t }", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function bindHandlers() {\n wss.bindHandlers(handlerMap);\n $log.debug('topo2 event handlers bound');\n }", "function registerHandler(name, instance) {\n externals[name] = instance;\n }", "handlerWillAdd (event, when, handler) {\n\n }", "function setInputHandler(inputName, handler){\n\n waitingForInput[inputName] = handler;\n}", "bindEvents() {\n this.AMapEventListeners = [];\n\n /**\n * Construct event callbacks.\n */\n const eventCallbacks = this.parseEvents();\n\n Object.keys(eventCallbacks).forEach((key) => {\n const eventName = key.substring(2).toLowerCase();\n const handler = eventCallbacks[key];\n\n this.AMapEventListeners.push(\n window.AMap.event.addListener(this.marker, eventName, handler),\n );\n });\n }", "function _EventHandlerBase() {\n\t// constructor\n\t// handlers are stored in this.handlers[ name ]\n\t// and are always arrays (so multiple can be defined for a given event)\n}", "function bind(eventName, handler) {\n\t\t\t_this.on(eventName, handler);\n\t\t\tbindTuples.push([ eventName, handler ]);\n\t\t}", "function bind(eventName, handler) {\n\t\t\t_this.on(eventName, handler);\n\t\t\tbindTuples.push([ eventName, handler ]);\n\t\t}", "function bind(eventName, handler) {\n\t\t\t_this.on(eventName, handler);\n\t\t\tbindTuples.push([ eventName, handler ]);\n\t\t}", "function bind(eventName, handler) {\n\t\t\t_this.on(eventName, handler);\n\t\t\tbindTuples.push([ eventName, handler ]);\n\t\t}", "addHandler(handler) {\n if (Handler.validate(handler)) {\n this.handlers[handler.id] = handler;\n }\n }", "selfAssignHandlerFunctions() {\n this.request = this.api.request.bind(this.api);\n this.addRateLimitService = this.api.addRateLimitService.bind(this.api);\n this.addRequestService = this.api.addRequestService.bind(this.api);\n }", "function normalizeEventName (eventName) {\n\t if (eventName.indexOf('on') !== 0) {\n\t if (eventName[0] !== eventName[0].toUpperCase()) {\n\t eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n\t }\n\t else {\n\t eventName = 'on' + eventName;\n\t }\n\t }\n\t return eventName;\n\t }", "function bindMultiple(elements, event, handler) {\n\t\tvar ind = elements.length;\n\n\t\twhile(ind--) {\n\t\t\telements[ind][event] = function(event) {\n\t\t\t\thandler(this, event);\n\t\t\t};\n\t\t}\n\t}", "function normalizeEventName(eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function off(name, handler) {\n var handlers = registry.get(getNameParts(name));\n var idx = handlers ? handlers.indexOf(handler) : -1;\n\n if (idx >= 0) {\n handlers.splice(idx, 1);\n }\n }", "function normalizeEventName (eventName) {\r\n if (eventName.indexOf('on') !== 0) {\r\n if (eventName[0] !== eventName[0].toUpperCase()) {\r\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\r\n }\r\n else {\r\n eventName = 'on' + eventName;\r\n }\r\n }\r\n return eventName;\r\n }", "function normalizeEventName (eventName) {\r\n if (eventName.indexOf('on') !== 0) {\r\n if (eventName[0] !== eventName[0].toUpperCase()) {\r\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\r\n }\r\n else {\r\n eventName = 'on' + eventName;\r\n }\r\n }\r\n return eventName;\r\n }", "function normalizeEventName (eventName) {\r\n if (eventName.indexOf('on') !== 0) {\r\n if (eventName[0] !== eventName[0].toUpperCase()) {\r\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\r\n }\r\n else {\r\n eventName = 'on' + eventName;\r\n }\r\n }\r\n return eventName;\r\n }", "_registerHandlers(target, becameInvalid, becameValid) {\n this.on('becameInvalid', target, becameInvalid);\n this.on('becameValid', target, becameValid);\n }", "bind(event, handler) {\n switch (event) {\n case EVENT_TYPES.ADD_SHAPE: {\n this.background.click = ($event) => {\n handler(this._getRandomShapeData($event.data.global));\n };\n break;\n }\n case EVENT_TYPES.GRAVITY_UPDATE: {\n this.$gravity.addEventListener('input', ($event) => {\n handler($event.target.value);\n });\n break;\n }\n case EVENT_TYPES.SHAPES_PER_SECOND_UPDATE: {\n this.$shapesPerSecond.addEventListener('input', ($event) => {\n handler($event.target.value);\n });\n break;\n }\n default: return;\n }\n }", "function normalizeEventName(eventName) {\n\t if (eventName.indexOf('on') !== 0) {\n\t if (eventName[0] !== eventName[0].toUpperCase()) {\n\t eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n\t } else {\n\t eventName = 'on' + eventName;\n\t }\n\t }\n\t return eventName;\n\t }", "function normalizeEventName(eventName) {\n\t if (eventName.indexOf('on') !== 0) {\n\t if (eventName[0] !== eventName[0].toUpperCase()) {\n\t eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n\t } else {\n\t eventName = 'on' + eventName;\n\t }\n\t }\n\t return eventName;\n\t }", "function createAutoBindPairs() {\n\t var __reactAutoBindPairs = [];\n\n\t for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n\t var name = current.__reactAutoBindPairs[i];\n\t var method = proxy[name];\n\n\t if (typeof method === 'function') {\n\t __reactAutoBindPairs.push(name, method);\n\t }\n\t }\n\n\t return __reactAutoBindPairs;\n\t }", "function createAutoBindPairs() {\n\t var __reactAutoBindPairs = [];\n\n\t for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n\t var name = current.__reactAutoBindPairs[i];\n\t var method = proxy[name];\n\n\t if (typeof method === 'function') {\n\t __reactAutoBindPairs.push(name, method);\n\t }\n\t }\n\n\t return __reactAutoBindPairs;\n\t }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "function normalizeEventName (eventName) {\n if (eventName.indexOf('on') !== 0) {\n if (eventName[0] !== eventName[0].toUpperCase()) {\n eventName = 'on' + eventName[0].toUpperCase() + eventName.substring(1);\n }\n else {\n eventName = 'on' + eventName;\n }\n }\n return eventName;\n }", "async function mangle_name(name) {\n return '__' + name;\n}", "function bind(type, fn) {\n\n\t\tif (!fn) {\n\t\t\tfor (var eventName in type) {\n\t\t\t\tif ( type.hasOwnProperty( eventName ) ){\n\t\t\t\t\tfn = type[eventName];\n\t\t\t\t\teventsHash[eventName] = eventsHash[eventName] || [];\n\t\t\t\t\teventsHash[eventName].push(fn);\n\t\t\t\t\tcheckCachedEvents(eventName, fn);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\teventsHash[type] = eventsHash[type] || [];\n\t\t\teventsHash[type].push(fn);\n\t\t\tcheckCachedEvents(type, fn);\n\t\t}\n\t}", "function bindOn(events, handler, sketchBinder) {\n var sketch = this.getSketch(),\n pageId = sketch.getCurrentPageId(),\n eventList = events.split(' '); // space separated event types\n \n // loop over each gobj in the matched set\n this.each( function(ix, gobj) {\n // loop over each eventType\n $.each(eventList, function(ix, eventType) {\n // bind the the gobj/eventType to handler\n sketchBinder.call(sketch.document, pageId, gobj.id, eventType, handler);\n });\n });\n }", "function getEventHandlerNames(tmplData) { // 195\n return _.filter(Object.keys(tmplData), function (opt) { // 196\n return opt.indexOf('_on') === 0 && // Include if '_on...' // 197\n _.isFunction(tmplData[opt]); // and handler is indeed a function // 198\n }); // 199\n}", "function createAutoBindPairs() {\n var __reactAutoBindPairs = [];\n\n for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n var name = current.__reactAutoBindPairs[i];\n var method = proxy[name];\n\n if (typeof method === 'function') {\n __reactAutoBindPairs.push(name, method);\n }\n }\n\n return __reactAutoBindPairs;\n }", "function createAutoBindPairs() {\n var __reactAutoBindPairs = [];\n\n for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n var name = current.__reactAutoBindPairs[i];\n var method = proxy[name];\n\n if (typeof method === 'function') {\n __reactAutoBindPairs.push(name, method);\n }\n }\n\n return __reactAutoBindPairs;\n }", "function createAutoBindPairs() {\n var __reactAutoBindPairs = [];\n\n for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n var name = current.__reactAutoBindPairs[i];\n var method = proxy[name];\n\n if (typeof method === 'function') {\n __reactAutoBindPairs.push(name, method);\n }\n }\n\n return __reactAutoBindPairs;\n }", "function createAutoBindPairs() {\n var __reactAutoBindPairs = [];\n\n for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n var name = current.__reactAutoBindPairs[i];\n var method = proxy[name];\n\n if (typeof method === 'function') {\n __reactAutoBindPairs.push(name, method);\n }\n }\n\n return __reactAutoBindPairs;\n }", "function createAutoBindPairs() {\n var __reactAutoBindPairs = [];\n\n for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n var name = current.__reactAutoBindPairs[i];\n var method = proxy[name];\n\n if (typeof method === 'function') {\n __reactAutoBindPairs.push(name, method);\n }\n }\n\n return __reactAutoBindPairs;\n }", "function createAutoBindPairs() {\n var __reactAutoBindPairs = [];\n\n for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n var name = current.__reactAutoBindPairs[i];\n var method = proxy[name];\n\n if (typeof method === 'function') {\n __reactAutoBindPairs.push(name, method);\n }\n }\n\n return __reactAutoBindPairs;\n }", "function createAutoBindPairs() {\n var __reactAutoBindPairs = [];\n\n for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n var name = current.__reactAutoBindPairs[i];\n var method = proxy[name];\n\n if (typeof method === 'function') {\n __reactAutoBindPairs.push(name, method);\n }\n }\n\n return __reactAutoBindPairs;\n }", "function createAutoBindPairs() {\n var __reactAutoBindPairs = [];\n\n for (var i = 0; i < current.__reactAutoBindPairs.length; i += 2) {\n var name = current.__reactAutoBindPairs[i];\n var method = proxy[name];\n\n if (typeof method === 'function') {\n __reactAutoBindPairs.push(name, method);\n }\n }\n\n return __reactAutoBindPairs;\n }", "function eventName(name) {\n if (name.lastIndexOf(eventPrefix, 0) === 0) return name.substr(eventPrefix.length);\n return name;\n } // $.listen is deprecated. Use Parsley.on instead." ]
[ "0.6446479", "0.5982156", "0.59468323", "0.5801778", "0.57824343", "0.5730809", "0.57039785", "0.56157696", "0.56157696", "0.560587", "0.56026125", "0.55877066", "0.55459523", "0.5513133", "0.54940796", "0.5486296", "0.54812366", "0.5460206", "0.5440172", "0.54384565", "0.5438103", "0.5431075", "0.54285246", "0.5421168", "0.5416033", "0.54061157", "0.5361995", "0.5360945", "0.5359428", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.5353029", "0.53461254", "0.5345006", "0.5342803", "0.5340922", "0.5339574", "0.5315446", "0.5288072", "0.5288072", "0.5288072", "0.5288072", "0.52835375", "0.5281009", "0.52806324", "0.5273496", "0.5269572", "0.5265153", "0.5254489", "0.5254489", "0.5254489", "0.5250407", "0.52431995", "0.5240442", "0.5240442", "0.5236886", "0.5236886", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5233826", "0.5227339", "0.5225758", "0.522518", "0.5222437", "0.5215661", "0.5215661", "0.5215661", "0.5215661", "0.5215661", "0.5215661", "0.5215661", "0.5215661", "0.5213187" ]
0.0
-1
returns a list of users filtered by profession, and ordered by city.
function findByProfession(profession, citySortOrder) { var cursor = users.find({profession: profession}, { sort: {city: citySortOrder}}); return Q.ninvoke(cursor, 'toArray'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUsers(term, opt) {\n\t\t\t\t\tvar ajaxOptions = $.extend({\n\t\t\t\t\t\turl: X.T.getRootPath(\"Profiles\") + \"/atom/search.do\",\n\t\t\t\t\t\tcache: false,\n\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\tactiveUsersOnly: true,\n\t\t\t\t\t\t\tsearch: composeUserSearchQuery(term),\n\t\t\t\t\t\t\tps: 25\n\t\t\t\t\t\t}\n\t\t\t\t\t}, opt);\n\t\t\t\t\treturn $.ajax(ajaxOptions);\n\t\t\t\t}", "filterUsers() {\n const search = this.state.search.toLowerCase();\n \n return this.state.users.filter(user => {\n return (\n user.firstName.toLowerCase().includes(search) ||\n user.lastName.toLowerCase().includes(search)\n )\n })\n }", "function getCities(users) {\n if (!users) throw new Error(\"users is required\");\n\n let cities = users.map(n => n.data.city.displayName);\n return cities;\n}", "async getUsers(filter) {\n return await User.find({}, null, filter).\n select('-password -__v').\n populate('posts')\n }", "function getRoomUsers(room) {\n return users.filter(user => user.room === room);\n}", "function getAllUsersFromRoom(room){\n users_in_room = [];\n users.forEach(element => {\n if(element.room == room){\n users_in_room.push(element);\n }\n });\n return users_in_room;\n}", "getUserList(room){\n var users = this.users.filter((user)=> user.room === room); /* FINDING USER WITH SAME ROOM NAME */\n var namesArray = users.map((user)=> user.name); /* SELECTING USER NAMES IN THAT ROOM */\n\n return namesArray;\n }", "function users(u) {\n let usersArray = []\n u.forEach(function (element) {\n usersArray = [...usersArray, new Object({\n name: element.name,\n email: element.email,\n company: element.company.name\n })]\n });\n\n order(usersArray)\n\n return usersArray\n}", "async allUsers({ sortField, sortOrder = 'asc', page, perPage = 25, filter = {} }, info) {\n let items = [...mockData['users']];\n\n return this.filter(items, { sortField, sortOrder, page, perPage, filter });\n }", "function getUsers(params, callback) {\n var github = GithubSession.connect(params.accessToken);\n var respondWith = formatJsend.respondWith(callback);\n\n github.repos.getCollaborators({\n user: params.userName,\n repo: params.urlName\n }, function(err, collaborators) {\n if (err) { return respondWith(err); }\n\n collaborators = collaborators.map(translator.toBpUser);\n respondWith({ users: collaborators });\n });\n}", "function findAllUsers(callback) {\n \treturn fetch(this.url)\n .then(function(response) {\n return response.json();\n });\n }", "function filterUsers() {\n var usersIds = getUsersId();\n return allUsers.map(function(el) {\n if (!el.universal && usersIds.indexOf(el.id) < 0) {\n return el;\n }\n });\n }", "function findAllUsers() {\n return fetch(self.url).then(response => response.json())\n }", "function getUsers(json) { return json.map(function (obj){ return obj.user; } ); }", "function getUsers() {\n subscribeService.getUsersContent()\n .then(function(data) {\n vm.data = data.slice(0, vm.data.length + 3);\n });\n }", "function filterUsers(searchString) {\n vm.users = [];\n vm.allUsers.forEach((user) => {\n if(user.username.indexOf(searchString) !== -1){\n vm.users.push(user);\n }\n });\n }", "async searchOrdersByCity(body){\n let arrayOrders = [];\n let city = body.city;\n let allUsers = await User.findAll({where: {city}});\n for (let j in allUsers){\n let allOrders = await Order.findAll({where: {userId: allUsers[j].id}});\n for (let i in allOrders) {\n arrayOrders.push(allOrders[i]);\n }\n }\n return arrayOrders;\n }", "function getUsers(req, res, next){\r\n\r\n\tUser.find()\r\n\t.where({privacy: false})\r\n\t.exec(function(err, results){\r\n\t\tif(err){\r\n\t\t\tres.status(500).send(\"Error Getting all the users that have a private set to false => \" + err);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconsole.log(\"Found \" + results.length + \" matching people on the mongoose.\");\r\n\t\tres.status(200).render(\"pages/getUsers\", {users: results , id:req.session.userId});\r\n\t\treturn;\r\n\t});\r\n\r\n}", "function filterUsers(usertype, userrank, unconfirmed, gmaillogin, mentor, multipleprojects, selectedusertype, selecteduserrank, SelectedProject, userproject) {\n //alert(\"gg\");\n vm.filteredusers = vm.allusers;\n\n // n^2\n if (SelectedProject && userproject) {\n //alert(\"not null SelectedProject\");\n studentsArray = [];\n\n vm.filteredusers.forEach(function (obj) {\n SelectedProject.members.forEach(function (obj2) {\n //alert(obj.email);\n //alert(obj2);\n\n // user is in project we selected\n if (obj.email == obj2) {\n studentsArray.push(obj);\n //alert(obj.email);\n }\n\n });\n });\n\n vm.filteredusers = studentsArray;\n }\n\n if (usertype && selectedusertype) {\n usertype = selectedusertype.name;\n var tempArray = [];\n vm.filteredusers.forEach(function (obj) {\n if (obj.userType == usertype) {\n tempArray.push(obj);\n }\n });\n vm.filteredusers = tempArray;\n }\n if (userrank && selecteduserrank) {\n userrank = selecteduserrank;\n var tempArray = [];\n vm.filteredusers.forEach(function (obj) {\n if (obj.userRank == userrank) {\n tempArray.push(obj);\n }\n });\n vm.filteredusers = tempArray;\n }\n if (unconfirmed) {\n var tempArray = [];\n vm.filteredusers.forEach(function (obj) {\n if (obj.piApproval == false) {\n tempArray.push(obj);\n }\n });\n vm.filteredusers = tempArray;\n }\n if (gmaillogin) {\n var tempArray = [];\n vm.filteredusers.forEach(function (obj) {\n if (obj.google) {\n tempArray.push(obj);\n }\n });\n vm.filteredusers = tempArray;\n }\n if (mentor) // O(n^3) Very slow.\n {\n var tempArray = [];\n vm.filteredusers.forEach(function (obj) {\n vm.projects.forEach(function (proj) {\n var full = obj.firstName + \" \" + obj.lastName;\n if (proj.owner_name == full && tempArray) {\n var contains;\n tempArray.forEach(function (temp) {\n var full2 = temp.firstName + \" \" + temp.lastName;\n if (full2 == full) {\n contains = true;\n }\n });\n if (!contains) {\n tempArray.push(obj);\n }\n }\n else if (proj.owner_name == full) {\n tempArray.push(obj);\n }\n });\n });\n vm.filteredusers = tempArray;\n }\n if (multipleprojects) // O(n^3) Very slow.\n {\n var tempArray = [];\n\n vm.filteredusers.forEach(function (obj) {\n var counter = 0;\n if (obj.joined_project == true) {\n vm.projects.forEach(function (proj) {\n proj.members.forEach(function (email) {\n if (email == obj.email) {\n counter++;\n if (counter > 1) {\n if (tempArray) {\n var contains;\n tempArray.forEach(function (temp) {\n var full = obj.firstName + \" \" + obj.lastName;\n var full2 = temp.firstName + \" \" + temp.lastName;\n if (full2 == full) {\n contains = true;\n }\n });\n if (!contains) {\n tempArray.push(obj);\n }\n }\n else {\n tempArray.push(obj);\n }\n }\n }\n });\n });\n }\n });\n vm.filteredusers = tempArray;\n }\n }", "function getUsersInRoom(room){\n users.filter((user) => user.room === room);\n}", "getUserList(room) {\n var users = this.users.filter((user) => user.room === room); // when returning true array keeps user row in array\n \n // covert array of objects to array of strings(the names)\n var namesArray = users.map((user) => user.name);\n return namesArray;\n }", "function getPlayers(filter) {\n currentPlayers = []\n\n var endpoint = \"/player\";\n switch (filter.timespan) {\n case \"This month\": endpoint += \"/month\"; break;\n case \"This week\": endpoint += \"/week\"; break;\n case \"Today\": endpoint += \"/today\"; break;\n }\n\n getPlayersFilter(endpoint);\n\n var aux = [];\n\n if (filter.search) {\n currentPlayers.forEach(function (current) {\n if (current.username.toLowerCase().includes(filter.search.toLowerCase())) {\n aux.push(current);\n return;\n }\n });\n\n currentPlayers = aux;\n }\n}", "async function getUsers(page = 1){\n const offset = helper.getOffset(page, config.listPerPage);\n const rows = await db.query(\n `SELECT id, first_name, last_name, user_name, checkedout_books, overdue_books\n FROM Users LIMIT ?,?`,\n [offset, config.listPerPage]\n );\n const users = helper.emptyOrRows(rows)\n const meta = {page}\n \n return{\n users,\n meta\n }\n }", "function findAllUsers() {\n return fetch('https://wbdv-generic-server.herokuapp.com/api/alkhalifas/users')\n .then(response => response.json())\n }", "function getUsers(cb) {\n const users = app.get('users');\n\n // Return a copy of the data\n const foundUsers = users.map(function(user) {\n return Object.assign({}, user);\n });\n\n debug(`#getUsers: found users: ${JSON.stringify(foundUsers, 0, 2)}`);\n return cb(null, foundUsers);\n}", "function get_users(){\n\tconst q = datastore.createQuery(USER);\n\treturn datastore.runQuery(q).then( (entities) => {\n\t\t\treturn entities[0].map(ds.fromDatastore);\n\t\t});\n}", "get usersWithCar() {\n\t\treturn this.users.filter(user => user.car !== false);\n\t}", "function getUsers() {\n return users.map(user => ({\n id: user.id,\n username: user.username,\n email: user.email,\n gender: user.gender,\n address_street: user.address.street,\n address_city: user.address.city,\n address_state: user.address.state,\n address_zip: user.address.zip,\n password: crypto.createHash('sha256').update(faker.internet.password(10)).digest('hex'),\n created_at: new Date().toISOString(),\n updated_at: new Date().toISOString(),\n is_admin: user.isAdmin\n }));\n}", "function getUsers() {\n fetch(userUrl)\n .then((res) => res.json())\n .then((users) => {\n sortUsers(users);\n displayLeaderBoard();\n })\n .catch((error) => console.error(\"ERROR:\", error));\n }", "function getAllProgrammers(myObj){\n\tresult = [];\n\tmyObj.forEach(function (item){\n\t\tif(item.occupation == 'Programmer')\n\t\t\tresult.push(item);\n\t});\n result = result.sort(function(a,b){return ('' + a.age).localeCompare(b.age)});\n result = result.reverse();\n\treturn result;\n}", "function getUsers() {\n\tif (ite <= 40) {\n\t\tsetTimeout(() => {\n\t\t\tite += 1;\n\t\t\tinit().then(() => {\n\t\t\t\tgetUsers();\n\t\t\t});\n\t\t}, 600000);\n\t}\n\n\tconst options = {\n\t\t'method': 'GET',\n\t\t'hostname': 'api.intra.42.fr',\n\t\t'path': '/v2/cursus/21/users/?access_token=' + accessToken.token.access_token + '&per_page=100&filter[primary_campus_id]=1&page=' + ite + '&filter[staff?]=false&sort=-pool_year&range[pool_year]=0,3000'\n\t};\n\tconst req = https.request(options, (res) => {\n\t\tlet data;\n\t\tres.on(\"data\", d => {\n\t\t\tdata += d;\n\t\t});\n\t\tres.on(\"end\", () => {\n\t\t\tconst json = JSON.parse(data.substring(9));\n\t\t\tjson.map((j) => {\n\t\t\t\tuserIds.push(j.id);\n\t\t\t});\n\t\t\tconsole.log('\\x1b[32mFetched ' + userIds.length + ' students ids\\x1b[0m');\n\t\t\tgetUsersInfo();\n\t\t});\n\t});\n\treq.end();\n}", "function findAllUsers() {\n userService\n .findAllUsers()\n .then(renderUsers);\n }", "function listUsers(req, res) {\n if (req == null || req.query == null) {\n return utils.res(res, 400, 'Bad Request');\n }\n\n if (req.user_id == null) {\n return utils.res(res, 401, 'Invalid Token');\n }\n\n try {\n // Pagination\n const range = JSON.parse(req.query.range);\n const r0 = range[0], r1 = range[1] + 1;\n\n // Sort\n const sorting = JSON.parse(req.query.sort);\n const sortPara = sorting[0];\n const sortOrder = sorting[1];\n\n // Filter\n const filter = JSON.parse(req.query.filter);\n } catch (err) {\n return utils.res(res, 400, 'Please provide appropriate range, sort & filter arguments');\n }\n\n\n let qFilter = JSON.parse(req.query.filter);\n let filter = {};\n if (!(qFilter.user_id == null) && typeof (qFilter.user_id) === 'string') filter['user_id'] = { $regex: qFilter.user_id, $options: 'i' };\n\n // Fetch User lists\n models.User.find(filter, 'user_id name email age university total_coins cyber_IQ role')\n .lean()\n .exec(function (err, users) {\n if (err) {\n return utils.res(res, 500, 'Internal Server Error');\n }\n\n if (users == null) {\n return utils.res(res, 404, 'Users do not Exist');\n }\n users.map(u => {\n u['id'] = u['user_id'];\n delete u['user_id'];\n delete u['_id'];\n if (!u['university']) {\n u['university'] = 'NA';\n }\n return u;\n });\n\n // Pagination\n const range = JSON.parse(req.query.range);\n const len = users.length;\n const response = users.slice(range[0], range[1] + 1);\n const contentRange = 'users ' + range[0] + '-' + range[1] + '/' + len;\n\n // Sort\n const sorting = JSON.parse(req.query.sort);\n let sortPara = sorting[0] || 'name';\n let sortOrder = sorting[1] || 'ASC';\n if (sortOrder !== 'ASC' && sortOrder != 'DESC') sortOrder = 'ASC';\n\n res.set({\n 'Access-Control-Expose-Headers': 'Content-Range',\n 'Content-Range': contentRange\n });\n return utils.res(res, 200, 'Retrieval Successful', utils.sortObjects(response, sortPara, sortOrder));\n })\n}", "function getUsers(book) {\n users = book.users.map(user => user.username)\n}", "getUsersNearProtest(protestName, distance) {\n let protest = this.find(db.protests, protestName);\n let protesters = this.getNearBy(this.toGeo(protest.location), db.protesters, distance * 1609.34);\n if (protesters)\n return protesters.map((protester) => protester.name + \": \" + protester.email);\n return null;\n }", "function getAllUsers() {\n var getUser = partial(getValue, relationsCache);\n return map(getUser, Object.keys(relationsCache));\n}", "function getUsers() {\n\n intakeTaskAgeDatalayer.getUsersInFirm()\n .then(function (response) {\n self.allUser = response.data;\n }, function (error) {\n notificationService.error('Users not loaded');\n });\n }", "function getAllUsers() {\n return User.find({}).select({username: \"test\", email: \"[email protected]\", whitelisted: true});\n}", "function peeps() {\n userlist = [];\n for (var uid in users) {\n userlist.push(users[uid].name);\n }\n return userlist;\n}", "giveValidUsers(employees) {\n\t\tif (this.props.role === 'chief') {\n\t\t\treturn employees.filter(employee => {\n\t\t\t\tif (this.props.departmanID === employee.departmanID) return true;\n\t\t\t});\n\t\t} else {\n\t\t\t// give all amployee's\n\t\t\treturn employees;\n\t\t}\n\t}", "async getAllUsers() {\r\n\r\n const userCollection = await usersList();\r\n const listOfUsers = await userCollection.find().toArray();\r\n\r\n\r\n allusers = [];\r\n oneUser = {};\r\n\r\n //NM - Corrected spelling of orientation, added email and contact_info attributes\r\n for (var val of listOfUsers) {\r\n oneUser = {};\r\n oneUser._id = val._id;\r\n oneUser.user_id = val.user_id;\r\n oneUser.name = val.name;\r\n oneUser.hashedPassword = val.hashedPassword;\r\n oneUser.dob = val.dob;\r\n oneUser.gender = val.gender;\r\n oneUser.activity = val.activity;\r\n oneUser.location = val.location;\r\n oneUser.occupation = val.occupation;\r\n oneUser.email = val.email;\r\n oneUser.weight = val.weight;\r\n oneUser.activity = val.activity;\r\n allusers.push(oneUser);\r\n }\r\n\r\n return allusers;\r\n }", "function getUsers(data){\n users = JSON.parse(data).results;\n renderUsers();\n}", "function getUsersToShow(sorting){\n sortUsers(sorting);\n return gUsers;\n}", "function getUsersWithAlbums() {\n const typesPerUser = getAlbumList().reduce((acc, album) => {\n const { user_id, type } = album;\n acc[user_id] = [...(acc[user_id] || []), type];\n return acc;\n }, {});\n return Object.entries(typesPerUser)\n .filter(([userId, types]) => {\n return (\n types.includes('PUBLIC') &&\n types.includes('RESTRICTED') &&\n types.includes('PRIVATE')\n );\n })\n .map(([userId, types]) => getUser(userId));\n}", "function getUsers() {\n User.query(function(data){\n return self.all = data.users;\n });\n }", "function getUsers() {\n return userService.getUsers().then(function(data) {\n vm.users = data;\n vm.loading = false;\n return vm.users;\n });\n }", "function getAllRegUser(){\n var filter = {};\n $scope.regUsers = [];\n userSvc.getUsers(filter).then(function(data){\n data.forEach(function(item){\n if(item.email)\n $scope.regUsers[$scope.regUsers.length] = item;\n });\n })\n .catch(function(err){\n Modal.alert(\"Error in geting user\");\n })\n }", "function findUsers(input){\n var users = getUsers();\n var preList = [];\n\n $.each(users, function(index, user){\n if( user.name.includes(input) )\n preList.push(user);\n });\n renderUsers(preList);\n}", "function filteredByCollege(players, college) {\n\n for (i=0; i<players.length; i++) {\n if (players[i].collegeName.localeCompare(college) == 0) {\n\n let first = players[i].firstName\n let last = players[i].lastName\n let id = players[i].playerId\n\n let player = new Player(String(first), String(last), id)\n playersModel.push(player)\n }\n }\n}", "function userList(req, res) {\n const obj = {};\n\n if (req.body.filterData && req.body.filterData.favourites && req.body.filterData.favourites === true) {\n obj.is_favourite = req.body.filterData.favourites;\n }\n if (req.body.filterData && req.body.filterData.divisions && req.body.filterData.divisions !== \"ALL\" && req.body.filterData.divisions !== \"\") {\n obj.division_id = req.body.filterData.divisions;\n }\n if (req.body.filterData && req.body.filterData.groups && req.body.filterData.groups !== \"ALL\" && req.body.filterData.groups !== \"\") {\n obj.group = req.body.filterData.groups;\n }\n if (req.body.filterData && req.body.filterData.groups && req.body.filterData.startswith !== \"ALL\" && req.body.filterData.startswith !== \"\") {\n obj.name = new RegExp(`^${req.body.filterData.startswith}`, \"i\");\n }\n let skipdata = 0;\n let limitdata = 0;\n if (req.body.filterData.skip && req.body.filterData.skip !== null && parseInt(req.body.filterData.skip) > 0) {\n skipdata = req.body.filterData.skip;\n }\n if (req.body.filterData.limit && req.body.filterData.limit !== null && parseInt(req.body.filterData.limit) > 0) {\n limitdata = req.body.filterData.limit;\n }\n\n const select = \"placeofSupply status_inward status_outward name normalized_name mobile_no is_favourite email_id\";\n\n CustomerModel.find(obj, select).sort({normalized_name: \"asc\"}).skip(skipdata).limit(limitdata)\n .exec((err, data) => {\n if (err) {\n res.status(499).send({message: errorhelper.getErrorMessage(err)});\n } else {\n res.json(data);\n }\n });\n}", "retrieveYoungestUsers() {\n /* \n An array of users that are queried by:\n - sorting age in ascending order\n - filtering for users with valid phone numbers\n - limiting array size to 5\n */\n let youngestUsersArray = Object.keys(this.state.users)\n .sort( (a, b) => {\n // Sort by age\n const userAge1 = this.state.users[a].age;\n const userAge2 = this.state.users[b].age;\n return userAge1 - userAge2;\n })\n .filter( key => {\n // Filter by valid telephone number\n // Format: 555-555-5555\n const number = this.state.users[key].number;\n return (number !== \"\") && (/^[0-9]{3}[-][0-9]{3}[-][0-9]{4}$/.test(number));\n })\n .slice(0, 5);\n\n youngestUsersArray.forEach( id => {\n const sortedUsers = {...this.state.sortedUsers};\n sortedUsers[id] = this.state.users[id];\n this.setState({ sortedUsers })\n });\n }", "function getList(){\n\t\t// call ajax\n\t\tlet url = 'https://final-project-sekyunoh.herokuapp.com/get-user';\n\t\tfetch(url)\n\t\t.then(checkStatus)\n\t\t.then(function(responseText) {\n\t\t\tlet res = JSON.parse(responseText);\n\t\t\tlet people = res['people'];\n\t\t\tdisplayList(people);\n\t\t})\n\t\t.catch(function(error) {\n\t\t\t// show error\n\t\t\tdisplayError(error + ' while getting list');\n\t\t});\n\t}", "function searchUsers(requestingUser, searchTerm){\n let results = [];\n\n //If the user is not valid, return an empty array.\n //You could return null to indicate an error or any other value to signify the requesting user was not valid.\n if(!isValidUser(requestingUser)){\n return results;\n }\n\n //If users was an array, you could use a nice one line filter function call\n for(username in users){\n let user = users[username];\n //If this user matches the search term\n if(user.username.toLowerCase().indexOf(searchTerm.toLowerCase()) >= 0){\n //If the requesting user is allowed to access the matching user\n if(user.username === requestingUser.username || requestingUser.friends.includes(user.username)){\n results.push(user);\n }\n }\n }\n\n return results;\n}", "function getUserList(data) {\n\tvar list = [];\n\tdata.forEach(element => {\n\t\tif (element.name) {\n\t\t\tlist.push({\n\t\t\t\tname: element.name,\n\t\t\t\tgift: element.gift\n\t\t\t});\n\t\t}\n\t\tif (element.spouse) {\n\t\t\tlist.push({\n\t\t\t\tname: element.spouse,\n\t\t\t\tgift: element.spouse_gift\n\t\t\t});\n\t\t}\n\t});\n\treturn list;\n}", "function getUserList(data) {\n\tvar list = [];\n\tdata.forEach(element => {\n\t\tif (element.name) {\n\t\t\tlist.push({\n\t\t\t\tname: element.name,\n\t\t\t\tgift: element.gift\n\t\t\t});\n\t\t}\n\t\tif (element.spouse) {\n\t\t\tlist.push({\n\t\t\t\tname: element.spouse,\n\t\t\t\tgift: element.spouse_gift\n\t\t\t});\n\t\t}\n\t});\n\treturn list;\n}", "async getUsers({ commit, dispatch }) {\n const client = await dispatch(\"gqlClient\", true);\n const data = await client.request(`\n query {\n users {\n id\n name\n email\n approved\n }\n }`);\n if (data.users) {\n return data.users;\n } else {\n return null;\n }\n }", "function getProjectMemebers(users){\n var users_to_be_returned = [];\n var y;\n for (y in users) {\n if(users[y].ProjectUser.active === true){\n users_to_be_returned.push({\n id: users[y].id,\n email: users[y].email,\n profilePicture: users[y].profilePicture,\n firstName: users[y].firstName,\n lastName: users[y].lastName,\n fullName: users[y].firstName + ' ' + users[y].lastName,\n alias: users[y].alias,\n createdAt:users[y].createdAt\n });\n }\n }\n return users_to_be_returned;\n}", "function getUsers() {\n return userService.getUsers().then(function (data) {\n vm.users = data;\n return vm.users;\n })\n }", "function getUsers(){\n\t\t\tgetUsersService.getUserList().then(function(data){\n\t\t\t\tlc.listOfUser = data;\n\t\t\t})\n\t\t\t.catch(function(message){\n\t\t\t\texception.catcher('getUserList Service cannot succeed')(message);\n\t\t\t});\n\t\t}", "function filterByCity(city) {\n return contacts.filter(function (contact) {\n return contact.address.city === city;\n });\n}", "function getUsers(users) {\n\tconst userList = JSON.parse(users);\n\tgetRepos(userList);\n\tdisplayUser(userList)\n}", "users(parent, args, { db }, info) {\n\n // no query: return all users\n if (!args.query) {\n return db.users;\n }\n\n // query: search for matches of query string with the user name and return filtered array\n return db.users.filter(user => user.name.toLowerCase().includes(args.query.toLowerCase()));\n\n }", "function getUsers(){\n return users;\n}", "GetUsersList(room){\n var users = this.users.filter((user) => user.room === room );\n \n var namesArray = users.map((user) => user.name );\n \n let NamesArray = namesArray;\n\t\tlet newNamesArray = Array.from(new Set(NamesArray));\n\t//\tconsole.log(newNamesArray);\n\t\treturn newNamesArray;\n }", "async function getUsers() {\n const response = await api.get(`/users/?_sort=id&_order=desc`);\n\n if (response.data) {\n setCompletedListUsers(response.data);\n setListUsers(response.data);\n refreshCountPages(response.data);\n }\n }", "function searchUsers(toSearch, regex) {\n return new Promise((resolve, reject) => {\n User.find({}, 'name surname email role image google_signed')\n .or([{ name: regex }, { email: regex }, { surname: regex }])\n .exec((err, users) => {\n if (err) {\n reject('Error al buscar usuarios errors: ', err);\n } else {\n resolve(users);\n }\n });\n });\n }", "function getCities(userSearch, cities) { // arguments are user input and cities array\n return cities.filter(place => { // filtering the array need to return here\n const regex = new RegExp(userSearch, 'gi'); // find where ever it will match with Regex\n return place.city.match(regex)}); // matching the regex and city name (includes doesn't work) need to return here too\n}", "function fetchUsers() {\n skygear.publicDB.query(\n new skygear.Query(skygear.UserRecord)\n .contains('_id', this.props.conversation.participant_ids)\n ).then(userList => {\n const {title} = this.props.conversation;\n let names = userList\n .filter(u => u._id !== skygear.currentUser.id)\n .map(u => u.displayName)\n .join(', ');\n if (names.length > 30) {\n names = names.substring(0,27) + '...';\n }\n const users = {};\n userList.forEach(u => users[u._id] = u);\n this.setState({\n users,\n title: title || names,\n });\n });\n}", "async findAll() {\n const users = await fetch(\n \"https://run.mocky.io/v3/f7f2db83-197c-4941-be3e-fffd2ad31d26\"\n )\n .then((r) => r.json())\n .then((data) => {\n const list = [];\n data.map((row) => {\n let user = new User();\n user.id = row.id;\n user.fullName = row.name;\n user.email = row.email;\n user.avatar = row.avatar;\n list.push(user);\n });\n\n return list;\n });\n\n return users;\n }", "function getUsers(users){\n\tlet user = [];\n\tfor (let i in users){\n\t\tuser.push(users[i]);\n\t}\n\treturn user;\n}", "function getUsers() {\n\treturn fetch(userURL).then((resp) => resp.json())\n}", "function getUsersByType(type, case_insensitive) {\n return getUserByProperty('type', type, false, true, case_insensitive);\n}", "async retrieveUsers(){cov_1m9telhrda.f[14]++;const _users=(cov_1m9telhrda.s[163]++,await User.find({}));const users=(cov_1m9telhrda.s[164]++,_users.map(user=>{cov_1m9telhrda.f[15]++;cov_1m9telhrda.s[165]++;return{name:user.name,id:user._id,email:user.email};}));cov_1m9telhrda.s[166]++;return users;}", "function getUsers() {\n return Object.values(usersDictById);\n }", "function getUserList() {\n userService.getUsers()\n .then(function (users) {\n var result = users.filter(function (u) {\n return u.Id !== vm.current.details.ownerId;\n });\n vm.ownerForm.users = result;\n });\n }", "function getUserList(){\n\tvar userList = [];\n\tfor(var i in users)\n\t\tif(!(users[i].socket.isPaired))\n\t\tuserList.push({\"name\":users[i].socket.name});\n\treturn userList;\n}", "function fetchAllUsers() {\n var users = [{\n firstName: \"Scott\",\n lastName: \"Jason\",\n email: \"[email protected]\",\n hair: \"blone\",\n hasTwoFirstNames: true\n }, {\n firstName: \"Austin\",\n lastName: \"Bourdier\",\n email: \"[email protected]\",\n hair: \"brown\",\n hasTwoFirstNames: false\n }, {\n firstName: \"Jessica\",\n lastName: \"Raynes\",\n email: \"[email protected]\",\n hair: \"blonde\",\n hasTwoFirstNames: false\n }];\n return function renderUsers() {\n return users;\n };\n}", "findAll() {\n return users;\n }", "function getTotalUsers (room){\n\n\n \n room = room.trim().toLowerCase()\n let usersInRoom= users.filter((u)=>{return u.room===room});\n\n \n return usersInRoom;\n}", "async function getUsers() {\n const allUsers = await User.findAll();\n return allUsers.map((user) => user.get({ plain: true }));\n}", "function get_users(){\n var q = datastore.createQuery(USERS);\n\n return datastore.runQuery(q).then( (entities) => {\n return entities;\n });\n}", "async function loadUpUsers() {\n console.log(`Searching for: ${search}`);\n let fetchURL = `https://randomuser.me/api/?results=${fetchAmount}`;\n const natSTR = `&nat=${nations}`;\n \n fetchURL = nations.length > 0 ? fetchURL.concat(natSTR) : fetchURL\n\n const res = await fetch(fetchURL);\n\n return await res.json();\n }", "function getUserList() {\n \n return userList;\n }", "function getallusers() {\n\n\t}", "async allMeetingUsers({ sortField, sortOrder = 'asc', page, perPage = 25, filter = {} }, info) {\n let items = [...mockData['meeting_users']];\n\n return this.filter(items, { sortField, sortOrder, page, perPage, filter });\n }", "function getMultiple(filter = {}) {\n return db('users')\n .where(filter);\n}", "function fetchMembers () {\n return fetch('http://104.154.65.204:5000/api/member_list').then(response => response.json()).then(filterMembers)\n}", "function getUsers(query) {\n if ($scope.data.ACL.users.length) {\n var args = {\n options: {\n classUid: 'built_io_application_user',\n query: query\n }\n }\n return builtDataService.Objects.getAll(args)\n } else\n return $q.reject({});\n }", "function getUsers() {\n let url = 'https://itrex-react-lab-files.s3.eu-central-1.amazonaws.com/react-test-api.json';\n return fetch(url)\n .then((resp) => resp.json())\n .then(mainFunc)\n .catch(err => alert('Failed to load data.'));\n }", "function getUser(json, url) {\n if (url.query.id) {\n\treturn getUsers(json).filter(function (obj){ return obj.id == url.query.id; });\n }\n}", "function loadPersonsInSearch(){\n\t$('#oPersons').html(\"\");\n\t$.ajax({\n\t\ttype: 'GET',\n\t\turl: '/employerDB/busqueda-personas'\n\t}).done(function(data){\n\t\tfor(let i=0; i<data.length; i++){\n\t\t\t$('#oPersons').append(\n\t\t\t\"<div class='card'><div class='card-header'>\"+\"Id: \" +JSON.stringify(data[i].email) +\"</div><div class=\"+\"card-body\"+\">\" + \n\t\t\t\"<h5 class=\"+\"card-title\"+\">\" + JSON.stringify(data[i].name) + \"</h5>\"+\n\t\t\t\"<p class=\"+\"card-text\"+\">\" + JSON.stringify(data[i].skills) +\"</p>\"+\n\t\t\t\"</div></div><br>\");\n\t\t}\n\t});\n}", "filterClubs() {\n const myClubList = _.pluck(this.props.userClubs, 'club');\n const myClubs = _.sortBy(_.flatten(_.map(myClubList, (name) =>\n _.where(this.props.clubs, { nameOfOrganization: name }))), 'nameOfOrganization');\n return myClubs;\n }", "function genPeople(callback) {\n User.find({}).sort({ index: 1 }).exec(function(err, people) {\n if (err)\n return callback(new Error('Error getting users'));\n\n // call next function passing in people\n callback(null, people);\n }); // end User.find\n} // end genPeople", "function listUsers(req, res, next) {\n const privateData = ['password'];\n const offset = parseInt(req.query.offset, 10) || 0;\n const limit = parseInt(req.query.limit, 10) || defaultLimit;\n User.find()\n .skip(offset)\n .limit(limit)\n .omit(privateData)\n .then(users => {\n if (!users.length) {\n return res.status(HTTPStatus.NO_CONTENT).end();\n }\n return res.status(HTTPStatus.OK).send(users);\n })\n .catch(err => next(err));\n}", "function makeUsers() {\n return [\n {\n id: 1,\n username: 'test-user-1',\n password: '$2a$04$ZDFG22FviMhbES4JEcf8Eunwq41NosgRXcW6UxDF4XVMqXqfmaMPS'\n },\n {\n id: 2,\n username: 'test-user-2',\n password: '$2a$04$ivrtYG/o7QMPJg2sm/OiBONlyOHdtkoDdnuthNCWRqtdlxNPWqVNi'\n },\n {\n id: 3,\n username: 'test-user-3',\n password: '$2a$04$pdVG5dylbTSopL7kp7dafexLhfQsvcHwRYR96PBoEoYFEuMDcIlXC'\n },\n {\n id: 4,\n username: 'test-user-4',\n password: '$2a$04$0i1ElGjuUVMiYkrIx.bmeeqt4FfKskzajpZeynPw493CgQHtnC4sK'\n },\n ];\n}", "function listUsers(page, pgSize = 10) {\n}", "function userList() {\n let jsonFileRead = fs.readFileSync(path.join(__dirname, '../data/users.json'), 'utf-8')\n return JSON.parse(jsonFileRead)\n}", "async allUsernames(parent, args, ctx, info) {\n if (!ctx.request.userId) {\n throw new Error(\"You must be logged in to do that!\");\n }\n const users = await ctx.db.query.profiles({}, info);\n const notParticipants = users.filter(\n (user) =>\n user.permissions.includes(\"TEACHER\") ||\n user.permissions.includes(\"STUDENT\") ||\n user.permissions.includes(\"SCIENTIST\")\n );\n return notParticipants;\n }", "function getAllUsers(){\n return UserService.getAllUsers();\n }", "async function filterCourseByDepartmentId(username, allCourses){\n \n const data= await Repositories.getUser(username);\n const user = data.body\n const departmentId = user.department;\n const courseList = [];\n for (course of allCourses){\n \n if (course.department._id.toString() === departmentId){\n courseList.push(course);\n }\n }\n return courseList;\n}" ]
[ "0.6009031", "0.587922", "0.5743411", "0.57241595", "0.56823266", "0.5664023", "0.5639883", "0.55925834", "0.55359656", "0.55140996", "0.5486778", "0.54855555", "0.54660034", "0.54575557", "0.5429201", "0.5426428", "0.54245836", "0.5415212", "0.5406743", "0.54029703", "0.5387054", "0.53700984", "0.53614795", "0.535729", "0.5355276", "0.53548086", "0.5351729", "0.53502786", "0.53479207", "0.5343614", "0.5343439", "0.5331763", "0.5325465", "0.53036785", "0.5303401", "0.5296242", "0.52921104", "0.528133", "0.5277987", "0.52712595", "0.5269552", "0.5266578", "0.5259773", "0.5239858", "0.52317435", "0.5226305", "0.52242357", "0.52196014", "0.5218773", "0.5215501", "0.520709", "0.5206737", "0.5202754", "0.5199344", "0.5199344", "0.5193404", "0.51931506", "0.51837116", "0.5166107", "0.51632744", "0.5160682", "0.5153103", "0.5143904", "0.5140245", "0.51392776", "0.513501", "0.5133515", "0.5124888", "0.51246816", "0.5123281", "0.51184964", "0.5115108", "0.511331", "0.5110212", "0.51086336", "0.5092883", "0.50911885", "0.5081622", "0.5079869", "0.50696826", "0.50691116", "0.5068992", "0.5061765", "0.5060852", "0.50579894", "0.505629", "0.5052635", "0.5041629", "0.50347126", "0.5031843", "0.50312805", "0.5031102", "0.502854", "0.50235206", "0.50220275", "0.5019042", "0.5016732", "0.501082", "0.5006895", "0.5002907" ]
0.72985756
0
As we are using hash based navigation, hack fix to highlight the current selected menu Requires jQuery
function menuFix(slug) { var $ = jQuery; var menuRoot = $('#toplevel_page_' + slug); var currentUrl = window.location.href; var currentPath = currentUrl.substr(currentUrl.indexOf('admin.php')); menuRoot.on('click', 'a', function () { var self = $(this); $('ul.wp-submenu li', menuRoot).removeClass('current'); if (self.hasClass('wp-has-submenu')) { $('li.wp-first-item', menuRoot).addClass('current'); } else { self.parents('li').addClass('current'); } }); $('ul.wp-submenu a', menuRoot).each(function (index, el) { if ($(el).attr('href') === currentPath) { $(el).parent().addClass('current'); return; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function highlightMenu() {\n $('#myNavbar').find('span').removeClass('active-menu');\n $('.submenu-panel li a').each(function() {\n if (curURL.indexOf(this.href) != -1) {\n var submenuId = $(this).closest('.submenu-panel').attr('id');\n var mainMenu = $('#myNavbar').find('li[data-target=' + submenuId + ']');\n $(mainMenu).find('span').addClass('active-menu');\n currentMenu = mainMenu;\n return;\n }\n });\n }", "function selectCurrentMenuItem() {\n //strips protocol and host name from browser href\n var windowHref = window.location.href.replace(/^.*?\\/\\/[^\\/]*/, '');\n \n $(\".menu a\").each(function() {\n if (windowHref == $(this).attr('href')) {\n $(this).parent().addClass('selected');\n }\n });\n}", "function setActiveMenu() {\n var pgurl = window.location.hash;\n var baseUrl = window.location.href;\n $(\"ul.menu li a\").each(function () {\n $(this).removeClass(\"active\");\n var urlMenu = $(this).attr(\"href\");\n if (baseUrl == urlMenu || (pgurl == \"/#/\" & urlMenu == \"/#/\"))\n $(this).parents(\"li\").find('a').addClass(\"active\");\n else if (pgurl.indexOf(urlMenu) >= 0 && urlMenu != \"#/\") {\n $(this).parents(\"li\").find('> a').addClass(\"active\");\n }\n })\n}", "function navigationHighlight(e) {\n $('.pl-nav-elements .pl-link').removeClass('is-current');\n $(this).addClass('is-current');\n }", "function changeActiveMenu(){\n\tvar subpath = window.document.location.pathname;\n\tvar arr = subpath.split('/');\n\tif(arr.length==0)\n\t\treturn;\n\tvar match = false;\n\t$.each(arr, function(pi, pn){\n\t\tif(match) return;\n\t\t$.each($('.menu li'),function(i,n){\n\t\t\tif($(n).attr('data')==pn){\n\t\t\t\t$(n).addClass('current_page_item');\n\t\t\t\tmatch = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$(n).removeClass('current_page_item');\n\t\t\t}\t\t\n\t\t})\n\t});\n}", "function currentMenu(obj){\r\n\t\tvar $active = $(obj);\t\r\n\t\r\n\t\t//Make menu link active\r\n\t\t$('.active').removeClass('active');\t\r\n\t\t$('#menu ul li a[href=#'+$active.attr('id')+']').addClass('active');\r\n\t}", "function HighlightSelectedMenu(val) {\n try {\n //alert('ggg');\n\n $('#cssmenu ul li').each(function () {\n $(this).removeClass('active');\n var Vtype = $(this).find('a').attr('onclick');\n // alert(Vtype);\n if (Vtype != undefined) {\n if (Vtype.indexOf('_') > -1) {\n var V = Vtype.split('_');\n Vtype = V[0];\n }\n // alert('Vtype='+Vtype);\n var VtypeInfo = Vtype.toString().split('(');\n //alert('vtype='+VtypeInfo[1].slice(0, -2));\n // alert('val=' + val);\n if (val.indexOf('_') > -1) {\n var valInfo = val.split('_');\n val = valInfo[0];\n }\n if (val == VtypeInfo[1].slice(0, -2)) {\n //alert('matched');\n $(this).addClass('active');\n }\n }\n })\n }\n catch (e) {\n alert(e);\n }\n}", "function highlight_correct_menu_item(){\n var winTop = $(window).scrollTop();\n for(var i=0;i<menu_position.length;i++){\n if ( winTop >= menu_position[i] && (i == menu_position.length-1 || (i < menu_position.length && winTop < menu_position[i+1]))){\n $('#sidebar #menu li')\n .removeClass('active')\n .eq(i).addClass('active');\n\n $('#slide_menu ul li')\n .removeClass('active')\n .eq(i).addClass('active');\n\n break;\n\n }\n }\n }", "function setSelectedAnchor() {\n var path = window.location.pathname\n var hash = window.location.hash\n\n // Make the nav - link pointing to this path selected\n var selectedBranches = document.querySelectorAll('li.nav-branch.expanded')\n for (var i = 0; i < selectedBranches.length; i++) {\n selectedBranches[i].classList.remove('expanded')\n }\n var selectedAnchors = document.querySelectorAll('a.nav-link.selected')\n for (var i = 0; i < selectedAnchors.length; i++) {\n selectedAnchors[i].classList.remove('selected')\n }\n\n selectedAnchors = document.querySelectorAll('a.nav-link[href$=\"' + path + '\"]')\n if (selectedAnchors.length > 0) {\n let parentLinkNode = selectedAnchors[0].parentNode\n parentLinkNode.classList.add('expanded')\n // Checks if there are sublinks (contains <a> and <ul> elements)\n if (parentLinkNode.children.length === 1) {\n // Closes menu if there are no sublinks\n window.dispatchEvent(new Event('link-click'))\n }\n }\n if (hash.length > 0) {\n selectedAnchors = document.querySelectorAll('a.nav-link[href$=\"' + path + hash + '\"]')\n if (selectedAnchors.length > 0) {\n selectedAnchors.forEach(function (anchor) {\n anchor.classList.add('selected')\n })\n }\n }\n }", "function highlight_sidebar(hash) {\n $('li.tutorial-step-li').removeClass('active');\n $('a.link-to-tutorial-step[href=\"'+hash+'\"]').parent('li.tutorial-step-li').addClass('active');\n }", "_highlightCurrentPage () {\n const currentHref = window.location.href;\n const links = document.querySelectorAll('.nav-link');\n if (links.length) {\n for (var i = links.length; i--;) {\n let link = links[i];\n if (currentHref === link.href) {\n link.classList.add('active');\n } else {\n link.classList.remove('active');\n }\n }\n }\n }", "function highlightMenuItem() {\n $('#myNavbar>ul li').removeClass('active');\n var wpath = window.location.pathname, res = 0;\n $('#myNavbar>ul li a').each(function(){\n var ppath = $(this).attr('href');\n if (wpath.indexOf(ppath) > -1 && ppath.length > 1 && wpath.substring(1) === ppath) {\n res += 1;\n $(this).parent().addClass('active');\n }\n });\n if (res == 0) {\n if (wpath.indexOf('login') < 0) $('#myNavbar ul:first li:first').addClass('active');\n\telse $('#myNavbar ul:last li:first').addClass('active');\n }\n\n logActive = 0; // logging activity flag\n if (socket != null) {\n\tsocket.disconnect();\n\tsocket = null;\n }\n}", "function selectNav() {\n $(this)\n .parents('ul:first')\n .find('a')\n .removeClass('selected')\n .end()\n .end()\n .addClass('selected');\n }", "function scrollMenuActive() {\n\n\t\t\t\t\t$('nav ul li a[href^=\"#\"]').each(function() {\n\n\t\t\t\t\t\tvar btn = $(this);\n\n\t\t\t\t\t\tif (isScrolledIntoView(btn.attr('active'))) {\n\t\t\t\t\t\t\tbtn.closest('li').addClass('active');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbtn.closest('li').removeClass('active');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t}", "function setCurrentMenuItem() {\n var activePageId = $('.page.active').attr('id');\n // set default nav menu\n $('.vs-nav a[href$=' + activePageId +']').parent().addClass('current_page_item').siblings().removeClass('current_page_item');\n }", "function activeMenuItem($links) {\n var top = $(window).scrollTop(),\n windowHeight = $(window).height(),\n documentHeight = $(document).height(),\n cur_pos = top + 2,\n sections = $('section'),\n nav = $links,\n nav_height = nav.outerHeight(),\n home = nav.find(' > ul > li:first');\n\n sections.each(function () {\n var top = $(this).offset().top - nav_height - 40,\n bottom = top + $(this).outerHeight();\n\n if (cur_pos >= top && cur_pos <= bottom) {\n nav.find('> ul > li > a').parent().removeClass('active');\n nav\n .find(\"a[href='#\" + $(this).attr('id') + \"']\")\n .parent()\n .addClass('active');\n } else if (cur_pos === 2) {\n nav.find('> ul > li > a').parent().removeClass('active');\n home.addClass('active');\n } else if ($(window).scrollTop() + windowHeight > documentHeight - 400) {\n nav.find('> ul > li > a').parent().removeClass('active');\n }\n });\n }", "function setActiveMenuLink() {\n var currentLink = window.location.href;\n var menuLinks = $(\".linkPage\");\n var active = $(\".a1\");\n\n for (var i = 0, arrLength = menuLinks.length; i < arrLength; i++) {\n if ($(menuLinks[i]).attr(\"href\") == \"/\" && window.location.pathname == \"/\") {\n $(menuLinks[i]).parents(\".list_item\").addClass(\"active\");\n\n } else if ($(menuLinks[i]).attr(\"href\") !== \"/\" && currentLink.indexOf($(menuLinks[i]).attr(\"href\")) !== -1) {\n $(menuLinks[i]).parents(\".list_item\").addClass(\"active\");\n }\n }\n}", "function activeMenuItem($links) {\n var top = $(window).scrollTop(),\n windowHeight = $(window).height(),\n documentHeight = $(document).height(),\n cur_pos = top + 2,\n sections = $(\"section\"),\n nav = $links,\n nav_height = nav.outerHeight(),\n home = nav.find(\" > ul > li:first\");\n\n sections.each(function() {\n var top = $(this).offset().top - nav_height - 40,\n bottom = top + $(this).outerHeight();\n\n if (cur_pos >= top && cur_pos <= bottom) {\n nav.find(\"> ul > li > a\").parent().removeClass(\"active\");\n nav.find(\"a[href='#\" + $(this).attr('id') + \"']\").parent().addClass(\"active\");\n } else if (cur_pos === 2) {\n nav.find(\"> ul > li > a\").parent().removeClass(\"active\");\n home.addClass(\"active\");\n } else if ($(window).scrollTop() + windowHeight > documentHeight - 400) {\n nav.find(\"> ul > li > a\").parent().removeClass(\"active\");\n }\n });\n }", "function makeMenuSelection(selectedItem) {\n $('nav li a').each(function() {\n $(this).removeClass('selected');\n });\n\n selectedItem.addClass('selected');\n }", "setCurrent(menu) {\n let url = window.location.href,\n $directBars = $('.js-direct-item', menu),\n $dropBars = $('.drop-down', menu),\n found = false;\n\n _.each($directBars, (val, i) => {\n if (i > 0 && ~url.indexOf($('a', val)[0].href)) {\n Dom.classlist.add(val, 'active');\n found = true;\n return false; // break\n }\n });\n\n if (found) return; //stop function\n\n _.each($dropBars, val => {\n _.each($('li', val), inVal => {\n let inHref = $('a', inVal)[0].href;\n if (~inHref.lastIndexOf('#')) {\n inHref = inHref.substring(0, inHref.lastIndexOf('#'));\n }\n\n if (~url.indexOf(inHref)) {\n Dom.classlist.add(val, 'active');\n $(':checkbox', val)[0].checked = true;\n // TODO: @DavidCzernin if you want add class to item inside drobdown menu then do \"Dom.classlist.add(inVal,'someClass');\"\n\n found = true;\n return false; // break\n }\n });\n if (found) return false; // break\n });\n\n }", "function setActive(current) {\n\n $(\".nav-link\").removeClass(\"current-section\");\n\n $(`.nav-link[href='#${current}']`).addClass('current-section');\n\n }", "function initMenuItem() {\n $(\".navigation-menu a\").each(function () {\n var pageUrl = window.location.href.split(/[?#]/)[0];\n if (this.href == pageUrl) { \n $(this).parent().addClass(\"active\"); // add active to li of the current link\n $(this).parent().parent().parent().addClass(\"active\"); // add active class to an anchor\n $(this).parent().parent().parent().parent().parent().addClass(\"active\"); // add active class to an anchor\n }\n });\n }", "function highlight(menuItem) {\n resetActiveMenu();\n menuItem.parent().addClass('active');\n }", "function menuActive()\n {\n $('#menu-barr').find('a').removeClass('active-link');\n $('#menu-barr').find('.btn-box').removeClass('active-back');\n\n var url_activa = window.location.href;\n var lista_hash = url_activa.split('#');\n \n // agregar clase active-link a los 'a' del menu, cuando se seleccionan\n if(lista_hash[1])\n {\n $('#menu-barr').find('a[href=\"#'+lista_hash[1]+'\"]').addClass('active-link');\n\n }else{\n $('#menu-barr').find('a[href=\"#inicio\"]').addClass('active-link');\n }\n\n // agregar clase active-back a los contenedores de los a del menu, cuando se seleccionan\n if ($('#menu-barr').find('a').hasClass('active-link'))\n {\n $('.'+lista_hash[1]+'').addClass('active-back');\n } else {\n $('.'+lista_hash[1]+'').removeClass('active-back');\n }\n\n }", "function highlightNav(id) {\n $('nav .active').removeClass('active');\n $(id).addClass('active');\n }", "function changeHighlight() {\n // Get the relative URL of the page eg: '/about.html'\n const location = window.location.pathname+window.location.search;\n \n if (/index?(.html)/.test(location)) {\n return;\n } else if (/over_mij(.html)?/.test(location)) {\n document.getElementById('about-header-link').classList.add('current-page');\n } else if (/projecten(.html)?/.test(location)) {\n document.getElementById('coops-header-link').classList.add('current-page');\n } else if (/sales(.html)?/.test(location)) {\n document.getElementById('sales-header-link').classList.add('current-page');\n } else if (/extra(.html)?/.test(location)) {\n document.getElementById('extras-header-link').classList.add('current-page');\n }\n}", "function changeActiveState(id){\n \"use strict\";\n\n $j('.main_menu a').parent().removeClass('active');\n\n $j(\".main_menu a\").each(function(){\n var i = $j(this).prop(\"hash\");\n if(i === id){\n if($j(this).closest('.second').length === 0){\n $j(this).parent().addClass('active');\n }else{\n $j(this).closest('.second').parent().addClass('active');\n }\n $j('.main_menu a').removeClass('current');\n $j(this).addClass('current');\n }\n });\n\n $j('.vertical_menu a').parent().removeClass('active');\n\n $j(\".vertical_menu a\").each(function(){\n var i = $j(this).prop(\"hash\");\n if(i === id){\n if($j(this).closest('.second').length === 0){\n $j(this).parent().addClass('active');\n }else{\n $j(this).closest('.second').parent().addClass('active');\n }\n $j('.vertical_menu a').removeClass('current');\n $j(this).addClass('current');\n }\n });\n\n $j('.mobile_menu a').parent().removeClass('active');\n\n $j(\".mobile_menu a\").each(function(){\n var i = $j(this).prop(\"hash\");\n if(i === id){\n if($j(this).closest('.sub_menu').length === 0){\n $j(this).parent().addClass('active');\n }else{\n $j(this).closest('.sub_menu').parent().addClass('active');\n }\n $j('.mobile_menu a').removeClass('current');\n $j(this).addClass('current');\n }\n });\n}", "function activePage(selector) {\n\t$('#menu-'+selector).addClass('active');\n}", "function addactiveclass() {\n $(\"nav ul li a\").each(function () {\n var scrollPos = $(document).scrollTop();\n var currLink = $(this);\n var refElement = $(currLink.data(\"scroll\"));\n if (\n refElement.position().top <= scrollPos &&\n refElement.position().top + refElement.height() > scrollPos\n ) {\n $(\"nav ul li a\").removeClass(\"active\");\n currLink.addClass(\"active\");\n } else {\n currLink.removeClass(\"active\");\n }\n });\n }", "function makeActive\n(\n)\n{\n var menuItem = $.session.get('menuItem'); \n var pageName = window.location.pathname;\n pageName = pageName.slice(pageName.lastIndexOf('/') + 1);\n var attr = $.session.get('menuItem'); \n if(pageName.indexOf(attr) > -1)\n {\n $('.'+menuItem).addClass('active'); \n }\n else\n {\n $('.navList').not( $('.'+menuItem)).removeClass('active');\n }\n}", "function highlightSelection(page)\n{\n\tif(noofpagelinks==1)\n\t{\n\t$('#pagination-ifas > li.last').removeClass('last').addClass('last-off');\t\n\t$('#pagination-ifas > li.first').removeClass('first').addClass('first-off');\n\t$('#pagination-ifas > li.next').removeClass('next').addClass('next-off');\n\t$('#pagination-ifas > li.previous').removeClass('previous').addClass('previous-off');\t\n\t}\n\telse if(selectedItem==0 && noofpagelinks>1)\n\t{\n\t$('#pagination-ifas > li.last-off').removeClass('last-off').addClass('last');\n\t$('#pagination-ifas > li.first').removeClass('first').addClass('first-off');\n\t$('#pagination-ifas > li.next-off').removeClass('next-off').addClass('next');\n\t$('#pagination-ifas > li.previous').removeClass('previous').addClass('previous-off');\n\t}\n\telse if(selectedItem==(noofpagelinks-1))\n\t{\n\t$('#pagination-ifas > li.first-off').removeClass('first-off').addClass('first');\n\t$('#pagination-ifas > li.last').removeClass('last').addClass('last-off');\t\n\t$('#pagination-ifas > li.previous-off').removeClass('previous-off').addClass('previous');\n\t$('#pagination-ifas > li.next').removeClass('next').addClass('next-off');\n\t}\n\telse\n\t{\n\t$('#pagination-ifas > li.last-off').removeClass('last-off').addClass('last');\n\t$('#pagination-ifas > li.first-off').removeClass('first-off').addClass('first');\n\t$('#pagination-ifas > li.next-off').removeClass('next-off').addClass('next');\n\t$('#pagination-ifas > li.previous-off').removeClass('previous-off').addClass('previous');\n\t}\n\t$paginationdiv.find('li a').removeClass('active').eq(page).addClass('active');\n}", "function updateHeaderActiveClass(){\n $('.header__menu li').each(function(i,val){\n if ( $(val).find('a').attr('href') == window.location.pathname.split('/').pop() ){\n $(val).addClass('is-active');\n } else {\n $(val).removeClass('is-active')\n }\n });\n }", "decorateMenu(id) {\n // Remove leading slashes.\n const currPage = window.location.pathname.replace(/\\/$/, '')\n\n const items = document.querySelectorAll(`${id} ul li`)\n items.forEach(item => {\n const link = item.querySelector('a').getAttribute('href').replace(/\\/$/, '')\n if (link === currPage) {\n item.classList.add('active')\n }\n })\n\n // Check if any item is highlighted at all; if not, activate home.\n const activated = document.querySelectorAll(`${id} ul li.active`).length\n if (activated || !this.settings.menuActive) return\n const index = document.querySelector(`${id} ul li.page-index`)\n if (!index) return\n index.classList.add('active')\n }", "function ini_navSel() {\r\n\tvar path = $(location).attr('pathname').toLowerCase();\r\n\tvar arr = path.split('/');\r\n\tvar cate = arr[3]; // Current category\r\n\tvar ind;\r\n\r\n\tswitch (cate) {\r\n\t\tcase \"repair\": {\r\n\t\t\tind = 1;\r\n\t\t} break;\r\n\t\tcase \"search\": {\r\n\t\t\tind = 2;\r\n\t\t} break;\r\n\t\tcase \"support\": {\r\n\t\t\tind = 3;\r\n\t\t} break;\r\n\t}\r\n\r\n\t// Add class\r\n\t$($(\"#header_nav ul li\")[ind]).children(\"div\").addClass(\"OP_header_nav_sel\");\r\n}", "function showSelected() {\n const anchorList = document.querySelectorAll(\".main-flex-link\");\n for (let a = 0; a < anchorList.length; a++) {\n if (anchorList[a].textContent == (this.option ?? \"Home\")) {\n //con2 to prevent spam [ex: hitting menu over and over and forcing un-ness comps]\n if (lastLoaded != this.option) {\n anchorList[a].classList.add(\"menu-selected\");\n resetPage();\n lastLoaded = this.option;\n generatorHash[this.option]();\n }\n } else {\n anchorList[a].classList.remove(\"menu-selected\");\n }\n }\n}", "current() {\n for (let path in menus) {\n menus[path].options.map(item => item.selected = item.url != '/' && ('#' + $location.path()).indexOf(item.url) != -1);\n }\n }", "function open_current() {\n var page = location.pathname.match(/[^\\/]+$/)[0];\n jQuery('div.toc a[href=\"' + page + '\"]') //\n .parentsUntil('ul.toc', 'li.collapsible').addClass('show');\n }", "function setActive() {\n var path = window.location.pathname;\n openerp.jsonRpc(\"/get_parent_menu\", \"call\", {\n 'url': path,\n }).done(function(data){\n $(\"#top_menu a\").each(function(){\n if ($(this).attr(\"href\") == data) {\n $(this).closest(\"li\").addClass(\"active\");\n }\n });\n });\n}", "_highlightNav() {\n this.linkTargets.forEach(link => {\n if (\n link.href === location.href ||\n (link.dataset.match && location.href.match(link.dataset.match))\n ) {\n link.classList.add(...this.data.get(\"active\").split(\" \"));\n if (this.data.get(\"remove\")) {\n link.classList.remove(...this.data.get(\"remove\").split(\" \"));\n }\n } else {\n link.classList.remove(...this.data.get(\"active\").split(\" \"));\n }\n });\n }", "function activateSelectedNav(nav, terminator){\n removeSelectedNavClass(\"terminus-selected\");\n\t//checkDocumentSubMenus(terminator);\n\tnav.classList.add(\"terminus-selected\");\n}", "highlightHashedId_() {\n for (const element of this.shadowRoot.querySelectorAll('.highlight')) {\n element.classList.remove('highlight');\n }\n\n if (!location.hash) {\n return;\n }\n\n const highlighted = this.shadowRoot.querySelector(location.hash);\n if (!highlighted) {\n return;\n }\n\n highlighted.scrollIntoView();\n highlighted.classList.add('highlight');\n }", "function handleNavClick() {\n $(\"nav a\").removeClass(\"current\");\n $(this).addClass(\"current\");\n}", "function make_nav_bar_active() {\n $('li > a > .menuText').each(function() {\n \n if ($(this).html() === $('title').html())\n {\n console.log($('title').html());\n $(this).parents('.mainMenuItem').addClass('active');\n } \n });\n}", "function clickPageLinks() {\n\n // this event is fired everytime you click a link or when pressing back/forward browser buttons\n window.onpopstate = function() {\n var url = window.location.href;\n\n // extract the string after #\n var args = url.split('#')[1];\n\n // get the page (0 in the array of args)\n var page = args.split('&')[0];\n\n if(page!='') {\n\n // the element in the header to highlight is a li element that contains as class the \"pagename\"_page\n var newElm = $('li[class*=\"'+page+'_page\"]');\n\n // remove class from the previous active menu element\n var prevElm = $('li[class*=\"active\"]');\n prevElm.removeClass('active');\n\n newElm.addClass('active');\n\n if(page!='contact'&&page!='askus'&&page!='whereweare'&&page!='findyourshop')\n manager(args);\n else\n staticPageManager(page);\n }\n };\n}", "function setNavActive(navPosition){\n $(\".root > li a\").removeClass(\"active__current\");\n $( \".root > li a\" ).each(function( index ) {\n if(index==navPosition){\n $(this).addClass(\"active__current\");\n return;\n }\n });\n}", "function active_nav(current) {\n\t$('#nav-'+locate).removeClass(\"active\");\n\t$('#nav-'+current).addClass(\"active\");\n\tlocate = current;\n}", "function decorateActiveLinks() {\n var url = document.location.pathname;\n var links = $( 'a[href=\"' + url + '\"]' );\n\n var parent;\n links.each( function( i, el ) {\n el = $( el );\n parent = el.parent();\n var parentTagName = parent.get( 0 ).tagName.toLowerCase();\n if( parentTagName === 'li' ||\n /h[12345]/.test( parentTagName ) ) {\n parent.addClass( 'active' );\n }\n } );\n }", "function highlightNav() {\n\n//Highlights home page\nvar homeLink = document.getElementById(\"home\");\nif(window.location.pathname == \"/OtakuBlog/\" || window.location.pathname == \"/\") \n {\n homeLink.className += \" active\";\n };\n\n\n//Top navigation highlighting for side navigation pages\nvar backgroundLink = document.getElementById(\"bgd\");\nvar servicesLink = document.getElementById(\"srv\");\nvar portfolioLink = document.getElementById(\"pf\");\nvar urlArray = window.location.pathname.split(\"/\")\n\nfor (var i = 0, l = urlArray.length; i < l; i++) {\nif( urlArray[i] == \"Background\" ){\n backgroundLink.className += \" active \";\n}\nif( urlArray[i] == \"Website_Services\" ) {\n servicesLink.className += \" active \";\n}\nif( urlArray[i] == \"Portfolio\" ) {\n portfolioLink.className += \" active \";\n}\n\n function runApplication() {\n //console.log(window.location.pathname);\n setActiveLink(window.location.pathname + window.location.hash);\n }\n};\n\n}", "function anchorActiveState(me){\n\tif(me.closest('.main_menu').length > 0){\n\t\t$j('.main_menu a').parent().removeClass('active');\n\t}\n\n if(me.closest('.vertical_menu').length > 0){\n $j('.vertical_menu a').parent().removeClass('active');\n }\n\n\tif(me.closest('.second').length === 0){\n\t\tme.parent().addClass('active');\n\t}else{\n\t\tme.closest('.second').parent().addClass('active');\n\t}\n\tif(me.closest('.mobile_menu').length > 0){\n\t\t$j('.mobile_menu a').parent().removeClass('active');\n\t\tme.parent().addClass('active');\n\t}\n\t\n\t$j('.mobile_menu a, .main_menu a, .vertical_menu a').removeClass('current');\n\tme.addClass('current');\n}", "function setActiveNavLink() {\n //Get url of page, in format: /MyFinancePal/...\n var pathname = window.location.pathname;\n\n //loop through all nav links\n $('ul > li > a').filter(function () {\n /*href is in format http://localhost.. substring removes http://localhost... \n from the link so it starts at /MyFinancePal.. and matches the pathname*/\n return this.href.substring(16) === pathname;\n }).addClass('active bg-primary');\n //^If this function returns true for a link set that link to active\n}", "function setMenuActive() {\n $('.menu-li.active').toggleClass('active');\n $(this).toggleClass('active');\n }", "function activeItemMenuPelaUrl() {\r\n\tvar url = \"\";\r\n\tvar splUrl = window.location.pathname.split(\"/\");\r\n\t\r\n\tfor (var i = 1; i < splUrl.length; i++) {\r\n\t\turl += \"/\" + splUrl[i]; \r\n\t\t\r\n\t\tvar allLiItens = document.querySelectorAll('[data-menu-map]');\r\n\t\tvar liItem = null;\r\n\t\t\r\n\t\tfor (var o = 0; o < allLiItens.length; o++) {\r\n\t\t\tvar liItemAux = allLiItens[o];\r\n\t\t\tvar menuSplit = jQuery(liItemAux).attr(\"data-menu-map\").split(\",\");\r\n\t\t\t\r\n\t\t\tfor (var u = 0; u < menuSplit.length; u++) {\r\n\t\t\t\tif (url == menuSplit[u].trim()) {\r\n\t\t\t\t\tliItem = liItemAux;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (liItem != null) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (liItem != null) {\r\n\t\t\tjQuery(liItem).addClass(\"active\");\r\n\t\t\tjQuery(liItem).closest(\".treeview\").addClass(\"active\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n}", "function ahrefActive() {\n var loc = window.location.pathname;\n $('ul.nav.flex-column.main-vertical-menu').find('a').each(function () {\n $(this).toggleClass('active', $(this).attr('href') == loc);\n });\n\n}", "function lavahelper() \n{\n\tjQuery(\"#nav .current_page_item, #nav .current_page_parent, #nav .current_page_ancestor\").addClass('current').removeClass(\"current_page_item\").removeClass(\"current_page_parent\").removeClass(\"current_page_ancestor\");\n}", "function selection() {\n let tags = [\"#navAbout\", \"#navExperience\", \"#navContact\"];\n let current = findView();\n // If the desktop site is displayed\n /* if (desktopSite()) {\n // If about back is visable, play animation\n if (current == \"#navAbout\") {\n aboutAnimation();\n }\n // Disable snap scroll for experience\n if (current == \"#navExperience\") {\n $(\"body\").css(\"scroll-snap-type\", \"y proximity\");\n $(\"html\").css(\"scroll-snap-type\", \"y proximity\");\n } else if (current != \"none\") {\n $(\"body\").css(\"scroll-snap-type\", \"both mandatory\");\n $(\"html\").css(\"scroll-snap-type\", \"both mandatory\");\n }\n } else {\n $(\"body\").css(\"scroll-snap-type\", \"none\");\n $(\"html\").css(\"scroll-snap-type\", \"none\");\n } */\n // Change the nav bar for current slide\n if (current != \"none\") {\n for (i in tags) {\n if (tags[i] != current) {\n $(tags[i])\n .removeClass(\"selected\")\n .addClass(\"unselected\");\n } else {\n $(tags[i])\n .removeClass(\"unselected\")\n .addClass(\"selected\");\n }\n }\n }\n}", "function selectDefaultMenuItem() {\r\n\t\tif ($(\"nav ul li.current\").length == 0) {\r\n\t\t\t$(\"nav ul li:first-child\").addClass(\"current\");\r\n\t\t}\r\n\t}", "function highlightPage() \n{\n if (!document.getElementsByTagName) return false;\n if (!document.getElementById) return false;\n \n var headers = document.getElementsByTagName(\"header\");\n if (headers.length == 0) return false;\n \n var navs = headers[0].getElementsByTagName(\"nav\");\t\n if (navs.length == 0) return false;\n \n var links = navs[0].getElementsByTagName(\"a\");\n \n \n var linkurl;\n for (var i=0; i<links.length; i++) \n {\n linkurl = links[i].getAttribute(\"href\");\n //var currenturl = window.location.href;\n //if (currenturl.indexOf(linkurl) != -1)\n // window.location object refers to the various pieces of a URL\n // ... and 'href' refers to the value representing the entire URL\n // .. so if link matches current URL add the class attribute on the fly!\n if ( window.location.href.indexOf(linkurl) != -1 )\n {\n links[i].className = \"here\";\n //links[i].setAttribute(\"class\",\"here\");\t// Of course this also works\n\n // give unique id attribute to <body> element so you can add STYLES specific to page\n // e.g. specify a different background image for header (bootom right) of each individual page\n // ... gosh but space in an attribute will it create problems? such as in id=\"contact us\"?\n // ... jQuery allows it though by using escape characters $('#Contact\\\\ us');\n var linktext = links[i].lastChild.nodeValue.toLowerCase();\n document.getElementsByTagName(\"body\")[0].setAttribute(\"id\",linktext);\n //alert(linktext);\n } \n }\n \n}", "function highlightactive(e) {\r\n e.preventDefault();//Prevent the default behavior\r\n //Checking which section we are in and making its list item with a different color\r\n if (document.querySelector('#anchor1').getBoundingClientRect().y + 100 > 0) {\r\n document.querySelector('#LiItemSection1').setAttribute(\"style\", \"background: white;color:#162B4E\");\r\n document.querySelector('#LiItemSection2').setAttribute('style', \"background-color:#162B4E;color:white\");\r\n document.querySelector('#LiItemSection3').setAttribute('style', \"background-color:#162B4E;color:white\");\r\n\r\n } else if (document.querySelector('#anchor2').getBoundingClientRect().y > 0) {\r\n document.querySelector('#LiItemSection2').setAttribute(\"style\", \"background: white;color:#162B4E\");\r\n document.querySelector('#LiItemSection1').setAttribute('style', \"background-color:#162B4E;color:white\");\r\n document.querySelector('#LiItemSection3').setAttribute('style', \"background-color:#162B4E;color:white\");\r\n } else if (document.querySelector('#anchor3').getBoundingClientRect().y > 0) {\r\n document.querySelector('#LiItemSection3').setAttribute(\"style\", \"background: white;color:#162B4E\");\r\n document.querySelector('#LiItemSection2').setAttribute('style', \"background-color:#162B4E;color:white\");\r\n document.querySelector('#LiItemSection1').setAttribute('style', \"background-color:#162B4E;color:white\");\r\n }\r\n document.querySelector('#LiItemSection1').addEventListener('hover', entermouse);\r\n document.querySelector('#LiItemSection2').addEventListener('hover', entermouse);\r\n document.querySelector('#LiItemSection3').addEventListener('hover', entermouse);\r\n}", "function onepage_activ_menu() {\r\n\t\r\n\tif(j$('body').hasClass('page-template-onepage') ) {\r\n\t\tj$('#header_container nav ul li a').click(function () {\r\n\t\tj$('#header_container nav ul li').removeClass('current-menu-item');\r\n\t\tj$(this).parent('li').addClass('current-menu-item');\r\n\t\t})\r\n\t\tvar aChildren = j$(\"#header_container nav ul li\").children(); // find the a children of the list items\r\n \tvar aArray = []; // create the empty aArray\r\n\t for (var i=0; i < aChildren.length; i++) { \r\n var aChild = aChildren[i];\r\n var ahref = j$(aChild).attr('href');\r\n aArray.push(ahref);\r\n \t} // this for loop fills the aArray with attribute href values\r\n\r\n j$(window).scroll(function(){\r\n var windowPos = j$(window).scrollTop(); // get the offset of the window from the top of page\r\n\r\n\t\tif(j$('.header_bottom_nav').length > 0){\r\n\t\t\tvar h_height = j$(\"#header_container\").height();\r\n\t\t\t}\r\n\t\t\telse if(j$(\".header_to_shrink\").length > 0) {\r\n\t\t\tvar h_height = \"55\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\tvar h_height = j$(\"#header_container\").height();\r\n\t\t}\r\n var windowHeight = j$(window).height(); // get the height of the window\r\n var docHeight = j$(document).height();\r\n\r\n for (var i=0; i < aArray.length; i++) {\r\n var theID = aArray[i];\r\n var divPos = (j$(theID).offset().top)-h_height;\r\n\t\t\tvar divh = j$(theID).height();\r\n var divHeight = +divh + +h_height; // get the height of the div in question\r\n if (windowPos >= divPos && windowPos < (divPos + divHeight)) {\r\n j$(\"a[href='\" + theID + \"']\").parent('li').addClass(\"current-menu-item\");\r\n } else {\r\n j$(\"a[href='\" + theID + \"']\").parent('li').removeClass(\"current-menu-item\");\r\n }\r\n }\r\n\r\n if(windowPos + windowHeight == docHeight) {\r\n if (!j$(\"#header_container nav ul li\").hasClass(\"current-menu-item\")) {\r\n var navActiveCurrent = j$(\".current-menu-item a\").attr(\"href\");\r\n j$(\"a[href='\" + navActiveCurrent + \"']\").parent('li').removeClass(\"current-menu-item\");\r\n j$(\"#header_container nav ul li:last-child a\").parent('li').addClass(\"current-menu-item\");\r\n }\r\n }\r\n });\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}\r\n}", "function sideNavHandler(el){\n\t$('.sidenav_item').removeClass('selected');\n\tel.addClass('selected');\n}", "function setNavCurrentState(){\n var url = window.location.protocol + \"//\" + window.location.host + window.location.pathname,\n desktop = checkWindowWidth();\n\n //add current state to nav if url matches\n $('#au-primary-nav a').each(function() {\n var href = $(this).attr('href'); \n var $this = $(this);\n if (href == url) {\n\n $primaryNav.add('li').removeClass('current');\n\n //add a class of \".current\" to the top most level navigation links. This is used for desktop styling\n $this.addClass('current').parents('li').last('li').children('a').addClass('current');\n\n //add a class of \".current\" to the navigation link with its href attribute matching the browser url\n $this.parent('li').children('a').addClass('current').attr('aria-expanded', 'false'); \n\n //remove \".is-hidden\" from the parent ul of the link that matches the browser url\n $this.parents('li').closest('ul').removeClass('is-hidden').attr('aria-hidden', 'false').prev('a').attr('aria-expanded', 'true')\n //move out all parent uls to the left\n .parents('ul').addClass('moves-out').attr('aria-hidden', 'false').removeClass('is-hidden');\n\n }\n if ( desktop ) {\n //on desktop we need to make sure that .cd-secondary-nav is hidden and aria attributes are set correctly\n $this.attr('aria-expanded', 'false'); \n $secondaryNav.addClass('is-hidden').attr('aria-hidden', 'true'); \n } else {\n $primaryNav.attr('aria-hidden', 'false'); \n }\n }); \n }", "function activateMenuOnScroll(){\n waq.$menu.$anchoredSections = $();\n for(i=0;i<waq.$menu.$links.length; i++){\n var $trigger = waq.$menu.$links.eq(i);\n var $section = $( '#' + $trigger.parent().attr('class').split(\" \")[0] );\n if($section.length) waq.$menu.$anchoredSections.push($section[0]);\n }\n if(waq.$menu.$anchoredSections.length){\n waq.$menu.$anchoredSections.scrollEvents({\n flag: 'anchor',\n offset: 150,\n topUp: function(e){\n var slug = e.selection.attr('id');\n var $target = waq.$menu.$links.parent().filter('.'+slug);\n waq.$menu.$links.parent().removeClass('active');\n if($target.length){\n $target.addClass('active');\n // window.location.replace('#!/'+slug);\n };\n },\n topDown: function(e){\n var slug = $(scrollEvents.selection[minMax(e.i-1,0,100)]).attr('id')\n var $target = waq.$menu.$links.parent().filter('.'+slug);\n waq.$menu.$links.parent().removeClass('active');\n if($target.length){\n $target.addClass('active');\n // window.location.replace('#!/'+slug);\n }\n }\n\n });\n }\n // dirty fix\n $win.on('load',function(){\n waq.$menu.$links.parent().removeClass('active');\n });\n }", "function setCurrentPage(){\n var navigationContainer = document.getElementById(\"navigation\")\n var navBarListCollection = navigationContainer.getElementsByTagName('li');\n var navBarLinkCollection = navigationContainer.getElementsByClassName('menulink');\n \n var currentPageArray = window.location.pathname.split('/');\n var currentPagePath = currentPageArray[1]\t\n \n for (var j=0; j < navBarListCollection.length; j++) {\n \n navBarLinkPathCollectionArray = navBarLinkCollection[j].pathname.split('/')\n\n\t\tif (currentPagePath == 'home' || currentPagePath == \"\") {\n\t \tnavBarLinkCollection[0].className = 'active';\n break;\t\n\t\t}else if (currentPagePath == navBarLinkPathCollectionArray[1] || currentPagePath == navBarLinkPathCollectionArray[0]) {\n\t \tnavBarLinkCollection[j].className = 'active';\n\t \tbreak;\n\t\t}\n }\n}", "function swapNavSelection(parentNode, previous) {\n if (previous.parentNode) {\n previous.parentNode.classList.remove('selected');\n }\n previous.parentNode = parentNode;\n previous.section = parentNode.firstChild.href.split('#')[1];\n parentNode.classList.add('selected');\n }", "function activeMenuMain() {\n let {pathname} = location;\n if(pathname == \"/\") pathname = \"/trang-chu\";\n $(\"#nav-main li\").removeClass(\"active\");\n $(`#nav-main li[data-active='${pathname.slice(1)}']`).addClass(\"active\");\n}", "function selectedStyle() {\n if(window.location.href.indexOf(localStorage.getItem('selectedItem')) > -1) {\n $(\"[id^=zz][id$=_RootAspMenu] li\").children('ul').slideToggle(300).removeClass(\"baseText\").addClass(\"subMenu subMenuText\"); \n $(\"[id^=zz][id$=_RootAspMenu] li\").siblings('li').children('ul').hide();\n $(\"[id^=zz][id$=_RootAspMenu] span\").addClass(\"subMenuSelected\"); \n }\n else {\n console.log(\"The target value is empty.\");\n } \n}", "function set_menu_item(menu_items) {\n var pathname = document.location.pathname;\n menu_items.each(\n function(i, e) {\n e = $(e);\n var link = e.find('a');\n if (pathname.match(link.attr('href')) != null) {\n if (pathname == link.attr('href')) {\n e.addClass('active').siblings().removeClass('active');\n return false;\n } else {\n e.addClass('active');\n }\n }\n }\n );\n}", "function updateHeaderActiveClass() {\n $('.header__pages a').each(function(i, val) {\n if ($(val).attr('href') == window.location.pathname.split('/').pop()) {\n $(val).addClass('is-active');\n } else {\n $(val).removeClass('is-active')\n }\n });\n }", "function addActive(){\t\t\n\t\t$(\".navbar-nav li\").each(function(index){\n\t\t\tvar currentSection = $(this).find(\"a\").attr(\"href\");\n\t\t\tif((window_scroll.scrollTop() > $(currentSection).offset().top - 150)){\t\t\t\t\t\n\t\t\t\t$(this).addClass(\"active\");\n\t\t\t\t$(\".navbar-nav li\").not(this).removeClass(\"active\");\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "function MenuItem_Highlight()\n{\n\t//this a menu bar?\n\tif (this.MenuBarHTML)\n\t{\n\t\t//default\n\t\tthis.MenuBarHTML.style.backgroundColor = this.MenuData.BarBGColorHighLight;\n\t\tthis.MenuBarHTML.style.color = this.MenuData.BarFGColorHighLight;\n\t\t//not sap belize custom?\n\t\tif (!this.SapBelize)\n\t\t{\n\t\t\t//also set the border\n\t\t\tthis.MenuBarHTML.style.border = this.MenuData.OpenedPopups.length > 0 ? this.MenuData.HighlightBorderOpened : this.MenuData.HighlightBorder;\n\t\t}\n\t}\n\t//menu popup then\n\telse\n\t{\n\t\t//switch according to state\n\t\tswitch (this.State)\n\t\t{\n\t\t\tcase __MENU_NODE_SEPARATOR:\n\t\t\tcase __MENU_NODE_DISABLED:\n\t\t\tcase __MENU_NODE_CHECKED_DISABLED:\n\t\t\t\t//ignore\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthis.MenuPopupHTML.cells[0].style.backgroundColor = this.MenuData.PopupBGColorHighLight;\n\t\t\t\tthis.MenuPopupHTML.style.backgroundColor = this.MenuData.PopupBGColorHighLight;\n\t\t\t\tthis.MenuPopupHTML.style.color = this.MenuData.PopupFGColorHighLight;\n\t\t\t\t//has child highlight?\n\t\t\t\tif (this.ChildImageHTML)\n\t\t\t\t{\n\t\t\t\t\t//change its position to highlight it\n\t\t\t\t\tthis.ChildImageHTML.style.backgroundPosition = this.ChildImageHTML.Pos_High;\n\t\t\t\t}\n\t\t\t\t//has checked\n\t\t\t\tif (this.CheckedImage)\n\t\t\t\t{\n\t\t\t\t\t//change its position to highlight it\n\t\t\t\t\tthis.CheckedImage.style.backgroundPosition = this.CheckedImage.Pos_High;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n}", "function Vmenu2()\r\n{\r\n\twindow.colorlink = $(\"a.tablelinkssearch\").css(\"color\");\r\n\t$('.Vmenu2 ul li a').hover(\r\n\tfunction()\r\n\t{\r\n\t\tif($(this).parent().attr('class')!='hr')\r\n\t\t\t$(this).addClass('menu_active');\r\n\t},\r\n\tfunction()\r\n\t{\r\n\t\tif($(this).parent().attr('class')!='hr')\r\n\t\t\t$(this).removeClass('menu_active'); \r\n\t}); \r\n\t$('.Vmenu2 ul li ul').hide();\r\n\t$('li[@view=topitem]:has(ul:has(a.current))').find('a:first').css('color',$(\"a.current\").css(\"color\"));\r\n\t$('.Vmenu2 ul li:has(ul) span').bind('click',function()\r\n\t{\r\n\t\tvar par = $(this).parent();\r\n\t\tvar parc = $('a.current').parent();\r\n\t\t$(par).find('ul:first').slideToggle(); \r\n\t\tif ($(this).find('img.pmimg').attr('src') == 'include/img/plus.gif') \r\n\t\t{\r\n\t\t\t// add to cookie opened menu\r\n\t\t\taddOpenMenuItemIdToCookie($(par).find('ul:first').attr(\"id\"));\r\n\t\t\t$(this).find('img.pmimg').attr('src', 'include/img/minus.gif');\r\n\t\t\tif($('a.current',par).length && $(par).attr('id')!=$(parc).attr('id'))\r\n\t\t\t\t$(par).find('a:first').css('color',window.colorlink);\r\n\t\t\t$(par).find('ul:has(a.current)').each(function(parc)\r\n\t\t\t{\r\n\t\t\t\t$(this).parent().find('img.pmimg:first').attr('src','include/img/minus.gif');\r\n\t\t\t\tif($('a.current',this).length && $(this).parent().attr('id')!=$(parc).attr('id'))\r\n\t\t\t\t\t$(this).parent().find('a:first').css('color',window.colorlink);\r\n\t\t\t\taddOpenMenuItemIdToCookie($(this).attr(\"id\"));\r\n\t\t\t\t$(this).slideDown();\r\n\t\t\t});\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\t// remove from cookie opened menu\r\n\t\t\t\tremoveOpenMenuFromCookie($(par).find('ul:first').attr(\"id\"));\r\n\t\t\t\t// remove all children from cookie\r\n\t\t\t\t$(par).find('ul').each(function()\r\n\t\t\t\t{\r\n\t\t\t\t\tremoveOpenMenuFromCookie($(this).attr(\"id\"));\r\n\t\t\t\t});\r\n\t\t\t\t$(this).find('img.pmimg').attr('src', 'include/img/plus.gif');\r\n\t\t\t\tif($('a.current',par).length && $(par).attr('id')!=$(parc).attr('id'))\r\n\t\t\t\t\t$(par).find('a:first').css('color',$(\"a.current\").css(\"color\"));\r\n\t\t\t}\r\n\t\treturn false;\r\n\t});\r\n\tif($('.Vmenu2 li[@view=topitem]:has(ul)').length && $('.Vmenu2 ul:first').length)\r\n\t{\r\n\t\t$('.Vmenu2_links').css('display','block');\r\n\t\t$('a.plus_minus').click(function()\r\n\t\t{\r\n\t\t if(flag)\r\n\t\t {\r\n\t\t\t\t$(this).parent().parent().find('ul li ul').slideUp('slow');\r\n\t\t\t\t$('a.plus_minus').empty();\r\n\t\t\t\t$('img.pmimg').attr('src','include/img/plus.gif');\r\n\t\t\t\t$('a.plus_minus').append('<img src=\\\"include/img/plus.gif\\\" border=0> &nbsp;&nbsp;'+TEXT_EXPAND_ALL);\r\n\t\t\t\tflag = 0;\r\n\t\t\t\t// on collapse all, remove all ids from cookie\r\n\t\t\t\tdelete_cookie('openMenuItemIds', cookieRoot, '');\r\n\t\t\t\t$(this).parent().parent().find('li:has(ul:has(a.current))').each(function()\r\n\t\t\t\t{\r\n\t\t\t\t\t$(this).find('a:first').css('color',$(\"a.current\").css(\"color\"));\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t else{\r\n\t\t\t\t\t$(this).parent().parent().find('ul li ul').slideDown('slow');\r\n\t\t\t\t\t$('a.plus_minus').empty();\r\n\t\t\t\t\t$('img.pmimg').attr('src','include/img/minus.gif');\r\n\t\t\t\t\t$('a.plus_minus').append('<img src=\\\"include/img/minus.gif\\\" border=0> &nbsp;&nbsp;'+TEXT_COLLAPSE_ALL);\r\n\t\t\t\t\tflag = 1;\r\n\t\t\t\t\t// on expand all add all ids to cookie\r\n\t\t\t\t\t$(this).parent().parent().find('ul li ul').each(function()\r\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\taddOpenMenuItemIdToCookie($(this).attr(\"id\"));\t\r\n\t\t\t\t\t});\r\n\t\t\t\t\t$(this).parent().parent().find('li:has(ul:has(a.current))').each(function()\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$(this).find('a:first').css('color',window.colorlink);\r\n\t\t\t\t\t});\t\r\n\t\t\t\t}\r\n\t\t\treturn false; \r\n\t\t});\r\n\t}\t\r\n\tif($.browser.msie)\r\n\t\t$('.Vmenu2 ul li').css('padding','5px 0');\t\r\n}", "function getHash() {\n var hash = $location.hash();\n if (hash && hash in ctrl.options) {\n ctrl.selectOption(hash);\n } else {\n ctrl.selectOption('about');\n }\n }", "function leNav(ihref){\n $(\".detailContent .leftNav li a[href^='\"+ihref+\"']\").addClass(\"on\");\n}", "function highlight(e) {\n\t\t\n\t\te.preventDefault();\n\t\tnote = document.getElementById(e.toElement.href.slice(-1)); // TODO: Fix the slice arguments (this will break for multiple-digit numbers)\n\t\t\n\t\twindow.location = e.toElement.href;\n\n\t\t// TODO: Add and remove classes properly\n\t\tif (previous !== undefined) {\n\t\t\tprevious.className = \"\";\n\t\t}\n\n\t\tprevious = note;\n\t\t\n\t\tnote.className = \"highlight\"; // Add highlight to corresponding reference TODO: Trim space\n\n\t\tconsole.log(e.toElement.href);\n\t\tconsole.log(note);\n\n\t}", "function singlePageMenu(){\n\t\tif ( $('.single-page').length) {\n\n\t\t\t$('.main-nav').each(function(){\n\t\n\t\t\t\t\tvar $active, $content, $links = $(this).find('a.on'),\n\t\t\t\t\t$li = $(this).find('a').closest('li');\n\t\t\t\t\n\t\t\t\t\t$active = $($links.filter('[href=\"'+location.hash+'\"]')[0] || $links[0]);\n\t\t\t\t\t$content = $($active.attr('href'));\n\t\t\t\t\n\t\t\t\t\t$(this).on('click', 'a', function(e){\n\t\t\t\n\t\t\t\t\t\t$li.removeClass('active');\n\t\t\t\t\n\t\t\t\t\t\t$active = $(this);\n\t\t\t\t\t\t$content = $($(this).attr('href'));\n\t\t\n\t\t\t\t\t\t$(this).closest('li').addClass('active');\n\t\t\t\t\t\t$(\"body,html\").animate({scrollTop:$content.position().top + 1}, 1000);\n\t\t\t\t\t\t\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t});\n\t\t\t});\n\n\t\t}\n\t}", "function select_active_link(active_url) {\n\n //Sort the nav links in order of longest href to shortest then find the\n //first one that is the root of the current url. This provides the most\n //specific link instead of just the first one.\n $(\"nav ul li a\")\n .sort(function(a, b) {\n return b.href.length - a.href.length ||\n a.href.localeCompare(b.href);\n })\n .each(function() {\n if (active_url.startsWith(this.href)) {\n $(this).parent(\"li\").addClass(\"active\");\n return false;\n }\n });\n}", "function scrollToHighlight(){\n window.addEventListener(\"scroll\" , function(){\n mySections.forEach((section)=> {\n let view = section.getBoundingClientRect();\n if (view.top >= -250 && view.top <= 200) {\n //add active class to a specific section\n section.classList.add(\"your-active-class\");\n // to highlight a specific link in the nav-menue\n const allLinks = document.querySelectorAll(\"a\");\n allLinks.forEach((alink) => {\n alink.classList.remove(\"activeLink\");\n if(section.getAttribute(\"data-nav\") === alink.textContent){\n alink.classList.add(\"activeLink\");\n }\n })\n }\n else {\n //to remove all other active class from other sections\n section.classList.remove(\"your-active-class\");\n } \n })\n })\n}", "function fixTabsHighlighting(e) {\n\t$(\".dropdown-menu > li\").removeClass(\"active\");\n\tvar target = $(e.target);\n\tvar parent = target.parent(\"li\");\n\tparent.addClass(\"active\");\n }", "function selectActiveClass(){\n\n $(document).on('click' , 'nav .nav__menu ul li a' , function() {\n\t\t$(this).addClass('color').siblings().removeClass('color')\n})\n}", "function makeItemActivefromRoute() {\n var url = window.location;\n $(\"a[href='\" + url['pathname'] + \"']\").parent().addClass(\"active\");\n}", "function sidebarActiveClass() {\n var curentFile = window.location.pathname\n $('.sidebar_pagelist > li > a[href=\"' + curentFile + '\"]').addClass('active');\n }", "function activateMenu(url, activated) {\n var activePage = stripTrailingSlash(url);\n $('.sidebar-menu li a').each(function () {\n var currentPage = stripTrailingSlash($(this).attr('href'));\n //console.log(\"activePage:\" + activePage +\" currentPage:\" + currentPage);\n if (activePage == currentPage) {\n $(this).parent().addClass('active');\n activated = true;\n }\n });\n\n //submenus\n $('.sidebar-menu li ul a').each(function () {\n var currentPage = stripTrailingSlash($(this).attr('href'));\n //console.log(\"sub-activePage:\" + activePage +\" sub-currentPage:\" + currentPage);\n if (activePage == currentPage) {\n $(this).parent().addClass('active');\n $(this).parent().parent().parent().addClass('active');\n activated = true;\n }\n });\n\n if (!activated && localStorage.getItem(\"activatedMenuUrl\")) {\n //if not activated set latest activated url\n activateMenu(localStorage.getItem(\"activatedMenuUrl\"), true);\n } else {\n saveCurrentActivatedUrl(url);\n }\n\n}", "function activePageCheck() {\n\n const currentPage = window.location.hash.substr(1);\n const activeNavItem = navBox.querySelector(`[href=\"#${currentPage}\"]`);\n if(!activeNavItem) {return}\n previousPage[0].classList.toggle(\"active\");\n activeNavItem.classList.toggle(\"active\");\n\n \n}", "function toggleHighlight (linkObj) {\n hideAll();\n linkObj.className += \" activeSubNav\";\n}", "function addClass () {\n $('.menu-item-just').removeClass('menu-item_active');\n $(`.menu-item-just[href=\"#${id}\"]`).addClass('menu-item_active');\n }", "function topAsCurrentHighlighted(direction) {\n var curr_highlighted_id = currentHighlighted();\n var m = $(\"li[id*=\" + curr_highlighted_id + \"]\");\n\n removeDuplicates();\n var notices = $(\"li[id*='notice-']\");\n\n logDebug(\"topAsCurrentHighlighted() --> curr_highlighted_id: \" + curr_highlighted_id + \" isOnScreen: \" + isOnScreen(m.children(\".entry-title\").first()));\n\n if(isOnScreen(m.children(\".entry-title\").last()) == false) {\n for (var i=0; i<notices.length; i++) {\n if (isOnScreen($(notices[i])) == true) {\n curr_highlighted_id = $(notices[i]).attr(\"id\").replace(new RegExp(\".*notice-(\\\\d+)$\", \"i\"), \"$1\");\n $(\"head\").data(\"curr_highlighted_id\", curr_highlighted_id);\n\n logDebug(\"topAsCurrentHighlighted() --> new top curr_highlighted_id: \" + curr_highlighted_id);\n\n /* Babil: if next_highlighted_id is outside viewport, scroll to it */\n $('html, body').animate({\n scrollTop: $(notices[i]).offset().top - config.highlighted_notice_top_margin,\n }, 'fast');\n\n return;\n }\n }\n }\n}", "function handle_hash_change(ele) {\r\n\t\t\r\n\t\tconsole.log('Element id',ele);\r\n\t\r\n\t\t//show slected slide\r\n\t\t$(\".goc-home-text-container\").fadeOut('slow');\r\n\t\t\r\n\t\tif( ele == '#slide-home' ) {\r\n\t\t\t//something special for home.\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$(ele).slideDown(800);\r\n\t\t}\r\n\t\t\r\n\t\t//to close the drawer\r\n\t\t$('.mdl-layout__drawer').removeClass('is-visible');\t\t\r\n\t}", "function activeHome(){\r\n $(\".common_section\").addClass(\"d_none\");\r\n $(\".home_page\").removeClass(\"d_none\");\r\n $(\"body\").css(\"backgroundColor\", \"#fff\");\r\n\r\n $(\".footer_menu\").removeClass(\"active\");\r\n $(\".footer_home\").addClass(\"active\");\r\n\r\n $(\"#last_clicked\").val(\"footer_home\");\r\n}", "highlightLast_() {\n this.highlightHelper_(this.menuItems_.length, -1);\n }", "function addMenuActiveClassOnScrolling() {\n\n\t//Grab sections (targets) and menu links (trigers) for menu items to apply active links styles to\n\tconst sections = document.querySelectorAll('.resume__section'),\n\t\tmenu_links = document.querySelectorAll('.grid__header--nav--item');\n\n\t//Functions for adding and removing active class from links as appropriate\n\tconst makeActive = link => menu_links[link].classList.add('active');\n\n\tconst removeActive = link => menu_links[link].classList.remove('active');\n\n\tconst removeAllActive = () => [...Array(sections.length).keys()].forEach(link => removeActive(link));\n\n\t// change the active link a bit above the actual section\n\t// this way it will change as you're approaching the section rather\n\t// than waiting until the section has passed the top of the screen\n\tconst sectionMargin = 100;\n\n\t// keep track of the currently active link\n \t// use this so as not to change the active link over and over\n \t// as the user scrolls but rather only change when it becomes\n \t// necessary because the user is in a new section of the page\n\tlet currentActive = 0;\n\n\twindow.addEventListener('scroll', () => {\n\t\t/*\n\t\t\t// check in reverse order so we find the last section\n\t\t\t// that's present - checking in non-reverse order would\n\t\t\t// report true for all sections up to and including\n\t\t\t// the section currently in view\n\t\t\t//\n\t\t\t// Data in play:\n\t\t\t// window.scrollY - is the current vertical position of the window\n\t\t\t// sections - is a list of the dom nodes of the sections of the page\n\t\t\t// [...sections] turns this into an array so we can\n\t\t\t// use array options like reverse() and findIndex()\n\t\t\t// section.offsetTop - is the vertical offset of the section from the top of the page\n\t\t\t//\n\t\t\t// basically this lets us compare each section (by offsetTop) against the\n\t\t\t// viewport's current position (by window.scrollY) to figure out what section\n\t\t*/\n\n\t\t// the user is currently viewing\n\t\tconst current = sections.length - [...sections].reverse().findIndex(section => window.scrollY >= section.offsetTop - sectionMargin) - 1;\n\n\t\t// only if the section has changed\n \t// remove active class from all menu links\n \t// and then apply it to the link for the current section\n\n\t\tif (current !== currentActive) {\n\t\t\tremoveAllActive();\n\t\t\tcurrentActive = current;\n\t\t\tmakeActive(current);\n\t\t}\n\t}, false);\n}", "function homeClick(){\n\n var div = $(\"#home\");\n target_offset = div.offset();\n target_top = target_offset.top +20 ;\n\n $('html, body').animate({scrollTop:target_top}, 500);\n var ul = $(\"#ulNav\");\n ul.children().removeClass('highlightNav');\n $('#homeNav').addClass('highlightNav');\n}", "function highlightSearch() {\n\t$(\"ul.imj_bodyContextSearch li\").removeClass(\"hovered\");\n\tif (selectedSearch == 1) {\n\t\t$(\"ul.imj_bodyContextSearch li:nth-child(1)\").addClass(\"hovered\");\n\t}\n\tif (selectedSearch == 2) {\n\t\t$(\"ul.imj_bodyContextSearch li:nth-child(2)\").addClass(\"hovered\");\n\t}\n\tif (selectedSearch == 3) {\n\t\t$(\"ul.imj_bodyContextSearch li:nth-child(3)\").addClass(\"hovered\");\n\t}\n}", "function vfNavigationOnThisPage() {\n var scope = document;\n // based on the attribute we select all navigation links\n var navLinks = scope.querySelectorAll(\"[data-vf-js-navigation-on-this-page-container='true'] .vf-navigation__item a\");\n // we store all ids from anchor tags to know the sections we should care about\n var ids = [];\n navLinks.forEach(function (link) {\n if (link.hash) {\n ids.push(link.hash.substring(1));\n }\n });\n // get all elements with an id and convert it from NodeList to Array\n var sections = Array.prototype.slice.call(scope.querySelectorAll(\"[id]\"));\n var sectionPositions = [];\n if (!navLinks || !sections) {\n // exit: either sections or section content not found\n return;\n }\n if (navLinks.length === 0 || sections.length === 0) {\n // exit: either sections or section content not found\n return;\n }\n // remove all the elements that doesn't appear in the navigation based on it's id\n sections = sections.filter(function (section) {\n return ids.indexOf(section.id) !== -1;\n });\n function activateNavigationItem() {\n // althought costly, we recalculate the position of elements each time as things move or load dynamically\n sectionPositions = [];\n sections.forEach(function (e) {\n var rect = e.getBoundingClientRect();\n var scrollTop = window.pageYOffset || document.documentElement.scrollTop;\n sectionPositions.push({\n id: e.id,\n position: rect.top + scrollTop\n });\n });\n // put sections in the bottom at the beginning of the array\n sectionPositions.reverse();\n var scrollPosition = document.documentElement.scrollTop || document.body.scrollTop;\n // We reverse the array because Array.find starts to search from position 0 and to simplify\n // the logic to find which element is closest to the current scroll position, otherwise it will always\n // select the first element.\n var currentSection = sectionPositions.find(function (s) {\n return !(scrollPosition <= s.position - 95);\n });\n navLinks.forEach(function (link) {\n link.setAttribute(\"aria-selected\", \"false\");\n });\n // if we don't match any section yet, highlight the first link\n if (!currentSection) {\n navLinks[0].setAttribute(\"aria-selected\", \"true\");\n } else {\n navLinks.forEach(function (link) {\n if (link.hash === '#' + currentSection.id) {\n link.setAttribute(\"aria-selected\", \"true\");\n }\n });\n }\n isCalculating = false;\n }\n var isCalculating = false;\n window.onscroll = function () {\n if (!isCalculating) {\n isCalculating = true;\n window.requestAnimationFrame(activateNavigationItem);\n }\n };\n navLinks.forEach(function (link) {\n link.addEventListener(\"click\", function (event) {\n var section = document.querySelector(link.hash);\n var scrollPosition = document.documentElement.scrollTop || document.body.scrollTop;\n if (!section) return;\n event.preventDefault();\n // get current styles of element we are moving to\n var elemStyles = window.getComputedStyle(section);\n // take into account the padding and/or margin top\n var value = elemStyles.paddingTop !== '0px' ? elemStyles.paddingTop : elemStyles.marginTop;\n // we remove the px characters from the value\n var offset = parseInt(value.slice(0, -2), 10);\n // total offset: margin/padding top of the element plus the size of the navigation bar\n window.scroll({\n top: section.getBoundingClientRect().top + scrollPosition - (offset + 40),\n behavior: 'smooth'\n });\n });\n });\n}", "function contentMenuScrollTo(){\n\t\"use strict\";\n\n\tif($j('nav.content_menu').length){\n\t\t\n\t\t$j(\"nav.content_menu ul.menu li a\").on('click', function(e){\n\t\t\te.preventDefault();\n\t\t\tvar $this = $j(this);\n\t\t\t\n\t\t\tif($j(this).parent().hasClass('active')){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tvar $target = $this.attr(\"href\");\n\t\t\tvar targetOffset = $j(\"div.wpb_row[data-q_id='\" + $target + \"'],section.parallax_section_holder[data-q_id='\" + $target + \"']\").offset().top - content_line_height - content_menu_top - content_menu_top_add;\n\t\t\t$j('html,body').stop().animate({scrollTop: targetOffset }, 500, 'swing', function(){\n\t\t\t\t$j('nav.content_menu ul li').removeClass('active');\n\t\t\t\t$this.parent().addClass('active');\n\t\t\t});\n\n\t\t\treturn false;\n\t\t});\n\t\t\n\t}\n}", "function updateSidebarSelection(navigationPath) {\n var toSelect = $('#' + navigationPath);\n\n $('#sidebar > li').removeClass('active');\n $('#sidebar > li i').removeClass('icon-white');\n $('#sidebar > li span.badge').removeClass('badge-inverse');\n\n if (toSelect.length > 0) {\n toSelect.addClass('active');\n $('#' + navigationPath + ' i').addClass('icon-white');\n $('#' + navigationPath + ' span.badge').addClass('badge-inverse');\n }\n}", "updateCurrent() {\n let currentPage = page.getBasePath() + page.getCurrentFile();\n let current = this.navEl_.querySelector('a.current');\n if (current) {\n let href = current.getAttribute('href');\n if (href === currentPage) {\n return;\n }\n current.classList.remove('current');\n }\n\n let link = this.navEl_.querySelector(`a[href=\"${currentPage}\"]`);\n if (link) {\n link.classList.add('current');\n }\n }", "function change_menu_class(){\n var scrollPos = $(document).scrollTop();\n if (scrollPos >= $('.main-navigation').outerHeight()) {\n $('.main-navigation').addClass(\"active-background\");\n } else {\n $('.main-navigation').removeClass(\"active-background\");\n $('body').css(\"padding-top:0;\");\n }\n if (scrollPos >= $('.main-header').outerHeight()) {\n $('body').addClass(\"padding-active\");\n } else {\n $('body').removeClass(\"padding-active\");\n }\n }", "function selectPageNavLink(selector)\n\t{\n\t\t$('#page-nav a.selected').removeClass('selected');\n\t\t$(selector).addClass('selected');\n\t}", "function setActiveNav() {\n if ($('h3').html() === 'My Quizzes') {\n $('#navMyQuizzes').closest('li').\n addClass('active');\n $('#sideNavMyQuizzes').closest('li').\n addClass('active');\n return;\n }\n\n if ($('#createQuiz').length) {\n $('#navNewQuiz').closest('li').\n addClass('active');\n $('#sideNavNewQuiz').closest('li').\n addClass('active');\n return;\n }\n\n if ($('.quiz-search').length) {\n $('#navQuizSearch').closest('li').\n addClass('active');\n $('#sideNavQuizSearch').closest('li').\n addClass('active');\n return;\n }\n\n if ($('#editUserModal').length) {\n $('#navUserAdmin').closest('li').\n addClass('active');\n $('#sideNavUserAdmin').closest('li').\n addClass('active');\n return;\n }\n\n if ($('#loginForm').length) {\n $('#navLogin').closest('li').\n addClass('active');\n $('#sideNavLogin').closest('li').\n addClass('active');\n return;\n }\n\n if ($('#register').length) {\n $('#navRegister').closest('li').\n addClass('active');\n $('#sideNavRegister').closest('li').\n addClass('active');\n }\n\n}", "function setURLandNav(){\n let\n s = document.querySelectorAll('nav ul li a'),\n a = document.querySelectorAll('section');\n \n if(s.length>0){\n Array.prototype.forEach.call(s, function(elm, idx){ \n removeClass(elm,'active');\n });\n \n Array.prototype.forEach.call(a, function(el, i){\n if(el.querySelector('h2')){\n if (elementInViewport(el.querySelector('h2'))) {\t\n console.log(el.querySelector('h2').textContent);\n Array.prototype.forEach.call(s, function(elm, idx){ \n if(elm.href.indexOf('#'+el.id)>-1 && Math.max(document.body.scrollTop,document.documentElement.scrollTop)>50){\t\n history.pushState(null, null, \"#\"+el.id);\t\n addClass(elm,'active');\n } else {\n removeClass(elm,'active');\n }\n });\n } \n } else {\n if (elementInViewport(el)) {\t\n Array.prototype.forEach.call(s, function(elm, idx){ \n if(elm.href.indexOf('#'+el.id)>-1 && Math.max(document.body.scrollTop,document.documentElement.scrollTop)>50){\t\n history.pushState(null, null, \"#\"+el.id);\t\n addClass(elm,'active');\n } else {\n removeClass(elm,'active');\n }\n });\n } \n }\n });\n if(Math.max(document.body.scrollTop,document.documentElement.scrollTop)<50){\n addClass(s[0],'active');\n }\n }\t \t\n }" ]
[ "0.76408577", "0.7418786", "0.737805", "0.70966727", "0.7017602", "0.70118827", "0.6985208", "0.6973471", "0.6919579", "0.6895767", "0.6824916", "0.67649335", "0.673893", "0.6721831", "0.6684298", "0.6644306", "0.663242", "0.6631638", "0.66258645", "0.66185796", "0.6606134", "0.6509305", "0.64673936", "0.64608836", "0.64555585", "0.6417821", "0.64157754", "0.6401713", "0.6391228", "0.63903534", "0.637002", "0.6363909", "0.63583624", "0.63369536", "0.6334799", "0.6330454", "0.6328961", "0.6319766", "0.6287323", "0.627117", "0.6259012", "0.62293446", "0.62271595", "0.6221908", "0.62170875", "0.62047565", "0.62019336", "0.62012315", "0.6193666", "0.6147943", "0.6122753", "0.61163354", "0.6108989", "0.610284", "0.6101808", "0.60986036", "0.60977155", "0.60957325", "0.6082396", "0.6064837", "0.6056078", "0.6055614", "0.6038494", "0.60265553", "0.60195947", "0.60193276", "0.6016463", "0.60139245", "0.59706384", "0.59531987", "0.59324664", "0.59248024", "0.5923272", "0.590214", "0.5897241", "0.5896799", "0.58945376", "0.58938825", "0.58910733", "0.5873634", "0.58602595", "0.5854546", "0.5853696", "0.5842012", "0.58391726", "0.5830217", "0.5826618", "0.58189887", "0.58165896", "0.58140314", "0.58115107", "0.58081", "0.58078504", "0.5807089", "0.58015037", "0.5795608", "0.57914245", "0.57851535", "0.5783428", "0.5773352" ]
0.583272
85
at click of reset button do function resetGame()
function resetGame(){ // declares function to resetGame() for(var i=0; i<9; i++){ // counts til 9th square is reached theSquares[i].innerText=""; // clears the X and O theSquares[i].style.backgroundColor=""; // clears the colors } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function actionOnResetClick () {\n gameRestart();\n }", "function resetButton() {\n $('#reset').click(function() {\n startGame(gameSpaces);\n })\n}", "function reset() {\n // make a new game object\n myGame = new Game('X');\n // update the view\n updateView();\n document.getElementById(\"status\").innerHTML = \"Start Game!\";\n document.getElementById(\"reset-btn\").innerHTML = \"Reset Game\";\n}", "function reset() {\n //Reset the game\n channelResetGame();\n }", "function resetGame() {\n resetClockAndTime();\n resetMoves();\n resetStars();\n initGame();\n activateCards();\n startGame();\n}", "function resetGame() {\n clearGameCards();\n resetMoves();\n resetTimer();\n}", "function resetGame() {\n resetClockAndTime();\n resetMoves(); \n resetRatings();\n startGame();\n}", "function resetGame() {\n resetTimer();\n resetMoves();\n resetStars();\n shuffleDeck();\n resetCards();\n}", "function gameReset () {\n var btn = document.getElementById(\"resetGame\");\n if(btn.onclick) {\n reset();\n }\n}", "function resetButtonPressed() {\n reset();\n}", "function reset(){\n\n theme.play();\n\n gameState = PLAY;\n gameOver.visible = false;\n restart.visible = false;\n \n monsterGroup.destroyEach();\n \n Mario.changeAnimation(\"running\",MarioRunning);\n\n score=0;\n\n monsterGroup.destroyEach();\n\n \n}", "function resetGame() {\n\n\t// show it (when page loads the bugs are hidden)\n\t$(\".bug-bg\").css({\n\t\t\"display\": \"block\"\n\t});\n\n\t// reset state vars\n\tcurrentHighestIndex = 0;\n\tnumberErrors = 0;\n\n\tplaySound('#resetSound');\n\n\t// reset visuals\n\t$(\"#currentHighestIndex\").html(currentHighestIndex);\n\t$(\"#numberErrors\").html(numberErrors);\n\t// remove all boxes\n\t$(\".hidden-btn\").removeClass(\"correct\").removeClass(\"incorrect\");\n}", "function gameReset(){\n\t\t\tshowAction(\"RESET!\");\n\t\t\tif(timer) gameEnd();\n\t\t\t$(\".info .timer .sec\").text(0);\n\t\t\t$(\".info .timer .sectext\").hide();\n\t\t\ttime = null;\n\t\t\tcardsleft = settings.cardcnt;\n\t\t\t$(\"#wrap-gameboard li.flip\").removeClass(\"found selected flip\");\n\t\t\t$(\"#wrap-gameboard li.hover\").removeClass(\"hover\");\n\t\t}", "function resetGame() {\n gBoard = buildBoard();\n gGame.shownCount = 0;\n gGame.isOn = false;\n gLivesCount = 3;\n}", "function reset(){\r\n gameState = PLAY;\r\n gameOver.visible = false;\r\n // restart.visible = false;\r\n enemiesGroup.destroyEach();\r\n blockGroup.destroyEach();\r\n stars1Group.destroyEach();\r\n stars2Group.destroyEach();\r\n candyGirl.addAnimation(\"running\", candygirl_running);\r\n score = 0;\r\n}", "function resetGame() {\n console.log(\"resetGame was called\");\n}", "function reset() {\n timesPlayed = -1;\n right = 0;\n wrong = 0;\n startGame ();\n }", "function resetGame() {\n // reset game by going through buttons\n for (var i=0; i < buttons.length; i++) {\n buttons[i].style.backgroundColor = ''; // change color back to original\n buttons[i].innerHTML = ''; // delete x's and o's\n }\n gameover = false;\n }", "function resetGame (e) {\n round = 0;\n win = 0;\n lose = 0\n tie = 0;\n const roundNumber = document.getElementById('round');\n const intro = document.getElementById('intro');\n const computer = document.getElementById('computer');\n const outcome = document.getElementById('outcome');\n const winNumber = document.getElementById('win');\n const lossNumber = document.getElementById('loss');\n const tieNumber = document.getElementById('tie');\n intro.innerText = 'Five Rounds';\n computer.innerText = 'One winner';\n outcome.innerText = 'Make your choice';\n roundNumber.innerText = `Round: ${round}`;\n winNumber.innerText = `Win: ${win}`;\n lossNumber.innerText = `Lose: ${lose}`;\n tieNumber.innerText = `Tie: ${tie}`;\n restartButton.style.display = 'none';\n}", "function resetGame(){\n game_mode='';\n player_sequence=[];\n game_sequence=[];\n player_clicks = 0;\n createGame();\n}", "function resetGame() {\n counter = 0;\n }", "function reset() {\n\t\t/**\n\t\t * TODO: create initial game start page and additional\n\t\t * \tinteractivity when game resets once understand more about\n\t\t * animation\n\t\t */\n\t}", "function resetGame() {\n clearGame();\n levelSpace.innerHTML = \"Press Start/Stop to Begin\";\n}", "function resetClick(event) {\n resetGame();\n const winnerName = document.getElementById(\"winner-name\");\n winnerName.innerText = \"\";\n const winnerDisplay = document.getElementById(\"winner-display\");\n clearBoard();\n winnerDisplay.style.display = \"None\";\n}", "function resetGame() {\n \n // reset varaibles\n wrong = 0;\n correct = 0;\n index = -1;\n \n // Update HTML\n clearContent();\n\n // Restart game\n loadQuestion();\n }", "function resetGame() {\n localStorage.setItem('Game.State', null);\n document.querySelector('.moves').textContent = \"0\";\n \n if (cardDeck) {\n cardDeck.clear();\n }\n \n cardDeck = new CarDeck();\n cardDeck.shuffle();\n bindClickEvent();\n \n cardDeck.cards.forEach(card => {\n card.closeCard()\n card.unmatch()\n });\n \n state = {\n matchingCard: null,\n isMatching: false,\n totalMoves: 0,\n elapsedSeconds: 0,\n isGameOver: false\n }\n \n updateScreenMode(true)\n }", "function gameReset() {\n\t//maybe add gameOverStatus\n\t//initial gameStatus\n\tcounter = 100;\n\tgameOverStatus = false;\n\twindow.location.hash = \"#game-board\";\n\tmessageBoard.innerText = \"Game Start!\\n\" + \"Current Score: \" + counter + \" points\";\n\tshuffleCards();\n}", "function resetGame() {\n matched = 0;\n resetTimer();\n resetMoves();\n resetStars();\n resetCards();\n shuffleDeck();\n}", "function resetGame(){\n setWinner(undefined)\n setPlayerBoard(()=> GameBoard('player'))\n setAiBoard(()=> GameBoard('ai'))\n setAI(() => Player('ai'))\n setIsPlayerTurn(true)\n setUpGame()\n }", "gameReset() {\n console.log('reset!');\n }", "function resetGame() {\n\tresetClockAndTime();\n\tresetMoves();\n\tresetStars();\n\tshuffleDeck();\n\tresetCards();\n\tmatched = 0;\n\ttoggledCards = [];\n}", "function resetGame() {\n // Hide what was chosen during last round\n $(\".choice\").attr(\"hidden\", true);\n // Display the game choice buttons\n $(\".game\").attr(\"hidden\", false);\n $(\".game\").css(\"visibility\", \"visible\");\n // Update the player instructions.\n v_message = \"Make your choices ...\";\n updateDatabase();\n}", "function resetGame() {\n cardShuffle();\n resetBoard();\n cardsInPlay = [];\n cardInPlayId = -1;\n}", "function resetCurrentGame() {\n clearGameCards();\n resetMoves();\n resetTimer();\n startGame();\n resetGameSound();\n}", "function resetGame() {\n deck.innerHTML = '';\n tally.textContent = 0;\n seconds = 0;\n minutes = 0;\n moves = 0;\n stars.innerHTML = '';\n pairedCards = [];\n setupDeck();\n modal.style.display = 'none';\n}", "function resetGame() {\n\t$(\"#reset-button\", \"#main\").click(function(){\n\t\tif (button_lock) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Hide and change appropriate css fields\n\t\tdocument.getElementById(\"question-answer-container\").style.visibility = \"hidden\";\n\t\thideAnswers();\n\t\tdocument.getElementById(\"stats\").style.visibility = \"hidden\";\n\t\tdocument.getElementById(\"menu\").style.visibility = \"visible\";\n\t\tdocument.getElementById(\"reset-button\").style.visibility = \"hidden\";\n\t\tdocument.getElementById(\"status\").style.visibility = \"hidden\";\n\t\tdocument.getElementById(\"question\").textContent = \"Loading...\";\n\t\tArray.from(document.getElementsByClassName(\"help-item\")).forEach(\n\t\t function(element) {\n\t\t \telement.style.background = \"#ffd6a1\";\n\t\t }\n\t\t);\n\t\t// Reset audience and friend help text \n \tvar audience_help = document.getElementById(\"audience-help\");\n \tif (audience_help.textContent != \"Ask Audience\") {\n \t\taudience_help.textContent = \"Ask Audience\";\n \t}\n \tvar friend_help = document.getElementById(\"friend-help\");\n \tif (friend_help.textContent != \"Call a Friend\") {\n \t\tfriend_help.textContent = \"Call a Friend\";\n \t}\n \t// Reset money levels\n\t\tArray.from(document.getElementsByClassName(\"money-level-item\")).forEach(\n\t\t function(element) {\n\t\t \tif (element.firstChild.textContent == \"1\") {\n\t\t \t\telement.id = \"current-level\";\n\t\t \t} else if (element.id == \"current-level\") {\n\t\t \t\telement.id = \"\";\n\t\t \t}\n\t\t }\n\t\t);\n\t\tmoney_level = 1;\n\t\tbutton_lock = false;\n\t\tusedHelps = [];\n\t}); \n}", "function restartButton(k) {\n resetGame(k);\n }", "function resetFromPopUp() {\n hideEndGameBox();\n console.log(helperObj.ResetGame);\n helperObj.ResetGame();\n}", "resetGame() {\n DATA.boardCells = [0, 1, 2, 3, 4, 5, 6, 7, 8];\n VIEW.resetView();\n document.getElementById(\"main-game\").addEventListener('click', MODIFIER.turn, false);\n }", "function gameReset() {\r\n\tgameState.score = 0;\r\n\t$(\"#score\").html(\"Points: <br>\"+gameState.score);\r\n\t$(\"#wins\").html(\"Wins: \"+gameState.wins);\r\n\t$(\"#losses\").html(\"Losses: \"+gameState.losses);\r\n\tgameState.match = getRandom(19,120);\r\n\t$(\"#randomNum\").html(\"Match: <br>\"+gameState.match);\r\n\tgameInit()\r\n}", "function resetGame(){\n console.log(gamePaused);\n gamePaused=false;\n console.log(gamePaused);\n if(!gamePaused && !stopGame){\n removeModal(); \n playGame();\n } else{\n removeModal();\n addCirclesToHoverBar();\n //clearing all dots of game board\n clearGameBoard();\n clearMessageBoard(); \n changeMessageBoardBG(\"none\"); \n stopGame=false;\n count=30;\n startGame();\n } \n}", "function gameReset() {\n result = 0;\n randomNumber();\n randomButtons();\n $(\"#result\").empty();\n }", "function NewGameReset(){\n\t\tconsole.log(\"Game Reset\");\n\n\t\t\n\t\t//Clear Score value and color\n\t\tUtil.one(\"#score\").innerHTML = 0;\n\t\tUtil.one(\"#points\").setAttribute(\"class\", \"grey_background\");\n\t\tUtil.one(\"#score\").setAttribute(\"class\", \"grey_background\");\n\t\tUtil.one(\"#point_text\").setAttribute(\"class\", \"grey_background\");\n\t\t\n\t\t\n\t\t//Reset all event flags\n\t\tcrushing_in_progress = false;\n\t\tshowing_hint = true;\n\t\tlastmove = new Date().getTime();\n\t\t\n\t\t\n}", "function reset_game(){\n correctGuesses = 0;\n wrongGuesses = 0;\n questionNum = 0;\n timeLeft = 7;\n clicked=false;\n $(\"#start\").show(); \n}", "function reset() {\n $('.game-field').html('');\n game.moves = 1;\n $('.game-field').attr('onClick', 'icon(this.id)');\n $('.win').removeClass('win');\n setTimeout(firstMove, 200);\n }", "function resetme(){\n\tinitiateBoard();\n\tmode=0;\n\tdisplay(0);\n}", "function reset() {\n gameMode = modeSelector.options[ modeSelector.selectedIndex ].value;\n gameDifficulty = difficultySelector.options[ difficultySelector.selectedIndex ].value;\n if ( gameDifficulty === \"Easy\" ) {\n playGame( 3 );\n } else {\n playGame( 6 );\n }\n}", "function handleReset(click) {\n turnCount = 0;\n init();\n}", "function resetGame(e) {\n playerScore = 0, computerScore = 0\n document.getElementById(\"player-score\").textContent = \"You: 0\"\n document.getElementById(\"computer-score\").textContent = \"PC: 0\"\n window['end-screen'].style.visibility = 'hidden'\n game.style.visibility = 'visible'\n}", "function resetGame(){\n\t\trandomNumber = getRandomIntInclusive(19,120);\n\t\t// debugger;\n\t\t$.each($(\".gem-buttons input\"), function(index, element){\n\t\t\t// debugger;\n\t\t\t$(element).val(getRandomIntInclusive(1,12));\n\t\t});\n\n\t\ttotalScore = 0;\n\t\t\n\t\t$(\"#total-score\").text(totalScore);\n\t\t$(\"#random-number\").text(randomNumber);\n\t}", "async function reset() {\n if (game == null) {\n return;\n }\n game.reset();\n await calcQValuesAndBestAction();\n game.render();\n /*\n renderSnakeGame(gameCanvas, game,\n showQValuesCheckbox.checked ? currentQValues : null);\n gameStatusSpan.textContent = 'Game started.';\n stepButton.disabled = false;\n autoPlayStopButton.disabled = false;\n */\n\n}", "function resetGame() {\n counter = 0;\n correctCounter = 0;\n incorrectCounter = 0;\n unansweredCounter = 0;\n timer = 30;\n startGame();\n timerHolder();\n }", "function restart(){\n myGameArea.reset();\n}", "function ResetGame () {\n\t$(\"#Reset\").html(\"<button id=ResetBtn>Reset The Game</button>\")\n\t$(\"#ResetBtn\").click(function() {\n\t\tlocation.reload();\n\t});\n}", "function resetGame() {\n moves = 0;\n match_found = 0;\n $('#deck').empty();\n $('#stars').empty();\n $('#game-deck')[0].style.display = \"\";\n $('#sucess-result')[0].style.display = \"none\";\n game_started = false;\n timer.stop();\n $('#timer').html(\"00:00:00\");\n playGame();\n}", "function resetGame(){\n console.log('stopGame clicked');\n window.location.reload();\n}", "resetGame() {\n this.winner = null;\n this.grid.resetGrid();\n }", "function resetButtonListener() {\n let resetButton = document.getElementById(\"resetButton\");\n resetButton.addEventListener(\"click\", resetGame);\n}", "function reset() {\n time = 120;\n gameRun = false;\n }", "function resetGame() {\n userScore = 0;\n computerScore = 0;\n gameSwitch(winningScore);\n}", "function resetGame(){\n $(\".timer\").hide();\n $(\".game-container\").hide();\n $(\".answer-container\").hide();\n $(\".endGame\").hide();\n $(\"#start\").show();\n }", "function resetGame() {\n stopGoodTones();\n stopErrTone();\n clearScore();\n game.genSeq = [];\n game.playerSeq = [];\n game.err = false;\n }", "function gameReset() {\n totalScore = 0;\n setupGame();\n }", "function resetGame() {\n stopPongGame();\n\n // reset positions\n\n // reset scores\n\n // start game again\n}", "function resetGame() {\n timer.stop();\n startGame();\n}", "function resetGame() {\n randomizer();\n attempt = 0;\n $(\".showTarget\").text(target);\n $(\".showAttempt\").text(attempt);\n $(\".showWins\").text(wins);\n $(\".showLosses\").text(losses);\n }", "resetGame() {\n record = record;\n modalGameOver.classList.add('active');\n showHeart.innerHTML = 0;\n showScore.innerHTML = `${score}`;\n showRecord.innerHTML = `${record}`;\n player.reset();\n this.resetPosition();\n }", "function resetGame() {\n\t$('.box').removeClass('played');\n\t$('.box').removeClass('U-turn');\n\t$('.box').removeClass('I-turn');\n\t$('.box').html('');\n\t$('.box').addClass('free');\n\tisPlayerOne = true;\n\tisPlayerTwo = false;\n\n}", "function resetGame() {\n\t// Repopulate card deck\n\tcardDeck = masterDeck.map(function(card) { return card }); \n\t// Empty all containers of their elements\n\t$('#game-board').html('')\n\t$('#p1-hand').html(''); \n\t$('#p2-hand').html('');\n\t$('#p1-points').html('');\n\t$('#p2-points').html('');\n\t$('#turn-count').html('');\n\t// Reset board array\n\tgameBoard = [0, 1, 2, 3, 4, 5, 6, 7, 8]; \n\t// Reset turn count\n\tturnCount = 0;\n\t// Reset points\n\tplayer1.points = 5; \n\tplayer2.points = 5;\n}", "function resetGame() {\n \n var highScore = highScoreCount.value;\n counter = parseInt(elScoreboard.value);\n \n if(highScore == '' && !isNaN(counter)) {\n highScoreCount.value = counter;\n }\n \n else {\n highScore = parseInt(highScore);\n \n if(counter > highScore) {\n highScoreCount.value = counter;\n }\n }\n \n //class needs to implement reseting the game\n //also keep track of high score\n elScoreboard.value = '';\n \n //bring counter back to 0\n counter = 0;\n gameoverModal.style.display = 'none';\n \n //call the shuffleBoard() method to shuffle the elements\n shuffleBoard();\n \n //Call the addPieceEvents()\n addPieceEvents();\n }", "function resetGame() {\n\t$(\"#content\").hide();\n\tquestionNumber = 0;\n\ttotalCorrect = 0;\n\ttotalIncorrect = 0;\n\ttotalUnanswered = 0;\n\tgenerateText();\n\t$(\"#time-remaining\").show();\n\t$(\"#display\").show();\n\tstopwatch();\n}", "function resetGame() {\n gameStart();\n stopTimer();\n resetStars();\n resetCards();\n moves = 0;\n movesText.innerHTML = '0';\n second = 0;\n minute = 0;\n hour = 0;\n clock.innerHTML = '0:00';\n}", "function resetGame(){\t\t\n\thasStarted=false;\n\tinput=-1;\n\tsequence=[];\n\tlevel=0;\n\tdisplay(\"--\");\n\tsetTimeout(function(){\n\t\t\t$(\"#board div\").removeClass(\"clickable\");\n\t\t},500);\t\n}", "function resetGame() {\n\n gameOver = false;\n state = `menu`;\n\n scoreMoney = 0;\n score = 0;\n\n setup();\n\n // clearInterval of mouse \n if (minigame1) {\n clearInterval(mousePosInterval);\n }\n // Resets the fishies\n if (minigame2) {\n for (let i = 0; i < NUM_FISHIES; i++) {\n let fish = fishies[i];\n fish.reset();\n }\n }\n}", "function resetGame () {\n clearBoard();\n window.location.reload();\n}", "function resetGame() {\r\n shuffle(deck);\r\n gameStart();\r\n dealerarea.innerHTML = \"\";\r\n playerarea.innerHTML = \"\";\r\n winnerarea.innerHTML = \"\";\r\n playerHand.firsttotal = 0;\r\n dealerHand.firsttotal = 0;\r\n playerHand.secondtotal = 0;\r\n dealerHand.secondtotal = 0;\r\n }", "function resetGame() {\n sequence = [];\n playerSequence = [];\n turn = 0;\n clearInterval(turnSpeed);\n clearTimeout();\n $(\"#turnsTaken\").text(\"-\");\n resetButton.classList.add(\"hide-content\");\n startButton.classList.remove(\"hide-content\");\n}", "resetGame() {\n document.getElementById(\"overlay\").className = \"start\";\n //On screen Keyboard Reset\n const qwerty = document.getElementById(\"qwerty\");\n const qwertyButtons = qwerty.querySelectorAll(\"button\");\n qwertyButtons.forEach(button => {\n button.className = \"key\"; // change back to key\n button.disabled = false; // enable all buttons\n });\n\n //Missed Reset\n this.missed = 0;\n\n //Hearts Resets\n const images = document.querySelectorAll(\"li img\");\n for (const i of images) {\n i.src = \"images/liveHeart.png\";\n }\n\n //display blocks\n const ul = document.querySelector(\"#phrase ul\");\n while (ul.firstChild) {\n // while ul has firstChild, another way to clear the li items\n ul.removeChild(ul.firstChild); //remove that firstChild\n }\n }", "function resetGame () {\n turns = 0;\n $('#winMessage').hide();\n $('#loseMessage').hide();\n $('#drawMessage').hide();\n $('.field').removeClass('classX');\n $('.field').removeClass('classO');\n $('#playerPoints').html(playerPoints);\n $('#computerPoints').html(computerPoints);\n $('#draws').html(draws);\n }", "function reset(){\r\n\tclearInterval(id_call);\r\n\tinit_game();\r\n}", "function resetGame() {\n toggleMenu(Menu.MAIN);\n $('#statsOutput').hide();\n $('#ammoBarsContainer').hide();\n scene.stopMusic();\n renderer.clear(false, true, true);\n scene = new TheScene(renderer.domElement);\n}", "function resetGame() {\n alert('Resetting game, please wait...');\n createGrid();\n}", "function resetGame() {\n if (dinoStegosaurus.foodEaten + dinoTriceratops.foodEaten >= 20) {\n tornado.reset();\n }\n if (dinoStegosaurus.foodEaten + dinoTriceratops.foodEaten >= 30) {\n fire.reset();\n }\n if (dinoStegosaurus.foodEaten + dinoTriceratops.foodEaten >= 40) {\n meteor.reset();\n }\n foodLeaves.reset();\n foodBerries.reset();\n foodPlant.reset();\n dinoStegosaurus.reset();\n dinoTriceratops.reset();\n gameOverScreen = false;\n titleScreen = true;\n instructionsScreen = false;\n gameWon = false;\n}", "function resetGame() {\n gameover = false;\n questionsLeft = quizInfo.length;\n x=0;\n score=0;\n $('#score').text(score);\n $('#answer-3').css(\"display\",\"block\");\n $('#playagain').css(\"display\",\"none\");\n nextQuestion();\n }", "function resetGame(){\n btn.style.display = \"none\";\n playerTurn.classList.remove('win');\n game.style.display = \"grid\";\n playerTurn.innerHTML = `Player 'X' Turn`;\n boxes.forEach(box=>{\n box.innerHTML = \"\";\n });\n playerFirstPlaying = true;\n playerWin = \"\";\n}", "function reset_game(){\n\trestarted = true;\n\tstart_mash();\n\tclear_background();\n\tdocument.getElementById(\"futurebutton\").innerHTML = \"Calculate Future!\";\n\tdocument.getElementById(\"mash_house\").style.display = \"none\";\n\t\n\t//unhide inputs and clear values\n\tfor (var i = 0; i < inputs.length; i++) {\n inputs[i].style.display=\"inline-block\";\n\tinputs[i].value = \"\";\n\tinputs[i].placeholder= \"Type here or pick a random entry\";\n\t}\n\tfor (var i = 0; i < rButtons.length; i++) {\n rButtons[i].style.display=\"inline-block\";\n}\n\t\n\t//change div width back\n\tfor (i = 0; i <divs.length; i++){\n\t divs[i].style.width = \"30%\";\n }\n\t\n\t//clear past choices\n \n\nfor (var i = 0; i < sp.length; i++) {\n sp[i].value=\"\";\n\tsp[i].style.display=\"none\";\n}\n//started is false so player_selection() will be activated\n\tstarted = false;\n}", "function resetGame() {\n\tcards = [];\n\tcardsDisplayed = 0;\n\tclearTimeout(timer);\n\ttoggleNumbers();\n\t$('#timer').html('30');\n\t$('.card').each(function() {\n\t\t$(this).html('&nbsp;');\n\t\t\n\t}); // end each\n\t$('#total').html('&nbsp;');\n\t$('#answer').text('');\n\t$('.card').each(function() {\n\t\tif ($(this).hasClass('disabled')) {\n\t\t\t$(this).removeClass('disabled');\n\t\t}\n\t\tif ($(this).hasClass('pause')) {\n\t\t\t$(this).removeClass('pause');\n\t\t}\n\t}); // end each\n\t$('#variables').html('');\n\tuserVariables = [];\n\t$('#notice').fadeOut();\n\t\n}", "function resetGame()\n{\n clearInterval(doAnimation);\n isfarmerRight = isseedsRight = isfoxRight = ischickenRight = false;\n \n updateImages(); //Place and size the images.\n setButtonsAndMessage(false, false, false, false, MSGINTRO);\n}", "function reset() {\n resetButton.innerHTML = \"RESET\";\n winner.classList.add(\"hide\");\n numShotsOne.innerHTML = 0;\n numShotsTwo.innerHTML = 0;\n numGoalsOne.innerHTML = 0;\n numGoalsTwo.innerHTML = 0;\n resetSpan.classList.remove(\"hide\");\n leftDiv.classList.add(\"possessionIndicator\");\n rightDiv.classList.remove(\"possessionIndicator\");\n toggleTeamDivs();\n running = true;\n}", "function reset() {\n\n gameState = true;\n\n //resets theme after win/lose.\n versus.play();\n if (gamestartaudio.play) {\n gamestartaudio.pause();\n } else {\n gamestartaudio.currentTime = 0\n }\n audioLose.pause();\n\n\n document.getElementById(\"gamestart\").innerHTML = \"Type a letter to begin!\"\n document.getElementById('button').innerHTML = \"RESET\"\n\n //reset code\n chosenCharacter = character[Math.floor(Math.random() * character.length)].name\n lettersinCharacter = chosenCharacter.split('');\n characterBlanks = lettersinCharacter.length;\n //reset variables\n letterGuessed = 0;\n rightGuess = 0;\n guessesleft = 5;\n guessedLetters = [];\n wrongLetter = [];\n answersArray = [];\n test = false;\n gamestart();\n}", "function reset() {\n status.gameArr = [];\n status.level = 0;\n topLeft.off();\n topRight.off();\n bottomLeft.off();\n bottomRight.off();\n status.running = false;\n level.html(\"0\").css(\"color\", 'red');\n start.html('<i class=\"fa fa-play\"></i>').css('color', 'red');\n}", "function resetGame() {\r\n\t\r\n\t\tfor(var i=0; i<board.length; i++) {\r\n\t\t\tboard[i].innerHTML = \" \";\r\n\t\t\tboard[i].style.color = 'navy';\r\n\t\t\tboard[i].style.backgroundColor = 'transparent';\r\n\t\t}\r\n\t\tgameOver = false;\r\n\t\tempty = 9;\r\n\t\tsetMessage(player + \" gets to start.\");\r\n\t\tsetMessage2(\"Go!\");\r\n\t\tconsole.log(\"visited resetGame\");\r\n\t}", "function resetGame() {\n Swal({\n title: \"Chắc chắn?\",\n text: \"Bạn có chắc muốn tạo ván mới?\",\n type: \"warning\",\n confirmButtonText: 'Tạo',\n focusCancel: true,\n cancelButtonText: 'Hủy',\n showCancelButton: true,\n cancelButtonColor: '#d33'\n }).then((result) => {\n if (result.value) {\n socket.emit('client_send_want_reset', player_name);\n\n Swal({\n title: \"Đang chờ...\",\n text: \"Đang chờ người kia đồng ý tạo ván mới.\",\n type: \"success\"\n })\n }\n })\n }", "function resetGame() {\n window.cancelAnimationFrame(anim_id);\n playing = false;\n score = 0;\n level = 1;\n new_game = true;\n speed = init_speed\n direction = ''\n snake.reset(init_speed);\n fruit.reset();\n }", "function reset() {\n gameOver = false;\n whoseTurn = 'playerOne';\n $('td').html(\"\");\n playerOneMoves = [];\n playerTwoMoves = [];\n $(\"#XO\").modal(\"show\");\n }", "function resett() {\n endGame = false;\n\n py1.score = 0;\n py2.score = 0;\n py1.score.textContent = 0;\n py2.score.textContent = 0;\n\n py1.score.classList.remove(\"winner\", \"lost\");\n py2.score.classList.remove(\"winner\", \"lost\");\n\n winGame.classList.remove(\"endMsg\");\n\n py1.button.textContent = \"Player 2\";\n py2.button.textContent = \"Player 1\";\n inputScore.value = 0;\n\n name1 = \"\";\n name2 = \"\";\n\n winGame.textContent = \"\";\n}", "function resetGame() {\n location.reload();\n }", "function onGameReset()\n{\n // Goto game\n background0.style.display = 'block';\n background1.style.display = 'block';\n gameOverScreen.style.display = 'none';\n\n // Reset opacity\n background0.style.opacity = 1;\n background1.style.opacity = 1;\n gameOverScreen.style.opacity = 0;\n finishLine.style.opacity = 0;\n counts[5] = 0;\n\n // Reset Racers\n racer0.style.left = 0;\n racer1.style.left = 0;\n raceCompelted0 = 0;\n raceCompelted1 = 0;\n raceOver = !raceOver;\n endSquence = !endSquence;\n temp = 1;\n temp1 = 0;\n\n // Reset winning img\n winningImg.src = '';\n}", "function resetGame () { \n\t\t\t\t\t\t\tblueNum = 0;\n\t\t\t\t\t\t greenNum = 0;\n\t\t\t\t\t\t\tredNum = 0;\n\t\t\t\t\t\t\tyellowNum = 0;\n\t\t\t\t\t\t scoreResult=0;\n\t\t\t\t\t\t\ttargetScore = 0;\n\t\t\t\t\t\t\tgetNumber(); // Restart the game and assigns new traget number\n\t\t\t\t\t\t\tscoreBoard(); // Update the score board with new values.\n\t\t}", "function resetGame(evt) {\n 'use strict';\n /* Variables for current player & last play to reset */\n var lastPlayDisplay = document.getElementById(\"lastPlayMade\");\n var currentPlayerDisp = document.getElementById('currentPlayer');\n lastPlayDisplay.innerHTML = \"\";\n currentPlayerDisp.innerHTML = \"\";\n generateGameGrid();\n}", "function resetClicked(evt){\n\t//hide the modal\n modalHide();\t\n\t//reset the cards\n resetCards();\n\t//reset the turn counter\n resetCounter();\n //reset the card list\n cardList = [];\n\t//reset the timer\n resetTimer();\n //reset stars\n resetStars();\n //shuffle the deck\n shuffleCards();\n}" ]
[ "0.88297737", "0.88232756", "0.85038954", "0.8400225", "0.83810043", "0.83778554", "0.8358845", "0.83370703", "0.82406944", "0.82359594", "0.8162039", "0.8131504", "0.8105617", "0.810352", "0.8078351", "0.8075854", "0.80614007", "0.804067", "0.8040448", "0.80370116", "0.80357873", "0.8034022", "0.8033889", "0.8031597", "0.80293655", "0.80229914", "0.8010068", "0.7972009", "0.7970247", "0.7949667", "0.7949349", "0.7949001", "0.7942138", "0.79393494", "0.79379034", "0.79354125", "0.79338086", "0.79287946", "0.79271215", "0.7927054", "0.7926318", "0.79247195", "0.7919783", "0.7918893", "0.79129297", "0.7909836", "0.7899844", "0.78935665", "0.78927314", "0.7892064", "0.7878232", "0.7876955", "0.78758675", "0.7873732", "0.7869568", "0.7869434", "0.786687", "0.78627753", "0.78585356", "0.78560007", "0.7850589", "0.78461885", "0.78446424", "0.7842392", "0.78401226", "0.78383595", "0.7834846", "0.7831931", "0.783036", "0.78217286", "0.7821586", "0.78214526", "0.7814281", "0.7813352", "0.7808636", "0.780628", "0.78058034", "0.78003186", "0.7795949", "0.77916604", "0.7786044", "0.7785475", "0.7780948", "0.7773661", "0.77736574", "0.77730626", "0.7769538", "0.7767609", "0.77602965", "0.7758269", "0.774748", "0.7746585", "0.77320933", "0.77300614", "0.7729629", "0.77263975", "0.7720039", "0.77188015", "0.7718564", "0.7717318", "0.77169096" ]
0.0
-1
"Same" means, here, that the elements in b are the elements in a squared, regardless of the order. Examples Valid arrays a = [121, 144, 19, 161, 19, 144, 19, 11] b = [121, 14641, 20736, 361, 25921, 361, 20736, 361] comp(a, b) returns true because in b 121 is the square of 11, 14641 is the square of 121, 20736 the square of 144, 361 the square of 19, 25921 the square of 161, and so on. It gets obvious if we write b's elements in terms of squares: a = [121, 144, 19, 161, 19, 144, 19, 11] b = [1111, 121121, 144144, 1919, 161161, 1919, 144144, 1919]
function comp(array1, array2) { let arr = []; for (let i = 0; i < array1.length; i++) { arr.push(array1[i] * array1[i]); } if (arr === null || array2 === null || arr.length !== array2.length) { return false; } if (arr.sort().join('') === array2.sort().join('')) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function comp(a1, a2){\n if (!a1 || !a2 || a1.length !== a2.length) return false;\n return a1.map(x => x * x).sort().toString() === a2.sort().toString();\n }", "function comp(array1, array2) {\n if (Array.isArray(array1) && Array.isArray(array2)) {\n return array2.map(n => Math.sqrt(n)).sort().toString() == array1.sort().toString();\n } else {\n return false;\n }\n}", "function comp(array1, array2){\r\n let result = [], answer; \r\n if (array1 == null || array2 == null) {\r\n return false\r\n } else {\r\n var sorted_array1 = array1.sort((a,b) => a - b);\r\n var sorted_array2 = array2.sort((a,b) => a - b);\r\n }\r\n \r\n for (let i = 0; i < sorted_array1.length; i++) {\r\n for (let k = 0; k < sorted_array2.length; k++) {\r\n if (i === k) {\r\n if (Math.floor(Math.pow(sorted_array1[i],2)) === sorted_array2[k]) {\r\n result.push(true);\r\n } else {\r\n result.push(false);\r\n }\r\n }\r\n }\r\n }\r\n answer = result.includes(false) ? false : true;\r\n return answer;\r\n}", "function compArrays(a, b) {\n var i = a.length > b.length ? a.length : b.length;\n while (i--) {\n if (a[i] !== b[i]) return false;\n }\n return true\n\n}", "function comp(array1, array2) {\n function calcRoot(num) {\n const root = Math.pow(num, 1 / 2);\n if (Number.isInteger(root) && num !== 1 && num !== 0) {\n return calcRoot(root);\n } else {\n return num;\n }\n }\n\n if (!array1 || !array2) {\n return false;\n } else {\n const arr1 = array1.sort();\n const arr2 = array2.sort();\n\n let equal = true;\n for (const num of arr1) {\n const double = num * num;\n arr2Index = arr2.indexOf(double);\n arr1Index = arr1.indexOf(double);\n if (arr2Index === arr1Index) {\n equal = true;\n } else {\n equal = false;\n }\n }\n return equal;\n }\n}", "function arrayCompare(a, b) {\n //if the lengths of the two arrays are not equal, return false\n if (a.length !== b.length) return false;\n const uniqueValues = new Set([...a, ...b]);\n //otherwise iterate through the two arrays and see if their contents match\n for (const v of uniqueValues) {\n const aCount = a.filter(e => e === v).length;\n const bCount = b.filter(e => e === v).length;\n //if the contents do not match, return false\n if (aCount !== bCount) return false;\n }\n //otherwise return true\n return true;\n }", "function compare(a, b)\n{\n if(a.length != b.length){\n return false\n }\n //copy\n a = Array.from(a)\n b = Array.from(b)\n\n for(let i = 0; i < a.length; i++)\n {\n if(a[i] != b[i])\n {\n return false\n }\n }\n\n return true\n}", "function compara(a, b) {\n for (let i = 0; i < a.length; i++) {\n for (let j = 0; j < a[i].length; j++) {\n if (a[i][j] !== b[i][j]) {\n return false;\n }\n }\n }\n return true;\n }", "function ArraySquareChecker(a1,a2){\r\n // checking if the length of the both arrays is same or not\r\n if(a1.length !== a2.length){\r\n return false;\r\n }\r\n // checking if the correct square number is present in the second array in correct frequency or not.\r\n else{\r\n for(let i=0;i<a1.length;i++){\r\n let orderIndex = a2.indexOf(a1[i] ** 2);\r\n if(orderIndex===-1){\r\n return false;\r\n }\r\n else{\r\n a2.splice(orderIndex,1); \r\n }\r\n \r\n }\r\n // resulting out the message for the perfect match for the square in the second array\r\n if(a2.length===0){\r\n return true;\r\n }\r\n }\r\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n }", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n }", "function compArrs(arrA, arrB) {\n\t\tvar flag = true;\n\t\tvar lenA = arrA.length;\n\t\tvar lenB = arrB.length;\n\n\t\tif (lenA !== lenB) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tarrA = arrA.sort();\n\t\t\tarrB = arrB.sort();\n\t\t\tvar ind = Math.min(lenA, lenB);\n\t\t\twhile(ind--) {\n\t\t\t\tif (arrA[ind] !== arrB[ind]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn flag;\n\t}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n\n if (y < x) {\n return 1;\n }\n\n return 0;\n }", "function compare(a, b) {\n if (!a && !b) {\n return true;\n }\n if (!a || !b || a.length !== b.length) {\n return false;\n }\n for (var i = 0; i < a.length; ++i) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n return true;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n var x = a.length;\n var y = b.length;\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n }", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\t\n\t var x = a.length;\n\t var y = b.length;\n\t\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\t\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\t\n\t var x = a.length;\n\t var y = b.length;\n\t\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\t\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\t\n\t var x = a.length;\n\t var y = b.length;\n\t\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\t\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function _fnArrayCmp(aArray1, aArray2) {\n\t\t\tif (aArray1.length != aArray2.length) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\tfor (var i = 0; i < aArray1.length; i++) {\n\t\t\t\tif (aArray1[i] != aArray2[i]) {\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t}", "function same(arr1, arr2) {\n //accepts two arrays\n //return tru if every value in the array has\n //co-responding square in second array\n //value frequency must be the same\n arr1 = arr1.sort((a, b) => a - b);\n arr2 = arr2.sort((a, b) => a - b);\n for (let num1 in arr1) {\n for (let num2 in arr2) {\n if (arr2[num1] === Math.pow(arr1[num1], arr1[num1])) {\n return true\n } else {\n return false\n }\n }\n\n }\n\n}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t var x = a.length;\n\t var y = b.length;\n\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t var x = a.length;\n\t var y = b.length;\n\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t var x = a.length;\n\t var y = b.length;\n\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t var x = a.length;\n\t var y = b.length;\n\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t var x = a.length;\n\t var y = b.length;\n\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t var x = a.length;\n\t var y = b.length;\n\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t var x = a.length;\n\t var y = b.length;\n\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function compare(a, b) {\n\t if (a === b) {\n\t return 0;\n\t }\n\n\t var x = a.length;\n\t var y = b.length;\n\n\t for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n\t if (a[i] !== b[i]) {\n\t x = a[i];\n\t y = b[i];\n\t break;\n\t }\n\t }\n\n\t if (x < y) {\n\t return -1;\n\t }\n\t if (y < x) {\n\t return 1;\n\t }\n\t return 0;\n\t}", "function _fnArrayCmp( aArray1, aArray2 )\n\t\t{\n\t\t\tif ( aArray1.length != aArray2.length )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\tfor ( var i=0 ; i<aArray1.length ; i++ )\n\t\t\t{\n\t\t\t\tif ( aArray1[i] != aArray2[i] )\n\t\t\t\t{\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn 0;\n\t\t}", "function _fnArrayCmp( aArray1, aArray2 )\n\t\t{\n\t\t\tif ( aArray1.length != aArray2.length )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\tfor ( var i=0 ; i<aArray1.length ; i++ )\n\t\t\t{\n\t\t\t\tif ( aArray1[i] != aArray2[i] )\n\t\t\t\t{\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn 0;\n\t\t}", "function _fnArrayCmp( aArray1, aArray2 )\n\t\t{\n\t\t\tif ( aArray1.length != aArray2.length )\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\tfor ( var i=0 ; i<aArray1.length ; i++ )\n\t\t\t{\n\t\t\t\tif ( aArray1[i] != aArray2[i] )\n\t\t\t\t{\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn 0;\n\t\t}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}", "function compare(a, b) {\n if (a === b) {\n return 0;\n }\n\n var x = a.length;\n var y = b.length;\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}" ]
[ "0.7593977", "0.7341688", "0.70429915", "0.7008257", "0.68374234", "0.6796594", "0.6752801", "0.67153317", "0.6611535", "0.6569882", "0.6553605", "0.6552328", "0.65517277", "0.6546285", "0.65299916", "0.6472498", "0.6472498", "0.6472498", "0.646439", "0.6457488", "0.644346", "0.644346", "0.644346", "0.644346", "0.644346", "0.644346", "0.644346", "0.644346", "0.64360446", "0.64360446", "0.64360446", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135", "0.64346135" ]
0.7622596
0
WEIGHT OF SLAB NONCOMPOSITE CAPACITY
wu_nc(){ return (1.2*this.DL + 1.6*this.CL)*(this.Sj/12) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get weight() {}", "set weight(value) {}", "get weighting() { return this._weighting; }", "function Weight() {\n\tthis.value = Math.random() * .2 - .1;\n\tthis.gradient = 0;\n}", "subtreeWeight () {\n const localWeight = this.template && this.template.weight;\n\n return this.components.reduce(\n (sum, component) => sum + component.subtreeWeight(),\n localWeight\n );\n }", "get weights() { return this.w; }", "getMaxWeight() {\n mustInherit();\n }", "get legStretch() {}", "get HOUSING_WEIGHTS() { \n return [.180, .300, .170, .160, .090, .050, .040, .010];\n }", "getEmptyWeight() {\n mustInherit();\n }", "function pixelatedStrokeWeight(n) {\n strokeWeight(n * PIXELATE);\n}", "function desirableWeight() {\n var desirableWeight = userInfo[\"desirable-weight\"];\n var weight = userInfo[\"weight\"];\n var step1 = weight - desirableWeight;\n var step2 = step1 * 0.32;\n var DW = step2 + desirableWeight;\n return DW;\n}", "function findWeight(scope, array, x) {\t\n\tfor (var i=0; i<=array.length-1; i++) {\t\t\n\t\tvar _scale_y = (Math.floor(Math.random() * 5) + 1)/10;\n\t\tvar _y_val=(array[i][1]/1000)*3+200; /** (Molecular weight/1000)+150 */\n\t\tloadImagesProteins(queue.getResult(\"blue_solid_color\"), \"blue_solid_color\"+i, x, _y_val, \"\", 0, scene2_container, _scale_y, 1);\n\t\tapplyBlurFn(scope, scene2_container.getChildByName(\"blue_solid_color\"+i)); /** Applying blur effect for these loading images */\n\t}\t\n}", "function hitungBmi(weight, height) {\n return weight / (height * height);\n}", "getEffectiveWeight() {\n\n\t\treturn this._effectiveWeight;\n\n\t}", "function getDimensionWeight() {\n\tvar dimensionWeight;\n\tdimensionWeight = (getWidth() * getHeight() * THICKNESS_CM) / DIMENSION_WEIGHT_CONVERT;\n\treturn dimensionWeight.toFixed(2);\n}", "function get_shade(weight) {\n if (weight < 6) {\n return 1;\n } else if (weight < 8) {\n return 2;\n } else if (weight < 10) {\n return 3;\n } else {\n return 4;\n }\n}", "function weightedClue(clue) {\n return clue ? clue : -10;\n }", "function node_weight(d) {\r\n d.weight = links.filter(function(l) {\r\n return l.source.index == d.index // || l.target.index == d.index \r\n }).length\r\n return d.weight\r\n }", "getWeight(b) {\nreturn this.weight[b];\n}", "function weight_field(node) {\n return find_property(node, \"weight\");\n}", "getEffectiveWeight() {\n\n\t\t\treturn this._effectiveWeight;\n\n\t\t}", "set legStretch(value) {}", "limity() { return (this.scale - 1) * this.sizey / 2; }", "function new_weight_calc(x, y, a, n){\n\treturn (a[x+1][y % nodesPerLayer[x+1]]) * (n[x][floor(y / nodesPerLayer[x+1])])\n}", "function weight(kernel, bandwidth, x_0, x_i) {\n var arg = (x_i - x_0) / bandwidth;\n return kernel(arg);\n} // calculates weight for i-th obs when p > 1", "function weight(bracket){\n if(bracket.is_decoy){\n return 1;\n }else{\n return weight(bracket.branch_1) + weight(bracket.branch_2);\n }\n }", "function weight(kernel, bandwidth, x_0, x_i) {\n var arg = (x_i - x_0) / bandwidth;\n return kernel(arg);\n}", "function computeWeight(mat)\n{\n var sum=0;\n for(var int in mat)\n {\n sum+=mat[int];\n }\n if(sum>0)\n return sum;\n else\n return 1.0;\n}", "function computeNodeBreadths() {\n var remainingNodes = nodes,\n nextNodes,\n x = 0;\n \n while (remainingNodes.length) {\n nextNodes = [];\n remainingNodes.forEach(function(node) {\n node.x = x;\n node.dx = nodeWidth;\n node.sourceLinks.forEach(function(link) {\n nextNodes.push(link.target);\n });\n });\n remainingNodes = nextNodes;\n ++x;\n }\n \n //\n moveSinksRight(x);\n scaleNodeBreadths((width - nodeWidth) / (x - 1));\n }", "function init_weight_structure(){\n var x = [];\n var wireNum;\n var tempW;\n for (var layer=0; layer<nodesPerLayer.length-1; layer+=1){\n x.push([]);\n wireNum = nodesPerLayer[layer]*nodesPerLayer[layer+1];\n for (var wire=0; wire<wireNum; wire+=1){\n tempW = 0;\n if (nodesPerLayer.length > 2){\n\t tempW = 1;//(10**nodesPerLayer.length) * (10**-5)\n }\n x[layer].push(tempW);\n }\n }\n return x;\n}", "countWeights() {\n throw new Error('Unimplemented.');\n }", "function critique(type) {\n if (type === \"reset\") {\n for (i in weight) {\n weight[i] = 16.6;\n }\n return $.extend({}, weight);\n }\n\n var strength = 20;\n\n if (!weight.hasOwnProperty(type)) return; // only works if type is part of weight\n if (weight[type] == 100) return weight;\n\n oldWeightOfType = weight[type];\n weight[type] = Math.min(100, weight[type] + strength);\n\n var toSubtract = weight[type] - oldWeightOfType;\n var maxIterations = Math.round(strength * 100);\n var iterationCounter = 0;\n while (toSubtract > 0 && maxIterations >= iterationCounter) { // subtract as much from other weights as was added to weight[type]; if other weights are all 0, maxIterations prevents infinite loop\n for (i in weight) {\n if (i == type) continue;\n else {\n if (weight[i] > 0) {\n weight[i] = Math.max(0, weight[i] - 0.1); // use babysteps for more precision (otherwise if weight[i] == 0.2 and we remove 1, we have .8 too much in total)\n toSubtract -= 0.1;\n }\n }\n iterationCounter++;\n }\n }\n\n return $.extend({}, weight); // return copy of weight\n}", "function updateWeights(tasks) {\n for (var i=0 ; i<tasks.length ; i++) {\n tasks[i].weight = Math.pow(1.25, -1*tasks[i].nice) * 1024;\n }\n}", "ggw() {\n return this.cr.canvas.width / this.cr.options.scaleFactor;\n }", "function computeNodeBreadths() {\n var remainingNodes = nodes,\n nextNodes,\n x = 0;\n\n while (remainingNodes.length) {\n nextNodes = [];\n _(remainingNodes).each(function(node) {\n node.x = x;\n node.dx = nodeWidth;\n _(node.sourceLinks).each(function(link) {\n nextNodes.push(link.target);\n });\n });\n remainingNodes = nextNodes;\n ++x;\n }\n\n //\n moveSinksRight(x);\n scaleNodeBreadths((size[0] - nodeWidth) / (x - 1));\n }", "function computeNodeBreadths() {\n\t var remainingNodes = nodes,\n\t nextNodes,\n\t x = 0;\n\n\t while (remainingNodes.length) {\n\t nextNodes = [];\n\t remainingNodes.forEach(function (node) {\n\t node.x = x;\n\t node.dx = nodeWidth;\n\t node.sourceLinks.forEach(function (link) {\n\t if (nextNodes.indexOf(link.target) < 0) {\n\t nextNodes.push(link.target);\n\t }\n\t });\n\t });\n\t remainingNodes = nextNodes;\n\t ++x;\n\t } //\n\n\n\t moveSinksRight(x);\n\t scaleNodeBreadths((size[0] - nodeWidth) / (x - 1));\n\t }", "weighdown() {\n if(this.type === Node.TARGET || this.type === Node.START) return;\n if(this.type === Node.WALL) this.makeNormal();\n this.pweighted = true;\n this.psquare.classList.add('square--weighted');\n }", "function rateLetterMetered(weight) {\n if (weight <= 1.0) {\n return 0.47;\n } else if (weight <= 2.0) {\n return 0.68;\n } else if (weight <= 3.0) {\n return 0.89;\n } else if (weight <= 3.5) {\n return 1.10;\n } else {\n return rateLargeFlat(weight);\n }\n}", "function computeNodeBreadths() {\n var remainingNodes = nodes,\n nextNodes,\n x = 0;\n\n while (remainingNodes.length) {\n nextNodes = [];\n remainingNodes.forEach(function(node) {\n node.x = x;\n node.dx = nodeWidth;\n node.sourceLinks.forEach(function(link) {\n if (nextNodes.indexOf(link.target) < 0) {\n nextNodes.push(link.target);\n }\n });\n });\n remainingNodes = nextNodes;\n ++x;\n }\n\n //\n moveSinksRight(x);\n scaleNodeBreadths((size[0] - nodeWidth) / (x - 1));\n }", "getRemainingWeight() {\n return this.remainingWeight;\n }", "function computeNodeBreadths() {\n var remainingNodes = nodes,\n nextNodes,\n x = 0;\n\n while (remainingNodes.length) {\n nextNodes = [];\n remainingNodes.forEach(function(node) {\n node.x = x;\n node.dx = nodeWidth;\n node.sourceLinks.forEach(function(link) {\n nextNodes.push(link.target);\n });\n });\n remainingNodes = nextNodes;\n ++x;\n }\n\n //\n moveSinksRight(x);\n scaleNodeBreadths((width - nodeWidth) / (x - 1));\n }", "function pen_res_bw(b1, w1){\r\n let penVect = b1.pos.subtr(closestPointBW(b1, w1));\r\n b1.pos = b1.pos.add(penVect.unit().mult(b1.r-penVect.mag()));\r\n}", "function colorStretch(image) {\n return image.divide(POPULATION_VIS_MAX_VALUE)\n .pow(1 / POPULATION_VIS_NONLINEARITY);\n}", "get Weight()\n {\n return fnCalcWeight(this.Shaft, this.Length);\n }", "function PuckerAndBloatModifier() {\n }", "function computeNodeBreadths() {\r\n var remainingNodes = nodes,\r\n nextNodes,\r\n x = 0;\r\n\r\n while (remainingNodes.length) {\r\n nextNodes = [];\r\n remainingNodes.forEach(function(node) {\r\n\r\n if (node.xPos)\r\n node.x = node.xPos;\r\n else\r\n node.x = x;\r\n\r\n node.dx = nodeWidth;\r\n node.sourceLinks.forEach(function(link) {\r\n nextNodes.push(link.target);\r\n });\r\n });\r\n remainingNodes = nextNodes;\r\n ++x;\r\n }\r\n\r\n //\r\n moveSinksRight(x);\r\n scaleNodeBreadths((width - nodeWidth) / (x - 1));\r\n }", "function computeNodeBreadths() {\n let remainingNodes = nodes\n let nextNodes\n let x = 0\n\n while (remainingNodes.length) {\n nextNodes = []\n remainingNodes.forEach(function(node) {\n node.x = x\n node.dx = nodeWidth\n node.sourceLinks.forEach(function(link) {\n if (nextNodes.indexOf(link.target) < 0) {\n nextNodes.push(link.target)\n }\n })\n })\n remainingNodes = nextNodes\n ++x\n }\n\n //\n moveSinksRight(x)\n scaleNodeBreadths((size[0] - nodeWidth) / (x - 1))\n }", "function set_weight(idx) {\n\t root.nodes.forEach(function(n) {\n\t\tn.radius = n._radius[idx];\n\t\tn.value = n._values[idx];\n\t\tgimage.attr(\"transform\", function(d) { return d.answer_id ? \"scale(\" + d.radius/50 + \")\" : \"scale(\" + d.radius/100 + \")\"; });\n\t\tlink.style(\"stroke-width\", function(d) { return .5 * Math.min(d.target.radius, d.source.radius); });\n\t\tmouse_over.text(function(d) { return image_offset[d.answer_id][0] + \": \" + d.votes[idx]; })\n\t });\n\t update_charge(d3.select(\"#slider_charge\").property(\"value\"));\n\t}", "getBMIRatio() {\n const htInMeter = this.height / 100; // converts height to meter\n console.log(htInMeter);\n return this.weight / (htInMeter * htInMeter);\n }", "function rateLetterStamped(weight) {\n if (weight <= 1.0) {\n return 0.50;\n } else if (weight <= 2.0) {\n return 0.71;\n } else if (weight <= 3.0) {\n return 0.92;\n } else if (weight <= 3.5) {\n return 1.13;\n } else {\n return rateLargeFlat(weight);\n }\n}", "processHeuristicWeight(x,y, currentWeight) {\n this.field[x][y].weight = currentWeight + 5;\n }", "function getGroup(weight, j) {\n\tvar threshold = [1000, 300, 250, 200, 150, 100, 75];\n\tvar category = 0;\n\twhile (weight < threshold[category]) {\n\t\tcategory++;\n\t\tif (category == threshold.length) {\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn category;\n}", "function knapSack(weight,values,capacity){\n if(capacity <= 0 || !weight.length || !values.length) return 0;\n\n function traverse(index1, index2 , capacity){\n let maxVal = 0;\n if(index1 > weight.length) return 0;\n if(capacity === 0) {\n maxVal = capacity - netWeight;\n return maxVal;\n }\n if(capacity < 0){\n return;\n }\n traverse(index1, index2 + 1, values[index]+values[index+1], capacity + weight[index]);\n traverse(index1 + 1, index1 + 1, )\n\n }\n}", "loadFactor() {\n return this.elements / this.capacity;\n }", "loadFactor() {\n return this.elements / this.capacity;\n }", "function setWeight(){\n\t //remove the old event listenner;\n\t if (window.removeEventListener) {\n\t\t\twindow.removeEventListener('click',clickHandler);\n\t }\t\n\t else if (window.detachEvent) {\n\t\t\twindow.detachEvent('click',clickHandler);\n\t }\n\t\n\t //restart the game;\n\t if(myStartBt.isStart)\n\t\tmyGameArea.stop();\n\t startGame();\n\t \n\t myBucket.weight=Number(document.getElementById(\"bucket\").value);\n\t mySlider.weight=Number(document.getElementById(\"slider\").value);\n\t myGameArea.frictionFactor=Number(document.getElementById(\"frictionFactor\").value);\n\t mySlider.gravity=myGameArea.frictionFactor*0.03;\n\t myBucket.gravity=(myBucket.weight-myGameArea.frictionFactor*mySlider.weight)/(myBucket.weight+mySlider.weight)*0.05;\n\t output.a=(myBucket.weight-myGameArea.frictionFactor*mySlider.weight)/(myBucket.weight+mySlider.weight)*output.g;\n\t //the animation will run very fast if myBucket.gravity==output.a\n}", "function computeNodeBreadths(root) {\n // Tree depth is fixed at 4 for SS\n ky = height / 4.2;\n root.nodes.forEach(function(node) {\n node.fixed_y = node.fixed_level ? node.fixed_level+.2 : node.fixed_level;\n\t node.fixed_y *= ky;\n\t });\n }", "bluer(){\n\t\tthis.multiplyColorValue(\"blue\", 1.2);\n\t}", "getWeights() {\n const weights = [];\n for (const cell of this.cells) {\n weights.push(...cell.weights);\n }\n return Object(_variables__WEBPACK_IMPORTED_MODULE_12__[\"batchGetValue\"])(weights);\n }", "function livingVolume(height,width,depth){\n return height*width*depth; \n}", "function additive3D(value, weight, propertyBlendState) {\n if (propertyBlendState.weight === 0) {\n Vec3.zero(propertyBlendState.value);\n }\n\n if (weight === 0) {\n return propertyBlendState.value;\n } else if (weight === 1) {\n return Vec3.copy(propertyBlendState.value, value);\n }\n\n return Vec3.scaleAndAdd(propertyBlendState.value, propertyBlendState.value, value, weight);\n }", "function calculateNetWeight() {\n var grossWeight = 0;\n var palletTare = 0;\n var productTare = 0;\n var palletPackagingTare = 0;\n\n if (!isNaN(parseFloat(getFieldValueById('gross_weight')))) {\n\t grossWeight = parseFloat(getFieldValueById('gross_weight'));\n }\n\n if (!isNaN(parseFloat(getFieldValueById('pallet_tare')))) {\n \tpalletTare = parseFloat(getFieldValueById('pallet_tare'));\n }\n\n if (!isNaN(parseFloat(getFieldValueById('product_tare_total')))) {\n productTare = parseFloat(getFieldValueById('product_tare_total'));\n }\n\n if (!isNaN(parseFloat(getFieldValueById('pallet_packaging_tare')))) {\n palletPackagingTare = parseFloat(getFieldValueById('pallet_packaging_tare'));\n }\n\n\tvar netWeight = grossWeight - (palletTare + productTare + palletPackagingTare);\n\tif (!isNaN(netWeight) && netWeight > 0) {\n\t\tsetFieldValueById('net_weight', netWeight);\n\t} else {\n\t\tsetFieldValueById('net_weight', '0');\n\t}\n}", "function calculateMolecularWeight(structureData) {\n return casual.integer(0,500);\n}", "setActionWeight(action, weight) {\n action.enabled = true\n action.setEffectiveTimeScale(1)\n action.setEffectiveWeight(weight)\n }", "weight(e, w=null) {\n\t\tif (w != null) {\n\t\t\tif (!this.hasWeights) this.addWeights();\n\t\t\tthis._weight[e] = w;\n\t\t}\n\t\treturn this.hasWeights ? this._weight[e] : 0;\n\t}", "function calcWeightedRes(cpu, memory, numOfRequests) {\n return cpu * 0.4 + memory * 0.2 + numOfRequests * 0.4;\n}", "function lettersSCalc(weight) {\n\n var result;\n\n if(weight <= 1) {\n return result = 0.49;\n }\n else if (weight <= 2) {\n return result = 0.70;\n }\n else if (weight <= 3) {\n return result = 0.91;\n }\n else if (weight <= 3.5) {\n return result = 1.12;\n }\n else {\n return result = -1;\n }\n}", "_getDimToBow() : number {\n return this._bitField.getInt(219,9,true);\n }", "function getClassWeight (e) {\r\n var weight = 0;\r\n\r\n /* Look for a special classname */\r\n if (e.className != \"\") {\r\n if (e.className.search(regexps.negativeRe) !== -1) weight -= 25;\r\n\r\n if (e.className.search(regexps.positiveRe) !== -1) weight += 25;\r\n }\r\n\r\n /* Look for a special ID */\r\n if (typeof (e.id) == 'string' && e.id != \"\") {\r\n if (e.id.search(regexps.negativeRe) !== -1) weight -= 25;\r\n\r\n if (e.id.search(regexps.positiveRe) !== -1) weight += 25;\r\n }\r\n\r\n return weight;\r\n}", "function brzycki(weight, reps) {\n\treturn weight/((37/36)-(reps/36));\n}", "function getClassWeight(e) {\n var weight = 0;\n\n /* Look for a special classname */\n if (e.className !== '') {\n if (e.className.search(regexps.negativeRe) !== -1) weight -= 25;\n\n if (e.className.search(regexps.positiveRe) !== -1) weight += 25;\n }\n\n /* Look for a special ID */\n if (typeof(e.id) == 'string' && e.id != \"\") {\n if (e.id.search(regexps.negativeRe) !== -1) weight -= 25;\n\n if (e.id.search(regexps.positiveRe) !== -1) weight += 25;\n }\n\n return weight;\n}", "get blendDistance() {}", "get weights() {\n return this.trainableWeights.concat(this.nonTrainableWeights);\n }", "function weight (keywords, obj, fields, weights) {\n var value = 0;\n parseKeywords(keywords).forEach(function (keyword) {\n var pattern = new RegExp(keyword, 'img'); // Global, Multi-line, Case-insensitive\n fields.forEach(function (field, index) {\n if (obj.hasOwnProperty(field)) {\n var matches = obj[field].match(pattern);\n value += matches ? matches.length * weights[index] : 0;\n }\n });\n });\n return value;\n }", "function newBlueprintCost() {\n // first 4 blueprints free\n let { self } = window;\n if (!self || self.blueprints.length < 4) {\n return 0;\n }\n return self.blueprints.length * 250 + 250;\n}", "function calcVolume (width, height, depth) {\n return width * height * depth;\n}", "function weightedRankings(state) {\n\tconst result = {score:0, scores:{}, stats:{}};\n\tlet totalWeight=0;\n\tfor (const name in rankingWeights) {\n\t\tconst weight = rankingWeights[name];\n\t\tif (weight) {\n\t\t\tconst {score, stats} = rankings[name](state);\n\t\t\tresult.score += score * weight;\n\t\t\ttotalWeight += weight;\n\t\t\tresult.scores[name] = score;\n\t\t\tObject.assign(result.stats, stats);\n\t\t}\n\t}\n\tresult.score /= totalWeight;\n\treturn result;\n}", "function computeNodeBreadths() {\n // var remainingNodes = nodes,\n // nextNodes,\n // x = 0\n\n // var test=1;\n nodes.forEach(function (node) {\n node.x = node.pos * nodeOffset;////pos is in the Json data jixiangyu\n\n //console.log(node.cluster);\n //test++;\n\n node.dx = nodeWidth;\n });\n }", "changeWeight(weight) {\n this._currentWeight = weight\n }", "function knapSack(capacity, values, weights) {\n var n = values.length,\n load = 0,\n i = 0,\n val = 0;\n\n for (i=0; i<n && load < capacity; i++) { //While the total load is less than the capacity, we will iterate the items\n //If we can use the total weight of the item, then we will add it to the total value (val) and update the current load of the knapsack\n if (weights[i] <= (capacity-load)) {\n val += values[i];\n load += weights[i];\n console.log('using item ' + (i+1) + ' for the solution');\n } else {\n //If we cannot use the total weight of the item, we will calculate what is the ratio (r) that we can use\n var r = (capacity-load)/weights[i]; \n val += r * values[i];\n load += weights[i];\n console.log('using ratio of ' + r + ' for item ' + (i+1) + ' for the solution');\n }\n }\n return val;\n}", "function weight(w, p0, p1, p2, p3) {\n return {\n x: w[0] * p0.left + w[1] * p1.left + w[2] * p2.left + w[3] * p3.left,\n y: w[0] * p0.top + w[1] * p1.top + w[2] * p2.top + w[3] * p3.top\n };\n }", "function undoColorStretch(val) {\n return Math.pow(val, POPULATION_VIS_NONLINEARITY) * POPULATION_VIS_MAX_VALUE;\n}", "function normalizeCustomWeights() {\n let sum = 0;\n for (let i = 0; i < customWeights.length; ++i) {\n sum += customWeights[i];\n }\n for (let i = 0; i < customWeights.length; ++i) {\n customWeights[i] /= sum;\n }\n}", "function calculateResourcePlenty() {\n for (i = 0; i < positions.length; i++) {\n var sum = 0;\n for (x = 0; x < positions[i].tiles.length; x++) {\n sum += positions[i].tiles[x].dotWeight\n }\n positions[i].resourcePlentyScore = sum\n }\n}", "function getTowerWeight(towerBase) {\n\tvar weight = discWeights[towerBase];\n\tvar children = towers[towerBase];\n\tif (children) {\n\t\tfor (i in children) {\n\t\t\tweight += getTowerWeight(children[i]);\n\t\t}\n\t}\n\treturn weight; // interim state, just return the weight of the base for now\n}", "function scaleNodeBreadths(nodes, kx, orient) {\n\t each(nodes, function (node) {\n\t var nodeDepth = node.getLayout().depth * kx;\n\t orient === 'vertical' ? node.setLayout({\n\t y: nodeDepth\n\t }, true) : node.setLayout({\n\t x: nodeDepth\n\t }, true);\n\t });\n\t }", "function computeNodeBreadths() {\n\t //\n\t var remainingNodes = nodes,\n\t nextNodes,\n\t x = 0;\n\n\t // Work from left to right.\n\t // Keep updating the breath (x-position) of nodes that are target of recently updated nodes.\n\t //\n\t while (remainingNodes.length && x < nodes.length) {\n\t nextNodes = [];\n\t remainingNodes.forEach(function(node) {\n\t node.x = x;\n\t node.dx = nodeWidth;\n\t node.sourceLinks.forEach(function(link) {\n\t if (nextNodes.indexOf(link.target) < 0) {\n\t nextNodes.push(link.target);\n\t }\n\t });\n\t });\n\t remainingNodes = nextNodes;\n\t ++x;\n\t //\n\t }\n\n\t // Optionally move pure sinks always to the right.\n\t if (sinksRight) {\n\t moveSinksRight(x);\n\t }\n\n\t scaleNodeBreadths((size[0] - nodeWidth) / (x - 1));\n\t }", "get thickness() {\r\n return this.i.thickness;\r\n }", "get thickness() {\r\n return this.i.thickness;\r\n }", "function weight(w, p0, p1, p2, p3) {\n return {\n x: w[0] * p0.left + w[1] * p1.left + w[2] * p2.left + w[3] * p3.left,\n y: w[0] * p0.top + w[1] * p1.top + w[2] * p2.top + w[3] * p3.top\n };\n }", "function styleUSABorder(feature) \r\n\t{\r\n\t\treturn {\r\n \t\t\tweight: 14,\r\n\t\t\topacity: 1,\r\n\t\t\tcolor: 'red',\r\n\t\t\tfillOpacity: 0.0\r\n\t\t};\r\n\t}", "get capacity () {return this._p.capacity;}", "function edgeWeightDecider(edge) {\n if (edge.type === \"covered\") return 0;\n return 1;\n }", "function GridWithWeights(squareGrid) {\n\tthis.squareGrid = squareGrid;\n\tthis.weights = {};\n\n\t// a - from; b - to\n\tthis.cost = function(a, b) {\n\t\t// this implementation doesn't rely on 'from'. In this case, if destination is in weights, return b's cost\n\t\t// else return 1\n\t\tvar to = '' + b[0] + ',' + b[1]; // step we have to do for JavaScript since Object keys are always strings\n\t\treturn this.weights[to] === undefined ? 1 : this.weights[to];\n\t}\n\n\tthis.drawWeightedGrid = function() {\n\t\tvar xLength = this.squareGrid.width,\n\t\t\tyLength = this.squareGrid.height;\n\n\t\tfor (var y = 0; y < yLength; ++y) {\n\t\t\tvar row = '';\n\t\t\tfor (var x = 0; x < xLength; ++x) {\n\t\t\t\tvar val = this.weights['' + x + ',' + y];\n\t\t\t\tif (val !== Infinity) {\n\t\t\t\t\tif (val < 10) {\n\t\t\t\t\t\trow += val + ' ';\n\t\t\t\t\t} else {\n\t\t\t\t\t\trow += val + ' ';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\trow += '###';\n\t\t\t\t}\n\t\t\t}\n\t\t\tconsole.log(row);\n\t\t}\n\t\tconsole.log('\\n');\n\t}\n\n\tthis.drawWeightedGridWithParents = function(start, goal, search) {\n\t\tvar wallObjArr = {};\n\t\tfor (var i = 0; i < this.squareGrid.walls.length; ++i) {\n\t\t\twallObjArr[this.squareGrid.walls[i]] = true;\n\t\t}\n\n\t\tvar parents = search(this, start, goal)[0];\n\n\t\tfor (var y = 0; y < this.squareGrid.height; ++y) {\n\t\t\tvar row = '';\n\t\t\tfor (var x = 0; x < this.squareGrid.width; ++x) {\n \t\t\t\tif (x === goal[0] && y === goal[1]) {\t// print goal\n\t\t\t\t\trow += 'ZZZ';\n\t\t\t\t} \n\t\t\t\telse if (wallObjArr[[x,y]] === true) {\t// print wall\n\t\t\t\t\trow += '###';\n\t\t\t\t} else if (parents[[x,y]] === undefined) {\t// print '.' to signify that this was untouched\n\t\t\t\t\trow += '. ';\n\t\t\t\t} else {\n\t\t\t\t\tvar parent = parents[[x,y]]\n\n\t\t\t\t\tif (parent === null) {\t// we reached the start node\n\t\t\t\t\t\trow += 'AAA';\n\t\t\t\t\t} else if (x === parent[0] - 1) {\n\t\t\t\t\t\trow += '-> '\n\t\t\t\t\t} else if (x === parent[0] + 1) {\n\t\t\t\t\t\trow += '<- ';\n\t\t\t\t\t} else if (y === parent[1] - 1) {\n\t\t\t\t\t\trow += ' v ';\n\t\t\t\t\t} else if (y === parent[1] + 1) {\n\t\t\t\t\t\trow += ' ^ ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tconsole.log(row);\n\t\t}\n\t\tconsole.log('\\n')\n\t}\t\t\n\n\tthis.reconstructPath = function(start, goal, search) {\n\t\tvar current = goal;\n\t\tvar path = [current];\t\t\n\t\tvar nodes = {};\n\t\tnodes[current] = 1;\n\n\t\tvar cameFrom = search(this, start, goal)[0];\n\n\t\twhile (current[0] !== start[0] || current[1] !== start[1]) {\n\t\t\tcurrent = cameFrom[current];\n\t\t\tpath.push(current);\n\t\t\tnodes[current] = 1;\n\t\t}\n\n\t\tvar xLength = this.squareGrid.width,\n\t\t\tyLength = this.squareGrid.height;\n\n\t\tfor (var y = 0; y < yLength; ++y) {\n\t\t\tvar row = '';\n\t\t\tfor (var x = 0; x < xLength; ++x) {\n\t\t\t\tif (x === start[0] && y === start[1]) {\n\t\t\t\t\trow += 'SSS';\n\t\t\t\t} else if (x === goal[0] && y === goal[1]) {\n\t\t\t\t\trow += 'GGG';\n\t\t\t\t} else {\n\t\t\t\t\tvar tmp = '' + x + ',' + y;\n\t\t\t\t\tif (nodes[tmp] !== undefined) {\n\t\t\t\t\t\trow += '@@@';\n\t\t\t\t\t} else {\n\t\t\t\t\t\trow += ' . ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tconsole.log(row);\n\t\t}\n\t\tconsole.log('\\n');\t\t\n\t}\n}", "function drawKittens() {}", "function DoomMD5Weight() {\n\n\tthis.joint = 0; // int\n\tthis.bias = 0.0; // float\n\tthis.pos = vec3.create([0.0, 0.0, 0.0]);\n}", "get scaleFactor() {}", "function plateStyle(feature) {\n return {\n weight: 3,\n color: \"red\"\n };\n }", "get image() {\n if (this.quantity < 3) {\n return 'sparse_wheat'\n } else {\n return 'wheat'\n }\n }", "function ContainerWeight(container)\n{\n if (disable_autocalc())\n return;\n\n var total = 0.0;\n var slots = document.getElementById(container).rows.length - 3;\n for (var i = 1; i <= slots; i++)\n {\n var num = parseFloat(sheet()[container + \"Gear\" + FormatNumber(i) + \"W\"].value);\n if (!isNaN(num))\n total += num;\n }\n\n document.getElementById(container + \"Weight\").innerHTML = total.toFixed(1);\n}" ]
[ "0.63498646", "0.63481456", "0.6335232", "0.6307861", "0.6218092", "0.6083915", "0.6080341", "0.5969871", "0.5856862", "0.582981", "0.5789264", "0.57813805", "0.57172376", "0.5682611", "0.5669368", "0.5660923", "0.5649592", "0.5641576", "0.55960643", "0.55145323", "0.5511028", "0.5501092", "0.54580545", "0.544487", "0.54421276", "0.54244304", "0.54211", "0.5310926", "0.53084517", "0.53003997", "0.52902293", "0.5284273", "0.5280943", "0.5269716", "0.52452195", "0.5234538", "0.52341044", "0.5231443", "0.52259785", "0.5223441", "0.5219787", "0.52081674", "0.51997924", "0.51909477", "0.5189818", "0.5168159", "0.51679695", "0.51669604", "0.5163514", "0.51591945", "0.5154264", "0.5150587", "0.5150391", "0.5122982", "0.5109937", "0.5109937", "0.5098263", "0.5090563", "0.50854367", "0.5083208", "0.50822836", "0.5081419", "0.5068295", "0.5066066", "0.5059933", "0.5043624", "0.5039183", "0.5037563", "0.50327826", "0.50282973", "0.5024413", "0.50228125", "0.50195664", "0.5004972", "0.49823034", "0.49732298", "0.49655882", "0.4955702", "0.4955189", "0.4953792", "0.49487588", "0.49398848", "0.49231544", "0.49194738", "0.49193218", "0.49173075", "0.49154794", "0.49147314", "0.48953825", "0.48953825", "0.4894626", "0.4890273", "0.48888832", "0.48854187", "0.48836282", "0.48778245", "0.48756292", "0.48715547", "0.48628825", "0.4853958", "0.4852358" ]
0.0
-1
NONCOMPOSITE FLEXURAL CAPACITY COMPOSITE CAPACITY
wu_c(){ return (1.2*(this.DL+this.SDL) + 1.6*this.LL)*(this.Sj/12) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get capacity () {return this._p.capacity;}", "get capacity () {\n\t\treturn this._capacity;\n\t}", "get capacity () {throw ae.EXCEPTION_ABSTRACT_METHOD;}", "capacity() {\n return this.capacity - 1;\n }", "get capacity(){ return this.maxStackSize - this.stackSize; }", "set Compressed(value) {}", "get Compressed() {}", "function layerCarareCachedOpacity() {\n\t\t\tif(ieLT9 == true){\n\t\t\t\treturn 1.0;\n\t\t\t}else{\n\t\t\t\treturn 0.7;\n\t\t\t}\n\t\t}", "function PuckerAndBloatModifier() {\n }", "get compositeScoring () {\n\t\treturn this._compositeScoring;\n\t}", "get Alpha0() {}", "get AlphaChannel() {}", "set Alpha0(value) {}", "get max()\n {\n return this.normalized ? 1 : 255;\n }", "constructor(maxCapaity = undefined){\n this.front = 0;\n this.rear = -1;\n this.queue = [];\n this.maxSize = maxCapaity;\n }", "limity() { return (this.scale - 1) * this.sizey / 2; }", "volume() {\n return this.length * this.width * this.height;\n }", "boundedOpacity(opacity) {\n\t\tconst o = opacity + this.opacity;\n\t\tif (o < 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse if (o > 1) {\n\t\t\treturn 1;\n\t\t}\n\t\telse {\n\t\t\treturn o;\n\t\t}\n\t}", "getOpacity(){return this.__opacity}", "function undoColorStretch(val) {\n return Math.pow(val, POPULATION_VIS_NONLINEARITY) * POPULATION_VIS_MAX_VALUE;\n}", "get ETC2_RGB4_PUNCHTHROUGH_ALPHA() {}", "function clamp_css_byte(e){return e=Math.round(e),0>e?0:e>255?255:e}", "function get_available_capacity(capacity) {\n if (capacity) {\n return 1;\n } else {\n return 0;\n }\n }", "function calculateChannelCapacity(keys) {\n\tvar capacity = 0;\n\tfor(var i = 0; i < keys.length; i += 1){\n\t\tcapacity += (keys[i].capacity * keys[i].frequency);\n\t}\n\t//Return amount of bytes can be held\n\t//TODO check if this should be bits\n\treturn capacity/BYTE_SIZE;\n}", "volume() {\n return this.length * this.width * this.height\n }", "function Cup(initialCapacity) {\n this.capacity = initialCapacity || 12;\n this.volume = 0;\n\n this.add = function (v) {\n if (v > this.capacity) { throw(\"Too much coffee\"); }\n this.volume += v;\n };\n}", "function cnvt256(v) {\r\n var rc = v/256.0;\r\n return (rc > 255.0) ? 255 : rc; // XXX this seems a bit odd (bug)\r\n }", "set ETC2_RGB4_PUNCHTHROUGH_ALPHA(value) {}", "set AlphaChannel(value) {}", "GetCapacityLen() {\n return this._capacity;\n }", "get optimalSize() {\n return [200, 32];\n }", "loadFactor() {\n return this.elements / this.capacity;\n }", "loadFactor() {\n return this.elements / this.capacity;\n }", "function t(r,{isPrimitive:t,width:n,depth:o,height:c}){const s=t?10:1;if(null==n&&null==c&&null==o)return [s*r[0],s*r[1],s*r[2]];const i=t$1(n,o,c);let u;for(let e=0;e<3;e++){const t=i[e];if(null!=t){u=t/r[e];break}}for(let e=0;e<3;e++)null==i[e]&&(i[e]=r[e]*u);return i}", "get ASTC_RGBA_10x10() {}", "GetClipCount() {}", "function constrain(n) {\n return Math.max(Math.min(n, 255), 0);\n}", "static get PERSPECTIVE() { return 0; }", "function livingVolume(height,width,depth){\n return height*width*depth; \n}", "get scaleFactor() {}", "scale() {\n return this.small ? \"15\" : \"23\";\n }", "scale() {\n return this.small ? \"15\" : \"23\";\n }", "_storage_capacity() {\n return this.capacity;\n }", "function opacify(color, amount) {\n return transparentize(color, -amount);\n}", "set ASTC_RGBA_10x10(value) {}", "function getC(name,un_name) //get capcitor value in F, (name, name-unit)\n{\n\tvar x=getVar(name);\n\tvar unit=getVtext(un_name);\n\tif(\"pF\"==unit) return x/=1e12;\n\tif(\"nF\"==unit) return x/=1e9;\n\tif(\"uF\"==unit) return x/=1e6;\n\treturn x;\n}", "function mainmore(){\n Array.SIZE_RATIO = 3;\n let arr = new Array();\n arr.push(3);\n arr.push(5);\n arr.push(15);\n arr.push(19);\n arr.push(45);\n arr.push(10);\n console.log(arr);\n console.log(arr.length);\n console.log(arr._capacity);\n}", "getVolume() {\r\n\t\treturn this.width * this.length * this.height;\r\n\t}", "_compute() {\n\n // build the css layer depending on the properties\n this._style = this._props.opacity !== defaults.opacity ? `opacity(${this._props.opacity}) ` : '';\n this._style += this._props.brightness !== defaults.brightness ? `brightness(${this._props.brightness}) ` : '';\n this._style += this._props.contrast !== defaults.contrast ? `contrast(${this._props.contrast}) ` : '';\n this._style += this._props.saturation !== defaults.saturation ? `saturate(${this._props.saturation}) ` : '';\n this._style += this._props.hue !== defaults.hue ? `hue-rotate(${this._props.hue}deg) ` : '';\n this._style += this._props.invert !== defaults.invert ? `invert(${this._props.invert}) ` : '';\n this._style += this._props.grayscale !== defaults.grayscale ? `grayscale(${this._props.grayscale}) ` : '';\n this._style += this._props.sepia !== defaults.sepia ? `sepia(${this._props.sepia}) ` : '';\n this._style += this._props.blur !== defaults.blur ? `blur(${this._props.blur}px) ` : '';\n this._style += this._props.url !== defaults.url ? `url(${this._props.url}) ` : '';\n\n // apply the css filter effects to the viewport\n this.viewport.style.filter = this._style;\n\n // build the blend layer depending on the properties\n if (Object.keys(this._props.blend).length !== 0) {\n\n // create the blending element\n if (typeof this._blend === 'undefined') {\n this._blend = document.createElement('div');\n\n // prepend the blending element to the viewport\n this.viewport.parentNode.insertBefore(this._blend, this.viewport);\n }\n\n // get the viewport bounds\n const bounds = this.viewport.getBoundingClientRect();\n\n // set the blending styles\n this._blend.style = `position:absolute;z-index:1;width:${bounds.width}px;height:${bounds.height}px;mix-blend-mode:${this._props.blend.mode};background:${this._props.blend.color};pointer-events:none;`;\n } else if (typeof this._blend !== 'undefined') {\n\n // remove the blend layer from the DOM if there is no blending applied\n this._blend.parentNode.removeChild(this._blend);\n delete this._blend;\n }\n }", "function get_bit(descreate_index) {\n index = descreate_index * bit_size;\n //offset = index - Math.round(index);\n \n c.fillStyle = \"rgb(255,0,0)\";\n c.fillRect(index_start+index ,y_debug,1,5);\n \n var count = 0;\n var total = 0;\n for (var i=index ; i<index+bit_size ; i++) {\n total += pixeldata[Math.round(i)];\n count++;\n }\n var r = Math.abs(Math.round(total / count)-1);\n //console.log('total:'+total+' count:'+count+' return:'+r);\n return r;\n }", "capacity() {\n return (this.arr.length);\n }", "_a(){\n\t\t\treturn Math.max(Math.min(0.1*this.B,0.4*this.z),0.04*this.B,3)\n }", "CCF(op){\n op.subtraction_flag = 0;\n op.half_carry_flag = 0;\n op.carry_flag ^= 1;\n }", "constructor(alpha) {\n this.alpha = alpha\n this.y = 0\n this.z1 = 0\n }", "get capacity () {return this._pool.length;}", "get ETC2_RGBA8() {}", "constructor({\n x = 128,\n y = 128,\n vx = 0,\n vy = 0,\n w = 24,\n h = 24,\n color = \"white\",\n assetImg = new Image(),\n isPlayer = false,\n hp = 0,\n isCollectible = false,\n POSES = [\n { qmax: 8, pv: 12 },\n { qmax: 8, pv: 12 },\n { qmax: 8, pv: 12 },\n { qmax: 8, pv: 12 },\n ],\n } = {}) {\n this.x = x;\n this.y = y;\n this.vx = vx;\n this.vy = vy;\n this.w = w;\n this.h = h;\n this.color = color;\n this.cena = null;\n this.mx = null;\n this.my = null;\n this.isCollectible = isCollectible;\n this.isPlayer = isPlayer;\n this.collected = 0;\n this.assetImg = assetImg;\n this.SIZE = 64;\n this.hp = hp;\n this.pose = 0;\n this.quadro = 0;\n this.POSES = POSES;\n }", "get ASTC_RGBA_8x8() {}", "get scaled() { return this._scaled; }", "get scaled() { return this._scaled; }", "get clip() {}", "get desiredCapacityInput() {\n return this._desiredCapacity;\n }", "get scale () {\n return 100\n }", "crAdjToI(c, r) {\n let adjC = c;\n let adjR = r;\n if (c === -1) { adjC = this.state.width - 1; }\n if (r === -1) { adjR = this.state.height - 1; }\n if (c === this.state.width) { adjC = 0; }\n if (r === this.state.height) { adjR = 0; }\n return adjC + (adjR * this.state.width);\n }", "getCardSize() {\n return 1;\n }", "surfaceArea() {\n return 2 * (this.length * this.width + this.length * this.height + this.width * this.height);\n }", "computeRefuel() {\n return ((100 - this._fuelLevel) / 100) * this._capacity;\n }", "set ASTC_RGBA_8x8(value) {}", "Blend() {}", "update() {\n if (this.alpha < 0.9) {\n this.alpha += 0.1\n }\n }", "balanceFactor () {\n const leftH = this.left ? this.left.height : 0\n const rightH = this.right ? this.right.height : 0\n return leftH - rightH\n }", "getTotalVolume() {\n return this.height * this.width * this.length;\n }", "getTotalVolume() {\n return this.height * this.width * this.length;\n }", "function Z(){var e=c.getBoundingClientRect(),t=\"offset\"+[\"Width\",\"Height\"][r.ort];return 0===r.ort?e.width||c[t]:e.height||c[t]}", "getCardSize() {\n return 1\n }", "getCardSize() {\n return 1\n }", "getCardSize() {\n return 1\n }", "_bufferTransform() {\n if (this.mode === 'buffer') {\n // We use a 3d transform to work around some rendering issues in iOS Safari. See #19328.\n const scale = this.bufferValue / 100;\n return { transform: `scale3d(${scale}, 1, 1)` };\n }\n return null;\n }", "set z(val) {\n this.width = val;\n }", "get maxCapacityInput() {\n return this._maxCapacity;\n }", "getCardSize() {\n return 1;\n }", "getCardSize() {\r\n return 3;\r\n }", "_experimentalCompaction() {\n const compactor = new Compactor();\n const previousSize = this.log.facts.length;\n this.log.facts = compactor.compacted(this.log.facts, compactionFn);\n\n const compactionSize = previousSize - this.log.facts.length;\n const percentText = Math.round(100 * (compactionSize / previousSize)) + '%';\n console.log('compaction freed: ', compactionSize, percentText);\n\n this._notifyRenderer();\n }", "get ATC_RGBA8() {}", "get legStretch() {}", "get pixelPerfect() {}", "get Alpha8() {}", "function Scale () {}", "get compressionRatio()\n {\n return this._compressionRatio;\n }", "function Card(props) {\n var style = {};\n var kCardAspectRatio = (1260 / 4) / (2925 / 13);\n style.display = 'inline-block';\n style.width = 100;\n style.height = kCardAspectRatio * style.width;\n style.borderRadius = style.width / 20;\n style.margin = style.width / 20;\n if (props.hidden) {\n // Just apply a simple gradient.\n // 4 sets of triangles to form a checkerboard.\n var checkerWidth = style.width / 20;\n var checkerMargin = checkerWidth / 2;\n style.backgroundImage = (\n 'linear-gradient(45deg, #808080 25%, transparent 25%),' +\n 'linear-gradient(-45deg, #808080 25%, transparent 25%),' +\n 'linear-gradient(45deg, transparent 75%, #808080 75%),' +\n 'linear-gradient(-45deg, transparent 75%, #808080 75%)');\n style.backgroundSize = checkerWidth + 'px ' + checkerWidth + 'px';\n style.backgroundPosition = '0 0, 0 ' + checkerMargin + 'px,' +\n ' ' + checkerMargin + 'px ' + -checkerMargin\n + 'px, ' + -checkerMargin + 'px 0px';\n } else {\n // Sprites go: A 2 3 4 .. K (left to right).\n // And then go: H S D C (top to bottom).\n // Sprites are\n var rankId = jam_proto.Card.Rank[props.rank];\n if (rankId == jam_proto.Card.Rank.ACE) {\n rankId = 1;\n }\n var rankIndex = rankId - 1; // 0-index.\n var suitId = jam_proto.Card.Suit[props.suit];\n var suitIndex = -1;\n switch (suitId) {\n case jam_proto.Card.Suit.HEARTS:\n suitIndex = 0;\n break;\n case jam_proto.Card.Suit.SPADES:\n suitIndex = 1;\n break;\n case jam_proto.Card.Suit.DIAMONDS:\n suitIndex = 2;\n break;\n case jam_proto.Card.Suit.CLUBS:\n suitIndex = 3;\n break;\n }\n check(suitIndex != -1, 'Unknown suit ' + suitIndex);\n\n // \n var leftPos = (100.0 / 13) * (rankIndex + rankIndex / 12) + '%';\n var topPos = (100.0 / 4) * (suitIndex + suitIndex / 3) + '%';\n style.background = 'url(assets/card_sprites.jpg) no-repeat 0 0';\n style.backgroundSize = '1300% 400%';\n style.backgroundPosition = leftPos + ' ' + topPos;\n }\n return e('div', { style: style });\n}", "function expand(rate) {\n const start = performance.now();\n return new Cesium.CallbackProperty((time, scale) => {\n if (!Cesium.defined(scale)) {\n scale = 1.0;\n }\n const now = performance.now();\n const t = now - start;\n return scale + t / rate;\n }, false);\n}", "blockSize() {\n return 8;\n }", "ricochet() {\n\t\tif (this.bulletSpecial != 0){\n\t\t\tthis.bulletSpecial--;\n\t\t\tthis.velocity = this.velocity.scale(-1);\n\t\t};\n\t}", "function opacityForQuality(quality) {\n var alpha = Q_SCALE(quality);\n\n // Round alpha to nearest 0.1\n alpha = Math.round(alpha * 10 + 0.5) / 10.0;\n return Math.min(1.0, alpha);\n}", "Asmin(){\n return 0.0018*this.b*this.h\n }", "get minCapacityInput() {\n return this._minCapacity;\n }", "function J(a,b){var c,d=0,e={height:a};for(\n// If we include width, step value is 1 to do all cssExpand values,\n// otherwise step value is 2 to skip over Left and Right\nb=b?1:0;4>d;d+=2-b)c=Fa[d],e[\"margin\"+c]=e[\"padding\"+c]=a;return b&&(e.opacity=e.width=a),e}", "get canCompact()\n\t{\n\t\treturn true;\n\t}", "reduce (){\n this.hunger -= 2\n this.energy -= 1\n this.hygiene -= 1\n this.fun -= 2\n }", "function solution(juice, capacity) {\n // write your code in JavaScript (Node.js 8.9.4)\n\n let newCapacity = capacity;\n newCapacity.sort((a, b) => {\n return b - a;\n });\n let sumJuice = juice.reduce((a, b) => a + b, 0);\n\n if (newCapacity[0] >= sumJuice) {\n return juice.length;\n }\n\n let combine = juice.map((val, index) => {\n let spaceLeftInGlass = capacity[index] - val;\n let arr = [val, capacity[index], spaceLeftInGlass];\n return arr;\n });\n\n combine.sort((a, b) => {\n return b[2] - a[2] || b[1] - a[1];\n });\n\n let biggestSpace = combine[0][2];\n\n combine.splice(0, 1);\n combine.sort((a, b) => {\n return a[0] - b[0];\n });\n\n let maxMix = 1;\n\n for (let i = 0; i < combine.length; i++) {\n biggestSpace -= combine[i][0];\n\n if (biggestSpace < 0) {\n return maxMix;\n }\n maxMix++;\n }\n}", "function volumeRectangular(length, width, height){\n return -1;\n }" ]
[ "0.6110791", "0.5838048", "0.565443", "0.5583031", "0.55775034", "0.54763526", "0.54625386", "0.54515606", "0.5311668", "0.53064954", "0.5237873", "0.5212904", "0.51699424", "0.51588255", "0.50862277", "0.50533575", "0.5052286", "0.50473624", "0.503345", "0.5032229", "0.5017838", "0.4986106", "0.49644387", "0.4959234", "0.4954317", "0.49502847", "0.49324733", "0.4928384", "0.49176824", "0.49172497", "0.49156716", "0.49094298", "0.49094298", "0.49039644", "0.48987", "0.4892607", "0.48908186", "0.48762622", "0.4871544", "0.48706603", "0.48429203", "0.48429203", "0.4841743", "0.48411945", "0.48398173", "0.4835442", "0.4833711", "0.48280168", "0.48234335", "0.48154953", "0.48036873", "0.48002553", "0.4799724", "0.47939166", "0.47925946", "0.478544", "0.47806165", "0.4779516", "0.47780296", "0.47780296", "0.47680116", "0.475707", "0.4737253", "0.47370324", "0.4735466", "0.47342128", "0.4728582", "0.47206724", "0.47078955", "0.47061926", "0.46981364", "0.46964964", "0.46964964", "0.4694175", "0.46913984", "0.46913984", "0.46913984", "0.46878037", "0.46861997", "0.46782625", "0.46775433", "0.46767843", "0.4667572", "0.46671584", "0.46576288", "0.4657196", "0.46484834", "0.46458048", "0.46380198", "0.46333298", "0.46255645", "0.46188205", "0.46175483", "0.46169844", "0.46155623", "0.4615229", "0.4613973", "0.4613238", "0.46080413", "0.4607782", "0.46055958" ]
0.0
-1
EFFECTIVE COMPOSITE SLAB WIDTH
a(){ return (this.Abc*this.Fy)/(0.85*this.Fc*this.beff()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ggw() {\n return this.cr.canvas.width / this.cr.options.scaleFactor;\n }", "function _c_width() { \n\t\t\t\t\treturn _width + _padding.l + _padding.r; \n\t\t\t\t}", "function _cumulativeWidth (_bounces) {return (Math.pow (_base,_bounces) - 1) / (_base - 1)}", "resizeFactor() {\n var i;\n for (i = 0; i < this.NUMBER_DIMENSIONS; i++) {\n this.resizeVec[i] = this.initialDimensions[i] / this.websiteDimensions[i];\n }\n }", "lengthSq() {\n return this.w * this.w + this.xyz.clone().lengthSq();\n }", "get legStretch() {}", "function pxScale(input) {\n return input * width / blocks;\n }", "function getWidth() {\n return Math.round(obj.width * scale);\n }", "get scalableComponentsCount() {\n\t\t\tvar scalableComponentIdentifiers = this.scalableHeightComponentIdentifiers;\n\n\t\t\tvar scalableComponentsCount = scalableComponentIdentifiers.dimension.length + scalableComponentIdentifiers.margin.length;\n\n\t\t\treturn scalableComponentsCount;\n\t\t}", "function SizeDependWidth() {\n wImageCur = va.wSlide;\n hImageCur = M.R(wImageCur / rateImage);\n }", "getWidthUnit(){return this.__widthUnit}", "getWidth(){return this.__width}", "limity() { return (this.scale - 1) * this.sizey / 2; }", "constraintDensity() {\n\t\treturn this.constraintSize() / this.variableSize();\n\t}", "get width() { return getTextureDimension(this.unmaskedWidth, this.mask_s); }", "scaleToWidth(width) {\n let scaleFactor = width / this._sprite.width;\n this.scale.x = scaleFactor;\n this.scale.y = scaleFactor;\n }", "function getWidth(uses) {\n\treturn 1 + Math.min(Math.round(uses/150), 6);\n}", "function damageScale(x) {\n return Math.cbrt(x / 781250) * scaleWidth;\n }", "function getGridWidth(){\n return canvas.width/xGridAmount;\n}", "innerWidthDependsOnChilds(){return!1}", "get size() {\n return this.shape[0] * this.shape[1];\n }", "getWidth() { return this.width; }", "function getDimensionWeight() {\n\tvar dimensionWeight;\n\tdimensionWeight = (getWidth() * getHeight() * THICKNESS_CM) / DIMENSION_WEIGHT_CONVERT;\n\treturn dimensionWeight.toFixed(2);\n}", "getWidth() {\n return this.content >> 22 /* WIDTH_SHIFT */;\n }", "function computeNodeBreadths() {\n var remainingNodes = nodes,\n nextNodes,\n x = 0;\n \n while (remainingNodes.length) {\n nextNodes = [];\n remainingNodes.forEach(function(node) {\n node.x = x;\n node.dx = nodeWidth;\n node.sourceLinks.forEach(function(link) {\n nextNodes.push(link.target);\n });\n });\n remainingNodes = nextNodes;\n ++x;\n }\n \n //\n moveSinksRight(x);\n scaleNodeBreadths((width - nodeWidth) / (x - 1));\n }", "function thirdWidth() {\n\t\treturn window.innerWidth/3;\n\t}", "function computeNodeBreadths() {\n var remainingNodes = nodes,\n nextNodes,\n x = 0;\n\n while (remainingNodes.length) {\n nextNodes = [];\n remainingNodes.forEach(function(node) {\n node.x = x;\n node.dx = nodeWidth;\n node.sourceLinks.forEach(function(link) {\n nextNodes.push(link.target);\n });\n });\n remainingNodes = nextNodes;\n ++x;\n }\n\n //\n moveSinksRight(x);\n scaleNodeBreadths((width - nodeWidth) / (x - 1));\n }", "function computeNodeBreadths() {\r\n var remainingNodes = nodes,\r\n nextNodes,\r\n x = 0;\r\n\r\n while (remainingNodes.length) {\r\n nextNodes = [];\r\n remainingNodes.forEach(function(node) {\r\n\r\n if (node.xPos)\r\n node.x = node.xPos;\r\n else\r\n node.x = x;\r\n\r\n node.dx = nodeWidth;\r\n node.sourceLinks.forEach(function(link) {\r\n nextNodes.push(link.target);\r\n });\r\n });\r\n remainingNodes = nextNodes;\r\n ++x;\r\n }\r\n\r\n //\r\n moveSinksRight(x);\r\n scaleNodeBreadths((width - nodeWidth) / (x - 1));\r\n }", "getLevelWidth() {\n return this.level.tilesWide;\n }", "function FlexibleFit() { }", "function computeNodeBreadths() {\n var remainingNodes = nodes,\n nextNodes,\n x = 0;\n\n while (remainingNodes.length) {\n nextNodes = [];\n _(remainingNodes).each(function(node) {\n node.x = x;\n node.dx = nodeWidth;\n _(node.sourceLinks).each(function(link) {\n nextNodes.push(link.target);\n });\n });\n remainingNodes = nextNodes;\n ++x;\n }\n\n //\n moveSinksRight(x);\n scaleNodeBreadths((size[0] - nodeWidth) / (x - 1));\n }", "getUsedWidth() {\n return this.usedWidth;\n }", "length() {\n return Math.sqrt(this.w * this.w + this.xyz.clone().lengthSq() );\n }", "get cellWidth() {\n return (min(width, height) - 2*GRID_BUFFER) / this.cols;\n }", "calcScale(initSize, boardWidth, boardHeight, numRows, numColumns){\n\n var hexWidth = (Math.sqrt(3) * initSize);\n\n var widthHexesShouldBe = (boardWidth)/(numColumns+0.5);\n var hexHeight = (2 * initSize);\n var heightHexesShouldBe = (boardHeight - this.boardYOffset)/(numRows*0.75 +0.25);\n var bestFitHeightScale = heightHexesShouldBe/hexHeight;\n var bestFitWidthScale = widthHexesShouldBe/hexWidth;\n var chosenScale = Math.min(bestFitWidthScale, bestFitHeightScale);\n var upperLeft = (boardWidth/2) - (hexWidth* chosenScale * ((numColumns+0.5)/2))\n\n return {\n scale: chosenScale,\n actualWidth: chosenScale * hexWidth * (numColumns+0.5),\n actualHeight: chosenScale * hexHeight * (numRows*0.75 +0.25),\n upperLeft: upperLeft\n };\n\n\n }", "get nonScaledWidth() {\n return this.scalableCanvas.nonScaledWidth;\n }", "get nonScaledWidth() {\n return this.scalableCanvas.nonScaledWidth;\n }", "get nonScaledWidth() {\n return this.scalableCanvas.nonScaledWidth;\n }", "get width() { return this._.canvas.width; }", "sizeHeatmap (dim) {\r\n return dim.marginTotal - dim.marginSideColor - dim.marginLabel - dim.marginBrush - dim.marginLabelMini;\r\n }", "function computeNodeBreadths() {\n var remainingNodes = nodes,\n nextNodes,\n x = 0;\n\n while (remainingNodes.length) {\n nextNodes = [];\n remainingNodes.forEach(function(node) {\n node.x = x;\n node.dx = nodeWidth;\n node.sourceLinks.forEach(function(link) {\n if (nextNodes.indexOf(link.target) < 0) {\n nextNodes.push(link.target);\n }\n });\n });\n remainingNodes = nextNodes;\n ++x;\n }\n\n //\n moveSinksRight(x);\n scaleNodeBreadths((size[0] - nodeWidth) / (x - 1));\n }", "function computeNodeBreadths() {\n\t var remainingNodes = nodes,\n\t nextNodes,\n\t x = 0;\n\n\t while (remainingNodes.length) {\n\t nextNodes = [];\n\t remainingNodes.forEach(function (node) {\n\t node.x = x;\n\t node.dx = nodeWidth;\n\t node.sourceLinks.forEach(function (link) {\n\t if (nextNodes.indexOf(link.target) < 0) {\n\t nextNodes.push(link.target);\n\t }\n\t });\n\t });\n\t remainingNodes = nextNodes;\n\t ++x;\n\t } //\n\n\n\t moveSinksRight(x);\n\t scaleNodeBreadths((size[0] - nodeWidth) / (x - 1));\n\t }", "function computeNodeBreadths() {\n let remainingNodes = nodes\n let nextNodes\n let x = 0\n\n while (remainingNodes.length) {\n nextNodes = []\n remainingNodes.forEach(function(node) {\n node.x = x\n node.dx = nodeWidth\n node.sourceLinks.forEach(function(link) {\n if (nextNodes.indexOf(link.target) < 0) {\n nextNodes.push(link.target)\n }\n })\n })\n remainingNodes = nextNodes\n ++x\n }\n\n //\n moveSinksRight(x)\n scaleNodeBreadths((size[0] - nodeWidth) / (x - 1))\n }", "function PuckerAndBloatModifier() {\n }", "getWidth() {\n return this.$node.innerWidth();\n }", "function CalcWidth() {\n let a = gridSpacing * gridSpacing; // hypotenuse c^2\n let c = sqrt(a / 2);\n console.log(c);\n return c;\n}", "get width() {\n // w = width\n return this._w;\n }", "ggh() {\n return this.cr.canvas.height / this.cr.options.scaleFactor;\n }", "setSize() {\n this.size.D1 = this.shape.D1*this.unit.X;\n this.size.D2 = this.shape.D2*this.unit.Y;\n }", "_size_elements () {\n\n\t\tvar w = this.context.canvas.width\n\t\tvar h = this.context.canvas.height\n\t\tvar cw = this._deck_blue ['musician']._face_img.width\n\t\tvar ch = this._deck_blue ['musician']._face_img.height\n\n\t\tvar scale_x = (w * 0.9 / 8.0) / cw\n\t\tvar scale_y = (h / 4.0) / ch\n\t\tvar scale = Math.min (scale_x, scale_y)\n\n\t\tfor (var name in this._deck_blue) {\n\t\t\tthis._deck_blue [name].set_size (cw * scale)\n\t\t}\n\t\tfor (var name in this._deck_red) {\n\t\t\tthis._deck_red [name].set_size (cw * scale)\n\t\t}\n\t}", "getBackgroundImageWidthUnit(){return this.__background.imageWidthUnit}", "get optimalSize() {\n return [200, 32];\n }", "function $width(percent) {return window.innerWidth / 100 * percent;}", "get referencePixelsPerUnit() {}", "getContainerWidth() {\n return getWidth(this.container);\n }", "function _calculateActualBeakWidthInPixels(beakWidth) {\r\n return Math.sqrt(beakWidth * beakWidth * 2);\r\n}", "function getImgHeight(width) {\n return scalar * width;\n}", "get width() {\n return this._boundingBox.width;\n }", "calcLength(limb) {\n var upper = this.skeleton.bones[limb.upper];\n var lower = this.skeleton.bones[limb.lower];\n var scaling = this.rootMesh.scaling.x;\n limb.upperLength = upper.getAbsolutePosition().subtract(lower.getAbsolutePosition()).length()*scaling;\n if ( lower.children && lower.children[0] ) {\n limb.lowerLength = lower.getAbsolutePosition().subtract(lower.children[0].getAbsolutePosition()).length()*scaling;\n } else {\n limb.lowerLength = 0;\n }\n limb.length = limb.upperLength+limb.lowerLength;\n this.log(\"Length of \"+upper.name+\": \"+limb.upperLength+\", \"+lower.name+\": \"+limb.lowerLength);\n }", "function matteDim() {\t\n\tvar outer = document.getElementById('outer'); \n\tvar outerWidth = outer.clientWidth; \n\tvar outerHeight = outer.clientHeight; \n\tvar boxSize\n\tvar scale\n\tif (outerHeight > 2500 || outerWidth > 2500) {\n\t\tboxSize = 2500\n\t\tscale = 1\t\t\n\t} else {\n\t\tif (outerHeight < outerWidth) {\n\t\t\tboxSize = outerWidth\n\t\t} else {\n\t\t\tboxSize = outerHeight\n\t\t}\n\t\tscale = outerWidth/2500\n\t}\n\t//$('#scenesContainer').height(boxSize+'px')\n\t//$('#scenesContainer').width(boxSize+'px')\n\t//console.log('Outer Height: ' + outerHeight + ' Width: ' + outerWidth)\n\t//console.log('Scenes Height: ' + $('#scenesContainer').height() + ' Width: ' + $('#scenesContainer').width())\n\tvar hoffset = (outerWidth - boxSize)/2\n\tvar voffset = (outerHeight - boxSize)/2\n\t//console.log(hoffset)\n\t$('#scenesContainer').css({left:hoffset,top:voffset})\n\treturn(scale)\t\n}", "get Width() { return this.x2 - this.x1; }", "get Width() { return this.x2 - this.x1; }", "get width() { return this._width; }", "function calculateKenBurnScales(proc,sloth,opt) {\n\t\t\tvar ow = sloth.data('owidth');\n\t\t\tvar oh = sloth.data('oheight');\n\n\t\t\tvar factor = (opt.container.width() /ow);\n\t\t\tvar nheight = oh * factor;\n\n\t\t\tvar hfactor = (nheight / opt.container.height())*proc;\n\n\n\n\t\t\treturn (proc+\"% \"+hfactor+\"%\");\n\t\t}", "function calculateKenBurnScales(proc,sloth,opt) {\n\t\t\tvar ow = sloth.data('owidth');\n\t\t\tvar oh = sloth.data('oheight');\n\n\t\t\tvar factor = (opt.container.width() /ow);\n\t\t\tvar nheight = oh * factor;\n\n\t\t\tvar hfactor = (nheight / opt.container.height())*proc;\n\n\n\n\t\t\treturn (proc+\"% \"+hfactor+\"%\");\n\t\t}", "function calculateKenBurnScales(proc,sloth,opt) {\n\t\t\tvar ow = sloth.data('owidth');\n\t\t\tvar oh = sloth.data('oheight');\n\n\t\t\tvar factor = (opt.container.width() /ow);\n\t\t\tvar nheight = oh * factor;\n\n\t\t\tvar hfactor = (nheight / opt.container.height())*proc;\n\n\n\n\t\t\treturn (proc+\"% \"+hfactor+\"%\");\n\t\t}", "function size() {\n out = 1;\n for (var dim in dimensions) {\n out *= dimensions[dim].members.length;\n }\n return out;\n }", "loadFactor() {\n return this.elements / this.capacity;\n }", "loadFactor() {\n return this.elements / this.capacity;\n }", "getWidth() {\n return this.canvas.width;\n }", "get width() {\n const noOverlap = this._width\n const overlap = Math.min(100, this._width * 1.7)\n\n // Containers can always grow.\n if (this.rows) {\n return overlap\n }\n\n // Rows can grow if they have leaves.\n if (this.leaves) {\n return this.leaves.length > 0 ? overlap : noOverlap\n }\n\n // Leaves can grow unless they're the last item in a row.\n const { leaves } = this.row\n const index = leaves.indexOf(this)\n return index === leaves.length - 1 ? noOverlap : overlap\n }", "function xx(i){\n \treturn 2*i/width - 1;\n}", "function xx(i){\n \treturn 2*i/width - 1;\n}", "get_empirical_scale() {\n // Simple ratio of canvas width to image x-dimension\n return jquery_default()(\"#\" + this.config[\"imwrap_id\"]).width()/this.config[\"image_width\"];\n }", "get width () {return this._p.width;}", "function innerCanvasWidth(width) {\n var innerCanvasWidth = width;\n var numBlocks = innerCanvasWidth * blockWidth();\n return numBlocks + 'px'\n }", "get width(){ return this.Canvas.width }", "function pixelatedStrokeWeight(n) {\n strokeWeight(n * PIXELATE);\n}", "function _calculateActualBeakWidthInPixels(beakWidth) {\n return Math.sqrt(beakWidth * beakWidth * 2);\n}", "function _calculateActualBeakWidthInPixels(beakWidth) {\n return Math.sqrt(beakWidth * beakWidth * 2);\n}", "function _calculateActualBeakWidthInPixels(beakWidth) {\n return Math.sqrt(beakWidth * beakWidth * 2);\n}", "function _calculateActualBeakWidthInPixels(beakWidth) {\n return Math.sqrt(beakWidth * beakWidth * 2);\n}", "function _calculateActualBeakWidthInPixels(beakWidth) {\n return Math.sqrt(beakWidth * beakWidth * 2);\n}", "get mapWidth() {return ~~(Math.abs(zeach.mapLeft) + zeach.mapRight)}", "getModuleWidth(){return this.module_base_face_dimensions_axes[0];}", "getLargeurDessin()\n\t{\n\t\treturn this._canvas.width;\n\t}", "get width() {\n\t\treturn this._canvas.width;\n\t}", "getWidth() {\n return this.content >> Content.WIDTH_SHIFT;\n }", "getRenderedWidth(){return e.System.Services.controlManager.checkControlGeometryByControl(this),this.__renderedSizeCache.width}", "findSize() {\n var height = window.innerHeight - 180;\n var width = window.innerWidth;\n this.csize = height/width > 1 ? Math.floor(0.9 * width / 4) : Math.floor(0.9 * height / 4);\n }", "function getGraphWidth() {\n\t\treturn width - xOffset * 2;\n\t}", "get size() {\n var padding = this.padding;\n var width = 0;\n var height = DEFAULT_EXPR_HEIGHT;\n var sizes = this.getHoleSizes();\n var scale_x = this.scale.x;\n\n if (this._stackVertically) {\n width = EMPTY_EXPR_WIDTH;\n height = 0;\n }\n\n if (sizes.length === 0) return { w:this._size.w, h:this._size.h };\n\n sizes.forEach((s) => {\n if (this._stackVertically) {\n height += s.h;\n width = Math.max(width, s.w);\n }\n else {\n height = Math.max(height, s.h);\n width += s.w + padding.inner;\n }\n });\n\n if (this._stackVertically) {\n width += padding.right + padding.left;\n }\n else {\n width += padding.right; // the end\n }\n\n return { w:width, h: height };\n }", "function increaseWallSize() {\n\tif (wallSelected==null) {\n\t\treturn 0;\n\t}\n\t\n\telse if (wallSelected.depth < (2*cellLen)) {\n\t\twallSelected.depth += (0.1 * cellLen);\n\t\twallSelected.rLen= 3/4*wallSelected.depth;\n\t\treturn 1;\n\t}\n\t\n\telse {\n\t\treturn 0;\n\t}\n\t\n\tinvalidated= true;\n}", "function scalingFunction() {\n console.log(\"y=\" + y);\n x = ((body.innerWidth) / (y));\n console.log(\"x=\" + x);\n console.log(\"inner width\" + window.innerWidth);\n document.getElementsByClassName('card').style.width = (x / 8);\n console.log(document.getElementById('first-row-container').offsetWidth);\n // document.getElementById('first-row-container').style.transform\n}", "function livingVolume(height,width,depth){\n return height*width*depth; \n}", "changeGameBoardWidth(amount) {\n this.currentGeneration.alive = this.currentGeneration.alive.map(value =>\n value + amount * (Math.ceil(value / this.currentGeneration.width) - 1)\n );\n this.currentGeneration.width += amount;\n }", "get width() {\n\t\treturn this._viewport[2];\n\t}", "getWidth() {\n return this.getSize().width;\n }", "getInnerWidth() {\n mustInherit();\n }", "updateDimensions() {\n // A card has a min-width of 600px\n this.setState({nbCardsPerLine: Math.ceil(getWidth()/600)});\n }", "get colliderWidth () {\n\t\tlet leftMostX = this.isSignMagnitude ? this.signLabel.x : ZERO;\n\t\tlet rightMostX = this.textLabel.x + this.textLabel.width;\n\t\treturn rightMostX - leftMostX;\n\t}" ]
[ "0.63911945", "0.62344795", "0.605708", "0.5887095", "0.5728543", "0.56822586", "0.5677043", "0.56741023", "0.56644946", "0.56512636", "0.5646162", "0.5633434", "0.56137", "0.55851877", "0.55821013", "0.5564035", "0.5559385", "0.5536762", "0.5517531", "0.5507019", "0.549461", "0.54937935", "0.5493103", "0.54901874", "0.54550886", "0.54386616", "0.54279166", "0.5422688", "0.54080987", "0.54057086", "0.54050446", "0.5403642", "0.54010034", "0.53948015", "0.5382227", "0.53672385", "0.53672385", "0.53672385", "0.5355842", "0.53544843", "0.5346702", "0.5345291", "0.53380567", "0.5311499", "0.5310805", "0.5305906", "0.5284085", "0.52776754", "0.52708435", "0.5260801", "0.5257941", "0.52509964", "0.52398443", "0.523381", "0.52221674", "0.52209795", "0.5219389", "0.5215422", "0.5212063", "0.52119714", "0.5207467", "0.5207467", "0.5207389", "0.52056", "0.52056", "0.52056", "0.5204206", "0.52041876", "0.52041876", "0.5188041", "0.51857114", "0.5184571", "0.5184571", "0.51825124", "0.5175818", "0.5172606", "0.51651627", "0.5164941", "0.5164177", "0.5164177", "0.5164177", "0.5164177", "0.5164177", "0.5163892", "0.5163797", "0.5162264", "0.5160039", "0.51562864", "0.5149474", "0.51453424", "0.5133027", "0.5130944", "0.5130688", "0.512996", "0.51291484", "0.5125587", "0.5124488", "0.5124286", "0.5120683", "0.511444", "0.5109188" ]
0.0
-1
COMPOSITE FLEXURAL CAPAPCITY SHEARFLEX SCREWS
TensionBottomChord(){ return Math.max(0.5*this.phi_t*this.Abc*this.Fy, this.Mu_c()*12/this.deff_c()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CompositePattern()\r\n{\r\n\t//WARNING! do not add anything here, it will never be called\r\n}", "function CompositePattern()\r\n{\r\n\t//WARNING! do not add anything here, it will never be called\r\n}", "function composite(src, ops) {\n console.log('composite operations');\n console.log(ops);\n\n var mat = Matrix3x3.identity();\n for(var i=0;i<ops.length;i++) {\n var m = Matrix3x3.identity();\n var params = ops[i];\n switch( params[0] ) {\n case 'r': {\n var deg = parseFloat(params[1]);\n mat = mat.mul(Matrix3x3.rotation(deg));\n break;\n }\n case 'p': {\n var px = parseFloat(params[1]);\n var py = parseFloat(params[2]);\n mat = mat.mul(Matrix3x3.perspective(px, py));\n break;\n }\n case 's': {\n var sx = parseFloat(params[1]);\n var sy = parseFloat(params[2]);\n mat = mat.mul(Matrix3x3.scale(sx, sy));\n break;\n }\n case 't': {\n var tx = parseFloat(params[1]);\n var ty = parseFloat(params[2]);\n mat = mat.mul(Matrix3x3.translate(tx, ty));\n break;\n }\n case 'sh': {\n var shx = parseFloat(params[1]);\n var shy = parseFloat(params[2]);\n mat = mat.mul(Matrix3x3.shear(shx, shy));\n break;\n }\n default: {\n console.log('operation ' + params[0] + ' is not supported in composite mode!');\n }\n }\n }\n\n return affine(src, mat);\n }", "function exportCompositeCollection(){\r\n \r\n \r\n var defaultArgs = {\r\n 'exportPathRoot':null,\r\n 'outputName':null,\r\n 'studyArea':null, \r\n 'crs':null,\r\n 'transform':null,\r\n 'scale':null,\r\n 'collection':null,\r\n 'startYear':null,\r\n 'endYear':null,\r\n 'startJulian':null,\r\n 'endJulian':null,\r\n 'compositingMethod':null,\r\n 'timebuffer':null,\r\n 'exportBands':null,\r\n 'toaOrSR':null,\r\n 'weights':null,\r\n 'applyCloudScore':null, \r\n 'applyFmaskCloudMask':null,\r\n 'applyTDOM':null,\r\n 'applyFmaskCloudShadowMask':null,\r\n 'applyFmaskSnowMask':null,\r\n 'includeSLCOffL7':null,\r\n 'correctIllumination':null,\r\n 'nonDivideBands':['temp'],\r\n 'resampleMethod':'near',\r\n 'origin':'Landsat',\r\n 'applyCloudProbability':null\r\n };\r\n \r\n var args = prepArgumentsObject(arguments,defaultArgs);\r\n \r\n args.pyramidingPolicy = 'mean';\r\n \r\n args.collection = args.collection.select(args.exportBands);\r\n print('Export bands:',args.exportBands);\r\n print('Non divide bands:',args.nonDivideBands);\r\n //Take care of date wrapping\r\n args.dateWrapping = wrapDates(args.startJulian,args.endJulian);\r\n args.wrapOffset = args.dateWrapping[0];\r\n args.yearWithMajority = args.dateWrapping[1];\r\n \r\n //Clean up output name\r\n args.outputName = args.outputName.replace(/\\s+/g,'-');\r\n args.outputName = args.outputName.replace(/\\//g,'-');\r\n \r\n \r\n var years = ee.List.sequence(args.startYear+args.timebuffer,args.endYear-args.timebuffer).getInfo()\r\n .map(function(year){\r\n \r\n // Set up dates\r\n var startYearT = year-args.timebuffer;\r\n var endYearT = year+args.timebuffer+args.yearWithMajority;\r\n \r\n // Get yearly composite\r\n var composite = args.collection.filter(ee.Filter.calendarRange(year+args.yearWithMajority,year+args.yearWithMajority,'year'));\r\n composite = ee.Image(composite.first());\r\n \r\n \r\n \r\n // Reformat data for export\r\n var compositeBands = composite.bandNames();\r\n if(args.nonDivideBands !== null){\r\n var composite10k = composite.select(compositeBands.removeAll(args.nonDivideBands))\r\n .multiply(10000);\r\n composite = composite10k.addBands(composite.select(args.nonDivideBands))\r\n .select(compositeBands).int16();\r\n }\r\n else{\r\n composite = composite.multiply(10000).int16();\r\n }\r\n \r\n \r\n args.startYearComposite = startYearT;\r\n args.endYearComposite = endYearT;\r\n args.systemTimeStartYear = year+args.yearWithMajority;\r\n args.yearOriginal = year;\r\n args.yearUsed = args.systemTimeStartYear;\r\n args['system:time_start'] = ee.Date.fromYMD(args.systemTimeStartYear,6,1).millis();\r\n \r\n \r\n // Export the composite \r\n // Set up export name and path\r\n args.exportName = args.outputName + '_' + args.toaOrSR + '_' + args.compositingMethod + \r\n '_' + startYearT + '_' + endYearT+'_' + \r\n args.startJulian + '_' + args.endJulian ;\r\n \r\n args.exportPath = args.exportPathRoot + '/' + args.exportName;\r\n \r\n // Add metadata, cast to integer, and export composite\r\n composite = composite.set(args);\r\n \r\n // Display the Landsat composite\r\n Map.addLayer(composite, vizParamsTrue10k, args.yearUsed.toString() + ' True Color ' + \r\n args.toaOrSR, false);\r\n Map.addLayer(composite, vizParamsFalse10k, args.yearUsed.toString() + ' False Color ' + \r\n args.toaOrSR, false);\r\n \r\n \r\n print('Exporting:',composite);\r\n exportToAssetWrapper(composite,args.exportName,args.exportPath,args.pyramidingPolicy,\r\n args.studyArea,args.scale,args.crs,args.transform);\r\n });\r\n}", "function comportement (){\n\t }", "function Composition() {}", "function Composition() {}", "function Composition() {}", "function Composition() {}", "function cargarpista1 (){\n \n}", "function createLayerComps(doc) {\r\n\t// declare local variables\r\n\tvar compName = '';\r\n\tvar compIndex = 1;\r\n\tvar zeroPadding = 2;\r\n\tvar layerIndex = doc.layers.length - 1;\r\n\r\n\t// loop through all layers to create comps\r\n\tfor (layerIndex, compIndex; layerIndex >= 0; layerIndex--, compIndex++) {\r\n\t\tdoc.layers[layerIndex].visible = true;\r\n\t\tcompName = 'Comp ' + (compIndex + Math.pow(10, zeroPadding)).toString().substr(1);\r\n\t\tdoc.layerComps.add(compName, '', true, true, true);\r\n\t\tdoc.layers[layerIndex].visible = false;\r\n\t}\r\n}", "function chemistry() {\n var clipHere = 0;\n var columns = [];\n var me = '';\n var em = '';\n var sym = '';\n var s = 0;\n var r = '';\n var tmp = '';\n var isoMass = '';\n var isoDesc = '';\n var iMass = '';\n var lines = [];\n var massSymIon = '';\n var symMass = '';\n var matched = '';\n var symbol = '';\n var a = ['angstroms','angstrom','ang','a',\n 'centimeters','centimeter','cm',\n 'millimeters','millimeter','millimetres','millimetre','mm',\n 'micrometers','micrometer','micrometres','micrometre','microns','micron','um',\n 'nanometers','nanometer','nanometres','nanometre','nm'];\n var b = ['gigahertz','ghz','megahertz','mhz','terahertz','thz'];\n var c = ['eV', 'keV'];\n var units = (a.concat(b).concat(c)).join('\\|');\n var uType = a.join('\\|').replace(/[^\\|]+/g,'w') + '\\|' +\n b.join('\\|').replace(/[^\\|]+/g,'f') + '\\|' +\n c.join('\\|').replace(/[^\\|]+/g,'e'); \n var num = /\\d{1,5}(?:\\.\\d+)?/.source;\n var and = /(?:[\\,\\+\\/and\\&]{1,4})/.source;\n var three = /((?:lambdalambdalambda)|(?:lambdalambda)|(?:lambda)|(?:lll)|(?:ll)|(?:l)|(?:nununu)|(?:nunu)|(?:nu)|(?:nnn)|(?:nn)|(?:n))?/.source +\n '('+num+')' + '('+units+')?' + and + '('+num+')' + '('+units+')?' + and + '('+num+')' + '('+units+')?';\n var two = /((?:lambdalambda)|(?:lambda)|(?:ll)|(?:l)|(?:nunu)|(?:nu)|(?:nn)|(?:n))?/.source +\n '('+num+')' + '('+units+')?' + and + '('+num+')' + '('+units+')?';\n var one = /((?:lambda)|(?:l)|(?:nu)|(?:n))?/.source + '('+num+')?' + '('+units+')?';\n var startHere = xLtr.length;\n\n// ============================== read in the MOLECULES file =================================\n lines = (GM_getResourceText(\"molecules\").trim()).split('\\n');\n clipHere = lines.reduce(function(x1,x2,x3) {if (x2.match(/\\={20,}/)) {x1.push(x3);} return x1;}, []); \n if (clipHere.length >= 2) {\n lines = lines.slice(clipHere[0]+1,clipHere[1]);\n } else if (clipHere.length == 1) {\n lines = lines.slice(clipHere[0]+1); }\n for (s = 0; s < lines.length; s++) {\n lines[s] = lines[s].trim().replace(/ +/g,' ');\n columns = lines[s].split(' ');\n sym = columns[0]+ /((?:\\d[\\+\\-])|(?:\\+){1,3}|(?:\\-){1,3})?(\\[\\d\\-\\d\\])?/.source;\n // ------------- 3 values listed:\n r = '(?:' + three + sym +')|(?:' + sym + three +')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"molecule\":columns[0],\n \"nVals\":\"3\", \"waveFreqPos\":\"1|12\", \"valPos\":\"2|13\", \"val1Pos\":\"2|13\",\n \"unitPos\":\"3|5|7|14|16|18\", \"chargePos\":\"8|10\", \"transPos\":\"9|11\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"molecule\":columns[0],\n \"nVals\":\"3\", \"waveFreqPos\":\"1|12\", \"valPos\":\"4|15\", \"val1Pos\":\"2|13\",\n \"unitPos\":\"3|5|7|14|16|18\", \"chargePos\":\"8|10\", \"transPos\":\"9|11\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"molecule\":columns[0],\n \"nVals\":\"3\", \"waveFreqPos\":\"1|12\", \"valPos\":\"6|17\", \"val1Pos\":\"2|13\",\n \"unitPos\":\"3|5|7|14|16|18\", \"chargePos\":\"8|10\", \"transPos\":\"9|11\"});\n// ------------- 2 values listed:\n r = '(?:' + two + sym + ')|(?:' + sym + two + ')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"40\", \"molecule\":columns[0],\n \"nVals\":\"2\", \"waveFreqPos\":\"1|10\", \"valPos\":\"2|11\", \"val1Pos\":\"2|11\",\n \"unitPos\":\"3|5|12|14\", \"chargePos\":\"6|8\", \"transPos\":\"7|9\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"40\", \"molecule\":columns[0],\n \"nVals\":\"2\", \"waveFreqPos\":\"1|10\", \"valPos\":\"4|13\", \"val1Pos\":\"2|11\",\n \"unitPos\":\"3|5|12|14\", \"chargePos\":\"6|8\", \"transPos\":\"7|9\"});\n// ------------- 1 or no values listed:\n r = '(?:' + one + sym +')|(?:' + sym + one + ')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"25\", \"molecule\":columns[0],\n \"nVals\":\"1\", \"waveFreqPos\":\"1|8\", \"valPos\":\"2|9\", \"val1Pos\":\"2|9\",\n \"unitPos\":\"3|10\", \"chargePos\":\"4|6\", \"transPos\":\"5|7\"});\n }\n\n// ============================== read in the ELEMENTS file =================================\n// (https://www.khanacademy.org/science/chemistry/atomic-structure-and-properties/\n// names-and-formulas-of-ionic-compounds/a/naming-monatomic-ions-and-ionic-compounds\n// http://www.edu.xunta.es/ftpserver/portal/S_EUROPEAS/FQ/3rdESO_archivos/Nomenclature.htm\n// http://preparatorychemistry.com/Bishop_Isotope_Notation.htm\n clipHere = 0; \n lines = (GM_getResourceText(\"elements\").trim()).split('\\n');\n// clip out data table from any comments blocks\n clipHere = lines.reduce(function(x1,x2,x3) {if (x2.match(/\\={20,}/)) {x1.push(x3);} return x1;}, []); \n if (clipHere.length >= 2) {\n lines = lines.slice(clipHere[0]+1,clipHere[1]);\n } else if (clipHere.length == 1) {\n lines = lines.slice(clipHere[0]+1); }\n// format of the \"elements.txt\" file: Column 1: element symbol (like \"He\"), Column 2: written out name of the element\n// (like \"helium\"), Column 3: element's atomic number (# protons), Column 4: atomic mass of most abundant stable istope,\n// Column 5: list of other stable isotopes (atomic masses) delimited by vertical bars, Column 6: list of radioisotopes\n// (atomic mass) delimited by vertical bars\n\n\n// come back to\n// among the molecules is \"NaI\", sodium iodide. Could be confused with \"NaI\", neutral sodium! Need to have a\n// special catch that tries to distinguish which it is (if surrounded by brackets, is the neutral sodium. If \n// has a charge, is a molecule.\n\n for (s = 0; s < lines.length; s++) {\n lines[s] = lines[s].trim().replace(/ +/g,' ');\n// replace any lone vertical bars with \"\"\n columns = (lines[s].split(' ')).map(z => z.replace(/^\\|$/,''));\n isoMass = columns[3];\n isoDesc = columns[3].replace(/\\d+/g,'stable_isotope|most_abundant_isotope');\n isoMass = isoMass + ' ' + columns[4].replace(/\\|/g,' ');\n isoDesc = isoDesc + ' ' + columns[4].replace(/\\|/g,' ').replace(/\\d+/g,'stable_isotope');\n isoMass = isoMass + ' ' + columns[5].replace(/\\|/g,' ');\n isoDesc = isoDesc + ' ' + columns[5].replace(/\\|/g,' ').replace(/\\d+/g,'radio_isotope');\n isoMass = isoMass.replace(/ +/g,' ').trim();\n isoDesc = isoDesc.replace(/ +/g,' ').trim();\n iMass = isoMass.replace(/ /g,'\\|');\n massSymIon = '(?:(?:'+columns[2]+'('+iMass+'))|(?:'+'('+iMass+')'+columns[2]+')|('+iMass+'))?' + columns[0] + /([IVX]{0,6})/.source;\n symMass = columns[0] + '(?:(?:'+columns[2]+'('+iMass+'))|(?:'+'('+iMass+')'+columns[2]+')|('+iMass+'))';\n sym = /(\\[)?/.source + '(?:(?:'+ symMass + ')|(?:' + massSymIon + '))' + /(\\])?/.source;\n // ------------- 3 values listed:\n var r = '(?:' + sym + three + ')|(?:' + three + sym + ')';\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"3\",\n \"waveFreqPos\":\"10|17\", \"valPos\":\"11|18\", \"val1Pos\":\"11|18\",\n \"unitPos\":\"12|14|16|19|21|23\", \"massPos\":\"2|3|4|5|6|7|25|26|27|28|29|30\",\n \"ionPos\":\"8|31\", \"leftPos\":\"1|24\", \"rightPos\":\"9|32\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"3\",\n \"waveFreqPos\":\"10|17\", \"valPos\":\"13|20\", \"val1Pos\":\"11|18\",\n \"unitPos\":\"12|14|16|19|21|23\", \"massPos\":\"2|3|4|5|6|7|25|26|27|28|29|30\",\n \"ionPos\":\"8|31\", \"leftPos\":\"1|24\", \"rightPos\":\"9|32\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"3\",\n \"waveFreqPos\":\"10|17\", \"valPos\":\"15|22\", \"val1Pos\":\"11|18\",\n \"unitPos\":\"12|14|16|19|21|23\", \"massPos\":\"2|3|4|5|6|7|25|26|27|28|29|30\",\n \"ionPos\":\"8|31\", \"leftPos\":\"1|24\", \"rightPos\":\"9|32\"});\n// ------------- 2 values listed:\n var r = '(?:' + sym + two +')|(?:' + two + sym + ')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"40\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"2\",\n \"waveFreqPos\":\"1|10\", \"valPos\":\"11|16\", \"val1Pos\":\"11|16\",\n \"unitPos\":\"12|14|17|19\", \"massPos\":\"2|3|4|5|6|7|21|22|23|24|25|26\",\n \"ionPos\":\"8|27\", \"leftPos\":\"1|20\", \"rightPos\":\"9|28\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"40\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"2\",\n \"waveFreqPos\":\"1|10\", \"valPos\":\"13|18\", \"val1Pos\":\"11|16\",\n \"unitPos\":\"12|14|17|19\", \"massPos\":\"2|3|4|5|6|7|21|22|23|24|25|26\",\n \"ionPos\":\"8|27\", \"leftPos\":\"1|20\", \"rightPos\":\"9|28\"});\n// ------------- 1 or no values listed:\n var r = '(?:' + sym + one +')|(?:' + one + sym + ')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"25\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"1\",\n \"waveFreqPos\":\"10|13\", \"valPos\":\"11|14\", \"val1Pos\":\"11|14\",\n \"unitPos\":\"12|15\", \"massPos\":\"2|3|4|5|6|7|17|18|19|20|21|22\",\n \"ionPos\":\"8|23\", \"leftPos\":\"1|16\", \"rightPos\":\"9|24\"});\n }\n // Now add their \"indx\" fields:\n for (s = startHere; s < xLtr.length; s++) {\n xLtr[s].indx = function(text, startPos, commonLines) {\n if (commonLines === undefined || typeof(commonLines) != \"boolean\") {commonLines = true; }\n this.endMatch = \"-1\";\n this.energy = '';\n this.accuracy = '';\n this.x = '';\n this.xSupp = '';\n this.noUnits = '';\n this.symbol = '';\n this.type = '';\n this.charge = '';\n this.transition = '';\n var tmp = '';\n var rightTst = false;\n var leftTst = false;\n var middleTst = true;\n var capTst = true;\n var elementMolecule = '';\n var digitVals = {I:1, V:5, X:10};\n var endMatch = -1;\n var noUnits = '';\n \n var t = JSON.parse(filterTheText(this.reg, text.slice(startPos)));\n if (this.element !== undefined && this.element !== '') {\n elementMolecule = this.element;\n } else {\n elementMolecule = this.molecule; }\n// perform a case-insensitive match initially. If a match exists, and if there are \n// capitalized letters involved in both the chemical symbol as well as in the matched text, then \n// perform a case-sensitive match and make sure that the match continues: \n m = t[0].match(new RegExp('^'+'(?:'+this.reg+')', 'i'));\n if (m && m[0].match(/[A-Z]/) && this.reg.match(/[A-Z]/)) {\n m = t[0].match(new RegExp('^'+'(?:'+this.reg+')')); }\n if (m) {\n endMatch = t[1][m[0].length-1] + 1 + startPos;\n// make sure that this is not a false-positive: if the word is less than 5 characters long,\n// insure that there is a non-alphanumeric character on the right and left side of it in\n// the unfiltered version of the text. \n if (m[0].length <= 5 && startPos > 0 && text.charAt(startPos-1).match(/[^A-Za-z0-9]/)) {\n leftTst = true; }\n if (startPos == 0) {leftTst = true; }\n if (m[0].length > 5) {leftTst = true;}\n if (m[0].length <= 5 && text.length >= endMatch+1 && text.charAt(endMatch).match(/[^A-Za-z0-9]/)) {\n rightTst = true; }\n if (text.length < endMatch+1) {rightTst = true; }\n if (m[0].length > 5) {rightTst = true; }\n// If the match consists of a single capitalized letter (like I for iodine), make sure that the match does \n// not occur as the first word of a sentence: \n if (m[0].match(/[A-Z]/) && m[0].length == 1 && startPos > 0 && text.slice(startPos-5, startPos).match(/[\\.\\,\\;\\:] +$/)) \n {capTst = false; }\n if (text.slice(startPos, endMatch).match(/\\;/) && (!(m[0].match(/\\; +[A-Z]/)))) {middleTst = false; }\n if (text.slice(startPos, endMatch).match(/\\:/) && (!(m[0].match(/\\: +[A-Z]/)))) {middleTst = false; }\n if (text.slice(startPos, endMatch).match(/\\?/) && (!(m[0].match(/\\? +[A-Z]/)))) {middleTst = false; }\n if (text.slice(startPos, endMatch).match(/\\!/) && (!(m[0].match(/\\! +[A-Z]/)))) {middleTst = false; }\n if (this.element !== undefined && text.slice(startPos, endMatch).match(/\\-/)) {middleTst = false; }\n// If all the tests come back OK, then we've got a legit match:\n }\n if (!(leftTst*rightTst*middleTst*capTst)) {return \"\"; }\n// everything below here assumes that there was an acceptable match\n this.endMatch = \"\"+endMatch \n var indx = this.tIndx;\n var xSupp = '';\n var x = '';\n var ion = '';\n var mass = '';\n var leftBra = '';\n var rightBra = '';\n var transition = '';\n var charge = '';\n// extract the \"lambdalambda\" or \"nununu\" words, if present in the matched text:\n var lamnu = (this.waveFreqPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (lamnu === undefined) {lamnu = ''; }\n// extract the first value:\n var val1 = (this.val1Pos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (val1 === undefined) {val1 = ''; }\n// extract the value to be processed (which is the same as Val1 if there was only a single value in the matched text):\n var val = (this.valPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (val === undefined) {val = ''; }\n// extract the matched units, if present:\n var units = (this.unitPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (units === undefined) {units = ''; }\n// standardize the unit notation:\n units = units.replace(/^a[a-z]+/i,'ang');\n units = units.replace(/^um$/i,'um').replace(/^mu$/i,'um').replace(/^mic[a-z]+/i,'um');\n units = units.replace(/^cm/i,'cm');\n units = units.replace(/^mil[a-z]+/i,'mm').replace(/^mm/i,'mm');\n units = units.replace(/^n[a-z]+/i,'nm');\n units = units.replace(/^gh[a-z]+/i,'ghz').replace(/^gigah[a-z]+/i,'ghz');\n units = units.replace(/^kh[a-z]+/i,'khz').replace(/^kiloh[a-z]+/i,'khz');\n units = units.replace(/^th[a-z]+/i,'thz').replace(/^terah[a-z]+/i,'thz');\n units = units.replace(/^mh[a-z]+/i,'mhz').replace(/^megah[a-z]+/i,'mhz');\n units = units.replace(/^ev/i,'ev');\n units = units.replace(/^kev/i/'kev').replace(/^kiloe[a-z]+/i,'kev');\n if (this.element !== undefined && this.element != '') {\n// extract the ionization level, if present:\n var ion = (this.ionPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (ion === undefined) {ion = ''; }\n// force symbol to carry an ion level designation. For example, if it is listed only as \"Ar\", assume\n// that \"ArI\" is implied and explicitly put in the \"I\". We insert the missing/implied \"I\" to insure \n// a consistent way to enter this line into the index ... would not want the same exact spectral line to\n// be listed under both \"Ar\" and \"ArI\". \n if (ion == '' && val != '') {ion = 'I'; }\n if (ion != '') {\n ion = ion.toUpperCase();\n// if an ion level is provided, insure that it is a feasible value (e.g., not in excess of the number of \n// electrons present in a neutral version of this atom). Accomplish this task by converting the roman numeral\n// into an arabic number and then compare to the value stored under nproton:\n tmp = 0;\n ion = ion.split('');\n for (i = 0; i < ion.length; i++) {\n if (digitVals[ion[i]] < digitVals[ion[i+1]]) {\n tmp += digitVals[ion[i+1]] - digitVals[ion[i]];\n i++;\n } else {tmp += digitVals[ion[i]]; }\n }\n ion = ion.join('');\n tmp = tmp - 1; // because ion level of I = neutral, II = missing 1 electron, etc.\n// see https://initjs.org/translate-roman-numerals-in-javascript-482ef6e55ee7\n if (tmp > parseInt(this.nprotons)) {\n// we have a physically impossible situation (more electrons missing than were there initially), so obviously\n// the match to the text has been a false positive, and there really isn't a match. Put everything back \n// the way it was before we thought we had a match, and bail out:\n this.endMatch = \"-1\";\n this.energy = '';\n this.accuracy = '';\n this.x = '';\n this.xSupp = '';\n this.noUnits = '';\n this.symbol = '';\n this.type = '';\n this.charge = '';\n this.transition = '';\n return ''; }\n// determine what adjective should be used to describe this ionization level: single for 1 missing electron,\n// double for 2 missing electrons, triple for 3 missing electrons, and then multiple if the number of \n// missing electrons is less than 10% of the total number of protons, and then high if number of missing\n// electrons is in excess of 10% of total number of protons and/or if 10 more more electrons are missing, \n// and complete/fully if all electrons are removed:\n ionDesc = '';\n if (tmp == 0) {\n ionDesc = 'neutral';\n } else if (tmp == 1) {\n ionDesc = 'singly_ionized';\n } else if (tmp == 2) {\n ionDesc = 'doubly_ionized'; \n } else if (tmp == 3) {\n ionDesc = 'triply_ionized'; \n } else if (tmp < 10 && tmp < 0.1*parseFloat(this.nprotons)) {\n ionDesc = 'multiply_ionized'; \n } else if ( ((tmp >= 10) || (tmp >= 0.1*parseFloat(this.nprotons))) && tmp < parseInt(this.nprotons) ) {\n ionDesc = 'highly_ionized';\n } else if (tmp == parseInt(this.nprotons)) {\n ionDesc = 'completely_ionized|fully_ionized'; }\n xSupp = ([... new Set((xSupp + ' ' + this.tIndx+'\\_'+ion + 'X4' + ionDesc).trim().split(' '))]).join(' ').trim(); }\n// extract the isotopic mass, if available:\n var mass = (this.massPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (mass === undefined) {mass = ''; }\n// extract the left bracket (if present):\n var leftBra = (this.leftPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (leftBra === undefined) {leftBra = ''; }\n// extract the right bracket (if present):\n var rightBra = (this.rightPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (rightBra === undefined) {rightBra = ''; }\n if (leftBra != '' && rightBra != '') { // fully forbidden\n indx = indx + '\\|' + 'forbidden';\n } else if ( (leftBra != '')||(rightBra != '') ) { // semi forbidden\n leftBra = '';\n rightBra = '\\]';\n indx = indx + '\\|' + '*semi_forbidden'; }\n if (mass != '') {\n// see which description should go with this isotopic mass:\n z = this.isoMass.split(' ').indexOf(mass);\n indx = indx + '\\|' + mass; \n xSupp = ([... new Set((xSupp + ' ' + this.tIndx+'\\_'+mass + 'X4' + this.isoDesc.split(' ')[z]).trim().split(' '))]).join(' ').trim(); }\n xSupp = ([... new Set((xSupp + ' ' + this.tIndx + 'X4' + 'element').trim().split(' '))]).join(' ').trim(); \n symbol = leftBra + this.element + ion + rightBra; \n } else if (this.molecule !== undefined && this.molecule != '') {\n// extract the charge (if present):\n charge = (this.chargePos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (charge === undefined) {charge = ''; }\n// extract the transition (if present):\n transition = (this.transPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (transition === undefined) {transition = ''; }\n if (charge != '') {\n indx = indx + '\\|' + charge;\n if (charge.match(/\\-$/)) {\n xSupp = ([... new Set((xSupp + ' ' + charge + 'X4' + 'anion').trim().split(' '))]).join(' ').trim(); \n } else if (charge.match(/\\+$/)) {\n xSupp = ([... new Set((xSupp + ' ' + charge + 'X4' + 'cation').trim().split(' '))]).join(' ').trim(); }\n }\n if (transition != '') {indx = indx + '\\|' + transition; }\n xSupp = ([... new Set((xSupp + ' ' + this.tIndx + 'X4' + 'molecule').trim().split(' '))]).join(' ').trim(); \n symbol = this.molecule + charge + transition;\n }\n// Now organize the information:\n if (lamnu.match(/^l/i)) {\n lamnu = 'w';\n } else if (lamnu.match(/^n/i)) {\n lamnu = 'f';\n } else {lamnu = ''; }\n// If units have been provided, then compute the energy of the line in units of ev, and let that value\n// enter as part of the words to be indexed.\n// If val is 2-digits, and val1 is 4 digits, then probably a shorthand notation has been used such\n// that the first 2 digits of the wavelength (in angstrom) have been removed for the values following the first one. \n// Check for this situation and attach the missing digits if necessary:\n if (val1.indexOf('\\.') == -1 && val1.length == 4 && val.length == 2) {\n units = 'ang';\n val = val1.slice(0,2) + val; } \n// if both a value and units have been supplied, we can compute an energy:\n var info = '';\n var energy = '';\n var delta = '';\n var region = ''; \n if (val != '' && units != '') {\n info = JSON.parse(extractLineEnergy(val, units));\n energy = info[0];\n delta = info[1];\n lamnu = info[3];\n xSupp = ([... new Set((xSupp + ' ' + energy + 'X4' + 'spectral_line' + '\\|' + info[2]).trim().split(' '))]).join(' ').trim();;\n indx = indx + '\\|' + info[0];\n }\n matched = '';\n// if a value has been supplied, then see if there is a match-up to any of the lines in the common\n// line list (type = lineList):\n// Look for matches between the value provided and those in the common-line list that has already been loaded\n// into the xLtr and designated by type = \"lineList\". There are 2 ways to kick off the search: if units have\n// been provided and are equal to ev, then do a search on energy. If no units, then search on the \n// wavelength/freqency raw value:\n if (commonLines && val != '') {\n if (info != '') {\n matched = xLtr.reduce(function(z1,z2,z3) {\n var diff;\n var totDelta;\n if (z2.type == 'lineList') {\n totDelta = Math.pow(Math.pow(parseFloat(z2.energyDelta),2) + Math.pow(parseFloat(delta),2),0.5);\n diff = Math.abs(parseFloat(z2.energy) - parseFloat(energy));\n if (diff <= totDelta) {z1.push(z3); } }\n return z1;}, []);\n } else {\n matched = xLtr.reduce(function(z1,z2,z3) {\n var diff;\n var totDelta;\n if (z2.type == 'lineList') {\n totDelta = Math.pow(Math.pow(parseFloat(z2.wfeDelta),2) + Math.pow(parseFloat(z2.wfeDelta),2),0.5);\n diff = Math.abs(parseFloat(z2.wfeValue) - parseFloat(val));\n if (diff <= totDelta) {z1.push(z3); } }\n return z1;}, []); }\n// If the symbol is specified, then lets see if we can further whittle down the list:\n if (matched.length > 0 && symbol != '') {\n tmp = matched;\n matched = xLtr.reduce(function(z1,z2,z3) {\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1 && z2.symbol == symbol) {z1.push(z3); }\n return z1;}, []); }\n// if the unit is specified, then whittle down even further:\n if (matched.length > 0 && info == '' && units != '' && units != 'ev') {\n tmp = matched;\n matched = xLtr.reduce(function(z1,z2,z3) {\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1 && z2.units == units) {z1.push(z3); }\n return z1; }, []); }\n// if the waveFreq is known and the units were not provided, then whittle down further:\n if (matched.length > 0 && info == '' && units == '' && lamnu != '') {\n tmp = matched;\n matched = xLtr.reduce(function(z1,z2,z3) {\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1 && z2.waveFreq == lamnu) {z1.push(z3); }\n return z1; }, []); }\n// if there were multiple matches, get the one that is closest to the provided value:\n tmp = matched;\n if (matched.length > 0 && info != '') {\n matched = xLtr.reduce(function(z1,z2,z3) {\n var diff;\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1) {\n diff = Math.abs(parseFloat(z2.energy) - parseFloat(energy));\n if (z1.length > 0 && diff < z1[0]) {z1 = [diff, z3];} else {z1 = [diff, z3]; } }\n return z1;}, []);\n } else if (matched.length > 0) {\n matched = xLtr.reduce(function(z1,z2,z3) {\n var diff;\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1) {\n diff = Math.abs(parseFloat(z2.wfeValue) - parseFloat(val));\n if (z1.length > 0 && diff < z1[0]) {z1 = [diff, z3];} else {z1 = [diff, z3]; } }\n return z1;}, []); }\n if (matched.length > 0) {\n matched = matched[1];\n this.x = xLtr[matched].x;\n this.xSupp = xLtr[matched].xSupp;\n this.type = \"spectralLine\";\n this.energy = xLtr[matched].energy;\n this.accuracy = xLtr[matched].energyDelta;\n this.noUnits = \"\";\n this.symbol = xLtr[matched].symbol;\n return xLtr[matched].indx; }\n }\n indx = ([... new Set(indx.split('\\|'))]).join('\\|');\n xSupp = ([... new Set(xSupp.trim().split(' '))]).join(' ').trim();\n x = x.replace(/^\\|/,'').replace(/\\|$/,'');\n if (x != '') {x = ([... new Set(x.split('\\|'))]).join('\\|'); }\n if (symbol == '') {symbol = 'TBD'; }\n tmp = '';\n if (energy != '') {\n tmp = energy + '\\_' + 'e';\n } else if (val != '') {\n tmp = val + '\\_' + lamnu; }\n if (tmp != '') {\n tmp = tmp.replace(/\\_$/,'');\n noUnits = (symbol + '\\_' + tmp); } \n if (symbol != 'TBD' && energy != '') {noUnits = ''; }\n// If this matched text indicates a spectral line (a value was present), proceed with the xLtr entry:\n if (val != '') {\n this.x = x;\n this.xSupp = xSupp;\n this.type = \"spectralLine\";\n this.energy = energy;\n if (energy == '') {delta = ''; }\n this.accuracy = delta;\n this.noUnits = noUnits;\n this.symbol = symbol;\n if (energy == '') {indx = indx + '\\|' + val; }\n return indx;\n }\n// If a value was not present, then we don't have a spectral line but rather mention of\n// an element or molecule. Proceed with that xLtr entry:\n this.x = x;\n this.xSupp = xSupp;\n if (this.element !== undefined && this.element != '') {\n this.type = \"element\";\n } else {this.type = \"molecule\"; }\n this.energy = '';\n this.accuracy = '';\n this.noUnits = '';\n this.symbol = symbol;\n return indx;\n }\n }\n return;\n }", "function crepuscolo_CV(njd,longitudine,latitudine,altitudine){\n\n // funzione per il calcolo del crepuscolo civile per il T.U. di Greenwich\n // aggiornata al 03/12/2011.\n // by Salvatore Ruiu - Irgoli (Italy).\n // IL Sole si trova a -6 gradi sotto l'orizzonte locale. 90+6 .\n \n var ps_sole=pos_sole(njd);\n var DEs=ps_sole[1]; // declinazione del Sole.\n\n var LATr=Rad(latitudine); // angolo in radianti.\n var DEr=Rad(DEs); // angolo in radianti.\n\n var H=Math.acos(-Math.tan(LATr)*Math.tan(DEr)); // angolo orario\n\n var H1=Math.acos((Math.cos(Rad(96))-Math.sin(LATr)*Math.sin(DEr))/(Math.cos(LATr)*Math.cos(DEr)));\n\n var H= Rda(H); // angolo da radiante a sessadecimale.\n var H1=Rda(H1); // angolo da radiante a sessadecimale. \n\n var T=((H1-H)/15)*0.9973;\n\n var p_sole=ST_SOLE(njd,longitudine,latitudine,altitudine);\n\n var crep_m=ore_24(p_sole[2]-T); // crepuscolo del mattino.\n var crep_s=ore_24(p_sole[4]+T); // crepuscolo serale.\n\n var tempi_crep= new Array(crep_m,crep_s);\n\n return tempi_crep;\n \n}", "function charJawSide(){ //start script\n app.beginUndoGroup(\"Create Character Jaw Rig Side\");\n\n //if(parseFloat(app.version) >= 10.5){\n var theComp = app.project.activeItem; //only selected\n\n // check if comp is selected\n if (theComp == null || !(theComp instanceof CompItem)){\n // if no comp selected, display an alert\n alert(\"Please establish a comp as the active item and run the script again.\");\n } else {\n var theLayers = theComp.selectedLayers;\n if(theLayers.length==0){\n alert(\"Please select a precomp and run the script again.\");\n }else{\n // otherwise, loop through each selected layer in the selected comp\n for (var i = 0; i < theLayers.length; i++){\n // define the layer in the loop we're currently looking at\n var curLayer = theLayers[i];\n // Select layer to add expression to\n if (curLayer.matchName == \"ADBE AV Layer\"){\n //first check if this is a footage layer\n //next check if this is a comp.\n var myLayer = theComp.selectedLayers[0];\n if(myLayer.source.numLayers==null){\n //not a comp; send alert.\n alert(\"This only works on precomp layers.\");\n }else{\n //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n //myLayer is indeed a precomp. OK to do stuff.\n var slider = myLayer.property(\"Effects\").addProperty(\"Slider Control\");\n slider.name = \"jaw side control\"\n var headNull = myLayer.source.layers.addNull();\n var upperJawNull = myLayer.source.layers.addNull();\n var lowerJawNull = myLayer.source.layers.addNull();\n headNull.name = \"head placeholder\";\n upperJawNull.name = \"upper jaw placeholder\";\n lowerJawNull.name = \"lower jaw placeholder\";\n //when asset replaces null, anchor point will be centered.\n headNull.transform.anchorPoint.setValue([50,50]);\n upperJawNull.transform.anchorPoint.setValue([50,50]);\n lowerJawNull.transform.anchorPoint.setValue([50,50]);\n headNull.property(\"Opacity\").setValue(100);\n upperJawNull.property(\"Opacity\").setValue(100);\n lowerJawNull.property(\"Opacity\").setValue(100);\n //parenting jaws to head\n upperJawNull.parent = headNull;\n lowerJawNull.parent = headNull;\n //expressions\n //headNullExprPos;\n //headNullExprRot;\n headNullExprScale = \"var x = transform.scale[0];\" + \"\\r\" +\n \"var y = transform.scale[1];\" + \"\\r\" +\n \"var s = comp(\\\"\" + theComp.name + \"\\\").layer(\\\"\" + myLayer.name + \"\\\").effect(\\\"\" + slider.name + \"\\\")(\\\"Slider\\\");\" + \"\\r\" +\n \"[x,y+(s/-4)];\";\n //headNull.property(\"Position\").expression = headNullExprPos;\n //headNull.property(\"Rotation\").expression = headNullExprRot;\n headNull.property(\"Scale\").expression = headNullExprScale;\n //--\n upperJawNullExprPos = \"var x = transform.position[0];\" + \"\\r\" +\n \"var y = transform.position[1];\" + \"\\r\" +\n \"var s = comp(\\\"\" + theComp.name + \"\\\").layer(\\\"\" + myLayer.name + \"\\\").effect(\\\"\" + slider.name + \"\\\")(\\\"Slider\\\");\" + \"\\r\" +\n \"var scaler = -0.2;\" + \"\\r\" +\n \"[x, y+(s*scaler)];\";\n upperJawNullExprRot = \"var r = transform.rotation;\" + \"\\r\" +\n \"var s = comp(\\\"\" + theComp.name + \"\\\").layer(\\\"\" + myLayer.name + \"\\\").effect(\\\"\" + slider.name + \"\\\")(\\\"Slider\\\");\" + \"\\r\" +\n \"var scaler = 0.2;\" + \"\\r\" +\n \"r+(s*scaler);\";\n //upperJawNullExprScale;\n upperJawNull.property(\"Position\").expression = upperJawNullExprPos;\n upperJawNull.property(\"Rotation\").expression = upperJawNullExprRot;\n //upperJawNull.property(\"Scale\").expression = upperJawNullExprScale;\n //--\n lowerJawNullExprPos = \"var x = transform.position[0];\" + \"\\r\" +\n \"var y = transform.position[1];\" + \"\\r\" +\n \"var s = comp(\\\"\" + theComp.name + \"\\\").layer(\\\"\" + myLayer.name + \"\\\").effect(\\\"\" + slider.name + \"\\\")(\\\"Slider\\\");\" + \"\\r\" +\n \"var scaler = 2;\" + \"\\r\" +\n \"[x, y+(s*scaler)];\";\n lowerJawNullExprRot = \"var r = transform.rotation;\" + \"\\r\" +\n \"var s = comp(\\\"\" + theComp.name + \"\\\").layer(\\\"\" + myLayer.name + \"\\\").effect(\\\"\" + slider.name + \"\\\")(\\\"Slider\\\");\" + \"\\r\" +\n \"var scaler = -1.0;\" + \"\\r\" +\n \"r+(s*scaler);\";\n //lowerJawNullExprScale; \n lowerJawNull.property(\"Position\").expression = lowerJawNullExprPos;\n lowerJawNull.property(\"Rotation\").expression = lowerJawNullExprRot;\n //lowerJawNull.property(\"Scale\").expression = lowerJawNullExprScale;\n //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n }\n }else{\n //not a footage layer; send alert.\n alert(\"This only works on precomp layers.\");\n }\n }\n }\n }\n \n app.endUndoGroup();\n} //end script", "function charJawFront(){ //start script\n app.beginUndoGroup(\"Create Character Jaw Rig Front\");\n\n //if(parseFloat(app.version) >= 10.5){\n var theComp = app.project.activeItem; //only selected\n\n // check if comp is selected\n if (theComp == null || !(theComp instanceof CompItem)){\n // if no comp selected, display an alert\n alert(\"Please establish a comp as the active item and run the script again.\");\n } else {\n var theLayers = theComp.selectedLayers;\n if(theLayers.length==0){\n alert(\"Please select a precomp and run the script again.\");\n }else{\n // otherwise, loop through each selected layer in the selected comp\n for (var i = 0; i < theLayers.length; i++){\n // define the layer in the loop we're currently looking at\n var curLayer = theLayers[i];\n // Select layer to add expression to\n if (curLayer.matchName == \"ADBE AV Layer\"){\n //first check if this is a footage layer\n //next check if this is a comp.\n var myLayer = theComp.selectedLayers[0];\n if(myLayer.source.numLayers==null){\n //not a comp; send alert.\n alert(\"This only works on precomp layers.\");\n }else{\n //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n //myLayer is indeed a precomp. OK to do stuff.\n var slider = myLayer.property(\"Effects\").addProperty(\"Slider Control\");\n slider.name = \"jaw front control\"\n var headNull = myLayer.source.layers.addNull();\n //var upperJawNull = myLayer.source.layers.addNull();\n var lowerJawNull = myLayer.source.layers.addNull();\n headNull.name = \"head placeholder\";\n //upperJawNull.name = \"upper jaw placeholder\";\n lowerJawNull.name = \"lower jaw placeholder\";\n //when asset replaces null, anchor point will be centered.\n headNull.transform.anchorPoint.setValue([50,50]);\n //upperJawNull.transform.anchorPoint.setValue([50,50]);\n lowerJawNull.transform.anchorPoint.setValue([50,50]);\n headNull.property(\"Opacity\").setValue(100);\n //upperJawNull.property(\"Opacity\").setValue(100);\n lowerJawNull.property(\"Opacity\").setValue(100);\n //parenting jaws to head\n //upperJawNull.parent = headNull;\n lowerJawNull.parent = headNull;\n //expressions\n //headNullExprPos;\n //headNullExprRot;\n //headNullExprScale;\n //headNull.property(\"Position\").expression = headNullExprPos;\n //headNull.property(\"Rotation\").expression = headNullExprRot;\n //headNull.property(\"Scale\").expression = headNullExprScale;\n //--\n //upperJawNullExprPos;\n //upperJawNullExprRot;\n //upperJawNullExprScale;\n //upperJawNull.property(\"Position\").expression = upperJawNullExprPos;\n //upperJawNull.property(\"Rotation\").expression = upperJawNullExprRot;\n //upperJawNull.property(\"Scale\").expression = upperJawNullExprScale;\n //--\n lowerJawNullExprPos = \"var scaler = 1.0;\" + \"\\r\" +\n \"var x = transform.position[0];\" + \"\\r\" +\n \"var y = transform.position[1];\" + \"\\r\" +\n \"var s = comp(\\\"\" + theComp.name + \"\\\").layer(\\\"\" + myLayer.name + \"\\\").effect(\\\"\" + slider.name + \"\\\")(\\\"Slider\\\");\" + \"\\r\" +\n \"[x, y+(s*scaler)];\";\n //lowerJawNullExprRot;\n lowerJawNullExprScale = \"var scaler = 1.0;\" + \"\\r\" +\n \"var s = comp(\\\"\" + theComp.name + \"\\\").layer(\\\"\" + myLayer.name + \"\\\").effect(\\\"\" + slider.name + \"\\\")(\\\"Slider\\\");\" + \"\\r\" +\n \"var x = transform.scale[0];\" + \"\\r\" +\n \"var y = transform.scale[1];\" + \"\\r\" +\n \"[x,y+(s*scaler)];\"; \n lowerJawNull.property(\"Position\").expression = lowerJawNullExprPos;\n //lowerJawNull.property(\"Rotation\").expression = lowerJawNullExprRot;\n lowerJawNull.property(\"Scale\").expression = lowerJawNullExprScale;\n //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n }\n }else{\n //not a footage layer; send alert.\n alert(\"This only works on precomp layers.\");\n }\n }\n }\n }\n \n app.endUndoGroup();\n} //end script", "function quickCity(){ \n\t\t// Comprueba si esta el formulario de envio\n\t\tif (find(\"//form[@name='snd']\", XPFirst) == null) return;\n\t\tvar ciudades = new Array(); \n\n\t\t// Recupera la coordenada X\n\t\tvar n = find(\"//table[@class='f8']//*/td[@align='right']\", XPList); \n\t\tfor(var i = 0; i < n.snapshotLength; i++){\n\t\t\tciudades[i] = new Object();\n\t\t\ttry{ ciudades[i].x = n.snapshotItem(i).innerHTML.split('(')[1]; }catch(e){}\n\t\t} \n\n\t\t// Recupera la coordenada Y\n\t\tn = find(\"//table[@class='f8']//*/td[@align='left']\", XPList); \n\t\tfor(var i = 0; i < n.snapshotLength; i++){ \n\t\t\ttry{ ciudades[i].y = n.snapshotItem(i).innerHTML.split(')')[0]; } catch(e){}\n\t\t} \n\n\t\t// Por cada par de coordenadas crea un evento para copiarlas al formulario\n\t\tn = find(\"//table[@class='f8']//tr\", XPList);\n\t\tfor (var i = 0; i < ciudades.length; i++){\n\t\t\tvar elem = n.snapshotItem(i);\n\t\t\telem.setAttribute('onClick',\"snd.x.value='\" + ciudades[i].x + \"';snd.y.value='\" + ciudades[i].y + \"'\");\n\t\t\telem.setAttribute('onMouseOver', 'this.style.color=\"red\"');\n\t\t\telem.setAttribute('onMouseOut', 'this.style.color=\"black\"');\n\t\t\telem.style.cursor = \"pointer\";\n\t\t}\n\t}", "function createCompFromComp (myComp, myName) {\r try{\r var newComp;\r newComp = app.project.items.addComp(myName, myComp.width, myComp.height, 1, myComp.duration, myComp.frameRate);\r newComp.layers.add(myComp); //Adds file to comp\r return newComp;\r } catch(err){\r // alert(\"Error at line# \" + err.line.toString() + \"\\r\" + err.toString());\r return null;\r }\r}", "create(cp0, cp1, cp2, cp3) {\n\n const cp = this.cp;\n\n cp[0] = new PVector();\n cp[0].x = cp0.x;\n cp[0].y = cp0.y;\n\n\n cp[1] = new PVector();\n cp[1].x = cp1.x;\n cp[1].y = cp1.y;\n\n cp[2] = new PVector();\n cp[2].x = cp2.x;\n cp[2].y = cp2.y;\n\n cp[3] = new PVector();\n cp[3].x = cp3.x;\n cp[3].y = cp3.y;\n\n\n }", "copyCASFrame(frame) {\n//-----------\nreturn this.copy(frame.getTime(), frame.getDuration(), frame.getTRSets(), frame.getMorphs());\n}", "function reCC(cset){var a,bmp,sup,all_hi,surr,d,i,ret=[]\n a=splitAtBMP(cset);bmp=a[0];sup=a[1] // poor man's destructuring assignment\n a=surrogateSet(sup);all_hi=a[0];surr=a[1]\n d=diff(bmp,all_hi)\n i=inter(bmp,all_hi)\n if(!empty(d)) ret.push(reCC_bmp(d))\n if(surr.length) ret.push(surrogateSetToRE(surr))\n if(!empty(i)) ret.push(reCC_bmp(i))\n return ret.join('|')}", "function quickCity(){\r\n\t\t// Comprueba si esta el formulario de envio\r\n\t\tif (find(\"//form[@name='snd']\", XPFirst) == null) return;\r\n\t\tvar ciudades = new Array();\r\n\r\n\t\t// Recupera la coordenada X\r\n\t\tvar n = find(\"//table[@class='dtbl']//td[@class='right dlist1']\", XPList);\r\n\t\tfor(var i = 0; i < n.snapshotLength; i++){\r\n\t\t\tciudades[i] = new Object();\r\n\t\t\ttry{ ciudades[i].x = n.snapshotItem(i).innerHTML.split('(')[1]; }catch(e){}\r\n\t\t}\r\n\r\n\t\t// Recupera la coordenada Y\r\n\t\tn = find(\"//table[@class='dtbl']//td[@class='left dlist3']\", XPList);\r\n\t\tfor(var i = 0; i < n.snapshotLength; i++){\r\n\t\t\ttry{ ciudades[i].y = n.snapshotItem(i).innerHTML.split(')')[0]; } catch(e){}\r\n\t\t}\r\n\r\n\t\t// Por cada par de coordenadas crea un evento para copiarlas al formulario\r\n\t\tn = find(\"//table[@class='dtbl']//tr\", XPList);\r\n\t\tfor (var i = 0; i < ciudades.length; i++){\r\n\t\t\tvar elem = n.snapshotItem(i);\r\n\t\t\telem.setAttribute('onClick',\"snd.x.value='\" + ciudades[i].x + \"';snd.y.value='\" + ciudades[i].y + \"'\");\r\n\t\t\telem.setAttribute('onMouseOver', 'this.style.color=\"red\"');\r\n\t\t\telem.setAttribute('onMouseOut', 'this.style.color=\"black\"');\r\n\t\t\telem.style.cursor = \"pointer\";\r\n\t\t}\r\n\t}", "allocateCautionArea() {\n const calNum = (n) => [n - 1, n, n + 1];\n const calCasIndex = (index) => {\n let [a , b] = index.split('-');\n let front = calNum(parseInt(a, 10));\n const frontcheck = (n) => n < this.length && n > -1;\n let back = calNum(parseInt(b, 10));\n const backcheck = (n) => n < this.length && n > -1;\n let Indexes = [];\n for (let i = 0; i < 3; i++) {\n for (let j = 0; j < 3; j++) {\n if (frontcheck(front[i]) && backcheck(back[j])) {\n Indexes.push(front[i] + '-' + back[j]);\n }\n }\n }\n let resultIndex = [];\n Indexes.map((el) => {\n if (!this.mines.includes(el)) {\n resultIndex.push(el);\n return true;\n } else {\n return false;\n }\n });\n return resultIndex;\n }\n const C = [];\n this.mines.map((el) => calCasIndex(el)).map(e => C.push(...e)); \n return C;\n }", "function combine_caps(xy, north_square, south_square, inverse) {\n var v, c, vector, v_min_c, ret_dot, tmpRot, a;\n var pole = 0;\n var capmap = get_cap(xy.x, xy.y, north_square, south_square, inverse);\n if (capmap.region == 'equatorial') {\n xy.x = capmap.x;\n xy.y = capmap.y;\n return;\n }\n v = [xy.x, xy.y];\n c = [capmap.x, capmap.y];\n\n if (!inverse) {\n /* Rotate (x, y) about its polar cap tip and then translate it to\n north_square or south_square. */\n\n if (capmap.region == 'north') {\n pole = north_square;\n tmpRot = rot[get_rotate_index(capmap.cn - pole)];\n } else {\n pole = south_square;\n tmpRot = rot[get_rotate_index(-1 * (capmap.cn - pole))];\n }\n } else {\n /* Inverse function.\n Unrotate (x, y) and then translate it back. */\n\n /* disassemble */\n if (capmap.region == 'north') {\n pole = north_square;\n tmpRot = rot[get_rotate_index(-1 * (capmap.cn - pole))];\n } else {\n pole = south_square;\n tmpRot = rot[get_rotate_index(capmap.cn - pole)];\n }\n }\n v_min_c = vector_sub(v, c);\n ret_dot = dot_product(tmpRot, v_min_c);\n a = [-3 * M_FORTPI + ((!inverse) ? 0 : capmap.cn) * M_HALFPI, M_HALFPI];\n vector = vector_add(ret_dot, a);\n xy.x = vector[0];\n xy.y = vector[1];\n }", "function buildProjectCard(imgsrc, category, color, title, pagename){ \n return `<div id=\"${pagename}\" class=\"content-card\"><a href=\"${pagename}.html\" style=\"color: unset;\" onmouseover=\"siMouseOver(this)\" onmouseout=\"siMouseOut(this)\"><img class=\"shadow-img si-hover\" src=\"${imgsrc}\"></a><h3 class=\"content-catagory\" style=\"color: #${color};\">${category}</h3><h4 class=\"content-title\">${title}</h4><div class=\"content-line\"></div></div>`;\n}", "composite(image, x, y) {\n if (image instanceof JimpImage) {\n let img = image;\n this.image.composite(img.image, x, y);\n }\n else {\n throw new Error('image is not an instance of JimpImage');\n }\n }", "function crepuscolo(njd,tempo_rif,longitudine,latitudine,altitudine){\n\n // funzione per il calcolo del crepuscolo astronomico.\n // FUNZIONE DA ELIMINARE e sostituire con crepuscolo_UT\n \n var tempo_rifst=0; // tempo di riferimento per il sorgere e il tramonto.\n // \nif (tempo_rif==\"TL\") { tempo_rifst=-fuso_loc(); } // riferimento al tempo locale.\nelse if (tempo_rif==\"TU\") { tempo_rifst=0 ;} // il riferimento rimane il TU\n\n\n var ps_sole=pos_sole(njd);\n var DEs=ps_sole[1];\n\n var LATr=latitudine/180*Math.PI;\n var DEr=DEs/180*Math.PI;\n\n var H=Math.acos(-Math.tan(LATr)*Math.tan(DEr));\n\n var H1=Math.acos((Math.cos(1.88495556)-Math.sin(LATr)*Math.sin(DEr))/(Math.cos(LATr)*Math.cos(DEr)));\n\n var H= H*180/Math.PI;\n var H1=H1*180/Math.PI;\n\n var T=((H1-H)/15)*0.9973;\n\n// new Array(azimut_sorgere,azimut_tramonto,tempo_sorgere,tempo_transito,tempo_tramonto)\n// 0 1 2 3 4\n\n var p_sole=ST_ASTRO_DATA(njd,ps_sole[0],ps_sole[1],longitudine,latitudine,altitudine,0.25);\n\n var crep_m=ore_24(p_sole[2]-T+tempo_rifst); // crepuscolo del mattino.\n var crep_s=ore_24(p_sole[4]+T+tempo_rifst); // crepuscolo serale\n\n crep_m=sc_ore_hm(crep_m); // crepuscolo del mattino.\n crep_s=sc_ore_hm(crep_s); // crepuscolo serale\n\n var tempi_crep= new Array(crep_m,crep_s);\n\n return tempi_crep;\n \n}", "function cargarCapas() {\r\n var stylePuntosParadas = new OpenLayers.StyleMap( {\r\n fillOpacity : 0.7,\r\n pointRadius : 9,\r\n idBD : \"${idBD}\",\r\n idOrd : \"${idOrd}\",\r\n label : \"${idOrd}\",\r\n lat : \"${lat}\",\r\n lon : \"${lon}\",\r\n dir : \" ${dir}\",\r\n ref : \"${ref}\",\r\n img : \"${img}\",\r\n fontColor : \"white\",\r\n fillColor : \"#1C5E06\", //verde\r\n strokeColor : \"#FFFFFF\",\r\n strokeOpacity : 0.7,\r\n fontSize : \"12px\",\r\n fontFamily : \"Courier New, monospace\",\r\n fontWeight : \"bold\"\r\n });\r\n\r\n var stylePuntosEstudiante = new OpenLayers.StyleMap( {\r\n fillOpacity : 0.7,\r\n pointRadius : 6,\r\n ci : \"${ci}\",\r\n lat : \"${lat}\",\r\n lon : \"${lon}\",\r\n dir : \"${dir}\",\r\n fontColor : \"white\",\r\n fillColor : \"#DF3A01\", //naranja\r\n strokeColor : \"#FFFFFF\",\r\n strokeOpacity : 0.7,\r\n fontSize : \"12px\",\r\n fontFamily : \"Courier New, monospace\",\r\n fontWeight : \"bold\"\r\n });\r\n\r\n var stylePuntosRutas = new OpenLayers.StyleMap( {\r\n fillOpacity : 0.7,\r\n pointRadius : 9,\r\n label : \"${id}\",\r\n fontColor : \"white\",\r\n fillColor : \"#003DF5\", //black\r\n strokeColor : \"#FFFFFF\",\r\n strokeOpacity : 0.7,\r\n fontSize : \"12px\",\r\n fontFamily : \"Courier New, monospace\",\r\n fontWeight : \"bold\"\r\n });\r\n\r\n lienzoParadas = new OpenLayers.Layer.Vector('Points', {\r\n styleMap: stylePuntosParadas\r\n });\r\n\r\n map.addLayer(lienzoParadas);\r\n\r\n lienzoRutas = new OpenLayers.Layer.Vector('Puntos Rutas', {\r\n styleMap: stylePuntosRutas\r\n });\r\n\r\n map.addLayer(lienzoRutas);\r\n \r\n lienzoEstudiantes = new OpenLayers.Layer.Vector('Puntos Estudiantes', {\r\n styleMap: stylePuntosEstudiante\r\n });\r\n\r\n map.addLayer(lienzoEstudiantes);\r\n\r\n //Comportamiento de los Elementos de la Capa\r\n selectFeatures = new OpenLayers.Control.SelectFeature(\r\n [ lienzoParadas ],\r\n {\r\n clickout : true,\r\n toggle : false,\r\n multiple : false,\r\n hover : false,\r\n onSelect : function(feature){\r\n selectParada( feature );\r\n },\r\n onUnselect : function(feature){\r\n unselectParada( feature );\r\n }\r\n }\r\n );\r\n\r\n map.addControl( selectFeatures );\r\n selectFeatures.activate();\r\n \r\n selectFeaturesEstudiante = new OpenLayers.Control.SelectFeature(\r\n [ lienzoEstudiantes ],\r\n {\r\n clickout : true,\r\n toggle : false,\r\n multiple : false,\r\n hover : false,\r\n onSelect : function(feature){\r\n infoEstudiantePopUp(feature);\r\n },\r\n onUnselect : function(feature){\r\n map.removePopup( feature.popup );\r\n feature.popup.destroy();\r\n feature.attributes.poppedup = false;\r\n feature.popup = null;\r\n }\r\n }\r\n );\r\n\r\n map.addControl( selectFeaturesEstudiante );\r\n \r\n /**\r\n * Inicializa el mapa para que permita graficar los recorridos de los buses\r\n */\r\n capaRecorridos();\r\n permitirArrastrarPuntosRutas();\r\n}", "function insertActionToProjection()\n{ \n\tfor(var i=0;i< compositeCollection.length;i++)\n\t{\n\t\tvar compositeName=compositeCollection[i].name;\n\t\t print('logging from JavaScript - (insertActionToProjection) :creating the compositeaction - '+compositeName);\n\t\tproj.addNewCompositeAction(compositeName,compositeCollection[i].order);\n\t var actions=compositeCollection[i].actionList;\n\t print('logging from JavaScript - (insertActionToProjection) : the composite : '+compositeName +' has '+actions.length +' actions');\n\t\tfor(var j=0;j< actions.length;j++)\n\t\t {\n\t\t\tvar ActionConceptsList=actions[j].actionToDo;\n\n\t\t\t// iterate the Onrecieve concepts list and add the action to the composite action + set the Onreceive\n\t\t\t// for this action. if the Onrecieve collection is empy-> just create and add the action\n\n\n\t\t\tprint('logging from JavaScript - (insertActionToProjection) :adding the('+j+') action : ' +actions[j].name +' to composite : '+compositeName);\n\n\t\t\tproj.addActionToComposite(compositeName,actions[j].type,actions[j].name,actions[j].concept);\n\n\t\t\tprint('logging from JavaScript (insertActionToProjection) :the action : '+actions[j].name +'have '+ActionConceptsList.length+' onrecieve concepts');\n\n for(var k=0;k< ActionConceptsList.length;k++)\n {\n var conceptToReceive=ActionConceptsList[k].concept;\n var actionName=ActionConceptsList[k].compName.name;\n var receiveOp=ActionConceptsList[k].receiveop;\n\n proj.setOnReceiveConcept(actionName,compositeName,conceptToReceive,actions[j].name,receiveOp);\n }\n\t\t}\n\t}\n}", "function Carnivorus(){\n\n}", "cocina(){}", "function newCompositeConstraintId(cids) {\n var name = 'composite';\n if (m.debugIds) {\n var idparts = [];\n cids.forEach(function (cid) {\n if (idparts.length != 0) {\n idparts.push(' + ');\n }\n idparts.push('(', cid.substring(0, cid.indexOf('#')), ')');\n });\n name = idparts.join('');\n }\n return ids.makeId(name);\n }", "function getCompositionsArray(){\n var comp_items = [];\n var general_items = app.project.items;\n for( var i=1; i<=general_items.length ; i++){\n if (general_items[i].typeName === \"Composición\")\n comp_items.push(general_items[i].name);\n }\n return comp_items;\n }", "function compress(nb) {\n return nb\n .replace(/VV/g, 'X')\n .replace(/LL/g, 'C')\n .replace(/DD/g, 'M')\n .replace(/DCCCC/g, 'CM')\n .replace(/CCCC/g, 'CD')\n .replace(/LXXXX/g, 'XC')\n .replace(/XXXX/g, 'XL')\n .replace(/VIIII/g, 'IX')\n .replace(/IIII/g, 'IV');\n }", "function capaRecorridos(){\r\n /**\r\n * Inicializar la capa para los recorridos\r\n */\r\n lienzoRecorridos = new OpenLayers.Layer.Vector(\"Recorridos\");\r\n markerInicioFin = new OpenLayers.Layer.Markers( \"Inicio-Fin\" );\r\n map.addLayer(lienzoRecorridos);\r\n map.addLayer(markerInicioFin);\r\n}", "function transform (productions) {\n \t//map (qiAqj) form to a letter\n \tvar dict = {};\n \tdict[start] = 'S';\n \tvar index = 0;\n \t//assign letters\n \tfor (var i = 0; i < productions.length; i++) {\n \t\tif(!(productions[i][0] in dict)){\n \t\t\tdict[productions[i][0]] = variables[index];\n \t\t\tindex ++;\n \t\t}\n \t}\n \t//create the new productions\n \tvar ret = [];\n \tfor (var i = 0; i < productions.length; i++) {\n \t\tif(productions[i][2].length === 1){\n \t\t\tret.push([dict[productions[i][0]], arrow, productions[i][2][0]]);\n \t\t}else{\n \t\t\tret.push([dict[productions[i][0]], arrow, productions[i][2][0] + dict[productions[i][2][1]] + dict[productions[i][2][2]]]);\n \t\t}\n \t}\n \treturn ret;\n }", "function Compound(){}", "get Collide() {}", "function Corps()\r\n{\r\n\tthis.body = window.document.querySelector('body');\r\n\tthis.corps = window.document.createElement('div');\r\n\tthis.corps.setAttribute('id', 'corps');\r\n\r\n\t//specification de style\r\n\tdefineStyle.Corps(this.corps);\t\r\n\r\n\t//ajout du crédit image\r\n\tthis.corps.appendChild((new PCreditImage()).getElement());\r\n\r\n\t//ajout du contenu du corps\r\n\tvar tempChaine = \"\";\r\n\r\n\tfor(var i=1; i<301; i++)\r\n\t{\r\n\t\ttempChaine += 'OuiOuiOui-OuiOui-OuiOui-OuiOuiOuiOuiOuiOuiOui-'+i+((i==300)?'.':'-');\r\n\t}\r\n\tthis.corps.appendChild(window.document.createTextNode(tempChaine));\r\n\r\n\t//getter\r\n\tthis.getElement = function () { return this.corps; };\r\n}", "function ComplexParts() {\r\n}", "function planets1(Px, Py) {\n\tpush();\n\ttranslate(Px, Py);\n\trotate(start1);\n\timage(plan1, 210, 210, 90, 90);\n\tstart1 += addR;\n\tpop();\n\t//console.log(rotation);\n}", "function media_upcreate___part_of_medupcr_basic()\n {\n //=================================================\n // //\\\\ manages legend CSS-visibility\n // by essay-state\n //=================================================\n var rgMainLegend = haz( rg, 'main-legend' );\n if( rgMainLegend ) {\n var rgTeoTab = rgMainLegend[ amode.theorion ];\n if( amode.theorion === 'corollary' && amode.aspect === 'model' ) {\n $$.$( rgTeoTab.tableDom ).addClass( 'hidden' );\n } else {\n $$.$( rgTeoTab.tableDom ).removeClass( 'hidden' );\n }\n }\n //=================================================\n // \\\\// manages legend CSS-visibility\n //=================================================\n\n //vital for letters/picture conflict\n //see: model-point-dragger.js ... haz( sconf, 'dragHidesPictures' )\n rg.allLettersAreHidden = !rg.detected_user_interaction_effect_DONE;\n\n //=================================================\n // //\\\\ analytical derivative dy/dx\n //=================================================\n var cfun = ssD.repoConf[ssD.repoConf.customFunction];\n\n //-------------------------------------------------\n // //\\\\ original arc and curve\n //-------------------------------------------------\n\n //must be in synch with rotation of AL\n //pointB : rg.B,\n\n\n ssF.paintsCurve({\n //rgName : will become 'arc-AB',\n fun : cfun.fun,\n pointA : rg.A,\n pointB : rg.B,\n\n //-----------------------------------------\n // //\\\\ apparently this fixes\n //-----------------------------------------\n // arc out of synch with B\n start : rg.A.pos[0],\n step : (rg.B.unrotatedParameterX - rg.A.pos[0] ) / 20,\n stepsCount : 20,\n //-----------------------------------------\n // \\\\// apparently this fixes\n //-----------------------------------------\n\n mmedia : stdMod.mmedia,\n addToStepCount : 1,\n });\n\n ssF.paintsCurve({\n rgName : 'curve-AB',\n fun : cfun.fun,\n\n //this makes curve's beginning tail going up - not good\n //pointA : rg.curveStart,\n //so, we truncate it, but need to draw it separately later on,\n pointA : rg.A,\n\n pointB : rg.curveEnd,\n mmedia : stdMod.mmedia,\n addToStepCount : 1,\n });\n\n ///left branch of original curve is a reflection against axis y\n ssF.paintsCurve({\n rgName : 'left-curve-AB',\n fun : ssD.repoConf[2].fun,\n\n pointA : rg.A,\n pointB : rg.curveEnd,\n mmedia : stdMod.mmedia,\n addToStepCount : 1,\n });\n\n\n\n //-------------------------------------------------\n // \\\\// original arc and curve\n //-------------------------------------------------\n\n\n\n\n //-------------------------------------------------\n // //\\\\ paints magnified curve\n //-------------------------------------------------\n var magnitude = rg.magnitude.value;\n //misleading notation: this is not ..._b, this is ..._B\n rg.derotated_b = toreg( 'derotated_b' )( 'pos', [rg.B.unrotatedParameterX,0] )();\n ssF.paintsCurve({\n rgName : 'arc-Ab',\n fun : cfun.fun, //for l8, cust fun = 0 = rotated fun\n pointA : rg.A,\n pointB : rg.derotated_b,\n mmedia : stdMod.mmedia,\n magnitude,\n //addedCssClass: 'tp-arc-Ab tp-both-curves', \n addedCssClass: 'tp-arc-Ab', \n addToStepCount : 1,\n stepsCount : fconf.sappId === \"b1sec1lemma8\" ? 200 : null,\n });\n //-------------------------------------------------\n // \\\\// paints magnified curve\n //-------------------------------------------------\n\n ///draws tangentPhi\n var angleName =\n ( amode.subessay === 'derivative' ||\n amode.subessay === 'vector-derivative'\n ) ? 'ψ' : 'φₒ';\n var wwRg = toreg( 'tangentPhi' )( 'pname', 'tangentPhi' )\n ( 'pos', rg.L.pos )( 'pcolor', rg.L.pcolor )();\n wwRg.medpos = ssF.mod2inn( rg.tangentPhi.pos );\n ssF.drawAngleFrom_rayAB2rayCD_at_medpos({\n AB : [ rg.dr.pivots[1], rg.dr.pivots[0] ],\n CD : rg.AL.pivots,\n rgSample : wwRg,\n ANGLE_SIZE : 1,\n caption : angleName,\n });\n\n\n ( function() {\n var AB = null;\n ////delta phi\n var rgSample = toreg( 'deltaphi' )( 'pname', 'deltaphi' )( 'pcolor', rg.A.pcolor )();\n if( amode.subessay === 'sin(x)/x' ){\n ///draws phi and renames it\n var caption = 'φ';\n rgSample.pos = rg.r.pos;\n var AB = [ rg.Ar.pivots[1], rg.Ar.pivots[0] ];\n var CD = [ rg.Br.pivots[1], rg.Br.pivots[0] ];\n } else if( amode.subessay === 'sine derivative' ) {\n ///draws delta phi\n var caption = 'Δφ';\n rgSample.pos = rg.O.pos;\n var AB = [ rg.AO.pivots[1], rg.AO.pivots[0] ];\n var CD = [ rg.BO.pivots[1], rg.BO.pivots[0] ];\n }\n rgSample.medpos = ssF.mod2inn( rgSample.pos );\n if( AB ) {\n ///todM useless when not displayed, but algo fails to omit this block:\n ssF.drawAngleFrom_rayAB2rayCD_at_medpos({\n AB,\n CD,\n rgSample,\n ANGLE_SIZE : 1,\n caption,\n })\n }\n }) ();\n ssF.angleVisib({ pname : 'deltaphi' });\n\n if( amode.subessay === 'sine derivative' ||\n amode.subessay === 'derivative' ||\n amode.subessay === 'vector-derivative'\n ){\n ///draws phi\n ///adds an extra point at rg.O to comply angle-api\n var wwRg = toreg( 'phi0' )( 'pname', 'phi0' )( 'pos', rg.O.pos )\n ( 'pcolor', rg.A.pcolor )();\n wwRg.medpos = ssF.mod2inn( wwRg.pos );\n ssF.drawAngleFrom_rayAB2rayCD_at_medpos({\n AB : rg[ 'O,ytop' ].pivots,\n CD : [ rg.AO.pivots[1], rg.AO.pivots[0] ],\n rgSample : wwRg,\n ANGLE_SIZE : 1.5,\n caption : 'φₒ',\n })\n }\n ssF.angleVisib({ pname : 'phi0' });\n\n if( amode.subessay === 'sine derivative' ) {\n var wwLine = ssF.str2line( 'x0,x', 'tp-debug', sconf.lines[ 'x0,x' ], 'Δsin(φ)' );\n //patch: overrides wide-lemma settings for tp-width for svg-text element\n wwLine.pnameLabelsvg$.addClass( 'hover-width' );\n } else {\n ////todo patch ... overrides caption by rewriting the line\n ssF.str2line( 'x0,x', 'tp-debug', sconf.lines[ 'x0,x' ], ' ' );\n }\n }", "function showConjugates () {\n\n pointsTable = lens.pointsTable.getData(); \n pointsList = Optics.calculatePointToPoint(renderableLens.total, pointsTable);\n totalLens = renderableLens.total;\n\n if (pointsList.length > 0) {\n pointsList.forEach( elem => {\n console.log(\"showing .... conjugate pair id = \" + elem.id);\n drawConjugates(elem, displayOptions);\n } );\n }\n }", "function ch(a){var b;if(a.wc)b=a.wc();else if(a.Xb)b=a.Xb();else throw\"Not Block or Workspace: \"+a;a=Object.create(null);for(var c=0;c<b.length;c++){var d=b[c].ad;if(d)for(var d=d.call(b[c]),e=0;e<d.length;e++){var h=d[e];h&&(a[h.toLowerCase()]=h)}}b=[];for(var k in a)b.push(a[k]);return b}", "function ZZcompoEM(Monstre) {\r\n var compo=\"\";\r\n\tfor (var i=0; i<tabEM.length; i++) {\r\n\t \tif (tabEM[i][0].toLowerCase()==Monstre.toLowerCase()) {\r\n\t \t if (tabEM[i][4]==1)\r\n\t\t\t compo=\"<IMG SRC='\"+SkinZZ+\"smallEM_variable.gif'> Divers composants <b>\"+tabEM[i][1]+\" \"+tabEM[i][0]+\" </b>(\"+tabEM[i][2]+\")\";\r\n \t\t else\r\n\t\t\t compo=\"<IMG SRC='\"+SkinZZ+\"smallEM_fixe.gif'> <b>\"+tabEM[i][1]+\" \"+tabEM[i][0]+\"</b> (Qualité \"+tabQualite[tabEM[i][3]]+\") pour l'écriture de <b>\"+tabEM[i][2]+\"</b>\";\r\n\t\t}\r\n\t}\r\n\treturn compo; \r\n}", "function setUnitMatrixC() {\n \"use strict\";\n var row;\n var col;\n for (row = 0; row < 3; row = row + 1) {\n for (col = 0; col < 3; col = col + 1) {\n if (row === col) {\n composite[row][col] = 1;\n } else {\n composite[row][col] = 0;\n }\n }\n }\n}", "function Isoceles(a, b, c) {\n\tthis.a = a;\n\tthis.b = b;\n\tthis.c = c;\n}", "function mbcs() {}", "function mbcs() {}", "function main () {\n return union(\n\t\t// top\n\t\tdifference(\n\t\t\tcube({size:[17,17,1],center:true}).translate([0,0,64]),\n\t\t\tsphere({r:2.5,center:true}).translate([0,0,65])\n\t\t),\n\t\t//base\n\t \tdifference(\n\t\t difference(\n\t\t cube({size: [15,5,5], center: true}).translate([0,0,0]),\n\t\t cube({size: [51,5,2], center: true}).translate([0,-2,0])\n\t\t ),\n\t\t cube({size:[2,15,1.5], center: true}).translate([2,7,0]),\n\t\t cube({size:[2,15,1.5], center: true}).translate([-2,7,0])\n\t ).translate([0,-5.5, 60.575]),\n\t\tdifference(\n difference(\n\t\t\t\tcube({size: [15,5,5], center: true}).translate([0,0,0]),\n\t\t\t\tcube({size: [51,5,2], center: true}).translate([0,-2,0])\n ),\n cube({size:[2,15,1.5], center: true}).translate([2,7,0]),\n cube({size:[2,15,1.5], center: true}).translate([-2,7,0])\n ).rotateX(90).rotateX(90).translate([0,5.5, 60.575]),\n\t\ttorus({ ri : 1,fni : 16, roti : 16, ro : 4, fno : 4}).scale([1,1,30]).translate([0,0,30]),\n\t\tdifference(\n\t\t\tcylinder({d:30,h:1,fn:64}).rotateZ(45),\n\t\t\tcylinder({d:7,h:10, center: true}).translate([0,0,0])\n\t\t)\n\t)\n}", "function cardComp (headline, authorPhoto, authorName) {\n const card= document.createElement('div')\n card.classList.add('card')\n\n card.appendChild(headlineComp(headline))\n card.appendChild(authorComp(authorPhoto, authorName))\n \n return card\n}", "function construye() {\n let base = [];\n for (let i = 0; i < numCajas; i++) {\n base.push(angular.copy(cajaDefecto));\n }\n return base;\n }", "function replace_allianz() {\r\n\tadd_log(3,\"replace_allianz() > Début.\");\r\n\tvar div_allianz = $class('sideInfoAlly')[0];\r\n\tdiv_allianz.style.backgroundImage= 'none';\r\n\tdiv_allianz.innerHTML= \"<div style='visibility: hidden; height: 0px;'>\" + div_allianz.innerHTML + \"</div>\";\r\n\tdiv_allianz.style.width = '200px';\r\n\tdiv_allianz.style.height = '50px';\r\n\t\r\n\t\t\r\n\tvar cadre_allianz = $cr_table([['id', 'cadre_allianz'],['class', 'cadres_side'],['cellspacing', '0'],['cellpadding', '0']]);\r\n\tvar hero_ligne = $cr_tr();\r\n\tif(isR2L) {\r\n\t\tvar hero_cel_3 = $cr_td([['class', 'cadres_side_t1']]);\r\n\t\tvar hero_cel_1 = $cr_td([['class', 'cadres_side_t3']]);\r\n\t\t}\r\n\telse {\r\n\t\tvar hero_cel_1 = $cr_td([['class', 'cadres_side_t1']]);\r\n\t\tvar hero_cel_3 = $cr_td([['class', 'cadres_side_t3']]);\r\n\t\t}\r\n\tvar hero_cel_2 = $cr_td([['class', 'cadres_side_t2'],['colspan', '2']]);\r\n\thero_ligne.appendChild(hero_cel_1);\r\n\thero_ligne.appendChild(hero_cel_2);\r\n\thero_ligne.appendChild(hero_cel_3);\r\n\tcadre_allianz.appendChild(hero_ligne);\r\n\t\r\n\tvar hero_ligne = $cr_tr();\r\n\tif(isR2L) {\r\n\t\tvar hero_cel_5 = $cr_td([['class', 'cadres_side_m1']]);\r\n\t\tvar hero_cel_1 = $cr_td([['class', 'cadres_side_m5']]);\r\n\t\t}\r\n\telse {\r\n\t\tvar hero_cel_1 = $cr_td([['class', 'cadres_side_m1']]);\r\n\t\tvar hero_cel_5 = $cr_td([['class', 'cadres_side_m5']]);\r\n\t\t}\r\n\t\t\r\n\tvar hero_cel_2 = $cr_td([['id', 'forum_ally'],['class', 'cadres_side_m3']]);\r\n\tvar hero_lien = $cr_a(\" \",[['href','allianz.php?s=2']])\r\n\tvar hero_img_hero = $cr_img([['src', var_images['alliance_blason']]]);\r\n\thero_lien.appendChild(hero_img_hero);\r\n\thero_lien.addEventListener(\"mouseover\", function () {this.style.color='#22AA55'; $id('forum_ally').style.backgroundImage='none'; $id('forum_ally').style.backgroundColor='#BBFFBB';}, true);\r\n\thero_lien.addEventListener(\"mouseout\", function () {this.style.color='#000000'; $id('forum_ally').style.backgroundImage=\"url('\" + var_images['cadre'] + \"')\"; $id('forum_ally').style.backgroundColor='transparent';}, true);\r\n\thero_cel_2.appendChild(hero_lien);\r\n\t\r\n\tvar hero_cel_3 = $cr_td([['id', 'info_ally'],['class', 'cadres_side_m2']]);\r\n\tvar adventure_lien = $cr_a(\" \",[['href','allianz.php']])\r\n\tvar hero_texte = $cr_s(\" \" + var_divers['allianz'])\r\n\tadventure_lien.appendChild(hero_texte);\r\n\tadventure_lien.addEventListener(\"mouseover\", function () {this.style.color='#22AA55'; $id('info_ally').style.backgroundImage='none'; $id('info_ally').style.backgroundColor='#BBFFBB';}, true);\r\n\tadventure_lien.addEventListener(\"mouseout\", function () {this.style.color='#000000'; $id('info_ally').style.backgroundImage=\"url('\" + var_images['cadre'] + \"')\"; $id('info_ally').style.backgroundColor='transparent';}, true);\r\n\thero_cel_3.appendChild(adventure_lien);\r\n\t\r\n\thero_ligne.appendChild(hero_cel_1);\r\n\thero_ligne.appendChild(hero_cel_2);\r\n\thero_ligne.appendChild(hero_cel_3);\r\n\thero_ligne.appendChild(hero_cel_5);\r\n\tcadre_allianz.appendChild(hero_ligne);\r\n\t\r\n\t\r\n\tvar hero_ligne = $cr_tr();\r\n\tif(isR2L) {\r\n\t\tvar hero_cel_3 = $cr_td([['class', 'cadres_side_b1']]);\r\n\t\tvar hero_cel_1 = $cr_td([['class', 'cadres_side_b3']]);\r\n\t\t}\r\n\telse {\r\n\t\tvar hero_cel_1 = $cr_td([['class', 'cadres_side_b1']]);\r\n\t\tvar hero_cel_3 = $cr_td([['class', 'cadres_side_b3']]);\r\n\t\t}\r\n\tvar hero_cel_2 = $cr_td([['class', 'cadres_side_b2'],['colspan', '2']]);\r\n\thero_ligne.appendChild(hero_cel_1);\r\n\thero_ligne.appendChild(hero_cel_2);\r\n\thero_ligne.appendChild(hero_cel_3);\r\n\tcadre_allianz.appendChild(hero_ligne);\r\n\t\r\n\tcadre_allianz.style.position = 'relative';\r\n\tif(isR2L)\r\n\t\tcadre_allianz.style.right = '-3px';\r\n\telse\r\n\t\tcadre_allianz.style.left = '-3px';\r\n\tdiv_allianz.appendChild(cadre_allianz);\r\n\t\t\r\n\tadd_log(1,\"replace_allianz() > Cadre Alliance remplacé\");\r\n\t\r\n\tadd_log(3,\"replace_allianz() > Fin.\");\r\n\t}", "function ws_collage(r,I,A){var y=jQuery,f=y(this),C=y(\".ws_list\",A),m=r.maxQuality||true,u=r.maxPreload||20,E=!r.noCanvas&&document.createElement(\"canvas\").getContext,e=10,F=false,M=0.3,l=0.7,w=-180,a=180,d=I.length,S=[];var v=y(\"<div>\").addClass(\"ws_effect ws_collage\").css({position:\"absolute\",width:\"100%\",height:\"100%\",left:0,top:0,overflow:\"hidden\",\"z-index\":8}).appendTo(A);function H(x,j,i){return parseFloat(i*(j-x)+x)}function R(W,V,N){var i=N*V.x,X=N*V.y,j=N*V.width,U=N*V.height;if(E){W.save();W.translate(i+0.5*j,X+0.5*U);W.rotate(V.angle*Math.PI/180);W.scale(V.scale,V.scale);if(V.img){W.drawImage(V.img,-0.5*j,-0.5*U,j,U)}W.restore()}else{y(\"<img>\").attr(\"src\",V.img).css({position:\"absolute\",width:100*j/r.width+\"%\",height:100*U/r.height+\"%\",left:100*i/r.width+\"%\",top:100*X/r.height+\"%\"}).appendTo(W)}}function c(V,Y,U,N,W,Z){var x=S[V],X=S[Y],i=new Date;if(E){var j=y(I[Y]);j={width:j.width(),height:j.height(),marginTop:parseFloat(j.css(\"marginTop\")),marginLeft:parseFloat(j.css(\"marginLeft\"))};y(t).css(j)}wowAnimate(function(aa){var aj=1-2*aa;if(aj<0){aj*=-1;if(aj>1){aj=1}}aj=jQuery.easing.easeInOutQuad(1,aj,0,1,1);aa=jQuery.easing.easeInOutQuad(1,aa,0,1,1);if(E){o.width=N;o.height=W;t.width=N;t.height=W;var ab=H(r.width/X.width,r.width/x.width,aa),ac=H(0.5,H(1/X.scale,1/x.scale,aa),aj),ag=H(1/X.scale,1/x.scale,aa),ah=H(X.angle,x.angle,aa),ai=U*x.width,ad=U*x.height,af=U*H(X.x,x.x,aa),ae=U*H(X.y,x.y,aa);if(Q&&k){o.ctx.drawImage(k,0,0,N,W);o.ctx.save();o.ctx.translate(af+0.5*ai,ae+0.5*ad);o.ctx.rotate(-ah*Math.PI/180);o.ctx.scale(ag,ag);o.ctx.translate(-(af+0.5*ai),-(ae+0.5*ad));o.ctx.transform(ag,0,0,ag,-af*ag,-ae*ag);o.ctx.drawImage(k,-N,-W,N*4,W*4);o.ctx.restore()}o.ctx.transform(ab,0,0,ab,-af*ab,-ae*ab);o.ctx.translate(af+0.5*ai,ae+0.5*ad);o.ctx.rotate(-ah*Math.PI/180);o.ctx.scale(ac,ac);o.ctx.translate(-(af+0.5*ai),-(ae+0.5*ad));o.ctx.globalAlpha=H(0.2,1,aj);if(m){for(P in S){R(o.ctx,S[P],U)}}else{o.ctx.drawImage(L,0,0)}o.ctx.globalAlpha=1;o.ctx.globalAlpha=H(0,1,aj);R(o.ctx,x,U);o.ctx.globalAlpha=H(1,0,aa*2>1?1:aa*2);R(o.ctx,X,U);o.ctx.globalAlpha=1;t.ctx.drawImage(o,0,0)}else{var ak=H(2,N/(X.width*U),aj),af=-U*H(X.x,x.x,aa)*ak,ae=-U*H(X.y,x.y,aa)*ak,ai=N*ak,ad=W*ak;t.css({left:af,top:ae,width:ai,height:ad})}v.show()},0,1,r.duration,function(){Z()})}function B(V,i,U,j,N){if(V>i||!S[V]||S[V].img){return}var x=new Image();x.onload=function(){S[V].img=x;if(U&&V!=N[0]&&V!=N[1]){R(j,S[V],1);B(V+1,i,true,j,N)}else{B(V+1,i,false)}};x.onerror=function(){if(U&&V!=N[0]&&V!=N[1]){R(j,S[V],1);B(V+1,i,true,j,N)}else{B(V+1,i,false)}};x.src=I[V].src}var q=0,p=0,s=r.width/(Math.sqrt(d)+1),z=r.height/(Math.sqrt(d)+1),b=Math.floor(r.width/s);for(P=0;P<d;P++){if(s+q>s*b){p=Math.floor(s*(P+1)/r.width)*z;q=0}S[P]={x:q,y:p,width:s,height:z,img:null};if(E){S[P].scale=H(M,l,Math.random());S[P].angle=H(w,a,Math.random())}q+=parseFloat(s)}for(var O,D,P=S.length;P;O=parseInt(Math.random()*P),D=S[--P],S[P]=S[O],S[O]=D){}if(E){var t=y(\"<canvas>\")[0];t.ctx=t.getContext(\"2d\");t.width=v.width();t.height=v.height();var o=y(\"<canvas>\")[0];o.ctx=o.getContext(\"2d\");o.width=v.width();o.height=v.height();var k=y(\"<canvas>\")[0];k.ctx=k.getContext(\"2d\");k.width=v.width();k.height=v.height();if(!m){var L=y(\"<canvas>\")[0];L.ctx=L.getContext(\"2d\");L.width=v.width();L.height=v.height()}v.append(t)}else{var t=v.clone().removeClass(\"ws_effect\").css({overflow:\"visible\"});v.css(\"display\",\"none\").append(t);for(P in S){S[P].img=I[P].src;R(t,S[P],1)}var h=(d%b==\"undefined\"?0:d%b);startRight=0,bottomAddCount=2*b-h,rightAddCount=Math.ceil(d/b)+1;for(var P=0;P<bottomAddCount;P++){R(t,{img:I[P%I.length].src,width:s,height:z,x:s*((h+P)%b),y:p+Math.floor((h+P)/b)*z},1)}for(var P=0;P<bottomAddCount;P++){R(t,{img:I[P%I.length].src,width:s,height:z,x:s*b,y:P*z},1)}}var G,Q;this.go=function(x,U){if(G){return -1}if(r.images){S[x].img=I[x]}if(window.XMLHttpRequest){if(E){var N=r.width,j=r.height,i=1;B(U,U,false);B(x,x,false);if(m){B(2,u+1,false)}else{L.width=N;L.height=j;B(2,u+1,true,L.ctx,[U,x])}if(!Q&&!F){rand=Math.round(H(0,d-1,Math.random()));k.width=v.width();k.height=v.height();Q=J(y(I[rand]),e,k)}}else{var N=A.width(),j=A.height(),i=N/r.width}G=new c(x,U,i,N,j,function V(){f.trigger(\"effectEnd\");v.hide();G=0;if(!m&&E){for(i in S){S[i].img=null}}})}else{G=0;C.stop(true).animate({left:(x?-x+\"00%\":(/Safari/.test(navigator.userAgent)?\"0%\":0))},r.duration,\"easeInOutExpo\",function(){f.trigger(\"effectEnd\")})}};function J(i,x,j){if(E){j.ctx.drawImage(i.get(0),0,0);if(!n(j.ctx,0,0,j.width,j.height,x)){j.ctx.drawImage(i.get(0),0,0)}return true}return cont}var g=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];var K=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function n(aI,ap,an,j,N,az){if(isNaN(az)||az<1){return}az|=0;var aD;try{aD=aI.getImageData(ap,an,j,N)}catch(aH){console.log(\"error:unable to access image data: \"+aH);return false}var X=aD.data;var ax,aw,aF,aC,ae,ah,ab,V,W,am,ac,ao,ak,at,ay,af,aa,ag,ai,ar;var aG=az+az+1;var au=j<<2;var ad=j-1;var aB=N-1;var Z=az+1;var aA=Z*(Z+1)/2;var aq=new T();var al=aq;for(aF=1;aF<aG;aF++){al=al.next=new T();if(aF==Z){var Y=al}}al.next=aq;var aE=null;var av=null;ab=ah=0;var aj=g[az];var U=K[az];for(aw=0;aw<N;aw++){at=ay=af=V=W=am=0;ac=Z*(aa=X[ah]);ao=Z*(ag=X[ah+1]);ak=Z*(ai=X[ah+2]);V+=aA*aa;W+=aA*ag;am+=aA*ai;al=aq;for(aF=0;aF<Z;aF++){al.r=aa;al.g=ag;al.b=ai;al=al.next}for(aF=1;aF<Z;aF++){aC=ah+((ad<aF?ad:aF)<<2);V+=(al.r=(aa=X[aC]))*(ar=Z-aF);W+=(al.g=(ag=X[aC+1]))*ar;am+=(al.b=(ai=X[aC+2]))*ar;at+=aa;ay+=ag;af+=ai;al=al.next}aE=aq;av=Y;for(ax=0;ax<j;ax++){X[ah]=(V*aj)>>U;X[ah+1]=(W*aj)>>U;X[ah+2]=(am*aj)>>U;V-=ac;W-=ao;am-=ak;ac-=aE.r;ao-=aE.g;ak-=aE.b;aC=(ab+((aC=ax+az+1)<ad?aC:ad))<<2;at+=(aE.r=X[aC]);ay+=(aE.g=X[aC+1]);af+=(aE.b=X[aC+2]);V+=at;W+=ay;am+=af;aE=aE.next;ac+=(aa=av.r);ao+=(ag=av.g);ak+=(ai=av.b);at-=aa;ay-=ag;af-=ai;av=av.next;ah+=4}ab+=j}for(ax=0;ax<j;ax++){ay=af=at=W=am=V=0;ah=ax<<2;ac=Z*(aa=X[ah]);ao=Z*(ag=X[ah+1]);ak=Z*(ai=X[ah+2]);V+=aA*aa;W+=aA*ag;am+=aA*ai;al=aq;for(aF=0;aF<Z;aF++){al.r=aa;al.g=ag;al.b=ai;al=al.next}ae=j;for(aF=1;aF<=az;aF++){ah=(ae+ax)<<2;V+=(al.r=(aa=X[ah]))*(ar=Z-aF);W+=(al.g=(ag=X[ah+1]))*ar;am+=(al.b=(ai=X[ah+2]))*ar;at+=aa;ay+=ag;af+=ai;al=al.next;if(aF<aB){ae+=j}}ah=ax;aE=aq;av=Y;for(aw=0;aw<N;aw++){aC=ah<<2;X[aC]=(V*aj)>>U;X[aC+1]=(W*aj)>>U;X[aC+2]=(am*aj)>>U;V-=ac;W-=ao;am-=ak;ac-=aE.r;ao-=aE.g;ak-=aE.b;aC=(ax+(((aC=aw+Z)<aB?aC:aB)*j))<<2;V+=(at+=(aE.r=X[aC]));W+=(ay+=(aE.g=X[aC+1]));am+=(af+=(aE.b=X[aC+2]));aE=aE.next;ac+=(aa=av.r);ao+=(ag=av.g);ak+=(ai=av.b);at-=aa;ay-=ag;af-=ai;av=av.next;ah+=j}}aI.putImageData(aD,ap,an);return true}function T(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}}", "function coatShape(shape) {\n let newShape = [];\n let emptySlate = new Array(shape[0].length + 2);\n let emptyRow = new Array(shape[0][0].length + 2);\n emptyRow.fill(-1);\n emptySlate.fill(emptyRow);\n newShape.push(emptySlate);\n for (let i = 0; i < shape.length; i++) {\n let hor = [];\n hor.push(emptyRow);\n for (let j = 0; j < shape[i].length; j++) {\n let ver = [];\n ver.push(-1);\n for (let k = 0; k < shape[i][j].length; k++) {\n ver.push(shape[i][j][k]);\n }\n ver.push(-1);\n hor.push(ver);\n }\n hor.push(emptyRow);\n newShape.push(hor);\n }\n newShape.push(emptySlate);\n return newShape;\n}", "function asy_postcompactcse5(geogebra){\r\n return geogebra\r\n .replace(/\\/\\*(.*?)\\*\\//g, \"\")\r\n .replace(/;( *)?\\n([a-z])/g, \"; $2\")\r\n .replace(/labelscalefactor/g, \"lsf\")\r\n .replace(/dotstyle/g, \"ds\")\r\n .replace(/\\n( )*?\\n( )*?(\\n( )*?)*/g, \"\\n\");\r\n}", "function ws_collage(s,J,B){var z=jQuery,f=z(this),D=z(\".ws_list\",B),m=s.maxQuality||true,v=s.maxPreload||20,F=!s.noCanvas&&document.createElement(\"canvas\").getContext,n=30,e=10,G=false,O=0.3,l=0.7,y=-180,a=180,d=J.length,T=[];B=B.parent();var w=z(\"<div>\").addClass(\"ws_effect ws_collage\").css({position:\"absolute\",width:\"100%\",height:\"100%\",left:0,top:0,overflow:\"hidden\",\"z-index\":8}).appendTo(B);function I(x,j,i){return parseFloat(i*(j-x)+x)}function S(X,W,N){var i=N*W.x,Y=N*W.y,j=N*W.width,V=N*W.height;if(F){X.save();X.translate(i+0.5*j,Y+0.5*V);X.rotate(W.angle*Math.PI/180);X.scale(W.scale,W.scale);if(W.img){X.drawImage(W.img,-0.5*j,-0.5*V,j,V)}X.restore()}else{z(\"<img>\").attr(\"src\",W.img).css({position:\"absolute\",width:100*j/s.width+\"%\",height:100*V/s.height+\"%\",left:100*i/s.width+\"%\",top:100*Y/s.height+\"%\"}).appendTo(X)}}function c(X,aa,W,V,Y,ab){var N=T[X],Z=T[aa],j=new Date;if(F){var x=z(J[aa]);x={width:x.width(),height:x.height(),marginTop:parseFloat(x.css(\"marginTop\")),marginLeft:parseFloat(x.css(\"marginLeft\"))};z(u).css(x)}var i=setInterval(function(){var ac=(new Date-j)/s.duration;if(ac>1){ac=1}var al=1-2*ac;if(al<0){al*=-1;if(al>1){al=1}}al=jQuery.easing.easeInOutQuad(1,al,0,1,1);ac=jQuery.easing.easeInOutQuad(1,ac,0,1,1);if(F){p.width=V;p.height=Y;u.width=V;u.height=Y;var ad=I(s.width/Z.width,s.width/N.width,ac),ae=I(0.5,I(1/Z.scale,1/N.scale,ac),al),ai=I(1/Z.scale,1/N.scale,ac),aj=I(Z.angle,N.angle,ac),ak=W*N.width,af=W*N.height,ah=W*I(Z.x,N.x,ac),ag=W*I(Z.y,N.y,ac);if(R&&k){p.ctx.drawImage(k,0,0,V,Y);p.ctx.save();p.ctx.translate(ah+0.5*ak,ag+0.5*af);p.ctx.rotate(-aj*Math.PI/180);p.ctx.scale(ai,ai);p.ctx.translate(-(ah+0.5*ak),-(ag+0.5*af));p.ctx.transform(ai,0,0,ai,-ah*ai,-ag*ai);p.ctx.drawImage(k,-V,-Y,V*4,Y*4);p.ctx.restore()}p.ctx.transform(ad,0,0,ad,-ah*ad,-ag*ad);p.ctx.translate(ah+0.5*ak,ag+0.5*af);p.ctx.rotate(-aj*Math.PI/180);p.ctx.scale(ae,ae);p.ctx.translate(-(ah+0.5*ak),-(ag+0.5*af));p.ctx.globalAlpha=I(0.2,1,al);if(m){for(Q in T){S(p.ctx,T[Q],W)}}else{p.ctx.drawImage(M,0,0)}p.ctx.globalAlpha=1;p.ctx.globalAlpha=I(0,1,al);S(p.ctx,N,W);p.ctx.globalAlpha=I(1,0,ac*2>1?1:ac*2);S(p.ctx,Z,W);p.ctx.globalAlpha=1;u.ctx.drawImage(p,0,0)}else{var am=I(2,V/(Z.width*W),al),ah=-W*I(Z.x,N.x,ac)*am,ag=-W*I(Z.y,N.y,ac)*am,ak=V*am,af=Y*am;u.css({left:ah,top:ag,width:ak,height:af})}w.show();if(ac==1){clearInterval(i);ab()}},Math.ceil(1000/n))}function C(W,i,V,j,N){if(W>i||!T[W]||T[W].img){return}var x=new Image();x.onload=function(){T[W].img=x;if(V&&W!=N[0]&&W!=N[1]){S(j,T[W],1);C(W+1,i,true,j,N)}else{C(W+1,i,false)}};x.onerror=function(){if(V&&W!=N[0]&&W!=N[1]){S(j,T[W],1);C(W+1,i,true,j,N)}else{C(W+1,i,false)}};x.src=J[W].src}var r=0,q=0,t=s.width/(Math.sqrt(d)+1),A=s.height/(Math.sqrt(d)+1),b=Math.floor(s.width/t);for(Q=0;Q<d;Q++){if(t+r>t*b){q=Math.floor(t*(Q+1)/s.width)*A;r=0}T[Q]={x:r,y:q,width:t,height:A,img:null};if(F){T[Q].scale=I(O,l,Math.random());T[Q].angle=I(y,a,Math.random())}r+=parseFloat(t)}for(var P,E,Q=T.length;Q;P=parseInt(Math.random()*Q),E=T[--Q],T[Q]=T[P],T[P]=E){}if(F){var u=z(\"<canvas>\")[0];u.ctx=u.getContext(\"2d\");u.width=w.width();u.height=w.height();var p=z(\"<canvas>\")[0];p.ctx=p.getContext(\"2d\");p.width=w.width();p.height=w.height();var k=z(\"<canvas>\")[0];k.ctx=k.getContext(\"2d\");k.width=w.width();k.height=w.height();if(!m){var M=z(\"<canvas>\")[0];M.ctx=M.getContext(\"2d\");M.width=w.width();M.height=w.height()}w.append(u)}else{var u=w.clone().removeClass(\"ws_effect\").css({overflow:\"visible\"});w.css(\"display\",\"none\").append(u);for(Q in T){T[Q].img=J[Q].src;S(u,T[Q],1)}var h=(d%b==\"undefined\"?0:d%b);startRight=0,bottomAddCount=2*b-h,rightAddCount=Math.ceil(d/b)+1;for(var Q=0;Q<bottomAddCount;Q++){S(u,{img:J[Q%J.length].src,width:t,height:A,x:t*((h+Q)%b),y:q+Math.floor((h+Q)/b)*A},1)}for(var Q=0;Q<bottomAddCount;Q++){S(u,{img:J[Q%J.length].src,width:t,height:A,x:t*b,y:Q*A},1)}}var H,R;this.go=function(x,V){if(H){return -1}if(s.images){T[x].img=J[x]}if(window.XMLHttpRequest){if(F){var N=s.width,j=s.height,i=1;C(V,V,false);C(x,x,false);if(m){C(2,v+1,false)}else{M.width=N;M.height=j;C(2,v+1,true,M.ctx,[V,x])}if(!R&&!G){rand=Math.round(I(0,d-1,Math.random()));k.width=w.width();k.height=w.height();R=K(z(J[rand]),e,k)}}else{var N=B.width(),j=B.height(),i=N/s.width}H=new c(x,V,i,N,j,function W(){f.trigger(\"effectEnd\");w.hide();H=0;if(!m&&F){for(i in T){T[i].img=null}}})}else{H=0;D.stop(true).animate({left:(x?-x+\"00%\":(/Safari/.test(navigator.userAgent)?\"0%\":0))},s.duration,\"easeInOutExpo\",function(){f.trigger(\"effectEnd\")})}};function K(i,x,j){if(F){j.ctx.drawImage(i.get(0),0,0);if(!o(j.ctx,0,0,j.width,j.height,x)){j.ctx.drawImage(i.get(0),0,0)}return true}return cont}var g=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];var L=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function o(aJ,aq,ao,j,N,aA){if(isNaN(aA)||aA<1){return}aA|=0;var aE;try{aE=aJ.getImageData(aq,ao,j,N)}catch(aI){console.log(\"error:unable to access image data: \"+aI);return false}var Y=aE.data;var ay,ax,aG,aD,af,ai,ac,W,X,an,ad,ap,al,au,az,ag,ab,ah,aj,at;var aH=aA+aA+1;var av=j<<2;var ae=j-1;var aC=N-1;var aa=aA+1;var aB=aa*(aa+1)/2;var ar=new U();var am=ar;for(aG=1;aG<aH;aG++){am=am.next=new U();if(aG==aa){var Z=am}}am.next=ar;var aF=null;var aw=null;ac=ai=0;var ak=g[aA];var V=L[aA];for(ax=0;ax<N;ax++){au=az=ag=W=X=an=0;ad=aa*(ab=Y[ai]);ap=aa*(ah=Y[ai+1]);al=aa*(aj=Y[ai+2]);W+=aB*ab;X+=aB*ah;an+=aB*aj;am=ar;for(aG=0;aG<aa;aG++){am.r=ab;am.g=ah;am.b=aj;am=am.next}for(aG=1;aG<aa;aG++){aD=ai+((ae<aG?ae:aG)<<2);W+=(am.r=(ab=Y[aD]))*(at=aa-aG);X+=(am.g=(ah=Y[aD+1]))*at;an+=(am.b=(aj=Y[aD+2]))*at;au+=ab;az+=ah;ag+=aj;am=am.next}aF=ar;aw=Z;for(ay=0;ay<j;ay++){Y[ai]=(W*ak)>>V;Y[ai+1]=(X*ak)>>V;Y[ai+2]=(an*ak)>>V;W-=ad;X-=ap;an-=al;ad-=aF.r;ap-=aF.g;al-=aF.b;aD=(ac+((aD=ay+aA+1)<ae?aD:ae))<<2;au+=(aF.r=Y[aD]);az+=(aF.g=Y[aD+1]);ag+=(aF.b=Y[aD+2]);W+=au;X+=az;an+=ag;aF=aF.next;ad+=(ab=aw.r);ap+=(ah=aw.g);al+=(aj=aw.b);au-=ab;az-=ah;ag-=aj;aw=aw.next;ai+=4}ac+=j}for(ay=0;ay<j;ay++){az=ag=au=X=an=W=0;ai=ay<<2;ad=aa*(ab=Y[ai]);ap=aa*(ah=Y[ai+1]);al=aa*(aj=Y[ai+2]);W+=aB*ab;X+=aB*ah;an+=aB*aj;am=ar;for(aG=0;aG<aa;aG++){am.r=ab;am.g=ah;am.b=aj;am=am.next}af=j;for(aG=1;aG<=aA;aG++){ai=(af+ay)<<2;W+=(am.r=(ab=Y[ai]))*(at=aa-aG);X+=(am.g=(ah=Y[ai+1]))*at;an+=(am.b=(aj=Y[ai+2]))*at;au+=ab;az+=ah;ag+=aj;am=am.next;if(aG<aC){af+=j}}ai=ay;aF=ar;aw=Z;for(ax=0;ax<N;ax++){aD=ai<<2;Y[aD]=(W*ak)>>V;Y[aD+1]=(X*ak)>>V;Y[aD+2]=(an*ak)>>V;W-=ad;X-=ap;an-=al;ad-=aF.r;ap-=aF.g;al-=aF.b;aD=(ay+(((aD=ax+aa)<aC?aD:aC)*j))<<2;W+=(au+=(aF.r=Y[aD]));X+=(az+=(aF.g=Y[aD+1]));an+=(ag+=(aF.b=Y[aD+2]));aF=aF.next;ad+=(ab=aw.r);ap+=(ah=aw.g);al+=(aj=aw.b);au-=ab;az-=ah;ag-=aj;aw=aw.next;ai+=j}}aJ.putImageData(aE,aq,ao);return true}function U(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}}", "codiCohet() {\n let codi = `\n <div id=\"${this.codi}\" style=\"display: inline-block; z-index: 100; position: absolute; top: -100px; left: -100px\">\n <img src=\"./../assets/${this.getImage()}\" alt=\"${this.codi}\">\n </div>\n `;\n return codi;\n }", "findSecondaryStructure () {\n let conhPartners = this.conhPartners\n let residueNormals = {}\n\n let nRes = this.getResidueCount()\n let residue0 = this.getResidueProxy()\n let residue1 = this.getResidueProxy()\n\n let atom0 = this.getAtomProxy()\n let atom1 = this.getAtomProxy()\n\n function isCONH (iRes0, iRes1) {\n if ((iRes1 < 0) || (iRes1 >= nRes) || (iRes0 < 0) || (iRes0 >= nRes)) {\n return false\n }\n return _.includes(conhPartners[iRes1], iRes0)\n }\n\n function vecBetweenResidues (iRes0, iRes1) {\n atom0.iAtom = residue0.load(iRes0).iAtom\n atom1.iAtom = residue1.load(iRes1).iAtom\n return v3.diff(atom0.pos, atom1.pos)\n }\n\n // Collect ca atoms\n let vertices = []\n let atomIndices = []\n let resIndices = []\n for (let iRes = 0; iRes < this.getResidueCount(); iRes += 1) {\n residue0.iRes = iRes\n if (residue0.isPolymer && !(residue0.ss === 'D')) {\n let iAtom = residue0.getIAtom('CA')\n if (iAtom !== null) {\n atom0.iAtom = iAtom\n vertices.push([atom0.pos.x, atom0.pos.y, atom0.pos.z])\n atomIndices.push(iAtom)\n resIndices.push(iRes)\n }\n }\n }\n\n for (let iRes0 = 0; iRes0 < nRes; iRes0 += 1) {\n residue0.iRes = iRes0\n\n if (!residue0.isPolymer) {\n continue\n }\n\n if (residue0.ss === 'D') {\n pushToListInDict(\n residueNormals, iRes0, residue0.getNucleotideNormal())\n continue\n }\n\n // alpha-helix\n if (isCONH(iRes0, iRes0 + 4) && isCONH(iRes0 + 1, iRes0 + 5)) {\n let normal0 = vecBetweenResidues(iRes0, iRes0 + 4)\n let normal1 = vecBetweenResidues(iRes0 + 1, iRes0 + 5)\n for (let iRes1 = iRes0 + 1; iRes1 < iRes0 + 5; iRes1 += 1) {\n residue0.load(iRes1).ss = 'H'\n pushToListInDict(residueNormals, iRes1, normal0)\n pushToListInDict(residueNormals, iRes1, normal1)\n }\n }\n\n // 3-10 helix\n if (isCONH(iRes0, iRes0 + 3) && isCONH(iRes0 + 1, iRes0 + 4)) {\n let normal1 = vecBetweenResidues(iRes0, iRes0 + 3)\n let normal2 = vecBetweenResidues(iRes0 + 1, iRes0 + 4)\n for (let iRes1 = iRes0 + 1; iRes1 < iRes0 + 4; iRes1 += 1) {\n residue0.load(iRes1).ss = 'H'\n pushToListInDict(residueNormals, iRes1, normal1)\n pushToListInDict(residueNormals, iRes1, normal2)\n }\n }\n }\n\n let betaResidues = []\n let spaceHash = new SpaceHash(vertices)\n for (let pair of spaceHash.getClosePairs()) {\n let [iVertex0, iVertex1] = pair\n let iRes0 = resIndices[iVertex0]\n let iRes1 = resIndices[iVertex1]\n if ((Math.abs(iRes0 - iRes1) <= 5)) {\n continue\n }\n // parallel beta sheet pairs\n if (isCONH(iRes0, iRes1 + 1) && isCONH(iRes1 - 1, iRes0)) {\n betaResidues = betaResidues.concat([iRes0, iRes1])\n }\n if (isCONH(iRes0 - 1, iRes1) && isCONH(iRes1, iRes0 + 1)) {\n betaResidues = betaResidues.concat([iRes0, iRes1])\n }\n\n // anti-parallel hbonded beta sheet pairs\n if (isCONH(iRes0, iRes1) && isCONH(iRes1, iRes0)) {\n betaResidues = betaResidues.concat([iRes0, iRes1])\n let normal = vecBetweenResidues(iRes0, iRes1)\n pushToListInDict(residueNormals, iRes0, normal)\n pushToListInDict(residueNormals, iRes1, v3.scaled(normal, -1))\n }\n\n // anti-parallel non-hbonded beta sheet pairs\n if (isCONH(iRes0 - 1, iRes1 + 1) && isCONH(iRes1 - 1, iRes0 + 1)) {\n betaResidues = betaResidues.concat([iRes0, iRes1])\n let normal = vecBetweenResidues(iRes0, iRes1)\n pushToListInDict(residueNormals, iRes0, v3.scaled(normal, -1))\n pushToListInDict(residueNormals, iRes1, normal)\n }\n }\n\n for (let iRes of betaResidues) {\n residue0.load(iRes).ss = 'E'\n }\n\n // average residueNormals to make a nice average\n for (let iRes = 0; iRes < nRes; iRes += 1) {\n if ((iRes in residueNormals) && (residueNormals[iRes].length > 0)) {\n let normalSum = v3.create(0, 0, 0)\n for (let normal of residueNormals[iRes]) {\n normalSum = v3.sum(normalSum, normal)\n }\n this.residueNormal[iRes] = v3.normalized(normalSum)\n }\n }\n\n // flip every second beta-strand normal so they are\n // consistently pointing in the same direction\n for (let iRes = 1; iRes < nRes; iRes += 1) {\n residue0.iRes = iRes - 1\n residue1.iRes = iRes\n if ((residue0.ss === 'E') && residue0.normal) {\n if ((residue1.ss === 'E') && residue1.normal) {\n if (residue1.normal.dot(residue0.normal) < 0) {\n this.residueNormal[iRes].negate()\n }\n }\n }\n }\n }", "function alianzaMercado(){\n\t\tvar a = find(\"//tr[@class='rbg']\", XPFirst).parentNode;\n\n\t\t// Prepara la insercion de la nueva columna\n\t\tvar b = a.getElementsByTagName(\"TR\");\n\t\t// FIXME: Apaño para Firefox. FF mete nodos de tipo texto vacios\n\t\tb[0].childNodes[b[0].childNodes.length == 3 ? 1 : 0].setAttribute('colspan', '8');\n\t\tb[b.length - 1].childNodes[0].setAttribute(\"colspan\", \"8\");\n\n\t\t// Crea e inserta la columna\n\t\tvar columna = document.createElement(\"TD\");\n\t\tcolumna.innerHTML = T('ALIANZA');\n\t\tb[1].appendChild(columna);\n\n\t\t// Rellena la columna con los nombres de las alianzas\n\t\tfor(var i = 2; i < b.length - 1; i++){\n\t\t\tvar alianza = document.createElement(\"TD\");\n\t\t\t// FIXME: Apaño para Firefox. FF mete nodos de tipo texto vacios\n\t\t\tvar alianza_txt = b[i].childNodes[b[i].childNodes.length == 12 ? 8 : 4].getAttribute('title');\n\t\t\tif (alianza_txt != null) alianza.innerHTML = alianza_txt;\n\t\t\tb[i].appendChild(alianza);\n\t\t}\n\t}", "compose(o) {\n if (o.origin) {\n o.originX = o.origin[0];\n o.originY = o.origin[1];\n } // Get the parameters\n\n\n var ox = o.originX || 0;\n var oy = o.originY || 0;\n var sx = o.scaleX || 1;\n var sy = o.scaleY || 1;\n var lam = o.shear || 0;\n var theta = o.rotate || 0;\n var tx = o.translateX || 0;\n var ty = o.translateY || 0; // Apply the standard matrix\n\n var result = new Matrix_Matrix().translateO(-ox, -oy).scaleO(sx, sy).shearO(lam).rotateO(theta).translateO(tx, ty).lmultiplyO(this).translateO(ox, oy);\n return result;\n }", "static crossProductV3(xyza, xyzb) {\n//--------------\nreturn this.setCrossProductV3(this.copyOfV3(xyza), xyzb);\n}", "function Copcar(){}", "function CompactNameplate(index, alignment) {\n /* jshint -W106 */\n this.Container_constructor();\n this.setup(index, alignment);\n /* jshint +W106 */\n }", "function CIQ(){}", "function CrearCadOracion(cadena) {\n var cad = cadena.charAt(0).toUpperCase() + cadena.toLowerCase().slice(1);\n return cad;\n}", "function recurseCompound(result,si,sj,xi,xj,qi,qj,bi,bj){\n\t\t\t\tfor(var i=0; i<sj.childShapes.length; i++){\n\t\t\t\t\tvar r = [];\n\t\t\t\t\tnearPhase(r,\n\t\t\t\t\t\tsi,\n\t\t\t\t\t\tsj.childShapes[i],\n\t\t\t\t\t\txi,\n\t\t\t\t\t\txj.vadd(qj.vmult(sj.childOffsets[i])), // Transform the shape to its local frame\n\t\t\t\t\t\tqi,\n\t\t\t\t\t\tqj.mult(sj.childOrientations[i]),\n\t\t\t\t\t\tbi,\n\t\t\t\t\t\tbj);\n\t\t\t\t\t// Transform back\n\t\t\t\t\tfor(var j=0; j<r.length; j++){\n\t\t\t\t\t\tr[j].rj.vadd(qj.vmult(sj.childOffsets[i]),r[j].rj);\n\t\t\t\t\t\tresult.push(r[j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "function alianzaMercado(){\r\n\t\tvar a = find(\"//tr[@class='rbg']\", XPFirst).parentNode;\r\n\r\n\t\t// Prepara la insercion de la nueva columna\r\n\t\tvar b = a.getElementsByTagName(\"TR\");\r\n\t\t// FIXME: Apanyo para Firefox. FF mete nodos de tipo texto vacios\r\n\t\tb[0].childNodes[b[0].childNodes.length == 3 ? 1 : 0].setAttribute('colspan', '8');\r\n\t\tb[b.length - 1].childNodes[0].setAttribute(\"colspan\", \"8\");\r\n\r\n\t\t// Crea e inserta la columna\r\n\t\tvar columna = document.createElement(\"TD\");\r\n\t\tcolumna.innerHTML = T('ALIANZA');\r\n\t\tb[1].appendChild(columna);\r\n\r\n\t\t// Rellena la columna con los nombres de las alianzas\r\n\r\n\t\tfor(var i = 2; i < b.length - 1; i++){\r\n\t\t\tvar alianza = document.createElement(\"TD\");\r\n\t\t\t// FIXME: Apanyo para Firefox. FF mete nodos de tipo texto vacios\r\n\t\t\tvar alianza_txt = b[i].childNodes[b[i].childNodes.length == 12 ? 8 : 4].getAttribute('title');\r\n\t\t\tif (alianza_txt != null) alianza.innerHTML = alianza_txt;\r\n\t\t\tb[i].appendChild(alianza);\r\n\t\t}\r\n\t}", "function asy_postcompact(geogebra){\r\n return geogebra\r\n .replace(/\\/\\*(.*?)\\*\\//g, \"\")\r\n .replace(/;( *)?\\n([a-z])/g, \"; $2\")\r\n .replace(/labelscalefactor/g, \"lsf\")\r\n .replace(/dotstyle/g, \"ds\")\r\n .replace(/\\n( *)?(\\n( *)?)*/g, \"\\n\");\r\n}", "static unitCrossProductV3(xyza, xyzb) {\n//------------------\nreturn this.setUnitCrossProductV3(this.copyOfV3(xyza), xyzb);\n}", "function CreateBasicCard(front,back){\n\t\tthis.front = front;\n\t\tthis.back = back;\n\t\tthis.entireCard = \"[frontCard] , [backCard]\";\n\t}", "function buildBackground() {\n\t\t\tbackground = new c.Container();\n\t\t\n\t\t\tstage.addChild(background);\n\t\t\n\t\t\tstarField1 = new lib.starField2();\n\t\t\tstarField1.x = 0;\n\t\t\tbackground.addChild(starField1);\n\t\t\n\t\t\tstarField2 = new lib.starField2();\n\t\t\tstarField1.x = 0;\n\t\t\tstarField2.y = -h;\n\t\t\tbackground.addChild(starField2);\n\t\t\n\t\t\t\n\t\t\tspaceCorridor1 = new lib.spaceCorridor2();\n\t\t\tspaceCorridor1.x = 0;\n\t\t\tbackground.addChild(spaceCorridor1);\n\t\t\n\t\t\tspaceCorridor2 = new lib.spaceCorridor2();\n\t\t\tspaceCorridor2.x = 0;\n\t\t\tspaceCorridor2.y = -h;\n\t\t\tbackground.addChild(spaceCorridor2);\n\t\t\n\t\t\t //console.log (\"build background\");\n\t\t}", "function Colonna() {\r\n\tthis.baseColonna = 10;\r\n\tthis.baseColonnaSpessore = 0.5;\r\n\tthis.altezzaColonnaNoCap = 34;\r\n\t//\r\n\tthis.scalaCapitelloX = 0.22; \r\n\tthis.scalaCapitelloY = 0.18; \r\n\tthis.scalaCapitelloZ = 0.45;\r\n\tthis.altezzaCapitello = 0.2;\r\n}", "function replaceCC() {\n\tcy.nodes().forEach(function(item, index, array) {\n\t\tlet cC = item.data().collapsedChildren\n\t\tif ( cC ) {\n\t\t\tcy.$id(item.id()).data().collapsedChildren = cC.jsons();\n\t\t};\n\t});\n\treplaceOE();\n}", "static createFullColony() {\n return new AntColony(2, 3,8,0);\n }", "function i$7(i){i.include(e$6),i.code.add(t$i`\n vec3 mixExternalColor(vec3 internalColor, vec3 textureColor, vec3 externalColor, int mode) {\n // workaround for artifacts in OSX using Intel Iris Pro\n // see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/10475\n vec3 internalMixed = internalColor * textureColor;\n vec3 allMixed = internalMixed * externalColor;\n\n if (mode == ${t$i.int(1)}) {\n return allMixed;\n }\n else if (mode == ${t$i.int(2)}) {\n return internalMixed;\n }\n else if (mode == ${t$i.int(3)}) {\n return externalColor;\n }\n else {\n // tint (or something invalid)\n float vIn = rgb2v(internalMixed);\n vec3 hsvTint = rgb2hsv(externalColor);\n vec3 hsvOut = vec3(hsvTint.x, hsvTint.y, vIn * hsvTint.z);\n return hsv2rgb(hsvOut);\n }\n }\n\n float mixExternalOpacity(float internalOpacity, float textureOpacity, float externalOpacity, int mode) {\n // workaround for artifacts in OSX using Intel Iris Pro\n // see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/10475\n float internalMixed = internalOpacity * textureOpacity;\n float allMixed = internalMixed * externalOpacity;\n\n if (mode == ${t$i.int(2)}) {\n return internalMixed;\n }\n else if (mode == ${t$i.int(3)}) {\n return externalOpacity;\n }\n else {\n // multiply or tint (or something invalid)\n return allMixed;\n }\n }\n `);}", "function extractHand() {\n\n let iFrame = new cv.Mat(video.height, video.width, cv.CV_8UC4);\n let src = cv.imread('canvas');\n let mask = cv.imread('convexHull')\n cv.cvtColor(mask, mask, cv.COLOR_RGBA2GRAY, 0);\n\n cap.read(iFrame);\n\n\n let fg = new cv.Mat(video.height, video.width, cv.CV_8UC4)\n\n cv.bitwise_and(src, src, fg, mask)\n\n\n cv.imshow('canvasCrop', fg);\n\n var canvas = document.getElementById(\"canvasCrop\")\n ctx = canvas.getContext(\"2d\")\n var imgd = ctx.getImageData(0, 0, 224, 224)\n pix = imgd.data\n\n uniqueColor = [0,0,150]; // Blue for an example, can change this value to be anything.\n\n\n // Removing black background to prevent \n for (var i = 0, n = pix.length; i <n; i += 4) {\n if (pix[i] == 0 && \n pix[i+1] == 0 &&\n pix[i+2] == 0)\n {\n pix[i+3] = 0;\n }\n else\n {\n \n }\n }\n\n ctx.putImageData(imgd, 0, 0);\n\n\n\n}", "atualizaCentroideX() {\r\n if (this.centroidesX.length <= 0) {\r\n this.centroidesX[0] = this.eixoX[this.indice1];\r\n for (let i = 1; i < this.grupos; i++) {\r\n this.centroidesX[i] = this.eixoX[this.indice2];\r\n }\r\n } else {\r\n for (let i = 0; i < this.grupos; i++) {\r\n this.centroidesX[i] = this.mediaGrupoX(\r\n this.grupoID_Anterior,\r\n i\r\n );\r\n }\r\n }\r\n }", "renderContent(comps) {\n let row = this,\n cols = [],\n colName = row.props.id + '-col-';\n lodash.forEach(comps, (comp, i) => {\n let { ISResizer } = inlineStyles,\n colId = colName + i,\n resizerId = colId + '-handler',\n colWidth = comp.props.colWidth || null;\n if ( (i > 0) && row.props.resizable === 'true' ) {\n cols.push(row.addResizer(resizerId, colName, i));\n }\n cols.push(row.addColumn(colId, colWidth, comp));\n });\n return cols;\n }", "function add_css$c() {\n\tvar style = element(\"style\");\n\tstyle.id = \"svelte-19yho4w-style\";\n\tstyle.textContent = \".wrapper.svelte-19yho4w{width:var(--size);height:calc(var(--size) / 2);overflow:hidden}.rainbow.svelte-19yho4w{width:var(--size);height:var(--size);border-left-color:transparent;border-bottom-color:transparent;border-top-color:var(--color);border-right-color:var(--color);box-sizing:border-box;transform:rotate(-200deg);border-radius:50%;border-style:solid;animation:var(--duration) ease-in-out 0s infinite normal none running svelte-19yho4w-rotate}@keyframes svelte-19yho4w-rotate{0%{border-width:10px}25%{border-width:3px}50%{transform:rotate(115deg);border-width:10px}75%{border-width:3px}100%{border-width:10px}}\";\n\tappend(document.head, style);\n}", "function getCompositeCourse(handler) {\n let offset = handler.params.offset;;\n let limit = handler.params.limit;;\n let level = handler.params.level;\n\n handler.url = COMPOSITE_COURSE_URL.replace(/\\{offset\\}/i, offset).replace(/\\{limit\\}/i, limit).replace(/\\{level\\}/i, level);\n\n return network.GET(handler);\n}", "function nDayComposites(images,startYear,endYear,startJulian,endJulian,compositePeriod){\r\n \r\n //create dummy image for with no values\r\n var dummyImage = ee.Image(images.first());\r\n\r\n //convert to composites as defined above\r\n function getYrImages(yr){\r\n //take the year of the image\r\n var yr = ee.Number(yr).int16();\r\n //filter out images for the year\r\n var yrImages = images.filter(ee.Filter.calendarRange(yr,yr,'year'));\r\n \r\n //use dummy image to fill in gaps for GEE processing\r\n yrImages = fillEmptyCollections(yrImages,dummyImage);\r\n return yrImages\r\n }\r\n //Get images for a specified start day\r\n function getJdImages(yr,yrImages,start){\r\n yr = ee.Number(yr).int16();\r\n start = ee.Number(start).int16();\r\n var date = ee.Date.fromYMD(yr,1,1).advance(start.subtract(1),'day');\r\n var index = date.format('yyyy-MM-dd');\r\n var end = start.add(compositePeriod-1).int16();\r\n var jdImages = yrImages.filter(ee.Filter.calendarRange(start,end));\r\n var jdImages = fillEmptyCollections(jdImages,dummyImage);\r\n var composite = jdImages.median();\r\n return composite.set({'system:index':index,'system:time_start':date.millis()})\r\n }\r\n //Set up wrappers\r\n function jdWrapper(yr,yrImages){\r\n return ee.FeatureCollection(ee.List.sequence(startJulian,endJulian,compositePeriod).map(function(start){return getJdImages(yr,yrImages,start)}))\r\n }\r\n function yrWrapper(yr){\r\n var yrImages = getYrImages(yr)\r\n return jdWrapper(yr,yrImages)\r\n }\r\n var composites = ee.FeatureCollection(ee.List.sequence(startYear,endYear).map(function(yr){return yrWrapper(yr)}))\r\n //return the composites as an image collection\r\n composites = ee.ImageCollection(composites.flatten());\r\n\r\n return composites\r\n}", "function refreshAllConstruction () {\n\n\n totalLens = renderableLens.total;\n pointsTable = lens.pointsTable.getData(); \n lens.raphael.constructions.forEach (elem => {\n\n\n // elem is a CONSTRUCTION \n\n\n /* NEGATIVE HEIGHT BECAUSE TABLE AND GRAPH HAVE OPPOSITELY SIGNED DIRECTIONS */\n\n console.log (`- REFRESH construction ID = ${elem.getId()}`);\n aRow = lens.pointsTable.getRow(elem.getId()).getData();\n aPoint = { id: aRow.id, which: \"object\", z:aRow.zo, h:-aRow.ho, t:aRow.to };\n\n\n /* question is whether this needs to reversed in height */\n\n pairData = Optics.calculateConjugatePairFrom(aPoint, totalLens);\n elem.setPairData(pairData); \n elem.setLens(totalLens); // <--- this should change \n elem.refresh();\n\n // update on POINTS TABLE \n console.log (`- CALLED Update on Points Table`); \n updatePointsTable(aPoint.id, pairData);\n });\n }", "clone() {\n return new CSG(this.polygons.map(p => p.clone()));\n }", "function compliment(name){\r\n\r\n return \"I think that \" + name + \" is a cool guy.\";\r\n\r\n}", "function CMProjector() \r\n{\r\n\t\r\n}", "function createComposite(drummer1, drummer2) {\r\n\t// composite will be an array of arrays\r\n\tvar composite = new Array(12);\r\n\tvar numPatterns = 1;\r\n\r\n\t// iterate through the 12 8th notes in a bar of 12/8\r\n\tfor (var i = 0; i < composite.length; i++) {\r\n\t\tif (drummer1[i] != -1 && drummer2[i] != -1) {\r\n\t\t\t// composite[i] has 3 possibilities: note1, note2, or rest\r\n\t\t\tcomposite[i] = [drummer1[i], drummer2[i], -1];\r\n\t\t}\r\n\t\telse if (drummer1[i] == -1 && drummer2[i] == -1) {\r\n\t\t\t// composite[i] has 1 possibility: rest\r\n\t\t\tcomposite[i] = [-1];\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// compsite[i] has 2 possibilities: note or rest\r\n\t\t\tcomposite[i] = [drummer1[i], drummer2[i]];\r\n\t\t}\r\n\t\t// calculate the number of patterns possible so far\r\n\t\tnumPatterns *= composite[i].length;\r\n\t}\r\n\treturn composite;\r\n}", "function main() {\n let\n cavitySepT = 1.5,\n height = 7,\n axleD = 5,\n ballD = 5,\n springID = 3.8,\n springMinL = 6.6,\n springMaxL = 5,\n cablePlateT = 2,\n width = 2 * (ballD + cavitySepT) + 2\n ballSpringCavity =\n union(\n cylinder({r: ballD / 2 + .3, h: ballD + springMaxL + cablePlateT}) // spring cavity\n .union(cylinder({r: 1.5, h: 30})).rotateX(-90), // cable inlet\n sphere({r: ballD / 2 + .3}))\n .translate([0, axleD * 2 / 3, 0])\n .union(\n cube({center: [true, false, false]})\n .scale([ballD + 0.4, ballD + springMaxL + cablePlateT - axleD / 2, height])\n .translate([0, axleD, 0])\n );\n return cylinder({r: width / 2, h: height, fn: 32})\n .union(cube({center: [true, false, false]}).scale([width, axleD + ballD + springMaxL + cablePlateT, height]))\n .subtract(cylinder({r: axleD / 2 + 0.2, h: height})) // axle hole\n .subtract(ballSpringCavity.translate([(cavitySepT + ballD) / 2, 0, height / 2]))\n .subtract(ballSpringCavity.translate([-(cavitySepT + ballD) / 2, 0, height / 2]))\n .setColor(.8, .8, .8, 1)\n}", "function zoningPaintExpression(table) {\n var parcels = [];\n var expression = ['match', ['get', 'parcelnum']];\n table.forEach(function (row) {\n if (parcels.indexOf(row.parcelnum) < 0) {\n expression.push(row.parcelnum, zoningPaintTable[row.zoning_code])\n parcels.push(row.parcelnum);\n }\n });\n expression.push('COMMON AREA', \"lightgray\")\n expression.push('black');\n return expression\n}", "decompose() {\n let cx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n let cy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Get the parameters from the matrix\n var a = this.a;\n var b = this.b;\n var c = this.c;\n var d = this.d;\n var e = this.e;\n var f = this.f; // Figure out if the winding direction is clockwise or counterclockwise\n\n var determinant = a * d - b * c;\n var ccw = determinant > 0 ? 1 : -1; // Since we only shear in x, we can use the x basis to get the x scale\n // and the rotation of the resulting matrix\n\n var sx = ccw * Math.sqrt(a * a + b * b);\n var thetaRad = Math.atan2(ccw * b, ccw * a);\n var theta = 180 / Math.PI * thetaRad;\n var ct = Math.cos(thetaRad);\n var st = Math.sin(thetaRad); // We can then solve the y basis vector simultaneously to get the other\n // two affine parameters directly from these parameters\n\n var lam = (a * c + b * d) / determinant;\n var sy = c * sx / (lam * a - b) || d * sx / (lam * b + a); // Use the translations\n\n let tx = e - cx + cx * ct * sx + cy * (lam * ct * sx - st * sy);\n let ty = f - cy + cx * st * sx + cy * (lam * st * sx + ct * sy); // Construct the decomposition and return it\n\n return {\n // Return the affine parameters\n scaleX: sx,\n scaleY: sy,\n shear: lam,\n rotate: theta,\n translateX: tx,\n translateY: ty,\n originX: cx,\n originY: cy,\n // Return the matrix parameters\n a: this.a,\n b: this.b,\n c: this.c,\n d: this.d,\n e: this.e,\n f: this.f\n };\n }", "function parseCTS(cts) {\n // console.log('parsing cts=['+cts+']');\n for (var i1=0, c1=cts.split(','), l1=c1.length; i1<l1; i1++) {\n\tvar s1 = c1[i1];\n if (s1.length > 0) {\n\t // console.log('spitting c1 i1=['+i1+'] = ['+c1[i1]+']');\n\t for (var i2=0, c2=s1.split('/'), l2=c2.length; i2<l2; i2++) {\n\t\tvar s2=c2[i2];\n\t\tif (s2.length > 0) {\n\t\t //.xtheme-c1 {color:#000 !important; background-color:#b1b8e3 !important}\n\t\t var csss = '.xtheme-c'+(i1+1);\n var item = (i2==0) ? 'background-color' : 'color';\n\t\t var prev = CCSStylesheetRuleStyle('main', csss, item);\n\t\t // console.log('c2 i1=['+i1+'] i2=['+i2+'] = ['+c2[i2]+'], prev=['+prev+']');\n\t\t CCSStylesheetRuleStyle('main', csss, item, c2[i2]);\n\t\t}\n\t }\n\n\t}\n }\n}", "function compFromBlender(){\r\n\r\nvar compName = prompt(\"Blender Comp's Name \\nEnter Name of newly created Composition\",\"BlendComp\",\"Composition's Name\");\r\nif (compName){\r\nvar newComp = app.project.items.addComp(compName, 1920, 1080, 1.000000, 10.416667, 24);\r\nnewComp.displayStartTime = 0.083333;\r\n\r\n\r\n// ************** CAMERA 3D MARKERS **************\r\n\r\n\r\n// ************** OBJECTS **************\r\n\r\n\r\nvar _Mesh_1437 = newComp.layers.addNull();\r\n_Mesh_1437.threeDLayer = true;\r\n_Mesh_1437.source.name = \"_Mesh_1437\";\r\n_Mesh_1437.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1437.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1437.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1436 = newComp.layers.addNull();\r\n_Mesh_1436.threeDLayer = true;\r\n_Mesh_1436.source.name = \"_Mesh_1436\";\r\n_Mesh_1436.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1436.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1436.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1435 = newComp.layers.addNull();\r\n_Mesh_1435.threeDLayer = true;\r\n_Mesh_1435.source.name = \"_Mesh_1435\";\r\n_Mesh_1435.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1435.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1435.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1434 = newComp.layers.addNull();\r\n_Mesh_1434.threeDLayer = true;\r\n_Mesh_1434.source.name = \"_Mesh_1434\";\r\n_Mesh_1434.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1434.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1434.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1433 = newComp.layers.addNull();\r\n_Mesh_1433.threeDLayer = true;\r\n_Mesh_1433.source.name = \"_Mesh_1433\";\r\n_Mesh_1433.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1433.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1433.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1432 = newComp.layers.addNull();\r\n_Mesh_1432.threeDLayer = true;\r\n_Mesh_1432.source.name = \"_Mesh_1432\";\r\n_Mesh_1432.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1432.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1432.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1431 = newComp.layers.addNull();\r\n_Mesh_1431.threeDLayer = true;\r\n_Mesh_1431.source.name = \"_Mesh_1431\";\r\n_Mesh_1431.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1431.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1431.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1430 = newComp.layers.addNull();\r\n_Mesh_1430.threeDLayer = true;\r\n_Mesh_1430.source.name = \"_Mesh_1430\";\r\n_Mesh_1430.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1430.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1430.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1439 = newComp.layers.addNull();\r\n_Mesh_1439.threeDLayer = true;\r\n_Mesh_1439.source.name = \"_Mesh_1439\";\r\n_Mesh_1439.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1439.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1439.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1438 = newComp.layers.addNull();\r\n_Mesh_1438.threeDLayer = true;\r\n_Mesh_1438.source.name = \"_Mesh_1438\";\r\n_Mesh_1438.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1438.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1438.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1219 = newComp.layers.addNull();\r\n_Mesh_1219.threeDLayer = true;\r\n_Mesh_1219.source.name = \"_Mesh_1219\";\r\n_Mesh_1219.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1219.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1219.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1218 = newComp.layers.addNull();\r\n_Mesh_1218.threeDLayer = true;\r\n_Mesh_1218.source.name = \"_Mesh_1218\";\r\n_Mesh_1218.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1218.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1218.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1216 = newComp.layers.addNull();\r\n_Mesh_1216.threeDLayer = true;\r\n_Mesh_1216.source.name = \"_Mesh_1216\";\r\n_Mesh_1216.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1216.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1216.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1215 = newComp.layers.addNull();\r\n_Mesh_1215.threeDLayer = true;\r\n_Mesh_1215.source.name = \"_Mesh_1215\";\r\n_Mesh_1215.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1215.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1215.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1214 = newComp.layers.addNull();\r\n_Mesh_1214.threeDLayer = true;\r\n_Mesh_1214.source.name = \"_Mesh_1214\";\r\n_Mesh_1214.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1214.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1214.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1213 = newComp.layers.addNull();\r\n_Mesh_1213.threeDLayer = true;\r\n_Mesh_1213.source.name = \"_Mesh_1213\";\r\n_Mesh_1213.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1213.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1213.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1212 = newComp.layers.addNull();\r\n_Mesh_1212.threeDLayer = true;\r\n_Mesh_1212.source.name = \"_Mesh_1212\";\r\n_Mesh_1212.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1212.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1212.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1211 = newComp.layers.addNull();\r\n_Mesh_1211.threeDLayer = true;\r\n_Mesh_1211.source.name = \"_Mesh_1211\";\r\n_Mesh_1211.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1211.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1211.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1210 = newComp.layers.addNull();\r\n_Mesh_1210.threeDLayer = true;\r\n_Mesh_1210.source.name = \"_Mesh_1210\";\r\n_Mesh_1210.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1210.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1210.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1328 = newComp.layers.addNull();\r\n_Mesh_1328.threeDLayer = true;\r\n_Mesh_1328.source.name = \"_Mesh_1328\";\r\n_Mesh_1328.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1328.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1328.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1323 = newComp.layers.addNull();\r\n_Mesh_1323.threeDLayer = true;\r\n_Mesh_1323.source.name = \"_Mesh_1323\";\r\n_Mesh_1323.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1323.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1323.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1322 = newComp.layers.addNull();\r\n_Mesh_1322.threeDLayer = true;\r\n_Mesh_1322.source.name = \"_Mesh_1322\";\r\n_Mesh_1322.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1322.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1322.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1321 = newComp.layers.addNull();\r\n_Mesh_1321.threeDLayer = true;\r\n_Mesh_1321.source.name = \"_Mesh_1321\";\r\n_Mesh_1321.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1321.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1321.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1320 = newComp.layers.addNull();\r\n_Mesh_1320.threeDLayer = true;\r\n_Mesh_1320.source.name = \"_Mesh_1320\";\r\n_Mesh_1320.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1320.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1320.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1327 = newComp.layers.addNull();\r\n_Mesh_1327.threeDLayer = true;\r\n_Mesh_1327.source.name = \"_Mesh_1327\";\r\n_Mesh_1327.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1327.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1327.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1326 = newComp.layers.addNull();\r\n_Mesh_1326.threeDLayer = true;\r\n_Mesh_1326.source.name = \"_Mesh_1326\";\r\n_Mesh_1326.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1326.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1326.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1325 = newComp.layers.addNull();\r\n_Mesh_1325.threeDLayer = true;\r\n_Mesh_1325.source.name = \"_Mesh_1325\";\r\n_Mesh_1325.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1325.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1325.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1324 = newComp.layers.addNull();\r\n_Mesh_1324.threeDLayer = true;\r\n_Mesh_1324.source.name = \"_Mesh_1324\";\r\n_Mesh_1324.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1324.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1324.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1103 = newComp.layers.addNull();\r\n_Mesh_1103.threeDLayer = true;\r\n_Mesh_1103.source.name = \"_Mesh_1103\";\r\n_Mesh_1103.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1103.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1103.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1102 = newComp.layers.addNull();\r\n_Mesh_1102.threeDLayer = true;\r\n_Mesh_1102.source.name = \"_Mesh_1102\";\r\n_Mesh_1102.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1102.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1102.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1101 = newComp.layers.addNull();\r\n_Mesh_1101.threeDLayer = true;\r\n_Mesh_1101.source.name = \"_Mesh_1101\";\r\n_Mesh_1101.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1101.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1101.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1100 = newComp.layers.addNull();\r\n_Mesh_1100.threeDLayer = true;\r\n_Mesh_1100.source.name = \"_Mesh_1100\";\r\n_Mesh_1100.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1100.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1100.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1107 = newComp.layers.addNull();\r\n_Mesh_1107.threeDLayer = true;\r\n_Mesh_1107.source.name = \"_Mesh_1107\";\r\n_Mesh_1107.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1107.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1107.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1106 = newComp.layers.addNull();\r\n_Mesh_1106.threeDLayer = true;\r\n_Mesh_1106.source.name = \"_Mesh_1106\";\r\n_Mesh_1106.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1106.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1106.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1105 = newComp.layers.addNull();\r\n_Mesh_1105.threeDLayer = true;\r\n_Mesh_1105.source.name = \"_Mesh_1105\";\r\n_Mesh_1105.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1105.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1105.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1104 = newComp.layers.addNull();\r\n_Mesh_1104.threeDLayer = true;\r\n_Mesh_1104.source.name = \"_Mesh_1104\";\r\n_Mesh_1104.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1104.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1104.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1109 = newComp.layers.addNull();\r\n_Mesh_1109.threeDLayer = true;\r\n_Mesh_1109.source.name = \"_Mesh_1109\";\r\n_Mesh_1109.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1109.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1109.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1108 = newComp.layers.addNull();\r\n_Mesh_1108.threeDLayer = true;\r\n_Mesh_1108.source.name = \"_Mesh_1108\";\r\n_Mesh_1108.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1108.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1108.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_518 = newComp.layers.addNull();\r\n_Mesh_518.threeDLayer = true;\r\n_Mesh_518.source.name = \"_Mesh_518\";\r\n_Mesh_518.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_518.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_518.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_519 = newComp.layers.addNull();\r\n_Mesh_519.threeDLayer = true;\r\n_Mesh_519.source.name = \"_Mesh_519\";\r\n_Mesh_519.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_519.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_519.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_516 = newComp.layers.addNull();\r\n_Mesh_516.threeDLayer = true;\r\n_Mesh_516.source.name = \"_Mesh_516\";\r\n_Mesh_516.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_516.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_516.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_517 = newComp.layers.addNull();\r\n_Mesh_517.threeDLayer = true;\r\n_Mesh_517.source.name = \"_Mesh_517\";\r\n_Mesh_517.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_517.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_517.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_514 = newComp.layers.addNull();\r\n_Mesh_514.threeDLayer = true;\r\n_Mesh_514.source.name = \"_Mesh_514\";\r\n_Mesh_514.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_514.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_514.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_515 = newComp.layers.addNull();\r\n_Mesh_515.threeDLayer = true;\r\n_Mesh_515.source.name = \"_Mesh_515\";\r\n_Mesh_515.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_515.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_515.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_512 = newComp.layers.addNull();\r\n_Mesh_512.threeDLayer = true;\r\n_Mesh_512.source.name = \"_Mesh_512\";\r\n_Mesh_512.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_512.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_512.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_513 = newComp.layers.addNull();\r\n_Mesh_513.threeDLayer = true;\r\n_Mesh_513.source.name = \"_Mesh_513\";\r\n_Mesh_513.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_513.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_513.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_510 = newComp.layers.addNull();\r\n_Mesh_510.threeDLayer = true;\r\n_Mesh_510.source.name = \"_Mesh_510\";\r\n_Mesh_510.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_510.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_510.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_511 = newComp.layers.addNull();\r\n_Mesh_511.threeDLayer = true;\r\n_Mesh_511.source.name = \"_Mesh_511\";\r\n_Mesh_511.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_511.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_511.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_916 = newComp.layers.addNull();\r\n_Mesh_916.threeDLayer = true;\r\n_Mesh_916.source.name = \"_Mesh_916\";\r\n_Mesh_916.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_916.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_916.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_202 = newComp.layers.addNull();\r\n_Mesh_202.threeDLayer = true;\r\n_Mesh_202.source.name = \"_Mesh_202\";\r\n_Mesh_202.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_202.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_202.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_203 = newComp.layers.addNull();\r\n_Mesh_203.threeDLayer = true;\r\n_Mesh_203.source.name = \"_Mesh_203\";\r\n_Mesh_203.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_203.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_203.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_200 = newComp.layers.addNull();\r\n_Mesh_200.threeDLayer = true;\r\n_Mesh_200.source.name = \"_Mesh_200\";\r\n_Mesh_200.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_200.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_200.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_201 = newComp.layers.addNull();\r\n_Mesh_201.threeDLayer = true;\r\n_Mesh_201.source.name = \"_Mesh_201\";\r\n_Mesh_201.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_201.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_201.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_206 = newComp.layers.addNull();\r\n_Mesh_206.threeDLayer = true;\r\n_Mesh_206.source.name = \"_Mesh_206\";\r\n_Mesh_206.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_206.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_206.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_207 = newComp.layers.addNull();\r\n_Mesh_207.threeDLayer = true;\r\n_Mesh_207.source.name = \"_Mesh_207\";\r\n_Mesh_207.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_207.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_207.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_204 = newComp.layers.addNull();\r\n_Mesh_204.threeDLayer = true;\r\n_Mesh_204.source.name = \"_Mesh_204\";\r\n_Mesh_204.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_204.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_204.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_205 = newComp.layers.addNull();\r\n_Mesh_205.threeDLayer = true;\r\n_Mesh_205.source.name = \"_Mesh_205\";\r\n_Mesh_205.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_205.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_205.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_208 = newComp.layers.addNull();\r\n_Mesh_208.threeDLayer = true;\r\n_Mesh_208.source.name = \"_Mesh_208\";\r\n_Mesh_208.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_208.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_208.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_209 = newComp.layers.addNull();\r\n_Mesh_209.threeDLayer = true;\r\n_Mesh_209.source.name = \"_Mesh_209\";\r\n_Mesh_209.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_209.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_209.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_688 = newComp.layers.addNull();\r\n_Mesh_688.threeDLayer = true;\r\n_Mesh_688.source.name = \"_Mesh_688\";\r\n_Mesh_688.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_688.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_688.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_689 = newComp.layers.addNull();\r\n_Mesh_689.threeDLayer = true;\r\n_Mesh_689.source.name = \"_Mesh_689\";\r\n_Mesh_689.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_689.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_689.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_686 = newComp.layers.addNull();\r\n_Mesh_686.threeDLayer = true;\r\n_Mesh_686.source.name = \"_Mesh_686\";\r\n_Mesh_686.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_686.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_686.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_687 = newComp.layers.addNull();\r\n_Mesh_687.threeDLayer = true;\r\n_Mesh_687.source.name = \"_Mesh_687\";\r\n_Mesh_687.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_687.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_687.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_684 = newComp.layers.addNull();\r\n_Mesh_684.threeDLayer = true;\r\n_Mesh_684.source.name = \"_Mesh_684\";\r\n_Mesh_684.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_684.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_684.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_685 = newComp.layers.addNull();\r\n_Mesh_685.threeDLayer = true;\r\n_Mesh_685.source.name = \"_Mesh_685\";\r\n_Mesh_685.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_685.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_685.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_682 = newComp.layers.addNull();\r\n_Mesh_682.threeDLayer = true;\r\n_Mesh_682.source.name = \"_Mesh_682\";\r\n_Mesh_682.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_682.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_682.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_683 = newComp.layers.addNull();\r\n_Mesh_683.threeDLayer = true;\r\n_Mesh_683.source.name = \"_Mesh_683\";\r\n_Mesh_683.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_683.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_683.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_680 = newComp.layers.addNull();\r\n_Mesh_680.threeDLayer = true;\r\n_Mesh_680.source.name = \"_Mesh_680\";\r\n_Mesh_680.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_680.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_680.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_681 = newComp.layers.addNull();\r\n_Mesh_681.threeDLayer = true;\r\n_Mesh_681.source.name = \"_Mesh_681\";\r\n_Mesh_681.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_681.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_681.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_336 = newComp.layers.addNull();\r\n_Mesh_336.threeDLayer = true;\r\n_Mesh_336.source.name = \"_Mesh_336\";\r\n_Mesh_336.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_336.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_336.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_337 = newComp.layers.addNull();\r\n_Mesh_337.threeDLayer = true;\r\n_Mesh_337.source.name = \"_Mesh_337\";\r\n_Mesh_337.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_337.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_337.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_334 = newComp.layers.addNull();\r\n_Mesh_334.threeDLayer = true;\r\n_Mesh_334.source.name = \"_Mesh_334\";\r\n_Mesh_334.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_334.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_334.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_335 = newComp.layers.addNull();\r\n_Mesh_335.threeDLayer = true;\r\n_Mesh_335.source.name = \"_Mesh_335\";\r\n_Mesh_335.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_335.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_335.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_332 = newComp.layers.addNull();\r\n_Mesh_332.threeDLayer = true;\r\n_Mesh_332.source.name = \"_Mesh_332\";\r\n_Mesh_332.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_332.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_332.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_333 = newComp.layers.addNull();\r\n_Mesh_333.threeDLayer = true;\r\n_Mesh_333.source.name = \"_Mesh_333\";\r\n_Mesh_333.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_333.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_333.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_330 = newComp.layers.addNull();\r\n_Mesh_330.threeDLayer = true;\r\n_Mesh_330.source.name = \"_Mesh_330\";\r\n_Mesh_330.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_330.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_330.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_331 = newComp.layers.addNull();\r\n_Mesh_331.threeDLayer = true;\r\n_Mesh_331.source.name = \"_Mesh_331\";\r\n_Mesh_331.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_331.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_331.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_338 = newComp.layers.addNull();\r\n_Mesh_338.threeDLayer = true;\r\n_Mesh_338.source.name = \"_Mesh_338\";\r\n_Mesh_338.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_338.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_338.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_339 = newComp.layers.addNull();\r\n_Mesh_339.threeDLayer = true;\r\n_Mesh_339.source.name = \"_Mesh_339\";\r\n_Mesh_339.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_339.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_339.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_028 = newComp.layers.addNull();\r\n_Mesh_028.threeDLayer = true;\r\n_Mesh_028.source.name = \"_Mesh_028\";\r\n_Mesh_028.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_028.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_028.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_029 = newComp.layers.addNull();\r\n_Mesh_029.threeDLayer = true;\r\n_Mesh_029.source.name = \"_Mesh_029\";\r\n_Mesh_029.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_029.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_029.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_022 = newComp.layers.addNull();\r\n_Mesh_022.threeDLayer = true;\r\n_Mesh_022.source.name = \"_Mesh_022\";\r\n_Mesh_022.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_022.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_022.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_023 = newComp.layers.addNull();\r\n_Mesh_023.threeDLayer = true;\r\n_Mesh_023.source.name = \"_Mesh_023\";\r\n_Mesh_023.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_023.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_023.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_020 = newComp.layers.addNull();\r\n_Mesh_020.threeDLayer = true;\r\n_Mesh_020.source.name = \"_Mesh_020\";\r\n_Mesh_020.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_020.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_020.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_021 = newComp.layers.addNull();\r\n_Mesh_021.threeDLayer = true;\r\n_Mesh_021.source.name = \"_Mesh_021\";\r\n_Mesh_021.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_021.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_021.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_026 = newComp.layers.addNull();\r\n_Mesh_026.threeDLayer = true;\r\n_Mesh_026.source.name = \"_Mesh_026\";\r\n_Mesh_026.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_026.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_026.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_027 = newComp.layers.addNull();\r\n_Mesh_027.threeDLayer = true;\r\n_Mesh_027.source.name = \"_Mesh_027\";\r\n_Mesh_027.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_027.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_027.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_024 = newComp.layers.addNull();\r\n_Mesh_024.threeDLayer = true;\r\n_Mesh_024.source.name = \"_Mesh_024\";\r\n_Mesh_024.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_024.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_024.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_025 = newComp.layers.addNull();\r\n_Mesh_025.threeDLayer = true;\r\n_Mesh_025.source.name = \"_Mesh_025\";\r\n_Mesh_025.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_025.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_025.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_822 = newComp.layers.addNull();\r\n_Mesh_822.threeDLayer = true;\r\n_Mesh_822.source.name = \"_Mesh_822\";\r\n_Mesh_822.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_822.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_822.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_823 = newComp.layers.addNull();\r\n_Mesh_823.threeDLayer = true;\r\n_Mesh_823.source.name = \"_Mesh_823\";\r\n_Mesh_823.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_823.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_823.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_820 = newComp.layers.addNull();\r\n_Mesh_820.threeDLayer = true;\r\n_Mesh_820.source.name = \"_Mesh_820\";\r\n_Mesh_820.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_820.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_820.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_821 = newComp.layers.addNull();\r\n_Mesh_821.threeDLayer = true;\r\n_Mesh_821.source.name = \"_Mesh_821\";\r\n_Mesh_821.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_821.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_821.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_826 = newComp.layers.addNull();\r\n_Mesh_826.threeDLayer = true;\r\n_Mesh_826.source.name = \"_Mesh_826\";\r\n_Mesh_826.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_826.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_826.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_827 = newComp.layers.addNull();\r\n_Mesh_827.threeDLayer = true;\r\n_Mesh_827.source.name = \"_Mesh_827\";\r\n_Mesh_827.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_827.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_827.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_824 = newComp.layers.addNull();\r\n_Mesh_824.threeDLayer = true;\r\n_Mesh_824.source.name = \"_Mesh_824\";\r\n_Mesh_824.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_824.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_824.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_825 = newComp.layers.addNull();\r\n_Mesh_825.threeDLayer = true;\r\n_Mesh_825.source.name = \"_Mesh_825\";\r\n_Mesh_825.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_825.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_825.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1358 = newComp.layers.addNull();\r\n_Mesh_1358.threeDLayer = true;\r\n_Mesh_1358.source.name = \"_Mesh_1358\";\r\n_Mesh_1358.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1358.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1358.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1359 = newComp.layers.addNull();\r\n_Mesh_1359.threeDLayer = true;\r\n_Mesh_1359.source.name = \"_Mesh_1359\";\r\n_Mesh_1359.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1359.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1359.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1356 = newComp.layers.addNull();\r\n_Mesh_1356.threeDLayer = true;\r\n_Mesh_1356.source.name = \"_Mesh_1356\";\r\n_Mesh_1356.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1356.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1356.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1357 = newComp.layers.addNull();\r\n_Mesh_1357.threeDLayer = true;\r\n_Mesh_1357.source.name = \"_Mesh_1357\";\r\n_Mesh_1357.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1357.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1357.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1354 = newComp.layers.addNull();\r\n_Mesh_1354.threeDLayer = true;\r\n_Mesh_1354.source.name = \"_Mesh_1354\";\r\n_Mesh_1354.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1354.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1354.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1355 = newComp.layers.addNull();\r\n_Mesh_1355.threeDLayer = true;\r\n_Mesh_1355.source.name = \"_Mesh_1355\";\r\n_Mesh_1355.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1355.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1355.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1352 = newComp.layers.addNull();\r\n_Mesh_1352.threeDLayer = true;\r\n_Mesh_1352.source.name = \"_Mesh_1352\";\r\n_Mesh_1352.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1352.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1352.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1353 = newComp.layers.addNull();\r\n_Mesh_1353.threeDLayer = true;\r\n_Mesh_1353.source.name = \"_Mesh_1353\";\r\n_Mesh_1353.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1353.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1353.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1350 = newComp.layers.addNull();\r\n_Mesh_1350.threeDLayer = true;\r\n_Mesh_1350.source.name = \"_Mesh_1350\";\r\n_Mesh_1350.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1350.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1350.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1351 = newComp.layers.addNull();\r\n_Mesh_1351.threeDLayer = true;\r\n_Mesh_1351.source.name = \"_Mesh_1351\";\r\n_Mesh_1351.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1351.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1351.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1176 = newComp.layers.addNull();\r\n_Mesh_1176.threeDLayer = true;\r\n_Mesh_1176.source.name = \"_Mesh_1176\";\r\n_Mesh_1176.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1176.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1176.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1174 = newComp.layers.addNull();\r\n_Mesh_1174.threeDLayer = true;\r\n_Mesh_1174.source.name = \"_Mesh_1174\";\r\n_Mesh_1174.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1174.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1174.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1175 = newComp.layers.addNull();\r\n_Mesh_1175.threeDLayer = true;\r\n_Mesh_1175.source.name = \"_Mesh_1175\";\r\n_Mesh_1175.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1175.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1175.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1172 = newComp.layers.addNull();\r\n_Mesh_1172.threeDLayer = true;\r\n_Mesh_1172.source.name = \"_Mesh_1172\";\r\n_Mesh_1172.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1172.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1172.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1173 = newComp.layers.addNull();\r\n_Mesh_1173.threeDLayer = true;\r\n_Mesh_1173.source.name = \"_Mesh_1173\";\r\n_Mesh_1173.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1173.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1173.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1170 = newComp.layers.addNull();\r\n_Mesh_1170.threeDLayer = true;\r\n_Mesh_1170.source.name = \"_Mesh_1170\";\r\n_Mesh_1170.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1170.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1170.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1171 = newComp.layers.addNull();\r\n_Mesh_1171.threeDLayer = true;\r\n_Mesh_1171.source.name = \"_Mesh_1171\";\r\n_Mesh_1171.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1171.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1171.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1178 = newComp.layers.addNull();\r\n_Mesh_1178.threeDLayer = true;\r\n_Mesh_1178.source.name = \"_Mesh_1178\";\r\n_Mesh_1178.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1178.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1178.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1179 = newComp.layers.addNull();\r\n_Mesh_1179.threeDLayer = true;\r\n_Mesh_1179.source.name = \"_Mesh_1179\";\r\n_Mesh_1179.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1179.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1179.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1008 = newComp.layers.addNull();\r\n_Mesh_1008.threeDLayer = true;\r\n_Mesh_1008.source.name = \"_Mesh_1008\";\r\n_Mesh_1008.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1008.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1008.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1009 = newComp.layers.addNull();\r\n_Mesh_1009.threeDLayer = true;\r\n_Mesh_1009.source.name = \"_Mesh_1009\";\r\n_Mesh_1009.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1009.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1009.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1002 = newComp.layers.addNull();\r\n_Mesh_1002.threeDLayer = true;\r\n_Mesh_1002.source.name = \"_Mesh_1002\";\r\n_Mesh_1002.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1002.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1002.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1003 = newComp.layers.addNull();\r\n_Mesh_1003.threeDLayer = true;\r\n_Mesh_1003.source.name = \"_Mesh_1003\";\r\n_Mesh_1003.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1003.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1003.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1000 = newComp.layers.addNull();\r\n_Mesh_1000.threeDLayer = true;\r\n_Mesh_1000.source.name = \"_Mesh_1000\";\r\n_Mesh_1000.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1000.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1000.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1001 = newComp.layers.addNull();\r\n_Mesh_1001.threeDLayer = true;\r\n_Mesh_1001.source.name = \"_Mesh_1001\";\r\n_Mesh_1001.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1001.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1001.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1006 = newComp.layers.addNull();\r\n_Mesh_1006.threeDLayer = true;\r\n_Mesh_1006.source.name = \"_Mesh_1006\";\r\n_Mesh_1006.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1006.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1006.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1007 = newComp.layers.addNull();\r\n_Mesh_1007.threeDLayer = true;\r\n_Mesh_1007.source.name = \"_Mesh_1007\";\r\n_Mesh_1007.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1007.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1007.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1004 = newComp.layers.addNull();\r\n_Mesh_1004.threeDLayer = true;\r\n_Mesh_1004.source.name = \"_Mesh_1004\";\r\n_Mesh_1004.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1004.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1004.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1005 = newComp.layers.addNull();\r\n_Mesh_1005.threeDLayer = true;\r\n_Mesh_1005.source.name = \"_Mesh_1005\";\r\n_Mesh_1005.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1005.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1005.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_831 = newComp.layers.addNull();\r\n_Mesh_831.threeDLayer = true;\r\n_Mesh_831.source.name = \"_Mesh_831\";\r\n_Mesh_831.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_831.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_831.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_830 = newComp.layers.addNull();\r\n_Mesh_830.threeDLayer = true;\r\n_Mesh_830.source.name = \"_Mesh_830\";\r\n_Mesh_830.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_830.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_830.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_833 = newComp.layers.addNull();\r\n_Mesh_833.threeDLayer = true;\r\n_Mesh_833.source.name = \"_Mesh_833\";\r\n_Mesh_833.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_833.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_833.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_832 = newComp.layers.addNull();\r\n_Mesh_832.threeDLayer = true;\r\n_Mesh_832.source.name = \"_Mesh_832\";\r\n_Mesh_832.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_832.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_832.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_835 = newComp.layers.addNull();\r\n_Mesh_835.threeDLayer = true;\r\n_Mesh_835.source.name = \"_Mesh_835\";\r\n_Mesh_835.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_835.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_835.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_834 = newComp.layers.addNull();\r\n_Mesh_834.threeDLayer = true;\r\n_Mesh_834.source.name = \"_Mesh_834\";\r\n_Mesh_834.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_834.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_834.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_837 = newComp.layers.addNull();\r\n_Mesh_837.threeDLayer = true;\r\n_Mesh_837.source.name = \"_Mesh_837\";\r\n_Mesh_837.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_837.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_837.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_836 = newComp.layers.addNull();\r\n_Mesh_836.threeDLayer = true;\r\n_Mesh_836.source.name = \"_Mesh_836\";\r\n_Mesh_836.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_836.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_836.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_839 = newComp.layers.addNull();\r\n_Mesh_839.threeDLayer = true;\r\n_Mesh_839.source.name = \"_Mesh_839\";\r\n_Mesh_839.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_839.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_839.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_838 = newComp.layers.addNull();\r\n_Mesh_838.threeDLayer = true;\r\n_Mesh_838.source.name = \"_Mesh_838\";\r\n_Mesh_838.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_838.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_838.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_529 = newComp.layers.addNull();\r\n_Mesh_529.threeDLayer = true;\r\n_Mesh_529.source.name = \"_Mesh_529\";\r\n_Mesh_529.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_529.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_529.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_528 = newComp.layers.addNull();\r\n_Mesh_528.threeDLayer = true;\r\n_Mesh_528.source.name = \"_Mesh_528\";\r\n_Mesh_528.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_528.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_528.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_787 = newComp.layers.addNull();\r\n_Mesh_787.threeDLayer = true;\r\n_Mesh_787.source.name = \"_Mesh_787\";\r\n_Mesh_787.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_787.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_787.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_786 = newComp.layers.addNull();\r\n_Mesh_786.threeDLayer = true;\r\n_Mesh_786.source.name = \"_Mesh_786\";\r\n_Mesh_786.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_786.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_786.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_785 = newComp.layers.addNull();\r\n_Mesh_785.threeDLayer = true;\r\n_Mesh_785.source.name = \"_Mesh_785\";\r\n_Mesh_785.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_785.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_785.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_784 = newComp.layers.addNull();\r\n_Mesh_784.threeDLayer = true;\r\n_Mesh_784.source.name = \"_Mesh_784\";\r\n_Mesh_784.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_784.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_784.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_783 = newComp.layers.addNull();\r\n_Mesh_783.threeDLayer = true;\r\n_Mesh_783.source.name = \"_Mesh_783\";\r\n_Mesh_783.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_783.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_783.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_782 = newComp.layers.addNull();\r\n_Mesh_782.threeDLayer = true;\r\n_Mesh_782.source.name = \"_Mesh_782\";\r\n_Mesh_782.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_782.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_782.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_781 = newComp.layers.addNull();\r\n_Mesh_781.threeDLayer = true;\r\n_Mesh_781.source.name = \"_Mesh_781\";\r\n_Mesh_781.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_781.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_781.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_780 = newComp.layers.addNull();\r\n_Mesh_780.threeDLayer = true;\r\n_Mesh_780.source.name = \"_Mesh_780\";\r\n_Mesh_780.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_780.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_780.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_789 = newComp.layers.addNull();\r\n_Mesh_789.threeDLayer = true;\r\n_Mesh_789.source.name = \"_Mesh_789\";\r\n_Mesh_789.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_789.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_789.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_788 = newComp.layers.addNull();\r\n_Mesh_788.threeDLayer = true;\r\n_Mesh_788.source.name = \"_Mesh_788\";\r\n_Mesh_788.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_788.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_788.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_237 = newComp.layers.addNull();\r\n_Mesh_237.threeDLayer = true;\r\n_Mesh_237.source.name = \"_Mesh_237\";\r\n_Mesh_237.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_237.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_237.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_236 = newComp.layers.addNull();\r\n_Mesh_236.threeDLayer = true;\r\n_Mesh_236.source.name = \"_Mesh_236\";\r\n_Mesh_236.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_236.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_236.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_235 = newComp.layers.addNull();\r\n_Mesh_235.threeDLayer = true;\r\n_Mesh_235.source.name = \"_Mesh_235\";\r\n_Mesh_235.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_235.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_235.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_234 = newComp.layers.addNull();\r\n_Mesh_234.threeDLayer = true;\r\n_Mesh_234.source.name = \"_Mesh_234\";\r\n_Mesh_234.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_234.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_234.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_233 = newComp.layers.addNull();\r\n_Mesh_233.threeDLayer = true;\r\n_Mesh_233.source.name = \"_Mesh_233\";\r\n_Mesh_233.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_233.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_233.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_232 = newComp.layers.addNull();\r\n_Mesh_232.threeDLayer = true;\r\n_Mesh_232.source.name = \"_Mesh_232\";\r\n_Mesh_232.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_232.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_232.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_231 = newComp.layers.addNull();\r\n_Mesh_231.threeDLayer = true;\r\n_Mesh_231.source.name = \"_Mesh_231\";\r\n_Mesh_231.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_231.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_231.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_230 = newComp.layers.addNull();\r\n_Mesh_230.threeDLayer = true;\r\n_Mesh_230.source.name = \"_Mesh_230\";\r\n_Mesh_230.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_230.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_230.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_239 = newComp.layers.addNull();\r\n_Mesh_239.threeDLayer = true;\r\n_Mesh_239.source.name = \"_Mesh_239\";\r\n_Mesh_239.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_239.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_239.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_238 = newComp.layers.addNull();\r\n_Mesh_238.threeDLayer = true;\r\n_Mesh_238.source.name = \"_Mesh_238\";\r\n_Mesh_238.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_238.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_238.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_659 = newComp.layers.addNull();\r\n_Mesh_659.threeDLayer = true;\r\n_Mesh_659.source.name = \"_Mesh_659\";\r\n_Mesh_659.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_659.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_659.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_658 = newComp.layers.addNull();\r\n_Mesh_658.threeDLayer = true;\r\n_Mesh_658.source.name = \"_Mesh_658\";\r\n_Mesh_658.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_658.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_658.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_309 = newComp.layers.addNull();\r\n_Mesh_309.threeDLayer = true;\r\n_Mesh_309.source.name = \"_Mesh_309\";\r\n_Mesh_309.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_309.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_309.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_308 = newComp.layers.addNull();\r\n_Mesh_308.threeDLayer = true;\r\n_Mesh_308.source.name = \"_Mesh_308\";\r\n_Mesh_308.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_308.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_308.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_651 = newComp.layers.addNull();\r\n_Mesh_651.threeDLayer = true;\r\n_Mesh_651.source.name = \"_Mesh_651\";\r\n_Mesh_651.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_651.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_651.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_302 = newComp.layers.addNull();\r\n_Mesh_302.threeDLayer = true;\r\n_Mesh_302.source.name = \"_Mesh_302\";\r\n_Mesh_302.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_302.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_302.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_301 = newComp.layers.addNull();\r\n_Mesh_301.threeDLayer = true;\r\n_Mesh_301.source.name = \"_Mesh_301\";\r\n_Mesh_301.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_301.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_301.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_300 = newComp.layers.addNull();\r\n_Mesh_300.threeDLayer = true;\r\n_Mesh_300.source.name = \"_Mesh_300\";\r\n_Mesh_300.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_300.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_300.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_307 = newComp.layers.addNull();\r\n_Mesh_307.threeDLayer = true;\r\n_Mesh_307.source.name = \"_Mesh_307\";\r\n_Mesh_307.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_307.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_307.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_306 = newComp.layers.addNull();\r\n_Mesh_306.threeDLayer = true;\r\n_Mesh_306.source.name = \"_Mesh_306\";\r\n_Mesh_306.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_306.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_306.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_305 = newComp.layers.addNull();\r\n_Mesh_305.threeDLayer = true;\r\n_Mesh_305.source.name = \"_Mesh_305\";\r\n_Mesh_305.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_305.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_305.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_304 = newComp.layers.addNull();\r\n_Mesh_304.threeDLayer = true;\r\n_Mesh_304.source.name = \"_Mesh_304\";\r\n_Mesh_304.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_304.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_304.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_019 = newComp.layers.addNull();\r\n_Mesh_019.threeDLayer = true;\r\n_Mesh_019.source.name = \"_Mesh_019\";\r\n_Mesh_019.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_019.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_019.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_018 = newComp.layers.addNull();\r\n_Mesh_018.threeDLayer = true;\r\n_Mesh_018.source.name = \"_Mesh_018\";\r\n_Mesh_018.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_018.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_018.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_017 = newComp.layers.addNull();\r\n_Mesh_017.threeDLayer = true;\r\n_Mesh_017.source.name = \"_Mesh_017\";\r\n_Mesh_017.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_017.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_017.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_016 = newComp.layers.addNull();\r\n_Mesh_016.threeDLayer = true;\r\n_Mesh_016.source.name = \"_Mesh_016\";\r\n_Mesh_016.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_016.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_016.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_015 = newComp.layers.addNull();\r\n_Mesh_015.threeDLayer = true;\r\n_Mesh_015.source.name = \"_Mesh_015\";\r\n_Mesh_015.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_015.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_015.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_014 = newComp.layers.addNull();\r\n_Mesh_014.threeDLayer = true;\r\n_Mesh_014.source.name = \"_Mesh_014\";\r\n_Mesh_014.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_014.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_014.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_013 = newComp.layers.addNull();\r\n_Mesh_013.threeDLayer = true;\r\n_Mesh_013.source.name = \"_Mesh_013\";\r\n_Mesh_013.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_013.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_013.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_012 = newComp.layers.addNull();\r\n_Mesh_012.threeDLayer = true;\r\n_Mesh_012.source.name = \"_Mesh_012\";\r\n_Mesh_012.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_012.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_012.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_011 = newComp.layers.addNull();\r\n_Mesh_011.threeDLayer = true;\r\n_Mesh_011.source.name = \"_Mesh_011\";\r\n_Mesh_011.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_011.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_011.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_010 = newComp.layers.addNull();\r\n_Mesh_010.threeDLayer = true;\r\n_Mesh_010.source.name = \"_Mesh_010\";\r\n_Mesh_010.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_010.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_010.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_899 = newComp.layers.addNull();\r\n_Mesh_899.threeDLayer = true;\r\n_Mesh_899.source.name = \"_Mesh_899\";\r\n_Mesh_899.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_899.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_899.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_898 = newComp.layers.addNull();\r\n_Mesh_898.threeDLayer = true;\r\n_Mesh_898.source.name = \"_Mesh_898\";\r\n_Mesh_898.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_898.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_898.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_897 = newComp.layers.addNull();\r\n_Mesh_897.threeDLayer = true;\r\n_Mesh_897.source.name = \"_Mesh_897\";\r\n_Mesh_897.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_897.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_897.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_896 = newComp.layers.addNull();\r\n_Mesh_896.threeDLayer = true;\r\n_Mesh_896.source.name = \"_Mesh_896\";\r\n_Mesh_896.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_896.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_896.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1349 = newComp.layers.addNull();\r\n_Mesh_1349.threeDLayer = true;\r\n_Mesh_1349.source.name = \"_Mesh_1349\";\r\n_Mesh_1349.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1349.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1349.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1348 = newComp.layers.addNull();\r\n_Mesh_1348.threeDLayer = true;\r\n_Mesh_1348.source.name = \"_Mesh_1348\";\r\n_Mesh_1348.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1348.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1348.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1345 = newComp.layers.addNull();\r\n_Mesh_1345.threeDLayer = true;\r\n_Mesh_1345.source.name = \"_Mesh_1345\";\r\n_Mesh_1345.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1345.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1345.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1344 = newComp.layers.addNull();\r\n_Mesh_1344.threeDLayer = true;\r\n_Mesh_1344.source.name = \"_Mesh_1344\";\r\n_Mesh_1344.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1344.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1344.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1347 = newComp.layers.addNull();\r\n_Mesh_1347.threeDLayer = true;\r\n_Mesh_1347.source.name = \"_Mesh_1347\";\r\n_Mesh_1347.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1347.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1347.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1346 = newComp.layers.addNull();\r\n_Mesh_1346.threeDLayer = true;\r\n_Mesh_1346.source.name = \"_Mesh_1346\";\r\n_Mesh_1346.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1346.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1346.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1341 = newComp.layers.addNull();\r\n_Mesh_1341.threeDLayer = true;\r\n_Mesh_1341.source.name = \"_Mesh_1341\";\r\n_Mesh_1341.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1341.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1341.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1340 = newComp.layers.addNull();\r\n_Mesh_1340.threeDLayer = true;\r\n_Mesh_1340.source.name = \"_Mesh_1340\";\r\n_Mesh_1340.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1340.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1340.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1343 = newComp.layers.addNull();\r\n_Mesh_1343.threeDLayer = true;\r\n_Mesh_1343.source.name = \"_Mesh_1343\";\r\n_Mesh_1343.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1343.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1343.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1342 = newComp.layers.addNull();\r\n_Mesh_1342.threeDLayer = true;\r\n_Mesh_1342.source.name = \"_Mesh_1342\";\r\n_Mesh_1342.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1342.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1342.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1165 = newComp.layers.addNull();\r\n_Mesh_1165.threeDLayer = true;\r\n_Mesh_1165.source.name = \"_Mesh_1165\";\r\n_Mesh_1165.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1165.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1165.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1164 = newComp.layers.addNull();\r\n_Mesh_1164.threeDLayer = true;\r\n_Mesh_1164.source.name = \"_Mesh_1164\";\r\n_Mesh_1164.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1164.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1164.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1167 = newComp.layers.addNull();\r\n_Mesh_1167.threeDLayer = true;\r\n_Mesh_1167.source.name = \"_Mesh_1167\";\r\n_Mesh_1167.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1167.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1167.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1166 = newComp.layers.addNull();\r\n_Mesh_1166.threeDLayer = true;\r\n_Mesh_1166.source.name = \"_Mesh_1166\";\r\n_Mesh_1166.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1166.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1166.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1161 = newComp.layers.addNull();\r\n_Mesh_1161.threeDLayer = true;\r\n_Mesh_1161.source.name = \"_Mesh_1161\";\r\n_Mesh_1161.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1161.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1161.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1160 = newComp.layers.addNull();\r\n_Mesh_1160.threeDLayer = true;\r\n_Mesh_1160.source.name = \"_Mesh_1160\";\r\n_Mesh_1160.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1160.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1160.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1163 = newComp.layers.addNull();\r\n_Mesh_1163.threeDLayer = true;\r\n_Mesh_1163.source.name = \"_Mesh_1163\";\r\n_Mesh_1163.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1163.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1163.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1162 = newComp.layers.addNull();\r\n_Mesh_1162.threeDLayer = true;\r\n_Mesh_1162.source.name = \"_Mesh_1162\";\r\n_Mesh_1162.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1162.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1162.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1169 = newComp.layers.addNull();\r\n_Mesh_1169.threeDLayer = true;\r\n_Mesh_1169.source.name = \"_Mesh_1169\";\r\n_Mesh_1169.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1169.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1169.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1168 = newComp.layers.addNull();\r\n_Mesh_1168.threeDLayer = true;\r\n_Mesh_1168.source.name = \"_Mesh_1168\";\r\n_Mesh_1168.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1168.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1168.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh = newComp.layers.addNull();\r\n_Mesh.threeDLayer = true;\r\n_Mesh.source.name = \"_Mesh\";\r\n_Mesh.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1019 = newComp.layers.addNull();\r\n_Mesh_1019.threeDLayer = true;\r\n_Mesh_1019.source.name = \"_Mesh_1019\";\r\n_Mesh_1019.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1019.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1019.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1018 = newComp.layers.addNull();\r\n_Mesh_1018.threeDLayer = true;\r\n_Mesh_1018.source.name = \"_Mesh_1018\";\r\n_Mesh_1018.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1018.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1018.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1011 = newComp.layers.addNull();\r\n_Mesh_1011.threeDLayer = true;\r\n_Mesh_1011.source.name = \"_Mesh_1011\";\r\n_Mesh_1011.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1011.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1011.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1010 = newComp.layers.addNull();\r\n_Mesh_1010.threeDLayer = true;\r\n_Mesh_1010.source.name = \"_Mesh_1010\";\r\n_Mesh_1010.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1010.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1010.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1013 = newComp.layers.addNull();\r\n_Mesh_1013.threeDLayer = true;\r\n_Mesh_1013.source.name = \"_Mesh_1013\";\r\n_Mesh_1013.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1013.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1013.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1012 = newComp.layers.addNull();\r\n_Mesh_1012.threeDLayer = true;\r\n_Mesh_1012.source.name = \"_Mesh_1012\";\r\n_Mesh_1012.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1012.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1012.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1015 = newComp.layers.addNull();\r\n_Mesh_1015.threeDLayer = true;\r\n_Mesh_1015.source.name = \"_Mesh_1015\";\r\n_Mesh_1015.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1015.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1015.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1014 = newComp.layers.addNull();\r\n_Mesh_1014.threeDLayer = true;\r\n_Mesh_1014.source.name = \"_Mesh_1014\";\r\n_Mesh_1014.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1014.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1014.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1017 = newComp.layers.addNull();\r\n_Mesh_1017.threeDLayer = true;\r\n_Mesh_1017.source.name = \"_Mesh_1017\";\r\n_Mesh_1017.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1017.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1017.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1016 = newComp.layers.addNull();\r\n_Mesh_1016.threeDLayer = true;\r\n_Mesh_1016.source.name = \"_Mesh_1016\";\r\n_Mesh_1016.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1016.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1016.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_534 = newComp.layers.addNull();\r\n_Mesh_534.threeDLayer = true;\r\n_Mesh_534.source.name = \"_Mesh_534\";\r\n_Mesh_534.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_534.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_534.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_535 = newComp.layers.addNull();\r\n_Mesh_535.threeDLayer = true;\r\n_Mesh_535.source.name = \"_Mesh_535\";\r\n_Mesh_535.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_535.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_535.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_536 = newComp.layers.addNull();\r\n_Mesh_536.threeDLayer = true;\r\n_Mesh_536.source.name = \"_Mesh_536\";\r\n_Mesh_536.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_536.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_536.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_537 = newComp.layers.addNull();\r\n_Mesh_537.threeDLayer = true;\r\n_Mesh_537.source.name = \"_Mesh_537\";\r\n_Mesh_537.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_537.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_537.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_530 = newComp.layers.addNull();\r\n_Mesh_530.threeDLayer = true;\r\n_Mesh_530.source.name = \"_Mesh_530\";\r\n_Mesh_530.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_530.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_530.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_531 = newComp.layers.addNull();\r\n_Mesh_531.threeDLayer = true;\r\n_Mesh_531.source.name = \"_Mesh_531\";\r\n_Mesh_531.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_531.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_531.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_532 = newComp.layers.addNull();\r\n_Mesh_532.threeDLayer = true;\r\n_Mesh_532.source.name = \"_Mesh_532\";\r\n_Mesh_532.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_532.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_532.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_533 = newComp.layers.addNull();\r\n_Mesh_533.threeDLayer = true;\r\n_Mesh_533.source.name = \"_Mesh_533\";\r\n_Mesh_533.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_533.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_533.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_828 = newComp.layers.addNull();\r\n_Mesh_828.threeDLayer = true;\r\n_Mesh_828.source.name = \"_Mesh_828\";\r\n_Mesh_828.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_828.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_828.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_829 = newComp.layers.addNull();\r\n_Mesh_829.threeDLayer = true;\r\n_Mesh_829.source.name = \"_Mesh_829\";\r\n_Mesh_829.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_829.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_829.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_538 = newComp.layers.addNull();\r\n_Mesh_538.threeDLayer = true;\r\n_Mesh_538.source.name = \"_Mesh_538\";\r\n_Mesh_538.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_538.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_538.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_539 = newComp.layers.addNull();\r\n_Mesh_539.threeDLayer = true;\r\n_Mesh_539.source.name = \"_Mesh_539\";\r\n_Mesh_539.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_539.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_539.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_097 = newComp.layers.addNull();\r\n_Mesh_097.threeDLayer = true;\r\n_Mesh_097.source.name = \"_Mesh_097\";\r\n_Mesh_097.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_097.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_097.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_096 = newComp.layers.addNull();\r\n_Mesh_096.threeDLayer = true;\r\n_Mesh_096.source.name = \"_Mesh_096\";\r\n_Mesh_096.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_096.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_096.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_095 = newComp.layers.addNull();\r\n_Mesh_095.threeDLayer = true;\r\n_Mesh_095.source.name = \"_Mesh_095\";\r\n_Mesh_095.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_095.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_095.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_094 = newComp.layers.addNull();\r\n_Mesh_094.threeDLayer = true;\r\n_Mesh_094.source.name = \"_Mesh_094\";\r\n_Mesh_094.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_094.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_094.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_093 = newComp.layers.addNull();\r\n_Mesh_093.threeDLayer = true;\r\n_Mesh_093.source.name = \"_Mesh_093\";\r\n_Mesh_093.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_093.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_093.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_092 = newComp.layers.addNull();\r\n_Mesh_092.threeDLayer = true;\r\n_Mesh_092.source.name = \"_Mesh_092\";\r\n_Mesh_092.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_092.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_092.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_228 = newComp.layers.addNull();\r\n_Mesh_228.threeDLayer = true;\r\n_Mesh_228.source.name = \"_Mesh_228\";\r\n_Mesh_228.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_228.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_228.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_229 = newComp.layers.addNull();\r\n_Mesh_229.threeDLayer = true;\r\n_Mesh_229.source.name = \"_Mesh_229\";\r\n_Mesh_229.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_229.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_229.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_091 = newComp.layers.addNull();\r\n_Mesh_091.threeDLayer = true;\r\n_Mesh_091.source.name = \"_Mesh_091\";\r\n_Mesh_091.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_091.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_091.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_220 = newComp.layers.addNull();\r\n_Mesh_220.threeDLayer = true;\r\n_Mesh_220.source.name = \"_Mesh_220\";\r\n_Mesh_220.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_220.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_220.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_221 = newComp.layers.addNull();\r\n_Mesh_221.threeDLayer = true;\r\n_Mesh_221.source.name = \"_Mesh_221\";\r\n_Mesh_221.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_221.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_221.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_222 = newComp.layers.addNull();\r\n_Mesh_222.threeDLayer = true;\r\n_Mesh_222.source.name = \"_Mesh_222\";\r\n_Mesh_222.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_222.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_222.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_223 = newComp.layers.addNull();\r\n_Mesh_223.threeDLayer = true;\r\n_Mesh_223.source.name = \"_Mesh_223\";\r\n_Mesh_223.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_223.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_223.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_224 = newComp.layers.addNull();\r\n_Mesh_224.threeDLayer = true;\r\n_Mesh_224.source.name = \"_Mesh_224\";\r\n_Mesh_224.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_224.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_224.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_225 = newComp.layers.addNull();\r\n_Mesh_225.threeDLayer = true;\r\n_Mesh_225.source.name = \"_Mesh_225\";\r\n_Mesh_225.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_225.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_225.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_226 = newComp.layers.addNull();\r\n_Mesh_226.threeDLayer = true;\r\n_Mesh_226.source.name = \"_Mesh_226\";\r\n_Mesh_226.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_226.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_226.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_227 = newComp.layers.addNull();\r\n_Mesh_227.threeDLayer = true;\r\n_Mesh_227.source.name = \"_Mesh_227\";\r\n_Mesh_227.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_227.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_227.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_642 = newComp.layers.addNull();\r\n_Mesh_642.threeDLayer = true;\r\n_Mesh_642.source.name = \"_Mesh_642\";\r\n_Mesh_642.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_642.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_642.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_643 = newComp.layers.addNull();\r\n_Mesh_643.threeDLayer = true;\r\n_Mesh_643.source.name = \"_Mesh_643\";\r\n_Mesh_643.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_643.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_643.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_316 = newComp.layers.addNull();\r\n_Mesh_316.threeDLayer = true;\r\n_Mesh_316.source.name = \"_Mesh_316\";\r\n_Mesh_316.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_316.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_316.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_641 = newComp.layers.addNull();\r\n_Mesh_641.threeDLayer = true;\r\n_Mesh_641.source.name = \"_Mesh_641\";\r\n_Mesh_641.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_641.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_641.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_310 = newComp.layers.addNull();\r\n_Mesh_310.threeDLayer = true;\r\n_Mesh_310.source.name = \"_Mesh_310\";\r\n_Mesh_310.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_310.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_310.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_647 = newComp.layers.addNull();\r\n_Mesh_647.threeDLayer = true;\r\n_Mesh_647.source.name = \"_Mesh_647\";\r\n_Mesh_647.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_647.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_647.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_644 = newComp.layers.addNull();\r\n_Mesh_644.threeDLayer = true;\r\n_Mesh_644.source.name = \"_Mesh_644\";\r\n_Mesh_644.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_644.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_644.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_645 = newComp.layers.addNull();\r\n_Mesh_645.threeDLayer = true;\r\n_Mesh_645.source.name = \"_Mesh_645\";\r\n_Mesh_645.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_645.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_645.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_648 = newComp.layers.addNull();\r\n_Mesh_648.threeDLayer = true;\r\n_Mesh_648.source.name = \"_Mesh_648\";\r\n_Mesh_648.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_648.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_648.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_649 = newComp.layers.addNull();\r\n_Mesh_649.threeDLayer = true;\r\n_Mesh_649.source.name = \"_Mesh_649\";\r\n_Mesh_649.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_649.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_649.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_318 = newComp.layers.addNull();\r\n_Mesh_318.threeDLayer = true;\r\n_Mesh_318.source.name = \"_Mesh_318\";\r\n_Mesh_318.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_318.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_318.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_319 = newComp.layers.addNull();\r\n_Mesh_319.threeDLayer = true;\r\n_Mesh_319.source.name = \"_Mesh_319\";\r\n_Mesh_319.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_319.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_319.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_314 = newComp.layers.addNull();\r\n_Mesh_314.threeDLayer = true;\r\n_Mesh_314.source.name = \"_Mesh_314\";\r\n_Mesh_314.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_314.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_314.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_315 = newComp.layers.addNull();\r\n_Mesh_315.threeDLayer = true;\r\n_Mesh_315.source.name = \"_Mesh_315\";\r\n_Mesh_315.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_315.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_315.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_640 = newComp.layers.addNull();\r\n_Mesh_640.threeDLayer = true;\r\n_Mesh_640.source.name = \"_Mesh_640\";\r\n_Mesh_640.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_640.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_640.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_317 = newComp.layers.addNull();\r\n_Mesh_317.threeDLayer = true;\r\n_Mesh_317.source.name = \"_Mesh_317\";\r\n_Mesh_317.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_317.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_317.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_646 = newComp.layers.addNull();\r\n_Mesh_646.threeDLayer = true;\r\n_Mesh_646.source.name = \"_Mesh_646\";\r\n_Mesh_646.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_646.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_646.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_311 = newComp.layers.addNull();\r\n_Mesh_311.threeDLayer = true;\r\n_Mesh_311.source.name = \"_Mesh_311\";\r\n_Mesh_311.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_311.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_311.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_312 = newComp.layers.addNull();\r\n_Mesh_312.threeDLayer = true;\r\n_Mesh_312.source.name = \"_Mesh_312\";\r\n_Mesh_312.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_312.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_312.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_313 = newComp.layers.addNull();\r\n_Mesh_313.threeDLayer = true;\r\n_Mesh_313.source.name = \"_Mesh_313\";\r\n_Mesh_313.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_313.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_313.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_798 = newComp.layers.addNull();\r\n_Mesh_798.threeDLayer = true;\r\n_Mesh_798.source.name = \"_Mesh_798\";\r\n_Mesh_798.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_798.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_798.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_799 = newComp.layers.addNull();\r\n_Mesh_799.threeDLayer = true;\r\n_Mesh_799.source.name = \"_Mesh_799\";\r\n_Mesh_799.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_799.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_799.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_790 = newComp.layers.addNull();\r\n_Mesh_790.threeDLayer = true;\r\n_Mesh_790.source.name = \"_Mesh_790\";\r\n_Mesh_790.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_790.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_790.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_791 = newComp.layers.addNull();\r\n_Mesh_791.threeDLayer = true;\r\n_Mesh_791.source.name = \"_Mesh_791\";\r\n_Mesh_791.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_791.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_791.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_792 = newComp.layers.addNull();\r\n_Mesh_792.threeDLayer = true;\r\n_Mesh_792.source.name = \"_Mesh_792\";\r\n_Mesh_792.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_792.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_792.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_793 = newComp.layers.addNull();\r\n_Mesh_793.threeDLayer = true;\r\n_Mesh_793.source.name = \"_Mesh_793\";\r\n_Mesh_793.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_793.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_793.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_794 = newComp.layers.addNull();\r\n_Mesh_794.threeDLayer = true;\r\n_Mesh_794.source.name = \"_Mesh_794\";\r\n_Mesh_794.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_794.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_794.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_795 = newComp.layers.addNull();\r\n_Mesh_795.threeDLayer = true;\r\n_Mesh_795.source.name = \"_Mesh_795\";\r\n_Mesh_795.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_795.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_795.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_796 = newComp.layers.addNull();\r\n_Mesh_796.threeDLayer = true;\r\n_Mesh_796.source.name = \"_Mesh_796\";\r\n_Mesh_796.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_796.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_796.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_797 = newComp.layers.addNull();\r\n_Mesh_797.threeDLayer = true;\r\n_Mesh_797.source.name = \"_Mesh_797\";\r\n_Mesh_797.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_797.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_797.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_001 = newComp.layers.addNull();\r\n_Mesh_001.threeDLayer = true;\r\n_Mesh_001.source.name = \"_Mesh_001\";\r\n_Mesh_001.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_001.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_001.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_002 = newComp.layers.addNull();\r\n_Mesh_002.threeDLayer = true;\r\n_Mesh_002.source.name = \"_Mesh_002\";\r\n_Mesh_002.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_002.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_002.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_003 = newComp.layers.addNull();\r\n_Mesh_003.threeDLayer = true;\r\n_Mesh_003.source.name = \"_Mesh_003\";\r\n_Mesh_003.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_003.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_003.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_004 = newComp.layers.addNull();\r\n_Mesh_004.threeDLayer = true;\r\n_Mesh_004.source.name = \"_Mesh_004\";\r\n_Mesh_004.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_004.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_004.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_005 = newComp.layers.addNull();\r\n_Mesh_005.threeDLayer = true;\r\n_Mesh_005.source.name = \"_Mesh_005\";\r\n_Mesh_005.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_005.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_005.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_006 = newComp.layers.addNull();\r\n_Mesh_006.threeDLayer = true;\r\n_Mesh_006.source.name = \"_Mesh_006\";\r\n_Mesh_006.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_006.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_006.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_007 = newComp.layers.addNull();\r\n_Mesh_007.threeDLayer = true;\r\n_Mesh_007.source.name = \"_Mesh_007\";\r\n_Mesh_007.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_007.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_007.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_008 = newComp.layers.addNull();\r\n_Mesh_008.threeDLayer = true;\r\n_Mesh_008.source.name = \"_Mesh_008\";\r\n_Mesh_008.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_008.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_008.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_009 = newComp.layers.addNull();\r\n_Mesh_009.threeDLayer = true;\r\n_Mesh_009.source.name = \"_Mesh_009\";\r\n_Mesh_009.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_009.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_009.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1486 = newComp.layers.addNull();\r\n_Mesh_1486.threeDLayer = true;\r\n_Mesh_1486.source.name = \"_Mesh_1486\";\r\n_Mesh_1486.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1486.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1486.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1487 = newComp.layers.addNull();\r\n_Mesh_1487.threeDLayer = true;\r\n_Mesh_1487.source.name = \"_Mesh_1487\";\r\n_Mesh_1487.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1487.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1487.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1484 = newComp.layers.addNull();\r\n_Mesh_1484.threeDLayer = true;\r\n_Mesh_1484.source.name = \"_Mesh_1484\";\r\n_Mesh_1484.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1484.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1484.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1485 = newComp.layers.addNull();\r\n_Mesh_1485.threeDLayer = true;\r\n_Mesh_1485.source.name = \"_Mesh_1485\";\r\n_Mesh_1485.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1485.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1485.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1482 = newComp.layers.addNull();\r\n_Mesh_1482.threeDLayer = true;\r\n_Mesh_1482.source.name = \"_Mesh_1482\";\r\n_Mesh_1482.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1482.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1482.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1483 = newComp.layers.addNull();\r\n_Mesh_1483.threeDLayer = true;\r\n_Mesh_1483.source.name = \"_Mesh_1483\";\r\n_Mesh_1483.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1483.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1483.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1480 = newComp.layers.addNull();\r\n_Mesh_1480.threeDLayer = true;\r\n_Mesh_1480.source.name = \"_Mesh_1480\";\r\n_Mesh_1480.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1480.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1480.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1481 = newComp.layers.addNull();\r\n_Mesh_1481.threeDLayer = true;\r\n_Mesh_1481.source.name = \"_Mesh_1481\";\r\n_Mesh_1481.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1481.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1481.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1488 = newComp.layers.addNull();\r\n_Mesh_1488.threeDLayer = true;\r\n_Mesh_1488.source.name = \"_Mesh_1488\";\r\n_Mesh_1488.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1488.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1488.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1489 = newComp.layers.addNull();\r\n_Mesh_1489.threeDLayer = true;\r\n_Mesh_1489.source.name = \"_Mesh_1489\";\r\n_Mesh_1489.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1489.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1489.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1370 = newComp.layers.addNull();\r\n_Mesh_1370.threeDLayer = true;\r\n_Mesh_1370.source.name = \"_Mesh_1370\";\r\n_Mesh_1370.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1370.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1370.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1371 = newComp.layers.addNull();\r\n_Mesh_1371.threeDLayer = true;\r\n_Mesh_1371.source.name = \"_Mesh_1371\";\r\n_Mesh_1371.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1371.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1371.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1372 = newComp.layers.addNull();\r\n_Mesh_1372.threeDLayer = true;\r\n_Mesh_1372.source.name = \"_Mesh_1372\";\r\n_Mesh_1372.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1372.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1372.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1373 = newComp.layers.addNull();\r\n_Mesh_1373.threeDLayer = true;\r\n_Mesh_1373.source.name = \"_Mesh_1373\";\r\n_Mesh_1373.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1373.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1373.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1374 = newComp.layers.addNull();\r\n_Mesh_1374.threeDLayer = true;\r\n_Mesh_1374.source.name = \"_Mesh_1374\";\r\n_Mesh_1374.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1374.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1374.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1375 = newComp.layers.addNull();\r\n_Mesh_1375.threeDLayer = true;\r\n_Mesh_1375.source.name = \"_Mesh_1375\";\r\n_Mesh_1375.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1375.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1375.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1376 = newComp.layers.addNull();\r\n_Mesh_1376.threeDLayer = true;\r\n_Mesh_1376.source.name = \"_Mesh_1376\";\r\n_Mesh_1376.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1376.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1376.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1377 = newComp.layers.addNull();\r\n_Mesh_1377.threeDLayer = true;\r\n_Mesh_1377.source.name = \"_Mesh_1377\";\r\n_Mesh_1377.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1377.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1377.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1378 = newComp.layers.addNull();\r\n_Mesh_1378.threeDLayer = true;\r\n_Mesh_1378.source.name = \"_Mesh_1378\";\r\n_Mesh_1378.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1378.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1378.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1379 = newComp.layers.addNull();\r\n_Mesh_1379.threeDLayer = true;\r\n_Mesh_1379.source.name = \"_Mesh_1379\";\r\n_Mesh_1379.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1379.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1379.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1159 = newComp.layers.addNull();\r\n_Mesh_1159.threeDLayer = true;\r\n_Mesh_1159.source.name = \"_Mesh_1159\";\r\n_Mesh_1159.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1159.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1159.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1150 = newComp.layers.addNull();\r\n_Mesh_1150.threeDLayer = true;\r\n_Mesh_1150.source.name = \"_Mesh_1150\";\r\n_Mesh_1150.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1150.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1150.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1151 = newComp.layers.addNull();\r\n_Mesh_1151.threeDLayer = true;\r\n_Mesh_1151.source.name = \"_Mesh_1151\";\r\n_Mesh_1151.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1151.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1151.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1152 = newComp.layers.addNull();\r\n_Mesh_1152.threeDLayer = true;\r\n_Mesh_1152.source.name = \"_Mesh_1152\";\r\n_Mesh_1152.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1152.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1152.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1153 = newComp.layers.addNull();\r\n_Mesh_1153.threeDLayer = true;\r\n_Mesh_1153.source.name = \"_Mesh_1153\";\r\n_Mesh_1153.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1153.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1153.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1154 = newComp.layers.addNull();\r\n_Mesh_1154.threeDLayer = true;\r\n_Mesh_1154.source.name = \"_Mesh_1154\";\r\n_Mesh_1154.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1154.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1154.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1155 = newComp.layers.addNull();\r\n_Mesh_1155.threeDLayer = true;\r\n_Mesh_1155.source.name = \"_Mesh_1155\";\r\n_Mesh_1155.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1155.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1155.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1156 = newComp.layers.addNull();\r\n_Mesh_1156.threeDLayer = true;\r\n_Mesh_1156.source.name = \"_Mesh_1156\";\r\n_Mesh_1156.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1156.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1156.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1398 = newComp.layers.addNull();\r\n_Mesh_1398.threeDLayer = true;\r\n_Mesh_1398.source.name = \"_Mesh_1398\";\r\n_Mesh_1398.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1398.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1398.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1399 = newComp.layers.addNull();\r\n_Mesh_1399.threeDLayer = true;\r\n_Mesh_1399.source.name = \"_Mesh_1399\";\r\n_Mesh_1399.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1399.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1399.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1392 = newComp.layers.addNull();\r\n_Mesh_1392.threeDLayer = true;\r\n_Mesh_1392.source.name = \"_Mesh_1392\";\r\n_Mesh_1392.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1392.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1392.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1393 = newComp.layers.addNull();\r\n_Mesh_1393.threeDLayer = true;\r\n_Mesh_1393.source.name = \"_Mesh_1393\";\r\n_Mesh_1393.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1393.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1393.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1390 = newComp.layers.addNull();\r\n_Mesh_1390.threeDLayer = true;\r\n_Mesh_1390.source.name = \"_Mesh_1390\";\r\n_Mesh_1390.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1390.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1390.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1391 = newComp.layers.addNull();\r\n_Mesh_1391.threeDLayer = true;\r\n_Mesh_1391.source.name = \"_Mesh_1391\";\r\n_Mesh_1391.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1391.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1391.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1396 = newComp.layers.addNull();\r\n_Mesh_1396.threeDLayer = true;\r\n_Mesh_1396.source.name = \"_Mesh_1396\";\r\n_Mesh_1396.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1396.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1396.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1397 = newComp.layers.addNull();\r\n_Mesh_1397.threeDLayer = true;\r\n_Mesh_1397.source.name = \"_Mesh_1397\";\r\n_Mesh_1397.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1397.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1397.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1394 = newComp.layers.addNull();\r\n_Mesh_1394.threeDLayer = true;\r\n_Mesh_1394.source.name = \"_Mesh_1394\";\r\n_Mesh_1394.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1394.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1394.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1395 = newComp.layers.addNull();\r\n_Mesh_1395.threeDLayer = true;\r\n_Mesh_1395.source.name = \"_Mesh_1395\";\r\n_Mesh_1395.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1395.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1395.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1028 = newComp.layers.addNull();\r\n_Mesh_1028.threeDLayer = true;\r\n_Mesh_1028.source.name = \"_Mesh_1028\";\r\n_Mesh_1028.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1028.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1028.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1029 = newComp.layers.addNull();\r\n_Mesh_1029.threeDLayer = true;\r\n_Mesh_1029.source.name = \"_Mesh_1029\";\r\n_Mesh_1029.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1029.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1029.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1024 = newComp.layers.addNull();\r\n_Mesh_1024.threeDLayer = true;\r\n_Mesh_1024.source.name = \"_Mesh_1024\";\r\n_Mesh_1024.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1024.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1024.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1025 = newComp.layers.addNull();\r\n_Mesh_1025.threeDLayer = true;\r\n_Mesh_1025.source.name = \"_Mesh_1025\";\r\n_Mesh_1025.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1025.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1025.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1026 = newComp.layers.addNull();\r\n_Mesh_1026.threeDLayer = true;\r\n_Mesh_1026.source.name = \"_Mesh_1026\";\r\n_Mesh_1026.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1026.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1026.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1027 = newComp.layers.addNull();\r\n_Mesh_1027.threeDLayer = true;\r\n_Mesh_1027.source.name = \"_Mesh_1027\";\r\n_Mesh_1027.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1027.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1027.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1020 = newComp.layers.addNull();\r\n_Mesh_1020.threeDLayer = true;\r\n_Mesh_1020.source.name = \"_Mesh_1020\";\r\n_Mesh_1020.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1020.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1020.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1021 = newComp.layers.addNull();\r\n_Mesh_1021.threeDLayer = true;\r\n_Mesh_1021.source.name = \"_Mesh_1021\";\r\n_Mesh_1021.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1021.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1021.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1022 = newComp.layers.addNull();\r\n_Mesh_1022.threeDLayer = true;\r\n_Mesh_1022.source.name = \"_Mesh_1022\";\r\n_Mesh_1022.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1022.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1022.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1023 = newComp.layers.addNull();\r\n_Mesh_1023.threeDLayer = true;\r\n_Mesh_1023.source.name = \"_Mesh_1023\";\r\n_Mesh_1023.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1023.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1023.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_817 = newComp.layers.addNull();\r\n_Mesh_817.threeDLayer = true;\r\n_Mesh_817.source.name = \"_Mesh_817\";\r\n_Mesh_817.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_817.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_817.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_816 = newComp.layers.addNull();\r\n_Mesh_816.threeDLayer = true;\r\n_Mesh_816.source.name = \"_Mesh_816\";\r\n_Mesh_816.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_816.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_816.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_815 = newComp.layers.addNull();\r\n_Mesh_815.threeDLayer = true;\r\n_Mesh_815.source.name = \"_Mesh_815\";\r\n_Mesh_815.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_815.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_815.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_814 = newComp.layers.addNull();\r\n_Mesh_814.threeDLayer = true;\r\n_Mesh_814.source.name = \"_Mesh_814\";\r\n_Mesh_814.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_814.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_814.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_813 = newComp.layers.addNull();\r\n_Mesh_813.threeDLayer = true;\r\n_Mesh_813.source.name = \"_Mesh_813\";\r\n_Mesh_813.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_813.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_813.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_812 = newComp.layers.addNull();\r\n_Mesh_812.threeDLayer = true;\r\n_Mesh_812.source.name = \"_Mesh_812\";\r\n_Mesh_812.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_812.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_812.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_811 = newComp.layers.addNull();\r\n_Mesh_811.threeDLayer = true;\r\n_Mesh_811.source.name = \"_Mesh_811\";\r\n_Mesh_811.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_811.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_811.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_810 = newComp.layers.addNull();\r\n_Mesh_810.threeDLayer = true;\r\n_Mesh_810.source.name = \"_Mesh_810\";\r\n_Mesh_810.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_810.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_810.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_819 = newComp.layers.addNull();\r\n_Mesh_819.threeDLayer = true;\r\n_Mesh_819.source.name = \"_Mesh_819\";\r\n_Mesh_819.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_819.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_819.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_818 = newComp.layers.addNull();\r\n_Mesh_818.threeDLayer = true;\r\n_Mesh_818.source.name = \"_Mesh_818\";\r\n_Mesh_818.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_818.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_818.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_259 = newComp.layers.addNull();\r\n_Mesh_259.threeDLayer = true;\r\n_Mesh_259.source.name = \"_Mesh_259\";\r\n_Mesh_259.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_259.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_259.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_258 = newComp.layers.addNull();\r\n_Mesh_258.threeDLayer = true;\r\n_Mesh_258.source.name = \"_Mesh_258\";\r\n_Mesh_258.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_258.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_258.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_255 = newComp.layers.addNull();\r\n_Mesh_255.threeDLayer = true;\r\n_Mesh_255.source.name = \"_Mesh_255\";\r\n_Mesh_255.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_255.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_255.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_254 = newComp.layers.addNull();\r\n_Mesh_254.threeDLayer = true;\r\n_Mesh_254.source.name = \"_Mesh_254\";\r\n_Mesh_254.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_254.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_254.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_257 = newComp.layers.addNull();\r\n_Mesh_257.threeDLayer = true;\r\n_Mesh_257.source.name = \"_Mesh_257\";\r\n_Mesh_257.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_257.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_257.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_256 = newComp.layers.addNull();\r\n_Mesh_256.threeDLayer = true;\r\n_Mesh_256.source.name = \"_Mesh_256\";\r\n_Mesh_256.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_256.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_256.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_251 = newComp.layers.addNull();\r\n_Mesh_251.threeDLayer = true;\r\n_Mesh_251.source.name = \"_Mesh_251\";\r\n_Mesh_251.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_251.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_251.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_250 = newComp.layers.addNull();\r\n_Mesh_250.threeDLayer = true;\r\n_Mesh_250.source.name = \"_Mesh_250\";\r\n_Mesh_250.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_250.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_250.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_253 = newComp.layers.addNull();\r\n_Mesh_253.threeDLayer = true;\r\n_Mesh_253.source.name = \"_Mesh_253\";\r\n_Mesh_253.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_253.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_253.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_252 = newComp.layers.addNull();\r\n_Mesh_252.threeDLayer = true;\r\n_Mesh_252.source.name = \"_Mesh_252\";\r\n_Mesh_252.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_252.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_252.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_499 = newComp.layers.addNull();\r\n_Mesh_499.threeDLayer = true;\r\n_Mesh_499.source.name = \"_Mesh_499\";\r\n_Mesh_499.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_499.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_499.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_498 = newComp.layers.addNull();\r\n_Mesh_498.threeDLayer = true;\r\n_Mesh_498.source.name = \"_Mesh_498\";\r\n_Mesh_498.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_498.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_498.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_493 = newComp.layers.addNull();\r\n_Mesh_493.threeDLayer = true;\r\n_Mesh_493.source.name = \"_Mesh_493\";\r\n_Mesh_493.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_493.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_493.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_492 = newComp.layers.addNull();\r\n_Mesh_492.threeDLayer = true;\r\n_Mesh_492.source.name = \"_Mesh_492\";\r\n_Mesh_492.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_492.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_492.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_491 = newComp.layers.addNull();\r\n_Mesh_491.threeDLayer = true;\r\n_Mesh_491.source.name = \"_Mesh_491\";\r\n_Mesh_491.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_491.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_491.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_490 = newComp.layers.addNull();\r\n_Mesh_490.threeDLayer = true;\r\n_Mesh_490.source.name = \"_Mesh_490\";\r\n_Mesh_490.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_490.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_490.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_497 = newComp.layers.addNull();\r\n_Mesh_497.threeDLayer = true;\r\n_Mesh_497.source.name = \"_Mesh_497\";\r\n_Mesh_497.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_497.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_497.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_496 = newComp.layers.addNull();\r\n_Mesh_496.threeDLayer = true;\r\n_Mesh_496.source.name = \"_Mesh_496\";\r\n_Mesh_496.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_496.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_496.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_495 = newComp.layers.addNull();\r\n_Mesh_495.threeDLayer = true;\r\n_Mesh_495.source.name = \"_Mesh_495\";\r\n_Mesh_495.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_495.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_495.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_494 = newComp.layers.addNull();\r\n_Mesh_494.threeDLayer = true;\r\n_Mesh_494.source.name = \"_Mesh_494\";\r\n_Mesh_494.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_494.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_494.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_679 = newComp.layers.addNull();\r\n_Mesh_679.threeDLayer = true;\r\n_Mesh_679.source.name = \"_Mesh_679\";\r\n_Mesh_679.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_679.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_679.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_678 = newComp.layers.addNull();\r\n_Mesh_678.threeDLayer = true;\r\n_Mesh_678.source.name = \"_Mesh_678\";\r\n_Mesh_678.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_678.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_678.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_677 = newComp.layers.addNull();\r\n_Mesh_677.threeDLayer = true;\r\n_Mesh_677.source.name = \"_Mesh_677\";\r\n_Mesh_677.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_677.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_677.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_676 = newComp.layers.addNull();\r\n_Mesh_676.threeDLayer = true;\r\n_Mesh_676.source.name = \"_Mesh_676\";\r\n_Mesh_676.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_676.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_676.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_675 = newComp.layers.addNull();\r\n_Mesh_675.threeDLayer = true;\r\n_Mesh_675.source.name = \"_Mesh_675\";\r\n_Mesh_675.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_675.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_675.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_674 = newComp.layers.addNull();\r\n_Mesh_674.threeDLayer = true;\r\n_Mesh_674.source.name = \"_Mesh_674\";\r\n_Mesh_674.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_674.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_674.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_673 = newComp.layers.addNull();\r\n_Mesh_673.threeDLayer = true;\r\n_Mesh_673.source.name = \"_Mesh_673\";\r\n_Mesh_673.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_673.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_673.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_672 = newComp.layers.addNull();\r\n_Mesh_672.threeDLayer = true;\r\n_Mesh_672.source.name = \"_Mesh_672\";\r\n_Mesh_672.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_672.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_672.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_671 = newComp.layers.addNull();\r\n_Mesh_671.threeDLayer = true;\r\n_Mesh_671.source.name = \"_Mesh_671\";\r\n_Mesh_671.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_671.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_671.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_670 = newComp.layers.addNull();\r\n_Mesh_670.threeDLayer = true;\r\n_Mesh_670.source.name = \"_Mesh_670\";\r\n_Mesh_670.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_670.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_670.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_075 = newComp.layers.addNull();\r\n_Mesh_075.threeDLayer = true;\r\n_Mesh_075.source.name = \"_Mesh_075\";\r\n_Mesh_075.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_075.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_075.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_074 = newComp.layers.addNull();\r\n_Mesh_074.threeDLayer = true;\r\n_Mesh_074.source.name = \"_Mesh_074\";\r\n_Mesh_074.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_074.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_074.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_077 = newComp.layers.addNull();\r\n_Mesh_077.threeDLayer = true;\r\n_Mesh_077.source.name = \"_Mesh_077\";\r\n_Mesh_077.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_077.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_077.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_076 = newComp.layers.addNull();\r\n_Mesh_076.threeDLayer = true;\r\n_Mesh_076.source.name = \"_Mesh_076\";\r\n_Mesh_076.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_076.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_076.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_071 = newComp.layers.addNull();\r\n_Mesh_071.threeDLayer = true;\r\n_Mesh_071.source.name = \"_Mesh_071\";\r\n_Mesh_071.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_071.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_071.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_070 = newComp.layers.addNull();\r\n_Mesh_070.threeDLayer = true;\r\n_Mesh_070.source.name = \"_Mesh_070\";\r\n_Mesh_070.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_070.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_070.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_073 = newComp.layers.addNull();\r\n_Mesh_073.threeDLayer = true;\r\n_Mesh_073.source.name = \"_Mesh_073\";\r\n_Mesh_073.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_073.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_073.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_072 = newComp.layers.addNull();\r\n_Mesh_072.threeDLayer = true;\r\n_Mesh_072.source.name = \"_Mesh_072\";\r\n_Mesh_072.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_072.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_072.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_079 = newComp.layers.addNull();\r\n_Mesh_079.threeDLayer = true;\r\n_Mesh_079.source.name = \"_Mesh_079\";\r\n_Mesh_079.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_079.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_079.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_078 = newComp.layers.addNull();\r\n_Mesh_078.threeDLayer = true;\r\n_Mesh_078.source.name = \"_Mesh_078\";\r\n_Mesh_078.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_078.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_078.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_109 = newComp.layers.addNull();\r\n_Mesh_109.threeDLayer = true;\r\n_Mesh_109.source.name = \"_Mesh_109\";\r\n_Mesh_109.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_109.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_109.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_108 = newComp.layers.addNull();\r\n_Mesh_108.threeDLayer = true;\r\n_Mesh_108.source.name = \"_Mesh_108\";\r\n_Mesh_108.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_108.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_108.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_101 = newComp.layers.addNull();\r\n_Mesh_101.threeDLayer = true;\r\n_Mesh_101.source.name = \"_Mesh_101\";\r\n_Mesh_101.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_101.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_101.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_100 = newComp.layers.addNull();\r\n_Mesh_100.threeDLayer = true;\r\n_Mesh_100.source.name = \"_Mesh_100\";\r\n_Mesh_100.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_100.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_100.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_103 = newComp.layers.addNull();\r\n_Mesh_103.threeDLayer = true;\r\n_Mesh_103.source.name = \"_Mesh_103\";\r\n_Mesh_103.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_103.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_103.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_102 = newComp.layers.addNull();\r\n_Mesh_102.threeDLayer = true;\r\n_Mesh_102.source.name = \"_Mesh_102\";\r\n_Mesh_102.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_102.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_102.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_105 = newComp.layers.addNull();\r\n_Mesh_105.threeDLayer = true;\r\n_Mesh_105.source.name = \"_Mesh_105\";\r\n_Mesh_105.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_105.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_105.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_104 = newComp.layers.addNull();\r\n_Mesh_104.threeDLayer = true;\r\n_Mesh_104.source.name = \"_Mesh_104\";\r\n_Mesh_104.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_104.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_104.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_107 = newComp.layers.addNull();\r\n_Mesh_107.threeDLayer = true;\r\n_Mesh_107.source.name = \"_Mesh_107\";\r\n_Mesh_107.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_107.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_107.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_106 = newComp.layers.addNull();\r\n_Mesh_106.threeDLayer = true;\r\n_Mesh_106.source.name = \"_Mesh_106\";\r\n_Mesh_106.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_106.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_106.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1495 = newComp.layers.addNull();\r\n_Mesh_1495.threeDLayer = true;\r\n_Mesh_1495.source.name = \"_Mesh_1495\";\r\n_Mesh_1495.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1495.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1495.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1494 = newComp.layers.addNull();\r\n_Mesh_1494.threeDLayer = true;\r\n_Mesh_1494.source.name = \"_Mesh_1494\";\r\n_Mesh_1494.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1494.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1494.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1497 = newComp.layers.addNull();\r\n_Mesh_1497.threeDLayer = true;\r\n_Mesh_1497.source.name = \"_Mesh_1497\";\r\n_Mesh_1497.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1497.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1497.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1496 = newComp.layers.addNull();\r\n_Mesh_1496.threeDLayer = true;\r\n_Mesh_1496.source.name = \"_Mesh_1496\";\r\n_Mesh_1496.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1496.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1496.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1491 = newComp.layers.addNull();\r\n_Mesh_1491.threeDLayer = true;\r\n_Mesh_1491.source.name = \"_Mesh_1491\";\r\n_Mesh_1491.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1491.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1491.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1490 = newComp.layers.addNull();\r\n_Mesh_1490.threeDLayer = true;\r\n_Mesh_1490.source.name = \"_Mesh_1490\";\r\n_Mesh_1490.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1490.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1490.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1493 = newComp.layers.addNull();\r\n_Mesh_1493.threeDLayer = true;\r\n_Mesh_1493.source.name = \"_Mesh_1493\";\r\n_Mesh_1493.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1493.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1493.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1492 = newComp.layers.addNull();\r\n_Mesh_1492.threeDLayer = true;\r\n_Mesh_1492.source.name = \"_Mesh_1492\";\r\n_Mesh_1492.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1492.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1492.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1499 = newComp.layers.addNull();\r\n_Mesh_1499.threeDLayer = true;\r\n_Mesh_1499.source.name = \"_Mesh_1499\";\r\n_Mesh_1499.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1499.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1499.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1498 = newComp.layers.addNull();\r\n_Mesh_1498.threeDLayer = true;\r\n_Mesh_1498.source.name = \"_Mesh_1498\";\r\n_Mesh_1498.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1498.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1498.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1367 = newComp.layers.addNull();\r\n_Mesh_1367.threeDLayer = true;\r\n_Mesh_1367.source.name = \"_Mesh_1367\";\r\n_Mesh_1367.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1367.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1367.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1366 = newComp.layers.addNull();\r\n_Mesh_1366.threeDLayer = true;\r\n_Mesh_1366.source.name = \"_Mesh_1366\";\r\n_Mesh_1366.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1366.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1366.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1365 = newComp.layers.addNull();\r\n_Mesh_1365.threeDLayer = true;\r\n_Mesh_1365.source.name = \"_Mesh_1365\";\r\n_Mesh_1365.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1365.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1365.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1364 = newComp.layers.addNull();\r\n_Mesh_1364.threeDLayer = true;\r\n_Mesh_1364.source.name = \"_Mesh_1364\";\r\n_Mesh_1364.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1364.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1364.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1363 = newComp.layers.addNull();\r\n_Mesh_1363.threeDLayer = true;\r\n_Mesh_1363.source.name = \"_Mesh_1363\";\r\n_Mesh_1363.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1363.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1363.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1362 = newComp.layers.addNull();\r\n_Mesh_1362.threeDLayer = true;\r\n_Mesh_1362.source.name = \"_Mesh_1362\";\r\n_Mesh_1362.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1362.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1362.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1361 = newComp.layers.addNull();\r\n_Mesh_1361.threeDLayer = true;\r\n_Mesh_1361.source.name = \"_Mesh_1361\";\r\n_Mesh_1361.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1361.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1361.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1360 = newComp.layers.addNull();\r\n_Mesh_1360.threeDLayer = true;\r\n_Mesh_1360.source.name = \"_Mesh_1360\";\r\n_Mesh_1360.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1360.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1360.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1369 = newComp.layers.addNull();\r\n_Mesh_1369.threeDLayer = true;\r\n_Mesh_1369.source.name = \"_Mesh_1369\";\r\n_Mesh_1369.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1369.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1369.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1368 = newComp.layers.addNull();\r\n_Mesh_1368.threeDLayer = true;\r\n_Mesh_1368.source.name = \"_Mesh_1368\";\r\n_Mesh_1368.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1368.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1368.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1149 = newComp.layers.addNull();\r\n_Mesh_1149.threeDLayer = true;\r\n_Mesh_1149.source.name = \"_Mesh_1149\";\r\n_Mesh_1149.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1149.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1149.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1148 = newComp.layers.addNull();\r\n_Mesh_1148.threeDLayer = true;\r\n_Mesh_1148.source.name = \"_Mesh_1148\";\r\n_Mesh_1148.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1148.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1148.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1147 = newComp.layers.addNull();\r\n_Mesh_1147.threeDLayer = true;\r\n_Mesh_1147.source.name = \"_Mesh_1147\";\r\n_Mesh_1147.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1147.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1147.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1146 = newComp.layers.addNull();\r\n_Mesh_1146.threeDLayer = true;\r\n_Mesh_1146.source.name = \"_Mesh_1146\";\r\n_Mesh_1146.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1146.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1146.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1145 = newComp.layers.addNull();\r\n_Mesh_1145.threeDLayer = true;\r\n_Mesh_1145.source.name = \"_Mesh_1145\";\r\n_Mesh_1145.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1145.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1145.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1144 = newComp.layers.addNull();\r\n_Mesh_1144.threeDLayer = true;\r\n_Mesh_1144.source.name = \"_Mesh_1144\";\r\n_Mesh_1144.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1144.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1144.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1143 = newComp.layers.addNull();\r\n_Mesh_1143.threeDLayer = true;\r\n_Mesh_1143.source.name = \"_Mesh_1143\";\r\n_Mesh_1143.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1143.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1143.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1142 = newComp.layers.addNull();\r\n_Mesh_1142.threeDLayer = true;\r\n_Mesh_1142.source.name = \"_Mesh_1142\";\r\n_Mesh_1142.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1142.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1142.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1141 = newComp.layers.addNull();\r\n_Mesh_1141.threeDLayer = true;\r\n_Mesh_1141.source.name = \"_Mesh_1141\";\r\n_Mesh_1141.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1141.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1141.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1140 = newComp.layers.addNull();\r\n_Mesh_1140.threeDLayer = true;\r\n_Mesh_1140.source.name = \"_Mesh_1140\";\r\n_Mesh_1140.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1140.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1140.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1389 = newComp.layers.addNull();\r\n_Mesh_1389.threeDLayer = true;\r\n_Mesh_1389.source.name = \"_Mesh_1389\";\r\n_Mesh_1389.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1389.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1389.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1388 = newComp.layers.addNull();\r\n_Mesh_1388.threeDLayer = true;\r\n_Mesh_1388.source.name = \"_Mesh_1388\";\r\n_Mesh_1388.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1388.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1388.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1381 = newComp.layers.addNull();\r\n_Mesh_1381.threeDLayer = true;\r\n_Mesh_1381.source.name = \"_Mesh_1381\";\r\n_Mesh_1381.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1381.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1381.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1380 = newComp.layers.addNull();\r\n_Mesh_1380.threeDLayer = true;\r\n_Mesh_1380.source.name = \"_Mesh_1380\";\r\n_Mesh_1380.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1380.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1380.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1383 = newComp.layers.addNull();\r\n_Mesh_1383.threeDLayer = true;\r\n_Mesh_1383.source.name = \"_Mesh_1383\";\r\n_Mesh_1383.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1383.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1383.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1382 = newComp.layers.addNull();\r\n_Mesh_1382.threeDLayer = true;\r\n_Mesh_1382.source.name = \"_Mesh_1382\";\r\n_Mesh_1382.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1382.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1382.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1385 = newComp.layers.addNull();\r\n_Mesh_1385.threeDLayer = true;\r\n_Mesh_1385.source.name = \"_Mesh_1385\";\r\n_Mesh_1385.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1385.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1385.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1384 = newComp.layers.addNull();\r\n_Mesh_1384.threeDLayer = true;\r\n_Mesh_1384.source.name = \"_Mesh_1384\";\r\n_Mesh_1384.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1384.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1384.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1387 = newComp.layers.addNull();\r\n_Mesh_1387.threeDLayer = true;\r\n_Mesh_1387.source.name = \"_Mesh_1387\";\r\n_Mesh_1387.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1387.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1387.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1386 = newComp.layers.addNull();\r\n_Mesh_1386.threeDLayer = true;\r\n_Mesh_1386.source.name = \"_Mesh_1386\";\r\n_Mesh_1386.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1386.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1386.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1033 = newComp.layers.addNull();\r\n_Mesh_1033.threeDLayer = true;\r\n_Mesh_1033.source.name = \"_Mesh_1033\";\r\n_Mesh_1033.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1033.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1033.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1032 = newComp.layers.addNull();\r\n_Mesh_1032.threeDLayer = true;\r\n_Mesh_1032.source.name = \"_Mesh_1032\";\r\n_Mesh_1032.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1032.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1032.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1031 = newComp.layers.addNull();\r\n_Mesh_1031.threeDLayer = true;\r\n_Mesh_1031.source.name = \"_Mesh_1031\";\r\n_Mesh_1031.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1031.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1031.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1030 = newComp.layers.addNull();\r\n_Mesh_1030.threeDLayer = true;\r\n_Mesh_1030.source.name = \"_Mesh_1030\";\r\n_Mesh_1030.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1030.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1030.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1037 = newComp.layers.addNull();\r\n_Mesh_1037.threeDLayer = true;\r\n_Mesh_1037.source.name = \"_Mesh_1037\";\r\n_Mesh_1037.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1037.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1037.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1036 = newComp.layers.addNull();\r\n_Mesh_1036.threeDLayer = true;\r\n_Mesh_1036.source.name = \"_Mesh_1036\";\r\n_Mesh_1036.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1036.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1036.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1035 = newComp.layers.addNull();\r\n_Mesh_1035.threeDLayer = true;\r\n_Mesh_1035.source.name = \"_Mesh_1035\";\r\n_Mesh_1035.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1035.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1035.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1034 = newComp.layers.addNull();\r\n_Mesh_1034.threeDLayer = true;\r\n_Mesh_1034.source.name = \"_Mesh_1034\";\r\n_Mesh_1034.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1034.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1034.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1039 = newComp.layers.addNull();\r\n_Mesh_1039.threeDLayer = true;\r\n_Mesh_1039.source.name = \"_Mesh_1039\";\r\n_Mesh_1039.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1039.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1039.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1038 = newComp.layers.addNull();\r\n_Mesh_1038.threeDLayer = true;\r\n_Mesh_1038.source.name = \"_Mesh_1038\";\r\n_Mesh_1038.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1038.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1038.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_248 = newComp.layers.addNull();\r\n_Mesh_248.threeDLayer = true;\r\n_Mesh_248.source.name = \"_Mesh_248\";\r\n_Mesh_248.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_248.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_248.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_249 = newComp.layers.addNull();\r\n_Mesh_249.threeDLayer = true;\r\n_Mesh_249.source.name = \"_Mesh_249\";\r\n_Mesh_249.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_249.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_249.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_246 = newComp.layers.addNull();\r\n_Mesh_246.threeDLayer = true;\r\n_Mesh_246.source.name = \"_Mesh_246\";\r\n_Mesh_246.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_246.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_246.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_247 = newComp.layers.addNull();\r\n_Mesh_247.threeDLayer = true;\r\n_Mesh_247.source.name = \"_Mesh_247\";\r\n_Mesh_247.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_247.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_247.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_244 = newComp.layers.addNull();\r\n_Mesh_244.threeDLayer = true;\r\n_Mesh_244.source.name = \"_Mesh_244\";\r\n_Mesh_244.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_244.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_244.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_245 = newComp.layers.addNull();\r\n_Mesh_245.threeDLayer = true;\r\n_Mesh_245.source.name = \"_Mesh_245\";\r\n_Mesh_245.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_245.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_245.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_242 = newComp.layers.addNull();\r\n_Mesh_242.threeDLayer = true;\r\n_Mesh_242.source.name = \"_Mesh_242\";\r\n_Mesh_242.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_242.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_242.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_243 = newComp.layers.addNull();\r\n_Mesh_243.threeDLayer = true;\r\n_Mesh_243.source.name = \"_Mesh_243\";\r\n_Mesh_243.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_243.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_243.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_240 = newComp.layers.addNull();\r\n_Mesh_240.threeDLayer = true;\r\n_Mesh_240.source.name = \"_Mesh_240\";\r\n_Mesh_240.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_240.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_240.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_241 = newComp.layers.addNull();\r\n_Mesh_241.threeDLayer = true;\r\n_Mesh_241.source.name = \"_Mesh_241\";\r\n_Mesh_241.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_241.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_241.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_488 = newComp.layers.addNull();\r\n_Mesh_488.threeDLayer = true;\r\n_Mesh_488.source.name = \"_Mesh_488\";\r\n_Mesh_488.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_488.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_488.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_489 = newComp.layers.addNull();\r\n_Mesh_489.threeDLayer = true;\r\n_Mesh_489.source.name = \"_Mesh_489\";\r\n_Mesh_489.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_489.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_489.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_484 = newComp.layers.addNull();\r\n_Mesh_484.threeDLayer = true;\r\n_Mesh_484.source.name = \"_Mesh_484\";\r\n_Mesh_484.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_484.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_484.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_485 = newComp.layers.addNull();\r\n_Mesh_485.threeDLayer = true;\r\n_Mesh_485.source.name = \"_Mesh_485\";\r\n_Mesh_485.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_485.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_485.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_486 = newComp.layers.addNull();\r\n_Mesh_486.threeDLayer = true;\r\n_Mesh_486.source.name = \"_Mesh_486\";\r\n_Mesh_486.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_486.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_486.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_487 = newComp.layers.addNull();\r\n_Mesh_487.threeDLayer = true;\r\n_Mesh_487.source.name = \"_Mesh_487\";\r\n_Mesh_487.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_487.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_487.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_480 = newComp.layers.addNull();\r\n_Mesh_480.threeDLayer = true;\r\n_Mesh_480.source.name = \"_Mesh_480\";\r\n_Mesh_480.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_480.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_480.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_481 = newComp.layers.addNull();\r\n_Mesh_481.threeDLayer = true;\r\n_Mesh_481.source.name = \"_Mesh_481\";\r\n_Mesh_481.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_481.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_481.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_482 = newComp.layers.addNull();\r\n_Mesh_482.threeDLayer = true;\r\n_Mesh_482.source.name = \"_Mesh_482\";\r\n_Mesh_482.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_482.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_482.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_483 = newComp.layers.addNull();\r\n_Mesh_483.threeDLayer = true;\r\n_Mesh_483.source.name = \"_Mesh_483\";\r\n_Mesh_483.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_483.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_483.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_808 = newComp.layers.addNull();\r\n_Mesh_808.threeDLayer = true;\r\n_Mesh_808.source.name = \"_Mesh_808\";\r\n_Mesh_808.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_808.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_808.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_809 = newComp.layers.addNull();\r\n_Mesh_809.threeDLayer = true;\r\n_Mesh_809.source.name = \"_Mesh_809\";\r\n_Mesh_809.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_809.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_809.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_800 = newComp.layers.addNull();\r\n_Mesh_800.threeDLayer = true;\r\n_Mesh_800.source.name = \"_Mesh_800\";\r\n_Mesh_800.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_800.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_800.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_801 = newComp.layers.addNull();\r\n_Mesh_801.threeDLayer = true;\r\n_Mesh_801.source.name = \"_Mesh_801\";\r\n_Mesh_801.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_801.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_801.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_802 = newComp.layers.addNull();\r\n_Mesh_802.threeDLayer = true;\r\n_Mesh_802.source.name = \"_Mesh_802\";\r\n_Mesh_802.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_802.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_802.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_803 = newComp.layers.addNull();\r\n_Mesh_803.threeDLayer = true;\r\n_Mesh_803.source.name = \"_Mesh_803\";\r\n_Mesh_803.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_803.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_803.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_804 = newComp.layers.addNull();\r\n_Mesh_804.threeDLayer = true;\r\n_Mesh_804.source.name = \"_Mesh_804\";\r\n_Mesh_804.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_804.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_804.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_805 = newComp.layers.addNull();\r\n_Mesh_805.threeDLayer = true;\r\n_Mesh_805.source.name = \"_Mesh_805\";\r\n_Mesh_805.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_805.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_805.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_806 = newComp.layers.addNull();\r\n_Mesh_806.threeDLayer = true;\r\n_Mesh_806.source.name = \"_Mesh_806\";\r\n_Mesh_806.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_806.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_806.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_807 = newComp.layers.addNull();\r\n_Mesh_807.threeDLayer = true;\r\n_Mesh_807.source.name = \"_Mesh_807\";\r\n_Mesh_807.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_807.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_807.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_660 = newComp.layers.addNull();\r\n_Mesh_660.threeDLayer = true;\r\n_Mesh_660.source.name = \"_Mesh_660\";\r\n_Mesh_660.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_660.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_660.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_661 = newComp.layers.addNull();\r\n_Mesh_661.threeDLayer = true;\r\n_Mesh_661.source.name = \"_Mesh_661\";\r\n_Mesh_661.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_661.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_661.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_662 = newComp.layers.addNull();\r\n_Mesh_662.threeDLayer = true;\r\n_Mesh_662.source.name = \"_Mesh_662\";\r\n_Mesh_662.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_662.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_662.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_663 = newComp.layers.addNull();\r\n_Mesh_663.threeDLayer = true;\r\n_Mesh_663.source.name = \"_Mesh_663\";\r\n_Mesh_663.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_663.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_663.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_664 = newComp.layers.addNull();\r\n_Mesh_664.threeDLayer = true;\r\n_Mesh_664.source.name = \"_Mesh_664\";\r\n_Mesh_664.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_664.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_664.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_665 = newComp.layers.addNull();\r\n_Mesh_665.threeDLayer = true;\r\n_Mesh_665.source.name = \"_Mesh_665\";\r\n_Mesh_665.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_665.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_665.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_666 = newComp.layers.addNull();\r\n_Mesh_666.threeDLayer = true;\r\n_Mesh_666.source.name = \"_Mesh_666\";\r\n_Mesh_666.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_666.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_666.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_667 = newComp.layers.addNull();\r\n_Mesh_667.threeDLayer = true;\r\n_Mesh_667.source.name = \"_Mesh_667\";\r\n_Mesh_667.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_667.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_667.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_668 = newComp.layers.addNull();\r\n_Mesh_668.threeDLayer = true;\r\n_Mesh_668.source.name = \"_Mesh_668\";\r\n_Mesh_668.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_668.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_668.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_669 = newComp.layers.addNull();\r\n_Mesh_669.threeDLayer = true;\r\n_Mesh_669.source.name = \"_Mesh_669\";\r\n_Mesh_669.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_669.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_669.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_066 = newComp.layers.addNull();\r\n_Mesh_066.threeDLayer = true;\r\n_Mesh_066.source.name = \"_Mesh_066\";\r\n_Mesh_066.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_066.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_066.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_067 = newComp.layers.addNull();\r\n_Mesh_067.threeDLayer = true;\r\n_Mesh_067.source.name = \"_Mesh_067\";\r\n_Mesh_067.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_067.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_067.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_064 = newComp.layers.addNull();\r\n_Mesh_064.threeDLayer = true;\r\n_Mesh_064.source.name = \"_Mesh_064\";\r\n_Mesh_064.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_064.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_064.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_065 = newComp.layers.addNull();\r\n_Mesh_065.threeDLayer = true;\r\n_Mesh_065.source.name = \"_Mesh_065\";\r\n_Mesh_065.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_065.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_065.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_062 = newComp.layers.addNull();\r\n_Mesh_062.threeDLayer = true;\r\n_Mesh_062.source.name = \"_Mesh_062\";\r\n_Mesh_062.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_062.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_062.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_063 = newComp.layers.addNull();\r\n_Mesh_063.threeDLayer = true;\r\n_Mesh_063.source.name = \"_Mesh_063\";\r\n_Mesh_063.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_063.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_063.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_060 = newComp.layers.addNull();\r\n_Mesh_060.threeDLayer = true;\r\n_Mesh_060.source.name = \"_Mesh_060\";\r\n_Mesh_060.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_060.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_060.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_068 = newComp.layers.addNull();\r\n_Mesh_068.threeDLayer = true;\r\n_Mesh_068.source.name = \"_Mesh_068\";\r\n_Mesh_068.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_068.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_068.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_069 = newComp.layers.addNull();\r\n_Mesh_069.threeDLayer = true;\r\n_Mesh_069.source.name = \"_Mesh_069\";\r\n_Mesh_069.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_069.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_069.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_118 = newComp.layers.addNull();\r\n_Mesh_118.threeDLayer = true;\r\n_Mesh_118.source.name = \"_Mesh_118\";\r\n_Mesh_118.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_118.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_118.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_119 = newComp.layers.addNull();\r\n_Mesh_119.threeDLayer = true;\r\n_Mesh_119.source.name = \"_Mesh_119\";\r\n_Mesh_119.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_119.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_119.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_112 = newComp.layers.addNull();\r\n_Mesh_112.threeDLayer = true;\r\n_Mesh_112.source.name = \"_Mesh_112\";\r\n_Mesh_112.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_112.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_112.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_113 = newComp.layers.addNull();\r\n_Mesh_113.threeDLayer = true;\r\n_Mesh_113.source.name = \"_Mesh_113\";\r\n_Mesh_113.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_113.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_113.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_110 = newComp.layers.addNull();\r\n_Mesh_110.threeDLayer = true;\r\n_Mesh_110.source.name = \"_Mesh_110\";\r\n_Mesh_110.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_110.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_110.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_111 = newComp.layers.addNull();\r\n_Mesh_111.threeDLayer = true;\r\n_Mesh_111.source.name = \"_Mesh_111\";\r\n_Mesh_111.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_111.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_111.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_116 = newComp.layers.addNull();\r\n_Mesh_116.threeDLayer = true;\r\n_Mesh_116.source.name = \"_Mesh_116\";\r\n_Mesh_116.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_116.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_116.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_117 = newComp.layers.addNull();\r\n_Mesh_117.threeDLayer = true;\r\n_Mesh_117.source.name = \"_Mesh_117\";\r\n_Mesh_117.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_117.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_117.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_114 = newComp.layers.addNull();\r\n_Mesh_114.threeDLayer = true;\r\n_Mesh_114.source.name = \"_Mesh_114\";\r\n_Mesh_114.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_114.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_114.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_115 = newComp.layers.addNull();\r\n_Mesh_115.threeDLayer = true;\r\n_Mesh_115.source.name = \"_Mesh_115\";\r\n_Mesh_115.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_115.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_115.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_650 = newComp.layers.addNull();\r\n_Mesh_650.threeDLayer = true;\r\n_Mesh_650.source.name = \"_Mesh_650\";\r\n_Mesh_650.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_650.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_650.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1047 = newComp.layers.addNull();\r\n_Mesh_1047.threeDLayer = true;\r\n_Mesh_1047.source.name = \"_Mesh_1047\";\r\n_Mesh_1047.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1047.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1047.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1044 = newComp.layers.addNull();\r\n_Mesh_1044.threeDLayer = true;\r\n_Mesh_1044.source.name = \"_Mesh_1044\";\r\n_Mesh_1044.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1044.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1044.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1045 = newComp.layers.addNull();\r\n_Mesh_1045.threeDLayer = true;\r\n_Mesh_1045.source.name = \"_Mesh_1045\";\r\n_Mesh_1045.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1045.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1045.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1042 = newComp.layers.addNull();\r\n_Mesh_1042.threeDLayer = true;\r\n_Mesh_1042.source.name = \"_Mesh_1042\";\r\n_Mesh_1042.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1042.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1042.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1043 = newComp.layers.addNull();\r\n_Mesh_1043.threeDLayer = true;\r\n_Mesh_1043.source.name = \"_Mesh_1043\";\r\n_Mesh_1043.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1043.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1043.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1040 = newComp.layers.addNull();\r\n_Mesh_1040.threeDLayer = true;\r\n_Mesh_1040.source.name = \"_Mesh_1040\";\r\n_Mesh_1040.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1040.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1040.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1041 = newComp.layers.addNull();\r\n_Mesh_1041.threeDLayer = true;\r\n_Mesh_1041.source.name = \"_Mesh_1041\";\r\n_Mesh_1041.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1041.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1041.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1048 = newComp.layers.addNull();\r\n_Mesh_1048.threeDLayer = true;\r\n_Mesh_1048.source.name = \"_Mesh_1048\";\r\n_Mesh_1048.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1048.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1048.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1049 = newComp.layers.addNull();\r\n_Mesh_1049.threeDLayer = true;\r\n_Mesh_1049.source.name = \"_Mesh_1049\";\r\n_Mesh_1049.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1049.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1049.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_901 = newComp.layers.addNull();\r\n_Mesh_901.threeDLayer = true;\r\n_Mesh_901.source.name = \"_Mesh_901\";\r\n_Mesh_901.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_901.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_901.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_900 = newComp.layers.addNull();\r\n_Mesh_900.threeDLayer = true;\r\n_Mesh_900.source.name = \"_Mesh_900\";\r\n_Mesh_900.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_900.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_900.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_271 = newComp.layers.addNull();\r\n_Mesh_271.threeDLayer = true;\r\n_Mesh_271.source.name = \"_Mesh_271\";\r\n_Mesh_271.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_271.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_271.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_902 = newComp.layers.addNull();\r\n_Mesh_902.threeDLayer = true;\r\n_Mesh_902.source.name = \"_Mesh_902\";\r\n_Mesh_902.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_902.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_902.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_905 = newComp.layers.addNull();\r\n_Mesh_905.threeDLayer = true;\r\n_Mesh_905.source.name = \"_Mesh_905\";\r\n_Mesh_905.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_905.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_905.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_904 = newComp.layers.addNull();\r\n_Mesh_904.threeDLayer = true;\r\n_Mesh_904.source.name = \"_Mesh_904\";\r\n_Mesh_904.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_904.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_904.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_907 = newComp.layers.addNull();\r\n_Mesh_907.threeDLayer = true;\r\n_Mesh_907.source.name = \"_Mesh_907\";\r\n_Mesh_907.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_907.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_907.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_906 = newComp.layers.addNull();\r\n_Mesh_906.threeDLayer = true;\r\n_Mesh_906.source.name = \"_Mesh_906\";\r\n_Mesh_906.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_906.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_906.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_273 = newComp.layers.addNull();\r\n_Mesh_273.threeDLayer = true;\r\n_Mesh_273.source.name = \"_Mesh_273\";\r\n_Mesh_273.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_273.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_273.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_272 = newComp.layers.addNull();\r\n_Mesh_272.threeDLayer = true;\r\n_Mesh_272.source.name = \"_Mesh_272\";\r\n_Mesh_272.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_272.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_272.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_903 = newComp.layers.addNull();\r\n_Mesh_903.threeDLayer = true;\r\n_Mesh_903.source.name = \"_Mesh_903\";\r\n_Mesh_903.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_903.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_903.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_270 = newComp.layers.addNull();\r\n_Mesh_270.threeDLayer = true;\r\n_Mesh_270.source.name = \"_Mesh_270\";\r\n_Mesh_270.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_270.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_270.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_277 = newComp.layers.addNull();\r\n_Mesh_277.threeDLayer = true;\r\n_Mesh_277.source.name = \"_Mesh_277\";\r\n_Mesh_277.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_277.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_277.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_276 = newComp.layers.addNull();\r\n_Mesh_276.threeDLayer = true;\r\n_Mesh_276.source.name = \"_Mesh_276\";\r\n_Mesh_276.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_276.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_276.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_275 = newComp.layers.addNull();\r\n_Mesh_275.threeDLayer = true;\r\n_Mesh_275.source.name = \"_Mesh_275\";\r\n_Mesh_275.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_275.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_275.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_274 = newComp.layers.addNull();\r\n_Mesh_274.threeDLayer = true;\r\n_Mesh_274.source.name = \"_Mesh_274\";\r\n_Mesh_274.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_274.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_274.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_909 = newComp.layers.addNull();\r\n_Mesh_909.threeDLayer = true;\r\n_Mesh_909.source.name = \"_Mesh_909\";\r\n_Mesh_909.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_909.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_909.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_908 = newComp.layers.addNull();\r\n_Mesh_908.threeDLayer = true;\r\n_Mesh_908.source.name = \"_Mesh_908\";\r\n_Mesh_908.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_908.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_908.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_279 = newComp.layers.addNull();\r\n_Mesh_279.threeDLayer = true;\r\n_Mesh_279.source.name = \"_Mesh_279\";\r\n_Mesh_279.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_279.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_279.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_278 = newComp.layers.addNull();\r\n_Mesh_278.threeDLayer = true;\r\n_Mesh_278.source.name = \"_Mesh_278\";\r\n_Mesh_278.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_278.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_278.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_471 = newComp.layers.addNull();\r\n_Mesh_471.threeDLayer = true;\r\n_Mesh_471.source.name = \"_Mesh_471\";\r\n_Mesh_471.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_471.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_471.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_470 = newComp.layers.addNull();\r\n_Mesh_470.threeDLayer = true;\r\n_Mesh_470.source.name = \"_Mesh_470\";\r\n_Mesh_470.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_470.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_470.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_473 = newComp.layers.addNull();\r\n_Mesh_473.threeDLayer = true;\r\n_Mesh_473.source.name = \"_Mesh_473\";\r\n_Mesh_473.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_473.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_473.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_472 = newComp.layers.addNull();\r\n_Mesh_472.threeDLayer = true;\r\n_Mesh_472.source.name = \"_Mesh_472\";\r\n_Mesh_472.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_472.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_472.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_475 = newComp.layers.addNull();\r\n_Mesh_475.threeDLayer = true;\r\n_Mesh_475.source.name = \"_Mesh_475\";\r\n_Mesh_475.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_475.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_475.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_474 = newComp.layers.addNull();\r\n_Mesh_474.threeDLayer = true;\r\n_Mesh_474.source.name = \"_Mesh_474\";\r\n_Mesh_474.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_474.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_474.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_477 = newComp.layers.addNull();\r\n_Mesh_477.threeDLayer = true;\r\n_Mesh_477.source.name = \"_Mesh_477\";\r\n_Mesh_477.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_477.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_477.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_476 = newComp.layers.addNull();\r\n_Mesh_476.threeDLayer = true;\r\n_Mesh_476.source.name = \"_Mesh_476\";\r\n_Mesh_476.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_476.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_476.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_479 = newComp.layers.addNull();\r\n_Mesh_479.threeDLayer = true;\r\n_Mesh_479.source.name = \"_Mesh_479\";\r\n_Mesh_479.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_479.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_479.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_478 = newComp.layers.addNull();\r\n_Mesh_478.threeDLayer = true;\r\n_Mesh_478.source.name = \"_Mesh_478\";\r\n_Mesh_478.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_478.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_478.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_090 = newComp.layers.addNull();\r\n_Mesh_090.threeDLayer = true;\r\n_Mesh_090.source.name = \"_Mesh_090\";\r\n_Mesh_090.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_090.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_090.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_879 = newComp.layers.addNull();\r\n_Mesh_879.threeDLayer = true;\r\n_Mesh_879.source.name = \"_Mesh_879\";\r\n_Mesh_879.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_879.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_879.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_878 = newComp.layers.addNull();\r\n_Mesh_878.threeDLayer = true;\r\n_Mesh_878.source.name = \"_Mesh_878\";\r\n_Mesh_878.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_878.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_878.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_875 = newComp.layers.addNull();\r\n_Mesh_875.threeDLayer = true;\r\n_Mesh_875.source.name = \"_Mesh_875\";\r\n_Mesh_875.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_875.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_875.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_874 = newComp.layers.addNull();\r\n_Mesh_874.threeDLayer = true;\r\n_Mesh_874.source.name = \"_Mesh_874\";\r\n_Mesh_874.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_874.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_874.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_877 = newComp.layers.addNull();\r\n_Mesh_877.threeDLayer = true;\r\n_Mesh_877.source.name = \"_Mesh_877\";\r\n_Mesh_877.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_877.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_877.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_876 = newComp.layers.addNull();\r\n_Mesh_876.threeDLayer = true;\r\n_Mesh_876.source.name = \"_Mesh_876\";\r\n_Mesh_876.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_876.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_876.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_871 = newComp.layers.addNull();\r\n_Mesh_871.threeDLayer = true;\r\n_Mesh_871.source.name = \"_Mesh_871\";\r\n_Mesh_871.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_871.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_871.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_870 = newComp.layers.addNull();\r\n_Mesh_870.threeDLayer = true;\r\n_Mesh_870.source.name = \"_Mesh_870\";\r\n_Mesh_870.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_870.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_870.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_873 = newComp.layers.addNull();\r\n_Mesh_873.threeDLayer = true;\r\n_Mesh_873.source.name = \"_Mesh_873\";\r\n_Mesh_873.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_873.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_873.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_872 = newComp.layers.addNull();\r\n_Mesh_872.threeDLayer = true;\r\n_Mesh_872.source.name = \"_Mesh_872\";\r\n_Mesh_872.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_872.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_872.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_615 = newComp.layers.addNull();\r\n_Mesh_615.threeDLayer = true;\r\n_Mesh_615.source.name = \"_Mesh_615\";\r\n_Mesh_615.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_615.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_615.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_614 = newComp.layers.addNull();\r\n_Mesh_614.threeDLayer = true;\r\n_Mesh_614.source.name = \"_Mesh_614\";\r\n_Mesh_614.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_614.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_614.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_617 = newComp.layers.addNull();\r\n_Mesh_617.threeDLayer = true;\r\n_Mesh_617.source.name = \"_Mesh_617\";\r\n_Mesh_617.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_617.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_617.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_616 = newComp.layers.addNull();\r\n_Mesh_616.threeDLayer = true;\r\n_Mesh_616.source.name = \"_Mesh_616\";\r\n_Mesh_616.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_616.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_616.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_611 = newComp.layers.addNull();\r\n_Mesh_611.threeDLayer = true;\r\n_Mesh_611.source.name = \"_Mesh_611\";\r\n_Mesh_611.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_611.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_611.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_610 = newComp.layers.addNull();\r\n_Mesh_610.threeDLayer = true;\r\n_Mesh_610.source.name = \"_Mesh_610\";\r\n_Mesh_610.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_610.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_610.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_613 = newComp.layers.addNull();\r\n_Mesh_613.threeDLayer = true;\r\n_Mesh_613.source.name = \"_Mesh_613\";\r\n_Mesh_613.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_613.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_613.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_612 = newComp.layers.addNull();\r\n_Mesh_612.threeDLayer = true;\r\n_Mesh_612.source.name = \"_Mesh_612\";\r\n_Mesh_612.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_612.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_612.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_619 = newComp.layers.addNull();\r\n_Mesh_619.threeDLayer = true;\r\n_Mesh_619.source.name = \"_Mesh_619\";\r\n_Mesh_619.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_619.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_619.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_618 = newComp.layers.addNull();\r\n_Mesh_618.threeDLayer = true;\r\n_Mesh_618.source.name = \"_Mesh_618\";\r\n_Mesh_618.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_618.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_618.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_585 = newComp.layers.addNull();\r\n_Mesh_585.threeDLayer = true;\r\n_Mesh_585.source.name = \"_Mesh_585\";\r\n_Mesh_585.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_585.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_585.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_584 = newComp.layers.addNull();\r\n_Mesh_584.threeDLayer = true;\r\n_Mesh_584.source.name = \"_Mesh_584\";\r\n_Mesh_584.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_584.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_584.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_587 = newComp.layers.addNull();\r\n_Mesh_587.threeDLayer = true;\r\n_Mesh_587.source.name = \"_Mesh_587\";\r\n_Mesh_587.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_587.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_587.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_586 = newComp.layers.addNull();\r\n_Mesh_586.threeDLayer = true;\r\n_Mesh_586.source.name = \"_Mesh_586\";\r\n_Mesh_586.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_586.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_586.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_581 = newComp.layers.addNull();\r\n_Mesh_581.threeDLayer = true;\r\n_Mesh_581.source.name = \"_Mesh_581\";\r\n_Mesh_581.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_581.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_581.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_580 = newComp.layers.addNull();\r\n_Mesh_580.threeDLayer = true;\r\n_Mesh_580.source.name = \"_Mesh_580\";\r\n_Mesh_580.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_580.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_580.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_583 = newComp.layers.addNull();\r\n_Mesh_583.threeDLayer = true;\r\n_Mesh_583.source.name = \"_Mesh_583\";\r\n_Mesh_583.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_583.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_583.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_582 = newComp.layers.addNull();\r\n_Mesh_582.threeDLayer = true;\r\n_Mesh_582.source.name = \"_Mesh_582\";\r\n_Mesh_582.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_582.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_582.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_589 = newComp.layers.addNull();\r\n_Mesh_589.threeDLayer = true;\r\n_Mesh_589.source.name = \"_Mesh_589\";\r\n_Mesh_589.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_589.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_589.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_588 = newComp.layers.addNull();\r\n_Mesh_588.threeDLayer = true;\r\n_Mesh_588.source.name = \"_Mesh_588\";\r\n_Mesh_588.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_588.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_588.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_729 = newComp.layers.addNull();\r\n_Mesh_729.threeDLayer = true;\r\n_Mesh_729.source.name = \"_Mesh_729\";\r\n_Mesh_729.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_729.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_729.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_728 = newComp.layers.addNull();\r\n_Mesh_728.threeDLayer = true;\r\n_Mesh_728.source.name = \"_Mesh_728\";\r\n_Mesh_728.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_728.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_728.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_059 = newComp.layers.addNull();\r\n_Mesh_059.threeDLayer = true;\r\n_Mesh_059.source.name = \"_Mesh_059\";\r\n_Mesh_059.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_059.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_059.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_721 = newComp.layers.addNull();\r\n_Mesh_721.threeDLayer = true;\r\n_Mesh_721.source.name = \"_Mesh_721\";\r\n_Mesh_721.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_721.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_721.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_720 = newComp.layers.addNull();\r\n_Mesh_720.threeDLayer = true;\r\n_Mesh_720.source.name = \"_Mesh_720\";\r\n_Mesh_720.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_720.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_720.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_722 = newComp.layers.addNull();\r\n_Mesh_722.threeDLayer = true;\r\n_Mesh_722.source.name = \"_Mesh_722\";\r\n_Mesh_722.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_722.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_722.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_725 = newComp.layers.addNull();\r\n_Mesh_725.threeDLayer = true;\r\n_Mesh_725.source.name = \"_Mesh_725\";\r\n_Mesh_725.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_725.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_725.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_056 = newComp.layers.addNull();\r\n_Mesh_056.threeDLayer = true;\r\n_Mesh_056.source.name = \"_Mesh_056\";\r\n_Mesh_056.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_056.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_056.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_727 = newComp.layers.addNull();\r\n_Mesh_727.threeDLayer = true;\r\n_Mesh_727.source.name = \"_Mesh_727\";\r\n_Mesh_727.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_727.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_727.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_726 = newComp.layers.addNull();\r\n_Mesh_726.threeDLayer = true;\r\n_Mesh_726.source.name = \"_Mesh_726\";\r\n_Mesh_726.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_726.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_726.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_299 = newComp.layers.addNull();\r\n_Mesh_299.threeDLayer = true;\r\n_Mesh_299.source.name = \"_Mesh_299\";\r\n_Mesh_299.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_299.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_299.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_298 = newComp.layers.addNull();\r\n_Mesh_298.threeDLayer = true;\r\n_Mesh_298.source.name = \"_Mesh_298\";\r\n_Mesh_298.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_298.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_298.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_291 = newComp.layers.addNull();\r\n_Mesh_291.threeDLayer = true;\r\n_Mesh_291.source.name = \"_Mesh_291\";\r\n_Mesh_291.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_291.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_291.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_290 = newComp.layers.addNull();\r\n_Mesh_290.threeDLayer = true;\r\n_Mesh_290.source.name = \"_Mesh_290\";\r\n_Mesh_290.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_290.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_290.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_293 = newComp.layers.addNull();\r\n_Mesh_293.threeDLayer = true;\r\n_Mesh_293.source.name = \"_Mesh_293\";\r\n_Mesh_293.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_293.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_293.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_292 = newComp.layers.addNull();\r\n_Mesh_292.threeDLayer = true;\r\n_Mesh_292.source.name = \"_Mesh_292\";\r\n_Mesh_292.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_292.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_292.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_295 = newComp.layers.addNull();\r\n_Mesh_295.threeDLayer = true;\r\n_Mesh_295.source.name = \"_Mesh_295\";\r\n_Mesh_295.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_295.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_295.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_294 = newComp.layers.addNull();\r\n_Mesh_294.threeDLayer = true;\r\n_Mesh_294.source.name = \"_Mesh_294\";\r\n_Mesh_294.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_294.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_294.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_297 = newComp.layers.addNull();\r\n_Mesh_297.threeDLayer = true;\r\n_Mesh_297.source.name = \"_Mesh_297\";\r\n_Mesh_297.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_297.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_297.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_296 = newComp.layers.addNull();\r\n_Mesh_296.threeDLayer = true;\r\n_Mesh_296.source.name = \"_Mesh_296\";\r\n_Mesh_296.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_296.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_296.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_129 = newComp.layers.addNull();\r\n_Mesh_129.threeDLayer = true;\r\n_Mesh_129.source.name = \"_Mesh_129\";\r\n_Mesh_129.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_129.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_129.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_128 = newComp.layers.addNull();\r\n_Mesh_128.threeDLayer = true;\r\n_Mesh_128.source.name = \"_Mesh_128\";\r\n_Mesh_128.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_128.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_128.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_127 = newComp.layers.addNull();\r\n_Mesh_127.threeDLayer = true;\r\n_Mesh_127.source.name = \"_Mesh_127\";\r\n_Mesh_127.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_127.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_127.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_126 = newComp.layers.addNull();\r\n_Mesh_126.threeDLayer = true;\r\n_Mesh_126.source.name = \"_Mesh_126\";\r\n_Mesh_126.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_126.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_126.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_125 = newComp.layers.addNull();\r\n_Mesh_125.threeDLayer = true;\r\n_Mesh_125.source.name = \"_Mesh_125\";\r\n_Mesh_125.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_125.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_125.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_124 = newComp.layers.addNull();\r\n_Mesh_124.threeDLayer = true;\r\n_Mesh_124.source.name = \"_Mesh_124\";\r\n_Mesh_124.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_124.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_124.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_123 = newComp.layers.addNull();\r\n_Mesh_123.threeDLayer = true;\r\n_Mesh_123.source.name = \"_Mesh_123\";\r\n_Mesh_123.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_123.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_123.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_122 = newComp.layers.addNull();\r\n_Mesh_122.threeDLayer = true;\r\n_Mesh_122.source.name = \"_Mesh_122\";\r\n_Mesh_122.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_122.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_122.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_121 = newComp.layers.addNull();\r\n_Mesh_121.threeDLayer = true;\r\n_Mesh_121.source.name = \"_Mesh_121\";\r\n_Mesh_121.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_121.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_121.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_120 = newComp.layers.addNull();\r\n_Mesh_120.threeDLayer = true;\r\n_Mesh_120.source.name = \"_Mesh_120\";\r\n_Mesh_120.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_120.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_120.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1055 = newComp.layers.addNull();\r\n_Mesh_1055.threeDLayer = true;\r\n_Mesh_1055.source.name = \"_Mesh_1055\";\r\n_Mesh_1055.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1055.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1055.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1054 = newComp.layers.addNull();\r\n_Mesh_1054.threeDLayer = true;\r\n_Mesh_1054.source.name = \"_Mesh_1054\";\r\n_Mesh_1054.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1054.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1054.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1057 = newComp.layers.addNull();\r\n_Mesh_1057.threeDLayer = true;\r\n_Mesh_1057.source.name = \"_Mesh_1057\";\r\n_Mesh_1057.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1057.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1057.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1050 = newComp.layers.addNull();\r\n_Mesh_1050.threeDLayer = true;\r\n_Mesh_1050.source.name = \"_Mesh_1050\";\r\n_Mesh_1050.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1050.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1050.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1053 = newComp.layers.addNull();\r\n_Mesh_1053.threeDLayer = true;\r\n_Mesh_1053.source.name = \"_Mesh_1053\";\r\n_Mesh_1053.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1053.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1053.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1058 = newComp.layers.addNull();\r\n_Mesh_1058.threeDLayer = true;\r\n_Mesh_1058.source.name = \"_Mesh_1058\";\r\n_Mesh_1058.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1058.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1058.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_264 = newComp.layers.addNull();\r\n_Mesh_264.threeDLayer = true;\r\n_Mesh_264.source.name = \"_Mesh_264\";\r\n_Mesh_264.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_264.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_264.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_265 = newComp.layers.addNull();\r\n_Mesh_265.threeDLayer = true;\r\n_Mesh_265.source.name = \"_Mesh_265\";\r\n_Mesh_265.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_265.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_265.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_266 = newComp.layers.addNull();\r\n_Mesh_266.threeDLayer = true;\r\n_Mesh_266.source.name = \"_Mesh_266\";\r\n_Mesh_266.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_266.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_266.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_267 = newComp.layers.addNull();\r\n_Mesh_267.threeDLayer = true;\r\n_Mesh_267.source.name = \"_Mesh_267\";\r\n_Mesh_267.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_267.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_267.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_260 = newComp.layers.addNull();\r\n_Mesh_260.threeDLayer = true;\r\n_Mesh_260.source.name = \"_Mesh_260\";\r\n_Mesh_260.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_260.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_260.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_261 = newComp.layers.addNull();\r\n_Mesh_261.threeDLayer = true;\r\n_Mesh_261.source.name = \"_Mesh_261\";\r\n_Mesh_261.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_261.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_261.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_262 = newComp.layers.addNull();\r\n_Mesh_262.threeDLayer = true;\r\n_Mesh_262.source.name = \"_Mesh_262\";\r\n_Mesh_262.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_262.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_262.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_263 = newComp.layers.addNull();\r\n_Mesh_263.threeDLayer = true;\r\n_Mesh_263.source.name = \"_Mesh_263\";\r\n_Mesh_263.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_263.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_263.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_918 = newComp.layers.addNull();\r\n_Mesh_918.threeDLayer = true;\r\n_Mesh_918.source.name = \"_Mesh_918\";\r\n_Mesh_918.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_918.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_918.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_919 = newComp.layers.addNull();\r\n_Mesh_919.threeDLayer = true;\r\n_Mesh_919.source.name = \"_Mesh_919\";\r\n_Mesh_919.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_919.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_919.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_268 = newComp.layers.addNull();\r\n_Mesh_268.threeDLayer = true;\r\n_Mesh_268.source.name = \"_Mesh_268\";\r\n_Mesh_268.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_268.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_268.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_269 = newComp.layers.addNull();\r\n_Mesh_269.threeDLayer = true;\r\n_Mesh_269.source.name = \"_Mesh_269\";\r\n_Mesh_269.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_269.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_269.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_462 = newComp.layers.addNull();\r\n_Mesh_462.threeDLayer = true;\r\n_Mesh_462.source.name = \"_Mesh_462\";\r\n_Mesh_462.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_462.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_462.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_463 = newComp.layers.addNull();\r\n_Mesh_463.threeDLayer = true;\r\n_Mesh_463.source.name = \"_Mesh_463\";\r\n_Mesh_463.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_463.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_463.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_460 = newComp.layers.addNull();\r\n_Mesh_460.threeDLayer = true;\r\n_Mesh_460.source.name = \"_Mesh_460\";\r\n_Mesh_460.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_460.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_460.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_461 = newComp.layers.addNull();\r\n_Mesh_461.threeDLayer = true;\r\n_Mesh_461.source.name = \"_Mesh_461\";\r\n_Mesh_461.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_461.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_461.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_466 = newComp.layers.addNull();\r\n_Mesh_466.threeDLayer = true;\r\n_Mesh_466.source.name = \"_Mesh_466\";\r\n_Mesh_466.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_466.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_466.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_467 = newComp.layers.addNull();\r\n_Mesh_467.threeDLayer = true;\r\n_Mesh_467.source.name = \"_Mesh_467\";\r\n_Mesh_467.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_467.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_467.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_464 = newComp.layers.addNull();\r\n_Mesh_464.threeDLayer = true;\r\n_Mesh_464.source.name = \"_Mesh_464\";\r\n_Mesh_464.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_464.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_464.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_465 = newComp.layers.addNull();\r\n_Mesh_465.threeDLayer = true;\r\n_Mesh_465.source.name = \"_Mesh_465\";\r\n_Mesh_465.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_465.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_465.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_468 = newComp.layers.addNull();\r\n_Mesh_468.threeDLayer = true;\r\n_Mesh_468.source.name = \"_Mesh_468\";\r\n_Mesh_468.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_468.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_468.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_469 = newComp.layers.addNull();\r\n_Mesh_469.threeDLayer = true;\r\n_Mesh_469.source.name = \"_Mesh_469\";\r\n_Mesh_469.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_469.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_469.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_868 = newComp.layers.addNull();\r\n_Mesh_868.threeDLayer = true;\r\n_Mesh_868.source.name = \"_Mesh_868\";\r\n_Mesh_868.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_868.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_868.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_869 = newComp.layers.addNull();\r\n_Mesh_869.threeDLayer = true;\r\n_Mesh_869.source.name = \"_Mesh_869\";\r\n_Mesh_869.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_869.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_869.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_866 = newComp.layers.addNull();\r\n_Mesh_866.threeDLayer = true;\r\n_Mesh_866.source.name = \"_Mesh_866\";\r\n_Mesh_866.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_866.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_866.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_867 = newComp.layers.addNull();\r\n_Mesh_867.threeDLayer = true;\r\n_Mesh_867.source.name = \"_Mesh_867\";\r\n_Mesh_867.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_867.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_867.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_864 = newComp.layers.addNull();\r\n_Mesh_864.threeDLayer = true;\r\n_Mesh_864.source.name = \"_Mesh_864\";\r\n_Mesh_864.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_864.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_864.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_865 = newComp.layers.addNull();\r\n_Mesh_865.threeDLayer = true;\r\n_Mesh_865.source.name = \"_Mesh_865\";\r\n_Mesh_865.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_865.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_865.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_862 = newComp.layers.addNull();\r\n_Mesh_862.threeDLayer = true;\r\n_Mesh_862.source.name = \"_Mesh_862\";\r\n_Mesh_862.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_862.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_862.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_863 = newComp.layers.addNull();\r\n_Mesh_863.threeDLayer = true;\r\n_Mesh_863.source.name = \"_Mesh_863\";\r\n_Mesh_863.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_863.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_863.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_860 = newComp.layers.addNull();\r\n_Mesh_860.threeDLayer = true;\r\n_Mesh_860.source.name = \"_Mesh_860\";\r\n_Mesh_860.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_860.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_860.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_861 = newComp.layers.addNull();\r\n_Mesh_861.threeDLayer = true;\r\n_Mesh_861.source.name = \"_Mesh_861\";\r\n_Mesh_861.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_861.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_861.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_606 = newComp.layers.addNull();\r\n_Mesh_606.threeDLayer = true;\r\n_Mesh_606.source.name = \"_Mesh_606\";\r\n_Mesh_606.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_606.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_606.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_607 = newComp.layers.addNull();\r\n_Mesh_607.threeDLayer = true;\r\n_Mesh_607.source.name = \"_Mesh_607\";\r\n_Mesh_607.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_607.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_607.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_604 = newComp.layers.addNull();\r\n_Mesh_604.threeDLayer = true;\r\n_Mesh_604.source.name = \"_Mesh_604\";\r\n_Mesh_604.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_604.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_604.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_605 = newComp.layers.addNull();\r\n_Mesh_605.threeDLayer = true;\r\n_Mesh_605.source.name = \"_Mesh_605\";\r\n_Mesh_605.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_605.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_605.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_602 = newComp.layers.addNull();\r\n_Mesh_602.threeDLayer = true;\r\n_Mesh_602.source.name = \"_Mesh_602\";\r\n_Mesh_602.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_602.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_602.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_603 = newComp.layers.addNull();\r\n_Mesh_603.threeDLayer = true;\r\n_Mesh_603.source.name = \"_Mesh_603\";\r\n_Mesh_603.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_603.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_603.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_600 = newComp.layers.addNull();\r\n_Mesh_600.threeDLayer = true;\r\n_Mesh_600.source.name = \"_Mesh_600\";\r\n_Mesh_600.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_600.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_600.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_601 = newComp.layers.addNull();\r\n_Mesh_601.threeDLayer = true;\r\n_Mesh_601.source.name = \"_Mesh_601\";\r\n_Mesh_601.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_601.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_601.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_608 = newComp.layers.addNull();\r\n_Mesh_608.threeDLayer = true;\r\n_Mesh_608.source.name = \"_Mesh_608\";\r\n_Mesh_608.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_608.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_608.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_609 = newComp.layers.addNull();\r\n_Mesh_609.threeDLayer = true;\r\n_Mesh_609.source.name = \"_Mesh_609\";\r\n_Mesh_609.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_609.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_609.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_596 = newComp.layers.addNull();\r\n_Mesh_596.threeDLayer = true;\r\n_Mesh_596.source.name = \"_Mesh_596\";\r\n_Mesh_596.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_596.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_596.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_597 = newComp.layers.addNull();\r\n_Mesh_597.threeDLayer = true;\r\n_Mesh_597.source.name = \"_Mesh_597\";\r\n_Mesh_597.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_597.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_597.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_594 = newComp.layers.addNull();\r\n_Mesh_594.threeDLayer = true;\r\n_Mesh_594.source.name = \"_Mesh_594\";\r\n_Mesh_594.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_594.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_594.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_595 = newComp.layers.addNull();\r\n_Mesh_595.threeDLayer = true;\r\n_Mesh_595.source.name = \"_Mesh_595\";\r\n_Mesh_595.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_595.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_595.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_592 = newComp.layers.addNull();\r\n_Mesh_592.threeDLayer = true;\r\n_Mesh_592.source.name = \"_Mesh_592\";\r\n_Mesh_592.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_592.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_592.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_593 = newComp.layers.addNull();\r\n_Mesh_593.threeDLayer = true;\r\n_Mesh_593.source.name = \"_Mesh_593\";\r\n_Mesh_593.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_593.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_593.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_590 = newComp.layers.addNull();\r\n_Mesh_590.threeDLayer = true;\r\n_Mesh_590.source.name = \"_Mesh_590\";\r\n_Mesh_590.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_590.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_590.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_591 = newComp.layers.addNull();\r\n_Mesh_591.threeDLayer = true;\r\n_Mesh_591.source.name = \"_Mesh_591\";\r\n_Mesh_591.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_591.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_591.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_598 = newComp.layers.addNull();\r\n_Mesh_598.threeDLayer = true;\r\n_Mesh_598.source.name = \"_Mesh_598\";\r\n_Mesh_598.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_598.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_598.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_599 = newComp.layers.addNull();\r\n_Mesh_599.threeDLayer = true;\r\n_Mesh_599.source.name = \"_Mesh_599\";\r\n_Mesh_599.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_599.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_599.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_738 = newComp.layers.addNull();\r\n_Mesh_738.threeDLayer = true;\r\n_Mesh_738.source.name = \"_Mesh_738\";\r\n_Mesh_738.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_738.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_738.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_739 = newComp.layers.addNull();\r\n_Mesh_739.threeDLayer = true;\r\n_Mesh_739.source.name = \"_Mesh_739\";\r\n_Mesh_739.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_739.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_739.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_048 = newComp.layers.addNull();\r\n_Mesh_048.threeDLayer = true;\r\n_Mesh_048.source.name = \"_Mesh_048\";\r\n_Mesh_048.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_048.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_048.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_049 = newComp.layers.addNull();\r\n_Mesh_049.threeDLayer = true;\r\n_Mesh_049.source.name = \"_Mesh_049\";\r\n_Mesh_049.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_049.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_049.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_732 = newComp.layers.addNull();\r\n_Mesh_732.threeDLayer = true;\r\n_Mesh_732.source.name = \"_Mesh_732\";\r\n_Mesh_732.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_732.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_732.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_733 = newComp.layers.addNull();\r\n_Mesh_733.threeDLayer = true;\r\n_Mesh_733.source.name = \"_Mesh_733\";\r\n_Mesh_733.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_733.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_733.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_046 = newComp.layers.addNull();\r\n_Mesh_046.threeDLayer = true;\r\n_Mesh_046.source.name = \"_Mesh_046\";\r\n_Mesh_046.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_046.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_046.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_047 = newComp.layers.addNull();\r\n_Mesh_047.threeDLayer = true;\r\n_Mesh_047.source.name = \"_Mesh_047\";\r\n_Mesh_047.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_047.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_047.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_736 = newComp.layers.addNull();\r\n_Mesh_736.threeDLayer = true;\r\n_Mesh_736.source.name = \"_Mesh_736\";\r\n_Mesh_736.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_736.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_736.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_737 = newComp.layers.addNull();\r\n_Mesh_737.threeDLayer = true;\r\n_Mesh_737.source.name = \"_Mesh_737\";\r\n_Mesh_737.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_737.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_737.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_734 = newComp.layers.addNull();\r\n_Mesh_734.threeDLayer = true;\r\n_Mesh_734.source.name = \"_Mesh_734\";\r\n_Mesh_734.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_734.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_734.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_735 = newComp.layers.addNull();\r\n_Mesh_735.threeDLayer = true;\r\n_Mesh_735.source.name = \"_Mesh_735\";\r\n_Mesh_735.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_735.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_735.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_288 = newComp.layers.addNull();\r\n_Mesh_288.threeDLayer = true;\r\n_Mesh_288.source.name = \"_Mesh_288\";\r\n_Mesh_288.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_288.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_288.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_289 = newComp.layers.addNull();\r\n_Mesh_289.threeDLayer = true;\r\n_Mesh_289.source.name = \"_Mesh_289\";\r\n_Mesh_289.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_289.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_289.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_282 = newComp.layers.addNull();\r\n_Mesh_282.threeDLayer = true;\r\n_Mesh_282.source.name = \"_Mesh_282\";\r\n_Mesh_282.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_282.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_282.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_283 = newComp.layers.addNull();\r\n_Mesh_283.threeDLayer = true;\r\n_Mesh_283.source.name = \"_Mesh_283\";\r\n_Mesh_283.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_283.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_283.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_280 = newComp.layers.addNull();\r\n_Mesh_280.threeDLayer = true;\r\n_Mesh_280.source.name = \"_Mesh_280\";\r\n_Mesh_280.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_280.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_280.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_281 = newComp.layers.addNull();\r\n_Mesh_281.threeDLayer = true;\r\n_Mesh_281.source.name = \"_Mesh_281\";\r\n_Mesh_281.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_281.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_281.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_286 = newComp.layers.addNull();\r\n_Mesh_286.threeDLayer = true;\r\n_Mesh_286.source.name = \"_Mesh_286\";\r\n_Mesh_286.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_286.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_286.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_287 = newComp.layers.addNull();\r\n_Mesh_287.threeDLayer = true;\r\n_Mesh_287.source.name = \"_Mesh_287\";\r\n_Mesh_287.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_287.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_287.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_284 = newComp.layers.addNull();\r\n_Mesh_284.threeDLayer = true;\r\n_Mesh_284.source.name = \"_Mesh_284\";\r\n_Mesh_284.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_284.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_284.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_285 = newComp.layers.addNull();\r\n_Mesh_285.threeDLayer = true;\r\n_Mesh_285.source.name = \"_Mesh_285\";\r\n_Mesh_285.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_285.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_285.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_130 = newComp.layers.addNull();\r\n_Mesh_130.threeDLayer = true;\r\n_Mesh_130.source.name = \"_Mesh_130\";\r\n_Mesh_130.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_130.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_130.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_131 = newComp.layers.addNull();\r\n_Mesh_131.threeDLayer = true;\r\n_Mesh_131.source.name = \"_Mesh_131\";\r\n_Mesh_131.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_131.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_131.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_132 = newComp.layers.addNull();\r\n_Mesh_132.threeDLayer = true;\r\n_Mesh_132.source.name = \"_Mesh_132\";\r\n_Mesh_132.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_132.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_132.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_133 = newComp.layers.addNull();\r\n_Mesh_133.threeDLayer = true;\r\n_Mesh_133.source.name = \"_Mesh_133\";\r\n_Mesh_133.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_133.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_133.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_134 = newComp.layers.addNull();\r\n_Mesh_134.threeDLayer = true;\r\n_Mesh_134.source.name = \"_Mesh_134\";\r\n_Mesh_134.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_134.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_134.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_135 = newComp.layers.addNull();\r\n_Mesh_135.threeDLayer = true;\r\n_Mesh_135.source.name = \"_Mesh_135\";\r\n_Mesh_135.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_135.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_135.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_136 = newComp.layers.addNull();\r\n_Mesh_136.threeDLayer = true;\r\n_Mesh_136.source.name = \"_Mesh_136\";\r\n_Mesh_136.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_136.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_136.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_137 = newComp.layers.addNull();\r\n_Mesh_137.threeDLayer = true;\r\n_Mesh_137.source.name = \"_Mesh_137\";\r\n_Mesh_137.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_137.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_137.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_138 = newComp.layers.addNull();\r\n_Mesh_138.threeDLayer = true;\r\n_Mesh_138.source.name = \"_Mesh_138\";\r\n_Mesh_138.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_138.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_138.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_139 = newComp.layers.addNull();\r\n_Mesh_139.threeDLayer = true;\r\n_Mesh_139.source.name = \"_Mesh_139\";\r\n_Mesh_139.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_139.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_139.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_053 = newComp.layers.addNull();\r\n_Mesh_053.threeDLayer = true;\r\n_Mesh_053.source.name = \"_Mesh_053\";\r\n_Mesh_053.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_053.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_053.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_052 = newComp.layers.addNull();\r\n_Mesh_052.threeDLayer = true;\r\n_Mesh_052.source.name = \"_Mesh_052\";\r\n_Mesh_052.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_052.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_052.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_050 = newComp.layers.addNull();\r\n_Mesh_050.threeDLayer = true;\r\n_Mesh_050.source.name = \"_Mesh_050\";\r\n_Mesh_050.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_050.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_050.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_057 = newComp.layers.addNull();\r\n_Mesh_057.threeDLayer = true;\r\n_Mesh_057.source.name = \"_Mesh_057\";\r\n_Mesh_057.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_057.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_057.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_055 = newComp.layers.addNull();\r\n_Mesh_055.threeDLayer = true;\r\n_Mesh_055.source.name = \"_Mesh_055\";\r\n_Mesh_055.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_055.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_055.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_054 = newComp.layers.addNull();\r\n_Mesh_054.threeDLayer = true;\r\n_Mesh_054.source.name = \"_Mesh_054\";\r\n_Mesh_054.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_054.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_054.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1442 = newComp.layers.addNull();\r\n_Mesh_1442.threeDLayer = true;\r\n_Mesh_1442.source.name = \"_Mesh_1442\";\r\n_Mesh_1442.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1442.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1442.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1443 = newComp.layers.addNull();\r\n_Mesh_1443.threeDLayer = true;\r\n_Mesh_1443.source.name = \"_Mesh_1443\";\r\n_Mesh_1443.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1443.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1443.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1440 = newComp.layers.addNull();\r\n_Mesh_1440.threeDLayer = true;\r\n_Mesh_1440.source.name = \"_Mesh_1440\";\r\n_Mesh_1440.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1440.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1440.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1441 = newComp.layers.addNull();\r\n_Mesh_1441.threeDLayer = true;\r\n_Mesh_1441.source.name = \"_Mesh_1441\";\r\n_Mesh_1441.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1441.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1441.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1446 = newComp.layers.addNull();\r\n_Mesh_1446.threeDLayer = true;\r\n_Mesh_1446.source.name = \"_Mesh_1446\";\r\n_Mesh_1446.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1446.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1446.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1447 = newComp.layers.addNull();\r\n_Mesh_1447.threeDLayer = true;\r\n_Mesh_1447.source.name = \"_Mesh_1447\";\r\n_Mesh_1447.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1447.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1447.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1444 = newComp.layers.addNull();\r\n_Mesh_1444.threeDLayer = true;\r\n_Mesh_1444.source.name = \"_Mesh_1444\";\r\n_Mesh_1444.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1444.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1444.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1445 = newComp.layers.addNull();\r\n_Mesh_1445.threeDLayer = true;\r\n_Mesh_1445.source.name = \"_Mesh_1445\";\r\n_Mesh_1445.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1445.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1445.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1448 = newComp.layers.addNull();\r\n_Mesh_1448.threeDLayer = true;\r\n_Mesh_1448.source.name = \"_Mesh_1448\";\r\n_Mesh_1448.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1448.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1448.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1449 = newComp.layers.addNull();\r\n_Mesh_1449.threeDLayer = true;\r\n_Mesh_1449.source.name = \"_Mesh_1449\";\r\n_Mesh_1449.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1449.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1449.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1194 = newComp.layers.addNull();\r\n_Mesh_1194.threeDLayer = true;\r\n_Mesh_1194.source.name = \"_Mesh_1194\";\r\n_Mesh_1194.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1194.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1194.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1195 = newComp.layers.addNull();\r\n_Mesh_1195.threeDLayer = true;\r\n_Mesh_1195.source.name = \"_Mesh_1195\";\r\n_Mesh_1195.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1195.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1195.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1196 = newComp.layers.addNull();\r\n_Mesh_1196.threeDLayer = true;\r\n_Mesh_1196.source.name = \"_Mesh_1196\";\r\n_Mesh_1196.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1196.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1196.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1197 = newComp.layers.addNull();\r\n_Mesh_1197.threeDLayer = true;\r\n_Mesh_1197.source.name = \"_Mesh_1197\";\r\n_Mesh_1197.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1197.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1197.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1190 = newComp.layers.addNull();\r\n_Mesh_1190.threeDLayer = true;\r\n_Mesh_1190.source.name = \"_Mesh_1190\";\r\n_Mesh_1190.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1190.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1190.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1191 = newComp.layers.addNull();\r\n_Mesh_1191.threeDLayer = true;\r\n_Mesh_1191.source.name = \"_Mesh_1191\";\r\n_Mesh_1191.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1191.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1191.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1192 = newComp.layers.addNull();\r\n_Mesh_1192.threeDLayer = true;\r\n_Mesh_1192.source.name = \"_Mesh_1192\";\r\n_Mesh_1192.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1192.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1192.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1193 = newComp.layers.addNull();\r\n_Mesh_1193.threeDLayer = true;\r\n_Mesh_1193.source.name = \"_Mesh_1193\";\r\n_Mesh_1193.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1193.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1193.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1198 = newComp.layers.addNull();\r\n_Mesh_1198.threeDLayer = true;\r\n_Mesh_1198.source.name = \"_Mesh_1198\";\r\n_Mesh_1198.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1198.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1198.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1199 = newComp.layers.addNull();\r\n_Mesh_1199.threeDLayer = true;\r\n_Mesh_1199.source.name = \"_Mesh_1199\";\r\n_Mesh_1199.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1199.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1199.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1280 = newComp.layers.addNull();\r\n_Mesh_1280.threeDLayer = true;\r\n_Mesh_1280.source.name = \"_Mesh_1280\";\r\n_Mesh_1280.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1280.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1280.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1281 = newComp.layers.addNull();\r\n_Mesh_1281.threeDLayer = true;\r\n_Mesh_1281.source.name = \"_Mesh_1281\";\r\n_Mesh_1281.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1281.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1281.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1282 = newComp.layers.addNull();\r\n_Mesh_1282.threeDLayer = true;\r\n_Mesh_1282.source.name = \"_Mesh_1282\";\r\n_Mesh_1282.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1282.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1282.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1283 = newComp.layers.addNull();\r\n_Mesh_1283.threeDLayer = true;\r\n_Mesh_1283.source.name = \"_Mesh_1283\";\r\n_Mesh_1283.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1283.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1283.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1284 = newComp.layers.addNull();\r\n_Mesh_1284.threeDLayer = true;\r\n_Mesh_1284.source.name = \"_Mesh_1284\";\r\n_Mesh_1284.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1284.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1284.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1285 = newComp.layers.addNull();\r\n_Mesh_1285.threeDLayer = true;\r\n_Mesh_1285.source.name = \"_Mesh_1285\";\r\n_Mesh_1285.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1285.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1285.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1286 = newComp.layers.addNull();\r\n_Mesh_1286.threeDLayer = true;\r\n_Mesh_1286.source.name = \"_Mesh_1286\";\r\n_Mesh_1286.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1286.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1286.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1287 = newComp.layers.addNull();\r\n_Mesh_1287.threeDLayer = true;\r\n_Mesh_1287.source.name = \"_Mesh_1287\";\r\n_Mesh_1287.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1287.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1287.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1288 = newComp.layers.addNull();\r\n_Mesh_1288.threeDLayer = true;\r\n_Mesh_1288.source.name = \"_Mesh_1288\";\r\n_Mesh_1288.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1288.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1288.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1289 = newComp.layers.addNull();\r\n_Mesh_1289.threeDLayer = true;\r\n_Mesh_1289.source.name = \"_Mesh_1289\";\r\n_Mesh_1289.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1289.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1289.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1068 = newComp.layers.addNull();\r\n_Mesh_1068.threeDLayer = true;\r\n_Mesh_1068.source.name = \"_Mesh_1068\";\r\n_Mesh_1068.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1068.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1068.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1069 = newComp.layers.addNull();\r\n_Mesh_1069.threeDLayer = true;\r\n_Mesh_1069.source.name = \"_Mesh_1069\";\r\n_Mesh_1069.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1069.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1069.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1061 = newComp.layers.addNull();\r\n_Mesh_1061.threeDLayer = true;\r\n_Mesh_1061.source.name = \"_Mesh_1061\";\r\n_Mesh_1061.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1061.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1061.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1063 = newComp.layers.addNull();\r\n_Mesh_1063.threeDLayer = true;\r\n_Mesh_1063.source.name = \"_Mesh_1063\";\r\n_Mesh_1063.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1063.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1063.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1064 = newComp.layers.addNull();\r\n_Mesh_1064.threeDLayer = true;\r\n_Mesh_1064.source.name = \"_Mesh_1064\";\r\n_Mesh_1064.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1064.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1064.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1066 = newComp.layers.addNull();\r\n_Mesh_1066.threeDLayer = true;\r\n_Mesh_1066.source.name = \"_Mesh_1066\";\r\n_Mesh_1066.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1066.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1066.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1067 = newComp.layers.addNull();\r\n_Mesh_1067.threeDLayer = true;\r\n_Mesh_1067.source.name = \"_Mesh_1067\";\r\n_Mesh_1067.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1067.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1067.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1268 = newComp.layers.addNull();\r\n_Mesh_1268.threeDLayer = true;\r\n_Mesh_1268.source.name = \"_Mesh_1268\";\r\n_Mesh_1268.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1268.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1268.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1269 = newComp.layers.addNull();\r\n_Mesh_1269.threeDLayer = true;\r\n_Mesh_1269.source.name = \"_Mesh_1269\";\r\n_Mesh_1269.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1269.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1269.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1262 = newComp.layers.addNull();\r\n_Mesh_1262.threeDLayer = true;\r\n_Mesh_1262.source.name = \"_Mesh_1262\";\r\n_Mesh_1262.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1262.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1262.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1263 = newComp.layers.addNull();\r\n_Mesh_1263.threeDLayer = true;\r\n_Mesh_1263.source.name = \"_Mesh_1263\";\r\n_Mesh_1263.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1263.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1263.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1260 = newComp.layers.addNull();\r\n_Mesh_1260.threeDLayer = true;\r\n_Mesh_1260.source.name = \"_Mesh_1260\";\r\n_Mesh_1260.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1260.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1260.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1261 = newComp.layers.addNull();\r\n_Mesh_1261.threeDLayer = true;\r\n_Mesh_1261.source.name = \"_Mesh_1261\";\r\n_Mesh_1261.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1261.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1261.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1266 = newComp.layers.addNull();\r\n_Mesh_1266.threeDLayer = true;\r\n_Mesh_1266.source.name = \"_Mesh_1266\";\r\n_Mesh_1266.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1266.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1266.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1267 = newComp.layers.addNull();\r\n_Mesh_1267.threeDLayer = true;\r\n_Mesh_1267.source.name = \"_Mesh_1267\";\r\n_Mesh_1267.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1267.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1267.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1264 = newComp.layers.addNull();\r\n_Mesh_1264.threeDLayer = true;\r\n_Mesh_1264.source.name = \"_Mesh_1264\";\r\n_Mesh_1264.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1264.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1264.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1265 = newComp.layers.addNull();\r\n_Mesh_1265.threeDLayer = true;\r\n_Mesh_1265.source.name = \"_Mesh_1265\";\r\n_Mesh_1265.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1265.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1265.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_927 = newComp.layers.addNull();\r\n_Mesh_927.threeDLayer = true;\r\n_Mesh_927.source.name = \"_Mesh_927\";\r\n_Mesh_927.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_927.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_927.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_926 = newComp.layers.addNull();\r\n_Mesh_926.threeDLayer = true;\r\n_Mesh_926.source.name = \"_Mesh_926\";\r\n_Mesh_926.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_926.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_926.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_925 = newComp.layers.addNull();\r\n_Mesh_925.threeDLayer = true;\r\n_Mesh_925.source.name = \"_Mesh_925\";\r\n_Mesh_925.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_925.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_925.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_924 = newComp.layers.addNull();\r\n_Mesh_924.threeDLayer = true;\r\n_Mesh_924.source.name = \"_Mesh_924\";\r\n_Mesh_924.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_924.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_924.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_923 = newComp.layers.addNull();\r\n_Mesh_923.threeDLayer = true;\r\n_Mesh_923.source.name = \"_Mesh_923\";\r\n_Mesh_923.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_923.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_923.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_922 = newComp.layers.addNull();\r\n_Mesh_922.threeDLayer = true;\r\n_Mesh_922.source.name = \"_Mesh_922\";\r\n_Mesh_922.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_922.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_922.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_921 = newComp.layers.addNull();\r\n_Mesh_921.threeDLayer = true;\r\n_Mesh_921.source.name = \"_Mesh_921\";\r\n_Mesh_921.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_921.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_921.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_920 = newComp.layers.addNull();\r\n_Mesh_920.threeDLayer = true;\r\n_Mesh_920.source.name = \"_Mesh_920\";\r\n_Mesh_920.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_920.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_920.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_929 = newComp.layers.addNull();\r\n_Mesh_929.threeDLayer = true;\r\n_Mesh_929.source.name = \"_Mesh_929\";\r\n_Mesh_929.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_929.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_929.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_928 = newComp.layers.addNull();\r\n_Mesh_928.threeDLayer = true;\r\n_Mesh_928.source.name = \"_Mesh_928\";\r\n_Mesh_928.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_928.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_928.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_457 = newComp.layers.addNull();\r\n_Mesh_457.threeDLayer = true;\r\n_Mesh_457.source.name = \"_Mesh_457\";\r\n_Mesh_457.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_457.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_457.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_456 = newComp.layers.addNull();\r\n_Mesh_456.threeDLayer = true;\r\n_Mesh_456.source.name = \"_Mesh_456\";\r\n_Mesh_456.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_456.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_456.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_455 = newComp.layers.addNull();\r\n_Mesh_455.threeDLayer = true;\r\n_Mesh_455.source.name = \"_Mesh_455\";\r\n_Mesh_455.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_455.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_455.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_454 = newComp.layers.addNull();\r\n_Mesh_454.threeDLayer = true;\r\n_Mesh_454.source.name = \"_Mesh_454\";\r\n_Mesh_454.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_454.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_454.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_453 = newComp.layers.addNull();\r\n_Mesh_453.threeDLayer = true;\r\n_Mesh_453.source.name = \"_Mesh_453\";\r\n_Mesh_453.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_453.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_453.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_450 = newComp.layers.addNull();\r\n_Mesh_450.threeDLayer = true;\r\n_Mesh_450.source.name = \"_Mesh_450\";\r\n_Mesh_450.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_450.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_450.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_459 = newComp.layers.addNull();\r\n_Mesh_459.threeDLayer = true;\r\n_Mesh_459.source.name = \"_Mesh_459\";\r\n_Mesh_459.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_459.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_459.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_458 = newComp.layers.addNull();\r\n_Mesh_458.threeDLayer = true;\r\n_Mesh_458.source.name = \"_Mesh_458\";\r\n_Mesh_458.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_458.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_458.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_853 = newComp.layers.addNull();\r\n_Mesh_853.threeDLayer = true;\r\n_Mesh_853.source.name = \"_Mesh_853\";\r\n_Mesh_853.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_853.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_853.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_852 = newComp.layers.addNull();\r\n_Mesh_852.threeDLayer = true;\r\n_Mesh_852.source.name = \"_Mesh_852\";\r\n_Mesh_852.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_852.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_852.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_851 = newComp.layers.addNull();\r\n_Mesh_851.threeDLayer = true;\r\n_Mesh_851.source.name = \"_Mesh_851\";\r\n_Mesh_851.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_851.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_851.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_850 = newComp.layers.addNull();\r\n_Mesh_850.threeDLayer = true;\r\n_Mesh_850.source.name = \"_Mesh_850\";\r\n_Mesh_850.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_850.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_850.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_857 = newComp.layers.addNull();\r\n_Mesh_857.threeDLayer = true;\r\n_Mesh_857.source.name = \"_Mesh_857\";\r\n_Mesh_857.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_857.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_857.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_856 = newComp.layers.addNull();\r\n_Mesh_856.threeDLayer = true;\r\n_Mesh_856.source.name = \"_Mesh_856\";\r\n_Mesh_856.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_856.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_856.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_855 = newComp.layers.addNull();\r\n_Mesh_855.threeDLayer = true;\r\n_Mesh_855.source.name = \"_Mesh_855\";\r\n_Mesh_855.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_855.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_855.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_854 = newComp.layers.addNull();\r\n_Mesh_854.threeDLayer = true;\r\n_Mesh_854.source.name = \"_Mesh_854\";\r\n_Mesh_854.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_854.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_854.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_859 = newComp.layers.addNull();\r\n_Mesh_859.threeDLayer = true;\r\n_Mesh_859.source.name = \"_Mesh_859\";\r\n_Mesh_859.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_859.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_859.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_858 = newComp.layers.addNull();\r\n_Mesh_858.threeDLayer = true;\r\n_Mesh_858.source.name = \"_Mesh_858\";\r\n_Mesh_858.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_858.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_858.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_639 = newComp.layers.addNull();\r\n_Mesh_639.threeDLayer = true;\r\n_Mesh_639.source.name = \"_Mesh_639\";\r\n_Mesh_639.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_639.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_639.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_638 = newComp.layers.addNull();\r\n_Mesh_638.threeDLayer = true;\r\n_Mesh_638.source.name = \"_Mesh_638\";\r\n_Mesh_638.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_638.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_638.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_633 = newComp.layers.addNull();\r\n_Mesh_633.threeDLayer = true;\r\n_Mesh_633.source.name = \"_Mesh_633\";\r\n_Mesh_633.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_633.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_633.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_632 = newComp.layers.addNull();\r\n_Mesh_632.threeDLayer = true;\r\n_Mesh_632.source.name = \"_Mesh_632\";\r\n_Mesh_632.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_632.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_632.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_631 = newComp.layers.addNull();\r\n_Mesh_631.threeDLayer = true;\r\n_Mesh_631.source.name = \"_Mesh_631\";\r\n_Mesh_631.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_631.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_631.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_630 = newComp.layers.addNull();\r\n_Mesh_630.threeDLayer = true;\r\n_Mesh_630.source.name = \"_Mesh_630\";\r\n_Mesh_630.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_630.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_630.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_637 = newComp.layers.addNull();\r\n_Mesh_637.threeDLayer = true;\r\n_Mesh_637.source.name = \"_Mesh_637\";\r\n_Mesh_637.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_637.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_637.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_636 = newComp.layers.addNull();\r\n_Mesh_636.threeDLayer = true;\r\n_Mesh_636.source.name = \"_Mesh_636\";\r\n_Mesh_636.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_636.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_636.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_635 = newComp.layers.addNull();\r\n_Mesh_635.threeDLayer = true;\r\n_Mesh_635.source.name = \"_Mesh_635\";\r\n_Mesh_635.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_635.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_635.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_634 = newComp.layers.addNull();\r\n_Mesh_634.threeDLayer = true;\r\n_Mesh_634.source.name = \"_Mesh_634\";\r\n_Mesh_634.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_634.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_634.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_709 = newComp.layers.addNull();\r\n_Mesh_709.threeDLayer = true;\r\n_Mesh_709.source.name = \"_Mesh_709\";\r\n_Mesh_709.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_709.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_709.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_708 = newComp.layers.addNull();\r\n_Mesh_708.threeDLayer = true;\r\n_Mesh_708.source.name = \"_Mesh_708\";\r\n_Mesh_708.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_708.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_708.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_707 = newComp.layers.addNull();\r\n_Mesh_707.threeDLayer = true;\r\n_Mesh_707.source.name = \"_Mesh_707\";\r\n_Mesh_707.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_707.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_707.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_706 = newComp.layers.addNull();\r\n_Mesh_706.threeDLayer = true;\r\n_Mesh_706.source.name = \"_Mesh_706\";\r\n_Mesh_706.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_706.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_706.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_705 = newComp.layers.addNull();\r\n_Mesh_705.threeDLayer = true;\r\n_Mesh_705.source.name = \"_Mesh_705\";\r\n_Mesh_705.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_705.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_705.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_704 = newComp.layers.addNull();\r\n_Mesh_704.threeDLayer = true;\r\n_Mesh_704.source.name = \"_Mesh_704\";\r\n_Mesh_704.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_704.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_704.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_703 = newComp.layers.addNull();\r\n_Mesh_703.threeDLayer = true;\r\n_Mesh_703.source.name = \"_Mesh_703\";\r\n_Mesh_703.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_703.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_703.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_702 = newComp.layers.addNull();\r\n_Mesh_702.threeDLayer = true;\r\n_Mesh_702.source.name = \"_Mesh_702\";\r\n_Mesh_702.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_702.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_702.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_701 = newComp.layers.addNull();\r\n_Mesh_701.threeDLayer = true;\r\n_Mesh_701.source.name = \"_Mesh_701\";\r\n_Mesh_701.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_701.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_701.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_700 = newComp.layers.addNull();\r\n_Mesh_700.threeDLayer = true;\r\n_Mesh_700.source.name = \"_Mesh_700\";\r\n_Mesh_700.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_700.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_700.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_552 = newComp.layers.addNull();\r\n_Mesh_552.threeDLayer = true;\r\n_Mesh_552.source.name = \"_Mesh_552\";\r\n_Mesh_552.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_552.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_552.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_553 = newComp.layers.addNull();\r\n_Mesh_553.threeDLayer = true;\r\n_Mesh_553.source.name = \"_Mesh_553\";\r\n_Mesh_553.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_553.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_553.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_550 = newComp.layers.addNull();\r\n_Mesh_550.threeDLayer = true;\r\n_Mesh_550.source.name = \"_Mesh_550\";\r\n_Mesh_550.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_550.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_550.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_551 = newComp.layers.addNull();\r\n_Mesh_551.threeDLayer = true;\r\n_Mesh_551.source.name = \"_Mesh_551\";\r\n_Mesh_551.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_551.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_551.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_556 = newComp.layers.addNull();\r\n_Mesh_556.threeDLayer = true;\r\n_Mesh_556.source.name = \"_Mesh_556\";\r\n_Mesh_556.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_556.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_556.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_557 = newComp.layers.addNull();\r\n_Mesh_557.threeDLayer = true;\r\n_Mesh_557.source.name = \"_Mesh_557\";\r\n_Mesh_557.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_557.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_557.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_554 = newComp.layers.addNull();\r\n_Mesh_554.threeDLayer = true;\r\n_Mesh_554.source.name = \"_Mesh_554\";\r\n_Mesh_554.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_554.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_554.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_555 = newComp.layers.addNull();\r\n_Mesh_555.threeDLayer = true;\r\n_Mesh_555.source.name = \"_Mesh_555\";\r\n_Mesh_555.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_555.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_555.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_145 = newComp.layers.addNull();\r\n_Mesh_145.threeDLayer = true;\r\n_Mesh_145.source.name = \"_Mesh_145\";\r\n_Mesh_145.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_145.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_145.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_144 = newComp.layers.addNull();\r\n_Mesh_144.threeDLayer = true;\r\n_Mesh_144.source.name = \"_Mesh_144\";\r\n_Mesh_144.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_144.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_144.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_147 = newComp.layers.addNull();\r\n_Mesh_147.threeDLayer = true;\r\n_Mesh_147.source.name = \"_Mesh_147\";\r\n_Mesh_147.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_147.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_147.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_146 = newComp.layers.addNull();\r\n_Mesh_146.threeDLayer = true;\r\n_Mesh_146.source.name = \"_Mesh_146\";\r\n_Mesh_146.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_146.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_146.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_141 = newComp.layers.addNull();\r\n_Mesh_141.threeDLayer = true;\r\n_Mesh_141.source.name = \"_Mesh_141\";\r\n_Mesh_141.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_141.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_141.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_140 = newComp.layers.addNull();\r\n_Mesh_140.threeDLayer = true;\r\n_Mesh_140.source.name = \"_Mesh_140\";\r\n_Mesh_140.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_140.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_140.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_143 = newComp.layers.addNull();\r\n_Mesh_143.threeDLayer = true;\r\n_Mesh_143.source.name = \"_Mesh_143\";\r\n_Mesh_143.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_143.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_143.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_142 = newComp.layers.addNull();\r\n_Mesh_142.threeDLayer = true;\r\n_Mesh_142.source.name = \"_Mesh_142\";\r\n_Mesh_142.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_142.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_142.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_149 = newComp.layers.addNull();\r\n_Mesh_149.threeDLayer = true;\r\n_Mesh_149.source.name = \"_Mesh_149\";\r\n_Mesh_149.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_149.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_149.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_148 = newComp.layers.addNull();\r\n_Mesh_148.threeDLayer = true;\r\n_Mesh_148.source.name = \"_Mesh_148\";\r\n_Mesh_148.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_148.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_148.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1451 = newComp.layers.addNull();\r\n_Mesh_1451.threeDLayer = true;\r\n_Mesh_1451.source.name = \"_Mesh_1451\";\r\n_Mesh_1451.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1451.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1451.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1450 = newComp.layers.addNull();\r\n_Mesh_1450.threeDLayer = true;\r\n_Mesh_1450.source.name = \"_Mesh_1450\";\r\n_Mesh_1450.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1450.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1450.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1453 = newComp.layers.addNull();\r\n_Mesh_1453.threeDLayer = true;\r\n_Mesh_1453.source.name = \"_Mesh_1453\";\r\n_Mesh_1453.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1453.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1453.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1452 = newComp.layers.addNull();\r\n_Mesh_1452.threeDLayer = true;\r\n_Mesh_1452.source.name = \"_Mesh_1452\";\r\n_Mesh_1452.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1452.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1452.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1455 = newComp.layers.addNull();\r\n_Mesh_1455.threeDLayer = true;\r\n_Mesh_1455.source.name = \"_Mesh_1455\";\r\n_Mesh_1455.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1455.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1455.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1454 = newComp.layers.addNull();\r\n_Mesh_1454.threeDLayer = true;\r\n_Mesh_1454.source.name = \"_Mesh_1454\";\r\n_Mesh_1454.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1454.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1454.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1457 = newComp.layers.addNull();\r\n_Mesh_1457.threeDLayer = true;\r\n_Mesh_1457.source.name = \"_Mesh_1457\";\r\n_Mesh_1457.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1457.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1457.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1456 = newComp.layers.addNull();\r\n_Mesh_1456.threeDLayer = true;\r\n_Mesh_1456.source.name = \"_Mesh_1456\";\r\n_Mesh_1456.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1456.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1456.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1459 = newComp.layers.addNull();\r\n_Mesh_1459.threeDLayer = true;\r\n_Mesh_1459.source.name = \"_Mesh_1459\";\r\n_Mesh_1459.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1459.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1459.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1458 = newComp.layers.addNull();\r\n_Mesh_1458.threeDLayer = true;\r\n_Mesh_1458.source.name = \"_Mesh_1458\";\r\n_Mesh_1458.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1458.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1458.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1297 = newComp.layers.addNull();\r\n_Mesh_1297.threeDLayer = true;\r\n_Mesh_1297.source.name = \"_Mesh_1297\";\r\n_Mesh_1297.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1297.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1297.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1296 = newComp.layers.addNull();\r\n_Mesh_1296.threeDLayer = true;\r\n_Mesh_1296.source.name = \"_Mesh_1296\";\r\n_Mesh_1296.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1296.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1296.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1295 = newComp.layers.addNull();\r\n_Mesh_1295.threeDLayer = true;\r\n_Mesh_1295.source.name = \"_Mesh_1295\";\r\n_Mesh_1295.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1295.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1295.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1294 = newComp.layers.addNull();\r\n_Mesh_1294.threeDLayer = true;\r\n_Mesh_1294.source.name = \"_Mesh_1294\";\r\n_Mesh_1294.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1294.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1294.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1293 = newComp.layers.addNull();\r\n_Mesh_1293.threeDLayer = true;\r\n_Mesh_1293.source.name = \"_Mesh_1293\";\r\n_Mesh_1293.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1293.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1293.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1292 = newComp.layers.addNull();\r\n_Mesh_1292.threeDLayer = true;\r\n_Mesh_1292.source.name = \"_Mesh_1292\";\r\n_Mesh_1292.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1292.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1292.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1290 = newComp.layers.addNull();\r\n_Mesh_1290.threeDLayer = true;\r\n_Mesh_1290.source.name = \"_Mesh_1290\";\r\n_Mesh_1290.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1290.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1290.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1299 = newComp.layers.addNull();\r\n_Mesh_1299.threeDLayer = true;\r\n_Mesh_1299.source.name = \"_Mesh_1299\";\r\n_Mesh_1299.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1299.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1299.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1298 = newComp.layers.addNull();\r\n_Mesh_1298.threeDLayer = true;\r\n_Mesh_1298.source.name = \"_Mesh_1298\";\r\n_Mesh_1298.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1298.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1298.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1078 = newComp.layers.addNull();\r\n_Mesh_1078.threeDLayer = true;\r\n_Mesh_1078.source.name = \"_Mesh_1078\";\r\n_Mesh_1078.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1078.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1078.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1077 = newComp.layers.addNull();\r\n_Mesh_1077.threeDLayer = true;\r\n_Mesh_1077.source.name = \"_Mesh_1077\";\r\n_Mesh_1077.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1077.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1077.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1076 = newComp.layers.addNull();\r\n_Mesh_1076.threeDLayer = true;\r\n_Mesh_1076.source.name = \"_Mesh_1076\";\r\n_Mesh_1076.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1076.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1076.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1075 = newComp.layers.addNull();\r\n_Mesh_1075.threeDLayer = true;\r\n_Mesh_1075.source.name = \"_Mesh_1075\";\r\n_Mesh_1075.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1075.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1075.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1074 = newComp.layers.addNull();\r\n_Mesh_1074.threeDLayer = true;\r\n_Mesh_1074.source.name = \"_Mesh_1074\";\r\n_Mesh_1074.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1074.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1074.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1073 = newComp.layers.addNull();\r\n_Mesh_1073.threeDLayer = true;\r\n_Mesh_1073.source.name = \"_Mesh_1073\";\r\n_Mesh_1073.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1073.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1073.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1072 = newComp.layers.addNull();\r\n_Mesh_1072.threeDLayer = true;\r\n_Mesh_1072.source.name = \"_Mesh_1072\";\r\n_Mesh_1072.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1072.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1072.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1071 = newComp.layers.addNull();\r\n_Mesh_1071.threeDLayer = true;\r\n_Mesh_1071.source.name = \"_Mesh_1071\";\r\n_Mesh_1071.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1071.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1071.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1070 = newComp.layers.addNull();\r\n_Mesh_1070.threeDLayer = true;\r\n_Mesh_1070.source.name = \"_Mesh_1070\";\r\n_Mesh_1070.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1070.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1070.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1279 = newComp.layers.addNull();\r\n_Mesh_1279.threeDLayer = true;\r\n_Mesh_1279.source.name = \"_Mesh_1279\";\r\n_Mesh_1279.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1279.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1279.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1278 = newComp.layers.addNull();\r\n_Mesh_1278.threeDLayer = true;\r\n_Mesh_1278.source.name = \"_Mesh_1278\";\r\n_Mesh_1278.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1278.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1278.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1271 = newComp.layers.addNull();\r\n_Mesh_1271.threeDLayer = true;\r\n_Mesh_1271.source.name = \"_Mesh_1271\";\r\n_Mesh_1271.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1271.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1271.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1270 = newComp.layers.addNull();\r\n_Mesh_1270.threeDLayer = true;\r\n_Mesh_1270.source.name = \"_Mesh_1270\";\r\n_Mesh_1270.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1270.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1270.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1273 = newComp.layers.addNull();\r\n_Mesh_1273.threeDLayer = true;\r\n_Mesh_1273.source.name = \"_Mesh_1273\";\r\n_Mesh_1273.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1273.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1273.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1272 = newComp.layers.addNull();\r\n_Mesh_1272.threeDLayer = true;\r\n_Mesh_1272.source.name = \"_Mesh_1272\";\r\n_Mesh_1272.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1272.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1272.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1275 = newComp.layers.addNull();\r\n_Mesh_1275.threeDLayer = true;\r\n_Mesh_1275.source.name = \"_Mesh_1275\";\r\n_Mesh_1275.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1275.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1275.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1274 = newComp.layers.addNull();\r\n_Mesh_1274.threeDLayer = true;\r\n_Mesh_1274.source.name = \"_Mesh_1274\";\r\n_Mesh_1274.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1274.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1274.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1277 = newComp.layers.addNull();\r\n_Mesh_1277.threeDLayer = true;\r\n_Mesh_1277.source.name = \"_Mesh_1277\";\r\n_Mesh_1277.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1277.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1277.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1276 = newComp.layers.addNull();\r\n_Mesh_1276.threeDLayer = true;\r\n_Mesh_1276.source.name = \"_Mesh_1276\";\r\n_Mesh_1276.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1276.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1276.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1189 = newComp.layers.addNull();\r\n_Mesh_1189.threeDLayer = true;\r\n_Mesh_1189.source.name = \"_Mesh_1189\";\r\n_Mesh_1189.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1189.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1189.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1188 = newComp.layers.addNull();\r\n_Mesh_1188.threeDLayer = true;\r\n_Mesh_1188.source.name = \"_Mesh_1188\";\r\n_Mesh_1188.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1188.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1188.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1183 = newComp.layers.addNull();\r\n_Mesh_1183.threeDLayer = true;\r\n_Mesh_1183.source.name = \"_Mesh_1183\";\r\n_Mesh_1183.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1183.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1183.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1182 = newComp.layers.addNull();\r\n_Mesh_1182.threeDLayer = true;\r\n_Mesh_1182.source.name = \"_Mesh_1182\";\r\n_Mesh_1182.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1182.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1182.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1181 = newComp.layers.addNull();\r\n_Mesh_1181.threeDLayer = true;\r\n_Mesh_1181.source.name = \"_Mesh_1181\";\r\n_Mesh_1181.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1181.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1181.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1180 = newComp.layers.addNull();\r\n_Mesh_1180.threeDLayer = true;\r\n_Mesh_1180.source.name = \"_Mesh_1180\";\r\n_Mesh_1180.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1180.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1180.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1187 = newComp.layers.addNull();\r\n_Mesh_1187.threeDLayer = true;\r\n_Mesh_1187.source.name = \"_Mesh_1187\";\r\n_Mesh_1187.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1187.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1187.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1186 = newComp.layers.addNull();\r\n_Mesh_1186.threeDLayer = true;\r\n_Mesh_1186.source.name = \"_Mesh_1186\";\r\n_Mesh_1186.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1186.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1186.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1185 = newComp.layers.addNull();\r\n_Mesh_1185.threeDLayer = true;\r\n_Mesh_1185.source.name = \"_Mesh_1185\";\r\n_Mesh_1185.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1185.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1185.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1184 = newComp.layers.addNull();\r\n_Mesh_1184.threeDLayer = true;\r\n_Mesh_1184.source.name = \"_Mesh_1184\";\r\n_Mesh_1184.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1184.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1184.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_448 = newComp.layers.addNull();\r\n_Mesh_448.threeDLayer = true;\r\n_Mesh_448.source.name = \"_Mesh_448\";\r\n_Mesh_448.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_448.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_448.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_449 = newComp.layers.addNull();\r\n_Mesh_449.threeDLayer = true;\r\n_Mesh_449.source.name = \"_Mesh_449\";\r\n_Mesh_449.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_449.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_449.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_440 = newComp.layers.addNull();\r\n_Mesh_440.threeDLayer = true;\r\n_Mesh_440.source.name = \"_Mesh_440\";\r\n_Mesh_440.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_440.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_440.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_441 = newComp.layers.addNull();\r\n_Mesh_441.threeDLayer = true;\r\n_Mesh_441.source.name = \"_Mesh_441\";\r\n_Mesh_441.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_441.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_441.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_442 = newComp.layers.addNull();\r\n_Mesh_442.threeDLayer = true;\r\n_Mesh_442.source.name = \"_Mesh_442\";\r\n_Mesh_442.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_442.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_442.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_443 = newComp.layers.addNull();\r\n_Mesh_443.threeDLayer = true;\r\n_Mesh_443.source.name = \"_Mesh_443\";\r\n_Mesh_443.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_443.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_443.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_444 = newComp.layers.addNull();\r\n_Mesh_444.threeDLayer = true;\r\n_Mesh_444.source.name = \"_Mesh_444\";\r\n_Mesh_444.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_444.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_444.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_445 = newComp.layers.addNull();\r\n_Mesh_445.threeDLayer = true;\r\n_Mesh_445.source.name = \"_Mesh_445\";\r\n_Mesh_445.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_445.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_445.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_446 = newComp.layers.addNull();\r\n_Mesh_446.threeDLayer = true;\r\n_Mesh_446.source.name = \"_Mesh_446\";\r\n_Mesh_446.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_446.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_446.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_447 = newComp.layers.addNull();\r\n_Mesh_447.threeDLayer = true;\r\n_Mesh_447.source.name = \"_Mesh_447\";\r\n_Mesh_447.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_447.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_447.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_844 = newComp.layers.addNull();\r\n_Mesh_844.threeDLayer = true;\r\n_Mesh_844.source.name = \"_Mesh_844\";\r\n_Mesh_844.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_844.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_844.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_845 = newComp.layers.addNull();\r\n_Mesh_845.threeDLayer = true;\r\n_Mesh_845.source.name = \"_Mesh_845\";\r\n_Mesh_845.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_845.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_845.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_846 = newComp.layers.addNull();\r\n_Mesh_846.threeDLayer = true;\r\n_Mesh_846.source.name = \"_Mesh_846\";\r\n_Mesh_846.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_846.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_846.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_847 = newComp.layers.addNull();\r\n_Mesh_847.threeDLayer = true;\r\n_Mesh_847.source.name = \"_Mesh_847\";\r\n_Mesh_847.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_847.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_847.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_840 = newComp.layers.addNull();\r\n_Mesh_840.threeDLayer = true;\r\n_Mesh_840.source.name = \"_Mesh_840\";\r\n_Mesh_840.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_840.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_840.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_841 = newComp.layers.addNull();\r\n_Mesh_841.threeDLayer = true;\r\n_Mesh_841.source.name = \"_Mesh_841\";\r\n_Mesh_841.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_841.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_841.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_842 = newComp.layers.addNull();\r\n_Mesh_842.threeDLayer = true;\r\n_Mesh_842.source.name = \"_Mesh_842\";\r\n_Mesh_842.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_842.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_842.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_843 = newComp.layers.addNull();\r\n_Mesh_843.threeDLayer = true;\r\n_Mesh_843.source.name = \"_Mesh_843\";\r\n_Mesh_843.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_843.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_843.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_848 = newComp.layers.addNull();\r\n_Mesh_848.threeDLayer = true;\r\n_Mesh_848.source.name = \"_Mesh_848\";\r\n_Mesh_848.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_848.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_848.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_849 = newComp.layers.addNull();\r\n_Mesh_849.threeDLayer = true;\r\n_Mesh_849.source.name = \"_Mesh_849\";\r\n_Mesh_849.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_849.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_849.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_628 = newComp.layers.addNull();\r\n_Mesh_628.threeDLayer = true;\r\n_Mesh_628.source.name = \"_Mesh_628\";\r\n_Mesh_628.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_628.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_628.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_629 = newComp.layers.addNull();\r\n_Mesh_629.threeDLayer = true;\r\n_Mesh_629.source.name = \"_Mesh_629\";\r\n_Mesh_629.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_629.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_629.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_624 = newComp.layers.addNull();\r\n_Mesh_624.threeDLayer = true;\r\n_Mesh_624.source.name = \"_Mesh_624\";\r\n_Mesh_624.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_624.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_624.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_625 = newComp.layers.addNull();\r\n_Mesh_625.threeDLayer = true;\r\n_Mesh_625.source.name = \"_Mesh_625\";\r\n_Mesh_625.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_625.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_625.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_626 = newComp.layers.addNull();\r\n_Mesh_626.threeDLayer = true;\r\n_Mesh_626.source.name = \"_Mesh_626\";\r\n_Mesh_626.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_626.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_626.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_627 = newComp.layers.addNull();\r\n_Mesh_627.threeDLayer = true;\r\n_Mesh_627.source.name = \"_Mesh_627\";\r\n_Mesh_627.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_627.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_627.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_620 = newComp.layers.addNull();\r\n_Mesh_620.threeDLayer = true;\r\n_Mesh_620.source.name = \"_Mesh_620\";\r\n_Mesh_620.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_620.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_620.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_621 = newComp.layers.addNull();\r\n_Mesh_621.threeDLayer = true;\r\n_Mesh_621.source.name = \"_Mesh_621\";\r\n_Mesh_621.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_621.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_621.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_622 = newComp.layers.addNull();\r\n_Mesh_622.threeDLayer = true;\r\n_Mesh_622.source.name = \"_Mesh_622\";\r\n_Mesh_622.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_622.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_622.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_623 = newComp.layers.addNull();\r\n_Mesh_623.threeDLayer = true;\r\n_Mesh_623.source.name = \"_Mesh_623\";\r\n_Mesh_623.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_623.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_623.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_938 = newComp.layers.addNull();\r\n_Mesh_938.threeDLayer = true;\r\n_Mesh_938.source.name = \"_Mesh_938\";\r\n_Mesh_938.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_938.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_938.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_939 = newComp.layers.addNull();\r\n_Mesh_939.threeDLayer = true;\r\n_Mesh_939.source.name = \"_Mesh_939\";\r\n_Mesh_939.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_939.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_939.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_930 = newComp.layers.addNull();\r\n_Mesh_930.threeDLayer = true;\r\n_Mesh_930.source.name = \"_Mesh_930\";\r\n_Mesh_930.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_930.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_930.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_931 = newComp.layers.addNull();\r\n_Mesh_931.threeDLayer = true;\r\n_Mesh_931.source.name = \"_Mesh_931\";\r\n_Mesh_931.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_931.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_931.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_932 = newComp.layers.addNull();\r\n_Mesh_932.threeDLayer = true;\r\n_Mesh_932.source.name = \"_Mesh_932\";\r\n_Mesh_932.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_932.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_932.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_933 = newComp.layers.addNull();\r\n_Mesh_933.threeDLayer = true;\r\n_Mesh_933.source.name = \"_Mesh_933\";\r\n_Mesh_933.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_933.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_933.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_934 = newComp.layers.addNull();\r\n_Mesh_934.threeDLayer = true;\r\n_Mesh_934.source.name = \"_Mesh_934\";\r\n_Mesh_934.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_934.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_934.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_935 = newComp.layers.addNull();\r\n_Mesh_935.threeDLayer = true;\r\n_Mesh_935.source.name = \"_Mesh_935\";\r\n_Mesh_935.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_935.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_935.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_936 = newComp.layers.addNull();\r\n_Mesh_936.threeDLayer = true;\r\n_Mesh_936.source.name = \"_Mesh_936\";\r\n_Mesh_936.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_936.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_936.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_937 = newComp.layers.addNull();\r\n_Mesh_937.threeDLayer = true;\r\n_Mesh_937.source.name = \"_Mesh_937\";\r\n_Mesh_937.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_937.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_937.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_710 = newComp.layers.addNull();\r\n_Mesh_710.threeDLayer = true;\r\n_Mesh_710.source.name = \"_Mesh_710\";\r\n_Mesh_710.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_710.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_710.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_711 = newComp.layers.addNull();\r\n_Mesh_711.threeDLayer = true;\r\n_Mesh_711.source.name = \"_Mesh_711\";\r\n_Mesh_711.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_711.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_711.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_712 = newComp.layers.addNull();\r\n_Mesh_712.threeDLayer = true;\r\n_Mesh_712.source.name = \"_Mesh_712\";\r\n_Mesh_712.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_712.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_712.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_713 = newComp.layers.addNull();\r\n_Mesh_713.threeDLayer = true;\r\n_Mesh_713.source.name = \"_Mesh_713\";\r\n_Mesh_713.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_713.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_713.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_714 = newComp.layers.addNull();\r\n_Mesh_714.threeDLayer = true;\r\n_Mesh_714.source.name = \"_Mesh_714\";\r\n_Mesh_714.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_714.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_714.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_715 = newComp.layers.addNull();\r\n_Mesh_715.threeDLayer = true;\r\n_Mesh_715.source.name = \"_Mesh_715\";\r\n_Mesh_715.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_715.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_715.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_716 = newComp.layers.addNull();\r\n_Mesh_716.threeDLayer = true;\r\n_Mesh_716.source.name = \"_Mesh_716\";\r\n_Mesh_716.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_716.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_716.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_717 = newComp.layers.addNull();\r\n_Mesh_717.threeDLayer = true;\r\n_Mesh_717.source.name = \"_Mesh_717\";\r\n_Mesh_717.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_717.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_717.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_718 = newComp.layers.addNull();\r\n_Mesh_718.threeDLayer = true;\r\n_Mesh_718.source.name = \"_Mesh_718\";\r\n_Mesh_718.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_718.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_718.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_719 = newComp.layers.addNull();\r\n_Mesh_719.threeDLayer = true;\r\n_Mesh_719.source.name = \"_Mesh_719\";\r\n_Mesh_719.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_719.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_719.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_156 = newComp.layers.addNull();\r\n_Mesh_156.threeDLayer = true;\r\n_Mesh_156.source.name = \"_Mesh_156\";\r\n_Mesh_156.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_156.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_156.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_157 = newComp.layers.addNull();\r\n_Mesh_157.threeDLayer = true;\r\n_Mesh_157.source.name = \"_Mesh_157\";\r\n_Mesh_157.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_157.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_157.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_154 = newComp.layers.addNull();\r\n_Mesh_154.threeDLayer = true;\r\n_Mesh_154.source.name = \"_Mesh_154\";\r\n_Mesh_154.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_154.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_154.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_155 = newComp.layers.addNull();\r\n_Mesh_155.threeDLayer = true;\r\n_Mesh_155.source.name = \"_Mesh_155\";\r\n_Mesh_155.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_155.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_155.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_152 = newComp.layers.addNull();\r\n_Mesh_152.threeDLayer = true;\r\n_Mesh_152.source.name = \"_Mesh_152\";\r\n_Mesh_152.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_152.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_152.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_153 = newComp.layers.addNull();\r\n_Mesh_153.threeDLayer = true;\r\n_Mesh_153.source.name = \"_Mesh_153\";\r\n_Mesh_153.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_153.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_153.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_150 = newComp.layers.addNull();\r\n_Mesh_150.threeDLayer = true;\r\n_Mesh_150.source.name = \"_Mesh_150\";\r\n_Mesh_150.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_150.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_150.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_151 = newComp.layers.addNull();\r\n_Mesh_151.threeDLayer = true;\r\n_Mesh_151.source.name = \"_Mesh_151\";\r\n_Mesh_151.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_151.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_151.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_158 = newComp.layers.addNull();\r\n_Mesh_158.threeDLayer = true;\r\n_Mesh_158.source.name = \"_Mesh_158\";\r\n_Mesh_158.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_158.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_158.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_159 = newComp.layers.addNull();\r\n_Mesh_159.threeDLayer = true;\r\n_Mesh_159.source.name = \"_Mesh_159\";\r\n_Mesh_159.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_159.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_159.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1464 = newComp.layers.addNull();\r\n_Mesh_1464.threeDLayer = true;\r\n_Mesh_1464.source.name = \"_Mesh_1464\";\r\n_Mesh_1464.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1464.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1464.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1465 = newComp.layers.addNull();\r\n_Mesh_1465.threeDLayer = true;\r\n_Mesh_1465.source.name = \"_Mesh_1465\";\r\n_Mesh_1465.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1465.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1465.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1466 = newComp.layers.addNull();\r\n_Mesh_1466.threeDLayer = true;\r\n_Mesh_1466.source.name = \"_Mesh_1466\";\r\n_Mesh_1466.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1466.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1466.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1467 = newComp.layers.addNull();\r\n_Mesh_1467.threeDLayer = true;\r\n_Mesh_1467.source.name = \"_Mesh_1467\";\r\n_Mesh_1467.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1467.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1467.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1460 = newComp.layers.addNull();\r\n_Mesh_1460.threeDLayer = true;\r\n_Mesh_1460.source.name = \"_Mesh_1460\";\r\n_Mesh_1460.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1460.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1460.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1461 = newComp.layers.addNull();\r\n_Mesh_1461.threeDLayer = true;\r\n_Mesh_1461.source.name = \"_Mesh_1461\";\r\n_Mesh_1461.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1461.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1461.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1462 = newComp.layers.addNull();\r\n_Mesh_1462.threeDLayer = true;\r\n_Mesh_1462.source.name = \"_Mesh_1462\";\r\n_Mesh_1462.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1462.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1462.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1463 = newComp.layers.addNull();\r\n_Mesh_1463.threeDLayer = true;\r\n_Mesh_1463.source.name = \"_Mesh_1463\";\r\n_Mesh_1463.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1463.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1463.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1468 = newComp.layers.addNull();\r\n_Mesh_1468.threeDLayer = true;\r\n_Mesh_1468.source.name = \"_Mesh_1468\";\r\n_Mesh_1468.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1468.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1468.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1469 = newComp.layers.addNull();\r\n_Mesh_1469.threeDLayer = true;\r\n_Mesh_1469.source.name = \"_Mesh_1469\";\r\n_Mesh_1469.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1469.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1469.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_911 = newComp.layers.addNull();\r\n_Mesh_911.threeDLayer = true;\r\n_Mesh_911.source.name = \"_Mesh_911\";\r\n_Mesh_911.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_911.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_911.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1510 = newComp.layers.addNull();\r\n_Mesh_1510.threeDLayer = true;\r\n_Mesh_1510.source.name = \"_Mesh_1510\";\r\n_Mesh_1510.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1510.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1510.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1511 = newComp.layers.addNull();\r\n_Mesh_1511.threeDLayer = true;\r\n_Mesh_1511.source.name = \"_Mesh_1511\";\r\n_Mesh_1511.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1511.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1511.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1512 = newComp.layers.addNull();\r\n_Mesh_1512.threeDLayer = true;\r\n_Mesh_1512.source.name = \"_Mesh_1512\";\r\n_Mesh_1512.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1512.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1512.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1513 = newComp.layers.addNull();\r\n_Mesh_1513.threeDLayer = true;\r\n_Mesh_1513.source.name = \"_Mesh_1513\";\r\n_Mesh_1513.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1513.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1513.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1514 = newComp.layers.addNull();\r\n_Mesh_1514.threeDLayer = true;\r\n_Mesh_1514.source.name = \"_Mesh_1514\";\r\n_Mesh_1514.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1514.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1514.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1515 = newComp.layers.addNull();\r\n_Mesh_1515.threeDLayer = true;\r\n_Mesh_1515.source.name = \"_Mesh_1515\";\r\n_Mesh_1515.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1515.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1515.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1516 = newComp.layers.addNull();\r\n_Mesh_1516.threeDLayer = true;\r\n_Mesh_1516.source.name = \"_Mesh_1516\";\r\n_Mesh_1516.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1516.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1516.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1517 = newComp.layers.addNull();\r\n_Mesh_1517.threeDLayer = true;\r\n_Mesh_1517.source.name = \"_Mesh_1517\";\r\n_Mesh_1517.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1517.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1517.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1518 = newComp.layers.addNull();\r\n_Mesh_1518.threeDLayer = true;\r\n_Mesh_1518.source.name = \"_Mesh_1518\";\r\n_Mesh_1518.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1518.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1518.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1519 = newComp.layers.addNull();\r\n_Mesh_1519.threeDLayer = true;\r\n_Mesh_1519.source.name = \"_Mesh_1519\";\r\n_Mesh_1519.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1519.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1519.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_521 = newComp.layers.addNull();\r\n_Mesh_521.threeDLayer = true;\r\n_Mesh_521.source.name = \"_Mesh_521\";\r\n_Mesh_521.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_521.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_521.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_520 = newComp.layers.addNull();\r\n_Mesh_520.threeDLayer = true;\r\n_Mesh_520.source.name = \"_Mesh_520\";\r\n_Mesh_520.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_520.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_520.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_917 = newComp.layers.addNull();\r\n_Mesh_917.threeDLayer = true;\r\n_Mesh_917.source.name = \"_Mesh_917\";\r\n_Mesh_917.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_917.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_917.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_527 = newComp.layers.addNull();\r\n_Mesh_527.threeDLayer = true;\r\n_Mesh_527.source.name = \"_Mesh_527\";\r\n_Mesh_527.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_527.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_527.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_526 = newComp.layers.addNull();\r\n_Mesh_526.threeDLayer = true;\r\n_Mesh_526.source.name = \"_Mesh_526\";\r\n_Mesh_526.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_526.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_526.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_525 = newComp.layers.addNull();\r\n_Mesh_525.threeDLayer = true;\r\n_Mesh_525.source.name = \"_Mesh_525\";\r\n_Mesh_525.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_525.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_525.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1082 = newComp.layers.addNull();\r\n_Mesh_1082.threeDLayer = true;\r\n_Mesh_1082.source.name = \"_Mesh_1082\";\r\n_Mesh_1082.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1082.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1082.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1083 = newComp.layers.addNull();\r\n_Mesh_1083.threeDLayer = true;\r\n_Mesh_1083.source.name = \"_Mesh_1083\";\r\n_Mesh_1083.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1083.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1083.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1081 = newComp.layers.addNull();\r\n_Mesh_1081.threeDLayer = true;\r\n_Mesh_1081.source.name = \"_Mesh_1081\";\r\n_Mesh_1081.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1081.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1081.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1086 = newComp.layers.addNull();\r\n_Mesh_1086.threeDLayer = true;\r\n_Mesh_1086.source.name = \"_Mesh_1086\";\r\n_Mesh_1086.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1086.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1086.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1087 = newComp.layers.addNull();\r\n_Mesh_1087.threeDLayer = true;\r\n_Mesh_1087.source.name = \"_Mesh_1087\";\r\n_Mesh_1087.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1087.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1087.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1084 = newComp.layers.addNull();\r\n_Mesh_1084.threeDLayer = true;\r\n_Mesh_1084.source.name = \"_Mesh_1084\";\r\n_Mesh_1084.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1084.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1084.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1085 = newComp.layers.addNull();\r\n_Mesh_1085.threeDLayer = true;\r\n_Mesh_1085.source.name = \"_Mesh_1085\";\r\n_Mesh_1085.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1085.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1085.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1088 = newComp.layers.addNull();\r\n_Mesh_1088.threeDLayer = true;\r\n_Mesh_1088.source.name = \"_Mesh_1088\";\r\n_Mesh_1088.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1088.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1088.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1089 = newComp.layers.addNull();\r\n_Mesh_1089.threeDLayer = true;\r\n_Mesh_1089.source.name = \"_Mesh_1089\";\r\n_Mesh_1089.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1089.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1089.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1248 = newComp.layers.addNull();\r\n_Mesh_1248.threeDLayer = true;\r\n_Mesh_1248.source.name = \"_Mesh_1248\";\r\n_Mesh_1248.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1248.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1248.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1249 = newComp.layers.addNull();\r\n_Mesh_1249.threeDLayer = true;\r\n_Mesh_1249.source.name = \"_Mesh_1249\";\r\n_Mesh_1249.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1249.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1249.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1244 = newComp.layers.addNull();\r\n_Mesh_1244.threeDLayer = true;\r\n_Mesh_1244.source.name = \"_Mesh_1244\";\r\n_Mesh_1244.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1244.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1244.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1245 = newComp.layers.addNull();\r\n_Mesh_1245.threeDLayer = true;\r\n_Mesh_1245.source.name = \"_Mesh_1245\";\r\n_Mesh_1245.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1245.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1245.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1246 = newComp.layers.addNull();\r\n_Mesh_1246.threeDLayer = true;\r\n_Mesh_1246.source.name = \"_Mesh_1246\";\r\n_Mesh_1246.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1246.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1246.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1247 = newComp.layers.addNull();\r\n_Mesh_1247.threeDLayer = true;\r\n_Mesh_1247.source.name = \"_Mesh_1247\";\r\n_Mesh_1247.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1247.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1247.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1240 = newComp.layers.addNull();\r\n_Mesh_1240.threeDLayer = true;\r\n_Mesh_1240.source.name = \"_Mesh_1240\";\r\n_Mesh_1240.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1240.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1240.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1241 = newComp.layers.addNull();\r\n_Mesh_1241.threeDLayer = true;\r\n_Mesh_1241.source.name = \"_Mesh_1241\";\r\n_Mesh_1241.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1241.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1241.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1242 = newComp.layers.addNull();\r\n_Mesh_1242.threeDLayer = true;\r\n_Mesh_1242.source.name = \"_Mesh_1242\";\r\n_Mesh_1242.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1242.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1242.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1243 = newComp.layers.addNull();\r\n_Mesh_1243.threeDLayer = true;\r\n_Mesh_1243.source.name = \"_Mesh_1243\";\r\n_Mesh_1243.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1243.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1243.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_439 = newComp.layers.addNull();\r\n_Mesh_439.threeDLayer = true;\r\n_Mesh_439.source.name = \"_Mesh_439\";\r\n_Mesh_439.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_439.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_439.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_438 = newComp.layers.addNull();\r\n_Mesh_438.threeDLayer = true;\r\n_Mesh_438.source.name = \"_Mesh_438\";\r\n_Mesh_438.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_438.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_438.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_435 = newComp.layers.addNull();\r\n_Mesh_435.threeDLayer = true;\r\n_Mesh_435.source.name = \"_Mesh_435\";\r\n_Mesh_435.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_435.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_435.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_437 = newComp.layers.addNull();\r\n_Mesh_437.threeDLayer = true;\r\n_Mesh_437.source.name = \"_Mesh_437\";\r\n_Mesh_437.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_437.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_437.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_436 = newComp.layers.addNull();\r\n_Mesh_436.threeDLayer = true;\r\n_Mesh_436.source.name = \"_Mesh_436\";\r\n_Mesh_436.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_436.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_436.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_433 = newComp.layers.addNull();\r\n_Mesh_433.threeDLayer = true;\r\n_Mesh_433.source.name = \"_Mesh_433\";\r\n_Mesh_433.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_433.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_433.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_432 = newComp.layers.addNull();\r\n_Mesh_432.threeDLayer = true;\r\n_Mesh_432.source.name = \"_Mesh_432\";\r\n_Mesh_432.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_432.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_432.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_383 = newComp.layers.addNull();\r\n_Mesh_383.threeDLayer = true;\r\n_Mesh_383.source.name = \"_Mesh_383\";\r\n_Mesh_383.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_383.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_383.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_382 = newComp.layers.addNull();\r\n_Mesh_382.threeDLayer = true;\r\n_Mesh_382.source.name = \"_Mesh_382\";\r\n_Mesh_382.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_382.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_382.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_381 = newComp.layers.addNull();\r\n_Mesh_381.threeDLayer = true;\r\n_Mesh_381.source.name = \"_Mesh_381\";\r\n_Mesh_381.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_381.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_381.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_380 = newComp.layers.addNull();\r\n_Mesh_380.threeDLayer = true;\r\n_Mesh_380.source.name = \"_Mesh_380\";\r\n_Mesh_380.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_380.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_380.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_387 = newComp.layers.addNull();\r\n_Mesh_387.threeDLayer = true;\r\n_Mesh_387.source.name = \"_Mesh_387\";\r\n_Mesh_387.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_387.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_387.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_386 = newComp.layers.addNull();\r\n_Mesh_386.threeDLayer = true;\r\n_Mesh_386.source.name = \"_Mesh_386\";\r\n_Mesh_386.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_386.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_386.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_385 = newComp.layers.addNull();\r\n_Mesh_385.threeDLayer = true;\r\n_Mesh_385.source.name = \"_Mesh_385\";\r\n_Mesh_385.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_385.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_385.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_384 = newComp.layers.addNull();\r\n_Mesh_384.threeDLayer = true;\r\n_Mesh_384.source.name = \"_Mesh_384\";\r\n_Mesh_384.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_384.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_384.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_388 = newComp.layers.addNull();\r\n_Mesh_388.threeDLayer = true;\r\n_Mesh_388.source.name = \"_Mesh_388\";\r\n_Mesh_388.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_388.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_388.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_541 = newComp.layers.addNull();\r\n_Mesh_541.threeDLayer = true;\r\n_Mesh_541.source.name = \"_Mesh_541\";\r\n_Mesh_541.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_541.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_541.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_540 = newComp.layers.addNull();\r\n_Mesh_540.threeDLayer = true;\r\n_Mesh_540.source.name = \"_Mesh_540\";\r\n_Mesh_540.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_540.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_540.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_543 = newComp.layers.addNull();\r\n_Mesh_543.threeDLayer = true;\r\n_Mesh_543.source.name = \"_Mesh_543\";\r\n_Mesh_543.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_543.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_543.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_542 = newComp.layers.addNull();\r\n_Mesh_542.threeDLayer = true;\r\n_Mesh_542.source.name = \"_Mesh_542\";\r\n_Mesh_542.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_542.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_542.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_545 = newComp.layers.addNull();\r\n_Mesh_545.threeDLayer = true;\r\n_Mesh_545.source.name = \"_Mesh_545\";\r\n_Mesh_545.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_545.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_545.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_544 = newComp.layers.addNull();\r\n_Mesh_544.threeDLayer = true;\r\n_Mesh_544.source.name = \"_Mesh_544\";\r\n_Mesh_544.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_544.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_544.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_547 = newComp.layers.addNull();\r\n_Mesh_547.threeDLayer = true;\r\n_Mesh_547.source.name = \"_Mesh_547\";\r\n_Mesh_547.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_547.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_547.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_546 = newComp.layers.addNull();\r\n_Mesh_546.threeDLayer = true;\r\n_Mesh_546.source.name = \"_Mesh_546\";\r\n_Mesh_546.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_546.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_546.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_549 = newComp.layers.addNull();\r\n_Mesh_549.threeDLayer = true;\r\n_Mesh_549.source.name = \"_Mesh_549\";\r\n_Mesh_549.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_549.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_549.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_548 = newComp.layers.addNull();\r\n_Mesh_548.threeDLayer = true;\r\n_Mesh_548.source.name = \"_Mesh_548\";\r\n_Mesh_548.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_548.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_548.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_895 = newComp.layers.addNull();\r\n_Mesh_895.threeDLayer = true;\r\n_Mesh_895.source.name = \"_Mesh_895\";\r\n_Mesh_895.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_895.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_895.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_894 = newComp.layers.addNull();\r\n_Mesh_894.threeDLayer = true;\r\n_Mesh_894.source.name = \"_Mesh_894\";\r\n_Mesh_894.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_894.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_894.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_893 = newComp.layers.addNull();\r\n_Mesh_893.threeDLayer = true;\r\n_Mesh_893.source.name = \"_Mesh_893\";\r\n_Mesh_893.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_893.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_893.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_892 = newComp.layers.addNull();\r\n_Mesh_892.threeDLayer = true;\r\n_Mesh_892.source.name = \"_Mesh_892\";\r\n_Mesh_892.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_892.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_892.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_891 = newComp.layers.addNull();\r\n_Mesh_891.threeDLayer = true;\r\n_Mesh_891.source.name = \"_Mesh_891\";\r\n_Mesh_891.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_891.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_891.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_890 = newComp.layers.addNull();\r\n_Mesh_890.threeDLayer = true;\r\n_Mesh_890.source.name = \"_Mesh_890\";\r\n_Mesh_890.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_890.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_890.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_949 = newComp.layers.addNull();\r\n_Mesh_949.threeDLayer = true;\r\n_Mesh_949.source.name = \"_Mesh_949\";\r\n_Mesh_949.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_949.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_949.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_948 = newComp.layers.addNull();\r\n_Mesh_948.threeDLayer = true;\r\n_Mesh_948.source.name = \"_Mesh_948\";\r\n_Mesh_948.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_948.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_948.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_944 = newComp.layers.addNull();\r\n_Mesh_944.threeDLayer = true;\r\n_Mesh_944.source.name = \"_Mesh_944\";\r\n_Mesh_944.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_944.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_944.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_947 = newComp.layers.addNull();\r\n_Mesh_947.threeDLayer = true;\r\n_Mesh_947.source.name = \"_Mesh_947\";\r\n_Mesh_947.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_947.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_947.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_946 = newComp.layers.addNull();\r\n_Mesh_946.threeDLayer = true;\r\n_Mesh_946.source.name = \"_Mesh_946\";\r\n_Mesh_946.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_946.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_946.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_941 = newComp.layers.addNull();\r\n_Mesh_941.threeDLayer = true;\r\n_Mesh_941.source.name = \"_Mesh_941\";\r\n_Mesh_941.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_941.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_941.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_940 = newComp.layers.addNull();\r\n_Mesh_940.threeDLayer = true;\r\n_Mesh_940.source.name = \"_Mesh_940\";\r\n_Mesh_940.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_940.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_940.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_943 = newComp.layers.addNull();\r\n_Mesh_943.threeDLayer = true;\r\n_Mesh_943.source.name = \"_Mesh_943\";\r\n_Mesh_943.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_943.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_943.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_942 = newComp.layers.addNull();\r\n_Mesh_942.threeDLayer = true;\r\n_Mesh_942.source.name = \"_Mesh_942\";\r\n_Mesh_942.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_942.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_942.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_765 = newComp.layers.addNull();\r\n_Mesh_765.threeDLayer = true;\r\n_Mesh_765.source.name = \"_Mesh_765\";\r\n_Mesh_765.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_765.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_765.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_764 = newComp.layers.addNull();\r\n_Mesh_764.threeDLayer = true;\r\n_Mesh_764.source.name = \"_Mesh_764\";\r\n_Mesh_764.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_764.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_764.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_767 = newComp.layers.addNull();\r\n_Mesh_767.threeDLayer = true;\r\n_Mesh_767.source.name = \"_Mesh_767\";\r\n_Mesh_767.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_767.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_767.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_766 = newComp.layers.addNull();\r\n_Mesh_766.threeDLayer = true;\r\n_Mesh_766.source.name = \"_Mesh_766\";\r\n_Mesh_766.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_766.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_766.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_761 = newComp.layers.addNull();\r\n_Mesh_761.threeDLayer = true;\r\n_Mesh_761.source.name = \"_Mesh_761\";\r\n_Mesh_761.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_761.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_761.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_760 = newComp.layers.addNull();\r\n_Mesh_760.threeDLayer = true;\r\n_Mesh_760.source.name = \"_Mesh_760\";\r\n_Mesh_760.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_760.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_760.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_763 = newComp.layers.addNull();\r\n_Mesh_763.threeDLayer = true;\r\n_Mesh_763.source.name = \"_Mesh_763\";\r\n_Mesh_763.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_763.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_763.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_762 = newComp.layers.addNull();\r\n_Mesh_762.threeDLayer = true;\r\n_Mesh_762.source.name = \"_Mesh_762\";\r\n_Mesh_762.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_762.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_762.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_769 = newComp.layers.addNull();\r\n_Mesh_769.threeDLayer = true;\r\n_Mesh_769.source.name = \"_Mesh_769\";\r\n_Mesh_769.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_769.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_769.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_768 = newComp.layers.addNull();\r\n_Mesh_768.threeDLayer = true;\r\n_Mesh_768.source.name = \"_Mesh_768\";\r\n_Mesh_768.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_768.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_768.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_099 = newComp.layers.addNull();\r\n_Mesh_099.threeDLayer = true;\r\n_Mesh_099.source.name = \"_Mesh_099\";\r\n_Mesh_099.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_099.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_099.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_098 = newComp.layers.addNull();\r\n_Mesh_098.threeDLayer = true;\r\n_Mesh_098.source.name = \"_Mesh_098\";\r\n_Mesh_098.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_098.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_098.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_169 = newComp.layers.addNull();\r\n_Mesh_169.threeDLayer = true;\r\n_Mesh_169.source.name = \"_Mesh_169\";\r\n_Mesh_169.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_169.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_169.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_168 = newComp.layers.addNull();\r\n_Mesh_168.threeDLayer = true;\r\n_Mesh_168.source.name = \"_Mesh_168\";\r\n_Mesh_168.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_168.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_168.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_163 = newComp.layers.addNull();\r\n_Mesh_163.threeDLayer = true;\r\n_Mesh_163.source.name = \"_Mesh_163\";\r\n_Mesh_163.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_163.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_163.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_162 = newComp.layers.addNull();\r\n_Mesh_162.threeDLayer = true;\r\n_Mesh_162.source.name = \"_Mesh_162\";\r\n_Mesh_162.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_162.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_162.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_161 = newComp.layers.addNull();\r\n_Mesh_161.threeDLayer = true;\r\n_Mesh_161.source.name = \"_Mesh_161\";\r\n_Mesh_161.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_161.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_161.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_160 = newComp.layers.addNull();\r\n_Mesh_160.threeDLayer = true;\r\n_Mesh_160.source.name = \"_Mesh_160\";\r\n_Mesh_160.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_160.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_160.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_167 = newComp.layers.addNull();\r\n_Mesh_167.threeDLayer = true;\r\n_Mesh_167.source.name = \"_Mesh_167\";\r\n_Mesh_167.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_167.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_167.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_166 = newComp.layers.addNull();\r\n_Mesh_166.threeDLayer = true;\r\n_Mesh_166.source.name = \"_Mesh_166\";\r\n_Mesh_166.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_166.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_166.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_165 = newComp.layers.addNull();\r\n_Mesh_165.threeDLayer = true;\r\n_Mesh_165.source.name = \"_Mesh_165\";\r\n_Mesh_165.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_165.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_165.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_164 = newComp.layers.addNull();\r\n_Mesh_164.threeDLayer = true;\r\n_Mesh_164.source.name = \"_Mesh_164\";\r\n_Mesh_164.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_164.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_164.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_369 = newComp.layers.addNull();\r\n_Mesh_369.threeDLayer = true;\r\n_Mesh_369.source.name = \"_Mesh_369\";\r\n_Mesh_369.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_369.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_369.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_368 = newComp.layers.addNull();\r\n_Mesh_368.threeDLayer = true;\r\n_Mesh_368.source.name = \"_Mesh_368\";\r\n_Mesh_368.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_368.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_368.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_361 = newComp.layers.addNull();\r\n_Mesh_361.threeDLayer = true;\r\n_Mesh_361.source.name = \"_Mesh_361\";\r\n_Mesh_361.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_361.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_361.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_360 = newComp.layers.addNull();\r\n_Mesh_360.threeDLayer = true;\r\n_Mesh_360.source.name = \"_Mesh_360\";\r\n_Mesh_360.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_360.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_360.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_363 = newComp.layers.addNull();\r\n_Mesh_363.threeDLayer = true;\r\n_Mesh_363.source.name = \"_Mesh_363\";\r\n_Mesh_363.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_363.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_363.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_362 = newComp.layers.addNull();\r\n_Mesh_362.threeDLayer = true;\r\n_Mesh_362.source.name = \"_Mesh_362\";\r\n_Mesh_362.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_362.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_362.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_365 = newComp.layers.addNull();\r\n_Mesh_365.threeDLayer = true;\r\n_Mesh_365.source.name = \"_Mesh_365\";\r\n_Mesh_365.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_365.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_365.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_364 = newComp.layers.addNull();\r\n_Mesh_364.threeDLayer = true;\r\n_Mesh_364.source.name = \"_Mesh_364\";\r\n_Mesh_364.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_364.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_364.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_367 = newComp.layers.addNull();\r\n_Mesh_367.threeDLayer = true;\r\n_Mesh_367.source.name = \"_Mesh_367\";\r\n_Mesh_367.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_367.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_367.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_366 = newComp.layers.addNull();\r\n_Mesh_366.threeDLayer = true;\r\n_Mesh_366.source.name = \"_Mesh_366\";\r\n_Mesh_366.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_366.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_366.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1507 = newComp.layers.addNull();\r\n_Mesh_1507.threeDLayer = true;\r\n_Mesh_1507.source.name = \"_Mesh_1507\";\r\n_Mesh_1507.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1507.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1507.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1506 = newComp.layers.addNull();\r\n_Mesh_1506.threeDLayer = true;\r\n_Mesh_1506.source.name = \"_Mesh_1506\";\r\n_Mesh_1506.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1506.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1506.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1505 = newComp.layers.addNull();\r\n_Mesh_1505.threeDLayer = true;\r\n_Mesh_1505.source.name = \"_Mesh_1505\";\r\n_Mesh_1505.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1505.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1505.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1504 = newComp.layers.addNull();\r\n_Mesh_1504.threeDLayer = true;\r\n_Mesh_1504.source.name = \"_Mesh_1504\";\r\n_Mesh_1504.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1504.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1504.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1503 = newComp.layers.addNull();\r\n_Mesh_1503.threeDLayer = true;\r\n_Mesh_1503.source.name = \"_Mesh_1503\";\r\n_Mesh_1503.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1503.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1503.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1502 = newComp.layers.addNull();\r\n_Mesh_1502.threeDLayer = true;\r\n_Mesh_1502.source.name = \"_Mesh_1502\";\r\n_Mesh_1502.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1502.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1502.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1501 = newComp.layers.addNull();\r\n_Mesh_1501.threeDLayer = true;\r\n_Mesh_1501.source.name = \"_Mesh_1501\";\r\n_Mesh_1501.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1501.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1501.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1500 = newComp.layers.addNull();\r\n_Mesh_1500.threeDLayer = true;\r\n_Mesh_1500.source.name = \"_Mesh_1500\";\r\n_Mesh_1500.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1500.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1500.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1509 = newComp.layers.addNull();\r\n_Mesh_1509.threeDLayer = true;\r\n_Mesh_1509.source.name = \"_Mesh_1509\";\r\n_Mesh_1509.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1509.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1509.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1508 = newComp.layers.addNull();\r\n_Mesh_1508.threeDLayer = true;\r\n_Mesh_1508.source.name = \"_Mesh_1508\";\r\n_Mesh_1508.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1508.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1508.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1479 = newComp.layers.addNull();\r\n_Mesh_1479.threeDLayer = true;\r\n_Mesh_1479.source.name = \"_Mesh_1479\";\r\n_Mesh_1479.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1479.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1479.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1478 = newComp.layers.addNull();\r\n_Mesh_1478.threeDLayer = true;\r\n_Mesh_1478.source.name = \"_Mesh_1478\";\r\n_Mesh_1478.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1478.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1478.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1473 = newComp.layers.addNull();\r\n_Mesh_1473.threeDLayer = true;\r\n_Mesh_1473.source.name = \"_Mesh_1473\";\r\n_Mesh_1473.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1473.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1473.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1472 = newComp.layers.addNull();\r\n_Mesh_1472.threeDLayer = true;\r\n_Mesh_1472.source.name = \"_Mesh_1472\";\r\n_Mesh_1472.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1472.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1472.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1471 = newComp.layers.addNull();\r\n_Mesh_1471.threeDLayer = true;\r\n_Mesh_1471.source.name = \"_Mesh_1471\";\r\n_Mesh_1471.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1471.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1471.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1470 = newComp.layers.addNull();\r\n_Mesh_1470.threeDLayer = true;\r\n_Mesh_1470.source.name = \"_Mesh_1470\";\r\n_Mesh_1470.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1470.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1470.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1477 = newComp.layers.addNull();\r\n_Mesh_1477.threeDLayer = true;\r\n_Mesh_1477.source.name = \"_Mesh_1477\";\r\n_Mesh_1477.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1477.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1477.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1476 = newComp.layers.addNull();\r\n_Mesh_1476.threeDLayer = true;\r\n_Mesh_1476.source.name = \"_Mesh_1476\";\r\n_Mesh_1476.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1476.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1476.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1475 = newComp.layers.addNull();\r\n_Mesh_1475.threeDLayer = true;\r\n_Mesh_1475.source.name = \"_Mesh_1475\";\r\n_Mesh_1475.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1475.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1475.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1474 = newComp.layers.addNull();\r\n_Mesh_1474.threeDLayer = true;\r\n_Mesh_1474.source.name = \"_Mesh_1474\";\r\n_Mesh_1474.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1474.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1474.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1091 = newComp.layers.addNull();\r\n_Mesh_1091.threeDLayer = true;\r\n_Mesh_1091.source.name = \"_Mesh_1091\";\r\n_Mesh_1091.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1091.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1091.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1090 = newComp.layers.addNull();\r\n_Mesh_1090.threeDLayer = true;\r\n_Mesh_1090.source.name = \"_Mesh_1090\";\r\n_Mesh_1090.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1090.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1090.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1093 = newComp.layers.addNull();\r\n_Mesh_1093.threeDLayer = true;\r\n_Mesh_1093.source.name = \"_Mesh_1093\";\r\n_Mesh_1093.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1093.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1093.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1092 = newComp.layers.addNull();\r\n_Mesh_1092.threeDLayer = true;\r\n_Mesh_1092.source.name = \"_Mesh_1092\";\r\n_Mesh_1092.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1092.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1092.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1095 = newComp.layers.addNull();\r\n_Mesh_1095.threeDLayer = true;\r\n_Mesh_1095.source.name = \"_Mesh_1095\";\r\n_Mesh_1095.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1095.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1095.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1094 = newComp.layers.addNull();\r\n_Mesh_1094.threeDLayer = true;\r\n_Mesh_1094.source.name = \"_Mesh_1094\";\r\n_Mesh_1094.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1094.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1094.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1097 = newComp.layers.addNull();\r\n_Mesh_1097.threeDLayer = true;\r\n_Mesh_1097.source.name = \"_Mesh_1097\";\r\n_Mesh_1097.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1097.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1097.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1096 = newComp.layers.addNull();\r\n_Mesh_1096.threeDLayer = true;\r\n_Mesh_1096.source.name = \"_Mesh_1096\";\r\n_Mesh_1096.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1096.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1096.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1099 = newComp.layers.addNull();\r\n_Mesh_1099.threeDLayer = true;\r\n_Mesh_1099.source.name = \"_Mesh_1099\";\r\n_Mesh_1099.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1099.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1099.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1098 = newComp.layers.addNull();\r\n_Mesh_1098.threeDLayer = true;\r\n_Mesh_1098.source.name = \"_Mesh_1098\";\r\n_Mesh_1098.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1098.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1098.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1253 = newComp.layers.addNull();\r\n_Mesh_1253.threeDLayer = true;\r\n_Mesh_1253.source.name = \"_Mesh_1253\";\r\n_Mesh_1253.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1253.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1253.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1252 = newComp.layers.addNull();\r\n_Mesh_1252.threeDLayer = true;\r\n_Mesh_1252.source.name = \"_Mesh_1252\";\r\n_Mesh_1252.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1252.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1252.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1251 = newComp.layers.addNull();\r\n_Mesh_1251.threeDLayer = true;\r\n_Mesh_1251.source.name = \"_Mesh_1251\";\r\n_Mesh_1251.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1251.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1251.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1250 = newComp.layers.addNull();\r\n_Mesh_1250.threeDLayer = true;\r\n_Mesh_1250.source.name = \"_Mesh_1250\";\r\n_Mesh_1250.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1250.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1250.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1257 = newComp.layers.addNull();\r\n_Mesh_1257.threeDLayer = true;\r\n_Mesh_1257.source.name = \"_Mesh_1257\";\r\n_Mesh_1257.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1257.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1257.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1256 = newComp.layers.addNull();\r\n_Mesh_1256.threeDLayer = true;\r\n_Mesh_1256.source.name = \"_Mesh_1256\";\r\n_Mesh_1256.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1256.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1256.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1255 = newComp.layers.addNull();\r\n_Mesh_1255.threeDLayer = true;\r\n_Mesh_1255.source.name = \"_Mesh_1255\";\r\n_Mesh_1255.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1255.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1255.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1254 = newComp.layers.addNull();\r\n_Mesh_1254.threeDLayer = true;\r\n_Mesh_1254.source.name = \"_Mesh_1254\";\r\n_Mesh_1254.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1254.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1254.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1259 = newComp.layers.addNull();\r\n_Mesh_1259.threeDLayer = true;\r\n_Mesh_1259.source.name = \"_Mesh_1259\";\r\n_Mesh_1259.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1259.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1259.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1258 = newComp.layers.addNull();\r\n_Mesh_1258.threeDLayer = true;\r\n_Mesh_1258.source.name = \"_Mesh_1258\";\r\n_Mesh_1258.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1258.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1258.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_303 = newComp.layers.addNull();\r\n_Mesh_303.threeDLayer = true;\r\n_Mesh_303.source.name = \"_Mesh_303\";\r\n_Mesh_303.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_303.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_303.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_428 = newComp.layers.addNull();\r\n_Mesh_428.threeDLayer = true;\r\n_Mesh_428.source.name = \"_Mesh_428\";\r\n_Mesh_428.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_428.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_428.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_429 = newComp.layers.addNull();\r\n_Mesh_429.threeDLayer = true;\r\n_Mesh_429.source.name = \"_Mesh_429\";\r\n_Mesh_429.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_429.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_429.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_426 = newComp.layers.addNull();\r\n_Mesh_426.threeDLayer = true;\r\n_Mesh_426.source.name = \"_Mesh_426\";\r\n_Mesh_426.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_426.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_426.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_427 = newComp.layers.addNull();\r\n_Mesh_427.threeDLayer = true;\r\n_Mesh_427.source.name = \"_Mesh_427\";\r\n_Mesh_427.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_427.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_427.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_424 = newComp.layers.addNull();\r\n_Mesh_424.threeDLayer = true;\r\n_Mesh_424.source.name = \"_Mesh_424\";\r\n_Mesh_424.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_424.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_424.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_425 = newComp.layers.addNull();\r\n_Mesh_425.threeDLayer = true;\r\n_Mesh_425.source.name = \"_Mesh_425\";\r\n_Mesh_425.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_425.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_425.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_422 = newComp.layers.addNull();\r\n_Mesh_422.threeDLayer = true;\r\n_Mesh_422.source.name = \"_Mesh_422\";\r\n_Mesh_422.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_422.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_422.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_423 = newComp.layers.addNull();\r\n_Mesh_423.threeDLayer = true;\r\n_Mesh_423.source.name = \"_Mesh_423\";\r\n_Mesh_423.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_423.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_423.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_420 = newComp.layers.addNull();\r\n_Mesh_420.threeDLayer = true;\r\n_Mesh_420.source.name = \"_Mesh_420\";\r\n_Mesh_420.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_420.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_420.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_421 = newComp.layers.addNull();\r\n_Mesh_421.threeDLayer = true;\r\n_Mesh_421.source.name = \"_Mesh_421\";\r\n_Mesh_421.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_421.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_421.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_399 = newComp.layers.addNull();\r\n_Mesh_399.threeDLayer = true;\r\n_Mesh_399.source.name = \"_Mesh_399\";\r\n_Mesh_399.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_399.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_399.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_880 = newComp.layers.addNull();\r\n_Mesh_880.threeDLayer = true;\r\n_Mesh_880.source.name = \"_Mesh_880\";\r\n_Mesh_880.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_880.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_880.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_881 = newComp.layers.addNull();\r\n_Mesh_881.threeDLayer = true;\r\n_Mesh_881.source.name = \"_Mesh_881\";\r\n_Mesh_881.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_881.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_881.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_882 = newComp.layers.addNull();\r\n_Mesh_882.threeDLayer = true;\r\n_Mesh_882.source.name = \"_Mesh_882\";\r\n_Mesh_882.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_882.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_882.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_883 = newComp.layers.addNull();\r\n_Mesh_883.threeDLayer = true;\r\n_Mesh_883.source.name = \"_Mesh_883\";\r\n_Mesh_883.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_883.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_883.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_884 = newComp.layers.addNull();\r\n_Mesh_884.threeDLayer = true;\r\n_Mesh_884.source.name = \"_Mesh_884\";\r\n_Mesh_884.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_884.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_884.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_885 = newComp.layers.addNull();\r\n_Mesh_885.threeDLayer = true;\r\n_Mesh_885.source.name = \"_Mesh_885\";\r\n_Mesh_885.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_885.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_885.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_886 = newComp.layers.addNull();\r\n_Mesh_886.threeDLayer = true;\r\n_Mesh_886.source.name = \"_Mesh_886\";\r\n_Mesh_886.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_886.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_886.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_887 = newComp.layers.addNull();\r\n_Mesh_887.threeDLayer = true;\r\n_Mesh_887.source.name = \"_Mesh_887\";\r\n_Mesh_887.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_887.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_887.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_888 = newComp.layers.addNull();\r\n_Mesh_888.threeDLayer = true;\r\n_Mesh_888.source.name = \"_Mesh_888\";\r\n_Mesh_888.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_888.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_888.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_889 = newComp.layers.addNull();\r\n_Mesh_889.threeDLayer = true;\r\n_Mesh_889.source.name = \"_Mesh_889\";\r\n_Mesh_889.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_889.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_889.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_558 = newComp.layers.addNull();\r\n_Mesh_558.threeDLayer = true;\r\n_Mesh_558.source.name = \"_Mesh_558\";\r\n_Mesh_558.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_558.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_558.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_559 = newComp.layers.addNull();\r\n_Mesh_559.threeDLayer = true;\r\n_Mesh_559.source.name = \"_Mesh_559\";\r\n_Mesh_559.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_559.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_559.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_958 = newComp.layers.addNull();\r\n_Mesh_958.threeDLayer = true;\r\n_Mesh_958.source.name = \"_Mesh_958\";\r\n_Mesh_958.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_958.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_958.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_959 = newComp.layers.addNull();\r\n_Mesh_959.threeDLayer = true;\r\n_Mesh_959.source.name = \"_Mesh_959\";\r\n_Mesh_959.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_959.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_959.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_956 = newComp.layers.addNull();\r\n_Mesh_956.threeDLayer = true;\r\n_Mesh_956.source.name = \"_Mesh_956\";\r\n_Mesh_956.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_956.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_956.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_957 = newComp.layers.addNull();\r\n_Mesh_957.threeDLayer = true;\r\n_Mesh_957.source.name = \"_Mesh_957\";\r\n_Mesh_957.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_957.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_957.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_954 = newComp.layers.addNull();\r\n_Mesh_954.threeDLayer = true;\r\n_Mesh_954.source.name = \"_Mesh_954\";\r\n_Mesh_954.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_954.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_954.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_955 = newComp.layers.addNull();\r\n_Mesh_955.threeDLayer = true;\r\n_Mesh_955.source.name = \"_Mesh_955\";\r\n_Mesh_955.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_955.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_955.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_952 = newComp.layers.addNull();\r\n_Mesh_952.threeDLayer = true;\r\n_Mesh_952.source.name = \"_Mesh_952\";\r\n_Mesh_952.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_952.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_952.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_953 = newComp.layers.addNull();\r\n_Mesh_953.threeDLayer = true;\r\n_Mesh_953.source.name = \"_Mesh_953\";\r\n_Mesh_953.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_953.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_953.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_950 = newComp.layers.addNull();\r\n_Mesh_950.threeDLayer = true;\r\n_Mesh_950.source.name = \"_Mesh_950\";\r\n_Mesh_950.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_950.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_950.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_951 = newComp.layers.addNull();\r\n_Mesh_951.threeDLayer = true;\r\n_Mesh_951.source.name = \"_Mesh_951\";\r\n_Mesh_951.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_951.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_951.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_088 = newComp.layers.addNull();\r\n_Mesh_088.threeDLayer = true;\r\n_Mesh_088.source.name = \"_Mesh_088\";\r\n_Mesh_088.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_088.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_088.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_089 = newComp.layers.addNull();\r\n_Mesh_089.threeDLayer = true;\r\n_Mesh_089.source.name = \"_Mesh_089\";\r\n_Mesh_089.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_089.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_089.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_080 = newComp.layers.addNull();\r\n_Mesh_080.threeDLayer = true;\r\n_Mesh_080.source.name = \"_Mesh_080\";\r\n_Mesh_080.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_080.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_080.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_082 = newComp.layers.addNull();\r\n_Mesh_082.threeDLayer = true;\r\n_Mesh_082.source.name = \"_Mesh_082\";\r\n_Mesh_082.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_082.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_082.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_083 = newComp.layers.addNull();\r\n_Mesh_083.threeDLayer = true;\r\n_Mesh_083.source.name = \"_Mesh_083\";\r\n_Mesh_083.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_083.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_083.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_084 = newComp.layers.addNull();\r\n_Mesh_084.threeDLayer = true;\r\n_Mesh_084.source.name = \"_Mesh_084\";\r\n_Mesh_084.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_084.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_084.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_085 = newComp.layers.addNull();\r\n_Mesh_085.threeDLayer = true;\r\n_Mesh_085.source.name = \"_Mesh_085\";\r\n_Mesh_085.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_085.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_085.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_086 = newComp.layers.addNull();\r\n_Mesh_086.threeDLayer = true;\r\n_Mesh_086.source.name = \"_Mesh_086\";\r\n_Mesh_086.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_086.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_086.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_087 = newComp.layers.addNull();\r\n_Mesh_087.threeDLayer = true;\r\n_Mesh_087.source.name = \"_Mesh_087\";\r\n_Mesh_087.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_087.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_087.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_776 = newComp.layers.addNull();\r\n_Mesh_776.threeDLayer = true;\r\n_Mesh_776.source.name = \"_Mesh_776\";\r\n_Mesh_776.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_776.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_776.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_777 = newComp.layers.addNull();\r\n_Mesh_777.threeDLayer = true;\r\n_Mesh_777.source.name = \"_Mesh_777\";\r\n_Mesh_777.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_777.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_777.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_774 = newComp.layers.addNull();\r\n_Mesh_774.threeDLayer = true;\r\n_Mesh_774.source.name = \"_Mesh_774\";\r\n_Mesh_774.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_774.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_774.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_775 = newComp.layers.addNull();\r\n_Mesh_775.threeDLayer = true;\r\n_Mesh_775.source.name = \"_Mesh_775\";\r\n_Mesh_775.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_775.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_775.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_772 = newComp.layers.addNull();\r\n_Mesh_772.threeDLayer = true;\r\n_Mesh_772.source.name = \"_Mesh_772\";\r\n_Mesh_772.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_772.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_772.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_773 = newComp.layers.addNull();\r\n_Mesh_773.threeDLayer = true;\r\n_Mesh_773.source.name = \"_Mesh_773\";\r\n_Mesh_773.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_773.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_773.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_770 = newComp.layers.addNull();\r\n_Mesh_770.threeDLayer = true;\r\n_Mesh_770.source.name = \"_Mesh_770\";\r\n_Mesh_770.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_770.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_770.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_771 = newComp.layers.addNull();\r\n_Mesh_771.threeDLayer = true;\r\n_Mesh_771.source.name = \"_Mesh_771\";\r\n_Mesh_771.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_771.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_771.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_653 = newComp.layers.addNull();\r\n_Mesh_653.threeDLayer = true;\r\n_Mesh_653.source.name = \"_Mesh_653\";\r\n_Mesh_653.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_653.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_653.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_778 = newComp.layers.addNull();\r\n_Mesh_778.threeDLayer = true;\r\n_Mesh_778.source.name = \"_Mesh_778\";\r\n_Mesh_778.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_778.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_778.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_779 = newComp.layers.addNull();\r\n_Mesh_779.threeDLayer = true;\r\n_Mesh_779.source.name = \"_Mesh_779\";\r\n_Mesh_779.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_779.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_779.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_652 = newComp.layers.addNull();\r\n_Mesh_652.threeDLayer = true;\r\n_Mesh_652.source.name = \"_Mesh_652\";\r\n_Mesh_652.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_652.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_652.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_655 = newComp.layers.addNull();\r\n_Mesh_655.threeDLayer = true;\r\n_Mesh_655.source.name = \"_Mesh_655\";\r\n_Mesh_655.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_655.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_655.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_654 = newComp.layers.addNull();\r\n_Mesh_654.threeDLayer = true;\r\n_Mesh_654.source.name = \"_Mesh_654\";\r\n_Mesh_654.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_654.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_654.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_657 = newComp.layers.addNull();\r\n_Mesh_657.threeDLayer = true;\r\n_Mesh_657.source.name = \"_Mesh_657\";\r\n_Mesh_657.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_657.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_657.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_656 = newComp.layers.addNull();\r\n_Mesh_656.threeDLayer = true;\r\n_Mesh_656.source.name = \"_Mesh_656\";\r\n_Mesh_656.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_656.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_656.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_178 = newComp.layers.addNull();\r\n_Mesh_178.threeDLayer = true;\r\n_Mesh_178.source.name = \"_Mesh_178\";\r\n_Mesh_178.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_178.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_178.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_179 = newComp.layers.addNull();\r\n_Mesh_179.threeDLayer = true;\r\n_Mesh_179.source.name = \"_Mesh_179\";\r\n_Mesh_179.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_179.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_179.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_174 = newComp.layers.addNull();\r\n_Mesh_174.threeDLayer = true;\r\n_Mesh_174.source.name = \"_Mesh_174\";\r\n_Mesh_174.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_174.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_174.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_176 = newComp.layers.addNull();\r\n_Mesh_176.threeDLayer = true;\r\n_Mesh_176.source.name = \"_Mesh_176\";\r\n_Mesh_176.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_176.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_176.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_177 = newComp.layers.addNull();\r\n_Mesh_177.threeDLayer = true;\r\n_Mesh_177.source.name = \"_Mesh_177\";\r\n_Mesh_177.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_177.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_177.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_170 = newComp.layers.addNull();\r\n_Mesh_170.threeDLayer = true;\r\n_Mesh_170.source.name = \"_Mesh_170\";\r\n_Mesh_170.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_170.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_170.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_171 = newComp.layers.addNull();\r\n_Mesh_171.threeDLayer = true;\r\n_Mesh_171.source.name = \"_Mesh_171\";\r\n_Mesh_171.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_171.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_171.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_172 = newComp.layers.addNull();\r\n_Mesh_172.threeDLayer = true;\r\n_Mesh_172.source.name = \"_Mesh_172\";\r\n_Mesh_172.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_172.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_172.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_173 = newComp.layers.addNull();\r\n_Mesh_173.threeDLayer = true;\r\n_Mesh_173.source.name = \"_Mesh_173\";\r\n_Mesh_173.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_173.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_173.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_378 = newComp.layers.addNull();\r\n_Mesh_378.threeDLayer = true;\r\n_Mesh_378.source.name = \"_Mesh_378\";\r\n_Mesh_378.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_378.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_378.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_379 = newComp.layers.addNull();\r\n_Mesh_379.threeDLayer = true;\r\n_Mesh_379.source.name = \"_Mesh_379\";\r\n_Mesh_379.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_379.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_379.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_372 = newComp.layers.addNull();\r\n_Mesh_372.threeDLayer = true;\r\n_Mesh_372.source.name = \"_Mesh_372\";\r\n_Mesh_372.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_372.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_372.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_373 = newComp.layers.addNull();\r\n_Mesh_373.threeDLayer = true;\r\n_Mesh_373.source.name = \"_Mesh_373\";\r\n_Mesh_373.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_373.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_373.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_370 = newComp.layers.addNull();\r\n_Mesh_370.threeDLayer = true;\r\n_Mesh_370.source.name = \"_Mesh_370\";\r\n_Mesh_370.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_370.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_370.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_371 = newComp.layers.addNull();\r\n_Mesh_371.threeDLayer = true;\r\n_Mesh_371.source.name = \"_Mesh_371\";\r\n_Mesh_371.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_371.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_371.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_376 = newComp.layers.addNull();\r\n_Mesh_376.threeDLayer = true;\r\n_Mesh_376.source.name = \"_Mesh_376\";\r\n_Mesh_376.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_376.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_376.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_377 = newComp.layers.addNull();\r\n_Mesh_377.threeDLayer = true;\r\n_Mesh_377.source.name = \"_Mesh_377\";\r\n_Mesh_377.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_377.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_377.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_374 = newComp.layers.addNull();\r\n_Mesh_374.threeDLayer = true;\r\n_Mesh_374.source.name = \"_Mesh_374\";\r\n_Mesh_374.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_374.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_374.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_375 = newComp.layers.addNull();\r\n_Mesh_375.threeDLayer = true;\r\n_Mesh_375.source.name = \"_Mesh_375\";\r\n_Mesh_375.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_375.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_375.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1312 = newComp.layers.addNull();\r\n_Mesh_1312.threeDLayer = true;\r\n_Mesh_1312.source.name = \"_Mesh_1312\";\r\n_Mesh_1312.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1312.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1312.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1313 = newComp.layers.addNull();\r\n_Mesh_1313.threeDLayer = true;\r\n_Mesh_1313.source.name = \"_Mesh_1313\";\r\n_Mesh_1313.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1313.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1313.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1310 = newComp.layers.addNull();\r\n_Mesh_1310.threeDLayer = true;\r\n_Mesh_1310.source.name = \"_Mesh_1310\";\r\n_Mesh_1310.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1310.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1310.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1311 = newComp.layers.addNull();\r\n_Mesh_1311.threeDLayer = true;\r\n_Mesh_1311.source.name = \"_Mesh_1311\";\r\n_Mesh_1311.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1311.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1311.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1316 = newComp.layers.addNull();\r\n_Mesh_1316.threeDLayer = true;\r\n_Mesh_1316.source.name = \"_Mesh_1316\";\r\n_Mesh_1316.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1316.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1316.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1314 = newComp.layers.addNull();\r\n_Mesh_1314.threeDLayer = true;\r\n_Mesh_1314.source.name = \"_Mesh_1314\";\r\n_Mesh_1314.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1314.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1314.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1318 = newComp.layers.addNull();\r\n_Mesh_1318.threeDLayer = true;\r\n_Mesh_1318.source.name = \"_Mesh_1318\";\r\n_Mesh_1318.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1318.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1318.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1319 = newComp.layers.addNull();\r\n_Mesh_1319.threeDLayer = true;\r\n_Mesh_1319.source.name = \"_Mesh_1319\";\r\n_Mesh_1319.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1319.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1319.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1408 = newComp.layers.addNull();\r\n_Mesh_1408.threeDLayer = true;\r\n_Mesh_1408.source.name = \"_Mesh_1408\";\r\n_Mesh_1408.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1408.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1408.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1409 = newComp.layers.addNull();\r\n_Mesh_1409.threeDLayer = true;\r\n_Mesh_1409.source.name = \"_Mesh_1409\";\r\n_Mesh_1409.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1409.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1409.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1406 = newComp.layers.addNull();\r\n_Mesh_1406.threeDLayer = true;\r\n_Mesh_1406.source.name = \"_Mesh_1406\";\r\n_Mesh_1406.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1406.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1406.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1407 = newComp.layers.addNull();\r\n_Mesh_1407.threeDLayer = true;\r\n_Mesh_1407.source.name = \"_Mesh_1407\";\r\n_Mesh_1407.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1407.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1407.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1404 = newComp.layers.addNull();\r\n_Mesh_1404.threeDLayer = true;\r\n_Mesh_1404.source.name = \"_Mesh_1404\";\r\n_Mesh_1404.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1404.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1404.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1405 = newComp.layers.addNull();\r\n_Mesh_1405.threeDLayer = true;\r\n_Mesh_1405.source.name = \"_Mesh_1405\";\r\n_Mesh_1405.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1405.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1405.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1402 = newComp.layers.addNull();\r\n_Mesh_1402.threeDLayer = true;\r\n_Mesh_1402.source.name = \"_Mesh_1402\";\r\n_Mesh_1402.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1402.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1402.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1403 = newComp.layers.addNull();\r\n_Mesh_1403.threeDLayer = true;\r\n_Mesh_1403.source.name = \"_Mesh_1403\";\r\n_Mesh_1403.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1403.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1403.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1400 = newComp.layers.addNull();\r\n_Mesh_1400.threeDLayer = true;\r\n_Mesh_1400.source.name = \"_Mesh_1400\";\r\n_Mesh_1400.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1400.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1400.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1401 = newComp.layers.addNull();\r\n_Mesh_1401.threeDLayer = true;\r\n_Mesh_1401.source.name = \"_Mesh_1401\";\r\n_Mesh_1401.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1401.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1401.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1226 = newComp.layers.addNull();\r\n_Mesh_1226.threeDLayer = true;\r\n_Mesh_1226.source.name = \"_Mesh_1226\";\r\n_Mesh_1226.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1226.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1226.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1227 = newComp.layers.addNull();\r\n_Mesh_1227.threeDLayer = true;\r\n_Mesh_1227.source.name = \"_Mesh_1227\";\r\n_Mesh_1227.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1227.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1227.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1224 = newComp.layers.addNull();\r\n_Mesh_1224.threeDLayer = true;\r\n_Mesh_1224.source.name = \"_Mesh_1224\";\r\n_Mesh_1224.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1224.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1224.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1225 = newComp.layers.addNull();\r\n_Mesh_1225.threeDLayer = true;\r\n_Mesh_1225.source.name = \"_Mesh_1225\";\r\n_Mesh_1225.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1225.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1225.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1222 = newComp.layers.addNull();\r\n_Mesh_1222.threeDLayer = true;\r\n_Mesh_1222.source.name = \"_Mesh_1222\";\r\n_Mesh_1222.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1222.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1222.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1223 = newComp.layers.addNull();\r\n_Mesh_1223.threeDLayer = true;\r\n_Mesh_1223.source.name = \"_Mesh_1223\";\r\n_Mesh_1223.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1223.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1223.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1220 = newComp.layers.addNull();\r\n_Mesh_1220.threeDLayer = true;\r\n_Mesh_1220.source.name = \"_Mesh_1220\";\r\n_Mesh_1220.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1220.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1220.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1221 = newComp.layers.addNull();\r\n_Mesh_1221.threeDLayer = true;\r\n_Mesh_1221.source.name = \"_Mesh_1221\";\r\n_Mesh_1221.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1221.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1221.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1228 = newComp.layers.addNull();\r\n_Mesh_1228.threeDLayer = true;\r\n_Mesh_1228.source.name = \"_Mesh_1228\";\r\n_Mesh_1228.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1228.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1228.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1229 = newComp.layers.addNull();\r\n_Mesh_1229.threeDLayer = true;\r\n_Mesh_1229.source.name = \"_Mesh_1229\";\r\n_Mesh_1229.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1229.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1229.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_912 = newComp.layers.addNull();\r\n_Mesh_912.threeDLayer = true;\r\n_Mesh_912.source.name = \"_Mesh_912\";\r\n_Mesh_912.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_912.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_912.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_913 = newComp.layers.addNull();\r\n_Mesh_913.threeDLayer = true;\r\n_Mesh_913.source.name = \"_Mesh_913\";\r\n_Mesh_913.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_913.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_913.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_910 = newComp.layers.addNull();\r\n_Mesh_910.threeDLayer = true;\r\n_Mesh_910.source.name = \"_Mesh_910\";\r\n_Mesh_910.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_910.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_910.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1138 = newComp.layers.addNull();\r\n_Mesh_1138.threeDLayer = true;\r\n_Mesh_1138.source.name = \"_Mesh_1138\";\r\n_Mesh_1138.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1138.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1138.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1139 = newComp.layers.addNull();\r\n_Mesh_1139.threeDLayer = true;\r\n_Mesh_1139.source.name = \"_Mesh_1139\";\r\n_Mesh_1139.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1139.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1139.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1132 = newComp.layers.addNull();\r\n_Mesh_1132.threeDLayer = true;\r\n_Mesh_1132.source.name = \"_Mesh_1132\";\r\n_Mesh_1132.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1132.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1132.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1133 = newComp.layers.addNull();\r\n_Mesh_1133.threeDLayer = true;\r\n_Mesh_1133.source.name = \"_Mesh_1133\";\r\n_Mesh_1133.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1133.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1133.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1130 = newComp.layers.addNull();\r\n_Mesh_1130.threeDLayer = true;\r\n_Mesh_1130.source.name = \"_Mesh_1130\";\r\n_Mesh_1130.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1130.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1130.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1131 = newComp.layers.addNull();\r\n_Mesh_1131.threeDLayer = true;\r\n_Mesh_1131.source.name = \"_Mesh_1131\";\r\n_Mesh_1131.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1131.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1131.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1136 = newComp.layers.addNull();\r\n_Mesh_1136.threeDLayer = true;\r\n_Mesh_1136.source.name = \"_Mesh_1136\";\r\n_Mesh_1136.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1136.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1136.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1137 = newComp.layers.addNull();\r\n_Mesh_1137.threeDLayer = true;\r\n_Mesh_1137.source.name = \"_Mesh_1137\";\r\n_Mesh_1137.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1137.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1137.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1134 = newComp.layers.addNull();\r\n_Mesh_1134.threeDLayer = true;\r\n_Mesh_1134.source.name = \"_Mesh_1134\";\r\n_Mesh_1134.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1134.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1134.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1135 = newComp.layers.addNull();\r\n_Mesh_1135.threeDLayer = true;\r\n_Mesh_1135.source.name = \"_Mesh_1135\";\r\n_Mesh_1135.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1135.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1135.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_914 = newComp.layers.addNull();\r\n_Mesh_914.threeDLayer = true;\r\n_Mesh_914.source.name = \"_Mesh_914\";\r\n_Mesh_914.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_914.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_914.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_915 = newComp.layers.addNull();\r\n_Mesh_915.threeDLayer = true;\r\n_Mesh_915.source.name = \"_Mesh_915\";\r\n_Mesh_915.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_915.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_915.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_413 = newComp.layers.addNull();\r\n_Mesh_413.threeDLayer = true;\r\n_Mesh_413.source.name = \"_Mesh_413\";\r\n_Mesh_413.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_413.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_413.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_412 = newComp.layers.addNull();\r\n_Mesh_412.threeDLayer = true;\r\n_Mesh_412.source.name = \"_Mesh_412\";\r\n_Mesh_412.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_412.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_412.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_411 = newComp.layers.addNull();\r\n_Mesh_411.threeDLayer = true;\r\n_Mesh_411.source.name = \"_Mesh_411\";\r\n_Mesh_411.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_411.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_411.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_410 = newComp.layers.addNull();\r\n_Mesh_410.threeDLayer = true;\r\n_Mesh_410.source.name = \"_Mesh_410\";\r\n_Mesh_410.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_410.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_410.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_417 = newComp.layers.addNull();\r\n_Mesh_417.threeDLayer = true;\r\n_Mesh_417.source.name = \"_Mesh_417\";\r\n_Mesh_417.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_417.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_417.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_416 = newComp.layers.addNull();\r\n_Mesh_416.threeDLayer = true;\r\n_Mesh_416.source.name = \"_Mesh_416\";\r\n_Mesh_416.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_416.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_416.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_415 = newComp.layers.addNull();\r\n_Mesh_415.threeDLayer = true;\r\n_Mesh_415.source.name = \"_Mesh_415\";\r\n_Mesh_415.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_415.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_415.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_414 = newComp.layers.addNull();\r\n_Mesh_414.threeDLayer = true;\r\n_Mesh_414.source.name = \"_Mesh_414\";\r\n_Mesh_414.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_414.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_414.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_419 = newComp.layers.addNull();\r\n_Mesh_419.threeDLayer = true;\r\n_Mesh_419.source.name = \"_Mesh_419\";\r\n_Mesh_419.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_419.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_419.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_418 = newComp.layers.addNull();\r\n_Mesh_418.threeDLayer = true;\r\n_Mesh_418.source.name = \"_Mesh_418\";\r\n_Mesh_418.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_418.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_418.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_567 = newComp.layers.addNull();\r\n_Mesh_567.threeDLayer = true;\r\n_Mesh_567.source.name = \"_Mesh_567\";\r\n_Mesh_567.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_567.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_567.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_566 = newComp.layers.addNull();\r\n_Mesh_566.threeDLayer = true;\r\n_Mesh_566.source.name = \"_Mesh_566\";\r\n_Mesh_566.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_566.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_566.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_565 = newComp.layers.addNull();\r\n_Mesh_565.threeDLayer = true;\r\n_Mesh_565.source.name = \"_Mesh_565\";\r\n_Mesh_565.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_565.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_565.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_564 = newComp.layers.addNull();\r\n_Mesh_564.threeDLayer = true;\r\n_Mesh_564.source.name = \"_Mesh_564\";\r\n_Mesh_564.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_564.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_564.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_563 = newComp.layers.addNull();\r\n_Mesh_563.threeDLayer = true;\r\n_Mesh_563.source.name = \"_Mesh_563\";\r\n_Mesh_563.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_563.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_563.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_562 = newComp.layers.addNull();\r\n_Mesh_562.threeDLayer = true;\r\n_Mesh_562.source.name = \"_Mesh_562\";\r\n_Mesh_562.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_562.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_562.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_561 = newComp.layers.addNull();\r\n_Mesh_561.threeDLayer = true;\r\n_Mesh_561.source.name = \"_Mesh_561\";\r\n_Mesh_561.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_561.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_561.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_560 = newComp.layers.addNull();\r\n_Mesh_560.threeDLayer = true;\r\n_Mesh_560.source.name = \"_Mesh_560\";\r\n_Mesh_560.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_560.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_560.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_569 = newComp.layers.addNull();\r\n_Mesh_569.threeDLayer = true;\r\n_Mesh_569.source.name = \"_Mesh_569\";\r\n_Mesh_569.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_569.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_569.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_568 = newComp.layers.addNull();\r\n_Mesh_568.threeDLayer = true;\r\n_Mesh_568.source.name = \"_Mesh_568\";\r\n_Mesh_568.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_568.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_568.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_963 = newComp.layers.addNull();\r\n_Mesh_963.threeDLayer = true;\r\n_Mesh_963.source.name = \"_Mesh_963\";\r\n_Mesh_963.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_963.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_963.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_962 = newComp.layers.addNull();\r\n_Mesh_962.threeDLayer = true;\r\n_Mesh_962.source.name = \"_Mesh_962\";\r\n_Mesh_962.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_962.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_962.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_961 = newComp.layers.addNull();\r\n_Mesh_961.threeDLayer = true;\r\n_Mesh_961.source.name = \"_Mesh_961\";\r\n_Mesh_961.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_961.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_961.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_960 = newComp.layers.addNull();\r\n_Mesh_960.threeDLayer = true;\r\n_Mesh_960.source.name = \"_Mesh_960\";\r\n_Mesh_960.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_960.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_960.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_967 = newComp.layers.addNull();\r\n_Mesh_967.threeDLayer = true;\r\n_Mesh_967.source.name = \"_Mesh_967\";\r\n_Mesh_967.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_967.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_967.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_966 = newComp.layers.addNull();\r\n_Mesh_966.threeDLayer = true;\r\n_Mesh_966.source.name = \"_Mesh_966\";\r\n_Mesh_966.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_966.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_966.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_965 = newComp.layers.addNull();\r\n_Mesh_965.threeDLayer = true;\r\n_Mesh_965.source.name = \"_Mesh_965\";\r\n_Mesh_965.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_965.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_965.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_964 = newComp.layers.addNull();\r\n_Mesh_964.threeDLayer = true;\r\n_Mesh_964.source.name = \"_Mesh_964\";\r\n_Mesh_964.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_964.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_964.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_969 = newComp.layers.addNull();\r\n_Mesh_969.threeDLayer = true;\r\n_Mesh_969.source.name = \"_Mesh_969\";\r\n_Mesh_969.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_969.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_969.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_968 = newComp.layers.addNull();\r\n_Mesh_968.threeDLayer = true;\r\n_Mesh_968.source.name = \"_Mesh_968\";\r\n_Mesh_968.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_968.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_968.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_749 = newComp.layers.addNull();\r\n_Mesh_749.threeDLayer = true;\r\n_Mesh_749.source.name = \"_Mesh_749\";\r\n_Mesh_749.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_749.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_749.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_748 = newComp.layers.addNull();\r\n_Mesh_748.threeDLayer = true;\r\n_Mesh_748.source.name = \"_Mesh_748\";\r\n_Mesh_748.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_748.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_748.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_743 = newComp.layers.addNull();\r\n_Mesh_743.threeDLayer = true;\r\n_Mesh_743.source.name = \"_Mesh_743\";\r\n_Mesh_743.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_743.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_743.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_742 = newComp.layers.addNull();\r\n_Mesh_742.threeDLayer = true;\r\n_Mesh_742.source.name = \"_Mesh_742\";\r\n_Mesh_742.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_742.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_742.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_741 = newComp.layers.addNull();\r\n_Mesh_741.threeDLayer = true;\r\n_Mesh_741.source.name = \"_Mesh_741\";\r\n_Mesh_741.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_741.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_741.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_740 = newComp.layers.addNull();\r\n_Mesh_740.threeDLayer = true;\r\n_Mesh_740.source.name = \"_Mesh_740\";\r\n_Mesh_740.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_740.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_740.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_747 = newComp.layers.addNull();\r\n_Mesh_747.threeDLayer = true;\r\n_Mesh_747.source.name = \"_Mesh_747\";\r\n_Mesh_747.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_747.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_747.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_746 = newComp.layers.addNull();\r\n_Mesh_746.threeDLayer = true;\r\n_Mesh_746.source.name = \"_Mesh_746\";\r\n_Mesh_746.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_746.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_746.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_745 = newComp.layers.addNull();\r\n_Mesh_745.threeDLayer = true;\r\n_Mesh_745.source.name = \"_Mesh_745\";\r\n_Mesh_745.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_745.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_745.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_744 = newComp.layers.addNull();\r\n_Mesh_744.threeDLayer = true;\r\n_Mesh_744.source.name = \"_Mesh_744\";\r\n_Mesh_744.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_744.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_744.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_989 = newComp.layers.addNull();\r\n_Mesh_989.threeDLayer = true;\r\n_Mesh_989.source.name = \"_Mesh_989\";\r\n_Mesh_989.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_989.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_989.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_988 = newComp.layers.addNull();\r\n_Mesh_988.threeDLayer = true;\r\n_Mesh_988.source.name = \"_Mesh_988\";\r\n_Mesh_988.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_988.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_988.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_981 = newComp.layers.addNull();\r\n_Mesh_981.threeDLayer = true;\r\n_Mesh_981.source.name = \"_Mesh_981\";\r\n_Mesh_981.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_981.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_981.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_980 = newComp.layers.addNull();\r\n_Mesh_980.threeDLayer = true;\r\n_Mesh_980.source.name = \"_Mesh_980\";\r\n_Mesh_980.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_980.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_980.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_983 = newComp.layers.addNull();\r\n_Mesh_983.threeDLayer = true;\r\n_Mesh_983.source.name = \"_Mesh_983\";\r\n_Mesh_983.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_983.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_983.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_982 = newComp.layers.addNull();\r\n_Mesh_982.threeDLayer = true;\r\n_Mesh_982.source.name = \"_Mesh_982\";\r\n_Mesh_982.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_982.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_982.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_984 = newComp.layers.addNull();\r\n_Mesh_984.threeDLayer = true;\r\n_Mesh_984.source.name = \"_Mesh_984\";\r\n_Mesh_984.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_984.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_984.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_987 = newComp.layers.addNull();\r\n_Mesh_987.threeDLayer = true;\r\n_Mesh_987.source.name = \"_Mesh_987\";\r\n_Mesh_987.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_987.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_987.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_181 = newComp.layers.addNull();\r\n_Mesh_181.threeDLayer = true;\r\n_Mesh_181.source.name = \"_Mesh_181\";\r\n_Mesh_181.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_181.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_181.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_180 = newComp.layers.addNull();\r\n_Mesh_180.threeDLayer = true;\r\n_Mesh_180.source.name = \"_Mesh_180\";\r\n_Mesh_180.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_180.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_180.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_183 = newComp.layers.addNull();\r\n_Mesh_183.threeDLayer = true;\r\n_Mesh_183.source.name = \"_Mesh_183\";\r\n_Mesh_183.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_183.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_183.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_182 = newComp.layers.addNull();\r\n_Mesh_182.threeDLayer = true;\r\n_Mesh_182.source.name = \"_Mesh_182\";\r\n_Mesh_182.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_182.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_182.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_185 = newComp.layers.addNull();\r\n_Mesh_185.threeDLayer = true;\r\n_Mesh_185.source.name = \"_Mesh_185\";\r\n_Mesh_185.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_185.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_185.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_184 = newComp.layers.addNull();\r\n_Mesh_184.threeDLayer = true;\r\n_Mesh_184.source.name = \"_Mesh_184\";\r\n_Mesh_184.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_184.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_184.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_187 = newComp.layers.addNull();\r\n_Mesh_187.threeDLayer = true;\r\n_Mesh_187.source.name = \"_Mesh_187\";\r\n_Mesh_187.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_187.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_187.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_186 = newComp.layers.addNull();\r\n_Mesh_186.threeDLayer = true;\r\n_Mesh_186.source.name = \"_Mesh_186\";\r\n_Mesh_186.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_186.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_186.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_189 = newComp.layers.addNull();\r\n_Mesh_189.threeDLayer = true;\r\n_Mesh_189.source.name = \"_Mesh_189\";\r\n_Mesh_189.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_189.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_189.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_188 = newComp.layers.addNull();\r\n_Mesh_188.threeDLayer = true;\r\n_Mesh_188.source.name = \"_Mesh_188\";\r\n_Mesh_188.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_188.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_188.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_349 = newComp.layers.addNull();\r\n_Mesh_349.threeDLayer = true;\r\n_Mesh_349.source.name = \"_Mesh_349\";\r\n_Mesh_349.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_349.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_349.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_348 = newComp.layers.addNull();\r\n_Mesh_348.threeDLayer = true;\r\n_Mesh_348.source.name = \"_Mesh_348\";\r\n_Mesh_348.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_348.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_348.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_347 = newComp.layers.addNull();\r\n_Mesh_347.threeDLayer = true;\r\n_Mesh_347.source.name = \"_Mesh_347\";\r\n_Mesh_347.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_347.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_347.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_346 = newComp.layers.addNull();\r\n_Mesh_346.threeDLayer = true;\r\n_Mesh_346.source.name = \"_Mesh_346\";\r\n_Mesh_346.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_346.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_346.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_345 = newComp.layers.addNull();\r\n_Mesh_345.threeDLayer = true;\r\n_Mesh_345.source.name = \"_Mesh_345\";\r\n_Mesh_345.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_345.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_345.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_344 = newComp.layers.addNull();\r\n_Mesh_344.threeDLayer = true;\r\n_Mesh_344.source.name = \"_Mesh_344\";\r\n_Mesh_344.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_344.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_344.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_343 = newComp.layers.addNull();\r\n_Mesh_343.threeDLayer = true;\r\n_Mesh_343.source.name = \"_Mesh_343\";\r\n_Mesh_343.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_343.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_343.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_342 = newComp.layers.addNull();\r\n_Mesh_342.threeDLayer = true;\r\n_Mesh_342.source.name = \"_Mesh_342\";\r\n_Mesh_342.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_342.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_342.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_341 = newComp.layers.addNull();\r\n_Mesh_341.threeDLayer = true;\r\n_Mesh_341.source.name = \"_Mesh_341\";\r\n_Mesh_341.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_341.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_341.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_340 = newComp.layers.addNull();\r\n_Mesh_340.threeDLayer = true;\r\n_Mesh_340.source.name = \"_Mesh_340\";\r\n_Mesh_340.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_340.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_340.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1301 = newComp.layers.addNull();\r\n_Mesh_1301.threeDLayer = true;\r\n_Mesh_1301.source.name = \"_Mesh_1301\";\r\n_Mesh_1301.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1301.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1301.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1300 = newComp.layers.addNull();\r\n_Mesh_1300.threeDLayer = true;\r\n_Mesh_1300.source.name = \"_Mesh_1300\";\r\n_Mesh_1300.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1300.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1300.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1303 = newComp.layers.addNull();\r\n_Mesh_1303.threeDLayer = true;\r\n_Mesh_1303.source.name = \"_Mesh_1303\";\r\n_Mesh_1303.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1303.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1303.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1302 = newComp.layers.addNull();\r\n_Mesh_1302.threeDLayer = true;\r\n_Mesh_1302.source.name = \"_Mesh_1302\";\r\n_Mesh_1302.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1302.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1302.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1305 = newComp.layers.addNull();\r\n_Mesh_1305.threeDLayer = true;\r\n_Mesh_1305.source.name = \"_Mesh_1305\";\r\n_Mesh_1305.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1305.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1305.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1304 = newComp.layers.addNull();\r\n_Mesh_1304.threeDLayer = true;\r\n_Mesh_1304.source.name = \"_Mesh_1304\";\r\n_Mesh_1304.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1304.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1304.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1307 = newComp.layers.addNull();\r\n_Mesh_1307.threeDLayer = true;\r\n_Mesh_1307.source.name = \"_Mesh_1307\";\r\n_Mesh_1307.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1307.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1307.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1306 = newComp.layers.addNull();\r\n_Mesh_1306.threeDLayer = true;\r\n_Mesh_1306.source.name = \"_Mesh_1306\";\r\n_Mesh_1306.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1306.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1306.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1309 = newComp.layers.addNull();\r\n_Mesh_1309.threeDLayer = true;\r\n_Mesh_1309.source.name = \"_Mesh_1309\";\r\n_Mesh_1309.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1309.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1309.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1308 = newComp.layers.addNull();\r\n_Mesh_1308.threeDLayer = true;\r\n_Mesh_1308.source.name = \"_Mesh_1308\";\r\n_Mesh_1308.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1308.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1308.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1419 = newComp.layers.addNull();\r\n_Mesh_1419.threeDLayer = true;\r\n_Mesh_1419.source.name = \"_Mesh_1419\";\r\n_Mesh_1419.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1419.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1419.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1418 = newComp.layers.addNull();\r\n_Mesh_1418.threeDLayer = true;\r\n_Mesh_1418.source.name = \"_Mesh_1418\";\r\n_Mesh_1418.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1418.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1418.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1415 = newComp.layers.addNull();\r\n_Mesh_1415.threeDLayer = true;\r\n_Mesh_1415.source.name = \"_Mesh_1415\";\r\n_Mesh_1415.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1415.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1415.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1414 = newComp.layers.addNull();\r\n_Mesh_1414.threeDLayer = true;\r\n_Mesh_1414.source.name = \"_Mesh_1414\";\r\n_Mesh_1414.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1414.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1414.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1417 = newComp.layers.addNull();\r\n_Mesh_1417.threeDLayer = true;\r\n_Mesh_1417.source.name = \"_Mesh_1417\";\r\n_Mesh_1417.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1417.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1417.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1416 = newComp.layers.addNull();\r\n_Mesh_1416.threeDLayer = true;\r\n_Mesh_1416.source.name = \"_Mesh_1416\";\r\n_Mesh_1416.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1416.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1416.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1411 = newComp.layers.addNull();\r\n_Mesh_1411.threeDLayer = true;\r\n_Mesh_1411.source.name = \"_Mesh_1411\";\r\n_Mesh_1411.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1411.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1411.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1410 = newComp.layers.addNull();\r\n_Mesh_1410.threeDLayer = true;\r\n_Mesh_1410.source.name = \"_Mesh_1410\";\r\n_Mesh_1410.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1410.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1410.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1413 = newComp.layers.addNull();\r\n_Mesh_1413.threeDLayer = true;\r\n_Mesh_1413.source.name = \"_Mesh_1413\";\r\n_Mesh_1413.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1413.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1413.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1412 = newComp.layers.addNull();\r\n_Mesh_1412.threeDLayer = true;\r\n_Mesh_1412.source.name = \"_Mesh_1412\";\r\n_Mesh_1412.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1412.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1412.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1235 = newComp.layers.addNull();\r\n_Mesh_1235.threeDLayer = true;\r\n_Mesh_1235.source.name = \"_Mesh_1235\";\r\n_Mesh_1235.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1235.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1235.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1234 = newComp.layers.addNull();\r\n_Mesh_1234.threeDLayer = true;\r\n_Mesh_1234.source.name = \"_Mesh_1234\";\r\n_Mesh_1234.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1234.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1234.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1237 = newComp.layers.addNull();\r\n_Mesh_1237.threeDLayer = true;\r\n_Mesh_1237.source.name = \"_Mesh_1237\";\r\n_Mesh_1237.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1237.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1237.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1236 = newComp.layers.addNull();\r\n_Mesh_1236.threeDLayer = true;\r\n_Mesh_1236.source.name = \"_Mesh_1236\";\r\n_Mesh_1236.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1236.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1236.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1231 = newComp.layers.addNull();\r\n_Mesh_1231.threeDLayer = true;\r\n_Mesh_1231.source.name = \"_Mesh_1231\";\r\n_Mesh_1231.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1231.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1231.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1230 = newComp.layers.addNull();\r\n_Mesh_1230.threeDLayer = true;\r\n_Mesh_1230.source.name = \"_Mesh_1230\";\r\n_Mesh_1230.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1230.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1230.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1233 = newComp.layers.addNull();\r\n_Mesh_1233.threeDLayer = true;\r\n_Mesh_1233.source.name = \"_Mesh_1233\";\r\n_Mesh_1233.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1233.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1233.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1232 = newComp.layers.addNull();\r\n_Mesh_1232.threeDLayer = true;\r\n_Mesh_1232.source.name = \"_Mesh_1232\";\r\n_Mesh_1232.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1232.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1232.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1239 = newComp.layers.addNull();\r\n_Mesh_1239.threeDLayer = true;\r\n_Mesh_1239.source.name = \"_Mesh_1239\";\r\n_Mesh_1239.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1239.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1239.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1238 = newComp.layers.addNull();\r\n_Mesh_1238.threeDLayer = true;\r\n_Mesh_1238.source.name = \"_Mesh_1238\";\r\n_Mesh_1238.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1238.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1238.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1129 = newComp.layers.addNull();\r\n_Mesh_1129.threeDLayer = true;\r\n_Mesh_1129.source.name = \"_Mesh_1129\";\r\n_Mesh_1129.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1129.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1129.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1128 = newComp.layers.addNull();\r\n_Mesh_1128.threeDLayer = true;\r\n_Mesh_1128.source.name = \"_Mesh_1128\";\r\n_Mesh_1128.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1128.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1128.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1121 = newComp.layers.addNull();\r\n_Mesh_1121.threeDLayer = true;\r\n_Mesh_1121.source.name = \"_Mesh_1121\";\r\n_Mesh_1121.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1121.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1121.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1120 = newComp.layers.addNull();\r\n_Mesh_1120.threeDLayer = true;\r\n_Mesh_1120.source.name = \"_Mesh_1120\";\r\n_Mesh_1120.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1120.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1120.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1123 = newComp.layers.addNull();\r\n_Mesh_1123.threeDLayer = true;\r\n_Mesh_1123.source.name = \"_Mesh_1123\";\r\n_Mesh_1123.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1123.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1123.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1122 = newComp.layers.addNull();\r\n_Mesh_1122.threeDLayer = true;\r\n_Mesh_1122.source.name = \"_Mesh_1122\";\r\n_Mesh_1122.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1122.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1122.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1125 = newComp.layers.addNull();\r\n_Mesh_1125.threeDLayer = true;\r\n_Mesh_1125.source.name = \"_Mesh_1125\";\r\n_Mesh_1125.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1125.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1125.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1124 = newComp.layers.addNull();\r\n_Mesh_1124.threeDLayer = true;\r\n_Mesh_1124.source.name = \"_Mesh_1124\";\r\n_Mesh_1124.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1124.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1124.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1127 = newComp.layers.addNull();\r\n_Mesh_1127.threeDLayer = true;\r\n_Mesh_1127.source.name = \"_Mesh_1127\";\r\n_Mesh_1127.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1127.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1127.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1126 = newComp.layers.addNull();\r\n_Mesh_1126.threeDLayer = true;\r\n_Mesh_1126.source.name = \"_Mesh_1126\";\r\n_Mesh_1126.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1126.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1126.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_404 = newComp.layers.addNull();\r\n_Mesh_404.threeDLayer = true;\r\n_Mesh_404.source.name = \"_Mesh_404\";\r\n_Mesh_404.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_404.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_404.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_405 = newComp.layers.addNull();\r\n_Mesh_405.threeDLayer = true;\r\n_Mesh_405.source.name = \"_Mesh_405\";\r\n_Mesh_405.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_405.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_405.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_406 = newComp.layers.addNull();\r\n_Mesh_406.threeDLayer = true;\r\n_Mesh_406.source.name = \"_Mesh_406\";\r\n_Mesh_406.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_406.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_406.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_407 = newComp.layers.addNull();\r\n_Mesh_407.threeDLayer = true;\r\n_Mesh_407.source.name = \"_Mesh_407\";\r\n_Mesh_407.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_407.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_407.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_400 = newComp.layers.addNull();\r\n_Mesh_400.threeDLayer = true;\r\n_Mesh_400.source.name = \"_Mesh_400\";\r\n_Mesh_400.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_400.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_400.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_402 = newComp.layers.addNull();\r\n_Mesh_402.threeDLayer = true;\r\n_Mesh_402.source.name = \"_Mesh_402\";\r\n_Mesh_402.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_402.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_402.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_403 = newComp.layers.addNull();\r\n_Mesh_403.threeDLayer = true;\r\n_Mesh_403.source.name = \"_Mesh_403\";\r\n_Mesh_403.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_403.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_403.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_408 = newComp.layers.addNull();\r\n_Mesh_408.threeDLayer = true;\r\n_Mesh_408.source.name = \"_Mesh_408\";\r\n_Mesh_408.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_408.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_408.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_409 = newComp.layers.addNull();\r\n_Mesh_409.threeDLayer = true;\r\n_Mesh_409.source.name = \"_Mesh_409\";\r\n_Mesh_409.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_409.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_409.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_578 = newComp.layers.addNull();\r\n_Mesh_578.threeDLayer = true;\r\n_Mesh_578.source.name = \"_Mesh_578\";\r\n_Mesh_578.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_578.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_578.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_579 = newComp.layers.addNull();\r\n_Mesh_579.threeDLayer = true;\r\n_Mesh_579.source.name = \"_Mesh_579\";\r\n_Mesh_579.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_579.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_579.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_570 = newComp.layers.addNull();\r\n_Mesh_570.threeDLayer = true;\r\n_Mesh_570.source.name = \"_Mesh_570\";\r\n_Mesh_570.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_570.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_570.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_571 = newComp.layers.addNull();\r\n_Mesh_571.threeDLayer = true;\r\n_Mesh_571.source.name = \"_Mesh_571\";\r\n_Mesh_571.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_571.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_571.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_572 = newComp.layers.addNull();\r\n_Mesh_572.threeDLayer = true;\r\n_Mesh_572.source.name = \"_Mesh_572\";\r\n_Mesh_572.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_572.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_572.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_573 = newComp.layers.addNull();\r\n_Mesh_573.threeDLayer = true;\r\n_Mesh_573.source.name = \"_Mesh_573\";\r\n_Mesh_573.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_573.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_573.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_574 = newComp.layers.addNull();\r\n_Mesh_574.threeDLayer = true;\r\n_Mesh_574.source.name = \"_Mesh_574\";\r\n_Mesh_574.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_574.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_574.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_575 = newComp.layers.addNull();\r\n_Mesh_575.threeDLayer = true;\r\n_Mesh_575.source.name = \"_Mesh_575\";\r\n_Mesh_575.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_575.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_575.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_576 = newComp.layers.addNull();\r\n_Mesh_576.threeDLayer = true;\r\n_Mesh_576.source.name = \"_Mesh_576\";\r\n_Mesh_576.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_576.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_576.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_577 = newComp.layers.addNull();\r\n_Mesh_577.threeDLayer = true;\r\n_Mesh_577.source.name = \"_Mesh_577\";\r\n_Mesh_577.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_577.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_577.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_974 = newComp.layers.addNull();\r\n_Mesh_974.threeDLayer = true;\r\n_Mesh_974.source.name = \"_Mesh_974\";\r\n_Mesh_974.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_974.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_974.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_975 = newComp.layers.addNull();\r\n_Mesh_975.threeDLayer = true;\r\n_Mesh_975.source.name = \"_Mesh_975\";\r\n_Mesh_975.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_975.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_975.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_976 = newComp.layers.addNull();\r\n_Mesh_976.threeDLayer = true;\r\n_Mesh_976.source.name = \"_Mesh_976\";\r\n_Mesh_976.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_976.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_976.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_977 = newComp.layers.addNull();\r\n_Mesh_977.threeDLayer = true;\r\n_Mesh_977.source.name = \"_Mesh_977\";\r\n_Mesh_977.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_977.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_977.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_970 = newComp.layers.addNull();\r\n_Mesh_970.threeDLayer = true;\r\n_Mesh_970.source.name = \"_Mesh_970\";\r\n_Mesh_970.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_970.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_970.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_971 = newComp.layers.addNull();\r\n_Mesh_971.threeDLayer = true;\r\n_Mesh_971.source.name = \"_Mesh_971\";\r\n_Mesh_971.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_971.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_971.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_972 = newComp.layers.addNull();\r\n_Mesh_972.threeDLayer = true;\r\n_Mesh_972.source.name = \"_Mesh_972\";\r\n_Mesh_972.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_972.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_972.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_973 = newComp.layers.addNull();\r\n_Mesh_973.threeDLayer = true;\r\n_Mesh_973.source.name = \"_Mesh_973\";\r\n_Mesh_973.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_973.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_973.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_978 = newComp.layers.addNull();\r\n_Mesh_978.threeDLayer = true;\r\n_Mesh_978.source.name = \"_Mesh_978\";\r\n_Mesh_978.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_978.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_978.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_979 = newComp.layers.addNull();\r\n_Mesh_979.threeDLayer = true;\r\n_Mesh_979.source.name = \"_Mesh_979\";\r\n_Mesh_979.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_979.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_979.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_758 = newComp.layers.addNull();\r\n_Mesh_758.threeDLayer = true;\r\n_Mesh_758.source.name = \"_Mesh_758\";\r\n_Mesh_758.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_758.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_758.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_759 = newComp.layers.addNull();\r\n_Mesh_759.threeDLayer = true;\r\n_Mesh_759.source.name = \"_Mesh_759\";\r\n_Mesh_759.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_759.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_759.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_754 = newComp.layers.addNull();\r\n_Mesh_754.threeDLayer = true;\r\n_Mesh_754.source.name = \"_Mesh_754\";\r\n_Mesh_754.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_754.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_754.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_755 = newComp.layers.addNull();\r\n_Mesh_755.threeDLayer = true;\r\n_Mesh_755.source.name = \"_Mesh_755\";\r\n_Mesh_755.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_755.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_755.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_756 = newComp.layers.addNull();\r\n_Mesh_756.threeDLayer = true;\r\n_Mesh_756.source.name = \"_Mesh_756\";\r\n_Mesh_756.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_756.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_756.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_757 = newComp.layers.addNull();\r\n_Mesh_757.threeDLayer = true;\r\n_Mesh_757.source.name = \"_Mesh_757\";\r\n_Mesh_757.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_757.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_757.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_750 = newComp.layers.addNull();\r\n_Mesh_750.threeDLayer = true;\r\n_Mesh_750.source.name = \"_Mesh_750\";\r\n_Mesh_750.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_750.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_750.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_751 = newComp.layers.addNull();\r\n_Mesh_751.threeDLayer = true;\r\n_Mesh_751.source.name = \"_Mesh_751\";\r\n_Mesh_751.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_751.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_751.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_752 = newComp.layers.addNull();\r\n_Mesh_752.threeDLayer = true;\r\n_Mesh_752.source.name = \"_Mesh_752\";\r\n_Mesh_752.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_752.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_752.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_753 = newComp.layers.addNull();\r\n_Mesh_753.threeDLayer = true;\r\n_Mesh_753.source.name = \"_Mesh_753\";\r\n_Mesh_753.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_753.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_753.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_998 = newComp.layers.addNull();\r\n_Mesh_998.threeDLayer = true;\r\n_Mesh_998.source.name = \"_Mesh_998\";\r\n_Mesh_998.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_998.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_998.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_999 = newComp.layers.addNull();\r\n_Mesh_999.threeDLayer = true;\r\n_Mesh_999.source.name = \"_Mesh_999\";\r\n_Mesh_999.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_999.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_999.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_992 = newComp.layers.addNull();\r\n_Mesh_992.threeDLayer = true;\r\n_Mesh_992.source.name = \"_Mesh_992\";\r\n_Mesh_992.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_992.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_992.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_993 = newComp.layers.addNull();\r\n_Mesh_993.threeDLayer = true;\r\n_Mesh_993.source.name = \"_Mesh_993\";\r\n_Mesh_993.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_993.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_993.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_990 = newComp.layers.addNull();\r\n_Mesh_990.threeDLayer = true;\r\n_Mesh_990.source.name = \"_Mesh_990\";\r\n_Mesh_990.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_990.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_990.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_991 = newComp.layers.addNull();\r\n_Mesh_991.threeDLayer = true;\r\n_Mesh_991.source.name = \"_Mesh_991\";\r\n_Mesh_991.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_991.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_991.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_996 = newComp.layers.addNull();\r\n_Mesh_996.threeDLayer = true;\r\n_Mesh_996.source.name = \"_Mesh_996\";\r\n_Mesh_996.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_996.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_996.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_997 = newComp.layers.addNull();\r\n_Mesh_997.threeDLayer = true;\r\n_Mesh_997.source.name = \"_Mesh_997\";\r\n_Mesh_997.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_997.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_997.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_994 = newComp.layers.addNull();\r\n_Mesh_994.threeDLayer = true;\r\n_Mesh_994.source.name = \"_Mesh_994\";\r\n_Mesh_994.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_994.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_994.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_995 = newComp.layers.addNull();\r\n_Mesh_995.threeDLayer = true;\r\n_Mesh_995.source.name = \"_Mesh_995\";\r\n_Mesh_995.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_995.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_995.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_192 = newComp.layers.addNull();\r\n_Mesh_192.threeDLayer = true;\r\n_Mesh_192.source.name = \"_Mesh_192\";\r\n_Mesh_192.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_192.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_192.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_193 = newComp.layers.addNull();\r\n_Mesh_193.threeDLayer = true;\r\n_Mesh_193.source.name = \"_Mesh_193\";\r\n_Mesh_193.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_193.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_193.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_190 = newComp.layers.addNull();\r\n_Mesh_190.threeDLayer = true;\r\n_Mesh_190.source.name = \"_Mesh_190\";\r\n_Mesh_190.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_190.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_190.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_191 = newComp.layers.addNull();\r\n_Mesh_191.threeDLayer = true;\r\n_Mesh_191.source.name = \"_Mesh_191\";\r\n_Mesh_191.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_191.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_191.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_196 = newComp.layers.addNull();\r\n_Mesh_196.threeDLayer = true;\r\n_Mesh_196.source.name = \"_Mesh_196\";\r\n_Mesh_196.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_196.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_196.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_197 = newComp.layers.addNull();\r\n_Mesh_197.threeDLayer = true;\r\n_Mesh_197.source.name = \"_Mesh_197\";\r\n_Mesh_197.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_197.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_197.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_194 = newComp.layers.addNull();\r\n_Mesh_194.threeDLayer = true;\r\n_Mesh_194.source.name = \"_Mesh_194\";\r\n_Mesh_194.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_194.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_194.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_195 = newComp.layers.addNull();\r\n_Mesh_195.threeDLayer = true;\r\n_Mesh_195.source.name = \"_Mesh_195\";\r\n_Mesh_195.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_195.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_195.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_198 = newComp.layers.addNull();\r\n_Mesh_198.threeDLayer = true;\r\n_Mesh_198.source.name = \"_Mesh_198\";\r\n_Mesh_198.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_198.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_198.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_199 = newComp.layers.addNull();\r\n_Mesh_199.threeDLayer = true;\r\n_Mesh_199.source.name = \"_Mesh_199\";\r\n_Mesh_199.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_199.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_199.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_350 = newComp.layers.addNull();\r\n_Mesh_350.threeDLayer = true;\r\n_Mesh_350.source.name = \"_Mesh_350\";\r\n_Mesh_350.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_350.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_350.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_351 = newComp.layers.addNull();\r\n_Mesh_351.threeDLayer = true;\r\n_Mesh_351.source.name = \"_Mesh_351\";\r\n_Mesh_351.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_351.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_351.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_352 = newComp.layers.addNull();\r\n_Mesh_352.threeDLayer = true;\r\n_Mesh_352.source.name = \"_Mesh_352\";\r\n_Mesh_352.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_352.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_352.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_353 = newComp.layers.addNull();\r\n_Mesh_353.threeDLayer = true;\r\n_Mesh_353.source.name = \"_Mesh_353\";\r\n_Mesh_353.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_353.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_353.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_354 = newComp.layers.addNull();\r\n_Mesh_354.threeDLayer = true;\r\n_Mesh_354.source.name = \"_Mesh_354\";\r\n_Mesh_354.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_354.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_354.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_355 = newComp.layers.addNull();\r\n_Mesh_355.threeDLayer = true;\r\n_Mesh_355.source.name = \"_Mesh_355\";\r\n_Mesh_355.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_355.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_355.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_356 = newComp.layers.addNull();\r\n_Mesh_356.threeDLayer = true;\r\n_Mesh_356.source.name = \"_Mesh_356\";\r\n_Mesh_356.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_356.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_356.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_357 = newComp.layers.addNull();\r\n_Mesh_357.threeDLayer = true;\r\n_Mesh_357.source.name = \"_Mesh_357\";\r\n_Mesh_357.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_357.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_357.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_358 = newComp.layers.addNull();\r\n_Mesh_358.threeDLayer = true;\r\n_Mesh_358.source.name = \"_Mesh_358\";\r\n_Mesh_358.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_358.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_358.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_359 = newComp.layers.addNull();\r\n_Mesh_359.threeDLayer = true;\r\n_Mesh_359.source.name = \"_Mesh_359\";\r\n_Mesh_359.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_359.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_359.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_044 = newComp.layers.addNull();\r\n_Mesh_044.threeDLayer = true;\r\n_Mesh_044.source.name = \"_Mesh_044\";\r\n_Mesh_044.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_044.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_044.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_045 = newComp.layers.addNull();\r\n_Mesh_045.threeDLayer = true;\r\n_Mesh_045.source.name = \"_Mesh_045\";\r\n_Mesh_045.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_045.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_045.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_040 = newComp.layers.addNull();\r\n_Mesh_040.threeDLayer = true;\r\n_Mesh_040.source.name = \"_Mesh_040\";\r\n_Mesh_040.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_040.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_040.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_041 = newComp.layers.addNull();\r\n_Mesh_041.threeDLayer = true;\r\n_Mesh_041.source.name = \"_Mesh_041\";\r\n_Mesh_041.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_041.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_041.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_042 = newComp.layers.addNull();\r\n_Mesh_042.threeDLayer = true;\r\n_Mesh_042.source.name = \"_Mesh_042\";\r\n_Mesh_042.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_042.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_042.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_043 = newComp.layers.addNull();\r\n_Mesh_043.threeDLayer = true;\r\n_Mesh_043.source.name = \"_Mesh_043\";\r\n_Mesh_043.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_043.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_043.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1334 = newComp.layers.addNull();\r\n_Mesh_1334.threeDLayer = true;\r\n_Mesh_1334.source.name = \"_Mesh_1334\";\r\n_Mesh_1334.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1334.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1334.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1335 = newComp.layers.addNull();\r\n_Mesh_1335.threeDLayer = true;\r\n_Mesh_1335.source.name = \"_Mesh_1335\";\r\n_Mesh_1335.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1335.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1335.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1336 = newComp.layers.addNull();\r\n_Mesh_1336.threeDLayer = true;\r\n_Mesh_1336.source.name = \"_Mesh_1336\";\r\n_Mesh_1336.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1336.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1336.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1337 = newComp.layers.addNull();\r\n_Mesh_1337.threeDLayer = true;\r\n_Mesh_1337.source.name = \"_Mesh_1337\";\r\n_Mesh_1337.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1337.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1337.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1330 = newComp.layers.addNull();\r\n_Mesh_1330.threeDLayer = true;\r\n_Mesh_1330.source.name = \"_Mesh_1330\";\r\n_Mesh_1330.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1330.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1330.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1331 = newComp.layers.addNull();\r\n_Mesh_1331.threeDLayer = true;\r\n_Mesh_1331.source.name = \"_Mesh_1331\";\r\n_Mesh_1331.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1331.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1331.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1332 = newComp.layers.addNull();\r\n_Mesh_1332.threeDLayer = true;\r\n_Mesh_1332.source.name = \"_Mesh_1332\";\r\n_Mesh_1332.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1332.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1332.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1333 = newComp.layers.addNull();\r\n_Mesh_1333.threeDLayer = true;\r\n_Mesh_1333.source.name = \"_Mesh_1333\";\r\n_Mesh_1333.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1333.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1333.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1338 = newComp.layers.addNull();\r\n_Mesh_1338.threeDLayer = true;\r\n_Mesh_1338.source.name = \"_Mesh_1338\";\r\n_Mesh_1338.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1338.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1338.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1339 = newComp.layers.addNull();\r\n_Mesh_1339.threeDLayer = true;\r\n_Mesh_1339.source.name = \"_Mesh_1339\";\r\n_Mesh_1339.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1339.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1339.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1420 = newComp.layers.addNull();\r\n_Mesh_1420.threeDLayer = true;\r\n_Mesh_1420.source.name = \"_Mesh_1420\";\r\n_Mesh_1420.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1420.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1420.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1421 = newComp.layers.addNull();\r\n_Mesh_1421.threeDLayer = true;\r\n_Mesh_1421.source.name = \"_Mesh_1421\";\r\n_Mesh_1421.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1421.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1421.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1422 = newComp.layers.addNull();\r\n_Mesh_1422.threeDLayer = true;\r\n_Mesh_1422.source.name = \"_Mesh_1422\";\r\n_Mesh_1422.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1422.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1422.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1423 = newComp.layers.addNull();\r\n_Mesh_1423.threeDLayer = true;\r\n_Mesh_1423.source.name = \"_Mesh_1423\";\r\n_Mesh_1423.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1423.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1423.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1424 = newComp.layers.addNull();\r\n_Mesh_1424.threeDLayer = true;\r\n_Mesh_1424.source.name = \"_Mesh_1424\";\r\n_Mesh_1424.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1424.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1424.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1425 = newComp.layers.addNull();\r\n_Mesh_1425.threeDLayer = true;\r\n_Mesh_1425.source.name = \"_Mesh_1425\";\r\n_Mesh_1425.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1425.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1425.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1426 = newComp.layers.addNull();\r\n_Mesh_1426.threeDLayer = true;\r\n_Mesh_1426.source.name = \"_Mesh_1426\";\r\n_Mesh_1426.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1426.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1426.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1427 = newComp.layers.addNull();\r\n_Mesh_1427.threeDLayer = true;\r\n_Mesh_1427.source.name = \"_Mesh_1427\";\r\n_Mesh_1427.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1427.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1427.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1428 = newComp.layers.addNull();\r\n_Mesh_1428.threeDLayer = true;\r\n_Mesh_1428.source.name = \"_Mesh_1428\";\r\n_Mesh_1428.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1428.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1428.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1429 = newComp.layers.addNull();\r\n_Mesh_1429.threeDLayer = true;\r\n_Mesh_1429.source.name = \"_Mesh_1429\";\r\n_Mesh_1429.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1429.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1429.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1208 = newComp.layers.addNull();\r\n_Mesh_1208.threeDLayer = true;\r\n_Mesh_1208.source.name = \"_Mesh_1208\";\r\n_Mesh_1208.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1208.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1208.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1209 = newComp.layers.addNull();\r\n_Mesh_1209.threeDLayer = true;\r\n_Mesh_1209.source.name = \"_Mesh_1209\";\r\n_Mesh_1209.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1209.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1209.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1200 = newComp.layers.addNull();\r\n_Mesh_1200.threeDLayer = true;\r\n_Mesh_1200.source.name = \"_Mesh_1200\";\r\n_Mesh_1200.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1200.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1200.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1201 = newComp.layers.addNull();\r\n_Mesh_1201.threeDLayer = true;\r\n_Mesh_1201.source.name = \"_Mesh_1201\";\r\n_Mesh_1201.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1201.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1201.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1202 = newComp.layers.addNull();\r\n_Mesh_1202.threeDLayer = true;\r\n_Mesh_1202.source.name = \"_Mesh_1202\";\r\n_Mesh_1202.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1202.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1202.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1203 = newComp.layers.addNull();\r\n_Mesh_1203.threeDLayer = true;\r\n_Mesh_1203.source.name = \"_Mesh_1203\";\r\n_Mesh_1203.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1203.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1203.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1204 = newComp.layers.addNull();\r\n_Mesh_1204.threeDLayer = true;\r\n_Mesh_1204.source.name = \"_Mesh_1204\";\r\n_Mesh_1204.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1204.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1204.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1205 = newComp.layers.addNull();\r\n_Mesh_1205.threeDLayer = true;\r\n_Mesh_1205.source.name = \"_Mesh_1205\";\r\n_Mesh_1205.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1205.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1205.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1206 = newComp.layers.addNull();\r\n_Mesh_1206.threeDLayer = true;\r\n_Mesh_1206.source.name = \"_Mesh_1206\";\r\n_Mesh_1206.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1206.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1206.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1207 = newComp.layers.addNull();\r\n_Mesh_1207.threeDLayer = true;\r\n_Mesh_1207.source.name = \"_Mesh_1207\";\r\n_Mesh_1207.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1207.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1207.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1118 = newComp.layers.addNull();\r\n_Mesh_1118.threeDLayer = true;\r\n_Mesh_1118.source.name = \"_Mesh_1118\";\r\n_Mesh_1118.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1118.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1118.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1119 = newComp.layers.addNull();\r\n_Mesh_1119.threeDLayer = true;\r\n_Mesh_1119.source.name = \"_Mesh_1119\";\r\n_Mesh_1119.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1119.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1119.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1114 = newComp.layers.addNull();\r\n_Mesh_1114.threeDLayer = true;\r\n_Mesh_1114.source.name = \"_Mesh_1114\";\r\n_Mesh_1114.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1114.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1114.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1115 = newComp.layers.addNull();\r\n_Mesh_1115.threeDLayer = true;\r\n_Mesh_1115.source.name = \"_Mesh_1115\";\r\n_Mesh_1115.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1115.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1115.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1116 = newComp.layers.addNull();\r\n_Mesh_1116.threeDLayer = true;\r\n_Mesh_1116.source.name = \"_Mesh_1116\";\r\n_Mesh_1116.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1116.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1116.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1117 = newComp.layers.addNull();\r\n_Mesh_1117.threeDLayer = true;\r\n_Mesh_1117.source.name = \"_Mesh_1117\";\r\n_Mesh_1117.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1117.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1117.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1110 = newComp.layers.addNull();\r\n_Mesh_1110.threeDLayer = true;\r\n_Mesh_1110.source.name = \"_Mesh_1110\";\r\n_Mesh_1110.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1110.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1110.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1111 = newComp.layers.addNull();\r\n_Mesh_1111.threeDLayer = true;\r\n_Mesh_1111.source.name = \"_Mesh_1111\";\r\n_Mesh_1111.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1111.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1111.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1112 = newComp.layers.addNull();\r\n_Mesh_1112.threeDLayer = true;\r\n_Mesh_1112.source.name = \"_Mesh_1112\";\r\n_Mesh_1112.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1112.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1112.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_1113 = newComp.layers.addNull();\r\n_Mesh_1113.threeDLayer = true;\r\n_Mesh_1113.source.name = \"_Mesh_1113\";\r\n_Mesh_1113.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_1113.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_1113.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_509 = newComp.layers.addNull();\r\n_Mesh_509.threeDLayer = true;\r\n_Mesh_509.source.name = \"_Mesh_509\";\r\n_Mesh_509.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_509.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_509.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_508 = newComp.layers.addNull();\r\n_Mesh_508.threeDLayer = true;\r\n_Mesh_508.source.name = \"_Mesh_508\";\r\n_Mesh_508.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_508.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_508.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_505 = newComp.layers.addNull();\r\n_Mesh_505.threeDLayer = true;\r\n_Mesh_505.source.name = \"_Mesh_505\";\r\n_Mesh_505.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_505.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_505.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_504 = newComp.layers.addNull();\r\n_Mesh_504.threeDLayer = true;\r\n_Mesh_504.source.name = \"_Mesh_504\";\r\n_Mesh_504.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_504.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_504.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_507 = newComp.layers.addNull();\r\n_Mesh_507.threeDLayer = true;\r\n_Mesh_507.source.name = \"_Mesh_507\";\r\n_Mesh_507.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_507.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_507.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_506 = newComp.layers.addNull();\r\n_Mesh_506.threeDLayer = true;\r\n_Mesh_506.source.name = \"_Mesh_506\";\r\n_Mesh_506.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_506.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_506.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_501 = newComp.layers.addNull();\r\n_Mesh_501.threeDLayer = true;\r\n_Mesh_501.source.name = \"_Mesh_501\";\r\n_Mesh_501.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_501.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_501.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_500 = newComp.layers.addNull();\r\n_Mesh_500.threeDLayer = true;\r\n_Mesh_500.source.name = \"_Mesh_500\";\r\n_Mesh_500.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_500.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_500.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_503 = newComp.layers.addNull();\r\n_Mesh_503.threeDLayer = true;\r\n_Mesh_503.source.name = \"_Mesh_503\";\r\n_Mesh_503.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_503.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_503.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_502 = newComp.layers.addNull();\r\n_Mesh_502.threeDLayer = true;\r\n_Mesh_502.source.name = \"_Mesh_502\";\r\n_Mesh_502.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_502.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_502.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_211 = newComp.layers.addNull();\r\n_Mesh_211.threeDLayer = true;\r\n_Mesh_211.source.name = \"_Mesh_211\";\r\n_Mesh_211.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_211.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_211.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_210 = newComp.layers.addNull();\r\n_Mesh_210.threeDLayer = true;\r\n_Mesh_210.source.name = \"_Mesh_210\";\r\n_Mesh_210.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_210.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_210.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_213 = newComp.layers.addNull();\r\n_Mesh_213.threeDLayer = true;\r\n_Mesh_213.source.name = \"_Mesh_213\";\r\n_Mesh_213.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_213.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_213.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_212 = newComp.layers.addNull();\r\n_Mesh_212.threeDLayer = true;\r\n_Mesh_212.source.name = \"_Mesh_212\";\r\n_Mesh_212.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_212.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_212.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_215 = newComp.layers.addNull();\r\n_Mesh_215.threeDLayer = true;\r\n_Mesh_215.source.name = \"_Mesh_215\";\r\n_Mesh_215.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_215.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_215.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_214 = newComp.layers.addNull();\r\n_Mesh_214.threeDLayer = true;\r\n_Mesh_214.source.name = \"_Mesh_214\";\r\n_Mesh_214.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_214.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_214.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_217 = newComp.layers.addNull();\r\n_Mesh_217.threeDLayer = true;\r\n_Mesh_217.source.name = \"_Mesh_217\";\r\n_Mesh_217.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_217.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_217.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_216 = newComp.layers.addNull();\r\n_Mesh_216.threeDLayer = true;\r\n_Mesh_216.source.name = \"_Mesh_216\";\r\n_Mesh_216.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_216.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_216.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_219 = newComp.layers.addNull();\r\n_Mesh_219.threeDLayer = true;\r\n_Mesh_219.source.name = \"_Mesh_219\";\r\n_Mesh_219.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_219.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_219.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_218 = newComp.layers.addNull();\r\n_Mesh_218.threeDLayer = true;\r\n_Mesh_218.source.name = \"_Mesh_218\";\r\n_Mesh_218.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_218.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_218.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_699 = newComp.layers.addNull();\r\n_Mesh_699.threeDLayer = true;\r\n_Mesh_699.source.name = \"_Mesh_699\";\r\n_Mesh_699.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_699.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_699.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_698 = newComp.layers.addNull();\r\n_Mesh_698.threeDLayer = true;\r\n_Mesh_698.source.name = \"_Mesh_698\";\r\n_Mesh_698.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_698.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_698.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_695 = newComp.layers.addNull();\r\n_Mesh_695.threeDLayer = true;\r\n_Mesh_695.source.name = \"_Mesh_695\";\r\n_Mesh_695.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_695.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_695.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_694 = newComp.layers.addNull();\r\n_Mesh_694.threeDLayer = true;\r\n_Mesh_694.source.name = \"_Mesh_694\";\r\n_Mesh_694.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_694.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_694.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_697 = newComp.layers.addNull();\r\n_Mesh_697.threeDLayer = true;\r\n_Mesh_697.source.name = \"_Mesh_697\";\r\n_Mesh_697.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_697.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_697.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_696 = newComp.layers.addNull();\r\n_Mesh_696.threeDLayer = true;\r\n_Mesh_696.source.name = \"_Mesh_696\";\r\n_Mesh_696.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_696.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_696.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_691 = newComp.layers.addNull();\r\n_Mesh_691.threeDLayer = true;\r\n_Mesh_691.source.name = \"_Mesh_691\";\r\n_Mesh_691.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_691.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_691.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_690 = newComp.layers.addNull();\r\n_Mesh_690.threeDLayer = true;\r\n_Mesh_690.source.name = \"_Mesh_690\";\r\n_Mesh_690.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_690.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_690.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_693 = newComp.layers.addNull();\r\n_Mesh_693.threeDLayer = true;\r\n_Mesh_693.source.name = \"_Mesh_693\";\r\n_Mesh_693.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_693.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_693.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_692 = newComp.layers.addNull();\r\n_Mesh_692.threeDLayer = true;\r\n_Mesh_692.source.name = \"_Mesh_692\";\r\n_Mesh_692.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_692.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_692.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_325 = newComp.layers.addNull();\r\n_Mesh_325.threeDLayer = true;\r\n_Mesh_325.source.name = \"_Mesh_325\";\r\n_Mesh_325.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_325.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_325.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_324 = newComp.layers.addNull();\r\n_Mesh_324.threeDLayer = true;\r\n_Mesh_324.source.name = \"_Mesh_324\";\r\n_Mesh_324.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_324.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_324.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_327 = newComp.layers.addNull();\r\n_Mesh_327.threeDLayer = true;\r\n_Mesh_327.source.name = \"_Mesh_327\";\r\n_Mesh_327.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_327.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_327.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_326 = newComp.layers.addNull();\r\n_Mesh_326.threeDLayer = true;\r\n_Mesh_326.source.name = \"_Mesh_326\";\r\n_Mesh_326.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_326.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_326.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_321 = newComp.layers.addNull();\r\n_Mesh_321.threeDLayer = true;\r\n_Mesh_321.source.name = \"_Mesh_321\";\r\n_Mesh_321.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_321.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_321.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_320 = newComp.layers.addNull();\r\n_Mesh_320.threeDLayer = true;\r\n_Mesh_320.source.name = \"_Mesh_320\";\r\n_Mesh_320.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_320.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_320.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_323 = newComp.layers.addNull();\r\n_Mesh_323.threeDLayer = true;\r\n_Mesh_323.source.name = \"_Mesh_323\";\r\n_Mesh_323.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_323.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_323.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_322 = newComp.layers.addNull();\r\n_Mesh_322.threeDLayer = true;\r\n_Mesh_322.source.name = \"_Mesh_322\";\r\n_Mesh_322.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_322.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_322.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_329 = newComp.layers.addNull();\r\n_Mesh_329.threeDLayer = true;\r\n_Mesh_329.source.name = \"_Mesh_329\";\r\n_Mesh_329.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_329.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_329.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_328 = newComp.layers.addNull();\r\n_Mesh_328.threeDLayer = true;\r\n_Mesh_328.source.name = \"_Mesh_328\";\r\n_Mesh_328.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_328.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_328.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_039 = newComp.layers.addNull();\r\n_Mesh_039.threeDLayer = true;\r\n_Mesh_039.source.name = \"_Mesh_039\";\r\n_Mesh_039.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_039.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_039.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_038 = newComp.layers.addNull();\r\n_Mesh_038.threeDLayer = true;\r\n_Mesh_038.source.name = \"_Mesh_038\";\r\n_Mesh_038.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_038.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_038.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_031 = newComp.layers.addNull();\r\n_Mesh_031.threeDLayer = true;\r\n_Mesh_031.source.name = \"_Mesh_031\";\r\n_Mesh_031.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_031.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_031.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_030 = newComp.layers.addNull();\r\n_Mesh_030.threeDLayer = true;\r\n_Mesh_030.source.name = \"_Mesh_030\";\r\n_Mesh_030.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_030.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_030.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_033 = newComp.layers.addNull();\r\n_Mesh_033.threeDLayer = true;\r\n_Mesh_033.source.name = \"_Mesh_033\";\r\n_Mesh_033.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_033.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_033.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_032 = newComp.layers.addNull();\r\n_Mesh_032.threeDLayer = true;\r\n_Mesh_032.source.name = \"_Mesh_032\";\r\n_Mesh_032.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_032.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_032.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_035 = newComp.layers.addNull();\r\n_Mesh_035.threeDLayer = true;\r\n_Mesh_035.source.name = \"_Mesh_035\";\r\n_Mesh_035.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_035.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_035.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_034 = newComp.layers.addNull();\r\n_Mesh_034.threeDLayer = true;\r\n_Mesh_034.source.name = \"_Mesh_034\";\r\n_Mesh_034.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_034.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_034.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_037 = newComp.layers.addNull();\r\n_Mesh_037.threeDLayer = true;\r\n_Mesh_037.source.name = \"_Mesh_037\";\r\n_Mesh_037.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_037.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_037.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\nvar _Mesh_036 = newComp.layers.addNull();\r\n_Mesh_036.threeDLayer = true;\r\n_Mesh_036.source.name = \"_Mesh_036\";\r\n_Mesh_036.property(\"position\").setValue([960.000000,540.000000,0.000000],);\r\n_Mesh_036.property(\"orientation\").setValue([0.000009,-0.000000,0.000000],);\r\n_Mesh_036.property(\"scale\").setValue([0.719434,0.719434,0.719434],);\r\n\r\n\r\n// ************** LIGHTS **************\r\n\r\n\r\n// ************** CAMERAS **************\r\n\r\n\r\nvar _Camera = newComp.layers.addCamera(\"_Camera\",[0,0]);\r\n_Camera.autoOrient = AutoOrientType.NO_AUTO_ORIENT;\r\n_Camera.property(\"position\").setValue([1708.113155,5.633488,-650.763988],);\r\n_Camera.property(\"orientation\").setValue([-36.096345,-40.909176,-24.830890],);\r\n_Camera.property(\"zoom\").setValue(2100.000000,);\r\n\r\n\r\n\r\n}else{alert (\"Exit Import Blender animation data \\nNo Comp's name has been chosen\",\"EXIT\")};}", "function ws_collage(s,J,B){var z=jQuery,f=z(this),D=z(\"ul\",B),m=s.maxQuality||true,v=s.maxPreload||20,F=!s.noCanvas&&document.createElement(\"canvas\").getContext,n=30,e=10,G=false,O=0.3,l=0.7,y=-180,a=180,d=J.length,T=[];B=B.parent();var w=z(\"<div>\").addClass(\"ws_effect\").css({position:\"absolute\",width:\"100%\",height:\"100%\",left:0,top:0,overflow:\"hidden\",\"z-index\":8}).appendTo(B);function I(x,j,i){return parseFloat(i*(j-x)+x)}function S(X,W,N){var i=N*W.x,Y=N*W.y,j=N*W.width,V=N*W.height;if(F){X.save();X.translate(i+0.5*j,Y+0.5*V);X.rotate(W.angle*Math.PI/180);X.scale(W.scale,W.scale);if(W.img){X.drawImage(W.img,-0.5*j,-0.5*V,j,V)}X.restore()}else{z(\"<img>\").attr(\"src\",W.img).css({position:\"absolute\",width:100*j/s.width+\"%\",height:100*V/s.height+\"%\",left:100*i/s.width+\"%\",top:100*Y/s.height+\"%\"}).appendTo(X)}}function c(W,Z,V,N,X,aa){var x=T[W],Y=T[Z],j=new Date;var i=setInterval(function(){var ab=(new Date-j)/s.duration;if(ab>1){ab=1}var ak=1-2*ab;if(ak<0){ak*=-1;if(ak>1){ak=1}}ak=jQuery.easing.easeInOutQuad(1,ak,0,1,1);ab=jQuery.easing.easeInOutQuad(1,ab,0,1,1);if(F){p.width=N;p.height=X;u.width=N;u.height=X;var ac=I(s.width/Y.width,s.width/x.width,ab),ad=I(0.5,I(1/Y.scale,1/x.scale,ab),ak),ah=I(1/Y.scale,1/x.scale,ab),ai=I(Y.angle,x.angle,ab),aj=V*x.width,ae=V*x.height,ag=V*I(Y.x,x.x,ab),af=V*I(Y.y,x.y,ab);if(R&&k){p.ctx.drawImage(k,0,0,N,X);p.ctx.save();p.ctx.translate(ag+0.5*aj,af+0.5*ae);p.ctx.rotate(-ai*Math.PI/180);p.ctx.scale(ah,ah);p.ctx.translate(-(ag+0.5*aj),-(af+0.5*ae));p.ctx.transform(ah,0,0,ah,-ag*ah,-af*ah);p.ctx.drawImage(k,-N,-X,N*4,X*4);p.ctx.restore()}p.ctx.transform(ac,0,0,ac,-ag*ac,-af*ac);p.ctx.translate(ag+0.5*aj,af+0.5*ae);p.ctx.rotate(-ai*Math.PI/180);p.ctx.scale(ad,ad);p.ctx.translate(-(ag+0.5*aj),-(af+0.5*ae));p.ctx.globalAlpha=I(0.2,1,ak);if(m){for(Q in T){S(p.ctx,T[Q],V)}}else{p.ctx.drawImage(M,0,0)}p.ctx.globalAlpha=1;p.ctx.globalAlpha=I(0,1,ak);S(p.ctx,x,V);p.ctx.globalAlpha=I(1,0,ab*2>1?1:ab*2);S(p.ctx,Y,V);p.ctx.globalAlpha=1;u.ctx.drawImage(p,0,0)}else{var al=I(2,N/(Y.width*V),ak),ag=-V*I(Y.x,x.x,ab)*al,af=-V*I(Y.y,x.y,ab)*al,aj=N*al,ae=X*al;u.css({left:ag,top:af,width:aj,height:ae})}w.show();if(ab==1){clearInterval(i);aa()}},Math.ceil(1000/n))}function C(W,i,V,j,N){if(W>i||!T[W]||T[W].img){return}var x=new Image();x.onload=function(){T[W].img=x;if(V&&W!=N[0]&&W!=N[1]){S(j,T[W],1);C(W+1,i,true,j,N)}else{C(W+1,i,false)}};x.onerror=function(){if(V&&W!=N[0]&&W!=N[1]){S(j,T[W],1);C(W+1,i,true,j,N)}else{C(W+1,i,false)}};x.src=J[W].src}var r=0,q=0,t=s.width/(Math.sqrt(d)+1),A=s.height/(Math.sqrt(d)+1),b=Math.floor(s.width/t);for(Q=0;Q<d;Q++){if(t+r>t*b){q=Math.floor(t*(Q+1)/s.width)*A;r=0}T[Q]={x:r,y:q,width:t,height:A,img:null};if(F){T[Q].scale=I(O,l,Math.random());T[Q].angle=I(y,a,Math.random())}r+=parseFloat(t)}for(var P,E,Q=T.length;Q;P=parseInt(Math.random()*Q),E=T[--Q],T[Q]=T[P],T[P]=E){}if(F){var u=z(\"<canvas>\")[0];u.ctx=u.getContext(\"2d\");u.width=w.width();u.height=w.height();var p=z(\"<canvas>\")[0];p.ctx=p.getContext(\"2d\");p.width=w.width();p.height=w.height();var k=z(\"<canvas>\")[0];k.ctx=k.getContext(\"2d\");k.width=w.width();k.height=w.height();if(!m){var M=z(\"<canvas>\")[0];M.ctx=M.getContext(\"2d\");M.width=w.width();M.height=w.height()}w.append(u)}else{var u=w.clone().removeClass(\"ws_effect\").css({overflow:\"visible\"});w.css(\"display\",\"none\").append(u);for(Q in T){T[Q].img=J[Q].src;S(u,T[Q],1)}var h=(d%b==\"undefined\"?0:d%b);startRight=0,bottomAddCount=2*b-h,rightAddCount=Math.ceil(d/b)+1;for(var Q=0;Q<bottomAddCount;Q++){S(u,{img:J[Q%J.length].src,width:t,height:A,x:t*((h+Q)%b),y:q+Math.floor((h+Q)/b)*A},1)}for(var Q=0;Q<bottomAddCount;Q++){S(u,{img:J[Q%J.length].src,width:t,height:A,x:t*b,y:Q*A},1)}}var H,R;this.go=function(x,V){if(H){return -1}f.trigger(\"effectStart\",w);if(s.images){T[x].img=J[x]}if(window.XMLHttpRequest){var N=w.width(),j=w.height(),i=N/s.width;if(F){C(V,V,false);C(x,x,false);if(m){C(2,v+1,false)}else{M.width=N;M.height=j;C(2,v+1,true,M.ctx,[V,x])}if(!R&&!G){rand=Math.round(I(0,d-1,Math.random()));k.width=w.width();k.height=w.height();R=K(z(J[rand]),e,k)}}H=new c(x,V,i,N,j,function W(){f.trigger(\"effectEnd\",x);w.hide();H=0;if(!m&&F){for(i in T){T[i].img=null}}})}else{H=0;D.stop(true).animate({left:(x?-x+\"00%\":(/Safari/.test(navigator.userAgent)?\"0%\":0))},s.duration,\"easeInOutExpo\",function(){f.trigger(\"effectEnd\",x)})}return x};function K(i,x,j){if(F){j.ctx.drawImage(i.get(0),0,0);if(!o(j.ctx,0,0,j.width,j.height,x)){j.ctx.drawImage(i.get(0),0,0)}return true}return cont}var g=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];var L=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function o(aJ,aq,ao,j,N,aA){if(isNaN(aA)||aA<1){return}aA|=0;var aE;try{aE=aJ.getImageData(aq,ao,j,N)}catch(aI){console.log(\"error:unable to access image data: \"+aI);return false}var Y=aE.data;var ay,ax,aG,aD,af,ai,ac,W,X,an,ad,ap,al,au,az,ag,ab,ah,aj,at;var aH=aA+aA+1;var av=j<<2;var ae=j-1;var aC=N-1;var aa=aA+1;var aB=aa*(aa+1)/2;var ar=new U();var am=ar;for(aG=1;aG<aH;aG++){am=am.next=new U();if(aG==aa){var Z=am}}am.next=ar;var aF=null;var aw=null;ac=ai=0;var ak=g[aA];var V=L[aA];for(ax=0;ax<N;ax++){au=az=ag=W=X=an=0;ad=aa*(ab=Y[ai]);ap=aa*(ah=Y[ai+1]);al=aa*(aj=Y[ai+2]);W+=aB*ab;X+=aB*ah;an+=aB*aj;am=ar;for(aG=0;aG<aa;aG++){am.r=ab;am.g=ah;am.b=aj;am=am.next}for(aG=1;aG<aa;aG++){aD=ai+((ae<aG?ae:aG)<<2);W+=(am.r=(ab=Y[aD]))*(at=aa-aG);X+=(am.g=(ah=Y[aD+1]))*at;an+=(am.b=(aj=Y[aD+2]))*at;au+=ab;az+=ah;ag+=aj;am=am.next}aF=ar;aw=Z;for(ay=0;ay<j;ay++){Y[ai]=(W*ak)>>V;Y[ai+1]=(X*ak)>>V;Y[ai+2]=(an*ak)>>V;W-=ad;X-=ap;an-=al;ad-=aF.r;ap-=aF.g;al-=aF.b;aD=(ac+((aD=ay+aA+1)<ae?aD:ae))<<2;au+=(aF.r=Y[aD]);az+=(aF.g=Y[aD+1]);ag+=(aF.b=Y[aD+2]);W+=au;X+=az;an+=ag;aF=aF.next;ad+=(ab=aw.r);ap+=(ah=aw.g);al+=(aj=aw.b);au-=ab;az-=ah;ag-=aj;aw=aw.next;ai+=4}ac+=j}for(ay=0;ay<j;ay++){az=ag=au=X=an=W=0;ai=ay<<2;ad=aa*(ab=Y[ai]);ap=aa*(ah=Y[ai+1]);al=aa*(aj=Y[ai+2]);W+=aB*ab;X+=aB*ah;an+=aB*aj;am=ar;for(aG=0;aG<aa;aG++){am.r=ab;am.g=ah;am.b=aj;am=am.next}af=j;for(aG=1;aG<=aA;aG++){ai=(af+ay)<<2;W+=(am.r=(ab=Y[ai]))*(at=aa-aG);X+=(am.g=(ah=Y[ai+1]))*at;an+=(am.b=(aj=Y[ai+2]))*at;au+=ab;az+=ah;ag+=aj;am=am.next;if(aG<aC){af+=j}}ai=ay;aF=ar;aw=Z;for(ax=0;ax<N;ax++){aD=ai<<2;Y[aD]=(W*ak)>>V;Y[aD+1]=(X*ak)>>V;Y[aD+2]=(an*ak)>>V;W-=ad;X-=ap;an-=al;ad-=aF.r;ap-=aF.g;al-=aF.b;aD=(ay+(((aD=ax+aa)<aC?aD:aC)*j))<<2;W+=(au+=(aF.r=Y[aD]));X+=(az+=(aF.g=Y[aD+1]));an+=(ag+=(aF.b=Y[aD+2]));aF=aF.next;ad+=(ab=aw.r);ap+=(ah=aw.g);al+=(aj=aw.b);au-=ab;az-=ah;ag-=aj;aw=aw.next;ai+=j}}aJ.putImageData(aE,aq,ao);return true}function U(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}}", "function processComposition(comp) {\n let arComposition = []\n let hashResourceInDoc = {}; //used to ensure no duplications in doc\n //the document bundle\n let bundle = {resourceType : \"Bundle\", id:comp.id, type: 'document', entry:[]}\n bundle.entry.push({resource:comp,fullUrl:bundleServer+comp.resourceType + \"/\" + comp.id})\n\n //a bundle must have a date and identifier\n \n bundle.identifier = comp.identifier;\n bundle.timestamp = new Date().toISOString();\n\n let compLink = \"[\" + comp.id +\"](Composition-\" + comp.id + \".json.html)\"\n\n compLink += \" [(Document bundle)](Bundle-\"+ comp.id + \".json.html)\"\n\n arComposition.push(\"### \" + compLink)\n let text = \"\"\n if (comp.text && comp.text.div) {\n text = \"*\" + getDivText(comp.text.div) + \"*\"\n }\n \n arComposition.push(text)\n arComposition.push(\"\");\n arComposition.push(\"| | Section | Section references | List references\")\n arComposition.push(\"| --- | --- | --- | --- |\")\n\n //let lnk = comp.subject.reference.replace(\n let subjectLink = \"[\" + comp.subject.display +\"](\" + makeLinkFromReference(comp.subject.reference) + \".json.html)\"\n arComposition.push(\"| Subject:\" + subjectLink + \" | | |\")\n\n //add the Patient resource to the bundle\n let patientResource = hashResources[comp.subject.reference]\n if (patientResource) {\n bundle.entry.push({resource:patientResource,fullUrl:bundleServer+patientResource.resourceType + \"/\" + patientResource.id})\n }\n\n comp.author.forEach(function(author){\n let authorLink = \"[\" + author.display +\"](\" + makeLinkFromReference(author.reference) + \".json.html)\"\n arComposition.push(\"| Author: \" + authorLink + \" | | |\")\n //now get the resource...\n let authorResource = hashResources[author.reference]\n if (authorResource) {\n bundle.entry.push({resource:authorResource,fullUrl:bundleServer+authorResource.resourceType + \"/\" + authorResource.id})\n }\n\n })\n\n arComposition.push(\"| Sections: | | |\")\n //add the sections\n comp.section.forEach(function(sect){\n let sectionDisplay=\"\"\n sect.code.coding.forEach(function(coding){\n sectionDisplay += coding.display;\n })\n arComposition.push(\"| | \" + sectionDisplay) //the section header\n //now for the section contents\n sect.entry.forEach(function(entry){ //generally only 1\n let resource = hashResources[entry.reference]\n if (resource && resource.resourceType == 'List') {\n\n\n //bundle.entry.push({resource:resource})\n bundle.entry.push({resource:resource,fullUrl:bundleServer+resource.resourceType + \"/\" + resource.id})\n let listLink = \"[*List resource*](List-\"+ resource.id +\".json.html)\"\n arComposition.push(\"| | | \" + listLink) //the section header\n\n //retrieve the contents of the list and display each on a line\n if (resource.emptyReason) {\n arComposition.push(\"| | | Section is empty\") \n } else {\n //iterate through the list contents\n resource.entry.forEach(function(entry){\n let entryResource = hashResources[entry.item.reference]\n\n // bundle.entry.push({resource:entryResource})\n //only add each resource once\n let key = entryResource.type + \"/\" + entryResource.id\n if (! hashResourceInDoc[key]) {\n bundle.entry.push({resource:entryResource,fullUrl:bundleServer+entryResource.resourceType + \"/\" + entryResource.id})\n hashResourceInDoc[key] = true;\n }\n \n\n let text = \"\"\n if (entryResource.text) {\n text = getDivText(entryResource.text.div)\n }\n \n let link = entryResource.resourceType + '-' + entryResource.id + '.json.html'\n let display = \"[\" + text + \"](\" + link + \")\"\n\n //arMD.push(\"| | | \" + display) \n arComposition.push(\"| | | | \" + display) \n })\n }\n \n } else {\n let text = getDivText(resource.text.div)\n let link = resource.resourceType + '-' + resource.id + '.json.html'\n let display = \"[\" + text + \"](\" + link + \")\"\n\n arComposition.push(\"| | | \" + display) \n //arComposition.push(\"| | | | \" + display) \n\n bundle.entry.push({resource:resource,fullUrl:bundleServer+resource.resourceType + \"/\" + resource.id})\n\n\n //console.log(\"WARNING: Section \" +sectionDisplay + \" is not a list\" )\n\n }\n })\n\n\n\n\n })\n\n //write out the bundles...\n abBundleOutputFolder.forEach(function(folderName) {\n let bundleName = folderName + \"Bundle-\" + bundle.id + '.json';\n fs.writeFileSync(bundleName,JSON.stringify(bundle)) \n })\n\n\n console.log(bundle)\n\n return arComposition;\n\n\n}", "function isComposite(p){\n return p.expression().count() > 1;\n }", "function crepuscolo_NA(njd,longitudine,latitudine,altitudine){\n\n // funzione per il calcolo del crepuscolo civile per il T.U. di Greenwich\n // aggiornata al 03/12/2011.\n // by Salvatore Ruiu - Irgoli (Italy).\n // IL Sole si trova a -12 gradi sotto l'orizzonte locale. 90+12 .\n \n var ps_sole=pos_sole(njd);\n var DEs=ps_sole[1]; // declinazione del Sole.\n\n var LATr=Rad(latitudine); // angolo in radianti.\n var DEr=Rad(DEs); // angolo in radianti.\n\n var H=Math.acos(-Math.tan(LATr)*Math.tan(DEr)); // angolo orario\n\n var H1=Math.acos((Math.cos(Rad(102))-Math.sin(LATr)*Math.sin(DEr))/(Math.cos(LATr)*Math.cos(DEr)));\n\n var H= Rda(H); // angolo da radiante a sessadecimale.\n var H1=Rda(H1); // angolo da radiante a sessadecimale. \n\n var T=((H1-H)/15)*0.9973;\n\n var p_sole=ST_SOLE(njd,longitudine,latitudine,altitudine);\n\n var crep_m=ore_24(p_sole[2]-T); // crepuscolo del mattino.\n var crep_s=ore_24(p_sole[4]+T); // crepuscolo serale.\n\n var tempi_crep= new Array(crep_m,crep_s);\n\n return tempi_crep;\n \n}", "function co(a,b){this.Wd=[];this.uf=a;this.kf=b||null;this.jd=this.Lc=!1;this.Qb=void 0;this.Ne=this.If=this.he=!1;this.Zd=0;this.Ca=null;this.ie=0}", "function zh(){var a=this;this.ra=new Oe(function(){return Ah(a)},function(b){var c=Ah(a);c&&(fa(b.y)&&(a.ra.scrollY=-c.qc*b.y-c.Nc),a.ra.Ta.setAttribute(\"transform\",\"translate(0,\"+(a.ra.scrollY+c.pc)+\")\"))});this.ra.im=!0;this.Sl=[];this.Hb=this.Ka=0;this.Ji=[];this.dd=[]}", "function Composite({ k, ast, cursor, setPos, ...other }) {\n return !Array.isArray(ast) ? (\n <CompositeObj k={k} obj={ast} cursor={cursor} setPos={setPos} {...other} />\n ) : (\n <CompositeArr k={k} arr={ast} cursor={cursor} setPos={setPos} />\n );\n}", "function parroquia(args) {\r\n let result = ecuador.data.lookupCities(args);\r\n results = result[0];\r\n let parroquia = [];\r\n for (var key in results.towns) {\r\n parroquia.push(results.towns[key].name);\r\n }\r\n return parroquia;\r\n}", "alternateStructures() {\n let ic = this.icn3d,\n me = ic.icn3dui\n let hAtomsCount = Object.keys(ic.hAtoms).length\n let allAtomsCount = Object.keys(ic.atoms).length\n\n ic.dAtoms = {}\n\n let moleculeArray = Object.keys(ic.structures)\n for (let i = 0, il = moleculeArray.length; i < il; ++i) {\n let structure = moleculeArray[i]\n if (i > ic.ALTERNATE_STRUCTURE || (ic.ALTERNATE_STRUCTURE === il - 1 && i === 0)) {\n for (let k in ic.structures[structure]) {\n let chain = ic.structures[structure][k]\n ic.dAtoms = me.hashUtilsCls.unionHash(ic.dAtoms, ic.chains[chain])\n }\n\n ic.ALTERNATE_STRUCTURE = i\n\n $('#' + ic.pre + 'title').html(structure)\n\n break\n }\n }\n\n if (hAtomsCount < allAtomsCount) {\n ic.dAtoms = me.hashUtilsCls.intHash(ic.dAtoms, ic.hAtoms)\n\n ic.bShowHighlight = false\n ic.opts['rotationcenter'] = 'highlight center'\n }\n\n // also alternating the surfaces\n ic.applyMapCls.removeSurfaces()\n ic.applyMapCls.applySurfaceOptions()\n\n ic.applyMapCls.removeMaps()\n ic.applyMapCls.applyMapOptions()\n\n ic.applyMapCls.removeEmmaps()\n ic.applyMapCls.applyEmmapOptions()\n\n // disallow the alternation of DelPhi map\n ic.applyMapCls.removePhimaps()\n // ic.applyMapCls.applyPhimapOptions();\n // should recalculate the potential\n //ic.loadDelphiFileBase('delphi');\n\n // ic.applyMapCls.removeSurfaces();\n // ic.applyMapCls.applyphisurfaceOptions();\n // should recalculate the potential\n //ic.loadDelphiFileBase('delphi2');\n\n // alternate the PCA axes\n ic.axes = []\n if (ic.pc1) {\n ic.axesCls.setPc1Axes()\n }\n\n //ic.glycanCls.showGlycans();\n\n ic.drawCls.draw()\n\n ic.bShowHighlight = true\n ic.opts['rotationcenter'] = 'molecule center'\n }", "function NeactCompositeComponent(element) {\n this.key = element.key;\n this.type = element.type;\n this.props = element.props;\n this._currentElement = element;\n this._context = null;\n var instance = this._getInstance();\n this._instance = instance;\n //this.elm = instance;\n //this.dom = instance;\n //Component.call(this, element);\n //this.elm = null;\n this.dom = null;\n this._instance._instanceCompositeComponent = this;\n}" ]
[ "0.5591928", "0.5591928", "0.5532733", "0.5390509", "0.5339676", "0.5081441", "0.5081441", "0.5081441", "0.5081441", "0.50381255", "0.50109595", "0.49673313", "0.49537098", "0.49390882", "0.48964328", "0.48758164", "0.48585895", "0.4815701", "0.48087218", "0.48051843", "0.48007235", "0.4791188", "0.47648966", "0.47640517", "0.47505587", "0.47416878", "0.47186148", "0.47155744", "0.47138515", "0.4707679", "0.46754566", "0.46649903", "0.46541595", "0.4631005", "0.4617182", "0.46158895", "0.46027294", "0.46000546", "0.45982724", "0.45977506", "0.459435", "0.45892614", "0.45857182", "0.4577485", "0.45739174", "0.457295", "0.4560932", "0.4560932", "0.45563218", "0.45516738", "0.45317867", "0.45314866", "0.45312738", "0.45304552", "0.4521214", "0.45210916", "0.45145354", "0.45116097", "0.45111084", "0.45107242", "0.45080206", "0.45064747", "0.45050517", "0.44987306", "0.44931975", "0.44825533", "0.44811824", "0.44800472", "0.4477", "0.44744784", "0.44642705", "0.4462963", "0.4454006", "0.44531566", "0.44529948", "0.44515985", "0.44508633", "0.44459823", "0.44442695", "0.44405714", "0.44369805", "0.44357863", "0.44353336", "0.4434339", "0.4429201", "0.44280794", "0.44252557", "0.4420303", "0.44199398", "0.4415262", "0.44134292", "0.44086525", "0.4400745", "0.44003275", "0.43955594", "0.43907943", "0.4384999", "0.43814576", "0.43810812", "0.43802938", "0.43795374" ]
0.0
-1
MAXIMUM TENSION IN JOIST BOTTOM CHORD
Qn(){ if(this.hd == 1.5){ switch(true){ case (this.Ttc<=0.113) : return 4.34 case (this.Ttc<=0.155) : return 4.51 case (this.Ttc<=0.187) : return 4.83 case (this.Ttc<=0.212) : return 4.78 case (this.Ttc<=0.25) : return 4.73 case (this.Ttc<=0.313) : return 4.58 default: return 4.1 } } else{ return 4.4 } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TensionBottomChord(){\n return Math.max(0.5*this.phi_t*this.Abc*this.Fy, this.Mu_c()*12/this.deff_c())\n }", "getMaxHeightUnit(){return this.__maxHeightUnit}", "get maxHeight() {}", "getUpperLimit(occupiedTiles) {\n\t\tvar i = this.getTopTile();\t\t\n\t\tif (this.canGoUp(occupiedTiles)) {\n\t\t\twhile (this.canGoUp(occupiedTiles, i) && i >= 0) {\n\t\t\t\ti -= dimensions;\n\t\t\t}\n\t\t\ti += dimensions;\n\t\t}\n\t\treturn i;\n\t}", "max_height() {\n\t\treturn this.rectangle_y_pad + N_WORDS * char_image_dimensions.height + (N_WORDS - 1) * this.height_between_words;\n\t}", "getBottomTile() {\n\t\treturn (this.position + (this.sizeH - 1) * 6);\n\t}", "getMaxArea() {\r\n\t\treturn this.width * this.length;\r\n\t}", "getMaxHeight(){return this.__maxHeight}", "get height()\n\t{\n\t\tlet height = Math.max(this._height, this.minHeight);\n\n\t\tif (this.tree.theme.hasGridBehavior)\n\t\t{\n\t\t\tlet step = this.tree.theme.gridSize;\n\t\t\theight = Math.ceil(height / step) * step;\n\t\t}\n\n\t\treturn height;\n\t}", "function getWinHeight() {\n\treturn win_dimension()[1] * 0.8;\n}", "getDownLimit(occupiedTiles) {\n\t\tvar i = this.getBottomTile() + dimensions;\t\t\n\t\tif (this.canGoDown(occupiedTiles, i)) {\n\t\t\twhile (this.canGoDown(occupiedTiles, i) && (i < dimensions * dimensions)) {\n\t\t\t\ti += dimensions;\n\t\t\t}\n\t\t}\n\t\treturn (i - dimensions * this.sizeH);\n\t}", "set maxHeight(value) {}", "getLevelHeight() {\n return this.level.tilesHigh;\n }", "function getMaxHeight(clmp) {\n var lineHeight = getLineHeight(element);\n return lineHeight * clmp;\n }", "calcMaxLength () {\n let maxima = [0.0, 0.0, 0.0]\n let minima = [0.0, 0.0, 0.0]\n let spans = [0.0, 0.0, 0.0]\n\n function comp (v, i) {\n if (i === 0) return v.x\n if (i === 1) return v.y\n if (i === 2) return v.z\n }\n\n let atom = this.getAtomProxy()\n for (let iDim = 0; iDim < 3; iDim++) {\n for (let iAtom = 0; iAtom < this.getAtomCount(); iAtom += 1) {\n let pos = atom.load(iAtom).pos\n if (minima[iDim] > comp(pos, iDim)) {\n minima[iDim] = comp(pos, iDim)\n }\n if (maxima[iDim] < comp(pos, iDim)) {\n maxima[iDim] = comp(pos, iDim)\n }\n }\n spans[iDim] = maxima[iDim] - minima[iDim]\n }\n this.maxLength = Math.max(spans[0], spans[1], spans[2])\n }", "function getMaxHeight(clmp) {\n var lineHeight = getLineHeight(element);\n return lineHeight * clmp;\n }", "function getMaxHeight(clmp) {\n var lineHeight = getLineHeight(element);\n return lineHeight * clmp;\n }", "function getBarHeight(max, current){\n return current / max * MAX_BAR_HEIGHT;\n }", "ggh() {\n return this.cr.canvas.height / this.cr.options.scaleFactor;\n }", "get upperBound(){\n\t\treturn -this.height /2;\n\t}", "function computeMaxLine(level,maxHeightLine,numLine){\n return maxHeightLine/level * numLine;\n}", "function exponentHeight(){\n return(totalHeight()**2);\n}", "function getMax() {\n var max = Math.max.apply(null, config.values);\n max += 10 - max % 10;\n return max;\n console.log(max);\n }", "GetTileCount()\n\t{\n\t\tvar value = this.tileCountPerGrid * this.gridCount * this.tileCountPerGrid * this.gridCount ; \n\t\treturn value;\n\t}", "getMaxWidthUnit(){return this.__maxWidthUnit}", "get gridItemHeight() {\n return windowHeight / maxIconsPerCol * this.percent;\n }", "get gridItemHeight() {\n return windowHeight / maxIconsPerCol * this.percent;\n }", "function getMaxSectorSquare() {\n const sorted = [...portrait].sort((a, b) => (b.value - a.value));\n return sorted[0].value;\n }", "diameterMax() {\n let Dmax = 5.8 * Math.pow(this.mass, 1.0 / 3.0);\n return Dmax;\n }", "function numTicksForHeight(height) {\n if (height <= 300) return 3;\n if (300 < height && height <= 600) return 5;\n return 10;\n}", "get minHeight() {}", "get max()\n {\n return this.normalized ? 1 : 255;\n }", "getMinHeightUnit(){return this.__minHeightUnit}", "function MaxX() {\r\n return 20 ;\r\n}", "isBottom(taille_max,largeur)\n {\n var i,j,max=0;\n for(i=0;i<4;i++)\n {\n for(j=0;j<4;j++)\n {\n if(max<this.mats[i][j])\n {\n max=this.mats[i][j];\n }\n }\n }\n max=max/largeur;\n return (taille_max-10)<max; \n }", "getDrawSize () {\r\n return Math.ceil(this.calories / this.gestation * 10)\r\n }", "function getGridCellSize() {\n return (min(width, height) / 2 - 50) / gridSize;\n}", "get maximumValue() {\r\n return this.i.bk;\r\n }", "get maxWidth() {}", "function numTicksForHeight(height) {\n if (height <= 300) return 3;\n if (300 < height && height <= 600) return 5;\n return 10;\n}", "function numTicksForHeight(height) {\n if (height <= 300) return 3;\n if (300 < height && height <= 600) return 5;\n return 10;\n}", "getMaxWidth(){return this.__maxWidth}", "function maxTickLength() {\n\treturn(3600) // Default is 1 hour which is just arbitrarily large\n}", "function maxOfDim(set, dim) {\n\treturn 32.5;\n}", "function determineMaxSize() {\n if (!structureControl) {\n return;\n }\n\n var result = 'calc(100%';\n\n var margin = 0;\n\n if (dimension === dimensions.vertical) {\n margin += parseFloat(structureControl.domElement.css('margin-top')) + parseFloat(structureControl.domElement.css('margin-bottom'));\n } else {\n margin += 3;\n\n margin += parseFloat(structureControl.domElement.css('margin-left')) + parseFloat(structureControl.domElement.css('margin-right'));\n }\n\n if (margin) {\n result += ' - ' + margin.toString() + 'px';\n }\n\n result += ')';\n\n return result;\n }", "function numTicksForHeight(height) {\n if (height <= 300) return 3;\n if (300 < height && height <= 600) return 6;\n return 10;\n}", "function getControlHeight()\n{\n return background.width > background.height ? background.height * 0.0833 : background.height / 15\n}", "getSize () {\n return this.traitMax('size');\n }", "getMiddleCell() {\n return Math.round(this.boardSize / 2);\n }", "function tp_maxy_below(sets, j)\n{\n\treturn tp_max_bound_below(sets, j, 3);\n}", "get maximumValue() {\n return this.i.bk;\n }", "getPictureHeight() {\n const mhm = (this.camera.MatrixHeight / 10000); /* matrix height in meters */\n const { altitude } = this.mission;\n const fm = (this.camera.Focal / 10000); /* focal in meters */\n return ((mhm * altitude) / fm).toFixed(2);\n }", "setMaxHeightUnit(valueNew){let t=e.ValueConverter.toDimensionUnit(valueNew);null===t&&(t=this.getAttributeDefaultValueInternal(\"MaxHeightUnit\")),t!==this.__maxHeightUnit&&(this.__maxHeightUnit=t,e.EventProvider.raise(this.__id+\".onPropertyChanged\",{propertyName:\"MaxHeightUnit\"}),this.__processMaxHeightUnit())}", "function scaleMaximums() {\n maxBubbles = width * height / 2000 + 2;\n}", "function generateMax() {\n if (getInputData() > 50) {\n removeBoardPaint();\n generateHeightDivs(50);\n generateWidthDivs(50);\n addWhiteToBoard();\n window.alert('mínimo: 5 | máximo: 50')\n }\n}", "function getMaxScreenSize() {\n return 100 - getMinScreenSize();\n}", "heightToCM(){\n return this.height * 2.54; \n }", "function maxHealthUpdate() {\n hbIncrement = hbWidth/maxHealth; \n}", "function getHeight(root) {}", "function findMaxCut(h, w, horizontalCuts, verticalCuts) {\n \n let hor = [];\n hor[0] = 1;\n hor[h] = 1;\n for (let index of horizontalCuts) {\n hor[index] = 1;\n }\n let ver = [];\n ver[0] = 1;\n ver[w] = 1;\n for (let index of verticalCuts) {\n ver[index] = 1;\n }\n \n // console.log(hor, ver)\n let horMax = 0;\n let lastIndex = 0;\n for (let i = 1; i <= h; i++) {\n if (hor[i] == 1) {\n // console.log('test');\n horMax = Math.max(horMax, i - lastIndex);\n lastIndex = i;\n } \n }\n let vermax = 0;\n lastIndex = 0;\n for (let i = 1; i <= w; i++) {\n if (ver[i] == 1) {\n vermax = Math.max(vermax, i - lastIndex);\n lastIndex = i;\n }\n }\n \n return horMax * vermax;\n}", "function maxHealthUpdate() {\r\n hbIncrement = hbWidth/maxHealth; \r\n}", "function largestCollatzSequence(limit) {\n var longestCollatz = {\n startingNumber: 0,\n chainLength: 0\n };\n var iChain;\n\n for(var i = limit; i > 0; i--) {\n iChain = commons.getCollatzChain(i);\n\n if(iChain > longestCollatz.chainLength) {\n longestCollatz.chainLength = iChain;\n longestCollatz.startingNumber = i;\n }\n }\n\n return longestCollatz.startingNumber;\n}", "function getNumberOfCharacters(){\n\treturn ((2+parseInt((marioGame.nLevel+1)/2,10))>8 ? 9 : (2+parseInt((marioGame.nLevel+1)/2,10)));\n}", "function playerHeight() {\n\treturn 30;\t\n}", "function maxAllowedMoves(number_of_colors, size) {\n return Math.floor(number_of_colors * size * 0.4);\n}", "constructor(maxHorizon = 10000) {\n this.m = [0,0,0], this.maxHorizon = +maxHorizon\n }", "function HW(kx){var b=0;var c=HM_DOM?Hg.document.getElementById(kx):Hg[kx];var d=HM_DOM?parseInt(c.style.width)+((Hjt||Hju)?0:Hu*2):HM_IE4?c.style.pixelWidth:c.clip.width;var gh=HM_IE?(HM_DOM?Hh.clientWidth:Hg.document.body.clientWidth):Hg.innerWidth;\nreturn Math.max(parseInt((gh-d)/2),b);}", "maxRect() {\n return [0, 0, null, null, 0, 0];\n }", "findSize() {\n var height = window.innerHeight - 180;\n var width = window.innerWidth;\n this.csize = height/width > 1 ? Math.floor(0.9 * width / 4) : Math.floor(0.9 * height / 4);\n }", "function maxTickLength() {\n\treturn(1) // Default is 1 hour which is just arbitrarily large\n}", "get actualWindowScaleVertical() {\n return this.i.n8;\n }", "function calcHeight(maxY) {\n // icons are 16 high, time & bombs are 23 high, and extra 23 for borders.\n // 30 for 3 10-pixel border components. 10 for menu bar.\n // 35 is for top/bottom margin.\n statusbarExtra = 16;\n try {\n \tif (window.statusbar.visible) {\n \t\tstatusbarExtra = 28; }\n }\n catch (e) {}\n // 12 extra because Firefox defaults to not allowing toolbar to be suppressed, and doesn't report it properly! (can't check window.toolbar).\n return (maxY+1)*16+23+23 +30 +35 +12 +statusbarExtra; } // }", "function maxHeartRate(el) {\n if (el >= 18 && el <= 81) {\n return Math.round(206.9 - 0.67 * el);\n } else {\n return -1;\n }\n}", "function tH(pH)\r\n{\r\n\treturn (h-30)-(pH/max*(h-30)) + 15;\r\n}", "function getMaximumDigitizeUses() {\n var chips = getChips();\n return 1 + (chips.includes(\"TRAM\") ? 1 : 0) + (chips.includes(\"TRIGRAM\") ? 1 : 0);\n}", "getHauteurDessin()\n\t{\n\t\treturn this._canvas.height;\n\t}", "function tp_lheight(layer)\n{\n\treturn layer.bounds[3].value - layer.bounds[1].value;\n}", "get_grid_height() {\n\t\t\treturn this._internal_grid_size[1]\n\t\t}", "function getBottom(col) {\r\n\treturn (field[col].length - 1) * rowheight;\r\n}", "function get_max_brush_paddle_size() { return self.maxPaddleSize; }", "getMax() {\n \n }", "function getHeight(num){\n var height= 1;\n for (i=0; i<num;i++){\n if (i%2==0){\n height *=2;\n }\n if (i%2>0){\n height +=1;\n }\n }\n return (height).toString();\n\n }", "getLargestColumn(col,mod){\r\n var height=0;\r\n for(var prop in this.week.nodesByColumn){\r\n var b = this.getHeightOfCol(prop);\r\n if(col==prop){b+=mod;}\r\n if(b>height){\r\n height=b;\r\n }\r\n }\r\n return height;\r\n }", "getColumnsAmount() { //metodo para calcular a quantidade de coluna disponivel baseado no tamanho do bloco, para saber as dimensoes do celular\n const width = Dimensions.get('window').width\n return Math.floor(width / this.blockSize)\n }", "function get_board_size() {\n return board_size;\n}", "function getMaxY() {\n var max = 0;\n\n for(var i = 0; i < data.values.length; i ++) {\n if(data.values[i].Y > max) {\n max = data.values[i].Y;\n }\n }\n\n max += 10 - max % 10;\n return max;\n }", "calculateMaxYValue() {\n const { data = [] } = this.props;\n const valuesArr = data.map(el => el.y_value);\n let maxValue = Math.max.apply(null, valuesArr);\n maxValue = Math.round(maxValue);\n let exponent = maxValue.toString().length;\n exponent -= 1;\n exponent = !exponent ? 1 : exponent;\n const prec = 10 ** exponent;\n maxValue = Math.round(maxValue / prec) * prec;\n return maxValue;\n }", "_getMaxColumnLabelHeight() {\n\t\t\tlet maxColLabelHeight = 0;\n\t\t\tthis._elements.svg.selectAll('.column').select('.label').each(function() {\n\t\t\t\tconst height = this.getBBox().width;\n\t\t\t\tif (height > maxColLabelHeight) maxColLabelHeight = height;\n\t\t\t});\n\t\t\treturn maxColLabelHeight;\n\t\t}", "function getMaxY() {\n var max = 0;\n for (var i = 0; i < data.values.length; i++) {\n if (data.values[i].Y > max) {\n max = data.values[i].Y;\n }\n }\n max += 10 - max % 10;\n return max;\n }", "getMinHeight(){return this.__minHeight}", "function getEvenWidth(yMax){\n return 2 * (yMax + 1); // 2 * (number of rows including 0)\n }", "function getMaximumJavascriptInt() {\n return 9007199254740992; // 2^53\n }", "static get MAX_VALUE() {\n return 127;\n }", "get height() {}", "function getColBlockNum()\n {\n return totalTiles;\n }", "limity() { return (this.scale - 1) * this.sizey / 2; }", "area() {\n return Math.pow(super.getHeight(), 2)\n }", "function setHeight(){\n\tvar h = document.body.clientHeight-8;\n\treturn h/2;\n}", "function h(t){return t.width/t.resolution}", "function setMaximumGridSize() {\n var maxCols = Math.floor( ($(window).width() - 42) / 40);\n var maxRows = Math.floor( ($(window).height() - 42) / 40);\n $(\"#rows\").prop(\"min\", 1).prop(\"max\", maxRows);\n $(\"#cols\").prop(\"min\", 1).prop(\"max\", maxCols);\n // $(\"#message\").text(\"Maximum rows = \" + maxRows + \" and maximum columns = \" + maxCols);\n}", "function splitmax()\n{\n\tvar m = document.body.clientWidth - splitmin;\n\tif (m > 800) m = 800; // px\n\treturn m;\n}" ]
[ "0.6879636", "0.6729693", "0.66597277", "0.6573439", "0.6315071", "0.6303107", "0.62706184", "0.6241134", "0.6229424", "0.62006044", "0.61840993", "0.61646485", "0.6157823", "0.61016595", "0.6085138", "0.60609865", "0.60609865", "0.6037276", "0.60263574", "0.5996353", "0.59852064", "0.5977995", "0.59355766", "0.59333587", "0.59309614", "0.59271985", "0.59271985", "0.5925444", "0.59239715", "0.5919474", "0.59189683", "0.5911061", "0.59108025", "0.59049195", "0.5893055", "0.5882661", "0.58748215", "0.587135", "0.5862688", "0.58580244", "0.58580244", "0.58524835", "0.58504206", "0.58485883", "0.58457875", "0.5845299", "0.58416957", "0.5838364", "0.58252144", "0.5822478", "0.5801899", "0.5796023", "0.57719046", "0.57711816", "0.576974", "0.5764631", "0.57527643", "0.574647", "0.574516", "0.5743181", "0.57378143", "0.572768", "0.57162774", "0.57033604", "0.5699697", "0.5696985", "0.5671835", "0.566416", "0.56589377", "0.5657731", "0.5651288", "0.56485224", "0.5645991", "0.5642367", "0.5638458", "0.56324404", "0.56273264", "0.5627292", "0.5626233", "0.56249183", "0.56201357", "0.56166285", "0.56164", "0.5614957", "0.56149566", "0.56087846", "0.5603654", "0.55992264", "0.55982757", "0.5597986", "0.5595503", "0.5595496", "0.5594997", "0.55941284", "0.5591125", "0.5589679", "0.5589597", "0.5588814", "0.55881345", "0.55862516", "0.5576417" ]
0.0
-1
SHEARFLEX SCREW SHEAR CAPACITY
Ns(){ return this.TensionBottomChord()/(this.phi_s*this.Qn()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get legStretch() {}", "set legStretch(value) {}", "set armStretch(value) {}", "get armStretch() {}", "function hp() {\n return (ctx.lineWidth / 2) % 1;\n}", "function scaleValue(value){\n //Assuming army size is between \n}", "function updateSwatch() {\n $(\"#swatch\").css(\"background-color\", \"hsl(\" + ($(\"#h\").val()/182.04) + \",\" + $(\"#s\").val() + \"%,\" + $(\"#l\").val() + \"%)\");\n }", "function maxHealthUpdate() {\r\n hbIncrement = hbWidth/maxHealth; \r\n}", "ggw() {\n return this.cr.canvas.width / this.cr.options.scaleFactor;\n }", "function maxHealthUpdate() {\n hbIncrement = hbWidth/maxHealth; \n}", "shelfSize()\n {\n return this.values.size * this.values.quantity;\n }", "limity() { return (this.scale - 1) * this.sizey / 2; }", "function reduceHealth() \n{\n if(healthBarScript.healthWidth > -8) \n {\n healthBarScript.healthWidth = healthBarScript.healthWidth - 1;\n } \n}", "scale() {\n return this.small ? \"15\" : \"23\";\n }", "scale() {\n return this.small ? \"15\" : \"23\";\n }", "function calculateKenBurnScales(proc,sloth,opt) {\n\t\t\tvar ow = sloth.data('owidth');\n\t\t\tvar oh = sloth.data('oheight');\n\n\t\t\tvar factor = (opt.container.width() /ow);\n\t\t\tvar nheight = oh * factor;\n\n\t\t\tvar hfactor = (nheight / opt.container.height())*proc;\n\n\n\n\t\t\treturn (proc+\"% \"+hfactor+\"%\");\n\t\t}", "function calculateKenBurnScales(proc,sloth,opt) {\n\t\t\tvar ow = sloth.data('owidth');\n\t\t\tvar oh = sloth.data('oheight');\n\n\t\t\tvar factor = (opt.container.width() /ow);\n\t\t\tvar nheight = oh * factor;\n\n\t\t\tvar hfactor = (nheight / opt.container.height())*proc;\n\n\n\n\t\t\treturn (proc+\"% \"+hfactor+\"%\");\n\t\t}", "function calculateKenBurnScales(proc,sloth,opt) {\n\t\t\tvar ow = sloth.data('owidth');\n\t\t\tvar oh = sloth.data('oheight');\n\n\t\t\tvar factor = (opt.container.width() /ow);\n\t\t\tvar nheight = oh * factor;\n\n\t\t\tvar hfactor = (nheight / opt.container.height())*proc;\n\n\n\n\t\t\treturn (proc+\"% \"+hfactor+\"%\");\n\t\t}", "function makeAwesomeness(skiArea){\n\t var n = ACRESSCALE * skiArea.skiableAcres\n\t \t+ SNOWFALLSCALE * skiArea.yearlySnowfall \n\t \t+ EXPERTSCALE * skiArea.expert \n\t \t+ ADVANCEDSCALE * skiArea.advanced\n\t \t+ VERTSCALE * (skiArea.top - skiArea.base)\n\t return n / AWESOMESCALE;\n\t}", "function rh(a){this.s=a;this.oa=null;this.Ce=new sh(a,!0,!0);this.hf=new sh(a,!1,!0);this.qe=D(\"rect\",{height:M,width:M,style:\"fill: #fff\"},null);th(this.qe,a.Zd)}", "function movesmash() {\n horizontal += dhorizontal\n verticle += dverticle\n if (horizontal + smash.width > width || horizontal < 0) {\n dhorizontal = dhorizontal * -1\n }\n else if (verticle + smash.height > height || verticle < 0) {\n dverticle = dverticle * -1\n }\n}", "function sizeRanger(sz) {\n let szGrp = 8;\n if (sz > 6) szGrp = 16;\n if (sz > 24) szGrp = 32;\n if (sz > 72) szGrp = 48;\n return szGrp;\n }", "get scaleFactor() {}", "function upgradeShovel()\n\t\t\t{\n\t\t\t\tif (shovelTier == 0)\n\t\t\t\t{\n\t\t\t\t\tsharpStoneBank--;\n\t\t\t\t\tsmoothBranchBank--;\n\t\t\t\t\tropeBank--;\n\t\t\t\t}\n\t\t\t\tshovelTier++;\n\t\t\t\taction(1,1,1);\n\t\t\t\tadvanceTime();\n\t\t\t\tupdateDisp();\n\t\t\t}", "function undoColorStretch(val) {\n return Math.pow(val, POPULATION_VIS_NONLINEARITY) * POPULATION_VIS_MAX_VALUE;\n}", "set z(val) {\n this.width = val;\n }", "function Sharpie(color, width){\n this.color = color;\n this.width = width;\n this.inkAmount = 100;\n this.use = function(){\n this.inkAmount -= this.width;\n return this.inkAmount;\n }\n}", "function get_shade(weight) {\n if (weight < 6) {\n return 1;\n } else if (weight < 8) {\n return 2;\n } else if (weight < 10) {\n return 3;\n } else {\n return 4;\n }\n}", "function eraserNormal(){\n\teraserWidth=10;\n}", "function stretch () \r\n{\r\n\t\r\n \r\n\tst_stack_behind = stack_num - 2;\r\n\t\r\n if (st_stack_behind <= 4)\r\n{\r\n\tvar anim3 = manager.createAnimObject(\"spacer\" + st_stack_behind);\r\n anim3.add({property: Prop.backgroundColor, from: new Col(255,255,255), to: new Col(0,0,0), \r\n duration:1000}); \r\n\t\r\n\tvar anim = manager.createAnimObject(\"spacer\"+st_stack_behind); \r\n anim.add({property: Prop.dimension, to: new Dim(20,5), \r\n duration: 1000}); \r\n}\r\n\r\n\r\n\t \r\n\t \r\n}", "get saturation() { return this.hsl[1]; }", "function saltItStart ()\n{\n if(saltComingDown > (0-scaledHeight)) {saltComingDown -= 40;}\n} //End of saltItStart", "function updateHealthbar() {\n let redPos = redBar.components.position;\n redPos.width = (health - currHealth) / health * redPos.height * 4;\n\n let greenPos = greenBar.components.position;\n greenPos.width = greenPos.height * 4 - redPos.width;\n }", "function scale(s){\ndWidth = 90;\ndHeight = 45;\nwallHeight = 135;\n\ndWidth = dWidth * s;\ndHeight = dHeight * s;\nwallHeight = wallHeight * s;\n\n}", "getDrawSize () {\r\n return Math.ceil(this.calories / this.gestation * 10)\r\n }", "function stretchScore(score) {\n return (10/3)*(score-70);\n }", "function getStroke(diameter){return $mdProgressCircular.strokeWidth/100*diameter;}", "function filter_sharpen(){\n\n\t// baca data gambar\n\tvar imgData = ctx.getImageData(0, 0, cvs.width, cvs.height);\n\tvar temp = imgData.data, iWidth = imgData.width, iHeight = imgData.height;\n\n\tvar a = 0.3;\n\tkonvolusi3x3(\n\t\timgData.data, temp, iWidth, iHeight,\n\t\t[\n\t\t [a, a, a],\n\t\t [a, 1-a*8, a],\n\t\t [a, a, a]\n\t\t]\n\t);\n\n\timgData.data = temp;\n\n\t// show manipulation\n\tctx.putImageData(imgData, 0, 0);\n\n\t// set title\n\t$(\".imgtitle span\").text(\"Sharpen\");\n}", "set_level() {\n this.height = (this.totalVolume + this.minVolume) * this.maxHeight / this.maxVolume;\n\n }", "Fv(){\n return this.shearReinf ? Math.min(3*Math.pow(this.fm,0.5),150) : Math.min(Math.pow(this.fm,0.5),50)\n }", "function Col()\n{\n this.r = 0;\n this.g = 0;\n this.b = 0;\n this.a = 0; \n \n this.h = 0;\n this.s = 0;\n this.v = 0;\n \n\n \n //function :SetHSVA(h, s, v, a)\n //parameters :h - hue in radians 0 - 2PI\n // :s - saturation - 0(grey) - 1(normal) - 2(over)\n // :v - value, more like brightness 0(black) - 1(normal) - 2(over)\n // :if you want white you need to desaturate in this model the go over\n //description :This HSVA is modeled using\n this.SetHSVA = function(h, s, v, a)\n {\n var third = (Math.PI * 2) / 3;\n \n var r1 = (Math.cos(h) + 1) * v;\n var g1 = (Math.cos(h + third) + 1) * v;\n var b1 = (Math.cos(h + third * 2) + 1) * v;\n \n var average = (r1 + g1 + b1) / 3;\n \n var r2 = ((r1 - average) * s) + average;\n var g2 = ((g1 - average) * s) + average;\n var b2 = ((b1 - average) * s) + average;\n \n this.h = h;\n this.s = s;\n this.v = v;\n \n this.r = Math.floor(r2 * 255);\n this.g = Math.floor(g2 * 255);\n this.b = Math.floor(b2 * 255);\n this.a = a * 255;\n };\n \n //function :UpdateRGB()\n //description :Used to convert the current HSV values into RGB.\n // :This will be replaced once I refactor this with\n // :defineProperties then this function will be deprecated.\n this.UpdateRGB = function()\n {\n //sethsva expects alpha to be in the range 0-1\n //rgba are all with the range 0-255, so I derive 0-1 from the 0-255\n this.SetHSVA(this.h, this.s, this.v, this.a / 255);\n \n };\n}", "function configure_plane_size(){\n\tplane_width = global.stage.width;\n\tconfigure_plane_height();\n\tconfigure_plane_offset();\n}", "update() {\n if (this.alpha < 0.9) {\n this.alpha += 0.1\n }\n }", "function SHPIX(state) {\n var stack = state.stack;\n var loop = state.loop;\n var fv = state.fv;\n var d = stack.pop() / 0x40;\n var z2 = state.z2;\n\n while (loop--) {\n var pi = stack.pop();\n var p = z2[pi];\n\n if (exports.DEBUG) {\n console.log(\n state.step,\n (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') +\n 'SHPIX[]',\n pi,\n d\n );\n }\n\n fv.setRelative(p, p, d);\n fv.touch(p);\n }\n\n state.loop = 1;\n }", "get scale () {\n return 100\n }", "ggh() {\n return this.cr.canvas.height / this.cr.options.scaleFactor;\n }", "resize() {\n this.recompute();\n var oldScale = this.rootMesh.scaling.y;\n var oldHeadPos = this.headPos();\n var scale = oldScale*this.userHeight/oldHeadPos.y;\n this.rootMesh.scaling = new BABYLON.Vector3(scale,scale,scale);\n this.recompute();\n this.initialHeadPos = this.headPos();\n this.log(\"Rescaling from \"+oldScale+ \" to \"+scale+\", head position from \"+oldHeadPos+\" to \"+this.initialHeadPos);\n this.changed();\n return scale;\n }", "function getHairHeight() {\n return 20;\n}", "function chair(){\n this.color=\"#FF0000\";\n this.weight=40;\n this.numLegs=3;\n this.bodyColor=\"#000000\";\n this.isAdjustable=false;\n}", "function increaseQS() {\n var destPoint = board.create('point', [7.75, 7.75], {\n visible: false\n });\n resetAnimation();\n movePoint(glider1, destPoint)\n moveDashedLines(dashes1, destPoint);\n board.update();\n }", "function HueShift(h,s) { \n h+=s; while (h>=360.0) h-=360.0; while (h<0.0) h+=360.0; return h; \n}", "static getCardSizeFromSprite() {\n return {\n width: 81,\n height: 117.5\n };\n }", "function updateSize() {\n let gameArea = document.getElementById(\"game\");\n let tileProportion = 10;\n h = Math.floor(gameArea.clientHeight * 0.9);\n w = Math.floor(gameArea.clientWidth * 0.9);\n size = Math.min(h, w);\n style = gameArea.style;\n style.setProperty(\"--proportion\", `${tileProportion}`);\n style.setProperty(\"--size\", `${size}px`);\n}", "calcHSL() {\r\n let r = this.r/255;\r\n let g = this.g/255;\r\n let b = this.b/255;\r\n let max = Math.max(r, g, b)\r\n let min = Math.min(r, g, b);\r\n let h, s, l = (max + min) / 2;\r\n if(max == min){\r\n h = s = 0; // achromatic\r\n } else {\r\n var d = max - min;\r\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\r\n switch(max){\r\n case r: h = (g - b) / d + (g < b ? 6 : 0); break;\r\n case g: h = (b - r) / d + 2; break;\r\n case b: h = (r - g) / d + 4; break;\r\n }\r\n h /= 6;\r\n }\r\n this._h = Math.round(h * 360);\r\n this._s = Math.round(s * 100);\r\n this._l = Math.round(l * 100);\r\n }", "function setupharry() {\n harryX = 4*width/5;\n harryY = height/2;\n harryHealth = harryMaxHealth;\n}", "function drawToScale(input) {\n return height - ( (input-minX)*height) / (maxX-minX); \n }", "function InstaRaspberry()\n{\n var colour = new Col();\n var size = {topNumCells : 20, numRings : Canvas.pctX(10)};\n\n Object.defineProperties(this, \n {\n //accessors\n \"hue\" : \n {\n configurable : false,\n writeable : false,\n enumerable : false,\n get : function() \n {\n return colour.h;\n },\n set : function(newValue) \n {\n //clamp the newValue to 0-2PI\n while (newValue > (Math.PI * 2)) \n {\n newValue -= Math.PI * 2;\n }\n \n while (newValue < 0)\n {\n newValue += Math.PI * 2;\n }\n \n //set the new value\n colour.h = newValue;\n colour.UpdateRGB();\n }\n },\n \n \"saturation\" : \n {\n configurable : false,\n writeable : false,\n enumerable : false,\n get : function() \n {\n return colour.s;\n },\n set : function(newValue) \n {\n //set the new value\n colour.s = newValue;\n colour.UpdateRGB();\n }\n }, \n \n \"value\" : \n {\n configurable : false,\n writeable : false,\n enumerable : false,\n get : function() \n {\n return colour.v;\n },\n set : function(newValue) \n {\n //set the new value\n colour.v = newValue;\n colour.UpdateRGB();\n }\n }, \n \n \"size\" :\n {\n configurable : false,\n writeable : false,\n enumerable : false,\n get : function() \n {\n return colour.v;\n },\n set : function(newValue) \n {\n //set the new value\n colour.v = newValue;\n colour.UpdateRGB();\n }\n },\n \n //methods\n \"Draw\" : \n {\n value : function(x, y, context)\n {\n context.beginPath();\n context.fillStyle = \"rgba(\"+colour.r+\",\"+colour.g+\",\"+colour.b+\", 1)\";\n context.arc(Canvas.pctX(50 + x), Canvas.pctY(50 + y), Canvas.pctY(10), 0, Math.PI * 2);\n context.fill();\n }, \n configurable : false,\n writeable : false,\n enumerable : false \n } \n });\n \n}", "function draw_shelves(canvas_variables, shelf) {\n const ctx = canvas_variables[1];\n //console.log(shelf);\n ctx.fillStyle = \"black\";\n ctx.fillRect(Math.min(shelf.right, shelf.left), \n\t shelf.height, Math.abs(shelf.right-shelf.left), \n\t 20);\n}", "set RGBAHalf(value) {}", "scale(size) {\n document.getElementById(\"guiArea\").style.width = size + \"px\";\n }", "set scaleFactor(value) {}", "function SizeDependHeight() {\n hImageCur = va.hRuby;\n wImageCur = M.R(hImageCur * rateImage);\n }", "hoverStyle() {\n this.sizeChange = lerp(this.sizeChange, this.ENLARGER_RADIO, 0.4);\n push();\n drawingContext.shadowOffsetX = 0;\n drawingContext.shadowOffsetY = 4;\n drawingContext.shadowBlur = 10;\n drawingContext.shadowColor = SHADE_STICKER_SHADOW;\n ellipse(0, 0, AWARD_SIZE * this.sizeChange);\n pop();\n image(this.image, 0, 0, AWARD_ICON_SIZE * this.sizeChange, AWARD_ICON_SIZE * this.sizeChange);\n }", "get squareness () {\n const size = this.size\n return Math.min(size.x / size.y, size.y / size.x)\n }", "update()\n {\n this.scale += this.ds;\n\n if(this.scale <= SMIN)\n {\n this.scale = SMIN;\n this.ds = -this.ds;\n }\n\n if(this.scale >= SMAX)\n {\n this.scale = SMAX;\n this.ds = -this.ds;\n }\n }", "function Card(props) {\n var style = {};\n var kCardAspectRatio = (1260 / 4) / (2925 / 13);\n style.display = 'inline-block';\n style.width = 100;\n style.height = kCardAspectRatio * style.width;\n style.borderRadius = style.width / 20;\n style.margin = style.width / 20;\n if (props.hidden) {\n // Just apply a simple gradient.\n // 4 sets of triangles to form a checkerboard.\n var checkerWidth = style.width / 20;\n var checkerMargin = checkerWidth / 2;\n style.backgroundImage = (\n 'linear-gradient(45deg, #808080 25%, transparent 25%),' +\n 'linear-gradient(-45deg, #808080 25%, transparent 25%),' +\n 'linear-gradient(45deg, transparent 75%, #808080 75%),' +\n 'linear-gradient(-45deg, transparent 75%, #808080 75%)');\n style.backgroundSize = checkerWidth + 'px ' + checkerWidth + 'px';\n style.backgroundPosition = '0 0, 0 ' + checkerMargin + 'px,' +\n ' ' + checkerMargin + 'px ' + -checkerMargin\n + 'px, ' + -checkerMargin + 'px 0px';\n } else {\n // Sprites go: A 2 3 4 .. K (left to right).\n // And then go: H S D C (top to bottom).\n // Sprites are\n var rankId = jam_proto.Card.Rank[props.rank];\n if (rankId == jam_proto.Card.Rank.ACE) {\n rankId = 1;\n }\n var rankIndex = rankId - 1; // 0-index.\n var suitId = jam_proto.Card.Suit[props.suit];\n var suitIndex = -1;\n switch (suitId) {\n case jam_proto.Card.Suit.HEARTS:\n suitIndex = 0;\n break;\n case jam_proto.Card.Suit.SPADES:\n suitIndex = 1;\n break;\n case jam_proto.Card.Suit.DIAMONDS:\n suitIndex = 2;\n break;\n case jam_proto.Card.Suit.CLUBS:\n suitIndex = 3;\n break;\n }\n check(suitIndex != -1, 'Unknown suit ' + suitIndex);\n\n // \n var leftPos = (100.0 / 13) * (rankIndex + rankIndex / 12) + '%';\n var topPos = (100.0 / 4) * (suitIndex + suitIndex / 3) + '%';\n style.background = 'url(assets/card_sprites.jpg) no-repeat 0 0';\n style.backgroundSize = '1300% 400%';\n style.backgroundPosition = leftPos + ' ' + topPos;\n }\n return e('div', { style: style });\n}", "function displayResize(evt) {\n var available_height = window.innerHeight - 100,\n available_width = window.innerWidth;\n var tmp_square_height = available_height >> 3,\n tmp_square_width = available_width / 11.5;\n var tmp = tmp_square_height > tmp_square_width ?\n tmp_square_width : tmp_square_height;\n var tmp_square = tmp < 30 ? 30 : tmp;\n game.render_elements(tmp_square, tmp_square);\n var pieces = game.elements.pieces;\n for (var y = 9; y > 1; y--){\n for(var x = 1; x < 9; x++){\n var i = y * 10 + x;\n pieces[i].height = tmp_square;\n pieces[i].width = tmp_square;\n }\n }\n}", "function enlarge()\r\n\t{\r\n\t\t//var portwidth = (gl.viewportWidth-2) * 2 + 2;\r\n\t\t//gl.viewportWidth = portwidth;\r\n\t\tvar canvas = document.getElementById(\"lesson01-canvas\");\r\n\t\tvar cwidth = canvas.width;\r\n\t\tvar cheigth = canvas.heigth;\r\n\t\tcanvas.width = (cwidth-2)*2 + 2;\r\n\t\tdrawScene();\r\n\t}", "function cueBig() {\n\t\tcueBigsquare = new createjs.Shape();\n\t\tcueBigsquare.graphics.beginFill(\"blue\").drawRect(450, 200, 50, 50);\n\t\tstage.addChild(cueBigsquare);\n\t\tstage.update();\n\t\treturn cueBigsquare;\n\t}", "function Start () \n {\n \t//max.Set(8,8,0);\n \tGetComponent.<Rigidbody>().centerOfMass=CenterOfMass;\n \tcrashed = false;\n \t\n \tccamera.transparencySortMode = TransparencySortMode.Perspective;\n \tbeginningBikeSoundPitch = GetComponent.<AudioSource>().pitch;\n \t\n \tApplyBrake();\n }", "set sx(value) {\n this._sx = Math.min( Math.max(0, value), mapwidth - kontra.canvas.width );\n }", "setScale(sx, sy, sz){\n let e = this.elements;\n e[0] = sx; e[4] = 0; e[8] = 0; e[12] = 0;\n e[1] = 0; e[5] = sy; e[9] = 0; e[13] = 0;\n e[2] = 0; e[6] = 0; e[10] = sz; e[14] = 0;\n e[3] = 0; e[7] = 0; e[11] = 0; e[15] = 1;\n return this;\n }", "flower(x,w,h,r,g,b){\n stroke(0,168,0)\n strokeWeight(3)\n //stem\n let vol = amp.getLevel()\n \n line(x, height, x, 1090 - vol * g)\n //leaves\n fill(0, 168, 0)\n stroke(100, 168, 0)\n ellipse(x - 8, height, 10, 120 - vol * 200)\n ellipse(x + 8, height, 8, 100)\n //flower bulb\n noStroke()\n strokeWeight(1)\n fill(r, g, b)\n arc(x, 1090 - vol * g, w, h,-QUARTER_PI,HALF_PI * 2)\n ellipse(x, 1090 - vol * g, w-15, h-30)\n }", "function shear(shearx, sheary)\n{\n // Loop through each value pair\n for (var i = 0, size = positions.length; i < size; i+=2)\n {\n // Get x and y coordinates\n var x = positions[i];\n var y = positions[i+1];\n\n // Multiply x and y values by sheer factors\n x = x + shearx * y;\n y = sheary * x + y;\n\n // Set position values\n positions[i] = x;\n positions[i+1] = y;\n }\n\n loadImage();\n}", "function shrink(v, i, x, y, rate) {\n // bottom right\n if (v.x > 0 && v.y > 0) {\n if (v.x >= VERTICES[i].x && v.y >= VERTICES[i].y) {\n v.x -= x / rate;\n v.y -= y / rate;\n }\n }\n // top right\n else if (v.x > 0 && v.y < 0) {\n if (v.x >= VERTICES[i].x && v.y <= VERTICES[i].y) {\n v.x -= x / rate;\n v.y -= y / rate;\n }\n }\n // bottom left\n else if (v.x < 0 && v.y > 0) {\n if (v.x <= VERTICES[i].x && v.y >= VERTICES[i].y) {\n v.x -= x / rate;\n v.y -= y / rate;\n }\n }\n // top left\n else {\n if (v.x <= VERTICES[i].x && v.y <= VERTICES[i].y) {\n v.x -= x / rate;\n v.y -= y / rate;\n }\n }\n}", "function sizeSwitcher (size) {\r\n switch(size) {\r\n case \"1\":\r\n return 0.25;\r\n case \"2\":\r\n return 0.3333;\r\n case \"3\":\r\n return 0.5;\r\n default:\r\n console.log(\"bug in sizeSwitcher\");\r\n }\r\n }", "draw() {\n s.globalCompositeOperation = \"lighter\";\n s.lineWidth = 2;\n s.strokeStyle = `hsla(${this.hue}, 100%, 50%, ${this.a})`;\n s.strokeRect(\n this.x - this.size / 2,\n this.y - this.size / 2,\n this.size,\n this.size\n );\n this.update();\n }", "grow() {\n this.r = sin(frameCount * .01) * 100;\n }", "function setScaling(hsclasses, theClass, theScore, i) {\n var colour;\n var plusminus;\n var change;\n\tvar score_weighting\n\tvar j;\n\tvar scaled;\n\n\tif (theClass.substring(0, 3) == \"VV-\") {\n\t\t// VET-Other\n\t\t//No Score required, gets 10% of top 4 classes\n\t\t\n\t\tvar newScore = -1;\n\t\t\n\t\t// Write out the changes\n document.getElementById(\"scaling\" + i).innerHTML = \"<span class='grey'> N/a </span>\";\n document.getElementById(\"class\" + i + \"result\").value = newScore;\n return newScore;\n\t\t\n } else if(theClass.substring(0, 3) == \"HE-\") {\n\t\t// Higher Education class\n\t\t// Score just gets transferred as a 10% class. No scaling.\n\t\tif(theScore < 0 || theScore > 5) {\n\t\t\t// The score is invalid\n\t\t\tsendAlert(\"Higher Education scores are only between 0 and 5\");\n\t\t}\n\t\t\n\t\t// Write out the changes\n document.getElementById(\"scaling\" + i).innerHTML = \"<span class='grey'> N/a </span>\";\n document.getElementById(\"class\" + i + \"result\").value = parseInt(theScore*100)/100;\n return theScore;\n\t\n\t} else if (theScore < 0 || theScore > 50) {\n\t\t// If score is invalid, notify user\n sendAlert(\"Raw scores are only between 0 and 50\");\n\t\n\t} else if (theClass === \"\") {\n\t\tlog(\"Error: Class sent to setScaling() was null\");\n\t\treturn 0;\n\t} else {\n\t\n\t\t// Look up the nearest scales in hsclasses to get the scaled score\n\t\tvar upper = 0;\n\t\tvar lower = 0;\n\t\tvar scaled_lower = 0;\n\t\tvar scaled_upper = 0;\n\t\t\n\t\t// Find the upper and lower min_agg's\n\t\tfor (j = 20; j <= 50; j += 5) {\n\t\t\tif (theScore < j && upper == 0) {\n\t\t\t\tupper = j;\n\t\t\t\tscaled_upper = hsclasses['raw_' + j][theClass];\n\t\t\t}\n\t\t\t\t\n\t\t\tif (theScore >= j) {\n\t\t\t\tlower = j;\n\t\t\t\tscaled_lower = hsclasses['raw_' + j][theClass];\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (lower == theScore)\n\t\t{\n\t\t\tscaled = scaled_lower;\n\t\t} else if (lower == 0) {\n\t\t\t// Score is < 20\n\t\t\t// Assume that 0 is scaled to 0 and use that as the lower value\n\t\t\tscore_weighting = (theScore - lower) / (upper - lower);\n\t\t\tscaled = score_weighting * scaled_upper + (1 - score_weighting) * scaled_lower;\n\t\t} else if (upper == 0) {\n\t\t\t// Score of 50\n\t\t\t// Should already have been sorted.\n\t\t\tsendAlert(\"Logic error 634\");\n\t\t} else {\n\t\t\t// Score is 20 or above, but less than or equal to 50\n\t\t\t\n\t\t\t// Gives percentage of weighing\n\t\t\tscore_weighting = (theScore - lower) / (upper - lower);\n\t\t\t\n\t\t\t// Takes the weightings and applies to to the scaled score linearly\n\t\t\tscaled = score_weighting * scaled_upper + (1 - score_weighting) * scaled_lower;\n\t\t}\n \n // Set appropriate colour and value\n if (scaled == theScore) {\n colour = \"grey\";\n plusminus = \"+\";\n change = 0;\n } else if (scaled < theScore) {\n colour = \"red\";\n plusminus = \"\";\n change = scaled - theScore;\n } else {\n colour = \"green\";\n plusminus = \"+\";\n change = scaled - theScore;\n }\n \n // Check score is not negative\n if (+theScore + +change < 0) {\n change = - theScore;\n }\n \n // Write out the changes\n document.getElementById(\"scaling\" + i).innerHTML = \"<span class='\" + colour + \"'>\" + plusminus + Math.round(change) + \"</span>\";\n document.getElementById(\"class\" + i + \"result\").value = parseInt(100 * (+theScore + +change)) / 100;\n return parseInt(100 * (+theScore + +change)) / 100;\n }\n \n return 0;\n\n}", "set originalClip(value) {}", "function SizeDependWidth() {\n wImageCur = va.wSlide;\n hImageCur = M.R(wImageCur / rateImage);\n }", "function ps()\n{\n\tvar height = parseInt(($('#content').height())) - 80; //Hoogte van de playbox ophalen\n\theight *= 0.22; //De formule om de playericons te berekenen\n\theight = height + 'px'; //Het woord px toevoegen\n\t$('.playicon').css('width', height); //Playericons de juiste grootte geven\n}", "function drawStars()\n\t{\n\t\tvar x = 0;\t\t// Use any small x. If it's large, overflow:hidden will break the width check\n\t\tvar w = fw.assetWidth(style.asset);\n\n\t\tfor (var i = 0; i < that.max; i++)\n\t\t{\n\t\t\twids.push(that.add('image', {\n\t\t\t\tx: x,\n\t\t\t\ty: that.y,\n\t\t\t\timage: style.asset,\n\t\t\t\thidden: that.hidden\n\t\t\t}));\n\n\t\t\tx += w + style.gap;\n\t\t}\n\t}", "function hurrispin() {\n\tpush();\n\ttranslate(width / 2, height / 2);\n\trotate(start1);\n\ttint(255, 180);\n\timage(hurricane, 0, 0, width + 300, height + 300);\n\tstart1 += radians(2);\n\tpop();\n}", "function eraserMinus(){\n\tif(eraserWidth>10){\n\t\tearserWidth = eraserWidth - 5;\n\t}\n}", "function SHPIX(state) {\n const stack = state.stack;\n let loop = state.loop;\n const fv = state.fv;\n const d = stack.pop() / 0x40;\n const z2 = state.z2;\n\n while (loop--) {\n const pi = stack.pop();\n const p = z2[pi];\n\n if (exports.DEBUG) {\n console.log(\n state.step,\n (state.loop > 1 ? 'loop ' + (state.loop - loop) + ': ' : '') +\n 'SHPIX[]', pi, d\n );\n }\n\n fv.setRelative(p, p, d);\n fv.touch(p);\n }\n\n state.loop = 1;\n}", "function resizedWindow() {\n let h = boardDiv.height();\n let w = boardDiv.width();\n\n ctx.canvas.height = h;\n ctx.canvas.width = w;\n\n if (h/(5*card.ar) > w/5) {\n board.h = 4;\n board.w = 3;\n card.w = (1-card.padAmnt) * Math.min(w / board.w, h / ((board.h+1) * card.ar));\n } else {\n board.h = 3;\n board.w = 4;\n card.w = (1-card.padAmnt) * Math.min(w / (board.w+1), h / (board.h * card.ar));\n }\n\n //card.w = 0.75 * Math.min(h / ((board.h+1) * card.ar), w / board.w);\n\n\n\n drawBoard();\n}", "grow(){\n this.size.x += 5;\n this.size.y += 5;\n }", "function Scale () {}", "function eraserPlus(){\n\teraserWidth = eraserWidth + 5;\n}", "function inAC2(s) {\n s.draw('100% - 545', '100% - 305', 0.6, {\n easing: ease.ease('elastic-out', 1, 0.3)\n });\n}", "show() {\r\n if (this.life === 0) {\r\n this.shade = 50;\r\n }else{\r\n this.shade = 200;\r\n }\r\n fill(this.shade);\r\n rect(this.x, this.y, res, res);\r\n }", "function awardsItemHei() {\n var awardsHei = $(window).height();\n orientHeight = $(window).height();\n orientWidth = $(window).width();\n if (orientWidth>orientHeight) { \n $('.awards_grid .grid__item').css('height', (+awardsHei/2.5)+'px');\n } else {\n $('.awards_grid .grid__item').css('height', (+awardsHei/4)+'px');\n }\n }", "function principle5() {\n background(46, 71, 74);\n fill(255);\n noStroke();\n\n // Display title\n if (frameCount < 120){\n return;\n } else if (frameCount == 120) {\n document.getElementById('title5').style.display = 'none';\n }\n\n // Update velocity and position\n velocity += a * dir;\n pos += velocity;\n\n // After halfway, apply opposite acceleration\n if (pos <= windowWidth*.5) {\n dir = 1;\n }\n\n // If it reaches the end stop it\n if (pos <= windowWidth*.3) {\n dir = 0;\n velocity = 0;\n }\n\n translate(0, windowHeight/2);\n translate(pos, boxSize[1]);\n\n // When it's moving, shear based on velocity.\n if (dir != 0) {\n shearX(map(abs(velocity), 0, 36, 0, -.7));\n } else {\n // Once it's stopped, sway it and apply some dampening\n if (count < 8) {\n shearX(map(Math.cos(count), -1, 1, .3888888888, -.3888888888));\n } else if (count < 23.5) {\n shearX(map(Math.cos(count), -1, 1, 8*.3888888888/count, 8*-.3888888888/count));\n }\n count += .2;\n }\n\n translate(0, -boxSize[1]);\n\n rect(0, 0, boxSize[0], boxSize[1]);\n}", "function sizeCost(){\n if(this.size=s){\n return \"7.99\";\n }\n if(this.size=m){\n return \"9.99\"\n}\n if(this.size=l){\n return \"12.99\"\n}\n if(this.size=xl){\n return \"15.99\"\n}\n}", "scale(sx, sy, sz){\n let e = this.elements;\n e[0] *= sx; e[4] *= sy; e[8] *= sz;\n e[1] *= sx; e[5] *= sy; e[9] *= sz;\n e[2] *= sx; e[6] *= sy; e[10] *= sz;\n e[3] *= sx; e[7] *= sy; e[11] *= sz;\n return this;\n }", "function estilo1(){\n strokeWeight (10)\n //(ancho del borde)\n \n //stroke solo define color de relleno\n \n //1 es greyscale 0 negro 255 blanco\n //2 bn + alpha\n //3 rgb\n //4 rgb+alpha\n \n stroke (100)\n fill(0,50)\n \n}", "function drawStamina() {\n fill(staminaColor, 255, 100);\n noStroke();\n textAlign(LEFT);\n textSize(22);\n text(\"<--STAMINA\", width / 10, height - 20);\n rect(0, height, 50, -playerStamina);\n //if player health is getting low, turn health bar red\n if (playerStamina < playerMaxStamina / 3) {\n staminaColor = 0;\n } else {\n staminaColor = 120;\n }\n}", "function SetHealth(health : int) {\n\tvar scalePercentage : float;\n\tif (health < maxHealth) { // Less health\n\t\tscalePercentage = 1.0 - ((maxHealth - health) / maxHealth);\n\t\tgreenGUITexture.pixelInset.width = redGUITexture.pixelInset.width * scalePercentage;\n\t} else if (health > maxHealth) { // More health\n\t\tscalePercentage = 1.0 + Mathf.Abs((maxHealth - health) / maxHealth);\n\t\tgreenGUITexture.pixelInset.width = redGUITexture.pixelInset.width * scalePercentage;\n\t} \n\tcurrentHealth = health;\n}", "function drawCage(size){\n var squareSize = cs/size\n goto(-cs/2,cs/2)\n right(180)\n width(2)\n for (let i = 0; i < size; i++) {\n forward(cs)\n left(90)\n forward(squareSize)\n left(90)\n forward(cs)\n left(90)\n forward(squareSize)\n left(180)\n forward(squareSize)\n right(90)\n }\n for (let a = 0; a < size; a++) {\n for (let i = 0; i < 2; i++) {\n forward(squareSize)\n right(90)\n forward(cs)\n right(90)\n }\n forward(squareSize)\n }\n left(180)\n goto(1000,1000)\n}", "hort(x, y) {\n //visual blocks\n this.blck = this.add.sprite(x - 65,y - 32,'blck');\n this.blck = this.add.sprite(x - 32,y - 32,'blck');\n this.blck2 = this.add.sprite(x,y - 32,'blck');\n }" ]
[ "0.6106417", "0.595235", "0.59514636", "0.5855478", "0.57878345", "0.56574374", "0.56347436", "0.56178254", "0.5610166", "0.5590585", "0.5570016", "0.55666435", "0.55261546", "0.5513696", "0.5513696", "0.54958767", "0.54958767", "0.54958767", "0.54562014", "0.54345495", "0.5429454", "0.54174966", "0.53991765", "0.5392166", "0.53731835", "0.53577244", "0.5356823", "0.53500134", "0.5339559", "0.53199166", "0.53127915", "0.530895", "0.5305763", "0.5297886", "0.52879405", "0.5287203", "0.5286364", "0.5286144", "0.5281325", "0.5280851", "0.52701384", "0.52673495", "0.5260508", "0.52603537", "0.5248791", "0.5247247", "0.5245853", "0.5243647", "0.52424496", "0.5233152", "0.5227107", "0.52246493", "0.5213798", "0.52074414", "0.52060294", "0.5204045", "0.52028614", "0.5202825", "0.5199219", "0.5193112", "0.5186483", "0.5184563", "0.51812565", "0.51774037", "0.5168193", "0.5160265", "0.51576835", "0.51540935", "0.5152911", "0.5151294", "0.5150284", "0.5145218", "0.51376885", "0.5134036", "0.5133762", "0.513058", "0.51240516", "0.5120597", "0.511761", "0.5116209", "0.51118815", "0.5107049", "0.51049095", "0.5104369", "0.5104133", "0.50968266", "0.5090327", "0.50893223", "0.5087958", "0.508547", "0.50815725", "0.50774497", "0.50769794", "0.50709623", "0.50706005", "0.5069211", "0.5069101", "0.50686413", "0.5062693", "0.5062494", "0.5058531" ]
0.0
-1
NUMBER OF SHEARFLEX SCREWS REQUIRED FOR HALF SPAN
Nr(){ return this.Lj*12/6+1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawLeftStars(num) {\n var str = '';\n for(var i = 0; i < num; i++) {\n str = str + \"*\";\n }\n for(var i = num; i < 75; i++) {\n str += \" \";\n }\n return str;\n}", "function howManyStars() {\n\tif (Number(movesMade.innerText) < 20) {\n\t\treturn \"3 stars\";\n\t}\n\tif (Number(movesMade.innerText) > 19 && Number(movesMade.innerText) < 29) {\n\t\treturn \"2 stars\";\n\t}\n\tif (Number(movesMade.innerText) > 28) {\n\t\treturn \"1 star\";\n\t}\n}", "function countSmileys(arr) {\n let str = arr.toString();\n // let res = str.match(/:\\)|;\\)|:D|;D|;-D|:-D|:~D|;~D|;~\\)|:~\\)|;-\\)|:-\\)?/g);\n let res = str.match(/[:;]{1}[-~]{0,1}?[)D]{1}/g);\n return(res==null)?0:res.length;\n}", "function countSpace(_count) {\n\t\tif (_count === 6) {\n\t\t\treturn ['5%', '22%', '39%', '56%', '73%'];\n\t\t} else if (_count === 5) {\n\t\t\treturn ['5%', '26%', '46%', '66%'];\n\t\t} else if (_count === 4) {\n\t\t\t\n\t\t} else if (_count === 3) {\n\t\t\treturn ['5%', '45%'];\n\t\t}\n\t}", "function va(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=n(\"span\",\"xxxxxxxxxx\"),r=n(\"pre\",[t]);a(e.measure,r);var f=t.getBoundingClientRect(),o=(f.right-f.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}", "function sword(length) {\n // First - create two string variables from sword pattern\n\n // Prepare the blade\n\n // Glue the parts together and return whole sword\n return SWORD_PATTERN;\n}", "function lettersWidth(s) {\n\tif (s === null || s === undefined || s === \"\")\n\t\treturn 0;\n\tlet cx = 0;\n\tfor (let i = 0; i < s.length; i++) {\n\t\tlet c = s[i];\n\t\tlet cw = textWidth(c) + spacing;\n\t\tcx += cw;\n\t}\n\treturn cx;\n}", "function countSmileys(arr) {\n\tif(arr.length === 0 ) return 0;\n\tlet rez = [];\n\tarr.forEach(el => {\n\t\tif(el.match(/^[: ;][- ~]?[) D]$/)){\n\t\t\trez.push(el.match(/^[: ;][- ~]?[) D]$/)[0])\n\t\t}\n\t})\n\treturn rez.length;\n}", "function countSmileys(arr) {\r\n const rx = new RegExp(\"[:;][-~]?[)D]\");\r\n return arr.filter(el => rx.exec(el)).length;\r\n}", "function charWidth(display) {\n\t\t if (display.cachedCharWidth != null) return display.cachedCharWidth;\n\t\t var anchor = elt(\"span\", \"xxxxxxxxxx\");\n\t\t var pre = elt(\"pre\", [anchor]);\n\t\t removeChildrenAndAdd(display.measure, pre);\n\t\t var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n\t\t if (width > 2) display.cachedCharWidth = width;\n\t\t return width || 10;\n\t\t }", "function fancyCount2(str){\n const joiner = \"\\u{200D}\";\n const split = str.split(joiner);\n let count = 0;\n\n for(const s of split){\n //removing the variation selectors\n const num = Array.from(s.split(/[\\ufe00-\\ufe0f]/).join(\"\")).length;\n count += num;\n }\n\n //assuming the joiners are used appropriately\n return count / split.length;\n }", "function add_zerowidth(wat) {\n\treturn wat.substring(0, 1) + '\\u200B' + wat.substring(1);\n}", "function printSqStars (lenght) {\n\tvar stars = '*'.repeat(lenght) + ' '\n\tconsole.log(stars.repeat(lenght))\n}", "function test_hyphens_css() {\n try {\n /* create a div container and a span within that\n * these have to be appended to document.body, otherwise some browsers can give false negative */\n var div = createElement('div');\n var span = createElement('span');\n var divStyle = div.style;\n var spanHeight = 0;\n var spanWidth = 0;\n var result = false;\n var firstChild = document.body.firstElementChild || document.body.firstChild;\n\n div.appendChild(span);\n span.innerHTML = 'Bacon ipsum dolor sit amet jerky velit in culpa hamburger et. Laborum dolor proident, enim dolore duis commodo et strip steak. Salami anim et, veniam consectetur dolore qui tenderloin jowl velit sirloin. Et ad culpa, fatback cillum jowl ball tip ham hock nulla short ribs pariatur aute. Pig pancetta ham bresaola, ut boudin nostrud commodo flank esse cow tongue culpa. Pork belly bresaola enim pig, ea consectetur nisi. Fugiat officia turkey, ea cow jowl pariatur ullamco proident do laborum velit sausage. Magna biltong sint tri-tip commodo sed bacon, esse proident aliquip. Ullamco ham sint fugiat, velit in enim sed mollit nulla cow ut adipisicing nostrud consectetur. Proident dolore beef ribs, laborum nostrud meatball ea laboris rump cupidatat labore culpa. Shankle minim beef, velit sint cupidatat fugiat tenderloin pig et ball tip. Ut cow fatback salami, bacon ball tip et in shank strip steak bresaola. In ut pork belly sed mollit tri-tip magna culpa veniam, short ribs qui in andouille ham consequat. Dolore bacon t-bone, velit short ribs enim strip steak nulla. Voluptate labore ut, biltong swine irure jerky. Cupidatat excepteur aliquip salami dolore. Ball tip strip steak in pork dolor. Ad in esse biltong. Dolore tenderloin exercitation ad pork loin t-bone, dolore in chicken ball tip qui pig. Ut culpa tongue, sint ribeye dolore ex shank voluptate hamburger. Jowl et tempor, boudin pork chop labore ham hock drumstick consectetur tri-tip elit swine meatball chicken ground round. Proident shankle mollit dolore. Shoulder ut duis t-bone quis reprehenderit. Meatloaf dolore minim strip steak, laboris ea aute bacon beef ribs elit shank in veniam drumstick qui. Ex laboris meatball cow tongue pork belly. Ea ball tip reprehenderit pig, sed fatback boudin dolore flank aliquip laboris eu quis. Beef ribs duis beef, cow corned beef adipisicing commodo nisi deserunt exercitation. Cillum dolor t-bone spare ribs, ham hock est sirloin. Brisket irure meatloaf in, boudin pork belly sirloin ball tip. Sirloin sint irure nisi nostrud aliqua. Nostrud nulla aute, enim officia culpa ham hock. Aliqua reprehenderit dolore sunt nostrud sausage, ea boudin pork loin ut t-bone ham tempor. Tri-tip et pancetta drumstick laborum. Ham hock magna do nostrud in proident. Ex ground round fatback, venison non ribeye in.';\n\n document.body.insertBefore(div, firstChild);\n\n /* get size of unhyphenated text */\n divStyle.cssText = 'position:absolute;top:0;left:0;width:5em;text-align:justify;text-justification:newspaper;';\n spanHeight = span.offsetHeight;\n spanWidth = span.offsetWidth;\n\n /* compare size with hyphenated text */\n divStyle.cssText = 'position:absolute;top:0;left:0;width:5em;text-align:justify;' +\n 'text-justification:newspaper;' +\n prefixes.join('hyphens:auto; ');\n\n result = (span.offsetHeight != spanHeight || span.offsetWidth != spanWidth);\n\n /* results and cleanup */\n document.body.removeChild(div);\n div.removeChild(span);\n\n return result;\n } catch (e) {\n return false;\n }\n }", "function initSL(){\n\treturn spaceL=300;\n}", "function countSmileys(arr) {\n let count = 0;\n for (i of arr) {\n (i[0] == \";\" || i[0] == \":\") &&\n (i[1] == \")\" || i[1] == \"D\") &&\n i.length == 2\n ? count++\n : (i[0] == \";\" || i[0] == \":\") &&\n (i[2] == \")\" || i[2] == \"D\") &&\n (i[1] == \"~\" || i[1] == \"-\") &&\n i.length == 3\n ? count++\n : true;\n }\n return count;\n}", "function getHorizontalSmushLength(txt1, txt2, opts) {\n if (opts.fittingRules.hLayout === FULL_WIDTH) {return 0;}\n var ii, len1 = txt1.length, len2 = txt2.length;\n var maxDist = len1;\n var curDist = 1;\n var breakAfter = false;\n var validSmush = false;\n var seg1, seg2, ch1, ch2;\n if (len1 === 0) {return 0;}\n\n distCal: while (curDist <= maxDist) {\n seg1 = txt1.substr(len1-curDist,curDist);\n seg2 = txt2.substr(0,Math.min(curDist,len2));\n for (ii = 0; ii < Math.min(curDist,len2); ii++) {\n ch1 = seg1.substr(ii,1);\n ch2 = seg2.substr(ii,1);\n if (ch1 !== \" \" && ch2 !== \" \" ) {\n if (opts.fittingRules.hLayout === FITTING) {\n curDist = curDist - 1;\n break distCal;\n } else if (opts.fittingRules.hLayout === SMUSHING) {\n if (ch1 === opts.hardBlank || ch2 === opts.hardBlank) {\n curDist = curDist - 1; // universal smushing does not smush hardblanks\n }\n break distCal;\n } else {\n breakAfter = true; // we know we need to break, but we need to check if our smushing rules will allow us to smush the overlapped characters\n validSmush = false; // the below checks will let us know if we can smush these characters\n\n validSmush = (opts.fittingRules.hRule1) ? hRule1_Smush(ch1,ch2,opts.hardBlank) : validSmush;\n validSmush = (!validSmush && opts.fittingRules.hRule2) ? hRule2_Smush(ch1,ch2,opts.hardBlank) : validSmush;\n validSmush = (!validSmush && opts.fittingRules.hRule3) ? hRule3_Smush(ch1,ch2,opts.hardBlank) : validSmush;\n validSmush = (!validSmush && opts.fittingRules.hRule4) ? hRule4_Smush(ch1,ch2,opts.hardBlank) : validSmush;\n validSmush = (!validSmush && opts.fittingRules.hRule5) ? hRule5_Smush(ch1,ch2,opts.hardBlank) : validSmush;\n validSmush = (!validSmush && opts.fittingRules.hRule6) ? hRule6_Smush(ch1,ch2,opts.hardBlank) : validSmush;\n\n if (!validSmush) {\n curDist = curDist - 1;\n break distCal;\n }\n }\n }\n }\n if (breakAfter) {break;}\n curDist++;\n }\n return Math.min(maxDist,curDist);\n }", "function countSmileys(arr) {\n return arr.filter(x=>/^[:;][-~]?[)D]$/.test(x)).length\n }", "function sslothable(s, n) {\n if\n (\n (s == 4 && n == 37) ||\n (s == 5 && n == 38) ||\n (s == 6 && n == 39) ||\n (s == 7 && n == 40) ||\n (s == 8 && n == 41) ||\n (s == 9 && n == 42) ||\n (s == 10 && n == 43) ||\n (s == 11 && n == 43) ||\n (s == 12 && n == 44) ||\n (s == 13 && n == 45)\n ) {\n return true;\n }\n else {\n return false;\n }\n}", "function countSmileys(arr) {\n return arr.reduce((a,c)=>a+/^[:;][-~]?[)D]$/.test(c),0)\n }", "maxAdjacentWordsToUse() {\n const selectedWordCount = this.selectedWordCount()\n if (selectedWordCount < 4) {\n return 4\n }\n if (selectedWordCount < 6) {\n return 2\n }\n return 1\n }", "function mondatSzam(){\n let szoveg = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua! Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur? Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';\n let mondatSzamlalo = 0;\n for(i = 0; i<=szoveg.length-1; i++) {\n if(szoveg[i] == '?' || szoveg[i] == '.' || szoveg[i] == '!') {\n mondatSzamlalo++;\n }\n }\n if (mondatSzamlalo > 1) {\n return 'Több mondat';\n } else {\n return 'Egy mondat';\n }\n}", "function charWidth(display) {\r\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\r\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\r\n var pre = elt(\"pre\", [anchor]);\r\n removeChildrenAndAdd(display.measure, pre);\r\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\r\n if (width > 2) { display.cachedCharWidth = width; }\r\n return width || 10\r\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function half() {\n var halfMe = \"Hello class\"\n var halfIs = Math.floor(halfMe.length / 2)\n console.log(halfIs)\n return halfIs\n }", "function charWidth(display) {\n\t if (display.cachedCharWidth != null) return display.cachedCharWidth;\n\t var anchor = elt(\"span\", \"xxxxxxxxxx\");\n\t var pre = elt(\"pre\", [anchor]);\n\t removeChildrenAndAdd(display.measure, pre);\n\t var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n\t if (width > 2) display.cachedCharWidth = width;\n\t return width || 10;\n\t }", "function charWidth(display) {\n\t if (display.cachedCharWidth != null) return display.cachedCharWidth;\n\t var anchor = elt(\"span\", \"xxxxxxxxxx\");\n\t var pre = elt(\"pre\", [anchor]);\n\t removeChildrenAndAdd(display.measure, pre);\n\t var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n\t if (width > 2) display.cachedCharWidth = width;\n\t return width || 10;\n\t }", "function charWidth(display) {\n\t if (display.cachedCharWidth != null) return display.cachedCharWidth;\n\t var anchor = elt(\"span\", \"xxxxxxxxxx\");\n\t var pre = elt(\"pre\", [anchor]);\n\t removeChildrenAndAdd(display.measure, pre);\n\t var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n\t if (width > 2) display.cachedCharWidth = width;\n\t return width || 10;\n\t }", "function charWidth(display) {\r\n if (display.cachedCharWidth != null) return display.cachedCharWidth;\r\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\r\n var pre = elt(\"pre\", [anchor]);\r\n removeChildrenAndAdd(display.measure, pre);\r\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\r\n if (width > 2) display.cachedCharWidth = width;\r\n return width || 10;\r\n }", "function countSmileys(arr) {\n let valid = 0;\n\n for (let i = 0; i < arr.length; i++) {\n console.log(arr[i].length)\n if (arr[i].length === 2) {\n if ((arr[i].includes(':') || arr[i].includes(';')) && (arr[i].includes('D') || arr[i].includes(')'))) {\n valid++\n }\n } else if (arr[i].length === 3) {\n if ((arr[i].includes(':') || arr[i].includes(';')) && (arr[i].charAt(1) === '-' || arr[i].charAt(1) === '~') && (arr[i].includes('D') || arr[i].includes(')'))) {\n valid++\n }\n }\n }\n\n return valid\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\")\n var pre = elt(\"pre\", [anchor])\n removeChildrenAndAdd(display.measure, pre)\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10\n if (width > 2) { display.cachedCharWidth = width }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\")\n var pre = elt(\"pre\", [anchor])\n removeChildrenAndAdd(display.measure, pre)\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10\n if (width > 2) { display.cachedCharWidth = width }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) return display.cachedCharWidth;\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) display.cachedCharWidth = width;\n return width || 10;\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) return display.cachedCharWidth;\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) display.cachedCharWidth = width;\n return width || 10;\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) return display.cachedCharWidth;\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) display.cachedCharWidth = width;\n return width || 10;\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) return display.cachedCharWidth;\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) display.cachedCharWidth = width;\n return width || 10;\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) return display.cachedCharWidth;\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) display.cachedCharWidth = width;\n return width || 10;\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) return display.cachedCharWidth;\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) display.cachedCharWidth = width;\n return width || 10;\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) return display.cachedCharWidth;\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) display.cachedCharWidth = width;\n return width || 10;\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) return display.cachedCharWidth;\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) display.cachedCharWidth = width;\n return width || 10;\n }", "function sabb(x, val, happ) {\n\treturn (x.match(/[sabbatical]/gi) || []).length + val + happ > 22 ? 'Sabbatical! Boom!' : 'Back to your desk, boy.';\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor]);\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n}", "function marsExploration(s) {\n let count = 0;\n s = s.split('');\n\n for (let i = 0; i < s.length; i += 3) {\n let newArr = s.slice(i, i + 3);\n if (newArr[0] != 'S') count++;\n if (newArr[1] != 'O') count++;\n if (newArr[2] != 'S') count++;\n }\n return count;\n}", "function staircase(n) {\n var space = \" \";\n var pound = \"#\";\n for (var i = 1; i <= n; i++) {\n while (i <=n) {\n return space.repeat(n-i) + pound.repeat(i);\n }\n }\n}", "function staircase(num) {\n for (let i=1; i <= num; i++) {\n let spaces = num - i\n console.log(\" \".repeat(spaces) + \"#\".repeat(i))\n }\n }", "function charWidth(display) {\n\t\t if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n\t\t var anchor = elt(\"span\", \"xxxxxxxxxx\");\n\t\t var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n\t\t removeChildrenAndAdd(display.measure, pre);\n\t\t var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n\t\t if (width > 2) { display.cachedCharWidth = width; }\n\t\t return width || 10\n\t\t }", "function sShift(symbol) {\n return (satoshi / symbol.conversion).toString().length-1;\n}", "function countSmileys(arr) {\n return arr.filter(x=>':):D:-):-D:~):~D;D;);-D;-);~D;~)'.includes(x)).length\n }", "function staircase(n) {\n let noOfSpaces = 0, noOfHashes = 0;\n let result = \"\";\n for (let i = 1; i <= n; i++) {\n result = \"\";\n noOfSpaces = n-i;\n noOfHashes = i;\n for (let j = 1; j <= noOfSpaces; j++) {\n result += \" \";\n }\n for (let k = 1; k <= noOfHashes; k++) {\n result += \"#\";\n }\n console.log(result);\n }\n\n}", "function upLeft(pHeight, pColorEven, pColorOdd, pSymbol){\nvar rLine =\"\";\nfor (i=1;i<=pHeight;i++){\nrLine +=\"<p>\";\n\nfor (x=1;x<=pHeight-i;x++) {\n\n rLine +=\"<span class='space'>\" + pSymbol +\"</span>\";\n}\n\nfor(j=x;j<=pHeight;j++){\n\n\nif (j%2) \nrLine +=\"<span style='color:\" + pColorEven + \";'>\" + pSymbol +\"</span>\";\nelse\nrLine +=\"<span style='color:\" + pColorOdd + \";'>\" + pSymbol +\"</span>\";\n\n}\nrLine +=\"</p>\";\n\n}\n\ndocument.getElementById(\"upLeft\").innerHTML = rLine;\n}", "function strSc(p){stcSc(p,0);stcIt(p.sc[0],0);stcIt(p.sc[1],0);p._sc.style.overflow=\"visible\";p._sc.style.width=\"\";p._sc.style.height=\"\";return 1;}", "function numRows(numberOfStars) {\n var block = '*';\n var space = ' ';\n\n for(var i = 1; i <= n; i++) {\n var blockStr = '',\n spaceStr = '',\n string = '';\n\n for(var t = 0; t < (n - i); t++) {\n spaceStr = spaceStr + space;\n }\n\n for(var j = 0; j < i; j++) {\n blockStr = blockStr + block + space;\n }\n\n string = string + (spaceStr + blockStr);\n console.log(string);\n }\n}", "function countTitle(str) {\r\n\tvar length = str.length;\r\n\tif(length > 50){\r\n\t\tdocument.getElementById(\"count-title\").classList.add(\"text-danger\");\r\n\t\tdocument.getElementById(\"count-title\").classList.remove(\"text-secondary\");\r\n\t} else{\r\n\t\tdocument.getElementById(\"count-title\").classList.add(\"text-secondary\");\r\n\t\tdocument.getElementById(\"count-title\").classList.remove(\"text-danger\");\r\n\t}\r\n\tdocument.getElementById(\"count-title\").innerHTML = length + '/50';\r\n}", "function sp(indentation) {\n return \" \".repeat(indentation * 2);\n}", "function row1()\n{\n for (var s=width; s>0; s--)\n {\n if (s%3!=1)\n {\n kCode += (\"knit - b\" + s + \" \" + carrier + \"\\n\");\n }\n else\n {\n kCode += (\"knit - f\" + s + \" \" + carrier + \"\\n\");\n }\n }\n}", "getWidth() {\n return this.content >> 22 /* WIDTH_SHIFT */;\n }", "function empty_slots() {\r\n\treturn character.esize;\r\n}", "function numberSyllables(word) {\n word = word.split('-')\n console.log(word.length);\n \n}", "function drawRightStars(num)\n{\n var arr = [];\n \n for(var j = 0; j < 15-num; j++)\n {\n arr.push(' ');\n }\n\n for (var i = 0; i < num; i++) \n {\n arr.push('*')\n }\n\n console.log(arr);\n}", "function expr(exprStr){return startSymbol+exprStr+endSymbol;}// The amount of space a single 1x1 tile would take up (either width or height), used as", "function reformatSSN (SSN)\r\n{ return (reformat (SSN, \"\", 3, \"-\", 2, \"-\", 4))\r\n}", "function reformatSSN (SSN)\r\n{ return (reformat (SSN, \"\", 3, \"-\", 2, \"-\", 4))\r\n}", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }", "function oddSubstrings(s){\n return [...s].reduce((count,n,i) => count + (+n % 2 ? i + 1 : 0), 0);\n}", "function staircase(n) {\n\tfor (let i = 1; i <= n; i++) {\n\t\tconsole.log('#'.repeat(i).padStart(n, ' '))\n\t}\n}", "function StarRating(str) { \n\n // split string into whole number and decimal\n let arr = str.split('.');\n \n\n let whole = arr[0];\n //capture decimal and use to calculate the half\n let decimal = Number(\"0.\" + arr[1]);\n let half = 0;\n let empty = 0;\n \n if(decimal < .25){\n half = 0;\n } else if (decimal >= .75){\n whole++;\n } else {\n half = 1\n }\n // calculate number of emptys by subtracting whole and half from 5\n empty = 5 - whole - half;\n\n // use .repeat method to repeat the correct # of times easily\n\n return `${\"full \".repeat(whole) + \"half \".repeat(half) + \"empty \".repeat(empty)}`.trim();\n\n \n\n \n\n \n \n\n}", "function getBoxWidth(content) {\n\tvar width = 5*content.length;\n\treturn (width < 600) ? width : 600;\n}", "function constantLength ( str ) {\n return (str + \" \").slice(0,8);\n}", "function draw () {\n var stars = ' * ' ;\n \tconsole.log(stars);\n\tvar j = 5 ; \n var arr = [];\n\tfor (var i = 3 ; i >=0 ; i--) {\n arr = stars.split('')\n\t\tarr[j] = '*' ;\n\t\tarr[i] = '*' ;\n stars = arr.join('')\n\t\tj++;\n\t\tconsole.log(stars);\n\t}\n\tfor (var i = 8 ; i >=5 ; i--) {\n arr = stars.split('')\n\t\tarr[j-9] = ' ' ;\n\t\tarr[i] = ' ' ;\n stars = arr.join('')\n\t\tj++;\n\t\tconsole.log(stars);\n\t}\n}", "toggleWidthSaleText() {\n\t\tconst textSaleElm = this.textSaleRef.current.querySelector('span')\n\t\tconst w = textSaleElm.offsetWidth > 0 ? textSaleElm.offsetWidth + 5 : 0\n\t\tthis.setState({ widthSaleText: w })\n\t}", "get newLength() {\n let result = 0;\n for (let i = 0; i < this.sections.length; i += 2) {\n let ins = this.sections[i + 1];\n result += ins < 0 ? this.sections[i] : ins;\n }\n return result;\n }", "function nbsp(count)\r\n{\r\n\tvar result = \"\";\r\n\twhile( count-- > 0 )\r\n\t\tresult += \"\\u00a0\";\r\n\treturn result;\r\n}", "function tooManyGroups(str) {\n return str.replaceAll(\"-\", \" \").split(\" \").length > 4\n}", "function frameIt(array) {\n let max = 0;\n for (let word of array) {\n if (word.length > max) {\n max = word.length\n\n }\n }\n console.log(\"*\".repeat(max + 4))\n array.forEach((item, i) => {\n const numberOfSpaces = max - item.length\n // console.log(numberOfSpaces)\n console.log('* ' + item + \" \".repeat(numberOfSpaces) + \" *\")\n\n // console.log(item)\n })\n console.log(\"*\".repeat(max + 4))\n}", "function staircase(n) {\n let hashes = ''\n let result = ''\n for (let i = 1; i <= n; i++) { \n hashes += '#'\n // concat n - i amount of spaces\n let spaces = \" \".repeat(n - i)\n // add another line of correct amount of spaces and hashes\n result += spaces + hashes + \"\\n\"\n }\n console.log(result)\n}", "function test_hyphens(delimiter, testWidth) {\n try {\n /* create a div container and a span within that\n * these have to be appended to document.body, otherwise some browsers can give false negative */\n var div = createElement('div');\n var span = createElement('span');\n var divStyle = div.style;\n var spanSize = 0;\n var result = false;\n var result1 = false;\n var result2 = false;\n var firstChild = document.body.firstElementChild || document.body.firstChild;\n\n divStyle.cssText = 'position:absolute;top:0;left:0;overflow:visible;width:1.25em;';\n div.appendChild(span);\n document.body.insertBefore(div, firstChild);\n\n\n /* get height of unwrapped text */\n span.innerHTML = 'mm';\n spanSize = span.offsetHeight;\n\n /* compare height w/ delimiter, to see if it wraps to new line */\n span.innerHTML = 'm' + delimiter + 'm';\n result1 = (span.offsetHeight > spanSize);\n\n /* if we're testing the width too (i.e. for soft-hyphen, not zws),\n * this is because tested Blackberry devices will wrap the text but not display the hyphen */\n if (testWidth) {\n /* get width of wrapped, non-hyphenated text */\n span.innerHTML = 'm<br />m';\n spanSize = span.offsetWidth;\n\n /* compare width w/ wrapped w/ delimiter to see if hyphen is present */\n span.innerHTML = 'm' + delimiter + 'm';\n result2 = (span.offsetWidth > spanSize);\n } else {\n result2 = true;\n }\n\n /* results and cleanup */\n if (result1 === true && result2 === true) { result = true; }\n document.body.removeChild(div);\n div.removeChild(span);\n\n return result;\n } catch (e) {\n return false;\n }\n }" ]
[ "0.5779347", "0.57044184", "0.55851483", "0.5562804", "0.55172926", "0.549701", "0.54910976", "0.5453777", "0.54336375", "0.53997326", "0.5368172", "0.53667265", "0.5364144", "0.53525025", "0.53465265", "0.5343491", "0.53408235", "0.53225666", "0.53153276", "0.5315216", "0.5306333", "0.5294016", "0.52873623", "0.52868456", "0.52868456", "0.52868456", "0.52868456", "0.52868456", "0.5285267", "0.528462", "0.528462", "0.528462", "0.5281374", "0.526159", "0.5258872", "0.5258872", "0.52447987", "0.52447987", "0.52447987", "0.52447987", "0.52447987", "0.52447987", "0.52447987", "0.52447987", "0.5208962", "0.52015525", "0.52015525", "0.52015525", "0.52015525", "0.52015525", "0.52015525", "0.52015525", "0.52015525", "0.52015525", "0.52015525", "0.52015525", "0.5192168", "0.5188486", "0.51661134", "0.5162056", "0.5160641", "0.51592803", "0.5139438", "0.51251286", "0.51213694", "0.5109834", "0.50912035", "0.509012", "0.50860065", "0.5084111", "0.50808954", "0.5077404", "0.507052", "0.5057691", "0.5051599", "0.5051599", "0.5050477", "0.5050477", "0.5050477", "0.5050477", "0.5050477", "0.5050477", "0.5050477", "0.5050477", "0.5050477", "0.5050477", "0.5050477", "0.5050477", "0.50432885", "0.5036848", "0.5035628", "0.50136364", "0.5009348", "0.49982503", "0.4996334", "0.49897945", "0.49888194", "0.49777648", "0.49769416", "0.49768177", "0.49761486" ]
0.0
-1
TOTAL NUMBER OF DECK RIBS IN SPAN DEAD LOAD NONCOMPOSITE DEFLECTION
Ij_chords(){ let A_chord = this.Atc + this.Abc let De = this.Dj - this.Ytc - this.Ybc return this.Atc*this.Abc*Math.pow(De,2)/A_chord + this.Itc + this.Ibc }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "loadFactor() {\n return this.elements / this.capacity;\n }", "loadFactor() {\n return this.elements / this.capacity;\n }", "getItemCount() {\n let count = 0;\n for (const data of this.facetBatches.values()) {\n count += data.length;\n }\n return count;\n }", "get nb() {\n //\n {\n if (__classPrivateFieldGet(this, __cntnt_bj)) {\n return Object.keys(__classPrivateFieldGet(this, __cntnt_bj)).length;\n }\n }\n throw ReferenceError(\"File not read\");\n }", "function totalBooks(booksperBundle, layers, shipPallets){\n\n var totalBooks = booksperBundle * layers * shipPallets;\n\n return totalBooks;\n\n}", "function getTotal(){\n return document.getElementById('overview')?document.getElementsByClassName('step').length - 1: document.getElementsByClassName('step').length;\n }", "Nr(){\n return this.Lj*12/6+1\n }", "get numTotalChoices() {\n // Iterates over all of the items in the collection.\n // Probably a bit slower than modifying a property directly when adding / removing items,\n // But a lot easier to maintain.\n return Array.from(this.choices.values(), (value) => value.totalNumber)\n .reduce((acc, cur) => acc + cur, 0)\n }", "function ray_total_count() {\n let s = w.rays.length;;\n for(let i=0;i<w.beams.length;++i) \n s += w.beams[i].brays.length;\n return s; \n}", "divide() {\n var bloodCellCount = agents.filter(a => a instanceof BloodCell).length;\n if(bloodCellCount < options.bloodCellLimit) {\n agents = [...agents,new BloodCell({x:this.pos.x,y:this.pos.y,id:\"bloodcell\"+bloodCellCount})];\n $(\"#bloodCellCount\").text(agents.filter(a => a instanceof BloodCell).length);\n }\n \n }", "function calcNumberOfParts (b, t, b){\n\tvar numberOfParts = b + t + b;\n\treturn numberOfParts;\n}", "get scalableComponentsCount() {\n\t\t\tvar scalableComponentIdentifiers = this.scalableHeightComponentIdentifiers;\n\n\t\t\tvar scalableComponentsCount = scalableComponentIdentifiers.dimension.length + scalableComponentIdentifiers.margin.length;\n\n\t\t\treturn scalableComponentsCount;\n\t\t}", "getDrawSize () {\r\n return Math.ceil(this.calories / this.gestation * 10)\r\n }", "function numberOfPages() {\n return Math.ceil(vm.bands.length / vm.pageSize);\n }", "get nbRegisters() { return this._registers.map(r => r.nbNativeRegisters).reduce((p, c) => p + c); }", "function _UpdateBCAdd(evt){\n var ct = _CountBC(evt.value), \n t = this.tree;\n t.set('bandingCount', t.bandingCount + ct.b);\n t.set('conditionCount', t.conditionCount + ct.c); \n}", "function getNumLabels () {\n var labels = svl.labelContainer.getCanvasLabels();\n var len = labels.length;\n var i;\n var total = 0;\n for (i =0; i < len; i++) {\n if (!labels[i].isDeleted() && labels[i].isVisible()) {\n total++;\n }\n }\n return total;\n }", "get size() {\n if (this.isEmpty)\n return 0;\n let size = this.nextLayer.size;\n for (let chunk of this.chunk)\n size += chunk.value.length;\n return size;\n }", "OBV(n) {\n return _.extend(bars => {\n var numerator = adj(bars).reduce(function(p, bar, i, bars){\n if (i === 0) return 0;\n var prior = bars[i - 1];\n if (bar.close > prior.close)\n return p + (i + 1) * bar.volume;\n if (bar.close < prior.close)\n return p - (i + 1) * bar.volume;\n return p;\n }, 0);\n return numerator / (bars.length * (bars.length - 1)) * 2;\n }, {\n warmUpLength: n * 10\n });\n }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }", "function bnpChunkSize(r) { return Math.floor(Math.LN2 * this.DB / Math.log(r)); }", "get numLoaded() { return _numLoaded; }", "function totalCells(){\n return GRID.length * GRID[0].length;\n}", "function refreshTotalCount() {\n NonMutantCellLineTotalCountAPI.get(function(data){\n vm.total_count = data.total_count;\n });\n }", "function bnpChunkSize(r)\n{\n return Math.floor(Math.LN2 * this.DB / Math.log(r));\n}", "stats() {\n return {\n numComponents: this.Components.length,\n numEntities: this.entities.length\n };\n }", "function getTotalBiomass(reef_fish_arr, c_timeStep, netlock_arr){\n\t\t\t\n\t\t\ttotal_biomass = reef_fish_arr.model[c_timeStep-1].total_biomass;\n\t\t\ttotal_bioRes = reef_fish_arr.model[c_timeStep-1].biomass_inside;\n\t\t\ttotalBiomass_data.push(total_biomass);\n\t\t\tbiomass_reserve_data.push(total_bioRes);\n\t\t\t//kg to metric tons\n\t\t\ttotal_bioRes = total_bioRes / 1000;\n\t\t\ttotal_biomass = total_biomass / 1000;\n\t\t\t\n\t\t\t// push data to data sets \n\t\t\tif(total_bioRes != 0){\n\t\t\t\treserveBio_perArea = total_bioRes / reserve_area;\n\t\t\t}else{\n\t\t\t\treserveBio_perArea = 0;\n\t\t\t}\n\t\t\treserveBiomass_perArea.push(reserveBio_perArea); \n\t\t\t\n\t\t\ttotal_biomass = total_biomass - total_bioRes;\n\t\t\t\n\t\t\tnon_reserve_bioMass.push(total_biomass);\n\t\t\t\n\t\t\tnonReserve_bioPerArea = total_biomass / reef_fish_area;\n\t\t\tnon_reserve_data_perArea.push(nonReserve_bioPerArea);\n\t\n\t}", "function calcNbr(img) {\n return img.normalizedDifference(['NIR', 'SWIR2']).rename('NBR');\n}", "function getCount(inpt)\r\n{\r\n\tvar len=inpt.length;\r\n\treturn len;\r\n\t\t\r\n\t\r\n}", "getColumnsAmount() { //metodo para calcular a quantidade de coluna disponivel baseado no tamanho do bloco, para saber as dimensoes do celular\n const width = Dimensions.get('window').width\n return Math.floor(width / this.blockSize)\n }" ]
[ "0.6544292", "0.6544292", "0.5912205", "0.5777186", "0.5644072", "0.5567885", "0.5548198", "0.547524", "0.5451637", "0.54385155", "0.5420233", "0.5392416", "0.53916514", "0.5385511", "0.53751624", "0.5372095", "0.53694236", "0.53570336", "0.5356629", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.53317666", "0.5331727", "0.5304224", "0.5300204", "0.5287936", "0.52578217", "0.52547324", "0.52494663", "0.52482396", "0.52440745", "0.5230414" ]
0.0
-1
MOMENT OF INERTIA DUE TO JOIST CHORDS ONLY
Cr(){ return 0.721 + 0.00725*(this.Lj*12/this.Dj) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "imprimirMayorAMenor() {\n\t\tthis.vehiculos.sort((v1, v2) => {\n\t\t\treturn v2.precio - v1.precio\n\t\t})\n\n\t\tconsole.log('Vehiculos ordenados de mayor a menor:')\n\n\t\tthis.vehiculos.forEach(vehiculo => {\n\t\t\tconsole.log(`${vehiculo.marca} ${vehiculo.modelo}`)\n\t\t});\n\t}", "function Maisons(){\n \n }", "function moureJugador(jugador) {\n novaDireccioJugador(jugador);\n\n if (jugador[3] == 1 && tauler[jugador[2] + 1][jugador[1]] != 0) {\n tauler[jugador[2]][jugador[1]] = 1;\n //guardem les posicions antigues per comprovar colisions\n jugador[5] = jugador[1];\n jugador[6] = jugador[2];\n //movem el jugador\n jugador[2] += 1;\n //modifiquem el tauler\n tauler[jugador[2]][jugador[1]] = 2;\n }\n if (jugador[3] == 2 && tauler[jugador[2]][jugador[1] + 1] != 0) {\n tauler[jugador[2]][jugador[1]] = 1;\n jugador[5] = jugador[1];\n jugador[6] = jugador[2];\n jugador[1] += 1;\n tauler[jugador[2]][jugador[1]] = 2;\n }\r\n if (jugador[3] == 3 && tauler[jugador[2] - 1][jugador[1]] != 0) {\n tauler[jugador[2]][jugador[1]] = 1;\n jugador[5] = jugador[1];\n jugador[6] = jugador[2];\n jugador[2] += -1;\n tauler[jugador[2]][jugador[1]] = 2;\n }\r\n if (jugador[3] == 4 && tauler[jugador[2]][jugador[1] - 1] != 0) {\n tauler[jugador[2]][jugador[1]] = 1;\n jugador[5] = jugador[1];\n jugador[6] = jugador[2];\n jugador[1] += -1;\n tauler[jugador[2]][jugador[1]] = 2;\n }\r\n}", "function moons_jup(jd){\n\n // funzione per il calcolo della posizione dei satelliti medicei di Giove\n // by Salvatore Ruiu -05-2012 Irgoli (Sardegna)\n // jd= numero del giorno giuliano per la data.\n\n var d=jd-2415020; // numero di giorni dal 31-12-1899 \n var V=134.63+0.00111587*d; // argomento del termine a lungo periodo.\n var M=358.476+0.9856003*d;\n var N=225.328+0.0830853*d+0.33*Math.sin(Rad(V));\n\n var J=221.647+0.9025179*d-0.33*Math.sin(Rad(V));\n\n var A=1.916*Math.sin(Rad(M))+0.020*Math.sin(Rad(2*M));\n var B=5.552*Math.sin(Rad(N))+0.167*Math.sin(Rad(2*N));\n\n var K=J+A-B;\n\n var R=1.00014-0.01672*Math.cos(Rad(M))-0.00014*Math.cos(Rad(2*M)); // raggio vettore della Terra.\n\n var RJ=5.20867-0.25192*Math.cos(Rad(N))-0.00610*Math.cos(Rad(2*N)); // raggio vettore di Giove.\n\n var dist=Math.sqrt(RJ*RJ+R*R-2*RJ*R*Math.cos(Rad(K))); // distanza Terra-Giove.\n\n // phi=angolo di fase in radianti.\n\n var phi=Math.asin(R*Math.sin(Rad(K))/dist); \n\n phi=Rda(phi); // angolo di fase in gradi.\n\n var LON_ELIOC=238.05+0.083091*d+0.33*Math.sin(Rad(V))+B;\n\n var Ds=3.07*Math.sin(Rad(LON_ELIOC+44.5));\n var De=Ds-2.15*Math.sin(Rad(phi))*Math.cos(Rad(LON_ELIOC+24))-1.31*((RJ-dist)/dist)*Math.sin(Rad(LON_ELIOC-99.4));\n\n // *** posizione dei satelliti di Giove - inizio.\n\n var u1= 84.5506+203.4058630*(d-dist/173)+phi-B; // Io.\n var u2= 41.5015+101.2916323*(d-dist/173)+phi-B; // Europa.\n var u3=109.9770+ 50.2345169*(d-dist/173)+phi-B; // Ganimede.\n var u4=176.3586+ 21.4879802*(d-dist/173)+phi-B; // Callisto.\n\n var G=187.3+50.310674*(d-dist/173);\n var H=311.1+21.569229*(d-dist/173);\n\n // correzioni\n\n var delta_u1=0.472*Math.sin(Rad(2*(u1-u2)));\n var delta_u2=1.073*Math.sin(Rad(2*(u2-u3)));\n var delta_u3=0.174*Math.sin(Rad(G));\n var delta_u4=0.845*Math.sin(Rad(H));\n\n // distanze dei satelliti dal centro di Giove, in unità del raggio equatoriale di Giove.\n\n var r1= 5.9061-0.0244*Math.cos(Rad(2*(u1-u2)));\n var r2= 9.3972-0.0889*Math.cos(Rad(2*(u2-u3)));\n var r3=14.9894-0.0227*Math.cos(Rad(G));\n var r4=26.3649-0.1944*Math.cos(Rad(H));\n\n // u1,u2,u3,u4 corretti\n\n u1=gradi_360(u1+delta_u1);\n u2=gradi_360(u2+delta_u2);\n u3=gradi_360(u3+delta_u3);\n u4=gradi_360(u4+delta_u4);\n\n // coordinate apparenti rettangolari dei satelliti di Giove\n\n X1=r1*Math.sin(Rad(u1)); Y1=-r1*Math.cos(Rad(u1))*Math.sin(Rad(De));\n X2=r2*Math.sin(Rad(u2)); Y2=-r2*Math.cos(Rad(u2))*Math.sin(Rad(De));\n X3=r3*Math.sin(Rad(u3)); Y3=-r3*Math.cos(Rad(u3))*Math.sin(Rad(De));\n X4=r4*Math.sin(Rad(u4)); Y4=-r4*Math.cos(Rad(u4))*Math.sin(Rad(De));\n \n// Meridiano centrale di Giove: sistema II\n\n var long_m2=290.28+870.1869088*(d-dist/173)+phi-B;\n\n long_m2=gradi_360(long_m2);\n\n // *** posizione dei satelliti di Giove - fine. \n // \n // u=0-360 corrisponde alla congiunzione inferiore del satellite (transita sul disco del pianeta se X,Y<1).\n // u= 90 corrisponde all'elongazione massima occidentale.\n // u= 180 corriponde alla congiunzione superiore.\n // u= 270 corriponde all'elongazione massima orintale.\n\nvar pos_sat= new Array(X1,Y1,u1,X2,Y2,u2,X3,Y3,u3,X4,Y4,u4,long_m2,De);\n\nreturn pos_sat;\n\n}", "function rimuovi(){\n\n\tvar j = 0;\n\n\t// Per ogni elemento controllo la condizione\n\t// Se è idoneo, copio elemento in J\n\n\tfor(var i = 0; i<persone.length; i++){\n\t\tif(persone[i].altezza > 1.5) {\n\t\t\tpersone[j++] = persone[i];\n\t\t}\n\t}\n\t// Aggiorno array con valori nuovi messi in J\n\tpersone.length = j;\n\n\t// Visualizzo\n\tvisualizzaPersone();\n}", "function moureFantasma(fantasma) {\n novaDireccioFantasma(fantasma);\n\n if (fantasma[3] == 1) {\n tauler[fantasma[2]][fantasma[1]] = 1;\n //guardem les posicions antigues per comprovar colisions\n fantasma[5] = fantasma[1];\n fantasma[6] = fantasma[2];\n //movem el fantasma\n fantasma[2] += 1;\n //modifiquem el tauler\n tauler[fantasma[2]][fantasma[1]] = 3;\n }\n if (fantasma[3] == 2) {\n tauler[fantasma[2]][fantasma[1]] = 1;\n fantasma[5] = fantasma[1];\n fantasma[6] = fantasma[2];\n fantasma[1] += 1;\n tauler[fantasma[2]][fantasma[1]] = 3;\n }\n if (fantasma[3] == 3) {\n tauler[fantasma[2]][fantasma[1]] = 1;\n fantasma[5] = fantasma[1];\n fantasma[6] = fantasma[2];\n fantasma[2] += -1;\n tauler[fantasma[2]][fantasma[1]] = 3;\n }\n if (fantasma[3] == 4) {\n tauler[fantasma[2]][fantasma[1]] = 1;\n fantasma[5] = fantasma[1];\n fantasma[6] = fantasma[2];\n fantasma[1] += -1;\n tauler[fantasma[2]][fantasma[1]] = 3;\n }\n}", "function getImonesPelnas( ) {\n let ats = imonesPajamos - imonesIslaidos - tomoAtlyginimas - antanoAtlyginimas - poviloAtlyginimas;\n return ats;\n}", "function ocen_statycznie()\n{\n return szachownica.ocena.material + (szachownica.ocena.faza_gry * szachownica.ocena.tablice + (70 - szachownica.ocena.faza_gry) * szachownica.ocena.tablice_koncowka) * 0.03;\n}", "function iobCalc(treatment, time, dia) {\n var diaratio = dia / 3;\n var peak = 75 * diaratio;\n //var sens = profile_data.sens;\n if (typeof time === 'undefined') {\n var time = new Date();\n }\n\n if (treatment.insulin) {\n var bolusTime=new Date(treatment.date);\n var minAgo=(time-bolusTime)/1000/60;\n\n if (minAgo < 0) { \n var iobContrib=0;\n var activityContrib=0;\n }\n if (minAgo < peak) {\n var x = (minAgo/5 + 1) * diaratio;\n var iobContrib=treatment.insulin*(1-0.001852*x*x+0.001852*x);\n //var activityContrib=sens*treatment.insulin*(2/dia/60/peak)*minAgo;\n var activityContrib=treatment.insulin*(2/dia/60/peak)*minAgo;\n\n }\n else if (minAgo < 180) {\n var x = (minAgo-peak)/5 * diaratio;\n var iobContrib=treatment.insulin*(0.001323*x*x - .054233*x + .55556);\n //var activityContrib=sens*treatment.insulin*(2/dia/60-(minAgo-peak)*2/dia/60/(60*dia-peak));\n var activityContrib=treatment.insulin*(2/dia/60-(minAgo-peak)*2/dia/60/(60*dia-peak));\n }\n else {\n var iobContrib=0;\n var activityContrib=0;\n }\n return {\n iobContrib: iobContrib,\n activityContrib: activityContrib\n };\n }\n else {\n return '';\n }\n}", "function gereTourCombat() {\r\n // SI tourJoueur1 = 0 au départ TOUR JOUEUR 1\r\n if(tourJoueur1 < 1) { // tourJoueur1 vaut 0 au début\r\n joueur2.passeSonTourAu(joueur1); // Change le texte de MON TOUR dans l'ATH des joueurs en OUI ou NON\r\n AttaqueOuDefense(); // Demande au joueur 2 de choisir si il attaque ou se défend\r\n tourJoueur1++; // mais il vaudra 1 pour la fonction et pour passer de tour\r\n } else {\r\n joueur1.passeSonTourAu(joueur2);\r\n AttaqueOuDefense();\r\n tourJoueur1--;\r\n }\r\n}", "function FimJogo(){\n\t\tswitch(_vitoria){\n\t\t\tcase 1:AnunciarVitoria(1);p1.Vencer();break;\n\t\t\tcase 2:AnunciarVitoria(2);p2.Vencer();break;\n\t\t\tcase 4:AnunciarVitoria(3);p3.Vencer();break;\n\t\t\tcase 8:AnunciarVitoria(4);p4.Vencer();break;\n\t\t\tcase 0:AnunciarVitoria(0);AnimacaoEmpate();break;\n\t\t\tdefault:if(_minutos==0 && _segundos==0){AnunciarVitoria(0);AnimacaoEmpate();}break;\n\t\t}\n\t}", "function optimal_compos_golden(adr)//mam sklad 7, szukam czy ktos na lawce sie nadaje//szukanie lepszego perfo-nie roz problem\n{\n if(adr==1)\n {\n \ttea = team1;//z tempo odczyt, a do tempz zapisuje;\n }\n else \n {\n \ttea = team2;//z tempo odczyt, a do tempz zapisuje;\n }\n//console.log(changes);\n var all_lawka = [];\n var item1 = [];\n var item2 = [];\n var item3 = [];\n var item4 = [];\n for(var i=1;i<=6;i++)//mam gwaracje, że przejdzie przez każdego R na ławce, ale dalej zawsze wybierze najlepszego\n {\t\n tea[0]=Array(0,0,0,0,0,0,0,0,0,0,0,0);\n item1 = [];item2 = [];item3 = [];item4 = [];\n\t\t\tfor(var j=8;j<=12;j++)\n\t\t\t{\n\t\t\t //item = [];\n if(tea[j][4]==\"R\" && i == 1)// i = 1 - sprawdzam każdego z ławki konkretnie za R\n\t\t\t {\n\t\t\t \tif(tea[j][11] > (tea[i][11]+1))\n {\n nadwyzka = tea[j][11] - tea[i][11];nadwyzka = zaokr(nadwyzka); \n item1 = [j, i, nadwyzka];\n all_lawka.unshift(item1);// \n }\n\t\t\t }\n if(tea[j][4]==\"A\" && i == 4)// i = 4\t\n\t\t\t {\n\t\t\t \tif(tea[j][6] > (tea[i][6]+1))\n {\n nadwyzka = tea[j][6] - tea[i][6];nadwyzka = zaokr(nadwyzka);\n item2 = [j, i, nadwyzka];\n all_lawka.unshift(item2);// \n }\n\t\t\t }\n item3 =[];\n if(tea[j][4]==\"P\" && (i == 2 || i == 5))// i = 2; i =5;\n\t\t\t {\n\t\t\t \tif( (tea[j][6]+tea[j][7])/2 > ((tea[i][6]+tea[i][7])/2)+1)\n {\n nadwyzka = (tea[j][6]+tea[j][7])/2 - ((tea[i][6]+tea[i][7])/2);nadwyzka = zaokr(nadwyzka);\n item3=[];\n item3 = [j, i, nadwyzka];\n test = all_lawka.unshift(item3);//\n //alert(\"test-length: \"+test+\" item: \"+item3);\n }\n\t\t\t }\n if(tea[j][4]==\"S\" && (i == 3 || i == 6))// i = 3; i =6;\n\t\t\t {\n\t\t\t \tif( (tea[j][6]+tea[j][9])/2 > ((tea[i][6]+tea[i][9])/2)+1)\n {\n nadwyzka = (tea[j][6]+tea[j][9])/2 - ((tea[i][6]+tea[i][9])/2);nadwyzka = zaokr(nadwyzka);\n item4 = [j, i, nadwyzka];\n all_lawka.unshift(item4);// \n }\n\t\t\t }\n } //end of for j=8..12\n //console.log(all_lawka);\n }//end of for i=1..6\n //sortowanie\n for(u=0; u<all_lawka.length; u++)\n {\n for(w=1; w<all_lawka.length; w++)\n {\n if(all_lawka[w][2] > all_lawka[w-1][2])\n {\n temp = all_lawka[w-1];\n all_lawka[w-1] = all_lawka[w];\n all_lawka[w] = temp;\n }\n }\n }\n //próba wykoanania zmiany\n for(u=0; u<all_lawka.length; u++)\n {\n out_id = all_lawka[u][1];\n in_id = all_lawka[u][0];\n out_nr = tea[out_id][3]; //na indeksie 1 mam wyznaczonego do zejścia - nr dla funkcji possible_change\n in_nr = tea[in_id][3]; //\n if(adr == 1)\n {\n if(possible_change(adr, out_nr, in_nr) < 6)\n {\nvar fffv = document.getElementById(\"screen3\").innerHTML;\ndocument.getElementById(\"screen3\").innerHTML=fffv+\"<br>(\"+pkt1+\":\"+pkt2+\") \"+tea[in_id][5]+\" za: \"+tea[out_id][5]+\" (stan: \"+mm1+\" : \"+mm2+\") \";\n//2021-01-13: nowy screen do zapisu zmian na czas seta\nvar fffv = document.getElementById(\"change_info1\").innerHTML;\ndocument.getElementById(\"change_info1\").innerHTML=fffv+\"<br>(\"+pkt1+\":\"+pkt2+\") \"+tea[in_id][5]+\" za \"+tea[out_id][5];\n change1(out_id,in_id); flag_golden1 = 1; return 0;\n }\n }\n else\n {\n if(possible_change(adr, out_nr, in_nr) < 6)\n {\nvar fffv = document.getElementById(\"screen6\").innerHTML;\ndocument.getElementById(\"screen6\").innerHTML=fffv+\"<br>(\"+pkt1+\":\"+pkt2+\") \"+tea[in_id][5]+\" za: \"+tea[out_id][5]+\" (stan: \"+mm1+\" : \"+mm2+\") \";\n//2021-01-13: nowy screen do zapisu zmian na czas seta\nvar fffv = document.getElementById(\"change_info2\").innerHTML;\ndocument.getElementById(\"change_info2\").innerHTML=fffv+\"<br>(\"+pkt1+\":\"+pkt2+\") \"+tea[in_id][5]+\" za \"+tea[out_id][5];\n change2(out_id,in_id); flag_golden2 = 1; return 0;\n }\n }\n }\n\n\n if(adr==1)\n {\n team1 = tea;\n }\n else \n {\n team2 = tea;\n }\n\n banch_ins();\n return 1;\n}", "function verifMangerPomme() {\n if (xPomme == xSerp && yPomme == ySerp) {\n initPositionPomme();\n tempsPomme = 0;\n score += 10 + 3*bodySerp.length;\n niveau += Math.trunc(score/300);\n tailleBody +=5;\n afficheScore();\n }else if (tempsPomme++ > tempsMaxPomme) {\n initPositionPomme();\n tempsPomme = 0;\n }\n }", "finePartita(){\n //controllo le righe\n if (this.state[0]!==\"\" && this.state[0]===this.state[1] && this.state[1]===this.state[2]){\n return this.state[0]\n }\n if (this.state[3]!==\"\" && this.state[3]===this.state[4] && this.state[4]===this.state[5]){\n return this.state[3]\n }\n if (this.state[6]!==\"\" && this.state[6]===this.state[7] && this.state[7]===this.state[8]){\n return this.state[6]\n }\n //controllo le colonne\n if (this.state[0]!==\"\" && this.state[0]===this.state[3] && this.state[3]===this.state[6]){\n return this.state[0]\n }\n if (this.state[1]!==\"\" && this.state[1]===this.state[4] && this.state[4]===this.state[7]){\n return this.state[1]\n }\n if (this.state[2]!==\"\" && this.state[2]===this.state[5] && this.state[5]===this.state[8]){\n return this.state[2]\n }\n\n //controllo le diagonali\n if (this.state[0]!==\"\" && this.state[0]===this.state[4] && this.state[4]===this.state[8]){\n return this.state[0]\n }\n if (this.state[2]!==\"\" && this.state[2]===this.state[4] && this.state[4]===this.state[6]){\n return this.state[2]\n }\n\n //la griglia e' piena e non ha vinto nessuno=TIE\n if (this.isFull()){\n return \"tie\"\n }\n return \"in corso\"\n}", "liikuta(nimi, suunta){\n for (var i = 0; i < this.hahmot.length; i++){\n var h = this.hahmot[i];\n if (h.nimi == nimi) {\n if (suunta == suunnat.OIKEA) {\n if (this.onkoEtanoita(h.x + 1,h.y)) return;\n if (++h.x >= this.leveys) {\n h.x = 0;\n }\n }\n if (suunta == suunnat.VASEN) {\n if (this.onkoEtanoita(h.x - 1,h.y)) return;\n if (--h.x < 0) {\n h.x = this.leveys - 1;\n }\n }\n if (suunta == suunnat.YLOS) {\n if (this.onkoEtanoita(h.x,h.y - 1)) return;\n if (--h.y < 0) {\n h.y = 0;\n }\n }\n if (suunta == suunnat.ALAS) {\n if (this.onkoEtanoita(h.x, h.y + 1)) return;\n if (++h.y >= this.korkeus) {\n h.y = this.korkeus - 1;\n }\n }\n }\n } \n if (typeof this.pelihahmo == 'undefined') return;\n var h = this.pelihahmo;\n if (h.nimi == nimi) {\n if (suunta == suunnat.OIKEA) {\n if (++h.x >= this.leveys) {\n h.x = 0;\n }\n pisteet++;\n }\n if (suunta == suunnat.VASEN) {\n if (--h.x < 0) {\n h.x = this.leveys - 1;\n }\n pisteet--;\n }\n if (suunta == suunnat.YLOS) {\n if (--h.y < 0) {\n h.y = 0;\n }\n }\n if (suunta == suunnat.ALAS) {\n if (++h.y >= this.korkeus) {\n h.y = this.korkeus - 1;\n }\n }\n }\n }", "function getAIMovement() {\n /**\n * In het geval de ai uit het scherm wil lopen, gaat hij nu aan de tegenovergestelde kant weer verder\n */\n ai_position_x += ai_movement_x;\n ai_position_y += ai_movement_y;\n\n //tilecount - 1, moet omdat hij anders aan de zijkant terecht komt\n if (ai_position_x < 0) {\n ai_position_x = tilecount_x - 1;\n }\n if (ai_position_x > tilecount_x - 1) {\n ai_position_x = 0;\n }\n if (ai_position_y < 0) {\n ai_position_y = tilecount_y - 1;\n }\n if (ai_position_y > tilecount_y - 1) {\n ai_position_y = 0;\n }\n }", "function nota_mayor(){\n\t\tvar mayor = notas.indexOf(Math.max.apply(null, notas ));\n\t\tdocument.getElementById(\"mayor\").innerHTML = \"La nota mayor del estudiante: <b>\" + nombre_alumno(mayor) + \"</b>\";\n\t}", "function mortal() {\n Object.defineProperty(this,\"raza\",{value:\"\",writable:true});\n Object.defineProperty(this,\"origen\",{value:\"\",writable:true});\n Object.defineProperty(this,\"inteligencia\",{value:false,writable:true});\n\n Object.defineProperties(this,{\n \"obtenRaza\":{get: function(){return this.raza;}},\n \"obtenOrigen\":{get: function(){return this.origen;}},\n \"obtenInteligencia\":{get: function(){return this.inteligencia;}},\n \"setRaza\":{set: function(raza){this.raza = raza;}},\n \"setOrigen\":{set: function(origen){this.origen = origen;}},\n \"setInteligencia\":{set: function(intel){this.inteligencia = intel;}}\n });\n\n this.muerto = function(){\n if(this.obtenEdad == 0){\n return \"Muerto\";\n } else {\n return \"Vivo\";\n }\n };\n}", "function evaporate() {\n for (let i = 0; i < Math.ceil(w / pheromones_resolution); i++) {\n for (let j = 0; j < Math.ceil(h / pheromones_resolution); j++) {\n if (pheromones.home_pheromones[i][j] > 0) {\n pheromones.home_pheromones[i][j]--;\n }\n if (pheromones.food_pheromones[i][j] > 0) {\n pheromones.food_pheromones[i][j]--;\n }\n }\n }\n}", "function iniciarNoHeuristico(){\n var x = parseInt(idAgente.split(\",\")[0]);\n var y = parseInt(idAgente.split(\",\")[1]);\n \n if(Terminar(x,y)){\n return;\n }\n //Moverse la matriz esta al reves [y][x]\n\n //Aca verifica los movimientos en la fila superior\n if(y == 0 ){\n //Verifico si esta en la esquina 0,0\n if(x ==0 && y ==0){\n if(matriz2[y][x+1] <= matriz2[y+1][x]){\n MoverDerecha(x,y);\n }else if(matriz2[y+1][x] != pared2){\n MoverAbajo(x,y);\n }\n }\n //Verificar en la posicion X=n, y=0\n else if(x == tx-1 && y ==0){\n if(matriz2[y+1][x] <= matriz2[y][x-1]){\n MoverAbajo(x,y)\n }else if(matriz2[y][x-1] != pared2){\n MoverIzquierda(x,y);\n }\n }\n //Verificacion dentro de la fila superior exceptuando las esquinas\n else {\n if(matriz2[y][x+1] <= matriz2[y+1][x] && matriz2[y][x+1] <= matriz2[y][x-1]){\n MoverDerecha(x,y);\n }else if(matriz2[y+1][x] <= matriz2[y][x-1]){\n MoverAbajo(x,y);\n }else if(matriz2[y][x-1] != pared2){\n MoverIzquierda(x,y);\n }\n }\n }\n //Verificando la esquina inferior izquierda donde x=0 y=n\n else if(x==0){\n if(x ==0 && y == ty-1){\n if(matriz2[y-1][x] <= matriz2[y][x+1]){\n MoverArriba(x,y);\n }else if(matriz2[y][x+1] != pared2){\n MoverDerecha(x,y);\n }\n }\n //Verificando dentro de la columna izquierda\n else{\n if(matriz2[y-1][x] <= matriz2[y][x+1] && matriz2[y-1][x] <= matriz2[y+1][x]){\n MoverArriba(x,y);\n }else if(matriz2[y][x+1] <= matriz2[y+1][x]){\n MoverDerecha(x,y);\n }else if(matriz2[y+1][x] != pared2){\n MoverAbajo(x,y);\n }\n }\n }\n //Verificando columna derecha\n else if(x == tx-1 && y <ty-1){\n if(matriz2[y-1][x] <= matriz2[y+1][x] && matriz2[y-1][x] <= matriz2[y][x-1]){\n MoverArriba(x,y);\n }else if(matriz2[y+1][x] <= matriz2[y][x-1]){\n MoverAbajo(x,y);\n }else if(matriz2[y][x-1] != pared2){\n MoverIzquierda(x,y);\n }\n }\n //Verificando la fila inferior\n else if(y == ty-1){\n //Verificar punto x=tx y=ty\n if(y== ty-1 && x == tx-1){\n if(matriz2[y-1][x] <= matriz2[y][x-1]){\n MoverArriba(x,y);\n }else if(matriz2[y][x-1] != pared2){\n MoverIzquierda(x,y);\n }\n }else {\n if(matriz2[y-1][x] <= matriz2[y][x+1] && matriz2[y-1][x] <= matriz2[y][x-1]){\n MoverArriba(x,y);\n }else if(matriz2[y][x+1] <= matriz2[y][x-1]){\n MoverDerecha(x,y);\n }else if(matriz2[y][x-1] != pared2){\n MoverIzquierda(x,y);\n }\n }\n }else{\n if(matriz2[y-1][x] <= matriz2[y][x+1] && matriz2[y-1][x] <= matriz2[y+1][x] && matriz2[y-1][x] <= matriz2[y][x-1]){\n MoverArriba(x,y);\n }else if(matriz2[y][x+1] <= matriz2[y+1][x] && matriz2[y][x+1] <= matriz2[y][x-1]){\n MoverDerecha(x,y);\n }else if(matriz2[y+1][x] <= matriz2[y][x-1]){\n MoverAbajo(x,y);\n }else if(matriz2[y][x-1] != pared2){\n MoverIzquierda(x,y);\n }\n }\n}", "function name_phase(elongazione,LG){\n\n // nome delle fasi lunari.\n // elongazione della Luna. \n // LG=lingua \"ITA\" , \"ENG\"\n // Salvatore Ruiu Gennaio 2012.\n\n var elong=elongazione+360;\n var nome_fase=\"*\";\n\nif (elong>360) {elong=elong-360; }\n\nif(LG==\"ITA\") { \n if (elong>0 && elong<10) { nome_fase=\"Luna Nuova\" }\n else if (elong>10 && elong<80 ) { nome_fase=\"Luna Crescente\" }\n else if (elong>80 && elong<100 ) { nome_fase=\"Primo Quarto\" }\n else if (elong>100 && elong<170 ) { nome_fase=\"Gibbosa Crescente\" }\n else if (elong>170 && elong<190 ) { nome_fase=\"Luna Piena\" }\n else if (elong>190 && elong<260 ) { nome_fase=\"Gibbosa Calante\" }\n else if (elong>260 && elong<280 ) { nome_fase=\"Ultimo Quarto\" }\n else if (elong>280 && elong<350 ) { nome_fase=\"Luna Calante\" }\n else if (elong>350 && elong<360 ) { nome_fase=\"Luna Nuova\" }\n }\n\nif(LG==\"ENG\") { \n if (elong>0 && elong<10) { nome_fase=\"New Moon\" }\n else if (elong>10 && elong<80 ) { nome_fase=\"Waxing Crescent\" }\n else if (elong>80 && elong<100 ) { nome_fase=\"First Quarter\" }\n else if (elong>100 && elong<170 ) { nome_fase=\"Waxing Gibbous\" }\n else if (elong>170 && elong<190 ) { nome_fase=\"Full Moon\" }\n else if (elong>190 && elong<260 ) { nome_fase=\"Waning Gibbous\" }\n else if (elong>260 && elong<280 ) { nome_fase=\"Last Quarter\" }\n else if (elong>280 && elong<350 ) { nome_fase=\"Waning Crescent\" }\n else if (elong>350 && elong<360 ) { nome_fase=\"New Moon\" }\n }\n\nreturn nome_fase;\n}", "function jupiterMoons (part, initialPositions, steps = Infinity) { // in part 2, there is no known stopping point, so steps should be set to Infinity\n\n // REFERENCE CONSTANTS\n const moons = ['A', 'B', 'C', 'D']; // hard coded for 4 moons. this could probably be generalized by grabbing character codes\n const axes = ['x', 'y', 'z'];\n\n // HELPER FUNCTIONS TO APPLY GRAVITY AND NEW VELOCITIES\n function applyGravity () {\n for (let moon1 = 0; moon1 < moons.length - 1; moon1++) { // double nested for loop needed to compare every moon against every other\n for (let moon2 = moon1 + 1; moon2 < moons.length; moon2++) {\n for (const axis of axes) { // if axis values of the two moons are different, their velocities increment/decrement toward one another\n if (positions[moons[moon1]][axis] > positions[moons[moon2]][axis]) {\n velocities[moons[moon1]][axis]--;\n velocities[moons[moon2]][axis]++;\n }\n if (positions[moons[moon1]][axis] < positions[moons[moon2]][axis]) {\n velocities[moons[moon1]][axis]++;\n velocities[moons[moon2]][axis]--;\n }\n }\n }\n }\n }\n\n function applyVelocity () {\n for (const moon of moons) {\n for (const axis of axes) {\n positions[moon][axis] += velocities[moon][axis];\n }\n }\n }\n\n // PART 2 UTILITY FUNCTIONS\n function GCD (num, denom) { // uses Euclidean algorithm (https://en.wikipedia.org/wiki/Euclidean_algorithm)\n num = Math.abs(num);\n denom = Math.abs(denom);\n return denom ? GCD(denom, num % denom) : num; // credit to Phrogz (https://stackoverflow.com/questions/4652468/is-there-a-javascript-function-that-reduces-a-fraction)\n }\n\n function LCM (num1, num2) {\n return (!num1 || !num2) ? 0 : Math.abs((num1 * num2)) / GCD(num1, num2); // credit to w3resource (https://www.w3resource.com/javascript-exercises/javascript-math-exercise-10.php)\n }\n\n function stringifyState (axis) { // stringify all positions and velocities data for this axis\n let output = '';\n for (const moon of moons) {\n output += `${positions[moon][axis]},${velocities[moon][axis]}`; // the format doesn't matter, as long as unique states lead to unique string results\n }\n return output;\n }\n\n // INITIALIZATIONS: POSITIONS AND VELOCITIES\n const positions = {};\n for (const moon of moons) positions[moon] = {...initialPositions[moon]}; // IMPORTANT: make deep copy of initialPositions\n\n const velocities = {};\n for (const moon of moons) velocities[moon] = {x: 0, y: 0, z: 0}; // the problem provides that the default velocities are 0 in each axis\n\n // PART 2 INITIALIZATIONS: THE KEY IS THAT STATES BETWEEN AXES NEVER AFFECT ONE ANOTHER. THUS, THE STATE OF EVERY AXIS IS KEPT SEPARATE, UNTIL INDIVIDUAL AXIS PERIODS ARE FOUND. THEN, CALCULATE LCM.\n const initialStates = {}; // each key is an axis, and each value is that axis's initial stringified state\n const periods = {}; // these begin as undefined and we will stop part 2 once all of these are defined\n for (const axis of axes) {\n initialStates[axis] = stringifyState(axis); // initial states appear at i = 0 (note that the for loop iterates i from 1 .. steps)\n periods[axis] = undefined;\n }\n\n // SIMULATE UP TO `steps` ITERATIONS\n for (let i = 1; i <= steps; i++) { // part 2 deals with step numbers, so counting from 1 .. steps is easier than 0 ... steps\n applyGravity();\n applyVelocity();\n\n if (part === 2) {\n for (const axis of axes) {\n currentState = stringifyState(axis); // calculate the stringified state for each axis\n if (!periods[axis] && currentState === initialStates[axis]) { // if the period of this axis has not yet been found, but the current state matches the initial state...\n periods[axis] = i; // ... then now we know the period is the current step #, i\n }\n }\n if (!(Object.values(periods).includes(undefined))) break; // IMPORTANT: once all periods have been found, break!!! otherwise, infinite loop\n }\n }\n\n // PART 1 VS PART 2\n if (part === 1) {\n\n const energies = {};\n for (const moon of moons) energies[moon] = {potential: 0, kinetic: 0, total: 0}; // set up initial energies to 0\n let totalEnergy = 0;\n\n for (const moon of moons) {\n energies[moon].potential = Math.abs(positions[moon].x) + Math.abs(positions[moon].y) + Math.abs(positions[moon].z);\n energies[moon].kinetic = Math.abs(velocities[moon].x) + Math.abs(velocities[moon].y) + Math.abs(velocities[moon].z);\n energies[moon].total = energies[moon].potential * energies[moon].kinetic;\n totalEnergy += energies[moon].total;\n }\n\n return [totalEnergy, energies];\n\n } else {\n\n const periodValues = Object.values(periods); // now we only care about the period values for the three axes\n return [periodValues, LCM(LCM(periodValues[0], periodValues[1]), periodValues[2])]; // get the LCM of all period values (run LCM on the first two values, then run again with the third)\n\n }\n}", "function pos_luna(njd){\n\n // by Salvatore Ruiu Irgoli-Sardegna (Italy) ottobre 2010.\n // funzione per il calcolo della posizione della Luna.\n // njd= numero dei giorni giuliani per il T.U. di Greenwich.\n // coordinate equatoriali geocentriche per l'equinozio della data.\n\nvar T=(njd-2415020.0)/36525;\n\nvar L1=270.434164+481267.8831*T-0.001133*T*T+0.0000019*T*T*T; // longitudine media.\n\nvar M=358.475833+35999.04975*T-0.000150*T*T-0.0000033*T+T*T; // anomalia media del Sole\n\nvar M1=296.104608+477198.8491*T+0.009192*T*T+0.0000144*T*T*T; // anomalia media della Luna\n\nvar D=350.737486+445267.1142*T-0.001436*T*T+0.0000019*T*T*T; // elongazione media della Luna\n\nvar F=11.250889+483202.0251*T-0.003211*T*T-0.0000003*T*T*T; // distanza media della Luna dal suo nodo ascendente.\n\nvar N=259.183275-1934.1420*T+0.002078*T*T+0.0000022*T*T*T; // longitudine media del nodo ascendente della Luna.\n\n// termini additivi di correzione.\n\nvar Delta=0.003964*Math.sin(Rad(346.560+132.870*T-0.0091731*T*T));\n\nL1=L1+0.000233*Math.sin(Rad(51.2+20.2*T))+Delta;\n M= M-0.001778*Math.sin(Rad(51.2+20.2*T));\nM1=M1+0.000817*Math.sin(Rad(51.2+20.2*T))+Delta;\n D= D+0.002011*Math.sin(Rad(51.2+20.2*T))+Delta;\n\nL1=L1+0.001964*Math.sin(Rad(N));\nM1=M1+0.002541*Math.sin(Rad(N));\n D= D+0.001964*Math.sin(Rad(N));\n F= F-0.024691*Math.sin(Rad(N));\n F= F-0.004328*Math.sin(Rad(N+275.05-2.30*T));\n F= F+Delta;\n\nvar e=1-0.002495*T-0.00000752*T*T;\n\n// Calcola la Longitudine ecclittica.\n\nvar Long=L1+6.288750*Math.sin(Rad(M1))\n +1.274018*Math.sin(Rad(2*D-M1))\n +0.658309*Math.sin(Rad(2*D))\n +0.213616*Math.sin(Rad(2*M1))\n -0.185596*Math.sin(Rad(M))*e\n -0.114336*Math.sin(Rad(2*F))\n +0.058793*Math.sin(Rad(2*D-2*M1))\n +0.057212*Math.sin(Rad(2*D-M-M1))*e\n +0.053320*Math.sin(Rad(2*D+M1))\n +0.045874*Math.sin(Rad(2*D-M))*e\n +0.041024*Math.sin(Rad(M1-M))*e\n -0.034718*Math.sin(Rad(D))\n -0.030465*Math.sin(Rad(M+M1))*e\n +0.015326*Math.sin(Rad(2*D-2*F))\n -0.012528*Math.sin(Rad(2*F+M1))\n -0.010980*Math.sin(Rad(2*F-M1))\n +0.010674*Math.sin(Rad(4*D-M1))\n +0.010034*Math.sin(Rad(3*M1))\n +0.008548*Math.sin(Rad(4*D-2*M1))\n -0.007910*Math.sin(Rad(M-M1+2*D))*e\n -0.006783*Math.sin(Rad(2*D+M))*e\n +0.005162*Math.sin(Rad(M1-D))\n -0.005000*Math.sin(Rad(M+D))*e\n +0.004049*Math.sin(Rad(M1-M+2*D))*e\n +0.003996*Math.sin(Rad(2*M1+2*D))\n +0.003862*Math.sin(Rad(4*D))\n +0.003665*Math.sin(Rad(2*D-3*M1))\n +0.002695*Math.sin(Rad(2*M1-M))*e\n +0.002602*Math.sin(Rad(M1-2*F-2*D))\n +0.002396*Math.sin(Rad(2*D-M-2*M1))*e\n -0.002349*Math.sin(Rad(M1+D))\n +0.002249*Math.sin(Rad(2*D-2*M))*e*e\n -0.002125*Math.sin(Rad(2*M1+M))*e \n -0.002079*Math.sin(Rad(2*M))*e*e \n +0.002059*Math.sin(Rad(2*D-M1-2*M))*e*e\n -0.001773*Math.sin(Rad(M1+2*D-2*F))\n -0.001595*Math.sin(Rad(2*F+2*D))\n +0.001220*Math.sin(Rad(4*D-M-M1))*e\n -0.001110*Math.sin(Rad(2*M1+2*F))\n +0.000892*Math.sin(Rad(M1-3*D))\n -0.000811*Math.sin(Rad(M+M1+2*D))*e\n +0.000761*Math.sin(Rad(4*D-M-2*M1))*e\n +0.000717*Math.sin(Rad(M1-2*M))*e*e\n +0.000704*Math.sin(Rad(M1-2*M-2*D))*e*e\n +0.000693*Math.sin(Rad(M-2*M1+2*D))*e\n +0.000598*Math.sin(Rad(2*D-M-2*F))*e\n +0.000550*Math.sin(Rad(M1+4*D))\n +0.000538*Math.sin(Rad(4*M1))\n +0.000521*Math.sin(Rad(4*D-M))*e\n +0.000486*Math.sin(Rad(2*M1-D));\n \n// Calcolo della Latitudine ecclittica.\n\nvar Beta= 5.128189*Math.sin(Rad(F))\n +0.280606*Math.sin(Rad(M1+F))\n +0.277693*Math.sin(Rad(M1-F))\n +0.173238*Math.sin(Rad(2*D-F))\n +0.055413*Math.sin(Rad(2*D+F-M1))\n +0.046272*Math.sin(Rad(2*D-F-M1))\n +0.032573*Math.sin(Rad(2*D+F))\n +0.017198*Math.sin(Rad(2*M1+F))\n +0.009267*Math.sin(Rad(2*D+M1-F))\n +0.008823*Math.sin(Rad(2*M1-F))\n +0.008247*Math.sin(Rad(2*D-M-F))*e\n +0.004323*Math.sin(Rad(2*D-F-2*M1))\n +0.004200*Math.sin(Rad(2*D+F+M1))\n +0.003372*Math.sin(Rad(F-M-2*D))*e\n +0.002472*Math.sin(Rad(2*D+F-M-M1))*e\n +0.002222*Math.sin(Rad(2*D+F-M))*e\n +0.002072*Math.sin(Rad(2*D-F-M-M1))*e\n +0.001877*Math.sin(Rad(F-M+M1))*e\n +0.001828*Math.sin(Rad(4*D-F-M1))\n -0.001803*Math.sin(Rad(F+M))*e\n -0.001750*Math.sin(Rad(3*F))\n +0.001570*Math.sin(Rad(M1-M-F))*e\n -0.001487*Math.sin(Rad(F+D))\n -0.001481*Math.sin(Rad(F+M+M1))*e\n +0.001417*Math.sin(Rad(F-M-M1))*e\n +0.001350*Math.sin(Rad(F-M))*e\n +0.001330*Math.sin(Rad(F-D))\n +0.001106*Math.sin(Rad(F+3*M1))\n +0.001020*Math.sin(Rad(4*D-F))\n +0.000833*Math.sin(Rad(F+4*D-M1))\n +0.000781*Math.sin(Rad(M1-3*F))\n +0.000670*Math.sin(Rad(F+4*D-2*M1))\n +0.000606*Math.sin(Rad(2*D-3*F))\n +0.000597*Math.sin(Rad(2*D+2*M1-F))\n +0.000492*Math.sin(Rad(2*D+M1-M-F))*e\n +0.000450*Math.sin(Rad(2*M1-F-2*D))\n +0.000439*Math.sin(Rad(3*M1-F))\n +0.000423*Math.sin(Rad(F+2*D+2*M1))\n +0.000422*Math.sin(Rad(2*D-F-3*M1))\n -0.000367*Math.sin(Rad(M+F+2*D-M1))*e\n -0.000353*Math.sin(Rad(M+F+2*D))*e\n +0.000331*Math.sin(Rad(F+4*D))\n +0.000317*Math.sin(Rad(2*D+F-M+M1))*e\n +0.000306*Math.sin(Rad(2*D-2*M-F))*e*e\n -0.000283*Math.sin(Rad(M1+3*F));\n\n var omega1=0.0004664*Math.cos(Rad(N));\n var omega2=0.0000754*Math.cos(Rad(N+275.05-2.30));\n\n var Lat=Beta*(1-omega1-omega2); // latitudine ecclittica.\n\n // Calcolo della parallasse.\n\n var parallasse=0.950724\n +0.051818*Math.cos(Rad(M1))\n +0.009531*Math.cos(Rad(2*D-M1))\n +0.007843*Math.cos(Rad(2*D))\n +0.002824*Math.cos(Rad(2*M1))\n +0.000857*Math.cos(Rad(2*D+M1))\n +0.000533*Math.cos(Rad(2*D-M))*e\n +0.000401*Math.cos(Rad(2*D-M-M1))*e\n +0.000320*Math.cos(Rad(M1-M))*e\n -0.000271*Math.cos(Rad(D))\n -0.000264*Math.cos(Rad(M1+M))*e\n -0.000198*Math.cos(Rad(2*F-M1))\n +0.000173*Math.cos(Rad(3*M1))\n +0.000167*Math.cos(Rad(4*D-M1))\n -0.000111*Math.cos(Rad(M))*e\n +0.000103*Math.cos(Rad(4*D-2*M1))\n -0.000084*Math.cos(Rad(2*M1-2*D))\n -0.000083*Math.cos(Rad(2*D+M))*e\n +0.000079*Math.cos(Rad(2*D+2*M1))\n +0.000072*Math.cos(Rad(4*D))\n +0.000064*Math.cos(Rad(2*D-M+M1))*e\n -0.000063*Math.cos(Rad(2*D+M-M1))*e\n +0.000041*Math.cos(Rad(M+D))*e\n +0.000035*Math.cos(Rad(2*M1-M))*e\n -0.000033*Math.cos(Rad(3*M1-2*D))\n -0.000030*Math.cos(Rad(M1+D))\n -0.000029*Math.cos(Rad(2*F-2*D))\n -0.000029*Math.cos(Rad(2*M1+M))*e\n +0.000026*Math.cos(Rad(2*D-2*M))*e*e\n -0.000023*Math.cos(Rad(2*F-2*D+M1))\n +0.000019*Math.cos(Rad(4*D-M-M1))*e;\n\n Long=gradi_360(Long); // La longitudine all'interno dell'intervallo 0-360.\n\n var dati_luna=trasf_ecli_equa(njd,Long,Lat); // calcola le coordinate equatoriali geocentriche.\n\n // dati del Sole.\n\n var dat_sole=pos_sole(njd); // calcola la longitudine del sole\n var Long_sole=dat_sole[2]; // longitudine vera del sole.\n \n // CALCOLO DELLA FASE E DELL'ELONGAZIONE\n\n var Elongazione=elong(dati_luna[0],dati_luna[1],dat_sole[0],dat_sole[1]); // elongazione in gradi dal Sole.\n\n var Fase_luna=0.5*(1-Math.cos(Rad(Elongazione))); // FASE\n \n var dist_luna=6378.14/Math.sin(Rad(parallasse));\n dist_luna=dist_luna.toFixed(0); // Distanza in Km.\n\n var dim_app=Math.atan(3476.2/dist_luna); \n dim_app=Rda(dim_app)*3600;\n dim_app=dim_app.toFixed(2); // Diametro apparente in secondi d'arco.\n\n // elenco delle variabili restituite dalla funzione [pos_luna].\n\n // dati_luna[0]= ascensione retta già in ore decimali (diviso per 15).\n // dati_luna[1]= declinazione in gradi sessadecimali.\n dati_luna[2]= Long; // in gradi sessadecimali.\n dati_luna[3]= Fase_luna; // fase lunare.\n dati_luna[4]= Elongazione; // elongazione in gradi sessadecimali.\n dati_luna[5]= parallasse; // parallasse della Luna in gradi. \n dati_luna[6]= dim_app; // diametro apparente in secondi d'arco.\n dati_luna[7]= dist_luna; // distanza della Luna in Km. \n\n return dati_luna;\n\n}", "function check_possible_move() {\n var value1 = -1; \n var value2 = -1; \n var new_hand1 = [];\n\n if (turn0 == 0) {\n turn0++;\n return 0;\n }\n if (liste.length > 0) {\n value1 = liste[0].nb; \n }\n if (liste.length >= 2) {\n value2 = liste[liste.length - 1].nb;\n }\n //console.log(\"value 2 :\",value2);\n //console.log(\"value 1 :\",value1);\n if (value1 != -1 && value2 != -1) {\n // console.log(domino[value1].side1);\n //console.log(domino[value2].side2);\n }\n for (var i = 0; i < liste.length; i++) {\n\n }\n for (var i = 0; i <= 27; i++) {\n if (turn == 0 && domino[i].hand == 2) {\n console.log(\"je suis ici\");\n if (domino[value1].fside == 1 && \n (domino[i].side1 == domino[value1].side1 || \n domino[i].side2 == domino[value1].side1)) {\n console.log(domino[i]);\n domino[i].possible = 1;\n console.log(\"OUI11\");\n } \n if (value2 != -1 && domino[value2].fside == 1 && \n (domino[i].side1 == domino[value2].side1 || \n domino[i].side2 == domino[value2].side1)) {\n console.log(domino[i]);\n domino[i].possible = 1;\n console.log(\"OUI12\");\n }\n if (domino[value1].fside == 2 && \n (domino[i].side1 == domino[value1].side2 || \n domino[i].side2 == domino[value1].side2)) {\n console.log(domino[i]);\n domino[i].possible = 1;\n console.log(\"OUI13\");\n } \n if (value2 != -1 && domino[value2].fside == 2 && \n (domino[i].side1 == domino[value2].side2 || \n domino[i].side2 == domino[value2].side2)) {\n console.log(domino[i]);\n domino[i].possible = 1;\n console.log(\"OUI14\");\n }\n }\n if (turn == 0 && domino[i].hand == 1) {\n if (domino[value1].fside == 1 && \n (domino[i].side1 == domino[value1].side1 || \n domino[i].side2 == domino[value1].side1)) {\n console.log(domino[i]);\n domino[i].possible = 1;\n console.log(\"O\");\n } \n if (value2 != -1 && domino[value2].fside == 1 && \n (domino[i].side1 == domino[value2].side1 || \n domino[i].side2 == domino[value2].side1)) {\n console.log(domino[i]);\n domino[i].possible = 1;\n console.log(\"U\");\n }\n if (domino[value1].fside == 2 && \n (domino[i].side1 == domino[value1].side2 || \n domino[i].side2 == domino[value1].side2)) {\n console.log(domino[i]);\n domino[i].possible = 1;\n console.log(\"I\");\n } \n if (value2 != -1 && domino[value2].fside == 2 && \n (domino[i].side1 == domino[value2].side2 || \n domino[i].side2 == domino[value2].side2)) {\n console.log(domino[i]);\n domino[i].possible = 1;\n console.log(\"4\");\n }\n }\n }\n}", "function MoverHeuristico(){\n //Limpieza del tablero por cada iteracion\n for(var i =0; i< tx;i++){\n for(var j =0; j<ty;j++){\n console.log(document.getElementById(i+ \",\" + j).style.backgroundColor)\n if(document.getElementById(i+ \",\" + j).style.backgroundColor == \"rgb(0, 153, 255)\"){\n document.getElementById(i+ \",\" + j).style.backgroundColor = \"rgb(209, 209, 209)\"\n }\n \n }\n }\n \n //Espliteando las posiciones de los agentes y la meta para poder asignarlas luego\n var xinit = parseInt(idAgente2.split(\",\")[0]);\n var yinit = parseInt(idAgente2.split(\",\")[1]);\n var xid1 = parseInt(idAgente.split(\",\")[0]);\n var yid1 = parseInt(idAgente.split(\",\")[1]);\n var xMeta = parseInt(idMeta.split(\",\")[0]);\n var yMeta = parseInt(idMeta.split(\",\")[1]);\n\n //Instancia de la matriz en la cual se va a calcular.\n var grid = new PF.Grid(tx,ty);\n var finder = new PF.AStarFinder();\n\n //Meto los lugares que no son visitables\n grid.setWalkableAt(xMeta, yMeta, true);\n \n //Meto los lugares que no son visitables\n grid.setWalkableAt(xid1, yid1, true);\n\n //Bucle para que las paredes se metan al grid\n for(var i =0; i< tx; i++){\n for(var j=0; j<ty; j++){\n \n if(matriz2[j][i] == pared2){\n //lugares no transitables\n grid.setWalkableAt(i,j,false);\n }else {\n grid.setWalkableAt(i,j,true);\n }\n }\n }\n var path = finder.findPath(xinit, yinit, xMeta, yMeta, grid);\n \n //Me retorna un path que es la lista de lugares que se tiene que mover el agente y se lo mando al movimiento\n MoverAgenteHeuristico(path);\n \n}", "function checkObjectives() {\n // A Humble Beginning (1565 - 1650)\n if (((population.colonist.number * population.colonist.rate) + ((population.slave.number / population.slave.increment) * population.slave.rate) >= 10) && (population.merchant.rate2 >= 5)) {\n timePeriod[0].tracker[0] = 0;\n }\n if (population.number >= 50000) {\n timePeriod[0].tracker[2] = 0;\n }\n \n // War Is Too Expensive (1763 - 1775)\n if (population.minutemen.number >= 100) {\n timePeriod[2].tracker[3] = 0;\n }\n if (currency.colonialNotes.amount >= 2000000) {\n timePeriod[2].tracker[4] = 0;\n }\n}", "function esMayor05(){\n if (obtenerAleatorio()> 0.5) {\n return true;\n }else {\n return false;\n }\n}", "function majAffichage () {\n\tif (win) {\n\t\tdocument.getElementById(\"affichage\").innerHTML = \"Victoire du joueur \"+joueur+\" !\";\n\t\tanimationVictoire ();\n\t}\n\telse if (!win && casesJouees.length==9) {\n\t\tdocument.getElementById(\"affichage\").innerHTML = \"Egalite entre les joueurs !\";\n\t}\n\telse if (joueur==1) {\n\t\tdocument.getElementById(\"affichage\").innerHTML = \"Tour du joueur 2\";\n\t}\n\telse {\n\t\tdocument.getElementById(\"affichage\").innerHTML = \"Tour du joueur 1\";\n\t}\n}", "function C010_Revenge_SidneyJennifer_MasturbateJennifer() {\n\n\t// Doesn't work if she's wearing a chastity belt, with the egg and 3 tries, she will orgasm\n\tCurrentTime = CurrentTime + 50000;\n\tOverridenIntroImage = \"\";\n\tif (!ActorIsChaste()) {\n\t\tC010_Revenge_SidneyJennifer_MastubateCount++;\n\t\tif (ActorHasInventory(\"VibratingEgg\")) {\n\t\t\tif ((C010_Revenge_SidneyJennifer_MastubateCount >= 3) && !C010_Revenge_SidneyJennifer_OrgasmDone) {\n\t\t\t\tActorAddOrgasm();\n\t\t\t\tActorChangeAttitude(1, 0);\n\t\t\t\tC010_Revenge_SidneyJennifer_OrgasmDone = true;\n\t\t\t\tOverridenIntroImage = \"HallwayFloorOrgasm.jpg\";\n\t\t\t\tOverridenIntroText = GetText(\"MasturbateJenniferOrgasm\");\n\t\t\t} else OverridenIntroText = GetText(\"MasturbateJenniferEgg\");\n\t\t} else OverridenIntroText = GetText(\"MasturbateJenniferNoEgg\");\n\t}\n\n}", "function tiempoJugadores() {\n\n var ms = tiempo * 60000;\n //Primero guarda cuanto aguanta el j1\n if (partidas == 1)\n tj1 = (ms - game.time.events.duration) / 1000;\n\n //Luego cuanto tarda el j2\n else\n tj2 = (ms - game.time.events.duration) / 1000;\n\n}", "function indovina(){\n\n gino = get(posIniX, posIniY, beholder.width, beholder.height);\n classifier.classify(gino, gotResult);\n mappa = aCheAssimiglia(gino, daMappare);\n\n}", "function andarInimigo(item, indice, inimigos){\n\tswitch(inimigos[indice].getDirecao()){\n\tcase(1): // Andar para leste\n\t\tinimigos[indice].setX(inimigos[indice].getX()-jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tbreak;\n\tcase(2): // Andar para oeste\n\t\tinimigos[indice].setX(inimigos[indice].getX()+jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tbreak;\n\tcase(3): // Andar para norte\n\t\tinimigos[indice].setY(inimigos[indice].getY()-jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tbreak;\n\tcase(4): // Andar para sul\n\t\tinimigos[indice].setY(inimigos[indice].getY()+jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tbreak;\n\tcase(5): // Andar para noroeste\n\t\tinimigos[indice].setX(inimigos[indice].getX()-jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tinimigos[indice].setY(inimigos[indice].getY()-jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tbreak;\n\tcase(6): // Andar para nordeste\n\t\tinimigos[indice].setX(inimigos[indice].getX()+jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tinimigos[indice].setY(inimigos[indice].getY()-jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tbreak;\n\tcase(7): // Andar para sudoeste\n\t\tinimigos[indice].setX(inimigos[indice].getX()-jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tinimigos[indice].setY(inimigos[indice].getY()+jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tbreak;\n\tcase(8): // Andar para sudeste\n\t\tinimigos[indice].setX(inimigos[indice].getX()+jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tinimigos[indice].setY(inimigos[indice].getY()+jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t\tbreak;\n\tdefault:\n\t \tinimigos[indice].setX(inimigos[indice].getX()-jogador.getVelocidadeMax()*inimigos[indice].getVelocidade());\n\t \tbreak;\n\t}\n}", "function afase_luna(njd){\n\n // calcola l'angolo di fase della luna per la data (njd)\n // gennaio 2012\n\n var dati_luna=pos_luna(njd); // recupero fase/elongazione (1)\n var dati_sole=pos_sole(njd);\n\n var elongazione1=dati_luna[4]; // elongazione in gradi sessadecimali.\n var dist_luna=dati_luna[7]/149597870; \n var dist_sole=dati_sole[4]; // distanza del sole in UA.\n\n elongazione=Math.abs(elongazione1)*1;\n\n var dist_sl=dist_luna*dist_luna+dist_sole*dist_sole-2*dist_luna*dist_sole*Math.cos(Rad(elongazione)); // distanza sole-luna\n dist_sl=Math.sqrt(dist_sl);\n\n // calcolo dell'angolo di fase in gradi . \n\n var Dpt= dist_luna; // distanza pianeta-terra.\n var Dts= dist_sole; // distanza terra-sole.\n var Dps= dist_sl; // distanza pianeta-sole.\n\n // teorema del coseno\n\n var delta_fase=(Dts*Dts+Dps*Dps-Dpt*Dpt)/(2*Dps*Dts);\n delta_fase=Math.acos(delta_fase); \n delta_fase=Rda(delta_fase);\n\n var angolo_fase=180-elongazione-delta_fase; // angolo di fase in gradi.\n\n if(elongazione1<0) {angolo_fase=-angolo_fase; }\n\n return angolo_fase;\n\n}", "get youthfulness() {\n let n = 0;\n let currentVampire = this;\n while (currentVampire.creator !== null && n < 8) {\n currentVampire = currentVampire.creator;\n n++;\n }\n return n;\n }", "function C007_LunchBreak_Natalie_DomMasturbate() {\r\n if (!ActorHasInventory(\"Rope\")) {\r\n OveridenIntroText = GetText(\"NoMasturbate\");\r\n }\r\n if (ActorHasInventory(\"Rope\")) {\r\n CurrentTime = CurrentTime + 60000;\r\n C007_LunchBreak_Natalie_MasturbateCount++;\r\n if (ActorHasInventory(\"VibratingEgg\")) {\r\n C007_LunchBreak_Natalie_MasturbateCount++;\r\n }\r\n if ((C007_LunchBreak_Natalie_MasturbateCount >= 5) && (C007_LunchBreak_Natalie_OrgasmDone < 1)) {\r\n OveridenIntroText = GetText(\"NatalieOrgasm1\");\r\n ActorAddOrgasm();\r\n ActorChangeAttitude(0, 1);\r\n C007_LunchBreak_Natalie_OrgasmDone++;\r\n }\r\n if ((C007_LunchBreak_Natalie_MasturbateCount >= 9) && (C007_LunchBreak_Natalie_OrgasmDone < 2)) {\r\n OveridenIntroText = GetText(\"NatalieOrgasm2\");\r\n ActorAddOrgasm();\r\n ActorChangeAttitude(2, 1);\r\n C007_LunchBreak_Natalie_OrgasmDone++;\r\n }\r\n }\r\n C007_LunchBreak_Natalie_TimeLimit()\r\n}", "function mostraNotas(){}", "function getMovementWay() {\n\tfor(var i=ABSCISSA.length;i--;) {\n\t\tmovements[i] = camera.position.getComponent(i)>positionFinal[i] ? -1 : 1;\t\n\t\trotation[i] = camera.rotation.toVector3().getComponent(i)>rotationFinal[i] ? -1 : 1;\n\t}\n}", "function pos_pianeticr(njd,np){\n // by Salvatore Ruiu Irgoli-Sardegna (Italy) settembre 2010\n // termini di correzione per i pianeti Giove e Saturno.\n // np=numero identificativo del pianeta.\n\n var T=(njd-2415020.0)/36525;\n\n M=358.47583+35999.049750*T-0.000150*T*T-0.0000033*T*T*T; // Sole.\n\n M1=102.27938+149472.51529*T+0.000007*T*T; // Mercurio.\n M2=212.60322+ 58517.80387*T+0.001286*T*T; // Venere.\n M4=319.51913+ 19139.85475*T+0.000181*T*T; // Marte.\n M5=225.32833+ 3034.69202*T-0.000722*T*T; // Giove.\n M6=175.46622+ 1221.55147*T-0.000502*T*T; // Saturno.\n \n \n \n var Delta_LP=0; // termini correzione di lungo periodo.\n //var Delta_L=0; // correzione per la longitudine.\n var Delta_R=0; // correzione per il raggio vettore.\n\n var Delta_LL=0; // correzione per la longitudine.\n var Delta_P=0; // correzione per il perielio.\n var Delta_AS=0; // correzione semiasse maggiore.\n var Delta_EC=0; // correzione eccentricità.\n var Delta_MM=0; // correzione anomalia media.\n var Delta_LAT_ELIO=0; // correzione latitudine eliocentrica.\n \n\n// Correzioni per Mercurio - Perturbazioni in longitudine.\n// Da aggiungere dopo aver risolto l'E.Keplero\n\n if (np==0) {\n\n // longitudine\n\n Delta_LL=0.00204*Math.cos(Rad(5*M2-2*M1+12.220))\n +0.00103*Math.cos(Rad(2*M2-M1-160.6920))\n +0.00091*Math.cos(Rad(2*M5-M1-37.00300))\n +0.00078*Math.cos(Rad(5*M2-3*M1+10.137));\n\n // perturbazioni in raggio vettore\n\n Delta_R=0.000007525*Math.cos(Rad(2*M5-M1+53.013))\n +0.000006802*Math.cos(Rad(5*M2-3*M1-259.918))\n +0.000005457*Math.cos(Rad(2*M2-2*M1-71.188))\n +0.000003569*Math.cos(Rad(5*M2-M1-77.75));\n \n }\n\n// Correzioni per Venere -Perturbazioni in longitudine. \n// Delta_LP da aggiungere alla longitudine e anomalia media prima di aver risolto l'E.Keplero.\n// gli altri 2 termini dopo aver risolto l'E.Keplero.\n\nelse if(np==1) {\n\n // longitudine e anomalia media\n\n Delta_LP=0.00077*Math.sin(Rad(237.24+150.27*T));\n Delta_MM=Delta_LP;\n\n // longitudine\n\n Delta_LL=0.00313*Math.cos(Rad(2*M-2*M2-148.225))\n +0.00198*Math.cos(Rad(3*M-3*M2+2.565))\n +0.00136*Math.cos(Rad(M-M2-119.107))\n +0.00096*Math.cos(Rad(3*M-2*M2-135.912))\n +0.00082*Math.cos(Rad(M5-M2-208.087));\n\n // perturbazioni in raggio vettore\n\n Delta_R=0.000022501*Math.cos(Rad(2*M-2*M2-58.208))\n +0.000019045*Math.cos(Rad(3*M-3*M2+92.577))\n +0.000006887*Math.cos(Rad(M5-M2-118.090))\n +0.000005172*Math.cos(Rad(M-M2-29.110))\n +0.000003620*Math.cos(Rad(5*M-4*M2-104.208))\n +0.000003283*Math.cos(Rad(4*M-4*M2+63.513))\n +0.000003074*Math.cos(Rad(2*M5-2*M2-55.167));\n\n}\n\n// Correzioni per la Terra\n\nelse if (np==2) {\n\n Delta_LP=0;\n\n // correzioni ***************\n\n var A=153.23+22518.7541*T;\n var B=216.57+45037.5082*T;\n var C=312.69+32964.3577*T;\n var D=350.74+445267.1142*T-0.00144*T*T;\n var E=231.19+20.20*T;\n var H=353.40+65928.7155*T;\n\n // angoli in radianti.\n\n A=Rad(A); \n B=Rad(B); \n C=Rad(C); \n D=Rad(D); \n E=Rad(E); \n H=Rad(H); \n\n // correzione per la longitudine.\n\n var Delta_LL=0.00134*Math.cos(A)\n +0.00154*Math.cos(B)\n +0.00200*Math.cos(C)\n +0.00179*Math.sin(D)\n +0.00178*Math.sin(E);\n\n // correzioni per il raggio vettore.\n\n var Delta_R=0.00000543*Math.sin(A)\n +0.00001575*Math.sin(B)\n +0.00001627*Math.sin(C)\n +0.00003076*Math.cos(D) \n +0.00000927*Math.sin(H);\n \n}\n\n// correzioni per il pianeta Marte ******************************** INIZIO .\n// Delta_LP da aggiungere alla longitudine e anomalia media prima di aver risolto l'E.Keplero.\n// gli altri 2 termini dopo aver risolto l'E.Keplero.\n\n\nif (np==3) {\n\n // longitudine e anomalia media\n\nDelta_LP=-0.01133*Math.sin(Rad(3*M5-8*M4+4*M))\n -0.00933*Math.cos(Rad(3*M5-8*M4+4*M)); // termine lungo periodo.\nDelta_MM=Delta_LP;\n\n // longitudine\n\nDelta_LL=0.00705*Math.cos(Rad(M5-M4-48.958))\n +0.00607*Math.cos(Rad(2*M5-M4-118.350))\n +0.00445*Math.cos(Rad(2*M5-2*M4-191.897))\n +0.00388*Math.cos(Rad(M-2*M4+20.495))\n +0.00238*Math.cos(Rad(M-M4+35.097))\n +0.00204*Math.cos(Rad(2*M-3*M4+158.638))\n +0.00177*Math.cos(Rad(3*M4-M2-57.602))\n +0.00136*Math.cos(Rad(2*M-4*M4+154.093))\n +0.00104*Math.cos(Rad(M5+17.618));\n\n // raggio vettore\n\nDelta_R=0.000053227*Math.cos(Rad(M5-M4+41.1306))\n +0.000050989*Math.cos(Rad(2*M5-2*M4-101.9847))\n +0.000038278*Math.cos(Rad(2*M5-M4-98.3292))\n +0.000015996*Math.cos(Rad(M-M4-55.555))\n +0.000014764*Math.cos(Rad(2*M-3*M4+68.622))\n +0.000008966*Math.cos(Rad(M5-2*M4+43.615))\n +0.000007914*Math.cos(Rad(3*M5-2*M4-139.737))\n +0.000007004*Math.cos(Rad(2*M5-3*M4-102.888))\n +0.000006620*Math.cos(Rad(M-2*M4+113.202)) \n +0.000004930*Math.cos(Rad(3*M5-3*M4-76.243))\n +0.000004693*Math.cos(Rad(3*M-5*M4+190.603))\n +0.000004571*Math.cos(Rad(2*M-4*M4+244.702))\n +0.000004409*Math.cos(Rad(3*M5-M4-115.828));\n}\n\n// correzioni per il pianeta Marte ******************************** FINE.\n\n// correzioni per il pianeta Giove ******************************* INIZIO.\n// tutti i termini di Giove sono da aggiungere prima dell'equazione di Keplero\n\n\nif (np==4) {\n\n var X=(T/5)+0.1;\n var P=237.47555+3034.9061*T;\n var Q=265.91650+1222.1139*T;\n var S=243.51721+428.46770*T;\n var V=5*Q-2*P;\n var W=2*P-6*Q+3*S;\n var Z=Q-P;\n\n // ************************* A\n // correzione per la longitudine media da aggiungere prima dell'equazione di Keplero\n // solo per la longitudine media.\n\n Delta_LL=(0.331364-0.010281*X-0.004692*X*X)*Math.sin(Rad(V)) \n +(0.003228-0.064436*X+0.002075*X*X)*Math.cos(Rad(V)) \n -(0.003083+0.000275*X-0.000489*X*X)*Math.sin(Rad(2*V))\n +0.002472*Math.sin(Rad(W))\n +0.013619*Math.sin(Rad(Z))\n +0.018472*Math.sin(Rad(2*Z))\n +0.006717*Math.sin(Rad(3*Z))\n +0.002775*Math.sin(Rad(4*Z))\n +(0.007275-0.001253*X)*Math.sin(Rad(Z))*Math.sin(Rad(Q))\n +0.006417*Math.sin(Rad(2*Z))*Math.sin(Rad(Q))\n +0.002439*Math.sin(Rad(3*Z))*Math.sin(Rad(Q)) \n -(0.033839+0.001125*X)*Math.cos(Rad(Z))*Math.sin(Rad(Q))\n -0.003767*Math.cos(Rad(2*Z))*Math.sin(Rad(Q))\n -(0.035681+0.001208*X)*Math.sin(Rad(Z))*Math.cos(Rad(Q))\n -0.004261*Math.sin(Rad(2*Z))*Math.cos(Rad(Q))\n +0.002178*Math.cos(Rad(Q))\n +(-0.006333+0.001161*X)*Math.cos(Rad(Z))*Math.cos(Rad(Q))\n -0.006675*Math.cos(Rad(2*Z))*Math.cos(Rad(Q))\n -0.002664*Math.cos(Rad(3*Z))*Math.cos(Rad(Q))\n -0.002572*Math.sin(Rad(Z))*Math.sin(Rad(2*Q))\n -0.003567*Math.sin(Rad(2*Z))*Math.sin(Rad(2*Q))\n +0.002094*Math.cos(Rad(Z))*Math.cos(Rad(2*Q))\n +0.003342*Math.cos(Rad(2*Z))*Math.cos(Rad(2*Q));\n\n // correzione per l'anomalia media -- più in fondo nel listato.\n\n // perturbazioni perielio da utilizzare per calcolare M. (vedi in fondo nel listato)\n\n Delta_P=(0.007192-0.003147*X)*Math.sin(Rad(V))\n +(-0.020428-0.000675*X+0.000197*X*X)*Math.cos(Rad(V))\n +(0.007269+0.000672*X)*Math.sin(Rad(Z))*Math.sin(Rad(Q))\n -0.004344*Math.sin(Rad(Q))\n +0.034036*Math.cos(Rad(Z))*Math.sin(Rad(Q))\n +0.005614*Math.cos(Rad(2*Z))*Math.sin(Rad(Q))\n +0.002964*Math.cos(Rad(3*Z))*Math.sin(Rad(Q))\n +0.037761*Math.sin(Rad(Z))*Math.cos(Rad(Q))\n +0.006158*Math.sin(Rad(2*Z))*Math.cos(Rad(Q))\n -0.006603*Math.cos(Rad(Z))*Math.cos(Rad(Q))\n -0.005356*Math.sin(Rad(Z))*Math.sin(Rad(2*Q))\n +0.002722*Math.sin(Rad(2*Z))*Math.sin(Rad(2*Q))\n +0.004483*Math.cos(Rad(Z))*Math.sin(Rad(2*Q))\n -0.002642*Math.cos(Rad(2*Z))*Math.sin(Rad(2*Q))\n +0.004403*Math.sin(Rad(Z))*Math.cos(Rad(2*Q))\n -0.002536*Math.sin(Rad(2*Z))*Math.cos(Rad(2*Q))\n +0.005547*Math.cos(Rad(Z))*Math.cos(Rad(2*Q))\n -0.002689*Math.cos(Rad(2*Z))*Math.cos(Rad(2*Q));\n\n // correzione per l'anomalia media da aggiungere prima dell'equazione di Keplero\n\n var el_orb=orb_plan(njd,4); // recupera l'eccentricità del pianeta.\n var eccent=el_orb[4]; // eccentricità non corretta.\n\n Delta_MM=Delta_LL-(Delta_P/eccent);\n\n\n // semiasse maggiore da aggiungere prima dell'equazione di Keplero.\n\n Delta_AS=-263*Math.cos(Rad(V))\n +205*Math.cos(Rad(Z))\n +693*Math.cos(Rad(2*Z))\n +312*Math.cos(Rad(3*Z))\n +147*Math.cos(Rad(4*Z))\n +299*Math.sin(Rad(Z))*Math.sin(Rad(Q))\n +181*Math.cos(Rad(2*Z))*Math.sin(Rad(Q))\n +204*Math.sin(Rad(2*Z))*Math.cos(Rad(Q))\n +111*Math.sin(Rad(3*Z))*Math.cos(Rad(Q))\n -337*Math.cos(Rad(Z))*Math.cos(Rad(Q))\n -111*Math.cos(Rad(2*Z))*Math.cos(Rad(Q));\n \n Delta_AS=Delta_AS/1000000;\n \n // eccentricità da aggiungere prima dell'equazione di Keplero\n\n Delta_EC=(3606+130*X-43*X*X)*Math.sin(Rad(V))\n +(1289-580*X)*Math.cos(Rad(V))\n -6764*Math.sin(Rad(Z))*Math.sin(Rad(Q))\n -1110*Math.sin(Rad(2*Z))*Math.sin(Rad(Q))\n -224*Math.sin(Rad(3*Z))*Math.sin(Rad(Q))\n -204*Math.sin(Rad(Q))\n +(1284+116*X)*Math.cos(Rad(Z))*Math.sin(Rad(Q))\n +188*Math.cos(Rad(2*Z))*Math.sin(Rad(Q))\n +(1460+130*X)*Math.sin(Rad(Z))*Math.cos(Rad(Q))\n +224*Math.sin(Rad(2*Z))*Math.cos(Rad(Q))\n -817*Math.cos(Rad(Q))\n +6074*Math.cos(Rad(Z))*Math.cos(Rad(Q))\n +992*Math.cos(Rad(2*Z))*Math.cos(Rad(Q))\n +508*Math.cos(Rad(3*Z))*Math.cos(Rad(Q))\n +230*Math.cos(Rad(4*Z))*Math.cos(Rad(Q))\n +108*Math.cos(Rad(5*Z))*Math.cos(Rad(Q))\n -(956+73*X)*Math.sin(Rad(Z))*Math.sin(Rad(2*Q))\n +448*Math.sin(Rad(2*Z))*Math.sin(Rad(2*Q))\n +137*Math.sin(Rad(3*Z))*Math.sin(Rad(2*Q))\n +(-997+108*X)*Math.cos(Rad(Z))*Math.sin(Rad(2*Q))\n +480*Math.cos(Rad(2*Z))*Math.sin(Rad(2*Q))\n +148*Math.cos(Rad(3*Z))*Math.sin(Rad(2*Q))\n +(-956+99*X)*Math.sin(Rad(Z))*Math.cos(Rad(2*Q))\n +490*Math.sin(Rad(2*Z))*Math.cos(Rad(2*Q))\n +158*Math.sin(Rad(3*Z))*Math.cos(Rad(2*Q))\n +179*Math.cos(Rad(2*Q))\n +(1024+75*X)*Math.cos(Rad(Z))*Math.cos(Rad(2*Q))\n -437*Math.cos(Rad(2*Z))*Math.cos(Rad(2*Q))\n -132*Math.cos(Rad(3*Z))*Math.cos(Rad(2*Q));\n\n Delta_EC=Delta_EC/10000000;\n}\n\n// correzioni per il pianeta Giove ********************************* FINE.\n\n// correzioni per il pianeta Saturno ****************************** INIZIO.\n// tutti i termini di Saturno sono da aggiungere prima dell'equazione di Keplero\n// tranne il termine della latitudine eliocentrica\n\n\nif (np==5) {\n\n var X=(T/5)+0.1;\n var P=237.47555+3034.9061*T;\n var Q=265.91650+1222.1139*T;\n var S=243.51721+428.46770*T;\n var V=5*Q-2*P;\n var W=2*P-6*Q+3*S;\n var Z=Q-P;\n var PS=S-Q;\n\n // perturbazioni in longitudine media\n\n Delta_LL=+(-0.814181+0.018150*X+0.016714*X*X)*Math.sin(Rad(V))\n +(-0.010497+0.160906*X-0.004100*X*X)*Math.cos(Rad(V))\n +0.007581*Math.sin(Rad(2*V))\n -0.007986*Math.sin(Rad(W))\n -0.148811*Math.sin(Rad(Z))\n -0.040786*Math.sin(Rad(2*Z))\n -0.015208*Math.sin(Rad(3*Z))\n -0.006339*Math.sin(Rad(4*Z))\n -0.006244*Math.sin(Rad(Q))\n +(0.008931+0.002728*X)*Math.sin(Rad(Z))*Math.sin(Rad(Q))\n -0.016500*Math.sin(Rad(2*Z))*Math.sin(Rad(Q))\n -0.005775*Math.sin(Rad(3*Z))*Math.sin(Rad(Q))\n +(0.081344+0.003206*X)*Math.cos(Rad(Z))*Math.sin(Rad(Q))\n +0.015019*Math.cos(Rad(2*Z))*Math.sin(Rad(Q))\n +(0.085581+0.002494*X)*Math.sin(Rad(Z))*Math.cos(Rad(Q))\n +(0.025328-0.003117*X)*Math.cos(Rad(Z))*Math.cos(Rad(Q))\n +0.014394*Math.cos(Rad(2*Z))*Math.cos(Rad(Q))\n +0.006319*Math.cos(Rad(3*Z))*Math.cos(Rad(Q))\n +0.006369*Math.sin(Rad(Z))*Math.sin(Rad(2*Q))\n +0.009156*Math.sin(Rad(2*Z))*Math.sin(Rad(2*Q))\n +0.007525*Math.sin(Rad(3*PS))*Math.sin(Rad(2*Q))\n -0.005236*Math.cos(Rad(Z))*Math.cos(Rad(2*Q))\n -0.007736*Math.cos(Rad(2*Z))*Math.cos(Rad(2*Q))\n -0.007528*Math.cos(Rad(3*PS))*Math.cos(Rad(2*Q));\n\n // eccentricità\n\n Delta_EC=+(-7927+2548*X+91*X*X)*Math.sin(Rad(V))\n +(13381+1226*X-253*X*X)*Math.cos(Rad(V))\n +(248-121*X)*Math.sin(Rad(2*V))\n -(305+91*X)*Math.cos(Rad(2*V))\n +412*Math.sin(Rad(Z))\n +12415*Math.sin(Rad(Q))\n +(390-617*X)*Math.sin(Rad(Z))*Math.sin(Rad(Q))\n +(165-204*X)*Math.sin(Rad(2*Z))*Math.sin(Rad(Q))\n +26599*Math.cos(Rad(Z))*Math.sin(Rad(Q))\n -4687*Math.cos(Rad(2*Z))*Math.sin(Rad(Q))\n -1870*Math.cos(Rad(3*Z))*Math.sin(Rad(Q))\n -821*Math.cos(Rad(4*Z))*Math.sin(Rad(Q))\n -377*Math.cos(Rad(5*Z))*Math.sin(Rad(Q))\n +497*Math.cos(Rad(2*PS))*Math.sin(Rad(Q))\n +(163-611*X)*Math.cos(Rad(Q))\n -12696*Math.sin(Rad(Z))*Math.cos(Rad(Q))\n -4200*Math.sin(Rad(2*Z))*Math.cos(Rad(Q))\n -1503*Math.sin(Rad(3*Z))*Math.cos(Rad(Q))\n -619*Math.sin(Rad(4*Z))*Math.cos(Rad(Q))\n -268*Math.sin(Rad(5*Z))*Math.cos(Rad(Q))\n -(282+1306*X)*Math.cos(Rad(Z))*Math.cos(Rad(Q))\n +(-86+230*X)*Math.cos(Rad(2*Z))*Math.cos(Rad(Q))\n +461*Math.sin(Rad(2*PS))*Math.cos(Rad(Q))\n -350*Math.sin(Rad(2*Q))\n +(2211-286*X)*Math.sin(Rad(Z))*Math.sin(Rad(2*Q)) \n -2208*Math.sin(Rad(2*Z))*Math.sin(Rad(2*Q))\n -568*Math.sin(Rad(3*Z))*Math.sin(Rad(2*Q))\n -346*Math.sin(Rad(4*Z))*Math.sin(Rad(2*Q))\n -(2780+222*X)*Math.cos(Rad(Z))*Math.sin(Rad(2*Q))\n +(2022+263*X)*Math.cos(Rad(2*Z))*Math.sin(Rad(2*Q))\n +248*Math.cos(Rad(3*Z))*Math.sin(Rad(2*Q))\n +242*Math.sin(Rad(3*PS))*Math.sin(Rad(2*Q))\n +467*Math.cos(Rad(3*PS))*Math.sin(Rad(2*Q))\n -490*Math.cos(Rad(2*Q))\n -(2842+279*X)*Math.sin(Rad(Z))*Math.cos(Rad(2*Q))\n +(128+226*X)*Math.sin(Rad(2*Z))*Math.cos(Rad(2*Q))\n +224*Math.sin(Rad(3*Z))*Math.cos(Rad(2*Q))\n +(-1594+282*X)*Math.cos(Rad(Z))*Math.cos(Rad(2*Q))\n +(2162-207*X)*Math.cos(Rad(2*Z))*Math.cos(Rad(2*Q))\n +561*Math.cos(Rad(3*Z))*Math.cos(Rad(2*Q))\n +343*Math.cos(Rad(4*Z))*Math.cos(Rad(2*Q))\n +469*Math.sin(Rad(3*PS))*Math.cos(Rad(2*Q))\n -242*Math.cos(Rad(3*PS))*Math.cos(Rad(2*Q))\n -205*Math.sin(Rad(Z))*Math.sin(Rad(3*Q))\n +262*Math.sin(Rad(3*Z))*Math.sin(Rad(3*Q))\n +208*Math.cos(Rad(Z))*Math.cos(Rad(3*Q))\n -271*Math.cos(Rad(3*Z))*Math.cos(Rad(3*Q))\n -382*Math.cos(Rad(3*Z))*Math.sin(Rad(4*Q))\n -376*Math.sin(Rad(3*Z))*Math.cos(Rad(4*Q));\n\n Delta_EC=Delta_EC/10000000; \n\n // correzione del perielio\n\n Delta_P=+(0.077108+0.007186*X-0.001533*X*X)*Math.sin(Rad(V))\n +(0.045803-0.014766*X-0.000536*X*X)*Math.cos(Rad(V))\n -0.007075*Math.sin(Rad(Z))\n -0.075825*Math.sin(Rad(Z))*Math.sin(Rad(Q))\n -0.024839*Math.sin(Rad(2*Z))*Math.sin(Rad(Q))\n -0.008631*Math.sin(Rad(3*Z))*Math.sin(Rad(Q))\n -0.072586*Math.cos(Rad(Q))\n -0.150383*Math.cos(Rad(Z))*Math.cos(Rad(Q))\n +0.026897*Math.cos(Rad(2*Z))*Math.cos(Rad(Q))\n +0.010053*Math.cos(Rad(3*Z))*Math.cos(Rad(Q))\n -(0.013597+0.001719*X)*Math.sin(Rad(Z))*Math.sin(Rad(2*Q))\n +(-0.007742+0.001517*X)*Math.cos(Rad(Z))*Math.sin(Rad(2*Q))\n +(0.013586-0.001375*X)*Math.cos(Rad(2*Z))*Math.sin(Rad(2*Q))\n +(-0.013667+0.001239*X)*Math.sin(Rad(Z))*Math.cos(Rad(2*Q))\n +0.011981*Math.sin(Rad(2*Z))*Math.cos(Rad(2*Q))\n +(0.014861+0.001136*X)*Math.cos(Rad(Z))*Math.cos(Rad(2*Q))\n -(0.013064+0.001628*X)*Math.cos(Rad(2*Z))*Math.cos(Rad(2*Q));\n\n\n // correzione per l'anomalia media da aggiungere prima dell'equazione di Keplero\n\n var el_orb=orb_plan(njd,5); // recupera l'eccentricità del pianeta.\n var eccent=el_orb[4]; // eccentricità senza correzione.\n\n Delta_MM=Delta_LL-(Delta_P/eccent);\n\n\n// semiasse maggiore.\n\n Delta_AS=572*X*Math.sin(Rad(V))\n +2933*Math.cos(Rad(V))\n +33629*Math.cos(Rad(Z))\n -3081*Math.cos(Rad(2*Z))\n -1423*Math.cos(Rad(3*Z))\n -671*Math.cos(Rad(4*Z))\n -320*Math.cos(Rad(5*Z))\n +1098*Math.sin(Rad(Q))\n -2812*Math.sin(Rad(Z))*Math.sin(Rad(Q))\n +688*Math.sin(Rad(2*Z))*Math.sin(Rad(Q))\n -393*Math.sin(Rad(3*Z))*Math.sin(Rad(Q))\n -228*Math.sin(Rad(4*Z))*Math.sin(Rad(Q))\n +2138*Math.cos(Rad(Z))*Math.sin(Rad(Q))\n -999*Math.cos(Rad(2*Z))*Math.sin(Rad(Q))\n -642*Math.cos(Rad(3*Z))*Math.sin(Rad(Q))\n -325*Math.cos(Rad(4*Z))*Math.sin(Rad(Q))\n -890*Math.cos(Rad(Q))\n +2206*Math.sin(Rad(Z))*Math.cos(Rad(Q))\n -1590*Math.sin(Rad(2*Z))*Math.cos(Rad(Q))\n -647*Math.sin(Rad(3*Z))*Math.cos(Rad(Q))\n -344*Math.sin(Rad(4*Z))*Math.cos(Rad(Q))\n +2885*Math.cos(Rad(Z))*Math.cos(Rad(Q))\n +(2172+102*X)*Math.cos(Rad(2*Z))*Math.cos(Rad(Q))\n +296*Math.cos(Rad(3*Z))*Math.cos(Rad(Q))\n -267*Math.sin(Rad(2*Z))*Math.sin(Rad(2*Q))\n -778*Math.cos(Rad(Z))*Math.sin(Rad(2*Q))\n +495*Math.cos(Rad(2*Z))*Math.sin(Rad(2*Q))\n +250*Math.cos(Rad(3*Z))*Math.sin(Rad(2*Q))\n -856*Math.sin(Rad(Z))*Math.cos(Rad(2*Q))\n +441*Math.sin(Rad(2*Z))*Math.cos(Rad(2*Q))\n +296*Math.cos(Rad(2*Z))*Math.cos(Rad(2*Q))\n +211*Math.cos(Rad(3*Z))*Math.cos(Rad(2*Q))\n -427*Math.sin(Rad(Z))*Math.sin(Rad(3*Q))\n +398*Math.sin(Rad(3*Z))*Math.sin(Rad(3*Q))\n +344*Math.cos(Rad(Z))*Math.cos(Rad(3*Q))\n -427*Math.cos(Rad(3*Z))*Math.cos(Rad(3*Q));\n \nDelta_AS=Delta_AS/1000000;\n\n\n\n// aggiungere alla latitudine eliocentrica.\n\n Delta_LAT_ELIO= +0.000747*Math.cos(Rad(Z))*Math.sin(Rad(Q))\n +0.001069*Math.cos(Rad(Z))*Math.cos(Rad(Q))\n +0.002108*Math.sin(Rad(2*Z))*Math.sin(Rad(2*Q))\n +0.001261*Math.cos(Rad(2*Z))*Math.sin(Rad(2*Q))\n +0.001236*Math.sin(Rad(2*Z))*Math.cos(Rad(2*Q))\n -0.002075*Math.cos(Rad(2*Z))*Math.cos(Rad(2*Q)); \n\n}\n\n// correzioni per il pianeta Saturno******************************** FINE.\n\n// correzioni per il pianeta Urano******************************** INIZIO.\n\nif (np==6) {\n\n var X=(T/5)+0.1;\n var P=237.47555+3034.9061*T;\n var Q=265.91650+1222.1139*T;\n var S=243.51721+428.46770*T;\n var W=2*P-6*Q+3*S;\n var G=83.76922+218.4901*T;\n var H=2*G-S;\n var Z=S-P;\n var N=S-Q;\n var OM=G-S;\n \n // perturbazioni in longitudine media A\n\n Delta_LP=+(0.864319-0.001583*X)*Math.sin(Rad(H))\n +(0.082222-0.006833*X)*Math.cos(Rad(H))\n +0.036017*Math.sin(Rad(2*H))\n -0.003019*Math.cos(Rad(2*H))\n +0.008122*Math.sin(Rad(W));\n\n var B=0.120303*Math.sin(Rad(H))\n +(0.019472-0.000947*X)*Math.cos(Rad(H))\n +0.006197*Math.sin(Rad(2*H));\n\n // correzione per l'anomalia media di Urano\n\n var el_orb=orb_plan(njd,6); // recupera l'eccentricità del pianeta.\n var eccent=el_orb[4]; // eccentricità senza correzione.\n\n Delta_MM=Delta_LP-(B/eccent);\n\n // eccentricità\n\nDelta_EC=+(-3349+163*X)*Math.sin(Rad(H)) \n +20981*Math.cos(Rad(H))\n +1311*Math.cos(Rad(2*H));\n\nDelta_EC=Delta_EC/10000000;\n\n // correzione semiasse maggiore.\n\nDelta_AS=-0.003825*Math.cos(Rad(H));\n\n // correzione per la longitudine vera.\n\n Delta_LL=+(0.010122-0.000988*X)*Math.sin(Rad(S+N))\n +(-0.038581+0.002031*X-0.001910*X*X)*Math.cos(Rad(S+N))\n +(0.034964-0.001038*X+0.000868*X*X)*Math.cos(Rad(2*S+N))\n +0.005594*Math.sin(Rad(S+3*OM))\n -0.014808*Math.sin(Rad(Z))\n -0.005794*Math.sin(Rad(N))\n +0.002347*Math.cos(Rad(N))\n +0.009872*Math.sin(Rad(OM))\n +0.008803*Math.sin(Rad(2*OM))\n -0.004308*Math.sin(Rad(3*OM));\n\n// aggiungere alla latitudine eliocentrica.\n\n Delta_LAT_ELIO=+(0.000458*Math.sin(Rad(N))-0.000642*Math.cos(Rad(N))-0.000517*Math.cos(Rad(4*OM)))*Math.sin(Rad(S))\n -(0.000347*Math.sin(Rad(N))+0.000853*Math.cos(Rad(N))+0.000517*Math.sin(Rad(4*N)))*Math.cos(Rad(S))\n +0.000403*(Math.cos(Rad(2*OM))*Math.sin(Rad(2*S))+Math.sin(Rad(2*OM))*Math.cos(Rad(2*S))); \n\n// correzione al raggio vettore.\n\nDelta_R=-25948+ (5795*Math.cos(Rad(S))-1165*Math.sin(Rad(S))+1388*Math.cos(Rad(2*S)))*Math.sin(Rad(N))\n +4985*Math.cos(Rad(Z))+(1351*Math.cos(Rad(S))+5702*Math.sin(Rad(S))+1388*Math.sin(Rad(2*S)))*Math.cos(Rad(N))\n -1230*Math.cos(Rad(S))+904*Math.cos(Rad(2*OM))\n +3354*Math.cos(Rad(N))+894*(Math.cos(Rad(OM))-Math.cos(Rad(3*OM)));\n\nDelta_R=Delta_R/1000000;\n \n \n\n}\n// correzioni per il pianeta Urano ************************************ FINE.\n\n// correzioni per il pianeta Nettuno ******************************** INIZIO.\n\nif (np==7) {\n\n var X=(T/5)+0.1;\n var P=237.47555+3034.9061*T;\n var Q=265.91650+1222.1139*T;\n var S=243.51721+428.46770*T;\n var W=2*P-6*Q+3*S;\n var G=83.76922+218.4901*T;\n var H=2*G-S;\n var Z=G-P;\n var N=G-Q;\n var OM=G-S;\n \n // perturbazioni in longitudine media A\n\n Delta_LP=+(-0.589833+0.001089*X)*Math.sin(Rad(H))\n +(-0.056094+0.004658*X)*Math.cos(Rad(H)) \n -0.024286*Math.sin(Rad(2*H));\n\n var B=0.024039*Math.sin(Rad(H))\n -0.025303*Math.cos(Rad(H))\n +0.006206*Math.sin(Rad(2*H))\n -0.005992*Math.cos(Rad(2*H));\n\n// correzione per l'anomalia media di Urano\n\n var el_orb=orb_plan(njd,7); // recupera l'eccentricità del pianeta.\n var eccent=el_orb[4]; // eccentricità senza correzione.\n\n Delta_MM=Delta_LP-(B/eccent);\n\n // eccentricità\n\n Delta_EC=+4389*Math.sin(Rad(H))\n +4262*Math.cos(Rad(H))\n +1129*Math.sin(Rad(2*H))\n +1089*Math.cos(Rad(2*H));\n\n Delta_EC=Delta_EC/10000000;\n\n// correzione semiasse maggiore.\n\n Delta_AS=-817*Math.sin(Rad(H))+8189*Math.cos(Rad(H))+781*Math.cos(Rad(2*H));\n\n Delta_AS=Delta_AS/1000000;\n\n // correzione per la longitudine vera.\n\n Delta_LL=-0.009556*Math.sin(Rad(Z))\n -0.005178*Math.sin(Rad(N))\n +0.002572*Math.sin(Rad(2*OM))\n -0.002972*Math.cos(Rad(2*OM))*Math.sin(Rad(G))\n -0.002833*Math.sin(Rad(2*OM))*Math.cos(Rad(G));\n \n // aggiungere alla latitudine eliocentrica.\n\n Delta_LAT_ELIO=+0.000336*Math.cos(Rad(2*OM))*Math.sin(Rad(G))\n +0.000364*Math.sin(Rad(2*OM))*Math.cos(Rad(G));\n\n // correzione al raggio vettore.\n\n Delta_R=-40596\n +4992*Math.cos(Rad(Z))\n +2744*Math.cos(Rad(N))\n +2044*Math.cos(Rad(OM))\n +1051*Math.cos(Rad(2*OM));\n\nDelta_R=Delta_R/1000000;\n \n\n}\n// correzioni per il pianeta Nettuno ******************************** FINE\n\n\n// variabili correzioni\n// lperiodo, rvett long. assemagg ecc M lat\n var correzioni=new Array(Delta_LP,Delta_R,Delta_LL,Delta_AS,Delta_EC,Delta_MM,Delta_LAT_ELIO);\n\n return correzioni;\n\n}", "function hitungLuasLingkaran(jariJari){\n return 3.14 * jariJari ^ 2 \n}", "function specialCasesRecalc(mission) {\n\t\n}", "function imprimirSiEsMayorEdad(persona){\n if(esMayorDeEdad(persona) ) {\n console.log(`${persona.nombre} es mayor de edad`);\n }\n else{\n console.log(`${persona.nombre} es menor de edad`);\n }\n}", "async function testePionJouable(i, j, login, hote, adversaire){\n \n // si le client est l'adversaire, c'est le blanc\n if(login===adversaire){\n \n let pionIJ=await getPion(i, j, hote, adversaire);\n \n if ((pionIJ===PION_BLANC)||(pionIJ===DAME_BLANC)){\n // pion haut droit\n if ((j<9)&&(i>0)){\n let pion1 = await getPion(i-1, j+1, hote, adversaire);\n if(pion1!=null){\n if(pion1===SANS_PION) return true;\n }\n }\n \n // pion haut gauche\n if ((j>0)&&(i>0)){\n let pion2 = await getPion(i-1, j-1, hote, adversaire);\n if(pion2!=null){\n if(pion2===SANS_PION) return true;\n }\n }\n \n // pion haut droit mangeable\n if ((j<8)&&(i>1)){\n let pion3, pion4;\n pion3 = await getPion(i-2, j+2, hote, adversaire);\n pion4 = await getPion(i-1, j+1, hote, adversaire); \n if ((pion3!=null)&&(pion4!=null)){\n if ((pion3===SANS_PION)&&(pion4===PION_NOIR)) return true;\n }\n }\n \n // pion haut gauche mangeable\n if ((j>1)&&(i>1)){\n let pion5, pion6;\n pion5 = await getPion(i-2, j-2, hote, adversaire);\n pion6 = await getPion(i-1, j-1, hote, adversaire); \n if((pion5===SANS_PION)&&(pion6===PION_NOIR)) return true;\n }\n \n // pion haut droit mangeable\n if ((j<8)&&(i>1)){\n let pion7, pion8;\n pion7 = await getPion(i-2, j+2, hote, adversaire);\n pion8 = await getPion(i-1, j+1, hote, adversaire);\n if ((pion7===SANS_PION)&&(pion8===DAME_NOIR)) return true;\n }\n \n // pion haut gauche mangeable\n if ((j>1)&&(i>1)){\n let pion9, pion10;\n pion9 = await getPion(i-2, j-2, hote, adversaire);\n pion10 = await getPion(i-1, j-1, hote, adversaire);\n if((pion9===SANS_PION)&&(pion10===DAME_NOIR)) return true;\n }\n \n // si c'est une dame (deplacement ou on veut)\n if (pionIJ===DAME_BLANC){\n // pion bas droit\n if ((j<9)&&(i<9)){\n let pion11 = await getPion(i+1, j+1, hote, adversaire);\n if (pion11===SANS_PION) return true; \n }\n \n // pion bas gauche\n if ((j>0)&&(i<9)){\n let pion12 = await getPion(i+1, j-1, hote, adversaire);\n if (pion12===SANS_PION) return true;\n }\n \n // pion bas droit mangeable\n if ((j<8)&&(i<8)){\n let pion13 = await getPion(i+1, j+1, hote, adversaire);\n let pion14 = await getPion(i+2, j+2, hote, adversaire);\n if((pion13===PION_NOIR)&&(pion14===SANS_PION)) return true;\n }\n \n // pion bas gauche mangeable\n if ((j>1)&&(i<8)){\n let pion15 = await getPion(i+1, j-1, hote, adversaire);\n let pion16 = await getPion(i+2, j-2, hote, adversaire); \n if((pion15===PION_NOIR)&&(pion16===SANS_PION)) return true;\n }\n \n // dame bas droit mangeable\n if ((j<8)&&(i<8)){\n let pion17 = await getPion(i+1, j+1, hote, adversaire);\n let pion18 = await getPion(i+2, j+2, hote, adversaire);\n if ((pion17==DAME_NOIR)&&(pion18===SANS_PION)) return true;\n }\n \n // dame bas gauche mangeable\n if ((j>1)&&(i<8)){\n let pion19 = await getPion(i+1, j-1, hote, adversaire);\n let pion20 = await getPion(i+2, j-2, hote, adversaire);\n if((pion19===DAME_NOIR)&&(pion20===SANS_PION)) return true;\n }\n }\n }\n }\n \n // si le client est l'hote, cest le pion noir\n if(login===hote){\n \n let pionIJ=await getPion(i, j, hote, adversaire);\n \n if((pionIJ===PION_NOIR)||(pionIJ===DAME_NOIR)){\n // pion bas droit\n if ((j<9)&&(i<9)){\n let pion1 = await getPion(i+1, j+1, hote, adversaire);\n if(pion1===SANS_PION) return true;\n }\n \n // pion bas gauche\n if ((j>0)&&(i<9)){\n let pion2 = await getPion(i+1, j-1, hote, adversaire);\n if(pion2===SANS_PION) return true;\n }\n \n // pion bas droit mangeable\n if ((j<8)&&(i<8)){\n let pion3 = await getPion(i+1, j+1, hote, adversaire);\n let pion4 = await getPion(i+2, j+2, hote, adversaire);\n if((pion3===PION_BLANC)&&(pion4===SANS_PION)) return true;\n }\n \n // pion bas gauche mangeable\n if ((j>1)&&(i<8)){\n let pion5 = await getPion(i+1, j-1, hote, adversaire);\n let pion6 = await getPion(i+2, j-2, hote, adversaire);\n if((pion5===PION_BLANC)&&(pion6===SANS_PION)) return true;\n }\n \n // dame bas droit mangeable\n if ((j<8)&&(i<8)){\n let pion7 = await getPion(i+1, j+1, hote, adversaire);\n let pion8 = await getPion(i+2, j+2, hote, adversaire);\n if((pion7===DAME_BLANC)&&(pion8===SANS_PION)) return true;\n }\n \n // dame bas gauche mangeable\n if ((j>1)&&(i<8)){\n let pion9 = await getPion(i+1, j-1, hote, adversaire);\n let pion10 = await getPion(i+2, j-2, hote, adversaire);\n if((pion9===DAME_BLANC)&&(pion10===SANS_PION)) return true;\n }\n \n // si c'est une dame (deplacement ou on veut)\n if (pionIJ===DAME_NOIR){\n // pion haut droit\n if ((j<9)&&(i>0)){\n let pion11 = await getPion(i-1, j+1, hote, adversaire);\n if (pion11===SANS_PION) return true;\n }\n \n // pion haut gauche\n if ((j>0)&&(i>0)){\n let pion12 = await getPion(i-1, j-1, hote, adversaire);\n if (pion12===SANS_PION) return true;\n }\n \n // pion haut droit mangeable\n if ((j<8)&&(i>1)){\n let pion13 = await getPion(i-2, j+2, hote, adversaire);\n let pion14 = await getPion(i-1, j+1, hote, adversaire);\n if((pion13===SANS_PION)&&(pion14===PION_BLANC)) return true;\n }\n \n // pion haut gauche mangeable\n if ((j>1)&&(i>1)){\n let pion15 = await getPion(i-2, j-2, hote, adversaire);\n let pion16 = await getPion(i-1, j-1, hote, adversaire);\n if ((pion15===SANS_PION)&&(pion16===PION_BLANC)) return true;\n }\n \n // dame haut droit mangeable\n if ((j<8)&&(i>1)){\n let pion17 = await getPion(i-2, j+2, hote, adversaire);\n let pion18 = await getPion(i-1, j+1, hote, adversaire);\n if((pion17===SANS_PION)&&(pion18===DAME_BLANC)) return true;\n }\n \n // dame haut gauche mangeable\n if ((j>1)&&(i>1)){\n let pion19 = await getPion(i-2, j-2, hote, adversaire);\n let pion20 = await getPion(i-1, j-1, hote, adversaire);\n if((pion19===SANS_PION)&&(pion20===DAME_BLANC)) return true;\n }\n }\n }\n }\n \n return false;\n}", "function colisaoObs(){\r\n\r\n\tfor(var j = 0 ; j < 10 ; j++){\r\n\r\n\t\tfor(var a = j + 1; a < 10 ; a++){\r\n\r\n\t\t\tif(mata_x[j] == mata_x[a] && mata_y[j] == mata_y[a]){\r\n\r\n\t\t\t\tvar NasceObsX = Math.floor(Math.random() * ALEATORIO_MAXIMO)\r\n\t\t\t\tvar NasceObsY = Math.floor(Math.random() * ALEATORIO_MAXIMO)\r\n\r\n\t\t\t\tmata_x[j] = NasceObsX * TAMANHO_PONTO\r\n\t\t\t\tmata_y[j] = NasceObsY * TAMANHO_PONTO\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n}", "get allMillennialVampires() {\n let millenials = [];\n\n if (this.yearConverted > 1980) {\n millenials.push(this);\n }\n\n for (let offspring of this.offspring) {\n millenials = millenials.concat(offspring.allMillennialVampires);\n }\n\n return millenials;\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 }", "function chemistry() {\n var clipHere = 0;\n var columns = [];\n var me = '';\n var em = '';\n var sym = '';\n var s = 0;\n var r = '';\n var tmp = '';\n var isoMass = '';\n var isoDesc = '';\n var iMass = '';\n var lines = [];\n var massSymIon = '';\n var symMass = '';\n var matched = '';\n var symbol = '';\n var a = ['angstroms','angstrom','ang','a',\n 'centimeters','centimeter','cm',\n 'millimeters','millimeter','millimetres','millimetre','mm',\n 'micrometers','micrometer','micrometres','micrometre','microns','micron','um',\n 'nanometers','nanometer','nanometres','nanometre','nm'];\n var b = ['gigahertz','ghz','megahertz','mhz','terahertz','thz'];\n var c = ['eV', 'keV'];\n var units = (a.concat(b).concat(c)).join('\\|');\n var uType = a.join('\\|').replace(/[^\\|]+/g,'w') + '\\|' +\n b.join('\\|').replace(/[^\\|]+/g,'f') + '\\|' +\n c.join('\\|').replace(/[^\\|]+/g,'e'); \n var num = /\\d{1,5}(?:\\.\\d+)?/.source;\n var and = /(?:[\\,\\+\\/and\\&]{1,4})/.source;\n var three = /((?:lambdalambdalambda)|(?:lambdalambda)|(?:lambda)|(?:lll)|(?:ll)|(?:l)|(?:nununu)|(?:nunu)|(?:nu)|(?:nnn)|(?:nn)|(?:n))?/.source +\n '('+num+')' + '('+units+')?' + and + '('+num+')' + '('+units+')?' + and + '('+num+')' + '('+units+')?';\n var two = /((?:lambdalambda)|(?:lambda)|(?:ll)|(?:l)|(?:nunu)|(?:nu)|(?:nn)|(?:n))?/.source +\n '('+num+')' + '('+units+')?' + and + '('+num+')' + '('+units+')?';\n var one = /((?:lambda)|(?:l)|(?:nu)|(?:n))?/.source + '('+num+')?' + '('+units+')?';\n var startHere = xLtr.length;\n\n// ============================== read in the MOLECULES file =================================\n lines = (GM_getResourceText(\"molecules\").trim()).split('\\n');\n clipHere = lines.reduce(function(x1,x2,x3) {if (x2.match(/\\={20,}/)) {x1.push(x3);} return x1;}, []); \n if (clipHere.length >= 2) {\n lines = lines.slice(clipHere[0]+1,clipHere[1]);\n } else if (clipHere.length == 1) {\n lines = lines.slice(clipHere[0]+1); }\n for (s = 0; s < lines.length; s++) {\n lines[s] = lines[s].trim().replace(/ +/g,' ');\n columns = lines[s].split(' ');\n sym = columns[0]+ /((?:\\d[\\+\\-])|(?:\\+){1,3}|(?:\\-){1,3})?(\\[\\d\\-\\d\\])?/.source;\n // ------------- 3 values listed:\n r = '(?:' + three + sym +')|(?:' + sym + three +')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"molecule\":columns[0],\n \"nVals\":\"3\", \"waveFreqPos\":\"1|12\", \"valPos\":\"2|13\", \"val1Pos\":\"2|13\",\n \"unitPos\":\"3|5|7|14|16|18\", \"chargePos\":\"8|10\", \"transPos\":\"9|11\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"molecule\":columns[0],\n \"nVals\":\"3\", \"waveFreqPos\":\"1|12\", \"valPos\":\"4|15\", \"val1Pos\":\"2|13\",\n \"unitPos\":\"3|5|7|14|16|18\", \"chargePos\":\"8|10\", \"transPos\":\"9|11\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"molecule\":columns[0],\n \"nVals\":\"3\", \"waveFreqPos\":\"1|12\", \"valPos\":\"6|17\", \"val1Pos\":\"2|13\",\n \"unitPos\":\"3|5|7|14|16|18\", \"chargePos\":\"8|10\", \"transPos\":\"9|11\"});\n// ------------- 2 values listed:\n r = '(?:' + two + sym + ')|(?:' + sym + two + ')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"40\", \"molecule\":columns[0],\n \"nVals\":\"2\", \"waveFreqPos\":\"1|10\", \"valPos\":\"2|11\", \"val1Pos\":\"2|11\",\n \"unitPos\":\"3|5|12|14\", \"chargePos\":\"6|8\", \"transPos\":\"7|9\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"40\", \"molecule\":columns[0],\n \"nVals\":\"2\", \"waveFreqPos\":\"1|10\", \"valPos\":\"4|13\", \"val1Pos\":\"2|11\",\n \"unitPos\":\"3|5|12|14\", \"chargePos\":\"6|8\", \"transPos\":\"7|9\"});\n// ------------- 1 or no values listed:\n r = '(?:' + one + sym +')|(?:' + sym + one + ')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"25\", \"molecule\":columns[0],\n \"nVals\":\"1\", \"waveFreqPos\":\"1|8\", \"valPos\":\"2|9\", \"val1Pos\":\"2|9\",\n \"unitPos\":\"3|10\", \"chargePos\":\"4|6\", \"transPos\":\"5|7\"});\n }\n\n// ============================== read in the ELEMENTS file =================================\n// (https://www.khanacademy.org/science/chemistry/atomic-structure-and-properties/\n// names-and-formulas-of-ionic-compounds/a/naming-monatomic-ions-and-ionic-compounds\n// http://www.edu.xunta.es/ftpserver/portal/S_EUROPEAS/FQ/3rdESO_archivos/Nomenclature.htm\n// http://preparatorychemistry.com/Bishop_Isotope_Notation.htm\n clipHere = 0; \n lines = (GM_getResourceText(\"elements\").trim()).split('\\n');\n// clip out data table from any comments blocks\n clipHere = lines.reduce(function(x1,x2,x3) {if (x2.match(/\\={20,}/)) {x1.push(x3);} return x1;}, []); \n if (clipHere.length >= 2) {\n lines = lines.slice(clipHere[0]+1,clipHere[1]);\n } else if (clipHere.length == 1) {\n lines = lines.slice(clipHere[0]+1); }\n// format of the \"elements.txt\" file: Column 1: element symbol (like \"He\"), Column 2: written out name of the element\n// (like \"helium\"), Column 3: element's atomic number (# protons), Column 4: atomic mass of most abundant stable istope,\n// Column 5: list of other stable isotopes (atomic masses) delimited by vertical bars, Column 6: list of radioisotopes\n// (atomic mass) delimited by vertical bars\n\n\n// come back to\n// among the molecules is \"NaI\", sodium iodide. Could be confused with \"NaI\", neutral sodium! Need to have a\n// special catch that tries to distinguish which it is (if surrounded by brackets, is the neutral sodium. If \n// has a charge, is a molecule.\n\n for (s = 0; s < lines.length; s++) {\n lines[s] = lines[s].trim().replace(/ +/g,' ');\n// replace any lone vertical bars with \"\"\n columns = (lines[s].split(' ')).map(z => z.replace(/^\\|$/,''));\n isoMass = columns[3];\n isoDesc = columns[3].replace(/\\d+/g,'stable_isotope|most_abundant_isotope');\n isoMass = isoMass + ' ' + columns[4].replace(/\\|/g,' ');\n isoDesc = isoDesc + ' ' + columns[4].replace(/\\|/g,' ').replace(/\\d+/g,'stable_isotope');\n isoMass = isoMass + ' ' + columns[5].replace(/\\|/g,' ');\n isoDesc = isoDesc + ' ' + columns[5].replace(/\\|/g,' ').replace(/\\d+/g,'radio_isotope');\n isoMass = isoMass.replace(/ +/g,' ').trim();\n isoDesc = isoDesc.replace(/ +/g,' ').trim();\n iMass = isoMass.replace(/ /g,'\\|');\n massSymIon = '(?:(?:'+columns[2]+'('+iMass+'))|(?:'+'('+iMass+')'+columns[2]+')|('+iMass+'))?' + columns[0] + /([IVX]{0,6})/.source;\n symMass = columns[0] + '(?:(?:'+columns[2]+'('+iMass+'))|(?:'+'('+iMass+')'+columns[2]+')|('+iMass+'))';\n sym = /(\\[)?/.source + '(?:(?:'+ symMass + ')|(?:' + massSymIon + '))' + /(\\])?/.source;\n // ------------- 3 values listed:\n var r = '(?:' + sym + three + ')|(?:' + three + sym + ')';\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"3\",\n \"waveFreqPos\":\"10|17\", \"valPos\":\"11|18\", \"val1Pos\":\"11|18\",\n \"unitPos\":\"12|14|16|19|21|23\", \"massPos\":\"2|3|4|5|6|7|25|26|27|28|29|30\",\n \"ionPos\":\"8|31\", \"leftPos\":\"1|24\", \"rightPos\":\"9|32\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"3\",\n \"waveFreqPos\":\"10|17\", \"valPos\":\"13|20\", \"val1Pos\":\"11|18\",\n \"unitPos\":\"12|14|16|19|21|23\", \"massPos\":\"2|3|4|5|6|7|25|26|27|28|29|30\",\n \"ionPos\":\"8|31\", \"leftPos\":\"1|24\", \"rightPos\":\"9|32\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"50\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"3\",\n \"waveFreqPos\":\"10|17\", \"valPos\":\"15|22\", \"val1Pos\":\"11|18\",\n \"unitPos\":\"12|14|16|19|21|23\", \"massPos\":\"2|3|4|5|6|7|25|26|27|28|29|30\",\n \"ionPos\":\"8|31\", \"leftPos\":\"1|24\", \"rightPos\":\"9|32\"});\n// ------------- 2 values listed:\n var r = '(?:' + sym + two +')|(?:' + two + sym + ')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"40\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"2\",\n \"waveFreqPos\":\"1|10\", \"valPos\":\"11|16\", \"val1Pos\":\"11|16\",\n \"unitPos\":\"12|14|17|19\", \"massPos\":\"2|3|4|5|6|7|21|22|23|24|25|26\",\n \"ionPos\":\"8|27\", \"leftPos\":\"1|20\", \"rightPos\":\"9|28\"});\n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"40\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"2\",\n \"waveFreqPos\":\"1|10\", \"valPos\":\"13|18\", \"val1Pos\":\"11|16\",\n \"unitPos\":\"12|14|17|19\", \"massPos\":\"2|3|4|5|6|7|21|22|23|24|25|26\",\n \"ionPos\":\"8|27\", \"leftPos\":\"1|20\", \"rightPos\":\"9|28\"});\n// ------------- 1 or no values listed:\n var r = '(?:' + sym + one +')|(?:' + one + sym + ')'; \n xLtr.push({\"reg\":r, \"priority\":\"1\", \"tIndx\":columns[1], \"nChars\":\"25\", \"element\":columns[0],\n \"isoMass\":isoMass, \"isoDesc\":isoDesc, \"nprotons\":columns[2], \"nVals\":\"1\",\n \"waveFreqPos\":\"10|13\", \"valPos\":\"11|14\", \"val1Pos\":\"11|14\",\n \"unitPos\":\"12|15\", \"massPos\":\"2|3|4|5|6|7|17|18|19|20|21|22\",\n \"ionPos\":\"8|23\", \"leftPos\":\"1|16\", \"rightPos\":\"9|24\"});\n }\n // Now add their \"indx\" fields:\n for (s = startHere; s < xLtr.length; s++) {\n xLtr[s].indx = function(text, startPos, commonLines) {\n if (commonLines === undefined || typeof(commonLines) != \"boolean\") {commonLines = true; }\n this.endMatch = \"-1\";\n this.energy = '';\n this.accuracy = '';\n this.x = '';\n this.xSupp = '';\n this.noUnits = '';\n this.symbol = '';\n this.type = '';\n this.charge = '';\n this.transition = '';\n var tmp = '';\n var rightTst = false;\n var leftTst = false;\n var middleTst = true;\n var capTst = true;\n var elementMolecule = '';\n var digitVals = {I:1, V:5, X:10};\n var endMatch = -1;\n var noUnits = '';\n \n var t = JSON.parse(filterTheText(this.reg, text.slice(startPos)));\n if (this.element !== undefined && this.element !== '') {\n elementMolecule = this.element;\n } else {\n elementMolecule = this.molecule; }\n// perform a case-insensitive match initially. If a match exists, and if there are \n// capitalized letters involved in both the chemical symbol as well as in the matched text, then \n// perform a case-sensitive match and make sure that the match continues: \n m = t[0].match(new RegExp('^'+'(?:'+this.reg+')', 'i'));\n if (m && m[0].match(/[A-Z]/) && this.reg.match(/[A-Z]/)) {\n m = t[0].match(new RegExp('^'+'(?:'+this.reg+')')); }\n if (m) {\n endMatch = t[1][m[0].length-1] + 1 + startPos;\n// make sure that this is not a false-positive: if the word is less than 5 characters long,\n// insure that there is a non-alphanumeric character on the right and left side of it in\n// the unfiltered version of the text. \n if (m[0].length <= 5 && startPos > 0 && text.charAt(startPos-1).match(/[^A-Za-z0-9]/)) {\n leftTst = true; }\n if (startPos == 0) {leftTst = true; }\n if (m[0].length > 5) {leftTst = true;}\n if (m[0].length <= 5 && text.length >= endMatch+1 && text.charAt(endMatch).match(/[^A-Za-z0-9]/)) {\n rightTst = true; }\n if (text.length < endMatch+1) {rightTst = true; }\n if (m[0].length > 5) {rightTst = true; }\n// If the match consists of a single capitalized letter (like I for iodine), make sure that the match does \n// not occur as the first word of a sentence: \n if (m[0].match(/[A-Z]/) && m[0].length == 1 && startPos > 0 && text.slice(startPos-5, startPos).match(/[\\.\\,\\;\\:] +$/)) \n {capTst = false; }\n if (text.slice(startPos, endMatch).match(/\\;/) && (!(m[0].match(/\\; +[A-Z]/)))) {middleTst = false; }\n if (text.slice(startPos, endMatch).match(/\\:/) && (!(m[0].match(/\\: +[A-Z]/)))) {middleTst = false; }\n if (text.slice(startPos, endMatch).match(/\\?/) && (!(m[0].match(/\\? +[A-Z]/)))) {middleTst = false; }\n if (text.slice(startPos, endMatch).match(/\\!/) && (!(m[0].match(/\\! +[A-Z]/)))) {middleTst = false; }\n if (this.element !== undefined && text.slice(startPos, endMatch).match(/\\-/)) {middleTst = false; }\n// If all the tests come back OK, then we've got a legit match:\n }\n if (!(leftTst*rightTst*middleTst*capTst)) {return \"\"; }\n// everything below here assumes that there was an acceptable match\n this.endMatch = \"\"+endMatch \n var indx = this.tIndx;\n var xSupp = '';\n var x = '';\n var ion = '';\n var mass = '';\n var leftBra = '';\n var rightBra = '';\n var transition = '';\n var charge = '';\n// extract the \"lambdalambda\" or \"nununu\" words, if present in the matched text:\n var lamnu = (this.waveFreqPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (lamnu === undefined) {lamnu = ''; }\n// extract the first value:\n var val1 = (this.val1Pos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (val1 === undefined) {val1 = ''; }\n// extract the value to be processed (which is the same as Val1 if there was only a single value in the matched text):\n var val = (this.valPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (val === undefined) {val = ''; }\n// extract the matched units, if present:\n var units = (this.unitPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (units === undefined) {units = ''; }\n// standardize the unit notation:\n units = units.replace(/^a[a-z]+/i,'ang');\n units = units.replace(/^um$/i,'um').replace(/^mu$/i,'um').replace(/^mic[a-z]+/i,'um');\n units = units.replace(/^cm/i,'cm');\n units = units.replace(/^mil[a-z]+/i,'mm').replace(/^mm/i,'mm');\n units = units.replace(/^n[a-z]+/i,'nm');\n units = units.replace(/^gh[a-z]+/i,'ghz').replace(/^gigah[a-z]+/i,'ghz');\n units = units.replace(/^kh[a-z]+/i,'khz').replace(/^kiloh[a-z]+/i,'khz');\n units = units.replace(/^th[a-z]+/i,'thz').replace(/^terah[a-z]+/i,'thz');\n units = units.replace(/^mh[a-z]+/i,'mhz').replace(/^megah[a-z]+/i,'mhz');\n units = units.replace(/^ev/i,'ev');\n units = units.replace(/^kev/i/'kev').replace(/^kiloe[a-z]+/i,'kev');\n if (this.element !== undefined && this.element != '') {\n// extract the ionization level, if present:\n var ion = (this.ionPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (ion === undefined) {ion = ''; }\n// force symbol to carry an ion level designation. For example, if it is listed only as \"Ar\", assume\n// that \"ArI\" is implied and explicitly put in the \"I\". We insert the missing/implied \"I\" to insure \n// a consistent way to enter this line into the index ... would not want the same exact spectral line to\n// be listed under both \"Ar\" and \"ArI\". \n if (ion == '' && val != '') {ion = 'I'; }\n if (ion != '') {\n ion = ion.toUpperCase();\n// if an ion level is provided, insure that it is a feasible value (e.g., not in excess of the number of \n// electrons present in a neutral version of this atom). Accomplish this task by converting the roman numeral\n// into an arabic number and then compare to the value stored under nproton:\n tmp = 0;\n ion = ion.split('');\n for (i = 0; i < ion.length; i++) {\n if (digitVals[ion[i]] < digitVals[ion[i+1]]) {\n tmp += digitVals[ion[i+1]] - digitVals[ion[i]];\n i++;\n } else {tmp += digitVals[ion[i]]; }\n }\n ion = ion.join('');\n tmp = tmp - 1; // because ion level of I = neutral, II = missing 1 electron, etc.\n// see https://initjs.org/translate-roman-numerals-in-javascript-482ef6e55ee7\n if (tmp > parseInt(this.nprotons)) {\n// we have a physically impossible situation (more electrons missing than were there initially), so obviously\n// the match to the text has been a false positive, and there really isn't a match. Put everything back \n// the way it was before we thought we had a match, and bail out:\n this.endMatch = \"-1\";\n this.energy = '';\n this.accuracy = '';\n this.x = '';\n this.xSupp = '';\n this.noUnits = '';\n this.symbol = '';\n this.type = '';\n this.charge = '';\n this.transition = '';\n return ''; }\n// determine what adjective should be used to describe this ionization level: single for 1 missing electron,\n// double for 2 missing electrons, triple for 3 missing electrons, and then multiple if the number of \n// missing electrons is less than 10% of the total number of protons, and then high if number of missing\n// electrons is in excess of 10% of total number of protons and/or if 10 more more electrons are missing, \n// and complete/fully if all electrons are removed:\n ionDesc = '';\n if (tmp == 0) {\n ionDesc = 'neutral';\n } else if (tmp == 1) {\n ionDesc = 'singly_ionized';\n } else if (tmp == 2) {\n ionDesc = 'doubly_ionized'; \n } else if (tmp == 3) {\n ionDesc = 'triply_ionized'; \n } else if (tmp < 10 && tmp < 0.1*parseFloat(this.nprotons)) {\n ionDesc = 'multiply_ionized'; \n } else if ( ((tmp >= 10) || (tmp >= 0.1*parseFloat(this.nprotons))) && tmp < parseInt(this.nprotons) ) {\n ionDesc = 'highly_ionized';\n } else if (tmp == parseInt(this.nprotons)) {\n ionDesc = 'completely_ionized|fully_ionized'; }\n xSupp = ([... new Set((xSupp + ' ' + this.tIndx+'\\_'+ion + 'X4' + ionDesc).trim().split(' '))]).join(' ').trim(); }\n// extract the isotopic mass, if available:\n var mass = (this.massPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (mass === undefined) {mass = ''; }\n// extract the left bracket (if present):\n var leftBra = (this.leftPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (leftBra === undefined) {leftBra = ''; }\n// extract the right bracket (if present):\n var rightBra = (this.rightPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (rightBra === undefined) {rightBra = ''; }\n if (leftBra != '' && rightBra != '') { // fully forbidden\n indx = indx + '\\|' + 'forbidden';\n } else if ( (leftBra != '')||(rightBra != '') ) { // semi forbidden\n leftBra = '';\n rightBra = '\\]';\n indx = indx + '\\|' + '*semi_forbidden'; }\n if (mass != '') {\n// see which description should go with this isotopic mass:\n z = this.isoMass.split(' ').indexOf(mass);\n indx = indx + '\\|' + mass; \n xSupp = ([... new Set((xSupp + ' ' + this.tIndx+'\\_'+mass + 'X4' + this.isoDesc.split(' ')[z]).trim().split(' '))]).join(' ').trim(); }\n xSupp = ([... new Set((xSupp + ' ' + this.tIndx + 'X4' + 'element').trim().split(' '))]).join(' ').trim(); \n symbol = leftBra + this.element + ion + rightBra; \n } else if (this.molecule !== undefined && this.molecule != '') {\n// extract the charge (if present):\n charge = (this.chargePos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (charge === undefined) {charge = ''; }\n// extract the transition (if present):\n transition = (this.transPos.split('\\|')).map(z => m[parseInt(z)]).filter(z => z !== undefined && z != '')[0];\n if (transition === undefined) {transition = ''; }\n if (charge != '') {\n indx = indx + '\\|' + charge;\n if (charge.match(/\\-$/)) {\n xSupp = ([... new Set((xSupp + ' ' + charge + 'X4' + 'anion').trim().split(' '))]).join(' ').trim(); \n } else if (charge.match(/\\+$/)) {\n xSupp = ([... new Set((xSupp + ' ' + charge + 'X4' + 'cation').trim().split(' '))]).join(' ').trim(); }\n }\n if (transition != '') {indx = indx + '\\|' + transition; }\n xSupp = ([... new Set((xSupp + ' ' + this.tIndx + 'X4' + 'molecule').trim().split(' '))]).join(' ').trim(); \n symbol = this.molecule + charge + transition;\n }\n// Now organize the information:\n if (lamnu.match(/^l/i)) {\n lamnu = 'w';\n } else if (lamnu.match(/^n/i)) {\n lamnu = 'f';\n } else {lamnu = ''; }\n// If units have been provided, then compute the energy of the line in units of ev, and let that value\n// enter as part of the words to be indexed.\n// If val is 2-digits, and val1 is 4 digits, then probably a shorthand notation has been used such\n// that the first 2 digits of the wavelength (in angstrom) have been removed for the values following the first one. \n// Check for this situation and attach the missing digits if necessary:\n if (val1.indexOf('\\.') == -1 && val1.length == 4 && val.length == 2) {\n units = 'ang';\n val = val1.slice(0,2) + val; } \n// if both a value and units have been supplied, we can compute an energy:\n var info = '';\n var energy = '';\n var delta = '';\n var region = ''; \n if (val != '' && units != '') {\n info = JSON.parse(extractLineEnergy(val, units));\n energy = info[0];\n delta = info[1];\n lamnu = info[3];\n xSupp = ([... new Set((xSupp + ' ' + energy + 'X4' + 'spectral_line' + '\\|' + info[2]).trim().split(' '))]).join(' ').trim();;\n indx = indx + '\\|' + info[0];\n }\n matched = '';\n// if a value has been supplied, then see if there is a match-up to any of the lines in the common\n// line list (type = lineList):\n// Look for matches between the value provided and those in the common-line list that has already been loaded\n// into the xLtr and designated by type = \"lineList\". There are 2 ways to kick off the search: if units have\n// been provided and are equal to ev, then do a search on energy. If no units, then search on the \n// wavelength/freqency raw value:\n if (commonLines && val != '') {\n if (info != '') {\n matched = xLtr.reduce(function(z1,z2,z3) {\n var diff;\n var totDelta;\n if (z2.type == 'lineList') {\n totDelta = Math.pow(Math.pow(parseFloat(z2.energyDelta),2) + Math.pow(parseFloat(delta),2),0.5);\n diff = Math.abs(parseFloat(z2.energy) - parseFloat(energy));\n if (diff <= totDelta) {z1.push(z3); } }\n return z1;}, []);\n } else {\n matched = xLtr.reduce(function(z1,z2,z3) {\n var diff;\n var totDelta;\n if (z2.type == 'lineList') {\n totDelta = Math.pow(Math.pow(parseFloat(z2.wfeDelta),2) + Math.pow(parseFloat(z2.wfeDelta),2),0.5);\n diff = Math.abs(parseFloat(z2.wfeValue) - parseFloat(val));\n if (diff <= totDelta) {z1.push(z3); } }\n return z1;}, []); }\n// If the symbol is specified, then lets see if we can further whittle down the list:\n if (matched.length > 0 && symbol != '') {\n tmp = matched;\n matched = xLtr.reduce(function(z1,z2,z3) {\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1 && z2.symbol == symbol) {z1.push(z3); }\n return z1;}, []); }\n// if the unit is specified, then whittle down even further:\n if (matched.length > 0 && info == '' && units != '' && units != 'ev') {\n tmp = matched;\n matched = xLtr.reduce(function(z1,z2,z3) {\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1 && z2.units == units) {z1.push(z3); }\n return z1; }, []); }\n// if the waveFreq is known and the units were not provided, then whittle down further:\n if (matched.length > 0 && info == '' && units == '' && lamnu != '') {\n tmp = matched;\n matched = xLtr.reduce(function(z1,z2,z3) {\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1 && z2.waveFreq == lamnu) {z1.push(z3); }\n return z1; }, []); }\n// if there were multiple matches, get the one that is closest to the provided value:\n tmp = matched;\n if (matched.length > 0 && info != '') {\n matched = xLtr.reduce(function(z1,z2,z3) {\n var diff;\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1) {\n diff = Math.abs(parseFloat(z2.energy) - parseFloat(energy));\n if (z1.length > 0 && diff < z1[0]) {z1 = [diff, z3];} else {z1 = [diff, z3]; } }\n return z1;}, []);\n } else if (matched.length > 0) {\n matched = xLtr.reduce(function(z1,z2,z3) {\n var diff;\n if (z2.type == 'lineList' && tmp.indexOf(z3) != -1) {\n diff = Math.abs(parseFloat(z2.wfeValue) - parseFloat(val));\n if (z1.length > 0 && diff < z1[0]) {z1 = [diff, z3];} else {z1 = [diff, z3]; } }\n return z1;}, []); }\n if (matched.length > 0) {\n matched = matched[1];\n this.x = xLtr[matched].x;\n this.xSupp = xLtr[matched].xSupp;\n this.type = \"spectralLine\";\n this.energy = xLtr[matched].energy;\n this.accuracy = xLtr[matched].energyDelta;\n this.noUnits = \"\";\n this.symbol = xLtr[matched].symbol;\n return xLtr[matched].indx; }\n }\n indx = ([... new Set(indx.split('\\|'))]).join('\\|');\n xSupp = ([... new Set(xSupp.trim().split(' '))]).join(' ').trim();\n x = x.replace(/^\\|/,'').replace(/\\|$/,'');\n if (x != '') {x = ([... new Set(x.split('\\|'))]).join('\\|'); }\n if (symbol == '') {symbol = 'TBD'; }\n tmp = '';\n if (energy != '') {\n tmp = energy + '\\_' + 'e';\n } else if (val != '') {\n tmp = val + '\\_' + lamnu; }\n if (tmp != '') {\n tmp = tmp.replace(/\\_$/,'');\n noUnits = (symbol + '\\_' + tmp); } \n if (symbol != 'TBD' && energy != '') {noUnits = ''; }\n// If this matched text indicates a spectral line (a value was present), proceed with the xLtr entry:\n if (val != '') {\n this.x = x;\n this.xSupp = xSupp;\n this.type = \"spectralLine\";\n this.energy = energy;\n if (energy == '') {delta = ''; }\n this.accuracy = delta;\n this.noUnits = noUnits;\n this.symbol = symbol;\n if (energy == '') {indx = indx + '\\|' + val; }\n return indx;\n }\n// If a value was not present, then we don't have a spectral line but rather mention of\n// an element or molecule. Proceed with that xLtr entry:\n this.x = x;\n this.xSupp = xSupp;\n if (this.element !== undefined && this.element != '') {\n this.type = \"element\";\n } else {this.type = \"molecule\"; }\n this.energy = '';\n this.accuracy = '';\n this.noUnits = '';\n this.symbol = symbol;\n return indx;\n }\n }\n return;\n }", "function so(e,t,n){var i={m:[\"eng Minutt\",\"enger Minutt\"],h:[\"eng Stonn\",\"enger Stonn\"],d:[\"een Dag\",\"engem Dag\"],M:[\"ee Mount\",\"engem Mount\"],y:[\"ee Joer\",\"engem Joer\"]};return t?i[n][0]:i[n][1]}", "function obli_ecli(njd){\n\n // calcola l'obliquità dell'eclittica.\n // per l'equinozio della data.\n // T= numero di secoli giuliani dallo 0.5 gennaio 1900.\n\n var T=(njd-2415020.0)/36525;\n\n var obli_eclittica=23.452294-0.0130125*T-0.00000164*T*T+0.000000503*T*T*T;\n\nreturn obli_eclittica; //obliquità in gradi\n\n}", "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}", "Ij_chords(){\n let A_chord = this.Atc + this.Abc\n let De = this.Dj - this.Ytc - this.Ybc\n\n return this.Atc*this.Abc*Math.pow(De,2)/A_chord + this.Itc + this.Ibc\n }", "function municoesAndam(){\n\tif(jogoEmAndamento==true){\n\t\tmunicoes.forEach(andarMunicao);\n\t}\n}", "function esquiver() \n{\n //Cas spéciaux : Mort, ou pas d'ennemi\n if (presenceEnnemi === 666){\n dialogBox(\"Eh me saoule pas là relance le jeu ou casse toi connard J'AI AUTRE CHOSE A FOUTRE LA.\")\n \n }else if(presenceEnnemi ===0){ \n dialogBox(\"Tu donnes l'impression de danser sur les chemins, c'est mignon mais ça va pas t'aider.\")\n }\n \n //PROCEDURE HABITUELLE\n else if (presenceEnnemi = 1, tourJoueur(tour)=== true){\n var Min= Number(personnage.esquive - 5)\n var Max= Number(personnage.esquive + 15)\n var Miin = Number(1)\n var Maax = Number(100)\n function getRndInterger(min, max) {\n return Math.floor(Math.random() * (max - min + 1) ) + min;}\n\njetEsquive = getRndInterger(Min, Max);\nvaleurEsquive = getRndInterger(Miin, Maax);\nconsole.log(\"jetEsquive du joueur : \"+jetEsquive+\" et la valeur minimale à avoir était \"+valeurEsquive);\n //Esquive réussie\n if (jetEsquive >= valeurEsquive){\n actionPerso = 2;\n } \n //Echec de l'esquive\n else if (jetEsquive < valeurEsquive){\n actionPerso = 3;\n }\nreactionEnnemi();\nresetSpecial();\n }\n \n}", "lifeExpectancyMercury() {\n let mercurianLifeExpectancy = Math.floor(this.lifeExpectancy/0.24);\n return mercurianLifeExpectancy;\n }", "liikkumislogiikka_jahtaus(oma_x, oma_y, jahti_x, jahti_y){\n var jahdattavan_suhteellinen_suunta_x = jahti_x - oma_x;\n var jahdattavan_suhteellinen_suunta_y = jahti_y - oma_y;\n \n var suunta;\n if (Math.abs(jahdattavan_suhteellinen_suunta_x) <= Math.abs(jahdattavan_suhteellinen_suunta_y)) {\n if (jahdattavan_suhteellinen_suunta_y >= 0) {\n suunta = suunnat.ALAS;\n }\n else {\n suunta = suunnat.YLOS;\n }\n }\n else {\n if (jahdattavan_suhteellinen_suunta_x <= 0){\n if (oma_x - 1 >= this.alue_x1) {\n suunta = suunnat.VASEN;\n }\n else {\n suunta = suunnat.PAIKKA;\n }\n }\n else {\n if (oma_x + 1 <= this.alue_x2) {\n suunta = suunnat.OIKEA;\n }\n else {\n suunta = suunnat.PAIKKA;\n }\n }\n }\n \n return suunta;\n }", "getYerushalmiMasechta() {\n return Daf.masechtosYerushlmi[this.masechtaNumber];\n }", "function MetodoCruzamento(){\n //Nivel+1 para sabermos que não são os pais, e um o fruto de um cruzamento do nivel 1.\n\tNivel++;\n\tswitch(MetodoCruzamen){\n\t\tcase 1:\n\t\t\tKillError(\"-s [1:Não definido,2]\");\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tconsole.log(\"Cruzamento em andamento!\");\n\t\t\tconsole.log(\"- Crossover PMX\");\n\t\t\tconsole.log(\"- - Geração: \"+Geracao);\n\t\t\tif(Torneio==1){\n\t\t\t\tconsole.log(\"- - - Torneio\");\n\t\t\t}else{\n\t\t\t\tconsole.log(\"- - - Roleta\");\n\t\t\t}\n\t\t\twhile(Geracao>=0){\n\t\t\t\tCrossover_PMX();\n\t\t\t\tGeracao=Geracao-1;\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tKillError(\"-s [1,2]\");\n\t}\n\tQualidadeCheck();\n}", "function genereTournoi(){\n\n selecteurMatch = -1;\n bd.tournoi.tours = [];\n joueurAttente = [];\n\n //init\n for (var i = 0; i < bd.joueurs.length; i++){\n bd.joueurs[i].adversaires = [];\n bd.joueurs[i].coequipiers = [];\n bd.joueurs[i].points = 0;\n }\n\n var nbMatch;\n for (var i = 0; i < bd.tournoi.nbTour; i++){\n mettreJoueursDansSac(); //on met tous les joueurs selectionné dans un sac et on mélange\n populateAllMatchs(); //on générre tous les matchs possibles à partir des joueurs dans sac\n\n //nombre de mathc par tour\n nbMatch = Math.min(\n Math.floor(sac.length / (typeTournoiListe.SIMPLE ? 2 : 4)), \n allMatchs.length,\n bd.tournoi.nbTerrain\n );\n\n //on teste tous les matchs en les priorisant\n for (var j = 0; j < allMatchs.length; j++){\n testContraintes(allMatchs[j]);\n }\n //on tri la liste\n allMatchs.sort((m1, m2) => m1.pointContrainte - m2.pointContrainte);\n var matchs = [];\n var currentMatch;\n for (var j = 0; j < nbMatch; j++){\n if (allMatchs.length == 0) break; //s'il n'y a plus de match dispo on sort\n currentMatch = allMatchs[0];\n matchs.push(currentMatch);\n //attribution adversaires\n for (var k = 0; k < currentMatch[\"equipeA\"].length; k++){\n j1 = currentMatch[\"equipeA\"][k];\n for (var m = 0; m < currentMatch[\"equipeB\"].length; m++){\n j2 = currentMatch[\"equipeB\"][m];\n if (!j1.adversaires.includes(j2)) j1.adversaires.push(j2); \n if (!j2.adversaires.includes(j1)) j2.adversaires.push(j1); \n }\n }\n //et coequipiers equipe A\n var j1, j2;\n for (var k = 0; k < currentMatch[\"equipeA\"].length; k++){\n j1 = currentMatch[\"equipeA\"][k];\n for (var m = 0; m < currentMatch[\"equipeA\"].length; m++){\n j2 = currentMatch[\"equipeA\"][m];\n if (j1 != j2){\n if (!j1.coequipiers.includes(j2)) j1.coequipiers.push(j2);\n if (!j2.coequipiers.includes(j1)) j2.coequipiers.push(j1);\n }\n }\n }\n //et coequipiers equipe B\n var j1, j2;\n for (var k = 0; k < currentMatch[\"equipeB\"].length; k++){\n j1 = currentMatch[\"equipeB\"][k];\n for (var m = 0; m < currentMatch[\"equipeB\"].length; m++){\n j2 = currentMatch[\"equipeB\"][m];\n if (j1 != j2){\n if (!j1.coequipiers.includes(j2)) j1.coequipiers.push(j2);\n if (!j2.coequipiers.includes(j1)) j2.coequipiers.push(j1);\n }\n }\n }\n //on supprime tous les match ayant des joueurs déjà affecté sur ce tour\n allMatchs = allMatchs.filter(match => \n match.equipeA.filter(joueur => currentMatch.equipeA.includes(joueur)).length == 0 && \n match.equipeB.filter(joueur => currentMatch.equipeB.includes(joueur)).length == 0 &&\n match.equipeA.filter(joueur => currentMatch.equipeB.includes(joueur)).length == 0 &&\n match.equipeB.filter(joueur => currentMatch.equipeA.includes(joueur)).length == 0\n );\n\n //on supprime du sac les joueurs affectés a currentMatch\n var currentIndexOf;\n for (var k = 0; k < currentMatch.equipeA.length; k++){\n currentIndexOf = sac.indexOf(currentMatch.equipeA[k]);\n if (currentIndexOf != -1) sac.splice(currentIndexOf, 1);\n }\n for (var k = 0; k < currentMatch.equipeB.length; k++){\n currentIndexOf = sac.indexOf(currentMatch.equipeB[k]);\n if (currentIndexOf != -1) sac.splice(currentIndexOf, 1);\n }\n\n }\n\n //on ajoute dans joueur attente les joueurs restant dans le sac\n var flag;\n for (var k = 0; k < sac.length; k++){\n flag = false;\n for (var m = 0; m < joueurAttente.length; m++) {\n if (joueurAttente[m].name == sac[k].name){\n joueurAttente[m][\"nb\"]++;\n flag = true;\n }\n }\n if (!flag) joueurAttente.push({\"name\": sac[k].name, \"nb\": 1});\n }\n\n bd.tournoi.tours.push({\"matchs\": matchs, \"joueurAttente\": sac});\n }\n\n}", "function andarMunicao(item, indice, municoes){\n\tif(jogoEmAndamento==true){\n\t\tswitch(municoes[indice].getDirecao()){\n\t\tcase(1): // Andar para leste\n\t\t\tmunicoes[indice].setX(municoes[indice].getX()-5);\n\t\t\tbreak;\n\t\tcase(2): // Andar para oeste\n\t\t\tmunicoes[indice].setX(municoes[indice].getX()+5);\n\t\t\tbreak;\n\t\tcase(3): // Andar para norte\n\t\t\tmunicoes[indice].setY(municoes[indice].getY()-5);\n\t\t\tbreak;\n\t\tcase(4): // Andar para sul\n\t\t\tmunicoes[indice].setY(municoes[indice].getY()+5);\n\t\t\tbreak;\n\t\tcase(5): // Andar para noroeste\n\t\t\tmunicoes[indice].setX(municoes[indice].getX()-5);\n\t\t\tmunicoes[indice].setY(municoes[indice].getY()-5);\n\t\t\tbreak;\n\t\tcase(6): // Andar para nordeste\n\t\t\tmunicoes[indice].setX(municoes[indice].getX()+5);\n\t\t\tmunicoes[indice].setY(municoes[indice].getY()-5);\n\t\t\tbreak;\n\t\tcase(7): // Andar para sudoeste\n\t\t\tmunicoes[indice].setX(municoes[indice].getX()-5);\n\t\t\tmunicoes[indice].setY(municoes[indice].getY()+5);\n\t\t\tbreak;\n\t\tcase(8): // Andar para sudeste\n\t\t\tmunicoes[indice].setX(municoes[indice].getX()+5);\n\t\t\tmunicoes[indice].setY(municoes[indice].getY()+5);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmunicoes[indice].setX(municoes[indice].getX()-5);\n\t\t \tbreak;\n\t\t}\n\t}\n}", "bouton_centrage_pos() {}", "function moonPosition(JD,sun){\n\t\tvar lo,Po,No,i,e,l,Mm,N,C,Ev,sinMo,Ae,A3,Mprimem,Ec,A4,lprime,V,lprimeprime,Nprime,lppNp,sinlppNp,y,x,lm,Bm;\n\t\tlo = 91.929336;\t// Moon's mean longitude at epoch 2010.0\n\t\tPo = 130.143076;\t// mean longitude of the perigee at epoch\n\t\tNo = 291.682547;\t// mean longitude of the node at the epoch\n\t\ti = 5.145396;\t// inclination of Moon's orbit\n\t\te = 0.0549;\t// eccentricity of the Moon's orbit\n\t\tl = (13.1763966*sun.D + lo)%360;\n\t\tif(l < 0) l += 360;\n\t\tMm = (l - 0.1114041*sun.D - Po)%360;\n\t\tif(Mm < 0) Mm += 360;\n\t\tN = (No - 0.0529539*sun.D)%360;\n\t\tif(N < 0) N += 360;\n\t\tC = l-sun.lon;\n\t\tEv = 1.2739*Math.sin((2*C-Mm)*d2r);\n\t\tsinMo = Math.sin(sun.Mo*d2r);\n\t\tAe = 0.1858*sinMo;\n\t\tA3 = 0.37*sinMo;\n\t\tMprimem = Mm + Ev -Ae - A3;\n\t\tEc = 6.2886*Math.sin(Mprimem*d2r);\n\t\tA4 = 0.214*Math.sin(2*Mprimem*d2r);\n\t\tlprime = l + Ev + Ec -Ae + A4;\n\t\tV = 0.6583*Math.sin(2*(lprime-sun.lon)*d2r);\n\t\tlprimeprime = lprime + V;\n\t\tNprime = N - 0.16*sinMo;\n\t\tlppNp = (lprimeprime-Nprime)*d2r;\n\t\tsinlppNp = Math.sin(lppNp);\n\t\ty = sinlppNp*Math.cos(i*d2r);\n\t\tx = Math.cos(lppNp);\n\t\tlm = Math.atan2(y,x)/d2r + Nprime;\n\t\tBm = Math.asin(sinlppNp*Math.sin(i*d2r))/d2r;\n\t\tif(lm > 360) lm -= 360;\n\t\treturn { lon:lm,lat:Bm };\n\t}", "function imprimirSiEsMayorDeEdad (persona){\n if (esMayorDeEdad(persona)){\n console.log (`${persona.nombre} es mayor de edad`)\n }else {\n console.log(`${persona.nombre} es menor de edad`)\n}\n}", "function calcNiveau(){\r\n var ancienNiveau = perso.niveau\r\n while (perso.exp > perso.levelLimit){\r\n perso.exp = perso.exp - perso.levelLimit\r\n perso.levelLimit = Math.round(perso.levelLimit * 1.5)\r\n perso.niveau++\r\n niveauPlus = true\r\n gainDeNiveau()\r\n }\r\n\r\n if (niveauPlus){\r\n var message = \"Aurora a gagné \" + (perso.niveau - ancienNiveau) + \" niveau !!!\"\r\n niveauPlus = false\r\n }else {\r\n var message = \"aurora a gagné \" + perso.exp + \" pts d'experience\"\r\n }\r\n return message\r\n}", "function siamoNellaPrimaSettimana() {\n return indiceSettimana == 0;\n }", "function calculateMoon() {\n\t// Mean longitude of the moon\n\tlet Lmm = Utils.norm360Deg(218.3164591 + 481267.88134236 * TE - 0.0013268 * TE2 + TE3 / 538841 - TE4 / 65194000);\n\n\t// Mean elongation of the moon\n\tlet D = Utils.norm360Deg(297.8502042 + 445267.1115168 * TE - 0.00163 * TE2 + TE3 / 545868 - TE4 / 113065000);\n\n\t// Mean anomaly of the sun\n\tlet Msm = Utils.norm360Deg(357.5291092 + 35999.0502909 * TE - 0.0001536 * TE2 + TE3 / 24490000);\n\n\t// Mean anomaly of the moon\n\tlet Mmm = Utils.norm360Deg(134.9634114 + 477198.8676313 * TE + 0.008997 * TE2 + TE3 / 69699 - TE4 / 14712000);\n\n\t// Mean distance of the moon from ascending node\n\tlet F = Utils.norm360Deg(93.2720993 + 483202.0175273 * TE - 0.0034029 * TE2 - TE3 / 3526000 + TE4 / 863310000);\n\n\t// Corrections\n\tlet A1 = Utils.norm360Deg(119.75 + 131.849 * TE);\n\tlet A2 = Utils.norm360Deg(53.09 + 479264.29 * TE);\n\tlet A3 = Utils.norm360Deg(313.45 + 481266.484 * TE);\n\tlet fE = 1 - 0.002516 * TE - 0.0000074 * TE2;\n\tlet fE2 = fE * fE;\n\n\t// Periodic terms for the moon:\n\n\t// Longitude and distance\n\tlet ld = [\n\t\t[ 0, 0, 1, 0, 6288774, -20905355 ],\n\t\t[ 2, 0, -1, 0, 1274027, -3699111 ],\n\t\t[ 2, 0, 0, 0, 658314, -2955968 ],\n\t\t[ 0, 0, 2, 0, 213618, -569925 ],\n\t\t[ 0, 1, 0, 0, -185116, 48888 ],\n\t\t[ 0, 0, 0, 2, -114332, -3149 ],\n\t\t[ 2, 0, -2, 0, 58793, 246158 ],\n\t\t[ 2, -1, -1, 0, 57066, -152138 ],\n\t\t[ 2, 0, 1, 0, 53322, -170733 ],\n\t\t[ 2, -1, 0, 0, 45758, -204586 ],\n\t\t[ 0, 1, -1, 0, -40923, -129620 ],\n\t\t[ 1, 0, 0, 0, -34720, 108743 ],\n\t\t[ 0, 1, 1, 0, -30383, 104755 ],\n\t\t[ 2, 0, 0, -2, 15327, 10321 ],\n\t\t[ 0, 0, 1, 2, -12528, 0 ],\n\t\t[ 0, 0, 1, -2, 10980, 79661 ],\n\t\t[ 4, 0, -1, 0, 10675, -34782 ],\n\t\t[ 0, 0, 3, 0, 10034, -23210 ],\n\t\t[ 4, 0, -2, 0, 8548, -21636 ],\n\t\t[ 2, 1, -1, 0, -7888, 24208 ],\n\t\t[ 2, 1, 0, 0, -6766, 30824 ],\n\t\t[ 1, 0, -1, 0, -5163, -8379 ],\n\t\t[ 1, 1, 0, 0, 4987, -16675 ],\n\t\t[ 2, -1, 1, 0, 4036, -12831 ],\n\t\t[ 2, 0, 2, 0, 3994, -10445 ],\n\t\t[ 4, 0, 0, 0, 3861, -11650 ],\n\t\t[ 2, 0, -3, 0, 3665, 14403 ],\n\t\t[ 0, 1, -2, 0, -2689, -7003 ],\n\t\t[ 2, 0, -1, 2, -2602, 0 ],\n\t\t[ 2, -1, -2, 0, 2390, 10056 ],\n\t\t[ 1, 0, 1, 0, -2348, 6322 ],\n\t\t[ 2, -2, 0, 0, 2236, -9884 ],\n\t\t[ 0, 1, 2, 0, -2120, 5751 ],\n\t\t[ 0, 2, 0, 0, -2069, 0 ],\n\t\t[ 2, -2, -1, 0, 2048, -4950 ],\n\t\t[ 2, 0, 1, -2, -1773, 4130 ],\n\t\t[ 2, 0, 0, 2, -1595, 0 ],\n\t\t[ 4, -1, -1, 0, 1215, -3958 ],\n\t\t[ 0, 0, 2, 2, -1110, 0 ],\n\t\t[ 3, 0, -1, 0, -892, 3258 ],\n\t\t[ 2, 1, 1, 0, -810, 2616 ],\n\t\t[ 4, -1, -2, 0, 759, -1897 ],\n\t\t[ 0, 2, -1, 0, -713, -2117 ],\n\t\t[ 2, 2, -1, 0, -700, 2354 ],\n\t\t[ 2, 1, -2, 0, 691, 0 ],\n\t\t[ 2, -1, 0, -2, 596, 0 ],\n\t\t[ 4, 0, 1, 0, 549, -1423 ],\n\t\t[ 0, 0, 4, 0, 537, -1117 ],\n\t\t[ 4, -1, 0, 0, 520, -1571 ],\n\t\t[ 1, 0, -2, 0, -487, -1739 ],\n\t\t[ 2, 1, 0, -2, -399, 0 ],\n\t\t[ 0, 0, 2, -2, -381, -4421 ],\n\t\t[ 1, 1, 1, 0, 351, 0 ],\n\t\t[ 3, 0, -2, 0, -340, 0 ],\n\t\t[ 4, 0, -3, 0, 330, 0 ],\n\t\t[ 2, -1, 2, 0, 327, 0 ],\n\t\t[ 0, 2, 1, 0, -323, 1165 ],\n\t\t[ 1, 1, -1, 0, 299, 0 ],\n\t\t[ 2, 0, 3, 0, 294, 0 ],\n\t\t[ 2, 0, -1, -2, 0, 8752 ]\n\t];\n\n\tlet lat = [\n\t\t[ 0, 0, 0, 1, 5128122 ],\n\t\t[ 0, 0, 1, 1, 280602 ],\n\t\t[ 0, 0, 1, -1, 277693 ],\n\t\t[ 2, 0, 0, -1, 173237 ],\n\t\t[ 2, 0, -1, 1, 55413 ],\n\t\t[ 2, 0, -1, -1, 46271 ],\n\t\t[ 2, 0, 0, 1, 32573 ],\n\t\t[ 0, 0, 2, 1, 17198 ],\n\t\t[ 2, 0, 1, -1, 9266 ],\n\t\t[ 0, 0, 2, -1, 8822 ],\n\t\t[ 2, -1, 0, -1, 8216 ],\n\t\t[ 2, 0, -2, -1, 4324 ],\n\t\t[ 2, 0, 1, 1, 4200 ],\n\t\t[ 2, 1, 0, -1, -3359 ],\n\t\t[ 2, -1, -1, 1, 2463 ],\n\t\t[ 2, -1, 0, 1, 2211 ],\n\t\t[ 2, -1, -1, -1, 2065 ],\n\t\t[ 0, 1, -1, -1, -1870 ],\n\t\t[ 4, 0, -1, -1, 1828 ],\n\t\t[ 0, 1, 0, 1, -1794 ],\n\t\t[ 0, 0, 0, 3, -1749 ],\n\t\t[ 0, 1, -1, 1, -1565 ],\n\t\t[ 1, 0, 0, 1, -1491 ],\n\t\t[ 0, 1, 1, 1, -1475 ],\n\t\t[ 0, 1, 1, -1, -1410 ],\n\t\t[ 0, 1, 0, -1, -1344 ],\n\t\t[ 1, 0, 0, -1, -1335 ],\n\t\t[ 0, 0, 3, 1, 1107 ],\n\t\t[ 4, 0, 0, -1, 1021 ],\n\t\t[ 4, 0, -1, 1, 833 ],\n\t\t[ 0, 0, 1, -3, 777 ],\n\t\t[ 4, 0, -2, 1, 671 ],\n\t\t[ 2, 0, 0, -3, 607 ],\n\t\t[ 2, 0, 2, -1, 596 ],\n\t\t[ 2, -1, 1, -1, 491 ],\n\t\t[ 2, 0, -2, 1, -451 ],\n\t\t[ 0, 0, 3, -1, 439 ],\n\t\t[ 2, 0, 2, 1, 422 ],\n\t\t[ 2, 0, -3, -1, 421 ],\n\t\t[ 2, 1, -1, 1, -366 ],\n\t\t[ 2, 1, 0, 1, -351 ],\n\t\t[ 4, 0, 0, 1, 331 ],\n\t\t[ 2, -1, 1, 1, 315 ],\n\t\t[ 2, -2, 0, -1, 302 ],\n\t\t[ 0, 0, 1, 3, -283 ],\n\t\t[ 2, 1, 1, -1, -229 ],\n\t\t[ 1, 1, 0, -1, 223 ],\n\t\t[ 1, 1, 0, 1, 223 ],\n\t\t[ 0, 1, -2, -1, -220 ],\n\t\t[ 2, 1, -1, -1, -220 ],\n\t\t[ 1, 0, 1, 1, -185 ],\n\t\t[ 2, -1, -2, -1, 181 ],\n\t\t[ 0, 1, 2, 1, -177 ],\n\t\t[ 4, 0, -2, -1, 176 ],\n\t\t[ 4, -1, -1, -1, 166 ],\n\t\t[ 1, 0, 1, -1, -164 ],\n\t\t[ 4, 0, 1, -1, 132 ],\n\t\t[ 1, 0, -1, -1, -119 ],\n\t\t[ 4, -1, 0, -1, 115 ],\n\t\t[ 2, -2, 0, 1, 107 ]\n\t];\n\n\t// Reading periodic terms\n\tlet fD, fD2, fM, fM2, fMm, fMm2, fF, fF2, coeffs, coeffs2, coeffc, f, f2, sumL = 0, sumR = 0, sumB = 0, x = 0;\n\n\twhile (x < lat.length) {\n\t\tfD = ld[x][0];\n\t\tfM = ld[x][1];\n\t\tfMm = ld[x][2];\n\t\tfF = ld[x][3];\n\t\tcoeffs = ld[x][4];\n\t\tcoeffc = ld[x][5];\n\t\tif (fM === 1 || fM === -1) {\n\t\t\tf = fE;\n\t\t} else if (fM === 2 || fM === -2) {\n\t\t\tf = fE2;\n\t\t} else {\n\t\t\tf = 1;\n\t\t}\n\t\tsumL += f * coeffs * Utils.sind(fD * D + fM * Msm + fMm * Mmm + fF * F);\n\t\tsumR += f * coeffc * Utils.cosd(fD * D + fM * Msm + fMm * Mmm + fF * F);\n\t\tfD2 = lat[x][0];\n\t\tfM2 = lat[x][1];\n\t\tfMm2 = lat[x][2];\n\t\tfF2 = lat[x][3];\n\t\tcoeffs2 = lat[x][4];\n\t\tif (fM2 === 1 || fM2 === -1) {\n\t\t\tf2 = fE;\n\t\t} else if (fM2 === 2 || fM2 === -2) {\n\t\t\tf2 = fE2;\n\t\t} else {\n\t\t\tf2 = 1;\n\t\t}\n\t\tsumB += f2 * coeffs2 * Utils.sind(fD2 * D + fM2 * Msm + fMm2 * Mmm + fF2 * F);\n\t\tx++;\n\t}\n\n\t// Corrections\n\tsumL = sumL + 3958 * Utils.sind(A1) + 1962 * Utils.sind(Lmm - F) + 318 * Utils.sind(A2);\n\tsumB = sumB - 2235 * Utils.sind(Lmm) + 382 * Utils.sind(A3) + 175 * Utils.sind(A1 - F) + 175 * Utils.sind(A1 + F) + 127 * Utils.sind(Lmm - Mmm) - 115 * Utils.sind(Lmm + Mmm);\n\n\t// Longitude of the moon\n\tlet lambdaMm = Utils.norm360Deg(Lmm + sumL / 1000000);\n\n\t// Latitude of the moon\n\tlet betaM = sumB / 1000000;\n\n\t// Distance earth-moon\n\tlet dEM = 385000.56 + sumR / 1000;\n\n\t// Apparent longitude of the moon\n\tlambdaMapp = lambdaMm + deltaPsi;\n\n\t// Right ascension of the moon, apparent\n\tRAMoon = Math.toDegrees(Utils.norm2PiRad(Math.atan2((Utils.sind(lambdaMapp) * Utils.cosd(eps) - Utils.tand(betaM) * Utils.sind(eps)), Utils.cosd(lambdaMapp))));\n\n\t// Declination of the moon\n\tDECMoon = Math.toDegrees(Math.asin(Utils.sind(betaM) * Utils.cosd(eps) + Utils.cosd(betaM) * Utils.sind(eps) * Utils.sind(lambdaMapp)));\n\n\t// GHA of the moon\n\tGHAMoon = Utils.norm360Deg(GHAAtrue - RAMoon);\n\n\t// Horizontal parallax of the moon\n\tHPMoon = Math.toDegrees(3600 * Math.asin(6378.14 / dEM));\n\n\t// Semi-diameter of the moon\n\tSDMoon = Math.toDegrees(3600 * Math.asin(1738 / dEM));\n\n\t// Geocentric angular distance between moon and sun\n\tLDist = Math.toDegrees(Math.acos(Utils.sind(DECMoon) * Utils.sind(DECSun) + Utils.cosd(DECMoon) * Utils.cosd(DECSun) * Utils.cosd(RAMoon - RASun)));\n\n\t//Phase angle\n\tlet i = Math.atan2(dES * Utils.sind(LDist), (dEM - dES * Utils.cosd(LDist)));\n\n\t//Illumination of the moon's disk\n\tlet k = 100 * (1 + Math.cos(i)) / 2;\n\tillumMoon = k; // Math.round(10 * k) / 10;\n}", "function orb_plan(njd,np){\n\n // elementi orbitali dei pianeti per l'equinozio della data.\n\n\n var T=(njd-2415020.0)/36525;\n \n var L=new Array (); // Longitudine media dei pianeti.\n\n L[0]=178.179078+149474.07078*T+0.0003011*T*T; // Mercurio.\n L[1]=342.767053+58519.211910*T+0.0003097*T*T; // Venere.\n L[2]= 99.696680+36000.768920*T+0.0003025*T*T; // Terra.\n L[3]=293.737334+19141.695510*T+0.0003107*T*T; // Marte.\n L[4]=238.049257+3036.3019860*T+0.0003347*T*T-0.00000165*T*T*T; // Giove.\n L[5]=266.564377+1223.5098840*T+0.0003245*T*T-0.00000580*T*T*T; // Saturno.\n L[6]=244.197470+429.86354600*T+0.0003160*T*T-0.00000060*T*T*T; // Urano.\n L[7]= 84.457994+219.88591400*T+0.0003205*T*T-0.00000060*T*T*T; // Nettuno.\n L[8]= 93.48+144.96*T; // Plutone.\n\n\n\n var M=new Array (); // Anomalia media dei pianeti.\n\n M[0]=102.27938+149472.51529*T+0.000007*T*T; // Mercurio.\n M[1]=212.60322+ 58517.80387*T+0.001286*T*T; // Venere.\n M[2]=178.47583+35999.049750*T-0.000150*T*T-0.0000033*T*T*T; // Terra.\n M[3]=319.51913+ 19139.85475*T+0.000181*T*T; // Marte.\n M[4]=225.32829+ 3034.69202*T-0.000722*T*T; // Giove.\n M[5]=175.46616+ 1221.55147*T-0.000502*T*T; // Saturno.\n M[6]= 72.64878+ 428.37911*T+0.000079*T*T; // Urano.\n M[7]= 37.73063+ 218.46134*T-0.000070*T*T; // Nettuno.\n M[8]=0; // Plutone.\n\n\n var a= new Array( 0.3870986, 0.7233316, 0.999996, 1.523688300, 5.20256100, 9.5547470, 19.2181400, 30.1095700, 39.48168677); // \n var p= new Array(0.24085000, 0.6152100, 1.000040, 1.8808900, 11.8622400, 29.457710, 84.0124700, 164.7955800, 248.09);\n var m= new Array(0.000001918, 0.00001721, 0.0000000, 0.000004539, 0.000199400, 0.000174000, 0.00007768, 0.000075970, 0.000004073);\n var d= new Array( 6.74, 16.92, 0, 9.36, 196.74, 165.60, 65.80, 62.20, 3.20); \n \n var e= new Array(); // Eccentricità delle orbite planetarie.\n\n e[0]=0.20561421+0.00002046*T-0.000000030*T*T; // Mercurio. \n e[1]=0.00682069-0.00004774*T+0.000000091*T*T; // Venere.\n e[2]=0.01675104-0.00004180*T-0.000000126*T*T; // Terra. \n e[3]=0.09331290+0.000092064*T-0.000000077*T*T; // Marte. \n e[4]=0.04833475+0.000164180*T-0.0000004676*T*T-0.00000000170*T*T*T; // Giove.\n e[5]=0.05589232-0.000345500*T-0.0000007280*T*T+0.00000000074*T*T*T; // Saturno.\n e[6]=0.04634440-0.000026580*T+0.0000000770*T*T; // Urano.\n e[7]=0.00899704+0.000006330*T-0.0000000020*T*T; // Nettuno. \n e[8]=0.24880766; // Plutone. \n\n var i= new Array(); // Inclinazione dell'orbita\n\n i[0]=7.002881+0.0018608*T-0.0000183*T*T;\n i[1]=3.393631+0.0010058*T-0.0000010*T*T;\n i[2]=0;\n i[3]=1.850333-0.0006750*T+0.0000126*T*T;\n i[4]=1.308736-0.0056961*T+0.0000039*T*T;\n i[5]=2.492519-0.0039189*T-0.00001549*T*T+0.00000004*T*T*T;\n i[6]=0.772464+0.0006253*T+0.0000395*T*T;\n i[7]=1.779242-0.0095436*T-0.0000091*T*T;\n i[8]=17.14175;\n\n var ap= new Array(); // Argomento del perielio.\n\n ap[0]=28.753753+0.3702806*T+0.0001208*T*T; // Mercurio\n ap[1]=54.384186+0.5081861*T-0.0013864*T*T;\n ap[2]=gradi_360(L[2]-M[2]+180); // Terra\n ap[3]=285.431761+1.0697667*T+0.0001313*T*T+0.00000414*T*T*T;\n ap[4]=273.277558+0.5994317*T+0.00070405*T*T+0.00000508*T*T*T;\n ap[5]=338.307800+1.0852207*T+0.00097854*T*T+0.00000992*T*T*T;\n ap[6]=98.071581+0.9857650*T-0.0010745*T*T-0.00000061*T*T*T;\n ap[7]=276.045975+0.3256394*T+0.00014095*T*T+0.000004113*T*T*T;\n ap[8]=113.76329; // Plutone\n\n \n var nd= new Array(); // Longitudine del nodo.\n\n nd[0]=47.145944+1.1852083*T+0.0001739*T*T; // Mercurio. \n nd[1]=75.779647+0.8998500*T+0.0004100*T*T; // Venere.\n nd[2]=0; // Terra\n nd[3]=48.786442+0.7709917*T-0.0000014*T*T-0.00000533*T*T*T; // Marte.\n nd[4]=99.443414+1.0105300*T+0.00035222*T*T-0.00000851*T*T*T; // Giove.\n nd[5]=112.790414+0.8731951*T-0.00015218*T*T-0.00000531*T*T*T; // Saturno.\n nd[6]=73.477111+0.4986678*T+0.0013117*T*T; // Urano.\n nd[7]=130.681389+1.0989350*T+0.00024987*T*T-0.000004718*T*T*T; // Nettuno.\n nd[8]=110.30347; // Plutone.\n\n\n\n var Long_media=gradi_360(L[np]);\n var Anomalia_media=gradi_360(M[np]);\n var Semiasse=a[np];\n var Periodo=p[np];\n var Inclinazione=i[np];\n var Long_perielio=gradi_360(ap[np]+nd[np]);\n var Long_nodo=nd[np];\n var eccentr=e[np];\n var dim_ang=d[np];\n var magnitudine=m[np];\n\n if(np==8) {Anomalia_media=gradi_360(Long_media-ap[8]-nd[8]); }\n\n\n var elem_orb=new Array(Periodo , Long_media , Anomalia_media , Long_perielio , eccentr , Semiasse , Inclinazione , Long_nodo , dim_ang , magnitudine);\n\nreturn elem_orb;\n\n}", "get allMillennialVampires() {\n let millenials = [];\n\n if (this.yearConverted > 1980) {\n millenials.push(this);\n }\n for (const child of this.offspring) {\n millenials = millenials.concat(child.allMillennialVampires);\n }\n return millenials;\n }", "function Iluminacao(pl, ka, ia, kd, od, ks, il, n) {\n this.pl = pl; //posições originais da fonte de luz em coordenadas de mundo\n this.pl_pvista_camera = pl; //adapta as posiçoes de entrada para o ponto de vista da camera\n this.ka = ka; // reflexão de luz ambiente (quanto maior, mais reflexível é)\n this.ia = ia; // intensidade da luz ambiente (quanto maior, mais iluminado kkk)\n this.kd = kd; // constante difusa, o quão espalhável é essa luz\n this.od = od; // vetor difuso, usado para simplesmente espalhar kkk\n this.ks = ks; // parte especular, como a luz vai ser refletida no objeto\n this.il = il; // cor da fonte de luz\n this.n = n; // constante de rugosidade, trata irregularidades, ruídos, enfim, frescura.\n}", "isMajor(){\n if(this.#type==\"Maj\")\n return true;\n if(this.#type==\"Min\")\n return false;\n return undefined\n }", "function boucleJeu() {\n\n var nouvelInterval = Date.now();\n\n\n\n //SI au premier instant du jeu on initialise le debut de l'interval a quelque chose\n if (!debutInterval) {\n debutInterval = Date.now();\n }\n\n gestionnaireObjets.repositionnerObjets(Bouteille, nouvelInterval);\n gestionnaireObjets.repositionnerObjets(Obstacle, nouvelInterval);\n gestionnaireObjets.repositionnerObjets(Voiture, nouvelInterval);\n\n\n //Si le nouveau temps est plus grand que l'accelaration souhaiter par rapport au début de l'interval\n if (nouvelInterval - debutInterval >= 20) {\n vitesseRoute += 0.005;\n\n debutInterval = nouvelInterval;\n }\n\n //Appliquer les déplacements\n gestionnaireObjets.deplacerLesObjets(vitesseRoute);\n }", "function esMayorDeEdad(persona){\n return persona.edad >= MAYORIAD_DE_EDAD;\n}", "function effemeridi_luna(TEMPO_RIF,LAT,LON,ALT,ITERAZIONI,LAN){\n\n // by Salvatore Ruiu Irgoli-Sardegna (Italy) Ottobre 2011\n // funzione per il calcolo delle effemeridi del Sole.\n // Parametri utilizzati:\n // TEMPO_RIF= \"TL\" o \"TU\" tempo locale o tempo universale.\n // LAT= latitudine in gradi sessadecimali.\n // LON= longtudine in gradi sessadecimali.\n // ALT= altitudine in metri.\n // ITERAZIONE =numero di ripetizioni del calcolo.\n // LAN=\"EN\" versione in inglese.\n\nvar njd=calcola_jdUT0(); // numero del giorno giuliano all'ora 0 di oggi.\n\n njd=njd+0.00078; // correzione per il Terrestrial Time.\n\nvar data_ins=0; // data\nvar data_inser=0; // data\n\nvar numero_iterazioni=ITERAZIONI;\n\nvar effe_luna=0;\nvar ar_luna=0;\nvar de_luna=0;\nvar classetab=\"colore_tabellaef1\";\nvar elongazione=0;\nvar effe1=0;\nvar coo_app=0; // coordinate equatoriali apparenti.\nvar costl=\"\"; // costellazione. \n\n document.write(\"<table width=100% class='.table_effemeridi'>\");\n document.write(\" <tr>\");\n\n // versione in italiano.\n\n if (LAN!=\"EN\") // diverso da EN\n {\n document.write(\" <td class='colore_tabella'>Data:</td>\");\n document.write(\" <td class='colore_tabella'>Sorge:</td>\");\n document.write(\" <td class='colore_tabella'>Culmina:</td>\");\n document.write(\" <td class='colore_tabella'>Tramonta:</td>\");\n document.write(\" <td class='colore_tabella'>Az. Sorge:</td>\");\n document.write(\" <td class='colore_tabella'>Az. Tramonta:</td>\");\n document.write(\" <td class='colore_tabella'>Ascensione Retta:</td>\");\n document.write(\" <td class='colore_tabella'>Declinazione:</td>\");\n document.write(\" <td class='colore_tabella'>Fase:</td>\");\n document.write(\" <td class='colore_tabella'>Elong:</td>\");\n document.write(\" <td class='colore_tabella'>Cost.:</td>\");\n }\n\n // versione in inglese.\n\nif (LAN==\"EN\")\n {\n\n document.write(\" <td class='colore_tabella'>Date:</td>\");\n document.write(\" <td class='colore_tabella'>Rise:</td>\");\n document.write(\" <td class='colore_tabella'>Transit:</td>\");\n document.write(\" <td class='colore_tabella'>Set:</td>\");\n document.write(\" <td class='colore_tabella'>Az. Rise:</td>\");\n document.write(\" <td class='colore_tabella'>Az. Set:</td>\");\n document.write(\" <td class='colore_tabella'>Right Ascension:</td>\");\n document.write(\" <td class='colore_tabella'>Declination:</td>\");\n document.write(\" <td class='colore_tabella'>Phase:</td>\");\n document.write(\" <td class='colore_tabella'>Elong:</td>\");\n document.write(\" <td class='colore_tabella'>Const.:</td>\");\n\n }\n\n document.write(\" </tr>\");\n\n // ST_SOLE_LUNA Array(azimut_sorgere,azimut_tramonto,tempo_sorgere,tempo_transito,tempo_tramonto)\n // 0 1 2 3 4\n\n njd=njd-1;\n\n for (b=0; b<numero_iterazioni; b++){\n\n njd=njd+1;\n effe1=ST_SOLE_LUNA(njd,TEMPO_RIF,\"L\",LON,LAT,ALT,0.25);\n\n effe_luna=pos_luna(njd);\n coo_app=pos_app(njd,effe_luna[0],effe_luna[1]) // coordinate apparenti.\n\n ar_luna= sc_ore(coo_app[0]); // ascensione retta.\n de_luna=sc_angolo(coo_app[1]); // declinazione.\n\n elongazione=effe_luna[4].toFixed(2);\n\n data_ins=jd_data(njd);\n\n if (LAN!=\"EN\") {data_inser=Lnum(parseInt(data_ins[0]),2)+\" : \"+Lnum(parseInt(data_ins[1]),2)+\"| \"+data_ins[3]}; // versione in italiano.\n if (LAN==\"EN\") {data_inser=Lnum(parseInt(data_ins[0]),2)+\" : \"+Lnum(parseInt(data_ins[1]),2)+\"| \"+data_ins[4]}; // versione in inglese.\n\n fase_luna=effe_luna[3].toFixed(2);\n\n costl=costell(coo_app[0]); // costellazione. \n\n if (b%2==0){classetab=\"colore_tabellaef2\"; }\n\n else {classetab=\"colore_tabellaef1\";}\n\n\n document.write(\" <tr>\");\n document.write(\" <td class='\"+classetab+\"'>\"+data_inser+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+effe1[2]+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+effe1[3]+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+effe1[4]+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+effe1[0]+\"&deg;</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+effe1[1]+\"&deg;</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+ar_luna+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+de_luna+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+fase_luna+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+elongazione+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+costl+\"</td>\");\n\n document.write(\" </tr>\");\n\n }\n document.write(\" </table>\");\n\n\n}", "get allMillennialVampires() {\n let answer = [];\n if (this.yearConverted >= 1980) {\n answer.push(this);\n }\n for (let descendent of this.offspring) {\n answer = answer.concat(descendent.allMillennialVampires);\n }\n return answer;\n }", "function calculateMoonPhase() {\n\tlet x = lambdaMapp - lambdaSun;\n\tx = Utils.norm360Deg(x);\n\tx = Math.round(10 * x) / 10;\n\tmoonPhaseAngle = x;\n\tif (x === 0) {\n\t\tmoonPhase = \" New\";\n\t}\n\tif (x > 0 && x < 90) {\n\t\tmoonPhase = \" +cre\";\n\t}\n\tif (x === 90) {\n\t\tmoonPhase = \" FQ\";\n\t}\n\tif (x > 90 && x < 180) {\n\t\tmoonPhase = \" +gib\";\n\t}\n\tif (x === 180) {\n\t\tmoonPhase = \" Full\";\n\t}\n\tif (x > 180 && x < 270) {\n\t\tmoonPhase = \" -gib\";\n\t}\n\tif (x === 270) {\n\t\tmoonPhase = \" LQ\";\n\t}\n\tif (x > 270 && x < 360) {\n\t\tmoonPhase = \" -cre\";\n\t}\n}", "function imprimirSiEsMayorDeEdad(persona) {\n // invocamos la funcion esMayorDeEdad desde-\n // esta otra funcion y la validamos dentro-\n // de un condicional\n if (esMayorDeEdad(persona)) {\n // Si la condicion se cumple imprime este console\n console.log(`${persona.nombre} es mayor de edad`);\n } else {\n // si la condicion no se comple imprime este\n console.log(`${persona.nombre} es menor de edad`);\n }\n}", "function ok2(){ \n if(j-avain2<0){\n \n r=29-avain2+j;\n \n \n }\n else{\n r=(j-avain2);\n \n }\n}", "function Deplacement_ennemiLimitrophe(Territoire){\r\n\tif (Territoire.army < 2) {return false}\r\n for (var i=0 ; i < Territoire.voisins.length ; i++){\r\n if (Territoire.proprietaire != Territoire.voisins[i].proprietaire ){\r\n return true\r\n }\r\n }\r\n return false\r\n}", "lifeExpectancyJupiter() {\n let jovianLifeExpectancy = Math.floor(this.lifeExpectancy/11.86);\n return jovianLifeExpectancy;\n }", "earthLifeExpectancy() {\n switch(this.continent) {\n case \"North America\": \n return this.gender === \"male\" ? 77 : 81;\n\n case \"South America\":\n return this.gender === \"male\" ? 73 : 79;\n\n case \"Europe\":\n return this.gender === \"male\" ? 75 : 82;\n\n case \"Asia\":\n return this.gender === \"male\" ? 71 : 74;\n\n case \"Africa\":\n return this.gender === \"male\" ? 61 : 64;\n\n case \"Oceania\":\n return this.gender === \"male\" ? 76 : 80;\n }\n }", "function areacuadrado (lado){\n return lado * lado;\n}", "function effemeridi_pianeti(np,TEMPO_RIF,LAT,LON,ALT,ITERAZIONI,STEP,LAN){\n\n // by Salvatore Ruiu Irgoli-Sardegna (Italy) ottobre 2011\n // funzione per il calcolo delle effemeridi del Sole.\n // Parametri utilizzati\n // np= numero identificativo del pianeta 0=Mercurio,1=Venere.....7=Nettuno\n // il valore np=2 (Terra) non deve essere utilizzato come parametro.\n // TEMPO_RIF= \"TL\" o \"TU\" tempo locale o tempo universale.\n // LAT= latitudine in gradi sessadecimali.\n // LON= longtudine in gradi sessadecimali.\n // ALT= altitudine in metri.\n // ITERAZIONE =numero di ripetizioni del calcolo.\n // STEP=salto \n // LAN=\"EN\" versione in inglese.\n \n \n var njd=calcola_jdUT0(); // numero del giorno giuliano all'ora 0 di oggi T.U.\n\n njd=njd+0.00078; // correzione per il Terrestrial Time.\n\n //njd=njd+t_luce(njd,np); // correzione tempo luce.\n \nvar data_ins=0; // data\nvar data_inser=0; // data\nvar numero_iterazioni=ITERAZIONI;\n\nvar fusoloc=-fuso_loc(); // recupera il fuso orario della località (compresa l'ora legale) e riporta l'ora del pc. come T.U.\n\nvar sorge=0;\nvar trans=0;\nvar tramn=0;\nvar azimuts=0;\nvar azimutt=0;\n\nvar effe_pianeta=0;\nvar ar_pianeta=0;\nvar de_pianeta=0;\nvar classetab=\"colore_tabellaef1\";\nvar istanti=0;\nvar magnitudine=0;\nvar fase=0;\nvar diametro=0;\nvar distanza=0;\nvar elongazione=0;\nvar costl=\"*\"; // nome della costellazione.\nvar parallasse=0;\nvar p_ap=0; // coordinate apparenti del pianeta.\n\nif (STEP==0) {STEP=1;}\n \n document.write(\"<table width=100% class='.table_effemeridi'>\");\n document.write(\" <tr>\");\n\n // versione in italiano.\n\n if (LAN!=\"EN\") // diverso da EN\n {\n document.write(\" <td class='colore_tabella'>Data:</td>\");\n document.write(\" <td class='colore_tabella'>Sorge:</td>\");\n document.write(\" <td class='colore_tabella'>Culmina:</td>\");\n document.write(\" <td class='colore_tabella'>Tramonta:</td>\");\n document.write(\" <td class='colore_tabella'>A. So.:</td>\");\n document.write(\" <td class='colore_tabella'>A. Tr.:</td>\");\n document.write(\" <td class='colore_tabella'>A. Retta:</td>\");\n document.write(\" <td class='colore_tabella'>Dec.:</td>\");\n document.write(\" <td class='colore_tabella'>Fase.</td>\");\n document.write(\" <td class='colore_tabella'>Dist.</td>\");\n document.write(\" <td class='colore_tabella'>Dia.</td>\");\n document.write(\" <td class='colore_tabella'>El.</td>\");\n document.write(\" <td class='colore_tabella'>Ma.</td>\");\n document.write(\" <td class='colore_tabella'>Cost.</td>\");\n }\n\n // versione in inglese.\n\nif (LAN==\"EN\")\n {\n\n document.write(\" <td class='colore_tabella'>Date:</td>\");\n document.write(\" <td class='colore_tabella'>Rise:</td>\");\n document.write(\" <td class='colore_tabella'>Transit:</td>\");\n document.write(\" <td class='colore_tabella'>Set:</td>\");\n document.write(\" <td class='colore_tabella'>Az. Rise:</td>\");\n document.write(\" <td class='colore_tabella'>Az. Set:</td>\");\n document.write(\" <td class='colore_tabella'>R.A.:</td>\");\n document.write(\" <td class='colore_tabella'>Dec.:</td>\");\n document.write(\" <td class='colore_tabella'>Ph.</td>\");\n document.write(\" <td class='colore_tabella'>Dist.</td>\");\n document.write(\" <td class='colore_tabella'>Dia.</td>\");\n document.write(\" <td class='colore_tabella'>El.</td>\");\n document.write(\" <td class='colore_tabella'>Ma.</td>\");\n document.write(\" <td class='colore_tabella'>Const.</td>\");\n\n }\n\n\n document.write(\" </tr>\");\n\n // ST_ASTRO_DATA Array(azimut_sorgere,azimut_tramonto,tempo_sorgere,tempo_transito,tempo_tramonto)\n // 0 1 2 3 4\n\n njd=njd-STEP;\n\n for (b=0; b<numero_iterazioni; b=b+STEP){\n njd=njd+STEP;\n effe_pianeta=pos_pianeti(njd,np); \n\n // calcola le coordinate apparenti nutazione e aberrazione.\n\n p_ap=pos_app(njd,effe_pianeta[0],effe_pianeta[1]);\n ar_pianeta= sc_ore(p_ap[0]); // ascensione retta in hh:mm:ss.\n de_pianeta=sc_angolo(p_ap[1],0); // declinazione. \n \n fase=effe_pianeta[2];\n magnitudine=effe_pianeta[3];\n distanza=effe_pianeta[4].toFixed(3);\n diametro=effe_pianeta[5].toFixed(1);\n elongazione=effe_pianeta[6].toFixed(1);\n costl=costell(effe_pianeta[0]); // costellazione.\n\n istanti=ST_ASTRO_DATA(njd,effe_pianeta[0],effe_pianeta[1],LON,LAT,ALT,0);\n\nif (TEMPO_RIF==\"TL\"){\n sorge=ore_24(istanti[2]+fusoloc);\n trans=ore_24(istanti[3]+fusoloc);\n tramn=ore_24(istanti[4]+fusoloc); }\n\nelse {\n sorge=ore_24(istanti[2]);\n trans=ore_24(istanti[3]);\n tramn=ore_24(istanti[4]); } \n\n sorge=sc_ore_hm(sorge); // istanti in hh:mm\n trans=sc_ore_hm(trans);\n tramn=sc_ore_hm(tramn);\n\n // formatta la data da inserire.\n\n data_ins=jd_data(njd);\n\n if (LAN!=\"EN\") {data_inser=Lnum(parseInt(data_ins[0]),2)+\":\"+Lnum(parseInt(data_ins[1]),2)+\" |\"+data_ins[3];} // versione in italiano.\n if (LAN==\"EN\") {data_inser=Lnum(parseInt(data_ins[0]),2)+\":\"+Lnum(parseInt(data_ins[1]),2)+\" |\"+data_ins[4];} // versione in inglese.\n\n azimuts=istanti[0].toFixed(1);\n azimutt=istanti[1].toFixed(1);\n\n if (b%2==0){classetab=\"colore_tabellaef2\"; }\n\n else {classetab=\"colore_tabellaef1\";}\n\n\n document.write(\" <tr>\");\n document.write(\" <td class='\"+classetab+\"'>\"+data_inser+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+sorge+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+trans+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+tramn+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+azimuts+\"&deg;</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+azimutt+\"&deg;</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+ar_pianeta+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+de_pianeta+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+fase+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+distanza+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+diametro+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+elongazione+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+magnitudine+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+costl+\"</td>\");\n\n document.write(\" </tr>\");\n\n }\n document.write(\" </table>\");\n\n\n}", "mayor(){\n let valor= this._data[0];\n for (let x of this._data){\n if(valor<x){\n valor=x;\n }\n }\n return valor;\n }", "function minimax(turno, estado, maximizando, profundidad, maxprof, movimiento){ //debo retornar [fila,columna,heuristica]\n if(profundidad==maxprof){\n // CALCULAR HEURISTICA \n return [movimiento[0], movimiento[1], movimiento[2]]; //si ya no hay sucesores \n } \n var movimientosposibles = getMovimientosPosibles(turno, estado); // elementos [fila, columna, piezascomibles] \n \n var estadoshijos = [];\n for(mov of movimientosposibles){\n var nuevoestado = ejecutarEstado(turno, estado, mov);\n estadoshijos.push([nuevoestado, mov, 0]); // cada hijo guarda [nuevoestado | movimiento que ejecuta 1 | heuristica(no calculada)]\n // 0 1 2\n }\n if(estadoshijos.length==0){\n // CALCULAR HEURISTICA \n return [movimiento[0], movimiento[1], movimiento[2]]; //si ya no hay sucesores \n }else{\n //una vez generados los hijos mandarlos a generar sus hijos\n //console.log(estadoshijos)\n var mejorheuristic = 0\n var mejormov = []\n var flag = true\n var nextTurn = turno=='0'? '1' : '0'\n for(hijo of estadoshijos){\n \n var result = minimax(nextTurn, hijo[0], !maximizando, profundidad+1, maxprof, hijo[1])\n hijo[2] = result[2] //Le coloco la heuristica resultante \n //console.log(hijo);\n if(flag){\n mejorheuristic = hijo[2] //solo la primera vez que entra al ciclo para empezar a comparar \n mejormov = hijo[1]\n flag = !flag\n }\n if(maximizando){\n if(hijo[2]>mejorheuristic){\n mejorheuristic = hijo[2];\n mejormov = hijo[1];\n\n }\n }else{//minimizando\n if(hijo[2]<mejorheuristic){\n mejorheuristic = hijo[2];\n mejormov = hijo[1];\n }\n }\n }\n return [mejormov[1][0], mejormov[1][1], mejorheuristic] \n }\n}", "function calcularNotaMayor(){\n var indiceNotaMayor = 0;\n var notaMayor = estudiantes[indiceNotaMayor].nota;\n\n for(var i = 1; i < estudiantes.length; ++i){\n if(estudiantes[i].nota > notaMayor){\n notaMayor = estudiantes[i].nota;\n indiceNotaMayor = i;\n }\n }\n\n alert(\"El estudiante \" + estudiantes[indiceNotaMayor].nombre + \" tiene la nota mayor: \" + notaMayor);\n}", "morto() {\r\n return this.hp <= 0;\r\n }", "function nota_menor(){\n\t\tvar menor = notas.indexOf(Math.min.apply(null, notas ));\n\t\tdocument.getElementById(\"menor\").innerHTML = \"La nota menor del estudiante: <b>\" + nombre_alumno(menor) + \"</b>\";\n\t}", "function moon_facts()\n{\n with (Math) {\n\n var dt_as_str, mm, yy, i, tmp, k, t;\n var M, M1, F, NM_FM, FQ_LQ, RAD = 180 / PI;\n var jd_temp, d_of_w, dow_str, zz, ff, alpha;\n var aa, bb, cc, dd, ee, calendar_day, month;\n var calendar_month, int_day, hours, minutes;\n\n moon_data = \"\";\n phase[0] = \"New Moon \";\n phase[1] = \"Moon at first quarter \";\n phase[2] = \"Full Moon \";\n phase[3] = \"Moon at last quarter \";\n\n dt_as_str = document.planets.date_txt.value;\n yy = eval(dt_as_str.substring(6,10));\n mm = eval(dt_as_str.substring(0,2));\n dd = eval(dt_as_str.substring(3,5));\n\n tmp = floor(((yy + (mm - 1) / 12 + dd / 365.25) - 1900.0) * 12.3685);\n\n for (i=0; i<4; i++)\n {\n k = tmp + i * 0.25;\n t = k / 1236.85;\n M = proper_ang(359.2242 + 29.10535608 * k - 0.0000333 * pow(t,2) - 0.00000347 * pow(t,3)) / RAD;\n M1 = proper_ang(306.0253 + 385.81691806 * k + 0.0107306 * pow(t,2) + 0.00001236 * pow(t,3)) / RAD;\n F = proper_ang(21.2964 + 390.67050646 * k - 0.0016528 * pow(t,2) - 0.00000239 * pow(t,3)) / RAD;\n NM_FM = (0.1734 - 0.000393 * t) * sin(M) + 0.0021 * sin(2 * M) - 0.4068 * sin(M1) + 0.0161 * sin(2 * M1) - 0.0004 * sin(3 * M1) + 0.0104 * sin(2 * F) - 0.0051 * sin(M + M1) - 0.0074 * sin(M - M1) + 0.0004 * sin(2 * F + M) - 0.0004 * sin(2 * F - M) - 0.0006 * sin(2 * F + M1) + 0.0010 * sin(2 * F - M1) + 0.0005 * sin(M + 2 * M1);\n FQ_LQ = (0.1721 - 0.0004 * t) * sin(M) + 0.0021 * sin(2 * M) - 0.628 * sin(M1) + 0.0089 * sin(2 * M1) - 0.0004 * sin(3 * M1) + 0.0079 * sin(2 * F) - 0.0119 * sin(M + M1) - 0.0047 * sin(M - M1) + 0.0003 * sin(2 * F + M) - 0.0004 * sin(2 * F - M) - 0.0006 * sin(2 * F + M1) + 0.0021 * sin(2 * F - M1) + 0.0003 * sin(M + 2 * M1) + 0.0004 * sin(M - 2 * M1) - 0.0003 * sin(2 * M + M1);\n phases[i] = 2415020.75933 + 29.53058868 * k + 0.0001178 * pow(t,2) - 0.000000155 * pow(t,3) + 0.00033 * sin(2.907 + 2.319 * t - 1.6e-4 * pow(t,2));\n if (i == 0 || i == 2) phases[i] += NM_FM;\n if (i == 1) phases[i] = phases[i] + FQ_LQ + 0.0028 - 0.0004 * cos(M) + 0.0003 * cos(M1);\n if (i == 3) phases[i] = phases[i] + FQ_LQ - 0.0028 + 0.0004 * cos(M) - 0.0003 * cos(M1);\n }\n new_moon = phases[0];\n\n for (i=0; i<4; i++)\n {\n jd_temp = phases[i] + 0.5;\n\n d_of_w = floor(jd_temp + 1.0) % 7;\n if (d_of_w == 0) dow_str = \"Sun.\";\n if (d_of_w == 1) dow_str = \"Mon.\";\n if (d_of_w == 2) dow_str = \"Tue.\";\n if (d_of_w == 3) dow_str = \"Wed.\";\n if (d_of_w == 4) dow_str = \"Thu.\";\n if (d_of_w == 5) dow_str = \"Fri.\";\n if (d_of_w == 6) dow_str = \"Sat.\";\n\n zz = floor(jd_temp);\n ff = jd_temp - zz;\n alpha = floor((zz - 1867216.25) / 36524.25);\n aa = zz + 1 + alpha - floor(alpha / 4);\n bb = aa + 1524;\n cc = floor((bb - 122.1) / 365.25);\n dd = floor(365.25 * cc);\n ee = floor((bb - dd) / 30.6001);\n calendar_day = bb - dd - floor(30.6001 * ee) + ff;\n calendar_month = ee;\n if (ee < 13.5) calendar_month = ee - 1;\n if (ee > 13.5) calendar_month = ee - 13;\n calendar_year = cc;\n if (calendar_month > 2.5) calendar_year = cc - 4716;\n if (calendar_month < 2.5) calendar_year = cc - 4715;\n int_day = floor(calendar_day);\n hours = (calendar_day - int_day) * 24;\n minutes = floor((hours - floor(hours)) * 60 + 0.5);\n hours = floor(hours);\n if (minutes > 59)\n {minutes = 0; hours = hours + 1;}\n if (hours < 10) hours = \"0\" + hours;\n if (minutes < 10) minutes = \"0\" + minutes;\n if (int_day < 10) int_day = \"0\" + int_day;\n\n if (calendar_month == 1) month = \"Jan.\";\n if (calendar_month == 2) month = \"Feb.\";\n if (calendar_month == 3) month = \"Mar.\";\n if (calendar_month == 4) month = \"Apr.\";\n if (calendar_month == 5) month = \"May \";\n if (calendar_month == 6) month = \"Jun.\";\n if (calendar_month == 7) month = \"Jul.\";\n if (calendar_month == 8) month = \"Aug.\";\n if (calendar_month == 9) month = \"Sep.\";\n if (calendar_month == 10) month = \"Oct.\";\n if (calendar_month == 11) month = \"Nov.\";\n if (calendar_month == 12) month = \"Dec.\";\n\n moon_data += dow_str + \" \" + month + \" \" + int_day + \", \" + calendar_year + \" \" + phase[i] + \"(\" + hours + \":\" + minutes + \" UT)\";\n\n if (i == 1 || i == 3)\n {\n moon_data += \"\\n\"\n }\n else\n {\n moon_data += \" \";\n }\n\n }\n\n }\n}", "function verificarJogadasDiag(player) {\n \n let jogadas = [];\n\n let pecasJogador = pecasJogadorB;\n let pecaAdversario = \"dark\";\n if(player == \"dark\") {\n\tpecasJogador = pecasJogadorP;\n\tpecaAdversario = \"light\";\n }\n\n for(let i=0; i<pecasJogador.length; i++) {\n\tlet pos = pecasJogador[i];\n\t// conversão dos indices unidimensionais para bidimensionais\n\tlet x_pos = Math.floor(pos % 8);\n\tlet y_pos = Math.floor(pos / 8);\n\n\t// parte inferior direita\n\tfor(let x=x_pos+1, y=y_pos+1; x<8 && y<8; x++, y++) {\n\n\t // conversão indice bidimensional para unidimensional\n\t // na diagonal, tanto o x como o y variam \n\t let j = x + y * 8;\n\t \n\t if (cont[x][y] == player) { // se o jogador se der com uma peça sua então a jogada j não é possível\n\t\t\n\t\tbreak;\n\t\t\n\t } else if (cont[x][y] == pecaAdversario) { // ciclo continua enquanto forem encontradas peças do adversário\n\t\t\n\t\tcontinue;\n\t\t\n\t } else { // quando é encontrada uma casa livre\n\n\t\t// se ficar garantido que a casa anterior contém uma peça do adversário\n\t\tif (x >= x_pos + 2 && y >= y_pos + 2 && cont[x-1][y-1] == pecaAdversario) {\n\t\t // SE -> a jogada é propagada na diagonal SUPERIOR ESQUERDA da peça colocada\n\t\t // até a outro extremo que contenha outra peça do jogador\n\t\t jogadas.push([j, \"SE\"]);\n\t\t} \n\n\t\tbreak;\n\t\t\n\t } \n\t}\n\n\t// parte inferior esquerda\n\tfor(let x=x_pos+1, y=y_pos-1; x<8 && y>=0; x++, y--) {\n\n\t // conversão indice bidimensional para unidimensional\n\t // na diagonal, tanto o x como o y variam \n\t let j = x + y * 8;\n\t \n\t if (cont[x][y] == player) { // se o jogador se der com uma peça sua então a jogada j não é possível\n\t\t\n\t\tbreak;\n\t\t\n\t } else if (cont[x][y] == pecaAdversario) { // ciclo continua enquanto forem encontradas peças do adversário\n\t\t\n\t\tcontinue;\n\t\t\n\t } else { // quando é encontrada uma casa livre\n\n\t\t// se ficar garantido que a casa anterior contém uma peça do adversário\n\t\tif (x >= x_pos + 2 && y <= y_pos - 2 && cont[x-1][y+1] == pecaAdversario) {\n\t\t // SD -> a jogada é propagada na diagonal SUPERIOR DIREITA da peça colocada\n\t\t // até ao outro extremo que contenha outra peça do jogador\n\t\t jogadas.push([j, \"SD\"]); \n\t\t} \n\t\tbreak;\n\t }\n\t}\n\t\n\t// parte superior esquerda\n\tfor(let x=x_pos-1, y=y_pos-1; x>=0 && y>=0; x--, y--) {\n\n\t // conversão indice bidimensional para unidimensional\n\t // na diagonal, tanto o x como o y variam \n\t let j = x + y * 8;\n\t \n\t if (cont[x][y] == player) { // se o jogador se der com uma peça sua então a jogada j não é possível\n\t\t\n\t\tbreak;\n\t\t\n\t } else if (cont[x][y] == pecaAdversario) { // ciclo continua enquanto forem encontradas peças do adversário\n\t\t\n\t\tcontinue;\n\t\t\n\t } else { // quando é encontrada uma casa livre\n\n\t\t// se ficar garantido que a casa anterior contém uma peça do adversário\n\t\tif (x <= x_pos - 2 && y <= y_pos - 2 && cont[x+1][y+1] == pecaAdversario) {\n\t\t // ID -> a jogada é propagada na diagonal INFERIOR DIREITA da peça colocada\n\t\t // até a outro extremo que contenha outra peça do jogador\n\t\t jogadas.push([j, \"ID\"]);\n\t\t}\n\t\tbreak;\n\t }\n\t}\n\n\t// parte superior direita\n\tfor(let x=x_pos-1, y=y_pos+1; x>=0 && y<8; x--, y++) {\n\n\t // conversão indice bidimensional para unidimensional\n\t // na diagonal, tanto o x como o y variam \n\t let j = x + y * 8;\n\t \n\t if (cont[x][y] == player) { // se o jogador se der com uma peça sua então a jogada j não é possível\n\t\t\n\t\tbreak;\n\t\t\n\t } else if (cont[x][y] == pecaAdversario) { // ciclo continua enquanto forem encontradas peças do adversário\n\t\t\n\t\tcontinue;\n\t\t\n\t } else { // quando é encontrada uma casa livre\n\t\t\n\t\t// se ficar garantido que a casa anterior contém uma peça do adversário\n\t\tif (x <= x_pos - 2 && y >= y_pos + 2 && cont[x+1][y-1] == pecaAdversario) {\n\t\t // IE -> a jogada é propagada na diagonal INFERIOR ESQUERDA da peça colocada\n\t\t // até a outro extremo que contenha outra peça do jogador\n\t\t jogadas.push([j, \"IE\"]);\n\n\t\t} \n\t\tbreak;\n\t }\n\t}\n }\n\n return jogadas;\n \n}", "function detailMunicipio(){\n munD = '';\n if (map.getZoom() >= 14){\n\t var latDet = roundNumber(targetCoordMun.lat(),7); while (latDet.length != 10){latDet = latDet + \"0\" + \"\";}\n\t\tvar lngDet = roundNumber(targetCoordMun.lng(),7); while (lngDet.length != 10){lngDet = lngDet + \"0\" + \"\";}\n\t\t\n\t\tvar plesso = coordPless['\"'+lngDet+','+latDet+'\"'][0];\n\t\t\n\t for (var x in plesso){\n\t\t\tmunD = plesso[x][\"M\"];\n\n\t\t}\n }\n\n}", "function jogadorColidiu(){\n\tinimigos.forEach(colisaoPlayer);\n}", "function cfasi_lunari(mese,anno,fase){\n\n // by Salvatore Ruiu Irgoli-Sardegna (Italy) Luglio 2010\n // funzione per il calcolo delle fasi lunari.\n // mese= numero del mese da 1 a 12.\n // anno=anno di riferimento.\n // k=0.00 per la luna nuova\n // k=0.25 per il primo quarto.\n // k=0.50 per la luna piena\n // k=0.75 per l'ultimo quarto.\n // fase= valore numerico per la fase 0 - 0.25 - 0.50 - 0.75 sono ammessi solo questi valori.\n \nvar anno_dec=anno+(mese/12);\nvar k=(anno_dec-1900)*12.3685; // calcolo della costante k. (parseInt) tronca la parte decimale\n k=parseInt(k)*1+fase*1;\n \nvar T=k/1236.85;\n\nvar fseno=166.56+132.87*T-0.009173*T*T;\n fseno=fseno/180*Math.PI;\n\nvar njd_fase =2415020.75933+29.53058868*k+0.0001178*T*T-0.000000155*T*T*T+0.00033*Math.sin(fseno);\n\n // calcolo anomalia media del sole.\n\nvar M=359.2242+29.10535608*k-0.0000333*T*T-0.00000347*T*T*T;\n M=gradi_360(M);\n M=M/180*Math.PI;\n\n // calcolo anomalia media della luna.\n\nvar M1=306.0253+385.81691806*k+0.0107306*T*T+0.00001236*T*T*T;\n M1=gradi_360(M1);\n M1=M1/180*Math.PI;\n\n // calcolo dell'argomento della latitudine della luna.\n\nvar F=21.2964+390.67050646*k-0.0016528*T*T-0.00000239*T*T*T;\n F=gradi_360(F);\n F=F/180*Math.PI;\n\n // calcolo correzioni per la luna nuova e piena.\n\nvar correzione1=0;\n\nif (fase==0 || fase==0.50) {\n \n correzione1= (0.1734-0.000393*T)*Math.sin(M)\n +0.0021*Math.sin(2*M)\n -0.4068*Math.sin(M1)\n +0.0161*Math.sin(2*M1)\n -0.0004*Math.sin(3*M1)\n +0.0104*Math.sin(2*F)\n -0.0051*Math.sin(M+M1)\n -0.0074*Math.sin(M-M1)\n +0.0004*Math.sin(2*F+M)\n -0.0004*Math.sin(2*F-M)\n -0.0006*Math.sin(2*F+M1)\n +0.0010*Math.sin(2*F-M1)\n +0.0005*Math.sin(M+2*M1); \n}\n\nelse if (fase==0.25 || fase==0.75) {\n \n correzione1= (0.1721-0.0004*T)*Math.sin(M)\n +0.0021*Math.sin(2*M)\n -0.6280*Math.sin(M1)\n +0.0089*Math.sin(2*M1)\n -0.0004*Math.sin(3*M1)\n +0.0079*Math.sin(2*F)\n -0.0119*Math.sin(M+M1)\n -0.0047*Math.sin(M-M1)\n +0.0003*Math.sin(2*F+M)\n -0.0004*Math.sin(2*F-M)\n -0.0006*Math.sin(2*F+M1)\n +0.0021*Math.sin(2*F-M1)\n +0.0003*Math.sin(M+2*M1)\n +0.0004*Math.sin(M-2*M1)\n -0.0003*Math.sin(2*M+M1); \n}\n\nelse {alert(\"Valore fase \"+fase+\" non valido!\");}\n\nvar njd_fase=njd_fase+correzione1; // per la luna nuova.\n\n // njd_fase= numero dei giorni giuliani.\nreturn njd_fase;\n\n}", "function mortal(i){\n if(i>=1 && i<=5){\n\t return men[i-1]+' is mortal';\t\n }\n}", "pacManBewegen() {\n let knoten = this.knoten;\n let geist = this.geist;\n let pacman = this.pacMan;\n let pillen = this.pillen;\n if (!this.beendet) { //darf sich nur bewegen wenn das spiel noch nicht zuende ist\n let PacManAltX = pacman.posX;\n let PacManAltY = pacman.posY;\n if (zustand.aengstlich) { //jagdmodus pacman sucht hier den kürzesten weg zum geist um ihn zu jagen und beschreitet diesen\n let zielRoute = astar.search(knoten, pacman.posX, pacman.posY, geist.posX, geist.posY);\n pacman.posX = zielRoute[0].posX;\n pacman.posY = zielRoute[0].posY;\n\n\n } else if ((pacman.darfwegglaufen && pacman.getAbstand(geist.posX, geist.posY) < 6) || !geist.isMoving) { //pacman weglaufen lassen wenn der geist steht oder die Manhattandistanz kleiner als 6 ist\n let aktKnoten = knoten[pacman.posY][pacman.posX];\n let auswege = aktKnoten.nachbarn;\n let bestnachbar = auswege[0];\n let bestabstand = geist.getAbstand(bestnachbar.posX, bestnachbar.posY);\n for (let i = 1; i < auswege.length; i++) {\n let neuabstand = geist.getAbstand(auswege[i].posX, auswege[i].posY);\n if (neuabstand > bestabstand) {\n bestabstand = neuabstand;\n bestnachbar = auswege[i];\n }\n }\n pacman.posX = bestnachbar.posX;\n pacman.posY = bestnachbar.posY;\n\n if (!this.toogleTimerAn) {\n //noinspection JSCheckFunctionSignatures\n clearTimeout(Spielvariablen.intervalle.flucht);\n //noinspection JSCheckFunctionSignatures\n clearTimeout(Spielvariablen.intervalle.nonflucht);\n //noinspection JSCheckFunctionSignatures\n Spielvariablen.intervalle.flucht=setTimeout(Spielvariablen.funtionen.flucht, 5000);\n //noinspection JSCheckFunctionSignatures\n Spielvariablen.intervalle.nonflucht=setTimeout(Spielvariablen.funtionen.nonflucht, 7000);\n this.toogleTimerAn = true;\n }\n\n }\n //keine jagt und kein weglaufen also nächste pille suchen und essen ;-)\n else {\n //--nächste pille rausfinden mittels manhattan distanz rausfinden;\n Spielvariablen.funtionen.shuffle(pillen);\n let nahestPille = 0;\n let nahestPilleManhattan = 1000;\n if (pillen.length == 0) {\n zustand.status = 3;\n Spielvariablen.Spielstart = false;\n return;\n }\n for (let i = 0; i < pillen.length; i++) {\n let manhattan = astar.manhattan(pacman.posX, pacman.posY, pillen[i].posX, pillen[i].posY);\n if (manhattan < nahestPilleManhattan) {\n nahestPilleManhattan = manhattan;\n nahestPille = i;\n }\n }\n\n let zielPille = pillen[nahestPille];\n let zielRoute = astar.search(knoten, pacman.posX, pacman.posY, zielPille.posX, zielPille.posY);\n pacman.posX = zielRoute[0].posX;\n pacman.posY = zielRoute[0].posY;\n }\n if (knoten[pacman.posY][pacman.posX].pille != null) {\n let pille = knoten[pacman.posY][pacman.posX].pille;\n knoten[pacman.posY][pacman.posX].pille = null;\n pillen.splice(pillen.indexOf(pille), 1);\n if (pille.isGross) {\n zustand.aengstlich = true;\n //noinspection JSCheckFunctionSignatures\n clearTimeout(Spielvariablen.intervalle.verwirrt);\n //noinspection JSCheckFunctionSignatures\n Spielvariablen.intervalle.verwirrt=setTimeout(Spielvariablen.funtionen.verwirrt, 10000);\n }\n }\n\n if (PacManAltY < pacman.posY) {\n pacman.offsetY = -this.factor;\n pacman.richtung = Spielvariablen.Richtungen.links;\n }\n if (PacManAltY > pacman.posY) {\n pacman.offsetY = this.factor;\n pacman.richtung = Spielvariablen.Richtungen.rechts;\n }\n if (PacManAltX < pacman.posX) {\n pacman.offsetX = -this.factor;\n pacman.richtung = Spielvariablen.Richtungen.hoch;\n }\n if (PacManAltX > pacman.posX) {\n pacman.offsetX = this.factor;\n pacman.richtung = Spielvariablen.Richtungen.runter;\n }\n\n\n if (pacman.posX == geist.posX && pacman.posY == geist.posY) {\n this.beendet = true;\n }\n //PacMan Bewegen Ende\n\n //gewinnüberprüfung\n if (this.beendet) {\n zustand.status = 3;\n Spielvariablen.Spielstart = false;\n }\n\n\n }\n\n }", "function auxNaipes(promedio) {\n let simbolo;\n\n if(promedio > 0 && promedio <= 19) \n simbolo = 'A';\n else if(promedio >= 20 && promedio <= 38) \n simbolo = 'B';\n else if(promedio >= 39 && promedio <= 57) \n simbolo = 'C';\n else if(promedio >= 58 && promedio <= 76) \n simbolo = 'D';\n else if(promedio >= 77 && promedio <= 95) \n simbolo = 'E';\n else if(promedio >= 96 && promedio <= 114) \n simbolo = 'F';\n else if(promedio >= 115 && promedio <= 133) \n simbolo = 'G';\n else if(promedio >= 134 && promedio <= 152) \n simbolo = 'H';\n else if(promedio >= 153 && promedio <= 171) \n simbolo = 'I';\n else if(promedio >= 172 && promedio <= 190) \n simbolo = 'J';\n else if(promedio >= 191 && promedio <= 209) \n simbolo = 'K';\n else if(promedio >= 210 && promedio <= 228) \n simbolo = 'L';\n else if(promedio >= 229 && promedio <= 256) \n simbolo = 'M';\n return simbolo;\n\n}", "function imprimirSiEsMayorDeEdad (persona) {\n //llamamos a la otra funcion\n if (esMayorDeEdad (persona))\n console.log (`${persona.nombre} es mayor de edad`)\n\n else {\n console.log (`${persona.nombre} es menor de edad`)\n }\n}", "function mas_cercano(pendientes, caminos)\n{\n//inicializamos las variables usadas\nvar camino_nodo=new Array();//[id_nodo,peso,[Camino]];\ncamino_nodo[2]=new Array();//Aqui guardamos el camino para llegar al menor\nvar tam=pendientes.length;//variable para controlar el numero de iteraciones\nvar aux;\nvar id_menor_actual=pendientes[0];\nvar indice=0;\nvar pos_menor_actual=posicion_camino_dijkstra(pendientes[0],caminos);//\n//console.log(\"El menor es \"+id_menor_actual+\"y esta en la posicion \"+pos_menor_actual);\nvar peso_menor_actual=caminos[pos_menor_actual][1];//Inicializamos con el peso del primero a evaluar\n\t//console.log(\"entro al for???\"+tam);\n\tfor(var i=1;i<tam;i++)\n\t{\n\t//console.log(\"si entro al for siquiera\");\n\taux=posicion_camino_dijkstra(pendientes[i],caminos);//determinamos la posicion del camino al elemento por el que queremos pasar\n\t\tif(peso_menor_actual>caminos[aux][1])//si el peso es mayor\n\t\t{\n\t\t//console.log(\"entre aqui :D\");\n\t\tid_menor_actual=pendientes[i];//guardamos el id del menor actual\n\t\tindice=i;\n\t\tpeso_menor_actual=caminos[aux][1];//guardamos el peso del menor actual\n\t\tpos_menor_actual=aux;//guardamos la posicion del elemento en el arreglo caminos\n\t\t}\n\t}\n\t//console.log(\"ya termine :D\");\n\tcamino_nodo[0]=id_menor_actual;\n\tcamino_nodo[1]=peso_menor_actual;\n\t//copiamos el camino correspondiente en el camino_nodo[2]\n\taux=caminos[pos_menor_actual][2].length;\n\tpendientes.splice(indice, 1);//quitamos el elemento de la lista de pendientes\n\tfor(var i=0;i<aux;i++)\n\t{\n\tcamino_nodo[2][i]=caminos[pos_menor_actual][2][i];\n\t}\n\t\nreturn camino_nodo;\t\n}", "function kindle(ob1, ob2){\r\n if(!ob1.weldJoint){\r\n var dis=b2Vec2.distance(ob1.body.GetPosition(), ob2.body.GetPosition());\r\n if(dis<1){\r\n ob1.flame=true;\r\n // console.info(ob1.flame);\r\n }\r\n }\r\n}", "function Get_Nutation_in_Obliquity(TT_Cent) {\n\tvar T = TT_Cent ;\t\n\tvar MEM = radians(297.85036 + T * (445267.11148 + T * (-0.0019142 + T / 189474))) ;\n\tvar MAS = radians(357.52772 + T * (35999.05034 + T * (-0.0001603 - T / 300000))) ;\n\tvar MAM = radians(134.96298 + T * (477198.867398 + T * ( 0.0086972 + T / 56250))) ;\n\tvar MAL = radians( 93.27191 + T * (483202.017538 + T * (-0.0036825 + T / 327270))) ;\n\tvar LAN = radians(125.04452 + T * (-1934.136261 + T * ( 0.0020708 + T / 450000))) ;\n\n\tvar Nut_in_Obl_deg = 0 ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (92025 + 8.9 * T) * Math.cos( LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 5736 - 3.1 * T) * Math.cos(-2 * MEM + 2 * MAL + 2 * LAN) ;\n\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 977 - 0.5 * T) * Math.cos( 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (- 895 + 0.5 * T) * Math.cos( 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 54 - 0.1 * T) * Math.cos(MAS) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (- 7) * Math.cos(MAM) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 224 - 0.6 * T) * Math.cos(-2 * MEM + MAS + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 200) * Math.cos(2 * MAL + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 129 - 0.1 * T) * Math.cos(MAM + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (- 95 + 0.3 * T) * Math.cos(-2 * MEM - MAS + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (- 70) * Math.cos(-2 * MEM + 2 * MAL + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (- 53) * Math.cos(-MAM + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (- 33) * Math.cos(MAM + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 26) * Math.cos(2 * MEM - MAM + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 32) * Math.cos(-MAM + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 27) * Math.cos(MAM + 2 * MAL + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (- 24) * Math.cos(-2 * MAM + 2 * MAL + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 16) * Math.cos(2 * MEM + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + ( 13) * Math.cos(2 * MAM + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (- 12) * Math.cos(-2 * MEM + MAM + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (-10) * Math.cos(-MAM + 2 * MAL + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (-8) * Math.cos(2 * MEM - MAM + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (7) * Math.cos(-2 * MEM + 2 * MAS + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (9) * Math.cos(MAS + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (7) * Math.cos(-2 * MEM + MAM + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (6) * Math.cos(-MAS + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (5) * Math.cos(2 * MEM - MAM + 2 * MAL + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (3) * Math.cos(2 * MEM + MAM + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (-3) * Math.cos(MAS + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (3) * Math.cos(-MAS + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (3) * Math.cos(2 * MEM + 2 * MAL + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (-3) * Math.cos(-2 * MEM + 2 * MAM + 2 * MAL + 2 * LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (-3) * Math.cos(-2 * MEM + MAM + 2 * MAL + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (3) * Math.cos(2 * MEM - 2 * MAM + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (3) * Math.cos(2 * MEM + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (3) * Math.cos(-2 * MEM - MAS + 2 * MAL + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (3) * Math.cos(-2 * MEM + LAN) ;\n\tNut_in_Obl_deg = Nut_in_Obl_deg + (3) * Math.cos(2 * MAM + 2 * MAL + LAN) ;\n\t\t\n\tNut_in_Obl_deg = Nut_in_Obl_deg * 0.0001 / 3600 ;\n\treturn Nut_in_Obl_deg ;\n}", "get allMillennialVampires() {\n let millenialVamps = [];\n if (this.yearConverted > 1980) {\n millenialVamps.push(this);\n }\n for (let vampChild of this.offspring) {\n millenialVamps = millenialVamps.concat(vampChild.allMillennialVampires);\n }\n return millenialVamps;\n }", "static moyenneNote(tableauNotes,idStagiaire = -1) {\n\n // sommes des notes*coef\n // sommes des coef\n\n let sommeNoteCoef = 0\n let sommeCoef = 0\n \n tableauNotes.forEach(function(element) {\n if (element.id === idStagiaire || idStagiaire === -1) {\n sommeNoteCoef += element.note * element.coef\n sommeCoef += element.coef\n }\n\n });\n\n if (sommeCoef != 0 && tableauNotes.length !=0) {\n return sommeNoteCoef /sommeCoef\n }\n else {\n return -1\n }\n\n\n }", "isTonic(note) {\n return (note % 12) == this.offset();\n }", "lifeExpectancyVenus() {\n let venusianLifeExpectancy = Math.floor(this.lifeExpectancy/0.62);\n return venusianLifeExpectancy;\n }" ]
[ "0.60646623", "0.6022679", "0.59067726", "0.5822207", "0.58007336", "0.5775825", "0.57528806", "0.5673377", "0.5641583", "0.5629102", "0.56190675", "0.5605998", "0.560377", "0.55973643", "0.5568433", "0.55676144", "0.55631924", "0.55429137", "0.5531235", "0.54835206", "0.54818547", "0.54725593", "0.5469462", "0.5459245", "0.5459018", "0.54354715", "0.5417133", "0.539407", "0.53929734", "0.53920346", "0.538609", "0.5384484", "0.53839433", "0.53771377", "0.5373989", "0.53727335", "0.5371739", "0.53705305", "0.53522235", "0.5352223", "0.5344055", "0.53409886", "0.5338837", "0.5326831", "0.53219604", "0.5315112", "0.53145707", "0.53105146", "0.5309814", "0.53089833", "0.5307473", "0.53057253", "0.5304545", "0.5294873", "0.52873164", "0.52820885", "0.52817506", "0.5277961", "0.52771556", "0.52688694", "0.5268342", "0.52676064", "0.5266747", "0.52633804", "0.52540773", "0.5253677", "0.5253143", "0.52499014", "0.524929", "0.52474296", "0.5241777", "0.5238911", "0.52365685", "0.5232938", "0.5231761", "0.52297395", "0.52274585", "0.5221603", "0.52215654", "0.52215266", "0.52137065", "0.5213036", "0.52071023", "0.5206819", "0.5206734", "0.5205186", "0.5201853", "0.52011734", "0.5200666", "0.51996094", "0.51982677", "0.5197498", "0.51968175", "0.5195868", "0.51875854", "0.5184512", "0.51817673", "0.51781654", "0.5172137", "0.51711583", "0.51613414" ]
0.0
-1
MODIFIED MOMENT OF INERTIA
Deflection_DL_NonComposite(){ return 5*(this.DL*this.Sj/(12*12))*Math.pow(this.Lj,4)*Math.pow(12,4)/(384*29000000*this.Ij_modified()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "alterRenteninfo (person) {\n const geburtsjahr = person.geburtstag.getFullYear()\n return person.jahrRenteninfo - 1 - geburtsjahr\n }", "get modified() {\n return this.data.modified;\n }", "function cumpleanosModificadonObjeto(persona) {\n persona.edad += 1;\n}", "function edadEvil (persona)\n{\n persona.edad += 1\n}// esta función modificara la edad del objeto en cuestion, esto se hace por si quieres modificar el objecto original ", "function _AtualizaModificadoresAtributos() {\n // busca a raca e seus modificadores.\n var modificadores_raca = tabelas_raca[gPersonagem.raca].atributos;\n\n // Busca cada elemento das estatisticas e atualiza modificadores.\n var atributos = [\n 'forca', 'destreza', 'constituicao', 'inteligencia', 'sabedoria', 'carisma' ];\n for (var i = 0; i < atributos.length; ++i) {\n var atributo = atributos[i];\n // Valor do bonus sem base.\n var dom_bonus = Dom(atributo + '-mod-bonus');\n ImprimeSinalizado(gPersonagem.atributos[atributo].bonus.Total(['base']), dom_bonus, false);\n Titulo(gPersonagem.atributos[atributo].bonus.Exporta(['base']), dom_bonus);\n\n // Escreve o valor total.\n var dom_valor = Dom(atributo + '-valor-total');\n ImprimeNaoSinalizado(gPersonagem.atributos[atributo].bonus.Total(), dom_valor);\n Titulo(gPersonagem.atributos[atributo].bonus.Exporta(), dom_valor);\n\n // Escreve o modificador.\n ImprimeSinalizado(\n gPersonagem.atributos[atributo].modificador,\n DomsPorClasse(atributo + '-mod-total'));\n }\n}", "onModifyAtk() {}", "get date() {\n return this.rawModifiedAt;\n }", "updated() {}", "function editannounement() {\n\n}", "set modified(value) {\n this.data.modified = value;\n }", "function cumpleanosSinModificarObjeto(persona) {\n return {\n ...persona,\n edad: persona.edad + 1,\n };\n}", "get dateModified () { return this.lastModified; }", "withChanges(changes) {\n let modified = changes.modified || this.modified\n Object.keys(changes).forEach(key => {\n if (changes[key] !== this[key]) modified = true;\n })\n return Object.assign(new Notebook(), this, {\n modified,\n updated_at: modified ? moment() : this.updated_at,\n ...changes,\n })\n }", "function modificado(t) {\n datos();\n}", "static modifyFields() {\n return [\n 'article_id',\n 'user_id',\n 'comment',\n 'flagged',\n ];\n }", "function editMade() {\n version += 1;\n emitter({});\n }", "function updateroster() {\n\n}", "function mostraNotas(){}", "function cumpleanosClonandoObjeto(persona){\n return {\n ...persona,\n edad: persona.edad += 1\n }\n}", "function judgeDataIsModified(){\r\n \tif(changeDateTxt.getValue()!=changeDateTxtCopy){\r\n \t\treturn false;\r\n \t}\r\n \tif(endInfoType.getValue()!=endInfoTypeCopy){\r\n \t\treturn false;\r\n \t}\r\n \tif(reasonLift.getValue()!=reasonLiftCopy){\r\n \t\treturn false;\r\n \t}\r\n \tif(fileGoWhere.getValue()!=fileGoWhereCopy){\r\n \t\treturn false;\r\n \t}\r\n \tif(relationInsure.getValue()!=relationInsureCopy){\r\n \t\treturn false;\r\n \t}\r\n \tif(txtAreaEndMemo.getValue()!=txtAreaEndMemoCopy){\r\n \t\treturn false;\r\n \t}\r\n \treturn true;\r\n \t\r\n }", "function PersonagemRenovaFeiticos() {\n for (var chave_classe in gPersonagem.feiticos) {\n if (!gPersonagem.feiticos[chave_classe].em_uso) {\n continue;\n }\n var slots_classe = gPersonagem.feiticos[chave_classe].slots;\n for (var nivel in slots_classe) {\n for (var indice = 0; indice < slots_classe[nivel].feiticos.length; ++indice) {\n slots_classe[nivel].feiticos[indice].gasto = false;\n }\n if ('feitico_dominio' in slots_classe[nivel] && slots_classe[nivel].feitico_dominio != null) {\n slots_classe[nivel].feitico_dominio.gasto = false;\n }\n if ('feitico_especializado' in slots_classe[nivel] && slots_classe[nivel].feitico_especializado != null) {\n slots_classe[nivel].feitico_especializado.gasto = false;\n }\n }\n }\n}", "private public function m246() {}", "get offset() { setModified.apply(this); return this._offset; }", "function cumpleanos(persona)\n{\n return{\n ...persona,\n edad:persona.edad +1\n }\n}", "updateLocalTransAndRot(newtrs) {\n//---------------------\nthis.localTrans = newtrs.getTranslation();\nreturn this.localRot = newtrs.getRotation();\n}", "get desc() { return ChangeDesc.create(this.sections); }", "function localizedModifiedTimestap() {\n if (vm.course) {\n return moment(vm.course.Modified).format(\"M/D/YYYY h:mm A\");\n } else {\n return '';\n }\n }", "function modifyRelationship() {\n\t\t\tconsole.log(\"modifyRelationship() -> AlleleFearUpdateAPI()\");\n\n\t\t\t// check if record selected\n\t\t\tif(vm.selectedIndex < 0) {\n\t\t\t\talert(\"Cannot Modify if a record is not selected.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n // skip duplicates; relationship type, marker\n var rKey = 0;\n var mKey = 0;\n var isMIduplicate = false;\n var isMInoreference = false;\n\t\t\tfor(var i=0;i<vm.apiDomain.mutationInvolves.length; i++) {\n rKey = vm.apiDomain.mutationInvolves[i].relationshipTermKey;\n mKey = vm.apiDomain.mutationInvolves[i].markerKey;\n\n if (rKey == \"\" || mKey == \"\") {\n continue\n }\n\n if (vm.apiDomain.mutationInvolves[i].refsKey == \"\") {\n isMInoreference = true;\n }\n\n\t\t\t for(var j=i+1;j<vm.apiDomain.mutationInvolves.length; j++) {\n if (\n vm.apiDomain.mutationInvolves[j].relationshipTermKey == rKey\n && vm.apiDomain.mutationInvolves[j].markerKey == mKey\n ) { \n vm.apiDomain.mutationInvolves[j].processStatus = \"x\";\n isMIduplicate = true;\n }\n }\n }\n //if (isMIduplicate) {\n //alert(\"Mutation Involves: duplicate found; the duplicate will be skipped.\");\n //}\n if (isMInoreference) {\n alert(\"MI: Reference is required.\");\n return;\n }\n \n // skip duplicates; organism, marker\n var oKey = 0;\n var mKey = 0;\n var isECduplicate = false;\n var isECnoreference = false;\n\t\t\tfor(var i=0;i<vm.apiDomain.expressesComponents.length; i++) {\n oKey = vm.apiDomain.expressesComponents[i].organismKey;\n mKey = vm.apiDomain.expressesComponents[i].markerKey;\n\n if (oKey == \"\" || mKey == \"\") {\n continue\n }\n\n if (vm.apiDomain.expressesComponents[i].refsKey == \"\") {\n isECnoreference = true;\n }\n\n\t\t\t for(var j=i+1;j<vm.apiDomain.expressesComponents.length; j++) {\n if (\n vm.apiDomain.expressesComponents[j].organismKey == oKey\n && vm.apiDomain.expressesComponents[j].markerKey == mKey\n ) { \n vm.apiDomain.expressesComponents[j].processStatus = \"x\";\n isECduplicate = true;\n }\n }\n }\n //if (isECduplicate) {\n //alert(\"Expresses Components: duplicate found; the duplicate will be skipped.\");\n //}\n if (isECnoreference) {\n alert(\"EC: Reference is required.\");\n return;\n }\n\n // skip duplicates; organism, marker\n var oKey = 0;\n var mKey = 0;\n var isDCduplicate = false;\n var isDCnoreference = false;\n\t\t\tfor(var i=0;i<vm.apiDomain.driverComponents.length; i++) {\n oKey = vm.apiDomain.driverComponents[i].organismKey;\n mKey = vm.apiDomain.driverComponents[i].markerKey;\n\n if (oKey == \"\" || mKey == \"\") {\n continue\n }\n\n if (vm.apiDomain.driverComponents[i].refsKey == \"\") {\n isDCnoreference = true;\n }\n\n\t\t\t for(var j=i+1;j<vm.apiDomain.driverComponents.length; j++) {\n if (\n vm.apiDomain.driverComponents[j].organismKey == rKey\n && vm.apiDomain.driverComponents[j].markerKey == mKey\n ) { \n vm.apiDomain.driverComponents[j].processStatus = \"x\";\n isDCduplicate = true;\n }\n }\n }\n //if (isDCduplicate) {\n //alert(\"Driver Components: duplicate found; the duplicate will be skipped.\");\n //}\n if (isDCnoreference) {\n alert(\"DC: Reference is required.\");\n return;\n }\n\n\t\t\tpageScope.loadingStart();\n\n\t\t\tAlleleFearUpdateAPI.update(vm.apiDomain, function(data) {\n\t\t\t\tif (data.error != null) {\n\t\t\t\t\talert(\"ERROR: \" + data.error + \" - \" + data.message);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tloadObject();\n\t\t\t\t}\n\t\t\t\tpageScope.loadingEnd();\n\t\t\t}, function(err) {\n\t\t\t\tpageScope.handleError(vm, \"API ERROR: AlleleFearUpdateAPI.update\");\n\t\t\t\tpageScope.loadingEnd();\n\t\t\t});\n\t\t}", "transient private internal function m185() {}", "function editTableModificarDescuento() {\n var nameTable = \"ModificarDescuento\";\n var nameCols = crearListaColumnas();\n var activaAdd = true;\n var activaDelete = true;\n\n return buildTableTools(nameTable, nameCols, activaAdd, activaDelete);\n}", "function IndicadorRangoEdad () {}", "atualizaNome() //controler\r\n {\r\n this._elemento.textContent = `[${this._idade}] ${this._nome}`;\r\n }", "function effemeridi_pianeti(np,TEMPO_RIF,LAT,LON,ALT,ITERAZIONI,STEP,LAN){\n\n // by Salvatore Ruiu Irgoli-Sardegna (Italy) ottobre 2011\n // funzione per il calcolo delle effemeridi del Sole.\n // Parametri utilizzati\n // np= numero identificativo del pianeta 0=Mercurio,1=Venere.....7=Nettuno\n // il valore np=2 (Terra) non deve essere utilizzato come parametro.\n // TEMPO_RIF= \"TL\" o \"TU\" tempo locale o tempo universale.\n // LAT= latitudine in gradi sessadecimali.\n // LON= longtudine in gradi sessadecimali.\n // ALT= altitudine in metri.\n // ITERAZIONE =numero di ripetizioni del calcolo.\n // STEP=salto \n // LAN=\"EN\" versione in inglese.\n \n \n var njd=calcola_jdUT0(); // numero del giorno giuliano all'ora 0 di oggi T.U.\n\n njd=njd+0.00078; // correzione per il Terrestrial Time.\n\n //njd=njd+t_luce(njd,np); // correzione tempo luce.\n \nvar data_ins=0; // data\nvar data_inser=0; // data\nvar numero_iterazioni=ITERAZIONI;\n\nvar fusoloc=-fuso_loc(); // recupera il fuso orario della località (compresa l'ora legale) e riporta l'ora del pc. come T.U.\n\nvar sorge=0;\nvar trans=0;\nvar tramn=0;\nvar azimuts=0;\nvar azimutt=0;\n\nvar effe_pianeta=0;\nvar ar_pianeta=0;\nvar de_pianeta=0;\nvar classetab=\"colore_tabellaef1\";\nvar istanti=0;\nvar magnitudine=0;\nvar fase=0;\nvar diametro=0;\nvar distanza=0;\nvar elongazione=0;\nvar costl=\"*\"; // nome della costellazione.\nvar parallasse=0;\nvar p_ap=0; // coordinate apparenti del pianeta.\n\nif (STEP==0) {STEP=1;}\n \n document.write(\"<table width=100% class='.table_effemeridi'>\");\n document.write(\" <tr>\");\n\n // versione in italiano.\n\n if (LAN!=\"EN\") // diverso da EN\n {\n document.write(\" <td class='colore_tabella'>Data:</td>\");\n document.write(\" <td class='colore_tabella'>Sorge:</td>\");\n document.write(\" <td class='colore_tabella'>Culmina:</td>\");\n document.write(\" <td class='colore_tabella'>Tramonta:</td>\");\n document.write(\" <td class='colore_tabella'>A. So.:</td>\");\n document.write(\" <td class='colore_tabella'>A. Tr.:</td>\");\n document.write(\" <td class='colore_tabella'>A. Retta:</td>\");\n document.write(\" <td class='colore_tabella'>Dec.:</td>\");\n document.write(\" <td class='colore_tabella'>Fase.</td>\");\n document.write(\" <td class='colore_tabella'>Dist.</td>\");\n document.write(\" <td class='colore_tabella'>Dia.</td>\");\n document.write(\" <td class='colore_tabella'>El.</td>\");\n document.write(\" <td class='colore_tabella'>Ma.</td>\");\n document.write(\" <td class='colore_tabella'>Cost.</td>\");\n }\n\n // versione in inglese.\n\nif (LAN==\"EN\")\n {\n\n document.write(\" <td class='colore_tabella'>Date:</td>\");\n document.write(\" <td class='colore_tabella'>Rise:</td>\");\n document.write(\" <td class='colore_tabella'>Transit:</td>\");\n document.write(\" <td class='colore_tabella'>Set:</td>\");\n document.write(\" <td class='colore_tabella'>Az. Rise:</td>\");\n document.write(\" <td class='colore_tabella'>Az. Set:</td>\");\n document.write(\" <td class='colore_tabella'>R.A.:</td>\");\n document.write(\" <td class='colore_tabella'>Dec.:</td>\");\n document.write(\" <td class='colore_tabella'>Ph.</td>\");\n document.write(\" <td class='colore_tabella'>Dist.</td>\");\n document.write(\" <td class='colore_tabella'>Dia.</td>\");\n document.write(\" <td class='colore_tabella'>El.</td>\");\n document.write(\" <td class='colore_tabella'>Ma.</td>\");\n document.write(\" <td class='colore_tabella'>Const.</td>\");\n\n }\n\n\n document.write(\" </tr>\");\n\n // ST_ASTRO_DATA Array(azimut_sorgere,azimut_tramonto,tempo_sorgere,tempo_transito,tempo_tramonto)\n // 0 1 2 3 4\n\n njd=njd-STEP;\n\n for (b=0; b<numero_iterazioni; b=b+STEP){\n njd=njd+STEP;\n effe_pianeta=pos_pianeti(njd,np); \n\n // calcola le coordinate apparenti nutazione e aberrazione.\n\n p_ap=pos_app(njd,effe_pianeta[0],effe_pianeta[1]);\n ar_pianeta= sc_ore(p_ap[0]); // ascensione retta in hh:mm:ss.\n de_pianeta=sc_angolo(p_ap[1],0); // declinazione. \n \n fase=effe_pianeta[2];\n magnitudine=effe_pianeta[3];\n distanza=effe_pianeta[4].toFixed(3);\n diametro=effe_pianeta[5].toFixed(1);\n elongazione=effe_pianeta[6].toFixed(1);\n costl=costell(effe_pianeta[0]); // costellazione.\n\n istanti=ST_ASTRO_DATA(njd,effe_pianeta[0],effe_pianeta[1],LON,LAT,ALT,0);\n\nif (TEMPO_RIF==\"TL\"){\n sorge=ore_24(istanti[2]+fusoloc);\n trans=ore_24(istanti[3]+fusoloc);\n tramn=ore_24(istanti[4]+fusoloc); }\n\nelse {\n sorge=ore_24(istanti[2]);\n trans=ore_24(istanti[3]);\n tramn=ore_24(istanti[4]); } \n\n sorge=sc_ore_hm(sorge); // istanti in hh:mm\n trans=sc_ore_hm(trans);\n tramn=sc_ore_hm(tramn);\n\n // formatta la data da inserire.\n\n data_ins=jd_data(njd);\n\n if (LAN!=\"EN\") {data_inser=Lnum(parseInt(data_ins[0]),2)+\":\"+Lnum(parseInt(data_ins[1]),2)+\" |\"+data_ins[3];} // versione in italiano.\n if (LAN==\"EN\") {data_inser=Lnum(parseInt(data_ins[0]),2)+\":\"+Lnum(parseInt(data_ins[1]),2)+\" |\"+data_ins[4];} // versione in inglese.\n\n azimuts=istanti[0].toFixed(1);\n azimutt=istanti[1].toFixed(1);\n\n if (b%2==0){classetab=\"colore_tabellaef2\"; }\n\n else {classetab=\"colore_tabellaef1\";}\n\n\n document.write(\" <tr>\");\n document.write(\" <td class='\"+classetab+\"'>\"+data_inser+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+sorge+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+trans+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+tramn+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+azimuts+\"&deg;</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+azimutt+\"&deg;</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+ar_pianeta+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+de_pianeta+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+fase+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+distanza+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+diametro+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+elongazione+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+magnitudine+\"</td>\");\n document.write(\" <td class='\"+classetab+\"'>\"+costl+\"</td>\");\n\n document.write(\" </tr>\");\n\n }\n document.write(\" </table>\");\n\n\n}", "get modified() {\n return Math.floor(this.stats.mtimeMs)\n }", "function editLineAnnotation(lineToEdit, oldOldAssName, t, i){\n let newAnnotation = newAnnotationArray[t]\n let newLine = lineToEdit.replace(oldOldAssName, newAnnotation);\n arrayOfLinesStrings[i] = newLine\n // console.log(arrayOfLinesStrings[i])\n}", "'getRowsModified'() { return sqlite3_changes(this.db); }", "function modyfikacja() {\n node = document.getElementById(\"modyf\");\n node.innerHTML = document.lastModified.toLocaleString();\n}", "get lastchanged() { return lastchanged }", "function apriEPopolaModaleModificaImporti(oggettoOriginale){\n \t\n // Dati per l'editabilità dei campi\n // Pulsante per il salvataggio\n var pulsanteSalvataggio = $(\"#button_registraVariazioneModale\");\n var $modale=$(\"#editStanziamenti\");\n //SIAC-6881\n var abilitaGestioneComponenti = oggettoOriginale && oggettoOriginale.tipoCapitolo && (oggettoOriginale.tipoCapitolo._name === 'CAPITOLO_USCITA_PREVISIONE' || oggettoOriginale.tipoCapitolo._name==='CAPITOLO_USCITA_GESTIONE');\n \n // Pulisco il form\n $(\"#editStanziamenti fieldset :input\").not(\"[data-maintain]\").val(\"\");\n // Nascondo l'eventuale alert di errore già presente\n $(\"#ERRORI_modaleEditStanziamenti\").slideUp();\n\n $(\"#competenzaVariazioneAnno0Modale\").val(oggettoOriginale.competenza.formatMoney());\n $(\"#residuoVariazioneModale\").val(oggettoOriginale.residuo.formatMoney());\n $(\"#cassaVariazioneModale\").val(oggettoOriginale.cassa.formatMoney());\n $(\"#competenzaVariazioneAnno1Modale\").val(getStanziamentoNotUndefined(oggettoOriginale.competenza1).formatMoney());\n $(\"#competenzaVariazioneAnno2Modale\").val(getStanziamentoNotUndefined(oggettoOriginale.competenza2).formatMoney());\n \n $(\"#titoloModaleVariazioneStanziamenti\").html(\"Modifica Stanziamenti Capitolo \" + oggettoOriginale.numeroCapitolo + \" / \" + oggettoOriginale.numeroArticolo);\n\n pulsanteSalvataggio.substituteHandler(\"click\", aggiornaCapitoliNellaVariazione.bind(undefined, oggettoOriginale, abilitaGestioneComponenti));\n \n if(!abilitaGestioneComponenti){\n \tpulisciCampiPerComponenti('Modale');\n \t$modale.modal(\"show\");\n \treturn;\n }\n \n pulsanteSalvataggio.attr(\"disabled\", true);\n $('#linkCollapseComponentiModale').attr(\"disabled\", true);\n \n \t$('#divComponentiInVariazioneModale').slideDown().promise().then(function() {\n \t\t$('#divComponentiInVariazioneModale').overlay('show');\n \t});\n \t//chiudo tutti i collapse\n \t$modale.modal('show')\n \t\t.find('.gestisci-collapse')\n \t\t\t.each(function(){\n \t\t\t\tvar selettoreCollapse= $(this).data('selettore-collapse-interno');\n \t\t\t\tchiudiCollapse($(selettoreCollapse));\n \t\t\t\t});\n \tcaricaEPopolaTabellaComponentiCapitoloInVariazione(oggettoOriginale);\n }", "transient final protected internal function m174() {}", "function localizedModifiedTimestap() {\n if (vm.learningItem) {\n return moment(vm.learningItem.Created).format(\"M/D/YYYY h:mm A\");\n } else {\n return '';\n }\n }", "updateLocalRot(newtrs) {\nreturn this.localRot = newtrs.getRotation();\n}", "updateLocalTransform()\n {\n // empty\n }", "function printDetailsModified() {\n\treturn `${this.name} (${this.type}) - ${this.age}`;\n}", "firstUpdated(_changedProperties){}", "firstUpdated(_changedProperties){}", "function oi(a){this.Of=a;this.rg=\"\"}", "function C(e){var i=[];if(0===s.fields.length||void 0===s.fields[e])return i;for(var t=0;t<s.fields[e].length;t++)i[t]=s.fields[e][t].getClonedData();return i}", "function addMarkerRegionToMI() {\n\t\t\tconsole.log(\"addMarkerRegionToMI()\");\n\n\t\t\tif (\n vm.markerRegionSearch == null\n || vm.markerRegionSearch.refsKey == null\n || vm.markerRegionSearch.refsKey == \"\"\n ) {\n alert(\"Add To Mutation Involves Required Fields:\\n\\nAllele\\nChr\\nStart Coordinate\\nEnd Coordinate\\nRelationship Type\\nJ#\");\n\t\t\t\tdocument.getElementById(\"startCoordinate\").focus();\n\t\t\t\treturn;\n\t\t\t}\n\n if (vm.markerRegion.length == 0) {\n alert(\"Add To Mutation Involves: 0 Markers found\");\n\t\t\t\tdocument.getElementById(\"startCoordinate\").focus();\n\t\t\t\treturn;\n }\n\n var newMI = vm.apiDomain.mutationInvolves.length;\n\n for(var i=0;i<vm.apiDomain.mutationInvolves.length; i++) { \n if (vm.apiDomain.mutationInvolves[i].processStatus == \"c\") {\n newMI = i;\n break;\n }\n }\n\n for(var i=0;i<vm.markerRegion.length; i++) { \n\t\t\t vm.apiDomain.mutationInvolves[newMI] = {\n\t\t\t\t \"processStatus\": \"c\",\n\t\t\t\t \"relationshipKey\": \"\",\n\t\t\t \t \"alleleKey\": vm.apiDomain.alleleKey,\n \"alleleSymbol\": \"\",\n\t\t\t \t \"markerKey\": vm.markerRegion[i].markerKey,\n \"markerSymbol\": vm.markerRegion[i].symbol,\n \"markerAccID\": vm.markerRegion[i].accID,\n \"organismKey\": \"1\",\n \"organism\": \"mouse, laboratory\",\n\t\t\t \t \"categoryKey\": \"1003\",\n\t\t\t \t \"categoryTerm\": \"\",\n\t\t\t \t \"relationshipTermKey\": vm.markerRegionSearch.relationshipTermKey,\n\t\t\t \t \"relationshipTerm\": \"\",\n\t\t\t \t \"qualifierKey\": \"11391898\",\n\t\t\t \t \"qualifierTerm\": \"\",\n\t\t\t \t \"evidenceKey\": \"11391900\",\n\t\t\t \t \"evidenceTerm\": \"IGC\",\n\t\t\t\t \"refsKey\": vm.markerRegionSearch.refsKey,\n\t\t\t \t \"jnumid\": vm.markerRegionSearch.jnumid,\n\t\t\t\t \"short_citation\": vm.markerRegionSearch.short_citation,\n\t\t\t\t \"createdBy\": \"\",\n\t\t\t\t \"creation_date\": \"\",\n\t\t\t\t \"modifiedBy\": \"\",\n\t\t\t\t \"modification_date\": \"\"\n\t\t\t }\n\n addMINoteRow(i);\n newMI = newMI + 1;\n }\n }", "transient protected internal function m189() {}", "function cumpleanos(persona){\n return{\n ...persona,\n edad: persona.edad + 1\n }\n}", "probarFechaNacimiento(){\n //lectura del atributo fecha\n console.log(this.fecha.getFecha())\n\n //escritura del atributo\n console.log(this.fecha.setFecha(new Date(2000, 4, 6)))\n console.log(this.fecha.getFormatoLargo())\n console.log(this.fecha.setFecha(new Date(2000, 4, 6)))\n console.log(this.fecha.getFormatoLargo())\n\n //acceso a los metodos\n console.log(this.fecha.getFormatoCorto())\n console.log(this.fecha.getFormatoLargo())\n console.log(this.fecha.getEdad())\n \n }", "updated(_changedProperties) { }", "replacerChangNiveau(){\n this.viderLaFile();\n this.cellule = this.jeu.labyrinthe.cellule(0,0);\n this.direction = 1;\n\t\t\t\tthis.vitesse = 0;\n }", "onModifySpA() {}", "firstUpdated(_changedProperties) { }", "function acabarPreInversion (){\n \n realizandoInversion = false \n}", "function cumpleaños(persona){\n return{\n ...persona,\n edad: persona.edad +1\n }\n}", "function modifications() {\n\n if(vm.inheritedTailoring) {\n return UserRecords.inheritedDict[vm.inheritedTailoring];\n } else {\n return UserRecords.recordDict;\n }\n }", "function cumpleanos(persona){\n persona.edad += 1\n\n}", "function manure_left_on_pasture_and_applied_to_soils(){\n a_FAO_i='manure_left_on_pasture_and_applied_to_soils';\n initializing_change();\n change();\n}", "transient private public function m183() {}", "function setupClone() {\n\t\t\tvar estampas = []\n\t\t\tvar clone = JSON.parse(JSON.stringify(_this.tshirt));\n\t\t\tangular.forEach(clone.estampas, set);\n\t\t\tfunction set(value, index) { estampas.push(value.id); }\n\t\t\tclone.estampas = estampas;\n\t\t\tclone.cantidad = 1;\n\t\t\treturn clone;\n\t\t}", "getUpdateData () {\n\t\treturn {\n\t\t\tisArchived: true\n\t\t};\n\t}", "constructor() {\n super('Modification');\n }", "complementoAnnyAtributte(objeto) {\n for (let a of objeto.hijos) {\n this.codigoTemporal += \"P =\" + a.posicion + \";\\n\";\n this.codigoTemporal += \"imprimirAtributoAny();\\n\";\n for (let b of a.atributos) {\n // salidaXPATH.getInstance().push(b.dameNombre()+\"=\"+b.dameValor());\n }\n this.complementoAnnyAtributte(a);\n }\n }", "function Modification(){\n Id_special = $(this).parent().parent().attr(\"id\");\n $('#Ajout_tache').attr(\"onclick\",\"chang_modify()\");\n for(var cpt = 0 ; cpt < Table.length; cpt++) {\n if(Table[cpt].return_this_id() == Id_special){\n var elem = Table[cpt].return_All_entred_element();\n $(\"#Time_stemp\").val(elem[2]);\n $(\"#Titre_Tach\").val(elem[0]);\n $(\"option:selected\").val(elem[1]);\n\n }\n }\n }", "function contentUpdate(original,parsedData, publishedAt){\n\n var updatedString = original.replace('a1', parsedData.Temperature);\n updatedString=updatedString.replace('a2', parsedData.Humidity);\n updatedString=updatedString.replace('a3', parsedData.Pressure);\n updatedString=updatedString.replace('a4', parsedData.Gas);\n \n\n\n return updatedString;\n}", "function cumpleanos(persona){\n return {\n ...persona,\n edad: persona.edad + 1//si puedo modicar y crea como un nuevo objeto\n }\n}", "edit() {\n }", "function rimuovi(){\n\n\tvar j = 0;\n\n\t// Per ogni elemento controllo la condizione\n\t// Se è idoneo, copio elemento in J\n\n\tfor(var i = 0; i<persone.length; i++){\n\t\tif(persone[i].altezza > 1.5) {\n\t\t\tpersone[j++] = persone[i];\n\t\t}\n\t}\n\t// Aggiorno array con valori nuovi messi in J\n\tpersone.length = j;\n\n\t// Visualizzo\n\tvisualizzaPersone();\n}", "actualizarAuto() {\n let se = this.informacion_vehiculos.find(\n automovil => this.automovil.placa == automovil.placa \n );\n this.enEdicion = false;\n this.informacion_vehiculos.splice(se, 1, this.automovil);\n this.automovil = Object.assign({}, se);\n localStorage.setItem('automoviles', JSON.stringify(this.informacion_vehiculos));\n }", "function cumpleanosDos(persona){\n\n return {\n \n ...persona,\n edad: persona.edad + 1\n\n }\n\n /* Aqui lo que hacemos es retornar un nuevo objeto con los atributos de la\n persona y podremos cambiar los atributos y agregar atributos nuevos\n \n Esto arreglara el problema de que cuando se invoque la funcion tambien se\n cambie el objeto, con este ejemplo retornara un objeto nuevo con la \n edad modificada y si vemos el objeto este no tendra ningun cambio\n \n \n */\n}", "_adjust(i){\n\t\tvar ret = Object.assign(Object.create(Note.prototype), this) ;\n\t\tret.acc += i ;\n\t\treturn ret ;\n\t}", "transient private protected internal function m182() {}", "editTattoo () {\n\n }", "edit(todo) {\n this.editTodo = todo.content;\n todo.isEdited = true;\n }", "firstUpdated() {}", "function editarLinha( objeto ){\n\n // instancia a linha da tabela\n var linha = tabela.find( '[data-object-id=\"'+objeto.id+'\"]' );\n\n // para cada atributo do objeto\n $.each( objeto, function( attribute, value ){\n\n var elemento = linha.find( \".\" + attribute );\n\n if( elemento.length > 0 ){\n\n // preenche a respectiva coluna da linha com seu valor\n elemento.html( value );\n\n if( elemento.get(0).tagName == \"IMG\" ){\n\n elemento.attr(\"src\", value );\n\n }\n\n }\n\n });\n\n // cria um efeito visual na linha editada\n linha.addClass(\"success\");\n\n // após 4 segundos\n setTimeout(function(){\n\n // remove o efeito visual da linha editada\n linha.removeClass(\"success\");\n\n },2400);\n\n // atualiza a classe de orednação\n self.atualizaOrdenacao();\n\n }", "editTodo(todo) {\n this.editedTodo = todo;\n // Clone the original todo to restore it on demand.\n this.originalTodo = angular.extend({}, todo);\n }", "_patchUpdateApply(patchInfo) {\n if (patchInfo.patchDelta){\n this.startOffset += patchInfo.patchDelta;\n this.endOffset += patchInfo.patchDelta;\n }\n }", "function ue(e,t){I[e]=I[e]||[],I[e].push(t),\"update\"===e.split(\".\")[0]&&d.forEach((function(e,t){fe(\"update\",t)}))}", "function OnInclinationOfTheRoof_Change( e )\r\n{\r\n Alloy.Globals.ShedModeInfrastructure[\"INCLINATION_OF_THE_ROOF\"] = e.id ;\r\n}", "isModified() {\n return this.wasModified;\n }", "updateSelfData(ro) {}", "function editA(it,sIt) {\n\t\tvar w = new winDep(top,gravador+'?_it='+it+'&_sIt='+cmpUrl(sIt));\n\t\tw.centrada = false;w.cascata = true;\n\t\tw.frame = true;\n\t\t//w.debug = true;\n\t\tw.scr = 'yes';\n\t\tw.abre();\n\t}", "function User_Update_Types_d_attribut_Liste_des_types_d_attribut_de_personne0(Compo_Maitre)\n{\n var Table=\"typeattribut\";\n var CleMaitre = Compo_Maitre.getCleVal();\n var NomCleMaitre = DePrefixerChamp(Compo_Maitre.getCle());\n var ta_nom=GetValAt(30);\n if (!ValiderChampsObligatoire(Table,\"ta_nom\",TAB_GLOBAL_COMPO[30],ta_nom,false))\n \treturn -1;\n if (!ValiderChampsType(Table,\"ta_nom\",TAB_GLOBAL_COMPO[30],ta_nom))\n \treturn -1;\n var Req=\"update \"+Table+\" set \";\n Req+=\"ta_nom=\"+(ta_nom==\"\" ? \"null\" : \"'\"+ValiderChaine(ta_nom)+\"'\" )+\"\";\n Req+=\" where \"+NomCleMaitre+\"=\"+CleMaitre;\n\n if (pgsql_update(Req)==0)\n\talert(\"Echec lors de la mise à jour\");\nreturn CleMaitre;\n\n}", "get lastModified() {\n return this.getStringAttribute('last_modified');\n }", "function Ao(t) {\n var e = m(t);\n return e.persistence.runTransaction(\"Get new document changes\", \"readonly\", (function(t) {\n return function(t, e, n) {\n var r = m(t), i = St(), o = gi(n), s = Oi(e), u = IDBKeyRange.lowerBound(o, !0);\n return s.rs({\n index: Ki.readTimeIndex,\n range: u\n }, (function(t, e) {\n // Unlike `getEntry()` and others, `getNewDocumentChanges()` parses\n // the documents directly since we want to keep sentinel deletes.\n var n = vi(r.serializer, e);\n i = i.ot(n.key, n), o = e.readTime;\n })).next((function() {\n return {\n xc: i,\n readTime: mi(o)\n };\n }));\n }(e.Dc, t, e.Sc);\n })).then((function(t) {\n var n = t.xc, r = t.readTime;\n return e.Sc = r, n;\n }));\n}", "updateUBOs(stamp) {\n super.updateUBOs(stamp);\n const info = this._jointsMedium.animInfo;\n const idx = this._instAnimInfoIdx;\n\n if (idx >= 0) {\n const view = this.instancedAttributes.list[idx].view;\n view[0] = info.data[0];\n } else if (info.dirty) {\n info.buffer.update(info.data);\n info.dirty = false;\n }\n\n return true;\n }", "getOriginalBnf() {\n return this._orignalBnf;\n }", "function changeFromDiaryEntry(diaryEntries,myDiaryEntry,oldDiaryEntry)\n{\n\tif(oldDiaryEntry.date == myDiaryEntry.date) \n\t{\n\t\tdiaryEntries[oldDiaryEntry.indexOfArray] = myDiaryEntry;\n\t\treturn -1;\n\t}\n\telse\n\t{\n\t\tdiaryEntries[oldDiaryEntry.indexOfArray].isdeleted = true;\n\t\treturn addToDiaryEntry(diaryEntries, myDiaryEntry);\n\t}\n}", "firstUpdated(_changedProperties) {\n }", "firstUpdated(_changedProperties) {\n }", "firstUpdated(_changedProperties) {\n }", "function editSucursal(item) {\n this.editing = false;\n item.enterprise = item.enterprise._id;\n for (var i in item.cajas) {\n item.cajas[i] = item.cajas[i]._id;\n };\n item.$update(function() {\n console.log('todo ok');\n }, function(errorResponse) {\n console.log('error');\n });\n }", "get changes() { return this.out('changes'); }", "function changeMutationInvolvesRow(index) {\n\t\t\tconsole.log(\"changeMutationInvolvesRow: \" + index);\n\n\t\t\tvm.selectedMIIndex = index;\n\n\t\t\tif (vm.apiDomain.mutationInvolves[index] == null) {\n\t\t\t\tvm.selectedMIIndex = 0;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (vm.apiDomain.mutationInvolves[index].processStatus == \"x\") {\n\t\t\t\tvm.apiDomain.mutationInvolves[index].processStatus = \"u\";\n\t\t\t};\n }", "function onObligatorioMonto() {\n\t// Si obligatorio activar la obligatoriedad de los relacionados.\n\tif (get(FORMULARIO + '.ObligatorioMonto') == 'S') {\n\t\tset(FORMULARIO + '.ObligatorioPeriodoInicioV', 'S');\t\t\n\t\tset(FORMULARIO + '.ObligatorioPeriodoFinV', 'S');\n\t}\t\t\n}", "private internal function m248() {}", "function _AtualizaAtaque() {\n ImprimeSinalizado(gPersonagem.bba, DomsPorClasse('bba'));\n ImprimeNaoSinalizado(gPersonagem.numero_ataques,\n DomsPorClasse('numero-ataques'));\n // Corpo a corpo.\n var span_bba_cac = Dom('bba-corpo-a-corpo');\n ImprimeSinalizado(gPersonagem.bba_cac, span_bba_cac);\n var titulo_span_bba_cac = {};\n titulo_span_bba_cac[Traduz('bba')] = gPersonagem.bba;\n titulo_span_bba_cac[Traduz('força')] = gPersonagem.atributos['forca'].modificador;\n titulo_span_bba_cac[Traduz('tamanho')] = gPersonagem.tamanho.modificador_ataque_defesa;\n TituloChaves(titulo_span_bba_cac, span_bba_cac);\n\n // Distancia.\n var span_bba_distancia = Dom('bba-distancia');\n ImprimeSinalizado(gPersonagem.bba_distancia, span_bba_distancia);\n var titulo_span_bba_distancia = {};\n titulo_span_bba_distancia[Traduz('bba')] = gPersonagem.bba;\n titulo_span_bba_distancia[Traduz('destreza')] = gPersonagem.atributos['destreza'].modificador;\n titulo_span_bba_distancia[Traduz('tamanho')] = gPersonagem.tamanho.modificador_ataque_defesa;\n TituloChaves(titulo_span_bba_distancia, span_bba_distancia);\n\n // Agarrar\n var span_bba_agarrar = Dom('bba-agarrar');\n ImprimeSinalizado(gPersonagem.agarrar, span_bba_agarrar);\n var titulo_span_bba_agarrar = {};\n titulo_span_bba_agarrar[Traduz('bba')] = gPersonagem.bba;\n titulo_span_bba_agarrar[Traduz('força')] = gPersonagem.atributos['forca'].modificador;\n titulo_span_bba_agarrar[Traduz('tamanho especial')] = gPersonagem.tamanho.modificador_agarrar;\n TituloChaves(titulo_span_bba_agarrar, span_bba_agarrar);\n}" ]
[ "0.590018", "0.5824616", "0.57529455", "0.56413937", "0.56320065", "0.562661", "0.555354", "0.55300367", "0.5475902", "0.5413611", "0.5405245", "0.53656423", "0.53523844", "0.5342806", "0.523851", "0.52292275", "0.5191202", "0.51876336", "0.51618177", "0.5155467", "0.5152009", "0.51441437", "0.5132494", "0.512615", "0.51222885", "0.51210964", "0.51158065", "0.51035005", "0.510307", "0.50931257", "0.5090648", "0.5082958", "0.50770944", "0.5050053", "0.50484633", "0.50417596", "0.50416374", "0.50406384", "0.5033486", "0.5028384", "0.5027675", "0.502002", "0.5018468", "0.50182456", "0.50138426", "0.50138426", "0.49922678", "0.49690408", "0.4967247", "0.49659535", "0.49648404", "0.49636966", "0.4955078", "0.49534217", "0.4953268", "0.49459177", "0.494456", "0.4944326", "0.4944298", "0.4942302", "0.4938709", "0.49349746", "0.49341312", "0.49307656", "0.49234325", "0.49027658", "0.4899284", "0.48800159", "0.48788995", "0.48775357", "0.48757288", "0.48697513", "0.48687652", "0.48669916", "0.48666736", "0.4864991", "0.48448157", "0.48444963", "0.48429027", "0.48415068", "0.48366", "0.48348993", "0.48343125", "0.48335084", "0.4833075", "0.48233658", "0.48192573", "0.481809", "0.48162556", "0.4813334", "0.48125288", "0.48072496", "0.48067647", "0.48067647", "0.48067647", "0.48064524", "0.4805598", "0.4802574", "0.4801378", "0.48006383", "0.4793348" ]
0.0
-1
LIVE LOAD COMPOSITE DEFLECTION
Ec(){ return 1.35*Math.pow(145,1.5)*Math.pow(this.Fc,0.5) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "lateLoad() {\n\n }", "loaded() {}", "function forceLoad() {}", "load() {}", "load() {}", "load() {\r\n\r\n }", "load () {\n\t\tthis.instanciable = false;\n\t\tconsole.log(this.name + \" loaded\");\n\t}", "function forceLoad() {\n\t // Noop\n\t}", "load() {\n\n }", "async load () {}", "function preLoad() {\n // load something and continue on only when finished\n}", "preload() {}", "preload () {}", "function finishedLoad() {\n console.log('finishedLoad()');\n if (externalIsLoaded()) {\n init();\n }\n }", "function alwaysRunOnload () {\n\t\t// Placeholder/Future use.\n\t}", "function forceLoad() {\n // Noop\n}", "async getLoadOperation() {}", "load() { this.log('Loaded'); }", "function handleLoadSync() {\n\t\t\t\t\tlogWithPhase( \"handleLoad - Sync\" );\n\t\t\t\t\t$scope.$eval( attributes.bnLoad );\n\t\t\t\t}", "function load(){\r\n\r\n}", "function preLoad() {\n return;\n}", "function forceLoad() {\n // Noop\n}", "function forceLoad() {\n // Noop\n}", "loadComplete() {\n // Nothing\n }", "function ComponentDefLoader() {\n this.pending = null;\n this.loading = 0;\n this.counter = 0;\n this.scriptTagCounter = 0;\n this.requestedDescriptors = {};\n this.lastContextParameterName;\n}", "function startLoad() {\n loadInterval = setInterval(updateLoad, 50);\n}", "function loaded() {\n ut.assert(true);\n ut.async(false);\n }", "load(l) {\n if( typeof l === 'undefined' ) {\n throw(new Error('Illegal to pass undefined to load'));\n }\n if( this.willChop.length !== 0 ){\n throw(new Error('Illegal to load more than once'));\n }\n // FIXME: rename to willDestroy\n this.willChop = l;\n this.chopIntoPrecompute();\n\n // console.log(this.precompute);\n\n // this.willChopOriginal = this.willChopOriginal.concat(l); // lazy\n }", "async afterLoad () {\n }", "async onLoad() {}", "function loadComplete() {\n cnt--;\n if (!cnt) {\n execComplete();\n }\n }", "_load() {\n\n // if already loaded, do nothing\n if (this._loaded) {\n return;\n }\n\n // attempt to load\n this._lazyload();\n\n }", "preload() {\n \n }", "function preload() {}", "afterCompetenceCreate(){\n this.loadData(false);\n }", "function load()\n{\n setupParts();\n\tbgn();\n}", "preload() {\n\n }", "_loading() {\n }", "loadingData() {}", "loadingData() {}", "preload() {\n\n }", "preload() {\n\n }", "preload() {\n\n }", "preload() {\n\n }", "constructor () {\n // define satellite load priority.\n this.loadPriority = 10\n }", "localLoad() {\n if (this.loadView.existingSceneSelect.selectedIndex > -1) {\n Utilitary.showFullPageLoading();\n var option = this.loadView.existingSceneSelect.options[this.loadView.existingSceneSelect.selectedIndex];\n var name = option.value;\n this.sceneCurrent.recallScene(this.getStorageItemValue('FaustPlayground', name));\n }\n }", "function LocalLoader() { }", "async initializeDataLoad() {\n }", "load() {\n return this.loading || (this.loading = this.loadFunc().then(support => this.support = support, err => { this.loading = null; throw err; }));\n }", "load (context, actions) {\n console.log(`Loading module ${this.name} finished`)\n }", "function AutoSaveLoad() {}", "constructor () {\n this.hdrCubeLoader = new HDRCubeTextureLoader();\n this.gltfLoader = new GLTFLoader();\n this.fbxLoader = new FBXLoader();\n this.jsonLoader = new JSONLoader();\n this.textureLoader = new TextureLoader();\n this.fontLoader = new FontLoader();\n this.isLoaded = false;\n }", "LoadSourceState() {\n\n }", "function loadComplete() {\n\thasLoaded = true;\n}", "function onload() {\r\n\tload();\r\n}", "function finish_load(){\n\twindow.ubm_loadedids = {};\n\twindow.ubm_incompScripts = new Set([]);\n\t//Get current url\n\tvar thisurl = new URL(window.location.href);\n\tvar hostname = thisurl.hostname;\n\tvar s = ubm_db[hostname];\n\tif (s) {\n\t\tvar keys = s.getKeys();\n\t\tfor (let baseurl of keys) {\n\t\t\tloadScript(baseurl + hostname + \".js\", `scriptfail(this, function(){console.log('Could not load script from site: ` + baseurl + `!')})`, `exeScript(\\`` + baseurl + `\\`, function(){loadAlwaysCheck(0, \"` + baseurl + `\");})`);\n\t\t}\n\t} else {\n\t\tloadAlwaysCheck(0, hostname);\n\t}\n}", "load(cb){\r\n\r\n\t\tconsole.log('Loading assets (difficulty: 1)');\r\n\r\n\t\t// Chiama il metodo load della classe parent\r\n\t\tsuper.load(cb, 1);\r\n\t}", "function loading() {\n}", "preload() {\n }", "lateLoad() {\n for (let instance of this.instanceSet) {\n this.addSceneData(instance, instance.scene);\n }\n }", "function watchAsyncLoad(){if(opts.loadingAsync&&!opts.isRemoved){scope.$$loadingAsyncDone=false;$q.when(opts.loadingAsync).then(function(){scope.$$loadingAsyncDone=true;delete opts.loadingAsync;}).then(function(){$$rAF(positionAndFocusMenu);});}}", "function createLoad(name) {\n return {\n status: 'loading',\n name: name,\n linkSets: [],\n dependencies: [],\n metadata: {}\n };\n }", "function createLoad(name) {\n return {\n status: 'loading',\n name: name,\n linkSets: [],\n dependencies: [],\n metadata: {}\n };\n }", "function createLoad(name) {\n return {\n status: 'loading',\n name: name,\n linkSets: [],\n dependencies: [],\n metadata: {}\n };\n }", "function createLoad(name) {\n return {\n status: 'loading',\n name: name,\n linkSets: [],\n dependencies: [],\n metadata: {}\n };\n }", "function ContentLoader()\n{\n this.cache = true;\n}", "function startLoad()\n\t{\n\t\t\tif(startedLoading)\n\t\t\t{\n\t\t\t\tlogger.debug('ND-node startLoad called more than once');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tstartedLoading=true;\n\n\t\t\tcoreModules.forEach(function (moduleName){\n\t\t\t\tmoduleLoaders.push(moduleLoader.getLoader(getCoreModulePath(moduleName)));\n\t\t\t});\n\t\t\tmoduleLoaders.push(moduleLoader.getLoader({instance:logger,moduleName:'$logger'}));\n\t\t\tmoduleLoaders.push(moduleLoader.getLoader({instance:newBackendInstance,moduleName:'$backend'}));\n\n //var modules=getModulesAndDependencies(modulePaths);\n moduleLoaders=moduleLoader.getSortedByDepends(moduleLoaders);\n\n\t\t\tvar modulePromises={};\n\n //we will augment each module in modules with .instance - a member containg a promise returning its instance\n moduleLoaders.forEach(\n \t\t\tfunction(moduleLoader)\n \t\t\t{\n\t\t\t\t\t\t//we init each module instance promise then create it when all dependcies are ready\n\t\t\t\t\t\tmodulePromises[moduleLoader.name]=new BBPromise(function (resolve){\n\t\t var args=\n\t\t _.map(moduleLoader.dependencies,\n\t\t function(name){ return modulePromises[name];}\n\t\t );//concat all dependencies\n\n\t\t\t\t\t\t\t\t\tresolve(BBPromise.all(args).then(//all dependencies have ben created - create this module now\n\t\t\t function(argValues)\n\t\t\t {\n\t\t\t\t\t\t\t\t\t\t\tlogger.debug('Creating an instance of '+moduleLoader.name);\n\t\t\t\t\t\t\t\t\t\t\tvar factoryRet=moduleLoader.factory.apply(newBackendInstance,argValues);\n\t\t\t\t\t\t\t\t\t\t\tif(!factoryRet)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tloadedModules[moduleLoader.name]={};\n\t\t\t\t\t\t\t\t\t\t\t\treturn BBPromise.resolve({});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\treturn BBPromise.resolve(factoryRet).then(function(instResolved)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tloadedModules[moduleLoader.name]=instResolved;\n\t\t\t\t\t\t\t\t\t\t\t\treturn instResolved;\n\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t }\n\t\t\t ));\n\t\t\t\t\t\t});\n \t\t\t}\n\t\t\t);\n\n //wait for all loading to complete and update status\n return BBPromise.all(_.values(modulePromises)).then(\n function()\n {\n logger.debug('finished loading modules');\n finishedLoading=true;\n }\n );\n\n\t}", "load( resolver ) {\n const nextToLoad = this.layers.find( ( { isready } ) => !isready );\n if( nextToLoad ) {\n const loader = Promise.all( nextToLoad.prop.use.map( ({ type = \"url\", ...use }) =>\n type === \"url\" ? Loader.default.obtain( use ) : this.get( use.path )\n ));\n loader.then(( packs ) => {\n packs.map( (pkj, index) => {\n const { type = \"url\" } = nextToLoad.prop.use[index];\n if(type === \"url\") {\n this.appendData( pkj, nextToLoad.src );\n }\n else {\n this.merge( pkj, true );\n }\n } );\n nextToLoad.isready = true;\n this.load( resolver );\n });\n }\n else {\n resolver( this );\n }\n }", "function onAllLoaded() {\n console.log('all loaded');\n}", "init() {\n\t\tthis.#activateNew('Loading');\n\t}", "function onLoadHook() {\n g_finished_loading = true;\n initialUpdate();\n g_initial_collapsed = {};\n g_prev_entries = [];\n}", "setFirstLoad(state, val = true){\n state.firstLoad = false;\n }", "complete() {\n this.trigger('load_complete');\n }", "function __onLoad() {\n\tLOADED=true;\n}", "function Loader() {\n\n}", "function Loader() {\n this.loadRes = [];\n this._groupListens = {};\n }", "load() {\n this.loadEventLoop(600)\n }", "function alwaysRunOnload () {\n\t\n\t}", "function watchAsyncLoad() {\n if (opts.loadingAsync && !opts.isRemoved) {\n scope.$$loadingAsyncDone = false;\n\n $q.when(opts.loadingAsync)\n .then(function() {\n scope.$$loadingAsyncDone = true;\n delete opts.loadingAsync;\n }).then(function() {\n $$rAF(positionAndFocusMenu);\n });\n }\n }", "function load() {\n if (!loaded) {\n loaded = true;\n\n callback();\n }\n }", "function handleLoad( result, idCounter, item, parentId ) {\n\n // create an entity for the source dataset\n const sourceId = '_:source' + idCounter['entity']++;\n result['entity'][ sourceId ] = {\n 'prov:atLocation': item.getData( 'source/url' ),\n 'yavaa:type': item.getData( 'source/type' ),\n 'yavaa:datasetId': item.getData( 'source/datasetId' ),\n 'yavaa:distrId': item.getData( 'source/distrId' ),\n 'dct:publisher': item.getData( 'source/publisher' ),\n 'dct:title': item.getData( 'source/title' )\n };\n\n // activity for loading\n const actId = '_:load' + idCounter['activity']++,\n actStartTime = (new Date( item.getData( 'startTime' ) )).toISOString(),\n actEndTime = (new Date( item.getData( 'endTime' ) )).toISOString();\n result['activity'][ actId ] = {\n 'prov:startTime': actStartTime,\n 'prov:endTime': actEndTime,\n 'prov:type': { '$': convertType( item.getData( 'type' ) ), 'type': 'xsd:QName' },\n 'yavaa:action': item.getData( 'action' ),\n 'yavaa:columns': JSON.stringify( item.getData( 'columns' ) ),\n 'yavaa:params': JSON.stringify( item.getData('params') ),\n };\n\n // add connection between activity and loaded resource\n result['used'][ '_:used' + idCounter['relation']++ ] = {\n 'prov:activity': actId,\n 'prov:entity': sourceId\n };\n\n // resulting (intermediate?) entity\n const newEntId = '_:result' + idCounter['entity']++;\n result['entity'][ newEntId ] = {\n 'prov:type': { '$': 'prov:Collection', 'type': 'xsd:QName' },\n };\n\n // link to resulting entity\n result['wasGeneratedBy'][ '_:wasGeneratedBy' + idCounter['relation']++ ] = {\n 'prov:entity': newEntId,\n 'prov:activity': actId\n };\n\n // add links\n linkToParent( result, idCounter, newEntId, actId, parentId );\n linkToProv( item, actId, newEntId );\n\n return null;\n }", "async function load() {\n await Datas.Settings.read();\n await Datas.Systems.read();\n //RPM.gameStack.pushTitleScreen();\n //RPM.datasGame.loaded = true;\n Manager.GL.initialize();\n Manager.GL.resize();\n Manager.Stack.requestPaintHUD = true;\n}", "function loadDone() {\n return true;\n }", "start_loading(){\n this.model.preload();\n }", "function initializeLoadSequence(){\r\n $.logEvent('[dataVisualization.core.initializeLoadSequence]');\r\n \r\n // Initialize the first component within the configuration\r\n var toInitializeObj = dataVisualization.configuration.loadSequence[0];\r\n \r\n // Initialize the required functionality for the desired module\r\n dataVisualization.dispatcher.moduleInitialize(toInitializeObj);\r\n }", "function loaded (url){\n --require.load_count;\n if(window.requireDebug) console.log(\"loaded: \" + url + \", count: \" + require.load_count);\n if (require.load_count === 0) {\n var done_cbs = window.modules._done_cbs || [];\n done_cbs.forEach(function (cb) { cb(); });\n done_cbs = [];\n }\n }", "function load () {\n actions = svl.storage.get(\"tracker\");\n }", "load() {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function* () { });\n }", "load(callback) {\n callback();\n }", "function preload() {\n\tclickablesManager = new ClickableManager('data/clickableLayout.csv');\n\tadventureManager = new AdventureManager('data/adventureStates.csv', 'data/interactionTable.csv', 'data/clickableLayout.csv');\n}", "onLoad() {}", "@autobind\n loadShaders() {\n let self = this;\n\n $.ajax({url: \"viz/scripts/v1.vs\", success: function(result){\n self.vs = result;\n self.shaderLoad();\n }});\n\n $.ajax({url: \"viz/scripts/f1.fs\", success: function(result){\n self.fs = result;\n self.shaderLoad();\n }});\n }", "function loadExternalData() {\n var loadFileParam = $location.search().loadfile;\n if (loadFileParam) {\n // block gui for long calls\n blockGui(true);\n Rest.callOther(\"loadableServerDataFiles\", \"loadFromFile\" + \"/\" + loadFileParam, initFromResponse);\n }\n }", "[$onContentLoad](e) {\n this.activeScene = undefined;\n this.activeEntity = undefined;\n this.activeRenderer = undefined;\n this.needsReload = false;\n }", "function load_deps(importer, scope, cache, ref, complete)\n{\n var dl = ref.length, i, t, cached,\n head, load, next, loaded = new Array(dl);\n // xpcom module / nodejs, require / webworker, importScripts\n if (isXPCOM || isNode || isWebWorker)\n {\n for (i=0; i<dl; i++)\n {\n if (HAS.call(ref[i],'loaded'))\n {\n loaded[i] = ref[i].loaded;\n // hook here\n importer.trigger('import-class', [\n // this, id, classname, path, reference\n importer, ref[i].id, ref[i].name, ref[i].path, loaded[ i ]\n ], ref[i].ctx).trigger('import-class-'+ref[i].id, [\n // this, id, classname, path, reference\n importer, ref[i].id, ref[i].name, ref[i].path, loaded[ i ]\n ], ref[i].ctx);\n }\n else if (HAS.call(cache,ref[i].ctx+'--'+ref[ i ].cache_id))\n {\n loaded[i] = cache[ref[i].ctx+'--'+ref[ i ].cache_id];\n }\n else if ('class' !== ref[ i ].type)\n {\n loaded[i] = cache[ref[i].ctx+'--'+ref[ i ].cache_id ] = read_file( ref[ i ].path, isXPCOM ? 'UTF-8' : 'utf8');\n }\n else if (ref[ i ].name in scope)\n {\n loaded[i] = scope[ref[ i ].name];\n }\n else\n {\n loaded[i] = import_module(ref[ i ].name, ref[ i ].path, scope) || null;\n // hook here\n importer.trigger('import-class', [\n // this, id, classname, path, reference\n importer, ref[i].id, ref[i].name, ref[i].path, loaded[ i ]\n ], ref[i].ctx).trigger('import-class-'+ref[i].id, [\n // this, id, classname, path, reference\n importer, ref[i].id, ref[i].name, ref[i].path, loaded[ i ]\n ], ref[i].ctx);\n }\n }\n return complete.apply(scope, loaded);\n }\n // browser, <script> tags\n else\n {\n head = $$tag('head', 0);\n t = 0; i = 0;\n load = function load(id, ctx, type, path, next) {\n var done, script;\n if ('style' === type || 'script' === type)\n {\n if ((script = $$(id)) && type === script.tagName[LOWER]())\n {\n next();\n }\n else\n {\n read_file_async(path, 'utf8', function(data) {\n cache[ ctx+'--'+id ] = data;\n $$asset(type, data)[ATTR]('id', id);\n next();\n });\n }\n }\n else if ('class' !== type)\n {\n if ('template' === type && (script = $$(id)) && 'script' === script.tagName[LOWER]())\n {\n next();\n }\n else\n {\n read_file_async(path, 'utf8', function(data) {\n cache[ ctx+'--'+id ] = data;\n if ('template' === type && !$$(id))\n $$asset('tpl', data)[ATTR]('id', id);\n next();\n });\n }\n }\n else\n {\n if ((script = $$(id)) && 'script' === script.tagName[LOWER]())\n {\n next();\n }\n else\n {\n done = 0;\n script = $$el('script');\n script[ATTR]('id', id);\n script[ATTR]('type', 'text/javascript');\n script.onload = script.onreadystatechange = function() {\n if (!done && (!script.readyState || 'loaded' == script.readyState || 'complete' == script.readyState))\n {\n done = 1;\n script.onload = script.onreadystatechange = null;\n next();\n }\n }\n // load it\n //script.src = path;\n script[ATTR]('src', path);\n head.appendChild(script);\n }\n }\n };\n next = function next() {\n var cached;\n if (HAS.call(ref[i],'loaded') || (cached=HAS.call(cache,ref[ i ].ctx+'--'+ref[ i ].cache_id)) || (ref[ i ].name in scope))\n {\n loaded[i] = (HAS.call(ref[i],'loaded') ? ref[i].loaded : (cached ? cache[ ref[ i ].ctx+'--'+ref[ i ].cache_id ] : scope[ ref[ i ].name ])) || null;\n\n // hook here\n importer.trigger('import-class', [\n // this, id, classname, path, reference\n importer, ref[i].id, ref[i].name, ref[i].path, loaded[ i ]\n ], ref[ i ].ctx).trigger('import-class-'+ref[i].id, [\n // this, id, classname, path, reference\n importer, ref[i].id, ref[i].name, ref[i].path, loaded[ i ]\n ], ref[ i ].ctx);\n\n if (++i >= dl)\n {\n complete.apply(scope, loaded);\n }\n else if (HAS.call(ref[i],'loaded') || (cached=HAS.call(cache,ref[ i ].ctx+'--'+ref[ i ].cache_id)) || (ref[ i ].name in scope))\n {\n loaded[i] = (HAS.call(ref[i],'loaded') ? ref[i].loaded : (cached ? cache[ ref[ i ].ctx+'--'+ref[ i ].cache_id ] : scope[ ref[ i ].name ])) || null;\n next();\n }\n else\n {\n scope[ref[ i ].name] = null;\n load(ref[ i ].cache_id, ref[ i ].ctx, ref[ i ].type, ref[ i ].path, next);\n }\n }\n else if (++t < 4)\n {\n setTimeout(next, 20);\n }\n else\n {\n t = 0;\n scope[ref[ i ].name] = null;\n // hook here\n importer.trigger('import-class', [\n // this, id, classname, path, reference\n importer, ref[i].id, ref[i].name, ref[i].path, null\n ], ref[ i ].ctx).trigger('import-class-'+ref[i].id, [\n // this, id, classname, path, reference\n importer, ref[i].id, ref[i].name, ref[i].path, null\n ], ref[ i ].ctx);\n i++; next();\n }\n };\n while (i < dl && (HAS.call(ref[i],'loaded') || (cached=HAS.call(cache,ref[ i ].ctx+'--'+ref[ i ].cache_id)) || (ref[ i ].name in scope)))\n {\n loaded[i] = (HAS.call(ref[i],'loaded') ? ref[i].loaded : (cached ? cache[ ref[ i ].ctx+'--'+ref[ i ].cache_id ] : scope[ ref[ i ].name ])) || null;\n i++;\n }\n if (i < dl) load(ref[ i ].cache_id, ref[ i ].ctx, ref[ i ].type, ref[ i ].path, next);\n else complete.apply(scope, loaded);\n }\n}", "function graphsLoadCompleteHandler(){\n $engine.log('DASHBOARD > LOADER: '+objloadedArr.length + ' / ' + loadCount)\n if(objloadedArr.length == loadCount){\n $engine.toggleViewLoader(false);\n $('.drilldown-button').show();\n loadCount=0;\n objloadedArr.length = null;\n }\n }", "function watchAsyncLoad() {\n if (opts.loadingAsync && !opts.isRemoved) {\n scope.$$loadingAsyncDone = false;\n\n $q.when(opts.loadingAsync)\n .then(function() {\n scope.$$loadingAsyncDone = true;\n delete opts.loadingAsync;\n }).then(function() {\n $$rAF(positionAndFocusMenu);\n });\n }\n }", "function watchAsyncLoad() {\n if (opts.loadingAsync && !opts.isRemoved) {\n scope.$$loadingAsyncDone = false;\n\n $q.when(opts.loadingAsync)\n .then(function() {\n scope.$$loadingAsyncDone = true;\n delete opts.loadingAsync;\n }).then(function() {\n $$rAF(positionAndFocusMenu);\n });\n }\n }", "function preload() {\r\n\r\n}", "function _useLoadUtil() {\n load(square.stage, app.stage);\n load(circle.stage, app.stage);\n}", "function preload() {\n \n}" ]
[ "0.6854409", "0.68128", "0.6809117", "0.66983587", "0.66983587", "0.6637859", "0.64689547", "0.645681", "0.6451884", "0.64461017", "0.6443149", "0.6344516", "0.63348323", "0.6231554", "0.6226932", "0.61864084", "0.6178532", "0.6176171", "0.6162337", "0.6127077", "0.612579", "0.61120725", "0.61120725", "0.6109433", "0.61058456", "0.6068496", "0.605959", "0.60469615", "0.60416293", "0.60404277", "0.59905696", "0.59600914", "0.59576577", "0.5954043", "0.5951702", "0.5928904", "0.59103364", "0.5898088", "0.58856034", "0.58856034", "0.583816", "0.583816", "0.583816", "0.583816", "0.5831418", "0.5831414", "0.58048826", "0.57917565", "0.57790524", "0.57781255", "0.5770592", "0.57684076", "0.5759529", "0.5757097", "0.57522017", "0.5751754", "0.5745901", "0.5720614", "0.5708852", "0.5708128", "0.5702404", "0.57005924", "0.57005924", "0.57005924", "0.57005924", "0.56979465", "0.5693187", "0.56909937", "0.56876945", "0.5685806", "0.5684059", "0.56804025", "0.56732833", "0.5665474", "0.5656922", "0.56532556", "0.5651616", "0.56376857", "0.5633703", "0.5624789", "0.5616013", "0.5614558", "0.56116736", "0.5611137", "0.5606207", "0.56053394", "0.56040746", "0.56027734", "0.5602139", "0.55945593", "0.5594187", "0.5590567", "0.55852294", "0.55828834", "0.55776274", "0.55746764", "0.55729157", "0.55729157", "0.5565044", "0.5560014", "0.5554944" ]
0.0
-1
TOTAL LOAD FOR VIBRATION CONSIDERATION
Deff(){ return 5*(this.wt()*this.Sj/(12*12))*Math.pow(this.Lj,4)*Math.pow(12,4)/(384*29000000*this.Ieff()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function refreshTotalCount() {\n\t\t\tconsole.log(\"refreshTotalCount()\");\n LDBTotalCountAPI.get(function(data){\n vm.total_count = data.total_count;\n });\n }", "addTotalFetched() { this.totalFetched.value++; this.updateStatNav(this.totalFetched); }", "function refreshTotalCount() {\n NonMutantCellLineTotalCountAPI.get(function(data){\n vm.total_count = data.total_count;\n });\n }", "loadFactor() {\n return this.elements / this.capacity;\n }", "loadFactor() {\n return this.elements / this.capacity;\n }", "getTotalProductionPerSecond() {\n var productionPerSecond = 0;\n Object\n .keys(this.Model.upgrades)\n .forEach( (key, index) => {\n productionPerSecond += this.getProductionPerSecond(key);\n });\n return Math.round(productionPerSecond * 10) / 10;\n }", "static getRefreshCost() {\n let notComplete = player.completedQuestList.filter((elem) => { return !elem(); }).length;\n return Math.floor(250000 * Math.LOG10E * Math.log(Math.pow(notComplete, 4) + 1));\n }", "totalUpdates() {\n return 30;\n }", "async fetchTotalSupply() {\n return Number(200000000);\n }", "dataLoadedPercentage() {\n\n return this.total == 0 ? 0 :\n this.loaded/this.total;\n }", "function totalcalc() {\n let total = 1299 + rmemory + ssd + deli;\n return total;;\n}", "function totalBytes(results) {\n var result = 0;\n for(var j in results.pageStats) {\n if(j.match(/Bytes/g)) {\n result += Number(results.pageStats[j]); \n }\n }\n return result;\n}", "function updateVMachinesView(request, vmachine_list){\n var vmachine_list_array = [];\n\n active_vms = 0;\n pending_vms = 0;\n failed_vms = 0;\n off_vms = 0;\n\n var total_real_cpu = 0;\n var total_allocated_cpu = 0;\n\n var total_real_mem = 0;\n var total_allocated_mem = 0;\n\n $.each(vmachine_list,function(){\n vmachine_list_array.push( vMachineElementArray(this));\n\n if(this.VM.STATE == 3 && this.VM.STATE == 3){ // ACTIVE, RUNNING\n total_real_cpu += parseInt(this.VM.CPU);\n total_allocated_cpu += parseInt(this.VM.TEMPLATE.CPU * 100);\n\n total_real_mem += parseInt(this.VM.MEMORY);\n total_allocated_mem += parseInt(this.VM.TEMPLATE.MEMORY);\n }\n });\n\n updateView(vmachine_list_array,dataTable_vMachines);\n\n var usage = 0;\n if(total_allocated_cpu != 0){\n usage = parseInt(100 * total_real_cpu / total_allocated_cpu);\n }\n //var info_str = usage+'%';\n //$(\"#dash_vm_real_cpu\").html(usageBarHtml(usage, 100, info_str, true));\n\n $(\"#dashboard_cpu_usage\").html(quotaDashboard(\n \"dashboard_cpu_usage\",\n tr(\"REAL CPU USAGE\"),\n \"40px\",\n \"14px\",\n {\"percentage\": usage, \"str\": (total_real_cpu + \" / \" + total_allocated_cpu)})\n );\n\n usage = 0;\n if(total_allocated_mem != 0){\n usage = parseInt(100 * total_real_mem / 1024 / total_allocated_mem);\n }\n //info_str = usage+'%';\n //$(\"#dash_vm_real_mem\").html(usageBarHtml(usage, 100, info_str, true));\n\n $(\"#dashboard_memory_usage\").html(quotaDashboard(\n \"dashboard_memory_usage\",\n tr(\"REAL MEMORY USAGE\"),\n \"40px\",\n \"14px\",\n {\"percentage\": usage, \"str\": (humanize_size(Math.floor((total_real_mem))) + \" / \" + humanize_size(total_allocated_mem * 1024)) })\n );\n\n $(\".total_vms\").text(vmachine_list.length);\n $(\".active_vms\").text(active_vms);\n $(\".pending_vms\").text(pending_vms);\n $(\".failed_vms\").text(failed_vms);\n $(\".off_vms\").text(off_vms);\n}", "function refreshTotalCount() {\n AlleleFearTotalCountAPI.get(function(data){\n vm.total_count = data.total_count;\n });\n }", "function displayTotal() {\n\tscreen1.bugCount.html(prettyNumber(Math.round(state.larvae)));\n\tscreen1.larvaePerSec.html(prettyNumber(state.lps));\n}", "function dataTotal(v) {\n\tvar vT = 0;\n\tfor(var i=0, len=v.length; i<len; i++) {\n\t\tvT += v[i];\n\t}\n\treturn vT;\n}", "totalTime() {\n let time = 0\n this.measures.forEach(m => time += m.totalTime())\n return time\n }", "percentage() {\n if(this.totalCount) {\n return parseInt((this.loadedCount * 100) / this.totalCount);\n }\n }", "async calculateCpuUsage() {\n this.__cpuUsage = await utils.getCpuUsage({ timeout: this.__cpuUsageInterval });\n }", "function totalBytes(results) {\n var total = 0;\n var stats = results.pageStats;\n for (var item in stats) {\n if (item.indexOf(\"Bytes\") !== -1) {\n total = total + parseInt(stats[item],10);\n }\n }\n return total;\n}", "function totalBytes(results) {\n var total = 0;\n var pageStats = results.pageStats;\n for(var key in pageStats) {\n if(key.endsWith('Bytes')) {\n total += parseInt(pageStats[key], 10);\n }\n }\n return total;\n}", "static get THRESHOLD () {\n return 9;\n }", "function getSumTotalBytes () {\n return getActiveDownloads().reduce((acc, item) => acc + item.getTotalBytes(), 0)\n}", "getDataplaneTotalCount ({ commit }) {\n const getItems = async () => {\n const entities = await api.getAllDataplanes()\n const count = entities.items.length\n\n commit('SET_TOTAL_DATAPLANE_COUNT', count)\n }\n\n getItems()\n }", "getTrafficRouteTotalCount ({ commit }) {\n const getItems = async () => {\n const entities = await api.getAllTrafficRoutes()\n const count = entities.items.length\n\n commit('SET_TOTAL_TRAFFIC_ROUTE_COUNT', count)\n }\n\n getItems()\n }", "function getLoad(callback) {\n\tvar result = {};\n\tvar loads = os.loadavg().map(function(x) { return x / _cores; } );\n\tresult.avgload = parseFloat((Math.max.apply(Math, loads)).toFixed(2));\n\tresult.currentload = -1;\n\n\tvar cmd = (_darwin) ? \"ps -caxm -o pcpu\" : \"ps axo pcpu\";\n\texec(cmd, function(error, stdout) {\n\t\tif (!error) {\n\t\t\tvar lines = stdout.toString().replace(/,+/g, \".\").split('\\n');\n\t\t\tlines.shift();\n\t\t\tlines.pop();\n\t\t\tresult.currentload = parseFloat(((lines.reduce(function (pv, cv) {\n\t\t\t\treturn pv + parseFloat(cv.trim());\n\t\t\t}, 0)) / _cores).toFixed(2));\n\t\t}\n\t\tcallback(result)\n\t});\n}", "get totalBase() {\n return this.realBase + this.virtualBase;\n }", "function loadTotals( collection, loadData ){\n\t\t\t\tangular.forEach( loadData, function(loadItem, key){\n\t\t\t\t\tif( typeof loadItem.total != 'undefined' ){\n\t\t\t\t\t\tcollection[key].total = loadItem.total;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t}", "function set_page_load_time(plt) {\n\tvar t = total_verification_page_loads * page_load_time;\n\ttotal_verification_page_loads += 1;\n\tpage_load_time = (t + plt)/total_verification_page_loads;\n\tconsole.log(\"APPU DEBUG: Current average page-load-time: \" + \n\t\t page_load_time + \" ms (total verification page loads:\" + \n\t\t total_verification_page_loads + \")\");\n }", "get numLoaded() { return _numLoaded; }", "getTrafficLogTotalCount ({ commit }) {\n const getItems = async () => {\n const entities = await api.getAllTrafficLogs()\n const count = entities.items.length\n\n commit('SET_TOTAL_TRAFFIC_LOG_COUNT', count)\n }\n\n getItems()\n }", "function computeTotalDistance(result) {\n var total = 0, i,\n myroute = result.routes[0];\n for (i = 0; i < myroute.legs.length; i++) {\n total += myroute.legs[i].distance.value;\n }\n total = total / 1000;\n scope.$apply(function() {\n model.totalKm = total;\n });\n }", "function moduleLoadProgress(event) {\n var loadPercent = 0.0;\n var loadPercentString;\n if (event.lengthComputable && event.total > 0) {\n loadPercent = event.loaded / event.total * 100.0;\n loadPercentString = loadPercent + '%';\n } else {\n // The total length is not yet known.\n loadPercent = -1.0;\n loadPercentString = 'Computing...';\n }\n appendToEventLog('progress: ' + loadPercentString +\n ' (' + event.loaded + ' of ' + event.total + ' bytes)');\n}", "stats() {\n return {\n numComponents: this.Components.length,\n numEntities: this.entities.length\n };\n }", "function getTotal() {\n const firstClassCount = getInputValue('firstClass');\n const economyCount = getInputValue('economy');\n const subTotal = firstClassCount * 150 + economyCount * 100;\n document.getElementById('subTotalAmount').innerText = subTotal;\n\n const vat = subTotal * 0.1;\n const total = subTotal + vat;\n document.getElementById('vatAmount').innerText = vat;\n document.getElementById('totalAmount').innerText = total;\n}", "getRefreshCost() {\n // If we have a free refersh, just assume all the quest are completed\n const notComplete = this.freeRefresh() ? 0 : this.incompleteQuests().length;\n const cost = Math.floor((250000 * Math.LOG10E * Math.log(Math.pow(notComplete, 4) + 1)) / 1000) * 1000;\n return new Amount(Math.max(0, Math.min(1e6, cost)), GameConstants.Currency.money);\n }", "runDelta(){\n this.nowSec = parseInt(Date.now() / 1000);\n let output = [];\n let initialRun = false;\n let majorNumbers = cp.execSync(`lsblk | grep -Ev 'NAME|rom' | awk '{print $2}' | cut -d: -f 1 | sort -u`)\n .toString()\n .split(\"\\n\")\n .filter(a=>a)\n .map((a) => { return this.num(a);});\n let sensor = {\n \"time\": this.nowSec,\n \"disk\": this.readStat('/proc/diskstats'),\n \"stats\": this.readStat('/proc/stat'),\n \"net\": this.readStat('/proc/net/dev'),\n \"arp\": this.readStat('/proc/net/arp')\n };\n \n if(this.CACHE === null ){\n initialRun = true;\n this.CACHE = sensor;// if no cache ( cleared or first run, assume that current data is a cache data )\n }\n let cores = this.num(cp.execSync('nproc')); // get number of cores\n let netInterfaces = cp.execSync(`ls /sys/class/net/ | grep -v lo`).toString().split(\"\\n\").filter(a => a);\n let cacheTime = this.CACHE.time;\n let cacheTimeDiff = this.nowSec - cacheTime;\n cacheTimeDiff = cacheTimeDiff === 0 ? 1 : cacheTimeDiff; // prevent division by zero for intervals less than 1 sec.\n if(initialRun === false)\n {\n // Total CPU\n output.push([\"cpu.user\", this.cpuCalc(this.CACHE.stats['cpu'][0], sensor.stats['cpu'][0], 0 /* user */ )]);\n output.push([\"cpu.nice\", this.cpuCalc(this.CACHE.stats['cpu'][0], sensor.stats['cpu'][0], 1 /* nice */ )]);\n output.push([\"cpu.system\", this.cpuCalc(this.CACHE.stats['cpu'][0], sensor.stats['cpu'][0], 2 /* system */ )]);\n output.push([\"cpu.idle\", this.cpuCalc(this.CACHE.stats['cpu'][0], sensor.stats['cpu'][0], 3 /* idle */ )]);\n // each core load\n for (let i = 0; i < cores; i++){\n output.push(['cpu' + i + '.user', this.cpuCalc(this.CACHE.stats['cpu' + i][0], sensor.stats['cpu' + i][0], 0 )]);\n output.push(['cpu' + i + '.nice', this.cpuCalc(this.CACHE.stats['cpu' + i][0], sensor.stats['cpu' + i][0], 1 )]);\n output.push(['cpu' + i + '.system', this.cpuCalc(this.CACHE.stats['cpu' + i][0], sensor.stats['cpu' + i][0], 2 )]);\n output.push(['cpu' + i + '.idle', this.cpuCalc(this.CACHE.stats['cpu' + i][0], sensor.stats['cpu' + i][0], 3 )]);\n }\n // Get network speed ( upload / download ) per sec.\n for (let i in netInterfaces) {\n let inet = netInterfaces[i]; // interface name\n output.push([\"net.\" + inet + \".rx\",this.netCalc(this.CACHE.net[inet + ':'][0][0] / cacheTimeDiff , sensor.net[inet + ':'][0][0] / cacheTimeDiff )]);\n output.push([\"net.\" + inet + \".tx\",this.netCalc(this.CACHE.net[inet + ':'][0][8] / cacheTimeDiff , sensor.net[inet + ':'][0][8] / cacheTimeDiff )]);\n }\n // Disks stats\n for(let i in majorNumbers){\n let sensorDriver = sensor.disk[majorNumbers[i]];\n let cacheDriver = this.CACHE.disk[majorNumbers[i]];\n for(let j in sensorDriver){\n output.push([\"disk.\" + sensorDriver[j][1] + '.writespeed',this.format((sensorDriver[j][8] - cacheDriver[j][8]) / 2 / cacheTimeDiff)]);\n }\n }\n\n }\n // ARP changes\n let arpNew = sensor.arp;\n for(let ip in arpNew){\n if(ip === 'ip') continue;\n output.push(['arp.' + this.addresToInt(ip,'.',10),this.addresToInt(arpNew[ip][0][2],':',16)]);\n }\n // Processes\n output.push([\"procs.running\",sensor.stats['procs_running'][0][0]]);\n output.push([\"procs.blocked\",sensor.stats['procs_blocked'][0][0]]);\n // build sensors output\n this.CACHE = sensor;\n this.out(this.prepare(output));\n }", "getTotalServicesPicked(){\n\t\tlet totalServices = 0;\n\n\t\t//#1 - Iterate each service to get info \n\t\tthis.myServices.forEach((service)=>{\n\t\t\ttotalServices += service.totalPickedItems;\n\t\t})\n return totalServices;\n }", "function refreshMCLCount() {\n NonMutantCellLineMCLCountAPI.search(vm.results[vm.selectedIndex].cellLineKey, function(data) {\n vm.mcl_count = data.total_count;\n });\n }", "function updateHitrate()\n{\n\tvar s1 = collect(makeProperJson(vdata[0]),['VBE'],undefined);\n\tvar tmp = [10, 100, 1000];\t\n\tfor (x in tmp ) {\n\t\ta = tmp[x];\n\t\tvar origa = a;\n\t\tif (vdatap.length-1 < a) {\n\t\t\ta = vdatap.length-1;\n\t\t}\n\t\tproper = makeProperJson(vdata[a]);\n\t\ts2 = collect(proper,['VBE'],undefined);\n\t\tstorage = collect(proper,['SMA','SMF'],'Transient');\n\t\thitrate[origa].d = a;\n\t\thitrate[origa].h = ((vdatap[0]['cache_hit'] - vdatap[a]['cache_hit']) / (vdatap[0]['client_req'] - vdatap[a]['client_req'])).toFixed(5);\n\t\thitrate[origa].b = (s1['beresp_hdrbytes'] + s1['beresp_bodybytes'] - \n\t\t\t\t s2['beresp_hdrbytes'] - s2['beresp_bodybytes']) / a;\n\t\thitrate[origa].f = (vdatap[0]['s_resp_hdrbytes'] + vdatap[0]['s_resp_bodybytes']\n\t\t\t\t- (vdatap[a]['s_resp_hdrbytes'] + vdatap[a]['s_resp_bodybytes']))/a;\n\t\tdocument.getElementById(\"hitrate\" + origa + \"d\").textContent = hitrate[origa].d;\n\t\tdocument.getElementById(\"hitrate\" + origa + \"v\").textContent = (hitrate[origa].h*100).toFixed(3) + \"%\";\n\t\tdocument.getElementById(\"bw\" + origa + \"v\").textContent = toHuman(hitrate[origa].b) + \"B/s\";\n\t\tdocument.getElementById(\"fbw\" + origa + \"v\").textContent = toHuman(hitrate[origa].f) + \"B/s\";\n\t\t\n\t\tdocument.getElementById(\"storage\" + origa + \"v\").textContent = toHuman(storage['g_bytes']);\n\n\t}\n\tdocument.getElementById(\"MAIN.uptime-1\").textContent = secToDiff(vdatap[0]['uptime']);\n\tdocument.getElementById(\"MGT.uptime-1\").textContent = secToDiff(vdatap[0]['MGT.uptime']);\n}", "addLoadingTime(time) {\n this.loadTimes.push(time.totalMilliseconds);\n if (this.loadTimes.length > 100) {\n this.loadTimes.pop();\n }\n let sum = 0;\n this.loadTimes.forEach((t) => sum += t);\n this.nextLoadTimePrediction = Math.round(sum / this.loadTimes.length);\n // log(sprintf(\"New Time: %s \\t Next Prediction: %s\", time.totalMilliseconds, this.nextLoadTimePrediction));\n }", "function getTotalPts(){\n\t\ttotalPts = attendanceTotalPts + rxnTotalPts + blogTotalPts + sliderPts + teamPts\n\t\t// console.log(attendanceTotalPts +\", \" +rxnTotalPts +\", \" +blogTotalPts +\", \" +sliderPts +\", \" +teamPts)\n\t}", "getTotal(){\n this.totalPaid = this.periods * this.scPayment\n this.totalInterest = this.totalPaid - this.loanAmount\n }", "getRefreshCost() {\n const notComplete = this.incompleteQuests().length;\n return new Amount(Math.floor(250000 * Math.LOG10E * Math.log(Math.pow(notComplete, 4) + 1)), GameConstants.Currency.money);\n }", "function getFullLoad(callback) {\n\tif (_windows) {\n\t\tcallback(NOT_SUPPORTED);\n\t}\n\n\tvar result = {};\n if (_linux) {\n \tif (fs.existsSync('/proc/uptime')) {\n \t\tvar output = fs.readFileSync('/proc/uptime').toString();\n \t\toutput = output.replace(/ +/g, \" \").split(' ');\n \t\tvar uptime = parseFloat(output[0]);\n \t\tvar idletime = parseFloat(output[1]) / _cores;\n \t\tresult.fullload = (uptime - idletime) / uptime * 100.0;\n \t\tcallback(result);\n \t}\n }\n\tif (_darwin) {\n \tresult.fullload = 0;\n \tcallback(result);\n }\n}", "getTrafficTraceTotalCount ({ commit }) {\n const getItems = async () => {\n const entities = await api.getAllTrafficTraces()\n const count = entities.items.length\n\n commit('SET_TOTAL_TRAFFIC_TRACE_COUNT', count)\n }\n\n getItems()\n }", "function utilityPointTotal() {\nvar total_number_utilPoint = {\nonStatisticField: \"LAYER\",\noutStatisticFieldName: \"total_number_utilPoint\",\nstatisticType: \"count\"\n};\n\nvar query = utilPointLayer.createQuery();\nquery.outStatistics = [total_number_utilPoint];\n\nreturn utilPointLayer.queryFeatures(query).then(function(response) {\nvar stats = response.features[0].attributes;\nconst totalNumberPoint = stats.total_number_utilPoint;\nreturn totalNumberPoint;\n});\n}", "function IndicadorTotal () {}", "function showTotal(start,end){\n $.ajax({\n type: \"GET\",\n async:false,\n url: 'https://'+BALLERINA_URL+'/pmt-dashboard-serives/loaddashboard/'+start+'/'+end,\n success: function(jsonResponse){\n document.getElementById('proactive').innerHTML = jsonResponse.proactiveCount;\n document.getElementById('reactive').innerHTML = jsonResponse.reactiveCount;\n document.getElementById('unCategory').innerHTML = jsonResponse.uncategorizedCount;\n document.getElementById('queuedPatchCount').innerHTML = jsonResponse.yetToStartCount;\n document.getElementById('completePatchCount').innerHTML = jsonResponse.completedCount;\n document.getElementById('partiallyCompletePatchCount').innerHTML = jsonResponse.partiallyCompletedCount;\n document.getElementById('inProcessPatchCount').innerHTML = jsonResponse.inProgressCount;\n document.getElementById('overETAcount').innerHTML = '('+jsonResponse.ETACount+'<span style=\"font-size:12px;\"> over ETA</span>)';\n totalProducts = jsonResponse.menuDetails.allProducts.length;\n menuDrillDown = jsonResponse.menuDetails.allProducts;\n versionCount = jsonResponse.menuDetails.allVersions.length;\n menuVersionDrillDown = jsonResponse.menuDetails.allVersions;\n\n }\n });\n}", "function getTotal(){\n\t\t\treturn total;\n\t\t}", "function getTotalAmountFinanced(){\n\t\treturn parseInt(localStorage.pSlider)-parseInt(localStorage.dPayment);\t\t\n\t}", "function populateMemoryStatus(){\n settingsMemoryTotal.innerHTML = Number((os.totalmem()-1000000000)/1000000000).toFixed(1) + 'G'\n settingsMemoryAvail.innerHTML = Number(os.freemem()/1000000000).toFixed(1) + 'G'\n}", "function calc() { // @ret Object: { processing, redirect, appcache,\n // dns, dom, load, fetch }\n // processing - Number: Processing time\n // redirect - Number: redirect elapsed\n // appcache - Number: Application cache elapsed\n // dns - Number: DomainLookup elapsed\n // dom - Number: DOMContentLoaded event elapsed\n // load - Number: window.load event elapsed\n // fetch - Number: fetchStart to window.load event finished\n // @help: Perf.calc\n // @desc: calc performance data\n\n var tm = (global.performance || 0).timing || 0;\n\n if (!tm) {\n return { processing: 0, redirect: 0, appcache: 0,\n dns: 0, dom: 0, load: 0, fetch: 0 };\n }\n return {\n processing: tm.loadEventStart - tm.responseEnd,\n redirect: tm.redirectEnd - tm.redirectStart,\n appcache: tm.domainLookupStart - tm.fetchStart,\n dns: tm.domainLookupEnd - tm.domainLookupStart,\n dom: tm.domContentLoadedEventEnd - tm.domContentLoadedEventStart,\n load: tm.loadEventEnd - tm.loadEventStart,\n fetch: tm.loadEventEnd - tm.fetchStart\n };\n}", "getTotalPayment() {\n let total = 0;\n this.operations.forEach(op => {\n total += op.amount;\n });\n return total;\n }", "totalProduction(sp = this._milkPrice) {\n let x = 0;\n for (let [key, values] of Object.entries(this.milkProducedPerShed(sp))) {\n x += values;\n }\n return x;\n }", "updateStats() {\n if (this.status === 0 || !this.dealtIn) {\n this.nvpip = 0;\n this.npfr = 0;\n this.n3bet = 0;\n this.nhands = 0;\n }\n else if (this.status === 1) {\n this.nvpip += this._vpip;\n this.npfr += this._pfr;\n this.n3bet += this._3bet;\n this.nhands += 1;\n }\n \n this._vpip = 0;\n this._pfr = 0;\n this._3bet = 0;\n }", "function calculateViewAmount(uploads){\n let viewCounter = 0;\n\n for(const checkUpload of uploads){\n // console.log(checkUpload);\n\n let stringToCheck;\n if(within == 'alltime'){\n stringToCheck = 'viewsAllTime';\n } else {\n stringToCheck = `viewsWithin${within}`;\n }\n const forThisUpload = checkUpload[stringToCheck];\n viewCounter = viewCounter + forThisUpload;\n }\n return viewCounter;\n }", "function totalCalculation() {\n const firstClassTicketCount = getTicketInput('firstClass');\n const economyTicketCount = getTicketInput('economy');\n const subTotal = firstClassTicketCount * 150 + economyTicketCount * 100;\n document.getElementById('subTotal').innerText = subTotal;\n const vat = subTotal / 10;\n document.getElementById('vat').innerText = vat;\n const total = subTotal + vat;\n document.getElementById('total').innerText = total;\n document.getElementById('confirmAmount').innerText = total;\n}", "getTotalRewards() {\n let asps = []\n let stats = game.app.stats\n let rews = {\n force: stats.embodimentReward.Force.amount,\n entropy: stats.embodimentReward.Entropy.amount,\n form: stats.embodimentReward.Form.amount,\n inertia: stats.embodimentReward.Inertia.amount,\n life: stats.embodimentReward.Life.amount,\n }\n\n for (let x in this.app.state.aspects) {\n asps.push(this.getReferenceById(this.app.state.aspects[x].id))\n }\n\n for (let x in asps) {\n for (let z in asps[x].rewards) {\n let amount = asps[x].rewards[z]\n rews[z] += amount\n }\n }\n\n // core nodes\n for (let x in game.app.state.coreNodes) {\n rews[x] += game.app.state.coreNodes[x] ? 1 : 0\n if (game.app.hasCompleteCore)\n rews[x] += 1\n }\n\n return rews;\n }", "function loadTokens() {\n\tvar currentTokens = $('#current-tokens-sold');\n\tvar allTokens = $('#all-tokens');\n\t$.ajax({\n\t\turl: waves_server + \"/api/balance\",\n\t\tsuccess: function (result) {\n\t\t\t\n\t\t\tvar total = parseInt(result.phases.presale.limit) / 100000000;\n\t\t\tvar sold = total - (result.balance / 100000000);\n\t\t\tvar cap = 10000000;\n\t\t\t\n\t\t\t$('.progress-active').attr('data-perc', (sold / cap) * 100);\n\t\t\t\n\t\t\tcurrentTokens.html(sold.formatMoney(0, '.', ','));\n\t\t\tallTokens.html(cap.formatMoney(0, '.', ','));\n\t\t}\n\t})\n}", "function getCpuLoad() {\n return new Promise((resolve, reject) => {\n const start = cpuAverage();\n setTimeout(() => {\n const end = cpuAverage();\n const idleDiff = end.idle - start.idle;\n const totalDiff = end.total - start.total;\n //calc % load\n const percentageLoad = 100 - Math.floor((100 * idleDiff) / totalDiff);\n resolve(percentageLoad);\n }, 100);\n });\n}", "async function numberkmsPerc() {\n let kms = 0;\n const response = await fetch(`${urlBaseSQL}/read/user/vehicles/${idUser}`, {\n headers: {\n \"Authorization\": auth\n }\n })\n if (response.status == 200) {\n const veicules = await response.json();\n for (const veicule of veicules) {\n const response2 = await fetch(`${urlBaseSQL}/trip/read/${veicule.id}`, {\n headers: {\n 'Authorization': auth\n }\n });\n if (response2.status == 200) {\n const trips = await response2.json();\n for (const trip of trips) {\n console.log(typeof trip.distance);\n kms += (trip.distance / 1000);\n }\n }\n }\n }\n numeroKmsPerc.innerHTML = parseFloat(Math.round(kms * 100) / 100);\n }", "function updateTotal() {\n\n}", "total() {\n const rawTotal = this.rawTotal();\n const appliedDiscounts = this.getAppliedDiscounts();\n const discountTotal = this.discountSrv.total(appliedDiscounts);\n return rawTotal - discountTotal;\n }", "calculateTotal() {\n\t\t//Réinitialise le total\n\t\tthis.total = 0\n\t\tfor (let product of this.products) {\n\t\t\tthis.total += product.price * product.number\n\t\t}\n\t}", "function getTotalThreat(){\n\t\tvar total = 0;\n\t\t/* Rate multiplier */\n\t\tswitch ( (amounts || defaultParams).rateMultiplier ){\n\t\t\tcase RateMultiplier.TIMES1:\n\t\t\t\tbreak;\n\t\t\tcase RateMultiplier.TIMES2:\n\t\t\t\ttotal += 10;\n\t\t\t\tbreak;\n\t\t\tcase RateMultiplier.TIMES4:\n\t\t\t\ttotal += 20;\n\t\t\t\tbreak;\n\t\t}\n\t\treturn total;\n\t}", "calcTotal(){\n\t\t\tlet length = this.sales.length;\n\t\t\tthis.paidCommissionTotal = 0;\n\t\t\tthis.commissionTotal = 0;\n\t\t\tfor(let i = 0; i < length; ++i){\n\t\t\t\t\tthis.commissionTotal += this.sales[i].commission;\n\t\t\t\t\tif(this.sales[i].paid == true){\n\t\t\t\t\t\tthis.paidCommissionTotal += this.sales[i].commission;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tthis.sales.length;\n\t\t}", "calculateServings() {\n this.servings = 4;\n }", "function calcProjectTotal() {\n self.projects.forEach(function (project) {\n projectMethods.getProjectItemsByProjectId(project.id).then(function(items){\n var projectSum=0;\n items.forEach(function(calculation){\n projectSum += calculation.co2_offset;\n });\n project.projectTotal= Math.floor(projectSum * 10000)/10000;\n });\n\n })\n }", "totaluploadprogress () {\n }", "function totalRows(err, rows, fields, req, res, names, searchquery) {\n\tif (err) throw err;\n\trecordsTotal = rows[0].total;\n\n\tconnection.query(\n\t\"SELECT COUNT(*) AS total FROM benchmark\"+searchquery,\n\t(err, rows, fields) => {filteredRows(err, rows, fields, req, res, recordsTotal, searchquery, names)});\n}", "computeTotals()\n {\n if (this.file.transactions.length == 0)\n return\n\n this.totalSpendings = this.file.transactions\n .map(x => Math.min(x.amount, 0))\n .reduce((acc, x) => acc + x)\n\n this.totalIncome = this.file.transactions\n .map(x => Math.max(x.amount, 0))\n .reduce((acc, x) => acc + x)\n }", "async fetchTotalSupply() {\n const { result: { supply: { total } } } = await this.request(\n 'https://public-lcd2.akash.vitwit.com/supply/summary',\n );\n\n const record = total.find((item) => item.denom === 'uakt');\n\n return Number(record.amount) / 10 ** 6;\n }", "function updateTotalCookPerSecChain(){\n updateTotalCookPerSec();\n \n if(dist[item]){\n updateTotalDistribution();\n }\n else{\n updateTotalProduction();\n }\n \n updateTimeToGet();\n updateEfficiency();\n}", "function countSum() {\n\tvar sum = 0;\n\tvar timeWasted = JSON.parse(localStorage[\"timeWasted\"]);\n\t\tif (timeWasted !== undefined) {\n\t\t\tsum = timeWasted + UPDATE_SECONDS;\n\t\t\tlocalStorage[\"timeWasted\"] = JSON.stringify(sum);\n\t\t\tconsole.log('Total time wasted is ' + sum + ' seconds');\n\n\t\t\tvar target = JSON.parse(localStorage[\"target\"]);\n\t\t\tvar key = localStorage[\"keyVal\"];\n\t\t\tif (target !== 0 && !waiting && key !== \"Vaan\" && key !== \"Squall\") {\n\t\t\t\tcheckWasteTarget(sum, target);\n\t\t\t}\t\n\t\t\telse console.log(\"no target set\");\n\t\t\tif (waiting) console.log(\"waiting patiently\");\n\t\t}\n\t\telse console.log(\"PANIC: timeWasted undefined!!\");\n}", "updatePercentReady() {\n let stats_ready = 0,\n stats_count = this.stats_list.length\n\n this.percent_ready = this.stats_aggregated.percent_ready || 0\n this.compare_percent_ready = this.compare_stats_aggregated.percent_ready || 0\n\n if (stats_count == 0)\n return\n\n if (this.percent_ready === 0) {\n this.stats_list.map(s => {\n if (s.percent_ready === 1)\n stats_ready +=1\n })\n this.percent_ready = parseFloat(stats_ready / stats_count)\n }\n\n if (this.compare_percent_ready === 0) {\n this.stats_list.map(s => {\n if (s.percent_ready === 1)\n stats_ready +=1\n })\n this.percent_ready = parseFloat(stats_ready / stats_count)\n }\n }", "function calculateTotal() {\n const firstClassCount = getInputValue('first-class');\n const economyCount = getInputValue('economy');\n\n const subTotal = firstClassCount * 150 + economyCount * 100;\n document.getElementById('sub-total').innerText = '$' + subTotal;\n\n const vat = subTotal * 0.1;\n document.getElementById('vat').innerText = '$' + vat;\n\n const total = subTotal + vat;\n document.getElementById('total').innerText = '$' + total;\n}", "function getTotal(){\n return document.getElementById('overview')?document.getElementsByClassName('step').length - 1: document.getElementsByClassName('step').length;\n }", "function getTotalData(){\r\n\t \t\t var totalUnitData = 0;\r\n\t \t\t for (var i=0; i<unitValues.length;i++){\r\n\t \t\t\t totalUnitData += unitValues[i]; \r\n\t \t\t }\r\n\t \t\t return totalUnitData;\r\n\t \t }", "function test_candu_verify_global_utilization_metrics() {}", "function getTotalProductTr() {\r\n return TUC.at(tucAddress).then(function(instance) {\r\n tucInstance = instance;\r\n return tucInstance.getNumberOfTrs.call()\r\n }).then(function(total) {\r\n return total;\r\n });\r\n}", "getCompletedPerUnit() {\n return this.recentProgress / this.windowLength;\n }", "function updateTotalNodes() {\r\n\tvar totalNodesSpan = document.getElementById('total-nodes-span');\r\n\tif (totalNodesSpan != null || totalNodesSpan != undefined) {\r\n\t\ttotalNodesSpan.innerText = countNodes();\r\n\t}\r\n}", "function treeCuttingTotal() {\nvar total_number_tree = {\nonStatisticField: \"CommonName\",\noutStatisticFieldName: \"total_number_tree\",\nstatisticType: \"count\"\n};\n\nvar query = treeLayer.createQuery();\nquery.outStatistics = [total_number_tree];\n\nreturn treeLayer.queryFeatures(query).then(function(response) {\nvar stats = response.features[0].attributes;\nconst totalNumber = stats.total_number_tree;\n//const LOT_HANDOVER_PERC = (handedOver/affected)*100;\nreturn totalNumber;\n});\n}", "function recordSegmentDownloadRate() {\r\n\ttotalEndTime = performance.now();\r\n\tvar totalTime = totalEndTime - totalStartTime;\r\n\tdocument.getElementById(\"result\").events_textarea.value += \"TotalTime:\" + totalTime + \"\\n\";\r\n}", "get total() {\n\t\treturn this.__total;\n\t}", "startCalcSpeed () {\n // calc rest time of backup\n this.lastTenData.length = 0\n this.startTime = new Date().getTime()\n let restTime = -1\n let lastRestTime = -1\n let beforeLastRestTime = -1\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n const data = this.summary()\n this.lastTenData.unshift(data)\n\n // keep 10 data\n if (this.lastTenData.length > 10) this.lastTenData.length = 10\n\n const length = this.lastTenData.length\n // start calc restTime\n if (length > 1) {\n const deltaSize = this.lastTenData[0].transferSize - this.lastTenData[length - 1].transferSize\n const restTimeBySize = (data.size - data.completeSize) / deltaSize * (length - 1)\n\n const deltaCount = this.lastTenData[0].finishCount - this.lastTenData[length - 1].finishCount\n const restTimeByCount = (data.count - data.finishCount) / deltaCount * (length - 1)\n\n const usedTime = (new Date().getTime() - this.startTime) / 1000\n const restTimeByAllSize = (data.size - data.completeSize) * usedTime / data.transferSize\n const restTimeByAllCount = data.count * usedTime / data.finishCount - usedTime\n\n /* combine of restime by different method */\n restTime = Math.max(Math.min(restTimeBySize, restTimeByCount), Math.min(restTimeByAllSize, restTimeByAllCount))\n\n /* only use restTimeBySize */\n restTime = restTimeBySize\n // max restTime: 30 days\n restTime = Math.min(restTime, 2592000)\n /* average of the last 3 restTime */\n if (lastRestTime < 0 || beforeLastRestTime < 0) {\n lastRestTime = restTime\n beforeLastRestTime = restTime\n }\n restTime = (beforeLastRestTime + lastRestTime + restTime) / 3\n\n beforeLastRestTime = lastRestTime\n lastRestTime = restTime\n }\n\n const ltd = this.lastTenData\n const speed = ltd.length > 1 ? (ltd[0].transferSize - ltd[ltd.length - 1].transferSize) / ltd.length - 1 : 0\n\n const bProgress = data.count ? `${data.finishCount || 0}/${data.count}` : '--/--'\n\n const args = { speed, restTime: getLocaleRestTime(restTime), bProgress, ...data }\n webContents.getAllWebContents().forEach(contents => contents.send('BACKUP_MSG', args))\n }, 1000)\n }", "function getTotalValue(interv)\n{\nvar total = 0;\nvar result = 0;\n\nfor (var i=0; i<clSize; i++) /*foreach element in the new linguistic scale*/\n\t{\n\ttotal += interv.vars[i];\n\tresult += interv.vars[i]*i; /*add i*intervalVector[i] to the total value of the solution*/\n\t}\n\nresult /= total;\nreturn result;\n}", "function getCurrentConsumption() {\n let ls = JSON.parse(localStorage.getItem('usage'));\n if (!ls) return -1;\n let total = 0;\n for (var i in ls) total += ls[i].totalconsumption;\n return total;\n }", "function totalProgressStFoundation() {\n // structural Foundation\n var total_complete = {\n onStatisticField: \"CASE WHEN Status = 4 THEN 1 ELSE 0 END\",\n outStatisticFieldName: \"total_complete\",\n statisticType: \"sum\"\n };\n\n var total_obs = {\n onStatisticField: \"Status\",\n outStatisticFieldName: \"total_obs\",\n statisticType: \"count\"\n };\n\nvar query = stFoundationLayer.createQuery();\nquery.outStatistics = [total_complete, total_obs];\nquery.returnGeometry = true;\nreturn stFoundationLayer.queryFeatures(query).then(function(response) {\n var stats = response.features[0].attributes;\n\n const total_comp = stats.total_complete;\n const total_obs = stats.total_obs;\n const compile_stFoundation = [total_comp, total_obs];\n return compile_stFoundation;\n});\n}", "function calculateBasedCpu() {\n var qtyAppNode = document.getElementById('qtyAppNode').value;\n var appNodeCpu = document.getElementById('cpuNodeSize').value;\n var cpuPodSize = document.getElementById('cpuPodSize').value;\n var totalAppNodeCpu = appNodeCpu * qtyAppNode;\n var totalPodPerCpu = totalAppNodeCpu / cpuPodSize;\n return totalPodPerCpu;\n\t//display the result\n //document.getElementById('ccapacity').innerHTML = \"Total pod por CPU: \"+totalPodPerCpu;\n}", "getHealthCheckTotalCount ({ commit }) {\n const getItems = async () => {\n const entities = await api.getAllHealthChecks()\n const count = entities.items.length\n\n commit('SET_TOTAL_HEALTH_CHECK_COUNT', count)\n }\n\n getItems()\n }", "get totalYarn() {\n let result = 0;\n if (this.ItemsWarp && this.ItemsWeft) {\n if (this.ItemsWarp.length > 0) {\n //API\n this.data.ItemsWarp = [];\n for (let detail of this.ItemsWarp) {\n if (detail.Select) {\n this.data.ItemsWarp.push(this.constructionDetail(detail));\n result += detail.quantity;\n } else {\n var itemWarpsIndex = this.data.ItemsWarp.indexOf(detail);\n this.data.ItemsWarp.splice(itemWarpsIndex, 1);\n }\n }\n }\n if (this.ItemsWeft.length > 0) {\n for (let detail of this.ItemsWeft) {\n //API\n this.data.ItemsWeft = [];\n if (detail.Select) {\n this.data.ItemsWeft.push(this.constructionDetail(detail));\n result += detail.quantity;\n } else {\n var itemWeftsIndex = this.data.ItemsWeft.indexOf(detail);\n this.data.ItemsWeft.splice(itemWeftsIndex, 1);\n }\n }\n }\n }\n //API\n this.data.totalYarn = result;\n return result;\n }", "async function getUserMetrics () {\n let total = 0\n let done = false\n let cursor\n while (!done) {\n // @ts-ignore\n const users = await stores.users.list({ cursor })\n total += users.keys.length\n cursor = users.cursor\n done = users.list_complete\n }\n return { total }\n}", "static getTotalTime() {\r\n let totalTimer = 0;\r\n const profiles = Store.getProfiles();\r\n if (localStorage.getItem('profiles') !== null) {\r\n profiles.forEach((profile) => {\r\n totalTimer += profile.monthTime;\r\n });\r\n }\r\n return totalTimer;\r\n }", "function calcTotalSumVIPAd () {\n\t\tvar def_sum = parseInt($('.js-default-user-balans').val());\n\t\t\n var sum = 0;\n var sum_1 = 0;\n var sum_2 = 0;\n var sum_3 = 0;\n var sum_4 = 0;\n\n if (!$('#add_ad_vip_block__1').hasClass('add_ad_vip_block__item_grey'))\n sum_1 = parseInt($('#add_ad_vip_block__1').data('sum'));\n if (!$('#add_ad_vip_block__2').hasClass('add_ad_vip_block__item_grey'))\n sum_2 = parseInt($('#add_ad_vip_block__2').data('sum'));\n if (!$('#add_ad_vip_block__3').hasClass('add_ad_vip_block__item_grey'))\n sum_3 = parseInt($('#add_ad_vip_block__3').data('sum'));\n if (!$('#add_ad_vip_block__4').hasClass('add_ad_vip_block__item_grey'))\n sum_4 = parseInt($('#add_ad_vip_block__4').data('sum'));\n\n sum = sum_1 + sum_2 + sum_3 + sum_4;\n\t\t\n\t\t$('.js-total-vip-sum').data('total-cost', sum);\n\n if (sum > 0)\n $('.js-total-vip-sum').html('AED ' + sum);\n else\n $('.js-total-vip-sum').html('FREE');\n\t\t\n\t\tif (sum > def_sum){\n\t\t\t$('.js-default-user-balans-info').css('display', 'block');\n\t\t}\n\t\telse {\n\t\t\t$('.js-default-user-balans-info').css('display', 'none');\n\t\t}\n\t\t\t\n }", "function CalculateProcedureCount(isRequestInProgress, isProcessSuccess, procedureCount, Status) {\n if (!isRequestInProgress) {\n if (isProcessSuccess) {\n RetrievingEventLogsInitialPage(false);\n var lblCntrl = GetControl('display');\n if (null != lblCntrl) {\n GetControl('display').value = procedureCount;\n ActivateSaveLogButton();\n var message = \" There are \" + procedureCount + \" Event Logs available for retrieval.\";\n GetControl('lblTXT').innerHTML = message;\n GetControl('lblTXT').style.display = 'block';\n GetControl('lblTXT').style.textAlign = 'left';\n ShowStatusMessage(Status, true, \"Success\")\n }\n }\n else {\n DeActivateSaveLogButton();//Added to show the screen with \"All Controls Being Disabled\" due to failure in fetching procedure count from device. SCR-VLX#389\n RetrievingEventLogsInitialPage(false);\n ShowStatusMessage(Status, true, \"Error\");\n }\n }\n else {\n ShowStatusMessage(Status, true, \"Info\")\n }\n }", "function loadCredits() {\n let totalCredits = 0;\n for (let i = 0; i < props.courses.length; i++) {\n totalCredits += parseInt(props.courses[i].credits, 10);\n }\n return totalCredits;\n }", "function calculateTotalNumberOfPagesForPagination (numberOfTotalItemsRetrievedFromDb){\n\n vm.pagination.totalPages = Math.ceil(numberOfTotalItemsRetrievedFromDb / vm.pagination.numberOfItemsByPage);\n vm.pagination.totalItems = numberOfTotalItemsRetrievedFromDb;\n\n }", "function calculateTotalTime() {\n\t\tfor ( var i = 0, count = times.length; i < count; i++ ) {\n\t\t\ttotalTime += +times[i].time;\n\t\t}\n\t}", "function calculateTotalTime() {\n\t\tfor ( var i = 0, count = times.length; i < count; i++ ) {\n\t\t\ttotalTime += +times[i].time;\n\t\t}\n\t}" ]
[ "0.64561725", "0.62312335", "0.61257005", "0.6058167", "0.6058167", "0.6051023", "0.60311735", "0.602524", "0.5995588", "0.5911692", "0.5893923", "0.5847231", "0.58361655", "0.5805507", "0.5743682", "0.5728614", "0.57093376", "0.56558025", "0.5642105", "0.56297183", "0.56268555", "0.5613281", "0.55966043", "0.55920225", "0.5551575", "0.5548503", "0.5539604", "0.5513107", "0.5505408", "0.5458812", "0.5453496", "0.5453426", "0.5450613", "0.5447555", "0.54448324", "0.5431667", "0.54286", "0.54283535", "0.5425237", "0.54151195", "0.5414255", "0.5406305", "0.5403408", "0.54007095", "0.53908", "0.53845483", "0.53843045", "0.5378091", "0.5358074", "0.53570867", "0.53569424", "0.53492606", "0.5348644", "0.53438824", "0.5334204", "0.53326887", "0.5329692", "0.53292924", "0.5320972", "0.5315424", "0.5313166", "0.53052676", "0.5297259", "0.52909845", "0.5280313", "0.52796817", "0.5271499", "0.5267367", "0.52591753", "0.5259146", "0.5255837", "0.52535903", "0.52495843", "0.52453715", "0.5238687", "0.52293897", "0.5228923", "0.52277154", "0.5223605", "0.52117324", "0.5210723", "0.5209049", "0.5207286", "0.52067965", "0.52065885", "0.5199316", "0.5198259", "0.51959217", "0.51932913", "0.5193214", "0.5191081", "0.5188956", "0.518642", "0.5181424", "0.5177317", "0.51767474", "0.5172452", "0.51690185", "0.51643026", "0.5163389", "0.5163389" ]
0.0
-1
DEFLECTION DUE TO Ieff
Fj(){ return 0.18*Math.pow(386/this.Deff(),0.5) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SelectionChange() {}", "function SelectionChange() {}", "function SelectionChange() {}", "function SelectionChange() {}", "function UISelection(){\n\n }", "function SelectionChange() { }", "function SelectionChange() { }", "function SelectionUtil() {\n}", "function _autoselect() {\n var use_idp;\n use_idp = $.jStorage.get('pyff.discovery.idp');\n if (use_idp) {\n with_entity_id(use_idp, function (elt) { // found entity - autoselect\n discovery_response(elt.entityID);\n }, function () { // failing - lets remove the selection and have the user re-select\n $.jStorage.remove('pyff.discovery.idp');\n });\n }\n }", "function onSelectedIll({ target }) {\n if (target.value) {\n const ill = dataIll.ills.filter(ill => ill.name === target.value)[0];\n ill && ill.id && setSelectedIllId(ill.id);\n }\n }", "function SelectFurni(main){\n\t\n\tfor(var i = 0; i < main.DistanceObj.length; i++) {\n\t\tvar intersects = main.getIntersect( main.onUpPosition, \n\t\t\t\t\t\t\t\t\t\t\tmain.DistanceObj[i]);\n\t\tif ( intersects.length > 0 ) {\n\n\t\t\tmain.fixpointball = true;\n\t\t\tmain.AddRodFunc();\n\t\t\tbreak;\n\t\t}\n\t}\n\n}", "function AttackSelected() {\n Orion.Attack(\"lasttarget\");\n}", "function selectattackdefense(ctrname){\n\tvar i, n;\n\tescaattackdefense:\n\tif(Territori[ctrname].jugador==Jugador['jugador'+Turn.turn]){\n\t\tn=document.MyTurn.Attacker.options.length;\n\t\tfor (i=0; i<n; i++){\n\t\t\tif (MyTurn.Attacker.options[i].value==ctrname){\n\t\t\t\tMyTurn.Attacker.selectedIndex=i;\n\t\t\t\tTurn.attackdefense=1;\n\t\t\t\tdefend(Turn.turn);\n\t\t\t\tbreak escaattackdefense;\n\t\t\t}\n\t\t}\n\t}\n\telse{\n\t\tn=document.MyTurn.Defender.options.length;\n\t\tfor (i=0; i<n; i++){\n\t\t\tif (MyTurn.Defender.options[i].value==ctrname){\n\t\t\t\tMyTurn.Defender.selectedIndex=i;\n\t\t\t\tTurn.attackdefense=0;\n\t\t\t\tbreak escaattackdefense;\n\t\t\t}\n\t\t}\n\t}\n}", "function defenders_value(ele) { \n var selected = ele.value;\n defenders_select = defendersInTheBox[selected]\n}", "function SelectFurniComponent(main){\n\n\tvar intersects = main.getIntersects( main.onUpPosition, main.furniture.getObjects());\n\n\tif ( intersects.length > 0 ) {\n\n\t\tvar object = intersects[ 0 ].object;\n\t\t//if select the same component, record the click position\n\t\tif(main.component == object){\n\t\t\tmain.fixpointball = true;\n\t\t\tmain.AddRodFunc();\n\t\t}\n\n\t\tif ( object.userData.object !== undefined ) {\n\t\t\tmain.select( object.userData.object );\n\t\t\tmain.component = object.userData.object;\n\t\t} else {\n\t\t\tmain.select( object );\n\t\t\tmain.component = object;\n\t\t}\n\t} else {\n\t\t//it also calls select, to detach\n\t\tmain.select( null );\n\t}\n\n}", "function formmask() {\n $('.select .h').click(function (event) {\n s = $(this).parent();\n b = $(this).next();\n label = $(this).children('label');\n option = $(b).find('li');\n select = $('#' + $(s).attr('id').replace('select-', ''));\n if (!$(b).hasClass('on')) {\n $('.select').removeClass('on');\n $('.select .b').removeClass('on').slideUp('fast');\n $(b).addClass('on').slideDown('fast');\n $(s).addClass('on');\n }\n else {\n $(b).removeClass('on').slideUp('fast');\n $(s).removeClass('on');\n }\n $(option).click(function () {\n $(b).removeClass('on').slideUp('fast');\n $(label).html($(this).html());\n $(option).removeAttr('data-selected');\n $(this).attr('data-selected', 'on');\n $(select).val($(this).attr('data-value'));\n $(s).removeClass('on');\n });\n })\n $('.fmask.select').clickoutside(function () {\n fmask_select_close();\n });\n $(document).keydown(function (e) {\n if (e.keyCode == 27) {\n fmask_select_close();\n }\n });\n }", "function itoolSelectionHandler(){\n var iframeContents = _iframe.contents();\n var iframeJQuery = window.frames[0].jQuery;\n\n //Mark the highlighted element as selected\n var curSelectedElem = iframeContents.find(\".perc-itool-highlighter\").removeClass(\"perc-itool-highlighter\").addClass(\"perc-itool-selected-elem\");\n //Hide the overlay highlighter\n iframeContents.find(\"#itool-placeholder-highlighter\").hide();\n\n iframeJQuery(\".perc-text-node-wrapper\").contents().unwrap();\n\n //Add classes to recognize multiselectable elements\n if(curSelectedElem.prev() && !curSelectedElem.prev().hasClass(\"perc-itool-selected-elem\"))\n {\n curSelectedElem.prev().addClass(\"perc-itool-multi-selectable\");\n }\n if(curSelectedElem.next() && !curSelectedElem.next().hasClass(\"perc-itool-selected-elem\"))\n {\n curSelectedElem.next().addClass(\"perc-itool-multi-selectable\");\n }\n\n highlightSelectedElements(curSelectedElem, false);\n highlightSiblings(curSelectedElem);\n\n if(curSelectedElem.hasClass(\"perc-itool-multi-selectable\"))\n curSelectedElem.removeClass(\"perc-itool-multi-selectable\");\n\n updateInspectToolMenu(true);\n\n }", "function replaceOneSelection(doc, i, range, options) {\n\t\t var ranges = doc.sel.ranges.slice(0);\n\t\t ranges[i] = range;\n\t\t setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n\t\t }", "function ea(){}", "function $A(){var t=this;ze(this);var e=ki(this.$interaction,\"select\");this.subscribeTo(e,function(e){var n=e.selected,i=e.deselected,r=e.mapBrowserEvent;++t.rev,i.forEach(function(e){return t.$emit(\"unselect\",{feature:e,mapBrowserEvent:r})}),n.forEach(function(e){return t.$emit(\"select\",{feature:e,mapBrowserEvent:r})}),t.$emit(\"update:features\",t.$features.map(t.writeFeatureInDataProj.bind(t)))})}", "_initializeSelection() {\n setTimeout(() => {\n // Defer setting the value in order to avoid the \"Expression\n // has changed after it was checked\" errors from Angular.\n this._chips.forEach(chip => {\n if (chip.selected) {\n this._chipSetFoundation.select(chip.id);\n }\n });\n });\n }", "_initializeSelection() {\n setTimeout(() => {\n // Defer setting the value in order to avoid the \"Expression\n // has changed after it was checked\" errors from Angular.\n this._chips.forEach(chip => {\n if (chip.selected) {\n this._chipSetFoundation.select(chip.id);\n }\n });\n });\n }", "get selectable() { return this._selectable; }", "get selectable() { return this._selectable; }", "function replaceOneSelection(doc, i, range, options) {\n\t\t var ranges = doc.sel.ranges.slice(0);\n\t\t ranges[i] = range;\n\t\t setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n\t\t }", "function normalSail()\n{\t\n\tUnselectSails();\n\tnormalSailSelected = true;\n}", "activeClick() {\n var $_this = this;\n var action = this.options.dblClick ? 'dblclick' : 'click';\n\n this.$selectableUl.on(action, '.SELECT-elem-selectable', function () {\n $_this.select($(this).data('SELECT-value'));\n });\n this.$selectionUl.on(action, '.SELECT-elem-selection', function () {\n $_this.deselect($(this).data('SELECT-value'));\n });\n\n }", "function onSelect()\n\t{\n\t\tunit.div.toggleClass(\"selected\", unit.movePoints > 0);\n\t}", "function replaceOneSelection(doc, i, range, options) {\n\t var ranges = doc.sel.ranges.slice(0);\n\t ranges[i] = range;\n\t setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n\t }", "function replaceOneSelection(doc, i, range, options) {\n\t var ranges = doc.sel.ranges.slice(0);\n\t ranges[i] = range;\n\t setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n\t }", "function replaceOneSelection(doc, i, range, options) {\n\t var ranges = doc.sel.ranges.slice(0);\n\t ranges[i] = range;\n\t setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n\t }", "function setup_selection_table(ilist){\r\n\t\t\tvar item,\r\n\t\t\tparts = that.finder.prepare_parts(ancelt, \r\n\t\t\t\t[\"キーワード/この資料内の図表から<strong>\"+nxdl[0]+\"で類似画像を</strong>検索\",\r\n\t\t\t\t\"Find <strong>similar images</strong> from keyword / figures in this item w/ \"+nxdl[1]][that.langidx]),\r\n\t\t\tkwdbx = Util.dom.element(\"span\", [\"キーワード\", \"keyword\"][that.langidx] + \": \"),\r\n\t\t\tkwdanc = Util.dom.element(\"a\", titlekwd, [[\"href\", kwdlink]]);\r\n\t\t\tkwdanc.setAttribute(\"title\", tip[0] + tip[2]);\r\n\t\t\tkwdbx.appendChild(kwdanc);\r\n\t\t\tparts.fbox.appendChild(kwdbx);\r\n\t\t\tfor(var i=0; i<5; i++){\r\n\t\t\t\tif(!(item = ilist[i])) break;\r\n\t\t\t\tthat.finder.set_ibox(parts, iseach + \"image=\" + item.id, \r\n\t\t\t\t\t\"https://www.dl.ndl.go.jp/api/iiif/\" + bid + \"/R\" + (\"0000000\" + item.page).slice(-7) +\r\n\t\t\t\t\t\"/pct:\" + [item.x, item.y, item.w, item.h].join(\",\") + \"/,128/0/default.jpg\",\r\n\t\t\t\t\ttipttl\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\treturn parts.finder;\r\n\t\t}", "function makeSelectionMapping () {\n \n var s = makeEmptySet();\n \n var func = function (i) { return s.has(i); };\n \n func.set = function (i, v) {\n if (v === true) s.add(i); else s.delete(i); \n }\n \n func.selected = function() { return s.keys(); } \n \n func.bake = function (op) {\n var s2 = op(func);\n op.domain.forEach(function(_, i) { func.set(i, s2(i)); });\n }\n \n return func;\n }", "function select() {\n if (_selected || _element === undefined || !_visible || _animating) {\n return;\n }\n _selected = true;\n\n if (_fancyEffects) {\n TweenLite.to(_element, 0.25, {scale: 1.05, ease: Back.easeOut});\n TweenLite.to(_imageEl, 0.5, {\n alpha: 1,\n scale: 1.25,\n ease: Circ.easeOut\n });\n } else {\n TweenLite.to(_element, 0.25, {scale: 1.05, ease: Back.easeOut});\n TweenLite.to(_imageEl, 0.5, {\n alpha: 1,\n scale: 1.25,\n ease: Circ.easeOut\n });\n }\n\n }", "function reCheckSelection(doc) {\r\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\r\n}", "function handleSelection(actObj, angScope){\n // example : actObj = [{controller: \"controllerSNA\", func:\"onContactSelected\", params: objInfo}]\n for (var i = 0; i < actObj.length; i++) {\n var resObj = window[actObj[i].controller][\"handleSelections\"](actObj[i].func, actObj[i].params);\n\n switch (resObj.actionType) {\n case \"updateInfoSec\":\n updateInfoSecMenu(resObj);\n genInfos(angScope);\n break;\n case \"upgradeInfoSec\":\n upgradeInfoSec(resObj);\n break;\n }\n }\n }", "function ChoixSelection(idListe, indice, nbEtoile){\n\tArrListeEtoile[idListe] = indice;\n\tvar score = \"score-\" + idListe;\n\tdocument.getElementById(score).innerHTML = \" \" + indice + \"/\" + nbEtoile;\n}", "function reCheckSelection(doc) {\n\t\t setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n\t\t }", "function d(a){o&&(o=!1,n(),k(\"unselect\",null,a))}", "function OnNotStructural_Change( e )\r\n{\r\n Alloy.Globals.AeDESModeSectionEight[\"NOT_STRUCTURAL\"] = e.id ;\r\n}", "function selcall() {\r\n let i = comboSel.value;\r\n if (i == -1) return;\r\n\r\n let obj = apitool.comboList[i];\r\n let fn = obj.fn;\r\n apitool[fn]();\r\n console.log(\"fn \" + fn);\r\n }", "function highlightSelected()\n\t{\n\t\t// selected pileups (mutations) on the diagram\n\t\tvar selected = getSelectedPileups();\n\n\t\t// highlight residues\n\t\thighlight3dResidues(selected);\n\t}", "function updateSelection(elem) {\n\n jQuery('.flex-item').attr(\"data-is-selected\", \"false\");\n\n jQuery(elem).attr(\"data-is-selected\", \"true\");\n var active = jQuery(elem).attr(\"id\");\n\n updateSortCSS();\n updateSortVisible(active);\n\n return;\n}", "function clickExpell() {\n if (student.firstName === \"Caroline\"){\n student.expelled = false;\n canNotExpell();\n } else {\n student.expelled = !student.expelled;\n }\n buildList();\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }", "triggerSelectedEvent(selection){\n\t\tvar range, cfirange;\n\n\t\tif (selection && selection.rangeCount > 0) {\n\t\t\trange = selection.getRangeAt(0);\n\t\t\tif(!range.collapsed) {\n\t\t\t\t// cfirange = this.section.cfiFromRange(range);\n\t\t\t\tcfirange = new EpubCFI(range, this.cfiBase).toString();\n\t\t\t\tthis.emit(EVENTS.CONTENTS.SELECTED, cfirange);\n\t\t\t\tthis.emit(EVENTS.CONTENTS.SELECTED_RANGE, range);\n\t\t\t}\n\t\t}\n\t}", "function reCheckSelection(doc) {\n\t\t setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false), sel_dontScroll);\n\t\t }", "function useItem() {\n for (i = 0; i < items.length; i++) {\n if (items[i].selected) {\n items[i].use();\n console.log(\"datt\");\n }\n }\n \n}", "function replaceOneSelection(doc, i, range, options) {\r\n var ranges = doc.sel.ranges.slice(0);\r\n ranges[i] = range;\r\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\r\n }", "function defeated() {\n characters.obiWan.chosenEnemy = false;\n characters.lukeSkywalker.chosenEnemy = false;\n characters.darthVader.chosenEnemy = false;\n characters.emporerPalpatine.chosenEnemy = false;\n $(\"#enemies-sect1\").css(\"background-color\", \"red\");\n $(\"#enemies-sect2\").css(\"background-color\", \"red\");\n $(\"#enemies-sect3\").css(\"background-color\", \"red\");\n }", "function computeReplacedSel(doc, changes, hint) {\n\t\t var out = [];\n\t\t var oldPrev = Pos(doc.first, 0), newPrev = oldPrev;\n\t\t for (var i = 0; i < changes.length; i++) {\n\t\t var change = changes[i];\n\t\t var from = offsetPos(change.from, oldPrev, newPrev);\n\t\t var to = offsetPos(changeEnd(change), oldPrev, newPrev);\n\t\t oldPrev = change.to;\n\t\t newPrev = to;\n\t\t if (hint == \"around\") {\n\t\t var range = doc.sel.ranges[i], inv = cmp(range.head, range.anchor) < 0;\n\t\t out[i] = new Range(inv ? to : from, inv ? from : to);\n\t\t } else {\n\t\t out[i] = new Range(from, from);\n\t\t }\n\t\t }\n\t\t return new Selection(out, doc.sel.primIndex);\n\t\t }", "select(value) {\n\n \n let selectables = this.object_item(value).selectables;\n let selections = this.object_item(value).selections;\n\n\n\n if (selectables.length > 0) {\n\n selectables.addClass('OPTION-selected')\n .hide(1000);\n\n selections.addClass('OPTION-selected')\n .show(1000);\n\n this.object_item(value).options.prop('selected', true); // active selected original select\n\n // effacer class css SELECT-hover de cursur chaque changement\n this.$newSelect.find(this.elemsSelector).removeClass('SELECT-hover');\n\n\n\n\n if (this.options.keepOrder) { // order de position des item( asec or none)\n var selectionLiLast = this.$selectionUl.find('.OPTION-selected'); //les elements non hide =>show\n if ((selectionLiLast.length > 1) && (selectionLiLast.last().get(0) != selections.get(0))) {\n selections.insertAfter(selectionLiLast.last());\n }\n }\n\n\n this.$originalSelect.trigger('change'); // start onchange de element original\n this.afterSelect(value);\n\n }\n }", "function selectAnother() {\n\n}", "function reCheckSelection(doc) {\r\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false), sel_dontScroll);\r\n }", "function computeReplacedSel(doc, changes, hint) {\n\t\t var out = [];\n\t\t var oldPrev = Pos(doc.first, 0), newPrev = oldPrev;\n\t\t for (var i = 0; i < changes.length; i++) {\n\t\t var change = changes[i];\n\t\t var from = offsetPos(change.from, oldPrev, newPrev);\n\t\t var to = offsetPos(changeEnd(change), oldPrev, newPrev);\n\t\t oldPrev = change.to;\n\t\t newPrev = to;\n\t\t if (hint == \"around\") {\n\t\t var range = doc.sel.ranges[i], inv = cmp(range.head, range.anchor) < 0;\n\t\t out[i] = new Range(inv ? to : from, inv ? from : to);\n\t\t } else {\n\t\t out[i] = new Range(from, from);\n\t\t }\n\t\t }\n\t\t return new Selection(out, doc.sel.primIndex)\n\t\t }", "function fixIEMouseDown() {\n _ieSelectBack = doc.body.onselectstart;\n doc.body.onselectstart = fixIESelect;\n }", "function correctAnsFunc (selction) {\n for (var i = 0; i < optionsArr.length; i++) {\n if (optionsArr[arrIndex][i][1] === 1) {\n correctOption = i;\n return;\n }\n }\n }", "unSelectItem (i) { this.toggSel(false, i); }", "function reCheckSelection(doc) {\n\t setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false), sel_dontScroll);\n\t }", "function reCheckSelection(doc) {\n\t setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false), sel_dontScroll);\n\t }", "function reCheckSelection(doc) {\n\t setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false), sel_dontScroll);\n\t }", "function checkSelection(){\n\t// find intersections\n\n\t// create a Ray with origin at the mouse position\n\t// and direction into the scene (camera direction)\n\tvar vector = new THREE.Vector3( mouse.x, mouse.y, 1 );\n\tprojector.unprojectVector( vector, camera );\n\tvar ray = new THREE.Raycaster( camera.position, vector.sub( camera.position ).normalize() );\n var activeEU = 0;\n\tvar activeUS = 0;\n\tvar activeCHA = 0;\n\t// create an array containing all objects in the scene with which the ray intersects\n\tvar intersects = ray.intersectObjects( targetList );\n\n\t//if an intersection is detected\n\tif ( intersects.length > 0 )\n\t{\n\t\tconsole.log(\"Hit @ \" + toString( intersects[0].point ) );\n\n\t\t//test items in selected faces array\n\t\tvar test=-1;\n\t\tselectedFaces.forEach( function(arrayItem)\n\t\t{\n\n\t\t\tif (arrayItem.object.name === \"USD\")\n\t\t\t{\n\t\t\t\tif(intersects[0].faceIndex==arrayItem.faceIndex && intersects[0].object.id==arrayItem.object.id){\n\t\t\t\t\ttest=selectedFaces.indexOf(arrayItem);\n\t\t\t\t\tconsole.log(\"False\");\n\t\t\t\t\tactiveCHA = 0;\n\t\t\t\t\t$scope.$emit(\"messageUSD\", 0);\n\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\tif (activeCHA === 0 && activeUS === 0 && activeEU)\n\t\t\t\t\t{\n\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminwhole.png', {}, function(){\n\t\t\t\t\t\tconsole.log(\"De-Loaded Texture for CHA\")\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\tanimate();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminUSA.png', {}, function(){\n\t\t\t\t\t\tconsole.log(\"De-Loaded Texture for CHA\")\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\tanimate();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if (arrayItem.object.name === \"EU\")\n\t\t\t{\n\t\t\t\tif(intersects[0].faceIndex==arrayItem.faceIndex && intersects[0].object.id==arrayItem.object.id){\n\t\t\t\t\ttest=selectedFaces.indexOf(arrayItem);\n\t\t\t\t\tconsole.log(\"False\");\n\t\t\t\t\t$scope.$emit(\"messageEU\", 0);\n\t\t\t\t\tactiveCHA = 0;\n\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\tif (activeCHA === 0 && activeUS === 0 && activeEU)\n\t\t\t\t\t{\n\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminwhole.png', {}, function(){\n\t\t\t\t\t\tconsole.log(\"De-Loaded Texture for CHA\")\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\tanimate();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminEU.png', {}, function(){\n\t\t\t\t\t\tconsole.log(\"De-Loaded Texture for CHA\")\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\tanimate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (arrayItem.object.name === \"CHA\")\n\t\t\t{\n\t\t\t\tif(intersects[0].faceIndex==arrayItem.faceIndex && intersects[0].object.id==arrayItem.object.id){\n\t\t\t\t\ttest=selectedFaces.indexOf(arrayItem);\n\t\t\t\t\tconsole.log(\"False\");\n\t\t\t\t\t$scope.$emit(\"messageCHA\", 0);\n\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\tif (activeCHA === 0 && activeUS === 0 && activeEU)\n\t\t\t\t\t{\n\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminwhole.png', {}, function(){\n\t\t\t\t\t\tconsole.log(\"De-Loaded Texture for CHA\")\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\tanimate();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminCHA.png', {}, function(){\n\t\t\t\t\t\tconsole.log(\"De-Loaded Texture for CHA\")\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\tanimate();\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\t\t\t}\n\n\n\n\n\t\t});\n\n\n\n\t\t//Change Touchpoint Color\n\t\t// if is a previously selected face, change the color back to green, otherswise change to blue\n\t\tif(test>=0){\n\t\t\tintersects[ 0 ].face.color=new THREE.Color( 0x17A0BF );\n\t\t\tselectedFaces.splice(test, 1);\n\n\t\t}\n\t\telse{\n\t\t\tintersects[ 0 ].face.color=new THREE.Color( 0x17A0BF );\n\t\t\tselectedFaces.push(intersects[0]);\n\t\t\tselectedFaces.forEach( function(arrayItem)\n\t\t\t{\n\t\t\t\tif (arrayItem.object.name === \"USD\")\n\t\t\t\t{\n\t\t\t\tconsole.log(\"True\");\n\t\t\t\tactiveUS = 1;\n\t\t\t\t$scope.$emit(\"messageUSD\", 1);\n if (activeUS === 1 && activeEU == 1)\n\t\t\t\t{\n\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminUSEU.png', {}, function(){\n\t\t\t\t\tconsole.log(\"Loaded Texture for USA <3 EU\")\n\t\t\t\t\t},\n\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t});\n\n\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\tanimate();\n\t\t\t\t}\n\t\t\t\telse if (activeUS == 1 && activeCHA === 1)\n\t\t\t\t{\n\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminUSA.png', {}, function(){\n\t\t\t\t\tconsole.log(\"Loaded Texture for USA <3 CHA\")\n\t\t\t\t\t},\n\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t});\n\n\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\tanimate();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminUSA.png', {}, function(){\n\t\t\t\t\tconsole.log(\"Loaded Texture for USA\")\n\t\t\t\t\t},\n\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t});\n\n\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\tanimate();\n\t\t\t\t}\n\n\t\t\t\t}\n\n\n\t\t\t\telse if (arrayItem.object.name === \"EU\")\n\t\t\t\t{\n\t\t\t\t\tconsole.log(\"True\");\n\t\t\t\t\tactiveEU = 1;\n\t\t\t\t\t$scope.$emit(\"messageUEU\", 1);\n\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\tif (activeUS === 1 && activeEU == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminUSAEU.png', {}, function(){\n\t\t\t\t\t\tconsole.log(\"Loaded Texture for USA <3 EU\")\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\tanimate();\n\t\t\t\t\t}\n\t\t\t\t\telse if (activeEU == 1 && activeCHA === 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminCHAEU.png', {}, function(){\n\t\t\t\t\t\tconsole.log(\"Loaded Texture for CHA <3 EU\")\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\tanimate();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminEU.png', {}, function(){\n\t\t\t\t\t\tconsole.log(\"Loaded Texture for EU\")\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\tanimate();\n\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\n\t\t\t\telse if (arrayItem.object.name === \"CHA\")\n\t\t\t\t{\n\n\t\t\t\t\t\tconsole.log(\"True\");\n\t\t\t\t\t\tactiveCHA = 1;\n\t\t\t\t\t\t$scope.$emit(\"messageCHA\", 1);\n\t\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\t\tif (activeUS === 1 && activeCHA == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminUSAEU.png', {}, function(){\n\t\t\t\t\t\t\tconsole.log(\"Loaded Texture for USA <3 EU\")\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\t\tanimate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (activeEU == 1 && activeCHA === 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminCHAEU.png', {}, function(){\n\t\t\t\t\t\t\tconsole.log(\"Loaded Texture for CHA < EU\")\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\t\tanimate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tvar cgtxt = scene.getObjectByName(\"Earth\");\n\t\t\t\t\t\t\tcgtxt.material.map = THREE.ImageUtils.loadTexture( '../wgl3js/models/earthtextminCHA.png', {}, function(){\n\t\t\t\t\t\t\tconsole.log(\"Loaded Texture for CHA\")\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tfunction(){\n\t\t\t\t\t\t\t\t\talert('Error Loading Texture')\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tcgtxt.material.needsUpdate = true;\n\t\t\t\t\t\t\tanimate();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t}\n\n\t\tintersects[ 0 ].object.geometry.colorsNeedUpdate = true;\n\t}\n}", "function defend(i){\n\tvar j, attacker, ctrname, text='';\n\ttry{\n\t\tj=MyTurn.Attacker.selectedIndex;\n\t\tattacker=MyTurn.Attacker.options[j].value;\n\t\tattacker=Territori[attacker];\n\t\tfor (j=0; j<attacker.veins.length; j++){\n\t\t\tctrname=attacker.veins[j];\n\t\t\tif (Territori[ctrname].jugador!=Jugador[\"jugador\"+i]){\n\t\t\t\ttext+='<option value=\"'+ctrname+'\">'+Territori[ctrname].name+'</option>\\n';\n\t\t\t}\n\t\t}\n\t}\n\tcatch (err){\n\t\ttext='';\n\t}\n\tfinally{\n\t\tdocument.MyTurn.Defender.innerHTML=text;\n\t}\n}", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\n }", "function replaceOneSelection(doc, i, range, options) {\r\n var ranges = doc.sel.ranges.slice(0);\r\n ranges[i] = range;\r\n setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);\r\n}", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }", "function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }" ]
[ "0.5867442", "0.5867442", "0.5867442", "0.5867442", "0.5830722", "0.5673178", "0.5673178", "0.5633165", "0.55106086", "0.54410684", "0.5408361", "0.53562015", "0.5352319", "0.53439444", "0.53275955", "0.53146034", "0.5293706", "0.5281818", "0.5267992", "0.5262857", "0.5229977", "0.5229977", "0.52079207", "0.52079207", "0.51972985", "0.5173408", "0.5155682", "0.51504755", "0.5147872", "0.5147872", "0.5147872", "0.5107367", "0.51068544", "0.5105864", "0.5091914", "0.5088848", "0.50865686", "0.5086013", "0.5082451", "0.5080401", "0.50699395", "0.50638634", "0.50616884", "0.5058999", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.5045635", "0.50255716", "0.5024915", "0.50187486", "0.5008636", "0.50064945", "0.5005749", "0.5005498", "0.5003449", "0.50011003", "0.49999583", "0.499987", "0.4988718", "0.4984937", "0.49773967", "0.49773967", "0.49773967", "0.497282", "0.49706665", "0.4957281", "0.4957281", "0.4957281", "0.4957281", "0.4957281", "0.4957281", "0.4957281", "0.4957281", "0.4956773", "0.49468952", "0.49468952", "0.49468952", "0.49468952", "0.49468952", "0.49468952", "0.49468952", "0.49468952", "0.49468952", "0.49468952", "0.49468952", "0.49468952", "0.49468952" ]
0.0
-1
JOIST PANEL MODE FREQUENCY
Ds(){ return (12*Math.pow(this.hc+this.hd/2,3))/(12*this.n()) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get mode(): number {\n if(this.alpha >= 1) {\n return (this.alpha - 1) / (this.beta + 1);\n }\n return 0;\n }", "get mode(): number {\n return this.xm;\n }", "modeBtnAction() {\n console.log('Toggling scale mode/unit')\n this._unit = trickler.TricklerUnits.GRAINS === this._unit ? trickler.TricklerUnits.GRAMS : trickler.TricklerUnits.GRAINS\n }", "function getMode(){\n return mode;\n}", "function cycleMode() {\n if (M32.isMode < (M32.modeName.length - 1)) {\n M32.isMode++;\n } else {\n M32.isMode = 0;\n }\n M32.isSubMode = 1; // Reset isSubMode\n // Change panel layout\n if (M32.modeName[M32.isMode] == MIXER) {\n application.setPanelLayout(\"MIX\");\n }\n if (M32.modeName[M32.isMode] == TRACK) {\n application.setPanelLayout(\"ARRANGE\");\n }\n host.showPopupNotification(\"Controller mode: \" + M32.modeName[M32.isMode][0]);\n println(M32.isPanelLayout);\n}", "get mode() {}", "function mode_resolver(para_count, param, mode, x) {\t\t\n\t\n\tif(mode){\t\t\n\t\tvar output = param[para_count * x];\t\t\n\t\treturn output;\n\t}\n\telse\n\t\treturn '';\n\t\n}", "get Mode5point1() {}", "oblivionFactor() {\n return Math.pow(2, - this.timestep / this.HALFTIME);\n }", "function modeSwitch(mode) {\n\tresetViews();\n resetCameras();\n\tswitch(mode) {\n\t\tcase \"absolute\":\n\t\t\tupdateShipData(true);\n\t\t\tstepSize = 1; // reset step size\n\t\t\tcurrentMode = 1;\n\t\tbreak;\n\t\tcase \"relative\":\n\t\t\tupdateShipData(false);\n\t\t\tstepSize = Math.PI/64; // reset step size\n\t\t\tcurrentMode = 2;\n\t\tbreak;\n\t\tcase \"geosynchronous\":\n\t\t\tupdateShipData(false);\n\t\t\tcurrentPlanet = 3;\n\t\t\tcurrentMode = 3;\n\t\t\tupdateGeoSyncLookAt(earth, false);\n\t\tbreak;\n\t}\n}", "function is_mode_speed() {\n\treturn mode_reg===CONTROL_SPEED || mode_reg===CONTROL_SPEED_WITHOUT_TORQUE;\n}", "function changeMode(e){\n PUZZLE_DIFFICULTY = e.value;\n onImage();\n}", "function getCalcMode() {\n // current calculaltion mode : amort, duration or capital\n return $('#modeForm input[type=radio]:checked').val()\n}", "function increaseMode(){\n var x = currentDesired[\"mode\"] + 1;\n if(x > UPPER_MODE_LIMIT){\n return 0;\n }else{\n return x;\n }\n}", "Fj(){\n return 0.18*Math.pow(386/this.Deff(),0.5)\n }", "function colormode_switch(value) {\n myGlobals.params.color_mode = value;\n color_mode = value;\n cur_dataset = 0;\n idx_dataset = 0;\n max_dataset = null;\n myGlobals.params.flag_rezoom = false;\n }", "fearFactor() {\n return this.FEARFULNESS / 100;\n }", "get mode(){ return this.base_opt[0]; }", "function changeRatio(ctx) {\n if (window.references[ctx.target.id].data.metadata.ratio == 'fit') {\n window.currentRatio = 'strech'\n document.querySelector('.toogle-strech').click()\n window.references[ctx.target.id].data.metadata.ratio = 'strech'\n } else if (window.references[ctx.target.id].data.metadata.ratio == 'strech') {\n window.currentRatio = 'fit'\n document.querySelector('.toogle-fit').click()\n window.references[ctx.target.id].data.metadata.ratio = 'fit'\n }\n}", "updateConfigs(){\n this.level = this.scene.level;\n this.mode = parseFloat(this.scene.mode);\n }", "function modeDegree(id) {\n this.trigMode = \"Degree\";\n document.getElementById(id).innerHTML = \"TRIGMODE: \" + this.trigMode;\n}", "function modeFunc() {\n if(num1 == num2){\n console.log(\"Mode:\" + num1);\n results[5].textContent = \"Mode: \" + num1;\n }\n else if(num1 == num3){\n console.log(\"Mode:\" + num1);\n results[5].textContent = \"Mode: \" + num1;\n }\n else if(num2 == num3){\n console.log(\"Mode:\" + num2);\n results[5].textContent = \"Mode: \" + num2;\n }\n else{\n console.log(\"No mode\");\n results[5].textContent = \"Mode: None\";\n }\n}", "fView(xnp) {\n let X = Math.sqrt(Math.pow(this.heigthFireBall(), 2) + Math.pow(xnp, 2))\n return Math.pow((this.diameterMax() / 2) / (X), 2)\n }", "Fsv(){\n if(this.Fyv == 60){\n return 32000\n }\n else{\n return 20000\n }\n }", "function onLSystemChange() {\n\n choice = parseInt(document.getElementById(\"lsystem\").value);\n canvas = document.getElementById(\"canvas\");\n\n // Koch curve\n if(choice == 1) {\n\t$('#length').slider(\"value\", \"5\");\n\t$('#angle').slider(\"value\", \"90\");\n\t$('#starting_angle').slider(\"value\", \"90\");\n\n document.getElementById(\"initial_string\").value = \"F\";\n document.getElementById(\"current_string\").value = \"F\";\n document.getElementById(\"max_iterations\").value = \"5\";\n\n remove_rules();\n add_rule(\"F\", \"F+F-F-F+F\");\n }\n\n // Sierpinski triangle\n if(choice == 2) {\n\t$('#length').slider(\"value\", \"3\");\n\t$('#angle').slider(\"value\", \"60\");\n\t$('#starting_angle').slider(\"value\", \"90\");\n\n document.getElementById(\"initial_string\").value = \"A\";\n document.getElementById(\"current_string\").value = \"A\";\n document.getElementById(\"max_iterations\").value = \"6\";\n\n $(\"#slider\").slider(\"option\", \"max\", 12);\n $(\"#slider\").slider(\"option\", \"step\", 2);\n\n remove_rules();\n add_rule(\"A\", \"B-A-B\");\n add_rule(\"B\", \"A+B+A\");\n }\n\n // Dragon curve\n if(choice == 3) {\n\t$('#length').slider(\"value\", \"3\");\n\t$('#angle').slider(\"value\", \"90\");\n\t$('#starting_angle').slider(\"value\", \"90\");\n\n document.getElementById(\"initial_string\").value = \"FX\";\n document.getElementById(\"current_string\").value = \"FX\";\n document.getElementById(\"max_iterations\").value = \"15\";\n\n remove_rules();\n add_rule(\"X\", \"X+YF\");\n add_rule(\"Y\", \"FX-Y\");\n }\n // Fractal Plant\n if(choice == 4) {\n\t$('#length').slider(\"value\", \"1\");\n\t$('#angle').slider(\"value\", \"25\");\n\t$('#starting_angle').slider(\"value\", \"170\");\n\n document.getElementById(\"initial_string\").value = \"X\";\n document.getElementById(\"current_string\").value = \"X\";\n document.getElementById(\"max_iterations\").value = \"11\";\n\n remove_rules();\n add_rule(\"F\", \"FF\");\n add_rule(\"X\", \"F-[[X]+X]+F[+FX]-X\");\n //add_rule(\"X\", \"F-[F-F]\");\n }\n\n lsys.get_params();\n reset();\n}", "function modeSpecific()\n\t{\n\t\tif (problem.get('ansType') === 'multiPart')\n\t\t{\n\t\t\tif (!view.showingSolution)\n\t\t\t{\n\t\t\t\tview.stepMode();\n\t\t\t\tvar steps = fw.getWidget('stepByStep');\n\t\t\t\tsteps.showCompleted();\n\t\t\t\tsteps.show();\t\t\t// They're not visible at this point (though most pieces are)\n\t\t\t}\n\t\t}\n\t}", "static get PERSPECTIVE() { return 0; }", "function getMode() {\n const modeCheckBox = document.querySelector('.switch-controller input');\n let carouselMode = true;\n\n if(!modeCheckBox.checked){\n carouselMode = false;\n }\n\n return carouselMode;\n}", "function getControlRatio( depth ) {\n\t\t\t\n\t\t\tif ( depth > 5 ) {\n\t\t\t\t\n\t\t\t\treturn 1;\n\t\t\t\t\n\t\t\t} else if ( depth >= 3 && depth < 5 ) {\n\t\t\t\t\n\t\t\t\treturn 1.5;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\treturn 2;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "getModuleDepth(){return this.module_base_face_dimensions_axes[2];}", "function testWwModeSpaceModeActivateO() {\n mode.oMultiplier_ = 10;\n\n assertEquals('oMultiplier_ should be 10', 10, mode.oMultiplier_);\n\n mode.activateO();\n\n assertEquals('oMultiplier_ should still be 10', 10, mode.oMultiplier_);\n}", "Fv(){\n return this.shearReinf ? Math.min(3*Math.pow(this.fm,0.5),150) : Math.min(Math.pow(this.fm,0.5),50)\n }", "function toggleMode() {\n\tif (overviewMode === \"graph\") {\n\t\tmatrixContainer.style.display = \"flex\";\n\t\tgraphContainer.style.display = \"none\";\n\t\toverviewMode = \"matrix\";\n\t\ticonMode.src = \"img/hash.svg\";\n\t} else if (overviewMode === \"matrix\") {\n\t\tmatrixContainer.style.display = \"none\";\n\t\tgraphContainer.style.display = \"flex\";\n\t\toverviewMode = \"graph\";\n\t\ticonMode.src = \"img/git-branch.svg\";\n\t}\n}", "initTypeAndMode(type, mode) {\n let img = this._refs.img;\n let image = null;\n switch (type) {\n case sensorModuleConstants.SENSOR_TYPE_NXT_TOUCH:\n case sensorModuleConstants.SENSOR_TYPE_TOUCH:\n image = 'images/ev3/touch64.png';\n this._gridDrawer = this._binaryDrawer;\n this._chartDrawers = [this._binaryDrawer];\n this._maxValue = 1;\n break;\n case sensorModuleConstants.SENSOR_TYPE_NXT_COLOR:\n case sensorModuleConstants.SENSOR_TYPE_COLOR:\n image = 'images/ev3/color64.png';\n if (mode === sensorModuleConstants.COLOR_COLOR) {\n this._gridDrawer = this._binaryDrawer;\n this._chartDrawers = [this._colorBarDrawer];\n this._maxValue = 7;\n } else {\n this._gridDrawer = this._fillDrawer;\n this._chartDrawers = [this._fillDrawer, this._lineDrawer];\n this._maxValue = 100;\n }\n break;\n case sensorModuleConstants.SENSOR_TYPE_NXT_ULTRASONIC:\n case sensorModuleConstants.SENSOR_TYPE_ULTRASONIC:\n image = 'images/ev3/ultrasonic64.png';\n this._gridDrawer = this._fillDrawer;\n this._chartDrawers = [this._fillDrawer, this._lineDrawer];\n this._maxValue = 255;\n break;\n case sensorModuleConstants.SENSOR_TYPE_GYRO:\n image = 'images/ev3/gyro64.png';\n this._gridDrawer = this._lineDrawer;\n this._chartDrawers = [this._lineDrawer];\n this._maxValue = 255;\n break;\n case sensorModuleConstants.SENSOR_TYPE_INFRARED:\n image = 'images/ev3/infrared64.png';\n this._gridDrawer = this._lineDrawer;\n this._chartDrawers = [this._lineDrawer];\n this._maxValue = 255;\n break;\n case sensorModuleConstants.SENSOR_TYPE_NXT_SOUND:\n image = 'images/nxt/sound64.png';\n this._gridDrawer = this._lineDrawer;\n this._chartDrawers = [this._lineDrawer];\n this._maxValue = 100;\n break;\n }\n if (image) {\n img.src = getImage(image);\n img.style.display = 'block';\n } else {\n img.style.display = 'none';\n this._gridDrawer = null;\n }\n this._type = type;\n this._mode = mode;\n }", "function selectMode(e){\n\t\t\t\tpartySize = 3;\n\t\t\t\tmode = $(\".mode-select option:selected\").val();\n\n \t\t\t\tif(mode == \"tournament\"){\n\t\t\t\t\tpartySize = 6;\n\t\t\t\t}\n\n\t\t\t\tfor(var i = 0; i < multiSelectors.length; i++){\n\t\t\t\t\tmultiSelectors[i].setMaxPokemonCount(partySize);\n\t\t\t\t}\n\t\t\t}", "function Pwr_Factor(op, data, rowDef) {\n switch (op) {\n case \"format\":\n return \"PF\";\n\n default:\n };\n}", "function modeChanged(fn) {\n bind('modeChanged', fn);\n }", "function getSpeed() {\n var speed = 0;\n if ($(\"#rSlow\").prop(\"checked\")) {\n speed = 0.75;\n } else if ($(\"#rMed\").prop(\"checked\")) {\n speed = 1.5;\n } else if ($(\"#rFast\").prop(\"checked\")) {\n speed = 3;\n } else if ($(\"#rLight\").prop(\"checked\")) {\n speed = 8;\n }\n return speed;\n}", "get speed() {\n return this.getFeature('speed');\n }", "function JJPower() {\n JJPower.easeArray = [0, 0.004, 0.008, 0.013, 0.019, 0.026, 0.033, 0.041, 0.05, 0.06, 0.071, 0.082, 0.095, 0.108, 0.122, 0.137, 0.152, 0.169, 0.185, 0.203, 0.221, 0.239, 0.257, 0.276, 0.295, 0.314, 0.333, 0.352, 0.371, 0.39, 0.409, 0.427, 0.445, 0.462, 0.48, 0.497, 0.513, 0.53, 0.545, 0.561, 0.576, 0.591, 0.605, 0.619, 0.632, 0.645, 0.658, 0.67, 0.683, 0.694, 0.706, 0.717, 0.727, 0.738, 0.748, 0.758, 0.767, 0.776, 0.785, 0.794, 0.802, 0.811, 0.818, 0.826, 0.834, 0.841, 0.848, 0.855, 0.861, 0.867, 0.874, 0.879, 0.885, 0.891, 0.896, 0.901, 0.906, 0.911, 0.916, 0.92, 0.925, 0.929, 0.933, 0.937, 0.941, 0.944, 0.948, 0.951, 0.954, 0.958, 0.96, 0.963, 0.966, 0.969, 0.971, 0.973, 0.976, 0.978, 0.98, 0.982, 0.983, 0.985, 0.987, 0.988, 0.99, 0.991, 0.992, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.998, 0.999, 0.999, 0.999, 1, 1, 1, 1];\n JJPower.isMobile = false;\n\n /** Prep Static Functions **/\n JJPower.enhance = function (element) {\n if (element) {\n Object.assign(element, JJPower.prototype);\n }\n return element;\n };\n\n JJPower.query = function () {\n const queryText = getGeneratedQueryText(...arguments);\n\n const element = document.querySelector(queryText);\n\n JJPower.enhance(element);\n return element;\n };\n\n JJPower.jjCreateElement = function (tagName) {\n var element;\n if (tagName.toUpperCase() == 'SVG') {\n element = document.createElementNS('http://www.w3.org/2000/svg', tagName);\n } else {\n element = document.createElement(tagName);\n }\n return JJPower.enhance(element);\n };\n\n /** *Commonly used****/\n JJPower.prototype.jjWidth = function () {\n return this.getBoundingClientRect().width;\n };\n\n JJPower.prototype.jjAppend = function (tagName) {\n const me = this;\n let child;\n if (isSVGElement(tagName)) {\n child = document.createElementNS('http://www.w3.org/2000/svg', tagName);\n } else {\n child = document.createElement(tagName);\n }\n JJPower.enhance(child);\n\n this.appendChild(child);\n return child;\n\n\n // Inner functions\n // Either the tag itself is SVG, or it's parent (this) is an SVG element\n function isSVGElement(tagName) {\n const isIt = (tagName.toUpperCase() == 'SVG' || (me instanceof SVGElement));\n return isIt;\n }\n };\n\n JJPower.prototype.jjQuery = function () {\n const queryText = getGeneratedQueryText(...arguments);\n\n const element = this.querySelector(queryText);\n JJPower.enhance(element);\n return element;\n };\n\n JJPower.prototype.jjQueryAll = function () {\n const queryText = getGeneratedQueryText(...arguments);\n\n let elements = this.querySelectorAll(queryText);\n elements = Array.from(elements);\n elements.forEach(JJPower.enhance);\n return elements;\n };\n\n JJPower.prototype.jjGetChildren = function () {\n let elements = this.children || this.childNodes;\n elements = Array.from(elements);\n elements.forEach(JJPower.enhance);\n return elements;\n };\n\n JJPower.prototype.jjStyle = function (styleMap) {\n const keys = Object.keys(styleMap);\n for (const key of keys) {\n this.style[key] = styleMap[key];\n }\n return this;\n };\n\n JJPower.prototype.jjAttr = function (attrMap) {\n const keys = Object.keys(attrMap);\n let val;\n for (const key of keys) {\n val = attrMap[key];\n this.setAttribute(key, attrMap[key]);\n if (!val) {\n this.removeAttribute(key);\n }\n }\n return this;\n };\n\n JJPower.prototype.jjAddEventListener = function (eventName, callBack, useCapture) {\n let jjEventName = eventName;\n if (JJPower.isMobile) {\n jjEventName = getMobileEventName(eventName, this);\n }\n if (jjEventName) {\n this.addEventListener(jjEventName, callBack, useCapture);\n }\n\n return this;\n };\n\n JJPower.prototype.jjRemoveEventListener = function (eventName, callBack, useCapture) {\n let jjEventName = eventName;\n if (JJPower.isMobile) {\n jjEventName = getMobileEventName(eventName, this);\n }\n if (jjEventName) {\n this.removeEventListener(jjEventName, callBack, useCapture);\n }\n\n return this;\n };\n\n JJPower.prototype.jjAddClass = function () {\n try { // If the user gives bad dataList (eg. empty string) don't overreact, stay cool\n const styleModuleObject = arguments[0];\n if (typeof styleModuleObject === 'string') { // This means we're in sandbox\n this.classList.add(...arguments);\n } else { // this means we're using css modules\n let className;\n for (let i = 1; i < arguments.length; i++) {\n className = arguments[i];\n this.classList.add(styleModuleObject[className]);\n }\n }\n } catch (e) {\n }\n\n return this;\n };\n\n JJPower.prototype.jjRemoveClass = function () {\n const styleModuleObject = arguments[0];\n if (typeof styleModuleObject === 'string') { // This means we're in sandbox\n this.classList.remove(...arguments);\n } else { // this means we're using css modules\n let className;\n for (let i = 1; i < arguments.length; i++) {\n className = arguments[i];\n this.classList.remove(styleModuleObject[className]);\n }\n }\n\n return this;\n };\n\n JJPower.prototype.jjToggleClass = function () {\n const styleModuleObject = arguments[0];\n let hasStyleModuleObject = false;\n let startIndex = 0;\n let className;\n if (typeof styleModuleObject !== 'string') { // this means we're using css modules\n hasStyleModuleObject = true;\n startIndex = 1;\n }\n\n for (let i = startIndex; i < arguments.length; i++) {\n className = (hasStyleModuleObject ? styleModuleObject[arguments[i]] : arguments[i]);\n if (this.classList.contains(className)) {\n this.classList.remove(className);\n } else {\n this.classList.add(className);\n }\n }\n\n return this;\n };\n\n JJPower.prototype.jjContainsClass = function () {\n let className = getGeneratedClassName(...arguments);\n let classList = this.classList;\n return classList.contains(className);\n };\n\n\n JJPower.prototype.jjClear = function () {\n while (this.firstChild) { // If the user gives bad dataList (eg. empty string) don't overreact, stay cool\n this.removeChild(this.firstChild);\n }\n return this;\n };\n\n JJPower.prototype.jjRemoveMe = function () {\n let parentNode = this.parentNode;\n if (parentNode) {\n parentNode.removeChild(this);\n }\n };\n\n JJPower.prototype.jjText = function (textContent) {\n this.textContent = textContent;\n return this;\n };\n\n JJPower.prototype.jjAddText = function (textContent) {\n let textNode = document.createTextNode(textContent);\n this.appendChild(textNode);\n return this;\n };\n\n JJPower.prototype.jjAddBoldText = function (textContent) {\n this.jjAppend(\"b\")\n .jjText(textContent);\n return this;\n };\n\n JJPower.prototype.jjAddTextBreak = function () {\n this.jjAppend(\"br\");\n return this;\n };\n\n JJPower.prototype.jjClone = function (isDeep) {\n const element = this.cloneNode(isDeep);\n JJPower.enhance(element);\n return element;\n };\n\n JJPower.prototype.jjSetData = function (dataObject) {\n this.__data__ = dataObject;\n return this;\n };\n\n JJPower.prototype.jjGetData = function () {\n return this.__data__;\n };\n\n JJPower.prototype.jjSetIndex = function (index) {\n this.setAttribute('jjIndex', index);\n return this;\n };\n\n JJPower.prototype.jjGetIndex = function () {\n return +this.getAttribute('jjIndex');\n };\n\n //Returns null if no papa found\n JJPower.prototype.jjGetClosestPapaWithClass = function () {\n const className = getGeneratedClassName(...arguments);\n let bingoPapa = this.closest(\".\" + className);\n return JJPower.enhance(bingoPapa);\n };\n\n //Returns null if no papa found\n JJPower.prototype.jjClosest = function () {\n const selectorStr = getGeneratedQueryText(...arguments);\n let bingoPapa = this.closest(selectorStr);\n return JJPower.enhance(bingoPapa);\n };\n\n JJPower.prototype.jjIsAncestor = function (ancestor) {\n let papa = this;\n while (papa && (papa !== ancestor)) {\n papa = papa.parentNode;\n }\n return papa;\n };\n\n\n JJPower.prototype.jjGetStylePixelNumberValue = function (styleName) {\n let strOrig = this.style[styleName];\n let numStr = strOrig.replace(\"px\", \"\");\n return +numStr;\n };\n\n /** Measurements Calculations **/\n //This is expensive! Uses getBoundingClientRect\n JJPower.prototype.jjMouseCoordinatesRelativeToMe = function (event) {\n let clientRect = this.getBoundingClientRect();\n let x = event.clientX - clientRect.left;\n let y = event.clientY - clientRect.top;\n\n return {\n x: x,\n y: y,\n rect: clientRect\n }\n };\n\n /** Inline Style **/\n JJPower.prototype.jjApplyTransform = function (x, y, rotation, rotateFirst, translateUnit) {\n let hasTranslate = (x !== undefined || y !== undefined);\n\n if (!y) {\n y = 0;\n }\n if (!x) {\n x = 0;\n }\n if (!translateUnit) {\n translateUnit = \"px\";\n }\n\n let transformStr = \"\";\n let isSVG = this instanceof SVGElement;\n\n let translateStr = \"\";\n let rotateStr = \"\";\n\n if (hasTranslate) {\n translateStr = getTranslateStr();\n }\n if (rotation) {\n rotateStr = getRotateStr();\n }\n\n if (rotateFirst) {\n transformStr = rotateStr + \" \" + translateStr;\n } else {\n transformStr = translateStr + \" \" + rotateStr;\n }\n transformStr.trim();\n\n\n if (isSVG) {\n this.setAttribute(\"transform\", transformStr);\n } else {\n this.style.transform = transformStr;\n }\n\n this.jjTotallyUnreliableY = y; //Ugly workaround for specific issue\n this.jjTotallyUnreliableX = x; //Ugly workaround for specific issue\n\n return this;\n\n //Inner functions\n function getTranslateStr() {\n let translateStr;\n if (isSVG) {\n translateStr = `translate(${x}, ${y})`;\n } else {\n translateStr = `translate(${x}${translateUnit}, ${y}${translateUnit})`;\n }\n return translateStr;\n }\n\n function getRotateStr() {\n let rotateStr;\n if (isSVG) {\n rotateStr = `rotate(${rotation})`;\n } else {\n rotateStr = `rotate(${rotation}deg)`;\n }\n return rotateStr;\n }\n };\n\n /** Animation **/\n JJPower.prototype.jjAnimate = function (frameFunction, animationDuration, endFunction, isLinear, timingArr) { // Frame function runs each frame, and takes the current progress param!\n timingArr = timingArr || JJPower.easeArray;\n let timingLen = timingArr.length - 1;\n let me = this;\n let animationObj = {stopNow: false, t: 0};\n\n const startTime = new Date().getTime();\n isLinear = isLinear || animationDuration > 4000;\n\n\n if (!me.animationList) {\n me.animationList = [];\n }\n me.animationList.push(animationObj);\n\n requestAnimationFrame(repeatAnimation);\n\n return animationObj;\n\n /* Inner Functions */\n function repeatAnimation() {\n if (animationObj.stopNow) { //It hurts my soul to return in the middle of a function, but had to. God forgive me.\n return;\n }\n\n const nowTime = new Date().getTime();\n let progressTime = nowTime - startTime;\n progressTime = Math.min(animationDuration, progressTime);\n\n let t = progressTime / animationDuration;\n if (!isLinear) {\n t = JJPower.easeInTiming(t, timingArr, timingLen);\n }\n\n frameFunction(t);\n\n if (t < 1) {\n requestAnimationFrame(repeatAnimation);\n } else if (endFunction) {\n endFunction();\n }\n\n animationObj.t = t;\n }\n };\n\n JJPower.easeInTiming = function (t, timingArr, timingLen) {\n let real = t * timingLen;\n let base = Math.floor(real);\n let next = Math.ceil(real);\n let retT = getValueByProgress(timingArr[base], timingArr[next], real - base);\n return retT;\n\n /* Inner Function */\n function getValueByProgress(startValue, endValue, t){\n return startValue + (endValue - startValue) * t;\n }\n };\n\n JJPower.prototype.jjStopAnimation = function () {\n let me = this;\n if (me.animationList) {\n for (let animationObj of me.animationList) {\n animationObj.stopNow = true;\n }\n }\n return me;\n };\n\n /** *Awful but necessary *****/\n // Used to time css animations. We need to assign the animation start state, then reflow so it will be set, and then assign the end state\n JJPower.prototype.jjForceStyleRecalc = function () {\n let computedStyle = window.getComputedStyle(this);\n return computedStyle.transform;\n };\n\n /******* Private Functions ******/\n\n /** Mobile **/\n function getMobileEventName(origEventName, element) {\n if (element == document && origEventName == \"click\") {\n return \"touchstart\";\n }\n\n switch (origEventName) {\n case \"mousedown\":\n return \"touchstart\";\n case \"mousemove\":\n return \"touchmove\";\n case \"mouseup\":\n return \"touchend\";\n case \"mouseenter\":\n return \"\";\n case \"mouseleave\":\n return \"\";\n case \"mouseover\":\n return \"\";\n case \"mouseout\":\n return \"\";\n default:\n return origEventName\n }\n }\n\n /** CSS Modules **/\n function getGeneratedClassName() {\n let className;\n const param1 = arguments[0];\n const param2 = arguments[1];\n\n if (!param2) { // This means we received only a string representing the selector\n className = param1;\n } else { // this means we're using css modules, and also received the styles object\n className = param2;\n const stylesObject = param1;\n className = stylesObject[className] || param2;\n }\n\n return className;\n };\n\n function getGeneratedQueryText() {\n let queryText;\n const param1 = arguments[0];\n const param2 = arguments[1];\n const stylesObject = param1;\n\n if (!param2) { // This means we received only a string representing the selector\n queryText = param1;\n } else { // this means we're using css modules, and also received the styles object\n queryText = param2;\n queryText = queryText.replace(/(\\.[a-zA-Z0-9]+)/g, replaceFunction);\n }\n return queryText;\n\n\n /* Inner Function */\n function getStyleObjectClassSelector(origQueryText) {\n let classSelector = origQueryText.replace('.', '');\n classSelector = stylesObject[classSelector];\n if (!classSelector) {\n classSelector = origQueryText.replace('.', '');\n }\n classSelector = `.${classSelector}`;\n\n return classSelector;\n }\n\n function replaceFunction(match, p1) {\n let classSelector = getStyleObjectClassSelector(p1, stylesObject);\n return classSelector;\n }\n };\n\n /** Finally. Enhance the document (mainly for attaching mobile friendly event listeners) **/\n JJPower.enhance(document);\n}", "function getMode() {\n\n// SPECIFY RULES\n\n // BROWSERS: chrome, firefox, msie, msedge, safari, android, ios, more...\n // DEVICES: mobile, tablet, more...\n // OS: mac, windows, windowsphone, chromeos, android, ios, webos, more...\n // Full list of flags: https://github.com/lancedikson/bowser\n\n \n // EXAMPLE: Creating a bundle rule\n var sketchyBrowsers = bowser.msie || bowser.msedge;\n\n // EXAMPLE: Creating custom rules\n // Target specific devices by filtering out its specific properties\n var newIphones = bowser.ios && bowser.mobile && window.innerWidth > 320; // iPhone 6 & 7\n var newIpads = bowser.tablet && bowser.ios && window.innerWidth > 768; // iPad Pro\n // Create a rule for all handheld\n var allHandheld = bowser.tablet || bowser.mobile;\n // Create a rule for all exceptions\n var exceptionsHandheld = newIpads || newIphones; // Add i.e. new MS Surface here...\n // Filter out the exceptions from the larger group\n var mostHandheld = (allHandheld) && !(exceptionsHandheld);\n // Use mostHandheld and exceptionsHandheld as rules\n \n \n\n // Add rule to the array of the mode you want it to enable\n var modes = {\n off: [bowser.windowsphone, bowser.samsungBrowser, bowser.tizen],\n minimal: [mostHandheld, sketchyBrowsers], \n limited: [exceptionsHandheld, bowser.firefox, bowser.safari],\n default: [bowser.chrome]\n };\n\n// CHECK RULES TO RETURN A MODE\n\n // Iterate over each mode in modes\n for (var mode in modes) {\n \n var rules = modes[mode];\n var i;\n var len = rules.length;\n for (i = 0; i < len; i++) {\n // Check if any rule in the rules array is true\n // Return the mode of the FIRST rule to be true\n if (rules[i]) return mode;\n }\n\n }\n}", "get Mode7point1() {}", "function getParameters(mode_num){\n\t\tswitch(android_interpolator.interpolatorTypesAry[mode_num].name) {\n\t\t\tcase \"CustomSpring\":\n\t\t\t\tprefixParameters = 'var factor = '+factor1.toString()+'; \\n';\n\t\t\t\tbreak;\n\t\t\tcase \"CustomBounce\":\n\t\t\t\tprefixParameters = 'var mTension = '+factor1.toString()+';\\nvar mFriction = '+factor2.toString()+';\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"CustomDamping\":\n\t\t\t\tprefixParameters = 'var mTension = '+factor1.toString()+';\\nvar mFriction = '+factor2.toString()+';\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"CustomMocosSpring\":\n\t\t\t\tprefixParameters = 'var tension = '+factor1.toString()+';\\nvar damping = '+factor2.toString()+';\\nvar v0 = '+factor3.toString()+';\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"AndroidSpring\":\n\t\t\t\tprefixParameters = 'var mStiffness = '+factor1.toString()+';\\nvar mDampingRatio = '+factor2.toString()+';\\nvar mVelocity = '+factor3.toString()+';\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"AndroidFling\":\n\t\t\t\tprefixParameters = 'var mStartVelocity = '+factor1.toString()+';\\nvar mDampingRatio = '+factor2.toString()+';\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"Origami_POP_Spring\":\n\t\t\t\tOrigamiSpringConverter(factor1,factor2);\n\t\t\t\tprefixParameters = 'var mStiffness = '+ mStiffness.toString() +';\\nvar mDampingRatio = '+ mDampingRatio.toString() +';\\nvar mVelocity = 0;\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"Framer_RK4_Spring\":\n\t\t\t\tFramerRK4Converter(factor1,factor2);\n\t\t\t\tprefixParameters = 'var mStiffness = '+ mStiffness.toString() +';\\nvar mDampingRatio = '+ mDampingRatio.toString() +';\\nvar mVelocity = 0;\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"Framer_DHO_Spring\":\n\t\t\t\tFramerDHOConverter(factor1,factor2,factor3,factor4);\n\t\t\t\tprefixParameters = 'var mStiffness = '+ mStiffness.toString() +';\\nvar mDampingRatio = '+ mDampingRatio.toString() +';\\nvar mVelocity = ' + factor4.toString() +';\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"CASpringAnimation\":\n\t\t\t\tFramerDHOConverter(factor1,factor2,factor3,factor4);\n\t\t\t\tprefixParameters = 'var mStiffness = '+ mStiffness.toString() +';\\nvar mDampingRatio = '+ mDampingRatio.toString() +';\\nvar mVelocity =' + factor4.toString() +';\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"UIViewSpringAnimation\":\n\t\t\t\tUIViewSpringConverter(factor1,factor2);\n\t\t\t\tprefixParameters = 'var mStiffness = '+ mStiffness.toString() +';\\nvar mDampingRatio = '+ mDampingRatio.toString() +';\\nvar mVelocity = 0;\\n';\n\t\t\t\tbreak;\n\t\t\tcase \"Protopie_Spring\":\n\t\t\t\tFramerRK4Converter(factor1,factor2);\n\t\t\t\tprefixParameters = 'var mStiffness = '+ mStiffness.toString() +';\\nvar mDampingRatio = '+ mDampingRatio.toString()+ ';\\nvar mVelocity = 0;\\n';\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tif(android_interpolator.interpolatorTypesAry[mode_num].defaultPara == null){\n\t\t\t\t\tprefixParameters = '';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tprefixParameters = 'var factor = '+factor1.toString()+';\\n';\n\t\t\t\t}\n\n\t\t}\n\t}", "function OnThicknessOfTheTiles_Change( e )\r\n{\r\n Alloy.Globals.ShedModeInfrastructure[\"THICKNESS_OF_THE_TILES\"] = e.id ;\r\n}", "function checkMode(){\n var selValue = comboSelectedValueGet('tf1_selAdvtMode');\n if (!selValue) \n return;\n switch (parseInt(selValue, 10)) {\n case 1:\n fieldStateChangeWr('', '', 'tf1_txtAdvInterval', '');\n vidualDisplay('tf1_txtAdvInterval', 'configRow');\n vidualDisplay('break_txtAdvInterval', 'break');\n \n break;\n case 2:\n fieldStateChangeWr('tf1_txtAdvInterval', '', '', '');\n vidualDisplay('tf1_txtAdvInterval', 'hide');\n vidualDisplay('break_txtAdvInterval', 'hide');\n \n break;\n }\n}", "initTypeAndMode(type, mode) {\nlet img = this._refs.img;\nlet image = null;\nswitch (type) {\ncase sensorModuleConstants.SENSOR_TYPE_NXT_TOUCH:\ncase sensorModuleConstants.SENSOR_TYPE_TOUCH:\nimage = 'images/ev3/touch64.png';\nthis._gridDrawer = this._binaryDrawer;\nthis._chartDrawers = [this._binaryDrawer];\nthis._maxValue = 1;\nbreak;\ncase sensorModuleConstants.SENSOR_TYPE_NXT_COLOR:\ncase sensorModuleConstants.SENSOR_TYPE_COLOR:\nimage = 'images/ev3/color64.png';\nif (mode === sensorModuleConstants.COLOR_COLOR) {\nthis._gridDrawer = this._binaryDrawer;\nthis._chartDrawers = [this._colorBarDrawer];\nthis._maxValue = 7;\n} else {\nthis._gridDrawer = this._fillDrawer;\nthis._chartDrawers = [this._fillDrawer, this._lineDrawer];\nthis._maxValue = 100;\n}\nbreak;\ncase sensorModuleConstants.SENSOR_TYPE_NXT_ULTRASONIC:\ncase sensorModuleConstants.SENSOR_TYPE_ULTRASONIC:\nimage = 'images/ev3/ultrasonic64.png';\nthis._gridDrawer = this._fillDrawer;\nthis._chartDrawers = [this._fillDrawer, this._lineDrawer];\nthis._maxValue = 255;\nbreak;\ncase sensorModuleConstants.SENSOR_TYPE_GYRO:\nimage = 'images/ev3/gyro64.png';\nthis._gridDrawer = this._lineDrawer;\nthis._chartDrawers = [this._lineDrawer];\nthis._maxValue = 255;\nbreak;\ncase sensorModuleConstants.SENSOR_TYPE_INFRARED:\nimage = 'images/ev3/infrared64.png';\nthis._gridDrawer = this._lineDrawer;\nthis._chartDrawers = [this._lineDrawer];\nthis._maxValue = 255;\nbreak;\ncase sensorModuleConstants.SENSOR_TYPE_NXT_SOUND:\nimage = 'images/nxt/sound64.png';\nthis._gridDrawer = this._lineDrawer;\nthis._chartDrawers = [this._lineDrawer];\nthis._maxValue = 100;\nbreak;\n}\nif (image) {\nimg.src = getImage(image);\nimg.style.display = 'block';\n} else {\nimg.style.display = 'none';\nthis._gridDrawer = null;\n}\nthis._type = type;\nthis._mode = mode;\n}", "get fov() {return this._p.fov;}", "speed (prm) {\n try {\n\t return this.confmng(\"speed\", prm);\n } catch (e) {\n console.error(e.stack);\n throw e;\n }\n }", "function distortionamount()\t{\n\t\t\t\t\tif (document.getElementById('distortvalue').checked) {\n\t\t\t\t\t\tdistortion.curve = makeDistortionCurve(300);\n\t\t\t\t\t\t// alert(\"DISTORTION ACTIVATED\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdistortion.curve = makeDistortionCurve(0);\n\t\t\t\t\t\t// alert(\"DISTORTION NOT ACTIVATED\");\n\t\t\t\t\t}\n\t\t\t\t}", "getMode() {\n return this.mode;\n }", "function toggle_speed() {\n step = 0;\n can_poll = true;\n can_update = false;\n NUM_STEPS = NUM_STEPS == SLOW_NUM_STEPS ? FAST_NUM_STEPS : SLOW_NUM_STEPS;\n}", "switchMode(e){\n\t\tif (e=='hidden'){\n\t\t\tthis.canvas.stop(true).fadeTo(e.dt,0, function(){\n\t\t\t\tif (this.particleSystem) this.particleSystem.stop();\n\t\t\t\tthis.canvas.hide();\n\t\t\t})\n\t\t}\n\t\telse if (e=='visible'){\n\t\t\tthis.canvas.stop(true).css('opacity',0).show().fadeTo(e.dt,1,function(){\n\t\t\t\tthis.resize();\n\t\t\t})\n\t\t\tif (this.particleSystem) this.particleSystem.start();\n\t\t}\n\t}", "getOsc2Freq() {\n var semitones = this.audioData.keys[0] + this.knobOsc2Val;\n return this.getFrequency(semitones) + this.getOsc1Freq();\n }", "function distortionamount()\t{\n\t\t\t\t\tif (document.getElementById('distortvalue').checked) {\n\t\t\t\t\t\tdistortion.curve = makeDistortionCurve(10000);\n\t\t\t\t\t\t// alert(\"DISTORTION ACTIVATED\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdistortion.curve = makeDistortionCurve(0);\n\t\t\t\t\t\t// alert(\"DISTORTION NOT ACTIVATED\");\n\t\t\t\t\t}\n\t\t\t\t}", "function distortionamount()\t{\n\t\t\t\t\tif (document.getElementById('distortvalue').checked) {\n\t\t\t\t\t\tdistortion.curve = makeDistortionCurve(10000);\n\t\t\t\t\t\t// alert(\"DISTORTION ACTIVATED\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdistortion.curve = makeDistortionCurve(0);\n\t\t\t\t\t\t// alert(\"DISTORTION NOT ACTIVATED\");\n\t\t\t\t\t}\n\t\t\t\t}", "function distortionamount()\t{\n\t\t\t\t\tif (document.getElementById('distortvalue').checked) {\n\t\t\t\t\t\tdistortion.curve = makeDistortionCurve(1000);\n\t\t\t\t\t\t// alert(\"DISTORTION ACTIVATED\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdistortion.curve = makeDistortionCurve(0);\n\t\t\t\t\t\t// alert(\"DISTORTION NOT ACTIVATED\");\n\t\t\t\t\t}\n\t\t\t\t}", "function onFomChanged() {\n pll.fom = parseFloat( document.getElementById(\"pllFom\").value );\n\n synthPll();\n}", "function squareFeatures()\n{\n const squareSide = document.getElementById(\"main--form--output_01\");\n side = parseFloat(squareSide.value);\n sqResult_01 = side * 4;\n sqResult_02 = side ** 2;\n document.getElementById(\"main--form__divInteractivo__input01\").innerHTML = parseFloat(sqResult_01).toFixed(1);\n document.getElementById(\"main--form__divInteractivo__input02\").innerHTML = parseFloat(sqResult_02).toFixed(1);\n}", "setModeNumber( newModeNumber )\n\t{\n\t\tlogger( \"----->PARTCLE MODE: \", newModeNumber );\n\t\tthis.p.modeNumber = newModeNumber;\n\t\tswitch( newModeNumber )\n\t\t{\n\t\t\tcase 0: // DISABLE\n\t\t\t\tthis.p.cubeCameraEnabled = false;\n\t\t\t\tthis.p.lightSourceEnabled = false;\n\t\t\t\tthis.p.maxParticles = 0;\n\t\t\t\tthis.p.disable();\n\t\t\t\tthis.p.zPosition = 0.0;\n\t\t\t\tbreak;\n\n\t\t\tcase 3: // ORIGINAL GOLD FLOATING OBJECTS\n\t\t\t\tthis.p.maxParticles = 55;\n\t\t\t\tthis.p.launchPositionX = -1.0; // <--------\n\t\t\t\t//this.p.launchPositionX = 0.0; // DEBUG!\n\t\t\t\tthis.p.launchPositionY = 0.0;\n\t\t\t\tthis.p.launchVarianceX = 0.0;\n\t\t\t\tthis.p.launchVarianceY = 0.5;\n\t\t\t\tthis.p.minimumLaunchDistance = 1.35;\n\t\t\t\tthis.p.cubeCameraEnabled = false;\n\t\t\t\tthis.p.spawnDelayMSec = 300.0;\n\t\t\t\tthis.p.zPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.xSpeed = 0.0002;\n\t\t\t\tthis.p.ySpeed = 0.0;\n\t\t\t\tthis.p.r1Value = 0.04;\n\t\t\t\tthis.p.t1Speed = 0.524;\n \t\tthis.p.t1StartPosition = 0.0;\n\t\t\t\tthis.p.r2Value = 0.0;\n\t\t\t\tthis.p.t2Speed = 0.0;\n \t\tthis.p.t2StartPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.lightSourceEnabled = false;\n\t\t\t\tthis.p.meshMode = MeshMode.CONES_CUBES_SPHERES;\n\t\t\t\tthis.p.materialNumber = 0;\n\t\t\t\tthis.p.currentSize = 1.0;\n\t\t\t\tthis.p.targetSizeRate = 0.001;\n\t\t\t\tthis.p.targetSize = 1.0;\n\t\t\t\tthis.p.wind.enable();\n\t\t\t\tthis.p.wind.setDirection( 0.5, 0.0, 0.2, 0.7 );\n\t\t\t\tthis.p.wind.setIntervalMSec( 15000 );\n\t\t\t\tbreak;\n\n\t\t\tcase 2: // ROTATING OBJECTS\n\t\t\t\tthis.p.maxParticles = 40;\n\t\t\t\tthis.p.launchPositionX = -0.8;\n\t\t\t\tthis.p.launchPositionY = 0.0;\n\t\t\t\tthis.p.launchVarianceX = 0.0;\n\t\t\t\tthis.p.launchVarianceY = 0.0;\n\t\t\t\tthis.p.minimumLaunchDistance = 0.0;\n\t\t\t\tthis.p.cubeCameraEnabled = false;\n\t\t\t\tthis.p.spawnDelayMSec = 200.0;\n\t\t\t\tthis.p.zPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.xSpeed = 0.0007;\n\t\t\t\tthis.p.ySpeed = 0.0;\n\t\t\t\tthis.p.r1Value = 1.8;\n\t\t\t\tthis.p.t1Speed = 0.04;\n \t\tthis.p.t1StartPosition = 2.1;\n\t\t\t\tthis.p.r2Value = 0.0;\n\t\t\t\tthis.p.t2Speed = 0.0;\n \t\tthis.p.t2StartPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.lightSourceEnabled = false;\n\t\t\t\tthis.p.meshMode = MeshMode.CONES_CUBES_SPHERES;\n\t\t\t\tthis.p.materialNumber = 4;\n\t\t\t\tthis.p.currentSize = 0.3;\n\t\t\t\tthis.p.targetSize = 0.3;\n\t\t\t\tthis.p.wind.enable();\n\t\t\t\tthis.p.wind.setDirection( 0.0, 0.0, 0.4, 0.4 );\n\t\t\t\tthis.p.wind.setIntervalMSec( 5000 );\n\t\t\t\tbreak;\n\n\t\t\tcase 1: // TINY BUBBLES\n\t\t\t\tthis.p.maxParticles = 200;\n\t\t\t\tthis.p.launchPositionX = 0.0;\n\t\t\t\tthis.p.launchPositionY = -0.5;\n\t\t\t\tthis.p.launchVarianceX = 1.0;\n\t\t\t\tthis.p.launchVarianceY = 0.0;\n\t\t\t\tthis.p.minimumLaunchDistance = 0.1;\n\t\t\t\tthis.p.cubeCameraEnabled = false;\n\t\t\t\t//this.p.spawnDelayMSec = 20.0; // <---- ORIGINAL\n\t\t\t\tthis.p.spawnDelayMSec = 40.0;\n\t\t\t\tthis.p.zPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.xSpeed = 0.0000;\n\t\t\t\tthis.p.ySpeed = 0.0015;\n\t\t\t\tthis.p.r1Value = 0.5;\n\t\t\t\tthis.p.t1Speed = 0.04;\n \t\tthis.p.t1StartPosition = 0.0;\n\t\t\t\tthis.p.r2Value = 0.0;\n\t\t\t\tthis.p.t2Speed = 0.0;\n \t\tthis.p.t2StartPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.lightSourceEnabled = false;\n\t\t\t\tthis.p.meshMode = MeshMode.CONES_CUBES_SPHERES;\n\t\t\t\tthis.p.materialNumber = 1;\n\t\t\t\tthis.p.targetSizeRate = 0.000001;\n\t\t\t\tthis.p.targetSize = 0.09;\n\t\t\t\t//this.p.targetSize = 0.09; // <--- ORIGINAL\n\t\t\t\tthis.p.wind.enable();\n\t\t\t\tthis.p.wind.setDirection( 0.0, -1.0, 1.0, 0.0 );\n\t\t\t\tthis.p.wind.setIntervalMSec( 10000 );\n\t\t\t\tbreak;\n\n\t\t\tcase 4: // SPHERE BLOB WITH CUBE CAMERA\n\t\t\t\tthis.p.maxParticles = 8;\n\t\t\t\tthis.p.launchPositionX = 0.0;\n\t\t\t\tthis.p.launchPositionY = 0.0;\n\t\t\t\tthis.p.launchVarianceX = 0.0;\n\t\t\t\tthis.p.launchVarianceY = 0.0;\n\t\t\t\tthis.p.minimumLaunchDistance = 1.0;\n\t\t\t\tthis.p.cubeCameraEnabled = true;\n\t\t\t\tthis.p.spawnDelayMSec = 400.0;\n\t\t\t\tthis.p.zPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.xSpeed = 0.0;\n\t\t\t\tthis.p.ySpeed = 0.0;\n\t\t\t\tthis.p.r1Value = 1.7;\n\t\t\t\tthis.p.t1Speed = 0.02;\n\t \t\tthis.p.t1StartPosition = 0.0;\n\t\t\t\tthis.p.r2Value = 0.0;\n\t\t\t\tthis.p.t2Speed = 0.0;\n \t\tthis.p.t2StartPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.lightSourceEnabled = false;\n\t\t\t\t//this.p.meshMode = MeshMode.CONES_CUBES_SPHERES;\n\t\t\t\tthis.p.meshMode = MeshMode.SPHERES;\n\t\t\t\tthis.p.materialNumber = 3;\n\t\t\t\tthis.p.currentSize = 0.0;\n\t\t\t\tthis.p.targetSizeRate = 0.00005;\n\t\t\t\tthis.p.targetSize = 1.70;\n\t\t\t\tthis.p.wind.enable();\n\t\t\t\tthis.p.wind.setDirection( 0.0, 0.0, 0.5, 0.5 );\n\t\t\t\tthis.p.wind.setIntervalMSec( 10000 );\n\t\t\t\tbreak;\n\n\t\t\tcase 5: // LIGHTS\n\t\t\t\tthis.p.maxParticles = 50;\n\t\t\t\tthis.p.launchPositionX = 0.7;\n\t\t\t\tthis.p.launchPositionY = 0.0;\n\t\t\t\tthis.p.launchVarianceX = 0.0;\n\t\t\t\tthis.p.launchVarianceY = 0.8;\n\t\t\t\tthis.p.minimumLaunchDistance = 1.0;\n\t\t\t\tthis.p.cubeCameraEnabled = false;\n\t\t\t\tthis.p.spawnDelayMSec = 300.0;\n\t\t\t\t//this.p.spawnDelayMSec = 1500.0;\n\t\t\t\t//this.p.spawnDelayMSec = 2300.0; // <-------------\n\t\t\t\t//this.p.spawnDelayMSec = 4300.0;\n\t\t\t\tthis.p.zPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.xSpeed = -0.002;\n\t\t\t\tthis.p.ySpeed = 0.0000;\n\t\t\t\tthis.p.r1Value = 0.5;\n\t\t\t\tthis.p.t1Speed = 0.05; //<------------\n\t\t\t\t//this.p.t1Speed = 0.06;\n\t \t\tthis.p.t1StartPosition = 3.14/4;\n\t\t\t\tthis.p.r2Value = 0.3;\n\t\t\t\tthis.p.t2Speed = 0.1;\n \t\tthis.p.t2StartPosition = 3.14/4;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.lightSourceEnabled = true;\n\t\t\t\t//this.p.meshMode = MeshMode.CONES_CUBES_SPHERES;\n\t\t\t\tthis.p.meshMode = MeshMode.SPHERES;\n\t\t\t\tthis.p.materialNumber = 5;\n\t\t\t\tthis.p.currentSize = 0.10;\n\t\t\t\tthis.p.targetSizeRate = 0.0001;\n\t\t\t\tthis.p.targetSize = 0.10;\n\t\t\t\tthis.p.wind.enable();\n\t\t\t\tthis.p.wind.setDirection( 0.0, 0.0, 0.3, 0.3 );\n\t\t\t\tthis.p.wind.setIntervalMSec( 10000 );\n\t\t\t\tbreak;\n\n\t\t\tcase 6: // WHILRING OBJECTS\n\t\t\t\tthis.p.maxParticles = 200;\n\t\t\t\tthis.p.launchPositionX = 0.0;\n\t\t\t\tthis.p.launchPositionY = 0.0;\n\t\t\t\tthis.p.launchVarianceX = 0.0;\n\t\t\t\tthis.p.launchVarianceY = 0.0;\n\t\t\t\tthis.p.minimumLaunchDistance = 0.5;\n\t\t\t\tthis.p.cubeCameraEnabled = false;\n\t\t\t\tthis.p.spawnDelayMSec = 100.0;\n\t\t\t\tthis.p.zPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.xSpeed = 0.0;\n\t\t\t\tthis.p.ySpeed = 0.0;\n\t\t\t\tthis.p.r1Value = 1.7;\n\t\t\t\tthis.p.t1Speed = 0.007;\n\t \t\tthis.p.t1StartPosition = 0.0;\n\t\t\t\tthis.p.r2Value = 0.6;\n\t\t\t\tthis.p.t2Speed = 0.09;\n \t\tthis.p.t2StartPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.lightSourceEnabled = false;\n\t\t\t\tthis.p.meshMode = MeshMode.CONES_CUBES_SPHERES;\n\t\t\t\t//this.p.meshMode = MeshMode.TORRUS_KNOT;\n\t\t\t\t//this.p.meshMode = MeshMode.SPHERES;\n\t\t\t\tthis.p.materialNumber = 0;\n\t\t\t\tthis.p.currentSize = 0.01;\n\t\t\t\tthis.p.targetSizeRate = 0.00002;\n\t\t\t\tthis.p.targetSize = 0.19;\n\t\t\t\tthis.p.wind.enable();\n\t\t\t\t//this.p.wind.disable(); // DEBUG!!!!!!!!\n\t\t\t\tthis.p.wind.setDirection( 0.0, 0.06, 0.7, 0.7 );\n\t\t\t\tthis.p.wind.setIntervalMSec( 1000 );\n\t\t\t\tbreak;\n\n\t\t\tcase 7: // BLACK SHAPES\n\t\t\t\tthis.p.maxParticles = 55;\n\t\t\t\tthis.p.launchPositionX = 0.0; // <--------\n\t\t\t\t//this.p.launchPositionX = 0.0; // DEBUG!\n\t\t\t\tthis.p.launchPositionY = -1.0;\n\t\t\t\tthis.p.launchVarianceX = 0.5;\n\t\t\t\tthis.p.launchVarianceY = 0.0;\n\t\t\t\tthis.p.minimumLaunchDistance = 2.35;\n\t\t\t\tthis.p.cubeCameraEnabled = false;\n\t\t\t\tthis.p.spawnDelayMSec = 1300.0;\n\t\t\t\tthis.p.zPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.xSpeed = 0.0;\n\t\t\t\tthis.p.ySpeed = 0.0002;\n\t\t\t\tthis.p.r1Value = 0.02;\n\t\t\t\tthis.p.t1Speed = 0.0524;\n \t\tthis.p.t1StartPosition = 0.0;\n\t\t\t\tthis.p.r2Value = 0.0;\n\t\t\t\tthis.p.t2Speed = 0.0;\n \t\tthis.p.t2StartPosition = 0.0;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.lightSourceEnabled = false;\n\t\t\t\tthis.p.meshMode = MeshMode.CONES_CUBES_SPHERES;\n\t\t\t\tthis.p.materialNumber = 2;\n\t\t\t\tthis.p.currentSize = 2.0;\n\t\t\t\tthis.p.targetSizeRate = 0.001;\n\t\t\t\tthis.p.targetSize = 2.0;\n\t\t\t\tthis.p.wind.enable();\n\t\t\t\tthis.p.wind.setDirection( 0.0, 0.0, 0.5, 0.5 );\n\t\t\t\tthis.p.wind.setIntervalMSec( 15000 );\n\t\t\t\tbreak;\n\n\t\t\tcase 8: // WHITE POOL BALLS\n\t\t\t\tthis.p.maxParticles = 55;\n\t\t\t\tthis.p.launchPositionX = 0.9; // <--------\n\t\t\t\t//this.p.launchPositionX = 0.0; // DEBUG!\n\t\t\t\tthis.p.launchPositionY = 0.0;\n\t\t\t\tthis.p.launchVarianceX = 0.0;\n\t\t\t\tthis.p.launchVarianceY = 0.5;\n\t\t\t\tthis.p.minimumLaunchDistance = 1.35;\n\t\t\t\tthis.p.cubeCameraEnabled = false;\n\t\t\t\tthis.p.spawnDelayMSec = 300.0;\n\t\t\t\tthis.p.zPosition = 0.5;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.xSpeed = -0.0005;\n\t\t\t\tthis.p.ySpeed = 0.0;\n\t\t\t\tthis.p.r1Value = 0.04;\n\t\t\t\tthis.p.t1Speed = 0.09;\n \t\tthis.p.t1StartPosition = 3.14/4;\n\t\t\t\tthis.p.r2Value = 0.05;\n\t\t\t\tthis.p.t2Speed = 0.10;\n \t\tthis.p.t2StartPosition = 3.14/4;\n\t\t\t\t// ~ - ~ - ~ - ~ -\n\t\t\t\tthis.p.lightSourceEnabled = false;\n\t\t\t\tthis.p.meshMode = MeshMode.SPHERES;\n\t\t\t\t//this.p.meshMode = MeshMode.CONES_CUBES_SPHERES;\n\t\t\t\tthis.p.materialNumber = 7;\n\t\t\t\tthis.p.currentSize = 0.8;\n\t\t\t\tthis.p.targetSizeRate = 0.001;\n\t\t\t\tthis.p.targetSize = 0.8;\n\t\t\t\tthis.p.wind.enable();\n\t\t\t\tthis.p.wind.setDirection( 0.5, 0.0, 0.2, 0.7 );\n\t\t\t\tthis.p.wind.setIntervalMSec( 15000 );\n\t\t\t\tbreak;\n\n\t\t}\n\t}", "get mode() { return this._mode; }", "get mode() { return this._mode; }", "function calc_coop_level(strategy) {\n\t\tvar coop = strategy.values(),\n\t\t\tnorm = coop.filter(function(d) { return d >= 0; }).length;\n\n\t\tcoop_level = {\n\t\t\t// cooperators\n\t\t\tc: coop.filter(function(d) { return d === 1; }).length / norm,\n\t\t\t// defectors\n\t\t\td: coop.filter(function(d) { return d === 0; }).length / norm,\n\t\t\t// empty\n\t\t\te: coop.filter(function(d) { return d === -1; }).length / norm,\n\t\t};\n\t} // calc_coop_level()", "set Mode5point1(value) {}", "function toggleMode(){\n if(mode == 3){\n mode = 2;\n console.log(\"RC mode : 2\");\n }else{\n mode = 3;\n console.log(\"RC mode : 3\");\n }\n }", "getHeightMode(){return this.__heightMode}", "function testWwModeSpaceModeActivateO() {\n assertFalse('oClicked_ should be false', mode.oClicked_);\n assertEquals('oMultiplier_ should be 1', 1, mode.oMultiplier_);\n\n mode.activateO();\n\n assertTrue('oClicked_ should now be true', mode.oClicked_);\n assertEquals('oMultiplier_ should be 3', 3, mode.oMultiplier_);\n}", "function runOpMode() {\n linearOpMode.waitForStart();\n while (linearOpMode.opModeIsActive()) {\n colorHSV = colorAccess.argbToColor(JewelcolorsensorasLynxI2cColorRangeSensor.getAlpha(), JewelcolorsensorasLynxI2cColorRangeSensor.getRed(), JewelcolorsensorasLynxI2cColorRangeSensor.getGreen(), JewelcolorsensorasLynxI2cColorRangeSensor.getBlue());\n hue = colorAccess.getHue(colorHSV);\n telemetry.addNumericData('Hue', hue);\n if (hue < 30) {\n telemetry.addTextData('Color', String('Red'));\n } else if (hue < 225) {\n telemetry.addTextData('Color', String('Blue'));\n } else {\n telemetry.addTextData('Color', String('who knows '));\n }\n telemetry.update();\n }\n}", "function render_panel() {\n // IE doesn't work without this\n elem.css({height:scope.panel.height||scope.row.height});\n\n var label;\n\n if(scope.panel.mode === 'goal') {\n label = {\n show: scope.panel.labels,\n radius: 0,\n formatter: function(label, series){\n var font = parseInt(scope.row.height.replace('px',''),10)/8 + String('px');\n if(!(_.isUndefined(label))) {\n return '<div style=\"font-size:'+font+';font-weight:bold;text-align:center;padding:2px;color:#fff;\">'+\n Math.round(series.percent)+'%</div>';\n } else {\n return '';\n }\n },\n };\n } else {\n label = {\n show: scope.panel.labels,\n radius: 2/3,\n formatter: function(label, series){\n return '<div \"style=\"font-size:8pt;text-align:center;padding:2px;color:white;\">'+\n label+'<br/>'+Math.round(series.percent)+'%</div>';\n },\n threshold: 0.1\n };\n }\n\n var pie = {\n series: {\n pie: {\n innerRadius: scope.panel.donut ? 0.45 : 0,\n tilt: scope.panel.tilt ? 0.45 : 1,\n radius: 1,\n show: true,\n combine: {\n color: '#999',\n label: 'The Rest'\n },\n label: label,\n stroke: {\n width: 0\n }\n }\n },\n //grid: { hoverable: true, clickable: true },\n grid: {\n backgroundColor: null,\n hoverable: true,\n clickable: true\n },\n legend: { show: false },\n colors: querySrv.colors\n };\n\n // Populate legend\n if(elem.is(\":visible\")){\n require(['jquery.flot.pie'], function(){\n scope.legend = $.plot(elem, scope.data, pie).getData();\n if(!scope.$$phase) {\n scope.$apply();\n }\n });\n }\n\n }", "function calcMode(nums){\n let convertedNums = nums.map(x => parseFloat(x));\n convertedNums.sort(function (a, b) { return a - b });\n\n let countArray = [];\n for (let i = 0; i <= convertedNums[convertedNums.length - 1]; i++) {\n let count = convertedNums.filter(x => x == i).length\n countArray.push(count)\n }\n let mode = 0;\n let k = countArray[0]\n for (let z = 0; z < countArray.length; z++) {\n if (countArray[z] > k) {\n k = countArray[z]\n mode = z;\n }\n } \n \n return mode;\n}", "static getDeviceModel() {\n return \"dmaker.fan.p11\";\n }", "function changeSinMode()\n{\n\tmode = mode +1;\n\tif (mode > 3)\n\t{\n\t\tmode = 0;\n\t}\n}", "function handleModeChange(mode) {\r\n if (mode == \"pen\") {\r\n if (penclasses.contains(\"active\")) {\r\n // make options visible\r\n penOptions.classList.add(\"show\");\r\n } else {\r\n ctx.strokeStyle = \"blue\";\r\n ctx.lineWidth = 5;\r\n mytool = \"pen\";\r\n ctx.globalCompositeOperation = \"source-over\";\r\n\r\n activetool.classList.remove(\"active\");\r\n activeoption.classList.remove(\"show\");\r\n pen.classList.add(\"active\");\r\n activetool = pen;\r\n activeoption = penOptions;\r\n }\r\n } else if (mode == \"eraser\") {\r\n if (eraserclasses.contains(\"active\")) {\r\n // make options available\r\n eraserOptions.classList.add(\"show\");\r\n } else {\r\n ctx.strokeStyle = \"white\";\r\n ctx.lineWidth = 5;\r\n ctx.globalCompositeOperation = \"destination-out\";\r\n mytool = \"eraser\";\r\n activetool.classList.remove(\"active\");\r\n activeoption.classList.remove(\"show\");\r\n\r\n eraser.classList.add(\"active\");\r\n \r\n activetool = eraser;\r\n activeoption = eraserOptions;\r\n }\r\n }\r\n}", "function FindMode(arr){\n\tvar mode = arr[Math.ceil(arr.length / 2)];\n\n\treturn mode;\n}", "wu_c(){\n return (1.2*(this.DL+this.SDL) + 1.6*this.LL)*(this.Sj/12)\n }", "get dampening() {\n return this._lfcf.dampening;\n }", "function onNChanged() {\n pll.N = parseFloat( document.getElementById(\"divN\").value );\n setFout(pll.fpfd*pll.N);\n\n synthPll();\n}", "function calcSyncSpeed(f, P){\n\t return f/P;\n }", "function decreaseMode(){\n var x = currentDesired[\"mode\"] - 1;\n if(x < 0){\n return UPPER_MODE_LIMIT;\n }else{\n return x;\n }\n}", "function Bat_Max_Dchg_Pwr(op, data, rowDef) {\n switch (op) {\n case \"format\":\n return \"fart\";\n\n default:\n };\n}", "function onModeChange(inst, ui)\n{\n // Update group configs based on mode selected\n networkScript.setBeaconSuperFrameOrders(inst, ui);\n oadScript.setDefaultOadBlockReqRate(inst);\n oadScript.setDefaultOadBlockReqPollDelay(inst);\n\n // Set visibility of network group dependents\n networkScript.setNetworkConfigHiddenState(inst, ui, \"channels\");\n networkScript.setNetworkConfigHiddenState(inst, ui, \"fhChannels\");\n networkScript.setNetworkConfigHiddenState(inst, ui, \"fhAsyncChannels\");\n networkScript.setNetworkConfigHiddenState(inst, ui, \"fhNetname\");\n networkScript.setNetworkConfigHiddenState(inst, ui, \"fhBroadcastDwellTime\");\n networkScript.setNetworkConfigHiddenState(inst, ui, \"fhBroadcastInterval\");\n\n // Polling interval not used in beacon mode\n networkScript.setNetworkConfigHiddenState(inst, ui, \"pollingInterval\");\n}", "function getSpeed(){\n\t\treturn controls.speed;\n\t}", "getOsc1Freq() {\n var semitones = this.audioData.keys[0] +\n this.knobOsc1Val + (this.audioData.knobs.knobXmod.position * 1);\n return this.getFrequency(semitones);\n }", "function setModeIntervals() {\n var v_mctr;\n var v_ictr;\n\n console.log(\"350\");\n for (v_mctr=0; v_mctr<7; v_mctr++) {\n// console.log(\"355 [\" + v_mctr + \"]\");\n for (v_ictr=0; v_ictr<7; v_ictr++) {\n// console.log(\"356 [\" + v_ictr + \"]\");\n a_modeIntervals[v_mctr][v_ictr] = a_baseIntervals[(v_mctr + v_ictr) % 7];\n// console.log(\"360 [\" + a_modeIntervals[v_mctr][v_ictr] + \"]\");\n }\n console.log(\"355 [\" + a_modeIntervals[v_mctr].toString() + \"]\");\n };\n}", "function ControllerMagMode(e) {\n if (this.enabled == true) {\n var img = this.parentNode.canvas.image;\n img.style.cursor = 'crosshair';\n this.parentNode.canvas.mode = 'mag';\n\n this.parentNode.buttonPan.className = 'controllerPan';\n this.className = 'controllerMagSelected';\n this.parentNode.msg.innerHTML = magnifyreg_msg;\n\n clearImageMap();\n }\n}", "function runOpMode() {\n RunTimer = elapsedTimeAccess.create_withResolution(\"SECONDS\");\n InitMotors();\n linearOpMode.waitForStart();\n while (RunTimer < 10 && linearOpMode.opModeIsActive()) {\n MotorSpeed(1, 1);\n telemetry.addTextData('RunTimer', String(RunTimer));\n telemetry.update();\n }\n}", "function dimensions() {\n\n // make sure the watchables are all valid\n angular.forEach(watchables, function(watchable) {\n \n // parse them to floats\n scope[watchable] = parseFloat(scope[watchable]);\n\n if(watchable == refLow || watchable == refHigh) {\n // this is the low or high value so bring them back in line with the steps\n scope[watchable] = roundToStep(scope[watchable], scope.precision, scope[stepWidth], scope.floor, scope.ceiling);\n } else if(watchable == 'buffer') {\n if(!scope.buffer || isNaN(scope.buffer) || scope.buffer < 0) {\n // the buffer is not valid, so set to 0\n scope.buffer = 0;\n } else {\n // this is the buffer so make sure it aligns with the steps\n scope.buffer = stepBuffer(scope[stepWidth], scope.buffer);\n }\n } else if(watchable == 'precision') {\n // make sure the precision is valid\n if(!scope.precision || isNaN(scope.precision)) {\n scope.precision = 0;\n } else {\n scope.precision = parseInt(scope.precision);\n }\n } else if(watchable == stepWidth) {\n // make sure the step is valid\n if(!scope[stepWidth] || isNaN(scope[stepWidth])) {\n scope[stepWidth] = 1 / Math.pow(10, scope.precision);\n } else {\n scope[stepWidth] = parseFloat(scope[stepWidth].toFixed(scope.precision));\n }\n } else if(watchable == 'stickiness') {\n // make sure the stickiness is valid\n if(isNaN(scope.stickiness)) {\n scope.stickiness = KNOB_STICKINESS;\n } else if(scope.stickiness < 1) {\n scope.stickiness = 1;\n }\n }\n \n // save the decoded values\n scope.decodedValues[watchable] = scope.decodeRef(watchable);\n\n });\n\n if(isDualKnob) {\n // if this is a dual knob slider\n\n // make sure the low value is actually lower than the high value\n if(scope[refHigh] < scope[refLow]) {\n var temp = scope[refHigh];\n scope[refHigh] = scope[refLow];\n scope[refLow] = temp;\n }\n\n // get the difference between the knobs, but make sure it's rounded to a step\n var diff = roundToStep(scope[refHigh] - scope[refLow], scope.precision, scope[stepWidth]);\n\n if(scope.buffer > 0 && diff < scope.buffer) {\n // we need a buffer but the difference is smaller than the required buffer\n\n // so find the middle\n var avg = scope.encode((scope.decodedValues[refLow] + scope.decodedValues[refHigh]) / 2);\n\n // and set the knobs so they straddle the middle with the required amount of buffer\n scope[refLow] = roundToStep(avg - (scope.buffer / 2), scope.precision, scope[stepWidth], scope.floor, scope.ceiling);\n scope[refHigh] = scope[refLow] + scope.buffer;\n\n if(scope[refHigh] > scope.ceiling) {\n // the high value is out of range\n\n // so set the high value to the maximum\n scope[refHigh] = scope.ceiling;\n // but keep the buffer correct\n scope[refLow] = scope.ceiling - scope.buffer;\n }\n }\n }\n\n // save the various dimensions we'll need\n barWidth = width(refs.fullBar);\n pointerHalfWidth = halfWidth(refs.minPtr);\n\n minOffset = offsetLeft(refs.fullBar);\n maxOffset = minOffset + barWidth - width(refs.minPtr);\n offsetRange = maxOffset - minOffset;\n\n minValue = scope.floor;\n minValueDecoded = scope.decodedValues.floor;\n maxValue = scope.ceiling;\n maxValueDecoded = scope.decodedValues.ceiling;\n valueRange = maxValue - minValue;\n valueRangeDecoded = maxValueDecoded - minValueDecoded;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tstepRange = roundTo(valueRangeDecoded, scope.decodedValues[stepWidth]);\n }", "get darFP() {\n return contador_squirrel_true - this.TP;\n }", "function addPreferencePanelBehavior() {\n $('.pv-update-viewport').bind('change', function(){\n var me = $(this),\n propName = me.attr('data-property-name'),\n value = me.hasClass('checkbox') ? (me.prop('checked') ? 1 : 0) : me.val();\n if(propName === 'ActiveRendererType') {\n viewport.setActiveRenderer(value);\n viewport.invalidateScene();\n } else if(propName === 'Stats') {\n viewport.showStatistics(value === 1);\n }\n });\n }", "wu_nc(){\n return (1.2*this.DL + 1.6*this.CL)*(this.Sj/12)\n }", "getModuleHeight(){return this.module_left_face_dimensions_axes[1];}", "function wireDimensionalFunctions(mode) {\n // Drawing2D/Drawing3D\n if (mode === '3D') {\n drawing = new Drawing3D();\n } else if (mode === '2D') {\n drawing = new Drawing2D();\n } else {\n drawing = new DrawingPre();\n }\n\n // Wire up functions (Use DrawingPre properties names)\n for (var i in DrawingPre.prototype) {\n if (DrawingPre.prototype.hasOwnProperty(i) && i.indexOf(\"$\") < 0) {\n p[i] = drawing[i];\n }\n }\n\n // Run initialization\n drawing.$init();\n }", "function switchMode(){\n\t\ttoggleSwitch(addrSwitch);\n\t\tif (compMode()==\"data\"){\n\t\t\t//$('.led-a').each(function(){ toggleLedOff($(this)); });\n\t\t\tfor(var i=0; i<=7; i++){\n\t\t\t\tif (isOn($('.switch-a'+i))){ toggleLedOn($('.led-d'+i)); }\n\t\t\t\telse{ toggleLedOff($('.led-d'+i)); }\n\t\t\t}\n\t\t}\n\t\telse if (compMode()==\"addr\"){\n\t\t\t//$('.led-d').each(function(){ toggleLedOff($(this)); });\n\t\t\tfor(var i=0; i<=15; i++){\n\t\t\t\tif (isOn($('.switch-a'+i))){ toggleLedOn($('.led-a'+i)); }\n\t\t\t\telse{ toggleLedOff($('.led-a'+i)); }\n\t\t\t}\n\t\t}\n\t\tflashSwitchStatesToTempMemory();\n\t}", "getLocationFactor(){ \n var locationFactor;\n\n if (this.state === \"TX\")\n {\n locationFactor = .02;\n } else{\n locationFactor = 0.04;\n }\n console.log(locationFactor);\n return locationFactor;\n }", "set Mode7point1(value) {}", "Deff(){\n return 5*(this.wt()*this.Sj/(12*12))*Math.pow(this.Lj,4)*Math.pow(12,4)/(384*29000000*this.Ieff())\n }", "function Bat_Max_Chg_Pwr(op, data, rowDef) {\n switch (op) {\n case \"format\":\n return \"fart\";\n\n default:\n };\n}", "function onToggleReduction()\n\t{\n\t\tvar ui = CashShop.ui;\n\n\t\tif (_realSize) {\n\t\t\tui.find('.panel').show();\n\t\t\tui.height(_realSize);\n\t\t\t_realSize = 0;\n\t\t}\n\t\telse {\n\t\t\t_realSize = ui.height();\n\t\t\tui.height(17);\n\t\t\tui.find('.panel').hide();\n\t\t}\n\t}", "function setRules0(){\n rules.axiom = \"F\";\n rules.mainRule = \"F[--F++][F]\";\n params.iterations =1;\n params.theta = 12;\n params.scale = 16;\n}", "function createModeSwitcher() {\n var ms = {\n xtype: 'radiogroup',\n id: 'ms',\n hidden: !GeoNetwork.MapModule,\n items: [{\n name: 'mode',\n ctCls: 'mn-main',\n boxLabel: OpenLayers.i18n('discovery'),\n id: 'discoveryMode',\n width: 110,\n inputValue: 0,\n checked: true\n }, {\n name: 'mode',\n ctCls: 'mn-main',\n width: 140,\n boxLabel: OpenLayers.i18n('visualization'),\n id: 'visualizationMode',\n inputValue: 1\n }],\n listeners: {\n change: function (rg, checked) {\n app.switchMode(checked.getGroupValue(), false);\n /* TODO : update viewport */\n }\n }\n };\n \n return new Ext.form.FormPanel({\n renderTo: 'mode-form',\n border: false,\n layout: 'hbox',\n items: ms\n });\n }", "get mode() {\n if (this._mode) {\n return this._mode;\n }\n\n const unitLessThanDay = DateHelper.compareUnits(this.scheduler.timeAxisViewModel.timeResolution.unit, 'day') < 0,\n formatContainsHourInfo = DateHelper.formatContainsHourInfo(this.scheduler.displayDateFormat);\n return unitLessThanDay && formatContainsHourInfo ? 'hour' : 'day';\n }", "function mode(vals) {\n vals = numbers(vals)\n if (vals.length === 0) return NaN\n var mode = NaN\n var dist = {}\n vals.forEach(function (n) {\n var me = dist[n] || 0\n me++\n dist[n] = me\n })\n var rank = numbers(Object.keys(dist).sort(function (a, b) { return dist[b] - dist[a] }))\n mode = rank[0]\n if (dist[rank[1]] == dist[mode]) {\n // Multiple modes found, abort\n return NaN\n }\n return mode\n}" ]
[ "0.6471912", "0.6092762", "0.5794371", "0.55437225", "0.5479068", "0.5469111", "0.5445043", "0.5440247", "0.54318887", "0.5429381", "0.5426631", "0.5418192", "0.5417382", "0.5391021", "0.53611696", "0.53361905", "0.5319592", "0.52992195", "0.5293107", "0.5285574", "0.5273278", "0.5269485", "0.5257371", "0.5234826", "0.5213716", "0.5209913", "0.5197991", "0.5177423", "0.51205295", "0.5108368", "0.5097151", "0.50826204", "0.5075338", "0.5075233", "0.5073326", "0.5071062", "0.5054054", "0.50450397", "0.5023064", "0.5021507", "0.5016856", "0.50130016", "0.5009111", "0.5002812", "0.50014156", "0.4991928", "0.4989922", "0.49880695", "0.49832645", "0.49808377", "0.49782106", "0.49757567", "0.49716845", "0.4970865", "0.4970865", "0.49692795", "0.49637604", "0.4959907", "0.49583313", "0.49494928", "0.49494928", "0.4944728", "0.493003", "0.49298987", "0.4927826", "0.4921582", "0.49184445", "0.4911926", "0.49116102", "0.4911552", "0.49082845", "0.490209", "0.4899444", "0.48973548", "0.4892833", "0.48919982", "0.4887447", "0.48834693", "0.4883303", "0.48800573", "0.48722658", "0.48637733", "0.48478952", "0.48449197", "0.48407218", "0.48403773", "0.4834424", "0.4832333", "0.4827008", "0.48205888", "0.4819683", "0.48183492", "0.48179984", "0.4814774", "0.48146975", "0.48144162", "0.48123443", "0.48107195", "0.4809703", "0.48058248", "0.48024443" ]
0.0
-1
async call with callback handler function
function getData(data, callback) { setTimeout(() => console.log('JS reading data from DB'), 2000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function someAsyncApiCall(callback) { callback(); }", "function callback(){}", "function callback() {}", "function callback() {}", "function callback() {}", "function callback() {}", "function callback() {}", "async method(){}", "function fetchAsync(callback) {\n setTimeout(() => {\n callback({ hello: \"world\" });\n }, 1000);\n }", "function cb () {\n\t\tcallback();\n\t}", "function doAsyncTask(cb) {\n setTimeout(() => {\n console.log(\"Async Task Calling Callback\");\n cb();\n }, 1000);\n }", "function callbackAsap(cb, err, res) {\n\t asap(function() { cb(err, res); });\n\t}", "function _callback(err, data) { _call(callback, err, data); }", "sendAsync(payload, callback) {\n void this.handleRequest(payload, \n // handleRequest has decided to not handle this, so fall through to the provider\n () => {\n const sendAsync = this._provider.sendAsync.bind(this._provider);\n sendAsync(payload, callback);\n }, \n // handleRequest has called end and will handle this\n (err, data) => {\n err ? callback(err) : callback(null, Object.assign(Object.assign({}, payload), { result: data }));\n });\n }", "function onAsyncCallback(callbackId, result) {\n if (callbackId && callbackMap[callbackId]) {\n var callback = callbackMap[callbackId]\n callback(result)\n delete callbackId[callbackId]\n }\n\n return \"I am web, responding async callback to you\"\n}", "_run(cb) {\n cb();\n }", "_run(cb) {\n cb();\n }", "function callbackAsap(cb, err, res) {\n asap(function () {\n cb(err, res);\n });\n}", "AsyncProcessResponse() {\n\n }", "async function helloCatAsync(callback) {\n console.log(\"2. callback here is the function passed as argument above...\")\n // 3. Start async operation:\n setTimeout(function () {\n console.log(\"3. start async operation...\");\n console.log(\"4. finished async operation, calling the callback, passing the result...\");\n // 4. Finished async operation,\n // call the callback passing the result as argument\n await callback('Nya');\n }, Math.random() * 2000);\n}", "function callbackDriver() {\n cb();\n }", "function demoTask(cb)\n{\n console.log('hello');\n cb();\n}", "function someAsyncApiCall(callback) {\n // callback()\n process.nextTick(callback)\n}", "sendAsync(payload, cb) {\n log.info('ASYNC REQUEST', payload)\n const self = this\n // fixes bug with web3 1.0 where send was being routed to sendAsync\n // with an empty callback\n if (cb === undefined) {\n self.rpcEngine.handle(payload, noop)\n return self._sendSync(payload)\n } else {\n self.rpcEngine.handle(payload, cb)\n }\n }", "async function MyAsyncFn () {}", "function callIt(callback) {\n \tcallback();\n\t}", "async function asyncFunction(arg) {\r\n return arg;\r\n}", "function _handleAsyncCall (cacheContent, cacheName, argsArray) {\n var _callback = argsArray.pop();\n\n if(cacheContent !== undefined) {\n _callback.apply(client, cacheContent);\n } else {\n //inserting our own callback\n argsArray.push(function() {\n var returnValue = [].slice.apply(arguments);\n\n cachingStrategy.set(cacheName, returnValue);\n\n _callback.apply(client, returnValue);\n });\n\n innerFunction.apply(client, argsArray);\n }\n }", "function invokeCallback(cb) {\n // invoke cb\n cb();\n}", "function async_io_normal(cb) {\n\n}", "function doAsyncTask(cb) {\n // cb();\n \n setImmediate(() => {\n console.log(\"Async Task Calling Callback\");\n cb();\n });\n \n // process.nextTick(() => {\n // console.log(\"Async Task Calling Callback\");\n // cb();\n // });\n }", "function myAsyncFunction(callback) {\n // 50ms delay before callback\n setTimeout(function () {\n callback('hello');\n }, 100);\n}", "static async method(){}", "async function test() {}", "function async_api(f, arg, cb, err) {\n err = err || function(e){ console.log(e); };\n var callback = function(a,b,c,d) {\n var e = api.runtime.lastError;\n if (e) {\n err(e);\n }\n else {\n cb(a,b,c,d);\n }\n };\n try {\n var promise = f.call(null, arg, callback);\n if (promise && promise.then) {\n promise.then(callback);\n }\n } catch(e) {\n err(e);\n }\n}", "function runAsyncWrapper(callback) {\n\t/*\n return async (req, res, next) => {\n callback(req, res, next).catch(next);\n }\n */\n\treturn async (req, res, next) => {\n\t\ttry {\n\t\t\tawait callback(req, res, next);\n\t\t} catch (err) {\n\t\t\tconsole.log(err.message);\n\t\t\tres.send({ success: false, message: \"Error with asynchronous registration.\" });\n\t\t\tnext(err);\n\t\t}\n\t};\n}", "function callback(response){\n }", "function callback() {\n\n}", "async function asyncFn(){\n\n return 1;\n}", "async processFile(hndl) {\n }", "async processFile(hndl) {\n }", "function my_callback(json_result) {\n console.log(\"Done\");\n }", "function mycallback() {}", "function getUserFromDatabase(callbackFunction) {\n // does some async processing\n callbackFunction('Brad Stell')\n}", "async onFinished() {}", "function callback(cb){\n\n cb(1);\n}", "function exec_callback(id) { /// Execute callback\n if (!callbacks[id])\n return;\n callbacks[id].call();\n}", "callback (name, handler) {\n return async (next, ctx, msg) => {\n if (msg.name === name) {\n try {\n let response = await handler(ctx, ...msg.args);\n let message = {\n id: msg.id,\n response\n };\n this.socket.emit(`__${this.namespace}_return__`, message);\n } catch (err) {\n if (this.debug)\n return await next(err);\n else\n throw err;\n }\n } \n return await next();\n }\n }", "function asyncCallback(msec, arg, callback) {\n\t\tsetTimeout(callback, msec, null, arg);\n\t}", "function addAsync(x,y, onResult){\n console.log(\"[SP] processing \", x , \" and \", y);\n setTimeout(function(){\n var result = x + y;\n console.log(\"[SP] returning result\");\n if (typeof onResult === 'function')\n onResult(result);\n },3000);\n}", "function async_call(){\n\tvar args = Array.prototype.slice.call(arguments);\n\tif(args.length==1){\n\t\t// Promise\n\t\tvar p = args[0];\n\t\treturn new Promise(function(resolve, reject){\n\t\t\tp.then(function(record) {\n\t\t\t\tresolve({\n\t\t\t\t result : record\n\t\t\t\t});\n\t\t\t}).catch(function(error) {\n\t\t\t\tresolve({\n\t\t\t\t err : error\n\t\t\t\t});\n\t\t\t});\n\t\t});\t\t\n\t}\n\tvar obj = args.shift();\n\t\n\tvar func = obj instanceof Function ? obj : obj[args.shift()];\n\t//console.log('async_call',func);\n\treturn new Promise(function(resolve, reject){\n\t\ttry{\n\t\t\tif(func){\n\t\t\t\targs.push(function (err, replay){\n\t\t\t\t\tif (replay) {\n\t\t\t\t\t resolve({\n\t\t\t\t\t\t result : replay\n\t\t\t\t\t });\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresolve({\n\t\t\t\t\t\t\terr: err\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfunc.apply(obj, args);\n\t\t\t}\n\t\t\telse\n\t\t\t\tresolve({\n\t\t\t\t\terr : 'Not defined '+func\n\t\t\t\t});\n\t\t}catch(e){\n\t\t\tresolve({\n\t\t\t\terr:e\n\t\t\t});\n\t\t}\n\t\t\n\t});\n}", "async function asyncFn() {\n return value;\n }", "async function asyncFn() {\n return value;\n }", "function mockCallBack() {\n}", "callback() {\n if (this.stop) {this.is_running=false;return;}\n this.debuglog(\"Stage:\",this.stage);\n this.debuglog(\"Async:\",this.async_requests);\n this.debuglog(\"ID:\",this.id);\n //Don't check for more processing until the last task called is done\n if (this.async_requests !== 0) {\n if (this.last_logged != this.async_requests) {\n this.alllog(`Requests remaining: ${this.async_requests}`);\n this.last_logged = this.async_requests;\n }\n var me = this;\n setTimeout(()=>{me.callback();},polling_interval);\n this.debuglog(\"Rescheduled\");\n } else {\n this.processList();\n }\n }", "function callback() {\n console.log('yo soy un callback')\n}", "function asyncop(err, cb) {\n setTimeout(() => {\n // myself.next(\"This is result\");\n }, 2000)\n}", "function async(arg, callback) {\n console.log('do something with \\''+arg+'\\', return 1 sec later');\n setTimeout(function() { callback(arg * 2); }, 3000);\n}", "async runTest() {}", "function callback(response, status, jqXHRobject){\n //tasks using the data go here\n var mydata = response;\n console.log(response);\n nextFunction(mydata);\n}", "function _callComplete(){\n if( this.callback ){\n this.callback( this.response );\n }\n }", "function callback(err, r) { console.log(`callback: result=${r}; error=${err}`); }", "execute_async(command, handler) {\n\t\texec(command, (error, stdout, stderr) => {\n\t\t\tif (error) {\n\t\t\t\tconsole.log(`error: ${error.message}`);\n\t\t\t\thandler(null, error)\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (stderr) {\n\t\t\t\tconsole.log(`stderr: ${stderr}`);\n\t\t\t\thandler(stderr, null)\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconsole.log(`stdout: ${stdout}`);\n\t\t\thandler(stdout, null)\n\t\t\treturn ;\n\t\t});\n\t}", "function cb(){\n console.log(\"i will call u back after 2 sec\");\n}", "AsyncCode()\n {\n\n }", "function callback(context, func) {\n var deferred = defer(),\n offset = 1,\n args;\n if (typeof context === 'function') {\n func = context;\n context = null;\n } else if (typeof func === 'function') {\n offset = 2;\n } else {\n throw new Error('Not function provided to execute');\n }\n args = Array.prototype.slice.call(arguments, offset);\n args.push(onComplete);\n func.apply(context, args);\n return deferred.promise;\n\n /**\n * Called once the function execution is complete\n * @param err Error information if the process failed.\n * @param res The response data, on success.\n */\n function onComplete(err, res) {\n if (err) {\n deferred.reject(err);\n } else {\n deferred.resolve(res);\n }\n }\n }", "execute() {\n return __awaiter(this, void 0, void 0, function* () {\n return { value: 'test_response' };\n });\n }", "async function auth_func (cb) {\n // let auth0 = await createAuth0Client(auth)\n\n // if (Array.isArray(cb)) cb.forEach(func => func(auth0))\n\n // else cb(auth0)\n}", "function async(f) {\n throw Error(\"Not implemented.\");\n Packages.net.appjet.ajstdlib.execution.runAsync(appjet.context, f);\n}", "dispatchAsync() {\r\n this._dispatch(true, this, arguments);\r\n }", "dispatchAsync() {\r\n this._dispatchAsPromise(true, this, arguments);\r\n }", "function callback(){\n cb();\n callback = ()=>{};\n }", "sendAsync(options,cb) {\n\t\tconsole.log(\"===>> \",this.title, options.method, options.params, options.params.id, options.params.jsonrpc)\n\t\tconst callback = (err,res)=>{\n\t\t\tconsole.log(\"===\",this.title, options.method, \"err=\", err, \"ret=\" ,res)\n\t\t\tcb(err,res)\n\t\t}\n\n\t\tif ( typeof this[options.method] === 'function' ) {\n\t\t\tconst { id, jsonrpc, params } = options\n\t\t\tthis[options.method].apply(this, params)\n\t\t\t\t.then( result=>callback(null, { id, jsonrpc, result }))\n\t\t\t\t.catch(error =>callback(null, { id, jsonrpc, error }))\n\t\t\treturn\n\t\t}\n\n\t\tthis.provider.sendAsync(options,callback)\n\t}", "function asyncCallbackFunc() {\n\t\tif (wsReq.responseXML != null) {\n //Creating a File Host Object.\n var file = new File(\"async-test-file.xml\");\n\n //Writing the response to a file.\n file.openForAppending();\n file.write(wsReq.responseXML);\n }\n }", "function someSyncApiCall(callback) {\n process.nextTick(callback);\n}", "function asyncHandler(cb){\n return async(req, res, next) => {\n try {\n await cb(req, res, next)\n } catch(error){\n next(error);\n }\n }\n}", "function performer(cb) {\n return cb();\n}", "function web3AsynWrapper(web3Fun) {\n return function (arg) {\n return new Promise((resolve, reject) => {\n web3Fun(arg, (e, data) => e ? reject(e) : resolve(data))\n })\n }\n}", "async function fn(){ //This is the newer way of doing an async function\n return 'hello';\n}", "function asyncHandler(cb) {\n\treturn async (req, res, next) => {\n\t\ttry {\n\t\t\tawait cb(req, res, next);\n\t\t} catch (error) {\n\t\t\tres.status(500).send(error);\n\t\t}\n\t};\n}", "function asyncHandler(cb) {\n\treturn async (req, res, next) => {\n\t\ttry {\n\t\t\tawait cb(req, res, next);\n\t\t} catch (error) {\n\t\t\tres.status(500).send(error);\n\t\t}\n\t};\n}", "function asyncInIE (f) {\n f();\n }", "async function f(){\n return something\n}", "function Async(fun, hook) {\n\tthis.fun = fun;\n\tthis.hook = hook;\n}", "async function asyncWrapperFunction() {\r\n await htmlRouting();\r\n await videoRouting();\r\n const data = await dataProcessing();\r\n const nodes = await nodesGetting();\r\n dynamic(data,nodes);\r\n display(data,nodes);\r\n}", "adoptedCallback() { }", "function asyncHandler(cb) {\n\treturn async (req,res,next) => {\n\t\ttry {\n\t\t\tawait cb(req,res,next);\n\t\t} catch(err) {\n\t\t\tres.render('error', {error: err} );\n\t\t}\n\t}\n}", "async function main() {\n\n getUser(\"test1\");\n\n}", "onSuccess() {}", "function getUserDataAsync(name, email, callback){\n\tsetTimeout(() => {\n\t\tcallback({name:name, email:email}); //sending data into the callback function parameter\n\t\t//console.log(\"End\");\n\t}, 2000);\n}", "function asyncHandler(cb) {\n return async(req, res, next) => {\n try{\n await cb(req, res, next)\n } catch(error){\n return next();\n }\n }\n}", "requestRemoteData(handler) {\n }", "async function func() {\n return 1;\n}", "adoptedCallback() {}", "adoptedCallback() {}", "function doRunAsync(fn, ...args) {\n if (fn.length === args.length + 1) { //expects callback\n let executed,\n executedErr,\n reject = err => {\n executedErr = err;\n },\n resolve = () => {\n };\n \n const callback = err => {\n if (executed)\n return;\n executed = true;\n\n if (err)\n reject(err);\n else\n resolve();\n };\n \n let result;\n switch (args.length) {\n case 0:\n result = fn(callback);\n break;\n \n case 1:\n result = fn(args[0], callback);\n break;\n \n case 2:\n result = fn(args[0], args[1], callback);\n break;\n \n default:\n throw new Error(`missing support for ${args.length} args`);\n }\n \n if (executed) { //callback was executed synchronously\n if (executedErr)\n throw executedErr;\n \n return result;\n \n } else { //callback was not executed synchronously, so it must be asynchronous\n return new Bluebird((...args2) => {\n resolve = args2[0];\n reject = args2[1];\n });\n }\n }\n \n //no callback, so either synchronous or returns a Promise\n switch (args.length) {\n case 0:\n return fn();\n \n case 1:\n return fn(args[0]);\n \n case 2:\n return fn(args[0], args[1]);\n \n default:\n throw new Error(`missing support for ${args.length} args`);\n }\n}", "function testasync(callback){\n\n\tfs.readFile('test4.txt', (err, data) => {\n\t if (err) throw err;\n\t callback(data);\n\t});\n\n}", "function performer(cb) {\n cb();\n }", "call(onResult) {\n onResult();\n }", "do(func) {\n return async && data instanceof Promise\n ? using(data.then(func), async)\n : using(func(data), async)\n }", "function callbackDispatcherAsync(callbackDispatcherSettings, reply, callbackDispatcher) {\n if (callbackDispatcher !== undefined) {\n LongTimer.setTimeout(asyncCallbackDispatcher, 0, callbackDispatcherSettings, reply, callbackDispatcher);\n }\n }" ]
[ "0.74743956", "0.71961886", "0.7181294", "0.7181294", "0.7181294", "0.7181294", "0.7181294", "0.67841697", "0.6782818", "0.67765427", "0.6761118", "0.66922796", "0.6670164", "0.6664339", "0.6658391", "0.6610528", "0.6610528", "0.6590483", "0.6581958", "0.6576084", "0.6560493", "0.6542639", "0.6536777", "0.65079194", "0.64785624", "0.64200413", "0.6418245", "0.64084494", "0.63826835", "0.63759345", "0.6361132", "0.6340469", "0.6313365", "0.6307678", "0.6264805", "0.6261284", "0.624813", "0.6197006", "0.6171305", "0.6161646", "0.6161646", "0.6130893", "0.6118884", "0.6106031", "0.6089691", "0.6081455", "0.60613984", "0.60489655", "0.6036433", "0.60330737", "0.6030929", "0.60234505", "0.60234505", "0.60217273", "0.5983091", "0.59820455", "0.5972285", "0.59614646", "0.59592956", "0.5951179", "0.59440136", "0.5938965", "0.5930272", "0.5929472", "0.59261554", "0.59097975", "0.59064543", "0.58960426", "0.5892013", "0.5891978", "0.5889834", "0.58824897", "0.5872757", "0.5848467", "0.58402026", "0.58338845", "0.5829698", "0.5822082", "0.58183813", "0.5815829", "0.5815829", "0.5806427", "0.580602", "0.5787737", "0.5786366", "0.5783871", "0.5774648", "0.5772207", "0.5767555", "0.5765631", "0.5765607", "0.57563585", "0.5753372", "0.5752612", "0.5752612", "0.5752318", "0.57499886", "0.57429296", "0.57381076", "0.5736021", "0.5727631" ]
0.0
-1
gets index of array based on random draw weighted by value of each element
function getIndex(_array){ var sumOfValues = 0; var num = Math.random(); var index = -1; _array.forEach(function(ele) { sumOfValues += ele.value; }); for(var i = 0; i < _array.length; i++) { if (i === _array.length - 1) { index = i; break; } else if (num < _array[i].value / sumOfValues) { index = i; break; } else { num = num - _array[i].value / sumOfValues; } } return index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRandomValueByWeight(objArray) {\n let rand = Math.floor(Math.random() * getTotalPoints(objArray)) + 1;\n\n // Subtract the points from the random number until we reach 0\n for (let i = 0; i < objArray.length; i++){\n rand -= objArray[i].points;\n \n\n // when we reach 0, what number.value are we currently on? Give points to all onther numbers, set this number.point to 0. \n if (rand <= 0){\n return objArray[i].value;\n }\n }\n}", "function rndIndx(arr) {\n return Math.floor(Math.random() * arr.length);\n}", "function getRandomIndex (arr) {\n return Math.round(Math.random() * (arr.length - 1));\n}", "handleGeneration() {\n const index = randomInt(0, this.weightedArrays[this.state.listIndex].length);\n const value = this.weightedArrays[this.state.listIndex][index];\n this.setState({ number: value });\n }", "function sampleNW(size, buffer, index, weight) {\n const n = index.length;\n if (size >= n) return index;\n\n const w = new Float32Array(n);\n const k = new Uint32Array(n);\n for (let i = 0; i < n; ++i) {\n k[i] = i;\n w[i] = -Math.log(random()) / weight(index[i]);\n }\n\n k.sort((a, b) => w[a] - w[b]);\n for (let i = 0; i < size; ++i) {\n buffer[i] = index[k[i]];\n }\n return buffer;\n}", "function chooseRandomIndex(array) {\n return Math.floor(Math.random() * array.length);\n}", "function sampleRW(size, buffer, index, weight) {\n const n = index.length;\n const w = new Float64Array(n);\n\n let sum = 0;\n for (let i = 0; i < n; ++i) {\n w[i] = (sum += weight(index[i]));\n }\n\n const bisect = bisector(ascending).right;\n for (let i = 0; i < size; ++i) {\n buffer[i] = index[bisect(w, sum * random())];\n }\n return buffer;\n}", "getWeightedVal(weights, num){\n // selected index\n let check = -1;\n\n // current summed weight\n let numSum = 0;\n\n // iterate over array\n for (let i = 0; i < weights.length; i++){\n numSum = weights[i] + numSum;\n if (num - numSum <= 0){\n check = i\n i = weights.length\n }\n }\n return check;\n }", "function randomPickedColorIndex()\r\n{\r\n\treturn Math.floor(Math.random()*arr.length);\r\n}", "function weightedRandomFace(cumArea) {\n var rand = Math.random() * cumArea[cumArea.length - 1];\n for (var i = 0; i < cumArea.length; i++) {\n if (cumArea[i] > rand) {\n return i;\n }\n }\n}", "function getRandomIndex() {\n // 0=>20\n return Math.floor(Math.random() * products.length);\n}", "function getRandomIndex(array){\n return Math.floor(Math.random() * array.length);\n}", "function selectRandomIndex(arr) {\n const index = Math.floor(Math.random() * arr.length);\n return index;\n }", "function randomIndexOf(arr) {\n if(arr.length < 1) return -1;\n return Math.floor(Math.random() * arr.length);\n}", "function getRandomIndex() {\n // 0=>18\n return Math.floor(Math.random() * (products.length));\n}", "function getRandomIndex(array) {\n return Math.floor(Math.random() * array.length);\n}", "function getRandomIndex(array) {\n return Math.floor(Math.random() * array.length);\n}", "function getRandomIndex(array) {\n return Math.floor(Math.random() * array.length);\n}", "function generateRandomIndex() {\n return Math.floor(Math.random() * productsArray.length);\n}", "getRandomWeight(weights){\n let weightSum = 0;\n weights.forEach(weight => weightSum += weight)\n\n return parseInt(random(weightSum)) + 1;\n }", "function choose(array) {\n\t\treturn array[getRandomInt(array.length)];\n\t}", "function getRandomIndex(array) {\n return Math.floor(Math.random() * array.length);\n }", "function getRandomIndex(array) {\n return Math.floor(Math.random() * array.length);\n }", "function generate_value_from_list(list){\n // first, calculate the total value of all weights\n var total_dist = 0;\n var i = 0;\n for (i = 0; i < list.length; i++){\n total_dist += list[i][1];\n }\n \n // generate a random value\n var val = random(0,1) * total_dist;\n var total_running = 0;\n \n // now, find which type based on that random value\n for (i = 0; i < list.length; i++){\n total_running += list[i][1];\n if (val < total_running){\n return list[i][0];\n }\n }\n return list[0][0]\n}", "sample(){\n return this.cells[Math.floor(Math.random()*this.size)] ;\n }", "function random_index( N, bias ) {\n if (bias == undefined) bias = 1\n return Math.min(N-1, Math.floor(Math.pow(Math.random(), 1/bias) * N))\n}", "function randomItem(array) {\n return array[Math.floor(Math.random() * array.length)];\n }", "function randItem(selectedArray) {\n return selectedArray[Math.floor(Math.random()*selectedArray.length)];\n}", "function selectFromWeights(source) {\n var data = source.list;\n var weightList = [];\n var sum = 0;\n var randomNumber = Math.random(1);\n //console.log(\"Random Number = \" + randomNumber);\n\n for (var entry in data) {\n var entryToAdd = [];\n entryToAdd[0] = data[entry][0];\n sum = sum + (data[entry][1] / weightSum(source));\n entryToAdd[1] = sum;\n weightList.push(entryToAdd);\n }\n\n if (source.none !== 0) {\n sum = sum + (source.none / weightSum(source));\n weightList.push([null, sum]);\n }\n\n /* \n DEBUG\n for (var i in weightList) {\n if (weightList[i][0] !== null) {\n console.log(weightList[i][0].name, weightList[i][1]);\n } else {\n console.log(null, weightList[i][1]);\n }\n }\n */\n\n //Note: The weightList indices need to be in ascending order for this to work correctly\n for (var index in weightList) {\n if (randomNumber <= weightList[index][1]) {\n return weightList[index][0];\n }\n }\n\n //The function should return before this point\n return undefined;\n\n }", "function pick(array = []) {\n\t\tvar rand = Math.random();\n\t\treturn array[Math.round(map(rand, 0, 1, 0, array.length - 1))];\n\t} //why haven't I done this already", "function genrateRandomIndex(){\n return Math.floor(Math.random() * Goat.allImages.length); \n // 0.99999999999 * 8 => 7.999999994 floor() => 7\n // 0.99999999999 * 5 => 4.999999 floor => 4\n}", "function weightedRand2(spec) {\n var i, sum=0, r=Math.random();\n for (i in spec) {\n sum += spec[i];\n if (r <= sum) return i;\n }\n}", "function weightedRand2(spec) {\n var i, sum=0, r=Math.random();\n for (i in spec) {\n sum += spec[i];\n if (r <= sum) return i;\n }\n }", "function randomindex() {\n return Math.floor(Math.random() * Busmall.allimg.length);\n}", "getRandomRule(elem) {\n var rules = this.rules[elem];\n\n // Just one, no need to roll dices\n if (rules.length == 1) return rules[0];\n\n var pointer = Math.random() * rules.totalWeight;\n\n for (let i = 0; i < rules.length; i++) {\n if (pointer < rules[i].weight)\n return rules[i];\n pointer -= rules[i].weight;\n }\n }", "function randomItem(arr) {\n return arr[Math.floor(arr.length*Math.random())];\n}", "function randomItem(arr) {\n return arr[Math.floor(Math.random()*arr.length)]\n}", "function randomSelect(array) {\n return array[getRandomInt(0, array.length)];\n}", "function randomElt(arr) {\n return arr[randomInt(arr.length)];\n}", "function pickRandomSubstitution (choiceArray) {\n var randomNonweightedIndex = Math.floor((Math.random() * choiceArray.length));\n return choiceArray[randomNonweightedIndex];\n}", "function sample(array) {\n return array[Math.floor(Math.random() * array.length)];\n}", "function findWeight(scope, array, x) {\t\n\tfor (var i=0; i<=array.length-1; i++) {\t\t\n\t\tvar _scale_y = (Math.floor(Math.random() * 5) + 1)/10;\n\t\tvar _y_val=(array[i][1]/1000)*3+200; /** (Molecular weight/1000)+150 */\n\t\tloadImagesProteins(queue.getResult(\"blue_solid_color\"), \"blue_solid_color\"+i, x, _y_val, \"\", 0, scene2_container, _scale_y, 1);\n\t\tapplyBlurFn(scope, scene2_container.getChildByName(\"blue_solid_color\"+i)); /** Applying blur effect for these loading images */\n\t}\t\n}", "function randomValue(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n }", "pick(){\r\n\t\tlet r = random(1)\r\n\t\tlet index = 0\r\n\t\twhile(r>0){\r\n\t\t\tr -= this.players[index].score\r\n\t\t\tindex ++ \r\n\t\t}\r\n\t\tindex--\r\n\t\treturn index\r\n\t}", "function index (max){\n return Math.floor(Math.random() * max)\n }", "function getWinningColor(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n}", "function getRandomItem(array) {\n return array[Math.floor(Math.random() * array.length)];\n}", "pickTile(arr) {\n\t\tlet ran = this.getRandomIndex(arr);\n\t\treturn arr[ran];\n\t}", "function rndElement(array) {\n return array[rndInt(array.length - 1)];\n}", "function randomValue(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n }", "function randomValue(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n }", "function randomValue(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n }", "function randomValue(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n }", "choice(arr){\n const randomIdx = Math.floor(Math.random() * arr.length)\n return arr[randomIdx]\n}", "getroworspeed(arrayobj) {\n let level_num = arrayobj.length;\n let index = parseInt(Math.random() * 10 / level_num);\n return arrayobj[index]\n }", "function R(array) {\n return array[Math.floor(Math.random() * (array.length))];\n }", "function randElement(arr) {\n\treturn arr[Math.floor(Math.random()*arr.length)];\n}", "function randIndex (N) { // improve, se w3c example\n var a = [];\n Array.from (Array(N), (e, i) => {\n a [i] = {index: i, value: Math.random()};\n });\n a = a.sort ((a,b)=>{return a.value - b.value});\n Array.from (Array (N), (e, i) => {a [i] = a [i].index})\n return a;\n}", "function randomElement(arr) {\n return (arr[Math.floor(Math.random() * arr.length)]);\n}", "function powerElementIndex(arr){\r\n\t\tvar arr2=[]\r\n\t\tfor(i=0;i<arr.length;i++){\r\n\t\t\tvar power=arr[i]**i;\r\n\t\t\tarr2.push(power);\r\n\t\t}\r\n\t\treturn arr2;\r\n\t}", "gen2or4() {\r\n let weighted2At90 = [2, 2, 2, 2, 2, 2, 2, 2, 2, 4];\r\n return weighted2At90[Math.floor(Math.random() * Math.floor(10))];\r\n }", "static getRandom (arr) { return arr[ Math.floor( Math.random() * arr.length ) ] }", "function findRandomElement(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n }", "function getRandomIndex() {\n return Math.floor(Math.random() * allProducts.length);\n}", "function getRandomItem(arr) {\n\treturn arr[Math.floor(Math.random() * arr.length)];\n}", "function randomSelector(array) {\n\n return array[Number.parseInt(Math.random() * array.length)];\n}", "function getRandomBidders(arr, count) {\n return ([...arr].sort(() => 0.5 - Math.random())).slice(0, count)\n}", "function randPick(arr)\n{\n return arr[Math.floor(Math.random() * arr.length)]; \n}", "function choice(array) {\n\td3.shuffle(array);\n\treturn array[Math.floor(Math.random() * array.length)];\n}", "function pick(arr){\r\n randompick=Math.floor(Math.random() * arr.length);\r\n return arr[randompick];\r\n}", "function randomEl(ary) {\n return ary[randomNum(ary.length)];\n}", "getRadomValue(arr) {\n return arr[Math.floor(Math.random()*arr.length)];\n }", "function getRandomElement(ary) {\n var sample = Math.floor(Math.random() * ary.length);\n return ary[sample];\n}", "function sample(array) {\n const index = Math.floor(Math.random() * array.length)\n return array[index]\n}", "function generateRandomIndex(arrayInput) {\n return Math.floor(Math.random() * arrayInput.length);\n }", "getWeightedData() {\n const weightedNumber = Math.floor(Math.random(0, 13) * 13);\n let returnedNumber;\n if(weightedNumber >= 9) {\n returnedNumber = Math.floor(Math.random(10, 13) * 10);\n console.log(weightedNumber)\n } else if(weightedNumber >= 6 && weightedNumber < 9) {\n returnedNumber = Math.floor(Math.random(6,10) * 10);\n } else {\n returnedNumber = Math.floor(Math.random(1, 6) * 10);\n }\n return this.state.possibleSlots[returnedNumber];\n }", "function getRandomElement(ary) {\n var sample = Math.floor(Math.random() * ary.length);\n return ary[sample];\n }", "function chooseRandom(arr) {\n return arr[Math.floor((Math.random() * arr.length))];\n}", "function getRandArrayValue(array) {\n return array[Math.floor(Math.random() * array.length)];\n}", "getWeight(b) {\nreturn this.weight[b];\n}", "getRandomItem(array) {\n // get random index value\n const randomIndex = Math.floor(Math.random() * array.length);\n // get random item and return it\n return array[randomIndex];\n }", "function getRandomIndex() {\n return Math.floor(Math.random() * Product.all.length);\n}", "function Randomize(arr) {\n var IndexArray = Math.floor(Math.random() * arr.length);\n var Elment = arr[IndexArray];\n return Elment;\n}", "function randomElement(arr)\n{\n return arr[Math.floor(Math.random() * arr.length)];\n}", "function pickAnswer(){//pick counrty from array\r\n var index=Math.floor(Math.random()*country.length);\r\n return country[index];\r\n}", "function chooseRandomFrom(array){\n return array[Math.floor(Math.random() * array.length)];\n}", "function randomnum() {\n //Sets var randArray to a random index of 0-3; relates to arrays: lower, upper, number, special\n var randArray = Math.floor((Math.random() * array.length));\n //Sets var random to the index of selected var randArray from 0 - max length of the randArray\n var random = Math.floor((Math.random() * array[randArray].length));\n //returns the value in var randArray with an index of var random\n return array[randArray][random];\n}", "function getRandArrayValue(array) {\r\n\treturn array[Math.floor(Math.random() * array.length)];\r\n}", "function randomElement(array) {\n\t\treturn array[Math.floor(Math.random() * array.length)];\n\t}", "function randArrayElement(array) {\n return array[Math.floor(Math.random() * array.length)];\n}", "function getRandomElement(array) {\n return array[Math.floor(Math.random() * array.length)];\n }", "function randomElement(array) {\n return array[randomInteger(array.length)];\n}", "function randomElement(array) {\n return array[randomInteger(array.length)];\n}", "function getRandomElement(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n}", "function random() {\n var num = Math.random(),\n lastIndex = probabilities.length - 1;\n s = 0;\n\n for (var i = 0; i < lastIndex; ++i) {\n s += probabilities[i];\n if (num < s) {\n return values[i];\n }\n }\n\n return values[lastIndex];\n}", "function randomSelect(array) {\n var randomI = Math.floor(Math.random() * array.length);\n var randomE = array[randomI];\n return randomE;\n}", "function randomElement(array) {\n return array[Math.floor((Math.random() * array.length -1) +1)];\n}", "function findRandomElement(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n}", "function findRandomElement(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n}", "function findRandomElement(arr) {\n return arr[Math.floor(Math.random() * arr.length)];\n}" ]
[ "0.6687079", "0.6569633", "0.645539", "0.64526594", "0.64434093", "0.64245975", "0.638839", "0.6384222", "0.63735205", "0.63533676", "0.633832", "0.6328794", "0.6284582", "0.6269779", "0.6254403", "0.6241771", "0.6241771", "0.6241771", "0.6230832", "0.62125516", "0.6199055", "0.6193463", "0.6193463", "0.6121643", "0.61036074", "0.6089516", "0.60832334", "0.6051648", "0.604384", "0.60416716", "0.60185844", "0.60084826", "0.5992231", "0.5986563", "0.5981233", "0.59622735", "0.5941506", "0.5941297", "0.5937301", "0.59342813", "0.59234786", "0.59185314", "0.59147567", "0.5881542", "0.58774114", "0.58745843", "0.5863304", "0.5861091", "0.5859528", "0.5846399", "0.5846399", "0.5846399", "0.5846399", "0.5833877", "0.58274823", "0.5825303", "0.5821618", "0.5819104", "0.58151793", "0.5811934", "0.5807917", "0.5807048", "0.5805353", "0.58008015", "0.5797705", "0.57950836", "0.5794805", "0.5794465", "0.57902384", "0.5788585", "0.57870096", "0.5781555", "0.57762337", "0.5775962", "0.5770505", "0.57556576", "0.57522905", "0.575044", "0.5740403", "0.57335895", "0.5732079", "0.57275295", "0.5724361", "0.57188094", "0.5717664", "0.57129955", "0.57109696", "0.57016194", "0.57009935", "0.5696788", "0.56915003", "0.5691219", "0.5691219", "0.5690172", "0.568782", "0.5684398", "0.56833875", "0.56827897", "0.56827897", "0.56827897" ]
0.68194574
0
24 Membuat Fungsi buat fungsi dibawah ini
function greetings(){ console.log('Selamat belajar Javascript!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function karinaFaarNotifikation() {\n\n\n\n}", "function trolaicautruoc(){\n\tconsole.log(\"Trở lại câu trước.\");\n\tif (Number(localStorage.caumayEn_SG_17) > 0){\n\t\tlocalStorage.caumayEn_SG_17 = Number(localStorage.caumayEn_SG_17) - 1\n\t}\n\tdoicau(Number(localStorage.caumayEn_SG_17))\n\tlocalStorage.dang = \"cauhoi\"\n\t$(\"#nhapdapan\").val(\"\").removeAttr(\"disabled\").focus()\n\t$(\".thongbao\").removeClass(\"dapandung\")\n\t$(\".thongbao\").html(\"<b>[email protected]</b> - <a href='https://youtube.com/bsquochoai' target='_blank'>https://youtube.com/bsquochoai</a>\")\n}", "function trolaicautruoc(){\n\tconsole.log(\"Trở lại câu trước.\");\n\tif (Number(localStorage.caumayEn_SG_7) > 0){\n\t\tlocalStorage.caumayEn_SG_7 = Number(localStorage.caumayEn_SG_7) - 1\n\t}\n\tdoicau(Number(localStorage.caumayEn_SG_7))\n\tlocalStorage.dang = \"cauhoi\"\n\t$(\"#nhapdapan\").val(\"\").removeAttr(\"disabled\").focus()\n\t$(\".thongbao\").removeClass(\"dapandung\")\n\t$(\".thongbao\").html(\"<b>[email protected]</b> - <a href='https://youtube.com/bsquochoai' target='_blank'>https://youtube.com/bsquochoai</a>\")\n}", "fungsiMakan() {\n return `Blubuk kelas parent di ambil alih blubuk ini`;\n }", "function trolaicautruoc(){\n\tconsole.log(\"Trở lại câu trước.\");\n\tif (Number(localStorage.caumayEn_SG_1) > 0){\n\t\tlocalStorage.caumayEn_SG_1 = Number(localStorage.caumayEn_SG_1) - 1\n\t}\n\tdoicau(Number(localStorage.caumayEn_SG_1))\n\tlocalStorage.dang = \"cauhoi\"\n\t$(\"#nhapdapan\").val(\"\").removeAttr(\"disabled\").focus()\n\t$(\".thongbao\").removeClass(\"dapandung\")\n\t$(\".thongbao\").html(\"<b>[email protected]</b> - <a href='https://youtube.com/bsquochoai' target='_blank'>https://youtube.com/bsquochoai</a>\")\n}", "private public function m246() {}", "function debugInfoShow(event) { // при надажии d показывает статус связи с коммутором\r\n // var intID =0;\r\n var kep = event.which;\r\n //if (event.keyCode == shift && capslock)console.log(\"shiftCapslock\");\r\n //console.info(\"Нажата клавиша\",kep,\"d - дигностика связи\");\r\n if (kep == 68) { // 68 - код клавиши d; 46 -код клавиши del\r\n if (hubData.style.visibility == \"hidden\")\r\n {\r\n hubData.style.visibility = \"visible\";\r\n //включает генерацию POST запросов о состоянии связи с HUB'ом\r\n intID = setInterval(circleStatusRequest, 400);\r\n console.log('setInterval', intID);\r\n\r\n }\r\n else {\r\n hubData.style.visibility = \"hidden\";\r\n //и выключает когда состояние хаба не мониторится на клиенте,\r\n // чтобы не засорять сеть\r\n console.log('crearInterval', intID);\r\n clearInterval(intID);\r\n }\r\n // if (polyData.style.visibility == \"hidden\") polyData.style.visibility = \"visible\"; else polyData.style.visibility = \"hidden\";\r\n };\r\n }", "function iniciar() {\n \n }", "private internal function m248() {}", "function lampenStatusZuTextarea() {\n var C47Byte1 = $('#lampe-C47-1-7').val() + $('#lampe-C47-1-6').val() +\n $('#lampe-C47-1-5').val() + $('#lampe-C47-1-4').val() + $('#lampe-C47-1-3').val() +\n $('#lampe-C47-1-2').val() + $('#lampe-C47-1-1').val() + $('#lampe-C47-1-0').val();\n $('#bcmchanges').text(bin2hex(C47Byte1));\n }", "function _cambioregistro_7767() {\n $_ETNIAPACIW = \"\";\n if (($_EMBALTOPACIW == \"S\") || ($_EMBALTOPACIW == \"N\")) {\n\n setTimeout(_dato4_7767, 100);\n _consultademostrarinf_7767();\n\n } else {\n $_EMBALTOPACIW = \"\";\n setTimeout(_dato4_7767, 100);\n _consultademostrarinf_7767();\n\n }\n}", "function validar_regla_descarga(){\n verifi_time_dowload = true;\n}", "function achatItem3Lvl3() {\n affichagePrixItem3Lvl3.innerHTML = \"OBTENU\";\n boutonItem3Lvl3.disabled = true;\n boutonItem3Lvl3.style.border = \"inherit\";\n clickRessource3 = 6;\n ressource2.innerHTML = ressource2.innerHTML - prix1Item3Lvl3;\n ressource3.innerHTML = ressource3.innerHTML - prix2Item3Lvl3;\n activationItemsShop();\n compteurRessourcePlateau2 = parseInt(ressource2.innerHTML);// mise a jour du compteurRessource\n compteurRessourcePlateau3 = parseInt(ressource3.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem3lvl3Vide\").src= \"assets/img/pioche3Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils3();\n }", "static transient private internal function m58() {}", "function achatItem2Lvl3() {\n affichagePrixItem2Lvl3.innerHTML = \"OBTENU\";\n boutonItem2Lvl3.disabled = true;\n boutonItem2Lvl3.style.border = \"inherit\";\n clickRessource2 = 6;\n ressource2.innerHTML = ressource2.innerHTML - prix1Item2Lvl3;\n ressource3.innerHTML = ressource3.innerHTML - prix2Item2Lvl3;\n activationItemsShop();\n compteurRessourcePlateau2 = parseInt(ressource2.innerHTML);// mise a jour du compteurRessource\n compteurRessourcePlateau3 = parseInt(ressource3.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem2lvl3Vide\").src= \"assets/img/hache3Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils3();\n }", "function simpankeF(pin, nip, nama, valuenow, valuemax, stylewidth)\n {\n var _token=$(\"input[name=_token]\").val();\n $.ajax({\n type:'post',\n url: '/pegawai/tambahpegawai',\n data : {\n ID:pin,\n nama:nama,\n _token:_token\n },\n success:function(response){\n if((response.status!=0)){\n progresstambah(valuenow, valuemax, stylewidth);\n datatambah(nip, nama);\n }\n else\n {\n $('#progresstambah').html(\"error proses\");\n console.log(response);\n }\n },\n });\n }", "function achatItem3Lvl1() {\n affichagePrixItem3Lvl1.innerHTML = \"OBTENU\";\n boutonItem3Lvl1.disabled = true;\n boutonItem3Lvl1.style.border = \"inherit\";\n clickRessource3 = 2;\n ressource1.innerHTML = ressource1.innerHTML - prixItem3Lvl1;\n activationItemsShop();\n compteurRessourcePlateau1 = parseInt(ressource1.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem3lvl1Vide\").src= \"assets/img/pioche1Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils1(); \n }", "function init() {\r\n\tdocument.querySelector( \"#idCoupSum\" ).value = coupSum \t+ \" \" + mLang.get(\"savingqty\");\t\t// 장 적립\r\n\tdocument.querySelector( \"#idPointSum\" ).value = pointSum\t+ \" \" + mLang.get(\"savingpoint\");\t// 점 적립\r\n}", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "function anhadir() {\n k.anhadirDatos();\n}", "function aktifkan(id){\n \tvar th = $('#'+mnu+'TD_'+id).html();\n if(confirm(' mengaktifkan \"'+th+'\"\" ?'))\n $.ajax({\n url:dir,\n type:'post',\n data:'aksi=aktifkan&id_'+mnu+'='+id,\n dataType:'json',\n success:function(dt){\n var cont,clr;\n if(dt.status!='sukses'){\n cont = '..Gagal Mengaktifkan '+th+' ..';\n clr ='red';\n }else{\n // viewTB($('#departemenS').val());\n cont = '..Berhasil Mengaktifkan '+th+' ..';\n clr ='green';\n viewTB();\n }\n notif(cont,clr);\n }\n });\n }", "function achatItem1Lvl3() {\n affichagePrixItem1Lvl3.innerHTML = \"OBTENU\";\n boutonItem1Lvl3.disabled = true;\n boutonItem1Lvl3.style.border = \"inherit\";\n clickRessource1 = 6;\n ressource2.innerHTML = ressource2.innerHTML - prix1Item1Lvl3;\n ressource3.innerHTML = ressource3.innerHTML - prix2Item1Lvl3;\n activationItemsShop();\n compteurRessourcePlateau2 = parseInt(ressource2.innerHTML);// mise a jour du compteurRessource\n compteurRessourcePlateau3 = parseInt(ressource3.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem1lvl3Vide\").src= \"assets/img/lance3Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils3();\n }", "static private internal function m121() {}", "function amelioration(){\n return nbMultiplicateurAmelioAutoclick +9;\n}", "function wechselGeldAus() {\r\n //Update screen: THANKS\r\n displayMessage(displayDanke);\r\n //Tell user amount of change returned\r\n kundenNachricht(strWechselGeld); \r\n //Send change to coin return\r\n nehmenMünzen();\r\n //Reset amount in machine\r\n resetWechselGeld();\r\n \r\n}", "function desbloquearCamposHU(){\n\t\tif(tieneRol(\"cliente\")){//nombre, identificador, prioridad, descripcion y observaciones puede modificar, el boton crear esta activo para el\n\t\t\n\t\t}\n\t\tif(tieneRol(\"programadror\")){// modificar:estimacion de tiempo y unidad dependencia responsables, todos los botones botones \n\t\t\n\t\t}\n\t}", "replacerChangNiveau(){\n this.viderLaFile();\n this.cellule = this.jeu.labyrinthe.cellule(0,0);\n this.direction = 1;\n\t\t\t\tthis.vitesse = 0;\n }", "function activarHerramientaPerfil() {\n console.log(\"Activar herramienta perfil\");\n\n crearYCargarCapaLineaPerfil();\n activarControlDibujo();\n\n\n}", "function verConfiguracion(){console.log(copiaConfiguracionBase);}", "function achatItem3Lvl2() {\n affichagePrixItem3Lvl2.innerHTML = \"OBTENU\";\n boutonItem3Lvl2.disabled = true;\n boutonItem3Lvl2.style.border = \"inherit\";\n clickRessource3 = 4;\n ressource1.innerHTML = ressource1.innerHTML - prix1Item3Lvl2;\n ressource2.innerHTML = ressource2.innerHTML - prix2Item3Lvl2;\n activationItemsShop();\n compteurRessourcePlateau1 = parseInt(ressource1.innerHTML);// mise a jour du compteurRessource\n compteurRessourcePlateau2 = parseInt(ressource2.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem3lvl2Vide\").src= \"assets/img/pioche2Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils2();\n }", "function panggilSimpanRecord(){\n\n }", "function senGuiData()\n{\n\tvar datasend={\n\t\tevent:\"guidata\"\n\t}\n\tqueryDataGet(\"php/api_process.php\",datasend,function(res){\n\t\t//nhan du lieu tu server tra ve\n\t\talert_info(res);\n\t});\n\tqueryDataPost(\"php/api_process_post.php\",datasend,function(res){\n\t\t//nhan du lieu tu server tra ve\n\t\talert_info(\"Post:\"+res);\n\t});\n}", "function wa(){}", "function UciUserPref() {\nthis.defautStoredValue = \"0000000380350270001003000000006500000\";\n // settings value\n this.storedValue = false;\n // list of available settings by profils\n this.settings = {current: \"\", profiles: {}};\n this.predefinedSettings = {\n '0':this.defautStoredValue, // no profile\n '1':\"0100000380350270001100000000006571400\",\n // 1 = Arial + font-size = 125% + Texte jaune sur fond bleu + supprimer les images de fond\n '2':\"0000010380350270111110000000006500400\",\n // 2 = Arial + + font-size = 120% + espace entre les lignes Moyen + texte à gauche + numbered list + activation du masque moyen ( ?)\n '3':\"0000000380350271001103000001006500000\"\n // 3 = start browse on hover + apparence des liens (souligné + couleur standard)\n }\n\n this.finish = false;\n\n\n /**\n * Collection of mask used to get value of necessary bits\n * for each encoded variable\n * @private\n */\n this.couleurs={\"00\": \"#FFFFFF\", \"01\": \"#330000\", \"02\": \"#331900\", \"03\": \"#333300\", \"04\": \"#193300\", \"05\": \"#003300\", \"06\": \"#003319\", \"07\": \"#003333\", \"08\": \"#001933\", \"09\": \"#000033\", \"10\": \"#190033\", \"11\": \"#330033\", \"12\": \"#330019\", \"13\": \"#000000\", \"14\": \"#990000\", \"15\": \"#994C00\", \"16\": \"#999900\", \"17\": \"#4C9900\", \"18\": \"#009900\", \"19\": \"#00994C\", \"20\": \"#009999\", \"21\": \"#004C99\", \"22\": \"#000099\", \"23\": \"#4C0099\", \"24\": \"#990099\", \"25\": \"#99004C\", \"26\": \"#404040\", \"27\": \"#FF0000\", \"28\": \"#FF8000\", \"29\": \"#FFFF00\", \"30\": \"#80FF00\", \"31\": \"#00FF00\", \"32\": \"#00FF80\", \"33\": \"#00FFFF\", \"34\": \"#0080FF\", \"35\": \"#0000FF\", \"36\": \"#7F00FF\", \"37\": \"#FF00FF\", \"38\": \"#FF007F\", \"39\": \"#808080\", \"40\": \"#FF6666\", \"41\": \"#FFB266\", \"42\": \"#FFFF66\", \"43\": \"#B2FF66\", \"44\": \"#66FF66\", \"45\": \"#66FFB2\", \"46\": \"#66FFFF\", \"47\": \"#66B2FF\", \"48\": \"#6666FF\", \"49\": \"#B266FF\", \"50\": \"#FF66FF\", \"51\": \"#FF66B2\", \"52\": \"#C0C0C0\", \"53\": \"#FFCCCC\", \"54\": \"#FFE5CC\", \"55\": \"#FFFFCC\", \"56\": \"#E5FFCC\", \"57\": \"#CCFFCC\", \"58\": \"#CCFFE5\", \"59\": \"#CCFFFF\", \"60\": \"#CCE5FF\", \"61\": \"#CCE5FF\", \"62\": \"#E5CCFF\", \"63\": \"#FFCCFF\", \"64\": \"#FFCCE5\", \"65\": \"#000000\"};\n\n /**\n * Convertion matrix used to get associated string value corresponding\n * to encoded bit. Each key and value are prefixed by param name in\n * order to ensure bijection as it or when matrix is reverted.\n * @private\n */\n this.convertMatrixv3 = {\n \"a11ySiteWebEnabled-0\": \"a11ySiteWebEnabled-on\",\n \"a11ySiteWebEnabled-1\": \"a11ySiteWebEnabled-off\",\n \"a11yToolbarEnable-0\": \"a11yToolbarEnable-off\",\n \"a11yToolbarEnable-1\": \"a11yToolbarEnable-on\",\n \"a11yLanguage-0\": \"a11yLanguage-keepit\",\n \"a11yLanguage-1\": \"a11yLanguage-FR\",\n \"a11yLanguage-2\": \"a11yLanguage-EN\",\n \"a11yLanguage-3\": \"a11yLanguage-ES\",\n \"a11yLanguage-4\": \"a11yLanguage-PL\",\n \"a11yJumpToContent-0\": \"a11yJumpToContent-false\",\n \"a11yJumpToContent-1\": \"a11yJumpToContent-true\",\n \"a11yLinearize-0\": \"a11yLinearize-false\",\n \"a11yLinearize-1\": \"a11yLinearize-true\",\n //Gestion de la taille de police\n //25, 33, 50, 67, 75, 80, 90,\n // keepit, 110, 125, 150, 175, 200\n \"a11yBigger-0\": \"a11yBigger-keepit\",\n \"a11yBigger-1\": \"a11yBigger-150\",\n \"a11yBigger-2\": \"a11yBigger-200\",\n \"a11yBigger-3\": \"a11yBigger-110\",\n \"a11yBigger-4\": \"a11yBigger-125\",\n \"a11yBigger-5\": \"a11yBigger-175\",\n \"a11yVisualSettings-0\": \"a11yVisualSettings-false\",\n \"a11yVisualSettings-1\": \"a11yVisualSettings-true\",\n \"a11yVisualPredefinedSettings-0\": \"a11yVisualPredefinedSettings-personnal\",\n \"a11yVisualPredefinedSettings-1\": \"a11yVisualPredefinedSettings-whiteonblack\",\n \"a11yVisualPredefinedSettings-2\": \"a11yVisualPredefinedSettings-blackonwhite\",\n \"a11yVisualPredefinedSettings-3\": \"a11yVisualPredefinedSettings-blueonyellow\",\n \"a11yVisualPredefinedSettings-4\": \"a11yVisualPredefinedSettings-yellowonblue\",\n \"a11yVisualPredefinedSettings-5\": \"a11yVisualPredefinedSettings-greenonblack\",\n \"a11yVisualPredefinedSettings-6\": \"a11yVisualPredefinedSettings-blackongreen\",\n \"a11yVisualPredefinedSettings-7\": \"a11yVisualPredefinedSettings-blueonwhite\",\n \"a11yVisualPredefinedSettings-8\": \"a11yVisualPredefinedSettings-whiteonblue\",\n \"a11yMotorModeRemote-0\": \"a11yMotorModeRemote-false\",\n \"a11yMotorModeRemote-1\": \"a11yMotorModeRemote-true\",\n \"a11yMotorModeLooping-0\": \"a11yMotorModeLooping-false\",\n \"a11yMotorModeLooping-1\": \"a11yMotorModeLooping-true\",\n \"a11yDelayBeforeClick-0\": \"a11yDelayBeforeClick-1\",\n \"a11yDelayBeforeClick-1\": \"a11yDelayBeforeClick-2\",\n \"a11yDelayBeforeClick-2\": \"a11yDelayBeforeClick-3\",\n \"a11yDelayBeforeClick-3\": \"a11yDelayBeforeClick-6\",\n \"a11yMenuPositionning-0\": \"a11yMenuPositionning-center\",\n \"a11yMenuPositionning-1\": \"a11yMenuPositionning-nextto\",\n \"a11yDelayBeforeLoop-0\": \"a11yDelayBeforeLoop-1\",\n \"a11yDelayBeforeLoop-1\": \"a11yDelayBeforeLoop-2\",\n \"a11yDelayBeforeLoop-2\": \"a11yDelayBeforeLoop-3\",\n \"a11yDelayBeforeLoop-3\": \"a11yDelayBeforeLoop-6\",\n \"a11yQuickMode-0\": \"a11yQuickMode-2\",\n \"a11yQuickMode-1\": \"a11yQuickMode-5\",\n \"a11yQuickMode-2\": \"a11yQuickMode-10\",\n \"a11yDyslexyFont-0\": \"a11yDyslexyFont-arial\",\n \"a11yDyslexyFont-1\": \"a11yDyslexyFont-opendyslexic\",\n \"a11yDyslexyFont-3\": \"a11yDyslexyFont-keepit\",\n \"a11yDyslexyFont-4\": \"a11yDyslexyFont-opensans\",\n \"a11yDyslexyFont-5\": \"a11yDyslexyFont-accessibledfa\",\n \"a11yLineSpacement-0\": \"a11yLineSpacement-keepit\",\n \"a11yLineSpacement-1\": \"a11yLineSpacement-2\",\n \"a11yLineSpacement-2\": \"a11yLineSpacement-3\",\n //gestion de l'espacement des mot\n \"a11ySpacement-0\": \"a11ySpacement-keepit\",\n \"a11ySpacement-1\": \"a11ySpacement-0.5\",\n \"a11ySpacement-2\": \"a11ySpacement-1\",\n \"a11yModifCasse-0\": \"a11yModifCasse-capitalize\",\n \"a11yModifCasse-1\": \"a11yModifCasse-keepit\",\n \"a11yModifCasse-2\": \"a11yModifCasse-lowercase\",\n \"a11yModifCasse-3\": \"a11yModifCasse-uppercase\",\n //gestion de l'apparence ; Alignement a gauche\n \"a11yLeftText-0\": \"a11yLeftText-false\",\n \"a11yLeftText-1\": \"a11yLeftText-left\",\n //gestion de l'apparence ; Numeroatation en mode list\n \"a11yNumerotationList-0\": \"a11yNumerotationList-false\",\n \"a11yNumerotationList-1\": \"a11yNumerotationList-decimal\",\n //gestion des liens\n \"a11yNavLienEnabled-0\": \"a11yNavLienEnabled-false\",\n \"a11yNavLienEnabled-1\": \"a11yNavLienEnabled-true\",\n //gestion liens selectionnées\n \"a11yNavLienSelStyle-0\": \"a11yNavLienSelStyle-keepit\",\n \"a11yNavLienSelStyle-1\": \"a11yNavLienSelStyle-border\",\n \"a11yNavLienSelStyle-2\": \"a11yNavLienSelStyle-underline\",\n \"a11yNavLienSelStyle-3\": \"a11yNavLienSelStyle-bold\",\n //gestion liens Non visités\n \"a11yNavLienNonVisStyle-0\": \"a11yNavLienNonVisStyle-keepit\",\n \"a11yNavLienNonVisStyle-1\": \"a11yNavLienNonVisStyle-border\",\n \"a11yNavLienNonVisStyle-2\": \"a11yNavLienNonVisStyle-underline\",\n \"a11yNavLienNonVisStyle-3\": \"a11yNavLienNonVisStyle-bold\",\n //gestion liens Visités\n \"a11yNavLienVisStyle-0\": \"a11yNavLienVisStyle-keepit\",\n \"a11yNavLienVisStyle-1\": \"a11yNavLienVisStyle-border\",\n \"a11yNavLienVisStyle-2\": \"a11yNavLienVisStyle-underline\",\n \"a11yNavLienVisStyle-3\": \"a11yNavLienVisStyle-bold\",\n //gestion mask\n \"a11yMaskEnabled-0\": \"a11yMaskEnabled-false\",\n \"a11yMaskEnabled-1\": \"a11yMaskEnabled-true\",\n // mask option, reading mask, hruler or vruler\n \"a11yMaskOption-0\" : \"a11yMaskOption-mask\",\n \"a11yMaskOption-1\" : \"a11yMaskOption-hruler\",\n \"a11yMaskOption-2\" : \"a11yMaskOption-vruler\",\n\n \"a11yMaskOpacity-0\" : \"a11yMaskOpacity-.5\",\n \"a11yMaskOpacity-1\" : \"a11yMaskOpacity-.25\",\n \"a11yMaskOpacity-2\" : \"a11yMaskOpacity-.9\",\n\n \"a11ySupEffetTransp-0\": \"a11ySupEffetTransp-false\",\n \"a11ySupEffetTransp-1\": \"a11ySupEffetTransp-1\",\n \"a11ySupImageFont-0\" : \"a11ySupImageFont-false\",\n \"a11ySupImageFont-1\" : \"a11ySupImageFont-true\",\n \"a11ySupImageFirstPlan-0\" : \"a11ySupImageFirstPlan-false\",\n \"a11ySupImageFirstPlan-1\" : \"a11ySupImageFirstPlan-true\",\n /**\n * Reverse the matrix. Keys becomes values and values becomes keys.*/\n reverse: function () {\n var temp = {}, prop;\n for (prop in this) {\n if (prop !== \"reverse\") {\n temp[this[prop]] = prop;\n }\n }\n return temp;\n }\n };\n\n /**\n * Create the var for each color\n */\n this.create_color = function(paramname){\n for(var key in this.couleurs){\n this.convertMatrixv3[paramname + key]=paramname+this.couleurs[key];\n }\n };\n\n this.create_color('a11yFontColor-');\n this.create_color('a11yBackgroundColor-');\n this.create_color('a11yNavLienSelColor-');\n this.create_color('a11yNavLienNonVisColor-');\n this.create_color('a11yNavLienVisColor-');\n\n this.maskMatrixv3 = {\n // Mask Name | Dec Value\n \"a11ySiteWebEnabled\": [39,1],\n \"a11yToolbarEnable\": [38,1],\n \"a11yLanguage\": [37,1],\n \"a11yJumpToContent\": [36,1],\n \"a11yLinearize\": [35,1],\n \"a11yBigger\": [34,1],\n \"a11yVisualSettings\": [33,1],\n \"a11yVisualPredefinedSettings\": [32,1],\n \"a11yFontColor\": [30,2],\n \"a11yBackgroundColor\": [28,2],\n \"a11yMotorModeRemote\": [27,1],\n \"a11yMotorModeLooping\": [26,1],\n \"a11yDelayBeforeClick\": [25,1],\n \"a11yMenuPositionning\": [24,1],\n \"a11yDelayBeforeLoop\": [23,1],\n \"a11yQuickMode\": [22,1],\n \"a11yDyslexyFont\": [21,1],\n \"a11yLineSpacement\": [20,1],\n \"a11ySpacement\": [19,1],\n \"a11yModifCasse\": [18,1],\n \"a11yLeftText\": [17,1],\n \"a11yNumerotationList\": [16,1],\n \"a11yNavLienEnabled\": [15,1],\n \"a11yNavLienSelColor\": [13,2],\n \"a11yNavLienSelStyle\": [12,1],\n \"a11yNavLienNonVisColor\": [10,2],\n \"a11yNavLienNonVisStyle\": [9,1],\n \"a11yNavLienVisColor\": [7,2],\n \"a11yNavLienVisStyle\": [6,1],\n \"a11yMaskEnabled\": [5,1],\n \"a11yMaskOption\" : [4,1],\n \"a11yMaskOpacity\" : [3,1],\n \"a11ySupEffetTransp\": [2,1],\n \"a11ySupImageFont\" : [1,1],\n \"a11ySupImageFirstPlan\" : [0,1]\n };\n\n /**\n * User preference stackv3. Used to save user preference.\n * Initialized with default value.\n * @private\n */\n this.stackv3 = {\n \"a11yToolbarEnable\": \"off\",\n \"a11yLanguage\": \"keepit\",\n \"a11yJumpToContent\": \"false\",\n \"a11yLinearize\": \"false\",\n \"a11yBigger\": \"keepit\",\n \"a11yVisualSettings\": \"false\",\n \"a11yVisualPredefinedSettings\": \"personnal\",\n \"a11yFontColor\": \"#000000\",\n \"a11yBackgroundColor\": \"#FFFFFF\",\n \"a11yMotorModeRemote\": \"false\",\n \"a11yMotorModeLooping\": \"false\",\n \"a11yDelayBeforeClick\": \"1\",\n \"a11yMenuPositionning\": \"center\",\n \"a11yDelayBeforeLoop\": \"1\",\n \"a11yQuickMode\": \"2\",\n \"a11yDyslexyFont\": \"keepit\",\n \"a11yLineSpacement\" : \"keepit\",\n \"a11ySpacement\": \"keepit\",\n \"a11yModifCasse\" : \"keepit\",\n \"a11yLeftText\": \"false\",\n \"a11yNumerotationList\": \"false\",\n \"a11yNavLienEnabled\": \"false\",\n \"a11yNavLienSelColor\": \"#FF0000\",\n \"a11yNavLienSelStyle\": \"keepit\",\n \"a11yNavLienNonVisColor\": \"#0000FF\",\n \"a11yNavLienNonVisStyle\": \"keepit\",\n \"a11yNavLienVisColor\": \"#FF007F\",\n \"a11yNavLienVisStyle\": \"keepit\",\n \"a11yMaskEnabled\": \"false\",\n \"a11yMaskOption\" : \"mask\",\n \"a11yMaskOpacity\" : \".5\",\n \"a11ySupEffetTransp\": \"false\",\n \"a11ySupImageFont\" : \"false\",\n \"a11ySupImageFirstPlan\" : \"false\",\n \"a11ySiteWebEnabled\" : \"on\"\n };\n\n /**\n * Decode an encoded pref using mask matrix and convert matrix.\n * The encoded pref is a representation of a number in hexadecimal.\n * each mask of the matrix is applied in order to get the corresponding bit\n * of a pref. This value is used as an index with the convert matrix to get\n * the corresponding textual value.\n * @param {String} pref representing a number in\n * hexadecimal representation\n */\n /*jshint validthis:true */\n this.decode = function (/* String*/ pref) {\n var prefName;\n // if decode without params, load the latest saved value for curent profile\n if(typeof pref === 'undefined') {\n this.settings.current = '0';\n pref = this.predefinedSettings[this.settings.current];\n }\n // uniquement si le nombre de caractères du cookie est correct!\n if(pref.length===37)\n {\n for (prefName in this.maskMatrixv3) {\n if(prefName !== \"a11ySiteWebEnabled\" && prefName !== \"a11yToolbarEnable\" && prefName !== \"a11yLanguage\") {\n this.stackv3[prefName]= this.convertMatrixv3[prefName + \"-\" +pref.substr(this.maskMatrixv3[prefName][0],this.maskMatrixv3[prefName][1])].replace(/.*-/, \"\");\n }\n }\n }\n };\n\n /**\n * Encode the user preference stackv3 in a hexadecimal number.\n * Each user preference is used as an index in the convert matrix reversed.\n * the corresponding value is then merged.\n * @return {String} representation of a number in hexadecimal representation\n */\n this.encode = function () {\n var pref = \"\";\n var tempMatrix = this.convertMatrixv3.reverse();\n var prefName;\n for (prefName in this.maskMatrixv3) {\n if (prefName !== \"\") {\n // si la pref existe dans le stack sinon 0\n if(prefName in this.stackv3) {\n pref = tempMatrix[prefName + \"-\" + this.stackv3[prefName]].replace(/.*-/, \"\") + pref;\n }\n // on garantie la longeur de la chaine\n else {\n pref = \"0\"+pref;\n }\n }\n }\n pref = pref.substring(0,pref.length-3);\n // put toolbar enable and lang at the begening\n // pref = tempMatrix[\"a11yToolbarEnable\" + \"-\" + this.stackv3[\"a11yToolbarEnable\"]].replace(/.*-/, \"\") + \"|\" + tempMatrix[\"a11yLanguage\" + \"-\" + this.stackv3[\"a11yLanguage\"]].replace(/.*-/, \"\") + \"|\" + pref;\n return pref;\n };\n\n /**\n * Create the string separate by | for cookie or localstorage save\n * format: currentprofilname|profilname1|valueprofil1|profilname2|valueprofil2 ....\n *\n */\n this.encodeUsageConfort= function () {\n var tempMatrix = this.convertMatrixv3.reverse();\n var encodedValue = tempMatrix[\"a11yToolbarEnable\" + \"-\" + this.stackv3[\"a11yToolbarEnable\"]].replace(/.*-/, \"\") + \"|\" + tempMatrix[\"a11yLanguage\" + \"-\" + this.stackv3[\"a11yLanguage\"]].replace(/.*-/, \"\") + \"|\" + this.settings.current;\n var profil;\n for (profil in this.settings.profiles) {\n encodedValue += \"|\"+profil+\"|\"+this.settings.profiles[profil];\n }\n return encodedValue;\n };\n\n /**\n * Create the string separate by | for cookie or localstorage save\n * format: websitedisable|currentprofilname|profilname1|valueprofil1|profilname2|valueprofil2 ....\n *\n */\n this.decodeUsageConfort= function (storageValue) {\n var settings = storageValue.split('|');\n // need to explode the values\n // at least 4 entry :\n // first bit set site enable or disable second set toolbar enable, third one set default lang, 4th one set to no profile\n // first param set site enable or disable\n var disablevalue = settings.shift();\n if(!onOffEnabled) disablevalue = 0;\n this.stackv3[\"a11ySiteWebEnabled\"] = this.convertMatrixv3[\"a11ySiteWebEnabled\" + \"-\" +disablevalue].replace(/.*-/, \"\");\n var a11yToolbarEnable = settings.shift();\n this.stackv3[\"a11yToolbarEnable\"] = this.convertMatrixv3[\"a11yToolbarEnable\" + \"-\" +a11yToolbarEnable].replace(/.*-/, \"\");\n var a11yLanguage = settings.shift();\n this.stackv3[\"a11yLanguage\"] = this.convertMatrixv3[\"a11yLanguage\" + \"-\" +a11yLanguage].replace(/.*-/, \"\");\n\n\n this.settings.current = settings.shift();\n // parse all profiles if they are\n var profil = null;\n while(profil = settings.shift()) {\n this.settings.profiles[profil] = settings.shift();\n }\n this.readUserPref();\n };\n\n /**\n * Return the value of a given user preference name\n * @param {String} param representing the user preference name\n * @return {String} value : the corresponding user preference value. Could be a string or a number.\n */\n this.get = function (/*String*/param) {\n return (this.stackv3[param] !== null ? this.stackv3[param] : \"\");\n };\n\n /**\n * Save the value of a given user preference name into the stackv3\n * @param {String} prefName the user preference name\n * @param {String} prefValue the corresponding user preference value.\n */\n /*jshint validthis:true */\n this.set = function (/* String */prefName, /* String */prefValue) {\n this.stackv3[prefName] = prefValue;\n };\n\n /**\n * Concatenate user preference into a string with the format : param1=val1&param2=val2....paramX=valX.\n * @return {String} stackv3String : string representing user preference concatenation\n */\n this.stackv3ToString = function () {\n var stackv3String = \"\";\n var prop;\n for (prop in stackv3) {\n if (prop !== \"\") {\n stackv3String += prop + \"=\" + this.stackv3[prop] + \"&\";\n }\n }\n return stackv3String.replace(/&$/, \"\");\n };\n /*\n * @constructor init\n */\n this.setStoredValue = function (storedValue,profilName) {\n if(profilName) {\n this.settings.current = profilName;\n }\n if(this.settings.current.length >= 3) {\n if(storedValue) {\n this.settings.profiles[this.settings.current] = storedValue;\n } else { // if no storedvalue is provided set the default value\n this.settings.profiles[this.settings.current] = this.defautStoredValue;\n }\n } else { // if we are on a predefined profile, set to no profile\n this.settings.current = 0;\n }\n this.readUserPref();\n };\n\n /**\n * Read browser cookies and save each user preference into the user\n * preference stackv3.\n */\n this.readUserPref = function () {\n if(this.settings.current.length <=1) {\n this.decode(this.predefinedSettings[this.settings.current]);\n } else {\n this.decode(this.settings.profiles[this.settings.current]);\n }\n this.finish = true;\n };\n\n\n /**\n * get the current saved pref ass the numerical string to be compared to current setting in the stack\n */\n this.getCurrentPref = function () {\n if(this.settings.current.length <=1) {\n return this.predefinedSettings[this.settings.current];\n } else {\n return this.settings.profiles[this.settings.current];\n }\n };\n\n /**\n * Wait for callback completed and user preference stackv3 updated\n * @return {Boolean} true if user preference is loaded, false otherwise.\n */\n this.isUserPrefLoaded = function () {\n return this.finish;\n };\n}", "function achatItem2Lvl2() {\n affichagePrixItem2Lvl2.innerHTML = \"OBTENU\";\n boutonItem2Lvl2.disabled = true;\n boutonItem2Lvl2.style.border = \"inherit\";\n clickRessource2 = 4;\n ressource1.innerHTML = ressource1.innerHTML - prix1Item2Lvl2;\n ressource2.innerHTML = ressource2.innerHTML - prix2Item2Lvl2;\n activationItemsShop();\n compteurRessourcePlateau1 = parseInt(ressource1.innerHTML);// mise a jour du compteurRessource\n compteurRessourcePlateau2 = parseInt(ressource2.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem2lvl2Vide\").src= \"assets/img/hache2Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils2();\n }", "function main()\r\n\t{\r\n\t\tif ($(\"font[color*='#007700']\").length>0)\r\n\t\t{\r\n\t\t\tvar captchars = $(\"img[src*='cap_']\");\r\n\t\t\tvar capText='';\r\n\t\t\t$(\"img[src*='slow_1']\").each(function(){capText+= GetCapchar(captchars[GetImgNumber(this.src)-1].src);});\r\n\t\t\t$(\"[onpaste*='return false;']\").attr('onpaste','return true;')\r\n\t\t\t$(\"input[name*='kod']\").attr('value','KAV2009-377333');\r\n\t\t\t$(\"input[name*='captcha']\").attr('value',capText);\r\n\t\t\t$(\"input[name*='zatwierdz']\").attr('value','Register');\r\n\t\t\t$(\"textarea[name*='adres']\").attr('value','Wydział do Foresight\\r\\nul. Wspólna 1/2\\r\\n00-519 Warszawa 52');\r\n\t\t\t$($(\"b\")[2]).html('Code');\r\n\t\t\t$($(\"b\")[3]).html('Your Name');\r\n\t\t\t$($(\"b\")[4]).html('<span>Your Email address</span><font color=\"red\">*</font>');\r\n\t\t\t$($(\"small\")[0]).html('This e-mail will be used to send the activation code');\r\n\t\t\t$($(\"b\")[5]).html('Your address');\r\n\t\t\t$($(\"tr\")[23]).hide();\r\n\t\t\t$($(\"tr\")[24]).hide();\r\n\t\t\t$($(\"tr\")[25]).hide();\r\n\t\t\t$($(\"tr\")[26]).hide();\r\n\t\t}\r\n\t}", "function InicializarHotZone()\n{\n faseActual = 0;\n cargando = true;\n idCharCarga = 0;\n idCharDescarga = 0;\n charsPorFase = Math.round(largoTexto / 4);\n charsUltimaFase = largoTexto - (charsPorFase * 3);\n tLoop = (dificultad.fases[faseActual].carga * 1000) / charsPorFase;\n}", "function connexionPanierControl(){\n\tconsole.log('tata');\n\tcliendGood();\n\tmdpControl();\n\temailControl();\n}", "function teriak() {\n // Tulis Code mulai di sini\n document.getElementById(\"jawaban1\").innerHTML = \"Aku Teriak\"\n // Tampilkan dengan cara document.getElementById(\"jawaban1\").innerHTML seperti di CONTOH.\n }", "function mojaFunkcija(){\n console.log('Zdarvo svete!');\n}", "function set001_updateUI() {\n\n} // .end of set001_updateUI", "function setZh_TW() {\n\n\tMessages.hostName = \"主機名稱\";\n\tMessages.storeId = \"商店 ID\";\n\tMessages.storeName = \"商店名稱\";\n\tMessages.catalogId = \"型錄 ID\";\n\tMessages.previewToken = \"預覽記號\";\n\tMessages.langId = \"語言\";\n\n\tMessages.appDisplayName = \"WC 混合式\";\n\tMessages.appDescription = \"WC 混合式商店\";\n\tMessages.appVersionTitle = \"應用程式版本:\";\n\tMessages.loading = \"載入中...\";\n\tMessages.appDisabled = \"已停用這個版本的應用程式。應用程式將立即結束。\";\n\tMessages.appDisabledTitle = \"應用程式已停用\";\n\tMessages.getNewVersion = \"取得新版本\";\n\tMessages.exitApp = \"您要結束應用程式嗎?\";\n\tMessages.requiredFieldsMsg1 = \"標示為 (\";\n\tMessages.requiredFieldsMsg2 = \") 的所有欄位都是必要欄位。\";\n\n\tMessages.signIn = \"登入\";\n\tMessages.signOut = \"登出\";\n\tMessages.myAccount = \"我的帳戶\";\n\tMessages.scan = \"掃描\";\n\tMessages.shoppingList = \"欲購商品清單\";\n\tMessages.privacyPolicy = \"隱私權條款\";\n\tMessages.productCompare = \"產品比較\";\n\tMessages.contactUs = \"聯絡我們\";\n\tMessages.settings = \"設定\";\n\tMessages.languageCurrency = \"語言/貨幣\";\n\tMessages.featured = \"精選\";\n\tMessages.departments = \"部門\";\n\tMessages.storeLocator = \"商店定位器\";\n\tMessages.stores = \"商店\";\n\tMessages.cart = \"購物車\";\n\tMessages.more = \"更多\";\n\tMessages.devSettings = \"開發設定\";\n\tMessages.slideUp = \"向上滑動,以存取設定\";\n\n\tMessages.OK = \"確定\";\n\tMessages.save = \"儲存\";\n\tMessages.reset = \"重設\";\n\tMessages.confirm = \"確認\";\n\tMessages.cancel = \"取消\";\n\tMessages.exit = \"結束\";\n\tMessages.optional = \"選用\";\n\n\t//Error messages\n\tMessages.ERR_EC = \"錯誤\";\n\tMessages.ERR_EC_GENERIC = \"將停止應用程式。發生非預期的異常狀況:\";\n\tMessages.ERR_EC_FORM_INCOMPLETE = \"請檢查是否完成所有欄位。\";\n\tMessages.ERR_EC_STORE_CONNECTION = \"連接至商店時發生錯誤。請稍後再試。\";\n\tMessages.ERR_EC_SERVER_NOT_FOUND = \"找不到遠端伺服器。\";\n\tMessages.ERR_EC_EXIT_QUESTION = \"檢查網際網路連線可用。您要結束應用程式嗎?\";\n\tMessages.ERR_EC_NO_INTERNET_ACCESS = \"沒有可用的網際網路存取。\";\n\tMessages.ERR_EC_CHECK_INTERNET_CONNECTION = \"請檢查裝置的網際網路連線。\";\n\tMessages.ERR_EC_UNEXPECTED_EXCEPTION = \"將停止應用程式。發生非預期的異常狀況:\";\n\tMessages.ERR_EC_HOSTNAME_MISSING = \"「主機名稱」不正確,或遺漏了值。\";\n\tMessages.ERR_EC_STOREID = \"「商店 ID」不正確,或遺漏了值。\";\n\tMessages.ERR_EC_CATALOGID = \"「型錄 ID」不正確,或遺漏了值。\";\n\tMessages.ERR_EC_BARCODE_SCAN = \"在條碼掃描的期間發生錯誤。請重試掃描。\";\n\tMessages.ERR_EC_BARCODE_SCAN_LAUNCH = \"啟動條碼掃描器時發生錯誤。\";\n\tMessages.ERR_EC_CONTACTS_LAUNCH = \"存取您的聯絡人時發生錯誤。\";\n\tMessages.ERR_EC_MAPS_LAUNCH = \"啟動對映時發生錯誤。\";\n\n\tSupportedLanguages.deviceDefault = \"裝置預設值\";\n\tSupportedLanguages.en_US = \"美式英文\";\n\tSupportedLanguages.fr_FR = \"法文\";\n\tSupportedLanguages.de_DE = \"德文\";\n\tSupportedLanguages.it_IT = \"義大利文\";\n\tSupportedLanguages.es_ES = \"西班牙文\";\n\tSupportedLanguages.pt_BR = \"巴西葡萄牙文\";\n\tSupportedLanguages.zh_CN = \"簡體中文\";\n\tSupportedLanguages.zh_TW = \"繁體中文\";\n\tSupportedLanguages.ko_KR = \"韓文\";\n\tSupportedLanguages.ja_JP = \"日式\";\n\tSupportedLanguages.iw_IL = \"希伯來文\";\n\tSupportedLanguages.tr_TR = \"土耳其文\";\n\tSupportedLanguages.ru_RU = \"俄文\";\n\tSupportedLanguages.ro_RO = \"羅馬尼亞文\";\n\tSupportedLanguages.pl_PL = \"波蘭文\";\n\tSupportedLanguages.ar_EG = \"阿拉伯文\";\n\n\tDefaultSupportedLanguages.en_US = \"United States English\";\n\tDefaultSupportedLanguages.fr_FR = \"Français\";\n\tDefaultSupportedLanguages.de_DE = \"Deutsch\";\n\tDefaultSupportedLanguages.it_IT = \"Italiano\";\n\tDefaultSupportedLanguages.es_ES = \"Español\";\n\tDefaultSupportedLanguages.pt_BR = \"Português do Brasil\";\n\tDefaultSupportedLanguages.zh_CN = \"简体中文\";\n\tDefaultSupportedLanguages.zh_TW = \"繁體中文\";\n\tDefaultSupportedLanguages.ko_KR = \"한국어\";\n\tDefaultSupportedLanguages.ja_JP = \"日本語\";\n\tDefaultSupportedLanguages.iw_IL = \"עברית\";\n\tDefaultSupportedLanguages.tr_TR = \"Türkçe\";\n\tDefaultSupportedLanguages.ru_RU = \"русский\";\n\tDefaultSupportedLanguages.ro_RO = \"Română\";\n\tDefaultSupportedLanguages.pl_PL = \"polski\";\n\tDefaultSupportedLanguages.ar_EG = \"عربية\";\n}", "function aktifkan(id){\n var th = $('#'+mnu+'TD_'+id).html();\n var dep = $('#'+mnu2+'S').val();\n //alert('d '+dep);\n //return false;\n if(confirm(' mengaktifkan \"'+th+'\"\" ?'))\n $.ajax({\n url:dir,\n type:'post',\n data:'aksi=aktifkan&replid='+id+'&departemen='+dep,\n dataType:'json',\n success:function(dt){\n var cont,clr;\n if(dt.status!='sukses'){\n cont = '..Gagal Mengaktifkan '+th+' ..';\n clr ='red';\n }else{\n viewTB($('#departemenS').val());\n cont = '..Berhasil Mengaktifkan '+th+' ..';\n clr ='green';\n }notif(cont,clr);\n }\n });\n }", "function imgInfo(){\n\t\t\t\tvar jumImg = $('.imgTR:visible','#imgTB').length; //hitung jumlah gambar bkeg bukeg dalam form \n\t\t\t\tif(jumImg==0){// ksong\n\t\t\t\t\t$('#imgInfo').fadeIn(function(){\n\t\t\t\t\t\t$('#imgInfo').html('minimal unggah 1 bukti kegiatan(scan/gambar)'); //notif eror =>harus browse gambar \n\t\t\t\t\t});\n\n\t\t\t\t\t//efek untuk menghilangkan notif secara perlahan dalam interval 3000 milisecond = 3 detik\n\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t$('#imgInfo').fadeOut(1000,function(){\n\t\t\t\t\t\t\t$('#imgInfo').html(''); \n\t\t\t\t\t\t});\n\t\t\t\t\t},3000);\n\t\t\t\t}else{ // ada gambar\n\t\t\t\t\t$('#imgInfo').html('');\n\t\t\t\t\t//tipe submit (add or edit )\n\t\t\t\t\tvar iddtk = $('#idformTB').val();\n\t\t\t\t\tif(iddtk>0){ //edit data\n\t\t\t\t\t\tif(jumDel==0 && jumAdd==0){ \t\t\t// 0 0\n\t\t\t\t\t\t\tuploadFiles('edit','','',iddtk); //panggil fungsi uploadFiles\n\t\t\t\t\t\t\tconsole.log('edit : 0 0');\n\t\t\t\t\t\t}else if (jumAdd>0 && jumDel==0){ \t\t// + 0\n\t\t\t\t\t\t\tuploadFiles('edit',filesAdd,'',iddtk);\n\t\t\t\t\t\t\tconsole.log('edit : + 0');\n\t\t\t\t\t\t}else if(jumAdd==0 && jumDel>0){ \t\t// 0 -\n\t\t\t\t\t\t\tuploadFiles('edit','',filesDel,iddtk);\n\t\t\t\t\t\t\tconsole.log('edit : 0 -');\n\t\t\t\t\t\t}else{ \t\t\t\t\t\t\t\t\t// + -\n\t\t\t\t\t\t\tuploadFiles('edit',filesAdd,filesDel,iddtk);\n\t\t\t\t\t\t\tconsole.log('edit : + -');\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{ // add data\n\t\t\t\t\t\tuploadFiles('add',filesAdd,'','');\n\t\t\t\t\t\tconsole.log('add : + 0');\t\t\t\t// + 0\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "function buatKalimat(nama, umur, alamat, hobi) {\n // Code kamu mulai dari sini\n var kalimat = \"Nama saya \" + nama + \", Umur \" + umur + \" Bertempat tinggal di \" + alamat + \", hobi saya \" + hobi;\n // Tampilkan dengan cara document.getElementById(\"jawaban3\").innerHTML seperti di CONTOH.\n document.getElementById(\"jawaban3\").innerHTML = kalimat;\n }", "function bitacoraPT(iFilaPT){\n try{\n if (sAccesoBitacoraPE == \"X\") return;\n var sCodproy=$I(\"txtCodProy\").value;\n if (sCodproy==\"\") return;\n if (iFilaPT == -1) return;\n\n LLamarBitacoraPT(iFilaPT);\n }\n catch (e) {\n mostrarErrorAplicacion(\"Error al mostrar Bitácora de PT desde el PE\", e.message);\n }\n}", "function cekganti(x){\n\t$('#pass1').toggle(1000);\n\t$('#pass2').toggle(1000);\n\t$('#pass3').toggle(1000);\n\t$('#passLTB').val('');\n\t$('#passBTB1').val('');\n\t$('#passBTB2').val('');\n\n\t//fungsi ketika event keyUp pada textbox password1\n\t$('#passBTB1').keyup(function(){\n\t\tcekpass();\n\t});\n\t//fungsi ketika event keyUp pada textbox password2\n\t$('#passBTB2').keyup(function(){\n\t\tcekpass();\n\t});\n}", "function aktifkan(id){\n \tvar th = $('#'+mnu+'TD_'+id).html();\n \tvar dep = $('#'+mnu2+'S').val();\n \t//alert('d '+dep);\n \t//return false;\n if(confirm(' mengaktifkan \"'+th+'\"\" ?'))\n $.ajax({\n url:dir,\n type:'post',\n data:'aksi=aktifkan&replid='+id+'&departemen='+dep,\n dataType:'json',\n success:function(dt){\n var cont,clr;\n if(dt.status!='sukses'){\n cont = '..Gagal Mengaktifkan '+th+' ..';\n clr ='red';\n }else{\n viewTB($('#departemenS').val());\n cont = '..Berhasil Mengaktifkan '+th+' ..';\n clr ='green';\n }notif(cont,clr);\n }\n });\n }", "function aktifkan(id){\n \tvar th = $('#'+mnu+'TD_'+id).html();\n \tvar dep = $('#'+mnu2+'S').val();\n \t//alert('d '+dep);\n \t//return false;\n if(confirm(' mengaktifkan \"'+th+'\"\" ?'))\n $.ajax({\n url:dir,\n type:'post',\n data:'aksi=aktifkan&replid='+id+'&departemen='+dep,\n dataType:'json',\n success:function(dt){\n var cont,clr;\n if(dt.status!='sukses'){\n cont = '..Gagal Mengaktifkan '+th+' ..';\n clr ='red';\n }else{\n viewTB($('#departemenS').val());\n cont = '..Berhasil Mengaktifkan '+th+' ..';\n clr ='green';\n }notif(cont,clr);\n }\n });\n }", "function saludo111(){\n console.log(\"Hola buen dia 1\");\n console.log(\"Hola buen dia 2\");\n console.log(\"Hola buen dia 3\");\n console.log(\"Hola buen dia 4\");\n console.log(\"Hola buen dia 5\");\n console.log(\"Hola buen dia 6\");\n console.log(\"Hola buen dia 7\");\n }", "function funcionPorDefinicion(){\n //Body\n }", "function achatItem2Lvl1() {\n affichagePrixItem2Lvl1.innerHTML = \"OBTENU\";\n boutonItem2Lvl1.disabled = true;\n boutonItem2Lvl1.style.border = \"inherit\";\n clickRessource2 = 2;\n ressource1.innerHTML = ressource1.innerHTML - prixItem2Lvl1;\n activationItemsShop();\n compteurRessourcePlateau1 = parseInt(ressource1.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem2lvl1Vide\").src= \"assets/img/hache1Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils1();\n }", "function comprobarBD(){\n comprobarExistenciaTablaAscensorItemsCabina();\n}", "function C007_LunchBreak_Natalie_VibeNatalie() {\r\n C007_LunchBreak_Natalie_VibratorNatalie++;\r\n C007_LunchBreak_Natalie_Knee = false;\r\n CurrentTime = CurrentTime + 60000;\r\n if (C007_LunchBreak_Natalie_VibratorNatalie <= 1) OveridenIntroText = GetText(\"Remote1\");\r\n if (C007_LunchBreak_Natalie_VibratorNatalie == 2) OveridenIntroText = GetText(\"Remote2\");\r\n if (C007_LunchBreak_Natalie_VibratorNatalie >= 3) {\r\n OveridenIntroText = GetText(\"Remote3\");\r\n // OveridenIntroImage = \"NataliePlayerRemoteDrop.jpg\";\r\n C007_LunchBreak_Natalie_VibratorPlayer++;\r\n C007_LunchBreak_Natalie_Remote = false;\r\n C007_LunchBreak_Natalie_NoRemote = true;\r\n C007_LunchBreak_Natalie_Intensify = true;\r\n } \r\n if (CurrentTime >= 12.66667 * 60 * 60 * 1000) {\r\n OveridenIntroText = GetText(\"JennaReturns\");\r\n C007_LunchBreak_Natalie_CurrentStage = 690;\r\n }\r\n C007_LunchBreak_Natalie_CalcParams();\r\n}", "function main(){\n var form = find_password_form();\n\n // Connexion, on rempli si possible, sinon on intercepte\n if(form[\"type\"] == \"login\"){\n login_id = {\"id\": \"Mathieu\", \"password\": \"p4ssw0rd\"}; //Aucun moyen de les récupérer...\n auto_login(form, login_id);\n // On écoute l'envoie du formulaire pour enregistrer id et mdp si changement\n ecouter(form);\n }\n // Inscription, on prérempli\n if(form[\"type\"] == \"signup\"){\n auto_signup(form);\n ecouter(form);\n // On écoute l'envoie du formulaire pour enregistrer id et mdp\n }\n}", "static tester(session,id ,context,mensaje,callback){\n\n if(context[\"Asms\"] == \"si\"){\n \t// enviarSMS(context,session);\n \tcontext[\"Asms\"]=\"no\";\n context[\"smsCodigo\"]=\"An20\";\n return callback(mensaje,context);\n }\n\n\n if(context[\"Action-Fullfillment\"]==\"si\"){\n context[\"Action-Fullfillment\"]=\"no\";\n setTimeout(function(){\n \t changePassword(context,session);\n },1000)\n \n return callback(mensaje,context);\n }\n\n return callback(mensaje,context);\n\n}", "function miFuncion (){}", "function dwa() {\n \n //wypisanie do konsoli zawartości zmienna1, zdeklarowanej w funkcji nadrzednej, wartośc zostanie pobrana poprzez hoisting\n console.log(zmienna1);\n \n //Deklaracja i przypisanie w funkcji wewnetrznej\n var zmienna2 = 3;\n }", "function initPersonalArea(){\n\ttop.cleanPersonalArea(CAFEAPP.CAFE_ENCRYPT_LOGIN_USERID);\n getAllPersonalCount(); //메일, 쪽지 갯수 불러오기\n loadMyArticleFeedback(); //내글 반응 불러오기\n}", "function limpiar(){\r\n $('#txtextension1').removeAttr('disabled');\r\n $('#txtextension1').focus();\r\n $('#forms').hide();\r\n $('#tipopuerto').val('-1');\r\n $('#regletas').val('-1');\r\n $('#padre').val('-1');\r\n $('#txtpuerto').val('');\r\n $('#txtconEditar').val('');\r\n $('h5').html('');\r\n }", "function setData() {\n\n\n\t// in case the user leave the username/password field empty,\n\t// means that the user dont want to change it\n\tif($(\"#un\").val() != \"\")\n\t\tDataAccess.setData(\"username\",$(\"#un\").val());\n\n\tif( $(\"#pw\").val() != \"\")\n\t\tDataAccess.setData(\"password\",window.btoa($(\"#pw\").val()));\n\n DataAccess.setData('anonymous',($(\"#anonymous\").is(':checked')));\n\n\t//make a new object and send it to the database\n\tDataAccess.setData({\n\n\t\t\t\t\t\tmz:document.getElementById('mz').checked ,\n\t\t\t\t\t\tmo:document.getElementById('mo').checked,\n\t\t\t\t\t//\tre:document.getElementById('re').checked,\n\t\t\t\t\t\tenable:true\n\t\t\t\t\t\t},null,function () {\n notification(\"המאגר עודכן\");\n\n });\n\n\tchrome.runtime.sendMessage({changeIcon:true});\n}", "function cargarFondo()\n{\n fondo.cargaOK = true;\n dibujar();\n}", "function livestock_manure(){\n a_FAO_i='livestock_manure';\n initializing_change();\n change();\n}", "function IndicadorRangoEdad () {}", "function cargarFondo()\n{\n console.log(\"Cargo Fondo\");\n fondo.cargaOK= true; \n dibujar();\n}", "function MUA_Save(mode) {\n console.log(\"=== MUA_Save === \");\n //console.log(\"mode: \", mode);\n // mode = 'validate' when called by el_MUA_btn_submit\n // mode = \"save\" after response OK\n\n // NOT IN USE:\n // send schoolbase, username and email to server after 1500 ms\n // abort if within that period a new value is entered.\n // checked by comparing the timestamp\n // 'args' is either 'save' or a time_stamp number\n // variable 'time_stamp' gets new value 'now' whenever a 'keyup' event occurs\n // MUA_Save has a time-out of 1500 ms\n // parameter 'args' (init_time_stamp) contains the value of time_stamp at the time this 'keyup' event occurred\n // when time_stamp = init_time_stamp, it means that there are no new keyup events within the time-out period\n\n// --- skip if one of the fields is blank\n let skip = !(el_MUA_username.value && el_MUA_last_name.value && el_MUA_email.value)\n if(!skip){\n // mod_MUA_dict. modes are: 'addnew', 'update'\n\n // in ModConfirmSave upload_dict.mode can get value \"delete\" or \"send_activation_email\"\n // in this function value of 'mode' is only 'save'\n\n const upload_mode = (mode === \"validate\") ? \"validate\" :\n //(mode === \"send_activation_email\" ) ? \"send_activation_email\" :\n (mode === \"save\") ? \"create\" :\n (mod_MUA_dict.mode === \"update\") ? \"update\" : null;\n\n //console.log(\"mode: \", mode);\n //console.log(\"mod_MUA_dict.mode\", mod_MUA_dict.mode);\n //console.log(\"................upload_mode\", upload_mode);\n\n // --- create mod_dict\n let upload_dict = {}\n if (upload_mode === \"send_activation_email\" ){\n upload_dict = { user_pk: data_dict.id,\n schoolbase_pk: data_dict.schoolbase_pk,\n mode: upload_mode,\n mapid: \"user_\" + data_dict.id,\n username: {value: data_dict.username}\n };\n } else if (upload_mode === \"update\" ){\n upload_dict = { schoolbase_pk: mod_MUA_dict.user_schoolbase_pk,\n mode: upload_mode,\n username: el_MUA_username.value,\n last_name: el_MUA_last_name.value,\n email: el_MUA_email.value\n };\n } else if ([\"validate\", \"create\"].includes(upload_mode)){\n upload_dict = { user_pk: mod_MUA_dict.user_pk,\n schoolbase_pk: mod_MUA_dict.user_schoolbase_pk,\n mode: upload_mode,\n username: el_MUA_username.value,\n last_name: el_MUA_last_name.value,\n email: el_MUA_email.value\n };\n }\n console.log(\"upload_dict: \", upload_dict);\n\n // must lose focus, otherwise green / red border won't show\n //el_input.blur();\n // show loader, hide msg_info\n el_MUA_loader.classList.remove(cls_hide);\n el_MUA_footer_container.classList.add(cls_hide);\n // remove modified text\n el_MUA_msg_modified.innerText = null;\n\n const parameters = {\"upload\": JSON.stringify (upload_dict)}\n let response = \"\";\n $.ajax({\n type: \"POST\",\n url: urls.url_user_upload,\n data: parameters,\n dataType:'json',\n success: function (response) {\n console.log( \"response\");\n console.log( response);\n\n // hide loader\n el_MUA_loader.classList.add(cls_hide);\n\n MUA_SetMsgElements(response);\n\n if (\"updated_user_rows\" in response) {\n // must get tblName from selectedBtn, to get 'usergroup' instead of 'user'\n const tblName = get_tblName_from_selectedBtn();\n RefreshDataRows(tblName, response.updated_user_rows, user_dicts, true) // true = update\n };\n\n if (\"validation_ok\" in response){\n if(response.validation_ok){\n MUA_CreateOrUpdate();\n };\n };\n\n }, // success: function (response) {\n error: function (xhr, msg) {\n console.log(msg + '\\n' + xhr.responseText);\n } // error: function (xhr, msg) {\n }); // $.ajax({\n }\n }", "static transient private public function m56() {}", "function f_TB_KH_LoadKhaiBaoDuAn_XemChiTiet(config, para, lst) {\n try {\n var p = getAllIdMod();\n var data = lst.data[0].kq0[0];\n \n\n $(\"#txtMaduanHead_nhapxct\").html(\"Thông tin chi tiết dự án \" + data.projectname);\n setValToTxt('cb_banmien_ct_da', data.banmien);\n setValToTxt('txtmaduan_ct_da', data.maduan);\n setValToTxt('txttenduan_ct_da', data.projectname);\n setValToTxt('txtthoigian_ct_da', data.thoigiangh);\n setValToTxt('txtghichu_ct_da', data.ghichu);\n \n $(\"#myTableData_nhapdact\").empty();\n $.each(lst.data[1].kq1, function (key, val) {\n var row = \"\";\n row += \"<tr><td>\"\n + val.dienluc + \"</td><td>\"\n + val.typedevicename + \"</td><td>\"\n + val.tenvattu + \"</td><td>\"\n + val.countdivice + \"</td><td>\"\n + val.ghichu + \"</td>\"\n \"</tr>\";\n $(\"#myTableData_nhapdact\").append(row);\n });\n\n \n } catch (e) {\n console.log(e);\n }\n}", "function fl_outToChanuka_btn ()\n\t\t{\n\t\t\tif(freez == \"false\"){\n\t\t\tconsole.log(\"hit\")\n\t\t\tthis.rimon.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=01\n\t\t this.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.bible_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}}", "function get_info_canbo(filephp,frm)\r\n{\r\n\tif(frm.cbo_macanbosua.value=='Chọn mã số cán bộ')\r\n\t{\r\n\t\tfrm.cbo_tendonvisua.value=-1;\r\n\t\tfrm.txt_tencanbosua.value='';\r\n\t\tfrm.cbo_gioitinhsua.value=-1;\r\n\t\tfrm.cbo_ngaysinhsua.value=-1;\r\n\t\tfrm.cbo_thangsinhsua.value=-1;\r\n\t\tfrm.cbo_namsinhsua.value=-1;\r\n\t\tfrm.txt_emailsua.value='';\r\n\t\tfrm.txt_diachisua.value='';\r\n\t\tfrm.txt_sodienthoaisua.value='';\r\n\t\tfrm.txt_matkhausua.value='';\r\n\t}\r\n\telse\r\n\t{\r\n\tmacanbo=frm.cbo_macanbosua.value;\r\n\tmadonvi=frm.cbo_tendonvisua;\r\n\ttencanbo=frm.txt_tencanbosua;\r\n\tgioitinh=frm.cbo_gioitinhsua;\r\n\tngaysinh=frm.cbo_ngaysinhsua;\r\n\tthangsinh=frm.cbo_thangsinhsua;\r\n\tnamsinh=frm.cbo_namsinhsua;\r\n\temail=frm.txt_emailsua;\r\n\tdiachi=frm.txt_diachisua;\r\n\tsodienthoai=frm.txt_sodienthoaisua;\r\n\tmatkhau=frm.txt_matkhausua;\r\n\t\r\n\thttp=GetXmlHttpObject();\r\n\tvar params = \"macanbo=\"+macanbo;\r\n\t//mo ket noi bang phuong thuc post\r\n\thttp.open(\"POST\", filephp, false);\r\n\t//gui thong tin header cua phuong thuc post , cac thong so nay la bat buoc\r\n\thttp.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\r\n\t//http.setRequestHeader(\"Content-length\", params.length);\r\n\t//http.setRequestHeader(\"Connection\", \"close\");\r\n\t//ham xu li du lieu tra ve cua ajax send thanh cong\r\n\thttp.onreadystatechange = function() {\r\n\t\tif(http.readyState == 4 && http.status == 200) \r\n\t\t{\t\t\t\t\r\n\t\t\t\tvar x=http.responseXML.getElementsByTagName('row');\t\t\t\t\t\t\t\t\r\n\t\t\t\tmadonvi.value=x[0].getElementsByTagName('column')[0].firstChild.nodeValue;\r\n\t\t\t\ttencanbo.value=x[0].getElementsByTagName('column')[1].firstChild.nodeValue;\r\n\t\t\t\tgioitinh.value=x[0].getElementsByTagName('column')[2].firstChild.nodeValue;\r\n\t\t\t\tngaysinh.value=x[0].getElementsByTagName('column')[3].firstChild.nodeValue;\r\n\t\t\t\tthangsinh.value=x[0].getElementsByTagName('column')[4].firstChild.nodeValue;\r\n\t\t\t\tnamsinh.value=x[0].getElementsByTagName('column')[5].firstChild.nodeValue;\r\n\t\t\t\temail.value=x[0].getElementsByTagName('column')[6].firstChild.nodeValue;\r\n\t\t\t\tdiachi.value=x[0].getElementsByTagName('column')[7].firstChild.nodeValue;\r\n\t\t\t\tsodienthoai.value=x[0].getElementsByTagName('column')[8].firstChild.nodeValue;\r\n\t\t\t\tmatkhau.value=x[0].getElementsByTagName('column')[9].firstChild.nodeValue;\r\n\t\t}\r\n\t}\r\n\thttp.send(params);\r\n\t}\r\n}", "function ClickGastarFeitico() {\n AtualizaGeral();\n}", "function achatItem1Lvl2() {\n affichagePrixItem1Lvl2.innerHTML = \"OBTENU\";\n boutonItem1Lvl2.disabled = true;\n boutonItem1Lvl2.style.border = \"inherit\";\n clickRessource1 = 4;\n ressource1.innerHTML = ressource1.innerHTML - prix1Item1Lvl2;\n ressource2.innerHTML = ressource2.innerHTML - prix2Item1Lvl2;\n activationItemsShop();\n compteurRessourcePlateau1 = parseInt(ressource1.innerHTML);// mise a jour du compteurRessource\n compteurRessourcePlateau2 = parseInt(ressource2.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem1lvl2Vide\").src= \"assets/img/lance2Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils2();\n }", "function Minuta_Deposito_Banco(){\n \tdb_smart_sales.metodos.Obtener_Banco_Deposito(function (item) {\n \t\tif( item.rows.length == 0){\n \t\t\talert(\"La ruta no tiene configurado banco de deposito\");\n \t\t}\n \t\telse{\n \t\t\tvar banco_txt= item.rows.item(0).Banco.trim()\n\t\t\t\t\t\tvar cadena_espaciada = banco_txt.split(\"\")\n\t\t\t\t\t\tvar url=\"../img/\"+ banco_txt +\".png\"\n\t\t\t\t\t\tif (banco_txt.toUpperCase() ==\"BAC\"){url= \"../img/\"+ banco_txt +\".gif\"}\n\n\t\t\t\t\t\tvar html_imagen=\"<img src='\"+ url +\"' class=img_banco width='89' height='34'> Minuta \"+ banco_txt\n\t\t\t\t\t\t$('#banco_deposito').attr(\"onclick\",\"imprimeminuta('\"+ cadena_espaciada.join(\" \") +\"')\")\n\n\n\t\t\t\t\t\t//imprimeResumenPago\n\t\t\t\t\t\t$('#banco_deposito').html(html_imagen)\n \t\t}\n\t\t\t\t}, function(error){\n\t\t\t\t\tvar conf= confirm(\"Ocurrio un error al obtener el Banco de Desposito. Desea volver a consultar el banco?\");\n\t\t\t\t\tif(conf){ Minuta_Deposito_Banco() }\n\t\t\t\t})\n }", "function continuaEscriure ()\r\n{\r\n this.borra ();\r\n this.actual=\"\";\r\n this.validate=0;\r\n}", "function cetakPesan(nama, bahasa='id')\n{\n var pesan = 'Selamat datang, ' + nama;\n if(bahasa == 'en')\n {\n pesan = 'Welcome, ' + nama;\n }\n else if(bahasa=='id'){\n console.log(pesan);\n }\n console.log('Mohon maaf bahasa yang diminta belum terdaftar');\n}", "function showInit() {\n $pass.addClass('hidden');\n $pass.removeClass('error');\n $passInput.off('change keyup blur');\n $name.addClass('hidden');\n $nameInput.off('keyup input paste blur');\n $sms.addClass('hidden');\n $newCode.addClass('hidden');\n $enter.addClass('hidden');\n $next.addClass('hidden');\n $send.addClass('hidden');\n $confirm.addClass('hidden');\n $newPass.addClass('hidden');\n $phone.removeClass('error');\n }", "function btManager (){}", "function fl_outToBeiza ()\n\t\t{\n\t\t\tif (freez=='false'){\n\t\t console.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.levivot.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.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.chanuka_btn.alpha=1\n\t\t this.tu_btn.alpha=1\n\t\t this.purim_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.bible_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\t\t }\n\t\t\n\t\t}", "function _0x49e8(){const _0x2abf1f=['128458zaqRph','15LuvETp','32FoIOpf','By\\x20:\\x20Prassz','307917pLgBPR','Zerobot~Prassz','127514DLEruK','2301110zFGGkR','11iUrhyl','5IBSTLg','sendMessage','2099160NwtLDQ','672988HpVyoZ','1059558OLmAKI'];_0x49e8=function(){return _0x2abf1f;};return _0x49e8();}", "function InitValues_Framework_L0(){\n // You must make some text.\n \n}", "function InitValues_Framework_L0(){\n // You must make some text.\n \n}", "function nowa_plansza0(){\r\n opisPlanszy =\r\n\t\t\"000000000\" +\r\n\t\t\"000000000\" +\r\n\t\t\"000000000\" +\r\n\t\t\"000000000\" +\r\n\t\t\"000000000\" +\r\n\t\t\"000000000\" +\r\n\t\t\"000000000\" +\r\n\t\t\"000000000\" +\r\n\t\t\"000000000\";\r\n $(\"#plansza\").html(Plansza(opisPlanszy));\r\n rysujKrawedzie();\r\n przelacz_inputy(true);\r\n document.getElementById(\"stop_timer\").disabled = true;\r\n\tdocument.getElementById(\"cofnij\").disabled = true;\r\n\tdocument.getElementById(\"ponow\").disabled = true;\r\n\tdocument.getElementById(\"zapisz\").disabled = true;\r\n\tdocument.getElementById(\"hint\").disabled = true;\r\n\tdocument.getElementById(\"sprawdz\").disabled = true;\r\n}", "static private protected internal function m118() {}", "function ucapSalam() {\n return \"Selamat Siang\"; //return nilai harus membuat satu variable utk meyimpan nilai yang akan di return\n}", "function setIndiceEdite(Nojoueur) {\r\n\tvar arguments = \"nojoueur=\" + Nojoueur;\r\n\trequest(\"POST\", \"admin.php?methode=INDICE_edite\", false, setData, arguments ); /*pas d'AJAX asynchrone, car manipulation sur champ*/\r\n\t/*champ date*/\r\n\t$(function() {\r\n\t\t$( \"#Datedebut\" ).datepicker({ numberOfMonths: 3, showButtonPanel: true});\r\n\t\t$( \"#Datefin\" ).datepicker({ numberOfMonths: 3, showButtonPanel: true});\r\n\t});\r\n\t/*champ heure*/\r\n\t$('#Heuredebut').timepicker({hourText: 'Heures', minuteText: 'Minutes', amPmText: ['Matin', 'Aprem'], timeSeparator: ':'});\r\n\t$('#Heurefin').timepicker({hourText: 'Heures', minuteText: 'Minutes', amPmText: ['Matin', 'Aprem'], timeSeparator: ':'});\r\n\t/*champ commentaire avec editeur HTML*/\r\n\t$(document).ready(function() {\r\n $(\"#Libelle\").cleditor()[0].focus();\r\n\t});\r\n}", "function changeMessageNb(data) {\r\n //allMessageNb = data;\r\n}", "static protected internal function m125() {}", "function help() {\r\n a = \"Dicas de uso: \\nPara inserir uma intrução na unidade escolha as instruções a serem utilizadas e seus respectivos registradores, então clique em 'CONFIRMAR' para executar os dados ou 'RESET' para limpar os campos\\n\\nO botão 'Próximo' avançará para o proximo ciclo e o botão 'Resultado' apresenta o resultado final da execução do algoritmo\";\r\n alert(a);\r\n }", "function about(){\n try {\n if(working){\n errorFiller(\"Sobre la Aplicación\", \"Himnario evangélico y Santa Biblia Reina-Valera 1960 (RV1960). Desarrollado por Marcos Bustos C. para la Gloria de Dios.\", \"ok\");\n }\n } catch (error) {\n errorFiller(\"Error\", \"Ha ocurrido un error fatal en el proceso de visualización del acerca de. No podrá seguir funcionando el sistema. Intente reiniciar la página con la tecla F5. Si el error es continuo, contacte con el administrador del sistema.\", \"error\");\n }\n}", "function kp() {\n $log.debug(\"TODO\");\n }", "protected internal function m252() {}", "function localizame() {\n mensaje = 'Cargando farmacias cercanas a ' + radODis + ' KM de su ubicación';\n alertaCargando(mensaje);\n\n navigator.geolocation.getCurrentPosition(initialize, function (error) {\n $ionicLoading.hide();\n activarGPS();\n }, {maximumAge: 3000, timeout: 3000, enableHighAccuracy: true});\n\n }", "function inicio() {\n\t\tacao('move_x', sc1_chamada1, 'ida', chamada_1);\n\t\tacao('move_x', sc1_chamada2, 'ida', chamada_2);\n\t\tacao('move_x', sc1_chamada3, 'ida', chamada_3, saiChamadas);\n\t}", "function ProcesSMSTipo1()\r\n{\r\n let auxLen= 0; //longiud trama\r\n let auxCadLen=0; //longitud cadena\r\n let auxCRC= 0;\r\n let cadServ= 0;\r\n let cadLog='';\r\n let i=0;\r\n let cont=0;\r\n let cadBase64='';\r\n let cadDTMF ='';\r\n let cadDecompress='';\r\n let cadAreaRX ='';\r\n try\r\n {\r\n auxLen = gb_buf_rcv_dtmf.length-7; //Quitamos *(1),Type 0(1),Serv(1),Len(2),CRC(2)\r\n auxLen = (Math.trunc(auxLen/2));\r\n cadServ = gb_buf_rcv_dtmf[1]; //Servicio\r\n auxCadLen = parseInt(gb_buf_rcv_dtmf[2]+gb_buf_rcv_dtmf[3]); //Longitud 2 caracteres\r\n auxCRC = parseInt(gb_buf_rcv_dtmf[4]+gb_buf_rcv_dtmf[5]); //CRC \r\n //alert (auxLen); \r\n cadLog += new Date(Date.now()).toLocaleString('en-GB').replace(',','');\r\n cadAreaRX = cadLog;\r\n \r\n cadLog += 'RX Type:1';\r\n cadLog += ' Srv:'+cadServ; //Servicio\r\n cadLog += ' Len:'+auxCadLen.toString(); //Longitud\r\n cadLog += ' CRC:'+auxCRC.toString(); //CRC\r\n cont= 6; //Comienza despues de CRC\r\n for (i=0; i<auxLen; i++)\r\n {\r\n cadDTMF += gb_buf_rcv_dtmf[cont] + gb_buf_rcv_dtmf[cont+1];\r\n cadBase64 += DTMFtoCharBase64(gb_buf_rcv_dtmf[cont] + gb_buf_rcv_dtmf[cont+1]);\r\n cont += 2;\r\n }\r\n \r\n cadLog += ' DTMF:'+cadDTMF;\r\n cadLog += ' BASE64:'+cadBase64+ ' Len:'+auxLen.toString();\r\n\r\n switch (cadServ)\r\n {\r\n case '0': cadRX = atob(cadBase64); //Base64 decode \r\n cadDecompress = TextoDescomprimeDiccionario(cadRX);\r\n break;\r\n case '2': cadRX = LZString.decompressFromBase64 (cadBase64);\r\n cadDecompress = cadRX;\r\n break;\r\n default: cadRX = atob(cadBase64); //Base64 decode\r\n break; \r\n } \r\n \r\n cadLog += ' RX:' + cadRX + ' Len:' + cadRX.length.toString(); \r\n cadLog += ' Decompress:' + cadDecompress + ' Len:'+cadDecompress.length.toString();\r\n cadLog += ' Frame:#' + gb_buf_rcv_dtmf + ' Len:' + (gb_buf_rcv_dtmf.length + 1).toString(); //Aniadido #\r\n \r\n DebugLog(cadLog);\r\n \r\n cadAreaRX += ' RX(1.' + cadServ + '):' + cadDecompress;\r\n UpdateAreaRX(cadAreaRX);\r\n gb_buf_rcv_dtmf = '';\r\n }\r\n catch(err)\r\n {\r\n DebugLog(err.message.toString());\r\n } \r\n}", "static private public function m119() {}", "static private protected public internal function m117() {}", "function comportement (){\n\t }", "function setTr_TR() {\n\n\tMessages.hostName = \"Anasistem Adı\";\n\tMessages.storeId = \"Mağaza Tanıtıcısı\";\n\tMessages.storeName = \"Mağaza Adı\";\n\tMessages.catalogId = \"Katalog Tanıtıcısı\";\n\tMessages.previewToken = \"Önizleme Simgesi\";\n\tMessages.langId = \"Dil\";\n\n\tMessages.appDisplayName = \"WC Karma\";\n\tMessages.appDescription = \"WC Karma Mağazası\";\n\tMessages.appVersionTitle = \"Uygulama Sürümü:\";\n\tMessages.loading = \"Yükleniyor ...\";\n\tMessages.appDisabled = \"Uygulamanın bu sürümü devre dışı bırakıldı. Uygulama çıkacak.\";\n\tMessages.appDisabledTitle = \"Uygulama Devre Dışı Bırakıldı\";\n\tMessages.getNewVersion = \"Yeni sürüm al\";\n\tMessages.exitApp = \"Uygulamadan çıkmak istiyor musunuz?\";\n\tMessages.requiredFieldsMsg1 = \"Bu işaretle (\";\n\tMessages.requiredFieldsMsg2 = \") gösterilen tüm alanlar gereklidir.\";\n\n\tMessages.signIn = \"Oturum Aç\";\n\tMessages.signOut = \"Oturum Kapat\";\n\tMessages.myAccount = \"Hesabım\";\n\tMessages.scan = \"Tara\";\n\tMessages.shoppingList = \"Dilek Listesi\";\n\tMessages.privacyPolicy = \"Gizlilik İlkesi\";\n\tMessages.productCompare = \"Ürün Karşılaştırma\";\n\tMessages.contactUs = \"Bize Ulaşın\";\n\tMessages.settings = \"Ayarlar\";\n\tMessages.languageCurrency = \"Dil / Para Birimi\";\n\tMessages.featured = \"Özel\";\n\tMessages.departments = \"Bölümler\";\n\tMessages.storeLocator = \"Mağaza Bulma\";\n\tMessages.stores = \"Mağazalar\";\n\tMessages.cart = \"Araba\";\n\tMessages.more = \"Daha Fazla\";\n\tMessages.devSettings = \"Geliştirme Ayarları\";\n\tMessages.slideUp = \"ayarlara erişmek için yukarı kaydırın\";\n\n\tMessages.OK = \"Tamam\";\n\tMessages.save = \"Sakla\";\n\tMessages.reset = \"Sıfırla\";\n\tMessages.confirm = \"Doğrula\";\n\tMessages.cancel = \"İptal\";\n\tMessages.exit = \"Çık\";\n\tMessages.optional = \"İsteğe Bağlı\";\n\n\t//Error messages\n\tMessages.ERR_EC = \"Hata\";\n\tMessages.ERR_EC_GENERIC = \"Uygulama durdurulacak. Beklenmeyen bir kural dışı durum oluştu: \";\n\tMessages.ERR_EC_FORM_INCOMPLETE = \"Tüm alanlara veri girilmiş olduğunu doğrulayın.\";\n\tMessages.ERR_EC_STORE_CONNECTION = \"Mağazaya bağlanma sırasında hata saptandı. Daha sonra yeniden deneyin.\";\n\tMessages.ERR_EC_SERVER_NOT_FOUND = \"Uzak sunucu bulunamadı.\";\n\tMessages.ERR_EC_EXIT_QUESTION = \"İnternet bağlantınızın kullanılabilir olduğunu doğrulayın. Uygulamadan çıkmak istiyor musunuz?\";\n\tMessages.ERR_EC_NO_INTERNET_ACCESS = \"İnternet erişimi yok.\";\n\tMessages.ERR_EC_CHECK_INTERNET_CONNECTION = \"Aygıtınızın İnternet bağlantısını denetleyin.\";\n\tMessages.ERR_EC_UNEXPECTED_EXCEPTION = \"Uygulama durdurulacak. Beklenmeyen bir kural dışı durum oluştu: \";\n\tMessages.ERR_EC_HOSTNAME_MISSING = \"\\'Anasistem Adı\\' yanlış ya da değeri eksik.\";\n\tMessages.ERR_EC_STOREID = \"\\'Mağaza Tanıtıcısı\\' yanlış ya da değeri eksik.\";\n\tMessages.ERR_EC_CATALOGID = \"\\'Katalog Tanıtıcısı\\' yanlış ya da değeri eksik.\";\n\tMessages.ERR_EC_BARCODE_SCAN = \"Çubuk kod taranırken bir hata oluştu. Taramayı yeniden deneyin.\";\n\tMessages.ERR_EC_BARCODE_SCAN_LAUNCH = \"Çubuk kod tarayıcı başlatılırken hata oluştu.\";\n\tMessages.ERR_EC_CONTACTS_LAUNCH = \"İletişim bilgilerinize erişilirken hata oluştu.\";\n\tMessages.ERR_EC_MAPS_LAUNCH = \"Haritalar başlatılırken hata oluştu.\";\n\n\tSupportedLanguages.deviceDefault = \"Aygıt varsayılan değeri\";\n\tSupportedLanguages.en_US = \"Birleşik Devletler İngilizcesi\";\n\tSupportedLanguages.fr_FR = \"Fransızca\";\n\tSupportedLanguages.de_DE = \"Almanca\";\n\tSupportedLanguages.it_IT = \"İtalyanca\";\n\tSupportedLanguages.es_ES = \"İspanyolca\";\n\tSupportedLanguages.pt_BR = \"Brezilya Portekizcesi\";\n\tSupportedLanguages.zh_CN = \"Yalınlaştırılmış Çince\";\n\tSupportedLanguages.zh_TW = \"Geleneksel Çince\";\n\tSupportedLanguages.ko_KR = \"Korece\";\n\tSupportedLanguages.ja_JP = \"Japonca\";\n\tSupportedLanguages.iw_IL = \"İbranice\";\n\tSupportedLanguages.tr_TR = \"Türkçe\";\n\tSupportedLanguages.ru_RU = \"Rusça\";\n\tSupportedLanguages.ro_RO = \"Romence\";\n\tSupportedLanguages.pl_PL = \"Polonya Dili\";\n\tSupportedLanguages.ar_EG = \"Arapça\";\n\n\tDefaultSupportedLanguages.en_US = \"United States English\";\n\tDefaultSupportedLanguages.fr_FR = \"Français\";\n\tDefaultSupportedLanguages.de_DE = \"Deutsch\";\n\tDefaultSupportedLanguages.it_IT = \"Italiano\";\n\tDefaultSupportedLanguages.es_ES = \"Español\";\n\tDefaultSupportedLanguages.pt_BR = \"Português do Brasil\";\n\tDefaultSupportedLanguages.zh_CN = \"简体中文\";\n\tDefaultSupportedLanguages.zh_TW = \"繁體中文\";\n\tDefaultSupportedLanguages.ko_KR = \"한국어\";\n\tDefaultSupportedLanguages.ja_JP = \"日本語\";\n\tDefaultSupportedLanguages.iw_IL = \"עברית\";\n\tDefaultSupportedLanguages.tr_TR = \"Türkçe\";\n\tDefaultSupportedLanguages.ru_RU = \"русский\";\n\tDefaultSupportedLanguages.ro_RO = \"Română\";\n\tDefaultSupportedLanguages.pl_PL = \"polski\";\n\tDefaultSupportedLanguages.ar_EG = \"عربية\";\n}", "function ujebTomu(x) {\r\n //ulozi id tuknuteho luda\r\n let pes = document.getElementById(x);\r\n\r\n //ak uz nie je otvoreny nejaky iny zamestnanec\r\n if (otvoreny == \"nikto\") {\r\n //ulozi aktualne otvoreneho luda\r\n otvoreny = pes;\r\n x = '#' + x;\r\n\r\n //zmaze css pre zatvorenu tablicku - ci uz pc alebo mobil\r\n $(x).removeClass(\"mobileLudo\");\r\n $(x).removeClass(\"normLudo\");\r\n\r\n //prida css pre otvorenu tablicku\r\n if ($(window).width() < 1000) {\r\n //pre mobil otvori \"fullscreen\" zobrazenie luda\r\n $('body div').hide();\r\n //vypne moznost kliknut na logo v mavbare kym je otvoreny nejaky ludo\r\n $('.mavbar a').attr(\"onclick\", \"\");\r\n\r\n let picus = \"#BL\" + pes.id;\r\n $(picus).show();\r\n $(picus).find(\"div\").show();\r\n $('.mavbar').show();\r\n $('.mavbar #menuButton').hide();\r\n } else {\r\n //pre pc\r\n $(x).addClass(\"bigLudo\");\r\n $(x).find('.dlhyOpis').show();\r\n }\r\n\r\n //ukaze kontakt danej osoby\r\n $(x).find(\".bengoroKontakt\").show();\r\n //ukaze tlacitka pre email a zatvorenie tablicky\r\n $(x).find(\".miniButtony\").show();\r\n //ukaze zvysok opisneho textu\r\n $(x).find(\".quiestce\").find(\"span\").removeClass(\"hidden\");\r\n } else {\r\n //ak uz bol nejaky ludo otvoreny v momente kliknutia tak ho zavre\r\n //a otvori aktualne tuknuteho luda\r\n odjebTomu(otvoreny.id);\r\n ujebTomu(pes.id);\r\n otvoreny = pes\r\n }\r\n\r\n //riesi marginy medzi ludo divmi - obdlzniky nalavo maju mat margin right\r\n if ($(x).hasClass(\"lavo\")) {\r\n $('.lavo').each(function() {\r\n if ($(this).index() > $(x).index() &&\r\n $(this).parent().attr(\"id\") == $(x).parent().attr(\"id\")) {\r\n $(this).removeClass(\"medzeraNapravo\");\r\n }\r\n })\r\n\r\n $('.pravo').each(function() {\r\n if ($(this).index() > $(x).index() &&\r\n $(this).parent().attr(\"id\") == $(x).parent().attr(\"id\")) {\r\n $(this).addClass('medzeraNapravo');\r\n }\r\n })\r\n }\r\n}" ]
[ "0.65474564", "0.6149081", "0.6147393", "0.61168015", "0.61077005", "0.59285593", "0.59008247", "0.5867267", "0.5865246", "0.57832396", "0.56820065", "0.5675707", "0.5657452", "0.55996865", "0.558476", "0.55823797", "0.5563597", "0.5552179", "0.5537085", "0.5537085", "0.5537085", "0.55352443", "0.5534633", "0.5531779", "0.55290484", "0.55247414", "0.5520239", "0.55197376", "0.55179846", "0.5506717", "0.55037487", "0.55037177", "0.54987466", "0.549672", "0.5494834", "0.5478671", "0.54626656", "0.5456749", "0.5455758", "0.5453808", "0.5453174", "0.54517376", "0.5449487", "0.5447627", "0.54336524", "0.5433531", "0.5431505", "0.54206914", "0.5400537", "0.538701", "0.538701", "0.5382785", "0.5380519", "0.5379162", "0.5371669", "0.53714764", "0.536976", "0.5369051", "0.5359392", "0.53519", "0.5350125", "0.53485626", "0.5347802", "0.5343428", "0.53429174", "0.5340372", "0.5339078", "0.5330942", "0.5330894", "0.5325533", "0.5324456", "0.5318713", "0.5318706", "0.5311646", "0.5308074", "0.53060246", "0.5301557", "0.5296277", "0.52915525", "0.5288965", "0.5284867", "0.52844256", "0.52844256", "0.52834535", "0.5281907", "0.5280076", "0.52784634", "0.5278325", "0.52764106", "0.5274626", "0.5270947", "0.5262117", "0.52601445", "0.52591515", "0.5258857", "0.525657", "0.525484", "0.5249748", "0.5247759", "0.5244073", "0.52375746" ]
0.0
-1
27.skup variabel pada fungsi
function profil(nama, kota, lahir) { console.log('Nama saya ' + nama + '<br/>'); console.log('Saya berasal dari kota ' + kota + '<br/>'); console.log('Lahir pada tahun '+ lahir + '<br/>'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fuctionPanier(){\n\n}", "function ucapSalam() {\n return \"Selamat Siang\"; //return nilai harus membuat satu variable utk meyimpan nilai yang akan di return\n}", "function lalalala() {\n\n}", "function cetakPesan(nama, bahasa='id')\n{\n var pesan = 'Selamat datang, ' + nama;\n if(bahasa == 'en')\n {\n pesan = 'Welcome, ' + nama;\n }\n else if(bahasa=='id'){\n console.log(pesan);\n }\n console.log('Mohon maaf bahasa yang diminta belum terdaftar');\n}", "function karinaFaarNotifikation() {\n\n\n\n}", "function cargarpista1 (){\n \n}", "function panggilSimpanRecord(){\n\n }", "function wa(){}", "function Komunalne() {}", "function funcionPorDefinicion(){\n //Body\n }", "function hitungLuasSegiEmpat(sisi){\n //tidak ada nilai balik\n var luas = sisi * sisi\n return luas\n}", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "function TinhTien() {\n //Lay loai xe\n var loaiXe = LayloaiXe();\n console.log(loaiXe);\n //Lay thoi gian cho\n var tgCho = getEle('tgCho').value;\n //lay so km\n var soKM = getEle('soKm').value;\n var tongHoaDon = 0;\n //Tinh theo loai xe\n switch (loaiXe) {\n case 'uberX':\n tongHoaDon = TinhTheoLoaiXe(soKM, tgCho, UberX_1, UberX_2, UberX_3, tgCho_UberX);\n break;\n case 'uberSUV':\n tongHoaDon = TinhTheoLoaiXe(soKM, tgCho, UberSUV_1, UberSUV_2, UberSUV_3, tgCho_UberSUV);\n break;\n case 'uberBlack':\n tongHoaDon = TinhTheoLoaiXe(soKM, tgCho, UberBlack_1, UberBlack_2, UberBlack_3, tgCho_UberBlack);\n break;\n default:\n break;\n }\n}", "fungsiMakan() {\n return `Blubuk kelas parent di ambil alih blubuk ini`;\n }", "function PlcGeral(){\r\n}", "function comportement (){\n\t }", "function IndicadorRangoEdad () {}", "function sumuoti(sk1 = 0,sk2 = 0) {\n let masyvas;\n masyvas = [sk1, sk2];\n let suma;\n\n //suma = masyvas[0] + masyvas[1];\n suma = sk1 + sk2;\n\n return suma ; //grazinti bet koki kintamojo tipa\n}", "function fun1(){} //toda a função de js retorna alguma coisa", "LiberarPreso(valor){\nthis.liberation=valor;\n }", "getTattoo () {\n\n }", "function KenalanV3 (nama, hobi) {\n console.log(`Hello, Nama Saya ${nama}`)\n console.log(`Saya Suka ${hobi}`)\n console.log(`Sekian`)\n}", "function GraFlicUtil(paramz){\n\t\n}", "function nombreFuncion(parametro){\n return \"regresan algo\"\n}", "distrito() {\n return super.informacion('distrito');\n }", "function iniciar() {\n \n }", "function fnc_child_cargar_valores_iniciales() {\n\n}", "stocker_local_trajet() {}", "function panggilParameter(idNegara, dataKota) {\n console.log(idNegara);\n console.log(dataKota);\n}", "efficacitePompes(){\n\n }", "function pasveikinaKauna() {\n console.log(\"Labas vakaras Kaune!\");\n}", "function dwa() {\n \n //wypisanie do konsoli zawartości zmienna1, zdeklarowanej w funkcji nadrzednej, wartośc zostanie pobrana poprzez hoisting\n console.log(zmienna1);\n \n //Deklaracja i przypisanie w funkcji wewnetrznej\n var zmienna2 = 3;\n }", "function InitValues_Framework_L0(){\n // You must make some text.\n \n}", "function InitValues_Framework_L0(){\n // You must make some text.\n \n}", "function Guarda_Clics_AFN_Menos()\r\n{\r\n\tGuarda_Clics(4,0);\r\n}", "function klikni(){\n console.log(\"kliknuto\");\n}", "function miFuncion (){}", "function Ha(){}", "function getVardas() {\n return \"Tadas\";\n}", "function munculkanAngkaDua() {\n return 2;\n}", "function kaliTerusRekursif(angka) {\r\n // you can only write your code here!\r\n let angkaString = angka.toString();\r\n let hasil = kaliRekursif(angka);\r\n let hasilString = hasil.toString();\r\n if(hasilString.length > 1){\r\n hasil = kaliTerusRekursif(hasil);\r\n }\r\n return hasil;\r\n \r\n}", "function exercicio01() {\n var variavel = \"valor\";\n return variavel;\n}", "function kalkulasi(a, b) {\n return {\n tambah: a + b,\n kurang: a - b,\n kali: a * b,\n bagi: a / b\n }\n}", "function IndicadorGradoAcademico () {}", "function tambah(){\n\n var i;\n var hasil = 0;\n\n for(i = 0; i < arguments.length ; i++){\n hasil += arguments[i];\n }\n\n return hasil;\n\n}", "function Kutility() {\n\n}", "function Kutility() {\n\n}", "function Carnivorus(){\n\n}", "function otkri(sadrzaj){\n var ime_varijable;\n for (var naziv_objekta in window) {\n if (window[naziv_objekta] == sadrzaj) ime_varijable = naziv_objekta;\n }\n console.log(ime_varijable + \": \" + sadrzaj)\n} // kraj otkri", "function FurnitureShop() {}", "function checkgenus(){\r\n\r\n}", "function miFuncion(){\n\n}", "function buatKalimat(nama, umur, alamat, hobi) {\n // Code kamu mulai dari sini\n var kalimat = \"Nama saya \" + nama + \", Umur \" + umur + \" Bertempat tinggal di \" + alamat + \", hobi saya \" + hobi;\n // Tampilkan dengan cara document.getElementById(\"jawaban3\").innerHTML seperti di CONTOH.\n document.getElementById(\"jawaban3\").innerHTML = kalimat;\n }", "saludar(fn){//recepcion de funcion\n var {nombre, apellido}=this //desgrloce de variables\n console.log(`Hola me llamo ${nombre} ${apellido}`)\n if(fn){\n fn(nombre, apellido, true)\n }\n }", "function Go_Funciones()\n {\n if( g_listar == 1 )\n {\n Get_Marca_Producto();\n }\n \n }", "function anhadir() {\n k.anhadirDatos();\n}", "function b() {\n let a = 4;//esta linea en particular vive con \n //el universo de b\n}", "function mojaFunkcija(){\n console.log('Zdarvo svete!');\n}", "function PerkalianV2 (a, b) {\n //local variabel\n let hasil = a * b\n\n //give return value, spy value dr hasil bisa dipake diluar\n return hasil\n}", "function Maisons(){\n \n }", "function sveikinuosi( funkcijosPavadinimas ){\n console.log(\"Labutaitis\");\n if (funkcijosPavadinimas != null && funkcijosPavadinimas != undefined) {\n funkcijosPavadinimas();\n }\n}", "kartica1()\n {\n this.karticaForma=true;\n this.karticaRezultati=false;\n }", "function mostrarPalabra(){\n \n}", "get Sattolo(){ return 4; }", "translateSuitToEntityCode(){\nreturn this.suitObjects[`${this.randomSuitName0 }`];\n }", "translateSuitToEntityCode(){\nreturn this.suitObjects[`${this.randomSuitName0 }`];\n }", "private public function m246() {}", "function spausdinti2() {\n console.log(name);\n var name = \"Paulius\"; //lokali reiksme;\n console.log(name); \n console.log(this.name); //situ atveju isveda ir globalia reiksme;\n}", "function masti(){\r\n return \" Helo India\";\r\n}", "function ksfData()\n{\n}", "function szamol(szam){\r\n\tif (szam==1){\r\n\t\tosszeg=ido*ar/letsz;\r\n\t\tconsole.log(osszeg);\r\n\t\t//xd1.value=osszeg*1;\r\n\t\tdocument.getElementById(\"fk\").value=osszeg;\r\n\t}\r\n\telse if (szam==2){\r\n\t\tosszeg=ido1*ar1/letsz1;\r\n\t\t//xd2.value=osszeg;\r\n\t}\r\n\telse if (szam==3){\r\n\t\tosszeg=ido2*ar2/letsz2;\r\n\t\t//xd3.value=osszeg;\r\n\t}\r\n\t\r\n}", "provincia() {\n return super.informacion('provincia');\n }", "function getVardas1() {\n return vardas + \"1\";\n}", "function tampilkan() {\n console.log(\"halo!\");\n}", "function Guarda_Clics_AFF_Menos()\r\n{\r\n\tGuarda_Clics(5,0);\r\n}", "function Oily(){\nSkinType = \"Oily\";\n}", "function activar_batiseñal() {\n return \"activada\";\n}", "function ustawId(pole) {\r\n aktualnePole = pole.id; \r\n aktualnaWartosc = pole.value;\r\n}", "function KenalanV2 (nama) {\n console.log(`Hello, Nama Saya ${nama}`)\n console.log(`Saya Suka Masak`)\n console.log(`Sekian`)\n}", "function TinhTheoLoaiXe(sokm, tgcho, giaLoai1, giaLoai2, giaLoai3, tgChoTheoLoai) {\n var tien = 0;\n if (sokm <= 1) {\n tien = sokm * giaLoai1 + tgcho * tgChoTheoLoai;\n // console.log(tien);\n } else if (sokm > 1 && sokm < 21) {\n tien = giaLoai1 + (sokm - 1) * giaLoai2 + tgcho * tgChoTheoLoai;\n // console.log(tien);\n } else if (sokm >= 21) {\n tien = giaLoai1 + 19 * giaLoai2 + (sokm - 20) * giaLoai3 + tgcho * tgChoTheoLoai;\n // console.log(tien);\n }\n return document.getElementById('xuatTien').innerHTML = tien + ' vnđ';\n}", "function Pythia() {}", "function arrayTambah() {\n var hasil = 0;\n\n for (var i = 0; i < arguments.length; i++) {\n hasil += arguments[i];\n }\n return hasil;\n}", "function escogerValorMasGrande(elemetos){\n\n}", "function ispisCene(){\n \n let ispisCena=racunajCenu(findDestPrice(dest),brOsoba);\n document.querySelector(\"#cena\").innerHTML = `${ispisCena}&euro;`;\n }", "function Ejemplo(){return true}", "function descarga(variable){\n alert(\"En un momento comenzara su descarga con la lista de tus tareas\");\n }", "function getNama() {\n return nama;\n}", "function skft()\n{\n\t// uzima izabranu temu iz baze (ako nije izabrana, podrazumevana je paleta servis)\n\tvar tema = GM_getValue(\"tema\", \"servis\");\n\n\t// na osnovu izbora postavlja predefinisane boje\n\tswitch (tema)\n\t{\n\tcase \"lp\":\n\t\t// laki pingvini\n\t\tvar b1 = \"#711B6C\"; // tamna pozadina zaglavlja + okviri\n\t\tvar b2 = \"#91238B\"; // svetla pozadina zaglavlja\n\t\tvar b3 = \"#E9A2E5\"; // tekst zaglavlja + pozadina info boxa\n\t\tvar b4 = \"#FCECFB\"; // pozadina poruke\n\t\tvar t1 = \"#400F3D\"; // tekst\n\t\tvar t2 = \"#95268F\"; // link\n\t\tvar t3 = \"#FF00FC\"; // aktivan link\n\t\tbreak;\n\tcase \"gray\":\n\t\t// siva\n\t\tvar b1 = \"#444\"; // tamna pozadina zaglavlja + okviri\n\t\tvar b2 = \"#555\"; // svetla pozadina zaglavlja\n\t\tvar b3 = \"#DDD\"; // tekst zaglavlja + pozadina info boxa\n\t\tvar b4 = \"#EEE\"; // pozadina poruke\n\t\tvar t1 = \"#222\"; // tekst\n\t\tvar t2 = \"#000\"; // link\n\t\tvar t3 = \"#FF7400\"; // aktivan link\n\t\tbreak;\n\tcase \"web20\":\n\t\t// WEB 2.0 boje\n\t\tvar b1 = \"#3F4C6B\"; // tamna pozadina zaglavlja + okviri\n\t\tvar b2 = \"#356AA0\"; // svetla pozadina zaglavlja\n\t\tvar b3 = \"#C3D9FF\"; // tekst zaglavlja + pozadina info boxa\n\t\tvar b4 = \"#F9F7ED\"; // pozadina poruke\n\t\tvar t1 = \"#36393D\"; // tekst\n\t\tvar t2 = \"#4096EE\"; // link\n\t\tvar t3 = \"#008C00\"; // aktivan link\n\t\tbreak;\n\tdefault:\n\t\t// servis (podrazumevana)\n\t\tvar b1 = \"#004000\"; // tamna pozadina zaglavlja + okviri\n\t\tvar b2 = \"#008000\"; // svetla pozadina zaglavlja\n\t\tvar b3 = \"#D0F3B6\"; // tekst zaglavlja + pozadina info boxa\n\t\tvar b4 = \"#F9F7ED\"; // pozadina poruke\n\t\tvar t1 = \"#008000\"; // tekst\n\t\tvar t2 = \"#004000\"; // link\n\t\tvar t3 = \"#800040\"; // aktivan link\n\t}\n\n\t// definise selektore sa predefinisanom temom boja\n\tvar css = \"body, .page { color: \"+t1+\"; }\" +\n\t\t\"a:link, a:visited { color: \"+t2+\"; }\" +\n\t\t\"a:hover, a:active { color: \"+t3+\"; }\" +\n\t\t\".tborder { background: white; color: \"+b1+\"; border: 1px solid \"+b1+\"; }\" +\n\t\t\".thead { background: \"+b1+\"; color: \"+b4+\"; }\" +\n\t\t\".tcat, .vbmenu_control, .tfoot { background: \"+b2+\"; color: \"+b4+\"; }\" +\n\t\t\".alt1, .alt1Active, .panelsurround, .wysiwyg { background: \"+b4+\" !important; color: \"+t1+\" !important; border: none !important; }\" +\n\t\t\".alt2, .controlbar, .imagebutton, .panel { background: \"+b3+\"; color: \"+t1+\"; border: none !important; }\" +\n\t\t\"div.page {width: 100% !important; padding: 0; margin: 0;}\" +\n\t\t\"input, textarea {color: \"+t2+\"}\";\n\n\t// primenjuje CSS na stranu\n\tGM_addStyle(css);\n\t\n\t// nizovi sa IDovima redakcije, saradnika i moderatora\n\tvar skft_red = new Array(\"1\", \"3\", \"5\", \"6\", \"8\", \"10\", \"14\", \"19\", \"115\", \"242\"); // redakcija\n\tvar skft_sar = new Array(\"4\", \"7\", \"15\", \"18\", \"21\", \"22\", \"62\", \"113\", \"128\", \"268\", \"312\", \"321\", \"353\", \"1734\", \"2486\", \"2526\", \"4049\", \"21855\"); // saradnici\n\tvar skft_mod = new Array(\"121\", \"123\", \"169\", \"185\", \"192\", \"216\", \"222\", \"245\", \"395\", \"452\", \"589\", \"600\", \"624\", \"773\", \"990\", \"1365\", \"1756\", \"1945\", \"2243\", \"2588\", \"2833\", \"3052\", \"4029\", \"5035\", \"10390\"); // moderator\n\n\t// procesiram sve slike na strani\n\tvar slike = document.getElementsByTagName('img');\n\n\tfor (i = 0; i < slike.length; i++)\n\t{\n\t\t// debug → GM_log(\"i = \" + i + \": src = \" + slike[i].src);\n\t\t// ako profil ima avatar\n\t\tif ( slike[i].alt.match(\"Avatar\") ) {\n\t\t\t// vidi da li je promenjen SRC slike ili je original\n\t\t\tif ( slike[i].src.match(\"u=\") ) {\n\t\t\t\t// odredi status clana (cin) na osnovu uzmi UID-a iz URL-a slike avatara\n\t\t\t\tskft_uid = slike[i].src.split(\"=\")[1].split(\"&\")[0];\n\t\t\t\tif ( skft_red.in_array(skft_uid) ) { // redakcija\n\t\t\t\t\tskft_cin = \"redakcija\";\n\t\t\t\t} else if ( skft_sar.in_array(skft_uid) ) { // saradnici\n\t\t\t\t\tskft_cin = \"saradnik\";\n\t\t\t\t} else if ( skft_mod.in_array(skft_uid) ) { // moderator\n\t\t\t\t\tskft_cin = \"moderator\";\n\t\t\t\t}\n\t\t\t} else if ( slike[i].src.match(\"AVATAR-\") ) {\n\t\t\t\t// odredi status clana (cin) na osnovu uzmi UID-a iz URL-a slike avatara\n\t\t\t\tskft_uid = slike[i].src.split(\"-\")[1];\n\t\t\t\tif ( skft_red.in_array(skft_uid) ) { // redakcija\n\t\t\t\t\tskft_cin = \"redakcija\";\n\t\t\t\t} else if ( skft_sar.in_array(skft_uid) ) { // saradnici\n\t\t\t\t\tskft_cin = \"saradnik\";\n\t\t\t\t} else if ( skft_mod.in_array(skft_uid) ) { // moderator\n\t\t\t\t\tskft_cin = \"moderator\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// posto je SRC promenjen, uzmi cin iz URL-a slike avatara\n\t\t\t\tskft_cin = slike[i].src.split(\"-\")[2];\n\t\t\t}\n\t\t\t// promeni avatar\n\t\t\tskft_avatar = skft_av_url + \"AVATAR-sk-\" + skft_cin + \"-\" + tema + \".png\";\n\t\t\t// debug → GM_log(\"Menjam sliku avatara: \"+skft_avatar);\n\t\t\tslike[i].src = skft_avatar;\n\t\t} else if ( slike[i].src.match(\"lastpost.gif\") || slike[i].src.match(\"/lastpost-\") ) {\n\t\t\tslike[i].src = skft_av_url + \"lastpost-\" + tema + \".gif\";\n\t\t} else if ( slike[i].src.match(\"firstnew.gif\") || slike[i].src.match(\"/firstnew-\") ) {\n\t\t\tslike[i].src = skft_av_url + \"firstnew-\" + tema + \".gif\";\n\t\t} else if ( slike[i].src.match(\"trashcan_small.gif\") || slike[i].src.match(\"/trashcan_small-\") ) {\n\t\t\tslike[i].src = skft_av_url + \"trashcan_small-\" + tema + \".gif\";\n\t\t// dugmad\n\t\t} else if ( slike[i].src.match(\"edit.gif\") || slike[i].src.match(\"/edit-\") ) {\n\t\t\tslike[i].src = skft_av_url + \"edit-\" + tema + \".gif\";\n\t\t} else if ( slike[i].src.match(\"multiquote_off.gif\") || slike[i].src.match(\"/multiquote_off-\") ) {\n\t\t\tslike[i].src = skft_av_url + \"multiquote_off-\" + tema + \".gif\";\n\t\t} else if ( slike[i].src.match(\"post_thanks.gif\") || slike[i].src.match(\"/post_thanks-\") ) {\n\t\t\tslike[i].src = skft_av_url + \"post_thanks-\" + tema + \".gif\";\n\t\t} else if ( slike[i].src.match(\"quickreply.gif\") || slike[i].src.match(\"/quickreply-\") ) {\n\t\t\tslike[i].src = skft_av_url + \"quickreply-\" + tema + \".gif\";\n\t\t} else if ( slike[i].src.match(\"quote.gif\") || slike[i].src.match(\"/quote-\") ) {\n\t\t\tslike[i].src = skft_av_url + \"quote-\" + tema + \".gif\";\n\t\t} else if ( slike[i].src.match(\"reply.gif\") || slike[i].src.match(\"/reply-\") ) {\n\t\t\tslike[i].src = skft_av_url + \"reply-\" + tema + \".gif\";\n\t\t}\n\t\t\n\t}\n}", "function queryParamBankSoal() {\n\n\t// var sidthnajar = $('#id_thn_ajar').val();\n\t// var ssemester = $('#semester').val();\n\tvar sid_matpal = $('#id_matpal').val();\n\tvar stingkat = $('#tingkat').val();\n\n\treturn {\n\t\t// sidthnajar: sidthnajar,\n\t\t// ssemester: ssemester,\n\t\tsid_matpal: sid_matpal,\n\t\tstingkat: stingkat\n\t}\n}", "function Scdr() {\r\n}", "function mostraNotas(){}", "function Guarda_Clics_EMN_Menos()\r\n{\r\n\tGuarda_Clics(2,0);\r\n}", "function get_app_default(u,f_showprofile){ \r\n //alert('tan awa : '+CURR_CLIENT);\r\n get_db_pvc(); \r\n get_db_sys(); \r\n}", "function Pe(){}", "function salut(){\r\n\treturn \"Salut !\";\r\n}", "function exec() {\n const valor = 'Local'\n minhaFuncao()\n}", "saludar(fn){\n console.log(`Hola me llamo ${this.nombre} ${this.apellido} y soy programador`)\n if(fn){\n fn(this.nombre,this.apellido, true)\n }\n }", "function saludar(){\n return 'hola'\n}" ]
[ "0.64322364", "0.6332965", "0.6263854", "0.6228572", "0.62035304", "0.61941713", "0.61395746", "0.6075827", "0.6071371", "0.59952164", "0.59894586", "0.5949339", "0.5949339", "0.5949339", "0.59423846", "0.5862675", "0.5844992", "0.58328986", "0.5819558", "0.5808047", "0.58046955", "0.5784764", "0.5753154", "0.5748748", "0.57478243", "0.5737808", "0.5731347", "0.5719899", "0.5719715", "0.57183063", "0.5714775", "0.57144874", "0.5712066", "0.57071656", "0.57056236", "0.57056236", "0.57023835", "0.5696868", "0.5695654", "0.56814694", "0.56759036", "0.5674598", "0.56737846", "0.56726307", "0.56657773", "0.56657034", "0.5651589", "0.5626957", "0.5626957", "0.56141514", "0.56096524", "0.5599445", "0.5596808", "0.5596555", "0.5594948", "0.55935806", "0.5593337", "0.5587844", "0.55808663", "0.55807245", "0.5577479", "0.5576991", "0.55769557", "0.5576553", "0.5567714", "0.5561923", "0.5543725", "0.5543725", "0.55436057", "0.55351454", "0.5533515", "0.55320185", "0.55264366", "0.5521955", "0.5518274", "0.5509686", "0.550583", "0.5498412", "0.5497754", "0.54973847", "0.5497177", "0.54968977", "0.54807895", "0.5473621", "0.5473405", "0.54726857", "0.54718786", "0.54701054", "0.54612446", "0.5449924", "0.54495484", "0.5443951", "0.5442587", "0.54410017", "0.5439314", "0.5426802", "0.5426274", "0.54258007", "0.54239327", "0.5423299" ]
0.5647354
47
28. Argumen referensi pada fungsi
function cetakPesan(nama, bahasa='id') { var pesan = 'Selamat datang, ' + nama; if(bahasa == 'en') { pesan = 'Welcome, ' + nama; } else if(bahasa=='id'){ console.log(pesan); } console.log('Mohon maaf bahasa yang diminta belum terdaftar'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saludarArgumentos(referencia){\n console.log(arguments);\n}", "function example4() {\n\n var me = {\n name: \"Vlad\",\n surname: \"Argentum\"\n };\n\n function hi(_ref) {\n var _ref$name = _ref.name;\n var name = _ref$name === undefined ? \"Guest\" : _ref$name;\n var _ref$surname = _ref.surname;\n var s = _ref$surname === undefined ? \"Anon\" : _ref$surname;\n\n console.log(\"Hi, \" + name + \" \" + s);\n }\n\n hi({}); //Guest Anon\n hi(me); //Vlad Argentum\n\n //even can call without params\n function hi() {\n var _ref2 = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n var _ref2$name = _ref2.name;\n var name = _ref2$name === undefined ? \"No\" : _ref2$name;\n var _ref2$surname = _ref2.surname;\n var s = _ref2$surname === undefined ? \"Params\" : _ref2$surname;\n\n console.log(\"Hi, \" + name + \" \" + s);\n }\n hi(); //No Params\n}", "function INDIRECT()\n{\n if(arguments.length==0)\n { \n alert(\"please enter parameter into function \");\n return \"=INDIRECT()\";\n }\n else\n if(arguments.length!=1)\n {\n alert(\"please enter one parameter only into function \");\n return \"=INDIRECT()\";\n\n }\n\n if(ISBLANK(arguments[0])==true)\n {\n\n return \"# REF!\";\n }\n \n \n return arguments[0];\n\n\n}", "function fun1( /*parametros opcionais*/ ){ /*retorno opcional*/ }", "function foo() {\n var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'www.wikipedia.com';\n var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Welcome to wikipedia';\n console.log(\"Argument with Default Parameter Url =\" + url);\n console.log(\"Argument with Default Parameter message =\" + message);\n}", "function nuevaFuncion(nombre = \"Tomas\", edad = \"21\", ciudad = \"Linares\")\n{\n console.log(nombre, edad, ciudad)\n}", "function listado(fruta1, fruta2, ...resto_de_frutas){ // ...<variable> captura los parametros adicionales que puedan llegar\n console.log(\"Fruta 1: \" + fruta1); // y los almacena en un array (parametro REST)\n console.log(\"Fruta 2: \" + fruta2);\n console.log(resto_de_frutas);\n}", "function lalalala() {\n\n}", "function Traite_Arguments(oArg) {\r\n\tvar Lg = \"fr\";\r\n\tvar stArguments = \"\";\r\n\ttry {\r\n\t\tstArguments += oArg.mois + \"|\";\r\n\t\tstArguments += oArg.annee + \"|\";\r\n\t\tstArguments += oArg.anneeDebut + \"|\";\r\n\t\tstArguments += oArg.anneeFin + \"|\";\t\t\r\n\t\tif (oArg.format) {\r\n\t\t\tstArguments += CodageFormatDate(oArg.format) + \"|\";\r\n\t\t} else {\r\n\t\t\tstArguments += CodageFormatDate(\"dd/MM/yyyy\") + \"|\";\r\n\t\t}\r\n\t\t\r\n\t\tstArguments += oArg.langue;\r\n\t} catch(e) { alert(\"PB Traite_Arguments : \" + e); }\r\n\t//alert(\"stArguments \" + stArguments);\r\n\treturn stArguments;\r\n}", "function saludar(referencia){\n console.log('Hola ' + referencia);\n}", "function SimpleArgs() {\r\n}", "function saludarArgumentos2(referencia){\n // retorna 1 porque asi se designo el return 1;\n return 1;\n // Algo que va despues de un return jamas se va a ejecutar\n}", "function args() {\n\n}", "function funkcijosPavadinimas(argumntas1, argumentas2) {\n // funkcijos body. kodas kuris bus vygdomas kai iskviesim funkcija\n // argumntas1 - lokalus kintamasis naudojamas tik sioje funkcijoje\n console.log(argumntas1);\n}", "function funcionPorDefinicion(){\n //Body\n }", "function fuctionPanier(){\n\n}", "function ajuda(endereco)\r\n{\r\n // var nomeAjuda = '../ajuda/' + diretorioAjuda + '/ajuda.html#' + link + opcaoAjuda;\r\n janelaUrl = endereco;\r\n janelaTamanho = \"M\"\r\n janelaTarget = \"jaAjuda\";\r\n janela()\r\n}", "function carga(){\r\n\tir_a(ID_FORM, URL_CARGA);\r\n}", "function TraerUrl(parametro,accion){\n \n if (!parametro)\n {\n \n \n return url;\n }\n else{\n \n if (accion==\"modif\")\n {\n \n \n return urlM + \"/\" + parametro;\n \n }else if (accion==\"suc\") {\n \n return urlS;\n }\n else if (accion==\"elim\") {\n return urlE + \"/\" + parametro;\n }else if (accion==\"alta\") {\n return urlA + \"/\" + parametro;\n }\n else{\n return url + \"/\" + parametro;;\n }\n }\n\n }", "function cargarpista1 (){\n \n}", "url(...args) {\n return getMethodUrl(this.name, this.host, this.route, args);\n }", "function eUtil() {\n\n //Get URL Parameters by name\n function getUrlParam(name){\n if(name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)')).exec(location.search))\n return decodeURIComponent(name[1]);\n }\n\n}", "function fieMetFunctionAlsParameter(eenFunctie){\n console.log(\"zo meteen wordt de doorgegeven function uitgevoerd\");\n eenFunctie();\n}", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "function hi() {\n var _ref2 = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n\n var _ref2$name = _ref2.name;\n var name = _ref2$name === undefined ? \"No\" : _ref2$name;\n var _ref2$surname = _ref2.surname;\n var s = _ref2$surname === undefined ? \"Params\" : _ref2$surname;\n\n console.log(\"Hi, \" + name + \" \" + s);\n }", "function greetArgs(name) {\n console.log(\"hello \"+name+ \" , i am from greet function\");\n}", "function otroDato(...params){\n agregarP(params);\n console.info(params);\n}", "function GraFlicUtil(paramz){\n\t\n}", "function es1(params) {\n \n}", "function funcionParametro(fn) {\n\tfn();\n}", "function karinaFaarNotifikation() {\n\n\n\n}", "function miFuncion (){}", "function miFuncion(a, b){\n console.log(arguments.length);\n console.log(\"La suma es: \" + (a+b));\n}", "function listadoFrutas(fruta1, fruta2, ...resto_de_frutas){//recibira los parametros que quiera dentro de un array (REST)\n\tconsole.log(\"fruta 1: \", fruta1);\n\tconsole.log(\"fruta 2: \", fruta2);\n\tconsole.log(resto_de_frutas);\n}", "click_extra() {\r\n }", "function wa(){}", "function myFunc(url){\n DOS.addUrl(url)\n}", "function listadoDeFrutas(fruta1, fruta2, ...resto_de_frutas){\n\tconsole.log(\"Fruta 1: \", fruta1);\n\tconsole.log(\"Fruta 2: \", fruta2);\n\tconsole.log(resto_de_frutas); // Parametro REST '...resto_de_frutas'\n}", "function parametros(nombre = \"Edgar\", apellido = \"Tarquino\", edad = 33) {\n\tvar nombre = nombre;\n\tvar apellido = apellido;\n\tvar edad = edad;\n\tconsole.log(nombre, apellido, edad);\n}", "function Go_Funciones()\n {\n if( g_listar == 1 )\n {\n Get_Marca_Producto();\n }\n \n }", "function listadoFrutas(fruta1, fruta2, ...resto_de_frutas){\n console.log(\"Fruta 1\",fruta1);\n console.log(\"Fruta 2\",fruta2);\n console.log(resto_de_frutas);\n\n}", "function newFuction2(name = 'cristian',age = '26',country = 'COL'){\n console.log(name,age,country);\n}", "function example3() {\n\n function hi() {\n for (var _len = arguments.length, fullName = Array(_len), _key = 0; _key < _len; _key++) {\n fullName[_key] = arguments[_key];\n }\n\n console.log(fullName.join(' '));\n }\n\n hi('vlad', 'argentum');\n}", "function listado_fruta(fruta1, fruta2, ...resto_frutas){\n console.log(\"fruta1: \", fruta1);\n console.log(\"fruta2: \", fruta2);\n console.log(resto_frutas);\n }", "function example1() {\n\n function hi() {\n var name = arguments.length <= 0 || arguments[0] === undefined ? \"Guest\" : arguments[0];\n\n console.log(\"Hello, \" + name);\n }\n\n hi(); // Hello, Guest\n hi('Vlad'); // Hello, Vlad\n}", "function example(param1, opt_param2, var_args){\n\t\n}", "function functionName(arguments) {\n //code here\n}", "function argsFor() {\n\n}", "function correccion(){\r\n\tir_a(ID_FORM, URL_CORRECCION);\r\n}", "Navigate(string, Variant, Variant, Variant, Variant) {\n\n }", "function nombreFuncion(parametro){\n return \"regresan algo\"\n}", "function pizzaVeg(ing1,ing2,ing3,...adiciones){// function \n console.log(\"Ingrediente 1: \",ing1);\n console.log(\"Ingrediente 2: \",ing2);\n console.log(\"Ingrediente 2: \",ing3);\n console.log(\"Adiciones: \",adiciones);\n }", "function GET(){\n \n}", "function listadoFrutas(fruta1,fruta2, ...resto_de_frutas){ // rest, recepcionar cantidad indefinida de parametros en un arreglo\r\n console.log(\"Fruta 1: \"+fruta1);\r\n console.log(\"Fruta 2: \"+fruta2);\r\n console.log(\"Frutas Extras: \"+resto_de_frutas);\r\n}", "function validator_url(x){\n \n }", "function listadoFrutas(fruta1, fruta2, ...resto_de_frutas){\n console.log(\"fruta 1: \"+ fruta1);\n console.log(\"fruta 2: \"+ fruta2);\n console.log(resto_de_frutas);\n}", "function listadoFrutas(fruta1, fruta2, ...resto_de_frutas) {\r\n console.log(`Fruta 1: ${fruta1}`);\r\n console.log(`Fruta 2: ${fruta2}`);\r\n console.log(resto_de_frutas); // se llama a la variable rest\r\n}", "function listado_frutas(fruta1, fruta2, ...resto_de_frutas){\n\tconsole.log(\"fruta 1 : \"+fruta1);\n\tconsole.log(\"fruta 2 : \"+fruta2);\n\tconsole.log(resto_de_frutas);\n}", "function mostraNome2({ nome }) {\n console.log(nome);\n}", "function linkAdminCompose(fWhere) {\r\n setUpLinkBackJSON(fWhere);;\r\n window.location.href = \"adminCompose.html\";\r\n}", "detail(...args) {\n callback(...args);\n }", "function paginaInladen(){\n buildAdminUrenLijst();\n}", "function example(fruit) {\r\n // function name\r\n // params (a.k.a. \"function signature\" -- this is where you name your params\r\n} // function body", "function Params() {\n if (currentToken() == \"(\") {\n nextToken();\n ArgList();\n if (currentToken() == \")\") {\n nextToken();\n return;\n } else {\n let errorMessage = \"Não foi encontrado o fechamento da lista de parâmetros da função\";\n handleError(errorMessage);\n nextToken();\n }\n } else {\n return;\n }\n }", "function potato(sweet, idaho){\n //does stuff\n}", "function carga(){\n\n \tlocation.href='http://108.175.15.78/listado/public/usuario';\n }", "function functionWithArgs(a,b){\n console.log(a+b);\n }", "function seite_parameter() {return window.location.href.substr(window.location.href.indexOf(fragezeichen)+1);}", "function pepe2(nombre = \"desconocido\") {\n console.log(`hola soy ${nombre}`);\n}", "function choferes(){\n window.location = config['url']+\"Administrador/modulo?vista=choferes\";\n}", "function cambiarUrl(thisObj){\n\tvar campo = thisObj.attr('name');\n\tvar valor = thisObj.val();\n\tvar nombrePath = window.location.pathname;\n\tvar parametrosInput = thisObj.parents('form').find('#parametrosUrl').val();\n\n\t\n\twindow.history.replaceState(\"object\", nombrePath, nombrePath +'?'+ parametrosInput);\n\n\tthisObj.parents('form').find('#parametrosUrl').val(parametrosInput);\n\n\tvar parametrosUrl = {};\n\tvar campoCambiado = false;\n\n\tif (location.search) {\n\t var parts = location.search.substring(1).split('&');\n\t parametrosInput = '';\n\t for (var i = 0; i < parts.length; i++) {\n\t var nv = parts[i].split('=');\n\t if (!nv[0]) continue;\n\t if(nv[0] == campo){\n\t \tnv[1] = valor;\n\t \tcampoCambiado = true;\n\t }\n\t parametrosInput = parametrosInput + ((parametrosInput)? '&' : '') + nv[0] +'='+ nv[1];\n\t //guarda los parametros en un array\n\t parametrosUrl[nv[0]] = nv[1] || true;\n\t if (campoCambiado) {\n\t \tif ( thisObj.hasClass('select_dynamic') ) { break; }\n\t }\n\t \n\t }\n\t}\n\tif (!campoCambiado) {\n\t\tparametrosInput = parametrosInput + ((parametrosInput)? '&' : '') + campo +'='+ valor;\n\t}\n \n thisObj.parents('form').find('#parametrosUrl').val(parametrosInput);\n\n\twindow.history.replaceState(\"object\", nombrePath, nombrePath +'?'+ parametrosInput);\n\t\n}", "function functionWithArgs (para1, para2) {\nconsole.log(para1 + para2);\n}", "function mostrar(cadena = '') {\n console.log(cadena)\n}", "function comprobarArgumentosFuncion (f, numArgs, tree) {\n eachBlockPre(tree, (t, args) => {\n if (t.symbolTable.NAME == f) {\n if(t.symbolTable.PARAMS.length != numArgs) {\n $('#error').html('<div><pre>\\n' + \"> Error: En la funcion \" + f + \" se esperaban \" + t.symbolTable.PARAMS.length + \" argumentos, y se recibieron \" + numArgs + '\\n</pre></div>');\n console.log(\"> Error: En la funcion \" + f + \" se esperaban \" + t.symbolTable.PARAMS.length + \" argumentos, y se recibieron \" + numArgs);\n }\n }\n }, null);\n}", "function da(){}", "function da(){}", "function da(){}", "function rutas(){\n window.location = config['url']+\"Administrador/modulo?vista=rutas\";\n}", "function getElArgomenti() {\n let rqElMatModerate = inviaRichiesta('/api/elArgomentiModerati', 'POST', {});\n rqElMatModerate.fail(function (jqXHR, test_status, str_error) {\n printErrors(jqXHR, \"#msgElArgomenti\");\n });\n rqElMatModerate.done(function (data) {\n stampaTabArgomenti(data);\n });\n}", "function saludo(nombre = 'Visitante')\r\n{\r\n return `Hola ${nombre}`\r\n}", "saludar(fn){//recepcion de funcion\n var {nombre, apellido}=this //desgrloce de variables\n console.log(`Hola me llamo ${nombre} ${apellido}`)\n if(fn){\n fn(nombre, apellido, true)\n }\n }", "function greetFn1(name) {\n console.log(name+ \" iam from greetfn 1 function \");\n}", "function fm(){}", "function cargarOpcion(form, pagina, target, param) {\r\n\tvar codigo=form.registro.value;\r\n\tif (codigo==\"\") msjError(1000);\r\n\telse {\r\n\t\tif (target==\"SELF\") cargarPagina(form, pagina);\r\n\t\telse { pagina=pagina+\"?limit=0&accion=VER&registro=\"+codigo; cargarVentana(form, pagina, param); }\r\n\t}\r\n}", "function cargarOpcion(form, pagina, target, param) {\r\n\tvar codigo=form.registro.value;\r\n\tif (codigo==\"\") msjError(1000);\r\n\telse {\r\n\t\tif (target==\"SELF\") cargarPagina(form, pagina);\r\n\t\telse { pagina=pagina+\"?limit=0&accion=VER&registro=\"+codigo; cargarVentana(form, pagina, param); }\r\n\t}\r\n}", "function listaDeFrutas(fruta1, fruta2, ...resto){ //REST\n\tconsole.log('Fruta1 ', fruta1);\n\tconsole.log('Fruta2 ', fruta2);\n\tconsole.log(resto);\n}", "function get_uri(name, title, operation, fields, category_item, insertedId, show_all) {\n \n var uri;\n if (insertedId == null) {\n uri = 'http://localhost:9000/erp/' + category_item;\n }\n else if (show_all) {\n uri = 'http://localhost:9000/erp/' + category_item;\n }\n else {\n \n uri = 'http://localhost:9000/erp/' + category_item + '/' + insertedId;\n }\n \n var return_uri = {\n \"name\": name,\n \"title\": title,\n \"method\": operation,\n \"href\": uri,\n \"type\": \"application/x-www-form-urlencoded\",\n \"fields\": fields\n };\n \n return return_uri;\n\t\n}", "function Sref() {\r\n}", "function funcEjemplo() {\n console.log(\"Ejemplo de funcion opcional\");\n}", "function fun1() {\n var a =\n typeof arguments[0] === \"undefined\" ?\n -1 : arguments[0];\n var b =\n typeof arguments[1] === \"undefined\" ?\n -1 : arguments[1];\n // return a + \"\" + b/* + arguments[5]*/;\n return a + \"\" + b;\n\n}", "function miFuncionUno (a,b){\n console.log(\"Suma: \"+ (a+b));\n // \"arguments\" is a property of objects but functions work as objects\n console.log(arguments);\n // \"arguments.length\" Number of arguments that enter the function. Can only be used inside the function.\n console.log(arguments.length); \n // \"arguments[0]\" Accesses the firtst argument position.\n console.log(arguments[0]); \n}", "function getIndiceListe() {\r\n\trequest(\"GET\", \"admin.php?methode=INDICE_liste\" , true, setData);\r\n}", "function listar(fruta1, fruta2, ...restoFrutas) {\n\n console.log(fruta1);\n console.log(fruta2);\n console.log(restoFrutas);\n}", "function nombreApellido(nombre, apellido){\n console.log(nombre + \" \" + apellido);\n}", "function AJ(url,parameters,success_param='') { AJX(url,parameters,success_param);}", "function frutaYverdura(fruta, verdura){\n console.log(fruta + \" \" + verdura)\n}", "function actividad(nombre = 'Raymundo', actividad = 'Estudiar programación'){\n console.log(`La persona ${nombre}, esta realizando\n la actividad ${actividad}`);\n}", "function india () {\n console.log(arguments); //undefined --there's still an arguments object inside the execution context\n console.log('warm')\n}", "function getElAppuntiArgomenti() {\n let rqElArgMatModerate = inviaRichiesta('/api/elAppuntiArgsModerati', 'POST', {});\n rqElArgMatModerate.fail(function (jqXHR, test_status, str_error) {\n printErrors(jqXHR, \"#msgElAppuntiArgomenti\");\n });\n rqElArgMatModerate.done(function (data) {\n stampaTabAppuntiArgomenti(data);\n });\n}" ]
[ "0.65033376", "0.6096314", "0.6016148", "0.6003371", "0.589173", "0.5852196", "0.58397096", "0.582534", "0.5794307", "0.57870114", "0.5777681", "0.57664746", "0.57450473", "0.57440597", "0.57399464", "0.5738436", "0.56987035", "0.5650792", "0.56403136", "0.56367195", "0.563093", "0.5629602", "0.5570111", "0.5566459", "0.5566459", "0.5566459", "0.5545715", "0.554034", "0.55345815", "0.5510736", "0.5491378", "0.54710895", "0.5470811", "0.5454958", "0.54547864", "0.54527855", "0.5447786", "0.5443205", "0.5439566", "0.5427079", "0.5418468", "0.54120374", "0.5409131", "0.54081196", "0.5407417", "0.5406873", "0.5393377", "0.5387172", "0.53815067", "0.53757876", "0.53680193", "0.5366995", "0.5354712", "0.53522515", "0.53482234", "0.5339017", "0.53365946", "0.5325259", "0.5321224", "0.5320647", "0.53135514", "0.5311196", "0.5308649", "0.52995986", "0.52949786", "0.52932405", "0.52913594", "0.52912384", "0.5291148", "0.5286737", "0.5280084", "0.52800506", "0.5273762", "0.5263831", "0.5259958", "0.52586335", "0.5257064", "0.5257064", "0.5257064", "0.52461284", "0.52377886", "0.5237145", "0.52350163", "0.5218657", "0.52120626", "0.5210609", "0.5210609", "0.5204966", "0.52037257", "0.5196048", "0.51893437", "0.51830775", "0.51823545", "0.51785475", "0.517654", "0.51749974", "0.5174799", "0.5170887", "0.51704216", "0.51649594", "0.5162613" ]
0.0
-1
29. Mengembalikan nilai fungsi fungsi untuk menghitung luas lingkaran
function luasLingkaran(length) { return 1/4 * 3.14 * length * length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lalalala() {\n\n}", "function karinaFaarNotifikation() {\n\n\n\n}", "function hitungLuasPersegiPanjang (panjang,lebar){\n //tidak ada nilai balik\n var luas = panjang * lebar\n return luas\n}", "fungsiMakan() {\n return `Blubuk kelas parent di ambil alih blubuk ini`;\n }", "function hitungLuasSegiEmpat(sisi){\n //tidak ada nilai balik\n var luas = sisi * sisi\n return luas\n}", "function cetakPesan(nama, bahasa='id')\n{\n var pesan = 'Selamat datang, ' + nama;\n if(bahasa == 'en')\n {\n pesan = 'Welcome, ' + nama;\n }\n else if(bahasa=='id'){\n console.log(pesan);\n }\n console.log('Mohon maaf bahasa yang diminta belum terdaftar');\n}", "function panggilSimpanRecord(){\n\n }", "function IndicadorRangoEdad () {}", "function f_TB_KH_LoadKhaiBaoDuAn_XemChiTiet(config, para, lst) {\n try {\n var p = getAllIdMod();\n var data = lst.data[0].kq0[0];\n \n\n $(\"#txtMaduanHead_nhapxct\").html(\"Thông tin chi tiết dự án \" + data.projectname);\n setValToTxt('cb_banmien_ct_da', data.banmien);\n setValToTxt('txtmaduan_ct_da', data.maduan);\n setValToTxt('txttenduan_ct_da', data.projectname);\n setValToTxt('txtthoigian_ct_da', data.thoigiangh);\n setValToTxt('txtghichu_ct_da', data.ghichu);\n \n $(\"#myTableData_nhapdact\").empty();\n $.each(lst.data[1].kq1, function (key, val) {\n var row = \"\";\n row += \"<tr><td>\"\n + val.dienluc + \"</td><td>\"\n + val.typedevicename + \"</td><td>\"\n + val.tenvattu + \"</td><td>\"\n + val.countdivice + \"</td><td>\"\n + val.ghichu + \"</td>\"\n \"</tr>\";\n $(\"#myTableData_nhapdact\").append(row);\n });\n\n \n } catch (e) {\n console.log(e);\n }\n}", "function kaliTerusRekursif(angka) {\r\n // you can only write your code here!\r\n let angkaString = angka.toString();\r\n let hasil = kaliRekursif(angka);\r\n let hasilString = hasil.toString();\r\n if(hasilString.length > 1){\r\n hasil = kaliTerusRekursif(hasil);\r\n }\r\n return hasil;\r\n \r\n}", "function fuctionPanier(){\n\n}", "function miFuncion(){}", "function miFuncion(){}", "function miFuncion(){}", "function TinhTien() {\n //Lay loai xe\n var loaiXe = LayloaiXe();\n console.log(loaiXe);\n //Lay thoi gian cho\n var tgCho = getEle('tgCho').value;\n //lay so km\n var soKM = getEle('soKm').value;\n var tongHoaDon = 0;\n //Tinh theo loai xe\n switch (loaiXe) {\n case 'uberX':\n tongHoaDon = TinhTheoLoaiXe(soKM, tgCho, UberX_1, UberX_2, UberX_3, tgCho_UberX);\n break;\n case 'uberSUV':\n tongHoaDon = TinhTheoLoaiXe(soKM, tgCho, UberSUV_1, UberSUV_2, UberSUV_3, tgCho_UberSUV);\n break;\n case 'uberBlack':\n tongHoaDon = TinhTheoLoaiXe(soKM, tgCho, UberBlack_1, UberBlack_2, UberBlack_3, tgCho_UberBlack);\n break;\n default:\n break;\n }\n}", "function cargarpista1 (){\n \n}", "function klikni(){\n console.log(\"kliknuto\");\n}", "function onloevha() {\n}", "function mostraNotas(){}", "function Guarda_Clics_AFN_Menos()\r\n{\r\n\tGuarda_Clics(4,0);\r\n}", "function miFuncion (){}", "function PlcGeral(){\r\n}", "function Ha(){}", "function ucapSalam() {\n return \"Selamat Siang\"; //return nilai harus membuat satu variable utk meyimpan nilai yang akan di return\n}", "function hitungLuasSegitiga(alas,tinggi) {\n var luas = 1/2 * alas * tinggi;\n\n return luas;\n\n}", "function lihat(klihat){\n\t\t\tvar url=\"./crud/cetak/lihat.php\";\n\t\t\tvar post=\"klihat=\"+klihat;\n\t\t\tvar response=\"lihat\";\n\t\t\tajax(url,post,response);\n\t\t\t}", "function hitungLuasPersegi(sisi) {\n var luas = sisi * sisi;\n return luas;\n}", "function dtkSisaView(){\n\t\t$.ajax({\n\t\t\turl:dir,\n\t\t\tdataType:'json',\n\t\t\tdata:'aksi=viewSisa',\n\t\t\tsuccess:function(data){\n\t\t\t\tvar func, info, tb, no=1,total=0;\n\t\t\t\tvar sisaStatus = data.sisaStatus;\n\n\t\t\t\tif(sisaStatus=='valid'){ //valid\n\t\t\t\t\tif(data.punya=='nn' || data.punya=='yn'){ // tidak punya sisa dan belum naik pangkat\n\t\t\t\t\t\tinfo='<label class=\"label label-success\"> VALID</label> <i class=\"icon-ok\"></i>';\n\t\t\t\t\t\tinfo2='<p style=\"color:blue;\">* sisa poin hanya berlaku 1 x pengajuan </p>';\n\t\t\t\t\t}else{\n\t\t\t\t\t\tinfo='';\n\t\t\t\t\t\tinfo2='';\n\t\t\t\t\t}\n\t\t\t\t}else{ //invalid\n\t\t\t\t\tif(data.punya=='nn' || data.punya=='yn'){ // tidak punya sisa dan belum naik pangkat\n\t\t\t\t\t\tinfo='<label class=\"label label-warning\"> BELUM VALID</label> <i class=\"icon-warning-sign\"></i>';\n\t\t\t\t\t\tinfo2='';\n\t\t\t\t\t\t// info2='<p style=\"color:red;\">* sisa poin anda belum dapat digunakan sebelum validasi (berkas) ke administrator </p>';\n\t\t\t\t\t}else{ // ny , yy\n\t\t\t\t\t\tinfo='';\n\t\t\t\t\t\tinfo2='';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttb \t='<h4>Sisa Poin Pengajuan Sebelumnya '+info+'</h4>'\n\t\t\t\t\t\t+'<table class=\"table table-striped table-hover\">'\n\t\t\t\t\t\t\t+'<tr class=\"info\"><td>Kategori</td><td>sisa poin</td></tr>';\n\t\t\t\t$.each(data.sisaArr,function(id,item){\n\t\t\t\t\tvar sisax,remainTool,remainClr;\n\t\t\t\t\ttotal=parseFloat(total)+parseFloat(item.sisa1);\t\n\t\t\t\t\t//fungsi add / edit\n\t\t\t\t\t\tif(item.sisa2==null){ //add\n\t\t\t\t\t\t\tfunc='dtkSisaAdd('+no+','+item.idkatkeg+')';\n\t\t\t\t\t\t}else{ //edit\n\t\t\t\t\t\t\tfunc='dtkSisaEdit('+no+','+item.iddtksisa+','+item.sisa1+')';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t//valid / invalid / no\n\t\t\t\t\t\tif(sisaStatus=='valid'){ //valid\n\t\t\t\t\t\t\tsisax =item.sisa1;\n\t\t\t\t\t\t}else if(sisaStatus=='invalid' || sisaStatus=='no'){ //invalid\n\t\t\t\t\t\t\tif(data.punya=='nn' || data.punya=='yn'){ // tidak punya sisa dan belum naik pangkat\n\t\t\t\t\t\t\t\tsisax ='<a href=\"javascript:'+func+'\"> '+item.sisa1+'</a>';\n\t\t\t\t\t\t\t}else{ // ny, yy\n\t\t\t\t\t\t\t\tsisax =item.sisa1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// alert(sisax);return false;\n\t\t\t\t\t//tooltip terpakai / masih ada\n\t\t\t\t\t\t// if(item.remain==0){\n\t\t\t\t\t\t// \tremainIcon='<i class=\"icon-ok\"></i>';\n\t\t\t\t\t\t// \tremainTool=' onmouseover=\"return tooltipx(this);\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\"habis terpakai\" ';\n\t\t\t\t\t\t// \tremainClr=' class=\"success\"';\n\t\t\t\t\t\t// }else{\n\t\t\t\t\t\t\tremainIcon='<i class=\"icon-asterisk\"></i>';\n\t\t\t\t\t\t\tremainTool='';\n\t\t\t\t\t\t\tremainClr='';\n\t\t\t\t\t\t// }\n\n\t\t\t\t\ttb+='<tr '+remainClr+' '+remainTool+'>'\n\t\t\t\t\t\t+'<td>'+remainIcon+' '+item.katkeg+'</td>'\n\t\t\t\t\t\t+'<td id=\"sisaTD_'+no+'\">:<b>'+sisax+'</b></td>'\n\t\t\t\t\t+'</tr>';\n\t\t\t\t\tno++;\n\t\t\t\t});\n\t\t\t\ttb+='<tr class=\"info\"><td ><b class=\"pull-right\">Total</b></td><td>:<b> '+total.toFixed(2)+'</b></td></tr>'\n\t\t\t\t\t+'</table>'\n\t\t\t\t\t+'<div id=\"infoSisa\"></div>'\n\t\t\t\t\t+info2\n\t\t\t\t$('#popMeDV').html(tb);\n\t\t\t}\n\t\t});\n\t}", "function funcionPorDefinicion(){\n //Body\n }", "function beetle_lvl3() {}", "function daftar_jadwal_mhs(tdy,thn,all){\n $('#box-jadwal div.overlay').fadeIn();\n collapse_box('#box-jadwal, #box-jadwal .box');\n $('#box-jadwal').find('div.overlay').fadeIn();\n if (thn != null || tdy == null) {\n var colspan = 9;\n $('#box-kelas-mhs').slideUp();\n }\n else{\n var colspan = 6;\n }\n\n if ($('table.tbl-data-jadwal tbody tr').length > 0) {\n $('table.tbl-data-jadwal').find('tbody').prepend('<tr class=\"table-load\"><td class=\"text-center load-data\" colspan=\"'+colspan+'\">Memproses Data</td></tr>');\n }\n else{\n $('table.tbl-data-jadwal').find('tbody').html('<tr class=\"table-load\"><td class=\"text-center load-data\" colspan=\"'+colspan+'\">Memproses Data</td></tr>');\n }\n var detail_jadwal = getJSON_async(protocol + '//'+host+path_home+'/action/ambil',{data:'daftar_jadwal_mhs',d:tdy,thn:thn,all:all},500);\n detail_jadwal.then(function(detail_jadwal){\n if (tdy ==true) {\n $('#box-jadwal .box-title').html('<li class=\"fa fa-list\"></li> Jadwal Kuliah Hari '+detail_jadwal.hari_i);\n }\n if (detail_jadwal.record_jadwal != '') {\n $('table.tbl-data-jadwal').find('tbody').text('');\n $('#box-jadwal .tahun-ajaran-jad').html('<li class=\"fa fa-book\"></li> '+detail_jadwal.record_jadwal[0]['thn_ajaran']);\n $('#box-jadwal .jumlah-jadwal-jad').html('<li class=\"fa fa-list\"></li> '+detail_jadwal.count_jadwal_ptk['count_ptk_jdl']);\n $('#box-jadwal .jumlah-kls-jad').html('<li class=\"fa fa-building-o\"></li> '+detail_jadwal.count_jadwal_ptk['count_ptk_kls']);\n $.each(detail_jadwal.record_u, function(index,data_u){\n var no = 1,loop = 1,loop_row=1,dt_kelas,kelas,no_kelas;\n $.each(detail_jadwal.record_kelas, function(index, data_kelas){\n if (loop_row == 1 && data_kelas.jenis_jdl == 0 || loop_row == loop && data_kelas.jenis_jdl == 0) {\n var row_color = ' style=\"background-color:#f9f9f9;\"';\n loop++;\n loop++;\n }\n else{\n var row_color = '';\n }\n if (data_u.jenis_jdl == data_kelas.jenis_jdl && data_u.jenis_jdl == 0) {\n dt_kelas = data_kelas.semester+'/'+data_kelas.kelas;\n no = 1;\n $.each(detail_jadwal.record_jadwal, function(index,data_record){\n if (data_record.nama_mk == null || data_record.nama_mk == '') {\n data_record.nama_mk = '-';\n data_record.jml_sks = '-';\n }\n if (data_record.nama_ptk == null || data_record.nama_ptk == '') {\n data_record.nama_ptk = '-';\n }\n kelas = data_record.semester+'/'+data_record.kelas;\n if (kelas == dt_kelas && data_record.jenis_jdl == data_u.jenis_jdl) {\n if (tdy != true) {\n var hari = ' <td class=\"text-center\">'+data_record.hari_jdl+'</td>';\n var pd = ' <td class=\"text-center\"><li class=\"fa fa-users\" title=\"Jumlah mahasiswa kelas '+data_record.semester+'/'+data_record.kelas+'\"></li> '+data_record.jml_mhs+' <li class=\"fa fa-male\" title=\"Jumlah mahasiswa laki-laki kelas '+data_record.semester+'/'+data_record.kelas+'\"></li> '+data_record.jml_lk+' <li class=\"fa fa-female\" title=\"Jumlah mahasiswa perempuan kelas '+data_record.semester+'/'+data_record.kelas+'\"></li> '+data_record.jml_pr+'</td>'\n +' <td class=\"text-center\"><button class=\"btn btn-warning btn-sm view-kelas\" value=\"'+data_record.jdl_in+'\" title=\"Lihat daftar mahasiswa kelas '+data_record.semester+'/'+data_record.kelas+' mata kuliah '+data_record.nama_mk+'\"><i class=\"fa fa-list\"></i></button></td>';\n }\n if (no == 1) {\n $('table.tbl-data-jadwal').find('tbody').append(\n '<tr'+row_color+'>'\n +' <td rowspan=\"\" class=\"kelas-row'+data_record.jdl_no+' text-center\">'+data_record.semester+'/'+data_record.kelas+'</td>'\n +hari\n +' <td class=\"text-center\">'+data_record.jam_mulai_jdl+' - '+data_record.jam_akhir_jdl+'</td>'\n +' <td>'+data_record.nama_mk+'</td>'\n +' <td class=\"text-center\">'+data_record.jml_sks+'</td>'\n +' <td class=\"text-center\">'+data_record.ruang+'</td>'\n +' <td>'+data_record.nama_ptk+'</td>'\n +pd\n +'</tr>' \n );\n no_kelas = data_record.jdl_no;\n }\n else{\n $('table.tbl-data-jadwal').find('tbody').append(\n '<tr'+row_color+'>'\n +hari\n +' <td class=\"text-center\">'+data_record.jam_mulai_jdl+' - '+data_record.jam_akhir_jdl+'</td>'\n +' <td>'+data_record.nama_mk+'</td>'\n +' <td class=\"text-center\">'+data_record.jml_sks+'</td>'\n +' <td class=\"text-center\">'+data_record.ruang+'</td>'\n +' <td>'+data_record.nama_ptk+'</td>'\n +pd\n +'</tr>' \n );\n }\n no++;\n }\n });\n $('table.tbl-data-jadwal .kelas-row'+no_kelas+'').attr('rowspan',no-1);\n loop_row++;\n }\n else if (data_u.jenis_jdl != 0){\n dt_kelas = data_kelas.semester+'/'+data_kelas.kelas;\n $.each(detail_jadwal.record_jadwal, function(index,data_record){\n if (data_record.nama_mk == null || data_record.nama_mk == '') {\n data_record.nama_mk = '-';\n data_record.jml_sks = '-';\n }\n kelas = data_record.semester+'/'+data_record.kelas;\n if (kelas == dt_kelas && data_record.jenis_jdl == data_u.jenis_jdl) {\n if (tdy != true) {\n var colspan= '9';\n var hari = ' <td class=\"text-center\">'+data_record.hari_jdl+'</td>';\n var pd = ' <td class=\"text-center\"><li class=\"fa fa-users\" title=\"Jumlah mahasiswa kelas '+data_record.semester+'/'+data_record.kelas+'\"></li> '+data_record.jml_mhs+' <li class=\"fa fa-male\" title=\"Jumlah mahasiswa laki-laki kelas '+data_record.semester+'/'+data_record.kelas+'\"></li> '+data_record.jml_lk+' <li class=\"fa fa-female\" title=\"Jumlah mahasiswa perempuan kelas '+data_record.semester+'/'+data_record.kelas+'\"></li> '+data_record.jml_pr+'</td>'\n +' <td class=\"text-center\"><button class=\"btn btn-warning btn-sm view-kelas\" value=\"'+data_record.jdl_in+'\" title=\"Lihat daftar mahasiswa kelas '+data_record.semester+'/'+data_record.kelas+' mata kuliah '+data_record.nama_mk+'\"><i class=\"fa fa-list\"></i></button></td>';\n }\n else{\n var colspan= '6';\n }\n if (no == 1) {\n $('table.tbl-data-jadwal').find('tbody').append(\n '<tr>'\n +' <td colspan=\"'+colspan+'\" align=\"left\"><b>Konsentrasi '+data_record.nm_konsentrasi+'</b></td>'\n +'</tr>' \n +'<tr>'\n +' <td rowspan=\"\" class=\"text-center\">'+data_record.semester+'/'+data_record.kelas+'</td>'\n +hari\n +' <td class=\"text-center\">'+data_record.jam_mulai_jdl+' - '+data_record.jam_akhir_jdl+'</td>'\n +' <td>'+data_record.nama_mk+'</td>'\n +' <td class=\"text-center\">'+data_record.jml_sks+'</td>'\n +' <td class=\"text-center\">'+data_record.ruang+'</td>'\n +' <td>'+data_record.nama_ptk+'</td>'\n +pd\n +'</tr>' \n );\n }\n else{\n $('table.tbl-data-jadwal').find('tbody').append(\n '<tr>'\n +' <td rowspan=\"\" class=\"text-center\">'+data_record.semester+'/'+data_record.kelas+'</td>'\n +hari\n +' <td class=\"text-center\">'+data_record.jam_mulai_jdl+' - '+data_record.jam_akhir_jdl+'</td>'\n +' <td>'+data_record.nama_mk+'</td>'\n +' <td class=\"text-center\">'+data_record.jml_sks+'</td>'\n +' <td class=\"text-center\">'+data_record.ruang+'</td>'\n +' <td>'+data_record.nama_ptk+'</td>'\n +pd\n +'</tr>' \n );\n }\n no++;\n }\n });\n }\n });\n });\n }\n else{\n if (detail_jadwal.c_thn_ajaran != '-') {\n if (tdy == true) {\n $('table.tbl-data-jadwal tbody').html('<tr><td colspan=\"6\" align=\"center\">Untuk hari ini anda tidak memiliki jadwal kuliah</td></tr>');\n }\n else{\n $('table.tbl-data-jadwal tbody').html('<tr><td colspan=\"9\" align=\"center\">Untuk tahun akademik ini anda tidak memiliki jadwal kuliah</td></tr>');\n }\n }\n else {\n if (tdy == true) {\n $('table.tbl-data-jadwal tbody').html('<tr><td colspan=\"6\" align=\"center\">Untuk saat ini tidak ada tahun akademik yang diterapkan</td></tr>');\n }\n else{\n $('table.tbl-data-jadwal tbody').html('<tr><td colspan=\"9\" align=\"center\">Untuk saat ini tidak ada tahun akademik yang diterapkan</td></tr>');\n }\n }\n }\n $('.tamp-jadwal, .tamp-all-jadwal').find('i').removeClass('fa-circle-o-notch fa-spin').addClass('fa-list');\n $('#box-jadwal').find('div.overlay').fadeOut();\n }).catch(function(error){\n $('#box-jadwal').find('div.overlay').fadeOut();\n $('.tamp-jadwal, .tamp-all-jadwal').find('i').removeClass('fa-circle-o-notch fa-spin').addClass('fa-list');\n if ($('table.tbl-data-jadwal tbody tr.table-load').length == 1) {\n $('table.tbl-data-jadwal tbody tr.table-load td').html('Terjadi kesalahan, <b>Error '+error.status+': '+error.statusText+'</b>');\n }\n setTimeout(function(){\n $('table.tbl-data-jadwal tbody tr.table-load').remove();\n },2000);\n });\n }", "function profil(nama, kota, lahir)\n{\n console.log('Nama saya ' + nama + '<br/>');\n console.log('Saya berasal dari kota ' + kota + '<br/>');\n console.log('Lahir pada tahun '+ lahir + '<br/>');\n \n}", "function munculkanAngkaDua() {\n return 2;\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()", "liikuta(nimi, suunta){\n for (var i = 0; i < this.hahmot.length; i++){\n var h = this.hahmot[i];\n if (h.nimi == nimi) {\n if (suunta == suunnat.OIKEA) {\n if (this.onkoEtanoita(h.x + 1,h.y)) return;\n if (++h.x >= this.leveys) {\n h.x = 0;\n }\n }\n if (suunta == suunnat.VASEN) {\n if (this.onkoEtanoita(h.x - 1,h.y)) return;\n if (--h.x < 0) {\n h.x = this.leveys - 1;\n }\n }\n if (suunta == suunnat.YLOS) {\n if (this.onkoEtanoita(h.x,h.y - 1)) return;\n if (--h.y < 0) {\n h.y = 0;\n }\n }\n if (suunta == suunnat.ALAS) {\n if (this.onkoEtanoita(h.x, h.y + 1)) return;\n if (++h.y >= this.korkeus) {\n h.y = this.korkeus - 1;\n }\n }\n }\n } \n if (typeof this.pelihahmo == 'undefined') return;\n var h = this.pelihahmo;\n if (h.nimi == nimi) {\n if (suunta == suunnat.OIKEA) {\n if (++h.x >= this.leveys) {\n h.x = 0;\n }\n pisteet++;\n }\n if (suunta == suunnat.VASEN) {\n if (--h.x < 0) {\n h.x = this.leveys - 1;\n }\n pisteet--;\n }\n if (suunta == suunnat.YLOS) {\n if (--h.y < 0) {\n h.y = 0;\n }\n }\n if (suunta == suunnat.ALAS) {\n if (++h.y >= this.korkeus) {\n h.y = this.korkeus - 1;\n }\n }\n }\n }", "function Komunalne() {}", "function getStatusNPL(angka, param1, param2, param3, param4) {\n\n let hasil;\n\n if (angka >= param4) {\n hasil = \"Tidak Tercapai\";\n } else if (angka >= param3) {\n hasil = \"Hampir Tercapai\";\n } else if (angka >= param2) {\n hasil = \"Tercapai\";\n } else if (angka >= param1) {\n hasil = \"Sangat Tercapai\";\n } else {\n hasil = \"status 404\";\n }\n\n return hasil;\n}", "function wa(){}", "function mojaFunkcija(){\n console.log('Zdarvo svete!');\n}", "function beetle_lvl1() {}", "function beetle_lvl2() {}", "function tampilkan() {\n console.log(\"halo!\");\n}", "function hitungLuasSegiTiga(alas,tinggi){\n var luas = 0.5 * alas * tinggi\n return luas\n}", "function beetle_lvl4() {}", "function fertilizers_nutrient_agricultural_use(){\n a_FAO_i='fertilizers_nutrient_agricultural_use';\n initializing_change();\n change();\n}", "function Maisons(){\n \n }", "function klikHeader() {\n console.log(\"kliknąłeś w heaader\");\n}", "replacerChangNiveau(){\n this.viderLaFile();\n this.cellule = this.jeu.labyrinthe.cellule(0,0);\n this.direction = 1;\n\t\t\t\tthis.vitesse = 0;\n }", "function amelioration(){\n return nbMultiplicateurAmelioAutoclick +9;\n}", "function teriak() {\n // Tulis Code mulai di sini\n document.getElementById(\"jawaban1\").innerHTML = \"Aku Teriak\"\n // Tampilkan dengan cara document.getElementById(\"jawaban1\").innerHTML seperti di CONTOH.\n }", "function fun1(){} //toda a função de js retorna alguma coisa", "function Guarda_Clics_EMN_Menos()\r\n{\r\n\tGuarda_Clics(2,0);\r\n}", "function menuMahasiswa() {\nconsole.log(`\n===========================================================\nSilahkan pilih opsi di bawah ini\n[1] daftar murid\n[2] cari murid\n[3] tambah murid\n[4] hapus murid\n[5] kembali\n===========================================================\n`);\n\n rl.question('masukan salah satu no. dari opsi diatas: ', (answer) => {\n switch (answer) {\n case \"1\":\n daftarMurid();\n break;\n case \"2\":\n cariMurid();\n break;\n case '3':\n tambahMurid();\n break;\n case '4':\n hapusMurid();\n break;\n case '5':\n mainMenu();\n break;\n\n default:\n break;\n }\n\n });\n\n}", "function comportement (){\n\t }", "function buatKalimat(nama, umur, alamat, hobi) {\n // Code kamu mulai dari sini\n var kalimat = \"Nama saya \" + nama + \", Umur \" + umur + \" Bertempat tinggal di \" + alamat + \", hobi saya \" + hobi;\n // Tampilkan dengan cara document.getElementById(\"jawaban3\").innerHTML seperti di CONTOH.\n document.getElementById(\"jawaban3\").innerHTML = kalimat;\n }", "function iniciar() {\n \n }", "function Go_Funciones()\n {\n if( g_listar == 1 )\n {\n Get_Marca_Producto();\n }\n \n }", "function livestock_manure(){\n a_FAO_i='livestock_manure';\n initializing_change();\n change();\n}", "function beetle_lvl5() {}", "function User_Update_Villes_Liste_des_villes0(Compo_Maitre)\n{\n var Table=\"ville\";\n var CleMaitre = Compo_Maitre.getCleVal();\n var NomCleMaitre = DePrefixerChamp(Compo_Maitre.getCle());\n var vi_nom=GetValAt(126);\n if (!ValiderChampsObligatoire(Table,\"vi_nom\",TAB_GLOBAL_COMPO[126],vi_nom,false))\n \treturn -1;\n if (!ValiderChampsType(Table,\"vi_nom\",TAB_GLOBAL_COMPO[126],vi_nom))\n \treturn -1;\n var ct_numero=GetValAt(127);\n if (ct_numero==\"-1\")\n ct_numero=\"null\";\n if (!ValiderChampsObligatoire(Table,\"ct_numero\",TAB_GLOBAL_COMPO[127],ct_numero,true))\n \treturn -1;\n var Req=\"update \"+Table+\" set \";\n Req+=\"vi_nom=\"+(vi_nom==\"\" ? \"null\" : \"'\"+ValiderChaine(vi_nom)+\"'\" )+\",ct_numero=\"+ct_numero+\"\";\n Req+=\" where \"+NomCleMaitre+\"=\"+CleMaitre;\n\n if (pgsql_update(Req)==0)\n\talert(\"Echec lors de la mise à jour\");\nreturn CleMaitre;\n\n}", "function etsiLajiHavainnot(laji){\n\t\tvar aputaulukko=[];\n\t\tfor(var i in havainnotTaulukko){ \t\t\t\t//käydään kaikki havainnot läpi yksi kerrallaan\n\t\t\tif (havainnotTaulukko[i].laji==laji){\t\t//jos objektin lajinimi vastaa parametrina saatua nimeä\n\t\t\t\taputaulukko.push(havainnotTaulukko[i]);\t//objekti aputaulukkoon\n\t\t\t}\n\t\t}\n\t\thavainnotTaulukko=aputaulukko;\t\t\t\t\t//havaintoTaulukosta lajikohtainen\n\t}", "function llogarit()\n{\n\n\tmerr();\n\n\tvar piket = 0;\n\n\tvar shumaKrediteve = 0;\n\n\tfor( var i = 0; i < fushatAktive.length; i++ )\n\t{\t\n\n\t\tvar kredit = LENDET[ fushatAktive[ i ].pozicioni ].kreditet;\n\n\t\tpiket += kredit * fushatAktive[ i ].vlera;\n\n\t\tshumaKrediteve += kredit;\n\n\t}\n\n\tif( gabim == true )\n\t{\n\n\t\tdocument.getElementById( \"pergjigja\" ).innerHTML = mesazhGabimi;\n\t}\n\telse\n\t{\t\n\t\tvar mesatarja = piket / shumaKrediteve;\n\n\t\tvar string = \"<br>Piket: \" + piket + \"<br>Kreditet: \" + shumaKrediteve + \"<br><b>Mesatarja: \" + mesatarja.toFixed( 2 ) + \"</b>\";\n\n\t\tdocument.getElementById( \"pergjigja\" ).innerHTML = string;\n\t}\n\n\t/// ngrirja e butonave\n\tdocument.querySelector( \"button\" ).disabled = true ;\n\n\tgabim = false;\n\n\tfushatAktive = [];\n}///FUND llogarit", "function mostrarPalabra(){\n \n}", "function KenalanV3 (nama, hobi) {\n console.log(`Hello, Nama Saya ${nama}`)\n console.log(`Saya Suka ${hobi}`)\n console.log(`Sekian`)\n}", "function anhadir() {\n k.anhadirDatos();\n}", "function load_danhsachmucluc(idphong) {\n $http({\n method: 'GET',\n url: '/chinhlytailieu/nhapmucluc_loaddanhsach',\n data: { id: idphong }\n }).then(function (response) {\n $scope.mucluc = response.data;\n }, function (response) {\n alert('Không tải được danh sách mục lục');\n })\n }", "function inisialisasi(){\n\ttoastr.info('Hai! Mari main!');\n\t$(\"#container\").html(\"\");\n\t$(\"#container\").append(\"<span align='center'> NAMA </span> <input type='text' placeholder='Nama Kamu' id='namaIN'> <br /> <br /> <button type='button' class='btn' id='submitIN'>MULAI</button>\");\n\t$(\"#container\").append(\"<br /> <br /> <div id='TEKS_INTRO'>\"+TEKS_INTRO+\"</div>\");\n\t\t\n\t$('#submitIN').click(function(){\n\t\tvar n = $('#namaIN').val();\n\t\tvar valid = false;\n\t\tfor(i in n){\n\t\t\tif('abcdefghijklmnopqrstuvwxyz'.indexOf(n[i].toLowerCase()) > -1){\n\t\t\t\tvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(valid){\n\t\t\tquestion = makeQuestion();\n\t\t\tstanding = makeStanding();\n \t\tstanding['n'] = n;\n \t\tdisplayBoard();\n \t\t} else {\n\t\t\ttoastr.error('Nama harus mengandung huruf.');\n\t\t}\n \t});\n\treturn null;\n}", "function TinhTheoLoaiXe(sokm, tgcho, giaLoai1, giaLoai2, giaLoai3, tgChoTheoLoai) {\n var tien = 0;\n if (sokm <= 1) {\n tien = sokm * giaLoai1 + tgcho * tgChoTheoLoai;\n // console.log(tien);\n } else if (sokm > 1 && sokm < 21) {\n tien = giaLoai1 + (sokm - 1) * giaLoai2 + tgcho * tgChoTheoLoai;\n // console.log(tien);\n } else if (sokm >= 21) {\n tien = giaLoai1 + 19 * giaLoai2 + (sokm - 20) * giaLoai3 + tgcho * tgChoTheoLoai;\n // console.log(tien);\n }\n return document.getElementById('xuatTien').innerHTML = tien + ' vnđ';\n}", "function ui(e,t,n,a){var i={s:[\"थोडया सॅकंडांनी\",\"थोडे सॅकंड\"],ss:[e+\" सॅकंडांनी\",e+\" सॅकंड\"],m:[\"एका मिणटान\",\"एक मिनूट\"],mm:[e+\" मिणटांनी\",e+\" मिणटां\"],h:[\"एका वरान\",\"एक वर\"],hh:[e+\" वरांनी\",e+\" वरां\"],d:[\"एका दिसान\",\"एक दीस\"],dd:[e+\" दिसांनी\",e+\" दीस\"],M:[\"एका म्हयन्यान\",\"एक म्हयनो\"],MM:[e+\" म्हयन्यानी\",e+\" म्हयने\"],y:[\"एका वर्सान\",\"एक वर्स\"],yy:[e+\" वर्सांनी\",e+\" वर्सां\"]};return a?i[n][0]:i[n][1]}", "function livestock_heads(){\n a_FAO_i='livestock_heads';\n initializing_change();\n change();\n}", "function sveikinuosi( funkcijosPavadinimas ){\n console.log(\"Labutaitis\");\n if (funkcijosPavadinimas != null && funkcijosPavadinimas != undefined) {\n funkcijosPavadinimas();\n }\n}", "function Guarda_Clics_AFF_Menos()\r\n{\r\n\tGuarda_Clics(5,0);\r\n}", "function InitValues_Framework_L0(){\n // You must make some text.\n \n}", "function InitValues_Framework_L0(){\n // You must make some text.\n \n}", "function land_use(){\n a_FAO_i='land_use';\n initializing_change();\n change();\n}", "function bodoAmat(){\r\n console.log(\"Ini result Function Bodo Amat\");\r\n}", "function paginaInladen(){\n buildAdminUrenLijst();\n}", "function getTahun() {\n karyawanid = document.getElementById('karyawanId').value;\n param = \"proses=getTahun\";\n param += \"&karyawanid=\"+karyawanid;\n tujuan='sdm_slave_ijin_meninggalkan_kantor.php';\n post_response_text(tujuan, param, respog);\n function respog()\n {\n if(con.readyState==4)\n {\n if (con.status == 200) {\n busy_off();\n if (!isSaveResponse(con.responseText)) {\n alert('ERROR TRANSACTION,\\n' + con.responseText);\n }\n else {\n dataTahun = JSON.parse(con.responseText);\n\n // menghilangkan semua pilihan\n var select = document.getElementById(\"periodec\");\n var length = select.options.length;\n for (i = length-1; i >= 0; i--) {\n select.options[i] = null;\n }\n \n var i = 0\n select.options[select.options.length] = new Option(\"Pilih Data\");\n for(index in dataTahun) {\n select.options[select.options.length] = new Option(dataTahun[i].periodecuti, dataTahun[i].periodecuti);\n i++;\n }\n\n }\n }\n else {\n busy_off();\n error_catch(con.status);\n }\n }\t\n } \t\n}", "function daftar_kelas_mhs(kelas){\n $('#box-kelas-mhs').fadeIn();\n collapse_box('#box-kelas-mhs');\n $('#box-kelas-mhs').find('div.overlay').fadeIn();\n $('.tbl-daftar-kelas-mhs').find('tbody').html('<tr><td colspan=\"5\" align=\"center\" class=\"load-data\">Memproses Data</td></tr>');\n var detail_kelas = getJSON_async(protocol + '//'+host+path_home+'/action/ambil',{kelas:kelas,data:'daftar_kelas_mhs'},500);\n detail_kelas.then(function(detail_kelas){\n if (detail_kelas.record_kelas != '') {\n $('#box-kelas-mhs').find('div.overlay').fadeOut();\n $('html, body').animate({scrollTop:$('#box-kelas-mhs').offset().top - 55},800);\n var status_ak;\n $.each(detail_kelas.record_kelas, function(index, data_record){\n $.each(data_record, function(index, data_record){\n if (data_record == null || data_record == '') {\n data_record = '-';\n }\n $('.detail-kelas .detail-kelas-'+index).text(data_record);\n });\n if (data_record.jenis_jdl != 0) {\n $('.detail-kelas .detail-kelas-nama_mk').text(data_record.nama_mk+' (Konsentrasi '+data_record.nm_konsentrasi+')');\n }\n status_ak = data_record.status_jdl;\n });\n if (detail_kelas.record_mhs != '') {\n $('.tbl-daftar-kelas-mhs').find('tbody').text('');\n var no = 1,\n check;\n $.each(detail_kelas.record_mhs, function(index, data_record){\n if (data_record.jk == 'L') {\n var jk = 'Laki-Laki';\n }\n else{\n var jk = 'Perempuan';\n }\n $('table.tbl-daftar-kelas-mhs').find('tbody').append(\n '<tr>'\n +' <td class=\"text-center\">'+no+'</td>'\n +' <td class=\"text-center\">'+data_record.nisn+'</td>'\n +' <td>'+data_record.nama+'</td>' \n +' <td class=\"text-center\">'+jk+'</td>'\n +' <td class=\"text-center\">'+data_record.tahun_angkatan+'</td>'\n +'</tr>' \n );\n no++;\n });\n }\n else{\n $('.tbl-daftar-kelas-mhs').find('tbody').html('<tr><td colspan=\"5\" align=\"center\">Untuk sekarang kelas ini belum memiliki mahasiswa</td></tr>');\n }\n }\n else{\n swal({\n title:'Info',\n text: 'Kelas yang anda pilih tidak terdaftar dalam database!',\n type:'info',\n timer: 2000\n });\n }\n $('.view-kelas').find('i').removeClass('fa-circle-o-notch fa-spin').addClass('fa-list');\n $('.check-status-mhs-kls').bootstrapToggle({\n on:'<i class=\"fa fa-check-circle\"></i> Aktif',\n off:'<i class=\"fa fa-ban\"></i> Tidak Aktif',\n size:'small',\n onstyle:'success',\n offstyle:'danger',\n width: 100,\n });\n }).catch(function(error){\n $('.view-kelas').find('i').removeClass('fa-circle-o-notch fa-spin').addClass('fa-list');\n });\n }", "function achatItem3Lvl3() {\n affichagePrixItem3Lvl3.innerHTML = \"OBTENU\";\n boutonItem3Lvl3.disabled = true;\n boutonItem3Lvl3.style.border = \"inherit\";\n clickRessource3 = 6;\n ressource2.innerHTML = ressource2.innerHTML - prix1Item3Lvl3;\n ressource3.innerHTML = ressource3.innerHTML - prix2Item3Lvl3;\n activationItemsShop();\n compteurRessourcePlateau2 = parseInt(ressource2.innerHTML);// mise a jour du compteurRessource\n compteurRessourcePlateau3 = parseInt(ressource3.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem3lvl3Vide\").src= \"assets/img/pioche3Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils3();\n }", "function fnc_child_cargar_valores_iniciales() {\n\n}", "function simple(){\n aff('Exercice n°01 : Bienvenue');\n var name = 'loic';\n aff(`Bienvenue à vous -> ${name} !`);\n jump();\n}", "function achatItem3Lvl1() {\n affichagePrixItem3Lvl1.innerHTML = \"OBTENU\";\n boutonItem3Lvl1.disabled = true;\n boutonItem3Lvl1.style.border = \"inherit\";\n clickRessource3 = 2;\n ressource1.innerHTML = ressource1.innerHTML - prixItem3Lvl1;\n activationItemsShop();\n compteurRessourcePlateau1 = parseInt(ressource1.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem3lvl1Vide\").src= \"assets/img/pioche1Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils1(); \n }", "function tabellenErstellen() {\n\n kostenTabelleErstellen();\n\n cebitTabelleErstellen();\n\n conhitTabelleErstellen();\n\n webtechconTabelleErstellen();\n\n\n}", "asetaKupla(nimi,kupla){\n for(var i = 0; i < this.hahmot.length; i++){\n var hahmo = this.hahmot[i];\n if (hahmo.nimi == nimi) hahmo.asetaKupla(kupla);\n }\n }", "function Guarda_Clics_EES_Menos()\r\n{\r\n\tGuarda_Clics(1,0);\r\n}", "function dodajRecept()\n {\t\n \t//ako je lek selektovan\n \tif($('#lekoviType').val()>-1)\n \t{\n \t\t//alert(\"Lek odabran\");\n \t\t\n \t\t//postavi selektovani lek u listu\n \t\treceptiMap[$('#lekoviType :selected').val()] = $('#lekoviType :selected').text()\n \t\t\n \t\t$('#receptiStavkeDiv').html('');\n \t\t\n \t\thtml = '';\n \t\t\n \t\t$.each(receptiMap, function(index,value){\n \t\t\t\n \t\t\thtml += '<label>' + value + '</label></br>';\n \t\t\t//alert(value);\n \t\t})\n \t\t//alert(html);\n \t\t\n \t\t//prikazi listu lekova\n \t\t$('#receptiStavkeDiv').append(html);\n \t}\n \telse\n \t{\n \t\t//ako lek nije odabran\n \t\talert(\"Morate odabrati lek\");\n \t}\n }", "function nombreFuncion(parametro){\n return \"regresan algo\"\n}", "function hitungLuasLingkaran(jariJari){\n return 3.14 * jariJari ^ 2 \n}", "function afase_luna(njd){\n\n // calcola l'angolo di fase della luna per la data (njd)\n // gennaio 2012\n\n var dati_luna=pos_luna(njd); // recupero fase/elongazione (1)\n var dati_sole=pos_sole(njd);\n\n var elongazione1=dati_luna[4]; // elongazione in gradi sessadecimali.\n var dist_luna=dati_luna[7]/149597870; \n var dist_sole=dati_sole[4]; // distanza del sole in UA.\n\n elongazione=Math.abs(elongazione1)*1;\n\n var dist_sl=dist_luna*dist_luna+dist_sole*dist_sole-2*dist_luna*dist_sole*Math.cos(Rad(elongazione)); // distanza sole-luna\n dist_sl=Math.sqrt(dist_sl);\n\n // calcolo dell'angolo di fase in gradi . \n\n var Dpt= dist_luna; // distanza pianeta-terra.\n var Dts= dist_sole; // distanza terra-sole.\n var Dps= dist_sl; // distanza pianeta-sole.\n\n // teorema del coseno\n\n var delta_fase=(Dts*Dts+Dps*Dps-Dpt*Dpt)/(2*Dps*Dts);\n delta_fase=Math.acos(delta_fase); \n delta_fase=Rda(delta_fase);\n\n var angolo_fase=180-elongazione-delta_fase; // angolo di fase in gradi.\n\n if(elongazione1<0) {angolo_fase=-angolo_fase; }\n\n return angolo_fase;\n\n}", "saludar(fn){\n console.log(`Hola me llamo ${this.nombre} ${this.apellido}`)\n if(fn){\n fn(this.nombre,this.apellido, false)\n }\n }", "function preberiMeritveVitalnihZnakov() {\n\tsessionId = getSessionId();\n \n \n\tvar ehrId = $(\"#meritveVitalnihZnakovEHRid\").val();\n\t\n\t// Spodaj poskrbimo da so vrednosti ponovno \"\", ko izberemo drugega pacienta\n\t//prav tako ponovno skrijemo vrednosti, tako da se pokazejo sele ob pritisku na gumb\n document.getElementById(\"wikiTextBloodPressure\").innerHTML = \"\";\n document.getElementById(\"wikiTextDeath\").innerHTML = \"\";\n document.getElementById(\"wikiTextItm\").innerHTML = \"\";\n document.getElementById(\"wikiTextTveganja\").innerHTML = \"\";\n document.getElementById(\"wikiTextZdravje\").innerHTML = \"\";\n $(\"#wikiTextTveganja2\").html(\"\"); //lazje kot document.getelement blabla\n $(\"#wikiDetails\").hide();\n\n\tif (!ehrId || ehrId.trim().length == 0 ) {\n\t\t$(\"#preberiMeritveVitalnihZnakovSporocilo\").html(\"<span class='obvestilo \" +\n \"label label-warning fade-in'>Prosim vnesite zahtevan podatek!\");\n\t} else {\n\t \n\t\n\t\t$.ajax({\n\t\t\turl: baseUrl + \"/demographics/ehr/\" + ehrId + \"/party\",\n\t \ttype: 'GET',\n\t \theaders: {\"Ehr-Session\": sessionId},\n\t \tsuccess: function (data) {\n\t\t\t\tvar party = data.party;\n\t\t\t\t\n\n\t\t\t\t//pridobimo srcni utrip\n\t\t\t\t\t$.ajax({\n\t\t\t\t\t url: baseUrl + \"/view/\" + ehrId + \"/\" + \"pulse\",\n\t\t\t\t\t type: 'GET',\n\t\t\t\t\t headers: {\"Ehr-Session\": sessionId},\n\t\t\t\t\t success: function (res) {\n\t\t\t\t var hintUtrip = \"<br>\";\n\t\t\t\t \n\t\t\t\t if (res[res.length-1].pulse > 100)\n\t\t\t\t \thintUtrip += \"<p class='bg-danger'>Vaš srčni utrip je povišan. Optimalen srčni utrip znaša 50 - 100 /min</p>\"\n\t\t\t\t \telse if (res[res.length-1].pulse < 50)\n\t\t\t\t hintUtrip += \"<p class='bg-danger'>Vaš srčni utrip je nizek. Optimalen srčni utrip znaša 50 - 100 /min/p>\"\n\t\t\t\t else\n\t\t\t\t \thintUtrip += \"<p class='bg-success'> Vaš srčni utrip je optimalen </p>\"\n\t\t\t\t \n\t\t\t\t\t document.getElementById('utrip').innerHTML = \"Vaš srčni utrip znaša \" + res[res.length-1].pulse + \" /min\" + hintUtrip;\n\t\t\t\t\t document.getElementById('utripNumber').innerHTML = res[res.length-1].pulse;\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t preveri() //pri vsakem klicu gremo v funkcijo \"preveri\", katera caka da se izvedejo vsi tej klici, potem pa nadaljuje z graficnim prikazom\n\t\t\t\t\t \n\t\t\t\t\t },\n\t\t\t\t\t});\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//zacetek ajaxa za tezo\n\t\t\t\t\t$.ajax({\n\t\t\t\t\t url: baseUrl + \"/view/\" + ehrId + \"/\" + \"weight\",\n\t\t\t\t\t type: 'GET',\n\t\t\t\t\t headers: {\"Ehr-Session\": sessionId},\n\t\t\t\t\t success: function (res) {\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t document.getElementById('teza').innerHTML = \"<p class='bg-info'>Vaša teža znaša \" + res[res.length-1].weight + \" kg </p>\"\n\t\t document.getElementById('tezaNumber').innerHTML = res[res.length-1].weight;\n\t\t preveri()\n\t\t\t\t\t },\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t//zacetek ajaxa za zgornji tlak\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t url: baseUrl + \"/view/\" + ehrId + \"/\" + \"blood_pressure\",\n\t\t\t\t\t type: 'GET',\n\t\t\t\t\t headers: {\"Ehr-Session\": sessionId},\n\t\t\t\t\t success: function (res) {\n\t\t\t\t\t var hintTlak = \"<br>\";\n\t\t\t\t\t \n\t\t\t\t\t \tif (res[res.length-1].systolic > 140)\n\t\t\t\t\t \t\thintTlak += \" <p class='bg-danger'>Vaš zgornji krvni tlak je povišan. Optimalen sistolični tlak znaša 100 - 140 mm Hg</p>\"\n\t\t\t\t\t \telse if (res[res.length-1].systolic < 100)\n\t\t\t\t\t \t\thintTlak += \" <p class='bg-danger'>Vaš zgornji krvni tlak je nizek. Optimalen sistolični tlak znaša 100 - 140 mm Hg</p>\"\n\t\t\t\t\t \telse\n\t\t\t\t\t \t\thintTlak += \"<p class='bg-success'>Vaš zgornji krvni tlak je optimalen </p>\"\n\t\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t document.getElementById('zgornjiTlak').innerHTML = \"Vaš zgornji krvni pritisk znaša \" + res[res.length-1].systolic + \" mm Hg\" + hintTlak\n\t\t document.getElementById(\"zgornjiTlakNumber\").innerHTML = res[res.length-1].systolic;\n\t\t preveri()\n\t\t \n\t\t\t\t\t },\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t//zacetek ajaxa za spodnji tlak\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t url: baseUrl + \"/view/\" + ehrId + \"/\" + \"blood_pressure\",\n\t\t\t\t\t type: 'GET',\n\t\t\t\t\t headers: {\"Ehr-Session\": sessionId},\n\t\t\t\t\t success: function (res) {\n\t\t\t\t\t \tvar hintSpodnji = \"<br>\"\n\t\t\t\t\t \t\n\t\t\t\t\t \tif (res[res.length-1].diastolic > 90)\n\t\t\t\t\t \t\thintSpodnji += \" <p class='bg-danger'>Vaš spodnji krvni tlak je povišan. Optimalen diastolični tlak znaša 60 - 90 mm Hg</p>\"\n\t\t\t\t\t \telse if (res[res.length-1].systolic < 60)\n\t\t\t\t\t \t\thintSpodnji += \" <p class='bg-danger'>Vaš spodnji krvni tlak je nizek. Optimalen diastolični tlak znaša 60 - 90 mm Hg</p>\"\n\t\t\t\t\t \telse\n\t\t\t\t\t \t\thintSpodnji += \"<p class='bg-success'>Vaš spodnji krvni tlak je optimalen </p>\"\n\t\t document.getElementById('spodnjiTlak').innerHTML = \"Vaš spodnji krvni pritisk znaša \" + res[res.length-1].diastolic + \" mm Hg\" + hintSpodnji\n\t\t document.getElementById(\"spodnjiTlakNumber\").innerHTML = res[res.length-1].diastolic;\n\t\t preveri()\n\t\t\t\t\t },\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t//zacetek ajaxa za višino\n\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t url: baseUrl + \"/view/\" + ehrId + \"/\" + \"height\",\n\t\t\t\t\t type: 'GET',\n\t\t\t\t\t headers: {\"Ehr-Session\": sessionId},\n\t\t\t\t\t success: function (res) {\n\t\t\t\t\t \n\t\t document.getElementById('visina').innerHTML = \"<p class='bg-info'>Vaša višina znaša \" + res[res.length-1].height + \" cm</p>\"\n\t\t document.getElementById(\"visinaNumber\").innerHTML = res[res.length-1].height;\n\t\t preveri()\n\t\t\t\t\t },\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t$(\"#overall, #details, #friendlyTip\").show();\n\t\t\n\t\t\t\n\t\n\t\t\t\t\n\t \t},\n\t \n\t\t});\n\t}\n\t\n}", "function letra(tecla) {\n //alert(tecla);\n var ltPCode;\n var acertouAq; // pesquisar se true letras que acertou\n var errouAq; // pesquisar letras que errou\n\n key = tecla;\n lt = String.fromCharCode(key).toLowerCase();\n ltPCode = lt.charCodeAt(0);\n\n acertouAq = acertou.indexOf(lt);\n errouAq = errou.indexOf(lt);\n\n if(key == 186){\n alert('Clique C ou outra consoante!');\n }else if(ltPCode == 97 || ltPCode == 98 || ltPCode == 99 || ltPCode == 100 || ltPCode == 101 || ltPCode == 102 || ltPCode == 103 || ltPCode == 104 || ltPCode == 105 ||\n ltPCode == 106 || ltPCode == 107 || ltPCode == 108 || ltPCode == 109 || ltPCode == 110 || ltPCode == 111 || ltPCode == 112 || ltPCode == 113 || ltPCode == 114 ||\n ltPCode == 115 || ltPCode == 116 || ltPCode == 117 || ltPCode == 118 || ltPCode == 119 || ltPCode == 120 || ltPCode == 121 || ltPCode == 122){\n\n if(acertou.length >= obj.length || imgAtual >= 6){\n\n }else if(perdeu == true) {\n\n }else if(acertouAq >= 0 || errouAq >= 0){\n alert('Você já tinha digitado a tecla \\\"'+lt+'\\\"');\n }else{\n ltPre = limpaLetra(lt);\n verLetra(ltPre);\n }\n\n }\n}", "function listar(ok,error){\n console.log(\"Funcionlistar DAO\")\n helper.query(sql,\"Maestro.SP_SEL_ENTIDAD_FINANCIERA\",[],ok,error)\n}", "function pos_luna(njd){\n\n // by Salvatore Ruiu Irgoli-Sardegna (Italy) ottobre 2010.\n // funzione per il calcolo della posizione della Luna.\n // njd= numero dei giorni giuliani per il T.U. di Greenwich.\n // coordinate equatoriali geocentriche per l'equinozio della data.\n\nvar T=(njd-2415020.0)/36525;\n\nvar L1=270.434164+481267.8831*T-0.001133*T*T+0.0000019*T*T*T; // longitudine media.\n\nvar M=358.475833+35999.04975*T-0.000150*T*T-0.0000033*T+T*T; // anomalia media del Sole\n\nvar M1=296.104608+477198.8491*T+0.009192*T*T+0.0000144*T*T*T; // anomalia media della Luna\n\nvar D=350.737486+445267.1142*T-0.001436*T*T+0.0000019*T*T*T; // elongazione media della Luna\n\nvar F=11.250889+483202.0251*T-0.003211*T*T-0.0000003*T*T*T; // distanza media della Luna dal suo nodo ascendente.\n\nvar N=259.183275-1934.1420*T+0.002078*T*T+0.0000022*T*T*T; // longitudine media del nodo ascendente della Luna.\n\n// termini additivi di correzione.\n\nvar Delta=0.003964*Math.sin(Rad(346.560+132.870*T-0.0091731*T*T));\n\nL1=L1+0.000233*Math.sin(Rad(51.2+20.2*T))+Delta;\n M= M-0.001778*Math.sin(Rad(51.2+20.2*T));\nM1=M1+0.000817*Math.sin(Rad(51.2+20.2*T))+Delta;\n D= D+0.002011*Math.sin(Rad(51.2+20.2*T))+Delta;\n\nL1=L1+0.001964*Math.sin(Rad(N));\nM1=M1+0.002541*Math.sin(Rad(N));\n D= D+0.001964*Math.sin(Rad(N));\n F= F-0.024691*Math.sin(Rad(N));\n F= F-0.004328*Math.sin(Rad(N+275.05-2.30*T));\n F= F+Delta;\n\nvar e=1-0.002495*T-0.00000752*T*T;\n\n// Calcola la Longitudine ecclittica.\n\nvar Long=L1+6.288750*Math.sin(Rad(M1))\n +1.274018*Math.sin(Rad(2*D-M1))\n +0.658309*Math.sin(Rad(2*D))\n +0.213616*Math.sin(Rad(2*M1))\n -0.185596*Math.sin(Rad(M))*e\n -0.114336*Math.sin(Rad(2*F))\n +0.058793*Math.sin(Rad(2*D-2*M1))\n +0.057212*Math.sin(Rad(2*D-M-M1))*e\n +0.053320*Math.sin(Rad(2*D+M1))\n +0.045874*Math.sin(Rad(2*D-M))*e\n +0.041024*Math.sin(Rad(M1-M))*e\n -0.034718*Math.sin(Rad(D))\n -0.030465*Math.sin(Rad(M+M1))*e\n +0.015326*Math.sin(Rad(2*D-2*F))\n -0.012528*Math.sin(Rad(2*F+M1))\n -0.010980*Math.sin(Rad(2*F-M1))\n +0.010674*Math.sin(Rad(4*D-M1))\n +0.010034*Math.sin(Rad(3*M1))\n +0.008548*Math.sin(Rad(4*D-2*M1))\n -0.007910*Math.sin(Rad(M-M1+2*D))*e\n -0.006783*Math.sin(Rad(2*D+M))*e\n +0.005162*Math.sin(Rad(M1-D))\n -0.005000*Math.sin(Rad(M+D))*e\n +0.004049*Math.sin(Rad(M1-M+2*D))*e\n +0.003996*Math.sin(Rad(2*M1+2*D))\n +0.003862*Math.sin(Rad(4*D))\n +0.003665*Math.sin(Rad(2*D-3*M1))\n +0.002695*Math.sin(Rad(2*M1-M))*e\n +0.002602*Math.sin(Rad(M1-2*F-2*D))\n +0.002396*Math.sin(Rad(2*D-M-2*M1))*e\n -0.002349*Math.sin(Rad(M1+D))\n +0.002249*Math.sin(Rad(2*D-2*M))*e*e\n -0.002125*Math.sin(Rad(2*M1+M))*e \n -0.002079*Math.sin(Rad(2*M))*e*e \n +0.002059*Math.sin(Rad(2*D-M1-2*M))*e*e\n -0.001773*Math.sin(Rad(M1+2*D-2*F))\n -0.001595*Math.sin(Rad(2*F+2*D))\n +0.001220*Math.sin(Rad(4*D-M-M1))*e\n -0.001110*Math.sin(Rad(2*M1+2*F))\n +0.000892*Math.sin(Rad(M1-3*D))\n -0.000811*Math.sin(Rad(M+M1+2*D))*e\n +0.000761*Math.sin(Rad(4*D-M-2*M1))*e\n +0.000717*Math.sin(Rad(M1-2*M))*e*e\n +0.000704*Math.sin(Rad(M1-2*M-2*D))*e*e\n +0.000693*Math.sin(Rad(M-2*M1+2*D))*e\n +0.000598*Math.sin(Rad(2*D-M-2*F))*e\n +0.000550*Math.sin(Rad(M1+4*D))\n +0.000538*Math.sin(Rad(4*M1))\n +0.000521*Math.sin(Rad(4*D-M))*e\n +0.000486*Math.sin(Rad(2*M1-D));\n \n// Calcolo della Latitudine ecclittica.\n\nvar Beta= 5.128189*Math.sin(Rad(F))\n +0.280606*Math.sin(Rad(M1+F))\n +0.277693*Math.sin(Rad(M1-F))\n +0.173238*Math.sin(Rad(2*D-F))\n +0.055413*Math.sin(Rad(2*D+F-M1))\n +0.046272*Math.sin(Rad(2*D-F-M1))\n +0.032573*Math.sin(Rad(2*D+F))\n +0.017198*Math.sin(Rad(2*M1+F))\n +0.009267*Math.sin(Rad(2*D+M1-F))\n +0.008823*Math.sin(Rad(2*M1-F))\n +0.008247*Math.sin(Rad(2*D-M-F))*e\n +0.004323*Math.sin(Rad(2*D-F-2*M1))\n +0.004200*Math.sin(Rad(2*D+F+M1))\n +0.003372*Math.sin(Rad(F-M-2*D))*e\n +0.002472*Math.sin(Rad(2*D+F-M-M1))*e\n +0.002222*Math.sin(Rad(2*D+F-M))*e\n +0.002072*Math.sin(Rad(2*D-F-M-M1))*e\n +0.001877*Math.sin(Rad(F-M+M1))*e\n +0.001828*Math.sin(Rad(4*D-F-M1))\n -0.001803*Math.sin(Rad(F+M))*e\n -0.001750*Math.sin(Rad(3*F))\n +0.001570*Math.sin(Rad(M1-M-F))*e\n -0.001487*Math.sin(Rad(F+D))\n -0.001481*Math.sin(Rad(F+M+M1))*e\n +0.001417*Math.sin(Rad(F-M-M1))*e\n +0.001350*Math.sin(Rad(F-M))*e\n +0.001330*Math.sin(Rad(F-D))\n +0.001106*Math.sin(Rad(F+3*M1))\n +0.001020*Math.sin(Rad(4*D-F))\n +0.000833*Math.sin(Rad(F+4*D-M1))\n +0.000781*Math.sin(Rad(M1-3*F))\n +0.000670*Math.sin(Rad(F+4*D-2*M1))\n +0.000606*Math.sin(Rad(2*D-3*F))\n +0.000597*Math.sin(Rad(2*D+2*M1-F))\n +0.000492*Math.sin(Rad(2*D+M1-M-F))*e\n +0.000450*Math.sin(Rad(2*M1-F-2*D))\n +0.000439*Math.sin(Rad(3*M1-F))\n +0.000423*Math.sin(Rad(F+2*D+2*M1))\n +0.000422*Math.sin(Rad(2*D-F-3*M1))\n -0.000367*Math.sin(Rad(M+F+2*D-M1))*e\n -0.000353*Math.sin(Rad(M+F+2*D))*e\n +0.000331*Math.sin(Rad(F+4*D))\n +0.000317*Math.sin(Rad(2*D+F-M+M1))*e\n +0.000306*Math.sin(Rad(2*D-2*M-F))*e*e\n -0.000283*Math.sin(Rad(M1+3*F));\n\n var omega1=0.0004664*Math.cos(Rad(N));\n var omega2=0.0000754*Math.cos(Rad(N+275.05-2.30));\n\n var Lat=Beta*(1-omega1-omega2); // latitudine ecclittica.\n\n // Calcolo della parallasse.\n\n var parallasse=0.950724\n +0.051818*Math.cos(Rad(M1))\n +0.009531*Math.cos(Rad(2*D-M1))\n +0.007843*Math.cos(Rad(2*D))\n +0.002824*Math.cos(Rad(2*M1))\n +0.000857*Math.cos(Rad(2*D+M1))\n +0.000533*Math.cos(Rad(2*D-M))*e\n +0.000401*Math.cos(Rad(2*D-M-M1))*e\n +0.000320*Math.cos(Rad(M1-M))*e\n -0.000271*Math.cos(Rad(D))\n -0.000264*Math.cos(Rad(M1+M))*e\n -0.000198*Math.cos(Rad(2*F-M1))\n +0.000173*Math.cos(Rad(3*M1))\n +0.000167*Math.cos(Rad(4*D-M1))\n -0.000111*Math.cos(Rad(M))*e\n +0.000103*Math.cos(Rad(4*D-2*M1))\n -0.000084*Math.cos(Rad(2*M1-2*D))\n -0.000083*Math.cos(Rad(2*D+M))*e\n +0.000079*Math.cos(Rad(2*D+2*M1))\n +0.000072*Math.cos(Rad(4*D))\n +0.000064*Math.cos(Rad(2*D-M+M1))*e\n -0.000063*Math.cos(Rad(2*D+M-M1))*e\n +0.000041*Math.cos(Rad(M+D))*e\n +0.000035*Math.cos(Rad(2*M1-M))*e\n -0.000033*Math.cos(Rad(3*M1-2*D))\n -0.000030*Math.cos(Rad(M1+D))\n -0.000029*Math.cos(Rad(2*F-2*D))\n -0.000029*Math.cos(Rad(2*M1+M))*e\n +0.000026*Math.cos(Rad(2*D-2*M))*e*e\n -0.000023*Math.cos(Rad(2*F-2*D+M1))\n +0.000019*Math.cos(Rad(4*D-M-M1))*e;\n\n Long=gradi_360(Long); // La longitudine all'interno dell'intervallo 0-360.\n\n var dati_luna=trasf_ecli_equa(njd,Long,Lat); // calcola le coordinate equatoriali geocentriche.\n\n // dati del Sole.\n\n var dat_sole=pos_sole(njd); // calcola la longitudine del sole\n var Long_sole=dat_sole[2]; // longitudine vera del sole.\n \n // CALCOLO DELLA FASE E DELL'ELONGAZIONE\n\n var Elongazione=elong(dati_luna[0],dati_luna[1],dat_sole[0],dat_sole[1]); // elongazione in gradi dal Sole.\n\n var Fase_luna=0.5*(1-Math.cos(Rad(Elongazione))); // FASE\n \n var dist_luna=6378.14/Math.sin(Rad(parallasse));\n dist_luna=dist_luna.toFixed(0); // Distanza in Km.\n\n var dim_app=Math.atan(3476.2/dist_luna); \n dim_app=Rda(dim_app)*3600;\n dim_app=dim_app.toFixed(2); // Diametro apparente in secondi d'arco.\n\n // elenco delle variabili restituite dalla funzione [pos_luna].\n\n // dati_luna[0]= ascensione retta già in ore decimali (diviso per 15).\n // dati_luna[1]= declinazione in gradi sessadecimali.\n dati_luna[2]= Long; // in gradi sessadecimali.\n dati_luna[3]= Fase_luna; // fase lunare.\n dati_luna[4]= Elongazione; // elongazione in gradi sessadecimali.\n dati_luna[5]= parallasse; // parallasse della Luna in gradi. \n dati_luna[6]= dim_app; // diametro apparente in secondi d'arco.\n dati_luna[7]= dist_luna; // distanza della Luna in Km. \n\n return dati_luna;\n\n}", "function getStatus(angka, param1, param2, param3, param4) {\n\n let hasil;\n\n if (angka >= param4) {\n hasil = \"Sangat Tercapai\";\n } else if (angka >= param3) {\n hasil = \"Tercapai\";\n } else if (angka >= param2) {\n hasil = \"Hampir Tercapai\";\n } else if (angka >= param1) {\n hasil = \"Tidak Tercapai\";\n } else {\n hasil = \"status 404\";\n }\n\n return hasil;\n}", "function masti(){\r\n return \" Helo India\";\r\n}", "function achatItem1Lvl3() {\n affichagePrixItem1Lvl3.innerHTML = \"OBTENU\";\n boutonItem1Lvl3.disabled = true;\n boutonItem1Lvl3.style.border = \"inherit\";\n clickRessource1 = 6;\n ressource2.innerHTML = ressource2.innerHTML - prix1Item1Lvl3;\n ressource3.innerHTML = ressource3.innerHTML - prix2Item1Lvl3;\n activationItemsShop();\n compteurRessourcePlateau2 = parseInt(ressource2.innerHTML);// mise a jour du compteurRessource\n compteurRessourcePlateau3 = parseInt(ressource3.innerHTML);// mise a jour du compteurRessource\n document.getElementById(\"imgitem1lvl3Vide\").src= \"assets/img/lance3Obtenu.png\";\n parseInt(nbTotalOutils.innerHTML++);\n verificationOutils3();\n }", "function saludo111(){\n console.log(\"Hola buen dia 1\");\n console.log(\"Hola buen dia 2\");\n console.log(\"Hola buen dia 3\");\n console.log(\"Hola buen dia 4\");\n console.log(\"Hola buen dia 5\");\n console.log(\"Hola buen dia 6\");\n console.log(\"Hola buen dia 7\");\n }", "function miFuncion(){\n\n}", "function Guarda_Clics_EPR_Menos()\r\n{\r\n\tGuarda_Clics(0,0);\r\n}" ]
[ "0.67988694", "0.6504913", "0.6493955", "0.64808935", "0.64238983", "0.6305628", "0.62205225", "0.6219264", "0.6119034", "0.6087615", "0.6069984", "0.6060339", "0.6060339", "0.6060339", "0.6024977", "0.6000924", "0.5977805", "0.5963935", "0.59573096", "0.59476304", "0.59050834", "0.5894474", "0.5885655", "0.5863669", "0.5843787", "0.5818123", "0.58140594", "0.5790389", "0.57824504", "0.577772", "0.577533", "0.5775056", "0.57685626", "0.5768298", "0.5755601", "0.57335055", "0.5731338", "0.5723237", "0.572265", "0.5713726", "0.57024753", "0.57023805", "0.5698325", "0.5697091", "0.5691367", "0.56744736", "0.5673163", "0.5671527", "0.5669906", "0.5668105", "0.5667733", "0.56652063", "0.5649656", "0.5647818", "0.5641511", "0.5640195", "0.5639692", "0.56385624", "0.5633943", "0.5631264", "0.56184846", "0.56130826", "0.5604271", "0.55857563", "0.5582605", "0.55761737", "0.5558394", "0.55567473", "0.55543846", "0.55523753", "0.554712", "0.5546699", "0.5544613", "0.5544613", "0.5532601", "0.5526733", "0.5517942", "0.5516259", "0.55051106", "0.54987353", "0.5497753", "0.5496046", "0.54921067", "0.54874235", "0.5476806", "0.5476666", "0.5474452", "0.5473532", "0.54733443", "0.54659814", "0.54633176", "0.5461608", "0.5459786", "0.5459645", "0.5452269", "0.5449214", "0.5449098", "0.5448379", "0.5445075", "0.5442546", "0.54407835" ]
0.0
-1
Setpember 29, 2017 Credit to Daniel Shiffman Source Video: Source Code:
function Cell(i, j, w) { this.i = i; this.j = j; this.x = i * w; this.y = j * w; this.w = w; this.neighborCount = 0 // randomize each cell to either have a mine or not this.mine = false; this.revealed = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private internal function m248() {}", "private public function m246() {}", "protected internal function m252() {}", "static private internal function m121() {}", "transient protected internal function m189() {}", "transient private protected internal function m182() {}", "transient private internal function m185() {}", "transient final private protected internal function m167() {}", "static private public function m119() {}", "transient final protected internal function m174() {}", "static private protected internal function m118() {}", "static private protected public internal function m117() {}", "transient final private internal function m170() {}", "static protected internal function m125() {}", "static transient final private internal function m43() {}", "function comportement (){\n\t }", "static transient final private protected internal function m40() {}", "static transient private protected internal function m55() {}", "transient private public function m183() {}", "static final private protected internal function m103() {}", "transient final private public function m168() {}", "transient private protected public internal function m181() {}", "static final private internal function m106() {}", "static transient final protected internal function m47() {}", "transient final private protected public internal function m166() {}", "function setZ(){\r\n\r\n}", "static final private protected public internal function m102() {}", "function pd(){this.Fc=void 0;this.group=x.j.Ml;this.Vb=x.j.Vb}", "static transient private internal function m58() {}", "__previnit(){}", "static transient private protected public internal function m54() {}", "static transient final protected public internal function m46() {}", "function Macex() {\r\n}", "function\nStreamDemo$set_159_(a3x1)\n{\nlet xtmp47;\n;\n{\n// ./../../../../xanadu/prelude/DATS/CATS/JS/basics.dats: 10891(line=743, offs=1) -- 10940(line=745, offs=33)\n// { // val-binding\n// } // val-binding\nconst // implval/fun\na0ref_set_2418_ = XATS2JS_a0ref_set\n;\nxtmp47 = a0ref_set_2418_(xtop33, a3x1);\n}\n;\nreturn xtmp47;\n}", "static transient private public function m56() {}", "function updateroster() {\n\n}", "function skryjvse(){\n\tfor(i = 1; i <= 16; i++){\n\t\tmark.get(\"Mark\"+i).setVisible(false);\t\n\t\tmark.get(\"Mark\"+i).setActive(false);\n\t\tmark.get(\"Mark\"+i).setAttached(false);\n\t\t \n\t\tmark.get(\"Start\"+i).setVisible(false);\t\n\t\tmark.get(\"Start\"+i).setActive(false);\n\t\tmark.get(\"Start\"+i).setAttached(false);\n\t\t \n\t\tpreference.get(\"Aim\"+i).setVisible(false);\n\t\tpreference.get(\"Aim\"+i).setActive(false);\n\t\tpreference.get(\"Aim\"+i).setAttached(false);\n\t}\n}", "static transient final private protected public function m38() {}", "static transient final private public function m41() {}", "static transient final private protected public internal function m39() {}", "function init() {\n\t \t\n\t }", "static final private public function m104() {}", "function settingImage()\r\n\t{\r\n\t\t\r\n\t\t\t$('.control-section').html(g_search_info_level2.currentsection);\r\n\t\t\t$('.code-section').html(g_search_info_level2.currentcode);\r\n\t\t\t$('.kmstart').html(g_search_info.kmstart);\r\n\t\t\t$('.kmend').html(g_search_info.kmend);\r\n\t\t\t$('#video-detail .selectedkm').html('');\r\n\t\t\t$('.latitute').html('');\r\n\t\t\t$('.longtitute').html('');\r\n\t\t\t$('#video-player').html('');\r\n\r\n\t\t\t//getImageSet();\r\n\t}", "changeFrameSet(frame_set, mode, delay = 10, frame_index = 0) {\n\n if (this.frame_set === frame_set) { return; }\n\n this.count = 0;\n this.delay = delay;\n this.frame_set = frame_set;\n this.frame_index = frame_index;\n this.frame_value = frame_set[frame_index];\n this.mode = mode;\n\n }", "static transient final protected function m44() {}", "function src() {\n prev = -1;\n type = 1; //For source type is equal to one\n flag1 = 1;\n}", "static final protected internal function m110() {}", "function init() {\n\n\n}", "function init() {\n //UH HUH, THIS MY SHIT!\n }", "function pickQuickLook(){\n\tresetVideoTimeouts();\n\tdocument.getElementById(\"currVideo\").src='http://www.giantbomb.com/videos/embed/' + quickLooks[currentVideoIndex].split('~')[0] + '/';\n\tdocument.getElementById(\"VideoTitle\").innerHTML=quickLooks[currentVideoIndex].split('~')[1];\n\tvideoGBLink=quickLooks[currentVideoIndex].split('~')[2];\n}", "SetData() {}", "function livestock_manure(){\n a_FAO_i='livestock_manure';\n initializing_change();\n change();\n}", "set() {}", "function settingImage() {\r\n $('#video-detail .control-section').html(g_all_result[0]['section']);\r\n $('#video-detail .code-section').html(g_search_info_level2.currentcode);\r\n $('#video-detail .kmstart').html(g_search_info.kmstart);\r\n $('#video-detail .kmend').html(g_search_info.kmend);\r\n $('#video-detail .selectedkm').html('');\r\n $('#video-detail .latitute').html('');\r\n $('#video-detail .longtitute').html('');\r\n $('#video-player #thumbnail').html('').show();\r\n $('#video-player #reel_container').hide().html('');\r\n }", "set Auto(value) {}", "function setup() {\n\n\t\t\t\t\t}", "__init5() {this.pos = 0}", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "constructor() {\n \n\n \n \n\n \n\n \n }", "function init() {\r\n mode();\r\n setSq();\r\n reset();\r\n}", "function init() {\n\n\n\n\t}", "set setName(name){\n _name=name;\n }", "function burning_crop_residues(){\n a_FAO_i='burning_crop_residues';\n initializing_change();\n change();\n}", "function set_pa1() {\n\t\t\t\tif (pArr[0].value === false && incrementor < 3) {\n\t\t\tlet x = document.getElementById(\"pa1\");\n\t\t\tx.className = \"set\";\t\t\t\n\t\t\tpArr[0].value = true;\n incrementor ++;\n if (incrementor === 3) {\n\t\tplayGame();}\n\t\t\t}}", "function set001_updateUI() {\n\n} // .end of set001_updateUI", "setValue() {\n }" ]
[ "0.6818895", "0.66263264", "0.65006065", "0.63601816", "0.623416", "0.605049", "0.596176", "0.59535635", "0.5941524", "0.59306353", "0.5921483", "0.5830079", "0.58213127", "0.5798532", "0.57905495", "0.5699049", "0.563988", "0.5629676", "0.5626539", "0.56081647", "0.5598158", "0.55620635", "0.55585265", "0.5556819", "0.5535329", "0.55281115", "0.55154675", "0.54706025", "0.5433921", "0.54193586", "0.54085475", "0.53616685", "0.5316702", "0.52986836", "0.52901495", "0.527403", "0.52665114", "0.52593267", "0.5256566", "0.5214442", "0.52067345", "0.520658", "0.5196694", "0.51872486", "0.51820195", "0.51668316", "0.51566625", "0.5133329", "0.5116399", "0.5111229", "0.5106775", "0.5098334", "0.5088003", "0.50849515", "0.5081415", "0.50790536", "0.5078124", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.50756323", "0.506972", "0.5069545", "0.5069422", "0.5063627", "0.50528055", "0.50500536", "0.50406086" ]
0.0
-1
get the number of questions
function getNumberOfQuestions() { //QuerySelectorAll has better browser support in exchange for being slightly slower than gEBCN. var totalQuestions = document.querySelectorAll('.question').length; return totalQuestions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function numberOfQuestions () {\n return quiz.questions.length\n}", "function numberOfQuestions () {\n return quiz.questions.length\n}", "function numberOfQuestions () {\n return quiz.questions.length\n}", "function getTotalQuestions() {\n var totalQuestions = questions.length;\n return totalQuestions;\n}", "function numberOfAnswers () {\n return quiz.questions[quiz.currentQuestion].choices.length\n}", "function numberOfAnswers () {\n return quiz.questions[quiz.currentQuestion].choices.length\n}", "function numberOfAnswers () {\n return quiz.questions[quiz.currentQuestion].options.length\n}", "function countQuestions(length) {\n \n if (index > length) {\n index = length;\n } else if (index < 1) {\n index = 1;\n }\n $(\"#questionCounter\").html(\"Question: \" + (index) + \"/\" + length);\n}", "function findQuestionNumber(questions) {\n let count = 0;\n let questionLines = [];\n questions.forEach((question) => {\n if (question !== '') {\n questionLines.push(question);\n } else {\n count += findUniques(createQuestionString(questionLines));\n questionLines = [];\n }\n });\n\n return count;\n}", "total_questions() {\n var total_questions = 0;\n for (var i = 0; i < this.state.quiz_log.length; i++) {\n total_questions = total_questions + this.state.quiz_log[i][1];\n }\n return (total_questions)\n }", "function scoreQ6() {\n console.log(\"q6 answer: \" + q6)\n console.log(\"q6 length: \" + q6.length);\n return q6.length;\n\n}", "function getNumOfQuestions(){ // gets the max # of questions from DB GENERALQUESTIONGET .PHP FILE. do AJAX request here\r\n\tvar numberOfQuestions = questionList.length;\r\n\treturn numberOfQuestions;\r\n}", "function totalCorrectAnswers() {\n alert('You answered ' + count + ' questions correctly');\n}", "function showQuestionCounter(questionNumber) {\n return \"Question \" + (questionNumber) + \" of \" + questionAnswersOptions.length;\n}", "function questionCounter() {\n if(STORE.currentQuestion <= 4) {\n renderQuiz(STORE.currentQuestion);\n console.log(\"We just passed \" + STORE.currentQuestion + \"to renderQuiz\")\n STORE.currentQuestion++;\n } else {\n showResultsAndRetake();\n }\n\n}", "function quesCounter(count) {\n const disp_ques_count = quiz_box.querySelector(\".total-questions\");\n let ques_count_tag =\n \"<span><p>\" +\n count +\n \"</p>of<p>\" +\n quiz_content.length +\n \"</p>Questions</span>\";\n\n disp_ques_count.innerHTML = ques_count_tag;\n}", "function countQuestion() {\n questionCounter--;\n console.log(questionCounter);\n}", "function queCounter(index){\n const bottomQuesCounter = document.querySelector(\".total-questions\");\n let totalquesCountTag = '<span>'+ index + ' of ' + randomQuestions.length +' Questions</span>';\n bottomQuesCounter.innerHTML = totalquesCountTag;\n}", "total_incorrect_questions() {\n var total_incorrect_questions = 0;\n for (var i = 0; i < this.state.quiz_log.length; i++) {\n total_incorrect_questions = total_incorrect_questions + this.state.quiz_log[i][2];\n }\n return (total_incorrect_questions)\n }", "function countResult () {\n\t\t//display how many questions the user ansswered\n\t\t$(\".question\").text(\"Total \" + allQuestions + \" questions\").append('<br>');\n\t\t//display wrong answer counter\n\t\t$(\".answers\").append(wrongCounter + \" wrong\").append('<br>');\n\t\t//display right answer counter\n\t\t$(\".answers\").append(rightCounter + \" right\").append('<br>');\n\t\t//display time out counter\n\t\t$(\".answers\").append(dontAnswerCounter + \" no answer\");\t\t\n\t}", "function getQuestionStats() {\n return questions;\n }", "function nextQ(){\n\tquestionCount++;\n}", "function questionCounter() {\n if (counter < 4) {\n counter++;\n startTrivia();\n timer = 10;\n timeHolder();\n } else {\n finishTrivia();\n }\n }", "function quizQuestions() {\n var cAnswers = 0;\n var unanswered = 0;\n for (var q = 0; q < questionsArray.length; q++) {\n var chosenValue = $('input[name=\"question' + q +'\"]:checked').val();\n if (chosenValue === undefined) {\n unanswered++;\n } else cAnswers += (chosenValue == questionsArray[q].correctAnswer) ? 1 : 0;\n\n }\n return [cAnswers, unanswered];\n}", "function countCorrectQuestions(arr){\n let count = 0;\n arr.forEach(({isCorrect})=>isCorrect=== true?count++:null)\n return count\n}", "function counterCheck() {\r\n if (radioCount >= 5) {\r\n radioCount = 1;\r\n questionCount++;\r\n count++;\r\n } else {\r\n radioCount++;\r\n count++;\r\n }\r\n}", "function question6 () {\n let c = 0;\n for (let i = 0; i < n; i++){\n if (data[i].who_made == \"i_did\"){\n c += 1;\n }\n } console.log(`${c} items were made by their sellers`)\n return c;\n}", "function getTotalAnswerCounts() {\n\treturn new Promise(function (resolve, reject) {\n\t\tAnswer.count({\n\t\t}, function (err, count) {\n\t\t\tif (!err) {\n\t\t\t\tresolve(count);\n\t\t\t} else {\n\t\t\t\treject(err);\n\t\t\t}\n\t\t});\n\t});\n\n}", "function countSkills() {\r\n count = jQuery('.charbottom .skill').length;\r\n return count;\r\n }", "function scoreCount() {\n for (var i = 0; i < data.length; i++) {\n\n // If user selected an answer\n if (data[i].checked) {\n\n // check if what the user select is equal to the array answers\n\n if (answers.indexOf(data[i].value) !== -1) {\n correct++;\n } else {\n incorrect++;\n }\n }\n }\n //check how many questions were blank\n //subtracting the if/else values from above from TOTAL Q's\n \n var totalAnswered = correct + incorrect;\n console.log(totalAnswered);\n if (totalAnswered !== totalQuizQuestions) {\n unanswered = totalQuizQuestions - totalAnswered;\n }\n\n $('#correct').html(\" \" + correct);\n $('#incorrect').html(\" \" + incorrect);\n $(\"#unanswered\").html(\" \" + unanswered);\n }", "function displayScore() { \n var numCorrect = 0;\n for (var i = 0, length = selections.length; i < length; i++) {\n if (selections[i] == questions[i].correctAnswer) {\n numCorrect++;\n }\n }\n \n return numCorrect;\n}", "function findUniques(questions) {\n return new Set(questions).size;\n}", "function num_items(name) {\r\n\tvar item_count = character.items.filter(item => item != null && item.name == name).reduce(function (a, b) {\r\n\t\treturn a + (b[\"q\"] || 1);\r\n\t}, 0);\r\n\r\n\treturn item_count;\r\n}", "numberOfRightAnswers(){\n rightAnswers = 0;\n for(i=1;i<=10;++i){\n if(AnswerSheet.getAnswer(i) === AnswerSheet.getRightAnswer(i)){\n rightAnswers += 1;\n }\n }\n AnswerSheet.setNumberOfRightAnswers(rightAnswers);\n return rightAnswers;\n }", "_activeRiddleCount () {\n return this._activeQueue.filter(r => r.active && !(this._config.get('alwaysAutoquiz') && r.quizzerId === this._clientId)).length\n }", "function scoreCount() {\n for (var i = 0; i < userSelection.length; i++) {\n // If user selected an answer\n if (userSelection[i].checked) {\n // check if what the user select is equal to the array answers\n\n if (answers.indexOf(userSelection[i].value) !== -1) {\n correctAnswer++;\n } else {\n incorrectAnswer++;\n }\n }\n }\n //check how many questions were blank by subtracting the if/else values from above from the total number of questions.\n\n var totalAnswered = correctAnswer + incorrectAnswer;\n\n if (totalAnswered !== totalQuestions) {\n blank = totalQuestions - totalAnswered;\n }\n\n $(\"#correct\").html(\" \" + correctAnswer);\n $(\"#incorrect\").html(\" \" + incorrectAnswer);\n $(\"#blank\").html(\" \" + blank);\n } //end scoreCount", "function QuestionCount(props) {\n\n return (\n <div className=\"questionCount\">\n Question <span>{props.counter}</span> of <span>{props.total}</span>\n {props.counter === quizQuestion.length ? (<a className=\"result-link\" href=\"\" onClick={props.viewreults}>View Results</a>) : (<div className=\"bottom-footer\"></div>)}\n </div>\n );\n//quizQuestion.length allows dynamicity, numbers of questions can easily varied\n}", "function num_items(name) {\n var item_count = character.items.filter(item => item != null && item.name == name).reduce(function(a, b) {\n return a + (b[\"q\"] || 1);\n }, 0);\n\n return item_count;\n}", "function setCountdown(quiz){\n var quizLength = 0;\n \n //will give 15 seconds per question, as to adapt to differant size quizzes.\n quizLength = quiz.length * 15;\n console.log(\"The quiz will be \" + quizLength + \" seconds\");\n return quizLength;\n}", "function scoreQ7() {\n console.log(\"q7 answer: \" + q7)\n console.log(\"q7 length: \" + q7.length);\n return q7;\n\n}", "function questionNumber() {\n var currentQuestionNumber = quiz.questionIndex + 1;\n var element = document.getElementById(\"progress\");\n element.innerHTML = \"Question \" + currentQuestionNumber + \" of \" + quiz.questions.length;\n \n}", "computeScore () {\n let rightCnt = 0;\n for (let i=0; i<this.state.answerArray.length; i++) {\n if(this.state.answerArray[i] === this.state.questionArray[i].answer) {\n rightCnt ++;\n }\n }\n return rightCnt;\n }", "function getNumberOfQuestions(lang) {\n\n var questions = 0;\n\n // CREATING THE URL FOR THE GITHUB API CALL\n var time = yesterday;\n var url = \"https://api.stackexchange.com/2.2/questions/?filter=total&fromdate=\"+time+\"&site=stackoverflow&tagged=\"+lang;\n console.log(\"StackOverflow API url: \" + url);\n\n $.ajax({\n async: false,\n url: url,\n type: 'GET',\n dataType: 'json',\n error: function(err){\n console.log(\"Could not get data from Stackoverflow :(\");\n console.log(err);\n questions = Math.random() * 100 + 1;\n console.log(\"*** Generating random number for \" + lang + \": \" + questions + \" ***\");\n },\n success: function(data){\n // console.log(\"console.log: \" + data.total);\n questions = data.total;\n }\n });\n\n return questions;\n\n\n}", "function increaseQuestionNumber () {\n questionNum++;\n}", "function setmaxNumberOfQuestions() { \n maxNumberOfQuestions = 60;\n}", "function quecounter(index){\n const button_ques_counter = quiz_box.querySelector(\".total_que\");\n let totalquesContTag = '<span><p>'+ index +'</p><p>of</p><p>'+ questions.length +'</p><p>Questions</p></span>';\n\n button_ques_counter.innerHTML = totalquesContTag;\n\n}", "function question6() {\n // Answer:\n let itemCount = 0;\n for (let i = 0; i < data.length; i++) {\n if (data[i].who_made === \"i_did\") {\n itemCount++;\n }\n }\n console.log(itemCount + \" items were made by there sellers.\");\n}", "function scoreKeeper()\n {\n for (var i = 0; i < quizQuestions.length; i++)\n {\n var checked = $(\"input[name='options\"+i+1+\"']:checked\").val();\n if (checked === undefined)\n {\n noResponse++;\n }\n else if (checked == quizQuestions[i].correctChoice)\n {\n correctAnswerCount++;\n }\n else\n {\n wrongAnswerCount++;\n };\n };\n }", "function remainingQuestions () {\n const questionsLeft = triviaQuestions.length - (currentQuestion + 1);\n const totalQuestions = triviaQuestions.length;\n return `Remaining Questions: ${questionsLeft}/${totalQuestions}`\n}", "count() {\n let sum = this.items.length;\n return sum;\n }", "function post_item_reload() {\n /*\n $('#lblItemCount').html($(\"#testQuestions\").children().length);\n */\n $('#lblItemCount').html($(\"#testQuestions\").find(\".questionInstance\").length);\n\n}", "function size() {\n return n;\n }", "count()\n\t{\n\t\treturn this.numCards;\n\t}", "static async getUsersQtd() {\n const qtd = await user_model.collection.estimatedDocumentCount()\n return qtd \n }", "function scoreCount() {\n for (var i = 0; i < data.length; i++) {\n \n // If user selected an answer\n if (data[i].checked) {\n \n // check if what the user select is equal to the array answers\n \n if (answers.indexOf(data[i].value) !== -1) {\n correctAnswer++;\n } else {\n incorrectAnswer++;\n }\n }\n }\n\n //check how many questions were blank by subtracting the if/else values from above from the total number of questions.\n\n var totalAnswered = correctAnswer + incorrectAnswer;\n console.log(totalAnswered);\n if (totalAnswered !== totalQuiz) {\n blank = totalQuiz - totalAnswered;\n }\n\n $('#correct').html(\" \" + correctAnswer);\n $('#incorrect').html(\" \" + incorrectAnswer);\n $(\"#blank\").html(\" \" + blank);\n\n } //end scoreCount", "function displayScore() {\r\n var score = $('<p>', {\r\n id: 'question'\r\n });\r\n var numCorrect = 0;\r\n for (var i = 0; i < selections.length; i++) {\r\n if (selections[i] === questions[i].correctAnswer) {\r\n numCorrect++;\r\n }\r\n }\r\n score.append('You got ' + numCorrect + ' out of ' +\r\n questions.length + '.');\r\n return score;\r\n }", "function calcTestTime(){\n return document.querySelectorAll(\".questions li\").length * unitQuestionTime;\n}", "function getNumberOfQuizes() {\n\tvar value = 0;\n\tvar strValue = localStorage.getItem(\"numberOfQuizes\");\n\tif (strValue == null) {\n\t\t/* there is no created quizes */\n\t\tlocalStorage.setItem(\"numberOfQuizes\", 0);\n\t} else {\n\t\t/* there is already created quizes */\n\t\tvalue = parseInt(strValue);\n\t}\n\n\treturn value;\n}", "function updateQuestionCounter() {\n\tquestionNumber++; \n\tquestionCounter.textContent = `Question ${questionNumber} of ${totalQuestion}`;\n}", "static countAnswered(items = [TestAnswer.structure]){\n const filtered = items.filter((answer = {}) => (\n (!answer.userAnswer ) || \n ( answer.label === EXAM_LABELS.SKIPPPED)\n ));\n return filtered.length;\n }", "function getCount() {\n return count;\n}", "function count()\n {\n var count = 0;\n for(var t in templates){\n count += templates[t].count();\n }\n return count;\n }", "function displayScore() {\r\n var score = $('<p>',{id: 'question'}); \r\n var numCorrect = 0;\r\n for (var i = 0; i < selections.length; i++) {\r\n if (selections[i] === questions[i].correctAnswer) {\r\n numCorrect++;\r\n }\r\n }\r\n \r\n score.append('You got ' + numCorrect + ' questions out of ' +\r\n questions.length + ' right!!!');\r\n return score;\r\n }", "function qodeNumberOfTestimonialsItems($this){\n var maxItems = $this.data('number-per-slide');\n\n if ($window_width < 768 && maxItems > 1){\n maxItems = 1;\n }else if ($window_width < 1024 && maxItems > 2) {\n maxItems = 2;\n }\n\n return maxItems;\n}", "checkAns() {\n let rightCnt = this.computeScore();\n alert(rightCnt + \" out of \" + this.state.questionArray.length + \" are correct\");\n }", "function count(inputco) {\n return inputco.length;\n}", "function displayScore() {\n var score = $('<p>',{id: 'question'});\n \n var numCorrect = 0;\n for (var i = 0; i < selections.length; i++) {\n if (selections[i] == questions[i].correctAnswer) {\n numCorrect++;\n }\n }\n \n score.append('You got ' + numCorrect + ' questions out of ' +\n questions.length + ' right.');\n return score;\n }", "function getCount(inpt)\r\n{\r\n\tvar len=inpt.length;\r\n\treturn len;\r\n\t\t\r\n\t\r\n}", "roomCoursesNumber(examRoom) {\n let st = this.roomCourse(examRoom)\n return st.size;\n }", "count () {\n return Object.keys(this.cards).length;\n }", "async size() {\n try {\n\n let values = await this.getValuesID();\n let exerciseApi = new ExerciseApi(values[0], values[1]);\n\n let retrieved = await exerciseApi.getAllExercises();\n\n return retrieved.totalCount;\n\n } catch (error) {\n console.log(error);\n }\n }", "function displayScore() {\r\n var score = $('<p>',{id: 'question'});\r\n \r\n var numCorrect = 0;\r\n for (var i = 0; i < selections.length; i++) {\r\n if (selections[i] === questions[i].correctAnswer) {\r\n numCorrect++;\r\n }\r\n }\r\n \r\n score.append('You got ' + numCorrect + ' questions out of ' +\r\n questions.length + ' right!!!');\r\n return score;\r\n }", "length(){\n return this.qLength;\n }", "get numTotalChoices() {\n // Iterates over all of the items in the collection.\n // Probably a bit slower than modifying a property directly when adding / removing items,\n // But a lot easier to maintain.\n return Array.from(this.choices.values(), (value) => value.totalNumber)\n .reduce((acc, cur) => acc + cur, 0)\n }", "function size() {\n\t return n;\n\t }", "function question6() {\n for (var i = 0; i < data.length; i++) {\n if (data[i].who_made === \"i_did\") {\n console.log(data[i].who_made.length)\n }\n }\n}", "function displayScore() {\n var score = $('<p>',{id: 'question'});\n \n var numCorrect = 0;\n for (var i = 0; i < selections.length; i++) {\n if (selections[i] === questions[i].correctAnswer) {\n numCorrect++;\n }\n }\n \n score.append('You got ' + numCorrect + ' of ' +\n questions.length + ' correct');\n return score;\n }", "count() {\n let c = 0;\n\n if (this.players.p1 !== undefined) {\n c++;\n }\n if (this.players.p2 !== undefined) {\n c++;\n }\n\n return c;\n }", "function testQuestion(question) {\n if (question()) {\n correctAnswers++;\n }\n}", "function countSubmissions(){\n\n\t\t$.ajax({\n\t\ttype: \"GET\",\n\t\turl: baseUrl + '/topics',\n\t\tsuccess: function(data){\n\t\t\tdisplaySubmissionscount(data.length)\n\t\t},\n\t\terror: function(data){\n\t\t\tconsole.log('Did not count submissions')\n\t\t}\n\t});\t\n}", "function getTestsCount (){ return this.testsCount }", "get count() {}", "function displayScore() {\n var score = $('<p>',{id: 'question'});\n \n var numCorrect = 0;\n for (var i = 0; i < selections.length; i++) {\n if (selections[i] === questions[i].correctAnswer) {\n numCorrect++;\n }\n }\n\n var numIncorrect = 0;\n for (var i = 0; i < selections.length; i++) {\n if (selections[i] === questions[i].wrongAnswer) {\n numIncorrect++;\n }\n }\n \n score.append('Correct Answers:' + numCorrect);\n score.append('Incorrect Answers:' + numInorrect);\n \n \n }", "get foilCount() {\n return Math.floor(this.itemCount * 0.10); // 10% of questions will have a foil response\n }", "function itemsLength() {\n connection.query(\"SELECT * FROM products\", function (err, results) {\n if (err) throw err;\n var itemsLengthArray = [];\n for (let i = 0; i < results.length; i++) {\n itemsLengthArray.push(results[i].department_id)\n }\n itemsNumber = itemsLengthArray.length;\n });\n return itemsNumber\n}", "function count() {\r\n return data.length;\r\n}", "function displayScore() {\n var score = $('<p>',{id: 'question'});\n \n var numCorrect = 0;\n for (var i = 0; i < selections.length; i++) {\n if (selections[i] === questions[i].correctAnswer) {\n numCorrect++;\n }\n }\n \n function final() {\n ('Συγχαρητήρια! Απάντησες σωστά και στις 5 ερωτήσεις');\n }\n return score;\n }", "getplayer()\n {\n var noOfPlayer=readline.question('do you want 1 player or 2 player..');\n return noOfPlayer;\n }", "function taskCount() {\n var incompleteTasks = $(\"#slot3 .workitem-frame\").length;\n var inProgressTasks = $(\"#slot2 .workitem-frame\").length;\n var completeTasks = $(\"#slot1 .workitem-frame\").length;\n\n document.getElementById(\"numIncomplete\").innerHTML = \"(\" + incompleteTasks + \")\";\n document.getElementById(\"numInProgress\").innerHTML = \"(\" + inProgressTasks + \")\";\n document.getElementById(\"numComplete\").innerHTML = \"(\" + completeTasks + \")\";\n}", "count() {\r\n return this.length;\r\n }", "function questionNum() {\n $(\".questionNum\").text(\"Question \" + questionCounter + \" of 10\");\n }", "function countAdalabers() {\n const howMany = adalabers.length;\n return howMany;\n\n}", "get numUniqueChoices() {\n return new Set(this.possibleChoices).size\n }", "function count() {\n if (timeRemaining > 0) {\n timeRemaining--;\n $(\"#time-display\").text(\"Time Remaining: \" + timeRemaining + \" Seconds\");\n } else {\n unansweredNumber++;\n questionsCompleted++;\n clearInterval(intervalId);\n clearScreen();\n timesUpPrint();\n nextQuestion();\n }\n }", "count (ngram, options) {\n let matchingDocs = this.findDocs(ngram, options)\n return matchingDocs.length\n }", "count(){\n\t\treturn this.size;\n\t}", "getNumLikes() {\n return this.likes.length;\n }", "submitQuiz() {\n let totalCorrect = 0\n let hasSelection = false\n for (let mcq of this.mcqs) {\n let isCorrect = true\n for (let choice of mcq.choices) {\n if (choice.isSelected) {\n hasSelection = true\n if (!choice.isCorrect) {\n isCorrect = false\n break\n }\n }\n }\n\n if (isCorrect && hasSelection) {\n totalCorrect++\n }\n }\n\n console.log()\n console.log(\n `Your score for ${this.category} quiz is: ${totalCorrect}/${this.mcqs.length}`\n )\n\n // Call promise's resolve to end the quiz\n this.onEndQuiz()\n }", "get length() {\n return this.q.length\n }", "function count(){\r\n\r\n\tvar n=0;\r\n\tObject.keys(this.datastore).forEach((key)=>\r\n\t{\r\n\t\t++n;\r\n\t});\r\n\treturn n;\r\n}" ]
[ "0.8672922", "0.8672922", "0.8672922", "0.8176095", "0.80032235", "0.80032235", "0.79872924", "0.77535206", "0.75808924", "0.7268318", "0.7256829", "0.7233575", "0.7208823", "0.7126429", "0.69538635", "0.6945594", "0.69435525", "0.68967384", "0.6796744", "0.6791251", "0.6724862", "0.6671724", "0.6605539", "0.6591083", "0.6579857", "0.6542802", "0.6538035", "0.65073156", "0.65071523", "0.64460164", "0.6408303", "0.6346034", "0.6335853", "0.6313861", "0.63111234", "0.6306719", "0.6295166", "0.6249291", "0.623987", "0.62313104", "0.6221789", "0.61945987", "0.6193783", "0.6185557", "0.61853504", "0.6183736", "0.6170153", "0.61638576", "0.616352", "0.6163305", "0.61580014", "0.6156442", "0.6136541", "0.6133068", "0.6132372", "0.61275727", "0.61267614", "0.61177903", "0.61077064", "0.61031497", "0.6099236", "0.6083137", "0.60569", "0.6054924", "0.6053146", "0.6051152", "0.6042849", "0.60421115", "0.6036702", "0.6032901", "0.6031017", "0.60194236", "0.6017412", "0.6012337", "0.60061836", "0.6000638", "0.5996362", "0.5995972", "0.5988924", "0.5986741", "0.5986304", "0.5981164", "0.59748137", "0.59744596", "0.59706336", "0.5965138", "0.59386665", "0.59238255", "0.5922876", "0.59202504", "0.590691", "0.58967155", "0.5893125", "0.5882227", "0.58819795", "0.5880879", "0.5866971", "0.5866845", "0.58623034", "0.585874" ]
0.8146406
4
function to calculate the result of the survey initialize variables for each choice's score If you add more choices and outcomes, you must add another variable here.
function calculateResults() { document.getElementById('answer').style.display = 'block'; document.getElementById('loading').style.display = 'none'; document.getElementById('calc').style.display = 'none'; inputProgress.style.display = 'none'; progress.style.display = 'none'; var showTable = document.getElementById('table'); showTable.classList.remove('invisible'); caclRiskProfile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tabulateAnswers() {\n // initialize variables for each choice's score\n // If you add more choices and outcomes, you must add another variable here.\n var yes1score = 0;\n var no1score = 0;\n var yes2score = 0;\n var no2score = 0;\n var yes3score = 0;\n var no3score = 0;\n var yes4score = 0;\n var no4score = 0;\n var yes5score = 0;\n var no5score = 0;\n var yes9score = 0;\n var no9score = 0;\n\n var c1score = 0;\n var c2score = 0;\n var c3score = 0;\n var c4score = 0;\n\n // get a list of the radio inputs on the page\n var choices = document.getElementsByTagName('input');\n console.log(choices)\n // loop through all the radio inputs\n for (i=0; i<choices.length; i++) {\n // if the radio is checked..\n if (choices[i].checked) {\n // add 1 to that choice's score\n if (choices[i].value == 'yes1score') {\n yes1score = yes1score + 1;\n }\n if (choices[i].value == 'no1score') {\n no1score = no1score + 1;\n }\n if (choices[i].value == 'yes2score') {\n yes2score = yes2score + 1;\n }\n if (choices[i].value == 'yes3score') {\n yes3score = yes3score + 1;\n }\n if (choices[i].value == 'no2score') {\n no3score = no3score + 1;\n }\n if (choices[i].value == 'c4') {\n c4score = c4score + 1;\n }\n if (choices[i].value == 'yes1') {\n c1score = c1score + 1;\n }\n if (choices[i].value == 'c2') {\n c2score = c2score + 1;\n }\n if (choices[i].value == 'c3') {\n c3score = c3score + 1;\n }\n if (choices[i].value == 'c4') {\n c4score = c4score + 1;\n }\n if (choices[i].value == 'c4') {\n c4score = c4score + 1;\n }\n if (choices[i].value == 'c4') {\n c4score = c4score + 1;\n }\n\n //calling all the text boxes\n var answerbox = document.getElementById('box');\n\n // If you add more choices and outcomes, you must add another if statement below.\n }\n }\n // Find out which choice got the highest score.\n // If you add more choices and outcomes, you must add the variable here.\n var maxscore = Math.max(yes1score,no1score,yes2score,no2score,yes3score,no3score,yes4score,no4score,yes5score,no5score,yes9score,no9score);\n\n // Display answer corresponding to that choice\n var answerbox = document.getElementById('answer');\n if (c1score == maxscore) { // If user chooses the first choice the most, this outcome will be displayed.\n answerbox.innerHTML = \"Thank you for taking our survey! Feel free to contact us for more questions or feedback\";\n }\n if (c2score == maxscore) { // If user chooses the second choice the most, this outcome will be displayed.\n answerbox.innerHTML = \"Thank you for taking our survey! Feel free to contact us for more questions or feedback\";\n }\n if (c3score == maxscore) { // If user chooses the third choice the most, this outcome will be displayed.\n answerbox.innerHTML = \"Thank you for taking our survey! Feel free to contact us for more questions or feedback\";\n }\n if (c4score == maxscore) { // If user chooses the fourth choice the most, this outcome will be displayed.\n answerbox.innerHTML = \"Thank you for taking our survey! Feel free to contact us for more questions or feedback\";\n }\n // If you add more choices, you must add another response below.\n}", "function scoreAnswers(){}", "function questionCalculations()\r\n\t{\r\n\t\t// here, calculations for all the above variables should occur\r\n\t}", "function getResult(x){\n if(x===1)\n {score+=questions[questionIndex].a1.s;\n \n if(answersScoreArray[questionIndex]!==\"NULL\") score-=answersScoreArray[questionIndex];\n answersScoreArray[questionIndex]=questions[questionIndex].a1.s;\n console.log(score);}\n\n else if(x===2)\n {score+=questions[questionIndex].a2.s;\n \n if(answersScoreArray[questionIndex]!==\"NULL\") score-=answersScoreArray[questionIndex];\n answersScoreArray[questionIndex]=questions[questionIndex].a2.s;console.log(score);}\n\n \n else if(x===3)\n {score+=questions[questionIndex].a3.s;\n \n if(answersScoreArray[questionIndex]!==\"NULL\") score-=answersScoreArray[questionIndex];\n answersScoreArray[questionIndex]=questions[questionIndex].a3.s;console.log(score);}\n\n\n else \n {score+=questions[questionIndex].a4.s;\n \n if(answersScoreArray[questionIndex]!==\"NULL\") score-=answersScoreArray[questionIndex];\n answersScoreArray[questionIndex]=questions[questionIndex].a4.s;console.log(score);}\n return score;\n}", "function questionClicked() // Function for when the question is clicked. This function should take all the stats from all reviews under the question and combine them\r\n{\r\nvar questionWordCount; // total word count of all the reviews under the question\r\n\r\nvar questionSentimentScore; // sentiment score average of all the reviews\r\nvar questionSentimentWordCount; // total sentiment words in all the reviews\r\nvar questionSentimentPercent; // percentage of sentiment words vs total words\r\n\r\nvar questionActionableScore; // actionable score average of all the reviews\r\nvar questionActionableWordCount // how many actionable-related words are in all the reviews\r\nvar questionActionablePercent; // percentage of actionable words vs total words\r\n\r\nvar questionRudeScore; // rude word score average from all the reviews\r\nvar questionRudeWordCount; // how many rude words are in all the reviews\r\nvar questionRudePercent; // percentage of rude words vs total words\r\n\r\n\tfunction questionCalculations()\r\n\t{\r\n\t\t// here, calculations for all the above variables should occur\r\n\t}\r\n}", "function choice() {\n \n for (var i = 0; i < 4; i++) {\n if(document.getElementById('option' + i).checked){ // if answer is checked\n var answers = i; //document.getElementById('option' + i).value\n } \n }\n\n// Create conditions to check if answer choices are right or wrong\n\n if(randomQuestion == 0) { // question in array 0\n if(answers == 1){ // correct answer is choice in index 1\n document.getElementById('submit').innerHtml = alert('Correct');\n score++;\n }else {\n document.getElementById('submit').innerHtml = alert('Wrong');\n }\n }\n\n if(randomQuestion == 1) {\n if(answers == 0){\n document.getElementById('submit').innerHtml = alert('Correct');\n score++;\n } else {\n document.getElementById('submit').innerHtml = alert('Wrong');\n\n }\n }\n\n if(randomQuestion == 2) {\n if(answers == 2){\n document.getElementById('submit').innerHtml = alert('Correct');\n score++;\n } else {\n document.getElementById('submit').innerHtml = alert('Wrong');\n \n }\n }\n\n if(randomQuestion == 3) {\n if(answers == 3){\n document.getElementById('submit').innerHtml = alert('Correct');\n score++;\n } else {\n document.getElementById('submit').innerHtml = alert('Wrong');\n \n }\n }\n\n if(randomQuestion == 4) {\n if(answers == 0){\n document.getElementById('submit').innerHtml = alert('Correct');\n score++;\n } else {\n document.getElementById('submit').innerHtml = alert('Wrong');\n \n }\n }\n\n if(randomQuestion == 5) {\n if(answers == 2){\n document.getElementById('submit').innerHtml = alert('Correct');\n score++;\n } else {\n document.getElementById('submit').innerHtml = alert('Wrong');\n \n }\n }\n \n document.getElementById('results').innerText = `Score: ${score}`;\n\n\n}", "function result()\n\t{\n\t\t{\n\t\t\t/* for( i=0; i<questions.length; i++ )\n\t\t\t\t {\n\t\t\t\t checkAnswers( questions[i]);\t\t\n\t\t\t\t } */\n\t\t\t\t\n\t\t\t//To test in console.log\n\t\t\tconsole.log( \"a1 Score is: \" + checkAnswers( questions[0] ) );\n\t\t\tconsole.log( \"a2 Score is: \" + checkAnswers( questions[1] ) );\n\t\t\tconsole.log( \"a3 Score is: \" + checkAnswers( questions[2] ) );\n\t\t\tconsole.log( \"a4 Score is: \" + checkAnswers( questions[3] ) );\n\t\t\tconsole.log( \"a5 Score is: \" + checkAnswers( questions[4] ) );\n\t\t\t\n\t\t\t// To accumulate total marks in to one variable \n\t\t\tvar m1 = parseInt( checkAnswers( questions[0] ) );\n\t\t\tvar m2 = parseInt( checkAnswers( questions[1] ) );\n\t\t\tvar m3 = parseInt( checkAnswers( questions[2] ) );\n\t\t\tvar m4 = parseInt( checkAnswers( questions[3] ) );\n\t\t\tvar m5 = parseInt( checkAnswers( questions[4] ) );\n\n\t\t\tvar total = m1 + m2 + m3 + m4 + m5;\n\n\t\t\tconsole.log( \"Total Score is: \" + total );\n\t\t\t\n\t\t\tquiz.answersBox.value = \"Total Score is: \" + total;\n\t\t}\n\t}", "function getAnswers() {\n $(\"#submit\").on(\"click\", function (event) {\n event.preventDefault();\n\n //First question data and if statement to put data in scoring categories\n var q1Data = $('input[name=q1]:checked').val();\n // console.log(q1Data);\n if (q1Data == \"true\") {\n correct++;\n console.log(q1Data + correct);\n } else if (q1Data == \"false\") {\n incorrect++;\n console.log(q1Data + incorrect);\n } else {\n unanswered++\n console.log(q1Data + unanswered);\n }\n\n //Second question data\n var q2Data = $('input[name=q2]:checked').val();\n if (q2Data == \"true\") {\n correct++;\n console.log(q2Data + correct);\n } else if (q2Data == \"false\") {\n incorrect++;\n console.log(q2Data + incorrect);\n } else {\n unanswered++\n console.log(q2Data + unanswered);\n }\n\n //Third question data\n var q3Data = $('input[name=q3]:checked').val();\n if (q3Data == \"true\") {\n correct++;\n console.log(q3Data + correct);\n } else if (q3Data == \"false\") {\n incorrect++;\n console.log(q3Data + incorrect);\n } else {\n unanswered++\n console.log(q3Data + unanswered);\n }\n //fourth question data\n var q4Data = $('input[name=q4]:checked').val();\n if (q4Data == \"true\") {\n correct++;\n console.log(q4Data + correct);\n } else if (q4Data == \"false\") {\n incorrect++;\n console.log(q4Data + incorrect);\n } else {\n unanswered++\n console.log(q4Data + unanswered);\n }\n\n })\n }", "function getResults(){\n\n // question 1, option 1\n if (selections[0] === \"0\"){\n\n if (selections[1] === \"1\"){\n return 3;\n }\n if (selections[1] === \"2\"){\n return 6;\n }\n if (selections[1] === \"3\"){\n return 8;\n }\n }\n //question 1, option 2\n if (selections[0] === \"1\"){\n\n if (selections[1] === \"0\"){\n return 2;\n }\n if (selections[1] === \"1\"){\n return 4;\n }\n if (selections[1] === \"2\"){\n return 9;\n }\n }\n //question 1, option 3\n if (selections[0] === \"2\"){\n\n if (selections[1] === \"0\"){\n return 1;\n }\n if (selections[1] === \"1\"){\n return 5;\n }\n if (selections[1] === \"2\"){\n return 7;\n }\n }\n}", "function ScoreCheck() {\n an1 = $('input:radio[name=q1]:checked').val();\n an2 = $('input:radio[name=q2]:checked').val();\n an3 = $('input:radio[name=q3]:checked').val();\n an4 = $('input:radio[name=q4]:checked').val();\n\n console.log(\"an1: \" + an1);\n console.log(\"an2: \" + an2);\n console.log(\"an3: \" + an3);\n console.log(\"an4: \" + an4);\n\n if (an1 == 'answer1') {\n correct++;\n } else if (an1 == undefined) {\n unAnswered++;\n } else {\n incorrect++;\n }\n \n if (an2 == 'answer2') {\n correct++;\n } else if (an2 == undefined) {\n unAnswered++;\n } else {\n incorrect++;\n }\n \n if (an3 == 'answer3') {\n correct++;\n } else if (an3 == undefined) {\n unAnswered++;\n } else {\n incorrect++;\n }\n \n if (an4 == 'answer4') {\n correct++;\n } else if (an4 == undefined) {\n unAnswered++;\n } else {\n incorrect++;\n }\n\n DisplayResults();\n}", "function results() {\n // Answer variables.\n correct = 0;\n incorrect = 0;\n unanswered = 0;\n\n for (var i = 1; i < 11; i++) {\n\n if ($(\"input[name='q\" + i + \"']:checked\").val() == \"x\") {\n\n correct++;\n } else if ($(\"input[name='q\" + i + \"']:checked\").val() === undefined) {\n\n unanswered++;\n } else {\n\n incorrect++;\n }\n\n // Display results and hide unwanted elements.\n \n $(\"#quiz\").hide();\n $(\"#whichState\").hide();\n $(\"#validate\").hide();\n $(\"#score\").html(\"Correct: \" + correct + \"<br/>Incorrect: \" + incorrect + \"<br/>Unanswered: \" + unanswered);\n $(\"#timer\").hide();\n $(\"#tally\").show();\n $(\"#clear\").show();\n $(\"#jack\").show();\n }\n\n }", "function myFunction() {\n\n //Create variable to count correct answers \n // var correctAnswers = 0;\n var answers = 0;\n //Create variables for each question's input value\n //Create variables for each question's input value\n var quizOne = $(\"input:radio[name=question1]:checked\").val();\n var quizTwo = $(\"input:radio[name=question2]:checked\").val();\n var quizThree = $(\"input:radio[name=question3]:checked\").val();\n var quizFour = $(\"input:radio[name=question4]:checked\").val();\n var quizFive = $(\"input:radio[name=question5]:checked\").val();\n var quizSix = $(\"input:radio[name=question6]:checked\").val();\n var quizSeven = $(\"input:radio[name=question7]:checked\").val();\n var quizEight = $(\"input:radio[name=question8]:checked\").val();\n\n\n\n\n\n\n if (quizOne == \"correct\") {\n answers = answers + 12.5;\n }\n if (quizTwo == \"correct\") {\n answers = answers + 12.5;\n }\n if (quizThree == \"correct\") {\n answers = answers + 12.5;\n }\n if (quizFour == \"correct\") {\n answers = answers + 12.5;\n }\n if (quizFive == \"correct\") {\n answers = answers + 12.5;\n }\n if (quizSix == \"correct\") {\n answers = answers + 12.5;\n }\n if (quizSeven == \"correct\") {\n answers = answers + 12.5;\n }\n if (quizEight == \"correct\") {\n answers = answers + 12.5;\n }\n\n\n\n document.getElementById(\"message\").innerHTML = \"Score is \" + answers + \"%\";\n document.getElementById(\"result\").style.visibility = \"visible\";\n}", "function getResult() {\n var score = (parseInt(getCheckedRadio('op1'))\n + parseInt(getCheckedRadio('op2'))\n + parseInt(getCheckedRadio('op3'))\n + parseInt(getCheckedRadio('op4')));\n return score;\n}", "function choice1Select(){\r\n howemmy += choice1Array[questioncount].emmyValue\r\n howholly += choice1Array[questioncount].hollyValue\r\n howlauren += choice1Array[questioncount].laurenValue\r\n howmaddie += choice1Array[questioncount].maddieValue\r\n roomieQuiz()\r\n}", "function addStats() {\n var correctAnswers = [\"dye\", \"yellow solid\", \"nitro groups\", \"controlled demolitions\", \"detonator\", \n \"nitroglycerin\", \"explodes spontaneously\", \"smokeless detonation\", \"nitro groups\"];\n var chosen = [];\n chosen[0] = $(\"input[name=radio-0]:checked\").val();\n chosen[1] = $(\"input[name=radio-1]:checked\").val();\n chosen[2] = $(\"input[name=radio-2]:checked\").val();\n chosen[3] = $(\"input[name=radio-3]:checked\").val();\n chosen[4] = $(\"input[name=radio-4]:checked\").val();\n chosen[5] = $(\"input[name=radio-5]:checked\").val();\n chosen[6] = $(\"input[name=radio-6]:checked\").val();\n chosen[7] = $(\"input[name=radio-7]:checked\").val();\n chosen[8] = $(\"input[name=radio-8]:checked\").val();\n\n var allSuggestions = [\"The history of TNT\", \"The apperance of TNT\", \"The molecular compound of TNT\", \"The application of TNT\", \"The explosive character of TNT\",\n \"The explosive substance in dynamite\", \"The dangers of dynamite\", \"The reason why dynamite is still used\", \"The molecular compound of dynamite\", ];\n concreteSuggestions = [];\n for (var i = 0; i < chosen.length; i ++)\n if (chosen[i] === undefined) {\n numUnanswered++;\n concreteSuggestions.push(allSuggestions[i]);\n } else if (chosen[i] !== correctAnswers[i]) {\n numFalse++;\n concreteSuggestions.push(allSuggestions[i]);\n } else {\n numCorrect++;\n }\n \n buildStats();\n}", "_gradeQuestions() {\n let totalPossible = 0; // total possible score of quiz\n let totalScored = 0; // total points scored\n let totalPenalised = 0; // total penalisation points (incorrect selections on multiples)\n let totalFinal = 0; // the final score\n\n for (let i = 0; i < this._data.length; i++) {\n let question = this._data[i];\n totalPossible += question.weight;\n\n let scored = 0;\n let penal = 0;\n\n // get total correct\n for (let j = 0; j < question.answers.length; j++) {\n let answer = question.answers[j];\n\n if (answer.is_correct && question._selectedAnswers.indexOf(answer.id.toString()) !== -1)\n scored += question.weight / question.answers.filter(ans => ans.is_correct === true).length;\n // penalise on multiple choice for incorrect selection\n else if (question.has_multiple_answers && !answer.is_correct && question._selectedAnswers.indexOf(answer.id.toString()) !== -1) {\n // we need to make sure that th\n penal += question.weight / question.answers.filter(ans => ans.is_correct === true).length;\n }\n }\n\n // make sure we dont remove points from the total if the penalisation points are larger than the scored points\n if (scored >= penal) {\n totalScored += scored;\n totalPenalised += penal;\n }\n }\n\n totalFinal = totalScored - totalPenalised;\n\n let resData = {\n totalPossibleScore: totalPossible,\n totalAchievedScore: totalScored,\n totalPenalisedScore: totalPenalised,\n totalFinalScore: totalFinal,\n percentageAchieved: Math.round(totalFinal / totalPossible * 100),\n dom_node: null\n };\n\n return this._constructResultsDOMNode(resData);\n }", "function calcDistictAnswers(answers, question) {\n\n //Check if answers contains more than one submission and question is defined\n if (answers.length < 1 || question == undefined) {\n console.log(\"Error in calculating disctinct answers: No answers provided or question missing\")\n return;\n }\n\n //Prepare return object\n var result = new Array();\n\n if (question.questionType == \"multi-choice\") {\n //All submissions must have same amount of options\n var optionsLength = question.questionOptions.length;\n\n //Get correct answer\n var solution = new Array();\n for (var i = 0; i < optionsLength; i++) {\n if (question.questionType == \"multi-choice\") {\n solution.push(question.questionOptions[i].correct);\n } else {\n solution.push(question.questionOptions[i].text);\n }\n };\n console.log(solution);\n\n //Iterate over answers\n for (var i = 0; i < answers.length; i++) {\n //Check if answer has the correct amount of options\n if (answers[i].submission.length != optionsLength) {\n console.log(\"Error in calculating disctinct options: Multiple choice options differ in length. This can't be as every answer has to have the same length.\")\n }\n\n //Remember id answer is not part of results yet\n var newAnswer = true\n\n //Check if answer was seen before. If yes increase quantity, if no add to results.\n\n for (var j = 0; j < result.length; j++) {\n //Check if answer alreday exists in results and if yes increase quantity\n if (arrayEqual(result[j].submission, answers[i].submission)) {\n result[j].quantity++;\n newAnswer = false;\n break;\n }\n };\n //If still new anser add to reluts\n if (newAnswer) {\n\n //Check if new answer is correct\n var correct = arrayEqual(answers[i].submission, solution);\n\n //text for each dataset\n var optionText = \"\";\n //text that contains all selected answer option texts\n\n var selected = new Array();\n for (var k = 0; k < answers[i].submission.length; k++) {\n if (answers[i].submission[k] == true) {\n selected.push(question.questionOptions[k].text.trim());\n optionText = optionText + String.fromCharCode(65 + k) + \" \";\n }\n };\n\n if (question.questionType == \"multi-choice\") {\n optionText = optionText + \"- \" + selected.join(\", \");\n\n } else {\n console.log(\"Qswefrgth\");\n optionText = selected.join(\", \");\n }\n\n //push new answer to results\n result.push({\n submission : answers[i].submission,\n text : optionText,\n correct : correct,\n quantity : 1 //How often option was selected\n });\n }\n\n };\n }\n //Text questions\n else if (question.questionType = \"text-input\") {\n for (var i = 0; i < answers.length; i++) {\n //Test if answer is new, if no increase quantity in results\n var isNewAnswer = true;\n for (var j = 0; j < result.length; j++) {\n if (arrayEqual(result[j].submission, answers[i].submission)) {\n isNewAnswer = false;\n result[j].quantity++;\n }\n };\n\n //If new answer push to results\n if (isNewAnswer) {\n var newAnswer = {\n submission : answers[i].submission,\n text : answers[i].submission.join(),\n correct : false,\n quantity : 1 //How often option was selected\n }\n if (answers[i].correctness == 100) {\n newAnswer.correct = true;\n }\n result.push(newAnswer)\n }\n };\n }\n //Else (missing or unknown question type) log error\n //else{\n // console.log(\"Error in calculating disctinct options: question type is unknown or mission: \");\n // console.log(question.questionType)\n //}\n\n return result;\n}", "function results() {\n selectedAnswers = $(displayTest.find(\"input:checked\"));\n //if user is correct\n if (\n selectedAnswers[0].value === testSetup[currentQuestion - 1].questionAnswer\n ) {\n //add to correct score and display on element\n correct++;\n $(\"#correct\").text(\"Answers right: \" + correct);\n } else {\n //if user is wrong then add to wrong score and display on element\n wrong++;\n $(\"#incorrect\").text(\"Wrong answers: \" + wrong);\n }\n //check to see if the user has reached the end of the test\n if (currentQuestion === 10) {\n //toggle finalize modal at end of test to display score\n $(\"#modalMatch\").modal(\"toggle\");\n $(\"#testScore\").text(\n \"End of test! You scored a \" + (parseFloat(correct) / 10) * 100 + \"%\"\n );\n //show postTest element\n $(\"#postTest\").show();\n $(\"#submitTest\").hide();\n }\n }", "function assignValues() {\n // let's pick a random radio button as your correct answer\n var random = Math.floor(Math.random() * 4);\n document.querySelector('h2').textContent = (question);\n document.getElementById('score').textContent = (totalCorrect);\n document.getElementById('totalquestions').textContent = (totalQuestions);\n // assigning correctChoice and Correct label to html elements based on an id from the random number\n correctChoice = document.getElementById(random).children[0];\n correctLabel = document.getElementById(random).children[1];\n // updating the value of the correct choice with the answer from the API\n correctChoice.value = correctAnswer;\n // updating the label of the correct choice with the answer from the API\n correctLabel.textContent=`${correctAnswer}`\n // Now we need to assign incorrect values to the other radio buttons\n let incorrectRadioButtons = [0, 1, 2, 3];\n incorrectRadioButtons.splice(random, 1);\n for (let i = 0; i < incorrectRadioButtons.length; i++) {\n // assigning incorrectChoice and incorrect label to html elements\n let incorrectChoice = document.getElementById(incorrectRadioButtons[i]).children[0]\n let incorrectLabel = document.getElementById(incorrectRadioButtons[i]).children[1]\n // updating the value of the radio buttons and the label with the incorrect answer\n incorrectChoice.value = incorrectAnswers[i];\n incorrectLabel.textContent=`${incorrectAnswers[i]}`\n }\n clearInterval(setTheInterval);\n timerReset();\n}", "function init_evaluation() {\n console.log(\"init_evaluation()\");\n var result = {};\n \n for (var i = 0; i < vm.tournament.participants.length; i++) {\n var participant = vm.tournament.participants[i];\n var pointCount = {\n rank: 1,\n name: participant.name,\n wins: 0,\n loses: 0,\n ties: 0,\n score: 0,\n rivalScore: 0,\n points: 0\n };\n \n result[participant.id] = pointCount;\n }\n console.log(result);\n return result;\n }", "calcScore() {\n this.score = 0;\n this.choices.forEach(c => { this.score -= c; });\n }", "function again() {\n result.innerHTML = \"Your result is ...\";\n questionCount = 0;\n athenaScore = 0;\n dionysusScore = 0;\n zeusScore = 0;\n aphroditeScore = 0;\n}", "function calculateScore(oriRes)\r\n{\r\n oriRes=oriRes.split(\",\");\r\n \r\n var score=0;\r\n for (var k = 0; k < oriRes.length; k++)\r\n {\r\n let r=\"choice+\"+k;\r\n var radios = document.getElementsByName(`${r}`);\r\n var val= \"\";\r\n for (var i = 0, length = radios.length; i < length; i++)\r\n {\r\n if (radios[i].checked)\r\n {\r\n val = radios[i].value; \r\n break;\r\n }\r\n }\r\n //console.log(\"Val : \"+val);\r\n //console.log(\"Res : \"+oriRes[k]);\r\n if (val == oriRes[k] ) \r\n {\r\n score=score+1;\r\n } \r\n \r\n }\r\n //console.log(oriRes);\r\n //console.log(score);\r\n let temp=document.getElementById(\"body\");\r\n temp.parentNode.removeChild(temp);\r\n let sol=document.createElement(\"div\");\r\n sol.setAttribute(\"id\",\"sol\");\r\n sol.setAttribute(\"class\",\"container\");\r\n sol.innerHTML=`Congrats!<br>`;\r\n sol.innerHTML+=`You have scored : <h1 id=\"sol1\"><b>${score}</b></h1>`;\r\n\r\n let pp=document.getElementById(\"grand\");\r\n pp.appendChild(sol);\r\n\r\n}", "function getScore(score) {\n $(\".submit\").on(\"click\", function(){\n //see what was selected \n $( \"input[type=radio]:checked\" ).val();\n //if something was selected, add one to answered questions \n if (\":checked\", \"true\") {\n questionsAnswered++;\n //check to see if selected answers are correct \n if (questionsAnswered.val([i]) === correctAnswers[i]) {\n score++;\n }\n }\n else {\n questionsNotAnswered++;\n }\n\n \n \n\n })\n }", "function displayScore() {\n var score = $('<p>',{id: 'question'});\n \n var numCorrect = 0;\n for (var i = 0; i < selections.length; i++) {\n if (selections[i] === questions[i].correctAnswer) {\n numCorrect++;\n }\n }\n\n var numIncorrect = 0;\n for (var i = 0; i < selections.length; i++) {\n if (selections[i] === questions[i].wrongAnswer) {\n numIncorrect++;\n }\n }\n \n score.append('Correct Answers:' + numCorrect);\n score.append('Incorrect Answers:' + numInorrect);\n \n \n }", "function getResult(data) {\n $('#result-btn').on('click', function(e) {\n // gather all checked radio-button values\n var choices = $(\"input[type='radio']:checked\").map(function(i, radio) {\n return $(radio).val();\n }).toArray();\n\n // now you have an array of choices = [\"valueofradiobox1\", \"valueofradiobox2\", \"valueofradiobox2\"]\n // you'll need to do some calculations with this\n // a naive approachf would be to just choose the most common option - seems reasonable\n\n if (choices.length == data.questions.length){\n let outcome = (mode(choices));\n console.log(outcome);\n \n $(\"#full-phrase\").text(data.outcomes[outcome].text);\n $(\"#result-img\").attr(\"src\", data.outcomes[outcome].img);\n\n // from hardcoded html\n // $(\"#full-phrase\").text(getResultArray(mode(choices))[0]);\n // $(\"#result-img\").attr(\"src\", getResultArray(mode(choices))[1]);\n } else{\n console.log(\"?s answered: \" + choices.length);\n console.log(getResultArray(\"error\"));\n $(\"#full-phrase\").text(getResultArray(\"error\")[0]);\n }\n });\n}", "function scoreCount() {\n for (var i = 0; i < data.length; i++) {\n\n // If user selected an answer\n if (data[i].checked) {\n\n // check if what the user select is equal to the array answers\n\n if (answers.indexOf(data[i].value) !== -1) {\n correct++;\n } else {\n incorrect++;\n }\n }\n }\n //check how many questions were blank\n //subtracting the if/else values from above from TOTAL Q's\n \n var totalAnswered = correct + incorrect;\n console.log(totalAnswered);\n if (totalAnswered !== totalQuizQuestions) {\n unanswered = totalQuizQuestions - totalAnswered;\n }\n\n $('#correct').html(\" \" + correct);\n $('#incorrect').html(\" \" + incorrect);\n $(\"#unanswered\").html(\" \" + unanswered);\n }", "function evalChoice () {\n\t\tvar selection = $(\"input[type='radio']:checked\").val();\n\t\tvar defaultText = $(\".rank > p\").text(\"If you'd like a promotion, click NEW GAME below to try again.\");\n\t\t\t\tif(selection == questions[currentQuestion].correctAnswer) {\n\t\t\t\t\tnumCorrect++;\n\t\t\t\t\tconsole.log(numCorrect);\n\t\t\t\t\t//increment number of correct answers, tracks amount of correct answers\n\t\t\t\t\t$(\".feedback\").append(\"<h3>CORRECT</h3>\" + \"<p>\" + questions[currentQuestion].explanation + \"</p>\");\n\t\t\t\t\t//show feedback positive\n\t\t\t\t\tif (numCorrect == 1) {\n\t\t\t\t\t\t$(\"aside.score > #one\").removeClass().addClass(\"stars_appear\");\n\t\t\t\t\t\t $(\".rank > h4\").text(\"You've earned the rank of a BRIGADIER GENERAL!\");\n\t\t\t\t\t\t defaultText;\n\t\t\t\t\t}\n\t\t\t\t\telse if (numCorrect == 2) {\n\t\t\t\t\t\t$(\"aside.score > #two\").removeClass().addClass(\"stars_appear\"); \n\t\t\t\t\t\t$(\".rank > h4\").text(\"You've earned the rank of a MAJOR GENERAL!\");\n\t\t\t\t\t\tdefaultText;\n\t\t\t\t\t}\n\t\t\t\t\telse if (numCorrect == 3) {\n\t\t\t\t\t\t$(\"aside.score > #three\").removeClass().addClass(\"stars_appear\"); \n\t\t\t\t\t\t$(\".rank > h4\").text(\"You've earned the rank of a LIEUTENANT GENERAL!\");\n\t\t\t\t\t\tdefaultText;\n\t\t\t\t\t}\n\t\t\t\t\telse if (numCorrect == 4) {\n\t\t\t\t\t\t$(\"aside.score > #four\").removeClass().addClass(\"stars_appear\"); \n\t\t\t\t\t\t$(\".rank > h4\").text(\"You've earned the rank of a GENERAL!\");\n\t\t\t\t\t\tdefaultText;\n\t\t\t\t\t}\n\t\t\t\t\telse if (numCorrect == 5) {\n\t\t\t\t\t\t$(\"aside.score > #five\").removeClass().addClass(\"stars_appear\"); \n\t\t\t\t\t\t$(\".rank > h4\").text(\"You've earned the highest rank of a FIVE-STAR GENERAL!\");\n\t\t\t\t\t\t$(\".rank > p\").text(\"This rank is specially reserved for wartime generals. You're ready to join the ranks of only NINE Americans who have held this title!\");\n\t\t\t\t\t}\n\t\t\t\t\t//Star will appear if correct\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$(\".feedback\").append(\"<h3>INCORRECT</h3>\" + \"<p>\" + questions[currentQuestion].explanation + \"</p>\");\n\t\t\t\t\t//show feedback negative\n\t\t\t\t\tif(numCorrect == 0) {\n\t\t\t\t\t\t$(\".rank > h4\").text(\"You've created a new rank which prevents you from leading troops into battle.\");\n\t\t\t\t\t\t$(\".rank > p\").text(\"If you'd like a promotion, click NEW GAME below to try again.\")\n\t\t\t\t\t}\n\t\t\t\t}\n\t}", "function generateResults(){\n //grabs answer user selected, current question number, and correct answer\n let selected = $('input[type=radio]:checked', '#question-form').val();\n let allQuestions = store.questions;\n let currentQuestionNumber = store.questionNumber;\n let correct = Object.values(allQuestions)[currentQuestionNumber].correctAnswer;\n \n //determines which view to generate based on if users selected the correct answer. if so, increments the score. determines\n if (correct === selected && currentQuestionNumber < store.questions.length) {\n store.score++;\n return generateCorrectPage();\n }\n else if (correct !== selected && currentQuestionNumber < store.questions.length) {\n return generateWrongPage();\n }\n}", "calculateScore () {\n this.allCorrectAnswers = {};\n this.allSelectedAnswers = readFromCache('selectedAnswers');\n this.quizData.map((qA) => {\n const correctAnswers = [];\n for (const [key, value] of Object.entries(qA.correct_answers)) {\n if (value == 'true') {\n const correctAnswer = helpers.splitter(key, '_', 2);\n correctAnswers.push(correctAnswer);\n }\n }\n this.allCorrectAnswers[qA.id] = correctAnswers;\n });\n for (const [key, value] of Object.entries(this.allSelectedAnswers)) {\n if (value.sort().join(',') === this.allCorrectAnswers[key].sort().join(',')) {\n this.score++;\n }\n }\n this.score = this.score / Object.keys(this.allSelectedAnswers).length * 100;\n this.score = this.score.toFixed(2);\n let allScores = readFromCache('scores');\n allScores = allScores || {};\n allScores[new Date().toLocaleString()] = this.score;\n writeToCache('scores', allScores);\n }", "function result() {\n $('input:checked').each(function () {\n var r = $(this).data('question-index');\n console.log('question index: ' + game.questions[r].a);\n console.log('question answer: ' + $(this).val());\n if ($(this).val() === game.questions[r].a) {\n wins++;\n } else if ($(this).val() !== undefined) {\n loses++;\n }\n });\n notAnswered = (game.questions.length - wins) - loses;\n console.log('these are my wins:' + ' ' + wins);\n console.log('these are my loses:' + ' ' + loses);\n $('.end').append(\"<p class='results'>RESULTS</p>\"); // Title of results \n $('.end').append(\"<p>Questions you got right: \" + wins + '</p>'); // wins\n $('.end').append(\"<p>Questions you got wrong: \" + loses + '</p>'); // loses\n $('.end').append(\"<p>Questions you did not answer: \" + notAnswered + '</p>');\n $(\".end\").show(); // the print the results in HTML \n}", "function gradeTestME() {\n \n var i;\n for (var i = 0; i < questionsME.length; i++) {\n if (Response = Answer){\n totalScore++;\n }\n if (q2 = a2){\n totalScore++;\n }\n if (q3 = a3){\n totalScore++;\n }\n if (q4 = a5){\n totalScore++;\n } \n if (q6 = a7){\n totalScore++;\n } \n if (q8 = a8){\n totalScore++;\n }\n if (q9 = a9){\n totalScore++;\n }\n if (q10 = a10){\n totalScore++;\n }\n if (q11 = a11){\n totalScore++;\n }\n if (q12 = a12){\n totalScore++;\n }\n return totalScore;\n }\n}", "function count(){\n game.correct = 0;\n game.wrong = 0;\n game.unanswered = 0;\n // question 1\n if ($('input:radio[name=\"o1\"]:checked').val() === game.answers.a1) {\n game.correct++;\n console.log(\"this is correct! number:\")\n }\n else if($('input:radio[name=\"o1\"]:checked').val() === undefined){\n game.unanswered++;\n console.log(\"You put nothing...\");\n }\n else{\n game.wrong++;\n console.log(\"this is wrong! number:\");\n };\n\n // question 2\n if ($('input:radio[name=\"o2\"]:checked').val() === game.answers.a2 ) {\n game.correct++;\n console.log(\"this is correct! number:\")\n } \n else if($('input:radio[name=\"o2\"]:checked').val() === undefined){\n game.unanswered++;\n console.log(\"You put nothing...\");\n }\n else{\n game.wrong++;\n console.log(\"this is wrong! number:\");\n };\n\n // question 3\n if ($('input:radio[name=\"o3\"]:checked').val() === game.answers.a3 ) {\n game.correct++;\n console.log(\"this is correct! number:\")\n } \n else if($('input:radio[name=\"o3\"]:checked').val() === undefined){\n game.unanswered++;\n console.log(\"You put nothing...\");\n }\n else{\n game.wrong++;\n console.log(\"this is wrong! number:\");\n };\n \n // question 4\n if ($('input:radio[name=\"o4\"]:checked').val() === game.answers.a4 ) {\n game.correct++;\n console.log(\"this is correct! number:\")\n } \n else if($('input:radio[name=\"o4\"]:checked').val() === undefined){\n game.unanswered++;\n console.log(\"You put nothing...\");\n }\n else{\n game.wrong++;\n console.log(\"this is wrong! number:\");\n };\n }", "function answerCheck() {\n\n var question1 = $(\"input[type='radio'][name='question1']:checked\").val();\n var question2 = $(\"input[type='radio'][name='question2']:checked\").val();\n var question3 = $(\"input[type='radio'][name='question3']:checked\").val();\n var question4 = $(\"input[type='radio'][name='question4']:checked\").val();\n var question5 = $(\"input[type='radio'][name='question5']:checked\").val();\n\n // if statements compare checked value vs pre determined html values\n if (question1 == timechecks()) {\n score += 1;\n }\n if (question2 == \"B\") {\n score += 1;\n }\n if (question3 == \"C\") {\n score += 1;\n }\n if (question4 == \"D\") {\n score += 1;\n }\n if (question5 == \"A\") {\n score += 1;\n }\n return score;\n}", "function calcResults() {\n\t\trbAge.innerText = parseInt(currentAge)+parseInt(yearsToRetirement);\n\t\trbIncome.innerText = rawNestAmount*targetRetirementIncomePercentage;\n\t\trbInterest.innerText = (rawNestAmount-(rawNestAmount*targetRetirementIncomePercentage))*targetInterestRateToNest;\n\t\trbBalance.innerText = (rawNestAmount-(rawNestAmount*targetRetirementIncomePercentage))+(rawNestAmount-(rawNestAmount*targetRetirementIncomePercentage))*targetInterestRateToNest;\n\t}", "generateResults(answers) {\n var result = answers.reduce(\n (acc, o) => ((acc[o.dimension] = (acc[o.dimension] || 0) + 1), acc),\n {}\n );\n\n this.results = result;\n }", "function getQuestion2(ind)\n\t\t\t{\n\t\t\t\t//document.write(\"in question function\");\n\t\t\t\twindow.questions2 = [\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"The Homolographic projection has the correct representation of\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"shape\", \"area\",\"baring\",\"distance\"], \n\t\t\t\t\t\tcorrectChoice: \"area\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"The hazards of radiation belts include\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"Behavior of human beings\", \"Insects\",\"history of technical and scientific terms\",\"The formation of rocks\"], \n\t\t\t\t\t\tcorrectChoice: \"Insects\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"For which of the following disciplines is Nobel Prize awarded?\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"deterioration of circuits\", \"damage of solar cells\",\"adverse living organisms\",\"All of the above\"], \n\t\t\t\t\t\tcorrectChoice: \"All of the above\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"The great Victoria Desert is located in\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"Canada\", \"West Africa\",\"Australia\",\"North America\"], \n\t\t\t\t\t\tcorrectChoice: \"Australia\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"The intersecting lines drawn on maps and globes are\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"latitudes\", \"longitudes\",\"geographic grids\",\"None of the above\"], \n\t\t\t\t\t\tcorrectChoice: \"geographic grids\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"The light of distant stars is affected by\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"the earth's atmosphere\", \"interstellar dust\",\"both (a) and (b)\",\"None of the above\"], \n\t\t\t\t\t\tcorrectChoice: \"both (a) and (b)\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"The landmass of which of the following continents is the least?\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"Africa\", \"Asia\",\"Australia\",\"Europe\"], \n\t\t\t\t\t\tcorrectChoice: \"Australia\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Apart from water, what runs through the mouth of the River Amazon and Lake Victoria?\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"Equator\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Which country was previously called Abyssinia?\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"Ethiopia\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"What is the world's third largest sea\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"Mediterranean\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Which country at the southern tip of the Arabian Peninsula was previously known as Aden?\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"Yemen\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"First Afghan War took place in\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"1839\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t}\n\t\t\t\t];\n\t\t\t\t\n\t\t\t\tvar result = questions2[ind]; \n\t\t\t\treturn result;\n\t\t\t}", "function checkAnswer() {\n \n var numOfQs = 0;\n \n var choices = [];\n var chosen = [];\n \n for (var i = 0; i < pos; i++ ) {\n numOfQs += qNum[i];\n }\n \n firstQ = numOfQs - qNum[pos - 1];\n //document.write(questions[pos].Correct);\n for (var j = firstQ; j < numOfQs; j++) {\n choices.push(document.getElementsByName(\"choices\" + j));\n for (var i=0; i < choices[j -firstQ].length; i++) {\n if (choices[j - firstQ][i].checked) {\n chosen.push(choices[j - firstQ][i].value);\n //document.write(\"if\");\n }\n }\n }\n \n //document.write(questions[pos].Correct);\n //document.write(choices.length);\n //document.write(\"Holass\");\n for (var i=0; i < chosen.length; i++) {\n\n if (chosen[i] == questions[pos].Correct) {\n score++;\n }\n }\n \n //document.write(\"Hola\");\n if (pos == test.length) {\n document.write(\"<h1>Te sacaste \" + score + \" de \" + numOfQs + \" preguntas</h1><br>\");\n document.write(qNum);\n } else {\n renderQuestion();\n }\n}", "function keepingScore() {\n\n var userAnswer1 = $(\"input[name='answer1']:checked\").val();\n var userAnswer2 = $(\"input[name='answer2']:checked\").val();\n var userAnswer3 = $(\"input[name='answer3']:checked\").val();\n var userAnswer4 = $(\"input[name='answer4']:checked\").val();\n var userAnswer5 = $(\"input[name='answer5']:checked\").val();\n var userAnswer6 = $(\"input[name='answer6']:checked\").val();\n var userAnswer7 = $(\"input[name='answer7']:checked\").val();\n var userAnswer8 = $(\"input[name='answer8']:checked\").val();\n var userAnswer9 = $(\"input[name='answer9']:checked\").val();\n var userAnswer10 = $(\"input[name='answer10']:checked\").val();\n \n \n // Question 1\n if (userAnswer1 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer1 == questions[0].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n // Question 2\n if (userAnswer2 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer2 == questions[1].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n // Question 3\n if (userAnswer3 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer3 == questions[2].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n // Question 4\n if (userAnswer4 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer4 == questions[3].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n // Question 5\n if (userAnswer5 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer5 == questions[4].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n // Question 6\n if (userAnswer6 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer6 == questions[5].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n // Question 7\n if (userAnswer7 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer7 == questions[6].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n // Question 8\n if (userAnswer8 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer8 == questions[7].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n // Question 9\n if (userAnswer9 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer9 == questions[8].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n // Question 10\n if (userAnswer10 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer10 == questions[9].answer) {\n\n correctAnswers++;\n }\n else {\n\n incorrectAnswers++;\n }\n\n \n}", "function calculateScore (answerArray, questionArray) {\n answerArray.forEach(function (question) {\n if (question.answer === undefined || question.answer === '') {\n score.noOfUnanswered += 1\n } else {\n questionArray.forEach(function (answer) {\n if (answer.id === question.id) {\n if (answer.answer === question.answer) {\n score.noOfCorrect += 1\n } else {\n score.noOfIncorrect += 1\n }\n }\n })\n }\n })\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n\n }", "function initializeVars() {\r\n\tsimProgress = 0;\r\n\tcount5any = 0;\r\n\tcount4any = 0;\r\n\tcount3 = 0;\r\n\t\r\n\tcount5charAny = 0;\r\n\tcount5charFeat = 0;\r\n\tcount5weapAny = 0;\r\n\tcount5weapFeat1 = 0;\r\n\tcount5weapFeat2 = 0;\r\n\t\r\n\tcount4charAny = 0;\r\n\tcount4weapAny = 0;\r\n\tcount4charFeat1 = 0;\r\n\tcount4charFeat2 = 0;\r\n\tcount4charFeat3 = 0;\r\n\tcount4weapFeat1 = 0;\r\n\tcount4weapFeat2 = 0;\r\n\tcount4weapFeat3 = 0;\r\n\tcount4weapFeat4 = 0;\r\n\tcount4weapFeat5 = 0;\r\n\t\r\n\tfeat5Miss = false;\r\n\tfeat4Miss = false;\r\n\tfateActive = 0;\r\n\tfateCount = 0;\r\n\t\r\n\tnonFeat4Threshold = 500;\r\n\t\r\n\twishCount = 0;\r\n\t\r\n\tresultContent = \"\";\r\n}", "function populate() {\n if (quiz.isEnded()) {\n var finishTime = new Date().toISOString();\n showScore(finishTime);\n storeScore(finishTime);\n }\n else {\n // show question\n var element = document.getElementById(\"question\");\n element.innerHTML = quiz.getQuestionIndex().text;\n // show choices \n var choices = quiz.getQuestionIndex().choices;\n for (var i = 0; i < choices.length; i++) {\n var element = document.getElementById(\"choice\" + i);\n element.innerHTML = choices[i];\n guess(\"btn\" + i, choices[i]);\n }\n showProgress();\n }\n}", "function scoreKeeper()\n {\n for (var i = 0; i < quizQuestions.length; i++)\n {\n var checked = $(\"input[name='options\"+i+1+\"']:checked\").val();\n if (checked === undefined)\n {\n noResponse++;\n }\n else if (checked == quizQuestions[i].correctChoice)\n {\n correctAnswerCount++;\n }\n else\n {\n wrongAnswerCount++;\n };\n };\n }", "function scoreSolution(solution) {\n\n}", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n}", "function scoreKeep(){\n var userAnswer1 = $(\"input[name='answer1']:checked\").val();\n var userAnswer2 = $(\"input[name='answer2']:checked\").val();\n var userAnswer3 = $(\"input[name='answer3']:checked\").val();\n var userAnswer4 = $(\"input[name='answer4']:checked\").val();\n var userAnswer5 = $(\"input[name='answer5']:checked\").val();\n var userAnswer6 = $(\"input[name='answer6']:checked\").val();\n var userAnswer7 = $(\"input[name='answer7']:checked\").val();\n\n //now keep score for all questions and answers\n if (userAnswer1 === undefined) {\n\n unanswered++;\n } else if (userAnswer1 == questions[0].answer) {\n\n correctAnswers++;\n } else {\n\n incorrectAnswers++;\n }\n if(userAnswer2 === undefined) {\n unanswered++;\n } else if (userAnswer2 == questions[1].answer){\n correctAnswers++;\n } else {\n incorrectAnswers++;\n }\n if(userAnswer3 === undefined) {\n unanswered++;\n } else if (userAnswer3 == questions[2].answer){\n correctAnswers++;\n } else {\n incorrectAnswers++;\n }\n if(userAnswer4 === undefined) {\n unanswered++;\n } else if (userAnswer4 == questions[3].answer){\n correctAnswers++;\n } else {\n incorrectAnswers++;\n }\n if(userAnswer5 === undefined) {\n unanswered++;\n } else if (userAnswer5 == questions[4].answer){\n correctAnswers++;\n } else {\n incorrectAnswers++;\n }\n if(userAnswer6 === undefined) {\n unanswered++;\n } else if (userAnswer6 == questions[5].answer){\n correctAnswers++;\n } else {\n incorrectAnswers++;\n }\n if(userAnswer7 === undefined) {\n unanswered++;\n } else if (userAnswer7 == questions[6].answer){\n correctAnswers++;\n } else {\n incorrectAnswers++;\n }\n}", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function keepingScore() {\n\n var userAnswer1 = $(\"input[name='answer1']:checked\").val();\n var userAnswer2 = $(\"input[name='answer2']:checked\").val();\n var userAnswer3 = $(\"input[name='answer3']:checked\").val();\n var userAnswer4 = $(\"input[name='answer4']:checked\").val();\n var userAnswer5 = $(\"input[name='answer5']:checked\").val();\n var userAnswer6 = $(\"input[name='answer6']:checked\").val();\n var userAnswer7 = $(\"input[name='answer7']:checked\").val();\n\n // Q1\n if (userAnswer1 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer1 == questions[0].answer) {\n\n correctAnswers++;\n }\n else {\n\n wrongAnswers++;\n }\n\n // Q2\n if (userAnswer2 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer2 == questions[1].answer) {\n\n correctAnswers++;\n }\n else {\n\n wrongAnswers++;\n }\n\n // Q3\n if (userAnswer3 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer3 == questions[2].answer) {\n\n correctAnswers++;\n }\n else {\n\n wrongAnswers++;\n }\n\n // Q4\n if (userAnswer4 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer4 == questions[3].answer) {\n\n correctAnswers++;\n }\n else {\n\n wrongAnswers++;\n }\n\n // Q5\n if (userAnswer5 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer5 == questions[4].answer) {\n\n correctAnswers++;\n }\n else {\n\n wrongAnswers++;\n }\n\n // Q6\n if (userAnswer6 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer6 == questions[5].answer) {\n\n correctAnswers++;\n }\n else {\n\n wrongAnswers++;\n }\n\n // Q7\n if (userAnswer7 === undefined) {\n\n unanswered++;\n }\n else if (userAnswer7 == questions[6].answer) {\n\n correctAnswers++;\n }\n else {\n\n wrongAnswers++;\n } \n\n}", "function getQuestion(ind)\n\t\t\t{\n\t\t\t\t//document.write(\"in question function\");\n\t\t\t\twindow.questions = [\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Grand Central Terminal, Park Avenue, New York is the world's\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"largest railway station\", \"highest railway station\",\"longest railway station\",\"None of the above\"], \n\t\t\t\t\t\tcorrectChoice: \"highest railway station\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Entomology is the science that studies\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"Behavior of human beings\", \"Insects\",\"history of technical and scientific terms\",\"The formation of rocks\"], \n\t\t\t\t\t\tcorrectChoice: \"Insects\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"For which of the following disciplines is Nobel Prize awarded?\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"Physics and Chemistry\", \"Physiology or Medicine\",\"Literature, Peace and Economics\",\"All of the above\"], \n\t\t\t\t\t\tcorrectChoice: \"All of the above\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Hitler party which came into power in 1933 is known as\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"Labour Party\", \"Nazi Party\",\"Ku-Klux-Klan\",\"Democratic Party\"], \n\t\t\t\t\t\tcorrectChoice: \"Nazi Party\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Each year World Red Cross and Red Crescent Day is celebrated on\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"May 8\", \"May 18\",\"June 8\",\"June 18\"], \n\t\t\t\t\t\tcorrectChoice: \"May 8\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Where is the great Barrier Reef?\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"Africa\", \"N.America\",\"S.America\",\"Asia\",\"Australia\"], \n\t\t\t\t\t\tcorrectChoice: \"Asutralia\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"For the Olympics and World Tournaments, the dimensions of basketball court are\", \n\t\t\t\t\t\tquestionType: 1, \n\t\t\t\t\t\tchoices: [ \"26 m x 14 m\", \"28 m x 15 m\",\"27 m x 16 m\",\"28 m x 16 m\"], \n\t\t\t\t\t\tcorrectChoice: \"28 m x 15 m\", \n\t\t\t\t\t\tscore: 5 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Filaria is caused by\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"Mosquito\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"Fathometer is used to measure\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"Ocean depth\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"For seeing objects at the surface of water from a submarine under water, the instrument used is\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"periscope\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"East Timor, which became the 191st member of the UN, is in the continent of\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"Asia\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tquestion: \"First Afghan War took place in\", \n\t\t\t\t\t\tquestionType: 2, \n\t\t\t\t\t\tcorrectAnswer: \"1839\", \n\t\t\t\t\t\tscore: 10 \n\t\t\t\t\t}\n\t\t\t\t];\n\n\t\t\t\tvar result = questions[ind]; \n\t\t\t\treturn result;\n\t\t\t}", "function populate() {\n if (quiz.isOver()) {\n\n showScore();\n } else {\n //show question\n var element = document.getElementById(\"question\");\n element.innerHTML = quiz.getQuestionIndex().text;\n\n //show choices\n var choices = quiz.getQuestionIndex().choices;\n for (var i = 0; i < choices.length; i++) {\n var element = document.getElementById(\"choice\" + i);\n element.innerHTML = choices[i];\n guessAnswer(\"btn\" + i, choices[i]);\n }\n showProgress();\n }\n}", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n \n }", "function scoreCount() {\n for (var i = 0; i < data.length; i++) {\n \n // If user selected an answer\n if (data[i].checked) {\n \n // check if what the user select is equal to the array answers\n \n if (answers.indexOf(data[i].value) !== -1) {\n correctAnswer++;\n } else {\n incorrectAnswer++;\n }\n }\n }\n\n //check how many questions were blank by subtracting the if/else values from above from the total number of questions.\n\n var totalAnswered = correctAnswer + incorrectAnswer;\n console.log(totalAnswered);\n if (totalAnswered !== totalQuiz) {\n blank = totalQuiz - totalAnswered;\n }\n\n $('#correct').html(\" \" + correctAnswer);\n $('#incorrect').html(\" \" + incorrectAnswer);\n $(\"#blank\").html(\" \" + blank);\n\n } //end scoreCount", "function evaluate() {\n $('#quizBoard').hide();\n $('#results').show();\n if ($('#q1f').is(':checked')) {\n correct++\n } else {\n incorrect++\n }\n if ($('#q2t').is(':checked')) {\n correct++\n } else {\n incorrect++\n }\n if ($('#q3f').is(':checked')) {\n correct++\n } else {\n incorrect++\n }\n if ($('#q4f').is(':checked')) {\n correct++\n } else {\n incorrect++\n }\n if ($('#q5t').is(':checked')) {\n correct++\n } else {\n incorrect++\n }\n if ($('#q6t').is(':checked')) {\n correct++\n } else {\n incorrect++\n }\n if ($('#q7f').is(':checked')) {\n correct++\n } else {\n incorrect++\n }\n if ($('#q8f').is(':checked')) {\n correct++\n } else {\n incorrect++\n }\n if ($('#q9f').is(':checked')) {\n correct++\n } else {\n incorrect++\n }\n $('#corr').html(correct)\n $('#incorr').html(incorrect)\n $('#percent').html(correct/9)\n}", "function choose() {\r\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\r\n }", "function choose() {\r\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\r\n }", "function choose() {\r\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\r\n }", "function choose() {\r\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\r\n }", "function choose() {\r\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\r\n }", "function initConditions() {\r\n\t\tscore = 0;\r\n\t\tcurrentQuestion = 1;\r\n\t\tanswerAllowed = true;\r\n\t}", "function submitAnswer(){\r\n\ty = document.getElementById(\"qans\").value\r\n\tvar yy=y.toUpperCase();\r\n\tx = document.getElementById(\"question\").value\r\n \r\n\tif (ans===1){\r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"B\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===2){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"A\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===3){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"C\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===4){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"D\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===5){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"D\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===6){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"B\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===7){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"B\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===8){ \r\n\t\ty = document.getElementById(\"qans\").value;\r\n\t\tif(yy===\"D\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===9){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"C\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===10){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"B\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===11){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"A\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===12){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"A\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===13){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"C\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===14){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"D\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===15){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"B\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\t}\r\n\telse if (ans===16){ \r\n\t\ty = document.getElementById(\"qans\").value\r\n\t\tif(yy===\"D\"){\r\n\t\t\tcorrectAnswer();\r\n\t\t}\r\n\t\telse {\r\n\t\t\twrongAnswer();\r\n\t\t}\r\n\t\tdocument.view.qscore.value=score\r\n\t\tdocument.view.streakscore.value=current_streak\r\n\r\n\t\t// as this is the last question in the quiz, update the text of \"Next Question\" to make it more appropriate\r\n\t\tdocument.view.go.value=\"End Quiz...\"\r\n\t}\r\n\r\n\t// enable selection of \"Next Question\"\r\n\tdocument.getElementById(\"go_id\").disabled = false\r\n\tdocument.getElementById(\"go_id\").style.opacity = \"1\"\r\n\r\n\t// disable selection of \"Submit Answer\" to avoid logic issues\r\n\tdocument.getElementById(\"user_submit\").disabled = true\r\n\tdocument.getElementById(\"user_submit\").style.opacity = \"0.5\"\r\n\r\n\t// update var ans\r\n\tans++; \r\n}", "function choose() {\r\n selections[questionCounter] = +$('input.answer:checked').val();\r\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function scoreCount() {\n for (var i = 0; i < userSelection.length; i++) {\n // If user selected an answer\n if (userSelection[i].checked) {\n // check if what the user select is equal to the array answers\n\n if (answers.indexOf(userSelection[i].value) !== -1) {\n correctAnswer++;\n } else {\n incorrectAnswer++;\n }\n }\n }\n //check how many questions were blank by subtracting the if/else values from above from the total number of questions.\n\n var totalAnswered = correctAnswer + incorrectAnswer;\n\n if (totalAnswered !== totalQuestions) {\n blank = totalQuestions - totalAnswered;\n }\n\n $(\"#correct\").html(\" \" + correctAnswer);\n $(\"#incorrect\").html(\" \" + incorrectAnswer);\n $(\"#blank\").html(\" \" + blank);\n } //end scoreCount", "function results(){\n gameStart=false;\n correct=0;\n //checking if selected answer is correct\n var yes1=$(\"input#qb\").prop(\"checked\");\n var yes2=$(\"input#qf\").prop(\"checked\");\n var yes3=$(\"input#qg\").prop(\"checked\");\n //increase correct total with correct answer\n if(yes1===true){\n correct++;\n }\n if(yes2===true){\n correct++;\n }\n if(yes3===true){\n correct++;\n }\n if (correct===3){\n $(\"#timeRemain\").html(\"<h1>Right. Off you go.</h1>\");\n }\n else{\n $(\"#timeRemain\").html(\"<h1>Auuuuuuuugh!</h1>\"+\"YOU ONlY GOT \"+correct+\" CORRECT!\");\n }\n correct=0;\n clearTimeout(timerEnd);\n clearInterval(timerCount);\n $(\"#start\").prop(\"disabled\",false);\n }", "function genarateQuestion() {\r\n if(quiz.isEnded()){\r\n //showScore\r\n showScore();\r\n } else {\r\n //show question\r\n let element = document.getElementById(\"question\");\r\n element.innerHTML = quiz.getQuestion().question;\r\n\r\n //show choices\r\n let choices = quiz.getQuestion().choices;\r\n\r\n for(let i = 0; i < choices.length; i++) {\r\n let element = document.getElementById(\"choice\" + i);\r\n\r\n element.innerHTML = choices[i];\r\n guessCorrectAnswer(\"choice\" + i, choices[i]);\r\n \r\n }\r\n\r\n showProgress();\r\n \r\n }\r\n}", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function calcResults() {\n\n var ag1results,ag2results,ag3results,ag4results,ag5results,res,resag,ag1percent,ag2percent,ag3percent,ag4percent,ag5percent;\n\n function getPercent(score,possible){\n return Math.round(score/possible*100);\n }\n\n function findLevel(score){\n var mylang = localStorage.getObject('mylang');\n switch(true) {\n case( score <= 25 ):\n if(mylang == \"fr\"){\n level = \"Besoin évident de développement de la gouvernance (niveau 1)\";\n }else if(mylang == \"es\") {\n level = \" Necesidad clara de desarrollo de la gobernanza (nivel 1)\";\n }else if(mylang == \"pt\") {\n level = \"Necessidade clara de desenvolvimento da governação (nível 1)\";\n }else{\n level = \"Clear need of governance development (level 1)\";\n }\n break;\n case( score > 25 && score <= 50 ):\n if(mylang == \"fr\"){\n level = \" Niveau de gouvernance élémentaire (niveau 2)\";\n }else if(mylang == \"es\") {\n level = \" Nivel básico de gobernanza (nivel 2)\";\n }else if(mylang == \"pt\") {\n level = \"Nível básico de governação (nível 2)\";\n }else{\n level = \"Basic level of governance (level 2)\";\n }\n break;\n case( score > 50 && score <= 75 ):\n if(mylang == \"fr\"){\n level = \" Gouvernance dynamique et guidée par des objectifs (niveau 3)\";\n }else if(mylang == \"es\") {\n level = \" Gobernanza basada en metas y gobernanza dinámica (nivel 3)\";\n }else if(mylang == \"pt\") {\n level = \"Governação dinâmica e voltada a metas (nível 3)\";\n }else{\n level = \"Goal-Driven and dynamic governance (level 3)\";\n }\n break;\n case( score > 75 ):\n if(mylang == \"fr\"){\n level = \" Gouvernance transformatrice (niveau 4)\";\n }else if(mylang == \"es\") {\n level = \" Gobernanza transformadora (nivel 4)\";\n }else if(mylang == \"pt\") {\n level = \"Governação transformadora (nível 4)\";\n }else{ \n level = \"Transformational governance (level 4)\";\n }\n break;\n }\n return level;\n }\n\n if(gsdata){\n\n var percentArray = [], accScore, stakeScore, dirScore, resScore, enhScore, totalScore, mlevel, ag1level, ag2level, ag3level, ag4level, ag5level;\n \n\n accScore = parseInt(gsdata.answers[1],10) + parseInt(gsdata.answers[2],10) + parseInt(gsdata.answers[5],10) + parseInt(gsdata.answers[8],10) + parseInt(gsdata.answers[10],10) + parseInt(gsdata.answers[13],10);\n var accPercent = getPercent(accScore,24);\n percentArray.push(accPercent);\n\n stakeScore = parseInt(gsdata.answers[11],10) + parseInt(gsdata.answers[14],10) + parseInt(gsdata.answers[22],10);\n var stakePercent = getPercent(stakeScore,12);\n percentArray.push(stakePercent);\n\n dirScore = parseInt(gsdata.answers[6],10) +parseInt(gsdata.answers[7],10) +parseInt(gsdata.answers[12],10) +parseInt(gsdata.answers[16],10);\n var dirPercent = getPercent(dirScore,16);\n percentArray.push(dirPercent);\n\n resScore = parseInt(gsdata.answers[3],10) +parseInt(gsdata.answers[4],10) +parseInt(gsdata.answers[17],10) +parseInt(gsdata.answers[21],10) +parseInt(gsdata.answers[23],10) +parseInt(gsdata.answers[25],10);\n var resPercent = getPercent(resScore,24);\n percentArray.push(resPercent);\n\n enhScore = parseInt(gsdata.answers[9],10) +parseInt(gsdata.answers[15],10) +parseInt(gsdata.answers[18],10) +parseInt(gsdata.answers[19],10) +parseInt(gsdata.answers[20],10) +parseInt(gsdata.answers[24],10);\n var enhPercent = getPercent(enhScore,24);\n percentArray.push(enhPercent);\n\n totalScore = accScore+stakeScore+dirScore+resScore+enhScore;\n \n mlevel = findLevel(totalScore);\n\n //list each area with the score\n var res_en = \"<h2>Govscore Assessment</h2><p>You assessed your organization as follows: </p>\";\n res_en += \"<div id=\\\"accountability\\\"><h3>Cultivating Accountability</h3><p>\" + accScore + \" <span>out of 24 points</span> - \" + accPercent + \"%.</p></div>\";\n res_en += \"<div id=\\\"stakeholders\\\"><h3>Engaging Stakeholders</h3><p>\" + stakeScore + \" <span>out of 12 points</span> - \" + stakePercent + \"%.</p></div>\";\n res_en += \"<div id=\\\"direction\\\"><h3>Shared Strategic Direction</h3><p>\" + dirScore + \" <span>out of 16 points</span> - \" + dirPercent + \"%.</p></div>\";\n res_en += \"<div id=\\\"resources\\\"><h3>Stewarding Resources</h3><p>\" + resScore + \" <span>out of 24 points</span> - \" + resPercent + \"%.</p></div>\";\n res_en += \"<div id=\\\"enhancement\\\"><h3>Continuous Governance Enhancement</h3><p>\" + enhScore + \" <span>out of 24 points</span> - \" + enhPercent + \"%.</p></div>\";\n res_en += \"<div id=\\\"total\\\"><h3>Total Score</h3><p>\" + totalScore +\" points out of 100</p><p>This places your organization at:</p><p>\" + mlevel + \"</p></div>\";\n res_en += \"<div id=\\\"link\\\"><p>See the complete results at <a href=\\\"http://govscoreglobal.org/your-govscore-results/\\\">govscoreglobal.org</a></p>\";\n\n \n var res_fr = \"<h2>Évaluation GovScore</h2><p>Vous avez évalué votre organisation de la manière suivante: </p>\";\n res_fr += \"<div id=\\\"accountability\\\"><h3>Cultiver le Respect des Engagements</h3><p>\" + accScore + \" <span> sur 24 points</span> - \" + accPercent + \"%.</p></div>\";\n res_fr += \"<div id=\\\"stakeholders\\\"><h3>Engagement des Parties Prenantes</h3><p>\" + stakeScore + \" <span> sur 12 points</span> - \" + stakePercent + \"%.</p></div>\";\n res_fr += \"<div id=\\\"direction\\\"><h3>Orientation Stratégique Commune</h3><p>\" + dirScore + \" <span> sur 16 points</span> - \" + dirPercent + \"%.</p></div>\";\n res_fr += \"<div id=\\\"resources\\\"><h3>Bonne Intendance des Ressources</h3><p>\" + resScore + \" <span>sur 24 points</span> - \" + resPercent + \"%.</p></div>\";\n res_fr += \"<div id=\\\"enhancement\\\"><h3>Amélioration Continue de la Gouvernance</h3><p>\" + enhScore + \" <span>sur 24 points</span> - \" + enhPercent + \"%.</p></div>\";\n res_fr += \"<div id=\\\"total\\\"><h3>Score Total</h3><p>\" + totalScore +\" points sur 100</p><p> Ces résultats placent votre organisation au: </p><p>\" + mlevel + \"</p></div>\";\n res_fr += \"<div id=\\\"link\\\"><p>Consultez <a href='http://govscoreglobal.org/your-govscore-results/'>govscoreglobal.org</a>pour en savoir plus.</p>\";\n\n var res_es = \"<h2>Evaluación Govscore</h2><p>Usted evaluó a su organización como sigue: </p>\";\n res_es += \"<div id=\\\"accountability\\\"><h3>Cultivar la Rendición de Cuentas</h3><p>\" + accScore + \" <span>de 24 puntos</span> - \" + accPercent + \"%.</p></div>\";\n res_es += \"<div id=\\\"stakeholders\\\"><h3>Involucrar a los Grupos de Interés </h3><p>\" + stakeScore + \" <span>de 12 puntos</span> - \" + stakePercent + \"%.</p></div>\";\n res_es += \"<div id=\\\"direction\\\"><h3>Dirección Estratégica Compartida</h3><p>\" + dirScore + \" <span>de 16 puntos</span> - \" + dirPercent + \"%.</p></div>\";\n res_es += \"<div id=\\\"resources\\\"><h3>Gestión de los Recursos</h3><p>\" + resScore + \" <span>de 24 puntos</span> - \" + resPercent + \"%.</p></div>\";\n res_es += \"<div id=\\\"enhancement\\\"><h3>Mejoramiento Continuo de la Gobernanza</h3><p>\" + enhScore + \" <span>de 24 puntos</span> - \" + enhPercent + \"%.</p></div>\";\n res_es += \"<div id=\\\"total\\\"><h3>Puntuación Total</h3><p>\" + totalScore +\" de 100 puntos</p><p>Esto coloca a su organización en el:</p><p class=\\\"level\\\">\" + mlevel + \"</p></div>\";\n res_es += \"<div id=\\\"link\\\"><p>Aprender más en <a href='http://govscoreglobal.org/your-govscore-results/'>govscoreglobal.org</a>.</p>\";\n\n var res_pt = \"<h2>Avaliação do Govscore</h2><p>Você avaliou sua organização da seguinte forma: </p>\";\n res_pt += \"<div id=\\\"accountability\\\"><h3>Cultivo da Responsabilidade de Prestação de Contas</h3><p>\" + accScore + \" <span>de um total de 24 pontos</span> - \" + accPercent + \"%.</p></div>\";\n res_pt += \"<div id=\\\"stakeholders\\\"><h3>Engajamento das Partes Interessadas</h3><p>\" + stakeScore + \" <span>de um total de 12 pontos</span> - \" + stakePercent + \"%.</p></div>\";\n res_pt += \"<div id=\\\"direction\\\"><h3>Direcção Estratégica Compartilhada</h3><p>\" + dirScore + \" <span>de um total de 16 pontos</span> - \" + dirPercent + \"%.</p></div>\";\n res_pt += \"<div id=\\\"resources\\\"><h3>Administração responsável dos recursos</h3><p>\" + resScore + \" <span>de um total de 24 pontos</span> - \" + resPercent + \"%.</p></div>\";\n res_pt += \"<div id=\\\"enhancement\\\"><h3>Melhoria contínua da governação</h3><p>\" + enhScore + \" <span>de um total de 24 pontos</span> - \" + enhPercent + \"%.</p></div>\";\n res_pt += \"<div id=\\\"total\\\"><h3>Pontuação total</h3><p>\" + totalScore +\" de um total de 100 pontos</p><p>Isto situa sua organização no: </p><p class=\\\"level\\\">\" + mlevel + \"</p></div>\";\n res_pt += \"<div id=\\\"link\\\"><p>Obtenha mais informações em <a href='http://govscoreglobal.org/your-govscore-results/'>govscoreglobal.org</a>.</p>\";\n }\n\n if(ag1data || ag2data || ag3data || ag4data || ag5data ){\n res_en += \"<h2>Advanced Govscore</h2>\";\n res_fr += \"<h2>Évaluation GovScore Approfondie</h2>\";\n res_es += \"<h2>Govscore Avançado</h2>\";\n res_pt += \"<h2>GovScore Avançada</h2>\";\n\n function getAgResults(dataset,resSet,ansnums) {\n var resSet = 0;\n for(i=0; i<(dataset.answers.length - ansnums); i++){\n var ans = ansnums + i;\n resSet += parseInt(dataset.answers[ans], 10);\n }\n return resSet;\n }\n\n if(ag1data){ag1results = getAgResults(ag1data,ag1results,1);}\n if(ag2data){ag2results = getAgResults(ag2data,ag2results,25);}\n if(ag3data){ag3results = getAgResults(ag3data,ag3results,49);}\n if(ag4data){ag4results = getAgResults(ag4data,ag4results,61);}\n if(ag5data){ag5results = getAgResults(ag5data,ag5results,85);}\n\n ag1percent = getPercent(ag1results,24);\n ag2percent = getPercent(ag2results,24);\n ag3percent = getPercent(ag3results,12);\n ag4percent = getPercent(ag4results,24);\n ag5percent = getPercent(ag5results,16);\n\n ag1level = findLevel(ag1percent);\n ag2level = findLevel(ag2percent);\n ag3level = findLevel(ag3percent);\n ag4level = findLevel(ag4percent);\n ag5level = findLevel(ag5percent);\n \n if(ag1results >= 0){\n res_en += \"<div id=\\\"adv-govscore\\\"><h3>Cultivating Accountability</h3><p>\" + ag1results + \" <span>out of 24</span> - \" + ag1percent + \"%</p><p>This places your organization at:</p><p>\" + ag1level + \"</p></div>\";\n res_fr += \"<div id=\\\"adv-govscore\\\"><h3>Cultiver le Respect des Engagements</h3><p>\" + ag1results + \" <span>sur 24</span> - \" + ag1percent + \"%</p><p>Ces résultats placent votre organisation au:</p><p>\" + ag1level + \"</p></div>\";\n res_es += \"<div id=\\\"adv-govscore\\\"><h3>Cultivar la Rendición de Cuentas</h3><p>\" + ag1results + \" <span> de 24</span> - \" + ag1percent + \"%</p><p>Esto coloca a su organización en el:</p><p>\" + ag1level + \"</p></div>\";\n res_pt += \"<div id=\\\"adv-govscore\\\"><h3>Cultivo da Responsabilidade de Prestação de Contas</h3><p>\" + ag1results + \" <span>de um total de 24</span> - \" + ag1percent + \"%</p><p>Isto situa sua organização no:</p><p>\" + ag1level + \"</p></div>\";\n }\n if(ag2results >= 0){\n res_en += \"<div id=\\\"adv-govscore\\\"><h3>Engaging Stakeholders</h3><p>\" + ag2results + \" <span>out of 24</span> - \" + ag2percent + \"%</p><p>This places your organization at:</p><p>\" + ag2level + \"</p></div>\";\n res_fr += \"<div id=\\\"adv-govscore\\\"><h3>Engagement des Parties Prenantes</h3><p>\" + ag2results + \" <span>sur 24</span> - \" + ag2percent + \"%</p><p>Ces résultats placent votre organisation au:</p><p>\" + ag2level + \"</p></div>\";\n res_es += \"<div id=\\\"adv-govscore\\\"><h3>Involucrar a los Grupos de Interés </h3><p>\" + ag2results + \" <span> de 24</span> - \" + ag2percent + \"%</p><p>Esto coloca a su organización en el:</p><p>\" + ag2level + \"</p></div>\";\n res_pt += \"<div id=\\\"adv-govscore\\\"><h3>Engajamento das Partes Interessadas</h3><p>\" + ag2results + \" <span>de um total de 24</span> - \" + ag2percent + \"%</p><p>Isto situa sua organização no:</p><p>\" + ag2level + \"</p></div>\";\n }\n if(ag3results >= 0){\n res_en += \"<div id=\\\"adv-govscore\\\"><h3>Shared Strategic Direction</h3><p>\" + ag3results + \" <span>out of 12</span> - \" + ag3percent + \"%</p><p>This places your organization at:</p><p>\" + ag3level + \"</p></div>\";\n res_fr += \"<div id=\\\"adv-govscore\\\"><h3>Orientation Stratégique Commune</h3><p>\" + ag3results + \" <span>sur 12</span> - \" + ag3percent + \"%</p><p>Ces résultats placent votre organisation au </p><p>\" + ag3level + \"</p></div>\";\n res_es += \"<div id=\\\"adv-govscore\\\"><h3>Dirección Estratégica Compartida</h3><p>\" + ag3results + \" <span> de 12</span> - \" + ag3percent + \"%</p><p>Esto coloca a su organización en el:</p><p>\" + ag3level + \"</p></div>\";\n res_pt += \"<div id=\\\"adv-govscore\\\"><h3>Direcção Estratégica Compartilhada</h3><p>\" + ag3results + \" <span>de um total de 12</span> - \" + ag3percent + \"%</p><p>Isto situa sua organização no:</p><p>\" + ag3level + \"</p></div>\";\n }\n if(ag4results >= 0){\n res_en += \"<div id=\\\"adv-govscore\\\"><h3>Stewarding Resources</h3><p>\" + ag4results + \" <span>out of 24</span> - \" + ag4percent + \"%</p><p>This places your organization at:</p><p>\" + ag4level + \"</p></div>\";\n res_fr += \"<div id=\\\"adv-govscore\\\"><h3>Bonne Intendance des Ressources</h3><p>\" + ag4results + \" <span>sur 24</span> - \" + ag4percent + \"%</p><p>Ces résultats placent votre organisation au:</p><p>\" + ag4level + \"</p></div>\";\n res_es += \"<div id=\\\"adv-govscore\\\"><h3>Gestión de los Recursos</h3><p>\" + ag4results + \" <span> de 24</span> - \" + ag4percent + \"%</p><p>Esto coloca a su organización en el:</p><p>\" + ag4level + \"</p></div>\";\n res_pt += \"<div id=\\\"adv-govscore\\\"><h3>Administração Responsável dos Recursos</h3><p>\" + ag4results + \" <span>e um total de 24</span> - \" + ag4percent + \"%</p><p>Isto situa sua organização no:</p><p>\" + ag4level + \"</p></div>\";\n }\n if(ag5results >= 0){\n res_en += \"<div id=\\\"adv-govscore\\\"><h3>Continuous Governance Enhancement</h3><p>\" + ag5results + \" <span>out of 16</span> - \" + ag5percent + \"%</p><p>This places your organization at:</p><p>\" + ag5level + \"</p></div>\";\n res_fr += \"<div id=\\\"adv-govscore\\\"><h3>Amélioration Continue de la Gouvernance</h3><p>\" + ag5results + \" <span>sur 16</span> - \" + ag5percent + \"%</p><p>Ces résultats placent votre organisation au:</p><p>\" + ag5level + \"</p></div>\";\n res_es += \"<div id=\\\"adv-govscore\\\"><h3>Mejoramiento Continuo de la Gobernanza</h3><p>\" + ag5results + \" <span>de 16</span> - \" + ag5percent + \"%</p><p>Esto coloca a su organización en el:</p><p>\" + ag5level + \"</p></div>\";\n res_pt += \"<div id=\\\"adv-govscore\\\"><h3>Melhoria Contínua da Governação</h3><p>\" + ag5results + \" <span>e um total de 16</span> - \" + ag5percent + \"%</p><p>Isto situa sua organização no:</p><p>\" + ag5level + \"</p></div>\";\n }\n }\n var mylang = localStorage.getObject('mylang');\n if(mylang == \"fr\" ) {\n localStorage.setItem(\"result\", res_fr);\n document.getElementById('gs-results').innerHTML = res_fr;\n }else if(mylang == \"es\" ) {\n localStorage.setItem(\"result\", res_es);\n document.getElementById('gs-results').innerHTML = res_es;\n }else if(mylang == \"pt\" ) {\n localStorage.setItem(\"result\", res_pt);\n document.getElementById('gs-results').innerHTML = res_pt;\n }else{\n localStorage.setItem(\"result\", res_en);\n document.getElementById('gs-results').innerHTML = res_en;\n }\n\n}", "function computeScore()\n{\n var currvalue, values, i;\n\t\n values = [];\n\tcurrvalue = 0; // 0 = invalid; 1 = valid\n\t\n\tfor(i=0; i<IndexList.length; i++)\n\t{\n\t\tcurrvalue = validateAnswer(i);\n\t\tvalues[i] = currvalue;\n\t}\n\t\n\treturn values;\n}", "function getAns(part_index, opt_len) {\n // use user-selected score if available\n var selScore = document.getElementById('scoreSelect')?.value;\n if (!isNaN(selScore)) {\n if (selScore == -1) { // random answers\n randomize = true;\n // fall through to get a random answer\n } else {\n return selScore;\n }\n }\n // on page load, use script config\n if (randomize) {\n let prob = Object.assign({}, ans_prob); // make a copy\n for (let i = opt_len + 1; i <= 5; ++i) {\n prob[i] = 0; // for nonexistent options, probability = 0\n }\n let cmf = normalize(prob);\n let rnd = Math.random(); // random float in [0,1)\n let choice;\n for (let i = 1; i <= 5; ++i) {\n if (rnd < cmf[i]) {\n choice = i;\n break;\n }\n }\n return choice;\n } else {\n if (part_index == 0) return part1_ans;\n else if (part_index == 1) return part2_ans;\n else return default_ans;\n }\n }", "function result() {\r\n var score = 0;\r\n if (document.getElementById('correct1').checked) {\r\n score++;\r\n }\r\n if (document.getElementById('correct2').checked) {\r\n score++;\r\n }\r\n if (document.getElementById('correct3').checked) {\r\n score++;\r\n }\r\n alert(\"your score is: \"+score)\r\n}", "prepare_practice() {\n let dataset = this.raw_sub_conds;\n let practice_dataset = [];\n\n for (let i = 0; i < 1; i++){\n practice_dataset[i] = dataset[i];\n this.practice_trial_data[i] = [];\n }\n // set variables to practice\n this.practice_conditions_constants = practice_dataset;\n this.curr_conditions_constants = practice_dataset;\n this.curr_condition_index = 0;\n this.current_practice_condition_index = 0;\n this.input_count_array = new Array(this.curr_conditions_constants[0].trials_per_round).fill(0);\n this.is_practice = true;\n }", "function calcDistictOptions(answers, question) {\n\n //Check if answers contains more than one submission and question is defined\n if (answers.length < 1 || question == undefined) {\n console.log(\"Error in calculating disctinct options: No answers provided or question missing\")\n return;\n }\n\n //Prepare return object\n var result = [];\n //If questiion is a multiple choice question -> submission is array of boolean\n if (question.questionType == \"multi-choice\") {\n\n //All submissions must have same amount of options\n var optionsLength = question.questionOptions.length;\n\n //Fill return object with\n for (var i = 0; i < optionsLength; i++) {\n result.push({\n text : question.questionOptions[i].text,\n correct : question.questionOptions[i].correct,\n quantity : 0 //How often option was selected\n });\n }\n\n //Iterate over answers\n for (var i = 0; i < answers.length; i++) {\n //Check if answer has the correct amount of options\n if (answers[i].submission.length != optionsLength) {\n console.log(\"Error in calculating disctinct options: Multiple choice options differ in length. This can't be as every answer has to have the same length.\")\n console.log(answers[i].submission);\n console.log(optionsLength);\n }\n\n //Update return object\n //For every option in submission of an answer check if selected and if true increase value in return object\n for (var j = 0; j < optionsLength; j++) {\n if (answers[i].submission[j] == true) {\n result[j].quantity++;\n }\n };\n\n };\n }\n //Text questions\n else if (question.questionType = \"text-input\") {\n for (var i = 0; i < answers.length; i++) {\n //Test if answer is new, if no increase quantity in results\n var isNewAnswer = true;\n for (var j = 0; j < result.length; j++) {\n if (arrayEqual(result[j].submission, answers[i].submission)) {\n isNewAnswer = false;\n result[j].quantity++;\n }\n };\n\n //If new answer push to results\n if (isNewAnswer) {\n var newAnswer = {\n submission : answers[i].submission,\n text : answers[i].submission.join(),\n correct : false,\n quantity : 1 //How often option was selected\n }\n if (answers[i].correctness == 100) {\n newAnswer.correct = true;\n }\n result.push(newAnswer)\n }\n };\n }\n\n // Else (missing or unknown question type) log error\n else {\n console.log(\"Error in calculating disctinct options: question type is unknown or mission: \");\n console.log(question.questionType)\n }\n\n return result;\n}", "function gameResults() {\n //stop timeinterval\n clearInterval(timer);\n\n //tally answers right wrong and untouched to corresponding variables\n // console.log($(\"input:radio[name=0]:checked\").val()); --- was hard to get working, also despite seeming like it returns strings for \n for (var i = 0; i < answerKey.length; i++) {\n var answer = $(\"input:radio[name=\" + i + \"]:checked\").val();\n // console.log(answer);\n // console.log(answerKey[i]);\n if (answer === answerKey[i]) {\n // console.log(\"correct\") \n right++;\n } else if (answer === undefined) {\n not++;\n } else {\n wrong++;\n }\n }\n //display those values into the elements in results div\n // console.log(right);\n // console.log(wrong);\n // console.log(not);\n if (right === 0) {\n $(\"#correct\").text(\"none\");\n } else {\n $(\"#correct\").text(right);\n }\n if (wrong === 0) {\n $(\"#incorrect\").text(\"none\");\n } else {\n $(\"#incorrect\").text(wrong);\n }\n if (not === 0) {\n $(\"#not-put\").text(\"You were able to answer all of the questions!\");\n } else if (not === 1) {\n $(\"#not-put\").text(\"You did not give an answer for one question.\");\n } else {\n $(\"#not-put\").text(\"You didn't give an answer for \" + not + \" questions.\");\n }\n if (not === 0 && wrong === 0){\n $(\"#results-page\").append(\"<h2 class=text-center> Amazing job! You're a real fan. :) </h2><br><br>\")\n }\n $(\"#results-page\").append(\"<h2 class=text-center> Thanks for playing, come back soon. </h2><br><br>\")\n //hide questions div \n $(\"#questions-page\").toggle();\n //show results div\n $(\"#results-page\").toggle();\n\n }", "function addToScore () {\n score += questionInfo[correspondingQuestion].points\n document.querySelector('#score').innerHTML = `Score: ${score}`\n numberOfCorrectAnswers++\n}", "function setVars() {\n numberOfLives = 3;\n questionNumber = 1;\n roundPosition = 1;\n timerVal = 60;\n arrayPositionSelect = 1;\n questions = [];\n clearInterval(timer);\n}", "function score_indicate (){\r\n //\r\n Substitute the array of [national score, English score, math score, science score, social score] into the variable \"subject_points\"\r\n let subject_points = [Number ( $ ( ' #national_language ' ).val()),\r\n Number( $ ( ' #english ' ).val()),\r\n Number( $ ( ' #mathematics ' ).val()),\r\n Number( $ ( ' #science ' ).val()),\r\n Number( $ ( ' #society ' ).val())\r\n ]; // in the variable \"sum\" // [National score, English score, math [Score, Science score, Social score] respectively. // Hint! Take out the arrays one by one and add them.\r\n let sum = subject_points[ 0 ];\r\n sum = sum + subject_points[ 1 ];\r\n sum = sum + subject_points[ 2 ];\r\n sum = sum + subject_points[ 3 ];\r\n sum = sum + subject_points[ 4 ];\r\n\r\n\r\n\r\n // Output the variable \"sum\" (total points) to \"Total points:\" (class=\"sum_indicate\").\r\n $ ( \" #sum_indicate \" ).text(sum);\r\n let average = sum / subject_points.length;\r\n $ (\"#average_indicate\").text(average);\r\n //\r\n Assign the average value to the\r\n variable \"average\" . (Total number of points you want to average (sum) / total number) // Hint! Use the length method to find the total number. (length method: a method to get the length of the string and the number of elements in the array)\r\n }", "function updateQuestion() {\n //1 - update the question text\n $('#question').text(myQuestions[currentQuestionNumber].questionText);\n //2 - display what are the choices for the current question\n //2.1 - first delete all exisiting choices before populating it with new ones\n $('.options').empty();\n //2.2 - get the total number of choices for the current question\n let totalChoices = myQuestions[currentQuestionNumber].questionChoices.length;\n console.log(totalChoices);\n //2.3 - loop through all the choices and append them to the choices container\n for (var i = 0; i < totalChoices; i++) {\n //2.3.1 - loop through the answer choices and create a dynamically generated row for eaach of them\n let buildEachChoice = \"<input class='answers' name='q1' type='radio' value=\" + i + \">\" + myQuestions[currentQuestionNumber].questionChoices[i] + \"<br>\";\n //2.3.2 - append that row to the choices container in html\n $('.options').append(buildEachChoice);\n }\n //3 - displays the number of the current question\n $('.footer').text(\"Question\" + (currentQuestionNumber + 1) + \"of\" + totalAmountOfQuestions);\n\n\n // display current score\n $('.right').text(\"Current Score: \" + totalNumberOfCorrectAnswers + \"/\" + totalAmountOfQuestions);\n\n}", "function displayScore() {\n var score = $('<p>',{id: 'question'});\n \n var numCorrect = 0;\n for (var i = 0; i < selections.length; i++) {\n if (selections[i] === questions[i].awsA) {\n numCorrect += 0;\n }\n else if (selections[i] === questions[i].awsB) {\n numCorrect++;\n }\n else if (selections[i] === questions[i].awsC) {\n numCorrect += 2;\n }\n else {\n numCorrect += 3;\n }\n }\n \n if (numCorrect >5) {\n score.append('You scored ' + numCorrect + ' out of ' +\n questions.length * 3 + '. Exercising several hours before bed is the best time to exercise because it allows our brains to return to baseline activity and eventually allow us to feel sleepy. Because brains are increasingly active during exercise, you should not exercise right before bed or you might risk feeling restless. You’re doing great by giving your brain enough time before bed to calm down! If you don’t exercise, it is still recommended that you start exercising consistently because it correlates with benefits on your sleep quality and memory consolidation - just keep in mind not to exercise too close to bedtime! ');\n return score;\n } else {\n score.append('You scored ' + numCorrect + ' out of ' +\n questions.length * 3 + '. Exercising too close to your bedtime can affect your sleepiness levels and impede on your ability to fall asleep quickly. Because our brains are increasingly active during exercise, they will need an adequate amount of time to return to base level and eventually allow us to feel sleepy. Exercising is good, but do not do it too close to bedtime or else you will not be able to sleep!');\n return score;\n }\n }", "function displayScore() {\n var score = $('<p>',{id: 'question'});\n \n var numCorrect = 0;\n for (var i = 0; i < selections.length; i++) {\n if (selections[i] === questions[i].correctAnswer) {\n numCorrect++;\n }\n }\n \n function final() {\n ('Συγχαρητήρια! Απάντησες σωστά και στις 5 ερωτήσεις');\n }\n return score;\n }", "function choose() {\n selections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n pref.push(questions[questionCounter].choices[$('input[name=\"answer\"]:checked').val()][1])\n\n }", "function populate() {\n if(quiz.isEnded() || timerEl===0) {\n showScores();\n }\n else {\n // *with otherwise 'else' statement, function will equate HTML question Id w/ java Element variable and the Question text of the questions' quastionIndex property specified in the array (i.e. question is replaced in HTML)\n\n var element = document.getElementById(\"question\");\n element.innerHTML = quiz.getQuestionIndex().text;\n \n //* creates choices variable based on QuestionIndex retrieving choices Array in the questions Array (i.e. array w/in array);\n var choices = quiz.getQuestionIndex().choices;\n //* Function then loops through the choices array until going through length of choices arrray; creating element variables that is the choice + arrayiteration# as loop continues\n for(var i = 0; i < choices.length; i++) {\n var element = document.getElementById(\"choice\" + i);\n //*the HTML choice element is then replaced by the content of the choice array of \"i\" as the loop continues\n element.innerHTML = choices[i];\n //**also executes the guess function with btn(i) and choice[i] as parameters\n guess(\"btn\" + i, choices[i]);\n } \n }\n}", "function showQuestion() {\n var currentQ = questions[currentQuestionIndex];\n title.innerHTML = \"<h4>\" + currentQ.questionTitle + \"</h4>\";\n choice1.innerHTML = currentQ.choice1;\n choice2.innerHTML = currentQ.choice2;\n choice3.innerHTML = currentQ.choice3;\n choice4.innerHTML = currentQ.choice4;\n console.log(score);\n}", "function getResultInfor(score) {\n let result = {};\n switch (true) {\n case score >= 20:\n result = {\n date: Date.now(),\n score: score,\n PD: 'Major Depression (severe)',\n TR: 'You should definitely seek help from a clinician. For the level of severity indicated by your responses, you should consider enlisting in regular counseling as well as an antidepressant regimen.',\n bar: {\n height: '175px',\n background: '#f77a7a'\n }\n };\n break;\n case score >= 15:\n result = {\n date: Date.now(),\n score: score,\n PD: 'Major Depression (moderately severe)',\n TR: 'While you might consider anti-depressants, you might benefit from regular psychotherapy alone. In any case, you should get in touch with a clinician to talk about your symptoms.',\n bar: {\n height: '150px',\n background: '#f3b0b0'\n }\n };\n break;\n case score >= 10:\n result = {\n date: Date.now(),\n score: score,\n PD: 'Minor Depression',\n TR: 'It sounds like you might just be in a bit of a funk. Keep track of how you are feeling in our journaling app. If your do not improve within a month, consider a lifestyle change or seeking counseling.',\n bar: {\n height: '100px',\n background: '#f3e2e5'\n }\n };\n break;\n case score >= 5:\n result = {\n date: Date.now(),\n score: score,\n PD: 'Minimal Symptoms of Depression',\n TR: 'It sounds like the shades of blue that you are experiencing are probably part of a robust and healthy emotional life. Start journaling to probe the contours of your score-to-score emotional life. Post your entries to our forums - sometimes conversation is the best medicine!',\n bar: {\n height: '75px',\n background: '#fff0f3'\n }\n };\n break;\n case score < 5:\n result = {\n date: Date.now(),\n score: score,\n PD: 'No Symptoms',\n TR: 'Wow! You sound like you are really enjoying life. Consider writing a journal entry to reflect on how you have gotten to this zen place. Maybe even share it to the forums - you may just inspire someone!',\n bar: {\n height: '50px',\n background: '#f1ecec',\n }\n };\n }\n return result;\n }", "function populate() {\n// alert(\"function populate started\");\n// this function gives each of the answers 0 points so if someone doesn't answer a question\n// the whole thing will continue to work\n for(var i=0; i<3; i++) { Quest[i]=0; }\n}", "function choose() {\n \tselections[questionCounter] = +$('input[name=\"answer\"]:checked').val();\n }", "function calculateOutcome(selection, displayedCue) {\n \n if (selection == 1){\n if (trial.outcomes1[displayedCue.index].length == undefined){ // If there's only one possible outcome (same below)\n outcome = trial.outcomes1[displayedCue.index];\n } else {\n outcome = jsPsych.randomization.sampleWithReplacement(trial.outcomes1[displayedCue.index], 1, trial.outcomeProbs1);\n }\n } else if (selection == 2){\n if (trial.outcomes2[displayedCue.index].length == undefined){\n outcome = trial.outcomes2[displayedCue.index];\n } else {\n outcome = jsPsych.randomization.sampleWithReplacement(trial.outcomes2[displayedCue.index], 1, trial.outcomeProbs2);\n }\n }\n \n \n \n /* var randomArray = [-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];\n \n if (outcome == 100 | outcome == -100 | outcome == 500 | outcome == -500){\n outcome = parseInt(outcome) + parseInt(jsPsych.randomization.sampleWithReplacement(randomArray, 1));\n } */\n \n return(outcome)\n }", "function populate() {\n// alert(\"function populate started\"); \n// this function gives each of the answers 0 points so if someone doesn't answer a question\n// the whole thing will continue to work \n for(var i=0; i<3; i++) { Quest[i]=0; } \n}", "function populate(){\r\n if(quiz.isEnded()){\r\n showScores();\r\n }\r\n else {\r\n //show questions\r\n var element = document.getElementById(\"question\");\r\n element.innerHTML = quiz.getQuestionIndex().text;\r\n\r\n //show options\r\n var choices = quiz.getQuestionIndex().choices;\r\n for(var i = 0; i < choices.length; i++){\r\n var element = document.getElementById(\"choice\" + i);\r\n element.innerHTML = choices[i];\r\n guess(\"btn\" + i, choices[i]);\r\n }\r\n\r\n showProgress();\r\n }\r\n}", "function grade() {\n\n//question 1 answer r1\nif (answer1 === \"r1\") {\n correct++;\n } else if ((answer1 === \"r2\") || (answer1 === \"r3\")) {\n incorrect++;\n } else {\n unanswered++;\n }\n\n//question 2 answer r3\nif (answer2 === \"r3\") {\n correct++;\n } else if ((answer2 === \"r2\") || (answer2 === \"r1\")) {\n incorrect++;\n } else {\n unanswered++;\n }\n//question 3 answer r1\nif (answer3 === \"r1\") {\n correct++;\n } else if ((answer3 === \"r2\") || (answer3 === \"r3\")) {\n incorrect++;\n } else {\n unanswered++;\n }\n//question 4 answer r2\nif (answer4 === \"r2\") {\n correct++;\n } else if ((answer4 === \"r1\") || (answer4 === \"r3\")) {\n incorrect++;\n } else {\n unanswered++;\n }\n//question 5 answer r3\nif (answer5 === \"r3\") {\n correct++;\n } else if ((answer5 === \"r2\") || (answer5 === \"r1\")) {\n incorrect++;\n } else {\n unanswered++;\n }\n}", "function initialPrompt() {\n word = input.question(\"Let's play some scrabble!\\n\\nEnter a word to score: \");\n \n /*console.log('\\n' + scrabbleScore.scoring);\n console.log('\\n' + 'Simple Score: ' + simpleScore.scoring());\n console.log('\\n' + 'Vowel Bonus Score: ' + vowelBonusScore.scoring());*/\n \n}", "function initChoice(choices) {\n if (increment == 0) {\n if (choices == 'accommodations') {\n $(\"#button-one\").toggleClass(\"active\"), increment = increment + 1;\n } else if (choices == 'attractions') {\n $(\"#button-one\").toggleClass(\"active\"), increment = increment + 1;\n }\n }\n return (myVar0 = Object.keys(myObj).map((key) => myObj[key][choices][0]),\n myVar1 = Object.keys(myObj).map((key) => myObj[key][choices][1])[0],\n myVar2 = Object.keys(myObj).map((key) => myObj[key][choices][2])[0],\n myVar3 = Object.keys(myObj).map((key) => myObj[key][choices][3]),\n myVar4 = Object.keys(myObj).map((key) => myObj[key][choices][4])[0],\n myVar5 = Object.keys(myObj).map((key) => myObj[key][choices][5])[0],\n myVar6 = Object.keys(myObj).map((key) => myObj[key][choices][6]),\n myVar7 = Object.keys(myObj).map((key) => myObj[key][choices][7])[0],\n myVar8 = Object.keys(myObj).map((key) => myObj[key][choices][8])[0],\n myVar9 = Object.keys(myObj).map((key) => myObj[key][choices][9]),\n myVar10 = Object.keys(myObj).map((key) => myObj[key][choices][10])[0],\n myVar11 = Object.keys(myObj).map((key) => myObj[key][choices][11])[0],\n myVar12 = Object.keys(myObj).map((key) => myObj[key][choices][12]),\n myVar13 = Object.keys(myObj).map((key) => myObj[key][choices][13])[0],\n myVar14 = Object.keys(myObj).map((key) => myObj[key][choices][14])[0],\n myVar15 = Object.keys(myObj).map((key) => myObj[key][choices][15])[0],\n myVar16 = Object.keys(myObj).map((key) => myObj[key][choices][16])[0],\n myVar17 = Object.keys(myObj).map((key) => myObj[key][choices][17])[0],\n myVar18 = Object.keys(myObj).map((key) => myObj[key][choices][18])[0],\n myVar19 = Object.keys(myObj).map((key) => myObj[key][choices][19])[0]\n ),\n executeAll();\n}" ]
[ "0.69529206", "0.6812489", "0.6739765", "0.660667", "0.658801", "0.6580189", "0.647715", "0.6439481", "0.6417482", "0.6347581", "0.6314834", "0.62986904", "0.629216", "0.6291693", "0.6270063", "0.6256722", "0.6206869", "0.6194857", "0.6182095", "0.61617374", "0.6160131", "0.61587626", "0.61562467", "0.6144093", "0.6111418", "0.6101884", "0.6093235", "0.60929894", "0.6082577", "0.60668975", "0.60583824", "0.6053669", "0.6038521", "0.6037311", "0.60315317", "0.6031304", "0.6027324", "0.60211366", "0.60067064", "0.59977454", "0.5995973", "0.59883493", "0.59814405", "0.5979303", "0.5964243", "0.5962362", "0.5956823", "0.59500474", "0.59500474", "0.59500474", "0.59500474", "0.59500474", "0.59500474", "0.59500474", "0.59500474", "0.59500474", "0.5948778", "0.5947719", "0.5944265", "0.5942216", "0.59357387", "0.5930233", "0.5927811", "0.5900637", "0.5900637", "0.5900637", "0.5900637", "0.5900637", "0.58979297", "0.5893445", "0.5886091", "0.58720976", "0.5872081", "0.5869195", "0.5869003", "0.58677834", "0.5866365", "0.5866232", "0.58572817", "0.5850606", "0.5847945", "0.5846576", "0.5823989", "0.58141196", "0.5813427", "0.58116394", "0.5810493", "0.58015656", "0.5797153", "0.57963365", "0.57889414", "0.5787406", "0.57845473", "0.57838494", "0.57757336", "0.57747144", "0.5770697", "0.5770065", "0.5767767", "0.5760708", "0.5760636" ]
0.0
-1
program the reset button
function resetAnswer() { var ele = document.getElementById('riskProfile'); window.scrollTo(ele.offsetLeft, ele.offsetTop); window.location.reload(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resetButtonPressed() {\n reset();\n}", "function reset() {\n reset_butt.click();\n}", "function pressReset(){\n events.emit('resetBtn', true);\n }", "function actionOnResetClick () {\n gameRestart();\n }", "function reset() {\n\n }", "function reset(e){\n \n}", "function buttonResetClicked()\n{\n resetFruitTally();\n resetAll();\n //init();\n}", "function resetButton() {\n\tvar r = getProgress();\n\tsetProgress(r = 0);\n}", "function reset() { }", "Reset() {\n\n }", "function myResetButton(){\n\t\t\t\n\t\t\n\t\t\tvar resetb = document.createElement(\"BUTTON\");\n\t\t\tvar resetText = document.createTextNode(\"RESET\");\n\t\t\tresetb.setAttribute(\"id\",\"resetg\");\n\t\t\t\n\t\t\tresetb.appendChild(resetText);\n\t\t\t\n\t\t\t$(element).find(\"#hello\").get(0).appendChild(resetb);\n\t\t\t$(\"#resetg\").click(function(eventObject){\n\t\t\t\t\n\t\t\t\treset();\n\t\t\t\t\n\t\t\t});\n\t\t\n\t\t}", "addResetButton() {\n this.interface.gui.add(this.gameOrchestrator, 'reset').name('Restart Game');\n }", "function resetBtnFunctionality () {\n\tresetButton.addEventListener(\"click\", function() {\n\t\treset();\n\t});\n}", "function resetButton()\n{\n background(255, 0, 0);\n button = createButton('Reset!');\n button.size(100,34);\n button.style(\"font-size\", \"25px\");\n button.position((w2 + 720), (h2 + 400));\n button.mousePressed(reset);\n}", "function reset() {\n spin3();\n ask.innerHTML = ' ';\n input.style.display = 'block';\n input.value = '';\n button.style.display = 'block';\n start.src = './img/start.png';\n button2.style.display = 'none';\n}", "function click(){\ndocument.getElementById(\"reset\").reset();}", "setResetButton(){\n\t\tdocument.getElementsByClassName('acceptButton')[0].value = \"reset\";\n\t\tfadeIn(\"acceptButton\");\n\t}", "function reset() {\n post(\"reset!\");\n\toutlet(0, 255);\n}", "function resetear() {\n eliminarIntegrantesAnteriores();\n ocultarbotonCalculo();\n ocultarIntegrantes();\n ocultarTextoResultado();\n vaciarValorInput();\n}", "function resetButtonClicked()\n{\n document.getElementById('batteryLight').style.backgroundColor = \"rgb(165, 164, 164)\";\n powerState = 0;\n document.getElementById('screenTextTop').textContent = \"\";\n document.getElementById('screenTextBottom').textContent = \"\";\n batteryLife = 0;\n number1 = \"\";\n number2 = \"\";\n number3 = 0;\n operatorClicked = false;\n console.log(\"calculator reset\");\n}", "function doReset() {\n $(\"*[id^='fragment_']\").css(\"background-color\", \"transparent\");\n $(\"*[id^='fragment_']\").hide();\n $('#explanation').html('');\n $(\".prev_btn\").css('visibility', 'hidden');\n $(\".next_btn\").css('visibility', 'visible');\n $(\"#btn_reset\").css('visibility', 'hidden');\n $(\"#forward_button_label\").text('Start');\n $(\"#forward_button_label\").css('cursor', 'pointer');\n $(\"#forward_button_label\").css('color', 'red');\n $(\"#forward_button_label\").css('font-size', '24px');\n $(\"#next_arrow\").hide();\n currentStep = 0;\n}", "function resetPressed() {\n\n // go back to the \"graph loaded\" status\n hdxAV.setStatus(hdxStates.GRAPH_LOADED);\n\n hdxAV.startPause.innerHTML = \"Start\";\n\n // show waypoints, show connections\n initWaypointsAndConnections(true, true,\n visualSettings.undiscovered);\n\n hideTopControlPanel();\n hdxAVCP.cleanup();\n algorithmSelectionChanged();\n //hideAVStatusPanel();\n showAlgorithmSelectionPanel();\n document.getElementById(\"pscode\").style.display = \"none\";\n deleteCBPSelector();\n newMapTileSelected();\n}", "function reset()\n{\n\tneedsReset = 1;\n\t\n\t/*\n\tpost(\"Setting needsReset\");\n\tpost();\n\t*/\n}", "function resetClicked(evt){\n\t//hide the modal\n modalHide();\t\n\t//reset the cards\n resetCards();\n\t//reset the turn counter\n resetCounter();\n //reset the card list\n cardList = [];\n\t//reset the timer\n resetTimer();\n //reset stars\n resetStars();\n //shuffle the deck\n shuffleCards();\n}", "function resetButton() {\n $('#reset').click(function() {\n startGame(gameSpaces);\n })\n}", "function reset()\n\t{\n\t\tsetValue('')\n\t}", "handleReset() {\n\n }", "function setupResetBut(){\r\n resetButton.addEventListener(\"click\",setColors)\r\n }", "function reset() \n{\n rect(0, 0, 1150, 600);\n background(211,211,211);\n //removes the button and input \n if (mouseButton == LEFT)\n {\n //hide the button and input\n button.hide();\n input.hide();\n }\n //call the first screen\n randomize();\n screenOne();\n nextOne = createButton('Next!');\n nextOne.size(100,40);\n nextOne.style(\"font-size\", \"30px\");\n nextOne.position((w2 + 520), (h2 + 400));\n nextOne.mousePressed(screenTwo);\n}", "function reset_btn(){\n $(\"#access-result #quick_add\").text(\"Quick Add\").show();\n \t $(\"#access-result #quick_edit\").text(\"Quick Edit\").show();\n \t $(\"#access-result #cancel\").hide();\n \t $(\"#access-result #access_table\").removeClass(\"locked\");\n }", "function resetButton(){\n $(\".fa-redo-alt\").click(function(){\n document.location.reload(true);\n })\n $(\"#replay\").click(function(){\n document.location.reload(true);\n })\n }", "function Calculator_Reset() {\n Calculator.Display_Value = '0';\n Calculator.First_Operand = null;\n Calculator.Wait_Second_Operand = false;\n Calculator.operator = null;\n}", "function contactameBtn()\n{\n\tdocument.btncontacto.reset();\n}", "function reset(){\n calc.input.value=\"\";\n end=true;\n}", "function resetButton(){\r\n populate();\r\n}", "function myResetFunction() {\n document.getElementById(\"#reset-btn\").reset();\n }", "function reactionReset () {\n setButton2State(0); // Zustand des Schaltknopfs Start/Pause/Weiter\n enableInput(true); // Eingabefelder aktivieren\n stopAnimation(); // Animation stoppen\n t = 0; // Zeitvariable zurücksetzen\n on = false; // Animation abgeschaltet\n reaction(); // Eingegebene Werte übernehmen und rechnen\n paint(); // Neu zeichnen\n }", "_reset() {\r\n\t\tthis._pressed = false;\r\n\t}", "function resetme(){\n\tinitiateBoard();\n\tmode=0;\n\tdisplay(0);\n}", "function reset() {\n tfInput.value = \"\";\n tfResultado.value = \"\";\n taLogArea.value = \"\";\n numPrevio = 0;\n numActual = 0;\n numAcumulado = 0;\n strOperacion = \"\";\n cOperador = \"\";\n}", "function reset(){\n\t\t\tnumber1 = Number.MAX_SAFE_INTEGER;\n\t\t\tnumber2 = Number.MAX_SAFE_INTEGER;\n\t\t\topcode=\"\";\n\t\t\tlastPressed=\"\";\n\t\t}", "Reset() {}", "function reactionReset () {\n setButton2State(0); // Zustand des Schaltknopfs Start/Pause/Weiter\n enableInput(true); // Eingabefelder aktivieren\n t = 0; // Zeitvariable zurücksetzen\n on = false; // Animation abgeschaltet\n slow = cbSlow.checked; // Flag für Zeitlupe\n reaction(true); // Eingegebene Werte übernehmen, rechnen, Ausgabe aktualisieren\n }", "function reset () {\n\t\tfillZero(xs,9);\n\t\tfillZero(os,9);\n\t\tremoveSelected(circles);\n\t\tcurrent = null;\n\t\tcounter = null;\n\t\twin = false;\n\t\tdisplay.textContent = \"tic tac toe\";\n\t}", "function reset () {\n\n \t\tquestionCounter++;\n \t\tnumber = 11;\n \t\tdisplayNext();\n\n }", "function reset() {\n for (var i = 0; i < 4; i++) {\n\t\t setColor('button' + eval(i + 311),vm.Mode,'Middle', 0, i, 0, 1);\n for (var j = 0; j < 4; j++) {\n setColor('button' + eval(i * 10 + j + 111),vm.Mode,'Left', i, j, 0, 1);\n\t\t setColor('button' + eval(i * 10 + j + 211),vm.Mode,'Right', i, j, 0, 1);\n }\n }\n var property = document.getElementById('buttonBuild');\n property.style.backgroundColor = \"#ffffff\";\n }", "Reset () {\n this.reset = true\n }", "function buttonReset() {\n image(imgReset, 350, 550);\n}", "function resetBtnClicked() {\n if (confirm('คุณต้องการ ลบ / RESET ข้อมูลกิจกรรม Fit4Run ทั้งหมด ใช่ หรือ ไม่ ?')) {\n // Save it!\n return resetConfirmed();\n } else {\n // Do nothing!\n }\n }", "function reset(){\r\n winnerRound.id = \"score-descr\";\r\n winnerRound.textContent = \"start playing\";\r\n score.textContent = \"0 : 0\";\r\n playerPoints = 0;\r\n computerPoints = 0;\r\n buttons.forEach(btn => btn.disabled = false);\r\n resetBtn.textContent = \"RESET\";\r\n}", "function reset() {\n\nstart();\n\n}", "function restartButton() {\r\n document.getElementById(\"resetId\").innerHTML = \"Restart\";\r\n}", "reset() {\n this.setIrqMask(0);\n this.setNmiMask(0);\n this.resetCassette();\n this.keyboard.clearKeyboard();\n this.setTimerInterrupt(false);\n this.z80.reset();\n }", "function resetear(){\n resultado.innerHTML = \"0\";\n operandoa = 0;\n operandob = 0;\n operacion = \"\";\n control_punto = 0;\n }", "function reset_all(){\n input = \"\";\n result = \"0\";\n history = \"0\";\n answer = \"\";\n setResult(\"0\");\n setHistory(\"0\");\n }", "function replay() {\n document.getElementById(\"resetButton\").style.visibility = \"visible\";\n $('#resetButton').on(\"click\", function () {\n reset()\n })\n }", "function handleReset(click) {\n turnCount = 0;\n init();\n}", "function restartButton(k) {\n resetGame(k);\n }", "function reset() {\n clearInterval(interval);\n able_start_button();\n able_stop_button();\n $.post(\n '/server/index.php',\n { action : 'timer_reset' }\n );\n sedonds = 0;\n ss.html('00');\n mm.html('00');\n hh.html('00');\n }", "function resetAll() {\n playerMoney = 1000;\n winnings = 0;\n jackpot = 5000;\n turn = 0;\n playerBet = 5;\n maxBet = 20;\n winNumber = 0;\n lossNumber = 0;\n winRatio = false;\n\n resetText();\n\n setEnableSpin();\n}", "function reset() {\n calculatorData.isAtSecondValue = false;\n calculatorData.displayValue = '';\n calculatorData.result = '';\n calculatorData.isValueDecimal = false;\n updateDisplay();\n}", "function reset(){\n wins = 0;\n loses = 0;\n i = 0;\n $(\".reset\").remove();\n displayQuestionAndSelections();\n }", "function reset() {\n resetFunc();\n }", "function resetHotkeyBtn(){\r\n\t\t\t\tchangeHotkeyBtn.html(\"Change hotkey\")\r\n\t\t\t\t\t.disabled = false;\r\n\t\t\t}", "function SetResetBlock()\r\n{\r\n this.objectName = \"SetReset\";\r\n\tthis.text=\"SR\";\r\n\tthis.lastOutput=0;\r\n}", "function reset() {\n pointer.transform(\"t0,0\");\n submit.transform(\"t0,-25\");\n frame.transform(\"s0.85, 0.56, \" + phonebox.cx + \", \" + phonebox.y + \" t0,19\");\n screenbg.transform(\"s1, 0.75, \" + phonebox.cx + \", \" + phonebox.y );\n button.transform(\"s0,0\");\n speaker.transform(\"s0,0\");\n }", "function reset(input) {\n // YOUR SOLUTION HERE\n}", "function resetButton() {\n d3.select(\"div.reset\")\n .append(\"li\")\n .text(\"Reset\")\n .on('click', function() {\n resetSelection();\n state.highlight = [];\n state.green = false;\n state.red = false;\n checkFiltered();\n updateReset();\n });\n }", "reset() {\n\n }", "function resetPressed(){\r\n //sets the background to grey\r\n background(80);\r\n//resets the height variable used when drawing\r\n y = 0;\r\n//removes the buttons, and redraws them using the function drawButtons\r\n removeElements();\r\n drawButtons();\r\n//resets the listState\r\n listState = 0;\r\n }", "function resetGame(){\n\t\trandomNumber = getRandomIntInclusive(19,120);\n\t\t// debugger;\n\t\t$.each($(\".gem-buttons input\"), function(index, element){\n\t\t\t// debugger;\n\t\t\t$(element).val(getRandomIntInclusive(1,12));\n\t\t});\n\n\t\ttotalScore = 0;\n\t\t\n\t\t$(\"#total-score\").text(totalScore);\n\t\t$(\"#random-number\").text(randomNumber);\n\t}", "function showreset(){\n\t\tif (begingame == true) {\n\t\t\t$('#buttonreset').hide();\n\t\t}\n\t//Show reset button when Game Ends\n\t\telse if (begingame == false){\n\t\t\t$('#buttonreset').show();\n\t\t}\n\t}", "function reset(){\n\tloading(false);\n\t$('#start').slideDown();\n\t$('#reset').slideUp();\n\t$('#mainDisplay').slideUp();\n\t$('input').val('');\n}", "function gameReset () {\n var btn = document.getElementById(\"resetGame\");\n if(btn.onclick) {\n reset();\n }\n}", "function reset( )\n\t{\n\n\t\tvar circles = canvas_handler.circles;\n\t\tvar lines = canvas_handler.lines;\n\t\t\n\t\tvar i = circles.length;\n\t\t\n\t\twhile( i-- )\n\t\t{\n\t\t\n\t\t\tcircles[ i ].color = NODE_DEFAULT_COLOR;\n\t\t\t\n\t\t}\n\t\t\n\t\ti = lines.length;\n\t\t\n\t\twhile( i-- )\n\t\t{\n\t\t\t\n\t\t\tlines[ i ].color = EDGE_DEFAULT_COLOR;\n\t\t\t\n\t\t}\n\t\t\n\t\tstarting_node = null;\n\t\tending_node = null;\n\t\t\n\t\tnodes_selected = 0;\n\t\t\n\t\tvar begin_reset_button = document.getElementById( \"begin_reset_button\" );\n\t\tbegin_reset_button.innerHTML = \"Begin\";\n\t\tbegin_reset_button.className = \"button green_background hidden\";\t\n\t\tbegin_reset_button.onclick = null;\n\t\t\n\t\tvar overlay = document.getElementById( \"overlay\" );\n\t\tdocument.body.removeChild( overlay );\n\t\t\n\t\tcanvas_handler.canvas_invalid = true;\n\t\t\n\t}", "reset({ text = 'Zurücksetzen', buttonClass = 'game-field-reset-btn' }) {\n const button = document.createElement('button');\n button.className = buttonClass;\n button.appendChild(document.createTextNode(text));\n document.querySelector(this.target).appendChild(button);\n }", "function reset() {\n generateButtons(currentCategory);\n}", "function reset() {\n\tif (confirm(\"Are you sure you want to reset? All your progress and savefile will be lost!\")) {\n\t\tlocalStorage.removeItem(\"save\");\n\t\tallZero();\n\t\tresetInventory();\n\t\t\n\t\treload();\n\t}\n\telse {\n\t\t\n\t\treload();\n\t}\n}", "function reset() {\n clock.style.display = 'none';\n container.style.display = 'block';\n removeClass(calendar, 'datipi-circle-hidden');\n calendar.style.display = 'block';\n btnPreviousMonth.style.display = 'inline-block';\n btnNextMonth.style.display = 'inline-block';\n if (hours != null) {\n hours.setAttribute('style', '');\n hours.className = 'datipi-circle-selector datipi-hours';\n }\n if (minutes != null) {\n minutes.setAttribute('style', '');\n minutes.className = 'datipi-minutes datipi-circle-hidden';\n }\n initCalendar();\n }", "function reset() {\n\tiQ = 0;\n\ttotal = iQ;\n\tnumCorrect = 0;\n\t$('.explanationBlock').text('');\n\tupdate();\n\tsetCurrent();\n\tsetZero();\n}", "function reset() {\n resetButton.innerHTML = \"RESET\";\n winner.classList.add(\"hide\");\n numShotsOne.innerHTML = 0;\n numShotsTwo.innerHTML = 0;\n numGoalsOne.innerHTML = 0;\n numGoalsTwo.innerHTML = 0;\n resetSpan.classList.remove(\"hide\");\n leftDiv.classList.add(\"possessionIndicator\");\n rightDiv.classList.remove(\"possessionIndicator\");\n toggleTeamDivs();\n running = true;\n}", "function resetButton() {\n\t$('#textboxAbsolute').val(\"excluded\");\n\t$('#textboxAbsolute').css(\"background-color\", \"#FFFFFF\");\n\t$('#expressionLevelSlider').val(0);\n\t\n\t// get name of tissue we're adjusting\n\tvar tissue = $('#setLevel-tissueName').text()\n\t\n\t// figure out which index number that corresponds to in allTissues\n\tvar index = findIndexByKeyValue(allTissues, 'tissue', tissue);\n\t\n\t// reset the value and color in allTissues to null\n\tallTissues[index].value = \"excluded\";\n\tallTissues[index].color = \"#FFFFFF\";\n\t\n\t// update the color on the svg shape \n\tchangeFillColor(tissue, \"#FFFFFF\");\n\tsaveExpressionLevel();\n\tcloseCurrentTooltip();\n}", "function reset() {\n $(\"#startbtn\").show();\n $(\"#letsplay\").show();\n $(\"#trivia\").hide();\n $(\"#results\").hide();\n resetTimer();\n questionCount = 0;\n correctAnswers = 0;\n incorrectAnswers = 0;\n unansweredQuestions = 0;\n timeLeft = 15;\n }", "function reset() {\n // reset points\n userPoints = 0;\n // go back to the first question\n questionsIndex = 0;\n // reset timer\n clock = 55;\n // display the h2 element to show the question\n h2.style.display = \"block\";\n // don't show the buttons\n scoreButtons.style.display = 'none';\n form.style.display = 'none';\n // go back to first question\n displayQuestion();\n}", "function reset() {\n\t\ti = 0;\n\t\tj = 1;\n\t\t$('p[id=\"times\"]').text(j);\n\t\t$('p[id=\"freq\"]').text(DWMspinner[i]);\n\t\t$('button[data-type=\"plus\"][data-field=\"times\"]').removeClass('disabled');\n\t\t$('button[data-type=\"minus\"][data-field=\"times\"]').removeClass('disabled');\n\t\t$('button[data-type=\"plus\"][data-field=\"freq\"]').removeClass('disabled');\n\t\t$('button[data-type=\"minus\"][data-field=\"freq\"]').addClass('disabled');\n\t\tupdateSubtotals();\n\t}", "function reset(){\r\n\tdocument.getElementById(\"capCol\").value = \"#ff0000\";\r\n\tdocument.getElementById(\"pantsCol\").value = \"#0000ff\";\r\n\tdocument.getElementById(\"faceCol\").value = \"#fcbf79\";\r\n\tdocument.getElementById(\"hairCol\").value = \"#730600\";\r\n\tdocument.getElementById(\"glovesCol\").value = \"#ffffff\";\r\n\tdocument.getElementById(\"shoesCol\").value = \"#701c0f\";\r\n\tupdateCap();\r\n\tupdatePants();\r\n\tupdateFace();\r\n\tupdateHair();\r\n\tupdateGloves();\r\n\tupdateShoes();\r\n\tdocument.getElementById(\"code\").value = \"\";\r\n\tdocument.getElementById(\"type\").innerHTML = \"Click one of the buttons above once you've chosen your colours!\";\r\n}", "function resetForm()\n{\n document.getElementById(\"blanketnum\").value = 0;\n document.getElementById(\"hedgenum\").value = 0;\n document.getElementById(\"bluenum\").value = 0;\n calcEstimate();\n createEventListeners();\n}", "function reset() {\n if (confirm(\"Do you really want to reset your score?\")){\n winScore = 0;\n loseScore = 0;\n clearOut();\n addBack();\n stopAudio();\n }\n}", "function reset() {\n console.log(\"Hết giờ!\");\n}", "function reset () {\n\tthis.num1 = 0;\n\tthis.num2 = 0;\n\tthis.operator = \"\";\n\tdisplayNum.innerHTML = 0;\n\tdecimal = 0;\n}", "function reset() {\n document.forms[\"lucky7s\"][\"bet\"].value = \"\";\n document.forms[\"lucky7s\"][\"bet\"].focus();\n document.forms[\"lucky7s\"].className = \"text-center\";\n document.getElementById(\"resetButton\").style.display = \"none\";\n document.getElementById(\"playButton\").style.display = \"block\";\n document.getElementById(\"playButton\").innerHTML = \"Play\";\n document.getElementById(\"results\").style.display = \"none\";\n document.getElementById(\"startingBet\").innerHTML = \"\";\n document.getElementById(\"rollCount\").innerHTML = \"\";\n document.getElementById(\"highestWon\").innerHTML = \"\";\n document.getElementById(\"rollCountAtHighest\").innerHTML = \"\";\n}", "function bindReset () {\n $('#restart-button').on(\"click\", function(){\n $('#restart-button').hide();\n $('#start-button').click();\n $('#reset-cells-button').click();\n pOneScore = 0; // fix\n pTwoScore = 0; // fix\n $('#player-one-score').text(pOneScore); // fix\n $('#player-two-score').text(pTwoScore); // fix\n });\n }", "function reset2(){\n button.hide();\n if (mouseButton == LEFT)\n {\n button.hide();\n input.hide();\n }\n screenThree();\n}", "function reset() {\n \n $(\"#writeQuestion\").html('');\n $(\"#allAnswers\").html('');\n\n clock = 31;\n runClock();\n\n questionNum = 0;\n printQuestions();\n\n wins = 0;\n losses = 0;\n unanswer = 0;\n\n pickedAnswer();\n\n}", "function reset() {\n limit = parseInt(prompt('Scegli quanti numeri inserire'));\n arrRandom = [];\n arrUser = [];\n arrResult = [];\n printDisplay('Per iniziare a giocare clicca su VIA');\n $('#display').show();\n $('#start').show();\n $('#restart').hide();\n $('#console').hide();\n}", "resetButton(button) \n {\n button.body.hit = false;\n button.pressed = false;\n }", "function reset() {\n currentWord = 0;\n correct = 0;\n input.value = \"\";\n input.className = '';\n // textDisplay.style.display = 'block';\n startTime = 0;\n $(\"#input\").remove();\n $(\"#submitInfo\").remove();\n $(\"#textDisplay\").empty();\n $(\"#instructions\").empty();\n $(\"#textBox\").append($(\"<input>\",{\"id\" : \"input\", \"value\" : \"Restart\",\"type\" : \"submit\",\"class\":\"hide\"}));\n showText();\n }", "function handleResetBtn() {\n game = newGame();\n prompt.innerHTML = 'Guess my number!';\n message.innerHTML = 'I am thinking of a number between 1-100.<br>You have 5 guesses and 1 hint.<br>Good luck.';\n input.disabled = false;\n submit.disabled = false;\n \n // Reset past guesses\n for (let i = 1; i <= 5; i++) {\n const listElement = document.querySelector(`#history li:nth-child(${i})`);\n listElement.innerHTML = '-';\n listElement.style.background = 'lightgrey';\n }\n\n hint.disabled = false;\n reset.innerHTML = 'Reset';\n}", "function resetPressed() {\n\tplayed.style.display=\"inline-block\";\n\tpaused.style.display=\"none\";\n\treseted.style.display=\"none\";\n}", "function cButtonReset() {\r\n\tlocalStorage[\"BTNcolor\"] = \"#000000\";\r\n\tlocalStorage[\"BTNborder\"] = \"#bbbbbb\";\r\n\tlocalStorage[\"BTNbottom\"] = \"#f9f9f9\";\r\n\tlocalStorage[\"BTNtop\"] = \"#ded5de\";\r\n\twindow.location.reload();\r\n}", "reset(){\n\t\tif(model.autoRunTimerId !== -1){\n\t\t\tclearInterval(model.autoRunTimerId) // stop autorun timer if it is started\n\t\t\t//document.getElementById('autoRunBtn').innerHTML='Autorun';\n\t\t}\n\n\t\t$(\"#infoBitNum\").prop('disabled', false);\n\t\t$(\"#parityBitNum\").prop('disabled', false);\n\t\t$(\"#cwBitNum\").prop('disabled', false);\n\t\t$(\"#errDetectNum\").prop('disabled', false);\n\t\t$(\"#selGenPolyBtn\").prop('disabled', false);\n\n\t\tthis.algorithm.reset();\n\t\tthis.stat.reset();\n\t\tthis.stat.remove();\n\t\tthis.layer.getStage().clear();\n\t\tthis.layer.destroy();\n\t\ttry{\n\t\t\t$(\".ui-dialog-content\").dialog(\"close\");\n\t\t} catch(e) {console.log(e)}\n\t}" ]
[ "0.85235846", "0.8444661", "0.83487165", "0.78616506", "0.78010255", "0.77509665", "0.7739108", "0.77288103", "0.7703846", "0.7667002", "0.7590134", "0.75833684", "0.7576136", "0.7573686", "0.7551632", "0.7543608", "0.75134486", "0.74861866", "0.74801373", "0.7455764", "0.74293387", "0.74097437", "0.740276", "0.73338616", "0.73265815", "0.7325101", "0.7322359", "0.72991437", "0.7276871", "0.72721195", "0.7257625", "0.72444206", "0.7233287", "0.722846", "0.7224684", "0.72167385", "0.7215409", "0.71895623", "0.7175891", "0.7172098", "0.71687", "0.71681356", "0.71592265", "0.7148944", "0.7143073", "0.71393436", "0.71295863", "0.712538", "0.7121402", "0.7111119", "0.710872", "0.71040285", "0.710337", "0.709287", "0.7020944", "0.7019732", "0.70152104", "0.700366", "0.7000804", "0.69975793", "0.69969696", "0.69903374", "0.6978852", "0.69762594", "0.69755596", "0.6975023", "0.6965888", "0.6958674", "0.69571376", "0.6955096", "0.69536495", "0.69447494", "0.6941888", "0.69385475", "0.6931397", "0.6930165", "0.69270265", "0.69228536", "0.6915896", "0.6913706", "0.69134194", "0.69116277", "0.69090647", "0.68920106", "0.6886806", "0.6879256", "0.6878342", "0.68683416", "0.6866095", "0.6859619", "0.6851767", "0.6845124", "0.6842992", "0.68335164", "0.6827661", "0.6824554", "0.68200827", "0.6819763", "0.6817586", "0.6813739", "0.68125504" ]
0.0
-1
Make the given changes to the state and perform any required housekeeping
function setState(changes) { Object.assign(state, changes); const props = Object.assign({}, state, { value: state.newSearch, onChange: updateSearch, }); ReactDOM.render( <div><App /><CitiesForm {...props} /> </div>, document.getElementById('app') ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "changes(state,payload){\n state.commit(\"addSomeName\",payload.name);\n state.commit(\"changeCity\",payload.city);\n }", "changeState(state) {\r\n if (!this.states[state]) {\r\n throw new Error(\"This state doesn't exist.\");\r\n }\r\n this.statesDone.push(state);\r\n this.statesUndone.clear();\r\n }", "function newState(state) {\n alert(\"This functionality is yet to be implemented!\");\n }", "changeState(state) {\r\n if (!this.states[state]) {\r\n throw new Error(\"This state not found\");\r\n }\r\n \r\n this.updateState(state);\r\n }", "function state(state = defaultState, action) {\n switch (action.type) {\n case 'BEACONS_UPDATE':\n action.projects = state.projects;\n action.rooms = state.rooms;\n action.nearbyRooms = [];\n for(i in action.beacons){\n for(j in action.rooms){\n if(action.rooms[j].minor_number === action.beacons[i].minor){\n if(!action.nearbyRooms.includes(action.rooms[j])){\n action.nearbyRooms.push(action.rooms[j]);\n }\n break;\n }\n }\n }\n return action\n case 'PROJECT_CHANGE_STATUS':\n id = action.projectID;\n todo = action.todo;\n action = state;\n for(i in action.projects){\n if(action.projects[i].id === id){\n switch(todo){\n case 'save':\n action.projects[i].saved = true;\n break;\n case 'unsave':\n action.projects[i].saved = false;\n break;\n case 'done':\n action.projects[i].done = true;\n break;\n case 'undone':\n action.projects[i].done = false;\n break;\n default:\n break;\n }\n break;\n }\n }\n setTimeout(function(){updatePersistentStore(id, todo)}, 1);\n return action\n case 'PROJECTS_UPDATE':\n for(i in action.projects){\n action.projects[i].changeStatus = function(todo){\n store.dispatch({type:'PROJECT_CHANGE_STATUS', projectID: this.id, todo:todo});\n }\n }\n action.beacons = state.beacons;\n action.rooms = state.rooms;\n action.nearbyRooms = state.nearbyRooms;\n return action;\n case 'ROOMS_UPDATE':\n action.beacons = state.beacons;\n action.projects = state.projects;\n action.nearbyRooms = state.nearbyRooms;\n for(i in action.beacons){\n for(j in action.rooms){\n if(action.rooms[j].minor_number === action.beacons[i].minor){\n if(!action.nearbyRooms.includes(action.rooms[j])){\n action.nearbyRooms.push(action.rooms[j]);\n }\n break;\n }\n }\n }\n return action\n default:\n return state\n }\n}", "changeState(state) {\r\n if(!state) throw new Error(\"Error! State is empty!\");\r\n if(state in this.allStates) {\r\n this.historyStates.push(this.currentState);\r\n this.currentState = state;\r\n this.specialRedoArray = [];\r\n }\r\n else throw new Error(\"Error! Wrong state!\");\r\n }", "changeState(state) {\r\n var states = this.config.states;\r\n if(states.hasOwnProperty(state)) {\r\n this.currentState = state;\r\n this.history.push(this.currentState);\r\n this.cancelled = [];\r\n }\r\n else throw new Error(\"State doesn't exist\");\r\n }", "updateState() {\n\t\tthis.trigger(this.state);\n\t}", "changeState(state) {\r\n for (let key in this.states){\r\n // console.log(this.states[key])\r\n if (key==state) {\r\n this.statesStack.append(this.state);\r\n this.state=state;\r\n this.undoStack.clear();\r\n return this;\r\n }\r\n } \r\n throw new Error();\r\n }", "changeState(state) {\r\n if(this.getStates().indexOf(state) != -1){\r\n if(this.prevState[this.prevState.length - 1] != this.state)\r\n this.prevState.push(this.state);\r\n this.state = state;\r\n }else throw new Error(\"\")\r\n }", "changeState(state)\r\n {\r\n if(state==\"hungry\"||state==\"busy\"||state==\"normal\"||state==\"sleeping\")\r\n {\r\n this.usteps.push(this.initial);\r\n this.rsteps=[];\r\n this.initial=state;\r\n }\r\n else\r\n {\r\n throw new Error();\r\n }\r\n }", "changeState(state) { // stackOperations = 0\r\n\r\n var isChange = false;\r\n for (var key in this.config.states) {\r\n if (key === state) {\r\n \r\n this.stackStates.push(state);\r\n this.activeState = state;\r\n isChange = true;\r\n if (this.isUndoActive) {\r\n this.isUndoActive = false;\r\n this.stackOperations.push(1);\r\n } else if (this.isRedoActive) {\r\n this.isRedoActive = false;\r\n } else {\r\n this.stackOperations.push(0);\r\n }\r\n }\r\n }\r\n\r\n if (!isChange) {\r\n throw new Error(\"Incorrect state\");\r\n }\r\n\r\n }", "function updateState(stateChange) {\n if (isNaN(stateChange)) {\n console.error(\"Invalid state change\");\n return;\n }\n currState += stateChange;\n currState = currState % states.length;\n console.assert(\n currState >= 0 && currState < states.length,\n \"currState got out of bounds on updateState: \",\n currState\n );\n clearButtons();\n switch (getRoomName()) {\n case \"START\":\n buildStartRoom();\n break;\n case \"GAME\":\n buildGameRoom();\n break;\n case \"RESULTS\":\n buildResultsRoom();\n break;\n }\n}", "changeState(state) {\r\n if (this.config.states.hasOwnProperty(state)) {\r\n this.prev = this.state;\r\n this.state = state;\r\n this.possibleRedoCount--;\r\n }\r\n else throw new Error();\r\n }", "changeState(state) {\r\n if(this.config.states[state]) {\r\n this.currentState = state;\r\n this.recordStates.push(this.currentState);\r\n this.currentStatePosition++;\r\n this.recordMethods.push('changeState');\r\n } else {\r\n throw new Error('This state does not exist');\r\n }\r\n }", "changeState(state) {\r\n if(this.config.states[state] === undefined){\r\n throw new Error('State is undefined by config. So, Fuck Off!');\r\n }\r\n this.prevState=this.currentState;\r\n this.currentState = state;\r\n }", "changeState(state) {\r\n if (state !== \"hungry\" && state !== \"busy\" &&\r\n state !== \"sleeping\" && state !== \"normal\") {\r\n throw new Error()\r\n }\r\n\r\n this.state = state;\r\n this.states.push(this.state);\r\n return this.state\r\n }", "function handleChange(event) {\n\t\t/* \n 1. Deep copy of state is required\n JSON.parse and JSON.stringify does that\n\n */\n\t\tvar key = event.target.name,\n\t\t\tvalue =\n\t\t\t\tevent.target.type === \"checkbox\"\n\t\t\t\t\t? event.target.checked\n\t\t\t\t\t: event.target.value;\n\n\t\tvar new_state = JSON.parse(JSON.stringify(state));\n\t\tnew_state[key] = value;\n\t\tsetState(new_state);\n\t}", "changeState(state) {\r\n if (this.config.states[state]) {\r\n this.history.push(this.currentState);\r\n this.currentState = state;\r\n this.isRedo = false;\r\n } else {\r\n throw new Error();\r\n }\r\n\r\n }", "async updateState(state) {\n let key = this.ctx.stub.createCompositeKey(this.name, [state.getKey()]);\n let data = Utils.serialize(state);\n await this.ctx.stub.putState(key, data);\n }", "changeState(state) {\r\n\r\n\r\n if (!this.statuses.includes(state)) {\r\n throw new Error(\"yryjinug\")\r\n }\r\n this.history1.push(this.activeState);\r\n this.activeState = state;\r\n this.history2 = [];\r\n\r\n\r\n }", "function StateManager_ProcessState()\n{\n\t//in advance state mode?\n\tif (this.AdvancingStates > 0)\n\t{\n\t\t//decrease counter\n\t\tthis.AdvancingStates--;\n\t}\n\t//Process State Data\n\tthis.SetInterpreterData();\n\t//still in advance state mode? and current has default action?\n\tif (this.AdvancingStates > 0 && this.CurrentState.ListOfPaths.length > 0)\n\t{\n\t\t//notify history\n\t\t__SIMULATOR.History.StateLoaded(this.CurrentState);\n\t\t//notify the scores\n\t\t__SIMULATOR.Scores.StateLoaded(this.CurrentState);\n\t\t//load next state\n\t\tthis.LoadState(this.CurrentState.ListOfPaths[0].Destiny);\n\t\t//stop waiting\n\t\t__WAIT_MANAGER.StopWaiting();\n\t}\n\telse\n\t{\n\t\t//ensure that the advancing state marker is 0\n\t\tthis.AdvancingStates = 0;\n\t\t//stop waiting\n\t\t__WAIT_MANAGER.StopWaiting();\n\t\t//Inform the simulator that a new state has just been loaded (after we reset it back visually)\n\t\t__SIMULATOR.StateLoaded(this.CurrentState);\n\t}\n}", "stateChanged(state) {\n this._competitors = competitorsWithEventsSelector(state);\n this._couples = couplesSelector(state);\n this._events = EventsWithCouplesSelector(state);\n this._offbeat = state.form.offbeat.competing;\n this._offbeat_team = OffbeatTeamSelector(state);\n this._basic_information = state.form.basic_information;\n this._form = state.form;\n this._total_entry_fee = total_entry_fee(this._competitors);\n }", "stateUpdate() {\n this.handlestateVariable();\n this.handlestateVariable2();\n this.handleCChange();\n this.handleAChange();\n this.handleidCapture();\n this.handleimgCapture();\n this.handleConfigChange();\n this.idcaptureVal();\n this.imgcaptureVal();\n }", "changeState(state) {\r\n let possibleStates = ['normal', 'busy', 'hungry', 'sleeping'];\r\n let errorCount = 0;\r\n for (let index = 0; index < possibleStates.length; index++) {\r\n const element = possibleStates[index];\r\n if (state === element) {\r\n errorCount++\r\n }\r\n }\r\n if(errorCount === 0) {\r\n throw new Error(\"State: fail check\");\r\n } \r\n this.config.initial = state\r\n this.undoArr.push(this.config.initial)\r\n return this.config.initial \r\n }", "update(data={}) {\n this.state = Object.assign(this.state, data);\n\n // notify all the Listeners of updated state\n this.notifyObervers(this.state);\n }", "changeState() {\n const newState = this.machineTable[this.state][this.lastRead].state;\n\n this.state = parseInt(newState, 10);\n }", "_mergeWithCurrentState(change) {\n return assign(this.props.data, change);\n }", "function updateStateMaps() {\n // XXX\n }", "changeState(state) {\r\n if (!this.states[state]) throw new SyntaxError (\"there is no state\");\r\n\r\n if (!this.history[this.step+1] && this.history[this.step] !== state) {\r\n this.step++;\r\n this.history.push(state);\r\n }\r\n if (this.history[this.step+1] === state) ++this.step;\r\n this.currentState = state;\r\n }", "function setState(newState) {\n //if (newState.items) state.items = newState.items;\n //if (newState.addItemInput) state.addItemInput = newState.addItemInput;\n //if (newState.listNameInput) state.listNameInput = newState.listNameInput;\n //if (newState.listName) state.listName = newState.listName;\n state = {...state, ...newState};\n //console.log(state)\n rerender();\n}", "syncState() {\n }", "stateChanged(state) { }", "changeState(state) {\r\n if (this.states[state] == undefined) throw new ErrorEvent(\"illegal state\")\r\n this.history.push(this.state);\r\n this.state = state;\r\n this.second_history = new Array();\r\n }", "change(state) {\n this.state = state;\n this.emit('change', state);\n }", "setState (newState) {\n this._state = assign({}, this._state, newState);\n this.trigger(assign({}, this._state));\n }", "function stateChange( stateFacade, lastState, updateLm ) { \n\n var currentState = stateFacade();\n\n var lastData = ( _.isObject( lastState ) ) ? lastState.data : lastState;\n if ( currentState.data !== lastData ) { \n\n if ( updateLm ) { \n currentState.lm = createLm();\n stateFacade( currentState );\n } \n\n return true;\n }\n\n return false;\n}", "handleUpdatedState(state) {\n this.lastTechnology = state.selectedTechnology;\n this.totalClicks = state.clickCounter;\n }", "emitStateChanges() {\n const currentState = store.getState();\n switch (true) {\n case !this.previousState.slides.length && !!currentState.slides.length:\n this.eventBus.emit(MAIN_CHANNEL, 'initialized');\n break;\n case !_.isEmpty(this.previousState.currentSlide) && !this.engine.slideEquals(currentState.currentSlide, this.previousState.currentSlide):\n this.eventBus.emit(MAIN_CHANNEL, 'gotoSlide', { slide: currentState.currentSlide });\n break;\n }\n this.previousState = currentState;\n }", "setState (states) {\n if (toString.call(states) === '[object Array]') {\n //TODO Array deep single re-assign or full coverage?\n this._model.splice(0, this._model.length, ...states)\n } else if (toString.call(states) === '[object Object]') {\n Object\n .entries(states)\n .filter(([key, value]) => typeof value !== 'function')\n .forEach(([key, value]) => {\n const isInclude = Object.keys(this._model).includes(key)\n if (!isInclude) return null\n if (typeof value === 'object') {\n this._model[key]['__pipe__'].setState(value)\n } else {\n this._model[key] = value\n }\n })\n }\n return this._model\n }", "changeLopperState(state, data){\n state.looperState = data\n }", "function setState(newState) {\n Object.assign(state, newState);\n }", "function state_update(st) {\n state = st;\n if (callback) {\n callback(st);\n }\n}", "changeState(state) {\r\n let history = this.history;\r\n this.i = history.length;\r\n switch (state) {\r\n case 'busy': this.active = 'busy';\r\n history.push('busy');\r\n break;\r\n case 'sleeping': this.active = 'sleeping';\r\n history.push('sleeping');\r\n break;\r\n case 'normal': this.active = 'normal';\r\n history.push('normal');\r\n break;\r\n case 'hungry': this.active = 'hungry';\r\n history.push('hungry');\r\n break;\r\n default: reset();\r\n }\r\n }", "actionToState(action,rasp,source,initialRASP){\n var nextRASP={}, delta={}; // nextRASP will be the next state, delta is where all the changes to state are recorded. There may be other properties in the state, only change them deliberatly \n if(action.type===\"TOGGLE\") { // the user clicks on a subject which sends the toggle event, to either open or close the article\n if(rasp.open==='open') { // if the article was open close it, but \n this.toChild['open']({type: \"CLEAR_PATH\"}); // first clear the state of all the sub children, so when they are reopened they are back to their initial state.\n // this is good for 3 reasons: 1) reduces the number of items we need to save state for,\n // 2) reduces the state information we have to encode in to the URL path\n // 3) it fits many use cases that when something becomes visibile it consistently starts in the same state\n delta.open=null; // closed\n delta.minimize=null; // not minimized anymore\n this.qaction(()=>this.props.rasp.toParent({type: \"DESCENDANT_UNFOCUS\"}));\n } else { \n delta.open='open'; // was closed, now open\n delta.minimize=null; // not minimized\n this.qaction(()=>this.props.rasp.toParent({type: \"DESCENDANT_FOCUS\"}))\n }\n } else if(action.type===\"DESCENDANT_FOCUS\" && action.distance > 2 && !rasp.minimize ){\n // a 2+ distant sub child has chanaged to open, so minimize, but don't minimize if already minimized which will change the shape of the propogating message\n delta.minimize=true;\n } else if(action.type===\"DESCENDANT_UNFOCUS\" && action.distance >= 2 && rasp.minimize){\n // a 2+ distant sub child has changed from open, and we are minimized, so unminimize\n delta.minimize=false;\n } else\n return null; // if we don't understand the action, just pass it on\n // we did understand the action and so now calculate the computed state information\n Object.assign(nextRASP,rasp,delta); // calculate the new state based on the previous state and the delta. There may be other properties in the previous state (like depth). Don't clobber them.\n nextRASP.shape= nextRASP.open==='open' ? 'open' : initialRASP.shape; // shape is the piece of state information that all RASP components can understand\n // build the pathSegment out of parts for each state property\n var parts=[];\n if(nextRASP.open==='open') parts.push('o');\n if(nextRASP.minimize) parts.push('m');\n nextRASP.pathSegment= parts.join(','); // pathSegment is be incorporated into the URL path. It should be calculated and the minimal length necessary to do the job\n return nextRASP;\n }", "handle() {\n if(!this.enabled)\n return;\n\n Object.assign(this.previousState, this.state); // Save the previous state\n this.update(); // Update the current state\n this.notify();\n }", "setState(newProps) {\n let stateChanged = false;\n\n Object.entries(newProps).forEach(([key, val]) => {\n if (val !== this.state[key]) {\n stateChanged = true;\n }\n\n this.state[key] = val;\n });\n\n if (stateChanged) {\n this.render();\n }\n }", "changeDifficulty(state,cuadrados){\n state.cuadrados = cuadrados\n }", "function changeState(state) {\n stateChanged = false;\n switch (state) {\n case 0:\n // Instantiate Menu State\n menu = new states.Menu();\n currentStateFunction = menu;\n break;\n case 1:\n // Instantiate Play State\n play = new states.Play();\n currentStateFunction = play;\n break;\n case 2:\n // Instantiate Game Over State\n gameOver = new states.GameOver();\n currentStateFunction = gameOver;\n break;\n }\n}", "mergeWithCurrentState(change) {\n return assign(this.props.data, change);\n }", "setState(newState, noMerge = false) {\n const oldStateMemo = {...state};\n if (noMerge) {\n // Notify all listeners of the state that is about to be overwritten.\n Object.keys(state).forEach((key) => stateEventEmitter.emit(`${storeName}-${storeEvents.STATEUPDATED}-${key}`, state));\n state = {...newState};\n } else {\n state = {...state, ...newState};\n // Emit individual attribute change events, but only when the key has actually changed.\n // Watch out for shallow comparison issues with nested objects!\n Object.keys(newState).forEach((key) => {\n if (newState[key] !== oldStateMemo[key]) {\n stateEventEmitter.emit(`${storeName}-${storeEvents.STATEUPDATED}-${key}`, state);\n }\n });\n }\n\n // Then the general state change event.\n stateEventEmitter.emit(`${storeName}-${storeEvents.STATEUPDATED}`, state);\n }", "changeState(state, speeds) {\n this.state = state;\n\n if (state == 'running') {\n // if running return original cached bug's speed\n for (let i=0;i<this.allBugs.length;i++) {\n this.allBugs[i].speed = this.bugsSpeeds[i];\n }\n }\n else {\n // if not running stop bugs\n for (let bug of this.allBugs) {\n bug.speed = 0;\n }\n }\n }", "update(object) {\n for (const prop in object){\n this.state[prop] = object[prop];\n }\n //change has been made to data so call handler\n this.fire();\n\n }", "update(object) {\n for (const prop in object){\n this.state[prop] = object[prop];\n }\n //change has been made to data so call handler\n this.fire();\n\n }", "applyState(state) {\n const me = this;\n me.beginBatch();\n\n if ('locked' in state) {\n me.locked = state.locked;\n }\n\n if ('minWidth' in state) {\n me.minWidth = state.minWidth;\n }\n\n if ('width' in state) {\n me.width = state.width;\n }\n\n if ('flex' in state) {\n me.flex = state.flex;\n }\n\n if ('width' in state && me.flex) {\n me.flex = undefined;\n } else if ('flex' in state && me.width) {\n me.width = undefined;\n }\n\n if ('text' in state) {\n me.text = state.text;\n }\n\n if ('region' in state) {\n me.region = state.region;\n }\n\n if ('renderer' in state) {\n me.renderer = state.renderer;\n }\n\n if ('filterable' in state) {\n me.filterable = state.filterable;\n }\n\n me.endBatch();\n\n if ('hidden' in state) {\n me.toggle(state.hidden !== true);\n }\n }", "applyState(state) {\n const me = this;\n\n me.beginBatch();\n\n if ('locked' in state) {\n me.locked = state.locked;\n }\n\n if ('minWidth' in state) {\n me.minWidth = state.minWidth;\n }\n\n if ('width' in state) {\n me.width = state.width;\n }\n\n if ('flex' in state) {\n me.flex = state.flex;\n }\n\n if ('width' in state && me.flex) {\n me.flex = undefined;\n } else if ('flex' in state && me.width) {\n me.width = undefined;\n }\n\n if ('text' in state) {\n me.text = state.text;\n }\n\n if ('region' in state) {\n me.region = state.region;\n }\n\n if ('renderer' in state) {\n me.renderer = state.renderer;\n }\n\n if ('filterable' in state) {\n me.filterable = state.filterable;\n }\n\n me.endBatch();\n\n if ('hidden' in state) {\n me.toggle(state.hidden !== true);\n }\n }", "pushChanges(e) {\r\n e.preventDefault();\r\n\r\n // wrap state into a new geojson feature and send back\r\n let edited = {};\r\n if (this.props.layer.feature.geometry.type === 'Point') {\r\n edited = this.props.layer.feature; // not allowed to change anything yet\r\n } else if (this.props.layer.feature.geometry.type === 'LineString') {\r\n edited = {\r\n type: \"Feature\",\r\n id: this.state.nodes,\r\n geometry: {\r\n coordinates: this.state.coordinates,\r\n type: \"LineString\"\r\n },\r\n properties: { //TODO: change\r\n name: this.state.name, // show\r\n capacity: this.state.capacity, // show\r\n length: this.state.length, // show\r\n lanes: this.state.lanes, // show\r\n maxspeed: this.state.maxspeed, // show\r\n b: this.state.b, // expose for editing\r\n power: this.state.power, // expose for editing\r\n fftime: this.state.fftime, // don't show. calculated fftime, different from API\r\n }\r\n } \r\n if (this.props.state >= 2) {\r\n edited.properties.am_best_guess = this.state.am_best_guess; // no editing?\r\n edited.properties.api_ratio = this.state.api_ratio; // no editing\r\n edited.properties.ff_best_guess = this.state.ff_best_guess;\r\n }\r\n if (this.props.state >= 6) {\r\n edited.properties.delta = this.state.delta;\r\n edited.properties.fixed_flow = this.state.fixed_flow;\r\n edited.properties.flow = this.state.flow;\r\n edited.properties.fw_ratio = this.state.fw_ratio;\r\n edited.properties.new_flow = this.state.new_flow;\r\n edited.properties.proj_ttime = this.state.proj_ttime;\r\n }\r\n }\r\n\r\n this.props.onEdit(edited);\r\n\r\n this.setState({ changed: false });\r\n }", "function changeState(state = initialState, action) {\n var stateCopy\n switch (action.type) {\n case 'MyAccount':\n stateCopy = Object.assign({}, state);\n stateCopy.components.myAccount = true;\n stateCopy.components.myReviews = false;\n stateCopy.components.editDetails = false;\n stateCopy.components.editRestaurant = false;\n stateCopy.components.orderHistory = false;\n return stateCopy;\n case 'EditDetails':\n stateCopy = Object.assign({}, state);\n stateCopy.components.myAccount = false;\n stateCopy.components.editDetails = true;\n stateCopy.components.myReviews = false;\n stateCopy.components.editRestaurant = false;\n stateCopy.components.orderHistory = false;\n return stateCopy;\n case 'MyReviews':\n stateCopy = Object.assign({}, state);\n stateCopy.components.myAccount = false;\n stateCopy.components.editDetails = false;\n stateCopy.components.myReviews = true;\n stateCopy.components.editRestaurant = false;\n stateCopy.components.orderHistory = false;\n return stateCopy;\n\n case 'EditRestaurant':\n stateCopy = Object.assign({}, state);\n stateCopy.components.editRestaurant = true;\n stateCopy.components.orderHistory = false;\n stateCopy.components.myAccount = false;\n stateCopy.components.myReviews = false;\n stateCopy.components.editDetails = false;\n return stateCopy;\n case 'OrderHistory':\n stateCopy = Object.assign({}, state);\n stateCopy.components.editRestaurant = false;\n stateCopy.components.orderHistory = true;\n stateCopy.components.myAccount = false;\n stateCopy.components.myReviews = false;\n stateCopy.components.editDetails = false;\n return stateCopy;\n default:\n return state\n }\n}", "stateChange(state){\n\t\tLogger.info(`Ably realtime state changed to: ${state.current}`);\n\t}", "enterState(oldState){}", "_onChangeState() {\n\n\n }", "prepareState() {\n /* ... */\n }", "function update_state() {\n \"use strict\"\n // Only update if we are actually changing states\n if (current_slide != new_slide) {\n // Go from slide 0 to slide 1\n if (new_slide == 1) {\n // Reset zoom, then load second slide\n reset_zoom(to_second_slide, current_slide)\n } else if (new_slide == 2) {\n // Load third slide\n reset_zoom(to_third_slide, current_slide)\n } else if (new_slide == 3) {\n // Load fourth slide\n reset_zoom(to_fourth_slide, current_slide)\n } else if (new_slide == 4) {\n // Load fifth slide\n // Add zoom capabilities for the points\n zoom.on(\"zoom\", zoomed)\n // canvas.call(zoom)\n to_fifth_slide(current_slide)\n } else if (new_slide == 5) {\n // Load sixth slide\n reset_zoom(to_sixth_slide, current_slide)\n } else if (new_slide == 6) {\n // Load seventh slide\n reset_zoom(to_seventh_slide, current_slide)\n } else if (current_slide != -1 & new_slide == 0) {\n // Add zoom capabilities for the points\n zoom.on(\"zoom\", zoomed)\n // svg.call(zoom)\n // canvas.call(zoom)\n to_first_slide(current_slide)\n }\n current_slide = new_slide\n }\n}", "function stateUpdated() {\n\tvar keys, i, key, value, thing;\n\n\t// we must wait for the players list before loading the cards\n\tif (!participantsLoaded) {\n\t\treturn;\n\t}\n\n\twaveState = wave.getState();\n\tif (!waveState) {\n\t\treturn;\n\t}\n\tkeys = waveState.getKeys();\n\twaveStateValues = {};\n\n\t// Update stuff\n\tfor (i = 0; (key=keys[i]); i++) {\n\t\tvalue = waveState.get(key);\n\t\tif (typeof value == \"string\") {\n\t\t\twaveStateValues[key] = value;\n\n\t\t\tthing = getThing(key);\n\t\t\tthing.updateState(value);\n\t\t}\n\t}\n\n\t// Check for deleted objects\n\t// by keys that were in the state before but now are not\n\tfor (i = waveStateKeys.length; i--;) {\n\t\tkey = waveStateKeys[i];\n\t\tif (!(key in waveStateValues)) {\n\t\t\tthing = getThing(key);\n\t\t\tthing.remove();\n\t\t}\n\t}\n\n\twaveStateKeys = keys;\n\n\tif (!stateLoaded) {\n\t\tstateLoaded = true;\n\t\tif (participantsLoaded) {\n\t\t\tonEverythingLoad();\n\t\t}\n\t}\n}", "function become(newState) {\n if (acceptableStates.indexOf(newState) === -1) {\n console.log(newState + ' is not an acceptable state');\n return;\n }\n state = newState;\n}", "setState(stateChange) {\n if (this.hasBlocker('RENDER')) {\n invariant(\n !this.hasBlocker('RENDER'),\n 'Cannot call `setState` during render()'\n );\n return;\n }\n\n const newState = Object.assign({}, this.state, stateChange);\n\n this.state = newState;\n\n if (this.node && this.node.parentNode) {\n this.reconcileState();\n }\n }", "function updateStates () {\n var oldskip = myDiagram.skipsUndoManager\n myDiagram.skipsUndoManager = true\n // do all \"input\" nodes first\n myDiagram.nodes.each(function (node) {\n if (node.category === 'input') {\n doInput(node)\n }\n })\n // now we can do all other kinds of nodes\n myDiagram.nodes.each(function (node) {\n switch (node.category) {\n case 'and': doAnd(node); break\n case 'or': doOr(node); break\n case 'xor': doXor(node); break\n case 'not': doNot(node); break\n case 'nand': doNand(node); break\n case 'nor': doNor(node); break\n case 'xnor': doXnor(node); break\n case 'output': doOutput(node); break\n case 'input': break // doInput already called, above\n }\n })\n myDiagram.skipsUndoManager = oldskip\n }", "function setState(newState) {\n if (!newState) return\n\n // simple flat merge of new state\n state = Object.assign({}, state, newState)\n\n // persist state\n storage.set(STATE_STORAGE, state)\n\n // log new state\n console.log(`Current State: `, state)\n\n // rerender everything with the new state\n // also pass down any functions that need to run\n render(state, {\n onAutoDraft: () => setState(draft(state, autoDraftPlayer(state))),\n onBack: () => setState({ status: 'season' }),\n onClear: resetToInitialState,\n onDraft: player => setState(draft(state, player)),\n onFilter: t => () => setState({ filter: t }),\n onPlay: () => setState(startGame(state)),\n onRestart: restart,\n onTrade: () => setState({ status: 'trading' }),\n })\n}", "function updateValuesAndStates() {\n [values, states] = generateDefaultStateArray(getItemCount());\n}", "function touchState() {\n count += 1;\n let fileName = \"state/in/state\" + count + \".json\";\n exec(\"touch \" + fileName);\n\n genGridState(state => {\n exec(\"echo \" + JSON.stringify(state) + \" > \" + fileName);\n });\n}", "function setState() {\n var stateString = arguments.length === 1 ? arguments[0] : arguments[1];\n state = JSON.parse(stateString);\n editor1.getDoc().setValue(state.default);\n runit(\"example1\");\n }", "function setState(changes) {\n Object.assign(state, changes);\n\n if (!state.transitioning) {\n ReactDOM.render(\n React.createElement(Application, state),\n document.getElementById('react-app')\n );\n }\n}", "_stateChanged(_state) {\n throw new Error('_stateChanged() not implemented');\n }", "stateChanged(state) {\n }", "changeState(state) {\r\n if(this._config.states[state]){\r\n this._state = state;\r\n this._history.push(this._state);\r\n }else{\r\n throw new Error;\r\n }\r\n }", "setStateInternal(id, value) {\n var obj = id;\n if (! obj.startsWith(this.namespace + '.'))\n obj = this.namespace + '.' + id;\n this.log.info('update state ' + obj + ' with value:' + value);\n currentStateValues[obj] = value;\n }", "function commitNewState(tickCount) {\n // var votes = getReceivedVotes(tickCount);\n // var oldState = getCurrentState();\n // var newState = stateTransition(oldState, votes);\n var newStateHash = commit('gameState', {tickCount: tickCount, state: {}});\n var linkHash = commit('link', {\n Links: [{Base: App.DNA.Hash, Link: newStateHash, Tag: 'gameState'}]\n });\n}", "setState(newState, cb) {\n // Merge both new and old state to replace whats new an keep whats old.\n this.state = {...this.state, ...newState};\n\n // re-render the element with a given renderer callback\n if (cb) cb(this.state, this.element);\n }", "updateCommandStates() {\n let commandStates = {}\n let commandContext = this.getCommandContext()\n let params = this._getCommandParams()\n this.commandRegistry.forEach(function(cmd) {\n commandStates[cmd.getName()] = cmd.getCommandState(params, commandContext)\n })\n // poor-man's immutable style\n if (!isEqual(this.commandStates, commandStates)) {\n this.commandStates = commandStates\n }\n }", "function updateState() {\n gState.push({\n board: copyMat(gBoard),\n shownCount: gGame.shownCount,\n markedCount: gGame.markedCount,\n lives: gGame.lives,\n safeClick: gGame.safeClick,\n hints: gGame.hints,\n manualMode: gGame.isManualOn,\n gManualMode: gManualMode.isManualOn\n });\n}", "function propagate_changes() {\n\tfor (const waiter of to_update.values()) {\n\t\twaiter();\n\t}\n\tto_update = false;\n\tupdate_roots = new Set();\n}", "update(data = {}) {\n this.state = Object.assign(this.state, data);\n this.notify(this.state);\n }", "setState(newState) {\n this.state = {\n ...this.state,\n ...newState\n }\n this.#updater()\n }", "function setState(changes) {\n Object.assign(state, changes);\n\n ReactDOM.render(\n React.createElement(MembersView, Object.assign({}, state, {\n onNewMemberChange: updateNewMember,\n onNewMemberSubmit: submitNewMember,\n })),\n document.getElementById('signup')\n );\n}", "stateChanged(_state) { }", "setState(newValue, stateName, tableName){\n //if(tableName == 'firstSection' || tableName == 'LastSection') console.log('setState(): ' + stateName + '.' + tableName)\n //if(tableName == 'formData' || tableName == 'formsList') console.log(newValue)\n //var self = this;\n //if(tableName == 'formData' || tableName == 'formsList') console.log(self.state[stateName][tableName])\n //if(tableName == 'formData') console.log('Val FormID: ' + newValue.FormID)\n //if(tableName == 'formData' && this.state.database.formData && this.state.database.formData.hasOwnProperty('FormID')) console.log('Start DB FormID: ' + this.state.database.formData.FormID)\n //if(tableName == 'formData' && this.state.form.formData && this.state.form.formData.hasOwnProperty('FormID')) console.log('Start Form FormID: ' + this.state.form.formData.FormID)\n \n //var cloned = clone(newValue);\n //console.log(cloned);\n //if( self.state[stateName][tableName] && typeof(self.state[stateName][tableName]) === 'object' && !(Array.isArray(self.state[stateName][tableName])) ){\n // if(tableName == 'formData') console.log('1st');\n // self.state[stateName][tableName] = Object.assign({}, (self.state[stateName][tableName]), cloned);\n //}\n //else{\n // if(tableName == 'formData') console.log('2nd');\n // this.state[stateName][tableName] = cloned;\n //}\n this.state[stateName][tableName] = clone(newValue);\n\n //if(tableName == 'formData' && this.state.database.formData && this.state.database.formData.hasOwnProperty('FormID')) console.log('End DB FormID: ' + this.state.database.formData.FormID)\n //if(tableName == 'formData' && this.state.form.formData && this.state.form.formData.hasOwnProperty('FormID')) console.log('End Form FormID: ' + this.state.form.formData.FormID)\n }", "function handleChange() {\n onChange(currentState);\n }", "updateState(state, val) {\n if (this.state[ state ] !== val) {\n const temp = {};\n temp[ state ] = val;\n this.setState(temp);\n }\n }", "loadState(state) {\n this.transformManager.RollbackTo(state.currentServerVersionNumber);\n this.unacknowledgedChanges = state.unacknowledgedChanges;\n }", "__setState(taskContext, derivedMutations) {\n this.sourceTaskContext = taskContext;\n this.derivedMutations = derivedMutations;\n }", "function IDataStateManipulator() {}", "async setState(state) {\n\n const chrChanged = !this.state || this.state.chr1 !== state.chr1 || this.state.chr2 !== state.chr2\n this.state = state\n // Possibly adjust pixel size\n const minPS = await this.minPixelSize(this.state.chr1, this.state.chr2, this.state.zoom)\n this.state.pixelSize = Math.max(state.pixelSize, minPS)\n\n let hicEvent = new HICEvent(\"LocusChange\", {\n state: this.state,\n resolutionChanged: true,\n chrChanged: chrChanged\n })\n\n this.update(hicEvent)\n this.eventBus.post(hicEvent)\n }", "_mergeWithCurrentState(change) {\n const {updateProfileFormState} = this.props.data;\n return assign(updateProfileFormState, change);\n}", "function stateChange(){\n\n}", "function setState(newState) {\n Object.assign(state, newState);\n\n if (state.draggable) {\n document.getElementById('sulfacidContainer').classList.add('sulfacid_draggable');\n } else {\n document.getElementById('sulfacidContainer').classList.remove('sulfacid_draggable');\n if (state.interaction) {\n state.interaction.stop();\n resetPosition(state.element);\n }\n }\n\n if (state.inDropzone)\n document.getElementById('sulfacidContainer').dataset.inDropzone = 'true';\n else\n document.getElementById('sulfacidContainer').dataset.inDropzone = 'false';\n \n if(state.dropzone) \n document.getElementById('sulfacidContainer').classList.add('pipette-sulfacid_dropzone');\n else\n document.getElementById('sulfacidContainer').classList.remove('pipette-sulfacid_dropzone');\n}", "function changeState(that, state)\n{\n\t$(that).data(\"libre\", state);\n}", "passProps(stateChanges) {\n const { startDate, endDate } = stateChanges;\n const { setState } = this.props;\n if (startDate) { setState({ startDate }); }\n if (endDate) { setState({ endDate }); }\n if (!startDate && !endDate) {\n setState({ startDate, endDate });\n }\n this.setState(stateChanges);\n }", "async function updateAllState() {\n updateAllIssuersState();\n await updateAllPurseState();\n await updateAllInboxState();\n }", "function updateState() {\n //create our state object and notify our listener\n var state = {\n currentUniverseTime: new Date(currentUniverseTime)\n };\n\n fireStateChanged(state);\n\n // call update() again in a certain number of milliseconds\n updateStateTimeout = setTimeout(function () {\n updateState();\n }, timeBetweenStateUpdatesMs);\n }", "function manure_left_on_pasture_and_applied_to_soils(){\n a_FAO_i='manure_left_on_pasture_and_applied_to_soils';\n initializing_change();\n change();\n}", "if (newFirstUpdate === null) {\n // This is the first skipped update. It will be the first update in\n // the new list.\n newFirstUpdate = update;\n // Since this is the first update that was skipped, the current result\n // is the new base state.\n newBaseState = resultState;\n }" ]
[ "0.6556796", "0.6505756", "0.64642066", "0.6459441", "0.64084727", "0.63686955", "0.6356907", "0.6345751", "0.63426995", "0.6329245", "0.6318044", "0.6308926", "0.6267514", "0.6263355", "0.6216957", "0.6210426", "0.6186654", "0.6185856", "0.61777806", "0.6150122", "0.6135519", "0.61195636", "0.61174977", "0.6109853", "0.6084064", "0.6065779", "0.6040042", "0.6024358", "0.60235345", "0.60080564", "0.60060835", "0.60007286", "0.60007024", "0.5993747", "0.5989192", "0.5936781", "0.5934891", "0.5930114", "0.5911593", "0.59038484", "0.5903273", "0.5900971", "0.589733", "0.5888249", "0.5882548", "0.58801574", "0.58794653", "0.5877154", "0.58769816", "0.5876638", "0.587233", "0.58703196", "0.5863005", "0.5863005", "0.58575803", "0.5842987", "0.5832511", "0.5820085", "0.58177537", "0.5816516", "0.5814261", "0.58110243", "0.58085275", "0.5793987", "0.5777323", "0.5774398", "0.5773811", "0.57688284", "0.5762839", "0.57586884", "0.57544625", "0.5751332", "0.57181484", "0.5717896", "0.5714068", "0.5708605", "0.5707095", "0.570387", "0.5702122", "0.5700593", "0.5698659", "0.5690504", "0.56896836", "0.5688055", "0.56866634", "0.56845677", "0.5681038", "0.56754184", "0.5674625", "0.5671267", "0.5666844", "0.5665017", "0.56555516", "0.56534845", "0.56477183", "0.5645892", "0.5638555", "0.5623973", "0.56117773", "0.56062937", "0.56035763" ]
0.0
-1
Example: "Vec.of( 1,0,0 ).equals( Vec.of( 1,0,0 ) )" returns true.
plus(b) { return this.map((x, i) => x + b[i]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "equals(vector) {\n \n // Check that the vectors equal the same value\n return (this.toString() === vector.toString());\n }", "equals(vec){\n return this.x === vec.x && this.y === vec.y;\n }", "equals(...args) \r\n {\r\n let a, b;\r\n if (args[0] instanceof Vector2D) \r\n {\r\n a = args[0].x || 0;\r\n b = args[0].y || 0;\r\n } \r\n else if (args[0] instanceof Array) \r\n {\r\n a = args[0][0] || 0;\r\n b = args[0][1] || 0;\r\n } \r\n else \r\n {\r\n a = args[0] || 0;\r\n b = args[1] || 0;\r\n }\r\n return this.x === a && this.y === b;\r\n }", "function sc_isVectorEqual(v1, v2, comp) {\n if (v1.length !== v2.length) return false;\n for (var i = 0; i < v1.length; i++)\n\tif (!comp(v1[i], v2[i])) return false;\n return true;\n}", "isEqualToVector(rhs) {\n return this.x === rhs.x && this.y === rhs.y;\n }", "equals(path, another) {\n return path.length === another.length && path.every((n, i) => n === another[i]);\n }", "equals(path, another) {\n return path.length === another.length && path.every((n, i) => n === another[i]);\n }", "function eq(as,bs){var i,l\n l=as.length\n if(l!=bs.length)return false\n for(i=0;i<l;i++)if(as[i]!=bs[i])return false\n return true}", "function sc_isEqual(o1, o2) {\n return ((o1 === o2) ||\n\t (sc_isPair(o1) && sc_isPair(o2)\n\t && sc_isPairEqual(o1, o2, sc_isEqual)) ||\n\t (sc_isVector(o1) && sc_isVector(o2)\n\t && sc_isVectorEqual(o1, o2, sc_isEqual)));\n}", "function vector3Equals(vec1:Vector3, vec2:Vector3) {\n\tif (vec1.x == vec2.x && vec1.y == vec2.y && vec1.z == vec2.z) {\n\t\treturn true;\n\t}\n\treturn false;\n}", "function sc_isEqv(o1, o2) {\n return (o1 === o2);\n}", "function equal( u, v )\n{\n if(!(isMatrix(u)&&isMatrix(v) || (isVector(u)&&isVector(v))))\n throw \"equal: at least one input not a vec or mat\";\n if ( u.type != v.type ) throw \"equal: types different\";\n if(isMatrix(u)) {\n for ( var i = 0; i < u.length; ++i ) for ( var j = 0; j < u.length; ++j )\n if ( u[i][j] !== v[i][j] ) return false;\n return true;\n }\n if(isVector(u)) {\n for ( var i = 0; i < u.length; ++i )\n if ( u[i] !== v[i] ) return false;\n return true;\n }\n}", "function areIdentical(inp1, inp2) {\n return inp1 === inp2;\n }", "function equals(a1, a2) {\n if (a1.length != a2.length) return false;\n for (var i = 0; i < a1.length; i++) {\n if (!contains(a2, a1[i])) return false;\n }\n return true;\n}", "function matrixEqlTest(a, b) {\n return a.equals(b) && b.equals(a);\n}", "function equal(s1, s2) { // both s1 and s2 can be either an atom or a list (possibly empty)\n\tif (isAtom(s1) && isAtom(s2)) return (s1 === s2)\n\telse if (isAtom(s1) || isAtom(s2)) return false\n\telse return eqlist(s1, s2) // surely lists\n}", "function equals(a, b) {\n if (a === b) {\n return true;\n } else if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length) {\n return false;\n }\n\n for (var i = 0; i < a.length; i += 1) {\n if (!equals(a[i], b[i])) {\n return false;\n }\n }\n\n return true;\n } else {\n return false;\n }\n }", "function equals(a, b) {\n if (a === b) {\n return true;\n } else if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length) {\n return false;\n }\n\n for (let i = 0; i < a.length; i += 1) {\n if (!equals(a[i], b[i])) {\n return false;\n }\n }\n\n return true;\n } else {\n return false;\n }\n}", "function equals(a, b) {\r\n\t if (a === b) {\r\n\t return true;\r\n\t } else if (Array.isArray(a) && Array.isArray(b)) {\r\n\t if (a.length !== b.length) {\r\n\t return false;\r\n\t }\r\n\r\n\t for (let i = 0; i < a.length; i += 1) {\r\n\t if (!equals(a[i], b[i])) {\r\n\t return false;\r\n\t }\r\n\t }\r\n\r\n\t return true;\r\n\t } else {\r\n\t return false;\r\n\t }\r\n\t}", "function equals(x,y) {\n var i;\n var k=x.length<y.length ? x.length : y.length;\n for (i=0;i<k;i++)\n if (x[i]!=y[i])\n return 0;\n if (x.length>y.length) {\n for (;i<x.length;i++)\n if (x[i])\n return 0;\n } else {\n for (;i<y.length;i++)\n if (y[i])\n return 0;\n }\n return 1;\n }", "function equals(a, b) {\n if (a === b) {\n return true;\n } else if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length) {\n return false;\n }\n\n for (var i = 0; i < a.length; i += 1) {\n if (!equals(a[i], b[i])) {\n return false;\n }\n }\n\n return true;\n } else {\n return false;\n }\n}", "function equals(a, b) {\n if (a === b) {\n return true;\n } else if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length) {\n return false;\n }\n\n for (var i = 0; i < a.length; i += 1) {\n if (!equals(a[i], b[i])) {\n return false;\n }\n }\n\n return true;\n } else {\n return false;\n }\n}", "function equals(val)\n{\n\tif(typeof val != typeof this)\n\t{\n\t\treturn false;\n\t}\n\t\n\tfor(var i = 0; i < this.size.x; i++)\n\t{\n\t\tfor(var j = 0; j < this.size.y; j++)\n\t\t{\n\t\t\tif(this.matrix[i][j] != val.matrix[i][j])\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn true;\n}", "function linestringEquals(a, b) {\n if (!a || !b || a.length !== b.length) {\n return false;\n }\n var aLen = a.geometry.coordinates.length;\n var bLen = b.geometry.coordinates.length;\n var aFirst = a.geometry.coordinates[0];\n var bFirst = b.geometry.coordinates[0];\n var aLast = a.geometry.coordinates[aLen - 1];\n var bLast = b.geometry.coordinates[bLen - 1];\n if (aFirst[0] === bFirst[0] && aFirst[1] === bFirst[1] &&\n aLast[0] === bLast[0] && aLast[1] === bLast[1]) {\n return true;\n } else {\n return false;\n }\n }", "function sc_equal(x) {\n for (var i = 1; i < arguments.length; i++)\n\tif (x !== arguments[i])\n\t return false;\n return true;\n}", "function areEqual(inp1, inp2) {\n return inp1 == inp2;\n }", "function equals(a, b) {\n\tconsole.log(a.constructor);\n\tif (a.constructor === Array && b.constructor === Array) {\n\t\treturn a.every(a => {\n\t\t\tconsole.log({ a });\n\t\t\treturn b.every(b => {\n\t\t\t\tconsole.log({ b });\n\t\t\t\treturn a === b;\n\t\t\t});\n\t\t});\n\t} else {\n\t\treturn [a].every(a => {\n\t\t\tconsole.log({ a });\n\t\t\treturn [b].every(b => {\n\t\t\t\tconsole.log({ b });\n\t\t\t\treturn a === b;\n\t\t\t});\n\t\t});\n\t}\n}", "function equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length) return false;\n\n var aSorted = Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(a).sort();\n\n var bSorted = Object(C_Users_Abid_Loqmen_Desktop_NGforce_thesis_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(b).sort();\n\n return aSorted.every(function (val, index) {\n return bSorted[index] === val;\n });\n } else {\n return a === b;\n }\n}", "function eqlist(s1, s2) { // both s1 and s2 must be a list (possibly empty!!!)\n\tif (isEmpty(s1) && isEmpty(s2)) return true\n\telse if (isEmpty(s1) || isEmpty(s2)) return false\n\telse return (equal(car(s1), car(s2)) && eqlist(cdr(s1),cdr(s2))) // car's are atoms or lists; cdr's are certainly lists\n\t// NB - \"return (equal(cars) && equal(cdrs))\" would work as well\n}", "function equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length) return false;\n\n var aSorted = _toConsumableArray(a).sort();\n\n var bSorted = _toConsumableArray(b).sort();\n\n return aSorted.every(function (val, index) {\n return bSorted[index] === val;\n });\n } else {\n return a === b;\n }\n }", "function sc_isEq(o1, o2) {\n return (o1 === o2);\n}", "equals(x,y){\n let point = new Point(x,y); //this will handle the 'x' being numbers, array, a simple object, or another Point \n return (this.x === point.x && this.y === point.y); \n }", "function eq(x, y) {\n return util.inspect(x, true, null) === util.inspect(y, true, null);\n }", "function equals(x, y) {\n var i;\n var k = x.length < y.length ? x.length : y.length;\n for (i = 0; i < k; i++)\n if (x[i] != y[i])\n return 0;\n if (x.length > y.length) {\n for (; i < x.length; i++)\n if (x[i])\n return 0;\n } else {\n for (; i < y.length; i++)\n if (y[i])\n return 0;\n }\n return 1;\n }", "function true_tripe_equal() { \r\nA = \"Magnus\";\r\nB = \"Magnus\";\r\ndocument.write(A === B); //true\r\n}", "function sc_isStringEqual(s1, s2) {\n return s1 === s2;\n}", "function Fay$$equal(lit1, lit2) {\n // Simple case\n lit1 = _(lit1);\n lit2 = _(lit2);\n if (lit1 === lit2) {\n return true;\n }\n // General case\n if (lit1 instanceof Array) {\n if (lit1.length != lit2.length) return false;\n for (var len = lit1.length, i = 0; i < len; i++) {\n if (!Fay$$equal(lit1[i], lit2[i])) return false;\n }\n return true;\n } else if (lit1 instanceof Fay$$Cons && lit2 instanceof Fay$$Cons) {\n do {\n if (!Fay$$equal(lit1.car,lit2.car))\n return false;\n lit1 = _(lit1.cdr), lit2 = _(lit2.cdr);\n if (lit1 === null || lit2 === null)\n return lit1 === lit2;\n } while (true);\n } else if (typeof lit1 == 'object' && typeof lit2 == 'object' && lit1 && lit2 &&\n lit1.constructor === lit2.constructor) {\n for(var x in lit1) {\n if(!(lit1.hasOwnProperty(x) && lit2.hasOwnProperty(x) &&\n Fay$$equal(lit1[x],lit2[x])))\n return false;\n }\n return true;\n } else {\n return false;\n }\n}", "function equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length) return false;\n const aSorted = [...a].sort();\n const bSorted = [...b].sort();\n return aSorted.every((val, index) => bSorted[index] === val);\n } else {\n return a === b;\n }\n}", "function String$prototype$equals(other) {\n return typeof this === 'object' ?\n equals(this.valueOf(), other.valueOf()) :\n this === other;\n }", "static isEqual(a, b) {\n return eq(a, b, [], []);\n }", "function String$prototype$equals(other) {\n return typeof this === 'object' ?\n equals (this.valueOf (), other.valueOf ()) :\n this === other;\n }", "function equal(item1, item2){\n if (is_pair(item1) && is_pair(item2)) {\n return equal(head(item1), head(item2)) &&\n equal(tail(item1), tail(item2));\n } else if (array_test(item1) && item1.length === 0 &&\n array_test(item2) && item2.length === 0) {\n return true;\n } else {\n return item1 === item2;\n }\n}", "function equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length)\n return false;\n const aSorted = [...a].sort();\n const bSorted = [...b].sort();\n return aSorted.every((val, index) => bSorted[index] === val);\n }\n else {\n return a === b;\n }\n}", "function equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length)\n return false;\n const aSorted = [...a].sort();\n const bSorted = [...b].sort();\n return aSorted.every((val, index) => bSorted[index] === val);\n }\n else {\n return a === b;\n }\n}", "function equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length)\n return false;\n const aSorted = [...a].sort();\n const bSorted = [...b].sort();\n return aSorted.every((val, index) => bSorted[index] === val);\n }\n else {\n return a === b;\n }\n}", "function equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length)\n return false;\n const aSorted = [...a].sort();\n const bSorted = [...b].sort();\n return aSorted.every((val, index) => bSorted[index] === val);\n }\n else {\n return a === b;\n }\n}", "function equalArraysOrString(a, b) {\n if (Array.isArray(a) && Array.isArray(b)) {\n if (a.length !== b.length)\n return false;\n const aSorted = [...a].sort();\n const bSorted = [...b].sort();\n return aSorted.every((val, index) => bSorted[index] === val);\n }\n else {\n return a === b;\n }\n}", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n if (a.constructor === String) return a.localeCompare(b) === 0;\n if (b.constructor === String) return b.localeCompare(a) === 0;\n return false;\n }", "function numequals(a, b)\n{\n if (typeof(b) != 'object') return a==b;\n return a.equals(b);\n}", "function _equals(a, b) {\n if (a === b || (a !== a && b !== b)) { // true for NaNs\n return true;\n }\n\n if (!a || !b) {\n return false;\n }\n\n // There is probably a cleaner way to do this check\n // Blame TDD :)\n if (a && typeof a.constructor === 'function' &&\n a.constructor.unionFactory === Union) {\n if (!(b && typeof b.constructor === 'function' &&\n b.constructor.unionFactory === Union)) {\n return false;\n }\n if (a.constructor !== b.constructor) {\n return false;\n }\n if (a.name !== b.name) {\n return false;\n }\n return _equals(a.payload, b.payload);\n }\n\n // I hate this block. Blame immutablejs :)\n if (typeof a.valueOf === 'function' &&\n typeof b.valueOf === 'function') {\n a = a.valueOf();\n b = b.valueOf();\n if (a === b || (a !== a && b !== b)) {\n return true;\n }\n if (!a || !b) {\n return false;\n }\n }\n if (typeof a.equals === 'function' &&\n typeof b.equals === 'function') {\n return a.equals(b);\n }\n return false;\n}", "equalsArray(a, b) {\n if (a === b) return true;\n if (a == null || b == null) return false;\n if (a.length !== b.length) return false;\n\n for (let i = 0; i < a.length; ++i) {\n if (a[i] !== b[i]) { return false; }\n }\n return true;\n }", "function containSameElements(s1, s2) {\n if (s1.length != s2.length) return false;\n s1.sort();\n s2.sort();\n for (var i = s1.length; i--;) {\n if (s1[i] !== s2[i]) {\n return false;\n }\n }\n return true;\n}", "function equals(a, b) {\n return isNumber(a) || isString(a) ? a === b\n : isArray(a) ? arrayEq(a, b)\n : hasMethod(a, 'equals') ? a.equals(b)\n : isObject(a) ? objectEq(a, b)\n : undefined;\n}", "function isSketchStringsEqual(a, b) {\n return String(a) === String(b);\n}", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "inputPathsEqual(a, b) {\n if (a == null || b == null) {\n return a == null === (b == null);\n }\n\n return a.length === b.length && a.every((item, index) => {\n return b[index] === item;\n });\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n if (a.constructor === String) return a.localeCompare(b) === 0;\n if (b.constructor === String) return b.localeCompare(a) === 0;\n return false;\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n if (a.constructor === String) return a.localeCompare(b) === 0;\n if (b.constructor === String) return b.localeCompare(a) === 0;\n return false;\n }", "function stringsEqual(xs, ys) {\n if (xs == null || ys == null) {\n return xs === ys;\n }\n if (xs.length !== ys.length) {\n return false;\n }\n for (let i = 0; i < xs.length; ++i) {\n if (xs[i] !== ys[i]) {\n return false;\n }\n }\n return true;\n}", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (a.isEqual && _.isFunction(a.isEqual)) return a.isEqual(b);\n if (b.isEqual && _.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return a == String(b);\n case '[object Number]':\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (_.has(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = _.has(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (_.has(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n}", "function eqSet(as, bs) {\n if (as.length !== bs.length) return false;\n for(var i =0 ; i< as.length ; i++){\n if(as[i]!=bs[i]) return false;\n }\n return true;\n}", "function equal(a, b) {\n\t if (a === b) return true;\n\t if (a === undefined || b === undefined) return false;\n\t if (a === null || b === null) return false;\n\t // Check whether 'a' or 'b' is a string (primitive or object).\n\t // The concatenation of an empty string (+'') converts its argument to a string's primitive.\n\t if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object\n\t if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object\n\t return false;\n\t }", "function indexEq(a){\r\n for(i in a){\r\n if(a[i]==i)\r\n return true;\r\n }\r\n return false;\r\n}", "function isEqual(a, b) {\n return eq(a, b);\n }", "function isEqual(a, b) {\n return eq(a, b);\n }", "function isEqual(a, b) {\n return eq(a, b);\n }", "function isEqual(a, b) {\n return eq(a, b);\n }", "function isEqual(a, b) {\n return eq(a, b);\n }", "function isEqual(a, b) {\n return eq(a, b);\n }", "function isEqual(a, b) {\n return eq(a, b);\n }", "function isEqual(a, b) {\n return eq(a, b);\n }", "function isEqual(a, b) {\n return eq(a, b);\n }", "function caml_string_equal(s1, s2) {\n var b1 = s1.fullBytes;\n var b2 = s2.fullBytes;\n if (b1 != null && b2 != null) return (b1 == b2)?1:0;\n return (s1.getFullBytes () == s2.getFullBytes ())?1:0;\n}", "equals(x) {\n if (x instanceof StringHash) {\n if (x.hashVal() === this.hashVal()) {\n return true;\n }\n }\n return false;\n }", "function eq(a, b, stack) {\n // Identical objects are equal. `0 === -0`, but they aren't identical.\n // See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.\n if (a === b) return a !== 0 || 1 / a == 1 / b;\n // A strict comparison is necessary because `null == undefined`.\n if (a == null || b == null) return a === b;\n // Unwrap any wrapped objects.\n if (a._chain) a = a._wrapped;\n if (b._chain) b = b._wrapped;\n // Invoke a custom `isEqual` method if one is provided.\n if (_.isFunction(a.isEqual)) return a.isEqual(b);\n if (_.isFunction(b.isEqual)) return b.isEqual(a);\n // Compare `[[Class]]` names.\n var className = toString.call(a);\n if (className != toString.call(b)) return false;\n switch (className) {\n // Strings, numbers, dates, and booleans are compared by value.\n case '[object String]':\n // Primitives and their corresponding object wrappers are equivalent; thus, `\"5\"` is\n // equivalent to `new String(\"5\")`.\n return String(a) == String(b);\n case '[object Number]':\n a = +a;\n b = +b;\n // `NaN`s are equivalent, but non-reflexive. An `egal` comparison is performed for\n // other numeric values.\n return a != a ? b != b : (a == 0 ? 1 / a == 1 / b : a == b);\n case '[object Date]':\n case '[object Boolean]':\n // Coerce dates and booleans to numeric primitive values. Dates are compared by their\n // millisecond representations. Note that invalid dates with millisecond representations\n // of `NaN` are not equivalent.\n return +a == +b;\n // RegExps are compared by their source patterns and flags.\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') return false;\n // Assume equality for cyclic structures. The algorithm for detecting cyclic\n // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.\n var length = stack.length;\n while (length--) {\n // Linear search. Performance is inversely proportional to the number of\n // unique nested structures.\n if (stack[length] == a) return true;\n }\n // Add the first object to the stack of traversed objects.\n stack.push(a);\n var size = 0, result = true;\n // Recursively compare objects and arrays.\n if (className == '[object Array]') {\n // Compare array lengths to determine if a deep comparison is necessary.\n size = a.length;\n result = size == b.length;\n if (result) {\n // Deep compare the contents, ignoring non-numeric properties.\n while (size--) {\n // Ensure commutative equality for sparse arrays.\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))) break;\n }\n }\n } else {\n // Objects with different constructors are not equivalent.\n if (\"constructor\" in a != \"constructor\" in b || a.constructor != b.constructor) return false;\n // Deep compare objects.\n for (var key in a) {\n if (hasOwnProperty.call(a, key)) {\n // Count the expected number of properties.\n size++;\n // Deep compare each member.\n if (!(result = hasOwnProperty.call(b, key) && eq(a[key], b[key], stack))) break;\n }\n }\n // Ensure that both objects contain the same number of properties.\n if (result) {\n for (key in b) {\n if (hasOwnProperty.call(b, key) && !(size--)) break;\n }\n result = !size;\n }\n }\n // Remove the first object from the stack of traversed objects.\n stack.pop();\n return result;\n }", "function stringsEqual(xs, ys) {\n if (xs == null || ys == null) {\n return xs === ys;\n }\n if (xs.length !== ys.length) {\n return false;\n }\n for (var i = 0; i < xs.length; ++i) {\n if (xs[i] !== ys[i]) {\n return false;\n }\n }\n return true;\n}", "function stringsEqual(xs, ys) {\n if (xs == null || ys == null) {\n return xs === ys;\n }\n if (xs.length !== ys.length) {\n return false;\n }\n for (var i = 0; i < xs.length; ++i) {\n if (xs[i] !== ys[i]) {\n return false;\n }\n }\n return true;\n}", "eq(other) {\n if (this.content.length != other.content.length)\n return false;\n for (let i = 0; i < this.content.length; i++)\n if (!this.content[i].eq(other.content[i]))\n return false;\n return true;\n }", "function equals(x, y) {\n\t\tvar a = isFunction(x) ? x() : x;\n\t\tvar b = isFunction(y) ? y() : y;\n\t\tif (a == b)\n\t\t\treturn _true;\n\t\telse if (a == _null || b == _null)\n\t\t\treturn _false;\n\t\telse if (isValue(a) || isValue(b))\n\t\t\treturn isDate(a) && isDate(b) && +a==+b;\n\t\telse if (isList(a)) {\n\t\t\tif (a.length != b.length)\n\t\t\t\treturn _false;\n\t\t\telse\n\t\t\t\treturn !find(a, function(val, index) {\n\t\t\t\t\tif (!equals(val, b[index]))\n\t\t\t\t\t\treturn _true;\n\t\t\t\t});\n\t\t}\n\t\telse {\n\t\t\tif (isList(b))\n\t\t\t\treturn _false;\n\t\t\tvar aKeys = keys(a);\n\t\t\tif (aKeys.length != keyCount(b))\n\t\t\t\treturn _false;\n\t\t\telse\n\t\t\t\treturn !find(aKeys, function(key) {\n\t\t\t\t\tif (!equals(a[key],b[key]))\n\t\t\t\t\t\treturn _true;\n\t\t\t\t});\n\t\t}\n\t}", "function eq(a, b) {\n return a === b;\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n if (a.constructor === String) return a+'' === b+''; // IE requires a+'' instead of just a\n if (b.constructor === String) return b+'' === a+''; // IE requires b+'' instead of just b\n return false;\n }", "equals(that) {\n return this.square === that.square &&\n this.arrow === that.arrow &&\n this.diamond === that.diamond &&\n this.triangle === that.triangle &&\n this.circle === that.circle &&\n this.cross === that.cross;\n }", "function same(a, b) {\n if (a.length !== b.length) return false;\n\n for (let i = 0; i < a.length; i++) {\n if (a[i].length !== b[i].length) return false;\n\n for (let j = 0; j < a[i].length; j++) {\n if (a[i][j] !== b[i][j]) return false;\n }\n }\n\n return true;\n}", "static check_vectors_equality(matrixA, matrixB, n) {\n\t\tfor (var i = 0; i < n; i++) {\n\t\t\tif (matrixA.indexOf(matrixB[i]) < 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n // Check whether 'a' or 'b' is a string (primitive or object).\n // The concatenation of an empty string (+'') converts its argument to a string's primitive.\n if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object\n if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object\n return false;\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n // Check whether 'a' or 'b' is a string (primitive or object).\n // The concatenation of an empty string (+'') converts its argument to a string's primitive.\n if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object\n if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object\n return false;\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n // Check whether 'a' or 'b' is a string (primitive or object).\n // The concatenation of an empty string (+'') converts its argument to a string's primitive.\n if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object\n if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object\n return false;\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n // Check whether 'a' or 'b' is a string (primitive or object).\n // The concatenation of an empty string (+'') converts its argument to a string's primitive.\n if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object\n if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object\n return false;\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n // Check whether 'a' or 'b' is a string (primitive or object).\n // The concatenation of an empty string (+'') converts its argument to a string's primitive.\n if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object\n if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object\n return false;\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n // Check whether 'a' or 'b' is a string (primitive or object).\n // The concatenation of an empty string (+'') converts its argument to a string's primitive.\n if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object\n if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object\n return false;\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n // Check whether 'a' or 'b' is a string (primitive or object).\n // The concatenation of an empty string (+'') converts its argument to a string's primitive.\n if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object\n if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object\n return false;\n }", "function equal(a, b) {\n if (a === b) return true;\n if (a === undefined || b === undefined) return false;\n if (a === null || b === null) return false;\n // Check whether 'a' or 'b' is a string (primitive or object).\n // The concatenation of an empty string (+'') converts its argument to a string's primitive.\n if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object\n if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object\n return false;\n }" ]
[ "0.7469338", "0.70202494", "0.6979374", "0.6764572", "0.65684056", "0.6421915", "0.6421915", "0.6325276", "0.6200986", "0.6184199", "0.61605537", "0.6107802", "0.6091598", "0.6032227", "0.6017362", "0.5985649", "0.59706223", "0.59529936", "0.59414196", "0.59239614", "0.5921135", "0.5921135", "0.5914029", "0.59139264", "0.5909333", "0.5875448", "0.58752435", "0.58748806", "0.58713895", "0.58496207", "0.5824043", "0.58157337", "0.5803622", "0.57923245", "0.5791993", "0.57855505", "0.57795733", "0.5769809", "0.57696843", "0.57652014", "0.5761157", "0.57610714", "0.574816", "0.574816", "0.574816", "0.574816", "0.574816", "0.574435", "0.5733414", "0.57237464", "0.57149523", "0.56993973", "0.5691491", "0.56870854", "0.5678238", "0.5678238", "0.5678238", "0.5678238", "0.5678238", "0.5678238", "0.5678238", "0.5678238", "0.5678238", "0.5678238", "0.5669132", "0.56690496", "0.56690496", "0.56668234", "0.56648767", "0.56639135", "0.5637483", "0.56347233", "0.56329054", "0.56329054", "0.56329054", "0.56329054", "0.56329054", "0.56329054", "0.56329054", "0.56329054", "0.56329054", "0.5612342", "0.56104183", "0.55992794", "0.5592088", "0.5592088", "0.55903435", "0.55873513", "0.55832624", "0.55747336", "0.5570363", "0.55659974", "0.55636084", "0.55558556", "0.55558556", "0.55558556", "0.55558556", "0.55558556", "0.55558556", "0.55558556", "0.55558556" ]
0.0
-1
Example: "Vec.of( 1,0,0 ).plus ( Vec.of( 1,0,0 ) )" returns the Vec [ 2,0,0 ].
minus(b) { return this.map((x, i) => x - b[i]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vectorAdd(a, b) {\n\treturn [ a[0] + b[0], a[1] + b[1] ];\n}", "function vadd(a,b) { return [a[0]+b[0], a[1]+b[1]] }", "function add( v1, v2 ) { return [ v1[0] + v2[0], v1[1] + v2[1], v1[2] + v2[2] ]; }", "plus(other) {\n return new Vector(this.x + other.x, this.y + other.y);\n }", "addVectors(vec1, vec2) {\n return [vec1[0] + vec2[0], vec1[1] + vec2[1]];\n }", "addVectors(vec1, vec2) {\n return [vec1[0] + vec2[0], vec1[1] + vec2[1]];\n }", "suma (vec){return new Vector(this.x+vec.x, this.y+vec.y, this.z+vec.z);}", "function add(v1, v2) {\n return [v1[0] + v2[0], v1[1] + v2[1]];\n}", "function addVectors() {\n let vector = [];\n for (var vec of arguments) {\n for (var elem = 0; elem < vec.length; elem++) {\n if (isNaN(vector[elem])) {\n vector[elem] = vec[elem];\n } else {\n vector[elem] += vec[elem];\n }\n }\n }\n return vector;\n}", "function addVect(a, b) {\n return [ a[0] + b[0],\n a[1] + b[1],\n a[2] + b[2]\n ];\n}", "static add(v1, v2) {\r\n return v1.map((a, i) => a + v2[i]);\r\n }", "static add(v1, v2) {\r\n return v1.map((a, i) => a + v2[i]);\r\n }", "add(x, y) {\n return new Vector(this.x + x, this.y + y);\n }", "add(vec){\n this.x += vec.x;\n this.y += vec.y;\n return this;\n }", "static vectorAdd (acc, cur) { return acc + cur }", "add(vector) {\n return new Vector(this.x + vector.x, this.y + vector.y);\n }", "add(vector) {\n return new Vector(this.x + vector.x, this.y + vector.y);\n }", "function addVectors(a, b){\n var x = a.x + b.x;\n var y = a.y + b.y;\n return new Vector(x, y);\n}", "addVec3(v1, v2) {\n let v3 = new Vector3([v1.elements[0] + v2.elements[0], v1.elements[1] + v2.elements[1], v1.elements[2] + v2.elements[2]])\n return v3\n }", "function add() {\n return Array.from( arguments ).reduce( ( a, b ) => {\n return ( +a + +b );\n }, 0 );\n}", "function addVectors(vec1, vec2) {\n var result = [];\n var i;\n for (i = 0; i < vec1.length;i++) {\n result[i] = vec1[i] + vec2[i];\n }\n return result;\n}", "function add_v2(v1, v2) { return [v1[0] + v2[0], v1[1] + v2[1]]; }", "static Add(vec1, vec2) {\n vec1 = new VecX(vec1);\n vec2 = new VecX(vec2);\n return vec1.Add(vec2);\n }", "static add(v1,v2) {\n try {\n if (!(v1 instanceof Vector) || !(v2 instanceof Vector))\n throw \"Vector.add: non-vector parameter\";\n else\n return(new Vector(v1.x+v2.x,v1.y+v2.y,v1.z+v2.z));\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "function m_addVec(vA, vB) //objets x, y (ex: {x: 2, y: 1})\n{\n return {\"x\" : vA.x + vB.x, \"y\" : vA.y + vB.y};\n}", "static add(v1,v2) {\r\n try {\r\n if (!(v1 instanceof Vector) || !(v2 instanceof Vector))\r\n throw \"Vector.add: non-vector parameter\";\r\n else\r\n return(new Vector(v1.x+v2.x,v1.y+v2.y,v1.z+v2.z));\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "add() {\n for (let i = 0; i < arguments.length; i++) {\n this.result += arguments[i];\n }\n return this.result;\n }", "function vecAddInPlace(a, b) {\n for (var i = 0; i < a.length; i++) {\n a[i] += b[i];\n };\n}", "static Add(vec1, vec2) {\n let Vec1 = new Vec3(vec1);\n let Vec2 = new Vec3(vec2);\n return Vec1.Add(Vec2);\n }", "static sum(vectors)\n\t{\n\t\t//TODO: done\n\t\tvar result = vectors[0];\n\t\tfor (var i=1; i<vectors.length; ++i)\n\t\t\tresult.add(vectors[i]);\n\t\treturn result;\n\t}", "addVector(rhs) {\n return new Vector(this.x + rhs.x, this.y + rhs.y);\n }", "static Add(vec1, vec2) {\n vec1 = new Vec2(vec1);\n vec2 = new Vec2(vec2);\n return new Vec2(vec1.x + vec2.x, vec1.y + vec2.y);\n }", "Add(x, y) {\n let vec = new Vec2(x, y);\n this.x += vec.x;\n this.y += vec.y;\n return this;\n }", "add(x, y){\n return new Vector2(this.x + x, this.y + y);\n }", "add(v) {\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tthis.x += arguments[i].x\n\t\t\tthis.y += arguments[i].y\n\t\t}\n\n\t\treturn this;\n\t}", "function add2d(u, v)\r\n{\r\n return [u[0]+v[0], u[1]+v[1]];\r\n}", "plus(b) {\r\n return this.map((x, i) => x + b[i]);\r\n }", "function addVectors(v1, v2) {\r\n return {\r\n x: v1.x + v2.x,\r\n y: v1.y + v2.y,\r\n z: v1.z + v2.z\r\n };\r\n}", "function pointwisePlus ([a, b], [c, d]) {return [a+c, b+d];}", "function vector2dAdd(v1, v2) {\n return new vector2d(v1.x + v2.x, v1.y + v2.y);\n}", "function addV2(x, y) {\n return x + y;\n}", "function plus(x,y) {return x+y}", "function add(a, b) {\n return a.map((e) => e + b);\n}", "function add() {\n const result = [];\n return function () {\n if (arguments.length === 0) {\n return result.reduce(function (a, b) {\n return a + b;\n }, 0);\n }\n [].push.apply(result, [].slice.call(arguments));\n return arguments.callee;\n }\n }", "function dotAdd (x, y) {\n var my = math.size(y)\n var mx = math.size(x)\n var ycol = my.subset(math.index(1))\n var xcol = mx.subset(math.index(1))\n if (xcol === 1) {\n for (let i = 0; i < ycol; i++) {\n var tem = math.add(x.subset(math.index(0, 0)), y.subset(math.index(0, i)))\n y.subset(math.index(0, i), tem)\n }\n } else {\n for (let i = 0; i < ycol; i++) {\n tem = math.add(x.subset(math.index(0, i)), y.subset(math.index(0, i)))\n y.subset(math.index(0, i), tem)\n }\n }\n return y\n}", "add(...args)\r\n {\r\n if(args[0] instanceof Vector2D)\r\n {\r\n this.x += args[0].x || 0;\r\n this.y += args[0].y || 0 ;\r\n return this;\r\n }\r\n if(args[0] instanceof Array)\r\n {\r\n this.x += args[0][0] || 0 ;\r\n this.y += args[0][1] || 0 ;\r\n return this;\r\n }\r\n this.x += args[0] || 0 ;\r\n this.y += args[1] || 0 ;\r\n return this; \r\n }", "function sc_plus() {\n var sum = 0;\n for (var i = 0; i < arguments.length; i++)\n\tsum += arguments[i];\n return sum;\n}", "sum(vector) {\n return vector.x+vector.y+vector.z;\n }", "function add(...args) {\n return args.reduce((previous, current) => previous + current);\n}", "function addPoints(a, b) {\n return [a[0] + b[0], a[1] + b[1]];\n}", "function add(x, y) { return x + y; }", "function addV(u,v){\r\n\tvar w = new Array();\r\n\tvar i=0;\r\n\tfor(i=0;i<u.length;i++){\r\n\t\tw[i] = u[i]+v[i];\r\n\t}\r\n\treturn w;\r\n}", "function add(x,y) {\n var ans=expand(x,(x.length>y.length ? x.length+1 : y.length+1)); \n add_(ans,y);\n return trim(ans,1);\n }", "function add (x,y) {\n \n return Number(x) + Number(y);\n\n}", "function algebraAdd() {\n var lins = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n lins[_i] = arguments[_i];\n }\n return algebraNormalise((_a = []).concat.apply(_a, lins));\n var _a;\n}", "add(x, y){\n let point = new Point(x,y); //this will handle the 'x' being numbers, array, a simple object, or another Point \n this.x += point.x;\n this.y += point.y;\n return this;\n }", "function adding(x, y) {\n\treturn (x + y);\n}", "function add() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var acc = args[0];\n for (var i = 1; i < args.length; i++) {\n acc = _add_two(acc, args[i]);\n }\n return acc;\n}", "function add( p0, p1 ) {\n return {x: p0.x + p1.x, y: p0.y + p1.y};\n}", "function addMatVec(m, v) {\n\t\treturn m.map(function(x, i, j) {\n\t\t\treturn x + v.get(j);\n\t\t});\n\t}", "function vectSum(a,b) {\n return a.map(function(val,i) { return a[i]+b[i] })\n}", "function add(a,b){\n \n let li=a+b\n\n return li\n}", "function sum() { return Array.prototype.slice.call(arguments).join('+'); }", "function add() {\n const first = arguments[0];\n const rest = Array.from(arguments).slice(1);\n return rest.reduce((sum, next) => sum + next, first);\n}", "function add(...a) {\n return a.reduce( (accum, cValue) => (accum + cValue), 0 );\n \n}", "function add(...args) {\n return args.reduce((previous, current) => {\n return previous + current;\n });\n console.log(args);\n}", "function add (a, b) {\n return a + ;\n}", "function addition(...nombre){\n \n let resultat = 0;\n \n //on cree une fonction fléchée à partir de nombre.\n //pout iterer sur les arguments de nombre.\n nombre.forEach(nombre => {\n \n resultat += nombre;\n \n });\n return resultat;\n }", "function map (v) {\n return v + v\n }", "Add(values) {\n let vec = new VecX(values);\n while (vec.size < this.size) {\n vec.values.push(vec.values[0]);\n }\n ;\n this.values = this.values.map((val, index) => val + vec.values[index]);\n return this;\n }", "function add() {\n var sum = 0;\n for (var i = 0, j = arguments.length; i < j; i++) {\n sum += arguments[i];\n }\n return sum;\n}", "function add() {\n var sum = 0;\n for (var i = 0, j = arguments.length; i < j; i++) {\n sum += arguments[i];\n }\n return sum;\n}", "plus()\n {\n console.log(\"the sum is:-\" + (this.x + this.y));\n }", "add(x, y) {\n return x + y;\n }", "function addMultipleVector(a, multiple, b) {\r\n return [a[0] + multiple * b[0], \r\n a[1] + multiple * b[1]];\r\n}", "function add(...args) {\n return args.reduce((i, sum) => i + sum)\n}", "function add(a, ...args) {\n const n = a.slice();\n [...args].forEach(p => {\n n[0] += p[0];\n n[1] += p[1];\n });\n return n;\n }", "static add(m1, m2) {\n return Matrix.opFunc((x1, x2) => x1 + x2, m1, m2);\n }", "function add(x,y) {\n\treturn (x + y);\n}", "Add(v) {\n this.x += v.x;\n this.y += v.y;\n }", "function add2(args) {\n return args[0] + args[1];\n }", "function add2(args) {\n return args[0] + args[1];\n }", "function add(x, y) {\n let result = x + y;\n return result;\n}", "function add(x, y) {\n\treturn x+y;\n}", "function add(x, y) {\n console.log(`${x} + ${y} is ${x + y}`)\n}", "function sum (x,y) {\n added = x + y\n return added\n}", "function _add(a, b) { return a + b }", "function add (x,y){\n return x+y;\n}", "function add(a, b) { return a + b; }", "function add(a, b) { return a + b; }", "function add(a, b) { return a + b; }", "function add(a, b) { return a + b; }", "function plus(a, b) {\n return a + b;\n }", "function add(x, y){\n\treturn x+y;\n}", "function add(x, y) {\n return x + y\n}", "function add(x, y) {\n return x + y\n}", "function mAdd(m1,m2){\n\tmAddTest(m1,m2)\n\tconst newM = new Array(m1.length)\n\tfor(let i=0;i<m1.length;i++){\n\t\tnewM[i] = [m1[i][0]+m2[i][0]]\n\t}\n\t\n\treturn newM\n}", "function add(x,y){\n\treturn x+y;\n}", "function add(input) {\n const [a, b] = input.split(' ');\n return Number(a) + Number(b);\n}", "function add (x, y) {\n return x + y\n}", "function add (x,y) {\n return x + y;\n}" ]
[ "0.71344256", "0.6986896", "0.69495577", "0.68993694", "0.6852878", "0.6852878", "0.6847386", "0.6814459", "0.67967516", "0.67937165", "0.6750764", "0.6750764", "0.6735317", "0.6707938", "0.66939896", "0.6654446", "0.6654446", "0.6643855", "0.6637022", "0.6616922", "0.65064293", "0.6502449", "0.64950126", "0.64746404", "0.6466171", "0.64247084", "0.64138186", "0.6388652", "0.63523155", "0.63230884", "0.63024414", "0.6301857", "0.62840027", "0.6282339", "0.62816876", "0.62771714", "0.62580395", "0.62467945", "0.622836", "0.6196583", "0.6173316", "0.6149104", "0.6139409", "0.6126641", "0.61181945", "0.60986435", "0.6086497", "0.60835385", "0.6051254", "0.6036091", "0.6015246", "0.5969849", "0.594956", "0.59463125", "0.5936641", "0.59355646", "0.59160054", "0.5913382", "0.58872116", "0.58820015", "0.58668166", "0.58548003", "0.5850681", "0.584862", "0.5834362", "0.5830848", "0.58306074", "0.5826122", "0.58209616", "0.5810753", "0.58106965", "0.58106965", "0.58092684", "0.58052564", "0.5804634", "0.58015144", "0.5800509", "0.57991874", "0.5787258", "0.5781483", "0.57602924", "0.5759727", "0.5754162", "0.57450014", "0.57404554", "0.57383054", "0.5728032", "0.5717013", "0.57146806", "0.57146806", "0.57146806", "0.57146806", "0.57143474", "0.5713711", "0.5712396", "0.5712396", "0.57089305", "0.570693", "0.5705519", "0.5702767", "0.5701353" ]
0.0
-1
Example: "Vec.of( 1,0,0 ).minus ( Vec.of( 1,0,0 ) )" returns the Vec [ 0,0,0 ].
mult_pairs(b) { return this.map((x, i) => x * b[i]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static subtract(v1,v2) {\n try {\n if (!(v1 instanceof Vector) || !(v2 instanceof Vector))\n throw \"Vector.subtract: non-vector parameter\";\n else {\n var v = new Vector(v1.x-v2.x,v1.y-v2.y,v1.z-v2.z);\n //v.toConsole(\"Vector.subtract: \");\n return(v);\n }\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "static subtract(v1,v2) {\r\n try {\r\n if (!(v1 instanceof Vector) || !(v2 instanceof Vector))\r\n throw \"Vector.subtract: non-vector parameter\";\r\n else {\r\n var v = new Vector(v1.x-v2.x,v1.y-v2.y,v1.z-v2.z);\r\n //v.toConsole(\"Vector.subtract: \");\r\n return(v);\r\n }\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "static subtract(v1, v2) {\r\n return v1.map((a, i) => a - v2[i]);\r\n }", "static subtract(v1, v2) {\r\n return v1.map((a, i) => a - v2[i]);\r\n }", "function minus($a) {\n var a = (0, _xvseq._first)($a);\n if (typeof a.neg == \"function\") return (0, _xvseq.seq)(a.neg());\n return (0, _xvseq.seq)(-a);\n}", "static Subtract(vec1, vec2) {\n vec1 = new Vec2(vec1);\n vec2 = new Vec2(vec2);\n return new Vec2(vec1.x - vec2.x, vec1.y - vec2.y);\n }", "function minus(p1, p2) {\n\treturn [p1[0]-p2[0], p1[1]-p2[1], p1[2]-p2[2], p1[3]];\n}", "Subtract(x, y) {\n let vec = new Vec2(x, y);\n this.x -= vec.x;\n this.y -= vec.y;\n return this;\n }", "sub(rhs) {\n return new Vector(this.x - rhs.x, this.y - rhs.y);\n }", "minus(p1, p2) {\n return [(p1[0] - p2[0]), (p1[1] - p2[1])];\n }", "subtract() {\n return CSG.moduleOp('manifold.subtract', 'difference', ...arguments);\n }", "function neg (v) {\n return [-v[0], -v[1]];\n}", "function neg (v) {\n return [-v[0], -v[1]];\n}", "minus(b) {\r\n return this.map((x, i) => x - b[i]);\r\n }", "function subtract (x,y){\n return x-y;\n}", "function subtract(x,y) {\n return x - y;\n}", "function dotSubtract (x, y) {\n var mx = math.size(x)\n var xcol = mx.subset(math.index(1))\n var output = math.zeros(1, xcol)\n for (let i = 0; i < xcol; i++) {\n var tem = math.subtract(x.subset(math.index(0, i)), y.subset(math.index(0, i)))\n output.subset(math.index(0, i), tem)\n }\n return output\n}", "function subtract(x,y) {\n return x - y;\n}", "function subtract(x,y) {\n return x - y;\n}", "function vecSub(a, b) {\n\t// console.log(typeof [b[0] - a[0], b[1] - a[1]][0]);\n\treturn [b[0] - a[0], b[1] - a[1]];\n}", "function subtract(x,y){\n return x-y;\n}", "subtract(v) { \n\t\tthis.x -= v.x;\n\t\tthis.y -= v.y;\n\t\treturn this;\n\t}", "function vectorSub(p5, a, b) {\n return p5.createVector(a.x - b.x, a.y - b.y);\n}", "function subtract(a, b) {\n return a - b;\n}", "function subVectors() {\n let vector = [];\n for (var vec of arguments) {\n for (var elem = 0; elem < vec.length; elem++) {\n if (isNaN(vector[elem])) {\n vector[elem] = vec[elem];\n } else {\n vector[elem] -= vec[elem];\n }\n }\n }\n return vector;\n}", "function sub( v1, v2 ) { return [ v1[0] - v2[0], v1[1] - v2[1], v1[2] - v2[2] ]; }", "resta(vec){return new Vector(this.x-vec.x, this.y-vec.y, this.z-vec.z);}", "function subtract(a,b) {\n\treturn a - b\n}", "function subtract(a,b) {\n return a-b;\n}", "function sc_minus(x) {\n if (arguments.length === 1)\n\treturn -x;\n else {\n\tvar res = x;\n\tfor (var i = 1; i < arguments.length; i++)\n\t res -= arguments[i];\n\treturn res;\n }\n}", "function subtract(a, b) {\n return a - b;\n}", "Subtract(values) {\n let vec = new VecX(values);\n while (vec.size < this.size) {\n vec.values.push(vec.values[0]);\n }\n ;\n this.values = this.values.map((val, index) => val - vec.values[index]);\n return this;\n }", "function subtract(a,b){\n return a - b\n}", "function subtract(a, b){\n return a - b;\n}", "function subtract (x, y) {\n var answer = x - y\n return answer\n}", "function subtract( x, y ) {\n return ( ( +x ) - ( +y ) );\n}", "function subVectors (vec1, vec2) {\n return [vec1[X] - vec2[X], vec1[Y] - vec2[Y]];\n}", "substract(x,y){\n let point = new Point(x,y); //this will handle the 'x' being numbers, array, a simple object, or another Point \n this.x -= point.x;\n this.y -= point.y;\n return this;\n }", "sub(x, y = undefined, z = undefined) {\n if (x instanceof Vector) {\n this.x -= x.x || 0;\n this.y -= x.y || 0;\n this.z -= x.z || 0;\n\n return this;\n }\n\n // Unsure how useful this one is.\n if (x instanceof Array) {\n this.x -= x[0] || 0;\n this.y -= x[1] || 0;\n this.z -= x[2] || 0;\n return this;\n }\n\n this.x -= x || 0;\n this.y -= y || 0;\n this.z -= z || 0;\n\n return this;\n }", "static subtract(a, b) {\n return Matrix.map(new Matrix(a.rows, a.cols), (_, i, j) => a.data[i][j] - b.data[i][j]);\n }", "Subtract(x, y, z) {\n let vec = new Vec3(x, y, z);\n this.x -= vec.x;\n this.y -= vec.y;\n this.z -= vec.z;\n return this;\n }", "function vectorDiff(a, b) {\r\n return [b[0] - a[0], b[1] - a[1]];\r\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}", "function subtract$1 (input, value) {\n return addSubtract$1(this, input, value, -1);\n}" ]
[ "0.7363974", "0.7347908", "0.6944243", "0.6944243", "0.6912665", "0.6904948", "0.6895335", "0.6875109", "0.6811959", "0.6805193", "0.67930955", "0.669519", "0.669519", "0.6663241", "0.6642289", "0.66279656", "0.6615471", "0.65880257", "0.65880257", "0.6580789", "0.656407", "0.6538718", "0.65177035", "0.65012056", "0.6492137", "0.6488788", "0.64863664", "0.6484544", "0.64752436", "0.6472034", "0.64611423", "0.64520127", "0.6444987", "0.6427579", "0.6401373", "0.6381616", "0.6348719", "0.6295184", "0.6276095", "0.62748384", "0.62497437", "0.62272036", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656", "0.6209656" ]
0.0
-1
Example: "Vec.of( 1,2,3 ).mult_pairs( Vec.of( 3,2,0 ) )" returns the Vec [ 3,4,0 ].
scale(s) { this.forEach((x, i, a) => a[i] *= s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "mult_pairs(b) {\r\n return this.map((x, i) => x * b[i]);\r\n }", "function multip_2(param) {\n return param.map((cur) => {\n return cur * 2;\n })\n}", "function pairProduct(arr, num)\n{\n\tvar multiples = [];\n\n\tfor(var i = 0; i<= arr.length - 1; i++)\n\t{\n\t\tvar outerNum = arr[i];\n\t\tfor(var j = i + 1; j<= arr.length - 1; j++)\n\t\t{\n\t\t\tvar innerNum = arr[j];\n\t\t\tif(outerNum * innerNum === num)\n\t\t\t{\n\t\t\t\tmultiples.push([i,j]);\n\t\t\t}\n\t\t}\n\t}\n\treturn multiples;\n}", "function mMulti(m,v){\n\tmMultiTest(m,v)\n\tconst newM = new Array(m.length)\n\tlet sum\n\tfor(let i=0;i<m.length;i++){\n\t\tnewM[i] = new Array()\n\t\tsum=0\n\t\tfor(let j=0;j<v.length;j++){\n\t\t\tsum += m[i][j] * v[j][0]\n\t\t}\n\t\tnewM[i][0] = sum\n\t}\n\n\treturn newM\n}", "function pairProduct(arr, target) {\n // x * y === target\n let pairs = [];\n for (let i = 0; i < arr.length - 1; i++) {\n for (let j = i + 1; j < arr.length; j++) {\n let num1 = arr[i];\n let num2 = arr[j];\n if (num1 * num2 === target) {\n pairs.push([i, j]);\n }\n }\n }\n return pairs;\n}", "function multTwo(array){\n return array.map((value) => value *2)\n }", "function multiplyAllPairs(array1, array2) {\n let multiplesArray = [];\n array1.forEach((element1) => {\n array2.forEach((element2) => {\n multiplesArray.push(element1 * element2);\n });\n });\n\n return multiplesArray.sort((a, b) => a - b);\n}", "function multiply_point(M,V){\n var result = new Array(4);\n //Go through M \n for (var i=0; i < 4; i++){\n var vec1 = M.slice(0+i*4,4+i*4);\n\n result[i]= dot(vec1,V);\n }\n return result;\n\n}", "function mulSeries(serie1,serie2){\n\t\tvar res = [];\t\t\n\t\tvar start, end, len;\n\t\t\n\t\tif (serie1.length > serie2.length){\t\t\t\t\t\t\t\n\t\t\tdif = serie1.length-serie2.length;\n\t\t\tstart = dif;\n\t\t\tend = serie1.length;\n\t\t\t\n\t\t\tfor (var i=start; i<end; i++){\n\t\t\t\tres.push(serie1[i]*serie2[i-dif]);\n\t\t\t}\t\t\n\t\t\n\t\t}else\n\t\t{\n\t\t\tdif = serie2.length-serie1.length;\n\t\t\tstart = dif;\n\t\t\tend = serie2.length;\t\t\t\t\t\n\t\t\t\n\t\t\tfor (var i=start; i<end; i++){\t\t\t\t\n\t\t\t\tres.push(serie1[i-dif]*serie2[i]);\n\t\t\t}\t\t\n\t\t\t\n\t\t}\t\t\n\t\treturn res;\t\n\t}", "function multiplyAllPairs(array1, array2) {\n let resultArray = [];\n array1.forEach(array1Element => {\n array2.forEach(array2Element => {\n resultArray.push(array1Element * array2Element);\n })\n })\n return resultArray.sort((a, b) => a - b);\n}", "function pairs(array) {\n let newArray = [];\n for (var i = 0; i < array.length; i++) {\n if (array[i] % 2 === 0) {\n let a = array[i];\n newArray = [...newArray, a];\n }\n }\n return newArray;\n}", "function multiply(a, b) {\n return [\n a[0] * b[0] + a[1] * b[3],\n a[0] * b[1] + a[1] * b[4],\n a[0] * b[2] + a[1] * b[5] + a[2],\n a[3] * b[0] + a[4] * b[3],\n a[3] * b[1] + a[4] * b[4],\n a[3] * b[2] + a[4] * b[5] + a[5]\n ];\n}", "function multiply(a, b) {\n return [\n a[0] * b[0] + a[1] * b[3],\n a[0] * b[1] + a[1] * b[4],\n a[0] * b[2] + a[1] * b[5] + a[2],\n a[3] * b[0] + a[4] * b[3],\n a[3] * b[1] + a[4] * b[4],\n a[3] * b[2] + a[4] * b[5] + a[5]\n ];\n}", "multiplyMany(...numbers) {\n\n }", "function mult4(mat, vec) {\n var result = [];\n for ( var i = 0; i < vec.length; ++i ) {\n var innerSum = 0;\n for (var j = 0; j < mat[i].length; ++j) {\n innerSum += vec[i] * mat[i][j];\n }\n result.push(innerSum);\n }\n return result;\n}", "function tripleEachElement(input) {\n var output = [];\n for (var i = 0; i < input.length; i++) {\n output.push(input[i] * 3);\n }\n return output;\n}", "function multiply(multi,...args){\n\treturn args.map(arg => arg * multi)\n}", "function pair(x) {\n return function(y) {\n return [x, y];\n };\n }", "function pair(x) {\n return function(y) {\n return [x, y];\n };\n }", "function multiplyAllPairs(set1, set2) {\n var result = [];\n set1.forEach(function(value1) {\n set2.forEach(function(value2) {\n result.push(value1 * value2);\n });\n });\n\n return result.sort(function(a, b) {\n return a - b;\n });\n}", "function mul() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var acc = args[0];\n for (var i = 1; i < args.length; i++) {\n acc = _mul_two(acc, args[i]);\n }\n return acc;\n}", "function mult(x,y) {\n var ans=expand(x,x.length+y.length);\n mult_(ans,y);\n return trim(ans,1);\n }", "function mult2d(u, k)\r\n{\r\n return [u[0]*k, u[1]*k]\r\n}", "function multiply(a, b) {\n return [a[0] * b[0] + a[1] * b[3], a[0] * b[1] + a[1] * b[4], a[0] * b[2] + a[1] * b[5] + a[2], a[3] * b[0] + a[4] * b[3], a[3] * b[1] + a[4] * b[4], a[3] * b[2] + a[4] * b[5] + a[5]];\n}", "function multiplyAllPairs(arr1, arr2) {\n let products = [];\n arr1.forEach(el1 => {\n arr2.forEach(el2 => {\n products.push(el1 * el2);\n });\n });\n return products.sort((el1, el2) => el1 - el2);\n}", "function double(arr) {\n let results = []\n for (let i = 0; i < arr.length; i++) {\n results.push(arr[i]*2)\n }\n return results\n }", "function addMultipleVector(a, multiple, b) {\r\n return [a[0] + multiple * b[0], \r\n a[1] + multiple * b[1]];\r\n}", "function pairs(values, pairof = pair) {\n const pairs = [];\n let previous;\n let first = false;\n for (const value of values) {\n if (first) pairs.push(pairof(previous, value));\n previous = value;\n first = true;\n }\n return pairs;\n}", "function pairs(values, pairof = pair) {\n const pairs = [];\n let previous;\n let first = false;\n for (const value of values) {\n if (first) pairs.push(pairof(previous, value));\n previous = value;\n first = true;\n }\n return pairs;\n}", "static mult(a, b) {\n let x = [];\n for (let row = 0; row < a.length; row++) {\n let y = [];\n for (let col = 0; col < b[0].length; col++) {\n let sum = 0;\n for (let k = 0; k < b.length; k++) {\n sum += a[row][k] * b[k][col];\n }\n y.push(sum);\n }\n x.push(y);\n }\n return x;\n }", "function multiplyByTwo(...numbers) {\r\n return numbers.map(number => number * 2);\r\n}", "function double(arr){\n var newArr = [];\n for(var i = 0; i < arr.length; i ++){\n newArr.push(arr[i]*2);\n }\n return newArr;\n}", "function multy2(...numbers) {\n console.log(numbers);\n console.log(\n numbers.reduce(function (value, curretValue) {\n return value * curretValue;\n })\n );\n}", "function multiplyList(array1, array2) {\n var i;\n var newArray = [];\n for (i = 0; i < array1.length; i++) {\n newArray.push(array1[i] * array2[i])\n }\n return newArray;\n}", "function double(arr){\n\nlet result = arr.map((elem)=>{\n return elem * 2\n})\nreturn result;\n}", "function productArray(numbers){\n let result = []\n numbers.forEach((number, index) => {\n let res = 1;\n numbers.forEach((subNumber, subIndex) => {\n if(index !== subIndex) {\n res *= subNumber\n }\n })\n result.push(res)\n })\n return result\n }", "function double(arr){\n newArr = []\n for (let i = 0; i < arr.length; i++){\n newArr.push(arr[i]*2)\n }\n return newArr\n}", "function pair(x, xs) {\n return [x, xs];\n}", "function multiplyAllPairs(arr1, arr2) {\n let result = [];\n\n arr1.forEach(num1 => {\n arr2.forEach(num2 => {\n result.push(num1 * num2);\n });\n });\n\n return result.sort((a, b) => {\n return a - b;\n });\n}", "crossProduct(v1, v2) {\n return (v1[0] * v2[1] - v1[1] * v2[0]);\n }", "function arrayPairs(arr) {\n // YOUR WORK HERE\n let result = [];\n function pairArr(i) {\n if (i >= arr.length) return;\n result.push([arr[i], arr[i + 1]]);\n pairArr(i + 2);\n }\n pairArr(0);\n return result;\n}", "function makePair(num1, num2){\n return [num1, num2];\n }", "function interpolatePairs( _ps, t1, t2 ) {\n var pn = [];\n for (var i=0; i<_ps.length; i++) {\n var next = (i==_ps.length-1) ? 0 : i+1;\n pn.push( new Pair( _ps[i].interpolate( t1 ) ).to( _ps[next].interpolate( 1-t2 ) ) );\n }\n return pn;\n}", "function normalize(pair){\n // add the modulus until both x,y are positive.\n// return pair.map(positive_mod) NO\n x=pair[0]\n y=pair[1]\n while (x<0) x+=n\n while (y<0) y+=n\n return [x,y]\n}", "function double(array) {\n var returnArray;\n for (index = 0; index < a.length; ++index) {\n returnArray[0] = array[0]*2;\n }\n return returnArray;\n}", "function doubleArray (array) {\n return array.map( item=>{return item*2});\n}", "function multiply(elements) {\n return elements.reduce((product, element) => {\n product *= element;\n return product;\n }, 1);\n}", "function crossProduct(vec1, vec2) {\n let sum = 0;\n for (let i = 0; i < vec1.length; i++) {\n sum += vec1[i] * vec2[i];\n }\n return sum;\n}", "function getmultiplied(arr)\r\n{\r\n for (let i = 0; i < arr.length; i++)\r\n arr[i]=arr[i]*2\r\n return arr;\r\n}", "function double(arr) {\n let newArr = [];\n // one new arr\n for (let i = 0; i < arr.length; i++) {\n newArr.push(2 * arr[i]);\n // multiples each item and pushes it to the new array\n }\n return newArr;\n}", "function multiplyVect(vector, scalar) {\n return [ scalar * vector[0],\n scalar * vector[1],\n scalar * vector[2]\n ];\n}", "cross(b) // Use only on 3x1 Vecs. Example: \"Vec.of( 1,0,0 ).cross( Vec.of( 0,1,0 ) )\" returns the Vec [ 0,0,1 ]. \r\n {\r\n return Vec.of(this[1] * b[2] - this[2] * b[1], this[2] * b[0] - this[0] * b[2], this[0] * b[1] - this[1] * b[0]);\r\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}", "function multiplyPrimes(input) {\n let primes = primesArray(input);\n let initArr = [' '].concat(primes);\n\n let product = [initArr];\n\n primes.forEach(function (prime) {\n let nextRow = [prime];\n\n primes.forEach(function (coefficient) {\n nextRow.push(prime * coefficient);\n });\n\n product.push(nextRow);\n });\n\n return product;\n}", "function multiply(numbers, multiplier) {\n let numbersClone = numbers.map(function(number) {\n return number * multiplier;\n });\n\n return numbersClone;\n}", "function cross(v0, v1) {\n return [v0[1] * v1[2] - v0[2] * v1[1], v0[2] * v1[0] - v0[0] * v1[2], v0[0] * v1[1] - v0[1] * v1[0]];\n}", "function multVector (vec1, multiplier) {\n return [vec1[X] * multiplier, vec1[Y] * multiplier];\n}", "function doubleList(list) {\n let output = [];\n for (let i = 0, l = list.length; i < l; i += 1) {\n let doubled = list[i] * 2;\n output.push(doubled);\n }\n return output;\n}", "Multiply(values) {\n let vec = new VecX(values);\n while (vec.size < this.size) {\n vec.values.push(vec.values[0]);\n }\n ;\n this.values = this.values.map((val, index) => val * vec.values[index]);\n return this;\n }", "function getMicePairs()\n{\n\tvar micePairs = [mice[0],mice[1],mice[0],mice[2],mice[0],mice[3],mice[1],mice[2],mice[2],mice[3],mice[1],mice[4],mice[2],mice[4],mice[3],mice[4]];\n\treturn micePairs;\n}", "function cartesianProduct(arr1, arr2) {\n let result = [];\n for (let i = 0; i < arr1.length; i++) {\n let partial = 0;\n for (let j = 0; j < arr1[0].length; j++) {\n partial += arr1[i][j] * arr2[j]\n }\n result.push(partial)\n }\n return result\n}", "function doublesAndIndex(nums) {\n return nums.map(function (number,index){\n ((number * 2 ) * index)\n })\n}", "function multiple(){\n results.value = Number(a.value) * Number(b.value);\n }", "function products(arr){\n let newArr = []\n let p ;\n for (let i=0;i<arr.length;i++){\n p=1\n for (let j=0;j<arr.length;j++){\n if (i !== j){\n p = p * arr[j]\n }\n }\n newArr.push(p)\n }\n return newArr\n}", "function productOfArray(arr) {\n \n}", "function mult(x, y) {\n var ans = expand(x, x.length + y.length);\n mult_(ans, y);\n return trim(ans, 1);\n }", "multiply() {\n\t\treturn this.numbers.map((number) => number * this.mulitplyBy);\n\t}", "function setmulvec(dest, a, b){\n for(var i = a.length; i--;) dest[i] = a[i] * b[i];\n}", "function _vecInContext(v, m) {\n return [\n v[0] * m[0] + v[1] * m[4] + v[2] * m[8],\n v[0] * m[1] + v[1] * m[5] + v[2] * m[9],\n v[0] * m[2] + v[1] * m[6] + v[2] * m[10]\n ];\n }", "function addmulvec(dest, a, b){\n for(var i = a.length; i--;) dest[i] += a[i] * b[i];\n}", "cartesianProduct (otherSet) {\n var product = [];\n\n for (var elem of this) {\n for (var ind of otherSet) {\n var s = [];\n s.push(elem);\n s.push(ind);\n product.push(s);\n }\n }\n\n return product;\n }", "function multiply(numbers){\n return numbers.reduce((a,b) => a * b);\n}", "function multiplyArray(array, number) {\n var multArray = array.map(function(i){\n return i*number;\n })\n return multArray\n}", "function makePairs(names) {\n\tlet result = [];\n\tlet pairs = [];\n\n\twhile(names.length > 1) {\n\t\tpairs.push(names.pop());\n\t\tpairs.push(names.pop());\n\t\tresult.push(pairs);\n\t\tpairs = [];\n\t}\n\n\tif (names.length) {\n\t\tresult.push([names.pop()])\n\t}\n\n\treturn result;\n}", "function multiply(myNumbers, number) {\n let result = [];\n\n for (let ind = 0; ind < myNumbers.length; ind += 1) {\n result.push(myNumbers[ind] * number);\n }\n\n return result;\n}", "function doubleValues(arr){\n let newArr = [];\n arr.forEach(function(value) {\n newArr.push(value * 2);\n });\n return newArr;\n }", "function multiplyArray(numbers) {\n return numbers.reduce((acc, curr) => {\n return acc * curr;\n })\n }", "function multiplyList(array1, array2) {\n return array1.reduce((acc, curr, index) => {\n return [...acc, curr * array2[index]]\n }, []);\n}", "function sc_multi() {\n var product = 1;\n for (var i = 0; i < arguments.length; i++)\n\tproduct *= arguments[i];\n return product;\n}", "function elementsTimesTwo(element){\n //returns an array with each value multiplied by 2\n var newElement = [];//note, believe this isn't needed, could just return element w/out need to push\n for (let i = 0; i < element.length; i++) {\n element[i] *= 2;\n newElement.push(element[i]);\n }\n return newElement;\n}", "function productOfArray(arr){\n\n\n function helper(Arrinp){\n if(Arrinp.length === 0) return 1;\n return Arrinp[0] * helper(Arrinp.slice(1));\n }\n\n return helper(arr);\n}", "function cartesian(...sets) {\n let tempProduct = sets[0];\n\n for (let i = 1; i < sets.length; i++) {\n tempProduct = cartProduct(tempProduct, sets[i]);\n }\n\n return tempProduct;\n}", "function inner_product(first_vector , second_vector){\n // Returns the inner product of two vectors\n let sum = 0;\n for (let i=0; i<2; i++) {\n sum += first_vector[i] * second_vector[i];\n }\n return sum;\n}", "function multiply(m, v)\r\n{\r\n var vv=vec4(\r\n m[0][0]*v[0] + m[0][1]*v[1] + m[0][2]*v[2]+ m[0][3]*v[3],\r\n m[1][0]*v[0] + m[1][1]*v[1] + m[1][2]*v[2]+ m[1][3]*v[3],\r\n m[2][0]*v[0] + m[2][1]*v[1] + m[2][2]*v[2]+ m[2][3]*v[3],\r\n m[3][0]*v[0] + m[3][1]*v[1] + m[3][2]*v[2]+ m[3][3]*v[3]);\r\n return vv;\r\n}", "function _vecInContext(v, m) {\n\t return [\n\t v[0] * m[0] + v[1] * m[4] + v[2] * m[8],\n\t v[0] * m[1] + v[1] * m[5] + v[2] * m[9],\n\t v[0] * m[2] + v[1] * m[6] + v[2] * m[10]\n\t ];\n\t }", "static cartesianProduct(a, b) {\n b = b ? b : a;\n const cartesianProductSet = new XSet();\n for (const aValue of a) {\n for (const bValue of b) {\n cartesianProductSet.add([aValue, bValue]);\n }\n }\n return cartesianProductSet;\n }", "function mult3(arr){\n var newArray = []\n for(let i=0;i<arr.length;i++){\n newArray.push(arr[i] * 3)\n }\n return newArray\n}", "function matmp(a,b){\n\tvar ret = new Array(6);\n\tfor(var i = 0; i < 3; i++){\n\t\tfor(var j = 0; j < 2; j++){\n\t\t\tvar val = 0;\n\t\t\tfor(var k = 0; k < 2; k++)\n\t\t\t\tval += a[k * 2 + j] * b[i * 2 + k];\n\t\t\tif(i === 2)\n\t\t\t\tval += a[2 * 2 + j];\n\t\t\tret[i * 2 + j] = val;\n\t\t}\n\t}\n\treturn ret;\n}", "function doubleAndReturnArgs(arr, ...args){\n let arr3 = [];\n for(let i = 0; i<args.length; i++){\n args[i] = args[i]*2;\n arr3.push(args[i]);\n }\n return [...arr, ...arr3];\n}", "function multiplyBy2(arr) {\n return arr.map((item) => item * 2) // new array is created from map.\n\n}", "multiply() {\n return this.nums.map((num) => num * this.multiplyBy);\n }", "function cartesian() {\n var r = [], arg = arguments, max = arg.length-1;\n function helper(arr, i) {\n for (var j=0, l=arg[i].length; j<l; j++) {\n var a = arr.slice(0); // clone arr\n a.push(arg[i][j]);\n if (i==max)\n r.push(a);\n else\n helper(a, i+1);\n }\n }\n helper([], 0);\n return r;\n }", "function getProductsOfAllIntsExceptAtIndex (ints) {\n if (ints.length < 2) {\n throw new Error(\"Getting the product of numbers at other indices requires at least 2 numbers\");\n }\n var products = [], curProduct = 1;\n for (var i = 0; i < ints.length; i++) {\n products[i] = curProduct;\n curProduct *= ints[i];\n }\n curProduct = 1;\n for (var j = ints.length - 1; j >= 0; j--) {\n products[j] *= curProduct;\n curProduct *= ints[j];\n }\n return products;\n}", "function multiply(numbers, multiplier) {\n let multipliedNums = [];\n\n for (let idx = 0; idx < numbers.length; idx++) {\n multipliedNums.push(numbers[idx] * multiplier);\n }\n\n return multipliedNums;\n}", "function doubleValues(num) {\n // console.log(num);\n num.forEach((element) => {\n element += element;\n return element;\n });\n \n}", "function mult_(x,y) {\n var i;\n if (ss.length!=2*x.length)\n ss=new Array(2*x.length);\n copyInt_(ss,0);\n for (i=0;i<y.length;i++)\n if (y[i])\n linCombShift_(ss,x,y[i],i); //ss=1*ss+y[i]*(x<<(i*bpe))\n copy_(x,ss);\n }", "function mul2(first, second) {\n return _pushOperation(\"mul2\", [first, second]);\n}", "function multi4(n1,n2,n3,n4) {\n alert(n1*n2*n3*n4)\n}", "function sc_consStar() {\n var res = arguments[arguments.length - 1];\n for (var i = arguments.length-2; i >= 0; i--)\n\tres = new sc_Pair(arguments[i], res);\n return res;\n}", "function cross(setA, setB){\n\n cross_product = []\n for(i=0; i<setA.length; i++){\n for(j=0; j<setB.length; j++) {\n cross_product = cross_product.concat([[i, j]])\n }\n }\n return cross_product\n}", "function odd_even_product( my_list ) {\n //Insert your code here \n}" ]
[ "0.70968187", "0.6269477", "0.610745", "0.6060162", "0.5912525", "0.5838945", "0.57401896", "0.56858623", "0.56832975", "0.56680566", "0.5546273", "0.5542164", "0.5542164", "0.55360013", "0.5515135", "0.55020374", "0.54868454", "0.54580104", "0.54580104", "0.54431266", "0.5436699", "0.54344183", "0.54335797", "0.54264396", "0.541763", "0.54123753", "0.5402872", "0.538774", "0.538774", "0.5378216", "0.5370629", "0.53638244", "0.53594935", "0.5356214", "0.53499603", "0.53487474", "0.53343457", "0.532796", "0.53242767", "0.53146553", "0.52829194", "0.5281751", "0.52752846", "0.52721786", "0.5258224", "0.5231656", "0.5210655", "0.5207423", "0.5206851", "0.52059156", "0.5194959", "0.51925975", "0.519115", "0.51858395", "0.5185667", "0.5178037", "0.51772135", "0.5176897", "0.5168924", "0.5166974", "0.5165116", "0.51634175", "0.515774", "0.51575774", "0.5140462", "0.51290977", "0.5125531", "0.51219046", "0.5117328", "0.5113895", "0.51119024", "0.51046", "0.51027364", "0.5102597", "0.50943875", "0.5091586", "0.50844735", "0.50836366", "0.50806403", "0.50798696", "0.5079825", "0.5075", "0.50711226", "0.5062773", "0.50548625", "0.50527334", "0.5044551", "0.5043848", "0.5037841", "0.5034438", "0.50336474", "0.50295943", "0.5026645", "0.5026587", "0.50255185", "0.5019783", "0.50172025", "0.50146234", "0.5012045", "0.501178", "0.5010921" ]
0.0
-1
Example: "Vec.of( 1,2,3 ).scale( 2 )" overwrites the Vec with [ 2,4,6 ].
times(s) { return this.map(x => s * x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scale(vec, setTo) {\n\t\tthis.transform(this.transformation.scale, vec, setTo);\n\t}", "scale(s) {\r\n this.forEach((x, i, a) => a[i] *= s);\r\n }", "scale (vec, m) {\n\t return [vec[0] * m, vec[1] * m];\n\t }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(val) {\n this._scale = val;\n return this;\n }", "scale(val) {\n this._scale = val;\n return this;\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scaleVec(scale)\n {\n var output = Vector2D.zero;\n output.x = scale * this.x;\n output.y = scale * this.y;\n\n return output;\n }", "ScaleBy(scaleFactor)\n {\n let scaled=new Vector(this.x*scaleFactor,this.y*scaleFactor);\n return scaled;\n }", "scale(sx, sy, sz){\n let e = this.elements;\n e[0] *= sx; e[4] *= sy; e[8] *= sz;\n e[1] *= sx; e[5] *= sy; e[9] *= sz;\n e[2] *= sx; e[6] *= sy; e[10] *= sz;\n e[3] *= sx; e[7] *= sy; e[11] *= sz;\n return this;\n }", "function Scale () {}", "function scaleVec2(vec, scale) {\n vec.set_x( scale * vec.get_x() );\n vec.set_y( scale * vec.get_y() );\n}", "static setScaleV3(xyz, s) {\nxyz[0] *= s;\nxyz[1] *= s;\nxyz[2] *= s;\nreturn xyz;\n}", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scaleTo() {}", "function normalizeAndRescale(obj, newScale)\r\n{\r\n var scale = getMaxSize(obj); // Available in 'utils.js'\r\n obj.scale.set(newScale * (1.0/scale),\r\n newScale * (1.0/scale),\r\n newScale * (1.0/scale));\r\n return obj;\r\n}", "function normalizeAndRescale(obj, newScale)\r\n{\r\n var scale = getMaxSize(obj); // Available in 'utils.js'\r\n obj.scale.set(newScale * (1.0/scale),\r\n newScale * (1.0/scale),\r\n newScale * (1.0/scale));\r\n return obj;\r\n}", "function scale(...args) {\n if (args.length === 0) {\n return scale(1);\n }\n return {\n id: \"scale\",\n scale: vec2(...args),\n };\n }", "function scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "setScale(sx, sy, sz){\n let e = this.elements;\n e[0] = sx; e[4] = 0; e[8] = 0; e[12] = 0;\n e[1] = 0; e[5] = sy; e[9] = 0; e[13] = 0;\n e[2] = 0; e[6] = 0; e[10] = sz; e[14] = 0;\n e[3] = 0; e[7] = 0; e[11] = 0; e[15] = 1;\n return this;\n }", "function scale(el, val) {\n el.style.mozTransform = el.style.msTransform = el.style.webkitTransform = el.style.transform = 'scale3d(' + val + ', ' + val + ', 1)';\n}", "function normalizeAndRescale(obj, newScale)\n{\n var scale = getMaxSize(obj); \n obj.scale.set(newScale * (1.0/scale),\n newScale * (1.0/scale),\n newScale * (1.0/scale));\n return obj;\n}", "function normalizeAndRescale(obj, newScale) {\n var scale = getMaxSize(obj); // Available in 'utils.js'\n obj.scale.set(newScale * (1.0 / scale),\n newScale * (1.0 / scale),\n newScale * (1.0 / scale));\n return obj;\n}", "function Scale() {\n var domain = new Normalizer(0, 1);\n var range = new Interpolater(0, 1);\n var s = function(val) {\n return range(domain(val));\n };\n s.domain = function(min, max) {\n if (!arguments.length) return domain;\n domain = new Normalizer(min, max)\n return s\n };\n s.range = function(min, max, clamp) {\n if (!arguments.length) return range;\n range = new Interpolater(min, max, clamp)\n return s\n };\n return s;\n}", "static scale(c,v) {\r\n try {\r\n if (!(typeof(c) === \"number\") || !(v instanceof Vector)){\r\n //throw \"Vector.scale: malformed parameter\";\r\n }\r\n\r\n else\r\n return(new Vector(c*v.x,c*v.y,c*v.z));\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "static scale(c,v) {\n try {\n if (!(typeof(c) === \"number\") || !(v instanceof Vector))\n throw \"Vector.scale: malformed parameter\";\n else\n return(new Vector(c*v.x,c*v.y,c*v.z));\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "function scale(vec, scalar) {\n var result = [];\n var i;\n for (i = 0; i < vec.length;i++) {\n result[i] = vec[i] * scalar;\n }\n return result;\n}", "function scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n}", "function scale( s, v1 ) { return [ s * v1[0], s * v1[1], s * v1[2] ]; }", "function scale(vector, factor) {\n\treturn [vector[0]*factor, vector[1] * factor];\n}", "rescale(scale) {\n this.scale = scale;\n }", "function __scale(s) {\n if (typeof s === 'number') {\n mat4.scale(__scaleMatrix, __scaleMatrix, vec3.fromValues(s, s, s));\n }\n\n __shouldUpdateMatrices = true;\n\n return this;\n }", "static scaleQV(q, s) {\nvar qv;\nqv = this.copyOfQV(q);\nreturn this.setScaleQV(qv, s);\n}", "replaceScale(scaleName, newScaleConstructor) {\n const scale = newScaleConstructor();\n scale.range(this[scaleName].range())\n .domain(this[scaleName].domain());\n this[scaleName] = scale;\n this.update();\n\n return this;\n }", "scale(scale) {\n this._height *= scale;\n this._width += scale;\n }", "transformVector(vector)\n {\n vector = vector.scaleUniform(this.tileset.size);\n vector = super.transformVector(vector);\n return vector;\n }", "setScale(scale) {\n // Save the new scale\n this.scale = scale\n this.tModelToWorld.setScale(scale, scale)\n }", "function scaleAll2(newScale){\r\n if(newScale>MIN_SCALE && newScale<MAX_SCALE){\r\n canvas.forEachObject(function(item, index, arry){\r\n if(!item.isTag){\r\n item.scale(newScale);\r\n if(item != fabImg){\r\n //When scaling move element so that distance of elements for center is always in portion wiht scale\r\n var x = ((item.getLeft() - AnnotationTool.originX)/AnnotationTool.SCALE) * newScale + AnnotationTool.originX;\r\n var y = ((item.getTop() - AnnotationTool.originY)/AnnotationTool.SCALE) * newScale + AnnotationTool.originY;\r\n if(item.elementObj){\r\n item.elementObj.setItemPos(x, y, newScale);\r\n }\r\n }\r\n \r\n }\r\n });\r\n canvas.renderAll();\r\n AnnotationTool.SCALE = newScale;\r\n }\r\n }", "function scale_vector(S, V){\n var final = [];\n for(var i = 0; i<V.length; i++){\n final.push(V[i] * S);\n\n }\n return final;\n}", "transform(type, value) {\n switch (type) {\n case 'scale':\n this.scale = value;\n break;\n }\n }", "scaleAndAddToRef(scale, result) {\n result.r += this.r * scale;\n result.g += this.g * scale;\n result.b += this.b * scale;\n result.a += this.a * scale;\n return this;\n }", "function vecScale(x, c) {\n for (var i = 0; i < x.length; i++) {\n x[i] *= c;\n };\n return x;\n}", "static setScaleQV(qv, s) {\nqv[0] *= s;\nqv[1] *= s;\nqv[2] *= s;\nqv[3] *= s;\nreturn qv;\n}", "ScaleMe(multiplier)\n {\n this.x*=multiplier;\n this.y*=multiplier;\n }", "scale(sx, sy, origin, options = {}) {\n return this.applyToPoints((p) => {\n return Point.create(p).scale(sx, sy, origin).toJSON();\n }, options);\n }", "function updateScale() {\n circle.css(toVendorCSS({\n transform : $mdUtil.supplant('scale( {0} )',[getDiameterRatio()])\n }));\n }", "setScale(xscale, yscale) {\n this.a = xscale\n this.e = yscale\n }", "normalize() {\r\n this.scale(1 / this.norm());\r\n }", "function SC(dims) {\n return function (values) {\n return function (object) {\n return object.clone().scale(dims, values);\n };\n };\n }", "setScale(scale) {\n if(!scale.type || scale.type !== \"Vec2\") {\n if(!this.renderer.production) {\n throwWarning(this.type + \": Cannot set scale because the parameter passed is not of Vec2 type:\", scale);\n }\n\n return;\n }\n\n scale.sanitizeNaNValuesWith(this.scale).max(tempScale.set(0.001, 0.001));\n\n // only apply if values changed\n if(scale.x !== this.scale.x || scale.y !== this.scale.y) {\n this.scale.set(scale.x, scale.y, 1);\n\n this._applyScale();\n }\n }", "function scaleValue(v, s1, e1, s2, e2) {\n\treturn (v - s1) / (e1 - s1) * (e2 - s2) + s2;\n}", "function scaleBy(point, value) {\n point.x *= value;\n point.y *= value;\n }", "scale(sx, sy, sz) {\r\n return this.transform(new Matrix([sx,0,0,0,0,sy,0,0,0,0,sz,0,0,0,0,1],4,4));\r\n }", "Scale(scalar) {\n\t\tconst outX = this.X * scalar\n\t\tconst outY = this.Y * scalar\n\t\treturn Point(outX, outY)\n\t}", "function scale(s) {\n return \" scale(\" + s + \") \";\n }", "static setInverseScaleV3(xyz, s) {\nxyz[0] /= s;\nxyz[1] /= s;\nxyz[2] /= s;\nreturn xyz;\n}", "set currentScale(newScale) {\n if (this._zoomDirty) {\n this._updateMatrix();\n }\n // We use dimensional analysis to set the scale. Remember we can't\n // just set the scale absolutely because atSCTransform is an accumulating matrix.\n // We have to take its current value and compute a new value based\n // on the passed in value.\n // Also, I can use atSCTransform.a because I don't allow rotations within in the game,\n // so the diagonal components correctly represent the matrix's current scale.\n // And because I only perform uniform scaling I can safely use just the \"a\" element.\n const scaleFactor = newScale / this._atSCTransform.a;\n this._scaleX = scaleFactor;\n this._scaleY = scaleFactor;\n this._zoomDirty = true;\n }", "processScale(context, result, inputParams, index) {\n var _a;\n result.element = (_a = result.element) !== null && _a !== void 0 ? _a : [];\n const element = inputParams.element;\n const point = inputParams.center;\n const factor = +inputParams.factor;\n const matrix = new SVG.Matrix(element);\n matrix.scale(factor, factor, point.x, point.y);\n this.applyMatrix(element, matrix);\n result.element.push(element);\n }", "setScale(x,y,z=this.scale.z){\n this.scale.x = x;\n this.scale.y = y;\n }", "function scale(x,y) {\n matrix[0] *= x;\n matrix[1] *= x;\n matrix[2] *= y;\n matrix[3] *= y;\n }", "function scale(point){\n\t\tpoint.x =point.x *xscale;\n\t\tpoint.y= point.y *yscale ;\n\t}", "function extendScale(scale) {\n var extendedScale = function(y) {\n if (y === null) {\n return null;\n }\n return scale(y);\n };\n extendedScale.__proto__ = scale;\n return extendedScale;\n }", "_applyScale(point) {\n let scale = this.getScale();\n return {\n x: point.x * scale,\n y: point.y * scale,\n z: point.z * scale\n };\n }", "scale(sx, sy, origin = new Point()) {\n const ref = Point.create(origin);\n this.x = ref.x + sx * (this.x - ref.x);\n this.y = ref.y + sy * (this.y - ref.y);\n return this;\n }", "function scaleElement(element, scaleFactor) {\n\telement.css(\"-webkit-transform\", \"scale(\" + scaleFactor + \",\" + scaleFactor + \")\");\n\telement.css(\"-moz-transform\", \"scale(\" + scaleFactor + \",\" + scaleFactor + \")\");\n\telement.css(\"transform\", \"scale(\" + scaleFactor + \",\" + scaleFactor + \")\");\n}", "scale() {\n this.p.scale(this._scaleFactor);\n }", "scale() {\n this.p.scale(this._scaleFactor);\n }", "scale() {\n this.p.scale(this._scaleFactor);\n }", "static normalize(v) {\r\n try {\r\n if (!(v instanceof Vector))\r\n throw \"Vector.normalize: parameter not a vector\";\r\n else {\r\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\r\n return(Vector.scale(lenDenom,v));\r\n }\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "function scale() {\n\tvar domain = [];\n\tvar range = [];\n\n\tvar _scale = function(x) {\n\t\tif (domain.length < 2) {return _scale;}\n\t\tif (range.length < 2) {return _scale;}\n\n\t\tx = Math.max(x, domain.min);\n\t\tx = Math.min(x, domain.max);\n\t\tvar x2 = distance(domain[0], x);\n\t\tvar rangeVal = x2/domain.distance * range.distance;\n\t\treturn range[0] + rangeVal;\n\t};\n\tfunction distance(x1, x2) {\n\t\tif (x1 instanceof Array) {\n\t\t\tx2 = x1[1];\n\t\t\tx1 = x1[0];\n\t\t}\n\t\t// return Math.max(x1, x2) - Math.min(x1, x2);\n\t\treturn x2 - x1;\n\t}\n\n\tfunction initDistance(obj) {\n\t\tobj.distance = distance(obj);\n\t\tobj.min = Math.min.apply(Math, obj);\n\t\tobj.max = Math.max.apply(Math, obj);\n\t\treturn obj;\n\t}\n\t_scale.domain = function(/* start, end */) {\n\t\tdomain = Array.prototype.slice.call(arguments, 0, 2);\n\t\tinitDistance(domain);\n\t\treturn _scale;\n\t};\n\t_scale.range = function(/* start, end */) {\n\t\trange = Array.prototype.slice.call(arguments, 0, 2);\n\t\tinitDistance(range);\n\t\treturn _scale;\n\t};\n\treturn _scale;\n}", "setScale(xScale, yScale) {\n this.m = [[xScale, 0], [0, yScale]];\n return this;\n }", "static normalize(v) {\n try {\n if (!(v instanceof Vector))\n throw \"Vector.normalize: parameter not a vector\";\n else {\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\n return(Vector.scale(lenDenom,v));\n }\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "function scale_v2(v, l) {\n var len = length_v2(v);\n if (len == 0) return v;\n l /= len;\n return [v[0] * l, v[1] * l];\n }", "get scaled() { return this._scaled; }", "get scaled() { return this._scaled; }", "function scale(scale)\n{\n // Loop through each value pair\n for (var i = 0, size = positions.length; i < size; i+=2)\n {\n // Get x and y coordinates\n var x = positions[i];\n var y = positions[i+1];\n\n // Multiply x and y valu by scale value\n x += x * scale;\n y += y * scale;\n\n // Set position values\n positions[i] = x;\n positions[i+1] = y;\n }\n\n // Redraw the image\n loadImage();\n}", "onUpdateScale() {\n this.wall.scale.set(this.size.x, this.size.y, 1);\n }", "function scaledVec2(vec, scale) {\n return new b2Vec2(scale * vec.get_x(), scale * vec.get_y());\n}", "scaled(scale) {\n let vertices = this.vertices.map(\n ([x, y, z]) => [x * scale, y * scale, z * scale]);\n return new Mesh(vertices, this.faces, this.faceNormals, this.vertexNormals, false);\n }", "static Scale() {}", "function writescale(scale) { \n if (_$(\"scaleform\")) _$(\"scaleform\").scale.value = scale;\n}", "move() {\n console.log(this.scale);\n var self = this; // vat that = this; var _this = this;\n this.numbers = this.numbers.map(function(element){\n return element * self.scale;\n })\n }", "scale(scaleAmount) {\n\n this.w *= scaleAmount;\n this.h *= scaleAmount;\n this.x = this.center.x - this.w / 2;\n this.y = this.center.y - this.h / 2;\n\n this.calculateVectorsAndSetShape();\n this.resetFixture();\n }", "function scalePoint(point, scale, originPoint) {\n var distanceFromOrigin = point - originPoint;\n var scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}", "function scalePoint(point, scale, originPoint) {\n var distanceFromOrigin = point - originPoint;\n var scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}", "function scalePoint(point, scale, originPoint) {\n var distanceFromOrigin = point - originPoint;\n var scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}", "function scalePoint(point, scale, originPoint) {\n var distanceFromOrigin = point - originPoint;\n var scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}", "function scalePoint(point, scale, originPoint) {\n var distanceFromOrigin = point - originPoint;\n var scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}", "normalize() {\n let scale = 1.0 / this.length();\n this.xyz = this.xyz.multiplyScalar(scale);\n this.w *= scale;\n return this;\n }", "scale(origin, dx, dy, dz) {\n return new Shape(this.paths.map(function(path) {\n return path.scale(origin, dx, dy, dz);\n }));\n }", "_createScaleDebounced() {\n var scale;\n\n if(this.scale === 'linear') {\n scale = Px.d3.scaleLinear().clamp(true);\n } else if(this.scale === 'logarithmic') {\n scale = Px.d3.scaleLog().base(this.base).clamp(true);\n } else if(this.scale === 'exponential') {\n scale = Px.d3.scalePow().exponent(this.exponent).clamp(true);\n }\n\n // TODO Quantize, Ordinal\n\n this.set('_scale', scale);\n }", "scaleToRef(scale, result) {\n result.r = this.r * scale;\n result.g = this.g * scale;\n result.b = this.b * scale;\n result.a = this.a * scale;\n return this;\n }", "static scale(v)\n\t{\n\t\t// TODO construct a 4x4 scale matrix for a scale by the\n\t\t// 3D vector v\n\t\treturn new Float32Array([v.x, 0, 0, 0, 0, v.y, 0, 0, 0, 0, v.z, 0, 0, 0, 0, 1]);\n\t}" ]
[ "0.70159477", "0.68541026", "0.6731656", "0.6703979", "0.6703979", "0.6703979", "0.6703979", "0.66489094", "0.66489094", "0.6631511", "0.6631511", "0.6631511", "0.6631511", "0.6631511", "0.66061157", "0.6575169", "0.6559048", "0.6556549", "0.6525036", "0.6464183", "0.64539045", "0.64539045", "0.64276695", "0.63513565", "0.63513565", "0.6284332", "0.62438136", "0.6233357", "0.62310886", "0.6199649", "0.6185976", "0.6180444", "0.61718327", "0.61570436", "0.61497635", "0.6146701", "0.6139663", "0.6137337", "0.6124711", "0.6112074", "0.60668474", "0.6064242", "0.60192513", "0.6000583", "0.5991873", "0.59860927", "0.5931559", "0.59153974", "0.5911023", "0.58944404", "0.58865696", "0.585177", "0.5846277", "0.5836213", "0.5825603", "0.57905036", "0.57881695", "0.5773174", "0.5772955", "0.57724094", "0.5771419", "0.5765139", "0.5744909", "0.5737863", "0.572633", "0.5722099", "0.5722045", "0.5712134", "0.5702142", "0.56868356", "0.5678001", "0.5661133", "0.56534475", "0.5639214", "0.5639214", "0.5639214", "0.562121", "0.5607241", "0.560559", "0.56032914", "0.56029916", "0.5594837", "0.5594837", "0.55755985", "0.5556901", "0.55214965", "0.55178285", "0.55173683", "0.5516817", "0.5504769", "0.55024743", "0.5501888", "0.5501888", "0.5501888", "0.5501888", "0.5501888", "0.5482703", "0.54760927", "0.54740965", "0.5469501", "0.544189" ]
0.0
-1
Example: "Vec.of( 1,2,3 ).times( 2 )" returns the Vec [ 2,4,6 ].
randomized(s) { return this.map(x => x + s * (Math.random() - .5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "times(s) {\r\n return this.map(x => s * x);\r\n }", "multiply(times) {\n\n }", "times(n) {\n return (f) => {\n Array(n).fill().map((_, i) => f(i));\n }\n }", "function multiplyVect(vector, scalar) {\n return [ scalar * vector[0],\n scalar * vector[1],\n scalar * vector[2]\n ];\n}", "multiply() {\n return this.nums.map((num) => num * this.multiplyBy);\n }", "function timesTwo(el){return el * 2}", "multiply(number) {\r\n return new Vector(...new Array(this.getDimensions()).fill(undefined).map((e, i) => this.values[i] * number));\r\n }", "function multip_2(param) {\n return param.map((cur) => {\n return cur * 2;\n })\n}", "multiply() {\n\t\treturn this.numbers.map((number) => number * this.mulitplyBy);\n\t}", "times(b) {\r\n const len = b.length; // Usage: M.times(b) where b can be a scalar, a Vec, or another Mat. Returns a new Mat.\r\n if (typeof len === \"undefined\") return this.map(r => r.map(x => b * x)); // Mat * scalar case.\r\n const len2 = b[0].length;\r\n if (typeof len2 === \"undefined\") {\r\n let result = Vec.of(...new Array(this.length)); // Mat * Vec case.\r\n for (var r = 0; r < len; r++) result[r] = b.dot(this[r]);\r\n return result;\r\n }\r\n let result = Mat.from(new Array(this.length));\r\n for (let r = 0; r < this.length; r++) // Mat * Mat case.\r\n {\r\n result[r] = new Array(len2);\r\n for (let c = 0, sum = 0; c < len2; c++) {\r\n result[r][c] = 0;\r\n for (let r2 = 0; r2 < len; r2++)\r\n result[r][c] += this[r][r2] * b[r2][c];\r\n }\r\n }\r\n return result;\r\n }", "multiply() {\n return this.numbers.map((number) => number * this.multiplyBy);\n }", "multiplyMany(...numbers) {\n\n }", "function _vecInContext(v, m) {\n\t return [\n\t v[0] * m[0] + v[1] * m[4] + v[2] * m[8],\n\t v[0] * m[1] + v[1] * m[5] + v[2] * m[9],\n\t v[0] * m[2] + v[1] * m[6] + v[2] * m[10]\n\t ];\n\t }", "function multiply(numbers, multiplier) {\n let numbersClone = numbers.map(function(number) {\n return number * multiplier;\n });\n\n return numbersClone;\n}", "function _vecInContext(v, m) {\n return [\n v[0] * m[0] + v[1] * m[4] + v[2] * m[8],\n v[0] * m[1] + v[1] * m[5] + v[2] * m[9],\n v[0] * m[2] + v[1] * m[6] + v[2] * m[10]\n ];\n }", "multiply(multiplier) {\n return new Vector(this.x * multiplier, this.y * multiplier);\n }", "static multiplyScalar(v, s) {\n\t\treturn new vector(v.x*s, v.y*s);\n\t}", "multiply() {\n return this.numbers.map((multiplied) => this.multiplyBy * multiplied);\n }", "function square(...a) {\n return a.map( e => e * 2) //collects all values of a as a variable\n}", "multiply(){\n return this.numbers.map( (num) => this.multiplyBy * num);\n }", "function multiplyByTwo(...numbers) {\r\n return numbers.map(number => number * 2);\r\n}", "function repeatedly(times, fun) {\n return _.map(_.range(times), fun);\n}", "function repeat(times, proc)\n{\n\tvar arr = []\n\tfor (var i = 0; i < times; i++)\n\t\tarr[i] = proc()\n\treturn arr\n}", "function multiplyString(string, times) {\n let resultingArray = [];\n for (let i = 0; i < times; i++) {\n resultingArray.push(string);\n }\n return resultingArray;\n}", "function multiplyByTwo(array) {\n let newArray = []\n\n for(const number of array) {\n newArray.push(number * 2)\n }\n\n return newArray\n}", "function strMultiply(str, times) {\n let newArray = \"\";\n for (let i = 0; i < times; i++) {\n newArray += str;\n }\n return newArray\n}", "function elementsTimesTwo(element){\n //returns an array with each value multiplied by 2\n var newElement = [];//note, believe this isn't needed, could just return element w/out need to push\n for (let i = 0; i < element.length; i++) {\n element[i] *= 2;\n newElement.push(element[i]);\n }\n return newElement;\n}", "function makeTimesMultiple(arrayOfNs) {\n\treturn arrayOfNs.map(function(n) {\n\t\treturn function(value) {\n\t\t\treturn times(value, n);\n\t\t};\n\t});\n}", "function addMultipleVector(a, multiple, b) {\r\n return [a[0] + multiple * b[0], \r\n a[1] + multiple * b[1]];\r\n}", "function times(num1, num2) {\n return num1 * num2;\n}", "function times(num1, num2) {\n return num1 * num2;\n}", "function times(number) {\n return function(a) {\n return number * a;\n };\n}", "cross(b) // Use only on 3x1 Vecs. Example: \"Vec.of( 1,0,0 ).cross( Vec.of( 0,1,0 ) )\" returns the Vec [ 0,0,1 ]. \r\n {\r\n return Vec.of(this[1] * b[2] - this[2] * b[1], this[2] * b[0] - this[0] * b[2], this[0] * b[1] - this[1] * b[0]);\r\n }", "function something(multiplier, ...elements){ // if the ... is used inside a function it will be treated as REST and not SPREAD operator\n return elements.map(element=>multiplier * element);\n}", "function sc_vector() {\n var a = new sc_Vector();\n for (var i = 0; i < arguments.length; i++)\n\ta.push(arguments[i]);\n return a;\n}", "function multVector (vec1, multiplier) {\n return [vec1[X] * multiplier, vec1[Y] * multiplier];\n}", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "prod_esc(vec){ return (vec.x*this.x + vec.y*this.y + vec.z*this.z);}", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "function replicate(times, number){\n\tif(times <= 0) return [];\n\n\treturn [number].concat(replicate(times - 1, number));\n}", "function replicate(times, number) {\n return times > 0 ? Array(times).fill(number) : []\n}", "function doTimes(numTimes, fn) {\n return _.map(_.range(numTimes), (i)=>fn(i));\n}", "static ones() {\n\n // Return a Vector with 1, 1, 1\n return new Vector([1, 1, 1]);\n }", "function multiplyArray(array, number) {\n var multArray = array.map(function(i){\n return i*number;\n })\n return multArray\n}", "function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n }", "function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n }", "function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n }", "function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n }", "function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n }", "function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n }", "function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n }", "function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n }", "function times(n, iteratee, context) {\n var accum = Array(Math.max(0, n));\n iteratee = optimizeCb(iteratee, context, 1);\n for (var i = 0; i < n; i++) accum[i] = iteratee(i);\n return accum;\n }", "function doubleThemImmutable(item){\n var newList = [];\n for (var i=0; i<list.length; i++){\n newList[i] = list[i] * 2;\n }\n return newList;\n}", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "static sq(v) {\n\t\treturn new vector(v.x*v.x, v.y*v.y)\n\t}", "function makeTimes(n) {\n\treturn function(value) {\n\t\treturn times(value, n);\n\t}\n}", "function squareNums(numbers) {\n\n numbers = numbers.map(num => num * num);\n return numbers;\n}", "function maps(x){\n let newArray = [];\n for(let i = 0; i < x.length; i++){\n newArray.push(x[i] * 2);\n };\n return newArray;\n}", "function double(arr){\n newArr = []\n for (let i = 0; i < arr.length; i++){\n newArr.push(arr[i]*2)\n }\n return newArr\n}", "function vec( n, n2=n ) { return {x: n, y: n2}; }", "function multiples (n,m){\n const multArr = new Array(n)\n //numbers increase from 1*m to n*m\n return multArr\n\n}", "scale (vec, m) {\n\t return [vec[0] * m, vec[1] * m];\n\t }", "function repeat (elem, times) {\n var ret = [ elem ]\n for(var i = 1; i < times; i++) ret.push( elem )\n return ret\n}", "function repeat(item, times) {\n const newArr = [];\n for (let i = 0; i < times; i++) {\n newArr.push(item);\n }\n return newArr;\n}", "Multiply(values) {\n let vec = new VecX(values);\n while (vec.size < this.size) {\n vec.values.push(vec.values[0]);\n }\n ;\n this.values = this.values.map((val, index) => val * vec.values[index]);\n return this;\n }", "function mul(x){\n\treturn function(y){\n\t\treturn [x*y, function(z){\n\t\t\treturn x*y + z;\n\t\t}];\n\t}\n}", "multiply() {\n this.result = arguments[0];\n\n for (let i = 0; i < arguments.length; i++) {\n this.result *= arguments[i];\n }\n return this.result;\n }", "function times(value, n) {\n\treturn value * n;\n}", "function squares(array) {\n return array.map(num => num ** 2);\n}", "function multTwo(array){\n return array.map((value) => value *2)\n }", "function multiplyBy2(arr) {\n return arr.map((item) => item * 2) // new array is created from map.\n\n}", "function multiplyByTwo(arr) {\n arr = arr.map(function (a) {\n return a*2;\n })\n return arr;\n}", "function muldiv(){\n memory.map((each, index)=>{\n switch(each){\n \n case \"*\":\n var memres = memory[index-1] * memory[index+1]\n return memory.splice(index-1,3,memres)\n break;\n case \"/\":\n var memres = memory[index-1] / memory[index+1]\n return memory.splice(index-1,3,memres)\n break;\n default:\n\n }\n })\n }", "function maps(x){\n return x.map((n) => n * 2);\n}", "function double(arr){\n\nlet result = arr.map((elem)=>{\n return elem * 2\n})\nreturn result;\n}", "function Vx(v,x){\r\n\tvar j=0;\r\n\tvar w = new Array();\r\n\tfor(j=0;j<v.length;j++){\r\n\t\tw[j] = v[j]*x;\r\n\t}\r\n\treturn w;\r\n}", "function scale_vector(S, V){\n var final = [];\n for(var i = 0; i<V.length; i++){\n final.push(V[i] * S);\n\n }\n return final;\n}", "function squares(array) {\n for (let i = 0; i < array.length; i++) {\n array[i] = array[i] * array[i];\n \n }\n return array;\n}", "function multiply(numbers, multiplier) {\n let multipliedNums = [];\n\n for (let idx = 0; idx < numbers.length; idx++) {\n multipliedNums.push(numbers[idx] * multiplier);\n }\n\n return multipliedNums;\n}", "function multiply(a, b) {\n return [a[0] * b[0] + a[1] * b[3], a[0] * b[1] + a[1] * b[4], a[0] * b[2] + a[1] * b[5] + a[2], a[3] * b[0] + a[4] * b[3], a[3] * b[1] + a[4] * b[4], a[3] * b[2] + a[4] * b[5] + a[5]];\n}", "function replicate(times, number) {\n var arr = [number];\n\n if(times<1){\n return [];\n }\n\n return arr.concat(replicate(--times, number));\n}", "function times(count, fn, ...args) {\n const result = [];\n for (let index = 0; index < count; index++) {\n const value = fn(...args);\n if (value !== undefined) {\n result.push(value);\n }\n }\n return result;\n}", "times(multiplier) {\n return new Money(this.amount * multiplier, this.currency);\n }", "function multiply(a, b) {\n return [\n a[0] * b[0] + a[1] * b[3],\n a[0] * b[1] + a[1] * b[4],\n a[0] * b[2] + a[1] * b[5] + a[2],\n a[3] * b[0] + a[4] * b[3],\n a[3] * b[1] + a[4] * b[4],\n a[3] * b[2] + a[4] * b[5] + a[5]\n ];\n}", "function multiply(a, b) {\n return [\n a[0] * b[0] + a[1] * b[3],\n a[0] * b[1] + a[1] * b[4],\n a[0] * b[2] + a[1] * b[5] + a[2],\n a[3] * b[0] + a[4] * b[3],\n a[3] * b[1] + a[4] * b[4],\n a[3] * b[2] + a[4] * b[5] + a[5]\n ];\n}", "function maps(x){\n var doubledArr = x.map(function(x) {\n return x * 2});\n return doubledArr;\n}", "function multiply_point(M,V){\n var result = new Array(4);\n //Go through M \n for (var i=0; i < 4; i++){\n var vec1 = M.slice(0+i*4,4+i*4);\n\n result[i]= dot(vec1,V);\n }\n return result;\n\n}", "static Multiply(vec1, vec2) {\n vec1 = new Vec2(vec1);\n vec2 = new Vec2(vec2);\n return new Vec2(vec1.x * vec2.x, vec1.y * vec2.y);\n }", "function double(arr) {\n let newArr = [];\n // one new arr\n for (let i = 0; i < arr.length; i++) {\n newArr.push(2 * arr[i]);\n // multiples each item and pushes it to the new array\n }\n return newArr;\n}", "function arrayMultiplyAgain(num, arr) {\n const newArr = arr.map(item => item * num)\n return newArr\n}", "function multiplyByTwo(arr) {\n let newArray = [];\n for (let i = 0; i < arr.length; i++) {\n newArray.push(arr[i] * 2);\n }\n return newArray;\n}", "function newArr (firstnum, secondnum){\n return firstnum * secondnum;\n}" ]
[ "0.72596514", "0.651514", "0.6272121", "0.61160016", "0.6052396", "0.602342", "0.60102385", "0.59674436", "0.59518516", "0.59286743", "0.59191066", "0.59023744", "0.58929795", "0.588914", "0.5885915", "0.5868397", "0.58527833", "0.5833305", "0.58274454", "0.5791359", "0.5775001", "0.5765651", "0.57604325", "0.574095", "0.5736923", "0.5713317", "0.5709563", "0.5709332", "0.57011724", "0.5694746", "0.5694746", "0.5669029", "0.5662757", "0.56094867", "0.5600729", "0.5589426", "0.55816984", "0.55816984", "0.55816984", "0.55816984", "0.55816984", "0.5565067", "0.5551784", "0.5551784", "0.5551784", "0.5551784", "0.55411106", "0.5517129", "0.5492673", "0.54800606", "0.54687625", "0.5462073", "0.5462073", "0.5462073", "0.5462073", "0.5462073", "0.5462073", "0.5462073", "0.5462073", "0.5462073", "0.54604006", "0.5452996", "0.5452996", "0.54441434", "0.54398817", "0.54349726", "0.5433259", "0.54300314", "0.5425057", "0.5415556", "0.54130065", "0.5409432", "0.5407595", "0.539927", "0.539724", "0.5396441", "0.5392031", "0.5390991", "0.5390771", "0.5387572", "0.5380217", "0.53793526", "0.53773856", "0.53730416", "0.5368608", "0.5365564", "0.53644717", "0.5353729", "0.53396726", "0.5336456", "0.53342617", "0.5334123", "0.5326934", "0.5326934", "0.53204536", "0.53173226", "0.53056246", "0.5301326", "0.53000504", "0.5299221", "0.5294542" ]
0.0
-1
Returns this Vec with a random vector added, with a maximum scale of s.
mix(b, s) { return this.map((x, i) => (1 - s) * x + s * b[i]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "randomized(s) {\r\n return this.map(x => x + s * (Math.random() - .5));\r\n }", "static Random() {\n return new Vector((Math.random() - 0.5) * 2, (Math.random() - 0.5) * 2)\n }", "randomVec (length) {\n\t var deg = 2 * Math.PI * Math.random();\n\t return Util.scale([Math.sin(deg), Math.cos(deg)], length);\n\t }", "randomVec (length) {\n const deg = 2 * Math.PI * Math.random();\n return this.util.scale([Math.sin(deg), Math.cos(deg)], length);\n }", "ScaleBy(scaleFactor)\n {\n let scaled=new Vector(this.x*scaleFactor,this.y*scaleFactor);\n return scaled;\n }", "randomVec (length) {\n const deg = 2 * Math.PI * Math.random();\n return Util.scale([Math.sin(deg), Math.cos(deg)], length);\n }", "randomVec (length) {\n const deg = 2 * Math.PI * Math.random();\n return Util.scale([Math.sin(deg), Math.cos(deg)], length);\n }", "randomVec(length) {\n const deg = 2 * Math.PI * Math.random();\n return Util.scale([Math.sin(deg), Math.cos(deg)], length);\n }", "randomVec(length) {\n const deg = 2 * Math.PI * Math.random();\n return Util.scale([Math.sin(deg), Math.cos(deg)], length);\n }", "randomVec(length) {\n const deg = 2 * Math.PI * Math.random();\n return Utils.scale([Math.sin(deg), Math.cos(deg)], length);\n }", "generate () {\n return Utils.getRandomVectorBetween(this.min, this.max)\n }", "function scale_vector(S, V){\n var final = [];\n for(var i = 0; i<V.length; i++){\n final.push(V[i] * S);\n\n }\n return final;\n}", "static multiplyScalar(v, s) {\n\t\treturn new vector(v.x*s, v.y*s);\n\t}", "function __scale(s) {\n if (typeof s === 'number') {\n mat4.scale(__scaleMatrix, __scaleMatrix, vec3.fromValues(s, s, s));\n }\n\n __shouldUpdateMatrices = true;\n\n return this;\n }", "function randomVec (length) {\n const deg = 2 * Math.PI * Math.random();\n return Util.scale([Math.sin(deg), Math.cos(deg)], length);\n }", "generate()\n {\n return Utils.getRandomVectorBetween(this.min, this.max);\n }", "scaleVec(scale)\n {\n var output = Vector2D.zero;\n output.x = scale * this.x;\n output.y = scale * this.y;\n\n return output;\n }", "scale(s) {\r\n this.forEach((x, i, a) => a[i] *= s);\r\n }", "function randomUnitVector() {\r\n var theta = randomRange(0, 2 * Math.PI);\r\n var z = randomRange(-1, 1);\r\n return new components_1.Vector(Math.sqrt(1 - z * z) * Math.cos(theta), Math.sqrt(1 - z * z) * Math.sin(theta), z);\r\n}", "static scale(c,v) {\n try {\n if (!(typeof(c) === \"number\") || !(v instanceof Vector))\n throw \"Vector.scale: malformed parameter\";\n else\n return(new Vector(c*v.x,c*v.y,c*v.z));\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "static scale(c,v) {\r\n try {\r\n if (!(typeof(c) === \"number\") || !(v instanceof Vector)){\r\n //throw \"Vector.scale: malformed parameter\";\r\n }\r\n\r\n else\r\n return(new Vector(c*v.x,c*v.y,c*v.z));\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "static scaleQV(q, s) {\nvar qv;\nqv = this.copyOfQV(q);\nreturn this.setScaleQV(qv, s);\n}", "function randVelocity() {\n return Math.random() * (3.5 - 2.25) + 2.25;\n}", "randomSpeed() {\n this.sp = movementMultip * Math.floor(Math.random() * 10+1);\n }", "function rnorm() {\n var u = Srand.random(), v = Srand.random();\n while(u === 0) u = Math.random();\n return Math.sqrt( -2.0 * Math.log( u ) ) * Math.cos( 2.0 * Math.PI * v );\n}", "function randomD(s) {\n return Math.ceil(Math.random() * s)\n}", "function random () {\n return MIN_FLOAT * baseRandInt();\n }", "transformVector(vector)\n {\n vector = vector.scaleUniform(this.tileset.size);\n vector = super.transformVector(vector);\n return vector;\n }", "static randomClamped () {\n return this.randFloat() - this.randFloat();\n }", "function setToRandom(scale) {\n return {\n x: Math.random() * scale,\n y: Math.random() * scale\n }\n}", "function setToRandom(scale) {\n return {\n x: Math.random() * scale,\n y: Math.random() * scale,\n };\n}", "function setToRandom(scale) {\n return {\n x: Math.random() * scale,\n y: Math.random() * scale,\n };\n}", "function setToRandom(scale) {\n return {\n x: Math.random() * scale,\n y: Math.random() * scale,\n };\n}", "scale(val) {\n this._scale = val;\n return this;\n }", "scale(val) {\n this._scale = val;\n return this;\n }", "function scale( s, v1 ) { return [ s * v1[0], s * v1[1], s * v1[2] ]; }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "function scaleFactor (scaleVec) {\n\t return Math.max.apply(null, scaleVec.toArray());\n\t }", "static sq(v) {\n\t\treturn new vector(v.x*v.x, v.y*v.y)\n\t}", "function scaleFactor (scaleVec) {\n return Math.max.apply(null, scaleVec.toArray());\n }", "static scale(vector)\n\t{\n\t\treturn new Float32Array([\n\t\t\tvector.x, 0, 0, 0,\n\t\t\t0, vector.y, 0, 0,\n\t\t\t0, 0, vector.z, 0,\n\t\t\t0, 0, 0, 1\n\t\t]);\n\t}", "setScale(sx, sy, sz){\n let e = this.elements;\n e[0] = sx; e[4] = 0; e[8] = 0; e[12] = 0;\n e[1] = 0; e[5] = sy; e[9] = 0; e[13] = 0;\n e[2] = 0; e[6] = 0; e[10] = sz; e[14] = 0;\n e[3] = 0; e[7] = 0; e[11] = 0; e[15] = 1;\n return this;\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "function gaussRandom() {\n let u = 2 * Math.random() - 1;\n let v = 2 * Math.random() - 1;\n let r = u * u + v * v;\n if (r == 0 || r > 1) return gaussRandom();\n return u * Math.sqrt(-2 * Math.log(r) / r);\n}", "function randnBoxMuller() {\n let u = 0; let\n v = 0;\n while (u === 0) u = Math.random(); // Converting [0,1) to (0,1)\n while (v === 0) v = Math.random();\n return Math.sqrt(-2.0 * Math.log(u)) * Math.cos(2.0 * Math.PI * v);\n }", "function limitVectorMagnitude(vector, max) {\n var mag = Matter.Vector.magnitude(vector);\n if (mag > max) {\n var ratio = max / mag;\n vector = Matter.Vector.mult(vector, ratio);\n }\n\n return vector;\n}", "times(s) {\r\n return this.map(x => s * x);\r\n }", "scale (vec, m) {\n\t return [vec[0] * m, vec[1] * m];\n\t }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "get scaled() { return this._scaled; }", "get scaled() { return this._scaled; }", "random() {\n\t\treturn this.at(Math.floor(Math.random() * this.size()));\n\t}", "update()\n {\n this.scale += this.ds;\n\n if(this.scale <= SMIN)\n {\n this.scale = SMIN;\n this.ds = -this.ds;\n }\n\n if(this.scale >= SMAX)\n {\n this.scale = SMAX;\n this.ds = -this.ds;\n }\n }", "scale(sx, sy, sz){\n let e = this.elements;\n e[0] *= sx; e[4] *= sy; e[8] *= sz;\n e[1] *= sx; e[5] *= sy; e[9] *= sz;\n e[2] *= sx; e[6] *= sy; e[10] *= sz;\n e[3] *= sx; e[7] *= sy; e[11] *= sz;\n return this;\n }", "function scale(...args) {\n if (args.length === 0) {\n return scale(1);\n }\n return {\n id: \"scale\",\n scale: vec2(...args),\n };\n }", "function Scale() {\n var domain = new Normalizer(0, 1);\n var range = new Interpolater(0, 1);\n var s = function(val) {\n return range(domain(val));\n };\n s.domain = function(min, max) {\n if (!arguments.length) return domain;\n domain = new Normalizer(min, max)\n return s\n };\n s.range = function(min, max, clamp) {\n if (!arguments.length) return range;\n range = new Interpolater(min, max, clamp)\n return s\n };\n return s;\n}", "static getRandom(min, max)\r\n {\r\n let rX = Math.floor(Math.random() * (+max - +min) + +min) + 1\r\n let rY = Math.floor(Math.random() * (+max - +min) + +min) + 1\r\n\r\n return new Vector2D(rX, rY);\r\n }", "getScaleTo(outVec) {\n outVec.v[0] = Math.hypot(this.v[0], this.v[4], this.v[8]);\n outVec.v[1] = Math.hypot(this.v[1], this.v[5], this.v[9]);\n outVec.v[2] = Math.hypot(this.v[2], this.v[6], this.v[10]);\n return outVec;\n }", "nextValue() {\n let x2, v0, v1, x, u, v;\n while (true) {\n do {\n x = this.randn.nextValue();\n v = 1 + (this.c * x);\n } while (v <= 0);\n v *= v * v;\n x2 = x * x;\n v0 = 1 - (0.331 * x2 * x2);\n v1 = (0.5 * x2) + (this.d * (1 - v + Math.log(v)));\n u = this.randu();\n if (u < v0 || Math.log(u) < v1) {\n break;\n }\n }\n v = (1 / this.beta) * this.d * v;\n if (this.alpha < 1) {\n v *= Math.pow(this.randu(), 1 / this.alpha);\n }\n return this.convertValue(v);\n }", "function pickLocation(){\n var cols = floor (width/scl);\n var rows = floor (height/scl);\n //Floor to be whole numbers.\n food = createVector(floor(random(cols)), floor(random(rows)));\n food.mult(scl);\n}", "randomize() {\n this.map(() => Math.random()*2 - 1);\n return this;\n }", "function pickLocation() {\n var cols = floor(width/scl);\n var rows = floor(height/scl);\n food = createVector(floor(random(1,cols-1)), floor(random(1,rows-1)));\n food.mult(scl);\n}", "static setScaleQV(qv, s) {\nqv[0] *= s;\nqv[1] *= s;\nqv[2] *= s;\nqv[3] *= s;\nreturn qv;\n}", "static setScaleV3(xyz, s) {\nxyz[0] *= s;\nxyz[1] *= s;\nxyz[2] *= s;\nreturn xyz;\n}", "riseVectorUp(vector, factor) {\n var oldSize = vec3.length(vector);\n vector[1] += (vector[1]*factor);\n var newSize = vec3.length(vector);\n\n /*dont let the speed increase*/\n vec3.scale(vector, vector, oldSize/newSize);\n\n return vector;\n }", "function S(s) {\n if(s<0) {\n return {y: 0, z: 0};\n } else {\n //var y = 0.02*s;\n //var y = 0.016*s*(s+0.1);\n //var y = 0.02*s*s;\n //var y = 0.019*s*(s+0.1);\n var y = 0.0012*s*s*(s+9.7);\n \n return {y: y, z: 5*y};\n }\n }", "function rand(){\n return Math.random()-0.5;\n }", "function Vector(x = 0, y = 0, z = 0, args) {\n this.x = x;\n this.y = y;\n this.z = z;\n\n Vector.prototype.toString = function() {\n const p = 6;\n let _x = (this.x.toFixed(p).padEnd(p, '0'));\n let _y = (this.y.toFixed(p).padEnd(p, '0'));\n let _z = (this.z.toFixed(p).padEnd(p, '0'));\n // handle xx. and -0.xx being out of line\n _x = _x.padStart(p + 3, '0');\n _y = _y.padStart(p + 3, '0');\n _z = _z.padStart(p + 3, '0');\n return `(${_x} ${_y} ${_z})`;\n }\n\n Vector.prototype.add = function(v) {\n this.x += v.x;\n this.y += v.y;\n this.z += v.z;\n }\n\n Vector.prototype.div = function(v) {\n this.x /= v;\n this.y /= v;\n this.z /= v;\n }\n\n Vector.prototype.mult = function(v) {\n this.x *= v;\n this.y *= v;\n this.z *= v;\n }\n\n Vector.prototype.mag = () => {\n const _mag = Math.sqrt(Math.pow(this.x, 2) + Math.pow(this.y, 2) + Math.pow(this.z, 2));\n return _mag;\n }\n\n Vector.prototype.normalize = (_maxMag) => {\n const _mag = this.mag();\n console.log('mag is : ', _mag);\n const _norm = new Vector(this.x / _mag, this.y / _mag, this.z / _mag);\n if (_mag > _maxMag) {\n }\n return _norm;\n }\n}", "function scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "setRandomSpeed() {\n const rand = Math.random();\n\n this.speed = rand > .5\n ? 1 + (rand / 2) // divide by two just so they don't get too far ahead\n : 1;\n }", "function r(max){\n return Math.floor(Math.random()*max);\n}", "normalize() {\n let scale = 1.0 / this.length();\n this.xyz = this.xyz.multiplyScalar(scale);\n this.w *= scale;\n return this;\n }", "function scale(vec, setTo) {\n\t\tthis.transform(this.transformation.scale, vec, setTo);\n\t}", "function Scale () {}", "function pickLocation(){\n var cols = floor(width/scl);\n var rows = floor(height/scl);\n food = createVector(floor(random(cols)), floor(random(rows)));\n food.mult(scl);\n}", "function scale(vector, factor) {\n\treturn [vector[0]*factor, vector[1] * factor];\n}", "function rnd() {\n\treturn Math.round(Math.random() * rnd_max);\n}", "function genereX(scale){\n let ppX = Math.random() * w;\n if(ppX < scale * 100) {\n return ppX + scale * 100;\n } else if (ppX > w - scale * 100){\n return ppX - scale * 100;\n } else {\n return ppX;\n }\n }", "scale(scalar)\n\t{\n\t\treturn new Quaternion(this._w * scalar, this._x * scalar, this._y * scalar, this._z * scalar);\n\t}", "limit(value)\r\n {\r\n let mSq = this.magSq();\r\n if (mSq > (value * value) ) \r\n {\r\n this.div( Math.sqrt(mSq) )\r\n .mult( value );\r\n }\r\n return this;\r\n }", "static scale(v)\n\t{\n\t\t// TODO construct a 4x4 scale matrix for a scale by the\n\t\t// 3D vector v\n\t\treturn new Float32Array([v.x, 0, 0, 0, 0, v.y, 0, 0, 0, 0, v.z, 0, 0, 0, 0, 1]);\n\t}", "spawns() {\n if (random(1) < 0.01) {\n // accelerates in y axis\n this.accelerations.push(new createVector(0, random(0.1, 1)));\n this.velocities.push(new createVector(0, 0));\n this.locations.push(new createVector(random(width), 0));\n this.diams.push(random(30, 50));\n }\n }", "randf( min=0, max=1 ) {\n return min + ( max - min ) * this.random();\n }", "get scl() {\n\t\treturn p5.Vector.mult(this, scl);\n\t}", "normalized () {\n return Vector.normalize(this);\n }", "normalized () {\n return Vector.normalize(this);\n }", "function scale(vec, scalar) {\n var result = [];\n var i;\n for (i = 0; i < vec.length;i++) {\n result[i] = vec[i] * scalar;\n }\n return result;\n}", "function scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n}", "function randMaxMagnitudeOfOne() {\n let rand = Math.floor(Math.random() * 2);\n let isNeg = Math.floor(Math.random() * 2);\n return (isNeg > 0) ? -1*rand : rand;\n}", "randomSize() {\n\t\tthis.randomNumber = Math.floor(Math.random() * 90) + 10;\n\t}", "generateRandomNormalVec() {\r\n let tmp = glMatrix.vec2.create()\r\n tmp = glMatrix.vec2.random(tmp);\r\n return glMatrix.vec3.fromValues(tmp[0], tmp[1], 0);\r\n }", "function randPosYVelocity() {\n var rand = Math.random(0.5);\n return rand;\n}", "sq() {\n\t\tthis.x *= this.x;\n\t\tthis.y *= this.y;\n\t\treturn this;\n\t}" ]
[ "0.6278749", "0.6252497", "0.59347826", "0.5928888", "0.58153677", "0.5807317", "0.5807317", "0.57961226", "0.57961226", "0.5764685", "0.5728931", "0.5721706", "0.57060975", "0.56630707", "0.56488216", "0.5622429", "0.5584743", "0.55751705", "0.5566001", "0.5497217", "0.5492417", "0.5481517", "0.54657674", "0.5452074", "0.54461956", "0.54069513", "0.5368003", "0.5364181", "0.53408307", "0.53380674", "0.53286874", "0.53286874", "0.53286874", "0.5319469", "0.5319469", "0.5276363", "0.52644193", "0.52644193", "0.52644193", "0.52644193", "0.52477175", "0.52342457", "0.5234034", "0.52219754", "0.52108365", "0.52055717", "0.52055717", "0.52055717", "0.52055717", "0.52055717", "0.52025145", "0.5201364", "0.5199943", "0.51943225", "0.5183636", "0.51664317", "0.51664317", "0.5165663", "0.5165663", "0.51514983", "0.5150253", "0.5133592", "0.51319236", "0.51241875", "0.512038", "0.51200217", "0.5117029", "0.51078683", "0.5105633", "0.5105228", "0.51047444", "0.5084427", "0.50792986", "0.5076364", "0.5069737", "0.5067312", "0.505811", "0.504987", "0.5049523", "0.5046308", "0.5045251", "0.50445217", "0.50297326", "0.50227064", "0.50167644", "0.5010274", "0.5009305", "0.5005916", "0.4998276", "0.49961507", "0.49909684", "0.4986119", "0.49836963", "0.49836963", "0.49797004", "0.49759144", "0.49704584", "0.4970029", "0.4967451", "0.49572235", "0.49540752" ]
0.0
-1
Example: "Vec.of( 0,2,4 ).mix( Vec.of( 10,10,10 ), .5 )" returns the Vec [ 5,6,7 ].
norm() { return Math.sqrt(this.dot(this)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "mix(b, s) {\r\n return this.map((x, i) => (1 - s) * x + s * b[i]);\r\n }", "function sumMix(x){\r\n var y = x.map(Number)\r\n var sum=0\r\n for(i=0;i<y.length;i++){\r\n sum+=y[i]\r\n }\r\n return sum\r\n\r\n }", "function sumMix(x){\n let total = 0;\n\n for (var i = 0; i < x.length; i++) {\n total += +x[i];\n }\n return total;\n}", "function sumMix(x){\n return x.reduce(function (total, n) { return total = total + Number(n); }, 0);\n \n \n}", "function sumMix(x) {\n var s_new = x.map((x) => parseInt(x)).reduce((sum, number) => sum + number);\n return(s_new)\n}", "function sumMix(x){\n return x\n .map(el => typeof el === 'string' ? el *=1 : el)\n .reduce((a, b) => a + b)\n}", "function sumMix(x) {\r\n return x.reduce((acc, cur) => Number(acc) + Number(cur), 0);\r\n}", "function sumMix(x) {\n let sum = 0; \n x.map(function(element){\n sum += parseInt(element);\n })\n return sum; \n}", "function mix(a, b) {\n return reducekv(b, set, a);\n}", "cross(b) // Use only on 3x1 Vecs. Example: \"Vec.of( 1,0,0 ).cross( Vec.of( 0,1,0 ) )\" returns the Vec [ 0,0,1 ]. \r\n {\r\n return Vec.of(this[1] * b[2] - this[2] * b[1], this[2] * b[0] - this[0] * b[2], this[0] * b[1] - this[1] * b[0]);\r\n }", "prod_esc(vec){ return (vec.x*this.x + vec.y*this.y + vec.z*this.z);}", "function mixUp(a, b) {\n console.log(b.slice(0, 2) + a.slice(2) + ' ' + a.slice(0, 2) + b.slice(2));\n return mixUp;\n}", "function subVectors() {\n let vector = [];\n for (var vec of arguments) {\n for (var elem = 0; elem < vec.length; elem++) {\n if (isNaN(vector[elem])) {\n vector[elem] = vec[elem];\n } else {\n vector[elem] -= vec[elem];\n }\n }\n }\n return vector;\n}", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "suma (vec){return new Vector(this.x+vec.x, this.y+vec.y, this.z+vec.z);}", "function cartesian(...sets) {\n let tempProduct = sets[0];\n\n for (let i = 1; i < sets.length; i++) {\n tempProduct = cartProduct(tempProduct, sets[i]);\n }\n\n return tempProduct;\n}", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "copy() {\r\n return this.map(r => Vec.of(...r));\r\n }", "mix(other) {\n let ret = this;\n for (let key in other) {\n if (key == \"mix\")\n continue;\n ret[key] = other[key];\n }\n return this;\n }", "function multThree(x, y, z) {}", "function multVector (vec1, multiplier) {\n return [vec1[X] * multiplier, vec1[Y] * multiplier];\n}", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "function crossProduct(vec1, vec2) {\n let sum = 0;\n for (let i = 0; i < vec1.length; i++) {\n sum += vec1[i] * vec2[i];\n }\n return sum;\n}", "function cube(a){\n return a*a*a\n}", "function slice(apple){\n return slicedApples;\n}", "multiplyMany(...numbers) {\n\n }", "function addVectors() {\n let vector = [];\n for (var vec of arguments) {\n for (var elem = 0; elem < vec.length; elem++) {\n if (isNaN(vector[elem])) {\n vector[elem] = vec[elem];\n } else {\n vector[elem] += vec[elem];\n }\n }\n }\n return vector;\n}", "function cube(x) {\n\treturn x * x * x;\n}", "function cube(x) {\n return x * x * x;\n }", "scale (vec, m) {\n\t return [vec[0] * m, vec[1] * m];\n\t }", "function cube (x) {\n\treturn x * x * x\n}", "function multiplyVect(vector, scalar) {\n return [ scalar * vector[0],\n scalar * vector[1],\n scalar * vector[2]\n ];\n}", "function typal_mix() {\n var i, o, k;\n for (i = 0; i < arguments.length; i++) {\n o = arguments[i];\n if (!o) continue;\n if (Object.prototype.hasOwnProperty.call(o, 'constructor')) {\n this.constructor = o.constructor;\n }\n if (Object.prototype.hasOwnProperty.call(o, 'toString')) {\n this.toString = o.toString;\n }\n for (k in o) {\n if (Object.prototype.hasOwnProperty.call(o, k)) {\n var match = k.match(position);\n var key = k.replace(position, '');\n if (match && typeof this[key] === 'function') {\n this[key] = layerMethod(match[0], key, this[key], o[k]);\n } else {\n this[k] = o[k];\n }\n }\n }\n }\n return this;\n}", "function scale(vector, factor) {\n\treturn [vector[0]*factor, vector[1] * factor];\n}", "function MixMatch(item1:String, item2: String) {\n\n\tfor( var i = 0; i < recipeList.length; i++ ) {\n\t\tfor( var j = 0; j < recipeList[i].length; j++ ) {\n\t\t\tif( item1 == recipeList[i][j] && item2 == recipeList[i][j+1] ) {\n\t\t\t\tresultedMix = recipeList[i][j+2];\n\t\t\t}\n\t\t\telse if( item2 == recipeList[i][j] && item1 == recipeList[i][j+1] ) {\n\t\t\t\tresultedMix = recipeList[i][j+2];\n\t\t\t}\n\t\t}\n\t}\n\treturn resultedMix; // resulted product\n}", "function typal_mix() {\n var self = this;\n\n for (var i = 0, o, k; i < arguments.length; i++) {\n o = arguments[i];\n if (!o) continue;\n if (Object.prototype.hasOwnProperty.call(o, 'constructor')) this.constructor = o.constructor;\n if (Object.prototype.hasOwnProperty.call(o, 'toString')) this.toString = o.toString;\n\n for (k in o) {\n if (Object.prototype.hasOwnProperty.call(o, k)) {\n if (k.match(position) && typeof this[k.replace(position, '')] === 'function') layerMethod.call(this, k, o[k]);else this[k] = o[k];\n }\n }\n }\n\n return this;\n }", "function mixTiles (item) {\n if (item.length == 0) { // if tiles are all gone, return 0, End of game\n return 0;\n }\n var i = Math.floor(Math.random() * item.length); // taking the modulus of a radmoized number so it does not go over the array\n var pickedLetter = item.charAt(i); // selects the letter\n allTiles = item.slice(0,i) + item.slice(i+1, item.length); // removes the chosen letter so distribution makes sense\n return pickedLetter;\n}", "function mix(){\n let args, props,child = {},max = arguments.length;\n for (args = 0; args < max; args += 1) {\n for (props in arguments[args]) {\n if (arguments[args].hasOwnProperty(props)){\n child[props] = arguments[args][props]\n }\n }\n }\n return child;\n}", "divScalarVec3(s, v, dest) {\n if (!dest) {\n dest = v;\n }\n dest[0] = s / v[0];\n dest[1] = s / v[1];\n dest[2] = s / v[2];\n return dest;\n }", "function mix(s1, s2) {\n \n if(arguments.length !== 2) {\n return '';\n }\n \n let counts = [new Map(), new Map()];\n \n // keep track of any letters used, this is handy to return result of just those > 1\n let lettersUsed = new Set();\n \n for (let i = 0; i < counts.length; i++) {\n\n // iterate from sentence i, finding frequency of letters\n for (let chr of arguments[i]) {\n\n // Only need 97 --> 122: i.e. lowercase letters a-z\n if ((chr.charCodeAt(0) >= 97) && (chr.charCodeAt(0) <= 122)) {\n\n counts[i].set(chr, 1 + counts[i].get(chr) || 1);\n \n // we only want to return any of 2 or more, so we keep a note of these\n if(counts[i].get(chr) === 2) {\n lettersUsed.add(chr);\n }\n }\n\n }\n \n }\n \n // console.log('letters used', lettersUsed);\n \n // initialise our result array to correct size\n let result = [];\n\n for (let letter of lettersUsed) {\n \n // - funnel answers into array of arrays, where index of\n let answer = '';\n const s1count = counts[0].get(letter) || 0;\n const s2count = counts[1].get(letter) || 0;\n \n // the outer array is the no. letters of that solution\n if (s1count === s2count) {\n answer = '=:' + letter.repeat(s1count);\n \n } else if (s1count > s2count) {\n answer = '1:' + letter.repeat(s1count);\n } else {\n answer = '2:' + letter.repeat(s2count);\n }\n // console.log('answer',answer);\n \n // initialise to array if necessary:\n result[answer.length] = result[answer.length] || [];\n result[answer.length].push(answer);\n \n \n }\n \n // this is the final result we will return:\n let final = [];\n \n // then we sort inners ascendingly, lexically.\n // (...and in final return outer array descendingly)\n for (let i = 0; i < result.length; i++) {\n \n // we do not want the undefined elements\n if(result[i] !== undefined) {\n final.push(result[i].sort().join('/'));\n }\n \n }\n \n // finally return and join:\n if (!final.length) {\n return '';\n } else {\n //\n return final.reverse().join('/');\n }\n \n}", "function cube(p1) {\n return p1 * p1 * p1;\n}", "function cutFruitPieces(fruit){\n return fruit * 4;\n}", "function addMultipleVector(a, multiple, b) {\r\n return [a[0] + multiple * b[0], \r\n a[1] + multiple * b[1]];\r\n}", "function typal_mix() {\n var self = this;\n for(var i=0,o,k; i<arguments.length; i++) {\n o=arguments[i];\n if (!o) continue;\n if (Object.prototype.hasOwnProperty.call(o,'constructor'))\n this.constructor = o.constructor;\n if (Object.prototype.hasOwnProperty.call(o,'toString'))\n this.toString = o.toString;\n for(k in o) {\n if (Object.prototype.hasOwnProperty.call(o, k)) {\n if(k.match(position) && typeof this[k.replace(position, '')] === 'function')\n layerMethod.call(this, k, o[k]);\n else\n this[k] = o[k];\n }\n }\n }\n return this;\n}", "function subset() {\n var string = \"dog\";\n var result = \"\";\n for (var i = 0; i < string.length; i++) {\n console.log((result = string[i]));\n for (var j = i + 1; j < string.length; j++) {\n console.log((result+= string[j]));\n }\n }\n}", "function product(numbers){\n\n let total = numbers.reduce((a,b) => a * b);\n\n let answer = [];\n\n numbers.forEach(val => answer.push(total/val));\n\n return answer;\n\n}", "to3() {\r\n return Vec.of(this[0], this[1], this[2]);\r\n }", "function cube(number) {\n\treturn (number * number * number);\n}", "static scalarProduct(v1,v2){\n\t\tif(v1.constructor === Vector && v2.constructor === Vector){\n\t\t\treturn (v1.x*v2.x + v1.y*v2.y);\n\t\t}else{\n\t\t\tthrow {error:-1,message: \"v1 or v2 is not a Vector.\"};\n\t\t}\n\t}", "cartesianProduct (otherSet) {\n var product = [];\n\n for (var elem of this) {\n for (var ind of otherSet) {\n var s = [];\n s.push(elem);\n s.push(ind);\n product.push(s);\n }\n }\n\n return product;\n }", "combine(){\n // https://stackoverflow.com/questions/12303989/cartesian-product-of-multiple-arrays-in-javascript\n var f = (a, b) => [].concat(...a.map(d => b.map(e => [].concat(d, e))));\n var cartesian = (a, b, ...c) => (b ? cartesian(f(a, b), ...c) : a);\n\n return cartesian(this.ranks, this.suits);\n }", "divVec3Scalar(v, s, dest) {\n if (!dest) {\n dest = v;\n }\n dest[0] = v[0] / s;\n dest[1] = v[1] / s;\n dest[2] = v[2] / s;\n return dest;\n }", "function cubed(x) {\n return x * x * x\n}", "function cutFruitPieces(fruit) {\n return fruit * 4;\n}", "function _vecInContext(v, m) {\n return [\n v[0] * m[0] + v[1] * m[4] + v[2] * m[8],\n v[0] * m[1] + v[1] * m[5] + v[2] * m[9],\n v[0] * m[2] + v[1] * m[6] + v[2] * m[10]\n ];\n }", "function toCube(x) {\n\treturn x*x*x;\n}", "function _vecInContext(v, m) {\n\t return [\n\t v[0] * m[0] + v[1] * m[4] + v[2] * m[8],\n\t v[0] * m[1] + v[1] * m[5] + v[2] * m[9],\n\t v[0] * m[2] + v[1] * m[6] + v[2] * m[10]\n\t ];\n\t }", "function cutFruitPieces(fruit) {\r\n return fruit * 4;\r\n}", "function getProductsOfAllIntsExceptAtIndex (ints) {\n if (ints.length < 2) {\n throw new Error(\"Getting the product of numbers at other indices requires at least 2 numbers\");\n }\n var products = [], curProduct = 1;\n for (var i = 0; i < ints.length; i++) {\n products[i] = curProduct;\n curProduct *= ints[i];\n }\n curProduct = 1;\n for (var j = ints.length - 1; j >= 0; j--) {\n products[j] *= curProduct;\n curProduct *= ints[j];\n }\n return products;\n}", "static crossProductV3(xyza, xyzb) {\n//--------------\nreturn this.setCrossProductV3(this.copyOfV3(xyza), xyzb);\n}", "function scale_vector(S, V){\n var final = [];\n for(var i = 0; i<V.length; i++){\n final.push(V[i] * S);\n\n }\n return final;\n}", "function mixArr(arr) {\n\n function random(min, max) {\n var rand = min - 0.5 + Math.random() * (max - min + 1)\n rand = Math.round(rand);\n return rand;\n }\n\n\n var r;\n var v;\n for (var i = 0; i < arr.length-1; i++) {\n r = random(0, arr.length-1);\n v = arr[r];\n arr[r] = arr[arr.length-1];\n arr[arr.length-1] = v;\n }\n return arr;\n}", "function multy2(...numbers) {\n console.log(numbers);\n console.log(\n numbers.reduce(function (value, curretValue) {\n return value * curretValue;\n })\n );\n}", "function scale(vec, scalar) {\n var result = [];\n var i;\n for (i = 0; i < vec.length;i++) {\n result[i] = vec[i] * scalar;\n }\n return result;\n}", "function productArray(numbers){\n let result = []\n numbers.forEach((number, index) => {\n let res = 1;\n numbers.forEach((subNumber, subIndex) => {\n if(index !== subIndex) {\n res *= subNumber\n }\n })\n result.push(res)\n })\n return result\n }", "function sumMix(arr) {\n let sum = 0\n for (let i = 0; i < arr.length; i++) {\n sum += parseInt(arr[i])\n }\n return sum\n}", "function combineFruit(fruit, sweets, vegetables){\n return {...fruit,...sweets,...vegetables}\n}", "function multiply(numbers, multiplier) {\n let numbersClone = numbers.map(function(number) {\n return number * multiplier;\n });\n\n return numbersClone;\n}", "function combine() {\n let arr = [].concat.apply([], arguments); //[1, 2, 2, 2, 3, 3]没有去重复的新数组 \n return Array.from(new Set(arr));//new Set(arr): Set(3) {1, 2, 3}\n}", "sum(vector) {\n return vector.x+vector.y+vector.z;\n }", "function mMulti(m,v){\n\tmMultiTest(m,v)\n\tconst newM = new Array(m.length)\n\tlet sum\n\tfor(let i=0;i<m.length;i++){\n\t\tnewM[i] = new Array()\n\t\tsum=0\n\t\tfor(let j=0;j<v.length;j++){\n\t\t\tsum += m[i][j] * v[j][0]\n\t\t}\n\t\tnewM[i][0] = sum\n\t}\n\n\treturn newM\n}", "function mixCharacters(array) {\n for (let i = array.length - 1; i > 0; i--) {\n let j = Math.floor(Math.random() * (i + 1));\n [array[i], array[j]] = [array[j], array[i]];\n }\n return array;\n}", "function tripleEachElement(input) {\n var output = [];\n for (var i = 0; i < input.length; i++) {\n output.push(input[i] * 3);\n }\n return output;\n}", "function mixInto(obj, mix) {\n for (var prop in mix) {\n obj[prop] = mix[prop];\n }\n}", "static multiplyScalar(v, s) {\n\t\treturn new vector(v.x*s, v.y*s);\n\t}", "function mix() {\n var arg;\n var prop;\n child = {};\n \n for(arg = 0; arg < arguments.length; arg += 1) {\n for(prop in arguments[arg]) {\n if(arguments[arg].hasOwnProperty(prop)) {\n child[prop] = arguments[arg][prop];\n }\n }\n }\n return child;\n}", "function sumCubes(numbers){\n var total = 0;\n each(numbers, function(el){\n total = total + cube(el);\n });\n return total;\n}", "function scale( s, v1 ) { return [ s * v1[0], s * v1[1], s * v1[2] ]; }", "function vecScale(x, c) {\n for (var i = 0; i < x.length; i++) {\n x[i] *= c;\n };\n return x;\n}", "function m_modVec(v) //objet x, y\n{\n return Math.sqrt(v.x*v.x + v.y*v.y);\n}", "function mult3(arr){\n var newArray = []\n for(let i=0;i<arr.length;i++){\n newArray.push(arr[i] * 3)\n }\n return newArray\n}", "static sum(vectors)\n\t{\n\t\t//TODO: done\n\t\tvar result = vectors[0];\n\t\tfor (var i=1; i<vectors.length; ++i)\n\t\t\tresult.add(vectors[i]);\n\t\treturn result;\n\t}", "function i$7(i){i.include(e$6),i.code.add(t$i`\n vec3 mixExternalColor(vec3 internalColor, vec3 textureColor, vec3 externalColor, int mode) {\n // workaround for artifacts in OSX using Intel Iris Pro\n // see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/10475\n vec3 internalMixed = internalColor * textureColor;\n vec3 allMixed = internalMixed * externalColor;\n\n if (mode == ${t$i.int(1)}) {\n return allMixed;\n }\n else if (mode == ${t$i.int(2)}) {\n return internalMixed;\n }\n else if (mode == ${t$i.int(3)}) {\n return externalColor;\n }\n else {\n // tint (or something invalid)\n float vIn = rgb2v(internalMixed);\n vec3 hsvTint = rgb2hsv(externalColor);\n vec3 hsvOut = vec3(hsvTint.x, hsvTint.y, vIn * hsvTint.z);\n return hsv2rgb(hsvOut);\n }\n }\n\n float mixExternalOpacity(float internalOpacity, float textureOpacity, float externalOpacity, int mode) {\n // workaround for artifacts in OSX using Intel Iris Pro\n // see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/10475\n float internalMixed = internalOpacity * textureOpacity;\n float allMixed = internalMixed * externalOpacity;\n\n if (mode == ${t$i.int(2)}) {\n return internalMixed;\n }\n else if (mode == ${t$i.int(3)}) {\n return externalOpacity;\n }\n else {\n // multiply or tint (or something invalid)\n return allMixed;\n }\n }\n `);}", "function productOfArray(arr) {\n \n}", "function scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n}", "function cube(x){\n return Math.pow(x, 3);\n}", "function something(multiplier, ...elements){ // if the ... is used inside a function it will be treated as REST and not SPREAD operator\n return elements.map(element=>multiplier * element);\n}", "crossProduct(v1, v2) {\n return (v1[0] * v2[1] - v1[1] * v2[0]);\n }", "function muldiv(){\n memory.map((each, index)=>{\n switch(each){\n \n case \"*\":\n var memres = memory[index-1] * memory[index+1]\n return memory.splice(index-1,3,memres)\n break;\n case \"/\":\n var memres = memory[index-1] / memory[index+1]\n return memory.splice(index-1,3,memres)\n break;\n default:\n\n }\n })\n }", "function FINAL_MIX(h) {\n h ^= h >>> 16;\n h = caml_mul (h, 0x85ebca6b);\n h ^= h >>> 13;\n h = caml_mul (h, 0xc2b2ae35);\n h ^= h >>> 16;\n return h;\n}", "function cross(setA, setB){\n\n cross_product = []\n for(i=0; i<setA.length; i++){\n for(j=0; j<setB.length; j++) {\n cross_product = cross_product.concat([[i, j]])\n }\n }\n return cross_product\n}", "function cross(v0, v1) {\n return [v0[1] * v1[2] - v0[2] * v1[1], v0[2] * v1[0] - v0[0] * v1[2], v0[0] * v1[1] - v0[1] * v1[0]];\n}", "static cross(v1, v2)\n\t{\n\t\t//TODO: done\n\t\treturn new Vector(\n\t\t\tv1.y*v2.z - v1.z*v2.y,\n\t\t\tv1.z*v2.x - v1.x*v2.z,\n\t\t\tv1.x*v2.y - v1.y*v2.x\n\t\t);\n\t}" ]
[ "0.643299", "0.58676636", "0.5793314", "0.56544244", "0.5643713", "0.56258416", "0.56170255", "0.5395045", "0.5245507", "0.5243923", "0.5231821", "0.51956356", "0.50920385", "0.5029485", "0.5029485", "0.5029485", "0.5029485", "0.49778426", "0.4976851", "0.49745685", "0.49745685", "0.49745685", "0.49745685", "0.49745685", "0.4952531", "0.49486685", "0.493635", "0.48971158", "0.48639625", "0.48639625", "0.48565495", "0.48456404", "0.48436967", "0.48431763", "0.48428", "0.4837301", "0.48326492", "0.48136297", "0.48113346", "0.48091003", "0.4797424", "0.47948694", "0.4793326", "0.4787288", "0.4772933", "0.47596285", "0.47537008", "0.47535697", "0.4752009", "0.47477674", "0.47476605", "0.47459114", "0.4737009", "0.47368068", "0.4705577", "0.46967083", "0.46947712", "0.46894908", "0.46892756", "0.46849263", "0.46835744", "0.46833897", "0.46823403", "0.46752092", "0.46712065", "0.46696594", "0.4659064", "0.4647747", "0.4637531", "0.46254978", "0.4623303", "0.46126398", "0.461216", "0.46092093", "0.46082032", "0.46030125", "0.46025032", "0.4601878", "0.4599902", "0.45997763", "0.4598592", "0.45963967", "0.45957825", "0.45943865", "0.45909476", "0.4585274", "0.45850208", "0.4572622", "0.45710266", "0.45644513", "0.45628095", "0.4560666", "0.45549396", "0.4553893", "0.45488754", "0.45482758", "0.45373532", "0.4536766", "0.45285344", "0.45268187", "0.45255604" ]
0.0
-1
Example: "Vec.of( 1,2,3 ).norm()" returns the square root of 15.
normalized() { return this.times(1 / this.norm()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function norm(a){return dot(a, a);}", "norm() {\r\n return Math.sqrt(this.dot(this));\r\n }", "norm( v ){\n\t\tvar i\n\t\tvar norm = 0\n\t\tfor( i = 0; i < v.length; i++ ){\n\t\t\tnorm += v[i]*v[i]\n\t\t}\n\t\tnorm = Math.sqrt( norm )\n\t\treturn norm\n\t}", "function normSquare (v) {return scalarProduct(v, v);}", "function norm(v) {\n var v1 = v[0];\n var v2 = v[1];\n var result = Math.sqrt(v1*v1 + v2*v2);\n return result;\n}", "function norm(v) {\n var norm = 0.0;\n for (var i = 0; i < v.length; i++) {\n norm += v[i] * v[i];\n }\n norm = Math.sqrt(norm);\n return norm;\n}", "static norm(vector, n) {\n\t\treturn Math.sqrt(this.dot_product(vector, vector, n));\n\t}", "norm(vec) {\n return Util.dist([0, 0], vec);\n }", "norm(vec) \n { \n let mag = Math.sqrt(vec.x*vec.x + vec.y*vec.y);\n let multiplier = 1/mag;\n return {\n x: vec.x * multiplier,\n y: vec.y * multiplier\n };\n }", "norm(vec) {\n return this.dist([0, 0], vec);\n }", "norm (vec) {\n\t return Util.dist([0, 0], vec);\n\t }", "function dnorm(x)\n{\n return Math.exp(-0.5*x*x)/Math.sqrt(2*Math.PI);\n}", "function myNorm() \n{\n var x1, x2, rad;\n do {\n x1 = 2 * Math.random() - 1;\n x2 = 2 * Math.random() - 1;\n rad = x1 * x1 + x2 * x2;\n } while(rad >= 1 || rad == 0);\n var c = Math.sqrt(-2 * Math.log(rad) / rad);\n return (x1 * c);\n}", "function vsqrt(v){\r\n return v.x*v.x+v.y*v.y+v.z*v.z;\r\n}", "function rnorm() {\n var u = Srand.random(), v = Srand.random();\n while(u === 0) u = Math.random();\n return Math.sqrt( -2.0 * Math.log( u ) ) * Math.cos( 2.0 * Math.PI * v );\n}", "function norm(vec) {\r\n var r = magnitude(vec);\r\n return {\r\n x: vec.x / r,\r\n y: vec.y / r\r\n };\r\n}", "static Magnitude(vec) {\n vec = new VecX(vec);\n return Math.sqrt(vec.values.reduce((adder, value) => adder + value * value, 0));\n }", "function norm2d(u)\r\n{\r\n return Math.sqrt(dot2d(u, u));\r\n}", "m(v) { return Math.sqrt(Math.pow(v[0], 2) + Math.pow(v[1], 2)); }", "static mag(vector) \r\n {\r\n let x = vector.x;\r\n let y = vector.y;\r\n\r\n let magSq = x * x + y * y + z * z;\r\n return Math.sqrt(magSq);\r\n }", "static normalize(v) {\n try {\n if (!(v instanceof Vector))\n throw \"Vector.normalize: parameter not a vector\";\n else {\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\n return(Vector.scale(lenDenom,v));\n }\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "static normalize(v) {\r\n try {\r\n if (!(v instanceof Vector))\r\n throw \"Vector.normalize: parameter not a vector\";\r\n else {\r\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\r\n return(Vector.scale(lenDenom,v));\r\n }\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "normalize(vec) {\n const norm = Util.magnitude(vec);\n return Util.scale(vec, 1 / norm);\n }", "static sq(v) {\n\t\treturn new vector(v.x*v.x, v.y*v.y)\n\t}", "function vector_normalize(v) {\n var sum = 0;\n var v_norm = [];\n var i;\n for (i = 0; i < v.length; i++){\n sum += Math.pow(v[i], 2);\n }\n sum = Math.sqrt(sum);\n for (i = 0; i < v.length; i++){\n v_norm[i] = v[i]/sum;\n }\n return v_norm;\n}", "magnitude(vec) {\n return Math.sqrt(\n Math.pow(vec[0], 2) + Math.pow(vec[1], 2)\n );\n }", "function sqrt(x) {\r\n var y;\r\n y = Math.sqrt(x);\r\n return y;\r\n}", "static Normalized(vec) {\n vec = new VecX(vec);\n if (vec.Magnitude() === 0)\n return vec.Multiply(0);\n return vec.Divide(vec.Magnitude());\n }", "function getMagnitude(vec) {\n let magnitude = 0;\n for (var elem of vec) {\n magnitude += elem ** 2;\n }\n magnitude = Math.sqrt(magnitude);\n return magnitude;\n}", "function norm(num, rangeBegin, rangeEnd){\n\t\treturn (num - rangeBegin) / (rangeEnd - rangeBegin);\n\t}", "function vector_normalize(v1) {\n let sum = 0;\n let v1_norm = [];\n for (let i = 0; i < v1.length; i++)\n sum += v1[i] ** 2;\n sum = Math.sqrt(sum);\n for (let i = 0; i < v1.length; i++)\n v1_norm[i] = v1[i]/sum;\n return v1_norm;\n}", "function norm(value, start, stop) {\n return (value - start) / (stop - start);\n}", "static Magnitude(x, y) {\n let vec = new Vec2(x, y);\n return (Math.sqrt(vec.x * vec.x + vec.y * vec.y));\n }", "function get_magnitudes (x) { return x.map( a => euclid_norm(a) ); }", "function normalize(a){\r\n var factor = 1/Math.sqrt(a.x*a.x + a.y*a.y);\r\n return scalar(factor,a);\r\n}", "normalize() {\n\t\tlet m = this.getMagnitude();\n\t\tlet x = 0;\n\t\tlet y = 0\n\t\t\n\t\tif(m !== 0) {\n\t\t\tx = this.x / m;\n\t\t\ty = this.y / m;\n\t\t}\n\t\t\n\t\treturn new Vector(x, y);\n\t}", "function normalize(vector) {\n\tconst magnitude = Math.sqrt(Math.pow(vector[0], 2) + Math.pow(vector[1], 2));\n\tvector[0] /= magnitude;\n\tvector[1] /= magnitude;\n\treturn vector;\n}", "function m_modVec(v) //objet x, y\n{\n return Math.sqrt(v.x*v.x + v.y*v.y);\n}", "static Normalized(x, y) {\n let vec = new Vec2(x, y);\n if (vec.Magnitude() === 0)\n return new Vec2(0);\n return vec.Divide(vec.Magnitude());\n }", "function square(x) {\n console.log(Math.sqrt(x));\n}", "function squareRoot(i){\n return Math.sqrt(i);\n}", "calculateMagnitude(vector) {\n let magnitude = 0\n for (let i = 0; i < vector.length; i++){\n if (isNaN(vector[i])) {\n magnitude += 0;\n } else {\n magnitude += vector[i] * vector[i];\n }\n }\n return Math.sqrt(magnitude);\n }", "function sqrt(n) {\n return 1 / inverseSqrt(n);\n}", "getMagnitude() {\n // use pythagoras theorem to work out the magnitude of the vector\n return Math.sqrt(this.x * this.x + this.y * this.y);\n }", "magnitude() {\n return Math.sqrt(this.x * this.x + this.y * this.y) || 0.01;\n }", "static Magnitude(x, y, z) {\n let vec = new Vec3(x, y, z);\n return (Math.sqrt(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z));\n }", "function normalize(vec) {\n\tvar mag = magnitude(vec);\n\t// console.log(typeof vec[0]);\n\tvar norm = [vec[0] / mag, vec[1] / mag];\n\t// console.log(norm);\n\treturn norm;\n}", "static lengthSquared(vec) {\n return vec.lengthSquared();\n }", "static lengthSquared(vec) {\n return vec.lengthSquared();\n }", "static lengthSquared(vec) {\n return vec.lengthSquared();\n }", "function vectorMagnitude (vector)\n{\n var magnitude = Math.sqrt ((vector[0]*vector[0]) + (vector[1]*vector[1]) + (vector[2]*vector[2]))\n return magnitude;\n}", "function square_root(x) {\n return Math.sqrt(x);\n}", "function Norm(z) {\n z=Math.abs(z);\n var p=1+ z*(0.04986735+ z*(0.02114101+ z*(0.00327763+ z*(0.0000380036+ z*(0.0000488906+ z*0.000005383)))))\n p=p*p; p=p*p; p=p*p\n return 1/(p*p)\n}", "normalize() {\n if (this._vector[3] !== 0) {\n this._vector[0] = this._vector[0] / this._vector[3];\n this._vector[1] = this._vector[1] / this._vector[3];\n this._vector[2] = this._vector[2] / this._vector[3];\n this._vector[3] = 1;\n }\n }", "getNormalize() {\n let length = this.getLength();\n return new Vector2d(this.x/length, this.y/length);\n }", "function squareRoot(num){\n\n return (num**0.5)\n}", "static squaredLengthV3(xyz) {\nreturn this.dotProductV3(xyz, xyz);\n}", "normalize() {\r\n let length = this.length();\r\n return new Vector2D(this.x / length, this.y / length);\r\n }", "normalized () {\n return Vector.normalize(this);\n }", "normalized () {\n return Vector.normalize(this);\n }", "magnitude() {\n return Math.sqrt(Math.pow(this.x, 2) + Math.pow(this.y, 2))\n }", "function standardNormalDist() {\n\treturn (Math.random()*2-1)+(Math.random()*2-1)+(Math.random()*2-1);\n}", "function magnitude(x, y){ return Math.sqrt(x*x + y*y); }", "function length(v) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__math__[\"B\" /* sqrt */])(v[0] * v[0] + v[1] * v[1]);\n}", "function length(v) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__math__[\"B\" /* sqrt */])(v[0] * v[0] + v[1] * v[1]);\n}", "function sqrt() {\n var cur = parseFloat(calcVals.cur);\n if (cur >= 0){\n calcVals.cur = Math.sqrt(cur).toString().substring(0, 11);\n calcVals.prevAttr = \"filler\";\n }\n}", "function innerProductNorm(v1, v2) {\n return (v1.x * v2.x + v1.y * v2.y) / (norm(v1) * norm(v2));\n }", "function lambda(r) {\n return (((r*r)-Math.sqrt((r*r)-(r*r*r*r)))/((2*r*r)-1));\n}", "function normal() {\n var x = 0, y = 0, rds, c;\n do {\n x = Math.random() * 2 - 1;\n y = Math.random() * 2 - 1;\n rds = x * x + y * y;\n } while (rds == 0 || rds > 1);\n c = Math.sqrt(-2 * Math.log(rds) / rds); // Box-Muller transform\n return x * c; // throw away extra sample y * c\n }", "function magnitude(vec){\n\treturn Math.sqrt(Math.pow(vec[0], 2) + Math.pow(vec[1], 2));\n}", "function calculateNormalVector(source, target, length) {\n var dx = target.x - source.x,\n dy = target.y - source.y,\n nx = -dy,\n ny = dx,\n vlength = Math.sqrt(nx * nx + ny * ny),\n ratio = length / vlength;\n\n return { x: nx * ratio, y: ny * ratio };\n }", "function randomNorm(mean, variance)\n{\n\t// Declare variables for the points and radius\n var x1, x2, w;\n\n // Repeat until suitable points are found\n do\n {\n \tx1 = 2.0 * randomFloat() - 1.0;\n \tx2 = 2.0 * randomFloat() - 1.0;\n \tw = x1 * x1 + x2 * x2;\n } while (w >= 1.0 || w == 0);\n\n // compute the multiplier\n w = Math.sqrt((-2.0 * Math.log(w)) / w);\n \n // compute the gaussian-distributed value\n var gaussian = x1 * w;\n \n // Shift the gaussian value according to the mean and variance\n return (gaussian * variance) + mean;\n}", "function computeSquareRoot(num) {\n return Math.sqrt(num)\n}", "function normalized(v) {\n var x = v[0];\n var y = v[1];\n var d = Math.sqrt(x*x + y*y);\n return [x/d, y/d];\n}", "function magnitude(vector) {\n return Math.hypot(vector.x, vector.y);\n}", "function squareRoot( number){\n return Math.sqrt(number);\n }", "function normal(u, v) {\n const du = duParametric(u, v), dv = dvParametric(u, v);\n return cross(du, dv);\n}", "static Normalized(x, y, z) {\n let vec = new Vec3(x, y, z);\n if (vec.Magnitude() === 0)\n return new Vec3(0);\n return vec.Divide(vec.Magnitude());\n }", "function normal() {\n var x = 0,\n y = 0,\n rds,\n c;\n do {\n x = Math.random() * 2 - 1;\n y = Math.random() * 2 - 1;\n rds = x * x + y * y;\n } while (rds == 0 || rds > 1);\n c = Math.sqrt(-2 * Math.log(rds) / rds); // Box-Muller transform\n return x * c; // throw away extra sample y * c\n}", "function crossProductNorm(v1, v2) {\n return (v1.x * v2.y - v2.x * v1.y) / (norm(v1) * norm(v2));\n }", "get modul(){ return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);}", "function calculateSide(sideA, sideB)\n{\n // returns sqrt\nreturn Math.sqrt(sideA * sideA + SideB * SideB)\n}", "function squareRoot()\n {\n current_input = Math.sqrt(current_input);\n displayCurrentInput();\n }", "function length(v) {\n return sqrt(v[0] * v[0] + v[1] * v[1]);\n}", "normalize() { \n\t\tlet m = Math.sqrt(this.x * this.x + this.y * this.y);\n\n\t\tthis.x /= m;\n\t\tthis.y /= m;\n\t\treturn this;\n\t}", "magSq()\r\n {\r\n let x = this.x;\r\n let y = this.y;\r\n return x * x + y * y;\r\n }", "calculateNormal(){\n this.normal = vec3.create();\n for (let i = 0; i < this.polygons.length; i++) {\n vec3.add(this.normal, this.normal, this.polygons[i].getNormal());\n }\n vec3.normalize(this.normal, this.normal)\n }", "function doubleSquareRootOf(num) {\n // your code here\n}", "function squareroot(sqr)\r\n{\r\n document.write(\"Square root is \"+Math.sqrt(sqr))\r\n}", "function hypot() {\r\n var i, n,\r\n t = new this(0);\r\n\r\n external = false;\r\n\r\n for (i = 0; i < arguments.length;) {\r\n n = new this(arguments[i++]);\r\n if (!n.d) {\r\n if (n.s) {\r\n external = true;\r\n return new this(1 / 0);\r\n }\r\n t = n;\r\n } else if (t.d) {\r\n t = t.plus(n.times(n));\r\n }\r\n }\r\n\r\n external = true;\r\n\r\n return t.sqrt();\r\n }", "function hypot() {\r\n var i, n,\r\n t = new this(0);\r\n\r\n external = false;\r\n\r\n for (i = 0; i < arguments.length;) {\r\n n = new this(arguments[i++]);\r\n if (!n.d) {\r\n if (n.s) {\r\n external = true;\r\n return new this(1 / 0);\r\n }\r\n t = n;\r\n } else if (t.d) {\r\n t = t.plus(n.times(n));\r\n }\r\n }\r\n\r\n external = true;\r\n\r\n return t.sqrt();\r\n }", "function hypot() {\r\n var i, n,\r\n t = new this(0);\r\n\r\n external = false;\r\n\r\n for (i = 0; i < arguments.length;) {\r\n n = new this(arguments[i++]);\r\n if (!n.d) {\r\n if (n.s) {\r\n external = true;\r\n return new this(1 / 0);\r\n }\r\n t = n;\r\n } else if (t.d) {\r\n t = t.plus(n.times(n));\r\n }\r\n }\r\n\r\n external = true;\r\n\r\n return t.sqrt();\r\n }", "function _normalizeVector(v){\n\t\tif(_almostEqual(v.x*v.x + v.y*v.y, 1)){\n\t\t\treturn v; // given vector was already a unit vector\n\t\t}\n\t\tvar len = Math.sqrt(v.x*v.x + v.y*v.y);\n\t\tvar inverse = 1/len;\n\t\t\n\t\treturn {\n\t\t\tx: v.x*inverse,\n\t\t\ty: v.y*inverse\n\t\t};\n\t}", "function rNormal(v) {\n return [-v[1], v[0]];\n}", "function hypot() {\n var i,\n n,\n t = new this(0);\n\n external = false;\n\n for (i = 0; i < arguments.length;) {\n n = new this(arguments[i++]);\n if (!n.d) {\n if (n.s) {\n external = true;\n return new this(1 / 0);\n }\n t = n;\n } else if (t.d) {\n t = t.plus(n.times(n));\n }\n }\n\n external = true;\n\n return t.sqrt();\n }", "function normish(mean, range) {\n var num_out = ((Math.random() + Math.random() + Math.random() + Math.random() - 2) / 2) * range + mean;\n return num_out;\n}", "function hypot() {\r\n var i, n,\r\n t = new this(0);\r\n\r\n external = false;\r\n\r\n for (i = 0; i < arguments.length;) {\r\n n = new this(arguments[i++]);\r\n if (!n.d) {\r\n if (n.s) {\r\n external = true;\r\n return new this(1 / 0);\r\n }\r\n t = n;\r\n } else if (t.d) {\r\n t = t.plus(n.times(n));\r\n }\r\n }\r\n\r\n external = true;\r\n\r\n return t.sqrt();\r\n}", "normalize() {\n return this.multiply(1 / this.magnitude());\n }", "normal() {\n var x = 0,\n y = 0,\n rds, c;\n do {\n x = Math.random() * 2 - 1;\n y = Math.random() * 2 - 1;\n rds = x * x + y * y;\n } while (rds == 0 || rds > 1);\n c = Math.sqrt(-2 * Math.log(rds) / rds); // Box-Muller transform\n return x * c; // throw away extra sample y * c\n }", "function sqrt(num) {\n if (num < 2) return 0\n return sqrtRecur(num, 0, num)\n}" ]
[ "0.7542385", "0.7480259", "0.74163264", "0.7403365", "0.7375341", "0.7218477", "0.719705", "0.71663624", "0.70061", "0.68845624", "0.68305975", "0.6648328", "0.6648156", "0.66436046", "0.661312", "0.6530234", "0.6526697", "0.6461827", "0.6304456", "0.62906593", "0.62856007", "0.624968", "0.6242214", "0.62374157", "0.6235951", "0.6225399", "0.62199104", "0.621414", "0.62085456", "0.6187866", "0.6159702", "0.6156351", "0.6136341", "0.6108849", "0.6076862", "0.6075863", "0.6052043", "0.60493284", "0.60081005", "0.5996023", "0.59858084", "0.5959002", "0.5952071", "0.5922101", "0.59180164", "0.5890737", "0.5880793", "0.58777636", "0.58777636", "0.58777636", "0.58708584", "0.586514", "0.5840381", "0.58308697", "0.5807276", "0.5803236", "0.5802724", "0.57511145", "0.5743608", "0.5743608", "0.573664", "0.5719954", "0.57071567", "0.57007587", "0.57007587", "0.56995195", "0.56774133", "0.5670447", "0.5659978", "0.56584823", "0.5642083", "0.5637372", "0.56215686", "0.56194603", "0.56141603", "0.5608288", "0.56077355", "0.5600342", "0.5595727", "0.5587743", "0.55772334", "0.55759746", "0.5573915", "0.5573866", "0.55653054", "0.55498385", "0.5539607", "0.5532262", "0.5531527", "0.5528949", "0.5528949", "0.5528949", "0.55257595", "0.5524719", "0.5521176", "0.5518776", "0.5510355", "0.55017936", "0.54863906", "0.5483754" ]
0.59617466
41
Example: "Vec.of( 4,4,4 ).normalized()" returns the Vec [ sqrt(3), sqrt(3), sqrt(3) ]
normalize() { this.scale(1 / this.norm()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "normalized () {\n return Vector.normalize(this);\n }", "normalized () {\n return Vector.normalize(this);\n }", "static Normalized(vec) {\n vec = new VecX(vec);\n if (vec.Magnitude() === 0)\n return vec.Multiply(0);\n return vec.Divide(vec.Magnitude());\n }", "normalize(vec) {\n const norm = Util.magnitude(vec);\n return Util.scale(vec, 1 / norm);\n }", "Normalized() {\n return Vec3.Normalized(this);\n }", "function vector_normalize(v) {\n var sum = 0;\n var v_norm = [];\n var i;\n for (i = 0; i < v.length; i++){\n sum += Math.pow(v[i], 2);\n }\n sum = Math.sqrt(sum);\n for (i = 0; i < v.length; i++){\n v_norm[i] = v[i]/sum;\n }\n return v_norm;\n}", "Normalized() {\n return Vec2.Normalized(this);\n }", "function normalized(v) {\n var x = v[0];\n var y = v[1];\n var d = Math.sqrt(x*x + y*y);\n return [x/d, y/d];\n}", "normalize() {\n\t\tlet m = this.getMagnitude();\n\t\tlet x = 0;\n\t\tlet y = 0\n\t\t\n\t\tif(m !== 0) {\n\t\t\tx = this.x / m;\n\t\t\ty = this.y / m;\n\t\t}\n\t\t\n\t\treturn new Vector(x, y);\n\t}", "Normalized() {\n return VecX.Normalized(this);\n }", "function normalize(vec) {\n\tvar mag = magnitude(vec);\n\t// console.log(typeof vec[0]);\n\tvar norm = [vec[0] / mag, vec[1] / mag];\n\t// console.log(norm);\n\treturn norm;\n}", "normalized() {\r\n return this.times(1 / this.norm());\r\n }", "function vector_normalize(v1) {\n let sum = 0;\n let v1_norm = [];\n for (let i = 0; i < v1.length; i++)\n sum += v1[i] ** 2;\n sum = Math.sqrt(sum);\n for (let i = 0; i < v1.length; i++)\n v1_norm[i] = v1[i]/sum;\n return v1_norm;\n}", "getNormalize() {\n let length = this.getLength();\n return new Vector2d(this.x/length, this.y/length);\n }", "static Normalized(x, y) {\n let vec = new Vec2(x, y);\n if (vec.Magnitude() === 0)\n return new Vec2(0);\n return vec.Divide(vec.Magnitude());\n }", "normalized() {\n\t\treturn this.multiply(1 / this.magnitude());\n\t}", "static normalize(v) {\n try {\n if (!(v instanceof Vector))\n throw \"Vector.normalize: parameter not a vector\";\n else {\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\n return(Vector.scale(lenDenom,v));\n }\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "norm(vec) {\n return Util.dist([0, 0], vec);\n }", "static Normalized(x, y, z) {\n let vec = new Vec3(x, y, z);\n if (vec.Magnitude() === 0)\n return new Vec3(0);\n return vec.Divide(vec.Magnitude());\n }", "function normalize(vector) {\n\tconst magnitude = Math.sqrt(Math.pow(vector[0], 2) + Math.pow(vector[1], 2));\n\tvector[0] /= magnitude;\n\tvector[1] /= magnitude;\n\treturn vector;\n}", "static normalize(v) {\r\n try {\r\n if (!(v instanceof Vector))\r\n throw \"Vector.normalize: parameter not a vector\";\r\n else {\r\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\r\n return(Vector.scale(lenDenom,v));\r\n }\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "norm(vec) \n { \n let mag = Math.sqrt(vec.x*vec.x + vec.y*vec.y);\n let multiplier = 1/mag;\n return {\n x: vec.x * multiplier,\n y: vec.y * multiplier\n };\n }", "normalize() {\r\n let length = this.length();\r\n return new Vector2D(this.x / length, this.y / length);\r\n }", "normalized()\n {\n let normalized = new Vector2(this.x, this.y);\n normalized.divide(normalized.getLength());\n return normalized;\n }", "function norm(vec) {\r\n var r = magnitude(vec);\r\n return {\r\n x: vec.x / r,\r\n y: vec.y / r\r\n };\r\n}", "function norm(a){return dot(a, a);}", "function _normalizeVector(v){\n\t\tif(_almostEqual(v.x*v.x + v.y*v.y, 1)){\n\t\t\treturn v; // given vector was already a unit vector\n\t\t}\n\t\tvar len = Math.sqrt(v.x*v.x + v.y*v.y);\n\t\tvar inverse = 1/len;\n\t\t\n\t\treturn {\n\t\t\tx: v.x*inverse,\n\t\t\ty: v.y*inverse\n\t\t};\n\t}", "normalize() {\n if (this._vector[3] !== 0) {\n this._vector[0] = this._vector[0] / this._vector[3];\n this._vector[1] = this._vector[1] / this._vector[3];\n this._vector[2] = this._vector[2] / this._vector[3];\n this._vector[3] = 1;\n }\n }", "norm (vec) {\n\t return Util.dist([0, 0], vec);\n\t }", "norm(vec) {\n return this.dist([0, 0], vec);\n }", "normalize(inplace=true)\n\t{\n\t\t//TODO: done\n\t\tvar magnitude = this.magnitude();\n\t\tif (!inplace)\n\t\t\treturn new Vector(this.x/magnitude, this.y/magnitude, this.z/magnitude);\n\t\tthis.x /= magnitude;\n\t\tthis.y /= magnitude;\n\t\tthis.z /= magnitude;\n\t\treturn this;\n\t}", "norm() {\r\n return Math.sqrt(this.dot(this));\r\n }", "function norm(v) {\n var v1 = v[0];\n var v2 = v[1];\n var result = Math.sqrt(v1*v1 + v2*v2);\n return result;\n}", "function normalized( v1 )\n {\n var ood = Math.sqrt( v1[0]*v1[0] + v1[1]*v1[1] + v1[2]*v1[2] );\n if( ood > 1e-5 ) ood = 1./ood;\n return [ ood*v1[0], ood*v1[1], ood*v1[2] ];\n }", "normalized() {\n return this.clone().normalize();\n }", "normalized() {\n return q.clone().normalize();\n }", "function normalize(vec3) {\n if (vec3.x === 0 && vec3.y === 0 && vec3.z === 0) {\n return vec3;\n }\n var length = Math.sqrt(vec3.x * vec3.x + vec3.y * vec3.y + vec3.z * vec3.z);\n var invScalar = 1 / length;\n vec3.x *= invScalar;\n vec3.y *= invScalar;\n vec3.z *= invScalar;\n return vec3;\n}", "function normalTo(vec){\r\n return {x: vec.y, y: -vec.x};\r\n}", "function normalize() {\n console.log(this.coords.map(n => n / this.length));\n}", "function normalize() {\n console.log(this.coords.map((n) => n / this.length));\n}", "static makeNormalized(...coordinates) {\n return new GridRange(...GridRange.normalize(...coordinates));\n }", "function normalizeV(v) {\n\tvar vLen = Math.sqrt(v.x*v.x + v.y*v.y + v.z*v.z);\n\tv.x /= vLen;\n\tv.y /= vLen;\n\tv.z /= vLen;\n\treturn v;\n}", "function normalize(a){\r\n var factor = 1/Math.sqrt(a.x*a.x + a.y*a.y);\r\n return scalar(factor,a);\r\n}", "get normalized() {}", "function normSquare (v) {return scalarProduct(v, v);}", "function get_magnitudes (x) { return x.map( a => euclid_norm(a) ); }", "norm( v ){\n\t\tvar i\n\t\tvar norm = 0\n\t\tfor( i = 0; i < v.length; i++ ){\n\t\t\tnorm += v[i]*v[i]\n\t\t}\n\t\tnorm = Math.sqrt( norm )\n\t\treturn norm\n\t}", "function norm(v) {\n var norm = 0.0;\n for (var i = 0; i < v.length; i++) {\n norm += v[i] * v[i];\n }\n norm = Math.sqrt(norm);\n return norm;\n}", "Normalize() {\n let vec = Vec2.Normalized(this);\n this.x = vec.x;\n this.y = vec.y;\n return this;\n }", "normalize() {var m = this.magnitude();return new M.XY(this.x/m,this.y/m);}", "normalize() {\n return this.multiply(1 / this.magnitude());\n }", "static norm(vector, n) {\n\t\treturn Math.sqrt(this.dot_product(vector, vector, n));\n\t}", "Normalize() {\n let vec = Vec3.Normalized(this);\n this.x = vec.x;\n this.y = vec.y;\n this.z = vec.z;\n return this;\n }", "normalize() { \n\t\tlet m = Math.sqrt(this.x * this.x + this.y * this.y);\n\n\t\tthis.x /= m;\n\t\tthis.y /= m;\n\t\treturn this;\n\t}", "Normalize() {\n this.values = VecX.Normalized(this).values;\n return this;\n }", "calculateNormal(){\n this.normal = vec3.create();\n for (let i = 0; i < this.polygons.length; i++) {\n vec3.add(this.normal, this.normal, this.polygons[i].getNormal());\n }\n vec3.normalize(this.normal, this.normal)\n }", "function norm2d(u)\r\n{\r\n return Math.sqrt(dot2d(u, u));\r\n}", "function calculateNormalVector(source, target, length) {\n var dx = target.x - source.x,\n dy = target.y - source.y,\n nx = -dy,\n ny = dx,\n vlength = Math.sqrt(nx * nx + ny * ny),\n ratio = length / vlength;\n\n return { x: nx * ratio, y: ny * ratio };\n }", "function normalize_v2(v) {\n var len = Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n return len == 0 ? v : [v[0] / len, v[1] / len];\n }", "normal() {\n return new Vector(-this.y, this.x);\n }", "static Magnitude(vec) {\n vec = new VecX(vec);\n return Math.sqrt(vec.values.reduce((adder, value) => adder + value * value, 0));\n }", "function normalizeInputs(inputs) {\n var rinputs = [];\n\n for (var i = 0; i < inputs.length; i++) {\n rinputs.push(inputs[i].normalize());\n }\n\n return rinputs;\n}", "recreateNormalizedVector(zMin, zMax) {\n const size = this.arrayWidth * this.arrayHeight;\n this.normalizedVector.clear();\n this.normalizedVector.resize(size, 0);\n let index = 0;\n const normalizationFactor = 1.0 / (zMax - zMin);\n for (let y = 0; y < this.arrayHeight; y++) {\n for (let x = 0; x < this.arrayWidth; x++) {\n // normalized value from 0..1 = (zValue - zMin) / ((zMax - zMin))\n const normalizedZValue = (this.zValuesProperty[y][x] - zMin) * normalizationFactor;\n this.normalizedVector.set(index++, normalizedZValue);\n }\n }\n }", "function getNormal(p1, p2) {\n if (p1[0] === p2[0] && p1[1] === p2[1]) {\n return [1, 0, 0];\n }\n\n var degrees2radians = Math.PI / 180;\n\n var lon1 = degrees2radians * p1[0];\n var lon2 = degrees2radians * p2[0];\n var lat1 = degrees2radians * p1[1];\n var lat2 = degrees2radians * p2[1];\n\n var a = Math.sin(lon2 - lon1) * Math.cos(lat2);\n var b = Math.cos(lat1) * Math.sin(lat2) - Math.sin(lat1) * Math.cos(lat2) * Math.cos(lon2 - lon1);\n\n return __WEBPACK_IMPORTED_MODULE_5_gl_vec3_normalize___default()([], [b, 0, -a]);\n}", "function rNormal(v) {\n return [-v[1], v[0]];\n}", "function normalizar() {\n console.log(this.coords.map((elemento) => elemento / this.length));\n}", "function normalize(P){\r\n let normalized = []\r\n let magnitude = findMagnitude(P) \r\n normalized.push (P[0]/magnitude)\r\n normalized.push (P[1]/magnitude)\r\n normalized.push (P[2]/magnitude)\r\n return normalized\r\n}", "function normalize () {\n console.log(this.coords.map(n => n / this.length))\n // the \"this\" in the arrow function refers to the local object rather than the global object since it is an arrow function.\n}", "function normalize(P){\r\n let normalized = []\r\n let magnitude = findMagnitude(P)\r\n normalized.push (P[0]/magnitude)\r\n normalized.push (P[1]/magnitude)\r\n normalized.push (P[2]/magnitude)\r\n return normalized\r\n}", "function normalize() {\n console.log(this.coords.map((n) => n / this.length));\n //this in the normalize function will be the object that is given to this function when it is called\n // this in the arrow function is the same as 'this' in the outer function\n} // the function maps the arrays coords of the object to return a new array of the elements divided by their length", "normal(i1, i2, i3) {\n return this.rawNormal(i1, i2, i3).normalize();\n }", "normalize() {\n let scale = 1.0 / this.length();\n this.xyz = this.xyz.multiplyScalar(scale);\n this.w *= scale;\n return this;\n }", "dir (vec) {\n\t var norm = Util.norm(vec);\n\t return Util.scale(vec, 1 / norm);\n\t }", "normalizeVec3(v, dest) {\n const f = 1.0 / math.lenVec3(v);\n return math.mulVec3Scalar(v, f, dest);\n }", "function normalize (x, y) {\n const s = Math.hypot(x, y);\n return [x / s, y / s];\n}", "function normalize (x, y) {\n const s = Math.hypot(x, y);\n return [x / s, y / s];\n}", "function edgeVisual_normalize(a) {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n\n return a;\n}", "normalize(length = 1) {\n const scale = length / this.magnitude();\n return this.scale(scale, scale);\n }", "dir(vec) {\n const norm = Util.norm(vec);\n return Util.scale(vec, 1 / norm);\n }", "normalize()\r\n {\r\n var len = this.mag();\r\n if (len !== 0) \r\n this.mult(1 / len);\r\n\r\n return this;\r\n }", "function normalize2d(x) {\n\tvar y = [x[0], x[1]];\n\tvar zero = [0, 0];\n\tvar mag = euclideanDist(zero, y);\n\tif (mag !== 0) {\n\t\ty[0] /= mag;\n\t\ty[1] /= mag;\n\t}\n\treturn y;\n}", "function normal(u, v) {\n const du = duParametric(u, v), dv = dvParametric(u, v);\n return cross(du, dv);\n}", "function m_modVec(v) //objet x, y\n{\n return Math.sqrt(v.x*v.x + v.y*v.y);\n}", "magnitude(vec) {\n return Math.sqrt(\n Math.pow(vec[0], 2) + Math.pow(vec[1], 2)\n );\n }", "function toUnitVector(v) {\r\n const len = vectorLen(v);\r\n return [v[0] / len, v[1] / len];\r\n}", "get normalized() {\n const [Q1, { x: Qx2, y: Qy2 }, { x: Qx, y: Qy }] = [\n { x: 0 + ((2 / 3) * (1 - 0)), y: 2 + ((2 / 3) * (0 - 2)) },\n { x: 2 + ((2 / 3) * (1 - 2)), y: 2 + ((2 / 3) * (0 - 2)) },\n { x: 2, y: 2 },\n ] // = commands.Q.normalized.points.slice(0, 3)\n const T1x2 = 4 > Qx ? 4 + (Qx - (4 - Qx2)) : 4 - (Qx - (4 - Qx2))\n const T1y2 = 2 > Qy ? 2 + (Qy - (4 - Qy2)) : 2 - (Qy - (4 - Qy2))\n const T2x2 = 6 + (4 - (8 - T1x2))\n const T2y2 = 2 - (2 - (4 - T1y2))\n\n return {\n points: [\n Q1, { x: Qx2, y: Qy2 }, { x: Qx, y: Qy },\n { x: 4 - Qx2, y: 4 - Qy2 }, { x: T1x2, y: T1y2 }, { x: 4, y: 2 },\n { x: 8 - T1x2, y: 4 - T1y2 }, { x: T2x2, y: T2y2 }, { x: 6, y: 2 },\n { x: 6, y: 2 }, { x: 0, y: 2 }, { x: 0, y: 2 },\n ],\n type: 'C',\n }\n }", "absVector(vec) {\n var ret = new BABYLON.Vector3();\n ret.x = Math.abs(vec.x);\n ret.y = Math.abs(vec.y);\n ret.z = Math.abs(vec.z);\n return ret;\n }", "normalizeCurve() {\n const center = this[Math.floor(this.length / 2)]\n const min = Math.min(...this) - center\n const max = Math.max(...this) - center\n\n const amp = Math.abs(max) > Math.abs(min) ? max : min\n for (let i = 0; i < this.length; i++) {\n const v = this[i]\n this[i] = (v - center) / amp\n }\n }", "function getNormal(v1, v2, v3) {\r\n const s1 = new THREE.Vector3().add(v1).sub(v2);\r\n const s2 = new THREE.Vector3().add(v2).sub(v3);\r\n return new THREE.Vector3().crossVectors(s2, s1);\r\n}", "function unitVector(P1, P2) {\n var x1 = P1[0];\n var y1 = P1[1];\n var x2 = P2[0];\n var y2 = P2[1];\n var v = [x2-x1, y2-y1];\n var v1 = v[0];\n var v2 = v[1];\n var u1 = v1 / norm(v);\n var u2 = v2 / norm(v);\n var u = [u1, u2];\n return u;\n}", "function computeVertexNormal(vertexX, vertexY, vertexZ){\n //normalize\n var scale = computeScaleForLength(vertexX, vertexY, vertexZ, 1);\n var normal = []\n normal.push(vertexX * scale);\n normal.push(vertexY * scale);\n normal.push(vertexZ * scale);\n return normal;\n}", "static inv(v) {\n\t\treturn new vector(1/v.x, 1/v.y);\n\t}", "function l2Normalize(x, axis) {\n return tfjs_core_1.tidy(function () {\n if (x.dtype !== 'float32') {\n x = x.asType('float32');\n }\n var squareSum = tfc.sum(K.square(x), axis, true);\n var epsilonTensor = tfc.fill(squareSum.shape, common_1.epsilon());\n var norm = tfc.sqrt(tfc.maximum(squareSum, epsilonTensor));\n return tfc.div(x, norm);\n });\n}", "function l2Normalize(x, axis) {\n return tfjs_core_1.tidy(function () {\n if (x.dtype !== 'float32') {\n x = x.asType('float32');\n }\n var squareSum = tfc.sum(K.square(x), axis, true);\n var epsilonTensor = tfc.fill(squareSum.shape, common_1.epsilon());\n var norm = tfc.sqrt(tfc.maximum(squareSum, epsilonTensor));\n return tfc.div(x, norm);\n });\n}", "getNormal(u, controlPoints){\n /*Se obtiene la tangente en el punto*/\n var tangent = this.getTangent(u, controlPoints);\n var tanVec = vec3.fromValues(tangent.x, tangent.y, tangent.z);\n /*Se normaliza la tangente*/\n var nTan = vec3.create();\n vec3.normalize(nTan, tanVec);\n /*Vector del eje Y (o X si esta en el eje Y la curva)*/\n var auxVec = vec3.create();\n var multiplyVec = vec3.fromValues(0, -1, 0);\n if (tangent.x == 0 && tangent.z == 0) multiplyVec = vec3.fromValues(-1, 0, 0);\n vec3.cross(auxVec, nTan, multiplyVec);\n /*Se obtiene el vector normal como el producto vectorial entre la\n tangente y el eje Y (si la tangente es vertical no funciona)*/\n var normVec = vec3.create();\n vec3.cross(normVec, tanVec, auxVec);\n /*Se crea el punto a partir del vector obtenido*/\n var normal = new Point(normVec[0], normVec[1], normVec[2]);\n return normal;\n }", "static Absolute(vec) {\n let Vec = new VecX(vec);\n return Vec.Absolute();\n }", "normal() {\n var x = 0,\n y = 0,\n rds, c;\n do {\n x = Math.random() * 2 - 1;\n y = Math.random() * 2 - 1;\n rds = x * x + y * y;\n } while (rds == 0 || rds > 1);\n c = Math.sqrt(-2 * Math.log(rds) / rds); // Box-Muller transform\n return x * c; // throw away extra sample y * c\n }", "function norm(value, start, stop) {\n return (value - start) / (stop - start);\n}", "function getMagnitude(vec) {\n let magnitude = 0;\n for (var elem of vec) {\n magnitude += elem ** 2;\n }\n magnitude = Math.sqrt(magnitude);\n return magnitude;\n}", "static setNormalizeV3(xyz) {\nvar len;\n//--------------\nlen = this.lengthV3(xyz);\nif (1e-5 <= len) {\nreturn this.setInverseScaleV3(xyz, len);\n} else {\nreturn xyz;\n}\n}" ]
[ "0.75587344", "0.75587344", "0.7331945", "0.72905034", "0.71814275", "0.7149609", "0.7135719", "0.71272594", "0.7097993", "0.70924044", "0.7055217", "0.7049542", "0.69635206", "0.693609", "0.6922648", "0.69141155", "0.6909233", "0.6897788", "0.68697476", "0.686928", "0.68678993", "0.68430895", "0.6828635", "0.68143314", "0.6800754", "0.6764734", "0.6760809", "0.6747608", "0.67180747", "0.659123", "0.65849614", "0.6574285", "0.65558034", "0.65109813", "0.6476427", "0.64495784", "0.6443301", "0.6427383", "0.6424692", "0.63904697", "0.63901496", "0.6372642", "0.63522536", "0.63360685", "0.6311392", "0.62911004", "0.6287302", "0.62832004", "0.62776464", "0.62721455", "0.6245174", "0.623026", "0.6215142", "0.6198648", "0.61581343", "0.6111969", "0.6053379", "0.6022084", "0.6001478", "0.59947246", "0.5970661", "0.59677637", "0.5943763", "0.5911317", "0.5904727", "0.58835727", "0.58692324", "0.5858094", "0.58548427", "0.5847211", "0.58322465", "0.5795832", "0.57700557", "0.57697827", "0.57692665", "0.57692665", "0.5755099", "0.5753909", "0.5733093", "0.569015", "0.56891394", "0.56872356", "0.5675593", "0.5640223", "0.56264645", "0.5623169", "0.5620758", "0.56110346", "0.55969375", "0.554574", "0.55347556", "0.55023015", "0.5496734", "0.5496734", "0.5489235", "0.54853344", "0.54840106", "0.54831415", "0.54723024", "0.54709435" ]
0.59704435
61
Example: "Vec.of( 4,4,4 ).normalize()" overwrites the Vec with [ sqrt(3), sqrt(3), sqrt(3) ].
dot(b) // Example: "Vec.of( 1,2,3 ).dot( Vec.of( 1,2,3 ) )" returns 15. { if (this.length == 3) return this[0] * b[0] + this[1] * b[1] + this[2] * b[2]; // Optimized to do the arithmatic manually for array lengths less than 4. if (this.length == 4) return this[0] * b[0] + this[1] * b[1] + this[2] * b[2] + this[3] * b[3]; if (this.length > 4) return this.reduce((acc, x, i) => { return acc + x * b[i]; }, 0); return this[0] * b[0] + this[1] * b[1]; // Assume length 2 otherwise. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "normalize(vec) {\n const norm = Util.magnitude(vec);\n return Util.scale(vec, 1 / norm);\n }", "static Normalized(vec) {\n vec = new VecX(vec);\n if (vec.Magnitude() === 0)\n return vec.Multiply(0);\n return vec.Divide(vec.Magnitude());\n }", "normalized () {\n return Vector.normalize(this);\n }", "normalized () {\n return Vector.normalize(this);\n }", "static normalize(v) {\n try {\n if (!(v instanceof Vector))\n throw \"Vector.normalize: parameter not a vector\";\n else {\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\n return(Vector.scale(lenDenom,v));\n }\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "normalize() {\n if (this._vector[3] !== 0) {\n this._vector[0] = this._vector[0] / this._vector[3];\n this._vector[1] = this._vector[1] / this._vector[3];\n this._vector[2] = this._vector[2] / this._vector[3];\n this._vector[3] = 1;\n }\n }", "static normalize(v) {\r\n try {\r\n if (!(v instanceof Vector))\r\n throw \"Vector.normalize: parameter not a vector\";\r\n else {\r\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\r\n return(Vector.scale(lenDenom,v));\r\n }\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "normalize(inplace=true)\n\t{\n\t\t//TODO: done\n\t\tvar magnitude = this.magnitude();\n\t\tif (!inplace)\n\t\t\treturn new Vector(this.x/magnitude, this.y/magnitude, this.z/magnitude);\n\t\tthis.x /= magnitude;\n\t\tthis.y /= magnitude;\n\t\tthis.z /= magnitude;\n\t\treturn this;\n\t}", "normalize() {\r\n let length = this.length();\r\n return new Vector2D(this.x / length, this.y / length);\r\n }", "normalize() {\n\t\tlet m = this.getMagnitude();\n\t\tlet x = 0;\n\t\tlet y = 0\n\t\t\n\t\tif(m !== 0) {\n\t\t\tx = this.x / m;\n\t\t\ty = this.y / m;\n\t\t}\n\t\t\n\t\treturn new Vector(x, y);\n\t}", "function normalize(vector) {\n\tconst magnitude = Math.sqrt(Math.pow(vector[0], 2) + Math.pow(vector[1], 2));\n\tvector[0] /= magnitude;\n\tvector[1] /= magnitude;\n\treturn vector;\n}", "function vector_normalize(v) {\n var sum = 0;\n var v_norm = [];\n var i;\n for (i = 0; i < v.length; i++){\n sum += Math.pow(v[i], 2);\n }\n sum = Math.sqrt(sum);\n for (i = 0; i < v.length; i++){\n v_norm[i] = v[i]/sum;\n }\n return v_norm;\n}", "function vector_normalize(v1) {\n let sum = 0;\n let v1_norm = [];\n for (let i = 0; i < v1.length; i++)\n sum += v1[i] ** 2;\n sum = Math.sqrt(sum);\n for (let i = 0; i < v1.length; i++)\n v1_norm[i] = v1[i]/sum;\n return v1_norm;\n}", "Normalize() {\n this.values = VecX.Normalized(this).values;\n return this;\n }", "normalize() {\r\n this.scale(1 / this.norm());\r\n }", "function _normalizeVector(v){\n\t\tif(_almostEqual(v.x*v.x + v.y*v.y, 1)){\n\t\t\treturn v; // given vector was already a unit vector\n\t\t}\n\t\tvar len = Math.sqrt(v.x*v.x + v.y*v.y);\n\t\tvar inverse = 1/len;\n\t\t\n\t\treturn {\n\t\t\tx: v.x*inverse,\n\t\t\ty: v.y*inverse\n\t\t};\n\t}", "Normalized() {\n return VecX.Normalized(this);\n }", "normalize() { \n\t\tlet m = Math.sqrt(this.x * this.x + this.y * this.y);\n\n\t\tthis.x /= m;\n\t\tthis.y /= m;\n\t\treturn this;\n\t}", "normalized() {\r\n return this.times(1 / this.norm());\r\n }", "getNormalize() {\n let length = this.getLength();\n return new Vector2d(this.x/length, this.y/length);\n }", "normalize() {\n return this.multiply(1 / this.magnitude());\n }", "Normalize() {\n let vec = Vec2.Normalized(this);\n this.x = vec.x;\n this.y = vec.y;\n return this;\n }", "static Normalized(x, y) {\n let vec = new Vec2(x, y);\n if (vec.Magnitude() === 0)\n return new Vec2(0);\n return vec.Divide(vec.Magnitude());\n }", "function normalize(vec) {\n\tvar mag = magnitude(vec);\n\t// console.log(typeof vec[0]);\n\tvar norm = [vec[0] / mag, vec[1] / mag];\n\t// console.log(norm);\n\treturn norm;\n}", "function normalize(a){\r\n var factor = 1/Math.sqrt(a.x*a.x + a.y*a.y);\r\n return scalar(factor,a);\r\n}", "Normalized() {\n return Vec2.Normalized(this);\n }", "Normalized() {\n return Vec3.Normalized(this);\n }", "Normalize() {\n let vec = Vec3.Normalized(this);\n this.x = vec.x;\n this.y = vec.y;\n this.z = vec.z;\n return this;\n }", "norm(vec) \n { \n let mag = Math.sqrt(vec.x*vec.x + vec.y*vec.y);\n let multiplier = 1/mag;\n return {\n x: vec.x * multiplier,\n y: vec.y * multiplier\n };\n }", "static Normalized(x, y, z) {\n let vec = new Vec3(x, y, z);\n if (vec.Magnitude() === 0)\n return new Vec3(0);\n return vec.Divide(vec.Magnitude());\n }", "normalized() {\n return this.clone().normalize();\n }", "norm(vec) {\n return Util.dist([0, 0], vec);\n }", "function normalized(v) {\n var x = v[0];\n var y = v[1];\n var d = Math.sqrt(x*x + y*y);\n return [x/d, y/d];\n}", "normalize() {var m = this.magnitude();return new M.XY(this.x/m,this.y/m);}", "normalized() {\n\t\treturn this.multiply(1 / this.magnitude());\n\t}", "function norm(vec) {\r\n var r = magnitude(vec);\r\n return {\r\n x: vec.x / r,\r\n y: vec.y / r\r\n };\r\n}", "function normalize() {\n console.log(this.coords.map(n => n / this.length));\n}", "function normalizeV(v) {\n\tvar vLen = Math.sqrt(v.x*v.x + v.y*v.y + v.z*v.z);\n\tv.x /= vLen;\n\tv.y /= vLen;\n\tv.z /= vLen;\n\treturn v;\n}", "function norm(a){return dot(a, a);}", "function normalize() {\n console.log(this.coords.map((n) => n / this.length));\n}", "normalize(length = 1) {\n const scale = length / this.magnitude();\n return this.scale(scale, scale);\n }", "normalize() {\n let scale = 1.0 / this.length();\n this.xyz = this.xyz.multiplyScalar(scale);\n this.w *= scale;\n return this;\n }", "norm (vec) {\n\t return Util.dist([0, 0], vec);\n\t }", "normalize()\r\n {\r\n var len = this.mag();\r\n if (len !== 0) \r\n this.mult(1 / len);\r\n\r\n return this;\r\n }", "norm(vec) {\n return this.dist([0, 0], vec);\n }", "norm() {\r\n return Math.sqrt(this.dot(this));\r\n }", "calculateNormal(){\n this.normal = vec3.create();\n for (let i = 0; i < this.polygons.length; i++) {\n vec3.add(this.normal, this.normal, this.polygons[i].getNormal());\n }\n vec3.normalize(this.normal, this.normal)\n }", "normalized()\n {\n let normalized = new Vector2(this.x, this.y);\n normalized.divide(normalized.getLength());\n return normalized;\n }", "normalized() {\n return q.clone().normalize();\n }", "function norm(v) {\n var v1 = v[0];\n var v2 = v[1];\n var result = Math.sqrt(v1*v1 + v2*v2);\n return result;\n}", "normalize(length = 1) {\n const currentLength = this.getLength();\n const scale = currentLength ? length / currentLength : 0;\n const point = new Point(this.x * scale, this.y * scale);\n // Preserve angle.\n if (scale >= 0) {\n point._angle = this._angle;\n }\n return point;\n }", "normalize() {\n let len = this.length();\n this.div(len);\n return this;\n }", "function normalize(vec3) {\n if (vec3.x === 0 && vec3.y === 0 && vec3.z === 0) {\n return vec3;\n }\n var length = Math.sqrt(vec3.x * vec3.x + vec3.y * vec3.y + vec3.z * vec3.z);\n var invScalar = 1 / length;\n vec3.x *= invScalar;\n vec3.y *= invScalar;\n vec3.z *= invScalar;\n return vec3;\n}", "function norm(v) {\n var norm = 0.0;\n for (var i = 0; i < v.length; i++) {\n norm += v[i] * v[i];\n }\n norm = Math.sqrt(norm);\n return norm;\n}", "normalizeVec3(v, dest) {\n const f = 1.0 / math.lenVec3(v);\n return math.mulVec3Scalar(v, f, dest);\n }", "function normalize() {\n console.log(this.coords.map((n) => n / this.length));\n //this in the normalize function will be the object that is given to this function when it is called\n // this in the arrow function is the same as 'this' in the outer function\n} // the function maps the arrays coords of the object to return a new array of the elements divided by their length", "function normalize () {\n console.log(this.coords.map(n => n / this.length))\n // the \"this\" in the arrow function refers to the local object rather than the global object since it is an arrow function.\n}", "function normalizar() {\n console.log(this.coords.map((elemento) => elemento / this.length));\n}", "function normalize_v2(v) {\n var len = Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n return len == 0 ? v : [v[0] / len, v[1] / len];\n }", "function normalized( v1 )\n {\n var ood = Math.sqrt( v1[0]*v1[0] + v1[1]*v1[1] + v1[2]*v1[2] );\n if( ood > 1e-5 ) ood = 1./ood;\n return [ ood*v1[0], ood*v1[1], ood*v1[2] ];\n }", "norm( v ){\n\t\tvar i\n\t\tvar norm = 0\n\t\tfor( i = 0; i < v.length; i++ ){\n\t\t\tnorm += v[i]*v[i]\n\t\t}\n\t\tnorm = Math.sqrt( norm )\n\t\treturn norm\n\t}", "function normalTo(vec){\r\n return {x: vec.y, y: -vec.x};\r\n}", "function normSquare (v) {return scalarProduct(v, v);}", "get normalized() {}", "static makeNormalized(...coordinates) {\n return new GridRange(...GridRange.normalize(...coordinates));\n }", "function normalize (x, y) {\n const s = Math.hypot(x, y);\n return [x / s, y / s];\n}", "function normalize (x, y) {\n const s = Math.hypot(x, y);\n return [x / s, y / s];\n}", "normalizeVec2(v, dest) {\n const f = 1.0 / math.lenVec2(v);\n return math.mulVec2Scalar(v, f, dest);\n }", "function normalizeInputs(inputs) {\n var rinputs = [];\n\n for (var i = 0; i < inputs.length; i++) {\n rinputs.push(inputs[i].normalize());\n }\n\n return rinputs;\n}", "normal(i1, i2, i3) {\n return this.rawNormal(i1, i2, i3).normalize();\n }", "function normalize(point) {\n let x = point.x;\n let y = point.y;\n let bSquared = (x * x) + (y * y);\n let mag = Math.sqrt(bSquared);\n point.x = x / mag;\n point.y = y / mag;\n return point;\n}", "function edgeVisual_normalize(a) {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n\n return a;\n}", "normalizeVec4(v, dest) {\n const f = 1.0 / math.lenVec4(v);\n return math.mulVec4Scalar(v, f, dest);\n }", "function calculateNormalVector(source, target, length) {\n var dx = target.x - source.x,\n dy = target.y - source.y,\n nx = -dy,\n ny = dx,\n vlength = Math.sqrt(nx * nx + ny * ny),\n ratio = length / vlength;\n\n return { x: nx * ratio, y: ny * ratio };\n }", "recreateNormalizedVector(zMin, zMax) {\n const size = this.arrayWidth * this.arrayHeight;\n this.normalizedVector.clear();\n this.normalizedVector.resize(size, 0);\n let index = 0;\n const normalizationFactor = 1.0 / (zMax - zMin);\n for (let y = 0; y < this.arrayHeight; y++) {\n for (let x = 0; x < this.arrayWidth; x++) {\n // normalized value from 0..1 = (zValue - zMin) / ((zMax - zMin))\n const normalizedZValue = (this.zValuesProperty[y][x] - zMin) * normalizationFactor;\n this.normalizedVector.set(index++, normalizedZValue);\n }\n }\n }", "normalizeCurve() {\n const center = this[Math.floor(this.length / 2)]\n const min = Math.min(...this) - center\n const max = Math.max(...this) - center\n\n const amp = Math.abs(max) > Math.abs(min) ? max : min\n for (let i = 0; i < this.length; i++) {\n const v = this[i]\n this[i] = (v - center) / amp\n }\n }", "static norm(vector, n) {\n\t\treturn Math.sqrt(this.dot_product(vector, vector, n));\n\t}", "async normalize () {\n\t}", "function normalize2d(x) {\n\tvar y = [x[0], x[1]];\n\tvar zero = [0, 0];\n\tvar mag = euclideanDist(zero, y);\n\tif (mag !== 0) {\n\t\ty[0] /= mag;\n\t\ty[1] /= mag;\n\t}\n\treturn y;\n}", "normal() {\n return new Vector(-this.y, this.x);\n }", "function normalize(point) {\n var oneOverLen = 1 / ParticleUtils.length(point);\n point.x *= oneOverLen;\n point.y *= oneOverLen;\n }", "function norm(value, start, stop) {\n return (value - start) / (stop - start);\n}", "static setNormalizeQV(qv) {\nvar lensq;\n//--------------\n// Do nothing if qv is too close to zero.\nlensq = this.innerProductQV(qv, qv);\nif (1e-12 < lensq) {\nreturn setScaleQV(qv, 1 / Math.sqrt(lensq));\n} else {\nreturn qv;\n}\n}", "static Magnitude(vec) {\n vec = new VecX(vec);\n return Math.sqrt(vec.values.reduce((adder, value) => adder + value * value, 0));\n }", "function normalize(P){\r\n let normalized = []\r\n let magnitude = findMagnitude(P) \r\n normalized.push (P[0]/magnitude)\r\n normalized.push (P[1]/magnitude)\r\n normalized.push (P[2]/magnitude)\r\n return normalized\r\n}", "dir (vec) {\n\t var norm = Util.norm(vec);\n\t return Util.scale(vec, 1 / norm);\n\t }", "function normalize(P){\r\n let normalized = []\r\n let magnitude = findMagnitude(P)\r\n normalized.push (P[0]/magnitude)\r\n normalized.push (P[1]/magnitude)\r\n normalized.push (P[2]/magnitude)\r\n return normalized\r\n}", "function norm2d(u)\r\n{\r\n return Math.sqrt(dot2d(u, u));\r\n}", "static setNormalizeV3(xyz) {\nvar len;\n//--------------\nlen = this.lengthV3(xyz);\nif (1e-5 <= len) {\nreturn this.setInverseScaleV3(xyz, len);\n} else {\nreturn xyz;\n}\n}", "set normalized(value) {}", "function normalize(distance) {\n return distance / (0.005 * r);\n}", "function normalize(coords) {\n let relaxCoefficient = 0.8;\n let xArr = coords.map(x => x.x);\n let yArr = coords.map(x => x.y);\n let xExtent = extent(xArr);\n let xDeviation = deviation(xArr);\n let yExtent = extent(yArr);\n let yDeviation = deviation(yArr);\n xExtent[0] -= relaxCoefficient * xDeviation;\n xExtent[1] += relaxCoefficient * xDeviation;\n yExtent[0] -= relaxCoefficient * yDeviation;\n yExtent[1] += relaxCoefficient * yDeviation;\n console.log('extents: ' + xExtent + ' ' + yExtent);\n\n let xScale = scaleLinear().domain(xExtent);\n let yScale = scaleLinear().domain(yExtent);\n\n return coords.map(d => ({x: xScale(d.x), y: yScale(d.y)}));\n}", "function normalize(d) {\n\tvar total = sum(d);\n\tfor (var key in d) {\n\t if (d.hasOwnProperty(key)) {\n\t d[key] = d[key]/total;\n\t }\n\t}\n}", "function l2Normalize(x, axis) {\n return tfjs_core_1.tidy(function () {\n if (x.dtype !== 'float32') {\n x = x.asType('float32');\n }\n var squareSum = tfc.sum(K.square(x), axis, true);\n var epsilonTensor = tfc.fill(squareSum.shape, common_1.epsilon());\n var norm = tfc.sqrt(tfc.maximum(squareSum, epsilonTensor));\n return tfc.div(x, norm);\n });\n}", "function l2Normalize(x, axis) {\n return tfjs_core_1.tidy(function () {\n if (x.dtype !== 'float32') {\n x = x.asType('float32');\n }\n var squareSum = tfc.sum(K.square(x), axis, true);\n var epsilonTensor = tfc.fill(squareSum.shape, common_1.epsilon());\n var norm = tfc.sqrt(tfc.maximum(squareSum, epsilonTensor));\n return tfc.div(x, norm);\n });\n}", "function normal(u, v) {\n const du = duParametric(u, v), dv = dvParametric(u, v);\n return cross(du, dv);\n}", "dir(vec) {\n const norm = Util.norm(vec);\n return Util.scale(vec, 1 / norm);\n }", "function m_modVec(v) //objet x, y\n{\n return Math.sqrt(v.x*v.x + v.y*v.y);\n}", "normalizeCenter( input, el ) {\n\t\t\treturn new Three.Vector2(\n\t\t\t\t( input.x / el.clientWidth ) * 2 - 1,\n\t\t\t\t-( input.y / el.clientHeight ) * 2 + 1\n\t\t\t);\n\t\t}", "function normalProjection(normal, v) {\n return sub(v, scale(normal, dot(normal, v)));\n}", "function normalizamosElFitness() {\n let sum = 0;\n for (let i = 0; i < fitness.length; i++) {\n sum += fitness[i];\n }\n for (let i = 0; i < fitness.length; i++) {\n fitness[i] = fitness[i] / sum;\n }\n}" ]
[ "0.7825508", "0.76664144", "0.7553512", "0.7553512", "0.75097775", "0.7507168", "0.7476836", "0.74660647", "0.7400076", "0.7397837", "0.7378309", "0.73022765", "0.7270133", "0.725188", "0.72281075", "0.71421283", "0.7139801", "0.71324384", "0.710753", "0.7081092", "0.70685524", "0.70637757", "0.7032921", "0.7028109", "0.69828635", "0.69101936", "0.6893989", "0.6879479", "0.6847312", "0.6841823", "0.6839106", "0.67775005", "0.67772067", "0.67707044", "0.67606115", "0.6751025", "0.67493534", "0.6746594", "0.67402494", "0.67343134", "0.6724924", "0.6719148", "0.669687", "0.66883814", "0.6638209", "0.6583594", "0.6562188", "0.6481858", "0.6467615", "0.6465586", "0.6413298", "0.6405878", "0.63979584", "0.63845915", "0.63582176", "0.63581705", "0.6356162", "0.6315553", "0.62983257", "0.6280455", "0.6263868", "0.6225724", "0.6206359", "0.6145486", "0.61285955", "0.6120233", "0.6120233", "0.6096675", "0.60801667", "0.60788125", "0.60535824", "0.6032929", "0.6004008", "0.5990145", "0.5965714", "0.5955661", "0.5952156", "0.59393287", "0.5928217", "0.58532315", "0.58375806", "0.5823596", "0.58228576", "0.58152735", "0.58069867", "0.5787496", "0.57799685", "0.5777628", "0.5763312", "0.56961215", "0.5645057", "0.5634806", "0.5630185", "0.5623627", "0.5623627", "0.5618047", "0.5616047", "0.560829", "0.55682623", "0.55545425", "0.552414" ]
0.0
-1
Using cast() saves having to type Vec.of so many times:
static cast(...args) { return args.map(x => Vec.from(x)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function castToArray(cast) {\n\t\t\treturn cast && cast.length ? Array.prototype.slice.call(cast) : null;\n\t\t}", "function cast(){\n\t//nothing\n}", "function handleArray (val) {\n\t\tvar self = this;\n\t\treturn val.map(function (m) {\n\t\t\treturn self.cast(m);\n\t\t});\n\t}", "function castAsArray(arg) {\n if (!Array.isArray(arg)) {\n arg = [arg];\n }\n\n return arg;\n}", "function safeCastArray(value) {\n if (value) {\n return castArray(value);\n } else {\n return [];\n }\n}", "function sc_list2vector(l) {\n var a = new sc_Vector();\n while(l !== null) {\n\ta.push(l.car);\n\tl = l.cdr;\n }\n return a;\n}", "_cast(definition) {\n definition.coordinates = EntityCoordinates.fromObject(definition.coordinates)\n return definition\n }", "function arrayFromVector(vector) {\n return vector.dictionary ? arrayFromDictionary(vector)\n : vector.nullCount > 0 ? [...vector]\n : vector.toArray();\n}", "function _setCoerce(obj) {\n return _array.call(this, Array.from(obj));\n}", "copy() {\r\n return this.map(r => Vec.of(...r));\r\n }", "function coll2array(coll) {\r\n return coll && ('tagName' in coll ? [coll] : (function() {\r\n for (var i=0, len=coll.length, arr=new Array(len); i<len; i++) arr[i]=coll[i];\r\n return arr\r\n })());\r\n}", "function cast(x, dtype) {\n return x.asType(dtype);\n}", "function cast(x, dtype) {\n return x.asType(dtype);\n}", "function cast(x, dtype) {\n return x.asType(dtype);\n}", "static castToPrimitiveType(field, data) {\n if (data.hasOwnProperty(field)) {\n if (Array.isArray(data[field])) {\n data[field] = data[field].map(val => detectType(val));\n } else {\n data[field] = detectType(data[field]);\n }\n }\n }", "function castImmutable(value) {\n return value;\n}", "function u(t){return this.cast(t)}", "function stream_to_vector(lst){\n var vector = [];\n while(!is_empty_list(lst)){\n vector.push(head(lst));\n lst = stream_tail(lst);\n }\n return vector;\n}", "function toArray(thing) {\n return Array.prototype.slice.call(thing);\n }", "function convertToArray(val) {\n if (val instanceof Map) {\n return Array.from(val.values());\n }\n return Array.isArray(val) ? val : Array.from(val);\n}", "function l(t){return this.cast(t)}", "function l(t){return this.cast(t)}", "function toArray(data) {\n return data instanceof Array ? data : [data];\n}", "function cast(Ctr, ob) {\n\tif (ob instanceof Ctr) {\n\t\treturn ob;\n\t}\n\treturn new Ctr(ob);\n}", "function convertToArrs(elem) {\n return function(el) {\n return el.qs.map(convertTo(elem));\n };\n }", "function toArray(thing) {\n return Array.prototype.slice.call(thing);\n}", "function asItem(x) { return toType('item', x) }", "valueOf() {\n const ret = [];\n ret.push(...this);\n return ret;\n }", "function toArray(arr){\n var list = new ArrayList(arr.length);\n for(i in arr)\n list.add(toJava(arr[i]));\n return list;\n}", "toArray() {}", "toArray() {}", "toArray() {}", "function toArray() {\n return this.map();\n }", "function transformerList(val) {\n return util.arrayify(val);\n}", "function transformerList(val) {\n\t return util.arrayify(val);\n\t}", "function transformerList(val) {\n\t return util.arrayify(val);\n\t}", "function toVector(arr)\n\t\t\t{\n\t\t\t\treturn concat.apply([], arr);\n\t\t\t}", "valueOf () {\r\n const ret = []\r\n ret.push(...this)\r\n return ret\r\n }", "static _fromData(datas) {\n if (!isArray(datas)) {\n return this._fromDataSingle(datas);\n }\n return datas.map(this._fromDataSingle.bind(this));\n }", "toArray() {\n let arr = [];\n this.map((data) => { arr.push(data); return data});\n return arr;\n }", "function as_(self, b) {\n return core.map_(self, () => b);\n}", "function fromColToArrCollection(collection) {\r\n var newCollection = $([]);\r\n $.each(collection, function(i, item) {\r\n newCollection.push($(item));\r\n });\r\n return newCollection;\r\n }", "toArray() {\r\n // copy\r\n return this.values.map((v) => v);\r\n }", "_convertTo(resource) {\n if (resource instanceof Array) {\n return resource.map(r => this._convertTo(r));\n }\n const r = resource;\n if (resource.id)\n r._id = resource.id;\n delete r.id;\n return resource;\n }", "function toList(x) {\n if (Array.isArray(x)) {\n return x;\n }\n return [x];\n}", "function toList(x) {\n if (Array.isArray(x)) {\n return x;\n }\n return [x];\n}", "function toList(x) {\n if (Array.isArray(x)) {\n return x;\n }\n return [x];\n}", "function unwrap(x) {\n // should it take a maybe? // NO. can map if need be...\n //if (x.type.name === 'List') {\n if (Array.isArray(x.value)) {\n return x.value.map(unwrap); \n }\n else return x.value;\n}", "function toVector(arr){\n\ttoVectorTest(arr)\n\tconst newM = new Array(arr.length)\n\tfor(let i=0;i<arr.length;i++){\n\t\tnewM[i] = [arr[i]]\n\t}\n\treturn newM\n}", "function h$fromHsListJSVal(xs) {\n var arr = [];\n while(((xs).f === h$ghczmprimZCGHCziTypesziZC_con_e)) {\n arr.push(((((xs).d1)).d1));\n xs = ((xs).d2);\n }\n return arr;\n}", "function h$fromHsListJSVal(xs) {\n var arr = [];\n while(((xs).f === h$ghczmprimZCGHCziTypesziZC_con_e)) {\n arr.push(((((xs).d1)).d1));\n xs = ((xs).d2);\n }\n return arr;\n}", "function h$fromHsListJSVal(xs) {\n var arr = [];\n while(((xs).f === h$ghczmprimZCGHCziTypesziZC_con_e)) {\n arr.push(((((xs).d1)).d1));\n xs = ((xs).d2);\n }\n return arr;\n}", "function converValueObjectToArray(obj){\n\tvar arrObj = new Array();\n\tvar property, propCollection = \"\";\n\tfor (property in obj) {\n\t\tarrObj.push(obj[property]);\n\t}\n\treturn arrObj;\n}", "function u(e){return this.cast(e)}", "castFilterToColumnFilters(columnFilters) {\n // keep current filters & always save it as an array (columnFilters can be an object when it is dealt by SlickGrid Filter)\n const filtersArray = (typeof columnFilters === 'object') ? Object.keys(columnFilters).map(key => columnFilters[key]) : columnFilters;\n if (!Array.isArray(filtersArray)) {\n return [];\n }\n return filtersArray.map((filter) => {\n const tmpFilter = { columnId: filter.columnId || '' };\n if (filter.operator) {\n tmpFilter.operator = filter.operator;\n }\n if (Array.isArray(filter.searchTerms)) {\n tmpFilter.searchTerms = filter.searchTerms;\n }\n return tmpFilter;\n });\n }", "castFilterToColumnFilters(columnFilters) {\n // keep current filters & always save it as an array (columnFilters can be an object when it is dealt by SlickGrid Filter)\n const filtersArray = (typeof columnFilters === 'object') ? Object.keys(columnFilters).map(key => columnFilters[key]) : columnFilters;\n if (!Array.isArray(filtersArray)) {\n return [];\n }\n return filtersArray.map((filter) => {\n const tmpFilter = { columnId: filter.columnId || '' };\n if (filter.operator) {\n tmpFilter.operator = filter.operator;\n }\n if (Array.isArray(filter.searchTerms)) {\n tmpFilter.searchTerms = filter.searchTerms;\n }\n return tmpFilter;\n });\n }", "castFilterToColumnFilters(columnFilters) {\n // keep current filters & always save it as an array (columnFilters can be an object when it is dealt by SlickGrid Filter)\n const filtersArray = (typeof columnFilters === 'object') ? Object.keys(columnFilters).map(key => columnFilters[key]) : columnFilters;\n if (!Array.isArray(filtersArray)) {\n return [];\n }\n return filtersArray.map((filter) => {\n const tmpFilter = { columnId: filter.columnId || '' };\n if (filter.operator) {\n tmpFilter.operator = filter.operator;\n }\n if (Array.isArray(filter.searchTerms)) {\n tmpFilter.searchTerms = filter.searchTerms;\n }\n return tmpFilter;\n });\n }", "static mapCollection(collection) {\n if (collection.empty) {\n return [];\n }\n\n const list = [];\n\n collection.forEach((document) => {\n const item = Object.assign({}, document.data(), {\n id: document.id,\n });\n\n this.replaceAllTimestampToDate(item);\n list.push(item);\n });\n\n return list;\n }", "function toArray(list)\r\n{\r\n return list;\r\n // return Array.prototype.slice.call(list || [], 0);\r\n}", "function toArray(x) {\n\n // if there's a standard Array.from function use it\n if (Array.from) {\n return Array.from(x);\n }\n\n // if x got .length\n if (x.length !== undefined) {\n return Array.prototype.slice.call(x);\n }\n\n // if got forEach function use it\n var ret = [];\n if (x.forEach) {\n x.forEach(function(item) {\n ret.push(item);\n });\n return ret;\n }\n\n // if got here no way to convert\n throw new Errors.InternalError(\"Cannot convert object \" + (typeof x) + \" to array!\");\n}", "function toVector(arr) {\n return concat.apply([], arr);\n}", "function toVector(arr) {\n return concat.apply([], arr);\n}", "toArray() {\n let arr = [];\n this.traverse((currentNode) => {\n arr.push(currentNode.value);\n });\n return arr;\n }", "normalize(item) {\n return item.map(x => parseInt(x));\n }", "function A(t){var e=this;return Array.isArray(t)?t.map((function(t){return Array.isArray(t)&&0===t.length?t:e.castForQuery(t)})):[this.castForQuery(t)]}", "copy(from) {\n if (from instanceof Array) {\n this._vector[0] = from[0];\n this._vector[1] = from[1];\n this._vector[2] = from[2];\n this._vector[3] = from[3];\n } else if (from instanceof Point4D) {\n this._vector[0] = from._vector[0];\n this._vector[1] = from._vector[1];\n this._vector[2] = from._vector[2];\n this._vector[3] = from._vector[3];\n }\n }", "function _(e){const t=this;return Array.isArray(e)?e.map((function(e){return Array.isArray(e)&&0===e.length?e:t.castForQuery(e)})):[this.castForQuery(e)]}", "function datapointToVector(datapoint){\n var result = [];\n // result.push(new Date(datapoint[\"TIMESTAMP\"]));\n result.push(parseInt(datapoint[\"DETECTOR_NUMBER\"]));\n result.push(parseInt(datapoint[\"FLOW_IN\"]));\n result.push(parseInt(datapoint[\"AVERAGE_SPEED\"]));\n result.push(parseInt(datapoint[\"STATUS\"]));\n result.push(parseInt(datapoint[\"id\"]));\n return result;\n }", "toArray() {\n return Array.from(this.items);\n }", "toArray () {\n return this.list.slice()\n }", "toArray () {\n return this._content.map(function (x, i) {\n return x.val\n })\n }", "function transform(vec,fun){\n\tfor(i=0;i<vec.length;i++){\n\t\tvec[i] = fun(vec[i]);\n\t}\n\treturn vec\n}", "function makeArray(stream) {\n\treturn stream.map(function (value) {\n\t\tif (value == null) {\n\t\t\treturn [];\n\t\t}\n\t\tif (!Array.isArray(value)) {\n\t\t\treturn [value];\n\t\t}\n\t\treturn value;\n\t});\n}", "if (value.constructor != Array){\n value = [value, value];\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 toCollection(values) {\n var collection = values;\n if (!angular.isArray(values)) {\n collection = [values];\n }\n return collection;\n }", "function toArrayOfS(input, mapFunction) {\n if (Array.isArray(input)) {\n return input.map(mapFunction);\n }\n else {\n return [];\n }\n}", "function convertValues(rows) {\n var values = rows.map(function(row) {\n var rowValues = []\n row['cells'].map(function(rowValue) {\n rowValues.push(rowValue['value']) \n }) \n return rowValues;\n })\n return values;\n}", "function convertArray( array, type, forceClone ) {\n\n\tif ( ! array || // let 'undefined' and 'null' pass\n\t\t! forceClone && array.constructor === type ) return array;\n\n\tif ( typeof type.BYTES_PER_ELEMENT === 'number' ) {\n\n\t\treturn new type( array ); // create typed array\n\n\t}\n\n\treturn Array.prototype.slice.call( array ); // create Array\n\n}", "function cast(type, val) {\n if (type.$$cts$$check(val)) return val;\n throw new Error(\"Cannot cast value \" + JSON.stringify(val) + \" to type \" + type);\n }", "function w(t){var e=this;return Array.isArray(t)?t.map(function(t){return Array.isArray(t)&&0===t.length?t:e.castForQuery(t)}):[this.castForQuery(t)]}", "recompose(buffer) {\n const values = [];\n let bufferOffset = 0;\n this._registers.forEach(r => {\n const readValue = TypeBufferHelper_1.TypeBufferHelper.read(r.type, buffer, bufferOffset);\n values.push({\n register: r,\n data: r.convertValue(readValue)\n });\n bufferOffset += TypeBufferHelper_1.TypeBufferHelper.getLength(r.type) / 8;\n });\n return values;\n }", "function toArray(list) {\r\n\t return Array.prototype.slice.call(list || [], 0);\r\n\t}", "function toArray(list){\n var array = Array(list.length);\n for(let i=0; i < list.length; i++){\n array[i] = list[i];\n }\n return array;\n}", "function iterate_cast_array(map,actor,movieid){\n\tif(!map.has(actor)){\n\t\tmap.set(actor,new Set());\n\t\tmap.get(actor).add(movieid); //adds movie id for actor_to_movie\n\t}\n\telse{\n\t\tmap.get(actor).add(movieid);\n\t}\n}", "function To(t,e){for(var n in e)t[n]=e[n];return t}", "function makeArray(obj) {\n if (Array.isArray(obj)) {\n // use object if already an array\n return obj;\n }\n var isArrayLike = _typeof(obj) == 'object' && typeof obj.length == 'number';\n if (isArrayLike) {\n // convert nodeList to array\n return arraySlice.call(obj);\n }\n\n // array of single index\n return [obj];\n }", "$castTo() {\n return new SelectQueryBuilder(this.#props);\n }", "function Array$of(x) {\n return [x];\n }", "function Array$of(x) {\n return [x];\n }", "function sc_vector2list(a) {\n var res = null;\n for (var i = a.length-1; i >= 0; i--)\n\tres = sc_cons(a[i], res);\n return res;\n}", "function makeArray( obj ) {\n if ( Array.isArray( obj ) ) {\n // use object if already an array\n return obj;\n }\n \n var isArrayLike = typeof obj == 'object' && typeof obj.length == 'number';\n if ( isArrayLike ) {\n // convert nodeList to array\n return arraySlice.call( obj );\n }\n \n // array of single index\n return [ obj ];\n }", "function toArray(enu) {\n var arr = [];\n\n for (var i = 0, l = enu.length; i < l; i++)\n arr.push(enu[i]);\n\n return arr;\n}", "function convertToArray(nodes){\n var array = null;\n try {\n array = Array.prototype.slice.call(nodes, 0); //non-IE and IE9+\n } catch (ex) {\n array = new Array();\n for (var i=0, len=nodes.length; i < len; i++){\n array.push(nodes[i]);\n }\n }\n return array;\n}", "asArray (agentSet = this) {\n return Object.setPrototypeOf(agentSet, Array.prototype)\n }", "map(f) { // Maps a function over this type (just like arrays)\n return f(this._value);\n }", "to3() {\r\n return Vec.of(this[0], this[1], this[2]);\r\n }", "function toArray( o ) {\n\n return Array.prototype.slice.call( o );\n\n}", "function typed_to_plain(tarr) {\n var retval = new Array(tarr.length)\n for (var i = 0; i < tarr.length; i++) {\n retval[i] = tarr[i]\n }\n return retval\n }", "function convert(jsonResult, Constructor) {\n if (angular.isArray(jsonResult)) {\n // Array: So we need to convert each element and push it into a new array to send back\n var models = [];\n angular.forEach(jsonResult, function (item) {\n models.push(convertItem(item, Constructor));\n });\n return models;\n } else {\n return convertItem(jsonResult, Constructor);\n }\n }" ]
[ "0.6700853", "0.5798919", "0.5644212", "0.55916095", "0.53920156", "0.5374692", "0.5354472", "0.53221154", "0.5297637", "0.5292541", "0.52922386", "0.5266621", "0.5266621", "0.5266621", "0.5216886", "0.5146566", "0.51124585", "0.51119965", "0.5102854", "0.5095158", "0.50775003", "0.50775003", "0.506257", "0.5046149", "0.50420344", "0.50318676", "0.4961689", "0.49611866", "0.4954709", "0.49491367", "0.49491367", "0.49491367", "0.49412245", "0.48835295", "0.4881097", "0.4881097", "0.48619196", "0.4857243", "0.48468557", "0.48415512", "0.4826112", "0.48249847", "0.48219073", "0.48173332", "0.48094472", "0.48094472", "0.48094472", "0.4807305", "0.47845522", "0.47472838", "0.47472838", "0.47472838", "0.47332668", "0.47104728", "0.4705508", "0.4705508", "0.4705508", "0.47000086", "0.4696396", "0.46847758", "0.4678438", "0.4678438", "0.46737787", "0.4652984", "0.46500292", "0.4648139", "0.46438563", "0.4633148", "0.46320498", "0.4629459", "0.46272457", "0.46208954", "0.46070313", "0.46024975", "0.4592627", "0.45908886", "0.4588685", "0.4587596", "0.45687968", "0.45657346", "0.45646587", "0.4558614", "0.45551702", "0.4544261", "0.45406693", "0.4535209", "0.45325065", "0.45317224", "0.45239404", "0.45239404", "0.4522746", "0.45203158", "0.4518381", "0.45141718", "0.4510005", "0.45076", "0.45069683", "0.44952214", "0.4491818", "0.44910923" ]
0.771221
0
Convert a list of Array literals into a list of Vecs. Usage: "Vec.cast( [1,1,0], [1,1,0], [1,1,0] )"
to3() { return Vec.of(this[0], this[1], this[2]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static cast(...args) {\r\n return args.map(x => Vec.from(x));\r\n }", "function _arrayToVec(array) {\n var len = array.length;\n return 'vec' + len + '(' + array.join(',') + ')';\n}", "function toVector(arr) {\n return concat.apply([], arr);\n}", "function toVector(arr) {\n return concat.apply([], arr);\n}", "function toArray(list){\n var array = Array(list.length);\n for(let i=0; i < list.length; i++){\n array[i] = list[i];\n }\n return array;\n}", "function toVector(arr)\n\t\t\t{\n\t\t\t\treturn concat.apply([], arr);\n\t\t\t}", "function arrayFromVector(vector) {\n return vector.dictionary ? arrayFromDictionary(vector)\n : vector.nullCount > 0 ? [...vector]\n : vector.toArray();\n}", "function sc_list2vector(l) {\n var a = new sc_Vector();\n while(l !== null) {\n\ta.push(l.car);\n\tl = l.cdr;\n }\n return a;\n}", "function toVector(arr){\n\ttoVectorTest(arr)\n\tconst newM = new Array(arr.length)\n\tfor(let i=0;i<arr.length;i++){\n\t\tnewM[i] = [arr[i]]\n\t}\n\treturn newM\n}", "function convert(a) {\n \n for (i = 0; i < a.length; i++) {\n var c = [];\n c.push(parseInt(a[i]));\n \n\n }\n return c;\n}", "function sc_vector2list(a) {\n var res = null;\n for (var i = a.length-1; i >= 0; i--)\n\tres = sc_cons(a[i], res);\n return res;\n}", "function castToArray(cast) {\n\t\t\treturn cast && cast.length ? Array.prototype.slice.call(cast) : null;\n\t\t}", "function toArray(list) {\n return reduce((array, value) => {\n return array.concat(value);\n }, [], list);\n}", "function convertArray(convert, data, count) {\n if(!Array.isArray(data)) data = [data];\n\n return _convertArray(convert, data, count);\n}", "function toArray(arr){\n var list = new ArrayList(arr.length);\n for(i in arr)\n list.add(toJava(arr[i]));\n return list;\n}", "function list_to_vector(lst){\n var vector = [];\n while (!is_empty_list(lst)){\n vector.push(head(lst));\n lst = tail(lst);\n }\n return vector;\n}", "function convertArray(convert, data, count) {\n\t if(!Array.isArray(data)) data = [data];\n\t\n\t return _convertArray(convert, data, count);\n\t}", "function convertArray(convert, data, count) {\n\t if(!Array.isArray(data)) data = [data];\n\t\n\t return _convertArray(convert, data, count);\n\t}", "function pack_vector(v) {\n return [round_number(v[0], 2), round_number(v[1], 2)];\n}", "function toArray(list) {\r\n\t return Array.prototype.slice.call(list || [], 0);\r\n\t}", "function toArray (a) {\n var i = 0\n , l = a.length\n , rtn = []\n for (; i<l; i++) {\n rtn.push(a[i])\n }\n return rtn\n}", "function toArray (a) {\n var i = 0\n , l = a.length\n , rtn = []\n for (; i<l; i++) {\n rtn.push(a[i])\n }\n return rtn\n}", "function toArray (a) {\n var i = 0\n , l = a.length\n , rtn = []\n for (; i<l; i++) {\n rtn.push(a[i])\n }\n return rtn\n}", "function castAsArray(arg) {\n if (!Array.isArray(arg)) {\n arg = [arg];\n }\n\n return arg;\n}", "function arrayToList() {\n\n}", "function transformerList(val) {\n return util.arrayify(val);\n}", "function listToArray(list){\n var array = [];\n var loop = list;\n while (loop != null){\n array.push(loop.value);\n loop = loop.rest;\n }\n return array;\n}", "function vectorize(A) {\n var result = [];\n A.forEach(function(d) {\n result = result.concat(d);\n });\n return result;\n}", "function toArrayOfS(input, mapFunction) {\n if (Array.isArray(input)) {\n return input.map(mapFunction);\n }\n else {\n return [];\n }\n}", "function handleArray (val) {\n\t\tvar self = this;\n\t\treturn val.map(function (m) {\n\t\t\treturn self.cast(m);\n\t\t});\n\t}", "function convert(arrayOfStrings) {\n var newArr = [];\n var counter = 0;\n for (var i = 0; i < arrayOfStrings.length; i++) {\n if (typeof arrayOfStrings[i] === \"string\") {\n newArr[counter] = parseFloat(arrayOfStrings[i]);\n counter++;\n }\n }\n return newArr;\n}", "function toArray(list)\r\n{\r\n return list;\r\n // return Array.prototype.slice.call(list || [], 0);\r\n}", "function transformerList(val) {\n\t return util.arrayify(val);\n\t}", "function transformerList(val) {\n\t return util.arrayify(val);\n\t}", "function listToArray() {\n\n}", "function toArray(enu) {\n var arr = [];\n\n for (var i = 0, l = enu.length; i < l; i++)\n arr.push(enu[i]);\n\n return arr;\n}", "function fromArray(as) {\n // For some reason, TypeScript does not infer this type correctly\n var b = build;\n var f = as.reduce(b, []);\n return f;\n }", "function stream_to_vector(lst){\n var vector = [];\n while(!is_empty_list(lst)){\n vector.push(head(lst));\n lst = stream_tail(lst);\n }\n return vector;\n}", "function convertListToArray(eventData) {\r\n for (k = 0; k < eventData.length; k++) {\r\n eventData[k].positionArray = eventData[k].positions.split(\" \");\r\n }\r\n}", "function listToArray(list) {\n var arr = [];\n for (var node = list; node; node = node.rest) {\n arr.push(node.value);\n }\n return arr;\n}", "function listToArray(list) {\n array = [];\n for (node = list; node; node = node.rest) {\n array.push(node.value);\n }\n return array;\n}", "function toList(x) {\n if (Array.isArray(x)) {\n return x;\n }\n return [x];\n}", "function toList(x) {\n if (Array.isArray(x)) {\n return x;\n }\n return [x];\n}", "function toList(x) {\n if (Array.isArray(x)) {\n return x;\n }\n return [x];\n}", "function convToNumberArrV1(array){\n\tvar newArray = [];\n\tfor(var i=0;i<array.length;i++){\n\t\tnewArray.push(parseInt(array[i]));\n\t}\n\treturn newArray;\n}", "function h$listToArray(xs) {\n var a = [], i = 0;\n while(((xs).f === h$ghczmprimZCGHCziTypesziZC_con_e)) {\n a[i++] = ((((xs).d1)).d1);\n xs = ((xs).d2);\n }\n return a;\n}", "function h$listToArray(xs) {\n var a = [], i = 0;\n while(((xs).f === h$ghczmprimZCGHCziTypesziZC_con_e)) {\n a[i++] = ((((xs).d1)).d1);\n xs = ((xs).d2);\n }\n return a;\n}", "function h$listToArray(xs) {\n var a = [], i = 0;\n while(((xs).f === h$ghczmprimZCGHCziTypesziZC_con_e)) {\n a[i++] = ((((xs).d1)).d1);\n xs = ((xs).d2);\n }\n return a;\n}", "function h$listToArray(xs) {\n var a = [], i = 0;\n while(((xs).f === h$ghczmprimZCGHCziTypesziZC_con_e)) {\n a[i++] = ((((xs).d1)).d1);\n xs = ((xs).d2);\n }\n return a;\n}", "function h$listToArray(xs) {\n var a = [], i = 0;\n while(((xs).f === h$ghczmprimZCGHCziTypesziZC_con_e)) {\n a[i++] = ((((xs).d1)).d1);\n xs = ((xs).d2);\n }\n return a;\n}", "function toArray(data) {\n return data instanceof Array ? data : [data];\n}", "function toArray(a, b) {\n return [a , b];\n \n}", "function convertToArrs(elem) {\n return function(el) {\n return el.qs.map(convertTo(elem));\n };\n }", "function listToArray(list) {\n let array = [];\n\n for (let node = list; node; node = node.rest) {\n array.push(node.value);\n }\n return array;\n}", "function convertToArray(nodes){\n var array = null;\n try {\n array = Array.prototype.slice.call(nodes, 0); //non-IE and IE9+\n } catch (ex) {\n array = new Array();\n for (var i=0, len=nodes.length; i < len; i++){\n array.push(nodes[i]);\n }\n }\n return array;\n}", "function listToArray(list) {\n var arr = [];\n \n for (var listLocation = list; listLocation; listLocation = listLocation.rest) {\n \tarr.push(listLocation.value);\n }\n\n return arr;\n}", "function toArray(names) {\n return names.split(\",\");\n }", "function ArrayConversion(conversions, arg) {\n this.arg = arg;\n this.conversions = conversions;\n this.value = conversions.map(function(conversion) {\n return conversion.value;\n }, this);\n\n this._status = Status.combine(conversions.map(function(conversion) {\n return conversion.getStatus();\n }));\n\n // This message is just for reporting errors like \"not enough values\"\n // rather that for problems with individual values.\n this.message = '';\n\n // Predictions are generally provided by individual values\n this.predictions = [];\n}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var i=0,t=Array(e.length);i<e.length;i++)t[i]=e[i];return t}return Array.from(e)}", "listToArray(list) {\n let arr = [];\n\n // Walk a list using while\n while(list) {\n arr.push(list.value);\n list = list.rest;\n }\n\n return arr;\n }", "function nodeListToArray (nodeList) {\n return Array.prototype.slice.call(nodeList);\n }", "function listToArray(list = null) {\n let array = [];\n let element = list;\n while (element != null) {\n array.push(element.value);\n element = element.rest;\n }\n return array;\n}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++){n[t]=e[t];}return n;}return Array.from(e);}", "function p5VectorsToVec2(vectors) {\n let newVecs = [];\n for (var i = 0; i < vectors.length; i++) {\n newVecs.push(new Vec2(vectors[i].x / SCALE, vectors[i].y / SCALE));\n }\n return newVecs;\n}", "function toArray(input) {\n if (Array.isArray(input)) {\n return input;\n }\n else {\n return [input];\n }\n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function listAsArray(list){\n\n return foldR( function(arraySoFar, listItem){\n \n arraySoFar.unshift(listItem);\n return arraySoFar;\n \n }, [], list );\n \n}", "function toArray(collection) {\n var result = [];\n forEach(collection, function (item) {\n result.push(item);\n });\n return result;\n }", "function listAsArray (list) {\n return foldR(function (arraySoFar, listItem) {\n arraySoFar.unshift(listItem)\n return arraySoFar\n }, [], list)\n}", "function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}else return Array.from(arr)}", "function toArray(fileList) {\n return Array.prototype.slice.call(fileList);\n}", "function asArray(a) {\n return Array.isArray(a) ? a : [a];\n }", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}", "function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}", "function toArray(arr){\n var out = [];\n for(var i = 0; i < arr.length; i++){\n out.push([arr[i].x,arr[i].y])\n }\n return out\n}", "function dataToArray(vars) {\n if (Array.isArray(vars)) {\n return vars;\n }\n return [vars];\n}", "function arrayFromNested(vector) {\n const extract = extractFromNested(vector);\n return Array.from({ length: vector.length }, (_, i) => extract(i));\n}", "function b2Vec2Array( array ) {\n var vector = [];\n\n for ( var i = 0, il = 0.5 * array.length; i < il; i++ ) {\n vector.push( new Vec2( array[ 2 * i ], array[ 2 * i + 1 ] ) );\n }\n\n return vector;\n }", "function convertArray( array, type, forceClone ) {\n\n\tif ( ! array || // let 'undefined' and 'null' pass\n\t\t! forceClone && array.constructor === type ) return array;\n\n\tif ( typeof type.BYTES_PER_ELEMENT === 'number' ) {\n\n\t\treturn new type( array ); // create typed array\n\n\t}\n\n\treturn Array.prototype.slice.call( array ); // create Array\n\n}", "function arrayify(item) {\n return [].concat(item);\n}", "function makeArray(input_data) {\n var data_array = [];\n var data_string = input_data.asText(); //converts CSnap list object to a text string\n for (var i = 0; i < data_string.length; i++) {\n var val = \"\";\n while(data_string[i] !== \",\" && i < data_string.length) { //read through variable-length values until I hit a comma\n val += data_string[i];\n i++;\n }\n\n if(val !== \"\") {\n data_array.push(val);\n }\n }\n return data_array;\n }", "function arrayify(a) {\n return [].slice.call(a);\n }", "function _toConsumableArray(e){if(Array.isArray(e)){for(var r=0,o=Array(e.length);r<e.length;r++)o[r]=e[r];return o}return Array.from(e)}" ]
[ "0.73320806", "0.6376138", "0.6324265", "0.6324265", "0.62814724", "0.6196814", "0.61602837", "0.6156954", "0.6108235", "0.60046405", "0.59912413", "0.5958344", "0.5874739", "0.5819045", "0.5790934", "0.57662743", "0.5735635", "0.5735635", "0.56867915", "0.5685139", "0.56681913", "0.56681913", "0.56681913", "0.56585586", "0.5654566", "0.56047374", "0.55995977", "0.55962235", "0.5585594", "0.553482", "0.5513926", "0.5506023", "0.5481303", "0.5481303", "0.5444336", "0.5443415", "0.5431123", "0.54236376", "0.5422001", "0.54094005", "0.5409362", "0.534809", "0.534809", "0.534809", "0.5347114", "0.53439206", "0.53439206", "0.53439206", "0.53439206", "0.53439206", "0.5329061", "0.5315965", "0.5306833", "0.52997243", "0.52618104", "0.5257456", "0.52565324", "0.52382153", "0.52369976", "0.5234601", "0.520689", "0.52065676", "0.5184666", "0.5184095", "0.51813734", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.5161731", "0.51516014", "0.5151532", "0.51510257", "0.5146722", "0.5138554", "0.51326704", "0.51326704", "0.51326704", "0.51326704", "0.51326704", "0.51326704", "0.51326704", "0.51326704", "0.51326704", "0.513035", "0.5127273", "0.5119771", "0.51190823", "0.51181054", "0.5114437", "0.51134706", "0.5110394", "0.5110174" ]
0.0
-1
Use only on 4x1 Vecs to truncate them. Example: "Vec.of( 1,2,3,4 ).to3()" returns the Vec [ 1,2,3 ].
to4(isPoint) { return Vec.of(this[0], this[1], this[2], +isPoint); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cutIt(arr){\n var min = Math.min(...arr.map(({ length }) => length));\n //map over array slice it by min.\n<<<<<<< HEAD\n \n \n}", "to3() {\r\n return Vec.of(this[0], this[1], this[2]);\r\n }", "function truncate(float32ArrayIn, len) {\n\t if(Float32Array.slice === undefined) {\n\t var float32ArrayOut = new Float32Array(len);\n\t for(var i = 0; i < len; i++) float32ArrayOut[i] = float32ArrayIn[i];\n\t return float32ArrayOut;\n\t }\n\t\n\t return float32ArrayIn.slice(0, len);\n\t}", "normalizeVec3(v, dest) {\n const f = 1.0 / math.lenVec3(v);\n return math.mulVec3Scalar(v, f, dest);\n }", "function trim(arr, size) {\n if (arr.length<=size) return arr;\n if (arr.length<=3) return arr.slice(0,size)+'...';\n return arr.slice(0,size-3)+'...';\n}", "normalizeVec4(v, dest) {\n const f = 1.0 / math.lenVec4(v);\n return math.mulVec4Scalar(v, f, dest);\n }", "function sc_copyVector(a, len) {\n if (len <= a.length)\n\treturn a.slice(0, len);\n else {\n\tvar tmp = a.concat();\n\ttmp.length = len;\n\treturn tmp;\n }\n}", "function scale(vec, scalar) {\n var result = [];\n var i;\n for (i = 0; i < vec.length;i++) {\n result[i] = vec[i] * scalar;\n }\n return result;\n}", "function drop(array)\n{\n var arr=array.slice(1,3);\n console.log(arr);\n}", "function normalize(vec3) {\n if (vec3.x === 0 && vec3.y === 0 && vec3.z === 0) {\n return vec3;\n }\n var length = Math.sqrt(vec3.x * vec3.x + vec3.y * vec3.y + vec3.z * vec3.z);\n var invScalar = 1 / length;\n vec3.x *= invScalar;\n vec3.y *= invScalar;\n vec3.z *= invScalar;\n return vec3;\n}", "function slice3d_(x, begin, size) {\n var $x = tensor_util_env_1.convertToTensor(x, 'x', 'slice3d');\n util.assert($x.rank === 3, function () {\n return \"slice3d expects a rank-3 tensor, but got a rank-\" + $x.rank + \" tensor\";\n });\n return exports.slice($x, begin, size);\n}", "function allElementsExceptFirstThree (a) {\n a.reverse();\n for (var i = 0; i < 3; i++) {\n a.pop();\n }\n a.reverse();\n return a;\n}", "function vecScale(x, c) {\n for (var i = 0; i < x.length; i++) {\n x[i] *= c;\n };\n return x;\n}", "function cutFruitPieces(fruit) {\n return fruit * 4;\n}", "function UnifyingSlice() {\n}", "static scale(vector)\n\t{\n\t\treturn new Float32Array([\n\t\t\tvector.x, 0, 0, 0,\n\t\t\t0, vector.y, 0, 0,\n\t\t\t0, 0, vector.z, 0,\n\t\t\t0, 0, 0, 1\n\t\t]);\n\t}", "function number4(array){\n var newElements= array.pop()\n var newArr= array.splice(0,0,newElements)\n return array\n}", "function allElementsExceptFirstThree(arr){\n\tfor(var i=0;i<3;i++){\n\t\tarr.shift();\n\t}\n\treturn arr;\n}", "function cutFruitPieces(fruit) {\r\n return fruit * 4;\r\n}", "function unflatten(value, size) {\n const unflattened = [];\n\n for (let i = 0; i < value.length; i += size) {\n const slice = value.slice(i, i + size);\n unflattened.push(slice);\n }\n\n return unflattened;\n}", "function cutFruitPieces(fruit){\n return fruit * 4;\n}", "function func4(arr, n = 1) {\r\n return arr.slice(-n);\r\n}", "function toUnitVector(v) {\r\n const len = vectorLen(v);\r\n return [v[0] / len, v[1] / len];\r\n}", "getScaleTo(outVec) {\n outVec.v[0] = Math.hypot(this.v[0], this.v[4], this.v[8]);\n outVec.v[1] = Math.hypot(this.v[1], this.v[5], this.v[9]);\n outVec.v[2] = Math.hypot(this.v[2], this.v[6], this.v[10]);\n return outVec;\n }", "normalize(vec) {\n const norm = Util.magnitude(vec);\n return Util.scale(vec, 1 / norm);\n }", "function slice4d_(x, begin, size) {\n var $x = tensor_util_env_1.convertToTensor(x, 'x', 'slice4d');\n util.assert($x.rank === 4, function () {\n return \"slice4d expects a rank-4 tensor, but got a rank-\" + $x.rank + \" tensor\";\n });\n return exports.slice($x, begin, size);\n}", "function firstFourItems(array) {\n return array.slice(0,4);\n}", "function flatten( v )\n{\n\n if(isVector(v)) {\n var floats = new Float32Array(v.length)\n for(var i =0; i<v.length; i++) floats[i] = v[i];\n return floats;\n }\n if(isMatrix(v)) {\n\n var floats = new Float32Array(v.length*v.length);\n for(var i =0; i<v.length; i++) for(j=0;j<v.length; j++) {\n floats[i*v.length+j] = v[j][i];\n }\n return floats;\n }\n\n var floats = new Float32Array( v.length*v[0].length );\n\n for(var i = 0; i<v.length; i++) for(var j=0; j<v[0].length; j++) {\n floats[i*v[0].length+j] = v[i][j];\n }\n return floats;\n}", "trim() {\n errors.throwNotImplemented(\"trimming elements from a collection\");\n }", "static scale(v)\n\t{\n\t\t// TODO construct a 4x4 scale matrix for a scale by the\n\t\t// 3D vector v\n\t\treturn new Float32Array([v.x, 0, 0, 0, 0, v.y, 0, 0, 0, 0, v.z, 0, 0, 0, 0, 1]);\n\t}", "function normalizeV(v) {\n\tvar vLen = Math.sqrt(v.x*v.x + v.y*v.y + v.z*v.z);\n\tv.x /= vLen;\n\tv.y /= vLen;\n\tv.z /= vLen;\n\treturn v;\n}", "divVec4Scalar(v, s, dest) {\n if (!dest) {\n dest = v;\n }\n dest[0] = v[0] / s;\n dest[1] = v[1] / s;\n dest[2] = v[2] / s;\n dest[3] = v[3] / s;\n return dest;\n }", "function sc_vectorCopy(a, start, end) {\n return a.slice(start, end);\n}", "drop(arr, numToDrop) {\n if (!numToDrop) return arr.slice(1);\n return arr.slice(numToDrop);\n }", "trimArray(array, size) {\n if (size > 0) {\n let a = new Array(size);\n for (let i = 0; i < size; i++) {\n a[i] = array[i];\n }\n return a;\n } else {\n return null;\n }\n }", "static normalize(v) {\r\n try {\r\n if (!(v instanceof Vector))\r\n throw \"Vector.normalize: parameter not a vector\";\r\n else {\r\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\r\n return(Vector.scale(lenDenom,v));\r\n }\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "roundVector(vec) {\n vec.x = Math.round(vec.x);\n vec.y = Math.round(vec.y);\n vec.z = Math.round(vec.z);\n }", "static normalize(v) {\n try {\n if (!(v instanceof Vector))\n throw \"Vector.normalize: parameter not a vector\";\n else {\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\n return(Vector.scale(lenDenom,v));\n }\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "resta(vec){return new Vector(this.x-vec.x, this.y-vec.y, this.z-vec.z);}", "static Normalized(vec) {\n vec = new VecX(vec);\n if (vec.Magnitude() === 0)\n return vec.Multiply(0);\n return vec.Divide(vec.Magnitude());\n }", "function truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n }", "function subVectors() {\n let vector = [];\n for (var vec of arguments) {\n for (var elem = 0; elem < vec.length; elem++) {\n if (isNaN(vector[elem])) {\n vector[elem] = vec[elem];\n } else {\n vector[elem] -= vec[elem];\n }\n }\n }\n return vector;\n}", "function trimUploads(uploads, limit, offset){\n // cut offset off from front of array\n let trimmedUploads = uploads.slice(offset);\n\n // reduce the length of array to the limit amount\n if(trimmedUploads.length > limit){\n trimmedUploads.length = limit;\n }\n\n return trimmedUploads;\n}", "drop1(arr, numToDrop = 1) {\n const newArr = arr.slice(numToDrop);\n return newArr;\n }", "function doubleToFloatVec(v) {\n return new three_1.Vector3(Math.fround(v.x), Math.fround(v.y), Math.fround(v.z));\n }", "function truncate(arr, len) {\n if (arr.length > len) {\n arr.length = len;\n return true;\n }\n }", "function truncate(arr, len) {\n if (arr.length > len) {\n arr.length = len;\n return true;\n }\n }", "function truncate(arr, len) {\n if (arr.length > len) {\n arr.length = len;\n return true;\n }\n }", "function truncate(arr, len) {\n if (arr.length > len) {\n arr.length = len;\n return true;\n }\n }", "divScalarVec4(s, v, dest) {\n if (!dest) {\n dest = v;\n }\n dest[0] = s / v[0];\n dest[1] = s / v[1];\n dest[2] = s / v[2];\n dest[3] = s / v[3];\n return dest;\n }", "divScalarVec3(s, v, dest) {\n if (!dest) {\n dest = v;\n }\n dest[0] = s / v[0];\n dest[1] = s / v[1];\n dest[2] = s / v[2];\n return dest;\n }", "divVec3Scalar(v, s, dest) {\n if (!dest) {\n dest = v;\n }\n dest[0] = v[0] / s;\n dest[1] = v[1] / s;\n dest[2] = v[2] / s;\n return dest;\n }", "function truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n }", "function truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n }", "function truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n }", "function truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n }", "function truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n }", "function truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n }", "function truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n }", "static divideTo(vec, value, out) {\n if (value !== 0) {\n out.v[0] = vec.v[0] / value;\n out.v[1] = vec.v[1] / value;\n out.v[2] = vec.v[2] / value;\n out.v[3] = vec.v[3] / value;\n }\n else {\n console.error(\"0 division occurred!\");\n out.v[0] = Infinity;\n out.v[1] = Infinity;\n out.v[2] = Infinity;\n out.v[3] = Infinity;\n }\n return out;\n }", "function testSplice3(arr) {\n let newArr = arr.splice(3); // default start at 0, delete 3 element\n console.log(newArr); // [ 4, 5, 6, 7 ]\n console.log(arr); // [ 1, 2, 3 ]\n}", "function divizibil_cu_3(){\n var img = verificaImagini();\n var imgStatica = img.filter(verificaLuna);\n if(imgStatica.length % 3 == 0)\n return imgStatica\n return imgStatica.slice(0, imgStatica.length - imgStatica.length % 3)\n \n}", "drop2(array, n) {\n if (!n) {\n n = 1;\n }\n const droppedArray = array.slice(n);\n return droppedArray;\n }", "function truncate(arr, len) {\r\n if (arr.length > len) {\r\n arr.length = len;\r\n return true;\r\n }\r\n}", "function normalize(vec) {\n\tvar mag = magnitude(vec);\n\t// console.log(typeof vec[0]);\n\tvar norm = [vec[0] / mag, vec[1] / mag];\n\t// console.log(norm);\n\treturn norm;\n}", "function multi_slice(array, width) {\n let a = [];\n for (let i = 0; i < array.length / width; i++) {\n let b = i * width;\n a[i] = array.slice(b, b + width);\n }\n return a;\n}", "function truncate(x) {\n\tif (x >=0) return Math.floor(x);\n\telse return Math.ceil(x);\n}", "function makeFloatVec(v) {\n const majorX = Math.fround(v.x);\n const majorY = Math.fround(v.y);\n const majorZ = Math.fround(v.z);\n const minorVec = new three_1.Vector3(v.x - majorX, v.y - majorY, v.z - majorZ);\n v.x = Math.fround(majorX);\n v.y = Math.fround(majorY);\n v.z = Math.fround(majorZ);\n return minorVec;\n }", "scale (vec, m) {\n\t return [vec[0] * m, vec[1] * m];\n\t }", "function nonMutatingSplice(cities) {\n // Add your code below this line\n return cities.slice(0,3);\n // Add your code above this line\n}", "function scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n}", "function truncate(x) {\n if (x > 0) {\n return Math.floor(x);\n } else {\n return Math.ceil(x);\n }\n}", "function func3(arr, n = 1) {\r\n return arr.slice(0, n);\r\n}", "function scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "function take(arr, n) { \n arr.splice(n)\n return arr\n}", "function ScaledVector3FromStartPoint(vecToScale, vecStart, scaleFactor) {\n\n\t// This first get the distances from the start point to the one to scale\n\n\tlet x = vecToScale[\"x\"] - vecStart[\"x\"];\n\tlet y = vecToScale[\"y\"] - vecStart[\"y\"];\n\tlet z = vecToScale[\"z\"] - vecStart[\"z\"];\n\n\t// Then the new vector is raised of the same distances multiplied by the scale factor.\n\n\tlet scaledPoint = new THREE.Vector3(\n\t\tvecStart[\"x\"] + ( x * scaleFactor ),\n\t\tvecStart[\"y\"] + ( y * scaleFactor ),\n\t\tvecStart[\"z\"] + ( z * scaleFactor )\n\t\t);\n\n\treturn scaledPoint ;\n\n}", "function testSlice(arr) {\n var newArr = arr.slice(1, 3);\n console.log(newArr);\n}", "function normalize_v2(v) {\n var len = Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n return len == 0 ? v : [v[0] / len, v[1] / len];\n }", "static setNormalizeV3(xyz) {\nvar len;\n//--------------\nlen = this.lengthV3(xyz);\nif (1e-5 <= len) {\nreturn this.setInverseScaleV3(xyz, len);\n} else {\nreturn xyz;\n}\n}", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "static Normalized(x, y, z) {\n let vec = new Vec3(x, y, z);\n if (vec.Magnitude() === 0)\n return new Vec3(0);\n return vec.Divide(vec.Magnitude());\n }", "drop (array, dropNumber) {\n if(dropNumber == null) {\n dropNumber = 1;\n }\n const shortArray = array.slice(dropNumber);\n return shortArray;\n }", "static divideVectorTo(l_vec, r_vec, out) {\n if (r_vec.v[0] !== 0 && r_vec.v[1] !== 0 && r_vec.v[2] !== 0 && r_vec.v[3] !== 0) {\n out.v[0] = l_vec.v[0] / r_vec.v[0];\n out.v[1] = l_vec.v[1] / r_vec.v[1];\n out.v[2] = l_vec.v[2] / r_vec.v[2];\n out.v[3] = l_vec.v[3] / r_vec.v[3];\n }\n else {\n console.error(\"0 division occurred!\");\n out.v[0] = r_vec.v[0] === 0 ? Infinity : l_vec.v[0] / r_vec.v[0];\n out.v[1] = r_vec.v[1] === 0 ? Infinity : l_vec.v[1] / r_vec.v[1];\n out.v[2] = r_vec.v[2] === 0 ? Infinity : l_vec.v[2] / r_vec.v[2];\n out.v[3] = r_vec.v[3] === 0 ? Infinity : l_vec.v[3] / r_vec.v[3];\n }\n return out;\n }", "static divideTo(vec, value, out) {\n if (value !== 0) {\n out.v[0] = vec.v[0] / value;\n out.v[1] = vec.v[1] / value;\n out.v[2] = vec.v[2] / value;\n }\n else {\n console.error(\"0 division occurred!\");\n out.v[0] = Infinity;\n out.v[1] = Infinity;\n out.v[2] = Infinity;\n }\n return out;\n }", "static scale(c,v) {\n try {\n if (!(typeof(c) === \"number\") || !(v instanceof Vector))\n throw \"Vector.scale: malformed parameter\";\n else\n return(new Vector(c*v.x,c*v.y,c*v.z));\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "static divideTo(vec, value, out) {\n if (value !== 0) {\n out.v[0] = vec.v[0] / value;\n out.v[1] = vec.v[1] / value;\n }\n else {\n console.error(\"0 division occurred!\");\n out.v[0] = Infinity;\n out.v[1] = Infinity;\n }\n return out;\n }", "function f4(arr) {\n return arr.filter((el, i) => !(i % 3));\n}", "static scale(c,v) {\r\n try {\r\n if (!(typeof(c) === \"number\") || !(v instanceof Vector)){\r\n //throw \"Vector.scale: malformed parameter\";\r\n }\r\n\r\n else\r\n return(new Vector(c*v.x,c*v.y,c*v.z));\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "function get_vectorlen(v, newLength){\n\tlet length = Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n\treturn [(v[0] / length) * newLength, (v[1] / length) * newLength];\n}", "function sliceToFive(array) {\n return array.slice(0, 5)\n}", "function nonMutatingSplice(cities) {\n // Add your code below this line\n return cities.slice(0, 3);\n \n // Add your code above this line\n }", "function scale_v2(v, l) {\n var len = length_v2(v);\n if (len == 0) return v;\n l /= len;\n return [v[0] * l, v[1] * l];\n }" ]
[ "0.58088136", "0.58009976", "0.5743571", "0.571794", "0.55108404", "0.54483247", "0.5434133", "0.52625185", "0.52498", "0.5236089", "0.52322483", "0.52292186", "0.518845", "0.5150317", "0.5148313", "0.51468205", "0.5138621", "0.51290596", "0.5120419", "0.5107938", "0.5107067", "0.5106179", "0.509974", "0.50935334", "0.50772", "0.50344044", "0.5029709", "0.5001796", "0.4976389", "0.4972785", "0.49724093", "0.49585533", "0.4953829", "0.49536943", "0.49532837", "0.4946185", "0.494392", "0.49406105", "0.4930711", "0.4909317", "0.4905627", "0.48947224", "0.48945308", "0.488975", "0.48889798", "0.48730528", "0.48730528", "0.48730528", "0.48730528", "0.48598433", "0.48561075", "0.4851827", "0.4845934", "0.4845934", "0.4845934", "0.4845934", "0.4845934", "0.4845934", "0.4845934", "0.48277426", "0.48273394", "0.48225218", "0.48081493", "0.47936502", "0.47934806", "0.47831166", "0.4779733", "0.47703266", "0.47643656", "0.47616243", "0.47614205", "0.47560382", "0.47398287", "0.47337472", "0.47325242", "0.473225", "0.4728107", "0.47265014", "0.4725354", "0.4722142", "0.4722142", "0.4722142", "0.4722142", "0.47081858", "0.47081858", "0.47081858", "0.47081858", "0.47081858", "0.46947873", "0.46866196", "0.46857032", "0.46829715", "0.46709645", "0.46679577", "0.46603018", "0.46584445", "0.46578446", "0.46514586", "0.46402276", "0.46389616" ]
0.48013616
63
Use only on 3x1 Vecs to homogenize them. Example: "Vec.of( 1,2,3 ).to4( true or false )" returns the Vec [ 1,2,3, 1 or 0 ].
cross(b) // Use only on 3x1 Vecs. Example: "Vec.of( 1,0,0 ).cross( Vec.of( 0,1,0 ) )" returns the Vec [ 0,0,1 ]. { return Vec.of(this[1] * b[2] - this[2] * b[1], this[2] * b[0] - this[0] * b[2], this[0] * b[1] - this[1] * b[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "to3() {\r\n return Vec.of(this[0], this[1], this[2]);\r\n }", "to4(isPoint) {\r\n return Vec.of(this[0], this[1], this[2], +isPoint);\r\n }", "static ones() {\n\n // Return a Vector with 1, 1, 1\n return new Vector([1, 1, 1]);\n }", "static make4Vec() {\nreturn new Float32Array(4);\n}", "function normalize(vec) {\n\tvar mag = magnitude(vec);\n\t// console.log(typeof vec[0]);\n\tvar norm = [vec[0] / mag, vec[1] / mag];\n\t// console.log(norm);\n\treturn norm;\n}", "static packNormalizedVec4ToVec2(x, y, z, w, criteria) {\n let v0 = 0.0;\n let v1 = 0.0;\n \n x = (x + 1)/2.0;\n y = (y + 1)/2.0;\n z = (z + 1)/2.0;\n w = (w + 1)/2.0;\n\n let ir = Math.floor(x*(criteria-1.0));\n let ig = Math.floor(y*(criteria-1.0));\n let irg = ir*criteria + ig;\n v0 = irg / criteria; \n\n let ib = Math.floor(z*(criteria-1.0));\n let ia = Math.floor(w*(criteria-1.0));\n let iba = ib*criteria + ia;\n v1 =iba / criteria; \n \n return [v0, v1];\n }", "normalizeVec4(v, dest) {\n const f = 1.0 / math.lenVec4(v);\n return math.mulVec4Scalar(v, f, dest);\n }", "function packNormalizedVec4ToVec2(x, y, z, w, criteria) {\n // range to [0, s1]\n x = (x + 1) / 2.0;\n y = (y + 1) / 2.0;\n z = (z + 1) / 2.0;\n w = (w + 1) / 2.0;\n const ir = Math.floor(x * (criteria - 1.0));\n const ig = Math.floor(y * (criteria - 1.0));\n const irg = ir * criteria + ig;\n const v0 = irg / criteria;\n const ib = Math.floor(z * (criteria - 1.0));\n const ia = Math.floor(w * (criteria - 1.0));\n const iba = ib * criteria + ia;\n const v1 = iba / criteria;\n return [v0, v1];\n}", "function generateInVec(all_ids, connectome) {\n var input = [];\n for (var i in all_ids) {\n //input[i] = connectome.data[all_ids[i]].type === \"SensoryNeuron\" ? 1 : 0;\n //input[i] = (all_ids[i] === \"ADAL\" || all_ids[i] === \"ADAR\") ? 0.2 : 0;\n //input[i] = (all_ids[i] === \"A\" || all_ids[i] === \"B\") ? 0.8 : 0;\n //input[i] = all_ids[i] === \"A\" ? 1 : 0;\n if (all_ids[i] === \"A\") {\n input[i] = 0.999999;\n }\n else if (all_ids[i] === \"B\") {\n input[i] = 0.5;\n }\n else {\n input[i] = 0;\n }\n }\n return input;\n }", "static packNormalizedVec4ToVec2(x, y, z, w, criteria) {\n let v0 = 0.0;\n let v1 = 0.0;\n x = (x + 1) / 2.0;\n y = (y + 1) / 2.0;\n z = (z + 1) / 2.0;\n w = (w + 1) / 2.0;\n let ir = Math.floor(x * (criteria - 1.0));\n let ig = Math.floor(y * (criteria - 1.0));\n let irg = ir * criteria + ig;\n v0 = irg / criteria;\n let ib = Math.floor(z * (criteria - 1.0));\n let ia = Math.floor(w * (criteria - 1.0));\n let iba = ib * criteria + ia;\n v1 = iba / criteria;\n return [v0, v1];\n }", "function p5VectorsToVec2(vectors) {\n let newVecs = [];\n for (var i = 0; i < vectors.length; i++) {\n newVecs.push(new Vec2(vectors[i].x / SCALE, vectors[i].y / SCALE));\n }\n return newVecs;\n}", "norm(vec) \n { \n let mag = Math.sqrt(vec.x*vec.x + vec.y*vec.y);\n let multiplier = 1/mag;\n return {\n x: vec.x * multiplier,\n y: vec.y * multiplier\n };\n }", "function transformVector(matrix, vector4) {\n var transformed = new Array(4);\n\n for (var i = 0; i < 4; ++i) {\n transformed[i] = 0.0;\n\n for (var j = 0; j < 4; ++j) {\n transformed[i] += vector4[j] * matrix[j * 4 + i];\n }\n }\n\n return transformed;\n}", "mat4To3(m) {\n return [\n m[0], m[1], m[2],\n m[4], m[5], m[6],\n m[8], m[9], m[10]\n ];\n }", "function project_and_invert(V) {\n var id_matrix = exports.GLM.utils.identity(V.length);\n for (var i = 0; i < V.length; i++) { id_matrix[i][i] /= V[i]; } \n return id_matrix;\n }", "function arrayFromVector(vector) {\n return vector.dictionary ? arrayFromDictionary(vector)\n : vector.nullCount > 0 ? [...vector]\n : vector.toArray();\n}", "static Normalized(vec) {\n vec = new VecX(vec);\n if (vec.Magnitude() === 0)\n return vec.Multiply(0);\n return vec.Divide(vec.Magnitude());\n }", "function v3tov(v)\n{//vector to THREE vector\n\treturn vector(v.x, v.y, v.z)\n}", "static cast(...args) {\r\n return args.map(x => Vec.from(x));\r\n }", "static make3Vec() {\nreturn new Float32Array(3);\n}", "normalize(vec) {\n const norm = Util.magnitude(vec);\n return Util.scale(vec, 1 / norm);\n }", "setMat4ToOnes() {\n return math.m4s(1.0);\n }", "function normalTo(vec){\r\n return {x: vec.y, y: -vec.x};\r\n}", "function toO3D(n) {\n return n !== true ? n : false;\n}", "function toO3D(n) {\n return n !== true ? n : false;\n}", "get vector4Value() {}", "function m_modVec(v) //objet x, y\n{\n return Math.sqrt(v.x*v.x + v.y*v.y);\n}", "convertGrid( vec ){\n if( vec == undefined )\n return null;\n\n return vec.y * this.const.m + vec.x;\n }", "function multiFour (arr)\n{\nvar four = arr.filter ( x => x%4===0 )\n\nreturn four;\n}", "function normalizeV(v) {\n\tvar vLen = Math.sqrt(v.x*v.x + v.y*v.y + v.z*v.z);\n\tv.x /= vLen;\n\tv.y /= vLen;\n\tv.z /= vLen;\n\treturn v;\n}", "static setNormalizeV3(xyz) {\nvar len;\n//--------------\nlen = this.lengthV3(xyz);\nif (1e-5 <= len) {\nreturn this.setInverseScaleV3(xyz, len);\n} else {\nreturn xyz;\n}\n}", "function normalize(vec3) {\n if (vec3.x === 0 && vec3.y === 0 && vec3.z === 0) {\n return vec3;\n }\n var length = Math.sqrt(vec3.x * vec3.x + vec3.y * vec3.y + vec3.z * vec3.z);\n var invScalar = 1 / length;\n vec3.x *= invScalar;\n vec3.y *= invScalar;\n vec3.z *= invScalar;\n return vec3;\n}", "function permuteVector(v,n)\n{\n var newVector = [0,0,0,0];\n\n for(var i=0;i<4;i++)\n {\n newVector[i] = v[(i+n)%4];\n }\n return newVector;\n\n}", "function pack_vector(v) {\n return [round_number(v[0], 2), round_number(v[1], 2)];\n}", "transformVec4(m, v, dest) {\n const v0 = v[0];\n const v1 = v[1];\n const v2 = v[2];\n const v3 = v[3];\n dest = dest || math.vec4();\n dest[0] = m[0] * v0 + m[4] * v1 + m[8] * v2 + m[12] * v3;\n dest[1] = m[1] * v0 + m[5] * v1 + m[9] * v2 + m[13] * v3;\n dest[2] = m[2] * v0 + m[6] * v1 + m[10] * v2 + m[14] * v3;\n dest[3] = m[3] * v0 + m[7] * v1 + m[11] * v2 + m[15] * v3;\n return dest;\n }", "function norm(vec) {\r\n var r = magnitude(vec);\r\n return {\r\n x: vec.x / r,\r\n y: vec.y / r\r\n };\r\n}", "function validateVector4(v) {\n return v.length === 4 && Number.isFinite(v[0]) && Number.isFinite(v[1]) && Number.isFinite(v[2]) && Number.isFinite(v[3]);\n}", "function validateVector4(v) {\n return v.length === 4 && Number.isFinite(v[0]) && Number.isFinite(v[1]) && Number.isFinite(v[2]) && Number.isFinite(v[3]);\n}", "function change(m) {\n var result = create(m.length);\n for (var i = 0; i < m.length; i++) {\n for (var j = 0; j < m.length; j++) {\n var n = neighbors(m, i, j);\n if (m[i][j] == 0) {\n if (n == 3) {\n result[i][j] = 1;\n } else {\n result[i][j] = 0;\n }\n } else {\n if (n <= 1 || n >= 4) {\n result[i][j] = 0;\n } else {\n result[i][j] = 1;\n }\n }\n }\n }\n return result;\n}", "toV3(xyz) {\nreturn E3Vec.setV3(xyz, this.xyz);\n}", "static isVector(...vectors) { return vectors.filter(vector => !(vector instanceof Vector)).length === 0; }", "function toVector(arr){\n\ttoVectorTest(arr)\n\tconst newM = new Array(arr.length)\n\tfor(let i=0;i<arr.length;i++){\n\t\tnewM[i] = [arr[i]]\n\t}\n\treturn newM\n}", "function transform(vec,fun){\n\tfor(i=0;i<vec.length;i++){\n\t\tvec[i] = fun(vec[i]);\n\t}\n\treturn vec\n}", "__map_int_to_bool(arr, dim) {\n let new_arr = []\n if (dim == 2) {\n arr.map(outer_val => {\n let temp_arr = []\n outer_val.map(val => {\n if (val == 1) {\n temp_arr.push(true)\n } else {\n temp_arr.push(false)\n }\n })\n new_arr.push(temp_arr)\n })\n return new_arr\n } else {\n arr.map(val => {\n if (val == 1) {\n new_arr.push(true)\n } else {\n new_arr.push(false)\n }\n })\n return new_arr\n }\n\n }", "got1to4(ones, twos, threes, fours){\n return ones.length >= 1 &&\n twos.length >= 1 &&\n threes.length >= 1 &&\n fours.length >= 1;\n }", "function arrayExtractor(vector) {\n return vector.numChildren\n ? arrayFromNested(vector)\n : arrayFromVector(vector);\n}", "function toVector(arr)\n\t\t\t{\n\t\t\t\treturn concat.apply([], arr);\n\t\t\t}", "function toThreeVec(v) {\n return new THREE.Vector3(v.x, v.y, v.z);\n}", "function vector_normalize(v1) {\n let sum = 0;\n let v1_norm = [];\n for (let i = 0; i < v1.length; i++)\n sum += v1[i] ** 2;\n sum = Math.sqrt(sum);\n for (let i = 0; i < v1.length; i++)\n v1_norm[i] = v1[i]/sum;\n return v1_norm;\n}", "function toVector(arr) {\n return concat.apply([], arr);\n}", "function toVector(arr) {\n return concat.apply([], arr);\n}", "_set_value_from_arr(v) {\n if (v === null) { \n if (this.v.r === null)\n return false\n this.v.r = null; this.v.g = null; this.v.b = null; this.v.alpha = null; this.v.alphai = null\n return true\n }\n const r = color_comp_clamp(v[0])\n const g = color_comp_clamp(v[1])\n const b = color_comp_clamp(v[2])\n let alpha, alphai\n if (v.length === 3) { // expr result can be either vec3 or vec4\n alphai = 255\n alpha = 1\n }\n else {\n alphai = color_comp_clamp(v[3])\n alpha = this.v.alphai/255\n } \n if (this.v.r == r && this.v.g == g && this.v.b == b && this.v.alphai == alphai)\n return false\n this.v.r = r; this.v.g = g; this.v.b = b; this.v.alpha = alpha; this.v.alphai = alphai\n return true\n }", "function normalize_v2(v) {\n var len = Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n return len == 0 ? v : [v[0] / len, v[1] / len];\n }", "function vectorize(A) {\n var result = [];\n A.forEach(function(d) {\n result = result.concat(d);\n });\n return result;\n}", "function v(t){return t?{origin:t$c(t.origin),vector:t$c(t.vector)}:{origin:n$4(),vector:n$4()}}", "inverseTransformVector(vec){\n let result = p5.Vector.sub(vec, this.position);\n\n result.rotate(-this.rotation);\n vec.div(this.scale);\n\n return result;\n }", "function vector_normalize(v) {\n var sum = 0;\n var v_norm = [];\n var i;\n for (i = 0; i < v.length; i++){\n sum += Math.pow(v[i], 2);\n }\n sum = Math.sqrt(sum);\n for (i = 0; i < v.length; i++){\n v_norm[i] = v[i]/sum;\n }\n return v_norm;\n}", "function scale4(a, b, c) {\r\n\tconst result = mat4();\r\n\tresult[0][0] = a;\r\n\tresult[1][1] = b;\r\n\tresult[2][2] = c;\r\n\treturn result;\r\n}", "values(vectors) {\n let values = new Array(vectors.length);\n for(let k = 0; k < values.length; k++) {\n values[k] = this.value(vectors[k]);\n }\n }", "normalizeVec3(v, dest) {\n const f = 1.0 / math.lenVec3(v);\n return math.mulVec3Scalar(v, f, dest);\n }", "function toUnitVector(v) {\r\n const len = vectorLen(v);\r\n return [v[0] / len, v[1] / len];\r\n}", "function isHomogenous(arr) { \n return arr.length && arr.every((el,i) => typeof arr[0] === typeof(arr[i])); \n }", "function createMat4() {\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n}", "function createMat4() {\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n}", "function createMat4() {\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n}", "static fromV3(xyz) {\nvar x, y, z;\n[x, y, z] = xyz;\nreturn new E3Vec(x, y, z);\n}", "static normalize(v) {\r\n try {\r\n if (!(v instanceof Vector))\r\n throw \"Vector.normalize: parameter not a vector\";\r\n else {\r\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\r\n return(Vector.scale(lenDenom,v));\r\n }\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "function mat3from4(out, mat4x4) {\n out[0][0] = mat4x4[0]\n out[0][1] = mat4x4[1]\n out[0][2] = mat4x4[2]\n \n out[1][0] = mat4x4[4]\n out[1][1] = mat4x4[5]\n out[1][2] = mat4x4[6]\n\n out[2][0] = mat4x4[8]\n out[2][1] = mat4x4[9]\n out[2][2] = mat4x4[10]\n}", "function mat3from4(out, mat4x4) {\n out[0][0] = mat4x4[0]\n out[0][1] = mat4x4[1]\n out[0][2] = mat4x4[2]\n \n out[1][0] = mat4x4[4]\n out[1][1] = mat4x4[5]\n out[1][2] = mat4x4[6]\n\n out[2][0] = mat4x4[8]\n out[2][1] = mat4x4[9]\n out[2][2] = mat4x4[10]\n}", "function mat3from4(out, mat4x4) {\n out[0][0] = mat4x4[0]\n out[0][1] = mat4x4[1]\n out[0][2] = mat4x4[2]\n \n out[1][0] = mat4x4[4]\n out[1][1] = mat4x4[5]\n out[1][2] = mat4x4[6]\n\n out[2][0] = mat4x4[8]\n out[2][1] = mat4x4[9]\n out[2][2] = mat4x4[10]\n}", "static makeIdMat4() {\nvar m;\n//----------\nm = new Float32Array(16);\nm[0] = m[5] = m[10] = m[15] = 1;\nreturn m;\n}", "function _vecInContext(v, m) {\n\t return [\n\t v[0] * m[0] + v[1] * m[4] + v[2] * m[8],\n\t v[0] * m[1] + v[1] * m[5] + v[2] * m[9],\n\t v[0] * m[2] + v[1] * m[6] + v[2] * m[10]\n\t ];\n\t }", "function normalize(vector) {\n\tconst magnitude = Math.sqrt(Math.pow(vector[0], 2) + Math.pow(vector[1], 2));\n\tvector[0] /= magnitude;\n\tvector[1] /= magnitude;\n\treturn vector;\n}", "static normalize(v) {\n try {\n if (!(v instanceof Vector))\n throw \"Vector.normalize: parameter not a vector\";\n else {\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\n return(Vector.scale(lenDenom,v));\n }\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "function _vecInContext(v, m) {\n return [\n v[0] * m[0] + v[1] * m[4] + v[2] * m[8],\n v[0] * m[1] + v[1] * m[5] + v[2] * m[9],\n v[0] * m[2] + v[1] * m[6] + v[2] * m[10]\n ];\n }", "static make(vectors){\n let X = new Matrix();\n \n X.rows = vectors.length;\n X.cols = vectors[0].length;\n if(X.cols == null){X.cols = 1;}\n X.matrix = vectors;\n \n return X;\n}", "function _arrayToVec(array) {\n var len = array.length;\n return 'vec' + len + '(' + array.join(',') + ')';\n}", "function flatten( v )\n{\n\n if(isVector(v)) {\n var floats = new Float32Array(v.length)\n for(var i =0; i<v.length; i++) floats[i] = v[i];\n return floats;\n }\n if(isMatrix(v)) {\n\n var floats = new Float32Array(v.length*v.length);\n for(var i =0; i<v.length; i++) for(j=0;j<v.length; j++) {\n floats[i*v.length+j] = v[j][i];\n }\n return floats;\n }\n\n var floats = new Float32Array( v.length*v[0].length );\n\n for(var i = 0; i<v.length; i++) for(var j=0; j<v[0].length; j++) {\n floats[i*v[0].length+j] = v[i][j];\n }\n return floats;\n}", "function vec( n, n2=n ) { return {x: n, y: n2}; }", "function mat3from4(out, mat4x4) {\n\t out[0][0] = mat4x4[0]\n\t out[0][1] = mat4x4[1]\n\t out[0][2] = mat4x4[2]\n\t \n\t out[1][0] = mat4x4[4]\n\t out[1][1] = mat4x4[5]\n\t out[1][2] = mat4x4[6]\n\t\n\t out[2][0] = mat4x4[8]\n\t out[2][1] = mat4x4[9]\n\t out[2][2] = mat4x4[10]\n\t}", "function mat3from4(out, mat4x4) {\n\t out[0][0] = mat4x4[0]\n\t out[0][1] = mat4x4[1]\n\t out[0][2] = mat4x4[2]\n\t \n\t out[1][0] = mat4x4[4]\n\t out[1][1] = mat4x4[5]\n\t out[1][2] = mat4x4[6]\n\t\n\t out[2][0] = mat4x4[8]\n\t out[2][1] = mat4x4[9]\n\t out[2][2] = mat4x4[10]\n\t}", "transformVec3(v, out) {\n //GLSL - vecQuatRotation(model.rotation, a_position.xyz * model.scale) + model.position;\n return (out || v)\n .fromMul(v, this.scl)\n .transformQuat(this.rot)\n .add(this.pos);\n }", "function scale4(a, b, c) {\r\n var result = mat4();\r\n result[0][0] = a;\r\n result[1][1] = b;\r\n result[2][2] = c;\r\n return result;\r\n}", "function scale4(a, b, c) {\n var result = mat4();\n result[0][0] = a;\n result[1][1] = b;\n result[2][2] = c;\n return result;\n}", "norm (vec) {\n\t return Util.dist([0, 0], vec);\n\t }", "static Normalized(x, y, z) {\n let vec = new Vec3(x, y, z);\n if (vec.Magnitude() === 0)\n return new Vec3(0);\n return vec.Divide(vec.Magnitude());\n }", "transformVector(vector)\n {\n vector = vector.scaleUniform(this.tileset.size);\n vector = super.transformVector(vector);\n return vector;\n }", "dir (vec) {\n\t var norm = Util.norm(vec);\n\t return Util.scale(vec, 1 / norm);\n\t }", "normalize() {\n if (this._vector[3] !== 0) {\n this._vector[0] = this._vector[0] / this._vector[3];\n this._vector[1] = this._vector[1] / this._vector[3];\n this._vector[2] = this._vector[2] / this._vector[3];\n this._vector[3] = 1;\n }\n }", "function getv(v) {\n return [\n pos[0] + size[0] * ( (v>>0) & 1 ),\n pos[1] + size[1] * ( (v>>1) & 1 ),\n pos[2] + size[2] * ( (v>>2) & 1 )\n ];\n }", "function createPuzzle()\n{\n for(var i=0; i<4 ; i++)\n {\n for(var j=0; j<4 ; j++)\n {\n puzzle[i][j]=vector[j];\n }\n\n }\n}", "copy() {\r\n return this.map(r => Vec.of(...r));\r\n }", "function uniqueArray4(a) {\n return [...new Set(a)];\n}", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale (vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }", "scale(vec, m) {\n return [vec[0] * m, vec[1] * m];\n }" ]
[ "0.5919878", "0.58700734", "0.57981265", "0.56932217", "0.56930447", "0.5520572", "0.5387481", "0.5381846", "0.5360216", "0.5337002", "0.523858", "0.52362084", "0.52151406", "0.5203394", "0.5198301", "0.51878494", "0.51607394", "0.51368564", "0.51310474", "0.5126837", "0.5125129", "0.5117823", "0.51038", "0.5092836", "0.5092836", "0.50887114", "0.5081949", "0.50817585", "0.50464606", "0.5030279", "0.5021026", "0.50190574", "0.5017408", "0.5015192", "0.5011194", "0.50095737", "0.49951622", "0.49951622", "0.4993039", "0.49868286", "0.49621922", "0.49594536", "0.49443862", "0.4942199", "0.4937907", "0.4936552", "0.49279743", "0.49076945", "0.48954055", "0.48852417", "0.48852417", "0.48722073", "0.48699006", "0.48691404", "0.48644018", "0.48641285", "0.48620227", "0.48592842", "0.4843724", "0.48338747", "0.4831919", "0.4830806", "0.48286346", "0.48286346", "0.48286346", "0.48115888", "0.48046723", "0.48043796", "0.48043796", "0.48043796", "0.48024178", "0.47971708", "0.47912258", "0.47873503", "0.47823787", "0.47569215", "0.47533414", "0.47461173", "0.47452602", "0.47383162", "0.47383162", "0.47379518", "0.47324264", "0.4723553", "0.47216028", "0.4713958", "0.4713187", "0.47042203", "0.46976316", "0.46967608", "0.46905217", "0.46896386", "0.46778107", "0.46738416", "0.46738416", "0.46738416", "0.46738416", "0.4664138", "0.4664138", "0.4664138", "0.4664138" ]
0.0
-1
Pass in rows (which can be arrays).
set_identity(m, n) { this.length = 0; for (let i = 0; i < m; i++) { this.push(new Array(n).fill(0)); if (i < n) this[i][i] = 1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "parseRows(rows) {\n if (this.options.fields === false) {\n const fakeRows = [];\n\n if (this.options.first) {\n fakeRows.push(null);\n }\n\n return fakeRows;\n }\n\n return rows.map(this.parseRow, this);\n }", "toRow(row) {\n this.columns.map(col => row[col.index]);\n }", "constructor(...rows) {\n /**\n * @param {Array} rows \n */\n this.rows = rows\n }", "function getRows() {\n var self = this;\n\n self._getRows.apply(self, arguments);\n}", "constructor(rows) {\n this._rows = rows.slice();\n }", "serializeTableRows(writer, rows) {\n if (rows.length > 0) {\n for (let i = 0; i < rows.length; i++) {\n let row = rows[i];\n if (row.cells.length > 0) {\n this.serializeRow(writer, row);\n }\n }\n }\n }", "function row () {\n // TODO: also register row number during parsing\n return undefined;\n }", "function toRows(data, rowCount) {\n console.log(\"data\")\n console.log(Object.values(data[0])[0])\n var arr1 = new Array()\n for (let i = 0; i < rowCount; i++) {\n arr1.push(Object.values(data[i])[0])\n }\n arr1 = [].concat.apply([], arr1)\n\n var arr2 = new Array()\n for (let i = 0; i < rowCount; i++) {\n arr2.push(parseFloat(Object.values(data[i])[1]))\n }\n arr2 = [].concat.apply([], arr2)\n console.log(arr1)\n console.log(arr2)\n return [arr1, arr2]\n\n}", "function getRow() {\n var self = this;\n\n self._getRow.apply(self, arguments);\n}", "function Row(args) {\r\n /// <param name=\"args\" optional=\"false\" parameterArray=\"true\">Row arguments.</param> \r\n var rowValues = MbUnit.extend([]);\r\n for (var i = 0; i < arguments.length; i++) {\r\n rowValues[i] = arguments[i];\r\n }\r\n \r\n var that = this;\r\n if (that === window)\r\n that = new Row();\r\n\r\n that.row = rowValues; \r\n return that;\r\n}", "function row(validMatrix, _row) {\n if (!isArray(validMatrix)) {\n throw new Error('row(--> Here should be a valid matrix <-- , row_number)');\n }\n if (_row === undefined)\n throw new Error('row(validMatrix , --> Here should be the row number to fetch <--)');\n\n if (!isANumber(_row))\n throw new Error('row(validMatrix , --> Here should be the row number to fetch <--)');\n\n _row = Math.abs(_row);\n const matrix_rows = rows(validMatrix);\n\n if(_row >= matrix_rows){\n throw new Error('This matrix has only '+matrix_rows+' rows but requested row is '+_row);\n }\n \n const isTwoDim = isArray(validMatrix[0]);\n\n let result;\n if (isTwoDim)\n result = validMatrix[_row];\n else\n result = validMatrix;\n\n return isArray(result) ? result : [result];\n}", "function updateRows(e) {\n setRows(parseInt(e.currentTarget.value))\n }", "function parseRows(data) {\n\t\t\t\t\tdata.forEach(function (row) {\n\t\t\t\t\t\trows.push(parseRow(row));\n\t\t\t\t\t});\n\t\t\t\t}", "rows() {\n let fileContents = fs.readFileSync(this.path, 'utf8');\n let lines = this.dropHeaderRow(fileContents.split(/\\r?\\n/));\n return lines.map(line => {\n return line.split(\",\").map(s => s.trim());\n });\n }", "function formatRows(rows){return rows.get().join(tmpRowDelim).split(tmpRowDelim).join(rowDelim).split(tmpColDelim).join(colDelim);}", "function convertValues(rows) {\n var values = rows.map(function(row) {\n var rowValues = []\n row['cells'].map(function(rowValue) {\n rowValues.push(rowValue['value']) \n }) \n return rowValues;\n })\n return values;\n}", "function getRow(board, row) {\n //returns an array with all of the array elements from the row\n //console.log(row +\" \" + board[row])\n return board[row];\n}", "function row(M,i) {\n return M[i];\n}", "push(...row)\n\t{\n\t\tthis.rows.push({\n\t\t\ttype: 'data',\n\t\t\talign: this.alignment || 'l'.repeat(row.length),\n\t\t\tdata: row.map(String),\n\t\t\tdiv: false\n\t\t});\n\n\t\tthis.width = Math.max(this.width, row.length);\n\t}", "addRows() {\n if (this._data.constructor !== Array)\n throw TypeError('data property of table is not an array');\n\n this._data.forEach((item) => {\n\n if (item.constructor !== this._rowItemType)\n throw TypeError('invalid item type for table row');\n\n let $tr = $('<tr>');\n\n for (const prop in item) {\n let $td = $('<td>');\n $td.html(item[prop]);\n $tr.append($td);\n }\n\n this._body.append($tr);\n })\n }", "function readRows() {\n var sheet = SpreadsheetApp.getActiveSheet();\n var rows = sheet.getDataRange();\n var numRows = rows.getNumRows();\n var values = rows.getValues();\n \n makeTables(values)\n}", "function getRows() {\n\t\toriginal().then(row => (originalRow = row));\n\t\texpected().then(row => (expectedRow = row));\n\t}", "function selectRows(data) {\n \t\n }", "rowData() {\n const data = this.mapResponseData();\n let rows = [];\n if (data) {\n for (const property in data) {\n rows = rows.concat(data[property]);\n }\n return rows;\n }\n return null;\n }", "function getNewRow()\r\n{\r\n\tvar row = [];\r\n\r\n\tfor (var i = 0; i < fields.length; i++)\r\n\t{\r\n\t\tvar field = document.getElementById(fields[i]);\r\n\t\tvar value = \"\"\r\n\r\n\t\tif (field)\r\n\t\t{\r\n\t\t\tif (field.type == 'checkbox')\r\n\t\t\t\tvalue = (field.checked ? \"true\" : \"false\");\r\n\t\t\telse\r\n\t\t\t\tvalue = field.value;\r\n\t\t}\r\n\r\n\t\trow[row.length] = value;\r\n\t}\r\n\r\n\t// run row finalization function\r\n\tif (typeof(validateRow) == 'function')\r\n\t{\r\n\t\tif (validateRow(row) == false)\r\n\t\t\t// row is invalid, return now\r\n\t\t\treturn null;\r\n\t}\r\n\r\n\t// manipulate row data with specific function supplied by specific grid\r\n\tif (typeof(finalizeRow) == 'function')\r\n\t{\r\n\t\trow = finalizeRow(row);\r\n\t}\r\n\r\n\treturn row;\r\n}", "function create2DArr(rows){\n //start an array\n var array = [];\n \n //loop through the array\n for(var i=0;i<rows;i++){\n //put an array in that index\n array[i] = [];\n }\n \n return array;\n}", "row(...cells) {\n let i = 0\n for (let cell of cells) {\n this.cell(i++, cell)\n }\n }", "function create_rows(stones){\n /*Input: The array of the stones\n Output: An array that consists out of the rows of the field.\n */\n var rows = [[stones[0],stones[1],stones[2]], [stones[0],stones[7],stones[6]],[stones[2],stones[3],stones[4]],[stones[6],stones[5],stones[4]],[stones[8],stones[15],stones[14]], [stones[8],stones[9],stones[10]],[stones[10],stones[11],stones[12]],[stones[14],stones[13],stones[12]],[stones[16],stones[23],stones[22]], [stones[16],stones[17],stones[18]],[stones[18],stones[19],stones[20]],[stones[22],stones[21],stones[20]],[stones[7],stones[15],stones[23]], [stones[1],stones[9],stones[17]],[stones[19],stones[11],stones[3]],[stones[21],stones[13],stones[5]]];\n return rows;\n}", "function addtoArray() {\n //console.info(\"getRowCount\" + _self.backendApi.getRowCount());\n _self.backendApi.eachDataRow(function (rownum, row) {\n //console.info(\"rownum \" + rownum);\n lastrow = rownum;\n //do something with the row..\n\n });\n\n }", "renderRow(begin) {\n let row = [];\n for (let i = begin * 3; i < 3 + begin * 3; i++) {\n row.push(this.renderSquare(i));\n }\n return row;\n }", "constructor (data) {\n\t\tthis.rows = data;\n\t}", "rowColToArrayIndex(col, rows) {\r\n\treturn col + this.column * rows;\r\n}", "_getRowsArray() {\n return this._rows instanceof QueryList ? this._rows.toArray() : this._rows;\n }", "function row(param){ //created a function in order to compile computation every row\n\tvar rowResult = []; //initialize array variable for array\n\tvar rowNum = param; //initialize variable from function's param\n\n\tfor (var i = 1; i <= rowNum; ++i) { //for loop to compile string into array \n\t\tvar rowMultiBy = i; \n\t\tvar rumMulti = rowNum * i; //result of multiplication\n\t\trowResult.push(rowNum+\"*\"+rowMultiBy+\"=\"+rumMulti); //pushed the string computation to array\n\t\t\n\t}\n\treturn rowResult; //returns the list of strings for row\n}", "function rows(ValidMatrix) {\n const x = ValidMatrix[0];\n if (!isArray(x)) return 1;\n\n\n return ValidMatrix.length;\n}", "function prepData(rows) {\n var i = 1;\n rows.forEach( (row) => {\n row.index = i;\n if (row.Count) {\n row.Count = +row.Count;\n }\n i++;\n });\n return rows;\n}", "function readRows() {\r\n var sheet = SpreadsheetApp.getActiveSheet();\r\n var rows = sheet.getDataRange();\r\n var numRows = rows.getNumRows();\r\n var values = rows.getValues();\r\n\r\n for (var i = 0; i <= numRows - 1; i++) {\r\n var row = values[i];\r\n Logger.log(row);\r\n }\r\n}", "set rows(value) {\n Helper.UpdateInputAttribute(this, 'rows', value);\n }", "function sumofEachRow (mat) {\n let sum = [];\n for(let j = 0; j < mat.length; ++j){\n sum.push(sumofArray(mat[j]));\n }\n return sum;\n}", "function SQLRows(res,sql,params){\n if (!params){\n params = []\n }\n db.all(sql, params, (err, rows) => {\n if (err) {\n res.status(400).json({\"error\":err.message});\n return;\n }\n res.json({\n \"message\":\"success\",\n \"data\":rows\n })\n });\n}", "set row(row) {\n this.que['row'] = row;\n }", "_setFieldsRows (fieldsRows, valueOptions = {}) {\n if (!_isArray(fieldsRows)) {\n throw new Error(\"Expected an array of objects but got \" + typeof fieldsRows);\n }\n\n // Reset the objects stored fields and values\n this._reset();\n\n // for each row\n for (let i = 0; fieldsRows.length > i; ++i) {\n let fieldRow = fieldsRows[i];\n\n // for each field\n for (let field in fieldRow) {\n let value = fieldRow[field];\n\n field = this._sanitizeField(field);\n value = this._sanitizeValue(value);\n\n let index = this._fields.indexOf(field);\n\n if (0 < i && -1 === index) {\n throw new Error('All fields in subsequent rows must match the fields in the first row');\n }\n\n // Add field only if it hasn't been added before\n if (-1 === index) {\n this._fields.push(field);\n index = this._fields.length - 1;\n }\n\n // The first value added needs to add the array\n if (!_isArray(this._values[i])) {\n this._values[i] = [];\n this._valueOptions[i] = [];\n }\n\n this._values[i][index] = value;\n this._valueOptions[i][index] = valueOptions;\n }\n }\n }", "function readRows() {\n var sheet = SpreadsheetApp.getActiveSheet();\n var rows = sheet.getDataRange();\n var numRows = rows.getNumRows();\n var values = rows.getValues();\n\n for (var i = 0; i <= numRows - 1; i++) {\n var row = values[i];\n Logger.log(row);\n }\n}", "function formatRows(rows) {\n\t return rows.get().join(tmpRowDelim)\n\t .split(tmpRowDelim).join(rowDelim)\n\t .split(tmpColDelim).join(colDelim);\n\t }", "getRowCallback() {\n\n }", "transformRow(row) {\n row = this.normalizeRow(row);\n const formattedRow = this.getFormattedRow(row, this.schema); // get a uniform object\n // turn our uniform object into X strings like doe_john_30008_1974. One per transform we have enough data for\n const transformedRow = this.matchedHashCombinations.map(([transformFunction, _facebookAPIFieldName]) => {\n if (this.shouldHash) {\n return this.hash(transformFunction(formattedRow));\n }\n return transformFunction(formattedRow);\n });\n // return array for each row\n return transformedRow;\n }", "function addingRows(data) {\n var rowsToAdd = [];\n for (var i = 0; i < data.length; i++) {\n rowsToAdd.push(createDescripRow(data[i]));\n }\n // console.log(rowsToAdd);\n }", "function formatRows(rows){\n return rows.get().join(tmpRowDelim)\n .split(tmpRowDelim).join(rowDelim)\n .split(tmpColDelim).join(colDelim);\n }", "getRow(row) {\n return this.sudokuBoard[row];\n }", "function getRowData(row)\n{\n const taskID = getSavedTaskID(row);\n const taskType = getRowsTable(row);\n const task = getSavedTask(taskType, taskID);\n return task;\n}", "function __tableRows($trRows) {\r\n var strTable = \"<table>\" + $trRows + \"</table>\";\r\n var node = document.createElement(\"SPAN\");\r\n node.innerHTML = strTable;\r\n var rows = node.children[0].rows;\r\n var tmp = [];\r\n for (var i=0, len=rows.length; i<len; i++) {\r\n tmp.push(rows[i]);\r\n }\r\n return tmp;\r\n}", "_getRenderedRows(rowOutlet) {\n const renderedRows = [];\n for (let i = 0; i < rowOutlet.viewContainer.length; i++) {\n const viewRef = rowOutlet.viewContainer.get(i);\n renderedRows.push(viewRef.rootNodes[0]);\n }\n return renderedRows;\n }", "function RenderRow() {}", "function lineValues(rowOrColumnElements) {\n let lineArray = []\n\n for (let i = 0; i < rowOrColumnElements.length; i++) {\n lineArray.push(rowOrColumnElements[i].innerText)\n }\n\n return lineArray // gives the values of each Row and Column as an array\n}", "function getRowData(tr=false, format=\"JSON\") {\n if(tr) {\n \n if(format === \"JSON\") {\n var obj = [];\n \n\n tds = $(tr).find(\"td\");\n tds.each(function() {\n var data = $(this).text();\n obj.push(data)\n });\n\n return obj;\n }\n }\n}", "function filledRow(len, value) \n{\n return Array.apply(null, Array(len)).map(function(val, idx) { return value});\n}", "function checkRows(boardByColumns){\n boardByRows = returnBoardByRows(boardByColumns);\n\n for (var i=0; i<boardByRows.length; i++){\n check4InRow(boardByRows[i].content)\n };\n}", "function unpack(rows, key) {\n let array = [];\n // console.log(rows)\n for (var doc in rows) {\n array.push(rows[doc]);\n }\n return array;\n }", "function unpack(rows, key) {\n let array = [];\n // console.log(rows)\n for (var doc in rows) {\n array.push(rows[doc]);\n }\n return array;\n }", "get rows() {\n\t\treturn this.interleave.reduce((carry, value) => {\n\t\t\tif (value === EOL) {\n\t\t\t\treturn carry.concat(new Row());\n\t\t\t}\n\t\t\tif (!carry.length) {\n\t\t\t\tcarry.push(new Row());\n\t\t\t}\n\t\t\tconst record = carry[carry.length - 1];\n\n\t\t\tif (value === separator) {\n\t\t\t\trecord.append(new Cell());\n\t\t\t} else {\n\t\t\t\tconst field = record.last || record.append(new Cell());\n\n\t\t\t\tfield.append(value);\n\t\t\t}\n\n\t\t\treturn carry;\n\t\t}, []);\n\t}", "function row(...columns) {\n api._rows.push(columns);\n return api;\n }", "get rows() {\n return this._rows;\n }", "function SQLRow(res,sql,params){\n if (!params){\n params = []\n }\n db.get(sql, params, (err, row) => {\n if (err) {\n res.status(400).json({\"error\":err.message});\n return\n }\n if (!row){\n res.status(404).json({\"error\":\"Not found\"})\n return\n }\n res.json({\n \"message\":\"success\",\n \"data\":row\n })\n });\n}", "getRowData(csvFile, startLineNumber) {\n if (!startLineNumber) {\n startLineNumber = 1;\n }\n var rowData = [];\n for (var i = startLineNumber; i < csvFile.length; i++) {\n rowData.push(csvFile[i]);\n }\n return rowData;\n }", "function rowHasMultiple9s(arr) {\n\n}", "getRows() {\n return this._rows.slice();\n }", "function RowInfos(rowId, row) {\n \"use strict\";\n this.rowId = rowId;\n this.row = row;\n}", "function PdfGridRowCollection(grid){this.rows=[];this.grid=grid;}", "function prepareRow(row){\n return _.map(row, function(item,key){\n // Escape double quotes inside and add double quotes around each item\n return '\"' +\n item\n .replace(/\"/g,'\\'')\n .replace(/\\n/g,'')\n .replace(/[\\u2018\\u2019]/g, '\\'')\n .replace(/[\\u201C\\u201D]/g, '\\'')\n + '\"';\n })\n .join(',')+'\\n';\n}", "filterRows(r) {\n rows = [];\n if (arguments.length) {\n each(r, function(i) {\n rows.push(origRows[i]);\n });\n } else {\n rows = origRows.slice(0);\n }\n column.length = rows.length;\n // invalidate valueRange and total\n valueRange = sum = mean = median = undefined;\n return column;\n }", "function createResultRows(table, data){\r\n\tfor (let i = 0; i < data.length; i++){\r\n\t\tlet row = document.createElement(\"TR\");\r\n\t\ttable.append(row);\r\n\r\n\t\t// create cells and append to the current row. Pass in the object values as argument\r\n\t\tcreateCells(row, data[i]);\r\n\t}\r\n}", "function AddRowToJsonArray(row) {\n UserDataAsJsonArray.push({\n userMail: row[0],\n password: row[1],\n role: row[2],\n name: row[3],\n surName: row[4], \n })\n}", "__$$getRows() {\n\t\tconst trs = this.__$$getRawTbodyTrs().slice() // copy\n\n\t\treturn trs.map((tr, i) => {\n\t\t\tconst columns = arrify(tr.props.children).slice() // copy\n\t\t\tcolumns.splice(0, 0, <td key=\"selectable-table-checkbox\" style={{ textAlign: 'left' }}>\n\t\t\t\t<input type=\"checkbox\" checked={this.state.selected[i]} onClick={this.__$$onRowSelected.bind(this, i)} />\n\t\t\t</td>)\n\t\t\treturn columns\n\t\t})\n\t}", "function row(keys, obj){\n return keys.map(function(k){\n return obj[k]\n })\n}", "function array2d(rows) {\n\t\t\tvar array = [];\n\t\t\tfor (var i = 0; i < rows; i++) {\n\t\t\t\tarray[i] = [];\n\t\t\t}\n\t\t\treturn array;\n\t\t}", "handleRowSelect(row){\n console.log(row);\n }", "_transform(row, encoding, callback) {\n const xlsxRow = (0, _templates.Row)(this.rowCount, row, this.format, this.styles);\n this.rowCount++;\n callback(null, xlsxRow);\n }", "rowStr (cols, row) {\n const rowStr = cols.map((col) => this.prepareValue(row[col])).join(', ')\n\n return `(${rowStr})`\n }", "function parseDataRow(row){\n // -------------------------------------- KEEP THIS SECTION UP TO DATE ---------------------------------------------------------\n /********************************************************************************************************************************\n \n - This section lists the orders of all values in the spreadsheet!! The values listed are the variable names used in the \n program to represent each column in the data table. \n \n ********************************************************************************************************************************/\n //Please have this array replicate the exact order of every column in the 'Generator' main sheet!!!!!\n var columns = [\"exam\",\"date\",\"examineeNum\",\"examineeName\",\"examineeEmail\",\n \"examinerNum\",\"examinerName\",\"examinerEmail\",\"examineeEmailSent\",\n \"examinerEmailSent\",\"created\",\"pr\",\"examFolder\",\"inforow\",\"examId\"];\n\n /********************************************************************************************************************************* \n**********************************************************************************************************************************/\n\n var row_object = {};\n\n for(var i=0;i<columns.length;i++){\n row_object[columns[i]]=row[i];\n }\n\n return row_object;\n}", "function multRows(matrix, row, scalar){\n for (let i=0; i < matrix[row].length; i++){\n //matrix[row][i] *= scalar;\n matrix[row][i] = matrix[row][i].mul(scalar);\n }\n return matrix;\n}", "constructor(rows) {\n this._sqls = [];\n this._values = [];\n this._rows = rows;\n this._is_find = false;\n }", "addRows(scalar, r1, r2)\r\n {\r\n for (var c = 0; c < this.n; c++)\r\n this.matrix[r2][c] = math.add(this.matrix[r2][c], math.multiply(this.matrix[r1][c], scalar));\r\n }", "function RowContext() {}", "function clickRow( inputrow ) {\n var input = $(inputrow);\n\tvar paginatedTable = input.closest( '.datatables' );\n\tvar dataTable = paginatedTable.closest( '.dataTables_wrapper' );\n\tvar tableId = paginatedTable.attr( 'id' );\n\n\t// If the input is a normal checkbox, the user clicked on it. Update the elementsSelected array\n\tif( selectType[ tableId ] == \"selectMulti\" ) {\n\t\tvar arrayPos = jQuery.inArray( parseInt( input.val() ), elementsSelected[ tableId ] );\n\t\tif( input.attr( 'checked' ) ) {\n\t\t\t// Put the id in the elementsSelected array, if it is not present\n\t\t\tif( arrayPos == -1 ) {\n\t\t\t\telementsSelected[ tableId ][ elementsSelected[ tableId ].length ] = parseInt( input.val() );\n\t\t\t}\n\t\t} else {\n\t\t\t// Remove the id from the elementsSelected array, if it is present\n\t\t\tif( arrayPos > -1 ) {\n\t\t\t\telementsSelected[ tableId ].splice( arrayPos, 1 );\n\t\t\t}\n\t\t}\n\n var checkAll = $( '#'+tableId+'_checkAll', paginatedTable );\n updateCheckAll( inputrow );\n\t} else {\n // Assumption: selectType[ tableId ] == \"selectOne\"\n elementsSelected[ tableId ][0] = parseInt( input.val() );\n }\n}", "function transformRowsToValues(rows, sheet) {\n var headers = sheet.getRange(1, 1, 1, sheet.getLastColumn()).getValues()[0];\n var new_rows = [];\n \n for (var ri = 0; ri < rows.length; ri++) {\n var row = rows[ri];\n var new_row = Array();\n for (var hi = 0; hi < headers.length; hi++) {\n var header = headers[hi];\n new_row.push(row[header]);\n }\n new_rows.push(new_row);\n }\n \n return new_rows;\n }", "function rowsToCols(rows){\n var cols = new Array();\n for (var col = 0; col < rows[0].length; col++){\n cols.push(new Array());\n for (var row = 0; row < rows.length; row++){\n cols[col].push(rows[row][col]);\n }\n }\n return cols;\n}", "toArray() {\r\n let result = new Array(this.rows);\r\n result = this.data.splice(0);\r\n return result;\r\n }", "renderRow(reactRowNum, path, commentArray){\n return this.renderRow(reactRowNum, path, commentArray, false);\n }", "function rowsToItemsArray(rows) {\n return rows.map(row => {\n let item = {};\n for (let prop of [\"guid\", \"index\", \"type\"]) {\n item[prop] = row.getResultByName(prop);\n }\n for (let prop of [\"dateAdded\", \"lastModified\"]) {\n item[prop] = toDate(row.getResultByName(prop));\n }\n for (let prop of [\"title\", \"parentGuid\", \"url\" ]) {\n let val = row.getResultByName(prop);\n if (val)\n item[prop] = prop === \"url\" ? new URL(val) : val;\n }\n for (let prop of [\"_id\", \"_parentId\", \"_childCount\", \"_grandParentId\"]) {\n let val = row.getResultByName(prop);\n if (val !== null) {\n // These properties should not be returned to the API consumer, thus\n // they are non-enumerable and removed through Object.assign just before\n // the object is returned.\n // Configurable is set to support mergeIntoNewObject overwrites.\n Object.defineProperty(item, prop, { value: val, enumerable: false,\n configurable: true });\n }\n }\n\n return item;\n });\n}", "rows() {\n var self = this;\n return Array.apply(this.topRow(), Array(this.bottomRow()+1)).map(function (x, row) {\n return Array.apply(self.topColumn(), Array(self.bottomColumn()+1)).map(function (x, col) {\n return [CELLINDEX(col, row)];\n })\n })\n }", "function generateTable(rows){\n let table = '';\n for (const row in rows){\n console.log(typeof row);\n table+=generateRow(row);\n }\n return table;\n}", "function formatRows(rows) {\n\t\treturn rows.get().join(tmpRowDelim).split(tmpRowDelim).join(rowDelim)\n\t\t\t\t.split(tmpColDelim).join(colDelim);\n\t}", "header(...row)\n\t{\n\t\tthis.rows.push({\n\t\t\ttype: 'data',\n\t\t\talign: 'c'.repeat(row.length),\n\t\t\tdata: row.map(String),\n\t\t\tdiv: true\n\t\t});\n\n\t\tthis.width = Math.max(this.width, row.length);\n\t}", "function showProducts(rows) {\n\n var table = new Table({\n head: ['ID', 'Product Name', 'Price', 'Quantity'],\n colWidths: [7, 25, 10, 10]\n });\n rows.forEach(function(value, index) {\n table.push([value.itemID, value.productName, value.price, value.stockQuantity]);\n\n // console.log(row.itemID, row.productName, row.price);\n });\n console.log(table.toString());\n // console.log(\"ID ARRAY: \" + prodIdArray);\n \n}", "generateRows() {\n let cols = [0, 1, 2, 3, 4, 5 ,6 ,7 ,8];\n this.backupData = this.getInitialRandomData();\n \n return this.backupData.map((item, i)=>{\n // handle the column data within each row\n let cells = cols.map((colData, j) => {\n if (item[colData] == '')\n return <div className=\"cellStyle\" key={j}>\n <input \n className=\"inputStyle\"\n type=\"text\" \n value={this.state.inputCheckingDummyData[i][j]}\n onChange={(e)=>this.setInputValue(e, i, j)} \n />\n </div>;\n else\n return <div className=\"cellStyle\" key={j}>{item[colData]}</div>;\n });\n return <div className=\"rowStyle\" key={i}>{cells}</div>;\n });\n }", "function addRows(matrix, row1, row2, scalar){\n for (let i=0; i < matrix[row1].length; i++){\n //matrix[row1][i] += (scalar*matrix[row2][i]);\n matrix[row1][i] = matrix[row1][i].add(matrix[row2][i].mul(scalar));\n }\n return matrix;\n}", "function getDataRows (f) {\n d3.csv(\"america.csv\",\n\t function(error,data) {\n\t f(data);\n\t });\n}", "renderRow(startIndex, endIndex) {\n let elements = [];\n for (let i = startIndex; i !== endIndex; i++) {\n elements.push(this.renderElement(this.props.grid[i], i));\n }\n return (\n <Row key={startIndex}>\n {elements}\n </Row>\n );\n }", "function addRow(paramArr){\n\tlet trToInsert = document.createElement(\"TR\");\n\tfor (let att of paramArr){\n\t\tlet tdToInsert = document.createElement(\"TD\");\n\t\ttdToInsert.textContent = att;\n\n\t\t//first put td inside tr, then put tr inside table\n\t\ttrToInsert.appendChild(tdToInsert);\n\t}\n\ttableTag.appendChild(trToInsert);\n}", "function insertRows(that, index, args, start) {\n\t\tvar startIndex = index;\n\t\tfor (var i = start; i < args.length; i++) {\n\t\t\tvar obj = args[i];\n\t\t\tif (obj) {\n\t\t\t\t// Create the row object and add it:\n\t\t\t\t// Add the items for that row\n\t\t\t\tvar row = (obj instanceof Array) ? obj : [obj];\n\t\t\t\t// Store references to index and form.\n\t\t\t\trow.index = index;\n\t\t\t\trow.form = that;\n\t\t\t\tthat.rows.splice(index, 0, row);\n\t\t\t\tfor (var j = 0; j < row.length; j++) {\n\t\t\t\t\tif (!row[j]) row.splice(j--, 1);\n\t\t\t\t\telse initializeItem(that, row[j], row, j);\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\t// Update row indices above:\n\t\tfor (var i = index; i < that.rows.length; i++)\n\t\t\tthat.rows[i].index = i;\n\t\treturn startIndex != index;\n\t}", "parseRow(row) {\n const parsedRow = this.getParsedRow(row);\n const fields = [];\n\n Object.keys(this.options.fields).forEach((alias) => {\n const value = row[this.formatFieldAlias(alias, { quote: false })];\n\n if (value === undefined) {\n return;\n }\n\n if (this.isField(alias)) {\n fields.push(alias);\n }\n\n parsedRow[alias] = value;\n });\n\n return parsedRow.cast({ fields, forFetch: true });\n }" ]
[ "0.6616887", "0.65492505", "0.63403636", "0.6272839", "0.62343156", "0.6188844", "0.6132762", "0.6121672", "0.6069596", "0.60468477", "0.60302037", "0.6016578", "0.5994211", "0.59853107", "0.595452", "0.5930018", "0.59257287", "0.58879346", "0.5882947", "0.5848878", "0.58406466", "0.5835825", "0.582532", "0.5816259", "0.5806209", "0.57955045", "0.57943946", "0.5779404", "0.5766811", "0.5734192", "0.5728836", "0.5726768", "0.5725666", "0.57249385", "0.57131284", "0.5704079", "0.56769764", "0.56715894", "0.5667917", "0.5660641", "0.5650097", "0.5627083", "0.5616698", "0.5615264", "0.5608916", "0.5608485", "0.5606872", "0.56017405", "0.5601", "0.5572182", "0.55707514", "0.5558141", "0.5551117", "0.55504334", "0.5535166", "0.5506424", "0.5499466", "0.54872704", "0.54872704", "0.54807913", "0.54748595", "0.5466542", "0.5460983", "0.5457761", "0.5456387", "0.5454542", "0.54536605", "0.54513776", "0.54433596", "0.54393446", "0.5437828", "0.5437338", "0.54366076", "0.54344696", "0.54174423", "0.5411027", "0.54083985", "0.5400056", "0.53974974", "0.5393791", "0.53930795", "0.5390376", "0.5386379", "0.53767705", "0.53709376", "0.53627276", "0.5357809", "0.5355552", "0.53526163", "0.5351088", "0.5350776", "0.5342529", "0.53358513", "0.5332176", "0.53218144", "0.5303081", "0.5300898", "0.52964973", "0.5290455", "0.5288201", "0.52837145" ]
0.0
-1
Returns an m by n identity matrix.
sub_block(start, end) { return Mat.from(this.slice(start[0], end[0]).map(r => r.slice(start[1], end[1]))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function IdentityMatrix(n) {\n this.height = n;\n this.width = n;\n this.mtx = [];\n for (var i = 0; i < n; i++) {\n this.mtx[i] = [];\n for (var j = 0; j < n; j++) {\n this.mtx[i][j] = (i == j ? 1 : 0);\n }\n }\n}", "function identityMatrix() {\n\treturn [\n\t\t1, 0, 0, 0,\n\t\t0, 1, 0, 0,\n\t\t0, 0, 1, 0,\n\t\t0, 0, 0, 1\n\t];\n}", "function generate_identity(n) {\n var mat = [];\n var i,j;\n for (i = 0; i < n; i++){\n mat[i] = [];\n for (j = 0; j < n; j++){\n if (i == j){\n mat[i][j] = 1;\n }\n else{\n mat[i][j] = 0;\n }\n }\n\n }\n return mat;\n}", "function generate_identity(n) {\n let mat = [];\n for (let i = 0; i < n; i++){\n mat[i] = [];\n for (let j = 0; j < n; j++){\n if (i == j) mat[i][j] = 1;\n else mat[i][j] = 0; \n }\n\n }\n return mat;\n}", "function identityMatrix(n){\n var matrix = [];\n count = 0;\n for(var i=0; i < n; i++){\n        var row = [];\n count += 1;\n        for(var j=0; j < n; j++){\n count += 1;\n            if(j == i){\n                row.push(1);\n            }\n            else{\n                row.push(0);\n            }\n        }\n        matrix.push(row);\n    }\n    return count;\n}", "function idMatrix(n) {\n return new Array(n).fill(0).map((_, index)=> {\n const row = new Array(n).fill(0);\n row[index] = 1;\n return row;\n });\n}", "function identityMatrix(n) {\n\tvar row;\n\tfor(var i=1; i<=n;i++) {\n\t\trow = \"\";\n\t\tfor(var j=1; j<=n;j++) {\n\t\t\trow += ((i===j) ? 1 : 0) + \"\\t\";\n\t\t}\n\t\tconsole.log(row);\n\t}\n}", "set_identity(m, n) {\r\n this.length = 0;\r\n for (let i = 0; i < m; i++) {\r\n this.push(new Array(n).fill(0));\r\n if (i < n) this[i][i] = 1;\r\n }\r\n }", "function identityMatrix(n) {\n for (let i = 0; i < n; i++) {\n for (let j = 0; j < n; j++) {\n if (i === j) {\n // console.log('1')\n } else {\n // console.log('0')\n }\n }\n // console.log('----------')\n }\n}", "function mat_identity() {\n\treturn [1, 0, 0,\n\t\t\t0, 1, 0];\n}", "function getEmpyMatrix(n){\n var matrix = [];\n for(var i=0; i<n; i++) {\n matrix[i] = []; \n }\n return matrix;\n }", "function matrix(n,m) { \n var mat = [];\n for (i=0; i<n; i++) { mat[i] = [];\n for(j=0; j< m;j++) { mat[i][j] = Math.round(Math.random() * 10);\n }\n }\n return mat;\n}", "function matrix(N){}", "function MatIdentity(order) {\n let MatIdentity = new Matrix(order, order);\n for (let j = 0; j < order; j++) {\n for (let i = 0; i < order; i++) {\n if (i == j) {\n MatIdentity.data[i][j] = 1;\n }\n else {\n MatIdentity.data[i][j] = 0;\n }\n }\n }\n return MatIdentity;\n}", "static get IDENTITY()\n {\n return new Matrix();\n }", "function Matrix(m, n, d){\r\n\t\tvar matrix = [];\r\n\t\tfor(var i=0; i<m; i++) {\r\n\t\t\tmatrix[i] = [];\r\n\t\t\tfor(var j=0; j<n; j++) {\r\n\t\t\t\tmatrix[i][j] = d;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn matrix;\r\n\t}", "function createMatrix(n) {\n\n let arr = [];\n\n for (let i = 0; i < n; i += 1) {\n arr.push(new Array(n));\n\n for (let j = 0; j < n; j += 1) {\n arr[i][j] = '-';\n }\n\n }\n\n return arr;\n}", "function createMatrix(N, M) {\n var matrix = new Array(N); // Array with initial size of N, not fixed!\n for (var i = 0; i <= N; ++i) {\n matrix[i] = new Array(M).fill(null);\n }\n // Fill first row with zeros.\n for (let i = 0; i <= N; i += 1) {\n matrix[0][i] = 0;\n }\n\n // Fill first row with zeros.\n for (let i = 0; i <= M; i += 1) {\n matrix[i][0] = 0;\n }\n return matrix;\n}", "mvIdentity() {\n mvMatrix = Matrix.I(4);\n }", "function createMatrix() {\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n }", "function matrix(n) {\n const result = [];\n \n for (let i = 0; i < n; i++) {\n result.push([]);\n }\n \n let rowIndex = 0;\n let rowEnd = n - 1;\n let columnIndex = 0;\n let columnEnd = n - 1;\n let counter = 1;\n\n while (columnIndex <= columnEnd && rowIndex <= rowEnd) {\n for (let i = columnIndex; i <= columnEnd; i++){\n result[rowIndex][i] = counter;\n counter++;\n }\n rowIndex++;\n \n\n for (let i = rowIndex; i <= rowEnd; i++){\n result[i][columnEnd] = counter;\n counter++;\n }\n columnEnd--;\n \n\n for (let i = columnEnd; i >= columnIndex; i--){\n result[rowEnd][i] = counter;\n counter++;\n }\n rowEnd--;\n\n\n for (let i = rowEnd; i >= rowIndex; i--) {\n result[i][columnIndex] = counter;\n counter++\n }\n columnIndex++;\n }\n\n return result;\n}", "function matrix(n) {\n let counter = 1;\n let rowStart = 0;\n let columnStart = 0;\n let rowEnd = n - 1;\n let columnEnd = n - 1;\n let results = [];\n\n //Create Empty n * n matrix array\n for (let i = 0; i < n; i++) {\n results.push([]);\n }\n\n while (rowStart <= rowEnd && columnStart <= columnEnd) {\n //Fill in TopRow\n for (let col = columnStart; col <= columnEnd; col++) {\n results[rowStart][col] = counter;\n counter++;\n }\n rowStart++;\n\n //Fill in EndColumn\n for (let row = rowStart; row <= rowEnd; row++) {\n results[row][columnEnd] = counter;\n counter++;\n }\n columnEnd--;\n\n //Fill in BottomRow\n for (let col = columnEnd; col >= columnStart; col--) {\n results[rowEnd][col] = counter;\n counter++;\n }\n rowEnd--;\n\n //Fill in StartColumn\n for (let row = rowEnd; row >= rowStart; row--) {\n results[row][columnStart] = counter;\n counter++;\n }\n columnStart++;\n }\n return results;\n}", "function zeros2d(n, m) {\n var arr = new Array();\n for(var i=0; i<n; i++)\n arr.push(zeros(m));\n return arr;\n}", "function matrix(n) {\n const result = [];\n for (let x = 0; x < n; x++) {\n result.push([]);\n }\n\n let startRow = 0;\n let endRow = n - 1;\n let startCol = 0;\n let endCol = n - 1;\n let count = 1;\n while (startRow <= endRow && startCol <= endCol) {\n for (let x = startCol; x <= endCol; x++) {\n result[startRow][x] = count;\n count++;\n }\n startRow++;\n for (let x = startRow; x <= endRow; x++) {\n result[x][endCol] = count;\n count++;\n }\n endCol--;\n for (let x = endCol; x >= startCol; x--) {\n result[endRow][x] = count;\n count++;\n }\n endRow--;\n for (let x = endRow; x >= startRow; x--) {\n result[x][startCol] = count;\n count++;\n }\n startCol++;\n }\n return result;\n}", "function genMatrix() {\r\n\tvar i, j;\r\n\tfor(i = 1; i <= maxRow; i++) {\r\n\t\tmatrix[i] = [];\r\n\t\tfor(j = 1; j <= maxColl; j++) {\r\n\t\t\tmatrix[i][j] = 0;\r\n\t\t}\r\n\t}\r\n}", "_createMatrix () {\n let matrix = Array(...Array(200)).map(() => Array(200).fill(0))\n return matrix\n }", "function matrix(n) {\n\tconst results = [];\n\n\tfor (let index = 0; index < n; index++) {\n\t\tresults.push([]);\n\t}\n\n\tlet counter = 1;\n\tlet startColumn = 0;\n\tlet endColumn = n - 1;\n\tlet startRow = 0;\n\tlet endRow = n - 1;\n\n\twhile (startColumn <= endColumn && startRow <= endRow) {\n\t\t// Top Row\n\t\tfor (let index = startColumn; index <= endColumn; index++) {\n\t\t\tresults[startRow][index] = counter;\n\t\t\tcounter++;\n\t\t}\n\t\tstartRow++;\n\n\t\t// Right Column\n\t\tfor (let index = startRow; index <= endRow; index++) {\n\t\t\tresults[index][endColumn] = counter;\n\t\t\tcounter++;\n\t\t}\n\t\tendColumn--;\n\n\t\t// Bottom Row\n\t\tfor (let index = endColumn; index >= startColumn; index--) {\n\t\t\tresults[endRow][index] = counter;\n\t\t\tcounter++;\n\t\t}\n\t\tendRow--;\n\n\t\t// Start Column\n\t\tfor (let index = endRow; index >= startRow; index--) {\n\t\t\tresults[index][startColumn] = counter;\n\t\t\tcounter++;\n\t\t}\n\t\tstartColumn++;\n\t}\n\treturn results;\n}", "function matrix(n) {\n const results = [];\n\n for (let i = 0; i < n; i++) {\n results.push([])\n }\n\n let counter = 1;\n let startColumn = 0;\n let endColumn = n - 1;\n let startRow = 0;\n let endRow = n - 1;\n\n while (startColumn <= endColumn && startRow <= startRow) {\n for (let i = startColumn; i <= endColumn; i++) {\n results[startRow][i] = counter;\n counter++\n }\n startRow++\n\n for (let i = startRow; i <= endRow; i++) {\n results[i][endColumn] = counter;\n counter++\n }\n endColumn--\n\n for (let i = endColumn; i >= startColumn; i--) {\n results[endRow][i] = counter;\n counter++\n }\n endRow--\n\n for (let i = endRow; i >= startRow; i--) {\n results[i][startColumn] = counter;\n counter++\n }\n startColumn++\n }\n\n return results\n\n\n}", "function loadIdentity() {\n mvMatrix = Matrix.I(4);\n}", "setIdentity() {\n this.setZero();\n for (var i = 0; i < this.rows; i++)\n this.m[(this.cols+1)*i] = 1;\n return this;\n }", "function matrix(n) {\n const results = [];\n\n for (let i = 0; i < n; i++) {\n results.push([]);\n }\n\n let counter = 1;\n\n let startColumn = 0;\n let endColumn = n - 1;\n let startRow = 0;\n let endRow = n - 1;\n\n while (startColumn <= endColumn && startRow <= endRow) {\n // Top row\n for (let i = startColumn; i <= endColumn; i++) {\n results[startRow][i] = counter;\n counter++;\n }\n startRow++;\n\n // Right column\n for (let i = startRow; i <= endRow; i++) {\n results[i][endColumn] = counter;\n counter++;\n }\n endColumn--;\n\n // Bottom row\n for (let i = endColumn; i >= startColumn; i--) {\n results[endRow][i] = counter;\n counter++;\n }\n endRow--;\n\n // Left column\n for (let i = endRow; i >= startRow; i--) {\n results[i][startColumn] = counter;\n counter++;\n }\n startColumn++;\n }\n\n return results;\n}", "new_matrix() {\n var mtx = new Array(this.height);\n for (var j = 0 ; j < this.height ; j++) {\n mtx[j] = new Array(this.width);\n for (var i = 0 ; i < this.width ; i++) {\n mtx[j][i] = 0;\n }\n }\n return mtx;\n }", "identityMat4(mat = new Float32Array(16)) {\n mat[0] = 1.0;\n mat[1] = 0.0;\n mat[2] = 0.0;\n mat[3] = 0.0;\n\n mat[4] = 0.0;\n mat[5] = 1.0;\n mat[6] = 0.0;\n mat[7] = 0.0;\n\n mat[8] = 0.0;\n mat[9] = 0.0;\n mat[10] = 1.0;\n mat[11] = 0.0;\n\n mat[12] = 0.0;\n mat[13] = 0.0;\n mat[14] = 0.0;\n mat[15] = 1.0;\n\n return mat;\n }", "function matrix ( n )\n{\n const OuterArr = [];\n let startColumn = 0;\n let endColumn = n -1;\n let startRow = 0;\n let endRow = n - 1;\n let Counter = 1;\n \n for ( let y = 1; y <= n; y++ )\n {\n OuterArr.push( [] ); \n }\n while (startColumn <= endColumn && startRow <= endRow)\n {\n // Top Row\n for ( let TopRowIndex = startColumn; TopRowIndex <= endColumn; TopRowIndex++ )\n {\n OuterArr[ startRow ][ TopRowIndex ] = Counter;\n Counter++;\n }\n startRow++;\n\n // Right Column\n for ( let RightColumnIndex = startRow; RightColumnIndex <= endRow; RightColumnIndex++) {\n OuterArr[ RightColumnIndex ][ endColumn ] = Counter;\n Counter++;\n }\n\n endColumn--;\n\n //Bottom row\n for ( let BottomRowIndex = endColumn; BottomRowIndex >= startColumn; BottomRowIndex--)\n {\n OuterArr[ endRow ][ BottomRowIndex ] = Counter;\n Counter++;\n }\n\n endRow--;\n\n //Left Column\n for ( let LeftColumn = endRow; LeftColumn >= startRow; LeftColumn--)\n {\n OuterArr[ LeftColumn ][ startColumn ] = Counter;\n Counter++;\n }\n\n startColumn++;\n\n }\n\n return OuterArr;\n}", "function matrix(n){\n\tconst totalNum = n*n;\n\tconst matrix = [];\n\tfor(let i=0; i<n; i++){\n\t\tmatrix[i] = [];\n\t}\n\n\tlet input =1;\n\tlet startCol = 0;\n\tlet endCol = n-1;\n\tlet startRow = 0;\n\tlet endRow = n-1;\n\n\twhile(startCol <= endCol && startRow <= endRow){\n\t\t// top\n\t\tfor(let i = startCol; i<=endCol; i++){\n\t\t \tmatrix[startRow][i] = input;\n\t\t \tinput++;\n\t\t}\n\t\tstartRow++;\n\n\t\t//right side\n\t\tfor(let m = startRow; m<=endRow; m++){\n\t\t \tmatrix[m][endCol] = input;\n\t\t \tinput++;\n\t\t}\n\t\tendCol--;\n\n\t\t//bottom\n\t\tfor(let k = endCol; k>=startCol; k--){\n\t\t \tmatrix[endRow][k] = input;\n\t\t \tinput++;\n\t\t}\n\t\tendRow--;\n\n\t\t//left\n\t\tfor(let n = endRow; n>=startRow; n--){\n\t\t \tmatrix[n][startCol]=input;\n\t\t \tinput++;\n\t\t}\n\t\tstartCol++;\n\t}\n\n\treturn matrix; \n}", "function makeMatrix() {\n var matrix = new Array(rows);\n for (i = 0; i < rows; i += 1) {\n matrix[i] = new Array(cols);\n /* for (var j = 0; j < cols; j += 1) {\n matrix[i][j] = false;\n }*/\n }\n\n return matrix;\n }", "function createZeroMatrix(rows, cols) {\n\tvar m = [];\n\tfor(var r = 0; r < rows; r++) {\n\t\tvar row = [];\n\t\tfor(var c = 0; c < cols; c++) {\n\t\t\trow.push(0);\n\t\t}\n\t\tm.push(row);\n\t}\n\treturn m;\n}", "function createZeroMatrix(rows, cols) {\n\tvar m = [];\n\tfor(var r = 0; r < rows; r++) {\n\t\tvar row = [];\n\t\tfor(var c = 0; c < cols; c++) {\n\t\t\trow.push(0);\n\t\t}\n\t\tm.push(row);\n\t}\n\treturn m;\n}", "function zeroArray(m, n) {\n // Creates a 2-D array with m rows and n columns of zeroes\n let newArray = [];\n let row = [];\n for (let i = 0; i < m; i++) {\n // Adds the m-th row into newArray\n\n for (let j = 0; j < n; j++) {\n // Pushes n zeroes into the current row to create the columns\n row.push(0);\n }\n // Pushes the current row, which now has n zeroes in it, to the array\n newArray.push(row);\n // Reinitialize row to empty array\n row = [];\n }\n return newArray;\n}", "function identity() {\n return Float32Array.of(1, 0, 0, 0, 1, 0, 0, 0, 1);\n} // TODO: optimize", "static identity()\n\t{\n\t\treturn new Float32Array([\n\t\t\t1, 0, 0, 0,\n\t\t\t0, 1, 0, 0,\n\t\t\t0, 0, 1, 0,\n\t\t\t0, 0, 0, 1\n\t\t]);\n\t}", "function matrix(n) {\n const results = [];\n\n for (let i = 0; i< n ; i++) { \n results.push([])\n }\n\n let counter = 1;\n let startColumn = 0;\n let endColumn = n - 1;\n let startRow = 0;\n let endRow = n - 1;\n\n while (startColumn <= endColumn && startRow <= endRow) {\n //TOP ROW\n for (let i = startColumn; i <= endColumn; i++) {\n results[startRow][i] = counter;\n counter++;\n } \n startRow++;\n //RIGHT COLUMN\n for (let i = startRow; i <= endRow; i++){\n results[i][endColumn] =counter; \n counter++\n }\n endColumn--;\n \n //BOTTOM COLUMN\n for (let i = endColumn; i >= startColumn;i--) {\n results[endRow][i] = counter;\n counter++;\n }\n endRow--;\n \n //START COLUMN\n for(let i = endRow;i >= startRow;i--) {\n results[i][startColumn]= counter;\n counter++;\n }\n startColumn++;\n }\n return results;\n}", "function randomSquareMatrix(n) {\n let A = new Array(n);\n for (let i = 0 ; i < n; i++) {\n A[i] = new Array(n);\n for (let j = 0; j < n; j++) {\n A[i][j] = Math.floor(rng()*10);\n }\n }\n return A;\n}", "function createMatrix(w, h) {\n return [...Array(h).keys()].map(function createNewArray() {\n return new Array(w).fill(0);\n });\n // return [...Array(h).keys()].map(() => new Array(w))\n}", "function createMatrix(w,h){\n\tvar matrix = [];\n\twhile(h--){\n\t\tmatrix.push(new Array(w).fill(0));\n\t}\n\treturn matrix;\n}", "function Matrix4x4() {\n this.elements = Array(16);\n this.loadIdentity();\n}", "static T(m) {\n let dims = m.shape();\n let newGrid = [];\n for (let i = 0; i < dims[1]; i++) {\n let row = [];\n for (let j = 0; j < dims[0]; j++) {\n row.push(m.grid[j][i]);\n }\n newGrid.push(row);\n }\n return new Matrix(newGrid);\n }", "function createData(n)\r\n{\r\n\tvar matrix = [];\r\n\tfor (var i = 0; i<n; i++)\r\n\t{\r\n\t\tmatrix.push([]);\r\n\t\tfor (var j = 0; j<n; j++)\r\n\t\t{\r\n\t\t\tif (i==j)\r\n\t\t\t{\r\n\t\t\t\tmatrix[i].push(0);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmatrix[i].push(Math.floor(Math.random() * n) + 17);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tfor (var i = 0; i<n; i++)\r\n\t{\r\n\t\tfor (var j = 0; j<n; j++)\r\n\t\t{\r\n\t\t\tmatrix[i][j] = matrix[j][i];\r\n\t\t}\r\n\t}\r\n\treturn matrix;\r\n}", "function createMatrix(w,h){\n const matrix = [];\n\n while (h--){\n matrix.push(new Array(w).fill(0));\n\n }\n return matrix;\n}", "function isidentitymatrix(p) {\n return p === symbol(exports.SYMBOL_IDENTITY_MATRIX);\n}", "function createMatrix(w, h) {\n const matrix = [];\n while(h--) {\n matrix.push(new Array(w).fill(0));\n }\n return matrix;\n}", "function createMatrix(w, h) {\n const matrix = [];\n while(h--) {\n matrix.push(new Array(w).fill(0));\n }\n return matrix;\n}", "function matrix(n) {\n let count = 0;\n let bound = {\n t: 0,\n l: 0,\n b: n,\n r: n\n };\n let matrix = [];\n for(let i = 0; i < n; i++){\n matrix.push([])\n }\n\n while(bound.t <= bound.b && bound.l <= bound.r){\n for(let i = bound.l; i < bound.r; i++){\n count++;\n matrix[bound.t][i] = count\n }\n bound.t++;\n\n for(let i = bound.t; i < bound.b; i++){\n count++;\n matrix[i][bound.r - 1] = count\n }\n bound.r--;\n\n for(let i = bound.r - 1; i >= bound.l; i--){\n count++;\n matrix[bound.b - 1][i] = count\n }\n bound.b--;\n\n for(let i = bound.b - 1; i >= bound.t; i--){\n count++;\n matrix[i][bound.l] = count\n }\n bound.l++\n }\n return matrix\n}", "function create_matrix(w, h) {\n const matrix = [];\n while(h--) {\n matrix.push(new Array(w).fill(0));\n }\n return matrix;\n}", "function Matrix4x4() {\n this.m00= 1;\n this.m10= 0;\n this.m20= 0;\n this.m30= 0;\n\n this.m01= 0;\n this.m11= 1;\n this.m21= 0;\n this.m31= 0;\n\n this.m02= 0;\n this.m12= 0;\n this.m22= 1;\n this.m32= 0;\n\n this.m03= 0;\n this.m13= 0;\n this.m23= 0;\n this.m33= 1;\n}", "function createMatrix(w, h) {\n const matrix = [];\n while(h--) {\n matrix.push(new Array(w).fill(0));\n }\n\n return matrix;\n}", "function makeMatrix( rows, cols){\n\n var arr = new Array();\n\n // Creates all lines:\n for(var i=0; i < rows; i++){\n\n // Creates an empty line\n arr.push([]);\n\n // Adds cols to the empty line:\n arr[i].push( new Array(cols));\n\n for(var j=0; j < cols; j++){\n // Initializes:\n arr[i][j] = makeBoolean();\n }\n }\n\n return arr;\n}", "function createEmptyMatrix(rowCount, columnCount)\n{\n //Create raw empty matrix\n var rawEmptyMatrix = new Array(rowCount);\n for(var i = 0; i < rowCount; i++)\n {\n rawEmptyMatrix[i] = new Array(columnCount);\n for(var j = 0; j < columnCount; j++)\n {\n rawEmptyMatrix[i][j] = 0;\n }\n }\n return rawEmptyMatrix;\n}", "function matrix(n) {\n\n function maketheTable(n) {\n const theTable = []\n for (let i = 1; i <= n; i++) {\n theTable.push(new Array(n).fill(0))\n }\n return theTable\n }\n\n let spiralIterator = 1\n while (spiralIterator < n ** 2) {\n spiralIterator += 1\n }\n\n\n\n const theTable = maketheTable(n)\n\n theTable.forEach((row) => {\n console.log(row)\n })\n\n //return theTable\n\n}", "getMatrix(){\n const matrix = [];\n while(this.height > 0){\n matrix.push(new Array(this.width).fill(0))//create new row and fill it with zeros\n this.height--;\n }\n return matrix;\n }", "function generateMatrix() {\r\n generateMatrixForDeterminant();\r\n}", "function matrix(n) {\n //sol#1\n let results = []; \n let count = 1;\n let startColumn = 0, endColumn = n-1, startRow = 0, endRow = n-1; \n\n for (let i = 0; i<n; i++) {\n results.push([]);\n } \n \n while( startColumn <= endColumn && startRow <= endRow ) {\n // Top row\n for(let i= startColumn; i<=endColumn; i++) {\n results[startRow][i] = count;\n count++; \n }\n startRow++;\n\n //Right column\n for(let i=startRow; i<=endRow; i++) {\n results[i][endColumn] = count;\n count++;\n }\n endColumn--; \n \n //Bottom row\n for(let i=endColumn; i>=startColumn; i--){\n results[endRow][i] = count;\n count++;\n }\n endRow--; \n \n //Left column\n for(let i=endRow; i>=startRow; i--) {\n results[i][startColumn] = count;\n count++;\n }\n startColumn++; \n \n }\n \n return results;\n}", "identityMat3(mat = new Float32Array(9)) {\n mat[0] = 1.0;\n mat[1] = 0.0;\n mat[2] = 0.0;\n\n mat[3] = 0.0;\n mat[4] = 1.0;\n mat[5] = 0.0;\n\n mat[6] = 0.0;\n mat[7] = 0.0;\n mat[8] = 1.0;\n\n return mat;\n }", "function buildMatrix(n, matrix){\n let subArr = []\n\n for(let i = 0; i < n; i++){\n for(let j = 0; j < n; j++){\n subArr.push(0)\n }\n matrix.push(subArr)\n subArr = []\n }\n}", "function mapOntoCenteredMatrix(x, y, n) {\n return Math.floor(n/2) + (Math.floor(n/2) * n) + x + (y * n)\n}", "function identSize(M, m, n, k) {\n var e = M.elements;\n var i = k - 1;\n\n while(i--) {\n\tvar row = [];\n\t\n\tfor(var j = 0; j < n; j++)\n\t row.push(j == i ? 1 : 0);\n\t\n e.unshift(row);\n }\n \n for(var i = k - 1; i < m; i++) {\n while(e[i].length < n)\n e[i].unshift(0);\n }\n\n return $M(e);\n}", "function identSize(M, m, n, k) {\n var e = M.elements;\n var i = k - 1;\n\n while(i--) {\n\tvar row = [];\n\t\n\tfor(var j = 0; j < n; j++)\n\t row.push(j == i ? 1 : 0);\n\t\n e.unshift(row);\n }\n \n for(var i = k - 1; i < m; i++) {\n while(e[i].length < n)\n e[i].unshift(0);\n }\n\n return $M(e);\n}", "function identSize(M, m, n, k) {\n var e = M.elements;\n var i = k - 1;\n\n while(i--) {\n\tvar row = [];\n\t\n\tfor(var j = 0; j < n; j++)\n\t row.push(j == i ? 1 : 0);\n\t\n e.unshift(row);\n }\n \n for(var i = k - 1; i < m; i++) {\n while(e[i].length < n)\n e[i].unshift(0);\n }\n\n return $M(e);\n}", "function Matrix(c) {\n\tvar rs = [];\n\tfor (var i = 0; i < 16; i++) {\n\t\tvar row = [];\n\t\tfor (var j = 0; j < 16; j++)\n\t\t\trow.push(c);\n\t\trs.push(row);\n\t}\n\treturn rs;\n}", "function getRandomMatrix(rows, cols) {\r\n var mat = [];\r\n for (var i = 0; i < rows; i++) {\r\n mat[i] = [];\r\n for (var j = 0; j < cols; j++) {\r\n mat[i][j] = (getRandomNum());\r\n }\r\n }\r\n return mat;\r\n}", "function matrix_pseudoinverse(m1) {\n\n var mat = [];\n var i,j;\n if (m1.length == m1[0].length){\n return numeric.inv(m1);\n }\n else{\n var m1_T = matrix_transpose(m1);\n if (m1.length > m1[0].length){\n return matrix_multiply(numeric.inv(matrix_multiply(m1_T,m1)), m1_T);\n }\n else{\n return matrix_multiply(m1_T, numeric.inv(matrix_multiply(m1,m1_T)));\n }\n\n }\n}", "function getRandomNumsMatrix(rows, cols) {\n\n // Create an array of the numbers that we need for the mat\n var nums = []\n for (var n = 1; n <= rows * cols; n++) {\n nums.push(n);\n }\n\n var mat = [];\n for (var i = 0; i < rows; i++) {\n mat[i] = [];\n for (var j = 0; j < cols; j++) {\n // get and remove a random element from the nums array\n var randIdx = getRandomIntInclusive(0, nums.length - 1);\n mat[i][j] = nums.splice(randIdx, 1)[0];\n }\n }\n console.table(mat);\n return mat;\n}", "function SparseMatrix(M, N) {\n this.N = N || 0;\n this.M = M || 0;\n this.i = []; // row indices of non-zero values\n this.j = []; // col indices of now-zero values\n this.v = []; // non-zero values\n}", "function createMatrix() {\n var board = [];\n for (var i = 0; i < gLevel.SIZE; i++) {\n board[i] = [];\n for (var j = 0; j < gLevel.SIZE; j++) {\n var cell = {\n minesAroundCount: 0,\n isShown: false,\n isMine: false,\n isMarked: false,\n }\n board[i][j] = cell;\n }\n }\n return board;\n}", "function ZigZagMatrix(n) {\n // Good luck!\n return [[], []];\n}", "function createMatrixTable() {\n const rows = domTable.rows;\n for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {\n const cells = rows[rowIndex].cells;\n for (let cellIndex = 0; cellIndex < cells.length; cellIndex++) {\n addCellInfoToMatrix(rows[rowIndex], cells[cellIndex]);\n }\n }\n }", "function convert_matrix(edge_list, n) {\n\t// Create 2D Matrix\n\tvar arr = new Array(n);\n\tfor (var i = 0; i < n; i++) {\n\t\tarr[i] = new Array(n);\n\t\tfor (var j = 0; j < n; j++){\n\t\t\tarr[i][j] = 0;\n\t\t}\n\t}\n\n\t// Populate 2D Matrix\n\tfor (i = 0; i < edge_list.length; i++){\n\t\tarr[edge_list[i]['source']][edge_list[i]['target']] = 1;\n\t}\n\treturn arr;\n}", "function getOptionIdentityMatrix(selection) {\n selection = _.merge({}, $baseOption, selection);\n var mtx = {\n cols: getOptionMatrixWidth($options),\n data: []\n };\n _.each($options, function (key, option) {\n var idx = selection[key] ? option.indexOf(selection[key]) : -1;\n for (var i = 0; i < mtx.cols; i++) {\n mtx.data.push((i === idx) && 1 || 0);\n }\n });\n return mtx;\n }", "static getIdentity() {\n const transform = new Transform();\n\n transform[0] = [1, 0, 0, 0];\n transform[1] = [0, 1, 0, 0];\n transform[2] = [0, 0, 1, 0];\n transform[3] = [0, 0, 0, 1];\n\n return transform;\n }", "MakeMatrix(RowCount, ColCount, min, max)\n {\n var RowCollection = [];\n var ColumnCollection = []\n for(var i = 0; i < RowCount; i++)\n {\n for(var j = 0; j < ColCount; j++)\n {\n ColumnCollection.push(RandomInt(max, min));\n }\n RowCollection.push(ColumnCollection);\n ColumnCollection = [];\n }\n return RowCollection;\n }", "function Matrix4() {\n return Matrix4.zero();\n }", "function initDistMat(n) {\n let d = {};\n for (let i = 0; i < n; i++) {\n d[i] = { [i]: 0 };\n }\n return d;\n}", "function createMatrix(width, height){\n const matrix = [];\n while(height--){\n matrix.push(new Array(width).fill(0));\n }\n\n return matrix;\n}", "function matrix(n,m) {\n var mat = [];\n for(i=0;i<n;i++) { mat[i] = []\n for(j=0;j<m;j++){\n mat[i][j] = Math.round(Math.random()*10)\n }\n };\n var colSum = mat.reduce((a, b) => a.map((x, i) => x + b[i]));\n console.log(mat); console.log(colSum);\n}", "function arrayFillerI (n, m)\n{\n var arr = [];\n for(var i = 0; i < m; i++)\n {\n arr.push(n);\n }\n return arr;\n}", "function createMatrix(w,h){\r\n const matrix = [];\r\n while(h--){ // while h is not zero we decrease\r\n matrix.push(new Array(w).fill(0))\r\n }\r\n return matrix;\r\n }", "function generateIntegers(m, n) {\n let intSeries=[];\n for (let i=m; i<=n; i++){\n intSeries.push(i)\n }\n return intSeries;\n}", "function eye(arg0, datatype) {\n var n, m;\n if (Array.isArray(arg0)) {\n n = arg0[0];\n if (arg0.length > 1) {\n m = arg0[1];\n }\n else {\n m = n;\n }\n }\n else {\n n = m = arg0;\n }\n var A = new ndarray_1.NDArray({ shape: [n, m], datatype: datatype, fill: 0 });\n var ndiag = Math.min(n, m);\n for (var i = 0; i < ndiag; i++) {\n A.set(i, i, 1);\n }\n return A;\n}", "function matrix(m) {\n\n let n = m.length;\n\n for (let i = 0; i < Math.floor(n / 2); i++) {\n\n for (let j = 0; j < n - (2 * i) - 1; j++) {\n\n let t = m[i + j][n - 1 - i]\n m[i + j][n - 1 - i] = m[i][i + j]\n m[i][i + j] = t\n\n t = m[n - 1 - i][n - 1 - i - j]\n m[n - 1 - i][n - 1 - i - j] = m[i][i + j]\n m[i][i + j] = t\n\n t = m[n - 1 - i - j][i]\n m[n - 1 - i - j][i] = m[i][i + j]\n m[i][i + j] = t;\n\n\n }\n }\n\n return m\n\n}", "function identSize(M, m, n, k) {\n\t\t\tvar e = M.elements;\n\t\t\tvar i = k - 1;\n\n\t\t\twhile (i--) {\n\t\t\t\t\t\tvar row = [];\n\n\t\t\t\t\t\tfor (var j = 0; j < n; j++) row.push(j == i ? 1 : 0);\n\n\t\t\t\t\t\te.unshift(row);\n\t\t\t}\n\n\t\t\tfor (var i = k - 1; i < m; i++) {\n\t\t\t\t\t\twhile (e[i].length < n) e[i].unshift(0);\n\t\t\t}\n\n\t\t\treturn $M(e);\n}", "function identSize(M, m, n, k) {\n\t\t\tvar e = M.elements;\n\t\t\tvar i = k - 1;\n\n\t\t\twhile (i--) {\n\t\t\t\t\t\tvar row = [];\n\n\t\t\t\t\t\tfor (var j = 0; j < n; j++) row.push(j == i ? 1 : 0);\n\n\t\t\t\t\t\te.unshift(row);\n\t\t\t}\n\n\t\t\tfor (var i = k - 1; i < m; i++) {\n\t\t\t\t\t\twhile (e[i].length < n) e[i].unshift(0);\n\t\t\t}\n\n\t\t\treturn $M(e);\n}", "function matrix_indices (msize){\r\n\t\tvar inds=[];\r\n\t\tfor (i=1; i<= msize; i++){\r\n\t\t\tfor (j=1; j<= msize; j++){\r\n\t\t\t\tinds.push(i+\",\"+j);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inds;\r\n\t}", "function Matrix() {\n this._isIdentity = false;\n this._isIdentityDirty = true;\n /**\n * Gets or sets the internal data of the matrix\n */\n this.m = new Float32Array(16);\n this._markAsUpdated();\n }", "_initializeMatrix() {\n const row = Array(this.width).fill(0);\n this.matrix = Array(this.height).fill(row.slice(0));\n }", "function create( size ) {\n var matrix = [];\n for (var row = 0; row < size; row++) {\n var numbers = [];\n for (var col = 0; col < size; col++) {\n numbers.push( Math.round(Math.random()) );\n }\n matrix.push( numbers );\n }\n return matrix;\n}", "function matrix(n) {\n let result = makeMartix(n)\n let columnStart = 0,\n columnEnd = n-1,\n rowStart = 0,\n rowEnd = n-1\n count = 1\n\n function recursionMatrix(count, currentI, currentJ, nextI, nextJ) {\n \n if (count > n * n) {\n return\n }\n\n if (nextJ <= columnEnd) {\n result[currentI][currentJ] = count\n count++\n return recursionMatrix(count, currentI, currentJ+1, nextI, nextJ+1)\n }\n\n if (nextJ > columnEnd) {\n result[currentI][currentJ] = count\n count++\n return recursionMatrix(count, currentI+1, currentJ, nextI, nextJ)\n }\n\n if (currentJ === columnEnd && currentI === rowStart) {\n result[currentI][currentJ] = count\n count++\n return recursionMatrix(count, currentI+1, currentJ)\n }\n\n if (currentI < rowEnd) {\n result[currentI][currentJ] = count\n count++\n return recursionMatrix(count, currentI+1, currentJ)\n }\n\n if ()\n \n\n\n }\n\n function checkRange(a, b) {\n if (a >= 0 && a < n-1 && b >= 0 && b < n-1 && result[a][b] === 0) {\n return true\n } else {\n return false\n }\n }\n\n\n}", "static makeZero(rows, cols){\n let X = new Matrix();\n X.rows = rows;\n X.cols = cols;\n X.matrix = [];\n for(let i = 0; i < X.rows; i++){\n X.matrix[i] = [];\n for(let j = 0; j < X.cols; j++){\n X.matrix[i][j] = 0; \n }\n }\n return X;\n}", "identity() {\n return this.setComponents(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\n }", "function makePreferenceMatrix(n){\n let preferenceMatrix = [];\n for(i=0; i<n; i++){\n let rankArr = Array(n).fill(0).map((_, i) => i);\n preferenceMatrix.push(shuffleArray(rankArr));\n }\n return preferenceMatrix;\n}", "initMatrix() {\n const rows = this.rows();\n const columns = this.columns();\n\n for (let row = 0; row < rows; row++) {\n for (let col = 0; col < columns; col++) {\n this.matrix.appendChild(this.createMatrixEntry(row, col, this.ID));\n }\n }\n\n this.setMatrixGridRows(rows);\n this.setMatrixGridCols(columns);\n }", "testMulIdentity() {\n console.info('test Matrix4.mul() by identity matrix')\n const a = [\n 1, 2, 3, 4, \n 5, 6, 7, 8,\n 9, 10, 11, 12,\n 13, 14, 15, 16\n ]\n const i = [\n 1, 0, 0, 0,\n 0, 1, 0, 0,\n 0, 0, 1, 0,\n 0, 0, 0, 1,\n ]\n const expected = a\n const m = new Matrix4(a)\n m.mul(i)\n const actual = m.elements\n this.assertIdentical(actual, expected)\n }" ]
[ "0.81995034", "0.8109431", "0.7978642", "0.7962778", "0.7782223", "0.7689949", "0.7592319", "0.7516685", "0.6977204", "0.69322807", "0.6842713", "0.6738116", "0.67309666", "0.6685566", "0.66797876", "0.66033643", "0.6519174", "0.64781916", "0.6400401", "0.6381071", "0.63407665", "0.6322038", "0.6297279", "0.6185518", "0.61704874", "0.616323", "0.6158961", "0.615233", "0.6132621", "0.6128377", "0.611079", "0.60897017", "0.6037139", "0.60263646", "0.59931934", "0.5964885", "0.5953363", "0.5953363", "0.593938", "0.59249127", "0.5921656", "0.5907063", "0.5888757", "0.58507764", "0.581212", "0.5806246", "0.57830894", "0.5728002", "0.5725654", "0.5714467", "0.5699178", "0.5699178", "0.569563", "0.5692461", "0.5681971", "0.5674735", "0.5669792", "0.5661831", "0.5655892", "0.56383073", "0.5613135", "0.56063145", "0.5600719", "0.5592847", "0.5566523", "0.55648106", "0.55648106", "0.55648106", "0.5553387", "0.55527854", "0.5552368", "0.554955", "0.5537488", "0.5517942", "0.5510014", "0.5498534", "0.5493625", "0.54849935", "0.5482636", "0.54784805", "0.5477217", "0.5473786", "0.5473425", "0.54650396", "0.5459666", "0.5454811", "0.54489493", "0.54483706", "0.5446676", "0.5443788", "0.5443788", "0.5420922", "0.53961545", "0.5386171", "0.5377583", "0.5352579", "0.53403896", "0.53382015", "0.5315316", "0.53149855", "0.5300781" ]
0.0
-1
Both of start and end must be a [ row, column ].
copy() { return this.map(r => Vec.of(...r)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isInRange(pos, start, end) {\n if (typeof pos != 'number') {\n // Assume it is a cursor position. Get the line number.\n pos = pos.line;\n }\n if (start instanceof Array) {\n return inArray(pos, start);\n } else {\n if (typeof end == 'number') {\n return (pos >= start && pos <= end);\n } else {\n return pos == start;\n }\n }\n }", "valid(index) { return (this.start<=index && index<this.end) }", "function outOfRange(col, row){\r\n\treturn (col<0 || row<0 || col>=field_width || row >= field_height); \r\n}", "function isInRange(pos, start, end) {\n if (typeof pos != 'number') {\n // Assume it is a cursor position. Get the line number.\n pos = pos.line;\n }\n if (start instanceof Array) {\n return inArray(pos, start);\n } else {\n if (end) {\n return (pos >= start && pos <= end);\n } else {\n return pos == start;\n }\n }\n }", "function isStartOrEnd(x, y) {\n\tif (x == currSX && y == currSY) {\n\t\treturn true\n\t} else if (x == currEX && y == currEY) {\n\t\treturn true\n\t} else {\n\t\treturn false\n\t}\n}", "getRange(start, end) {\n return Array.from(\n {\n length: (parseInt(end, 10) + 1) - parseInt(start, 10)\n },\n (v, k) => k + parseInt(start, 10)\n );\n }", "sub_block(start, end) {\r\n return Mat.from(this.slice(start[0], end[0]).map(r => r.slice(start[1], end[1])));\r\n }", "get isRow() {\n return this.startRow === this.endRow && this.startColumn === 0 && this.endColumn === null\n }", "function rangeOrIndividual(start, end) {\n if (end - start === 1) {\n return start;\n }\n else {\n return [start, end];\n }\n}", "function validateStartEnd(start, end) {\n return !!start && !!end && start.isValid && end.isValid && start <= end;\n}", "function valid(start, end, dir) {\r\n let i, j; // iterators\r\n\r\n // invalid if out of bounds\r\n if (end[1] < 0 || end[1] >= ROWS || end[0] < 0 || end[0] >= COLS)\r\n return false;\r\n\r\n // loop through all elements to make sure that spot isn't taken\r\n if (dir === 1) {\r\n\r\n // vertical\r\n for (i = start[1]; i < end[1]; i++) {\r\n if (taken[i][start[0]]) {\r\n return false;\r\n }\r\n }\r\n } else if (dir === 0) {\r\n\r\n // horizontal\r\n for (i = start[0]; i < end[0]; i++) {\r\n if (taken[start[1]][i]) {\r\n return false;\r\n }\r\n }\r\n } else {\r\n\r\n // diagonal\r\n for (i = start[0], j = start[1]; i < end[0]; i++, j--) {\r\n if (taken[j][i]) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n}", "function validatePositions(start, end) {\n if (!start || start === 'none' || !end || end === 'none') {\n return 'Start or end position is unassigned.';\n }\n\n if (start === end) {\n return 'Start and end positions can\\'t be the same.'\n }\n\n if (start > end) {\n return 'Start position can\\'t be after end position.';\n }\n\n return null;\n}", "can_move(start, end) {\n\t\tvar start_row = 8 - Math.floor(start / 8);\n\t\tvar start_col = (start % 8) + 1;\n\t\tvar end_row = 8 - Math.floor(end / 8);\n\t\tvar end_col = (end % 8) + 1;\n\n\t\tvar row_diff = end_row - start_row;\n\t\tvar col_diff = end_col - start_col;\n\n\t\tif (row_diff == col_diff) { //diagonale \"/\"\n\t\t return true;\n\t\t} else if (row_diff == -col_diff) { //diagonale \"\\\"\n\t\t return true;\n\t\t}\n\t\treturn false;\n\t }", "positionsToRange(model, [start, end]) {\n console.log('positionsToRange', start, end);\n // start and end should always be defined, but if not:\n start = start || 1;\n end = end || model.getLineCount();\n\n // convert to [startLine, startColumn, endLine, endColumn]\n const range = new this._monaco.Range(start, 1, end, 1);\n\n // Protect against ranges that extend outside the editor\n const startLineNumber = Math.max(1, range.startLineNumber);\n const endLineNumber = Math.min(model.getLineCount(), range.endLineNumber);\n const endColumnText = model.getLineContent(endLineNumber);\n // NOTE: the end column is incremented by 2 so that the dangerous range\n // extends far enough to capture new text added to the end.\n // NOTE: according to the spec, it should only need to be +1, but in\n // practice that's not enough.\n return range\n .setStartPosition(startLineNumber, 1)\n .setEndPosition(range.endLineNumber, endColumnText.length + 2);\n }", "function rangeFromTokens(start, end) {\n if (!end) {\n end = start;\n }\n return util_1.default.createRange(start.startLine - 1, start.startColumn - 1, end.endLine - 1, end.endColumn);\n}", "assignOpenings(start, end) {\r\n if (start.y === 0) {\r\n // start is at top of maze\r\n this.maze[start.x][0] = Maze.OPENING\r\n } else if (start.y === Maze.ROWS) {\r\n // start is at bottom of maze\r\n this.maze[start.x][Maze.ROWS - 1] = Maze.OPENING\r\n } else if (start.x === 0) {\r\n // start is at left of maze\r\n this.maze[0][start.y] = Maze.OPENING\r\n } else {\r\n console.error(\"Invalid starting cell\")\r\n }\r\n }", "function moveStartOrEnd(prevIndex,newIndex,startOrEnd) {\n\tvar newCellY = newIndex % totalCols;\n\tvar newCellX = Math.floor((newIndex - newCellY)/totalCols);\n\n\tif (startOrEnd == \"start\") {\n\t\tstartCell = [newCellX,newCellY];\n\t\tconsole.log(\"Moving start to [\"+newCellX+\",\"+newCellY+\"]\")\n\t} else {\n\t\tendCell = [newCellX, newCellY];\n\t\tconsole.log(\"Moving end to [\"+newCellX+\",\"+newCellY+\"]\")\n\t}\n\tclearBoard(keepWalls=true);\n\treturn;\n}", "function moveStartOrEnd(prevIndex,newIndex,startOrEnd) {\n\tvar newCellY = newIndex % totalCols;\n\tvar newCellX = Math.floor((newIndex - newCellY)/totalCols);\n\n\tif (startOrEnd == \"start\") {\n\t\tstartCell = [newCellX,newCellY];\n\t\tconsole.log(\"Moving start to [\"+newCellX+\",\"+newCellY+\"]\")\n\t} else {\n\t\tendCell = [newCellX, newCellY];\n\t\tconsole.log(\"Moving end to [\"+newCellX+\",\"+newCellY+\"]\")\n\t}\n\tclearBoard(keepWalls=true);\n\treturn;\n}", "get isColumn() {\n return this.startColumn === this.endColumn && this.startRow === 0 && this.endRow === null\n }", "function range(start, end) {\n //Input sanitization\n if (!start && !end) return \"Please provide both start and end points\";\n if (!end) return \"Please provide an endpoint\";\n if (isNaN(start) || isNaN(end))\n return \"Both start and end points must be numbers\";\n\n let arr = [];\n while (start <= end) {\n arr.push(start);\n start++;\n }\n return arr;\n}", "function range(start, end) {\n\t if (end === undefined) {\n\t end = start;\n\t start = 0;\n\t }\n\t let res = []; //newArray(end-start,0);\n\t start = start | 0;\n\t for (let i = start; i < end; i++) res.push(i);\n\t return res;\n\t}", "end(range) {\n var [, end] = Range.edges(range);\n return end;\n }", "end(range) {\n var [, end] = Range.edges(range);\n return end;\n }", "function validateHorizontalPosition(property, value) {\n if (value !== 'start' && value !== 'end' && value !== 'center') {\n throw Error(\"ConnectedPosition: Invalid \".concat(property, \" \\\"\").concat(value, \"\\\". \") + \"Expected \\\"start\\\", \\\"end\\\" or \\\"center\\\".\");\n }\n }", "function setStartEndIndex(start_i,end_i)\r\n\t{\r\n\t\tstartIndex = start_i;\r\n\t\tendIndex = end_i;\r\n\t\tg_data['kmstart'] = g_linedata[startIndex][0];\r\n\t\tg_data['kmend'] = g_linedata[endIndex][0];\r\n\t}", "function isStart(value, start, end) {\n return end !== null && start !== end && value < end && value === start;\n}", "function isStart(value, start, end) {\n return end !== null && start !== end && value < end && value === start;\n}", "function isStart(value, start, end) {\n return end !== null && start !== end && value < end && value === start;\n}", "function range(start, end) {\r\n\tif (end === undefined) {\r\n\t\tend = start;\r\n\t\tstart = 0;\r\n\t}\r\n\tlet res = []; //newArray(end-start,0);\r\n\tstart = start | 0;\r\n\tfor (let i = start; i < end; i++) res.push(i);\r\n\treturn res;\r\n}", "function validPosition(row, col) {\r\n //set boundary\r\n if (row < NUM_ROWS && col < NUM_COLS && row >= 0 && col >= 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "start(range) {\n var [start] = Range.edges(range);\n return start;\n }", "start(range) {\n var [start] = Range.edges(range);\n return start;\n }", "function isValid(row, col) {\n return row >= 0 && row < ROW && col >= 0 && col < COL;\n}", "_isRangeStart(value) {\n return isStart(value, this.startValue, this.endValue);\n }", "_isRangeStart(value) {\n return isStart(value, this.startValue, this.endValue);\n }", "function setPosition(start, end) {\n var pos = { to: -1, start: -1, end: -1 };\n mRoot.objEntities.forEach(function (entity) {\n var holders = entity.holders;\n for (var i = 0; i < holders.length; i++) {\n var holder = holders[i];\n var limit = {\n min: {\n x: holder.attr(\"x\") - 5,\n y: holder.attr(\"y\") - 5\n },\n max: {\n x: holder.attr(\"x\") + holder.attr(\"width\") + 5,\n y: holder.attr(\"y\") + holder.attr(\"height\") + 5\n }\n }\n if (limit.min.x <= start.x && start.x <= limit.max.x &&\n limit.min.y <= start.y && start.y <= limit.max.y) {\n pos.start = holder.id;\n }\n if (limit.min.x <= end.x && end.x <= limit.max.x &&\n limit.min.y <= end.y && end.y <= limit.max.y) {\n pos.end = holder.id;\n pos.to = entity.id;\n }\n }\n });\n return pos;\n }", "function setStartEndIndex(start_i, end_i) {\r\n startIndex = start_i;\r\n endIndex = end_i;\r\n g_data['kmstart'] = g_linedata[startIndex][0];\r\n g_data['kmend'] = g_linedata[endIndex][0];\r\n }", "inBounds(row, col) {\n return (row >= 0 && row <= this.MAX_ROW && col >= 0 && col <= this.MAX_COL);\n }", "getPosition(type) {\n if (type === 'begin') type = this.begp;\n else if (type === 'end') type = this.endp;\n const beginPointRow = this.maze.findIndex((row) => row.includes(type));\n const row = this.maze[beginPointRow];\n const beginPointCol = row.findIndex((col) => col == type);\n return [beginPointRow, beginPointCol];\n }", "isValidPosition (column, row) {\n // add logic that checks if the column and row exist in the grid\n // return true if they are valid and false if they are not\n var validColumn = column >= 0 && column < this.numberOfColumns;\n var validRow = row >= 0 && row < this.numberOfRows;\n\n return validColumn && validRow;\n \n}", "constructor(startCell) {\n this.currentCell = startCell;\n this.x = startCell.column;\n this.y = startCell.row;\n }", "function _rangeContainsItem(start, end) {\n\t\t\treturn ((this.start >= start) && (this.end <= end));\n\t\t}", "function cell_valid(row, col) {\n return row >= 0 && row < 12 && col >= 0 && col < 12;\n}", "range(startIndex, endIndex){\n if( startIndex < 0 )\n throw new Error(\"Start Index cannot be negative\");\n if( endIndex <= 0 )\n throw new Error(\"End Index must be greater than 0\");\n if( startIndex > endIndex )\n throw new Error(\"End Index cannot be less than Start Index\");\n\n var flow = new RangeMethodFlow(startIndex, endIndex);\n setRefs(this, flow);\n\n return flow;\n }", "constructor(startX, startY) {\r\n this.x = startX;\r\n this.y = startY;\r\n }", "function r(e,t){return{start:e.start,end:e.end,index:t}}", "function r(e,t){return{start:e.start,end:e.end,index:t}}", "function r(e,t){return{start:e.start,end:e.end,index:t}}", "function r(e,t){return{start:e.start,end:e.end,index:t}}", "size(){ return this.end-this.start }", "function range(start, end) {\n start = Number(start) || 0;\n if (end === undefiend) {\n return function getEnd(end) {\n return getRange(start, end);\n }\n } else {\n end = Number(end) || 0;\n return getRange(start, end);\n }\n function getRange(start, end) {\n let ret = [];\n for (let i = start; i <= end; i++) {\n ret.push(i);\n }\n return ret;\n }\n}", "match(input, start, end){}", "function matrixRegionSum(matrix, start, end) {\n\n\tif (start.x < 0 || matrix.length < start.x) {\n\t\tthrow new RegionOutBoundsException('X value of START coordinate is out of bounds');\n\t} else if (start.y < 0 || matrix[0].length < start.y) {\n\t\tthrow new RegionOutBoundsException('Y value of START coordiante is out of bounds');\n\t} else if (end.x < 0 || matrix.length < end.x) {\n\t\tthrow new RegionOutBoundsException('X value of EDN coordinate is out of bounds');\n\t} else if (end.y < 0 || matrix[0].length < end.y) {\n\t\tthrow new RegionOutBoundsException('Y value of END coordiante is out of bounds');\n\t}\n\n\tvar sum = 0;\n\tfor (var i = start.x; i <= end.x; i++) {\n\t\tfor (var j = start.y; j <= end.y; j++) {\n\t\t\tsum += matrix[i][j];\n\t\t}\n\t}\n\treturn sum;\n}", "function range(start,end)\n{\n let resultat=[];\n if (end >= start) {\n for (let i=start;i <= end;i++) {\n resultat.push(i);\n }\n return resultat;\n }\n if (start > end) {\n for (let i=start;i >= end;i--) {\n resultat.push(i);\n }\n return resultat;\n }\n}", "function range(start, end) {\n if ((start && end) || end == 0) {\n let result = [];\n for (i = start; i <= end; i++) {\n result.push(i);\n }\n return result;\n }\n\n if (arguments[1] === undefined) {\n return function rangeTill(end) {\n let result = [];\n for (i = start; i <= end; i++) {\n result.push(i);\n }\n return result;\n };\n }\n}", "function rangeToSegments(start, end) {\n\n\t\tvar rowCnt = t.getRowCnt();\n\t\tvar colCnt = t.getColCnt();\n\t\tvar segments = []; // array of segments to return\n\n\t\t// day offset for given date range\n\t\tvar rangeDayOffsetStart = dateToDayOffset(start);\n\t\tvar rangeDayOffsetEnd = dateToDayOffset(end); // an exclusive value\n\t\tvar endTimeMS = +end.time();\n\t\tif (endTimeMS && endTimeMS >= nextDayThreshold) {\n\t\t\trangeDayOffsetEnd++;\n\t\t}\n\t\trangeDayOffsetEnd = Math.max(rangeDayOffsetEnd, rangeDayOffsetStart + 1);\n\n\t\t// first and last cell offset for the given date range\n\t\t// \"last\" implies inclusivity\n\t\tvar rangeCellOffsetFirst = dayOffsetToCellOffset(rangeDayOffsetStart);\n\t\tvar rangeCellOffsetLast = dayOffsetToCellOffset(rangeDayOffsetEnd) - 1;\n\n\t\t// loop through all the rows in the view\n\t\tfor (var row=0; row<rowCnt; row++) {\n\n\t\t\t// first and last cell offset for the row\n\t\t\tvar rowCellOffsetFirst = row * colCnt;\n\t\t\tvar rowCellOffsetLast = rowCellOffsetFirst + colCnt - 1;\n\n\t\t\t// get the segment's cell offsets by constraining the range's cell offsets to the bounds of the row\n\t\t\tvar segmentCellOffsetFirst = Math.max(rangeCellOffsetFirst, rowCellOffsetFirst);\n\t\t\tvar segmentCellOffsetLast = Math.min(rangeCellOffsetLast, rowCellOffsetLast);\n\n\t\t\t// make sure segment's offsets are valid and in view\n\t\t\tif (segmentCellOffsetFirst <= segmentCellOffsetLast) {\n\n\t\t\t\t// translate to cells\n\t\t\t\tvar segmentCellFirst = cellOffsetToCell(segmentCellOffsetFirst);\n\t\t\t\tvar segmentCellLast = cellOffsetToCell(segmentCellOffsetLast);\n\n\t\t\t\t// view might be RTL, so order by leftmost column\n\t\t\t\tvar cols = [ segmentCellFirst.col, segmentCellLast.col ].sort();\n\n\t\t\t\t// Determine if segment's first/last cell is the beginning/end of the date range.\n\t\t\t\t// We need to compare \"day offset\" because \"cell offsets\" are often ambiguous and\n\t\t\t\t// can translate to multiple days, and an edge case reveals itself when we the\n\t\t\t\t// range's first cell is hidden (we don't want isStart to be true).\n\t\t\t\tvar isStart = cellOffsetToDayOffset(segmentCellOffsetFirst) == rangeDayOffsetStart;\n\t\t\t\tvar isEnd = cellOffsetToDayOffset(segmentCellOffsetLast) + 1 == rangeDayOffsetEnd; // +1 for comparing exclusively\n\n\t\t\t\tsegments.push({\n\t\t\t\t\trow: row,\n\t\t\t\t\tleftCol: cols[0],\n\t\t\t\t\trightCol: cols[1],\n\t\t\t\t\tisStart: isStart,\n\t\t\t\t\tisEnd: isEnd\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn segments;\n\t}", "function rangeToSegments(start, end) {\n\n\t\tvar rowCnt = t.getRowCnt();\n\t\tvar colCnt = t.getColCnt();\n\t\tvar segments = []; // array of segments to return\n\n\t\t// day offset for given date range\n\t\tvar rangeDayOffsetStart = dateToDayOffset(start);\n\t\tvar rangeDayOffsetEnd = dateToDayOffset(end); // an exclusive value\n\t\tvar endTimeMS = +end.time();\n\t\tif (endTimeMS && endTimeMS >= nextDayThreshold) {\n\t\t\trangeDayOffsetEnd++;\n\t\t}\n\t\trangeDayOffsetEnd = Math.max(rangeDayOffsetEnd, rangeDayOffsetStart + 1);\n\n\t\t// first and last cell offset for the given date range\n\t\t// \"last\" implies inclusivity\n\t\tvar rangeCellOffsetFirst = dayOffsetToCellOffset(rangeDayOffsetStart);\n\t\tvar rangeCellOffsetLast = dayOffsetToCellOffset(rangeDayOffsetEnd) - 1;\n\n\t\t// loop through all the rows in the view\n\t\tfor (var row=0; row<rowCnt; row++) {\n\n\t\t\t// first and last cell offset for the row\n\t\t\tvar rowCellOffsetFirst = row * colCnt;\n\t\t\tvar rowCellOffsetLast = rowCellOffsetFirst + colCnt - 1;\n\n\t\t\t// get the segment's cell offsets by constraining the range's cell offsets to the bounds of the row\n\t\t\tvar segmentCellOffsetFirst = Math.max(rangeCellOffsetFirst, rowCellOffsetFirst);\n\t\t\tvar segmentCellOffsetLast = Math.min(rangeCellOffsetLast, rowCellOffsetLast);\n\n\t\t\t// make sure segment's offsets are valid and in view\n\t\t\tif (segmentCellOffsetFirst <= segmentCellOffsetLast) {\n\n\t\t\t\t// translate to cells\n\t\t\t\tvar segmentCellFirst = cellOffsetToCell(segmentCellOffsetFirst);\n\t\t\t\tvar segmentCellLast = cellOffsetToCell(segmentCellOffsetLast);\n\n\t\t\t\t// view might be RTL, so order by leftmost column\n\t\t\t\tvar cols = [ segmentCellFirst.col, segmentCellLast.col ].sort();\n\n\t\t\t\t// Determine if segment's first/last cell is the beginning/end of the date range.\n\t\t\t\t// We need to compare \"day offset\" because \"cell offsets\" are often ambiguous and\n\t\t\t\t// can translate to multiple days, and an edge case reveals itself when we the\n\t\t\t\t// range's first cell is hidden (we don't want isStart to be true).\n\t\t\t\tvar isStart = cellOffsetToDayOffset(segmentCellOffsetFirst) == rangeDayOffsetStart;\n\t\t\t\tvar isEnd = cellOffsetToDayOffset(segmentCellOffsetLast) + 1 == rangeDayOffsetEnd; // +1 for comparing exclusively\n\n\t\t\t\tsegments.push({\n\t\t\t\t\trow: row,\n\t\t\t\t\tleftCol: cols[0],\n\t\t\t\t\trightCol: cols[1],\n\t\t\t\t\tisStart: isStart,\n\t\t\t\t\tisEnd: isEnd\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn segments;\n\t}", "function range(start, end){\n let arr = [start];\n if(start >= end){return start};\n return arr.concat(range(start+1, end));\n }", "function range(start,end){\r\n\t\tvar foo = [];\r\n\t\tfor (i = start; i < end; i++) {\r\n\t\t\tfoo.push(i);\r\n\t\t}\r\n\t\treturn foo;\r\n\t}", "function i(e,n){return{start:e.start,end:e.end,index:n}}", "inEdit(line) {\n return line >= this.baseFrom && line <= this.baseTo;\n }", "function validateHorizontalPosition(property, value) {\n if (value !== 'start' && value !== 'end' && value !== 'center') {\n throw Error(`ConnectedPosition: Invalid ${property} \"${value}\". ` +\n `Expected \"start\", \"end\" or \"center\".`);\n }\n}", "function isInBounds(row, col){\n //unsing ternary operator to reverse the value.\n return (row< 0 || col< 0 || row>= numRows || col>= numCols)?false:true;\n}", "inRange(position, range) {\n let found = false;\n for (let i = 0; i < range.length; i++) {\n if (position[0] === range[i][0] && position[1] === range[i][1]) { found = true }\n }\n return found;\n }", "function slice(arr, start, end){\n //code\n}", "function indicesStartEnd(array, start, end) {\n array.splice(start, end -1)\n return array\n}", "function removableRangeForStatement(node: Node, source: string): { start: number, end: number }", "boundedAddContent(grid, content, origin, end) {\n for(let i=origin[0];i<end[0];i++) {\n for(let j=origin[1];j<end[1];j++){\n if(i===origin[0] && j===origin[1]) {\n grid[i][j] = content;\n }\n else{\n grid[i][j]=true;\n }\n }\n }\n return grid;\n }", "inRange (number, start, end){\r\n // if end is undefined, start = 0 and end = start, then check if in range\r\n if (typeof end === 'undefined'){\r\n end = start;\r\n start = 0;\r\n } else if ( start > end ){\r\n // swap the two values around\r\n let temp = start;\r\n start = end;\r\n end = temp;\r\n }\r\n if ((number > start) && (number < end)){\r\n return true;\r\n }\r\n else\r\n return false;\r\n }", "inRange(num, endNum, startNum = 0) {\n [endNum, startNum] = [startNum, endNum];\n if (startNum > endNum) {\n [startNum, endNum] = [endNum, startNum];\n }\n return num >= startNum && num < endNum;\n }", "function getValidStart(len, dir) {\r\n let startX; // starting X coordinate\r\n let startY; // starting Y coordinate\r\n let endX; // ending X coordinate\r\n let endY; // ending Y coordinate\r\n\r\n do {\r\n // generate starting coordinates\r\n startX = Math.floor(Math.random() * (COLS - 1));\r\n startY = Math.floor(Math.random() * (ROWS - 1));\r\n\r\n // generate end coordinates\r\n endY = startY + (len * dir);\r\n endX = dir <= 0 ? startX + len : startX;\r\n } while (!valid([startX, startY], [endX, endY], dir)) // validate start points\r\n\r\n return [startX, startY];\r\n}", "cells() {\n var start = typeof this.topLeft === 'function' ? this.topLeft() : this.topLeft,\n end = typeof this.bottomRight === 'function' ? this.bottomRight() : this.bottomRight,\n\tthat = this;\n \n return Array.apply(start, Array(end+1)).map(function (x, y) {\n return y; \n });\n }", "function validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return new Invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return new Invalid(\"missing or invalid end\");\n } else if (end < start) {\n return new Invalid(\"end before start\", \"The end of an interval must be after its start, but you had start=\" + start.toISO() + \" and end=\" + end.toISO());\n } else {\n return null;\n }\n}", "updateRange(start, end) {\n this.range.start = start\n this.range.end = end\n this.range.paddingTop = this.getPaddingTop()\n this.range.paddingBottom = this.getPaddingBottom()\n this.callUpdate(this.getRange())\n }", "function setStart(rownum,colnum){\n //TODO: Gather the row/col number from the user\n // var rownum = 0\n // var colnum = 0\n //TODO: preset here, need modification\n if(rownum < 0 || rownum >= GRID_ROW_SIZE || colnum < 0 || colnum >= GRID_COL_SIZE){\n console.log(\"Invalid number: data out of bound\")\n }\n if(rownum == EndPoint[0] && colnum == EndPoint[1]){\n // cannot override endpoint\n return\n }\n Grid[StartPoint[0]][StartPoint[1]].State = \"NULL\"\n document.getElementById(Grid[StartPoint[0]][StartPoint[1]].id).innerHTML=\"\";\n\n Grid[rownum][colnum].State = \"Start\"\n document.getElementById(Grid[rownum][colnum].id).innerHTML=\"<div class='\"+setterMode+\"'></div>\";\n StartPoint = [rownum,colnum]\n\n\n\n return\n\n}", "function getRangeFromEndPositionToStartToken(session, endRow, endColumn, startTokenRegex) {\n var editorText = session.doc.getTextRange(SiddhiEditor.Range.fromPoints(\n {row: 0, column: 0},\n {row: endRow, column: endColumn}\n ));\n\n var startTokenRegexMatch;\n var startTokenRow = endRow;\n var startTokenColumn = endColumn;\n for (var i = editorText.length; i > 0 ; i--) {\n if (editorText.charAt(i - 1) == \"\\n\") {\n startTokenRow--;\n startTokenColumn = session.getLine(startTokenRow).length;\n } else {\n startTokenColumn--;\n }\n if (startTokenRegexMatch = startTokenRegex.exec(editorText.substring(i - 1))) {\n var range = SiddhiEditor.Range.fromPoints(\n {row: startTokenRow, column: startTokenColumn},\n {row: endRow, column: endColumn}\n );\n if (startTokenRegexMatch[1]) {\n range.start.column += startTokenRegexMatch[1].length;\n }\n return range;\n }\n }\n }", "function t(e,a){return{start:e.start,end:e.end,index:a}}", "@expression(\"items <start> to <end> of <List>\", { types: [ Integer, Integer, List ], returns: List })\n\tstatic range(list, start, end) {\n\t\tif (!(list instanceof List)) return undefined\n\t\tif (!(start instanceof Integer)) return undefined\n\t\tif (!(end instanceof Integer)) return undefined\n\n\t\tif (end === undefined) end = list.items.length\n\t\tlet duplicate = List.duplicate(list)\n\t\tduplicate.items = list.items.slice(list, start - 1, end)\n\t\treturn duplicate\n\t}", "function moveStartOrEnd(prevIndex, newIndex, startOrEnd) {\n var updatedY = newIndex % maxCols;\n var updatedX = Math.floor((newIndex - updatedY) / maxCols);\n if (startOrEnd == \"start\") {\n source = [updatedX, updatedY];\n console.log(\"Updated source is at [\" + updatedX + \", \" + updatedY + \"]\")\n } else if (startOrEnd == \"end\") {\n destination = [updatedX, updatedY];\n console.log(\"Updated destination is at [\" + updatedX + \", \" + updatedY + \"]\")\n } else if (startOrEnd == \"end1\") {\n destination1 = [updatedX, updatedY];\n console.log(\"Updated destination1 is at [\" + updatedX + \", \" + updatedY + \"]\")\n }\n\n\n clearBoard(keepWalls = true); //if we move the nodes after running the algos then it clears the board and move the nodes\n return;\n}", "leg(loc, x, y, start_val){\n\t\tvar cur_val = start_val\n\t\tvar stop = false\n\t\tvar check_loc = []\n\t\twhile(!stop){\n\t\t\tloc[0] += x\n\t\t\tloc[1] += y\n\n\t\t\t// I'm sure there is a mathish way to do this. I'm just lazy right now.\n\t\t\t// This sets up the cell coordinates to look at for an empty spot.\n\t\t\tif(y == -1){\n\t\t\t\tcheck_loc[0] = loc[0] - 1\n\t\t\t\tcheck_loc[1] = loc[1]\n\t\t\t}else if (x == -1) {\n\t\t\t\tcheck_loc[0] = loc[0]\n\t\t\t\tcheck_loc[1] = loc[1] + 1\n\t\t\t}else if (y == 1){\n\t\t\t\tcheck_loc[0] = loc[0] + 1\n\t\t\t\tcheck_loc[1] = loc[1]\n\t\t\t}else{\n\t\t\t\tcheck_loc[0] = loc[0]\n\t\t\t\tcheck_loc[1] = loc[1] - 1\n\t\t\t}\n\n\t\t\tcur_val += 1\n\t\t\tif(this.tbl.rows.length - 1 < loc[1] || this.tbl.rows[loc[1]].cells.length - 1 < loc[0]){\n\t\t\t\tthrow new RangeError(\"outta room\")\n\t\t\t}\n\t\t\tthis.tbl.rows[loc[1]].cells[loc[0]].innerHTML = cur_val\n\t\t\t// give a faint crosshair so we can find the center on larger blocks.\n\t\t\tif(loc[0] == this.center || loc[1] == this.center){\n\t\t\t\tthis.tbl.rows[loc[1]].cells[loc[0]].style.backgroundColor = \"#DDDDDD\"\n\t\t\t}\n\t\t\tthis.formatPrime(loc[0], loc[1])\n\t\t\tstop = this.tbl.rows[check_loc[1]].cells[check_loc[0]].innerHTML == this.filler\n\t\t}\n\n\t\treturn cur_val\n\t}", "function isInBounds(row, col) {\n\tif (row < 0 || row >= NUM_ROWS || col < 0 || col >= NUM_COLS) { return false; }\n\treturn true;\n}", "set start(value) {}", "function Position(start) {\n this.start = start\n this.end = {line: lineno, column: column}\n this.source = options.source\n }", "function verifyVert() {\n var vert_start_valid = verifyField(\"vert_start\");\n var vert_end_valid = verifyField(\"vert_end\");\n if(vert_start_valid && vert_end_valid) { return true; }\n else { return false; }\n}", "function Position(start) {\n this.start = start;\n this.end = {\n line: lineno,\n column\n };\n this.source = options.source;\n }", "function getIndexRange( start, end ) {\n let startIndex = 0;\n let endIndex = 10000000000;\n let startSet = false;\n let endSet = false;\n for (let i = 0; i < data.length; i++) {\n let d = data[i];\n if (d.seconds >= start && startSet == false) {\n startSet = true;\n startIndex = i;\n } \n else if (d.seconds >= end && endSet == false) {\n endSet = true;\n endIndex = i-1;\n break;\n }\n }\n return [startIndex, endIndex]\n}", "function setEnd(rownum,colnum){\n //TODO: Gather the row/col number from the user\n // var rownum = GRID_ROW_SIZE-1\n // var colnum = GRID_COL_SIZE-1\n //TODO: preset here, need modification\n if(rownum < 0 || rownum >= GRID_ROW_SIZE || colnum < 0 || colnum >= GRID_COL_SIZE){\n console.log(\"Invalid number: data out of bound\")\n }\n if(rownum == StartPoint[0] && colnum == StartPoint[1]){\n // cannot override startpoint\n return\n }\n Grid[EndPoint[0]][EndPoint[1]].State = \"NULL\"\n document.getElementById(Grid[EndPoint[0]][EndPoint[1]].id).innerHTML=\"\";\n\n Grid[rownum][colnum].State = \"End\"\n document.getElementById(Grid[rownum][colnum].id).innerHTML=\"<div class='\"+setterMode+\"'></div>\";\n EndPoint = [rownum,colnum]\n return\n\n}", "function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }", "function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }", "function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }", "function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }", "function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }", "function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }", "eoi() { return this.pos==this.end }", "static isInsideRange(position, range) {\n if (range.start.line === range.end.line) {\n return range.start.line === position.line\n && range.start.character <= position.character\n && position.character <= range.end.character;\n }\n else if (range.start.line === position.line) {\n return range.start.character <= position.character;\n }\n else if (range.end.line === position.line) {\n return position.character <= range.end.character;\n }\n return range.start.line < position.line && position.line < range.end.line;\n }", "function dataRangeError(start,end){\n let s=start.replace(\":\",\" \");\n let e=end.replace(\":\",\" \");\n \n s=Date.parse(s);\n e=Date.parse(e);\n if(e<s) // end date is before start date\n return true;\n return false;\n}", "constructor(beginNode, endNode) {//construtor dos caminhos\r\n this.begin = beginNode;//no inicial\r\n this.end = endNode;//no final\r\n }", "function isEnd(value, start, end) {\n return start !== null && start !== end && value >= start && value === end;\n}", "function isEnd(value, start, end) {\n return start !== null && start !== end && value >= start && value === end;\n}", "function range(start, end) {\n let r = [];\n for (let i = start; i < end; i++) {\n r.push(i);\n }\n return r;\n}", "function isEnd(value, start, end) {\n return start !== null && start !== end && value >= start && value === end;\n}" ]
[ "0.6415549", "0.6395434", "0.63818276", "0.63800603", "0.6367474", "0.62553483", "0.62053293", "0.6145948", "0.613062", "0.6127228", "0.6118138", "0.61091846", "0.60666275", "0.606555", "0.5982297", "0.5980037", "0.5977609", "0.5977609", "0.5948912", "0.59420526", "0.5929933", "0.59046316", "0.59046316", "0.5896508", "0.58942896", "0.5880375", "0.5880375", "0.58718145", "0.585672", "0.58459127", "0.58345115", "0.58345115", "0.5827795", "0.5815168", "0.5815168", "0.5813285", "0.58100724", "0.58011043", "0.57811546", "0.5743766", "0.56988883", "0.5684344", "0.5677701", "0.5654014", "0.565032", "0.5646186", "0.5646186", "0.5646186", "0.5646186", "0.5643623", "0.56396204", "0.5634391", "0.56331116", "0.5604807", "0.55917656", "0.55916935", "0.55916935", "0.5588108", "0.5582694", "0.5580512", "0.55662596", "0.55534923", "0.5538999", "0.55294484", "0.552255", "0.55150145", "0.5510992", "0.55092597", "0.55045384", "0.5502853", "0.5496981", "0.5495605", "0.5494952", "0.5489203", "0.5482869", "0.54778177", "0.54756194", "0.54695815", "0.5468567", "0.5463942", "0.5462313", "0.5460981", "0.54601693", "0.54573274", "0.54507244", "0.5446898", "0.54428464", "0.5442105", "0.5442105", "0.5442105", "0.5442105", "0.5442105", "0.5442105", "0.54406667", "0.5438773", "0.5437051", "0.5432442", "0.54315114", "0.54315114", "0.54310447", "0.54232734" ]
0.0
-1
Transposing turns all rows into columns and vice versa.
times(b) { const len = b.length; // Usage: M.times(b) where b can be a scalar, a Vec, or another Mat. Returns a new Mat. if (typeof len === "undefined") return this.map(r => r.map(x => b * x)); // Mat * scalar case. const len2 = b[0].length; if (typeof len2 === "undefined") { let result = Vec.of(...new Array(this.length)); // Mat * Vec case. for (var r = 0; r < len; r++) result[r] = b.dot(this[r]); return result; } let result = Mat.from(new Array(this.length)); for (let r = 0; r < this.length; r++) // Mat * Mat case. { result[r] = new Array(len2); for (let c = 0, sum = 0; c < len2; c++) { result[r][c] = 0; for (let r2 = 0; r2 < len; r2++) result[r][c] += this[r][r2] * b[r2][c]; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "transpose(arr) {\n\t\tif (Array.isArray(arr[0])) {\n\t\t\treturn arr[0].map((col, i) => arr.map(row => row[i]));\n\t\t} else {\n\t\t\tlet t = new Array(arr.length);\n\t\t\tfor (let i = 0; i < this.size; i++) {\n\t\t\t\tfor (let j = 0; j < this.size; j++) {\n\t\t\t\t\tt[i + this.size * j] = arr[j + this.size * i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t}", "function transpose(a) {\n return a[0].map((col, i) => a.map(row => row[i]));\n}", "function transpose(array) {\n return array[0].map(function(col, i) {\n return array.map(function(row) {\n return row[i];\n });\n });\n}", "function transpose(arr) {\n let transposed = [];\n\n const lengths = arr.map(a => a.length);\n const maxInputWidth = Math.max.apply(null, lengths);\n\n let curInputColumn = 0;\n while (curInputColumn < maxInputWidth) {\n let transposedRow = [];\n let curInputRow = 0;\n while (curInputRow < arr.length) {\n transposedRow.push(arr[curInputRow][curInputColumn] || ' ');\n curInputRow += 1;\n }\n transposed.push(transposedRow);\n curInputColumn += 1;\n }\n\n return transposed;\n}", "_transposeMatrix() {\n\n for (let row = 0; row < 4; row++) {\n for (let col = row; col < 4; col++) {\n [this[row][col], this[col][row]] = [this[col][row], this[row][col]];\n }\n }\n }", "function transpose(x){\n const outMat = [];\n const nCol= x[0].length;\n\n for(var i = 0; i < nCol; i++){\n outMat.push(x.map((k)=>k[i]));\n }\n\n return outMat;\n}", "function transpose(M) {\n var Mt = [];\n M.forEach(row => Mt.push([]));\n M.forEach((row,r) => row.forEach((v,c) => Mt[c][r] = v));\n return Mt;\n}", "function transpose(matrix) {\n const mat = matrix.map(row => row.slice());\n // console.log('transpose', mat)\n const rowLen = mat.length;\n const matLen = mat.slice(0, 1)[0].length;\n return Array(matLen).fill(null).map(\n (_, i) => Array(rowLen).fill(null).map(\n (_, j) => mat[j][i]\n )\n );\n}", "function transpose(a) {\n // Calculate the width and height of the Array\n var w = a.length || 0;\n var h = a[0] instanceof Array ? a[0].length : 0;\n // In case it is a zero matrix, no transpose routine needed.\n if(h === 0 || w === 0) { return []; }\n /**\n * @var {Number} i Counter\n * @var {Number} j Counter\n * @var {Array} t Transposed data is stored in this array.\n */\n var i, j, t = [];\n // Loop through every item in the outer array (height)\n for(i=0; i<h; i++) {\n // Insert a new row (array)\n t[i] = [];\n // Loop through every item per item in outer array (width)\n for(j=0; j<w; j++) {\n // Save transposed data.\n t[i][j] = a[j][i];\n }\n }\n return t;\n }", "transpose()\r\n {\r\n var newArray = [];\r\n\r\n // dimensions are inversed (new matrix has n rows and m columns)\r\n for (var r = 0; r < this.n; r++)\r\n newArray.push([]);\r\n\r\n // loop through matrix in column-major order\r\n // add each element to new matrix in row-major order\r\n for (var c = 0; c < this.n; c++)\r\n {\r\n for (var r = 0; r < this.m; r++)\r\n newArray[c][r] = this.matrix[r][c];\r\n }\r\n return new Matrix(newArray);\r\n }", "function matrix_transpose(m1) {\n \n let mat = [];\n for (let i = 0; i < m1[0].length; i++){\n mat[i] = [];\n for (let j = 0; j < m1.length; j++)\n mat[i][j] = m1[j][i];\n }\n return mat;\n}", "function myTranspose(arr) {\n transposed = new Array(arr.length)\n for(var i = 0; i < arr.length; i++){\n transposed[i] = new Array(arr.length)\n }\n \n for(var i = 0; i < arr.length; i++) {\n for(var j = 0; j < arr[i].length; j++) {\n transposed[i][j] = arr[j][i]\n }\n }\n return transposed\n}", "function matrix_transpose(m1) {\n\n var mat = [];\n var i,j;\n\n for (i = 0; i < m1[0].length; i++){\n mat[i] = [];\n for (j = 0; j < m1.length; j++){\n mat[i][j] = m1[j][i];\n }\n }\n return mat;\n}", "function transpose(matrix) {\n return matrix.map((row, rowIndex) => row.map((column, colIndex) => matrix[colIndex][rowIndex]));\n}", "function transpose(m) {\n return m[0].map((x, i) => m.map(x => x[i]))\n }", "function transpose(m) {\n return m[0].map((x, i) => m.map(x => x[i]))\n }", "function transpose(matrix) {\n let m = matrix.length;\n let n = matrix[0].length;\n let result = [];\n for (let index = 0; index < n; index++) {\n let newRow = [];\n for (let index2 = 0; index2 < m; index2++) {\n newRow.push(matrix[index2][index]);\n }\n result[index] = newRow;\n }\n return result;\n}", "transpose() {\n let result = new Matrix(this.width, this.height);\n\n for (let i = 0; i < this.height; i++) {\n for (let j = 0; j < this.width; j++) {\n // current (i, j) position is (j, i) position in new Matrix\n result.data[j][i] = this.data[i][j];\n }\n }\n\n return result;\n }", "function transpose(a) {\n return a[0].map(function (_, c) { return a.map(function (r) { return r[c]; }); });\n}", "function transpose(matrix) {\n var x = matrix.length;\n var y = matrix[0].length;\n var newMatrix = fillEmptySubArrays(y);\n var row;\n var column;\n\n for (row = 0, column = 0; row < x; row++) {\n for (column = 0; column < y; column++) {\n newMatrix[column][row] = matrix[row][column];\n }\n }\n\n return newMatrix;\n}", "static transpose(m) {\n let result = new Matrix(m.cols, m.rows);\n for (let i = 0; i < m.rows; i++) {\n for (let j = 0; j < m.cols; j++) {\n result.data[j][i] = m.data[i][j];\n }\n }\n return result;\n }", "function transpose(mat) {\n var newMat = [[0, 0, 0], [0, 0, 0], [0, 0, 0]];\n\n for (let i = 0; i < 3; i += 1) {\n for (let j = 0; j < 3; j += 1) {\n newMat[j][i] = mat[i][j];\n }\n }\n\n return newMat;\n}", "function transpose(m) {\n return [m[0], m[4], m[8], m[12], m[1], m[5], m[9], m[13], m[2], m[6], m[10], m[14], m[3], m[7], m[11], m[15]];\n}", "transpose() {\n let result = new Matrix();\n result._matrix = ExtMath.transpose(this._matrix);\n return result;\n }", "function transpose (array) {\n // Convert to true 2D array before transpose\n let newArray = [];\n for (let i = 0; i < array.length; i++) {\n array[i] = array[i].split('');\n }\n array = array[0].map((col, i) => array.map(row => row[i]));\n // Convert back into array of strings\n for (let i = 0; i < array.length; i++) {\n array[i] = array[i].join('');\n }\n return array;\n}", "function copyAndTranspose() {\n var s = SpreadsheetApp.getActiveSpreadsheet();\n var a = s.getSheetByName(\"All Licenses\").getDataRange().getValues();\n var t = a[0].map(function(col, i) { \n return a.map(function(row) { \n return row[i];\n });\n });\n s.getSheetByName(\"All Licenses (T)\").clearContents()\n .getRange(1,1,t.length,t[0].length).setValues(t);\n}", "function transpose(matrix) {\n let transposedArray = [];\n \n for (let rowIdx = 0; rowIdx < 3; rowIdx += 1) {\n transposedArray.push([]);\n }\n\n \n for (let i = 0; i < 3; i++) {\n for (let j = 0; j < 3; j++) {\n transposedArray[j].push(matrix[i][j]);\n }\n }\n \n return transposedArray;\n}", "static transpose(matrix) {\n let r = Matrix.map(new Matrix(matrix.cols, matrix.rows), (_, i, j) => matrix.data[j][i]);\n return r;\n }", "function transpose(d)\n {\n\tvar table = {};\n\t_.each(d[0], function(el, k) {\n\t table[k] = [];\n\t});\n\t_.each(d, function(data) {\n\t _.each(data, function(el, k) {\n\t\ttable[k].push(el);\n\t });\n\t});\n\treturn table;\n }", "function transpose(v) {\n\treturn [[v[0][0], v[1][0]], [v[0][1], v[1][1]]];\n}", "function transposeInPlace(matrix) {\n let arrayJSON = JSON.stringify(matrix);\n let arrayCopy = JSON.parse(arrayJSON);\n\n for (let rowIndex = 0; rowIndex < matrix.length; rowIndex += 1) {\n let currentRow = matrix[rowIndex];\n for (let colIndex = 0; colIndex < currentRow.length; colIndex += 1) {\n // rowIndex allows us to hold current array and change\n // its elements value before moving to the next array\n matrix[rowIndex][colIndex] = arrayCopy[colIndex][rowIndex];\n }\n }\n\n return matrix;\n}", "function transpose(array) {\n return array.reduce((prev, next) => next.map((item, i) =>\n (prev[i] || []).concat(next[i])\n ), []);\n}", "function transpose(matrix) {\n return [\n matrix[0], matrix[4], matrix[8], matrix[12],\n matrix[1], matrix[5], matrix[9], matrix[13],\n matrix[2], matrix[6], matrix[10], matrix[14],\n matrix[3], matrix[7], matrix[11], matrix[15]\n ];\n }", "function arrayTranspose(data) {\n if (data.length == 0 || data[0].length == 0) {\n return null;\n }\n\n var ret = [];\n for (var i = 0; i < data[0].length; ++i) {\n ret.push([]);\n }\n\n for (var i = 0; i < data.length; ++i) {\n for (var j = 0; j < data[i].length; ++j) {\n ret[j][i] = data[i][j];\n }\n }\n\n return ret;\n}", "function arrayTranspose(data) {\n if (data.length == 0 || data[0].length == 0) {\n return null;\n }\n\n var ret = [];\n for (var i = 0; i < data[0].length; ++i) {\n ret.push([]);\n }\n\n for (var i = 0; i < data.length; ++i) {\n for (var j = 0; j < data[i].length; ++j) {\n ret[j][i] = data[i][j];\n }\n }\n\n return ret;\n}", "function arrayTranspose(data) {\n if (data.length == 0 || data[0].length == 0) {\n return null;\n }\n\n var ret = [];\n for (var i = 0; i < data[0].length; ++i) {\n ret.push([]);\n }\n\n for (var i = 0; i < data.length; ++i) {\n for (var j = 0; j < data[i].length; ++j) {\n ret[j][i] = data[i][j];\n }\n }\n\n return ret;\n}", "function arrayTranspose(data) {\n if (data.length == 0 || data[0].length == 0) {\n return null;\n }\n\n var ret = [];\n for (var i = 0; i < data[0].length; ++i) {\n ret.push([]);\n }\n\n for (var i = 0; i < data.length; ++i) {\n for (var j = 0; j < data[i].length; ++j) {\n ret[j][i] = data[i][j];\n }\n }\n\n return ret;\n}", "function transpose(matrix) {\n var new_matrix = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n new_matrix[0] = matrix[0];\n new_matrix[1] = matrix[4];\n new_matrix[2] = matrix[8];\n new_matrix[3] = matrix[12];\n new_matrix[4] = matrix[1];\n new_matrix[5] = matrix[5];\n new_matrix[6] = matrix[9];\n new_matrix[7] = matrix[13];\n new_matrix[8] = matrix[2];\n new_matrix[9] = matrix[6];\n new_matrix[10] = matrix[10];\n new_matrix[11] = matrix[14];\n new_matrix[12] = matrix[3];\n new_matrix[13] = matrix[7];\n new_matrix[14] = matrix[11];\n new_matrix[15] = matrix[15];\n return new_matrix;\n}", "function transpose(a) {\n\treturn Object.keys(a[0]).map(\n\t function (c) { return a.map(function (r) { return r[c]; }); }\n\t);\n }", "transposeInvertedMatrix() {\n glMatrix.mat4.transpose(this.transposedInverseTransformationMatrix, this.inverseTransformationMatrix);\n }", "function rowsToCols(rows){\n var cols = new Array();\n for (var col = 0; col < rows[0].length; col++){\n cols.push(new Array());\n for (var row = 0; row < rows.length; row++){\n cols[col].push(rows[row][col]);\n }\n }\n return cols;\n}", "function reverseRowsAndColumns(matrix) {\n let transformedMx = [];\n matrix.map((row) => {\n row.map((val, cIndex) => {\n if (!transformedMx[cIndex]) transformedMx.push([]);\n transformedMx[cIndex].push(val);\n});\n});\n return transformedMx;\n}", "transpose() {\n const m = Object.create(this._elements); // ?\n this._elements = [\n [m[0][0], m[1][0], m[2][0]],\n [m[0][1], m[1][1], m[2][1]],\n [m[0][2], m[1][2], m[2][2]],\n ];\n return this;\n }", "transposeMat3(mat, dest) {\n if (dest === mat) {\n const a01 = mat[1];\n const a02 = mat[2];\n const a12 = mat[5];\n dest[1] = mat[3];\n dest[2] = mat[6];\n dest[3] = a01;\n dest[5] = mat[7];\n dest[6] = a02;\n dest[7] = a12;\n } else {\n dest[0] = mat[0];\n dest[1] = mat[3];\n dest[2] = mat[6];\n dest[3] = mat[1];\n dest[4] = mat[4];\n dest[5] = mat[7];\n dest[6] = mat[2];\n dest[7] = mat[5];\n dest[8] = mat[8];\n }\n return dest;\n }", "function transpose(M){\n var result = new Array(M.length);\n if (M.length == 16){\n result[0] = M[0];\n result[1] = M[4];\n result[2] = M[8];\n result[3] = M[12];\n result[4] = M[1];\n result[5] = M[5];\n result[6] = M[9]; \n result[7] = M[13]; \n result[8] = M[2]; \n result[9] = M[6]; \n result[10] = M[10]; \n result[11] = M[14]; \n result[12] = M[13]; \n result[13] = M[7]; \n result[14] = M[11]; \n result[15] = M[15]; \n }\n return result;\n}", "function colToArr(arrg) {\n let i, j, t = [];\n let h = arrg[0].length;\n let w = arrg.length;\n // Loop through every item in the outer array (height)\n for (i = 0; i < h; i++) {\n // Insert a new row (array)\n t[i] = [];\n // Loop through every item per item in outer array (width)\n for (j = 0; j < w; j++) {\n // Save transposed data.\n t[i][j] = arrg[j][i];\n }\n }\n console.log(t);\n return t;\n}", "function transpose(xss){\r\n if(!xss.length)\r\n return emptyListOf(xss);\r\n var a = uncons(xss);\r\n if(!a.head.length)\r\n return transpose(a.tail);\r\n var b = uncons(a.head),\r\n x = b.head,\r\n xs = b.tail;\r\n xss = a.tail;\r\n return uncons( uncons(x, map(head, xss)) , transpose(uncons(xs, map(tail, xss) )) );\r\n}", "function colToArr(arrg) {\n let i, j, t = [];\n let h = arrg[0].length;\n let w = arrg.length;\n // Loop through every item in the outer array (height)\n for (i = 0; i < h; i++) {\n // Insert a new row (array)\n t[i] = [];\n // Loop through every item per item in outer array (width)\n for (j = 0; j < w; j++) {\n // Save transposed data.\n t[i][j] = arrg[j][i];\n }\n }\n console.log(t);\n return t;\n }", "function transpose( msg )\n\t{\n\t var row, col;\n\t var state = new Array( 16 );\n\n\t for( row=0; row<4; row++ )\n\t\t for( col=0; col<4; col++ )\n\t\t\t state[I(row,col)] = msg[I(col,row)];\n\n\t return state;\n\t}", "get transpose$() {\n\t\treturn (this._t || (this._t = SpiderGL.Math.Mat4.transpose(this._m)));\n\t}", "get transpose() {\n\t\treturn SpiderGL.Math.Mat4.dup(this.transpose$);\n\t}", "function transposeBoard(board, boardSize, which) {\n let board_inv = Array.from(Array(boardSize), () => new Array(boardSize).fill(0));\n for (let i = 0; i < board.length; i++) {\n for (let j = 0; j < board.length; j++) {\n if (which == 'values') {\n board_inv[j][i] = board[i][j]\n } else if (which == 'positions') {\n board_inv[j][i] = [i, j]\n }\n }\n }\n\n return board_inv\n}", "matrixR (x, transpose) {\n let values = []\n let cols = null\n for (const row of Object.values(x)) {\n const rowArray = [...Object.values(row)]\n if (cols === null) {\n cols = rowArray.length\n } else {\n if (cols !== rowArray.length) throw Error('uneven row length')\n }\n values.push(...rowArray)\n }\n values = values.map(x => x === undefined ? 'NA' : x)\n if (!transpose) {\n return `matrix(c(${values.join(',')}),byrow=TRUE,ncol=${cols})`\n } else {\n return `matrix(c(${values.join(',')}),byrow=FALSE,nrow=${cols})`\n }\n }", "function inferColumns(rows){var columnSet=Object.create(null),columns=[];rows.forEach(function(row){for(var column in row){if(!(column in columnSet)){columns.push(columnSet[column]=column)}}});return columns}", "function inferColumns(rows) {\n var columnSet = Object.create(null), columns = [];\n rows.forEach(function(row) {\n for(var column in row)if (!(column in columnSet)) columns.push(columnSet[column] = column);\n });\n return columns;\n}", "function toMatrix(items, columnCount) {\n return items.reduce(function (rows, currentValue, index) {\n if (index % columnCount === 0) {\n rows.push([currentValue]);\n }\n else {\n rows[rows.length - 1].push(currentValue);\n }\n return rows;\n }, []);\n}", "function toMatrix(items, columnCount) {\n return items.reduce(function (rows, currentValue, index) {\n if (index % columnCount === 0) {\n rows.push([currentValue]);\n }\n else {\n rows[rows.length - 1].push(currentValue);\n }\n return rows;\n }, []);\n}", "function toMatrix(items, columnCount) {\n return items.reduce(function (rows, currentValue, index) {\n if (index % columnCount === 0) {\n rows.push([currentValue]);\n }\n else {\n rows[rows.length - 1].push(currentValue);\n }\n return rows;\n }, []);\n}", "function toMatrix(items, columnCount) {\r\n return items.reduce(function (rows, currentValue, index) {\r\n if (index % columnCount === 0) {\r\n rows.push([currentValue]);\r\n }\r\n else {\r\n rows[rows.length - 1].push(currentValue);\r\n }\r\n return rows;\r\n }, []);\r\n}", "function toMatrix(items, columnCount) {\r\n return items.reduce(function (rows, currentValue, index) {\r\n if (index % columnCount === 0) {\r\n rows.push([currentValue]);\r\n }\r\n else {\r\n rows[rows.length - 1].push(currentValue);\r\n }\r\n return rows;\r\n }, []);\r\n}", "get viewMatrixTranspose() {\n\t\treturn this._v.transpose;\n\t}", "function cols2rows(items) {\n var out = [];\n\n for(var i=0, l=items.length; i<l; i++) {\n for(var j=0, m=items[i].length; j<m; j++) {\n if (!(j in out)) {\n out[j] = [];\n }\n out[j][i] = items[i][j];\n }\n }\n\n return out;\n}", "transposeMat4(mat, dest) {\n // If we are transposing ourselves we can skip a few steps but have to cache some values\n const m4 = mat[4];\n\n const m14 = mat[14];\n const m8 = mat[8];\n const m13 = mat[13];\n const m12 = mat[12];\n const m9 = mat[9];\n if (!dest || mat === dest) {\n const a01 = mat[1];\n const a02 = mat[2];\n const a03 = mat[3];\n const a12 = mat[6];\n const a13 = mat[7];\n const a23 = mat[11];\n mat[1] = m4;\n mat[2] = m8;\n mat[3] = m12;\n mat[4] = a01;\n mat[6] = m9;\n mat[7] = m13;\n mat[8] = a02;\n mat[9] = a12;\n mat[11] = m14;\n mat[12] = a03;\n mat[13] = a13;\n mat[14] = a23;\n return mat;\n }\n dest[0] = mat[0];\n dest[1] = m4;\n dest[2] = m8;\n dest[3] = m12;\n dest[4] = mat[1];\n dest[5] = mat[5];\n dest[6] = m9;\n dest[7] = m13;\n dest[8] = mat[2];\n dest[9] = mat[6];\n dest[10] = mat[10];\n dest[11] = m14;\n dest[12] = mat[3];\n dest[13] = mat[7];\n dest[14] = mat[11];\n dest[15] = mat[15];\n return dest;\n }", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}", "function inferColumns(rows) {\n var columnSet = Object.create(null),\n columns = [];\n\n rows.forEach(function(row) {\n for (var column in row) {\n if (!(column in columnSet)) {\n columns.push(columnSet[column] = column);\n }\n }\n });\n\n return columns;\n}" ]
[ "0.6924914", "0.6873821", "0.6788616", "0.6686729", "0.6667833", "0.663993", "0.65830195", "0.6568882", "0.6568607", "0.6485466", "0.64818954", "0.6475725", "0.6464204", "0.6460248", "0.6456923", "0.6417554", "0.6354245", "0.6331179", "0.63195205", "0.6308992", "0.6208569", "0.61828107", "0.6176504", "0.6135244", "0.6119", "0.61058867", "0.60803914", "0.60702664", "0.6045422", "0.6033653", "0.6002082", "0.59342533", "0.59182847", "0.5903572", "0.5903572", "0.5903572", "0.5877877", "0.58016163", "0.5799166", "0.57353455", "0.5688121", "0.56634825", "0.56624365", "0.562421", "0.55226326", "0.54636544", "0.54219246", "0.5374654", "0.53689355", "0.52699715", "0.52592", "0.5254262", "0.5251442", "0.521474", "0.51961607", "0.51476353", "0.51476353", "0.51476353", "0.51453143", "0.51453143", "0.5100808", "0.5088429", "0.5083612", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967", "0.5082967" ]
0.0
-1
Overwrites the matrix with the new product.
post_multiply(b) { var new_value = this.times(b); this.length = 0; this.push(...new_value); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function matrixMultiply() {\n \"use strict\";\n\n var i;\n var j;\n var k;\n\n newComposite = new Array(composite.length);\n\n for (i = 0; i < newComposite.length; i += 1) {\n newComposite[i] = new Array(newTransform[i].length);\n for (j = 0; j < composite.length; j += 1) {\n newComposite[i][j] = 0; // initialise to 0\n for (k = 0; k < newTransform.length; k += 1) {\n newComposite[i][j] += composite[i][k] * newTransform[k][j]; // multiply matrices together\n }\n }\n }\n composite = newComposite;\n}", "multiply(matrix) {\n return this.clone().multiplyO(matrix);\n }", "mult(n) {\n if(n instanceof Matrix && this.cols === n.rows) {\n const result = new Matrix(this.rows, n.cols);\n for(let row = 0; row < result.rows; row++) { // resulting matrix will have dimensions of the 1st matrix's rows and the # of columns in the 2nd matrix\n for(let col = 0; col < result.cols; col++) {\n let sum = 0;\n for(let index = 0; index < this.cols; index++) {\n sum += this.matrix[row][index] * n.matrix[index][col];\n }\n result.matrix[row][col] = sum;\n }\n }\n this.matrix = result.matrix;\n } else {\n for(let row = 0; row < this.rows; row++) {\n for(let col = 0; col < this.cols; col++) {\n this.matrix[row][col] *= n;\n }\n }\n }\n this.print();\n return this;\n }", "static prod(M1,M2) {\r\n if(!(M1 instanceof Matrix) || !(M2 instanceof Matrix)) {\r\n console.log(Matrix.wrong_type_error_message2());\r\n return null;\r\n }\r\n if(M1.cols != M2.rows) {\r\n console.log(Matrix.wrong_dim_error_message());\r\n return null;\r\n }\r\n let result = new Matrix(M1.rows,M2.cols);\r\n let helper = M2.transpose();\r\n result.data = result.data.map((rows,main_index) => {\r\n return rows.map((col,sub_index) => {\r\n return Matrix.array_mult(M1.data[main_index],helper.data[sub_index]);\r\n });\r\n });\r\n return result;\r\n }", "function mulTranspose(val)\n{\n\tif(typeof val != typeof this)\n\t{\n\t\tthrow \"Incompatible types\";\n\t}\n\telse\n\t{\n\t\tif(this.size.x != val.size.y)\n\t\t{\n\t\t\tthrow \"Matrix cant be multiplied (check matrix size)\";\n\t\t}\n\n\t\tvar mat = new Matrix(this.size.y, val.size.x);\n\t\tfor(var i = 0; i < this.size.y; i++)\n\t\t{\n\t\t\tfor(var j = 0; j < val.size.x; j++)\n\t\t\t{\n\t\t\t\tvar sum = 0;\n\t\t\t\tfor(var k = 0; k < this.size.x; k++)\n\t\t\t\t{\n\t\t\t\t\tsum += this.matrix[k][i] * val.matrix[j][k];\n\t\t\t\t}\n\t\t\t\tmat.matrix[i][j] = sum;\n\t\t\t}\n\t\t}\n\n\t\tthis.matrix = mat.matrix;\n\t\tthis.size.x = mat.size.x;\n\t\tthis.size.y = mat.size.y;\n\t}\n}", "function matrixMultiply(arrOne, arrTwo) {\n\n}", "function multiply_matrix_by_matrix(matrix_a, matrix_b) {\n let product_of_matrices = [\n [0, 0],\n [0, 0]\n ]\n\n product_of_matrices[0][0] = matrix_a[0][0] * matrix_b[0][0]\n product_of_matrices[0][0] += matrix_a[0][1] * matrix_b[1][0]\n\n product_of_matrices[0][1] = matrix_a[0][0] * matrix_b[0][1]\n product_of_matrices[0][1] += matrix_a[0][1] * matrix_b[1][1]\n\n product_of_matrices[1][0] = matrix_a[1][0] * matrix_b[0][0]\n product_of_matrices[1][0] += matrix_a[1][1] * matrix_b[1][0]\n\n product_of_matrices[1][1] = matrix_a[1][0] * matrix_b[0][1]\n product_of_matrices[1][1] += matrix_a[1][1] * matrix_b[1][1]\n\n return product_of_matrices\n}", "function multiplyMatrix(matrixInputLeft, matrixInputRight){\n var result = getEmpyMatrix(matrixInputLeft.length);\n var temp = 0;\n for(var k = 0; k < matrixInputLeft.length; k++){\n for(var i = 0; i < matrixInputLeft[0].length; i++){\n for(var j = 0; j < matrixInputRight[0].length; j++){\n temp += parseInt(matrixInputLeft[k][j]) * parseInt(matrixInputRight[j][i]);\n console.log(temp);\n }\n result[k][i] = temp;\n temp = 0;\n\n console.log(result);\n }\n }\n return result;\n }", "multiply(other) {\n if (this.values[0].length !== other.values.length) {\n throw new Error('Cannot multiply these two matrices!');\n }\n const m = this.values.length;\n const n = other.values.length;\n const k = other.values[0].length;\n // multiply\n const newMatrix = new Matrix(m, k);\n for (let i = 0; i < m; i++) {\n for (let j = 0; j < k; j++) {\n for (let t = 0; t < n; t++) {\n newMatrix.values[i][j] += this.values[i][t] * other.values[t][j];\n }\n }\n }\n return newMatrix;\n }", "function matrixMultiply(matrix1, matrix2) {\n let newMatrix = [[], []];\n for (let i=0; i<matrix1.length; i++) {\n for (let j=0; j<matrix1[0].length; j++) {\n newMatrix[i].push(matrix1[i][0] * matrix2[0][j] + matrix1[i][1] * matrix2[1][j]);\n }\n }\n return newMatrix;\n}", "clone() {\n const mt = new Matrix();\n return mt.multiply(this);\n }", "updateMatrix() {\n this.matrix.set(\n 1 - 2 * (Math.pow(this.y, 2) + Math.pow(this.z, 2)),\n 2 * (this.x * this.y - this.s * this.z),\n 2 * (this.x * this.z + this.s * this.y),\n 0,\n 2 * (this.x * this.y + this.s * this.z),\n 1 - 2 * (Math.pow(this.x, 2) + Math.pow(this.z, 2)),\n 2 * (this.y * this.z - this.s * this.x),\n 0,\n 2 * (this.x * this.z - this.s * this.y),\n 2 * (this.y * this.z + this.s * this.x),\n 1 - 2 * (Math.pow(this.x, 2) + Math.pow(this.y, 2)),\n 0,\n 0,\n 0,\n 0,\n 1\n );\n }", "function matrixMultiply(matrix_1, matrix_2) {\n var matrix_3 = [[],[]];\n console.log(matrix_1.length);\n for(var i = 0; i < matrix_1.length; i++) {\n for(var j = 0; j < matrix_1.length; j++) {\n matrix_3[i][j] = (matrix_1[i][0] * matrix_2[0][j]) + (matrix_1[i][1] * matrix_2[1][j]);\n }\n }\n return matrix_3;\n}", "static matrixMultiply(l, r, o) {\n // Work out the product directly\n var a = l.a * r.a + l.c * r.b;\n var b = l.b * r.a + l.d * r.b;\n var c = l.a * r.c + l.c * r.d;\n var d = l.b * r.c + l.d * r.d;\n var e = l.e + l.a * r.e + l.c * r.f;\n var f = l.f + l.b * r.e + l.d * r.f; // make sure to use local variables because l/r and o could be the same\n\n o.a = a;\n o.b = b;\n o.c = c;\n o.d = d;\n o.e = e;\n o.f = f;\n return o;\n }", "function matrixPower(base, index) {\n //product = base x multiplicand\n var product = [];\n var multiplicand = [];\n \n //copy base matrix into product:\n product = copyMatrix(base);\n \n for (var counter = 0; counter < index - 1; counter++) {\n //copy product into multiplicand\n multiplicand = copyMatrix(product);\n \n //multiply:\n //iterate over rows\n for (var r = 0; r < base.length; r++) {\n //iterate over columns\n for (var c = 0; c < base.length; c++) {\n //find each individual entry by multiplying multiplicand by base\n product[r][c] = 0; //clear the product so it can take on new values\n for (var t = 0; t < base.length; t++) {\n product[r][c] += (multiplicand[r][t] * base[t][c]);\n }\n }\n }\n }\n \n return product;\n}", "reiniciar(){\n mat4.set(this.inicial,this.matrix);\n }", "multiply(matrix4) {\n let a00 = this._matrix[0 * 4 + 0];\n let a01 = this._matrix[0 * 4 + 1];\n let a02 = this._matrix[0 * 4 + 2];\n let a03 = this._matrix[0 * 4 + 3];\n let a10 = this._matrix[1 * 4 + 0];\n let a11 = this._matrix[1 * 4 + 1];\n let a12 = this._matrix[1 * 4 + 2];\n let a13 = this._matrix[1 * 4 + 3];\n let a20 = this._matrix[2 * 4 + 0];\n let a21 = this._matrix[2 * 4 + 1];\n let a22 = this._matrix[2 * 4 + 2];\n let a23 = this._matrix[2 * 4 + 3];\n let a30 = this._matrix[3 * 4 + 0];\n let a31 = this._matrix[3 * 4 + 1];\n let a32 = this._matrix[3 * 4 + 2];\n let a33 = this._matrix[3 * 4 + 3];\n\n let b00 = matrix4[0 * 4 + 0];\n let b01 = matrix4[0 * 4 + 1];\n let b02 = matrix4[0 * 4 + 2];\n let b03 = matrix4[0 * 4 + 3];\n let b10 = matrix4[1 * 4 + 0];\n let b11 = matrix4[1 * 4 + 1];\n let b12 = matrix4[1 * 4 + 2];\n let b13 = matrix4[1 * 4 + 3];\n let b20 = matrix4[2 * 4 + 0];\n let b21 = matrix4[2 * 4 + 1];\n let b22 = matrix4[2 * 4 + 2];\n let b23 = matrix4[2 * 4 + 3];\n let b30 = matrix4[3 * 4 + 0];\n let b31 = matrix4[3 * 4 + 1];\n let b32 = matrix4[3 * 4 + 2];\n let b33 = matrix4[3 * 4 + 3];\n\n this._matrix[0] = a00 * b00 + a10 * b01 + a20 * b02 + a30 * b03;\n this._matrix[1] = a01 * b00 + a11 * b01 + a21 * b02 + a31 * b03;\n this._matrix[2] = a02 * b00 + a12 * b01 + a22 * b02 + a32 * b03;\n this._matrix[3] = a03 * b00 + a13 * b01 + a23 * b02 + a33 * b03;\n this._matrix[4] = a00 * b10 + a10 * b11 + a20 * b12 + a30 * b13;\n this._matrix[5] = a01 * b10 + a11 * b11 + a21 * b12 + a31 * b13;\n this._matrix[6] = a02 * b10 + a12 * b11 + a22 * b12 + a32 * b13;\n this._matrix[7] = a03 * b10 + a13 * b11 + a23 * b12 + a33 * b13;\n this._matrix[8] = a00 * b20 + a10 * b21 + a20 * b22 + a30 * b23;\n this._matrix[9] = a01 * b20 + a11 * b21 + a21 * b22 + a31 * b23;\n this._matrix[10] = a02 * b20 + a12 * b21 + a22 * b22 + a32 * b23;\n this._matrix[11] = a03 * b20 + a13 * b21 + a23 * b22 + a33 * b23;\n this._matrix[12] = a00 * b30 + a10 * b31 + a20 * b32 + a30 * b33;\n this._matrix[13] = a01 * b30 + a11 * b31 + a21 * b32 + a31 * b33;\n this._matrix[14] = a02 * b30 + a12 * b31 + a22 * b32 + a32 * b33;\n this._matrix[15] = a03 * b30 + a13 * b31 + a23 * b32 + a33 * b33;\n\n return this._matrix;\n }", "function scalMtx1() {\r\n var row = document.getElementById(\"rows\").value;\r\n var col = document.getElementById(\"cols\").value;\r\n var scal = document.getElementById(\"scalNum1\").value;\r\n var string = \"<section class='matrixCont' id='displayMatrix1'><table class='matrix' id='matrix1'>\";\r\n var product;\r\n var curr1;\r\n var curString1 = \"\";\r\n\r\n //Checks if it is a Square Matrix\r\n if (row == col) {\r\n for (var i = 0; i < row; i++) {\r\n string += \"\\n<tr>\";\r\n for (var j = 0; j < col; j++) {\r\n curString1 = \"mtrx1-\" + i + \"-\" + j;\r\n curr1 = Number(document.getElementById(curString1).innerText);\r\n product = curr1 * scal;\r\n console.log(product);\r\n string += \"\\n<td id='mtrx1-\" + i + \"-\" + j + \"'>\\n\" + product + \"</td>\";\r\n }\r\n string += \"\\n</tr>\";\r\n }\r\n string += \"\\n</table>\\n<section id='scalar1'></section><section id='detMatrix1'></section></section>\";\r\n } else {\r\n for (var i = 0; i < row; i++) {\r\n string += \"\\n<tr>\";\r\n for (var j = 0; j < col; j++) {\r\n curString1 = \"mtrx1-\" + i + \"-\" + j;\r\n curr1 = Number(document.getElementById(curString1).innerText);\r\n product = curr1 * scal;\r\n console.log(product);\r\n string += \"\\n<td id='mtrx1-\" + i + \"-\" + j + \"'>\\n\" + product + \"</td>\";\r\n }\r\n string += \"\\n</tr>\";\r\n }\r\n string += \"\\n</table>\\n<section id='scalar1'></section><section id= 'detMatrix1'></section>\\n</section>\";\r\n }\r\n $(\"#displayMatrix1\").replaceWith(string);\r\n}", "multiply(matrix3) {\n let a00 = this._matrix[0 * 3 + 0];\n let a01 = this._matrix[0 * 3 + 1];\n let a02 = this._matrix[0 * 3 + 2];\n let a10 = this._matrix[1 * 3 + 0];\n let a11 = this._matrix[1 * 3 + 1];\n let a12 = this._matrix[1 * 3 + 2];\n let a20 = this._matrix[2 * 3 + 0];\n let a21 = this._matrix[2 * 3 + 1];\n let a22 = this._matrix[2 * 3 + 2];\n\n let b00 = matrix3[0 * 3 + 0];\n let b01 = matrix3[0 * 3 + 1];\n let b02 = matrix3[0 * 3 + 2];\n let b10 = matrix3[1 * 3 + 0];\n let b11 = matrix3[1 * 3 + 1];\n let b12 = matrix3[1 * 3 + 2];\n let b20 = matrix3[2 * 3 + 0];\n let b21 = matrix3[2 * 3 + 1];\n let b22 = matrix3[2 * 3 + 2];\n\n this._matrix[0] = a00 * b00 + a01 * b10 + a02 * b20;\n this._matrix[1] = a00 * b01 + a01 * b11 + a02 * b21;\n this._matrix[2] = a00 * b02 + a01 * b12 + a02 * b22;\n this._matrix[3] = a10 * b00 + a11 * b10 + a12 * b20;\n this._matrix[4] = a10 * b01 + a11 * b11 + a12 * b21;\n this._matrix[5] = a10 * b02 + a11 * b12 + a12 * b22;\n this._matrix[6] = a20 * b00 + a21 * b10 + a22 * b20;\n this._matrix[7] = a20 * b01 + a21 * b11 + a22 * b21;\n this._matrix[8] = a20 * b02 + a21 * b12 + a22 * b22;\n\n return this._matrix;\n }", "function multiplyAll(arr) {\n var product = 1;\n // Only change code below this line\n for (var i=0; i < arr.length; i++) {\n for (var j=0; j < arr[i].length; j++) {\n product *= arr[i][j];\n }}\n // Only change code above this line\n return product;\n}", "static prod(mats)\n\t{\n\t\tif (mats.length == 0) {\n\t\t\treturn Matrix.identity();\n\t\t}\n\t\tvar result = mats[0];\n\t\tfor (var i=1; i<mats.length; ++i) {\n\t\t\tresult = Matrix.mul(result, mats[i]);\n\t\t}\n\t\treturn result;\n\t}", "function multiplyAll(arr) {\n var product = 1;\n // Only change code below this line\n for (var i=0; i < arr.length; i++) {\n for (var j=0; j < arr[i].length; j++) {\n product = product * arr[i][j];\n }\n}\n // Only change code above this line\n return product;\n}", "function multiplyAll(arr) {\n var product = 1;\n // Only change code below this line\n for (var i = 0; i < arr.length; i++) {\n for (var j = 0; j < arr[i].length; j++) {\n product *= arr[i][j];\n }\n }\n // Only change code above this line\n return product;\n}", "multiply(mat) {\n const m00 = this.v[0] * mat.v[0] + this.v[3] * mat.v[1] + this.v[6] * mat.v[2];\n const m01 = this.v[0] * mat.v[3] + this.v[3] * mat.v[4] + this.v[6] * mat.v[5];\n const m02 = this.v[0] * mat.v[6] + this.v[3] * mat.v[7] + this.v[6] * mat.v[8];\n const m10 = this.v[1] * mat.v[0] + this.v[4] * mat.v[1] + this.v[7] * mat.v[2];\n const m11 = this.v[1] * mat.v[3] + this.v[4] * mat.v[4] + this.v[7] * mat.v[5];\n const m12 = this.v[1] * mat.v[6] + this.v[4] * mat.v[7] + this.v[7] * mat.v[8];\n const m20 = this.v[2] * mat.v[0] + this.v[5] * mat.v[1] + this.v[8] * mat.v[2];\n const m21 = this.v[2] * mat.v[3] + this.v[5] * mat.v[4] + this.v[8] * mat.v[5];\n const m22 = this.v[2] * mat.v[6] + this.v[5] * mat.v[7] + this.v[8] * mat.v[8];\n return this.setComponents(m00, m01, m02, m10, m11, m12, m20, m21, m22);\n }", "multiply(mat) {\n const m00 = this.v[0] * mat.v[0] + this.v[4] * mat.v[1] + this.v[8] * mat.v[2] + this.v[12] * mat.v[3];\n const m01 = this.v[0] * mat.v[4] + this.v[4] * mat.v[5] + this.v[8] * mat.v[6] + this.v[12] * mat.v[7];\n const m02 = this.v[0] * mat.v[8] + this.v[4] * mat.v[9] + this.v[8] * mat.v[10] + this.v[12] * mat.v[11];\n const m03 = this.v[0] * mat.v[12] + this.v[4] * mat.v[13] + this.v[8] * mat.v[14] + this.v[12] * mat.v[15];\n const m10 = this.v[1] * mat.v[0] + this.v[5] * mat.v[1] + this.v[9] * mat.v[2] + this.v[13] * mat.v[3];\n const m11 = this.v[1] * mat.v[4] + this.v[5] * mat.v[5] + this.v[9] * mat.v[6] + this.v[13] * mat.v[7];\n const m12 = this.v[1] * mat.v[8] + this.v[5] * mat.v[9] + this.v[9] * mat.v[10] + this.v[13] * mat.v[11];\n const m13 = this.v[1] * mat.v[12] + this.v[5] * mat.v[13] + this.v[9] * mat.v[14] + this.v[13] * mat.v[15];\n const m20 = this.v[2] * mat.v[0] + this.v[6] * mat.v[1] + this.v[10] * mat.v[2] + this.v[14] * mat.v[3];\n const m21 = this.v[2] * mat.v[4] + this.v[6] * mat.v[5] + this.v[10] * mat.v[6] + this.v[14] * mat.v[7];\n const m22 = this.v[2] * mat.v[8] + this.v[6] * mat.v[9] + this.v[10] * mat.v[10] + this.v[14] * mat.v[11];\n const m23 = this.v[2] * mat.v[12] + this.v[6] * mat.v[13] + this.v[10] * mat.v[14] + this.v[14] * mat.v[15];\n const m30 = this.v[3] * mat.v[0] + this.v[7] * mat.v[1] + this.v[11] * mat.v[2] + this.v[15] * mat.v[3];\n const m31 = this.v[3] * mat.v[4] + this.v[7] * mat.v[5] + this.v[11] * mat.v[6] + this.v[15] * mat.v[7];\n const m32 = this.v[3] * mat.v[8] + this.v[7] * mat.v[9] + this.v[11] * mat.v[10] + this.v[15] * mat.v[11];\n const m33 = this.v[3] * mat.v[12] + this.v[7] * mat.v[13] + this.v[11] * mat.v[14] + this.v[15] * mat.v[15];\n return this.setComponents(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33);\n }", "function change(matrix){\n var len = matrix.length;\n var mat = arrayClone(matrix);\n for (var i = len; i < 4; i++){\n mat.push([0,0,0,0]);\n for (var j = 0; j < len; j++){\n mat[j].push(0)\n }\n }\n return mat;\n}", "function matrix_multiply(ae, be, res){\n var a11 = ae[0][0], a12 = ae[0][1], a13 = ae[0][2], a14 = ae[0][3]\n var a21 = ae[1][0], a22 = ae[1][1], a23 = ae[1][2], a24 = ae[1][3]\n var a31 = ae[2][0], a32 = ae[2][1], a33 = ae[2][2], a34 = ae[2][3]\n var a41 = ae[3][0], a42 = ae[3][1], a43 = ae[3][2], a44 = ae[3][3]\n\n var b11 = be[0][0], b12 = be[0][1], b13 = be[0][2], b14 = be[0][3]\n var b21 = be[1][0], b22 = be[1][1], b23 = be[1][2], b24 = be[1][3]\n var b31 = be[2][0], b32 = be[2][1], b33 = be[2][2], b34 = be[2][3]\n var b41 = be[3][0], b42 = be[3][1], b43 = be[3][2], b44 = be[3][3]\n\n res[0][0] = a11 * b11 + a12 * b21 + a13 * b31 + a14 * b41\n res[0][1] = a11 * b12 + a12 * b22 + a13 * b32 + a14 * b42\n res[0][2] = a11 * b13 + a12 * b23 + a13 * b33 + a14 * b43\n res[0][3] = a11 * b14 + a12 * b24 + a13 * b34 + a14 * b44\n\n res[1][0] = a21 * b11 + a22 * b21 + a23 * b31 + a24 * b41\n res[1][1] = a21 * b12 + a22 * b22 + a23 * b32 + a24 * b42\n res[1][2] = a21 * b13 + a22 * b23 + a23 * b33 + a24 * b43\n res[1][3] = a21 * b14 + a22 * b24 + a23 * b34 + a24 * b44\n\n res[2][0] = a31 * b11 + a32 * b21 + a33 * b31 + a34 * b41\n res[2][1] = a31 * b12 + a32 * b22 + a33 * b32 + a34 * b42\n res[2][2] = a31 * b13 + a32 * b23 + a33 * b33 + a34 * b43\n res[2][3] = a31 * b14 + a32 * b24 + a33 * b34 + a34 * b44\n\n res[3][0] = a41 * b11 + a42 * b21 + a43 * b31 + a44 * b41\n res[3][1] = a41 * b12 + a42 * b22 + a43 * b32 + a44 * b42\n res[3][2] = a41 * b13 + a42 * b23 + a43 * b33 + a44 * b43\n res[3][3] = a41 * b14 + a42 * b24 + a43 * b34 + a44 * b44\n}", "static multiply(a, b) {\n if (a.cols !== b.rows) {\n console.log('Cols of A must match rows of B');\n return undefined;\n }\n let result = new Matrix(a.rows, b.cols);\n for (let i = 0; i < result.rows; i++) {\n for (let j = 0; j < result.cols; j++) {\n // Dot product of values in col\n let sum = 0;\n for (let k = 0; k < a.cols; k++) {\n sum += a.data[i][k] * b.data[k][j];\n }\n result.data[i][j] = sum;\n }\n }\n return result;\n }", "function matrixMultiply(mat2, mat1) {\n return [mat1[0] * mat2[0] + mat1[1] * mat2[4] + mat1[2] * mat2[8] + mat1[3] * mat2[12], mat1[0] * mat2[1] + mat1[1] * mat2[5] + mat1[2] * mat2[9] + mat1[3] * mat2[13], mat1[0] * mat2[2] + mat1[1] * mat2[6] + mat1[2] * mat2[10] + mat1[3] * mat2[14], mat1[0] * mat2[3] + mat1[1] * mat2[7] + mat1[2] * mat2[11] + mat1[3] * mat2[15], mat1[4] * mat2[0] + mat1[5] * mat2[4] + mat1[6] * mat2[8] + mat1[7] * mat2[12], mat1[4] * mat2[1] + mat1[5] * mat2[5] + mat1[6] * mat2[9] + mat1[7] * mat2[13], mat1[4] * mat2[2] + mat1[5] * mat2[6] + mat1[6] * mat2[10] + mat1[7] * mat2[14], mat1[4] * mat2[3] + mat1[5] * mat2[7] + mat1[6] * mat2[11] + mat1[7] * mat2[15], mat1[8] * mat2[0] + mat1[9] * mat2[4] + mat1[10] * mat2[8] + mat1[11] * mat2[12], mat1[8] * mat2[1] + mat1[9] * mat2[5] + mat1[10] * mat2[9] + mat1[11] * mat2[13], mat1[8] * mat2[2] + mat1[9] * mat2[6] + mat1[10] * mat2[10] + mat1[11] * mat2[14], mat1[8] * mat2[3] + mat1[9] * mat2[7] + mat1[10] * mat2[11] + mat1[11] * mat2[15], mat1[12] * mat2[0] + mat1[13] * mat2[4] + mat1[14] * mat2[8] + mat1[15] * mat2[12], mat1[12] * mat2[1] + mat1[13] * mat2[5] + mat1[14] * mat2[9] + mat1[15] * mat2[13], mat1[12] * mat2[2] + mat1[13] * mat2[6] + mat1[14] * mat2[10] + mat1[15] * mat2[14], mat1[12] * mat2[3] + mat1[13] * mat2[7] + mat1[14] * mat2[11] + mat1[15] * mat2[15]];\n}", "function updateMatrix() {\n\n // reset matrix\n matrix.length = 0;\n // if nodes exist\n if (nodes.length > 0) {\n\n // reset matrix values\n for (var i = 0; i < nodes.length; i++) {\n matrix.push([]);\n for (var j = 0; j < nodes.length; j++) {\n matrix[i].push(0);\n }\n }\n // set matrix cost\n for (i = 0; i < links.length; i++) {\n var source = nodes.indexOf(links[i]['source']);\n var target = nodes.indexOf(links[i]['target']);\n var distance = links[i]['distance'];\n\n if (source != -1 && target != -1) {\n matrix[source][target] = distance;\n matrix[target][source] = distance;\n }\n }\n }\n}", "static multiply(mat1, mat2) {\n //check compatibility\n if (mat1.width !== mat2.height) {\n throw new Error('Incompatible matrices for multiplication.');\n }\n const height = mat1.height;\n const width = mat2.width;\n const result = new Matrix(height, width);\n for (let i = 0; i < height; i++) {\n for (let j = 0; j < width; j++) {\n let sum = 0;\n for (let k = 0; k < mat1.width; k++) {\n sum += mat1.get(i, k) * mat2.get(k, j);\n }\n result.set(i, j, _.round(sum, 5));\n }\n }\n return result;\n }", "multiply(n) {\n // PERFORMING HADAMARD MULTIPLICATION.\n if(n instanceof Matrix) {\n this.map((data, i, j) => data * n.data[i][j]);\n } else if(typeof n === 'number') {\n this.map((data) => data * n);\n }\n return this;\n }", "function applyMatrix(self, m) {\n self.__data__.mat = multMatrix(m, self.__data__.mat);\n return self;\n }", "function increaseMatrix() {\r\n storeMatrix();\r\n var matrix = getMatrix().map(row => {\r\n row.push('1');\r\n return row;\r\n });\r\n matrix.push(new Array(matrix.length + 1).fill('1'));\r\n localStorage.setItem('matrix', JSON.stringify(matrix));\r\n createTable();\r\n}", "resetMatrix(mat, val) {\n\t\t\tmat.forEach((col) => col.fill(val));\n\t\t}", "function multiplyMatrix (A, B) {\n var result = new Array(A.length).fill(0).map(row => new Array(B[0].length).fill(0));\n\n return result.map((row, i) => {\n return row.map((val, j) => {\n return A[i].reduce((sum, elm, k) => sum + (elm*B[k][j]) ,0)\n })\n })\n}", "multiply(n) {\n // Scalar Product\n for (let i = 0; i < this.rows; i++) {\n for (let j = 0; j < this.cols; j++) {\n this.data[i][j] *= n;\n }\n }\n }", "function multMatrix(A,H){\r\n\tvar M = [[0,0,0],[0,0,0],[0,0,0]];\r\n\tvar ic = 0;\r\n\tvar mc = 0;\r\n\tfor(mc=0;mc<3;mc++){\r\n\t\tfor(ic=0;ic<3;ic++){\r\n\t\t\tvar cell = 0;\r\n\t\t\tfor(cell=0;cell<3;cell++){\r\n\t\t\t\tM[mc][ic] = M[mc][ic] + A[cell][ic]*H[mc][cell];\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn M;\r\n}", "multiply(mat) {\n const m00 = this.v[0] * mat.v[0] + this.v[2] * mat.v[1];\n const m01 = this.v[0] * mat.v[2] + this.v[2] * mat.v[3];\n const m10 = this.v[1] * mat.v[0] + this.v[3] * mat.v[1];\n const m11 = this.v[1] * mat.v[2] + this.v[3] * mat.v[3];\n return this.setComponents(m00, m01, m10, m11);\n }", "function scalMtx2(row, col, operation) {\r\n var scal = document.getElementById(\"scalNum2\").value;\r\n var string = \"<section class='matrixCont' id='displayMatrix2'>\";\r\n if (operation == 2) {\r\n string += \"<div>X</div>\";\r\n }\r\n if (operation == 1) {\r\n string += \"<div>-</div>\";\r\n }\r\n if (operation == 0) {\r\n string += \"<div>+</div>\";\r\n }\r\n string += \"\\n<button type='submit' onclick='nextScalar2(\" + row + \",\" + col + \",\" + operation + \")'>Scalar Multiplication</button><table class='matrix' id='matrix2'>\";\r\n var product;\r\n var curr2;\r\n var curString2 = \"\";\r\n\r\n //Checks if it is a Square Matrix\r\n if (row == col) {\r\n for (var i = 0; i < row; i++) {\r\n string += \"\\n<tr>\";\r\n for (var j = 0; j < col; j++) {\r\n curString2 = \"mtrx2-\" + i + \"-\" + j;\r\n curr2 = Number(document.getElementById(curString2).innerText);\r\n product = curr2 * scal;\r\n console.log(product);\r\n string += \"\\n<td id='mtrx2-\" + i + \"-\" + j + \"'>\\n\" + product + \"</td>\";\r\n }\r\n string += \"\\n</tr>\";\r\n }\r\n string += \"\\n</table>\\n<section id='scalar2'></section><section id='detMatrix2'></section>\";\r\n } else {\r\n for (var i = 0; i < row; i++) {\r\n string += \"\\n<tr>\";\r\n for (var j = 0; j < col; j++) {\r\n curString2 = \"mtrx2-\" + i + \"-\" + j;\r\n curr2 = Number(document.getElementById(curString2).innerText);\r\n product = curr2 * scal;\r\n console.log(product);\r\n string += \"\\n<td id='mtrx2-\" + i + \"-\" + j + \"'>\\n\" + product + \"</td>\";\r\n }\r\n string += \"\\n</tr>\";\r\n }\r\n string += \"\\n</table>\\n<section id='scalar2'></section><section id= 'detMatrix2'></section>\";\r\n }\r\n if (operation == 2) {\r\n string += \"<button type='submit' onclick='multiEqual(\" + row + \",\" + col + \")'>=</button></section>\";\r\n }\r\n if (operation == 1) {\r\n string += \"<button type='submit' onclick='subEqual()'>=</button></section>\";\r\n }\r\n if (operation == 0) {\r\n string += \"<button type='submit' onclick='addEqual()'>=</button></section>\";\r\n }\r\n $(\"#displayMatrix2\").replaceWith(string);\r\n}", "function multiply_matrix_by_constant(matrix, CONSTANT) {\n let product_of_matrix_and_constant = [\n [0, 0],\n [0, 0]\n ]\n\n product_of_matrix_and_constant[0][0] = CONSTANT * matrix[0][0]\n product_of_matrix_and_constant[0][1] = CONSTANT * matrix[0][1]\n product_of_matrix_and_constant[1][0] = CONSTANT * matrix[1][0]\n product_of_matrix_and_constant[1][1] = CONSTANT * matrix[1][1]\n\n return product_of_matrix_and_constant\n}", "function multiplyAll(arr) {\r\n var product = 1;\r\n for (var i = 0; i < arr.length; i++) {\r\n for (var j = 0; j < arr[i].length; j++) {\r\n product = product * arr[i][j];\r\n }\r\n }\r\n return product;\r\n }", "function multiply(digits) {\n for (var i = 0; i < indices.length; ++i) {\n var product = 1;\n for (var j = 0; j < indices[i].length; ++j) {\n product = product * digits[indices[i][j]];\n }\n permutationProduct.push(product);\n }\n return product;\n}", "function matrix_multiply(m1,m2) {\n // returns 2D array that is the result of m1*m2\n\n var res = new Array(m1.length) // creating a placeholder\n\n for (i = 0; i < m1.length; i++){\n res[i] = new Array(m2[0].length)\n for (j = 0; j < m2[0].length; j++){\n var temp = 0\n for (k = 0; k < m2.length; k++){\n temp += m1[i][k] * m2[k][j]\n }\n res[i][j] = temp\n }\n }\n return res\n}", "function Matrix(mm) {\n\tvar\n\t\tself=this,\n\t\tM=mm;\n\t\t\n\tjQuery.extend(self,{\n\t\tmult: function(mm) {\n\t\t\tvar m=mm.M?mm.M:mm;\n\t\t\t\n\t\t\tvar result = new Array(4);\n\t\t\tfor (var i = 0; i<4;i++) {\n\t\t\t\tresult[i] = new Array(4);\n\t\t\t}\n\t\t\t\n\t\t\tfor(var i = 0; i < 4; i++){\n\t\t\t\tresult[i][0] = M[i][0] * m[0][0] + M[i][1] * m[1][0] + M[i][2] * m[2][0] + M[i][3] * m[3][0];\n\t\t\t\tresult[i][1] = M[i][0] * m[0][1] + M[i][1] * m[1][1] + M[i][2] * m[2][1] + M[i][3] * m[3][1];\n\t\t\t\tresult[i][2] = M[i][0] * m[0][2] + M[i][1] * m[1][2] + M[i][2] * m[2][2] + M[i][3] * m[3][2];\n\t\t\t\tresult[i][3] = M[i][0] * m[0][3] + M[i][1] * m[1][3] + M[i][2] * m[2][3] + M[i][3] * m[3][3];\n\t\t\t}\n\t\t\t\n\t\t\treturn new Matrix(result);\n\t\t},\n\t\t\n\t\tadd: function(mm) {\n\t\t\tvar m=mm.M?mm.M:mm;\n\t\t\t\n\t\t\tvar result = new Array(4);\n\t\t\tfor (var i = 0; i<4;i++) {\n\t\t\t\tresult[i] = new Array(4);\n\t\t\t}\n\t\t\t\n\t\t\tfor (var i=0; i<4; i++)\n\t\t\t\tfor (var j=0; j<4; j++)\n\t\t\t\t\tresult[i][j]=M[i][j]+m[i][j];\n\n\t\t\treturn new Matrix(result);\n\t\t},\n\t\t\n\t\t// the matrix\n\t\t'M': M\n\t});\n}", "function multiplyAll(arr){\n var product = 1;\n\n for(var i = 0; i < arr.length; i++){\n for(var j = 0; i < arr[i].length; j++){\n product *=arr[i][j];\n }\n }\n}", "function matrix_multiply(m1, m2) {\n \n let mat = [];\n for (let i = 0; i < m1.length; i++){\n mat[i] = [];\n for (let j = 0; j < m2[0].length; j++){\n mat[i][j] = 0;\n for (let k = 0; k < m2.length; k++)\n mat[i][j] += m1[i][k]*m2[k][j];\n }\n }\n\n return mat;\n}", "function matrix_multiply(m1, m2) {\n\n var mat = [];\n var i,j,k;\n for (i = 0; i < m1.length; i++){\n mat[i] = [];\n for (j = 0; j < m2[0].length; j++){\n mat[i][j] = 0;\n for (k = 0; k < m2.length; k++){\n mat[i][j] += m1[i][k]*m2[k][j];\n }\n }\n }\n\n return mat;\n}", "copy() {\n const m = this.matrix;\n const copyM = JSON.parse(JSON.stringify(m));\n return new Matrix(copyM);\n }", "function MatrixMult( A, B )\r\n{\r\n\tvar C = [];\r\n\tfor ( var i=0; i<4; ++i ) \r\n\t{\r\n\t\tfor ( var j=0; j<4; ++j ) \r\n\t\t{\r\n\t\t\tvar v = 0;\r\n\t\t\tfor ( var k=0; k<4; ++k ) \r\n\t\t\t{\r\n\t\t\t\tv += A[j+4*k] * B[k+4*i];\r\n\t\t\t}\r\n\t\t\tC.push(v);\r\n\t\t}\r\n\t}\r\n\treturn C;\r\n}", "MatrixReRender(newRow, newCol)\n {\n // updates this field for tracking purposes...\n this.activeIndeces = {\n row: newRow,\n col: newCol\n }\n this.HTMLMatrix = this.MatrixDom(this.Matrix, this.activeIndeces.col, this.activeIndeces.row);\n }", "function multiplyMatrix4x4(...matricies) {\r\n return matricies.reduce((a, b) => {\r\n return [\r\n b[0] * a[0] + b[1] * a[4] + b[2] * a[8] + b[3] * a[12],\r\n b[0] * a[1] + b[1] * a[5] + b[2] * a[9] + b[3] * a[13],\r\n b[0] * a[2] + b[1] * a[6] + b[2] * a[10] + b[3] * a[14],\r\n b[0] * a[3] + b[1] * a[7] + b[2] * a[11] + b[3] * a[15],\r\n b[4] * a[0] + b[5] * a[4] + b[6] * a[8] + b[7] * a[12],\r\n b[4] * a[1] + b[5] * a[5] + b[6] * a[9] + b[7] * a[13],\r\n b[4] * a[2] + b[5] * a[6] + b[6] * a[10] + b[7] * a[14],\r\n b[4] * a[3] + b[5] * a[7] + b[6] * a[11] + b[7] * a[15],\r\n b[8] * a[0] + b[9] * a[4] + b[10] * a[8] + b[11] * a[12],\r\n b[8] * a[1] + b[9] * a[5] + b[10] * a[9] + b[11] * a[13],\r\n b[8] * a[2] + b[9] * a[6] + b[10] * a[10] + b[11] * a[14],\r\n b[8] * a[3] + b[9] * a[7] + b[10] * a[11] + b[11] * a[15],\r\n b[12] * a[0] + b[13] * a[4] + b[14] * a[8] + b[15] * a[12],\r\n b[12] * a[1] + b[13] * a[5] + b[14] * a[9] + b[15] * a[13],\r\n b[12] * a[2] + b[13] * a[6] + b[14] * a[10] + b[15] * a[14],\r\n b[12] * a[3] + b[13] * a[7] + b[14] * a[11] + b[15] * a[15],\r\n ];\r\n });\r\n}", "function helper(matrix, offset, curLen) {\n for (let i = 0; i < curLen; i++) {\n const temp = matrix[offset + curLen - i][offset];\n matrix[offset + curLen - i][offset] = matrix[offset + curLen][offset + curLen - i];\n matrix[offset + curLen][offset + curLen - i] = matrix[offset + i][offset + curLen];\n matrix[offset + i][offset + curLen] = matrix[offset][offset + i];\n matrix[offset][offset + i] = temp;\n }\n}", "function multiplyAll(arr) {\n var product = 1;\n for (var i = 0; i < arr.length; i++) {\n for (var j = 0; j < arr[i].length; j++) {\n product = product * arr[i][j];\n }\n }\n return product;\n}", "copy() {\r\n let result = new Matrix(this.rows,this.cols);\r\n result.data = this.data.slice(0);\r\n return result;\r\n }", "function multRows(matrix, row, scalar){\n for (let i=0; i < matrix[row].length; i++){\n //matrix[row][i] *= scalar;\n matrix[row][i] = matrix[row][i].mul(scalar);\n }\n return matrix;\n}", "createFinalMatrix(){\n this.matrix = mat4.create(); \n\n // Fetches the translation\n const translateCoordinates = [0, 0, 0];\n\n // Computes the matrix\n this.matrix = mat4.translate(this.matrix, this.matrix, translateCoordinates);\n }", "setMatrix (props) {\n const { value, size, ecl } = props\n this._matrix = genMatrix(value, ecl)\n this._cellSize = size / this._matrix.length\n this._path = this.transformMatrixIntoPath()\n }", "multiply(other) {\n other = binding.webIDL.dictionaries.DOMMatrixInit(other);\n\n const implReturnValue = this[_impl].multiply(other);\n // This is wrong; should be DOMMatrix. Hopefully good enough for now.\n return binding.webIDL.implsToWrappers.DOMMatrixReadOnly(implReturnValue);\n }", "function matrixMult(m1, m2) {\n\tvar m00 = m1[0][0] * m2[0][0] + m1[0][1] * m2[1][0];\n\tvar m01 = m1[0][0] * m2[0][1] + m1[0][1] * m2[1][1];\n\tvar m10 = m1[1][0] * m2[0][0] + m1[1][1] * m2[1][0];\n\tvar m11 = m1[1][0] * m2[0][1] + m1[1][1] * m2[1][1];\n return [[m00, m01], [m10, m11]];\n}", "function matrixMultiply(a, b) {\n matrix = [];\n \n matrix[ 0] = a[0 * 4 + 0] * b[0 * 4 + 0] + a[0 * 4 + 1] * b[1 * 4 + 0] + a[0 * 4 + 2] * b[2 * 4 + 0] + a[0 * 4 + 3] * b[3 * 4 + 0];\n matrix[ 1] = a[0 * 4 + 0] * b[0 * 4 + 1] + a[0 * 4 + 1] * b[1 * 4 + 1] + a[0 * 4 + 2] * b[2 * 4 + 1] + a[0 * 4 + 3] * b[3 * 4 + 1];\n matrix[ 2] = a[0 * 4 + 0] * b[0 * 4 + 2] + a[0 * 4 + 1] * b[1 * 4 + 2] + a[0 * 4 + 2] * b[2 * 4 + 2] + a[0 * 4 + 3] * b[3 * 4 + 2];\n matrix[ 3] = a[0 * 4 + 0] * b[0 * 4 + 3] + a[0 * 4 + 1] * b[1 * 4 + 3] + a[0 * 4 + 2] * b[2 * 4 + 3] + a[0 * 4 + 3] * b[3 * 4 + 3];\n matrix[ 4] = a[1 * 4 + 0] * b[0 * 4 + 0] + a[1 * 4 + 1] * b[1 * 4 + 0] + a[1 * 4 + 2] * b[2 * 4 + 0] + a[1 * 4 + 3] * b[3 * 4 + 0];\n matrix[ 5] = a[1 * 4 + 0] * b[0 * 4 + 1] + a[1 * 4 + 1] * b[1 * 4 + 1] + a[1 * 4 + 2] * b[2 * 4 + 1] + a[1 * 4 + 3] * b[3 * 4 + 1];\n matrix[ 6] = a[1 * 4 + 0] * b[0 * 4 + 2] + a[1 * 4 + 1] * b[1 * 4 + 2] + a[1 * 4 + 2] * b[2 * 4 + 2] + a[1 * 4 + 3] * b[3 * 4 + 2];\n matrix[ 7] = a[1 * 4 + 0] * b[0 * 4 + 3] + a[1 * 4 + 1] * b[1 * 4 + 3] + a[1 * 4 + 2] * b[2 * 4 + 3] + a[1 * 4 + 3] * b[3 * 4 + 3];\n matrix[ 8] = a[2 * 4 + 0] * b[0 * 4 + 0] + a[2 * 4 + 1] * b[1 * 4 + 0] + a[2 * 4 + 2] * b[2 * 4 + 0] + a[2 * 4 + 3] * b[3 * 4 + 0];\n matrix[ 9] = a[2 * 4 + 0] * b[0 * 4 + 1] + a[2 * 4 + 1] * b[1 * 4 + 1] + a[2 * 4 + 2] * b[2 * 4 + 1] + a[2 * 4 + 3] * b[3 * 4 + 1];\n matrix[10] = a[2 * 4 + 0] * b[0 * 4 + 2] + a[2 * 4 + 1] * b[1 * 4 + 2] + a[2 * 4 + 2] * b[2 * 4 + 2] + a[2 * 4 + 3] * b[3 * 4 + 2];\n matrix[11] = a[2 * 4 + 0] * b[0 * 4 + 3] + a[2 * 4 + 1] * b[1 * 4 + 3] + a[2 * 4 + 2] * b[2 * 4 + 3] + a[2 * 4 + 3] * b[3 * 4 + 3];\n matrix[12] = a[3 * 4 + 0] * b[0 * 4 + 0] + a[3 * 4 + 1] * b[1 * 4 + 0] + a[3 * 4 + 2] * b[2 * 4 + 0] + a[3 * 4 + 3] * b[3 * 4 + 0];\n matrix[13] = a[3 * 4 + 0] * b[0 * 4 + 1] + a[3 * 4 + 1] * b[1 * 4 + 1] + a[3 * 4 + 2] * b[2 * 4 + 1] + a[3 * 4 + 3] * b[3 * 4 + 1];\n matrix[14] = a[3 * 4 + 0] * b[0 * 4 + 2] + a[3 * 4 + 1] * b[1 * 4 + 2] + a[3 * 4 + 2] * b[2 * 4 + 2] + a[3 * 4 + 3] * b[3 * 4 + 2];\n matrix[15] = a[3 * 4 + 0] * b[0 * 4 + 3] + a[3 * 4 + 1] * b[1 * 4 + 3] + a[3 * 4 + 2] * b[2 * 4 + 3] + a[3 * 4 + 3] * b[3 * 4 + 3];\n return matrix;\n}", "function multiplyAll(arr) {\n var product = 1;\n\n for (var i = 0; i < arr.length; i++) {\n for (var j = 0; j < arr[i].length; j++) {\n product *= arr[i][j];\n }\n }\n\n return product;\n}", "function multiplyAll(arr){\n var product = 1;\n for (var i=0; i < arr.length; i++){\n for (var j=0; j < arr[i].length; j++){\n product *= arr[i][j];\n }\n }\n return product;\n}", "setMatrix(m) {\n\tthis.matrix = m;\n }", "function mat4Multiply(firstMatrix, secondMatrix){\n var resultMatrix = [];\n for(i = 0; i < 4; i++){\n for(j = 0; j < 4; j ++){\n var value = 0;\n for(k = 0; k < 4; k++){\n value += firstMatrix[i * 4 + k] * secondMatrix[k * 4 + j];\n }\n resultMatrix[i * 4 + j] = value;\n }\n }\n return resultMatrix;\n}", "function myMatrix()\n{\n this.colNum = 2;\n this.rowNum = 2;\n //this.dataColNum = this.colNum - 2;\n //this.dataRowNum = this.rowNum - 2;\n this.matrix = [];\n\tthis.currentColRWMethod = null;\n\tthis.currentRowRWMethod = null;\n this.currentPurifyMethod = [];//store such as [{direct:col, method:\"平均法\"}, {{direct:col, method:\"累加法\"}}]\n\n this.addCurrentPurifyMethod = function(direct, method)\n {\n console.info(\"entry addCurrentPurifyMethod\");\n var i = 0;\n var methodEle = null;\n var found = false;\n\n for(i = 0; i < this.currentPurifyMethod.length; i++)\n {\n methodEle = this.currentPurifyMethod[i];\n if(methodEle.direct == direct && methodEle.method == method)\n {\n found = true;\n this.currentPurifyMethod[i].direct = direct;\n this.currentPurifyMethod[i].method = method;\n }\n }\n if(false == found)\n {\n methodEle = {\"direct\":direct, \"method\":method};\n this.currentPurifyMethod[i] = methodEle;\n }\n\n console.info(\"currentPurifyMethod :\", this.currentPurifyMethod);\n }\n\n this.delCurrentPurifyMethod = function(direct, method)\n {\n console.info(\"entry delCurrentPurifyMethod\");\n var i = 0;\n var methodEle = null;\n for(i = 0; i < this.currentPurifyMethod.length; i++)\n {\n methodEle = this.currentPurifyMethod[i];\n if(methodEle.direct == direct && methodEle.method == method)\n {\n this.currentPurifyMethod.splice(i, 1);//delete this one\n }\n }\n }\n\n \n this.setPurifyResult = function()\n {\n var i = 0;\n var g_purifyData = new purifyData();\n var methodEle = null;\n var purifyDataMatrix = this.getUsefulPureDataMatrix();\n console.info(\"entry setPurifyResult\");\n var rowAppendResList = [];\n var colAppendResList = [];\n\n\n for(i = 0; i < this.currentPurifyMethod.length; i++)\n {\n methodEle = this.currentPurifyMethod[i];\n var method = g_purifyData.getPurifyDataMethod(methodEle.method);\n var resArray = [];\n \n if(null != method)\n {\n if(\"纵向\" == methodEle.direct)\n {\n var methodName = methodEle.method;\n resArray = method.method(purifyDataMatrix, this.getPureDataColNum(), this.getPureDataRowNum(), 1);\n rowAppendResList.push({\"name\":methodName, \"list\":resArray});\n\n }\n else\n {\n var methodName = methodEle.method;\n resArray = method.method(purifyDataMatrix, this.getPureDataColNum(), this.getPureDataRowNum(), 0);\n colAppendResList.push({\"name\":methodName, \"list\":resArray});\n }\n }\n console.info(\"rowAppendResList = \", rowAppendResList);\n console.info(\"colAppendResList = \", colAppendResList);\n\n }\n //this.appendRowResData(rowAppendResList);\n this.appendResData(rowAppendResList, colAppendResList);\n\n }\n\t\n this.getPureDataColNum = function()\n {\n var i = 0;\n var colNum = 0;\n for(i = 0; i < this.colNum; i++)\n {\n var e = JSON.parse(this.matrix[0][i]);\n if(e.cellType == \"colHeader\")\n {\n colNum += 1;\n }\n }\n return colNum;\n }\n\n this.getPureDataRowNum = function()\n {\n var i = 0;\n var rowNum = 0;\n for(i = 0; i < this.rowNum; i++)\n {\n var e = JSON.parse(this.matrix[i][0]);\n if(e.cellType == \"rowHeader\")\n {\n rowNum += 1;\n }\n }\n return rowNum;\n }\n\t\n\tthis.loadData = function(colNum, rowNum, currentColRWMethod, currentRowRWMethod, matrix)\n\t{\n\t\tthis.colNum = colNum;\n\t\tthis.rowNum = rowNum;\n\t\tthis.currentColRWMethod = currentColRWMethod;\n\t\tthis.currentRowRWMethod = currentRowRWMethod;\n\t\tthis.matrix = matrix;\n\t}\n\n this.initMatrix = function(x, y)\n {\n this.colNum = x + 2;\n this.rowNum = y + 2;\n var i = 0;\n var j = 0;\n this.matrix = new Array();\n for(i = 0; i < this.rowNum; i++)\n {\n this.matrix[i] = new Array();\n for(j = 0; j < this.colNum; j++)\n {\n var e = new ele()\n var res = true;\n if(i < 2 && j < 2)//the blank area\n {\n res = e.setEle(\"blank\", \"undefine\", \"\", \"\", \"NULL\", i, j);\n }\n else if(i == 0 && j >= 2)//colHeader\n {\n res = e.setEle(\"colHeader\", \"zifuchang\", \"\", \"\", \"col\"+(j-2).toString(), i, j);\n }\n else if(j == 0 && i >= 2)//rowHeader\n {\n res = e.setEle(\"rowHeader\", \"zifuchang\", \"\", \"\", \"row\"+(i-2).toString(), i, j);\n }\n else if(i == 1 && j >= 2)//colRW\n {\n res = e.setEle(\"colRW\", \"xiaoshu\", \"col\"+(j-2).toString(), \"\", \"0.00\", i, j);\n }\n else if(j == 1 && i >= 2)//rowRW\n {\n res = e.setEle(\"rowRW\", \"xiaoshu\", \"\", \"row\"+(i-2).toString(), \"0.00\", i, j);\n }\n else\n {\n res = e.setEle(\"data\", \"xiaoshu\", \"col\"+(j-2).toString(), \"row\"+(i-2).toString(), \"0.00\", i, j);\n }\n \n //var res \n if(false == res)\n {\n console.error(\"incorrect ele data\");\n return false;\n }\n else\n {\n var jsonStr = JSON.stringify(e);\n this.matrix[i][j] = jsonStr;\n //console.info(\"this.matrix[\",i,\"][\",j,\"] = \",this.matrix[i][j]);\n }\n }\n }\n return true;\n\n }\n\n this.initBlankMatrix = function(x, y)\n {\n this.colNum = x + 2;\n this.rowNum = y + 2;\n var i = 0;\n var j = 0;\n this.matrix = new Array();\n for(i = 0; i < this.rowNum; i++)\n {\n this.matrix[i] = new Array();\n for(j = 0; j < this.colNum; j++)\n {\n var e = new ele()\n var res = true;\n \n res = e.setEle(\"blank\", \"undefine\", \"\", \"\", \"NULL\", i, j);\n \n \n \n //var res \n if(false == res)\n {\n console.error(\"incorrect ele data\");\n return false;\n }\n else\n {\n var jsonStr = JSON.stringify(e);\n this.matrix[i][j] = jsonStr;\n //console.info(\"this.matrix[\",i,\"][\",j,\"] = \",this.matrix[i][j]);\n }\n }\n }\n return true;\n\n }\n\t\n\tthis.generateJsonData = function()\n\t{\n\t\tvar jsonFormatTable = JSON.stringify(this.matrix);\n\t\tconsole.info(\"********************************************\");\n\t\tconsole.info(jsonFormatTable);\n\t\tconsole.info(\"********************************************\");\n\t}\n\n\t/*\n this.modifyCell = function(rowNo, colNo, jsonStr)\n {\n this.matrix[rowNo][colNo] = jsonStr;\n return true;\n\n }\n\t*/\n\t\n\tthis.modifyPureData = function(rowNo, colNo, data, dataType)\n\t{\n\t\tif(rowNo < 2 || rowNo > this.rowNum)\n\t\t{\n\t\t\tconsole.error(\"incorrect rowNo\", rowNo);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(colNo < 2 || colNo > this.colNum)\n\t\t{\n\t\t\tconsole.error(\"incorrect colNo\", colNo);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(false == g_eleType.checkDataValide(data, dataType))\n\t\t{\n\t\t\tconsole.error(\"incorrect data\", data, \"unfit type\", dataType);\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tvar e = JSON.parse(this.matrix[rowNo][colNo]);\n\t\te.data = data;\n\t\tthis.matrix[rowNo][colNo] = JSON.stringify(e);\n\t\treturn true;\n\t\t\n\t\t\n\t\t\n\t}\n\t\n\tthis.modifyColumnHeader = function(colNo, newColName, dataType)//call by change column header\n\t{\n\t\tif(colNo < 2 || colNo > this.colNum)\n\t\t{\n\t\t\tconsole.error(\"incorrect colNo\", colNo);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(false == g_eleType.isRealDataTypeValide(dataType))\n {\n console.error(\"incorrect data type\", dataType);\n return false;\n }\n\t\t\n\t\tvar i = 0;\n\t\t\n \n\t\t\tfor(i = 0; i < this.rowNum; i++)\n\t\t\t{\n\t\t\t\tvar e = JSON.parse(this.matrix[i][colNo]);\n\t\t\t\tif(i == 0)//the column header line\n\t\t\t\t{\n\t\t\t\t\te.data = newColName;\n\t\t\t\t}\n\t\t\t\telse if(i == 1)//weight line\n\t\t\t\t{\n\t\t\t\t\t//do nothing\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\te.colHeaderName = newColName;\n\t\t\t\t\te.dataType = dataType;\n\t\t\t\t}\n\t\t\t\tthis.matrix[i][colNo] = JSON.stringify(e);\n\t\t\t}\n \n\t\treturn true;\n\t}\n\t\n\tthis.modifyRowHeader = function(rowNo, newRowName)//call by change row header\n\t{\n\t\tif(rowNo < 2 || rowNo > this.rowNum)\n\t\t{\n\t\t\tconsole.error(\"incorrect rowNo\", rowNo);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n\t\tvar i = 0;\n\t\t\n \n\t\t\tfor(i = 0; i < this.colNum; i++)\n\t\t\t{\n\t\t\t\tvar e = JSON.parse(this.matrix[rowNo][i]);\n\t\t\t\tif(i == 0)//the row header line\n\t\t\t\t{\n\t\t\t\t\te.data = newRowName;\n\t\t\t\t}\n\t\t\t\telse if(i == 1)//weight line\n\t\t\t\t{\n\t\t\t\t\t//do nothing\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\te.rowHeaderName = newRowName;\n\t\t\t\t}\n\t\t\t\tthis.matrix[rowNo][i] = JSON.stringify(e);\n\t\t\t}\n \n\t\treturn true;\n\t}\n\n this.moveCol = function(srcColNo, destColNo)\n {\n if(srcColNo < 2 || destColNo < 2)\n {\n console.error(\"moveCol, incorrect srcColNo:\", srcColNo, \"or destColNo:\", destColNo);\n return false;\n }\n var i = 0;\n var j = 0;\n var tempCol = [];\n for(i = 0; i < this.rowNum; i++)\n {\n tempCol[i] = this.matrix[i][srcColNo];\n }\n\n if(srcColNo < destColNo)\n {\n for(i = srcColNo; i < destColNo; i++)\n {\n for(j = 0; j < this.rowNum; j++)\n {\n this.matrix[j][i] = this.matrix[j][i + 1];\n }\n }\n }\n else\n {\n for(i = srcColNo; i > destColNo; i--)\n {\n for(j = 0; j < this.rowNum; j++)\n {\n this.matrix[j][i] = this.matrix[j][i - 1];\n }\n }\n }\n\n for(i = 0; i < this.rowNum; i++)\n {\n this.matrix[i][destColNo] = tempCol[i];\n }\n\n\n }\n\n\n this.moveRow = function(srcRowNo, destRowNo)\n {\n if(srcRowNo < 2 || destRowNo < 2)\n {\n console.error(\"moveRow, incorrect srcRowNo:\", srcRowNo, \"or destRowNo:\", destRowNo);\n return false;\n }\n var i = 0;\n var j = 0;\n var tempRow = [];\n for(i = 0; i < this.colNum; i++)\n {\n tempRow[i] = this.matrix[srcRowNo][i];\n }\n\n if(srcRowNo < destRowNo)\n {\n for(i = srcRowNo; i < destRowNo; i++)\n {\n for(j = 0; j < this.colNum; j++)\n {\n this.matrix[i][j] = this.matrix[i + 1][j];\n }\n }\n }\n else\n {\n for(i = srcRowNo; i > destRowNo; i--)\n {\n for(j = 0; j < this.colNum; j++)\n {\n this.matrix[i][j] = this.matrix[i - 1][j];\n }\n }\n }\n\n for(i = 0; i < this.colNum; i++)\n {\n this.matrix[destRowNo][i] = tempRow[i];\n }\n\n\n }\n\n\n this.printMatrix = function()\n {\n var i = 0;\n var j = 0;\n for(i = 0; i < this.rowNum; i++)\n {\n for(j = 0; j < this.colNum; j++)\n {\n console.info(\"matrix[\", i, \"][\", j, \"] = \", this.matrix[i][j]);\n }\n }\n }\n\n this.getShowPureDataMatrix = function()\n {\n console.info(\"entry getShowPureDataMatrix\");\n var i = 0;\n var j = 0;\n\t\tthis.setMatrixColRW();\n\t\tthis.setMatrixRowRW();\n this.setPurifyResult();\n var dataMatrix = new Array();\n for(i = 0; i < this.rowNum; i++)\n {\n dataMatrix[i] = new Array();\n for(j = 0; j < this.colNum; j++)\n {\n var e = JSON.parse(this.matrix[i][j]);\n dataMatrix[i][j] = e.data;\n }\n }\n this.clearResData();\n return dataMatrix;\n }\n\t\n\tthis.getUsefulPureDataMatrix = function()\n {\n /*\n var i = 0;\n var j = 0;\n\n var usefulDataMatrix = new Array();\n for(i = 0; i < this.rowNum - 2 ; i++)\n {\n usefulDataMatrix[i] = new Array();\n for(j = 0; j < this.colNum - 2; j++)\n {\n var e = JSON.parse(this.matrix[i + 2][j + 2]);\n usefulDataMatrix[i][j] = e.data;\n }\n }\n return usefulDataMatrix;\n */\n\n var i = 0;\n var j = 0;\n\n var usefulDataMatrix = new Array();\n for(i = 0; i < this.getPureDataRowNum() ; i++)\n {\n usefulDataMatrix[i] = new Array();\n for(j = 0; j < this.getPureDataColNum(); j++)\n {\n var e = JSON.parse(this.matrix[i + 2][j + 2]);\n usefulDataMatrix[i][j] = e.data;\n }\n }\n return usefulDataMatrix;\n }\n\n this.isColHeaderNameExist = function(colHeaderName)\n {\n var i = 0;\n for(i = 2; i < this.colNum; i++)\n {\n var e = JSON.parse(this.matrix[0][i]);\n if(colHeaderName == e.data)//for colHeader cell, colHeaderName store in data field\n {\n return true;\n }\n }\n return false;\n }\n\n this.isRowHeaderNameExist = function(rowHeaderName)\n {\n var i = 0;\n for(i = 2; i < this.rowNum; i++)\n {\n var e = JSON.parse(this.matrix[i][0]);\n if(rowHeaderName == e.data)//for rowHeader cell, rowHeaderName store in data field\n {\n return true;\n }\n }\n return false;\n }\n\n\n this.copyCurrentMatrix = function()\n {\n var copyMatrix = this.matrix;\n return copyMatrix;\n }\n\n this.copyCurrentMatrix2 = function()\n {\n var i = 0;\n var j = 0;\n var copyMatrix;\n copyMatrix = new Array();\n for(i = 0; i < this.getPureDataRowNum() + 2; i++)\n {\n copyMatrix[i] = new Array();\n for(j = 0; j < this.getPureDataColNum() + 2; j++)\n {\n copyMatrix[i][j] = this.matrix[i][j];\n }\n }\n return copyMatrix;\n }\n\n this.getColHeaderNameByColNo = function(colNo)\n {\n var e = JSON.parse(this.matrix[0][colNo]);\n return e.data;\n }\n\n this.getRowHeaderNameByRowNo = function(rowNo)\n {\n var e = JSON.parse(this.matrix[rowNo][0]);\n return e.data;\n }\n\n this.getDataTypeByColNo= function(colNo, copyMatrix)//put copyMatrix here, since row2 could be just the insert row\n {\n var e = JSON.parse(copyMatrix[2][colNo]);\n return e.dataType;\n }\n\n\n this.insertCol = function(colNo, colHeaderName, dataType)\n {\n console.info(\"--------insert col colNo:\", colNo, \"colHeaderName:\", colHeaderName, \"dataType:\", dataType, \"------------------\");\n if(this.colNum <= 2 || this.rowNum <= 2)\n {\n console.error(\"matrix is not init yet\");\n return false;\n }\n if(colNo < 2 || colNo > this.colNum)\n {\n console.error(\"incorrect colNo\", colNo);\n return false;\n }\n if(true == this.isColHeaderNameExist(colHeaderName))\n {\n console.error(\"colHeaderName \", colHeaderName, \"already exist\");\n return false;\n }\n if(false == g_eleType.isRealDataTypeValide(dataType))\n {\n console.error(\"incorrect data type\", dataType);\n return false;\n }\n\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.colNum;\n var oldRowNum = this.rowNum;\n \n this.initMatrix(oldColNum + 1 - 2, oldRowNum - 2);\n\n for(i = 0; i < this.rowNum; i++)\n {\n\n for(j = 0; j < this.colNum; j++)\n {\n \n if(j > colNo)\n {\n this.matrix[i][j] = copyMatrix[i][j - 1];\n }\n else if(j < colNo)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n else\n {\n //console.info(\"tttttttttttttttttttttttttttttttt\");\n var e = new ele();\n if(i == 0)//header\n {\n res = e.setEle(\"colHeader\", \"zifuchang\", \"\", \"\", colHeaderName, i,j);\n }\n else if(i == 1)//colRW\n {\n res = e.setEle(\"colRW\", \"xiaoshu\", colHeaderName, \"\", \"0.01\", i, j);\n }\n else//data\n {\n console.info(\"here.....\");\n res = e.setEle(\"data\", dataType, colHeaderName, this.getRowHeaderNameByRowNo(i), \"0.02\", i, j);\n }\n\n //console.info(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\");\n\n if(false == res)\n {\n console.info(\"incorrect new insert data\");\n return false;\n }\n this.matrix[i][j] = JSON.stringify(e);\n\n }\n }\n }\n return true;\n \n }\n\n\n\n\n this.getCellDataType = function(rowNo, colNo)\n {\n if((rowNo >= this.rowNum) || (colNo >= this.colNum))\n {\n return;\n }\n //console.info(\"rowNo = \", rowNo, \"colNo = \", colNo);\n var e = JSON.parse(this.matrix[rowNo][colNo]);\n return e.cellType;\n }\n\n this.appendResData = function(rowAppendResList, colAppendResList)\n {\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.getPureDataColNum() + 2;\n var oldRowNum = this.getPureDataRowNum() + 2;\n var rowAppendLength = rowAppendResList.length;\n var colAppendLength = colAppendResList.length;\n //var rowAppendLength = 2;\n //var colAppendLength = 2;\n\n\n console.info(\"entry appendRowResData rowAppendLength = \", rowAppendLength, \"colAppendLength = \", colAppendLength, \n \"oldColnum = \", oldColNum, \"oldRowNum = \", oldRowNum);\n \n\n //this.initMatrix(oldColNum + colAppendLength - 2, oldRowNum + rowAppendLength - 2);\n this.initBlankMatrix(oldColNum + colAppendLength - 2, oldRowNum + rowAppendLength - 2);\n \n for(i = 0; i < this.rowNum - rowAppendLength; i++)\n {\n for(j = 0; j < this.colNum - colAppendLength; j++)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n }\n console.info(\"this.rowNum = \", this.rowNum, \"this.colNum = \", this.colNum);\n\n\n /* \n for(i = 0; i < rowAppendLength; i++)\n {\n var methodNameEle = new ele();\n var rowRWEle = new ele();\n var insertRowNum = this.rowNum - rowAppendLength + i;//default\n //var methodName = rowAppendResList[i].name;\n var methodName = \"ttt\";\n //var dataList = rowAppendResList[i].list;\n console.info(\"insertRowNum = \", insertRowNum, \"methodName = \", methodName);\n \n res = methodNameEle.setEle(\"rowResMethod\", \"zifuchang\", \"\", \"\", methodName, insertRowNum, 0);\n this.matrix[insertRowNum][0] = JSON.stringify(methodNameEle);\n res = rowRWEle.setEle(\"blank\", \"zifuchang\", \"\", \"\", \"\", insertRowNum, 1);\n this.matrix[insertRowNum][1] = JSON.stringify(rowRWEle);\n \n \n for(j = 2; j < oldColNum; j++)\n {\n var e = new ele();\n res = e.setEle(\"rowRes\", \"zifuchang\", \"\", \"\", 33, insertRowNum, j);\n this.matrix[insertRowNum][j] = JSON.stringify(e);\n }\n \n \n }\n\n for(i = 0; i < colAppendLength; i++)\n {\n var methodNameEle = new ele();\n var colRWEle = new ele();\n var insertColNum = this.colNum - colAppendLength + i;//default\n //var methodName = colAppendResList[i].name;\n var methodName = \"kkk\";\n //var dataList = colAppendResList[i].list;\n console.info(\"insertColNum = \", insertColNum, \"methodName = \", methodName);\n //this.setEle = function(cellType, dataType, colHeaderName, rowHeaderName, data, i, j)\n res = methodNameEle.setEle(\"colResMethod\", \"zifuchang\", \"\", \"\", methodName, 0, insertColNum);\n this.matrix[0][insertColNum] = JSON.stringify(methodNameEle);\n res = colRWEle.setEle(\"blank\", \"zifuchang\", \"\", \"\", \"\", 1, insertColNum);\n this.matrix[1][insertColNum] = JSON.stringify(colRWEle);\n \n \n for(j = 2; j < oldRowNum; j++)\n {\n var e = new ele();\n res = e.setEle(\"colRes\", \"zifuchang\", \"\", \"\", 44, j, insertColNum);\n this.matrix[j][insertColNum] = JSON.stringify(e);\n }\n \n \n }\n */\n\n\n \n for(i = 0; i < rowAppendLength; i++)\n {\n var methodNameEle = new ele();\n var rowRWEle = new ele();\n var insertRowNum = this.rowNum - rowAppendLength + i;//default\n var methodName = rowAppendResList[i].name;\n var dataList = rowAppendResList[i].list;\n console.info(\"insertRowNum = \", insertRowNum, \"methodName = \", methodName);\n \n res = methodNameEle.setEle(\"rowResMethod\", \"zifuchang\", \"\", \"\", methodName, insertRowNum, 0);\n this.matrix[insertRowNum][0] = JSON.stringify(methodNameEle);\n res = rowRWEle.setEle(\"blank\", \"zifuchang\", \"\", \"\", \"\", insertRowNum, 1);\n this.matrix[insertRowNum][1] = JSON.stringify(rowRWEle);\n \n \n for(j = 2; j < oldColNum; j++)\n {\n var e = new ele();\n res = e.setEle(\"rowRes\", \"zifuchang\", \"\", \"\", dataList[j - 2], insertRowNum, j);\n this.matrix[insertRowNum][j] = JSON.stringify(e);\n }\n \n }\n\n for(i = 0; i < colAppendLength; i++)\n {\n var methodNameEle = new ele();\n var colRWEle = new ele();\n var insertColNum = this.colNum - colAppendLength + i;//default\n var methodName = colAppendResList[i].name;\n var dataList = colAppendResList[i].list;\n console.info(\"insertColNum = \", insertColNum, \"methodName = \", methodName);\n //this.setEle = function(cellType, dataType, colHeaderName, rowHeaderName, data, i, j)\n res = methodNameEle.setEle(\"colResMethod\", \"zifuchang\", \"\", \"\", methodName, 0, insertColNum);\n this.matrix[0][insertColNum] = JSON.stringify(methodNameEle);\n res = colRWEle.setEle(\"blank\", \"zifuchang\", \"\", \"\", \"\", 1, insertColNum);\n this.matrix[1][insertColNum] = JSON.stringify(colRWEle);\n \n \n for(j = 2; j < oldRowNum; j++)\n {\n var e = new ele();\n res = e.setEle(\"colRes\", \"zifuchang\", \"\", \"\", dataList[j - 2], j, insertColNum);\n this.matrix[j][insertColNum] = JSON.stringify(e);\n }\n \n }\n \n \n \n }\n\n this.clearResData = function()\n {\n var appendColNum = 0;\n var appendRowNum = 0;\n\n console.info(\"entry clearResData purifyMethodMethod length = \", this.currentPurifyMethod.length);\n \n for(i = 0; i < this.currentPurifyMethod.length; i++)\n {\n methodEle = this.currentPurifyMethod[i];\n //var method = g_purifyData.getPurifyDataMethod(methodEle.method);\n \n \n //if(null != method)\n //{\n if(\"纵向\" == methodEle.direct)\n {\n appendRowNum += 1;\n //this.deleteRow(this.rowNum - 2 - 1);\n }\n else\n {\n appendColNum += 1;\n //this.deleteCol(this.colNum - 2 - 1);\n }\n //}\n //console.info(\"rowAppendResList = \", rowAppendResList);\n //console.info(\"colAppendResList = \", colAppendResList);\n\n }\n console.info(\"delete appendRowNum = \", appendRowNum, \"delete appendColNum = \", appendColNum);\n \n }\n\n\n this.insertRow = function(rowNo, rowHeaderName)\n {\n console.info(\"--------insert row rowNo:\", rowNo, \"rowHeaderName:\", rowHeaderName, \"------------------\");\n if(this.colNum <= 2 || this.rowNum <= 2)\n {\n console.error(\"matrix is not init yet\");\n return false;\n }\n if(rowNo < 2 || rowNo >= this.rowNum)\n {\n console.error(\"incorrect rowNo\", rowNo);\n return false;\n }\n if(true == this.isRowHeaderNameExist(rowHeaderName))\n {\n console.error(\"rowHeaderName \", rowHeaderName, \"already exist\");\n return false;\n }\n\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.colNum;\n var oldRowNum = this.rowNum;\n \n this.initMatrix(oldColNum - 2, oldRowNum + 1 - 2);\n\n for(i = 0; i < this.rowNum; i++)\n {\n for(j = 0; j < this.colNum; j++)\n {\n if(i > rowNo)\n {\n this.matrix[i][j] = copyMatrix[i - 1][j];\n }\n else if(i < rowNo)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n else\n {\n //console.info(\"tttttttttttttttttttttttttttttttt\");\n var e = new ele();\n if(j == 0)//header\n {\n res = e.setEle(\"rowHeader\", \"zifuchang\", \"\", \"\", rowHeaderName, i,j);\n }\n else if(j == 1)//rowRW\n {\n res = e.setEle(\"rowRW\", \"xiaoshu\", \"\", rowHeaderName, \"0.01\", i, j);\n }\n else//data\n {\n res = e.setEle(\"data\", this.getDataTypeByColNo(j, copyMatrix), \n this.getColHeaderNameByColNo(j), rowHeaderName, \"0.02\", i, j);\n }\n //console.info(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\");\n\n if(false == res)\n {\n console.info(\"incorrect new insert data\");\n return false;\n }\n this.matrix[i][j] = JSON.stringify(e);\n\n }\n }\n }\n return true;\n \n }\n\n\n this.deleteCol = function(colNo)\n { \n console.info(\"----------------deleteCol colNo: \", colNo, \"----------------------\");\n if(this.colNum <= 2 || this.rowNum <= 2)\n {\n console.error(\"matrix is not init yet\");\n return false;\n }\n\n\n if(colNo < 2 || colNo > this.colNum)\n {\n console.error(\"incorrect colNo\", colNo);\n return false;\n }\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.colNum;\n var oldRowNum = this.rowNum;\n var i = 0;\n var j = 0;\n\n this.initMatrix(oldColNum - 1 - 2, oldRowNum - 2);\n\n for(i = 0; i < this.rowNum; i++)\n {\n for(j = 0; j < oldColNum; j++)\n {\n\n if(j > colNo)\n {\n this.matrix[i][j - 1] = copyMatrix[i][j];\n }\n else if(j < colNo)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n else\n {\n //do nothing\n }\n }\n }\n return true;\n\n }\n\n this.deleteRow = function(rowNo)\n { \n\n console.info(\"----------------deleteRow rowNo: \", rowNo, \"----------------------\");\n if(this.colNum <= 2 || this.rowNum <= 2)\n {\n console.error(\"matrix is not init yet\");\n return false;\n }\n\n\n if(rowNo < 2 || rowNo > this.rowNum)\n {\n console.error(\"incorrect rowNo\", rowNo);\n return false;\n }\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.colNum;\n var oldRowNum = this.rowNum;\n var i = 0;\n var j = 0;\n\n\n this.initMatrix(oldColNum - 2, oldRowNum - 1 - 2);\n\n for(i = 0; i < oldRowNum; i++)\n {\n for(j = 0; j < this.colNum; j++)\n {\n if(i > rowNo)\n {\n this.matrix[i - 1][j] = copyMatrix[i][j];\n }\n else if(i < rowNo)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n else\n {\n //do nothing\n }\n }\n }\n return true;\n\n }\n\n this.getCellByColNoAndRowNo = function(rowNo, colNo)\n {\n if(rowNo >= this.rowNum || colNo >= this.colNum)\n {\n return \"\";\n }\n\n return this.matrix[rowNo][colNo];\n\n }\n\n\tthis.getColumnNum = function()\n\t{\n\t\treturn this.colNum;\n\t}\n\t\n\tthis.getRowNum = function()\n\t{\n\t\treturn this.rowNum;\n\t}\n\t\n\tthis.setCurrentColRWMethod = function(method)\n\t{\n\t\tthis.currentColRWMethod = method;\n\t}\n\t\n\tthis.setCurrentRowRWMethod = function(method)\n\t{\n\t\tthis.currentRowRWMethod = method;\n\t}\n\t\n\tthis.getCurrentColRWMethod = function()\n\t{\n\t\treturn this.currentColRWMethod;\n\t}\n\t\n\tthis.getCurrentRowRWMethod = function()\n\t{\n\t\treturn this.currentRowRWMethod;\n\t}\n\t\n\tthis.setMatrixColRW = function()\n {\n\t\tconsole.info(\"entry setMatrixColRW : \", this.colNum);\n var methodName = this.getCurrentColRWMethod();\n\t\tvar g_rightWeight = new rightWeight();\n\t\tvar method = g_rightWeight.getRightWeightMethod(methodName);\n\t\tif(null != method)\n\t\t{\n\t\t\tvar colRwArr = method.method(this.getUsefulPureDataMatrix, this.getPureDataColNum(), this.getPureDataRowNum(), 1);\n\t\t\tconsole.info(\"colRwArr :\", colRwArr);\n\t\t\tvar i = 0;\n /*\n\t\t\tfor (i = 2; i < this.colNum; i++)\n\t\t\t{\n\t\t\t\tvar e = new ele()\n\t\t\t\tvar res = e.setEle(\"colRW\", \"xiaoshu\", \n\t\t\t\t\tthis.getColHeaderNameByColNo(i), \"\", colRwArr[i - 2].toString(), 1, i);\n\t\t\t\t//console.info(\"RW: e = \", e);\n\t\t\t\tvar jsonStr = JSON.stringify(e);\n this.matrix[1][i] = jsonStr;\n\t\t\t}\n */\n for (i = 0; i < this.getPureDataColNum(); i++)\n {\n var e = new ele()\n var res = e.setEle(\"colRW\", \"xiaoshu\", \n this.getColHeaderNameByColNo(i + 2), \"\", colRwArr[i].toString(), 1, i + 2);\n //console.info(\"RW: e = \", e);\n var jsonStr = JSON.stringify(e);\n this.matrix[1][i + 2] = jsonStr;\n }\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconsole.error(\"setMatrixColRW error\");\n\t\t\treturn false;\n\t\t}\n\n }\n \n this.setMatrixRowRW = function()\n {\n\t\tconsole.info(\"entry setMatrixRowRW : \", this.rowNum);\n var methodName = this.getCurrentRowRWMethod();\n\t\tvar g_rightWeight = new rightWeight();\n\t\tvar method = g_rightWeight.getRightWeightMethod(methodName);\n\t\tif(null != method)\n\t\t{\n\t\t\tvar rowRwArr = method.method(this.getUsefulPureDataMatrix, this.getPureDataColNum(), this.getPureDataRowNum(), 0);\n\t\t\tconsole.info(\"rowRwArr :\", rowRwArr);\n\t\t\tvar i = 0;\n /*\n\t\t\tfor (i = 2; i < this.rowNum; i++)\n\t\t\t{\n\t\t\t\tvar e = new ele()\n\t\t\t\tvar res = e.setEle(\"rowRW\", \"xiaoshu\", \n\t\t\t\t\t\"\", this.getRowHeaderNameByRowNo(i), rowRwArr[i - 2].toString(), i, 1);\n\t\t\t\t//console.info(\"RW: e = \", e);\n\t\t\t\tvar jsonStr = JSON.stringify(e);\n this.matrix[i][1] = jsonStr;\n\t\t\t}\n */\n for (i = 0; i < this.getPureDataRowNum(); i++)\n {\n var e = new ele()\n var res = e.setEle(\"rowRW\", \"xiaoshu\", \n \"\", this.getRowHeaderNameByRowNo(i + 2), rowRwArr[i].toString(), i + 2, 1);\n //console.info(\"RW: e = \", e);\n var jsonStr = JSON.stringify(e);\n this.matrix[i + 2][1] = jsonStr;\n }\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconsole.error(\"setMatrixRowRW error\");\n\t\t\treturn false;\n\t\t}\n\n }\n\n\n}", "function MatrixMultiply (a, b)\n {\n\t // note most of matrix work should be done on the gpu where possible. - 16/03/2020 - not sure if this is right\n\t // http://www.intmath.com/matrices-determinants/matrix-multiplication-flash.php\n\n\t //\tm[0] m[4] m[ 8] m[12]\t\tnote the layout (column major -> its a bit weird really...).\n\t //\tm[1] m[5] m[ 9] m[13]\n\t //\tm[2] m[6] m[10] m[14]\n\t // \tm[3] m[7] m[11] m[15]\n\t\n\tvar tmp = new Array(16);\n\t\n\tvar r;\n\n\tvar c;\n\tvar i;\n\n\ti = 0;\n\tfor (r = 0; r < 4; r++)\n\t{\n\t\tfor (c = 0; c < 16; c += 4)\n\t\t{\n\t\t\ttmp[c+r] = (a[r] * b[c]) + (a[r+4]*b[c+1]) + (a[r+8]*b[c+2]) + (a[r+12]*b[c+3]);\n\t\t}\n\t}\n\n\treturn tmp;\n}", "function repmat (mat, num1, num2) {\n var temp = mat\n if (num1 === 1) {\n var temp1 = mat\n } else {\n // Here, generate n copies of A in the row dimension\n for (let i = 0; i < num1 - 1; i++) {\n temp1 = math.concat(temp, mat, 0)\n }\n }\n var temp2 = temp1\n if (num2 === 1) {\n return mat\n } else {\n // Here, generate n copies of A in the column dimension\n for (let j = 0; j < num2 - 1; j++) {\n temp2 = math.concat(temp2, temp1, 1)\n }\n }\n return temp2\n}", "Multiply(values) {\n let vec = new VecX(values);\n while (vec.size < this.size) {\n vec.values.push(vec.values[0]);\n }\n ;\n this.values = this.values.map((val, index) => val * vec.values[index]);\n return this;\n }", "function matrixMultiply (array1, array2){\n \n var fistOperation = (array1[0][0] * array2[0][0]) + (array1[0][1] * array2[1][0] )\n var secondOperation = (array1[0][0] * array2[0][1]) + (array1[0][1] * array2[1][1])\n var thirdOperation = (array1[1][0] * array2[0][0]) + (array1[1][1] * array2[1][0])\n var lastOperation = (array1[1][0] * array2[0][1]) + (array1[1][1] * array2[1][1])\n\n return [[fistOperation, secondOperation], [thirdOperation, lastOperation]]\n}", "testMul() {\n console.info('test Matrix4.mul()')\n const a = [\n 1, 2, 3, 4, \n 5, 6, 7, 8,\n 9, 10, 11, 12,\n 13, 14, 15, 16\n ]\n const b = [\n 17, 18, 19, 20,\n 21, 22, 23, 24,\n 25, 26, 27, 28,\n 29, 30, 31, 32\n ]\n const expected = [\n 250, 260, 270, 280,\n 618, 644, 670, 696,\n 986, 1028, 1070, 1112,\n 1354, 1412, 1470, 1528\n ]\n const m = new Matrix4(a)\n m.mul(b)\n const actual = m.elements\n this.assertIdentical(actual, expected)\n }", "function multiply(matrix1, matrix2) {\n var a00 = matrix1[0 * 3 + 0];\n var a01 = matrix1[0 * 3 + 1];\n var a02 = matrix1[0 * 3 + 2];\n var a10 = matrix1[1 * 3 + 0];\n var a11 = matrix1[1 * 3 + 1];\n var a12 = matrix1[1 * 3 + 2];\n var a20 = matrix1[2 * 3 + 0];\n var a21 = matrix1[2 * 3 + 1];\n var a22 = matrix1[2 * 3 + 2];\n var b00 = matrix2[0 * 3 + 0];\n var b01 = matrix2[0 * 3 + 1];\n var b02 = matrix2[0 * 3 + 2];\n var b10 = matrix2[1 * 3 + 0];\n var b11 = matrix2[1 * 3 + 1];\n var b12 = matrix2[1 * 3 + 2];\n var b20 = matrix2[2 * 3 + 0];\n var b21 = matrix2[2 * 3 + 1];\n var b22 = matrix2[2 * 3 + 2];\n return [b00 * a00 + b01 * a10 + b02 * a20, b00 * a01 + b01 * a11 + b02 * a21, b00 * a02 + b01 * a12 + b02 * a22, b10 * a00 + b11 * a10 + b12 * a20, b10 * a01 + b11 * a11 + b12 * a21, b10 * a02 + b11 * a12 + b12 * a22, b20 * a00 + b21 * a10 + b22 * a20, b20 * a01 + b21 * a11 + b22 * a21, b20 * a02 + b21 * a12 + b22 * a22];\n}", "function matrix_multiply(m1, m2) {\n var result = [];\n for (var i = 0; i < m1.length; i++) {\n result[i] = [];\n for (var j = 0; j < m2[0].length; j++) {\n var sum = 0;\n for (var k = 0; k < m1[0].length; k++) {\n sum += m1[i][k] * m2[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n}", "function multiplyAll(arr) {\n var product = 1;\n for (var i = 0; i < arr.length; i++) {\n for (var k = 0; k < arr[i].length; k++) {\n product *= arr[i][k];\n }\n }\n return product;\n}", "product(gaussian) {\n this.eta.add(gaussian.eta);\n this.lam.add(gaussian.lam);\n }", "function ij_elem_mult(i, j) {\n // not using get_row and get_col bcs slightly diff here\n const row_of_mat1 = list_ref(mat1, i);\n const col_of_mat2 = map(rows => list_ref(rows, j), mat2);\n const multiplied = list_op((x, y) => x * y, row_of_mat1, col_of_mat2);\n return accumulate((x,y) => x + y, 0, multiplied);\n }", "testMulIdentity() {\n console.info(\"Test: Matrix3.mul() -- Identity matrix\")\n const firstMatrix = [\n 1, 4, 8,\n 6, 4, 2,\n 7, 8, 0,\n ]\n\n const secondMatrix = [\n 1, 0, 0,\n 0, 1, 0,\n 0, 0, 1,\n ]\n\n const expected = [\n 1, 4, 8,\n 6, 4, 2,\n 7, 8, 0,\n ]\n\n const m = new Matrix3(firstMatrix)\n m.mul(secondMatrix)\n const actual = m.items\n this.assertIdentical(actual, expected)\n }", "function clone()\n{\n\tvar mat = new Matrix(this.size.x, this.size.y);\n\tvar i, j;\n\n\tfor(i = 0; i < this.size.x; i++)\n\t{\n\t\tfor(j = 0; j < this.size.y; j++)\n\t\t{\n\t\t\tmat.matrix[i][j] = this.matrix[i][j];\n\t\t}\n\t}\n\n\treturn mat;\n}", "function manualProductArray(arr) {\n const newArray = [];\n newArray.push(arr[1] * arr[2] * arr[3] * arr[4]);\n newArray.push(arr[0] * arr[2] * arr[3] * arr[4]);\n newArray.push(arr[1] * arr[0] * arr[3] * arr[4]);\n newArray.push(arr[1] * arr[2] * arr[0] * arr[4]);\n newArray.push(arr[1] * arr[2] * arr[3] * arr[0]);\n return console.log(newArray);\n}", "function matrix(args) {\n // primesMulitplication will contain array of arrays which makes up the whole grid\n let primesMultiplication = []\n primesMultiplication.push(args) //args is equal to this.rimes and makes the first row of the matrix\n\n // start at 1st element of primesArray as 0 element will not be used to make another row.\n for (let i = 1; i < args.length; i++) {\n // this creates an empty array for each row required for the matrix\n let multiply = []\n\n for (let j = 0; j < args.length; j++) {\n // takes each element(i) of args and multiplies by every element(j) of args pushing into the array reated above\n multiply.push(args[i] * args[j])\n }\n primesMultiplication.push(multiply)\n }\n // console.log(\"primesMultiplication\", primesMultiplication);\n\n primesMultiplication[0][0] = \"\" // empty string as 1 is not a prime number and no longer needed\n return primesMultiplication\n}", "function matrix(args) {\n // primesMulitplication will contain array of arrays which makes up the whole grid\n let primesMultiplication = []\n primesMultiplication.push(args) //args is equal to this.rimes and makes the first row of the matrix\n\n // start at 1st element of primesArray as 0 element will not be used to make another row.\n for (let i = 1; i < args.length; i++) {\n // this creates an empty array for each row required for the matrix\n let multiply = []\n\n for (let j = 0; j < args.length; j++) {\n // takes each element(i) of args and multiplies by every element(j) of args pushing into the array reated above\n multiply.push(args[i] * args[j])\n }\n primesMultiplication.push(multiply)\n }\n // console.log(\"primesMultiplication\", primesMultiplication);\n\n primesMultiplication[0][0] = \"\" // empty string as 1 is not a prime number and no longer needed\n return primesMultiplication\n}", "multiply(number) {\r\n return new Vector(...new Array(this.getDimensions()).fill(undefined).map((e, i) => this.values[i] * number));\r\n }", "multNormalMatrix(matrix) {\n let x = this[0];\n let y = this[1];\n let z = this[2];\n\n let S = new J3DIMatrix4(matrix);\n S.invert();\n S.transpose();\n\n this[0] = S.$matrix.m41 + x * S.$matrix.m11 + y * S.$matrix.m21 + z * S.$matrix.m31;\n this[1] = S.$matrix.m42 + x * S.$matrix.m12 + y * S.$matrix.m22 + z * S.$matrix.m32;\n this[2] = S.$matrix.m43 + x * S.$matrix.m13 + y * S.$matrix.m23 + z * S.$matrix.m33;\n let w = S.$matrix.m44 + x * S.$matrix.m14 + y * S.$matrix.m24 + z * S.$matrix.m34;\n if (w != 1 && w != 0) {\n this[0] /= w;\n this[1] /= w;\n this[2] /= w;\n }\n\n return this;\n }", "function arrayOfProducts(array) {\n\nlet newArr = new Array(array.length).fill(1)\n\nfor(let i=0; i< array.length; i++){\n\tlet value = 1\n\t\t\n\t\tfor(let j=0; j < array.length; j++){\n\t\t\tif(i === j) continue\n\t\t\t\n\t\t\tvalue *= array[j]\n\t\t}\n\t\n\tnewArr[i] = value\n}\n\nreturn newArr\n\t\n}", "function _assignment() {\r\n let equation, new_equation, children, num_children;\r\n let j, op, op_type, m1, m2, result, result_element, matrix_element;\r\n let last_child, delete_button;\r\n\r\n equation = element.parentNode;\r\n\r\n // Create a new equation to perform the calculations on.\r\n new_equation = $(equation).clone();\r\n children = $(new_equation).children();\r\n num_children = children.size();\r\n\r\n // Make sure we have at least two matrices and one operator\r\n if (num_children < 3) {\r\n return;\r\n }\r\n\r\n j = 1;\r\n while (j < num_children - 2) {\r\n op = children[j];\r\n if ($(op).attr('class') === 'matrix_operator') {\r\n\r\n op_type = op.innerText.trim();\r\n if (op_type === '*') {\r\n if ($(children[j + 1]).attr('class') === 'matrix_table' &&\r\n $(children[j - 1]).attr('class') === 'matrix_table') {\r\n m1 = _getMatrix(children[j - 1]);\r\n m2 = _getMatrix(children[j + 1]);\r\n result = _matrixMultiply(m1, m2);\r\n result_element = _buildHTMLmatrix(result, '-', '-');\r\n matrix_element = $.parseHTML(result_element);\r\n _reduceMatrixTerms(matrix_element[0]);\r\n\r\n $(matrix_element[0]).insertAfter(children[j + 1]);\r\n\r\n $(children[j + 1]).remove();\r\n $(children[j]).remove();\r\n $(children[j - 1]).remove();\r\n\r\n j = j-1;\r\n children = $(new_equation).children();\r\n num_children = children.size();\r\n }\r\n }\r\n }\r\n j = j + 1;\r\n }\r\n\r\n\r\n last_child = children[num_children-1];\r\n if ($(last_child).attr(\"class\") !== 'matrix_column') {\r\n // Add delete button to the end\r\n delete_button = $.parseHTML(\"<span class='matrix_column'>\" +\r\n \"<button onclick='Matrixeq_directive(this, \\\"delete\\\");'>X</button>\" +\r\n \"</span>\");\r\n $(delete_button).insertAfter(last_child)\r\n }\r\n\r\n $(new_equation).insertAfter(equation);\r\n }", "function multMatrix(m) {\n modelView = mult(modelView, m);\n}", "function multMatrix(m) {\n modelView = mult(modelView, m);\n}", "function multiply_matrix(M,N){\n var result = new Array(16);\n var index = 0;\n //Go through M \n for (var i=0; i < 4; i++){\n var vec1 = M.slice(0+i*4,4+i*4);\n vec1 = [ M[i], M[i+4], M[i+8], M[i+12]];\n //Go through N\n for (var j=0; j < 4; j++){\n var vec2 = [ N[j], N[j+4], N[j+8], N[j+12]];\n vec2 = N.slice(0+j*4,4+j*4);\n result[index]= dot(vec1,vec2);\n index++;\n }\n }\n return transpose(result);\n\n}", "_initializeMatrix() {\n const row = Array(this.width).fill(0);\n this.matrix = Array(this.height).fill(row.slice(0));\n }", "function mvPushMatrix() {\r\n var copy = mat4.clone(mvMatrix);\r\n mvMatrixStack.push(copy);\r\n}", "function mvPushMatrix() {\r\n var copy = mat4.clone(mvMatrix);\r\n mvMatrixStack.push(copy);\r\n}", "function mvPushMatrix() {\r\n var copy = mat4.clone(mvMatrix);\r\n mvMatrixStack.push(copy);\r\n}", "reset() {\n for (let i = 0, l = this.matrix.length; i !== l; i++) {\n this.matrix[i] = 0\n }\n }", "_setQProd(qr, qa, qb) {\nvar i, k, rc, rd, re, va, vb, wa, wb;\nva = [qa[0], qa[1], qa[2]];\nvb = [qb[0], qb[1], qb[2]];\nwa = qa[3];\nwb = qb[3];\nqr[3] = (wa * wb) - (va[0] * vb[0] + va[1] * vb[1] + va[2] * vb[2]);\nrc = [wa * vb[0], wa * vb[1], wa * vb[2]];\nrd = [wb * va[0], wb * va[1], wb * va[2]];\nre = [va[1] * vb[2] - va[2] * vb[1], va[2] * vb[0] - va[0] * vb[2], va[0] * vb[1] - va[1] * vb[0]];\nfor (i = k = 0; k < 3; i = ++k) {\nqr[i] = rc[i] + rd[i] + re[i];\n}\nreturn void 0;\n}", "function multiply(M1, M2) {\n // prep\n var M = [];\n var dims = [M1.length, M1[0].length, M2.length, M2[0].length];\n // work\n for (var r=0, c; r<dims[0]; r++) {\n M[r] = [];\n var _row = row(M1, r);\n for (c=0; c<dims[3]; c++) {\n var _col = col(M2,c);\n var reducer = (a,v,i) => a + _col[i]*v;\n M[r][c] = _row.reduce(reducer, 0);\n }\n }\n return M;\n}", "apply() {\n this.scene.multMatrix(this.transfMatrix);\n }", "clearMatrix() {\n\t\tthis.matrix = [];\n\n\t\tfor ( let y = 0; y < this.height; y++ ) {\n\t\t\tthis.matrix.push( [] );\n\n\t\t\tfor ( let x = 0; x < this.width; x++ ) {\n\t\t\t\tthis.matrix[ y ].push( {\n\t\t\t\t\tr: 0,\n\t\t\t\t\tg: 0,\n\t\t\t\t\tb: 0,\n\t\t\t\t\ta: 1\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t}", "drawMatrix(dontUpdateScale) {\n\n\t\t\t// Get row scale\n\t\t\tif (!dontUpdateScale) {\n\t\t\t\tthis._columnScale = this._createColumnScale();\n\t\t\t\tthis._colorScale = this._createColorScale();\n\t\t\t}\n\n\t\t\tthis._drawRows(this._columnScale.bandwidth());\n\t\t\tthis._drawColumnHeads();\n\n\t\t\tif (!dontUpdateScale) {\n\t\t\t\tthis._updateColumnScale();\n\t\t\t}\n\n\t\t\tthis._updatePositionsAndSizes();\n\n\t\t}", "function mulStoreMatrix(r, m, k) {\n m0 = m[0];\n m1 = m[1];\n m2 = m[2];\n m3 = m[3];\n m4 = m[4];\n m5 = m[5];\n m6 = m[6];\n m7 = m[7];\n m8 = m[8];\n m9 = m[9];\n m10 = m[10];\n m11 = m[11];\n m12 = m[12];\n m13 = m[13];\n m14 = m[14];\n m15 = m[15];\n k0 = k[0];\n k1 = k[1];\n k2 = k[2];\n k3 = k[3];\n k4 = k[4];\n k5 = k[5];\n k6 = k[6];\n k7 = k[7];\n k8 = k[8];\n k9 = k[9];\n k10 = k[10];\n k11 = k[11];\n k12 = k[12];\n k13 = k[13];\n k14 = k[14];\n k15 = k[15];\n\n a0 = k0 * m0 + k3 * m12 + k1 * m4 + k2 * m8;\n a4 = k4 * m0 + k7 * m12 + k5 * m4 + k6 * m8;\n a8 = k8 * m0 + k11 * m12 + k9 * m4 + k10 * m8;\n a12 = k12 * m0 + k15 * m12 + k13 * m4 + k14 * m8;\n\n a1 = k0 * m1 + k3 * m13 + k1 * m5 + k2 * m9;\n a5 = k4 * m1 + k7 * m13 + k5 * m5 + k6 * m9;\n a9 = k8 * m1 + k11 * m13 + k9 * m5 + k10 * m9;\n a13 = k12 * m1 + k15 * m13 + k13 * m5 + k14 * m9;\n\n a2 = k2 * m10 + k3 * m14 + k0 * m2 + k1 * m6;\n a6 = k6 * m10 + k7 * m14 + k4 * m2 + k5 * m6;\n a10 = k10 * m10 + k11 * m14 + k8 * m2 + k9 * m6;\n a14 = k14 * m10 + k15 * m14 + k12 * m2 + k13 * m6;\n\n a3 = k2 * m11 + k3 * m15 + k0 * m3 + k1 * m7;\n a7 = k6 * m11 + k7 * m15 + k4 * m3 + k5 * m7;\n a11 = k10 * m11 + k11 * m15 + k8 * m3 + k9 * m7;\n a15 = k14 * m11 + k15 * m15 + k12 * m3 + k13 * m7;\n\n r[0] = a0;\n r[1] = a1;\n r[2] = a2;\n r[3] = a3;\n r[4] = a4;\n r[5] = a5;\n r[6] = a6;\n r[7] = a7;\n r[8] = a8;\n r[9] = a9;\n r[10] = a10;\n r[11] = a11;\n r[12] = a12;\n r[13] = a13;\n r[14] = a14;\n r[15] = a15;\n}", "set(mat) {\n for (var i = 0; i < this.rows; i++) for (var j = 0; j < this.cols; j++)\n this.m[i][i] = mat.m[i][j];\n return this;\n }" ]
[ "0.67409146", "0.6665142", "0.654001", "0.6426403", "0.6324648", "0.6292943", "0.6289421", "0.6254326", "0.62039304", "0.6148832", "0.61286926", "0.60649693", "0.6057378", "0.6042743", "0.6018566", "0.6016008", "0.59839904", "0.5978976", "0.5917901", "0.589189", "0.58882535", "0.58771807", "0.5843633", "0.5832528", "0.58298683", "0.581807", "0.5789362", "0.5774141", "0.5773455", "0.5741577", "0.57272106", "0.57262117", "0.5723842", "0.571274", "0.57074183", "0.5700457", "0.5687343", "0.56810105", "0.56662554", "0.5659708", "0.565777", "0.56276256", "0.5621475", "0.560481", "0.5594509", "0.5588261", "0.5579337", "0.55616176", "0.55597526", "0.5556421", "0.55490035", "0.5542986", "0.5530105", "0.552884", "0.5498031", "0.5496346", "0.54927963", "0.5472951", "0.54681665", "0.5466934", "0.546645", "0.54609424", "0.54560614", "0.54047537", "0.5400447", "0.538065", "0.5380617", "0.5369179", "0.5365716", "0.5362369", "0.53422284", "0.5332866", "0.53264576", "0.53249365", "0.5322753", "0.53218436", "0.5319024", "0.53097993", "0.530952", "0.5306221", "0.5306221", "0.5300868", "0.5282058", "0.52738345", "0.52707404", "0.52611166", "0.52611166", "0.52603054", "0.52577394", "0.5245821", "0.5245821", "0.5245821", "0.5237664", "0.5236496", "0.5231596", "0.5226582", "0.52203035", "0.5219291", "0.5216128", "0.52158964" ]
0.5225647
96
Overwrites the matrix with the new product.
static flatten_2D_to_1D(M) // Turn any 2D Array into a row-major 1D array of raw floats. { var index = 0, floats = new Float32Array(M.length && M.length * M[0].length); for (let i = 0; i < M.length; i++) for (let j = 0; j < M[i].length; j++) floats[index++] = M[i][j]; return floats; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function matrixMultiply() {\n \"use strict\";\n\n var i;\n var j;\n var k;\n\n newComposite = new Array(composite.length);\n\n for (i = 0; i < newComposite.length; i += 1) {\n newComposite[i] = new Array(newTransform[i].length);\n for (j = 0; j < composite.length; j += 1) {\n newComposite[i][j] = 0; // initialise to 0\n for (k = 0; k < newTransform.length; k += 1) {\n newComposite[i][j] += composite[i][k] * newTransform[k][j]; // multiply matrices together\n }\n }\n }\n composite = newComposite;\n}", "multiply(matrix) {\n return this.clone().multiplyO(matrix);\n }", "mult(n) {\n if(n instanceof Matrix && this.cols === n.rows) {\n const result = new Matrix(this.rows, n.cols);\n for(let row = 0; row < result.rows; row++) { // resulting matrix will have dimensions of the 1st matrix's rows and the # of columns in the 2nd matrix\n for(let col = 0; col < result.cols; col++) {\n let sum = 0;\n for(let index = 0; index < this.cols; index++) {\n sum += this.matrix[row][index] * n.matrix[index][col];\n }\n result.matrix[row][col] = sum;\n }\n }\n this.matrix = result.matrix;\n } else {\n for(let row = 0; row < this.rows; row++) {\n for(let col = 0; col < this.cols; col++) {\n this.matrix[row][col] *= n;\n }\n }\n }\n this.print();\n return this;\n }", "static prod(M1,M2) {\r\n if(!(M1 instanceof Matrix) || !(M2 instanceof Matrix)) {\r\n console.log(Matrix.wrong_type_error_message2());\r\n return null;\r\n }\r\n if(M1.cols != M2.rows) {\r\n console.log(Matrix.wrong_dim_error_message());\r\n return null;\r\n }\r\n let result = new Matrix(M1.rows,M2.cols);\r\n let helper = M2.transpose();\r\n result.data = result.data.map((rows,main_index) => {\r\n return rows.map((col,sub_index) => {\r\n return Matrix.array_mult(M1.data[main_index],helper.data[sub_index]);\r\n });\r\n });\r\n return result;\r\n }", "function mulTranspose(val)\n{\n\tif(typeof val != typeof this)\n\t{\n\t\tthrow \"Incompatible types\";\n\t}\n\telse\n\t{\n\t\tif(this.size.x != val.size.y)\n\t\t{\n\t\t\tthrow \"Matrix cant be multiplied (check matrix size)\";\n\t\t}\n\n\t\tvar mat = new Matrix(this.size.y, val.size.x);\n\t\tfor(var i = 0; i < this.size.y; i++)\n\t\t{\n\t\t\tfor(var j = 0; j < val.size.x; j++)\n\t\t\t{\n\t\t\t\tvar sum = 0;\n\t\t\t\tfor(var k = 0; k < this.size.x; k++)\n\t\t\t\t{\n\t\t\t\t\tsum += this.matrix[k][i] * val.matrix[j][k];\n\t\t\t\t}\n\t\t\t\tmat.matrix[i][j] = sum;\n\t\t\t}\n\t\t}\n\n\t\tthis.matrix = mat.matrix;\n\t\tthis.size.x = mat.size.x;\n\t\tthis.size.y = mat.size.y;\n\t}\n}", "function matrixMultiply(arrOne, arrTwo) {\n\n}", "function multiply_matrix_by_matrix(matrix_a, matrix_b) {\n let product_of_matrices = [\n [0, 0],\n [0, 0]\n ]\n\n product_of_matrices[0][0] = matrix_a[0][0] * matrix_b[0][0]\n product_of_matrices[0][0] += matrix_a[0][1] * matrix_b[1][0]\n\n product_of_matrices[0][1] = matrix_a[0][0] * matrix_b[0][1]\n product_of_matrices[0][1] += matrix_a[0][1] * matrix_b[1][1]\n\n product_of_matrices[1][0] = matrix_a[1][0] * matrix_b[0][0]\n product_of_matrices[1][0] += matrix_a[1][1] * matrix_b[1][0]\n\n product_of_matrices[1][1] = matrix_a[1][0] * matrix_b[0][1]\n product_of_matrices[1][1] += matrix_a[1][1] * matrix_b[1][1]\n\n return product_of_matrices\n}", "function multiplyMatrix(matrixInputLeft, matrixInputRight){\n var result = getEmpyMatrix(matrixInputLeft.length);\n var temp = 0;\n for(var k = 0; k < matrixInputLeft.length; k++){\n for(var i = 0; i < matrixInputLeft[0].length; i++){\n for(var j = 0; j < matrixInputRight[0].length; j++){\n temp += parseInt(matrixInputLeft[k][j]) * parseInt(matrixInputRight[j][i]);\n console.log(temp);\n }\n result[k][i] = temp;\n temp = 0;\n\n console.log(result);\n }\n }\n return result;\n }", "multiply(other) {\n if (this.values[0].length !== other.values.length) {\n throw new Error('Cannot multiply these two matrices!');\n }\n const m = this.values.length;\n const n = other.values.length;\n const k = other.values[0].length;\n // multiply\n const newMatrix = new Matrix(m, k);\n for (let i = 0; i < m; i++) {\n for (let j = 0; j < k; j++) {\n for (let t = 0; t < n; t++) {\n newMatrix.values[i][j] += this.values[i][t] * other.values[t][j];\n }\n }\n }\n return newMatrix;\n }", "function matrixMultiply(matrix1, matrix2) {\n let newMatrix = [[], []];\n for (let i=0; i<matrix1.length; i++) {\n for (let j=0; j<matrix1[0].length; j++) {\n newMatrix[i].push(matrix1[i][0] * matrix2[0][j] + matrix1[i][1] * matrix2[1][j]);\n }\n }\n return newMatrix;\n}", "clone() {\n const mt = new Matrix();\n return mt.multiply(this);\n }", "updateMatrix() {\n this.matrix.set(\n 1 - 2 * (Math.pow(this.y, 2) + Math.pow(this.z, 2)),\n 2 * (this.x * this.y - this.s * this.z),\n 2 * (this.x * this.z + this.s * this.y),\n 0,\n 2 * (this.x * this.y + this.s * this.z),\n 1 - 2 * (Math.pow(this.x, 2) + Math.pow(this.z, 2)),\n 2 * (this.y * this.z - this.s * this.x),\n 0,\n 2 * (this.x * this.z - this.s * this.y),\n 2 * (this.y * this.z + this.s * this.x),\n 1 - 2 * (Math.pow(this.x, 2) + Math.pow(this.y, 2)),\n 0,\n 0,\n 0,\n 0,\n 1\n );\n }", "function matrixMultiply(matrix_1, matrix_2) {\n var matrix_3 = [[],[]];\n console.log(matrix_1.length);\n for(var i = 0; i < matrix_1.length; i++) {\n for(var j = 0; j < matrix_1.length; j++) {\n matrix_3[i][j] = (matrix_1[i][0] * matrix_2[0][j]) + (matrix_1[i][1] * matrix_2[1][j]);\n }\n }\n return matrix_3;\n}", "static matrixMultiply(l, r, o) {\n // Work out the product directly\n var a = l.a * r.a + l.c * r.b;\n var b = l.b * r.a + l.d * r.b;\n var c = l.a * r.c + l.c * r.d;\n var d = l.b * r.c + l.d * r.d;\n var e = l.e + l.a * r.e + l.c * r.f;\n var f = l.f + l.b * r.e + l.d * r.f; // make sure to use local variables because l/r and o could be the same\n\n o.a = a;\n o.b = b;\n o.c = c;\n o.d = d;\n o.e = e;\n o.f = f;\n return o;\n }", "function matrixPower(base, index) {\n //product = base x multiplicand\n var product = [];\n var multiplicand = [];\n \n //copy base matrix into product:\n product = copyMatrix(base);\n \n for (var counter = 0; counter < index - 1; counter++) {\n //copy product into multiplicand\n multiplicand = copyMatrix(product);\n \n //multiply:\n //iterate over rows\n for (var r = 0; r < base.length; r++) {\n //iterate over columns\n for (var c = 0; c < base.length; c++) {\n //find each individual entry by multiplying multiplicand by base\n product[r][c] = 0; //clear the product so it can take on new values\n for (var t = 0; t < base.length; t++) {\n product[r][c] += (multiplicand[r][t] * base[t][c]);\n }\n }\n }\n }\n \n return product;\n}", "reiniciar(){\n mat4.set(this.inicial,this.matrix);\n }", "multiply(matrix4) {\n let a00 = this._matrix[0 * 4 + 0];\n let a01 = this._matrix[0 * 4 + 1];\n let a02 = this._matrix[0 * 4 + 2];\n let a03 = this._matrix[0 * 4 + 3];\n let a10 = this._matrix[1 * 4 + 0];\n let a11 = this._matrix[1 * 4 + 1];\n let a12 = this._matrix[1 * 4 + 2];\n let a13 = this._matrix[1 * 4 + 3];\n let a20 = this._matrix[2 * 4 + 0];\n let a21 = this._matrix[2 * 4 + 1];\n let a22 = this._matrix[2 * 4 + 2];\n let a23 = this._matrix[2 * 4 + 3];\n let a30 = this._matrix[3 * 4 + 0];\n let a31 = this._matrix[3 * 4 + 1];\n let a32 = this._matrix[3 * 4 + 2];\n let a33 = this._matrix[3 * 4 + 3];\n\n let b00 = matrix4[0 * 4 + 0];\n let b01 = matrix4[0 * 4 + 1];\n let b02 = matrix4[0 * 4 + 2];\n let b03 = matrix4[0 * 4 + 3];\n let b10 = matrix4[1 * 4 + 0];\n let b11 = matrix4[1 * 4 + 1];\n let b12 = matrix4[1 * 4 + 2];\n let b13 = matrix4[1 * 4 + 3];\n let b20 = matrix4[2 * 4 + 0];\n let b21 = matrix4[2 * 4 + 1];\n let b22 = matrix4[2 * 4 + 2];\n let b23 = matrix4[2 * 4 + 3];\n let b30 = matrix4[3 * 4 + 0];\n let b31 = matrix4[3 * 4 + 1];\n let b32 = matrix4[3 * 4 + 2];\n let b33 = matrix4[3 * 4 + 3];\n\n this._matrix[0] = a00 * b00 + a10 * b01 + a20 * b02 + a30 * b03;\n this._matrix[1] = a01 * b00 + a11 * b01 + a21 * b02 + a31 * b03;\n this._matrix[2] = a02 * b00 + a12 * b01 + a22 * b02 + a32 * b03;\n this._matrix[3] = a03 * b00 + a13 * b01 + a23 * b02 + a33 * b03;\n this._matrix[4] = a00 * b10 + a10 * b11 + a20 * b12 + a30 * b13;\n this._matrix[5] = a01 * b10 + a11 * b11 + a21 * b12 + a31 * b13;\n this._matrix[6] = a02 * b10 + a12 * b11 + a22 * b12 + a32 * b13;\n this._matrix[7] = a03 * b10 + a13 * b11 + a23 * b12 + a33 * b13;\n this._matrix[8] = a00 * b20 + a10 * b21 + a20 * b22 + a30 * b23;\n this._matrix[9] = a01 * b20 + a11 * b21 + a21 * b22 + a31 * b23;\n this._matrix[10] = a02 * b20 + a12 * b21 + a22 * b22 + a32 * b23;\n this._matrix[11] = a03 * b20 + a13 * b21 + a23 * b22 + a33 * b23;\n this._matrix[12] = a00 * b30 + a10 * b31 + a20 * b32 + a30 * b33;\n this._matrix[13] = a01 * b30 + a11 * b31 + a21 * b32 + a31 * b33;\n this._matrix[14] = a02 * b30 + a12 * b31 + a22 * b32 + a32 * b33;\n this._matrix[15] = a03 * b30 + a13 * b31 + a23 * b32 + a33 * b33;\n\n return this._matrix;\n }", "function scalMtx1() {\r\n var row = document.getElementById(\"rows\").value;\r\n var col = document.getElementById(\"cols\").value;\r\n var scal = document.getElementById(\"scalNum1\").value;\r\n var string = \"<section class='matrixCont' id='displayMatrix1'><table class='matrix' id='matrix1'>\";\r\n var product;\r\n var curr1;\r\n var curString1 = \"\";\r\n\r\n //Checks if it is a Square Matrix\r\n if (row == col) {\r\n for (var i = 0; i < row; i++) {\r\n string += \"\\n<tr>\";\r\n for (var j = 0; j < col; j++) {\r\n curString1 = \"mtrx1-\" + i + \"-\" + j;\r\n curr1 = Number(document.getElementById(curString1).innerText);\r\n product = curr1 * scal;\r\n console.log(product);\r\n string += \"\\n<td id='mtrx1-\" + i + \"-\" + j + \"'>\\n\" + product + \"</td>\";\r\n }\r\n string += \"\\n</tr>\";\r\n }\r\n string += \"\\n</table>\\n<section id='scalar1'></section><section id='detMatrix1'></section></section>\";\r\n } else {\r\n for (var i = 0; i < row; i++) {\r\n string += \"\\n<tr>\";\r\n for (var j = 0; j < col; j++) {\r\n curString1 = \"mtrx1-\" + i + \"-\" + j;\r\n curr1 = Number(document.getElementById(curString1).innerText);\r\n product = curr1 * scal;\r\n console.log(product);\r\n string += \"\\n<td id='mtrx1-\" + i + \"-\" + j + \"'>\\n\" + product + \"</td>\";\r\n }\r\n string += \"\\n</tr>\";\r\n }\r\n string += \"\\n</table>\\n<section id='scalar1'></section><section id= 'detMatrix1'></section>\\n</section>\";\r\n }\r\n $(\"#displayMatrix1\").replaceWith(string);\r\n}", "multiply(matrix3) {\n let a00 = this._matrix[0 * 3 + 0];\n let a01 = this._matrix[0 * 3 + 1];\n let a02 = this._matrix[0 * 3 + 2];\n let a10 = this._matrix[1 * 3 + 0];\n let a11 = this._matrix[1 * 3 + 1];\n let a12 = this._matrix[1 * 3 + 2];\n let a20 = this._matrix[2 * 3 + 0];\n let a21 = this._matrix[2 * 3 + 1];\n let a22 = this._matrix[2 * 3 + 2];\n\n let b00 = matrix3[0 * 3 + 0];\n let b01 = matrix3[0 * 3 + 1];\n let b02 = matrix3[0 * 3 + 2];\n let b10 = matrix3[1 * 3 + 0];\n let b11 = matrix3[1 * 3 + 1];\n let b12 = matrix3[1 * 3 + 2];\n let b20 = matrix3[2 * 3 + 0];\n let b21 = matrix3[2 * 3 + 1];\n let b22 = matrix3[2 * 3 + 2];\n\n this._matrix[0] = a00 * b00 + a01 * b10 + a02 * b20;\n this._matrix[1] = a00 * b01 + a01 * b11 + a02 * b21;\n this._matrix[2] = a00 * b02 + a01 * b12 + a02 * b22;\n this._matrix[3] = a10 * b00 + a11 * b10 + a12 * b20;\n this._matrix[4] = a10 * b01 + a11 * b11 + a12 * b21;\n this._matrix[5] = a10 * b02 + a11 * b12 + a12 * b22;\n this._matrix[6] = a20 * b00 + a21 * b10 + a22 * b20;\n this._matrix[7] = a20 * b01 + a21 * b11 + a22 * b21;\n this._matrix[8] = a20 * b02 + a21 * b12 + a22 * b22;\n\n return this._matrix;\n }", "function multiplyAll(arr) {\n var product = 1;\n // Only change code below this line\n for (var i=0; i < arr.length; i++) {\n for (var j=0; j < arr[i].length; j++) {\n product *= arr[i][j];\n }}\n // Only change code above this line\n return product;\n}", "static prod(mats)\n\t{\n\t\tif (mats.length == 0) {\n\t\t\treturn Matrix.identity();\n\t\t}\n\t\tvar result = mats[0];\n\t\tfor (var i=1; i<mats.length; ++i) {\n\t\t\tresult = Matrix.mul(result, mats[i]);\n\t\t}\n\t\treturn result;\n\t}", "function multiplyAll(arr) {\n var product = 1;\n // Only change code below this line\n for (var i=0; i < arr.length; i++) {\n for (var j=0; j < arr[i].length; j++) {\n product = product * arr[i][j];\n }\n}\n // Only change code above this line\n return product;\n}", "function multiplyAll(arr) {\n var product = 1;\n // Only change code below this line\n for (var i = 0; i < arr.length; i++) {\n for (var j = 0; j < arr[i].length; j++) {\n product *= arr[i][j];\n }\n }\n // Only change code above this line\n return product;\n}", "multiply(mat) {\n const m00 = this.v[0] * mat.v[0] + this.v[3] * mat.v[1] + this.v[6] * mat.v[2];\n const m01 = this.v[0] * mat.v[3] + this.v[3] * mat.v[4] + this.v[6] * mat.v[5];\n const m02 = this.v[0] * mat.v[6] + this.v[3] * mat.v[7] + this.v[6] * mat.v[8];\n const m10 = this.v[1] * mat.v[0] + this.v[4] * mat.v[1] + this.v[7] * mat.v[2];\n const m11 = this.v[1] * mat.v[3] + this.v[4] * mat.v[4] + this.v[7] * mat.v[5];\n const m12 = this.v[1] * mat.v[6] + this.v[4] * mat.v[7] + this.v[7] * mat.v[8];\n const m20 = this.v[2] * mat.v[0] + this.v[5] * mat.v[1] + this.v[8] * mat.v[2];\n const m21 = this.v[2] * mat.v[3] + this.v[5] * mat.v[4] + this.v[8] * mat.v[5];\n const m22 = this.v[2] * mat.v[6] + this.v[5] * mat.v[7] + this.v[8] * mat.v[8];\n return this.setComponents(m00, m01, m02, m10, m11, m12, m20, m21, m22);\n }", "multiply(mat) {\n const m00 = this.v[0] * mat.v[0] + this.v[4] * mat.v[1] + this.v[8] * mat.v[2] + this.v[12] * mat.v[3];\n const m01 = this.v[0] * mat.v[4] + this.v[4] * mat.v[5] + this.v[8] * mat.v[6] + this.v[12] * mat.v[7];\n const m02 = this.v[0] * mat.v[8] + this.v[4] * mat.v[9] + this.v[8] * mat.v[10] + this.v[12] * mat.v[11];\n const m03 = this.v[0] * mat.v[12] + this.v[4] * mat.v[13] + this.v[8] * mat.v[14] + this.v[12] * mat.v[15];\n const m10 = this.v[1] * mat.v[0] + this.v[5] * mat.v[1] + this.v[9] * mat.v[2] + this.v[13] * mat.v[3];\n const m11 = this.v[1] * mat.v[4] + this.v[5] * mat.v[5] + this.v[9] * mat.v[6] + this.v[13] * mat.v[7];\n const m12 = this.v[1] * mat.v[8] + this.v[5] * mat.v[9] + this.v[9] * mat.v[10] + this.v[13] * mat.v[11];\n const m13 = this.v[1] * mat.v[12] + this.v[5] * mat.v[13] + this.v[9] * mat.v[14] + this.v[13] * mat.v[15];\n const m20 = this.v[2] * mat.v[0] + this.v[6] * mat.v[1] + this.v[10] * mat.v[2] + this.v[14] * mat.v[3];\n const m21 = this.v[2] * mat.v[4] + this.v[6] * mat.v[5] + this.v[10] * mat.v[6] + this.v[14] * mat.v[7];\n const m22 = this.v[2] * mat.v[8] + this.v[6] * mat.v[9] + this.v[10] * mat.v[10] + this.v[14] * mat.v[11];\n const m23 = this.v[2] * mat.v[12] + this.v[6] * mat.v[13] + this.v[10] * mat.v[14] + this.v[14] * mat.v[15];\n const m30 = this.v[3] * mat.v[0] + this.v[7] * mat.v[1] + this.v[11] * mat.v[2] + this.v[15] * mat.v[3];\n const m31 = this.v[3] * mat.v[4] + this.v[7] * mat.v[5] + this.v[11] * mat.v[6] + this.v[15] * mat.v[7];\n const m32 = this.v[3] * mat.v[8] + this.v[7] * mat.v[9] + this.v[11] * mat.v[10] + this.v[15] * mat.v[11];\n const m33 = this.v[3] * mat.v[12] + this.v[7] * mat.v[13] + this.v[11] * mat.v[14] + this.v[15] * mat.v[15];\n return this.setComponents(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33);\n }", "function change(matrix){\n var len = matrix.length;\n var mat = arrayClone(matrix);\n for (var i = len; i < 4; i++){\n mat.push([0,0,0,0]);\n for (var j = 0; j < len; j++){\n mat[j].push(0)\n }\n }\n return mat;\n}", "function matrix_multiply(ae, be, res){\n var a11 = ae[0][0], a12 = ae[0][1], a13 = ae[0][2], a14 = ae[0][3]\n var a21 = ae[1][0], a22 = ae[1][1], a23 = ae[1][2], a24 = ae[1][3]\n var a31 = ae[2][0], a32 = ae[2][1], a33 = ae[2][2], a34 = ae[2][3]\n var a41 = ae[3][0], a42 = ae[3][1], a43 = ae[3][2], a44 = ae[3][3]\n\n var b11 = be[0][0], b12 = be[0][1], b13 = be[0][2], b14 = be[0][3]\n var b21 = be[1][0], b22 = be[1][1], b23 = be[1][2], b24 = be[1][3]\n var b31 = be[2][0], b32 = be[2][1], b33 = be[2][2], b34 = be[2][3]\n var b41 = be[3][0], b42 = be[3][1], b43 = be[3][2], b44 = be[3][3]\n\n res[0][0] = a11 * b11 + a12 * b21 + a13 * b31 + a14 * b41\n res[0][1] = a11 * b12 + a12 * b22 + a13 * b32 + a14 * b42\n res[0][2] = a11 * b13 + a12 * b23 + a13 * b33 + a14 * b43\n res[0][3] = a11 * b14 + a12 * b24 + a13 * b34 + a14 * b44\n\n res[1][0] = a21 * b11 + a22 * b21 + a23 * b31 + a24 * b41\n res[1][1] = a21 * b12 + a22 * b22 + a23 * b32 + a24 * b42\n res[1][2] = a21 * b13 + a22 * b23 + a23 * b33 + a24 * b43\n res[1][3] = a21 * b14 + a22 * b24 + a23 * b34 + a24 * b44\n\n res[2][0] = a31 * b11 + a32 * b21 + a33 * b31 + a34 * b41\n res[2][1] = a31 * b12 + a32 * b22 + a33 * b32 + a34 * b42\n res[2][2] = a31 * b13 + a32 * b23 + a33 * b33 + a34 * b43\n res[2][3] = a31 * b14 + a32 * b24 + a33 * b34 + a34 * b44\n\n res[3][0] = a41 * b11 + a42 * b21 + a43 * b31 + a44 * b41\n res[3][1] = a41 * b12 + a42 * b22 + a43 * b32 + a44 * b42\n res[3][2] = a41 * b13 + a42 * b23 + a43 * b33 + a44 * b43\n res[3][3] = a41 * b14 + a42 * b24 + a43 * b34 + a44 * b44\n}", "static multiply(a, b) {\n if (a.cols !== b.rows) {\n console.log('Cols of A must match rows of B');\n return undefined;\n }\n let result = new Matrix(a.rows, b.cols);\n for (let i = 0; i < result.rows; i++) {\n for (let j = 0; j < result.cols; j++) {\n // Dot product of values in col\n let sum = 0;\n for (let k = 0; k < a.cols; k++) {\n sum += a.data[i][k] * b.data[k][j];\n }\n result.data[i][j] = sum;\n }\n }\n return result;\n }", "function matrixMultiply(mat2, mat1) {\n return [mat1[0] * mat2[0] + mat1[1] * mat2[4] + mat1[2] * mat2[8] + mat1[3] * mat2[12], mat1[0] * mat2[1] + mat1[1] * mat2[5] + mat1[2] * mat2[9] + mat1[3] * mat2[13], mat1[0] * mat2[2] + mat1[1] * mat2[6] + mat1[2] * mat2[10] + mat1[3] * mat2[14], mat1[0] * mat2[3] + mat1[1] * mat2[7] + mat1[2] * mat2[11] + mat1[3] * mat2[15], mat1[4] * mat2[0] + mat1[5] * mat2[4] + mat1[6] * mat2[8] + mat1[7] * mat2[12], mat1[4] * mat2[1] + mat1[5] * mat2[5] + mat1[6] * mat2[9] + mat1[7] * mat2[13], mat1[4] * mat2[2] + mat1[5] * mat2[6] + mat1[6] * mat2[10] + mat1[7] * mat2[14], mat1[4] * mat2[3] + mat1[5] * mat2[7] + mat1[6] * mat2[11] + mat1[7] * mat2[15], mat1[8] * mat2[0] + mat1[9] * mat2[4] + mat1[10] * mat2[8] + mat1[11] * mat2[12], mat1[8] * mat2[1] + mat1[9] * mat2[5] + mat1[10] * mat2[9] + mat1[11] * mat2[13], mat1[8] * mat2[2] + mat1[9] * mat2[6] + mat1[10] * mat2[10] + mat1[11] * mat2[14], mat1[8] * mat2[3] + mat1[9] * mat2[7] + mat1[10] * mat2[11] + mat1[11] * mat2[15], mat1[12] * mat2[0] + mat1[13] * mat2[4] + mat1[14] * mat2[8] + mat1[15] * mat2[12], mat1[12] * mat2[1] + mat1[13] * mat2[5] + mat1[14] * mat2[9] + mat1[15] * mat2[13], mat1[12] * mat2[2] + mat1[13] * mat2[6] + mat1[14] * mat2[10] + mat1[15] * mat2[14], mat1[12] * mat2[3] + mat1[13] * mat2[7] + mat1[14] * mat2[11] + mat1[15] * mat2[15]];\n}", "function updateMatrix() {\n\n // reset matrix\n matrix.length = 0;\n // if nodes exist\n if (nodes.length > 0) {\n\n // reset matrix values\n for (var i = 0; i < nodes.length; i++) {\n matrix.push([]);\n for (var j = 0; j < nodes.length; j++) {\n matrix[i].push(0);\n }\n }\n // set matrix cost\n for (i = 0; i < links.length; i++) {\n var source = nodes.indexOf(links[i]['source']);\n var target = nodes.indexOf(links[i]['target']);\n var distance = links[i]['distance'];\n\n if (source != -1 && target != -1) {\n matrix[source][target] = distance;\n matrix[target][source] = distance;\n }\n }\n }\n}", "static multiply(mat1, mat2) {\n //check compatibility\n if (mat1.width !== mat2.height) {\n throw new Error('Incompatible matrices for multiplication.');\n }\n const height = mat1.height;\n const width = mat2.width;\n const result = new Matrix(height, width);\n for (let i = 0; i < height; i++) {\n for (let j = 0; j < width; j++) {\n let sum = 0;\n for (let k = 0; k < mat1.width; k++) {\n sum += mat1.get(i, k) * mat2.get(k, j);\n }\n result.set(i, j, _.round(sum, 5));\n }\n }\n return result;\n }", "multiply(n) {\n // PERFORMING HADAMARD MULTIPLICATION.\n if(n instanceof Matrix) {\n this.map((data, i, j) => data * n.data[i][j]);\n } else if(typeof n === 'number') {\n this.map((data) => data * n);\n }\n return this;\n }", "function applyMatrix(self, m) {\n self.__data__.mat = multMatrix(m, self.__data__.mat);\n return self;\n }", "function increaseMatrix() {\r\n storeMatrix();\r\n var matrix = getMatrix().map(row => {\r\n row.push('1');\r\n return row;\r\n });\r\n matrix.push(new Array(matrix.length + 1).fill('1'));\r\n localStorage.setItem('matrix', JSON.stringify(matrix));\r\n createTable();\r\n}", "resetMatrix(mat, val) {\n\t\t\tmat.forEach((col) => col.fill(val));\n\t\t}", "function multiplyMatrix (A, B) {\n var result = new Array(A.length).fill(0).map(row => new Array(B[0].length).fill(0));\n\n return result.map((row, i) => {\n return row.map((val, j) => {\n return A[i].reduce((sum, elm, k) => sum + (elm*B[k][j]) ,0)\n })\n })\n}", "multiply(n) {\n // Scalar Product\n for (let i = 0; i < this.rows; i++) {\n for (let j = 0; j < this.cols; j++) {\n this.data[i][j] *= n;\n }\n }\n }", "function multMatrix(A,H){\r\n\tvar M = [[0,0,0],[0,0,0],[0,0,0]];\r\n\tvar ic = 0;\r\n\tvar mc = 0;\r\n\tfor(mc=0;mc<3;mc++){\r\n\t\tfor(ic=0;ic<3;ic++){\r\n\t\t\tvar cell = 0;\r\n\t\t\tfor(cell=0;cell<3;cell++){\r\n\t\t\t\tM[mc][ic] = M[mc][ic] + A[cell][ic]*H[mc][cell];\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn M;\r\n}", "multiply(mat) {\n const m00 = this.v[0] * mat.v[0] + this.v[2] * mat.v[1];\n const m01 = this.v[0] * mat.v[2] + this.v[2] * mat.v[3];\n const m10 = this.v[1] * mat.v[0] + this.v[3] * mat.v[1];\n const m11 = this.v[1] * mat.v[2] + this.v[3] * mat.v[3];\n return this.setComponents(m00, m01, m10, m11);\n }", "function scalMtx2(row, col, operation) {\r\n var scal = document.getElementById(\"scalNum2\").value;\r\n var string = \"<section class='matrixCont' id='displayMatrix2'>\";\r\n if (operation == 2) {\r\n string += \"<div>X</div>\";\r\n }\r\n if (operation == 1) {\r\n string += \"<div>-</div>\";\r\n }\r\n if (operation == 0) {\r\n string += \"<div>+</div>\";\r\n }\r\n string += \"\\n<button type='submit' onclick='nextScalar2(\" + row + \",\" + col + \",\" + operation + \")'>Scalar Multiplication</button><table class='matrix' id='matrix2'>\";\r\n var product;\r\n var curr2;\r\n var curString2 = \"\";\r\n\r\n //Checks if it is a Square Matrix\r\n if (row == col) {\r\n for (var i = 0; i < row; i++) {\r\n string += \"\\n<tr>\";\r\n for (var j = 0; j < col; j++) {\r\n curString2 = \"mtrx2-\" + i + \"-\" + j;\r\n curr2 = Number(document.getElementById(curString2).innerText);\r\n product = curr2 * scal;\r\n console.log(product);\r\n string += \"\\n<td id='mtrx2-\" + i + \"-\" + j + \"'>\\n\" + product + \"</td>\";\r\n }\r\n string += \"\\n</tr>\";\r\n }\r\n string += \"\\n</table>\\n<section id='scalar2'></section><section id='detMatrix2'></section>\";\r\n } else {\r\n for (var i = 0; i < row; i++) {\r\n string += \"\\n<tr>\";\r\n for (var j = 0; j < col; j++) {\r\n curString2 = \"mtrx2-\" + i + \"-\" + j;\r\n curr2 = Number(document.getElementById(curString2).innerText);\r\n product = curr2 * scal;\r\n console.log(product);\r\n string += \"\\n<td id='mtrx2-\" + i + \"-\" + j + \"'>\\n\" + product + \"</td>\";\r\n }\r\n string += \"\\n</tr>\";\r\n }\r\n string += \"\\n</table>\\n<section id='scalar2'></section><section id= 'detMatrix2'></section>\";\r\n }\r\n if (operation == 2) {\r\n string += \"<button type='submit' onclick='multiEqual(\" + row + \",\" + col + \")'>=</button></section>\";\r\n }\r\n if (operation == 1) {\r\n string += \"<button type='submit' onclick='subEqual()'>=</button></section>\";\r\n }\r\n if (operation == 0) {\r\n string += \"<button type='submit' onclick='addEqual()'>=</button></section>\";\r\n }\r\n $(\"#displayMatrix2\").replaceWith(string);\r\n}", "function multiply_matrix_by_constant(matrix, CONSTANT) {\n let product_of_matrix_and_constant = [\n [0, 0],\n [0, 0]\n ]\n\n product_of_matrix_and_constant[0][0] = CONSTANT * matrix[0][0]\n product_of_matrix_and_constant[0][1] = CONSTANT * matrix[0][1]\n product_of_matrix_and_constant[1][0] = CONSTANT * matrix[1][0]\n product_of_matrix_and_constant[1][1] = CONSTANT * matrix[1][1]\n\n return product_of_matrix_and_constant\n}", "function multiplyAll(arr) {\r\n var product = 1;\r\n for (var i = 0; i < arr.length; i++) {\r\n for (var j = 0; j < arr[i].length; j++) {\r\n product = product * arr[i][j];\r\n }\r\n }\r\n return product;\r\n }", "function multiply(digits) {\n for (var i = 0; i < indices.length; ++i) {\n var product = 1;\n for (var j = 0; j < indices[i].length; ++j) {\n product = product * digits[indices[i][j]];\n }\n permutationProduct.push(product);\n }\n return product;\n}", "function matrix_multiply(m1,m2) {\n // returns 2D array that is the result of m1*m2\n\n var res = new Array(m1.length) // creating a placeholder\n\n for (i = 0; i < m1.length; i++){\n res[i] = new Array(m2[0].length)\n for (j = 0; j < m2[0].length; j++){\n var temp = 0\n for (k = 0; k < m2.length; k++){\n temp += m1[i][k] * m2[k][j]\n }\n res[i][j] = temp\n }\n }\n return res\n}", "function Matrix(mm) {\n\tvar\n\t\tself=this,\n\t\tM=mm;\n\t\t\n\tjQuery.extend(self,{\n\t\tmult: function(mm) {\n\t\t\tvar m=mm.M?mm.M:mm;\n\t\t\t\n\t\t\tvar result = new Array(4);\n\t\t\tfor (var i = 0; i<4;i++) {\n\t\t\t\tresult[i] = new Array(4);\n\t\t\t}\n\t\t\t\n\t\t\tfor(var i = 0; i < 4; i++){\n\t\t\t\tresult[i][0] = M[i][0] * m[0][0] + M[i][1] * m[1][0] + M[i][2] * m[2][0] + M[i][3] * m[3][0];\n\t\t\t\tresult[i][1] = M[i][0] * m[0][1] + M[i][1] * m[1][1] + M[i][2] * m[2][1] + M[i][3] * m[3][1];\n\t\t\t\tresult[i][2] = M[i][0] * m[0][2] + M[i][1] * m[1][2] + M[i][2] * m[2][2] + M[i][3] * m[3][2];\n\t\t\t\tresult[i][3] = M[i][0] * m[0][3] + M[i][1] * m[1][3] + M[i][2] * m[2][3] + M[i][3] * m[3][3];\n\t\t\t}\n\t\t\t\n\t\t\treturn new Matrix(result);\n\t\t},\n\t\t\n\t\tadd: function(mm) {\n\t\t\tvar m=mm.M?mm.M:mm;\n\t\t\t\n\t\t\tvar result = new Array(4);\n\t\t\tfor (var i = 0; i<4;i++) {\n\t\t\t\tresult[i] = new Array(4);\n\t\t\t}\n\t\t\t\n\t\t\tfor (var i=0; i<4; i++)\n\t\t\t\tfor (var j=0; j<4; j++)\n\t\t\t\t\tresult[i][j]=M[i][j]+m[i][j];\n\n\t\t\treturn new Matrix(result);\n\t\t},\n\t\t\n\t\t// the matrix\n\t\t'M': M\n\t});\n}", "function multiplyAll(arr){\n var product = 1;\n\n for(var i = 0; i < arr.length; i++){\n for(var j = 0; i < arr[i].length; j++){\n product *=arr[i][j];\n }\n }\n}", "function matrix_multiply(m1, m2) {\n \n let mat = [];\n for (let i = 0; i < m1.length; i++){\n mat[i] = [];\n for (let j = 0; j < m2[0].length; j++){\n mat[i][j] = 0;\n for (let k = 0; k < m2.length; k++)\n mat[i][j] += m1[i][k]*m2[k][j];\n }\n }\n\n return mat;\n}", "function matrix_multiply(m1, m2) {\n\n var mat = [];\n var i,j,k;\n for (i = 0; i < m1.length; i++){\n mat[i] = [];\n for (j = 0; j < m2[0].length; j++){\n mat[i][j] = 0;\n for (k = 0; k < m2.length; k++){\n mat[i][j] += m1[i][k]*m2[k][j];\n }\n }\n }\n\n return mat;\n}", "copy() {\n const m = this.matrix;\n const copyM = JSON.parse(JSON.stringify(m));\n return new Matrix(copyM);\n }", "function MatrixMult( A, B )\r\n{\r\n\tvar C = [];\r\n\tfor ( var i=0; i<4; ++i ) \r\n\t{\r\n\t\tfor ( var j=0; j<4; ++j ) \r\n\t\t{\r\n\t\t\tvar v = 0;\r\n\t\t\tfor ( var k=0; k<4; ++k ) \r\n\t\t\t{\r\n\t\t\t\tv += A[j+4*k] * B[k+4*i];\r\n\t\t\t}\r\n\t\t\tC.push(v);\r\n\t\t}\r\n\t}\r\n\treturn C;\r\n}", "MatrixReRender(newRow, newCol)\n {\n // updates this field for tracking purposes...\n this.activeIndeces = {\n row: newRow,\n col: newCol\n }\n this.HTMLMatrix = this.MatrixDom(this.Matrix, this.activeIndeces.col, this.activeIndeces.row);\n }", "function multiplyMatrix4x4(...matricies) {\r\n return matricies.reduce((a, b) => {\r\n return [\r\n b[0] * a[0] + b[1] * a[4] + b[2] * a[8] + b[3] * a[12],\r\n b[0] * a[1] + b[1] * a[5] + b[2] * a[9] + b[3] * a[13],\r\n b[0] * a[2] + b[1] * a[6] + b[2] * a[10] + b[3] * a[14],\r\n b[0] * a[3] + b[1] * a[7] + b[2] * a[11] + b[3] * a[15],\r\n b[4] * a[0] + b[5] * a[4] + b[6] * a[8] + b[7] * a[12],\r\n b[4] * a[1] + b[5] * a[5] + b[6] * a[9] + b[7] * a[13],\r\n b[4] * a[2] + b[5] * a[6] + b[6] * a[10] + b[7] * a[14],\r\n b[4] * a[3] + b[5] * a[7] + b[6] * a[11] + b[7] * a[15],\r\n b[8] * a[0] + b[9] * a[4] + b[10] * a[8] + b[11] * a[12],\r\n b[8] * a[1] + b[9] * a[5] + b[10] * a[9] + b[11] * a[13],\r\n b[8] * a[2] + b[9] * a[6] + b[10] * a[10] + b[11] * a[14],\r\n b[8] * a[3] + b[9] * a[7] + b[10] * a[11] + b[11] * a[15],\r\n b[12] * a[0] + b[13] * a[4] + b[14] * a[8] + b[15] * a[12],\r\n b[12] * a[1] + b[13] * a[5] + b[14] * a[9] + b[15] * a[13],\r\n b[12] * a[2] + b[13] * a[6] + b[14] * a[10] + b[15] * a[14],\r\n b[12] * a[3] + b[13] * a[7] + b[14] * a[11] + b[15] * a[15],\r\n ];\r\n });\r\n}", "function helper(matrix, offset, curLen) {\n for (let i = 0; i < curLen; i++) {\n const temp = matrix[offset + curLen - i][offset];\n matrix[offset + curLen - i][offset] = matrix[offset + curLen][offset + curLen - i];\n matrix[offset + curLen][offset + curLen - i] = matrix[offset + i][offset + curLen];\n matrix[offset + i][offset + curLen] = matrix[offset][offset + i];\n matrix[offset][offset + i] = temp;\n }\n}", "function multiplyAll(arr) {\n var product = 1;\n for (var i = 0; i < arr.length; i++) {\n for (var j = 0; j < arr[i].length; j++) {\n product = product * arr[i][j];\n }\n }\n return product;\n}", "copy() {\r\n let result = new Matrix(this.rows,this.cols);\r\n result.data = this.data.slice(0);\r\n return result;\r\n }", "function multRows(matrix, row, scalar){\n for (let i=0; i < matrix[row].length; i++){\n //matrix[row][i] *= scalar;\n matrix[row][i] = matrix[row][i].mul(scalar);\n }\n return matrix;\n}", "createFinalMatrix(){\n this.matrix = mat4.create(); \n\n // Fetches the translation\n const translateCoordinates = [0, 0, 0];\n\n // Computes the matrix\n this.matrix = mat4.translate(this.matrix, this.matrix, translateCoordinates);\n }", "setMatrix (props) {\n const { value, size, ecl } = props\n this._matrix = genMatrix(value, ecl)\n this._cellSize = size / this._matrix.length\n this._path = this.transformMatrixIntoPath()\n }", "multiply(other) {\n other = binding.webIDL.dictionaries.DOMMatrixInit(other);\n\n const implReturnValue = this[_impl].multiply(other);\n // This is wrong; should be DOMMatrix. Hopefully good enough for now.\n return binding.webIDL.implsToWrappers.DOMMatrixReadOnly(implReturnValue);\n }", "function matrixMult(m1, m2) {\n\tvar m00 = m1[0][0] * m2[0][0] + m1[0][1] * m2[1][0];\n\tvar m01 = m1[0][0] * m2[0][1] + m1[0][1] * m2[1][1];\n\tvar m10 = m1[1][0] * m2[0][0] + m1[1][1] * m2[1][0];\n\tvar m11 = m1[1][0] * m2[0][1] + m1[1][1] * m2[1][1];\n return [[m00, m01], [m10, m11]];\n}", "function matrixMultiply(a, b) {\n matrix = [];\n \n matrix[ 0] = a[0 * 4 + 0] * b[0 * 4 + 0] + a[0 * 4 + 1] * b[1 * 4 + 0] + a[0 * 4 + 2] * b[2 * 4 + 0] + a[0 * 4 + 3] * b[3 * 4 + 0];\n matrix[ 1] = a[0 * 4 + 0] * b[0 * 4 + 1] + a[0 * 4 + 1] * b[1 * 4 + 1] + a[0 * 4 + 2] * b[2 * 4 + 1] + a[0 * 4 + 3] * b[3 * 4 + 1];\n matrix[ 2] = a[0 * 4 + 0] * b[0 * 4 + 2] + a[0 * 4 + 1] * b[1 * 4 + 2] + a[0 * 4 + 2] * b[2 * 4 + 2] + a[0 * 4 + 3] * b[3 * 4 + 2];\n matrix[ 3] = a[0 * 4 + 0] * b[0 * 4 + 3] + a[0 * 4 + 1] * b[1 * 4 + 3] + a[0 * 4 + 2] * b[2 * 4 + 3] + a[0 * 4 + 3] * b[3 * 4 + 3];\n matrix[ 4] = a[1 * 4 + 0] * b[0 * 4 + 0] + a[1 * 4 + 1] * b[1 * 4 + 0] + a[1 * 4 + 2] * b[2 * 4 + 0] + a[1 * 4 + 3] * b[3 * 4 + 0];\n matrix[ 5] = a[1 * 4 + 0] * b[0 * 4 + 1] + a[1 * 4 + 1] * b[1 * 4 + 1] + a[1 * 4 + 2] * b[2 * 4 + 1] + a[1 * 4 + 3] * b[3 * 4 + 1];\n matrix[ 6] = a[1 * 4 + 0] * b[0 * 4 + 2] + a[1 * 4 + 1] * b[1 * 4 + 2] + a[1 * 4 + 2] * b[2 * 4 + 2] + a[1 * 4 + 3] * b[3 * 4 + 2];\n matrix[ 7] = a[1 * 4 + 0] * b[0 * 4 + 3] + a[1 * 4 + 1] * b[1 * 4 + 3] + a[1 * 4 + 2] * b[2 * 4 + 3] + a[1 * 4 + 3] * b[3 * 4 + 3];\n matrix[ 8] = a[2 * 4 + 0] * b[0 * 4 + 0] + a[2 * 4 + 1] * b[1 * 4 + 0] + a[2 * 4 + 2] * b[2 * 4 + 0] + a[2 * 4 + 3] * b[3 * 4 + 0];\n matrix[ 9] = a[2 * 4 + 0] * b[0 * 4 + 1] + a[2 * 4 + 1] * b[1 * 4 + 1] + a[2 * 4 + 2] * b[2 * 4 + 1] + a[2 * 4 + 3] * b[3 * 4 + 1];\n matrix[10] = a[2 * 4 + 0] * b[0 * 4 + 2] + a[2 * 4 + 1] * b[1 * 4 + 2] + a[2 * 4 + 2] * b[2 * 4 + 2] + a[2 * 4 + 3] * b[3 * 4 + 2];\n matrix[11] = a[2 * 4 + 0] * b[0 * 4 + 3] + a[2 * 4 + 1] * b[1 * 4 + 3] + a[2 * 4 + 2] * b[2 * 4 + 3] + a[2 * 4 + 3] * b[3 * 4 + 3];\n matrix[12] = a[3 * 4 + 0] * b[0 * 4 + 0] + a[3 * 4 + 1] * b[1 * 4 + 0] + a[3 * 4 + 2] * b[2 * 4 + 0] + a[3 * 4 + 3] * b[3 * 4 + 0];\n matrix[13] = a[3 * 4 + 0] * b[0 * 4 + 1] + a[3 * 4 + 1] * b[1 * 4 + 1] + a[3 * 4 + 2] * b[2 * 4 + 1] + a[3 * 4 + 3] * b[3 * 4 + 1];\n matrix[14] = a[3 * 4 + 0] * b[0 * 4 + 2] + a[3 * 4 + 1] * b[1 * 4 + 2] + a[3 * 4 + 2] * b[2 * 4 + 2] + a[3 * 4 + 3] * b[3 * 4 + 2];\n matrix[15] = a[3 * 4 + 0] * b[0 * 4 + 3] + a[3 * 4 + 1] * b[1 * 4 + 3] + a[3 * 4 + 2] * b[2 * 4 + 3] + a[3 * 4 + 3] * b[3 * 4 + 3];\n return matrix;\n}", "function multiplyAll(arr) {\n var product = 1;\n\n for (var i = 0; i < arr.length; i++) {\n for (var j = 0; j < arr[i].length; j++) {\n product *= arr[i][j];\n }\n }\n\n return product;\n}", "function multiplyAll(arr){\n var product = 1;\n for (var i=0; i < arr.length; i++){\n for (var j=0; j < arr[i].length; j++){\n product *= arr[i][j];\n }\n }\n return product;\n}", "setMatrix(m) {\n\tthis.matrix = m;\n }", "function mat4Multiply(firstMatrix, secondMatrix){\n var resultMatrix = [];\n for(i = 0; i < 4; i++){\n for(j = 0; j < 4; j ++){\n var value = 0;\n for(k = 0; k < 4; k++){\n value += firstMatrix[i * 4 + k] * secondMatrix[k * 4 + j];\n }\n resultMatrix[i * 4 + j] = value;\n }\n }\n return resultMatrix;\n}", "function myMatrix()\n{\n this.colNum = 2;\n this.rowNum = 2;\n //this.dataColNum = this.colNum - 2;\n //this.dataRowNum = this.rowNum - 2;\n this.matrix = [];\n\tthis.currentColRWMethod = null;\n\tthis.currentRowRWMethod = null;\n this.currentPurifyMethod = [];//store such as [{direct:col, method:\"平均法\"}, {{direct:col, method:\"累加法\"}}]\n\n this.addCurrentPurifyMethod = function(direct, method)\n {\n console.info(\"entry addCurrentPurifyMethod\");\n var i = 0;\n var methodEle = null;\n var found = false;\n\n for(i = 0; i < this.currentPurifyMethod.length; i++)\n {\n methodEle = this.currentPurifyMethod[i];\n if(methodEle.direct == direct && methodEle.method == method)\n {\n found = true;\n this.currentPurifyMethod[i].direct = direct;\n this.currentPurifyMethod[i].method = method;\n }\n }\n if(false == found)\n {\n methodEle = {\"direct\":direct, \"method\":method};\n this.currentPurifyMethod[i] = methodEle;\n }\n\n console.info(\"currentPurifyMethod :\", this.currentPurifyMethod);\n }\n\n this.delCurrentPurifyMethod = function(direct, method)\n {\n console.info(\"entry delCurrentPurifyMethod\");\n var i = 0;\n var methodEle = null;\n for(i = 0; i < this.currentPurifyMethod.length; i++)\n {\n methodEle = this.currentPurifyMethod[i];\n if(methodEle.direct == direct && methodEle.method == method)\n {\n this.currentPurifyMethod.splice(i, 1);//delete this one\n }\n }\n }\n\n \n this.setPurifyResult = function()\n {\n var i = 0;\n var g_purifyData = new purifyData();\n var methodEle = null;\n var purifyDataMatrix = this.getUsefulPureDataMatrix();\n console.info(\"entry setPurifyResult\");\n var rowAppendResList = [];\n var colAppendResList = [];\n\n\n for(i = 0; i < this.currentPurifyMethod.length; i++)\n {\n methodEle = this.currentPurifyMethod[i];\n var method = g_purifyData.getPurifyDataMethod(methodEle.method);\n var resArray = [];\n \n if(null != method)\n {\n if(\"纵向\" == methodEle.direct)\n {\n var methodName = methodEle.method;\n resArray = method.method(purifyDataMatrix, this.getPureDataColNum(), this.getPureDataRowNum(), 1);\n rowAppendResList.push({\"name\":methodName, \"list\":resArray});\n\n }\n else\n {\n var methodName = methodEle.method;\n resArray = method.method(purifyDataMatrix, this.getPureDataColNum(), this.getPureDataRowNum(), 0);\n colAppendResList.push({\"name\":methodName, \"list\":resArray});\n }\n }\n console.info(\"rowAppendResList = \", rowAppendResList);\n console.info(\"colAppendResList = \", colAppendResList);\n\n }\n //this.appendRowResData(rowAppendResList);\n this.appendResData(rowAppendResList, colAppendResList);\n\n }\n\t\n this.getPureDataColNum = function()\n {\n var i = 0;\n var colNum = 0;\n for(i = 0; i < this.colNum; i++)\n {\n var e = JSON.parse(this.matrix[0][i]);\n if(e.cellType == \"colHeader\")\n {\n colNum += 1;\n }\n }\n return colNum;\n }\n\n this.getPureDataRowNum = function()\n {\n var i = 0;\n var rowNum = 0;\n for(i = 0; i < this.rowNum; i++)\n {\n var e = JSON.parse(this.matrix[i][0]);\n if(e.cellType == \"rowHeader\")\n {\n rowNum += 1;\n }\n }\n return rowNum;\n }\n\t\n\tthis.loadData = function(colNum, rowNum, currentColRWMethod, currentRowRWMethod, matrix)\n\t{\n\t\tthis.colNum = colNum;\n\t\tthis.rowNum = rowNum;\n\t\tthis.currentColRWMethod = currentColRWMethod;\n\t\tthis.currentRowRWMethod = currentRowRWMethod;\n\t\tthis.matrix = matrix;\n\t}\n\n this.initMatrix = function(x, y)\n {\n this.colNum = x + 2;\n this.rowNum = y + 2;\n var i = 0;\n var j = 0;\n this.matrix = new Array();\n for(i = 0; i < this.rowNum; i++)\n {\n this.matrix[i] = new Array();\n for(j = 0; j < this.colNum; j++)\n {\n var e = new ele()\n var res = true;\n if(i < 2 && j < 2)//the blank area\n {\n res = e.setEle(\"blank\", \"undefine\", \"\", \"\", \"NULL\", i, j);\n }\n else if(i == 0 && j >= 2)//colHeader\n {\n res = e.setEle(\"colHeader\", \"zifuchang\", \"\", \"\", \"col\"+(j-2).toString(), i, j);\n }\n else if(j == 0 && i >= 2)//rowHeader\n {\n res = e.setEle(\"rowHeader\", \"zifuchang\", \"\", \"\", \"row\"+(i-2).toString(), i, j);\n }\n else if(i == 1 && j >= 2)//colRW\n {\n res = e.setEle(\"colRW\", \"xiaoshu\", \"col\"+(j-2).toString(), \"\", \"0.00\", i, j);\n }\n else if(j == 1 && i >= 2)//rowRW\n {\n res = e.setEle(\"rowRW\", \"xiaoshu\", \"\", \"row\"+(i-2).toString(), \"0.00\", i, j);\n }\n else\n {\n res = e.setEle(\"data\", \"xiaoshu\", \"col\"+(j-2).toString(), \"row\"+(i-2).toString(), \"0.00\", i, j);\n }\n \n //var res \n if(false == res)\n {\n console.error(\"incorrect ele data\");\n return false;\n }\n else\n {\n var jsonStr = JSON.stringify(e);\n this.matrix[i][j] = jsonStr;\n //console.info(\"this.matrix[\",i,\"][\",j,\"] = \",this.matrix[i][j]);\n }\n }\n }\n return true;\n\n }\n\n this.initBlankMatrix = function(x, y)\n {\n this.colNum = x + 2;\n this.rowNum = y + 2;\n var i = 0;\n var j = 0;\n this.matrix = new Array();\n for(i = 0; i < this.rowNum; i++)\n {\n this.matrix[i] = new Array();\n for(j = 0; j < this.colNum; j++)\n {\n var e = new ele()\n var res = true;\n \n res = e.setEle(\"blank\", \"undefine\", \"\", \"\", \"NULL\", i, j);\n \n \n \n //var res \n if(false == res)\n {\n console.error(\"incorrect ele data\");\n return false;\n }\n else\n {\n var jsonStr = JSON.stringify(e);\n this.matrix[i][j] = jsonStr;\n //console.info(\"this.matrix[\",i,\"][\",j,\"] = \",this.matrix[i][j]);\n }\n }\n }\n return true;\n\n }\n\t\n\tthis.generateJsonData = function()\n\t{\n\t\tvar jsonFormatTable = JSON.stringify(this.matrix);\n\t\tconsole.info(\"********************************************\");\n\t\tconsole.info(jsonFormatTable);\n\t\tconsole.info(\"********************************************\");\n\t}\n\n\t/*\n this.modifyCell = function(rowNo, colNo, jsonStr)\n {\n this.matrix[rowNo][colNo] = jsonStr;\n return true;\n\n }\n\t*/\n\t\n\tthis.modifyPureData = function(rowNo, colNo, data, dataType)\n\t{\n\t\tif(rowNo < 2 || rowNo > this.rowNum)\n\t\t{\n\t\t\tconsole.error(\"incorrect rowNo\", rowNo);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(colNo < 2 || colNo > this.colNum)\n\t\t{\n\t\t\tconsole.error(\"incorrect colNo\", colNo);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(false == g_eleType.checkDataValide(data, dataType))\n\t\t{\n\t\t\tconsole.error(\"incorrect data\", data, \"unfit type\", dataType);\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tvar e = JSON.parse(this.matrix[rowNo][colNo]);\n\t\te.data = data;\n\t\tthis.matrix[rowNo][colNo] = JSON.stringify(e);\n\t\treturn true;\n\t\t\n\t\t\n\t\t\n\t}\n\t\n\tthis.modifyColumnHeader = function(colNo, newColName, dataType)//call by change column header\n\t{\n\t\tif(colNo < 2 || colNo > this.colNum)\n\t\t{\n\t\t\tconsole.error(\"incorrect colNo\", colNo);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(false == g_eleType.isRealDataTypeValide(dataType))\n {\n console.error(\"incorrect data type\", dataType);\n return false;\n }\n\t\t\n\t\tvar i = 0;\n\t\t\n \n\t\t\tfor(i = 0; i < this.rowNum; i++)\n\t\t\t{\n\t\t\t\tvar e = JSON.parse(this.matrix[i][colNo]);\n\t\t\t\tif(i == 0)//the column header line\n\t\t\t\t{\n\t\t\t\t\te.data = newColName;\n\t\t\t\t}\n\t\t\t\telse if(i == 1)//weight line\n\t\t\t\t{\n\t\t\t\t\t//do nothing\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\te.colHeaderName = newColName;\n\t\t\t\t\te.dataType = dataType;\n\t\t\t\t}\n\t\t\t\tthis.matrix[i][colNo] = JSON.stringify(e);\n\t\t\t}\n \n\t\treturn true;\n\t}\n\t\n\tthis.modifyRowHeader = function(rowNo, newRowName)//call by change row header\n\t{\n\t\tif(rowNo < 2 || rowNo > this.rowNum)\n\t\t{\n\t\t\tconsole.error(\"incorrect rowNo\", rowNo);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n\t\tvar i = 0;\n\t\t\n \n\t\t\tfor(i = 0; i < this.colNum; i++)\n\t\t\t{\n\t\t\t\tvar e = JSON.parse(this.matrix[rowNo][i]);\n\t\t\t\tif(i == 0)//the row header line\n\t\t\t\t{\n\t\t\t\t\te.data = newRowName;\n\t\t\t\t}\n\t\t\t\telse if(i == 1)//weight line\n\t\t\t\t{\n\t\t\t\t\t//do nothing\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\te.rowHeaderName = newRowName;\n\t\t\t\t}\n\t\t\t\tthis.matrix[rowNo][i] = JSON.stringify(e);\n\t\t\t}\n \n\t\treturn true;\n\t}\n\n this.moveCol = function(srcColNo, destColNo)\n {\n if(srcColNo < 2 || destColNo < 2)\n {\n console.error(\"moveCol, incorrect srcColNo:\", srcColNo, \"or destColNo:\", destColNo);\n return false;\n }\n var i = 0;\n var j = 0;\n var tempCol = [];\n for(i = 0; i < this.rowNum; i++)\n {\n tempCol[i] = this.matrix[i][srcColNo];\n }\n\n if(srcColNo < destColNo)\n {\n for(i = srcColNo; i < destColNo; i++)\n {\n for(j = 0; j < this.rowNum; j++)\n {\n this.matrix[j][i] = this.matrix[j][i + 1];\n }\n }\n }\n else\n {\n for(i = srcColNo; i > destColNo; i--)\n {\n for(j = 0; j < this.rowNum; j++)\n {\n this.matrix[j][i] = this.matrix[j][i - 1];\n }\n }\n }\n\n for(i = 0; i < this.rowNum; i++)\n {\n this.matrix[i][destColNo] = tempCol[i];\n }\n\n\n }\n\n\n this.moveRow = function(srcRowNo, destRowNo)\n {\n if(srcRowNo < 2 || destRowNo < 2)\n {\n console.error(\"moveRow, incorrect srcRowNo:\", srcRowNo, \"or destRowNo:\", destRowNo);\n return false;\n }\n var i = 0;\n var j = 0;\n var tempRow = [];\n for(i = 0; i < this.colNum; i++)\n {\n tempRow[i] = this.matrix[srcRowNo][i];\n }\n\n if(srcRowNo < destRowNo)\n {\n for(i = srcRowNo; i < destRowNo; i++)\n {\n for(j = 0; j < this.colNum; j++)\n {\n this.matrix[i][j] = this.matrix[i + 1][j];\n }\n }\n }\n else\n {\n for(i = srcRowNo; i > destRowNo; i--)\n {\n for(j = 0; j < this.colNum; j++)\n {\n this.matrix[i][j] = this.matrix[i - 1][j];\n }\n }\n }\n\n for(i = 0; i < this.colNum; i++)\n {\n this.matrix[destRowNo][i] = tempRow[i];\n }\n\n\n }\n\n\n this.printMatrix = function()\n {\n var i = 0;\n var j = 0;\n for(i = 0; i < this.rowNum; i++)\n {\n for(j = 0; j < this.colNum; j++)\n {\n console.info(\"matrix[\", i, \"][\", j, \"] = \", this.matrix[i][j]);\n }\n }\n }\n\n this.getShowPureDataMatrix = function()\n {\n console.info(\"entry getShowPureDataMatrix\");\n var i = 0;\n var j = 0;\n\t\tthis.setMatrixColRW();\n\t\tthis.setMatrixRowRW();\n this.setPurifyResult();\n var dataMatrix = new Array();\n for(i = 0; i < this.rowNum; i++)\n {\n dataMatrix[i] = new Array();\n for(j = 0; j < this.colNum; j++)\n {\n var e = JSON.parse(this.matrix[i][j]);\n dataMatrix[i][j] = e.data;\n }\n }\n this.clearResData();\n return dataMatrix;\n }\n\t\n\tthis.getUsefulPureDataMatrix = function()\n {\n /*\n var i = 0;\n var j = 0;\n\n var usefulDataMatrix = new Array();\n for(i = 0; i < this.rowNum - 2 ; i++)\n {\n usefulDataMatrix[i] = new Array();\n for(j = 0; j < this.colNum - 2; j++)\n {\n var e = JSON.parse(this.matrix[i + 2][j + 2]);\n usefulDataMatrix[i][j] = e.data;\n }\n }\n return usefulDataMatrix;\n */\n\n var i = 0;\n var j = 0;\n\n var usefulDataMatrix = new Array();\n for(i = 0; i < this.getPureDataRowNum() ; i++)\n {\n usefulDataMatrix[i] = new Array();\n for(j = 0; j < this.getPureDataColNum(); j++)\n {\n var e = JSON.parse(this.matrix[i + 2][j + 2]);\n usefulDataMatrix[i][j] = e.data;\n }\n }\n return usefulDataMatrix;\n }\n\n this.isColHeaderNameExist = function(colHeaderName)\n {\n var i = 0;\n for(i = 2; i < this.colNum; i++)\n {\n var e = JSON.parse(this.matrix[0][i]);\n if(colHeaderName == e.data)//for colHeader cell, colHeaderName store in data field\n {\n return true;\n }\n }\n return false;\n }\n\n this.isRowHeaderNameExist = function(rowHeaderName)\n {\n var i = 0;\n for(i = 2; i < this.rowNum; i++)\n {\n var e = JSON.parse(this.matrix[i][0]);\n if(rowHeaderName == e.data)//for rowHeader cell, rowHeaderName store in data field\n {\n return true;\n }\n }\n return false;\n }\n\n\n this.copyCurrentMatrix = function()\n {\n var copyMatrix = this.matrix;\n return copyMatrix;\n }\n\n this.copyCurrentMatrix2 = function()\n {\n var i = 0;\n var j = 0;\n var copyMatrix;\n copyMatrix = new Array();\n for(i = 0; i < this.getPureDataRowNum() + 2; i++)\n {\n copyMatrix[i] = new Array();\n for(j = 0; j < this.getPureDataColNum() + 2; j++)\n {\n copyMatrix[i][j] = this.matrix[i][j];\n }\n }\n return copyMatrix;\n }\n\n this.getColHeaderNameByColNo = function(colNo)\n {\n var e = JSON.parse(this.matrix[0][colNo]);\n return e.data;\n }\n\n this.getRowHeaderNameByRowNo = function(rowNo)\n {\n var e = JSON.parse(this.matrix[rowNo][0]);\n return e.data;\n }\n\n this.getDataTypeByColNo= function(colNo, copyMatrix)//put copyMatrix here, since row2 could be just the insert row\n {\n var e = JSON.parse(copyMatrix[2][colNo]);\n return e.dataType;\n }\n\n\n this.insertCol = function(colNo, colHeaderName, dataType)\n {\n console.info(\"--------insert col colNo:\", colNo, \"colHeaderName:\", colHeaderName, \"dataType:\", dataType, \"------------------\");\n if(this.colNum <= 2 || this.rowNum <= 2)\n {\n console.error(\"matrix is not init yet\");\n return false;\n }\n if(colNo < 2 || colNo > this.colNum)\n {\n console.error(\"incorrect colNo\", colNo);\n return false;\n }\n if(true == this.isColHeaderNameExist(colHeaderName))\n {\n console.error(\"colHeaderName \", colHeaderName, \"already exist\");\n return false;\n }\n if(false == g_eleType.isRealDataTypeValide(dataType))\n {\n console.error(\"incorrect data type\", dataType);\n return false;\n }\n\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.colNum;\n var oldRowNum = this.rowNum;\n \n this.initMatrix(oldColNum + 1 - 2, oldRowNum - 2);\n\n for(i = 0; i < this.rowNum; i++)\n {\n\n for(j = 0; j < this.colNum; j++)\n {\n \n if(j > colNo)\n {\n this.matrix[i][j] = copyMatrix[i][j - 1];\n }\n else if(j < colNo)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n else\n {\n //console.info(\"tttttttttttttttttttttttttttttttt\");\n var e = new ele();\n if(i == 0)//header\n {\n res = e.setEle(\"colHeader\", \"zifuchang\", \"\", \"\", colHeaderName, i,j);\n }\n else if(i == 1)//colRW\n {\n res = e.setEle(\"colRW\", \"xiaoshu\", colHeaderName, \"\", \"0.01\", i, j);\n }\n else//data\n {\n console.info(\"here.....\");\n res = e.setEle(\"data\", dataType, colHeaderName, this.getRowHeaderNameByRowNo(i), \"0.02\", i, j);\n }\n\n //console.info(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\");\n\n if(false == res)\n {\n console.info(\"incorrect new insert data\");\n return false;\n }\n this.matrix[i][j] = JSON.stringify(e);\n\n }\n }\n }\n return true;\n \n }\n\n\n\n\n this.getCellDataType = function(rowNo, colNo)\n {\n if((rowNo >= this.rowNum) || (colNo >= this.colNum))\n {\n return;\n }\n //console.info(\"rowNo = \", rowNo, \"colNo = \", colNo);\n var e = JSON.parse(this.matrix[rowNo][colNo]);\n return e.cellType;\n }\n\n this.appendResData = function(rowAppendResList, colAppendResList)\n {\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.getPureDataColNum() + 2;\n var oldRowNum = this.getPureDataRowNum() + 2;\n var rowAppendLength = rowAppendResList.length;\n var colAppendLength = colAppendResList.length;\n //var rowAppendLength = 2;\n //var colAppendLength = 2;\n\n\n console.info(\"entry appendRowResData rowAppendLength = \", rowAppendLength, \"colAppendLength = \", colAppendLength, \n \"oldColnum = \", oldColNum, \"oldRowNum = \", oldRowNum);\n \n\n //this.initMatrix(oldColNum + colAppendLength - 2, oldRowNum + rowAppendLength - 2);\n this.initBlankMatrix(oldColNum + colAppendLength - 2, oldRowNum + rowAppendLength - 2);\n \n for(i = 0; i < this.rowNum - rowAppendLength; i++)\n {\n for(j = 0; j < this.colNum - colAppendLength; j++)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n }\n console.info(\"this.rowNum = \", this.rowNum, \"this.colNum = \", this.colNum);\n\n\n /* \n for(i = 0; i < rowAppendLength; i++)\n {\n var methodNameEle = new ele();\n var rowRWEle = new ele();\n var insertRowNum = this.rowNum - rowAppendLength + i;//default\n //var methodName = rowAppendResList[i].name;\n var methodName = \"ttt\";\n //var dataList = rowAppendResList[i].list;\n console.info(\"insertRowNum = \", insertRowNum, \"methodName = \", methodName);\n \n res = methodNameEle.setEle(\"rowResMethod\", \"zifuchang\", \"\", \"\", methodName, insertRowNum, 0);\n this.matrix[insertRowNum][0] = JSON.stringify(methodNameEle);\n res = rowRWEle.setEle(\"blank\", \"zifuchang\", \"\", \"\", \"\", insertRowNum, 1);\n this.matrix[insertRowNum][1] = JSON.stringify(rowRWEle);\n \n \n for(j = 2; j < oldColNum; j++)\n {\n var e = new ele();\n res = e.setEle(\"rowRes\", \"zifuchang\", \"\", \"\", 33, insertRowNum, j);\n this.matrix[insertRowNum][j] = JSON.stringify(e);\n }\n \n \n }\n\n for(i = 0; i < colAppendLength; i++)\n {\n var methodNameEle = new ele();\n var colRWEle = new ele();\n var insertColNum = this.colNum - colAppendLength + i;//default\n //var methodName = colAppendResList[i].name;\n var methodName = \"kkk\";\n //var dataList = colAppendResList[i].list;\n console.info(\"insertColNum = \", insertColNum, \"methodName = \", methodName);\n //this.setEle = function(cellType, dataType, colHeaderName, rowHeaderName, data, i, j)\n res = methodNameEle.setEle(\"colResMethod\", \"zifuchang\", \"\", \"\", methodName, 0, insertColNum);\n this.matrix[0][insertColNum] = JSON.stringify(methodNameEle);\n res = colRWEle.setEle(\"blank\", \"zifuchang\", \"\", \"\", \"\", 1, insertColNum);\n this.matrix[1][insertColNum] = JSON.stringify(colRWEle);\n \n \n for(j = 2; j < oldRowNum; j++)\n {\n var e = new ele();\n res = e.setEle(\"colRes\", \"zifuchang\", \"\", \"\", 44, j, insertColNum);\n this.matrix[j][insertColNum] = JSON.stringify(e);\n }\n \n \n }\n */\n\n\n \n for(i = 0; i < rowAppendLength; i++)\n {\n var methodNameEle = new ele();\n var rowRWEle = new ele();\n var insertRowNum = this.rowNum - rowAppendLength + i;//default\n var methodName = rowAppendResList[i].name;\n var dataList = rowAppendResList[i].list;\n console.info(\"insertRowNum = \", insertRowNum, \"methodName = \", methodName);\n \n res = methodNameEle.setEle(\"rowResMethod\", \"zifuchang\", \"\", \"\", methodName, insertRowNum, 0);\n this.matrix[insertRowNum][0] = JSON.stringify(methodNameEle);\n res = rowRWEle.setEle(\"blank\", \"zifuchang\", \"\", \"\", \"\", insertRowNum, 1);\n this.matrix[insertRowNum][1] = JSON.stringify(rowRWEle);\n \n \n for(j = 2; j < oldColNum; j++)\n {\n var e = new ele();\n res = e.setEle(\"rowRes\", \"zifuchang\", \"\", \"\", dataList[j - 2], insertRowNum, j);\n this.matrix[insertRowNum][j] = JSON.stringify(e);\n }\n \n }\n\n for(i = 0; i < colAppendLength; i++)\n {\n var methodNameEle = new ele();\n var colRWEle = new ele();\n var insertColNum = this.colNum - colAppendLength + i;//default\n var methodName = colAppendResList[i].name;\n var dataList = colAppendResList[i].list;\n console.info(\"insertColNum = \", insertColNum, \"methodName = \", methodName);\n //this.setEle = function(cellType, dataType, colHeaderName, rowHeaderName, data, i, j)\n res = methodNameEle.setEle(\"colResMethod\", \"zifuchang\", \"\", \"\", methodName, 0, insertColNum);\n this.matrix[0][insertColNum] = JSON.stringify(methodNameEle);\n res = colRWEle.setEle(\"blank\", \"zifuchang\", \"\", \"\", \"\", 1, insertColNum);\n this.matrix[1][insertColNum] = JSON.stringify(colRWEle);\n \n \n for(j = 2; j < oldRowNum; j++)\n {\n var e = new ele();\n res = e.setEle(\"colRes\", \"zifuchang\", \"\", \"\", dataList[j - 2], j, insertColNum);\n this.matrix[j][insertColNum] = JSON.stringify(e);\n }\n \n }\n \n \n \n }\n\n this.clearResData = function()\n {\n var appendColNum = 0;\n var appendRowNum = 0;\n\n console.info(\"entry clearResData purifyMethodMethod length = \", this.currentPurifyMethod.length);\n \n for(i = 0; i < this.currentPurifyMethod.length; i++)\n {\n methodEle = this.currentPurifyMethod[i];\n //var method = g_purifyData.getPurifyDataMethod(methodEle.method);\n \n \n //if(null != method)\n //{\n if(\"纵向\" == methodEle.direct)\n {\n appendRowNum += 1;\n //this.deleteRow(this.rowNum - 2 - 1);\n }\n else\n {\n appendColNum += 1;\n //this.deleteCol(this.colNum - 2 - 1);\n }\n //}\n //console.info(\"rowAppendResList = \", rowAppendResList);\n //console.info(\"colAppendResList = \", colAppendResList);\n\n }\n console.info(\"delete appendRowNum = \", appendRowNum, \"delete appendColNum = \", appendColNum);\n \n }\n\n\n this.insertRow = function(rowNo, rowHeaderName)\n {\n console.info(\"--------insert row rowNo:\", rowNo, \"rowHeaderName:\", rowHeaderName, \"------------------\");\n if(this.colNum <= 2 || this.rowNum <= 2)\n {\n console.error(\"matrix is not init yet\");\n return false;\n }\n if(rowNo < 2 || rowNo >= this.rowNum)\n {\n console.error(\"incorrect rowNo\", rowNo);\n return false;\n }\n if(true == this.isRowHeaderNameExist(rowHeaderName))\n {\n console.error(\"rowHeaderName \", rowHeaderName, \"already exist\");\n return false;\n }\n\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.colNum;\n var oldRowNum = this.rowNum;\n \n this.initMatrix(oldColNum - 2, oldRowNum + 1 - 2);\n\n for(i = 0; i < this.rowNum; i++)\n {\n for(j = 0; j < this.colNum; j++)\n {\n if(i > rowNo)\n {\n this.matrix[i][j] = copyMatrix[i - 1][j];\n }\n else if(i < rowNo)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n else\n {\n //console.info(\"tttttttttttttttttttttttttttttttt\");\n var e = new ele();\n if(j == 0)//header\n {\n res = e.setEle(\"rowHeader\", \"zifuchang\", \"\", \"\", rowHeaderName, i,j);\n }\n else if(j == 1)//rowRW\n {\n res = e.setEle(\"rowRW\", \"xiaoshu\", \"\", rowHeaderName, \"0.01\", i, j);\n }\n else//data\n {\n res = e.setEle(\"data\", this.getDataTypeByColNo(j, copyMatrix), \n this.getColHeaderNameByColNo(j), rowHeaderName, \"0.02\", i, j);\n }\n //console.info(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\");\n\n if(false == res)\n {\n console.info(\"incorrect new insert data\");\n return false;\n }\n this.matrix[i][j] = JSON.stringify(e);\n\n }\n }\n }\n return true;\n \n }\n\n\n this.deleteCol = function(colNo)\n { \n console.info(\"----------------deleteCol colNo: \", colNo, \"----------------------\");\n if(this.colNum <= 2 || this.rowNum <= 2)\n {\n console.error(\"matrix is not init yet\");\n return false;\n }\n\n\n if(colNo < 2 || colNo > this.colNum)\n {\n console.error(\"incorrect colNo\", colNo);\n return false;\n }\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.colNum;\n var oldRowNum = this.rowNum;\n var i = 0;\n var j = 0;\n\n this.initMatrix(oldColNum - 1 - 2, oldRowNum - 2);\n\n for(i = 0; i < this.rowNum; i++)\n {\n for(j = 0; j < oldColNum; j++)\n {\n\n if(j > colNo)\n {\n this.matrix[i][j - 1] = copyMatrix[i][j];\n }\n else if(j < colNo)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n else\n {\n //do nothing\n }\n }\n }\n return true;\n\n }\n\n this.deleteRow = function(rowNo)\n { \n\n console.info(\"----------------deleteRow rowNo: \", rowNo, \"----------------------\");\n if(this.colNum <= 2 || this.rowNum <= 2)\n {\n console.error(\"matrix is not init yet\");\n return false;\n }\n\n\n if(rowNo < 2 || rowNo > this.rowNum)\n {\n console.error(\"incorrect rowNo\", rowNo);\n return false;\n }\n var copyMatrix = this.copyCurrentMatrix2();\n var oldColNum = this.colNum;\n var oldRowNum = this.rowNum;\n var i = 0;\n var j = 0;\n\n\n this.initMatrix(oldColNum - 2, oldRowNum - 1 - 2);\n\n for(i = 0; i < oldRowNum; i++)\n {\n for(j = 0; j < this.colNum; j++)\n {\n if(i > rowNo)\n {\n this.matrix[i - 1][j] = copyMatrix[i][j];\n }\n else if(i < rowNo)\n {\n this.matrix[i][j] = copyMatrix[i][j];\n }\n else\n {\n //do nothing\n }\n }\n }\n return true;\n\n }\n\n this.getCellByColNoAndRowNo = function(rowNo, colNo)\n {\n if(rowNo >= this.rowNum || colNo >= this.colNum)\n {\n return \"\";\n }\n\n return this.matrix[rowNo][colNo];\n\n }\n\n\tthis.getColumnNum = function()\n\t{\n\t\treturn this.colNum;\n\t}\n\t\n\tthis.getRowNum = function()\n\t{\n\t\treturn this.rowNum;\n\t}\n\t\n\tthis.setCurrentColRWMethod = function(method)\n\t{\n\t\tthis.currentColRWMethod = method;\n\t}\n\t\n\tthis.setCurrentRowRWMethod = function(method)\n\t{\n\t\tthis.currentRowRWMethod = method;\n\t}\n\t\n\tthis.getCurrentColRWMethod = function()\n\t{\n\t\treturn this.currentColRWMethod;\n\t}\n\t\n\tthis.getCurrentRowRWMethod = function()\n\t{\n\t\treturn this.currentRowRWMethod;\n\t}\n\t\n\tthis.setMatrixColRW = function()\n {\n\t\tconsole.info(\"entry setMatrixColRW : \", this.colNum);\n var methodName = this.getCurrentColRWMethod();\n\t\tvar g_rightWeight = new rightWeight();\n\t\tvar method = g_rightWeight.getRightWeightMethod(methodName);\n\t\tif(null != method)\n\t\t{\n\t\t\tvar colRwArr = method.method(this.getUsefulPureDataMatrix, this.getPureDataColNum(), this.getPureDataRowNum(), 1);\n\t\t\tconsole.info(\"colRwArr :\", colRwArr);\n\t\t\tvar i = 0;\n /*\n\t\t\tfor (i = 2; i < this.colNum; i++)\n\t\t\t{\n\t\t\t\tvar e = new ele()\n\t\t\t\tvar res = e.setEle(\"colRW\", \"xiaoshu\", \n\t\t\t\t\tthis.getColHeaderNameByColNo(i), \"\", colRwArr[i - 2].toString(), 1, i);\n\t\t\t\t//console.info(\"RW: e = \", e);\n\t\t\t\tvar jsonStr = JSON.stringify(e);\n this.matrix[1][i] = jsonStr;\n\t\t\t}\n */\n for (i = 0; i < this.getPureDataColNum(); i++)\n {\n var e = new ele()\n var res = e.setEle(\"colRW\", \"xiaoshu\", \n this.getColHeaderNameByColNo(i + 2), \"\", colRwArr[i].toString(), 1, i + 2);\n //console.info(\"RW: e = \", e);\n var jsonStr = JSON.stringify(e);\n this.matrix[1][i + 2] = jsonStr;\n }\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconsole.error(\"setMatrixColRW error\");\n\t\t\treturn false;\n\t\t}\n\n }\n \n this.setMatrixRowRW = function()\n {\n\t\tconsole.info(\"entry setMatrixRowRW : \", this.rowNum);\n var methodName = this.getCurrentRowRWMethod();\n\t\tvar g_rightWeight = new rightWeight();\n\t\tvar method = g_rightWeight.getRightWeightMethod(methodName);\n\t\tif(null != method)\n\t\t{\n\t\t\tvar rowRwArr = method.method(this.getUsefulPureDataMatrix, this.getPureDataColNum(), this.getPureDataRowNum(), 0);\n\t\t\tconsole.info(\"rowRwArr :\", rowRwArr);\n\t\t\tvar i = 0;\n /*\n\t\t\tfor (i = 2; i < this.rowNum; i++)\n\t\t\t{\n\t\t\t\tvar e = new ele()\n\t\t\t\tvar res = e.setEle(\"rowRW\", \"xiaoshu\", \n\t\t\t\t\t\"\", this.getRowHeaderNameByRowNo(i), rowRwArr[i - 2].toString(), i, 1);\n\t\t\t\t//console.info(\"RW: e = \", e);\n\t\t\t\tvar jsonStr = JSON.stringify(e);\n this.matrix[i][1] = jsonStr;\n\t\t\t}\n */\n for (i = 0; i < this.getPureDataRowNum(); i++)\n {\n var e = new ele()\n var res = e.setEle(\"rowRW\", \"xiaoshu\", \n \"\", this.getRowHeaderNameByRowNo(i + 2), rowRwArr[i].toString(), i + 2, 1);\n //console.info(\"RW: e = \", e);\n var jsonStr = JSON.stringify(e);\n this.matrix[i + 2][1] = jsonStr;\n }\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconsole.error(\"setMatrixRowRW error\");\n\t\t\treturn false;\n\t\t}\n\n }\n\n\n}", "function MatrixMultiply (a, b)\n {\n\t // note most of matrix work should be done on the gpu where possible. - 16/03/2020 - not sure if this is right\n\t // http://www.intmath.com/matrices-determinants/matrix-multiplication-flash.php\n\n\t //\tm[0] m[4] m[ 8] m[12]\t\tnote the layout (column major -> its a bit weird really...).\n\t //\tm[1] m[5] m[ 9] m[13]\n\t //\tm[2] m[6] m[10] m[14]\n\t // \tm[3] m[7] m[11] m[15]\n\t\n\tvar tmp = new Array(16);\n\t\n\tvar r;\n\n\tvar c;\n\tvar i;\n\n\ti = 0;\n\tfor (r = 0; r < 4; r++)\n\t{\n\t\tfor (c = 0; c < 16; c += 4)\n\t\t{\n\t\t\ttmp[c+r] = (a[r] * b[c]) + (a[r+4]*b[c+1]) + (a[r+8]*b[c+2]) + (a[r+12]*b[c+3]);\n\t\t}\n\t}\n\n\treturn tmp;\n}", "function repmat (mat, num1, num2) {\n var temp = mat\n if (num1 === 1) {\n var temp1 = mat\n } else {\n // Here, generate n copies of A in the row dimension\n for (let i = 0; i < num1 - 1; i++) {\n temp1 = math.concat(temp, mat, 0)\n }\n }\n var temp2 = temp1\n if (num2 === 1) {\n return mat\n } else {\n // Here, generate n copies of A in the column dimension\n for (let j = 0; j < num2 - 1; j++) {\n temp2 = math.concat(temp2, temp1, 1)\n }\n }\n return temp2\n}", "Multiply(values) {\n let vec = new VecX(values);\n while (vec.size < this.size) {\n vec.values.push(vec.values[0]);\n }\n ;\n this.values = this.values.map((val, index) => val * vec.values[index]);\n return this;\n }", "function matrixMultiply (array1, array2){\n \n var fistOperation = (array1[0][0] * array2[0][0]) + (array1[0][1] * array2[1][0] )\n var secondOperation = (array1[0][0] * array2[0][1]) + (array1[0][1] * array2[1][1])\n var thirdOperation = (array1[1][0] * array2[0][0]) + (array1[1][1] * array2[1][0])\n var lastOperation = (array1[1][0] * array2[0][1]) + (array1[1][1] * array2[1][1])\n\n return [[fistOperation, secondOperation], [thirdOperation, lastOperation]]\n}", "testMul() {\n console.info('test Matrix4.mul()')\n const a = [\n 1, 2, 3, 4, \n 5, 6, 7, 8,\n 9, 10, 11, 12,\n 13, 14, 15, 16\n ]\n const b = [\n 17, 18, 19, 20,\n 21, 22, 23, 24,\n 25, 26, 27, 28,\n 29, 30, 31, 32\n ]\n const expected = [\n 250, 260, 270, 280,\n 618, 644, 670, 696,\n 986, 1028, 1070, 1112,\n 1354, 1412, 1470, 1528\n ]\n const m = new Matrix4(a)\n m.mul(b)\n const actual = m.elements\n this.assertIdentical(actual, expected)\n }", "function multiply(matrix1, matrix2) {\n var a00 = matrix1[0 * 3 + 0];\n var a01 = matrix1[0 * 3 + 1];\n var a02 = matrix1[0 * 3 + 2];\n var a10 = matrix1[1 * 3 + 0];\n var a11 = matrix1[1 * 3 + 1];\n var a12 = matrix1[1 * 3 + 2];\n var a20 = matrix1[2 * 3 + 0];\n var a21 = matrix1[2 * 3 + 1];\n var a22 = matrix1[2 * 3 + 2];\n var b00 = matrix2[0 * 3 + 0];\n var b01 = matrix2[0 * 3 + 1];\n var b02 = matrix2[0 * 3 + 2];\n var b10 = matrix2[1 * 3 + 0];\n var b11 = matrix2[1 * 3 + 1];\n var b12 = matrix2[1 * 3 + 2];\n var b20 = matrix2[2 * 3 + 0];\n var b21 = matrix2[2 * 3 + 1];\n var b22 = matrix2[2 * 3 + 2];\n return [b00 * a00 + b01 * a10 + b02 * a20, b00 * a01 + b01 * a11 + b02 * a21, b00 * a02 + b01 * a12 + b02 * a22, b10 * a00 + b11 * a10 + b12 * a20, b10 * a01 + b11 * a11 + b12 * a21, b10 * a02 + b11 * a12 + b12 * a22, b20 * a00 + b21 * a10 + b22 * a20, b20 * a01 + b21 * a11 + b22 * a21, b20 * a02 + b21 * a12 + b22 * a22];\n}", "function matrix_multiply(m1, m2) {\n var result = [];\n for (var i = 0; i < m1.length; i++) {\n result[i] = [];\n for (var j = 0; j < m2[0].length; j++) {\n var sum = 0;\n for (var k = 0; k < m1[0].length; k++) {\n sum += m1[i][k] * m2[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n}", "function multiplyAll(arr) {\n var product = 1;\n for (var i = 0; i < arr.length; i++) {\n for (var k = 0; k < arr[i].length; k++) {\n product *= arr[i][k];\n }\n }\n return product;\n}", "product(gaussian) {\n this.eta.add(gaussian.eta);\n this.lam.add(gaussian.lam);\n }", "function ij_elem_mult(i, j) {\n // not using get_row and get_col bcs slightly diff here\n const row_of_mat1 = list_ref(mat1, i);\n const col_of_mat2 = map(rows => list_ref(rows, j), mat2);\n const multiplied = list_op((x, y) => x * y, row_of_mat1, col_of_mat2);\n return accumulate((x,y) => x + y, 0, multiplied);\n }", "testMulIdentity() {\n console.info(\"Test: Matrix3.mul() -- Identity matrix\")\n const firstMatrix = [\n 1, 4, 8,\n 6, 4, 2,\n 7, 8, 0,\n ]\n\n const secondMatrix = [\n 1, 0, 0,\n 0, 1, 0,\n 0, 0, 1,\n ]\n\n const expected = [\n 1, 4, 8,\n 6, 4, 2,\n 7, 8, 0,\n ]\n\n const m = new Matrix3(firstMatrix)\n m.mul(secondMatrix)\n const actual = m.items\n this.assertIdentical(actual, expected)\n }", "function clone()\n{\n\tvar mat = new Matrix(this.size.x, this.size.y);\n\tvar i, j;\n\n\tfor(i = 0; i < this.size.x; i++)\n\t{\n\t\tfor(j = 0; j < this.size.y; j++)\n\t\t{\n\t\t\tmat.matrix[i][j] = this.matrix[i][j];\n\t\t}\n\t}\n\n\treturn mat;\n}", "function manualProductArray(arr) {\n const newArray = [];\n newArray.push(arr[1] * arr[2] * arr[3] * arr[4]);\n newArray.push(arr[0] * arr[2] * arr[3] * arr[4]);\n newArray.push(arr[1] * arr[0] * arr[3] * arr[4]);\n newArray.push(arr[1] * arr[2] * arr[0] * arr[4]);\n newArray.push(arr[1] * arr[2] * arr[3] * arr[0]);\n return console.log(newArray);\n}", "function matrix(args) {\n // primesMulitplication will contain array of arrays which makes up the whole grid\n let primesMultiplication = []\n primesMultiplication.push(args) //args is equal to this.rimes and makes the first row of the matrix\n\n // start at 1st element of primesArray as 0 element will not be used to make another row.\n for (let i = 1; i < args.length; i++) {\n // this creates an empty array for each row required for the matrix\n let multiply = []\n\n for (let j = 0; j < args.length; j++) {\n // takes each element(i) of args and multiplies by every element(j) of args pushing into the array reated above\n multiply.push(args[i] * args[j])\n }\n primesMultiplication.push(multiply)\n }\n // console.log(\"primesMultiplication\", primesMultiplication);\n\n primesMultiplication[0][0] = \"\" // empty string as 1 is not a prime number and no longer needed\n return primesMultiplication\n}", "function matrix(args) {\n // primesMulitplication will contain array of arrays which makes up the whole grid\n let primesMultiplication = []\n primesMultiplication.push(args) //args is equal to this.rimes and makes the first row of the matrix\n\n // start at 1st element of primesArray as 0 element will not be used to make another row.\n for (let i = 1; i < args.length; i++) {\n // this creates an empty array for each row required for the matrix\n let multiply = []\n\n for (let j = 0; j < args.length; j++) {\n // takes each element(i) of args and multiplies by every element(j) of args pushing into the array reated above\n multiply.push(args[i] * args[j])\n }\n primesMultiplication.push(multiply)\n }\n // console.log(\"primesMultiplication\", primesMultiplication);\n\n primesMultiplication[0][0] = \"\" // empty string as 1 is not a prime number and no longer needed\n return primesMultiplication\n}", "multiply(number) {\r\n return new Vector(...new Array(this.getDimensions()).fill(undefined).map((e, i) => this.values[i] * number));\r\n }", "multNormalMatrix(matrix) {\n let x = this[0];\n let y = this[1];\n let z = this[2];\n\n let S = new J3DIMatrix4(matrix);\n S.invert();\n S.transpose();\n\n this[0] = S.$matrix.m41 + x * S.$matrix.m11 + y * S.$matrix.m21 + z * S.$matrix.m31;\n this[1] = S.$matrix.m42 + x * S.$matrix.m12 + y * S.$matrix.m22 + z * S.$matrix.m32;\n this[2] = S.$matrix.m43 + x * S.$matrix.m13 + y * S.$matrix.m23 + z * S.$matrix.m33;\n let w = S.$matrix.m44 + x * S.$matrix.m14 + y * S.$matrix.m24 + z * S.$matrix.m34;\n if (w != 1 && w != 0) {\n this[0] /= w;\n this[1] /= w;\n this[2] /= w;\n }\n\n return this;\n }", "function arrayOfProducts(array) {\n\nlet newArr = new Array(array.length).fill(1)\n\nfor(let i=0; i< array.length; i++){\n\tlet value = 1\n\t\t\n\t\tfor(let j=0; j < array.length; j++){\n\t\t\tif(i === j) continue\n\t\t\t\n\t\t\tvalue *= array[j]\n\t\t}\n\t\n\tnewArr[i] = value\n}\n\nreturn newArr\n\t\n}", "function _assignment() {\r\n let equation, new_equation, children, num_children;\r\n let j, op, op_type, m1, m2, result, result_element, matrix_element;\r\n let last_child, delete_button;\r\n\r\n equation = element.parentNode;\r\n\r\n // Create a new equation to perform the calculations on.\r\n new_equation = $(equation).clone();\r\n children = $(new_equation).children();\r\n num_children = children.size();\r\n\r\n // Make sure we have at least two matrices and one operator\r\n if (num_children < 3) {\r\n return;\r\n }\r\n\r\n j = 1;\r\n while (j < num_children - 2) {\r\n op = children[j];\r\n if ($(op).attr('class') === 'matrix_operator') {\r\n\r\n op_type = op.innerText.trim();\r\n if (op_type === '*') {\r\n if ($(children[j + 1]).attr('class') === 'matrix_table' &&\r\n $(children[j - 1]).attr('class') === 'matrix_table') {\r\n m1 = _getMatrix(children[j - 1]);\r\n m2 = _getMatrix(children[j + 1]);\r\n result = _matrixMultiply(m1, m2);\r\n result_element = _buildHTMLmatrix(result, '-', '-');\r\n matrix_element = $.parseHTML(result_element);\r\n _reduceMatrixTerms(matrix_element[0]);\r\n\r\n $(matrix_element[0]).insertAfter(children[j + 1]);\r\n\r\n $(children[j + 1]).remove();\r\n $(children[j]).remove();\r\n $(children[j - 1]).remove();\r\n\r\n j = j-1;\r\n children = $(new_equation).children();\r\n num_children = children.size();\r\n }\r\n }\r\n }\r\n j = j + 1;\r\n }\r\n\r\n\r\n last_child = children[num_children-1];\r\n if ($(last_child).attr(\"class\") !== 'matrix_column') {\r\n // Add delete button to the end\r\n delete_button = $.parseHTML(\"<span class='matrix_column'>\" +\r\n \"<button onclick='Matrixeq_directive(this, \\\"delete\\\");'>X</button>\" +\r\n \"</span>\");\r\n $(delete_button).insertAfter(last_child)\r\n }\r\n\r\n $(new_equation).insertAfter(equation);\r\n }", "function multMatrix(m) {\n modelView = mult(modelView, m);\n}", "function multMatrix(m) {\n modelView = mult(modelView, m);\n}", "function multiply_matrix(M,N){\n var result = new Array(16);\n var index = 0;\n //Go through M \n for (var i=0; i < 4; i++){\n var vec1 = M.slice(0+i*4,4+i*4);\n vec1 = [ M[i], M[i+4], M[i+8], M[i+12]];\n //Go through N\n for (var j=0; j < 4; j++){\n var vec2 = [ N[j], N[j+4], N[j+8], N[j+12]];\n vec2 = N.slice(0+j*4,4+j*4);\n result[index]= dot(vec1,vec2);\n index++;\n }\n }\n return transpose(result);\n\n}", "_initializeMatrix() {\n const row = Array(this.width).fill(0);\n this.matrix = Array(this.height).fill(row.slice(0));\n }", "function mvPushMatrix() {\r\n var copy = mat4.clone(mvMatrix);\r\n mvMatrixStack.push(copy);\r\n}", "function mvPushMatrix() {\r\n var copy = mat4.clone(mvMatrix);\r\n mvMatrixStack.push(copy);\r\n}", "function mvPushMatrix() {\r\n var copy = mat4.clone(mvMatrix);\r\n mvMatrixStack.push(copy);\r\n}", "reset() {\n for (let i = 0, l = this.matrix.length; i !== l; i++) {\n this.matrix[i] = 0\n }\n }", "_setQProd(qr, qa, qb) {\nvar i, k, rc, rd, re, va, vb, wa, wb;\nva = [qa[0], qa[1], qa[2]];\nvb = [qb[0], qb[1], qb[2]];\nwa = qa[3];\nwb = qb[3];\nqr[3] = (wa * wb) - (va[0] * vb[0] + va[1] * vb[1] + va[2] * vb[2]);\nrc = [wa * vb[0], wa * vb[1], wa * vb[2]];\nrd = [wb * va[0], wb * va[1], wb * va[2]];\nre = [va[1] * vb[2] - va[2] * vb[1], va[2] * vb[0] - va[0] * vb[2], va[0] * vb[1] - va[1] * vb[0]];\nfor (i = k = 0; k < 3; i = ++k) {\nqr[i] = rc[i] + rd[i] + re[i];\n}\nreturn void 0;\n}", "function multiply(M1, M2) {\n // prep\n var M = [];\n var dims = [M1.length, M1[0].length, M2.length, M2[0].length];\n // work\n for (var r=0, c; r<dims[0]; r++) {\n M[r] = [];\n var _row = row(M1, r);\n for (c=0; c<dims[3]; c++) {\n var _col = col(M2,c);\n var reducer = (a,v,i) => a + _col[i]*v;\n M[r][c] = _row.reduce(reducer, 0);\n }\n }\n return M;\n}", "apply() {\n this.scene.multMatrix(this.transfMatrix);\n }", "post_multiply(b) {\r\n var new_value = this.times(b);\r\n this.length = 0;\r\n this.push(...new_value);\r\n return this;\r\n }", "clearMatrix() {\n\t\tthis.matrix = [];\n\n\t\tfor ( let y = 0; y < this.height; y++ ) {\n\t\t\tthis.matrix.push( [] );\n\n\t\t\tfor ( let x = 0; x < this.width; x++ ) {\n\t\t\t\tthis.matrix[ y ].push( {\n\t\t\t\t\tr: 0,\n\t\t\t\t\tg: 0,\n\t\t\t\t\tb: 0,\n\t\t\t\t\ta: 1\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t}", "drawMatrix(dontUpdateScale) {\n\n\t\t\t// Get row scale\n\t\t\tif (!dontUpdateScale) {\n\t\t\t\tthis._columnScale = this._createColumnScale();\n\t\t\t\tthis._colorScale = this._createColorScale();\n\t\t\t}\n\n\t\t\tthis._drawRows(this._columnScale.bandwidth());\n\t\t\tthis._drawColumnHeads();\n\n\t\t\tif (!dontUpdateScale) {\n\t\t\t\tthis._updateColumnScale();\n\t\t\t}\n\n\t\t\tthis._updatePositionsAndSizes();\n\n\t\t}", "function mulStoreMatrix(r, m, k) {\n m0 = m[0];\n m1 = m[1];\n m2 = m[2];\n m3 = m[3];\n m4 = m[4];\n m5 = m[5];\n m6 = m[6];\n m7 = m[7];\n m8 = m[8];\n m9 = m[9];\n m10 = m[10];\n m11 = m[11];\n m12 = m[12];\n m13 = m[13];\n m14 = m[14];\n m15 = m[15];\n k0 = k[0];\n k1 = k[1];\n k2 = k[2];\n k3 = k[3];\n k4 = k[4];\n k5 = k[5];\n k6 = k[6];\n k7 = k[7];\n k8 = k[8];\n k9 = k[9];\n k10 = k[10];\n k11 = k[11];\n k12 = k[12];\n k13 = k[13];\n k14 = k[14];\n k15 = k[15];\n\n a0 = k0 * m0 + k3 * m12 + k1 * m4 + k2 * m8;\n a4 = k4 * m0 + k7 * m12 + k5 * m4 + k6 * m8;\n a8 = k8 * m0 + k11 * m12 + k9 * m4 + k10 * m8;\n a12 = k12 * m0 + k15 * m12 + k13 * m4 + k14 * m8;\n\n a1 = k0 * m1 + k3 * m13 + k1 * m5 + k2 * m9;\n a5 = k4 * m1 + k7 * m13 + k5 * m5 + k6 * m9;\n a9 = k8 * m1 + k11 * m13 + k9 * m5 + k10 * m9;\n a13 = k12 * m1 + k15 * m13 + k13 * m5 + k14 * m9;\n\n a2 = k2 * m10 + k3 * m14 + k0 * m2 + k1 * m6;\n a6 = k6 * m10 + k7 * m14 + k4 * m2 + k5 * m6;\n a10 = k10 * m10 + k11 * m14 + k8 * m2 + k9 * m6;\n a14 = k14 * m10 + k15 * m14 + k12 * m2 + k13 * m6;\n\n a3 = k2 * m11 + k3 * m15 + k0 * m3 + k1 * m7;\n a7 = k6 * m11 + k7 * m15 + k4 * m3 + k5 * m7;\n a11 = k10 * m11 + k11 * m15 + k8 * m3 + k9 * m7;\n a15 = k14 * m11 + k15 * m15 + k12 * m3 + k13 * m7;\n\n r[0] = a0;\n r[1] = a1;\n r[2] = a2;\n r[3] = a3;\n r[4] = a4;\n r[5] = a5;\n r[6] = a6;\n r[7] = a7;\n r[8] = a8;\n r[9] = a9;\n r[10] = a10;\n r[11] = a11;\n r[12] = a12;\n r[13] = a13;\n r[14] = a14;\n r[15] = a15;\n}", "set(mat) {\n for (var i = 0; i < this.rows; i++) for (var j = 0; j < this.cols; j++)\n this.m[i][i] = mat.m[i][j];\n return this;\n }" ]
[ "0.67409146", "0.6665142", "0.654001", "0.6426403", "0.6324648", "0.6292943", "0.6289421", "0.6254326", "0.62039304", "0.6148832", "0.61286926", "0.60649693", "0.6057378", "0.6042743", "0.6018566", "0.6016008", "0.59839904", "0.5978976", "0.5917901", "0.589189", "0.58882535", "0.58771807", "0.5843633", "0.5832528", "0.58298683", "0.581807", "0.5789362", "0.5774141", "0.5773455", "0.5741577", "0.57272106", "0.57262117", "0.5723842", "0.571274", "0.57074183", "0.5700457", "0.5687343", "0.56810105", "0.56662554", "0.5659708", "0.565777", "0.56276256", "0.5621475", "0.560481", "0.5594509", "0.5588261", "0.5579337", "0.55616176", "0.55597526", "0.5556421", "0.55490035", "0.5542986", "0.5530105", "0.552884", "0.5498031", "0.5496346", "0.54927963", "0.5472951", "0.54681665", "0.5466934", "0.546645", "0.54609424", "0.54560614", "0.54047537", "0.5400447", "0.538065", "0.5380617", "0.5369179", "0.5365716", "0.5362369", "0.53422284", "0.5332866", "0.53264576", "0.53249365", "0.5322753", "0.53218436", "0.5319024", "0.53097993", "0.530952", "0.5306221", "0.5306221", "0.5300868", "0.5282058", "0.52738345", "0.52707404", "0.52611166", "0.52611166", "0.52603054", "0.52577394", "0.5245821", "0.5245821", "0.5245821", "0.5237664", "0.5236496", "0.5231596", "0.5226582", "0.5225647", "0.52203035", "0.5219291", "0.5216128", "0.52158964" ]
0.0
-1
inverse space. You can also use it to point the basis of any object towards Note: look_at() assumes the result will used for a camera and stores its result in inverse space. You can also use it to point the basis of any object towards
static look_at(eye, at, up) { let z = at.minus(eye).normalized(), // anything but you must re-invert it first. Each input must be 3x1 Vec. x = z.cross(up).normalized(), // Compute vectors along the requested coordinate axes. y = x.cross(z).normalized(); // (y is the "updated" and orthogonalized local y axis.) if (!x.every(i => i == i)) throw "Two parallel vectors were given"; // Check for NaN, indicating a degenerate cross product, which z.scale(-1); // happens if eye == at, or if at minus eye is parallel to up. return Mat4.translation([-x.dot(eye), -y.dot(eye), -z.dot(eye)]).times(Mat.of(x.to4(0), y.to4(0), z.to4(0), Vec.of(0, 0, 0, 1))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "applyInverse(){\n scale(p5.Vector.div(new p5.Vector(1,1,1), this.scale));\n angleMode(RADIANS);\n rotate(-this.rotation);\n translate(p5.Vector.sub(new p5.Vector(0,0,0), this.position));\n }", "function lookAt(eyePos, target, up) {\n let dir = normalize(subVec(target, eyePos));\n let side = normalize(cross(up, dir));\n let up2 = cross(dir, side);\n return invert(new mat3x4(side, up2, dir, eyePos));\n}", "setLookAt(eyeX, eyeY, eyeZ, targetX, targetY, targetZ, upX, upY, upZ){\n // N = eye - target\n let nx, ny, nz;\n nx = eyeX - targetX;\n ny = eyeY - targetY;\n nz = eyeZ - targetZ;\n let rl = 1/Math.sqrt(nx*nx+ny*ny+nz*nz);\n nx *= rl;\n ny *= rl;\n nz *= rl;\n // U = UP cross N\n let ux, uy, uz;\n ux = upY * nz - upZ * ny;\n uy = upZ * nx - upX * nz;\n uz = upX * ny - upY * nx;\n rl = 1/Math.sqrt(ux*ux+uy*uy+uz*uz);\n ux *= rl;\n uy *= rl;\n uz *= rl;\n // V = N cross U\n let vx, vy, vz;\n vx = ny * uz - nz * uy;\n vy = nz * ux - nx * uz;\n vz = nx * uy - ny * ux;\n rl = 1/Math.sqrt(vx*vx+vy*vy+vz*vz);\n vx *= rl;\n vy *= rl;\n vz *= rl;\n \n let e = this.elements;\n e[0] = ux;\n e[1] = vx;\n e[2] = nx;\n e[3] = 0;\n \n e[4] = uy;\n e[5] = vy;\n e[6] = ny;\n e[7] = 0;\n \n e[8] = uz;\n e[9] = vz;\n e[10] = nz;\n e[11] = 0;\n \n e[12] = 0;\n e[13] = 0;\n e[14] = 0;\n e[15] = 1;\n \n return this.translate(-eyeX, -eyeY, -eyeZ);\n }", "function Update() {\n transform.LookAt(target);\n}", "function lookAt(eye, target, up) {\n\tvar y = up.normalized();\n\tvar z = eye.minus(target).normalized();\n\tvar x = y.cross(z);\n\t//matrix (column-major order):\n\treturn new Mat4(\n\t\tx.x, y.x, z.x, 0.0,\n\t\tx.y, y.y, z.y, 0.0,\n\t\tx.z, y.z, z.z, 0.0,\n\t\t-eye.dot(x), -eye.dot(y), -eye.dot(z), 1.0\n\t);\n}", "inverse() {\n this.xyz = this.xyz.negate();\n return this;\n }", "inv() {\n\t\tthis.x = 1/this.x;\n\t\tthis.y = 1/this.y;\n\t\treturn this;\n\t}", "inverseTransformVector(vec){\n let result = p5.Vector.sub(vec, this.position);\n\n result.rotate(-this.rotation);\n vec.div(this.scale);\n\n return result;\n }", "invertEq ()\n\t{\n\t\tvar fMagnitude = this._w * this._w + this._x * this._x + this._y * this._y + this._z * this._z;\n\t\tvar fInv_Magnitude = 1.0 / fMagnitude;\n\n\t\tthis._w *= fInv_Magnitude;\n\t\tthis._x *= -fInv_Magnitude;\n\t\tthis._y *= -fInv_Magnitude;\n\t\tthis._z *= -fInv_Magnitude;\n\t}", "function inverse(p) {\n\n var x = p.x - this.x0;\n var y = p.y - this.y0;\n var lon, lat;\n\n if (this.sphere) {\n lat = HALF_PI - 2 * Math.atan(Math.exp(-y / (this.a * this.k0)));\n }\n else {\n var ts = Math.exp(-y / (this.a * this.k0));\n lat = phi2z(this.e, ts);\n if (lat === -9999) {\n return null;\n }\n }\n lon = adjust_lon(this.long0 + x / (this.a * this.k0));\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "function inverse(p) {\n\n var x = p.x - this.x0;\n var y = p.y - this.y0;\n var lon, lat;\n\n if (this.sphere) {\n lat = _constants_values__WEBPACK_IMPORTED_MODULE_4__[\"HALF_PI\"] - 2 * Math.atan(Math.exp(-y / (this.a * this.k0)));\n }\n else {\n var ts = Math.exp(-y / (this.a * this.k0));\n lat = Object(_common_phi2z__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this.e, ts);\n if (lat === -9999) {\n return null;\n }\n }\n lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this.long0 + x / (this.a * this.k0));\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "static inverse (arg) {\n var cube = new Cube(arg)\n return cube.inverse()\n }", "function inv( v ) {\n return {x: -v.x, y: -v.y};\n}", "function inverse(p) {\n\n var x = p.x - this.x0;\n var y = p.y - this.y0;\n var lon, lat;\n\n if (this.sphere) {\n lat = __WEBPACK_IMPORTED_MODULE_4__constants_values__[\"b\" /* HALF_PI */] - 2 * Math.atan(Math.exp(-y / (this.a * this.k0)));\n }\n else {\n var ts = Math.exp(-y / (this.a * this.k0));\n lat = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__common_phi2z__[\"a\" /* default */])(this.e, ts);\n if (lat === -9999) {\n return null;\n }\n }\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_adjust_lon__[\"a\" /* default */])(this.long0 + x / (this.a * this.k0));\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "function inverse(p) {\n p.x -= this.x0;\n p.y -= this.y0;\n var lon, lat;\n\n if (this.sphere) {\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_adjust_lon__[\"a\" /* default */])(this.long0 + (p.x / this.a) / Math.cos(this.lat_ts));\n lat = Math.asin((p.y / this.a) * Math.cos(this.lat_ts));\n }\n else {\n lat = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__common_iqsfnz__[\"a\" /* default */])(this.e, 2 * p.y * this.k0 / this.a);\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_adjust_lon__[\"a\" /* default */])(this.long0 + p.x / (this.a * this.k0));\n }\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "function inverse(p) {\n p.x -= this.x0;\n p.y -= this.y0;\n var lon, lat;\n\n if (this.sphere) {\n lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.long0 + (p.x / this.a) / Math.cos(this.lat_ts));\n lat = Math.asin((p.y / this.a) * Math.cos(this.lat_ts));\n }\n else {\n lat = Object(_common_iqsfnz__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(this.e, 2 * p.y * this.k0 / this.a);\n lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.long0 + p.x / (this.a * this.k0));\n }\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "lookAt(target) {\n let orientation = (target.x - this.x < 0) ? 'left' : 'right';\n this.setOrientation(orientation);\n }", "getInverse() {\n const rot = this.rotation.inverse();\n const neg = this.translation.multiply(-1)\n const trans = rot.rotateVector(neg.asArray());\n\n return new Transform({\n translation: {x: trans[0], y: trans[1], z: trans[2]},\n rotation: this.rotation.inverse()\n });\n }", "function figureEight() {\n // if (phi < 5*Math.PI/4) {\n // phi += 0.002;\n // }\n // else {\n // phi = 3*Math.PI/4;\n // }\n phi += 0.002;\n\n camera.lookAt(-1, 0, 0);\n\n var x = 10*Math.cos(phi)/(1 + Math.pow(Math.sin(phi), 2));\n var y = (10*Math.cos(phi)*Math.sin(phi))/(1 + Math.pow(Math.sin(phi), 2));\n\n camera.position.x = x;\n camera.position.y = y;\n\n}", "function inv(p) {\n\t return { x: p.y, y: p.x };\n\t }", "get inverse() {\n let new_mult = this.multiplier.inv;\n let new_offset = this.offset.div(this.multiplier).neg;\n\n // Check if the result needs to mirror the parameters\n if (this.mirror)\n return new ComplexTransform(new_mult.conj, new_offset.conj, true);\n else\n return new ComplexTransform(new_mult, new_offset, false);\n }", "function inverse(p) {\n p.x -= this.x0;\n p.y -= this.y0;\n\n var lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_adjust_lon__[\"a\" /* default */])(this.long0 + p.x / this.a);\n var lat = 2.5 * (Math.atan(Math.exp(0.8 * p.y / this.a)) - Math.PI / 4);\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "function inverse(p) {\n p.x -= this.x0;\n p.y -= this.y0;\n\n var lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.long0 + p.x / this.a);\n var lat = 2.5 * (Math.atan(Math.exp(0.8 * p.y / this.a)) - Math.PI / 4);\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "function inv(p) {\n return { x: p.y, y: p.x };\n }", "function inv(p) {\n return { x: p.y, y: p.x };\n }", "function inv(p) {\n return { x: p.y, y: p.x };\n }", "function setLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ){\n var fx, fy, fz, rlf, sx, sy, sz, rls, ux, uy, uz;\n\n fx = centerX - eyeX;\n fy = centerY - eyeY;\n fz = centerZ - eyeZ;\n\n rlf = 1 / Math.sqrt(fx*fx + fy*fy + fz*fz);\n fx *= rlf;\n fy *= rlf;\n fz *= rlf;\n\n sx = fy * upZ - fz * upY;\n sy = fz * upX - fx * upZ;\n sz = fx * upY - fy * upX;\n\n rls = 1 / Math.sqrt(sx*sx + sy*sy + sz*sz);\n sx *= rls;\n sy *= rls;\n sz *= rls;\n\n ux = sy * fz - sz * fy;\n uy = sz * fx - sx * fz;\n uz = sx * fy - sy * fx;\n\n viewMatrix[0] = sx;\n viewMatrix[1] = ux;\n viewMatrix[2] = -fx;\n viewMatrix[4] = 0;\n\n viewMatrix[4] = sy;\n viewMatrix[5] = uy;\n viewMatrix[6] = -fy;\n viewMatrix[7] = 0;\n\n viewMatrix[8] = sz;\n viewMatrix[9] = uz;\n viewMatrix[10] = -fz;\n viewMatrix[11] = 0;\n\n viewMatrix[12] = 0;\n viewMatrix[13] = 0;\n viewMatrix[14] = 0;\n viewMatrix[15] = 1;\n}", "function setLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ){\n var fx, fy, fz, rlf, sx, sy, sz, rls, ux, uy, uz;\n\n fx = centerX - eyeX;\n fy = centerY - eyeY;\n fz = centerZ - eyeZ;\n\n rlf = 1 / Math.sqrt(fx*fx + fy*fy + fz*fz);\n fx *= rlf;\n fy *= rlf;\n fz *= rlf;\n\n sx = fy * upZ - fz * upY;\n sy = fz * upX - fx * upZ;\n sz = fx * upY - fy * upX;\n\n rls = 1 / Math.sqrt(sx*sx + sy*sy + sz*sz);\n sx *= rls;\n sy *= rls;\n sz *= rls;\n\n ux = sy * fz - sz * fy;\n uy = sz * fx - sx * fz;\n uz = sx * fy - sy * fx;\n\n viewMatrix[0] = sx;\n viewMatrix[1] = ux;\n viewMatrix[2] = -fx;\n viewMatrix[4] = 0;\n\n viewMatrix[4] = sy;\n viewMatrix[5] = uy;\n viewMatrix[6] = -fy;\n viewMatrix[7] = 0;\n\n viewMatrix[8] = sz;\n viewMatrix[9] = uz;\n viewMatrix[10] = -fz;\n viewMatrix[11] = 0;\n\n viewMatrix[12] = 0;\n viewMatrix[13] = 0;\n viewMatrix[14] = 0;\n viewMatrix[15] = 1;\n}", "invert ()\n\t{\n\t\tvar fMagnitude = this._w * this._w + this._x * this._x + this._y * this._y + this._z * this._z;\n\t\tvar fInv_Magnitude = 1.0 / fMagnitude;\n\n\t\treturn new Quaternion (this._w * fInv_Magnitude,-this._x * fInv_Magnitude,-this._y * fInv_Magnitude,-this._z * fInv_Magnitude);\n\t}", "function calcLookat(){\n let radiansX = lookAtRadians.x\n ,radiansY = lookAtRadians.y\n ,sinY = Math.sin(radiansY)\n\n lookAtVec3[0] = lookAtRadius*Math.sin(radiansX)*sinY\n lookAtVec3[2] = lookAtRadius*Math.cos(radiansX)*sinY\n lookAtVec3[1] = lookAtRadius*Math.cos(radiansY)\n addUniformChange('lookAt',lookAtVec3)\n}", "function positionCamera(obj)\r\n{\r\n camera.lookAt(obj.position);\r\n camera.updateProjectionMatrix();\r\n}", "get inverse() {\n\t\treturn SpiderGL.Math.Mat4.dup(this.inverse$);\n\t}", "get inverse() {\n let [a, b, c, d] = this.coeffs;\n return new MobiusTransform([\n d, b.neg,\n c.neg, a\n ]);\n }", "lookAt(x, y, z) {\n this.controls.target.x = x;\n this.controls.target.y = y;\n this.controls.target.z = z;\n this.controls.update();\n }", "function inverse$f(p) {\n p.x -= this.x0;\n p.y -= this.y0;\n var lon, lat;\n\n if (this.sphere) {\n lon = adjust_lon(this.long0 + (p.x / this.a) / Math.cos(this.lat_ts));\n lat = Math.asin((p.y / this.a) * Math.cos(this.lat_ts));\n }\n else {\n lat = iqsfnz(this.e, 2 * p.y * this.k0 / this.a);\n lon = adjust_lon(this.long0 + p.x / (this.a * this.k0));\n }\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "get inverse$() {\n\t\treturn (this._i || (this._i = SpiderGL.Math.Mat4.inverse(this._m)));\n\t}", "get_invt() {\n\t\t// Determinant of the transformation matrix, used to calculate the inverse matrix.\n\t\tlet det = this.i.x * this.j.y - this.i.y * this.j.x;\n\t\tlet tvec = this.screen.div(scl);\n\t\t// The resulting vector from the inverse matrix multiplied by the vector.\n\t\treturn createVector(tvec.x * this.j.y / det + tvec.y * -this.j.x / det,\n\t\t\t\t\t\t\ttvec.x * -this.i.y / det + tvec.y * this.i.x / det);\n\t}", "function inverse(p) {\n\n var x = p.x;\n var y = p.y;\n\n p.x = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.long0 + ((x - this.x0) / (this.a * this.rc)));\n p.y = Object(_common_adjust_lat__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this.lat0 + ((y - this.y0) / (this.a)));\n return p;\n}", "lookAt(camera, target, up) {\n this.current = mat4.lookAt(this.current, camera, target, up);\n\n return this;\n }", "function Wander(){\n\twayPoint= Vector3(Random.Range(transform.position.x - Range, transform.position.x + Range), 1 , Random.Range(transform.position.z - Range, transform.position.z + Range));\n\twayPoint.y = 4; ///*******change to transform's Y position\n\t\n\tmyTransform.LookAt(wayPoint);\n\t\n}", "function normalTo(vec){\r\n return {x: vec.y, y: -vec.x};\r\n}", "updateAnimation() {\n var translateToOrigin = new Matrix4 ();\n var rotateInPlace = new Matrix4 ();\n var translateBack = new Matrix4 ();\n\n translateToOrigin.setTranslate(-this.x[0], -this.y[0], 0);\n rotateInPlace.setRotate(4, 0, 0, 1);\n translateBack.setTranslate(this.x[0], this.y[0], 0);\n\n this.modelMatrix = translateToOrigin.multiply(this.modelMatrix);\n this.modelMatrix = rotateInPlace.multiply(this.modelMatrix);\n this.modelMatrix = translateBack.multiply(this.modelMatrix);\n \n //this.modelMatrix.setLookAt(0, -1, 1, 0, 0, 0, 0, 0, 1.903);\n }", "get viewMatrixInverse() {\n\t\treturn this._v.inverse;\n\t}", "lookAt(target) {\n super.lookAt(target)\n this.spotLight.target.position.copy(target);\n }", "function inverse(p) {\n\n var rh1, con, ts;\n var lat, lon;\n var x = (p.x - this.x0) / this.k0;\n var y = (this.rh - (p.y - this.y0) / this.k0);\n if (this.ns > 0) {\n rh1 = Math.sqrt(x * x + y * y);\n con = 1;\n }\n else {\n rh1 = -Math.sqrt(x * x + y * y);\n con = -1;\n }\n var theta = 0;\n if (rh1 !== 0) {\n theta = Math.atan2((con * x), (con * y));\n }\n if ((rh1 !== 0) || (this.ns > 0)) {\n con = 1 / this.ns;\n ts = Math.pow((rh1 / (this.a * this.f0)), con);\n lat = Object(_common_phi2z__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(this.e, ts);\n if (lat === -9999) {\n return null;\n }\n }\n else {\n lat = -_constants_values__WEBPACK_IMPORTED_MODULE_5__[\"HALF_PI\"];\n }\n lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(theta / this.ns + this.long0);\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "function inverse(p) {\n\n var rh1, con, ts;\n var lat, lon;\n var x = (p.x - this.x0) / this.k0;\n var y = (this.rh - (p.y - this.y0) / this.k0);\n if (this.ns > 0) {\n rh1 = Math.sqrt(x * x + y * y);\n con = 1;\n }\n else {\n rh1 = -Math.sqrt(x * x + y * y);\n con = -1;\n }\n var theta = 0;\n if (rh1 !== 0) {\n theta = Math.atan2((con * x), (con * y));\n }\n if ((rh1 !== 0) || (this.ns > 0)) {\n con = 1 / this.ns;\n ts = Math.pow((rh1 / (this.a * this.f0)), con);\n lat = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__common_phi2z__[\"a\" /* default */])(this.e, ts);\n if (lat === -9999) {\n return null;\n }\n }\n else {\n lat = -__WEBPACK_IMPORTED_MODULE_5__constants_values__[\"b\" /* HALF_PI */];\n }\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__common_adjust_lon__[\"a\" /* default */])(theta / this.ns + this.long0);\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "update(){ // call to update transforms\n dirty = false;\n m[3] = m[0] = scale;\n m[1] = m[2] = 0;\n m[4] = pos.x;\n m[5] = pos.y;\n if(useConstraint){\n this.constrain();\n }\n this.invScale = 1 / scale;\n // calculate the inverse transformation\n let cross = m[0] * m[3] - m[1] * m[2];\n im[0] = m[3] / cross;\n im[1] = -m[1] / cross;\n im[2] = -m[2] / cross;\n im[3] = m[0] / cross;\n }", "function inverse(p) {\n\n var x = p.x;\n var y = p.y;\n\n p.x = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_adjust_lon__[\"a\" /* default */])(this.long0 + ((x - this.x0) / (this.a * this.rc)));\n p.y = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_adjust_lat__[\"a\" /* default */])(this.lat0 + ((y - this.y0) / (this.a)));\n return p;\n}", "function inverse$j(p) {\n p.x -= this.x0;\n p.y -= this.y0;\n\n var lon = adjust_lon(this.long0 + p.x / this.a);\n var lat = 2.5 * (Math.atan(Math.exp(0.8 * p.y / this.a)) - Math.PI / 4);\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "inverse () {\n var inverse = new Cube()\n for (var i in this.ep) {\n inverse.ep[this.ep[i]] = parseInt(i)\n inverse.eo[this.ep[i]] = this.eo[i]\n }\n for (var i in this.cp) {\n inverse.cp[this.cp[i]] = parseInt(i)\n inverse.co[this.cp[i]] = (this.co[i] * 2) % 3\n }\n for (var i in this.c) {\n inverse.c[this.c[i]] = parseInt(i)\n }\n return inverse\n }", "inverse() {\nreturn (TRX.fromTRX(this)).setInvert();\n}", "inverseTransformRegion(region)\n {\n // Apply inverse transformations of the parents\n if (typeof this.parent !== 'undefined')\n region = this.parent.inverseTransformRegion(region);\n\n // Apply inverse transformations of this game object\n return region\n .scale(this.scale.reciprocal())\n .translate(this.position);\n }", "function inverse(p) {\n var lon, lat;\n var xx, yy, xys, c1, c2, c3;\n var a1;\n var m1;\n var con;\n var th1;\n var d;\n\n /* inverse equations\n -----------------*/\n p.x -= this.x0;\n p.y -= this.y0;\n con = Math.PI * this.R;\n xx = p.x / con;\n yy = p.y / con;\n xys = xx * xx + yy * yy;\n c1 = -Math.abs(yy) * (1 + xys);\n c2 = c1 - 2 * yy * yy + xx * xx;\n c3 = -2 * c1 + 1 + 2 * yy * yy + xys * xys;\n d = yy * yy / c3 + (2 * c2 * c2 * c2 / c3 / c3 / c3 - 9 * c1 * c2 / c3 / c3) / 27;\n a1 = (c1 - c2 * c2 / 3 / c3) / c3;\n m1 = 2 * Math.sqrt(-a1 / 3);\n con = ((3 * d) / a1) / m1;\n if (Math.abs(con) > 1) {\n if (con >= 0) {\n con = 1;\n }\n else {\n con = -1;\n }\n }\n th1 = Math.acos(con) / 3;\n if (p.y >= 0) {\n lat = (-m1 * Math.cos(th1 + Math.PI / 3) - c2 / 3 / c3) * Math.PI;\n }\n else {\n lat = -(-m1 * Math.cos(th1 + Math.PI / 3) - c2 / 3 / c3) * Math.PI;\n }\n\n if (Math.abs(xx) < _constants_values__WEBPACK_IMPORTED_MODULE_1__[\"EPSLN\"]) {\n lon = this.long0;\n }\n else {\n lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.long0 + Math.PI * (xys - 1 + Math.sqrt(1 + 2 * (xx * xx - yy * yy) + xys * xys)) / 2 / xx);\n }\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "function robot_inverse_kinematics(target_pos, endeffector_joint, endeffector_local_pos) {\n\n if (update_ik) {\n iterate_inverse_kinematics(target_pos, endeffector_joint, endeffector_local_pos);\n endeffector_geom.visible = true;\n target_geom.visible = true;\n }\n else {\n endeffector_geom.visible = false;\n target_geom.visible = false;\n }\n\n //Setting Target Geom\n \tresult = generate_translation_matrix(target_pos[0], target_pos[1], target_pos[2]);\n\ttempmat = matrix_2Darray_to_threejs(result);\n\tsimpleApplyMatrix(target_geom,tempmat);\n\n\t//Setting Endeffector Geom\n\tresult = matrix_multiply(robot.joints[endeffector_joint].xform,endeffector_local_pos);\n \tresult = generate_translation_matrix(result[0], result[1], result[2]);\n \ttempmat = matrix_2Darray_to_threejs(result);\n\tsimpleApplyMatrix(endeffector_geom,tempmat);\n\n update_ik = false;\n\n}", "reverse() {\n return Point(\n 0 - this.x,\n 0 - this.y\n )\n }", "function inverseTransform(real, imag) {\n transform(imag, real, -1);\n}", "update () {\n \tthis.modelMatrix.set();\n this.modelMatrix.scale(this.scale);\n this.modelMatrix.rotate(this.orientation);\n this.modelMatrix.translate(this.position);\n\n this.modelMatrixInverse = this.modelMatrix.clone().invert();\n }", "function inverse(p) {\n var lon, lat;\n var xx, yy, xys, c1, c2, c3;\n var a1;\n var m1;\n var con;\n var th1;\n var d;\n\n /* inverse equations\n -----------------*/\n p.x -= this.x0;\n p.y -= this.y0;\n con = Math.PI * this.R;\n xx = p.x / con;\n yy = p.y / con;\n xys = xx * xx + yy * yy;\n c1 = -Math.abs(yy) * (1 + xys);\n c2 = c1 - 2 * yy * yy + xx * xx;\n c3 = -2 * c1 + 1 + 2 * yy * yy + xys * xys;\n d = yy * yy / c3 + (2 * c2 * c2 * c2 / c3 / c3 / c3 - 9 * c1 * c2 / c3 / c3) / 27;\n a1 = (c1 - c2 * c2 / 3 / c3) / c3;\n m1 = 2 * Math.sqrt(-a1 / 3);\n con = ((3 * d) / a1) / m1;\n if (Math.abs(con) > 1) {\n if (con >= 0) {\n con = 1;\n }\n else {\n con = -1;\n }\n }\n th1 = Math.acos(con) / 3;\n if (p.y >= 0) {\n lat = (-m1 * Math.cos(th1 + Math.PI / 3) - c2 / 3 / c3) * Math.PI;\n }\n else {\n lat = -(-m1 * Math.cos(th1 + Math.PI / 3) - c2 / 3 / c3) * Math.PI;\n }\n\n if (Math.abs(xx) < __WEBPACK_IMPORTED_MODULE_1__constants_values__[\"a\" /* EPSLN */]) {\n lon = this.long0;\n }\n else {\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_adjust_lon__[\"a\" /* default */])(this.long0 + Math.PI * (xys - 1 + Math.sqrt(1 + 2 * (xx * xx - yy * yy) + xys * xys)) / 2 / xx);\n }\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "unproject(winx, winy, winz, mat, viewport) {\n\t winz = 2 * winz - 1;\n\t var invMat = gl_matrix_1.mat4.create();\n\t gl_matrix_1.mat4.invert(invMat, mat);\n\t var n = gl_matrix_1.vec4.fromValues(winx, winy, winz, 1);\n\t gl_matrix_1.vec4.transformMat4(n, n, invMat);\n\t var n2 = gl_matrix_1.vec3.fromValues(n[0] / n[3], n[1] / n[3], n[2] / n[3]);\n\t return n2;\n\t }", "get viewMatrixInverse$() {\n\t\treturn this._v.inverse$;\n\t}", "function inverseTransform(real, imag) {\n transform(imag, real);\n}", "get projectionMatrixInverse() {\n\t\treturn this._p.inverse;\n\t}", "get modelViewProjectionMatrixInverse$() {\n\t\treturn (this._mvp.i || (this._mvp.i = SpiderGL.Math.Mat4.inverse(this.modelViewProjectionMatrix$)));\n\t}", "invertMatrix() {\n glMatrix.mat4.invert(this._inverseTransformationMatrix, this._TransformationMatrix);\n }", "updateLookingAngles() {\n this.resetRotMatrices();\n if (this.rotationMode === MFWebGLCamera.TWO_ANGLE_ROTATION) {\n if (this.lookAt[1] != this.position[1]) {\n let cdir = vec3.create();\n vec3.sub(cdir, this.lookAt, this.position);\n let angle = Math.abs(vec3.angle(cdir, [0, 1, 0])) - Math.PI/2;\n this.lookAt[1] = this.position[1];\n this.angleX = angle;\n mat4.rotateX(this.angleXRotation, mat4.create(), this.angleX);\n mat4.mul(this.cameraRotation, this.angleXRotation, this.angleYRotation);\n }\n }\n }", "function flip(vec) {\n\treturn new THREE.Vector2(vec.y, -vec.x);\n}", "function inverse(p) {\n p.x -= this.x0;\n p.y -= this.y0;\n var lon, lat, ts, ce, Chi;\n var rh = Math.sqrt(p.x * p.x + p.y * p.y);\n if (this.sphere) {\n var c = 2 * Math.atan(rh / (2 * this.a * this.k0));\n lon = this.long0;\n lat = this.lat0;\n if (rh <= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"EPSLN\"]) {\n p.x = lon;\n p.y = lat;\n return p;\n }\n lat = Math.asin(Math.cos(c) * this.sinlat0 + p.y * Math.sin(c) * this.coslat0 / rh);\n if (Math.abs(this.coslat0) < _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"EPSLN\"]) {\n if (this.lat0 > 0) {\n lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this.long0 + Math.atan2(p.x, - 1 * p.y));\n }\n else {\n lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this.long0 + Math.atan2(p.x, p.y));\n }\n }\n else {\n lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this.long0 + Math.atan2(p.x * Math.sin(c), rh * this.coslat0 * Math.cos(c) - p.y * this.sinlat0 * Math.sin(c)));\n }\n p.x = lon;\n p.y = lat;\n return p;\n }\n else {\n if (Math.abs(this.coslat0) <= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"EPSLN\"]) {\n if (rh <= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"EPSLN\"]) {\n lat = this.lat0;\n lon = this.long0;\n p.x = lon;\n p.y = lat;\n //trace(p.toString());\n return p;\n }\n p.x *= this.con;\n p.y *= this.con;\n ts = rh * this.cons / (2 * this.a * this.k0);\n lat = this.con * Object(_common_phi2z__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(this.e, ts);\n lon = this.con * Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this.con * this.long0 + Math.atan2(p.x, - 1 * p.y));\n }\n else {\n ce = 2 * Math.atan(rh * this.cosX0 / (2 * this.a * this.k0 * this.ms1));\n lon = this.long0;\n if (rh <= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"EPSLN\"]) {\n Chi = this.X0;\n }\n else {\n Chi = Math.asin(Math.cos(ce) * this.sinX0 + p.y * Math.sin(ce) * this.cosX0 / rh);\n lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(this.long0 + Math.atan2(p.x * Math.sin(ce), rh * this.cosX0 * Math.cos(ce) - p.y * this.sinX0 * Math.sin(ce)));\n }\n lat = -1 * Object(_common_phi2z__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(this.e, Math.tan(0.5 * (_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + Chi)));\n }\n }\n p.x = lon;\n p.y = lat;\n\n //trace(p.toString());\n return p;\n\n}", "function reflect(r, it) {\n let d = r.as_dir();\n let n = it.m.get_normal(it.p, 0);\n let ddn = d.dot(n);\n let dx = d.x - 2*ddn*n.x;\n let dy = d.y - 2*ddn*n.y;\n\n let a1 = (dy - (it.p.y+r.off.y)) /\n (dx - (it.p.x+r.off.x));\n\n return new Vec2(1024*dx+it.p.x, 1024*dy+it.p.y);\n}", "function robot_inverse_kinematics(target_pos, endeffector_joint, endeffector_local_pos) {\n // compute joint angle controls to move location on specified link to Cartesian location\n\n if (update_ik) {\n iterate_inverse_kinematics(target_pos, endeffector_joint, endeffector_local_pos);\n endeffector_geom.visible = true;\n target_geom.visible = true;\n }\n else {\n endeffector_geom.visible = false;\n target_geom.visible = false;\n }\n update_ik = false;\n\n}", "lookAtMouse () {\n\t\tconst diff = this.lastMousePosition.subtract(this.position);\n\t\tthis.setDirection(diff);\n\t}", "get inverseTranspose$() {\n\t\treturn (this._it || (this._it = SpiderGL.Math.Mat4.transpose(this.inverse$)));\n\t}", "inverseTransformVector(vector)\n {\n // Apply inverse transformations of the parents\n if (typeof this.parent !== 'undefined')\n vector = this.parent.inverseTransformVector(vector);\n\n // Apply inverse transformations of this game object\n return vector\n .scale(this.scale.reciprocal())\n .translate(this.position);\n }", "updateMatrices() {\n this.projection = perspective(this.fieldOfViewY, this.aspect, this.near, this.far);\n const up = vec3(0, 1, 0);\n this.view = lookAt(this.eye, this.at, up);\n this.viewProjection = mult(this.projection, this.view);\n }", "get viewProjectionMatrixInverse$() {\n\t\treturn (this._vp.i || (this._vp.i = SpiderGL.Math.Mat4.mul(this.viewMatrixInverse$, this.projectionMatrixInverse$)));\n\t}", "get projectionMatrixInverse$() {\n\t\treturn this._p.inverse$;\n\t}", "function inverse(x0, y0, z0) {\n var theta1 = 0,\n theta2 = 0,\n theta3 = 0,\n cos120 = Math.cos(Math.PI * (120/180)),\n sin120 = Math.sin(Math.PI * (120/180)),\n status = delta_calcAngleYZ(x0, y0, z0);\n\n if (status[0] === 0) {\n theta1 = status[1];\n status = delta_calcAngleYZ(x0 * cos120 + y0 * sin120, y0 * cos120 - x0 * sin120, z0, theta2);\n }\n\n if (status[0] === 0) {\n theta2 = status[1];\n status = delta_calcAngleYZ(x0 * cos120 - y0 * sin120, y0 * cos120 + x0 * sin120, z0, theta3);\n theta3 = status[1];\n }\n\n return [status[0], theta1, theta2, theta3];\n}", "invert() {\n this.polygons.forEach(p => p.flip());\n this.plane.flip();\n if (this.front !== null) {\n this.front.invert();\n }\n if (this.back !== null) {\n this.back.invert();\n }\n let temp = this.front;\n this.front = this.back;\n this.back = temp;\n }", "function ReSet(){\n\ttransform.position.x = ((tempLon * 20037508.34 / 180)/100)-iniRef.x;\n\ttransform.position.z = System.Math.Log(System.Math.Tan((90 + tempLat) * System.Math.PI / 360)) / (System.Math.PI / 180);\n\ttransform.position.z = ((transform.position.z * 20037508.34 / 180)/100)-iniRef.z; \n\tcam.position.x = ((tempLon * 20037508.34 / 180)/100)-iniRef.x;\n\tcam.position.z = System.Math.Log(System.Math.Tan((90 + tempLat) * System.Math.PI / 360)) / (System.Math.PI / 180);\n\tcam.position.z = ((cam.position.z * 20037508.34 / 180)/100)-iniRef.z; \n}", "function inverse(p) {\n p.x -= this.x0;\n p.y -= this.y0;\n var lon, lat, ts, ce, Chi;\n var rh = Math.sqrt(p.x * p.x + p.y * p.y);\n if (this.sphere) {\n var c = 2 * Math.atan(rh / (0.5 * this.a * this.k0));\n lon = this.long0;\n lat = this.lat0;\n if (rh <= __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n p.x = lon;\n p.y = lat;\n return p;\n }\n lat = Math.asin(Math.cos(c) * this.sinlat0 + p.y * Math.sin(c) * this.coslat0 / rh);\n if (Math.abs(this.coslat0) < __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n if (this.lat0 > 0) {\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.long0 + Math.atan2(p.x, - 1 * p.y));\n }\n else {\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.long0 + Math.atan2(p.x, p.y));\n }\n }\n else {\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.long0 + Math.atan2(p.x * Math.sin(c), rh * this.coslat0 * Math.cos(c) - p.y * this.sinlat0 * Math.sin(c)));\n }\n p.x = lon;\n p.y = lat;\n return p;\n }\n else {\n if (Math.abs(this.coslat0) <= __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n if (rh <= __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n lat = this.lat0;\n lon = this.long0;\n p.x = lon;\n p.y = lat;\n //trace(p.toString());\n return p;\n }\n p.x *= this.con;\n p.y *= this.con;\n ts = rh * this.cons / (2 * this.a * this.k0);\n lat = this.con * __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__common_phi2z__[\"a\" /* default */])(this.e, ts);\n lon = this.con * __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.con * this.long0 + Math.atan2(p.x, - 1 * p.y));\n }\n else {\n ce = 2 * Math.atan(rh * this.cosX0 / (2 * this.a * this.k0 * this.ms1));\n lon = this.long0;\n if (rh <= __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n Chi = this.X0;\n }\n else {\n Chi = Math.asin(Math.cos(ce) * this.sinX0 + p.y * Math.sin(ce) * this.cosX0 / rh);\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.long0 + Math.atan2(p.x * Math.sin(ce), rh * this.cosX0 * Math.cos(ce) - p.y * this.sinX0 * Math.sin(ce)));\n }\n lat = -1 * __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__common_phi2z__[\"a\" /* default */])(this.e, Math.tan(0.5 * (__WEBPACK_IMPORTED_MODULE_0__constants_values__[\"b\" /* HALF_PI */] + Chi)));\n }\n }\n p.x = lon;\n p.y = lat;\n\n //trace(p.toString());\n return p;\n\n}", "function camera_perspective_view() {\n camera.rotation.x += Math.PI/4;\n camera.position.x = -1;\n camera.position.z = 6;\n camera.position.y = -0.4;\n camera.lookAt(new THREE.Vector3(0,0,0))\n}", "function inverse$9(p) {\n\n var rh1, con, ts;\n var lat, lon;\n var x = (p.x - this.x0) / this.k0;\n var y = (this.rh - (p.y - this.y0) / this.k0);\n if (this.ns > 0) {\n rh1 = Math.sqrt(x * x + y * y);\n con = 1;\n }\n else {\n rh1 = -Math.sqrt(x * x + y * y);\n con = -1;\n }\n var theta = 0;\n if (rh1 !== 0) {\n theta = Math.atan2((con * x), (con * y));\n }\n if ((rh1 !== 0) || (this.ns > 0)) {\n con = 1 / this.ns;\n ts = Math.pow((rh1 / (this.a * this.f0)), con);\n lat = phi2z(this.e, ts);\n if (lat === -9999) {\n return null;\n }\n }\n else {\n lat = -HALF_PI;\n }\n lon = adjust_lon(theta / this.ns + this.long0);\n\n p.x = lon;\n p.y = lat;\n return p;\n}", "lookAt( t ) {\n var head = this.skeleton.bones[this.body.head];\n\n // calc target pos in coordinate system of head\n var totalPos = this.parentMesh.position.add(this.rootMesh.position);\n var totalRot = this.rootMesh.rotationQuaternion.multiply(this.parentMesh.rotationQuaternion);\n var target = new BABYLON.Vector3( t.x, t.y, t.z ).subtract(totalPos);\n\n target.rotateByQuaternionToRef(BABYLON.Quaternion.Inverse(totalRot),target);\n\n // CHECKME: exact calculus?\n //var targetVector = target.subtract(this.headPos()).add(totalPos);\n var targetVector = target.subtract(this.headPos());\n if ( this.headAxisFix == -1 ) {\n // FIX: neck and head opposite orientation\n // businessman, robot, adventurer, unreal male\n targetVector.y = -targetVector.y;\n }\n targetVector.rotateByQuaternionToRef(this.headQuatInv,targetVector);\n // this results in weird head positions, more natural-looking fix applied after\n //targetVector.rotateByQuaternionToRef(this.headQuat.multiply(this.neckQuatInv),targetVector);\n\n var rotationMatrix = new BABYLON.Matrix();\n\n BABYLON.Matrix.RotationAlignToRef(this.headTarget, targetVector.normalizeToNew(), rotationMatrix);\n var quat = BABYLON.Quaternion.FromRotationMatrix(rotationMatrix);\n\n if ( this.headAxisFix != 1 ) {\n // FIX: neck and head opposite or under angle\n // boris, businessman, robot, adventurer, unreal male\n var fix = this.headQuat.multiply(this.neckQuatInv);\n quat = quat.multiply(fix);\n }\n\n head.getTransformNode().rotationQuaternion = quat;\n }", "lookAtCenter() {\n if (this.viewport) {\n this.viewport.update();\n }\n if (this.controls) {\n this.controls.reset();\n }\n this.updateScene();\n }", "function orbit() {\r\n\t\tif(shouldOrbit) {\t\r\n\t\t\teye = vec3(orbitRadius * Math.sin(orbitAngle), 0, orbitRadius * Math.cos(orbitAngle));\r\n\t\t\tvMat = lookAt(eye, at, up);\r\n\t\t\trender();\r\n\t\t\torbitAngle += ORBIT_STEP;\r\n\t\t\trequestAnimationFrame(orbit);\r\n\t\t} else {\r\n\t\t\trender();\r\n\t\t}\r\n\t}", "get modelViewMatrixInverse$() {\n\t\treturn (this._mv.i || (this._mv.i = SpiderGL.Math.Mat4.mul(this.modelMatrixInverse$, this.viewMatrixInverse$)));\n\t}", "function inverse()\n {\n current_input = 1 / current_input\n displayCurrentInput();\n }", "function inverse() {\n this.currentInput = 1 / this.currentInput;\n this.displayCurrentInput();\n}", "invert() {\n let result = new Matrix();\n result._matrix = ExtMath.inv(this._matrix);\n return result;\n }", "static setInverseScaleV3(xyz, s) {\nxyz[0] /= s;\nxyz[1] /= s;\nxyz[2] /= s;\nreturn xyz;\n}", "function makeLookAt(ex, ey, ez,\n gl, cy, cz,\n ux, uy, uz)\n {\n var eye = $V([ex, ey, ez]);\n var center = $V([gl, cy, cz]);\n var up = $V([ux, uy, uz]);\n\n var mag;\n\n var z = eye.subtract(center).toUnitVector();\n var x = up.cross(z).toUnitVector();\n var y = z.cross(x).toUnitVector();\n\n var m = $M([\n [x.e(1), x.e(2), x.e(3), 0],\n [y.e(1), y.e(2), y.e(3), 0],\n [z.e(1), z.e(2), z.e(3), 0],\n [0, 0, 0, 1]\n ]);\n\n var t = $M([\n [1, 0, 0, -ex],\n [0, 1, 0, -ey],\n [0, 0, 1, -ez],\n [0, 0, 0, 1]\n ]);\n return m.x(t);\n }", "get viewProjectionMatrixInverseTranspose$() {\n\t\treturn (this._vp.it || (this._vp.it = SpiderGL.Math.Mat4.transpose(this.viewProjectionMatrixInverse$)));\n\t}", "function newLookAt( axisVector , zoom , tilt , tiltIncrement ) {\n var a = new THREE.Vector3( axisVector.x * ( ( tilt - zoom ) * tilt * 0.5 ) , axisVector.y * ( ( tilt - zoom ) * tilt * 0.5 ) , axisVector.z * ( ( tilt - zoom ) * tiltIncrement * 0.5 ) );\n return a;\n }", "reverseInPlace() { const a = this._radians0; this._radians0 = this._radians1; this._radians1 = a; }", "function inverse(p) {\n var u, deltav, s, d, eps, ro, fi1;\n var ok;\n\n /* Transformation */\n /* revert y, x*/\n var tmp = p.x;\n p.x = p.y;\n p.y = tmp;\n if (!this.czech) {\n p.y *= -1;\n p.x *= -1;\n }\n ro = Math.sqrt(p.x * p.x + p.y * p.y);\n eps = Math.atan2(p.y, p.x);\n d = eps / Math.sin(this.s0);\n s = 2 * (Math.atan(Math.pow(this.ro0 / ro, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45);\n u = Math.asin(Math.cos(this.ad) * Math.sin(s) - Math.sin(this.ad) * Math.cos(s) * Math.cos(d));\n deltav = Math.asin(Math.cos(s) * Math.sin(d) / Math.cos(u));\n p.x = this.long0 - deltav / this.alfa;\n fi1 = u;\n ok = 0;\n var iter = 0;\n do {\n p.y = 2 * (Math.atan(Math.pow(this.k, - 1 / this.alfa) * Math.pow(Math.tan(u / 2 + this.s45), 1 / this.alfa) * Math.pow((1 + this.e * Math.sin(fi1)) / (1 - this.e * Math.sin(fi1)), this.e / 2)) - this.s45);\n if (Math.abs(fi1 - p.y) < 0.0000000001) {\n ok = 1;\n }\n fi1 = p.y;\n iter += 1;\n } while (ok === 0 && iter < 15);\n if (iter >= 15) {\n return null;\n }\n\n return (p);\n}", "function inverse(p) {\n var u, deltav, s, d, eps, ro, fi1;\n var ok;\n\n /* Transformation */\n /* revert y, x*/\n var tmp = p.x;\n p.x = p.y;\n p.y = tmp;\n if (!this.czech) {\n p.y *= -1;\n p.x *= -1;\n }\n ro = Math.sqrt(p.x * p.x + p.y * p.y);\n eps = Math.atan2(p.y, p.x);\n d = eps / Math.sin(this.s0);\n s = 2 * (Math.atan(Math.pow(this.ro0 / ro, 1 / this.n) * Math.tan(this.s0 / 2 + this.s45)) - this.s45);\n u = Math.asin(Math.cos(this.ad) * Math.sin(s) - Math.sin(this.ad) * Math.cos(s) * Math.cos(d));\n deltav = Math.asin(Math.cos(s) * Math.sin(d) / Math.cos(u));\n p.x = this.long0 - deltav / this.alfa;\n fi1 = u;\n ok = 0;\n var iter = 0;\n do {\n p.y = 2 * (Math.atan(Math.pow(this.k, - 1 / this.alfa) * Math.pow(Math.tan(u / 2 + this.s45), 1 / this.alfa) * Math.pow((1 + this.e * Math.sin(fi1)) / (1 - this.e * Math.sin(fi1)), this.e / 2)) - this.s45);\n if (Math.abs(fi1 - p.y) < 0.0000000001) {\n ok = 1;\n }\n fi1 = p.y;\n iter += 1;\n } while (ok === 0 && iter < 15);\n if (iter >= 15) {\n return null;\n }\n\n return (p);\n}", "function inverseTransform(real, imag) {\n\t transform(imag, real);\n\t}", "invert() {\n let inverse = new Mapping();\n inverse.appendMappingInverted(this);\n return inverse;\n }", "function getTranslation(eye) {\n var trans = getIdentityMat();\n trans[0][3] = -eye[0];\n trans[1][3] = -eye[1];\n trans[2][3] = -eye[2];\n return trans;\n}", "function renderer() {\n // if(left){\n // // camera.look.x +=0.1;\n // lookx +=0.1;\n // camera.lookAt({x:lookx,y:0,z:0});\n // if(Math.abs(lookx - 5)<0.00001){\n // left = false;\n // }\n // }\n // else{\n // lookx -=0.1;\n // if(Math.abs(lookx + 5) < 0.00001){\n // left = true;\n // }\n // }\n vth +=1\n camerax = Math.sin(vth*Math.PI/180)\n cameraz = Math.cos(vth*Math.PI/180)\n\n console.log(\"camerax %f j\",camerax)\n camera.lookAt(new THREE.Vector3(camerax, 0,10 - cameraz));\n // mesh.rotation.y += 0.1;\n render.render(scene,camera);\n window.requestAnimationFrame(renderer);\n}", "get modelViewProjectionMatrixInverseTranspose$() {\n\t\treturn (this._mvp.it || (this._mvp.it = SpiderGL.Math.Mat4.transpose(this.modelViewProjectionMatrixInverse$)));\n\t}" ]
[ "0.6838796", "0.63511145", "0.627761", "0.6254232", "0.6179638", "0.60985196", "0.6071428", "0.60674334", "0.6023386", "0.5991383", "0.5900661", "0.58671105", "0.58531076", "0.58490586", "0.57882106", "0.57679313", "0.57453734", "0.570905", "0.57036304", "0.5691103", "0.56554586", "0.5642744", "0.5641864", "0.5623552", "0.5623552", "0.5623552", "0.5610291", "0.5610291", "0.5566191", "0.5555876", "0.55419415", "0.5540923", "0.55321664", "0.5525549", "0.5524554", "0.5517339", "0.5507691", "0.54707605", "0.5470247", "0.5466067", "0.5464242", "0.5452146", "0.5450981", "0.5444384", "0.5440484", "0.54304594", "0.54295135", "0.5423342", "0.536001", "0.5358287", "0.5354746", "0.53422576", "0.5342127", "0.5337028", "0.5336645", "0.5333928", "0.53326774", "0.5327014", "0.5290331", "0.5288232", "0.52860403", "0.52841693", "0.52489275", "0.5245133", "0.52404606", "0.5227446", "0.52247566", "0.5220103", "0.5219399", "0.52188253", "0.52118653", "0.52112526", "0.5202198", "0.5179653", "0.5169165", "0.5168141", "0.51663953", "0.51640856", "0.5159745", "0.5143338", "0.5143071", "0.514257", "0.51418954", "0.5138873", "0.5126875", "0.51248527", "0.51221913", "0.5117503", "0.5109631", "0.51009864", "0.50961024", "0.5094507", "0.5084179", "0.5078403", "0.5078403", "0.50770795", "0.5070717", "0.5067562", "0.5064149", "0.5062126" ]
0.6678622
1
define abstract Group class
function Group() { this.cells = []; //array of cell objects }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Group(/* null | group */)\n{\n this.internals = []; \t\t\t\t // a list of internal objects\n\tthis.transformationMarker = new Transformation(); // transformation marker\n\tthis.axes = [];\n\tGroup.count++;\n\tthis.name = \"Group\"+Group.count;\n\tthis.viewPoint = new Transformation();\n\tthis.vpd = 500;\n\t\n\tthis.initializeAxes();\n \n\t// not available yet\n\t//this.scenarioMarker = new Scenario(); // scenario marker\n\t\n\tif(arguments.length == 1 )\n\t{\n\t\tthis.internals = arguments[0].internals;\n\t\tthis.transformationMarker = arguments[0].transformationMarker;\n\t\tthis.axes = arguments[0].axes;\n\t\tthis.name = arguments[0].name;\n\t\tthis.viewPoint = arguments[0].viewPoint;\n\t\tthis.vpd = arguments[0].vpd;\n\t}\n}", "constructor() {\n super();\n\n this.groups = new Map();\n }", "function Group(domoticz) {\n this.domoticz = domoticz;\n}", "constructor() { \n \n Group.initialize(this);\n }", "setGroup(group) { \n this.group = group; // a real implementation may need to do more than just this\n }", "get group(){ return this.__group; }", "function Group() {\n var group = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, Group);\n\n if (!group.sketchObject) {\n // eslint-disable-next-line no-param-reassign\n group.sketchObject = _Factory__WEBPACK_IMPORTED_MODULE_4__[\"Factory\"].createNative(Group).alloc().initWithFrame(new _models_Rectangle__WEBPACK_IMPORTED_MODULE_2__[\"Rectangle\"](0, 0, 100, 100).asCGRect());\n }\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Group).call(this, group));\n } // @deprecated", "constructor(groups = []) {\n this.groups = groups;\n }", "function groupable_factory(namespace, child, parent) {\n return inject(namespace, child, parent).extend({\n name: 'groupable',\n props: {\n activeClass: {\n type: String,\n\n default() {\n if (!this[namespace]) return undefined;\n return this[namespace].activeClass;\n }\n\n },\n disabled: Boolean\n },\n\n data() {\n return {\n isActive: false\n };\n },\n\n computed: {\n groupClasses() {\n if (!this.activeClass) return {};\n return {\n [this.activeClass]: this.isActive\n };\n }\n\n },\n\n created() {\n this[namespace] && this[namespace].register(this);\n },\n\n beforeDestroy() {\n this[namespace] && this[namespace].unregister(this);\n },\n\n methods: {\n toggle() {\n this.$emit('change');\n }\n\n }\n });\n}", "init() {\n this.groups = {};\n }", "function Group(options) {\n // parent can be position(global level) or another group\n\n\n this.children = [];\n this.points = [];\n this.circles = [];\n\n this.state = {\n inAir: false\n };\n\n this.dPos = [0,0];\n this.velocity = [0,0];\n this.acceleration = [0,0];\n\n this.childrenAngle = 0;\n this.childrenSpin = 0;\n\n this.lines = {\n fromOrigin: false,\n //ctx.strokeStyle\n color: 'black',\n //ctx.lineWidth\n width: '5',\n\n connectEnds: true,\n };\n\n this.fill = {\n filled: false,\n //\n fillMode: 'object',\n };\n\n}", "function Group(parent) {\n var _this = this;\n\n this.visualElement = sf.base.createElement('div', {\n className: 'e-cloneproperties e-dragclone e-gdclone',\n styles: 'line-height:23px',\n attrs: {\n action: 'grouping'\n }\n });\n\n this.helper = function (e) {\n var gObj = _this.parent;\n var target = e.sender.target;\n var element = target.classList.contains('e-groupheadercell') ? target : parentsUntil(target, 'e-groupheadercell');\n\n if (!element || !target.classList.contains('e-drag') && _this.parent.options.groupReordering) {\n return false;\n }\n\n _this.column = gObj.getColumnByField(element.firstElementChild.getAttribute('ej-mappingname'));\n _this.visualElement.textContent = element.textContent;\n _this.visualElement.style.width = element.offsetWidth + 2 + 'px';\n _this.visualElement.style.height = element.offsetHeight + 2 + 'px';\n\n _this.visualElement.setAttribute('e-mappinguid', _this.column.uid);\n\n gObj.element.appendChild(_this.visualElement);\n return _this.visualElement;\n };\n\n this.dragStart = function (e) {\n _this.parent.element.classList.add('e-ungroupdrag');\n\n document.body.classList.add('e-prevent-select');\n e.bindEvents(e.dragElement);\n };\n\n this.drag = function (e) {\n // if (this.groupSettings.allowReordering) {\n // this.animateDropper(e);\n // }\n var target = e.target;\n\n var cloneElement = _this.parent.element.querySelector('.e-cloneproperties'); // this.parent.trigger(events.columnDrag, { target: target, draggableType: 'headercell', column: this.column });\n\n\n if (!_this.parent.options.groupReordering) {\n sf.base.classList(cloneElement, ['e-defaultcur'], ['e-notallowedcur']);\n\n if (!(parentsUntil(target, 'e-gridcontent') || parentsUntil(target, 'e-headercell'))) {\n sf.base.classList(cloneElement, ['e-notallowedcur'], ['e-defaultcur']);\n }\n }\n };\n\n this.dragStop = function (e) {\n document.body.classList.remove('e-prevent-select');\n\n _this.parent.element.classList.remove('e-ungroupdrag');\n\n var preventDrop = !(parentsUntil(e.target, 'e-gridcontent') || parentsUntil(e.target, 'e-gridheader')); // if (this.groupSettings.allowReordering && preventDrop) { //TODO: reordering\n // remove(e.helper);\n // if (parentsUntil(e.target, 'e-groupdroparea')) {\n // this.rearrangeGroup(e);\n // } else if (!(parentsUntil(e.target, 'e-grid'))) {\n // let field: string = this.parent.getColumnByUid(e.helper.getAttribute('e-mappinguid')).field;\n // if (this.groupSettings.columns.indexOf(field) !== -1) {\n // this.ungroupColumn(field);\n // }\n // }\n // return;\n // } else\n\n if (preventDrop) {\n sf.base.remove(e.helper);\n return;\n }\n }; //TODO: reordering\n // private animateDropper: Function = (e: { target: HTMLElement, event: MouseEventArgs, helper: Element }) => {\n // let uid: string = this.parent.element.querySelector('.e-cloneproperties').getAttribute('e-mappinguid');\n // let dragField: string = this.parent.getColumnByUid(uid).field;\n // let parent: Element = parentsUntil(e.target, 'e-groupdroparea');\n // let dropTarget: Element = parentsUntil(e.target, 'e-group-animator');\n // // tslint:disable-next-line\n // let grouped: string[] = [].slice.call(this.element.querySelectorAll('.e-groupheadercell'))\n // .map((e: Element) => e.querySelector('div').getAttribute('ej-mappingname'));\n // let cols: string[] = JSON.parse(JSON.stringify(grouped));\n // if (dropTarget || parent) {\n // if (dropTarget) {\n // let dropField: string = dropTarget.querySelector('div[ej-mappingname]').getAttribute('ej-mappingname');\n // let dropIndex: number = +(dropTarget.getAttribute('index'));\n // if (dropField !== dragField) {\n // let dragIndex: number = cols.indexOf(dragField);\n // if (dragIndex !== -1) {\n // cols.splice(dragIndex, 1);\n // }\n // let flag: boolean = dropIndex !== -1 && dragIndex === dropIndex;\n // cols.splice(dropIndex + (flag ? 1 : 0), 0, dragField);\n // }\n // } else if (parent && cols.indexOf(dragField) === -1) {\n // cols.push(dragField);\n // }\n // this.element.innerHTML = '';\n // if (cols.length && !this.element.classList.contains('e-grouped')) {\n // this.element.classList.add('e-grouped');\n // }\n // this.reorderingColumns = cols;\n // for (let c: number = 0; c < cols.length; c++) {\n // this.addColToGroupDrop(cols[c]);\n // }\n // } else {\n // this.addLabel();\n // this.removeColFromGroupDrop(dragField);\n // }\n // }\n // private rearrangeGroup(e: { target: HTMLElement, event: MouseEventArgs, helper: Element }): void {\n // this.sortRequired = false;\n // this.updateModel();\n // }\n\n\n this.preventTouchOnWindow = function (e) {\n e.preventDefault();\n };\n\n this.drop = function (e) {\n var gObj = _this.parent;\n var column = gObj.getColumnByUid(e.droppedElement.getAttribute('e-mappinguid'));\n gObj.element.querySelector('.e-groupdroparea').classList.remove('e-hover');\n sf.base.remove(e.droppedElement);\n\n if (gObj.options.allowGrouping) {\n sf.base.EventHandler.remove(window, 'touchmove', _this.preventTouchOnWindow);\n }\n\n _this.parent.element.querySelector('.e-groupdroparea').removeAttribute(\"aria-dropeffect\");\n\n _this.parent.element.querySelector('[aria-grabbed=true]').setAttribute(\"aria-grabbed\", 'false');\n\n if (sf.base.isNullOrUndefined(column) || column.allowGrouping === false || parentsUntil(gObj.getColumnHeaderByUid(column.uid), 'e-grid').getAttribute('id') !== gObj.element.getAttribute('id')) {\n return;\n }\n\n gObj.dotNetRef.invokeMethodAsync(\"GroupColumn\", column.field, 'Group');\n };\n\n this.parent = parent;\n\n if (this.parent.options.allowGrouping && this.parent.options.showDropArea) {\n this.initDragAndDrop();\n }\n }", "function getGroup() { return group; }", "function GroupItem(nId, strTitle, status, priority, entryDate){\n\tthis.id = nId;\n\tthis.title = strTitle;\n\tthis.itemsArr = new Array();\n\tthis.status = status;\n\tthis.priority = priority;\n\tthis.entryDate = entryDate;\n\t\n\tthis.itemType = ITEM_TYPE_GROUP;\n\t\n\t// checks if group contains a specific item\n\tthis.hasItem = function(itemId, type){\n\t\tfor(j in this.itemsArr){\n\t\t\tif(this.itemsArr[j].id == itemId && this.itemsArr[j].type == type){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\t\n\tthis.isArchived = function(){\n\t\treturn this.status & STATUS_BIT_ARCHIVED; \n\t}\n\t\n\tthis.isNotArchived = function(){\n\t\treturn this.status & STATUS_BIT_ARCHIVED ^ STATUS_BIT_ARCHIVED; \n\t}\n\t\n\t\n\t// checks if group contains a specific item\n\tthis.getSetsWithTune = function(tuneId){\n\t\tvar arr = new Array();\n\t\tfor(j in this.itemsArr){\n\t\t\tif(this.itemsArr[j].type == ITEM_TYPE_SET){\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\n\t\t\t\tif(setsArr[this.itemsArr[j].id].hasTune(tuneId)){\n\t\t\t\t\tarr.push(setsArr[this.itemsArr[j].id]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}catch(e){\n\t\t\t\t\t alert(\n\t\t\t\t\t\t \"group:\"+this.title + \"\\r\\n\" +\n\t\t\t\t\t\t \"groupId:\"+this.id + \"\\r\\n\" +\n\t\t\t\t\t\t \"setid:\" + this.itemsArr[j].id\n\t\t\t\t\t\t\t )\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn arr.length?arr:null;\n\t}\n\t\n\t\n\t// checks if group has any items of a \n\t// particular type (tunes, sets, etc)\n\tthis.containsType = function(type){\n\t\tfor(j in this.itemsArr){\n\t\t\tif(this.itemsArr[j].type == type){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\t\n\tthis.label = \"Group\"\n}", "function Group(port, cb) {\n if(arguments.length !== 2) {\n throw new Error('Not enough arguments');\n }\n\n // these are undefined in virtual mode\n this.cb = cb;\n this.port = port;\n\n var prefix = 'gid-';\n prefix += port ? port : '';\n\n this.info = {\n gid: Group.gid(prefix + '-'),\n complete: false,\n items: []\n };\n\n Object.defineProperty(this, 'length', {\n get: function() {\n return this.info.items.length;\n }\n });\n\n Object.defineProperty(this, 'complete', {\n get: function() {\n return this.info.complete;\n }\n });\n\n /**\n *\n * Used to collect incomming data.\n * Until everything from this group is received.\n *\n */\n this.store = [];\n\n // send out the group info\n // Ok this will not work with the virtual ones\n // there is no port to send to.\n this.send();\n}", "function Group(name, members, maxMem, game, requ, tags) {\n\tthis.id = lastGroupsID;\n\tthis.name = name;\n\tthis.members = members;\n\tthis.maxMember = maxMem;\n\tthis.game = game;\n\tthis.requirements = requ;\n\tthis.tags = tags;\n\t\n\tlastGroupsID++\n}", "function factory(namespace, child, parent) {\n // TODO: ts 3.4 broke directly returning this\n const R = inject(namespace, child, parent).extend({\n name: 'groupable',\n props: {\n activeClass: {\n type: String,\n\n default() {\n if (!this[namespace]) return undefined;\n return this[namespace].activeClass;\n }\n\n },\n disabled: Boolean\n },\n\n data() {\n return {\n isActive: false\n };\n },\n\n computed: {\n groupClasses() {\n if (!this.activeClass) return {};\n return {\n [this.activeClass]: this.isActive\n };\n }\n\n },\n\n created() {\n this[namespace] && this[namespace].register(this);\n },\n\n beforeDestroy() {\n this[namespace] && this[namespace].unregister(this);\n },\n\n methods: {\n toggle() {\n this.$emit('change');\n }\n\n }\n });\n return R;\n}", "function factory(namespace, child, parent) {\n // TODO: ts 3.4 broke directly returning this\n const R = inject(namespace, child, parent).extend({\n name: 'groupable',\n props: {\n activeClass: {\n type: String,\n\n default() {\n if (!this[namespace]) return undefined;\n return this[namespace].activeClass;\n }\n\n },\n disabled: Boolean\n },\n\n data() {\n return {\n isActive: false\n };\n },\n\n computed: {\n groupClasses() {\n if (!this.activeClass) return {};\n return {\n [this.activeClass]: this.isActive\n };\n }\n\n },\n\n created() {\n this[namespace] && this[namespace].register(this);\n },\n\n beforeDestroy() {\n this[namespace] && this[namespace].unregister(this);\n },\n\n methods: {\n toggle() {\n this.$emit('change');\n }\n\n }\n });\n return R;\n}", "function factory(namespace, child, parent) {\n return registrable_inject(namespace, child, parent).extend({\n name: 'groupable',\n props: {\n activeClass: {\n type: String,\n\n default() {\n if (!this[namespace]) return undefined;\n return this[namespace].activeClass;\n }\n\n },\n disabled: Boolean\n },\n\n data() {\n return {\n isActive: false\n };\n },\n\n computed: {\n groupClasses() {\n if (!this.activeClass) return {};\n return {\n [this.activeClass]: this.isActive\n };\n }\n\n },\n\n created() {\n this[namespace] && this[namespace].register(this);\n },\n\n beforeDestroy() {\n this[namespace] && this[namespace].unregister(this);\n },\n\n methods: {\n toggle() {\n this.$emit('change');\n }\n\n }\n });\n}", "function Group(parent, groupSettings, sortedColumns, serviceLocator) {\n var _this = this;\n this.isAppliedGroup = false;\n this.isAppliedUnGroup = false;\n this.visualElement = createElement('div', {\n className: 'e-cloneproperties e-dragclone e-gdclone',\n styles: 'line-height:23px', attrs: { action: 'grouping' }\n });\n this.helper = function (e) {\n var gObj = _this.parent;\n var target = e.sender.target;\n var element = target.classList.contains('e-groupheadercell') ? target :\n parentsUntil(target, 'e-groupheadercell');\n if (!element) {\n return false;\n }\n _this.column = gObj.getColumnByField(element.firstElementChild.getAttribute('ej-mappingname'));\n _this.visualElement.textContent = element.textContent;\n _this.visualElement.style.width = element.offsetWidth + 2 + 'px';\n _this.visualElement.style.height = element.offsetHeight + 2 + 'px';\n _this.visualElement.setAttribute('e-mappinguid', _this.column.uid);\n gObj.element.appendChild(_this.visualElement);\n return _this.visualElement;\n };\n this.dragStart = function (e) {\n _this.parent.element.classList.add('e-ungroupdrag');\n if (isBlazor()) {\n e.bindEvents(e.dragElement);\n }\n };\n this.drag = function (e) {\n var target = e.target;\n var cloneElement = _this.parent.element.querySelector('.e-cloneproperties');\n _this.parent.trigger(columnDrag, { target: target, draggableType: 'headercell', column: _this.column });\n classList(cloneElement, ['e-defaultcur'], ['e-notallowedcur']);\n if (!(parentsUntil(target, 'e-gridcontent') || parentsUntil(target, 'e-headercell'))) {\n classList(cloneElement, ['e-notallowedcur'], ['e-defaultcur']);\n }\n };\n this.dragStop = function (e) {\n _this.parent.element.classList.remove('e-ungroupdrag');\n if (!(parentsUntil(e.target, 'e-gridcontent') || parentsUntil(e.target, 'e-gridheader'))) {\n remove(e.helper);\n return;\n }\n };\n this.drop = function (e) {\n var gObj = _this.parent;\n var column = gObj.getColumnByUid(e.droppedElement.getAttribute('e-mappinguid'));\n _this.element.classList.remove('e-hover');\n remove(e.droppedElement);\n _this.aria.setDropTarget(_this.parent.element.querySelector('.e-groupdroparea'), false);\n _this.aria.setGrabbed(_this.parent.getHeaderTable().querySelector('[aria-grabbed=true]'), false);\n if (isNullOrUndefined(column) || column.allowGrouping === false ||\n parentsUntil(gObj.getColumnHeaderByUid(column.uid), 'e-grid').getAttribute('id') !==\n gObj.element.getAttribute('id')) {\n _this.parent.log('action_disabled_column', { moduleName: _this.getModuleName(), columnName: column.headerText });\n return;\n }\n _this.groupColumn(column.field);\n };\n this.contentRefresh = true;\n this.aria = new AriaService();\n this.parent = parent;\n this.groupSettings = groupSettings;\n this.serviceLocator = serviceLocator;\n this.sortedColumns = sortedColumns;\n this.focus = serviceLocator.getService('focus');\n this.addEventListener();\n this.groupGenerator = new GroupModelGenerator(this.parent);\n }", "addGroup(groupKey, groupType, attributes) {\n const existingGroup = this.groups[groupKey];\n if (existingGroup) {\n return existingGroup.groupElement;\n }\n const proxyContainer = this.domElementProvider.createElement(groupType);\n // If we want to add a role to the group, and still use e.g.\n // a list group, we need a wrapper div.\n let groupElement;\n if (attributes && attributes.role && groupType !== 'div') {\n groupElement = this.domElementProvider.createElement('div');\n groupElement.appendChild(proxyContainer);\n }\n else {\n groupElement = proxyContainer;\n }\n groupElement.className = 'highcharts-a11y-proxy-group highcharts-a11y-proxy-group-' +\n groupKey.replace(/\\W/g, '-');\n this.groups[groupKey] = {\n proxyContainerElement: proxyContainer,\n groupElement,\n type: groupType,\n proxyElements: []\n };\n attr(groupElement, attributes || {});\n if (groupType === 'ul') {\n proxyContainer.setAttribute('role', 'list'); // Needed for webkit\n }\n // Add the group to the end by default, and perhaps then we\n // won't have to reorder the whole set of groups.\n this.afterChartProxyPosContainer.appendChild(groupElement);\n this.updateGroupOrder(this.groupOrder);\n return groupElement;\n }", "addGroup() {\n\t\t//make a random group id\n\t\tlet gid = generateGroupID();\n\n\t\t//keep trying till a unique one is made\n\t\twhile(gid in this.groups) {\n\t\t\tgid = generateGroupID();\n\t\t}\n\n\t\tthis.groups[gid] = new Group();\n\n\t\treturn gid;\n\t}", "constructor(input) {\n this.group = [];\n }", "function makeGroupNode(name, isRoot = false) {\n\tlet node = makeNode(true, isRoot);\n\tnode.apiData = {\n\t\tname: `GROUP of ${name}`, \n\t\tid: \"\",\n\t};\n\tnode.apiName = name;\n\tnode.meaningfulName = node.apiData.name;\n\treturn node;\n}", "function SortableGroup(){this.namespace='sortable'+(++SortableGroup.instanceCount);this.draggables={};this.droppables={};this.sortables={};this.linkedGroups=[];this.linkedGroups.onlinkjump=bagofholding;this.rootNode=null;}", "function BlockGroup(game) {\n console.debug(\"creating a BlockGroup!\", game);\n\n Phaser.Group.call(this, game, null, 'blockgroup', false, true, Phaser.Physics.ARCADE);\n\n game.add.existing(this);\n\n this.classType = Block;\n this.createMultiple(10);\n\n}", "function l$1(e){return e&&\"group\"===e.type}", "get group () {\n\t\treturn this._group;\n\t}", "get group () {\n\t\treturn this._group;\n\t}", "get group () {\n\t\treturn this._group;\n\t}", "function Groups(game) {\r\n this.game = game;\r\n this.enemies = game.add.group();\r\n this.bosses = game.add.group();\r\n}", "get group() {\n\t\treturn this.__group;\n\t}", "getGroup() {\r\n return this.builder.group;\r\n }", "function makeInteractive( _group, _type ){\n\tif( typeof _group == 'string' ){\n\t\t_group = master.canvas.stage.find( '#' + _group )[0];\n\t}\n\t\n\tif( _group == undefined )\n\t\treturn;\n\t\t\n\tvar nw = false, sw = false, se = false, ne = false;\n\tvar children = _group.getChildren().toArray();\n\tfor( var i = 0; i < children.length; i++ ){\n\t\tvar child = children[i];\n\t\tif( child.getName() === 'topLeft' )\n\t\t\tne = true;\n\t\tif( child.getName() === 'topRight' )\n\t\t\tnw = true;\n\t\tif( child.getName() === 'bottomLeft' )\n\t\t\tsw = true;\n\t\tif( child.getName() === 'bottomRight' )\n\t\t\tse = true;\n\t}\n\t\n\tif( nw && ne && se && sw )\n\t\treturn;\n\t\t\n\t_group.getChildren().each(function( shape, n ){\n\t\tif( shape.getClassName() === 'Rect' ){\n\t\t\tshape.moveToBottom();\n\t\t}\n\t});\n\t\n\tmaxWidth = _group.getWidth();\n\tmaxHeight = _group.getHeight();\n\t\n\tmakeSizableHelper( _group, 0, 0, 'topLeft', 'nwse-resize' );\n\tmakeSizableHelper( _group, maxWidth, 0, 'topRight', 'nesw-resize' );\n\tmakeSizableHelper( _group, 0, maxHeight, 'bottomLeft', 'nesw-resize' );\n\tmakeSizableHelper( _group, maxWidth, maxHeight, 'bottomRight', 'nwse-resize' );\n\t\n\tvar topLeft = _group.find('.topLeft')[0];\n\tvar topRight = _group.find('.topRight')[0];\n\tvar bottomRight = _group.find('.bottomRight')[0];\n\tvar bottomLeft = _group.find('.bottomLeft')[0];\n\t\n\t_group.setAttr( 'selected', false );\n\t_group.setAttr( 'disabled', false );\n\t\n\t_group.on('click touchstart', function(e){\n\t\tif( _group.getAttr( 'disabled' ) ) return;\n\t\t\n\t\tif( !_group.getAttr( 'selected' ) || Kinetic.multiSelect != null || !e.evt.shiftKey || !e.evt.ctrlKey ){\n\t\t\t//If shif and cntrl were not held during the click\n\t\t\tif( !e.evt.shiftKey && !e.evt.ctrlKey ){\n\t\t\t\tdeselect();\n\t\t\t\tselect( _group );\n\t\t\t} else if ( _group.getAttr( 'selected' ) ) {\n\t\t\t//If shif or cntrl were held during the click and object was already selected\n\t\t\t\tdeselect( _group );\n\t\t\t} else {\n\t\t\t//If shif and cntrl were held during the click and object was not already selected\n\t\t\t\tselect( _group );\n\t\t\t}\n\t\t\t\n\t\t\tselectStyle();\n\t\t}\n\t});\n\t\n\t_group.on('dragstart', function(e){\n\t\tif( _group.getAttr( 'disabled' ) ) return;\n\t\t\n\t\tif( !_group.getAttr( 'selected' ) ){\n\t\t\t//If shif and cntrl were not held during the click\n\t\t\tif( !e.evt.shiftKey && !e.evt.ctrlKey ){\n\t\t\t\tdeselect();\n\t\t\t\tselect( _group );\n\t\t\t} else if ( _group.getAttr( 'selected' ) ) {\n\t\t\t//If shif or cntrl were held during the click and object was already selected\n\t\t\t\tdeselect( _group );\n\t\t\t} else {\n\t\t\t//If shif and cntrl were held during the click and object was not already selected\n\t\t\t\tselect( _group );\n\t\t\t}\n\t\t\t\n\t\t\tselectStyle();\n\t\t}\n\t});\n\t\n\t_group.on('mouseover', function() {\n\t\tif( _group.getAttr( 'disabled' ) ) return;\n\t\t\n\t\tif( document.body.style.cursor !== 'nwse-resize' && document.body.style.cursor !== 'nesw-resize' && _group.getAttr( 'selected' ) ){\n\t\t\tdocument.body.style.cursor = 'all-scroll';\n\t\t}\n\t});\n\t\n\t_group.on('mouseout', function() {\n\t\tif( _group.getAttr( 'disabled' ) ) return;\n\t\t\n\t\tdocument.body.style.cursor = 'default';\n \t});\n \t\n \t_group.on('dragend', function() {\n\t\tif( _group.getAttr( 'disabled' ) ) return;\n \t\t\n\t\tmaster.canvas.ormObj.visualOnlySync();\n\t});\n\t\n\tif( typeof _type !== 'undefined' && _type === 'objects' ){\n\t\t_group.on('dblclick dbltap', function(){\n\t\t\tif( _group.getAttr( 'disabled' ) ) return;\n\t\t\t\n\t\t\tmaster.ormObj.openProperties( _group.id() );\n\t\t\tdeselect( _group );\n\t\t});\n\t} else if ( typeof _type !== 'undefined' && _type === 'predicate' ){\n\t\t_group.on('dblclick dbltap', function(){\n\t\t\tif( _group.getAttr('disabled') ) return;\n\t\t\t\n\t\t\tmaster.canvas.line.editPredicate( _group.id() );\n\t\t});\n\t} else if ( typeof _type !== 'undefined' && _type === 'rule' ){\n\t\t_group.on('dblclick dbltap', function(){\n\t\t\tif( _group.getAttr('disabled') ) return;\n\t\t\t\n\t\t\tmaster.rule.openChangeSymbol( _group.id() );\n\t\t});\n\t}\n}", "function TreeGroup(id, label, tooltip, nodeState, checkState, selected, exprEvalStr, target, enabled) {\n\tvar a = arguments;\n\t\n\tthis.childNodes = new Array(); // Buffer for the child nodes\n\tthis.clientHandler = new Array(); // ClientHandler associated with this node\n\t\n\t// properties\n\tthis.id = id; // identifier for the tree node\n\tthis.parent = null; // the parent or root node\n\tthis.label = label; // label to display on the node\n\tthis.tooltip = (a.length >= 3) ? tooltip : ''; // Tooltip\n\tthis.nodeState = (a.length >= 4) ? nodeState : NodeState.COLLAPSE; // state of the node (expand, collapse, expandex)\n\tthis.checkState = (a.length >= 5) ? checkState : CheckState.UNCHECKED; // indicates if the node is checked\n\tthis.selected = (a.length >= 6) ? selected : false; // true, if the node is selected\n\tthis.exprEvalStr = (a.length >= 7) ? exprEvalStr : null; // RegEx to match for the image\n\tthis.target = (a.length >= 8) ? target : null; // the target attribute\n\tthis.enabled = (a.length >= 9) ? enabled : true; // indicates if this node was enabled\n\tthis.type = NodeType.GROUP; // indicates a tree group\n}", "group(val) {\n if (!val) {\n return this._group;\n }\n this._group = val;\n return this;\n }", "function CollisionGroup(name, category, mask) {\n this._name = name;\n this._category = category;\n this._mask = mask;\n }", "function Grouping(parent){this.dateGroup=/_date_group_years|_date_group_quarters|_date_group_quarterYear|_date_group_months|_date_group_days|_date_group_hours|_date_group_minutes|_date_group_seconds/g;this.parent=parent;this.parent.groupingModule=this;this.addEventListener();}", "function onCreateGroup(groupName){\n try{\n thisPresenter.addGroup(groupName);\n } catch (err) {\n alert(err);\n }\n }", "createAllignmentGroup() {\r\n //prompt to assign names \r\n let allignment = prompt(\"Enter new allignment group:\");\r\n //array where we keep all our npcs\r\n this.allignmentGroups.push(new AllignmentGroup(allignment));\r\n }", "createGroup(abandonBehaviour = SpectateGroup.kStopAbandonBehaviour) {\n return new SpectateGroup(/* manager= */ null, abandonBehaviour);\n }", "function groupItem(nId, nItemType, priority){\n\tthis.id = nId;\n\tthis.type = nItemType;\n\tthis.priority = priority;\n}", "onCreateGroup() {\n this.createGroup.visible = true;\n }", "processGroup(group) {\n\n }", "function l(e) {\n return e && \"group\" === e.type;\n }", "function setGroupObj(groupObj){\nthis.groupObj = groupObj;\n}", "function makeGroup() {\n groupClass = 'groups';\n var length = document.getElementsByClassName(groupClass).length;\n var previousItem = document.getElementsByClassName(groupClass).item(length-1);\n var index = 0;\n // handles getting the class index out of the previous div, so we don't repeat indices on delete->add\n if (previousItem != null) {\n parent = previousItem.parentElement;\n splitArray = parent.id.split(\"-\");\n index = parseInt(splitArray[1]) + 1;\n }\n \n var div = document.createElement('div');\n div.id = 'group-' + index;\n\n var newGroup = document.createElement('h4');\n newGroup.innerHTML = 'Group';\n newGroup.className = groupClass;\n div.appendChild(newGroup);\n\n var deleteGroupButton = document.createElement('input');\n deleteGroupButton.id = 'delete-group-' + index;\n deleteGroupButton.type = 'button';\n deleteGroupButton.value = 'Delete Group';\n deleteGroupButton.className = 'deleteGroupButton';\n deleteGroupButton.onclick = function() { deleteGroup(div.id); };\n div.appendChild(deleteGroupButton);\n \n var addMemButton = document.createElement('input');\n addMemButton.id = 'add-mem-group-' + index;\n addMemButton.type = 'button';\n addMemButton.value = 'Add Member';\n addMemButton.className = 'addMemButton';\n addMemButton.onclick = function() { addMember(div.id); };\n div.appendChild(addMemButton);\n\n return div;\n}", "function group() {\n return wrap('group', and(\n displayName,\n literal(':'),\n opt(groupList),\n literal(';'),\n invis(opt(cfws))\n )());\n }", "function group() {\n return wrap('group', and(\n displayName,\n literal(':'),\n opt(groupList),\n literal(';'),\n invis(opt(cfws))\n )());\n }", "function group() {\n return wrap('group', and(\n displayName,\n literal(':'),\n opt(groupList),\n literal(';'),\n invis(opt(cfws))\n )());\n }", "function group() {\n return wrap('group', and(\n displayName,\n literal(':'),\n opt(groupList),\n literal(';'),\n invis(opt(cfws))\n )());\n }", "getById(id) {\r\n return new Group(this, id);\r\n }", "addGrouping() {\n this.onEditComplete_();\n\n var item = this.getAddParent_();\n if (item) {\n var parent = item instanceof GroupNode ? item : /** @type {SlickTreeNode} */ (item.getParent());\n var child = new GroupNode();\n\n // add the child to the top of the children array and select it\n parent.addChild(child, undefined, 0);\n parent.collapsed = false;\n this.lastAddedNode_ = child;\n\n this.updateTree_();\n } else {\n // not expecting to get here, but log it if we do\n var msg = 'Failed adding group. Unable to determine parent.';\n log.error(logger, msg);\n }\n }", "function createGroups(){\n\tgroupNumber = parseInt($(this).attr('class'));\n\t\n\t// Clear groups from the DOM\n\t$(\"#groups\").empty();\n}", "function MRadioGroup() {\n LinearLayout.apply(this);\n\n var self = this;\n var checkedId = -1;\n var onCheckedChangeListener = null;\n\n this.addChild = function(child, indexOrParams, params) {\n if (child.isChecked()) {\n if (checkedId != -1) {\n setCheckedStateForView(checkedId, false);\n }\n setCheckedId(child.getId());\n }\n child.setCheckedListener(function() {\n self.check(child.getId());\n });\n this.addView(child, indexOrParams, params);\n };\n\n /**\n * <p>Register a callback to be invoked when the checked radio button\n * changes in this group.</p>\n *\n * @method setOnCheckedChangeListener\n */\n this.setOnCheckedChangeListener = function(l) {\n onCheckedChangeListener = l;\n };\n\n /**\n * <p>Sets the selection to the radio button whose identifier is passed in\n * parameter. Using -1 as the selection identifier clears the selection;\n *\n * @method\n * @param id the unique id of the radio button to select in this group\n */\n this.check = function(id) {\n // don't even bother\n if (id != -1 && (id == checkedId)) {\n return;\n }\n if (checkedId != -1) {\n setCheckedStateForView(checkedId, false);\n }\n if (id != -1) {\n setCheckedStateForView(id, true);\n }\n setCheckedId(id);\n };\n\n /**\n * <p>Returns the identifier of the selected radio button in this group.\n * Upon empty selection, the returned value is -1.</p>\n *\n * @method getCheckedRadioButtonId\n * @return the unique id of the selected radio button in this group\n *\n */\n this.getCheckedRadioButtonId = function() {\n return checkedId;\n };\n\n /**\n * <p>Clears the selection. When the selection is cleared, no radio button\n * in this group is selected and {@link #getCheckedRadioButtonId()} returns\n * null.</p>\n *\n * @method clearCheck\n */\n this.clearCheck = function() {\n this.check(-1);\n };\n\n function setCheckedId(id) {\n checkedId = id;\n if (onCheckedChangeListener) {\n onCheckedChangeListener.call(this, checkedId);\n }\n }\n\n function setCheckedStateForView(viewId, checked) {\n var checkedView = self.findViewById(viewId);\n if (checkedView != null) {\n checkedView.setChecked(checked);\n }\n }\n}", "function PrefSubGroup(parent, name)\n{\n this.parent = parent; // Main group.\n this.name = name;\n this.fullGroup = this.parent.name + \".\" + this.name;\n this.label = getMsg(\"pref.group.\" + this.fullGroup + \".label\", null, this.name);\n this.help = getMsg(\"pref.group.\" + this.fullGroup + \".help\", null, \"\");\n this.gb = document.createElement(\"groupbox\");\n this.cap = document.createElement(\"caption\");\n this.box = document.createElement(\"box\");\n \n this.cap.setAttribute(\"label\", this.label);\n this.gb.appendChild(this.cap);\n this.box.orient = \"vertical\";\n \n // If there's some help text, we place it as the first thing inside \n // the <groupbox>, as an explanation for the entire subGroup.\n if (this.help)\n {\n this.helpLabel = document.createElement(\"label\");\n this.helpLabel.appendChild(document.createTextNode(this.help));\n this.gb.appendChild(this.helpLabel);\n }\n this.gb.appendChild(this.box);\n this.parent.box.appendChild(this.gb);\n \n return this;\n}", "function ShapeGroupData() {\n this.it = [];\n this.prevViewData = [];\n this.gr = createNS('g');\n }", "addgroup(group)\n {\n this.groupList.push(group);\n }", "constructor(idVertex, groupVertex) {\n this.id = idVertex;\n this.label = String(idVertex);\n this.group = groupVertex;\n }", "function camMakeGroup(what, filter)\n{\n\tif (!camDef(filter))\n\t{\n\t\tfilter = ENEMIES;\n\t}\n\tvar array;\n\tvar obj;\n\tif (camIsString(what)) // label\n\t{\n\t\tobj = getObject(what);\n\t}\n\telse if (camDef(what.length)) // array\n\t{\n\t\tarray = what;\n\t}\n\telse if (camDef(what.type)) // object\n\t{\n\t\tobj = what;\n\t}\n\tif (camDef(obj))\n\t{\n\t\tswitch(obj.type) {\n\t\t\tcase POSITION:\n\t\t\t\tobj = getObject(obj.x, obj.y);\n\t\t\t\t// fall-through\n\t\t\tcase DROID:\n\t\t\tcase STRUCTURE:\n\t\t\tcase FEATURE:\n\t\t\t\tarray = [ obj ];\n\t\t\t\tbreak;\n\t\t\tcase AREA:\n\t\t\t\tarray = enumArea(obj.x, obj.y, obj.x2, obj.y2,\n\t\t\t\t ALL_PLAYERS, false);\n\t\t\t\tbreak;\n\t\t\tcase RADIUS:\n\t\t\t\tarray = enumRange(obj.x, obj.y, obj.radius,\n\t\t\t\t ALL_PLAYERS, false);\n\t\t\t\tbreak;\n\t\t\tcase GROUP:\n\t\t\t\tarray = enumGroup(obj.id);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcamDebug(\"Unknown object type\", obj.type);\n\t\t}\n\t}\n\tif (camDef(array))\n\t{\n\t\tvar group = camNewGroup();\n\t\tfor (var i = 0, l = array.length; i < l; ++i)\n\t\t{\n\t\t\tvar o = array[i];\n\t\t\tif (!camDef(o) || !o)\n\t\t\t{\n\t\t\t\tcamDebug(\"Trying to add\", o);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (o.type === DROID && camPlayerMatchesFilter(o.player, filter))\n\t\t\t{\n\t\t\t\tgroupAdd(group, o);\n\t\t\t}\n\t\t}\n\t\treturn group;\n\t}\n\tcamDebug(\"Cannot parse\", what);\n}", "function IniGroup(parent, name) {\n this.name = name;\n this.parent = parent;\n\n let head = this.head = new IniLine(parent);\n let tail = this.tail = new IniLine(parent);\n head.gnext = tail;\n tail.gprev = head;\n}", "function createGroup(groupName){\n var newGroup = {\n name: groupName,\n tabs:[],\n open:false,\n active:true\n }\n groups.push(newGroup);\n storeGroups();\n}", "get groups() {\r\n return new SiteGroups(this, \"groups\");\r\n }", "get groups() {\r\n return new SiteGroups(this, \"groups\");\r\n }", "Group(groupData) {\n\t\tthis.utils.logger.debug({\n\t\t\tdescription: 'Group Action called.', groupData: groupData,\n\t\t\taction: new Group({app: this, groupData: groupData}),\n\t\t\tfunc: 'group', obj: 'Grout'\n\t\t});\n\t\treturn new Group(groupData);\n\t}", "function Group(_) {\n /* istanbul ignore next */\n return null;\n}", "function ImageGroup(props) {\n var children = props.children,\n className = props.className,\n content = props.content,\n size = props.size;\n var classes = classnames_default()('ui', size, className, 'images');\n var rest = lib_getUnhandledProps(ImageGroup, props);\n var ElementType = lib_getElementType(ImageGroup, props);\n return react_default.a.createElement(ElementType, extends_default()({}, rest, {\n className: classes\n }), childrenUtils_namespaceObject.isNil(children) ? content : children);\n}", "function startGroup(name) {\r\n command_1.issue('group', name);\r\n}", "function startGroup(name) {\r\n command_1.issue('group', name);\r\n}", "function ImageGroup(props) {\n var children = props.children,\n className = props.className,\n content = props.content,\n size = props.size;\n var classes = Object(clsx__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('ui', size, className, 'images');\n var rest = Object(_lib__WEBPACK_IMPORTED_MODULE_4__[\"getUnhandledProps\"])(ImageGroup, props);\n var ElementType = Object(_lib__WEBPACK_IMPORTED_MODULE_4__[\"getElementType\"])(ImageGroup, props);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ElementType, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, rest, {\n className: classes\n }), _lib__WEBPACK_IMPORTED_MODULE_4__[\"childrenUtils\"].isNil(children) ? content : children);\n}", "function startGroup(name) {\n command_1.issue(\"group\", name);\n }", "produceGroup(field) {\n if (!field) {\n return ('');\n }\n\n const key = `group_${field.field}`;\n return (\n <div key={key} className=\"\">\n {field.label && (\n <div className=\"form__label\">\n {field.label}\n </div>\n )}\n <div className=\"form__control\">\n {this.produceFieldController(field)}\n </div>\n </div>\n );\n }", "_addGroupContainer(label, labelSize) {\n const that = this,\n groupContainer = document.createElement('div'),\n labelTextWrapper = document.createElement('div'),\n labelTextContainer = document.createElement('div'),\n arrow = document.createElement('div'),\n dropDown = document.createElement('div');\n\n groupContainer.className = 'jqx-tab-group-container jqx-unselectable';\n groupContainer.$ = JQX.Utilities.Extend(groupContainer);\n labelTextWrapper.className = 'jqx-tab-label-text-wrapper';\n\n if (labelSize !== null && that.tabLayout !== 'shrink') {\n groupContainer.style[that._orientationSettings.dimension] = parseInt(labelSize, 10) + 'px';\n }\n\n // label\n labelTextContainer.className = 'jqx-tab-label-text-container';\n labelTextContainer.innerHTML = label;\n\n // down arrow\n arrow.className = 'jqx-tab-group-arrow';\n arrow.innerHTML = that._arrowCodes[that.tabPosition];\n\n // dropdown\n dropDown.className = 'jqx-tab-group-drop-down jqx-hidden';\n dropDown.$ = JQX.Utilities.Extend(dropDown);\n\n labelTextWrapper.appendChild(labelTextContainer);\n labelTextWrapper.appendChild(arrow);\n groupContainer.appendChild(labelTextWrapper);\n that.$.container.appendChild(dropDown);\n\n groupContainer.group = label;\n groupContainer.dropDown = dropDown;\n dropDown.groupContainer = groupContainer;\n\n return { label: groupContainer, dropDown: dropDown };\n }", "function setGroup(returnedNodes){\n\tif(returnedNodes.value == 'character70'){\n\t\treturn 'NamedCharacter70';\n\t}\n\tif(returnedNodes.value == 'character34'){\n\t\treturn 'NamedCharacter34';\n\t}\n\treturn //This is the default group.\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}", "function startGroup(name) {\n command_1.issue('group', name);\n}" ]
[ "0.7075827", "0.697077", "0.67892027", "0.6725062", "0.66630876", "0.6498547", "0.6426286", "0.6401402", "0.6363222", "0.6347624", "0.62811255", "0.62530875", "0.6207667", "0.6083013", "0.60417217", "0.60373396", "0.60295516", "0.60295516", "0.60139614", "0.5997739", "0.5989521", "0.5987552", "0.59374315", "0.5881428", "0.585377", "0.5834548", "0.57929534", "0.57702804", "0.57702804", "0.57702804", "0.57662433", "0.5739982", "0.57376105", "0.5721091", "0.5704656", "0.56815416", "0.56792635", "0.56757134", "0.5670705", "0.5656197", "0.5617384", "0.56171507", "0.56169426", "0.5605371", "0.5586534", "0.5582989", "0.5564838", "0.55594826", "0.55594826", "0.55594826", "0.55594826", "0.55591416", "0.55513024", "0.55506206", "0.5548123", "0.55455893", "0.55435354", "0.5542272", "0.55418843", "0.5529654", "0.55223185", "0.5517167", "0.5514411", "0.5514411", "0.55005723", "0.54946387", "0.5477969", "0.5464624", "0.5464624", "0.5451656", "0.54473484", "0.54354435", "0.5429611", "0.5415199", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715", "0.5414715" ]
0.5740905
31
define sudoku grid class
function Grid() { //repositories this.cells = []; this.rows = []; this.columns = []; this.halls = []; this.cubes = []; //build the grid structure for (var i=0; i<(base*base); i++) { this.rows.push(new Group()); this.columns.push(new Group()); this.halls.push(new Group()); this.cubes.push(new Group()); } //generate cells var base2 = base*base; for (var i=0; i<(base*base*base); i++) { //determine the indexes var columnIndex = i % base + 8 * Math.floor(i/(base2)); var hallIndex = i - base2 * Math.floor(i/(base2)); var rowIndex = Math.floor(i/base); var cubeIndex = Math.floor(columnIndex % base / Math.cbrt(base)) + Math.floor(rowIndex % base / Math.cbrt(base)) * Math.pow(Math.cbrt(base),2) + Math.floor(i / (base2 * Math.cbrt(base))) * Math.pow(Math.pow(Math.cbrt(base),2),2); //create the cell var cell = new Cell(this.rows[rowIndex], this.columns[columnIndex], this.halls[hallIndex], this.cubes[cubeIndex], this); this.cells.push(cell); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "init_grid() {\n this.grid_default = new Array(8);\n\n for (let i = 0; i < 8; ++i) {\n this.grid_default[i] = new Array(8);\n }\n this.grid_default[0][0] = new Tour(1, 0, 0);\n this.grid_default[0][1] = new Cavalier(1, 1, 0);\n this.grid_default[0][2] = new Fou(1, 2, 0);\n this.grid_default[0][3] = new Dame(1, 3, 0);\n this.grid_default[0][4] = new Roi(1, 4, 0);\n this.grid_default[0][5] = new Fou(1, 5, 0);\n this.grid_default[0][6] = new Cavalier(1, 6, 0);\n this.grid_default[0][7] = new Tour(1, 7, 0);\n for (let i = 0; i <= 7; ++i) {\n this.grid_default[1][i] = new Pion(1, i, 1);\n }\n\n this.grid_default[7][0] = new Tour(0, 0, 7);\n this.grid_default[7][1] = new Cavalier(0, 1, 7);\n this.grid_default[7][2] = new Fou(0, 2, 7);\n this.grid_default[7][3] = new Dame(0, 3, 7);\n this.grid_default[7][4] = new Roi(0, 4, 7);\n this.grid_default[7][5] = new Fou(0, 5, 7);\n this.grid_default[7][6] = new Cavalier(0, 6, 7);\n this.grid_default[7][7] = new Tour(0, 7, 7);\n for (let i = 0; i <= 7; ++i) {\n this.grid_default[6][i] = new Pion(0, i, 6);\n }\n\n for (let i = 2; i <= 5; ++i) {\n for (let j = 0; j <= 7; ++j) {\n this.grid_default[i][j] = undefined;\n }\n }\n return this.grid_default;\n }", "constructor() {\n\t\tthis.grid = [];\n\t\tthis.rows = 0;\n\t\tthis.cols = 0;\n\t}", "function Grid() {\n /* public properties */\n //是否能够多选行\n this.multiple = true;\n //排序列,内部用\n this.sortCol = -1;\n //降序排序\n this.sortDescending = 0;\n //错误信息\n this.error = '';\n //已选择的行数组\n this.selectedRows = [];\n //奇偶行是否用不同颜色显示,此开关打开时,添加删除行ie会自动关闭,原因目前不明\n this.colorEvenRows = true;\n //列是否允许调整宽度\n this.resizeColumns = true;\n //表体body列是否随表头head列的宽度实时调整列宽\n this.bodyColResize = true;\n //用户定义的对象变量名的字符串形式\n this.selfName = '';\n //是否排序开关\n this.sortFlag = true;\n //显示右键菜单\n this.showMenu = false;\n //是否能增减行,只控制键盘事件和右键菜单\n this.addSubRow = false;\n //序号的起始数\n this.startNum = 1\n //用户输入数据错误标志,\n this.inputError = false;\n //grid是否可编辑,该标志由程序更加html代码设置,用于对编辑快捷键的控制\n this.editFlag = false;\n //在grid最后一个编辑框失去焦点时,页面焦点聚到grid外的其他元素上\n this.nextFocus = null;\n //设置gird的高度为 maxViewRow行记录,不设置,默认高度按container高度走\n this.maxViewRow = -1\n //对gird的单元格统一加的累计宽度值\n this.widthAddValue = 20;\n //排序类型,数组,存放类型有'String','Number','None','Date','CaseInsensitiveString'\n this.sortTypes =[];\n //数据列的显示位置,页面用户将要排序的列序号(从0开始)作为数组传入,没有传入的列序号,将(通过把列宽置为0)被隐藏\n //如:o.colPos=[0,4,3,2]\n // o.colPos=[4,2,3,1]\n // 注意:1.在o.bind(...)调用之前对此赋值,不需要排序和隐藏列的功能不要赋值此属性\n // 2.列号一定要在 0 和 列数减一 之间,grid对此不校验,可能会出错。\n this.colPos = [];\n //添加行时,是否复制上一行的数据。ture-复制,false-不复制,默认false\n this.isAddRowWithData=false;\n //新增行时按照哪一行(首行或末行或选择的行的第一行)进行复制 (默认按首行复制)\n // false -首行复制 ; true - 末行复制 ;null - 按选择行复制(如果选择多行,复制选择的第一行,没选择行 则复制首行)\n //此参数在o.bind前后都可以设置。\n this.isAddRowWithLast = false;\n //在设置完只读单元格后,当前的编辑框是否下移到下一个可编辑框上,默认为移动\n this.isMoveFocusAfterSetReadOnly = true;\n //哪些列是多行select ,如:o.mutiSelectPos=[2,3]\n this.mutiSelectPos = [];\n\n /* events */\n this.onresize = null;\n this.onsort = null;\n this.onselect = null;\n this.onAddRow = null;\n this.onRemoveRow = null;\n this.onGridBlur = null; //Grid失去焦点时触发函数, Added by likey, Date: 2006-04-20\n\n\n /* private properties */\n //Container容器\n this._eCont = null;\n //Head 容器\n this._eHead = null;\n //left 容器\n this._eLeft = null;\n //body 容器\n this._eBody = null;\n //head 表格\n this._eHeadTable = null;\n //left 表格\n this._eLeftTable = null;\n //body 表格\n this._eBodyTable = null;\n //head 列集合\n this._eHeadCols = null;\n //暂时为1列\n this._eLeftCols = null;\n //body 的列集合\n this._eBodyCols = null;\n //用于调整Left行高\n this._eBodyRows = null;\n\n //当前处于编辑状态的单元格\n this._eEditTd = null;\n //第一个可编辑td\n this._eFistEditTd = null;\n //内部用的全局变量,用于左右键移动单元格的递归函数调用中\n this.__tempTd = null;\n //上次施动者td\n this._preLinkerTd = null;\n\n //右键菜单\n this._eMenu = null;\n\n this._eDataTable = null;\n //保存列的一些设置数据信息的数组\n this._eDataCols = null;\n\n this._activeHeaders = null;\n this._rows = 0;\n this._cols = 0;\n\n this._defaultLeftWidth = 40;\n\n}", "function Grid(width, height) {\n\tthis.width = width;\n\tthis.height = height;\n\tthis.cells = new Array(width * height);\n}", "function Grid(width, height) {\n\tthis.width = width;\n\tthis.height = height;\n\tthis.cells = new Array(width * height);\n}", "function Grid(rows, cols) {\n this.rows = rows;\n this.cols = cols;\n this.arr = Array(rows * cols).fill(0); // single dimension array starting at 0\n}", "constructor(rows, cols) {\n this.grid = [];\n for (let j = 0; j < rows; j++) {\n this.grid[j] = [];\n for (let i = 0; i < cols; i++) {\n this.grid[j][i] = new Node(i, j);\n }\n }\n }", "createGrids () {\n }", "newGrid(width, height) {\r\n if (width == undefined) { // Called by someone who just wants to clear the grid.\r\n width = this.grid.length\r\n height = this.grid[0].length\r\n }\r\n this.grid = []\r\n for (var x=0; x<width; x++) {\r\n this.grid[x] = []\r\n for (var y=0; y<height; y++) {\r\n if (x%2 === 1 && y%2 === 1) this.grid[x][y] = undefined\r\n else this.grid[x][y] = {'type':'line', 'color':0}\r\n }\r\n }\r\n // Performance: A large value which is === 0 to be used for pillar wrapping.\r\n this.largezero = width * height * 2\r\n }", "function make_grid(){\n \n for(let i=1;i<=9;i++){\n \n for(let j=1;j<=9;j++){\n let grid_element = document.createElement(\"div\");\n grid_element.classList.add(\"grid-element\");\n\n if(j%3==0){\n grid_element.style.borderRight = \"2px solid black\";\n }\n if(j==1){\n grid_element.style.borderLeft = \"2px solid black\"\n }\n if(i==1){\n grid_element.style.borderTop = \"2px solid black\"\n }\n if(i%3==0){\n grid_element.style.borderBottom = \"2px solid black\";\n }\n\n let fillspace = document.createElement(\"input\");\n fillspace.classList.add(\"grid-input\"); \n grid_element.appendChild(fillspace);\n sudoku.appendChild(grid_element);\n }\n }\n\n make_empty_grid()\n\n}", "function Board() {\n this.grid = _makeGrid();\n}", "constructor() {\n this.grid = [];\n }", "function makeGrid() {\n\n\n}", "function Board () {\n this.grid = _makeGrid();\n}", "function Board () {\n this.grid = _makeGrid();\n}", "function Board () {\n this.grid = _makeGrid();\n}", "constructor() {\n\t\tthis.grid = []; // array of object with names of tiles\n\t}", "createGrid(level) {\n // at every restart of game, want to reset dotCount to 0\n this.dotCount = 0;\n\n // reset grid to empty array - grid will be array with all positions\n this.grid = [];\n\n // to reset DOMGrid which is actual div's, to empty\n this.DOMGrid.innerHTML = '';\n\n // to reset styling to DOMGrid, GRID_SIZE and CELL_SIZE from css to make grid dynamic based on style from setup file\n this.DOMGrid.style.cssText = `grid-template-columns: repeat(${GRID_SIZE}, ${CELL_SIZE}px)`;\n\n // 'level' is array with all values for grid in setup file\n // 'forEach' loop to loop through each and every value within the 'LEVEL' array\n // looping through each element in LEVEL and creating a div for each element and adding a square with a class depending on the value of the square. & apply styling to set cell size on each element\n level.forEach((square) => {\n const div = document.createElement(`div`);\n div.classList.add(`square`, CLASS_LIST[square]);\n div.style.cssText = `width: ${CELL_SIZE}px; height: ${CELL_SIZE}px`;\n this.DOMGrid.appendChild(div);\n // to push new div into the 'this.grid' array above. \n this.grid.push(div)\n\n // to add to 1 to dotCount on movement\n if (CLASS_LIST[square] === OBJECT_TYPE.DOT) this.dotCount++;\n });\n }", "function Grid(width, height){\n this.space = new Array(width * height);\n this.width = width;\n this.height = height;\n}", "newGrid(width, height) {\n if (width == null) { // Called by someone who just wants to clear the grid.\n width = this.width\n height = this.height\n }\n this.grid = []\n for (var x=0; x<width; x++) {\n this.grid[x] = []\n for (var y=0; y<height; y++) {\n if (x%2 === 1 && y%2 === 1) this.grid[x][y] = null\n else this.grid[x][y] = {'type':'line', 'line':LINE_NONE}\n }\n }\n // Performance: A large value which is === 0 to be used for pillar wrapping.\n // Performance: Getting the size of the grid has a nonzero cost.\n // Definitely getting the length of the first element isn't optimized.\n this.largezero = width * height * 2\n this.width = this.grid.length\n this.height = this.grid[0].length\n }", "initGrid() {\n const columns = Math.floor((this.limits.right - this.limits.left) / this.options.gridStep) + 1;\n const rows = Math.floor((this.limits.bottom - this.limits.top) / this.options.gridStep) + 1;\n\n const grow = !this.grid || columns > this.grid.length || rows > this.grid[0].length;\n\n if (grow) {\n this.grid = new Array(columns);\n }\n\n for (let col = 0, x = this.limits.left; col < columns; col ++, x += this.options.gridStep) {\n if (grow) {\n this.grid[col] = new Array(rows);\n }\n\n for (let row = 0, y = this.limits.top; row < rows; row ++, y += this.options.gridStep) {\n // If the current grid node is inside an obstacle,\n // set the \"obstacle\" property of the node.\n const obstacle = this.obstacles.some(\n r => x >= r.left && x <= r.right &&\n y >= r.top && y <= r.bottom\n );\n\n this.grid[col][row] = {\n col, row, // The coordinates of this node in the grid array\n x, y, // The coordinates of this node in the exploration area\n obstacle, // Is there an obstacle at this node?\n\n // The following properties are updated by the pathfinding algorithm\n\n g: 0, // Cost from the start node to this node (g score)\n f: 0, // Estimated cost from the start node\n // to the goal node through this node (f score)\n parent: null, // The previous node in the current explored path\n open: false, // Does this node belong to the open set?\n closed: false, // Has this node already been processed?\n groupCount: 0, // The number of groups passing by this node\n groups: {} // A map of booleans indicating which groups pass by this node\n };\n }\n }\n }", "constructor(board_size = 400, n_blocks = 20) {\n this.color_map = {\n '#EEAAAA': 'light red',\n '#DDBB99': 'beige',\n '#FFFF80': 'yellow',\n '#BFFF80': 'light green',\n '#408000': 'dark green',\n '#DD99BB': 'pink',\n '#CC88CC': 'purple',\n '#99BBDD': 'light blue',\n '#336699': 'dark blue',\n '#5CD6D6': 'turquoise',\n '#FFB366': 'orange',\n '#e8e8e8': 'grey'\n };\n // board properties\n this.board_size = board_size;\n this.n_blocks = n_blocks;\n this.block_size = board_size / n_blocks;\n this.x = 0\n this.y = 0\n this.show_gridlines = true\n\n // game mode\n this.templ_col = 'grey'\n this.provide_template = true\n this.hide_buttons = true\n this.game_time = 600\n this.demo_time = 300\n }", "function Grid(width, height) {\n this.space = new Array(width * height);\n this.width = width;\n this.height = height;\n}", "constructor () {\n this.numRows = 6;\n this.numColumns = 7;\n this.spaces = this.createSpaces();\n }", "createGrid() {\n\t\t// loop to create the 8 rows\n\t\tfor (let row = 0; row < 8; row++) {\n\t\t\tthis.grid[row] = [];\n\t\t\t// push in 8 columns of nulls\n\t\t\tfor (let column = 0; column < 8; column++) {\n\t\t\t\tthis.grid[row].push(null);\n\t\t\t}\n\t\t}\n\t}", "function gridInformation(name, startX, startY) {\r\n this.name = name;\r\n this.startX = startX;\r\n this.startY = startY;\r\n this.currentNums = [];\r\n this.missingNums = [];\r\n this.cell = {\r\n one: { value: 0, row: 0, col: 0, potentialNumbers: [] },\r\n two: { value: 0, row: 0, col: 0, potentialNumbers: [] },\r\n three: { value: 0, row: 0, col: 0, potentialNumbers: [] },\r\n four: { value: 0, row: 0, col: 0, potentialNumbers: [] },\r\n five: { value: 0, row: 0, col: 0, potentialNumbers: [] },\r\n six: { value: 0, row: 0, col: 0, potentialNumbers: [] },\r\n seven: { value: 0, row: 0, col: 0, potentialNumbers: [] },\r\n eight: { value: 0, row: 0, col: 0, potentialNumbers: [] },\r\n nine: { value: 0, row: 0, col: 0, potentialNumbers: [] }\r\n }\r\n\r\n this.getGridCellPositions();\r\n this.fillCellsWithValues();\r\n this.fillCurrentNumsArray();\r\n this.fillMissingNumsArray();\r\n this.getPotentialNumbers();\r\n}", "T() {\n let dims = this.shape();\n let newGrid = [];\n for (let i = 0; i < dims[1]; i++) {\n let row = [];\n for (let j = 0; j < dims[0]; j++) {\n row.push(this.grid[j][i]);\n }\n newGrid.push(row);\n }\n this.grid = newGrid;\n }", "createGrid(starti, startj, endi, endj, level, mapped) {\n for (let i = 0; i < this.rows; i++) {\n\n let rowgrid = [];\n for (let j = 0; j < this.columns; j++) {\n let cell = new Cell(\n i, \n j, \n (i==starti && j==startj), \n (i==endi && j==endj), \n level, \n mapped\n );\n paintCell(cell);\n rowgrid.push(cell);\n }\n this.grid.push(rowgrid);\n }\n }", "function ShapeGrid(wid, hei) {\n this.map = [];\n for (var x=0; x<wid; x++) {\n var column = [];\n column.length = hei;\n column.fill(0);\n this.map.push(column);\n }\n }", "buildGrid(){\n const $sudokuGrid = $(\".sudoku-grid\");\n this.game.board.getValues().forEach( (line, row) => {\n let $ul = $(\"<ul></ul>\");\n this.buildLis(line, $ul, row);\n $sudokuGrid.append($ul);\n });\n }", "function GameObjectGrid(rows, columns, layer, id) {\r\n myLibrary.GameObjectList.call(this, layer, id);\r\n\r\n this.cellWidth = 0;\r\n this.cellHeight = 0;\r\n this._rows = rows;\r\n this._columns = columns;\r\n //console.log(\"Rows: \" + (this._rows) + \", Columns: \" + (this._columns));\r\n }", "function createGrid(width, height) {\n\n}", "initGrid(cellSize) {\n this.gridCells = {\n x: [],\n y: []\n }\n for (let i = 0; i < this.width - cellSize; i += cellSize) {\n this.gridCells.x.push(i)\n }\n for (let i = 0; i < this.height - cellSize; i += cellSize) {\n this.gridCells.y.push(i)\n }\n }", "buildGrid() {\n const $game = $(this.selector);\n for (let row = 0; row < this.Rows; row++) {\n const $row = $(\"<div>\")\n .addClass(\"row\");\n //columns must be nested inside of the rows. for-loop will generate columns.\n for (let col = 0; col < this.Cols; col++) {\n const $col = $(\"<div>\")\n .addClass(\"empty column\")\n .attr(\"data-column\", col)\n .attr(\"data-row\", row)\n $row.append($col);\n }\n $game.append($row);\n }\n }", "function Grid( )\n{\n\tthis.lowerLeft = [37.74027582404923, -122.51225523839999];\n\tthis.upperRight = [37.81323020595205, -122.38651514053345];\n\tthis.latStep = 0.004053 / 3;\n\tthis.lngStep = 0.006287 / 4;\n\tthis.widthN = (this.upperRight[1] - this.lowerLeft[1]) / this.lngStep;\n\tthis.heightN = (this.upperRight[0] - this.lowerLeft[0]) / this.latStep;\n\t\n\tthis.plotGrid = function( bbox, row, column ) {\n\t\tvar grid = drawRegion_bbox( bbox );\n\t\tgrid.row = row;\n\t\tgrid.column = column;\n\t\tgrid.id = row * this.widthN + column;\n\t\t\n\t\tgoogle.maps.event.addListener(grid, 'mouseover', function(event) {\n\t\t\tmessage('Grid row ' + this.row + ' column ' + this.column + ' id ' + this.id);\n\t\t});\n\t\t\n\t\tgoogle.maps.event.addListener(grid, 'mouseout', function(event) {\n\t\t\tmessage('');\n\t\t});\n\t\t\n\t\treturn grid;\n\t};\n\t\n\tthis.plotAllGrids= function() {\n\t\tfor (var row = 0; row < this.heightN; row ++)\n\t\t{\n\t\t\tfor (var column = 0; column < this.widthN; column ++)\n\t\t\t{\n\t\t\t\tbbox = [ this.lowerLeft[0] + this.latStep * (this.heightN - row -1), \n\t\t\t\t\t\tthis.lowerLeft[1] + this.lngStep * column,\n\t\t\t\t\t\tthis.upperRight[0] - this.latStep * row, \n\t\t\t\t\t\tthis.upperRight[1] - this.lngStep * (this.widthN - 1 - column)];\n\t\t\t\t\n\t\t\t\tthis.plotGrid( bbox, row, column );\n\t\t\t}\n\t\t}\n\t};\n\t\n\t\n\tthis.plotByID = function( id ) {\n\t\tvar row = Math.floor(id / this.widthN);\n\t\tvar column = id % this.widthN;\n\t\tvar bbox = [ this.lowerLeft[0] + this.latStep * (this.heightN - row -1), \n\t\t\t\t\t\tthis.lowerLeft[1] + this.lngStep * column,\n\t\t\t\t\t\tthis.upperRight[0] - this.latStep * row, \n\t\t\t\t\t\tthis.upperRight[1] - this.lngStep * (this.widthN - 1 - column)];\n\t\treturn this.plotGrid( bbox, row, column );\n\t};\n}", "function defineGrid(n){\n\t\tvar boardDiv = document.getElementsByClassName(\"boardCls\")[0] ;\n\t\t$(\"#board\").html(\"\")\n\t\tlet cnt=0 ;\n\t\tfor(let i=0;i<n;i++)\n\t\t{\n\t\t\tvar rowDiv = document.createElement(\"div\") ;\n\t\t\trowDiv.classList.add(\"row\") ;\n\t\t\trowDiv.style.height=(580/n)+\"px\";\n\n\t\t\tfor(let j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tvar singleDiv = document.createElement(\"div\") ;\n\t\t\t\tsingleDiv.classList.add(\"block\") ;\n\t\t\t\tsingleDiv.style.width=(580/n)+\"px\" ;\n\t\t\t\tvar para = document.createElement(\"p\") ;\n\t\t\t\tpara.classList.add(\"number\") ;\n\t\t\t\t\n\t\t\t\tsingleDiv.id=\"block-\"+cnt ;\n\t\t\t\tpara.id=\"blk-\"+cnt;\n\t\t\t\tcnt++ ;\n\t\t\t\tsingleDiv.appendChild(para) ;\n\t\t\t\trowDiv.appendChild(singleDiv) ;\n\t\t\t}\n\t\t\tboardDiv.appendChild(rowDiv) ;\n\t\t}\n\t}", "function Sudoku(sudokuEl) {\n var self = this;\n self.puzzle = []; // array of puzzle rows\n self.el = sudokuEl;\n self.numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9];\n\n // How many of each number is still left to place?\n // for example {1: 9, 2: 7, 3: 9, ...}\n self.remaining = {};\n\n self.init = function (newPuzzle) {\n sudoku.numbers.forEach(function(value, index) {\n sudoku.remaining[value] = 9;\n })\n self.puzzle = newPuzzle;\n };\n\n self.draw = function () {\n self.el.innerHTML = \"\";\n for (var x = 0; x < 9; x++) {\n var row = document.createElement(\"tr\");\n for (var y = 0; y < 9; y++) {\n var cell = document.createElement(\"td\");\n cell.className = \"empty-cell\";\n cell.x = x;\n cell.y = y;\n // Show preview of number on mouseover\n cell.onmouseover = function (e) {\n e.target.innerHTML = next[0];\n }\n // Listen to clicks\n cell.onclick = emptyCellClicked;\n row.appendChild(cell);\n }\n self.el.appendChild(row);\n }\n };\n\n self.partlyShow = function (p) {\n // Note that using RNG here is likely to result in\n // sudokus that require guessing, that's totally fine\n for (var x = 0; x < 9; x++) {\n for (var y = 0; y < 9; y++) {\n if (Math.random() < p) {\n // this makes sure that the center square is always\n // empty if probability of showing numbers is over 80%\n if (p < 0.8 || x !== 4 || y !== 4) {\n fillCell(self.puzzle[x][y], x, y);\n self.remaining[self.puzzle[x][y]] -= 1;\n }\n }\n }\n }\n }\n\n self.guess = function (n, x, y) {\n if (self.puzzle[x][y] == n) {\n self.fillCell(n, x, y);\n return true;\n } else {\n return false;\n }\n };\n\n self.fillCell = function(n, x, y) {\n // This function puts number n inside the cell on\n // coordinates (x,y) and removes eventListeners\n // that are only needed for empty cells\n var cell = self.cellAt(x, y);\n cell.innerHTML = n;\n cell.classList.remove(\"empty-cell\");\n cell.onmouseover = \"\";\n cell.onclick = \"\";\n };\n\n self.cellAt = function(x, y) {\n return self.el.rows[x].cells[y];\n };\n\n self.addRemaining = function (n) {\n self.remaining[n] += 1;\n };\n\n self.getRemaining = function () {\n // This function returns either PUZZLE_COMPLETE if there are no more numbers\n // that need to be placed or a number from the remaining\n // ..ok I know this is a really stupid way to do this but there's no multiset\n // in JavaScript and I'm too lazy to think of a better way so I just use strings\n // as an intermediate step to get a random number\n var remainingAsString = \"\";\n for (var i = 1; i < 10; i++) {\n remainingAsString += String(i).repeat(self.remaining[i]);\n }\n if (remainingAsString.length < 1) {\n return PUZZLE_COMPLETE;\n }\n var n = Number(remainingAsString[randomInt(0, remainingAsString.length-1)]);\n self.remaining[n] -= 1;\n return n;\n };\n\n return self;\n}", "function Board (divName,r,c,ch,cw,w,h) {\n 'use strict';\n $(divName).css({\"width\":Game.viewport.width,\"height\":Game.viewport.height});\n this.width = w || $(divName).width();\n this.height = h || $(divName).height();\n CSSs.cell_h = ch || CSSs.cell_h;\n CSSs.cell_w = cw || CSSs.cell_w;\n this.cnt = 0;\n this.DOM_element = divName;\n this.tileSet = [];\n this.patternStr = \"\";\n this.cols = c || Math.floor(this.height / CSSs.cell_h);\n this.rows = r || Math.floor(this.width / CSSs.cell_w);\n // this.pattern =[[4,0,0,1,0,0,0,4,0,0,0,1,0,0,4],\n // [0,3,0,0,0,2,0,0,0,2,0,0,0,3,0],\n // [0,0,3,0,0,0,1,0,1,0,0,0,3,0,0],\n // [1,0,0,3,0,0,0,1,0,0,0,3,0,0,1],\n // [0,0,0,0,3,0,0,0,0,0,3,0,0,0,0],\n // [0,2,0,0,0,2,0,0,0,2,0,0,0,2,0],\n // [0,0,1,0,0,0,1,0,1,0,0,0,1,0,0],\n // [4,0,0,1,0,0,0,5,0,0,0,1,0,0,4],\n // [0,0,1,0,0,0,1,0,1,0,0,0,1,0,0],\n // [0,2,0,0,0,2,0,0,0,2,0,0,0,2,0],\n // [0,0,0,0,3,0,0,0,0,0,3,0,0,0,0],\n // [1,0,0,3,0,0,0,1,0,0,0,3,0,0,1],\n // [0,0,3,0,0,0,1,0,1,0,0,0,3,0,0],\n // [0,3,0,0,0,2,0,0,0,2,0,0,0,3,0],\n // [4,0,0,1,0,0,0,4,0,0,0,1,0,0,4]];\n\n this.pattern =[[4,0,0,0,0,0,0,4,0,0,0,0,0,0,4],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [4,0,0,0,0,0,0,5,0,0,0,0,0,0,4],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\n [4,0,0,0,0,0,0,4,0,0,0,0,0,0,4]];\n\n this.top_left_corner = {\n \"x\":0,\n \"y\":0\n };\n\n this.bottom_left_corner = {\n \"x\": 0,\n \"y\": Game.viewport.height//r*(CSSs.cell_w + CSSs.spacing)\n };\n\n\n this.top_right_corner = {\n \"x\": Game.viewport.width,//c*(CSSs.cell_w + CSSs.spacing),\n \"y\": 0\n };\n\n this.bottom_right_corner = {\n \"x\": Game.viewport.width,//c*(CSSs.cell_w + CSSs.spacing),\n \"y\": Game.viewport.height//r*(CSSs.cell_w + CSSs.spacing)\n };\n\n this.horizontal_marker = {\n \"x\": 0,\n \"y\": (this.bottom_left_corner.y - this.top_left_corner.y)/4\n };\n\n this.vertical_marker = {\n \"x\": (this.top_right_corner.x - this.top_left_corner.x)/4,\n \"y\": 0\n };\n\n}", "createGrid() {\n let grid = new Array(parseInt(this.width)).fill(0)\n\n for(let col = 0; col < this.width; col++) {\n grid[col] = new Array(parseInt(this.height)).fill(0)\n }\n return grid\n }", "createGrid() {\n // loop to create the 8 rows\n for (let row = 0; row < 8; row++) {\n this.grid[row] = [];\n // push in 8 columns of nulls\n for (let column = 0; column < 8; column++) {\n this.grid[row].push(null);\n }\n }\n }", "createGrid() {\n // loop to create the 8 rows\n for (let row = 0; row < 8; row++) {\n this.grid[row] = [];\n // push in 8 columns of nulls\n for (let column = 0; column < 8; column++) {\n this.grid[row].push(null);\n }\n }\n }", "createGrid() {\n // loop to create the 8 rows\n for (let row = 0; row < 8; row++) {\n this.grid[row] = [];\n // push in 8 columns of nulls\n for (let column = 0; column < 8; column++) {\n this.grid[row].push(null);\n }\n }\n }", "createGrid() {\n // loop to create the 8 rows\n for (let row = 0; row < 8; row++) {\n this.grid[row] = [];\n // push in 8 columns of nulls\n for (let column = 0; column < 8; column++) {\n this.grid[row].push(null);\n }\n }\n }", "function createGrid( rows, cols ) {\n\n let html = '';\n const con = document.querySelector('.con');\n\n // Create and Store the Grid\n for( let i = 0; i < rows; i++ ) {\n\n grid[i] = [];\n let rowHtml = '';\n let rowConHtml = `<div class='row' id='${i}'></div>`;\n con.innerHTML += rowConHtml;\n let rowCon = document.getElementById(i.toString());\n\n for( let j=0; j < cols; j++ ) {\n\n let block = new Block(i, j);\n grid[i].push(block);\n rowHtml = `<div class='block' id=${block.id}>&nbsp</div>`\n rowCon.innerHTML += rowHtml;\n\n }\n\n }\n\n // Add each block's neighbors\n for( let i = 0; i < rows; i++ ) {\n\n for( let j = 0; j < cols; j++ ) {\n\n grid[i][j].addNeighbors();\n\n }\n\n }\n\n}", "constructor(current, index, grid) {\n\t\tthis.type = current;\n\t\tthis.x = index % grid.width;\n\t\tthis.y = parseInt(index / grid.width);\n\t\tthis.grid = grid;\n\t\tthis.reproduceCounter = 0;\n\t}", "function fill_grid(){\n let mp = {};\n let row = new Array();\n let col = new Array();\n let gridf = [...grid];\n \n reinitialize();\n\n for(let i=0;i<3;i++){\n for(let j=0;j<3;j++){\n let mpkey = [i,j];\n mp[mpkey] = [];\n for(let k=1;k<=9;k++){\n mp[mpkey][k] = false; \n }\n }\n }\n for(let i=0;i<9;i++){\n row[i] = []\n col[i] = []\n for(let j=1; j<=9;j++){\n row[i][j] = 0;\n col[i][j] = 0;\n }\n }\n\n //initialize according to grid\n for(let i=0;i<9;i++){\n for(let j=0;j<9;j++){\n boxr = parseInt(i/3);\n boxc = parseInt(j/3);\n mp[[boxr,boxc]][grid[i][j]] = true;\n row[i][grid[i][j]] = true;\n col[j][grid[i][j]] = true;\n\n }\n }\n\n fillSudoku(0, 0, gridf, mp, row, col);\n \n}", "function Grid(width, height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}", "function GameBoard() {\n this.init = function () {\n this.generateBoard();\n };\n\n this.generateBoard = function () {\n var chipRow = $('<div>', {\n class: 'chipRow'\n });\n $('#container').append(chipRow);\n\n for (var col = 0; col < 7; col++) {\n var colNum = $('<div>', {\n class: 'cell'+col,\n });\n colNum.appendTo(\"#container\");\n }\n }\n}", "function createGrid(rows, cols) {\n // Creo el arreglo de arreglos\n var matrix = new Array();\n\n // Creo los arreglos de los arreglos\n for (var row = 0; row < rows; row++) {\n matrix.push(new Array());\n\n // Creo las celdas\n for (var col = 0; col < cols; col++) {\n matrix[row].push({ x: col, y: row, active: false, empty: true, idx: row * board_cols + col })\n }\n }\n return matrix;\n }", "function Board(){\r\n\tthis.grid = [];\r\n\r\n\t//Contains all mined cells placed on board.\r\n\tthis.placedMines = [];\r\n\r\n\t//Used for cell revealing to avoid a recursive implosion\r\n\tthis.toCheck = [];\r\n\r\n\tfor(var y = 0; y < Config.numRows; y++){\r\n\t\tfor(var x = 0; x < Config.numCols; x++){\r\n\t\t\t//Create cells\r\n\t\t\tthis.grid.push( new Cell(x, y));\r\n\t\t}\r\n\t}\r\n\tthis.placeMines();\r\n\tthis.printBoard();\r\n\tthis.calcMineAdj();\r\n\tTimer.printTime();\r\n}", "function _makeGrid () {\n let grid = new Array(8);\n for (let i = 0; i < grid.length; i++) {\n grid[i] = new Array(8)\n }\n grid[3][4] = new Piece(\"black\");\n grid[4][3] = new Piece(\"black\");\n grid[3][3] = new Piece(\"white\");\n grid[4][4] = new Piece(\"white\");\n return grid;\n}", "function _makeGrid () {\n\n let grid=[];\n\n for (let i = 0; i<8;i++){\n let rows = [];\n for( let j=0; j<8; j++){\n rows.push(undefined);\n }\n grid.push(rows);\n }\n\n grid[3][4] = new Piece(\"black\");\n grid[4][3] = new Piece(\"black\");\n grid[3][3] = new Piece(\"white\"); \n grid[4][4] = new Piece(\"white\"); \n\n return grid;\n}", "_init_grid() {\n\t\t\tfor (var i = 0; i < this._internal_grid_size[0]; i++) {\n\t\t\t\tthis._internal_grid.push([]);\n\t\t\t\tfor (var e = 0; e < this._internal_grid_size[1]; e++) {\n\t\t\t\t\tthis._internal_grid[i].push(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function Board(){}", "function defaultGrid(){\n gridSize(24)\n createDivs(24)\n}", "constructor() {\n this.grid = [];\n\n for (let x = 0; x < MAX_X; x++) {\n let col = [];\n for (let y = 0; y < MAX_Y; y++) {\n col.push(new Block(x, y));\n }\n\n this.grid.push(col);\n }\n\n return this;\n }", "initGrid() {\n this.grid = [];\n this.gameOver = false;\n for(let row = 0; row < this.rowSize; row++) {\n let currentRow = [];\n for(let cell = 0; cell < this.colSize; cell++) {\n currentRow.push(this.getEmptyCell());\n }\n this.grid.push(currentRow);\n }\n }", "constructor () {\n this.grid[this.topLeftCorner] = 'W';\n }", "makeGrid() {\n let grid = []\n for (let row = 0; row < 18; row ++) {\n grid.push([])\n for (let col = 0; col < 10; col ++) {\n grid[row].push(<Square key={`${col}${row}`} color=\"1\" />)\n }\n }\n return grid\n }", "constructor(cols, rows) {\n this.cols = cols;\n this.rows = rows;\n }", "function _ChessGrid() {\n /* Check Abstract-ness */\n ClassVehicle.checkAbstract.call(this, _ChessGrid);\n\n /* Call constructor */\n ChessGridConstructor.apply(this, arguments);\n }", "function _makeGrid () {\n\tgrid = new Array(8)\n\tfor(let i = 0; i <= grid.length - 1; i++){\n\t\tgrid[i] = new Array(8);\n\t}\n\tgrid[3][4] = new Piece('black');\n\tgrid[4][3] = new Piece('black');\n\tgrid[3][3] = new Piece('white');\n\tgrid[4][4] = new Piece('white');\n\treturn grid;\n}", "function PdfGridCellCollection(row){/**\n * @hidden\n * @private\n */this.cells=[];this.gridRow=row;}//Properties", "function _GridCell(col, row, bounds) {\n if (bounds === void 0) { bounds = null; }\n this.col = col;\n this.row = row;\n this.bounds = bounds;\n }", "function GridPosition(nx, ny, nz) {\n \"use strict\";\n this.nx = nx;\n this.ny = ny;\n this.nz = nz;\n}", "function Board( args ) {\n\n this.ID = ++ID;\n\n // set the default values\n args = _.extend( {\n game : null,\n color : [0, 0, 0], //black\n height : 20,\n width : 10,\n // extra lines on the top that aren't displayed\n padTop : 2,\n padBottom : 1,\n padLeft : 1,\n padRight : 1,\n cellSize : '10px',\n // ms - the amount of time between finding full rows and removing them.\n shiftDelay : 50,\n gravity : 1,\n }, args );\n\n // most arguments simply get copied onto the object.\n // grid is the excpetion, store it separately and delete from\n // args.\n var inpatt = args.pattern;\n delete args.pattern;\n\n _.extend( this, args );\n \n // make the grid, either from by munging args.grid or making one\n // from\n // the height, width and topPad.\n inpatt ? this.parsePattern( inpatt ) : this.makeGrid();\n \n this.dom.style.cssText = \"border-collapse : separate ; border-spacing: 0; \";\n }", "function createGrid(num) {\n for(let i = 0; i < num **2; i++) {\n container.appendChild(cellNode.cloneNode(true));\n }\n gridFormat(container, num);\n startColor(color);\n \n \n}", "update_grid() {\n // Constants for parameters of the grid pattern.\n // The (average) length of the dashes making up the cell border lines.\n const DASH_LENGTH = this.default_cell_size / 16;\n // The border colour.\n const BORDER_COLOUR = \"lightgrey\";\n\n const [width, height] = [document.body.offsetWidth, document.body.offsetHeight];\n const canvas = this.grid;\n canvas.resize(width, height);\n\n const scale = 2 ** this.scale;\n\n const context = canvas.context;\n context.strokeStyle = BORDER_COLOUR;\n context.lineWidth = Math.max(1, CONSTANTS.GRID_BORDER_WIDTH * scale);\n context.setLineDash([DASH_LENGTH * scale]);\n\n // We want to centre the horizontal and vertical dashes, so we get little crosses in the\n // corner of each grid cell. This is best effort: it is perfect when each column and row\n // is the default size, but otherwise may be imperfect.\n const dash_offset = -DASH_LENGTH * scale / 2;\n\n const offset = this.view;\n\n const [[left_col, left_offset], [top_row, top_offset]] = this.col_row_offset_from_offset(\n offset.sub(new Offset(width / scale / 2, height / scale / 2))\n );\n const [[right_col,], [bottom_row,]] = this.col_row_offset_from_offset(\n offset.add(new Offset(width / scale / 2, height / scale / 2))\n );\n\n // Draw the vertical lines.\n context.beginPath();\n for (let col = left_col, x = left_offset - offset.left;\n col <= right_col; x += this.cell_size(this.cell_width, col++)) {\n context.moveTo(x * scale + width / 2, 0);\n context.lineTo(x * scale + width / 2, height);\n }\n context.lineDashOffset = offset.top * scale - dash_offset - height % this.default_cell_size / 2;\n context.stroke();\n\n // Draw the horizontal lines.\n context.beginPath();\n for (let row = top_row, y = top_offset - offset.top;\n row <= bottom_row; y += this.cell_size(this.cell_height, row++)) {\n context.moveTo(0, y * scale + height / 2);\n context.lineTo(width, y * scale + height / 2);\n }\n context.lineDashOffset = offset.left * scale - dash_offset - width % this.default_cell_size / 2;\n context.stroke();\n }", "function gridMap() {\n return {\n top_left: { _cx_cy_index: 4, drag_index : [ 2, 3, 4 ] },\n bottom_left: { _cx_cy_index : 3, drag_index : [ 1, 4, 3 ] },\n top_right: { _cx_cy_index : 2, drag_index : [ 4, 1, 2 ] },\n bottom_right: { _cx_cy_index : 1, drag_index : [ 3, 2, 1 ] }\n };\n }", "function makeGrid(rows, cols) {\n container.style.setProperty('--grid-rows', rows);\n container.style.setProperty('--grid-cols', cols);\n for (c = 0; c < (rows * cols); c++) {\n let cell = document.createElement(\"div\");\n container.appendChild(cell).className = \"grid-item\";\n cells[c] = cell;\n cells[c].style.backgroundColor = \"white\"\n };\n}", "constructor(row,col, grid){\n this.type = \"player\";\n this.row = row;\n this.col = col;\n this.grid = grid;\n this.rows = this.grid.rows;\n this.collumns = this.grid.collumns;\n this.color = \"#3232FF\";\n this.direction = \"s\";\n this.isBullet = false;\n }", "function createGrid(grid) {\n // The game board and all variables are cleared\n clearPrevGrid();\n // Increment the ids of the squares as they are created\n let idNumber = 0;\n // This creates 81 squares to fill the 9x9 grid of the game board\n for (let i = 0; i < 81; i++) {\n // This creates a new paragraph element\n let square = document.createElement(\"p\");\n // Checks the pre-defined game boards based on difficulty, to see if the squares should have numbers or be empty\n if (grid.charAt(i) != \"-\") {\n // Assign the correct number to the squares\n square.textContent = grid.charAt(i);\n } else {\n // Add event listener to each blank square\n square.addEventListener(\"click\", function() {\n // If noSelect is not disabled\n if (!noSelect) {\n // If the square is already selected\n if (square.classList.contains(\"selected\")) {\n // Deselect the square selected\n square.classList.remove(\"selected\");\n selectedSquare = null;\n } else {\n // Deselect all other squares selected\n for (let i = 0; i < 81; i++) {\n qsa(\".square\")[i].classList.remove(\"selected\");\n }\n // Select square and update selectedSquare variable\n square.classList.add(\"selected\");\n selectedSquare = square;\n updateSquare();\n }\n }\n });\n }\n // Assign an id to each square\n square.id = idNumber;\n // Increment the id for each square made\n idNumber ++;\n // // Add \"square\" class to each square created\n square.classList.add(\"square\");\n // Adding in a thicker bottom border on these lines to define the game board sections\n if ((square.id > 17 && square.id < 27) || (square.id > 44 && square.id < 54)) {\n square.classList.add(\"bottomBorder\");\n }\n // Adding in a thicker border on these right of these lines to define the game board sections (Selects the 3rd and 6th square in each row)\n if ((square.id + 1) % 9 == 3 || (square.id + 1) % 9 == 6) {\n square.classList.add(\"rightBorder\");\n }\n // Add square to the game board\n id(\"grid\").appendChild(square);\n }\n}", "constructor () {\n this.size = 16;\n this.grid_status = this.makeStatus();\n this.boxies = this.makeBoxes();\n }", "function initGrid() {\n row = [];\n for (var j = 0; j < GRID_H; j++) {\n\trow.push('');\n }\n grid = [];\n for (var i = 0; i < GRID_W; i++) {\n\tgrid.push(Array.from(row));\n }\n}", "function buildGrid() {\n gameArea.innerHTML = \"\";\n\n console.log('---------------[ GENERATING GRID ]---------------');\n\n for (var i = 0; i < Math.sqrt(config.gridSize); i++) {\n var row = document.createElement('div');\n row.classList.add('row');\n // console.log('ROW ' + i + \":\");\n for (var j = 0; j < Math.sqrt(config.gridSize); j++) {\n var cell = document.createElement('div');\n cell.id = `cell-${j}-${i}`;\n cell.setAttribute('row', i);\n cell.setAttribute('cell', j);\n cell.classList.add('cell');\n row.appendChild(cell);\n\n // console.log(' - Cell ' + j);\n }\n gameArea.appendChild(row);\n }\n console.log('---------------[ GENERATED GRID ]---------------');\n\n}", "function TicTacToeBoard() {\n this.grid = makeEmptyGrid();\n this.callbacks = new SimpleEventUtil();\n}", "function gridCoords(q, r) {\r\n\tvar coord = document.getElementById(getElementByAxial(q, r)).getBoundingClientRect();\r\n\tthis.x = coord.x;\r\n\tthis.y = coord.y;\r\n\tsetGridCoords = function(x ,y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}\r\n\r\n}", "function _makeGrid () {\n let board = [];\n for (let i = 0; i < 8; i++) {\n let row = [];\n for (let j = 0; j < 8; j++) {\n row.push(null);\n }\n board.push(row);\n }\n let whites = [[3, 3], [4, 4]];\n let blacks = [[4, 3], [3, 4]];\n whites.forEach(coordinates => {\n let piece = new Piece(\"white\");\n board[coordinates[0]][coordinates[1]] = piece;\n });\n blacks.forEach(coordinates => {\n let piece = new Piece(\"black\");\n board[coordinates[0]][coordinates[1]] = piece;\n });\n return board;\n}", "function setGrid(width,height){\n\tbd.cellWidth = bd.width/width;\n\tbd.cellHeight = bd.height/height;\n\tbd.x = width;\n\tbd.y = height;\n\n\tctx.clearRect(0,0,bd.width,bd.height);\n\t//Initalizes the state array and the neighbor array\n\tstate\t = new Array(width);\n\tneighbor = new Array(width);\n\tfor(var x = 0; x < width; x ++){\n\n\t\tstate[x] \t= new Array(height);\n\t\tneighbor[x] = new Array(height);\n\n\t\tfor(var y = 0; y < height; y ++){\n\t\t\tif(random && Math.random()>0.5)\n\t\t\t\tstate[x][y] = true;\n\t\t\telse state[x][y] = false;\n\t\t\t\tneighbor[x][y] = 0;\n\t\t}\n\t}\n}", "function makeGrid() {\n\tvar grid = $('#grid');\n\t// Capture grid height and width and limit it to 1 to 30\n\tvar height = Number($('#grid-height').val());\n\t$('#win').removeClass('win-is-visible');\n\tif (height > 30) {\n\t\theight = 30;\n\t}\n\tif (height < 1) {\n\t\theight = 1;\n\t}\n\tvar width = Number($('#grid-width').val());\n\tif (width > 30) {\n\t\twidth = 30;\n\t}\n\tif (width < 1) {\n\t\twidth = 1;\n\t}\n\t// Reset game variables\n\tgrid.html('');\n\tgridArr = [];\n\ttilesFound = 0;\n\tnonogram = false;\n\t// Construct grid in dom and gridArr variable\n\tgrid.prepend('<div id=\\'y-numbers\\'</div>');\n\tfor (var x = 0; x < width + 1; x++){\n\t\tx == 0 ? $('#y-numbers').append('<div id=\\'corner\\'></div>') : \n\t\t\t$('#y-numbers').append('<div id=\\'column-'+ (x - 1) +'\\'><ul></ul></div>');\n\t}\n\tfor (var y = 0; y < height; y++){\n\t\tgrid.append('<div id='+ y +'-row></div>');\n\t\tgridArr.push([]);\n\t\tfor (var x = 0; x < width + 1; x++){\n\t\t\tif (x === 0){\n\t\t\t\t$('#'+ y +'-row').append('<div id=\\'row-'+ y +'\\'><ul></ul></div>');\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$('#'+ y +'-row').append('<div class=\\'pixel '+ (x - 1) +'\\' data-isPixel = \\'false\\' data-y='+ y +' data-x='+ (x - 1) +' onclick=\\'handlePixel(this)\\'></div>');\n\t\t\t\tgridArr[y].push(0);\n\t\t\t}\n\t\t}\n\t}\n\t// Append color picker and nonogramify buttons\n\t$('#grid').append('<div id=\"color-picker\"><p>Color Picker</p><input id=\"grid-color\" type=\"color\"></div><button id=\"nonogramify\" onclick=\"nonogramify()\">Create Nonogram</button>');\n}", "function Grid() {\n\tthis.blockSize = 25; //25;\n\tthis.width = 0; //600 / this.blockSize;\n\tthis.height = 0; //350 / this.blockSize;\n\n\tthis.init = function(stage_width, stage_height, size) {\n\t\tif (size == null)\n\t\t\tsize = this.blockSize;\n\t\t\n\t\tthis.width = Math.floor(stage_width/size);\n\t\tthis.height = Math.floor(stage_height/size);\n\t\t\n\t\tthis.blockSize = size;\n\t};\n}", "function init() {\r\n\t\t\t\r\n\t\t\tvar grid = document.getElementById(\"grid\");\r\n\t\t\tfor(var i=1; i<=4; i++){\r\n\t\t\t\tvar riga = document.createElement(\"div\");\r\n\t\t\t\triga.setAttribute(\"Id\", \"riga\"+i);\r\n\t\t\t\tfor(var j=0; j<4; j++){\r\n\t\t\t\t\tvar casella = document.createElement(\"input\");\r\n\t\t\t\t\tvar n = i*4+j;\r\n\t\t\t\t\tcasella.setAttribute(\"Id\", \"casella\"+n );\r\n\t\t\t\t\tcasella.setAttribute(\"readonly\", \"readonly\");\r\n\t\t\t\t\tcasella.setAttribute(\"value\", 0);\r\n\t\t\t\t\triga.appendChild(casella);\r\n\t\t\t\t}\r\n\t\t\t\tgrid.appendChild(riga);\r\n\t\t\t\t}\t\t\t\r\n\t\t}", "configCells(){\n for (var j=0; j<this.rows; j++){\n for(var i=0; i<this.columns; i++){\n var c = this.cell(i,j) ;\n c.north = this.cell(i,j+1) ;\n c.south = this.cell(i,j-1) ;\n c.east = this.cell(i+1,j) ;\n c.west = this.cell(i-1,j) ;\n }\n }\n }", "function gridSpot(i, j) {\r\n // Location\r\n this.i = i;\r\n this.j = j;\r\n\r\n // f, g, and h values for A*\r\n this.f = 0;\r\n this.g = 0;\r\n this.h = 0;\r\n\r\n // Neighbors\r\n this.neighbors = [];\r\n\r\n // Where did I come from?\r\n this.parent = undefined;\r\n this.closed = false; // are we in closed set\r\n\r\n // Figure out who my neighbors are\r\n this.addNeighbors = function () {\r\n var i = this.i;\r\n var j = this.j;\r\n\r\n\r\n if (i < gridsize - 1) this.neighbors.push(aStarGrid[i + 1][j]);\r\n if (i > 0) this.neighbors.push(aStarGrid[i - 1][j]);\r\n if (j < gridsize - 1) this.neighbors.push(aStarGrid[i][j + 1]);\r\n if (j > 0) this.neighbors.push(aStarGrid[i][j - 1]);\r\n\r\n if (diagonal)\r\n // diagonals are also neighbours:\r\n {\r\n if (i > 0 && j > 0) this.neighbors.push(aStarGrid[i - 1][j - 1]);\r\n if (i < gridsize - 1 && j > 0) this.neighbors.push(aStarGrid[i + 1][j - 1]);\r\n if (i > 0 && j < gridsize - 1) this.neighbors.push(aStarGrid[i - 1][j + 1]);\r\n if (i < gridsize - 1 && j < gridsize - 1) this.neighbors.push(aStarGrid[i + 1][j + 1]);\r\n }\r\n };\r\n}", "function Grid(w, h) {\n\tthis.width = w;\n\tthis.height = h;\n\tthis.array = new Array(w * h);\n\t\n\tthis.get = function(x, y) {\n\t\tif(x >= 0 && x < this.width && y >= 0 && y < this.height) {\n\t\t\treturn this.array[y * this.width + x];\n\t\t}\n\t\t\n\t\tthrow new Error(\"Index out of bounds: (\" + x + \",\" + y + \")\");\n\t};\n\tthis.set = function(x, y, val) {\n\t\tif(x >= 0 && x < this.width && y >= 0 && y < this.height) {\n\t\t\tthis.array[y * this.width + x] = val;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthrow new Error(\"Index out of bounds: (\" + x + \",\" + y + \")\");\n\t};\n}", "constructor(numWide, numHigh, startx, starty, endx, endy) {\r\n this.numSqWide = numWide;\r\n this.numSqHigh = numHigh;\r\n this.width = endx - startx;\r\n this.height = endy - starty;\r\n this.squarewidth = this.width / this.squares_wide;\r\n this.squareheight = this.width / this.squares_high;\r\n\r\n this.objects = []; // to hold all objects that are playing on this board\r\n //this.settings = this will hold the settings for the various games, Snake will hold speed, controls? , wa\r\n }", "function gridify_the_canvas(canvas){\n\t\n\t\n\tvar counter = 0, row = 0, column = 0 ;\n\t\t\n\tfor(y=0 ; y< canvas.height; y+= gridSpace_height){ \t\n\t\tfor(x=0 ; x < canvas.width; x+= gridSpace_width){ \n\t\t\t\n\t\t\t\n\t\t\tcenterPoint = {'x': column*gridSpace_width + gridSpace_width/2 ,\n\t\t\t\t'y': row*gridSpace_height + gridSpace_height/2 };\n\t\t\tvar topLeft = {'x': x, 'y': y}, topRight = {'x': x +gridSpace_width, 'y': y},\n\t\t\tbottomLeft = { 'x' : x, 'y': y + gridSpace_height }, \n\t\t\tbottomRight = {'x' : x+gridSpace_width, 'y': y + gridSpace_height }\t\n\t\t\t\n\t\t\tvar grid = new createjs.Grid({ 'width' : gridSpace_width,\n\t\t\t 'height' : gridSpace_height, 'row' : row, 'column': column,\n\t\t\t 'centerPoint': centerPoint, 'topLeft': topLeft ,\n\t\t\t 'topRight': topRight, 'bottomLeft': bottomLeft, 'bottomRight': bottomRight,\n\t\t\t 'order': counter, 'name' : 'grid_' + counter\t\t\t \n\t\t\t });\n\t\t\t\n\t\t\tgrids.push( grid);//I want global access to them\n\t\t\tstage.addChild(grid);\n\t\t\t\n\t\t\tcounter++;\n\t\t\tcolumn++; \t\n\t\t\t\n\t\t\t\n\t\t}\n\t\trow++; column = 0;\t\n\t}\n\t\n\t//Lets set some general grid information for snapping\n\tvar number_of_grids_in_one_row = canvas.width / gridSpace_width,\n\t number_of_grids_in_one_column = canvas.height / gridSpace_height;\n\t\t\n\tgridInformation.number_of_grids_in_one_row =number_of_grids_in_one_row;\n\tgridInformation.number_of_grids_in_one_column = number_of_grids_in_one_column;\n\tgridInformation.number_of_grids = number_of_grids_in_one_row\n\t\t* number_of_grids_in_one_column;\n\t\n\tgridInformation.row_index = function(me){\n\t\tvar row_index = [];\n\t\tfor (var i = 0; i <= me.number_of_grids_in_one_column; i++) {\n\t\t\trow_index.push(i);\n\t\t}\n\t\t \n\t\treturn row_index;\t\n\t}(gridInformation)\n\t\n\t\t\t\n\t\t\n}", "function viruateBoardBasedOnUI(board) {\n currentDomBoard = new Sudoku();\n\n currentDomBoard.board = Object.create(board.board);\n currentDomBoard.xLines = Object.create(board.xLines);\n currentDomBoard.yLines = Object.create(board.yLines);\n currentDomBoard.boxes = Object.create(board.boxes);\n\n for (var i = 0; i < 81; i++) {\n currentDomBoard.board[i].val = currentDomBoard.board[i].dom.innerHTML;\n }\n\n return currentDomBoard;\n }", "makeGrid() {\n // Create cells of a grid, store them in a grid, and give them the data that they need.\n gameState.grid = [];\n for (let x = 0; x < gameState.GRID_WIDTH; x++) {\n gameState.grid[x] = [];\n for (let y = 0; y < gameState.GRID_HEIGHT; y++) {\n let newCell = this.add.sprite((x * (gameState.CELL_DIMS + gameState.PADDING)) + gameState.INIT_X, (y * (gameState.CELL_DIMS + gameState.PADDING)) + gameState.INIT_Y, 'cell');\n newCell.number = parseInt((Math.random() * gameState.maxNumber) + gameState.minNumber); // Number between min and maxNumber\n newCell.targetNumber = this.checkTargetNumber(newCell.number); // Whether number is a target number\n newCell.absorbed = false; // Number has not been absorbed yet (since we just created it)\n newCell.printNumber = newCell.number.toString(); // Number as a string.\n gameState.grid[x][y] = newCell; // Add it to the grid.\n newCell.print = this.add.text(newCell.x-10, newCell.y-10, newCell.printNumber, {\n align: \"center\",\n font: gameState.INFO_FONT,\n fill: '#ffffff'\n }).setTint(0x000000); // We use tint since we change the color of the numbers.\n }\n }\n }", "function setGrid(xn, yn) {\n\n tGrid = [];\n\n\n for (i = 0; xn > i; i++) {\n\n yGrid = [];\n\n for (j = 0; yn > j; j++) {\n\n yGrid.push(new Land(i, j));\n\n }\n\n tGrid.push(yGrid);\n\n }\n\n return tGrid;\n}", "function createGrid() {\n grid = [];\n let cell, marginX, marginY;\n\n // Portrait\n if (((width - margin * 2) * GRID_ROWS) / GRID_COLS < height - margin * 2) {\n cell = (width - margin * 2) / GRID_COLS;\n marginX = margin;\n marginY = (height - cell * GRID_ROWS) / 2;\n }\n // Landscape\n else {\n cell = (height - margin * 2) / GRID_ROWS;\n marginX = (width - cell * GRID_COLS) / 2;\n marginY = margin;\n }\n\n // Populate the grid\n for (let i = 0; i < GRID_ROWS; i++) {\n grid[i] = [];\n\n for (let j = 0; j < GRID_COLS; j++) {\n let left = marginX + j * cell;\n let top = marginY + i * cell;\n\n grid[i][j] = new Cell(left, top, cell, cell, i, j);\n }\n }\n}", "constructor() {\n this.gridNumber = settings.canvasSize / settings.step;\n this.reset();\n }", "function populateGameGrid(grid) {\r\n\r\n for (var i = 0; i < NUM_ROWS; i += 1) {\r\n for (var j = 0; j < NUM_COLS; j += 1) {\r\n //fills all grid with initial cells\r\n grid[i][j] = new Cell();\r\n //x position match x coordinates\r\n grid[i][j].xPosition = j * CELL_SIZE;\r\n //y position match y coordinates\r\n grid[i][j].yPosition = i * CELL_SIZE;\r\n }\r\n\r\n } \r\n\r\n }", "function createGrid() {\n grid = [];\n\n //setup cell size and margins\n let cell, marginX, marginY;\n\n //portrait\n if ((width - margin * 2) * GRID_ROWS / GRID_COLS < height - margin * 2) {\n cell = (width - margin * 2) / GRID_COLS;\n marginX = margin;\n marginY = (height - cell * GRID_ROWS) / 2;\n }\n //landscape\n else {\n cell = (height - margin * 2) / GRID_ROWS;\n marginX = (width - cell * GRID_COLS) / 2;\n marginY = margin;\n }\n\n //populate the grid\n for (let i = 0; i < GRID_ROWS; i++) {\n grid[i] = [];\n for (let j = 0; j < GRID_COLS; j++) {\n let left = marginX + j * cell;\n let top = marginY + i * cell;\n grid[i][j] = new Cell(left, top, cell, cell, i, j);\n }\n }\n}", "initializeCells() {\n for (var i = 0; i < this._gridSize; i++) {\n this._cells[i] = []; // create an n x n matrix\n for (var j = 0; j < this._gridSize; j++) {\n this._cells[i].push(new Tile(i, j, 0));\n }\n }\n }", "generateGrid(grid) {\n return grid.map((item, idx) =>\n <Square\n key={idx}\n cellNum={idx}\n mark={item ? item : null}\n onClick={this.handleSquareClick}\n />\n );\n }", "function createGrid(rows, cols) {\n let r = 0;\n let c = 0;\n let child_index = 0;\n let grid_size = grid.childElementCount;\n for (r=0; r < rows; r++) {\n for (c=0; c < cols; c++) {\n if (child_index >= grid_size) {\n addCell(child_index);\n }\n child_index++;\n }\n }\n if (start == 0) {\n setStart(0);\n }\n document.documentElement.style.setProperty(\"--rowNum\", rows.toString());\n document.documentElement.style.setProperty(\"--colNum\", cols.toString());\n}", "createGrid() {\n const board = $(this.selector);\n board.empty();\n\n console.log(board);\n for (let x = 0; x < this.ROWS; x++) {\n const row = $('<div>').addClass('row');\n board.append(row);\n for (let y = 0; y < this.COLS; y++) {\n // gives each index of the rows and columns using the attr\n const col = $('<div>').addClass('col empty').attr('data-col', y).attr('data-row', x);\n row.append(col);\n }\n }\n\n }", "function Sudoku3x3Block(arrOf9Values)\n{\n\tSudokuCellBlock.call(this, arrOf9Values);\n}", "function drawGrid() {\n noFill();\n stroke(230, 50);\n strokeWeight(2);\n\n for (let j = 0; j < config.numRows; j++) {\n for (let i = 0; i < config.numCols; i++) {\n rect(i * colWidth, j * rowHeight, colWidth, rowHeight)\n }\n }\n }" ]
[ "0.7397928", "0.72089326", "0.6896276", "0.6834267", "0.6834267", "0.6824819", "0.6777383", "0.6760057", "0.67417264", "0.6734718", "0.66933763", "0.66845614", "0.666444", "0.66487044", "0.66487044", "0.66487044", "0.6598362", "0.65879214", "0.6566051", "0.65462947", "0.6544536", "0.65395623", "0.6539291", "0.65198535", "0.6501574", "0.64983046", "0.6489399", "0.6467302", "0.6459721", "0.6448392", "0.64324194", "0.6431698", "0.64294785", "0.6390772", "0.6372537", "0.6362522", "0.6355416", "0.6344453", "0.63428473", "0.6339329", "0.6339329", "0.6339329", "0.6339329", "0.6338261", "0.6334517", "0.6323693", "0.63185513", "0.6316642", "0.6315104", "0.6302921", "0.62969446", "0.6287593", "0.627312", "0.62669176", "0.624837", "0.6244511", "0.62399435", "0.6227587", "0.6225837", "0.6221827", "0.62192845", "0.62110615", "0.6195524", "0.6189879", "0.6181638", "0.61815464", "0.6175877", "0.61748064", "0.61519325", "0.6146992", "0.61463493", "0.61426014", "0.6141027", "0.61341244", "0.6126345", "0.6122399", "0.61123425", "0.6098457", "0.60927033", "0.60893726", "0.6089088", "0.60719115", "0.60680383", "0.6061183", "0.60603017", "0.6059861", "0.60565585", "0.6054865", "0.6054443", "0.6048051", "0.6041492", "0.6039388", "0.60389435", "0.60345805", "0.60273415", "0.60242957", "0.6024054", "0.60195506", "0.60148853", "0.6011579" ]
0.70695287
2
Determines what icon library to use based on global and local props
configureIconLib() { if (this.preserveDefaults) { this.iconLibrary = this.$thisvui.iconLib; } else { let parent = this.$parent; let pIconLib = parent && parent.$props ? parent.$props.iconLib : null; this.iconLibrary = this.iconLib ? this.iconLib : parent && pIconLib ? pIconLib : this.$thisvui.iconLib; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getIcon(val, context) {\n let ary = val.replaceAll(\"/\", \"-\").split(\":\");\n // legacy API used to fill in icons: for lazy devs so let's mirror\n if (ary.length === 1) {\n ary = [\"icons\", val];\n }\n if (ary.length == 2 && this.iconsets[ary[0]]) {\n if (\n typeof this.iconsets[ary[0]] !== \"string\" &&\n this.iconsets[ary[0]][ary[1]] &&\n typeof this.iconsets[ary[0]][ary[1]] !== \"function\"\n ) {\n return this.iconsets[ary[0]][ary[1]];\n } else if (ary[1]) {\n return `${this.iconsets[ary[0]]}${ary[1]}.svg`;\n }\n }\n // if we get here we just missed on the icon hydrating which means\n // either it's an invalid icon OR the library to register the icons\n // location will import AFTER (possible microtiming early on)\n // also weird looking by context is either the element asking about\n // itself OR the the iconset state manager checking for hydration\n if (context !== this && context) {\n this.needsHydrated.push(context);\n }\n return null;\n }", "function icon(strategy) {\n if (strategy === \"google-apps\") return strategy;\n if (~[\"adfs\", \"office365\", \"waad\"].indexOf(strategy)) return \"windows\";\n return \"auth0\";\n}", "function icon(platform){\n\n if(platform==\"CODECHEF\") return \"img/cc32.jpg\";\n else if (platform==\"HACKEREARTH\") return \"img/he32.png\";\n else if (platform==\"CODEFORCES\") return \"img/cf32.png\"; \n else if(platform==\"TOPCODER\") return \"img/tc32.gif\";\n else if(platform==\"HACKERRANK\") return \"img/hr36.png\";\n else if(platform==\"GOOGLE\") return \"img/google32.png\";\n else return \"img/other32.png\";\n}", "function icon(strategy) {\n if (strategy === 'google-apps') return strategy;\n if (~['adfs', 'office365', 'waad'].indexOf(strategy)) return 'windows';\n return 'auth0';\n}", "function getIconForDevice(system) {\n if (system == \"WIN\") {\n return \"fa-windows\";\n } else if (system == \"LINUX\") {\n return \"fa-linux\";\n } else {\n return \"fa-question-circle\";\n }\n}", "function icon(strategy) {\n if (_index3.STRATEGIES[strategy]) return strategy;\n if (strategy === \"google-apps\") return strategy;\n if (~[\"adfs\", \"office365\", \"waad\"].indexOf(strategy)) return \"windows\";\n return \"auth0\";\n}", "function icon(strategy) {\n if (_index3.STRATEGIES[strategy]) return strategy;\n if (strategy === 'google-apps') return strategy;\n if (~['adfs', 'office365', 'waad'].indexOf(strategy)) return 'windows';\n return 'auth0';\n}", "function icon(strategy) {\n\t if (strategy === \"google-apps\") return strategy;\n\t if (~[\"adfs\", \"office365\", \"waad\"].indexOf(strategy)) return \"windows\";\n\t return \"auth0\";\n\t}", "function icon(strategy) {\n\t if (strategy === \"google-apps\") return strategy;\n\t if (~[\"adfs\", \"office365\", \"waad\"].indexOf(strategy)) return \"windows\";\n\t return \"auth0\";\n\t}", "function icon(strategy) {\n\t if (strategy === \"google-apps\") return strategy;\n\t if (~[\"adfs\", \"office365\", \"waad\"].indexOf(strategy)) return \"windows\";\n\t return \"auth0\";\n\t}", "function icon(strategy) {\n\t if (_index3.STRATEGIES[strategy]) return strategy;\n\t if (strategy === \"google-apps\") return strategy;\n\t if (~[\"adfs\", \"office365\", \"waad\"].indexOf(strategy)) return \"windows\";\n\t return \"auth0\";\n\t}", "function icon(strategy) {\n\t if (_index3.STRATEGIES[strategy]) return strategy;\n\t if (strategy === \"google-apps\") return strategy;\n\t if (~[\"adfs\", \"office365\", \"waad\"].indexOf(strategy)) return \"windows\";\n\t return \"auth0\";\n\t}", "function icon(strategy) {\n\t if (_index3.STRATEGIES[strategy]) return strategy;\n\t if (strategy === \"google-apps\") return strategy;\n\t if (~[\"adfs\", \"office365\", \"waad\"].indexOf(strategy)) return \"windows\";\n\t return \"auth0\";\n\t}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-0\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-0-467ee27f.woff') format('woff')\"\n },\n icons: {\n 'PageLink': '\\uE302',\n 'CommentSolid': '\\uE30E',\n 'ChangeEntitlements': '\\uE310',\n 'Installation': '\\uE311',\n 'WebAppBuilderModule': '\\uE313',\n 'WebAppBuilderFragment': '\\uE314',\n 'WebAppBuilderSlot': '\\uE315',\n 'BullseyeTargetEdit': '\\uE319',\n 'WebAppBuilderFragmentCreate': '\\uE31B',\n 'PageData': '\\uE31C',\n 'PageHeaderEdit': '\\uE31D',\n 'ProductList': '\\uE31E',\n 'UnpublishContent': '\\uE31F',\n 'DependencyAdd': '\\uE344',\n 'DependencyRemove': '\\uE345',\n 'EntitlementPolicy': '\\uE346',\n 'EntitlementRedemption': '\\uE347',\n 'SchoolDataSyncLogo': '\\uE34C',\n 'PinSolid12': '\\uE352',\n 'PinSolidOff12': '\\uE353',\n 'AddLink': '\\uE35E',\n 'SharepointAppIcon16': '\\uE365',\n 'DataflowsLink': '\\uE366',\n 'TimePicker': '\\uE367',\n 'UserWarning': '\\uE368',\n 'ComplianceAudit': '\\uE369',\n 'InternetSharing': '\\uE704',\n 'Brightness': '\\uE706',\n 'MapPin': '\\uE707',\n 'Airplane': '\\uE709',\n 'Tablet': '\\uE70A',\n 'QuickNote': '\\uE70B',\n 'Video': '\\uE714',\n 'People': '\\uE716',\n 'Phone': '\\uE717',\n 'Pin': '\\uE718',\n 'Shop': '\\uE719',\n 'Stop': '\\uE71A',\n 'Link': '\\uE71B',\n 'AllApps': '\\uE71D',\n 'Zoom': '\\uE71E',\n 'ZoomOut': '\\uE71F',\n 'Microphone': '\\uE720',\n 'Camera': '\\uE722',\n 'Attach': '\\uE723',\n 'Send': '\\uE724',\n 'FavoriteList': '\\uE728',\n 'PageSolid': '\\uE729',\n 'Forward': '\\uE72A',\n 'Back': '\\uE72B',\n 'Refresh': '\\uE72C',\n 'Lock': '\\uE72E',\n 'ReportHacked': '\\uE730',\n 'EMI': '\\uE731',\n 'MiniLink': '\\uE732',\n 'Blocked': '\\uE733',\n 'ReadingMode': '\\uE736',\n 'Favicon': '\\uE737',\n 'Remove': '\\uE738',\n 'Checkbox': '\\uE739',\n 'CheckboxComposite': '\\uE73A',\n 'CheckboxFill': '\\uE73B',\n 'CheckboxIndeterminate': '\\uE73C',\n 'CheckboxCompositeReversed': '\\uE73D',\n 'BackToWindow': '\\uE73F',\n 'FullScreen': '\\uE740',\n 'Print': '\\uE749',\n 'Up': '\\uE74A',\n 'Down': '\\uE74B',\n 'OEM': '\\uE74C',\n 'Save': '\\uE74E',\n 'ReturnKey': '\\uE751',\n 'Cloud': '\\uE753',\n 'Flashlight': '\\uE754',\n 'CommandPrompt': '\\uE756',\n 'Sad': '\\uE757',\n 'RealEstate': '\\uE758',\n 'SIPMove': '\\uE759',\n 'EraseTool': '\\uE75C',\n 'GripperTool': '\\uE75E',\n 'Dialpad': '\\uE75F',\n 'PageLeft': '\\uE760',\n 'PageRight': '\\uE761',\n 'MultiSelect': '\\uE762',\n 'KeyboardClassic': '\\uE765',\n 'Play': '\\uE768',\n 'Pause': '\\uE769',\n 'InkingTool': '\\uE76D',\n 'Emoji2': '\\uE76E',\n 'GripperBarHorizontal': '\\uE76F',\n 'System': '\\uE770',\n 'Personalize': '\\uE771',\n 'SearchAndApps': '\\uE773',\n 'Globe': '\\uE774',\n 'EaseOfAccess': '\\uE776',\n 'ContactInfo': '\\uE779',\n 'Unpin': '\\uE77A',\n 'Contact': '\\uE77B',\n 'Memo': '\\uE77C',\n 'IncomingCall': '\\uE77E'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-0\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-0-467ee27f.woff') format('woff')\"\n },\n icons: {\n 'PageLink': '\\uE302',\n 'CommentSolid': '\\uE30E',\n 'ChangeEntitlements': '\\uE310',\n 'Installation': '\\uE311',\n 'WebAppBuilderModule': '\\uE313',\n 'WebAppBuilderFragment': '\\uE314',\n 'WebAppBuilderSlot': '\\uE315',\n 'BullseyeTargetEdit': '\\uE319',\n 'WebAppBuilderFragmentCreate': '\\uE31B',\n 'PageData': '\\uE31C',\n 'PageHeaderEdit': '\\uE31D',\n 'ProductList': '\\uE31E',\n 'UnpublishContent': '\\uE31F',\n 'DependencyAdd': '\\uE344',\n 'DependencyRemove': '\\uE345',\n 'EntitlementPolicy': '\\uE346',\n 'EntitlementRedemption': '\\uE347',\n 'SchoolDataSyncLogo': '\\uE34C',\n 'PinSolid12': '\\uE352',\n 'PinSolidOff12': '\\uE353',\n 'AddLink': '\\uE35E',\n 'SharepointAppIcon16': '\\uE365',\n 'DataflowsLink': '\\uE366',\n 'TimePicker': '\\uE367',\n 'UserWarning': '\\uE368',\n 'ComplianceAudit': '\\uE369',\n 'InternetSharing': '\\uE704',\n 'Brightness': '\\uE706',\n 'MapPin': '\\uE707',\n 'Airplane': '\\uE709',\n 'Tablet': '\\uE70A',\n 'QuickNote': '\\uE70B',\n 'Video': '\\uE714',\n 'People': '\\uE716',\n 'Phone': '\\uE717',\n 'Pin': '\\uE718',\n 'Shop': '\\uE719',\n 'Stop': '\\uE71A',\n 'Link': '\\uE71B',\n 'AllApps': '\\uE71D',\n 'Zoom': '\\uE71E',\n 'ZoomOut': '\\uE71F',\n 'Microphone': '\\uE720',\n 'Camera': '\\uE722',\n 'Attach': '\\uE723',\n 'Send': '\\uE724',\n 'FavoriteList': '\\uE728',\n 'PageSolid': '\\uE729',\n 'Forward': '\\uE72A',\n 'Back': '\\uE72B',\n 'Refresh': '\\uE72C',\n 'Lock': '\\uE72E',\n 'ReportHacked': '\\uE730',\n 'EMI': '\\uE731',\n 'MiniLink': '\\uE732',\n 'Blocked': '\\uE733',\n 'ReadingMode': '\\uE736',\n 'Favicon': '\\uE737',\n 'Remove': '\\uE738',\n 'Checkbox': '\\uE739',\n 'CheckboxComposite': '\\uE73A',\n 'CheckboxFill': '\\uE73B',\n 'CheckboxIndeterminate': '\\uE73C',\n 'CheckboxCompositeReversed': '\\uE73D',\n 'BackToWindow': '\\uE73F',\n 'FullScreen': '\\uE740',\n 'Print': '\\uE749',\n 'Up': '\\uE74A',\n 'Down': '\\uE74B',\n 'OEM': '\\uE74C',\n 'Save': '\\uE74E',\n 'ReturnKey': '\\uE751',\n 'Cloud': '\\uE753',\n 'Flashlight': '\\uE754',\n 'CommandPrompt': '\\uE756',\n 'Sad': '\\uE757',\n 'RealEstate': '\\uE758',\n 'SIPMove': '\\uE759',\n 'EraseTool': '\\uE75C',\n 'GripperTool': '\\uE75E',\n 'Dialpad': '\\uE75F',\n 'PageLeft': '\\uE760',\n 'PageRight': '\\uE761',\n 'MultiSelect': '\\uE762',\n 'KeyboardClassic': '\\uE765',\n 'Play': '\\uE768',\n 'Pause': '\\uE769',\n 'InkingTool': '\\uE76D',\n 'Emoji2': '\\uE76E',\n 'GripperBarHorizontal': '\\uE76F',\n 'System': '\\uE770',\n 'Personalize': '\\uE771',\n 'SearchAndApps': '\\uE773',\n 'Globe': '\\uE774',\n 'EaseOfAccess': '\\uE776',\n 'ContactInfo': '\\uE779',\n 'Unpin': '\\uE77A',\n 'Contact': '\\uE77B',\n 'Memo': '\\uE77C',\n 'IncomingCall': '\\uE77E'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-6\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-6-ef6fd590.woff') format('woff')\"\n },\n icons: {\n 'SwayLogoInverse': '\\uED29',\n 'OutOfOffice': '\\uED34',\n 'Trophy': '\\uED3F',\n 'ReopenPages': '\\uED50',\n 'EmojiTabSymbols': '\\uED58',\n 'AADLogo': '\\uED68',\n 'AccessLogo': '\\uED69',\n 'AdminALogoInverse32': '\\uED6A',\n 'AdminCLogoInverse32': '\\uED6B',\n 'AdminDLogoInverse32': '\\uED6C',\n 'AdminELogoInverse32': '\\uED6D',\n 'AdminLLogoInverse32': '\\uED6E',\n 'AdminMLogoInverse32': '\\uED6F',\n 'AdminOLogoInverse32': '\\uED70',\n 'AdminPLogoInverse32': '\\uED71',\n 'AdminSLogoInverse32': '\\uED72',\n 'AdminYLogoInverse32': '\\uED73',\n 'DelveLogoInverse': '\\uED76',\n 'ExchangeLogoInverse': '\\uED78',\n 'LyncLogo': '\\uED79',\n 'OfficeVideoLogoInverse': '\\uED7A',\n 'SocialListeningLogo': '\\uED7C',\n 'VisioLogoInverse': '\\uED7D',\n 'Balloons': '\\uED7E',\n 'Cat': '\\uED7F',\n 'MailAlert': '\\uED80',\n 'MailCheck': '\\uED81',\n 'MailLowImportance': '\\uED82',\n 'MailPause': '\\uED83',\n 'MailRepeat': '\\uED84',\n 'SecurityGroup': '\\uED85',\n 'Table': '\\uED86',\n 'VoicemailForward': '\\uED87',\n 'VoicemailReply': '\\uED88',\n 'Waffle': '\\uED89',\n 'RemoveEvent': '\\uED8A',\n 'EventInfo': '\\uED8B',\n 'ForwardEvent': '\\uED8C',\n 'WipePhone': '\\uED8D',\n 'AddOnlineMeeting': '\\uED8E',\n 'JoinOnlineMeeting': '\\uED8F',\n 'RemoveLink': '\\uED90',\n 'PeopleBlock': '\\uED91',\n 'PeopleRepeat': '\\uED92',\n 'PeopleAlert': '\\uED93',\n 'PeoplePause': '\\uED94',\n 'TransferCall': '\\uED95',\n 'AddPhone': '\\uED96',\n 'UnknownCall': '\\uED97',\n 'NoteReply': '\\uED98',\n 'NoteForward': '\\uED99',\n 'NotePinned': '\\uED9A',\n 'RemoveOccurrence': '\\uED9B',\n 'Timeline': '\\uED9C',\n 'EditNote': '\\uED9D',\n 'CircleHalfFull': '\\uED9E',\n 'Room': '\\uED9F',\n 'Unsubscribe': '\\uEDA0',\n 'Subscribe': '\\uEDA1',\n 'HardDrive': '\\uEDA2',\n 'RecurringTask': '\\uEDB2',\n 'TaskManager': '\\uEDB7',\n 'TaskManagerMirrored': '\\uEDB8',\n 'Combine': '\\uEDBB',\n 'Split': '\\uEDBC',\n 'DoubleChevronUp': '\\uEDBD',\n 'DoubleChevronLeft': '\\uEDBE',\n 'DoubleChevronRight': '\\uEDBF',\n 'TextBox': '\\uEDC2',\n 'TextField': '\\uEDC3',\n 'NumberField': '\\uEDC4',\n 'Dropdown': '\\uEDC5',\n 'PenWorkspace': '\\uEDC6',\n 'BookingsLogo': '\\uEDC7',\n 'ClassNotebookLogoInverse': '\\uEDC8',\n 'DelveAnalyticsLogo': '\\uEDCA',\n 'DocsLogoInverse': '\\uEDCB',\n 'Dynamics365Logo': '\\uEDCC',\n 'DynamicSMBLogo': '\\uEDCD',\n 'OfficeAssistantLogo': '\\uEDCE',\n 'OfficeStoreLogo': '\\uEDCF',\n 'OneNoteEduLogoInverse': '\\uEDD0',\n 'PlannerLogo': '\\uEDD1',\n 'PowerApps': '\\uEDD2',\n 'Suitcase': '\\uEDD3',\n 'ProjectLogoInverse': '\\uEDD4',\n 'CaretLeft8': '\\uEDD5',\n 'CaretRight8': '\\uEDD6',\n 'CaretUp8': '\\uEDD7',\n 'CaretDown8': '\\uEDD8',\n 'CaretLeftSolid8': '\\uEDD9',\n 'CaretRightSolid8': '\\uEDDA',\n 'CaretUpSolid8': '\\uEDDB',\n 'CaretDownSolid8': '\\uEDDC',\n 'ClearFormatting': '\\uEDDD',\n 'Superscript': '\\uEDDE',\n 'Subscript': '\\uEDDF',\n 'Strikethrough': '\\uEDE0',\n 'Export': '\\uEDE1',\n 'ExportMirrored': '\\uEDE2'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-6\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-6-ef6fd590.woff') format('woff')\"\n },\n icons: {\n 'SwayLogoInverse': '\\uED29',\n 'OutOfOffice': '\\uED34',\n 'Trophy': '\\uED3F',\n 'ReopenPages': '\\uED50',\n 'EmojiTabSymbols': '\\uED58',\n 'AADLogo': '\\uED68',\n 'AccessLogo': '\\uED69',\n 'AdminALogoInverse32': '\\uED6A',\n 'AdminCLogoInverse32': '\\uED6B',\n 'AdminDLogoInverse32': '\\uED6C',\n 'AdminELogoInverse32': '\\uED6D',\n 'AdminLLogoInverse32': '\\uED6E',\n 'AdminMLogoInverse32': '\\uED6F',\n 'AdminOLogoInverse32': '\\uED70',\n 'AdminPLogoInverse32': '\\uED71',\n 'AdminSLogoInverse32': '\\uED72',\n 'AdminYLogoInverse32': '\\uED73',\n 'DelveLogoInverse': '\\uED76',\n 'ExchangeLogoInverse': '\\uED78',\n 'LyncLogo': '\\uED79',\n 'OfficeVideoLogoInverse': '\\uED7A',\n 'SocialListeningLogo': '\\uED7C',\n 'VisioLogoInverse': '\\uED7D',\n 'Balloons': '\\uED7E',\n 'Cat': '\\uED7F',\n 'MailAlert': '\\uED80',\n 'MailCheck': '\\uED81',\n 'MailLowImportance': '\\uED82',\n 'MailPause': '\\uED83',\n 'MailRepeat': '\\uED84',\n 'SecurityGroup': '\\uED85',\n 'Table': '\\uED86',\n 'VoicemailForward': '\\uED87',\n 'VoicemailReply': '\\uED88',\n 'Waffle': '\\uED89',\n 'RemoveEvent': '\\uED8A',\n 'EventInfo': '\\uED8B',\n 'ForwardEvent': '\\uED8C',\n 'WipePhone': '\\uED8D',\n 'AddOnlineMeeting': '\\uED8E',\n 'JoinOnlineMeeting': '\\uED8F',\n 'RemoveLink': '\\uED90',\n 'PeopleBlock': '\\uED91',\n 'PeopleRepeat': '\\uED92',\n 'PeopleAlert': '\\uED93',\n 'PeoplePause': '\\uED94',\n 'TransferCall': '\\uED95',\n 'AddPhone': '\\uED96',\n 'UnknownCall': '\\uED97',\n 'NoteReply': '\\uED98',\n 'NoteForward': '\\uED99',\n 'NotePinned': '\\uED9A',\n 'RemoveOccurrence': '\\uED9B',\n 'Timeline': '\\uED9C',\n 'EditNote': '\\uED9D',\n 'CircleHalfFull': '\\uED9E',\n 'Room': '\\uED9F',\n 'Unsubscribe': '\\uEDA0',\n 'Subscribe': '\\uEDA1',\n 'HardDrive': '\\uEDA2',\n 'RecurringTask': '\\uEDB2',\n 'TaskManager': '\\uEDB7',\n 'TaskManagerMirrored': '\\uEDB8',\n 'Combine': '\\uEDBB',\n 'Split': '\\uEDBC',\n 'DoubleChevronUp': '\\uEDBD',\n 'DoubleChevronLeft': '\\uEDBE',\n 'DoubleChevronRight': '\\uEDBF',\n 'TextBox': '\\uEDC2',\n 'TextField': '\\uEDC3',\n 'NumberField': '\\uEDC4',\n 'Dropdown': '\\uEDC5',\n 'PenWorkspace': '\\uEDC6',\n 'BookingsLogo': '\\uEDC7',\n 'ClassNotebookLogoInverse': '\\uEDC8',\n 'DelveAnalyticsLogo': '\\uEDCA',\n 'DocsLogoInverse': '\\uEDCB',\n 'Dynamics365Logo': '\\uEDCC',\n 'DynamicSMBLogo': '\\uEDCD',\n 'OfficeAssistantLogo': '\\uEDCE',\n 'OfficeStoreLogo': '\\uEDCF',\n 'OneNoteEduLogoInverse': '\\uEDD0',\n 'PlannerLogo': '\\uEDD1',\n 'PowerApps': '\\uEDD2',\n 'Suitcase': '\\uEDD3',\n 'ProjectLogoInverse': '\\uEDD4',\n 'CaretLeft8': '\\uEDD5',\n 'CaretRight8': '\\uEDD6',\n 'CaretUp8': '\\uEDD7',\n 'CaretDown8': '\\uEDD8',\n 'CaretLeftSolid8': '\\uEDD9',\n 'CaretRightSolid8': '\\uEDDA',\n 'CaretUpSolid8': '\\uEDDB',\n 'CaretDownSolid8': '\\uEDDC',\n 'ClearFormatting': '\\uEDDD',\n 'Superscript': '\\uEDDE',\n 'Subscript': '\\uEDDF',\n 'Strikethrough': '\\uEDE0',\n 'Export': '\\uEDE1',\n 'ExportMirrored': '\\uEDE2'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-5\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-5-f95ba260.woff') format('woff')\"\n },\n icons: {\n 'Certificate': '\\uEB95',\n 'FastForward': '\\uEB9D',\n 'Rewind': '\\uEB9E',\n 'Photo2': '\\uEB9F',\n 'OpenSource': '\\uEBC2',\n 'Movers': '\\uEBCD',\n 'CloudDownload': '\\uEBD3',\n 'Family': '\\uEBDA',\n 'WindDirection': '\\uEBE6',\n 'Bug': '\\uEBE8',\n 'SiteScan': '\\uEBEC',\n 'BrowserScreenShot': '\\uEBED',\n 'F12DevTools': '\\uEBEE',\n 'CSS': '\\uEBEF',\n 'JS': '\\uEBF0',\n 'DeliveryTruck': '\\uEBF4',\n 'ReminderPerson': '\\uEBF7',\n 'ReminderGroup': '\\uEBF8',\n 'ReminderTime': '\\uEBF9',\n 'TabletMode': '\\uEBFC',\n 'Umbrella': '\\uEC04',\n 'NetworkTower': '\\uEC05',\n 'CityNext': '\\uEC06',\n 'CityNext2': '\\uEC07',\n 'Section': '\\uEC0C',\n 'OneNoteLogoInverse': '\\uEC0D',\n 'ToggleFilled': '\\uEC11',\n 'ToggleBorder': '\\uEC12',\n 'SliderThumb': '\\uEC13',\n 'ToggleThumb': '\\uEC14',\n 'Documentation': '\\uEC17',\n 'Badge': '\\uEC1B',\n 'Giftbox': '\\uEC1F',\n 'VisualStudioLogo': '\\uEC22',\n 'HomeGroup': '\\uEC26',\n 'ExcelLogoInverse': '\\uEC28',\n 'WordLogoInverse': '\\uEC29',\n 'PowerPointLogoInverse': '\\uEC2A',\n 'Cafe': '\\uEC32',\n 'SpeedHigh': '\\uEC4A',\n 'Commitments': '\\uEC4D',\n 'ThisPC': '\\uEC4E',\n 'MusicNote': '\\uEC4F',\n 'MicOff': '\\uEC54',\n 'PlaybackRate1x': '\\uEC57',\n 'EdgeLogo': '\\uEC60',\n 'CompletedSolid': '\\uEC61',\n 'AlbumRemove': '\\uEC62',\n 'MessageFill': '\\uEC70',\n 'TabletSelected': '\\uEC74',\n 'MobileSelected': '\\uEC75',\n 'LaptopSelected': '\\uEC76',\n 'TVMonitorSelected': '\\uEC77',\n 'DeveloperTools': '\\uEC7A',\n 'Shapes': '\\uEC7C',\n 'InsertTextBox': '\\uEC7D',\n 'LowerBrightness': '\\uEC8A',\n 'WebComponents': '\\uEC8B',\n 'OfflineStorage': '\\uEC8C',\n 'DOM': '\\uEC8D',\n 'CloudUpload': '\\uEC8E',\n 'ScrollUpDown': '\\uEC8F',\n 'DateTime': '\\uEC92',\n 'Event': '\\uECA3',\n 'Cake': '\\uECA4',\n 'Org': '\\uECA6',\n 'PartyLeader': '\\uECA7',\n 'DRM': '\\uECA8',\n 'CloudAdd': '\\uECA9',\n 'AppIconDefault': '\\uECAA',\n 'Photo2Add': '\\uECAB',\n 'Photo2Remove': '\\uECAC',\n 'Calories': '\\uECAD',\n 'POI': '\\uECAF',\n 'AddTo': '\\uECC8',\n 'RadioBtnOff': '\\uECCA',\n 'RadioBtnOn': '\\uECCB',\n 'ExploreContent': '\\uECCD',\n 'Product': '\\uECDC',\n 'ProgressLoopInner': '\\uECDE',\n 'ProgressLoopOuter': '\\uECDF',\n 'Blocked2': '\\uECE4',\n 'FangBody': '\\uECEB',\n 'Toolbox': '\\uECED',\n 'PageHeader': '\\uECEE',\n 'ChatInviteFriend': '\\uECFE',\n 'Brush': '\\uECFF',\n 'Shirt': '\\uED00',\n 'Crown': '\\uED01',\n 'Diamond': '\\uED02',\n 'ScaleUp': '\\uED09',\n 'QRCode': '\\uED14',\n 'Feedback': '\\uED15',\n 'SharepointLogoInverse': '\\uED18',\n 'YammerLogo': '\\uED19',\n 'Hide': '\\uED1A',\n 'Uneditable': '\\uED1D',\n 'ReturnToSession': '\\uED24',\n 'OpenFolderHorizontal': '\\uED25',\n 'CalendarMirrored': '\\uED28'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-5\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-5-f95ba260.woff') format('woff')\"\n },\n icons: {\n 'Certificate': '\\uEB95',\n 'FastForward': '\\uEB9D',\n 'Rewind': '\\uEB9E',\n 'Photo2': '\\uEB9F',\n 'OpenSource': '\\uEBC2',\n 'Movers': '\\uEBCD',\n 'CloudDownload': '\\uEBD3',\n 'Family': '\\uEBDA',\n 'WindDirection': '\\uEBE6',\n 'Bug': '\\uEBE8',\n 'SiteScan': '\\uEBEC',\n 'BrowserScreenShot': '\\uEBED',\n 'F12DevTools': '\\uEBEE',\n 'CSS': '\\uEBEF',\n 'JS': '\\uEBF0',\n 'DeliveryTruck': '\\uEBF4',\n 'ReminderPerson': '\\uEBF7',\n 'ReminderGroup': '\\uEBF8',\n 'ReminderTime': '\\uEBF9',\n 'TabletMode': '\\uEBFC',\n 'Umbrella': '\\uEC04',\n 'NetworkTower': '\\uEC05',\n 'CityNext': '\\uEC06',\n 'CityNext2': '\\uEC07',\n 'Section': '\\uEC0C',\n 'OneNoteLogoInverse': '\\uEC0D',\n 'ToggleFilled': '\\uEC11',\n 'ToggleBorder': '\\uEC12',\n 'SliderThumb': '\\uEC13',\n 'ToggleThumb': '\\uEC14',\n 'Documentation': '\\uEC17',\n 'Badge': '\\uEC1B',\n 'Giftbox': '\\uEC1F',\n 'VisualStudioLogo': '\\uEC22',\n 'HomeGroup': '\\uEC26',\n 'ExcelLogoInverse': '\\uEC28',\n 'WordLogoInverse': '\\uEC29',\n 'PowerPointLogoInverse': '\\uEC2A',\n 'Cafe': '\\uEC32',\n 'SpeedHigh': '\\uEC4A',\n 'Commitments': '\\uEC4D',\n 'ThisPC': '\\uEC4E',\n 'MusicNote': '\\uEC4F',\n 'MicOff': '\\uEC54',\n 'PlaybackRate1x': '\\uEC57',\n 'EdgeLogo': '\\uEC60',\n 'CompletedSolid': '\\uEC61',\n 'AlbumRemove': '\\uEC62',\n 'MessageFill': '\\uEC70',\n 'TabletSelected': '\\uEC74',\n 'MobileSelected': '\\uEC75',\n 'LaptopSelected': '\\uEC76',\n 'TVMonitorSelected': '\\uEC77',\n 'DeveloperTools': '\\uEC7A',\n 'Shapes': '\\uEC7C',\n 'InsertTextBox': '\\uEC7D',\n 'LowerBrightness': '\\uEC8A',\n 'WebComponents': '\\uEC8B',\n 'OfflineStorage': '\\uEC8C',\n 'DOM': '\\uEC8D',\n 'CloudUpload': '\\uEC8E',\n 'ScrollUpDown': '\\uEC8F',\n 'DateTime': '\\uEC92',\n 'Event': '\\uECA3',\n 'Cake': '\\uECA4',\n 'Org': '\\uECA6',\n 'PartyLeader': '\\uECA7',\n 'DRM': '\\uECA8',\n 'CloudAdd': '\\uECA9',\n 'AppIconDefault': '\\uECAA',\n 'Photo2Add': '\\uECAB',\n 'Photo2Remove': '\\uECAC',\n 'Calories': '\\uECAD',\n 'POI': '\\uECAF',\n 'AddTo': '\\uECC8',\n 'RadioBtnOff': '\\uECCA',\n 'RadioBtnOn': '\\uECCB',\n 'ExploreContent': '\\uECCD',\n 'Product': '\\uECDC',\n 'ProgressLoopInner': '\\uECDE',\n 'ProgressLoopOuter': '\\uECDF',\n 'Blocked2': '\\uECE4',\n 'FangBody': '\\uECEB',\n 'Toolbox': '\\uECED',\n 'PageHeader': '\\uECEE',\n 'ChatInviteFriend': '\\uECFE',\n 'Brush': '\\uECFF',\n 'Shirt': '\\uED00',\n 'Crown': '\\uED01',\n 'Diamond': '\\uED02',\n 'ScaleUp': '\\uED09',\n 'QRCode': '\\uED14',\n 'Feedback': '\\uED15',\n 'SharepointLogoInverse': '\\uED18',\n 'YammerLogo': '\\uED19',\n 'Hide': '\\uED1A',\n 'Uneditable': '\\uED1D',\n 'ReturnToSession': '\\uED24',\n 'OpenFolderHorizontal': '\\uED25',\n 'CalendarMirrored': '\\uED28'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "icons () {\n return require('@packages/icons')\n }", "function getIcon(name) {\n var icon = undefined;\n var options = _iconSettings.__options;\n name = name ? name.toLowerCase() : '';\n name = _iconSettings.__remapped[name] || name;\n if (name) {\n icon = _iconSettings[name];\n if (icon) {\n var subset = icon.subset;\n if (subset && subset.fontFace) {\n if (!subset.isRegistered) {\n Object(__WEBPACK_IMPORTED_MODULE_2__uifabric_merge_styles__[\"d\" /* fontFace */])(subset.fontFace);\n subset.isRegistered = true;\n }\n if (!subset.className) {\n subset.className = Object(__WEBPACK_IMPORTED_MODULE_2__uifabric_merge_styles__[\"g\" /* mergeStyles */])(subset.style, {\n fontFamily: subset.fontFace.fontFamily,\n fontWeight: subset.fontFace.fontWeight || 'normal',\n fontStyle: subset.fontFace.fontStyle || 'normal'\n });\n }\n }\n }\n else {\n if (!options.disableWarnings && options.warnOnMissingIcons) {\n Object(__WEBPACK_IMPORTED_MODULE_1__uifabric_utilities__[\"_54\" /* warn */])(\"The icon \\\"\" + name + \"\\\" was used but not registered. See http://aka.ms/fabric-icon-usage for more information.\");\n }\n }\n }\n return icon;\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-16\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-16-9cf93f3b.woff') format('woff')\"\n },\n icons: {\n 'OfficeChatSolid': '\\uF710',\n 'MailSchedule': '\\uF72E',\n 'WarningSolid': '\\uF736',\n 'Blocked2Solid': '\\uF737',\n 'SkypeCircleArrow': '\\uF747',\n 'SkypeArrow': '\\uF748',\n 'SyncStatus': '\\uF751',\n 'SyncStatusSolid': '\\uF752',\n 'ProjectDocument': '\\uF759',\n 'ToDoLogoOutline': '\\uF75B',\n 'VisioOnlineLogoFill32': '\\uF75F',\n 'VisioOnlineLogo32': '\\uF760',\n 'VisioOnlineLogoCloud32': '\\uF761',\n 'VisioDiagramSync': '\\uF762',\n 'Event12': '\\uF763',\n 'EventDateMissed12': '\\uF764',\n 'UserOptional': '\\uF767',\n 'ResponsesMenu': '\\uF768',\n 'DoubleDownArrow': '\\uF769',\n 'DistributeDown': '\\uF76A',\n 'BookmarkReport': '\\uF76B',\n 'FilterSettings': '\\uF76C',\n 'GripperDotsVertical': '\\uF772',\n 'MailAttached': '\\uF774',\n 'AddIn': '\\uF775',\n 'LinkedDatabase': '\\uF779',\n 'TableLink': '\\uF77A',\n 'PromotedDatabase': '\\uF77D',\n 'BarChartVerticalFilter': '\\uF77E',\n 'BarChartVerticalFilterSolid': '\\uF77F',\n 'MicOff2': '\\uF781',\n 'MicrosoftTranslatorLogo': '\\uF782',\n 'ShowTimeAs': '\\uF787',\n 'FileRequest': '\\uF789',\n 'WorkItemAlert': '\\uF78F',\n 'PowerBILogo16': '\\uF790',\n 'PowerBILogoBackplate16': '\\uF791',\n 'BulletedListText': '\\uF792',\n 'BulletedListBullet': '\\uF793',\n 'BulletedListTextMirrored': '\\uF794',\n 'BulletedListBulletMirrored': '\\uF795',\n 'NumberedListText': '\\uF796',\n 'NumberedListNumber': '\\uF797',\n 'NumberedListTextMirrored': '\\uF798',\n 'NumberedListNumberMirrored': '\\uF799',\n 'RemoveLinkChain': '\\uF79A',\n 'RemoveLinkX': '\\uF79B',\n 'FabricTextHighlight': '\\uF79C',\n 'ClearFormattingA': '\\uF79D',\n 'ClearFormattingEraser': '\\uF79E',\n 'Photo2Fill': '\\uF79F',\n 'IncreaseIndentText': '\\uF7A0',\n 'IncreaseIndentArrow': '\\uF7A1',\n 'DecreaseIndentText': '\\uF7A2',\n 'DecreaseIndentArrow': '\\uF7A3',\n 'IncreaseIndentTextMirrored': '\\uF7A4',\n 'IncreaseIndentArrowMirrored': '\\uF7A5',\n 'DecreaseIndentTextMirrored': '\\uF7A6',\n 'DecreaseIndentArrowMirrored': '\\uF7A7',\n 'CheckListText': '\\uF7A8',\n 'CheckListCheck': '\\uF7A9',\n 'CheckListTextMirrored': '\\uF7AA',\n 'CheckListCheckMirrored': '\\uF7AB',\n 'NumberSymbol': '\\uF7AC',\n 'Coupon': '\\uF7BC',\n 'VerifiedBrand': '\\uF7BD',\n 'ReleaseGate': '\\uF7BE',\n 'ReleaseGateCheck': '\\uF7BF',\n 'ReleaseGateError': '\\uF7C0',\n 'M365InvoicingLogo': '\\uF7C1',\n 'RemoveFromShoppingList': '\\uF7D5',\n 'ShieldAlert': '\\uF7D7',\n 'FabricTextHighlightComposite': '\\uF7DA',\n 'Dataflows': '\\uF7DD',\n 'GenericScanFilled': '\\uF7DE',\n 'DiagnosticDataBarTooltip': '\\uF7DF',\n 'SaveToMobile': '\\uF7E0',\n 'Orientation2': '\\uF7E1',\n 'ScreenCast': '\\uF7E2',\n 'ShowGrid': '\\uF7E3',\n 'SnapToGrid': '\\uF7E4',\n 'ContactList': '\\uF7E5',\n 'NewMail': '\\uF7EA',\n 'EyeShadow': '\\uF7EB',\n 'FabricFolderConfirm': '\\uF7FF',\n 'InformationBarriers': '\\uF803',\n 'CommentActive': '\\uF804',\n 'ColumnVerticalSectionEdit': '\\uF806',\n 'WavingHand': '\\uF807',\n 'ShakeDevice': '\\uF80A',\n 'SmartGlassRemote': '\\uF80B',\n 'Rotate90Clockwise': '\\uF80D',\n 'Rotate90CounterClockwise': '\\uF80E',\n 'CampaignTemplate': '\\uF811',\n 'ChartTemplate': '\\uF812',\n 'PageListFilter': '\\uF813',\n 'SecondaryNav': '\\uF814',\n 'ColumnVerticalSection': '\\uF81E',\n 'SkypeCircleSlash': '\\uF825',\n 'SkypeSlash': '\\uF826'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-16\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-16-9cf93f3b.woff') format('woff')\"\n },\n icons: {\n 'OfficeChatSolid': '\\uF710',\n 'MailSchedule': '\\uF72E',\n 'WarningSolid': '\\uF736',\n 'Blocked2Solid': '\\uF737',\n 'SkypeCircleArrow': '\\uF747',\n 'SkypeArrow': '\\uF748',\n 'SyncStatus': '\\uF751',\n 'SyncStatusSolid': '\\uF752',\n 'ProjectDocument': '\\uF759',\n 'ToDoLogoOutline': '\\uF75B',\n 'VisioOnlineLogoFill32': '\\uF75F',\n 'VisioOnlineLogo32': '\\uF760',\n 'VisioOnlineLogoCloud32': '\\uF761',\n 'VisioDiagramSync': '\\uF762',\n 'Event12': '\\uF763',\n 'EventDateMissed12': '\\uF764',\n 'UserOptional': '\\uF767',\n 'ResponsesMenu': '\\uF768',\n 'DoubleDownArrow': '\\uF769',\n 'DistributeDown': '\\uF76A',\n 'BookmarkReport': '\\uF76B',\n 'FilterSettings': '\\uF76C',\n 'GripperDotsVertical': '\\uF772',\n 'MailAttached': '\\uF774',\n 'AddIn': '\\uF775',\n 'LinkedDatabase': '\\uF779',\n 'TableLink': '\\uF77A',\n 'PromotedDatabase': '\\uF77D',\n 'BarChartVerticalFilter': '\\uF77E',\n 'BarChartVerticalFilterSolid': '\\uF77F',\n 'MicOff2': '\\uF781',\n 'MicrosoftTranslatorLogo': '\\uF782',\n 'ShowTimeAs': '\\uF787',\n 'FileRequest': '\\uF789',\n 'WorkItemAlert': '\\uF78F',\n 'PowerBILogo16': '\\uF790',\n 'PowerBILogoBackplate16': '\\uF791',\n 'BulletedListText': '\\uF792',\n 'BulletedListBullet': '\\uF793',\n 'BulletedListTextMirrored': '\\uF794',\n 'BulletedListBulletMirrored': '\\uF795',\n 'NumberedListText': '\\uF796',\n 'NumberedListNumber': '\\uF797',\n 'NumberedListTextMirrored': '\\uF798',\n 'NumberedListNumberMirrored': '\\uF799',\n 'RemoveLinkChain': '\\uF79A',\n 'RemoveLinkX': '\\uF79B',\n 'FabricTextHighlight': '\\uF79C',\n 'ClearFormattingA': '\\uF79D',\n 'ClearFormattingEraser': '\\uF79E',\n 'Photo2Fill': '\\uF79F',\n 'IncreaseIndentText': '\\uF7A0',\n 'IncreaseIndentArrow': '\\uF7A1',\n 'DecreaseIndentText': '\\uF7A2',\n 'DecreaseIndentArrow': '\\uF7A3',\n 'IncreaseIndentTextMirrored': '\\uF7A4',\n 'IncreaseIndentArrowMirrored': '\\uF7A5',\n 'DecreaseIndentTextMirrored': '\\uF7A6',\n 'DecreaseIndentArrowMirrored': '\\uF7A7',\n 'CheckListText': '\\uF7A8',\n 'CheckListCheck': '\\uF7A9',\n 'CheckListTextMirrored': '\\uF7AA',\n 'CheckListCheckMirrored': '\\uF7AB',\n 'NumberSymbol': '\\uF7AC',\n 'Coupon': '\\uF7BC',\n 'VerifiedBrand': '\\uF7BD',\n 'ReleaseGate': '\\uF7BE',\n 'ReleaseGateCheck': '\\uF7BF',\n 'ReleaseGateError': '\\uF7C0',\n 'M365InvoicingLogo': '\\uF7C1',\n 'RemoveFromShoppingList': '\\uF7D5',\n 'ShieldAlert': '\\uF7D7',\n 'FabricTextHighlightComposite': '\\uF7DA',\n 'Dataflows': '\\uF7DD',\n 'GenericScanFilled': '\\uF7DE',\n 'DiagnosticDataBarTooltip': '\\uF7DF',\n 'SaveToMobile': '\\uF7E0',\n 'Orientation2': '\\uF7E1',\n 'ScreenCast': '\\uF7E2',\n 'ShowGrid': '\\uF7E3',\n 'SnapToGrid': '\\uF7E4',\n 'ContactList': '\\uF7E5',\n 'NewMail': '\\uF7EA',\n 'EyeShadow': '\\uF7EB',\n 'FabricFolderConfirm': '\\uF7FF',\n 'InformationBarriers': '\\uF803',\n 'CommentActive': '\\uF804',\n 'ColumnVerticalSectionEdit': '\\uF806',\n 'WavingHand': '\\uF807',\n 'ShakeDevice': '\\uF80A',\n 'SmartGlassRemote': '\\uF80B',\n 'Rotate90Clockwise': '\\uF80D',\n 'Rotate90CounterClockwise': '\\uF80E',\n 'CampaignTemplate': '\\uF811',\n 'ChartTemplate': '\\uF812',\n 'PageListFilter': '\\uF813',\n 'SecondaryNav': '\\uF814',\n 'ColumnVerticalSection': '\\uF81E',\n 'SkypeCircleSlash': '\\uF825',\n 'SkypeSlash': '\\uF826'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-1\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-1-4d521695.woff') format('woff')\"\n },\n icons: {\n 'Paste': '\\uE77F',\n 'WindowsLogo': '\\uE782',\n 'Error': '\\uE783',\n 'GripperBarVertical': '\\uE784',\n 'Unlock': '\\uE785',\n 'Slideshow': '\\uE786',\n 'Trim': '\\uE78A',\n 'AutoEnhanceOn': '\\uE78D',\n 'AutoEnhanceOff': '\\uE78E',\n 'Color': '\\uE790',\n 'SaveAs': '\\uE792',\n 'Light': '\\uE793',\n 'Filters': '\\uE795',\n 'AspectRatio': '\\uE799',\n 'Contrast': '\\uE7A1',\n 'Redo': '\\uE7A6',\n 'Crop': '\\uE7A8',\n 'PhotoCollection': '\\uE7AA',\n 'Album': '\\uE7AB',\n 'Rotate': '\\uE7AD',\n 'PanoIndicator': '\\uE7B0',\n 'Translate': '\\uE7B2',\n 'RedEye': '\\uE7B3',\n 'ViewOriginal': '\\uE7B4',\n 'ThumbnailView': '\\uE7B6',\n 'Package': '\\uE7B8',\n 'Telemarketer': '\\uE7B9',\n 'Warning': '\\uE7BA',\n 'Financial': '\\uE7BB',\n 'Education': '\\uE7BE',\n 'ShoppingCart': '\\uE7BF',\n 'Train': '\\uE7C0',\n 'Move': '\\uE7C2',\n 'TouchPointer': '\\uE7C9',\n 'Merge': '\\uE7D5',\n 'TurnRight': '\\uE7DB',\n 'Ferry': '\\uE7E3',\n 'Highlight': '\\uE7E6',\n 'PowerButton': '\\uE7E8',\n 'Tab': '\\uE7E9',\n 'Admin': '\\uE7EF',\n 'TVMonitor': '\\uE7F4',\n 'Speakers': '\\uE7F5',\n 'Game': '\\uE7FC',\n 'HorizontalTabKey': '\\uE7FD',\n 'UnstackSelected': '\\uE7FE',\n 'StackIndicator': '\\uE7FF',\n 'Nav2DMapView': '\\uE800',\n 'StreetsideSplitMinimize': '\\uE802',\n 'Car': '\\uE804',\n 'Bus': '\\uE806',\n 'EatDrink': '\\uE807',\n 'SeeDo': '\\uE808',\n 'LocationCircle': '\\uE80E',\n 'Home': '\\uE80F',\n 'SwitcherStartEnd': '\\uE810',\n 'ParkingLocation': '\\uE811',\n 'IncidentTriangle': '\\uE814',\n 'Touch': '\\uE815',\n 'MapDirections': '\\uE816',\n 'CaretHollow': '\\uE817',\n 'CaretSolid': '\\uE818',\n 'History': '\\uE81C',\n 'Location': '\\uE81D',\n 'MapLayers': '\\uE81E',\n 'SearchNearby': '\\uE820',\n 'Work': '\\uE821',\n 'Recent': '\\uE823',\n 'Hotel': '\\uE824',\n 'Bank': '\\uE825',\n 'LocationDot': '\\uE827',\n 'Dictionary': '\\uE82D',\n 'ChromeBack': '\\uE830',\n 'FolderOpen': '\\uE838',\n 'PinnedFill': '\\uE842',\n 'RevToggleKey': '\\uE845',\n 'USB': '\\uE88E',\n 'Previous': '\\uE892',\n 'Next': '\\uE893',\n 'Sync': '\\uE895',\n 'Help': '\\uE897',\n 'Emoji': '\\uE899',\n 'MailForward': '\\uE89C',\n 'ClosePane': '\\uE89F',\n 'OpenPane': '\\uE8A0',\n 'PreviewLink': '\\uE8A1',\n 'ZoomIn': '\\uE8A3',\n 'Bookmarks': '\\uE8A4',\n 'Document': '\\uE8A5',\n 'ProtectedDocument': '\\uE8A6',\n 'OpenInNewWindow': '\\uE8A7',\n 'MailFill': '\\uE8A8',\n 'ViewAll': '\\uE8A9',\n 'Switch': '\\uE8AB',\n 'Rename': '\\uE8AC',\n 'Go': '\\uE8AD',\n 'Remote': '\\uE8AF',\n 'SelectAll': '\\uE8B3',\n 'Orientation': '\\uE8B4',\n 'Import': '\\uE8B5'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-1\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-1-4d521695.woff') format('woff')\"\n },\n icons: {\n 'Paste': '\\uE77F',\n 'WindowsLogo': '\\uE782',\n 'Error': '\\uE783',\n 'GripperBarVertical': '\\uE784',\n 'Unlock': '\\uE785',\n 'Slideshow': '\\uE786',\n 'Trim': '\\uE78A',\n 'AutoEnhanceOn': '\\uE78D',\n 'AutoEnhanceOff': '\\uE78E',\n 'Color': '\\uE790',\n 'SaveAs': '\\uE792',\n 'Light': '\\uE793',\n 'Filters': '\\uE795',\n 'AspectRatio': '\\uE799',\n 'Contrast': '\\uE7A1',\n 'Redo': '\\uE7A6',\n 'Crop': '\\uE7A8',\n 'PhotoCollection': '\\uE7AA',\n 'Album': '\\uE7AB',\n 'Rotate': '\\uE7AD',\n 'PanoIndicator': '\\uE7B0',\n 'Translate': '\\uE7B2',\n 'RedEye': '\\uE7B3',\n 'ViewOriginal': '\\uE7B4',\n 'ThumbnailView': '\\uE7B6',\n 'Package': '\\uE7B8',\n 'Telemarketer': '\\uE7B9',\n 'Warning': '\\uE7BA',\n 'Financial': '\\uE7BB',\n 'Education': '\\uE7BE',\n 'ShoppingCart': '\\uE7BF',\n 'Train': '\\uE7C0',\n 'Move': '\\uE7C2',\n 'TouchPointer': '\\uE7C9',\n 'Merge': '\\uE7D5',\n 'TurnRight': '\\uE7DB',\n 'Ferry': '\\uE7E3',\n 'Highlight': '\\uE7E6',\n 'PowerButton': '\\uE7E8',\n 'Tab': '\\uE7E9',\n 'Admin': '\\uE7EF',\n 'TVMonitor': '\\uE7F4',\n 'Speakers': '\\uE7F5',\n 'Game': '\\uE7FC',\n 'HorizontalTabKey': '\\uE7FD',\n 'UnstackSelected': '\\uE7FE',\n 'StackIndicator': '\\uE7FF',\n 'Nav2DMapView': '\\uE800',\n 'StreetsideSplitMinimize': '\\uE802',\n 'Car': '\\uE804',\n 'Bus': '\\uE806',\n 'EatDrink': '\\uE807',\n 'SeeDo': '\\uE808',\n 'LocationCircle': '\\uE80E',\n 'Home': '\\uE80F',\n 'SwitcherStartEnd': '\\uE810',\n 'ParkingLocation': '\\uE811',\n 'IncidentTriangle': '\\uE814',\n 'Touch': '\\uE815',\n 'MapDirections': '\\uE816',\n 'CaretHollow': '\\uE817',\n 'CaretSolid': '\\uE818',\n 'History': '\\uE81C',\n 'Location': '\\uE81D',\n 'MapLayers': '\\uE81E',\n 'SearchNearby': '\\uE820',\n 'Work': '\\uE821',\n 'Recent': '\\uE823',\n 'Hotel': '\\uE824',\n 'Bank': '\\uE825',\n 'LocationDot': '\\uE827',\n 'Dictionary': '\\uE82D',\n 'ChromeBack': '\\uE830',\n 'FolderOpen': '\\uE838',\n 'PinnedFill': '\\uE842',\n 'RevToggleKey': '\\uE845',\n 'USB': '\\uE88E',\n 'Previous': '\\uE892',\n 'Next': '\\uE893',\n 'Sync': '\\uE895',\n 'Help': '\\uE897',\n 'Emoji': '\\uE899',\n 'MailForward': '\\uE89C',\n 'ClosePane': '\\uE89F',\n 'OpenPane': '\\uE8A0',\n 'PreviewLink': '\\uE8A1',\n 'ZoomIn': '\\uE8A3',\n 'Bookmarks': '\\uE8A4',\n 'Document': '\\uE8A5',\n 'ProtectedDocument': '\\uE8A6',\n 'OpenInNewWindow': '\\uE8A7',\n 'MailFill': '\\uE8A8',\n 'ViewAll': '\\uE8A9',\n 'Switch': '\\uE8AB',\n 'Rename': '\\uE8AC',\n 'Go': '\\uE8AD',\n 'Remote': '\\uE8AF',\n 'SelectAll': '\\uE8B3',\n 'Orientation': '\\uE8B4',\n 'Import': '\\uE8B5'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-13\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-13-c3989a02.woff') format('woff')\"\n },\n icons: {\n 'RectangularClipping': '\\uF407',\n 'TeamsLogo16': '\\uF40A',\n 'TeamsLogoFill16': '\\uF40B',\n 'Spacer': '\\uF40D',\n 'SkypeLogo16': '\\uF40E',\n 'SkypeForBusinessLogo16': '\\uF40F',\n 'SkypeForBusinessLogoFill16': '\\uF410',\n 'FilterSolid': '\\uF412',\n 'MailUndelivered': '\\uF415',\n 'MailTentative': '\\uF416',\n 'MailTentativeMirrored': '\\uF417',\n 'MailReminder': '\\uF418',\n 'ReceiptUndelivered': '\\uF419',\n 'ReceiptTentative': '\\uF41A',\n 'ReceiptTentativeMirrored': '\\uF41B',\n 'Inbox': '\\uF41C',\n 'IRMReply': '\\uF41D',\n 'IRMReplyMirrored': '\\uF41E',\n 'IRMForward': '\\uF41F',\n 'IRMForwardMirrored': '\\uF420',\n 'VoicemailIRM': '\\uF421',\n 'EventAccepted': '\\uF422',\n 'EventTentative': '\\uF423',\n 'EventTentativeMirrored': '\\uF424',\n 'EventDeclined': '\\uF425',\n 'IDBadge': '\\uF427',\n 'BackgroundColor': '\\uF42B',\n 'OfficeFormsLogoInverse16': '\\uF433',\n 'OfficeFormsLogo': '\\uF434',\n 'OfficeFormsLogoFill': '\\uF435',\n 'OfficeFormsLogo16': '\\uF436',\n 'OfficeFormsLogoFill16': '\\uF437',\n 'OfficeFormsLogoInverse24': '\\uF43A',\n 'OfficeFormsLogo24': '\\uF43B',\n 'OfficeFormsLogoFill24': '\\uF43C',\n 'PageLock': '\\uF43F',\n 'NotExecuted': '\\uF440',\n 'NotImpactedSolid': '\\uF441',\n 'FieldReadOnly': '\\uF442',\n 'FieldRequired': '\\uF443',\n 'BacklogBoard': '\\uF444',\n 'ExternalBuild': '\\uF445',\n 'ExternalTFVC': '\\uF446',\n 'ExternalXAML': '\\uF447',\n 'IssueSolid': '\\uF448',\n 'DefectSolid': '\\uF449',\n 'LadybugSolid': '\\uF44A',\n 'NugetLogo': '\\uF44C',\n 'TFVCLogo': '\\uF44D',\n 'ProjectLogo32': '\\uF47E',\n 'ProjectLogoFill32': '\\uF47F',\n 'ProjectLogo16': '\\uF480',\n 'ProjectLogoFill16': '\\uF481',\n 'SwayLogo32': '\\uF482',\n 'SwayLogoFill32': '\\uF483',\n 'SwayLogo16': '\\uF484',\n 'SwayLogoFill16': '\\uF485',\n 'ClassNotebookLogo32': '\\uF486',\n 'ClassNotebookLogoFill32': '\\uF487',\n 'ClassNotebookLogo16': '\\uF488',\n 'ClassNotebookLogoFill16': '\\uF489',\n 'ClassNotebookLogoInverse32': '\\uF48A',\n 'ClassNotebookLogoInverse16': '\\uF48B',\n 'StaffNotebookLogo32': '\\uF48C',\n 'StaffNotebookLogoFill32': '\\uF48D',\n 'StaffNotebookLogo16': '\\uF48E',\n 'StaffNotebookLogoFill16': '\\uF48F',\n 'StaffNotebookLogoInverted32': '\\uF490',\n 'StaffNotebookLogoInverted16': '\\uF491',\n 'KaizalaLogo': '\\uF492',\n 'TaskLogo': '\\uF493',\n 'ProtectionCenterLogo32': '\\uF494',\n 'GallatinLogo': '\\uF496',\n 'Globe2': '\\uF49A',\n 'Guitar': '\\uF49B',\n 'Breakfast': '\\uF49C',\n 'Brunch': '\\uF49D',\n 'BeerMug': '\\uF49E',\n 'Vacation': '\\uF49F',\n 'Teeth': '\\uF4A0',\n 'Taxi': '\\uF4A1',\n 'Chopsticks': '\\uF4A2',\n 'SyncOccurence': '\\uF4A3',\n 'UnsyncOccurence': '\\uF4A4',\n 'GIF': '\\uF4A9',\n 'PrimaryCalendar': '\\uF4AE',\n 'SearchCalendar': '\\uF4AF',\n 'VideoOff': '\\uF4B0',\n 'MicrosoftFlowLogo': '\\uF4B1',\n 'BusinessCenterLogo': '\\uF4B2',\n 'ToDoLogoBottom': '\\uF4B3',\n 'ToDoLogoTop': '\\uF4B4',\n 'EditSolid12': '\\uF4B5',\n 'EditSolidMirrored12': '\\uF4B6',\n 'UneditableSolid12': '\\uF4B7',\n 'UneditableSolidMirrored12': '\\uF4B8',\n 'UneditableMirrored': '\\uF4B9',\n 'AdminALogo32': '\\uF4BA',\n 'AdminALogoFill32': '\\uF4BB',\n 'ToDoLogoInverse': '\\uF4BC'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-13\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-13-c3989a02.woff') format('woff')\"\n },\n icons: {\n 'RectangularClipping': '\\uF407',\n 'TeamsLogo16': '\\uF40A',\n 'TeamsLogoFill16': '\\uF40B',\n 'Spacer': '\\uF40D',\n 'SkypeLogo16': '\\uF40E',\n 'SkypeForBusinessLogo16': '\\uF40F',\n 'SkypeForBusinessLogoFill16': '\\uF410',\n 'FilterSolid': '\\uF412',\n 'MailUndelivered': '\\uF415',\n 'MailTentative': '\\uF416',\n 'MailTentativeMirrored': '\\uF417',\n 'MailReminder': '\\uF418',\n 'ReceiptUndelivered': '\\uF419',\n 'ReceiptTentative': '\\uF41A',\n 'ReceiptTentativeMirrored': '\\uF41B',\n 'Inbox': '\\uF41C',\n 'IRMReply': '\\uF41D',\n 'IRMReplyMirrored': '\\uF41E',\n 'IRMForward': '\\uF41F',\n 'IRMForwardMirrored': '\\uF420',\n 'VoicemailIRM': '\\uF421',\n 'EventAccepted': '\\uF422',\n 'EventTentative': '\\uF423',\n 'EventTentativeMirrored': '\\uF424',\n 'EventDeclined': '\\uF425',\n 'IDBadge': '\\uF427',\n 'BackgroundColor': '\\uF42B',\n 'OfficeFormsLogoInverse16': '\\uF433',\n 'OfficeFormsLogo': '\\uF434',\n 'OfficeFormsLogoFill': '\\uF435',\n 'OfficeFormsLogo16': '\\uF436',\n 'OfficeFormsLogoFill16': '\\uF437',\n 'OfficeFormsLogoInverse24': '\\uF43A',\n 'OfficeFormsLogo24': '\\uF43B',\n 'OfficeFormsLogoFill24': '\\uF43C',\n 'PageLock': '\\uF43F',\n 'NotExecuted': '\\uF440',\n 'NotImpactedSolid': '\\uF441',\n 'FieldReadOnly': '\\uF442',\n 'FieldRequired': '\\uF443',\n 'BacklogBoard': '\\uF444',\n 'ExternalBuild': '\\uF445',\n 'ExternalTFVC': '\\uF446',\n 'ExternalXAML': '\\uF447',\n 'IssueSolid': '\\uF448',\n 'DefectSolid': '\\uF449',\n 'LadybugSolid': '\\uF44A',\n 'NugetLogo': '\\uF44C',\n 'TFVCLogo': '\\uF44D',\n 'ProjectLogo32': '\\uF47E',\n 'ProjectLogoFill32': '\\uF47F',\n 'ProjectLogo16': '\\uF480',\n 'ProjectLogoFill16': '\\uF481',\n 'SwayLogo32': '\\uF482',\n 'SwayLogoFill32': '\\uF483',\n 'SwayLogo16': '\\uF484',\n 'SwayLogoFill16': '\\uF485',\n 'ClassNotebookLogo32': '\\uF486',\n 'ClassNotebookLogoFill32': '\\uF487',\n 'ClassNotebookLogo16': '\\uF488',\n 'ClassNotebookLogoFill16': '\\uF489',\n 'ClassNotebookLogoInverse32': '\\uF48A',\n 'ClassNotebookLogoInverse16': '\\uF48B',\n 'StaffNotebookLogo32': '\\uF48C',\n 'StaffNotebookLogoFill32': '\\uF48D',\n 'StaffNotebookLogo16': '\\uF48E',\n 'StaffNotebookLogoFill16': '\\uF48F',\n 'StaffNotebookLogoInverted32': '\\uF490',\n 'StaffNotebookLogoInverted16': '\\uF491',\n 'KaizalaLogo': '\\uF492',\n 'TaskLogo': '\\uF493',\n 'ProtectionCenterLogo32': '\\uF494',\n 'GallatinLogo': '\\uF496',\n 'Globe2': '\\uF49A',\n 'Guitar': '\\uF49B',\n 'Breakfast': '\\uF49C',\n 'Brunch': '\\uF49D',\n 'BeerMug': '\\uF49E',\n 'Vacation': '\\uF49F',\n 'Teeth': '\\uF4A0',\n 'Taxi': '\\uF4A1',\n 'Chopsticks': '\\uF4A2',\n 'SyncOccurence': '\\uF4A3',\n 'UnsyncOccurence': '\\uF4A4',\n 'GIF': '\\uF4A9',\n 'PrimaryCalendar': '\\uF4AE',\n 'SearchCalendar': '\\uF4AF',\n 'VideoOff': '\\uF4B0',\n 'MicrosoftFlowLogo': '\\uF4B1',\n 'BusinessCenterLogo': '\\uF4B2',\n 'ToDoLogoBottom': '\\uF4B3',\n 'ToDoLogoTop': '\\uF4B4',\n 'EditSolid12': '\\uF4B5',\n 'EditSolidMirrored12': '\\uF4B6',\n 'UneditableSolid12': '\\uF4B7',\n 'UneditableSolidMirrored12': '\\uF4B8',\n 'UneditableMirrored': '\\uF4B9',\n 'AdminALogo32': '\\uF4BA',\n 'AdminALogoFill32': '\\uF4BB',\n 'ToDoLogoInverse': '\\uF4BC'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-4\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-4-a656cc0a.woff') format('woff')\"\n },\n icons: {\n 'HelpMirrored': '\\uEA51',\n 'ImportMirrored': '\\uEA52',\n 'ImportAllMirrored': '\\uEA53',\n 'ListMirrored': '\\uEA55',\n 'MailForwardMirrored': '\\uEA56',\n 'MailReplyMirrored': '\\uEA57',\n 'MailReplyAllMirrored': '\\uEA58',\n 'MiniContractMirrored': '\\uEA59',\n 'MiniExpandMirrored': '\\uEA5A',\n 'OpenPaneMirrored': '\\uEA5B',\n 'ParkingLocationMirrored': '\\uEA5E',\n 'SendMirrored': '\\uEA63',\n 'ShowResultsMirrored': '\\uEA65',\n 'ThumbnailViewMirrored': '\\uEA67',\n 'Media': '\\uEA69',\n 'Devices3': '\\uEA6C',\n 'Focus': '\\uEA6F',\n 'VideoLightOff': '\\uEA74',\n 'Lightbulb': '\\uEA80',\n 'StatusTriangle': '\\uEA82',\n 'VolumeDisabled': '\\uEA85',\n 'Puzzle': '\\uEA86',\n 'EmojiNeutral': '\\uEA87',\n 'EmojiDisappointed': '\\uEA88',\n 'HomeSolid': '\\uEA8A',\n 'Ringer': '\\uEA8F',\n 'PDF': '\\uEA90',\n 'HeartBroken': '\\uEA92',\n 'StoreLogo16': '\\uEA96',\n 'MultiSelectMirrored': '\\uEA98',\n 'Broom': '\\uEA99',\n 'AddToShoppingList': '\\uEA9A',\n 'Cocktails': '\\uEA9D',\n 'Wines': '\\uEABF',\n 'Articles': '\\uEAC1',\n 'Cycling': '\\uEAC7',\n 'DietPlanNotebook': '\\uEAC8',\n 'Pill': '\\uEACB',\n 'ExerciseTracker': '\\uEACC',\n 'HandsFree': '\\uEAD0',\n 'Medical': '\\uEAD4',\n 'Running': '\\uEADA',\n 'Weights': '\\uEADB',\n 'Trackers': '\\uEADF',\n 'AddNotes': '\\uEAE3',\n 'AllCurrency': '\\uEAE4',\n 'BarChart4': '\\uEAE7',\n 'CirclePlus': '\\uEAEE',\n 'Coffee': '\\uEAEF',\n 'Cotton': '\\uEAF3',\n 'Market': '\\uEAFC',\n 'Money': '\\uEAFD',\n 'PieDouble': '\\uEB04',\n 'PieSingle': '\\uEB05',\n 'RemoveFilter': '\\uEB08',\n 'Savings': '\\uEB0B',\n 'Sell': '\\uEB0C',\n 'StockDown': '\\uEB0F',\n 'StockUp': '\\uEB11',\n 'Lamp': '\\uEB19',\n 'Source': '\\uEB1B',\n 'MSNVideos': '\\uEB1C',\n 'Cricket': '\\uEB1E',\n 'Golf': '\\uEB1F',\n 'Baseball': '\\uEB20',\n 'Soccer': '\\uEB21',\n 'MoreSports': '\\uEB22',\n 'AutoRacing': '\\uEB24',\n 'CollegeHoops': '\\uEB25',\n 'CollegeFootball': '\\uEB26',\n 'ProFootball': '\\uEB27',\n 'ProHockey': '\\uEB28',\n 'Rugby': '\\uEB2D',\n 'SubstitutionsIn': '\\uEB31',\n 'Tennis': '\\uEB33',\n 'Arrivals': '\\uEB34',\n 'Design': '\\uEB3C',\n 'Website': '\\uEB41',\n 'Drop': '\\uEB42',\n 'HistoricalWeather': '\\uEB43',\n 'SkiResorts': '\\uEB45',\n 'Snowflake': '\\uEB46',\n 'BusSolid': '\\uEB47',\n 'FerrySolid': '\\uEB48',\n 'AirplaneSolid': '\\uEB4C',\n 'TrainSolid': '\\uEB4D',\n 'Ticket': '\\uEB54',\n 'WifiWarning4': '\\uEB63',\n 'Devices4': '\\uEB66',\n 'AzureLogo': '\\uEB6A',\n 'BingLogo': '\\uEB6B',\n 'MSNLogo': '\\uEB6C',\n 'OutlookLogoInverse': '\\uEB6D',\n 'OfficeLogo': '\\uEB6E',\n 'SkypeLogo': '\\uEB6F',\n 'Door': '\\uEB75',\n 'EditMirrored': '\\uEB7E',\n 'GiftCard': '\\uEB8E',\n 'DoubleBookmark': '\\uEB8F',\n 'StatusErrorFull': '\\uEB90'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-4\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-4-a656cc0a.woff') format('woff')\"\n },\n icons: {\n 'HelpMirrored': '\\uEA51',\n 'ImportMirrored': '\\uEA52',\n 'ImportAllMirrored': '\\uEA53',\n 'ListMirrored': '\\uEA55',\n 'MailForwardMirrored': '\\uEA56',\n 'MailReplyMirrored': '\\uEA57',\n 'MailReplyAllMirrored': '\\uEA58',\n 'MiniContractMirrored': '\\uEA59',\n 'MiniExpandMirrored': '\\uEA5A',\n 'OpenPaneMirrored': '\\uEA5B',\n 'ParkingLocationMirrored': '\\uEA5E',\n 'SendMirrored': '\\uEA63',\n 'ShowResultsMirrored': '\\uEA65',\n 'ThumbnailViewMirrored': '\\uEA67',\n 'Media': '\\uEA69',\n 'Devices3': '\\uEA6C',\n 'Focus': '\\uEA6F',\n 'VideoLightOff': '\\uEA74',\n 'Lightbulb': '\\uEA80',\n 'StatusTriangle': '\\uEA82',\n 'VolumeDisabled': '\\uEA85',\n 'Puzzle': '\\uEA86',\n 'EmojiNeutral': '\\uEA87',\n 'EmojiDisappointed': '\\uEA88',\n 'HomeSolid': '\\uEA8A',\n 'Ringer': '\\uEA8F',\n 'PDF': '\\uEA90',\n 'HeartBroken': '\\uEA92',\n 'StoreLogo16': '\\uEA96',\n 'MultiSelectMirrored': '\\uEA98',\n 'Broom': '\\uEA99',\n 'AddToShoppingList': '\\uEA9A',\n 'Cocktails': '\\uEA9D',\n 'Wines': '\\uEABF',\n 'Articles': '\\uEAC1',\n 'Cycling': '\\uEAC7',\n 'DietPlanNotebook': '\\uEAC8',\n 'Pill': '\\uEACB',\n 'ExerciseTracker': '\\uEACC',\n 'HandsFree': '\\uEAD0',\n 'Medical': '\\uEAD4',\n 'Running': '\\uEADA',\n 'Weights': '\\uEADB',\n 'Trackers': '\\uEADF',\n 'AddNotes': '\\uEAE3',\n 'AllCurrency': '\\uEAE4',\n 'BarChart4': '\\uEAE7',\n 'CirclePlus': '\\uEAEE',\n 'Coffee': '\\uEAEF',\n 'Cotton': '\\uEAF3',\n 'Market': '\\uEAFC',\n 'Money': '\\uEAFD',\n 'PieDouble': '\\uEB04',\n 'PieSingle': '\\uEB05',\n 'RemoveFilter': '\\uEB08',\n 'Savings': '\\uEB0B',\n 'Sell': '\\uEB0C',\n 'StockDown': '\\uEB0F',\n 'StockUp': '\\uEB11',\n 'Lamp': '\\uEB19',\n 'Source': '\\uEB1B',\n 'MSNVideos': '\\uEB1C',\n 'Cricket': '\\uEB1E',\n 'Golf': '\\uEB1F',\n 'Baseball': '\\uEB20',\n 'Soccer': '\\uEB21',\n 'MoreSports': '\\uEB22',\n 'AutoRacing': '\\uEB24',\n 'CollegeHoops': '\\uEB25',\n 'CollegeFootball': '\\uEB26',\n 'ProFootball': '\\uEB27',\n 'ProHockey': '\\uEB28',\n 'Rugby': '\\uEB2D',\n 'SubstitutionsIn': '\\uEB31',\n 'Tennis': '\\uEB33',\n 'Arrivals': '\\uEB34',\n 'Design': '\\uEB3C',\n 'Website': '\\uEB41',\n 'Drop': '\\uEB42',\n 'HistoricalWeather': '\\uEB43',\n 'SkiResorts': '\\uEB45',\n 'Snowflake': '\\uEB46',\n 'BusSolid': '\\uEB47',\n 'FerrySolid': '\\uEB48',\n 'AirplaneSolid': '\\uEB4C',\n 'TrainSolid': '\\uEB4D',\n 'Ticket': '\\uEB54',\n 'WifiWarning4': '\\uEB63',\n 'Devices4': '\\uEB66',\n 'AzureLogo': '\\uEB6A',\n 'BingLogo': '\\uEB6B',\n 'MSNLogo': '\\uEB6C',\n 'OutlookLogoInverse': '\\uEB6D',\n 'OfficeLogo': '\\uEB6E',\n 'SkypeLogo': '\\uEB6F',\n 'Door': '\\uEB75',\n 'EditMirrored': '\\uEB7E',\n 'GiftCard': '\\uEB8E',\n 'DoubleBookmark': '\\uEB8F',\n 'StatusErrorFull': '\\uEB90'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-9\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-9-c6162b42.woff') format('woff')\"\n },\n icons: {\n 'AddFavoriteFill': '\\uF0C9',\n 'BufferTimeBefore': '\\uF0CF',\n 'BufferTimeAfter': '\\uF0D0',\n 'BufferTimeBoth': '\\uF0D1',\n 'PublishContent': '\\uF0D4',\n 'ClipboardList': '\\uF0E3',\n 'ClipboardListMirrored': '\\uF0E4',\n 'CannedChat': '\\uF0F2',\n 'SkypeForBusinessLogo': '\\uF0FC',\n 'TabCenter': '\\uF100',\n 'PageCheckedin': '\\uF104',\n 'PageList': '\\uF106',\n 'ReadOutLoud': '\\uF112',\n 'CaretBottomLeftSolid8': '\\uF121',\n 'CaretBottomRightSolid8': '\\uF122',\n 'FolderHorizontal': '\\uF12B',\n 'MicrosoftStaffhubLogo': '\\uF130',\n 'GiftboxOpen': '\\uF133',\n 'StatusCircleOuter': '\\uF136',\n 'StatusCircleInner': '\\uF137',\n 'StatusCircleRing': '\\uF138',\n 'StatusTriangleOuter': '\\uF139',\n 'StatusTriangleInner': '\\uF13A',\n 'StatusTriangleExclamation': '\\uF13B',\n 'StatusCircleExclamation': '\\uF13C',\n 'StatusCircleErrorX': '\\uF13D',\n 'StatusCircleInfo': '\\uF13F',\n 'StatusCircleBlock': '\\uF140',\n 'StatusCircleBlock2': '\\uF141',\n 'StatusCircleQuestionMark': '\\uF142',\n 'StatusCircleSync': '\\uF143',\n 'Toll': '\\uF160',\n 'ExploreContentSingle': '\\uF164',\n 'CollapseContent': '\\uF165',\n 'CollapseContentSingle': '\\uF166',\n 'InfoSolid': '\\uF167',\n 'GroupList': '\\uF168',\n 'ProgressRingDots': '\\uF16A',\n 'CaloriesAdd': '\\uF172',\n 'BranchFork': '\\uF173',\n 'MuteChat': '\\uF17A',\n 'AddHome': '\\uF17B',\n 'AddWork': '\\uF17C',\n 'MobileReport': '\\uF18A',\n 'ScaleVolume': '\\uF18C',\n 'HardDriveGroup': '\\uF18F',\n 'FastMode': '\\uF19A',\n 'ToggleLeft': '\\uF19E',\n 'ToggleRight': '\\uF19F',\n 'TriangleShape': '\\uF1A7',\n 'RectangleShape': '\\uF1A9',\n 'CubeShape': '\\uF1AA',\n 'Trophy2': '\\uF1AE',\n 'BucketColor': '\\uF1B6',\n 'BucketColorFill': '\\uF1B7',\n 'Taskboard': '\\uF1C2',\n 'SingleColumn': '\\uF1D3',\n 'DoubleColumn': '\\uF1D4',\n 'TripleColumn': '\\uF1D5',\n 'ColumnLeftTwoThirds': '\\uF1D6',\n 'ColumnRightTwoThirds': '\\uF1D7',\n 'AccessLogoFill': '\\uF1DB',\n 'AnalyticsLogo': '\\uF1DE',\n 'AnalyticsQuery': '\\uF1DF',\n 'NewAnalyticsQuery': '\\uF1E0',\n 'AnalyticsReport': '\\uF1E1',\n 'WordLogo': '\\uF1E3',\n 'WordLogoFill': '\\uF1E4',\n 'ExcelLogo': '\\uF1E5',\n 'ExcelLogoFill': '\\uF1E6',\n 'OneNoteLogo': '\\uF1E7',\n 'OneNoteLogoFill': '\\uF1E8',\n 'OutlookLogo': '\\uF1E9',\n 'OutlookLogoFill': '\\uF1EA',\n 'PowerPointLogo': '\\uF1EB',\n 'PowerPointLogoFill': '\\uF1EC',\n 'PublisherLogo': '\\uF1ED',\n 'PublisherLogoFill': '\\uF1EE',\n 'ScheduleEventAction': '\\uF1EF',\n 'FlameSolid': '\\uF1F3',\n 'ServerProcesses': '\\uF1FE',\n 'Server': '\\uF201',\n 'SaveAll': '\\uF203',\n 'LinkedInLogo': '\\uF20A',\n 'Decimals': '\\uF218',\n 'SidePanelMirrored': '\\uF221',\n 'ProtectRestrict': '\\uF22A',\n 'Blog': '\\uF22B',\n 'UnknownMirrored': '\\uF22E',\n 'PublicContactCardMirrored': '\\uF230',\n 'GridViewSmall': '\\uF232',\n 'GridViewMedium': '\\uF233',\n 'GridViewLarge': '\\uF234',\n 'Step': '\\uF241',\n 'StepInsert': '\\uF242',\n 'StepShared': '\\uF243',\n 'StepSharedAdd': '\\uF244',\n 'StepSharedInsert': '\\uF245',\n 'ViewDashboard': '\\uF246',\n 'ViewList': '\\uF247'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-9\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-9-c6162b42.woff') format('woff')\"\n },\n icons: {\n 'AddFavoriteFill': '\\uF0C9',\n 'BufferTimeBefore': '\\uF0CF',\n 'BufferTimeAfter': '\\uF0D0',\n 'BufferTimeBoth': '\\uF0D1',\n 'PublishContent': '\\uF0D4',\n 'ClipboardList': '\\uF0E3',\n 'ClipboardListMirrored': '\\uF0E4',\n 'CannedChat': '\\uF0F2',\n 'SkypeForBusinessLogo': '\\uF0FC',\n 'TabCenter': '\\uF100',\n 'PageCheckedin': '\\uF104',\n 'PageList': '\\uF106',\n 'ReadOutLoud': '\\uF112',\n 'CaretBottomLeftSolid8': '\\uF121',\n 'CaretBottomRightSolid8': '\\uF122',\n 'FolderHorizontal': '\\uF12B',\n 'MicrosoftStaffhubLogo': '\\uF130',\n 'GiftboxOpen': '\\uF133',\n 'StatusCircleOuter': '\\uF136',\n 'StatusCircleInner': '\\uF137',\n 'StatusCircleRing': '\\uF138',\n 'StatusTriangleOuter': '\\uF139',\n 'StatusTriangleInner': '\\uF13A',\n 'StatusTriangleExclamation': '\\uF13B',\n 'StatusCircleExclamation': '\\uF13C',\n 'StatusCircleErrorX': '\\uF13D',\n 'StatusCircleInfo': '\\uF13F',\n 'StatusCircleBlock': '\\uF140',\n 'StatusCircleBlock2': '\\uF141',\n 'StatusCircleQuestionMark': '\\uF142',\n 'StatusCircleSync': '\\uF143',\n 'Toll': '\\uF160',\n 'ExploreContentSingle': '\\uF164',\n 'CollapseContent': '\\uF165',\n 'CollapseContentSingle': '\\uF166',\n 'InfoSolid': '\\uF167',\n 'GroupList': '\\uF168',\n 'ProgressRingDots': '\\uF16A',\n 'CaloriesAdd': '\\uF172',\n 'BranchFork': '\\uF173',\n 'MuteChat': '\\uF17A',\n 'AddHome': '\\uF17B',\n 'AddWork': '\\uF17C',\n 'MobileReport': '\\uF18A',\n 'ScaleVolume': '\\uF18C',\n 'HardDriveGroup': '\\uF18F',\n 'FastMode': '\\uF19A',\n 'ToggleLeft': '\\uF19E',\n 'ToggleRight': '\\uF19F',\n 'TriangleShape': '\\uF1A7',\n 'RectangleShape': '\\uF1A9',\n 'CubeShape': '\\uF1AA',\n 'Trophy2': '\\uF1AE',\n 'BucketColor': '\\uF1B6',\n 'BucketColorFill': '\\uF1B7',\n 'Taskboard': '\\uF1C2',\n 'SingleColumn': '\\uF1D3',\n 'DoubleColumn': '\\uF1D4',\n 'TripleColumn': '\\uF1D5',\n 'ColumnLeftTwoThirds': '\\uF1D6',\n 'ColumnRightTwoThirds': '\\uF1D7',\n 'AccessLogoFill': '\\uF1DB',\n 'AnalyticsLogo': '\\uF1DE',\n 'AnalyticsQuery': '\\uF1DF',\n 'NewAnalyticsQuery': '\\uF1E0',\n 'AnalyticsReport': '\\uF1E1',\n 'WordLogo': '\\uF1E3',\n 'WordLogoFill': '\\uF1E4',\n 'ExcelLogo': '\\uF1E5',\n 'ExcelLogoFill': '\\uF1E6',\n 'OneNoteLogo': '\\uF1E7',\n 'OneNoteLogoFill': '\\uF1E8',\n 'OutlookLogo': '\\uF1E9',\n 'OutlookLogoFill': '\\uF1EA',\n 'PowerPointLogo': '\\uF1EB',\n 'PowerPointLogoFill': '\\uF1EC',\n 'PublisherLogo': '\\uF1ED',\n 'PublisherLogoFill': '\\uF1EE',\n 'ScheduleEventAction': '\\uF1EF',\n 'FlameSolid': '\\uF1F3',\n 'ServerProcesses': '\\uF1FE',\n 'Server': '\\uF201',\n 'SaveAll': '\\uF203',\n 'LinkedInLogo': '\\uF20A',\n 'Decimals': '\\uF218',\n 'SidePanelMirrored': '\\uF221',\n 'ProtectRestrict': '\\uF22A',\n 'Blog': '\\uF22B',\n 'UnknownMirrored': '\\uF22E',\n 'PublicContactCardMirrored': '\\uF230',\n 'GridViewSmall': '\\uF232',\n 'GridViewMedium': '\\uF233',\n 'GridViewLarge': '\\uF234',\n 'Step': '\\uF241',\n 'StepInsert': '\\uF242',\n 'StepShared': '\\uF243',\n 'StepSharedAdd': '\\uF244',\n 'StepSharedInsert': '\\uF245',\n 'ViewDashboard': '\\uF246',\n 'ViewList': '\\uF247'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-14\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-14-5cf58db8.woff') format('woff')\"\n },\n icons: {\n 'Snooze': '\\uF4BD',\n 'WaffleOffice365': '\\uF4E0',\n 'ImageSearch': '\\uF4E8',\n 'NewsSearch': '\\uF4E9',\n 'VideoSearch': '\\uF4EA',\n 'R': '\\uF4EB',\n 'FontColorA': '\\uF4EC',\n 'FontColorSwatch': '\\uF4ED',\n 'LightWeight': '\\uF4EE',\n 'NormalWeight': '\\uF4EF',\n 'SemiboldWeight': '\\uF4F0',\n 'GroupObject': '\\uF4F1',\n 'UngroupObject': '\\uF4F2',\n 'AlignHorizontalLeft': '\\uF4F3',\n 'AlignHorizontalCenter': '\\uF4F4',\n 'AlignHorizontalRight': '\\uF4F5',\n 'AlignVerticalTop': '\\uF4F6',\n 'AlignVerticalCenter': '\\uF4F7',\n 'AlignVerticalBottom': '\\uF4F8',\n 'HorizontalDistributeCenter': '\\uF4F9',\n 'VerticalDistributeCenter': '\\uF4FA',\n 'Ellipse': '\\uF4FB',\n 'Line': '\\uF4FC',\n 'Octagon': '\\uF4FD',\n 'Hexagon': '\\uF4FE',\n 'Pentagon': '\\uF4FF',\n 'RightTriangle': '\\uF500',\n 'HalfCircle': '\\uF501',\n 'QuarterCircle': '\\uF502',\n 'ThreeQuarterCircle': '\\uF503',\n '6PointStar': '\\uF504',\n '12PointStar': '\\uF505',\n 'ArrangeBringToFront': '\\uF506',\n 'ArrangeSendToBack': '\\uF507',\n 'ArrangeSendBackward': '\\uF508',\n 'ArrangeBringForward': '\\uF509',\n 'BorderDash': '\\uF50A',\n 'BorderDot': '\\uF50B',\n 'LineStyle': '\\uF50C',\n 'LineThickness': '\\uF50D',\n 'WindowEdit': '\\uF50E',\n 'HintText': '\\uF50F',\n 'MediaAdd': '\\uF510',\n 'AnchorLock': '\\uF511',\n 'AutoHeight': '\\uF512',\n 'ChartSeries': '\\uF513',\n 'ChartXAngle': '\\uF514',\n 'ChartYAngle': '\\uF515',\n 'Combobox': '\\uF516',\n 'LineSpacing': '\\uF517',\n 'Padding': '\\uF518',\n 'PaddingTop': '\\uF519',\n 'PaddingBottom': '\\uF51A',\n 'PaddingLeft': '\\uF51B',\n 'PaddingRight': '\\uF51C',\n 'NavigationFlipper': '\\uF51D',\n 'AlignJustify': '\\uF51E',\n 'TextOverflow': '\\uF51F',\n 'VisualsFolder': '\\uF520',\n 'VisualsStore': '\\uF521',\n 'PictureCenter': '\\uF522',\n 'PictureFill': '\\uF523',\n 'PicturePosition': '\\uF524',\n 'PictureStretch': '\\uF525',\n 'PictureTile': '\\uF526',\n 'Slider': '\\uF527',\n 'SliderHandleSize': '\\uF528',\n 'DefaultRatio': '\\uF529',\n 'NumberSequence': '\\uF52A',\n 'GUID': '\\uF52B',\n 'ReportAdd': '\\uF52C',\n 'DashboardAdd': '\\uF52D',\n 'MapPinSolid': '\\uF52E',\n 'WebPublish': '\\uF52F',\n 'PieSingleSolid': '\\uF530',\n 'BlockedSolid': '\\uF531',\n 'DrillDown': '\\uF532',\n 'DrillDownSolid': '\\uF533',\n 'DrillExpand': '\\uF534',\n 'DrillShow': '\\uF535',\n 'SpecialEvent': '\\uF536',\n 'OneDriveFolder16': '\\uF53B',\n 'FunctionalManagerDashboard': '\\uF542',\n 'BIDashboard': '\\uF543',\n 'CodeEdit': '\\uF544',\n 'RenewalCurrent': '\\uF545',\n 'RenewalFuture': '\\uF546',\n 'SplitObject': '\\uF547',\n 'BulkUpload': '\\uF548',\n 'DownloadDocument': '\\uF549',\n 'GreetingCard': '\\uF54B',\n 'Flower': '\\uF54E',\n 'WaitlistConfirm': '\\uF550',\n 'WaitlistConfirmMirrored': '\\uF551',\n 'LaptopSecure': '\\uF552',\n 'DragObject': '\\uF553',\n 'EntryView': '\\uF554',\n 'EntryDecline': '\\uF555',\n 'ContactCardSettings': '\\uF556',\n 'ContactCardSettingsMirrored': '\\uF557'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-14\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-14-5cf58db8.woff') format('woff')\"\n },\n icons: {\n 'Snooze': '\\uF4BD',\n 'WaffleOffice365': '\\uF4E0',\n 'ImageSearch': '\\uF4E8',\n 'NewsSearch': '\\uF4E9',\n 'VideoSearch': '\\uF4EA',\n 'R': '\\uF4EB',\n 'FontColorA': '\\uF4EC',\n 'FontColorSwatch': '\\uF4ED',\n 'LightWeight': '\\uF4EE',\n 'NormalWeight': '\\uF4EF',\n 'SemiboldWeight': '\\uF4F0',\n 'GroupObject': '\\uF4F1',\n 'UngroupObject': '\\uF4F2',\n 'AlignHorizontalLeft': '\\uF4F3',\n 'AlignHorizontalCenter': '\\uF4F4',\n 'AlignHorizontalRight': '\\uF4F5',\n 'AlignVerticalTop': '\\uF4F6',\n 'AlignVerticalCenter': '\\uF4F7',\n 'AlignVerticalBottom': '\\uF4F8',\n 'HorizontalDistributeCenter': '\\uF4F9',\n 'VerticalDistributeCenter': '\\uF4FA',\n 'Ellipse': '\\uF4FB',\n 'Line': '\\uF4FC',\n 'Octagon': '\\uF4FD',\n 'Hexagon': '\\uF4FE',\n 'Pentagon': '\\uF4FF',\n 'RightTriangle': '\\uF500',\n 'HalfCircle': '\\uF501',\n 'QuarterCircle': '\\uF502',\n 'ThreeQuarterCircle': '\\uF503',\n '6PointStar': '\\uF504',\n '12PointStar': '\\uF505',\n 'ArrangeBringToFront': '\\uF506',\n 'ArrangeSendToBack': '\\uF507',\n 'ArrangeSendBackward': '\\uF508',\n 'ArrangeBringForward': '\\uF509',\n 'BorderDash': '\\uF50A',\n 'BorderDot': '\\uF50B',\n 'LineStyle': '\\uF50C',\n 'LineThickness': '\\uF50D',\n 'WindowEdit': '\\uF50E',\n 'HintText': '\\uF50F',\n 'MediaAdd': '\\uF510',\n 'AnchorLock': '\\uF511',\n 'AutoHeight': '\\uF512',\n 'ChartSeries': '\\uF513',\n 'ChartXAngle': '\\uF514',\n 'ChartYAngle': '\\uF515',\n 'Combobox': '\\uF516',\n 'LineSpacing': '\\uF517',\n 'Padding': '\\uF518',\n 'PaddingTop': '\\uF519',\n 'PaddingBottom': '\\uF51A',\n 'PaddingLeft': '\\uF51B',\n 'PaddingRight': '\\uF51C',\n 'NavigationFlipper': '\\uF51D',\n 'AlignJustify': '\\uF51E',\n 'TextOverflow': '\\uF51F',\n 'VisualsFolder': '\\uF520',\n 'VisualsStore': '\\uF521',\n 'PictureCenter': '\\uF522',\n 'PictureFill': '\\uF523',\n 'PicturePosition': '\\uF524',\n 'PictureStretch': '\\uF525',\n 'PictureTile': '\\uF526',\n 'Slider': '\\uF527',\n 'SliderHandleSize': '\\uF528',\n 'DefaultRatio': '\\uF529',\n 'NumberSequence': '\\uF52A',\n 'GUID': '\\uF52B',\n 'ReportAdd': '\\uF52C',\n 'DashboardAdd': '\\uF52D',\n 'MapPinSolid': '\\uF52E',\n 'WebPublish': '\\uF52F',\n 'PieSingleSolid': '\\uF530',\n 'BlockedSolid': '\\uF531',\n 'DrillDown': '\\uF532',\n 'DrillDownSolid': '\\uF533',\n 'DrillExpand': '\\uF534',\n 'DrillShow': '\\uF535',\n 'SpecialEvent': '\\uF536',\n 'OneDriveFolder16': '\\uF53B',\n 'FunctionalManagerDashboard': '\\uF542',\n 'BIDashboard': '\\uF543',\n 'CodeEdit': '\\uF544',\n 'RenewalCurrent': '\\uF545',\n 'RenewalFuture': '\\uF546',\n 'SplitObject': '\\uF547',\n 'BulkUpload': '\\uF548',\n 'DownloadDocument': '\\uF549',\n 'GreetingCard': '\\uF54B',\n 'Flower': '\\uF54E',\n 'WaitlistConfirm': '\\uF550',\n 'WaitlistConfirmMirrored': '\\uF551',\n 'LaptopSecure': '\\uF552',\n 'DragObject': '\\uF553',\n 'EntryView': '\\uF554',\n 'EntryDecline': '\\uF555',\n 'ContactCardSettings': '\\uF556',\n 'ContactCardSettingsMirrored': '\\uF557'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-8\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-8-6fdf1528.woff') format('woff')\"\n },\n icons: {\n 'CollapseMenu': '\\uEF66',\n 'ExpandMenu': '\\uEF67',\n 'Boards': '\\uEF68',\n 'SunAdd': '\\uEF69',\n 'SunQuestionMark': '\\uEF6A',\n 'LandscapeOrientation': '\\uEF6B',\n 'DocumentSearch': '\\uEF6C',\n 'PublicCalendar': '\\uEF6D',\n 'PublicContactCard': '\\uEF6E',\n 'PublicEmail': '\\uEF6F',\n 'PublicFolder': '\\uEF70',\n 'WordDocument': '\\uEF71',\n 'PowerPointDocument': '\\uEF72',\n 'ExcelDocument': '\\uEF73',\n 'GroupedList': '\\uEF74',\n 'ClassroomLogo': '\\uEF75',\n 'Sections': '\\uEF76',\n 'EditPhoto': '\\uEF77',\n 'Starburst': '\\uEF78',\n 'ShareiOS': '\\uEF79',\n 'AirTickets': '\\uEF7A',\n 'PencilReply': '\\uEF7B',\n 'Tiles2': '\\uEF7C',\n 'SkypeCircleCheck': '\\uEF7D',\n 'SkypeCircleClock': '\\uEF7E',\n 'SkypeCircleMinus': '\\uEF7F',\n 'SkypeMessage': '\\uEF83',\n 'ClosedCaption': '\\uEF84',\n 'ATPLogo': '\\uEF85',\n 'OfficeFormsLogoInverse': '\\uEF86',\n 'RecycleBin': '\\uEF87',\n 'EmptyRecycleBin': '\\uEF88',\n 'Hide2': '\\uEF89',\n 'Breadcrumb': '\\uEF8C',\n 'BirthdayCake': '\\uEF8D',\n 'TimeEntry': '\\uEF95',\n 'CRMProcesses': '\\uEFB1',\n 'PageEdit': '\\uEFB6',\n 'PageArrowRight': '\\uEFB8',\n 'PageRemove': '\\uEFBA',\n 'Database': '\\uEFC7',\n 'DataManagementSettings': '\\uEFC8',\n 'CRMServices': '\\uEFD2',\n 'EditContact': '\\uEFD3',\n 'ConnectContacts': '\\uEFD4',\n 'AppIconDefaultAdd': '\\uEFDA',\n 'AppIconDefaultList': '\\uEFDE',\n 'ActivateOrders': '\\uEFE0',\n 'DeactivateOrders': '\\uEFE1',\n 'ProductCatalog': '\\uEFE8',\n 'ScatterChart': '\\uEFEB',\n 'AccountActivity': '\\uEFF4',\n 'DocumentManagement': '\\uEFFC',\n 'CRMReport': '\\uEFFE',\n 'KnowledgeArticle': '\\uF000',\n 'Relationship': '\\uF003',\n 'HomeVerify': '\\uF00E',\n 'ZipFolder': '\\uF012',\n 'SurveyQuestions': '\\uF01B',\n 'TextDocument': '\\uF029',\n 'TextDocumentShared': '\\uF02B',\n 'PageCheckedOut': '\\uF02C',\n 'PageShared': '\\uF02D',\n 'SaveAndClose': '\\uF038',\n 'Script': '\\uF03A',\n 'Archive': '\\uF03F',\n 'ActivityFeed': '\\uF056',\n 'Compare': '\\uF057',\n 'EventDate': '\\uF059',\n 'ArrowUpRight': '\\uF069',\n 'CaretRight': '\\uF06B',\n 'SetAction': '\\uF071',\n 'ChatBot': '\\uF08B',\n 'CaretSolidLeft': '\\uF08D',\n 'CaretSolidDown': '\\uF08E',\n 'CaretSolidRight': '\\uF08F',\n 'CaretSolidUp': '\\uF090',\n 'PowerAppsLogo': '\\uF091',\n 'PowerApps2Logo': '\\uF092',\n 'SearchIssue': '\\uF09A',\n 'SearchIssueMirrored': '\\uF09B',\n 'FabricAssetLibrary': '\\uF09C',\n 'FabricDataConnectionLibrary': '\\uF09D',\n 'FabricDocLibrary': '\\uF09E',\n 'FabricFormLibrary': '\\uF09F',\n 'FabricFormLibraryMirrored': '\\uF0A0',\n 'FabricReportLibrary': '\\uF0A1',\n 'FabricReportLibraryMirrored': '\\uF0A2',\n 'FabricPublicFolder': '\\uF0A3',\n 'FabricFolderSearch': '\\uF0A4',\n 'FabricMovetoFolder': '\\uF0A5',\n 'FabricUnsyncFolder': '\\uF0A6',\n 'FabricSyncFolder': '\\uF0A7',\n 'FabricOpenFolderHorizontal': '\\uF0A8',\n 'FabricFolder': '\\uF0A9',\n 'FabricFolderFill': '\\uF0AA',\n 'FabricNewFolder': '\\uF0AB',\n 'FabricPictureLibrary': '\\uF0AC',\n 'PhotoVideoMedia': '\\uF0B1',\n 'AddFavorite': '\\uF0C8'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-8\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-8-6fdf1528.woff') format('woff')\"\n },\n icons: {\n 'CollapseMenu': '\\uEF66',\n 'ExpandMenu': '\\uEF67',\n 'Boards': '\\uEF68',\n 'SunAdd': '\\uEF69',\n 'SunQuestionMark': '\\uEF6A',\n 'LandscapeOrientation': '\\uEF6B',\n 'DocumentSearch': '\\uEF6C',\n 'PublicCalendar': '\\uEF6D',\n 'PublicContactCard': '\\uEF6E',\n 'PublicEmail': '\\uEF6F',\n 'PublicFolder': '\\uEF70',\n 'WordDocument': '\\uEF71',\n 'PowerPointDocument': '\\uEF72',\n 'ExcelDocument': '\\uEF73',\n 'GroupedList': '\\uEF74',\n 'ClassroomLogo': '\\uEF75',\n 'Sections': '\\uEF76',\n 'EditPhoto': '\\uEF77',\n 'Starburst': '\\uEF78',\n 'ShareiOS': '\\uEF79',\n 'AirTickets': '\\uEF7A',\n 'PencilReply': '\\uEF7B',\n 'Tiles2': '\\uEF7C',\n 'SkypeCircleCheck': '\\uEF7D',\n 'SkypeCircleClock': '\\uEF7E',\n 'SkypeCircleMinus': '\\uEF7F',\n 'SkypeMessage': '\\uEF83',\n 'ClosedCaption': '\\uEF84',\n 'ATPLogo': '\\uEF85',\n 'OfficeFormsLogoInverse': '\\uEF86',\n 'RecycleBin': '\\uEF87',\n 'EmptyRecycleBin': '\\uEF88',\n 'Hide2': '\\uEF89',\n 'Breadcrumb': '\\uEF8C',\n 'BirthdayCake': '\\uEF8D',\n 'TimeEntry': '\\uEF95',\n 'CRMProcesses': '\\uEFB1',\n 'PageEdit': '\\uEFB6',\n 'PageArrowRight': '\\uEFB8',\n 'PageRemove': '\\uEFBA',\n 'Database': '\\uEFC7',\n 'DataManagementSettings': '\\uEFC8',\n 'CRMServices': '\\uEFD2',\n 'EditContact': '\\uEFD3',\n 'ConnectContacts': '\\uEFD4',\n 'AppIconDefaultAdd': '\\uEFDA',\n 'AppIconDefaultList': '\\uEFDE',\n 'ActivateOrders': '\\uEFE0',\n 'DeactivateOrders': '\\uEFE1',\n 'ProductCatalog': '\\uEFE8',\n 'ScatterChart': '\\uEFEB',\n 'AccountActivity': '\\uEFF4',\n 'DocumentManagement': '\\uEFFC',\n 'CRMReport': '\\uEFFE',\n 'KnowledgeArticle': '\\uF000',\n 'Relationship': '\\uF003',\n 'HomeVerify': '\\uF00E',\n 'ZipFolder': '\\uF012',\n 'SurveyQuestions': '\\uF01B',\n 'TextDocument': '\\uF029',\n 'TextDocumentShared': '\\uF02B',\n 'PageCheckedOut': '\\uF02C',\n 'PageShared': '\\uF02D',\n 'SaveAndClose': '\\uF038',\n 'Script': '\\uF03A',\n 'Archive': '\\uF03F',\n 'ActivityFeed': '\\uF056',\n 'Compare': '\\uF057',\n 'EventDate': '\\uF059',\n 'ArrowUpRight': '\\uF069',\n 'CaretRight': '\\uF06B',\n 'SetAction': '\\uF071',\n 'ChatBot': '\\uF08B',\n 'CaretSolidLeft': '\\uF08D',\n 'CaretSolidDown': '\\uF08E',\n 'CaretSolidRight': '\\uF08F',\n 'CaretSolidUp': '\\uF090',\n 'PowerAppsLogo': '\\uF091',\n 'PowerApps2Logo': '\\uF092',\n 'SearchIssue': '\\uF09A',\n 'SearchIssueMirrored': '\\uF09B',\n 'FabricAssetLibrary': '\\uF09C',\n 'FabricDataConnectionLibrary': '\\uF09D',\n 'FabricDocLibrary': '\\uF09E',\n 'FabricFormLibrary': '\\uF09F',\n 'FabricFormLibraryMirrored': '\\uF0A0',\n 'FabricReportLibrary': '\\uF0A1',\n 'FabricReportLibraryMirrored': '\\uF0A2',\n 'FabricPublicFolder': '\\uF0A3',\n 'FabricFolderSearch': '\\uF0A4',\n 'FabricMovetoFolder': '\\uF0A5',\n 'FabricUnsyncFolder': '\\uF0A6',\n 'FabricSyncFolder': '\\uF0A7',\n 'FabricOpenFolderHorizontal': '\\uF0A8',\n 'FabricFolder': '\\uF0A9',\n 'FabricFolderFill': '\\uF0AA',\n 'FabricNewFolder': '\\uF0AB',\n 'FabricPictureLibrary': '\\uF0AC',\n 'PhotoVideoMedia': '\\uF0B1',\n 'AddFavorite': '\\uF0C8'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none',\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-a13498cf.woff') format('woff')\",\n },\n icons: {\n GlobalNavButton: '\\uE700',\n ChevronDown: '\\uE70D',\n ChevronUp: '\\uE70E',\n Edit: '\\uE70F',\n Add: '\\uE710',\n Cancel: '\\uE711',\n More: '\\uE712',\n Settings: '\\uE713',\n Mail: '\\uE715',\n Filter: '\\uE71C',\n Search: '\\uE721',\n Share: '\\uE72D',\n BlockedSite: '\\uE72F',\n FavoriteStar: '\\uE734',\n FavoriteStarFill: '\\uE735',\n CheckMark: '\\uE73E',\n Delete: '\\uE74D',\n ChevronLeft: '\\uE76B',\n ChevronRight: '\\uE76C',\n Calendar: '\\uE787',\n Megaphone: '\\uE789',\n Undo: '\\uE7A7',\n Flag: '\\uE7C1',\n Page: '\\uE7C3',\n Pinned: '\\uE840',\n View: '\\uE890',\n Clear: '\\uE894',\n Download: '\\uE896',\n Upload: '\\uE898',\n Folder: '\\uE8B7',\n Sort: '\\uE8CB',\n AlignRight: '\\uE8E2',\n AlignLeft: '\\uE8E4',\n Tag: '\\uE8EC',\n AddFriend: '\\uE8FA',\n Info: '\\uE946',\n SortLines: '\\uE9D0',\n List: '\\uEA37',\n CircleRing: '\\uEA3A',\n Heart: '\\uEB51',\n HeartFill: '\\uEB52',\n Tiles: '\\uECA5',\n Embed: '\\uECCE',\n Glimmer: '\\uECF4',\n Ascending: '\\uEDC0',\n Descending: '\\uEDC1',\n SortUp: '\\uEE68',\n SortDown: '\\uEE69',\n SyncToPC: '\\uEE6E',\n LargeGrid: '\\uEECB',\n SkypeCheck: '\\uEF80',\n SkypeClock: '\\uEF81',\n SkypeMinus: '\\uEF82',\n ClearFilter: '\\uEF8F',\n Flow: '\\uEF90',\n StatusCircleCheckmark: '\\uF13E',\n MoreVertical: '\\uF2BC',\n },\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none',\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-a13498cf.woff') format('woff')\",\n },\n icons: {\n GlobalNavButton: '\\uE700',\n ChevronDown: '\\uE70D',\n ChevronUp: '\\uE70E',\n Edit: '\\uE70F',\n Add: '\\uE710',\n Cancel: '\\uE711',\n More: '\\uE712',\n Settings: '\\uE713',\n Mail: '\\uE715',\n Filter: '\\uE71C',\n Search: '\\uE721',\n Share: '\\uE72D',\n BlockedSite: '\\uE72F',\n FavoriteStar: '\\uE734',\n FavoriteStarFill: '\\uE735',\n CheckMark: '\\uE73E',\n Delete: '\\uE74D',\n ChevronLeft: '\\uE76B',\n ChevronRight: '\\uE76C',\n Calendar: '\\uE787',\n Megaphone: '\\uE789',\n Undo: '\\uE7A7',\n Flag: '\\uE7C1',\n Page: '\\uE7C3',\n Pinned: '\\uE840',\n View: '\\uE890',\n Clear: '\\uE894',\n Download: '\\uE896',\n Upload: '\\uE898',\n Folder: '\\uE8B7',\n Sort: '\\uE8CB',\n AlignRight: '\\uE8E2',\n AlignLeft: '\\uE8E4',\n Tag: '\\uE8EC',\n AddFriend: '\\uE8FA',\n Info: '\\uE946',\n SortLines: '\\uE9D0',\n List: '\\uEA37',\n CircleRing: '\\uEA3A',\n Heart: '\\uEB51',\n HeartFill: '\\uEB52',\n Tiles: '\\uECA5',\n Embed: '\\uECCE',\n Glimmer: '\\uECF4',\n Ascending: '\\uEDC0',\n Descending: '\\uEDC1',\n SortUp: '\\uEE68',\n SortDown: '\\uEE69',\n SyncToPC: '\\uEE6E',\n LargeGrid: '\\uEECB',\n SkypeCheck: '\\uEF80',\n SkypeClock: '\\uEF81',\n SkypeMinus: '\\uEF82',\n ClearFilter: '\\uEF8F',\n Flow: '\\uEF90',\n StatusCircleCheckmark: '\\uF13E',\n MoreVertical: '\\uF2BC',\n },\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-10\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-10-c4ded8e4.woff') format('woff')\"\n },\n icons: {\n 'ViewListGroup': '\\uF248',\n 'ViewListTree': '\\uF249',\n 'TriggerAuto': '\\uF24A',\n 'TriggerUser': '\\uF24B',\n 'PivotChart': '\\uF24C',\n 'StackedBarChart': '\\uF24D',\n 'StackedLineChart': '\\uF24E',\n 'BuildQueue': '\\uF24F',\n 'BuildQueueNew': '\\uF250',\n 'UserFollowed': '\\uF25C',\n 'ContactLink': '\\uF25F',\n 'Stack': '\\uF26F',\n 'Bullseye': '\\uF272',\n 'VennDiagram': '\\uF273',\n 'FiveTileGrid': '\\uF274',\n 'FocalPoint': '\\uF277',\n 'Insert': '\\uF278',\n 'RingerRemove': '\\uF279',\n 'TeamsLogoInverse': '\\uF27A',\n 'TeamsLogo': '\\uF27B',\n 'TeamsLogoFill': '\\uF27C',\n 'SkypeForBusinessLogoFill': '\\uF27D',\n 'SharepointLogo': '\\uF27E',\n 'SharepointLogoFill': '\\uF27F',\n 'DelveLogo': '\\uF280',\n 'DelveLogoFill': '\\uF281',\n 'OfficeVideoLogo': '\\uF282',\n 'OfficeVideoLogoFill': '\\uF283',\n 'ExchangeLogo': '\\uF284',\n 'ExchangeLogoFill': '\\uF285',\n 'Signin': '\\uF286',\n 'DocumentApproval': '\\uF28B',\n 'CloneToDesktop': '\\uF28C',\n 'InstallToDrive': '\\uF28D',\n 'Blur': '\\uF28E',\n 'Build': '\\uF28F',\n 'ProcessMetaTask': '\\uF290',\n 'BranchFork2': '\\uF291',\n 'BranchLocked': '\\uF292',\n 'BranchCommit': '\\uF293',\n 'BranchCompare': '\\uF294',\n 'BranchMerge': '\\uF295',\n 'BranchPullRequest': '\\uF296',\n 'BranchSearch': '\\uF297',\n 'BranchShelveset': '\\uF298',\n 'RawSource': '\\uF299',\n 'MergeDuplicate': '\\uF29A',\n 'RowsGroup': '\\uF29B',\n 'RowsChild': '\\uF29C',\n 'Deploy': '\\uF29D',\n 'Redeploy': '\\uF29E',\n 'ServerEnviroment': '\\uF29F',\n 'VisioDiagram': '\\uF2A0',\n 'HighlightMappedShapes': '\\uF2A1',\n 'TextCallout': '\\uF2A2',\n 'IconSetsFlag': '\\uF2A4',\n 'VisioLogo': '\\uF2A7',\n 'VisioLogoFill': '\\uF2A8',\n 'VisioDocument': '\\uF2A9',\n 'TimelineProgress': '\\uF2AA',\n 'TimelineDelivery': '\\uF2AB',\n 'Backlog': '\\uF2AC',\n 'TeamFavorite': '\\uF2AD',\n 'TaskGroup': '\\uF2AE',\n 'TaskGroupMirrored': '\\uF2AF',\n 'ScopeTemplate': '\\uF2B0',\n 'AssessmentGroupTemplate': '\\uF2B1',\n 'NewTeamProject': '\\uF2B2',\n 'CommentAdd': '\\uF2B3',\n 'CommentNext': '\\uF2B4',\n 'CommentPrevious': '\\uF2B5',\n 'ShopServer': '\\uF2B6',\n 'LocaleLanguage': '\\uF2B7',\n 'QueryList': '\\uF2B8',\n 'UserSync': '\\uF2B9',\n 'UserPause': '\\uF2BA',\n 'StreamingOff': '\\uF2BB',\n 'ArrowTallUpLeft': '\\uF2BD',\n 'ArrowTallUpRight': '\\uF2BE',\n 'ArrowTallDownLeft': '\\uF2BF',\n 'ArrowTallDownRight': '\\uF2C0',\n 'FieldEmpty': '\\uF2C1',\n 'FieldFilled': '\\uF2C2',\n 'FieldChanged': '\\uF2C3',\n 'FieldNotChanged': '\\uF2C4',\n 'RingerOff': '\\uF2C5',\n 'PlayResume': '\\uF2C6',\n 'BulletedList2': '\\uF2C7',\n 'BulletedList2Mirrored': '\\uF2C8',\n 'ImageCrosshair': '\\uF2C9',\n 'GitGraph': '\\uF2CA',\n 'Repo': '\\uF2CB',\n 'RepoSolid': '\\uF2CC',\n 'FolderQuery': '\\uF2CD',\n 'FolderList': '\\uF2CE',\n 'FolderListMirrored': '\\uF2CF',\n 'LocationOutline': '\\uF2D0',\n 'POISolid': '\\uF2D1',\n 'CalculatorNotEqualTo': '\\uF2D2',\n 'BoxSubtractSolid': '\\uF2D3'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-10\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-10-c4ded8e4.woff') format('woff')\"\n },\n icons: {\n 'ViewListGroup': '\\uF248',\n 'ViewListTree': '\\uF249',\n 'TriggerAuto': '\\uF24A',\n 'TriggerUser': '\\uF24B',\n 'PivotChart': '\\uF24C',\n 'StackedBarChart': '\\uF24D',\n 'StackedLineChart': '\\uF24E',\n 'BuildQueue': '\\uF24F',\n 'BuildQueueNew': '\\uF250',\n 'UserFollowed': '\\uF25C',\n 'ContactLink': '\\uF25F',\n 'Stack': '\\uF26F',\n 'Bullseye': '\\uF272',\n 'VennDiagram': '\\uF273',\n 'FiveTileGrid': '\\uF274',\n 'FocalPoint': '\\uF277',\n 'Insert': '\\uF278',\n 'RingerRemove': '\\uF279',\n 'TeamsLogoInverse': '\\uF27A',\n 'TeamsLogo': '\\uF27B',\n 'TeamsLogoFill': '\\uF27C',\n 'SkypeForBusinessLogoFill': '\\uF27D',\n 'SharepointLogo': '\\uF27E',\n 'SharepointLogoFill': '\\uF27F',\n 'DelveLogo': '\\uF280',\n 'DelveLogoFill': '\\uF281',\n 'OfficeVideoLogo': '\\uF282',\n 'OfficeVideoLogoFill': '\\uF283',\n 'ExchangeLogo': '\\uF284',\n 'ExchangeLogoFill': '\\uF285',\n 'Signin': '\\uF286',\n 'DocumentApproval': '\\uF28B',\n 'CloneToDesktop': '\\uF28C',\n 'InstallToDrive': '\\uF28D',\n 'Blur': '\\uF28E',\n 'Build': '\\uF28F',\n 'ProcessMetaTask': '\\uF290',\n 'BranchFork2': '\\uF291',\n 'BranchLocked': '\\uF292',\n 'BranchCommit': '\\uF293',\n 'BranchCompare': '\\uF294',\n 'BranchMerge': '\\uF295',\n 'BranchPullRequest': '\\uF296',\n 'BranchSearch': '\\uF297',\n 'BranchShelveset': '\\uF298',\n 'RawSource': '\\uF299',\n 'MergeDuplicate': '\\uF29A',\n 'RowsGroup': '\\uF29B',\n 'RowsChild': '\\uF29C',\n 'Deploy': '\\uF29D',\n 'Redeploy': '\\uF29E',\n 'ServerEnviroment': '\\uF29F',\n 'VisioDiagram': '\\uF2A0',\n 'HighlightMappedShapes': '\\uF2A1',\n 'TextCallout': '\\uF2A2',\n 'IconSetsFlag': '\\uF2A4',\n 'VisioLogo': '\\uF2A7',\n 'VisioLogoFill': '\\uF2A8',\n 'VisioDocument': '\\uF2A9',\n 'TimelineProgress': '\\uF2AA',\n 'TimelineDelivery': '\\uF2AB',\n 'Backlog': '\\uF2AC',\n 'TeamFavorite': '\\uF2AD',\n 'TaskGroup': '\\uF2AE',\n 'TaskGroupMirrored': '\\uF2AF',\n 'ScopeTemplate': '\\uF2B0',\n 'AssessmentGroupTemplate': '\\uF2B1',\n 'NewTeamProject': '\\uF2B2',\n 'CommentAdd': '\\uF2B3',\n 'CommentNext': '\\uF2B4',\n 'CommentPrevious': '\\uF2B5',\n 'ShopServer': '\\uF2B6',\n 'LocaleLanguage': '\\uF2B7',\n 'QueryList': '\\uF2B8',\n 'UserSync': '\\uF2B9',\n 'UserPause': '\\uF2BA',\n 'StreamingOff': '\\uF2BB',\n 'ArrowTallUpLeft': '\\uF2BD',\n 'ArrowTallUpRight': '\\uF2BE',\n 'ArrowTallDownLeft': '\\uF2BF',\n 'ArrowTallDownRight': '\\uF2C0',\n 'FieldEmpty': '\\uF2C1',\n 'FieldFilled': '\\uF2C2',\n 'FieldChanged': '\\uF2C3',\n 'FieldNotChanged': '\\uF2C4',\n 'RingerOff': '\\uF2C5',\n 'PlayResume': '\\uF2C6',\n 'BulletedList2': '\\uF2C7',\n 'BulletedList2Mirrored': '\\uF2C8',\n 'ImageCrosshair': '\\uF2C9',\n 'GitGraph': '\\uF2CA',\n 'Repo': '\\uF2CB',\n 'RepoSolid': '\\uF2CC',\n 'FolderQuery': '\\uF2CD',\n 'FolderList': '\\uF2CE',\n 'FolderListMirrored': '\\uF2CF',\n 'LocationOutline': '\\uF2D0',\n 'POISolid': '\\uF2D1',\n 'CalculatorNotEqualTo': '\\uF2D2',\n 'BoxSubtractSolid': '\\uF2D3'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-7\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-7-2b97bb99.woff') format('woff')\"\n },\n icons: {\n 'SingleBookmark': '\\uEDFF',\n 'SingleBookmarkSolid': '\\uEE00',\n 'DoubleChevronDown': '\\uEE04',\n 'FollowUser': '\\uEE05',\n 'ReplyAll': '\\uEE0A',\n 'WorkforceManagement': '\\uEE0F',\n 'RecruitmentManagement': '\\uEE12',\n 'Questionnaire': '\\uEE19',\n 'ManagerSelfService': '\\uEE23',\n 'ProductionFloorManagement': '\\uEE29',\n 'ProductRelease': '\\uEE2E',\n 'ProductVariant': '\\uEE30',\n 'ReplyMirrored': '\\uEE35',\n 'ReplyAllMirrored': '\\uEE36',\n 'Medal': '\\uEE38',\n 'AddGroup': '\\uEE3D',\n 'QuestionnaireMirrored': '\\uEE4B',\n 'CloudImportExport': '\\uEE55',\n 'TemporaryUser': '\\uEE58',\n 'CaretSolid16': '\\uEE62',\n 'GroupedDescending': '\\uEE66',\n 'GroupedAscending': '\\uEE67',\n 'AwayStatus': '\\uEE6A',\n 'MyMoviesTV': '\\uEE6C',\n 'GenericScan': '\\uEE6F',\n 'AustralianRules': '\\uEE70',\n 'WifiEthernet': '\\uEE77',\n 'TrackersMirrored': '\\uEE92',\n 'DateTimeMirrored': '\\uEE93',\n 'StopSolid': '\\uEE95',\n 'DoubleChevronUp12': '\\uEE96',\n 'DoubleChevronDown12': '\\uEE97',\n 'DoubleChevronLeft12': '\\uEE98',\n 'DoubleChevronRight12': '\\uEE99',\n 'CalendarAgenda': '\\uEE9A',\n 'ConnectVirtualMachine': '\\uEE9D',\n 'AddEvent': '\\uEEB5',\n 'AssetLibrary': '\\uEEB6',\n 'DataConnectionLibrary': '\\uEEB7',\n 'DocLibrary': '\\uEEB8',\n 'FormLibrary': '\\uEEB9',\n 'FormLibraryMirrored': '\\uEEBA',\n 'ReportLibrary': '\\uEEBB',\n 'ReportLibraryMirrored': '\\uEEBC',\n 'ContactCard': '\\uEEBD',\n 'CustomList': '\\uEEBE',\n 'CustomListMirrored': '\\uEEBF',\n 'IssueTracking': '\\uEEC0',\n 'IssueTrackingMirrored': '\\uEEC1',\n 'PictureLibrary': '\\uEEC2',\n 'OfficeAddinsLogo': '\\uEEC7',\n 'OfflineOneDriveParachute': '\\uEEC8',\n 'OfflineOneDriveParachuteDisabled': '\\uEEC9',\n 'TriangleSolidUp12': '\\uEECC',\n 'TriangleSolidDown12': '\\uEECD',\n 'TriangleSolidLeft12': '\\uEECE',\n 'TriangleSolidRight12': '\\uEECF',\n 'TriangleUp12': '\\uEED0',\n 'TriangleDown12': '\\uEED1',\n 'TriangleLeft12': '\\uEED2',\n 'TriangleRight12': '\\uEED3',\n 'ArrowUpRight8': '\\uEED4',\n 'ArrowDownRight8': '\\uEED5',\n 'DocumentSet': '\\uEED6',\n 'GoToDashboard': '\\uEEED',\n 'DelveAnalytics': '\\uEEEE',\n 'ArrowUpRightMirrored8': '\\uEEEF',\n 'ArrowDownRightMirrored8': '\\uEEF0',\n 'CompanyDirectory': '\\uEF0D',\n 'OpenEnrollment': '\\uEF1C',\n 'CompanyDirectoryMirrored': '\\uEF2B',\n 'OneDriveAdd': '\\uEF32',\n 'ProfileSearch': '\\uEF35',\n 'Header2': '\\uEF36',\n 'Header3': '\\uEF37',\n 'Header4': '\\uEF38',\n 'RingerSolid': '\\uEF3A',\n 'Eyedropper': '\\uEF3C',\n 'MarketDown': '\\uEF42',\n 'CalendarWorkWeek': '\\uEF51',\n 'SidePanel': '\\uEF52',\n 'GlobeFavorite': '\\uEF53',\n 'CaretTopLeftSolid8': '\\uEF54',\n 'CaretTopRightSolid8': '\\uEF55',\n 'ViewAll2': '\\uEF56',\n 'DocumentReply': '\\uEF57',\n 'PlayerSettings': '\\uEF58',\n 'ReceiptForward': '\\uEF59',\n 'ReceiptReply': '\\uEF5A',\n 'ReceiptCheck': '\\uEF5B',\n 'Fax': '\\uEF5C',\n 'RecurringEvent': '\\uEF5D',\n 'ReplyAlt': '\\uEF5E',\n 'ReplyAllAlt': '\\uEF5F',\n 'EditStyle': '\\uEF60',\n 'EditMail': '\\uEF61',\n 'Lifesaver': '\\uEF62',\n 'LifesaverLock': '\\uEF63',\n 'InboxCheck': '\\uEF64',\n 'FolderSearch': '\\uEF65'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-7\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-7-2b97bb99.woff') format('woff')\"\n },\n icons: {\n 'SingleBookmark': '\\uEDFF',\n 'SingleBookmarkSolid': '\\uEE00',\n 'DoubleChevronDown': '\\uEE04',\n 'FollowUser': '\\uEE05',\n 'ReplyAll': '\\uEE0A',\n 'WorkforceManagement': '\\uEE0F',\n 'RecruitmentManagement': '\\uEE12',\n 'Questionnaire': '\\uEE19',\n 'ManagerSelfService': '\\uEE23',\n 'ProductionFloorManagement': '\\uEE29',\n 'ProductRelease': '\\uEE2E',\n 'ProductVariant': '\\uEE30',\n 'ReplyMirrored': '\\uEE35',\n 'ReplyAllMirrored': '\\uEE36',\n 'Medal': '\\uEE38',\n 'AddGroup': '\\uEE3D',\n 'QuestionnaireMirrored': '\\uEE4B',\n 'CloudImportExport': '\\uEE55',\n 'TemporaryUser': '\\uEE58',\n 'CaretSolid16': '\\uEE62',\n 'GroupedDescending': '\\uEE66',\n 'GroupedAscending': '\\uEE67',\n 'AwayStatus': '\\uEE6A',\n 'MyMoviesTV': '\\uEE6C',\n 'GenericScan': '\\uEE6F',\n 'AustralianRules': '\\uEE70',\n 'WifiEthernet': '\\uEE77',\n 'TrackersMirrored': '\\uEE92',\n 'DateTimeMirrored': '\\uEE93',\n 'StopSolid': '\\uEE95',\n 'DoubleChevronUp12': '\\uEE96',\n 'DoubleChevronDown12': '\\uEE97',\n 'DoubleChevronLeft12': '\\uEE98',\n 'DoubleChevronRight12': '\\uEE99',\n 'CalendarAgenda': '\\uEE9A',\n 'ConnectVirtualMachine': '\\uEE9D',\n 'AddEvent': '\\uEEB5',\n 'AssetLibrary': '\\uEEB6',\n 'DataConnectionLibrary': '\\uEEB7',\n 'DocLibrary': '\\uEEB8',\n 'FormLibrary': '\\uEEB9',\n 'FormLibraryMirrored': '\\uEEBA',\n 'ReportLibrary': '\\uEEBB',\n 'ReportLibraryMirrored': '\\uEEBC',\n 'ContactCard': '\\uEEBD',\n 'CustomList': '\\uEEBE',\n 'CustomListMirrored': '\\uEEBF',\n 'IssueTracking': '\\uEEC0',\n 'IssueTrackingMirrored': '\\uEEC1',\n 'PictureLibrary': '\\uEEC2',\n 'OfficeAddinsLogo': '\\uEEC7',\n 'OfflineOneDriveParachute': '\\uEEC8',\n 'OfflineOneDriveParachuteDisabled': '\\uEEC9',\n 'TriangleSolidUp12': '\\uEECC',\n 'TriangleSolidDown12': '\\uEECD',\n 'TriangleSolidLeft12': '\\uEECE',\n 'TriangleSolidRight12': '\\uEECF',\n 'TriangleUp12': '\\uEED0',\n 'TriangleDown12': '\\uEED1',\n 'TriangleLeft12': '\\uEED2',\n 'TriangleRight12': '\\uEED3',\n 'ArrowUpRight8': '\\uEED4',\n 'ArrowDownRight8': '\\uEED5',\n 'DocumentSet': '\\uEED6',\n 'GoToDashboard': '\\uEEED',\n 'DelveAnalytics': '\\uEEEE',\n 'ArrowUpRightMirrored8': '\\uEEEF',\n 'ArrowDownRightMirrored8': '\\uEEF0',\n 'CompanyDirectory': '\\uEF0D',\n 'OpenEnrollment': '\\uEF1C',\n 'CompanyDirectoryMirrored': '\\uEF2B',\n 'OneDriveAdd': '\\uEF32',\n 'ProfileSearch': '\\uEF35',\n 'Header2': '\\uEF36',\n 'Header3': '\\uEF37',\n 'Header4': '\\uEF38',\n 'RingerSolid': '\\uEF3A',\n 'Eyedropper': '\\uEF3C',\n 'MarketDown': '\\uEF42',\n 'CalendarWorkWeek': '\\uEF51',\n 'SidePanel': '\\uEF52',\n 'GlobeFavorite': '\\uEF53',\n 'CaretTopLeftSolid8': '\\uEF54',\n 'CaretTopRightSolid8': '\\uEF55',\n 'ViewAll2': '\\uEF56',\n 'DocumentReply': '\\uEF57',\n 'PlayerSettings': '\\uEF58',\n 'ReceiptForward': '\\uEF59',\n 'ReceiptReply': '\\uEF5A',\n 'ReceiptCheck': '\\uEF5B',\n 'Fax': '\\uEF5C',\n 'RecurringEvent': '\\uEF5D',\n 'ReplyAlt': '\\uEF5E',\n 'ReplyAllAlt': '\\uEF5F',\n 'EditStyle': '\\uEF60',\n 'EditMail': '\\uEF61',\n 'Lifesaver': '\\uEF62',\n 'LifesaverLock': '\\uEF63',\n 'InboxCheck': '\\uEF64',\n 'FolderSearch': '\\uEF65'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-17\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-17-0c4ed701.woff') format('woff')\"\n },\n icons: {\n 'CustomizeToolbar': '\\uF828',\n 'DuplicateRow': '\\uF82A',\n 'RemoveFromTrash': '\\uF82B',\n 'MailOptions': '\\uF82C',\n 'Childof': '\\uF82D',\n 'Footer': '\\uF82E',\n 'Header': '\\uF82F',\n 'BarChartVerticalFill': '\\uF830',\n 'StackedColumnChart2Fill': '\\uF831',\n 'PlainText': '\\uF834',\n 'AccessibiltyChecker': '\\uF835',\n 'DatabaseSync': '\\uF842',\n 'ReservationOrders': '\\uF845',\n 'TabOneColumn': '\\uF849',\n 'TabTwoColumn': '\\uF84A',\n 'TabThreeColumn': '\\uF84B',\n 'BulletedTreeList': '\\uF84C',\n 'MicrosoftTranslatorLogoGreen': '\\uF852',\n 'MicrosoftTranslatorLogoBlue': '\\uF853',\n 'InternalInvestigation': '\\uF854',\n 'AddReaction': '\\uF85D',\n 'ContactHeart': '\\uF862',\n 'VisuallyImpaired': '\\uF866',\n 'EventToDoLogo': '\\uF869',\n 'Variable2': '\\uF86D',\n 'ModelingView': '\\uF871',\n 'DisconnectVirtualMachine': '\\uF873',\n 'ReportLock': '\\uF875',\n 'Uneditable2': '\\uF876',\n 'Uneditable2Mirrored': '\\uF877',\n 'BarChartVerticalEdit': '\\uF89D',\n 'GlobalNavButtonActive': '\\uF89F',\n 'PollResults': '\\uF8A0',\n 'Rerun': '\\uF8A1',\n 'QandA': '\\uF8A2',\n 'QandAMirror': '\\uF8A3',\n 'BookAnswers': '\\uF8A4',\n 'AlertSettings': '\\uF8B6',\n 'TrimStart': '\\uF8BB',\n 'TrimEnd': '\\uF8BC',\n 'TableComputed': '\\uF8F5',\n 'DecreaseIndentLegacy': '\\uE290',\n 'IncreaseIndentLegacy': '\\uE291',\n 'SizeLegacy': '\\uE2B2'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-17\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-17-0c4ed701.woff') format('woff')\"\n },\n icons: {\n 'CustomizeToolbar': '\\uF828',\n 'DuplicateRow': '\\uF82A',\n 'RemoveFromTrash': '\\uF82B',\n 'MailOptions': '\\uF82C',\n 'Childof': '\\uF82D',\n 'Footer': '\\uF82E',\n 'Header': '\\uF82F',\n 'BarChartVerticalFill': '\\uF830',\n 'StackedColumnChart2Fill': '\\uF831',\n 'PlainText': '\\uF834',\n 'AccessibiltyChecker': '\\uF835',\n 'DatabaseSync': '\\uF842',\n 'ReservationOrders': '\\uF845',\n 'TabOneColumn': '\\uF849',\n 'TabTwoColumn': '\\uF84A',\n 'TabThreeColumn': '\\uF84B',\n 'BulletedTreeList': '\\uF84C',\n 'MicrosoftTranslatorLogoGreen': '\\uF852',\n 'MicrosoftTranslatorLogoBlue': '\\uF853',\n 'InternalInvestigation': '\\uF854',\n 'AddReaction': '\\uF85D',\n 'ContactHeart': '\\uF862',\n 'VisuallyImpaired': '\\uF866',\n 'EventToDoLogo': '\\uF869',\n 'Variable2': '\\uF86D',\n 'ModelingView': '\\uF871',\n 'DisconnectVirtualMachine': '\\uF873',\n 'ReportLock': '\\uF875',\n 'Uneditable2': '\\uF876',\n 'Uneditable2Mirrored': '\\uF877',\n 'BarChartVerticalEdit': '\\uF89D',\n 'GlobalNavButtonActive': '\\uF89F',\n 'PollResults': '\\uF8A0',\n 'Rerun': '\\uF8A1',\n 'QandA': '\\uF8A2',\n 'QandAMirror': '\\uF8A3',\n 'BookAnswers': '\\uF8A4',\n 'AlertSettings': '\\uF8B6',\n 'TrimStart': '\\uF8BB',\n 'TrimEnd': '\\uF8BC',\n 'TableComputed': '\\uF8F5',\n 'DecreaseIndentLegacy': '\\uE290',\n 'IncreaseIndentLegacy': '\\uE291',\n 'SizeLegacy': '\\uE2B2'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-12\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-12-7e945a1e.woff') format('woff')\"\n },\n icons: {\n 'FinancialSolid': '\\uF346',\n 'FinancialMirroredSolid': '\\uF347',\n 'HeadsetSolid': '\\uF348',\n 'PermissionsSolid': '\\uF349',\n 'ParkingSolid': '\\uF34A',\n 'ParkingMirroredSolid': '\\uF34B',\n 'DiamondSolid': '\\uF34C',\n 'AsteriskSolid': '\\uF34D',\n 'OfflineStorageSolid': '\\uF34E',\n 'BankSolid': '\\uF34F',\n 'DecisionSolid': '\\uF350',\n 'Parachute': '\\uF351',\n 'ParachuteSolid': '\\uF352',\n 'FiltersSolid': '\\uF353',\n 'ColorSolid': '\\uF354',\n 'ReviewSolid': '\\uF355',\n 'ReviewRequestSolid': '\\uF356',\n 'ReviewRequestMirroredSolid': '\\uF357',\n 'ReviewResponseSolid': '\\uF358',\n 'FeedbackRequestSolid': '\\uF359',\n 'FeedbackRequestMirroredSolid': '\\uF35A',\n 'FeedbackResponseSolid': '\\uF35B',\n 'WorkItemBar': '\\uF35C',\n 'WorkItemBarSolid': '\\uF35D',\n 'Separator': '\\uF35E',\n 'NavigateExternalInline': '\\uF35F',\n 'PlanView': '\\uF360',\n 'TimelineMatrixView': '\\uF361',\n 'EngineeringGroup': '\\uF362',\n 'ProjectCollection': '\\uF363',\n 'CaretBottomRightCenter8': '\\uF364',\n 'CaretBottomLeftCenter8': '\\uF365',\n 'CaretTopRightCenter8': '\\uF366',\n 'CaretTopLeftCenter8': '\\uF367',\n 'DonutChart': '\\uF368',\n 'ChevronUnfold10': '\\uF369',\n 'ChevronFold10': '\\uF36A',\n 'DoubleChevronDown8': '\\uF36B',\n 'DoubleChevronUp8': '\\uF36C',\n 'DoubleChevronLeft8': '\\uF36D',\n 'DoubleChevronRight8': '\\uF36E',\n 'ChevronDownEnd6': '\\uF36F',\n 'ChevronUpEnd6': '\\uF370',\n 'ChevronLeftEnd6': '\\uF371',\n 'ChevronRightEnd6': '\\uF372',\n 'ContextMenu': '\\uF37C',\n 'AzureAPIManagement': '\\uF37F',\n 'AzureServiceEndpoint': '\\uF380',\n 'VSTSLogo': '\\uF381',\n 'VSTSAltLogo1': '\\uF382',\n 'VSTSAltLogo2': '\\uF383',\n 'FileTypeSolution': '\\uF387',\n 'WordLogoInverse16': '\\uF390',\n 'WordLogo16': '\\uF391',\n 'WordLogoFill16': '\\uF392',\n 'PowerPointLogoInverse16': '\\uF393',\n 'PowerPointLogo16': '\\uF394',\n 'PowerPointLogoFill16': '\\uF395',\n 'ExcelLogoInverse16': '\\uF396',\n 'ExcelLogo16': '\\uF397',\n 'ExcelLogoFill16': '\\uF398',\n 'OneNoteLogoInverse16': '\\uF399',\n 'OneNoteLogo16': '\\uF39A',\n 'OneNoteLogoFill16': '\\uF39B',\n 'OutlookLogoInverse16': '\\uF39C',\n 'OutlookLogo16': '\\uF39D',\n 'OutlookLogoFill16': '\\uF39E',\n 'PublisherLogoInverse16': '\\uF39F',\n 'PublisherLogo16': '\\uF3A0',\n 'PublisherLogoFill16': '\\uF3A1',\n 'VisioLogoInverse16': '\\uF3A2',\n 'VisioLogo16': '\\uF3A3',\n 'VisioLogoFill16': '\\uF3A4',\n 'TestBeaker': '\\uF3A5',\n 'TestBeakerSolid': '\\uF3A6',\n 'TestExploreSolid': '\\uF3A7',\n 'TestAutoSolid': '\\uF3A8',\n 'TestUserSolid': '\\uF3A9',\n 'TestImpactSolid': '\\uF3AA',\n 'TestPlan': '\\uF3AB',\n 'TestStep': '\\uF3AC',\n 'TestParameter': '\\uF3AD',\n 'TestSuite': '\\uF3AE',\n 'TestCase': '\\uF3AF',\n 'Sprint': '\\uF3B0',\n 'SignOut': '\\uF3B1',\n 'TriggerApproval': '\\uF3B2',\n 'Rocket': '\\uF3B3',\n 'AzureKeyVault': '\\uF3B4',\n 'Onboarding': '\\uF3BA',\n 'Transition': '\\uF3BC',\n 'LikeSolid': '\\uF3BF',\n 'DislikeSolid': '\\uF3C0',\n 'CRMCustomerInsightsApp': '\\uF3C8',\n 'EditCreate': '\\uF3C9',\n 'PlayReverseResume': '\\uF3E4',\n 'PlayReverse': '\\uF3E5',\n 'SearchData': '\\uF3F1',\n 'UnSetColor': '\\uF3F9',\n 'DeclineCall': '\\uF405'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-12\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-12-7e945a1e.woff') format('woff')\"\n },\n icons: {\n 'FinancialSolid': '\\uF346',\n 'FinancialMirroredSolid': '\\uF347',\n 'HeadsetSolid': '\\uF348',\n 'PermissionsSolid': '\\uF349',\n 'ParkingSolid': '\\uF34A',\n 'ParkingMirroredSolid': '\\uF34B',\n 'DiamondSolid': '\\uF34C',\n 'AsteriskSolid': '\\uF34D',\n 'OfflineStorageSolid': '\\uF34E',\n 'BankSolid': '\\uF34F',\n 'DecisionSolid': '\\uF350',\n 'Parachute': '\\uF351',\n 'ParachuteSolid': '\\uF352',\n 'FiltersSolid': '\\uF353',\n 'ColorSolid': '\\uF354',\n 'ReviewSolid': '\\uF355',\n 'ReviewRequestSolid': '\\uF356',\n 'ReviewRequestMirroredSolid': '\\uF357',\n 'ReviewResponseSolid': '\\uF358',\n 'FeedbackRequestSolid': '\\uF359',\n 'FeedbackRequestMirroredSolid': '\\uF35A',\n 'FeedbackResponseSolid': '\\uF35B',\n 'WorkItemBar': '\\uF35C',\n 'WorkItemBarSolid': '\\uF35D',\n 'Separator': '\\uF35E',\n 'NavigateExternalInline': '\\uF35F',\n 'PlanView': '\\uF360',\n 'TimelineMatrixView': '\\uF361',\n 'EngineeringGroup': '\\uF362',\n 'ProjectCollection': '\\uF363',\n 'CaretBottomRightCenter8': '\\uF364',\n 'CaretBottomLeftCenter8': '\\uF365',\n 'CaretTopRightCenter8': '\\uF366',\n 'CaretTopLeftCenter8': '\\uF367',\n 'DonutChart': '\\uF368',\n 'ChevronUnfold10': '\\uF369',\n 'ChevronFold10': '\\uF36A',\n 'DoubleChevronDown8': '\\uF36B',\n 'DoubleChevronUp8': '\\uF36C',\n 'DoubleChevronLeft8': '\\uF36D',\n 'DoubleChevronRight8': '\\uF36E',\n 'ChevronDownEnd6': '\\uF36F',\n 'ChevronUpEnd6': '\\uF370',\n 'ChevronLeftEnd6': '\\uF371',\n 'ChevronRightEnd6': '\\uF372',\n 'ContextMenu': '\\uF37C',\n 'AzureAPIManagement': '\\uF37F',\n 'AzureServiceEndpoint': '\\uF380',\n 'VSTSLogo': '\\uF381',\n 'VSTSAltLogo1': '\\uF382',\n 'VSTSAltLogo2': '\\uF383',\n 'FileTypeSolution': '\\uF387',\n 'WordLogoInverse16': '\\uF390',\n 'WordLogo16': '\\uF391',\n 'WordLogoFill16': '\\uF392',\n 'PowerPointLogoInverse16': '\\uF393',\n 'PowerPointLogo16': '\\uF394',\n 'PowerPointLogoFill16': '\\uF395',\n 'ExcelLogoInverse16': '\\uF396',\n 'ExcelLogo16': '\\uF397',\n 'ExcelLogoFill16': '\\uF398',\n 'OneNoteLogoInverse16': '\\uF399',\n 'OneNoteLogo16': '\\uF39A',\n 'OneNoteLogoFill16': '\\uF39B',\n 'OutlookLogoInverse16': '\\uF39C',\n 'OutlookLogo16': '\\uF39D',\n 'OutlookLogoFill16': '\\uF39E',\n 'PublisherLogoInverse16': '\\uF39F',\n 'PublisherLogo16': '\\uF3A0',\n 'PublisherLogoFill16': '\\uF3A1',\n 'VisioLogoInverse16': '\\uF3A2',\n 'VisioLogo16': '\\uF3A3',\n 'VisioLogoFill16': '\\uF3A4',\n 'TestBeaker': '\\uF3A5',\n 'TestBeakerSolid': '\\uF3A6',\n 'TestExploreSolid': '\\uF3A7',\n 'TestAutoSolid': '\\uF3A8',\n 'TestUserSolid': '\\uF3A9',\n 'TestImpactSolid': '\\uF3AA',\n 'TestPlan': '\\uF3AB',\n 'TestStep': '\\uF3AC',\n 'TestParameter': '\\uF3AD',\n 'TestSuite': '\\uF3AE',\n 'TestCase': '\\uF3AF',\n 'Sprint': '\\uF3B0',\n 'SignOut': '\\uF3B1',\n 'TriggerApproval': '\\uF3B2',\n 'Rocket': '\\uF3B3',\n 'AzureKeyVault': '\\uF3B4',\n 'Onboarding': '\\uF3BA',\n 'Transition': '\\uF3BC',\n 'LikeSolid': '\\uF3BF',\n 'DislikeSolid': '\\uF3C0',\n 'CRMCustomerInsightsApp': '\\uF3C8',\n 'EditCreate': '\\uF3C9',\n 'PlayReverseResume': '\\uF3E4',\n 'PlayReverse': '\\uF3E5',\n 'SearchData': '\\uF3F1',\n 'UnSetColor': '\\uF3F9',\n 'DeclineCall': '\\uF405'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-11\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-11-2a8393d6.woff') format('woff')\"\n },\n icons: {\n 'BoxAdditionSolid': '\\uF2D4',\n 'BoxMultiplySolid': '\\uF2D5',\n 'BoxPlaySolid': '\\uF2D6',\n 'BoxCheckmarkSolid': '\\uF2D7',\n 'CirclePauseSolid': '\\uF2D8',\n 'CirclePause': '\\uF2D9',\n 'MSNVideosSolid': '\\uF2DA',\n 'CircleStopSolid': '\\uF2DB',\n 'CircleStop': '\\uF2DC',\n 'NavigateBack': '\\uF2DD',\n 'NavigateBackMirrored': '\\uF2DE',\n 'NavigateForward': '\\uF2DF',\n 'NavigateForwardMirrored': '\\uF2E0',\n 'UnknownSolid': '\\uF2E1',\n 'UnknownMirroredSolid': '\\uF2E2',\n 'CircleAddition': '\\uF2E3',\n 'CircleAdditionSolid': '\\uF2E4',\n 'FilePDB': '\\uF2E5',\n 'FileTemplate': '\\uF2E6',\n 'FileSQL': '\\uF2E7',\n 'FileJAVA': '\\uF2E8',\n 'FileASPX': '\\uF2E9',\n 'FileCSS': '\\uF2EA',\n 'FileSass': '\\uF2EB',\n 'FileLess': '\\uF2EC',\n 'FileHTML': '\\uF2ED',\n 'JavaScriptLanguage': '\\uF2EE',\n 'CSharpLanguage': '\\uF2EF',\n 'CSharp': '\\uF2F0',\n 'VisualBasicLanguage': '\\uF2F1',\n 'VB': '\\uF2F2',\n 'CPlusPlusLanguage': '\\uF2F3',\n 'CPlusPlus': '\\uF2F4',\n 'FSharpLanguage': '\\uF2F5',\n 'FSharp': '\\uF2F6',\n 'TypeScriptLanguage': '\\uF2F7',\n 'PythonLanguage': '\\uF2F8',\n 'PY': '\\uF2F9',\n 'CoffeeScript': '\\uF2FA',\n 'MarkDownLanguage': '\\uF2FB',\n 'FullWidth': '\\uF2FE',\n 'FullWidthEdit': '\\uF2FF',\n 'Plug': '\\uF300',\n 'PlugSolid': '\\uF301',\n 'PlugConnected': '\\uF302',\n 'PlugDisconnected': '\\uF303',\n 'UnlockSolid': '\\uF304',\n 'Variable': '\\uF305',\n 'Parameter': '\\uF306',\n 'CommentUrgent': '\\uF307',\n 'Storyboard': '\\uF308',\n 'DiffInline': '\\uF309',\n 'DiffSideBySide': '\\uF30A',\n 'ImageDiff': '\\uF30B',\n 'ImagePixel': '\\uF30C',\n 'FileBug': '\\uF30D',\n 'FileCode': '\\uF30E',\n 'FileComment': '\\uF30F',\n 'BusinessHoursSign': '\\uF310',\n 'FileImage': '\\uF311',\n 'FileSymlink': '\\uF312',\n 'AutoFillTemplate': '\\uF313',\n 'WorkItem': '\\uF314',\n 'WorkItemBug': '\\uF315',\n 'LogRemove': '\\uF316',\n 'ColumnOptions': '\\uF317',\n 'Packages': '\\uF318',\n 'BuildIssue': '\\uF319',\n 'AssessmentGroup': '\\uF31A',\n 'VariableGroup': '\\uF31B',\n 'FullHistory': '\\uF31C',\n 'Wheelchair': '\\uF31F',\n 'SingleColumnEdit': '\\uF321',\n 'DoubleColumnEdit': '\\uF322',\n 'TripleColumnEdit': '\\uF323',\n 'ColumnLeftTwoThirdsEdit': '\\uF324',\n 'ColumnRightTwoThirdsEdit': '\\uF325',\n 'StreamLogo': '\\uF329',\n 'PassiveAuthentication': '\\uF32A',\n 'AlertSolid': '\\uF331',\n 'MegaphoneSolid': '\\uF332',\n 'TaskSolid': '\\uF333',\n 'ConfigurationSolid': '\\uF334',\n 'BugSolid': '\\uF335',\n 'CrownSolid': '\\uF336',\n 'Trophy2Solid': '\\uF337',\n 'QuickNoteSolid': '\\uF338',\n 'ConstructionConeSolid': '\\uF339',\n 'PageListSolid': '\\uF33A',\n 'PageListMirroredSolid': '\\uF33B',\n 'StarburstSolid': '\\uF33C',\n 'ReadingModeSolid': '\\uF33D',\n 'SadSolid': '\\uF33E',\n 'HealthSolid': '\\uF33F',\n 'ShieldSolid': '\\uF340',\n 'GiftBoxSolid': '\\uF341',\n 'ShoppingCartSolid': '\\uF342',\n 'MailSolid': '\\uF343',\n 'ChatSolid': '\\uF344',\n 'RibbonSolid': '\\uF345'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-11\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-11-2a8393d6.woff') format('woff')\"\n },\n icons: {\n 'BoxAdditionSolid': '\\uF2D4',\n 'BoxMultiplySolid': '\\uF2D5',\n 'BoxPlaySolid': '\\uF2D6',\n 'BoxCheckmarkSolid': '\\uF2D7',\n 'CirclePauseSolid': '\\uF2D8',\n 'CirclePause': '\\uF2D9',\n 'MSNVideosSolid': '\\uF2DA',\n 'CircleStopSolid': '\\uF2DB',\n 'CircleStop': '\\uF2DC',\n 'NavigateBack': '\\uF2DD',\n 'NavigateBackMirrored': '\\uF2DE',\n 'NavigateForward': '\\uF2DF',\n 'NavigateForwardMirrored': '\\uF2E0',\n 'UnknownSolid': '\\uF2E1',\n 'UnknownMirroredSolid': '\\uF2E2',\n 'CircleAddition': '\\uF2E3',\n 'CircleAdditionSolid': '\\uF2E4',\n 'FilePDB': '\\uF2E5',\n 'FileTemplate': '\\uF2E6',\n 'FileSQL': '\\uF2E7',\n 'FileJAVA': '\\uF2E8',\n 'FileASPX': '\\uF2E9',\n 'FileCSS': '\\uF2EA',\n 'FileSass': '\\uF2EB',\n 'FileLess': '\\uF2EC',\n 'FileHTML': '\\uF2ED',\n 'JavaScriptLanguage': '\\uF2EE',\n 'CSharpLanguage': '\\uF2EF',\n 'CSharp': '\\uF2F0',\n 'VisualBasicLanguage': '\\uF2F1',\n 'VB': '\\uF2F2',\n 'CPlusPlusLanguage': '\\uF2F3',\n 'CPlusPlus': '\\uF2F4',\n 'FSharpLanguage': '\\uF2F5',\n 'FSharp': '\\uF2F6',\n 'TypeScriptLanguage': '\\uF2F7',\n 'PythonLanguage': '\\uF2F8',\n 'PY': '\\uF2F9',\n 'CoffeeScript': '\\uF2FA',\n 'MarkDownLanguage': '\\uF2FB',\n 'FullWidth': '\\uF2FE',\n 'FullWidthEdit': '\\uF2FF',\n 'Plug': '\\uF300',\n 'PlugSolid': '\\uF301',\n 'PlugConnected': '\\uF302',\n 'PlugDisconnected': '\\uF303',\n 'UnlockSolid': '\\uF304',\n 'Variable': '\\uF305',\n 'Parameter': '\\uF306',\n 'CommentUrgent': '\\uF307',\n 'Storyboard': '\\uF308',\n 'DiffInline': '\\uF309',\n 'DiffSideBySide': '\\uF30A',\n 'ImageDiff': '\\uF30B',\n 'ImagePixel': '\\uF30C',\n 'FileBug': '\\uF30D',\n 'FileCode': '\\uF30E',\n 'FileComment': '\\uF30F',\n 'BusinessHoursSign': '\\uF310',\n 'FileImage': '\\uF311',\n 'FileSymlink': '\\uF312',\n 'AutoFillTemplate': '\\uF313',\n 'WorkItem': '\\uF314',\n 'WorkItemBug': '\\uF315',\n 'LogRemove': '\\uF316',\n 'ColumnOptions': '\\uF317',\n 'Packages': '\\uF318',\n 'BuildIssue': '\\uF319',\n 'AssessmentGroup': '\\uF31A',\n 'VariableGroup': '\\uF31B',\n 'FullHistory': '\\uF31C',\n 'Wheelchair': '\\uF31F',\n 'SingleColumnEdit': '\\uF321',\n 'DoubleColumnEdit': '\\uF322',\n 'TripleColumnEdit': '\\uF323',\n 'ColumnLeftTwoThirdsEdit': '\\uF324',\n 'ColumnRightTwoThirdsEdit': '\\uF325',\n 'StreamLogo': '\\uF329',\n 'PassiveAuthentication': '\\uF32A',\n 'AlertSolid': '\\uF331',\n 'MegaphoneSolid': '\\uF332',\n 'TaskSolid': '\\uF333',\n 'ConfigurationSolid': '\\uF334',\n 'BugSolid': '\\uF335',\n 'CrownSolid': '\\uF336',\n 'Trophy2Solid': '\\uF337',\n 'QuickNoteSolid': '\\uF338',\n 'ConstructionConeSolid': '\\uF339',\n 'PageListSolid': '\\uF33A',\n 'PageListMirroredSolid': '\\uF33B',\n 'StarburstSolid': '\\uF33C',\n 'ReadingModeSolid': '\\uF33D',\n 'SadSolid': '\\uF33E',\n 'HealthSolid': '\\uF33F',\n 'ShieldSolid': '\\uF340',\n 'GiftBoxSolid': '\\uF341',\n 'ShoppingCartSolid': '\\uF342',\n 'MailSolid': '\\uF343',\n 'ChatSolid': '\\uF344',\n 'RibbonSolid': '\\uF345'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-3\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-3-089e217a.woff') format('woff')\"\n },\n icons: {\n 'ChevronDownSmall': '\\uE96E',\n 'ChevronLeftSmall': '\\uE96F',\n 'ChevronRightSmall': '\\uE970',\n 'ChevronUpMed': '\\uE971',\n 'ChevronDownMed': '\\uE972',\n 'ChevronLeftMed': '\\uE973',\n 'ChevronRightMed': '\\uE974',\n 'Devices2': '\\uE975',\n 'PC1': '\\uE977',\n 'PresenceChickletVideo': '\\uE979',\n 'Reply': '\\uE97A',\n 'HalfAlpha': '\\uE97E',\n 'ConstructionCone': '\\uE98F',\n 'DoubleChevronLeftMed': '\\uE991',\n 'Volume0': '\\uE992',\n 'Volume1': '\\uE993',\n 'Volume2': '\\uE994',\n 'Volume3': '\\uE995',\n 'Chart': '\\uE999',\n 'Robot': '\\uE99A',\n 'Manufacturing': '\\uE99C',\n 'LockSolid': '\\uE9A2',\n 'FitPage': '\\uE9A6',\n 'FitWidth': '\\uE9A7',\n 'BidiLtr': '\\uE9AA',\n 'BidiRtl': '\\uE9AB',\n 'RightDoubleQuote': '\\uE9B1',\n 'Sunny': '\\uE9BD',\n 'CloudWeather': '\\uE9BE',\n 'Cloudy': '\\uE9BF',\n 'PartlyCloudyDay': '\\uE9C0',\n 'PartlyCloudyNight': '\\uE9C1',\n 'ClearNight': '\\uE9C2',\n 'RainShowersDay': '\\uE9C3',\n 'Rain': '\\uE9C4',\n 'Thunderstorms': '\\uE9C6',\n 'RainSnow': '\\uE9C7',\n 'Snow': '\\uE9C8',\n 'BlowingSnow': '\\uE9C9',\n 'Frigid': '\\uE9CA',\n 'Fog': '\\uE9CB',\n 'Squalls': '\\uE9CC',\n 'Duststorm': '\\uE9CD',\n 'Unknown': '\\uE9CE',\n 'Precipitation': '\\uE9CF',\n 'Ribbon': '\\uE9D1',\n 'AreaChart': '\\uE9D2',\n 'Assign': '\\uE9D3',\n 'FlowChart': '\\uE9D4',\n 'CheckList': '\\uE9D5',\n 'Diagnostic': '\\uE9D9',\n 'Generate': '\\uE9DA',\n 'LineChart': '\\uE9E6',\n 'Equalizer': '\\uE9E9',\n 'BarChartHorizontal': '\\uE9EB',\n 'BarChartVertical': '\\uE9EC',\n 'Freezing': '\\uE9EF',\n 'FunnelChart': '\\uE9F1',\n 'Processing': '\\uE9F5',\n 'Quantity': '\\uE9F8',\n 'ReportDocument': '\\uE9F9',\n 'StackColumnChart': '\\uE9FC',\n 'SnowShowerDay': '\\uE9FD',\n 'HailDay': '\\uEA00',\n 'WorkFlow': '\\uEA01',\n 'HourGlass': '\\uEA03',\n 'StoreLogoMed20': '\\uEA04',\n 'TimeSheet': '\\uEA05',\n 'TriangleSolid': '\\uEA08',\n 'UpgradeAnalysis': '\\uEA0B',\n 'VideoSolid': '\\uEA0C',\n 'RainShowersNight': '\\uEA0F',\n 'SnowShowerNight': '\\uEA11',\n 'Teamwork': '\\uEA12',\n 'HailNight': '\\uEA13',\n 'PeopleAdd': '\\uEA15',\n 'Glasses': '\\uEA16',\n 'DateTime2': '\\uEA17',\n 'Shield': '\\uEA18',\n 'Header1': '\\uEA19',\n 'PageAdd': '\\uEA1A',\n 'NumberedList': '\\uEA1C',\n 'PowerBILogo': '\\uEA1E',\n 'Info2': '\\uEA1F',\n 'MusicInCollectionFill': '\\uEA36',\n 'Asterisk': '\\uEA38',\n 'ErrorBadge': '\\uEA39',\n 'CircleFill': '\\uEA3B',\n 'Record2': '\\uEA3F',\n 'AllAppsMirrored': '\\uEA40',\n 'BookmarksMirrored': '\\uEA41',\n 'BulletedListMirrored': '\\uEA42',\n 'CaretHollowMirrored': '\\uEA45',\n 'CaretSolidMirrored': '\\uEA46',\n 'ChromeBackMirrored': '\\uEA47',\n 'ClearSelectionMirrored': '\\uEA48',\n 'ClosePaneMirrored': '\\uEA49',\n 'DockLeftMirrored': '\\uEA4C',\n 'DoubleChevronLeftMedMirrored': '\\uEA4D',\n 'GoMirrored': '\\uEA4F'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-3\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-3-089e217a.woff') format('woff')\"\n },\n icons: {\n 'ChevronDownSmall': '\\uE96E',\n 'ChevronLeftSmall': '\\uE96F',\n 'ChevronRightSmall': '\\uE970',\n 'ChevronUpMed': '\\uE971',\n 'ChevronDownMed': '\\uE972',\n 'ChevronLeftMed': '\\uE973',\n 'ChevronRightMed': '\\uE974',\n 'Devices2': '\\uE975',\n 'PC1': '\\uE977',\n 'PresenceChickletVideo': '\\uE979',\n 'Reply': '\\uE97A',\n 'HalfAlpha': '\\uE97E',\n 'ConstructionCone': '\\uE98F',\n 'DoubleChevronLeftMed': '\\uE991',\n 'Volume0': '\\uE992',\n 'Volume1': '\\uE993',\n 'Volume2': '\\uE994',\n 'Volume3': '\\uE995',\n 'Chart': '\\uE999',\n 'Robot': '\\uE99A',\n 'Manufacturing': '\\uE99C',\n 'LockSolid': '\\uE9A2',\n 'FitPage': '\\uE9A6',\n 'FitWidth': '\\uE9A7',\n 'BidiLtr': '\\uE9AA',\n 'BidiRtl': '\\uE9AB',\n 'RightDoubleQuote': '\\uE9B1',\n 'Sunny': '\\uE9BD',\n 'CloudWeather': '\\uE9BE',\n 'Cloudy': '\\uE9BF',\n 'PartlyCloudyDay': '\\uE9C0',\n 'PartlyCloudyNight': '\\uE9C1',\n 'ClearNight': '\\uE9C2',\n 'RainShowersDay': '\\uE9C3',\n 'Rain': '\\uE9C4',\n 'Thunderstorms': '\\uE9C6',\n 'RainSnow': '\\uE9C7',\n 'Snow': '\\uE9C8',\n 'BlowingSnow': '\\uE9C9',\n 'Frigid': '\\uE9CA',\n 'Fog': '\\uE9CB',\n 'Squalls': '\\uE9CC',\n 'Duststorm': '\\uE9CD',\n 'Unknown': '\\uE9CE',\n 'Precipitation': '\\uE9CF',\n 'Ribbon': '\\uE9D1',\n 'AreaChart': '\\uE9D2',\n 'Assign': '\\uE9D3',\n 'FlowChart': '\\uE9D4',\n 'CheckList': '\\uE9D5',\n 'Diagnostic': '\\uE9D9',\n 'Generate': '\\uE9DA',\n 'LineChart': '\\uE9E6',\n 'Equalizer': '\\uE9E9',\n 'BarChartHorizontal': '\\uE9EB',\n 'BarChartVertical': '\\uE9EC',\n 'Freezing': '\\uE9EF',\n 'FunnelChart': '\\uE9F1',\n 'Processing': '\\uE9F5',\n 'Quantity': '\\uE9F8',\n 'ReportDocument': '\\uE9F9',\n 'StackColumnChart': '\\uE9FC',\n 'SnowShowerDay': '\\uE9FD',\n 'HailDay': '\\uEA00',\n 'WorkFlow': '\\uEA01',\n 'HourGlass': '\\uEA03',\n 'StoreLogoMed20': '\\uEA04',\n 'TimeSheet': '\\uEA05',\n 'TriangleSolid': '\\uEA08',\n 'UpgradeAnalysis': '\\uEA0B',\n 'VideoSolid': '\\uEA0C',\n 'RainShowersNight': '\\uEA0F',\n 'SnowShowerNight': '\\uEA11',\n 'Teamwork': '\\uEA12',\n 'HailNight': '\\uEA13',\n 'PeopleAdd': '\\uEA15',\n 'Glasses': '\\uEA16',\n 'DateTime2': '\\uEA17',\n 'Shield': '\\uEA18',\n 'Header1': '\\uEA19',\n 'PageAdd': '\\uEA1A',\n 'NumberedList': '\\uEA1C',\n 'PowerBILogo': '\\uEA1E',\n 'Info2': '\\uEA1F',\n 'MusicInCollectionFill': '\\uEA36',\n 'Asterisk': '\\uEA38',\n 'ErrorBadge': '\\uEA39',\n 'CircleFill': '\\uEA3B',\n 'Record2': '\\uEA3F',\n 'AllAppsMirrored': '\\uEA40',\n 'BookmarksMirrored': '\\uEA41',\n 'BulletedListMirrored': '\\uEA42',\n 'CaretHollowMirrored': '\\uEA45',\n 'CaretSolidMirrored': '\\uEA46',\n 'ChromeBackMirrored': '\\uEA47',\n 'ClearSelectionMirrored': '\\uEA48',\n 'ClosePaneMirrored': '\\uEA49',\n 'DockLeftMirrored': '\\uEA4C',\n 'DoubleChevronLeftMedMirrored': '\\uEA4D',\n 'GoMirrored': '\\uEA4F'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-2\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-2-63c99abf.woff') format('woff')\"\n },\n icons: {\n 'Picture': '\\uE8B9',\n 'ChromeClose': '\\uE8BB',\n 'ShowResults': '\\uE8BC',\n 'Message': '\\uE8BD',\n 'CalendarDay': '\\uE8BF',\n 'CalendarWeek': '\\uE8C0',\n 'MailReplyAll': '\\uE8C2',\n 'Read': '\\uE8C3',\n 'Cut': '\\uE8C6',\n 'PaymentCard': '\\uE8C7',\n 'Copy': '\\uE8C8',\n 'Important': '\\uE8C9',\n 'MailReply': '\\uE8CA',\n 'GotoToday': '\\uE8D1',\n 'Font': '\\uE8D2',\n 'FontColor': '\\uE8D3',\n 'FolderFill': '\\uE8D5',\n 'Permissions': '\\uE8D7',\n 'DisableUpdates': '\\uE8D8',\n 'Unfavorite': '\\uE8D9',\n 'Italic': '\\uE8DB',\n 'Underline': '\\uE8DC',\n 'Bold': '\\uE8DD',\n 'MoveToFolder': '\\uE8DE',\n 'Dislike': '\\uE8E0',\n 'Like': '\\uE8E1',\n 'AlignCenter': '\\uE8E3',\n 'OpenFile': '\\uE8E5',\n 'ClearSelection': '\\uE8E6',\n 'FontDecrease': '\\uE8E7',\n 'FontIncrease': '\\uE8E8',\n 'FontSize': '\\uE8E9',\n 'CellPhone': '\\uE8EA',\n 'RepeatOne': '\\uE8ED',\n 'RepeatAll': '\\uE8EE',\n 'Calculator': '\\uE8EF',\n 'Library': '\\uE8F1',\n 'PostUpdate': '\\uE8F3',\n 'NewFolder': '\\uE8F4',\n 'CalendarReply': '\\uE8F5',\n 'UnsyncFolder': '\\uE8F6',\n 'SyncFolder': '\\uE8F7',\n 'BlockContact': '\\uE8F8',\n 'Accept': '\\uE8FB',\n 'BulletedList': '\\uE8FD',\n 'Preview': '\\uE8FF',\n 'News': '\\uE900',\n 'Chat': '\\uE901',\n 'Group': '\\uE902',\n 'World': '\\uE909',\n 'Comment': '\\uE90A',\n 'DockLeft': '\\uE90C',\n 'DockRight': '\\uE90D',\n 'Repair': '\\uE90F',\n 'Accounts': '\\uE910',\n 'Street': '\\uE913',\n 'RadioBullet': '\\uE915',\n 'Stopwatch': '\\uE916',\n 'Clock': '\\uE917',\n 'WorldClock': '\\uE918',\n 'AlarmClock': '\\uE919',\n 'Photo': '\\uE91B',\n 'ActionCenter': '\\uE91C',\n 'Hospital': '\\uE91D',\n 'Timer': '\\uE91E',\n 'FullCircleMask': '\\uE91F',\n 'LocationFill': '\\uE920',\n 'ChromeMinimize': '\\uE921',\n 'ChromeRestore': '\\uE923',\n 'Annotation': '\\uE924',\n 'Fingerprint': '\\uE928',\n 'Handwriting': '\\uE929',\n 'ChromeFullScreen': '\\uE92D',\n 'Completed': '\\uE930',\n 'Label': '\\uE932',\n 'FlickDown': '\\uE935',\n 'FlickUp': '\\uE936',\n 'FlickLeft': '\\uE937',\n 'FlickRight': '\\uE938',\n 'MiniExpand': '\\uE93A',\n 'MiniContract': '\\uE93B',\n 'Streaming': '\\uE93E',\n 'MusicInCollection': '\\uE940',\n 'OneDriveLogo': '\\uE941',\n 'CompassNW': '\\uE942',\n 'Code': '\\uE943',\n 'LightningBolt': '\\uE945',\n 'CalculatorMultiply': '\\uE947',\n 'CalculatorAddition': '\\uE948',\n 'CalculatorSubtract': '\\uE949',\n 'CalculatorPercentage': '\\uE94C',\n 'CalculatorEqualTo': '\\uE94E',\n 'PrintfaxPrinterFile': '\\uE956',\n 'StorageOptical': '\\uE958',\n 'Communications': '\\uE95A',\n 'Headset': '\\uE95B',\n 'Health': '\\uE95E',\n 'Webcam2': '\\uE960',\n 'FrontCamera': '\\uE96B',\n 'ChevronUpSmall': '\\uE96D'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-2\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-2-63c99abf.woff') format('woff')\"\n },\n icons: {\n 'Picture': '\\uE8B9',\n 'ChromeClose': '\\uE8BB',\n 'ShowResults': '\\uE8BC',\n 'Message': '\\uE8BD',\n 'CalendarDay': '\\uE8BF',\n 'CalendarWeek': '\\uE8C0',\n 'MailReplyAll': '\\uE8C2',\n 'Read': '\\uE8C3',\n 'Cut': '\\uE8C6',\n 'PaymentCard': '\\uE8C7',\n 'Copy': '\\uE8C8',\n 'Important': '\\uE8C9',\n 'MailReply': '\\uE8CA',\n 'GotoToday': '\\uE8D1',\n 'Font': '\\uE8D2',\n 'FontColor': '\\uE8D3',\n 'FolderFill': '\\uE8D5',\n 'Permissions': '\\uE8D7',\n 'DisableUpdates': '\\uE8D8',\n 'Unfavorite': '\\uE8D9',\n 'Italic': '\\uE8DB',\n 'Underline': '\\uE8DC',\n 'Bold': '\\uE8DD',\n 'MoveToFolder': '\\uE8DE',\n 'Dislike': '\\uE8E0',\n 'Like': '\\uE8E1',\n 'AlignCenter': '\\uE8E3',\n 'OpenFile': '\\uE8E5',\n 'ClearSelection': '\\uE8E6',\n 'FontDecrease': '\\uE8E7',\n 'FontIncrease': '\\uE8E8',\n 'FontSize': '\\uE8E9',\n 'CellPhone': '\\uE8EA',\n 'RepeatOne': '\\uE8ED',\n 'RepeatAll': '\\uE8EE',\n 'Calculator': '\\uE8EF',\n 'Library': '\\uE8F1',\n 'PostUpdate': '\\uE8F3',\n 'NewFolder': '\\uE8F4',\n 'CalendarReply': '\\uE8F5',\n 'UnsyncFolder': '\\uE8F6',\n 'SyncFolder': '\\uE8F7',\n 'BlockContact': '\\uE8F8',\n 'Accept': '\\uE8FB',\n 'BulletedList': '\\uE8FD',\n 'Preview': '\\uE8FF',\n 'News': '\\uE900',\n 'Chat': '\\uE901',\n 'Group': '\\uE902',\n 'World': '\\uE909',\n 'Comment': '\\uE90A',\n 'DockLeft': '\\uE90C',\n 'DockRight': '\\uE90D',\n 'Repair': '\\uE90F',\n 'Accounts': '\\uE910',\n 'Street': '\\uE913',\n 'RadioBullet': '\\uE915',\n 'Stopwatch': '\\uE916',\n 'Clock': '\\uE917',\n 'WorldClock': '\\uE918',\n 'AlarmClock': '\\uE919',\n 'Photo': '\\uE91B',\n 'ActionCenter': '\\uE91C',\n 'Hospital': '\\uE91D',\n 'Timer': '\\uE91E',\n 'FullCircleMask': '\\uE91F',\n 'LocationFill': '\\uE920',\n 'ChromeMinimize': '\\uE921',\n 'ChromeRestore': '\\uE923',\n 'Annotation': '\\uE924',\n 'Fingerprint': '\\uE928',\n 'Handwriting': '\\uE929',\n 'ChromeFullScreen': '\\uE92D',\n 'Completed': '\\uE930',\n 'Label': '\\uE932',\n 'FlickDown': '\\uE935',\n 'FlickUp': '\\uE936',\n 'FlickLeft': '\\uE937',\n 'FlickRight': '\\uE938',\n 'MiniExpand': '\\uE93A',\n 'MiniContract': '\\uE93B',\n 'Streaming': '\\uE93E',\n 'MusicInCollection': '\\uE940',\n 'OneDriveLogo': '\\uE941',\n 'CompassNW': '\\uE942',\n 'Code': '\\uE943',\n 'LightningBolt': '\\uE945',\n 'CalculatorMultiply': '\\uE947',\n 'CalculatorAddition': '\\uE948',\n 'CalculatorSubtract': '\\uE949',\n 'CalculatorPercentage': '\\uE94C',\n 'CalculatorEqualTo': '\\uE94E',\n 'PrintfaxPrinterFile': '\\uE956',\n 'StorageOptical': '\\uE958',\n 'Communications': '\\uE95A',\n 'Headset': '\\uE95B',\n 'Health': '\\uE95E',\n 'Webcam2': '\\uE960',\n 'FrontCamera': '\\uE96B',\n 'ChevronUpSmall': '\\uE96D'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "static get icon() { throw new Error('unimplemented - must use a concrete class'); }", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-15\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-15-3807251b.woff') format('woff')\"\n },\n icons: {\n 'CalendarSettings': '\\uF558',\n 'CalendarSettingsMirrored': '\\uF559',\n 'HardDriveLock': '\\uF55A',\n 'HardDriveUnlock': '\\uF55B',\n 'AccountManagement': '\\uF55C',\n 'ReportWarning': '\\uF569',\n 'TransitionPop': '\\uF5B2',\n 'TransitionPush': '\\uF5B3',\n 'TransitionEffect': '\\uF5B4',\n 'LookupEntities': '\\uF5B5',\n 'ExploreData': '\\uF5B6',\n 'AddBookmark': '\\uF5B7',\n 'SearchBookmark': '\\uF5B8',\n 'DrillThrough': '\\uF5B9',\n 'MasterDatabase': '\\uF5BA',\n 'CertifiedDatabase': '\\uF5BB',\n 'MaximumValue': '\\uF5BC',\n 'MinimumValue': '\\uF5BD',\n 'VisualStudioIDELogo32': '\\uF5D0',\n 'PasteAsText': '\\uF5D5',\n 'PasteAsCode': '\\uF5D6',\n 'BrowserTab': '\\uF5D7',\n 'BrowserTabScreenshot': '\\uF5D8',\n 'DesktopScreenshot': '\\uF5D9',\n 'FileYML': '\\uF5DA',\n 'ClipboardSolid': '\\uF5DC',\n 'FabricUserFolder': '\\uF5E5',\n 'FabricNetworkFolder': '\\uF5E6',\n 'BullseyeTarget': '\\uF5F0',\n 'AnalyticsView': '\\uF5F1',\n 'Video360Generic': '\\uF609',\n 'Untag': '\\uF60B',\n 'Leave': '\\uF627',\n 'Trending12': '\\uF62D',\n 'Blocked12': '\\uF62E',\n 'Warning12': '\\uF62F',\n 'CheckedOutByOther12': '\\uF630',\n 'CheckedOutByYou12': '\\uF631',\n 'CircleShapeSolid': '\\uF63C',\n 'SquareShapeSolid': '\\uF63D',\n 'TriangleShapeSolid': '\\uF63E',\n 'DropShapeSolid': '\\uF63F',\n 'RectangleShapeSolid': '\\uF640',\n 'ZoomToFit': '\\uF649',\n 'InsertColumnsLeft': '\\uF64A',\n 'InsertColumnsRight': '\\uF64B',\n 'InsertRowsAbove': '\\uF64C',\n 'InsertRowsBelow': '\\uF64D',\n 'DeleteColumns': '\\uF64E',\n 'DeleteRows': '\\uF64F',\n 'DeleteRowsMirrored': '\\uF650',\n 'DeleteTable': '\\uF651',\n 'AccountBrowser': '\\uF652',\n 'VersionControlPush': '\\uF664',\n 'StackedColumnChart2': '\\uF666',\n 'TripleColumnWide': '\\uF66E',\n 'QuadColumn': '\\uF66F',\n 'WhiteBoardApp16': '\\uF673',\n 'WhiteBoardApp32': '\\uF674',\n 'PinnedSolid': '\\uF676',\n 'InsertSignatureLine': '\\uF677',\n 'ArrangeByFrom': '\\uF678',\n 'Phishing': '\\uF679',\n 'CreateMailRule': '\\uF67A',\n 'PublishCourse': '\\uF699',\n 'DictionaryRemove': '\\uF69A',\n 'UserRemove': '\\uF69B',\n 'UserEvent': '\\uF69C',\n 'Encryption': '\\uF69D',\n 'PasswordField': '\\uF6AA',\n 'OpenInNewTab': '\\uF6AB',\n 'Hide3': '\\uF6AC',\n 'VerifiedBrandSolid': '\\uF6AD',\n 'MarkAsProtected': '\\uF6AE',\n 'AuthenticatorApp': '\\uF6B1',\n 'WebTemplate': '\\uF6B2',\n 'DefenderTVM': '\\uF6B3',\n 'MedalSolid': '\\uF6B9',\n 'D365TalentLearn': '\\uF6BB',\n 'D365TalentInsight': '\\uF6BC',\n 'D365TalentHRCore': '\\uF6BD',\n 'BacklogList': '\\uF6BF',\n 'ButtonControl': '\\uF6C0',\n 'TableGroup': '\\uF6D9',\n 'MountainClimbing': '\\uF6DB',\n 'TagUnknown': '\\uF6DF',\n 'TagUnknownMirror': '\\uF6E0',\n 'TagUnknown12': '\\uF6E1',\n 'TagUnknown12Mirror': '\\uF6E2',\n 'Link12': '\\uF6E3',\n 'Presentation': '\\uF6E4',\n 'Presentation12': '\\uF6E5',\n 'Lock12': '\\uF6E6',\n 'BuildDefinition': '\\uF6E9',\n 'ReleaseDefinition': '\\uF6EA',\n 'SaveTemplate': '\\uF6EC',\n 'UserGauge': '\\uF6ED',\n 'BlockedSiteSolid12': '\\uF70A',\n 'TagSolid': '\\uF70E',\n 'OfficeChat': '\\uF70F'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function initializeIcons(baseUrl, options) {\n if (baseUrl === void 0) { baseUrl = ''; }\n var subset = {\n style: {\n MozOsxFontSmoothing: 'grayscale',\n WebkitFontSmoothing: 'antialiased',\n fontStyle: 'normal',\n fontWeight: 'normal',\n speak: 'none'\n },\n fontFace: {\n fontFamily: \"\\\"FabricMDL2Icons-15\\\"\",\n src: \"url('\" + baseUrl + \"fabric-icons-15-3807251b.woff') format('woff')\"\n },\n icons: {\n 'CalendarSettings': '\\uF558',\n 'CalendarSettingsMirrored': '\\uF559',\n 'HardDriveLock': '\\uF55A',\n 'HardDriveUnlock': '\\uF55B',\n 'AccountManagement': '\\uF55C',\n 'ReportWarning': '\\uF569',\n 'TransitionPop': '\\uF5B2',\n 'TransitionPush': '\\uF5B3',\n 'TransitionEffect': '\\uF5B4',\n 'LookupEntities': '\\uF5B5',\n 'ExploreData': '\\uF5B6',\n 'AddBookmark': '\\uF5B7',\n 'SearchBookmark': '\\uF5B8',\n 'DrillThrough': '\\uF5B9',\n 'MasterDatabase': '\\uF5BA',\n 'CertifiedDatabase': '\\uF5BB',\n 'MaximumValue': '\\uF5BC',\n 'MinimumValue': '\\uF5BD',\n 'VisualStudioIDELogo32': '\\uF5D0',\n 'PasteAsText': '\\uF5D5',\n 'PasteAsCode': '\\uF5D6',\n 'BrowserTab': '\\uF5D7',\n 'BrowserTabScreenshot': '\\uF5D8',\n 'DesktopScreenshot': '\\uF5D9',\n 'FileYML': '\\uF5DA',\n 'ClipboardSolid': '\\uF5DC',\n 'FabricUserFolder': '\\uF5E5',\n 'FabricNetworkFolder': '\\uF5E6',\n 'BullseyeTarget': '\\uF5F0',\n 'AnalyticsView': '\\uF5F1',\n 'Video360Generic': '\\uF609',\n 'Untag': '\\uF60B',\n 'Leave': '\\uF627',\n 'Trending12': '\\uF62D',\n 'Blocked12': '\\uF62E',\n 'Warning12': '\\uF62F',\n 'CheckedOutByOther12': '\\uF630',\n 'CheckedOutByYou12': '\\uF631',\n 'CircleShapeSolid': '\\uF63C',\n 'SquareShapeSolid': '\\uF63D',\n 'TriangleShapeSolid': '\\uF63E',\n 'DropShapeSolid': '\\uF63F',\n 'RectangleShapeSolid': '\\uF640',\n 'ZoomToFit': '\\uF649',\n 'InsertColumnsLeft': '\\uF64A',\n 'InsertColumnsRight': '\\uF64B',\n 'InsertRowsAbove': '\\uF64C',\n 'InsertRowsBelow': '\\uF64D',\n 'DeleteColumns': '\\uF64E',\n 'DeleteRows': '\\uF64F',\n 'DeleteRowsMirrored': '\\uF650',\n 'DeleteTable': '\\uF651',\n 'AccountBrowser': '\\uF652',\n 'VersionControlPush': '\\uF664',\n 'StackedColumnChart2': '\\uF666',\n 'TripleColumnWide': '\\uF66E',\n 'QuadColumn': '\\uF66F',\n 'WhiteBoardApp16': '\\uF673',\n 'WhiteBoardApp32': '\\uF674',\n 'PinnedSolid': '\\uF676',\n 'InsertSignatureLine': '\\uF677',\n 'ArrangeByFrom': '\\uF678',\n 'Phishing': '\\uF679',\n 'CreateMailRule': '\\uF67A',\n 'PublishCourse': '\\uF699',\n 'DictionaryRemove': '\\uF69A',\n 'UserRemove': '\\uF69B',\n 'UserEvent': '\\uF69C',\n 'Encryption': '\\uF69D',\n 'PasswordField': '\\uF6AA',\n 'OpenInNewTab': '\\uF6AB',\n 'Hide3': '\\uF6AC',\n 'VerifiedBrandSolid': '\\uF6AD',\n 'MarkAsProtected': '\\uF6AE',\n 'AuthenticatorApp': '\\uF6B1',\n 'WebTemplate': '\\uF6B2',\n 'DefenderTVM': '\\uF6B3',\n 'MedalSolid': '\\uF6B9',\n 'D365TalentLearn': '\\uF6BB',\n 'D365TalentInsight': '\\uF6BC',\n 'D365TalentHRCore': '\\uF6BD',\n 'BacklogList': '\\uF6BF',\n 'ButtonControl': '\\uF6C0',\n 'TableGroup': '\\uF6D9',\n 'MountainClimbing': '\\uF6DB',\n 'TagUnknown': '\\uF6DF',\n 'TagUnknownMirror': '\\uF6E0',\n 'TagUnknown12': '\\uF6E1',\n 'TagUnknown12Mirror': '\\uF6E2',\n 'Link12': '\\uF6E3',\n 'Presentation': '\\uF6E4',\n 'Presentation12': '\\uF6E5',\n 'Lock12': '\\uF6E6',\n 'BuildDefinition': '\\uF6E9',\n 'ReleaseDefinition': '\\uF6EA',\n 'SaveTemplate': '\\uF6EC',\n 'UserGauge': '\\uF6ED',\n 'BlockedSiteSolid12': '\\uF70A',\n 'TagSolid': '\\uF70E',\n 'OfficeChat': '\\uF70F'\n }\n };\n (0,_fluentui_style_utilities__WEBPACK_IMPORTED_MODULE_0__.registerIcons)(subset, options);\n}", "function IconOptions() {}", "function MatIconLocation() {}", "function getIcon(name) {\n var icon = undefined;\n var options = _iconSettings.__options;\n name = name ? normalizeIconName(name) : '';\n name = _iconSettings.__remapped[name] || name;\n if (name) {\n icon = _iconSettings[name];\n if (icon) {\n var subset = icon.subset;\n if (subset && subset.fontFace) {\n if (!subset.isRegistered) {\n Object(_uifabric_merge_styles__WEBPACK_IMPORTED_MODULE_2__[\"fontFace\"])(subset.fontFace);\n subset.isRegistered = true;\n }\n if (!subset.className) {\n subset.className = Object(_uifabric_merge_styles__WEBPACK_IMPORTED_MODULE_2__[\"mergeStyles\"])(subset.style, {\n fontFamily: subset.fontFace.fontFamily,\n fontWeight: subset.fontFace.fontWeight || 'normal',\n fontStyle: subset.fontFace.fontStyle || 'normal'\n });\n }\n }\n }\n else {\n if (!options.disableWarnings && options.warnOnMissingIcons) {\n Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_1__[\"warn\"])(\"The icon \\\"\" + name + \"\\\" was used but not registered. See http://aka.ms/fabric-icon-usage for more information.\");\n }\n }\n }\n return icon;\n}", "updateDriveSpecificIcons() {\n const metadata = this.parentTree_.metadataModel.getCache(\n [this.dirEntry_], ['shared', 'isMachineRoot', 'isExternalMedia']);\n\n const icon = this.querySelector('.icon');\n icon.classList.toggle('shared', !!(metadata[0] && metadata[0].shared));\n\n if (metadata[0] && metadata[0].isMachineRoot) {\n icon.setAttribute(\n 'volume-type-icon', VolumeManagerCommon.RootType.COMPUTER);\n }\n\n if (metadata[0] && metadata[0].isExternalMedia) {\n icon.setAttribute(\n 'volume-type-icon', VolumeManagerCommon.RootType.EXTERNAL_MEDIA);\n }\n }", "getIcon_() {\n return this.isCloudGamingDevice_ ? 'oobe-32:game-controller' :\n 'oobe-32:checkmark';\n }", "function getIcon(name) {\r\n var icon = undefined;\r\n var options = _iconSettings.__options;\r\n name = name ? normalizeIconName(name) : '';\r\n name = _iconSettings.__remapped[name] || name;\r\n if (name) {\r\n icon = _iconSettings[name];\r\n if (icon) {\r\n var subset = icon.subset;\r\n if (subset && subset.fontFace) {\r\n if (!subset.isRegistered) {\r\n Object(lib[\"c\" /* fontFace */])(subset.fontFace);\r\n subset.isRegistered = true;\r\n }\r\n if (!subset.className) {\r\n subset.className = Object(lib[\"f\" /* mergeStyles */])(subset.style, {\r\n fontFamily: subset.fontFace.fontFamily,\r\n fontWeight: subset.fontFace.fontWeight || 'normal',\r\n fontStyle: subset.fontFace.fontStyle || 'normal'\r\n });\r\n }\r\n }\r\n }\r\n else {\r\n if (!options.disableWarnings && options.warnOnMissingIcons) {\r\n warn(\"The icon \\\"\" + name + \"\\\" was used but not registered. See http://aka.ms/fabric-icon-usage for more information.\");\r\n }\r\n }\r\n }\r\n return icon;\r\n}", "iconComp() {\n switch (true) {\n case this.props.detectorUp && this.props.detectorDown:\n return 'progress-full';\n case !this.props.detectorUp && this.props.detectorDown:\n return 'progress-two';\n case !this.props.detectorUp && !this.props.detectorDown:\n return 'progress-empty';\n case this.props.detectorUp && !this.props.detectorDown:\n return 'new';\n }\n }", "function fullIcon(icon) {\n return merge_1.merge(exports.iconDefaults, icon);\n}", "function getLibName() {\n return \"PixiOverlayMarkers\";\n}", "function TiAdjustBrightness (props) {\n return Object(_lib__WEBPACK_IMPORTED_MODULE_0__[\"GenIcon\"])({\"tag\":\"svg\",\"attr\":{\"version\":\"1.2\",\"baseProfile\":\"tiny\",\"viewBox\":\"0 0 24 24\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"d\":\"M12 6.934l1-2.934c.072-.213.078-.452 0-.682-.188-.553-.789-.848-1.341-.659-.553.189-.847.788-.659 1.341l1 2.934zM4 11c-.213-.072-.452-.078-.682 0-.553.188-.848.789-.659 1.341.189.553.788.847 1.341.659l2.934-1-2.934-1zM12 17.066l-1 2.934c-.072.213-.078.452 0 .682.188.553.789.848 1.341.659.553-.189.847-.788.659-1.341l-1-2.934zM21.341 11.657c-.188-.553-.788-.848-1.341-.659l-2.934 1 2.934 1c.213.072.452.078.682 0 .552-.188.847-.789.659-1.341zM5.636 7.05l2.781 1.367-1.367-2.781c-.1-.202-.265-.375-.482-.482-.524-.258-1.157-.042-1.415.482-.257.523-.041 1.157.483 1.414zM5.153 17.432c-.257.523-.041 1.156.482 1.414.523.257 1.157.041 1.414-.482l1.367-2.781-2.781 1.367c-.201.099-.374.263-.482.482zM18.363 16.949l-2.781-1.367 1.367 2.781c.1.202.264.375.482.482.523.257 1.156.041 1.414-.482s.042-1.157-.482-1.414zM18.844 6.566c.258-.524.042-1.157-.481-1.415-.523-.257-1.157-.041-1.414.482l-1.369 2.783 2.782-1.368c.202-.1.375-.264.482-.482zM12 7.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z\"}}]})(props);\n}", "function getIcon(name) {\n var icon = undefined;\n var options = _iconSettings.__options;\n name = name ? normalizeIconName(name) : '';\n name = _iconSettings.__remapped[name] || name;\n if (name) {\n icon = _iconSettings[name];\n if (icon) {\n var subset = icon.subset;\n if (subset && subset.fontFace) {\n if (!subset.isRegistered) {\n (0,_fluentui_merge_styles__WEBPACK_IMPORTED_MODULE_4__.fontFace)(subset.fontFace);\n subset.isRegistered = true;\n }\n if (!subset.className) {\n subset.className = (0,_fluentui_merge_styles__WEBPACK_IMPORTED_MODULE_5__.mergeStyles)(subset.style, {\n fontFamily: subset.fontFace.fontFamily,\n fontWeight: subset.fontFace.fontWeight || 'normal',\n fontStyle: subset.fontFace.fontStyle || 'normal',\n });\n }\n }\n }\n else {\n // eslint-disable-next-line deprecation/deprecation\n if (!options.disableWarnings && options.warnOnMissingIcons) {\n (0,_fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__.warn)(\"The icon \\\"\" + name + \"\\\" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.\");\n }\n }\n }\n return icon;\n}", "function getIcon(name) {\n var icon = undefined;\n var options = _iconSettings.__options;\n name = name ? normalizeIconName(name) : '';\n name = _iconSettings.__remapped[name] || name;\n if (name) {\n icon = _iconSettings[name];\n if (icon) {\n var subset = icon.subset;\n if (subset && subset.fontFace) {\n if (!subset.isRegistered) {\n (0,_fluentui_merge_styles__WEBPACK_IMPORTED_MODULE_4__.fontFace)(subset.fontFace);\n subset.isRegistered = true;\n }\n if (!subset.className) {\n subset.className = (0,_fluentui_merge_styles__WEBPACK_IMPORTED_MODULE_5__.mergeStyles)(subset.style, {\n fontFamily: subset.fontFace.fontFamily,\n fontWeight: subset.fontFace.fontWeight || 'normal',\n fontStyle: subset.fontFace.fontStyle || 'normal',\n });\n }\n }\n }\n else {\n // eslint-disable-next-line deprecation/deprecation\n if (!options.disableWarnings && options.warnOnMissingIcons) {\n (0,_fluentui_utilities__WEBPACK_IMPORTED_MODULE_3__.warn)(\"The icon \\\"\" + name + \"\\\" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.\");\n }\n }\n }\n return icon;\n}", "defineCustomIcons() {\n this.icons = {\n default: leaflet.divIcon({\n iconSize: this.mapSettings.iconSize.default,\n }),\n\n center: leaflet.divIcon({\n className: \"leaflet-div-icon-center\",\n iconSize: this.mapSettings.iconSize.center,\n }),\n\n eat: leaflet.divIcon({\n className: \"leaflet-div-icon-eat\",\n iconSize: this.props.markerSize,\n html: svgIcons.eat,\n }),\n\n drink: leaflet.divIcon({\n className: \"leaflet-div-icon-drink\",\n iconSize: this.props.markerSize,\n html: svgIcons.drink,\n }),\n\n play: leaflet.divIcon({\n className: \"leaflet-div-icon-play\",\n iconSize: this.props.markerSize,\n html: svgIcons.play,\n }),\n\n see: leaflet.divIcon({\n className: \"leaflet-div-icon-see\",\n iconSize: this.props.markerSize,\n html: svgIcons.see,\n }),\n\n shop: leaflet.divIcon({\n className: \"leaflet-div-icon-shop\",\n iconSize: this.props.markerSize,\n html: svgIcons.shop,\n }),\n\n sleep: leaflet.divIcon({\n className: \"leaflet-div-icon-sleep\",\n iconSize: this.props.markerSize,\n html: svgIcons.sleep,\n }),\n };\n }", "static get definition() {\n return {\n icon: '',\n i18n: {\n default: 'Image'\n }\n };\n }", "_injectLibraryDependingOnDriver() {\n switch (this.props.driver) {\n case 'fontawesome':\n {\n const fontawesomeElm = document.querySelector('link#s-fontawesome');\n if (fontawesomeElm) return;\n const linkFontawesomeElm = document.createElement('link');\n linkFontawesomeElm.setAttribute('id', 'fontawesome');\n linkFontawesomeElm.setAttribute('rel', 'stylesheet');\n linkFontawesomeElm.setAttribute('href', this.props.fontawesomeCssUrl);\n linkFontawesomeElm.setAttribute('integrity', this.props.fontawesomeCssIntegrity);\n linkFontawesomeElm.setAttribute('crossorigin', 'anonymous');\n document.head.appendChild(linkFontawesomeElm);\n break;\n }\n\n case 'material':\n {\n const materialElm = document.querySelector('link#s-material');\n if (materialElm) return;\n const linkMaterialElm = document.createElement('link');\n linkMaterialElm.setAttribute('id', 'material');\n linkMaterialElm.setAttribute('href', 'https://fonts.googleapis.com/icon?family=Material+Icons');\n linkMaterialElm.setAttribute('rel', 'stylesheet');\n document.head.appendChild(linkMaterialElm);\n break;\n }\n\n case 'foundation':\n {\n const foundationElm = document.querySelector('link#s-foundation');\n if (foundationElm) return;\n const foundationLinkElm = document.createElement('link');\n foundationLinkElm.setAttribute('id', 'foundation');\n foundationLinkElm.setAttribute('href', this.props.fondationCssUrl);\n foundationLinkElm.setAttribute('rel', 'stylesheet');\n document.head.appendChild(foundationLinkElm);\n break;\n }\n\n default:\n // do nothing by default\n break;\n }\n }", "function addBuiltIns(PfeIcon){[{name:\"web\",path:\"https://access.redhat.com/webassets/avalon/j/lib/rh-iconfont-svgs\"},{name:\"rh\",path:\"https://access.redhat.com/webassets/avalon/j/lib/rh-iconfont-svgs\"}].forEach(function(set){return PfeIcon.addIconSet(set.name,set.path,function(name,iconSetName,iconSetPath){var regex=new RegExp(\"^\".concat(iconSetName,\"(-icon)?-(.*)\")),_regex$exec=regex.exec(name),_regex$exec2=babelHelpers.slicedToArray(_regex$exec,3),iconName=_regex$exec2[2],iconId=\"\".concat(iconSetName,\"-icon-\").concat(iconName),iconPath=\"\".concat(iconSetPath,\"/\").concat(iconId,\".svg\");return iconPath})})}", "function icons() {\r\n var arr = [], style = 'style=\"width:18px\"';\r\n if (iconMapper.map(link)) add(iconMapper.map(link));\r\n if (iconMapper.map(obj.Type)) add(iconMapper.map(obj.Type));\r\n if (reg !== 'Message' && iconMapper.map(reg)) add(iconMapper.map(reg));\r\n if (detail.contains('email')) add(iconMapper.map('email'));\r\n if (detail.contains('SMS')) add(iconMapper.map('sms'));\r\n\r\n //make sure there is exactly 2 icons\r\n arr.first(2);\r\n while (arr.length < 2) {\r\n arr.push('icon-blank');\r\n }\r\n\r\n if (arr.length) {\r\n return '<i ' + style + ' class=\"' + arr.join(' icon-large muted disp-ib\"></i> <i ' + style + ' class=\"') + ' icon-large muted disp-ib\"></i> ';\r\n } else {\r\n return '';\r\n }\r\n function add(i) {\r\n if (!arr.contains(i)) arr.push(i);\r\n }\r\n }", "function isIcon(target) {\n return angular.isDefined(target.element) && angular.isDefined(target.config);\n }", "function getIcon(style) {\n switch (style) {\n case \"#icon-1753-0288D1\":\n return \"img/green-atm.png\";\n case \"baby\":\n return \"img/ed-baby.png\";\n case \"#icon-1753-0288D1\":\n return \"img/green-atm.png\";\n case \"barbell\":\n return \"img/blue-barbell.png\";\n case \"#icon-1519-0288D1\":\n return \"img/blue-sports.png\";\n case \"bed\":\n return \"img/red-bed.png\";\n case \"#icon-1522-0288D1\":\n return \"img/purple-bike.png\";\n case \"bike\":\n return \"img/blue-bike.png\";\n case \"#icon-1664-0288d1\":\n return \"img/lightpurple-book.png\";\n case \"#icon-1899-DB4436\":\n return \"img/red-book.png\";\n case \"#icon-1546-DB4436\":\n return \"img/red-buildings.png\";\n // case \"clipboard\":\n // return \"img/clipboard.png\";\n case \"coffee\":\n return \"img/orange-coffee.png\";\n case \"#icon-1820-0288D1\":\n return \"img/green-laptop.png\";\n case \"#icon-1547-0288D1-nodesc\":\n return \"img/purple-downtown.png\";\n case \"#icon-1577-0288D1\":\n return \"img/orange-fastfood.png\";\n case \"#icon-1577-DB4436\":\n return \"img/orange-food.png\";\n case \"#icon-1548-0288D1\":\n return \"img/purple-pillars.png\";\n case \"#icon-1646-DB4436\":\n return \"img/green-health.png\";\n case \"microscope\":\n return \"img/purple-science.png\";\n //case \"minus\": return \"img/minus.png\";\n case \"#icon-1548-0288D1\":\n return \"img/red-music.png\";\n case \"paint-blue\":\n return \"img/blue-paint.png\";\n case \"#icon-1509-0288D1\":\n return \"img/purple-paint.png\";\n case \"rcmp\":\n return \"img/purple-rcmp.png\";\n case \"running\":\n return \"img/blue-running.png\";\n case \"#icon-1685-0288D1\":\n return \"img/shop-green.png\";\n case \"shop-orange\":\n return \"img/orange-retail.png\";\n case \"#icon-1680-0288D1\":\n return \"img/blue-sports.png\";\n case \"#icon-1701-0288D1\":\n return \"img/blue-swim.png\";\n case \"tennis\":\n return \"img/blue-tennis.png\";\n case \"#icon-1709-0288D1\":\n return \"img/blue-threatre.png\";\n case \"ticket\":\n return \"img/purple-ticket.png\";\n case \"#icon-1886-0288D1\":\n return \"img/blue-tree.png\";\n case \"#icon-1890-0288D1\":\n return \"img/blue-volley.png\";\n default:\n return \"img/blue-dot.png\";\n }\n}", "generateIcons() {\n const terminalBase = Core.atlas.find(this.name);\n const terminalDisplay = Core.atlas.find(this.name + \"-display-icon\");\n return [terminalBase, terminalDisplay];\n }", "function getIcons(text) {\n switch (text) {\n case 'Frigate':\n case 'Galleon':\n case 'Skiff':\n case 'Pinnace':\n case 'Flute':\n return 'fas fa-ship';\n case 'Tax increase':\n return 'fas fa-balance-scale';\n case 'Expedition':\n return 'fas fa-map-signs';\n case 'Trader':\n return 'fas fa-exchange-alt';\n case 'Governor':\n return 'fas fa-landmark';\n case 'Jester':\n return 'far fa-smile-wink';\n case 'Admiral':\n return 'fas fa-binoculars';\n case 'Sailor':\n case 'Pirate':\n return 'fas fa-skull-crossbones';\n case 'Priest':\n return 'fas fa-cross';\n case 'Captain':\n return 'fas fa-anchor';\n case 'Settler':\n return 'fas fa-home';\n case 'Madamoiselle':\n return 'fas fa-percent';\n case 'Jack of all Trades':\n return 'fas fa-asterisk';\n }\n}", "function getIcon(types) {\n\t\tswitch(types) {\n\t\t\t//case \"pharmacy\": return \"icons/drugstore.png\";\n\t\t\tcase \"hospital\": return \"https://www.phoenixchildrens.org/sites/default/files/images/hospital-building.png\";\n\t\t\t//case \"lab\": return \"icons/barber.png\";\n\t\t\tdefault: return \"http://www.bloodjournal.org/sites/all/modules/highwire/highwire/images/google-icon.png\";\n\t\t}\n\t}", "function getSearchImage(objectType)\n{\n switch (objectType)\n {\n case \"device\":\n return \"icon-desktop\"\n break;\n default:\n return \"icon-exclamation-circle\"\n break;\n }\n}", "_generateIconHtmlDependingOnDriver() {\n switch (this.props.driver) {\n case 'fonticon':\n return Promise.resolve(`<i class=\"${this.props.iconsPrefix}${this.props.icon}\" aria-hidden></i>`);\n\n case 'img':\n return Promise.resolve(`<img src=\"${this.props.iconsPath}/${this.props.icon}.svg\" alt=\"${this.props.title}\">`);\n\n case 'fontawesome':\n return Promise.resolve(`<i class=\"${!this.props.icon.match(/^fa(s|r|b|l|d)\\sfa-[a-z]+/gs) ? 'fa ' : ''}${this.props.icon}\" aria-hidden></i>`);\n\n case 'material':\n return Promise.resolve(`<i class=\"material-icons\" aria-hidden>${this.props.icon}</i>`);\n\n case 'foundation':\n return Promise.resolve(`<i class=\"fi-${this.props.icon}\" aria-hidden></i>`);\n\n case 'svg':\n default:\n return Promise.resolve(this._loadSvgIcon());\n }\n }", "function getFontIcon(alias) {\n var icon = { name: alias, isCustom: false };\n\n switch (alias) {\n case \"ace\":\n icon.name = \"code\";\n icon.isCustom = false;\n break;\n case \"styleselect\":\n case \"styles\":\n case \"fontsizeselect\":\n icon.name = \"icon-list\";\n icon.isCustom = true;\n break;\n case \"umbembeddialog\":\n icon.name = \"icon-tv\";\n icon.isCustom = true;\n break;\n case \"umbmediapicker\":\n icon.name = \"icon-picture\";\n icon.isCustom = true;\n break;\n case \"umbmacro\":\n icon.name = \"icon-settings-alt\";\n icon.isCustom = true;\n break;\n default:\n icon.name = alias;\n icon.isCustom = false;\n }\n\n return icon;\n }", "get moduleButtonIconEl() {\n return this.moduleButtonEl?.querySelector('svg, img, .icon, .custom-icon');\n }", "function isIcon(target){return angular.isDefined(target.element)&&angular.isDefined(target.config);}", "function isIcon(target) {\n return angular.isDefined(target.element) && angular.isDefined(target.config);\n }", "function isIcon(target) {\n return angular.isDefined(target.element) && angular.isDefined(target.config);\n }", "function getIcon(condition) {\n switch (condition) {\n case \"Rain\":\n return \"fas fa-cloud-showers-heavy\";\n case \"Clouds\":\n return \"fas fa-cloud\";\n case \"Clear\":\n return \"fas fa-sun\";\n case \"Drizzle\":\n return \"fas fa-cloud-rain\";\n case \"Snow\":\n return \"fas fa-snowflake\";\n case \"Mist\":\n return \"fas fa-smog\";\n case \"Fog\":\n return \"fas fa-smog\";\n default:\n return \"fas fa-cloud-sun\";\n }\n}", "function _getIcon(worktype) {\n\n let icon = new Array('fa');\n\n switch (worktype) {\n case 'article':\n icon.push('fa-file-text');\n break;\n case 'book':\n icon.push('fa-book');\n break;\n case 'audiobook':\n icon.push('fa-book');\n break;\n case 'game':\n icon.push('fa-gamepad');\n break;\n case 'movie':\n icon.push('fa-film');\n break;\n case 'music':\n icon.push('fa-music');\n break;\n case 'periodica':\n icon.push('fa-newspaper-o');\n break;\n default:\n icon.push('fa-question');\n break;\n }\n\n return icon;\n\n}", "getIcon() {\n switch (this.props.checkr) {\n case \"waitlist\":\n return {\n checkrText: \"Pending waitlist\",\n color: Colors.white,\n name: \"hourglass-empty\"\n };\n case \"clear\":\n return {\n checkrText: \"All Set!\",\n color: Colors.white,\n name: \"check\"\n };\n case \"consider\":\n return {\n checkrText: \"In Review\",\n color: Colors.error,\n name: \"hourglass-empty\"\n };\n case \"pending\":\n return {\n checkrText: \"Pending\",\n color: Colors.secondary,\n name: \"hourglass-full\"\n };\n case \"sent\":\n return {\n checkrText: \"Sent\",\n color: Colors.secondary,\n name: \"hourglass-empty\"\n };\n default:\n return {\n checkrText: \"Error\",\n color: Colors.error,\n name: \"error-outline\"\n };\n }\n }", "renderIcon(icon) {\n if (icon) {\n const { positions } = this.props\n\n const sliceIconTextOptions = {\n ...Config.menu.sliceIconText,\n x: positions.IconX,\n y: positions.IconY\n }\n\n return (\n <MenuSliceIconText {...sliceIconTextOptions}>\n {Config.FONT_AWESOME[icon]}\n </MenuSliceIconText>\n )\n }\n\n return null\n }", "function addBuiltIns(_ref) {\n var PfeIcon = _ref.PfeIcon,\n config = _ref.config;\n\n // If the user wants to completely opt out of default icon sets,\n // allow them to.\n if (config.IconSets && config.IconSets.length === 0) {\n return;\n }\n\n // If the user provides their own icon sets, use them. If not, use our defaults.\n // @TODO: Switch from access.redhat.com to another icon set.\n var iconSets = config.IconSets || [{\n name: \"web\",\n path: \"https://access.redhat.com/webassets/avalon/j/lib/rh-iconfont-svgs\"\n }, {\n name: \"rh\",\n path: \"https://access.redhat.com/webassets/avalon/j/lib/rh-iconfont-svgs\"\n }];\n\n var resolveDefaultIconName = function resolveDefaultIconName(name, iconSetName, iconSetPath) {\n var regex = new RegExp(\"^\" + iconSetName + \"(-icon)?-(.*)\");\n\n var _regex$exec = regex.exec(name),\n _regex$exec2 = slicedToArray(_regex$exec, 3),\n iconName = _regex$exec2[2];\n\n var iconId = iconSetName + \"-icon-\" + iconName;\n var iconPath = iconSetPath + \"/\" + iconId + \".svg\";\n\n return iconPath;\n };\n\n // Register the icon sets.\n iconSets.forEach(function (set) {\n // If there's a `resolveIconName` function provided, use it. If not, fall back\n // to the `resolveDefaultIconName` function.\n if (set.resolveIconName && typeof set.resolveIconName === \"function\") {\n resolveDefaultIconName = set.resolveIconName;\n }\n\n PfeIcon.addIconSet(set.name, set.path, resolveDefaultIconName);\n });\n }", "computeDesktopIcons() {\n var _this = this;\n\n return (0, _bluebirdLst().coroutine)(function* () {\n const packager = _this.packager;\n const iconDir = packager.platformSpecificBuildOptions.icon;\n const sources = [iconDir == null ? \"icons\" : iconDir];\n const commonConfiguration = packager.config;\n let icnsPath = (commonConfiguration.mac || {}).icon || commonConfiguration.icon;\n\n if (icnsPath != null) {\n if (!icnsPath.endsWith(\".icns\")) {\n icnsPath += \".icns\";\n }\n\n sources.push(icnsPath);\n }\n\n sources.push(\"icon.icns\");\n sources.push(path.join((0, _pathManager().getTemplatePath)(\"linux\"), \"electron-icons\"));\n const result = yield packager.resolveIcon(sources, \"set\");\n _this.maxIconPath = result[result.length - 1].file;\n return result;\n })();\n }", "function getIconCode(lang, icon$1, customisations, providerConfig) {\n\t function npmIconImport(preferES) {\n\t const name = codeParsers.varName(icon$1.name);\n\t const npm = preferES\n\t ? providerConfig.npmES\n\t ? providerConfig.npmES\n\t : providerConfig.npmCJS\n\t : providerConfig.npmCJS\n\t ? providerConfig.npmCJS\n\t : providerConfig.npmES;\n\t if (!npm) {\n\t return null;\n\t }\n\t const packageName = typeof npm.package === 'string'\n\t ? npm.package.replace('{prefix}', icon$1.prefix)\n\t : typeof npm.package === 'function'\n\t ? npm.package(providerConfig, icon$1)\n\t : null;\n\t if (typeof packageName !== 'string') {\n\t return null;\n\t }\n\t const file = typeof npm.file === 'string'\n\t ? npm.file.replace('{name}', icon$1.name)\n\t : typeof npm.file === 'function'\n\t ? npm.file(providerConfig, icon$1)\n\t : null;\n\t if (typeof file !== 'string') {\n\t return null;\n\t }\n\t return {\n\t name,\n\t package: packageName,\n\t file,\n\t };\n\t }\n\t const parser = codeParsers.codeParser(lang);\n\t if (!parser) {\n\t return null;\n\t }\n\t // Icon as string\n\t const iconName = icon.iconToString(icon$1);\n\t // Init parser\n\t const attr = parser.init ? parser.init(customisations) : {};\n\t const attrParsers = parser.parsers;\n\t // Add icon name\n\t if (parser.iconParser) {\n\t parser.iconParser(attr, iconName, icon$1);\n\t }\n\t // Add color\n\t if (customisations.color !== '' && attrParsers.color) {\n\t attrParsers.color(attr, customisations.color);\n\t }\n\t // Add dimensions\n\t if (customisations.width === '' &&\n\t customisations.height !== '' &&\n\t attrParsers.onlyHeight) {\n\t attrParsers.onlyHeight(attr, customisations.height);\n\t }\n\t else {\n\t ['width', 'height'].forEach((prop) => {\n\t const key = prop;\n\t if (customisations[key] !== '' && attrParsers[key]) {\n\t // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t attrParsers[key](attr, customisations[key]);\n\t }\n\t });\n\t }\n\t // Transformations\n\t ['rotate', 'vFlip', 'hFlip'].forEach((prop) => {\n\t const key = prop;\n\t if (customisations[key] && attrParsers[key]) {\n\t // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t attrParsers[key](attr, customisations[key]);\n\t }\n\t });\n\t // Inline\n\t if (customisations.inline && attrParsers.inline) {\n\t attrParsers.inline(attr, true);\n\t }\n\t // Merge attributes\n\t const merged = parser.merge ? parser.merge(attr) : '';\n\t // Use template\n\t const html = parser.template\n\t ? resolveTemplate(parser.template, merged, customisations)\n\t : '';\n\t // Generate output\n\t const output = {\n\t docs: parser.docs,\n\t };\n\t // Add language specific stuff\n\t let str;\n\t let data;\n\t let npm;\n\t switch (lang) {\n\t case 'iconify':\n\t str = iconify.Iconify.getVersion ? iconify.Iconify.getVersion() : iconifyVersion;\n\t output.iconify = {\n\t head: '<script src=\"https://code.iconify.design/' +\n\t str.split('.').shift() +\n\t '/' +\n\t str +\n\t '/iconify.min.js\"><' +\n\t '/script>',\n\t html,\n\t };\n\t return output;\n\t case 'svg-raw':\n\t case 'svg-box':\n\t case 'svg-uri':\n\t str = iconify.Iconify.renderHTML\n\t ? iconify.Iconify.renderHTML(iconName, attr)\n\t : null;\n\t if (str === null) {\n\t return null;\n\t }\n\t if (customisations.color !== '') {\n\t str = str.replace(/currentColor/g, customisations.color);\n\t }\n\t if (lang === 'svg-box') {\n\t // Add empty rectangle before shapes\n\t // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t data = iconify.Iconify.getIcon ? iconify.Iconify.getIcon(iconName) : null;\n\t if (data) {\n\t str = str.replace('>', '><rect x=\"' +\n\t data.left +\n\t '\" y=\"' +\n\t data.top +\n\t '\" width=\"' +\n\t data.width +\n\t '\" height=\"' +\n\t data.height +\n\t '\" fill=\"none\" stroke=\"none\" />');\n\t }\n\t else {\n\t return null;\n\t }\n\t }\n\t if (lang === 'svg-uri') {\n\t // Remove unused attributes\n\t const parts = str.split('>');\n\t // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t let firstTag = parts.shift();\n\t ['aria-hidden', 'focusable', 'role', 'class', 'style'].forEach((attr) => {\n\t firstTag = firstTag.replace(new RegExp('\\\\s' + attr + '=\"[^\"]*\"'), '');\n\t });\n\t parts.unshift(firstTag);\n\t str = parts.join('>');\n\t // Encode\n\t str =\n\t \"url('data:image/svg+xml,\" + encodeURIComponent(str) + \"')\";\n\t }\n\t output.raw = [str];\n\t return output;\n\t case 'react-npm':\n\t case 'svelte':\n\t case 'vue2':\n\t case 'vue3':\n\t if (!parser.npm ||\n\t (!providerConfig.npmCJS && !providerConfig.npmES)) {\n\t return null;\n\t }\n\t npm = npmIconImport(lang === 'vue3');\n\t if (!npm) {\n\t return null;\n\t }\n\t output.component = {\n\t install: 'npm install --save-dev ' +\n\t parser.npm.install +\n\t ' ' +\n\t npm.package,\n\t import: resolveTemplate(parser.npm.import, merged, customisations) +\n\t '\\nimport ' +\n\t npm.name +\n\t \" from '\" +\n\t npm.package +\n\t npm.file +\n\t \"';\",\n\t use: html\n\t .replace(/{varName}/g, npm.name)\n\t .replace('{iconPackage}', npm.package + npm.file),\n\t };\n\t if (typeof parser.vueTemplate === 'string') {\n\t output.component.vue = parser.vueTemplate\n\t .replace(/{varName}/g, npm.name)\n\t .replace('{iconPackage}', npm.package + npm.file);\n\t }\n\t return output;\n\t case 'react-api':\n\t if (!parser.npm) {\n\t return null;\n\t }\n\t output.component = {\n\t install1: 'npm install --save-dev ' + parser.npm.install,\n\t import1: resolveTemplate(parser.npm.import, merged, customisations),\n\t use: html,\n\t };\n\t return output;\n\t }\n\t}", "function get_icon(id,mode){\n\tif(id===null) return \"\";\n\telse {\n\t\tvar iconstr=\"\";\n\t\tswitch(mode){\n\t\t\tcase \"type\":\n\t\t\t\tif(id==1) iconstr=\"fa fa-address-card\";\n\t\t\t\telse if(id==2) iconstr=\"fa fa-circle\";\n\t\t\t\telse if(id==3) iconstr=\"fa fa-unlink\";\n\t\t\t\telse if(id==4) iconstr=\"fa fa-bolt\";\n else if(id==5) iconstr=\"far fa-calendar-check\";\n else if(id==6) iconstr=\"far fa-calendar-times\";\n else if(id==7) iconstr=\"far fa-calendar-plus\";\n else if(id==8) iconstr=\"fas fa-user-check\";\n\t\t\tbreak;\n\t\t\tcase \"doorlock\":\n\t\t\t\tif(id==1) iconstr=\"fa fa-rss\";\n\t\t\t\telse if(id==2) iconstr=\"fa fa-thumbs-up\";\n\t\t\t\telse if(id==3) iconstr=\"fa fa-circle\";\n\t\t\tbreak;\n\t\t\tcase \"denialcause\":\n\t\t\t\tif(id==1) iconstr=\"fa fa-ban\";\n\t\t\t\telse if(id==2) iconstr=\"far fa-calendar-times\";\n\t\t\t\telse if(id==3) iconstr=\"far fa-clock\";\n\t\t\tbreak;\n\t\t\tcase \"side\":\n\t\t\t\tif(id==0) iconstr=\"fa fa-sign-out-alt\";\n\t\t\t\telse if(id==1) iconstr=\"fa fa-sign-in-alt\";\n\t\t\tbreak;\n\t\t\tcase \"allowed\":\n\t\t\t\tif(id==0) iconstr=\"fa fa-times\";\n\t\t\t\telse if(id==1) iconstr=\"fa fa-check\";\n\t\t\tbreak;\n\t\t\tdefault: break;\n\t\t}\n\t\tif(iconstr!=\"\") return \"<span class='\"+ iconstr +\"'></span>\";\n\t\telse return \"\";\n\t}\n}", "function fullIcon(data) {\n return { ...exports.iconDefaults, ...data };\n}", "function getIcon(_icon) {\n switch (_icon) {\n case \"info\":\n return _icon + \" bz-information-icon\";\n case \"warning\":\n return _icon + \" bz-ontime-normal\";\n case \"error\":\n return _icon + \" bz-overdue-normal\";\n case \"success\":\n return _icon + \" bz-upcoming-normal\";\n default:\n return _icon + \" bz-workonit\";\n }\n }", "function approximateIcons(currIcon) {\n console.log('currIcon', currIcon);\n if (currIcon === 'clear-day') {\n return 'sun';\n } else if (currIcon === 'fog') {\n return 'visibility';\n } else if (isDay(currIcon)) {\n return 'weather';\n }\n for (var i = 0, length = iconStrs.length; i < length; i++) {\n if (iconStrs[i] === currIcon) {\n return currIcon;\n }\n }\n return 'weather';\n }", "function FcAbout (props) {\n return Object(_lib__WEBPACK_IMPORTED_MODULE_0__[\"GenIcon\"])({\"tag\":\"svg\",\"attr\":{\"version\":\"1\",\"viewBox\":\"0 0 48 48\",\"enableBackground\":\"new 0 0 48 48\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"fill\":\"#2196F3\",\"d\":\"M37,40H11l-6,6V12c0-3.3,2.7-6,6-6h26c3.3,0,6,2.7,6,6v22C43,37.3,40.3,40,37,40z\"}},{\"tag\":\"g\",\"attr\":{\"fill\":\"#fff\"},\"child\":[{\"tag\":\"rect\",\"attr\":{\"x\":\"22\",\"y\":\"20\",\"width\":\"4\",\"height\":\"11\"}},{\"tag\":\"circle\",\"attr\":{\"cx\":\"24\",\"cy\":\"15\",\"r\":\"2\"}}]}]})(props);\n}", "function Icon(props){\n let url = '';\n switch (props.icon) {\n case '01d':\n url = 'http://openweathermap.org/img/w/01d.png'\n break;\n case '02d' : \n url = 'http://openweathermap.org/img/w/02d.png'\n break;\n case '03d':\n url = 'http://openweathermap.org/img/w/03d.png'\n break;\n case '04d':\n url = 'http://openweathermap.org/img/w/04d.png'\n break;\n case '09d':\n url = 'http://openweathermap.org/img/w/09d.png'\n break;\n case '10d':\n url = 'http://openweathermap.org/img/w/10d.png'\n break;\n case '11d':\n url = 'http://openweathermap.org/img/w/11d.png'\n break;\n case '13d':\n url = 'http://openweathermap.org/img/w/13d.png'\n break;\n case '50d':\n url = 'http://openweathermap.org/img/w/50d.png'\n break;\n case '01n':\n url = 'http://openweathermap.org/img/w/01n.png'\n break;\n case '02n' : \n url = 'http://openweathermap.org/img/w/02n.png'\n break;\n case '03n':\n url = 'http://openweathermap.org/img/w/03n.png'\n break;\n case '04n':\n url = 'http://openweathermap.org/img/w/04n.png'\n break;\n case '09n':\n url = 'http://openweathermap.org/img/w/09n.png'\n break;\n case '10n':\n url = 'http://openweathermap.org/img/w/10n.png'\n break;\n case '11n':\n url = 'http://openweathermap.org/img/w/11n.png'\n break;\n case '13n':\n url = 'http://openweathermap.org/img/w/13n.png'\n break;\n case '50n':\n url = 'http://openweathermap.org/img/w/50n.png'\n break;\n default: \n break;\n \n }\n\n return (\n <img src={url} alt='weather-icon'/>\n )\n}", "function getIcon(iconValue) {\n switch(iconValue) {\n case \"website\":\n return \"fa fa-globe\";\n case \"reddit\":\n return \"fa fa-reddit\";\n case \"github\":\n return \"fa fa-github\";\n case \"blog\":\n return \"fa fa-rss\";\n case \"portfolio\":\n return \"fa fa-briefcase\";\n }\n}", "function TabBarIcon(props) {\n return props.family === \"Ionicons\" ? <Ionicons size={30} style={{ marginBottom: -3 }} {...props} />: <MaterialIcons size={30} style={{ marginBottom: -3 }} {...props} />;\n}", "get icon()\n\t{\n\t\tthrow new Error(\"Not implemented\");\n\t}", "function remapInternalIcon(vm, iconName) {\n // Look for custom component in the configuration\n const component = vm.$vuetify.icons.component; // Look for overrides\n\n if (iconName.startsWith('$')) {\n // Get the target icon name\n const iconPath = `$vuetify.icons.values.${iconName.split('$').pop().split('.').pop()}`; // Now look up icon indirection name,\n // e.g. '$vuetify.icons.values.cancel'\n\n const override = getObjectValueByPath(vm, iconPath, iconName);\n if (typeof override === 'string') iconName = override;else return override;\n }\n\n if (component == null) {\n return iconName;\n }\n\n return {\n component,\n props: {\n icon: iconName\n }\n };\n}" ]
[ "0.6401513", "0.6260129", "0.6250962", "0.6234241", "0.6216329", "0.6195067", "0.6183047", "0.6177531", "0.6177531", "0.6177531", "0.6131964", "0.6131964", "0.6131964", "0.6123578", "0.6123578", "0.6120065", "0.6120065", "0.60722744", "0.60722744", "0.6066072", "0.6062497", "0.60573184", "0.60573184", "0.60460615", "0.60460615", "0.603249", "0.603249", "0.6032129", "0.6032129", "0.6031685", "0.6031685", "0.60226053", "0.60226053", "0.6002167", "0.6002167", "0.600075", "0.600075", "0.6000645", "0.6000645", "0.6000496", "0.6000496", "0.5983976", "0.5983976", "0.5983447", "0.5983447", "0.5975301", "0.5975301", "0.5962198", "0.5962198", "0.5948899", "0.5948899", "0.5941995", "0.5923597", "0.5923597", "0.59000474", "0.5895811", "0.5891744", "0.5845226", "0.58141243", "0.5808005", "0.57220083", "0.5694226", "0.56910115", "0.56828386", "0.56650907", "0.56650907", "0.56429", "0.5635296", "0.561608", "0.56048375", "0.5598696", "0.5576627", "0.55747664", "0.5566863", "0.5566825", "0.5553395", "0.5549744", "0.55421513", "0.55392736", "0.5529338", "0.5524809", "0.55199975", "0.55199975", "0.55147", "0.5511847", "0.55068463", "0.55042523", "0.54650146", "0.5460001", "0.5459533", "0.5435366", "0.5433079", "0.5432685", "0.543086", "0.542241", "0.54179853", "0.5415988", "0.5396018", "0.5362252", "0.5352004" ]
0.74498
0
If the first parameter is an object, it should loop over the object's properties and call the callback for each one. The property value should be the first parameter passed to the callback and the property name should be the second. If the first parameter is an array, it should loop over the array's elements and call the callback for each one. The array element should be the first parameter passed to the callback and the index should be the second.
function each(list, calling) { for (var thing in list) { calling(list[thing], thing); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function each(objOrArr, callBack) {\n\n\n}", "function each(arr1, callBack) {\n for (var i = 0; i < arr1.length; i++) {\n var item = arr1[i];\n var indice = i;\n callBack(item, indice);\n }\n}", "function forEach(obj, callback, thisObject) {\n var keys = Object.keys(obj);\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n callback.call(thisObject, obj[key], key, obj);\n }\n}", "function each(object, callback, args) {\n\tif (!object) return;\n\tvar\n\tname,\n\ti = 0,\n\tlength = object.length,\n\tisObj = isUndefined(length) || isFunction(object);\n\t\n\tif (args) {\n\t\tif (isObj) {\n\t\t\tfor (name in object) {\n\t\t\t\tif (callback.apply(object[name], args) === FALSE) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor (; i < length; i++) {\n\t\t\t\tif (callback.apply(object[i], args) === FALSE) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else { // A special, fast, case for the most common use of each\n\t\tif (isObj) {\n\t\t\tfor (name in object) {\n\t\t\t\tif (callback.call(object[name], object[name], name) === FALSE) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor (; i < length; i++) {\n\t\t\t\tif (callback.call(object[i], object[i], i) === FALSE) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn object;\n}", "function forEachCall(obj, func) {\n \n // loop though the items in the object\n for (var prop in obj) {\n \n // restrict to only immediate properties of the object (exclude inherited)\n if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n\n // call the function passing in the value and property\n func.call(null, obj[prop], prop);\n }\n }\n }", "function forEachValue(obj, callback) {\n Object.keys(obj).forEach(function (item) {\n callback(obj[item], item, obj);\n });\n}", "function each (object , fn){\r\n if ((!Array.isArray (object))&&(typeof object === \"object\")){\r\n for (var key in object){\r\n fn (object[key], key)\r\n };\r\n };\r\n}", "function forEachIn(object, callback) {\n for (var p in object) {\n callback(p);\n }\n }", "function iterate(object, callback) {\n\t\tfor (var key in object) {\n\t\t\tif (object.hasOwnProperty(key)) {\n\t\t\t\tcallback(key, object[key]);\n\t\t\t}\n\t\t}\n\t}", "function iterate(object, callback) {\n\t\tfor (var key in object) {\n\t\t\tif (object.hasOwnProperty(key)) {\n\t\t\t\tcallback(key, object[key]);\n\t\t\t}\n\t\t}\n\t}", "_loop(index0, callback) {\n for (var key0 in index0) callback(key0);\n }", "function forEach(cb, obj) {\r\n if (obj) {\r\n for (var i = 0; i < this.length; i++) {\r\n cb.call(obj, this[i], i);\r\n }\r\n } else {\r\n for (var i = 0; i < this.length; i++) {\r\n cb(this[i], i);\r\n }\r\n }\r\n}", "function each(collection, callback){\n if(collection.length){\n for(var i = 0; i < collection.length; i++){\n callback(collection[i]);\n }\n } \n else if(typeof collection === 'object'){\n for(var key in collection){\n callback(collection[key]);\n }\n }\n else {\n console.log('first parameter is not a collection');\n }\n}", "function callTest(data){\n var call_array=data.tests[data.actual_name]; //array\n if (call_array)\n for (var n=0;n<call_array.length;n++){\n var params=call_array[n];\n console.log(\"- con params: \",JSON.stringify(params.slice(0,2)),\"callback: \",typeof params[2]);\n data.obj_to_test[data.actual_name](params[0],params[1],params[2]); //call fn con los params - params[3] es una callbackfn\n }\n}", "_loop(index0, callback) {\n for (const key0 in index0) callback(key0);\n }", "function _forEach(obj, cb, _this) {\n if (isArray(obj))\n return obj.forEach(cb, _this);\n Object.keys(obj).forEach(function (key) { return cb(obj[key], key); });\n }", "function each(object, callback) {\n if (!object) return\n for (const key of Object.keys(object)) {\n callback(object[key], key)\n }\n}", "each( callback, ...names ) {\n\t\tconst { stack } = this;\n\t\tconst { length } = stack;\n\t\tlet value = getLast( stack );\n\n\t\tfor ( const name of names ) {\n\t\t\tvalue = value[ name ];\n\t\t\tstack.push( name, value );\n\t\t}\n\n\t\tfor ( let i = 0; i < value.length; ++i ) {\n\t\t\tif ( i in value ) {\n\t\t\t\tstack.push( i, value[ i ] ); // If the callback needs to know the value of i, call\n\t\t\t\t// path.getName(), assuming path is the parameter name.\n\n\t\t\t\tcallback( this );\n\t\t\t\tstack.length -= 2;\n\t\t\t}\n\t\t}\n\n\t\tstack.length = length;\n\t}", "function _forEach(obj, cb, _this) {\n if (isArray(obj))\n return obj.forEach(cb, _this);\n Object.keys(obj).forEach(function (key) { return cb(obj[key], key); });\n}", "function _forEach(obj, cb, _this) {\n if (isArray(obj))\n return obj.forEach(cb, _this);\n Object.keys(obj).forEach(function (key) { return cb(obj[key], key); });\n}", "function each(collection, callback) {\n\tif (Array.isArray(collection)) {\n\t\tfor (var i=0; i<collection.length; i++) {\n\t\tcallback(collection[i]);\n\t\t}\n\t} else {\n\t\tfor (var prop in collection) {\n\t\t\tcallback(collection[prop]);\n\t\t}\n\t}\n\n}", "function forMethods(obj, props, callback) {\n var prop;\n if (typeof props === \"string\") {\n // A single prop string was passed. Create an array.\n props = [props];\n } else if (props == null) {\n // No props were passed, so iterate over all properties, building an\n // array. Unfortunately, Object.keys(obj) doesn't work everywhere yet, so\n // this has to be done manually.\n props = [];\n for (prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n props.push(prop);\n }\n }\n }\n // Execute callback for every method in the props array.\n var i = props.length;\n while (i--) {\n // If the property isn't a function...\n if (toString.call(obj[props[i]]) !== \"[object Function]\" ||\n // ...or the callback returns false...\n callback(obj, props[i]) === false) {\n // ...remove it from the props array to be returned.\n props.splice(i, 1);\n }\n }\n // Return an array of method names for which the callback didn't fail.\n return props;\n }", "function each(fn, obj) {\n if (Array.isArray(obj)) {\n return obj.forEach(fn);\n }\n Object.keys(obj).forEach((key) => fn(obj[key], key));\n}", "function forEach$3(object, callback) {\n if (isArray$5(object)) {\n // array\n var len = object.length;\n\n for (var i = 0; i < len; i++) {\n callback(object[i], i, object);\n }\n } else {\n // object\n for (var key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n callback(object[key], key, object);\n }\n }\n }\n}", "function myForEach(array, callback) {\n\n}", "function dokv(ob, doSomething){\n /* do on keys and values\n */\n for (var property in ob) {\n if (ob.hasOwnProperty(property)) {\n var value = ob[property];\n doSomething(property, value);\n }\n }\n}", "function _forEach(obj, cb, _this) {\n if (predicates_1.isArray(obj))\n return obj.forEach(cb, _this);\n Object.keys(obj).forEach(function (key) { return cb(obj[key], key); });\n}", "function _forEach(obj, cb, _this) {\n if (predicates_1.isArray(obj))\n return obj.forEach(cb, _this);\n Object.keys(obj).forEach(function (key) { return cb(obj[key], key); });\n}", "function _forEach(obj, cb, _this) {\n\t if (predicates_1.isArray(obj))\n\t return obj.forEach(cb, _this);\n\t Object.keys(obj).forEach(function (key) { return cb(obj[key], key); });\n\t}", "function _forEach(obj, cb, _this) {\n\t if (predicates_1.isArray(obj))\n\t return obj.forEach(cb, _this);\n\t Object.keys(obj).forEach(function (key) { return cb(obj[key], key); });\n\t}", "function forEachCallback(value, index) {\n console.log(`The value is ${value}`);\n console.log(`The index is ${index}`);\n}", "function forEachIn(obj, callback, _this) {\r\n for (var key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n callback.call(_this || this, key, obj[key]); // inherit this function's context if _this is not specified\r\n }\r\n }\r\n}", "function forEach$3(object, callback) {\n if (isArray$3(object)) {\n // array\n var len = object.length;\n\n for (var i = 0; i < len; i++) {\n callback(object[i], i, object);\n }\n } else {\n // object\n for (var key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n callback(object[key], key, object);\n }\n }\n }\n}", "function forIn(obj, callback, context) {\n var keys = Object.keys(obj),\n i;\n\n context = context || this;\n\n for (i = 0; i < keys.length; i++) {\n callback.call(context, obj[keys[i]], keys[i]);\n }\n }", "function each(obj, fn) {\n\t\tif (!obj) { return; }\n\t\t\n\t\tvar name, i = 0, length = obj.length;\n\t\n\t\t// object\n\t\tif (length === undefined) {\n\t\t\tfor (name in obj) {\n\t\t\t\tif (fn.call(obj[name], name, obj[name]) === false) { break; }\n\t\t\t}\n\t\t\t\n\t\t// array\n\t\t} else {\n\t\t\tfor (var value = obj[0];\n\t\t\t\ti < length && fn.call( value, i, value ) !== false; value = obj[++i]) {\t\t\t\t\n\t\t\t}\n\t\t}\n\t\n\t\treturn obj;\n\t}", "_loopBy2Keys(index0, key0, key1, callback) {\n var index1, index2, key2;\n\n if ((index1 = index0[key0]) && (index2 = index1[key1])) {\n for (key2 in index2) callback(key2);\n }\n }", "function forEachIn(object, action) {\n\t for (var propertyName in object){\n\t //if (object.hasOwnProperty.call(object, propertyName)) \n\t action(propertyName, object[propertyName]);\n\t }\n\t}", "_loopBy2Keys(index0, key0, key1, callback) {\n let index1, index2, key2;\n if ((index1 = index0[key0]) && (index2 = index1[key1])) {\n for (key2 in index2) callback(key2);\n }\n }", "_loopByKey0(index0, key0, callback) {\n let index1, key1;\n if (index1 = index0[key0]) {\n for (key1 in index1) callback(key1);\n }\n }", "function forEach(obj, callback) {\n if (obj) {\n for (var key in obj) {\n // eslint-disable-line no-restricted-syntax\n if ({}.hasOwnProperty.call(obj, key)) {\n callback(key, obj[key]);\n }\n }\n }\n}", "function myForEach(arr, callback) {\n for (var i = 0; i < arr.length; i++) {\n // I don't feel like providing the index today\n callback(arr[i], i);\n }\n}", "function each(obj, action) {\n if (obj.constructor === Array) { // Array.isArray(input)\n for (var i = 0; i < obj.length; i++) {\n action(obj[i]);\n }\n }\n else if (obj.constructor === Object) { // typeof input === \"object\"\n for (var key in obj) {\n action(obj[key]);\n }\n }\n}", "function forEachProperty(map, callback) {\n var result;\n for (var key in map) {\n if (result = callback(map[key], key))\n break;\n }\n return result;\n }", "_loopByKey0(index0, key0, callback) {\n var index1, key1;\n\n if (index1 = index0[key0]) {\n for (key1 in index1) callback(key1);\n }\n }", "function forEachIn(object, action) {\n var property;\n\n for (property in object) {\n if (object.hasOwnProperty(property)) {\n action(property, object[property]);\n }\n }\n}", "forAllObjects (fcn, obj = {}) {\n for (var i = 0, len = this.length; i < len; i++) {\n this.getObject(i, obj)\n fcn(obj, i)\n }\n }", "function bindCallbacks( o, callbacks, args ) {\n\t\tvar prop = QUnit.objectType( o );\n\t\tif ( prop ) {\n\t\t\tif ( QUnit.objectType( callbacks[ prop ] ) === \"function\" ) {\n\t\t\t\treturn callbacks[ prop ].apply( callbacks, args );\n\t\t\t} else {\n\t\t\t\treturn callbacks[ prop ]; // or undefined\n\t\t\t}\n\t\t}\n\t}", "function each(obj, fn) {\r\n for (var key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n fn(key, obj[key]);\r\n }\r\n }\r\n}", "function each(obj, fn) {\r\n for (var key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n fn(key, obj[key]);\r\n }\r\n }\r\n}", "function each(obj, fn) {\r\n for (var key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n fn(key, obj[key]);\r\n }\r\n }\r\n}", "function each(obj, fn) {\r\n for (var key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n fn(key, obj[key]);\r\n }\r\n }\r\n}", "function each(collection, callback){\n\tif(Array.isArray(collection)){\n\t\tfor(var i = 0; i<collection.length; i++){\n\t\t\tcallback(collection[i]);\n\t\t}\n\t} else {\n\t\tfor(key in collection){\n\t\t\tcallback(collection[key]);\n\t\t}\n\t}\n}", "function each(obj, fn) {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n fn(key, obj[key]);\n }\n }\n}", "function each(obj, fn) {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n fn(key, obj[key]);\n }\n }\n}", "function each(obj, fn) {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n fn(key, obj[key]);\n }\n }\n}", "function each(collection, callback) {\n\tif (Array.isArray(collection)) {\n\t\tfor (var i = 0; i<collection.length; i++) {\n\t\t\tcallback(collection[i]);\n\t\t}\n\t} else {\n\t\tfor (var j in collection) {\n\t\t\tcallback(collection[j]);\n\t\t}\n\t}\n}", "function enumerateObj(obj, fn) {\n for (var key in obj) {\n fn(obj[key], key);\n }\n }", "function forEachValue (obj, iteratee) {\n Object.keys(obj).forEach((key) => iteratee(obj[key], key, obj))\n}", "function forEachIn(object, action) {\n\tfor (var property in object) {\n\t\tif (object.hasOwnProperty(property))\n\t\t\taction(property, object[property]);\n\t}\n}", "_loopByKey1(index0, key1, callback) {\n let key0, index1;\n for (key0 in index0) {\n index1 = index0[key0];\n if (index1[key1]) callback(key0);\n }\n }", "function each(obj, cb) {\n if (!obj) return;\n\n if (!Array.isArray(obj) && typeof obj === \"object\") obj = Object.keys(obj);\n\n obj.forEach(cb);\n }", "function forEach(iterable, callbackFn) {\n\tfor(var key in iterable) {\n\t\tif (iterable.hasOwnProperty(key)) {\n\t\t\tcallbackFn(iterable[key])\n\t\t}\n\t}\n}", "function myForEach(array, callback) {\n for (let i = 0; i < array.length; i++) {\n callback(array[i]);\n }\n}", "function each(item, cb) {\n if(isObject(item)) {\n for (let key of keys(item)) {\n cb(item[key], key);\n }\n } else if(isArrayLike(item)) {\n [...item].forEach(cb);\n } else {\n throw new Error('Argument is not iterable');\n }\n}", "function myForEach(array, callback){\n //the func acts on each element in the array\n for(let i=0; i<array.length; i++){\n callback(array[i], i)\n }\n //don't worry about return\n}", "function each(subject, callback) {\n if (callback && !isFunction(callback)) {\n throw new Error('Iterator requires the second argument to be a callback.');\n }\n\n if (isArray(subject)) {\n for (var i = 0, l = subject.length; i < l; i++) {\n if (callback.apply(subject[i], [i, subject[i]]) === false) {\n break;\n }\n }\n }\n else if (isObject(subject)) {\n for (var keys = Object.keys(subject), i = 0, l = keys.length; i < l; i++) {\n if (callback.apply(subject[keys[i]], [keys[i], subject[keys[i]]]) === false) {\n break;\n }\n }\n }\n else {\n throw new Error('Iterator requires the first argument to be an array or object');\n }\n }", "function forEachIn(object, action) {\n\tfor (var property in object) {\n\t\tif (Object.prototype.hasOwnProperty.call(object, property))\n\t\t\taction(property, object[property]);\n\t}\n}", "function walk(arrOrObj, fn, opt_walkAll) {\r\n var done, c = 0, k = 0, l, endWalk = function() { done = arguments; },\r\n caller = function(k) { c++; fn.call(endWalk, arrOrObj[k], k, arrOrObj); };\r\n if (isArrayLike(opt_walkAll)) {\r\n for (l = opt_walkAll.length; k < l; k++) {\r\n if (has(opt_walkAll, k)) {\r\n caller(opt_walkAll[k]);\r\n if (done) { break; }\r\n }\r\n }\r\n }\r\n else if (isArrayLike(arrOrObj)) {\r\n for (l = arrOrObj.length; k < l; k++) {\r\n if (opt_walkAll || has(arrOrObj, k)) {\r\n caller(k);\r\n if (done) { break; }\r\n }\r\n }\r\n }\r\n else {\r\n for (k in arrOrObj) {\r\n if (opt_walkAll || has(arrOrObj, k)) {\r\n caller(k);\r\n if (done) { break; }\r\n }\r\n }\r\n }\r\n return done && done.length ? done : c;\r\n }", "function someObject(object, callback, context) {\n\t for (var name in object) {\n\t if (hasOwnProperty.call(object, name)) {\n\t if (callback.call(context, object[name], name, object)) {\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t}", "function someObject(object, callback, context) {\n\t for (var name in object) {\n\t if (hasOwnProperty.call(object, name)) {\n\t if (callback.call(context, object[name], name, object)) {\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t}", "function someObject(object, callback, context) {\n\t for (var name in object) {\n\t if (hasOwnProperty.call(object, name)) {\n\t if (callback.call(context, object[name], name, object)) {\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t}", "function eachField(object, callback, context) {\n\t getFieldNames(object).forEach(function (name) {\n\t callback.call(this, name, getFieldValue(object, name));\n\t }, context);\n\t }", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}", "forEach(callback) {\n\t\tlet thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n\n\t\tlet pairs = getHeaders(this);\n\t\tlet i = 0;\n\t\twhile (i < pairs.length) {\n\t\t\tvar _pairs$i = pairs[i];\n\t\t\tconst name = _pairs$i[0],\n\t\t\t value = _pairs$i[1];\n\n\t\t\tcallback.call(thisArg, value, name, this);\n\t\t\tpairs = getHeaders(this);\n\t\t\ti++;\n\t\t}\n\t}" ]
[ "0.682296", "0.65221745", "0.6321434", "0.62480694", "0.6215558", "0.62066424", "0.6002798", "0.59701455", "0.5941176", "0.5941176", "0.5933658", "0.59194165", "0.590782", "0.5900983", "0.5899266", "0.58979326", "0.5897203", "0.5865748", "0.58479834", "0.58479834", "0.5847886", "0.58097494", "0.5809607", "0.578935", "0.5769542", "0.5763516", "0.5759154", "0.5759154", "0.5750713", "0.5750713", "0.57455033", "0.57334", "0.57312274", "0.57202214", "0.56968015", "0.5686177", "0.56647784", "0.5664664", "0.566441", "0.5645348", "0.56322306", "0.56224054", "0.56180775", "0.5613336", "0.55656856", "0.5560921", "0.55573875", "0.55433685", "0.55433685", "0.55433685", "0.55433685", "0.55313164", "0.5530961", "0.5530961", "0.5530961", "0.5529954", "0.5527262", "0.5525926", "0.5517764", "0.55143476", "0.55131733", "0.55074465", "0.5504478", "0.54828596", "0.54683995", "0.54628843", "0.54615504", "0.54399645", "0.54379755", "0.54379755", "0.54379755", "0.54341614", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903", "0.5432903" ]
0.0
-1
Write a function that takes an array as a parameter and returns a new array containing all of the items that are in the array that was passed in but in reverse order. Unlike the reverse method that all arrays have, this function should leave the original array unchanged.
function mirrow(anArray) { var mirrowing = anArray.slice(0, anArray.length); mirrowing.reverse(); return mirrowing; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reverse(array){\n\tresult =[];\n\tiLen = array.length-1;\n\tarray.forEach(function(item,i){\n\t\tresult[i]=array[iLen-i];\n\t});\n\treturn result;\n}", "function reverseArray(array) {\n return array.reverse();\n}", "function reverseArray (array) {\n array.reverse();\n}", "function inverseArray(array) {\n oldArray = array;\n newArray = [];\n for (i = array.length - 1; i >= 0; i--) {\n newArray.push(oldArray[i]);\n }\n return newArray;\n}", "function reverseArray(array){\n //Empty Array to store the new array\n var reversed = [];\n for (var i = array.length - 1; i >= 0; i--){\n reversed.push(array[i]);\n }\n return reversed;\n}", "function reverseArray(array) {\n var finalArray = []\n for (var i=array.length-1;i>=0;i--) {\n finalArray.push(array[i])\n }\n return finalArray;\n}", "function reverse(array) {\n var output = [];\n\n for (let i = array.length - 1; i >= 0; i--) {\n output.push(array[i]);\n }\n\n return output;\n}", "function reverseArray(array) {\n var result = [];\n \n for (var i = array.length - 1; i >= 0; i--) {\n result.push(array[i]);\n }\n \n return result;\n}", "function reverseArray(array) {\n let result = [];\n\n for (let i = array.length - 1; i >= 0; i--) {\n result.push(array[i])\n }\n\n return result;\n}", "function reverse(arr) {\n var newarr = [];\n for (i = arr.length-1; i > -1; i--) {\n newarr.push(arr[i]);\n }\n arr = newarr;\n return arr;\n}", "function reverse(array) {\n\t var copy = array.slice();\n\t copy.reverse();\n\t return copy;\n\t }", "function reverse(theArray){\nconst newArray = [];\nfor (let i= theArray.length -1; i>= 0; i--){\nnewArray.push(theArray [i]);\n}\nreturn newArray;\n}", "function reverseArray(array = []) {\n const arrayLength = array.length;\n let newArray = []\n for(let i = arrayLength - 1 ; i >= 0; i--){\n newArray.push(array[i]);\n }\n return newArray;\n}", "function reverse (arr) {\n newArr = []\n for (var i = arr.length - 1; i >= 0; --i){\n newArr.push(arr[i])\n }\n return newArr\n}", "function reverseArray2(array) {\n let output = [];\n\n for (let i = array.length - 1; i >= 0; i--) {\n output.push(array[i]);\n }\n return output;\n}", "function reverse(arr) {\n return arr.reverse();\n}", "function reversed(arr) {\n var result = [];\n\n for (var i = arr.length - 1; i >= 0; i--) {\n result.push(arr[i]);\n }\n\n return result;\n}", "function reverseArray(array){\n newArray = []\n while (array.length > 0){\n newArray.push(array.pop())\n }\n return newArray\n}", "function reverseArray([arrItems]) {\n\n let revArr = [];\n\n for (var i = arrItems.length - 1; i >= 0; i--) {\n revArr.push(arrItems[i]);\n }\n return revArr;\n}", "function reverseArray(array){\n let newArray=[];\n for(let i=array.lenght -1;i>=0;i--){\n newArray.push(array[i])\n }\n return newArray\n}", "function reverseArr(arg) {\n return arg.reverse();\n}", "function reverseArrayInPlace(array) {\n for (i = 0; i <= Math.floor(array.length / 2); i++) {\n a = array[i];\n b = array[array.length - 1 - i];\n array[i] = b;\n array[array.length - 1 - i] = a;\n }\n return array;\n}", "function reverseArray(arr){\n var newArr = [];\n for(var i=arr.length-1; i>=0; i--){\n newArr += arr;\n }\n return newArr;\n }", "function reverseArray(array){\n let array1 = []\n for (let i=array.length - 1;i>=0;i--){\n array1.push(array[i])\n }\n return array1\n}", "function reverse(a){\n let newA = [];\n\n for(let i = a.length-1; i >= 0 ; i--){\n newA.push(a[i]);\n }\n\n return newA;\n}", "function reverseArray(array) {\n var newArray = [];\n for (var i = 0; i < array.length; i++) {\n newArray.unshift(array[i]); // insert each element at its start\n } \n return newArray;\n}", "function reverseArray(arr) {\n arr.reverse();\n}", "function reverseArray(array) {\n // Your code here\n let newArr = [];\n for (let i = 0; i < array.length; i++) {\n newArr.push(array[array.length - i - 1]);\n }\n return newArr;\n}", "function Reverse (arr){\n let newarr = []\n for (let i = arr.length -1; i >= 0; i--){\n newarr.push(arr[i])\n } \n return newarr\n}", "function reverseArray(array) {\r\n let reversedArray = [];\r\n let reversedArrayIndex = 0;\r\n for (let i = array.length - 1; i >= 0; i--) {\r\n reversedArray[reversedArrayIndex] = array[i];\r\n reversedArrayIndex++;\r\n }\r\n return reversedArray;\r\n}", "function reverseArray(arr) {\n var new_arr = []; \n for(var i = arr.length -1; i>= 0; i--){\n new_arr.push(arr[i]);\n }\n return new_arr;\n}", "function reverseArray(input){\n\tvar output = [];\n\tfor (var i=0; i<input.length; i++){\n\t\toutput.unshift(input[i]);\n\t}\n\treturn output;\n}", "function reverse(array) {\n for (let leftIdx = 0, rightIdx = array.length - 1; leftIdx < array.length / 2; leftIdx++, rightIdx--) {\n [array[leftIdx], array[rightIdx]] = [array[rightIdx], array[leftIdx]];\n }\n\n return array;\n}", "function reverseArray(array) {\n // Your code here\n var revArr = [];\n for(var i = array.length - 1; i > -1; --i) {\n revArr.push(array[i]);\n }\n return revArr;\n}", "function myReverse(arr){\n let result = [];\n for(let i = arr.length -1; i >= 0;i--){\n result.push(arr[i]);\n }\n return result;\n}", "function reverserArr(arr){\n var newArr = []\n for(var i = arr.length-1; i >=0 ;i--){\n newArr.push(arr[i])\n }\n return newArr\n}", "function reverseArray(array) {\n // Your code here\n var counter = 0;\n var newarray = [];\n for(var i = array.length-1; i>=0; i--){\n newarray[counter] = array[i];\n counter++;\n }\n return newarray;\n}", "function reverseInPlace(array) {\n let len = array.length;\n for (let i = len - 1; i >= 0; i -= 1) {\n array.push(array[i]);\n }\n while (len > 0) {\n array.shift();\n len -= 1;\n }\n return array;\n}", "function reverseArray(array){\n let newArray=[];\n if(Array.isArray(array)){\n for(let i=array.length-1;i>=0;i--){\n newArray.push(array[i]);\n }\n }\n return newArray;\n}", "function reverseArrayInPlace(array) {\n for (let i = 0; i < Math.floor(array.length / 2); i++) {\n let old = array[i];\n array[i] = array[array.length - 1 - i];\n array[array.length - 1 - i] = old;\n }\n return array;\n}", "function reverseArr(array) {\n\tvar newArr = [];\n for(var i = 0; i < array.length; i++) {\n \tnewArr.unshift(array[i]);\n console.log(newArr);\n }\n return newArr;\n}", "function reverseArray(arr) {\n var results = [];\n var i;\n var j = 0;\n for (i = arr.length - 1; i >= 0; i--) {\n results[j] = arr[i];\n j++;\n }\n return results;\n}", "function invert_copy(array) {\r\n let arr = []\r\n for (let i = array.length - 1; i >= 0; i--) {\r\n arr.push(array[i]);\r\n }\r\n return arr;\r\n}", "function reverseArrayInPlace(array){\n\n let end = array.length - 1;\n let start = 0;\n while(end > start){\n \n let tmp = array[start]\n\n array[start] = array[end]\n array[end] = tmp\n\n end--;\n start++;\n }\n return array;\n}", "function reverseArray(a) {\n /** built in method */\n a.reverse();\n\n /** custom approach */\n const temp = [];\n for (let i = a.length-1; i >= 0; i--) {\n temp.push(a[i]);\n }\n console.log(temp);\n return temp;\n}", "function reverseThis(arrayEntered) {\n return arrayEntered.reverse();\n}", "function reverseArray(arr) {\n let newArr = [];\n for (item of arr) {\n newArr.unshift(item);\n }\n return newArr;\n}", "function reverseArray(arr){\n var n_arr = [];\n for(i = arr.length; i > 0; i--)\n n_arr[arr.length-i] = arr[i-1];\n return n_arr;\n}", "function mirroredArray(arr) {\n return arr.concat([].concat(arr).reverse());\n}", "function reverse(arr) {\n let reversedArr;\n\n for (let i = arr.length - 1; i >= 0; i--) {\n reversedArr.push(arr[i])\n }\n\n return reversedArr;\n}", "function reverseArr(arr) {\r\n var tempArr = []\r\n\r\n for(let i = 0, j = arr.length - 1; i < arr.length; i++, j--){\r\n tempArr[i] = arr[j]\r\n }\r\n /* for(let i in arr)\r\n tempArr[i] = arr[(arr.length - 1) - i] */\r\n \r\n return tempArr\r\n //return arr.reverse()\r\n}", "function returnReversed(arr) {\n for(var i = 0; i < arr.length / 2; i++) {\n var temp = arr[i];\n arr[i] = arr[arr.length - 1 - i];\n arr[arr.length - 1 - i] = temp;\n }\n return arr;\n}", "function arrReverse(arr){\n\tlet temp=[];\n\tfor(let i=arr.length-1; i >=0; i--){\n\t\ttemp.push(arr[i]);\n\t}\n\treturn temp;\n}", "function reverse(arr){\n y = arr.length-1;\n for (x = 0; x < arr.length/2; x++){\n var swap = arr[x];\n arr[x] = arr[y];\n arr[y] = swap;\n y = y - 1;\n }\n return arr;\n}", "function reverse(arr) {\n return arr.reverse()\n }", "function reverseArrayInPlace(arr) {\n const newArr = [];\n for (let i = arr.length - 1; i >= 0; i--) {\n newArr.push(arr[i]);\n }\n // slice() cut the Array on the middle length\n arr = arr.slice(arr.length / 2);\n\n return newArr;\n}", "function reverseFunc(array) {\n let reversedNumbers = [];\n\n for (let index = array.length - 1; index >= 0; index--) {\n let currentNumber = array[index];\n reversedNumbers.push(currentNumber);\n }\n\n return reversedNumbers;\n // use for loop to repeat process until theres no more numbers inside array\n // create a variable that represents the new reverse-array\n // .pop off the last number from the original array (or just use array[index] instead of array.pop())\n // then .push() that popped off number into that new reverse-array\n // return the new array\n}", "function reverseArray(arr) {\n var result = [];\n for (var i = 0; i < arr.length; i++) {\n result.unshift(arr[i]);\n }\n \n return result;\n}", "function reverseArray(array) {\n // Your code here\n var arr1 = [];\n var x = array.length-1;\n\n for(var i = 0; i<array.length; i++){\n arr1[i] = array[x--];\n }\n return arr1;\n }", "function reverseArray(a) {\n let c = a.length\n let ab = []\n for (let i = c - 1; i >= 0; i--) {\n ab.push(a[i])\n }\n \n return ab\n}", "reverseArray(arr) {\n let reversed = [];\n\n for(let i=arr.length-1; i >= 0; i--) {\n reversed.push(arr[i]);\n }\n\n return reversed;\n }", "function reverseArray(a) {\n\n let reversedArrays = [];\n let j = 0;\n for (let i = a.length - 1; i >= 0; i--) {\n reversedArrays[j]= a[i];\n j++;\n }\n return reversedArrays;\n}", "function reverseArrayInPlace(array) {\n for (let i = 0; i < Math.floor(array.length/2); i++) {\n let oldIndexValue = array[i];\n array[i] = array[(array.length - 1) - i];\n array[(array.length - 1) - i] = oldIndexValue;\n } \n return array;\n}", "function reverseArray(input_arr) {\n // Your code here\n var new_arr = [];\n for (var i = input_arr.length; i > 0; --i) {\n new_arr.push(input_arr[i - 1]);\n }\n return new_arr;\n}", "function reverseArray(arr) {\n\tvar newArr = [],\n reverseArrNum = arr.length - 1;\n \n \tfor (var i = 0; i < arr.length; i++) {\n \tnewArr.push(arr[reverseArrNum])\n reverseArrNum--\n }\n \treturn newArr;\n}", "function reverseArray(x){\n\tvar y = [];\n\tfor( i = 0; i < x.length; i++){\n\t\ty.unshift(x[i]);\n\t} \n\treturn y;\n}", "function reverse(arr)\n{\n var temp;\n var end=arr.length-1\n for(var i=0; i<arr.length/2; i++)\n {\n \n temp=arr[i];\n arr[i]=arr[end-i];\n arr[end-i]=temp;\n }\n return arr\n}", "function reverseArray(arr){\n let reverseArr = [];\n for(let i = arr.length - 1; i >= 0; i--){\n reverseArr.push(arr[i]);\n }\n return reverseArr;\n}", "function reverseArray(arr) {\n\tlet reverse = [];\n\n\tfor (let i = arr.length - 1; i >= 0; i--) {\n\t\treverse.push(arr[i]);\n\t}\n\treturn reverse;\n}", "function reverse(arr) {\n var newArr = [];\n\n for (i = 0; i < arr.length; i++) {\n newArr.unshift(arr[i]);\n }\n}", "function reverseArray(arr) {\n var array = [];\n\n for (var i = arr.length - 1; i >= 0; i--) {\n array.push(arr[i]);\n }\n return array;\n}", "function reverseArray(input) {\n var arr = new Array;\n for(var i=input.length-1; i>=0; i--){\n arr.push(input[i])\n }\n return arr;\n}", "function reverseArray(a) {\n let left = 0;\n let right = a.length-1;\n while(left < right){\n [a[left], a[right]] = [a[right], a[left]];\n left++;\n right--;\n }\n return a;\n}", "function reverseArray(a) {\n let left = 0\n\n for (let i = a.length - 1; i >= (Math.floor(a.length / 2)); i--) {\n let temp = a[i];\n a[i] = a[left];\n a[left] = temp;\n left += 1\n }\n return a\n}", "function reverse (arr) {\n if (arr.length === 0) {\n return []\n }\n return [arr.pop(), ...reverse(arr)]\n}", "function reverseArray(arr){\n var arrRev = []\n for(var i=0; i<arr.length;i++){\n arrRev.unshift(arr[i]);\n };\n console.log(arrRev);\n}", "function inverseMirror (array) {\n var inverseMirrorArray = [];\n for (var i = array.length - 1; i >=0; i--) {\n inverseMirrorArray.push(array[i]);\n }\n return inverseMirrorArray;\n }", "function reversearr(arr){\n // for(var i=0;i<arr.length/2;i++){\n // var temp=arr[i];\n // arr[i]=arr[arr.length-1-i];\n // arr[arr.length-1-i]=temp;\n for(var i=0;i<arr.length;i++){\n arr[i]=arr[i+1];\n \n }\n return arr;\n}", "function mirrorArray(array) {\n let newArray = array.slice(0, array.length);\n\n for (let i = array.length - 1; i >= 0; i -= 1) {\n let el = array[i];\n newArray.push(el);\n }\n\n return newArray;\n}", "function reverseArray(arr){\n for(var i = 0; i < arr.length/2; i++){\n [arr[i], arr[arr.length - 1 - i]] = [arr[arr.length - 1 - i], arr[i]];\n }\n return arr;\n}", "function reverse(arr) {\n for(var i = 0; i < arr.length/2; i++) {\n var temp = arr[i];\n arr[i] = arr[arr.length - 1 - i];\n arr[arr.length - 1 - i] = temp;\n }\n return arr;\n}", "function reverseArray(arr){\n var temp = 0\n for(i = 0; i < Math.floor(arr.length/2); i++){\n temp = arr[arr.length-i-1];\n arr[arr.length-i-1] = arr[i];\n arr[i] = temp;\n }\n return arr;\n}", "function selReverse(array, length) {\n if( length < 1 )\n \treturn array;\n\n if( array.length < length ) {\n \treturn array.reverse();\n }\n\n var arr = array.slice(0);\n var newArr = [];\n while( arr.length ) {\n newArr = newArr.concat( arr.splice(0, length).reverse() );\n }\n\n console.log( newArr );\n\n return newArr;\n\n}", "function reverse(arr) {\n if (arr.length <= 1) return arr;\n for (let idx = 0; idx <= Math.floor(arr.length / 2) - 1; idx++) {\n [arr[idx], arr[arr.length - 1 - idx]] =\n [arr[arr.length - 1 - idx], arr[idx]];\n }\n return arr;\n}", "function reverse(arr) {\n for (var i = 0; i < arr.length / 2; i++) {\n var temp = arr[i];\n arr[i] = arr[arr.length - 1 - i];\n arr[arr.length - 1 - i] = temp;\n }\n return arr;\n}", "function reverseArray(arr) {\r\n\tvar newArr = [];\r\n\tif(arr.length==0) {\r\n\t\t return newArr;\r\n\t}\r\n\telse {\r\n\t\t\treturn newArr.concat(reverseArray(arr.slice(1, arr.length)), arr[0]);\r\n\t}\r\n\r\n}", "function reverseArray(arr) {\n for (var i = 0; i <= (arr.length / 2); i++) {\n var temp = arr[i];\n arr[i] = arr[arr.length - 1 - i];\n arr[arr.length - 1 - i] = temp;\n }\n return arr;\n}", "reverse(arr) {\n return arr.reverse();\n }", "function reverse(arr){ //arr = [\"a\",\"b\",\"c\",\"d\",\"e\"];\n var temp = []; //temp stands for temparary\n for(var i=arr.length-1; i > 0;i--){ //the loop that loops through half of the array.\n temp[i] = arr[i];\n }\n console.log(arr); //logs out the newly edited array.\n}", "function three(arr){\n return arr.reverse(); \n}", "function reverseArr(arr) {\n // code here\n}", "function reverseList(arr) {\n var length = Math.ceil(arr.length / 2);\n var temp;\n for (var i = 0; i < length; i++) {\n temp = arr[i];\n arr[i] = arr[arr.length - 1 - i];\n arr[arr.length - 1 - i] = temp;\n }\n return arr;\n}", "function reverseArray(arr) {\n\tarr.reverse();\n\tconsole.log(arr);\n}", "function reverseInPlace(arr) {\n\tlet p1 = 0;\n\tlet p2 = arr.length - 1;\n\n\twhile (p1 < p2) {\n\t\t[arr[p1], arr[p2]] = [arr[p2], arr[p1]];\n\t\tp1++;\n\t\tp2--;\n\t}\n\treturn arr;\n}", "function reverse(arr) {\n let new_arr = [];\n while(arr.length > 0) {\n new_arr.push(arr.pop());\n }\n return new_arr\n}", "function reverseArray(arr) {\n let reversedArray = [];\n const aLength = arr.length;\n for (var i = 0; i < aLength; i++) {\n reversedArray.push(arr.pop());\n }\n return reversedArray;\n}", "function reverse(arr){\n //code\n}", "function reverseArrayInPlace(newArray) {\n\n\tfor(var i = 0; i < newArray.length; i++){\n\t\tnewArray[i] = newArray.length-i;\n\t}\n\n\t return newArray;\n}", "function reverseArray(arr){\n let newArray = [];\n let arry = clearArray(arr);\n for(let i in arry){\n newArray.push(reverseWord(arry[i]));\n }\n return newArray;\n}", "function reverse(arr) {\n for(var i =0; i<arr.length/2;i++){\n temp = arr[i];\n arr[i]= arr[arr.length-1-i];\n arr[arr.length-1-i] = temp;\n }\n return arr;\n}" ]
[ "0.7796307", "0.7734009", "0.7733826", "0.77236414", "0.7668135", "0.76587033", "0.7610862", "0.75761604", "0.75675845", "0.7514727", "0.7502639", "0.74758756", "0.74538773", "0.74402124", "0.7438041", "0.74185896", "0.74056756", "0.7401416", "0.73763126", "0.7374274", "0.7367914", "0.7357227", "0.735139", "0.73451436", "0.73251146", "0.73191774", "0.7317507", "0.73142934", "0.7313716", "0.73074216", "0.7305128", "0.72888744", "0.7282403", "0.7281707", "0.72730935", "0.7272413", "0.7265847", "0.72616714", "0.7240574", "0.72380155", "0.7234151", "0.7229263", "0.7224509", "0.7214786", "0.72143674", "0.72024524", "0.71850324", "0.7184602", "0.71804845", "0.7178582", "0.717465", "0.7173062", "0.71697354", "0.7147263", "0.71462417", "0.7141939", "0.7134379", "0.71262234", "0.71214235", "0.7120295", "0.7119622", "0.7103313", "0.7100948", "0.7095837", "0.70841503", "0.70830095", "0.7082066", "0.70797604", "0.7062941", "0.7062138", "0.70558083", "0.7051482", "0.70140815", "0.69913536", "0.6982446", "0.697529", "0.69733804", "0.69626206", "0.6961684", "0.6960474", "0.6951284", "0.6946738", "0.69446504", "0.693776", "0.6934405", "0.69330484", "0.6925002", "0.6916241", "0.69048005", "0.6899022", "0.68967026", "0.68930817", "0.6892566", "0.68911487", "0.6888061", "0.68757564", "0.687012", "0.6862875", "0.6860492", "0.6859261" ]
0.7075305
68
Write a function called getLessThanZero that expects an array of numbers to be passed to it and returns a new array containing only those numbers from the array that was passed in that are less than zero.
function getLessThanZero(bunchOfNumbers) { var onlyLow = []; // bunchOfNumbers.slice(0, bunchOfNumbers.length); for (var i = 0; i < bunchOfNumbers.length; i++) { if (bunchOfNumbers[i] <= 0) { onlyLow.push(bunchOfNumbers[i]); } } return onlyLow; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLessThanZero(arr) {\n if (!Array.isArray(arr)) {\n return console.log(\"Not an Array\");\n }\n\n var filtered = arr.filter(function(num) {\n return num < 0;\n });\n\n return filtered;\n}", "function getPositiveNum(array) {\n return array.filter(num => num >= 0)\n}", "function getPositiveNum(array) {\n return array.map(num => num >= 0)\n }", "function getPositiveNum(array) {\n let positiveNumArray = [];\n for (let num of array) {\n if (num > 0) {\n positiveNumArray.push(num);\n }\n }\n return positiveNumArray;\n }", "function positiveNumbers(given) {\n let newArray = [];\n for (let i = 0; i < given.length; i++)\n // if (given[i] >= 0) {\n // newArray.push(given[i]);\n // }\n given[i] >= 0 && newArray.push(given[i]);\n return newArray;\n}", "function func10(inputArray){\n for(var i=0; i<inputArray.length; i++){\n if(inputArray[i]<0){\n inputArray[i]=0;\n }\n }\n return inputArray;\n}", "function arrayNo(arr) {\n let positive = [];\n for (let i = 0; i < arr.length; i++) {\n let no = arr[i];\n if (no < 0) {\n break;\n }\n else {\n positive.push(no);\n }\n\n }\n return positive;\n\n}", "function positiveNumbers(myArray) {\n newArray = [];\n for (var x=0;x<myArray.length;x++){\n if (myArray[x]>=0){\n newArray.push(myArray[x]);\n }\n }\n console.log(newArray);\n}", "function onlyNegativeNumbers(arrayOfNegative){\n // returns the positive numbers in an array\n var onlyNeg = [];\n for (let i = 0; i < arrayOfNegative.length; i++) {\n if (arrayOfNegative[i] < 0){\n onlyNeg.push(arrayOfNegative[i]);\n }\n }\n return onlyNeg;\n}", "function positives (arr){\n var positiveNums = []\n var negativeNums = []\n for ( let i = 0 ; i < arr.length ; i ++){\n if ( arr[i] > 0){\n positiveNums.push(arr[i])\n }\n negativeNums.push(arr[i])\n }\n return positiveNums\n }", "function sumPositive(array) {\n let array2 = [];\n for(val of array) {\n if(val > 0) {\n array2.push(val);\n }\n }\n return array2;\n}", "function positiveRowsOnly (arr)\n{ \n // debugger\n\nvar output = arr.filter ( x=> {\n var c=0;\nx.forEach(m => { \n if (m< 0)\n c++; \n});\n\nreturn c === 0\n})\n return output\n}", "function removeZeros(arr) {\n return arr.filter((x) => x);\n}", "function zeroOut(arr) {\n var newArray2 = [];\n for (var i = 0; i <= arr.length - 1; i++) {\n if (arr[i] < 0) {\n arr[i] = 0;\n }\n newArray2.push(arr[i]);\n\n }\n return newArray2;\n\n}", "function filterNegativeNum(nums) {\n return nums.filter(function(num) {\n //=== return nums.filter((number) => {\n return num < 0; //=== return nums.filter(num => num < 0);\n });\n}", "function negatives(array) {\n for (let i = 0; i < array.length; i++) {\n if(array[i] < 0) { \n array[i] = 0;\n }\n }\n return array;\n}", "function negativeNumbers (arr){\n for (var i=0; i<arr.length; i++){\n if(arr[i]<0){\n arr[i]=0;\n }\n }\n\n return arr;\n}", "function filter(array, number){\n let result = []\n for (let i=0; i<array.length; i++){\n if(array[i]>=number){\n result.push(array[i])\n }\n }\n return result;\n}", "function posNumbers(numbers) {\n const positiveNums = [];\n for (let num of numbers) {\n if (num > 0) {\n positiveNums.push(num);\n }\n}\n return positiveNums; \n}", "function zeroOutArrayNegativeVals(arr){\n for(var i = 0; i < arr.length; i++){\n if(arr[i] < 0){\n arr[i] = 0\n }\n }\n return arr\n}", "function negativeOrPositiveNumbers(arr) {\n\tres = [];\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (arr[i] < 0) {\n\t\t\tres.unshift(arr[i]);\n\t\t} else {\n\t\t\tres.push(arr[i]);\n\t\t}\n\t}\n\treturn res;\n}", "function getPositives(ar)\n{\n temp=[]\n for(x of arr){\n if(x>=0)\n temp.push(x)\n }\n return temp\n}", "function positiveNumnbers(arr) {\n positives = [];\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] >= 0) {\n positives.push(arr[i]);\n }\n }\n console.log(positives);\n}", "function makePositive(array) {\n\tfunction positive(n){\n\t\tif(typeof n===\"number\"){\n\t\t\tif(n<0){\n\t\t\t\tn=-n;\n\t\t\t}\n\t\t}\n\t\treturn n;\n\t}\n\treturn array.map(positive);\n}", "function noNeg(arr){\n var positiveArr = []\n\nfor ( var i=0; i< arr.length; i++){\n if(arr[i] < 0){\n var newInd = arr[i] * 0;\n \n positiveArr.push(newInd);\n } else {\n positiveArr.push(arr[i]) \n }\n }\n \nreturn positiveArr\n}", "function validValues(arr) {\r\n var newArr = [];\r\n for (var i = 0; i < arr.length; i++) {\r\n if (arr[i] < 0 || arr[i] > 0) {\r\n newArr.push(arr[i]);\r\n }\r\n }\r\n return newArr;\r\n}", "function zeroOutNegativeNums(arr){\n for (let i =0; i<arr.length;i++){\n if (arr[i] < 0) {\n arr[i] = 0; \n }\n }\n return arr;\n}", "function zeroOutArrayNegativeVals(arr) {\n for (var idx = 0; idx < arr.length; idx++) {\n if (arr[idx] < 0) {\n arr[idx] = 0;\n }\n }\n return arr;\n}", "function zeroNegVals(arr){\n for(var i = 0; i < arr.length; i++){\n if (arr[i] < 0){\n arr[i] = 0\n }\n }\n return arr\n}", "function positives(arr) {\n let result = [];\n each(arr, function(num) {\n Math.sign(num) ? result.push(num) : undefined;\n })\n return result;\n}", "function multiplies(array) {\n var newArray = []\n for (var i = 0; i < array.length; i++) {\n if (array[i] <= 0) {\n newArray[i] = array[i]\n } else {\n newArray[i] = array[i] * 2\n }\n }\n return newArray\n}", "function negatives(arr) {\n for (var i=0; i < arr.length; i++) {\n if (arr[i] < 0) {\n arr[i] = 0;\n }\n }\n return arr;\n}", "function bePositive(arr){\nvar positiveArr = []\n\nfor ( var i=0; i< arr.length; i++){\n if(arr[i] < 0){\n var newInd = arr[i] * -1;\n \n positiveArr.push(newInd);\n } else {\n positiveArr.push(arr[i]) \n }\n }\n \nreturn positiveArr\n}", "function makePositive(array) {\n let temparr =[]; // My container array\n for (let element of array) {\n\t\t\n \n\t if(typeof element!=='number'){\n\t\ttemparr.push(element);\n\t} else {\n\t\ttemparr.push(Math.abs(element));\n\t}\n\t\t}\n \n \n return temparr;\n}", "function replaceWithZero(arr){\n for(var i = 0; i < arr.length; i++){\n if(arr[i] < 0){\n arr[i] = 0;\n }\n }\n return arr;\n}", "function checkPositive(arr) {\n let result = arr.some(element => element >= 0);\n return result; \n}", "function zeroOutNegativeNumbers(inputArray) {\n\tfor (let i = 0; i < inputArray.length; i++) {\n\t\tif (inputArray[i] < 0) {\n\t\t\tinputArray[i] = 0;\n\t\t}\n\t}\n\tconsole.log(inputArray);\n}", "function delNegativeNumbers(zeroArr) {\r\n var length = zeroArr.length;\r\n for (var i = 0; i < length; i++) {\r\n if (zeroArr[i] < 0) {\r\n zeroArr[i] = 0\r\n }\r\n }\r\n console.log(\"\\n\\nZero Out Negatives: [1, 5, 10, -2]\")\r\n console.log((zeroArr))\r\n}", "function getPositives2(arr){\n arr.filter(isPositive).forEach(function(entry) {console.log(entry);});\n}", "function outlookNegative(arr) {\n\tvar newArr = [];\n\tnum = 0;\n\n\tfor (var num = 0; num < arr.length; num++) {\n\t\tif (arr[num] > 0) {\n\t\t\tnewArr.push(arr[num] * -1);\n\t\t} \n\t\telse {\n\t\t\tnewArr.push(arr[num]);\n\t\t}\n\t}\n\n\tconsole.log(newArr);\n\treturn newArr;\n}", "function getMinOfArray(numArray) {\n return Math.min.apply(null, numArray);\n}", "function getMinOfArray(numArray) {\n return Math.min.apply(null, numArray);\n}", "function minNumbers(array) {\n\n return Math.min(...array);\n}", "function minNumbers(arr) {\n let min = arr[0];\n for(let i = 1; i < arr.length; i++) {\n if (arr[i] - min < 0) {\n min = arr[i]\n }\n }\n return min\n}", "function noNegs(x) {\n for (var i=0; i<x.length; i++) {\n if (x[i]<0) {\n x[i]=0;\n }\n }\n return x;\n}", "function task01(first, second, third) {\n var lessThanZeroArray = [];\n var result = 1;\n for (let index = 0; index < arguments.length; index++) {\n const element = arguments[index];\n if (element < 0) {\n lessThanZeroArray.push(element);\n }\n }\n for (let index = 0; index < lessThanZeroArray.length; index++) {\n const element = lessThanZeroArray[index];\n result *= element;\n }\n\n return result;\n}", "function neg(arr){\n for(var i = 0; i < arr.length; i++){\n if(arr[i] < 0){\n arr[i] = 0;\n }\n }\n return arr;\n}", "function stayPositive (matrix) {\n return matrix.reduce((acc, arr) => {\n return acc.concat(arr)\n }, []).filter(num => {\n return num > 0\n })\n}", "function sumPositiveNumbers(array) {\n // let sum = 0;\n // for (let element of array) {\n // if (element > 0) {\n // sum += element;\n // }\n // }\n // return sum;\nreturn array.filter((item)=>item>0).reduce((accumulator, currentValue)=>accumulator+currentValue,0);\n}", "function negToZero(iterArray) {\n for (var i = 0; i < iterArray.length; i++) {\n if (iterArray[i] < 0 ) {\n iterArray[i] = 0;\n }\n }\n return iterArray;\n}", "function outlookNegative(arr){\n var newArr = []\n for(var i = 0; i < arr.length; i++){\n if(arr[i] > 0){\n newArr.push(arr[i] * -1)\n }else{\n newArr.push(arr[i])\n }\n }\n return newArr\n}", "function positiveNumbers(posArray) {\n\n}", "function outlookNegative(array){\n let newArray = [];\n for(let i = 0; i < array.length; i++){\n // if(array[i] > 0){\n // newArray.push(array[i] * -1);\n // } else {\n // newArray.push(array[i]);\n // }\n newArray.push(array[i] > 0 ? -array[i] : array[i]);\n }\n return newArray;\n}", "function getMinValue(array){\n return Math.min.apply(null, array);\n}", "function noNeg(arr) {\n for(var i = 0; i < arr.length; i++) {\n if(arr[i] < 0)\n arr[i] = 0;\n }\n return arr; \n}", "function negativeValues(arr){\n for(var i = 0; i < arr.length; i++){\n if(arr[i] < 0){\n arr[i] = 0;\n }\n }\n console.log(arr); //or: return arr;\n}", "function getPositives(ar)\r\n{\r\n\tlet retarr=[]\r\n\tarr.forEach((item)=>{\r\n\t\tif(item>0)\r\n\t\t\tretarr.push(item);\r\n\t})\r\n\treturn retarr;\r\n}", "function multPositive(array){\n newArray = [];\n for( i=0; i<array.length; i++){\n if (array[i] > 0) {\n newArray[i] = array[i]*2\n }\n else {\n newArray[i] = array[i];\n }\n }return newArray\n}", "function checkPositive(arr) {\n return arr.some(function(currentValue) {\n return currentValue > 0;\n });\n\n}", "function lowestNumber(array) {\n return Math.min.apply(null, array);\n}", "function ZeroOutArrayNegativeVals(arr){\n}", "function realRemoveZeros(array) {\n const head = [];\n const tail = [];\n for (const e of array) {\n if (e === 0 || e === \"0\") {\n tail[tail.length] = e;\n } else {\n head[head.length] = e;\n }\n }\n return [...head, ...tail];\n}", "function ten(arr){\n for(var i = 0; i < arr.length; i++){\n if(arr[i] < 0){\n arr[i] = 0;\n }\n }\n return arr; \n}", "function filterNumGreater(arr){\n return arr.filter(function(item){\n if(item >10){\n return item;\n }\n })\n}", "function onlyPositiveNumbers(Pos){\n // returns the positive numbers in an array\n var soln = [];\n for (let i = 0; i < Pos.length; i++) {\n if (Pos[i] > 0){\n soln.push(Pos[i]);\n }\n }\n return soln;\n}", "function removeZeros(array) {\n\tlet flag=[]\n\tlet i;\n\tfor(i=0;i<array.length;i++){\n\t\tif(array[i]!==0){\n\t\t\tflag.push(array[i]);\n\t\t\t\n\t\t}\telse if(flag[(flag.length-1)]!==\"*\"){\n\t\t\tflag.push(\"*\");\n\t\t}\n\t\t\n\t\t}\t\n\t\treturn flag;\n\t}", "function positiveSum(arr) {\r\n return arr.filter( x => {\r\n if(x >= 0) return x;\r\n }).reduce( (a, b) => {\r\n return a + b;\r\n }, 0);\r\n}", "function findFirstNegativeElement(arr) {\n let array = [0,2, -9, -3, 8, -8, 0, 5, -6];\n let negative;\n let index;\n for(let i =0; i<array.length; i++)\n {\n if(array[i]<0){\n negative= array[i];\n index = i;\n return [negative,index];\n }\n }\n}", "function multiplies_positive_elements(a) {\n var res = [];\n var i;\n\n for (i = 0; i < a.length; i++) {\n if (a[i] > 0) {\n res[i] = a[i] * 2\n } else {\n res[i] = a[i]\n }\n }\n\n return res;\n}", "function negative(arr){\n let newArr=[]\n for (let i = 0; i < arr.length; i++){\n if (arr[i] > 0){\n newArr.push(arr[i]*-1)\n }\n else {\n newArr.push(arr[i])\n }\n }\n return newArr\n}", "function negativos(array) {\n var newArray = [];\n for (var i = 0; i < array.length; i++) { \n if(array[i] > 0){\n newArray.push(array[i]*-1);\n }\n else{\n newArray.push(array[i]);\n }\n }\n\n return newArray;\n}", "function numbersLessThanFive(inputArray) {\n var outputArray = [];\n for (var i = 0; i < inputArray.length; i++) {\n if (inputArray[i] < 5) {\n outputArray.push(inputArray[i]);\n }\n }\n return outputArray;\n}", "function filter(array) {\n newArray = []\n array.forEach((number) => {\n if (number > 5) {\n newArray.push(number)\n }\n })\n return newArray;\n}", "function noNegatives(arr) {\n for (var idx = 0; idx < arr.length; idx++) {\n if (arr[idx] < 0) {\n arr[idx] = 0;\n }\n }\n console.log(arr);\n}", "function p10(){\n var arr = [-9,-10,12,3,-32,100,-1998]\n for(var i = 0; i < arr.length; i++){\n if(arr[i] < 0){\n arr[i] = 0\n }\n }\n console.log(arr)\n}", "function negativeOrPositiveNumbers (input) {\n let result = [];\n\n for (let number of input) {\n if (number < 0) {\n result.unshift(number);\n } else {\n result.push(number);\n }\n }\n\n console.log(result.join('\\n'));\n}", "function smallestNumber(array) {\n return Math.min(...array) \n}", "function noZeros(arr) {\n\n let zeroIndex = [] //Keeps track of where all the 0s are in each index\n\n for (i=0; i<arr[0].length; i++) {\n zeroIndex.push(1)\n } // We initiate zeroIndex to be all 1s, but mutate the 1s into 0s whenever we catch a 0 at the same index inside an array\n\n return arr.map((arr2) => {\n //Check if the array has a zero.\n let zeroIt = false\n\n for (i=0;i<arr2.length;i++) {\n if (arr2[i] === 0) {\n zeroIndex[i] = 0\n zeroIt = true\n }\n }\n\n //if zeroIt is true// if it has a zero\n if (zeroIt === true) {\n //Make the entire array 0\n let zeroArr = []\n for(i=0;i<arr.length;i++) {\n zeroArr.push(0)\n }\n return zeroArr //Slice horizontally\n } else {\n //return the array with the zeros sliced vertically.\n return zeroIndex //Slice Vertically\n //We are assuming that there is only 2 possibilities: all 0s in an array, or an array where all 1s are in the same spot.\n }\n })\n}", "function sumOfPositiveNumbers(array) {\n var sum = 0\n for (var i = 0; i < array.length; i++) {\n var element = array[i];\n if (element > 0) {\n sum += element\n }\n }\n return sum\n}", "function getMin(array) { \n return Math.min(...array) //accepts list of numbers, not arrays by default so need to spread\n}", "defined(arr) {\n\n let arr2 = [];\n for (let i = 0; i < arr.length; i++) {\n if (!arr[i] && arr[i] !== 0) {\n //console.log(arr[i]);\n } else {\n arr2.push(arr[i]);\n }\n }\n return arr2;\n }", "function minNumber(array) {\n return Math.min.apply(null, array);\n}", "function negative(arr) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i] < 0) {\n arr[i] *= -1;\n }\n }\n return arr\n}", "function removeNegatives (array) {\n if(!(array instanceof Array)) {return 'Please pass an array.'};\n let copyTo;\n let negativeCount = 0;\n for (var i = 0; i < array.length; i++) {\n if (array[i] < 0) {\n negativeCount++;\n copyTo = i;\n break;\n };\n };\n if (negativeCount > 0) {\n for (let j = i + 1; j < array.length; j++) {\n if (array[j] < 0) {\n negativeCount++;\n } else {\n array[copyTo] = array[j];\n copyTo++;\n };\n };\n array.length -= negativeCount;\n };\n return array;\n}", "function positiveSum(arr){\nreturn arr\n .filter(positivenumbers => positivenumbers > 0)\n .reduce((a,b) => a + b, 0);\n}", "function arraynegativo(x){\n for(var i=0; i<x.length ; i++){\n if(x[i] >0 ){\n x[i] = x[i] * -1;\n }\n }\n return x\n}", "function negativeArray(arr){\n var newarr = [];\n for(var i = 0; i < arr.length; i++){\n if(arr[i] > 0){\n arr[i] = arr[i] - arr[i] * 2;\n newarr.push(arr[i]);\n }\n else{\n arrnew.push(arr[i]);\n }\n }\n return newarr;\n}", "function removeSmallest(array) {\n\n const min = Math.min(...array);\n \n return array.filter((_, idx, arr) => idx !== arr.indexOf(min));\n}", "function arrayOfIntegers(arr){\n let positives=0;\n let negatives=0;\n let result = [];\n if (arr==null || arr==[]){\n console.log(\"#3: []\");\n }else{\n for (let i=0;i<arr.length;i++){\n if(arr[i]>0){\n positives++;\n }else if(arr[i]<0){\n negatives+=arr[i];\n }\n result[0]=positives;\n result[1]=negatives;\n }\n console.log(\"#3: \" + result);\n }\n}", "function get_index_of_smallest_non_zero_value(arr) {\n // Replace each 0 with Infinity.\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] == 0) {\n arr[i] = Infinity;\n }\n }\n // Find indices with the smallest non-zero value.\n let indices_of_smalles_non_zero = [];\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] == min(arr)) {\n indices_of_smalles_non_zero.push(i);\n }\n }\n return indices_of_smalles_non_zero[Math.floor(Math.random() * indices_of_smalles_non_zero.length)];\n}", "function plusMinus(arr) {\n const len = arr.length;\n const positive = arr.filter(i => i>0 );\n const negatives = arr.filter(i => i<0 );\n const zeros = arr.filter(i => i==0 );\n console.log(positive.length/len);\n console.log(negatives.length/len);\n console.log(zeros.length/len);\n \n}", "function negative(arr) {\n var newArr = [];\n for(var i = 0; i < arr.length; i++) {\n if(arr[i] > 0) {\n newArr[i] = arr[i] - arr[i] * 2;\n }else{\n newArr[i] = arr[i];\n }\n \n }\n return newArr;\n}", "function filter(array) {\n\tvar arr = [];\n\tfor (var i = 0 ; i < array.length ; i++) {\n\t\tif(typeof array[i] === 'number'){\n\t\t\tarr.push(array[i])\n\t\t}\n\t}\n\treturn arr;\n}", "function negativevalues(arr)\r\n{\r\n\tfor(var i=0;i<arr.length;i++)\r\n\t{\r\n\t\tif (arr[i]<0)\r\n\t\t{\r\n\t\t\tarr[i]=0;\r\n\t\t}\r\n\t}\r\n\r\n\t\tconsole.log (\"Removing negatives\",arr);\r\n}", "function smallestNumArray(array) {\n\tlet small = array[0];\n\tfor (var i = 0; i < array.length; i++) {\n\t\tif (array[i] < small) {\n\t\t\tsmall = array[i];\n\t\t}\n\t}\n\treturn small\n}", "function smallest(array){\r\n\treturn Math.min.apply(Math,array);\r\n}", "function selectNumbersSubset(inputArray) {\n if (!Array.isArray(inputArray)) {\n return;\n }\n var numbersArray = [];\n for (var i = 0; i < inputArray.length; i++){\n var currentItem = inputArray[i];\n if (Number.isFinite(currentItem)) {\n numbersArray.push(currentItem);\n }\n }\n return numbersArray;\n }", "function separatePositive(intsArr) {\n let left = 0;\n let right = intsArr.length - 1;\n\n while (left < right) {\n if (intsArr[left] < 0 && intsArr[right] > 0) {\n [intsArr[left], intsArr[right]] = [intsArr[right], intsArr[left]];\n right--;\n left++;\n } else if (intsArr[left] < 0 && intsArr[right] < 0) {\n right--;\n } else if (intsArr[left] > 0 && intsArr[right] > 0) {\n left++;\n } else {\n right--;\n left++;\n }\n }\n return intsArr;\n}", "function outlookNetative(array) {\n var allNegative = [];\n\n for (var i in array) {\n if (array[i] > 0) {\n allNegative[i] = array[i] * -1;\n } else {\n allNegative[i] = array[i];\n }\n }\n return allNegative;\n}", "function findMin(theArray) {\n var minInArray = Math.min.apply(Math, theArray);\n console.log(minInArray);\n return minInArray;\n}" ]
[ "0.8288536", "0.79483676", "0.7675818", "0.74729955", "0.70672005", "0.69478786", "0.69185185", "0.6916036", "0.68330497", "0.68042225", "0.67699873", "0.67229503", "0.671991", "0.67122924", "0.66578543", "0.6624909", "0.6608879", "0.65871596", "0.65754306", "0.6573117", "0.6543022", "0.65320873", "0.6509104", "0.6471175", "0.6455495", "0.6437746", "0.63964736", "0.6367218", "0.6328943", "0.6293105", "0.62875384", "0.6281373", "0.6280068", "0.6279607", "0.6278564", "0.62522125", "0.62427723", "0.62077093", "0.62046045", "0.61938584", "0.61870795", "0.61870795", "0.618621", "0.61786234", "0.6159651", "0.6154233", "0.61542076", "0.61381114", "0.61276555", "0.6127022", "0.6121042", "0.6111605", "0.6097696", "0.6096969", "0.609382", "0.6063488", "0.60632974", "0.60610026", "0.605756", "0.60412383", "0.6038425", "0.60270137", "0.60220957", "0.6020839", "0.59950936", "0.59874904", "0.5985185", "0.59850234", "0.5980558", "0.59739", "0.5963771", "0.5954558", "0.59495515", "0.5945208", "0.5944149", "0.59437394", "0.5933014", "0.5931959", "0.5930983", "0.59298855", "0.59291863", "0.59277266", "0.5924999", "0.59241277", "0.5918472", "0.5917964", "0.59005386", "0.58891374", "0.5887214", "0.5882915", "0.58694106", "0.58688945", "0.5861694", "0.5856137", "0.58559585", "0.58535653", "0.58527815", "0.5848027", "0.58357334", "0.5833328" ]
0.804976
1
Lifecycle hook for when the component mounts, occurs once
componentDidMount() { const { bankId } = this.props; // Add an event listener to the document for 'keydown' events document.addEventListener('keydown', this.handleKeyDown); // Use the API to get an array of sounds for the currently selected bank const sounds = api.getSounds(bankId); // Set the component state with the current bank and sounds // This will force a rerender this.setState(() => ({ currentBank: bankId, sounds })); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentDidMount() {\n this.componentLoaded = true;\n }", "componenetWillMount() { }", "createdCallback() {\n\t // component will mount only if part of the active document\n\t this.componentWillMount();\n\t}", "componenetDidMount() { }", "onComponentMount() {\n\n }", "componentDidMount() {\n\t\tthis.startup();\n\t}", "componentDidMount() {\n\t\tthis.init();\n\t}", "componentDidMount() {\n // console.log(\"currentUserContainer Mounted\")\n this.init()\n }", "componentDidMount () {\n this.init();\n }", "componentDidMount () {\n this.init();\n }", "componentDidMount () {\n this.init();\n }", "componentDidMount(){\n \n }", "componentDidMount() {\n this.onLoad();\n }", "componentDidMount() {\n let state = this.state;\n this.mounted = true;\n this.setState( state );\n }", "componentDidMount() {\n \n }", "componentDidMount() {\n \n }", "componentDidMount(){ //Cuando un compoennte se monta y se muestra en pantalla se llama este método\n console.log(\"did Mount\");\n }", "componentDidMount(){\n console.log('Life Cycle A - componentDidMount');\n }", "componentDidMount() {\n this.initialize();\n }", "componentDidMount() {\n\n console.log(\"componentDidMount()\");\n\n window.readyForStuff = this.readyForStuff.bind(this);\n\n }", "componentDidMount() {\n this.props.onMount();\n }", "componentDidMount() { \n \n }", "componentDidMount() {\n\t\tthis.props.onLoad();\n\t}", "didMount() {\n }", "componentDidMount() {\n this.setup();\n }", "componentDidMount(){\n this.updateEventCards().then( () => {\n this.componentMounted = true;\n });\n }", "componentDidMount() {\n \n }", "componentDidMount() {\n // data can be fetched here for the first time\n }", "componentDidMount() {\n\t\t/* preserve context */\n\t\tconst _this = this;\n\n\t}", "componentDidMount() {\n\t\t/* preserve context */\n\t\tconst _this = this;\n\n\t}", "componentDidMount() {\n\n\t}", "componentDidMount(){\n console.info(this.constructor.name+ 'Component mount process finished');\n }", "componentDidMount() {\n M.AutoInit();\n }", "componentDidMount(){\n console.log('component did mount...');\n }", "attachedCallback() {\n\t\t// update attached status\n\t\tthis._componentAttached = true;\n\n\t\t// wait until dependencies are ok\n\t\tthis._whenMountDependenciesAreOk().then(() => {\n\t\t\t// switch on the mountWhen prop\n\t\t\tswitch(this.props.mountWhen) {\n\t\t\t\tcase 'inViewport':\n\t\t\t\t__whenInViewport(this).then(() => {\n\t\t\t\t\tthis._mountComponent();\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\t\tcase 'mouseover':\n\t\t\t\t\tthis.addEventListener('mouseover', this._onMouseoverComponentMount.bind(this));\n\t\t\t\tbreak;\n\t\t\t\tcase 'isVisible':\n\t\t\t\t\t__whenVisible(this).then(() => {\n\t\t\t\t\t\tthis._mountComponent();\n\t\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t// mount component directly\n\t\t\t\t\tthis._mountComponent();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t});\n\t}", "componentDidMount(){\n\n\n\n\n}", "componentDidMount()\n {\n\n }", "componentDidMount() {\n // loading the list for the first time\n this.loadList();\n }", "componentDidMount() {\n this.forceUpdate();\n }", "componentDidMount(){\n console.log(\"El componente se ha montado\")\n }", "componentDidMount() {\n this.componentData();\n }", "componentDidMount(){\n }", "componentDidMount(){\n console.log(\"component DID MOUNT!\")\n }", "componentDidMount() {\n console.log(\"component did mount\");\n }", "componentDidMount() {\n this.isMounted_ = true;\n this.loadPlayer();\n }", "componentDidMount() {\n console.log(\"component mounted\");\n }", "componentDidMount () {\n\n }", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentDidMount() {}", "componentWillMount() {\n \n }", "componentDidMount() {\n this.props.onLoad();\n }", "componentDidMount () {\n\n\t}", "componentDidMount () {\n\n\t}", "componentDidMount() {\n console.log('I am mounted')\n }", "render() {\n if (!this.initialized) {\n this.init();\n }\n }", "componentDidMount(){\n console.log(\">>>>in componentDidMount<<<<<\")\n }", "componentDidMount(){\n\n }", "componentDidMount(){\n\n }", "componentDidMount() {\n if (!this.props.dispatch || this.state.hasInitBeenCalled) {\n this.initDataSource();\n } else {\n this.setState({isMounted: true});\n }\n }", "componentDidMount() {\n console.log('component did mount')\n }", "componentDidMount(){\n }", "componentDidMount() {\n this.setState({\n mount: true\n })\n }", "componentDidMount() {\n console.log('--------------------------- componentDidMount -----------------------------');\n }", "componentDidMount() {\n console.log(\"Component mounted\");\n }", "componentDidMount(){\n\n }", "componentDidMount(){\n\n }", "componentDidMount() {\n\t}", "componentDidMount() {\n\t}", "componentDidMount() {\n\t}", "componentDidMount() {\n\t\tthis.setQueryInfo();\n\t\tthis.createChannel();\n\t}", "componentDidMount()\n {\n // Subscribe to state change\n this.subscribeToStateChange();\n }", "componentDidMount() { this.props.events.on('update', this.forceUpdate); }", "componentDidMount() {\n console.log('componentDidMoun');\n }", "componentDidMount () {\n }", "componentDidMount() {\n\n }", "componentDidMount() {\n\n }", "componentDidMount() {\n\n }", "componentDidMount() {\n\n }", "componentWillMount() {\n console.log('Before mount...');\n }", "componentDidMount() {\n\n }", "componentDidMount() {\n\n }", "componentDidMount() {\n\n }", "componentDidMount() {\n }", "componentDidMount() {\n }", "componentDidMount() {\n }", "componentDidMount() {\n // console.log(\"=========================> componentDidMount\");\n }", "componentDidMount() {\n this._isMounted = true;\n this.getLocation();\n this.getGame();\n }" ]
[ "0.75422895", "0.75409794", "0.7534624", "0.7500269", "0.73533684", "0.7334906", "0.73205936", "0.71976966", "0.7192735", "0.7192735", "0.7192735", "0.71896046", "0.7143916", "0.712866", "0.71196586", "0.71196586", "0.7066945", "0.705905", "0.7054449", "0.70331347", "0.7009448", "0.69617236", "0.6957652", "0.69560343", "0.6946176", "0.6943991", "0.69415754", "0.6936291", "0.6904644", "0.6904644", "0.6876381", "0.6874836", "0.68686575", "0.6868621", "0.68621033", "0.68620366", "0.6861664", "0.68596804", "0.68559074", "0.68484765", "0.6848086", "0.68412817", "0.6834607", "0.6832558", "0.6826456", "0.6822952", "0.6822241", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.681485", "0.6811323", "0.67999524", "0.6799609", "0.6799609", "0.6795341", "0.6794459", "0.6786073", "0.6785425", "0.6785425", "0.6784633", "0.6783357", "0.6783188", "0.6782893", "0.678104", "0.6778556", "0.6778239", "0.6778239", "0.67755866", "0.67755866", "0.67755866", "0.67752963", "0.6770612", "0.67697036", "0.67667776", "0.6757579", "0.67500097", "0.67500097", "0.67500097", "0.67500097", "0.6749885", "0.6748105", "0.6748105", "0.6748105", "0.6745786", "0.6745786", "0.6745786", "0.6741644", "0.6739151" ]
0.0
-1
Lifecycle hook for when the component receives updated props This will occur any time the props are updated through Redux
componentWillReceiveProps(nextProps) { // Check if the updated bank is equal to the current bank if (nextProps.bankId !== this.state.currentBank) { // If so, then get an updated list of sounds const sounds = api.getSounds(nextProps.bankId); this.audioRefs = []; // reset the refs array // Set the new state of the component and rerender this.setState(() => ({ currentBank: nextProps.bankId, sounds })); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentDidUpdate(props_) {}", "componentDidUpdate(oldProps) {\n const newProps = this.props;\n // TODO: support batch updates\n for (const prop in pick(newProps, attributesToStore)) {\n if (!isEqual(oldProps[prop], newProps[prop])) {\n if (prop in reduxActions) {\n let action;\n switch(reduxActions[prop]){\n case 'updateProps':\n action = actions[reduxActions[prop]]({\n key: prop,\n value: newProps[prop],\n });\n break;\n default:\n action = actions[reduxActions[prop]](newProps[prop]);\n }\n this.msaStore.dispatch(action);\n } else {\n console.error(prop, \" is unknown.\");\n }\n }\n }\n }", "componentWillReceiveProps(props) {\n console.log('bubble props ', props)\n this.props = props;\n this.update();\n }", "componentWillReceiveProps(nextProps) {\n this.props.onProps(nextProps);\n }", "componentDidUpdate(prevProps){\n if (this.props.data !== prevProps.data) {\n\n\n //console.log(this.props.data);\n }\n\n\n }", "componentDidUpdate(preProps, preState) {\n console.log(`previous props: ${preProps.val}`)\n }", "componentDidMount() {\n this.update(this.props)\n }", "componentDidUpdate(prevProps, prevState) {\n console.log('Component DID UPDATE!', this.props);\n }", "componentWillUpdate(nextProps, nextState) {\n console.log('Component WILL UPDATE!', this.props);\n }", "componentWillReceiveProps(props) {\n if (props.points) {\n this.updateMarkers(props.points);\n }\n }", "componentDidUpdate(prevProps) {}", "update(...props) {\n if (this.onUpdate && this._) {\n return this.onUpdate(...props);\n }\n }", "componentWillReceiveProps (nextProps) {\n // This method gets called after when props change (after 1st time)\n // this.applyProps()\n }", "$_doPropsUpdate(props) {\n const previousProps = this.props\n const previousState = this.state\n const propsWithDefaults = this.$_addDefaultProps(props)\n this.$_doIncreaseTransactionLevel()\n if (!this.$runningPropsUpdate && this.controllerWillReceiveProps) {\n this.$runningPropsUpdate = true\n this.controllerWillReceiveProps(propsWithDefaults)\n this.$runningPropsUpdate = false\n }\n this.$props = propsWithDefaults\n this.$_doDecreaseTransactionLevel(previousProps, previousState)\n }", "componentDidUpdate(prevProps) {\n if (this.props === prevProps) {\n return;\n }\n this.forceUpdate();\n }", "componentDidUpdate() {\n console.log('props or state updated')\n }", "componentWillReceiveProps(newProps) { \n console.log('Component WILL RECIEVE PROPS!', this.props);\n console.log('new props: ', newProps);\n }", "componentDidUpdate(prevProps){\nconsole.log('componentdidUpdate',prevProps);\n}", "componentWillReceiveProps(nextProps) {\n if (this.props !== nextProps) {\n this.setState(this.handlePropUpdates(nextProps));\n this.pcLiveCheck();\n }\n }", "componentDidMount() {\n this.updateStateFromProps(this.props);\n }", "componentDidMount() { this.props.events.on('update', this.forceUpdate); }", "componentWillReceiveProps(nextProps) {}", "componentWillReceiveProps(nextProps) {}", "componentDidUpdate(prevProps){\n\n const userProfile = this.props.userProfile\n\n if(userProfile){\n const ids = userProfile.events.map(event=>event.id)\n const eventId = parseInt(this.props.match.params.id,10)\n if(!this.state.registered && ids.indexOf(eventId)!== -1){\n this.setState({registered:true})\n this.setState({registrationStatus:userProfile.events[ids.indexOf(eventId)].event_student.status})\n }\n }\n\n if(prevProps.myProps !== this.props.myProp) {\n // this.props.myProp has a different value\n // we can perform any operations that would \n // need the new value and/or cause side-effects \n // like AJAX calls with the new value - this.props.myProp\n }\n }", "componentDidUpdate(prevProps, prevState) {\n console.log(\"prev props: \", prevProps);\n console.log(\"prev state: \", prevState);\n // if (prevProps.counter.value !== this.props.prevState.value) {\n // // can be used to ajax call to the server if there has been a change\n // }\n }", "componentDidUpdate(prevProps, prevState) {\n if (this.props !== prevProps) {\n this.callRender();\n }\n }", "componentWillReceiveProps(newProps){\n\t}", "componentWillUpdate(prevProps, nextProps) {\n\n }", "componentWillReceiveProps(newProps) {\n this.updateD3(newProps);\n }", "componentWillReceiveProps(newProps) {\n this.updateD3(newProps);\n }", "componentWillReceiveProps() {\n \n }", "componentWillReceiveProps(nextProps) {\n //pass props to update player\n this.updatePlayers(nextProps);\n }", "componentDidUpdate(prevProps){\n const { fetchArticles } = this.props;\n // we are invoking this fetchArticles in here but this component dont know the beahvior of the funciton.\n // abstractions.\n fetchArticles();\n }", "componentWillReceiveProps(nextProps) {\r\n console.log('componentWillReceiveProps(Register): Triggers incase of props value changes')\r\n }", "componentDidUpdate(prevProps,prevState){\n console.log(\"prevProps\",prevProps);\n console.log(\"prevState\",prevState);\n // We can do something like this in General.\n\n if(prevProps.counter.value!==this.props.counter){\n // AJAX Call and get new Data from the Source\n }\n }", "componentWillReceiveProps(newProps) {\n if(newProps !== this.props.artists) {\n this.updateDataSource(newProps.artists)\n }\n }", "componentWillReceiveProps(updatedProps) {\r\n console.log('New props received in EmployeeList');\r\n console.log(updatedProps);\r\n this.createDataSource(updatedProps);\r\n }", "componentWillReceiveProps(nextProps) {\n console.log('update persons.js Inside componentWillMount', nextProps);\n}", "componentWillReceiveProps(nextProps) {\n if (nextProps.properties.initialized != this.state.initialized) {\n this.setState({ initialized: nextProps.properties.initialized });\n }\n }", "componentWillReceiveProps(newProps) {\n // console.log(\"=========================> componentWillReceiveProps\", newProps);\n }", "componentWillReceiveProps(newProps)\n {\n if(this.props.list !== newProps.list)\n {\n this.updateData(newProps.list)\n }\n }", "componentWillUpdate() {\n console.log('Before updating a component');\n }", "componentDidUpdate(prevProps) {\n if (this.props !== prevProps) {\n this._createPreviewTrack();\n }\n }", "componentDidUpdate(prevProps, prevState){\n console.log(\"componentDidUpdate\");\n }", "componentWillReceiveProps(newProps) {\n if (this.props.active !== newProps.active) {\n this.updateActive(newProps.active)\n }\n }", "componentDidUpdate(preProps,preState,a){\n console.log(\"componentDidUpdate\",a)\n }", "componentWillReceiveProps(nextProps) {\n\t\t\t\tthis.updateState(nextProps);\n }", "componentWillReceiveProps(newProps){\n this.update_d3(newProps);\n }", "componentWillReceiveProps(newProps) {\n this.setState ({\n status: newProps.status,\n });\n }", "componentWillReceiveProps() {\n console.log('Before a component receives props');\n }", "componentWillReceiveProps(nextProps) {\n \n }", "componentDidUpdate(prevProps) {\n // Window's title and color can be updated on-the-flight, so we keep them\n // in state and ensure that state is updated when new props arrive.\n prevProps.custom.title !== this.props.custom.title &&\n this.setState({ title: this.props.custom.title });\n\n prevProps.custom.color !== this.props.custom.color &&\n this.setState({ color: this.props.custom.color });\n }", "componentDidUpdate(prevProps, prevState) {\n console.log(\"prevProps\", prevProps);\n console.log(\"prevState\", prevState);\n //If you want to detect some changes and do some actoin after that, then below is the reference\n //if (prevProps.counter.value !== this.props.counter.value) {\n //Make a ajax call and get new data from the server.\n //}\n }", "componentWillReceiveProps(newProps) { \n console.log('Component WILL RECIEVE PROPS 2!', this.props);\n console.log('new props 2: ', newProps);\n }", "componentDidUpdate(prevProps, prevState) {\n console.log(\"componentDidUpdate\");\n }", "componentDidUpdate(preProps, preState, a) {\n console.log('componentDidUpdate', a);\n\n }", "componentWillUpdate(){\n console.log('Before Update')\n }", "componentWillReceiveProps(nextProps) {\n\n }", "componentWillReceiveProps(nextProps) {\n\n }", "componentWillReceiveProps(newProps) {\n console.log(newProps);\n this.setState({\n initialData: newProps.dataStore\n }, () => {\n this.handleChange();\n });\n }", "componentDidUpdate(prevProps, prevState) {\n console.log(prevProps.val);\n }", "componentWillReceiveProps(nextProps) {\n }", "componentWillReceiveProps(nextprops) {\n this.props = nextprops;\n }", "componentWillReceiveProps(nextprops) {\n this.props = nextprops;\n }", "componentWillReceiveProps(nextprops) {\n this.props = nextprops;\n }", "componentWillReceiveProps(nextProps) {\n }", "componentWillReceiveProps(props){\n this.updateState(props.sid)\n }", "componentDidUpdate(prevProps, prevState) { }", "componentWillUpdate() {}", "update(props) {\n if (props.handleDOMEvents != this._props.handleDOMEvents)\n ensureListeners(this);\n let prevProps = this._props;\n this._props = props;\n if (props.plugins) {\n props.plugins.forEach(checkStateComponent);\n this.directPlugins = props.plugins;\n }\n this.updateStateInner(props.state, prevProps);\n }", "componentWillUpdate () {}", "componentWillUpdate() {\n\t\tconsole.log('Re-rendering [Modal] as data has been updated')\n\t}", "componentDidUpdate(prevProps) {\n\n if (prevProps.price !== this.props.price) {\n\n this.setState({\n updated: true\n })\n }\n }", "componentWillReceiveProps(newProps) {\n this.tabInfo = newProps.tabInfo;\n this.tabToDisplay = newProps.tabToDisplay;\n this.registerFinalStateFunc = newProps.registerFinalStateFunc;\n }", "componentDidUpdate(prevProps, prevState) {\n }", "componentDidUpdate(prevProps){\n if (this.props.authorSubmit !== prevProps.authorSubmit) {\n this.getData(this.props.authorSubmit);\n }\n }", "componentDidUpdate(prevProps, prevState){\n if(prevProps.previous_workouts !== this.props.reduxStore.previous_workouts){\n console.log(\"inside component did update, if state ment is true, recall render\");\n this.render();\n }\n }", "componentDidUpdate(prevProps) {\n\n //get StagePattern Details only if props has changed\n if (this.props.val !== prevProps.val) {\n this.getStagePatternDetails(this.props.val)\n }\n }", "componentDidUpdate(prevProps) {\n if(prevProps.customer !== this.props.customer) {\n this.setInputValues();\n }\n }", "componentWillUpdate(){\n }", "componentWillUpdate(nextProps, nextState) {\n // perform any preparations for an upcoming update\n console.log(nextProps, \"props++++++state\", nextState);\n }", "componentWillReceiveProps(newProps) { //chay khi Props component thay doi truoc khi render\n // newProps dong vai tro la this.props sau khi lay du lieu tu redux ve\n // Dung du lieu do set lai state dong bo hoa du lieu giua props va state\n this.setState(newProps.sinhVienSua)\n\n }", "componentWillUpdate() {\n }", "componentDidUpdate(prevProps, prevState, snapshot){\n console.info(this.constructor.name+' Did my component updated?');\n\n }", "componentDidUpdate(prevProps) {\r\n\r\n //get Employee Details only if props has changed\r\n if (this.props.val !== prevProps.val) {\r\n this.getEmployeeDetails(this.props.val)\r\n }\r\n }", "componentDidUpdate(prevProps, prevState) {\n console.log('componentDidUpdate()')\n }", "shouldComponentUpdate(newProps, newState) {\n console.log('Component Should UPDATE!', this.props);\n console.log('newProps: ', newProps);\n console.log('newState: ', newState);\n return true;\n }", "componentWillUpdate(){\n console.log(\"ComponentWillUpdate.......\");\n }", "componentDidUpdate(prevProps) {\n if (prevProps.pokemon !== this.props.pokemon)\n this.props.getPokemon(this.pokemonId);\n }", "shouldComponentUpdate(next_props){\n if (!next_props.update){\n return false;\n }\n return true;\n }", "componentDidUpdate(prevProps, prevState) {\n console.log('algo cambio')\n }", "_didRender(_props, _changedProps, _prevProps) { }", "componentDidUpdate(prevProps, prevState) {\n // console.log(\"=========================> componentDidUpdate\", prevProps, prevState);\n }", "componentWillReceiveProps(nextProps) {\n console.log('===============');\n console.log('[MyHotspots]will receive props:', nextProps);\n console.log('===============');\n if (nextProps.error) {\n Alert.alert(\n 'Oops..Something went wrong!',\n \"We couldn't load your hotspots, please try again later.\",\n [{ text: 'Cancel', style: 'cancel', onPress: Actions.pop }],\n { cancelable: true }\n );\n }\n if (nextProps.myHotspots) {\n this.updateHotspotList(nextProps.myHotspots);\n }\n if (nextProps.deletion) {\n this.updateHotspotList(nextProps.myHotspots);\n }\n }", "componentWillReceiveProps() {\n }", "componentDidUpdate(prevProps) {\n if (this.props.refresh!== prevProps.refresh) {\n this.fetchRecipes(this.props.url);\n }\n }", "componentDidUpdate(prevProps, prevState) {\n let currentParam = this.props.currentParam\n\n if (currentParam !== prevProps.currentParam) {\n this.setState({currentParam: currentParam})\n\n // Set localstorage whebn component update\n this.handleLocalStorage()\n }\n }", "componentDidUpdate(prevProps) {\n if (this.props.userId !== prevProps.userId) {\n this.fetchPlaylistData();\n }\n }", "componentDidUpdate(prevProps, prevState, snapshot) {\n console.log(prevProps, prevState);\n console.log('Component Did Update');\n console.log('---------------');\n }", "componentWillReceiveProps(nextProps) {\n console.log('component is receiving new props');\n console.log('here are the incoming props');\n console.log(nextProps);\n console.log('here are the current props');\n console.log(this.props);\n }", "componentDidUpdate(prevProps, prevState) {\n console.log(\"TODO App was Updated!\");\n }" ]
[ "0.7401416", "0.7212571", "0.71723986", "0.70731694", "0.70092875", "0.69884443", "0.69810486", "0.6951394", "0.6927628", "0.69176555", "0.6885189", "0.68430763", "0.68293977", "0.6823547", "0.6812054", "0.68036604", "0.67877126", "0.6771834", "0.67638624", "0.6724362", "0.6668677", "0.66525054", "0.66525054", "0.66477543", "0.6636068", "0.6627642", "0.6627157", "0.6623622", "0.6621242", "0.6621242", "0.661264", "0.6607216", "0.6605475", "0.6601952", "0.6599452", "0.65951353", "0.65888864", "0.6572054", "0.6568537", "0.65465343", "0.6543389", "0.65346014", "0.6532915", "0.6528985", "0.652424", "0.6517811", "0.65116805", "0.651046", "0.6508656", "0.65077734", "0.6504743", "0.6494272", "0.6477646", "0.647344", "0.64734", "0.64722836", "0.6470745", "0.6470414", "0.6470414", "0.6467411", "0.64631885", "0.6462702", "0.6458154", "0.6458154", "0.6458154", "0.6443508", "0.6440596", "0.6428006", "0.64209664", "0.64148253", "0.64068604", "0.64018667", "0.63902205", "0.63868105", "0.6385959", "0.6380073", "0.6369307", "0.6367558", "0.63569295", "0.63481766", "0.63463044", "0.6346222", "0.63448113", "0.63429374", "0.63421607", "0.63418984", "0.63346", "0.6333954", "0.6329306", "0.63279665", "0.6327159", "0.63188857", "0.631839", "0.6314378", "0.6311313", "0.6308861", "0.6304243", "0.6297961", "0.6297849", "0.6295935", "0.6293782" ]
0.0
-1
Lifecycle hook for when the component unmounts
componentWillUnmount() { // Remove the event listener for 'keydown' as it is no longer needed document.removeEventListener('keydown', this.handleKeyDown); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "componentWillUnmount() {\n // console.log('Unmounted');\n base.removeBinding(this.ref);\n }", "componentWillUnmount() {\n console.log('component is being removed')\n }", "componentWillUnmount() {\n\t\tthis._isMounted = false;\n\t}", "componentWillUnmount() {\n\t\tthis._isMounted = false;\n\t}", "componentWillUnmount() {\n this._isMounted = false;\n }", "componentWillUnmount(){\n console.log('component unmounted')\n }", "componentWillUnmount() {\n this._isMounted = false;\n }", "componentWillUnmount() {}", "componentWillUnmount() {}", "componentWillUnmount() {}", "componentWillUnmount() {}", "componentWillUnmount() {}", "componentWillUnmount() {}", "componentWillUnmount() {}", "componentWillUnmount() {}", "componentWillUnmount() {\n console.log('my component will get unmounted');\n }", "componentWillUnmount() {\n // Cleans up Blaze view\n Blaze.remove(this.view);\n }", "componentWillUnmount() {\n if (this.ref) {\n this.ref.off('value', this.handleUpdates);\n }\n }", "componentWillUnmount() {\n this._isMounted = false\n }", "componentWillUnmount() {\n this._isMounted = false\n }", "componentWillUnmount() {\n DeviceEventEmitter.removeListener('event.ready', this.app_ready);\n DeviceEventEmitter.removeListener(\n 'event.is_search_empty',\n this.is_search_empty,\n );\n }", "componentWillUnmount() {\n console.log(\"Component will unmount\");\n base.removeBinding(this.ref);\n }", "componentWillUnmount () {}", "componentWillUnmount() {\n console.log('Component WILL UNMOUNT!')\n }", "componentDidUnmount(){\n // console.log('Back From the Bink')\n }", "componentWillUnmount() {\n this.mounted = false;\n }", "componentWillUnmount() {\n this.mounted = false;\n }", "componentWillUnmount() {\n this._unsubscribe();\n }", "componentWillUnmount(){\n this.mounted = false;\n }", "componentWillUnmount(){\n this.mounted = false;\n }", "componentWillUnmount() {\n console.log(\"[Car] Component is Destroying!\");\n }", "static unMount() {\n if (this.rootComponentMounted) {\n// Fire componentWillUnmount event, then remove component...\n Events.fire('componentWillUnmount', this.rootComponent)\n this.rootComponent.remove()\n\n// Reset componentMounted flag...\n this.rootComponentMounted = false\n } else {\n try {\n throw this.Errors.UnmountError\n }\n catch (err) {\n console.error(err.message)\n }\n }\n }", "componentWillUnmount() {\n this.mounted = false;\n }", "componentWillUnmount() {\n this.mounted = false;\n }", "componentWillUnmount() {\n this.mounted = false;\n }", "componentWillUnmount() {\n this.mounted = false;\n }", "componentWillUnmount() {\n this.off();\n this.listeners.forEach(function(listener) {\n listener.off();\n });\n }", "componentWillUnmount() {\n // Ex: remove event listener\n // (In general, teardown or cleanup your code before your component disapears)\n }", "componentWillUnmount(){\n // cleanup methods \n console.log(\"componentWillUnmount called\")\n }", "componentWillUnmount() {\n this.unsubscribe();\n }", "componentWillUnmount(){\n\t\tconsole.log('Component Unmount')\n\t}", "componentWillUnmount() {\n this.listener && this.listener.remove();\n }", "componentWillUnmount() {\n console.log('component will unmount')\n }", "componentWillUnmount() {\n console.log(\"TODO App Unmounted!\");\n }", "componentWillUnmount() {\n this.props.cleanup();\n }", "componentWillUnmount(){\n console.log(\"I am in Component Will Unmount\");\n console.log(\"------------------------------------------\");\n }", "componentWillUnmount() {\n console.log('App component will be destroyed');\n }", "componentWillUnmount() {\n console.log('Unmounting this component');\n }", "componentWillUnmount() {\n console.log(\"component will unmount\");\n }", "componentWillUnmount() {\n console.log(\"component will unmount\");\n }", "componentWillUnmount(){\n this.unsubscribe()\n}", "componentWillUnmount() {\n Fire.shared.off();\n }", "componentWillUnmount() {\n Fire.shared.off();\n }", "componentWillUnmount() {\n base.removeBinding(this.ref);\n }", "componentWillUnmount() {\n // this.unsubscribe();\n }", "componentWillUnmount() {\n this.exit()\n }", "componentWillUnmount(){\n\n }", "componentWillUnmount() {\n this.isMounted_ = false;\n this.disposePlayer();\n }", "componentWillUnmount() {\n\n }", "componentWillUnmount() {\n\n }", "componentWillUnmount() {\n base.removeBinding(this.ref);\n }", "componentWillUnmount (){\n this.unsubscribe();\n }", "componentWillUnmount(){\n base.removeBinding(this.ref);\n }", "componentWillUnmount() {\n this._isMounted = false;\n clearTimeout(this.intervalID);\n\t}", "componentWillUnmount () {\n console.log(\"before unmount\");\n }", "componentWillUnmount() {\n console.log(\"Component will unmount\");\n }", "componentWillUnmount() {\n console.log(\"Component will unmount\")\n }", "componentWillUnMount() {\n\n }", "componentWillUnmount(){\n // console.log('Goodd By Cruel World')\n }", "componentWillUnmount() {\n\n }", "componentWillUnmount() {\n\n }", "componentWillUnmount() {\n\n }", "componentWillUnmount() {\n\n }", "componentWillUnmount() {\r\n\r\n }", "async componentWillUnmount() {\n this.setState({ isUnmounted: true });\n }", "unload (text) {\n console.log('Component was unmounted from the DOM')\n }", "componentWillUnmount() {\n this.hotInstance.destroy();\n }", "componentWillUnmount() {\n this.props.onRef(undefined)\n this.unregisterAuthObserver();\n }", "componentWillUnmount() {\n }", "componentWillUnmount() {\n }", "componentWillUnmount() {\n\t\tif (this.stopListeningOnStory) {\n\t\t\tthis.stopListeningOnStory();\n\t\t}\n\n\t\tthis.unmounted = true;\n\t\tconst { channel } = this.props;\n\t\tchannel.removeListener('storybook/notes/add_notes', this.onAddCode);\n\t}", "componentWillUnmount() {\n\t base.removeBinding(this.ref);\n }", "componentWillUnmount() {\n }", "componentWillUnmount() {\n }", "componentWillUnmount() {\n console.log('Component WILL UNMOUNT!', this.props);\n }", "componentWillUnmount(){\n console.log('Counter - Unmnount')\n }", "componentWillUnmount() {\n\t\tServiceSpecStore.removeChangeListener(this._onChange);\n\t}", "componentWillUnmount() {\n\n\t}", "componentWillUnmount() {\n this.props.graphql.off('fetch', this.onFetch)\n this.props.graphql.off('cache', this.onCache)\n this.props.graphql.off('reset', this.onReset)\n }", "componentWillUnmount() {\n // console.log(\"=========================> componentWillUnmount\");\n }", "componentWillUnmount() {\n this.listener();\n }", "componentWillUnmount() {\n\t\t// Stub\n\t}", "componentWillUnmount() {\n //console.log('IndecisionApp componentWillUnmount')\n }", "componentWillUnmount() {\n console.log(\"within componentWillUnmount \");\n console.log(\"Any clean up code \");\n }", "componentWillUnmount() {\n this.listener();\n }", "componentWillUnmount() {\n this.listener();\n }", "componentWillUnmount() {\n console.log(\"Destroy Hero List component...\");\n }", "componentWillUnmount() {\n if (this.unregister) { //if have a function to unregister with\n this.unregister(); //call that function!\n }\n }", "componentWillUnmount() {\n\t\t\n\t}", "componentWillUnmount() {\n window.removeEventListener('angleChangedTemp', this.updateTemp);\n window.removeEventListener('angleChangedColour', this.updateColour);\n window.removeEventListener('angleChangedKnob', this.updateKnob);\n window.removeEventListener('wheel', this.handleWheel);\n this.service.stop();\n }", "componentWillUnmount() {\n window.removeEventListener(\n \"beforeunload\",\n this.saveStateToLocalStorage.bind(this)\n );\n // saves data to local storage if component successfully unmounts\n this.saveStateToLocalStorage();\n }" ]
[ "0.76786494", "0.76753104", "0.7670251", "0.7670251", "0.7660515", "0.76491576", "0.75940335", "0.75703806", "0.75703806", "0.75703806", "0.75703806", "0.75703806", "0.75703806", "0.75703806", "0.75703806", "0.7551948", "0.75490254", "0.7542401", "0.75366336", "0.75366336", "0.75238377", "0.75217485", "0.751275", "0.75103915", "0.75101125", "0.7502438", "0.7502438", "0.7492454", "0.749052", "0.749052", "0.74861366", "0.7480942", "0.7479637", "0.7479637", "0.7479637", "0.7479637", "0.7453847", "0.7452087", "0.7434739", "0.7434245", "0.74239266", "0.7423308", "0.74150115", "0.74126583", "0.74107367", "0.74080354", "0.74056363", "0.7397958", "0.7388283", "0.7365082", "0.73632264", "0.7362184", "0.7362184", "0.73587793", "0.7351263", "0.7344305", "0.73353577", "0.7328681", "0.73241395", "0.73241395", "0.73194146", "0.73182094", "0.7312694", "0.731044", "0.7307547", "0.73060286", "0.7303059", "0.7302721", "0.7293725", "0.7286929", "0.7286929", "0.7286929", "0.7286929", "0.7282092", "0.72820765", "0.7276548", "0.7273463", "0.7255305", "0.72474676", "0.72474676", "0.7238638", "0.72296554", "0.7226727", "0.7226727", "0.7223853", "0.72103167", "0.7206842", "0.7204095", "0.7199663", "0.719798", "0.71977913", "0.7195342", "0.7195077", "0.7193453", "0.71926445", "0.71926445", "0.7191059", "0.7190291", "0.7190098", "0.71852744", "0.71833616" ]
0.0
-1
Find the node containing the book title
function getTitleNode() { var nodes = document.evaluate("//span[@id='" + titleNodeId + "']", document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null); if(!nodes){ return null; } var thisNode = nodes.iterateNext(); var titleNode; // Get the last node while(thisNode){ //GM_log( thisNode.textContent ); titleNode = thisNode; thisNode = nodes.iterateNext(); } //was (titleValue == null) if (titleNode == null) { GM_log("can't find title node"); return null; } else { GM_log("Found title node: " + titleNode.textContent); } return titleNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTitleNode()\r\n{\r\n\t// Amazon has a number of different page layouts that put the title in different tags\r\n // This is an array of xpaths that can contain an item's title\r\n var titlePaths = [\r\n \t\"//span[@id='btAsinTitle']/node()[not(self::span)]\",\r\n \"//h1[@id='title']/node()[not(self::span)]\"\r\n ];\r\n \r\n for(var i in titlePaths) {\r\n \tvar nodes = document.evaluate(titlePaths[ i ], document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null);\r\n\r\n\t\tvar thisNode = nodes.iterateNext(); \r\n\t\tvar titleNode;\r\n\t\t// Get the last node\r\n\t\twhile(thisNode){\r\n\t\t\tif(DEBUG) GM_log( thisNode.textContent );\r\n\t\t\ttitleNode = thisNode;\r\n \r\n if(titleNode) {\r\n \tbreak;\r\n \t}\r\n \r\n\t\t\tthisNode = nodes.iterateNext();\r\n\t\t}\r\n }\r\n\r\n\tif (titleNode == null || !nodes) {\r\n GM_log(\"can't find title node\");\r\n\t\treturn null;\r\n\t} else {\r\n if(DEBUG) GM_log(\"Found title node: \" + titleNode.textContent);\r\n\t}\r\n\treturn titleNode;\r\n}", "getTitle() {\n return this.icon.parentElement.childNodes[3];\n }", "function getSectionTitle(nodeElement)\n{\n if(!nodeElement)\n return null;\n if (nodeElement.title !== null)\n return nodeElement.title;\n}", "function _getByTitle(titleToFind, cb) {\n let indx = _articleIndex(titleToFind);\n if(indx > -1) return cb(articleStorage[indx]);\n // otherwise, if no number is found?\n return cb('CANNOT FIND TITLE');\n }", "function logTitle(book) {\n\tconsole.log(book.title);\n}", "function title() {\n var elm\n \n elm = d.find(\"title\");\n elm.innerText = g.title;\n \n elm = d.tags(\"title\");\n elm[0].innerText = g.title;\n }", "async function getTitle(titleNode, url, src) {\n if (!titleNode._value) {\n let titleSrc = src.substring(titleNode.start, titleNode.end + 1);\n titleNode._value = await apiEvalAsync(titleSrc, \"\", url);\n }\n return titleNode._value;\n}", "getTitle() {\n return this._doc.title;\n }", "function linknodetitle(text_to_parse)\n{\n var linkparts = text_to_parse.split(/\\s*[|\\]]+/,2);\n var nodename = linkparts[0];\n var title = linkparts[1];\n\n if(typeof title == 'undefined')\n {\n title=nodename;\n }\n\n if(typeof title == 'string' && title.match(/^\\s*$/i))\n {\n title=nodename;\n }\n\n return '<a href=\"/node/title/'+encodeURI(nodename)+'\">'+title+'</a>';\n}", "getTitle() {\n return this._doc.title;\n }", "getTitle() {\n return this._doc.title;\n }", "getTitle() {\n return this._doc.title;\n }", "getTitle() {\n return this._doc.title;\n }", "getTitle() {\n return this._doc.title;\n }", "async function searchByTitle(title){\n let titleURI = encodeURIComponent(title.innerHTML);\n let response = await fetch(dbURI + `t=${titleURI}`);\n let data = await response.json();\n return data;\n}", "function getElementTitle(elemID)\n{\n var elem = getElementTitleObj(elemID);\n \n if(elem != null)\n return elem.firstChild.nodeValue;\n \n return null;\n}", "function searchBook(title) {\n const bookData = getListOfBook();\n const searchResult = [];\n for (let data of bookData) {\n if (data.title.includes(title)) {\n searchResult.unshift(data);\n }\n }\n renderBookList(true, searchResult);\n}", "function GetElementByTitle(title, tag_types)\n{\n if (!tag_types || (0 == tag_types.length))\n {\n tag_types = new Array('DIV');\n }\n\n if (!title)\n {\n return;\n }\n\n // find the corresponding element\n for (var i = 0; tag_types.length > i; ++i)\n {\n var objects = document.getElementsByTagName(tag_types[i]);\n var j = 0;\n while (j < objects.length)\n {\n if (title == objects[j].title)\n {\n return objects[j];\n }\n ++j;\n }\n }\n}", "static findByTitle(title, callback) {\n\n\n const id = Slug(title).toLowerCase();\n const query = { 'postId': id };\n\n this.findOne(query, callback);\n }", "function gotTitle(title, sender, sendResponse) {\n if(title.highway == 'wikititle') {\n WikiTitle = title.title;\n // alert('Title received: ' + title.title);\n search(WikiTitle);\n }\n}", "function getTitle() {\n return document.getElementById( \"eow-title\" ).title;\n}", "function getPageTitle () {\n return title;\n }", "function getPanelMetadataTitle()\n{ \n var elems = document.getElementsByTagName(\"Work\");\n\n if(elems != null)\n {\n for(var j = 0; j < elems.length; j++)\n {\n for(var i = 0; i < elems[j].childNodes.length; i++)\n {\n if(elems[j].childNodes[i] == '[object Element]')\n {\n if((elems[j].childNodes[i].nodeName == \"dc:title\") && (elems[j].childNodes[i].firstChild != null))\n return elems[j].childNodes[i].firstChild.nodeValue;\n }\n }\n }\n }\n \n return null;\n}", "getTitle() {}", "function $n( root, nodeName ) { return findNodeByName(root,nodeName); }", "function titleEvent(obj, index) {\n var value = document.querySelector(\"#screen-reader-main-title > span\");\n //var value = document.getElementById(\"screen-reader-main-title\");\n var title = value.getElementsByTagName(\"span\");\n window.ScraperExt.push(value.innerHTML);\n nextSearchItem(obj, index + 1);\n}", "function getTitle(text) {\r\n return text.match('<title>(.*)?</title>')[1];\r\n}", "function getNote (title) {\n console.log('Getting note',title);\n var notes = fetchNotes();\n var note = notes.find((note) => note.title === title);\n return note;\n}", "function getTitle(text) {\n return text.match(\"<title>(.*)?</title>\")[1];\n}", "_findWidgetByTitle(title) {\n const item = find(this._items, value => value.widget.title === title);\n return item ? item.widget : null;\n }", "function getTitle () {\n const titleClass = document.getElementsByTagName(\"h2\")[0];\n let title = titleClass.innerText;\n return title;\n}", "function getTitle(text) {\n return text.match('<title>(.*)?</title>')[1];\n}", "function getTitle(item){\n return item.title;\n \n}", "function COPFFile_GetBookTitle_COmExcecao(path)\n{\n var xml = CUtils.LoadXML(path);\t//o XMLDocument dele\n\txml = CUtils.GetXMLChildNoException(xml, \"package\", this.path);\n\txml = CUtils.GetXMLChildNoException(xml, \"metadata\", this.path);\n\txml = CUtils.GetXMLChildNoException(xml, \"dc-metadata\", this.path);\n\txml = CUtils.GetXMLChildNoException(xml, \"dc:Title\", this.path);\n\treturn xml.textContent;\n}", "getNodeName() {}", "get title() { return this.Nls(\"Bookmarks_Title\") }", "function renderSingleBookTitle(book) {\n const li = document.createElement('li')\n li.textContent = book.title;\n li.className = \"list-item\"\n li.dataset.id = book.id;\n ul.appendChild(li);\n}", "function getTitle(text) {\n return text.match('<title>(.*)?</title>')[1];\n}", "function getTitle(text) {\n return text.match('<title>(.*)?</title>')[1];\n}", "function getTitle(text) {\n return text.match('<title>(.*)?</title>')[1];\n}", "function getTitle(text) {\n return text.match('<title>(.*)?</title>')[1];\n}", "function getTitle(text) {\n return text.match('<title>(.*)?</title>')[1];\n}", "function getTitle(text) {\n return text.match('<title>(.*)?</title>')[1];\n}", "function getTitle(text) {\n return text.match('<title>(.*)?</title>')[1];\n}", "function getAuthor() {\n const authorElem = document.getElementsByTagName(\"b\")[0];\n const authorText = authorElem.innerText;\n return authorText;\n}", "function bookTitle(id) {\n //log('display ' + key);\n return initDB('thr').then(function(db) {\n return readRecord(db, 'books', +id).then(function(book) {\n return { ID: book.ID, title: book.title };\n });\n });\n }", "function getbook(booktitle,bauthor)\n {\n for(var i=0;i<allBooks.length;i++)\n {\n if(allBooks[i].btitle==booktitle&&allBooks[i].author==bauthor)\n {\n return i;\n }\n }\n return -1;\n\n }", "function getTitle($el) {\n var titleCandidates = [],\n titleClassNames = ['title', 'summary', 'description'],\n result, i;\n\n // First, Check for <h1>, <h2>, etc.\n for (i = 1; i <= 6; i += 1) {\n titleCandidates.push($el.find('h' + i).first().text());\n }\n\n // Check for popular classNames\n for (i = 0; i < titleClassNames.length; i += 1) {\n titleCandidates.push($el.find('.' + titleClassNames[i]).first().text());\n titleCandidates.push($el.find('[itemprop=\"' + titleClassNames[i] + '\"]').text());\n }\n\n // Check for <a> elements...\n titleCandidates.push($el.find('a[href]').text());\n\n // Return best match\n for (i = 0; i < titleCandidates.length; i += 1) {\n if (titleCandidates[i]) {\n return titleCandidates[i];\n }\n }\n return \"No Title\";\n }", "function getTitle($,selector){\n let title = $(selector).text();\n if (title == null || title == ''){\n throw new Error(\"GetTitle: Selector or webpage error\");\n return null;\n }else{\n //Remove invalid symbols for file name\n title = removeIllegalChar(title);\n return title;\n }\n}", "function peiticionLibro(title){\n title = title.replace(/\\s/g,\"+\");\n //console.log(title);\n request.get(`http://openlibrary.org/search.json?q=/${title}/`,(err,response,body) =>{\n //console.log(err);\n //console.log(response.statusCode);\n const json = JSON.parse(body);\n console.log(json.docs[0].title);\n console.log('Authors');\n json.docs[0].author_name.forEach(element => console.log(element));\n\n });\n }", "function parseTitle(term, origin, control,node) {\n\tvar titleQuery = \"\";\n\tvar valid = false;\n\t\n\tif( term!=\"\"){\n \t\tvalid=true; \n\n\t\t//xslt is case sensitive, users are not!\n\t\t titleQuery=titleQuery+\"remakes/remake[contains(translate(\"+node+\",$smallcase,$uppercase), translate(\\'\"+term+\"\\',$smallcase,$uppercase))] \"+ $('input[name=refine]:radio:checked')[0].value + \" \"; \n\t\t//for now\n\t\tglobalQuery = globalQuery + titleQuery;\n\t} \n\t\t\t\t\t\t \n\treturn titleQuery; \n}", "function hasTitle(){\n return ecoElement.title !== \"\";\n }", "function getElementTitleObj(elemID)\n{\n var elem = svgDocument.getElementById(elemID);\n \n if(elem == null)\n return null;\n \n for(var i = 0; i < elem.childNodes.length; i++)\n {\n if(elem.childNodes[i] == '[object SVGTitleElement]')\n return elem.childNodes[i];\n }\n \n return null;\n}", "function displayBookInfo(book) {\n\t// note: can use textContent OR innerText\n bookInfo.children[0].children[0].textContent = book.bookId;\n bookInfo.children[1].children[0].innerText = book.title;\n bookInfo.children[2].children[0].innerText = book.author;\n bookInfo.children[3].children[0].innerText = book.genre;\n bookInfo.children[4].children[0].textContent = book.patron != null ? book.patron.name : \"N/A\";\n\n}", "function getTitle(text) {\n\treturn text.match('<title>(.*)?</title>')[1];\n}", "function getTitle() {\n const title = document.querySelector('#title');\n title.addEventListener('change', (e) => {\n if (title.value !== '') {\n searchBooksObj.partialTitle = e.target.value;\n }\n });\n}", "function getItemTitle() {\r\n var item_title = '';\r\n var element = document.getElementById(\"Table7\");\r\n try {\r\n strong_tag = element.getElementsByTagName('strong');\r\n item_title = strong_tag[0].getElementsByTagName('strong')[0].textContent;\r\n } catch(e) {\r\n alert('Title not found.' + e);\r\n }\r\n\t\t\t\r\n return encodeURIComponent(item_title);\r\n }", "function SearchByTitlePre(database,word,func) {\r\n database.query('SELECT books_basic.ID,Title,Subtitle,Image FROM books_basic WHERE Title = \"'+word+'\";', func);\r\n}", "function getSongByTitle(title) {\n for (const song of songDatabase) {\n if (song.title === title) {\n return song;\n }\n }\n return false;\n}", "function searchTitle(title) {\n const sql = `SELECT * FROM post WHERE title LIKE '%${title}%' ORDER BY timeposted DESC;`;\n return db.execute(sql);\n}", "function GetBookmarkName(doc)\r\n{\r\n\tvar str = util.printf(\"Enter a Bookmark to find in document %s. \\nUse A:B:C:D or A:*:D for hierarchy.\", doc.documentFileName);\r\n resp = app.response({\r\n cTitle: \"Find Bookmark\",\r\n cQuestion: str\r\n });\r\n if ( resp != null ) {\r\n\t\tif(GoToBookmark(doc, resp)==null)\r\n\t\t\tapp.alert(\"The bookmark is not found.\");\r\n\t}\r\n}", "function getCurrentBookTitle() {\n return service.currentBook.title.replace(/(\\\\|\\/)/g, '_');\n }", "function findAuthor(element) {\n return element['name']=='From';\n}", "function get_title(overlay) {\n title = overlay.getElementsByClassName(\"bob-title\");\n if (title.length > 0) {\n return title[0].innerHTML;\n }\n\n return null;\n}", "get title() {\n return this.getAttribute('title') || '';\n }", "function searchStory(title) { \r\n if (stories.has(title)) {\r\n // displayStory is place holder, will update once front end complete\r\n document.getElementById('displayTitle').innerHTML = title;\r\n document.getElementById('displayStory').innerHTML = stories.get(title);\r\n } else {\r\n // displayStory is place holder, will update once front end complete\r\n document.getElementById('displayStory').innerHTML = 'This story does not exist in our database!';\r\n }\r\n}", "function getBook(title) {\n var book = null;\n var url = 'https://www.goodreads.com/book/title.xml?key=' + key + '&title=' + title;\n\n request(url, function (error, response, body) {\n if (!error && response.statusCode == 200) {\n xml2js(body, function (error, result) {\n if (!error) {\n // Extract just the fields that we want to work with. This minimizes the session footprint and makes it easier to debug.\n var b = result.GoodreadsResponse.book[0];\n book = { id: b.id, title: b.title, ratings_count: b.ratings_count, average_rating: b.average_rating, authors: b.authors };\n }\n else {\n book = { error: error };\n }\n });\n }\n else {\n book = { error: error };\n }\n });\n\n // Wait until we have a result from the async call.\n deasync.loopWhile(function() { return !book; });\n\n return book;\n}", "async function getTitle(url) {\n try {\n const page = await axios.get(url);\n const $ = cheerio.load(page.data);\n const header = $(\"title\").text();\n return header;\n } catch (error) {\n return null;\n }\n}", "function findBookIndexFromTheSite(shortBookName) {\n let books = [];\n for (let i = 2; i <= 67; i++) {\n books.push(\n document.querySelector(`#search-tips-table > tbody > tr:nth-child(${i})`)\n .innerText\n );\n }\n var shortBooks = books.map((a) => a.split(\"/\")).map((b) => b[1].trim()); //get the handles\n //var shortBooks = books.map((a) => a.split(\"/\")).map((b) => b[0].trim()); //get the full name\n return shortBooks.indexOf(shortBookName) + 1;\n}", "function getTitle(text) {\n return text.match('<title>(.*)?</title>')[1];\n }", "function getTitle(doc) {\n\treturn getMetadata( 'title', doc ) ||\n\t\t\t\t\tgetMetadataOG( 'og:title', doc ) ||\n\t\t\t\t\tdoc.getElementsByTagName( 'title' );\n}", "function title(titleinfo) /* (titleinfo : titleinfo) -> string */ {\n return titleinfo.title;\n}", "function getItemTitle() {\r\n var item_title = '';\r\n var element = getElementLikeId(\"price\")[0];\r\n try {\r\n parent_obj = element.parentNode;\r\n strong_element = parent_obj.getElementsByTagName('strong');\r\n item_title = strong_element[0].innerHTML;\r\n } catch(e) { \r\n //alert(e); \r\n }\r\n\t\t\t\r\n return encodeURIComponent(item_title);\r\n }", "getAuthorForBook(grBook) {\n const authors = this.getXmlProperty(grBook, \"authors\", null /* defaultValue */);\n if (!authors || !authors.author || authors.author.length === 0) {\n return \"\";\n }\n return this.getXmlProperty(authors.author[0], \"name\");\n }", "function title ( data, index ) {\n if( typeof index === 'undefined' ) return \"\";\n if( index === null ) return \"\";\n if( !data ) return \"\";\n return data.results[index].title;\n}", "async function getPmidByTitle(articleTitle) {\n\tconst response = await fetch(esearchBaseUrl + articleTitle + '&field=title');\n\treturn await response.json();\n}", "function getByName(bookTitle) {\n\n var bookId = -1;\n for (let i = 0; i < data.length; i++) {\n if (data[i].title.toLowerCase() == bookTitle.value.toLowerCase()) {\n bookId = data[i]._id;\n }\n }\n if (bookId == -1) {\n alert(\"Sorry, this book isn't in the database\");\n }\n else {\n bookTitle.value = '';\n detailsOfBook(bookId);\n }\n\n}", "function getSongByTitle(title) {\n for(let i = 0; i < songDatabase.length; i++) {\n if (title === songDatabase[i].title) {\n return songDatabase[i];\n }\n\n // fuzzy search\n /*\n if (songDatabase[i].title.includes(title)) {\n return songDatabase[i];\n }\n */\n }\n return;\n}", "title (body) {\n const titleMatch = body.substr(body.indexOf('#')).match(/^#\\s+(.*)/)\n return titleMatch ? titleMatch[1] : ''\n }", "function hc_namednodemapgetnameditem() {\n var success;\n var doc;\n var elementList;\n var testEmployee;\n var attributes;\n var domesticAttr;\n var attrName;\n doc = load(\"hc_staff\");\n elementList = doc.getElementsByTagName(\"acronym\");\n testEmployee = elementList.item(1);\n attributes = testEmployee.attributes;\n\n domesticAttr = attributes.getNamedItem(\"title\");\n attrName = domesticAttr.nodeName;\n\n assertEqualsAutoCase(\"attribute\", \"nodeName\",\"title\",attrName);\n \n}", "get headertext() { return $('h3') }", "function title(node) {\n return \"Name: \" + node.name + \"\\nSize: \" + node.size + \"\\nDepth: \" + node.depth + \"\\nValue: \" + node.value;\n}", "static findByName(id, title, cb) {\n getProductsFromFile((products) => {\n console.log('Get Product by name', title, \"--\", id);\n // Sequencial Search\n // const product = products.find(p => p.title === title);\n\n // Implement Binary Search\n const product = binarySearch(products, title);\n\n cb(product);\n });\n }", "function getPanelDocumentTitle()\n{ \n return getElementTitle(\"title1\");\n}", "function getChapterNode(editor, path) {\n const pathOption = path ? { at: path } : {};\n return index_es/* Editor.above */.ML.above(editor, Object.assign({ match: isChapterNode }, pathOption));\n}", "function getTitleAndContent(notebookFileName, entryId) {\n var xmlDoc = $.parseXML($('#txtCache-' + notebookFileName).text());\n var title = \"\";\n var titleElement = $(xmlDoc).find('entry[id=\"' + entryId + '\"] title')[0];\n if (typeof titleElement != 'undefined') {\n if (titleElement.childNodes.length > 0) {\n title = titleElement.childNodes[0].nodeValue;\n }\n }\n var content = \"\";\n var contentElement = $(xmlDoc).find('entry[id=\"' + entryId + '\"] content')[0]; \n if (typeof contentElement != 'undefined') {\n if (contentElement.childNodes.length > 0) {\n content = contentElement.childNodes[0].nodeValue; \n }\n }\n return { title: title, content: content };\n }", "function getPaperTitle(paperObj){\n //takes in a object and returns the title property\n // title is part of the above const,\n var titleObject = paperObj.title;// takes in variable and request title from obj, then return obj below\n return titleObject;\n}", "function Playlist_modifTitle(element) {\r\n if(element.id && (element.id.indexOf('playnav-play-playlist-')==0) || (element.id.indexOf('playnav-grid-playlist-')==0)) {\r\n var divs=null; try { divs=document.evaluate(\".//div[starts-with(@id,'playnav-playlist-') and contains(@id,'-title')]\",element,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null); } catch(err) { divs=null; }\r\n if(divs) {\r\n var divs_lg=divs.snapshotLength;\r\n for(var h=0;h<divs_lg;h++) {\r\n var elem=divs.snapshotItem(h);\r\n if(elem.parentNode.nodeName.toUpperCase()!=\"A\") {\r\n var res=elem.getAttribute('id').match(/^playnav\\-playlist\\-(.*?)\\-title$/i);\r\n if(res) {\r\n res=res[1];\r\n var aelem=document.createElement('a');\r\n aelem.setAttribute('href',window.location.protocol+'//'+window.location.host+'/view_play_list?p='+res);\r\n aelem.setAttribute('target','_blank');\r\n aelem.appendChild(elem.cloneNode(true));\r\n elem.parentNode.replaceChild(aelem,elem);\r\n } } } } } }", "function getSectionTitle(title) {\n // section title layout\n return title;\n}", "function getTitle()\n {\n\n var title = d(Posting.TITLE);\n var address = d(Posting.URL);\n\n if (title) {\n var sTitle = title.value;\n if (address && address.value.length>0) {\n sTitle = \"<a target=\\\"new\\\" href=\\\"\"\n +address.value\n +\"\\\">\"\n +sTitle\n +\"</a>\";\n }\n }\n\n return sTitle;\n }", "function findBN (a_BN, BN) {\r\n let a_result; // undefined by default\r\n let bnId = BN.id;\r\n let bnTitle = BN.title;\r\n let bnUrl = BN.url;\r\n let len;\r\n if ((a_BN != undefined) && ((len = a_BN.length) > 0)) {\r\n\tlet j;\r\n\tlet node, i;\r\n\tfor (j=0 ; j<len ; j++) {\r\n\t i = a_BN[j];\r\n\t if ((i.id == bnId) && (i.title == bnTitle) && (i.url == bnUrl)) {\r\n\t\tnode = i;\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n\tif (node != undefined) { // Found it !\r\n\t a_result = [node, j];\r\n\t}\r\n }\r\n return(a_result);\r\n}", "function getTitle() {\n\tlet title = $(\"#propertyTitle\").text();\n\treturn title;\n}", "async pageTitle () {\n debug('getting pageTitle')\n return new Promise(resolve => {\n this.pageContext.evaluate(() => { return document.title },\n (err, result) => {\n if (err) {\n console.error(err)\n }\n resolve(result)\n })\n })\n }", "get title () {\n\t\treturn this._title;\n\t}", "get title () {\n\t\treturn this._title;\n\t}", "get title () {\n\t\treturn this._title;\n\t}", "get title () {\n\t\treturn this._title;\n\t}", "get title () {\n\t\treturn this._title;\n\t}", "function getTaskName(task) {\n\t//\treturn task.childNodes[2].childNodes[1].childNodes[2].nextSibling.innerHTML.toLowerCase();\n\treturn task.taskItem_title;\n}", "function createSearchTitle(title){\n var searchTitle = document.createElement('span');\n $(searchTitle).text(title);\n $(searchTitle).attr('id', 'videoInfoTitle');\n return searchTitle;\n}" ]
[ "0.7295673", "0.63078415", "0.61382735", "0.61244047", "0.6074707", "0.596701", "0.59222865", "0.59111446", "0.5890053", "0.5882683", "0.5882683", "0.5882683", "0.5882683", "0.5882683", "0.5877939", "0.58768195", "0.58464646", "0.583462", "0.5785628", "0.5783641", "0.57817686", "0.57790864", "0.5764693", "0.5722342", "0.5712761", "0.5690192", "0.568814", "0.56859285", "0.56812847", "0.5674124", "0.5661592", "0.5617389", "0.56076545", "0.55901146", "0.55843824", "0.5575276", "0.5572729", "0.55617636", "0.55617636", "0.55617636", "0.55617636", "0.55617636", "0.55617636", "0.55617636", "0.55583537", "0.55559474", "0.5553278", "0.55521375", "0.5531005", "0.5526623", "0.55221725", "0.5512274", "0.5506759", "0.54912394", "0.54840446", "0.54775983", "0.54717094", "0.5469428", "0.5464926", "0.54341036", "0.5432795", "0.54200304", "0.5405025", "0.5388808", "0.5387935", "0.53751624", "0.53740764", "0.53655833", "0.5364377", "0.5359719", "0.53303397", "0.53270984", "0.53264624", "0.5326299", "0.5317612", "0.53144556", "0.5311919", "0.5296108", "0.5271512", "0.5271002", "0.5268457", "0.52671164", "0.52526873", "0.5248011", "0.52472776", "0.5239436", "0.52361864", "0.5232084", "0.52230597", "0.5222271", "0.52177066", "0.5217591", "0.51902264", "0.51727474", "0.51727474", "0.51727474", "0.51727474", "0.51727474", "0.5166056", "0.5164563" ]
0.7280169
1
Setting the component's initial state
constructor(props) { super(props); this.sizes = [ {letters: "1 To 3 Letters", width: "12 Inches", cost: "$14.99"}, {letters: "1 To 3 Letters", width: "24 Inches", cost: "$39.99"}, {letters: "1 To 3 Letters", width: "36 Inches", cost: "$54.99"}, {letters: "4 To 8 Letters", width: "24 Inches", cost: "$39.99"}, {letters: "4 To 8 Letters", width: "36 Inches", cost: "$49.99"}, {letters: "4 To 8 Letters", width: "42 Inches", cost: "$74.99"}, {letters: "4 To 8 Letters", width: "48 Inches", cost: "$109.99"}, {letters: "4 To 8 Letters", width: "55 Inches", cost: "$139.99"}, {letters: "9 To 12 Letters", width: "36 Inches", cost: "$49.99"}, {letters: "9 To 12 Letters", width: "42 Inches", cost: "$74.99"}, {letters: "9 To 12 Letters", width: "48 Inches", cost: "$109.99"}, {letters: "9 To 12 Letters", width: "55 Inches", cost: "$139.99"} ] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "setInitialState(initialState) {\n\t\tObject.assign(this.state, initialState);\n\t\tthis.setInitialState = noop;\n\t}", "setInitialState () {\n if (this.skipInitial) {\n this.showChooseOrSignIn();\n } else {\n this.setState('initial');\n }\n }", "reset() {\r\n this.state = this.initial;\r\n }", "reset() {\r\n this.state = this.config.initial;\r\n }", "reset() {\r\n this.state = this.config.initial;\r\n }", "reset() {\r\n this.activeState = this.config.initial;\r\n }", "constructor() {\n super(...arguments);\n this.state = this.constructor.initialState(this.props);\n }", "constructor() {\n super()\n this.state = intialState\n }", "constructor() {\n super();\n this.state = defaultState;\n }", "reset() {\n this.setState(this._getInitialState());\n }", "makeInitialState() {\n return this._mainComponentInitialState;\n }", "reset() {\r\n this.currentState = this.config.initial;\r\n }", "setFirstLoad(state, val = true){\n state.firstLoad = false;\n }", "reset() {\r\n return this.state = \"normal\";\r\n }", "reset() {\r\n this.currentState = this.initial;\r\n }", "_setInitialState(){\n if(this.state.initial) return;\n const computedStyles = getComputedStyle(this);\n this.state.initial = {};\n this.state.initial.type = this.type;\n this.state.initial.icon = this.icon;\n this.state.initial.color = this.style.color;\n this.state.initial.borderColor = computedStyles.getPropertyValue(\"--border-color\");\n this.state.initial.hoverBorderColor = computedStyles.getPropertyValue(\"--hover-border-color\");\n this.state.initial.hoverColor = computedStyles.getPropertyValue(\"--hover-color\");\n this.state.initial.backgroundColor = computedStyles.getPropertyValue(\"--background-color\");\n this.state.initial.hoverBackgroundColor = computedStyles.getPropertyValue(\"--hover-background-color\");\n\n }", "constructor() { \r\n super();\r\n this.state = {};\r\n }", "reset() {\n this.setState(this._getInitialState());\n }", "constructor(props) {\n super(props);\n\n this.state = defaultState;\n }", "_setInitialState() {\n const that = this;\n\n that._currentIndex = 0;\n that._indicators = [];\n that._items = [];\n that._rotate = false;\n that._handleDefaultInnerHTML();\n }", "constructor(props) {\n super(props)\n //this.state = propriedade herdada de Compponent, nao pode ser alterada diretamente\n //No react, nao podemos alterar propriedades diretamente, apenas evolui-la\n //predominacao de programacao funcional\n this.state = { value: props.initialValue }\n }", "constructor() {\n this.state = undefined\n }", "_resetState() {\n this.setState({\n ...this._defaultState\n });\n }", "componentWillMount() {\n\t\tthis.setState({ \n\t\t\tvalue: this.props.defaultValue,\n\t\t});\n\t}", "resetConvos() {\n this.setState(this.getInitState());\n }", "startOver() {\n this.setState(initialState);\n console.log(this.state);\n }", "initializeState() {\n const attrs = this.state.attributes;\n attrs.x = 0;\n attrs.y = 0;\n }", "constructor() {\n super();\n this.state = {\n selected: null,\n };\n }", "constructor() {\n super();\n this.state = {};\n }", "reset() {\r\n return this.config.initial = 'normal'\r\n }", "function resetToInitialState() {\n storage.clear(STATE_STORAGE)\n setState(Object.assign({}, INITIAL_STATE))\n}", "componentWillMount() {\n this.setState({ ...initialState });\n }", "reset() {\n this.setState({stage: STAGE.init});\n }", "constructor(props) { // be promoted into a class\n super(props);\n this.state = {}; // defines initial state\n }", "get state() {\n return this._initialState;\n }", "constructor(props){\n super(props)\n\n // 2 SET INITIAL STATE\n this.state = {\n title: 'LifeCycle'\n }\n }", "initialize() {\n // Overwrite your component initialize\n this.state.text = 'Example component content';\n }", "constructor(){\n super();\n this.state = {\n label: 'Button'\n }\n this.setInitialState();\n }", "reset() {\r\n this.prevState=this.currentState;\r\n this.currentState = this.config.initial;\r\n }", "reset() {\r\n this._state = this._config.initial;\r\n this._history.push(this._state);\r\n }", "constructor(props) {\n super(props);\n this.state= {flag:0};\n }", "reset() {\r\n this.state=this.initial;\r\n this.statesStack.clear();\r\n\r\n }", "reset() {\r\n this.setState(this.baseState);\r\n }", "constructor() {\n super();\n this.state = {\n };\n }", "componentWillMount() {\n if (this.props.missions) this.setDefaultState(this.props.missions);\n }", "constructor(props) {\n super(props);\n this.state = { switch: false, text: \"\" };\n }", "get defaultState() { return {}; }", "setNormal() {\n this.currentState = shtState.NORMAL;\n }", "prepareState() {\n /* ... */\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "function getInitialState ()\n {\n return {};\n }", "function getInitialState ()\n {\n return {};\n }", "reset() {\r\n this.currentState = this.initalState;\r\n this.clearHistory();\r\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "switchToDefaultMode() {\n\t\tthis.setState(oldState => ({\n\t\t\t...getItemsProps(oldState.items),\n\t\t\theaderInput: this.defaultHeaderActions,\n\t\t\tdisplayMode: DISPLAY_MODE_DEFAULT,\n\t\t}));\n\t}", "initInteractionState() {\n this.dirty = false;\n this.prefilled = !this._isEmpty();\n }", "function getInitialState () {\n return initialState\n }", "function getInitialState () {\n return initialState\n }", "constructor(props){\n super(props);\n\t\t\n\t\t// Initial display state\n\t\tthis.state.display = false;\n\t}", "initial() {\n this._window = getRootWindow();\n }", "constructor(props){\n super(props);\n this.state = {}\n }", "_getInitialState() {\n return {};\n }", "constructor(props) {\n super(props);\n this.state = {\n 'valid': true,\n 'value': props.initialValue,\n };\n\n this.onChange = this.onChange.bind(this);\n }", "resetState() {\n this.state = states.WAITING_FOR_CHOICE;\n }", "componentDidMount() {\n // this.setState({searchBoxTextValue: this.state.searchBoxTextValue}) \n if (this.state.justConstructed) {\n this.setState({ justConstructed: true })\n }\n }", "constructor(props){\n super(props);\n this.state= {\n };\n }", "constructor(props) {\n super(props); //Call the base class constructor 'Component' with the 'props' argument\n //State object\n this.state = {}; //Set to empty object or provide initial values for some of the state properties used in this component\n }", "constructor(props) {\n\t\t super(props)\n\t\t this.state = {\n\t\t\t nom: \"test3\",\n\t\t }\n\t }", "constructor () {\n super();\n\n this.state = {\n selectedOption: undefined\n }\n }", "constructor(props) {\n super(props);\n this.state = { };\n }", "constructor(props) {\n super(props);\n this.state = {}\n }", "constructor(props) {\n super(props)\n this.state = {}\n }", "constructor(props) {\n super(props)\n this.state = {}\n }", "if (!this.props.initialValues) {\n this.props.change('isPublic', true);\n this.props.change('allowSharing', true);\n this.props.change('cannabisConsumption', false);\n }", "constructor(props) {\n super(props);\n this.state = {\n editorVisible: false,\n editorValues: {},\n service: null,\n }\n }", "constructor(props){\n super(props);\n this.state = {\n text: 'Change me!'\n }\n }", "function setInitialValues() {\n // you can decide on some initial values\n}", "async getInitialState(props) {\n return this.state.getInitialState(props);\n }", "constructor() {\n super();\n this.state = {didLoad: false};\n }", "getInitialState() {\n return {\n\n }\n }", "reset() {\r\n this.currentState = this.config.initial;\r\n this.history.push(this.currentState);\r\n }", "resetState() {\n this.state = 'pending'\n }", "getInitialState() {\n return {compact: false};\n }", "reset () {\n this.state.clear()\n this.redraw()\n }", "constructor(props){\n super(props);\n this.state={\n visible: false\n }\n }", "set state(value) {\n defineProperty(this, '_state$', {configurable: true, value: value});\n }", "[types.SET_INITIAL_STATE](state, initialState = {}) {\n Object.assign(state, pick(initialState, initialStateKeys));\n }", "function reset() {\n\t setState(null);\n\t} // in case of reload", "componentWillMount(){\n this.setState({\n selectedValue: this.props.selectedValue,\n selectedLabel: this.props.selectedLabel,\n dirty: false\n })\n }", "constructor(props) {\n super(props);\n this.state = {\n value: 50,\n };\n }", "function resetComponentState() {\n isParent = false;\n previousOrParentTNode = null;\n elementDepthCount = 0;\n bindingsEnabled = true;\n}", "function resetComponentState() {\n isParent = false;\n previousOrParentTNode = null;\n elementDepthCount = 0;\n bindingsEnabled = true;\n}", "function resetComponentState() {\n isParent = false;\n previousOrParentTNode = null;\n elementDepthCount = 0;\n bindingsEnabled = true;\n}", "function resetComponentState() {\n isParent = false;\n previousOrParentTNode = null;\n elementDepthCount = 0;\n bindingsEnabled = true;\n}" ]
[ "0.7777291", "0.75898796", "0.75260437", "0.74451834", "0.74425143", "0.7115009", "0.7040495", "0.69914377", "0.69743794", "0.687511", "0.6858313", "0.6848639", "0.68469185", "0.6821949", "0.6798306", "0.67922413", "0.6788096", "0.67723995", "0.67582625", "0.67201436", "0.67156297", "0.6703986", "0.6684293", "0.6667188", "0.66607744", "0.6604111", "0.6587423", "0.6586158", "0.6576273", "0.6576071", "0.65564364", "0.65455735", "0.6543108", "0.6515773", "0.65103275", "0.65091884", "0.6502487", "0.6483721", "0.6468173", "0.64003277", "0.6394613", "0.6386387", "0.63822675", "0.6366071", "0.6363044", "0.63388824", "0.6325545", "0.6292467", "0.62789595", "0.62725693", "0.62725693", "0.62725693", "0.62725693", "0.6270756", "0.6270756", "0.62381285", "0.62329197", "0.62329197", "0.62329197", "0.62329197", "0.62329197", "0.6226265", "0.6220985", "0.62169003", "0.62169003", "0.6215634", "0.6210932", "0.6196323", "0.6193968", "0.619387", "0.61869967", "0.6184452", "0.61747116", "0.61674005", "0.6165962", "0.6161871", "0.615895", "0.61532325", "0.6152479", "0.6152479", "0.6148293", "0.6141985", "0.6141922", "0.6141425", "0.61394906", "0.6127516", "0.6121386", "0.61147535", "0.60995394", "0.60928947", "0.608906", "0.60889447", "0.6084732", "0.6080241", "0.60761684", "0.60725236", "0.6070873", "0.60687923", "0.60687923", "0.60687923", "0.60687923" ]
0.0
-1
THIS FNCTION CREATES A GRAPHICAL INIDICATOR FOR THE NUMBER OF FREESPINS
function CFreespinIndicatorPO(my, parentGroup, iX, iY) { var _oTextNumberFS; var _oContainer; this._init = function (iX, iY) { _oContainer = my.add.group(); _oContainer.visible = false; _oContainer.x = iX; _oContainer.y = iY; parentGroup.add(_oContainer); var oBgFS = my.add.sprite( 0 + ManagerForScale.offsetOutOfBounce_1920/2, 0 - ManagerForScale.offsetOutOfBounce_1080/2 ,'box-freespins-bonus', null, _oContainer); oBgFS.anchor.setTo(0.5); //if(ManagerForScale.is3x4resolution()){ // oBgFS.x+=100; // oBgFS.y+=100; //} var oTextFS = my.add.sprite(oBgFS.x,oBgFS.y + 94,'freespins-en', null, _oContainer); oTextFS.anchor.setTo(0.5); _oTextNumberFS = my.add.text(oBgFS.x, oBgFS.y, "0", { //font: "50px dinbold", font: "50px dinbold", fill: "#FFFFFF", fontWeight:'bold' }, _oContainer); _oTextNumberFS.anchor.setTo(0.5); }; /** * Show Free Spin Indication UI * @param szTextNumFS: number Of Free Spin * @param szTextMulti: number of Multiplier */ this.show = function ( szTextNumFS, szTextMulti) { _oTextNumberFS.text = szTextNumFS; _oContainer.visible = true; }; /** * Hide Free spin Indicator */ this.hide = function () { _oContainer.visible = false; }; /** * Set Position of Object * @param iNewX: x pos * @param iNewY: y pos */ this.setPosition = function (iNewX, iNewY) { _oContainer.x = iNewX; _oContainer.y = iNewY; }; this._init(iX, iY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Factory(n){\r\n\r\n }", "function infil_create(n)\n//\n// Purpose: creates an array of infiltration objects.\n// Input: n = number of subcatchments\n// Output: none\n//\n{\n //Infil = (TInfil *) calloc(n, sizeof(TInfil));\n Infil = [];\n for(let i = 0; i < n; i++){Infil.push(new TInfil())}\n if (Infil == null) ErrorCode = ERR_MEMORY;\n InfilFactor = 1.0;\n return;\n}", "function Pf(i) {\n return [ 1, 0.5, 0, 0, 0, 0, 0.5, 1][i];\n}", "function Pcreate(n,table){\n\tvar func=N(0);\n\tfor(let i1=0;i1<size;i1++){\n\t\tfor(let i2=0;i2<size;i2++){\n\t\t\t//console.log(\"/ogl3/Pcreate i1=\"+i1+\" i2=\"+i2);\n\t\t\tvar c=table[i1][i2];\n\t\t\tfunc=compose2(\n\t\t\t\tPCO(n-1),\n\t\t\t\tfunc,iso(i1,i2,c)\n\t\t\t);\n\t\t}\n\t}\n\treturn func;\n}", "function i$5(r,i=i$6,l=o$g,m=-1,u=1){let f=null;switch(i){case s$3:f=new Float32Array([m,m,0,0,u,m,1,0,m,u,0,1,u,u,1,1]);break;case i$6:default:f=new Float32Array([m,m,u,m,m,u,u,u]);}return new o$n(r,l,{geometry:i},{geometry:h$d.createVertex(r,35044,f)})}", "function drawFishCount(fishNumber) {\n push()\n fill(255)\n textSize(20)\n if (fishNumber != null) {\n text(\"Fish Count \" + fishNumber, width/2+120, height-25)\n } else {\n text(\"Fish Count \"+`${params.fishCount}`, width/2+120, height-25)\n }\n \n pop()\n // bg\n push()\n noStroke()\n fill(color(255))\n rect(width/2-200, height-50, 300, 30, 50)\n pop()\n\n \n // indicator\n push()\n translate(width/2-200, height-50)\n if (fishNumber != null) {\n scale(map(fishNumber, 0, fishKind*8*8, 0, 1), 1)\n } else {\n scale(map(params.fishCount, 0, fishKind*8*8, 0, 1), 1)\n }\n \n fill(color(0, 255, 0))\n noStroke()\n rect(0, 0, 300, 30, 50) // the location would be zero\n pop()\n\n // frame\n push()\n noFill()\n strokeWeight(10)\n stroke(color(255, 0, 0))\n rect(width/2-200, height-50, 300, 30, 50)\n pop()\n}", "function generateShapes(n){\n\t\tvar shapes = $('<div>');\n\t\t\tshapes.addClass('shapes');\t\n\t\tfor (i=1; i<= n; i++){\n\t\t\tvar shape = $('<div>');\n\t\t\t\tshape.addClass('shape');\n\t\t\tshapes.append(shape);\t\n\t\t}\n\t\t$('#agent-screen-inner').append(shapes);\n\t}", "function createLineFieldNumbers() {\n\tconst lineFieldNumbers = [];\n\n\tfor (let i = 0; i < 7; i++) {\n\t\tconst horizintalNumbers = [];\n\t\tconst verticalNumbers = [];\n\t\tfor (let j = 0; j < 7; j++) {\n\t\t\thorizintalNumbers.push(7*i + j);\n\t\t\tverticalNumbers.push(7*j + i);\n\t\t}\n\t\tlineFieldNumbers.push(horizintalNumbers);\n\t\tlineFieldNumbers.push(verticalNumbers);\n\t}\n\n\tfor (let i = 0; i < 4; i++) {\n\t\tconst lowerDiagonalNumbers = [];\n\t\tfor (let j = 0; j < i + 4; j++) {\n\t\t\tlowerDiagonalNumbers.push(7*(3 - i + j) + j);\n\t\t}\n\t\tlineFieldNumbers.push(lowerDiagonalNumbers);\n\t}\n\tfor (let i = 0; i < 3; i++) {\n\t\tconst lowerDiagonalNumbers = [];\n\t\tfor (let j = 0; j < 6 - i; j++) {\n\t\t\tlowerDiagonalNumbers.push(7*j + i + 1 + j);\n\t\t}\n\t\tlineFieldNumbers.push(lowerDiagonalNumbers);\n\t}\n\n\tfor (let i = 3; i < 7; i++) {\n\t\tconst upperDiagonalNumbers = []\n\t\tfor (let j = 0; j < i + 1; j++) {\n\t\t\tupperDiagonalNumbers.push(7*(i - j) + j);\n\t\t}\n\t\tlineFieldNumbers.push(upperDiagonalNumbers)\n\t}\n\tfor (let i = 0; i < 3; i++) {\n\t\tconst upperDiagonalNumbers = []\n\t\tfor (let j = 0; j < 6 - i; j++) {\n\t\t\tupperDiagonalNumbers.push(7*(6 - j) + i + 1 + j);\n\t\t}\n\t\tlineFieldNumbers.push(upperDiagonalNumbers)\n\t}\n\n\treturn lineFieldNumbers;\n}", "function buildFace(geometry,triangleNumber,startPoint){\n\tvar material = new THREE.MeshStandardMaterial( { color : 0x000000 ,wireframe: true } );\n\tvar nextIndex = 0\n\tfor(i = triangleNumber; i>0; i--){\n\t\tstartPoint = buildTriangleLine(geometry,0.10,0.10,i,startPoint,nextIndex);\n\t\tnextIndex += 3*i;\n\t}\n\n\tstartPoint = new THREE.Vector3( -40, -30,startPoint.z);\n\ttriangleNumber--;\n\tfor(i = triangleNumber; i>0; i--){\n\t\tstartPoint = buildInvertedTriangleLine(geometry,0.10,0.10,i,startPoint,nextIndex);\n\t\tnextIndex += 3*i;\n\t}\n\t\n\tbuildBottomBorders(geometry,nextIndex);\n\tnextIndex += 6;\n\tbuildRightBorder(geometry,nextIndex);\n\tnextIndex += 6;\n\tbuildLeftBorder(geometry,nextIndex);\n\tnextIndex += 6;\n\treturn new THREE.Mesh( geometry, material );\n}", "function createGraphUI() {\n var vertexNames = document.getElementById(\"numV\").value.split(\",\");\n currentGraph = new Graph(vertexNames);\n showGraph();\n}", "function MakeLevelPointCountFromTriangleNumbers(times,index,previousIndex,level){\n var g = 0;\n var pg = 0;\n var index = 0;\n var previousIndex = 0;\n var layers = [];\n var temp = [];\n // get the range rather the count of points in teh layer including the extra\n // _.range(6*0+0, 6*1+1)\n for (var n = 0; n < times; n++) {\n temp = [];\n count = 0;\n \n // triangular number, see wikipedia\n g = (n+1)*n/2;\n\n var count = _.range( (6*pg)+previousIndex, (6*g)+index );\n // temp.push(count);\n layers.push(count)\n\n pg = g;\n previousIndex = index;\n index++;\n }\n // layers.push(count)\n\n // layers.push(temp)\n return layers;\n}", "function fnewShape(i,h,d){\r\n\tthis.shapes.push(new objeto(i,h,d));\r\n}", "generateLines() {\r\n for (var f = 0; f < this.faceData.length/3; f++) {\r\n // Calculate index of the face\r\n var fid = f*3;\r\n this.edgeData.push(this.faceData[fid]);\r\n this.edgeData.push(this.faceData[fid+1]);\r\n \r\n this.edgeData.push(this.faceData[fid+1]);\r\n this.edgeData.push(this.faceData[fid+2]);\r\n \r\n this.edgeData.push(this.faceData[fid+2]);\r\n this.edgeData.push(this.faceData[fid]);\r\n }\r\n }", "generateLines() {\r\n for (var f = 0; f < this.faceData.length/3; f++) {\r\n // Calculate index of the face\r\n var fid = f*3;\r\n this.edgeData.push(this.faceData[fid]);\r\n this.edgeData.push(this.faceData[fid+1]);\r\n\r\n this.edgeData.push(this.faceData[fid+1]);\r\n this.edgeData.push(this.faceData[fid+2]);\r\n\r\n this.edgeData.push(this.faceData[fid+2]);\r\n this.edgeData.push(this.faceData[fid]);\r\n }\r\n }", "function generateIdeaData()\n{\n createGraph();\n \n}", "function drawNewRings(){\n for(var i = 0; i < numRingsConversion.length; i++){\n for(var j = 0; j < numRingsConversion[i]; j++){\n var ring = document.createElementNS(xmlns,'circle')\n ring.setAttribute('cx','50%')\n ring.setAttribute('cy','50%')\n ring.setAttribute('r', (i+1)*hedgeWidth*2)\n ring.setAttribute('stroke-width',hedgeWidth)\n ring.setAttribute('class','ring-'+i)\n svg.append(ring)\n }\n }\n}", "function criarListaIngredientes() {\n for (let i = 0; i < quantidadeIngredientes; i++) {\n let itemLista = document.createElement('li');\n itemLista.id = String('ingr' + i);\n elementoListaIngr.appendChild(itemLista);\n }\n}", "function createLifes(num) {\n for (let i = 0; i < num; i++) {\n lifeCreate = document.createElement(\"img\");\n lifeCreate.className = \"imgHeart\";\n document.querySelector(\"#lifeContainer\").appendChild(lifeCreate);\n lifeCreate.src = \"img/life.png\";\n }\n}", "function fatorial(numero) {\n return 0\n}", "function curvenum_initState(infil)\n//\n// Input: infil = ptr. to Curve Number infiltration object\n// Output: none\n// Purpose: initializes state of Curve Number infiltration for a subcatchment.\n//\n{\n infil.S = infil.Smax;\n infil.P = 0.0;\n infil.F = 0.0;\n infil.T = 0.0;\n infil.Se = infil.Smax;\n infil.f = 0.0;\n}", "function crearCasilleroIntegrantes(indice) {\n const $casillerosIntegrantes = document.querySelector('#casillerosIntegrantes');\n \n let $nuevoDiv = document.createElement('div');\n $nuevoDiv.className = 'integrantes'\n\n let $label = document.createElement('label');\n $label.textContent = `Integrante Familiar ${indice + 1}`;\n\n let $input = document.createElement('input');\n $input.type = 'number';\n\n $nuevoDiv.appendChild($label);\n $nuevoDiv.appendChild($input);\n $casillerosIntegrantes.appendChild($nuevoDiv);\n}", "function IndicadorGradoAcademico () {}", "function generateBubbleCreatingFuction(i) {\n return function () {\n circles[i] = buildCircle();\n }\n}", "function GroupElementGenerator(svgElementId, lenght, height, grouplevel, styleClass, Isdraggable)\n{\n var Element = document.getElementById(svgElementId);\n var groupNode = document.createElementNS(svgNS, \"g\");\n groupNode.setAttributeNS(null, \"Id\", \"GroupLevelElement-\"+ grouplevel);\n groupNode.setAttributeNS(null, \"DepthLevel\", grouplevel);\n groupNode.setAttributeNS(null, \"class\", styleClass);\n groupNode.setAttributeNS(null, \"transform\", \"matrix(1 0 0 1 0 0)\");\n groupNode.setAttributeNS(null, \"onmousedown\", \"selectElement(evt)\");\n groupNode.setAttributeNS(null, \"onmouseup\", \"deselectElement(evt)\");\n // Add Dragging Feature to group elements \n return groupNode; \n //TODO:\n //call increment svg box and then add this to client of this funtion. \n //incremenetSvgBox(x, y);\n //document.getElementById(\"dumpAnalyzer\").appendChild(rectS);\n}", "function newFiberId() {\n return FiberID(new Date().getTime(), _fiberCounter.getAndIncrement());\n}", "function genFib(ns){\n var num1 = Number(ns[ns.length-1]);\n var num2 = Number(ns[ns.length-2]);\n\n ns.push(num1 + num2);\n return ns;\n}", "constructor(noOfVertices) {\n this.noOfVertices = noOfVertices;\n this.AdjList = new Map();\n }", "function drawUFOS(){\n for (var i = 0; i < 3; i++){\n drawUFO();\n }\n}", "function createFireDataStructure() {\n\n let quantPixels = fireHeight * fireWidth\n\n for (let i = 0; i < quantPixels; i++) {\n pixelFireIntensity[i] = 36;\n }\n}", "constructor(noOfVertices) {\n this.noOfVertices = noOfVertices;\n this.AdjList = new Map();\n }", "constructor(noOfVertices) {\n this.noOfVertices = noOfVertices;\n this.AdjList = new Map();\n }", "constructor(noOfVertices) {\n this.noOfVertices = noOfVertices;\n this.AdjList = new Map();\n }", "function add_genotypes(popi,gtype,n=1) {\r\n var gx = gtype[0];\r\n var gy = gtype[1];\r\n var gid = gy*gridsize_x+gx;\r\n\r\n if(popi[0]=='undefined'){\r\n popi[0]=[gid];\r\n popi[1]=[n];\r\n } else if(popi[0].includes(gid)){\r\n popi[1][popi[0].indexOf(gid)] += n;\r\n } else {\r\n popi[0].push(gid);\r\n popi[1].push(n);\r\n }\r\n}", "function addNumberedCircle(d, i) {\n d3.select(this)\n .append('circle')\n .attr('r', 40);\n\n d3.select(this)\n .append('text')\n .text(i + 1)\n .attr('y', 50)\n .attr('x', 30);\n}", "function create_base() {\n //largura\n for (let x = 0; x < WIDTH; x++) {\n //index do pixel\n const IDX = x + (WIDTH * (HEIGHT - 1))\n\n //muda a intensidade da base para este número\n fire_array[IDX] = base_intensity - 1\n }\n}", "function FiActivity (props) {\n return (0,_lib__WEBPACK_IMPORTED_MODULE_0__.GenIcon)({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"polyline\",\"attr\":{\"points\":\"22 12 18 12 15 21 9 3 6 12 2 12\"}}]})(props);\n}", "function FiActivity (props) {\n return (0,_lib__WEBPACK_IMPORTED_MODULE_0__.GenIcon)({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"polyline\",\"attr\":{\"points\":\"22 12 18 12 15 21 9 3 6 12 2 12\"}}]})(props);\n}", "function createInvaders(num){\n for(var i = 0; i < num; i++){\n var color = 'rgb(' + Math.floor(Math.random() * 255) + ', ' +\n Math.floor(Math.random() * 255) + ',' + Math.floor(Math.random() * 255) + ')';\n Invaders.push(new Invader(color));\n }\n}", "function FiActivity (props) {\n return Object(_lib__WEBPACK_IMPORTED_MODULE_0__[\"GenIcon\"])({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"polyline\",\"attr\":{\"points\":\"22 12 18 12 15 21 9 3 6 12 2 12\"}}]})(props);\n}", "function familyPlanTrackerCreator(arr, number) {\n var family = {\n total: number\n }\n for(var i = 0; i < arr.length; i++){\n family[arr[i]] = 0;\n console.log(family);\n }\n\n return function(name, number){\n family[name] += number;\n family.total -= number;\n return family;\n }\n}", "function fatorial(n) {\n if (n == 1) {\n return 1\n } else {\n return n * fatorial(n-1)\n }\n}", "function getIntegerFace(num) {\n let arr = num.toString().split('');\n var len = arr.length;\n return arr.map((val, index) => `${face(Number(val), len - 1 - index)}`).join('+');\n}", "function dynamicGetFib(n){\n\n var history = {}\n\n if(n<=1){\n return n\n } else if(history.hasOwnProperty(n)){\n return history[n]\n }\n\n return history[n] = getFib(n - 1) + getFib(n - 2)\n\n}", "function createIndForImg(val, arrImgInd) {\n for (let i = 0; i < val; i++) {\n arrImgInd.push(i % (val / 2));\n }\n }", "function createCreateIcon() { return $('<svg width=\"24px\" height=\"24px\" viewBox=\"0 0 24 24\"><path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\"></path></svg>'); }", "function createStarBonus(){\n for (let i = 1; i <= numberofStar; i++) {\n var imgStr = document.createElement('img');\n imgStr.src=\"./img/star.png\";\n imgStr.id =\"star\" + i;\n imgStr.style=\"position:absolute;z-index:2\"\n document.body.appendChild(imgStr);\n }\n }", "function getIcoStyle() {\n var obj = {\n \"fib.mer\": {\n strokeColor: eid(\"fib.color\").value + parseAlpha(eid(\"fib.alpha\").value),\n strokeWidth: parseFloat(eid(\"fib.size\").value),\n },\n \"knb.mer\": {\n R: parseFloat(eid(\"knb.size\").value),\n style: {\n fillColor: eid(\"knb.color\").value + parseAlpha(eid(\"knb.alpha\").value),\n },\n },\n };\n var fibers = {};\n [\n ...[1, 2, 3].map((e) => {\n return \"fib.hex.mer-\" + e;\n }),\n ...[1, 2, 3].map((e) => {\n return \"fib.pen.mer-\" + e;\n }),\n \"fib.hex.cir-1\",\n \"fib.pen.cir-1\",\n ].forEach((e) => {\n fibers[e] = eid(e).checked;\n });\n obj[\"fibers\"] = fibers;\n return obj;\n}", "function drawItens(n)\n{\n for( var i=0; i<n; i++)\n {\n var itemwrap = document.createElement(\"div\");\n var itemlab = document.createElement(\"div\");\n var item = document.createElement(\"div\");\n\n $(itemwrap).css({\n \"height\":\"50px\",\n \"margin-bottom\":\"2px\",\n \"margin-top\":\"2px\",\n \"display\":\"block\"\n });\n $(itemlab).attr(\"class\",\"label_item\");\n $(itemlab).css({\n \"box-shadow\":\"2px 2px 4px #404040a0\",\n \"margin-right\":\"6px\",\n \"display\":\"inline-block\"\n });\n $(item).attr(\"id\",\"menu_item_\"+i);\n $(item).attr(\"class\",\"menu_item\");\n $(item).css({\n \"width\":\"50px\",\n \"height\":\"50px\",\n \"border-radius\":\"100%\",\n \"background-color\":\"#202040\",\n \"text-align\":\"center\",\n \"line-height\":\"50px\",\n \"font-size\":\"20px\",\n \"box-shadow\":\"2px 2px 4px #404040a0\",\n \"display\":\"inline-block\"\n });\n\n menuitens.push(itemwrap);\n $(menuwrap).append(itemwrap);\n $(itemwrap).append(itemlab);\n $(itemwrap).append(item);\n }\n}", "function init() {\r\n\t\t\t\r\n\t\t\tvar grid = document.getElementById(\"grid\");\r\n\t\t\tfor(var i=1; i<=4; i++){\r\n\t\t\t\tvar riga = document.createElement(\"div\");\r\n\t\t\t\triga.setAttribute(\"Id\", \"riga\"+i);\r\n\t\t\t\tfor(var j=0; j<4; j++){\r\n\t\t\t\t\tvar casella = document.createElement(\"input\");\r\n\t\t\t\t\tvar n = i*4+j;\r\n\t\t\t\t\tcasella.setAttribute(\"Id\", \"casella\"+n );\r\n\t\t\t\t\tcasella.setAttribute(\"readonly\", \"readonly\");\r\n\t\t\t\t\tcasella.setAttribute(\"value\", 0);\r\n\t\t\t\t\triga.appendChild(casella);\r\n\t\t\t\t}\r\n\t\t\t\tgrid.appendChild(riga);\r\n\t\t\t\t}\t\t\t\r\n\t\t}", "constructor(noOfVertices) \n { \n this.noOfVertices = noOfVertices; \n this.AdjList = new Map(); \n }", "function createFareMultiplier(integar){\nreturn function (Multiplier) {\n return Multiplier * integar;\n }}", "function draw_female(svg, id, partner_id, location, offset_x, generation) {\n\n var x = ((offset+location)*space)+2*unit + offset_x;\n var y = (max_generation - generation)*vertical;\n\n\n var color = \"yellow\";\n if (id == \"Unknown\") color = \"white\";\n var has_parent = false;\n if (data[\"people\"][id] && data[\"people\"][id][\"father\"]) has_parent = true;\n if (data[\"people\"][id] && data[\"people\"][id][\"mother\"]) has_parent = true;\n\n if (data[\"people\"][id] && data[\"people\"][id]['partners']) color = 'grey';\n if (data[\"people\"][id] && data[\"people\"][id][\"blood\"]) color = \"yellow\";\n\n // Set the actual map location of the person_id\n if (data[\"people\"][id]) {\n data[\"people\"][id][\"map\"] = {\"x\": x, \"y\": y}\n }\n\n var circle = $(createSvg(\"circle\"))\n .attr(\"id\",id)\n .attr(\"partner_id\", partner_id)\n .attr(\"cx\",x).attr(\"cy\",y)\n .attr(\"r\",unit/2)\n .attr(\"stroke\",\"black\")\n .attr(\"fill\",color);\n svg.append(circle);\n if (id && id != \"Unknown\" && has_parent) {\n var line = $(createSvg(\"line\"))\n .attr(\"id\", id)\n .attr(\"partner_id\", partner_id)\n .attr(\"x1\",x).attr(\"y1\",y-unit/2)\n .attr(\"x2\",x).attr(\"y2\",y-unit)\n .attr(\"stroke\",\"black\");\n\n if (data[\"people\"][id] && data[\"people\"][id][\"adopted_in\"]) line.attr(\"stroke-dasharray\", \"2\");\n svg.append(line);\n }\n\n circle.on(\"mousedown\", function (e) { start_dragging(e); });\n// circle.on(\"mouseup\", function (e) { stop_dragging(e); });\n// circle.on(\"mousemove\", function (e) { if(dragging) drag_object(e); } );\n// circle.on(\"mouseout\", function (e) { stop_dragging(e); } );\n\n if (data[\"people\"][id] && data[\"people\"][id][\"deceased\"]) {\n var line = $(createSvg(\"line\"))\n .attr(\"deceased\", \"Deceased\")\n .attr(\"partner_id\", partner_id)\n .attr(\"id\", id)\n .attr(\"x1\",x+unit/2+5).attr(\"y1\",y-unit/2-5)\n .attr(\"x2\",x-unit/2-5).attr(\"y2\",y+unit/2+5)\n .attr(\"stroke\",\"black\");\n svg.append(line);\n }\n\n if (data[\"people\"][id] && (data[\"people\"][id][\"adopted_in\"] || data[\"people\"][id][\"adopted_out\"])) draw_adopted(svg, \"female\", location, offset_x, generation);\n\n if (options[\"quadrant1\"] && options[\"quadrant1\"].length > 0 && has_disease(options[\"quadrant1\"], id) == true) {\n fill_quadrant_female(svg, 1, id, partner_id, x, y, \"#404040\");\n }\n if (options[\"quadrant2\"] && options[\"quadrant2\"].length > 0 && has_disease(options[\"quadrant2\"], id) == true) {\n fill_quadrant_female(svg, 2, id, partner_id, x, y, \"#404040\");\n }\n if (options[\"quadrant3\"] && options[\"quadrant3\"].length > 0 && has_disease(options[\"quadrant3\"], id) == true) {\n fill_quadrant_female(svg, 3, id, partner_id, x, y, \"#404040\");\n }\n if (options[\"quadrant4\"] && options[\"quadrant4\"].length > 0 && has_disease(options[\"quadrant4\"], id) == true) {\n fill_quadrant_female(svg, 4, id, partner_id, x, y, \"#404040\");\n }\n}", "function createGraph() {\n let graph = [];\n for (let i=0; i<v; i++) graph.push([]);\n\n for (let i of edges) {\n if (i.type === 1) continue;\n\n graph[i.from].push([i.to, parseInt(i.label)]);\n graph[i.to].push([i.from, parseInt(i.label)]);\n }\n return graph;\n}", "buildIcons(){\n for(var i=0; i<this.popUpFltImgs.length; i++){\n this.buildIcon(i, false);\n }\n }", "function generateIntegers(m, n) {\n let intSeries=[];\n for (let i=m; i<=n; i++){\n intSeries.push(i)\n }\n return intSeries;\n}", "function clusterIconCreate() {\n\treturn ( \n\t\t\tfunction (cluster) {\n\t\t\t\tvar childCount = cluster.getChildCount();\n\n\t\t\t\tvar c = ' marker-cluster-';\n\t\t\t\tif (childCount < 10) {\n\t\t\t\t\tc += 'small';\n\t\t\t\t} else if (childCount < 100) {\n\t\t\t\t\tc += 'medium';\n\t\t\t\t} else {\n\t\t\t\t\tc += 'large';\n\t\t\t\t}\n\t\t\t\tif(childCount>1){\n\t\t\t\t\treturn new L.DivIcon({html: '<div><span>' + childCount + '</span></div>', \n\t\t\t\t\t\t\t\t\t\t className: 'marker-cluster' + c,\n\t\t\t\t\t\t\t\t\t\t iconSize: new L.Point(40, 40) });\n\t\t\t\t}else{\n\t\t\t\t\treturn iconPulsingSmall;\n\t\t\t\t}\n\t\t\t}\n\t)\n}", "function pofi(n) {\n return [\"1\", \"i\", \"-1\", \"-i\"][n % 4];\n}", "function createGrid() {\n for (let i=1; i<=gridSize; i++){\n var div = document.createElement(\"div\");\n div.id = 'n' + i;\n div.innerText = i;\n document.getElementById(\"target\").appendChild(div);\n }\n}", "function crearMarcador(x){\n for (let i = 0; i < x.length; i++) {\n let svgMarkup = '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 41.5 55.9\" height=\"50\">' +\n '<style type=\"text/css\">.st0{fill:#7BCDDB;}</style>'+\n '<g id=\"Capa_2\">'+\n '<path class=\"st0\" d=\"M21.9,2c0.4,0,1.1,0,1.5,0.4c7.1,1.1,12,4.9,15,11.3c2.2,5.6,1.9,11.3-0.7,16.5c-3,5.3-6,10.5-9,15.7 c-1.1,2.2-2.2,4.1-3.8,6.4c-1.5,2.6-5.3,3-7.1,0.7c-0.4-0.4-0.8-0.7-0.8-1.1C12.9,45.1,9.1,38,5,31.3c-1.9-3.4-3-6.8-3-10.5 c0-5.6,2.2-10.5,6.8-14.2c2.6-2.2,6-3.8,9.4-4.1c0.4,0,1.1,0,1.5-0.4C20.8,2,21.1,2,21.9,2z M14,19.6c0,3.8,3,6.8,6.8,6.8 s6.8-3,6.8-6.8s-3-6.8-6.8-6.8S14,15.9,14,19.6z\"/>'+\n '</g></svg>';\n\n // Create an icon, an object holding the latitude and longitude, and a marker:\n let icon = new H.map.Icon(svgMarkup),\n coords = {lat: x[i].lat, lng: x[i].lng},\n marker = new H.map.Marker(coords, {icon: icon}),\n bubble = new H.ui.InfoBubble(coords, {content: '<p class=\"bubble\" id=\"'+x[i].name+'\" onclick=\"openNoticia(this)\">'+x[i].name+'</p>'});\n bubble.close();\n ui.addBubble(bubble);\n // Add event\n marker.addEventListener('tap', function (evt) {\n bubble.open();\n });\n // Add the marker to the map:\n map.addObject(marker);\n }\n }", "function drawFactories() {\r\n let factorySVG = svg.selectAll('.factory').data(factories);\r\n let offset = kiviatSize * 0.125;\r\n factorySVG.exit().remove(); //remove excess\r\n\r\n //create new as necessary\r\n let newFactories = factorySVG.enter();\r\n newFactories.each(function (d, i) {\r\n let curFactory = d3.select(this);\r\n if (d.shape === 'square') {\r\n curFactory = curFactory.append('rect')\r\n .attr('width', offset).attr('height', offset)\r\n .attr('x', function (d) { return scales.xPixelToSVG(d.location[0]) - offset / 2; })\r\n .attr('y', function (d) { return scales.yPixelToSVG(d.location[1]) - offset / 2; })\r\n } else if (d.shape === 'circle') {\r\n curFactory = curFactory.append('circle')\r\n .attr('r', offset / 2).attr('cx', function (d) { return scales.xPixelToSVG(d.location[0]) - offset / 2; })\r\n .attr('cy', function (d) { return scales.yPixelToSVG(d.location[1]) - offset / 2; })\r\n } else { //shape is text character\r\n curFactory = curFactory.append('text').text(d.shape).attr('font-size', offset * 3)\r\n .attr('x', function (d) { return scales.xPixelToSVG(d.location[0]) - offset / 2; })\r\n .attr('y', function (d) { return scales.yPixelToSVG(d.location[1]); })\r\n }\r\n\r\n curFactory.classed('factory', true);\r\n });\r\n }", "function createGraph()\n\t{\n\t\tgraph = that.add('graph', {\n\t\t\tw: that.size,\n\t\t\th: that.size,\n\t\t\tinputCount: that.inputCount,\n\t\t\teq: [{eq:that.eq.eq, color: style.eqColor}],\n\t\t\txRange: that.axis.x,\n\t\t\tyRange: that.axis.y,\n\t\t\tlabelSkip: that.axis.skip,\n\t\t\tusePiLabels: that.axis.usePiLabels\n\t\t}, {\n\t\t\ttop: that.id + ' top ' + style.margin,\n\t\t\tleft: that.id + ' left ' + style.margin\n\t\t});\n\t}", "function generatePath(numPoints) {\r\n\treturn new Array(numPoints)\r\n\t.fill(5)\r\n\t.map((num, i) => (i + 1) * num);\r\n}", "function init(name,n){\n for(x = 0;x < n;x++){\n d.push(createNode(x));\n }\n}", "function facNum(num){ \r\n var str=num;\r\nfor(var i=num-1; i >= 1; i--){\r\n var num = num * i;\r\n str =str + 'x' + i ;\r\n}\r\nvar arr = [num, str];\r\nreturn arr;\r\n}", "constructor(max) {\n\t\tthis.max = max\n\t\tthis.value = 0 // empty\n\t\tthis.corner_indicators = new Array(this.max)\n\t\tthis.center_indicators = new Array(this.max)\n\t\tthis.color = \"white\"\n\t\tthis.is_editable = true\n\t\tfor (var digit = 1 ; digit <= this.max ; digit++) {\n\t\t\tthis.corner_indicators[digit-1] = false\n\t\t\tthis.center_indicators[digit-1] = false\n\t\t}\n\t}", "function addID() {\n\tfor (let i = 0; i < gs; i++) {\n\t\tif (getGrid(i) != undefined) {\n\t\t\tgetGrid(i).id = i;\n\t\t}\t\t\n\t}\n}", "function fdrawReferer(){\r\n\tvar maximo = this.getMaxValue(); /* Obtenemos el max valor de los shapes */\r\n\tvar PiY = this.PiY; /* Posicion inicial desde donde va a comenzar a trazar los ejes */\r\n\tvar PiX = this.PiX;\r\n\tvar px = PiX+10;\r\n\tvar py = PiY;\r\n\tvar j = this.j;\r\n\tvar b = 0;\r\n\r\n\twhile(py < (this.mainHeight-20))\r\n\t{\r\n\t\tthis.ctx.beginPath();\r\n\t\tthis.ctx.lineWidth = 0.2;\r\n\t\tthis.ctx.strokeStyle = '#777';\r\n\t\tthis.ctx.moveTo(px,py);\r\n\t\tthis.ctx.lineTo(this.mainWidth,py);\r\n\t\tthis.ctx.stroke();\r\n\t\tb++;\r\n\t\tpy += j;\r\n\t}\r\n\r\n\tthis.ctx.beginPath();\r\n\tthis.ctx.lineWidth = 0.2;\r\n\tthis.ctx.strokeStyle = '#777';\r\n\tthis.ctx.moveTo(PiX+15,PiY-5);\r\n\tthis.ctx.lineTo(PiX+15,py-20);\r\n\tthis.ctx.stroke();\r\n\tpy = PiY;\r\n\tb = b-1;\r\n\tthis.b = b;\r\n\r\n\tfor (var i = 0; i < (b+1); i++) {\r\n\t\tthis.ctx.font=\"12px Segoe UI\";\r\n\t\tthis.ctx.fillStyle = '#959595';\r\n\t\tthis.ctx.textAlign=\"right\";\r\n\t\tthis.ctx.textBaseline=\"middle\"; \r\n\t\tthis.ctx.fillText(parseInt((maximo/b)*(b-i)),PiX+5,py);\r\n\t\tpy += j;\r\n\t}\r\n}", "getVertices(n) {\n\n var angle = 2*Math.PI/n;\n\n var vertices = [];\n var theta = 0;\n\n while(theta < 2*Math.PI) {\n var x = this.radius*Math.cos(theta);\n var y = this.radius*Math.sin(theta);\n \n vertices.push(x,y);\n\n vertices.push(0, 0);\n theta += angle;\n\n x = this.radius*Math.cos(theta);\n y = this.radius*Math.sin(theta);\n\n vertices.push(x,y);\n\n \n \n }\n\n return vertices;\n\n }", "function countWays(n) {\n\tfor (i=1; i<=n; i++) {\n\t\tlet stair = '#';\n\t\tlet stairs = stair.repeat(i);\n\t\tconsole.log(stairs);\n\t}\n}", "function NP_generate_input() {\n var grp = $('#uneven_grp').val();\n if (grp >= 1) {\n for (var inp_p = 1; inp_p <= grp; inp_p++) {\n var divtmp = document.createElement('div');\n var spantmp = document.createElement('span');\n var inputtmp = document.createElement('input');\n\n divtmp.className = ('input-group input-group-sm mb-3')\n spantmp.className = ('input-group-text');\n var spanit = ('Group ' + inp_p);\n spantmp.innerText = (spanit);\n var inputid = ('grp_sm_' + inp_p);\n inputtmp.id = (inputid)\n inputtmp.className = ('form-control');\n inputtmp.type = ('number');\n inputtmp.placeholder = ('# peoples in group');\n inputtmp.setAttribute('aria-label', '# peoples in group');\n\n document.getElementById('dyn_uneven').appendChild(divtmp);\n divtmp.appendChild(spantmp);\n divtmp.appendChild(inputtmp);\n }\n }\n}", "populateEdges() {\n\n let tag = 0;\n this.organisms = [];\n\n for (let i = 0; i < this.grid.length; i++) {\n let temp = new Organism(tag, i);\n if (i >= rows &&\n i % (rows) !== 0 &&\n (i + rows + 1) % (rows) !== 0 &&\n i < this.grid.length - rows) {\n temp.alive = false;\n }\n this.organisms.push(temp);\n tag++;\n }\n }", "function get_new_die_simple(num_faces) {\n\n}", "function stampaStelle(n){\n for(i=6; i<n+6; i++){\n var imm=document.getElementById(i);\n imm.src=\"star-on.png\";\n }\n \n}", "function myfunctionRed(n) {\n for (var i = 0; i < n; i++) {\n\n var rossi = $(document.createElement(\"div\")).appendTo(\"#general\");\n classiQuadrati.push(rossi);\n }\n }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }", "function nbv(i) { var r = nbi(); r.fromInt(i); return r; }" ]
[ "0.5670638", "0.5602842", "0.5364419", "0.5184261", "0.5162812", "0.5128901", "0.5103546", "0.50182694", "0.50043964", "0.50035965", "0.5002532", "0.49856", "0.4982811", "0.49702147", "0.49640307", "0.4961909", "0.49585372", "0.49457848", "0.49424556", "0.49369362", "0.49290475", "0.49285236", "0.49252746", "0.491577", "0.4898232", "0.48898888", "0.48763493", "0.48700598", "0.48672643", "0.4863443", "0.4863443", "0.4863443", "0.48597476", "0.4852124", "0.48509657", "0.48329073", "0.48329073", "0.48301223", "0.48227894", "0.48218742", "0.48105317", "0.48039487", "0.47969484", "0.47888258", "0.47888097", "0.47797143", "0.47721523", "0.4769028", "0.47681955", "0.47590274", "0.4754921", "0.4754008", "0.47490937", "0.47470623", "0.47420335", "0.47401905", "0.47137704", "0.4711085", "0.47096968", "0.47092864", "0.47065264", "0.47052455", "0.4705089", "0.47018138", "0.4701509", "0.46976444", "0.46970513", "0.46959066", "0.46918988", "0.46898425", "0.468877", "0.4684861", "0.46846727", "0.4684362", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207", "0.46839207" ]
0.0
-1
Extract data from a table with headers
function tableDataExtract(tableSelector){ var cols = [], rows = []; $(tableSelector).each(function(){ var tbl = $(this); tbl.find('th').each(function(){ var col = $(this), txt = $.trim(col.text()); cols.push({ heading: txt, fit: parseInt(col.css('width')) / parseInt(col.parent().css('width')), dataItem: txt.replace(/[^\w]+/g,'_').toLowerCase() }) }); tbl.children('tbody').children('tr').each(function(){ var rw = $(this), obj = {}; for(var i = 0; i < cols.length; i++){ try{ obj[cols[i].dataItem] = JSON.parse($.trim(rw.children('td:eq(' + i +')').text())); }catch(e){ obj[cols[i].dataItem] = $.trim(rw.children('td:eq(' + i +')').text()); } } rows.push(obj); }); }); return {data:rows, columns:cols}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scrape_table() {\n var $rows = $TABLE.find('tr:not(:hidden)');\n var headers = [];\n var data = [];\n // Get the headers (add special header logic here)\n $($rows.shift()).find('th:not(:empty)').each(function () {\n headers.push($(this).text());\n });\n // Turn all existing rows into a loopable array\n $rows.each(function () {\n var $td = $(this).find('td');\n var h = {};\n // Use the headers from earlier to name our hash keys\n headers.forEach(function (header, i) {\n try {\n $select = $td.eq(i).find('select')\n h[header] = $select.val()\n } catch (e) {\n h[header] = $td.eq(i).text();\n }\n if (h[header] == undefined) h[header] = $td.eq(i).text();\n });\n h['run'] = $(this)[0].getAttribute('run')\n data.push(h);\n });\n\n return data\n\n}", "async getTableHeaders() {\n return (await\n (await\n $(this.elements.table)\n ).$('thead')\n ).$$('th');\n }", "function collectRowData(target) {\n \tvar data = {},\n \t row = target.parentNode.parentNode,\n \t fields = row.children,\n \t tableTitles = pageElements.output.getElementsByTagName(\"th\");\n\n \tdata.id = row.dataset.key;\n \tfor(var i = 0, len = tableTitles.length; i < len; i += 1) {\n \t\tif(tableTitles[i].textContent.toLowerCase() == \"title\" ) {\n \t\t data.title = fields[i].firstElementChild.textContent;\n \t\t data.url = fields[i].firstElementChild.href;\n \t\t}\n \t\telse {\n \t\t\tdata[tableTitles[i].textContent.toLowerCase()] = fields[i].textContent;\n \t\t}\n \t}\n \treturn data;\n }", "_getThead(data, columnHeader) {\n let root = this;\n if (\n data !== undefined &&\n data !== null &&\n data.length > 0 &&\n columnHeader\n ) {\n return data.slice(0, 1);\n }\n return [];\n }", "function getTableInfo(header) {\n let tableInfo = ''\n header.map(h => tableInfo += h + ', ')\n return tableInfo\n}", "function renderTableHeader(data) {\n console.log(data.page)\n if (data.page == null) {\n return <div>No Data Avialable</div>;\n }\n let header = Object.keys(data.page.results[0])\n return header.map((key, index) => {\n return <th key={index}> {key.toUpperCase()}</th>\n })\n }", "function dataTable(data){\n var keys = Object.keys(data[0]);\n var headers = keys.map(function(name){\n return new UnderlinedCell(new TextCell(name));\n });\n\n var body = data.map(function(row){\n return keys.map(function(name){\n return new TextCell(String(row[name]));\n });\n });\n return [headers].concat(body);\n}", "function dataTable(data) {\n // keys variable holds ennumberable properties of the first object within data as an array \n var keys = Object.keys(data[0]);\n //headers = keys array is mapped with function that takes name arg\n var headers = keys.map(function(name) {\n // return underlined cell with argument textcell function with name arg\n return new UnderlinedCell(new TextCell(name));\n });\n var body = data.map(function(row) {\n return keys.map(function(name) {\n return new TextCell(String(row[name]));\n });\n });\n return [headers].concat(body);\n}", "function tableToArray(tableId) {\n var TableData = [];\n $('#' + tableId + ' tbody tr').each(function (row, tr) {\n TableData[row] = {\n \"name\": $(tr).find('td:eq(0)').text()\n , \"weight\": $(tr).find('td:eq(1)').text()\n }\n });\n //TableData.shift(); // first row is the table header - so remove\n return TableData;\n}", "function getHeader(field){\r\n\tvar head='<thead>';\r\n\tfor(var i=1;i<field.length;i++){ \t\r\n\t\thead+='<td class=\"query-header\">'+field[i].column+'</td>'; \t\r\n\t}\r\n\treturn head+'</thead>';\r\n}", "function dataTable(data) {\n var keys = Object.keys(data[0]);\n var headers = keys.map(function(name) {\n return new UnderlinedCell(new TextCell(name));\n });\n var body = data.map(function(row) {\n return keys.map(function(name) {\n return new TextCell(String(row[name]));\n });\n });\n return [headers].concat(body);\n}", "function getHeaders(headers) {\n var h = [];\n headers.forEach(function (row) {\n h.push(row.label);\n });\n\n return h;\n }", "function getTableHeaderValues() {\n return [{\n 'className': 'u-size3of12',\n 'title': 'id'\n }, {\n 'className': 'u-size1of12',\n 'title': 'qty'\n }, {\n 'className': 'u-size4of12',\n 'title': 'name'\n }, {\n 'className': 'u-size1of12',\n 'title': 'item'\n }, {\n 'className': 'u-size1of12',\n 'title': 'price'\n }, {\n 'className': 'u-size1of12',\n 'title': 'total'\n }, {\n 'className': 'u-size1of12',\n 'title': 'actions'\n }];\n }", "function dataTableFromTable(t) {\n\t\tvar tbl = new google.visualization.DataTable(),\n\t\t\tcol_type = \"string\";\n\n\t\t$(t).find(\"thead th\").each(function(i){\n\t\t\tif (1 === i) {\n\t\t\t\tcol_type = \"number\";\n\t\t\t}\n\t\t\ttbl.addColumn(col_type, $(this).text() );\n\t\t});\n\n\t\t$(t).find(\"tbody tr\").each(function(){\n\t\t\ttbl.addRow(\n\t\t\t\t$(this).find(\"td\").map(function(i){\n\t\t\t\t\tif (0 === i) {\n\t\t\t\t\t\treturn $(this).text();\n\t\t\t\t\t}\n\t\t\t\t\treturn parseFloat( $(this).text() );\n\t\t\t\t})\n\t\t\t\t.get());\n\t\t});\n\t\treturn tbl;\n\t}", "function dataTable(data) {\n var keys = Object.keys(data[0]);\n var headers = keys.map(function(name) {\n return new UnderlinedCell(new TextCell(name));\n });\n var body = data.map(function(row) {\n return keys.map(function(name) {\n var value = row[name];\n // This was changed:\n if (typeof value == \"number\")\n return new RTextCell(String(value));\n else\n return new TextCell(String(value));\n });\n });\n return [headers].concat(body);\n}", "function extractHospitalDataFn(selector) {\n let hospitalTable = document.getElementById(selector);\n let row = hospitalTable.querySelectorAll(\"tr\");\n let details = [];\n\n for (let i = 0; i < row.length; i++) {\n if (i % 2 == 0 && i != row.length - 1) {\n\n let hname = row[i].cells[0].textContent;\n let vacantSeat = row[i].cells[3].getElementsByTagName(\"a\")[0].textContent;\n let timestamp = row[i].cells[1].textContent;\n let vacantSeatNumber = parseInt(vacantSeat);\n if (vacantSeatNumber > 0) {\n\n details.push({ hname, vacantSeatNumber,timestamp });\n //hospital.push({ hname, vacantSeat, timestamp });\n }\n }\n }\n\n\n //console.table(details);\n return details;\n //return hospital;\n }", "function getMedataFromTable (table) {\n return Array.from(table.querySelectorAll(\"thead tr th\")).map((item) => {\n return translation[item.innerText];\n });\n }", "function getTableHeaders(columns) {\n return [..._.map(columns, 'header'), ''];\n}", "function getDataFromTable(table){\n const dataTable = [];\n const cols = getData('columns');\n const rows = Array.from(table.rows).slice(1);\n \n rows.forEach(rowData => {\n let dataRow = {};\n \n for (let col in cols) {\n let data = rowData.cells;\n switch(cols[col]){\n case 'total':\n let total = parseFloat(data[col].innerHTML.slice(1));\n dataRow[cols[col]] = total;\n break;\n case 'order': \n let value = parseInt(data[col].childNodes[0].innerHTML.slice(1));\n dataRow[cols[col]] = value;\n dataRow['order_link'] = data[col].childNodes[0].href;\n break; \n case 'status':\n dataRow[cols[col]] = data[col].childNodes[0].innerHTML;\n break;\n default:\n dataRow[cols[col]] = data[col].innerHTML;\n break;\n }\n }\n dataTable.push(dataRow);\n })\n \n /*for (let i=1; i < rows.length; i++){\n var row_data = {};\n for (let col in cols) {\n let data = rows[i].cells;\n if (cols[col] === 'order'){\n let value = parseInt(data[col].childNodes[0].innerHTML.slice(1));\n row_data[cols[col]] = value;\n row_data['order_link'] = data[col].childNodes[0].href;\n } else if (cols[col] === 'total'){\n let value = parseFloat(data[col].innerHTML.slice(1));\n row_data[cols[col]] = value;\n } else if (cols[col] === 'status'){\n row_data[cols[col]] = data[col].childNodes[0].innerHTML;\n }\n else {\n row_data[cols[col]] = data[col].innerHTML;\n }\n \n }\n data.push(row_data);\n }*/\n return dataTable;\n}", "function addAllColumnHeaders() {\n var columnSet = [];\n var headerTr$ = $('<tr/>');\n\n for (var i = 0; i < tableList.length; i++) {\n var rowHash = tableList[i];\n delete rowHash['tafel_id'];\n delete rowHash['tafel_fach'];\n delete rowHash['tafel_kommentar'];\n for (var key in rowHash) {\n if ($.inArray(key, columnSet) == -1) {\n columnSet.push(key);\n switch (key) {\n case \"tafel_datum\":\n key = \"Datum\";\n break;\n case \"tafel_wochentag\":\n key = \"Wochentag\";\n break;\n case \"tafel_von\":\n key = \"Von\";\n break;\n case \"tafel_bis\":\n key = \"Bis\";\n break;\n case \"tafel_lehrer\":\n key = \"Lehrer\";\n break;\n case \"tafel_longfach\":\n key = \"Fach\";\n break;\n case \"tafel_raum\":\n key = \"Raum\";\n break;\n }\n headerTr$.append($('<th/>').html(key));\n }\n }\n }\n $(\"#tabledata\").append(headerTr$).fadeIn(\"400\");\n\n return columnSet;\n }", "function addAllColumnHeaders(data){\n /* Uses columnSet to create table headers */\n var headerTr$ = $('<tr/>');\n for (var i = 0 ; i < columnSet.length; i++){\n headerTr$.append($('<th/>').html(columnSet[i]));\n }\n $(params.table_name).append(headerTr$);\n }", "static fillRows(table, data, headers) {\n data.forEach(elem => {\n let row = table.insertRow(-1)\n let tds = []\n headers.forEach(el => {\n tds.push(row.insertCell(-1))\n tds[tds.length - 1].innerHTML = elem[el] ? elem[el] : ''\n tds[tds.length - 1].id = el\n })\n })\n }", "function getTableHeader() {\n // 2nd tr\n var trTag = $j('<tr></tr>');\n var tdTag = $j('<td class=\"infoline\" style=\"width:60px;\"></td>').html(\n '&nbsp;');\n trTag.html(tdTag);\n var tdTag = $j('<td class=\"infoline\" style=\"width:100px;\"></td>').html(\n '<b>Parent Code</b>');\n tdTag.appendTo(trTag);\n var tdTag = $j('<td class=\"infoline\" style=\"width:100px;\"></td>').html(\n '<b>Research Code</b>');\n tdTag.appendTo(trTag);\n var tdTag = $j('<td class=\"infoline\"></td>').html('<b>Research Area</b>');\n tdTag.appendTo(trTag);\n var tdTag = $j('<td class=\"infoline\"></td>').html('<b>Active</b>');\n tdTag.appendTo(trTag);\n var tdTag = $j('<td class=\"infoline\" style=\"width:65px;\"></td>').html(\n '<b>Action</b>');\n tdTag.appendTo(trTag);\n return trTag;\n}", "getColumnHeaderData(columns, metadata) {\n let outputHeaderTitles = [];\n this._columnHeaders = this.getColumnHeaders(columns) || [];\n if (this._columnHeaders && Array.isArray(this._columnHeaders) && this._columnHeaders.length > 0) {\n // add the header row + add a new line at the end of the row\n outputHeaderTitles = this._columnHeaders.map((header) => ({ value: header.title, metadata }));\n }\n // do we have a Group by title?\n const groupTitle = this.getGroupColumnTitle();\n if (groupTitle) {\n outputHeaderTitles.unshift({ value: groupTitle, metadata });\n }\n return outputHeaderTitles;\n }", "function parseHeadTable(data) {\n return {\n version: utility_1.formatFixed(data.readUInt16BE(0), data.readUInt16BE(2)),\n fontRevision: utility_1.formatFixed(data.readUInt16BE(4), data.readUInt16BE(6)),\n checkSumAdjustment: data.readUInt32BE(8),\n magicNumber: data.readUInt32BE(12),\n flags: data.readUInt16BE(16),\n unitsPerEm: data.readUInt16BE(18),\n created: utility_1.formatLongDateTime(data.readUInt32BE(20), data.readUInt32BE(24)),\n modified: utility_1.formatLongDateTime(data.readUInt32BE(28), data.readUInt32BE(32)),\n xMin: data.readInt16BE(36),\n yMin: data.readInt16BE(38),\n xMax: data.readInt16BE(40),\n yMax: data.readInt16BE(42),\n macStyle: data.readUInt16BE(44),\n lowestRecPPEM: data.readUInt16BE(46),\n fontDirectionHint: data.readInt16BE(48),\n indexToLocFormat: data.readInt16BE(50),\n glyphDataFormat: data.readInt16BE(52)\n };\n}", "function make_headers (table){\n\n var i = 0;\n var headers = d3.select(\"#\" + table).selectAll(\"th\");\n\n var length = headers.nodes().length;\n var lmi = [\"Indicator\", \"Value\"];\n var comm = [\"Commute\", \"Share\", \"\"];\n var edu = [\"Education\", \"Share\", \"\"];\n var occ = [\"National Occupational Classification\", \"Market Population\", \"Public Service\"];\n\n switch (table){\n case \"LMI\":\n for (i = 0; i < length; i++) {\n headers.nodes()[i].innerHTML = lmi[i];\n }\n break;\n\n case \"comm_tbl\":\n for (i = 0; i < length; i++) {\n headers.nodes()[i].innerHTML = comm[i];\n }\n break;\n\n case \"edu_tbl\":\n for (i = 0; i < length; i++) {\n headers.nodes()[i].innerHTML = edu[i];\n }\n break;\n\n case \"LMI_PS\":\n for (i = 0; i < length; i++) {\n headers.nodes()[i].innerHTML = occ[i];\n }\n break;\n }\n}", "function header(res){\n\tvar thead = document.getElementById(\"thead\");\n\tvar tr = document.createElement(\"tr\");\n\tif(res.Data.length < 1){\n\t\t\tvar th = document.createElement(\"th\");\n\t\t\tvar text = document.createTextNode(\"No data available\");\n\t\t\tth.appendChild(text);\n\t\t\ttr.appendChild(th);\n\t\t\tthead.appendChild(tr);\n\t\t\treturn null;\n\t}\n\tfor(var item in res.Data[0]){\n\t\t\tvar th = document.createElement(\"th\");\n\t\t\tvar text = document.createTextNode(item);\n\t\t\tth.appendChild(text);\n\t\t\ttr.appendChild(th);\n\t}\n\tthead.appendChild(tr);\n}", "function fillKalenderHeader(){\r\r\n\tvar header = kalender_html.querySelectorAll('tr:first-of-type td:not(:first-of-type)');\r\r\n\tvar daten = kalender_data.getTage();\r\r\n\tfor(var i=0; i<header.length && i<daten.length; i++){\r\r\n\t\theader[i].innerHTML = daten[i];\r\r\n\t}\r\r\n}", "function createHeader (){\n\n // Create the header raw\n // create raw\n var headRow = document.createElement('tr');\n table.appendChild(headRow);\n //create tds\n var firstTd;\n for (var i = 0; i < tableHeads.length ; i++){\n firstTd = document.createElement('td');\n firstTd.textContent= tableHeads[i];\n headRow.appendChild(firstTd);\n }\n}", "function getDataFromTable() {\n\n /**\n * Given a class name for a variable it reads all of its values.\n * In other words, it reads all column values. Returns this as an\n * array.\n */\n function readVariable(name) {\n\n // Iterate through all values.\n var values = []\n $(name).each(function() {\n\n // Get the floating point value from the cell. If it is not a float\n // then take it as 0.\n var val = parseFloat($(this).val());\n if (isNaN(val)) {\n val = 0;\n }\n values.push(val);\n })\n\n return values;\n\n } \n\n // Read all variables defined in VAR_NAMES and store them in data.\n for (var i = 0; i < VAR_NAMES.length; i++) {\n data[i] = readVariable(VAR_NAMES[i]);\n }\n\n // Reset to redraw everything.\n reset();\n}", "function addAllColumnHeaders(tableSchemaData, selector) {\n let columnSet = [];\n let headerTr$ = $('<tr/>');\n\n for (let i = 0; i < tableSchemaData.length; i++) {\n let rowHash = tableSchemaData[i];\n for (let key in rowHash) {\n if ($.inArray(key, columnSet) == -1) {\n columnSet.push(key);\n headerTr$.append($('<th/>').html(key));\n }\n }\n }\n $(selector).append(headerTr$);\n return columnSet;\n}", "function parseToTable(da, callback){\n \n // Iterate through all elements properties to get the headers names\n var aoC = [];\n var keys = [];\n var data = da;\n \n for (var e in da){\n for(var key in da[e]){\n\t\n\tif (keys.indexOf(key) < 0){\n\t aoC.push({\"sTitle\": key});\n\t keys.push(key);\n\t}\n }\n }\n \n // Get all the elements data\n var aaD = [];\n \n for (var e in data){\n \n var row = [];\n \n // Get the properties in the same order as the first element\n for(var k in keys){\n\t\n\t// If it is an object\n\tif( typeof(data[e][keys[k]]) == 'object' ){\n\t \n\t parseToTable(data[e][keys[k]], function(d, c){\n\t row.push( tableToHtml(d,c) );\n\t });\n\t}\n\telse if (data[e][keys[k]]){\n\t row.push( data[e][keys[k]] );\n\t}\n\telse {\n\t row.push( \"\" );\n\t}\n }\n aaD.push(row);\n }\n callback(aaD, aoC);\n }", "function addAllColumnHeaders(Cases_Status_Information, selector) {\r\n var columnSet = [];\r\n var headerTr$ = $(\"<tr/>\");\r\n\r\n for (var i = 0; i < Cases_Status_Information.length; i++) {\r\n var rowHash = Cases_Status_Information[i];\r\n for (var key in rowHash) {\r\n if ($.inArray(key, columnSet) == -1) {\r\n columnSet.push(key);\r\n headerTr$.append($(\"<th/>\").html(key));\r\n }\r\n }\r\n }\r\n $(selector).append(headerTr$);\r\n\r\n return columnSet;\r\n}", "static getQBHeaderColumns(data) {\n\t\tconst lookUpLength = HEADERLOOKUP.length;\n\t\tconst flatHeaders = HEADERLOOKUP.flat();\n\t\tconst dataLength = data.length;\n\t\tlet i = 0, rowCell,k;\n\t\tfor (; i < dataLength ; i++) {\n\t\t\tconst rowLength = data[i].length;\n\t\t\tif(rowLength > lookUpLength) {\n\t\t\t\tk =0;\n\t\t\t\tlet j = 0;\n\t\t\t\tfor(; j < rowLength; j++){\n\t\t\t\t\trowCell = String(data[i][j]);\n\t\t\t\t\trowCell && flatHeaders.includes(rowCell.toLowerCase()) && k++;\n\t\t\t\t}\n\t\t\t\tif( k === lookUpLength) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(k !== lookUpLength) {\n\t\t\treturn Promise.reject({\n\t\t\t\terror : \"INVALIDHEADERS\",\n\t\t\t\theaders : HEADERLOOKUP,\n\t\t\t\tvalidationMsg : [\"LOADINGFILE\",\"VALIDATINGDATA\",{msg: \"INVALIDHEADERS\", isStopLoading: true, isError: true}],\n\t\t\t})\n\t\t}\n\t\treturn Promise.resolve({\n\t\t\theader : data[i],\n\t\t\ttrailingEmptyCells : PortfolioTemplateImport.getTrailingEmptyCells(data[i]),\n\t\t\t// TODO improve this logic by getting index from function\n\t\t\tcolumnsMap : {\n\t\t\t\tdate : data[i].indexOf('Date'),\n\t\t\t\tamount : data[i].indexOf('Paid Amount') > -1 ? data[i].indexOf('Paid Amount') : data[i].indexOf('Amount'),\n\t\t\t\tdescription : [data[i].indexOf('Name'), data[i].indexOf('Memo')],\n\t\t\t\tproperty : data[i].indexOf('Class'),\n\t\t\t}\n\t\t});\n\t}", "function parseHeadTable(data, start) {\n const head = {};\n const p = new _parse__WEBPACK_IMPORTED_MODULE_1__.default.Parser(data, start);\n head.version = p.parseVersion();\n head.fontRevision = Math.round(p.parseFixed() * 1000) / 1000;\n head.checkSumAdjustment = p.parseULong();\n head.magicNumber = p.parseULong();\n _check__WEBPACK_IMPORTED_MODULE_0__.default.argument(head.magicNumber === 0x5F0F3CF5, 'Font header has wrong magic number.');\n head.flags = p.parseUShort();\n head.unitsPerEm = p.parseUShort();\n head.created = p.parseLongDateTime();\n head.modified = p.parseLongDateTime();\n head.xMin = p.parseShort();\n head.yMin = p.parseShort();\n head.xMax = p.parseShort();\n head.yMax = p.parseShort();\n head.macStyle = p.parseUShort();\n head.lowestRecPPEM = p.parseUShort();\n head.fontDirectionHint = p.parseShort();\n head.indexToLocFormat = p.parseShort();\n head.glyphDataFormat = p.parseShort();\n return head;\n}", "function buildTableHeader(data) {\r\n let rows = `<tr>`;\r\n rows += `<th>Index</th>`;\r\n\r\n for (let i = 0; i < data[0].length; i++) {\r\n rows += `<th>${data[0][i]}</th>`;\r\n }\r\n\r\n rows += `</tr>`;\r\n return rows;\r\n}", "function getNodeTableData(tableNode)\n{\n if(!tableNode)\n return null;\n\n var tableData={headers:[], rows:[], hasSpans:false, caption:null};\n\n //Look for caption tag before the table tag\n if(searchString(\"caption\", tableNode))\n tableData.caption = tableNode.caption;\n\n //Search for <td> inside <thead>\n var hasSameTd = false;\n\n try\n {\n // Save table header cells contents to tableData\n if(tableNode.thead)\n {\n //When more than 1 header exist\n if(!Array.isArray(tableNode.thead.tr))\n tableNode.thead.tr = [tableNode.thead.tr];\n else\n tableData.hasSpans=true;\n\n\n for(var j=0; j<tableNode.thead.tr.length; j++)\n {\n if(tableNode.thead.tr[j].td)\n if(tableNode.thead.tr[j].th.length == tableNode.thead.tr[j].td.length)\n hasSameTd = true;\n\n tableData.headers.push(new Array());\n\n if(!Array.isArray(tableNode.thead.tr[j].th))\n tableNode.thead.tr[j].th=[tableNode.thead.tr[j].th];\n\n if(tableNode.thead.tr[j].td)\n if(!Array.isArray(tableNode.thead.tr[j].td))\n tableNode.thead.tr[j].td=[tableNode.thead.tr[j].td];\n\n for(var i=0; i<tableNode.thead.tr[j].th.length; i++)\n {\n tableData.headers[tableData.headers.length-1].push(buildTableCellObject(tableNode.thead.tr[j].th[i], null, true));\n\n if(hasSameTd)\n tableData.headers[tableData.headers.length-1].push(buildTableCellObject(tableNode.thead.tr[j].td[i], null, false));\n\n // check for colspan/rowspan\n if(tableNode.thead.tr[j].th[i][\"@rowspan\"] || tableNode.thead.tr[j].th[i][\"@colspan\"])\n tableData.hasSpans=true;\n }\n\n if(!hasSameTd && tableNode.thead.tr[j].td)\n {\n for(var i=0; i<tableNode.thead.tr[j].td.length; i++)\n {\n tableData.headers[tableData.headers.length-1].push(buildTableCellObject(tableNode.thead.tr[j].td[i], null, false));\n\n // check for colspan/rowspan\n if(tableNode.thead.tr[j].td[i][\"@rowspan\"] || tableNode.thead.tr[j].td[i][\"@colspan\"])\n tableData.hasSpans=true;\n }\n }\n\n hasSameTd = false;\n }\n }\n else\n tableData.hasSpans=true;\n\n hasSameTd = false;\n\n //handle multiple tbodies\n if(!Array.isArray(tableNode.tbody))\n tableNode.tbody=[tableNode.tbody];\n\n if(tableNode.tbody.length > 1)\n tableData.hasSpans = true;\n\n // Save table body cells contents to tableData\n for(var b=0; b<tableNode.tbody.length; b++)\n {\n // if table only has one row, make it an arraw to access it in the loop below\n if(!Array.isArray(tableNode.tbody[b].tr))\n tableNode.tbody[b].tr=[tableNode.tbody[b].tr];\n\n tableData.rows.push([]);\n\n for(var r=0; r<tableNode.tbody[b].tr.length; r++)\n {\n tableData.rows[b].push([]);\n\n if(tableNode.tbody[b].tr[r].th || tableNode.tbody[b].tr[r].td)\n {\n //if headers are found inside rows\n if(tableNode.tbody[b].tr[r].th)\n {\n if(tableNode.tbody[b].tr[r].td && tableNode.tbody[b].tr[r].th.length == tableNode.tbody[b].tr[r].td.length)\n {\n hasSameTd = true;\n tableData.hasSpans=true;\n }\n else\n {\n var jsonArr = new Array();\n\n // if only one column is found, make it an array\n if(Array.isArray(tableNode.tbody[b].tr[r].th))\n {\n for(var h=0; h<tableNode.tbody[b].tr[r].th.length; h++){\n var jsonArr = getTextObject(tableNode.tbody[b].tr[r].th[h], tableData, true);\n tableData.rows[b][r].push(jsonArr);\n }\n }\n else\n {\n var jsonArr = getTextObject(tableNode.tbody[b].tr[r].th, tableData, true);\n tableData.rows[b][r].push(jsonArr);\n }\n\n tableData.hasSpans=true;\n }\n }\n\n if(tableNode.tbody[b].tr[r].td)\n {\n // if only one column is found, make it an array\n if(!Array.isArray(tableNode.tbody[b].tr[r].td))\n tableNode.tbody[b].tr[r].td=[tableNode.tbody[b].tr[r].td];\n\n for(var c=0; c<tableNode.tbody[b].tr[r].td.length; c++)\n {\n if(hasSameTd)\n {\n if(!Array.isArray(tableNode.tbody[b].tr[r].th))\n tableNode.tbody[b].tr[r].th=[tableNode.tbody[b].tr[r].th];\n\n var jsonArr = new Array();\n jsonArr = getTextObject(tableNode.tbody[b].tr[r].th[c], tableData, true);\n\n tableData.rows[b][r].push(jsonArr);\n }\n\n var jsonArr = new Array();\n jsonArr = getTextObject(tableNode.tbody[b].tr[r].td[c], tableData, false);\n tableData.rows[b][r].push(jsonArr);\n\n if(c==0 && tableNode.tbody[b].tr[r].td[c] == \"\")\n tableData.hasSpans=true;\n }\n }\n }\n hasSameTd = false;\n }\n }\n }\n catch(err){\n console.log(\"Error Reading file \"+err);\n showAlert(\"danger\", \"Error reading the file.\");\n return null;\n }\n\n return tableData;\n}", "getTradeTableTXT() {\n \n var columns = columnify(this.data.intervalls);\n \n return columns;\n }", "function createTableHead(table) {\n // reset headers\n let tableHead = $('#table-head');\n tableHead.html('');\n\n // creating table headers\n headers = Object.keys(table[0].input).slice(2);\n let tr = document.createElement('tr');\n\n let indexTh = document.createElement('th');\n indexTh.innerHTML = '#';\n tr.append(indexTh);\n\n headers.forEach(function(header) {\n let th = document.createElement('th');\n th.innerHTML = header.toUpperCase();\n tr.append(th);\n });\n\n let resultTh = document.createElement('th');\n resultTh.innerHTML = 'Result';\n tr.append(resultTh);\n tableHead.append(tr);\n }", "function objectify(table) {\n const info = table.querySelectorAll('tr:nth-child(n+4) td');\n const message = table.querySelector('th:first-child');\n const chunks = arrayChunk(Array.from(info), rowCount);\n const collection = [];\n chunks.forEach((chunk, chunkCount) => {\n collection[chunkCount] = {};\n collection[chunkCount].message = cleanupMessage(message.innerText.replace('( ! ) ', ''));\n collection[chunkCount].filename = getFilename(message.innerText);\n collection[chunkCount].linenumber = getLinenumber(message.innerText);\n chunk.forEach((el, index) => {\n collection[chunkCount][tableHeaderMap[index]] = (tableHeaderTypeMap[index] === 'number') ? parseFloat(el.innerText) : el.innerText;\n })\n });\n return collection;\n }", "function buildTable(data) {\n var headers = Object.keys(data[0]);\n var table = document.createElement(\"TABLE\");\n var row = document.createElement(\"TR\");\n headers.forEach(function(column){\n var cellH = document.createElement(\"TH\");\n var textItem = document.createTextNode(column);\n cellH.appendChild(textItem);\n row.appendChild(cellH);\n });\n table.appendChild(row); \n \n data.forEach(function(item){\n var row = document.createElement(\"TR\");\n headers.forEach(function(header){\n var cell = document.createElement(\"TD\");\n var textItem = document.createTextNode(item[header]);\n cell.appendChild(textItem); //to right align numeric values\n if(!isNaN(item[header]))\n cell.style.textAlign = \"right\";\n row.appendChild(cell);\n });\n table.appendChild(row);\n }); \n return table;\n }", "function getTableHeadhers(obj) {\n var tableHeaders = []\n\n Object.keys(obj).forEach(function(key) {\n tableHeaders.push(`<td>${key}</td>`);\n })\n return `<tr>${tableHeaders}</tr>`;\n}", "function generateTableHead(table, data) {\n table.border = \"1\";\n let thead = table.createTHead();\n let row = thead.insertRow();\n for (let key of data) {\n let th = document.createElement(\"th\");\n let text = document.createTextNode(key);\n th.appendChild(text);\n row.appendChild(th);\n }\n }", "function getNestedHeaders(headers) {\n var h = [];\n var i = 0;\n headers.forEach(function (row) {\n h[i] = [];\n row.forEach(function (col) {\n if(col.colspan){\n h[i].push(col);\n }\n else{\n h[i].push(col.label);\n }\n });\n i++;\n });\n return h;\n }", "function getTable(selector, columnNames = null) {\n const columns = columnNames ? columnNames : $$(\"th\").map(th => th.innerText)\n const rows = $$(\"tr\").map(tr => $$(\"td\", tr).map(td => td.innerText))\n return {columns, rows}\n}", "extractRows(domElem) {\n const rawTableRows = Array.from(domElem.querySelectorAll(\"tr\")).slice(this.numberOfHeaderRows());\n let processedRows = [];\n\n rawTableRows.forEach(row => { \n const cells = Array.from(row.cells);\n processedRows.push(cells);\n });\n\n this.indexes = this.getSplittableCellsIndex(processedRows);\n processedRows = this.spliCellsAtIndexes(processedRows, this.indexes);\n \n processedRows = this.rowsWithCellsWithTextualValues(processedRows);\n\n return processedRows; // remove header\n }", "function buildHeader(rowData) {\n var cells = [];\n for (var key in rowData) {\n if (key != \"DataCmd\" && key != \"DataId\" && key != \"DataHash\" && key != \"DataParam\")\n cells.push(\"number\" == typeof(key) ? rowData[key] : key);\n }\n return tableGen.headerRow(cells);\n}", "function getHeaderRowForTable(table) {\n var rows = table.querySelectorAll('tr');\n for (var rowIndex = 0; rowIndex < rows.length; rowIndex++) {\n var row = rows[rowIndex];\n var cells = row.children;\n var good = true;\n for (var colIndex = 0; colIndex < cells.length; colIndex++) {\n var cell = cells[colIndex];\n if (cell.colSpan > 1) {\n good = false;\n break;\n }\n }\n if (good) {\n return row;\n }\n }\n return rows[0];\n }", "function getTable(title, headers, data) {\n\tlet table = `<table><caption> ${title} </caption><thead><tr>`;\n\tfor (let i = 0; i < headers.length; i += 1) {\n\t\ttable += `<th> ${headers[i]} </th>`;\n\t}\n\ttable += '</tr></thead><tbody>';\n\tlet handle = (value) => {\n\t\ttable += `<td> ${value} </td>`;\n\t};\n\n\tfor (let i = 0; i < data.length; i += 1) {\n\t\ttable += '<tr>';\n\t\tObject.values(data[i]).forEach(handle);\n\t\ttable += '</tr>';\n\t}\n\ttable += '</tbody></table><br>';\n\n\treturn table;\n}", "function addAllColumnHeaders(arr, table) {\n var columnSet = [];\n var _tr = tr.cloneNode(false);\n\n for (var i = 0, l = arr.length; i < l; i++) {\n for (var key in arr[i]) {\n if (arr[i].hasOwnProperty(key) && columnSet.indexOf(key) === -1) {\n columnSet.push(key);\n\n var _th = th.cloneNode(false);\n\n _th.appendChild(document.createTextNode(key));\n _tr.appendChild(_th);\n }\n }\n }\n table.appendChild(_tr);\n return columnSet;\n }", "function csvToTableHeaderValue(CSV, addHeaderIfMissing, addLineNumbers, addSummary, options) {\r\n var j, k, coltag;\r\n var s = \"<table class=\\\"table table-bordered table-hover table-condensed\\\">\\n\";\r\n var a = [];\r\n var x = 0;\r\n var v = \"\";\r\n if(!CSV){return;}\r\n a = getFldPosArr(CSV);\r\n if (CSV.isFirstRowHeader || addHeaderIfMissing) {\r\n s += \"<thead><tr><th>Field</th><th>Value</th></tr></thead>\";\r\n }\r\n s += \"<tbody>\";\r\n for (j = 0; j < CSV.table.length; j++) {\r\n //alert(\"in csvToTable, continuing.... v=\" + v);\r\n\r\n for (x = 0; x < a.length; x++) { //for each column display the header/value\r\n s += \"<tr>\";\r\n if (x == 0 && addLineNumbers) {\r\n s += \"<th>Record #</th><th>\" + (j + 1) + \"</th></tr><tr>\\n\";\r\n }\r\n //header column\r\n k = a[x] - 1;\r\n if (k > CSV.arHeaderRow.length) v = \"FIELD\" + k;\r\n else v = CSV.arHeaderRow[k];\r\n s += '<th title=\"Field #' + (k + 1) + '\">' + v.toHtml().replace(/\\r\\n|\\r|\\n/g, \"<br/>\") + \"</th>\\n\";\r\n\r\n k = a[x] - 1;\r\n if (k >= CSV.table[j].length) v = \" \";\r\n else v = CSV.table[j][k];\r\n v = doTransformations(v, k, CSV);\r\n if (CSV.statsCnt[k] && (CSV.statsCnt[k].fieldType == \"N\" || CSV.statsCnt[k].fieldType == \"I\")) {\r\n s += \"<td align=\\\"right\\\">\" + v.toFixed(CSV.statsCnt[k].fieldDecs) + \"</td>\\n\";\r\n }\r\n else if (v != \"\" && 'dateOutFormat' in options && options.dateOutFormat != \"\" && CSV.statsCnt[k] && CSV.statsCnt[k].fieldType == \"D\") {\r\n try {\r\n var v = moment(v, CSV.dateformat[k]).format(options.dateOutFormat);\r\n } catch (e) { ; }\r\n s += \"<td>\" + v.toHtml().replace(/\\r\\n|\\n|\\r/g, \"<br/>\");\r\n s += \"</td>\\n\";\r\n }\r\n else {\r\n if (v == \"\") v = \" \";\r\n s += \"<td>\" + v.toHtml().replace(/\\r\\n|\\n|\\r/g, \"<br/>\") + \"</td>\\n\";\r\n }\r\n s += \"</tr>\\n\";\r\n }\r\n s += \"\";\r\n }\r\n s += \"</tbody>\";\r\n s += \"</table>\";\r\n return s;\r\n}", "function createRawTable(DTOTuples) {\n\n let rawDataTable = document.getElementById(\"RawTable\");\n $(rawDataTable).empty();\n\n let rawData = [];\n for (let tuple of Object.entries(DTOTuples))\n {\n rawData.push({Day:tuple[1].day,Hour:tuple[1].hour,Classroom:tuple[1].classroom.classroom.name,Teacher:tuple[1].teacher.teacher.name,Subject:tuple[1].subject.name});\n }\n\n\n let headers= Object.keys(rawData[0]);\n //rawData.sort((firstEl, secondEl) => { ... } );\n generateTable(rawDataTable, rawData);\n generateTableHead(rawDataTable, headers);\n\n}", "function generateTableHead(table, data) {\n const thead = table.createTHead();\n const row = thead.insertRow();\n for (const key of data) {\n const th = document.createElement('th');\n const text = document.createTextNode(key);\n th.appendChild(text);\n row.appendChild(th);\n }\n}", "function getHeaders(data, wsName, candidateRow) {\n\t\tvar res = [];\n\t\tvar worksheet = selectWorksheet(data, wsName);\n\t\tvar headerRow = candidateRow || worksheet.candidateHeaderLine || 0;\n\n\t\tvar row = worksheet.rows[headerRow];\n\t\t\n\t\tif (row == null) {\n\t\t\treturn [];\n\t\t}\n\n\t\tfor(var i in row.cells) {\n\t\t\tvar cellData = row.cells[i];\n\t\t\tif (cellData!=null && cellData!=='') {\n\t\t\t\tvar calcIdentifier = buildColumnName(toPascal(cellData));\n\t\t\t\tres.push(calcIdentifier);\n\t\t\t}\n\t\t}\t\t\n\t\treturn res;\n\t}", "function poplulateTable(data){\n data.forEach(sightingData=>{\n const trow = tbody.append(\"tr\");\n columns= [\"datetime\", \"city\", \"state\", \"country\", \"shape\", \"durationMinutes\", \"comments\"];\n columns.forEach(key=>{\n trow.append(\"td\").text(sightingData[key]);\n })\n })\n}", "function tabularNestHeader(element) {\n var head = element.querySelectorAll(\"thead\")[0];\n var row = head.querySelectorAll(\"tr\")[0];\n var hth = row.querySelectorAll(\"th\");\n\n var colons = 0;\n var i;\n for (i = 0; i < hth.length; i++) {\n var n = hth[i].textContent.split(\":\").length;\n if (n > colons) colons = n;\n }\n\n for (i = 0; i < 2*colons; i++) {\n var tr = document.createElement(\"tr\");\n var td = document.createElement(\"td\");\n tr.appendChild(td);\n\n for (var j = 0; j < hth.length; j++) {\n var text = hth[j].textContent.split(\":\");\n var k = Math.floor(i/2);\n var th = document.createElement(\"th\");\n if (k < text.length) {\n th.textContent = text[k].split(\"/\")[i % 2];\n } else {\n th.textContent = \"\";\n }\n tr.appendChild(th);\n }\n head.appendChild(tr);\n }\n\n row.parentElement.removeChild(row);\n row = head.querySelectorAll(\"tr\");\n for (i = 0; i < row.length; i++) {\n var rth = row[i].querySelectorAll(\"th\");\n var curn = 0;\n var cur = rth[curn].textContents;\n var colspan = 1;\n for (j = 0; j < rth.length; j++) {\n if (rth[j].textContent === cur && rth[j].textContent !== \"\") {\n rth[j].parentElement.removeChild(rth[j]);\n colspan++;\n rth[curn].setAttribute(\"colspan\", colspan);\n } else {\n colspan = 1;\n curn = j;\n cur = rth[curn].textContent;\n }\n }\n }\n}", "function getTableDataFromHtml() {\n\n }", "function getCustomerDetailsTable() {\n var result;\n result = {\n table: {\n widths: [70, '*', 70, '*'],\n body: [\n [{\n text: 'CUSTOMER DETAILS',\n style: 'tableHeader',\n colSpan: 4,\n border: [false, false, false, true]\n }, {}, {}, {}],\n [{\n text: 'Name',\n style: 'tableBoldTextAlignLeft',\n border: [false, true, true, true]\n }, {\n text: getIt('0'),\n style: 'tableText',\n colSpan: 3,\n border: [true, true, false, true]\n }, {}, {}],\n [{\n text: 'Telephone',\n style: 'tableBoldTextAlignLeft',\n border: [false, true, true, true]\n }, {\n text: getIt('1'),\n style: 'tableText'\n }, {\n text: 'Booking No',\n style: 'tableBoldTextAlignLeft'\n }, {\n text: getIt('2'),\n style: 'tableText',\n border: [true, true, false, true]\n }],\n [{\n text: 'Advice Required',\n style: 'tableBoldTextAlignLeft',\n border: [false, true, true, true]\n }, {\n text: getIt('3'),\n style: 'tableText'\n }, {\n text: 'Service Scope',\n style: 'tableBoldTextAlignLeft'\n }, {\n text: getIt('4'),\n style: 'tableText',\n border: [true, true, false, true]\n }]\n ]\n }\n };\n return result;\n}", "async function setTableHeader() {\n t = $('table#data-table');\n firstTr = t.find('tr:first').remove();\n firstTr.find('td').contents().unwrap().wrap('<th>');\n t.prepend($('<thead></thead>').append(firstTr))\n}", "generateHeaderTable() {\n let table = document.createElement(\"table\"); \n table.setAttribute(\"id\", \"table\");\n let tableBody = document.createElement(\"tbody\");\n tableBody.setAttribute(\"id\", \"tableBody\");\n let row = document.createElement(\"tr\");\n \n let array = [\"Aqui\", \"Date\", \"Time\", \"Name Station\"];\n for (let y = 0; y < 4; y++) {\n let cell = document.createElement(\"th\");\n let cellText = document.createTextNode(array[y]);\n cell.appendChild(cellText);\n row.appendChild(cell);\n }\n tableBody.appendChild(row);\n table.appendChild(tableBody);\n \n return table;\n }", "getData(table) {\n return this.content.data[table];\n }", "async function getTableHeaderInfo() {\n // Read JSON file\n return await fetch(base_url + '/content/table_header_info.json')\n .then(response => response.json())\n .then(data => {\n return data['headerInfo'];\n });\n}", "function getTableColumnsMetadata() {\n\tvar tableOutputHead = document.getElementById(\"tableOutputHead\");\n\tif (tableOutputHead == null) {\n\t\treturn null;\n\t}\n\t\n\tvar $ = [];\n\tvar tdElements = tableOutputHead.getElementsByTagName('th');\n\tfor(var i = 0; i < tdElements.length; i++) {\n\t\t$.push({id: tdElements[i].id, displayFormat: tdElements[i].getAttribute('display-format')});\n\t}\n\treturn $;\n}", "_getTbody(data, columnHeader, footer) {\n if (data !== undefined && data !== null && data.length > 0) {\n let ch = columnHeader ? 1 : 0,\n tbody;\n if (footer) {\n tbody = data.slice(ch, data.length - 1);\n this.__tfoot = data.slice(data.length - 1);\n } else {\n tbody = data.slice(ch, data.length);\n this.__tfoot = [];\n }\n return tbody;\n }\n return [];\n }", "function generateTableHead(table) {\n let tableHeadRow = $(\"#head-row\");\n\n tableHeadRow.append(\n `<th class=\"table-header\" id=\"athlete-header\" scope=\"col\">Athlete</th>`\n );\n\n for (let column of tableColumns) {\n tableHeadRow.append(`<th class=\"table-header\" id=\"${column}\" scope=\"col\">\n <span class=\"weekday-span\">${column}</span><br>\n <span class=\"${column}-date-span\"></span>\n </th>`);\n }\n\n tableHeadRow.append(\n `<th class=\"table-header\" id=\"total-miles-header\" scope=\"col\">Total Miles</th>`\n );\n}", "function printTableHeader() {\n\n const tr1Element = document.createElement( 'tr' );\n tableElement.appendChild( tr1Element );\n const thElement = document.createElement( 'th' );\n tr1Element.appendChild( thElement );\n thElement.textContent = 'Location';\n\n for ( let i = 0; i < workingHours.length; i++ ) {\n const thElement = document.createElement( 'th' );\n tr1Element.appendChild( thElement );\n thElement.textContent = workingHours[i];\n }\n const th2Element = document.createElement( 'th' );\n tr1Element.appendChild( th2Element );\n th2Element.textContent = 'Daily Location Total';\n}", "function addAllColumnHeaders(arr, table) {\n var columnSet = [],\n tr = _tr_.cloneNode(false);\n for (var i = 0, l = arr.length; i < l; i++) {\n for (var key in arr[i]) {\n if (arr[i].hasOwnProperty(key) && columnSet.indexOf(key) === -1) {\n columnSet.push(key);\n var th = _th_.cloneNode(false);\n th.appendChild(document.createTextNode(key));\n tr.appendChild(th);\n }\n }\n }\n table.appendChild(tr);\n return columnSet;\n}", "function create_table(data, id) {\r\n var e = \"\";\r\n var headers = data[0];\r\n var k = Object.keys(headers);\r\n e += \"<tr>\"\r\n $.each(k, function (h, j) {\r\n e += \"<th>\" + j + \"</th>\";\r\n })\r\n e += \"</tr>\";\r\n $.each(data, function (i, d) {\r\n e += \"<tr>\";\r\n var v = Object.values(d);\r\n $.each(v, function (h, j) {\r\n e += \"<td>\" + j + \"</td>\";\r\n })\r\n e += \"</tr>\";\r\n })\r\n $(\"#\" + id).html(e);\r\n}", "function getStructuredData () {\n let data = [];\n data.push((getCareerName()) ? getCareerName() : \"\");\n document.querySelectorAll(\"table#tabla_expediente[data-role=table]\").forEach((item) => {\n data.push({\n title: getTitleFromTable(item),\n data: getDataFromTable(item),\n });\n });\n if (data.length > 1)\n return data;\n }", "function _extractHeaders(rowData) {\n var toRet = {};\n for (var row = 0; row < rowData.length; ++row) {\n var rowLine = rowData[row];\n for (var key in rowLine) {\n if (rowLine.hasOwnProperty(key)) {\n if (!(key in toRet)) {\n toRet[key] = _determineType(rowLine[key]);\n }\n }\n }\n }\n return toRet;\n }", "function createHeaderRow(table, data){\r\n\tlet row = document.createElement(\"TR\");\r\n\trow.id = \"headerRow\";\r\n\ttable.append(row);\r\n\r\n\t// Create headerCell for each key in the data object. Pass in the object keys as arguments\r\n\tcreateCells(row, Object.keys(data));\r\n}", "function createTableHead(table, data) {\n let tableHead = table.createTHead();\n let row = tableHead.insertRow();\n for (let val of data) {\n let th = document.createElement(\"th\");\n let text = document.createTextNode(val);\n th.appendChild(text);\n row.appendChild(th);\n }\n}", "function addAllColumnHeaders(arr, table) {\n var columnSet = [],\n tr = _tr_.cloneNode(false);\n for (var i = 0, l = arr.length; i < l; i++) {\n for (var key in arr[i]) {\n if (arr[i].hasOwnProperty(key) && columnSet.indexOf(key) === -1) {\n columnSet.push(key);\n var th = _th_.cloneNode(false);\n th.appendChild(document.createTextNode(key));\n tr.appendChild(th);\n }\n }\n }\n table.appendChild(tr);\n return columnSet;\n}", "function dataTable(table){\n // Reset table\n tbody.text(\"\");\n\n // Populate table\n table.forEach(function(incident) {\n // console.log(incident);\n var row = tbody.append(\"tr\");\n Object.entries(incident).forEach(function([key, value]) {\n // console.log(key, value);\n var cell = row.append(\"td\");\n cell.text(value);\n });\n});\n}", "function getSummaryRow(cols, data) {\n\t\tvar row = [''];\n\t\tfor (var i = 0, skip; i < cols.length; i++) {\n\t\t\tskip = ['duration', 'startOdometer', 'endOdometer', 'tripLength'].indexOf(cols[i]) == -1;\n\t\t\tif (skip) {\n\t\t\t\trow.push('');\n\t\t\t} else if (cols[i] == 'duration') {\n\t\t\t\t// format duration\n\t\t\t\trow.push(get_time_string(data.duration));\n\t\t\t} else {\n\t\t\t\trow.push(TableColumns[cols[i]](data));\n\t\t\t}\n\t\t}\n\t\treturn row;\n\t}", "function _getSampleTable() {\n const data = [];\n\n const options = {\n div: 'container',\n data,\n renderer: null,\n headers: {\n names: ['No', 'Name', 'Description'],\n renderer: null\n },\n rows: {\n renderer: null,\n },\n cells: {\n onClick: null,\n onDblClick: null,\n onHover: null,\n renderer: null\n }\n };\n\n for (let i = 0; i < 10; i++) {\n data.push({ No: 1, Name: 'Images', Description: 'Folder of all images' });\n data.push({ No: 2, Name: 'Documents', Description: 'Folder of all documents' });\n data.push({ No: 3, Name: 'pig.jpg', Description: 'Image of a pig' });\n }\n\n table.init(options);\n}", "function tableHeadings (title, id) {\n var table = document.getElementById(id);\n var trElement = document.createElement('tr');\n var thElement = document.createElement('th');\n thElement.textContent = '';\n trElement.appendChild(thElement);\n thElement = document.createElement('th');\n thElement.textContent = title + 'Total';\n trElement.appendChild(thElement);\n for (var i = 0; i < hours.length; i++) {\n thElement = document.createElement('th');\n thElement.textContent = hours[i];\n trElement.appendChild(thElement);\n }\n table.appendChild(trElement);\n}", "getColumns() {\n let columns = [{data: null}];\n $('th:not(:first-child)').each(function() {\n columns.push({data: $(this).text().replace(/\\s/g, \"\")});\n });\n return columns;\n }", "function parseHeadTable(data, start) {\r\n\t const head = {};\r\n\t const p = new parse.Parser(data, start);\r\n\t head.version = p.parseVersion();\r\n\t head.fontRevision = Math.round(p.parseFixed() * 1000) / 1000;\r\n\t head.checkSumAdjustment = p.parseULong();\r\n\t head.magicNumber = p.parseULong();\r\n\t check.argument(head.magicNumber === 0x5F0F3CF5, 'Font header has wrong magic number.');\r\n\t head.flags = p.parseUShort();\r\n\t head.unitsPerEm = p.parseUShort();\r\n\t head.created = p.parseLongDateTime();\r\n\t head.modified = p.parseLongDateTime();\r\n\t head.xMin = p.parseShort();\r\n\t head.yMin = p.parseShort();\r\n\t head.xMax = p.parseShort();\r\n\t head.yMax = p.parseShort();\r\n\t head.macStyle = p.parseUShort();\r\n\t head.lowestRecPPEM = p.parseUShort();\r\n\t head.fontDirectionHint = p.parseShort();\r\n\t head.indexToLocFormat = p.parseShort();\r\n\t head.glyphDataFormat = p.parseShort();\r\n\t return head;\r\n\t}", "function _fnGetUniqueThs(nThead) {\n\t\t\tvar nTrs = nThead.getElementsByTagName('tr');\n\n\t\t\t/* Nice simple case */\n\t\t\tif (nTrs.length == 1) {\n\t\t\t\treturn nTrs[0].getElementsByTagName('th');\n\t\t\t}\n\n\t\t\t/* Otherwise we need to figure out the layout array to get the nodes */\n\t\t\tvar aLayout = [], aReturn = [];\n\t\t\tvar ROWSPAN = 2, COLSPAN = 3, TDELEM = 4;\n\t\t\tvar i, j, k, iLen, jLen, iColumnShifted;\n\t\t\tvar fnShiftCol = function(a, i, j) {\n\t\t\t\twhile (typeof a[i][j] != 'undefined') {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\treturn j;\n\t\t\t};\n\t\t\tvar fnAddRow = function(i) {\n\t\t\t\tif (typeof aLayout[i] == 'undefined') {\n\t\t\t\t\taLayout[i] = [];\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t/* Calculate a layout array */\n\t\t\tfor (i = 0, iLen = nTrs.length; i < iLen; i++) {\n\t\t\t\tfnAddRow(i);\n\t\t\t\tvar iColumn = 0;\n\t\t\t\tvar nTds = [];\n\n\t\t\t\tfor (j = 0, jLen = nTrs[i].childNodes.length; j < jLen; j++) {\n\t\t\t\t\tif (nTrs[i].childNodes[j].nodeName.toUpperCase() == \"TD\"\n\t\t\t\t\t\t\t|| nTrs[i].childNodes[j].nodeName.toUpperCase() == \"TH\") {\n\t\t\t\t\t\tnTds.push(nTrs[i].childNodes[j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (j = 0, jLen = nTds.length; j < jLen; j++) {\n\t\t\t\t\tvar iColspan = nTds[j].getAttribute('colspan') * 1;\n\t\t\t\t\tvar iRowspan = nTds[j].getAttribute('rowspan') * 1;\n\n\t\t\t\t\tif (!iColspan || iColspan === 0 || iColspan === 1) {\n\t\t\t\t\t\tiColumnShifted = fnShiftCol(aLayout, i, iColumn);\n\t\t\t\t\t\taLayout[i][iColumnShifted] = (nTds[j].nodeName\n\t\t\t\t\t\t\t\t.toUpperCase() == \"TD\") ? TDELEM : nTds[j];\n\t\t\t\t\t\tif (iRowspan || iRowspan === 0 || iRowspan === 1) {\n\t\t\t\t\t\t\tfor (k = 1; k < iRowspan; k++) {\n\t\t\t\t\t\t\t\tfnAddRow(i + k);\n\t\t\t\t\t\t\t\taLayout[i + k][iColumnShifted] = ROWSPAN;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tiColumn++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tiColumnShifted = fnShiftCol(aLayout, i, iColumn);\n\t\t\t\t\t\tfor (k = 0; k < iColspan; k++) {\n\t\t\t\t\t\t\taLayout[i][iColumnShifted + k] = COLSPAN;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tiColumn += iColspan;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Convert the layout array into a node array */\n\t\t\tfor (i = 0, iLen = aLayout.length; i < iLen; i++) {\n\t\t\t\tfor (j = 0, jLen = aLayout[i].length; j < jLen; j++) {\n\t\t\t\t\tif (typeof aLayout[i][j] == 'object'\n\t\t\t\t\t\t\t&& typeof aReturn[j] == 'undefined') {\n\t\t\t\t\t\taReturn[j] = aLayout[i][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn aReturn;\n\t\t}", "function tableWithCheckboxToArray(tableId) {\n var TableData = [];\n $('#' + tableId + ' tbody tr').each(function (row, tr) {\n TableData[row] = {\n \"name\": $(tr).find('td:eq(1)').text()\n , \"weight\": $(tr).find('td:eq(2)').text()\n }\n });\n //TableData.shift(); // first row is the table header - so remove\n return TableData;\n}", "function tableHeader() {\n var headerTop = document.getElementById('SalesReport');\n var row = document.createElement('tr');\n headerTop.appendChild(row);\n var tableData = document.createElement('th');\n row.appendChild(tableData);\n for (var i = 0; i < hoursOfOperation.length; i++) {\n var hourHead = document.createElement('th');\n hourHead.innerText = hoursOfOperation[i];\n row.appendChild(hourHead);\n };\n var totalHead = document.createElement('th');\n totalHead.innerText = ('Daily Location Total');\n row.appendChild(totalHead);\n}", "function parseHeadTable(data, start) {\n var head = {};\n var p = new parse.Parser(data, start);\n head.version = p.parseVersion();\n head.fontRevision = Math.round(p.parseFixed() * 1000) / 1000;\n head.checkSumAdjustment = p.parseULong();\n head.magicNumber = p.parseULong();\n check.argument(\n head.magicNumber === 0x5f0f3cf5,\n 'Font header has wrong magic number.'\n );\n head.flags = p.parseUShort();\n head.unitsPerEm = p.parseUShort();\n head.created = p.parseLongDateTime();\n head.modified = p.parseLongDateTime();\n head.xMin = p.parseShort();\n head.yMin = p.parseShort();\n head.xMax = p.parseShort();\n head.yMax = p.parseShort();\n head.macStyle = p.parseUShort();\n head.lowestRecPPEM = p.parseUShort();\n head.fontDirectionHint = p.parseShort();\n head.indexToLocFormat = p.parseShort();\n head.glyphDataFormat = p.parseShort();\n return head;\n }", "function createTHead(table) {\n var thead = table.tHead;\n if (thead) return thead;\n thead = document.createElement(\"thead\");\n var tbody = table.tBodies[0];\n table.insertBefore(thead, tbody);\n for (var i = 0; i < tbody.rows.length; i++) {\n var tbodyrow = tbody.rows[0];\n if (tbodyrow.querySelectorAll(\"td\").length !== 0 || tbodyrow.classList.contains(\"first-row\")) break;\n thead.appendChild(tbodyrow);\n }\n return thead;\n}", "function getThatTable(dataTable) {\n\n // Clears the body of the table.\n d3.select(\"tbody\").selectAll(\"tr\").remove();\n\n //for each loop to build the table.\n dataTable.forEach((row) => {\n\n // variable to build the entrie. Starts by selecting tbody and appending tr.\n var tableRowData = d3.select(\"tbody\").append(\"tr\");\n\n //Creates an object and for each of the values in row, appendnd a td with the txt of that row.\n Object.values(row).forEach(value => tableRowData.append(\"td\").text(`${value}`));\n });\n}", "function _fnGetUniqueThs ( nThead )\n\t\t{\n\t\t\tvar nTrs = nThead.getElementsByTagName('tr');\n\t\t\t\n\t\t\t/* Nice simple case */\n\t\t\tif ( nTrs.length == 1 )\n\t\t\t{\n\t\t\t\treturn nTrs[0].getElementsByTagName('th');\n\t\t\t}\n\t\t\t\n\t\t\t/* Otherwise we need to figure out the layout array to get the nodes */\n\t\t\tvar aLayout = [], aReturn = [];\n\t\t\tvar ROWSPAN = 2, COLSPAN = 3;\n\t\t\tvar i, j, k, iLen, jLen, iColumnShifted;\n\t\t\tvar fnShiftCol = function ( a, i, j ) {\n\t\t\t\twhile ( typeof a[i][j] != 'undefined' ) {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\treturn j;\n\t\t\t};\n\t\t\tvar fnAddRow = function ( i ) {\n\t\t\t\tif ( typeof aLayout[i] == 'undefined' ) {\n\t\t\t\t\taLayout[i] = [];\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t/* Calculate a layout array */\n\t\t\tfor ( i=0, iLen=nTrs.length ; i<iLen ; i++ )\n\t\t\t{\n\t\t\t\tfnAddRow( i );\n\t\t\t\tvar iColumn = 0;\n\t\t\t\tvar nTds = nTrs[i].getElementsByTagName('th');\n\t\t\t\t\n\t\t\t\tfor ( j=0, jLen=nTds.length ; j<jLen ; j++ )\n\t\t\t\t{\n\t\t\t\t\tvar iColspan = nTds[j].getAttribute('colspan') * 1;\n\t\t\t\t\tvar iRowspan = nTds[j].getAttribute('rowspan') * 1;\n\t\t\t\t\t\n\t\t\t\t\tif ( !iColspan || iColspan===0 || iColspan===1 )\n\t\t\t\t\t{\n\t\t\t\t\t\tiColumnShifted = fnShiftCol( aLayout, i, iColumn );\n\t\t\t\t\t\taLayout[i][iColumnShifted] = nTds[j];\n\t\t\t\t\t\tif ( iRowspan || iRowspan===0 || iRowspan===1 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor ( k=1 ; k<iRowspan ; k++ )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfnAddRow( i+k );\n\t\t\t\t\t\t\t\taLayout[i+k][iColumnShifted] = ROWSPAN;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tiColumn++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tiColumnShifted = fnShiftCol( aLayout, i, iColumn );\n\t\t\t\t\t\tfor ( k=0 ; k<iColspan ; k++ )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taLayout[i][iColumnShifted+k] = COLSPAN;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tiColumn += iColspan;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Convert the layout array into a node array\n\t\t\t * Note the use of aLayout[0] in the outloop, we want the outer loop to occur the same\n\t\t\t * number of times as there are columns. Unusual having nested loops this way around\n\t\t\t * but is what we need here.\n\t\t\t */\n\t\t\tfor ( i=0, iLen=aLayout[0].length ; i<iLen ; i++ )\n\t\t\t{\n\t\t\t\tfor ( j=0, jLen=aLayout.length ; j<jLen ; j++ )\n\t\t\t\t{\n\t\t\t\t\tif ( typeof aLayout[j][i] == 'object' )\n\t\t\t\t\t{\n\t\t\t\t\t\taReturn.push( aLayout[j][i] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn aReturn;\n\t\t}", "function _fnGetUniqueThs ( nThead )\n\t\t{\n\t\t\tvar nTrs = nThead.getElementsByTagName('tr');\n\t\t\t\n\t\t\t/* Nice simple case */\n\t\t\tif ( nTrs.length == 1 )\n\t\t\t{\n\t\t\t\treturn nTrs[0].getElementsByTagName('th');\n\t\t\t}\n\t\t\t\n\t\t\t/* Otherwise we need to figure out the layout array to get the nodes */\n\t\t\tvar aLayout = [], aReturn = [];\n\t\t\tvar ROWSPAN = 2, COLSPAN = 3, TDELEM = 4;\n\t\t\tvar i, j, k, iLen, jLen, iColumnShifted;\n\t\t\tvar fnShiftCol = function ( a, i, j ) {\n\t\t\t\twhile ( typeof a[i][j] != 'undefined' ) {\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\treturn j;\n\t\t\t};\n\t\t\tvar fnAddRow = function ( i ) {\n\t\t\t\tif ( typeof aLayout[i] == 'undefined' ) {\n\t\t\t\t\taLayout[i] = [];\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t/* Calculate a layout array */\n\t\t\tfor ( i=0, iLen=nTrs.length ; i<iLen ; i++ )\n\t\t\t{\n\t\t\t\tfnAddRow( i );\n\t\t\t\tvar iColumn = 0;\n\t\t\t\tvar nTds = [];\n\t\t\t\t\n\t\t\t\tfor ( j=0, jLen=nTrs[i].childNodes.length ; j<jLen ; j++ )\n\t\t\t\t{\n\t\t\t\t\tif ( nTrs[i].childNodes[j].nodeName.toUpperCase() == \"TD\" ||\n\t\t\t\t\t nTrs[i].childNodes[j].nodeName.toUpperCase() == \"TH\" )\n\t\t\t\t\t{\n\t\t\t\t\t\tnTds.push( nTrs[i].childNodes[j] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor ( j=0, jLen=nTds.length ; j<jLen ; j++ )\n\t\t\t\t{\n\t\t\t\t\tvar iColspan = nTds[j].getAttribute('colspan') * 1;\n\t\t\t\t\tvar iRowspan = nTds[j].getAttribute('rowspan') * 1;\n\t\t\t\t\t\n\t\t\t\t\tif ( !iColspan || iColspan===0 || iColspan===1 )\n\t\t\t\t\t{\n\t\t\t\t\t\tiColumnShifted = fnShiftCol( aLayout, i, iColumn );\n\t\t\t\t\t\taLayout[i][iColumnShifted] = (nTds[j].nodeName.toUpperCase()==\"TD\") ? TDELEM : nTds[j];\n\t\t\t\t\t\tif ( iRowspan || iRowspan===0 || iRowspan===1 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfor ( k=1 ; k<iRowspan ; k++ )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfnAddRow( i+k );\n\t\t\t\t\t\t\t\taLayout[i+k][iColumnShifted] = ROWSPAN;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tiColumn++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tiColumnShifted = fnShiftCol( aLayout, i, iColumn );\n\t\t\t\t\t\tfor ( k=0 ; k<iColspan ; k++ )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taLayout[i][iColumnShifted+k] = COLSPAN;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tiColumn += iColspan;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Convert the layout array into a node array */\n\t\t\tfor ( i=0, iLen=aLayout.length ; i<iLen ; i++ )\n\t\t\t{\n\t\t\t\tfor ( j=0, jLen=aLayout[i].length ; j<jLen ; j++ )\n\t\t\t\t{\n\t\t\t\t\tif ( typeof aLayout[i][j] == 'object' && typeof aReturn[j] == 'undefined' )\n\t\t\t\t\t{\n\t\t\t\t\t\taReturn[j] = aLayout[i][j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn aReturn;\n\t\t}", "function parseHeadTable(data, start) {\n var head = {};\n var p = new parse.Parser(data, start);\n head.version = p.parseVersion();\n head.fontRevision = Math.round(p.parseFixed() * 1000) / 1000;\n head.checkSumAdjustment = p.parseULong();\n head.magicNumber = p.parseULong();\n check.argument(head.magicNumber === 0x5F0F3CF5, 'Font header has wrong magic number.');\n head.flags = p.parseUShort();\n head.unitsPerEm = p.parseUShort();\n head.created = p.parseLongDateTime();\n head.modified = p.parseLongDateTime();\n head.xMin = p.parseShort();\n head.yMin = p.parseShort();\n head.xMax = p.parseShort();\n head.yMax = p.parseShort();\n head.macStyle = p.parseUShort();\n head.lowestRecPPEM = p.parseUShort();\n head.fontDirectionHint = p.parseShort();\n head.indexToLocFormat = p.parseShort();\n head.glyphDataFormat = p.parseShort();\n return head;\n}", "function table_getHeaderFromID(id)\r\n {\r\n if (document.getElementById(id+'_header') != null) return document.getElementById(id+'_header');\r\n else\r\n return document.getElementById(id)\r\n }", "function appendHeaders(data){\n var body = document.querySelector('.table-container')\n var table = document.createElement('div')\n var tr = document.createElement('ul')\n tr.classList.add('table-header')\n for (var key in data) {\n if (data.hasOwnProperty(key)) {\n if (key == 'symbol'){\n continue;\n }\n else{\n if(key.toString().indexOf('_usd') !== -1){\n key= key.replace('_usd', '')\n }\n if(key.toString().indexOf('percent_') !== -1){\n key= key.replace('percent_', '')\n }\n\n var th = document.createElement('li');\n\n th.setAttribute('key_value', key.toString());\n var text = key.toString().replace(/_/g, ' ');\n var span = document.createElement('span')\n span.innerText = text;\n th.append(span)\n tr.append(th);\n\n body.append(tr)\n }\n\n }\n }\n }", "function extractRowBlueprint(headers) {\n const recursiveLeafExtractor = (node) => {\n let dataAccessorList = []\n for (let item of node) {\n if (item.columns) {\n dataAccessorList = [\n ...dataAccessorList,\n ...recursiveLeafExtractor(item.columns)\n ]\n } else {\n dataAccessorList = [\n ...dataAccessorList,\n item.accessor\n ]\n }\n }\n return dataAccessorList\n }\n\n return recursiveLeafExtractor(headers)\n}", "function parseHeadTable(data, start) {\n var head = {};\n var p = new parse.Parser(data, start);\n head.version = p.parseVersion();\n head.fontRevision = Math.round(p.parseFixed() * 1000) / 1000;\n head.checkSumAdjustment = p.parseULong();\n head.magicNumber = p.parseULong();\n check.argument(head.magicNumber === 0x5F0F3CF5, 'Font header has wrong magic number.');\n head.flags = p.parseUShort();\n head.unitsPerEm = p.parseUShort();\n head.created = p.parseLongDateTime();\n head.modified = p.parseLongDateTime();\n head.xMin = p.parseShort();\n head.yMin = p.parseShort();\n head.xMax = p.parseShort();\n head.yMax = p.parseShort();\n head.macStyle = p.parseUShort();\n head.lowestRecPPEM = p.parseUShort();\n head.fontDirectionHint = p.parseShort();\n head.indexToLocFormat = p.parseShort(); // 50\n head.glyphDataFormat = p.parseShort();\n return head;\n}", "renderTableHeader() {\n if (this.state.userData.length) {\n let header = Object.keys(this.state.userData[0])\n let myArray = header.filter(function (obj) {\n return obj !== 'id' && obj !== 'name';\n })\n return myArray.map((key, index) => {\n return <th key={index}>{key.toUpperCase()}</th>\n })\n }\n }", "function retrieveData(dataObject) {\n\n\ttry {\n\t\tconst extracted_value = Object.values(dataObject)[0];\n\t\n\t\tconst table = document.getElementById(\"data-table\");\n\t\tconst thead = document.createElement(\"thead\");\n\t\tconst tr1 = document.createElement(\"tr\");\n\t\tconst th1 = document.createElement(\"th\");\n\t\tconst th2 = document.createElement(\"th\");\n\t\n\t\tth1.innerHTML = \"Field\";\n\t\tth2.innerHTML = \"Description\";\n\t\ttr1.appendChild(th1);\n\t\ttr1.appendChild(th2);\n\t\n\t\tthead.appendChild(tr1);\n\t\ttable.appendChild(thead);\n\t\n\t\tconst tbody = document.createElement(\"tbody\");\n\t\n\t\tfor (const [key, value] of Object.entries(extracted_value)) {\n\t\t\tconst tr = document.createElement(\"tr\");\n\t\t\tconst td1 = document.createElement(\"td\");\n\t\t\tconst td2 = document.createElement(\"td\");\n\t\t\ttd1.innerHTML = `${key}`;\n\t\t\ttd2.innerHTML = `${value}`;\n\t\t\ttr.appendChild(td1);\n\t\t\ttr.appendChild(td2);\n\t\t\ttbody.appendChild(tr);\n\t\t}\n\t\n\t\ttable.appendChild(tbody);\n\t} catch (error) {\n\t\tconsole.log(error);\n\t}\n}", "function getTableRowsByDate(opdateth)\n{\n if (!opdateth) { return [] }\n return $(\"#tbl tr\").filter(function() {\n return this.cells[OPDATE].innerHTML === opdateth;\n })\n}", "function header() {\n let tableHeadingRow = document.createElement('tr');\n table.append(tableHeadingRow);\n let tableHeading = document.createElement('th');\n tableHeadingRow.append(tableHeading);\n\n for (let i = 0; i<hours.length; i++){\n tableHeading = document.createElement('th');\n tableHeadingRow.append(tableHeading);\n tableHeading.textContent = ' '+hours[i]+ ' ';\n }\n // last heading\n let tableHeading2 = document.createElement('th');\n tableHeadingRow.append(tableHeading2);\n tableHeading2.textContent = 'Daily Location Total';\n}", "function grabHeadersAndHighlightRelatedCells(element){\n\t\tvar table = $(element).closest(\"table\");\n\t\tif($(table).attr(\"role\") != \"presentation\"){\n\t\t\t//TODO: does role=none matter?\n\t\t\tvar rowIndex = $(element).attr('data-tANDI508-rowIndex');\n\t\t\tvar rowMember = $(element).attr(\"data-tANDI508-rowMember\");\n\t\t\tvar colIndex = $(element).attr('data-tANDI508-colIndex');\n\t\t\tvar colMember = $(element).attr(\"data-tANDI508-colMember\");\n\t\t\tvar headers = $.trim($(element).attr(\"headers\"));\n\t\t\tvar idsArray, referencedId, referencedElement;\n\t\t\t//Find Related <th> cells\n\t\t\t//==HEADERS/ID MODE==//\n\t\t\tif((mode == \"headers/id mode\") && headers){\n\t\t\t\tidsArray = headers.split(\" \");\n\t\t\t\tfor (var x=0;x<idsArray.length;x++){\n\t\t\t\t\t//Can the id be found somewhere on the page?\n\t\t\t\t\treferencedId = andiUtility.escapeCssCharactersInId(idsArray[x]);\n\t\t\t\t\treferencedElement = $(\"#\"+referencedId);\n\t\t\t\t\t\n\t\t\t\t\tif($(referencedElement).html() !== undefined){\n\t\t\t\t\t\tif($(referencedElement).is(\"th\") || $(referencedElement).is(\"td\")){\n\t\t\t\t\t\t\tassociatedThText += andiUtility.formatForHtml(andiUtility.getTextOfTree($(referencedElement))) + tANDI.associatedThDelimeter;\n\t\t\t\t\t\t\t$(referencedElement).addClass(\"tANDI508-highlight\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//==SCOPE MODE==//\n\t\t\telse if(mode == \"scope mode\"){\n\t\t\t\tif($(element).is(\"td\")){\n\t\t\t\t\t//Highlight associating <th> for this <td>\n\t\t\t\t\t$(table).find(\"th.ANDI508-element\").filter(':visible').each(function(){\n\t\t\t\t\t\t//get associated th from col\n\t\t\t\t\t\tif(index_greaterThan(rowIndex, $(this).attr(\"data-tANDI508-rowIndex\"))\n\t\t\t\t\t\t&& index_match(colIndex, $(this).attr(\"data-tANDI508-colIndex\"))\n\t\t\t\t\t\t&& !index_match(rowIndex, $(this).attr(\"data-tANDI508-rowIndex\")))\n\t\t\t\t\t\t{//add associatedThText and highlight the cell from whence it came\n\t\t\t\t\t\t\t$(this).addClass(\"tANDI508-highlight\");\n\t\t\t\t\t\t\tassociatedThText += andiUtility.formatForHtml(andiUtility.getTextOfTree($(this))) + tANDI.associatedThDelimeter;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//get associated th from row\n\t\t\t\t\t\tif(index_greaterThan(colIndex, $(this).attr(\"data-tANDI508-colIndex\"))\n\t\t\t\t\t\t&& index_match(rowIndex, $(this).attr(\"data-tANDI508-rowIndex\"))\n\t\t\t\t\t\t&& !index_match(colIndex, $(this).attr(\"data-tANDI508-colIndex\")))\n\t\t\t\t\t\t{//add associatedThText\n\t\t\t\t\t\t\t$(this).addClass(\"tANDI508-highlight\");\n\t\t\t\t\t\t\tassociatedThText += andiUtility.formatForHtml(andiUtility.getTextOfTree($(this))) + tANDI.associatedThDelimeter;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Highlight associating <th> and <td> for this th\n\t\t\tif($(element).is(\"th\")){\n\t\t\t\tvar scope = $(element).attr(\"scope\");\n\t\t\t\tvar id = $(element).attr(\"id\");\n\t\t\t\tif((mode == \"scope mode\")){\n\t\t\t\t\t$(table).find(\"th.ANDI508-element,td.ANDI508-element\").filter(':visible').each(function(){\n\t\t\t\t\t\tif(scope){\n\t\t\t\t\t\t\t//th has scope\n\t\t\t\t\t\t\tif((scope == \"col\" || scope == \"colgroup\")\n\t\t\t\t\t\t\t\t&& !index_greaterThan(rowIndex, $(this).attr(\"data-tANDI508-rowIndex\"))\n\t\t\t\t\t\t\t\t&& index_match(colIndex,$(this).attr(\"data-tANDI508-colIndex\")))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//alert(rowIndex+\" \"+$(this).attr(\"data-tANDI508-rowIndex\"));\n\t\t\t\t\t\t\t\t$(this).addClass(\"tANDI508-highlight\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if((scope == \"row\" || scope == \"rowgroup\")\n\t\t\t\t\t\t\t\t&& !index_greaterThan(colIndex, $(this).attr(\"data-tANDI508-colIndex\"))\n\t\t\t\t\t\t\t\t&& index_match(rowIndex,$(this).attr(\"data-tANDI508-rowIndex\")))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$(this).addClass(\"tANDI508-highlight\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t//th has no scope\n\t\t\t\t\t\t\t//**Assumed associations - this is where it gets sketchy**\n\t\t\t\t\t\t\tif($(this).is(\"td\")){\n\t\t\t\t\t\t\t\tif(index_match(colIndex, $(this).attr(\"data-tANDI508-colIndex\")) || index_match(rowIndex,$(this).attr(\"data-tANDI508-rowIndex\")))\n\t\t\t\t\t\t\t\t\t$(this).addClass(\"tANDI508-highlight\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//No scope assumptions relating to other th\n\t\t\t\t\t\t\telse if($(this).is(\"th\")){\n\t\t\t\t\t\t\t\tif(rowIndex == \"0\"\n\t\t\t\t\t\t\t\t\t&& index_match(colIndex,$(this).attr(\"data-tANDI508-colIndex\"))\n\t\t\t\t\t\t\t\t\t&& !index_greaterThan(rowIndex, $(this).attr(\"data-tANDI508-rowIndex\")))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$(this).addClass(\"tANDI508-highlight\");\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}\n\t\t\t\telse if((mode == \"headers/id mode\") && id){//might have headers attributes pointing to this <th>\n\t\t\t\t\t$(table).find(\"th.ANDI508-element,td.ANDI508-element\").filter(':visible').each(function(){\n\t\t\t\t\t\theaders = $(this).attr(\"headers\");\n\t\t\t\t\t\tif(headers){\n\t\t\t\t\t\t\tidsArray = headers.split(\" \");\n\t\t\t\t\t\t\tfor (var x=0;x<idsArray.length;x++){\n\t\t\t\t\t\t\t\tif(id==idsArray[x]){\n\t\t\t\t\t\t\t\t\t$(this).addClass(\"tANDI508-highlight\");\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}\n\t\t\t}\n\t\t}\n\t}", "function renderTableHead() {\n\tconst thead = document.querySelector('thead');\n\tconst tr = document.createElement('tr');\n\tcreateTdOrTh('', tr);\n\tcreateTdOrTh('', tr);\n\tcreateTdOrTh('Product', tr);\n\tcreateTdOrTh('Price', tr);\n\tcreateTdOrTh('Quantity', tr);\n\tcreateTdOrTh('Total', tr);\n\tthead.appendChild(tr);\n}", "function summaryTableHeader(header) {\n var newRow = header.insertRow(-1);\n newRow.className = \"tablesorter-no-sort\";\n var cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 1;\n cell.innerHTML = \"Requests\";\n newRow.appendChild(cell);\n\n cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 3;\n cell.innerHTML = \"Executions\";\n newRow.appendChild(cell);\n\n cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 6;\n cell.innerHTML = \"Response Times (ms)\";\n newRow.appendChild(cell);\n\n cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 1;\n cell.innerHTML = \"Throughput\";\n newRow.appendChild(cell);\n\n cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 2;\n cell.innerHTML = \"Network (KB/sec)\";\n newRow.appendChild(cell);\n}", "function summaryTableHeader(header) {\n var newRow = header.insertRow(-1);\n newRow.className = \"tablesorter-no-sort\";\n var cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 1;\n cell.innerHTML = \"Requests\";\n newRow.appendChild(cell);\n\n cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 3;\n cell.innerHTML = \"Executions\";\n newRow.appendChild(cell);\n\n cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 6;\n cell.innerHTML = \"Response Times (ms)\";\n newRow.appendChild(cell);\n\n cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 1;\n cell.innerHTML = \"Throughput\";\n newRow.appendChild(cell);\n\n cell = document.createElement('th');\n cell.setAttribute(\"data-sorter\", false);\n cell.colSpan = 2;\n cell.innerHTML = \"Network (KB/sec)\";\n newRow.appendChild(cell);\n}" ]
[ "0.6755725", "0.6660549", "0.6615501", "0.6600753", "0.653872", "0.6427637", "0.6416424", "0.6361329", "0.63338953", "0.63226104", "0.63095945", "0.6306508", "0.6280461", "0.627503", "0.62679166", "0.6257289", "0.62274337", "0.6186178", "0.617706", "0.6145965", "0.6140219", "0.61368775", "0.611872", "0.6118412", "0.6109719", "0.6101898", "0.60967946", "0.60958236", "0.6082615", "0.60806", "0.6078014", "0.6043136", "0.6036107", "0.602666", "0.60198927", "0.601441", "0.6013575", "0.60046387", "0.59771585", "0.59645766", "0.59338737", "0.5896294", "0.5893781", "0.5888863", "0.5888693", "0.5882972", "0.5865637", "0.585944", "0.58591324", "0.58474827", "0.58445656", "0.5843696", "0.58399117", "0.58387685", "0.58375436", "0.5836057", "0.58348674", "0.582947", "0.58155066", "0.5807425", "0.58073825", "0.5805449", "0.58019614", "0.57988656", "0.5790981", "0.57902104", "0.5788324", "0.57850665", "0.5781147", "0.5780553", "0.57721686", "0.5771967", "0.5771189", "0.5767321", "0.57667696", "0.5765697", "0.576186", "0.5754529", "0.5747556", "0.57469296", "0.57464176", "0.57334614", "0.5732197", "0.57297325", "0.5723137", "0.57229483", "0.57228905", "0.57158524", "0.5711492", "0.5705314", "0.5691909", "0.5691272", "0.5678371", "0.5671029", "0.5665882", "0.56635255", "0.56633025", "0.56622136", "0.56521386", "0.56521386" ]
0.70123553
0
Load extra spellings/cases from
function loadAdditionalIso2Mappings () { const variants = { 'Kuna Yala': 'Guna Yala', 'Comarca Guna Yala': 'Guna Yala', 'Darien': 'Darién', 'Emberá': 'Embera Wounaan', 'Ngäbe-Buglé': 'Ngöbe-Buglé', 'Comarca Ngäbe Buglé': 'Ngöbe-Buglé' } Object.keys(variants).forEach(k => { provinceIso2[k] = provinceIso2[variants[k]] }) Object.keys(provinceIso2).forEach(k => { provinceIso2[k.toUpperCase()] = provinceIso2[k] }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadVocabulary() {\n gun.get('wordbook-extension').get('unkonw-words').map().on(function(data){\n if(data.status != 'unknow')return;\n\n UI(data);\n })\n}", "function loadWords() {\n clearWordsContainerFirst();\n var randomWords = shuffle(basicEnglishWords);\n generateWordsInsideContainer(randomWords);\n reloadCurrentLetter();\n setupWordsParentHeight(visibleLines);\n}", "function _handleShowSpellcheck() {\n\n //lazy load the init for the dictionary\n if(!dict) {\n console.log(\"Loading dictionary.\");\n dict = new BJSpell(require.toUrl(\"./BJSpell/en_US.js\"), function() {\n _handleSpellcheck();\n });\n } else {\n _handleSpellcheck();\n }\n }", "function loadLangs() \n{\n\tif (jsonObject.phraseArray.length)\n\t{\n\t\tchrome.storage.sync.get({\n\t\t\tfrom: 'en',\n\t\t\tto: 'es',\n\t\t}, function(items) {\n\t\t\tjsonObject.fromLang = items.from;\n\t\t\tjsonObject.toLang = items.to;\n\t\t\tgetTranslation();\n\t\t});\n\t}\n}", "function loadDansWords(){\n\n ajaxCallback = putDansWordsInDictionary;\n\tajaxRequest(\"danswordlist.txt\");\n\n}", "function loadBonusPhrases() {\n var bonusPhrases = {};\n try {\n var bonuses = fs.readFileSync(__dirname + config.bonusPhraseFilePath, 'utf8');\n } catch (err) {\n throw err;\n }\n\n var phrases = bonuses.split( \"\\n\" );\n for (var i = 0; i < phrases.length; i++) {\n bonusPhrases[ phrases[i] ] = true;\n }\n console.log(\"Bonus Phrases successfully loaded\");\n}", "if (IsMisspelled(_currentWord)) {\r\n // add _currentWord to _misspellings\r\n _misspellings.Append(strdup(_currentWord));\r\n }", "constructor() {\n this._wordList = ['3dhubs', 'marvin', 'print', 'filament', 'order', 'layer']\n this._usedWords = []\n }", "handleAddToDictionary(contextElement) {\n let contextItem = (!isNullOrUndefined(contextElement)) ? contextElement : this.retriveText();\n let retrievedText = this.manageSpecialCharacters(contextItem.text, undefined, true);\n // tslint:disable-next-line:max-line-length\n /* tslint:disable:no-any */\n this.CallSpellChecker(this.languageID, retrievedText, false, false, true).then((data) => {\n this.viewer.triggerSpellCheck = true;\n this.removeErrorsFromCollection(contextItem);\n this.ignoreAllItems.push(retrievedText);\n this.viewer.owner.editor.reLayout(this.viewer.selection, true);\n this.viewer.triggerSpellCheck = false;\n });\n }", "function findWords() {\n var dictionary = fs.readFileSync('complete.txt', 'utf8');\n\n return dictionary.split('\\n').filter(filterWords);\n }", "function loadingWords() {\n $.ajax({\n type: \"GET\",\n dataType: 'json',\n url: wordsFile,\n //cache: true,\n error: function () {\n console.error('[EasyPage] Error loading data file @data.json');\n }\n }).done(function (data) {\n //\n if (data != undefined) {\n wordsJson = data;\n startReplacing();\n }\n });\n }", "function loadVocab(file) {\n $.get(file, function (data) {\n var lines = data.split('\\n');\n for (index in lines) {\n words.push(new Word(lines[index]));\n }\n\n $('#correctCount').html(correctCount);\n $('#wrongCount').html(words.length - correctCount);\n $('#totalCount, #total2Count').html(words.length);\n\n //Start the test\n order === ORDERED ? nextWrd() : rndWord();\n });\n}", "loadPhrases(friendo) {\n this.phrasebook.populate(friendo)\n }", "function getIgnoreKeywords_allWords_A_Words() {\n\t\treturn [\n\t\t\t'ab',\t// latin, as in \"ab novo\"\n\t\t\t'abideth',\n\t\t\t'able',\n\t\t\t'above',\n\t\t\t'about',\n\t\t\t'absolutely',\n\t\t\t'according',\n\t\t\t'accordingly',\t\n\t\t\t'achieving',\n\t\t\t'across',\n\t\t\t'actual',\n\t\t\t'actually',\t\n\t\t\t'admit',\n\t\t\t'admittably',\n\t\t\t'admitted',\n\t\t\t'affect',\n\t\t\t'affecting',\n\t\t\t'affects',\n\t\t\t'aforesaid',\n\t\t\t'after',\t\n\t\t\t'afterall',\n\t\t\t'afterward',\n\t\t\t'afterwards',\n\t\t\t'again',\n\t\t\t'against',\n\t\t\t'ago',\n\t\t\t'agree',\t\n\t\t\t'agreed',\n\t\t\t'agrees',\n\t\t\t'agreeing',\n\t\t\t'ah',\n\t\t\t'ahh',\n\t\t\t'ahhh',\t\n\t\t\t'ahhhh',\n\t\t\t'ahhhhh',\n\t\t\t'ahhhhhh',\n\t\t\t'ahhhhhhh',\n\t\t\t'ahead',\n\t\t\t'al', // \"et al\"\n\t\t\t'alas',\n\t\t\t'albeit',\n\t\t\t'alike',\n\t\t\t'all',\n\t\t\t'allage',\n\t\t\t'alleged',\n\t\t\t'allegedly',\n\t\t\t'allow',\n\t\t\t'almost',\n\t\t\t'aloft',\n\t\t\t'along',\n\t\t\t'already',\n\t\t\t'also',\n\t\t\t'although',\n\t\t\t'altogether',\n\t\t\t'always',\n\t\t\t'am',\t\t\n\t\t\t'amid',\n\t\t\t'amidst',\n\t\t\t'among',\n\t\t\t'amongst',\t\n\t\t\t'amount',\n\t\t\t'amounting',\n\t\t\t'amounts',\n\t\t\t'amuck',\n\t\t\t'an',\n\t\t\t'and',\n\t\t\t'another',\n\t\t\t'any',\n\t\t\t'anyhow',\n\t\t\t'anymore',\n\t\t\t'anyway',\n\t\t\t'apart',\n\t\t\t'apparent',\n\t\t\t'apparently',\n\t\t\t'appear',\n\t\t\t'appeared',\n\t\t\t'appearing',\n\t\t\t'appears',\n\t\t\t'apply',\n\t\t\t'are',\n\t\t\t'around',\n\t\t\t'as',\n\t\t\t'aside',\n\t\t\t'ask',\n\t\t\t'aspect',\n\t\t\t'aspects',\n\t\t\t'ass\\'n', // \"assistant\"\n\t\t\t'assume',\n\t\t\t'assumed',\n\t\t\t'assumes',\n\t\t\t'assuming',\n\t\t\t'at',\n\t\t\t'attributable',\n\t\t\t'au', // \"au contraire\"\n\t\t\t'augers', // \"augers well\"\n\t\t\t'aught',\n\t\t\t'away',\n\t\t\t'awhile',\n\t\t\t'aye',\n\t\t];\n\t}", "async function loadKeywords(ctx) {\n var results = [];\n if(ctx.isConnected && ctx.dynamicKeywordSources.length > 0) {\n console.debug(\"Extracting keywords from sources...\");\n await Promise.all(\n ctx.dynamicKeywordSources.map( async (src) => {\n var values = await extractKeywords(src);\n results.extend(values);\n })\n );\n }\n if(results.length < 1) // use static data in case of no network connectivity\n {\n console.debug(\"Using static keywords.\");\n results = \"API,API design,API documentation,testing\".split(\",\");\n }\n // truncate to keywords that meet Twitter track/filter requirements\n results = results.unique()\n .filter(function(it) { return it.length <= 60; })\n .slice(0, 400)\n .sort();\n\n return results;\n}", "function pickWords()\n{\n\tfor (var i = 0; i < textNodes.length; i++)\n\t{\n\t\t// splits string into array of word strings\n\t\tvar stringArray = textNodes[i].split(\" \");\n\n\t\tvar j = Math.floor(Math.random() * 15) + 2;\n\t\twhile (j < stringArray.length)\n\t\t{\n\t\t\t// TODO: make translation snippets randomly varied in word length, don't cut across sentences\n\t\t\t// \t\t at some point, make snippets logical phrases for better translation\n\t\t\t// \t\t (e.g. \"and then he said\" instead of \"cat and then\")\n\t\t\tvar phraseToTranslate = stringArray[j] + \" \" + stringArray[j+1] + \" \" + stringArray[j+2];\n\t\t\tif (validate(phraseToTranslate))\n\t\t\t{\n\t\t\t\tvar item = {\n\t\t\t\t\tuntranslated : phraseToTranslate,\n\t\t\t\t\ttranslated : \"\"\n\t\t\t\t};\n\n\t\t\t\tjsonObject.phraseArray.push(item);\n\t\t\t}\n\n\t\t\tj += Math.floor(Math.random() * 90) + 80;\n\t\t}\n\t}\n\n\tvar arrLength = jsonObject.phraseArray.length.toString();\n\tchrome.runtime.sendMessage({ type: \"setBadge\", badgeText : arrLength });\n\n\tloadLangs();\n}", "function addCharDefs() {\n let stats = {\n simp: { count: 0, fixed: 0 },\n trad: { count: 0, fixed: 0 }\n };\n ['simp', 'trad'].forEach(lang => {\n Object.keys(dict[lang]).forEach(word => {\n if (word.length !== 2) throw Error('bad length for ' + word);\n for (let i = 0; i < word.length; i++) {\n const ch = word[i];\n if (!dict.chars[ch]) {\n dict.chars[ch] = repairCharDef(ch, stats[lang]);\n stats[lang].count++;\n }\n }\n });\n });\n console.log(\"CharDefs:\", JSON.stringify(stats)\n .replace(/(^{|\"|}$)/g, '')\n .replace(/([:,])/g, \"$1 \"));\n return dict;\n}", "function preload(){\n rawtext = loadStrings(\"data/Tale_of_Two_cities.txt\");\n}", "function loadLocale(data, callback) {\n\n\t\t\t\t\t\t\t\td3.json(\"./data/letters.json\",function(d) {\n\t\t\t\t\t\t\t\t\tbst.query(d).find(data, callback)\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\treturn this;\n\n\t\t\t\t\t\t\t}", "function loadDictionary() {\n try { \n var wordData = fs.readFileSync(__dirname + config.dictFilePath, 'utf8');\n } catch (err) {\n throw err;\n }\n\n var words = wordData.split( \"\\r\\n\" );\n for (var i = 0; i < words.length; i++) {\n dict[ words[i] ] = true;\n }\n console.log(\"Dictionary loaded successfully\");\n}", "async addToDictionary(text) {\n // NB: Same deal as getCorrectionsForMisspelling.\n if (!isMac) return;\n if (!this.currentSpellchecker) return;\n\n this.currentSpellchecker.add(text);\n }", "function initDict()\n{\n\t// init variables\n\tcurrwid = -1;\n\tdictSize = 0;\n\tdbWordList = [];\n\tdbDefList = [];\n\t\n\t\n\t// get raw database\n\tvar rawDatabase, splarray, currLine, pos1, pos2, pos3, end1, end2, end3, i;\n\tif(lang===\"ro\") {rawDatabase = rawDatabaseRO;}\n\tif(lang===\"en\") {rawDatabase = rawDatabaseEN;}\n\tif(lang===\"de\") {rawDatabase = rawDatabaseDE;}\n\t\n\t// read database, process lines and store words and definitions\n\tsplarray = rawDatabase.split(\"ENDLINE\");\n\tfor(i=0; i<splarray.length; i++)\n\t{\n\t\tcurrLine = splarray[i];\n\t\tif(currLine.length > 15)\n\t\t{\n\t\t\tpos1 = currLine.indexOf(\"<<\",0);\n\t\t\tpos2 = currLine.indexOf(\"<<\",2 + pos1);\n\t\t\tpos3 = currLine.indexOf(\"<<\",2 + pos2);\n\t\t\tend1 = currLine.indexOf(\">>\",0);\n\t\t\tend2 = currLine.indexOf(\">>\",2 + end1);\n\t\t\tend3 = currLine.indexOf(\">>\",2 + end2);\n\t\t\t\n\t\t\tif( (pos1 !== -1) && (pos2 !== -1) && (pos3 !== -1) && (end1 !== -1) && (end2 !== -1) && (end3 !== -1) )\n\t\t\t{\t\n\t\t\t\tdbReadable[dictSize] = currLine.substring( 2 + pos1, end1);\n\t\t\t\tdbWordList[dictSize] = currLine.substring( 2 + pos2, end2);\n\t\t\t\tdbDefList[dictSize] = currLine.substring( 2 + pos3, end3);\n\t\t\t\tdictSize = 1 + dictSize;\t\t\n\t\t\t}\n\t\t}\n\t} \n\t\n\tif(dictSize === 0)\n\t{\n\t\twindow.open('UnderConstruction.html?lang='+lang, '_self');\n\t}\n\t\n\tdoDictionarySearch(auxparam);\n}", "addWords(obj) {\n let keys = Object.keys(obj)\n for (let i = 0; i < keys.length; i++) {\n let word = keys[i].toLowerCase()\n addLex.addWord(word, obj[keys[i]], this.words)\n // do some fancier stuff\n addLex.addMore(word, obj[keys[i]], this)\n }\n }", "function getIgnoreKeywords_allWords_C_Words() {\n\t\treturn [\n\t\t\t'call',\n\t\t\t'called',\n\t\t\t'came',\n\t\t\t'can',\n\t\t\t'can\\'t',\n\t\t\t'cannot',\n\t\t\t'case',\n\t\t\t'certain',\n\t\t\t'certainly',\n\t\t\t'cetera', // LATIN\n\t\t\t'chapter',\n\t\t\t'chiefly',\n\t\t\t'circumstances',\n\t\t\t'claim',\n\t\t\t'claims',\n\t\t\t'clearly',\n\t\t\t'closely',\n\t\t\t'closer',\n\t\t\t'co',\t// i.e., company\n\t\t\t'come',\n\t\t\t'comes',\n\t\t\t'cometh',\n\t\t\t'coming',\n\t\t\t'commit',\n\t\t\t'committed',\n\t\t\t'committing',\n\t\t\t'commits',\n\t\t\t'completely',\n\t\t\t'concerned',\n\t\t\t'concerns',\n\t\t\t'concerning',\n\t\t\t'condition',\n\t\t\t'consequently',\t\n\t\t\t'consider',\n\t\t\t'considerable',\n\t\t\t'considered',\n\t\t\t'considering',\n\t\t\t'consist',\n\t\t\t'consisted',\n\t\t\t'consisting',\n\t\t\t'consists',\n\t\t\t'constantly',\n\t\t\t'constitute',\n\t\t\t'constituted',\n\t\t\t'constitutes',\n\t\t\t'constituting',\n\t\t\t'contain',\n\t\t\t'contained',\n\t\t\t'contains',\n\t\t\t'containing',\n\t\t\t'continually',\n\t\t\t'continuously',\n\t\t\t'contraire', // \"au contraire\"\n\t\t\t'contrarily',\n\t\t\t'contrary',\n\t\t\t'could',\n\t\t\t'couldn\\'t',\n\t\t\t'culpa', // \"mea culpa\"\n\t\t\t'currently',\n\t\t];\n\t}", "function getIgnoreKeywords_allWords_L_Words() {\n\t\treturn [\n\t\t\t'lack',\t\n\t\t\t'lacks',\n\t\t\t'lacking',\n\t\t\t'largely',\n\t\t\t'larger',\n\t\t\t'largest',\n\t\t\t'last',\t\n\t\t\t'lastly',\n\t\t\t'latest',\n\t\t\t'latter',\n\t\t\t'la', // french\n\t\t\t'lat',\t// latitude\n\t\t\t'late',\n\t\t\t'lately',\n\t\t\t'later',\n\t\t\t'le', // french\n\t\t\t'least',\n\t\t\t'leave',\n\t\t\t'les', // french\n\t\t\t'less',\n\t\t\t'lest',\n\t\t\t'let',\n\t\t\t'let\\'s',\n\t\t\t'lets',\n\t\t\t'like',\n\t\t\t'likely',\n\t\t\t'likes',\n\t\t\t'likewise',\n\t\t\t'literally',\n\t\t\t'little',\n\t\t\t'lo',\n\t\t\t'lo\\'',\n\t\t\t'long',\n\t\t\t'longer',\n\t\t\t'longest',\n\t\t\t'longing',\n\t\t\t'look',\n\t\t\t'looked',\n\t\t\t'looking',\n\t\t\t'looks',\n\t\t\t'ltd',\t\n\t\t\t'luckily',\n\t\t];\n\t}", "function loadAddtitionalDictionaries() {\n if (Array.isArray(extraDictNames)) {\n async.eachSeries(extraDictNames, function (dict, flow) {\n var dicFile = path.join(extraDictLocation, dict + '.dic');\n fs.readFile(dicFile, function (err, data) {\n if (err) {\n discourse.error(err);\n } else {\n dictionary.addDictionary(data);\n discourse.log('Laoded dictonary ' + dict);\n }\n flow(err);\n });\n }, function () {\n discourse.log('Al dictonaries laoded');\n });\n }\n}", "function loadStartingWords() {\n for (var i = 0; i < 5; i++) {\n currentWords.splice(i, 0, words[i]);\n words.splice(i, 1);\n wordIndex = i;\n }\n}", "addToDictionary(text) {\n var _this7 = this;\n\n return _asyncToGenerator(function* () {\n // NB: Same deal as getCorrectionsForMisspelling.\n if (!isMac) return;\n if (!_this7.currentSpellchecker) return;\n\n _this7.currentSpellchecker.add(text);\n })();\n }", "function LangMap() {}", "function LangMap() {}", "function loadDefinitions(term) {\r\n $(\"#lexical\").load(\"/tunico/omegadefinition/\".concat(term), function() {\r\n $(\"#lexical\").scrollView();\r\n $.get(\"/tunico/lexvo/\".concat(term), function(lexvo) {\r\n $(\"#lexical\").before(lexvo);\r\n });\r\n \r\n // click on translation link of definition \r\n $(\"#definitions\").find(\"a\").click(function(defevent){\r\n // prevent scrolling to top of page\r\n defevent.preventDefault();\r\n defevent.stopPropagation();\r\n // adapt styling\r\n $(defevent.target).parent().addClass(\"bg-info\");\r\n $(defevent.target).parent().siblings().removeClass(\"bg-info\");\r\n var dmid = defevent.target.id;\r\n // append div if it doesn't exist\r\n if ($(\"#translations\").length == 0) {\r\n $(\"#lexical\").append(\"<div id='translations'></div>\");\r\n }\r\n // get translations from OmegaWiki\r\n $(\"#translations\").load(\"/tunico/omegatransl/\".concat(dmid), function() {\r\n });\r\n // scroll automatically down\r\n $(\"#translations\").scrollView();\r\n });\r\n });\r\n}", "function getIgnoreKeywords_allWords_S_Words() {\n\t\treturn [\n\t\t\t'said',\n\t\t\t'sake',\n\t\t\t'same',\n\t\t\t'saw',\n\t\t\t'say',\n\t\t\t'saying',\n\t\t\t'says',\t\n\t\t\t'scarcely',\n\t\t\t'see',\n\t\t\t'seeing',\n\t\t\t'seen',\n\t\t\t'sees',\n\t\t\t'seek',\n\t\t\t'seeked',\n\t\t\t'seeks',\n\t\t\t'seem',\t\n\t\t\t'seemed',\n\t\t\t'seeming',\n\t\t\t'seemingly',\n\t\t\t'seems',\n\t\t\t'seldom',\n\t\t\t'send',\n\t\t\t'sending',\n\t\t\t'sends',\n\t\t\t'sent',\n\t\t\t'separate',\n\t\t\t'separated',\n\t\t\t'separates',\n\t\t\t'separating',\n\t\t\t'set',\n\t\t\t'several',\n\t\t\t'shall',\n\t\t\t'shalt',\n\t\t\t'she',\n\t\t\t'she\\'d',\n\t\t\t'she\\'ll',\n\t\t\t'she\\'s',\n\t\t\t'sheer',\n\t\t\t'shew',\n\t\t\t'short',\n\t\t\t'shorter',\n\t\t\t'shortest',\n\t\t\t'shortly',\n\t\t\t'should',\n\t\t\t'show',\t\n\t\t\t'shows',\n\t\t\t'sic',\t\n\t\t\t'side',\t\n\t\t\t'sides',\n\t\t\t'siding',\n\t\t\t'signifies',\n\t\t\t'simply',\n\t\t\t'simultaneosly',\n\t\t\t'since',\n\t\t\t'sincerely',\n\t\t\t'slightly',\n\t\t\t'slowly',\n\t\t\t'so',\n\t\t\t'so-called',\n\t\t\t'socalled',\n\t\t\t'some',\n\t\t\t'somebody',\n\t\t\t'someone',\n\t\t\t'somewhat',\n\t\t\t'soon',\n\t\t\t'some',\n\t\t\t'somehow',\n\t\t\t'something',\n\t\t\t'sometimes',\n\t\t\t'sorts',\n\t\t\t'sought',\n\t\t\t'specially',\n\t\t\t'st',\n\t\t\t'stated',\n\t\t\t'steadily',\n\t\t\t'still',\n\t\t\t'stop',\n\t\t\t'strictly',\n\t\t\t'sturm', // german, 'sturm und drang'\n\t\t\t'subject',\n\t\t\t'such',\n\t\t\t'sudden',\n\t\t\t'suddenly',\n\t\t\t'suppose',\n\t\t\t'supposed',\n\t\t\t'supposedly',\n\t\t\t'supposes',\n\t\t\t'supposing',\n\t\t\t'sure',\n\t\t\t'surely',\n\t\t];\n\t}", "function loadWord (rawWord) {\n var self = this, line;\n word = rawWord.toLowerCase().replace(/\\s/,'');\n line = grid.loadWord(word);\n\n if (!line) { return false; }\n words[word] = {\n line: line,\n found: false\n };\n // add word to words board\n dom.words.append('<li data-word=\"'+word+'\">'+rawWord+'</li>');\n return true;\n }", "async addToDictionary(text) {\n if (!this.currentSpellchecker) return;\n this.currentSpellchecker.unloadDictionary(this.currentSpellcheckerLanguage);\n var fs = require('fs');\n fs.appendFileSync(dictionaryPath + this.currentSpellcheckerLanguage + '.dic-diff', '\\n' + text);\n concatenate.sync([dictionaryPath + this.currentSpellcheckerLanguage + '.dic', dictionaryPath + this.currentSpellcheckerLanguage + '.dic-diff'], dictionaryPath + this.currentSpellcheckerLanguage + '.dic-complete');\n this.currentSpellchecker.loadDictionary(this.currentSpellcheckerLanguage, dictionaryPath + this.currentSpellcheckerLanguage + '.dic-complete', dictionaryPath + this.currentSpellcheckerLanguage + '.aff');\n setTimeout(async () => this.currentSpellchecker.switchDictionary(this.currentSpellcheckerLanguage), 1000);\n }", "function applyLatinLigatures() {\r\n\t const script = 'latn';\r\n\t if (!this.featuresTags.hasOwnProperty(script)) return;\r\n\t const tags = this.featuresTags[script];\r\n\t if (tags.indexOf('liga') === -1) return;\r\n\t checkGlyphIndexStatus.call(this);\r\n\t const ranges = this.tokenizer.getContextRanges('latinWord');\r\n\t ranges.forEach(range => {\r\n\t latinLigature.call(this, range);\r\n\t });\r\n\t}", "function words(x)\n{\n\tswitch (x)\n { \n case 1:\n var word = new Array(\"balte\",\"table\",\"hat\",\"tab\",\"belt\",\"lab\",\"eat\",\"tea\",\"ate\",\"tale\",\"bale\",\"let\",\"bet\",\"teal\",\"late\",\"beat\", \"bleat\", \"bat\", \"ale\", \"at\", \"a\", \"be\", \"bate\", \"ab\");\n break;\t\t\n case 2:\n var word = new Array(\"atwre\",\"water\",\"wet\",\"wear\",\"tear\",\"war\",\"ret\",\"rate\",\"eat\",\"ate\",\"tea\",\"awe\",\"raw\",\"rat\",\"wart\",\"art\",\"tar\", \"ware\", \"at\", \"a\", \"are\");\n break;\n case 3:\n var word = new Array(\"dclaen\",\"can\",\"cane\", \"caned\", \"and\",\"clan\",\"lane\",\"lean\",\"lead\",\"lend\",\"land\",\"den\",\"dean\",\"dane\",\"dance\",\"lace\",\"lance\",\"clean\",\"deal\",\"ale\",\"dale\",\"candle\",\"clad\", \"clade\", \"lad\", \"ace\", \"an\", \"a\", \"ad\", \"aced\");\n break;\n case 4:\n var word = new Array(\"aepinlar\",\"air\",\"airplane\",\"plane\",\"plan\",\"lane\",\"lean\",\"pane\", \"panel\", \"ear\", \"near\", \"nap\", \"nape\", \"lair\", \"pen\", \"pan\", \"ape\", \"leap\", \"ale\", \"peal\", \"nap\", \"rap\", \"par\", \"pare\", \"pale\", \"are\", \"rain\", \"rail\", \"ail\", \"pail\", \"nail\", \"nil\", \"pair\", \"ran\", \"pin\", \"pine\", \"line\", \"nip\", \"rip\", \"ripe\", \"lip\", \"earn\", \"learn\", \"ire\", \"planar\", \"an\", \"a\", \"i\", \"pea\", \"pear\", \"pearl\", \"earl\", \"linear\", \"alp\", \"alpine\", \"pain\", \"renal\", \"anal\", \"pal\", \"lap\", \"reap\", \"rape\", \"plain\", \"rein\", \"pineal\", \"praline\", \"paean\", \"pie\", \"pier\", \"prana\", \"real\", \"in\");\n break;\n case 5:\n var word = new Array(\"redykboa\",\"keyboard\",\"key\",\"board\",\"bored\",\"bore\",\"bark\",\"dark\",\"dork\",\"oar\",\"boar\",\"ark\",\"dare\",\"bare\",\"bared\",\"are\",\"red\",\"rod\",\"road\",\"bode\",\"rode\",\"ode\",\"bread\", \"bready\", \"read\", \"bead\", \"beady\", \"bred\", \"break\", \"drey\", \"day\", \"boy\", \"broke\", \"brake\", \"braked\", \"rake\", \"raked\", \"bake\", \"ear\", \"dear\", \"bear\", \"dye\", \"dyer\", \"doer\", \"oak\", \"boa\", \"doe\", \"okay\", \"okayed\", \"dab\", \"bade\", \"ade\", \"drake\", \"bard\", \"yard\", \"year\", \"beak\", \"beaky\", \"beard\", \"bad\", \"bed\", \"bay\", \"bayed\", \"by\", \"bye\", \"a\", \"drab\", \"bray\", \"brayed\", \"ab\", \"ready\", \"baker\", \"bakery\", \"baked\", \"ado\", \"adore\", \"aye\", \"ray\", \"rayed\", \"bar\", \"rye\");\n break;\n case 6:\n var word = new Array(\"balrve\", \"verbal\", \"abler\", \"baler\", \"blare\", \"blear\", \"brave\", \"laver\", \"ravel\", \"velar\", \"able\", \"aver\", \"bale\", \"bare\", \"bear\", \"blae\", \"brae\", \"earl\", \"lave\", \"lear\", \"leva\", \"rale\", \"rave\", \"real\", \"vale\", \"veal\", \"vela\", \"vera\", \"verb\", \"ale\", \"are\", \"arb\", \"ave\", \"bar\", \"bra\", \"ear\", \"era\", \"lab\", \"ab\", \"be\", \"a\");\n break;\n case 7:\n var word = new Array(\"dcroe\", \"credo\", \"coder\", \"cored\", \"decor\", \"code\", \"coed\", \"cord\", \"core\", \"cred\", \"deco\", \"doer\", \"dore\", \"redo\", \"rode\", \"cod\", \"doc\", \"doe\", \"ode\", \"orc\", \"ore\", \"rec\", \"red\", \"rod\", \"roe\", \"do\", \"or\");\n break;\n case 8:\n var word = new Array(\"nksis\", \"sinks\", \"skins\", \"inks\", \"kins\", \"kiss\", \"sink\", \"sins\", \"skin\", \"skis\", \"ink\", \"ins\", \"kin\", \"sin\", \"sis\", \"ski\", \"in\", \"is\", \"ki\", \"i\");\n break;\n\t}\n\treturn word;\n}", "function getIgnoreKeywords_allWords_H_Words() {\n\t\treturn [\n\t\t\t'ha',\n\t\t\t'had',\n\t\t\t'hadn\\'t',\n\t\t\t'half',\n\t\t\t'happen',\n\t\t\t'happened',\n\t\t\t'happens',\n\t\t\t'hardly',\n\t\t\t'has',\n\t\t\t'hast',\t// \"hast thou toketh?\"\n\t\t\t'hath',\n\t\t\t'have',\n\t\t\t'haven\\'t',\n\t\t\t'having',\n\t\t\t'he',\n\t\t\t'he\\'d',\n\t\t\t'he\\'ll',\n\t\t\t'he\\'s',\n\t\t\t'held',\n\t\t\t'hello',\n\t\t\t'hence',\n\t\t\t'henceforth',\n\t\t\t'her',\n\t\t\t'here',\n\t\t\t'here\\'s',\n\t\t\t'hereafter',\n\t\t\t'hereby',\n\t\t\t'herein',\n\t\t\t'heretofore',\n\t\t\t'hers',\n\t\t\t'herself',\n\t\t\t'highly',\n\t\t\t'him',\n\t\t\t'himself',\n\t\t\t'his',\n\t\t\t'hither',\n\t\t\t'hitherto',\n\t\t\t'hold',\n\t\t\t'holding',\n\t\t\t'how',\n\t\t\t'how\\'s',\n\t\t\t'how\\'ll',\n\t\t\t'however',\n\t\t\t'hundreds',\n\t\t];\n\t}", "function loadKittens() {}", "async init() {\n this.wordSlug = this.router.params.word;\n this.requiresLogin = false;\n this.originalWords = null;\n this.nonPublishedOnly = false;\n\n this.wordsPerLine = window.screen.width <= 580 ? 1 : 2;\n\n if (!this.user.isLoggedIn()) {\n this.requiresLogin = true;\n }\n\n this.isLoading = true;\n\n try {\n let { record } = await this.englishService.get(this.wordSlug);\n\n this.word = record;\n\n this.defaultSort = 'Chronologically';\n\n this.meta.setTitle(`${this.word.word} - English As A Foreigner`);\n\n if (this.word.image) {\n this.meta.setImage(this.word.image);\n }\n \n if (this.word.description) {\n this.meta.setDescription(this.word.description);\n }\n\n if (this.word.words) {\n this.sortBy(this.defaultSort);\n }\n } catch (e) {\n if (e.statusCode == 400) {\n return this.router.navigateTo('/404');\n }\n }\n\n this.isLoading = false;\n }", "function addToVars() {\n wordLengths.push(word.length);\n txtInfo.nWords++;\n word = word.toLowerCase();\n if (uniqueWords.indexOf(word) === -1) {\n uniqueWords.push(word);\n }\n if (isNaN(wordDict[word])) {\n wordDict[word] = 1;\n }\n else {\n wordDict[word]++;\n }\n word = \"\";\n }", "function dictStartWith(word) {\n\tword = word.toLowerCase();\n\tconst checkList = [];\n\tObject.entries(dict).forEach(([originalEnglish, logograms]) => {\n\t\tif (!originalEnglish.startsWith(word)) return;\n\t\tcheckList.push(...logograms);\n\t});\n\treturn checkList;\n}", "function getIgnoreKeywords_allWords_V_Words() {\n\t\treturn [\n\t\t\t'variably',\n\t\t\t'various',\n\t\t\t'verily',\n\t\t\t'very',\n\t\t\t'view',\t\n\t\t\t'views',\n\t\t\t'virtually',\n\t\t\t'viz',\n\t\t];\n\t}", "function preload() {\n inconsolata = loadFont('data/inconsolata.otf');\n DIN = loadFont('data/DIN.otf');\n coldera=loadFont('data/Coldera.otf');\n}", "__init13() {this.languages = new Map()}", "function assembleDictionary() {\n const dictionaries = [\n require('./dict/original_words.json').cleanWords,\n require('./dict/adjs.json').adjs,\n require('./dict/nouns.json').nouns,\n require('./dict/personal_nouns.json').personalNouns,\n ];\n let dictionary = [].concat.apply([], dictionaries);\n\n if (process.env.HUBOT_DOMAIN_ME_SFW == null) {\n const nsfwDictionaries = [\n require('./dict/original_words.json').nsfwWords,\n require('./dict/states_of_drunkenness.json').states_of_drunkenness\n ];\n\n dictionary = [].concat.apply(dictionary, nsfwDictionaries);\n }\n\n return dictionary;\n}", "function continuaDictat ()\r\n{\r\n this.wordActual = this.getNewWord ();\r\n this.actual = \"\";\r\n this.init ();\r\n}", "function getIgnoreKeywords_allWords_T_Words() {\n\t\treturn [\n\t\t\t'take',\t\n\t\t\t'taken',\n\t\t\t'takes',\n\t\t\t'taking',\n\t\t\t'technically',\n\t\t\t'tell',\n\t\t\t'telling',\n\t\t\t'tellingly',\n\t\t\t'tells',\n\t\t\t'temporarily',\n\t\t\t'tend',\n\t\t\t'tends',\n\t\t\t'than',\n\t\t\t'that',\n\t\t\t'that\\'s',\n\t\t\t'the',\n\t\t\t'thee',\t\n\t\t\t'their',\n\t\t\t'theirs',\n\t\t\t'them',\n\t\t\t'themselves',\n\t\t\t'then',\n\t\t\t'thence',\n\t\t\t'thenceforth',\n\t\t\t'there',\n\t\t\t'there\\'ll',\n\t\t\t'there\\'s',\n\t\t\t'thereabouts',\n\t\t\t'thereafter',\n\t\t\t'thereby',\n\t\t\t'therefor',\n\t\t\t'therefore',\n\t\t\t'therefrom',\n\t\t\t'therein',\n\t\t\t'thereof',\n\t\t\t'thereover',\n\t\t\t'these',\n\t\t\t'they',\n\t\t\t'they\\'d',\n\t\t\t'they\\'ll',\n\t\t\t'they\\'re',\n\t\t\t'they\\'ve',\n\t\t\t'thine',\n\t\t\t'thing',\n\t\t\t'things',\n\t\t\t'this',\n\t\t\t'thither',\n\t\t\t'thorough',\n\t\t\t'thoroughly',\n\t\t\t'those',\n\t\t\t'thou',\n\t\t\t'though',\n\t\t\t'thousands',\n\t\t\t'three',\n\t\t\t'through',\n\t\t\t'throughout',\n\t\t\t'thus',\n\t\t\t'thy',\n\t\t\t'thyself',\n\t\t\t'time',\n\t\t\t'tis',\n\t\t\t'to',\n\t\t\t'today',\n\t\t\t'together',\n\t\t\t'told',\n\t\t\t'tonight',\n\t\t\t'too',\n\t\t\t'took',\n\t\t\t'topic',\n\t\t\t'total',\n\t\t\t'totalled',\n\t\t\t'totally',\n\t\t\t'toward',\n\t\t\t'towards',\n\t\t\t'tried',\n\t\t\t'true',\t\n\t\t\t'truly',\n\t\t\t'try',\n\t\t\t'trying',\n\t\t\t'turn',\n\t\t\t'turned',\n\t\t\t'turning',\n\t\t\t'turns',\n\t\t\t'two',\n\t\t];\n\t}", "function getIgnoreKeywords_allWords_D_Words() {\n\t\treturn [\n\t\t\t'd\\'you',\n\t\t\t'daily',\n\t\t\t'daresay',\n\t\t\t'day',\n\t\t\t'de',\t // new, \"De facto\", \"De Jure\", Latin, etc.\n\t\t\t'dear',\n\t\t\t'declare',\n\t\t\t'declared',\n\t\t\t'definitely',\n\t\t\t'deg',\t// degree\n\t\t\t'describe',\n\t\t\t'describes',\n\t\t\t'despite',\n\t\t\t'determine',\n\t\t\t'determined',\n\t\t\t'determines',\n\t\t\t'determining',\n\t\t\t'did',\n\t\t\t'didn\\'t',\n\t\t\t'do',\n\t\t\t'does',\n\t\t\t'doesn\\'t',\n\t\t\t'doing',\n\t\t\t'done',\n\t\t\t'don\\'t',\n\t\t\t'dost',\t// dost thou toketh?\n\t\t\t'doth',\n\t\t\t'doubtless',\n\t\t\t'doubtlessly',\n\t\t\t'down',\n\t\t\t'downright',\n\t\t\t'dozen',\n\t\t\t'duly',\t\n\t\t\t'during',\n\t\t];\n\t}", "function parseDictZidian(fname) {\n let dictTxt = fs.readFileSync(fname)\n let dictArray = json5.parse(dictTxt)\n let wordMap = {}\n for(let i=0;i<dictArray.length;i++){\n let word = new CantoneseWord()\n word.simple = dictArray[i]\n i++\n word.tradiction = dictArray[i]\n i++\n word.yp = dictArray[i]\n wordMap[word.simple] = word\n wordMap[word.tradiction] = word\n }\n return wordMap\n}", "function loadLang(){\n $.get(\"data/lang.hsv?v=5\", function(response){\n //Remove any carriage returns\n response = response.replace(/\\r/g, '');\n //Split on newlines;\n let lines = response.split(\"\\n\");\n //Go through each line and parse into lang file\n lines.forEach(function(line){\n //Split everything by tabs\n let parts = line.split(\"#\");\n //Ignore the header line\n if(parts[0] === 'NAME') return;\n //Now parse each part\n langDB[parts[0]] = {\n nl: parts[1],\n en: parts[2]\n }\n });\n });\n}", "function letterCheck() {\n unknown.forEach((x, i) => {\n if (guess.localeCompare(unknown[i], \"en\", { sensitivity: \"base\" }) == 0) {\n underscores[i] = unknown[i];\n }\n document.getElementById(\"mysteryWord\").innerHTML = underscores.join(\"\");\n });\n}", "function extendWord() {\n // Make sure spooky made it to the expected url\n if (this.getCurrentUrl() !== url) {\n this.emit('error', 'DICTIONARY: Error resolving word url');\n return;\n }\n\n // Extend word with part of speech, definition, and sentence\n var result = {};\n result.word = this.fetchText('#headword.headword:first-child h1').replace(/[0-9]/g, '');\n result.partOfSpeech = this.fetchText('#headword.headword:first-child .main-fl em');\n result.sentence = this.fetchText('.example-sentences li:first-child').replace(/<|>/g,'');\n result.url = this.getCurrentUrl();\n \n result.definition = this.fetchText('#headword.headword:first-child p:first-child').replace(/:|-/g, '') ||\n this.evaluate(function() {\n return document.querySelector('.ssens').textContent.replace(/:|-/g, '');\n });\n\n // Make sure all the necessary properties were found \n if(!result.word) {\n this.emit('error', 'DICTIONARY: Error getting word from merriam-webster');\n } else if(!result.partOfSpeech) {\n this.emit('error', 'DICTIONARY: Error getting part of speech from merriam-webster');\n } else if(!result.definition) {\n this.emit('error', 'DICTIONARY: Error getting definition from merriam-webster');\n } else if(!result.sentence) {\n this.emit('info', 'DICTIONARY: No sentence found from merriam-webster');\n } else {\n // Pass result to node context\n this.emit('complete', result);\n }\n}", "setSpellChecking() {\r\n contextMenu({ showInspectElement: false });\r\n }", "function getIgnoreKeywords_allWords_R_Words() {\n\t\treturn [\n\t\t\t'rarely',\n\t\t\t'rather',\n\t\t\t'readily',\n\t\t\t'realize',\n\t\t\t'realized',\n\t\t\t'realizes',\n\t\t\t'realizing',\n\t\t\t'really',\n\t\t\t'recent',\n\t\t\t'recently',\n\t\t\t'recieved',\n\t\t\t'recieves',\n\t\t\t'recieving',\n\t\t\t'reckon',\n\t\t\t'reckoned',\n\t\t\t'regard',\n\t\t\t'regarded',\n\t\t\t'regarding',\n\t\t\t'regardless',\n\t\t\t'regardlessly',\n\t\t\t'regards',\n\t\t\t'relatively',\n\t\t\t'remain',\n\t\t\t'remained',\n\t\t\t'remaining',\n\t\t\t'remains',\n\t\t\t'remind',\n\t\t\t'requisite',\n\t\t\t'represents',\n\t\t\t'resulting',\n\t\t\t'rid',\n\t\t];\n\t}", "function getStopWords() {\n return [\"a\", \"able\", \"about\", \"across\", \"after\", \"all\", \"almost\", \"also\", \"am\", \"among\", \"an\", \"and\", \"any\", \"are\", \"as\", \"at\", \"be\", \"because\", \"been\", \"but\", \"by\", \"can\", \"cannot\", \"could\", \"dear\", \"did\", \"do\", \"does\", \"either\", \"else\", \"ever\", \"every\", \"for\", \"from\", \"get\", \"got\", \"had\", \"has\", \"have\", \"he\", \"her\", \"hers\", \"him\", \"his\", \"how\", \"however\", \"i\", \"if\", \"in\", \"into\", \"is\", \"it\", \"its\", \"just\", \"least\", \"let\", \"like\", \"likely\", \"may\", \"me\", \"might\", \"most\", \"must\", \"my\", \"neither\", \"no\", \"nor\", \"not\", \"of\", \"off\", \"often\", \"on\", \"only\", \"or\", \"other\", \"our\", \"own\", \"rather\", \"said\", \"say\", \"says\", \"she\", \"should\", \"since\", \"so\", \"some\", \"than\", \"that\", \"the\", \"their\", \"them\", \"then\", \"there\", \"these\", \"they\", \"this\", \"tis\", \"to\", \"too\", \"twas\", \"us\", \"wants\", \"was\", \"we\", \"were\", \"what\", \"when\", \"where\", \"which\", \"while\", \"who\", \"whom\", \"why\", \"will\", \"with\", \"would\", \"yet\", \"you\", \"your\", \"ain't\", \"aren't\", \"can't\", \"could've\", \"couldn't\", \"didn't\", \"doesn't\", \"don't\", \"hasn't\", \"he'd\", \"he'll\", \"he's\", \"how'd\", \"how'll\", \"how's\", \"i'd\", \"i'll\", \"i'm\", \"i've\", \"isn't\", \"it's\", \"might've\", \"mightn't\", \"must've\", \"mustn't\", \"shan't\", \"she'd\", \"she'll\", \"she's\", \"should've\", \"shouldn't\", \"that'll\", \"that's\", \"there's\", \"they'd\", \"they'll\", \"they're\", \"they've\", \"wasn't\", \"we'd\", \"we'll\", \"we're\", \"weren't\", \"what'd\", \"what's\", \"when'd\", \"when'll\", \"when's\", \"where'd\", \"where'll\", \"where's\", \"who'd\", \"who'll\", \"who's\", \"why'd\", \"why'll\", \"why's\", \"won't\", \"would've\", \"wouldn't\", \"you'd\", \"you'll\", \"you're\", \"you've\", \"pg\", \"http://www.gutenberg.com\", \"http://www.gutenberg.org\", \"http://www.gutenberg.net\"];\n}", "function loadE2BData() {\n $.getJSON(\"../../static/js/bird-bio-words.json\", function(data) {\n tertiaryE2BData = data.tertiary;\n });\n}", "loadPageDictionary() {\n const url = document.location.href;\n const dictionaryKey = `${url}.dictionary`;\n\n browser.storage.local.get(dictionaryKey).then(dictionary => {\n if (!dictionary[dictionaryKey] || dictionary[dictionaryKey].length === undefined) {\n this.log(`Dictionary not found`);\n return;\n }\n\n this.dictionary = dictionary[dictionaryKey];\n this.log(`Dictionary loaded (${this.dictionary.length} words)`);\n\n this.textManager.highlightWords(this.dictionary);\n });\n }", "function nextWord(ignoreall) {\r\n\tvar frm = document.fm1;\r\n\tvar sug = document.fm1.suggestions;\r\n\tvar sugidx = 0;\r\n\tvar newopt;\r\n\tvar isselected = 0;\r\n\r\n\t// push ignored word onto ingoredWords array\r\n\tif(ignoreall) {\r\n\t\tignoredWords[misps[wordindex].word] = 1;\r\n\t}\r\n\t\r\n\t// update the index of all words we have processed\r\n\t// This must be done to accomodate the replaceAll function.\r\n\tif(wordindex >= 0) {\r\n\t\tmisps[wordindex].start += offsetindex;\r\n\t\tmisps[wordindex].end += offsetindex;\r\n\t}\r\n\r\n\t// increment the counter for the array of misspelled words\r\n\twordindex++;\r\n\r\n\t// draw it and quit if there are no more misspelled words to evaluate\r\n\tif(misps.length <= wordindex) {\r\n\t\tiFrameBody.innerHTML = mispstr;\r\n\t\tiFrameBody.innerHTML = iFrameBody.innerHTML.replace(/_\\|_/g, '<br />');\r\n\r\n\t\tclearBox(sug);\r\n\t\talert('Spell checking is complete.');\r\n\t\tfrm.change.disabled\t\t= true;\r\n\t\tfrm.changeall.disabled\t= true;\r\n\t\tfrm.ignore.disabled\t\t= true;\r\n\t\tfrm.ignoreall.disabled\t= true;\r\n\r\n\t\t// put line feeds back\r\n\t\tmispstr = mispstr.replace(/_\\|_/g, '\\n');\r\n\r\n\t\t// get a handle to the field we need to re-populate\r\n\t\twindow.opener.document.forms[spell_formname][spell_fieldname].value = mispstr;\r\n\t\twindow.close();\r\n\t\treturn true;\r\n\t}\r\n\r\n\t// check to see if word is supposed to be ignored\r\n\tif(ignoredWords[misps[wordindex].word] == 1) {\r\n\t\tnextWord(false);\r\n\t\treturn;\r\n\t}\r\n\r\n\t// clear out the suggestions box\r\n\tclearBox(sug);\r\n\r\n\t// re-populate the suggestions box if there are any suggested spellings for the word\r\n\tif(misps[wordindex].suggestions.length) {\r\n\t\tfor(sugidx = 0; sugidx < misps[wordindex].suggestions.length; sugidx++) {\r\n\t\t\tif(sugidx == 0) {\r\n\t\t\t\tisselected = 1;\r\n\t\t\t} else {\r\n\t\t\t\tisselected = 0;\r\n\t\t\t}\r\n\t\t\tnewopt = new Option(misps[wordindex].suggestions[sugidx], misps[wordindex].suggestions[sugidx], 0, isselected); \r\n\t\t\tsug.options[sugidx] = newopt;\r\n\t\t\tif(isselected) {\r\n\t\t\t\tfrm.changeto.value = misps[wordindex].suggestions[sugidx];\r\n\t\t\t\tfrm.changeto.select();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\thilightWord();\r\n}", "_selectDictionary() {\n if (this._isRussian) {\n this._map = TRANSLITERATION_MAP_TO_ENGLISH;\n this._extendedMap = TRANSLITERATION_EXTENDED_MAP_TO_ENGLISH;\n } else if(this._isEnglish) {\n this._map = TRANSLITERATION_MAP_TO_RUSSIAN;\n this._extendedMap = TRANSLITERATION_EXTENDED_MAP_TO_RUSSIAN;\n }\n }", "function loadThesaurus() {\n $http.get('thesaurus@json').success(function(data) {\n $scope.thesaurus = data[0];\n }).error(function(data) {\n $rootScope.$broadcast('StatusUpdated', {\n title: $translate('thesaurusListError'),\n error: data,\n timeout: 0,\n type: 'danger'});\n });\n }", "function load()\r\n{\r\n\tk = 0;\r\n\tfor (i=0; i<entries.length; i++)\r\n\t{\r\n\t\tfor (j=0; j<entries.length; j++)\r\n\t\t{\r\n\t\t\tnames[k]=letters[i] + entries[j];\r\n\t\t\t//solution[k] = 0;\r\n\t\t\t\r\n\t\t\tk = k + 1;\r\n\t\t}\r\n\t}\r\n\treturn names;\r\n}", "function getIgnoreKeywords_allWords() {\n\t\tvar ignorekeywords = [];\n\t\t\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_symbolWords());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_numberWords());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_A_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_B_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_C_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_D_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_E_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_F_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_G_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_H_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_I_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_J_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_K_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_L_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_M_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_N_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_O_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_P_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_Q_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_R_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_S_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_T_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_U_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_V_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_W_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_X_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_Y_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_Z_Words());\n\t\tignorekeywords = ignorekeywords.concat(getIgnoreKeywords_allWords_nonEnglishWords());\n\t\t\n\t\treturn ignorekeywords;\n\t}", "function Speller() {\n // A map of words to the count of times they were encountered during training.\n this._nWords = {};\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}", "init(options) {\n super.init(options);\n this.words = new Map();\n }", "function indexword(word) {\n wordrl[word.word.toLowerCase()] = (wordrl[word.word.toLowerCase()] || 0) + 1;\n word.rhymekey.forEach(function(key, i) {\n var key_prefix = word.rhymekey.slice(0, i + 1).join(\" \");\n rhymecache[key_prefix] = rhymecache[key_prefix] || [];\n rhymecache[key_prefix].push(word);\n });\n syllcache[(word.off ? \"off\" : \"\") + word.syllcount] = syllcache[(word.off ? \"off\" : \"\") + word.syllcount] || [];\n syllcache[(word.off ? \"off\" : \"\") + word.syllcount].push(word);\n }", "function addLanguages() {}", "function getIgnoreKeywords_allWords_N_Words() {\n\t\treturn [\n\t\t\t'name',\t\n\t\t\t'namely',\n\t\t\t'naturally',\n\t\t\t'naught',\n\t\t\t'nay',\n\t\t\t'ne',\n\t\t\t'ne\\'er',\n\t\t\t'near',\t\n\t\t\t'nearest',\n\t\t\t'nearly',\n\t\t\t'necessarily',\n\t\t\t'needs',\n\t\t\t'neither',\n\t\t\t'never',\n\t\t\t'nevertheless',\n\t\t\t'new',\n\t\t\t'next',\n\t\t\t'nil',\n\t\t\t'no',\n\t\t\t'nobody',\n\t\t\t'non', // latin\n\t\t\t'none',\n\t\t\t'nonetheless',\n\t\t\t'nor',\t\n\t\t\t'normally',\n\t\t\t'not',\n\t\t\t'notably',\n\t\t\t'notwith',\n\t\t\t'notwithstanding',\n\t\t\t'nouveau', // french\n\t\t\t'nouveaux', // french\n\t\t\t'novo', // latin\n\t\t\t'now',\n\t\t\t'nowaday',\n\t\t\t'nowadays',\n\t\t];\n\t}", "function loadData(txtUrl) {\n var ajax = new XMLHttpRequest();\n ajax.onreadystatechange = function() {\n if (ajax.readyState === 4 && ajax.status === 200) {\n let engData = ajax.responseText;\n var data = engData.split(\"\\n\");\n if (txtUrl === \"../Data/spelling.txt\") {\n spellingFunc(data);\n } else {\n vocabFunc(data);\n }\n }\n }\n ajax.open(\"GET\", txtUrl, false);\n ajax.send();\n}", "function checkAll() {\n const input = sentence;\n hanspell.spellCheckByDAUM(input, HTTP_TIMEOUT, \n fixTypos, function() {\n hanspell.spellCheckByPNU(input, HTTP_TIMEOUT, \n fixTypos, writeFixedSentence);\n });\n}", "function loadWordsNoError(filename) {\n return fileReader_1.readLines(filename).catch(e => (logError(e), iterableIteratorLib_1.toIterableIterator([])));\n}", "function getIgnoreKeywords_allWords_F_Words() {\n\t\treturn [\n\t\t\t'faced',\n\t\t\t'faces',\n\t\t\t'facing',\n\t\t\t'fact',\n\t\t\t'facto',\n\t\t\t'facts',\n\t\t\t'fairly',\n\t\t\t'false',\n\t\t\t'far',\n\t\t\t'farther',\n\t\t\t'few',\n\t\t\t'finally',\n\t\t\t'find',\n\t\t\t'finds',\n\t\t\t'finding',\n\t\t\t'findings',\n\t\t\t'five',\n\t\t\t'former',\n\t\t\t'formerly',\n\t\t\t'found',\n\t\t\t'founded',\n\t\t\t'founds',\n\t\t\t'for',\n\t\t\t'force',\n\t\t\t'forefront',\n\t\t\t'foremost',\n\t\t\t'foreswearing',\n\t\t\t'former',\n\t\t\t'formidably',\n\t\t\t'forth', // \"go forth\"\n\t\t\t'forthwith',\n\t\t\t'four',\n\t\t\t'frankly',\n\t\t\t'frequently',\n\t\t\t'fro',\t// old timey \"to and fro\"\n\t\t\t'from',\n\t\t\t'full',\n\t\t\t'fully',\n\t\t\t'further',\n\t\t\t'furthermore',\n\t\t];\n\t}", "loadOpinionWords(filepath) {\n var opinionWords = {}\n var wordListLines = fs.readFileSync(filepath, \"utf8\").split(\"\\n\");\n wordListLines.forEach(function(line) {\n let splitLine = line.split(\",\");\n if (splitLine[0] in opinionWords) {\n return;\n }\n opinionWords[splitLine[0]] = parseInt(splitLine[1]);\n });\n console.log(\"Opinion words loaded\");\n return opinionWords;\n }", "async load (fileName) {\n let obj = null;\n if (fileName.includes('.gz')) {\n obj = JSON.parse(zlib.gunzipSync(await fs.promises.readFile(fileName)));\n } else {\n obj = JSON.parse(await fs.promises.readFile(fileName));\n }\n\n this._isOptimized = true;\n this._strings = obj.d;\n this._index = obj.t;\n\n for (let [ idx, str ] of Object.entries(this._strings)) {\n this._dictionary[`${str}`] = idx;\n }\n }", "loadWord() {\n\t\tthis.PlayerService.save(this.player)\n\t\t.then(result => {\n\t\t\tthis.WordsService.words()\n\t\t\t.then(response => {\n\t\t\t\tthis.words = response.data;\n\t\t\t\tthis.stateGame = \"game\";\n\t\t\t\tlet word = this.randomWords();\n\t\t\t\tthis.buildWord(word);\n\t\t\t})\n\t\t});\n\t}", "unpackWords(lex) {\n let tags = Object.keys(lex)\n for (let i = 0; i < tags.length; i++) {\n let words = Object.keys(unpack(lex[tags[i]]))\n for (let w = 0; w < words.length; w++) {\n addLex.addWord(words[w], tags[i], this.words)\n // do some fancier stuff\n addLex.addMore(words[w], tags[i], this)\n }\n }\n }", "static get wordsMap() {\n return {\n 0: { word: \"Zero\" },\n 1: { word: \"One\" },\n 2: { word: \"Two\" },\n 3: { word: \"Three\" },\n 4: { word: \"Four\" },\n 5: { word: \"Five\" },\n 6: { word: \"Six\" },\n 7: { word: \"Seven\" },\n 8: { word: \"Eight\" },\n 9: { word: \"Nine\" },\n 10: { word: \"Ten\" },\n 11: { word: \"Eleven\" },\n 12: { word: \"Twelve\" },\n 13: { word: \"Thirteen\" },\n 14: { word: \"Fourteen\" },\n 15: { word: \"Fifteen\" },\n 16: { word: \"Sixteen\" },\n 17: { word: \"Seventeen\" },\n 18: { word: \"Eighteen\" },\n 19: { word: \"Nineteen\" },\n 20: { word: \"Twenty\" },\n 30: { word: \"Thirty\" },\n 40: { word: \"Fourty\" },\n 50: { word: \"Fifty\" },\n 60: { word: \"Sixty\" },\n 70: { word: \"Seventy\" },\n 80: { word: \"Eighty\" },\n 90: { word: \"Ninty\" },\n 100: { word: \"Hundred\", isCountable: true },\n 1000: { word: \"Thousand\", isCountable: true },\n 100000: { word: \"Lakh\", isCountable: true },\n 10000000: { word: \"Crore\", isCountable: true }\n };\n }", "function sampleStrings() {\n return {\n 'Add Latin 1': 'HARFBUZZ FTW',\n 'Add Latin 2': 'I used to be a coder like you until I took an ARROW in the KNEE!',\n 'Add Latin 3': 'All their equipment and instruments are alive.',\n 'Add Latin 4': 'It was going to be a lonely trip back.',\n 'Add Cyrillic 1': 'Развернувшееся зрелище и впрямь было грандиозным.',\n 'Add Cyrillic 2': 'Я дивився на шторм – неймовірно красивий і жахаючий.',\n 'Add Vietnamese 1': 'Vật thể giống một mảng cỏ màu tím, rộng năm foot vuông, đang di chuyển trên cát về phía họ. Khi nó đến gần, anh thấy không phải là cỏ; không có lá mà chỉ là chùm rễ màu tím. Chùm rễ đang xoay tròn như những nan hoa của bánh xe không vành.',\n 'Add Vietnamese 2': 'Đó là hành trình tuyệt vời. Tôi gặp nhiều người tôi quý mến ngay từ đầu nhưng cũng có người tôi không muốn gặp lại; họ đều phải bảo vệ Redoubt. Ở mọi nơi tôi đặt chân tới, chúng tôi đi nhiều và có rất nhiều người để gặp nhưng thời gian thì có hạn.',\n 'Add Japanese 1': '各部位を正確に作るには時間がかかるので、当初の意図とは異なるが、巨大な人体を作ることにした。高さは約 8 フィートで、これに釣り合う体格だ。これを決断し、数か月にわたって材料を集め整理した後、作業を開始した。',\n 'Add Japanese 2': '5 平方フィート程度の紫色の草むらのようなものが、砂地を横切ってこちらに向かってきた。近くから見ると草ではないようだった。葉はなく紫色の根だけがある。その根が回転し、小さな草の集まりがそれぞれ縁のない車輪のようだった。'\n };\n }", "function preload() {\r\n result = loadStrings('assets/characteridle.txt');\r\n runresult = loadStrings('assets/characterrun.txt');\r\n runresultleft = loadStrings('assets/characterrunleft.txt');\r\n jumpresult = loadStrings('assets/characterjump.txt');\r\n // obstactles = loadStrings('assets/static.txt');\r\n}", "_getWords() {\n // Try to get it from localStorage\n let words = localStorage.getItem(\"enlighten_words_\" + this.language);\n if (words && words.length > 0) {\n this.words = JSON.parse(words);\n this._updateMatches();\n }\n // Fetch from server (even if we found something in localStorage)\n this._ajaxGet().then(\n (response) => {\n this.words = JSON.parse(response).data;\n localStorage.setItem(\"enlighten_words_\" + this.language, JSON.stringify(this.words));\n this._updateMatches();\n this.updated = true;\n this._executeQue();\n }\n );\n }", "function addData(word){\n if(word == null || word == \"\" || word == undefined){\n return;\n }\n var data = localData_get('new');\n\n \n var k=data;\n var word_low=word.toLowerCase().trim();\n if(k.includes(word_low)){\n return;\n }\n k.push(word_low);\n localData_set('new',k);\n loadData();\n \n \n}", "function getIgnoreKeywords_allWords_Z_Words() {\n\t\treturn [\n\t\t];\n\t}", "function getIgnoreKeywords_allWords_U_Words() {\n\t\treturn [\n\t\t\t'ultimately',\n\t\t\t'unable',\n\t\t\t'unconsciously',\n\t\t\t'undeniably',\n\t\t\t'under',\n\t\t\t'underlying',\n\t\t\t'undoubtedly',\n\t\t\t'unduly',\n\t\t\t'unfortunately',\n\t\t\t'unless',\n\t\t\t'unlike',\n\t\t\t'unlikely',\n\t\t\t'unlimitedly',\n\t\t\t'unspeakably',\n\t\t\t'utterly',\n\t\t\t'und', // german, \"sturm und drang\"\n\t\t\t'until',\n\t\t\t'unto',\n\t\t\t'up',\n\t\t\t'upon',\n\t\t\t'us',\n\t\t\t'use',\n\t\t\t'used',\n\t\t\t'using',\n\t\t\t'usually',\n\t\t\t'utmost',\n\t\t\t'utter',\n\t\t];\n\t}", "function getDictionary(){\n // Do a jQuery Ajax request for the text dictionary\n var ttimer = new STimer();\n ttimer.start(\"Processing Dictionary\");\n ttimer.check('Get JSON')\n $.getJSON( \"words.json\", function( words ) {\n ttimer.check('Process words');\n // And add them as properties to the dictionary and mapping lookups\n // This will allow for fast lookups later\n for ( var i = 0; i < words.length; i++ ) {\n options.dict[ words[i] ] = true;\n for(var j = 0; j < words[i].length; j++){\n options.mapped[words[i].substr(0,(words[i].length - j))] = true;\n }\n }\n ttimer.stop();\n ttimer.consoleResults();\n // The game would start after the dictionary was loaded\n });\n }", "function preload()\n{ \n suggestions = loadStrings(\"data/simplified_count.txt\");\n suggestions2 = loadStrings(\"data/simplified_count2.txt\");\n\n // Loads simulation images (arm, finger) -- DO NOT CHANGE!\n arm = loadImage(\"data/arm_watch.png\");\n fingerOcclusion = loadImage(\"data/finger.png\");\n \n // Loads the target phrases (DO NOT CHANGE!)\n phrases = loadStrings(\"data/phrases.txt\");\n \n // Loads UI elements for our basic keyboard\n space = loadImage(\"data/space.png\");\n backspace = loadImage(\"data/backspace.png\");\n}", "function getIgnoreKeywords_allWords_O_Words() {\n\t\treturn [\n\t\t\t'obstinately',\n\t\t\t'obviously',\n\t\t\t'occasion',\n\t\t\t'occasionally',\n\t\t\t'occassion',\n\t\t\t'occassionally',\n\t\t\t'occur',\n\t\t\t'occuring',\n\t\t\t'occurs',\n\t\t\t'occurred',\n\t\t\t'of',\n\t\t\t'off',\n\t\t\t'oft',\n\t\t\t'often',\n\t\t\t'oftener',\n\t\t\t'oh',\n\t\t\t'ol',\n\t\t\t'ole',\n\t\t\t'on',\n\t\t\t'once',\n\t\t\t'one',\n\t\t\t'one\\'s',\n\t\t\t'ones',\n\t\t\t'oneself',\n\t\t\t'only',\n\t\t\t'onto',\n\t\t\t'or',\n\t\t\t'ordinarily',\n\t\t\t'originally',\n\t\t\t'other',\n\t\t\t'others',\n\t\t\t'otherwise',\n\t\t\t'ought',\n\t\t\t'our',\n\t\t\t'ourselves',\n\t\t\t'out',\n\t\t\t'outright',\n\t\t\t'outside',\n\t\t\t'o\\'er',\n\t\t\t'over',\n\t\t\t'overlooks',\n\t\t\t'owe',\n\t\t\t'owed',\n\t\t\t'owes',\n\t\t\t'owing',\n\t\t\t'own',\n\t\t];\n\t}", "function getIgnoreKeywords_allWords_E_Words() {\n\t\treturn [\n\t\t\t'each',\t\n\t\t\t'earlier',\n\t\t\t'earlieriest',\n\t\t\t'early',\n\t\t\t'easily',\n\t\t\t'ect',\t\n\t\t\t'effect',\n\t\t\t'effecting',\n\t\t\t'effects',\n\t\t\t'eg', // i.e, \"e.g.\"\n\t\t\t'end',\n\t\t\t'ends',\n\t\t\t'entire',\n\t\t\t'either',\n\t\t\t'else',\n\t\t\t'else’',\n\t\t\t'else\\'s',\n\t\t\t'elsewhere',\n\t\t\t'en', // as in \"en gros\"\n\t\t\t'enough',\n\t\t\t'entirely',\n\t\t\t'ere',\t// short for \"here\"\n\t\t\t'erstwhile',\n\t\t\t'especially',\n\t\t\t'essentially',\n\t\t\t'et', // \"et al\"\n\t\t\t'etc',\n\t\t\t'even',\n\t\t\t'eventually',\n\t\t\t'ever',\n\t\t\t'every',\n\t\t\t'evident',\n\t\t\t'evidently',\n\t\t\t'exactly',\n\t\t\t'example',\n\t\t\t'examples',\n\t\t\t'except',\n\t\t\t'excepted',\n\t\t\t'excepting',\n\t\t\t'excepts',\n\t\t\t'exception',\n\t\t\t'exceptions',\n\t\t\t'exclusively',\n\t\t\t'exercising',\n\t\t\t'exist',\n\t\t\t'exists',\n\t\t\t'expense',\n\t\t\t'explicitly',\n\t\t\t'extent',\n\t\t\t'externally',\n\t\t\t'extremely',\n\t\t];\n\t}", "function getIgnoreKeywords_allWords_W_Words() {\n\t\treturn [\n\t\t\t'wait',\n\t\t\t'waited',\n\t\t\t'waiting',\n\t\t\t'waits',\n\t\t\t'want',\n\t\t\t'was',\n\t\t\t'wasn\\'t',\n\t\t\t'way',\n\t\t\t'ways',\n\t\t\t'we',\n\t\t\t'we\\'d',\n\t\t\t'we\\'ll',\n\t\t\t'we\\'re',\n\t\t\t'we\\'ve',\n\t\t\t'well',\n\t\t\t'went',\n\t\t\t'were',\n\t\t\t'what',\n\t\t\t'what\\'s',\n\t\t\t'whatever',\n\t\t\t'whathaveyou',\n\t\t\t'whatsoever',\n\t\t\t'when',\n\t\t\t'whence',\n\t\t\t'whenever',\n\t\t\t'where',\n\t\t\t'where\\'s',\n\t\t\t'whereas',\n\t\t\t'whereby',\n\t\t\t'wherefore',\n\t\t\t'wherefrom',\n\t\t\t'wherein',\n\t\t\t'whereon',\n\t\t\t'wheresoever',\n\t\t\t'whereto',\n\t\t\t'wheretofore',\n\t\t\t'whereupon',\n\t\t\t'wherever',\n\t\t\t'wherewith',\n\t\t\t'whether',\n\t\t\t'which',\n\t\t\t'whichever',\n\t\t\t'while',\n\t\t\t'whilst',\n\t\t\t'who',\n\t\t\t'whoever',\n\t\t\t'whomever',\n\t\t\t'whomsoever',\n\t\t\t'whosoever',\n\t\t\t'whom',\n\t\t\t'whomsoever',\n\t\t\t'whose',\n\t\t\t'why',\n\t\t\t'wide',\n\t\t\t'widely',\n\t\t\t'will',\n\t\t\t'willing',\n\t\t\t'willingly',\n\t\t\t'with',\n\t\t\t'within',\n\t\t\t'without',\n\t\t\t'woman\\'s',\n\t\t\t'won\\'t',\n\t\t\t'wont',\n\t\t\t'would',\n\t\t\t'wouldn\\'t',\n\t\t\t'wouldst', // as in \"wouldst thou toketh?\"\n\t\t\t'write',\n\t\t\t'writes',\n\t\t\t'wrote',\n\t\t\t'wrought',\n\t\t];\n\t}", "getPreparedText(excludeCases=undefined) {\n // Build an array of indicies the represent the possible substitutions and shuffle them so\n // that we can iterate through them randomly\n let shuffledIndicies = [...Array(this._json.substitutions.length).keys()];\n shuffleArray(shuffledIndicies);\n\n // Stop at the first substitution which we can use\n let questionSubstIdx = undefined;\n let questionSubst = undefined;\n for (const substitutionIndex of shuffledIndicies) {\n const thisSubstitution = this._json.substitutions[substitutionIndex];\n\n if (excludeCases === undefined) {\n\n // If no cases are exluded, just return the first phrase\n questionSubstIdx = substitutionIndex;\n questionSubst = thisSubstitution\n break;\n\n } else {\n\n // If the phrase contains a case substitution that is not in the exclusion list, return it\n if (!excludeCases.includes(thisSubstitution.targetCase)) {\n questionSubstIdx = substitutionIndex;\n questionSubst = thisSubstitution;\n break;\n }\n\n }\n }\n\n // Substitute the correct noun forms into the substitutions that we're not quiz'ing the user\n // on\n let preparedText = this._json.text;\n const substToken = \"||\";\n let substitutionNumber = 0;\n for (let idx = 0; (idx = preparedText.indexOf(substToken, idx)) > -1; idx++) {\n\n if (substitutionNumber != questionSubstIdx) {\n const thisSubstitution = this._json.substitutions[substitutionNumber];\n const thisNoun = Dictionary.getRandomNoun(thisSubstitution.nounType === \"animate\");\n\n preparedText = preparedText.substring(0, idx)\n + thisNoun.getSingularDeclension(thisSubstitution.targetCase).text\n + preparedText.substring(idx + substToken.length);\n }\n\n substitutionNumber++;\n }\n\n\n return [questionSubst, preparedText];\n }", "function AtDCore(){this.ignore_types=[\"Bias Language\",\"Cliches\",\"Complex Expression\",\"Diacritical Marks\",\"Double Negatives\",\"Hidden Verbs\",\"Jargon Language\",\"Passive voice\",\"Phrases to Avoid\",\"Redundant Expression\"];this.ignore_strings={};this.i18n={}}", "function loadWholeQuestion(){\n\t\tloadQuestion();\n\t\tloadChoices();\n\t\tloadHint();\n\t\tshowQuestionNumber();\n\t}", "function categoryCheck (word) {\n switch (word) {\n case \"anniversary\":\n return \"anniversary\"\n break;\n case \"birthday\":\n return \"birthday\"\n break; \n case \"congratulations\":\n return \"congratulations\"\n break; \n case \"well\":\n return \"getWell\"\n break;\n case \"getwell\":\n return \"getWell\"\n break;\n case \"housewarming\":\n return \"housewarming\"\n break; \n case \"warming\":\n return \"housewarming\"\n break; \n case \"sorry\":\n return \"sorry\"\n break; \n case \"patrick\":\n return \"stPatricksDay\"\n break; \n case \"patrick\\'s\":\n return \"stPatricksDay\"\n break; \n case \"because\":\n return \"justBecause\"\n break;\n case \"just\":\n return \"justBecause\"\n break;\n case \"justBecause\":\n return \"justBecause\"\n break;\n case \"baby\":\n return \"newBaby\"\n break;\n case \"newBaby\":\n return \"newBaby\"\n break;\n case \"newborn\":\n return \"newBaby\"\n break; \n case \"romance\":\n return \"loveRomance\"\n break;\n case \"retirement\":\n return \"retirement\"\n break; \n case \"retire\":\n return \"retirement\"\n break; \n case \"funeral\":\n return \"sympathy\"\n break; \n case \"sympathy\":\n return \"sympathy\"\n break; \n case \"thank\":\n return \"thankYou\"\n break; \n case \"thankYou\":\n return \"thankYou\"\n break; \n case \"year\":\n return \"newYear\"\n break;\n case \"valentine\":\n return \"valentinesDay\"\n break;\n case \"valentine\\'s\":\n return \"valentinesDay\"\n break;\n case \"valentines\":\n return \"valentinesDay\"\n break;\n case \"easter\":\n return \"easter\"\n break; \n case \"mother\\'s\":\n return \"mothersDay\"\n break;\n case \"mothers\":\n return \"mothersDay\"\n break;\n case \"mother\":\n return \"mothersDay\"\n break;\n case \"memorial\":\n return \"memorialDay\"\n break; \n case \"fathers\":\n return \"fathersDay\"\n break;\n case \"father\\'s\":\n return \"fathersDay\"\n break;\n case \"father\":\n return \"fathersDay\"\n break; \n case \"july\":\n return \"july4th\"\n break; \n case \"4th\":\n return \"july4th\"\n break; \n case \"fourth\":\n return \"july4th\"\n break; \n case \"labor\":\n return \"laborDay\"\n break;\n case \"laborDay\":\n return \"laborDay\"\n break;\n case \"halloween\":\n return \"halloween\"\n break; \n case \"veteran\":\n return \"veteransDay\"\n break;\n case \"veterans\":\n return \"veteransDay\"\n break;\n case \"veteransDay\":\n return \"veteransDay\"\n break;\n case \"veteran\\'s\":\n return \"veteransDay\"\n break;\n case \"thanksgiving\":\n return \"thanksgiving\"\n break; \n case \"hanukkah\":\n return \"hanukkah\"\n break; \n case \"christmas\":\n return \"christmas\"\n break;\n }\n}", "initialize() {\n return new Promise(resolve => {\n if (SpellingAnalyzer.initialized) {\n resolve(SpellingAnalyzer.initialized);\n } else {\n spellConfig.initialise(this.configurationFile, () => {\n spellcheck.initialise(opts);\n\n spellConfig\n .getGlobalWords()\n .forEach(x => spellcheck.addWord(x, /* temporary: */ true));\n\n SpellingAnalyzer.initialized = true;\n\n resolve(!SpellingAnalyzer.initialized);\n });\n }\n });\n }", "function fill_suggestions(suggestions) {\n $('.dictionary-search-results .dictionary-search-results-item').remove();\n \n for(var i = suggestions.length - 1; i >= 0; i--) {\n $('.dictionary-search-results').prepend('<div class=\"dictionary-search-results-item\">' + suggestions[i].text + '</div>');\n }\n\n $('.dictionary-search-results').find('input').val('');\n\n $('.dictionary-search-results').show();\n $('.dictionary-search-results').offset({left:$(searched_word).offset().left,top:$(searched_word).offset().top + $(searched_word).height()});\n \n $('body').click(function(e) {\n var selected_translation = $(e.target).closest('.dictionary-search-results-item');\n\n if(selected_translation.length != 0) {\n var context = $(current_context).text();\n add_word($(searched_word).text(), $(selected_translation).text(), context);\n \n $(searched_word).css('background-color', '');\n $(current_context).css('background-color', '');\n } else if($(e.target).closest('.dictionary-search-results').length != 0) {\n } else if($('.dictionary-search-results').is(':visible')) {\n $('.dictionary-search-results').hide();\n $('body').unbind('click');\n }\n });\n}", "function getIgnoreKeywords_allWords_M_Words() {\n\t\treturn [\n\t\t\t'm\\'m',\n\t\t\t'made',\n\t\t\t'make',\n\t\t\t'makes',\n\t\t\t'making',\n\t\t\t'main',\t\n\t\t\t'mainly',\n\t\t\t'man\\'s',\n\t\t\t'many',\n\t\t\t'may',\t\n\t\t\t'maybe',\n\t\t\t'me',\n\t\t\t'mea',\t // \"mea culpa\"\n\t\t\t'mean',\n\t\t\t'means',\n\t\t\t'meant',\n\t\t\t'meantime',\n\t\t\t'meanwhile',\n\t\t\t'mere',\n\t\t\t'merely',\n\t\t\t'messrs',\n\t\t\t'met',\n\t\t\t'midst',\n\t\t\t'midsts',\n\t\t\t'min',\n\t\t\t'minor',\n\t\t\t'miss',\n\t\t\t'mister',\n\t\t\t'mlle', // french\n\t\t\t'mme', // french\n\t\t\t'moment',\n\t\t\t'more',\n\t\t\t'moreover',\n\t\t\t'morrow',\n\t\t\t'most',\n\t\t\t'mostly',\n\t\t\t'mr',\n\t\t\t'mrs',\n\t\t\t'much',\n\t\t\t'must',\t\n\t\t\t'my',\n\t\t\t'myself',\n\t\t];\n\t}", "function getIgnoreKeywords_allWords_nonEnglishWords() {\n\t\treturn [\n\t\t];\n\t}", "function parse(fileName) {\n\tvar word = ''\n\tvar mode = ''\n\tvar trim = ''\n\tvar type = ''\n\tvar meaning = ''\n\tvar outputStream = fs.createWriteStream('dict-th.js')\n\toutputStream.write('var th = [\\n')\n\n\tnew lazy(fs.createReadStream(fileName))\n\t\t.lines\n\t\t.map(function(line){\n\t\t\tn++\n\t\t\tline = (line || '').toString()\n\t\t\tg_line = line\n\t\t\tif (mode == '') {\n\t\t\t\tif (line.indexOf('<title>') >= 0) {\n\t\t\t\t\tmode = 'title'\n\t\t\t\t\tword = line.replace('<title>', '').replace('</title>', '').trim()\n\t\t\t\t}\n\t\t\t} else if (mode == 'title') {\n\t\t\t\tif (/==([^=]+)==$/.exec(line) != null) {\n\t\t\t\t\tmode = RegExp.$1 // it can be English, German, etc\n\t\t\t\t\ttype = ''\n\t\t\t\t\tmeaning = ''\n\t\t\t\t} else if (line.indexOf('</page>') >= 0) {\n\t\t\t\t\tmode = ''\n\t\t\t\t}\n\t\t\t} else if (mode == 'English') { // only interested in English contents\n\t\t\t\tif (/^===+([^=]+)===+$/.exec(line) != null) {\n\t\t\t\t\tvar s = RegExp.$1\n\t\t\t\t\tif (['Alternative forms', 'Etymology', 'Etymology 1', 'Etymology 2', 'Pronunciation',\n\t\t\t\t\t\t\t'Translations', 'Derived terms', 'See also', 'Synonyms', 'Related terms',\n\t\t\t\t\t\t\t'Hyponyms', 'Hypernyms', 'Antonyms', 'Usage notes', 'Descendants',\n\t\t\t\t\t\t\t'Quotations', 'Coordinate terms'].indexOf(s) < 0) {\n\t\t\t\t\t\ttype = RegExp.$1\n\t\t\t\t\t\tmeaning = ''\n\t\t\t\t\t}\n\t\t\t\t} else if (line.indexOf('{{trans-top|') >= 0) {\n\t\t\t\t\tmeaning = line.replace('{{trans-top|', '').replace('}}', '').trim()\n\t\t\t\t} else if (line.indexOf('* Thai:') >= 0) {\n\t\t\t\t\tvar lin = line.replace('* Thai: ', '').trim()\n\t\t\t\t\tvar translations = lin.replace('}} ({{', '}}, {{').replace('}},{{', '}}, {{').\n\t\t\t\t\t\treplace('{{f}} (formal) {{', '{{f}} (formal), {{').replace(/}} {{t/g, '}}, {{t').\n\t\t\t\t\t\treplace('),{{t', '), {{t').replace(') or {{Thai|', '), {{Thai|').replace('}} ~ {{', '}}, {{').\n\t\t\t\t\t\treplace('}} or {{', '}}, {{').\n\t\t\t\t\t\tsplit(/[\\}\\)\\]] *[\\,\\;] +[\\{\\[]/)\n\t\t\t\t\tvar w = new Word(word, type, meaning)\n\t\t\t\t\tfor (var i in translations) {\n\t\t\t\t\t\tvar item = translations[i]\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)[})]+$/.exec(item) != null || //{{t+|th|ดี|tr=dee}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^}|]+)}+$/.exec(item) != null || //{{t-|th|พาย}}\n\t\t\t\t\t\t\t\t/^{+Thai\\|\\[\\[([^\\]]+)\\]\\]\\}\\} +\\(([^\\)]+)\\)?$/.exec(item) != null || //{{Thai|[[แมว]]}} (maew)\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|sc=Thai}+$/.exec(item) != null || //{{t|th|ชั่วโมง|sc=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|alt=[^|}]+\\|tr=([^|}]+)}+$/.exec(item) != null || //{{t|th|ที่สุด|alt=..ที่สุด|tr=...têe-sùt}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|[cmfn]\\|tr=([^|}]+)}+$/.exec(item) != null || //{{t-|th|นักเขียน|m|tr=nak-khian}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|[cmf]\\|[cmf]\\|tr=([^|}]+)}+$/.exec(item) != null || //{{t+|th|สวัสดี|m|f|tr=sawàtdee}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|[cm]\\|tr=([^|}]+)\\|sc=[^|}]+}+$/.exec(item) != null || //{{t|th|ประเทศอุซเบกิสถาน|m|tr=bpràtêt ùsábaygìttăan|sc=Thai}}\n\t\t\t\t\t\t\t\t/^\\[+([^\\]]+)\\]+ +\\(([^\\)]+)\\)?$/.exec(item) != null || //[นาม]] (naam)\n\t\t\t\t\t\t\t\t/^\\[+([^\\]]+)\\]+$/.exec(item) != null || //[[ประเทศกินี-บิสเซา]]\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^}|]+)}} *\\(([^)]+)\\) \\+ ''comp''$/.exec(item) != null || //{{t+|th|ยิ่ง}}(yîng) + ''comp''\n\t\t\t\t\t\t\t\t/^{+Thai\\|\\[\\[([^\\]]+)\\]\\]\\}\\} +\\(([^\\)]+)\\) \\(numeral: \\{\\{[^\\}]+\\}\\}\\)$/.exec(item) != null || //{{Thai|[[เจ็ด]]}} (jèt) (numeral: {{Thai|[[๗]]}})\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\}\\} \\(numeral: \\{\\{[^\\}]+\\}\\}\\)$/.exec(item) != null || //{{t+|th|สอง|tr=sááwng}} (numeral: {{t+|th|๒}})\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\}\\} \\([^\\)]+\\)$/.exec(item) != null || //{{t-|th|เปิด|tr=bpèrt}} (เปิดประเด็น)\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\}\\} \\(([^\\)]+)\\)?$/.exec(item) != null || //{{t+|th|เวลา}} (waylaa)\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\}\\}\\(([^\\)]+)\\) \\(=show\\)$/.exec(item) != null || //{t|th|โชว์}}(choh) (=show)\n\t\t\t\t\t\t\t\t/^{+Thai\\|\\[\\[([^\\]]+)\\]\\]\\}\\} +\\(([^\\)]+)\\) +\\{\\{qualifier\\|([^\\}]+)\\}+$/.exec(item) != null || //{{Thai|[[ดูดี]]}} (doo dee) {{qualifier|informal}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\|sc=[^|}]+}+$/.exec(item) != null || //{{t|th|หมา|tr=mǎa|sc=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|sc=Thai\\|tr=([^|}]+)}+$/.exec(item) != null || //{{t|th|ถึงจุดสุดยอด|sc=Thai|tr=těung jùt sùt yôt}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\|sc=[^|}]+\\}\\} +\\(([^\\)]+)\\)?$/.exec(item) != null || //{{t|th|ปู่|tr=poo|sc=Thai}} (paternal\n\t\t\t\t\t\t\t\t/^{+Thai\\|\\[\\[([^\\]]+)\\]\\]\\}\\} +\\(([^\\)]+)\\), both often used loosely for non-relatives$/.exec(item) != null || //{Thai|[[น้อง]]}} (norng, younger), both often used loosely for non-relatives\n\t\t\t\t\t\t\t\t/^{+Thai\\|\\[\\[([^\\]]+)\\]\\]\\}\\} +\\(([^\\)]+)\\) \\{\\{m\\}$/.exec(item) != null || //{{Thai|[[สวัสดีครับ]]}} (sàwàtdee kráp) {{m}\n\t\t\t\t\t\t\t\t/^{+Thai\\|\\[\\[([^\\]]+)\\]\\]\\}\\} +\\(([^\\)]+)\\) \\{\\{f\\}\\} \\(formal$/.exec(item) != null || //{Thai|[[สวัสดีค่ะ]]}} (sàwàtdee kâ) {{f}} (formal\n\t\t\t\t\t\t\t\t/^{+Thai\\|\\[\\[([^\\]]+)\\]\\]\\}\\} +\\(([^\\)]+)\\) \\((informal)\\)$/.exec(item) != null || //{Thai|[[ฮัลโหล]]}} (hanlǒh) (informal)\n\t\t\t\t\t\t\t\t/^{+Thai\\|\\[\\[([^\\]]+)\\]\\]\\?\\}\\} +\\(([^\\)]+)\\)?$/.exec(item) != null || //{{Thai|[[มีใครอยู่มั้ย]]?}} (mee krai yòo mái?)\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|sc=Thai\\}\\} +\\(([^\\)]+)\\)?$/.exec(item) != null || //{t-|th|สหาย|sc=Thai}} (sa hāy)\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|sc=Thai\\|xs=English\\}\\}$/.exec(item) != null || //{{t|th|การเคลื่อนไหว|sc=Thai|xs=English}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\}\\}\\!$/.exec(item) != null || //{{t-|th|ขี้โม้|tr=kêe móh}}!\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|alt=[^|}]+\\|tr=([^|}]+)\\|sc=Thai}+$/.exec(item) != null || //{{t|th|วิทยา|alt=-วิทยา|tr=-wíttáyaa|sc=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|alt=[^|}]+\\|tr=([^|}]+)\\}\\} \\(''[f]?[e]?male speaker''\\)?$/.exec(item) != null || //{{t|th|ผมชื่อ|alt=ผมชื่อ...|tr=phõm chêu...}} (''male speaker''\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\|alt=[^|}]+\\|sc=Thai}+$/.exec(item) != null || //{{t|th|กันเถอะ|tr=...gan tùh|alt=...กันเถอะ|sc=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|sc=Latn}+$/.exec(item) != null || //{t-|th|MP3|sc=Latn}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|\\|tr=([^|}]+)[})]+$/.exec(item) != null || //{{t-|th|น้ำนม||tr=náam nom}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\}\\} &lt;!-- [^&]+ --&gt;$/.exec(item) != null || //{{t|th|ตูนิส|tr=Too-Nis}} &lt;!-- please check this romanisation --&gt;\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\}\\} &lt;!-- [^&]+--&gt;$/.exec(item) != null || //{{t|th|อณูพันธุศาสตร์}} &lt;!-- (??? ???? ra??)--&gt;\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\|xs=Thai\\}\\}$/.exec(item) != null || //{{t-|th|โวลต์|tr=wohn|xs=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\}\\}\\.\\.\\.$/.exec(item) != null || //{{t+|th|อย่า|tr=yàa}}...\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=Thai\\|tr=([^|}]+)\\}\\}$/.exec(item) != null || //{{t|th|เทววิทยา|tr=Thai|tr=tâywawíttáyaa}}\n\t\t\t\t\t\t\t\t/^(มลายู|การป้องกัน\\(ล่วงหน้า\\))$/.exec(item) != null || //มลายู\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|sc=Thai\\|xs=Thai}+$/.exec(item) != null || //{{t|th|หอคอยบาเบล|sc=Thai|xs=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tr=([^|}]+)\\|sc=Thai\\|xs=Thai}+$/.exec(item) != null || //{{t-|th|หลัก|tr=làk|sc=Thai|xs=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|[nf]\\|sc=Thai}+$/.exec(item) != null || //{{t|th|คำผวน|n|sc=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|xs=Thai}+$/.exec(item) != null || //{{t-|th|เห็ดหอม|xs=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|tyr=([^|}]+)\\|sc=Thai\\}\\}$/.exec(item) != null || //{{t|th|เยอรมันเชฟเฟิร์ด|tyr=yerráman chêffêrt|sc=Thai}}\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|Thai\\|([^|]+)\\|tr=([^|}]+)\\}\\}$/.exec(item) != null || //{t+|th|Thai|ยาชุบชีวิต|tr=yaa chóop cheewít}}\n\t\t\t\t\t\t\t\t/^{+Thai\\|\\[\\[([^\\]]+)\\]\\]\\}+$/.exec(item) != null || //{{Thai|[[ขมิ้น]]}}\n\t\t\t\t\t\t\t\t/^\\[+([^\\]]+)\\]+ +\\(([^\\)]+)\\) \\([a-z ]+\\)?$/.exec(item) != null || //[[ย่า]] (yaa) (paternal grandmother\n\t\t\t\t\t\t\t\t/^{+[^|]+\\|th\\|([^|]+)\\|([^sxt|][^|}]+)[})]+$/.exec(item) != null || //{{t-|th|หัวใจ|hŭajai}\n\t\t\t\t\t\tfalse) {\n\t\t\t\t\t\t\tvar thai = RegExp.$1\n\t\t\t\t\t\t\tvar transliteration = RegExp.$2 || ''\n\t\t\t\t\t\t\tvar qualifier = RegExp.$3\n\t\t\t\t\t\t\tw.addTranslation(thai, transliteration, qualifier)\n\t\t\t\t\t\t} else if (item != \"{{not used|th}}\" &&\n\t\t\t\t\t\t\t\titem.indexOf('{qualifier|') < 0 &&\n\t\t\t\t\t\t\t\titem != \"''absent with adjectives''\") {\n\t\t\t\t\t\t\tconsole.log('ERROR: line '+n+', unrecongnized translation:', item)\n\t\t\t\t\t\t\tconsole.log('line:', line)\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (w.translations.length > 0) {\n\t\t\t\t\t\toutputStream.write(w.toFile()+'\\n')\n\t\t\t\t\t}\n\t\t\t\t} else if (line.indexOf('</page>') >= 0) {\n\t\t\t\t\tmode = ''\n\t\t\t\t}\n\t\t\t} else { //unsupported mode\n\t\t\t\tif (line.indexOf('</page>') >= 0) {\n\t\t\t\t\tmode = ''\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\t.filter(function(item){\n\t\t\treturn item != undefined\n\t\t})\n\t\t.join(function(xs){\n\t\t\toutputStream.write(']\\n')\n\t\t})\n}", "function PreencheMapaDiacriticals() {\n for (var i = 0; i < defaultDiacriticsRemovalap.length; i++) {\n var letters = defaultDiacriticsRemovalap[i].letters;\n for (var j=0; j < letters.length ; j++){\n diacriticsMap[letters[j]] = defaultDiacriticsRemovalap[i].base;\n }\n }\n}", "function initializeLangVars() {\nswitch (Xlang) {\n// --------------------------------------------------------------------------------------------------------------------------------------------------------------------\n// - The 03/02/2010 ------------- by Ptitfred06\n// Modification : small word to have good view in tasklist\n// - Small modification on word (translation).\n// - comment what can be personnalise / and what can't \n// -----------------------------------------------------------------------\n\tcase \"fr\": // thanks Tuga\n// Texte détécté dans les page Travian (NE PAS CHANGER / No CHANGE !!!)\n\t\taLangAllBuildWithId = [\"Bûcheron\", \"Carrière de terre\", \"Mine de fer\", \"Ferme\", \"\", \"Scierie\", \"Usine de poteries\", \"Fonderie\", \"Moulin\", \"Boulangerie\", \"Dépôt de ressources\", \"Silo de céréales\", \"Armurerie\", \"Usine d'armures\", \"Place du tournoi\", \"Bâtiment principal\", \"Place de rassemblement\", \"Place du Marché\", \"Ambassade\", \"Caserne\", \"Écurie\", \"Atelier\", \"Académie\", \"Cachette\", \"Hôtel de ville\", \"Résidence\", \"Palais\", \"Chambre aux trésors\", \"Comptoir de commerce\", \"Grande Caserne\", \"Grande Écurie\", \"Mur d'enceinte\", \"Mur de terre\", \"Palissade\", \"Tailleur de Pierres\", \"Brasserie\", \"Fabricant de pièges\",\"Manoir du héros\", \"Grand dépôt de ressources\", \"Grand silo de céréales\", \"Merveille du monde\", \"Abreuvoir\"];\n\t\taLangAllBuildAltWithId = [/*\"Bûcheron\"*/, \"Carrière de Terre\", /*\"Mine de fer\"*/, \"Ferme de céréales\", \"\", /*\"Scierie\"*/, \"Usine de Poteries\", /*\"Fonderie\", \"Moulin\"*/,/* \"Boulangerie\"*/, /*\"Dépôt de ressources\"*/, /*\"Silo de céréales\"*/, /*\"Armurerie\"*/, /*\"Usine d'armures\"*/, /*\"Place du tournoi\"*/, \"Bâtiment Principal\", /*\"Place de rassemblement\"*/, \"Place du marché\", /*\"Ambassade\"*/, /*\"Caserne\"*/, /*\"Écurie\"*/, /*\"Atelier\"*/, /*\"Académie\"*/, /*\"Cachette\"*/, \"Hôtel de Ville\", /*\"Résidence\"*/, /*\"Palais\"*/, /*\"Chambre aux trésors\"*/, \"Comptoir de commerce\", \"Grande Caserne\", \"Grande Écurie\", \"Mur d'enceinte\", \"Mur de terre\", \"Palissade\", \"Tailleur de Pierres\", \"Brasserie\", \"Fabricant de pièges\",\"Manoir du Héros\", \"Grand dépôt de ressources\", \"Grand silo de céréales\", \"Merveille du monde\", \"Abreuvoir\"];\n\n// <-- Peu être modifié / can be personnalize\n\t\taLangAddTaskText = [\"Ajouter tache\", \"Type\", \"Village actif\", \"Cible\", \"Vers\", \"Mode\", \"Aide Const.\", \"Quantité de ress.\", \"Bouger vers le haut\", \"Bouger vers le bas\", \"Effacer\", \"&#160;&#160;&#160;Taches\", \"Bouger \", \"Eliminer toutes les tâches\"];\n\t\taLangTaskKind = [\"Évol \", \"N Cons \", \"Att \", \"Rech \", \"Entrai \", \"Trans \", \"NPC\", \"Dém \", \"Fête\"];\n// -->\n\n// <-- Peu être modifié / can be personnalize\n\t\taLangGameText = [\"Niv\", \"Marchands\", \"Id\", \"Capitale\", \"Temps début\", \"this timeseting is unuseful now.\", \"Vers\", \"Village\", \"Transport\", \"de\", \"Transport vers\", \"Transport de\", \"Retour de\", \"Ressources\", \"Bâtiment\", \"Construire un nouveau bâtiment\", \"Vide\", \"Niveau\"];\n// original \taLangGameText = [\"Niveau\", \"Marchands\", \"Identification\", \"Capitale\", \"Inicio\", \"this timeseting is unuseful now.\", \"Vers\", \"Village\", \"Transport\", \"de\", \"Transport vers\", \"Transport de\", \"Retour de\", \"Ressources\", \"Bâtiment\", \"Construire un nouveau bâtiment\", \"Vazio\", \"Niveau\"];\n// -->\tfin\t\n\n\t\taLangRaceName = [\"Romains\", \"Germains\",\"Gaulois\"];\n// <-- Peu être modifié\n\t\taLangTaskOfText = [\"Planifier evolution\", \"Planifier nouvelle construction\", \"RessUpD\", \"OFF\", \"Comencer\", \"ON\", \"Arreter\", \"La distribution des champs de ce village est \", \"AutoT\", \"Auto transport n est pas ouvert\", \"Ouvert\", \"Transport avec succès\", \"Taches\", \"Limit\", \"Defaut\", \"Modifier\", \"Bois/Terre/Fer\", \"Céréales\", \"Planification de demolition\", \"Planif.Attaque\", \"Type d´attaque\", \"Temps de voyage\", \"Repeter numero de fois\", \"Temps de intervales\",\"00:30:00\",\"Cible catapulte\",\"Aléatoire\", \"Inconnu\", \" Fois\", \"/\", \" \", \"Troupes envoyées\", \"Planification d´entrainement\",\"Train ubication\",\"Planification d´entrainement fini\",\"TransP\",\"Setup Interval Time of Reload\",\"This is the interval of page reload ,\\n default sont 20 minutes, Insérer nouveau temps:\\n\\n\",\"Remain\",\"Planifier fête\",\"petite fête\",\"grande fête\",\"Set Interval of Ressources concentration\",\"minutes\",\".\",\".\",\"START\",\"STOP\",\"Planifier entrainement\",\"Augmenter Attaque\",\"Augmenter Defense\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n// -->> fin\n// < ne pas change / no change !!! Detected for the feedback error.\n\t\taLangErrorText = [\"Pas assez de ressources\", \"Les ouvriers sont déjà au travail\", \"Construction complète\", \"Début de la construction\", \"Dans développement\", \"Son Dépôt de ressources est petit. Évolue son Dépôt de ressources pour continuer sa construction\", \"Son silo de céréales est petit. Évolue son Silo de céréales pour continuer sa construction\", \"Ressources suffisantes\",\"Une fête est déjà organisée\"];\n// -->> fin\n\t\taLangOtherText = [\"Il remarque important\", \"Seulement les champs de ressources du capitale <br/>peuvent être élevés à niveau 20. Son capital <br/> n'est pas décelable. S'il vous plaît il visite son profil.\", \"Raccourci ici ^_^\", \"Installation conclue\", \"Annulé\", \"Initier les tâches\", \"Upgrade avec succès\", \"Exécuter avec succès\", \"Sa race est inconnue, et son type de troupe aussi. <br/>Il visite son profil pour déterminer la race.<br/>\", \"S'il vous plaît il visite sa Manoir du héros pour déterminer<br/>la vitesse et le type de héros.\"];\n\t\taLangResources=[\"Bois\",\"Terre\",\"Fer\",\"Céréales\"];\n\t\taLangTroops[0] = [\"Légionnaire\", \"Prétorien\", \"Impérian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Bélier\", \"Catapulte de feu\", \"Sénateur\", \"Colon\", \"Héros\"];\n\t\taLangTroops[1] = [\"Combattant au gourdin\", \"Combattant à la lance\", \"Combattant à la hache\", \"Eclaireur\", \"Paladin\", \"Cavalier Teuton\", \"Bélier\", \"Catapulte\", \"Chef de tribu\", \"Colon\", \"Héros\"];\n\n// <-- NE PAS modifier // Utilisé dans plannification d'attaque, dans recherche de niveau suppèrieur / NO CHANGE !!\n\t\taLangTroops[2] = [\"Phalange\", \"Combattant à l'épée\", \"Eclaireur\", \"Eclair de Toutatis\", \"Cavalier druide\", \"Hédouin\", \"Bélier\", \"Catapulte de Guerre\", \"Chef\", \"Colon\", \"Héros\"];\n// original\taLangTroops[2] = [\"Phalange\", \"Combattant à l'épée\", \"Eclaireur\", \"Eclair de Toutatis\", \"Cavalier druide\", \"Hédouin\", \"Bélier\", \"Catapulte de Guerre\", \"Chef\", \"Colon\", \"Héros\"];\n\n// <-- Peu être modifié // Label des taches / CAN BE CHANGE\n// original\taLangAttackType = [\"Assistance\", \"Attaque\", \"Pillage\"];\n\t\taLangAttackType = [\"Ass.\", \"Att.\", \"Pill.\"];\n// -->\t\t\n\t\tbreak;\n// -------------------------------------------------------------------------------------------------------------------------------\n\n\tcase \"cc\": // 2011.02.13 -- yesren\n\tcase \"cn\": // 感谢K.C.Alvis\n\t\taLangAllBuildWithId = [\"伐木场\", \"黏土矿\", \"铁矿场\", \"农场\", \"\", \"木材厂\", \"砖块厂\", \"铸造厂\", \"磨坊\", \"面包房\", \"仓库\", \"粮仓\", \"铁匠铺\", \"军械库\", \"竞技场\", \"中心大楼\", \"集结点\", \"市场\", \"大使馆\", \"兵营\", \"马厩\", \"工场\", \"研发所\", \"山洞\", \"市政厅\", \"行宫\", \"皇宫\", \n\t\t\t\"宝库\", \"交易所\", \"大兵营\", \"大马厩\", \"罗马城墙\", \"日尔曼城墙\", \"高卢城墙\", \"石匠铺\", \"酿酒厂\", \"陷阱机\", \"英雄园\", \"大仓库\", \"大粮仓\", \"世界奇观\", \"饮马槽\"];\n\t\taLangAllBuildAltWithId = [\"伐木场\", \"黏土矿\", \"铁矿场\", \"农场\", \"\", \"木材厂\", \"砖块厂\", \"铸造厂\", \"磨坊\", \"面包房\", \"仓库\", \"粮仓\", \"铁匠铺\", \"军械库\", \"竞技场\", \"中心大楼\", \"集结点\", \"市场\", \"大使馆\", \"兵营\", \"马厩\", \"工场\", \"研发所\", \"山洞\", \"市政厅\", \"行宫\", \"皇宫\", \n\t\t\t\"宝库\", \"交易所\", \"大兵营\", \"大马厩\", \"罗马城墙\", \"日尔曼城墙\", \"高卢城墙\", \"石匠铺\", \"酿酒厂\", \"陷阱机\", \"英雄园\", \"大仓库\", \"大粮仓\", \"世界奇观\", \"饮马槽\"];\n\t\taLangAddTaskText = [\"添加任务\", \"任务类型\", \"所在村\", \"任务对象\", \"目标\", \"模式\", \"支援建设\", \"资源集中\", \"上移\", \"下移\", \"删除\", \"任务内容\", \"移动\", \"清除所有任务\"];\n\t\taLangTaskKind = [\"升级\", \"新建\", \"攻击\", \"研发\", \"训练\", \"运输\", \"活动\", \"拆除\", \"定制运输\"];\n\t\taLangGameText = [\"等级\", \"商人\", \"坑号\", \"主村\", \"执行时间\", \"此时间设置目前无效\", \"到\", \"村庄\", \"运送\", \"回来\", \"向\", \"来自于\", \"从\", \"资源\", \"建筑\", \"建造新的建筑\", \"空\", \"等级\"];\n\t\taLangRaceName = [\"罗马人\", \"日尔曼人\", \"高卢人\"];\n\t\taLangTaskOfText = [\"预定升级\", \"预定新建\", \"资源自动升级\", \"尚未开启\", \"马上开启\", \"已经开启\", \"点击关闭\", \"该村资源田分布\", \"自动运输\", \"自动运输尚未设定\", \"已设定\", \"运送成功\", \"任务列表\", \"资源输入限额\", \"默认\", \"更改\", \"木/泥/铁\", \"粮食\", \"预定拆除\",\n\t\t\t\"预定发兵\", \"攻击类型\", \"到达所需时间\", \"重复次数\", \"间隔时间\", \"00:30:00\", \"投石目标\", \"随机\", \"未知\", \"次\", \"月\", \"日\", \"部队已发出\",\"预定训练\",\"训练设施\",\"训练任务已执行\",\"定制运输\",\"设定页面刷新间隔\",\n\t\t\t\"页面刷新的间隔时间,是指隔多久执行一次页面的自动载入。\\n此时间过短,会增加被系统侦测到的危险,过长则影响任务执行的效率。\\n默认为20分钟,请输入新的时间间隔:\\n\\n\",\"资源输出保留\",\"预定活动\",\"小型活动\",\"大型活动\",\"资源集中模式的运输间隔\",\n\t\t\t\"分钟\",\"暂停中\",\"开启中\",\"开启\",\"暂停\",\"预定改良\",\"改良攻击\",\"改良防御\", \"资源过剩检查\", \"已经开启\", \"已经关闭\", \"粮田自动升级\", \"切换\"];\n\t\taLangErrorText = [\"资源不足\", \"已经有建筑在建造中\", \"建造完成\", \"将马上开始全部建造\", \"在开发中\", \"建造所需资源超过仓库容量上限,请先升级你的仓库\", \"建造所需资源超过粮仓容量上限,请先升级你的粮仓\", \"资源何时充足时间提示\",\"粮食产量不足: 需要先建造一个农场\",\"一个活动正在举行中\"];\n\t\taLangOtherText = [\"重要提示\", \"只有主村的资源田可以升级到20,<br />目前主村尚未识别,点击个人资料<br />页面可以解决这一问题\", \"五星级传送门^_^\", \"已经设置完成\", \"已经取消\", \"开始执行任务\", \"升级成功\", \"已顺利执行\", \"种族尚未确认,兵种也就无法确定,<br />请点击个人资料页面,以便侦测种族\", \"然后,请顺便访问英雄园,以便确认<br />英雄的种类和速度。<br />\"];\n\t\taLangResources=[\"木材\",\"泥土\",\"铁块\",\"粮食\"];\n\t\taLangTroops[0] = [\"古罗马步兵\", \"禁卫兵\", \"帝国兵\", \"使节骑士\", \"帝国骑士\", \"将军骑士\", \"冲撞车\", \"火焰投石器\", \"参议员\", \"拓荒者\", \"英雄\"];\n\t\taLangTroops[1] = [\"棍棒兵\", \"矛兵\", \"斧头兵\", \"侦察兵\", \"圣骑士\", \"日耳曼骑兵\", \"冲撞车\", \"投石器\", \"执政官\", \"拓荒者\", \"英雄\"];\n\t\taLangTroops[2] = [\"方阵兵\", \"剑士\", \"探路者\", \"雷法师\", \"德鲁伊骑兵\", \"海顿圣骑士\", \"冲撞车\", \"投石器\", \"首领\", \"拓荒者\", \"英雄\"];\n\t\taLangAttackType = [\"支援\", \"攻击\", \"抢夺\"];\n\t\tbreak;\n\t\t\n\tcase \"hk\": // 感谢sean3808、K.C.Alvis\n\t\taLangAllBuildWithId = [\"伐木場\", \"泥坑\", \"鐵礦場\", \"農場\",\"\", \"鋸木廠\", \"磚廠\", \"鋼鐵鑄造廠\", \"麵粉廠\", \"麵包店\", \"倉庫\", \"穀倉\", \"鐵匠\", \"盔甲廠\", \"競技場\", \"村莊大樓\", \"集結點\", \"市場\", \"大使館\", \"兵營\", \"馬棚\", \"工場\", \"研究院\", \"山洞\", \"村會堂\", \"行宮\", \"皇宮\", \"寶物庫\", \"交易所\", \"大兵營\", \"大馬棚\", \"城牆\", \"土牆\", \"木牆\", \"石匠鋪\", \"釀酒廠\", \"陷阱\", \"英雄宅\", \"大倉庫\", \"大穀倉\", \"世界奇觀\", \"放牧水槽\"];\n\t\taLangAllBuildAltWithId = [\"伐木場\", \"泥坑\", \"鐵礦場\", \"農場\",\"\", \"鋸木廠\", \"磚廠\", \"鋼鐵鑄造廠\", \"麵粉廠\", \"麵包店\", \"倉庫\", \"穀倉\", \"鐵匠\", \"盔甲廠\", \"競技場\", \"村莊大樓\", \"集結點\", \"市場\", \"大使館\", \"兵營\", \"馬棚\", \"工場\", \"研究院\", \"山洞\", \"城鎮廳\", \"行宮\", \"皇宮\", \"寶物庫\", \"交易所\", \"大兵營\", \"大馬棚\", \"城牆\", \"土牆\", \"木牆\", \"石匠鋪\", \"釀酒廠\", \"陷阱機\", \"英雄宅\", \"大倉庫\", \"大穀倉\", \"世界奇觀\", \"放牧水槽\"];\n\t\taLangAddTaskText = [\"添加任務\", \"任務類型\", \"所在村\", \"任務對象\", \"目標\", \"模式\", \"支援建設\", \"資源集中\", \"上移\", \"下移\", \"刪除\", \"任務內容\", \"移動\", \"清除所有任務\"];\n\t\taLangTaskKind = [\"升級\", \"新建\", \"攻擊\", \"研發\", \"訓練\", \"運輸\", \"平倉\", \"拆除\", \"活動\"];\n\t\taLangGameText = [\"等級\", \"商人\", \"坑號\", \"主村\", \"執行時間\", \"該時間設置尚未啟用\", \"到\", \"村莊\", \"運送\", \"回來\", \"運輸到\", \"從\", \"由\", \"資源\", \"建築\", \"建造新的建築物\", \"empty\", \"等級\"];\n\t\taLangRaceName = [\"羅馬人\", \"條頓人\", \"高盧人\"];\n\t\taLangTaskOfText = [\"預定升級\", \"預定建築\", \"資源自動升級\", \"尚未開啟\", \"馬上開啟\", \"已經開啟\", \"點擊關閉\", \"該村資源分布\", \"自動運輸\", \"自動運輸尚未設定\", \"已設定\", \"運送成功\", \"任務列表\", \"資源輸入限額\", \"默認\", \"更改\", \"木/磚/鐵\", \"穀物\", \"預定拆除\",\n\t\t\t\"預定發兵\", \"攻擊類型\", \"到達所需時間\", \"重複次數\", \"間隔時間\", \"00:30:00\", \"投石目標\", \"隨機\", \"未知\", \"次\", \"月\", \"日\", \"部隊已發出\",\"預定訓練\",\"訓練設施\",\"訓練任務已執行\",\"定制運輸\",\"設定頁面刷新間隔\",\"頁面刷新的間隔時間,是指隔多久執行一次頁面的自動載入。\\n此時間過短,會增加被系統偵測到的危險,過長則影響任務執行的效率。\\n默認為20分鐘,請輸入新的時間間隔:\\n\\n\",\"資源輸出保留\",\"預定活動\",\"小型活動\",\"大型活動\",\"資源集中模式的間隔時間\",\n\t\t\t\"分鐘\",\"暫停中\",\"開啟中\",\"開啟\",\"暫停\",\"預定改良\",\"改良攻擊\",\"改良防御\", \"資源過剩檢查\", \"已經開啟\", \"已經關閉\", \"糧田自動升級\", \"切換\"];\n\t\taLangErrorText = [\"資源不足\", \"工作正在進行中\", \"完全地開發\", \"將馬上開始全部建造\", \"在開發中\", \"倉庫需要升級\", \"糧倉需要升級\", \"資源何時充足時間提示\",\"糧食產量不足: 需要先建造一個農場\",\"派對進行中\"];\n\t\taLangOtherText = [\"重要提示\", \"只有主村的資源田可以升級到20,<br/>目前主村尚未識別,點擊個人資料<br/>頁面可以解決這一問題\", \"五星級傳送門^_ ^\", \"已經設置完成\", \"已經取消\", \"開始執行任務\", \"升級成功\", \"已順利執行\", \"種族尚未確認,兵種也就無法確定,<br/>請點擊個人資料頁面,以便偵測種族\", \"然後,請順便訪問英雄園,以便確認<br/>英雄的種類和速度。<br/>\"];\n\t\taLangResources=[\"木材\",\"磚塊\",\"鋼鐵\",\"穀物\"];\n\t\taLangTroops[0] = [\"古羅馬步兵\", \"禁衛兵\", \"帝國兵\", \"使者騎士\", \"帝國騎士\", \"將軍騎士\", \"衝撞車\", \"火焰投石機\", \"參議員\", \"開拓者\", \"英雄\"];\n\t\taLangTroops[1] = [\"棍棒兵\", \"矛兵\", \"斧頭兵\", \"偵察兵\", \"遊俠\", \"條頓騎士\", \"衝撞車\", \"投石機\", \"司令官\", \"開拓者\", \"英雄\"];\n\t\taLangTroops[2] = [\"方陣兵\", \"劍士\", \"探路者\", \"雷法師\", \"德魯伊騎兵\", \"海頓聖騎\", \"衝撞車\", \"投石機\", \"族長\", \"開拓者\", \"英雄\"];\n\t\taLangAttackType = [\"支援\", \"攻擊\", \"搶奪\"];\n\t\tbreak;\n\n\tcase \"tw\": // 感谢adobe、魎皇鬼、ieyp、K.C.Alvis\n\t\taLangAllBuildWithId = [\"伐木場\", \"泥坑\", \"鐵礦場\", \"農場\", \"農田\", \"鋸木廠\", \"磚廠\", \"鋼鐵鑄造廠\", \"麵粉廠\", \"麵包店\", \"倉庫\", \"穀倉\", \"鐵匠\", \"盔甲廠\", \"競技場\", \"村莊大樓\", \"集結點\", \"市場\", \"大使館\", \"兵營\", \"馬廄\", \"工場\", \"研究院\", \"山洞\", \"村會堂\", \"行宮\", \"皇宮\", \"寶物庫\", \"交易所\", \"大兵營\", \"大馬廄\", \"城牆\", \"土牆\", \"木牆\", \"石匠舖\", \"釀酒廠\", \"陷阱機\", \"英雄宅\", \"大倉庫\", \"大穀倉\", \"世界奇觀\", \"放牧水槽\"];\n\t\taLangAllBuildAltWithId = [\"伐木場\", \"泥坑\", \"鐵礦場\", \"農場\", \"農田\", \"鋸木廠\", \"磚廠\", \"鋼鐵鑄造廠\", \"麵粉廠\", \"麵包店\", \"倉庫\", \"穀倉\", \"鐵匠\", \"盔甲廠\", \"競技場\", \"村莊大樓\", \"集結點\", \"市場\", \"大使館\", \"兵營\", \"馬廄\", \"工場\", \"研究院\", \"山洞\", \"村會堂\", \"行宮\", \"皇宮\", \"寶物庫\", \"交易所\", \"大兵營\", \"大馬廄\", \"城牆\", \"土牆\", \"木牆\", \"石匠舖\", \"釀酒廠\", \"陷阱機\", \"英雄宅\", \"大倉庫\", \"大穀倉\", \"世界奇觀\", \"放牧水槽\"];\n\t\taLangAddTaskText = [\"添加任務\", \"任務類型\", \"所在村\", \"任務對象\", \"目標\", \"模式\", \"支援建設\", \"資源集中\", \"上移\", \"下移\", \"刪除\", \"任務內容\", \"移動\", \"清除所有任務\"];\n\t\taLangTaskKind = [\"升級\", \"新建\", \"攻擊\", \"研發\", \"訓練\", \"運輸\", \"平倉\", \"拆除\", \"活動\"];\n\t\taLangGameText = [\"等級\", \"商人\", \"坑號\", \"主村\", \"執行時間\", \"該時間設置尚未啟用\", \"到\", \"村莊\", \"運送\", \"回來\", \"運送到\", \"從\", \"由\", \"資源\", \"建築\", \"建造新的建築物\", \"empty\", \"等級\"];\n\t\taLangRaceName = [\"羅馬人\", \"條頓人\", \"高盧人\"];\n\t\taLangTaskOfText = [\"預定升級\", \"預定建築\", \"資源自動升級\", \"尚未開啟\", \"馬上開啟\", \"已經開啟\", \"點擊關閉\", \"該村資源分布\", \"自動運輸\", \"自動運輸尚未設定\", \"已設定\", \"運送成功\", \"任務列表\", \"資源輸入限額\", \"默認\", \"更改\", \"木/磚/鐵\", \"穀物\", \"預定拆除\",\n\t\t\t\"預定發兵\", \"攻擊類型\", \"到達所需時間\", \"重複次數\", \"間隔時間\", \"00:30:00\", \"投石目標\", \"隨機\", \"未知\", \"次\", \"月\", \"日\", \"部隊已發出\",\"預定訓練\",\"訓練設施\",\"訓練任務已執行\",\"定制運輸\",\"設定頁面刷新間隔\",\"頁面刷新的間隔時間,是指隔多久執行一次頁面的自動載入。\\n此時間過短,會增加被系統偵測到的危險,過長則影響任務執行的效率。\\n默認為20分鐘,請輸入新的時間間隔:\\n\\n\",\"資源輸出保留\",\"預定活動\",\"小型活動\",\"大型活動\",\"資源集中模式的間隔時間\",\n\t\t\t\"分鐘\",\"暫停中\",\"開啟中\",\"開啟\",\"暫停\",\"預定改良\",\"改良攻擊\",\"改良防御\", \"資源過剩檢查\", \"已經開啟\", \"已經關閉\", \"糧田自動升級\", \"切換\"];\n\t\taLangErrorText = [\"資源不足\", \"已經有建築在建造中\", \"建造完成\", \"將馬上開始全部建造\", \"在開發中\", \"建造所需資源超過倉庫容量上限,請先升級你的倉庫\", \"建造所需資源超過糧倉容量上限,請先升級你的糧倉\", \"資源何時充足時間提示\",\"糧食產量不足: 需要先建造一個農場\",\"派對進行中\"];\n\t\taLangOtherText = [\"重要提示\", \"只有主村的資源田可以升級到20,<br/>目前主村尚未識別,點擊個人資料<br/>頁面可以解決這一問題\", \"五星級傳送門^_ ^\", \"已經設置完成\", \"已經取消\", \"開始執行任務\", \"升級成功\", \"已順利執行\", \"種族尚未確認,兵種也就無法確定,<br/>請點擊個人資料頁面,以便偵測種族\", \"然後,請順便訪問英雄園,以便確認<br/>英雄的種類和速度。<br/>\"];\n\t\taLangResources=[\"木材\",\"磚塊\",\"鋼鐵\",\"穀物\"];\n\t\taLangTroops[0] = [\"古羅馬步兵\", \"禁衛兵\", \"帝國兵\", \"使者騎士\", \"帝國騎士\", \"將軍騎士\", \"衝撞車\", \"火焰投石機\", \"參議員\", \"開拓者\", \"英雄\"];\n\t\taLangTroops[1] = [\"棍棒兵\", \"矛兵\", \"斧頭兵\", \"偵察兵\", \"遊俠\", \"條頓騎士\", \"衝撞車\", \"投石機\", \"司令官\", \"開拓者\", \"英雄\"];\n\t\taLangTroops[2] = [\"方陣兵\", \"劍士\", \"探路者\", \"雷法師\", \"德魯伊騎兵\", \"海頓聖騎\", \"衝撞車\", \"投石機\", \"族長\", \"開拓者\", \"英雄\"];\n\t\taLangAttackType = [\"支援\", \"攻擊\", \"搶奪\"];\n\t\tbreak;\n\n\tcase \"fi\": // thanks Christer82\n\t\taLangAllBuildWithId = [\"Puunhakkaaja\", \"Savimonttu\", \"Rautakaivos\", \"Viljapelto\", \"\", \"Saha\", \"Tiilitehdas\", \"Rautavalimo\", \"Mylly\", \"Leipomo\", \"Varasto\", \"Viljasiilo\", \"Aseseppä\", \"Haarniskapaja\", \"Turnausareena\", \"Päärakennus\", \"Kokoontumispiste\", \"Tori\", \"Lähetystö\", \"Kasarmi\", \"Talli\", \"Työpaja\", \"Akatemia\", \"Kätkö\", \"Kaupungintalo\", \"Virka-asunto\", \"Palatsi\", \"Aarrekammio\", \"Kauppavirasto\", \"Suuri kasarmi\", \"Suuri talli\", \"Kaupungin muuri\", \"Maamuuri\", \"Paaluaita\", \"Kivenhakkaaja\", \"Panimo\", \"Ansoittaja\",\"Sankarin kartano\", \"Suuri varasto\", \"Suuri viljasiilo\", \"Maailmanihme\", \"Hevostenjuottoallas\"];\n\t\taLangAllBuildAltWithId = [\"Puunhakkaaja\", \"Savimonttu\", \"Rautakaivos\", \"Viljapelto\", \"\", \"Saha\", \"Tiilitehdas\", \"Rautavalimo\", \"Mylly\", \"Leipomo\", \"Varasto\", \"Viljasiilo\", \"Aseseppä\", \"Haarniskapaja\", \"Turnausareena\", \"Päärakennus\", \"Kokoontumispiste\", \"Tori\", \"Lähetystö\", \"Kasarmi\", \"Talli\", \"Työpaja\", \"Akatemia\", \"Kätkö\", \"Kaupungintalo\", \"Virka-asunto\", \"Palatsi\", \"Aarrekammio\", \"Kauppavirasto\", \"Suuri kasarmi\", \"Suuri talli\", \"Kaupungin muuri\", \"Maamuuri\", \"Paaluaita\", \"Kivenhakkaaja\", \"Panimo\", \"Ansoittaja\",\"Sankarin kartano\", \"Suuri varasto\", \"Suuri viljasiilo\", \"Maailmanihme\", \"Hevostenjuottoallas\"];\n\t\taLangAddTaskText = [\"Lisää tehtävä\", \"Tyyli\", \"Kohdistettu kylä\", \"Tehtävän kohde\", \"Minne:\", \"Tyyppi\", \"Rakennustuki\", \"Resurssien keskittäminen\", \"Siirry ylös\", \"Siirry alas\", \"Poista\", \"&#160;&#160;&#160;Tehtävän sisältö\", \"Siirry \", \"Poista kaikki tehtävät\"];\n\t\taLangTaskKind = [\"Päivitä\", \"Uusi rakennus\", \"Hyökkäys\", \"Tutkimus\", \"Koulutus\", \"Kuljetus\", \"NPC\", \"Hajotus\", \"Juhla\"];\n\t\taLangGameText = [\"Taso\", \"Kauppiaat\", \"ID\", \"Pääkaupunki\", \"Aloitusaika\", \"Tätä aika-asetusta ei voi nyt käyttää.\", \"minne:\", \"Kylä\", \"kuljetus\", \"mistä\", \"Kuljeta kylään\", \"Kuljeta kylästä\", \"Palaa kylästä\", \"Resurssit\", \"rakennus\", \"Rakenna uusi rakennus\", \"tyhjä\", \"taso\"];\n\t\taLangRaceName = [\"Roomalaiset\", \"Teutonit\", \"Gallialaiset\"];\n\t\taLangTaskOfText = [\"Aseta kentän päivitys\", \"Aseta uusi rakennuskohde\", \"Automaattinen resurssipäivitys\", \"Ei toimintaa\", \"Aloita\", \"Aloitettu\", \"Keskeytä\", \"Tämän kylän resurssikenttien jakauma on \", \"Automaattikuljetus\", \"automaattikuljetusta ei ole avattu\", \"Avattu\", \"Kuljetus onnistui\", \"Tehtäväluettelo\", \"Trans_In_limit\", \"Perusasetus\", \"Muokkaa\", \"Puu/Savi/Rauta\", \"vilja\", \"Tehtävälistan poisto\",\n\t\t\t\"Schedule attack\", \"Hyökkäystyyppi\", \"Kuljetusaika\", \"toistokerrat\", \"Hyökkäysaikaväli\",\"00:30:00\",\"Katapultin kohde\",\"Satunnainen\", \"Tuntematon\", \"kertaa\", \"Kuukausi\", \"Päivä\", \"Joukot on lähetetty\",\"Aseta koulutustehtävä\",\"Koulutuskohde\",\"Koulutustehtävä suoritettu\",\"waitForTranslate\",\"setup Hyökkäysaikaväli of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans_Out_Rmn\",\"ScheduleParty\",\"small party\",\"big party\",\"setInterval of Resources concentration\",\n\t\t\t\"minutes\",\"pausing\",\"running\",\"run\",\"pause\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Liian vähän resursseja\", \"Työntekijät ovat jo töissä.\", \"Rakennuskohde valmis\", \"Aloitetaan rakentaminen\", \"Työ kesken\", \"Varastosi on liian pieni. Suurenna varastoa aloittaaksesi rakentamisen\", \"Viljasiilosi on liian pieni. Suurenna viljasiiloa aloittaaksesi rakentamisen\", \"Riittävästi resursseja\"];\n\t\taLangOtherText = [\"Tärkeä huomautus\", \"Vain pääkaupungin resurssikenttiä voidaan <br/>päivittää tasolle 20. Nyt pääkaupunkia<br/> ei voida todentaa. Päivitä profiiliasi, kiitos.\", \"Pikalinkki tähän ^_^\", \"Asennus valmis\", \"Peruttu\", \"Aloita tehtävät\", \"Päivitys valmis\", \"Tehty onnistuneesti\", \"Heimosi on määrittämätön, siksi joukkojesi tyyppiä <br/>Päivitä profiiliasi heimon määrittämiseksi.<br/>\", \"Käy Sankarin kartanossa määrittääksesi<br/> sankarisi tyypin ja nopeuden.\"];\n\t\taLangResources=[\"waitTranslate\",\"waitTranslate\",\"waitTranslate\",\"waitTranslate\"];\n\t\taLangTroops[0] = [\"Legioonalainen\", \"Pretoriaani\", \"Imperiaani\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Muurinmurtaja\", \"Tulikatapultti\", \"Senaattori\", \"Uudisasukas\", \"Sankari\"];\n\t\taLangTroops[1] = [\"Nuijamies\", \"Keihäsmies\", \"Kirvessoturi\", \"Tiedustelija\", \"Paladiini\", \"Teutoniritari\", \"Muurinmurtaja\", \"Katapultti\", \"Päällikkö\", \"Uudisasukas\", \"Sankari\"];\n\t\taLangTroops[2] = [\"Falangi\", \"Miekkasoturi\", \"Tunnustelija\", \"Teutateksen salama\", \"Druidiratsastaja\", \"Haeduaani\", \"Muurinmurtaja\", \"Heittokone\", \"Päällikkö\", \"Uudisasukas\", \"Sankari\"];\n\t\taLangAttackType = [\"Vahvistus\", \"Hyökkäys\", \"Ryöstö\"];\n\t\tbreak;\n\n\tcase \"us\": // by shadowx360\n\t\taLangAllBuildWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Armory\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"Town Hall\", \"Residence\", \"Palace\", \"Treasury\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason's Lodge\", \"Brewery\", \"Trapper\",\"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\taLangAllBuildAltWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Armory\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"Town Hall\", \"Residence\", \"Palace\", \"Treasury\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason's Lodge\", \"Brewery\", \"Trapper\",\"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \" Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\taLangGameText = [\"Lvl\", \"Merchants\", \"ID\", \"Capital\", \"Start time\", \"this timeseting is notuseful now.\", \"to\", \"Village\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Construct a new building\", \"empty\", \"level\"];\n\t\taLangRaceName = [\"Romans\", \"Teutons\", \"Gauls\"];\n\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Wheat\", \"Schedule demolition\",\n\t\t\t\"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\",\"00:30:00\",\"Catapult target\",\"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\",\n\t\t\t\"Schedule Train\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans Out Rmn\",\"ScheduleParty\",\"small party\",\"big party\",\"setInterval of Resources concentration\",\n\t\t\t\"minutes\", \".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Too few resources.\", \"Your builders are already working\", \"completely upgraded\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\",\"Lack of food: extend cropland first\",\"There is already a celebration going on\"];\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\taLangResources=[\"lumber\",\"clay\",\"iron\",\"wheat\"];\n\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Hero\"];\n\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Hero\"];\n\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Hero\"];\n\t\taLangAttackType = [\"Reinforce\", \"Attack\", \"Raid\"];\n\t\tbreak;\n\n\tcase \"in\":\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\taLangAllBuildWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Armoury\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"City Hall\", \"Residence\", \"Palace\", \"Treasure Chamber\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason\", \"Brewery\", \"Trapper\", \"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Armoury\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"City Hall\", \"Residence\", \"Palace\", \"Treasure Chamber\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason\", \"Brewery\", \"Trapper\", \"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\t\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\t\t\taLangGameText = [\"Lvl\", \"Merchants\", \"ID\", \"Capital\", \"Start time\", \"this timeseting is unuseful now.\", \"to\", \"Village\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Construct a new building\", \"empty\", \"level\"];\n\t\t\t\taLangRaceName = [\"Romans\", \"Teutons\", \"Gauls\"];\n\t\t\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Crop\", \"Schedule demolition\",\n\t\t\t\t\t\t\"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\", \"00:30:00\", \"Catapult target\", \"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\",\n\t\t\t\t\t\t\"Schedule Train\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"ScheduleParty\", \"small party\", \"big party\", \"setInterval of Resources concentration\",\n\t\t\t\t\t\t\"minutes\", \".\", \".\", \"START\", \"STOP\", \"Schedule Improve\", \"Improve Attack\", \"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Too few resources.\", \"Your workers are already building something.\", \"Construction completed\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\", \"Food shortage: Upgrade a wheat field first\", \"There is already a celebration going on\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t\t\taLangResources = [\"lumber\", \"clay\", \"iron\", \"crop\"];\n\t\t\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Hero\"];\n\t\t\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Hero\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Hero\"];\n\t\t\t\taLangAttackType = [\"Reinforce\", \"Attack\", \"Raid\"];\n\t\t\t\tbreak;\n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\taLangAllBuildWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"Place for new building\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Smithy\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"City Hall\", \"Residence\", \"Palace\", \"Treasure Chamber\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason\", \"Brewery\", \"Trapper\", \"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Smithy\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"City Hall\", \"Residence\", \"Palace\", \"Treasure Chamber\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason\", \"Brewery\", \"Trapper\", \"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\t\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\t\t\taLangGameText = [\"Lvl\", \"Merchants\", \"ID\", \"Capital\", \"Start time\", \"this timeseting is unuseful now.\", \"to\", \"Village\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Construct a new building\", \"empty\", \"level\"];\n\t\t\t\taLangRaceName = [\"Romans\", \"Teutons\", \"Gauls\"];\n\t\t\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Crop\", \"Schedule demolition\",\n\t\t\t\t\t\t\"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\", \"00:30:00\", \"Catapult target\", \"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\",\n\t\t\t\t\t\t\"Schedule Train\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"ScheduleParty\", \"small party\", \"big party\", \"setInterval of Resources concentration\",\n\t\t\t\t\t\t\"minutes\", \".\", \".\", \"START\", \"STOP\", \"Schedule Improve\", \"Improve Attack\", \"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Too few resources.\", \"Your workers are already building something.\", \"Construction completed\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\", \"Food shortage: Upgrade a wheat field first\", \"There is already a celebration going on\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t\t\taLangResources = [\"lumber\", \"clay\", \"iron\", \"crop\"];\n\t\t\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Hero\"];\n\t\t\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Hero\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Hero\"];\n\t\t\t\taLangAttackType = [\"Reinforce\", \"Attack\", \"Raid\"];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrowLogicError ( \"initializeLangVars():: Travian Version not set, when initializing language variables for \\'in\\'!!\" );\n\t\t}\n\t\tbreak;\n\n\tcase \"sk\": // by Zapo [ 2011.04.07 ]\n\t\taLangAllBuildWithId = [\"Drevorubač\", \"Hlinená baňa\", \"Železná baňa\", \"Obilné pole\", \"\", \"Píla\", \"Tehelňa\", \"Zlievareň\", \"Mlyn\", \"Pekáreň\", \"Sklad surovín\", \"Sýpka\", \"Kováč\", \"Zbrojnica\", \"Turnajové ihrisko\", \"Hlavná budova\", \"Zhromaždisko\", \"Trhovisko\", \"Ambasáda\", \"Kasárne\", \"Stajne\", \"Dielňa\", \"Akadémia\", \"Úkryt\", \"Radnica\", \"Rezidencia\", \"Palác\", \"Pokladnica\", \"Obchodná kancelária\", \"Veľké kasárne\", \"Veľká stajňa\", \"Mestské hradby\", \"Zemná hrádza\", \"Palisáda\", \"Kamenár\", \"Pivovar\", \"Pasti\",\"Dvor hrdinov\", \"Veľké dielne\", \"Veľká sýpka\", \"Div sveta\", \"Žriedlo\"];\n\t\taLangAllBuildAltWithId = [\"Drevorubač\", \"Hlinená baňa\", \"Železná baňa\", \"Obilné pole\", \"\", \"Píla\", \"Tehelňa\", \"Zlievareň\", \"Mlyn\", \"Pekáreň\", \"Sklad surovín\", \"Sýpka\", \"Kováč\", \"Zbrojnica\", \"Turnajové ihrisko\", \"Hlavná budova\", \"Zhromaždisko\", \"Trhovisko\", \"Ambasáda\", \"Kasárne\", \"Stajne\", \"Dielňa\", \"Akadémia\", \"Úkryt\", \"Radnica\", \"Rezidencia\", \"Palác\", \"Pokladnica\", \"Obchodná kancelária\", \"Veľké kasárne\", \"Veľká stajňa\", \"Mestské hradby\", \"Zemná hrádza\", \"Palisáda\", \"Kamenár\", \"Pivovar\", \"Pasti\",\"Dvor hrdinov\", \"Veľké dielne\", \"Veľká sýpka\", \"Div sveta\", \"Žriedlo\"];\n\t\taLangAddTaskText = [\"Pridaj úlohu\", \"Štýl\", \"Aktívna dedina\", \"Plánovaný cieľ\", \"To\", \"Mód\", \"Construction support\", \"Resources concentration\", \"Presuň hore\", \"Presuň dole\", \"Zmaž\", \" Obsah úloh\", \"Posun \", \"Zmaž všetky úlohy\"];\n\t\taLangTaskKind = [\"Upgrade\", \"Nová stavba\", \"Útok\", \"Výskum\", \"Trénovať\", \"Transport\", \"NPC\", \"Búrať\", \"Oslavy\"];\n\t\taLangGameText = [\"Lvl\", \"Obchodníci\", \"ID\", \"Hlavná dedina\", \"Start time\", \"nastavenie času je nepoužiteľný teraz.\", \"do\", \"Dedina\", \"transport\", \"od\", \"Transport do\", \"Transport od\", \"Návrat z\", \"suroviny\", \"budova\", \"Postaviť novú budovu\", \"prázdne\", \"úroveň\"];\n\t\taLangRaceName = [\"Rimania\", \"Germáni\", \"Galovia\"];\n\t\taLangTaskOfText = [\"Naplánovať Upgrade\", \"Naplánovať novú budovu\", \"Auto ResUpD\", \"Nebeží\", \"Štart\", \"Beží\", \"Suspend\", \"Surovinová distribúcia tejto dediny je \", \"Autotransport\", \"Autotransport nie je otvorený\", \"Otvorený\", \"Transport úspešný\", \"Zoznam úloh\", \"Trans In limit\", \"Default\", \"Zmeň\", \"Drevo/Hlina/Železo\", \"Obilie\", \"Naplánuj demolíciu\",\n\t\t\t\"Naplánuj útok\", \"Typ útoku\", \"Čas cesty\", \"opakovať\", \"časový interval\",\"00:30:00\",\"Cieľ Katapultu\",\"Náhodne\", \"Neznámy\", \"krát\", \"Mesiac\", \"Deň\", \"Poslať jednotky\",\n\t\t\t\"Naplánovať výcvik\",\"Výcvikové miesto\",\"Výcviková úloha hotová\",\"customTransport\",\"nastav časový interval obnovenia\",\"toto je interval obnovenia stránky ,\\n default je 20 minút, prosím vlož nový čas:\\n\\n\",\"Trans Out Rmn\",\"NaplánujOslavu\",\"malá slava\",\"veľká oslava\",\"nastavInterval surovinovej koncentrácie\",\n\t\t\t\"minút\",\"pozastavené\",\"spustené\",\"spusť\",\"pauza\",\"Naplánuj vylepšenie\",\"Vylepšiť Útok\",\"Vylepšiť Obranu\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Príliš málo surovín.\", \"Stavitelia majú momentálne veľa práce\", \"Stavanie kompletné\", \"Začína stavanie\", \"Vo vývoji\", \"Tvoj sklad je príliš malý. Prosím zvýš tvoj Sklad na pokračovanie stavania\", \"Tvoja Sýpka je príliš malá. Prosím zvýš tvoju Sýpku na pokračovanie stavania\", \"Dostatok surovín\",\"Nedostatok potravín: rozšír obilné polia najskôr!\",\"There is already a celebration going on\"];\n\t\taLangOtherText = [\"Dôležité poznámky\", \"Surovinové polia môžu byť len v hlavnej zvyšované na úroveň 20. Teraz nieje určená tvoja hlavná. Navštív tvoj Profil prosím.\", \"Skratka tu ^_^\", \"Nastavenie kompletné\", \"Zrušené\", \"Spusť úlohy\", \"Upgrade úspešný\", \"Spustenie úspešné\", \"Tvoj národ je neznámy, therefore your troop type. Navštív tvoj Profil na určenie tvojho národa.\", \"Prosím navštív tiež tvoj Dvor hrdinov na určenie rýchlosti a typu tvojho hrdinu.\"];\n\t\taLangResources = [\"drevo\",\"hlina\",\"železo\",\"obilie\"];\n\t\taLangTroops[0] = [\"Legionár\", \"Pretorián\", \"Imperián\", \"Equites Legáti\", \"Equites Imperátoris\", \"Equites Caesaris\", \"Rímske Baranidlo\", \"Ohnivý Katapult\", \"Senátor\", \"Osadník\", \"Hrdina\"];\n\t\taLangTroops[1] = [\"Pálkar\", \"Oštepár\", \"Bojovník so sekerou\", \"Špeh\", \"Rytier\", \"Teuton jazdec\", \"Germánske baranidlo\", \"Katapult\", \"Kmeňový vodca\", \"Osadník\", \"Hrdina\"];\n\t\taLangTroops[2] = [\"Falanx\", \"Šermiar\", \"Sliedič\", \"Theutates Blesk\", \"Druid jazdec\", \"Haeduan\", \"Drevené Baranidlo\", \"Vojnový Katapult\", \"Náčelník\", \"Osadník\", \"Hrdina\"];\n\t\taLangAttackType = [\"Podpora\", \"Útok\", \"Lúpež\"];\n\t\tbreak;\n\n\tcase \"id\":\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\taLangAllBuildWithId = [\"Penebangan Kayu\", \"Penggalian Tanah Liat\", \"Tambang Besi\", \"Ladang\", \"\", \"Penggergajian\", \"Pabrik Bata\", \"Peleburan Besi\", \"Penggilingan Gandum\", \"Toko Roti\", \"Gudang\", \"Lumbung\", \"Pandai Besi\", \"Pabrik Perisai\", \"Pusat Kebugaran\", \"Bangunan Utama\", \"Titik Temu\", \"Pasar\", \"Kedutaan\", \"Barak\", \"Istal\", \"Bengkel\", \"Akademi\", \"Cranny\", \"Balai Desa\", \"Kastil\", \"Istana\", \"Gudang Ilmu\", \"Kantor Dagang\", \"Barak Besar\", \"Istal Besar\", \"Pagar Batu\", \"Pagar Tanah\", \"Pagar kayu\", \"Tukang Batu\", \"Pabrik Bir\", \"Perangkap\",\"Padepokan\", \"Gudang Besar\", \"Lumbung Besar\", \"Keajaiban Dunia\", \"Tempat Minum Kuda\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Penebang Kayu\", \"Penggalian Tanah Liat\", \"Tambang Besi\", \"Ladang\", \"\", \"Penggergajian\", \"Pabrik Bata\", \"Peleburan Besi\", \"Penggilingan Gandum\", \"Toko Roti\", \"Gudang\", \"Lumbung\", \"Pandai Besi\", \"Pabrik Perisai\", \"Pusat Kebugaran\", \"Bangunan Utama\", \"Titik Temu\", \"Pasar\", \"Kedutaan\", \"Barak\", \"Istal\", \"Bengkel\", \"Akademi\", \"Cranny\", \"Balai Desa\", \"Kastil\", \"Istana\", \"Gudang Ilmu\", \"Kantor Dagang\", \"Barak Besar\", \"Istal Besar\", \"Pagar Batu\", \"Pagar Tanah\", \"Pagar kayu\", \"Tukang Batu\", \"Pabrik Bir\", \"Perangkap\",\"Padepokan\", \"Gudang Besar\", \"Lumbung Besar\", \"Keajaiban Dunia\", \"Tempat Minum Kuda\"];\n\t\t\t\taLangAddTaskText = [\"Tambah Pengerjaan\", \"Jenis\", \"Desa Aktif\", \"Target Pengerjaan\", \"ke\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \" Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t\t\taLangTaskKind = [\"Menaikkan\", \"Dirikan\", \"Serang\", \"riset\", \"latih\", \"Kirim\", \"NPC\", \"Bongkar\", \"Perayaan\"];\n\t\t\t\taLangGameText = [\"Tk\", \"Pedagang\", \"ID\", \"Ibukota\", \"Waktu mulai\", \"jangan gunakan waktu di atas\", \"ke\", \"Desa\", \"kirim\", \"dari\", \"Kirim ke\", \"Kiriman dari\", \"Kembali dari\", \"sumberdaya\", \"bangunan\", \"Mendirikan Bangunan\", \"kosong\", \"tingkat\"];\n\t\t\t\taLangRaceName = [\"Romawi\", \"Teuton\", \"Galia\"];\n\t\t\t\taLangTaskOfText = [\"Jadwal Menaikkan\", \"Jadwal Dirikan\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Otomatis kirim\", \"Autotransport is not opened\", \"Opened\", \"Pengiriman Berhasil\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Kayu/Liat/Besi\", \"Gandum\", \"Jadwal Pembongkaran\",\n\t\t\t\t\t\"Jadwal Serangan\", \"Tipe serangan\", \"Waktu tiba\", \"diulang\", \"rentang waktu\", \"00:30:00\", \"Target catapult\", \"Acak\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Pasukan terkirim\",\n\t\t\t\t\t\"Jadwal Pelatihan\", \"Tempat latih\", \"Pelatihan selesai\", \"Atur kirim\", \"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans Out Rmn\",\"Jadwal Perayaan\",\"Perayaan kecil\",\"Perayaan besar\",\"setInterval of Resources concentration\",\n\t\t\t\t\t\"minutes\", \".\",\".\",\"START\",\"STOP\",\"Jadwal Pengembangan\",\"Pengembangan serangan\",\"Pengembangan pertahanan\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"sumberdaya cukup pada\", \"Pekerja sedang bekerja\", \"sepenuhnya telah dikembangkan\", \"Dirikan bangunan\", \"Sedang Membangun\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"sumberdaya cukup pada\",\"Kurang makanan: kembangkan ladang terlebih dahulu\",\"There is already a celebration going on\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can be upgraded to level 20. Now your capital is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Hero's Mansion to determine the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t\t\taLangResources=[\"Kayu\",\"Liat\",\"Besi\",\"Gandum\"];\n\t\t\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangAttackType = [\"Bantuan\", \"Serang\", \"Rampok\"];\n\t\t\t\tbreak; \n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\taLangAllBuildWithId = [\"Penebang Kayu\", \"Penggalian Tanah Liat\", \"Tambang Besi\", \"Ladang\", \"\", \"Pemotong Kayu\", \"Pabrik Bata\", \"Pelebur Besi\", \"Penggiling Gandum\", \"Toko Roti\", \"Gudang\", \"Lumbung\", \"Pandai Besi\", \"Pabrik Perisai\", \"Pusat Kebugaran\", \"Bangunan Utama\", \"Titik Temu\", \"Pasar\", \"Kedutaan\", \"Barak\", \"Istal\", \"Bengkel\", \"Akademi\", \"Cranny\", \"Balai Desa\", \"Kastil\", \"Istana\", \"Gudang Ilmu\", \"Kantor Dagang\", \"Barak Besar\", \"Istal Besar\", \"Pagar Batu\", \"Pagar Tanah\", \"Pagar kayu\", \"Tukang Batu\", \"Pabrik Bir\", \"Perangkap\",\"Padepokan\", \"Gudang Besar\", \"Lumbung Besar\", \"Keajaiban Dunia\", \"Tempat Minum Kuda\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Penebang Kayu\", \"Penggalian Tanah Liat\", \"Tambang Besi\", \"Ladang\", \"\", \"Pemotong Kayu\", \"Pabrik Bata\", \"Pelebur Besi\", \"Penggiling Gandum\", \"Toko Roti\", \"Gudang\", \"Lumbung\", \"Pandai Besi\", \"Pabrik Perisai\", \"Pusat Kebugaran\", \"Bangunan Utama\", \"Titik Temu\", \"Pasar\", \"Kedutaan\", \"Barak\", \"Istal\", \"Bengkel\", \"Akademi\", \"Cranny\", \"Balai Desa\", \"Kastil\", \"Istana\", \"Gudang Ilmu\", \"Kantor Dagang\", \"Barak Besar\", \"Istal Besar\", \"Pagar Batu\", \"Pagar Tanah\", \"Pagar kayu\", \"Tukang Batu\", \"Pabrik Bir\", \"Perangkap\",\"Padepokan\", \"Gudang Besar\", \"Lumbung Besar\", \"Keajaiban Dunia\", \"Tempat Minum Kuda\"];\n\t\t\t\taLangAddTaskText = [\"Tambah Pengerjaan\", \"Jenis\", \"Desa Aktif\", \"Target Pengerjaan\", \"ke\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \" Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t\t\taLangTaskKind = [\"Menaikkan\", \"Dirikan\", \"Serang\", \"riset\", \"latih\", \"Kirim\", \"NPC\", \"Bongkar\", \"Perayaan\"];\n\t\t\t\taLangGameText = [\"Tk\", \"Pedagang\", \"ID\", \"Ibukota\", \"Waktu mulai\", \"jangan gunakan waktu di atas\", \"ke\", \"Desa\", \"kirim\", \"dari\", \"Kirim ke\", \"Kiriman dari\", \"Kembali dari\", \"sumberdaya\", \"bangunan\", \"Mendirikan Bangunan\", \"kosong\", \"tingkat\"];\n\t\t\t\taLangRaceName = [\"Romawi\", \"Teuton\", \"Galia\"];\n\t\t\t\taLangTaskOfText = [\"Jadwal Menaikkan\", \"Jadwal Dirikan\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Otomatis kirim\", \"Autotransport is not opened\", \"Opened\", \"Pengiriman Berhasil\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Kayu/Liat/Besi\", \"Gandum\", \"Jadwal Pembongkaran\",\n\t\t\t\t\t\"Jadwal Serangan\", \"Tipe serangan\", \"Waktu tiba\", \"diulang\", \"rentang waktu\", \"00:30:00\", \"Target catapult\", \"Acak\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Pasukan terkirim\",\n\t\t\t\t\t\"Jadwal Pelatihan\", \"Tempat latih\", \"Pelatihan selesai\", \"Atur kirim\", \"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans Out Rmn\",\"Jadwal Perayaan\",\"Perayaan kecil\",\"Perayaan besar\",\"setInterval of Resources concentration\",\n\t\t\t\t\t\"minutes\", \".\",\".\",\"START\",\"STOP\",\"Jadwal Pengembangan\",\"Pengembangan serangan\",\"Pengembangan pertahanan\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"sumberdaya cukup pada\", \"Pekerja sedang bekerja\", \"sepenuhnya telah dikembangkan\", \"Dirikan bangunan\", \"Sedang Membangun\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"sumberdaya akan cukup pada\",\"Gandum anda dalam kondisi minus maka tidak akan pernah sampai pada jumlah sumber daya yang dibutuhkan.\",\"There is already a celebration going on\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can be upgraded to level 20. Now your capital is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Hero's Mansion to determine the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t\t\taLangResources=[\"Kayu\",\"Liat\",\"Besi\",\"Gandum\"];\n\t\t\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangAttackType = [\"Bantuan\", \"Serang\", \"Rampok\"];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrowLogicError ( \"initializeLangVars():: Travian Version not set, when initializing language variables for \\'id\\'!!\" );\n\t\t}\n\t\tbreak;\n\n\n\tcase \"au\":\t\n\tcase \"uk\":\t\n\tcase \"com\": // thanks ieyp\n\tdefault:\n\t\t// used for logic, translation required\n\t\taLangAllBuildWithId = aLangAllBuildWithIdComDef.slice(0);\n\t\t// used for logic, translation required\n\t\taLangAllBuildAltWithId = aLangAllBuildAltWithIdComDef.slice(0);\n\t\t// used for display only\n\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t// used for display only\n\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\t// used for logic and display, translation required\n\t\taLangGameText = aLangGameTextComDef.slice(0);\n\t\t// used for getMainVillageid(), translation required\n\t\taLangRaceName = aLangRaceNameComDef.slice(0);\n\t\t// used for display only\n\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Crop\", \"Schedule demolition\",\n\t\t\t\t\"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\", \"00:30:00\", \"Catapult target\", \"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\",\n\t\t\t\t\"Schedule Train\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"ScheduleParty\", \"small party\", \"big party\", \"setInterval of Resources concentration\",\n\t\t\t\t\"minutes\", \".\", \".\", \"START\", \"STOP\", \"Schedule Improve\", \"Improve Attack\", \"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t// used for logic & display, translation required\n\t\taLangErrorText = aLangErrorTextComDef.slice(0);\n\t\t// used for display\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t// used for display only, however translation can be done\n\t\taLangResources = aLangResourcesComDef.slice(0);\n\t\t// used for logic & display, translation required\n\t\taLangTroops[0] = aLangTroopsComDef[0].slice(0);\n\t\taLangTroops[1] = aLangTroopsComDef[1].slice(0);\n\t\taLangTroops[2] = aLangTroopsComDef[2].slice(0);\n\t\t// used for display only, however translation can be done\n\t\taLangAttackType = aLangAttackTypeComDef.slice(0);\n\t\tbreak;\n\n\tcase \"pl\": // partial translation by deFox\n\t\t// 2011.02.13 -- partial translation by Blaker\n\t\taLangAllBuildWithId = [\"Las\", \"Kopalnia gliny\", \"Kopalnia żelaza\", \"Pole zboża\", \"\", \"Tartak\", \"Cegielnia\", \"Huta stali\", \"Młyn\", \"Piekarnia\", \"Magazyn surowców\", \"Spichlerz\", \"Zbrojownia\", \"Kuźnia\", \"Plac turniejowy\", \"Główny budynek\", \"Miejsce zbiórki\", \"Rynek\", \"Ambasada\", \"Koszary\", \"Stajnia\", \"Warsztat\", \"Akademia\", \"Kryjówka\", \"Ratusz\", \"Rezydencja\", \"Pałac\", \"Skarbiec\", \"Targ\", \"Duże koszary\", \"Duża stajnia\", \"Mur obronny\", \"Wał ziemny\", \"Palisada\", \"Kamieniarz\", \"Browar\", \"Traper\",\"Dwór bohatera\", \"Duży magazyn surowców\", \"Duży spichlerz\", \"Cud świata\", \"Wodopój\"];\n\t\taLangAllBuildAltWithId = [\"Las\", \"Kopalnia gliny\", \"Kopalnia żelaza\", \"Pole zboża\", \"\", \"Tartak\", \"Cegielnia\", \"Huta stali\", \"Młyn\", \"Piekarnia\", \"Magazyn surowców\", \"Spichlerz\", \"Zbrojownia\", \"Kuźnia\", \"Plac turniejowy\", \"Główny budynek\", \"Miejsce zbiórki\", \"Rynek\", \"Ambasada\", \"Koszary\", \"Stajnia\", \"Warsztat\", \"Akademia\", \"Kryjówka\", \"Ratusz\", \"Rezydencja\", \"Pałac\", \"Skarbiec\", \"Targ\", \"Duże koszary\", \"Duża stajnia\", \"Mur obronny\", \"Wał ziemny\", \"Palisada\", \"Kamieniarz\", \"Browar\", \"Traper\",\"Dwór bohatera\", \"Duży magazyn surowców\", \"Duży spichlerz\", \"Cud świata\", \"Wodopój\"];\n\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\taLangGameText = [\"Lvl\", \"Merchants\", \"ID\", \"Capital\", \"Start time\", \"this timeseting is unuseful now.\", \"to\", \"Village\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Construct new building\", \"empty\", \"level\"];\n\t\taLangRaceName = [\"Rzymianie\", \"Germanie\", \"Galowie\"];\n\t\taLangTaskOfText = [\"Zaplanuj Upgrade\", \"Zaplanuj Budowę\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Lista zadań\", \"Trans In limit\", \"Domyśl.\", \"Zmień\", \"Drewno/Glina/Żelazo\", \"Zboże\", \"Schedule demolition\",\n\t\t\t\"Zaplanuj atak\", \"Typ Ataku\", \"Czas podróży\", \"repeat times\", \"odstęp czasu\", \"00:30:00\",\"Cel dla katapult\", \"Losowy\", \"Nieznany\", \"times\", \"Mies.\", \"Dzień\", \"Troops sent\",\n\t\t\t\"Zaplanuj szkolenie\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\",\"this is the interval of page reload,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans Out Rmn\",\"ScheduleParty\",\"small party\",\"big party\",\"setInterval of Resources concentration\",\n\t\t\t\"minut\", \".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Zbyt mało surowców.\", \"The workers are already at work.\", \"Construction completed\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\",\"Lack of food: extend cropland first\",\"There is already a celebration going on\"];\n\t\taLangOtherText = [\"Ważna wiadomość\", \"Tylko w stolicy można rozbudować teren do poz. 20.<br/>Aktywna wioska nie została rozpoznana jako stolica.<br/>Wejdź w Ustawienia by wywołać aktualizację.\", \"Szybki link ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"Upgrade successfully\", \"Run successfully\", \"Nie udało się określić twojej rasy, stąd typy jednostek<br/>nie są znane. Wejdź w Ustawienia by skrypt wykrył twoją rasę.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\"];\n\t\taLangResources = [\"drewno\", \"glina\", \"żelazo\", \"zboże\"];\n\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Hero\"];\n\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Hero\"];\n\t\taLangTroops[2] = [\"Falanga\", \"Miecznik\", \"Tropiciel\", \"Grom Teutatesa\", \"Jeździec druidzki\", \"Haeduan\", \"Taran\", \"Trebusz\", \"Herszt\", \"Osadnicy\", \"Bohater\"];\n\t\taLangAttackType = [\"Posiłki\", \"Atak normalny\", \"Grabież\"];\n\t\tbreak;\n\n\tcase \"ua\":\n\t\taLangAllBuildWithId = [\"Лісоповал\", \"Глиняний кар'єр\", \"Залізна копальня\", \"Ферма\", \"\", \"Деревообробний завод\", \"Цегляний завод\", \"Чавуноливарний завод\", \"Млин\", \"Пекарня\", \"Склад\", \"Зернова комора\", \"Кузня зброї\", \"Кузня обладунків\", \"Арена\", \"Головна будівля\", \"Пункт збору\", \"Ринок\", \"Посольство\", \"Казарма\", \"Стайня\", \"Майстерня\", \"Академія\", \"Схованка\", \"Ратуша\", \"Резиденція\", \"Палац\", \"Скарбниця\", \"Торгова палата\", \"Велика казарма\", \"Велика стайня\", \"Міська стіна\", \"Земляний вал\", \" Огорожа\", \"Каменяр\", \"Пивна\", \"Капканщик\",\"Таверна\", \"Великий склад\", \"Велика Зернова комора\", \"Чудо світу\", \"Водопій\"];\n\t\taLangAllBuildAltWithId = [\"Лісоповал\", \"Глиняний кар'єр\", \"Залізна копальня\", \"Ферма\", \"\", \"Деревообробний завод\", \"Цегляний завод\", \"Чавуноливарний завод\", \"Млин\", \"Пекарня\", \"Склад\", \"Зернова комора\", \"Кузня зброї\", \"Кузня обладунків\", \"Арена\", \"Головна будівля\", \"Пункт збору\", \"Ринок\", \"Посольство\", \"Казарма\", \"Стайня\", \"Майстерня\", \"Академія\", \"Схованка\", \"Ратуша\", \"Резиденція\", \"Палац\", \"Скарбниця\", \"Торгова палата\", \"Велика казарма\", \"Велика стайня\", \"Міська стіна\", \"Земляний вал\", \" Огорожа\", \"Каменяр\", \"Пивна\", \"Капканщик\",\"Таверна\", \"Великий склад\", \"Велика Зернова комора\", \"Чудо світу\", \"Водопій\"];\n\t\taLangAddTaskText = [\"Додати завдання\", \"Спосіб\", \"Активне поселення\", \"Ціль завдання\", \"| Ціль\", \"Тип\", \"Підтримка будівництва\", \"Концентрація ресурсів\", \"Вверх\", \"Вниз\", \"\", \"\", \"\", \"Видалити усі завдання\"];\n\t\taLangTaskKind = [\"Покращити:\", \"Нове завдання:\", \"Атакувати:\", \"Розвідати:\", \" наняти:\", \"Відправити ресурси:\", \"NPC:\", \"Зруйнувати:\", \"Урочистість:\"];\n\t\taLangGameText = [\" Рівень \", \"Торговці\", \"ID\", \"Столиця\", \"Час початку\", \"(тимчасово не працює)\", \"в\", \"Поселення\", \"Транспортування\", \"з\", \"Транспортування в\", \"Транспортування из\", \"Повернення з\", \"ресурси\", \"будівля\", \"Побудувати нову будівлю\", \"пусто\", \"рівень\"];\n\t\taLangRaceName = [\"Римляни\", \"Тевтонці\", \"Галли\"];\n\t\taLangTaskOfText = [\"Запланувати удосконалення\", \"Запланувати нове завдання\", \"Качати реурси\", \"Викл\", \"Старт\", \"Вкл\", \"стоп\", \"Розполілення полів в поселенні: \", \"Автовідправлення\", \"Автовідправлення викл.\", \"Вкл.\", \"Успішно відправленно\", \"* Задачі *\", \"Обмеження ввозу\", \"Ні\", \"Змінити \", \"Дерево/Глина/Залізо\", \"Зерно\", \"Запланувати зруйнування\",\n\t\t\t\"Запланувати атаку\", \"Тип атаки\", \"Час в дорозі\", \"повтори\", \"проміжок\",\"00:30:00\",\"Ціль катов\",\"Випадково\", \"Невідомо\", \" раз\", \"/\", \" :дата/час: \", \"Війска\",\n\t\t\t\"Запланувати найм\",\"Train site\",\"Навчання військ завершено\",\"цілеве відправлення\",\"Інтервал оновлення\",\"Це інтервал оновлення сторінки ,\\n по замовчуванню - 20 хвилин, Введіть новоий час:\\n\\n\",\"Обмеження вивозу\",\"Запланувати святкування\",\"Малий праздник\",\"Великий праздник\",\"Встановлення інтервала концентрації ресурсів\",\n\t\t\t\"хвилини\",\"зупинено\",\"працює\",\"старт\",\"пауза\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Недостатньо сировини\", \"Всі будівельники зараз зайняті\", \"Це завдання зупинено повністю\", \"Починаю будівництво\", \"Процес розвитку\", \"Недостатня місткість складу\", \"Недостатня місткість Зернової комори\", \"Достатньо ресурсів\",\"\",\"Проводится урочистість\"];\n\t\taLangOtherText = [\"Важливі замітки\", \"Тільки в столиці поля можуть бути до рівня 20. Столиця не визначена.Зайдіть в профіль будьласка\", \"Ссилка тут ^_^\", \"Настройка завершена\", \"Відмінено\", \"Почати завдання\", \"Удосконалення пройшло успішно\", \"Успішно\", \"Ваш народ невизначений.Будьласка зайдіть в профіль.\", \"Також будьласка зайдіть в таверну для визначення типу та скорості героя\"];\n\t\taLangResources=[\"Деревина\",\"Глина\",\"Залізо\",\"Зерно\"];\n\t\taLangTroops[0] = [\"Легіонер\", \"Преторіанець\", \"Імперіанець\", \"Кінний розвідник\", \"Кіннота імператора\", \"Кіннота Цезаря\", \"Таран\", \"Вогняна катапульта\", \"Сенатор\", \"Поселенець\", \"Герой\"];\n\t\taLangTroops[1] = [\"Дубинник\", \"Списник\", \"Сокирник\", \"Скаут\", \"Паладин\", \"Тевтонський вершник\", \"Стінобитне знаряддя\", \"Катапульта\", \"Ватажок\", \"Поселенець\", \"Герой\"];\n\t\taLangTroops[2] = [\"Фаланга\", \"Мечник\", \"Слідопит\", \"Тевтацький грім\", \"Друїд-вершник\", \"Едуйська кіннота\", \"Таран\", \"Катапульта\", \"Лідер\", \"Поселенець\", \"Герой\"];\n\t\taLangAttackType = [\"Підкріплення\", \"Напад\", \"Набіг\"];\n\t\tbreak;\n\n\tcase \"tr\": // by karambol update the 27 Mar 2010 by SARLAK\n aLangAllBuildWithId = [\"Oduncu\", \"Tuğla Ocağı\", \"Demir Madeni\", \"Tarla\", \"\", \"Kereste Fabrikası\", \"Tuğla Fırını\", \"Demir Dökümhanesi\", \"Değirmen\", \"Ekmek Fırını\", \"Hammadde deposu\", \"Tahıl Ambarı\", \"Silah Dökümhanesi\", \"Zırh Dökümhanesi\", \"Turnuva Yeri\", \"Merkez Binası\", \"Askeri Üs\", \"Pazar Yeri\", \"Elçilik\", \"Kışla\", \"Ahır\", \"Tamirhane\", \"Akademi\", \"Sığınak\", \"Belediye\", \"Köşk\", \"Saray\", \"Hazine\", \"Ticari Merkez\", \"Büyük Kışla\", \"Büyük Ahır\", \"Sur\", \"Toprak Siper\", \"Çit\", \"Taşçı\", \"İçecek Fabrikası\", \"Tuzakçı\",\"Kahraman Kışlası\", \"Büyük Hammadde deposu\", \"Büyük Tahıl Ambarı\", \"Dünya Harikası\", \"Yalak\"];\n aLangAllBuildAltWithId = [\"Oduncu\", \"Tuğla Ocağı\", \"Demir Madeni\", \"Tarla\", \"\", \"Kereste Fabrikası\", \"Tuğla Fırını\", \"Demir Dökümhanesi\", \"Değirmen\", \"Ekmek Fırını\", \"Hammadde deposu\", \"Tahıl Ambarı\", \"Silah Dökümhanesi\", \"Zırh Dökümhanesi\", \"Turnuva Yeri\", \"Merkez Binası\", \"Askeri Üs\", \"Pazar Yeri\", \"Elçilik\", \"Kışla\", \"Ahır\", \"Tamirhane\", \"Akademi\", \"Sığınak\", \"Belediye\", \"Köşk\", \"Saray\", \"Hazine\", \"Ticari Merkez\", \"Büyük Kışla\", \"Büyük Ahır\", \"Sur\", \"Toprak Siper\", \"Çit\", \"Taşçı\", \"İçecek Fabrikası\", \"Tuzakçı\",\"Kahraman Kışlası\", \"Büyük Hammadde deposu\", \"Büyük Tahıl Ambarı\", \"Dünya Harikası\", \"Yalak\"];\n aLangAddTaskText = [\"Görev Ekle\", \"Stil\", \"Aktif Köy\", \"Görev Hedefi\", \"Hedef\", \"Türü\", \"İnşaat Desteği\", \"Hammadde karışımı\", \"Yukarı Taşı\", \"Aşağı Taşı\", \"Sil\", \"Görev İçeriği\", \"Sırala\", \"Tüm görevleri sil\"]; \n aLangTaskKind = [\"Geliştirilen Bina :\", \"Yeni Bina :\", \"Hücum\", \"Araştır\", \"Yetiştir\", \"Gönder\", \"NPC\", \"Yıkılan Bina :\", \"Festival\"]; \n aLangGameText = [\"Seviye \", \"Tüccar\", \"ID\", \"Başkent\", \"Başlangıç zamanı\", \"Değiştirilemez.\", \"buraya\", \"Aktif Köy\", \"gönder\", \"buradan\", \"Gönderiliyor\", \"Gönderildi\", \"Dönüş\", \"hammadde\", \"bina\", \"Yeni bina kur\", \"boş\", \"Seviye \"]; \n aLangRaceName = [\"Romalılar\", \"Cermenler\", \"Galyalılar\"]; \n aLangTaskOfText = [\"Geliştirme Zamanla\", \"Yeni Bina Kurulumu\", \"Otomatik hammadde güncelle\", \"Çalışmıyor\", \"Başlat\", \"Çalışıyor\", \"Durdur\", \"Bu köyün kaynak alanları dağılımıdır \", \"Otomatik Gönderme\", \"Otomatik gönderme açılmadı\", \"Açıldı\", \"Gönderme Tamamladı\", \"\", \"Gönderme limiti\", \"Varsayılan\", \"Değiştir\", \"Odun/Tuğla/Demir\", \"Tahıl\", \"Yıkımı zamanla\", \n \"Hücum zamanla\", \"Hücum Şekli\", \"Varış zamanı\", \"Tekrar Sayısı\", \"Tekrar Aralığı\",\"00:30:00\",\"Mancınık hedef\",\"Rastgele\", \"Bilinmeyen\", \"kere\", \"Ay\", \"Gün\", \"Asker gönder\", \"Asker Yetiştir\",\"Yetiştirilme Noktası\",\"Eğitim görevi tamamlandı\",\"Hammadde Gönderimi Zamanla\",\"Gerçekleşmeyen Kurulumu Tekrarlama Süresi\",\"Tekrar deneme süresini giriniz.\\n(Varsayılan Değer: 20 Dakika)\",\"Trans Out Rmn\",\"Festivalzamanla\",\"Küçük festival\",\"Büyük festival\",\"Hammadde Toplama Aralığı\", \n \"dakikalar\",\"Pasif\",\"Aktif\",\"Aktif Et\",\"Pasif Et\",\"Asker Gelişimi Zamanla\",\"Silah Gelişimi\",\"Zırh Gelişimi\",\"saati\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"]; \n aLangErrorText = [\"Çok az kaynak.\", \"Işçi zaten iş başında.\", \"İnşaat tamamlandı\", \"İnşaat başlatılıyor\", \"Araştırma yapılıyor\", \"İnşaata Hammadde deposunu geliştirip devam ediniz.\", \"İnşaata Tahıl ambarını geliştirip devam ediniz.\", \"Yeterli hammadde\",\"Kaynak eksikliği: önce Tarlanı geliştir\",\"Şu anda bir festival yapılıyor zaten\"]; \n aLangOtherText = [\"Önemli not\", \"Sadece başkent için hammadde üretebilirsiniz <br/>be Güncellendi seviye 20. Şimdi Başkentin<br/> tesbit edilemedi. Profilinizi ziyaret ediniz.\", \"Buraya kısa yol ^_^\", \"Kurulum tamamlandı\", \"Vazgeçildi\", \"Görevleri başlat\", \"Güncelleme tamamlandı\", \"Çalışma tamam\", \"Irkınız bilinmediğinden asker türünüz belilenemedi <br/>Profilinizi ziyaret edip ırkınızı belirleyin<br/>\", \"Ayrıca kahraman kışlasınıda ziyaret edin<br/> Kahramanınızın hızı ve tipi.\"]; \n aLangResources=[\"Odun\",\"Tuğla\",\"Demir\",\"Tahıl\"]; \n aLangTroops[0] = [\"Lejyoner\", \"Pretoryan\", \"Emperyan\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Koçbaşı\", \"Ateş Mancınığı\", \"Senatör\", \"Göçmen\", \"Kahraman\"]; \n aLangTroops[1] = [\"Tokmak Sallayan\", \"Mızrakçı\", \"Balta Sallayan\", \"Casus\", \"Paladin\", \"Toyton\", \"Koçbaşı\", \"Mancınık\", \"Reis\", \"Göçmen\", \"Kahraman\"]; \n aLangTroops[2] = [\"Phalanx\", \"Kılıçlı\", \"Casus\", \"Toytatın Şimşeği\", \"Druyid\", \"Heduan\", \"Koçbaşı\", \"Mancınık\", \"Kabile Reisi\", \"Göçmen\", \"Kahraman\"]; \n aLangAttackType = [\"Destek\", \"Saldırı: Normal\", \"Saldırı: Yağma\"]; \n break;\n\n\tcase \"br\":\n\t\taLangAllBuildWithId = [\"Bosque\", \"Poço de Barro\", \"Mina de Ferro\", \"Campo de Cereais\", \"\", \"Serraria\", \"Alvenaria\", \"Fundição\", \"Moinho\", \"Padaria\", \"Armazém\", \"Celeiro\", \"Ferreiro\", \"Fábrica de Armaduras\", \"Praça de torneios\", \"Edifício principal\", \"Ponto de reunião militar\", \"Mercado\", \"Embaixada\", \"Quartel\", \"Cavalaria\", \"Oficina\", \"Academia\", \"Esconderijo\", \"Casa do Povo\", \"Residência\", \"Palácio\", \"Tesouraria\", \"Companhia do Comércio\", \"Grande Quartel\", \"Grande Cavalaria\", \"Muralha\", \"Barreira\", \"Paliçada\", \"Pedreiro\", \"Cervejaria\", \"Fábrica de Armadilhas\",\"Mansão do Herói\", \"Grande armazém\", \"Grande Celeiro\", \"Maravilha do Mundo\", \"Bebedouro para cavalos\"];\n\t\taLangAllBuildAltWithId = [\"Bosque\", \"Poço de Barro\", \"Mina de Ferro\", \"Campo de Cereais\", \"\", \"Serraria\", \"Alvenaria\", \"Fundição\", \"Moinho\", \"Padaria\", \"Armazém\", \"Celeiro\", \"Ferreiro\", \"Fábrica de Armaduras\", \"Praça de torneios\", \"Edifício principal\", \"Ponto de reunião militar\", \"Mercado\", \"Embaixada\", \"Quartel\", \"Cavalaria\", \"Oficina\", \"Academia\", \"Esconderijo\", \"Casa do Povo\", \"Residência\", \"Palácio\", \"Tesouraria\", \"Companhia do Comércio\", \"Grande Quartel\", \"Grande Cavalaria\", \"Muralha\", \"Barreira\", \"Paliçada\", \"Pedreiro\", \"Cervejaria\", \"Fábrica de Armadilhas\",\"Mansão do Herói\", \"Grande armazém\", \"Grande Celeiro\", \"Maravilha do Mundo\", \"Bebedouro para cavalos\"];\n\t\taLangAddTaskText = [\"Adicionar tarefa\", \"Estilo\", \"Aldeia Activa\", \"Alvo\", \"Para\", \"Modo\", \"Ajuda na Construção\", \"Quantidade de recursos\", \"Mover para cima\", \"Mover para baixo\", \"Apagar\", \"&#160;&#160;&#160;Tarefas\", \"Mover \", \"Eliminar todas as tarefas\"];\n\t\taLangTaskKind = [\"Evolução\", \"Novo construção\", \"Ataque\", \"Pesquisa\", \"Treino\", \"Transporte\", \"NPC\", \"Demolição\", \"Celebração\"];\n\t\taLangGameText = [\"Lvl\", \"Mercadores\", \"Identificação\", \"Capital\", \"Inicio\", \"this timeseting is unuseful now.\", \"Para\", \"Aldeia\", \"Transporte\", \"de\", \"Transporte para\", \"Transporte de\", \"A regressar de\", \"Recursos\", \"Edificio\", \"Construir novo edifício\", \"Vazio\", \"Nivel\"];\n\t\taLangRaceName = [\"Romanos\", \"Teutões\", \"Gauleses\"];\n\t\taLangTaskOfText = [\"Agendar Evolução\", \"Agendar nova construção\", \"ResourcesUpD\", \"OFF\", \"Iniciar\", \"ON\", \"Parar\", \"A distribuição dos campos desta aldeia é \", \"Autotransporte\", \"Autotransporte não está aberto\", \"Aberto\", \"Transporte com sucesso\", \"Lista de agendamento\", \"Limit\", \"Default\", \"Alterar\", \"madeira/barro/ferro\", \"cereal\", \"Agendamento de demolição\",\n\t\t\t\"Agendamento de ataque\", \"Tipo de ataque\", \"Tempo de viagem\", \"Repetir número de vezes\", \"Tempo de intervalo\",\"00:30:00\",\"Alvo catapulta\",\"Aleatório\", \"Desconhecido\", \"Vezes\", \" Mês\", \" Dia\", \"Tropas enviadas\",\n\t\t\t\"Agendamento de treino\",\"localização de tropas\",\"Agendamento de treino feito\",\"Transporte personalizado\",\"Setup Interval Time of Reload\",\"This is the interval of page reload ,\\n default são 20 minutos, Insira novo tempo:\\n\\n\",\"Remain\",\"Agendar Celebração\",\"pequena celebração\",\"grande celebração\",\"Set Interval of Resources concentration\",\n\t\t\t\"minutos\",\"parado\",\"ligado\",\"ligar\",\"parar\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Poucos recursos.\", \"Os trabalhadores já estão a trabalhar.\", \"Construção completa\", \"Inicio da construção\", \"Em desenvolvimento\", \"Seu Armazém é pequeno. Evolua o seu armazém para continuar a sua construção\", \"Seu Celeiro é pequeno. Evolua o seu Celeiro para continuar a sua construção\", \"Recursos suficientes\",\"Já se encontra uma celebração em curso\"];\n\t\taLangOtherText = [\"Nota importante\", \"Apenas os campos de recursos da capital <br/>podem ser elevados a nivel 20 . A sua capital <br/> nao está detectavel. Por favor visite o seu perfil.\", \"Atalho aqui ^_^\", \"Instalação concluída\", \"Cancelado\", \"Iniciar as tarefas\", \"Upgrade com sucesso\", \"Executar com sucesso\", \"Sua raça é desconhecida, e o seu tipo de tropa também. <br/>Visite o seu perfil para determinar as raça.<br/>\", \"Por favor visite a sua mansão do heroi para determinar<br/> a velocidade e o tipo de heroi.\"];\n\t\taLangResources=[\"Madeira\",\"Barro\",\"Ferro\",\"Cereais\"];\n\t\taLangTroops[0] = [\"Legionário\", \"Pretoriano\", \"Imperiano\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Aríete\", \"Catapulta de Fogo\", \"Senador\", \"Colonizador\", \"Heroi\"];\n\t\taLangTroops[1] = [\"Salteador\", \"Lanceiro\", \"Bárbaro\", \"Espião\", \"Paladino\", \"Cavaleiro Teutão\", \"Aríete\", \"Catapulta\", \"Chefe\", \"Colonizador\", \"Heroi\"];\n\t\taLangTroops[2] = [\"Falange\", \"Espadachim\", \"Batedor\", \"Trovão Theutate\", \"Cavaleiro Druida\", \"Haeduano\", \"Aríete\", \"Trabuquete\", \"Chefe de Clã\", \"Colonizador\", \"Heroi\"];\n\t\taLangAttackType = [\"Reforço\", \"Ataque\", \"Assalto\"];\n\t\tbreak;\n\n\n case \"pt\": // thanks RASCO and Tuga\n\t\taLangAllBuildWithId = [\"Bosque\", \"Poço de Barro\", \"Mina de Ferro\", \"Campo de Cereais\", \"\", \"Serração\", \"Alvenaria\", \"Fundição\", \"Moinho\", \"Padaria\", \"Armazém\", \"Celeiro\", \"Ferreiro\", \"Fábrica de Armaduras\", \"Praça de torneios\", \"Edifício principal\", \"Ponto de reunião militar\", \"Mercado\", \"Embaixada\", \"Quartel\", \"Cavalariça\", \"Oficina \", \"Academia\", \"Esconderijo\", \"Casa do Povo\", \"Residência\", \"Palácio\", \"Tesouraria\", \"Companhia do Comércio\", \"Grande Quartel\", \"Grande Cavalariça\", \"Muralha\", \"Barreira\", \"Paliçada\", \"Pedreiro\", \"Cervejaria\", \"Fábrica de Armadilhas\",\"Mansão do Herói\", \"Grande armazém\", \"Grande Celeiro\", \"Maravilha do Mundo\", \"Bebedouro para cavalos\"];\n\t\taLangAllBuildAltWithId = [\"Bosque\", \"Poço de Barro\", \"Mina de Ferro\", \"Campo de Cereais\", \"\", \"Serração\", \"Alvenaria\", \"Fundição\", \"Moinho\", \"Padaria\", \"Armazém\", \"Celeiro\", \"Ferreiro\", \"Fábrica de Armaduras\", \"Praça de torneios\", \"Edifício principal\", \"Ponto de reunião militar\", \"Mercado\", \"Embaixada\", \"Quartel\", \"Cavalariça\", \"Oficina \", \"Academia\", \"Esconderijo\", \"Casa do Povo\", \"Residência\", \"Palácio\", \"Tesouraria\", \"Companhia do Comércio\", \"Grande Quartel\", \"Grande Cavalariça\", \"Muralha\", \"Barreira\", \"Paliçada\", \"Pedreiro\", \"Cervejaria\", \"Fábrica de Armadilhas\",\"Mansão do Herói\", \"Grande armazém\", \"Grande Celeiro\", \"Maravilha do Mundo\", \"Bebedouro para cavalos\"];\n\t\taLangAddTaskText = [\"Adicionar tarefa\", \"Estilo\", \"Aldeia Activa\", \"Alvo\", \"Para\", \"Modo\", \"Ajuda na Construção\", \"Quantidade de recursos\", \"Mover para cima\", \"Mover para baixo\", \"Apagar\", \"&#160;&#160;&#160;Tarefas\", \"Mover \", \"Eliminar todas as tarefas\"];\n\t\taLangTaskKind = [\"Evolução\", \"Novo construção\", \"Ataque\", \"Pesquisa\", \"Treino\", \"Transporte\", \"NPC\", \"Demolição\", \"Celebração\"];\n\t\taLangGameText = [\"Lvl\", \"Mercadores\", \"Identificação\", \"Capital\", \"Inicio\", \"this timeseting is unuseful now.\", \"Para\", \"Aldeia\", \"Transporte\", \"de\", \"Transporte para\", \"Transporte de\", \"A regressar de\", \"Recursos\", \"Edificio\", \"Construir novo edifício\", \"Vazio\", \"Nivel\"];\n\t\taLangRaceName = [\"Romanos\", \"Teutões\", \"Gauleses\"];\n\t\taLangTaskOfText = [\"Agendar Evolução\", \"Agendar nova construção\", \"ResourcesUpD\", \"OFF\", \"Iniciar\", \"ON\", \"Parar\", \"A distribuição dos campos desta aldeia é \", \"Autotransporte\", \"Autotransporte não está aberto\", \"Aberto\", \"Transporte com sucesso\", \"Lista de agendamento\", \"Limit\", \"Default\", \"Alterar\", \"madeira/barro/ferro\", \"cereal\", \"Agendamento de demolição\",\n\t\t\t\"Agendamento de ataque\", \"Tipo de ataque\", \"Tempo de viagem\", \"Repetir número de vezes\", \"Tempo de intervalo\",\"00:30:00\",\"Alvo catapulta\",\"Aleatório\", \"Desconhecido\", \"Vezes\", \" Mês\", \" Dia\", \"Tropas enviadas\", \"Agendamento de treino\",\"localização de tropas\",\"Agendamento de treino feito\",\"Transporte personalizado\",\"Setup Interval Time of Reload\",\"This is the interval of page reload ,\\n default são 20 minutos, Insira novo tempo:\\n\\n\",\"Remain\",\"Agendar Celebração\",\"pequena celebração\",\"grande celebração\",\"Set Interval of Resources concentration\",\"minutos\",\".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Poucos recursos.\", \"Os trabalhadores já estão a trabalhar.\", \"Construção completa\", \"Inicio da construção\", \"Em desenvolvimento\", \"Seu Armazém é pequeno. Evolua o seu armazém para continuar a sua construção\", \"Seu Celeiro é pequeno. Evolua o seu Celeiro para continuar a sua construção\", \"Recursos suficientes\",\"Já se encontra uma celebração em curso\"];\n\t\taLangOtherText = [\"Nota importante\", \"Apenas os campos de recursos da capital <br/>podem ser elevados a nivel 20 . A sua capital <br/> nao está detectavel. Por favor visite o seu perfil.\", \"Atalho aqui ^_^\", \"Instalação concluída\", \"Cancelado\", \"Iniciar as tarefas\", \"Upgrade com sucesso\", \"Executar com sucesso\", \"Sua raça é desconhecida, e o seu tipo de tropa também. <br/>Visite o seu perfil para determinar as raça.<br/>\", \"Por favor visite a sua mansão do heroi para determinar<br/> a velocidade e o tipo de heroi.\"];\n\t\taLangResources = [\"Madeira\",\"Barro\",\"Ferro\",\"Cereais\"];\n\t\taLangTroops[0] = [\"Legionário\", \"Pretoriano\", \"Imperiano\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Aríete\", \"Catapulta de Fogo\", \"Senador\", \"Colonizador\", \"Heroi\"];\n\t\taLangTroops[1] = [\"Salteador\", \"Lanceiro\", \"Bárbaro\", \"Espião\", \"Paladino\", \"Cavaleiro Teutão\", \"Aríete\", \"Catapulta\", \"Chefe\", \"Colonizador\", \"Heroi\"];\n\t\taLangTroops[2] = [\"Falange\", \"Espadachim\", \"Batedor\", \"Trovão Theutate\", \"Cavaleiro Druida\", \"Haeduano\", \"Aríete\", \"Trabuquete\", \"Chefe de Clã\", \"Colonizador\", \"Heroi\"];\n\t\taLangAttackType = [\"Reforço\", \"Ataque\", \"Assalto\"];\n\t\tbreak;\n\n case \"my\":\n\t\taLangAllBuildWithId = [\"Kawasan Pembalakan\", \"Kuari Tanat Liat\", \"Lombong Bijih Besi\", \"Ladang\", \"\", \"Kilang Papan\", \"Kilang Bata\", \"Faundri Besi\", \"Pengisar Bijian\", \"Kilang Roti\", \"Gudang\", \"Jelapang\", \"Kedai Senjata\", \"Kedai Perisai\", \"Gelanggang Latihan\", \"Bangunan Utama\", \"Titik Perhimpunan\", \"Pasar\", \"Kedutaan\", \"Berek\", \"Kandang Kuda\", \"Bengkel\", \"Akademi\", \"Gua\", \"Dewan Perbandaran\", \"Residen\", \"Istana\", \"Perbendaharaan\", \"Pejabat Dagangan\", \"Berek Besar\", \"Kandang Kuda Besar\", \"Tembok Bandar\", \"Tembok Tanah\", \"Pagar Kubu\", \"Kedai Tukang Batu\", \"Kilang Bir\", \"Pemerangkap\",\"Rumah Agam Wira\", \"Gudang Besar\", \"Jelapang Besar\", \"Dunia Keajaiban\", \"Palung Kuda\"];\n\t\taLangAllBuildAltWithId = [\"Kawasan Pembalakan\", \"Kuari Tanat Liat\", \"Lombong Bijih Besi\", \"Ladang\", \"\", \"Kilang Papan\", \"Kilang Bata\", \"Faundri Besi\", \"Pengisar Bijian\", \"Kilang Roti\", \"Gudang\", \"Jelapang\", \"Kedai Senjata\", \"Kedai Perisai\", \"Gelanggang Latihan\", \"Bangunan Utama\", \"Titik Perhimpunan\", \"Pasar\", \"Kedutaan\", \"Berek\", \"Kandang Kuda\", \"Bengkel\", \"Akademi\", \"Gua\", \"Dewan Perbandaran\", \"Residen\", \"Istana\", \"Perbendaharaan\", \"Pejabat Dagangan\", \"Berek Besar\", \"Kandang Kuda Besar\", \"Tembok Bandar\", \"Tembok Tanah\", \"Pagar Kubu\", \"Kedai Tukang Batu\", \"Kilang Bir\", \"Pemerangkap\",\"Rumah Agam Wira\", \"Gudang Besar\", \"Jelapang Besar\", \"Dunia Keajaiban\", \"Palung Kuda\"];\n\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \" Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\taLangTaskKind = [\"Tingkatkan\", \"Bina bangunan\", \"Serang\", \"Selidik\", \"latih\", \"Angkut\", \"NPC\", \"musnah\", \"Perayaan\"];\n\t\taLangGameText = [\"Tahap\", \"Pedagang\", \"ID\", \"Ibu Kota\", \"Waktu mula\", \"this timeseting is unuseful now.\", \"ke\", \"Kampung\", \"angkut\", \"dari\", \"Angkut ke\", \"Angkut dari\", \"Balik dari\", \"sumber\", \"bangunan\", \"Bina bangunan\", \"Kosong\", \"tahap\"];\n\t\taLangRaceName = [\"Rom\", \"Teuton\", \"Gaul\"];\n\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"AutoResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans_In_limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Crop\", \"Schedule demolition\", \"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\",\"00:30:00\",\"Catapult target\",\"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\", \"Schedule Train\",\"Train site\",\"TrainTask done\",\"customTransport\",\"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans_Out_Rmn\",\"ScheduleParty\",\"small party\",\"big party\",\"setInterval of Resources concentration\",\"minutes\",\".\",\".\",\"START\",\"STOP\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Terlalu sedikit sumber\", \"Para pekerja sedang bekerja\", \"Construction completed\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\",\"Lack of food: extend cropland first\",\"There is already a celebration going on\"];\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can be upgraded to level 20. Now your capital is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"Upgrade successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Hero's Mansion to determine the speed and the type of your hero.\"];\n\t\taLangResources=[\"kayu\",\"tanah liat\",\"besi\",\"tanaman\"];\n\t\taLangTroops[0] = [\"Askar Legion\", \"Pengawal Pertahanan\", \"Askar Empayar\", \"Kesatria Diplomatik\", \"Kesatria Empayar\", \"Kesatria Jeneral\", \"Kereta Pelantak\", \"Tarbil Api\", \"Senator\", \"Peneroka\", \"Wira\"];\n\t\taLangTroops[1] = [\"Askar Belantan\", \"Askar Lembing\", \"Askar Kapak\", \"Peninjau\", \"Kesatria Santo\",\"Kesatria Teutonik\", \"Kereta Pelantak\", \"Tarbil\", \"Penghulu\", \"Peneroka\", \"Wira\"];\n\t\taLangTroops[2] = [\"Falanks\", \"Askar Pedang\", \"Penjelajah\", \"Guruh Theutates\", \"Penunggang Druid\", \"Haeduan\", \"Kereta Pelantak\", \"Tarbil\", \"Pemimpin\", \"Peneroka\", \"Wira\"];\n\t\taLangAttackType = [\"Bantuan\", \"Serangan: Normal\", \"Serangan: Serbuan\"];\n\t\tbreak;\n\n\n case \"nl\":\n\t\taLangAllBuildWithId = [\"Houthakker\", \"Klei-afgraving\", \"IJzermijn\", \"Graanakker\", \"\", \"Zaagmolen\", \"Steenbakkerij\", \"Ijzersmederij\", \"Korenmolen\", \"Bakkerij\", \"Pakhuis\", \"Graansilo\", \"Wapensmid\", \"Uitrustingssmederij\", \"Toernooiveld\", \"Hoofdgebouw\", \"Verzamelenplaats\", \"Marktplaats\", \"Ambassade\", \"Barakken\", \"Stal\", \"Werkplaats\", \"Acedemie\", \"Schuilplaats\", \"Raadhuis\", \"Residentie\", \"Paleis\", \"Schatkamer\", \"Handelskantoor\", \"Grote Barakken\", \"Grote Stal\", \"Stadsmuur\", \"Muur van aarde\", \"Palissade\", \"Steenhouwerij\", \"Brouwerij\", \"Vallenzetter\",\"Heldenhof\", \"Groot Pakhuis\", \"Grote Graansilo\", \"Wereldwonder\", \"Drinkplaats\"];\n\t\taLangAllBuildAltWithId = [\"Houthakker\", \"Klei-afgraving\", \"IJzermijn\", \"Graanakker\", \"\", \"Zaagmolen\", \"Steenbakkerij\", \"Ijzersmederij\", \"Korenmolen\", \"Bakkerij\", \"Pakhuis\", \"Graansilo\", \"Wapensmid\", \"Uitrustingssmederij\", \"Toernooiveld\", \"Hoofdgebouw\", \"Verzamelenplaats\", \"Marktplaats\", \"Ambassade\", \"Barakken\", \"Stal\", \"Werkplaats\", \"Acedemie\", \"Schuilplaats\", \"Raadhuis\", \"Residentie\", \"Paleis\", \"Schatkamer\", \"Handelskantoor\", \"Grote Barakken\", \"Grote Stal\", \"Stadsmuur\", \"Muur van aarde\", \"Palissade\", \"Steenhouwerij\", \"Brouwerij\", \"Vallenzetter\",\"Heldenhof\", \"Groot Pakhuis\", \"Grote Graansilo\", \"Wereldwonder\", \"Drinkplaats\"];\n\t\taLangAddTaskText = [\"Taak toevoegen\", \"Type\", \"Gekozen dorp\", \"Taakdoel\", \"Naar\", \"Modus\", \"Bouwhulp\", \"Grondstofconcentratie\", \"Naar boven\", \"Naar benenden\", \"Del\", \"&#160;&#160;&#160;Doelen\", \"Bewegen \", \"Verwijder alle taken\"]; \n\t\taLangTaskKind = [\"Verbeteren\", \"Gebouw bouwen\", \"Aanvallen\", \"Onderzoeken\", \"Trainen\", \"Handel\", \"NPC\", \"Slopen\", \"Vieren\"]; \n\t\taLangGameText = [\"Niveau\", \"Handelaren\", \"ID\", \"Hoofddorp\", \"Start tijd\", \"Deze tijdsinstelling is onbruikbaar op dit moment.\", \"Naar\", \"Dorp\", \"transport\", \"Van\", \"Transporteren naar\", \"Transporteren van\", \"Terugkeren van\", \"Grondstoffen\", \"Gebouw\", \"Nieuw gebouw bouwen\", \"Leeg\", \"Niveau\"]; \n aLangRaceName = [\"Romeinen\", \"Germanen\", \"Galliërs\"]; \n\t\taLangTaskOfText = [\"Upgrade plannen\", \"Nieuwbouw plannen\", \"Auto ResUpD\", \"Inactief\", \"Start\", \"Bezig\", \"Stop\", \"De grondverdeling van dit dorp is \", \"Autotransport\", \"Autotransport is niet gestart\", \"Gestart\", \"Transport succesvol\", \"Takenlijst\", \"Trans In limit\", \"Standaard\", \"Aanpassen\", \"Hout/Klei/Ijzer\", \"Graan\", \"Slopen plannen\", \n \"Aanval plannen\", \"Aanvalssoort\", \"Tijdsduur\", \"Herhalen\", \"tussentijd\",\"00:30:00\",\"Katapult doel\",\"Random\", \"Onbekend\", \"keren\", \"Maand\", \"Dag\", \"Troepen verstuurd\", \n \"Training plannen\", \"Trainingkant\", \"Trainingstaak voltooid\", \"Handmatig Transport\", \"Stel de tussentijd in\",\"Dit is de tussentijd van de pagina herladen ,\\n standaard is 20 minuten, stel a.u.b. een nieuwe tijd in:\\n\\n\",\"Trans Out Rmn\",\"Feest plannen\",\"Klein Feest\",\"Groot Feest\",\"Stel tussentijd in voor grondstofconcentratie\", \n \"minuten\", \".\",\".\",\"START\",\"STOP\",\"Verbetering plannen\",\"Verbeter aanval\",\"Verbeter uitrusting\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"]; \n aLangErrorText = [\"Te weinig grondstoffen.\", \"Je bouwvakkers zijn al aan het werk.\", \"Bouwopdracht voltooid\", \"Bouwopdracht begint\", \"Bezig\", \"Je pakhuis is te klein. Verbeter je pakhuis om de bouwopdracht voort te zetten.\", \"Je graansilo is te klein. Verbeter je graansilo om de bouwopdracht voort te zetten\", \"Genoeg grondstoffen\",\"Te weinig graanproductie: Verbeter eerst een graanveld\",\"Er is al een feest gaande\"]; \n\t\taLangOtherText = [\"Belangrijk bericht\", \"Alleen de grondstofvelden van het hoofddorp kunnen <br/>verbeterd worden tot niveau 20. Nu is je hoofddorp<br/> niet vastgesteld. Bezoek je profiel a.u.b.\", \"Afkorting hier ^_^\", \"Instellingen succesvol\", \"Geannuleerd\", \"Start de taken\", \"Verbetering succesvol\", \"Start succesvol\", \"Je ras is onbekend, daardoor ook je troeptype. <br/>Bezoek je profiel om je ras vast te stellen<br/>\", \"Bezoek a.u.b. ook je heldenhof om <br/> de snelheid en type van je held vast te stellen.\"]; \n\t\taLangResources=[\"Hout\",\"Klein\",\"Ijzer\",\"Graan\"]; \n\t\taLangTroops[0] = [\"Legionair\", \"Praetoriaan\", \"Imperiaan\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Ram\", \"Vuurkatapult\", \"Senator\", \"Kolonist\", \"Held\"]; \n\t\taLangTroops[1] = [\"Knuppelvechter\", \"Speervechter\", \"Bijlvechter\", \"Verkenner\", \"Paladijn\", \"Germaanse Ridder\", \"Ram\", \"Katapult\", \"Leider\", \"Kolonist\", \"Held\"]; \n\t\taLangTroops[2] = [\"Phalanx\", \"Zwaardvechter\", \"Padvinder\", \"Toetatis donder\", \"Druideruiter\", \"Haeduaan\", \"Ram\", \"Trebuchet\", \"Onderleider\", \"Kolonist\", \"Held\"]; \n\t\taLangAttackType = [\"Versterking\", \"Aanval\", \"Overval\"]; \n\t\tbreak;\n\n\ncase \"hu\": //Harrerp\n\n\t\taLangAllBuildWithId = [\"Favágó\", \"Agyagbánya\", \"Vasércbánya\", \"Búzafarm\", \"\", \"Fűrészüzem\", \"Agyagégető\", \"Vasöntöde\", \"Malom\", \"Pékség\", \"Raktár\", \"Magtár\", \"Fegyverkovács\", \"Páncélkovács\", \"Gyakorlótér\", \"Főépület\", \"Gyülekezőtér\", \"Piac\", \"Követség\", \"Kaszárnya\", \"Istálló\", \"Műhely\", \"Akadémia\", \"Rejtekhely\", \"Tanácsháza\", \"Rezidencia\", \"Palota\", \"Kincstár\", \"Kereskedelmi központ\", \"Nagy Kaszárnya\", \"Nagy Istálló\", \"Kőfal\", \"Földfal\", \"Cölöpfal\", \"Kőfaragó\", \"Sörfőzde\", \"Csapdakészítő\", \"Hősök háza\", \"Nagy Raktár\", \"Nagy Magtár\", \"Világcsoda\",\"Lóitató\"];\n\t\taLangAllBuildAltWithId = [\"Favágó\", \"Agyagbánya\", \"Vasércbánya\", \"Búzafarm\", \"\", \"Fűrészüzem\", \"Agyagégető\", \"Vasöntöde\", \"Malom\", \"Pékség\", \"Raktár\", \"Magtár\", \"Fegyverkovács\", \"Páncélkovács\", \"Gyakorlótér\", \"Főépület\", \"Gyülekezőtér\", \"Piac\", \"Követség\", \"Kaszárnya\", \"Istálló\", \"Műhely\", \"Akadémia\", \"Rejtekhely\", \"Tanácsháza\", \"Rezidencia\", \"Palota\", \"Kincstár\", \"Kereskedelmi központ\", \"Nagy Kaszárnya\", \"Nagy Istálló\", \"Kőfal\", \"Földfal\", \"Cölöpfal\", \"Kőfaragó\", \"Sörfőzde\", \"Csapdakészítő\", \"Hősök háza\", \"Nagy Raktár\", \"Nagy Magtár\", \"Világcsoda\",\"Lóitató\"];\n\t\taLangAddTaskText = [\"Feladat hozzáadása\", \"Feladat\", \"Aktív falu\", \"Feladat célja\", \"Ide\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Fel\", \"Le\", \"Törlés\", \" Feladatok\", \"Sorrend\", \"Összes feladat törlése\"];\n\t\taLangTaskKind = [\"Kiépítés\", \"Új épület\", \"Támadás\", \"Fejlesztés\", \"Kiképzés\", \"Szállítás\", \"NPC\", \"Bontás\", \"Ünnep\"];\n\t\taLangGameText = [\"Szint\", \"Kereskedők\", \"ID\", \"Capital\", \"Indítási idő\", \"az időbeállítás nem szükséges.\", \"ide\", \"Falu\", \"szállítás\", \"innen\", \"Szállítás ide\", \"Szállítás innen\", \"Visszaérkezés\", \"nyersanyag\", \"épület\", \"Új épület építése\", \"empty\", \"szint\"];\n\t\taLangRaceName = [\"Római\", \"Germán\", \"Gall\"];\n\t\taLangTaskOfText = [\"Időzített kiépítés\", \"Időzített építés\", \"AutoResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Auto szállítás\", \"Autotransport is not opened\", \"Opened\", \"Szállítás kész\", \"Feladat lista\", \"Trans_In_limit\", \"Default\", \"Módosítás\", \"Fa/Agyag/Vasérc\", \"Búza\", \"Időzített bontás\",\n\t\t\t\"Időzítet támadás\", \"Támadás típus\", \"Utazási idő\", \"Ismétlés\", \"Idő intervallum\",\"00:30:00\",\"Katapult célpont\",\"Véletlen\", \"Ismeretlen\", \"ismétlés\", \"Hónap\", \"Nap\", \"Egységek küldése\",\n\t\t\t\"Időzített kiképzés\",\"Kiképzőhely\",\"Kiképzés befejezve\",\"Egyedi szállítás\",\"Frissítési időintervallum beállítás\",\"Ez az oldalfrissítési időintervallum,\\n az alap 20 perc, írd be az új időt:\\n\\n\",\"Trans_Out_Rmn\",\"Időzített ünnepség\",\"Kis ünnepség\",\"Nagy ünnepség\",\"setInterval of Resources concentration\",\n\t\t\t\"perc\",\"áll\",\"fut\",\"indulj\",\"állj\",\"Időzített fejlesztés\",\"Fegyver fejlesztés\",\"Páncél fejlesztés\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Too few resources.\", \"The workers are already at work.\", \"Építés kész\", \"Építés indul\", \"Fejlesztés folyamatban\", \"A raktárad túl kicsi. Építsd tovább a raktárt, hogy folytathasd az építést\", \"A magtárad túl kicsi. Építsd tovább a magtárt, hogy folytathasd az építést\", \"Elég nyersanyag\",\"Élelemhiány: Előtte egy búzafarmot kell építened \",\"Jelenleg is ünnepelnek\",\"There is already research going on\"];\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can be upgraded to level 20. Now your capital is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Beállítás kész\", \"Cancelled\", \"Start the tasks\", \"Kiépítés kész\", \"Run successfully\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Hero's Mansion to determine the speed and the type of your hero.\"];\n\t\taLangResources= [\"fa\",\"agyag\",\"vasérc\",\"búza\"];\n\t\taLangTroops[0] = [\"Légiós\", \"Testőr\", \"Birodalmi\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Faltörő kos\", \"Tűzkatapult\", \"Szenátor\", \"Telepes\", \"Hős\"]; //Római\n\t\taLangTroops[1] = [\"Buzogányos\", \"Lándzsás\", \"Csatabárdos\", \"Felderítő\", \"Paladin\", \"Teuton lovag\", \"Faltörő kos\", \"Katapult\", \"Törzsi vezető\", \"Telepes\", \"Hős\"]; //Germán\n\t\taLangTroops[2] = [\"Phalanx\", \"Kardos\", \"Felderítő\", \"Theutat villám\", \"Druida lovas\", \"Haeduan\", \"Falromboló\", \"Harci-katapult\", \"Főnök\", \"Telepes\", \"Hős\"]; //Gall\n\t\taLangAttackType = [\"Támogatás\", \"Támadás\", \"Rablás\"];\n\t\tbreak;\t\t\n\n\ncase \"lv\": //by sultāns updated the 16/04/2010\n\t\taLangAllBuildWithId = [\"Cirsma\", \"Māla Karjers\", \"Dzelzs Raktuves\", \"Labības Lauks\", \"\", \"Kokzāģētava\", \"Ķieģelu Fabrika\", \"Dzelzs Lietuve\", \"Dzirnavas\", \"Maiznīca\", \"Noliktava\", \"Klēts\", \"Ieroču kaltuve\", \"Bruņu kaltuve\", \"Turnīru laukums\", \"Galvenā ēka\", \"Pulcēšanās Vieta\", \"Tirgus laukums\", \"Vēstniecība\", \"Kazarmas\", \"Stallis\", \"Darbnīca\", \"Akadēmija\", \"Paslēptuve\", \"Rātsnams\", \"Rezidence\", \"Pils\", \"Dārgumu glabātuve\", \"Tirdzniecības Birojs\", \"Lielās Kazarmas\", \"Lielais Stallis\", \"Pilsētas Mūris\", \"Zemes Mūris\", \" Palisāde\", \"Akmeņlauztuve\", \"Alus Darītava\", \"Mednieku māja\",\"Varoņu Savrupmāja\", \"Lielā Noliktava\", \"Liela Klēts\", \"Pasaules Brīnums\"];\n\t\taLangAllBuildAltWithId = [\"Cirsma\", \"Māla Karjers\", \"Dzelzs Raktuves\", \"Labības Lauks\", \"\", \"Kokzāģētava\", \"Ķieģelu Fabrika\", \"Dzelzs Lietuve\", \"Dzirnavas\", \"Maiznīca\", \"Noliktava\", \"Klēts\", \"Ieroču kaltuve\", \"Bruņu kaltuve\", \"Turnīru laukums\", \"Galvenā ēka\", \"Pulcēšanās Vieta\", \"Tirgus laukums\", \"Vēstniecība\", \"Kazarmas\", \"Stallis\", \"Darbnīca\", \"Akadēmija\", \"Paslēptuve\", \"Rātsnams\", \"Rezidence\", \"Pils\", \"Dārgumu glabātuve\", \"Tirdzniecības Birojs\", \"Lielās Kazarmas\", \"Lielais Stallis\", \"Pilsētas Mūris\", \"Zemes Mūris\", \" Palisāde\", \"Akmeņlauztuve\", \"Alus Darītava\", \"Mednieku māja\",\"Varoņu Savrupmāja\", \"Lielā Noliktava\", \"Liela Klēts\", \"Pasaules Brīnums\"];\n\t\taLangAddTaskText = [\"Izveidot uzdevumu\", \"Veids\", \"Aktīvais ciems\", \"Uzdevuma mērķis\", \"| Mērķis\", \"Tips\", \"Celtniecības atbalsts\", \"Resursu koncentrācija\", \"Uz augšu\", \"Uz leju\", \"Izdzēst\", \" Uzdevuma stāvoklis\", \"Pārvietot\", \"Dzēst visus uzdevumus\"];\n\t\taLangTaskKind = [\"Uzlabot\", \"Jauna ēka\", \"Uzbrukt\", \"Izpētīt\", \"Apmācīt\", \"Nosūtīt resursus\", \"NPC\", \"Nojaukt\", \"Svinības\"];\n\t\taLangGameText = [\"Līmenis\", \"Tirgotāji\", \"ID\", \"Galvaspilsēta\", \"Sākuma laiks\", \"Īslaicīgi nestrādā\", \"uz\", \"Ciems\", \"Transportēt\", \"no\", \"Transportēt uz\", \"Transportēt no\", \"Atgriezties no\", \"resursi\", \"ēka\", \"Būvēt jaunu ēku\", \"tukšs\", \"līmenis\"];\n\t\taLangRaceName = [\"Romieši\", \"Ģermāņi\", \"Galli\"];\n\t\taLangTaskOfText = [\"Ieplānot uzlabojumus\", \"Ieplānot jaunas ēkas celtniecību\", \"Uzlabot resursu laukus\", \"Izslēgt\", \"Uzsākt\", \"Ieslēgts\", \"Stop\", \"Resursu lauku izvietojums šajā ciemā\", \"Automātiska nosūtīšana\", \"Automātiska nosutīšana atslēgta\", \"Ieslēgts\", \"Veiksmīgi nosūtīts\", \"* Uzdevumi *\", \"Ienākošais limits\", \"Default\", \"Izmainīt\", \"Koks/Māls/Dzelzis\", \"Labība\", \"Ieplānot nojaukšanu\",\n\t\t\t\"Ieplānot uzbrukumu\", \"Uzbrukuma veids\", \"Laiks ceļā\", \"Atkartošanas laiks\", \"laika intervāls\",\"00:30:00\",\"Ar katapultām massēt\",\"Pofig pa ko\", \"Nezināms\", \"laiki\", \"Mēnesis\", \"Diena\", \"Kareivji nosūtīti\",\n\t\t\t\"Ieplānot apmācību\",\"Train site\",\"Kareivju apmācība pabeigta\",\"optimizēt transportēšanu\",\"Ievadīt laiku pēc kura atkārtot iekraušanu\",\"Šis ir intervāls lapas parlādēšanai ,\\n pēc noklusējuma - 20 min., Lūdzu ievadiet jaunu laiku:\\n\\n\",\"Izejošais limits\",\"Ieplānot svinības\",\"mazās svinības\",\"lielās svinības\",\"Uzstādīt laika intervālu resursu sūtīšanai\",\n\t\t\t\"minūtes\", \".\",\".\",\"Start\", \"Stop\", \"Ieplānot uzdevumus\",\"Ieplānot uzbrukumus\",\"Ieplanot aizsardzību\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Nepietiek resursu\", \"Strādnieki jau strādā\", \"Būvniecība pabeigta\", \"Ir uzsākta būvniecība\", \"Attīstības stadija\", \"Nepietiek vietas noliktavā, lūdzu paplašiniet to\", \"Nepietiek vietas klētī, ludzu paplašinoiet to\", \"Pietiekoši resursu\",\"\",\"Svinības jau notiek\"];\n\t\taLangOtherText = [\"Svarīgi\", \"Tikai galvaspilsētā resursu laukus var uzlabot uz 20Lvl. Galvaspilsāta nav noteikta. Ieejiet lūdzu savā profilā\", \"Shortcut here ^_^\", \"Iestatījumi pabeigti\", \"Atcelts\", \"Sākt uzdevumus\", \"Uzlabots veiksmīgi\", \"Viss notiek\", \"Jūsu rase ir unknown. Lūdzu ieejiet profilā.\", \"Kā arī, lūdzu ieejiet varoņu majā, lai noteiktu varoņa veidu un ātrumu\"];\n\t\taLangResources=[\"Koks\",\"Māls\",\"Dzelzs\",\"Labība\"];\n\t\taLangTroops[0] = [\"Leģionārs\", \"Pretorietis\", \"Iekarotājs\", \"Ziņnesis\", \"Romas Jātnieks\", \"Romas Bruņinieks\", \"Mūra Brucinātājs\", \"Uguns Katapulta\", \"Senators\", \"Kolonists\", \"Varonis\"];\n\t\taLangTroops[1] = [\"Rungas Vēzētājs\", \"Šķēpnesis\", \"Karacirvja Vēzētājs\", \"Izlūks\", \"Bruņinieks\", \"Ģermāņu Bruņinieks\", \"Postītājs\", \"Katapultas\", \"Virsaitis\", \"Kolonists\", \"Varonis\"];\n\t\taLangTroops[2] = [\"Falanga\", \"Zobenbrālis\", \"Pēddzinis\", \"Zibens Jātnieks\", \"Priesteris - Jātnieks\", \"Edujs\", \"Tarāns\", \"Trebušets\", \"Barvedis\", \"Kolonists\", \"Varonis\"];\n\t\taLangAttackType = [\"Papildspēki\", \"Uzbrukums\", \"Iebrukums\"];\n\t\tbreak;\n\tcase \"cl\":\n\tcase \"mx\":\n\tcase \"net\": // thanks Renzo\n\t\taLangAllBuildWithId = [\"Leñador\", \"Barrera\", \"Mina\", \"Granja\", \"\", \"Serrería\", \"Ladrillar\", \"Fundición de Hierro\", \"Molino\", \"Panadería\", \"Almacén\", \"Granero\", \"Herrería\", \"Armería\", \"Plaza de torneos\", \"Edif. principal\", \"Plaza reuniones\", \"Mercado\", \"Embajada\", \"Cuartel\", \"Establo\", \"Taller\", \"Academia\", \"Escondite\", \"Ayuntamiento\", \"Residencia\", \"Palacio\", \"Tesoro\", \"Oficina de Comercio\", \"Cuartel Grande\", \"Establo Grande\", \"Muralla\", \"Terraplén\", \"Empalizada\", \"Cantero\", \"Cervecería\", \"Trampero\",\"Hogar del héroe\", \"Almacén Grande\", \"Granero Grande\", \"Maravilla\", \"Abrevadero\"];\n\t\taLangAllBuildAltWithId = [\"Leñador\", \"Barrera\", \"Mina\", \"Granja\", \"\", \"Serrería\", \"Ladrillar\", \"Fundición de Hierro\", \"Molino\", \"Panadería\", \"Almacén\", \"Granero\", \"Herrería\", \"Armería\", \"Plaza de torneos\", \"Edif. principal\", \"Plaza reuniones\", \"Mercado\", \"Embajada\", \"Cuartel\", \"Establo\", \"Taller\", \"Academia\", \"Escondite\", \"Ayuntamiento\", \"Residencia\", \"Palacio\", \"Tesoro\", \"Oficina de Comercio\", \"Cuartel Grande\", \"Establo Grande\", \"Muralla\", \"Terraplén\", \"Empalizada\", \"Cantero\", \"Cervecería\", \"Trampero\",\"Hogar del héroe\", \"Almacén Grande\", \"Granero Grande\", \"Maravilla\", \"Abrevadero\"];\n\t\taLangAddTaskText = [\"Añadir tarea\", \"Estilo\", \"Aldea activa\", \"Objetivo de Tarea\", \"Para\", \"Modo\", \"Soporte de Construcción\", \"Concentración de Recursos\", \"Ir arriba\", \"Ir abajo\", \"Borrar\", \" Contenido de tarea\", \"Mover \", \"Borrar todas las tareas\"];\n\t\taLangTaskKind = [\"Subir\", \"Construir edificio nuevo\", \"Atacar\", \"Mejorar\", \"Entrenar\", \"Transportar\", \"NPC\", \"Demoler\", \"Fiesta\"];\n\t\taLangGameText = [\"Nivel\", \"Comerciantes\", \"ID\", \"Capital\", \"Tiempo de Inicio\", \"esta prueba de tiempo no es útil.\", \"para\", \"Aldea\", \"transportar\", \"de\", \"Transportar a\", \"Transporte de\", \"Regreso de\", \"recursos\", \"edificio\", \"Construir nuevo edificio\", \"vacío\", \"nivel\"];\n\t\taLangRaceName = [\"Romanos\", \"Germanos\", \"Galos\"];\n\t\taLangTaskOfText = [\"Programar subida\", \"Programar nueva Construcción\", \"AutoResUpD\", \"OFF\", \"Empezar\", \"ON\", \"Suspender\", \"La distribución de campos de recursos de esta aldea es \", \"Autotransporte\", \"Autotransporte no está abierto\", \"Abierto\", \"Transporte exitoso\", \"Lista de Tareas\", \"Trans_In_limit\", \"Por Defecto\", \"Modificar\", \"Madera/Barro/Hierro\", \"Cereal\", \"Programar demolición\",\"Programar ataque\", \"Tipo de Ataque\", \"Tiempo de Viaje\", \"Número de Repeticiones\", \"Tiempo de intervalo\",\"00:30:00\",\"Objetivo de Catapulta\",\"Al Azar\", \"Desconocido\", \"Veces\", \"Mes\", \"Día\", \"Tropas enviadas\", \"Programar Cadena\",\"Sitio de Cadena\",\"Tarea de Cadena completada\",\"Transporte Custom\",\"Establecer tiempo de intervalo de la recarga\",\"este es el tiempo de intervalo entre cada recarga de la página,\\n Por defecto es 20 minutos, por favor introduza el nuevo tiempo:\\n\\n\",\"Trans_Out_Rmn\",\"Programar Fiesta\",\"fiesta pequeña\",\"fiesta grande\",\"Establecer intervalo de concentración de recursos\",\"minutos\",\".\",\".\",\"START\",\"STOP\", \"Programar Mejora\", \"Mejorar Ataque\", \"Mejorar Defensa\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Muy pocos recursos.\", \"Los aldeanos ya están trabajando.\", \"Construcción completa\", \"Empezando construcción\", \"En desarrollo\", \"Su almacén es muy pequeño. Por favor amplíe su almacén para continuar su construcción\", \"Su almacén es muy pequeño. Por favor amplíe su almacén para continuar su construcción\", \"Suficientes Recursos\",\"Falta de Alimento: Amplíe una granja primero\",\"Ya hay una fiesta en progreso\",\"Ya hay una exploración en progreso\"];\n\t\taLangOtherText = [\"Nota importante\", \"Solo los campos de recurso de la capital pueden ser ampliados a nivel 20. Su capital no ha sido detectada. Por favor visite su perfil.\", \"Atajo aquí ^_^\", \"Configuración completada\", \"Cancelado\", \"Empezar tareas\", \"Mejora Exitosa\", \"Ejecución exitosa\", \"Su raza es desconocida, asimismo su tipo de tropas. Visite su Perfil para determinar su raza.\", \"Por favor visite su Hogar del Heroe para determinar la velocidad y tipo de su heroe.\"];\n\t\taLangResources = [\"madera\", \"barro\", \"hierro\", \"cereal\"];\n\t\taLangTroops[0] = [\"Legionario\", \"Pretoriano\", \"Imperano\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Carnero\", \"Catapulta de Fuego\", \"Senador\", \"Colono\", \"Héroe\"];\n\t\taLangTroops[1] = [\"Luchador de Porra\", \"Lancero\", \"Luchador de Hacha\", \"Emisario\", \"Paladín\", \"Jinete Teutón\", \"Ariete\", \"Catapulta\", \"Cabecilla\", \"Colono\", \"Héroe\"];\n\t\taLangTroops[2] = [\"Falange\", \"Luchador de Espada\", \"Batidor\", \"Rayo de Teutates\", \"Jinete Druida\", \"Jinete Eduo\", \"Ariete\", \"Catapulta de Guerra\", \"Cacique\", \"Colono\", \"Héroe\"];\n\t\taLangAttackType = [\"Refuerzo\", \"Ataque\", \"Atraco\"];\n\t\tbreak;\n\n\tcase \"se\": // thanks to Arias\n\t\taLangAllBuildWithId = [\"Skogshuggare\", \"Lergrop\", \"Järngruva\", \"Vetefält\", \"\", \"Sågverk\", \"Murbruk\", \"Järngjuteri\", \"Vetekvarn\", \"Bageri\", \"Magasin\", \"Silo\", \"Smedja\", \"Vapenkammare\", \"Tornerplats\", \"Huvudbyggnad\", \"Samlingsplats\", \"Marknadsplats\", \"Ambassad\", \"Baracker\", \"Stall\", \"Verkstad\", \"Akademi\", \"Grotta\", \"Stadshus\", \"Residens\", \"Palats\", \"Skattkammare\", \"Handelskontor\", \"Stor barack\", \"Stort stall\", \"Stadsmur\", \"Jordvall\", \"Palisad\", \"Stenmurare\", \"Bryggeri\", \"Fälla\", \"Hjältens egendom\", \"Stort magasin\", \"Stor silo\", \"Världsunder\", \"Vattenbrunn\"];\n\t\taLangAllBuildAltWithId = [\"Skogshuggare\", \"Lergrop\", \"Järngruva\", \"Vetefält\", \"\", \"Sågverk\", \"Murbruk\", \"Järngjuteri\", \"Vetekvarn\", \"Bageri\", \"Magasin\", \"Silo\", \"Smedja\", \"Vapenkammare\", \"Tornerplats\", \"Huvudbyggnad\", \"Samlingsplats\", \"Marknadsplats\", \"Ambassad\", \"Baracker\", \"Stall\", \"Verkstad\", \"Akademi\", \"Grotta\", \"Stadshus\", \"Residens\", \"Palats\", \"Skattkammare\", \"Handelskontor\", \"Stor barack\", \"Stort stall\", \"Stadsmur\", \"Jordvall\", \"Palisad\", \"Stenmurare\", \"Bryggeri\", \"Fälla\", \"Hjältens egendom\", \"Stort magasin\", \"Stor silo\", \"Världsunder\", \"Vattenbrunn\"];\n\t\taLangAddTaskText = [\"Lägg till uppgift\", \"Stil\", \"Aktiv by\", \"Task target\", \"Till\", \"Läge\", \"Kontruktions stöd\", \"Råvaro koncentration\", \"Flytta upp\", \"Flytta ner\", \"Radera\", \"Uppgifter\", \"Flytta \", \"Radera alla uppgifterna\"];\n\t\taLangTaskKind = [\"Uppgradering:\", \"Ny byggnad:\", \"Attack:\", \"Forskning:\", \"Träning:\", \"Transport:\", \"NPC:\", \"Demolish:\", \"Celebration:\"];\n\t\taLangGameText = [\"Nivå \", \"Handel\", \"ID\", \"Capital\", \"Start time\", \"this timesetting is unuseful now.\", \"till\", \"By\", \"Transport\", \"från\", \"Transport till\", \"Transport från\", \"Återvänder från\", \"Råvaror\", \"Byggnad\", \"Konstruera en ny byggnad\", \"Tom\", \"Nivå\"];\n\t\taLangRaceName = [\"Romare\", \"Germaner\", \"Galler\"];\n\t\taLangTaskOfText = [\"Schemalägg uppgradering\", \"Schemalägg ny byggnad\", \"Uppgradera fält\", \"Ej Aktiv\", \"Starta\", \"Startad\", \"Avbryt\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport lyckades\", \"Uppgifter\", \"Trans_In_limit\", \"Standard\", \"Ändra \", \"Trä/Lera/Järn\", \"Vete\", \"Schemalägg demolition\",\n\t\t\t\"Schemalägg attack\", \"Attack type\", \"Res tid\", \"antal upprepningar\", \"interval time\",\"00:30:00\",\"Catapult target\",\"Random\", \"Okänd\", \"times\", \"Månad\", \"Dag\", \"Trupper skickade\", \"Schemalägg Träning\",\"Tränings plats\",\"Träningen klar\",\"Anpassad transport\",\"Sätt intervallen för omladdning av sidan\",\"Detta är intevallen för omladdning av sida,\\n standard är 20 minuter, vänligen ange ny intervall:\\n\\n\",\"Trans_Out_Rmn\",\"Schemalägg fest\",\"Liten fest\",\"Stor fest\",\"Sätt intervall av råvarukoncentration\",\n\t\t\t\"minuter\",\".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"För få råvaror\", \"Dina arbetare är redan ute på jobb\", \"Byggnad klar\", \"Påbörjar byggnad\", \"Under utveckling\", \"Ditt magasin är för litet. Vänligen uppgradera ditt magasin för att fortsätta ditt byggnadsarbete.\", \"Din silo är för liten. Vänligen uppgradera din silo för att fortsätta ditt byggnadsarbete.\", \"Tillräckligt med resurser\", \"Brist på mat: utöka vetefälten först\", \"En fest pågår redan.\"];\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup klar\", \"Avbruten\", \"Starta uppgifterna\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\taLangResources=[\"Trä\",\"Lera\",\"Järn\",\"Vete\"];\n\t\taLangTroops[0] = [\"Legionär\", \"Praetorian\", \"Imperiesoldat\", \"Spårare\", \"Imperieriddare\", \"Ceasarriddare\", \"Murbräcka\", \"Eld Katapult\", \"Senator\", \"Nybyggare\", \"Hjälte\"];\n\t\taLangTroops[1] = [\"Klubbman\", \"Spjutman\", \"Yxman\", \"Scout\", \"Paladin\", \"Germansk Knekt\", \"Murbräcka\", \"Katapult\", \"Stamledare\", \"Nybyggare\", \"Hjälte\"];\n\t\taLangTroops[2] = [\"Falanx\", \"Svärdskämpe\", \"Spårare\", \"Theutates Blixt\", \"Druidryttare\", \"Haeduan\", \"Murbräcka\", \"Krigskatapult\", \"Hövding\", \"Nybyggare\", \"Hjälte\"];\n\t\taLangAttackType = [\"Förstärkning\", \"Normal\", \"Plundring\"];\n\t\tbreak;\n\n\tcase \"it\": // thanks Hamkrik, corrections by baldo 2011.04.08\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\t// 2011.02.16 -- provided by Psea\n\t\t\t\taLangAllBuildWithId = [\"Bosco\", \"Pozzo d'argilla\", \"Miniera di ferro\", \"Campo di grano\", \"\", \"Segheria\", \"Fabbrica di Mattoni\", \"Fonderia\", \"Mulino\", \"Forno\", \"Magazzino\", \"Granaio\", \"Fabbro\", \"Armeria\", \"Arena\", \"Palazzo Pubblico\", \"Base militare\", \"Mercato\", \"Ambasciata\", \"Caserma\", \"Scuderia\", \"Officina\", \"Accademia\", \"Deposito Segreto\", \"Municipio\", \"Reggia\", \"Castello\", \"Camera del tesoro\", \"Ufficio Commerciale\", \"Grande Caserma\", \"Grande Scuderia\", \"Mura Cittadine\", \"Fortificazioni\", \"Palizzata\", \"Genio civile\", \"Birrificio\", \"Esperto di trappole\", \"Dimora dell'Eroe\", \"Grande Magazzino\", \"Grande Granaio\", \"Meraviglia\", \"Fonte Equestre\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Bosco\", \"Pozzo d'argilla\", \"Miniera di ferro\", \"Campo di grano\", \"\", \"Segheria\", \"Fabbrica di mattoni\", \"Fonderia\", \"Mulino\", \"Forno\", \"Magazzino\", \"Granaio\", \"Fabbro\", \"Armeria\", \"Arena\", \"Palazzo Pubblico\", \"Base militare\", \"Mercato\", \"Ambasciata\", \"Caserma\", \"Scuderia\", \"Officina\", \"Accademia\", \"Deposito Segreto\", \"Municipio\", \"Reggia\", \"Castello\", \"Camera del tesoro\", \"Ufficio Commerciale\", \"Grande Caserma\", \"Grande Scuderia\", \"Mura cittadine\", \"Fortificazioni\", \"Palizzata\", \"Genio civile\", \"Birrificio\", \"Esperto di trappole\", \"Dimora dell'Eroe\", \"Grande Magazzino\", \"Grande Granaio\", \"Meraviglia\", \"Fonte Equestre\"];\n\t\t\t\taLangAddTaskText = [\"Aggiungere Compito\", \"Tipo\", \"Villaggio Attivo\", \"Obiettivo del Compito\", \"Coordinate\", \"Modalita'\", \"Supporto ampliamento risorse\", \"Concentrazione risorse\", \"SU\", \"GIU\", \"Cancella\", \" Contenuto del Compito\", \"Muovere\", \"Cancella tutti i Compiti\"]; \n\t\t\t\taLangTaskKind = [\"Amplia\", \"Nuovo Edificio\", \"Attacco\", \"Ricerca\", \"Addestra\", \"Trasporto\", \"NPC\", \"Demolire\", \"Festa\"]; \n\t\t\t\taLangGameText = [\"Livello\", \"Mercanti\", \"ID\", \"Capitale\", \"Tempo di Inizio\", \"questa impostazione di tempo non si usa.\", \"Coordinate\", \"Villaggio\", \"trasporto\", \"dalla\", \"Trasporto alla\", \"Trasporto dalla\", \"Ritorno dalla\", \"risorse\", \"edifici\", \"Costruisci nuovo edificio\", \"vuoto\", \"livello\"]; \n\t\t\t\taLangRaceName = [\"Romani\", \"Teutoni\", \"Galli\"]; \n\t\t\t\taLangTaskOfText = [\"Programma Ampliamento\", \"Programma Nuovo Edificio\", \"AutoResUpD\", \"Non_attivo\", \"Start\", \"Iniziato\", \"Sospeso\", \"La distribuzione delle risorse di questo villaggio e' \", \"Autotrasporto\", \"Autotrasporto non e aperto\", \"Aperto\", \"Trasportato con successo\", \"Lista Compiti\", \"Trans_In_limit\", \"Default\", \"Modificare\", \"Legno/Argilla/Ferro\", \"Grano\", \"Demolire\",\n\t\t\t\t\t\"Programma Attacco\", \"Tipo Attacco\", \"Tempo Percorso\", \"ripeti\", \"intervallo di tempo\", \"00:30:00\", \"Obiettivo Catapulta\", \"Random\", \"Sconosciuto\", \"volte\", \"Mese\", \"Giorno\", \"Truppe Inviate\", \"Programma Addestramento\", \"Edificio di addestramento\", \"Addestramento Finito\", \"Transporto Diverso\", \"ripeti numero volte\", \"questo é l'intervallo di ricarica pagina,\\n default é 20 minuti, per favore inserire nuovo tempo:\\n\\n\", \"Trans_Out_Rmn\", \"Programma la Festa\", \"festa piccola\", \"Festa grande\", \"Imposta l'Intervallo di Concentrazione delle Risorse\",\n\t\t\t\t\t\"minuti\", \"in attesa\", \"corrente\", \"fare\", \"pausa\", \"Schedula Miglioria\", \"Migliora l'attacco\", \"Migliora la difesa\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"]; \n\t\t\t\taLangErrorText = [\"Mancano le risorse.\", \"I Lavoratori Sono Pronti per Lavorare\", \"Edificio Completo\", \"Inizia Edificio\", \"Nella Ricerca\", \"Il tuo Magazzino é piccolo. Per favore amplia il magazzino per continuare la costruzione\", \"Il tuo Granaio e piccolo. Per favore amplia il granaio per continuare la costruzione\", \"Risorse sufficienti\", \"Mancanza di Cibo: Amplia i Campi di grano\", \"Pronta la Festa\"]; \n\t\t\t\taLangOtherText = [\"Nota Importante \", \"Solo i Campi della Capitale possono essere ampliati al livello 20. La tua capitale non é determinata. Visita il tuo Profilo per favore.\", \"Shortcut here ^_^\", \"Setup compiuto\", \"Cancellato\", \"Inizia i Compiti\", \"Ampliato con successo\", \"Iniziato con successo\", \"La tua razza e' sconosciuta, anche il tipo di truppe. Visita il tuo Profilo per determinare la razza.\", \"Per favore visita Circolo degli eroi per determinare la velocita e il tipo di eroe.\"];\n\t\t\t\taLangResources = [\"legno\", \"argilla\", \"ferro\", \"grano\"]; \n\t\t\t\taLangTroops[0] = [\"Legionario\", \"Pretoriano\", \"Imperiano\", \"Emissario a cavallo\", \"Cavaliere del Generale\", \"Cavaliere di Cesare\", \"Ariete\", \"Onagro\", \"Senatore\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangTroops[1] = [\"Combattente\", \"Alabardiere\", \"Combattente con ascia\", \"Esploratore\", \"Paladino\", \"Cavaliere Teutonico\", \"Ariete\", \"Catapulta\", \"Comandante\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangTroops[2] = [\"Falange\", \"Combattente con spada\", \"Ricognitore\", \"Fulmine di Teutates\", \"Cavaliere druido\", \"Paladino di Haeduan\", \"Ariete\", \"Trabucco\", \"Capo tribù\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangAttackType = [\"Rinforzi\", \"Attacco\", \"Raid\"];\n\t\t\t\tbreak;\n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\t// 2011.03.28 -- provided by Psea\n\t\t\t\taLangAllBuildWithId = [\"Bosco\", \"Pozzo d'argilla\", \"Miniera di ferro\", \"Campo di grano\", \"\", \"Segheria\", \"Fabbrica di Mattoni\", \"Fonderia\", \"Mulino\", \"Forno\", \"Magazzino\", \"Granaio\", \"Fucina\", \"Fucina\", \"Arena\", \"Palazzo Pubblico\", \"Base militare\", \"Mercato\", \"Ambasciata\", \"Caserma\", \"Scuderia\", \"Officina\", \"Accademia\", \"Deposito Segreto\", \"Municipio\", \"Reggia\", \"Castello\", \"Camera del tesoro\", \"Ufficio Commerciale\", \"Grande caserma\", \"Grande Scuderia\", \"Mura Cittadine\", \"Fortificazioni\", \"Palizzata\", \"Genio Civile\", \"Birrificio\", \"Esperto di trappole\", \"Dimora dell'Eroe\", \"Grande Magazzino\", \"Grande Granaio\", \"Meraviglia\", \"Fonte Equestre\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Bosco\", \"Pozzo d'argilla\", \"Miniera di ferro\", \"Campo di grano\", \"\", \"Segheria\", \"Fabbrica di mattoni\", \"Fonderia\", \"Mulino\", \"Forno\", \"Magazzino\", \"Granaio\", \"Fucina\", \"Fucina\", \"Arena\", \"Palazzo Pubblico\", \"Base militare\", \"Mercato\", \"Ambasciata\", \"Caserma\", \"Scuderia\", \"Officina\", \"Accademia\", \"Deposito Segreto\", \"Municipio\", \"Reggia\", \"Castello\", \"Camera del tesoro\", \"Ufficio Commerciale\", \"Grande Caserma\", \"Grande Scuderia\", \"Mura cittadine\", \"Fortificazioni\", \"Palizzata\", \"Genio Civile\", \"Birrificio\", \"Esperto di trappole\", \"Dimora dell'Eroe\", \"Grande Magazzino\", \"Grande Granaio\", \"Meraviglia\", \"Fonte Equestre\"];\n\t\t\t\taLangAddTaskText = [\"Aggiungere Compito\", \"Tipo\", \"Villaggio Attivo\", \"Obiettivo del Compito\", \"Coordinate\", \"Modo\", \"Supporto di Costruzione\", \"Concentrazione risorse\", \"SU\", \"GIU\", \"Cancella\", \" Contenuto del Compito\", \"Muovere\", \"Cancella tutti i Compiti\"]; \n\t\t\t\taLangTaskKind = [\"Amplia\", \"Nuovo Edificio\", \"Attacco\", \"Ricerca\", \"Addestra\", \"Trasporto\", \"NPC\", \"Demolire\", \"Festa\"]; \n\t\t\t\taLangGameText = [\"Livello\", \"Mercanti\", \"ID\", \"Capitale\", \"Tempo di Inizio\", \"Questa impostazione di tempo non si usa.\", \"Coordinate\", \"Villaggio\", \"Trasporto\", \"dalla\", \"Trasporto a\", \"Trasporto da\", \"In ritorno da\", \"Risorse\", \"Edifici\", \"Costruisci nuovo edificio\", \"vuoto\", \"livello\"]; \n\t\t\t\taLangRaceName = [\"Romani\", \"Teutoni\", \"Galli\"]; \n\t\t\t\taLangTaskOfText = [\"Programma Ampliamento\", \"Programma Nuovo Edificio\", \"AutoResUpD\", \"Non_attivo\", \"Start\", \"Iniziato\", \"Sospeso\", \"La distribuzione delle risorse di questo villaggio e' \", \"Autotrasporto\", \"Autotrasporto non aperto\", \"Aperto\", \"Trasportato con successo\", \"Lista Compiti\", \"Trans_In_limit\", \"Default\", \"Modificare\", \"Legno/Argilla/Ferro\", \"Grano\", \"Demolire\",\n\t\t\t\t\t\"Programma Attacco\", \"Tipo Attacco\", \"Tempo Percorso\", \"ripeti\", \"intervallo di tempo\", \"00:30:00\", \"Obiettivo Catapulta\", \"Random\", \"Sconosciuto\", \"volte\", \"Mese\", \"Giorno\", \"Truppe Inviate\", \"Programma Addestramento\", \"Edificio addestramento\", \"Addestramento Finito\", \"Transporto Diverso\", \"Ripeti numero volte\", \"Questo é l'intervallo di ricarica pagina,\\n default é 20 minuti, per favore inserisci il nuovo tempo:\\n\\n\", \"Trans_Out_Rmn\", \"Programma la Festa\", \"Festa piccola\", \"Festa grande\", \"Imposta l'Intervallo di Concentrazione delle Risorse\",\n\t\t\t\t\t\"minuti\", \"in attesa\", \"corrente\", \"fare\", \"pausa\", \"Schedula miglioria\", \"Migliora attacco\", \"Migliora difesa\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"]; \n\t\t\t\taLangErrorText = [\"Mancano le risorse.\", \"I tuoi costruttori sono già occupati nella costruzione di un altro edificio\", \"Livello massimo raggiunto\", \"Inizia Edificio\", \"Nella Ricerca\", \"Il tuo Magazzino \", \"Il tuo Granaio \", \"Risorse disponibili\", \"Mancanza di cibo\", \"Pronta la Festa\"]; \n\t\t\t\taLangOtherText = [\"Nota Importante \", \"Solo i Campi della Capitale possono essere ampliati al livello 20. La tua capitale non é determinata. Visita il tuo Profilo per favore.\", \"Shortcut here ^_^\", \"Setup compiuto\", \"Cancellato\", \"Inizia i Compiti\", \"Ampliato con successo\", \"Iniziato con successo\", \"La tua razza e' sconosciuta, anche il tipo di truppe. Visita il tuo Profilo per determinare la razza.\", \"Per favore visita il Circolo degli eroi per determinare la velocita e tipo di eroe.\"];\n\t\t\t\taLangResources = [\"legno\", \"argilla\", \"ferro\", \"grano\"]; \n\t\t\t\taLangTroops[0] = [\"Legionario\", \"Pretoriano\", \"Imperiano\", \"Emissario a cavallo\", \"Cavaliere del Generale\", \"Cavaliere di Cesare\", \"Ariete\", \"Onagro\", \"Senatore\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangTroops[1] = [\"Combattente\", \"Alabardiere\", \"Combattente con ascia\", \"Esploratore\", \"Paladino\", \"Cavaliere Teutonico\", \"Ariete\", \"Catapulta\", \"Comandante\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangTroops[2] = [\"Falange\", \"Combattente con spada\", \"Ricognitore\", \"Fulmine di Teutates\", \"Cavaliere druido\", \"Paladino di Haeduan\", \"Ariete\", \"Trabucco\", \"Capo tribù\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangAttackType = [\"Rinforzi\", \"Attacco\", \"Raid\"];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrowLogicError ( \"initializeLangVars():: Travian Version not set, when initializing language variables for \\'it\\'!!\" );\n\t\t}\n\t\tbreak;\n\n\n\tcase \"si\": // thanks Bananana and Tuga\n\t\taLangAllBuildWithId = [\"Gozdar\", \"Glinokop\", \"Rudnik železa\", \"Žitno polje\", \"\", \"Žaga\", \"Opekarna\", \"Talilnica železa\", \"Mlin\", \"Pekarna\", \"Skladišče\", \"Žitnica\", \"Izdelovalec orožja\", \"Izdelovalec oklepov\", \"Vadbišče\", \"Gradbeni ceh\", \"Zbirališče\", \"Tržnica\", \"Ambasada\", \"Barake\", \"Konjušnica\", \"Izdelovalec oblegovalnih naprav\", \"Akademija\", \"Špranja\", \"Mestna hiša\", \"Rezidenca\", \"Palača\", \"Zakladnica\", \"Trgovski center\", \"Velike barake\", \"Velika konjušnica\", \"Mestno obzidje\", \"Zemljen zid\", \"Palisada\", \"Kamnosek\", \"Pivnica\", \"Postavljalec pasti\", \"Herojeva rezidenca\", \"Veliko skladišče\", \"Velika žitnica\", \"Čudež sveta\"];\n\t\taLangAllBuildAltWithId = [\"Gozdar\", \"Glinokop\", \"Rudnik železa\", \"Žitno polje\", \"\", \"Žaga\", \"Opekarna\", \"Talilnica železa\", \"Mlin\", \"Pekarna\", \"Skladišče\", \"Žitnica\", \"Izdelovalec orožja\", \"Izdelovalec oklepov\", \"Vadbišče\", \"Gradbeni ceh\", \"Zbirališče\", \"Tržnica\", \"Ambasada\", \"Barake\", \"Konjušnica\", \"Izdelovalec oblegovalnih naprav\", \"Akademija\", \"Špranja\", \"Mestna hiša\", \"Rezidenca\", \"Palača\", \"Zakladnica\", \"Trgovski center\", \"Velike barake\", \"Velika konjušnica\", \"Mestno obzidje\", \"Zemljen zid\", \"Palisada\", \"Kamnosek\", \"Pivnica\", \"Postavljalec pasti\", \"Herojeva rezidenca\", \"Veliko skladišče\", \"Velika žitnica\", \"Čudež sveta\"];\n\t\taLangAddTaskText = [\"Dodaj nalogo\", \"Style\", \"Aktivna vas\", \"Nadgradi\", \"Na\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Prestavi gor\", \"Prestavi dol\", \"Izbriši\", \" Naloge\", \"Premakni \", \"Izbriši vse naloge\"];\n\t\taLangTaskKind = [\"Nadgradi\", \"Zazidljiva parcela\", \"Napad\", \"Razišči\", \"Uri\", \"Transport\", \"NPC\", \"Demolish\", \"Festival\"];\n\t\taLangGameText = [\"Stopnja\", \"Merchants\", \"ID\", \"Prestolnica\", \"Začetek ob\", \"Nastavitev časa ni pomembna.\", \"to\", \"Vas\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Postavi nov objekt\", \"empty\", \"level\"];\n\t\taLangRaceName = [\"Rimljani\", \"Tevtoni\", \"Galci\"];\n\t\taLangTaskOfText = [\"Nadgradi kasneje\", \"Postavi nov objekt\", \"Surovine gor\", \"Pauza\", \"Začetek\", \"Začeto\", \"Prekliči\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Naloge\", \"Trans_In_limit\", \"Osnovno\", \"Spremeni\", \"Les/Glina/Železo\", \"Crop\", \"Podri kasneje\",\n\t\t\t\"Napadi kasneje\", \"Tip napada\", \"Do napada\", \"Ponovi\", \"Vrnitev čez\",\"00:30:00\",\"Tarča katapultov\",\"Naključno\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Enote poslane\", \"Uri kasneje\",\"Mesto urjenja\",\"Urjenje končano\",\"customTransport\",\"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans_Out_Rmn\",\"ScheduleParty\",\"mali festival\",\"veliki festival\",\"setInterval of Resources concentration\",\n\t\t\t\"minute\",\".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Primankljaj surovin.\", \"Delavci so že na delu.\", \"Zgrajeno\", \"Začnem z gradnjo\", \"V razvoju\", \"Seu Armazém é pequeno. Evolua o seu armazém para continuar a sua construção\", \"Seu Celeiro é pequeno. Evolua o seu Celeiro para continuar a sua construção\", \"Recursos suficientes\",\"Já se encontra uma celebração em curso\"];\n\t\taLangOtherText = [\"Pomembno!\", \"Samo polja v prestolnicigredo do stopnje 20 . A sua capitalnao está detectavel. Por favor visite o seu perfil.\", \"Atalho aqui ^_^\", \"Naloga uspešno dodana\", \"Preklicano\", \"Začni z nalogo\", \"Uspešno nadgrajeno\", \"Executar com sucesso\", \"Sua raça é desconhecida, e o seu tipo de tropa também.Visite o seu perfil para determinar as raça.\", \"Por favor visite a sua mansão do heroi para determinara velocidade e o tipo de heroi.\"];\n\t\taLangResources=[\"Les\",\"Glina\",\"Železo\",\"Žito\"]; \n\t\taLangTroops[0] = [\"Legionar\", \"Praetorijan\", \"Imperijan\", \"Izvidnik\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Oblegovalni oven\", \"Ognjeni katapult\", \"Senator\", \"Kolonist\", \"Heroj\"];\n\t\taLangTroops[1] = [\"Gorjačar\", \"Suličar\", \"Metalec sekir\", \"Skavt\", \"Paladin\", \"Tevtonski vitez\", \"Oblegovalni oven\", \"Mangonel\", \"Vodja\", \"Kolonist\", \"Heroj\" ];\n\t\taLangTroops[2] = [\"Falanga\", \"Mečevalec\", \"Stezosledec\", \"Theutatesova Strela\", \"Druid\", \"Haeduan\", \"Oblegovalni oven\", \"Trebušet\", \"Poglavar\", \"Kolonist\", \"Heroj\"];\n\t\taLangAttackType = [\"Okrepitev\", \"Napad\", \"Ropanje\"];\n\t\tbreak;\n\n\tcase \"vn\": // thanks Tuga\n\t\taLangAllBuildWithId = [\"Tiều Phu\", \"Mỏ Đất Sét\", \"Mỏ sắt\", \"Ruộng lúa\", \"\", \"Xưởng Gỗ\", \"Lò Gạch\", \"Lò Rèn\", \"Nhà Xay Lúa\", \"Lò Bánh\", \"Nhà Kho\", \"Kho Lúa\", \"Thợ Rèn\", \"Lò Luyện Giáp\", \"Võ Đài\", \"Nhà Chính\", \"Binh Trường\", \"Chợ\", \"Đại Sứ Quán\", \"Trại Lính\", \"Chuồng Ngựa\", \"Xưởng\", \"Học Viện\", \"Hầm Ngầm\", \"Tòa Thị Chính\", \"Lâu Đài\", \"Cung Điện\", \"Kho Bạc\", \"Phòng Thương Mại\", \"Doanh Trại Lớn\", \"Trại Ngựa\", \"Tường Thành\", \"Tường Đất\", \"Tường Rào\", \"Thợ Xây Đá\", \"Quán bia\", \"Hố Bẫy\",\"Lâu đài tướng\", \"Nhà Kho Lớn\", \"Kho Lúa Lớn\", \"Kỳ Quan\", \"Tàu ngựa\"];\n\t\taLangAllBuildAltWithId = [\"Tiều Phu\", \"Mỏ Đất Sét\", \"Mỏ sắt\", \"Ruộng lúa\", \"\", \"Xưởng Gỗ\", \"Lò Gạch\", \"Lò Rèn\", \"Nhà Xay Lúa\", \"Lò Bánh\", \"Nhà Kho\", \"Kho Lúa\", \"Thợ Rèn\", \"Lò Luyện Giáp\", \"Võ Đài\", \"Nhà Chính\", \"Binh Trường\", \"Chợ\", \"Đại Sứ Quán\", \"Trại Lính\", \"Chuồng Ngựa\", \"Xưởng\", \"Học Viện\", \"Hầm Ngầm\", \"Tòa Thị Chính\", \"Lâu Đài\", \"Cung Điện\", \"Kho Bạc\", \"Phòng Thương Mại\", \"Doanh Trại Lớn\", \"Trại Ngựa\", \"Tường Thành\", \"Tường Đất\", \"Tường Rào\", \"Thợ Xây Đá\", \"Quán bia\", \"Hố Bẫy\",\"Lâu đài tướng\", \"Nhà Kho Lớn\", \"Kho Lúa Lớn\", \"Kỳ Quan\", \"Tàu ngựa\"];\n\t\taLangAddTaskText = [\"Thêm nhiệm vụ\", \"Loại\", \"Tại làng\", \"Mục tiêu\", \"Tới\", \"Phương thức\", \"Tự động\", \"Tùy chỉnh\", \"Di chuyển lên\", \"Di chuyển xuống\", \"Xóa\", \"&#160;&#160;&#160;Nội dung công việc\", \"Di chuyển\", \"Xóa tất cả danh mục\"];\n\t\taLangTaskKind = [\"Nâng cấp\", \"Kiến Trúc Mới\", \"Tấn công\", \"Nghiên cứu\", \"Huấn luyện\", \"Vận chuyển\", \"NPC\", \"Phá hủy\", \"ăn mừng\"];\n\t\taLangGameText = [\"Cấp \", \"Lái Buôn\", \"Tại vị trí\", \"Thủ đô\", \"Bắt đầu tại\", \"Chưa dùng được chức năng này.\", \"đến\", \"Làng\", \"vận chuyển\", \"từ\", \"Vận chuyển đến\", \"Vận chuyển từ\", \"Trở về từ\", \"Tài nguyên\", \"Kiến trúc\", \"Xây Kiến Trúc Mới\", \"không có gì\", \"Cấp\"];\n\t\taLangRaceName = [\"Tộc Romans\", \"Tộc Teutons\", \"Tộc Gauls\"];\n\t\taLangTaskOfText = [\"Lên lịch nâng cấp kiến trúc này\", \"Lên lịch xây kiến trúc này\", \"Tự động nâng cấp các mỏ\", \"Chưa kích hoạt\", \"Kích hoạt\", \"Đã kích hoạt\", \"Hủy\", \"Đây là làng loại \", \"Tự động gửi tài nguyên\", \"Tự động gửi tài nguyên chưa được kích hoạt\", \"Đã được kích hoạt\", \"Gủi thành công\", \"Danh mục\", \"Tài nguyên bạn muốn nhận\", \"Mặc định\", \"Tùy chỉnh \", \"Gỗ/Đất sét/Sắt\", \"Lúa\", \"Lên lịch phá hủy công trình\",\n\t\t\t\"Lên lịch tấn công làng này\", \"Loại tấn công\", \"Thời gian để đến nơi\", \"Số lần lặp lại\", \"Khoảng cách giữa các lần lặp lại\",\"00:30:00\",\"Mục tiêu cata\",\"Ngẫu nhiên\", \"Chưa biết\", \"Giờ\", \"Tháng\", \"Ngày\", \"Đã gửi lính\", \"Lên lịch huấn luyện lính này\",\"Train ubication\",\"Lính đang được huấn luyện\",\"Tùy chỉnh gửi tài nguyên\",\"Thiết lập thời gian tải lại trang web\",\"Đây là khoảng thởi gian tải lại trang web ,\\n Mặc định là 20 phút, hãy điền vào số phút bạn muốn thay đổi:\\n\\n\",\"Tài nguyên bạn muốn chừa lại\",\"Lên lịch ăn mừng\",\"Ăn mừng nhỏ\",\"Ăn mừng lớn\",\"Thiết lập khoảng thời gian bạn muốn gửi tài nguyên\",\n\t\t\t\"Phút\",\"Đang tạm dừng\",\"Đang thi hanh\",\"Thi hành\",\"Tạm dừng\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Quá ít tài nguyên.\", \"Công nhân đang làm nhiệm vụ khác.\", \"Kiến trúc đã hoàn thiên\", \"Bắt đầu xây dựng\", \"Đang xây dựng\", \"Nhà kho quá nhỏ. Hãy nâng cấp nhà kho mới xây dựng được kiến trúc\", \"Kho lúa quá nhỏ. Hãy nâng cấp kho lúa mới xây được kiến trúc\", \"Quá ít tài nguyên\",\"\",\"Hiện đang có buổi lễ ăn mừng\"];\n\t\taLangOtherText = [\"Chú thích quan trọng\", \"Chỉ thủ đô mới có thể<br/>nâng cấp các mỏ lên level 20. THủ đô của bạn<br/> chưa thấy. hãy vào phần hồ sơ của bạn.\", \"Click vào đây\", \"Cài đặt hoàn tất\", \"Đã hủy\", \"Bắt đầu công việc\", \"Nâng cấp thành công\", \"Kích hoạt thành công\", \"CHưa biết bạn thuộc tộc nào. <br/>Vì vậy bạn nên vào hồ sơ để cập nhật thông tin.<br/>\", \"Bạn cũng nên vào Lâu Đài Tướng để cập nhật<br/> tốc đọ và loại tướng.\"];\n\t\taLangResources=[\"Gỗ\",\"Đất sét\",\"Sắt\",\"Lúa\"];\n\t\taLangTroops[0] = [\"Lính Lê Dương\", \"Thị Vệ\", \"Chiến Binh Tinh Nhuệ\", \"Kỵ Binh Do Thám\", \"Kỵ Binh\", \"Kỵ Binh Tinh Nhuệ\", \"Xe Công Thành\", \"Máy Phóng Lửa\", \"Nguyên Lão\", \"Dân Khai Hoang\", \"Tướng\"];\n\t\taLangTroops[1] = [\"Lính Chùy\", \"Lính Giáo\", \"Lính Rìu\", \"Do Thám\", \"Hiệp Sĩ Paladin\", \"Kỵ Sĩ Teutonic\", \"Đội Công Thành\", \"Máy Bắn Đá\", \"Thủ Lĩnh\", \"Dân Khai Hoang\", \"Tướng\"];\n\t\taLangTroops[2] = [\"Lính Pha Lăng\", \"Kiếm Sĩ\", \"Do Thám\", \"Kỵ Binh Sấm Sét\", \"Tu Sĩ\", \"Kỵ Binh\", \"Máy Nện\", \"Máy Bắn Đá\", \"Tù Trưởng\", \"Dân Khai Hoang\", \"Tướng\"];\n\t\taLangAttackType = [\"Tiếp viện\", \"Tấn công\", \"Cướp bóc\"];\n\t\tbreak;\n\n\tcase \"ru\": // by MMX\n\t\taLangAllBuildWithId = [\"Лесопилка\", \"Глиняный карьер\", \"Железный рудник\", \"Ферма\", \"\", \"Лесопильный завод\", \"Кирпичный завод\", \"Чугунолитейный завод\", \"Мукомольная мельница\", \"Пекарня\", \"Склад\", \"Амбар\", \"Кузница оружия\", \"Кузница доспехов\", \"Арена\", \"Главное здание\", \"Пункт сбора\", \"Рынок\", \"Посольство\", \"Казарма\", \"Конюшня\", \"Мастерская\", \"Академия\", \"Тайник\", \"Ратуша\", \"Резиденция\", \"Дворец\", \"Сокровищница\", \"Торговая палата\", \"Большая казарма\", \"Большая конюшня\", \"Стена\", \"Земляной вал\", \"Изгородь\", \"Каменотес\", \"Пивная\", \"Капканщик\",\"Таверна\", \"Большой склад\", \"Большой амбар\", \"Чудо света\", \"Водопой\"];\n\t\taLangAllBuildAltWithId = [\"Лесопилка\", \"Глиняный карьер\", \"Железный рудник\", \"Ферма\", \"\", \"Лесопильный завод\", \"Кирпичный завод\", \"Чугунолитейный завод\", \"Мукомольная мельница\", \"Пекарня\", \"Склад\", \"Амбар\", \"Кузница оружия\", \"Кузница доспехов\", \"Арена\", \"Главное здание\", \"Пункт сбора\", \"Рынок\", \"Посольство\", \"Казарма\", \"Конюшня\", \"Мастерская\", \"Академия\", \"Тайник\", \"Ратуша\", \"Резиденция\", \"Дворец\", \"Сокровищница\", \"Торговая палата\", \"Большая казарма\", \"Большая конюшня\", \"Стена\", \"Земляной вал\", \"Изгородь\", \"Каменотес\", \"Пивная\", \"Капканщик\",\"Таверна\", \"Большой склад\", \"Большой амбар\", \"Чудо света\", \"Водопой\"];\n\t\taLangAddTaskText = [\"Добавить задание\", \"Тип задания\", \"Активная деревня\", \"Цель задания\", \" Цель\", \"Тип\", \"Поддержка строительства\", \"Концентрация ресурсов\", \"Вверх\", \"Вниз\", \"\", \"\", \"\",\"Снять все задания\"];\n\t\taLangTaskKind = [\"Улучшить:\", \"Строим:\", \"Атаковать:\", \"Исследовать:\", \" нанять:\", \"Отправить ресурсы:\", \"NPC:\", \"Разрушить:\", \"Торжество:\"];\n\t\taLangGameText = [\" \", \"Торговцы\", \"ID\", \"Столица\", \"Время запуска\", \"временно не работает\", \"в\", \"Деревня\", \"Транспортировка\", \"из\", \"Транспортировка в\", \"Транспортировка из\", \"Отправка из\", \"ресурсы\", \"здание\", \"Построить новое здание\", \"пусто\", \"уровень\"];\n\t\taLangRaceName = [\"Римляне\", \"Германцы\", \"Галлы\"];\n\t\taLangTaskOfText = [\"Запланировать улучшение\", \"Запланировать новое здание\", \"Качать ресурсы\", \"Выкл\", \"(►)\", \"Вкл\", \"(■)\", \"Распределение полей в деревне: \", \"Автоотправка\", \"Автоотправка выкл.\", \"Вкл.\", \"Успешно отправлено\", \"/Задания/\", \"Лимит ввоза\", \"Нет\", \"Правка \", \"Дерево/Глина/Железо\", \"Зерно\", \"Запланировать разрушение\",\n\t\t\t\"Запланировать атаку\", \"Тип атаки\", \"Време в пути\", \"повторы\", \"через\", \"00:30:00\", \"Цель катов\", \"Случайно\", \"Неизвестно\", \" раз\", \"/\", \" :дата/время: \", \"Войска\",\n\t\t\t\"Запланировать найм\",\"Выбранное здание \", \"Обучение войск завершено\",\"Поставки\", \"Задать интревал обновления\", \"Это интервал обновления страницы ,\\n по умолчанию - 20 минут, Введите новое время:\\n\\n\", \"Лимит вывоза\", \"Запланировать празднование\", \"Малый праздник\", \"Большой праздник\", \"Установка интервала концентрации ресов\",\n\t\t\t\"минуты\", \"Выключен\", \"Включено\", \"(►)\", \"(■)\",\"Запланировать улучшение\",\"Улучшить атаку\",\"Улучшить защиту\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Недостаточно сырья\", \"Все строители сейчас заняты\", \"Это здание отстроено полностью\", \"Начинаю строительство\", \"Процесс развития\", \"Недостаточна вместимость склада\", \"Недостаточна вместимость амбара\", \"Достаточно ресурсов\", \"Недостаток продовольствия: развивайте фермы.\",\"Проводится торжество\"];\n\t\taLangOtherText = [\"Важные заметки\", \"Только в столице поля могут быть до уровня 20.<br/>Столица не определена.Зайдите в профиль\", \"Ссылка тут ^_^\", \"<br/>Настройка завершена\", \"Отменено\", \"Начать задачи\", \" Улучшение прошло успешно\", \"Успешно\", \"Ваш народ неопределен.Пожалуйста зайдите в профиль.\", \"Также пожалуйста зайдите в таверну<br/>для определения типа и скорости героя\"];\n\t\taLangResources = [\"Древесина\",\"Глина\",\"Железо\",\"Зерно\"];\n\t\taLangTroops[0] = [\"Легионер\", \"Преторианец\", \"Империанец\", \"Конный разведчик\", \"Конница императора\", \"Конница Цезаря\", \"Таран\", \"Огненная катапульта\", \"Сенатор\", \"Поселенец\", \"Герой\"];\n\t\taLangTroops[1] = [\"Дубинщик\", \"Копьеносец\", \"Топорщик\", \"Скаут\", \"Паладин\", \"Тевтонская конница\", \"Стенобитное орудие\", \"Катапульта\", \"Вождь\", \"Поселенец\", \"Герой\"];\n\t\taLangTroops[2] = [\"Фаланга\", \"Мечник\", \"Следопыт\", \"Тевтатский гром\", \"Друид-всадник\", \"Эдуйская конница\", \"Таран\", \"Требушет\", \"Предводитель\", \"Поселенец\", \"Герой\"];\n\t\taLangAttackType = [\"Подкрепление\", \"Нападение\", \"Набег\"];\n\t\tbreak; \n\n\tcase \"rs\": // by rsinisa\n\t\taLangAllBuildWithId = [\"Дрвосеча\", \"Рудник глине\", \"Рудник гвожђа\", \"Њива\", \"\", \"Пилана\", \"Циглана\", \"Ливница гвожђа\", \"Млин\", \"Пекара\", \"Складиште\", \"Силос\", \"Ковачница оружја\", \"Ковачница оклопа\", \"Витешка арена\", \"Главна зграда\", \"Место окупљања\", \"Пијаца\", \"Амбасада\", \"Касарна\", \"Штала\", \"Радионица\", \"Академија\", \"Склониште\", \"Општина\", \"Резиденција\", \"Палата\", \"Ризница\", \"Трговачки центар\", \"Велика касарна\", \"Велика штала\", \"Градски зид\", \"Земљани зид\", \"Палисада\", \"Каменорезац\", \"Пивница\", \"Постављач замки\",\"Дворац хероја\", \"Велико складиште\", \"Велики силос\", \"Светско чудо\", \"Појилиште\"];\n\t\taLangAllBuildAltWithId = [\"Дрвосеча\", \"Рудник глине\", \"Рудник гвожђа\", \"Њива\", \"\", \"Пилана\", \"Циглана\", \"Ливница гвожђа\", \"Млин\", \"Пекара\", \"Складиште\", \"Силос\", \"Ковачница оружја\", \"Ковачница оклопа\", \"Витешка арена\", \"Главна зграда\", \"Место окупљања\", \"Пијаца\", \"Амбасада\", \"Касарна\", \"Штала\", \"Радионица\", \"Академија\", \"Склониште\", \"Општина\", \"Резиденција\", \"Палата\", \"Ризница\", \"Трговачки центар\", \"Велика касарна\", \"Велика штала\", \"Градски зид\", \"Земљани зид\", \"Палисада\", \"Каменорезац\", \"Пивница\", \"Постављач замки\",\"Дворац хероја\", \"Велико складиште\", \"Велики силос\", \"Светско чудо\", \"Појилиште\"];\n\t\taLangAddTaskText = [\"Додај задатак\", \"Начин\", \"Активна села\", \"Задата мета\", \"на\", \"Мод\", \"Подршка изградње\", \"Концентрација ресурса\", \"Помери горе\", \"Помери доле\", \"Бриши\", \" Списак задатака\", \"Помери \", \"Обриши све задатке\"];\n\t\taLangTaskKind = [\"Надогради\", \"Нова градња\", \"Напад\", \"Истраживање\", \"Обучи\", \"Транспорт\", \"НПЦ\", \"Рушити\", \"Забава\"];\n\t\taLangGameText = [\"ниво \", \"Трговци\", \"ID\", \"Главни град\", \"Време почетка\", \"ово временско подешавање је бескорисно\", \" према\", \"Село\", \"транспорт\", \"из\", \"Пребацивање према\", \"Пребацивање из\", \"повратак из\", \"ресурси\", \"изградња\", \"Направи нову зграду\", \"празно\", \"ниво\"];\n\t\taLangRaceName = [\"Римљани\", \"Тевтонци\", \"Гали\"];\n\t\taLangTaskOfText = [\"Распоред за надоградњу\", \"Направи нови распоред\", \"Ауто надоградња ресурса\", \"Неактивно\", \"Покрени\", \"Активно\", \"Заустави\", \"Дистрибуција ресурсних поља овог села је \", \"Аутотранспорт\", \"Аутотранспорт није отворен\", \"Отворен\", \"Транспорт успешан\", \"Листа задатака\", \"Транспорт са лимитом\", \"Подразумевано\", \"Измени\", \"Дрво/Гллина/Гвожђе\", \"Њива\", \"Листа рушења\", \"Листа напада\", \"Врста напада\", \"Време превоза\", \"број понављања\", \"Временски интервал\",\"00:30:00\",\"Мета катапулта\",\"Насумично\", \"Непознат\", \" пута\", \". месец, \", \". дан, у \", \"Слање трупа\", \"Листа обуке\",\"Место обуке\",\"Тренинг задатак урадити\",\"прилагођен транспорт\",\"подеси време поновног учитавања \",\" ово је интервал поновног учитавања стране, \\n подразумевана вредност је 20 минута, молимо Вас убаците ново време:\\n \\n\",\"Остатак одлазног транспорта\",\"Листа забава\",\"мала забава\",\"велика забава\",\" Подесите интервал концентрације ресурса \", \"минути\", \"заустављено\", \"активно\", \"покрени\", \"паузирај\",\"Распоред унапређења\",\"Унапреди напад\",\"Унапреди одбрану\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Премало ресурса.\", \"Радници су већ на послу.\", \"Изградња завршена\", \"Покретање изградње\", \"У изградњи\", \"Складиште је премало. Проширите складиште како би наставили са изградњом\", \"Силос је премали. Проширите силос како би наставили са изградњом\", \"Довољно ресурса\",\"Премало жита: прошири прво њиве\",\"Прослава је већ у току\"];\n\t\taLangOtherText = [\"Важна напомена\", \"Само у главном граду ресурсна поља могу бити проширена на ниво 20. Твој главни град није детектован, погледај свој профил.\", \"Пречица овде ^_^\", \"Подешавања готова\", \"Отказано\", \"Покрени задатке\", \"Надоградња успешна\", \"Покретање успешно\", \"Ваше племе је непознато, стога и врста трупа. Погледајте свој профил да видите који сте народ.\",\"Такође посетите дворац хероја да сазнате брзину и тип свог хероја \"];\n\t\taLangResources=[\"дрво\",\"глина\",\"гвожђе\",\"жито\"];\n\t\taLangTroops[0] = [\"Легионар\", \"Преторијанац\", \"Империјанац\", \"Извиђач\", \"Императорова коњица\", \"Цезарева коњица\", \"Ован\", \"Ватрени катапулт\", \"Сенатор\", \"Насељеник\", \"Херој\"];\n\t\taLangTroops[1] = [\"Батинар\", \"Копљаник\", \"Секираш\", \"Извиђач\", \"Паладин\", \"Тевтонски витез\", \"Ован\", \"Катапулт\", \"Поглавица\", \"Насељеник\", \"Херој\"];\n\t\taLangTroops[2] = [\"Фаланга\", \"Мачевалац\", \"Извиђач\", \"Галски витез\", \"Друид\", \"Коњаник\", \"Ован\", \"Катапулт\", \"Старешина\", \"Насељеник\", \"Херој\"];\n\t\taLangAttackType = [\"Појачање\", \"Нормалан\", \"Пљачка\"];\n\t\tbreak;\n\n\tcase \"ba\": // thanks ieyp\n\t\taLangAllBuildWithId = [\"Drvosječa\", \"Rudnik gline\", \"Rudnik željeza\", \"Poljoprivredno imanje\", \"\", \"Pilana\", \"Ciglana\", \"Livnica\", \"Mlin\", \"Pekara\", \"Skladište\", \"Silos\", \"Oruzarnica\", \"Kovacnica oklopa\", \"Mejdan\", \"Glavna zgrada\", \"Mesto okupljanja\", \"Pijaca\", \"Ambasada\", \"Kasarna\", \"Stala\", \"Radionica\", \"Akademija\", \"Skloniste\", \"Opstina\", \"Rezidencija\", \"Palata\", \"Riznica\", \"Trgovacki centar\", \"Velika kasarna\", \"Velika stala\", \"Gradski zid\", \"Zemljani zid\", \"Taraba\", \"Kamenorezac\", \"Pivnica\", \"Zamkar\",\"Dvorac heroja\", \"Veliko skladiste\", \"Veliki silos\", \"WW\", \"Pojiliste\"];\n\t\taLangAllBuildAltWithId = [\"Drvosječa\", \"Rudnik gline\", \"Rudnik željeza\", \"Poljoprivredno imanje\", \"\", \"Pilana\", \"Ciglana\", \"Livnica\", \"Mlin\", \"Pekara\", \"Skladište\", \"Silos\", \"Oruzarnica\", \"Kovacnica oklopa\", \"Mejdan\", \"Glavna zgrada\", \"Mesto okupljanja\", \"Pijaca\", \"Ambasada\", \"Kasarna\", \"Stala\", \"Radionica\", \"Akademija\", \"Skloniste\", \"Opstina\", \"Rezidencija\", \"Palata\", \"Riznica\", \"Trgovacki centar\", \"Velika kasarna\", \"Velika stala\", \"Gradski zid\", \"Zemljani zid\", \"Taraba\", \"Kamenorezac\", \"Pivnica\", \"Zamkar\",\"Dvorac heroja\", \"Veliko skladiste\", \"Veliki silos\", \"WW\", \"Pojiliste\"];\n\t\taLangAddTaskText = [\"Dodaj zadatak\", \"Nacin\", \"Aktivna sela\", \"Zadata meta\", \"Prema\", \"Mod\", \"Podrska izgradnje\", \"Koncentracija resursa\", \"Pomeri gore\", \"Pomeri dole\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Pomeri \", \"Obrisi sve zadatke\"];\n\t\taLangTaskKind = [\"Unapredi\", \"Nova izgradnja\", \"Napad\", \"Istrazivanje\", \"Obuci\", \"Transport\", \"NPC\", \"Rusiti\", \"Zabava\"];\n\t\taLangGameText = [\"Lvl\", \"Trgovci\", \"ID\", \"Glavni grad\", \"Vreme pocetka\", \"ovo vremensko podesavanje je beskorisno\", \"prema\", \"Selo\", \"transport\", \"iz\", \"Prebacivanje prema\", \"Prebacivanje iz\", \"povratak iz\", \"resursi\", \"izgradnja\", \"Napravi novu zgradu\", \"prazno\", \"nivo\"];\n\t\taLangRaceName = [\"Rimljani\", \"Teutonci\", \"Gali\"];\n\t\taLangTaskOfText = [\"Raspored za nadogradnju\", \"Napravi novi raspored\", \"AutoResUpD\", \"Not_run\", \"Pokreni\", \"Pokrenuto\", \"Zaustavi\", \"Distribucija resursnih polja ovog sela je \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Transport sa limitom\", \"Podrazumevano\", \"Izmeni\", \"Drvo/Glina/Gvozdje\", \"Njiva\", \"Lista rusenja\",\n\t\t\t\"Lista napada\", \"Vrsta napada\", \"Vreme prevoza\", \"broj ponavljanja\", \"Vremenski interval\",\"00:30:00\",\"Meta katapulta\",\"Nasumicno\", \"Nepoznat\", \"times\", \"Mesec\", \"Dan\", \"Slanje trupa\", \"Lista obuke\",\"Mesto obuke\",\"TreningZadatak uraditi\",\"prilagodenTransport\",\"podesi vreme ponovnog ucitavanja \",\" ovo je interval ponovnog ucitavanja strane, \\n podrazumevan vrednost je 20 minuta, molimo vas ubacite novo vreme:\\n \\n\",\"Trans_Out_Rmn\",\"Lista zabava\",\"mala zabava\",\"velika zabava\",\" Podesite interval koncentracie resursa \",\n\t\t\t\"minuti\", \"zaustavljanje\", \"pokrece se\", \"pokreni\", \"pauza\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Premalo resursa. Buahaha :D\", \"Radnici su vec na poslu :P\", \"Izgradnja zavrsena\", \"Pokretanje izgradnje\", \"U izgradnji\", \"Skladiste je premalo. Prosirite skladiste kako bi nastavili sa izgradnjom\", \"Silos je malecak. Prosirite silos kako bi nastavili sa izgradnjom\", \"Dovoljno resursa\",\"Premalo zita, prvo prosiri njive\",\"Proslava je u toku\"];\n\t\taLangOtherText = [\"Vazna napomena\", \"Samo u glavnom gradu mozete <br/> prosiriti resursna polja preko nivoa 10. Tvoj glavni grad <br/> nije otkriven, poseti svoj profil.\", \"Precica ovde ^^\", \"Podesavanja gotova\", \"Otkazano\", \"Pokreni zadatke\", \"Nadogradnja uspesna\", \"Pokretanje uspesno\", \"Vase pleme je nepoznato, stoga I tip trupa. Posetite <br/> svoj profil da vidite pleme. <br/>\",\"Posetite dvorac heroja da saznate <br/> brzinu I tip svog heroja \"];\n\t\taLangResources=[\"drvo\",\"glina\",\"gvozdje\",\"zito\"];\n\t\taLangTroops[0] = [\"Legionar\", \"Pretorijanac\", \"Imperijanac\", \"Izvidjac\", \"Imperatorova konjica\", \"Cezareva konjica\", \"Ovan\", \"Vatreni katapult\", \"Senator\", \"Naseljenik\", \"Heroj\"];\n\t\taLangTroops[1] = [\"Batinar\", \"Kopljanik\", \"Sekiras\", \"Izvidjac\", \"Paladin\", \"Tetutonski vitez\", \" Ovan \", \"Katapult\", \"Poglavica\", \"Naseljenik\", \"Heroj\"];\n\t\taLangTroops[2] = [\"Falanga\", \"Macevalac\", \"Izvidjac\", \"Teutateov grom\", \"Druid\", \"Heduan\", \" Ovan \", \"Katapult\", \"Staresina\", \"Naseljenik\", \"Heroj\"];\n\t\taLangAttackType = [\"Pojacanje\", \"Normalan\", \"Pljacka\"];\n\t\tbreak;\n\n\tcase \"org\":\n\tcase \"de\": // by LohoC et al.\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\taLangAllBuildWithId = [\"Holzfäller\",\"Lehmgrube\",\"Eisenmine\",\"Getreidefarm\",\"\",\"Sägewerk\",\"Lehmbrennerei\",\"Eisengießerei\",\"Getreidemühle\",\"Bäckerei\",\"Rohstofflager\",\"Kornspeicher\",\"Waffenschmiede\",\"Rüstungsschmiede\",\"Turnierplatz\",\"Hauptgebäude\",\"Versammlungsplatz\",\"Marktplatz\",\"Botschaft\",\"Kaserne\",\"Stall\",\"Werkstatt\",\"Akademie\",\"Versteck\",\"Rathaus\",\"Residenz\",\"Palast\",\"Schatzkammer\",\"Handelskontor\",\"Große Kaserne\",\"Großer Stall\",\"Stadtmauer\",\"Erdwall\",\"Palisade\",\"Steinmetz\",\"Brauerei\",\"Fallensteller\",\"Heldenhof\",\"Großes Rohstofflager\",\"Großer Kornspeicher\",\"Weltwunder\",\"Pferdetränke\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Holzfäller\",\"Lehmgrube\",\"Eisenmine\",\"Getreidefarm\",\"\",\"Sägewerk\",\"Lehmbrennerei\",\"Eisengießerei\",\"Getreidemühle\",\"Bäckerei\",\"Rohstofflager\",\"Kornspeicher\",\"Waffenschmiede\",\"Rüstungsschmiede\",\"Turnierplatz\",\"Hauptgebäude\",\"Versammlungsplatz\",\"Marktplatz\",\"Botschaft\",\"Kaserne\",\"Stall\",\"Werkstatt\",\"Akademie\",\"Versteck\",\"Rathaus\",\"Residenz\",\"Palast\",\"Schatzkammer\",\"Handelskontor\",\"Große Kaserne\",\"Großer Stall\",\"Stadtmauer\",\"Erdwall\",\"Palisade\",\"Steinmetz\",\"Brauerei\",\"Fallensteller\",\"Heldenhof\",\"Großes Rohstofflager\",\"Großer Kornspeicher\",\"Weltwunder\",\"Pferdetränke\"];\n\t\t\t\taLangAddTaskText = [\"Aufgabe hinzufügen\",\"Style\",\"Aktives Dorf\",\"Aufgaben Ziel\",\"nach\",\"Modus\",\"Baubetreuung\",\"Ressourcenkonzentration\",\"Rauf\",\"Runter\",\"Entfernen\",\" Aufgaben Inhalte\",\"Bewegen \",\"alle Aufgaben Löschen\"];\n\t\t\t\taLangTaskKind = [\"Upgrade\",\"Neues Gebäude\",\"Angriff\",\"Forschung\",\"ausbilden\",\"Transport\",\"NPC\",\"Zerstören\",\"Fest\"];\n\t\t\t\taLangGameText = [\"Lvl\",\"Händler\",\"ID\",\"Hauptdorf\",\"Startzeit\",\"diese Zeiteinstellung ist nicht sinnvoll.\",\"nach\",\"Dorf\",\"Transport\",\"von\",\"Transport nach\",\"Transport von\",\"Rückkehr aus\",\"Rohstoffe\",\"Gebäude\",\"Neues Gebäude errichten\",\"leer\",\"Stufe\"];\n\t\t\t\taLangRaceName = [\"Römer\",\"Germane\",\"Gallier\"];\n\t\t\t\taLangTaskOfText = [\"Zeitplan Upgrade\",\"Zeitplan Neu Bauen\",\"AutoResRauf\",\"Pausiert\",\"Start\",\"Laufend\",\"Unterbrechen\",\"Es wird Gebaut \",\"Autotransport\",\"Autotransport ist nicht An\",\"AN\",\"Transport Erfolgreich\",\"Aufgabenliste\",\"Transportlimit (-)\",\"Vorgabe\",\"Ändern \",\"Holz/Lehm/Eisen\",\"G3D\",\"Zeitplan Abriss\",\n\t\t\t\t\t\"Zeitplan Angriff\",\"Angriffsart\",\"Laufzeit\",\"Wiederholungen\",\"Intervalzeit\",\"00:30:00\",\"Katapultziel\",\"Zufall\",\"Unbekannt\",\"mal\",\"Monat\",\"Tag\",\"Truppen senden\",\"Zeitplan Ausbildung\",\"Ausbildungsseite\",\"Ausbildungsauftrag abgeschlossen\",\"Manueller Transport\",\"Setzte Intervalzeit für Reload\",\"Dies ist der Interval zum Seitenreload ,\\n Standard sind 20 Minuten, Bitte trage eine neue ein:\\n\\n\",\"Transportlimit (+)\",\"Partyplanung\",\"Kleine Party\",\"Große Party\",\"Setzte den Interval der Ressourcenkonzentration\",\n\t\t\t\t\t\"Minuten\",\".\",\".\",\"START\",\"STOP\",\"Zeitplan Verbessern\",\"Angriff verbessern\",\"Verteidigung verbessern\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Zu wenig Rohstoffe\",\"Es wird bereits gebaut\",\"vollständig ausgebaut\",\"Starte Konstruktion\",\"In Entwicklung\",\"Zuerst Rohstofflager ausbauen\",\"Zuerst Kornspeicher ausbauen\",\"Genug Rohstoffe\",\"Nahrungsmangel: Erst eine Getreidefarm ausbauen\",\"Es wird bereits gefeiert.\"];\n\t\t\t\taLangOtherText = [\"Wichtige Notiz\",\"Nur die Ressourcenfelder der Hauptstadt können<br/>bis Stufe 20 ausgebaut werden. Zur zeit ist deine Hauptstadt<br/>nicht identifiziert. Bitte besuche dein Profil.\",\"Shortcut here ^_^\",\"Setup fertiggestellt\",\"Abgebrochen\",\"Starte die Aufgaben\",\"Upgrade war erfolgreich\",\"Starten war erfolgreich\",\"Deine Rasse ist unbekannt.<br/>Bitte besuche dein Profil.<br/>\",\"Bitte besuche auch deinen Heldenhof um<br/>die Geschwindigkeit und die Art deines Helden zu bestimmen.\"];\n\t\t\t\taLangResources = [\"Holz\",\"Lehm\",\"Eisen\",\"Getreide\"];\n\t\t\t\taLangTroops[0] = [\"Legionär\",\"Prätorianer\",\"Imperianer\",\"Equites Legati\",\"Equites Imperatoris\",\"Equites Caesaris\",\"Rammbock\",\"Feuerkatapult\",\"Senator\",\"Siedler\",\"Held\"];\n\t\t\t\taLangTroops[1] = [\"Keulenschwinger\",\"Speerkämpfer\",\"Axtkämpfer\",\"Kundschafter\",\"Paladin\",\"Teutonen Reiter\",\"Ramme\",\"Katapult\",\"Stammesführer\",\"Siedler\",\"Held\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\",\"Schwertkämpfer\",\"Späher\",\"Theutates Blitz\",\"Druidenreiter\",\"Haeduaner\",\"Rammholz\",\"Kriegskatapult\",\"Häuptling\",\"Siedler\",\"Held\"];\n\t\t\t\taLangAttackType = [\"Unterstützung\",\"Angriff: Normal\",\"Angriff: Raubzug\"];\n\t\t\tbreak;\n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\taLangAllBuildWithId = [\"Holzfäller\",\"Lehmgrube\",\"Eisenmine\",\"Getreidefarm\",\"\",\"Sägewerk\",\"Lehmbrennerei\",\"Eisengießerei\",\"Getreidemühle\",\"Bäckerei\",\"Rohstofflager\",\"Kornspeicher\",\"Waffenschmiede\",\"Schmiede\",\"Turnierplatz\",\"Hauptgebäude\",\"Versammlungsplatz\",\"Marktplatz\",\"Botschaft\",\"Kaserne\",\"Stall\",\"Werkstatt\",\"Akademie\",\"Versteck\",\"Rathaus\",\"Residenz\",\"Palast\",\"Schatzkammer\",\"Handelskontor\",\"Große Kaserne\",\"Großer Stall\",\"Stadtmauer\",\"Erdwall\",\"Palisade\",\"Steinmetz\",\"Brauerei\",\"Fallensteller\",\"Heldenhof\",\"Großes Rohstofflager\",\"Großer Kornspeicher\",\"Weltwunder\",\"Pferdetränke\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Holzfäller\",\"Lehmgrube\",\"Eisenmine\",\"Getreidefarm\",\"\",\"Sägewerk\",\"Lehmbrennerei\",\"Eisengießerei\",\"Getreidemühle\",\"Bäckerei\",\"Rohstofflager\",\"Kornspeicher\",\"Waffenschmiede\",\"Schmiede\",\"Turnierplatz\",\"Hauptgebäude\",\"Versammlungsplatz\",\"Marktplatz\",\"Botschaft\",\"Kaserne\",\"Stall\",\"Werkstatt\",\"Akademie\",\"Versteck\",\"Rathaus\",\"Residenz\",\"Palast\",\"Schatzkammer\",\"Handelskontor\",\"Große Kaserne\",\"Großer Stall\",\"Stadtmauer\",\"Erdwall\",\"Palisade\",\"Steinmetz\",\"Brauerei\",\"Fallensteller\",\"Heldenhof\",\"Großes Rohstofflager\",\"Großer Kornspeicher\",\"Weltwunder\",\"Pferdetränke\"];\n\t\t\t\taLangAddTaskText = [\"Aufgabe hinzufügen\",\"Style\",\"Aktives Dorf\",\"Aufgaben Ziel\",\"nach\",\"Modus\",\"Baubetreuung\",\"Ressourcenkonzentration\",\"Rauf\",\"Runter\",\"Entfernen\",\" Aufgaben Inhalte\",\"Bewegen \",\"alle Aufgaben Löschen\"];\n\t\t\t\taLangTaskKind = [\"Upgrade\",\"Neues Gebäude\",\"Angriff\",\"Forschung\",\"ausbilden\",\"Transport\",\"NPC\",\"Zerstören\",\"Fest\"];\n\t\t\t\taLangGameText = [\"Lvl\",\"Händler\",\"ID\",\"Hauptdorf\",\"Startzeit\",\"diese Zeiteinstellung ist nicht sinnvoll.\",\"nach\",\"Dorf\",\"Transport\",\"von\",\"Transport nach\",\"Transport von\",\"Rückkehr aus\",\"Rohstoffe\",\"Gebäude\",\"Neues Gebäude errichten\",\"leer\",\"Stufe\"];\n\t\t\t\taLangRaceName = [\"Römer\",\"Germane\",\"Gallier\"];\n\t\t\t\taLangTaskOfText = [\"Zeitplan Upgrade\",\"Zeitplan Neu Bauen\",\"AutoResRauf\",\"Pausiert\",\"Start\",\"Laufend\",\"Unterbrechen\",\"Es wird Gebaut \",\"Autotransport\",\"Autotransport ist nicht An\",\"AN\",\"Transport Erfolgreich\",\"Aufgabenliste\",\"Transportlimit (-)\",\"Vorgabe\",\"Ändern \",\"Holz/Lehm/Eisen\",\"G3D\",\"Zeitplan Abriss\",\n\t\t\t\t\t\"Zeitplan Angriff\",\"Angriffsart\",\"Laufzeit\",\"Wiederholungen\",\"Intervalzeit\",\"00:30:00\",\"Katapultziel\",\"Zufall\",\"Unbekannt\",\"mal\",\"Monat\",\"Tag\",\"Truppen senden\",\"Zeitplan Ausbildung\",\"Ausbildungsseite\",\"Ausbildungsauftrag abgeschlossen\",\"Manueller Transport\",\"Setzte Intervalzeit für Reload\",\"Dies ist der Interval zum Seitenreload ,\\n Standard sind 20 Minuten, Bitte trage eine neue ein:\\n\\n\",\"Transportlimit (+)\",\"Partyplanung\",\"Kleine Party\",\"Große Party\",\"Setzte den Interval der Ressourcenkonzentration\",\n\t\t\t\t\t\"Minuten\",\".\",\".\",\"START\",\"STOP\",\"Zeitplan Verbessern\",\"Angriff verbessern\",\"Verteidigung verbessern\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Zu wenig Rohstoffe\",\"Es wird bereits gebaut\",\"vollständig ausgebaut\",\"Starte Konstruktion\",\"In Entwicklung\",\"Zuerst Rohstofflager ausbauen\",\"Zuerst Kornspeicher ausbauen\",\"Genug Rohstoffe\",\"Nahrungsmangel: Erst eine Getreidefarm ausbauen\",\"Es wird bereits gefeiert.\"];\n\t\t\t\taLangOtherText = [\"Wichtige Notiz\",\"Nur die Ressourcenfelder der Hauptstadt können<br/>bis Stufe 20 ausgebaut werden. Zur zeit ist deine Hauptstadt<br/>nicht identifiziert. Bitte besuche dein Profil.\",\"Shortcut here ^_^\",\"Setup fertiggestellt\",\"Abgebrochen\",\"Starte die Aufgaben\",\"Upgrade war erfolgreich\",\"Starten war erfolgreich\",\"Deine Rasse ist unbekannt.<br/>Bitte besuche dein Profil.<br/>\",\"Bitte besuche auch deinen Heldenhof um<br/>die Geschwindigkeit und die Art deines Helden zu bestimmen.\"];\n\t\t\t\taLangResources = [\"Holz\",\"Lehm\",\"Eisen\",\"Getreide\"];\n\t\t\t\taLangTroops[0] = [\"Legionär\",\"Prätorianer\",\"Imperianer\",\"Equites Legati\",\"Equites Imperatoris\",\"Equites Caesaris\",\"Rammbock\",\"Feuerkatapult\",\"Senator\",\"Siedler\",\"Held\"];\n\t\t\t\taLangTroops[1] = [\"Keulenschwinger\",\"Speerkämpfer\",\"Axtkämpfer\",\"Kundschafter\",\"Paladin\",\"Teutonen Reiter\",\"Ramme\",\"Katapult\",\"Stammesführer\",\"Siedler\",\"Held\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\",\"Schwertkämpfer\",\"Späher\",\"Theutates Blitz\",\"Druidenreiter\",\"Haeduaner\",\"Rammholz\",\"Kriegskatapult\",\"Häuptling\",\"Siedler\",\"Held\"];\n\t\t\t\taLangAttackType = [\"Unterstützung\",\"Angriff: Normal\",\"Angriff: Raubzug\"];\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrowLogicError ( \"initializeLangVars():: Travian Version not set, when initializing language variables for \\'de\\' or \\'org\\'!!\" );\n\t\t}\n\t\tbreak;\n\n\tcase \"ir\": // mrreza\n\t\taLangAllBuildWithId = [\"هیزم شکن\", \"آجرسازی\", \"معدن آهن\", \"گندم زار\", \"محل احداث ساختمان\", \"چوب بری\", \"آجرپزی\", \"ذوب آهن\", \"آسیاب\", \"نانوایی\", \"انبار\", \"انبار غذا\", \"آهنگری\", \"زره سازی\", \"میدان تمرین\", \"ساختمان اصلی\", \"اردوگاه\", \"بازار\", \"سفارت\", \"سربازخانه\", \"اصطبل\", \"کارگاه\", \"دارالفنون\", \"مخفیگاه\", \"تالار\", \"اقامتگاه\", \"قصر\", \"خزانه\", \"تجارتخانه\", \"سربازخانه‌ی بزرگ\", \"اصطبل بزرگ\", \"دیوار شهر\", \"دیوار گلی\", \"پرچین\", \"سنگ تراشی\", \"قهوه خانه\", \"تله ساز\",\"عمارت قهرمان\", \"انبار بزرگ\", \"انبارغذای بزگ\", \"شگفتی جهان\", \"آبشخور اسب\"];\n\t\taLangAllBuildAltWithId = [\"هیزم شکن\", \"آجر سازی\", \"معدن آهن\", \"گندم زار\", \"محل\", \"چوب بری\", \"آجرپزی\", \"ذوب آهن\", \"آسیاب\", \"نانوایی\", \"انبار\", \"انبارغذا\", \"آهنگری\", \"زره سازی\", \"میدان تمرین\", \"ساختمان اصلی\", \"اردوگاه\", \"بازار\", \"سفارت\", \"سربازخانه\", \"اصطبل\", \"کارگاه\", \"دارالفنون\", \"مخفیگاه\", \"تالار\", \"اقامتگاه\", \"قصر\", \"خزانه\", \"تجارتخانه\", \"سربازخانه‌ی بزرگ\", \"اصطبل بزرگ\", \"دیوار شهر\", \"دیوار گلی\", \"پرچین\", \"سنگ تراشی\", \"قهوه خانه\", \"تله ساز\",\"عمارت قهرمان\", \"انبار بزرگ\", \"انبار غذای بزرگ\", \" شگفتی جهان\", \"آبشخور اسب\"];\n\t\taLangAddTaskText = [\"اضافه کردن وظیفه\", \"شیوه\", \"دهکده فعال\", \"هدف کاری\", \"به سوی\", \"روش\", \"پشتیبانی از سازه ها\", \"ارسال معمولی (تمرکز منابع)\", \"بالا بردن\", \"پایین آوردن\", \"حذف\", \"&#160;&#160;&#160;محتوای وظیفه\", \"حرکت کردن\", \"پاک کردن تمام وظایف\"];\n\t\taLangTaskKind = [\"ارتقاء دادن\", \"بنای جدید\", \"حمله\", \"تحقیق\", \"تربیت کردن\", \"ارسال منابع\", \"تعدیل منابع\", \"تخریب کردن\", \"برگزاری جشن\"];\n\t\taLangGameText = [\"سطح\", \"بازرگانان\", \"شماره\", \"رئیس\", \"زمان شروع\", \"این تنظیم زمان در حال حاضر بی فایده است.\", \"به سوی\", \"دهکده\", \"انتقال دادن\", \"از\", \"ارسال به\", \"دریافت از\", \"بازگشت از\", \"منابع\", \"ساخنمان\", \"احداث ساختمان جدید\", \"خالی کردن\", \"سطح\" , \"منابع ارسال شدند.\"];\n\t\taLangRaceName = [\"رومی‌ها\" ,\"توتن‌ها\" ,\"گول‌ها\"];\n\t\taLangTaskOfText = [\"برنامه ارتقاء\", \"برنامه ساختمان جدید\", \"ارتقا خودکار منابع\", \"در حال اجرا نمی باشد\", \"شروع\", \"شروع شده\", \"معلق کردن\", \"جدول توزیع منابع در این روستا هست \", \"ارسال خودکار منابع\", \"حمل و نقل خودکار باز نمی باشد\", \"باز شده\", \"حمل و نقل با موفقیت\", \"لیست وظایف\", \"سقف ورود منابع\", \"پیشفرض\", \"اصلاح کردن\", \"چوب/خشت/آهن\", \"گندم\", \"برنامه تخریب\",\n\t\t\t\"برنامه حمله\", \"نوع حمله\", \"زمان سفر\", \"زمان تکرار\", \"فاصله زمانی\",\"00:30:00\",\"هدف منجنیق\",\"تصادفی\", \"نامعلوم\", \"زمان\", \"ماه\", \"روز\", \"سربازان فرستاده شدند\", \"برنامه آموزش\",\"محل آموزش\",\"وظیفه آموزش انجام شد\",\"ارسال سفارشی منابع\",\" فاصله زمانی از زمان راه اندازی مجدد\",\" این فاصله زمانی از صفحه بارگذاری شده است,\\n پیشفرض 20 دقیقه می باشد, لطفا مقدار جدید را وارد کنید زمان:\\n\\n\",\"سقف نگه داشتن منابع\",\"برنامه جشن\",\"جشن کوچک\",\"جشن بزرگ\",\" تنظیم فاصله زمانی حمل معمولی در قسمت ارسال خودکار\",\n\t\t\t\"دقیقه\", \"در حال مکث\", \"در حرکت\", \"ادامه دادن\", \"مکث\",\"ارتقا قدرت نظامی\",\"ارتقا قدرت حمله\",\"ارتقا قدرت دفاع\", \"کنترل سرریز منابع\", \"فعال\", \"غیر فعال\", \"ارتقا خودکار گندمزار\", \"تغییر\"];\n\t\taLangErrorText = [\"کمبود منابع.\", \"کارگران مشغول کار هستند.\", \"به سطح آخر ممکن رسید.\", \"ساخت و ساز شروع شد\", \"در حال توسعه\", \"اول انبار را ارتقا دهید.\", \"اول انبارغذا را ارتقا دهید.\", \"پیش نیازها:\",\"کمبود غذا: اول گندم زار را ارتقا دهید!\",\"در حال حاضر یک جشن در حال برگذاری است\",\"یک جشن هم‌اکنون در حال برگزاری است.\",\"در حال رسیدن به سطح نهایی خود می‌باشد.\"];\n\t\taLangOtherText = [\"توجه داشته باشید\", \"فقط منابع در دهکده پایتخت می توانند <br/>تا سطح 20 ارتقاء یابند. اکنون پایتخت شما<br/> تشخیص داده نشده است. لطفا از پروفایل خود دیدن کنید.\", \"دسترسی آسان در اینجا ^_^\", \"تنظیمات کامل شد\", \"لغو شد\", \"وظیفه آغاز شد\", \"با موفقیت انجام شد\" , \"حرکت با موفقیت انجام شد\", \"نژاد شما معلوم نیست, بنابراین نوع لشکرتون مشخص نیست. <br/>برای مشخص شدن نژادتون از پروفایل خود دیدن کنید.<br/>\", \"همچنین لطفا دیدن کنید از عمارت قهرمان برای مشخص شدن <br/> سطح و نوع آن.\" , \"ارتقاء\"];\n\t\taLangResources=[\"چوب\",\"خشت\",\"آهن\",\"گندم\"];\n\t\taLangTroops[0] = [\"سرباز لژیون\", \"محافظ\", \"شمشیرزن\", \"خبرچین\", \"شوالیه\", \"شوالیه سزار\", \"دژکوب\", \"منجنیق آتشین\", \"سناتور\", \"مهاجر\", \"قهرمان\"];\n\t\taLangTroops[1] = [\"گرزدار\", \"نیزه دار\", \"تبرزن\", \"جاسوس\", \"دلاور\", \"شوالیه‌ی توتن\", \"دژکوب\", \"منجنیق\", \"رئیس\", \"مهاجر\", \"قهرمان\"];\n\t\taLangTroops[2] = [\"سرباز پیاده\", \"شمشیرزن\", \"ردیاب\", \"رعد\", \"کاهن سواره\", \"شوالیه گول\", \"دژکوب\", \"منجنیق\", \"رئیس قبیله\", \"مهاجر\", \"قهرمان\"];\n\t\taLangAttackType = [\"پشتیبانی\", \"حمله عادی\", \"حمله غارت\"];\n\t\tbreak;\n\n\tcase \"ae\": // By Dream1, SnTraL (2011.02.24)\n\t\taLangAllBuildWithId = [\"الحطاب\", \"حفرة الطين\", \"منجم حديد\", \"حقل القمح\", \"\", \"معمل النجاره\", \"مصنع البلوك\", \"مصنع الحديد\", \"المطاحن\", \"المخابز\", \"المخزن\", \"مخزن الحبوب\", \"الحداد\", \"مستودع الدروع\", \"ساحة البطولة\", \"المبنى الرئيسي\", \"نقطة التجمع\", \"السوق\", \"السفارة\", \"الثكنه\", \"الإسطبل\", \"المصانع الحربية\", \"الأكاديمية الحربية\", \"المخبأ\", \"البلدية\", \"السكن\", \"القصر\", \"الخزنة\", \"المكتب التجاري\", \"الثكنة الكبيرة\", \"الإسطبل الكبير\", \"حائط المدينة\", \"الحائط الأرضي\", \"الحاجز\", \"الحجّار\", \"المعصرة\", \"الصياد\", \"قصر الأبطال\", \"المخزن الكبير\", \"مخزن الحبوب الكبير\", \"معجزة العالم\", \"بِئْر سقي الخيول\"];\n\t\taLangAllBuildAltWithId = [\"الحطاب\", \"حفرة الطين\", \"منجم حديد\", \"حقل القمح\", \"\", \"معمل النجاره\", \"مصنع البلوك\", \"مصنع الحديد\", \"المطاحن\", \"المخابز\", \"المخزن\", \"مخزن الحبوب\", \"الحداد\", \"مستودع الدروع\", \"ساحة البطولة\", \"المبنى الرئيسي\", \"نقطة التجمع\", \"السوق\", \"السفارة\", \"الثكنه\", \"الإسطبل\", \"المصانع الحربية\", \"الأكاديمية الحربية\", \"المخبأ\", \"البلدية\", \"السكن\", \"القصر\", \"الخزنة\", \"المكتب التجاري\", \"الثكنة الكبيرة\", \"الإسطبل الكبير\", \"حائط المدينة\", \"الحائط الأرضي\", \"الحاجز\", \"الحجّار\", \"المعصرة\", \"الصياد\", \"قصر الأبطال\", \"المخزن الكبير\", \"مخزن الحبوب الكبير\", \"معجزة العالم\", \"بِئْر سقي الخيول\"];\n\t\taLangAddTaskText = [\"أضافة مهمة\", \"النمط\", \"القرية النشطة\", \"المهمة المستهدفة\", \"الى\", \"نمط\", \"دعم للبناء\", \"تكثيف الموارد\", \"تحريك للاعلى\", \"تحريك للاسفل\", \"حذف\", \"&#160;&#160;&#160;محتوى المهمه\", \"تحريك \", \"حذف جميع المهام\"];\n\t\taLangTaskKind = [\"تطوير\", \"تشييد مبنى\", \"هجوم\", \"بحث\", \"تدريب\", \"نقل\", \"تاجر المبادله\", \"هدم\", \"الاحتفال\"];\n\t\taLangGameText = [\"مستوى\", \"التجار\", \"المعرف\", \"العاصمة\", \"بداية الوقت\", \"هذا الاعداد في الوقت الحالي عديم الفائدة.\", \" إلى\", \"القرية\", \"نقل\", \"من\", \"نقل الى\", \"نقل من\", \"العودة من\", \"الموارد\", \"المباني\", \"تشييد\", \"فارغ\", \"المستوى\"];\n\t\taLangRaceName = [\"الرومان\", \"الجرمان\", \"الإغريق\"];\n\t\taLangTaskOfText = [\"الجدول الزمني للترقية\", \"الجدول الزمني لبناء جديد\", \"التطوير التلقائي\", \"لايعمل\", \"بدأ\", \"أبتداء\", \"توقف مؤقتا\", \"الحقول / المباني توزيع لقرية \", \"النقل التلقائي\", \"لم يتم فتح النقل التلقائي\", \"فتح\", \"تم النقل بنجاح\", \"قائمة المهام\", \"Trans_In_limit\", \"أفتراضي\", \"تعديل\", \"خشب/طين/حديد\", \"قمح\", \"الجدول الزمني للهدم\",\n\t\t\t\"الجدول الزمني للهجوم\", \"نوع الهجوم\", \"وقت الذهاب\", \"عدد مرات التكرار\", \"الفاصل الزمني\",\"00:30:00\",\"هدف المقاليع\",\"عشوائي\", \"غير معروف\", \"مرات\", \"شهر\", \"يوم\", \"القوات ارسلت\", \"الجدول الزمني للتدريب\",\"مكان تدريب\",\"مهمة التدريب تمت\",\"الجدول الزمني للنقل\",\"إعداد الفاصل الزمني للتحديث\",\"هذا هو الفاصل الزمني لتحديث الصفحة ,\\n الافتراضي هو 20 دقيقة,يرجى وضع فاصل زمني جديد:\\n\\n\",\"Trans_Out_Rmn\",\"الجدول الزمني للإحتفال\",\"إحتفال صغير\",\"إحتفال كبير\",\"تعيين الفاصل الزمني لتركيز الموارد\",\n\t\t\t\"دقائق\", \"متوقف\", \"يعمل\", \"تشغيل\", \"أيقاف\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"الموارد قليلة جداً.\", \"العمال مشغولون الآن.\", \"البناء منجز\", \"بدء البناء\", \"في التطوير\", \"يجب رفع مستوى المخزن أولاً \", \"يجب رفع مستوى مخزن الحبوب أولاً \", \"الموارد كافية\",\"\",\"يوجد احتفال جارية بالفعل\"];\n\t\taLangOtherText = [\"ملاحظات هامه\", \"فقط حقول الموارد في العاصمة <br/>يتم ترقيتهم الى مستوى 20 .<br/> لم يتم معرفة العاصمه. يرجاء زيارة بطاقة العضويه.\", \"الاختصار هنا ^_^\", \"أكتمال الإعدادات\", \"ألغي\", \"بدء المهام\", \"تم التطوير بنجاح\", \"تم التشغيل بنجاح\", \"القبيلة غير معروفه, لابد من معرفة نوع القوات. <br/>يرجاء زيارة بطاقة العضويه لتحديد نوع القبيله.<br/>\", \"يرجاء ايضاً زيارة قصر الابطال<br/> لتحديد سرعة ونوع بطلك.\"];\n\t\taLangResources=[\"الخشب\",\"الطين\",\"الحديد\",\"القمح\"];\n\t\taLangTroops[0] = [\"جندي أول\", \" حراس الإمبراطور\", \"جندي مهاجم\", \"فرقة تجسس\", \"سلاح الفرسان\", \"فرسان القيصر\", \"الكبش\", \"المقلاع الناري\", \"حكيم\", \"مستوطن\", \"البطل\"]; //الرومان\n\t\taLangTroops[1] = [\"مقاتل بهراوة\", \"مقاتل برمح\", \"مقاتل بفأس\", \"الكشاف\", \"مقاتل القيصر\", \"فرسان الجرمان\", \"محطمة الأبواب\", \"المقلاع\", \"الزعيم\", \"مستوطن\", \"البطل\"]; //الجرمان\n\t\taLangTroops[2] = [\"الكتيبة\", \"مبارز\", \"المستكشف\", \"رعد الجرمان\", \"فرسان السلت\", \"فرسان الهيدوانر\", \"محطمة الأبواب الخشبية\", \"المقلاع الحربي\", \"رئيس\", \"مستوطن\", \"البطل\"]; //الإغريق\n\t\taLangAttackType = [\"مساندة\", \"هجوم: كامل\", \"هجوم: للنهب\"];\n\t\tbreak;\n\n\tcase \"gr\": // by adonis_gr (2011.03.30)\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\taLangAllBuildWithId = [\"Ξυλοκόπος\", \"Ορυχείο πηλού\", \"Ορυχείο σιδήρου\", \"Χωράφι σιταριού\", \"Περιοχή\", \"Πριονιστήριο\", \"Πηλοποιείο\", \"Χυτήριο σιδήρου\", \"Μύλος σιταριού\", \"Αρτοποιείο\", \"Αποθήκη πρώτων υλών\", \"Σιταποθήκη\", \"Οπλοποιείο\", \"Πανοπλοποιείο\", \"Πλατεία αθλημάτων\", \"Κεντρικό κτίριο\", \"Πλατεία συγκεντρώσεως\", \"Αγορά\", \"Πρεσβεία\", \"Στρατόπεδο\", \"Στάβλος\", \"Εργαστήριο\", \"Ακαδημία\", \"Κρυψώνα\", \"Δημαρχείο\", \"Μἐγαρο\", \"Παλάτι\", \"Θησαυροφυλάκιο\", \"Εμπορικό γραφείο\", \"Μεγάλο Στρατόπεδο\", \"Μεγάλος Στάβλος\", \"Τείχος Πόλεως\", \"Χωμάτινο τεἰχος\", \"Τείχος με πάσσαλους\", \"Λιθοδὀμος\", \"Ζυθοποιείο\", \"Τοποθέτης παγίδων\", \"Περιοχή ηρώων\", \"Μεγάλη Αποθήκη\", \"Μεγάλη Σιταποθήκη\", \"Παγκόσμιο Θαύμα\", \"Μέρος ποτίσματος αλόγων\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Ξυλοκόπος\", \"Ορυχείο πηλού\", \"Ορυχείο σιδήρου\", \"Χωράφι σιταριού\", \"Περιοχή\", \"Πριονιστήριο\", \"Πηλοποιείο\", \"Χυτήριο σιδήρου\", \"Μύλος σιταριού\", \"Αρτοποιείο\", \"Αποθήκη πρώτων υλών\", \"Σιταποθήκη\", \"Οπλοποιείο\", \"Πανοπλοποιείο\", \"Πλατεία αθλημάτων\", \"Κεντρικό κτίριο\", \"Πλατεία συγκέντρωσης\", \"Αγορά\", \"Πρεσβεία\", \"Στρατόπεδο\", \"Στάβλος\", \"Εργαστήριο\", \"Ακαδημία\", \"Κρυψώνα\", \"Δημαρχείο\", \"Μἐγαρο\", \"Παλάτι\", \"Θησαυροφυλάκιο\", \"Εμπορικό γραφείο\", \"Μεγάλο Στρατόπεδο\", \"Μεγάλος Στάβλος\", \"Τείχος Πόλεως\", \"Χωμάτινο τεἰχος\", \"Τείχος με πάσσαλους\", \"Λιθοδὀμος\", \"Ζυθοποιείο\", \"Τοποθέτης παγίδων\", \"Περιοχή ηρώων\", \"Μεγάλη Αποθήκη\", \"Μεγάλη Σιταποθήκη\", \"Παγκόσμιο Θαύμα\", \"Μέρος ποτίσματος αλόγων\"];\n\t\t\t\taLangAddTaskText = [\"Προσθηκη Εργασίας\", \"Style\", \"Ενεργό χωριό\", \"στοχος εργασίας\", \"Προς\", \"λειτουργία\", \"Construction support\", \"Resources concentration\", \"Μετακίνηση πάνω\", \"Μετακίνηση κάτω\", \"Διαγραφή\", \" Περιεχομενο εργασιών\", \"Move \", \"Διαγραφή όλων των εργασιών\"];\n\t\t\t\taLangTaskKind = [\"αναβάθμισης\", \"Κατασκευή κτηρίου\", \"Επίθεση\", \"Έρευνα\", \"εκπαίδευση\", \"αποστολή\", \"NPC\", \"κατεδάφιση\", \"γιορτή\"];\n\t\t\t\taLangGameText = [\"επίπεδο\", \"Έμποροι\", \"ID\", \"Πρωτεύουσα\", \"Start time\", \"this timeseting is unuseful now.\", \"προς\", \"χωριό\", \"αποστολή\", \"από\", \"αποστολή προς\", \"αποστολή απο\", \"Επιστροφή απο\", \"πρώτες ύλες\", \"κτήριο\", \"Κατασκευή νέου κτηρίου\", \"κενό\", \"επίπεδο\"];\n\t\t\t\taLangRaceName = [\"Ρωμαίοι\", \"Τεύτονες\", \"Γαλάτες\"];\n\t\t\t\taLangTaskOfText = [\"Πρόγραμμα αναβάθμισης\", \"Πρόγραμμα Κατασκευή νέου κτηρίου\", \"Αυτοματη Αναβ. Υλών\", \"Not_run\", \"Έναρξη\", \"Ξεκίνησε\", \"Αναστολή\", \"The resource fields distribution of this village is \", \"Αυτοματη αποστολή\", \"αύτοματη αποστολή είναι ανενεργή\", \"Ανοιχτό\", \"αποστολή επιτυχής\", \"Λίστα Εργασιών\", \"Trans In limit\", \"Προεπιλογή\", \"Τροποποίηση\", \"Ξύλο/Πηλός/Σιδήρος\", \"Σιτάρι\", \"Πρόγραμμα κατεδάφισης\",\n\t\t\t\t\t\t\"Προγραμματισμος επίθεσης\", \"Τυπος επίθεσης\", \"διάρκεια\", \"επανάληψεις\", \"Ενδιάμεσο χρονικό διάστημα\", \"00:30:00\", \"Στόχος καταπέλτη\", \"Τυχαίος\", \"Άγνωστο\", \"φορές\", \"Μήνας\", \"Ημέρα\", \"Στρατεύματα εστάλησαν\",\n\t\t\t\t\t\t\"Προγραμματησμος εκπαίδευσης\", \"Μέρος εκπαίδευσης\", \"εκπαίδευση Ολοκληρώθηκε\", \"προσαρμοσμένη αποστολή\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"Προγραμματισμος γιορτων\", \"Μικρή γιορτή\", \"Μεγάλη Γιορτή\", \"Set Interval of Resources concentration\",\n\t\t\t\t\t\t\"λεπτά\", \".\", \".\", \"Έναρξη\", \"Διακοπή\", \"Schedule Improve\", \"Βελτίωση Επίθεσης\", \"Βελτίωση άμυνας\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Πάρα πολύ λίγες πρώτες ύλες\", \"Ήδη εκτελούνται εργασίες\", \"Κατασκευή ολοκληρώθηκε\", \"Εναρξη Κατασκευής\", \"Σε εξέλιξη\", \"Η Αποθήκη πρώτων υλών σας ειναι πολύ μικρή. Παρακαλώ αναβάθμιστε την Αποθήκη πρώτων υλών για να συνεχιστεί η κατασκευή σας\", \"Η Σιταποθήκη σας ειναι πολύμικρή. Παρακαλώ αναβάθμιστε την σιταποθήκη για να συνεχιστεί η κατασκευή σας\", \"Αρκετες Πρώτες ύλες\", \"Έλλειψη τροφής: Αναβαθίστε πρώτα ενα Χωράφι σιταριού\", \"Πραγματοποιείται ήδη μία γιορτή\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Μονο οι ύλες της Πρωτεύουσας μπορούν να αναβάθμιστουν στο επίπεδο 20. Now your Πρωτεύουσα is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Ακυρωμένο\", \"Έναρξη των εργασιών\", \"Επιτυχής αναβάθμιση\", \"Εκτελέστηκε με επιτυχία\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Περιοχή ηρώων to determine the speed and the type of your hero.\"];\n\t\t\t\taLangResources = [\"Ξύλο\", \"Πηλός\", \"Σίδερο\", \"Σιτάρι\"];\n\t\t\t\taLangTroops[0] = [\"Λεγεωνάριοι\", \"Πραιτοριανός\", \"Ιμπεριανός\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Πολιορκητικός κριός\", \"Καταπέλτης φωτιάς\", \"Γερουσιαστής\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangTroops[1] = [\"Μαχητές με ρόπαλα\", \"Μαχητής με Ακόντιο\", \"Μαχητής με Τσεκούρι\", \"Ανιχνευτής\", \"Παλατινός\", \"Τεύτονας ιππότης\", \"Πολιορκητικός κριός\", \"Καταπέλτης\", \"Φύλαρχος\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangTroops[2] = [\"Φάλαγγες\", \"Μαχητής με Ξίφος\", \"Ανιχνευτής\", \"Αστραπή του Τουτατή\", \"Δρυίδης\", \"Ιδουανός\", \"Πολιορκητικός κριός\", \"Πολεμικός καταπέλτης\", \"Αρχηγός\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangAttackType = [\"Ενίσχυση\", \"Επίθεση: Κανονική\", \"Επίθεση: Επιδρομή\"];\n\t\t\t\tbreak;\n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\taLangAllBuildWithId = [\"Ξυλοκόπος\", \"Ορυχείο πηλού\", \"Ορυχείο σιδήρου\", \"Χωράφι σιταριού\", \"Περιοχή\", \"Πριονιστήριο\", \"Πηλοποιείο\", \"Χυτήριο σιδήρου\", \"Μύλος σιταριού\", \"Αρτοποιείο\", \"Αποθήκη πρώτων υλών\", \"Σιταποθήκη\", \"Σιδηρουργείο\", \"Σιδηρουργείο\", \"Πλατεία αθλημάτων\", \"Κεντρικό κτίριο\", \"Πλατεία συγκεντρώσεως\", \"Αγορά\", \"Πρεσβεία\", \"Στρατόπεδο\", \"Στάβλος\", \"Εργαστήριο\", \"Ακαδημία\", \"Κρυψώνα\", \"Δημαρχείο\", \"Μἐγαρο\", \"Παλάτι\", \"Θησαυροφυλάκιο\", \"Εμπορικό γραφείο\", \"Μεγάλο Στρατόπεδο\", \"Μεγάλος Στάβλος\", \"Τείχος Πόλεως\", \"Χωμάτινο τεἰχος\", \"Τείχος με πάσσαλους\", \"Λιθοδὀμος\", \"Ζυθοποιείο\", \"Τοποθέτης παγίδων\", \"Περιοχή ηρώων\", \"Μεγάλη Αποθήκη\", \"Μεγάλη Σιταποθήκη\", \"Παγκόσμιο Θαύμα\", \"Μέρος ποτίσματος αλόγων\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Ξυλοκόπος\", \"Ορυχείο πηλού\", \"Ορυχείο σιδήρου\", \"Χωράφι σιταριού\", \"Περιοχή\", \"Πριονιστήριο\", \"Πηλοποιείο\", \"Χυτήριο σιδήρου\", \"Μύλος σιταριού\", \"Αρτοποιείο\", \"Αποθήκη πρώτων υλών\", \"Σιταποθήκη\", \"Σιδηρουργείο\", \"Σιδηρουργείο\", \"Πλατεία αθλημάτων\", \"Κεντρικό κτίριο\", \"Πλατεία συγκέντρωσης\", \"Αγορά\", \"Πρεσβεία\", \"Στρατόπεδο\", \"Στάβλος\", \"Εργαστήριο\", \"Ακαδημία\", \"Κρυψώνα\", \"Δημαρχείο\", \"Μἐγαρο\", \"Παλάτι\", \"Θησαυροφυλάκιο\", \"Εμπορικό γραφείο\", \"Μεγάλο Στρατόπεδο\", \"Μεγάλος Στάβλος\", \"Τείχος Πόλεως\", \"Χωμάτινο τεἰχος\", \"Τείχος με πάσσαλους\", \"Λιθοδὀμος\", \"Ζυθοποιείο\", \"Τοποθέτης παγίδων\", \"Περιοχή ηρώων\", \"Μεγάλη Αποθήκη\", \"Μεγάλη Σιταποθήκη\", \"Παγκόσμιο Θαύμα\", \"Μέρος ποτίσματος αλόγων\"];\n\t\t\t\taLangAddTaskText = [\"Προσθηκη Εργασίας\", \"Style\", \"Ενεργό χωριό\", \"στοχος εργασίας\", \"Προς\", \"λειτουργία\", \"Construction support\", \"Resources concentration\", \"Μετακίνηση πάνω\", \"Μετακίνηση κάτω\", \"Διαγραφή\", \" Περιεχομενο εργασιών\", \"Move \", \"Διαγραφή όλων των εργασιών\"];\n\t\t\t\taLangTaskKind = [\"αναβάθμισης\", \"Κατασκευή κτηρίου\", \"Επίθεση\", \"Έρευνα\", \"εκπαίδευση\", \"αποστολή\", \"NPC\", \"κατεδάφιση\", \"γιορτή\"];\n\t\t\t\taLangGameText = [\"επίπεδο\", \"Έμποροι\", \"ID\", \"Πρωτεύουσα\", \"Start time\", \"this timeseting is unuseful now.\", \"προς\", \"χωριό\", \"αποστολή\", \"από\", \"αποστολή προς\", \"αποστολή απο\", \"Επιστροφή απο\", \"πρώτες ύλες\", \"κτήριο\", \"Κατασκευή νέου κτηρίου\", \"κενό\", \"επίπεδο\"];\n\t\t\t\taLangRaceName = [\"Ρωμαίοι\", \"Τεύτονες\", \"Γαλάτες\"];\n\t\t\t\taLangTaskOfText = [\"Πρόγραμμα αναβάθμισης\", \"Πρόγραμμα Κατασκευή νέου κτηρίου\", \"Αυτοματη Αναβ. Υλών\", \"Not_run\", \"Έναρξη\", \"Ξεκίνησε\", \"Αναστολή\", \"The resource fields distribution of this village is \", \"Αυτοματη αποστολή\", \"αύτοματη αποστολή είναι ανενεργή\", \"Ανοιχτό\", \"αποστολή επιτυχής\", \"Λίστα Εργασιών\", \"Trans In limit\", \"Προεπιλογή\", \"Τροποποίηση\", \"Ξύλο/Πηλός/Σιδήρος\", \"Σιτάρι\", \"Πρόγραμμα κατεδάφισης\",\n\t\t\t\t\t\t\"Προγραμματισμος επίθεσης\", \"Τυπος επίθεσης\", \"διάρκεια\", \"επανάληψεις\", \"Ενδιάμεσο χρονικό διάστημα\", \"00:30:00\", \"Στόχος καταπέλτη\", \"Τυχαίος\", \"Άγνωστο\", \"φορές\", \"Μήνας\", \"Ημέρα\", \"Στρατεύματα εστάλησαν\",\n\t\t\t\t\t\t\"Προγραμματησμος εκπαίδευσης\", \"Μέρος εκπαίδευσης\", \"εκπαίδευση Ολοκληρώθηκε\", \"προσαρμοσμένη αποστολή\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"Προγραμματισμος γιορτων\", \"Μικρή γιορτή\", \"Μεγάλη Γιορτή\", \"Set Interval of Resources concentration\",\n\t\t\t\t\t\t\"λεπτά\", \".\", \".\", \"Έναρξη\", \"Διακοπή\", \"Schedule Improve\", \"Βελτίωση Επίθεσης\", \"Βελτίωση άμυνας\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Πάρα πολύ λίγες πρώτες ύλες\", \"Ήδη εκτελούνται εργασίες\", \"Κατασκευή ολοκληρώθηκε\", \"Εναρξη Κατασκευής\", \"Σε εξέλιξη\", \"Η Αποθήκη πρώτων υλών σας ειναι πολύ μικρή. Παρακαλώ αναβάθμιστε την Αποθήκη πρώτων υλών για να συνεχιστεί η κατασκευή σας\", \"Η Σιταποθήκη σας ειναι πολύμικρή. Παρακαλώ αναβάθμιστε την σιταποθήκη για να συνεχιστεί η κατασκευή σας\", \"Αρκετές πρώτες\", \"Έλλειψη τροφής : Αναβαθμίστε πρώτα ένα χωράφι σιταριού\", \"Πραγματοποιείται ήδη μία γιορτή\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Μονο οι ύλες της Πρωτεύουσας μπορούν να αναβάθμιστουν στο επίπεδο 20. Now your Πρωτεύουσα is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Ακυρωμένο\", \"Έναρξη των εργασιών\", \"Επιτυχής αναβάθμιση\", \"Εκτελέστηκε με επιτυχία\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Περιοχή ηρώων to determine the speed and the type of your hero.\"];\n\t\t\t\taLangResources = [\"Ξύλο\", \"Πηλός\", \"Σίδερο\", \"Σιτάρι\"];\n\t\t\t\taLangTroops[0] = [\"Λεγεωνάριοι\", \"Πραιτοριανός\", \"Ιμπεριανός\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Πολιορκητικός κριός\", \"Καταπέλτης φωτιάς\", \"Γερουσιαστής\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangTroops[1] = [\"Μαχητές με ρόπαλα\", \"Μαχητής με Ακόντιο\", \"Μαχητής με Τσεκούρι\", \"Ανιχνευτής\", \"Παλατινός\", \"Τεύτονας ιππότης\", \"Πολιορκητικός κριός\", \"Καταπέλτης\", \"Φύλαρχος\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangTroops[2] = [\"Φάλαγγες\", \"Μαχητής με Ξίφος\", \"Ανιχνευτής\", \"Αστραπή του Τουτατή\", \"Δρυίδης\", \"Ιδουανός\", \"Πολιορκητικός κριός\", \"Πολεμικός καταπέλτης\", \"Αρχηγός\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangAttackType = [\"Ενίσχυση\", \"Επίθεση: Κανονική\", \"Επίθεση: Επιδρομή\"];\n\t\t\t\tbreak;\n\t\t}\n}\n\nJOINEDaLangAllBuildWithId = aLangAllBuildWithId.slice(0) ;\nJOINEDaLangAllBuildWithId = cleanString(JOINEDaLangAllBuildWithId);\n\t\t\nJOINEDaLangAllBuildAltWithId = aLangAllBuildAltWithId.slice(0);\nJOINEDaLangAllBuildAltWithId = cleanString(JOINEDaLangAllBuildAltWithId);\ninitializeLangSpecificDependentVars();\n\n}", "function getIgnoreKeywords_allWords_G_Words() {\n\t\treturn [\n\t\t\t'gave',\n\t\t\t'general',\n\t\t\t'generally',\n\t\t\t'generic',\n\t\t\t'get',\n\t\t\t'gets',\n\t\t\t'getting',\n\t\t\t'give',\n\t\t\t'given',\n\t\t\t'gives',\n\t\t\t'go',\n\t\t\t'goes',\n\t\t\t'going',\n\t\t\t'goings',\n\t\t\t'goings-on',\n\t\t\t'goingson',\n\t\t\t'goodbye',\n\t\t\t'goodly',\n\t\t\t'got',\t\n\t\t\t'gotten',\n\t\t\t'gradually',\n\t\t\t'great deal',\n\t\t\t'greater',\n\t\t\t'gros', // \"en gros\"\n\t\t\t'grossly',\n\t\t];\n\t}" ]
[ "0.62156194", "0.60387975", "0.6002819", "0.58165956", "0.5753264", "0.566721", "0.5615092", "0.56116134", "0.56103224", "0.56025773", "0.559135", "0.5572904", "0.54946935", "0.5381474", "0.5335144", "0.5325937", "0.53169036", "0.5286734", "0.5253538", "0.52510047", "0.5250713", "0.5219755", "0.5214473", "0.52118015", "0.52067053", "0.52015233", "0.5180922", "0.5173652", "0.51603717", "0.51603717", "0.5142414", "0.51348853", "0.5125013", "0.5119461", "0.51159054", "0.5110579", "0.51027924", "0.50985026", "0.509182", "0.5086427", "0.5080674", "0.5074322", "0.5070117", "0.50696516", "0.5061669", "0.5053456", "0.50380284", "0.50365543", "0.5036077", "0.5030698", "0.5026373", "0.5020309", "0.5019648", "0.50150454", "0.50115335", "0.50071514", "0.5006886", "0.5004808", "0.49985346", "0.4996968", "0.4995217", "0.49873886", "0.4982368", "0.49768722", "0.49724457", "0.4970293", "0.49631217", "0.49593267", "0.49437734", "0.49384835", "0.49374363", "0.49261373", "0.49251395", "0.49249113", "0.4923639", "0.49218336", "0.49146956", "0.49019465", "0.4901228", "0.4899998", "0.48980364", "0.48925737", "0.48894706", "0.48887914", "0.4880506", "0.48796946", "0.48769337", "0.48671407", "0.48615482", "0.4856837", "0.4853555", "0.48533967", "0.4853122", "0.48502338", "0.48484394", "0.483978", "0.48336124", "0.48228443", "0.48191118", "0.48030597" ]
0.561719
6
They report dates as epoch ms, eg 1584532800000 = 20200318.
function toYYYYMMDD (n) { const d = new Date(n) return d.toISOString().split('T')[0] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function epoch() {\n\tvar date = new Date();\n\tvar time = Math.round(date.getTime() / 1000);\n\treturn time;\n}", "function epochSeconds() { return new Date().getTime() / 1000 }", "function convertDate(date){\n var epochDate = new Date(date);\n epochDate = epochDate.getTime()/1000;\n console.log(epochDate);\n return epochDate;\n}", "function getEpochDate(date){\n\n\tvar myDate = new Date(date);\n\tvar epoch = myDate.getTime()/1000.0;\n\n\treturn epoch;\n}", "static epoch_seconds() {\n return new Date().getTime() / 1000.0;\n }", "function toEpoch(date){\n\tvar date = Date.parse(date);\n\treturn date / 1000;\n}", "function parseEpochTime(date) {\n\n let dateUnixTime = date.getTime()\n\n return {unixtime: dateUnixTime}\n}", "function convertDateToEpoch(date) {\n\tvar newDate = new Date(date);\n\tvar epoch = newDate.getTime();\n\treturn epoch;\n}", "function epochToDate(epoch) {\n epoch = parseFloat(epoch) * 1000;\n var dateVal = \"/Date(\" + epoch + \")/\";\n var date = new Date(parseFloat(dateVal.substr(6)));\n\n return date.toLocaleString();\n\n}", "function getUnixDate(refDate = new Date()) {\n\treturn Math.round(refDate.getTime() / 1000);\n}", "function dateEpochToHuman(pythonDate) {\n var d = new Date(Math.floor(pythonDate * 1000));\n var datestring = d.getFullYear() + \"-\" + (\"0\"+(d.getMonth()+1)).slice(-2) + \"-\" + (\"0\" + d.getDate()).slice(-2) + \" \" + (\"0\" + d.getHours()).slice(-2) + \":\" + (\"0\" + d.getMinutes()).slice(-2) + \":\" + d.getSeconds(); return datestring;\n}", "function toEpoch(val, def) {\n return toDefault((is_1.isDate(val) && val.getTime()), def);\n}", "function toUnixDate(t){var e=t.split(\".\"),r=new Date;return r.setFullYear(e[2],e[1]-1,e[0]),r.setHours(0),r.setMinutes(0),r.setSeconds(0),Math.floor(r.getTime()/1e3)}", "function getSecondsFromEpoch() {\n return Math.floor(new Date().getTime() / 1000);\n}", "function getUnixTimestamp() {\n\treturn Number(moment().format(\"X\"));\n}", "dateToEpoch(year, month, day) {\n return moment().year(year).month(month).date(day);\n }", "function toTimestamp(rpepoch) {\n return (rpepoch + 0x386D4380) * 1000;\n}", "function toTimestamp(rpepoch) {\n return (rpepoch + 0x386D4380) * 1000;\n}", "function hoursToEpoch(numHours) {\n return numHours * 60 * 60 * 1000; \n}", "function toTimeStamp(date) {\r\n\t\ttry {\r\n\t\t\tvar x= new Date(date).getTime()/1000;\r\n\t\t\treturn x;\r\n\t\t} catch (e) {\r\n\t\t\tconsole.log(e);\r\n\t\t\tvar x= new Date().getTime()/1000;\r\n\t\t\treturn x; \r\n\t\t} \r\n\t}", "function getEpoch(epoch) {\n\t if (!epoch) { return 0; }\n\t if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n\t if (typeof epoch === \"number\") { return epoch; }\n\t throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n\t }", "function fromEpoch(val, def) {\n if (!is_1.isValue(val) || !is_1.isNumber(val))\n return to_1.toDefault(null, def);\n return new Date(val);\n}", "function dateToUnixTimestampMilliseconds() {\n return operator_1.cast(instance_of_date_1.instanceOfDate(), function (d) { return d.getTime(); }, number_1.integer());\n}", "function getEpoch(epoch) {\n if (!epoch) { return 0; }\n if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n if (typeof epoch === \"number\") { return epoch; }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n }", "function getEpoch(epoch) {\n if (!epoch) { return 0; }\n if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n if (typeof epoch === \"number\") { return epoch; }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n }", "function getEpoch(epoch) {\n if (!epoch) { return 0; }\n if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n if (typeof epoch === \"number\") { return epoch; }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n }", "function dateNowUnix() {\n return moment().unix();\n }", "function dateToUnix(dateArr){\n var d = new Date(dateArr[2],months.indexOf(getMonth(dateArr)),dateArr[1].substr(0,dateArr[1].length-1),0,0,0,0);\n return d.valueOf() / 1000 -18000;\n}", "function getUnix() {\n return Math.floor(Date.now() / 1000);\n}", "grabUnix(userId) {\n return Number(userId) / 4194304 + 1420070400000;\n }", "function natToUnix(date) {\n return moment(date, \"MMMM D, YYYY\").format(\"X\");\n }", "function convUnix(t) {\n var date = new Date(parseInt(t) * 1000);\n return date;\n}", "getTimestamp() {\n const timestamp = new Date();\n const time = this.id.readUInt32BE(0);\n timestamp.setTime(Math.floor(time) * 1000);\n return timestamp;\n }", "function getEpoch(epoch) {\n if (!epoch) { return 0; }\n if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n if (typeof epoch === \"number\") { return epoch; }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n}", "function getEpoch(epoch) {\n if (!epoch) { return 0; }\n if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n if (typeof epoch === \"number\") { return epoch; }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n}", "function getEpoch(epoch) {\n if (!epoch) { return 0; }\n if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n if (typeof epoch === \"number\") { return epoch; }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n}", "function getEpoch(epoch) {\n if (!epoch) { return 0; }\n if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n if (typeof epoch === \"number\") { return epoch; }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n}", "function getEpoch(epoch) {\n if (!epoch) { return 0; }\n if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n if (typeof epoch === \"number\") { return epoch; }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n}", "function getEpoch(epoch) {\n if (!epoch) { return 0; }\n if (typeof epoch.getTime === \"function\") { return epoch.getTime(); }\n if (typeof epoch === \"number\") { return epoch; }\n throw new TypeError(\"now should be milliseconds since UNIX epoch\");\n}", "generateTimestamp() {\n var time = new Date().getTime()/1000\n var time_round = parseInt(time)\n return time_round\n }", "function result(date){\n return {\n unix: (new Date(date).getTime()/1000),\n natural: date\n }\n}", "function epochTimeToSQLDateString(time){\n let now = new Date(time);\n let month = checkDateLen(now.getMonth()+1);\n let day = checkDateLen(now.getDate());\n let hrs = checkDateLen(now.getHours());\n let mins = checkDateLen( now.getMinutes());\n let secs = checkDateLen(now.getSeconds());\n\n return now.getFullYear()+\"-\" + month +\"-\"+ day +\" \"\n + hrs + \":\" + mins + \":\" + secs;\n}", "function getReadableTime(epoch) {\n var a = new Date(epoch*1000);\n var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; \n var date = a.getDate() + '/' +months[a.getMonth()] +'/'+a.getFullYear();\n var time = a.getHours() + \":\" + getTwoDigits(a.getMinutes()) + \":\" + getTwoDigits(a.getSeconds());\n var timestamp = date + ' ' + time;\n return timestamp;\n}", "function naturalToUnix(date) {\n return moment(date, \"MMMM, D YYYY\").format(\"X\");\n }", "function convertUnix(data){\n function unixToReg(time){\n return new Date(time);\n }\n return data.map(function(time){return unixToReg(time)});\n }", "static _getTimeInMs() {\n const [seconds, nanoseconds] = process.hrtime();\n return seconds * 1000 + nanoseconds / 1000000;\n }", "function formatTime(epoch){\n var timestamp = 1293683278;\n var date = new Date(timestamp * 1000);\n return \" \"\n \n}", "function timestamp() {\n return Math.floor((new Date()).getTime() / 1000); \n}", "SS (date) {\n return pad(Math.floor(date.getMilliseconds() / 10))\n }", "function calcUnixTime()\n {\n var t = new Number(document.unixtime.time.value);\n\n setJulian(J1970 + (t / (60 * 60 * 24)));\n }", "function unixToNatural(unix) {\n unix -= unix % secs_in_day;\n var days = unix / secs_in_day;\n var fourYearBlocks = Math.floor(days / (365*3 + 366));\n var daysToCount = days - fourYearBlocks*(365*3 + 366);\n var year;\n if (daysToCount >= 365*2 + 366) {\n year = 1970 + 4*fourYearBlocks + 3;\n daysToCount -= 365*2 + 366;\n } else if (daysToCount >= 365*2) {\n year = 1970 + 4*fourYearBlocks + 2;\n daysToCount -= 365*2;\n } else if (daysToCount >= 365) {\n year = 1970 + 4*fourYearBlocks + 1;\n daysToCount -= 365;\n } else {\n year = 1970 + 4*fourYearBlocks;\n }\n var month = 0;\n if (isLeapYear(year)) {\n while (daysToCount >= getDaysInMonthLeap(month)) {\n daysToCount -= getDaysInMonthLeap(month);\n month++;\n }\n } else {\n while (daysToCount >= getDaysInMonth(month)) {\n daysToCount -= getDaysInMonth(month);\n month++;\n }\n }\n var day = daysToCount + 1;\n return [day.toString(), getMonthString(month), year.toString()];\n}", "S (date) {\n return Math.floor(date.getMilliseconds() / 100)\n }", "static normalizeTimestamp(timestamp) {\n const milliseconds = (timestamp.seconds.low + \n (\n (timestamp.nanos / 1000000) / 1000\n )\n ) * 1000;\n\n return new Date(milliseconds);\n }", "function unixTime(dt) {\n let date = new Date(dt * 1000);\n let month = date.getMonth() + 1;\n let day = date.getDate();\n let year = date.getFullYear();\n displayDate = month + \"/\" + day + \"/\" + year;\n }", "function unixTimestampMillisecondsToDate() {\n return operator_1.cast(number_1.integer(), function (num) { return new Date(num); }, instance_of_date_1.instanceOfDate());\n}", "function fromTimestamp(rpepoch) {\n if (rpepoch instanceof Date) {\n rpepoch = rpepoch.getTime();\n }\n\n return Math.round(rpepoch / 1000) - 0x386D4380;\n}", "function fromTimestamp(rpepoch) {\n if (rpepoch instanceof Date) {\n rpepoch = rpepoch.getTime();\n }\n\n return Math.round(rpepoch / 1000) - 0x386D4380;\n}", "static fromNumber(value) {\n return new Timestamp(long_1.Long.fromNumber(value, true));\n }", "function nowMs()\r\n {\r\n return new Date().getTime();\r\n }", "function toTimeStamp(date) {\n try {\n var x=\"\";\n if(date!=\"\"){\n x= new Date(date).getTime()/1000;\n }\n\n // console.log('try'+x +' '+date);\n return x;\n } catch (e) {\n // console.log(e);\n var x= new Date().getTime()/1000;\n // console.log('catch '+x);\n return x;\n }\n }", "function getFormatteddate(epoch) {\n var formdate = new Date(epoch * 1000);\n formdate = moment(formdate).utc().format('MM/DD/YYYY');\n return formdate;\n }", "function dts () {\r\n\tvar date = new Date();\r\n\treturn date.getTime();\r\n}", "function get_counter_down_time_from_expire_epoch(epoch){\n var now_time = new Date().getTime()/1000;\n var time_left = epoch / 1000 - now_time; //unit:second\n var second = Math.floor(time_left%60);\n var mins =Math.floor(time_left /60);\n return mins+\":\"+second;\n\n}", "_calculateDateInterval(majorTicksInterval) {\n const that = this,\n timeParts = {\n month: '2628000000000000000000000000000',\n day: '86400000000000000000000000000',\n hour: '3600000000000000000000000000',\n minute: '60000000000000000000000000',\n second: '1000000000000000000000000'\n };\n let part = 'year',\n bigNumberTimePart = new JQX.Utilities.BigNumber('31536000000000000000000000000000'),\n difference = bigNumberTimePart.subtract(majorTicksInterval).abs(),\n range = new JQX.Utilities.BigNumber(that.min).subtract(that.max).abs(),\n projectedNumberOfTicks = range.divide(majorTicksInterval).toString();\n\n if (projectedNumberOfTicks < 2) {\n majorTicksInterval = range.divide(3);\n }\n\n for (let timePart in timeParts) {\n if (timeParts.hasOwnProperty(timePart)) {\n const currentBigNumberTimePart = new JQX.Utilities.BigNumber(timeParts[timePart]),\n currentDifference = currentBigNumberTimePart.subtract(majorTicksInterval).abs();\n\n if (currentDifference.compare(difference) === -1) {\n part = timePart;\n bigNumberTimePart = currentBigNumberTimePart;\n difference = currentDifference;\n }\n else {\n break;\n }\n }\n }\n\n if (part === 'second') {\n that._numberRenderer.numericValue = parseFloat(majorTicksInterval);\n\n if (that._numberRenderer.numericValue < 1000) {\n that._dateIncrementMethod = 'addYoctoseconds';\n that._dateIntervalNumber = 1;\n return;\n }\n\n let scientificPrefix = that._numberRenderer.toScientific(10);\n\n scientificPrefix = scientificPrefix.charAt(scientificPrefix.length - 1);\n\n that._dateIncrementMethod = that._unitToMethod[scientificPrefix];\n that._dateIntervalNumber = Math.pow(10, that._numericProcessor.prefixesToPowers[scientificPrefix]);\n return;\n }\n\n that._dateInterval = true;\n\n const calculatedInterval = !that.customInterval;\n let customTicks, numberOfTimeParts, toAdd;\n\n if (calculatedInterval) {\n customTicks = [new JQX.Utilities.BigNumber(that.min)];\n numberOfTimeParts = range.divide(bigNumberTimePart).toString();\n toAdd = Math.max(1, Math.floor(numberOfTimeParts / projectedNumberOfTicks));\n }\n\n switch (part) {\n case 'year':\n if (calculatedInterval) {\n for (let i = that._minDate.year() + toAdd; i < that._maxDate.year(); i += toAdd) {\n customTicks.push(new JQX.Utilities.BigNumber(new JQX.Utilities.DateTime(i, 1, 1).getTimeStamp()));\n }\n }\n\n that._dateIncrementMethod = 'addYears';\n break;\n case 'month':\n if (calculatedInterval) {\n for (let i = new JQX.Utilities.DateTime(that._minDate.year(), that._minDate.month() + toAdd, 1);\n i.compare(that._maxDate) === -1; i.addMonths(toAdd, false)) {\n customTicks.push(new JQX.Utilities.BigNumber(i.getTimeStamp()));\n }\n }\n\n that._dateIncrementMethod = 'addMonths';\n break;\n case 'day':\n if (calculatedInterval) {\n for (let i = new JQX.Utilities.DateTime(that._minDate.year(), that._minDate.month(), that._minDate.day() + toAdd);\n i.compare(that._maxDate) === -1; i.addDays(toAdd, false)) {\n customTicks.push(new JQX.Utilities.BigNumber(i.getTimeStamp()));\n }\n }\n\n that._dateIncrementMethod = 'addDays';\n that._dateIntervalNumber = 86400000000000000000000000000;\n break;\n case 'hour':\n if (calculatedInterval) {\n for (let i = new JQX.Utilities.DateTime(that._minDate.year(), that._minDate.month(), that._minDate.day(), that._minDate.hour() + toAdd);\n i.compare(that._maxDate) === -1; i.addHours(toAdd, false)) {\n customTicks.push(new JQX.Utilities.BigNumber(i.getTimeStamp()));\n }\n }\n\n that._dateIncrementMethod = 'addHours';\n that._dateIntervalNumber = 3600000000000000000000000000;\n break;\n case 'minute':\n if (calculatedInterval) {\n for (let i = new JQX.Utilities.DateTime(that._minDate.year(), that._minDate.month(), that._minDate.day(), that._minDate.hour(), that._minDate.minute() + toAdd);\n i.compare(that._maxDate) === -1; i.addMinutes(toAdd, false)) {\n customTicks.push(new JQX.Utilities.BigNumber(i.getTimeStamp()));\n }\n }\n\n that._dateIncrementMethod = 'addMinutes';\n that._dateIntervalNumber = 60000000000000000000000000;\n break;\n }\n\n if (calculatedInterval) {\n if (customTicks[customTicks.length - 1].compare(that.max) === -1) {\n customTicks.push(new JQX.Utilities.BigNumber(that.max));\n }\n\n that.customTicks = customTicks;\n }\n }", "function dateToUnixTimestampSeconds() {\n return operator_1.cast(instance_of_date_1.instanceOfDate(), function (d) { return Math.floor(d.getTime() / 1000); }, number_1.integer());\n}", "function daysToMS(days){\r\treturn days * 24 * 60 * 60 * 1000;\r}", "static getTimeInMs() {\n let seconds;\n let nanoseconds;\n [seconds, nanoseconds] = process.hrtime();\n return seconds * 1000 + nanoseconds / 1000000;\n }", "function epochExpression (epoch) {\n return `TIMESTAMP '${epoch}'`;\n}", "function convertUnixDate(unix_timestamp) {\n\treturn new Date(unix_timestamp * 1000);\n}", "function unixTimestampSecondsToDate() {\n return operator_1.cast(number_1.integer(), \n //Multiply by 1000 because `Date` ctor expects\n //milliseconds since Unix Epoch\n function (num) { return new Date(num * 1000); }, instance_of_date_1.instanceOfDate());\n}", "function timestampWithMs() {\n return (crossPlatformPerformance.timeOrigin + crossPlatformPerformance.now()) / 1000;\n}", "function timestamp() {\n return Math.floor(Date.now() / 1000);\n}", "getCurrentTimeStamp() {\n return new Date().getTime() * 1e6;\n }", "function convertUnixToDate(time) {\r\n\tlet unix_timestamp = time;\r\n\tvar date = new Date(unix_timestamp * 1000);\r\n\treturn date;\r\n}", "function timestamp()\r\n {\r\n return this.format(\"dd.MM.yyyy hh:mm:ss.ffffff\");\r\n }", "function Ln(t, e) {\n return t.Bt ? new Date(1e3 * e.seconds).toISOString().replace(/\\.\\d*/, \"\").replace(\"Z\", \"\") + \".\" + (\"000000000\" + e.nanoseconds).slice(-9) + \"Z\" : {\n seconds: \"\" + e.seconds,\n nanos: e.nanoseconds\n };\n}", "static genDateString(timeStamp)\n {\n let dateString = \"\";\n let epoch = parseInt(timeStamp);\n if(!isNaN(epoch))\n {\n let dt = new Date(epoch);\n let month = (dt.getMonth() + 1);\n if(month < 10)\n {\n month = \"0\" + month;\n }\n let day = dt.getDate();\n if(day < 10)\n {\n day = \"0\" + day;\n }\n\n dateString = dt.getFullYear() + \"-\" + month + \"-\" + day;\n }\n\n return dateString;\n }", "function millisToDateUN(millis) {\r\n\tvar datetime = new Date(millis);\r\n\r\n\tvar theyear=datetime.getFullYear();\r\n\tvar themonth=datetime.getMonth()+1;\r\n\tvar theday=datetime.getDate();\r\n\tdateString = (theday+\"/\"+themonth+\"/\"+theyear);\r\n\r\n\treturn dateString;\r\n}", "function milliseconds(){\n\treturn (new Date).getTime();\n}", "function convertUnix(unix)\n {\n\n var a = new Date(unix*1000);\n var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];\n var year = a.getFullYear();\n var month = months[a.getMonth()];\n var date = a.getDate();\n var dateString = date + '/' + month + '/' + year; \n return dateString;\n }", "function timeStamp() {\n let time = 0,\n now = new Date();\n\n time = now.getFullYear();\n time += (now.getMonth < 9 ? \"0\" : \"\") + now.getMonth();\n time += (now.getDate < 10 ? \"0\" : \"\") + now.getDate();\n time += now.getUTCMilliseconds();\n return time;\n}", "function convertDate(timeStamp) {\n return new Date(timeStamp * 1000).toLocaleString(\"en-US\", {\n month: \"numeric\",\n day: \"numeric\",\n year: \"numeric\"\n });\n }", "function getCurrUnixTime() {\n return Math.floor((new Date().getTime()) / 1000);\n}", "function getCurrUnixTime() {\n return Math.floor((new Date().getTime()) / 1000);\n}", "function timeStamp() {\n\t// Return current date, in Unix time, milliseconds since Jan 1, 1970\n return new Date().getTime();\n}", "function createTimeStamp9am(){\n let today = new Date();\n \n var ms = today.getTime();\n var msPerDay = 86400 * 1000;\n var msto9am = 32400000;\n let nineAMToday = ms - (ms % msPerDay) + msto9am;\n return nineAMToday; \n }", "function convertCurrentDate(data) {\n currentDate = data.current.dt\n // from https://www.epochconverter.com/programming/#javascript\n myDate = new Date(currentDate * 1000);\n console.log(\"Current human date: \" + myDate);\n\n}", "function irdTimeStamp()\n{\n\tvar endResult = 0;\n\n\tvar date = new Date();\n\tvar seconds = 1000;\n\tvar minutes=seconds*60;\n\tvar hours=minutes*60;\n\n\tendResult = ((date.getHours())*hours) + ((date.getMinutes())*minutes) + ((date.getSeconds())*seconds);\n\treturn endResult;\n}", "function getMillisecs () {\r\n\treturn((new Date()).getTime());\r\n}", "function unixToNatural(date) {\n return moment.unix(date).format(\"MMMM, D YYYY\");\n }", "function nowInTimeStamp() {\r\n var today = new Date().getDate();\r\n var month = new Date().getMonth()+1;\r\n var year = new Date().getFullYear();\r\n var now = parseInt((new Date(month+\"/\"+today+\"/\"+year).getTime()-Date.UTC(1970,0,1))/1000);\r\n return now;\r\n }", "function daysToMS(days){\n\treturn days * 24 * 60 * 60 * 1000;\n}", "function getTimeMillis()\n{\n return (new Date()).getTime();\n}", "function getUnix(time) {\n return moment(time).unix();\n }", "function cubism_graphiteFormatDate(time) {\n return Math.floor(time / 1000);\n}", "function cubism_graphiteFormatDate(time) {\n return Math.floor(time / 1000);\n}", "formatDate(timestamp,format,unix){// unix timestamp is seconds, JS is milliseconds\nif(unix){timestamp=1e3*timestamp}return new Date(timestamp).format(format)}", "function dateFromNintendoTimestamp(timestamp) {\r\n return new Date((timestamp + UNIX_EPOCH_2000) * 1000);\r\n }", "getDate(ts) {\n return dateProcessor(ts * 1000).getDate();\n }", "function toPRTime(date) {\n return date * 1000;\n}", "function mn(t, e) {\n return t.I ? new Date(1e3 * e.seconds).toISOString().replace(/\\.\\d*/, \"\").replace(\"Z\", \"\") + \".\" + (\"000000000\" + e.nanoseconds).slice(-9) + \"Z\" : {\n seconds: \"\" + e.seconds,\n nanos: e.nanoseconds\n };\n}" ]
[ "0.73687714", "0.73176455", "0.73060364", "0.7030363", "0.70046705", "0.69443166", "0.6932222", "0.6835519", "0.66248167", "0.65397555", "0.6492493", "0.645624", "0.6318535", "0.630241", "0.6264407", "0.6242819", "0.62016594", "0.62016594", "0.6197361", "0.6161978", "0.6139808", "0.6137902", "0.61189854", "0.60995585", "0.60995585", "0.60995585", "0.6081881", "0.6077185", "0.60679173", "0.60324794", "0.6030197", "0.6007606", "0.59871113", "0.5971326", "0.5971326", "0.5971326", "0.5971326", "0.5971326", "0.5971326", "0.5963458", "0.5945545", "0.59430826", "0.5931701", "0.59183985", "0.5917113", "0.59107804", "0.58895195", "0.58860034", "0.5883073", "0.585262", "0.58523273", "0.57861763", "0.5760749", "0.575113", "0.57456166", "0.57084453", "0.57084453", "0.57019484", "0.569568", "0.5686193", "0.5655278", "0.5651032", "0.5648974", "0.56458575", "0.56436837", "0.5643523", "0.56172186", "0.559918", "0.55901104", "0.55852497", "0.55847985", "0.55842555", "0.55828863", "0.5576497", "0.5573677", "0.5566722", "0.55665183", "0.5546925", "0.5543954", "0.5494095", "0.54929984", "0.5490231", "0.54826725", "0.54826725", "0.54749674", "0.5462232", "0.5455549", "0.54506654", "0.5445152", "0.54357177", "0.54309", "0.54271317", "0.5423295", "0.5408255", "0.54077786", "0.54077786", "0.5403263", "0.53950495", "0.5392869", "0.53892297", "0.538488" ]
0.0
-1
Compare the current version of the app against whatever we retrieved from the remote URL.
function newVersion(localVersion, pollingResult) { // If we go for the default versioning system which npm seems happiest the versions will be major.minor.build. // We first need to break up both the local version number and the pollingResult version number into their constituent // parts. var localVersionParts = localVersion.split("."); var localMajor = parseInt(localVersionParts[0]); var localMinor = parseInt(localVersionParts[1]); var localBuild = parseInt(localVersionParts[2]); var remoteVersionParts = pollingResult.version.split("."); var remoteMajor = parseInt(remoteVersionParts[0]); var remoteMinor = parseInt(remoteVersionParts[1]); var remoteBuild = parseInt(remoteVersionParts[2]); if (remoteMajor > localMajor) { return true; } else if (remoteMajor == localMajor) { if (remoteMinor > localMinor) { return true; } else if (remoteMinor == localMinor) { if (remoteBuild > localBuild) { return true; } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkForUpdate() {\n superagent.get(packageJson).end((error, response) => {\n if (error) return;\n const actualVersion = JSON.parse(response.text).version; // TODO: case without internet connection\n console.log('Actual app version: ' + actualVersion + '. Current app version: ' + currentVersion);\n if (semver.gt(actualVersion, currentVersion)) {\n mb.window.webContents.send('update-available');\n console.log('New version is available!');\n }\n });\n}", "async function checkForUpdate(currentVersion) {\n try {\n const latestVersion = await new Request(\n 'https://raw.githubusercontent.com/jchicano/scriptable-republicamovil/master/version.txt'\n ).loadString();\n return currentVersion.replace(/[^1-9]+/g, '') <\n latestVersion.replace(/[^1-9]+/g, '')\n ? true\n : false;\n } catch (err) {\n log('try checkForUpdate: ' + err);\n return false;\n }\n}", "function checkContentVersionSync() {\n\tvar connection = checkConnection(),\n\t\tnewcontentavailabledownload = $.t('newcontentavailabledownload'),\n\t\tdownloadrequiredcontentdownload = $.t('downloadrequiredcontentdownload'),\n\t\tlocalcontentalreadylatest = $.t('localcontentalreadylatest'),\n\t\tinternetneededfordownload = $.t('internetneededfordownload');\n\tif (connection !== \"None\") {\n\t\thandleAndroidPreferences(\"get\", window.androidPrefsLib, \"localContentVersion\", \"\", function (prefValue) {\n\t\t\t$.getJSON(window.serviceURL + window.apiFile + window.apiKey + 'appsyncversion', function (data) {\n\t\t\t\tvar versions = data.items;\n\t\t\t\t$.each(versions, function (index, version) {\n\t\t\t\t\tif (version.version !== prefValue && prefValue !== null) {\n\t\t\t\t\t\t$('#infoSync').empty().append(newcontentavailabledownload + ': ' + version.notes);\n\t\t\t\t\t} else if (prefValue === null) {\n\t\t\t\t\t\t$('#infoSync').empty().append(downloadrequiredcontentdownload);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$('#infoSync').empty().append(localcontentalreadylatest);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}).fail(function () { apiErrorHandler($('#infoSync'), \"appsyncversion\"); });\n\t\t});\n\t} else {\n\t\t$('#infoSync').empty().append(internetneededfordownload);\n\t}\n}", "function getCurrentVersion() {\r\n\r\n\t\t\tvar errorCallback = function(){};\r\n\t\t\tvar completeHandle = function(event){\r\n\t\t\t\tvar ld = air.URLLoader(event.target);\r\n\t\t\t\tvar d = JSON.parse(ld.data);\r\n\t\t\t\t\r\n\t\t\t\tcurrentVersion = d.version;\r\n\t\t\t\tfileUrl = d.downloadurl;\r\n\t\t\t\tair.trace(currentVersion, fileUrl)\r\n\t\t\t\tdownloadNewVersion();\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\tvar request = new air.URLRequest();\r\n\t\t\trequest.method = air.URLRequestMethod.POST;\r\n\t\t\trequest.url = \"http://www.startfeel.com/app/mease/check.json\";\r\n\t\t\t\r\n\t\t\tair.trace(completeHandle);\r\n\t\t\tair.trace(errorCallback);\r\n\t\t\tvar loader = new air.URLLoader();\r\n\t\t\tloader.addEventListener(air.Event.COMPLETE,completeHandle);\r\n\t\t\tloader.addEventListener(air.IOErrorEvent.IO_ERROR,errorCallback);\r\n\t\t\tloader.load(request);\r\n\r\n\t\t} // End of getCurrentVersion() function.", "function getCurrentAppVersion() {\n return $http.get((_appMountPath + '/version'));\n }", "function localVersion() {\n return window.location.protocol == 'file:'\n }", "function checkVersion() {\n\tif(script_version_xhr) script_version_xhr.abort();\n\t\n\tscript_version_xhr = $.get(\n\t\t'version.php'\n\t).done(function(data) {\n\t\tif(!script_version) {\n\t\t\tscript_version = data;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(script_version != data) {\n\t\t\tfail(lang.error_new_version);\n\t\t\tlocation.reload(true);\n\t\t}\n\t});\n}", "testUpdateAppVersion() {\n if (process.client) {\n this.getApi().post('version/').then((data) => {\n const appVersion = data.app_version;\n const actualVersion = this.getActualVersion();\n if (appVersion !== actualVersion) {\n this.setActualVersion(appVersion);\n window.location.reload();\n }\n });\n }\n }", "function checkUpdate() {\n\tsync.net.getVersion(function(serverVersion) {\n\t\tif (serverVersion != version) {\n\t\t\tconsole.log(\"New update is available\");\n\t\t}\n\t});\n}", "function checkContentVersionIndex() {\n\t$.getJSON(window.serviceURL + window.apiFile + window.apiKey + 'appsyncversion', function (data) {\n\t\tvar versions = data.items,\n\t\t\tnewcontentavailable = $.t('newcontentavailable'),\n\t\t\tdownloadrequiredcontent = $.t('downloadrequiredcontent'),\n\t\t\tnewappavailable = $.t('newappavailable');\n\t\thandleAndroidPreferences(\"get\", window.androidPrefsLib, \"localContentVersion\", \"\", function (prefValue) {\n\t\t\t$.each(versions, function (index, version) {\n\t\t\t\tif (version.version !== prefValue && prefValue !== \"\" && prefValue !== null) {\n\t\t\t\t\t$('#infoSyncStatus').empty().append('<a href=\"#syncPage\" class=\"ui-btn\">' + newcontentavailable + '<br />Update: ' + version.version + ' - ' + version.notes + '</a>').trigger(\"create\");\n\t\t\t\t} else if (prefValue === null || prefValue === \"\") {\n\t\t\t\t\t$('#infoSyncStatus').empty().append('<a href=\"#syncPage\" class=\"ui-btn\">' + downloadrequiredcontent + '</a>').trigger(\"create\");\n\t\t\t\t} else {\n\t\t\t\t\t$('#infoSyncStatus').empty();\n\t\t\t\t}\n\t\t\t\tgetPackageVersion(function (versionValue) {\n\t\t\t\t\thandleAndroidPreferences(\"get\", window.androidPrefsLib, \"settingAutoCheckApp\", \"\", function (prefValue) {\n\t\t\t\t\t\tif (compareAppVersion(version.app, versionValue) === true && prefValue === \"on\") {\n\t\t\t\t\t\t\t$('#appUpdateStatus').empty().append('<a class=\"ui-btn\">' + newappavailable + ': ' + version.app + '</a>').trigger(\"create\");\n\t\t\t\t\t\t\t$(\"#appUpdateStatus\").off(\"click\").on(\"click\",\n\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t$('#appUpdateStatus').empty();\n\t\t\t\t\t\t\t\t\tappstoreCheck(function (value) {\n\t\t\t\t\t\t\t\t\t\tif (value === \"unknown\") {\n\t\t\t\t\t\t\t\t\t\t\twindow.open('http://droidpapers.teusink.org/about.php', '_system');\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tappstore(\"org.teusink.droidpapers\", \"app\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t});\n\t\t});\n\t}).fail(function () { apiErrorHandler($('#appUpdateStatus'), \"appsyncversion\"); });\n}", "function _versionCheck() {\n // get user's version\n var _version = store.get(\"version\");\n // set version again\n store.set(\"version\", planner.version);\n // reset storage due to update from 0.4.1 -> 0.5.0\n if (_version < \"0.4.9\") {\n store.clear();\n }\n // publish the app wide message related to user\n $.publish(\"app:status:\" + ((!_version) ? \"new\" :\n (_version < planner.version) ? \"updated\" : \"uptodate\"));\n }", "function scriptCheckVersion() {\r\n\tGM_xmlhttpRequest({\r\n\t\tmethod: \"GET\",\r\n\t\turl: scriptHomepageURL,\r\n\t\tonload: function(evt) {\r\n\t\t\tif ((evt.readyState == 4) && (evt.status == 200)) {\r\n\r\n\t\t\t\t// Gets the remote version from the response and makes sure it is a number\r\n\t\t\t\tvar responseMatch = evt.responseText.match(/<p>#\\[V:(\\d+)]#<\\/p>/);\r\n\t\t\t\tvar remoteVersion = (responseMatch === null) ? NaN : parseInt(responseMatch[1], 10);\r\n\t\t\t\tif (isNaN(remoteVersion)) return;\r\n\r\n\t\t\t\t// Saves the more recent version according to the server and shows the update notice if the server version is newer\r\n\t\t\t\tGM_setValue(\"scriptLastRemoteVersion\", remoteVersion.toString());\r\n\t\t\t\tif (remoteVersion > scriptVersion) scriptShowUpdateMessage(true, remoteVersion);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}", "async getVersion() {\n // Only check the version if at least 3 seconds since last request\n let requestTime = Date.now();\n if (requestTime - this.lastRequestTime < 3000) {\n return;\n }\n // Check the version by loading this file as text\n // and extracting the version number using a reg exp\n this.lastRequestTime = requestTime;\n let error, response = await fetch(this.myRoute)\n .catch(e => error = e);\n if (error) {\n // We couldn't load the file - probably offline\n this.log('could not get version, offline?', error);\n this.log('using latest known version', this.version);\n return;\n }\n // Set the version\n let text = await response.text();\n this.version = text.match(/this.version\\s*=\\s*([\\d|\\.]*)/)[1] / 1;\n this.log(`checked the site version: ${this.version}`);\n // Check if in production mode\n this.production = !!text.match(/this.production\\s*=\\s*true/);\n this.log('production mode', this.production);\n if (!this.production) {\n // turn off logging if not in production\n this.debug = false;\n }\n }", "function checkForUpdates(){\r\n\r\n $.getJSON('https://mayar.abertay.ac.uk/~cmp311g20eh12/API/account/read_version.php', function(result){\r\n\r\n $.each( result, function( key, val ) {\r\n if (local.get(\"internal_database_version\") != val.version) {\r\n clear_database();\r\n download_database();\r\n } else {\r\n if (debug == true) {\r\n console.log(\"Current database is already up to date!\");\r\n }\r\n }\r\n });\r\n });\r\n\r\n}", "function getThisVersion() {\r\n\r\n\t\t\t// Get the data:\r\n\t\t\tvar appData = air.NativeApplication.nativeApplication.applicationDescriptor;\r\n\t\t\t//air.trace(appData);\r\n\t\t\t\r\n\t\t\t// Turn the file data into an XML object:\r\n\t\t\tvar dp = new DOMParser();\r\n\t\t\tvar xml = dp.parseFromString(appData, 'text/xml');\r\n\r\n\t\t\t// Parse out and return the version value:\r\n\t\t\tvar version = xml.getElementsByTagName('version')[0].firstChild;\r\n\t\t\tthisVersion = version.nodeValue;\r\n\t\t\tair.trace(thisVersion);\r\n\t\t\t\r\n\t\t\tgetCurrentVersion();\r\n\r\n\t\t} // End of getThisVersion() function.", "function checkVersion(){\r\n var lastCheck = daftCookie(\"lastVersionCheck\") || 0;\r\n \r\n var now = (new Date()).getTime();\r\n \r\n var day = 1000 * 60 * 60 * 24;\r\n \r\n \r\n daftCookie(\"lastVersionCheck\", now);\r\n\r\n if (now - lastCheck > day) {\r\n GM_xmlhttpRequest({\r\n url : \"http://www.chofter.com/apps/versions.json?cachebust=\" + now,\r\n method: \"GET\",\r\n onload: function(versions){\r\n versions = dojo.fromJson(versions.responseText);\r\n \r\n if (versions && versions.daftmonkey) {\r\n if (Number(versions.daftmonkey) > currentVersion) {\r\n daftMonkeyLink.innerHTML = \"(Get New DaftMonkey Version)\";\r\n }\r\n }\r\n },\r\n onerror: function(){\r\n alert(\"failed to read photo data\");\r\n }\r\n });\r\n }\r\n}", "function fetchBuildVersion(app, stack) {\n if (!app[stack]) {\n return reject(`${app.id} doesn't have info for stack ${stack}`);\n }\n let { apiGatewayUrl } = app[stack];\n if (!apiGatewayUrl) {\n return reject(`${app.id} doesn't have an apiGatewayUrl`);\n }\n\n return request(`${apiGatewayUrl}/version`);\n}", "function compareVersionNumbers(version1, version2){\n\n}", "get isCurrentVersion() {\n return this.originalResponse.isCurrentVersion;\n }", "get isCurrentVersion() {\n return this.originalResponse.isCurrentVersion;\n }", "get availableAppVersions() {\n return Util.deepCopy(storeData.availableAppVersions);\n }", "get version() {\n return window.navigator.appVersion;\n }", "function compare_to(client_version) {\n\t\tlet client_ver = client_version.split('.').map(d => Number(d));\n\t\tlet wkof_ver = version.split('.').map(d => Number(d));\n\t\tlet len = Math.max(client_ver.length, wkof_ver.length);\n\t\tfor (let idx = 0; idx < len; idx++) {\n\t\t\tlet a = client_ver[idx] || 0;\n\t\t\tlet b = wkof_ver[idx] || 0;\n\t\t\tif (a === b) continue;\n\t\t\tif (a < b) return 'newer';\n\t\t\treturn 'older';\n\t\t}\n\t\treturn 'same';\n\t}", "function mirrorbrain_getVersion( href ) {\n\tvar file;\n\tfile = mirrorbrain_getTagFileName( href );\n\treturn mirrorbrain_getTagVersion( file );\n}", "function equal(versionA, versionB) {\n return versionA.remoteName === versionB.remoteName &&\n versionA.semanticVersion === versionB.semanticVersion &&\n versionA.arch === versionB.arch;\n}", "getVersion() {\n return this.call(\"GET\", \"/version/qbittorrent\")\n }", "static version() {\n let version = \"\";\n switch (Application.getCurrentBrowser()) {\n case Browser.CHROME:\n version = chrome.runtime.getManifest()[\"version\"];\n break;\n }\n return version;\n }", "function pollTabVersions() {\n tabVersions = {'noresponse': [], 'outdated': [], 'current': [], 'counted': 0}\n chrome.tabs.query({'status': 'complete'}, function(tabs) {\n for (var i=0; i<tabs.length; i++) {\n var tab = tabs[i];\n if (isWeb(tab.url)) {\n // Create a closure here so the 'tab' parameter inside sticks to the calling context\n (function(tab) {\n chrome.tabs.sendMessage(tab.id, {action: \"version\", tabid:tab.id}, function(response) {\n tabVersions['counted']++;\n if (!response) {\n tabVersions['noresponse'].push(tab);\n } else if (response.version < MIN_CONTENT_SCRIPT_VERSION) {\n tabVersions['outdated'].push(tab);\n } else {\n tabVersions['current'].push(tab);\n }\n });\n })(tab);\n }\n }\n });\n}", "function getVersion(baseUri) {\n return fetch(normalizeBaseUri(baseUri) + \"v1/version\", {\n method: 'get',\n headers: {\n 'Content-Type': 'application/json;charset=UTF-8',\n 'Accept': 'application/json'\n }\n })\n .then(function (r) { return r.json(); });\n}", "function checkCurrentTab() {\n\tchrome.tabs.query({\"active\": true, \"currentWindow\": true, \"windowType\": \"normal\"}, tabs => {\n\t\tvar tab = tabs[0];\n\n\t\t// popup/devTools windows ran result in null tab variable\n\t\tif (!tab) { return; }\n\n\t\t// get current URL\n\t\tvar currentURL = tab.url; \n\t\tconsole.log('Updating state from URL: ' + currentURL);\n\t\tchrome.storage.local.set({'url': currentURL});\n\n\t\t// check if URL matches a refugee need\n\t\tvar match = isMatch(currentURL);\n\t\t// update chrome.storage.local.isMatch\n\t\tchrome.storage.local.set({'isMatch': match});\n\t\t// update notification badge\n\t\tchrome.browserAction.setBadgeText({ text: match ? '1' : ''});\n\t});\n}", "getCurrentVersion() {\n let request = this._get('/classes/' + this.migrationVersionTable);\n return new Promise(function(resolve, reject) {\n request.query({ order: '-updatedAt' })\n .query({ limit: 1 })\n .end(function(err, res){\n if (res.ok) {\n let results = res['body'].results;\n // check if a version is available -> else set version to undefined\n let version = results.length > 0 ? results[0] : undefined;\n resolve(version);\n } else {\n reject(new Error('API Request failed: ' + res.body.error));\n }\n });\n });\n }", "function checkversion(response) {\r\n\t\tvar availableVersion = \"\";\r\n\t\tvar TmpStr = \"\";\r\n\t\tif (response.status == 200) {\r\n\t\t\r\n\t\t\tvar resReg = /\\/\\/ @version\\s+(\\d+\\.\\d+\\.\\d+)/.exec(response.responseText);\r\n\t\t\tif (resReg != null) {\r\n\t\t\tif(DBG) GM_log(typeof(resReg));\r\n\t\t\t\tavailableVersion = resReg[1];\r\n\t\t\t\tif(DBG) GM_log(availableVersion);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif(DBG) GM_log(\"XHR error: \"+response.status + \" :end XHR\");\r\n\t\t\tavailableVersion = cversion;\r\n\t\t\tTmpStr += \"Updates check failed.\";\r\n\t\t}\r\n\t\tif (availableVersion!=cversion) {\r\n\t\t\tTmpStr += \"<a style='display:block' title='Click here to update Youtube Persist Worldwide now!' href='http://userscripts.org/scripts/source/33551.user.js'>YOUTUBE PERSIST WORLDWIDE<br /><b>CLICK TO INSTALL THE NEW VERSION NOW</b></a>\";\r\n\t\t\tif(DBG) {GM_log(response.responseText);GM_log(\"New version found: \" +availableVersion);}\r\n\t\t\tif(DBG) GM_log('innerHTML: ' + TmpStr);\r\n\t\t\tvar sp = document.createElement('div');\r\n\t\t\tsp.setAttribute(\"id\",\"YPWpopup\");\r\n\t\t\tsp.setAttribute('style','background-color: #FFEEBF;color: #333333;display: block !important;font-size: 8px;left: 17px;padding: 2px 8px;position: absolute;text-align: center;top: 44px;z-index: 1001;');\r\n\t\t\tsp.innerHTML = TmpStr;\r\n\t\t\ttop.document.body.appendChild(sp);\r\n\t\t}\r\n\t}", "showUpdateMessage() {\r\n const currentVersion = store.get(\"version\");\r\n\r\n if (typeof currentVersion == \"undefined\")\r\n store.set(\"version\", app.getVersion());\r\n\r\n if (currentVersion !== app.getVersion()) {\r\n this.mainWindow.webContents.send(\"showJustUpdated\");\r\n store.set(\"version\", app.getVersion());\r\n }\r\n }", "function checkCMNewestVersion(failCount) {\n\n $.ajax({\n url: greasyfork_url,\n success: function(data, textStatus, jqXHR) {\n var latestVersion = data.slice(data.indexOf('\">v') + 3, data.indexOf(\"</a>\", data.indexOf('\">v') + 3));\n var versionChanges = \"\";\n\n if (CMVersionCheck.v !== latestVersion && CMVersion !== latestVersion) {\n CMVersionCheck.c = false;\n CMVersionCheck.v = latestVersion;\n }\n\n if (CMVersionCheck.c === false)\n {\n versionChanges = data.slice(data.indexOf(\"- \", data.indexOf(\"</time>\")) + 2, data.indexOf(\"</li>\", data.indexOf(\"</time>\"))).trim().replace(\"&#39;\", \"'\");\n\n if (latestVersion !== CMVersion && confirm('It looks like you aren\\'t using the latest version of WaniKani Community Mnemonics (v' + latestVersion + ').\\n\\n' +\n 'This update contains the following change(s): \\n\"' + versionChanges + '\"\\n\\nWhile it is not mandatory, it is highly recommended that you update.' +\n 'Will you update from v' + CMVersion + ' to v' + latestVersion + '?'))\n window.open(script_raw_url, '_self');\n else CMVersionCheck.c = true;\n\n }\n\n localStorage.setItem(\"CMVersionCheck\", JSON.stringify(CMVersionCheck));\n\n // only init call\n init();\n },\n error: function(jqXHR, textStatus, errorThrown) {\n if (failCount < 3) checkCMNewestVersion(failCount + 1);\n else alert(failCount + \"An error occured while trying to check the newest version of WaniKani Community Mnemonics: \" + xhr.status + \": \" + xhr.statusText + \". Make sure your internet connection is working \" +\n \"properly and then reload the page to try again.\");\n }\n });\n}", "isUpdateAvailable(token) {\n return this.fetchScheduleFromNetwork(token).then(response => {\n return this.hash_ !== stringHash(response);\n });\n }", "get appVersions() {\n return Util.deepCopy(storeData.appVersions);\n }", "function checkNewApp (){\n\tif (lastUpdate == undefined){\n\t\tactivateScript(\"system_profiler SPApplicationsDataType\", (stdout)=>{\n\t\t\tvar softwareInfos = stdout.split(\"\\n\\n\");\n\t\t\tvar softwareName;\n\t\t\tvar softwareNames = [];\n\t\t\tvar localSoftwares_incomplete = [];\n\t\t\tsoftwareInfos.forEach((ASoftwareInfo)=>{\n\t\t\t\tvar lines = ASoftwareInfo.split(\"\\n\");\n\t\t\t\tif (lines.length === 1){\n\t\t\t\t\tvar nameLine = lines[0];\n\t\t\t\t\tvar nameLineSplit = nameLine.split(\":\");\n\t\t\t\t\tsoftwareName = nameLineSplit[0].replace(/ /g,'');\n\t\t\t\t}else {\n\t\t\t\t\tvar versionLine = lines[0];\n\t\t\t\t\tvar versionSplit = versionLine.split(\": \");\n\t\t\t\t\tsoftwareNames.push(softwareName);\n\t\t\t\t\tvar tempAppInfo = {\n\t\t\t\t\t\t\"name\": softwareName,\n\t\t\t\t\t\t\"old_version\": versionSplit[1],\n\t\t\t\t\t\t\"new_version\": 2,\n\t\t\t\t\t\t\"id\": \"0\",\n\t\t\t\t\t\t\"updatable\": \"false\"\n\t\t\t\t\t}\n\t\t\t\t\tlocalSoftwares_incomplete.push(tempAppInfo);\n\t\t\t\t}\n\t\t\t});\n\t\t\tsetCompleteInfo(softwareNames, localSoftwares_incomplete);\n\t\t\tlastUpdate = new Date();\n\t\t});\n\t}\n}", "function checkVersion() {\n var lastUpdateCheck = GM_getValue('lastUpdateCheck','NEVER');\n var curTime = new Date().getTime();\n if ((lastUpdateCheck == 'NEVER') || (parseInt(lastUpdateCheck) < (curTime - 345600000))) { // every 4 days\n GM_setValue('lastUpdateCheck',''+curTime);\n GM_get('http://userscripts.org/scripts/source/35028.meta.js',\n function(responseText) {\n var v = responseText.match(/@version\\s*([0-9.]+)/);\n if (v) {\n //GM_log('found version: '+v[1]);\n GM_setValue('newversion',v[1]); \n }\n });\n checkDiscoveries();\n }\n}", "async function getGameVersion() {}", "function getVersion(a) {\n var secondBracket = a.url.indexOf('/', 1);\n return a.url.substring(1, secondBracket) || \"v1\";\n}", "async function getLatestVersion (url) {\n const options = {\n uri: url,\n transform: (body) => {\n return cheerio.load(body);\n }\n };\n let version = undefined;\n await rp(options)\n .then(async ($) => {\n $('.release').each((i, element) => {\n const href = $(element).attr('href').split('/')[1];\n version = href;\n return false;\n });\n });\n\n return version;\n}", "async function getLatestVersion (url) {\n const options = {\n uri: url,\n transform: (body) => {\n return cheerio.load(body);\n }\n };\n let version = undefined;\n await rp(options)\n .then(async ($) => {\n $('.release').each((i, element) => {\n const href = $(element).attr('href').split('/')[1];\n version = href;\n return false;\n });\n });\n\n return version;\n}", "function getLatestReleaseInfo(current) {\n try {\n $.get(\"https://api.github.com/repos/sosedoff/pgweb/releases/latest\", function(release) {\n if (release.name != current.version) {\n var message = \"Update available. Check out \" + release.tag_name + \" on <a target='_blank' href='\" + release.html_url + \"'>Github</a>\";\n $(\".connection-settings .update\").html(message).fadeIn();\n }\n });\n }\n catch(error) {\n console.log(\"Cant get last release from github:\", error);\n }\n}", "function CheckVersion()\r\n{\r\n\tGM_xmlhttpRequest({\r\n\t\t method: 'GET',\r\n\t\t url: version_holder+'?'+Math.random(),\r\n\t\t headers: {'Content-type':'application/x-www-form-urlencoded'},\t\t \r\n\t\t onload: function(responseDetails)\r\n\t\t\t{\r\n\t\t\t\tvar line = String(responseDetails.responseText.match(/version=[0-9].[0-9]?[0-9].[0-9]?[0-9]/));\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(line != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tvar strSplit = new Array();\r\n\t\t\t\t\tstrSplit = line.split('=');\t\t\t\t\t\r\n\t\t\t\t\tlatest_version = strSplit[1];\r\n\r\n\t\t\t\t\tif(your_version != latest_version && latest_version != \"undefined\" && document.location.href.indexOf('/mongerizer')==-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(confirm(\"A more recent version of \" + script_title + \" (\" + latest_version + \") has been found.\\r\\nWould you like to get it now?\\n\\n(please uninstall the old version before installing the new one.)\"))\r\n\t\t\t\t\t\t\tGetNewVersion();\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tAskForReminder();\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if(your_version == latest_version && document.location.href.indexOf('/mongerizer')==-1)\r\n\t\t\t\t\t\talert(\"You have the latest version of \" + script_title + \".\");\r\n\t\t\t\t\telse if(document.location.href.indexOf('/mongerizer')!=-1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (latest_version == your_version)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$('chk_latest_version').innerHTML = 'OK';\r\n\t\t\t\t\t\t\t//$('update_link').style.display='none';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif ($('version') &&\r\n\t\t\t\t\t\t\t\t$('version').getAttribute('version')!=your_version &&\t// config page is out of date\r\n\t\t\t\t\t\t\t\tgup(window.location.href,'rand')==''\t\t\t\t\t// never been refreshed\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\twindow.location.href+='?rand='+Date();\t// refresh config page\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\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$('chk_latest_version').innerHTML = '';\r\n\t\t\t\t\t\t\t$('update_link').style.display='inline';\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\telse\r\n\t\t\t\t{\r\n\t\t\t\t\talert(\"Could not locate the version holder file.\\r\\nThis should be reported to the script author <[email protected]>.\\r\\nThank you!\");\r\n\t\t\t\t\tSkipWeeklyUpdateCheck();\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t }\r\n\t\t});\r\n}", "isNewerVersion(version, compareVersion) {\n return compareVersion.localeCompare(version, undefined, { numeric: true }) === -1;\n }", "isNewerVersion(version, compareVersion) {\n return compareVersion.localeCompare(version, undefined, { numeric: true }) === -1;\n }", "checkAvailability() {\n if(!this.sourceBranch || !this.toBranch) {\n this.title = '';\n this.available = false;\n\n return;\n }\n\n $.getJSON(app.getUri('h-gitter-repo-merge-request-availability', {\n repoId : this.repoId,\n from : this.sourceBranch,\n to : this.toBranch\n }))\n\n .done((response) => {\n this.available = response.available;\n this.title = response.title;\n });\n }", "async getCurrentVersion() {\n if (this._version) {\n return this._version;\n }\n const service = await this.getService();\n return [...service.versions].pop().number;\n }", "function CompareVersions(version1, version2)\n{\n for (i = 0; i < version1.length; ++i)\n {\n\tvar number1 = new Number(version1[i]);\n\tvar number2 = new Number(version2[i]);\n\n\tif (number1 < number2)\n\t return -1;\n\n\tif (number1 > number2)\n\t return 1;\n }\n\n return 0;\n}", "get version() {\n return this.metadata['appVersion']\n }", "get appVersion() {\n return this._appVersion;\n }", "function getVersion(path) {\n const url = new URL(path, 'https://foo.bar');\n const segments = url.pathname.split('/');\n return segments.find((segment) => segment.match(/v[0-9]+(.[0-9]+)?/));\n}", "static version_lookup() {\n return require('../package.json').version;\n }", "function getVersion() {\n return chrome.runtime.getManifest().version;\n}", "function checkversion()\n{\n if (window.XDomainRequest) {\n xhr = new XDomainRequest(); \n } else if (window.XMLHttpRequest) {\n xhr = new XMLHttpRequest(); \n }\n\t xhr.onload = function() {\n\t\tdocument.getElementById('Version').innerHTML = xhr.responseText;\t\n\t\tdocument.getElementById('newrelease').innerHTML = document.getElementById('firmware_last').innerHTML;\n }\n\txhr.open(\"GET\",\"http://KaraDio.karawin.fr/version32.php\", false);\n\ttry{\n\t\txhr.send(null );\n\t}catch(e){;}\n\tcheckinfos();\n\t//checkhistory();\n}", "function checkCompatability() {\n\tif (typeof my_ubmVersion !== \"string\") {\n\t\tvar s = \"The bookmarklet does not have a setting! Please make sure yours has one!\";\n\t\talert(s);\n\t\tthrow s;\n\t}\n\tif ([-1, NaN].includes(versionCompare(my_ubmVersion, ubm_clientFormatVersion))) { /*aka is the my_ubmVersion less than ubm_clientFormatVersion*/\n\t\tvar s = \"The client has an older version 'v\" + my_ubmVersion + \"' than is compatable with the bookarklet manager 'v\" + ubm_clientFormatVersion + \"'! Because of this, the script will not load until you update your bookmarklet. Possibly will add the ability to redirect to the main site and then update it for you.\";\n\t\talert(s);\n\t\tthrow s;\n\t}\n\tif (typeof repos !== \"undefined\") {\n\t\tconsole.log(\"Reloading script!\");\n\t}\n\tif (typeof my_settings !== \"object\") {\n\t\tconsole.warn(\"The settings object was not found or is not an object!\");\n\t\tsettings = {};\n\t}\n}", "async function haveChangesOccurred() {\n const parentPackage = core.getInput('parent-package');\n const versionResult = await exec(`npm view ${parentPackage}@latest version`);\n const version = versionResult.stdout.trim();\n const diffResult = await exec(`git diff --stat v${version}..master frontend-shared/`)\n return diffResult.stdout.length > 0;\n}", "function populateAboutVersionInformation(){\n populateVersionInformation(remote.app.getVersion(), document.getElementById('settingsAboutCurrentVersionValue'), document.getElementById('settingsAboutCurrentVersionTitle'), document.getElementById('settingsAboutCurrentVersionCheck'))\n}", "static isCorrect(version) {\n return ANCHORED_VERSION_PATTERN.test(version);\n }", "function CheckVersion() {\n \n}", "function renderVersion() {\n $.ajax({\n url: jsconfig.baseurl + \"/api/version\",\n beforeSend: authHeaders\n }).then(function(data) {\n var versionText = \"TempGopher © 2018 Mike Shoup | Version: \" + data.version;\n $(\"#version\").text(versionText);\n });\n}", "function fetchVersionService(webSocket) {\n let didTimeOut = false;\n new Promise((resolve, reject) => {\n const timeout = setTimeout(() => {\n didTimeOut = true;\n reject(new Error('Request timed out'));\n }, CHECK_VERSION_TIMEOUT_MS);\n\n fetch('/version', { method: 'HEAD' })\n .then(res => {\n // Clear the timeout as cleanup\n clearTimeout(timeout);\n if (didTimeOut) return;\n if (!res.ok) reject(new Error('Failed to connect'))\n // Auto-Refresh on update!\n // https://developer.mozilla.org/en-US/docs/Web/API/Location/reload\n const version = res.headers.get('Version')\n if (self.appVersion !== version) {\n location.reload(true);\n }\n resolve(res);\n })\n .catch(err => {\n // Rejection already happened with setTimeout\n if (didTimeOut) return;\n // Reject with error\n reject(err);\n });\n })\n .catch(err => {\n // since this uses the same service as WS, if this is down, then we've lost connection\n // so we should close the WS connection\n webSocket.close();\n logger(`fetchVersionService::${err.message}`)\n });\n}", "function webstartVersionCheck(versionString) {\n // Mozilla may not recognize new plugins without this refresh\n navigator.plugins.refresh(true);\n // First, determine if Web Start is available\n if (navigator.mimeTypes['application/x-java-jnlp-file']) {\n // Next, check for appropriate version family\n for (var i = 0; i < navigator.mimeTypes.length; ++i) {\n var pluginType = navigator.mimeTypes[i].type;\n if (pluginType == \"application/x-java-applet;version=\" + versionString) {\n return true;\n }\n }\n }\n return true;\n}", "shouldComponentUpdate(oldProps) {\n return this.props.appUrl !== oldProps.appUrl;\n }", "isIdentical(other) {\n return other instanceof GemVersion && other.version === this.version;\n }", "function CheckVersion()\r\n{\r\n\tGM_xmlhttpRequest({\r\n\t\t method: 'GET',\r\n\t\t url: version_holder,\r\n\t\t headers: {'Content-type':'application/x-www-form-urlencoded'},\t\t \r\n\t\t onload: function(responseDetails)\r\n\t\t\t{\r\n\t\t\t\tvar line = String(responseDetails.responseText.match(/version=[0-9].[0-9]?[0-9].[0-9]?[0-9]/));\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(line != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tvar strSplit = new Array();\r\n\t\t\t\t\tstrSplit = line.split('=');\t\t\t\t\t\r\n\t\t\t\t\tlatest_version = strSplit[1];\r\n\r\n\t\t\t\t\tif(current_version != latest_version && latest_version != \"undefined\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(confirm(\"A more recent version of \" + script_title + \" (\" + latest_version + \") has been found.\\r\\nWould you like to get it now?\"))\r\n\t\t\t\t\t\t\tGetNewVersion();\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tAskForReminder();\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if(current_version == latest_version)\r\n\t\t\t\t\t var t = 5;\r\n\t\t\t\t\t\t//alert(\"You have the latest version of \" + script_title + \".\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\talert(\"Could not locate the version holder file.\\r\\nThis should be reported to the script author.\\r\\nThank you!\");\r\n\t\t\t\t\tSkipWeeklyUpdateCheck();\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t }\r\n\t\t});\r\n}", "function compareVersion(oldversion,newversion){\n\tvar oldArr = oldversion.split(\".\");\n\tvar newArr = newversion.split(\".\");\n\tif(oldArr.length != newArr.length)\n\t\treturn true;\n\tfor(var i = 0;i < oldArr.length; ++i)\n\t{\n\t\tif(oldArr[i]*1 < newArr[i]*1){\n\t\t\treturn true;\n\t\t}else if(oldArr[i]*1 > newArr[i]*1){\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn false;\n}", "function getVersion(){\n return genericPolicyAPIGetItemsRequest('debug/buildversion', {\n project_id: 'Default' //API requires a project ID to be set but it does not need to correspond to an actual value in the system.\n });\n}", "static updated() {\n if (MP.DEBUG) {\n console.group('Check.updated()');\n console.log(`PREV VER = ${this.prevVer}`);\n console.log(`NEW VER = ${this.newVer}`);\n }\n return new Promise((resolve) => {\n // Different versions; the script was updated\n if (this.newVer !== this.prevVer) {\n if (MP.DEBUG) {\n console.log('Script is new or updated');\n }\n // Store the new version\n GM_setValue('mp_version', this.newVer);\n if (this.prevVer) {\n // The script has run before\n if (MP.DEBUG) {\n console.log('Script has run before');\n console.groupEnd();\n }\n resolve('updated');\n }\n else {\n // First-time run\n if (MP.DEBUG) {\n console.log('Script has never run');\n console.groupEnd();\n }\n // Enable the most basic features\n GM_setValue('goodreadsBtn', true);\n GM_setValue('alerts', true);\n resolve('firstRun');\n }\n }\n else {\n if (MP.DEBUG) {\n console.log('Script not updated');\n console.groupEnd();\n }\n resolve(false);\n }\n });\n }", "function CheckVersion()\r\n{\r\n\tGM_xmlhttpRequest({\r\n\t\t method: 'GET',\r\n\t\t url: version_holder,\r\n\t\t headers: {'Content-type':'application/x-www-form-urlencoded'},\t\t \r\n\t\t onload: function(responseDetails)\r\n\t\t\t{\r\n\t\t\t\tvar line = String(responseDetails.responseText.match(/version=[0-9].[0-9]?[0-9].[0-9]?[0-9]/));\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(line != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tvar strSplit = new Array();\r\n\t\t\t\t\tstrSplit = line.split('=');\t\t\t\t\t\r\n\t\t\t\t\tlatest_version = strSplit[1];\r\n\r\n\t\t\t\t\tif(current_version != latest_version && latest_version != \"undefined\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(confirm(\"A more recent version of \" + script_title + \" (\" + latest_version + \") has been found.\\r\\nWould you like to get it now?\"))\r\n\t\t\t\t\t\t\tGetNewVersion();\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tAskForReminder();\r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\talert(\"Could not locate the version holder file.\\r\\nThis should be reported to the script author.\\r\\nThank you!\");\r\n\t\t\t\t\tSkipWeeklyUpdateCheck();\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t }\r\n\t\t});\r\n}", "function updateAvailable(callback){\n latestUserscript(function(latest){\n var avail = !!(latest && latest.version && latest.version > userscript.version);\n _('updateAvailable:', avail, latest);\n callback(avail ? latest : false);\n });\n }", "function getVersion(){\n return version;\n }", "function CheckVersion()\r\n{\r\n\tGM_xmlhttpRequest({\r\n\t\t method: 'GET',\r\n\t\t url: version_holder,\r\n\t\t headers: {'Content-type':'application/x-www-form-urlencoded'},\t\t \r\n\t\t onload: function(responseDetails)\r\n\t\t\t{\r\n\t\t\t\tvar line = String(responseDetails.responseText.match(/version=[0-9].[0-9]?[0-9].[0-9]?[0-9]/));\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(line != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tvar strSplit = new Array();\r\n\t\t\t\t\tstrSplit = line.split('=');\t\t\t\t\t\r\n\t\t\t\t\tlatest_version = strSplit[1];\r\n\r\n\t\t\t\t\tif(current_version != latest_version && latest_version != \"undefined\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(confirm(\"A more recent version of \" + script_title + \" (\" + latest_version + \") has been found.\\r\\nWould you like to get it now?\"))\r\n\t\t\t\t\t\t\tGetNewVersion();\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tAskForReminder();\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if(current_version == latest_version)\r\n\t\t\t\t\t\talert(\"You have the latest version of \" + script_title + \".\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\talert(\"Could not locate the version holder file.\\r\\nThis should be reported to the script author.\\r\\nThank you!\");\r\n\t\t\t\t\tSkipWeeklyUpdateCheck();\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t }\r\n\t\t});\r\n}", "function getAppVersion(packageName) {\n return promisifyCordovaExec('getAppVersion', [packageName]);\n}", "function verifyCurrentUrl(url) {\n return requestMatches(url);\n}", "getVersion()\n {\n let version = this.getArg('version') || DEFAULT_BRANCH;\n\n this.versionMap.forEach((substitution, rule) => {\n // Check regular expression rule\n if (rule instanceof RegExp) {\n version = version.replace(rule, substitution);\n } else if (rule === version) {\n version = substitution;\n }\n })\n return version;\n }", "get version() {\n return this.originalResponse.version;\n }", "get version() {\n return this.originalResponse.version;\n }", "get version() {\n return this.originalResponse.version;\n }", "get version() {\n return this.originalResponse.version;\n }", "function yadcfVersionCheck(version) {\n\t\tvar aThis = $.fn.dataTable.ext.sVersion.split('.'),\n\t\t\taThat = version.split('.'),\n\t\t\tiThis,\n\t\t\tiThat,\n\t\t\ti,\n\t\t\tiLen;\n\n\t\tfor (i = 0, iLen = aThat.length; i < iLen; i++) {\n\t\t\tiThis = parseInt(aThis[i], 10) || 0;\n\t\t\tiThat = parseInt(aThat[i], 10) || 0;\n\n\t\t\t// Parts are the same, keep comparing\n\t\t\tif (iThis === iThat) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Parts are different, return immediately\n\t\t\treturn iThis > iThat;\n\t\t}\n\n\t\treturn true;\n\t}", "getServerVersion() {\n const query_params = {\n key: this.apiKey\n }\n\n return fetch(BASE_URL + DOTA_VERSION + 'GetServerVersion/v1/?' + handleQueryParams(query_params))\n .then(response => responseHandler(response))\n .catch(e => e)\n }", "function mirrorbrain_getVersionForDownloadFolder( version ) {\n\tvar s = null;\n\tif ( version.indexOf( \"_\" ) > -1 ) {\n\t\ts = version.split( \"_\" )[0];\n\t} else {\n\t\ts = version;\n\t}\n\n\tif ( version == VERSION ) {\n\t\treturn version;\n\t} else if ( version == OLD_VERSION ) {\n\t\treturn version;\n\t} else if ( version == RC_VERSION ) {\n\t\treturn s;\n\t} else if ( version == BETA_VERSION ) {\n\t\treturn version;\n\t} else if ( version == DEV1_VERSION ) {\n\t\treturn version;\n\t} else if ( version == DEV2_VERSION ) {\n\t\treturn version;\n\t} else if ( version == TEST_VERSION ) {\n\t\treturn version;\n\t}\n\t// error\n\treturn null;\n}", "GetVersion(){\n return localStorage.getItem(this._DBKeyVersion) // Recuperer la version de la DB du browser\n }", "setActualVersion(value) {\n localStorage.setItem('actual_version', value);\n }", "async getModelVersion () {\n\t\tconst model = await this.collection.getById(\n\t\t\tthis.id, \n\t\t\t{\n\t\t\t\tnoCache: true,\n\t\t\t\tfields: ['version'] \n\t\t\t}\n\t\t);\n\t\tif (!model) {\n\t\t\tthrow this.request.errorHandler.error('notFound');\n\t\t}\n\t\tthis.modelVersion = model.get('version') || 1;\n\t}", "function compareVersion(A, B) {\n\tvar Atype = typeof(A) === 'object';\n\tvar Btype = typeof(B) === 'object';\n\t\n\tvar An = Atype ? A : parseVersion(A);\n\tvar Bn = Btype ? B : parseVersion(B);\n\n\tif (An.invalid || Bn.invalid) {\n\t\treturn null;\n\t}\n\t\n\tvar result = compareNumerics(An, Bn);\n\tif (result !== 0) {\n\t\treturn result;\n\t}\n\t\n\tresult = compareLetter(An, Bn);\n\tif (result !== 0) {\n\t\treturn result;\n\t}\n\t\n\tresult = compareSuffix(An, Bn);\n\tif (result !== 0) {\n\t\treturn result;\n\t}\n\t\n\tresult = compareRevision(An, Bn);\n\t\n\treturn result;\n}", "function cinnamon_version_gte(version) {\n let current = Config.PACKAGE_VERSION.split('.').map(function(x) { return parseInt(x); });\n let required = version.split('.').map(function(x) { return parseInt(x); });\n\n for (i in required) {\n if (required[i] > current[i])\n return false;\n if (required[i] < current[i])\n return true;\n }\n\n /* If we get here, the versions match exactly */\n return true;\n}", "function findVersion() {\n return $('meta').filter(function () {\n var name = $(this).attr('http-equiv')\n return name && name.toUpperCase() === 'X-PJAX-VERSION'\n }).attr('content')\n }", "get latestVersion() {\n return this.getStringAttribute('latest_version');\n }", "function compareVersions(v1, v2) {\n const v1Split = v1.split(\".\");\n const v2Split = v2.split(\".\");\n\n for (let i = 0; i < v1Split.length || i < v2Split.length; i++) {\n // || 0 means if whatever is to the left of || is falsy, use 0 as the value instead\n const v1RevisionNum = parseInt(v1Split[i]) || 0;\n const v2RevisionNum = parseInt(v2Split[i]) || 0;\n\n if (v1RevisionNum > v2RevisionNum) {\n return 1;\n } else if (v1RevisionNum < v2RevisionNum) {\n return -1;\n }\n }\n return 0;\n}", "function compareVersion(a, b) {\r\n\t\tvar aa = a.split('.'),\r\n\t\t\tbb = b.split('.'),\r\n\t\t\tal = aa.length,\r\n\t\t\tbl = bb.length,\r\n\t\t\tlen = Math.max(al, bl),\r\n\t\t\taInt, bInt;\r\n\t\tfor (; len > 0; len--) {\r\n\t\t\taInt = parseInt(aa.shift()) || 0;\r\n\t\t\tbInt = parseInt(bb.shift()) || 0;\r\n\t\t\tif (aInt > bInt) return 1;\r\n\t\t\telse if (aInt < bInt) return -1;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "inscreaseVersion() {\n\t\tconst ret = this._changeVersion(true)\n\t\tconsole.log(`inscreaseVersion ${ret}, current ${this.currentVersion}`)\n\t\treturn ret\n\t}", "function version_check() {\r\n\t$.get(app_path_webroot+'ControlCenter/version_check.php', { },\r\n\t\tfunction(data) {\r\n\t\t\tif (data != '0') {\t\t\t\t\r\n\t\t\t\tsetTimeout(function(){ \r\n\t\t\t\t\t$('#version_check').html(data);\r\n\t\t\t\t\t$('#version_check').slideToggle(500); \r\n\t\t\t\t},500);\r\n\t\t\t}\r\n\t\t}\r\n\t);\r\n}", "async function checkUpdate(){\r\n\r\n var fileContents = Fs.readFileSync(__dirname+'/package.json');\r\n var pkg = JSON.parse(fileContents);\r\n\tpkg['name'] = PACKAGE_TO_UPDATE;\r\n\tpkg['version'] = pkg['dependencies'][PACKAGE_TO_UPDATE];\r\n\tif(isNaN(pkg['version'].substr(0,1))){\r\n\t\t//exemple: ^0.3.1\r\n\t\tpkg['version'] = pkg['version'].substr(1);\r\n\t}\r\n\r\n\tconst update = new AutoUpdate(pkg);\r\n\tupdate.on('update', function(){\r\n\t\tconsole.log('started update')\r\n\t\tif(app){\r\n\t\t\tconsole.log('[lanSupervLauncher] stopApplication');\r\n\t\t\tapp.stopApplication();\r\n\t\t\tapp = null;\r\n\t\t}\r\n\t});\r\n\tupdate.on('ready', function(){\r\n\t\tconsole.log('[lanSupervLauncher] ready (updated or not !)');\r\n\t\t//3) (Re)launch application\r\n\t\tif(app===null){\r\n\t\t\tconsole.log('[lanSupervLauncher] startApplication');\r\n\t\t\tapp = new LanSuperv();\r\n\t\t\tvar ConfigFile = __dirname + '/config.js';\r\n\t\t\tapp.startApplication(ConfigFile);\r\n\t\t\t//(initial launch or relaunch after update)\r\n\t\t}\r\n\t});\r\n\r\n}", "getVersion() {\n return this.get('pdb/meta/v1/version');\n }", "function decide(data) {\n actualVersion = data.version;\n if (actualVersion == bracketteData.version) {\n console.info(\"You have the latest version: \" + data.version);\n return Promise.reject(\"You have the latest version: \" + data.version);\n }\n if (fs.existsSync(\"../.git\")) {\n console.info(\"You have git, you should 'git pull' not run this updater.\");\n return Promise.reject(\"Please run 'git pull'\");\n }\n console.info(\"You are out of date. Updating now.\");\n downloadRelease(\n bracketteData.user,\n bracketteData.repo,\n bracketteData.outputdir,\n filterRelease,\n filterAsset\n )\n .then(function() {\n console.log(\"All done!\");\n })\n .catch(function(err) {\n console.error(err.message);\n // Assuming this worked...\n const zipname = `brackette-${actualVersion}.zip`;\n if (fs.existsSync(\"../\" + zipname)) {\n // it exists so let's go!\n console.log(\"please wait...\");\n const zip = new admzip(\"../\" + zipname);\n zip.extractAllTo(\"../\", true);\n fs.unlink(\"../\" + zipname);\n console.log(\"done\");\n } else {\n console.error(\n \"There was an error! Could not find the zip file that we need...\"\n );\n }\n });\n}", "function getVersion(){return _VERSION}", "function hasPlayerVersion(rv) {\n rv += \"\"; //Coerce number to string, if needed.\n var pv = ua.pv,\n v = rv.split(\".\");\n v[0] = toInt(v[0]);\n v[1] = toInt(v[1]) || 0; // supports short notation, e.g. \"9\" instead of \"9.0.0\"\n v[2] = toInt(v[2]) || 0;\n return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;\n }", "function checkIncoming() {\n var addressBar = window.location.href;\n var potentialBuild = addressBar.split('?');\n if (potentialBuild.length > 1 && potentialBuild[1].length > 1) {\n return potentialBuild[1];\n }\n else\n return -1;\n}" ]
[ "0.6689376", "0.6504957", "0.6478063", "0.64308894", "0.63481754", "0.6334512", "0.6219885", "0.60806215", "0.6040118", "0.6033393", "0.6004373", "0.59375024", "0.5901214", "0.588981", "0.5833234", "0.5772903", "0.57481194", "0.56661963", "0.56480545", "0.56480545", "0.5560527", "0.5526854", "0.54995364", "0.54965854", "0.5490804", "0.5470956", "0.5432357", "0.54117566", "0.53685987", "0.53093344", "0.5301628", "0.52953404", "0.52862936", "0.5272745", "0.52526706", "0.5245114", "0.5238936", "0.52251714", "0.52251154", "0.52231836", "0.52197534", "0.52197534", "0.521665", "0.52133864", "0.52055323", "0.52055323", "0.51887506", "0.51807386", "0.5170648", "0.5144824", "0.51387703", "0.51364374", "0.51357776", "0.51276654", "0.5118749", "0.51107526", "0.5094609", "0.50936264", "0.50876516", "0.5077958", "0.5072583", "0.5065285", "0.50587445", "0.5057775", "0.5047109", "0.5043922", "0.50415415", "0.50398266", "0.5038835", "0.50334513", "0.50263214", "0.502451", "0.5018286", "0.50147843", "0.5011187", "0.50017834", "0.49989706", "0.49989706", "0.49989706", "0.49989706", "0.4986299", "0.4984636", "0.49824822", "0.4978112", "0.49695483", "0.49660653", "0.49476457", "0.4934799", "0.49332687", "0.49314886", "0.49308535", "0.49143973", "0.49120164", "0.48932725", "0.48922092", "0.48871684", "0.4880733", "0.48671854", "0.48618704", "0.48590094" ]
0.54831374
25
This is the top of the component stack for our bottom navbar
function Cabinet () { return ( <div className="cabinet"> {/* Tray holds our Tack menu, will eventually hold both CreateMenu and TackMenu */} <Tray data={testData} /> </div> ) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Top() {\n const navbarStyle = { backgroundColor: ColorCode.darkBlue, color: ColorCode.background, fontWeight: 'bold' };\n const navbarItemStyle = { backgroundColor: ColorCode.darkBlue, color: ColorCode.background, fontWeight: 'bold' };\n return (\n <div>\n <Navbar style={navbarStyle}>\n <Container className=\"justify-content-center\">\n <Nav>\n <Nav.Item><Nav.Link href=\"#education\" style={navbarItemStyle}>Education</Nav.Link></Nav.Item>\n <Nav.Item><Nav.Link href=\"#papers\" style={navbarItemStyle}>Papers</Nav.Link></Nav.Item>\n <Nav.Item><Nav.Link href=\"#conferences\" style={navbarItemStyle}>Conferences and Seminars</Nav.Link></Nav.Item>\n </Nav>\n </Container>\n </Navbar>\n </div>\n );\n}", "function App() {\n return (\n <div class=\"container p-3 my-3\">\n \n <header class=\"row bg-success p-3\">\n <Componente1/> \n </header>\n\n <nav class=\"navbar navbar-expand-lg navbar-dark row bg-danger\">\n <Componente2/> \n </nav>\n\n <nav class=\"col-md bg-primaary\">\n <Componente4/> \n </nav>\n \n <nav class=\"row bg-dark p-3\">\n <Componente3/> \n </nav>\n\n \n\n </div>\n );\n}", "render() {\n return (\n <>\n <Navbar\n varient=\"dark\"\n bg={this.state.isTop ? \"dark\" : \"transparent\"}\n sticky=\"top\"\n >\n <Navbar.Brand href=\"#home\">\n <div className=\"appName\">\n <GoFlame />\n {\" GuaGAN\"}\n </div>\n </Navbar.Brand>\n </Navbar>\n </>\n );\n }", "function Top(props) {\n\t//Fetching the user profile data\n\tuseEffect(\n\t\t() => {\n\t\t\tfetch(window.base + '/user/api/profile/', { credentials: window.cred }) //fetching profile data\n\t\t\t\t.then((response) => response.json())\n\t\t\t\t.then((profileData) => props.updateProfile(profileData));\n\t\t},\n\t\t[ props ]\n\t);\n\treturn (\n\t\t<div id={styles.topBar} className=\"d-flex flex-row align-items-center col-12 pl-2 text-light\">\n\t\t\t<h1 className=\"display-3 ml-2 text-dark\" id={styles.edu} onClick={() => window.location.assign('/')}>\n\t\t\t\t<span>eduHub</span>\n\t\t\t</h1>\n\t\t\t{/* nav will not appear in the mobile view */}\n\t\t\t<Nav />\n\t\t\t<SocketStatus />\n\t\t\t<Notiification />\n\t\t\t<UserBtn />\n\t\t</div>\n\t);\n}", "onRender () {\n\t\tthis.registerComponent(App.Compontents, \"app-controls\", TopBarControls, this.$el.find(\"#topbar-container\"), { title: \"Home\" });\n }", "function TopPage() {\n return (\n <div>\n {/* <HeaderTop2/>\n <HeaderBottom2/> */}\n <Header/>\n <Search/>\n <InputRange/>\n <Drops/>\n <TopBody/>\n \n <Car4/>\n <FooterTop/>\n <FooterBottom/>\n\n </div>\n )\n}", "function App() {\n\n\n return (\n <div className=\"App\">\n <Navi></Navi>\n<Searchbar></Searchbar>\n \n <Products></Products>\n \n <Footer></Footer>\n </div>\n );\n}", "top() {\n // YOUR CODE HERE\n }", "function App() {\n const productId = 27189;\n return (\n <div className=\"App\">\n <div className=\"topBar\">\n <a id=\"imTheTop\" style={{ visibility: 'hidden' }} />\n <img className=\"headerOutline\" alt=\"logo outline\" src={outline} />\n <img className=\"headerLogo\" alt=\"Fleur de Lis\" src={logo} />\n <img className=\"headerText\" alt=\"Le Catwalk de Rowlf\" src={headerText} />\n </div>\n <ProductDetail productId={productId} />\n <QandA productId={productId} />\n <RatingsReviews productId={productId} />\n <div className=\"backToTop\">\n <Icon name=\"angle up\" />\n <a style={{ color: 'black' }} href=\"#imTheTop\">Back to Top</a>\n </div>\n <div className=\"bottomBar\">\n <img className=\"bottomLogo\" alt=\"Fleur de Lis\" src={logo} />\n <BottomBar />\n </div>\n </div>\n );\n}", "buildTopBar_() {\n dev().assert(this.container_);\n this.topBar_ = this.win.document.createElement('div');\n this.topBar_.classList.add('i-amphtml-lbv-top-bar');\n\n this.topFill_ = this.win.document.createElement('div');\n this.topFill_.classList.add('i-amphtml-lbv-top-bar-top-fill');\n this.topBar_.appendChild(this.topFill_);\n\n this.topGradient_ = this.win.document.createElement('div');\n this.topGradient_.classList.add('i-amphtml-lbv-top-gradient');\n this.topBar_.appendChild(this.topGradient_);\n\n const close = this.close_.bind(this);\n const openGallery = this.openGallery_.bind(this);\n const closeGallery = this.closeGallery_.bind(this);\n\n // TODO(aghassemi): i18n and customization. See https://git.io/v6JWu\n this.buildButton_('Close', 'amp-lbv-button-close', close);\n this.buildButton_('Gallery', 'amp-lbv-button-gallery', openGallery);\n this.buildButton_('Content', 'amp-lbv-button-slide', closeGallery);\n\n this.container_.appendChild(this.topBar_);\n }", "function Home() {\n return (\n <div className=\"App\">\n <ul>\n <li>\n <Link to=\"/\">Home</Link>\n </li>\n <li>\n <Link to=\"/play\">Play</Link>\n </li>\n </ul>\n <header className=\"App-header\">\n <div style={{ width: '80%' }}>\n <TopBarGame userDetails={['Reeve', 'Civilian']} showTimer showRole />\n <GameEnv />\n <BottomBar />\n </div>\n </header>\n </div>\n );\n}", "render() {\n return (\n <div>\n <StandardNavBar />\n <WallPostList />\n <Footer />\n </div>\n )\n }", "render() {\n return (\n <React.Fragment>\n <NavBar />\n <ApplicationViews />\n </React.Fragment>\n );\n }", "function App() {\n return (\n <div className=\"App\">\n <header className=\"App-header\">\n \n <ButtonAppBar />\n </header>\n <Main />\n {/* */}\n <footer>\n <StickyFooter />\n </footer>\n </div>\n );\n}", "get topNavigationBar() {\r\n return new NavigationNodes(this, \"topnavigationbar\");\r\n }", "function App() {\n return (\n <>\n {/* <Zoom bottom> */}\n <div className={styles.wrapperall}>\n <MyAppBar/>\n <About/>\n <Skills/>\n <Projects/>\n <Contact/>\n </div>\n {/* </Zoom> */}\n </>\n );\n}", "function App() {\n return (\n <div className=\"App\">\n <AppBar position=\"static\">\n <Toolbar>\n <Typography variant =\"h6\">\n Carshop\n </Typography>\n </Toolbar>\n </AppBar>\n <Carlist />\n \n </div>\n );\n}", "function stickyBar() {\n if (window.pageYOffset > 0) {\n navbar.classList.add(\"nav-bg-trans\");\n navChild.classList.add(\"nav-child-shrink\"); \n navbar.classList.add(\"shadow-sm\");\n toTop.classList.add(\"show-me\"); \n \n } else {\n navbar.classList.remove(\"nav-bg-trans\");\n navChild.classList.remove(\"nav-child-shrink\"); \n navbar.classList.remove(\"shadow-sm\");\n toTop.classList.remove(\"show-me\"); \n }\n }", "function Home (){\n \n return(\n <>\n {/* Main Container */}\n <div className=\"main-container\">\n {/* Pink Advertise */}\n \n <div className=\"Pink-color-img\" >\n <div className=\" inner-container \">\n <h1 className=\"red-heading\">iPhone X</h1>\n <p className=\"red-para\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy.</p>\n <Link className=\"red-more\">MORE</Link>\n <img src={Logo} className=\"rounded backimg\" alt=\"logo\"/>\n </div>\n </div>\n \n {/* Best Seller */}\n <div className=\"top-div\">\n <div className=\"sellereHead\">\n <h5 className=\"bs\">BEST SELLER</h5>\n </div>\n \n \n <div className=\"seller-dropdown\">\n <ul className=\"navbar-nav me-auto mb-2 mb-lg-0\">\n <li className=\"nav-item dropdown mac-list\">\n <Link className=\"nav-link active dropdown-toggle\" to=\"/en\" id=\"navbarDropdown\" role=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\" >MAC</Link>\n <ul className=\"dropdown-menu\" aria-labelledby=\"navbarDropdown\">\n <li><Link className=\"dropdown-item\" to=\"/en\">iPhone</Link></li>\n <li><hr className=\"dropdown-divider\" /></li> \n <li><Link className=\"dropdown-item\" to=\"/hindi\" >iPad</Link></li> \n <li><Link className=\"dropdown-item\" to=\"/spanish\" >iPod</Link></li>\n <li><Link className=\"dropdown-item\" to=\"/bengali\" >Accessories</Link></li>\n <li><Link className=\"dropdown-item\" to=\"/marathi\" >All</Link></li>\n </ul>\n </li>\n </ul>\n </div>\n \n <div className=\"nav-one\">\n <ul className=\"nav justify-content-center\">\n <li className=\"nav-item\">\n <Link className=\"nav-link active\" to=\"/all\">All</Link>\n </li>\n <li className=\"nav-item\">\n <Link className=\"nav-link\" to=\"/mac\">Mac</Link>\n </li>\n <li className=\"nav-item\">\n <Link className=\"nav-link\" to=\"/iphone\">iPhone</Link>\n </li>\n <li className=\"nav-item\">\n <Link className=\"nav-link\" to=\"/ipad\">iPad</Link>\n </li>\n <li className=\"nav-item\">\n <Link className=\"nav-link\" to=\"/ipod\">iPod</Link>\n </li>\n <li className=\"nav-item\">\n <Link className=\"nav-link\" to=\"/accessories\">Accessories</Link>\n </li>\n </ul>\n </div>\n {/* Home Cards */}\n <div className=\"card-container\">\n <div className=\"Cards\">\n <div className=\"row row-cols-1 row-cols-md-4 g-4\">\n <div className=\"col\">\n <div className=\"card h-100\">\n <div className=\"cards-label\">HOT</div>\n <div className=\"card-thumb\">\n <img src={Tumb1} className=\"card-img-top thumb\" alt=\"...\" />\n </div>\n \n <div className=\"card-body\">\n <h5 className=\"card-title thumb-title\">Apple Macbook Pro</h5>\n <div className=\"color-star\">\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star\"></i>\n </div>\n \n <table className=\"card-price-tag\">\n <tbody>\n <tr>\n <td className=\"card-price\">$499:\n <span className=\"card-price-2\"> $599</span>\n </td>\n </tr>\n </tbody>\n </table> \n </div>\n </div>\n </div>\n <div className=\"col\">\n <div className=\"card h-100\">\n <div className=\"cards-label\">HOT</div>\n <div className=\"card-thumb\"> <img src={Tumb2} className=\"card-img-top thumb\" alt=\"...\"/></div>\n \n <div className=\"card-body\">\n <h5 className=\"card-title thumb-title\">Apple Macbook Pro</h5>\n <div className=\"color-star\">\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star\"></i>\n </div>\n \n <table className=\"card-price-tag\">\n <tbody>\n <tr>\n <td className=\"card-price\">$499:\n <span className=\"card-price-2\"> $599</span>\n </td>\n </tr>\n </tbody>\n </table> \n </div>\n </div>\n </div>\n <div className=\"col\">\n <div className=\"card h-100\">\n <div className=\"cards-label\">HOT</div>\n <div className=\"card-thumb\"><img src={Tumb3} className=\"card-img-top thumb\" alt=\"...\"/></div>\n \n <div className=\"card-body\">\n <h5 className=\"card-title thumb-title\">Apple Macbook Air</h5>\n <div className=\"color-star\">\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star\"></i>\n </div>\n \n <table className=\"card-price-tag\">\n <tbody>\n <tr>\n <td className=\"card-price\">$499:\n <span className=\"card-price-2\"> $599</span>\n </td>\n </tr>\n </tbody>\n </table> \n </div>\n </div>\n </div>\n <div className=\"col\">\n <div className=\"card h-100\">\n <div className=\"cards-label\">HOT</div>\n <div className=\"card-thumb\"> <img src={Tumb4} className=\"card-img-top thumb\" alt=\"...\"/></div>\n \n <div className=\"card-body\">\n <h5 className=\"card-title thumb-title\">Apple iPhone 11</h5>\n <div className=\"color-star\">\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star\"></i>\n </div>\n \n <table className=\"card-price-tag\">\n <tbody>\n <tr>\n <td className=\"card-price\">$499:\n <span className=\"card-price-2\"> $599</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <div className=\"col\">\n <div className=\"card h-100\">\n <div className=\"cards-label\">HOT</div>\n <div className=\"card-thumb\"><img src={Tumb5} className=\"card-img-top thumb\" alt=\"...\" /></div>\n \n <div className=\"card-body\">\n <h5 className=\"card-title thumb-title\">Apple Macbook Pro</h5>\n <div className=\"color-star\">\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star\"></i>\n </div>\n \n <table className=\"card-price-tag\">\n <tbody>\n <tr>\n <td className=\"card-price\">$499:\n <span className=\"card-price-2\"> $599</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <div className=\"col\">\n <div className=\"card h-100\">\n <div className=\"cards-label\">HOT</div>\n <div className=\"card-thumb\"> <img src={Tumb6} className=\"card-img-top thumb\" alt=\"...\"/></div>\n \n <div className=\"card-body\">\n <h5 className=\"card-title thumb-title\">Apple Ipad</h5>\n <div className=\"color-star\">\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star\"></i>\n </div>\n \n <table className=\"card-price-tag\">\n <tbody>\n <tr>\n <td className=\"card-price\">$499:\n <span className=\"card-price-2\"> $599</span>\n </td>\n </tr>\n </tbody>\n </table> \n </div>\n </div>\n </div>\n <div className=\"col\">\n <div className=\"card h-100\">\n <div className=\"cards-label\">HOT</div>\n <div className=\"card-thumb\"> <img src={Tumb7} className=\"card-img-top thumb\" alt=\"...\"/></div>\n \n <div className=\"card-body\">\n <h5 className=\"card-title thumb-title\">Apple Watch 21-1</h5>\n <div className=\"color-star\">\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star\"></i>\n </div>\n \n <table className=\"card-price-tag\">\n <tbody>\n <tr>\n <td className=\"card-price\">$499:\n <span className=\"card-price-2\"> $599</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n <div className=\"col\">\n <div className=\"card h-100\">\n <div className=\"cards-label\">HOT</div>\n <div className=\"card-thumb\">\n <img src={Tumb8} className=\"card-img-top thumb\" alt=\"...\"/>\n </div>\n \n <div className=\"card-body\">\n <h5 className=\"card-title thumb-title\">Apple iPod 2A</h5>\n <div className=\"color-star\">\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star-fill\"></i>\n <i class=\"bi bi-star\"></i>\n </div>\n \n <table className=\"card-price-tag\">\n <tbody>\n <tr>\n <td className=\"card-price\">$499:\n <span className=\"card-price-2\"> $599</span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n </div>\n \n </div>\n {/* Load More */}\n <ul className=\"nav load justify-content-center\">\n <li className=\"nav-item\">\n <Link className=\"nav-link active navload\" aria-current=\"page\" to=\"/load_more\">LOAD MORE</Link>\n </li>\n </ul>\n </div>\n {/* Blue Advertise */}\n <div className=\"Blue-color-img\" >\n <div className=\"inner-container \">\n <div className=\"advertise blue1 \">\n <h1 className=\"adv-head\">iPhone 6 Plus</h1>\n <p className=\"adv-infom\">Performance and design. Taken <br/>right to the edge.</p>\n <Link className=\"nav-link link-adv-ip6\" aria-current=\"page\" to=\"/shopnow\">SHOP NOW</Link>\n </div>\n <div className=\"advertise adv-two-img blue2\">\n \n <img src={Logo1} className=\"rounded backimg1\" alt=\"logo\"/>\n </div>\n </div>\n </div>\n {/* Shipping Process */}\n <div className=\"shipping\">\n <div className=\"shipping-div\">\n <article className=\"bottom-flex3\">\n <i className=\"fas fas-icon fa-shipping-fast\"></i>\n <h5 className=\"bottom-abc\">FREE SHIPPING</h5>\n <p className=\"info-flex3\">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facilis, maxime rerum. Maxime ullam voluptatibus fuga aliquid commodi. Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, sed.</p>\n </article>\n \n <article className=\"bottom-flex3\">\n <i className=\"fas fas-icon fa-dollar-sign\"></i>\n <h5 className=\"bottom-abc\">100% REFUND</h5>\n <p className=\"info-flex3\">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facilis, maxime rerum. Maxime ullam voluptatibus fuga aliquid commodi. Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, sed.</p>\n </article>\n \n <article className=\"bottom-flex3\">\n <i className=\"fas fas-icon fa-headset\"></i>\n <h5 className=\"bottom-abc\">SUPPORT 24/7</h5>\n <p className=\"info-flex3\">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facilis, maxime rerum. Maxime ullam voluptatibus fuga aliquid commodi. Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste, sed.</p>\n </article>\n </div>\n </div>\n \n {/* Feature Product */}\n <div className=\"feapro\">\n <div className=\"fea-prod\">\n <h5 className=\"pro-header\">FEATURED PRODUCTS</h5>\n </div>\n </div>\n {/* slide images */}\n <div>\n {/* <Carousel>\n <div className=\"col\">\n <div className=\"card h-100\">\n <div className=\"cards-label\">HOT</div>\n <div className=\"card-thumb\"> <img src={Tumb2} className=\"card-img-top thumb\" alt=\"...\"/></div>\n \n <div className=\"card-body\">\n <h5 className=\"card-title thumb-title\">Apple Macbook Pro</h5>\n </div>\n </div>\n </div>\n \n </Carousel> */}\n \n </div>\n </div>\n </>\n )\n\n }", "function Header() {\n return (\n <div>\n\n\n <div class=\"topnav\">\n <a href=\"#home\">Home</a>\n <a href=\"#news\">News</a>\n <a href=\"#contact\">Contact</a>\n <a href=\"#about\">About</a>\n\n </div>\n <div class=\"bg-img\"></div>\n <h1 className=\"h1\">Clean Blog</h1>\n <h3 className=\"h3\"> A Blog Theme by Start Bootstrap</h3>\n </div>\n\n )\n}", "render() {\n return (\n <div className=\"header-container\">\n <div className=\"logo-container\">\n <Logo />\n </div>\n <div className=\"header-right-part\">\n <div className=\"header-top-container\">\n <Contact />\n <NavigationBar />\n </div>\n <div className=\"header-bottom-container\">\n <SearchBar />\n <ShoppingCart />\n </div>\n </div>\n </div>\n );\n }", "render() {\n return (\n <Provider store={store}>\n <HashRouter>\n <Container>\n <TopBar state={this.state} />\n <div>\n <Route exact path=\"/\" component={Greeting} />\n <Route exact path=\"/myCards\" component={MyCards} />\n <Route exact path=\"/ListPacks\" component={ListPacks} />\n <Route exact path=\"/cardPack1\" component={CardPack} />\n <Route exact path=\"/AuctionHouse\" component={AuctionHouse} />\n <Route exact path=\"/BuyPack\" component={BuyPack} />\n <Route exact path=\"/CreateAuction\" component={CreateAuction} />\n </div>\n </Container>\n </HashRouter>\n </Provider>\n );\n }", "render() {\n return (\n <div>\n <div>\n <nav className=\"navbar navbar-custom\">\n <div className=\"container-fluid\">\n <div className=\"navbar-header\">\n <a className=\"navbar-brand\" href=\"#\">\n SpringBoard LearningHub - one stop hub for all the learning paths\n </a>\n </div>\n </div>\n </nav>\n </div>\n <SearchBar />\n <div className=\"row\">\n <CourseList />\n <CourseDetail />\n </div>\n </div>\n );\n }", "bottom (state) {\n state.bottomReached = true\n }", "renderTopBar() {\n\t\treturn <TopBar\n\t\t\tcolor={colorsProvider.routinesMainColor}\n\t\t\tfromCreate={true}\n\t\t\thasParent={false}\n\t\t\tnameOfItem={this.state.name}\n\t\t\thasDueDate={false}\n\t\t\timportance={this.state.importance}\n\t\t\tallChildren={this.state.allPossibleChildren}\n\t\t\tcloseModal={this.props.closeModal}\n\t\t\teditName={item => {\n\t\t\t\tthis.setState({ name: item });\n\t\t\t\tthis.props.name(item);\n\t\t\t}}\n\t\t\thasImportance={true}\n\n\t\t\tsetImportanceNN={() => {\n\t\t\t\tKeyboard.dismiss()\n\t\t\t\tthis.props.setImportanceNN(1)\n\t\t\t}}\n\t\t\tsetImportanceNU={() => {\n\t\t\t\tKeyboard.dismiss()\n\t\t\t\tthis.props.setImportanceNU(2)\n\t\t\t}}\n\t\t\tsetImportanceIN={() => {\n\t\t\t\tKeyboard.dismiss()\n\t\t\t\tthis.props.setImportanceIN(3)\n\t\t\t}}\n\t\t\tsetImportanceIU={() => {\n\t\t\t\tKeyboard.dismiss()\n\t\t\t\tthis.props.setImportanceIU(4)\n\t\t\t}}\n\t\t\tselectParent={() => {\n\t\t\t\tKeyboard.dismiss();\n\t\t\t}}\n\t\t/>\n\t}", "function App() {\n return (\n <div className={css.App}>\n {//<NavBarSimple />\n }\n <NavBarForm />\n <Sidebar />\n <ContentHooksAPI />\n </div>\n );\n}", "render() {\n return (\n <div className='App'>\n <Navbar />\n </div>\n );\n }", "render() {\n return (\n <div className=\"App\">\n <NavigationBar />\n <Main />\n </div>\n );\n }", "render() {\n\t\treturn (\n\t\t\t<Navbar fixedTop >\n\t\t <Navbar.Header>\n\t\t\t\t <Navbar.Brand> \n\t\t\t\t\t\t<a href=\"/\">Romcal</a>\n\t\t\t\t </Navbar.Brand>\n\t\t\t\t</Navbar.Header>\n\t\t\t\t<Nav>\n\t\t\t\t\t<LinkContainer exact to=\"/\">\n\t\t\t\t <NavItem eventKey={1}>Home</NavItem>\n\t\t\t\t </LinkContainer>\n\t\t\t\t\t<LinkContainer exact to=\"/calendar\">\n\t\t\t\t <NavItem eventKey={2}>Calendar</NavItem>\n\t\t\t\t </LinkContainer>\n\t\t\t\t</Nav>\n\t\t\t</Navbar>\n\t\t);\n\t}", "function Header() {\n return (\n /* <header className=\"header\">\n <h1 style={styles.headingStyle}>Welcome</h1>\n </header> */\n\n\n\n <header className=\"header\">\n\n {/* Top Bar */}\n <div className=\"top_bar\">\n <div className=\"top_bar_background\" style={styles.top_bar_background}></div>\n <div className=\"top_bar_container\">\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col\">\n <div className=\"top_bar_content d-flex flex-row align-items-center justify-content-start\">\n <ul className=\"top_bar_contact_list\">\n <li>\n <i className=\"fa fa-envelope\" aria-hidden=\"true\"></i>\n <div>Email: [email protected] </div>\n </li>\n <li>\n <i className=\"fa fa-phone\" aria-hidden=\"true\"></i>\n <div>Call Us: 858.487.0811</div>\n </li>\n </ul>\n <div className=\"top_bar_social ml-auto\">\n <ul className=\"social_list\">\n <li><a href=\"https://www.facebook.com/rbcpc/\"><i className=\"fa fa-facebook\" aria-hidden=\"true\"></i></a></li>\n <li><a href=\"https://twitter.com/rbcpc/\"><i className=\"fa fa-twitter\" aria-hidden=\"true\"></i></a></li>\n <li><a href=\"https://www.instagram.com/rbcpc/\"><i className=\"fa fa-instagram\" aria-hidden=\"true\"></i></a></li>\n </ul>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n {/* Header Content */}\n <div className=\"header_container\">\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col\">\n <div className=\"header_content d-flex flex-row align-items-center justify-content-start\">\n <div className=\"logo_container\">\n <a href=\"#\">\n <div className=\"logo\"><img src=\"/images/logo.png\" alt=\"\" /></div>\n <div className=\"logo_text\">RB Community</div>\n </a>\n </div>\n <nav className=\"main_nav_contaner ml-auto\">\n <ul className=\"main_nav\">\n <li className=\"active\"><a href=\"#\">home</a></li>\n <li><a href=\"about.html\">about</a></li>\n <li><a href=\"sermons.html\">sermons</a></li>\n <li><a href=\"events.html\">events</a></li>\n <li><a href=\"blog.html\">blog</a></li>\n <li><a href=\"http://www.rbcpcpreschool.org/\">preschool</a></li>\n </ul>\n {/* <div class=\"search_button\"><i class=\"fa fa-search\" aria-hidden=\"true\"></i></div> */}\n </nav>\n\n {/* Hamburger */}\n\n <div className=\"hamburger ml-auto\">\n <i className=\"fa fa-bars\" aria-hidden=\"true\"></i>\n </div>\n\n </div>\n </div>\n </div>\n </div>\n </div>\n\n {/* Header Search Panel */}\n <div className=\"header_search_container\">\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col\">\n <div className=\"header_search_content d-flex flex-row align-items-center justify-content-end\">\n <form action=\"#\" className=\"header_search_form\">\n <input type=\"search\" className=\"search_input\" placeholder=\"Search\" required=\"required\" />\n <button className=\"header_search_button d-flex flex-column align-items-center justify-content-center\">\n <i className=\"fa fa-search\" aria-hidden=\"true\"></i>\n </button>\n </form>\n </div>\n </div>\n </div>\n </div>\n </div>\n </header>\n );\n}", "function StickyTop() {\n recalculateTabs();\n\n if($('ul.ux-tabs__dropdown-items li').length < 1){\n $('.ux-tabs__headers').parent().removeClass('col-10').css({'width':'100%'});\n $('.ux-tabs__headers').css({'display':'flex'});\n $('.ux-tabs__headers > li').css({'flex':'auto'});\n }else{\n $(\".ux-tabs__headers >li:first-of-type\").removeAttr('style');\n }\n topnavigation.classList.add(\"sticky\");\n\n }", "render() {\n return (\n <nav className=\"navbar navbarstyle navbar-static-top\">\n <div className=\"navbar-inner\">\n <div className=\"container\">\n <div className=\"navbar-header\">\n <div className=\"navbar-brand\">\n <Link to=\"/\">\n <img alt=\"uGate Icon\" src=\"./images/ugatelogo.png\"/>\n\n uGate &reg;</Link>\n </div>\n </div>\n\n <ul className=\"nav navbar-nav navbar-right\">\n <li>\n\n\n <p className=\"navbar-text\">New to uGate?</p>\n </li>\n <li>\n <Link to=\"/SignUp\">\n <span className=\"glyphicon glyphicon-user\"></span> Sign Up\n </Link>\n </li>\n </ul>\n\n </div>\n </div>\n </nav>\n );\n }", "function BottomNav({ toggleFilterDrawer, selectedTorrent, clearTorrent }) {\n // if in multi select mode then use multi select menu\n const isMultiSelect = Array.isArray(selectedTorrent);\n\n return (\n <BottomNavigationComponent>\n {isMultiSelect? (\n <BottomNavigationAction icon={<ClearAllIcon />} onClick={clearTorrent} />\n ) : (\n <BottomNavigationAction icon = {<FilterListIcon />} onClick={toggleFilterDrawer} />\n )}\n\n <BottomNavigationAction icon={null} label={<SpeedStats />} />\n <BottomNavigationAction icon={isMultiSelect ? <MultiSelectMenu /> : <BottomMenu />} />\n \n </BottomNavigationComponent>\n );\n}", "function App() {\n // const height = screen.height;\n return (\n <div className=\"homepage\">\n <Helmet>\n <title>Saket Verma</title>\n <meta name=\"description\" content=\"Saket's Homepage / Digital Resume\" />\n <meta name=\"image\" content=\"https://raw.githubusercontent.com/phoenixSaket/saketVerma/master/saketverma/src/Images/SaketVerma.jpg\" />\n <meta name=\"og:title\" content=\"Saket Verma\" />\n <meta name=\"og:description\" content=\"Saket's Homepage / Digital Resume\" />\n <meta name=\"og:image\" content=\"https://raw.githubusercontent.com/phoenixSaket/saketVerma/master/saketverma/src/Images/SaketVerma.jpg\" />\n <meta name=\"twitter:title\" content=\"Saket Verma\" />\n <meta name=\"twitter:description\" content=\"Saket's Homepage / Digital Resume\" />\n <meta name=\"twitter:image\" content=\"https://raw.githubusercontent.com/phoenixSaket/saketVerma/master/saketverma/src/Images/SaketVerma.jpg\" />\n </Helmet>\n <Container className=\"containerMain\" size=\"md\">\n <div className=\"navbar-container\">\n <Navbar collapseOnSelect expand=\"sm\">\n <div style={{ justifyContent: 'center', width: '100%', opacity: '0.9' }}>\n <div className=\"navbar-inner-container backgroundImage\">\n <Navbar.Brand href=\"#\">\n <span className=\"topNoMobile\"\n style={{\n cursor: 'pointer'\n }}\n onClick={(e) => {\n e.preventDefault();\n window.location.href = \"/saketVerma/#\";\n }}>\n Saket Verma</span>\n </Navbar.Brand>\n <div className=\"toggler-custom\">\n <Navbar.Toggle aria-controls=\"responsive-navbar-nav\" />\n {/* </div> */}\n <Navbar.Collapse className=\"justify-content-end\" id=\"responsive-navbar-nav\">\n <Nav className=\"justify-content-end \">\n <Nav.Link href=\"#content\" className=\"nav-links\">\n About Me\n </Nav.Link>\n <Nav.Link href=\"#education\" className=\"nav-links\">\n Education\n </Nav.Link>\n <Nav.Link href=\"#skills\" className=\"nav-links\">\n Skills\n </Nav.Link>\n <Nav.Link href=\"#experience\" className=\"nav-links\">\n Experience\n </Nav.Link>\n <Nav.Link href=\"#other\" className=\"nav-links\">\n Other\n </Nav.Link>\n <Nav.Link href=\"#contactMe\" className=\"nav-links\">\n Contact Me\n </Nav.Link>\n </Nav>\n </Navbar.Collapse>\n </div>\n </div>\n </div>\n </Navbar>\n </div>\n <div className=\"container-and-sidebar\">\n <div className=\"container-inner\">\n <div className=\"personal shadows\">\n <div className=\"personal-inner\">\n <img\n className=\"avatar shadows\"\n src=\"https://raw.githubusercontent.com/phoenixSaket/saketVerma/00860e73cac4feda1ff0c9e430f52aa8867e6ed6/saketverma/src/Images/photu.jpg\"\n // src={require(\"../src/Images/profile_pic.png\")}\n alt=\"my Avatar\"\n />\n <div className=\"personal-info mobile-center\">\n <div className=\"title\">\n <h1>Saket Verma</h1>\n </div>\n <div className=\"subtitle\">\n <h5>Developer | Designer</h5>\n </div>\n <div className=\"social-media\">\n <a\n href=\"https://www.facebook.com/iamsaket.verma\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <span>\n <i className=\"fa fa-facebook\" />\n </span>\n </a>\n <a\n href=\"https://www.instagram.com/saket.verma/\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <span>\n <i className=\"fa fa-instagram\" />\n </span>\n </a>\n <a\n href=\"https://www.reddit.com/user/phoenix_saket\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <span>\n <i className=\"fa fa-reddit-alien\" />\n </span>\n </a>\n <a\n href=\"https://twitter.com/phoenix_saket\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <span>\n <i className=\"fa fa-twitter\" />\n </span>\n </a>\n <a\n href=\"https://github.com/phoenixSaket\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <span>\n <i className=\"fa fa-github\" />\n </span>\n </a>\n <a\n href=\"https://www.linkedin.com/in/developer-saket-verma\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >\n <span>\n <i className=\"fa fa-linkedin\" />\n </span>\n </a>\n </div>\n <div className=\"personalContact\">\n <div className=\"personalPhone\">\n <i className=\"fa fa-phone-square\" style={{ fontSize: '18px', marginRight: '10px' }}></i>\n +91-8668692038\n </div>\n <div className=\"personalMail\">\n <i className=\"fa fa-envelope\" style={{ fontSize: '15px', marginRight: '10px' }}></i>\n [email protected]\n </div>\n <div className=\"personalMail\">\n <i className=\"fa fa-envelope\" style={{ fontSize: '15px', marginRight: '10px' }}></i>\n [email protected]\n </div>\n <div className=\"personalMail\">\n <i className=\"fa fa-envelope\" style={{ fontSize: '15px', marginRight: '10px' }}></i>\n [email protected]\n </div>\n </div>\n </div>\n </div>\n </div>\n <div id=\"content\"\n // style={{ marginTop: \"40px\" }}\n >\n <Content\n title=\"ABOUT ME\"\n subtitle=\"Hello, Saket here !\"\n content={\n [\"I am a web designer/developer focused on crafting great web experiences.\" +\n \"Designing and Coding have been my passion since the days I started working with computers.\" +\n \"I enjoy creating beautifully designed, intuitive and functional websites, softwares, live wallpapers.\",\n \"Besides this, I also have passion for gaming and mobile photography.\"]\n }\n />\n </div>\n <div id=\"education\"\n // style={{ marginTop: \"40px\" }}\n >\n <Education />\n </div>\n\n <div id=\"skills\">\n <Skills />\n </div>\n\n <div id=\"experience\"\n // style={{ marginTop: \"40px\" }}\n >\n <Experience />\n </div>\n <div id=\"other\"\n // style={{ marginTop: \"30px\" }}\n >\n <Other />\n </div>\n <div id=\"contactMe\">\n <ContactMe />\n </div>\n </div>\n {/* <div className=\"sidebar-container tabletPlus \">\n <div className=\"sidebar\">\n <div className=\"sidebar-inner\">\n <img\n className=\"avatar-mini shadows\"\n src={require(\"./Images/SaketVerma.jpg\")}\n alt=\"my Avatar\"\n />\n\n <div className=\"sidebarElement\">\n <i className=\"fa fa-info-circle\"\n style={{fontSize: '30px' , marginTop: '5px' }}\n href=\"#content\"\n ></i>\n </div>\n </div>\n </div>\n <div className=\"sidebar-bottom-triangle\" />\n </div> */}\n </div>\n </Container>\n </div>\n );\n}", "function AppBar() {\n return (\n <header>\n <div className=\"logo-container\">\n <a href=\"/\">\n <img src={logo} alt=\"Logo\" width=\"140px\" />\n </a>\n </div>\n <nav className=\"nav-links-group\">\n <li>\n <a href=\"/\" className=\"nav-link\">\n Home\n </a>\n </li>\n <li>\n <a href=\"/\" className=\"nav-link\">\n About\n </a>\n </li>\n <li>\n <a href=\"/\" className=\"nav-link\">\n Contact\n </a>\n </li>\n <li>\n <a href=\"/\" className=\"nav-link\">\n Privacy\n </a>\n </li>\n </nav>\n <div className=\"cart\">\n {/* <img src={cart} alt=\"Cart\" width=\"20px\" /> */}\n <p>Cart</p>\n </div>\n </header>\n );\n}", "function App() {\n return (\n <div className=\"App\">\n <BarNavegate />\n\n <Main />\n\n \n {/* <Home /> */}\n </div>\n );\n}", "function TopMenu() {\n return <Navbar className=\"topmenu\" expand=\"lg\">\n <Navbar.Brand className=\"Logo2\" href=\"/\" ><img src={priviaIcon} alt=\"Logo\"></img></Navbar.Brand>\n <Navbar.Toggle aria-controls=\"navbarScroll\" />\n <Navbar.Collapse id=\"navbarScroll\">\n <Nav\n className=\"ml-auto my-2 my-lg-0\"\n style={{ maxHeight: '200px' }}\n navbarScroll\n >\n <Nav.Link href=\"/\">About</Nav.Link>\n <Nav.Link href=\"/\">Product</Nav.Link>\n <Nav.Link href=\"/\">Pricing</Nav.Link>\n <Nav.Link href=\"/\">Resources</Nav.Link>\n <Nav.Link href=\"/\">Customers</Nav.Link>\n </Nav>\n </Navbar.Collapse>\n <Navbar.Collapse id=\"navbarScroll\">\n <Nav \n style={{ maxHeight: '100px' }}\n navbarScroll\n >\n <Nav.Link className=\"Login\">Login</Nav.Link>\n <Container className=\"btn_StartTrialDiv\">\n <Container className=\"btn_StartTrial\">\n <Nav.Link className=\"trialText\">Start Free Trial</Nav.Link>\n </Container>\n </Container>\n </Nav>\n </Navbar.Collapse>\n </Navbar>\n}", "function App() {\n return (\n <section className=\"App\">\n <Router>\n {/* <ScrollToTop /> */}\n <Navbar />\n <Switch>\n <Route path=\"/\" exact component={Home} />\n <Route path=\"/about\" exact component={About} />\n <Route path=\"/service\" exact component={Service} />\n </Switch>\n </Router>\n </section>\n );\n}", "getNavbarItems() {\n return null;\n }", "function App (){\n\n \n\n \n return (\n <div className=\"App\">\n <div className=\"header123\"><Header/></div>\n \n<div className=\"brightlow\">\n <div className=\"feature123\"><FeatureSection/></div>\n <div className=\"pocket123\"> <PocketSection/></div>\n <div className=\"action123\"> <ActionSection/></div>\n \n <div className=\"city123\"><CitySection/></div>\n <div className=\"footer123\"><Footer/></div>\n </div></div>\n \n );\n}", "onRender () {\n let Navigation = new NavigationView();\n App.navigationRegion.show(Navigation);\n Navigation.setItemAsActive(\"home\");\n }", "render() {\n return (<header className=\"header\" id=\"myHeader\">\n <div>\n <nav className=\"topnav\" id=\"myTopnav\">\n <ul>\n <li>\n <div className=\"dropdown\">\n <button className=\"dropbtn\">\n Handle people\n <i className=\"fa fa-caret-down\"></i>\n </button>\n <div className=\"dropdown-content\">\n <Link to={\"/employer/usersList\"}>Users List</Link>\n <Link to={\"/employer/employeeList\"}>Employee List</Link>\n <Link to={\"/employer/addEmployee\"}>Add employee</Link>\n </div>\n </div>\n </li>\n <li>\n <div className=\"dropdown\">\n <button className=\"dropbtn\">\n tests\n <i className=\"fa fa-caret-down\"></i>\n </button>\n <div className=\"dropdown-content\">\n <Link to={\"/employer/tests\"}>current tests</Link>\n <Link to={\"/employer/addTest\"}>add tests</Link>\n </div>\n </div>\n </li>\n <li>\n <div className=\"dropdown\">\n <button className=\"dropbtn\">\n transactions\n <i className=\"fa fa-caret-down\"></i>\n </button>\n <div className=\"dropdown-content\">\n <Link to={\"/employer/userTransactions\"}>user transactions</Link>\n <Link to={\"/employer/myTransactions\"}>my transactions</Link>\n\n </div>\n </div>\n </li>\n <li></li>\n <li>\n <Link to={\"/employer/charge\"}>charge credit</Link>\n </li>\n <li>\n <Link to={\"/employer/messages\"}>messages</Link>\n </li>\n <li></li>\n <li></li>\n <li onClick={() => this.props.logOut()}>\n <Link to={\"/\"}>Log Out</Link>\n </li>\n\n <li>\n <a href=\"javascript:void(0);\" className=\"icon\" onClick={this.navbarResponsive}>\n <i className=\"fa fa-bars\"></i>\n </a>\n </li>\n </ul>\n </nav>\n\n </div>\n </header>)\n }", "function App() {\n\n const background = {\n backgroundColor: \"#DCDCDC\",\n paddingBottom: '150px',\n \n\n }\n return (\n <div className=\"App\" style={background} >\n\n <Navbar \n title=\"Ambition Mapping\" \n\n />\n \n <MyStepper />\n\n\n \n </div>\n );\n}", "function NavbarWdivs(props) {\n return (\n <div className=\"fixed-bottom\">\n <div id=\"bottom-nav\" className=\"row m-0\">\n <Link\n id=\"link\"\n to=\"/\"\n className=\"col-sm-3 text-center h3 p-3 m-0 \"\n >\n <div>Home</div>\n <FontAwesomeIcon\n icon={faHome}\n size=\"2x\"\n // style={{ '--fa-primary-color': 'red' }}\n />\n </Link>\n <Link\n id=\"link\"\n to=\"/bars\"\n className=\"col-sm-3 text-center h3 p-3 m-0\"\n >\n <div>Bars</div>\n <FontAwesomeIcon\n icon={faMapMarkerAlt}\n size=\"2x\"\n // style={{ '--fa-primary-color': 'red' }}\n />\n </Link>\n <Link\n id=\"link\"\n to=\"/OrderDrinks\"\n className=\"col-sm-3 text-center h3 p-3 m-0\"\n >\n <div>Drinks</div>\n <FontAwesomeIcon\n icon={faCocktail}\n size=\"2x\"\n\n // style={{ '--fa-primary-color': 'red' }}\n />\n </Link>\n <Link\n id=\"link\"\n to=\"/admin\"\n className=\"col-sm-3 text-center h3 p-3 m-0\"\n >\n <div>Admin</div>\n <FontAwesomeIcon\n icon={faBars}\n size=\"2x\"\n\n // style={{ '--fa-primary-color': 'red' }}\n />\n </Link>\n </div>\n </div>\n );\n}", "function MAIN_NAVIGATION$static_(){ToolbarSkin.MAIN_NAVIGATION=( new ToolbarSkin(\"main-navigation\"));}", "function initNavbar() {\n const navbarContainer = document.getElementById('navbar-container');\n navbarContainer.classList.add('sticky-top');\n ReactDOM.render(\n <DataFetcher\n createFetchRequest={() => authDataFetch}\n render={renderNavbar} />,\n navbarContainer);\n}", "function NavBar(props) {\n\treturn (\n\t\t\n\t\t <div class=\"x-navbar-wrap\">\n\t\t <div class=\"x-navbar\">\n\t\t <div class=\"x-navbar-inner\">\n\t\t <div class=\"x-container max width\"> \n\t\t\t\t\t<h1 class=\"visually-hidden\">Coded.</h1>\n\t\t\t\t\t<a href=\"http://www.joincoded.com/\" class=\"x-brand img\" title=\"Code Education\">\n\t\t\t\t\t <img src=\"//www.joincoded.com/wp-content/uploads/2017/10/codedlogo.png\" alt=\"Code Education\"/>\n\t\t\t\t\t </a> \n\t\t\t\t\t<a href=\"#\" id=\"x-btn-navbar\" class=\"x-btn-navbar collapsed\" data-x-toggle=\"collapse-b\" data-x-toggleable=\"x-nav-wrap-mobile\" aria-selected=\"false\" aria-expanded=\"false\" aria-controls=\"x-widgetbar\">\n\t\t\t\t\t <i class=\"x-icon-bars\" data-x-icon=\"&#xf0c9;\"></i>\n\t\t\t\t\t <span class=\"visually-hidden\">Navigation</span>\n\t\t\t\t\t</a>\n\n\t\t\t\t\t<nav class=\"x-nav-wrap desktop\" role=\"navigation\">\n\t\t\t\t\t <ul id=\"menu-menu\" class=\"x-nav\">\n\t\t\t\t\t <li id=\"menu-item-170\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-170\">\n\t\t\t\t\t <a href=\"http://www.joincoded.com/\">\n\t\t\t\t\t <span>Home</span></a></li>\n\t\t\t\t\t<li id=\"menu-item-3874\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-3874\">\n\t\t\t\t\t<a><span>Bootcamps</span></a>\n\t\t\t\t\t<ul class=\"sub-menu\">\n\t\t\t\t\t\t<li id=\"menu-item-3907\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-3907\">\n\t\t\t\t\t\t<a href=\"http://www.joincoded.com/full-stack-bootcamp/\">\n\t\t\t\t\t\t<span>Full-Stack Bootcamp</span></a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li id=\"menu-item-3503\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-3503\">\n\t\t\t\t\t<a href=\"http://www.joincoded.com/student-stories/\">\n\t\t\t\t\t<span>Student Stories</span></a></li>\n\t\t\t\t\t<li id=\"menu-item-3965\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-3965\">\n\t\t\t\t\t<a href=\"#\">\n\t\t\t\t\t<span>Apply</span></a>\n\t\t\t\t\t<ul class=\"sub-menu\">\n\t\t\t\t\t\t<li id=\"menu-item-2191\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-2191\">\n\t\t\t\t\t\t<a href=\"http://www.joincoded.com/apply/\">\n\t\t\t\t\t\t<span>Apply for the Full-Stack Bootcamp</span></a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li id=\"menu-item-529\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-529\">\n\t\t\t\t\t<a href=\"http://www.joincoded.com/contact-us/\">\n\t\t\t\t\t<span>Contact Us</span></a></li>\n\t\t\t\t\t<li id=\"menu-item-1193\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1193\">\n\t\t\t\t\t<a href=\"http://www.joincoded.com/blog/\">\n\t\t\t\t\t<span>Blog</span></a>\n\t\t\t\t\t<ul class=\"sub-menu\">\n\t\t\t\t\t\t<li id=\"menu-item-1195\" class=\"menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1195 tax-item tax-item-71\">\n\t\t\t\t\t\t<a href=\"http://www.joincoded.com/category/news/\">\n\t\t\t\t\t\t<span>News</span></a></li>\n\t\t\t\t\t\t<li id=\"menu-item-1194\" class=\"menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1194 tax-item tax-item-69\">\n\t\t\t\t\t\t<a href=\"http://www.joincoded.com/category/the-student-experience/\">\n\t\t\t\t\t\t<span>The Student Experience</span></a></li>\n\t\t\t\t\t\t<li id=\"menu-item-1817\" class=\"menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1817 tax-item tax-item-127\">\n\t\t\t\t\t\t<a href=\"http://www.joincoded.com/category/resources/\">\n\t\t\t\t\t\t<span>Coding Resources</span></a></li>\n\t\t\t\t\t</ul>\n\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t\t</nav>\n\n\t\t\t\t\t\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\n );\n}", "function HomeScreen() {\n return (\n <div className=\"App\">\n\n <TeQuestHeader></TeQuestHeader>\n \n <MyCarousel></MyCarousel>\n\n <BoxLabelsPart></BoxLabelsPart>\n\n <CallForAction></CallForAction>\n\n <FeaturedSPs></FeaturedSPs>\n\n <NewsletterSubscribe></NewsletterSubscribe>\n\n <FooterMenuItems></FooterMenuItems>\n </div>\n );\n}", "function TopNav(props) {\n return /*#__PURE__*/react_default.a.createElement(Flex[\"a\" /* default */], TopNav_extends({\n flex: \"0 0 auto\",\n as: \"nav\",\n bg: \"primary.main\",\n flexDirection: \"row\",\n alignItems: \"center\"\n }, props));\n}", "render(){\n return (\n <div className=\"App\">\n <Navbar>\n <Route path=\"/\" exact component={HomeContainer} />\n <Route exact path=\"/tools/new\" component={AddToolContainer} />\n <Route exact path=\"/tools\" component={SavedTools} />\n <HangForm />\n <HangBoardSession />\n </Navbar>\n </div>\n )\n }", "render() {\n return (\n <div className=\"Na\" >\n <Navbar bg=\"light\" variant=\"light\" fixed=\"top\">\n <Navbar.Brand href=\"#home\">\n <img\n width={150}\n height={64}\n className=\"d-inline-block align-top\"\n src={icon}\n alt=\"Logo ICON\"/>\n\n </Navbar.Brand>\n <Nav className=\"mr-auto\">\n <Link to=\"/\"> <Nav.Link href=\"#home\">Home</Nav.Link></Link>\n\n </Nav>\n <Form inline>\n\n <Link to=\"/App\"> <Button variant=\"outline-primary\">Book Ticket</Button></Link>\n </Form>\n </Navbar>\n </div>\n );\n }", "function App() {\n return (\n <>\n <NavBar />\n <Section1 />\n <Section2 /> \n <Section3 /> \n <Faq />\n <Subscribe />\n <Footer/>\n <Attribute/>\n </>\n );\n}", "function App() {\n return (\n <>\n <CssBaseline />\n <div style={theme.root}>\n <ThemeProvider theme={theme}>\n <Router>\n {/* setting this div as relative, the clouds (absolute elements) will render accordingly */}\n {/* has hidden bc the bottom clouds has a part hidden from the document */}\n {/* https://stackoverflow.com/questions/36531708/why-can-absolutely-positioned-elements-make-areas-scrollable */}\n <div style={{ position: \"relative\", overflow: \"hidden\" }}>\n <Header></Header>\n <Clouds></Clouds>\n <Content>\n <Switch>\n <Route path=\"/\" component={Welcome}></Route>\n <Route path=\"/about\"></Route>\n <Route path=\"/documents\"></Route>\n </Switch>\n </Content>\n <Clouds place=\"bottom\"></Clouds>\n <Footer></Footer>\n </div>\n </Router>\n </ThemeProvider>\n </div>\n </>\n );\n}", "function App() {\n return (\n <main>\n <NavBar />\n <SignUpSection />\n <GithubEntreprise/>\n <GithubActions />\n <UserCompanies />\n <GithubTeams />\n <Benefits />\n <EntrepriseUses />\n <Security />\n <Host />\n <Integrations />\n <CommunitySection />\n <Statistics />\n <ContactUs />\n <Footer />\n </main>\n );\n}", "function App() {\n return (\n <div className=\"App\">\n <Navigation />\n <Styled />\n <Technologies />\n <Industries />\n <Map />\n <ContactUs />\n <Footer />\n {/* <ScrollButton /> */}\n {/* <Whoweare /> */}\n \n \n </div>\n );\n}", "render() {\n //Final Render\n return (\n <div>\n <div className=\"navbar\">\n {/* Render Navbar, passing in functions for the buttons as props */}\n <Navbar\n clearBoard={this.clearBoard}\n runAlgo={() => Nissan.algorithm(this.state, this.setState)}\n addWallMode={this.addWallMode}\n entryNodeMode={this.entryNodeMode}\n targetNodeMode={this.targetNodeMode}\n />\n </div>\n {/* Gap div to ensure navbar does not overlap main body */}\n <div className=\"gap\"></div>\n {/* Main grid container */}\n <div className=\"gridContainer\">\n <Board state={this.state} setState={this.setState} />\n </div>\n </div>\n );\n }", "function Navbar() {\n return (\n <Container className=\"nav-colors\" fluid>\n <Container>\n <nav className=\"navbar navbar-expand-lg\">\n <Link className=\"navbar-brand page-name-heading\" to=\"/\">\n Noah Miller\n </Link>\n <div>\n <ul className=\"navbar-nav\">\n <li className=\"nav-item\">\n <NavLink pathname=\"/\">\n Home\n </NavLink>\n </li>\n <li className=\"nav-item\">\n <NavLink pathname=\"/contact\">\n Contact Me\n </NavLink>\n </li>\n <li className=\"nav-item\">\n <NavLink pathname=\"/portfolio\">\n Portfolio\n </NavLink>\n </li>\n </ul>\n </div>\n </nav>\n </Container>\n </Container>\n );\n}", "function App() {\n return (\n <div style={{height: 'auto', width: 'auto', margin: 'auto'}}className=\"demo-big-content\">\n <Layout>\n <Header className=\"header-design\" title=\"Title\" scroll>\n <HeaderRow title=\"Robert's Weather Application\">\n </HeaderRow>\n <HeaderRow>\n <Navigation>\n <Link to=\"/weatherView\">Home</Link>\n <Link to=\"/Contact\">Contact</Link>\n <Link to=\"/WeatherInfoList\">WeatherInfoList</Link>\n <Link to=\"/About\">About Weather App</Link>\n </Navigation>\n \n </HeaderRow>\n </Header>\n <Drawer title=\"Title\">\n <Navigation>\n <Link to=\"/weatherView\">Home</Link>\n <Link to=\"/Contact\">Contact</Link>\n <Link to=\"/WeatherInfoList\">WeatherInfoList</Link>\n <Link to=\"/About\">About WeatherApp</Link>\n </Navigation>\n </Drawer>\n <Content>\n <div className=\"page-content\" />\n <Main />\n <Footer className=\"footer-design\" title=\"Title\" scroll>\n <p className=\"p2\"> CONNECT WITH US! </p>\n <div className=\"social-links-container\">\n <a\n href=\"https://www.youtube.com/\">\n <FontAwesomeIcon icon={faYoutube} size=\"3x\"/></a>\n <a\n href=\"https://www.facebook.com/\">\n <FontAwesomeIcon icon={faFacebook} size=\"3x\"/></a>\n <a\n href=\"https://www.twitter.com/\">\n <FontAwesomeIcon icon={faTwitter} size=\"3x\"/></a>\n <a\n href=\"https://www.Instagram.com/\">\n <FontAwesomeIcon icon={faInstagram} size=\"3x\" /></a>\n </div>\n </Footer>\n </Content> \n </Layout>\n </div>\n );\n}", "render() {\n return (\n <div>\n <HashRouter>\n <div>\n <span className=\"xyz\">xyz</span>\n <ul className=\"my-places\">\n <li><NavLink exact to=\"/\">Home</NavLink></li>\n <li><NavLink to=\"/amazingquote\">Amazing Quote</NavLink></li>\n <li><NavLink to=\"/contact\">Contact</NavLink></li>\n </ul>\n <div className=\"content\">\n <Route exact path=\"/\" component={Home}/>\n <Route path=\"/amazingquote\" component={AmazingQuote}/>\n <Route path=\"/contact\" component={Contact}/>\n </div>\n </div>\n </HashRouter>\n <Background/>\n </div>\n );\n }", "render() {\n return (\n <div>\n <header> \n <Navbar bg=\"dark\" variant=\"dark\"> \n <Nav className=\"mr-auto\">\n <Navbar.Brand href=\"/\">Xtra-Vision</Navbar.Brand> \n <Nav.Link href=\"/\"><Button variant=\"primary\">Home</Button></Nav.Link> \n </Nav> \n </Navbar> \n </header>\n </div>\n );\n }", "function App() {\n return (\n\n\n <Router>\n <div className=\"App\">\n <CustomNavBar/>\n <div>\n <main role=\"main\" className=\"container\">\n <Route exact path=\"/\" component={MainPage}/>\n <Route exact path=\"/about\" component={About}/>\n\n </main>\n\n\n </div>\n </div>\n </Router>\n )\n}", "render() {\n return (\n <section className=\"App\">\n <nav class=\"navbar navbar-light bg-light\">\n <a class=\"navbar-brand\" href=\"#\">\n <img src=\"/docs/4.0/assets/brand/bootstrap-solid.svg\" width=\"30\" height=\"30\" class=\"d-inline-block align-top\" alt=\"\" />\n Bootstrap\n </a>\n </nav>\n <div className=\"container\">\n <div className=\"row\">\n <div className=\"col-md-3\">\n <Cart />\n </div>\n <div className=\"col-md-9\">\n <Items />\n </div>\n </div>\n </div>\n </section>\n );\n }", "render() {\n return (\n <div>\n \t<div style={{background: '#292E33', height: '60px', display: 'flex', alignItems: 'center'}}>\n \t\t<ul className=\"nav\">\n \t\t\t<li className=\"nav-item\">\n \t\t\t\t<Link to=\"/\" className=\"nav-link active custom-nav\"> Home </Link>\n \t\t\t</li>\n <li className=\"nav-item\">\n <Link to=\"/hospitals\" className=\"nav-link active custom-nav\"> Hospitals </Link>\n </li>\n \t\t</ul>\n \t</div>\n </div>\n );\n }", "function Top() {\n return (\n // <BackToTop\n // showOnScrollUp\n // showAt={100}\n // speed={1500}\n // easing=\"easeInOutQuint\"\n // >\n // <span>scroll up</span>\n // </BackToTop>\n <div>\n \n </div>\n );\n}", "function App() {\n return (\n <div className=\"App\">\n <Router>\n {/* <TopBar /> */}\n <div className=\"app-layout\">\n <Switch>\n <Route path=\"/\" exact>\n <LoginScreen />\n </Route>\n <Route path=\"/signup\">\n <SignUpScreen />\n </Route>\n <Route path=\"/dashboard\" exact>\n <DashboardScreen />\n </Route>\n </Switch>\n </div>\n </Router>\n </div>\n );\n}", "render() {\n return (\n <Router onExitApp={this.onExitApp}>\n <Stack key=\"root\">\n <Scene key=\"splash\" component={Splash} hideNavBar={true} initial />\n <Scene key=\"login\" component={Login} hideNavBar={true} />\n <Scene\n drawer\n overlay\n hideNavBar\n key=\"drawer\"\n contentComponent={SideMenu}\n drawerWidth={300}>\n <Scene overlay hideNavBar panHandlers={null}>\n <Scene overlay key=\"home\" component={Home} hideNavBar={true} />\n </Scene>\n </Scene>\n </Stack>\n </Router>\n );\n }", "render() {\n\n return (\n <div>\n <Navbar />\n \n\n <Footer />\n </div>\n )\n }", "render() {\n \t\treturn(\n \t\t\t<nav className=\"navbar navbar-inverse\">\n \t\t\t\t<div className=\"container\">\n \t\t\t\t\t<Link className=\"navbar-brand\" to=\"/\">Quotes</Link>\n \t\t\t\t\t<ul className=\"nav navbar-nav\">\n \t\t\t\t\t<li><Link to=\"/\">Home</Link></li>\n \t\t\t\t\t<li><Link to=\"/favorites\">Favorites</Link></li> \t\t\t\t\t\n \t\t\t\t\t</ul> \t\t\t\t\t \n \t\t\t\t</div>\n \t\t\t</nav>\n \t\t\t)\n }", "render() {\r\n return (\r\n <Navbar brand='Tinda' className=\"pink\" right>\r\n <NavItem>\r\n {this.props.children}\r\n </NavItem>\r\n <NavItem>\r\n <Link to=\"/user\">Viewer</Link>\r\n </NavItem>\r\n <NavItem>\r\n <Link to=\"/\">Admin</Link>\r\n </NavItem>\r\n </Navbar>\r\n );\r\n }", "function bottomNav() {\n var getBottomNav = document.getElementById('bottomNav');\n\n if (getBottomNav) {\n var animateIn = 'mobile container-fluid navbar-fixed-bottom bg-gr-1 bs-1 fadeIn animated';\n var animateOut = 'mobile container-fluid navbar-fixed-bottom bg-gr-1 bs-1 fadeOut animated';\n\n if (window.pageYOffset > (0.8 * window.innerHeight)) {\n getBottomNav.setAttribute('class', animateIn);\n } else if (window.pageYOffset < (0.8 * window.innerHeight)) {\n getBottomNav.setAttribute('class', animateOut);\n }\n }\n}", "render() {\n return (\n <div className=\"App\">\n <nav className=\"top-nav\">\n <div className=\"nav-1\">\n <a href='#'>How It Works</a>\n <a href='#'>Browse Projects</a>\n </div>\n <div className='logo-holder'>\n <img src={\"./assets/Wethos_LogoAssets/Wethos_JustlogoPurple.png\"}/>\n </div>\n <div className=\"nav-2\">\n <a href='#'>I'm A Freelancer</a>\n <a href='#'>Log In/Sign Up</a>\n </div>\n </nav>\n <div className=\"spacer\"></div>\n <div className=\"content\">\n <div className=\"content-zero-text\">\n <h1>Say goodbye to RFP's</h1>\n <p>Starthatching is the first freelance platform built specifically for nonprofits and socially conscous businesses, allowing you to find, source, and hire individual contractors that believe in your mission.</p>\n <Button text={\"Get Started\"}/>\n </div>\n <img src={\"./assets/bgimages/Changetheword.png\"} alt=\"Change the world\"/>\n </div>\n <div className=\"content-2\">\n <nav className=\"slider-nav\">\n <div className={this.state.view === 0 ? 'selected' : 'not-selected'} onClick={this.changeView0}>Overview<hr/></div>\n <div className={this.state.view === 1 ? 'selected' : 'not-selected'} onClick={this.changeView1}>Design<hr/></div>\n <div className={this.state.view === 2 ? 'selected' : 'not-selected'} onClick={this.changeView2}>Development<hr/></div>\n <div className={this.state.view === 3 ? 'selected' : 'not-selected'} onClick={this.changeView3}>Planning<hr/></div>\n <div className={this.state.view === 4 ? 'selected' : 'not-selected'} onClick={this.changeView4}>Production<hr/></div>\n </nav>\n <ViewSlider\n renderView={this.renderView}\n numViews={5}\n activeView={this.state.view}\n animateHeight\n />\n <div className=\"whitebar\">\n <div className={this.state.view === 0 ? 'c-selected' : 'c-not-selected'} onClick={this.changeView0}></div>\n <div className={this.state.view === 1 ? 'c-selected' : 'c-not-selected'} onClick={this.changeView1}></div>\n <div className={this.state.view === 2 ? 'c-selected' : 'c-not-selected'} onClick={this.changeView2}></div>\n <div className={this.state.view === 3 ? 'c-selected' : 'c-not-selected'} onClick={this.changeView3}></div>\n <div className={this.state.view === 4 ? 'c-selected' : 'c-not-selected'} onClick={this.changeView4}></div>\n </div>\n </div>\n\n <div className=\"content-3\">\n <h2>Free to sign up,</h2>\n <h2>free to post projects</h2>\n <p className=\"main-p\">We don't have any upfront or monthly fees, all you have to worry about is paying your freelancer. Speaking of which, how much do you even pay a freelancer anyway? Our unique pricing suggestion engine helps you set fair rates you can afford.</p>\n <Button text={\"Browse Projects\"} black={true}/>\n <div className='3-steps'>\n <div>\n <h3>1. SIGN UP</h3>\n <p>Create a profile that highlights your organization's mission.</p>\n <h3>2. POST PROJECTS IN MINUTES</h3>\n <p>Create a project posting in less time that it takes for you to draw up that RFP and send it out over email.</p>\n <h3>3. FREELANCERS APPLY TO YOU</h3>\n <p>We match based on your cause and the skills you need. Every time a passionate freelancer applies to your project you’ll receive an email alert.</p>\n\n </div>\n <div className=\"laptop\">\n <img src={\"https://wethos.co/img/signup.png\"} alt=\"image of wethos website\"/>\n </div>\n </div>\n </div>\n\n <div className=\"content-4\">\n <div className=\"content-4-text\">\n <h1>Near or far, we've got you covered</h1>\n <p>Small nonprofit in Michigan? Local no-kill shelter in Kentucky? You can work with some of the best and brightest professionals out of the biggest cities in the country.</p>\n <Button text={\"Post a Project\"}/>\n </div>\n <div className=\"freelancers-bios\">\n <div className=\"single-fl\">\n <div>\n <p><span>NAME: </span>Name One</p>\n <p><span>SKILL: </span>Skill and experience</p>\n <p><span>CAUSES: </span>First cause, second cause, third cause, fourth cause, fifth cause, sixth cause, sevent cause, eight cause.</p>\n <hr/>\n </div>\n <img src={\"https://media-exp1.licdn.com/mpr/mpr/shrinknp_400_400/AAEAAQAAAAAAAArpAAAAJDU0OTllNGI0LThjYmMtNDA4Yi1iMWM2LTE2MjUzZjI4NTBhNQ.jpg\"} alt=\"freelance 1\"/>\n </div>\n <div className=\"single-fl\">\n <div>\n <p><span>NAME: </span>Name Two</p>\n <p><span>SKILL: </span>Skill and experience</p>\n <p><span>CAUSES: </span>First cause, second cause, third cause, fourth cause, fifth cause, sixth cause, sevent cause, eight cause.</p>\n <hr/>\n </div>\n <img src={\"https://media-exp1.licdn.com/mpr/mpr/shrinknp_400_400/AAEAAQAAAAAAAArpAAAAJDU0OTllNGI0LThjYmMtNDA4Yi1iMWM2LTE2MjUzZjI4NTBhNQ.jpg\"} alt=\"freelance 1\"/>\n </div>\n <div className=\"single-fl\">\n <div>\n <p><span>NAME: </span>Name Three</p>\n <p><span>SKILL: </span>Skill and experience</p>\n <p><span>CAUSES: </span>First cause, second cause, third cause, fourth cause, fifth cause, sixth cause, sevent cause, eight cause.</p>\n <hr/>\n </div>\n <img src={\"https://media-exp1.licdn.com/mpr/mpr/shrinknp_400_400/AAEAAQAAAAAAAArpAAAAJDU0OTllNGI0LThjYmMtNDA4Yi1iMWM2LTE2MjUzZjI4NTBhNQ.jpg\"} alt=\"freelance 1\"/>\n </div>\n </div>\n <img src={\"./assets/bgimages/worldchanging.png\"} alt=\"World from above\"/>\n </div>\n <div className=\"content-5\">\n <h2>Trusted by nonprofits big and small</h2>\n <p>No matter your size or cause, we'll find you freelancers who fit your budget and mission, because it's OUR mission to get you the help you need to keep changing the world.</p>\n <div>\n <div>\n <img className='diffsize' src={\"https://wethos.co/img/rb.png\"} alt=\"rb\" />\n </div>\n <div>\n <img src={\"https://wethos.co/img/project-orphans.png\"} alt=\"project-orphans\" />\n <img className='tallsize' src={\"https://wethos.co/img/common-cause.png\"} alt=\"common-cause\" />\n </div>\n <div>\n <img src={\"https://wethos.co/img/two-blind-brothers.png\"} alt=\"two-blind-brothers\" />\n <img className='diffsize' src={\"https://wethos.co/img/human-rights-watch.png\"} alt=\"human-rights-watch\" />\n </div>\n <div>\n <img className='diffsize' src={\"https://wethos.co/img/jed.png\"} alt=\"jed\" />\n <img className='tallsize' src={\"https://wethos.co/img/nastad.png\"} alt=\"nastad\" />\n </div>\n <div>\n <img className='tallsize' src={\"https://wethos.co/img/her-agenda.png\"} alt=\"rb\" />\n </div>\n </div>\n </div>\n <div className=\"content-6\">\n <h2>Ready to ditch that RFP?</h2>\n <p>Give us a try, you're legally protected, there's no fee for posting a project and not going through with it, and if you receive work you aren't happy with, you're not obligated to pay.</p>\n <form>\n <input placeholder='Organization Name'/>\n <input placeholder='Website URL'/>\n <input placeholder='Email'/>\n <input placeholder='Password'/>\n </form>\n <Button text={\"Sign Up\"}/>\n </div>\n <div className='footer-container'><footer>\n <div>\n <h6>Please Help</h6>\n <p>FAQ Download</p>\n <p>Briefing Template</p>\n <p>Project Timeline Template</p>\n </div>\n <div>\n <h6>Things Lawyers Love</h6>\n <p>Terms & Conditions</p>\n <p>Privacy Policy</p>\n </div>\n <div>\n <h6>Who Are These People</h6>\n <p>Meet The Team</p>\n <p>Blog</p>\n </div>\n <div>\n <h6>Can I Have Yo Number?</h6>\n <p>[email protected]</p>\n <p>400 W. 20th, Suite 2S</p>\n <p>New York, NY 10011</p>\n <p>315.345.3957</p>\n </div>\n <div>\n <h6 className='footer-social'>Whatever you do, don't follow us</h6>\n <div>\n <div><i className=\"fa fa-facebook\"></i></div>\n <div><i className=\"fa fa-linkedin\"></i></div>\n <div><i className=\"fa fa-twitter\"></i></div>\n <div><i className=\"fa fa-instagram\"></i></div>\n </div>\n <p></p>\n </div>\n </footer></div>\n </div>\n );\n }", "function HomeBottomTabs() {\n return (\n <Tab.Navigator\n //customize the bottom tabs using the customTabBarStyle\n tabBarOptions={customTabBarStyle}\n >\n <Tab.Screen\n name=\"Classes\"\n //make this tab go to the classes screen\n component={ClassesStackScreen}\n options={{\n //make the icon for this tab a scholar's cap\n tabBarIcon: ({ color, size }) => (\n <Ionicons name=\"school-outline\" size={size} color={color} />\n ),\n }}\n />\n <Tab.Screen\n name=\"Notes\"\n //make this tab go to the library screen\n component={LibraryStackScreen}\n options={{\n //make the icon for this tab a notes icon\n tabBarIcon: ({ color, size }) => (\n <SimpleLineIcons name=\"note\" size={size} color={color} />\n ),\n }}\n />\n <Tab.Screen\n name=\"Folders\"\n //make this tab go to the folders screen\n component={FoldersStackScreen}\n options={{\n //make the icon for this tab a folder\n tabBarIcon: ({ color, size }) => (\n <AntDesign name=\"folder1\" size={size} color={color} />\n ),\n }}\n />\n <Tab.Screen\n name=\"Planner\"\n //make this tab go to the planner screen\n component={PlannerStackScreen}\n options={{\n //make the icon for this tab a calendar\n tabBarIcon: ({ color, size }) => (\n <FontAwesome5 name=\"calendar-check\" size={size} color={color} />\n ),\n }}\n />\n </Tab.Navigator>\n );\n}", "function Navbar() {\n return (\n <div className='Navbar' style={{position:'relative', zIndex:6}}>\n <nav className=\"navbar navbar-expand-lg navbar-dark\" style={{backgroundColor:'#171717'}}>\n <Link className=\"navbar-brand\" to=\"/main\">SOPHIA JUNG</Link>\n <button className=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarSupportedContent\" aria-controls=\"navbarSupportedContent\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">\n <span className=\"navbar-toggler-icon\"></span>\n </button>\n\n <div className=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">\n <ul className=\"navbar-nav ml-auto\">\n <li className=\"nav-item active\">\n <HashLink className=\"nav-link\" to=\"/main#about-me\">About <span className=\"sr-only\">(current)</span></HashLink>\n </li>\n <li className=\"nav-item\">\n <HashLink className=\"nav-link\" to=\"/main#portfolio-content\">Portfolio</HashLink>\n </li>\n <li className=\"nav-item\">\n <a href={Resume} alt=\"resume\" style={{margin:0,color:'white'}}target=\"blank\"><p style={{margin:0,paddingTop:'0.5rem'}}>Resume</p></a>\n </li>\n {/* <li className=\"nav-item\">\n <Link className=\"nav-link\" to=\"#\">Contact</Link>\n </li> */}\n <li className=\"nav-item\">\n <Socials/>\n </li>\n </ul>\n </div>\n </nav>\n </div>\n )\n}", "function Navbar() {\n return (\n <nav className=\"navbar navbar-expand-lg navbar-dark navbar-custom\">\n <div id=\"top-left\"></div>\n <div id=\"top-right\"></div>\n {/* <Link to={\"/\"}>\n <img\n src={`${process.env.PUBLIC_URL}/images/without_bg.png`}\n width=\"100px\"\n height=\"100px\"\n className=\"d-inline-block align-top\"\n alt=\"open book logo\"\n />\n </Link>\n <Link className=\"brandHeader\" to={\"/\"}>\n <h1>Stories Told</h1>\n </Link> */}\n <button\n className=\"navbar-toggler\"\n type=\"button\"\n data-toggle=\"collapse\"\n data-target=\"#navbarSupportedContent\"\n aria-controls=\"navbarSupportedContent\"\n aria-expanded=\"false\"\n aria-label=\"Toggle navigation\"\n >\n <span className=\"navbar-toggler-icon\"></span>\n </button>\n <div className=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">\n <ul className=\"navbar-nav ml-auto mt-2 mt-lg-0\">\n <li className=\"nav-item\">\n <Link\n to=\"/\"\n className={\n window.location.pathname === \"/ \"\n ? \"nav-link active\"\n : \"nav-link\"\n }\n >\n Home\n </Link>\n </li>\n {/* <li className=\"nav-item\">\n <Link\n to=\"/Library\"\n className={\n window.location.pathname === \"/Library\"\n ? \"nav-link active\"\n : \"nav-link\"\n }\n >\n Library\n </Link>\n </li> */}\n <li className=\"nav-item\">\n <Link\n to=\"/GettingStarted\"\n className={\n window.location.pathname === \"/GettingStarted\"\n ? \"nav-link active\"\n : \"nav-link\"\n }\n >\n Getting Started\n </Link>\n </li>\n {/* <li className=\"nav-item\">\n <Link\n to=\"/Entry\"\n className={\n window.location.pathname === \"/Entry\"\n ? \"nav-link active\"\n : \"nav-link\"\n }\n >\n Signup\n </Link>\n </li> */}\n <li className=\"nav-item\">\n <Link\n to=\"/About\"\n className={\n window.location.pathname === \"/About\"\n ? \"nav-link active\"\n : \"nav-link\"\n }\n >\n About\n </Link>\n </li>\n {/* THIS IS THE SHOPPING CART ICON*/}\n {/* <li className=\"nav-item\">\n <Link\n to=\"/ShoppingCart\"\n className={\n window.location.pathname === \"/ShoppingCart\"\n ? \"nav-link active\"\n : \"nav-link\"\n }\n >\n <span className=\"fas fa-shopping-cart\"></span>\n </Link>\n </li> */}\n </ul>\n </div>\n </nav>\n );\n}", "function App() {\n return (\n <div className=\"App\">\n <header className=\"main_menu home_menu\">\n <Menu />\n <Team />\n </header>\n </div>\n );\n}", "render() {\n return (\n <div id=\"navMenu\" className=\"o-navbar\">\n <NavList />\n\n <Search />\n </div>\n )\n }", "render() {\n return (\n <div className=\"Menu\">\n <nav>\n <ul>\n <li><a href=\"#home\">Home</a></li>\n <li><a href=\"#services\">Services</a></li>\n <li><a href=\"#innovation\">Innovation</a></li>\n <li><a href=\"#guestbook\">Guestbook</a></li>\n </ul>\n </nav>\n </div>\n );\n }", "function App() {\n return (\n <div className=\"App container\">\n <Slider />\n <Header />\n {/* <AboutUs />\n <Popular />\n <PizzaBuilder />\n <Testimonial />\n <MobileApp />\n <BlogPosts />\n <Contacts />\n <Footer /> */}\n\n </div>\n );\n}", "render(){ \n return (\n <section className=\"navigation schoger-border is-transparent\">\n <nav className=\"navbar is-white\">\n\n <div className=\"navbar-brand\" >\n <Link to='/' className=\"navbar-item\">\n <img src={logo} alt=\"intelliSound Logo\" height=\"60\"/>\n </Link>\n\n <div className=\"navbar-burger burger is-white\"\n data-target= \"Options\"\n onClick={(event) => this.handleToggleHamNav(event)} >\n <span></span>\n <span></span>\n <span></span>\n </div>\n </div>\n\n <div className=\"navbar-menu\" id='navbar-menu-id'>\n <div className=\"navbar-start\"></div>\n\n <div className=\"navbar-end\" id=\"Options\">\n <Link to=\"/\" className=\"navbar-item has-text-centered\">Home</Link>\n <Link to=\"/about\" className=\"navbar-item has-text-centered\">About Us</Link>\n\n </div>\n </div>\n\n <div className=\"navbar-item\"></div>\n\n </nav>\n </section>);\n }", "onEnter() {\n //console.info('Enter :: ', this.id);\n\n //ResizeManager.bind( this.id, this.resize );\n\n // get the view\n for(let container of Tools.arrayify( document.querySelectorAll('.barba-container') ) ) {\n\n if( container.getAttribute('data-namespace') === this.id ) {\n\n this.view = container;\n document.title = this.view.getAttribute('data-title');\n //$('header .breadcrumbs').html($(this.view).find('.breadcrumbs__mobile ul').html());\n }\n }\n // Custom code should be added after super.\n\n\n\n\n }", "render() {\n const { classes, theme } = this.props;\n const anchor = theme.direction === 'rtl' ? 'right' : 'left';\n return (\n <AppBar position=\"fixed\" color=\"secondary\">\n <Toolbar>\n {/* Left side */}\n\n <IconButton onClick={this.onToggleSidebar}>\n <SvgDehaze color=\"primary\" style={{ cursor: 'pointer' }} />\n </IconButton>\n {/* Header title */}\n <Typography\n variant=\"h6\"\n color=\"primary\"\n style={{ marginLeft: '15px' }}\n >\n {config.settings.appName}\n </Typography>\n <div className=\"homeHeader__title-root\">\n <Hidden smDown>\n <div\n className={classNames({\n 'homeHeader__title-left': anchor === 'left',\n 'homeHeader__title-right': anchor === 'right',\n })}\n >\n Home\n </div>\n </Hidden>\n </div>\n\n {/* Notification */}\n <div className=\"homeHeader__right\">\n {'this.props.notifyCount' > 0 ? (\n <Tooltip title=\"header.notificationTooltip\">\n <IconButton onClick={this.handleNotifyTouchTap}>\n <div className=\"homeHeader__notify\">\n <div className=\"title\">notifyCount</div>\n </div>\n </IconButton>\n </Tooltip>\n ) : (\n <Tooltip title=\"header.notificationTooltip\">\n <IconButton onClick={this.handleNotifyTouchTap}>\n <NotificationsIcon\n style={{ color: theme.palette.common.white }}\n />\n </IconButton>\n </Tooltip>\n )}\n <Notify\n open={this.state.openNotifyMenu}\n anchorEl={this.state.anchorEl}\n onRequestClose={this.handleCloseNotify}\n />\n\n {/* User avatar */}\n <UserAvatarComponent\n onClick={this.handleAvatarTouchTap}\n fullName=\"fullname\"\n fileName={null}\n size={32}\n style={this.styles.avatarStyle}\n />\n\n <Menu\n open={this.state.openAvatarMenu}\n anchorEl={this.state.anchorEl}\n anchorOrigin={{\n vertical: 'top',\n horizontal: 'right',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'right',\n }}\n onClose={this.handleRequestClose}\n >\n <MenuItem\n style={{\n backgroundColor: 'white',\n color: blue[500],\n fontSize: '14px',\n }}\n >\n {' '}\n {'header.myAccount'}{' '}\n </MenuItem>\n <MenuItem\n style={{ fontSize: '14px' }}\n onClick={this.handleLogout}\n >\n {' '}\n {'header.logout'}{' '}\n </MenuItem>\n </Menu>\n </div>\n </Toolbar>\n </AppBar>\n );\n }", "function resetToTop() {\n navStack = [navStack[0]];\n updatePaths();\n}", "function App() {\n return (\n <div className=\"App\">\n <NavBar />\n <Routes />\n <Footer />\n </div>\n );\n}", "function ExamplesNavbar() {\n const [navbarColor, setNavbarColor] = React.useState(\"navbar-transparent\");\n const [navbarCollapse, setNavbarCollapse] = React.useState(false);\n\n const toggleNavbarCollapse = () => {\n setNavbarCollapse(!navbarCollapse);\n document.documentElement.classList.toggle(\"nav-open\");\n };\n\n React.useEffect(() => {\n const updateNavbarColor = () => {\n if (\n document.documentElement.scrollTop > 299 ||\n document.body.scrollTop > 299\n ) {\n setNavbarColor(\"\");\n } else if (\n document.documentElement.scrollTop < 300 ||\n document.body.scrollTop < 300\n ) {\n setNavbarColor(\"navbar-transparent\");\n }\n };\n\n window.addEventListener(\"scroll\", updateNavbarColor);\n\n return function cleanup() {\n window.removeEventListener(\"scroll\", updateNavbarColor);\n };\n });\n const handleEvent=()=>{\n window.scrollTo(0,0);\n }\n const handleCategory=()=>{\n \n\n window.scrollTo(0,window.innerHeight*1.35);\n }\n return (\n <Navbar\n className={classnames(\"fixed-top\", navbarColor)}\n color-on-scroll=\"300\"\n expand=\"lg\"\n >\n <Container>\n <div className=\"navbar-translate\">\n <NavbarBrand\n data-placement=\"bottom\"\n to=\"/index\"\n title=\"Company name\"\n tag={Link}\n >\n {/* <img src={require(\"assets/img/logo/full.png\")} /> */}\n BITS & BYTES\n </NavbarBrand>\n <button\n aria-expanded={navbarCollapse}\n className={classnames(\"navbar-toggler navbar-toggler\", {\n toggled: navbarCollapse,\n })}\n onClick={toggleNavbarCollapse}\n >\n <span className=\"navbar-toggler-bar bar1\" />\n <span className=\"navbar-toggler-bar bar2\" />\n <span className=\"navbar-toggler-bar bar3\" />\n </button>\n </div>\n <Collapse\n className=\"justify-content-end\"\n navbar\n isOpen={navbarCollapse}\n expand={true}\n >\n <Nav navbar>\n <NavItem >\n <NavLink to=\"/index\" tag={Link} onClick={handleEvent}>\n <i className=\"fa fa-home\" /> Home\n </NavLink>\n </NavItem>\n \n\n <NavItem>\n <NavLink\n to=\"/index\"\n tag={Link}\n onClick={handleCategory}\n >\n <i className=\"fa fa-list-alt\" />\n Categories\n </NavLink>\n </NavItem>\n\n\n <NavItem>\n <NavLink\n data-placement=\"bottom\"\n href=\"/magazine\"\n data-toggle=\"tooltip\" \n title=\"Watch our Latest Magazine\"\n\n >\n \n <i className=\"fa fa-book\" />\n Our Magazine\n </NavLink>\n </NavItem>\n\n\n\n <NavItem >\n <NavLink\n data-placement=\"bottom\"\n href=\"https://docs.google.com/forms/d/e/1FAIpQLScvhFtDIx27k8bQgSjTeDOjpwA0Y5fHFWitrcftHo4fU-TLEg/viewform\"\n data-toggle=\"tooltip\" \n title=\"Buy Now Our Subscription to see Exclusive Magazine\"\n target = \"_blank\"\n\n >\n <i className=\"fa fa-shopping-cart\" />\n Subscribe\n </NavLink>\n </NavItem>\n\n\n\n </Nav>\n </Collapse>\n </Container>\n </Navbar>\n );\n}", "function Navbar() {\n return (\n<div>\n<ul className=\"nav justify-content-center fixed-top\">\n <li className=\"nav-item\">\n <h3>Clicky Game </h3>\n </li>\n <li className=\"nav-item\">\n <p> You Guessed!</p>\n </li>\n <li className=\"nav-item\">\n <p> Score: | Top Score: </p>\n </li>\n</ul>\n\n<header>\n <div className=\"header-text\">\n<h1>Clicky Game!</h1>\n<h4>Click on an image to earn points, but don't click on any more than once!</h4>\n</div>\n</header>\n\n</div>\n );\n}", "function App() {\n return (\n <div className=\"App\">\n <ScrollToTop>\n <Switch>\n <Route exact path=\"/\">\n <Home />\n </Route>\n <Route path=\"/about\">\n <About />\n </Route>\n <Route path=\"/contact\">\n <Contact />\n </Route>\n <Route path=\"/dev\">\n <Dev />\n </Route>\n <Route path=\"/dev/resume/:type\">\n <Resume />\n </Route>\n <Route path=\"/dev/portfolio/:type\">\n <Portfolio />\n </Route>\n <Route path=\"/theater\">\n <Theater />\n </Route>\n <Route path=\"/theater/resume/:type\">\n <Resume />\n </Route>\n <Route path=\"/theater/portfolio/:type\">\n <Portfolio />\n </Route>\n {/* <Route path=\"/other\">\n <OtherProjects />\n </Route> */}\n </Switch>\n </ScrollToTop>\n </div>\n );\n}", "function App() {\n return (\n <div className=\"Pink-App\" >\n <Container>\n <Router />\n {/* <Header /> */}\n \n </Container>\n </div>\n );\n}", "function Navbar() {\n return (\n <div style={styles.navApp} className=\"navApp\">\n <nav className=\"navbar\">\n <div className=\"col-md-1\"></div>\n <div className=\"col-md-3\">\n <span style={styles.heading} className=\"navbar-brand mb-0 h1\">Brian Cardines</span>\n </div>\n <div className=\"col-md-3\">\n </div>\n\n <div className=\"col-md-1\">\n <button type=\"button\" class=\"btn btn-success\">\n <Link to=\"/About\" style={styles.whiteFont}>About Me</Link>\n </button>\n </div>\n\n <div className=\"col-md-1\">\n <button type=\"button\" class=\"btn btn-danger\">\n <Link to=\"/Portfolio\" style={styles.whiteFont}>Portfolio</Link>\n </button>\n </div>\n\n <div className=\"col-md-1\">\n <button type=\"button\" class=\"btn btn-dark\">\n <Link to=\"/Contact\" style={styles.whiteFont}>Contact</Link>\n </button>\n </div>\n\n <div className=\"col-md-1\"></div>\n </nav>\n\n </div>\n );\n}", "render() {\n return (\n <div>\n <ul className=\"navbar-nav mr-auto\">\n <li className=\"navbar-item\">\n <Button variant=\"contained\" color=\"primary\" href=\"/register\">Register</Button>\n </li>\n <br></br>\n <li className=\"navbar-item\">\n <Button variant=\"contained\" color=\"secondary\" href=\"/login\">Login</Button>\n </li> \n </ul>\n \n </div>\n )\n }", "function App() {\n return (\n <div className=\"container\">\n <Header logo={logo} />\n <MobileNav />\n <Main data={data} />\n <Footer logo={logo} />\n </div>\n );\n}", "renderHomeLinks() {\n return (\n <div className='navContents'>\n {TokenServices.hasAuthToken() && <Nickname />}\n <div role=\"navigation\" className=\"burgerIcon\" id=\"burger\" onClick={this.burgerClick}> &#9776; </div>\n <ul aria-live=\"polite\" className=\"links null\" id=\"links\" onClick={this.burgerClick}>\n <li><Link to='/contacts'>Contacts</Link></li>\n <li><Link to='/alerts'>My Alerts</Link></li>\n <li><Link to='/delete-account'>Settings</Link></li>\n <li><Link onClick={this.signOut} to='/auth/login' >Log Out</Link></li>\n </ul>\n </div>\n )\n }", "function App() {\n return (\n <Provider store={store} >\n <div className=\"App\">\n\n {/* Always shows a header, even in smaller screens. */}\n <div className=\"header\" style={{ height: '750px', position: 'relative' }}>\n <Layout fixedHeader>\n <Header className=\"header-colors\" title={<span><strong>The Food Rating App</strong></span>} scroll>\n <Navigation>\n <Link to=\"/login\">Login</Link>\n <Link to=\"/contect\">Contect</Link>\n\n </Navigation>\n </Header>\n <Drawer title=\"Title\" style={{ height: '200px' }}>\n <Navigation>\n <Link to=\"/login\">Login</Link>\n <Link to=\"/contect\">Contect</Link>\n\n </Navigation>\n </Drawer>\n <Content>\n <div className=\"page-content\" />\n <Main />\n\n {/* <Footers className=\"footer-setting\"/> */}\n\n </Content>\n </Layout>\n </div>\n\n\n\n </div>\n </Provider>\n );\n}", "function App() {\n return (\n <div className=\"App container\">\n <BrowserRouter>\n <NavBar />\n <Routes />\n </BrowserRouter>\n </div>\n );\n}", "function HomeNavbar() {\n _s();\n\n const {\n currentUser,\n logout\n } = Object(_authentication_context_AuthContext__WEBPACK_IMPORTED_MODULE_7__[\"useAuth\"])();\n const history = Object(react_router_dom__WEBPACK_IMPORTED_MODULE_4__[\"useHistory\"])();\n const {\n fetchAllThreads\n } = Object(_context_ForumContext__WEBPACK_IMPORTED_MODULE_6__[\"useForum\"])();\n const [navSelector, setNavSelector] = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])({\n home: true,\n blog: false,\n forum: false,\n shop: false,\n login: false\n });\n\n const handleClick = e => {\n const selectorName = e.currentTarget.name;\n const navSelectorNone = {\n home: false,\n blog: false,\n forum: false,\n shop: false,\n login: false\n };\n setNavSelector({ ...navSelectorNone,\n [selectorName]: true\n });\n\n switch (selectorName) {\n case \"home\":\n history.push(_routerPaths__WEBPACK_IMPORTED_MODULE_5__[\"home\"]);\n break;\n\n case \"blog\":\n history.push(_routerPaths__WEBPACK_IMPORTED_MODULE_5__[\"blog\"]);\n break;\n\n case \"forum\":\n history.push(_routerPaths__WEBPACK_IMPORTED_MODULE_5__[\"forum\"]);\n handleForumRefresh();\n break;\n\n case \"shop\":\n history.push(_routerPaths__WEBPACK_IMPORTED_MODULE_5__[\"shop\"]);\n break;\n\n case \"login\":\n history.push(_routerPaths__WEBPACK_IMPORTED_MODULE_5__[\"login\"]);\n break;\n\n default:\n return;\n }\n };\n\n const loginOrlogout = () => {\n if (currentUser) {\n return /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n name: \"logout\",\n onClick: logout,\n classes: {\n label: \"navbutton-label\"\n },\n children: \"Logout\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 9\n }, this);\n } else {\n return /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n name: \"login\",\n onClick: handleClick,\n classes: {\n label: \"navbutton-label\"\n },\n children: \"Login\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 9\n }, this);\n }\n };\n\n const handleForumRefresh = () => {\n fetchAllThreads();\n };\n\n return /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(\"div\", {\n className: \"navbar\",\n children: [/*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(\"div\", {\n className: \"navbutton-group\",\n children: [/*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(\"div\", {\n className: navSelector.home ? \"navbutton--border\" : \"navbutton\",\n children: /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n name: \"home\",\n onClick: handleClick,\n classes: {\n label: \"navbutton-label\"\n },\n children: \"Home\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 90,\n columnNumber: 11\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 89,\n columnNumber: 9\n }, this), /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(\"div\", {\n className: navSelector.blog ? \"navbutton--border\" : \"navbutton\",\n children: /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n name: \"blog\",\n onClick: handleClick,\n classes: {\n label: \"navbutton-label\"\n },\n children: \"Blog\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 99,\n columnNumber: 11\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 98,\n columnNumber: 9\n }, this), /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(\"div\", {\n className: navSelector.forum ? \"navbutton--border\" : \"navbutton\",\n children: /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n name: \"forum\",\n onClick: handleClick,\n classes: {\n label: \"navbutton-label\"\n },\n children: \"Forum\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 108,\n columnNumber: 11\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 107,\n columnNumber: 9\n }, this), /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(\"div\", {\n className: navSelector.shop ? \"navbutton--border\" : \"navbutton\",\n children: /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__[\"Button\"], {\n name: \"shop\",\n onClick: handleClick,\n classes: {\n label: \"navbutton-label\"\n },\n children: \"Shop\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 117,\n columnNumber: 11\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 116,\n columnNumber: 9\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 88,\n columnNumber: 7\n }, this), currentUser && /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(\"div\", {\n style: {\n fontSize: \"80%\",\n display: \"flex\",\n alignContent: \"baseline\"\n },\n children: [/*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(_material_ui_icons_Person__WEBPACK_IMPORTED_MODULE_8___default.a, {\n style: {\n fontSize: \"18px\"\n }\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 136,\n columnNumber: 11\n }, this), currentUser.displayName]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 133,\n columnNumber: 9\n }, this), /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_9__[\"jsxDEV\"])(\"div\", {\n className: navSelector.login ? \"navbutton--border\" : \"navbutton\",\n children: loginOrlogout()\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 140,\n columnNumber: 7\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 87,\n columnNumber: 5\n }, this);\n}", "function App() {\n return (\n <div className=\"\">\n {/* <Navbar /> */}\n <Home />\n <Dishes />\n <Register />\n <Footer />\n </div>\n );\n}", "function Home(){\n return(\n <>\n <MainFrame />\n <Cards />\n {/* <Footer /> */}\n </>\n )\n}", "render() {\n return (\n <div className=\"app\">\n <Sidebar>\n <Navbar />\n <main>\n <PageTitle>Employees</PageTitle>\n <Grid>\n <Routes />\n </Grid>\n </main>\n </Sidebar>\n </div>\n );\n }", "render() {\n console.log('rendering App');\n return (\n <div className=\"height-100 container-fluid no-padding\">\n <div className=\"row\">\n <Navbar userData={this.state} onLogout={this.onLogout} />\n </div>\n <div className=\"row height-100\">\n <Routes userData={this.state} logged_in={this.state.logged_in} onLogin={this.onLogin}/>\n </div>\n </div>\n );\n }", "render() {\n\t\tconst basename = process.env.BASENAME || \"\";\n\t\treturn (\n\t\t\t<div className=\"d-flex flex-column h-100\">\n\t\t\t\t<BrowserRouter basename={basename}>\n\t\t\t\t\t<ScrollToTop>\n\t\t\t\t\t\t<Navbar />\n\t\t\t\t\t\t<Switch>\n\t\t\t\t\t\t\t<Route exact path=\"/\" component={Home} />\n\t\t\t\t\t\t\t<Route exact path=\"/home\" component={Home} />\n\t\t\t\t\t\t\t<Route exact path=\"/planets\" component={PlanetHome} />\n\t\t\t\t\t\t\t<Route exact path=\"/characters\" component={CharacterHome} />\n\t\t\t\t\t\t\t<Route exact path=\"/planetdetails/:id\" component={PlanetDetails} />\n\t\t\t\t\t\t\t<Route exact path=\"/characterdetails/:id\" component={CharacterDetails} />\n\t\t\t\t\t\t</Switch>\n\t\t\t\t\t\t<Footer />\n\t\t\t\t\t</ScrollToTop>\n\t\t\t\t</BrowserRouter>\n\t\t\t</div>\n\t\t);\n\t}", "function NavBar() {\n return (\n <div className=\"navbar\">\n <div class=\"topnav\">\n <a class=\"active\" href=\"#home\">Home</a>\n <input class=\"search\"\n type=\"text\"\n id=\"header-search\"\n placeholder=\"Search Products\"\n name=\"s\" \n />\n <img src={image} class=\"imagestyle\"/>\n \n </div>\n <Display/>\n </div>\n )\n}", "function App() {\n return (\n <Layout className=\"layout\">\n <Header>\n <Navbar/>\n </Header>\n <Content className=\"site-layout-content\">\n <Title style={{ textAlign: 'center'}}>Index Page</Title>\n <SchoolComponent/>\n </Content>\n <Footer style={{ textAlign: 'center', padding: '470px 0 0 0'}}>\n Copyright {new Date().getFullYear()}\n </Footer>\n </Layout>\n );\n}" ]
[ "0.65073913", "0.6320684", "0.622693", "0.62074596", "0.6191734", "0.6152528", "0.6138343", "0.60917044", "0.6075352", "0.60191756", "0.59331375", "0.58423066", "0.58316565", "0.5807646", "0.5802807", "0.57790804", "0.57781416", "0.57698154", "0.57695895", "0.57548934", "0.5751307", "0.57497376", "0.57236487", "0.5713277", "0.57123524", "0.5704558", "0.5692865", "0.5677713", "0.5674994", "0.56726795", "0.56704867", "0.56678843", "0.566501", "0.56638724", "0.56493527", "0.56398785", "0.5630351", "0.5623009", "0.562212", "0.56158805", "0.5615385", "0.5612461", "0.5610443", "0.5606694", "0.5605237", "0.5597337", "0.55792135", "0.5578513", "0.5576116", "0.557367", "0.5572958", "0.5570742", "0.5565673", "0.55604345", "0.55576676", "0.55533564", "0.55491173", "0.5548801", "0.5540937", "0.5538305", "0.5537301", "0.55310065", "0.55276823", "0.5519075", "0.55113006", "0.55090994", "0.54964817", "0.54961216", "0.54932463", "0.5490839", "0.5490432", "0.54896843", "0.5489652", "0.5488822", "0.54874474", "0.5487262", "0.548387", "0.5479264", "0.54749084", "0.5474738", "0.5471791", "0.54711854", "0.5465247", "0.5461656", "0.5458004", "0.5442682", "0.54375786", "0.54308033", "0.54299927", "0.54260427", "0.54106015", "0.54077804", "0.5406319", "0.5404677", "0.5402416", "0.53825724", "0.5379645", "0.5376636", "0.53760666", "0.5373318", "0.5371546" ]
0.0
-1
separate plaintext into words
function separateText() { var $curNode = $(this); $curNode.html($curNode.text().replace(/\b(\w+)\b/g, "<span text=\"word\">$1</span>")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extractWords(text) {\n // creating an array of words by splitting the raw text with non-letter characters\n let words = text.split(/[(\\s!?*\\n:.,/)]+/);\n // loop to transfer all words to lower case, to count them precisely\n // (otherwise \"User\" in the beginning of the sentence is different as \"user\" in the middle)\n for (let x = 0; x < words.length; x++) {\n allWords.push(words[x].toLowerCase());\n }\n}", "function _splitWords(text) {\n\t\treturn text.split(/\\s+/);\n\t}", "split(text) {\n // Split into array of tokens\n return text.split(/\\W+/);\n }", "split(text) {\n // Split into array of tokens\n return text.split(/\\W+/);\n }", "function sentensify(str) {\n // Add your code below this line\n return str.split(/\\W/).join(\" \"); //spilt removes non-words and create an array.\n // Add your code above this line\n}", "function sentensify(str) {\n // Add your code below this line\n const splitArr = str.split(/\\W/);\n console.log(splitArr);\n return splitArr.join(\" \");\n // Add your code above this line\n}", "function makeWordArray(passedEnglishText) {\n return passedEnglishText.split(\" \");\n }", "function intoWords(text) {\n\tvar words = new Array()\n\tvar html = false\n\tvar last_word = 0\n\n\tfor (var i = 0; i < text.length; ++i) {\n\t\tvar character = text.substr(i, 1)\n\n\t\tif (html == true && character != \">\")\n\t\t\tcontinue\n\n\t\tswitch (character) {\n\t\t\tcase \".\":\n\t\t\tcase \",\":\n\t\t\tcase \";\":\n\t\t\tcase \":\":\n\t\t\tcase \"?\":\n\t\t\tcase \"!\":\n\t\t\tcase \")\":\n\t\t\tcase \"]\":\n\t\t\tcase \" \":\n\t\t\t\twords.push(text.substring(last_word, i + 1))\n\t\t\t\tlast_word = i + 1\n\t\t\t\tbreak\n\t\t\tcase \"<\":\n\t\t\t\tif (last_word != i) {\n\t\t\t\t\twords.push(text.substring(last_word, i))\n\t\t\t\t\tlast_word = i\n\t\t\t\t}\n\n\t\t\t\thtml=true\n\t\t\t\tbreak\n\t\t\tcase \">\":\n\t\t\t\twords.push(text.substring(last_word, i + 1))\n\t\t\t\tlast_word = i + 1\n\n\t\t\t\thtml=false\n\t\t\t\tbreak\n\t\t}\n\t}\n\n\treturn words\n}", "function makeToChars(text) {\n var words = [];\n //spliting text into words\n var wordArray = text.split(' ');\n //spliting words into characters\n for (var i=0; i < wordArray.length; i++) {\n words[i] = wordArray[i].split('');\n }\n return words;\n}", "function splitify(str) {\n \nreturn str.split(/\\W/);\n\n \n}", "function splitSentences(text) {\n\treturn text.replace(/([!?]|\\.\\.\\.)\\s+/g, \"$1. \").split(/[.;]\\s/);\n}", "function sentensify(str) {\n // Add your code below this line\n console.log(str.split(/\\W/).join(\" \"))\n return str.split(/\\W/).join(\" \")\n\n // Add your code above this line\n}", "function splitIntoWords(str) {\n\treturn str.split(\" \")\n}", "function parseWords(text)\n{\n\n\t//return elements\n\tvar returnBuf = \"\";\n\n\t//split input string with RegExo\n\tvar tokens = text.match(spaceRegEx);\n\tvar substrL = 0;\n\n\tfor (i in tokens) //JRO - hack to only process one token at a time\n\t{\n\t\t//If the element isn't the last in an array, it is a new word\n\t\t//if ((i<tokens.length - 1) && tokens[i] !== \"\")\n\t\tif ((i == 0) && (i<tokens.length - 1) && tokens[i] !== \"\") //JRO - hack to only process one token at a time\n\t\t//if ((i == 0) && (i<tokens.length - 1))\n\t\t{\n\t\t\tvar tok = tokens[i];\n\t\t\t\n\t\t\t//console.log(\"\");\n\t\t\t//console.log(\"tok:\"+tok + \" l:\"+tok.length );\n\n\t\t\tsubstrL += tokens[i].length+1;\n\n\t\t\t// strip any leading punctuation\n\t\t\tvar leadPunct = tok.match(leadPunctRegEx);\n\t\t\tif (leadPunct) {\n\t\t\t\t//NOTE: substring was not working correctly ... might actually be length that was off\n\t\t\t\t//using replace instead\n\t\t\t\ttok = tok.replace(leadPunct, \"\");\n\t\t\t\t//console.log('lead p ' + leadPunct);\n\t\t\t}\n\t\t\t//console.log(\"tok1:\"+tok);\n\n\t\t\t// pull any numbers\n\n\t\t\tvar word;\n\t\t\tvar sentenceEnd = false;\n\n\t\t\tvar numWord = tok.match(numberRegEx);\n\t\t\tif (numWord) {\n\t\t\t\t//console.log('number');\n\t\t\t\tword = numWord;\n\t\t\t}\n\t\t\t//console.log(\"tok2:\"+tok);\n\n\t\t\t// pull any abbreviations\n\t\t\t// PEND: broken \n\t\t\tvar abbrevWord = tok.match(abbrevRegEx);\n\t\t\tif (abbrevWord && !word) {\n\t\t\t\t//console.log('abbrev');\n\t\t\t\tword = abbrevWord;\n\t\t\t}\n\t\t\t//console.log(\"tok3:\"+tok);\n\n\t\t\t// pull out word\n\t\t\tvar plainWord = tok.match(wordRegEx);\n\t\t\tif (plainWord && !word) {\n\t\t\t\tword = plainWord;\n\t\t\t}\n\t\t\t//console.log(\"tok4:\"+tok);\n\n\t\t\t//if (word) console.log(\"Word: \" + word);\n\n\t\t\t//look for final punctutation, the leftovers\n\t\t\tvar endPunct = tok.replace(word, \"\");\n\t\t\t//if (endPunct) console.log('punct ' + endPunct);\n\n\t\t\t// check if sentence end\n\t\t\tif (endPunct.search(sentenceEndRegEx) != -1) {\n\t\t\t\tsentenceEnd = true;\n\t\t\t\t//console.log('END SENTENCE');\n\t\t\t}\n\n\t\t\tvar speakerSwitch = false;\n\n\t\t\t//spealer switching handled with special words\n\t\t\tif (word && common.usingDoc)\n\t\t\t{\t\t\t\n\t\t\t\tif (word == \"MODERATOR\" || word == \"QUESTION\" || word == \"BROKAW\" || word == \"IFILL\" || word == \"LEHRER\" || word == \"RADDATZ\") {\n\t\t\t\t\tcurSpeaker = 0;\n\t\t\t\t\tspeakerSwitch = true;\n\t\t\t\t}\n\t\t\t\telse if (word == \"OBAMA\" || word == \"BIDEN\") {\n\t\t\t\t\tcurSpeaker = 1;\n\t\t\t\t\tspeakerSwitch = true;\n\t\t\t\t}\n\t\t\t\telse if (word == \"MCCAIN\" || word == \"ROMNEY\" || word == \"PALIN\" || word == \"RYAN\") {\n\t\t\t\t\tcurSpeaker = 2;\n\t\t\t\t\tspeakerSwitch = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//words for live uploading\n\t\t\telse if (word)\n\t\t\t{\n\t\t\t\tif (word == \"SPEAKER_MODERATOR\") {\n\t\t\t\t\tcurSpeaker = 0;\n\t\t\t\t\tspeakerSwitch = true;\n\t\t\t\t}\n\t\t\t\telse if (word == \"SPEAKER_OBAMA\") {\n\t\t\t\t\tcurSpeaker = 1;\n\t\t\t\t\tspeakerSwitch = true;\n\t\t\t\t}\n\t\t\t\telse if (word == \"SPEAKER_ROMNEY\") {\n\t\t\t\t\tcurSpeaker = 2;\n\t\t\t\t\tspeakerSwitch = true;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (!speakerSwitch)\n\t\t\t{\n\t\t\t\tif (common.dbUnlocked()) {\n\t\t\t\t\tif (!common.usingDoc) {\n\t\t\t\t\t\tnamedentity(word, sentenceStartF, function(resp) {\n\t\t\t\t\t\t\thandleWord(curSpeaker, leadPunct, resp, endPunct, sentenceEnd, speakerSwitch); \n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (word)\n\t\t\t\t\t\t\thandleWord(curSpeaker, leadPunct, word.toString(), endPunct, sentenceEnd, speakerSwitch); \n\t\t\t\t\t}\n\t\t\t\t} //else console.log ('parseWords(): DB is Locked, not adding data');\n\t\t\t}\n\n\n\t\t}\n\t\t//Otherwise this should be returned as part of the buffer\n\t\telse {\n\t\t\treturnBuf = text.substring(substrL);\n\t\t}\n\t}\n\n\t//return both the current buffer and the found words\n\treturn returnBuf;\n\n}", "tokenize(text) {\n text = text.toLowerCase();\n const phrases = [ text ];\n let matches = text.match(/\\s+/);\n let i = -1;\n if (matches && matches[0]) {\n i = matches.index + matches[0].length;\n }\n let ctr = 0;\n while (i !== -1 && ctr < 4) { // insert 4 more phrases\n text = text.substring(i);\n phrases.push(text);\n matches = text.match(/\\s+/);\n if (matches && matches[0]) {\n i = matches.index + matches[0].length;\n } else {\n i = -1;\n }\n ++ctr;\n }\n\n return phrases;\n }", "function sentensify(str) {\n // Add your code below this line\n let arr = []\n arr = str.split(/\\W/);\n return arr.join(' ');\n \n // Add your code above this line\n }", "function sentensify(str) {\n \nreturn str.split(/\\W/).join(\" \");\n\n \n}", "function convertinput(i){\n var lower=i.toLowerCase()\n var punctuation=lower.replace(/[.,\\/#!?$%\\^&\\*;:{}=\\-_`~()]/g,\"\")\n var words=punctuation.split(\" \")\n return words}", "get words () {\n return this.text.join(' ').match(/[a-zA-Z']+/g);\n }", "function fnsplitByWords(text) {\n\n var wordsArray = text.split(/\\s+/);\n return wordsArray;\n}", "words(str) {\n return str.split(\" \");\n }", "function fw(phrase) {\n let wordsList = phrase.split(' ');\n\n return wordsList;\n}", "function splitify(str) {\n // Add your code below this line\n return str.split(/\\W/);\n // Add your code above this line\n}", "function splitify(str) {\n // Add your code below this line\n return str.split(/\\W/)\n\n // Add your code above this line\n}", "words1(string) {\n const words = string.split(\" \");\n return words;\n }", "function wordBreaker(str) {\n\treturn str.split(\" \")\n}", "function splitme(text) {\n let splitedString = text.split(' ')\n return splitedString\n}", "function makespeakable(phrase) {\n phrase = phrase.replace(/['\"]/g, \"\");\n phrase = phrase.replace(/[-+]/g, \" \");\n phrase = phrase.replace(/([A-Z])(?=[A-Z])/g, \"$1 \"); //split apart capitals\n phrase = phrase.replace(/([A-Za-z])([0-9])/g, \"$1 $2\"); // split letter-number\n phrase = phrase.replace(/([0-9])([A-Za-z])/g, \"$1 $2\"); // split number-letter\n return phrase.replace(/\\b[A-Z](?=[[:space:][:punct:]])/g, function(match) {\n return say_letter[match.toUpperCase()];\n })\n .replace(/[0-9]+ ?(st|nd|rd|th)\\b/g, function(match) {\n return n2w.toOrdinalWords(parseInt(match)).replace(/[-,]/g, \" \");\n })\n .replace(/[0-9]+/g, function(match) {\n return n2w.toWords(match).replace(/[-,]/g, \" \");\n });\n}", "function solutionUsingSplitAndJoin(text) {\n 'use strict';\n\n var wordsArr, result;\n\n wordsArr = text.split(' ');\n result = wordsArr.join('&nbsp;');\n\n return result;\n}", "function wordSplit() {\n\twordLetters = currentWord.split(\"\");\n}", "words(string){\r\n var words = string.split(' ');\r\n return words;\r\n }", "words(str){\n return str.trim().split(\" \");\n }", "function toSplit(phrase){\n\tvar cut = phrase.split(\" \");\n\treturn cut;\n}", "function getSentences(tag) {\n for (i = 0; i < tag.length; i++) {\n var text = tag[i].textContent\n if (text.indexOf(\" \") !== 1) {\n if (text !== \"\") {\n allTexts.push(text);\n }\n }\n }\n\n\n\n for (i = 0; i < allTexts.length; i++) {\n article = allTexts.join(\"\\n\");\n allWords = article.split(/\\W+/);\n }\n }", "function words(str) {\n\n}", "function splitTextByToken(text, token) {\r\n let textParts = [\"\"];\r\n\r\n let textPartsIndex = 0;\r\n for (let i = 0; i < text.length; i++) {\r\n if (text[i] === token) {\r\n textPartsIndex++;\r\n textParts[textPartsIndex] = \"\";\r\n } else {\r\n textParts[textPartsIndex] += text[i];\r\n }\r\n }\r\n\r\n return textParts;\r\n}", "function titleCase(str) { console.log('IN ZERO-0: ' + str); // \"IN ZERO-0: i'M a lITtlE teA pOt\"\n words = str.toLowerCase().split(' '); console.log('IN ONE-1: ' + words); // \"IN ONE-1: i'm,a,little,tea,pot\"\n\n for(var i = 0; i < words.length; i++) {\n var letters = words[i].split(''); console.log('IN TWO-2: ' + letters); // \"IN TWO-2: (1) i,',m\" \"(2) a\" \"(3) l,i,t,t,l,e\" \"(4) t,e,a\" \"(5) p,o,t\"\n letters[0] = letters[0].toUpperCase(); console.log('IN THREE-3: ' + letters); // \"IN THREE-3: (1) I,',m\" \"(2) A\" \"(3) L,i,t,t,l,e\" \"(4) T,e,a\" \"(5) P,o,t\"\n words[i] = letters.join(''); console.log('IN FOUR-4: ' + words); // \"IN FOUR-4: (1) I'm,a,little,tea,pot\" \"(2) I'm,A,little,tea,pot\"\n } // \"(3) I'm,A,Little,tea,pot\" \"(4) I'm,A,Little,Tea,pot\" \"(5) I'm,A,Little,Tea,Pot\"\n return words.join(' ');\n}", "function splitify(str) {\n // Add your code below this line\n //return str.split(/\\W/); //this is the same with below statement\n return str.split(/[^A-Za-z0-9]/)\n // Add your code above this line\n}", "function parseText(text) {\n // Sentences assumed to end in \"\\.[\\w\\s]?\"\n // Words assumed to be separated by [\\w\\s]?\n\n var sentences = [], state = {}, currWord = \"\",\n i, char, sawPeriod = false, inWord = false,\n periodIndex, sentenceStart = 0, wordStart = 0;\n\n state.currWords = [];\n state.addWord = function(text, start) {\n text = text.toLowerCase();\n var match = /'(.*)'/.exec(text);\n if (match) {\n text = match[1];\n }\n this.currWords.push({ start: start, text: text });\n if (text.length == 0) {\n console.log(\"Empty text: \" + JSON.stringify(this.currWords));\n }\n }\n\n for (i=0; i < text.length; i+=1) {\n char = text[i];\n // Check for whitespace and double-quote characters \n // (For now, easiest to consider quotes to be whitespace. Later we will \n // likely want to mark whether words are inside or outside of dialog, since \n // the 'weak words' rules are different.)\n if (/[\\s\"\\u201C\\u201D\\u201E\\u201F\\u2033\\u2036]/.test(char)) {\n if (sawPeriod) {\n inWord = false;\n } else if (currWord.length > 0) {\n // Store the last word and start a new one\n state.addWord(currWord, wordStart);\n currWord = \"\";\n wordStart = i;\n }\n } else {\n if (inWord) {\n if (/[\\.\\?!]/.test(char)) {\n // Period\n sawPeriod = true;\n periodIndex = i;\n } else {\n currWord += char;\n }\n } else {\n if ((currWord.length > 0)) {\n // Store the last word and start a new one\n state.addWord(currWord, wordStart);\n currWord = \"\";\n wordStart = i;\n if (sawPeriod) {\n // This was a sentence break\n sentences.push({ start: sentenceStart, length: (periodIndex - sentenceStart), words: state.currWords });\n state.currWords = [];\n sentenceStart = i;\n sawPeriod = false;\n }\n }\n currWord += char;\n inWord = true;\n }\n }\n }\n\n //\n var endIndex = text.length;\n //if (sawPeriod) {\n // endIndex = text.length - 1;\n //}\n state.addWord(currWord, wordStart);\n sentences.push({ start: sentenceStart, length: (endIndex - sentenceStart), words: state.currWords });\n return sentences;\n}", "function getWords(txt) {\n\n // Remove leading and trailing whitespace\n txt = txt.trim();\n\n // Replace non-word characters with spaces\n txt = txt.replace(\":-)\", \" \");\n txt = txt.replace(/\\n/g, \" \");\n txt = txt.replace(/\\./g, \" \"); \n txt = txt.replace(/\\!/g, \" \"); \t\n txt = txt.replace(/\\?/g, \" \");\n txt = txt.replace(/\\,/g, \" \");\n txt = txt.replace(/\\+/g, \" \");\n txt = txt.replace(/\\:/g, \" \");\n txt = txt.replace(/\\\"/g, \" \");\n\n // Remove consecutive spaces\n txt = txt.replace(/\\s+/g, \" \");\n let words = txt.split(\" \");\n\n // If last word is empty, remove it\n if (words[words.length-1] === \"\") {\n \twords.splice(words.length-1, 1);\n }\n\n return words;\n}", "function aWsplittedF (analizedWord){\n\t var analizedWordSplit = analizedWord.split('')\n\t return analizedWordSplit\n}", "function extractWords(words) {\n var words = words.split(/\\W+/);\n var wordList = [];\n for (var i = 0; i < words.length; i++) {\n\n if (words[i].length > 1) {\n wordList.push(words[i].toLowerCase());\n }\n }\n return (wordList);\n}", "split(text) {\n text = text.trim();\n let separators = new Set([' ', '\\n', '\\t', '\\v']);\n let i = 0;\n let wordArray = [''];\n for (let j = 0; j < text.length; j++) {\n if (separators.has(text[j])) {\n if (wordArray[i] === \"\") {\n continue;\n } else {\n wordArray[++i] = \"\";\n }\n } else {\n wordArray[i] += text[j];\n }\n }\n let ultimaPalabra = wordArray[wordArray.length - 1];\n if (ultimaPalabra == \"\" || separators.has(ultimaPalabra[ultimaPalabra.length - 1])) {\n wordArray.pop();\n }\n return wordArray;\n }", "function getSentences(tag) {\n for (i = 0; i < tag.length; i++) {\n var text = tag[i].textContent\n if (text.indexOf(\" \") !== 1) {\n if (text !== \"\") {\n allTexts.push(text);\n }\n }\n }\n\n for (i = 0; i < allTexts.length; i++) {\n article = allTexts.join(\"\\n\");\n allWords = article.split(/\\W+/);\n }\n }", "function wordsToSentence(words) {\n let str = \"\"\n \n for(let word of words){\n str += (word + \" \") \n }\n \n return str.trim()\n }", "function splitWords(str) {\n return trim(str).split(/\\s+/);\n } // @function setOptions(obj: Object, options: Object): Object", "function getWhitespaceAndWords(text) {\n\n var whiteSpaceList = [];\n var wordList = []; \n\n var currWord = false;\n for ( var charIndex in text ) {\n let character = text[charIndex];\n if ( character == \" \" || character == \"\\n\" || character == \"\\t\" || character == \"\\r\" ){\n if ( currWord == false ) {\n whiteSpaceList[whiteSpaceList.length-1] += character;\n } else {\n whiteSpaceList.push(character);\n currWord = false;\n }\n } else {\n if ( currWord == true ) {\n wordList[wordList.length-1] += character;\n } else {\n wordList.push(character);\n currWord = true;\n }\n }\n }\n\n return [whiteSpaceList, wordList];\n}", "function Tokens(text) {\n\ttext += \" \";\n\tvar last = \"space\";\n\tvar a = [];\n\tvar w = \"\";\n\tfor (var i = 0; i < text.length; i++) {\n\t\tvar c = classify( text[i] );\n\t\tif (joined(last, c)) {\n\t\t\tw += text[i];\n\t\t} else {\n\t\t\tif (w.trim()) {\n\t\t\t\ta.push(w);\n\t\t\t}\n\t\t\tw = text[i];\n\t\t}\n\t\tlast = c;\n\t}\n\treturn a;\n}", "function splitify(str) {\n\t// Only change code below this line\n \n\tlet result = str.split(/[\\W\\s\\d]/);\n\treturn result; \n \n\t// Only change code above this line\n}", "function getWords(text)\n{\n let startWord = -1;\n let ar = [];\n \n for(let i = 0; i <= text.length; i++)\n {\n let c = i < text.length ? text[i] : \" \";\n\n if (!isSeparator(c) && startWord < 0)\n {\n startWord = i;\n }\n \n if (isSeparator(c) && startWord >= 0)\n {\n let word = text.substring(startWord, i);\n ar.push(word);\n \n startWord = -1;\n }\n }\n\n return ar;\n}", "function breakUpWord(words) {\n var frontPart = [],\n centerPart = [], \n backPart = [];\n for (var i=0; i<words.length; i++) {\n //get the center of the word rounded down \n //and every 7 chars move the center to the left 1\n var centerIndex = Math.floor(words[i].length / 2) - Math.floor(words[i].length / 7);\n //if the word's length is even and greater than two move the center to the left 1\n if ((words[i].length % 2) == 0 && words[i].length > 2) {centerIndex--;}\n\n //grab the front, center, and back part of each word and store in an array\n frontPart.push(words[i].join('').substring(0, centerIndex));\n centerPart.push(words[i].join('').substring(centerIndex, centerIndex + 1));\n backPart.push(words[i].join('').substring(centerIndex + 1, words[i].length));\n\n }\n //add a black space at the end of the array \n //to show a blank screen after reader is done playing\n frontPart.push(\"\");\n centerPart.push(\"\");\n backPart.push(\"\");\n return [frontPart, centerPart, backPart];\n}", "function splitSentence(sentence) {\n let words = [];\n let wordCharacters = '';\n for (let index = 0; index < sentence.length; index += 1) {\n switch (true) {\n case (sentence[index] === ' ' && wordCharacters !== ''):\n words.push(wordCharacters);\n wordCharacters = '';\n break;\n case (index === (sentence.length - 1) && sentence[index] !== ' '):\n wordCharacters += sentence[index];\n words.push(wordCharacters);\n break;\n case (sentence[index] !== ' '):\n wordCharacters += sentence[index];\n break;\n default:\n break;\n }\n }\n return words;\n}", "function splitLetters(word) {\n let content = word.textContent;\n word.textContent = \"\";\n let letters = [];\n\n for (let i = 0; i < content.length; i++) {\n let letter = document.createElement(\"span\");\n letter.className = \"letter\";\n\n if (content.charAt(i) === \"_\") {\n letter.style.opacity = \"0\";\n };\n\n letter.textContent = content.charAt(i);\n word.appendChild(letter);\n letters.push(letter);\n }\n \n wordArray.push(letters);\n }", "words (inputString) {\n let wordArray = inputString.split(' ');\n return wordArray;\n }", "function stringToWords(sentence, box) {\n\tvar fontSize = 20;\n\tvar fontHeight = 24;\n\tvar space = 6; //blank space is 5 pixels\n\tvar splits = new Array();\n\tvar wordBundle = { words: [], parsed: \"\", boxHeight:0};\n\tvar x = 0; var y = 0;\n\t\n\tsplits = sentence.split(\" \");\n\tfor (var i = 0; i < splits.length(); i++) {\n\t\tvar text = splits[i];\n\t\t$(\"tempOut\").update(\"<span style='position: absolute; height: auto; \\\n\t\t\t\t\t\t\twidth: auto; font-size: \"+text+\"px; visibility: \\\n\t\t\t\t\t\t\t'hidden' id='measure'>\"+wordtext+\"</span>\");\n\t\tvar test = $(\"measure\");\n\t\tvar height = test.clientHeight + 1;\n\t\tvar width = test.clientWidth + 1;\n\t\twordBundle.parsed += \"<span id='\"+box.id+\".\"+i+\"'>\"+text+\"</span>\";\n\t\twordBundle.words[i] = text;\n\t\tif (x+width > box.maxWidth) { //out of bounds, new line\n\t\t\tx = 0;\n\t\t\ty += fontHeight;\n\t\t}\n\t\twordBundle.words.x = x;\n\t\twordBundle.words.y = y;\n\t\twordBundle.words.width = width;\n\t\twordBundle.words.height = height;\n\t\tx += width + space;\n\t}\n\twordBundle.maxHeight = y + height;\n\treturn wordBundle\n}", "function spinWords(str) {\n const Str = str;\n let arr = [];\n arr = (Str.match(/[a-zA-Z]+/gi));\n arr.forEach((val, index, array) => {\n const Arr = array;\n if (val.length > 4) {\n Arr[index] = (val.split('').reverse().join(''));\n }\n return arr;\n });\n return arr.join(' ');\n}", "function parseWords(words) {\n words = words.replace(/[^\\w\\s]|_/g, \"\").replace(/\\s+/g, \" \");\n words = words.split(\" \");\n return words;\n}", "function splitQueryText(text) {\r\n var words = text.match(/\\S+/g),\r\n query = [],\r\n start = 0,\r\n _query = '',\r\n html = $('body').html();\r\n do {\r\n start = splitHelper(words, html)\r\n _query = words.slice(0, start).join(' ')\r\n if (_query && start > 1) {\r\n query.push(_query)\r\n }\r\n start = start === 0 ? 1 : start; // in case no match a single word\r\n words = words.slice(start)\r\n } while (start && words && words.length)\r\n // console.log(query)\r\n return query\r\n}", "function getWord(word) {\n for(i=0; i<word.length; i++) {\n var test = word[0];\n var displayTest = test.split();\n console.log(displayTest);\n}\n}", "function sentensify(str) {\n let arr = str.split(/\\W+/);\n return arr.join(\" \");\n}", "function convertStringOfWordsToArrayOfStrings (secretMessage){\n\treturn secretMessage.split(\" \");\n}", "function getWords(text) {\n \"use strict\";\n var words;\n //Remove all special characters from the text\n text = text.replace(/\\./g, \"\");\n text = text.replace(/,/g, \"\");\n text = text.replace(/:/g, \"\");\n //text = text.replace(/;/g, \"\");\n //text = text.replace(/!/g, \"\");\n text = text.toLowerCase();\n //Covert String to an array\n words = text.split(\" \");\n words = words.sort();\n return words;\n \n}", "function splitAtFirstWord (text) {\n if (text == null) return ['', '']\n\n text = `${text}`.trim()\n if (text === '') return ['', '']\n\n const WordPattern = /([^\\s]+)(.*)/\n const match = text.match(WordPattern)\n if (match == null) return ['', '']\n\n return [match[1], match[2].trim()]\n}", "function BOT_extractWords() {\r\n\tvar word, matchlist;\r\n\tvar lemstring = BOT_lemString;\r\n\tvar worldlist = [];\r\n\tvar rex = new RegExp(\"< (\\\\w+) (.*)\");\r\n\tfor(var i=0; i<BOT_maxExtractedWords; i++) { // Words extracted is limited\r\n\t\tif(lemstring.search(rex) != -1) {\r\n\t\t\trex.lastIndex = 0;\r\n\t\t\tmatchlist = rex.exec(lemstring);\r\n\t\t\tword = BOT_englishWordCutPlural(matchlist[1]);\r\n\t\t\tworldlist = worldlist.concat(word);\r\n\t\t\tlemstring = \"< \"+matchlist[2];\r\n\t\t}\r\n\t}\r\n\treturn worldlist;\r\n}", "words(content) {\n //@TODO\n let word_arr = content.split(/\\s+/).map((w) => normalize(w)).filter((w) => !this.noise_words.has(w));\n return word_arr;\n\n }", "function allWords(area) { return toWords(text(area)); }", "function wave(text){\n let finalArray = []\nfor ( let i = 0; i < text.length; i++) {\n let arr = text.split('')\n if (arr[i] === ' ') {\n continue;\n }\n arr[i] = arr[i].toUpperCase()\n\n finalArray.push(arr.join(''))\n}\n return finalArray\n}", "function normalizeText(words) {\n var text = words.replace( /[,.!?-]+/g, \"\" );\n var noSpace = text.replace( /\\s+/g, \" \" );\n return noSpace;\n}", "function wordYeller(sentence) {\n let punc = \". , ! ? ; :\".split(' ');\n sentence = sentence.split(' ');\n let result = [];\n\n for (let i = 0; i < sentence.length; i++) {\n let word = sentence[i];\n let char = word[word.length - 1];\n if (punc.indexOf(char) < 0) word += '!';\n result.push(word);\n }\n\n return result.join(' ');\n}", "function processText(text) {\n text = _.chain(text)\n .words(\"\\n\\n\")\n .map(function(par) {\n // Replace newlines with spaces\n return par.replace(/(\\r\\n|\\n|\\r)/gm,\" \");\n })\n .value();\n //console.log(text);\n return text;\n}", "function countWords(text) {\n let punctuationRemove = text.replace(/[\\.,-\\/#!$%\\^&\\*;:{}=\\-_`~()@\\+\\?><\\[\\]\\+]/g, '');\n let splitText = punctuationRemove.split(' ');\n console.log(splitText);\n let count = splitText.length;\n console.log(count);\n}", "function get_split_text(text, title)\n {\n let lines = text.split('\\n');\n let ret = [];\n lines.forEach((e) =>\n {\n ret.push({line: e.split(/([,;、。「」?!:“”《》『』〝〞…,.;:?!()\\[\\]])/g), words:{}, notes:''});\n });\n return ret;//{ title: lines[0], original_text: text, split_text: ret };\n }", "function wave(word) {\n words = word.split('');\n result = [];\n for (let i = 0; i < words.length; i++) {\n if (words[i] == ' ') {\n continue;\n }\n chars = [];\n for (let n = 0; n < words.length; n++) {\n if (n == i) {\n chars.push(words[i].toUpperCase());\n } else {\n chars.push(words[n]);\n }\n }\n result.push(chars.join(''))\n }\n return result;\n}", "function priMay(tx){\n if(tx == undefined){\n return;\n }\n var txtspl = tx.toLowerCase().split(' ');\n var texto = '';\n for (var i=0;i < txtspl.length;i++){\n var splw = txtspl[i].split('');\n splw[0] = splw[0].toUpperCase();\n for (var j = 0;j < splw.length;j++){\n texto += splw[j];\n }\n if(i < txtspl.length-1){\n texto += ' ';\n }\n }\n return texto;\n}", "function convertString(){\n var myString = \"The five boxing wizards jump quickly.\"\n return myString.split(\" \").join(\" \");\n}", "function wordsToSentence(words) {\n //your code here\n\n return words.join(' ');\n\n }", "function extractKeywords(string) {\r\n var words = string.split(\" \")\r\n var result = new Array();\r\n for (var i = 0; i < words.length; i++){\r\n if (words[i].length > 3) {\r\n result.push(words[i].replace(/[^a-z0-9]/gi,''));\r\n } \r\n }\r\n return result.join(\" \").toUpperCase();\r\n }", "function wordYeller(sentence)\n{\n\tvar splitSentence = sentence.split(\" \");\n\tvar yelledSentence = \"\";\n\tfor(var i = 0; i <= splitSentence.length - 1; i++)\n\t{\n\t\tif(!(isPunctuated(splitSentence[i])))\n\t\t{\t\n\t\t\tyelledSentence += splitSentence[i] + \"! \";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tyelledSentence += splitSentence[i] + \" \";\n\t\t}\n\t}\n\n\treturn yelledSentence;\n}", "function letters(word) {\n return word.split('')\n}", "function getWords(sentence) {\n return sentence.split(' ').filter(function (word) {\n return word !== '';\n });\n}", "async words(contentText) {\n //TODO\n let words = [];\n let splitWords;\n let noiseWords = [];\n await db.collection(noise_table).find({}).forEach(function (u) {\n noiseWords.push(u.word);\n });\n while (splitWords = WORD_REGEX.exec(contentText)) {\n let [word, offset] = [splitWords[0], splitWords.index];\n word = normalize(word);\n word = stem(word);\n if(!(noiseWords.indexOf(word) > -1)) {\n words.push([word, offset]);\n }\n }\n return await words;\n\n }", "function splitSyllable(word) {\n var type = Object.prototype.toString.call(word).slice(8, -1);\n if (type !== \"String\") {\n throw new TypeError(\"Function splitSyllable must be called \" +\n \"on string (not \" + type.toLowerCase() + \")\");\n }\n return word.split(/(?=(?:[bDHjlmnpqQrStvwy\\']|ch|gh|ng|tlh)[aeIou])/);\n }", "function spinWords(str){\n str = str.split(' ');\n let out = [];\n str.forEach(function (item) {\n if(item.length >= 5){\n let tmp = '';\n for (let j = item.length - 1; j >= 0; j--){\n tmp += item[j];\n }\n out.push(tmp)\n } else {\n out.push(item);\n }\n });\n return out.join(' ');\n}", "function wordsSeparatedByOneSpace( string ) {\n\tfor ( var i = 0; i < string.length; i++ ) {\n\t\tif ( !isLetter( string[ i ] ) && string[ i ] !== \" \" ) {\n\t\t\tstring = string.replace( string[ i ], \" \" );\n\t\t}\n\t}\n\tstring = reduceDoubleSpaces( string );\n\treturn string;\n}", "function getWordTokens(textLineToTokenize) {\n let returnArray = [];\n let word = \"\";\n\n //remove white spaces in the line\n textLineToTokenize = textLineToTokenize.trim();\n\n for (let i = 0; i < textLineToTokenize.length; i++) {\n let char = textLineToTokenize[i];\n\n if (i === textLineToTokenize.length - 1) {\n if (char !== \" \" && char !== \"\" && char !== \"\\n\") word += char;\n\n if (word !== \"\") returnArray.push(word);\n\n break;\n }\n\n if (\n char !== \"\\n\" &&\n char !== \"\\t\" &&\n char !== \" \" &&\n char !== \"\\r\" &&\n char !== \"\\f\"\n ) {\n word += char;\n\n continue;\n } else {\n if (word !== \" \" && word !== \"\" && word !== \"\\n\") returnArray.push(word);\n\n word = \"\";\n continue;\n }\n }\n\n return returnArray;\n}", "function tokenize(text) {\n\tvar tokens = []\n\tvar index = 0\n\tvar tindex = 0\n\twhile (index < text.length) {\n\t\t// Solo pongo los mas comunes, mientras tanto.\n\t\tif (text[index] == ' ' || text[index] == '\\t') \n\t\t\t++index\n\t\telse if (isFinite(text[index])) {\n\t\t\tvar t = ''\n\t\t\twhile (isFinite(text[index])) \n\t\t\t\tt += text[index++]\n\t\t\ttokens[tindex++] = parseInt(t)\n\t\t}\n\t\telse if (isCustom(text[index])) {\n\t\t\ttokens[tindex++] = text[index++]\n\t\t}\n\t}\n\treturn tokens\n}", "function processData(input) {\n inputArr = input.split('\\n');\n let result = '';\n for(let j = 1; j < inputArr.length; j++){\n let word = inputArr[j];\n let str = '';\n let str2 = '';\n for (let i = 0; i < word.length; i++) {\n if(i % 2 === 0) str += word[i];\n if(i % 2 === 1) str2 += word[i];\n }\n result += str + ' ' + str2 + '\\n';\n };\n console.log(result);\n}", "function f(str) {\n let phrase = str.split(\" \");\n let newPhrase = [];\n for (i=0; i < phrase.length; i++) {\n let word = phrase[i];\n let newWord = [];\n for (j=0; j < word.length; j++) {\n if (j === 0) newWord.push(word[j].toUpperCase());\n if (j !== 0) newWord.push(word[j].toLowerCase());\n };\n newWord = newWord.join('');\n newPhrase.push(newWord);\n };\n console.log(newPhrase.join(' '));\n return newPhrase.join(' ');\n}", "function spinWords(str) {\n return str.split(' ').map(function(e) {\n return e.length > 4 ? e.split('').reverse('').join('') : e;\n }).join(' ');\n}", "function searchEntities(str) {\r\n str = str.toLowerCase();\r\n str = str.replace(/[^\\w\\s]/gi, ' ');\r\n str = str.replace(/\\t/g, ' ');\r\n str = str.replace(/ /g, ' ');\r\n return str.split(' ');\r\n}", "function decipherThis(str) {\n const words = str.split(' ')\n const result = words.map(word => {\n const code = parseInt(word)\n const length = code.toString().length\n const firstLet = String.fromCharCode(code)\n let newWord = firstLet + word.slice(length)\n if (word.length === length) return newWord\n \n const array = newWord.split('')\n const secondLet = newWord[1]\n const lastLet = newWord[newWord.length - 1]\n array[1] = lastLet\n array[newWord.length - 1] = secondLet\n \n return array.join('')\n })\n \n return result.join(' ')\n}", "function splitText(textOrigin) {\n const length = textOrigin.length\n let array = []\n for (let i = 0; i < length; i += 40) {\n array.push(textOrigin.substring(i, i + 40))\n }\n return array\n}", "function capsSentence(text) {\n let wordsArray = text.toLowerCase().split(\" \");\n\n let capsArray = wordsArray.map((word) => {\n return word.replace(word[0], word[0].toUppercase());\n //We replace the first letter of each word (word[0]) with an uppercase version of the same letter using word.[0].toUppercase as the second parameter of the .replace() method.\n });\n\n return capsArray.join(\" \");\n}", "sentenceSplits(text, chunkArray) {\n \tvar sentenceArray = text.split(\". \");\n \tfor (var i = sentenceArray.length - 2; i >= 0; i--) {\n \t\tsentenceArray[i] = sentenceArray[i] + \".\";\n \t}\n \treturn sentenceArray;\n }", "function tokenizeText() {\r\n\t registerContextChecker.call(this, 'latinWord');\r\n\t registerContextChecker.call(this, 'arabicWord');\r\n\t registerContextChecker.call(this, 'arabicSentence');\r\n\t return this.tokenizer.tokenize(this.text);\r\n\t}", "function convertStrToArrOfWords(str) {\n return str.split(\" \");\n}", "function separateText(new_string) {\n var array = new_string.split(' ');\n var new_Cap = \"\";\n var new_String = new Array ();\n\n for(var i = 0; i < array.length; i++) {\n new_Cap = stringCapitalize(array[i]);\n new_String.push(new_Cap);\n }\n return new_String.join(\" \");\n}", "function splitTextToCharacters(text) {\n return Array.from ? Array.from(text) : text.split('');\n}", "function parse(array){\n let result = [];\n let word = [];\n let first;\n const len = array.length;\n for (let i = 0; i < len; i++){\n let sound_ = sound(array[i]);\n if (isFirst(i, array)) word.push(array[i].toUpperCase());\n if (sound_ && sound_ !== ' ' && isDifferent(i, array, word) && !(isFirst(i, array))) word.push(sound_);\n if (isEnd(i, array)) {\n Array.prototype.push.apply(result, pad(word));\n word = [];\n }\n if (sound_ === ' ') result.push(sound_);\n }\n return result.join(''); \n}", "function analyzer (text) {\n var sentences = text.split('.');\n var cleanedText = processPhrase(sentences);\n var result = mapper(cleanedText);\n console.log(result);\n}" ]
[ "0.7002636", "0.68876207", "0.68833154", "0.68235725", "0.67349845", "0.66979", "0.6560445", "0.6557298", "0.6555657", "0.6555313", "0.6553292", "0.6547584", "0.6533861", "0.6516551", "0.6498533", "0.6488295", "0.64778006", "0.6469596", "0.6444394", "0.6410113", "0.63893044", "0.6382085", "0.6375065", "0.6345072", "0.6338653", "0.632922", "0.6325041", "0.63076675", "0.6295138", "0.6279991", "0.62782407", "0.62640023", "0.6255687", "0.61467046", "0.61424494", "0.61185473", "0.60996544", "0.6091622", "0.6089353", "0.60758847", "0.6051249", "0.60363704", "0.6031735", "0.60259527", "0.6023944", "0.6000341", "0.59961075", "0.5985222", "0.59777147", "0.59718215", "0.59688145", "0.5930098", "0.5928505", "0.592525", "0.58992994", "0.5896554", "0.58884037", "0.5881544", "0.5877656", "0.5862869", "0.58615327", "0.5847129", "0.5818612", "0.5817145", "0.5805152", "0.5793904", "0.5774874", "0.5742415", "0.573104", "0.5725818", "0.5718692", "0.57176274", "0.5711466", "0.5709408", "0.5696019", "0.5677737", "0.56759924", "0.56552404", "0.5640559", "0.5634358", "0.56330234", "0.56154066", "0.56152314", "0.5596055", "0.5583993", "0.5578308", "0.5577254", "0.55698276", "0.5565403", "0.5564314", "0.5558919", "0.55566764", "0.55491513", "0.55470955", "0.5546824", "0.554514", "0.5534352", "0.5523036", "0.55042934", "0.5488655" ]
0.599513
47
translates a word asynchronously using Glosbe API
function translate(wordToTranslate, origin, destination) { $.getJSON("http://glosbe.com/gapi/translate?from=" + origin + "&dest=" + destination + "&format=json&phrase=" + wordToTranslate.text() + "&pretty=true&callback=?", function (json) { if (json !== "Nothing found.") { if (json.tuc !== null && json.tuc.length !== 0 && json.tuc[0].phrase !== null) { // alert("phrase " + json.tuc[0].phrase.text); wordToTranslate.attr("translation", json.tuc[0].phrase.text); wordToTranslate.attr("original", wordToTranslate.text()) .css('color', 'blue') .text(wordToTranslate.attr("translation")) .attr("language", "translated"); } } }).done(function () { console.log('success', arguments); }).fail(function () { console.log('failure', arguments); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function translate() {\n fetch('https://www.googleapis.com/language/translate/v2?key=' +\n config.apiKey +\n '&q=' + snap.val().text +\n '&target=' + select_dialect.value.substring(0, 2),\n {\n method: 'get'\n }).then(function(response) {\n return response.json();\n }).then(function(response) {\n text.textContent = response.data.translations[0].translatedText;\n });\n }", "function translateSentence(word, translateTarget) {\r\n return sendMessagePromise({\r\n type: 'translate',\r\n word: word,\r\n translateTarget: translateTarget\r\n });\r\n}", "function translate(message, firstlanguage, secondlanguage) {\n var settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://google-translate1.p.rapidapi.com/language/translate/v2\",\n \"method\": \"POST\",\n \"headers\": {\n \"x-rapidapi-host\": \"google-translate1.p.rapidapi.com\",\n \"x-rapidapi-key\": \"9d23a098c0mshffb86547dfcfa5ap17bf84jsn411163bf9f70\",\n \"content-type\": \"application/x-www-form-urlencoded\"\n },\n \"data\": {\n \"source\": firstlanguage,\n \"q\": message,\n \"target\": secondlanguage\n }\n }\n //Pulls api and translates\n $.ajax(settings).done(function (response) {\n const outcome = response.data.translations[0].translatedText\n $('#msg').html(`<div>${outcome}</div>`)\n $('#msg-transcript').append(`\n <li class=\"translation\">${outcome}</li>\n <li class=\"original\">${message}</li>`)\n console.log(outcome)\n setTextMessage(outcome);\n speakText()\n })\n}", "async function translateText(text, targetLang, yandexApiKey) {\n if (targetLang === 'en') {\n return text;\n }\n else if (!text) {\n return '';\n }\n if (yandexApiKey) {\n return translateYandex(text, targetLang, yandexApiKey);\n }\n else {\n return translateGoogle(text, targetLang);\n }\n}", "function translate(word, lang) {\n /*var data = {\n \"client\": \"t\",\n \"sl\": 'zh-CN',\n \"tl\": lang,\n \"hl\": \"zh-CN\",\n \"dt\": \"at\",\n \"dt\": \"bd\",\n \"dt\": \"ex\",\n \"dt\": \"ld\",\n \"dt\": \"md\",\n \"dt\": \"qca\",\n \"dt\": \"rw\",\n \"dt\": \"rm\",\n \"dt\": \"ss\",\n \"dt\": \"t\",\n \"ie\": \"UTF-8\",\n \"oe\": \"UTF-8\",\n \"source\": \"btn\",\n \"ssel\": \"0\",\n \"tsel\": \"0\",\n \"kc\": \"0\",\n \"tk\": token(word),\n \"q\": word\n };*/\n var dataArr = [\n {\"client\": \"webapp\"},\n {\"sl\": 'zh-CN'},\n {\"tl\": lang},\n {\"hl\": \"zh-CN\"},\n {\"dt\": \"at\"},\n {\"dt\": \"bd\"},\n {\"dt\": \"ex\"},\n {\"dt\": \"ld\"},\n {\"dt\": \"md\"},\n {\"dt\": \"qca\"},\n {\"dt\": \"rw\"},\n {\"dt\": \"rm\"},\n {\"dt\": \"ss\"},\n {\"dt\": \"t\"},\n {\"ie\": \"UTF-8\"},\n {\"oe\": \"UTF-8\"},\n {\"source\": \"btn\"},\n {\"ssel\": \"0\"},\n {\"tsel\": \"0\"},\n {\"kc\": \"0\"},\n {\"tk\": token(word)},\n {\"q\": urlencode(word)}\n ];\n var paramStr = dataArr.reduce(function (res, item) {\n let key = Object.keys(item)[0];\n let value = Object.values(item)[0];\n //console.log(item)\n return res += key + '=' + value + '&';\n }, '');\n paramStr = paramStr.substr(0, paramStr.length - 1);\n var options = {\n hostname: 'translate.google.cn',\n port: 443,\n parth: '/translate_a/single' + '?' + paramStr,\n method: 'GET',\n header: {\n ':authority': 'translate.google.cn',\n ':method': 'GET',\n ':path': '/translate_a/single?client=webapp&sl=zh-CN&tl=zh-TW&hl=zh-CN&dt=at&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&otf=1&ssel=0&tsel=0&kc=1&tk=156578.327048&q=%E5%A4%A7%E5%B0%8F',\n ':scheme': 'https',\n 'accept': '*/*',\n 'accept-encoding': 'gzip, deflate, br',\n 'accept-language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,ko;q=0.6,ja;q=0.5,zh-TW;q=0.4',\n 'cookie': '_ga=GA1.3.218848242.1557732963; NID=183=bNPRYdO5-MN3A4UUG5KlmsEc4HEOCalDZCXgD436IkmVqbOCk1GFr4Iw-X0wuNqjAdwO8CLfYplPCPlGtXCx8qPE0XLWj_F8VDQoWycplLgFpDjZ0p83wm--M4TVXRWMlHNYr8Np5Ik7KlHR-7VGey5Zg68ajHb70JJynEd25VE; _gid=GA1.3.1016028292.1561342885; 1P_JAR=2019-6-24-3',\n 'referer': 'https://translate.google.cn/',\n 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36',\n 'x-client-data': 'CIS2yQEIo7bJAQjBtskBCNC3yQEIqZ3KAQioo8oBCLGnygEI4qjKAQjxqcoBCJatygEIxa3KAQifrsoB',\n }\n };\n\n console.log('paramStr',paramStr)\n\n var req = https.request(options, function (res) {\n res.setEncoding('utf8');\n res.on('data', function (chunk) {\n console.log('BODY: ' + chunk);\n });\n });\n req.on('error', function (e) {\n console.error('请求失败');\n console.error(e);\n });\n req.end();\n}", "async function translate () {\n setTranslationState({ ...translationState, actionInvokeInProgress: true, translationResult: 'calling action ... ' })\n const params = { 'q': translationState.actionParams, source: translationState.sourceLanguage, target: translationState.targetLanguage || {} }\n const startTime = Date.now()\n try {\n // Invokes backend action\n const actionResponse = await actionWebInvoke(actions['translate'], null, params)\n // Stores the response\n setTranslationState({\n ...translationState,\n translationResult:actionResponse,\n actionInvokeInProgress: false\n })\n } catch (e) {\n // Logs and stores any error message to be displayed in the form\n const formattedResult = `time: ${Date.now() - startTime} ms\\n` + e.message\n console.error(e)\n setTranslationState({\n ...translationState,\n translationResult:formattedResult,\n actionInvokeInProgress: false\n })\n }\n }", "function translate() {\n const fromLang = document.getElementById('fromLang').value;\n const toLang = document.getElementById('toLang').value;\n const mode = langCode(fromLang) + '2' + langCode(toLang);\n const wordsToTranslate = document.getElementById('inputText').value.replaceAll(' ', '+');\n\n const request = new XMLHttpRequest();\n request.onreadystatechange = function () {\n if (request.readyState === request.DONE && request.status === 200) {\n // When request is fulfilled, display translation text\n let outputArea = document.getElementById('outputText');\n outputArea.innerText = request.responseText;\n }\n }\n\n const url = `http://localhost:5000/translate/${mode}/${wordsToTranslate}`;\n console.log(`requesting ${url}`);\n request.open('GET', url);\n request.send();\n}", "async translate(text, lan, messageId) {\n try {\n this.props.translateOne(text, lan, messageId)\n let {showTrans} = this.state\n await this.setState({\n showTrans: !showTrans,\n translate: this.props.translate\n })\n } catch (err) {\n console.error(err)\n }\n }", "function translate(text, from, to, callback) {\n\ttext = text.replace(/(\\r\\n|\\n|\\r)/gm,\"\");\n\tconsole.log('text ' + text + ' from ' + from + ' to ' + to);\n\tbt.translate(text, from, to, function(err, res){\n\t \tcallback(res.translated_text);\n\t});\n}", "function translateText(input, target_lang){\n\tif (!Array.isArray(input)) {\n\t\tinput = [input];\n\t}\n\tvar request = require('request');\n\trequest.post({\n\t\turl: \"https://www.googleapis.com/language/translate/v2?\",\n\t headers: {\"X-HTTP-Method-Override\": \"GET\"},\n\t form: {\n\t \tkey: config.APIKEY,\n\t \ttarget: target_lang,\n\t \tq: input\n\t }\n\t}, function(error, response, results) {\n\t if (!error && response.statusCode == 200) {\n\t \tvar jsoncontent = JSON.parse(results);\n\t \tvar content = jsoncontent.data.translations[0].translatedText;\n\t \tconsole.log(content)\n\t \treturn content;\n\t } else {\n\t \tconsole.log(error);\n\t \tconsole.log(\"something went wrong\")\n\t \treturn null;\n\t }\n\t});\n}", "function translate(word)\n{\n return Language[word]\n\n}", "async function translateSingle(apiInstance, message, srclang, trglang, memoryId) {\n if (message !== \"\") {\n let registerData = await apiInstance.registerSegment(message, srclang, trglang);\n let opts = {\n 'source': message, // String | The source text to be translated.\n 'sourceHash': registerData.source_hash, // Number | A source hash code.\n };\n let translateData = await apiInstance.translateSegment(memoryId, opts);\n let translatedMessage = translateData.translation[0].targetWithTags;\n return translatedMessage;\n } else {\n return \"\";\n }\n}", "function requestTranslation() {\r\n const text = document.getElementById('text').value;\r\n const languageCode = document.getElementById('language').value;\r\n\r\n const resultContainer = document.getElementById('result');\r\n resultContainer.innerText = 'Loading...';\r\n\r\n const params = new URLSearchParams();\r\n params.append('text', text);\r\n params.append('languageCode', languageCode);\r\n\r\n fetch('/translate', {\r\n method: 'POST',\r\n body: params\r\n }).then(response => response.text())\r\n .then((translatedMessage) => {\r\n resultContainer.innerText = translatedMessage;\r\n });\r\n}", "translate(e){\n e.preventDefault()\n\n // const text = {\n // value : this.state.value ,\n // }\n \n let text = this.state.value \n \n console.log(text)\n // e.preventDefault()\n\n let fromLang = 'en';\n let toLang = 'ar'\n // let text = 'something to translate';\n \n const API_KEY ='your api key';\n \n\n \n if(text !==''){\n let url = `https://translation.googleapis.com/language/translate/v2?key=${API_KEY}`\n url += '&q=' + encodeURI(text);\n url += `&source=${fromLang}`;\n url += `&target=${toLang}`;\n fetch(url, { \n method: 'GET',\n \n headers: {\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\"\n },\n // body: this.state.value \n // body:JSON.stringify( \"this.state.value\" )\n })\n .then(res => res.json())\n .then((response) => {\n this.setState({translation_data:response.data.translations})\n console.log(\"response from google: \", response.data.translations[0]);\n \n })\n .catch(error => {\n console.log(\"There was an error with the translation request: \", error);\n });\n }\n \n\n }", "async function fetchTranslateText(text, translatedLanguageCode) {\n let response = await fetch(`https://translate.yandex.net/api/v1.5/tr.json/translate?key=trnsl.1.1.20190917T143143Z.c1229abdc907b884.5520b5430c18e7eb1926dd0166c1bd73473c23f0&text=${text}&lang=${translatedLanguageCode}`);\n return response.json();\n}", "function callVal(message){\n exports.handler = async (event) => {\n // TODO implement\n \n \n var translatedMsg = await getHindi(message)\n console.log(translatedMsg);\n return translatedMsg;\n };\n\n}", "function translate( phrase, from, to ) {\n var query = { q: phrase, langpair: languagePair(from, to), de: '[email protected]' },\n options = {\n hostname: 'api.mymemory.translated.net',\n path: '/get?' + qs.stringify( query )\n };\n\n http.get( options, function( res ) {\n var content = '';\n res.on('data', function ( chunk ) { content += chunk; });\n res.on('end', function() { dataHandler.trigger( eventName(from, to), \n JSON.parse(content) ); });\n });\n}", "function translation(word) {\n translationDiv.innerHTML = word\n}", "function reachGoogleApi(eng_text, res) {\n // reaching to the api server initilaizations\n const APIrequest = require(\"request\");\n const http = require(\"http\");\n let respondObject = {};\n const APIkey = \"AIzaSyCes0zvoquPZaDRuNF07nBEl75Eiy7Umgw\"; // ADD API KEY HERE\n const url =\n \"https://translation.googleapis.com/language/translate/v2?key=\" + APIkey;\n\n // An object containing the data expressing the query to the\n // translate API.\n // Below, gets stringified and put into the body of an HTTP PUT request.\n let requestObject = {\n source: \"en\",\n target: \"fa\",\n q: [\n eng_text // the text goes here\n ]\n };\n\n console.log(\"English phrase: \", requestObject.q[0]);\n\n // The call that makes a request to the API\n // Uses the Node request module, which packs up and sends off\n // an HTTP message containing the request to the API server\n APIrequest(\n {\n // HTTP header stuff\n url: url,\n method: \"POST\",\n headers: { \"content-type\": \"application/json\" },\n // will turn the given object into JSON\n json: requestObject\n },\n // callback function for API request\n APIcallback\n );\n\n // callback function, called when data is received from API\n function APIcallback(err, APIresHead, APIresBody) {\n // gets three objects as input\n if (err || APIresHead.statusCode != 200) {\n // API is not working\n console.log(\"Got API error\");\n console.log(APIresBody);\n } else {\n if (APIresHead.error) {\n // API worked but is not giving you data\n console.log(APIresHead.error);\n } else {\n // THIS IS WEHRE YOU SEND IT BACK TO THE BROWSER\n console.log(\n \"In Farsi: \",\n APIresBody.data.translations[0].translatedText\n );\n respondObject.translation =\n APIresBody.data.translations[0].translatedText;\n\n console.log(\"\\n\\nJSON was:\");\n console.log(JSON.stringify(APIresBody, undefined, 2));\n res.json(respondObject);\n // print it out as a string, nicely formatted\n }\n }\n } // end callback function\n}", "async getThesaurusResultForWord (word) { \n let res = await fetch(thesaurusEndPoint(word), { headers: { 'Content-Type': 'application/json' }});\n return await res.json();\n }", "async function createTranslation(stringToTranslate){\r\n const url = window.location.href.toString().replace(\"iframetest.php\", \"getTranslation.php\")\r\n const response = $.ajax({\r\n type: 'GET',\r\n url: url,\r\n data: {\r\n text: stringToTranslate,\r\n model_id: language + \"-en\"\r\n },\r\n success: function(res){\r\n return res.translations[0];\r\n },\r\n error: function(XMLHttpRequest, textStatus, errorThrown) { // if there was a problem\r\n console.log(XMLHttpRequest, textStatus, errorThrown);\r\n alert('Error Occured');\r\n }\r\n });\r\n return new Promise((resolve, reject) => {\r\n if(response){\r\n resolve(response);\r\n } else{\r\n reject();\r\n }\r\n })\r\n }", "function get_translation(text, source) {\n $.getJSON(\n '/contentActions/get_sentence_translation',\n {text: text},\n function(response) {\n if(response.success) {\n $(source).data('translation', response.data);\n console.log('Translation: ' + response.data);\n $('.sentense-translation').text(response.data);\n } else {\n console.log(response.msg);\n }\n }\n );\n}", "async function sendTranslatedMessage() {\n let originalMessage = document.getElementById(\"messageInput\").value;\n if (originalMessage) {\n let messages_arr = originalMessage.split(\"\\n\")\n let option = document.getElementById('languageChoice').value;\n if (!(option in memoriesDict)) {\n handleError(\"No Option Selected\");\n return;\n }\n let reverseOptionArr = option.split(\" to \"); \n let reverseOption = reverseOptionArr[1] + \" to \" + reverseOptionArr[0];\n let translateInfo = memoriesDict[reverseOption];\n\n let translatedMessages = await translateAllMessages(messages_arr, translateInfo[0], translateInfo[1], translateInfo[2]);\n let finalMessage = \"\"\n for (let index = 0; index < translatedMessages.length; index++) {\n finalMessage = finalMessage.concat(translatedMessages[index]);\n finalMessage = finalMessage.concat(\"\\n\");\n }\n if (originalMessageID && frontContext) {\n const draft = await frontContext.createDraft({\n content: {\n body: finalMessage,\n type: 'text'\n },\n replyOptions: {\n type: 'reply',\n originalMessageId: originalMessageID\n }\n });\n\n let instantTranslationTagID = await getInstantTranslationTagID();\n if (instantTranslationTagID) {\n await frontContext.tag([instantTranslationTagID], undefined);\n }\n } else {\n handleError(\"No Conversation Selected\");\n }\n } else {\n handleError(\"No message entered\");\n }\n}", "function on_word_get(word) {\n recognition.stop();\n // ADD confirm or something\n // resolve using the currend MODE\n MODE(word);\n speak(\"listening\");\n if (CONTINUE) {\n recognition.start();\n }\n}", "async function translateGoogle(text, targetLang) {\n var _a;\n try {\n const url = `http://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodeURIComponent(text)}&ie=UTF-8&oe=UTF-8`;\n const response = await axios_1.default({ url, timeout: 15000 });\n if (isArray(response.data)) {\n // we got a valid response\n return response.data[0][0][0];\n }\n throw new Error('Invalid response for translate request');\n }\n catch (e) {\n if (((_a = e.response) === null || _a === void 0 ? void 0 : _a.status) === 429) {\n throw new Error(`Could not translate to \"${targetLang}\": Rate-limited by Google Translate`);\n }\n else {\n throw new Error(`Could not translate to \"${targetLang}\": ${e}`);\n }\n }\n}", "async function translateYandex(text, targetLang, apiKey) {\n var _a;\n if (targetLang === 'zh-cn') {\n targetLang = 'zh';\n }\n try {\n const url = `https://translate.yandex.net/api/v1.5/tr.json/translate?key=${apiKey}&text=${encodeURIComponent(text)}&lang=en-${targetLang}`;\n const response = await axios_1.default({ url, timeout: 15000 });\n if (isArray((_a = response.data) === null || _a === void 0 ? void 0 : _a.text)) {\n return response.data.text[0];\n }\n throw new Error('Invalid response for translate request');\n }\n catch (e) {\n throw new Error(`Could not translate to \"${targetLang}\": ${e}`);\n }\n}", "async function getWord(url, data) {\n const loading = selectElement(\".loading-wrapper\");\n\n let ajax = await fetch(url, {\n method: \"POST\",\n body: JSON.stringify(data)\n }).then(res => res.text());\n try {\n secretWord = await JSON.parse(ajax).word;\n loading.classList.add(\"hide\");\n countLetter(secretWord);\n }\n catch {\n window.location = \"/portfolio/projects/hangman/language.php\";\n }\n}", "function trans(text){\n socket.emit('translate',text,function(translatedText){\n translated[text] = translatedText;\n });\n}", "function uiHelper(phraseToTranslate) {\n\tGetLanguages()\n\t\t.then(async res => {\n\t\t\tconst response = res;\n\t\t\tconst results = await Promise.all(\n\t\t\t\tresponse.map(async res => {\n\t\t\t\t\treturn await Translate(\"en\", res.code, phraseToTranslate);\n\t\t\t\t})\n\t\t\t);\n\t\t\treturn results;\n\t\t})\n\t\t.then(res => console.log(res));\n}", "function buttonclickEvent() {\n var inputTxt = inputBox.value;\n // calling server for processing\n fetch(getTranslationUrl(inputTxt))\n .then((response) => response.json())\n .then((json) => {\n var translateText = json.contents.translated;\n outputBox.innerText = translateText;\n })\n .catch(errorHandler);\n}", "function translateStory() {\n stop = true;\n let story = document.getElementById(\"story\");\n let text = document.getElementById(\"hiddenText\").innerHTML;\n story.innerHTML = text;\n document.getElementById(\"translateButton\").disabled = true;\n}", "function clickHandler(){\n var inputTxt= inputText.value;\n \n fetch(getTranslationUrl(inputTxt)) \n .then(response => response.json())\n .then(json => {\n var translatedText= json.contents.translated;\n outputDiv.innerText= translatedText;\n } )\n .catch(errorHandler)\n}", "async function buscarSugerencias(word){\n if (word != null || word != \"\" || word != undefined) {\n let dataJSON = await claseBusqueda.wordSuggestion(word);\n\n return dataJSON;\n }\n}", "function translateElement(textElement, messageContainer, languageCode) {\n const text = textElement.innerText;\n\n const resultContainer = messageContainer;\n resultContainer.innerText = 'Loading...';\n textElement.classList.add('hidden');\n messageContainer.classList.remove('hidden');\n\n const params = new URLSearchParams();\n params.append('text', text);\n params.append('languageCode', languageCode);\n\n fetch('/translate', {\n method: 'POST',\n body: params\n }).then(response => response.text())\n .then((translatedMessage) => {\n resultContainer.innerText = translatedMessage;\n });\n\n }", "function getTranslation() \n{\n\t$.ajax({\n\t\ttype: 'POST',\n\t\turl: 'https://cousteau.corbinmuraro.com:8888',\n\t\tdata: JSON.stringify(jsonObject),\n\t\tcontentType: 'application/json',\n\t\tdataType: \"json\",\n\t\tsuccess: replacePhrases,\n\t\terror: function (xhr, status, error) {\n\t\t\tconsole.log('Error: ' + error.message);\n\t\t}\n\t});\n}", "async handleNewWord(word) {\n var saved = () => {\n const url = document.location.href;\n const dictionaryKey = `${url}.dictionary`;\n\n this.log(`Dictionary updated. Dictionary length = ${this.dictionary.length}`);\n\n let sendMessage = browser.runtime.sendMessage({command: \"updateWordList\", dictionaryKey: dictionaryKey});\n sendMessage.then(responce => {\n this.textManager.highlightWords(this.dictionary);\n }, error => {this.error(error)});\n };\n\n var fail = (error) => {\n this.error(`Failed to update dictionary: ${error}`);\n };\n\n let translated = \"-\";\n try {\n translated = await this.translator.translate(word, \n this.pageLanguage, this.browserLanguage);\n } catch(e) {\n this.error(this.error);\n return;\n }\n\n this.dictionary.push({\n text: word, \n translated: translated, \n language: this.pageLanguage,\n id: this.dictionary.length\n });\n \n this.saveDictionary().then(saved, fail);\n }", "async function submitWord(evt) { \n evt.preventDefault();\n if (!canSubmit) {\n return;\n }\n\n word_guess = $(\"#word-guess\").val();\n\n response = await axios.get(\"/check-word\", {\n params:\n {word: word_guess}\n });\n\n responseObj = response.data.result;\n // decide what to append to site\n message = generateMessage(responseObj);\n appendMessage(message)\n $(\"#word-guess\").val(\"\")\n}", "function getTranslationRequest() {\n console.log(document.getElementById(\"input\").value);\n let url = \"/translate?english=\"+document.getElementById(\"input\").value;\n let xhr = createCORSRequest('GET', url);\n\n if(!xhr){\n alert('CORS not supported');\n return;\n }\n xhr.onload = function() {\n let res = xhr.responseText; // gives translation\n document.getElementById('output').textContent = res;\n console.log(res);\n }\n xhr.onerror = function() {\n alert('Error');\n }\n xhr.send();\n}", "function Translate(){\n\t\t$('.content').html('');\n\t\t$('.loader').fadeIn();\n\t\tvar search = $('#wordinput_manual').val();\n\t\tvar from = $('#fromLanguage').val(); \n\t\tvar to = $('#toLanguage').val();\n\t\tvar postData = \"action=translate&search=\"+search+\"&from=\"+from+\"&to=\"+to;\n\t\t//alert(postData);\n\t\t$.ajax({\n\t\t\ttype:'POST',\n\t\t\tdataType:'json',\n\t\t\turl:'translate.php',\n\t\t\tdata:postData,\n\t\t\tsuccess:function(data){\n\t\t\t\t$('.loader').fadeOut();\n\t\t\t\t\n\t\t\t\t$(\"#fromLanguage option\").each(function(){\n\t\t\t\t\tif($(this).val()==data.source){\n\t\t\t\t\t\t$(this).attr(\"selected\",\"selected\"); \n\t\t\t\t\t\tif( data.destination=='ur'){\n\t\t\t\t\t\t\t$('.content').css('text-align','right');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$('.content').css('text-align','left');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t$('.content').html(data.translation);\n\t\t\t}\n\t\t});\n\t}", "function translate(msg) {\n\t\t\t\tvar text={};\n\t\t\t\t$.post({\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\tdata: JSON.stringify(msg),\n\t\t\t\t\tcontentType: 'application/json',\n\t\t\t\t\turl: 'https://cloudibmreutlingenm.eu-de.mybluemix.net/translate',\n\t\t\t\t\tasync: false,\n\t\t\t\t\tsuccess: function(data) {\n\t\t\t\t\t\tconsole.log('success: ',data);\t\n\t\t\t\t\t\tgetTone(data.message);\n\n\t\t\t\t\t\tif(data.isFile!=null){\n\t\t\t\t\t\t\ttext=data;\n\t\t\t\t\t\t}else addMessage(data);\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\t\n\t\t\t\treturn text;\n\t\t\n\t\t}", "function TranslateAuto(){\t\n\t\t// $('#audioplayer').remove();\n\t\t$('.content').html('');\n\t\t$('.loader').fadeIn();\n\t\t$('#detecting').attr('selected','selected');\n\t\t$('#detecting').html('detecting ...');\n\t\t\n\t\tvar search = $('#wordinput').val();\n\t\tvar from = $('#fromLanguage').val();\n\t\tvar to = $('#toLanguage').val();\n\t\tvar postData = \"action=translate&search=\"+search+\"&from=\"+from+\"&to=\"+to;\n\t\t//alert(postData);\n\t\t$.ajax({\n\t\t\ttype:'POST',\n\t\t\tdataType:'json',\n\t\t\turl:'translate.php',\n\t\t\tdata:postData,\n\t\t\tsuccess:function(data){\n\t\t\t\t$('.loader').fadeOut();\n\t\t\t\t// var src= \"http://thecoresol.com/translation_design/\"+data.mp3File;\n\t\t\t\t// var audio = '<audio controls id=\"audioplayer\" style=\"visibility:hidden;\"><source src=\"'+src+'\" type=\"audio/mp3\" >Your browser does not support the audio element.</audio>';\n\t\t\t\t //alert(audio);\n\t\t\t\t// $(audio).insertAfter(\".meanings\");\n\t\t\t\t$(\"#fromLanguage option\").each(function(){\n\t\t\t\t\tif($(this).val()==data.source){\n\t\t\t\t\t\t$(this).attr(\"selected\",\"selected\"); \n\t\t\t\t\t\tif( data.destination=='ur'){\n\t\t\t\t\t\t\t$('#speak').hide();\n\t\t\t\t\t\t\t$('.content').css('text-align','right');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$('#speak').show();\n\t\t\t\t\t\t\t$('.content').css('text-align','left');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t$('.content').html(data.translation); \n\t\t\t}\n\t\t});\n\t}", "function translate_with_condition(highlighted, direction){\n var data = {prompt:highlighted, input:direction};\n var url = \"http://localhost:8080\";\n\n try {\n postData(url,data).then(data => {\n console.log(data)\n })\n /*.then(\n swapText(highlighted, data) \n )*/; \n } catch (error) {\n console.log('there was an error.');\n } \n}", "function translate(str){\n\treturn str;\n}", "onTranslation() {\n }", "function clickEventHandler() {\n\n var inputText = textInput.value; // Taking input\n\n fetch(getTranslationURL(inputText))\n .then(response => response.json())\n .then(json => {\n var translatedText = json.contents.translated;\n outputDiv.innerText = translatedText;\n })\n .catch(errorHandler)\n}", "function get_word_vi(id){\n $.ajax({\n url: '/get_word_vi.json',\n contentType: \"application/json; charset=utf-8\",\n data:{id:id},\n dataType:'json',\n success: function(data) {\n length = data.length;\n var text=\"\";\n var word = data[0];\n text +='<div class=\"vocabulary\">'+word.word_vietnamese+'</div>';\n if(word.sound_word && word.sound_word!=\"\"){\n text +='<a href=\"javascript:void(0)\" onclick=\"playSound(\\'/vietnamese/'+word.sound_word+'\\');\">';\n text +='<img src=\"/images/icon_sound.ico\" class=\"img_sound\">';\n text +='</a>';\n }\n text +='<br>';\n text+='<ul>';\n var translates = data[1];\n var ts_length= translates.length;\n for (var i = 0; i<ts_length; i++){\n text+='<li>'+translates[i]+'</li>';\n }\n text+='</ul>';\n $(\"#word\").html(text);\n set_tbdy_ex(data[2]);\n }\n });\n}", "async function translateAllMessages(messages, srclang, trglang, memoryId) {\n let defaultClient = LiltNode.ApiClient.instance;\n // Configure API key authorization: ApiKeyAuth\n let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];\n // let APIKey = window.sessionStorage.getItem(\"APIKEY\");\n let APIKey = window.localStorage.getItem(\"LILTAPIKEY\");\n if (!APIKey) {\n handleError(\"No API Key Found\");\n return;\n }\n ApiKeyAuth.apiKey = APIKey;\n // Uncomment the following line to set a prefix for the API key, e.g. \"Token\" (defaults to null)\n // ApiKeyAuth.apiKeyPrefix = 'Token';\n // Configure HTTP basic authorization: BasicAuth\n let BasicAuth = defaultClient.authentications['BasicAuth'];\n BasicAuth.username = APIKey;\n BasicAuth.password = APIKey;\n\n let apiInstance = new LiltNode.TranslateApi();\n\n let promises = []\n\n for (let index = 0; index < messages.length; index++) {\n let promise = translateSingle(apiInstance, messages[index], srclang, trglang, memoryId);\n promises.push(promise);\n }\n\n let translatedMessages = await Promise.all(promises);\n return translatedMessages;\n}", "function requestTranslation() {\n var messageTexts = document.getElementsByClassName(\"message-text\");\n var messageContainers = document.getElementsByClassName(\"message-translated\");\n const languageCode = document.getElementById('language').value;\n if(languageCode == \"orig\"){\n for (var i = 0; i < messageTexts.length; i++) {\n messageTexts[i].classList.remove('hidden');\n messageContainers[i].classList.add('hidden');\n }\n } else {\n for (var i = 0; i < messageTexts.length; i++) {\n translateElement(messageTexts[i], messageContainers[i], languageCode);\n }\n }\n }", "function sayIt(translator) {\n let phrase = translator(\"Hello\");\n console.log(phrase);\n}", "function translate(){\r\n\tvar newPhrase = document.getElementById(\"usr\").value.split(\" \"); // gets an array of strings, each element of the array is one word.\r\n\tvar res = \"\";\r\n\t\r\n\t// For each element in array, get translation. \r\n\tfor(var i=0; i<newPhrase.length; i++){\r\n\t\tres += printLatinWord(newPhrase[i]);\r\n\t}\r\n\r\n\t// Now the old phrases are collected, and this new phrase is put at the top of the text area, with the old phrases following it.\r\n\tvar oldPhrases = document.getElementById(\"phrases\").value;\r\n\toldPhrases = res + \"\\n\" + oldPhrases;\r\n\tdocument.getElementById(\"phrases\").value = oldPhrases;\r\n}", "function modernDictionaryTranslate(texto)\n{ \n\nvar smiley = /\\:\\)/gi;\nvar happy = /\\:D/gi;\nvar sad = /\\:\\(/gi;\nvar reallyHappy = /\\=D/gi;\n if(language==0)\n {\n texto=texto.replace(/\\bpz\\b/gi,\"pues\");\n texto=texto.replace(/\\bk\\b/gi,\"que\");\n texto=texto.replace(/\\bgad\\b/gi,\"Gracias a dios\");\n texto=texto.replace(/\\bntc\\b/gi,\"No te creas\");\n texto=texto.replace(/\\bbn\\b/gi,\"bien\");\n texto=texto.replace(/\\btmb\\b/gi,\"tambien\");\n texto=texto.replace(/\\bhm*\\b/gi,\"no me convences\");\n texto=texto.replace(/\\bvd\\b/gi,\"verdad\");\n // texto=texto.replace(/\\b[ha,he]+\\b/gi,\"jajaja\"); this one is failing when it finds an \"a\" alone, it replaces the \"a\" with the \"jajaja\"\n texto=texto.replace(smiley,\"estoy feliz\");\n texto=texto.replace(happy,\"estoy sonriendo,\");\n texto=texto.replace(sad,\"estoy triste,\");\n texto=texto.replace(reallyHappy,\"estoy muy feliz,\");\n \n }\n else if(language==1)\n {\n texto=texto.replace(/\\blmfao\\b/gi,\"laughing my fucking ass off\");\n texto=texto.replace(/\\bk\\b/gi,\"que\");\n texto=texto.replace(/\\bya\\b/gi,\"you\");\n texto=texto.replace(smiley,\"I feel happy\");\n texto=texto.replace(happy,\"I am smiling,\");\n texto=texto.replace(sad,\"I feel sad,\");\n texto=texto.replace(reallyHappy,\"I feel really happy,\");\n }\n texto=texto.replace(/\\bxD\\b/gi,\"me muero de risa\");\n texto=texto.replace(/\\b=D\\b/gi,\"estoy felíz\");\n texto=texto.replace(/\\b:D\\b/gi,\"sonrío\");\n\n\n return texto;\n}", "function get_word_ja(id){\n $.ajax({\n url: '/get_word_ja.json',\n contentType: \"application/json; charset=utf-8\",\n data:{id:id},\n dataType:'json',\n success: function(data) {\n length = data.length;\n var text=\"\";\n var word = data[0];\n text +='<div class=\"vocabulary\">'+word.word_japanese+'</div>';\n if(word.sound_word && word.sound_word!=\"\"){\n text +='<a href=\"javascript:void(0)\" onclick=\"playSound(\\'/vietnamese/'+word.sound_word+'\\');\">';\n text +='<img src=\"/images/icon_sound.ico\" class=\"img_sound\">';\n text +='</a>';\n }\n text +='<br>';\n text+='<ul>';\n var translates = data[1];\n var ts_length= translates.length;\n for (var i = 0; i<ts_length; i++){\n text+='<li>'+translates[i]+'</li>';\n }\n text+='</ul>';\n $(\"#word\").html(text);\n set_tbdy_ex(data[2]);\n }\n });\n}", "function eachWord(array){\n var translatedArray = [];\n\n array.forEach(function(word) {\n translatedArray.push(translate(word));\n })\n\n var translatedString = translatedArray.join(\" \");\n translatedString = translatedString.toLowerCase();\n var returnString = translatedString.charAt(0).toUpperCase() + translatedString.substr(1);\n\n return returnString;\n}", "function findSlang(req, res, next) {\n console.log(req.query);\n try{\n const text = await translate(req.query.word, req.query.lang);\n // e.g. req.query.lang = 'hi' (Hindi) \n // req.query.word = \"Awesome\" (English - auto detection)\n res.send(text); // Jhakaas\n }\n catch(err){\n res.send(err.message); \n }\n next();\n}", "function rxTranslate()\n{\n codeProcessor.translate();\n}", "detectLanguageForText(text) {\n return new Promise((res, rej) => {\n setTimeout(() => cld.detect(text).then(res, rej), 10);\n });\n }", "function translating(language) {\n return regeneratorRuntime.wrap(function translating$(context$1$0) {\n while (1) switch (context$1$0.prev = context$1$0.next) {\n case 0:\n console.log('Winding up the gears...');\n context$1$0.next = 3;\n return null;\n\n case 3:\n console.log('Finding a copy of ' + language + ' dictionary');\n context$1$0.next = 6;\n return null;\n\n case 6:\n console.log('Writing out a response...');\n\n case 7:\n case 'end':\n return context$1$0.stop();\n }\n }, marked0$0[0], this);\n}", "function tweetIt(txt, id){\n\n var rawText = txt.toString();\n var handle = \"@H3CZ\"\n var tweetID = id;\n\n var englishText = replaceSpecialChars(rawText);\n \n\n async function getTranslatedText(textToTranslate, idOfTweet, userHandle) {\n var spanishText = await translateText(textToTranslate, 'es');\n console.log(\"Tweeting out: \" + spanishText + \"\\n\");\n\n T.post('statuses/update', {in_reply_to_status_id: idOfTweet, status: userHandle + ' ' + spanishText}, tweeted);\n\n }\n\n\n getTranslatedText(englishText, tweetID, handle);\n\n \n function tweeted(err, data, response){\n if(err){\n console.log(\"Something went wrong!\\n\");\n }\n else{\n console.log(\"It worked!\\n\");\n }\n }\n}", "get(text) {\n const config = this.getConfig();\n\n if (this.config.providerName === ProviderTypes.Google) {\n const googleTranslator = new GoogleTranslator(config);\n return googleTranslator.translate(text)\n .then(translated => this.htmlEntities(translated));\n }\n\n if (this.config.providerName === ProviderTypes.Microsoft) {\n const microsoftTranslator = new MicrosoftTranslator(config);\n return microsoftTranslator.translate(text)\n .then(translated => this.htmlEntities(translated));\n }\n\n return new Promise((resolve) => { resolve(text); });\n }", "function searchWord(word) {\n //get the define\n let content = new Promise((resolve, reject) => {\n let options = {\n \"method\": \"GET\",\n \"hostname\": \"www.ldoceonline.com\",\n \"path\": \"/dictionary/\" + word\n };\n let req = https.request(options, function (res) {\n let chunks = [];\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n res.on(\"end\", function () {\n let body = Buffer.concat(chunks);\n let $body = cheerio.load(body.toString());\n let pos = \"[\" + $body('.POS').first().text().trim() + \"]\";\n let pron = \"[\" + $body('.PRON').first().text().replace(/,/g, '-').trim() + \"]\";\n let define = $body('#' + word + '__1 .DEF').text().replace(/,/g, '.');\n let mp3Url = 'https://www.ldoceonline.com/' + $body('.brefile').first().attr('data-src-mp3');\n let exp = $body('#' + word + '__1 .EXAMPLE').first().text().replace(/,/g, '.').replace(word, '[xxx]').trim();\n if (exp.length == 0) {\n exp = $body('.cexa1g1[info=UK]').first().text().replace(/,/g, '.').replace(word, '[xxx]').trim();\n }\n saveMp3File(mp3Url, word);\n let result = new WordDefine(word, pos, define, pron, exp);\n resolve(result);\n });\n });\n req.end();\n });\n return content;\n}", "function transformTranslateWords() {\n\n console.log('hello');\n\n let paragraphs = document.querySelectorAll('p');\n console.log(paragraphs);\n\n\n for (let i=0; i<paragraphs.length; i++) {\n\n let translatedWord = new RegExp(/\\[<em>([\\w ]+)<\\/em>]/, 'gi'); // a translated word has the form '[<em>' + any number of letter, tiret or space + '</em>]'\n\n if (translatedWord.exec(paragraphs[i].innerHTML) !== null) {\n translatedWord = new RegExp(/\\[<em>([\\w ]+)<\\/em>]/, 'gi'); // a translated word has the form '[<em>' + any number of letter, tiret or space + '</em>]'\n let word = translatedWord.exec(paragraphs[i].innerHTML);\n console.log(word[0]);\n\n // Ici il faut remplacer word[0] par <span class=\"translatedWord\"> + word[0] + </span>\n // Probablement avec la fonction replace plutôt que exec, voir https://stackoverflow.com/questions/23833597/javascript-regex-exec-and-replace\n // Attention il y a un genre de bug avec exec, une fois qu'on a utilisé exec() il faut toujours réinitialiser la regex\n // Voir : https://stackoverflow.com/questions/4724701/regexp-exec-returns-null-sporadically\n }\n\n }\n\n\n}", "function handleOCRResult(result) {\n const destLang = document.getElementById('language-dest-select').value;\n const srcLang = document.getElementById('language-src-select').value;\n\n console.log('Destination langauge: ' + destLang);\n console.log('Source language: ' + srcLang);\n\n const boundingBoxes = {}; // Object containing bounding boxes, indexed by line ID.\n\n // Array.prototype.map function, return new array from lines array to be sent via Ajax.\n const json = result.lines.map((line, index) => {\n boundingBoxes[index] = line.bbox;\n\n const obj = {};\n obj.id = index;\n obj.text = removeJunkText(line.text);\n obj.source_language = srcLang;\n obj.destination_language = destLang;\n return obj;\n });\n\n console.log(boundingBoxes);\n console.log(json);\n jsonRequestData = {translate: json}; //Need top-level translate key\n\n translateReq(jsonRequestData)\n .then(translatedText => {\n console.log(translatedText);\n handleServerResponse(translatedText, boundingBoxes);\n })\n .catch(error => {\n console.error(error);\n });\n}", "function processWord(URL) {\n\tvar word = getWordFromURL(URL)\n\tif (word) {\n sendMessage(word);\n\t}\n}", "say(text) {\n \t\tlet queue = []\n \t\ttext.split(/[.,&\"\\n]/).forEach((shortText) => {\n \t\tqueue.push(shortText)\n \t\t//queue.push(this.__sayThis(shortText))\n \t\t})\n \t\treturn this.__sayNext(queue).then(() => {\n \t\t\tconsole.log('all my speaking should be done now')\n \t\t})\n\t}", "function translate(txt){\r\n\t\t\r\n\t\tfor(i=29;i<41;i++){\r\n\t\t\t//Armamos las palabras temporalmente\r\n\t\t\tword = '';\r\n\t\t\tfor(x=0;x<Zahlen[i].length;x++){\r\n\t\t\t\tword += c(Zahlen[i][x]);\r\n\t\t\t}\r\n\t\t\ttxt.innerHTML = txt.innerHTML.replace(word,eval(\"gid\"+Cid[i]));\r\n\t\t}\r\n\t\ttxt.innerHTML = txt.innerHTML.replace(chM,Metal,'g');\r\n\t\ttxt.innerHTML = txt.innerHTML.replace(chC,Crystal,'g');\r\n\t\ttxt.innerHTML = txt.innerHTML.replace(chD,Deuterium,'g');\r\n\t\ttxt.innerHTML = txt.innerHTML.replace(chE,Energy,'g');\r\n}", "function read(txt){\n\t\n //this part is going to be sweet because I have to separate the txt string into chunks of 100 chars in order for the google tts service\n //to provide me with texts longer than 100 chars translated to voice.\n play_sound(\"http://translate.google.com/translate_tts?ie=UTF-8&q=\"+encodeURI(txt)+\"&tl=\"+languages[language]+\"&total=1&idx=0prev=input\"); \n}", "function translateToFinnish() {\r\n var givenWord = document.getElementById(\"txtEnglishWord\").value;\r\n givenWord = givenWord.toLowerCase();\r\n \r\n var outputText = \"unknown word\";\r\n var wordFound = false;\r\n \r\n for (var index = 0; wordFound === false && index < englishWords.length; index++) {\r\n \r\n if (englishWords[index] === givenWord) {\r\n outputText = finnishWords[index];\r\n wordFound = true;\r\n }\r\n } \r\n \r\n document.getElementById(\"pOutput\").innerHTML = outputText;\r\n}", "async function sendVerifiedTranslatedMessage() {\n let originalMessage = document.getElementById(\"messageInput\").value;\n if (originalMessage) {\n let option = document.getElementById('languageChoice').value;\n if (!(option in memoriesDict)) {\n handleError(\"No Option Selected\");\n return;\n }\n let reverseOptionArr = option.split(\" to \"); \n let reverseOption = reverseOptionArr[1] + \" to \" + reverseOptionArr[0];\n let translateInfo = memoriesDict[reverseOption];\n\n const url = serverAddress + '/front/reply/' + frontContext.conversation.id;\n let bodyParams = {\n message: originalMessage,\n memoryID: translateInfo[2],\n LiltAPIKey: window.localStorage.getItem(\"LILTAPIKEY\")\n }\n const options = {\n method: 'POST',\n body: JSON.stringify(bodyParams),\n headers: {Accept: 'application/json', 'Content-Type': 'application/json'},\n agent: httpsAgent,\n };\n\n fetch(url, options)\n .then(res => res.json())\n .catch(err => handleError('error:' + err));\n } else {\n handleError(\"No message entered\");\n }\n}", "function sameText(response) {\n console.log(response);\n // document.getElementById(\"translation\").innerHTML += \"<br>\" + response.data.translations[0].translatedText;\n addMessageLangLog('Other', response);\n \n //add the checkbox detction to find if user wantd the msg to be converted from text to speech or not \n if(text2speechflag==true)\n texttospeech(response); \n //$('#MessageLangHistoryBox').text( $('#MessageLangHistoryBox').text() +'\\n'+ 'other : '+ response.data.translations[0].translatedText );\n}", "function nextWord() {\n let words = RiTa.tokenize(txt); // split into words\n\n // loop from a random spot\n let r = floor(random(0, words.length));\n for (let i = r; i < words.length + r; i++) {\n let idx = i % words.length;\n let word = words[idx].toLowerCase();\n if (word.length < 3) continue; // len >= 3\n\n // find related words\n let pos = RiTa.tagger.allTags(word)[0];\n let rhymes = RiTa.rhymes(word, { pos });\n let sounds = RiTa.soundsLike(word, { pos });\n let spells = RiTa.spellsLike(word, { pos });\n let similars = [...rhymes, ...sounds, ...spells];\n\n // only words with 2 or more similars\n if (similars.length < 2) {\n console.log(\"No sims for \" + word);\n continue;\n }\n\n // pick a random similar\n let next = RiTa.random(similars);\n\n if (next.includes(word) || word.includes(next)) {\n continue; // skip substrings\n }\n if (/[A-Z]/.test(words[idx][0])) {\n next = RiTa.capitalize(next); // keep capitals\n }\n\n console.log(\"replace(\" + idx + \"): \" + word + \" -> \" + next);\n\n words[idx] = next; // do replacement\n break;\n }\n\n // recombine into string and display\n txt = RiTa.untokenize(words);\n\n if (counter % 10 === 0) // counter\n sentimentAnalysis(txt);\n \n setTimeout(nextWord, 1000);\n\n counter++;\n}", "function translateURL(text) {\n return url + '?' + 'text=' + text\n}", "loadWord() {\n\t\tthis.PlayerService.save(this.player)\n\t\t.then(result => {\n\t\t\tthis.WordsService.words()\n\t\t\t.then(response => {\n\t\t\t\tthis.words = response.data;\n\t\t\t\tthis.stateGame = \"game\";\n\t\t\t\tlet word = this.randomWords();\n\t\t\t\tthis.buildWord(word);\n\t\t\t})\n\t\t});\n\t}", "function translatePageToEnglish() {\n $(\"#title\").html(\"Bite-Size Inspiration\");\n $(\"#subtitle\").html(\"Fill up on your daily inspiration with this mini-project for practicing languages.\")\n $(\"#get-quote\").html(\"Tell me another\");\n $(\"#translate-english\").hide();\n $(\"#translate-spanish\").show();\n $(\"#translate-french\").show();\n quoteArray = quoteArrayEn;\n twitterHashtags = twitterHashtagsEn;\n displayRandomQuote();\n}", "function translatePageToSpanish() {\n $(\"#title\").html(\"Bocaditos de inspiración\");\n $(\"#subtitle\").html(\"Llenáte con inspiración al día con este pequeño proyecto para practicar idiomas.\")\n $(\"#get-quote\").html(\"Decíme otra\");\n $(\"#translate-english\").show();\n $(\"#translate-spanish\").hide();\n $(\"#translate-french\").show();\n quoteArray = quoteArrayEs;\n twitterHashtags = twitterHashtagsEs;\n displayRandomQuote();\n}", "constructor(englishText){\n this.baseUrl=`https://translate.yandex.net/api/v1.5/tr.json/translate?key=trnsl.1.1.20210929T092515Z.b198b0b39cf9f0ae.e49acfa0ca099ae922d25ff8c79b9fa08b456abe&text=${englishText}&lang=tr`\n this.translateApi = axios.create({\n baseURL : this.baseUrl,\n });\n }", "function pickWords()\n{\n\tfor (var i = 0; i < textNodes.length; i++)\n\t{\n\t\t// splits string into array of word strings\n\t\tvar stringArray = textNodes[i].split(\" \");\n\n\t\tvar j = Math.floor(Math.random() * 15) + 2;\n\t\twhile (j < stringArray.length)\n\t\t{\n\t\t\t// TODO: make translation snippets randomly varied in word length, don't cut across sentences\n\t\t\t// \t\t at some point, make snippets logical phrases for better translation\n\t\t\t// \t\t (e.g. \"and then he said\" instead of \"cat and then\")\n\t\t\tvar phraseToTranslate = stringArray[j] + \" \" + stringArray[j+1] + \" \" + stringArray[j+2];\n\t\t\tif (validate(phraseToTranslate))\n\t\t\t{\n\t\t\t\tvar item = {\n\t\t\t\t\tuntranslated : phraseToTranslate,\n\t\t\t\t\ttranslated : \"\"\n\t\t\t\t};\n\n\t\t\t\tjsonObject.phraseArray.push(item);\n\t\t\t}\n\n\t\t\tj += Math.floor(Math.random() * 90) + 80;\n\t\t}\n\t}\n\n\tvar arrLength = jsonObject.phraseArray.length.toString();\n\tchrome.runtime.sendMessage({ type: \"setBadge\", badgeText : arrLength });\n\n\tloadLangs();\n}", "function showAutotranslatedString(english, translated) {\n $(\"#results\").append(`<p>Auto-translated <em>${english}</em> to <em>${translated}</em></p>`)\n}", "function phone( phrase /*,languages*/) {\n var pairs = languageChain( [].splice.call(arguments, 1) ),\n i = pairs.length-1;\n\n // Last event from the chain\n dataHandler.once( eventName(pairs[i].from, pairs[i].to), function(data) {\n console.log( data.responseData.translatedText );\n });\n\n // Register events that trigger translation of the next sequence when we \n // recieve data from the api.\n while( i-- ) dataHandler.once( eventName(pairs[i].from, pairs[i].to), \n next(pairs[i+1].from, pairs[i+1].to, i) );\n // Start the chain.\n translate( phrase, pairs[0].from, pairs[0].to );\n}", "function initBingTranslatorOnDelay () {\r\n setTimeout (initBingTranslator, 666);\r\n}", "function queryHandler(req, res, next) {\n let url = req.url;\n console.log(url);\n //let isQuery = url.substring(1, 6);\n // if query then reachgoogle api, else its an database request.\n let qObj = req.query; // query is an object\n console.log(qObj);\n if (qObj.word != undefined) {\n // THIS IS WHERE i TAKE TEXT FROM BROWSER AND SEND IT TO THE API\n // ALSO HUNDLE IT WHEN TRANSLATION IS RECIEVED BACK FROM API SERVER\n // res.json() is triggered inside this fucntion.\n reachGoogleApi(qObj.word, res);\n } else {\n next();\n }\n}", "async function translate(file_path, book_id, trans_langs) {\n var arguments = [];\n arguments.push(file_path);\n arguments.push(book_id);\n for (var i = 0; i < trans_langs.length; i++) {\n arguments.push(trans_langs[i]);\n }\n console.log(arguments);\n let options = {\n mode: \"text\",\n executable: \"python3.9\",\n pythonOptions: [\"-u\"], // get print results in real-time\n scriptPath:\n \"./public/translation\",\n args: arguments, //An argument which can be accessed in the script using sys.argv[1]\n };\n console.log(\"entered the async\")\n try{\n await PythonShell.run(\n \"ParseAndTranslate.py\",\n options,\n function (err, result) {\n if (err) throw err;\n //result is an array consisting of messages collected\n //during execution of script.\n console.log(\"result: \", result.toString());\n for(var i = 0 ; i < trans_langs.length ; i++){\n console.log(\"doing something in this loop for downloads\");\n uploadTranslatedBook(book_id, trans_langs[i]);\n }\n }\n );console.log(\"ok this is it\")} catch (error){\n console.log(\"ded\")\n console.log(error)\n }\n console.log(\"exiting the async\")\n \n}", "function translateDictionary(info){\r\n var searchstring = info.selectionText;\r\n chrome.tabs.create({url: \"https://translate.google.com.au/#view=home&op=translate&sl=en&tl=zh-CN&text=\" + searchstring})\r\n}", "function queryWord(oldword, callback) {\n\n\tif (dbg) {\n\t\tcallback('testword');\n\t\treturn;\n\t}\n\n\tvar num = rand.integer(0, 365713);\n\n\t//let wordPromise = new Promise(function (fulfill, reject) {\n\t/*query db for a word given a random id */\n\t//db.serialize(function() {\n\tdb.get(\"SELECT word as word FROM Words WHERE id=\" + num,\n\t\tfunction(err, row) {\n\t\t\tif (err) {\n\t\t\t\tdbg && console.log(err);\n\t\t\t\t//\treject(err);\n\t\t\t} else {\n\t\t\t\t//\tfulfill(row.word);\n\t\t\t\ttry {\n\t\t\t\t\tif (row != undefined) {\n\t\t\t\t\t\tcallback(row.word);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcallback(oldWord);\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {\n\t\t\t\t\tconsole.log('in case happened');\n\t\t\t\t\ti = rand.integer(0, 19);\n\t\t\t\t\tcallback(inCase[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t//});\n\t//});\n\n\t//wordPromise.then(function(word) {\n\t//\tcallback(word);\n\t//});\n\n\tdbg && console.log(num);\n\n}", "function translate(text, tab) {\n\tchrome.storage.sync.get({\n \ttargetLanguage: 'en'\n \t}, function(items) {\n \tconst url = `http://translate.google.com/#auto/${items.targetLanguage}/${encodeURIComponent(text)}`;\n \t\tchrome.tabs.create({url: url, index: tab.index + 1});\n \t});\n}", "function randomWord(){\r\n apiUrl = \"http://api.wordnik.com/v4/words.json/randomWord?api_key=v6cirzky1unhnpi8vharo85m04gbtlhidut11axk3a1gmpkzp\"\r\n fetch(apiUrl)\r\n .then(function(u){\r\n return u.json();\r\n })\r\n .then(function(data){\r\n currentWord.innerHTML = data.word;\r\n })\r\n }", "function TranslatedPhrase(string, translation){\n this.content=string\n this.translation=translation\n\n //returns translation in lowercase for palindrome testing.\n this.lowerCaseContent=function lowerCaseContent(){\n return this.processor(this.translation)\n }\n}", "async function getSynonyms(word) {\n const { data } = await axios.get(\n `https://api.datamuse.com/words?rel_syn=${word}`\n );\n return data.map(item => item.word);\n}", "async function getDem() {\n\tconst res = await fetch('https://random-words-api.vercel.app/word');\n\tlet data = await res.json();\n\tlet word = data[0].word;\n\n\treturn word;\n}", "function RequestForTranslation(name, status, wordcount, date, deadline, translation) {\n this.name = name;\n this.status = status;\n this.wordcount = wordcount;\n this.date = date;\n this.deadline = deadline;\n this.translation = \"Lorem ipsum I'm the text from \" + this.name + \" but already translated (a bit) into your first language!\";\n}", "async function init() {\n const word = await API.getRandomWord();\n console.log(word);\n wordH2.textContent = word.mot;\n checkInputs(word);\n}", "async function getNewWord() {\n const url = \"https://sat-words-api.herokuapp.com/api/v1/words/random\"\n\n const response = await axios.get(url)\n console.log(response.data)\n updatePage(response.data)\n\n}", "async function scanForTextWord(result) {\n if (Array.isArray(result)) {\n for (var i = 0; i < result.length; i++) {\n if (typeof(result[i]) == \"string\" && result[i] != \"\") {\n await myTextWord.push(result[i]);\n }\n else {\n await scanForTextWord(result[i]);\n }\n }\n return;\n }\n else if (typeof(result) == \"object\") {\n for (var property in result) {\n if (result.hasOwnProperty(property)) {\n if (typeof(result[property]) == \"string\") {\n if ((property == \"w:t\" || property == \"_\") && result[property] != \"\") {\n await myTextWord.push(result[property]);\n }\n }\n else {\n await scanForTextWord(result[property]);\n }\n }\n }\n return;\n }\n}", "function translatePageToFrench() {\n $(\"#title\").html(\"Les petits motifs d'inspiration\");\n $(\"#subtitle\").html(\"Remplis-toi avec l'inspiration du jour avec ce petit projet pour pratiquer les langues.\")\n $(\"#get-quote\").html(\"Dis-moi un autre\");\n $(\"#translate-english\").show();\n $(\"#translate-spanish\").show();\n $(\"#translate-french\").hide();\n quoteArray = quoteArrayFr;\n twitterHashtags = twitterHashtagsFr;\n displayRandomQuote();\n}", "async function loadWord(code, letter, position) {\n try {\n response = await db.addLetter(code, letter, position);\n io.to(code).emit(\"load word\", response);\n } catch (error) {\n console.error(\"Could not update word\" + error);\n }\n }", "function translateToPigLatin(word) { //defining function to break up the word, add 1st to end and ay to end\n return word.slice(1, word.length) + word[0] + \"ay\";\n}", "function translate(index)\n\t{\t \n\t\tvar values = dev2_dictionary;\n\t\tif(typeof values[index] == 'undefined'){\n if(index)\n\t\t\talert('Localization is done');\n else\n alert('There is nothing to localize, probably you have to add some localization data or check Force Overwrite')\n\t\t}else{\n\t\t\tvar obj = values[index];\n\t\t\tvar $source = $('#source');\n\t\t\t$source.val(obj.text);\n\t\t\tsetTimeout(function(){\n\t\t\t\tvar $resbox = $('#result_box');\n\t\t\t\tvar translation = $resbox.text();\n\t\t\t\tsend_translation(obj.id, translation, index);\n\t\t\t}, 5000);\n\t\t}\n\t}", "function conversationmessage(message_stt){\r\n\r\n //Configuring the Context variable of Watson Conversation\r\n var turn = {\r\n input : {\r\n text : message_stt\r\n },\r\n workspace_id : config.watson_conversation.workspace_id,\r\n context : {\r\n location : \"#location#\"\r\n }\r\n }\r\n \r\n //Starting the Watson Conversation\r\n tj._conversation.message(turn,function(err,response){\r\n if(err){\r\n console.log(err);\r\n } else { \r\n context = response.context; \r\n console.log(response);\r\n var response_parsing = response.output.text[0];\r\n var response_entity = parsing_conv_respone(response);\r\n console.log(response_entity);\r\n\r\n cloudantGetRequest(response_entity,function(rawdata){\r\n var current_chemical_loc = chemical_location(rawdata,response_entity); \r\n console.log(current_chemical_loc);\r\n if(current_chemical_loc === \"Out of Shelf\"){\r\n response_parsing = response_parsing.replace(\"#location#\", current_chemical_loc);\r\n response_parsing = response_parsing.replace(\"located in\",\"\");\r\n } else {\r\n response_parsing = response_parsing.replace(\"#location#\", current_chemical_loc);\r\n } \r\n locationLedGlow(current_chemical_loc);\r\n console.log(response_parsing);\r\n tj.speak(response_parsing);\r\n })\r\n\r\n \r\n }\r\n }) \r\n\r\nvar locationLedGlow = (location)=>{\r\n led.GPIOCleanUp(0);\r\n if(location === \"Out of Self\"){\r\n led.RGBLedBlink(0,100,100);\r\n setTimeout(()=>{\r\n led.GPIOCleanUp(0);\r\n },3000);\r\n } else if(location === \"B3142-Lab1\") {\r\n led.RGBLedBlink(100,0,100);\r\n } else {\r\n led.RGBLedBlink(100,100,0);\r\n }\r\n}\r\n \r\nprocess.on(\"SIGINT\",()=>{\r\n process.nextTick(function() {\r\n process.exit(0);\r\n }); \r\n led.GPIOCleanUp(0);\r\n })\r\n\r\n}", "onWordSelect(word) {\n AppStore.word = word;\n AppStore.translatedWord = AppStore.savedWords[word];\n browserHistory.push('/word');\n }", "async function getText(){\n fetch('./my_text.json')\n .then(res => {\n if (!res.ok) {\n throw Error(res.statusText);\n }\n return res.json();\n })\n .then(myJSON => {\n\n const elem = document.getElementById('muh-content')\n let stuffToRender = myJSON.paragraphs.reduce((accumulator, currentElem) => {\n return accumulator + '<div class=\"bilingual-box\">'\n + '<div class=\"language-from\" lang=\\''\n + LANGUAGE_FROM\n + '\\'>'\n + currentElem[LANGUAGE_FROM]\n + '</div>'\n\n + '<div class=\"language-to\" lang=\\''\n + LANGUAGE_TO\n + '\\'>'\n + currentElem[LANGUAGE_TO]\n + '</div>'\n\n + '<div class=\"commentary\" lang=\\''\n + LANGUAGE_FROM\n + '\\'>'\n + currentElem['comments']\n + '</div>'\n + '</div>'\n }, '');\n\n elem.innerHTML = stuffToRender;\n })\n .catch(error => {\n return {};\n });\n}", "function TranslatedPhrase(content, translation){\n this.content = content;\n this.translation = translation;\n\n this.processedContent = function processedContent(){\n return this.translation.toLowerCase();\n }\n}" ]
[ "0.6967398", "0.6781205", "0.673177", "0.6663395", "0.6585976", "0.6551727", "0.6538346", "0.642911", "0.642798", "0.6401345", "0.6400396", "0.6395564", "0.63945574", "0.63221025", "0.6307756", "0.6268592", "0.6268172", "0.6261275", "0.6248904", "0.6214733", "0.61789936", "0.6169453", "0.6165133", "0.6159421", "0.6157523", "0.61267394", "0.6123158", "0.60985637", "0.60920763", "0.6090008", "0.6043072", "0.6041892", "0.6022952", "0.5997654", "0.59791386", "0.59772253", "0.5967626", "0.59611744", "0.5945328", "0.5841326", "0.5834917", "0.58208525", "0.5809541", "0.5783466", "0.5776808", "0.5767023", "0.57662314", "0.57653534", "0.5761373", "0.5751461", "0.5737792", "0.57355267", "0.57332593", "0.5731449", "0.57271385", "0.57191896", "0.5716158", "0.57093775", "0.5703307", "0.57024664", "0.5696589", "0.5693768", "0.5678356", "0.56768125", "0.5665201", "0.5662053", "0.56568915", "0.56272167", "0.56252813", "0.5617462", "0.5616971", "0.56134105", "0.561226", "0.5609351", "0.55773246", "0.55754113", "0.55646527", "0.55592656", "0.555791", "0.55560786", "0.5522734", "0.5519204", "0.5511861", "0.5508808", "0.55026996", "0.5500816", "0.54959095", "0.54926485", "0.54911566", "0.5488459", "0.5488339", "0.5486226", "0.54860866", "0.54850703", "0.54841757", "0.54776955", "0.54742783", "0.5464692", "0.5461236", "0.5460343" ]
0.7156341
0
switches the display language of a word
function changeState(wordToChange) { var $wordToChange = $(wordToChange); if ($wordToChange.attr("language") === "original") { $wordToChange.css('color', 'blue') .text($wordToChange.attr("translation")) .attr("language", "translated"); } else { $wordToChange.css('color', 'blue') .text($wordToChange.attr("original")) .attr("language", "original"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setLocaleWording() {\n _D(\"Set locale wording...\");\n\n pn = options[\"lang\"] || G_DEFAULT_LANG;\n \n if( pn=='' ) {\n // use by system default.\n \n } else if( pn in _locale) {\n loc_list = {\n \"#dlist a\" : \"dlist\",\n \"#general a\" : \"general\",\n \"#langs a\" : \"langs\",\n \"#lang_desc\" : \"lang_desc\",\n \"#save\" : \"save\",\n \"#default\" : \"default\",\n \"#en\" : \"en\",\n \"#zh-TW\" : \"zh-TW\",\n \"#ja-JP\" : \"ja-JP\",\n \"#download_dir\" : \"download_dir\",\n \"#file_format\" : \"file_format\",\n \"#comment_file_format\" : \"comment_file_format\",\n \"#download_dir_btn\" : \"download_dir_btn\",\n \"#clear_all\" : \"delete_all_btn\",\n \"#comment_lang_en_span\" : \"en\",\n \"#comment_lang_jp_span\" : \"ja-JP\",\n \"#comment_lang_tw_span\" : \"zh-TW\",\n \"#comment_lang\" : \"comment_lang\",\n \"#if_file_exist\" : \"if_file_exist\",\n \"#overwrite\" : \"overwrite\",\n \"#saveNew\" : \"save_new\",\n \"#download_quality_mode\": \"download_quality_mode\",\n \"#high_quality\" : \"high_quality\",\n \"#low_quality\" : \"low_quality\",\n };\n \n for(var k in loc_list) {\n $(k).html( _locale[pn][loc_list[k]]);\n }\n }\n}", "function BrowserLanguage() {\n}", "function switchLanguage()\r\n{\r\n\t$('[data-translation]').each(function ()\r\n\t{\r\n\t\tvar text = $(this).attr('data-translation');\r\n\t\tvar oldText = $(this).text();\r\n\t\t$(this).attr('data-translation', oldText);\r\n\t\t$(this).text(text);\r\n\t});\r\n}", "function setlanguage(){\r\n\tif (getRequestParam(\"lang\") == \"de\") {\r\n\t\tshowGer()\r\n\t}\r\n\telse {\r\n\t\tshowEn()\r\n\t}\r\n}", "function switchLanguage(lang) {\n // Set the language to our TEXT module, updateText and reloadTable\n TEXT.setLang(lang);\n updateText();\n loadTable();\n}", "toggleLanguage(){\n\t\tconst langs = this.app.getService(\"locale\"); //dapatkan layanan lokal\n\t\t/*\n\t\tGunakan this.getRoot() untuk membuka widget Webix teratas di dalam JetView\n\t\tIni dia Toolbar\n\t\t*/\n\t\tconst value = this.getRoot().queryView(\"segmented\").getValue(); //dapatkan nilai tersegmentasi\n\t\tlangs.setLang(value); //atur nilai Lokal\n\t}", "[consts.SET_B_SHOW_CONTENT_LANG](state, val) {\n state.bShowContentLang = val;\n }", "function chooseLanguage(wordID) {\n\t\tsendButton('What language would you like to learn the word in?',\n\t\t\t[{title: 'A. 🇦🇪', payload: 'AR' + wordID}, {title: 'B. 🇨🇳', payload: 'CN' + wordID},\n\t\t\t{title: 'C. 🇫🇷', payload: 'FR' + wordID}, {title: 'D. 🇮🇹', payload: 'IT' + wordID},\n\t\t\t{title: 'E. 🇯🇵', payload: 'JP' + wordID}, {title: 'F. 🇪🇸', payload: 'ES' + wordID}]\n\t\t\t);\n\t}", "function set_language(lang) {\r\n\r\n if (_lang_code in _lang.strings)\r\n _lang_code = lang;\r\n\r\n }", "function selectStopwordLanguage (language) {\n switch (language) {\n case 'af':\n return sw.af\n case 'ar':\n return sw.ar\n case 'bn':\n return sw.bn\n case 'br':\n return sw.br\n case 'da':\n return sw.da\n case 'de':\n return sw.de\n case 'en':\n return sw.en\n case 'es':\n return sw.es\n case 'fa':\n return sw.fa\n case 'fi':\n return sw.fi\n case 'fr':\n return sw.fr\n case 'ha':\n return sw.ha\n case 'he':\n return sw.he\n case 'hi':\n return sw.hi\n case 'id':\n return sw.id\n case 'it':\n return sw.it\n case 'lgg':\n return sw.lgg\n case 'lggo':\n return sw.lggo\n case 'nl':\n return sw.nl\n case 'no':\n return sw.no\n case 'pl':\n return sw.pl\n case 'pt':\n return sw.pt\n case 'pa':\n return sw.pa\n case 'ru':\n return sw.ru\n case 'so':\n return sw.so\n case 'st':\n return sw.st\n case 'sv':\n return sw.sv\n case 'sw':\n return sw.sw\n case 'vi':\n return sw.vi\n case 'yo':\n return sw.yo\n case 'zu':\n return sw.zu\n }\n}", "function switchLanguage() {\n currentLang = (currentLang === 'en') ? 'ja' : 'en';\n return currentLang;\n}", "changeLanguage (language) {\n COMPONENT.innerHTML = DATA.lang[language];\n }", "function LanguageClickEventHandler(lang) {\r\n SetLanguage(lang);\r\n}", "function translate(word)\n{\n return Language[word]\n\n}", "function changeStoryLanguage(story, questions) {\r\n document.querySelector(\".main-text\").innerText = story;\r\n document.querySelector(\".questions-text\").innerHTML = questions;\r\n}", "function setLanguage() {\n services.tts.then(function(tts) {\n\tif (game.german) tts.setLanguage('German');\n\telse tts.setLanguage('English');\n });\n}", "function changeLanguage() {\n \tvar e = document.getElementById(\"lang_select\");\n \tvar lang = e.options[e.selectedIndex].value;\n \tvar prevBox = document.getElementById('preview_div');\n\n\t// Choosing between rtl and ltr languages.\n\tif (lang == 'ar' || lang == 'he') {\n\t\tprevBox.setAttribute('dir', 'rtl');\n\t} else {\n\t\tprevBox.setAttribute('dir', 'ltr');\n\t}\n\n\t// We need to reset the WYSIWYG editor to change the language.\n\t// resetEditor(lang, getWirisEditorParameters());\n\twindow.location.search = 'language=' + lang;\n}", "function setLang() {\n\n // first update text fields based on selected mode\n var selId = $(\"#mode-select\").find(\":selected\").attr(\"id\");\n setText(\"text-timedomain\",\n \"Zeitbereich: \" + lang_de.text[selId],\n \"Time domain: \" + lang_en.text[selId]);\n setText(\"text-headline-left\",\n \"Federpendel: \" + lang_de.text[selId],\n \"Spring Pendulum: \" + lang_en.text[selId]);\n\n // then loop over all ids to replace the text\n for(var id in Spring.langObj.text) {\n $(\"#\"+id).text(Spring.langObj.text[id].toLocaleString());\n }\n // finally, set label of language button\n // $('#button-lang').text(Spring.langObj.otherLang);\n $('#button-lang').button(\"option\", \"label\", Spring.langObj.otherLang);\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 helloWorld()\r\n{\r\n var language = document.project2.lang.value;\r\n var language = language.toLowerCase();\r\n//create logic that outputs \"hello world\" different depending on language selected\r\n if (language == 'ru') //case of russia\r\n {\r\n return \"Privet Mir\";\r\n }\r\n else if (language == 'pt')\r\n {\r\n return \"Olá mundo!\";\r\n }\r\n else if(language == 'en')\r\n {\r\n return \"Hello world!\";\r\n }\r\n else if(language == 'fr')\r\n {\r\n return \"Bonjour le monde!\";\r\n }\r\n else if (language == 'es')\r\n {\r\n return \"Hola mundo\";\r\n }\r\n else\r\n {\r\n return \"HELLO MURICA.\";\r\n }\r\n\r\n\r\n}", "_setLanguage(language) {\n strings.setLanguage(global.lang[language].shortform)\n global.languageSelected = global.lang[language].shortform\n Alert.alert(strings.changeLanguage, strings.getString(global.lang[language].longform))\n }", "onLanguageClicked(){\r\n\r\n }", "function addLanguages() {}", "function xl_SwitchLang(target_lang)\n{\n\tvar i=0; \n\tvar tokens = document.getElementsByTagName(\"SPAN\"); \n\t// Cycle through all spans\n\tfor (i=0; i < tokens.length; i++) \n\t{\n\t\t// Trap for ones with a lang attribute set to \"Y\"\n\t\tlang = tokens[i].getAttribute(\"lang\");\n\t\tif (lang == \"Y\") \n\t\t{ \n\t\t\t// If there is an ID attribute, we want to use that\n\t\t\t// to look it up in our replacement table, otherwise\n\t\t\t// use the string itself\n\t\t\tid = tokens[i].getAttribute(\"id\");\n\t\t\tif((id == \"\") || (id ==null))\n\t\t\t\tnewstr = document.xl_oMultiLangArr[tokens[i].innerHTML];\n\t\t\telse\n\t\t\t\tnewstr = document.xl_oMultiLangArr[id];\n\t\t\t\n\t\t\t// If we found a replacement, replace it.\n\t\t\tif((newstr != null) && (newstr[target_lang] != null))\n\t\t\t\ttokens[i].innerHTML = newstr[target_lang];\n\t\t}\n\t} \n}", "function initializeLangVars() {\nswitch (Xlang) {\n// --------------------------------------------------------------------------------------------------------------------------------------------------------------------\n// - The 03/02/2010 ------------- by Ptitfred06\n// Modification : small word to have good view in tasklist\n// - Small modification on word (translation).\n// - comment what can be personnalise / and what can't \n// -----------------------------------------------------------------------\n\tcase \"fr\": // thanks Tuga\n// Texte détécté dans les page Travian (NE PAS CHANGER / No CHANGE !!!)\n\t\taLangAllBuildWithId = [\"Bûcheron\", \"Carrière de terre\", \"Mine de fer\", \"Ferme\", \"\", \"Scierie\", \"Usine de poteries\", \"Fonderie\", \"Moulin\", \"Boulangerie\", \"Dépôt de ressources\", \"Silo de céréales\", \"Armurerie\", \"Usine d'armures\", \"Place du tournoi\", \"Bâtiment principal\", \"Place de rassemblement\", \"Place du Marché\", \"Ambassade\", \"Caserne\", \"Écurie\", \"Atelier\", \"Académie\", \"Cachette\", \"Hôtel de ville\", \"Résidence\", \"Palais\", \"Chambre aux trésors\", \"Comptoir de commerce\", \"Grande Caserne\", \"Grande Écurie\", \"Mur d'enceinte\", \"Mur de terre\", \"Palissade\", \"Tailleur de Pierres\", \"Brasserie\", \"Fabricant de pièges\",\"Manoir du héros\", \"Grand dépôt de ressources\", \"Grand silo de céréales\", \"Merveille du monde\", \"Abreuvoir\"];\n\t\taLangAllBuildAltWithId = [/*\"Bûcheron\"*/, \"Carrière de Terre\", /*\"Mine de fer\"*/, \"Ferme de céréales\", \"\", /*\"Scierie\"*/, \"Usine de Poteries\", /*\"Fonderie\", \"Moulin\"*/,/* \"Boulangerie\"*/, /*\"Dépôt de ressources\"*/, /*\"Silo de céréales\"*/, /*\"Armurerie\"*/, /*\"Usine d'armures\"*/, /*\"Place du tournoi\"*/, \"Bâtiment Principal\", /*\"Place de rassemblement\"*/, \"Place du marché\", /*\"Ambassade\"*/, /*\"Caserne\"*/, /*\"Écurie\"*/, /*\"Atelier\"*/, /*\"Académie\"*/, /*\"Cachette\"*/, \"Hôtel de Ville\", /*\"Résidence\"*/, /*\"Palais\"*/, /*\"Chambre aux trésors\"*/, \"Comptoir de commerce\", \"Grande Caserne\", \"Grande Écurie\", \"Mur d'enceinte\", \"Mur de terre\", \"Palissade\", \"Tailleur de Pierres\", \"Brasserie\", \"Fabricant de pièges\",\"Manoir du Héros\", \"Grand dépôt de ressources\", \"Grand silo de céréales\", \"Merveille du monde\", \"Abreuvoir\"];\n\n// <-- Peu être modifié / can be personnalize\n\t\taLangAddTaskText = [\"Ajouter tache\", \"Type\", \"Village actif\", \"Cible\", \"Vers\", \"Mode\", \"Aide Const.\", \"Quantité de ress.\", \"Bouger vers le haut\", \"Bouger vers le bas\", \"Effacer\", \"&#160;&#160;&#160;Taches\", \"Bouger \", \"Eliminer toutes les tâches\"];\n\t\taLangTaskKind = [\"Évol \", \"N Cons \", \"Att \", \"Rech \", \"Entrai \", \"Trans \", \"NPC\", \"Dém \", \"Fête\"];\n// -->\n\n// <-- Peu être modifié / can be personnalize\n\t\taLangGameText = [\"Niv\", \"Marchands\", \"Id\", \"Capitale\", \"Temps début\", \"this timeseting is unuseful now.\", \"Vers\", \"Village\", \"Transport\", \"de\", \"Transport vers\", \"Transport de\", \"Retour de\", \"Ressources\", \"Bâtiment\", \"Construire un nouveau bâtiment\", \"Vide\", \"Niveau\"];\n// original \taLangGameText = [\"Niveau\", \"Marchands\", \"Identification\", \"Capitale\", \"Inicio\", \"this timeseting is unuseful now.\", \"Vers\", \"Village\", \"Transport\", \"de\", \"Transport vers\", \"Transport de\", \"Retour de\", \"Ressources\", \"Bâtiment\", \"Construire un nouveau bâtiment\", \"Vazio\", \"Niveau\"];\n// -->\tfin\t\n\n\t\taLangRaceName = [\"Romains\", \"Germains\",\"Gaulois\"];\n// <-- Peu être modifié\n\t\taLangTaskOfText = [\"Planifier evolution\", \"Planifier nouvelle construction\", \"RessUpD\", \"OFF\", \"Comencer\", \"ON\", \"Arreter\", \"La distribution des champs de ce village est \", \"AutoT\", \"Auto transport n est pas ouvert\", \"Ouvert\", \"Transport avec succès\", \"Taches\", \"Limit\", \"Defaut\", \"Modifier\", \"Bois/Terre/Fer\", \"Céréales\", \"Planification de demolition\", \"Planif.Attaque\", \"Type d´attaque\", \"Temps de voyage\", \"Repeter numero de fois\", \"Temps de intervales\",\"00:30:00\",\"Cible catapulte\",\"Aléatoire\", \"Inconnu\", \" Fois\", \"/\", \" \", \"Troupes envoyées\", \"Planification d´entrainement\",\"Train ubication\",\"Planification d´entrainement fini\",\"TransP\",\"Setup Interval Time of Reload\",\"This is the interval of page reload ,\\n default sont 20 minutes, Insérer nouveau temps:\\n\\n\",\"Remain\",\"Planifier fête\",\"petite fête\",\"grande fête\",\"Set Interval of Ressources concentration\",\"minutes\",\".\",\".\",\"START\",\"STOP\",\"Planifier entrainement\",\"Augmenter Attaque\",\"Augmenter Defense\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n// -->> fin\n// < ne pas change / no change !!! Detected for the feedback error.\n\t\taLangErrorText = [\"Pas assez de ressources\", \"Les ouvriers sont déjà au travail\", \"Construction complète\", \"Début de la construction\", \"Dans développement\", \"Son Dépôt de ressources est petit. Évolue son Dépôt de ressources pour continuer sa construction\", \"Son silo de céréales est petit. Évolue son Silo de céréales pour continuer sa construction\", \"Ressources suffisantes\",\"Une fête est déjà organisée\"];\n// -->> fin\n\t\taLangOtherText = [\"Il remarque important\", \"Seulement les champs de ressources du capitale <br/>peuvent être élevés à niveau 20. Son capital <br/> n'est pas décelable. S'il vous plaît il visite son profil.\", \"Raccourci ici ^_^\", \"Installation conclue\", \"Annulé\", \"Initier les tâches\", \"Upgrade avec succès\", \"Exécuter avec succès\", \"Sa race est inconnue, et son type de troupe aussi. <br/>Il visite son profil pour déterminer la race.<br/>\", \"S'il vous plaît il visite sa Manoir du héros pour déterminer<br/>la vitesse et le type de héros.\"];\n\t\taLangResources=[\"Bois\",\"Terre\",\"Fer\",\"Céréales\"];\n\t\taLangTroops[0] = [\"Légionnaire\", \"Prétorien\", \"Impérian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Bélier\", \"Catapulte de feu\", \"Sénateur\", \"Colon\", \"Héros\"];\n\t\taLangTroops[1] = [\"Combattant au gourdin\", \"Combattant à la lance\", \"Combattant à la hache\", \"Eclaireur\", \"Paladin\", \"Cavalier Teuton\", \"Bélier\", \"Catapulte\", \"Chef de tribu\", \"Colon\", \"Héros\"];\n\n// <-- NE PAS modifier // Utilisé dans plannification d'attaque, dans recherche de niveau suppèrieur / NO CHANGE !!\n\t\taLangTroops[2] = [\"Phalange\", \"Combattant à l'épée\", \"Eclaireur\", \"Eclair de Toutatis\", \"Cavalier druide\", \"Hédouin\", \"Bélier\", \"Catapulte de Guerre\", \"Chef\", \"Colon\", \"Héros\"];\n// original\taLangTroops[2] = [\"Phalange\", \"Combattant à l'épée\", \"Eclaireur\", \"Eclair de Toutatis\", \"Cavalier druide\", \"Hédouin\", \"Bélier\", \"Catapulte de Guerre\", \"Chef\", \"Colon\", \"Héros\"];\n\n// <-- Peu être modifié // Label des taches / CAN BE CHANGE\n// original\taLangAttackType = [\"Assistance\", \"Attaque\", \"Pillage\"];\n\t\taLangAttackType = [\"Ass.\", \"Att.\", \"Pill.\"];\n// -->\t\t\n\t\tbreak;\n// -------------------------------------------------------------------------------------------------------------------------------\n\n\tcase \"cc\": // 2011.02.13 -- yesren\n\tcase \"cn\": // 感谢K.C.Alvis\n\t\taLangAllBuildWithId = [\"伐木场\", \"黏土矿\", \"铁矿场\", \"农场\", \"\", \"木材厂\", \"砖块厂\", \"铸造厂\", \"磨坊\", \"面包房\", \"仓库\", \"粮仓\", \"铁匠铺\", \"军械库\", \"竞技场\", \"中心大楼\", \"集结点\", \"市场\", \"大使馆\", \"兵营\", \"马厩\", \"工场\", \"研发所\", \"山洞\", \"市政厅\", \"行宫\", \"皇宫\", \n\t\t\t\"宝库\", \"交易所\", \"大兵营\", \"大马厩\", \"罗马城墙\", \"日尔曼城墙\", \"高卢城墙\", \"石匠铺\", \"酿酒厂\", \"陷阱机\", \"英雄园\", \"大仓库\", \"大粮仓\", \"世界奇观\", \"饮马槽\"];\n\t\taLangAllBuildAltWithId = [\"伐木场\", \"黏土矿\", \"铁矿场\", \"农场\", \"\", \"木材厂\", \"砖块厂\", \"铸造厂\", \"磨坊\", \"面包房\", \"仓库\", \"粮仓\", \"铁匠铺\", \"军械库\", \"竞技场\", \"中心大楼\", \"集结点\", \"市场\", \"大使馆\", \"兵营\", \"马厩\", \"工场\", \"研发所\", \"山洞\", \"市政厅\", \"行宫\", \"皇宫\", \n\t\t\t\"宝库\", \"交易所\", \"大兵营\", \"大马厩\", \"罗马城墙\", \"日尔曼城墙\", \"高卢城墙\", \"石匠铺\", \"酿酒厂\", \"陷阱机\", \"英雄园\", \"大仓库\", \"大粮仓\", \"世界奇观\", \"饮马槽\"];\n\t\taLangAddTaskText = [\"添加任务\", \"任务类型\", \"所在村\", \"任务对象\", \"目标\", \"模式\", \"支援建设\", \"资源集中\", \"上移\", \"下移\", \"删除\", \"任务内容\", \"移动\", \"清除所有任务\"];\n\t\taLangTaskKind = [\"升级\", \"新建\", \"攻击\", \"研发\", \"训练\", \"运输\", \"活动\", \"拆除\", \"定制运输\"];\n\t\taLangGameText = [\"等级\", \"商人\", \"坑号\", \"主村\", \"执行时间\", \"此时间设置目前无效\", \"到\", \"村庄\", \"运送\", \"回来\", \"向\", \"来自于\", \"从\", \"资源\", \"建筑\", \"建造新的建筑\", \"空\", \"等级\"];\n\t\taLangRaceName = [\"罗马人\", \"日尔曼人\", \"高卢人\"];\n\t\taLangTaskOfText = [\"预定升级\", \"预定新建\", \"资源自动升级\", \"尚未开启\", \"马上开启\", \"已经开启\", \"点击关闭\", \"该村资源田分布\", \"自动运输\", \"自动运输尚未设定\", \"已设定\", \"运送成功\", \"任务列表\", \"资源输入限额\", \"默认\", \"更改\", \"木/泥/铁\", \"粮食\", \"预定拆除\",\n\t\t\t\"预定发兵\", \"攻击类型\", \"到达所需时间\", \"重复次数\", \"间隔时间\", \"00:30:00\", \"投石目标\", \"随机\", \"未知\", \"次\", \"月\", \"日\", \"部队已发出\",\"预定训练\",\"训练设施\",\"训练任务已执行\",\"定制运输\",\"设定页面刷新间隔\",\n\t\t\t\"页面刷新的间隔时间,是指隔多久执行一次页面的自动载入。\\n此时间过短,会增加被系统侦测到的危险,过长则影响任务执行的效率。\\n默认为20分钟,请输入新的时间间隔:\\n\\n\",\"资源输出保留\",\"预定活动\",\"小型活动\",\"大型活动\",\"资源集中模式的运输间隔\",\n\t\t\t\"分钟\",\"暂停中\",\"开启中\",\"开启\",\"暂停\",\"预定改良\",\"改良攻击\",\"改良防御\", \"资源过剩检查\", \"已经开启\", \"已经关闭\", \"粮田自动升级\", \"切换\"];\n\t\taLangErrorText = [\"资源不足\", \"已经有建筑在建造中\", \"建造完成\", \"将马上开始全部建造\", \"在开发中\", \"建造所需资源超过仓库容量上限,请先升级你的仓库\", \"建造所需资源超过粮仓容量上限,请先升级你的粮仓\", \"资源何时充足时间提示\",\"粮食产量不足: 需要先建造一个农场\",\"一个活动正在举行中\"];\n\t\taLangOtherText = [\"重要提示\", \"只有主村的资源田可以升级到20,<br />目前主村尚未识别,点击个人资料<br />页面可以解决这一问题\", \"五星级传送门^_^\", \"已经设置完成\", \"已经取消\", \"开始执行任务\", \"升级成功\", \"已顺利执行\", \"种族尚未确认,兵种也就无法确定,<br />请点击个人资料页面,以便侦测种族\", \"然后,请顺便访问英雄园,以便确认<br />英雄的种类和速度。<br />\"];\n\t\taLangResources=[\"木材\",\"泥土\",\"铁块\",\"粮食\"];\n\t\taLangTroops[0] = [\"古罗马步兵\", \"禁卫兵\", \"帝国兵\", \"使节骑士\", \"帝国骑士\", \"将军骑士\", \"冲撞车\", \"火焰投石器\", \"参议员\", \"拓荒者\", \"英雄\"];\n\t\taLangTroops[1] = [\"棍棒兵\", \"矛兵\", \"斧头兵\", \"侦察兵\", \"圣骑士\", \"日耳曼骑兵\", \"冲撞车\", \"投石器\", \"执政官\", \"拓荒者\", \"英雄\"];\n\t\taLangTroops[2] = [\"方阵兵\", \"剑士\", \"探路者\", \"雷法师\", \"德鲁伊骑兵\", \"海顿圣骑士\", \"冲撞车\", \"投石器\", \"首领\", \"拓荒者\", \"英雄\"];\n\t\taLangAttackType = [\"支援\", \"攻击\", \"抢夺\"];\n\t\tbreak;\n\t\t\n\tcase \"hk\": // 感谢sean3808、K.C.Alvis\n\t\taLangAllBuildWithId = [\"伐木場\", \"泥坑\", \"鐵礦場\", \"農場\",\"\", \"鋸木廠\", \"磚廠\", \"鋼鐵鑄造廠\", \"麵粉廠\", \"麵包店\", \"倉庫\", \"穀倉\", \"鐵匠\", \"盔甲廠\", \"競技場\", \"村莊大樓\", \"集結點\", \"市場\", \"大使館\", \"兵營\", \"馬棚\", \"工場\", \"研究院\", \"山洞\", \"村會堂\", \"行宮\", \"皇宮\", \"寶物庫\", \"交易所\", \"大兵營\", \"大馬棚\", \"城牆\", \"土牆\", \"木牆\", \"石匠鋪\", \"釀酒廠\", \"陷阱\", \"英雄宅\", \"大倉庫\", \"大穀倉\", \"世界奇觀\", \"放牧水槽\"];\n\t\taLangAllBuildAltWithId = [\"伐木場\", \"泥坑\", \"鐵礦場\", \"農場\",\"\", \"鋸木廠\", \"磚廠\", \"鋼鐵鑄造廠\", \"麵粉廠\", \"麵包店\", \"倉庫\", \"穀倉\", \"鐵匠\", \"盔甲廠\", \"競技場\", \"村莊大樓\", \"集結點\", \"市場\", \"大使館\", \"兵營\", \"馬棚\", \"工場\", \"研究院\", \"山洞\", \"城鎮廳\", \"行宮\", \"皇宮\", \"寶物庫\", \"交易所\", \"大兵營\", \"大馬棚\", \"城牆\", \"土牆\", \"木牆\", \"石匠鋪\", \"釀酒廠\", \"陷阱機\", \"英雄宅\", \"大倉庫\", \"大穀倉\", \"世界奇觀\", \"放牧水槽\"];\n\t\taLangAddTaskText = [\"添加任務\", \"任務類型\", \"所在村\", \"任務對象\", \"目標\", \"模式\", \"支援建設\", \"資源集中\", \"上移\", \"下移\", \"刪除\", \"任務內容\", \"移動\", \"清除所有任務\"];\n\t\taLangTaskKind = [\"升級\", \"新建\", \"攻擊\", \"研發\", \"訓練\", \"運輸\", \"平倉\", \"拆除\", \"活動\"];\n\t\taLangGameText = [\"等級\", \"商人\", \"坑號\", \"主村\", \"執行時間\", \"該時間設置尚未啟用\", \"到\", \"村莊\", \"運送\", \"回來\", \"運輸到\", \"從\", \"由\", \"資源\", \"建築\", \"建造新的建築物\", \"empty\", \"等級\"];\n\t\taLangRaceName = [\"羅馬人\", \"條頓人\", \"高盧人\"];\n\t\taLangTaskOfText = [\"預定升級\", \"預定建築\", \"資源自動升級\", \"尚未開啟\", \"馬上開啟\", \"已經開啟\", \"點擊關閉\", \"該村資源分布\", \"自動運輸\", \"自動運輸尚未設定\", \"已設定\", \"運送成功\", \"任務列表\", \"資源輸入限額\", \"默認\", \"更改\", \"木/磚/鐵\", \"穀物\", \"預定拆除\",\n\t\t\t\"預定發兵\", \"攻擊類型\", \"到達所需時間\", \"重複次數\", \"間隔時間\", \"00:30:00\", \"投石目標\", \"隨機\", \"未知\", \"次\", \"月\", \"日\", \"部隊已發出\",\"預定訓練\",\"訓練設施\",\"訓練任務已執行\",\"定制運輸\",\"設定頁面刷新間隔\",\"頁面刷新的間隔時間,是指隔多久執行一次頁面的自動載入。\\n此時間過短,會增加被系統偵測到的危險,過長則影響任務執行的效率。\\n默認為20分鐘,請輸入新的時間間隔:\\n\\n\",\"資源輸出保留\",\"預定活動\",\"小型活動\",\"大型活動\",\"資源集中模式的間隔時間\",\n\t\t\t\"分鐘\",\"暫停中\",\"開啟中\",\"開啟\",\"暫停\",\"預定改良\",\"改良攻擊\",\"改良防御\", \"資源過剩檢查\", \"已經開啟\", \"已經關閉\", \"糧田自動升級\", \"切換\"];\n\t\taLangErrorText = [\"資源不足\", \"工作正在進行中\", \"完全地開發\", \"將馬上開始全部建造\", \"在開發中\", \"倉庫需要升級\", \"糧倉需要升級\", \"資源何時充足時間提示\",\"糧食產量不足: 需要先建造一個農場\",\"派對進行中\"];\n\t\taLangOtherText = [\"重要提示\", \"只有主村的資源田可以升級到20,<br/>目前主村尚未識別,點擊個人資料<br/>頁面可以解決這一問題\", \"五星級傳送門^_ ^\", \"已經設置完成\", \"已經取消\", \"開始執行任務\", \"升級成功\", \"已順利執行\", \"種族尚未確認,兵種也就無法確定,<br/>請點擊個人資料頁面,以便偵測種族\", \"然後,請順便訪問英雄園,以便確認<br/>英雄的種類和速度。<br/>\"];\n\t\taLangResources=[\"木材\",\"磚塊\",\"鋼鐵\",\"穀物\"];\n\t\taLangTroops[0] = [\"古羅馬步兵\", \"禁衛兵\", \"帝國兵\", \"使者騎士\", \"帝國騎士\", \"將軍騎士\", \"衝撞車\", \"火焰投石機\", \"參議員\", \"開拓者\", \"英雄\"];\n\t\taLangTroops[1] = [\"棍棒兵\", \"矛兵\", \"斧頭兵\", \"偵察兵\", \"遊俠\", \"條頓騎士\", \"衝撞車\", \"投石機\", \"司令官\", \"開拓者\", \"英雄\"];\n\t\taLangTroops[2] = [\"方陣兵\", \"劍士\", \"探路者\", \"雷法師\", \"德魯伊騎兵\", \"海頓聖騎\", \"衝撞車\", \"投石機\", \"族長\", \"開拓者\", \"英雄\"];\n\t\taLangAttackType = [\"支援\", \"攻擊\", \"搶奪\"];\n\t\tbreak;\n\n\tcase \"tw\": // 感谢adobe、魎皇鬼、ieyp、K.C.Alvis\n\t\taLangAllBuildWithId = [\"伐木場\", \"泥坑\", \"鐵礦場\", \"農場\", \"農田\", \"鋸木廠\", \"磚廠\", \"鋼鐵鑄造廠\", \"麵粉廠\", \"麵包店\", \"倉庫\", \"穀倉\", \"鐵匠\", \"盔甲廠\", \"競技場\", \"村莊大樓\", \"集結點\", \"市場\", \"大使館\", \"兵營\", \"馬廄\", \"工場\", \"研究院\", \"山洞\", \"村會堂\", \"行宮\", \"皇宮\", \"寶物庫\", \"交易所\", \"大兵營\", \"大馬廄\", \"城牆\", \"土牆\", \"木牆\", \"石匠舖\", \"釀酒廠\", \"陷阱機\", \"英雄宅\", \"大倉庫\", \"大穀倉\", \"世界奇觀\", \"放牧水槽\"];\n\t\taLangAllBuildAltWithId = [\"伐木場\", \"泥坑\", \"鐵礦場\", \"農場\", \"農田\", \"鋸木廠\", \"磚廠\", \"鋼鐵鑄造廠\", \"麵粉廠\", \"麵包店\", \"倉庫\", \"穀倉\", \"鐵匠\", \"盔甲廠\", \"競技場\", \"村莊大樓\", \"集結點\", \"市場\", \"大使館\", \"兵營\", \"馬廄\", \"工場\", \"研究院\", \"山洞\", \"村會堂\", \"行宮\", \"皇宮\", \"寶物庫\", \"交易所\", \"大兵營\", \"大馬廄\", \"城牆\", \"土牆\", \"木牆\", \"石匠舖\", \"釀酒廠\", \"陷阱機\", \"英雄宅\", \"大倉庫\", \"大穀倉\", \"世界奇觀\", \"放牧水槽\"];\n\t\taLangAddTaskText = [\"添加任務\", \"任務類型\", \"所在村\", \"任務對象\", \"目標\", \"模式\", \"支援建設\", \"資源集中\", \"上移\", \"下移\", \"刪除\", \"任務內容\", \"移動\", \"清除所有任務\"];\n\t\taLangTaskKind = [\"升級\", \"新建\", \"攻擊\", \"研發\", \"訓練\", \"運輸\", \"平倉\", \"拆除\", \"活動\"];\n\t\taLangGameText = [\"等級\", \"商人\", \"坑號\", \"主村\", \"執行時間\", \"該時間設置尚未啟用\", \"到\", \"村莊\", \"運送\", \"回來\", \"運送到\", \"從\", \"由\", \"資源\", \"建築\", \"建造新的建築物\", \"empty\", \"等級\"];\n\t\taLangRaceName = [\"羅馬人\", \"條頓人\", \"高盧人\"];\n\t\taLangTaskOfText = [\"預定升級\", \"預定建築\", \"資源自動升級\", \"尚未開啟\", \"馬上開啟\", \"已經開啟\", \"點擊關閉\", \"該村資源分布\", \"自動運輸\", \"自動運輸尚未設定\", \"已設定\", \"運送成功\", \"任務列表\", \"資源輸入限額\", \"默認\", \"更改\", \"木/磚/鐵\", \"穀物\", \"預定拆除\",\n\t\t\t\"預定發兵\", \"攻擊類型\", \"到達所需時間\", \"重複次數\", \"間隔時間\", \"00:30:00\", \"投石目標\", \"隨機\", \"未知\", \"次\", \"月\", \"日\", \"部隊已發出\",\"預定訓練\",\"訓練設施\",\"訓練任務已執行\",\"定制運輸\",\"設定頁面刷新間隔\",\"頁面刷新的間隔時間,是指隔多久執行一次頁面的自動載入。\\n此時間過短,會增加被系統偵測到的危險,過長則影響任務執行的效率。\\n默認為20分鐘,請輸入新的時間間隔:\\n\\n\",\"資源輸出保留\",\"預定活動\",\"小型活動\",\"大型活動\",\"資源集中模式的間隔時間\",\n\t\t\t\"分鐘\",\"暫停中\",\"開啟中\",\"開啟\",\"暫停\",\"預定改良\",\"改良攻擊\",\"改良防御\", \"資源過剩檢查\", \"已經開啟\", \"已經關閉\", \"糧田自動升級\", \"切換\"];\n\t\taLangErrorText = [\"資源不足\", \"已經有建築在建造中\", \"建造完成\", \"將馬上開始全部建造\", \"在開發中\", \"建造所需資源超過倉庫容量上限,請先升級你的倉庫\", \"建造所需資源超過糧倉容量上限,請先升級你的糧倉\", \"資源何時充足時間提示\",\"糧食產量不足: 需要先建造一個農場\",\"派對進行中\"];\n\t\taLangOtherText = [\"重要提示\", \"只有主村的資源田可以升級到20,<br/>目前主村尚未識別,點擊個人資料<br/>頁面可以解決這一問題\", \"五星級傳送門^_ ^\", \"已經設置完成\", \"已經取消\", \"開始執行任務\", \"升級成功\", \"已順利執行\", \"種族尚未確認,兵種也就無法確定,<br/>請點擊個人資料頁面,以便偵測種族\", \"然後,請順便訪問英雄園,以便確認<br/>英雄的種類和速度。<br/>\"];\n\t\taLangResources=[\"木材\",\"磚塊\",\"鋼鐵\",\"穀物\"];\n\t\taLangTroops[0] = [\"古羅馬步兵\", \"禁衛兵\", \"帝國兵\", \"使者騎士\", \"帝國騎士\", \"將軍騎士\", \"衝撞車\", \"火焰投石機\", \"參議員\", \"開拓者\", \"英雄\"];\n\t\taLangTroops[1] = [\"棍棒兵\", \"矛兵\", \"斧頭兵\", \"偵察兵\", \"遊俠\", \"條頓騎士\", \"衝撞車\", \"投石機\", \"司令官\", \"開拓者\", \"英雄\"];\n\t\taLangTroops[2] = [\"方陣兵\", \"劍士\", \"探路者\", \"雷法師\", \"德魯伊騎兵\", \"海頓聖騎\", \"衝撞車\", \"投石機\", \"族長\", \"開拓者\", \"英雄\"];\n\t\taLangAttackType = [\"支援\", \"攻擊\", \"搶奪\"];\n\t\tbreak;\n\n\tcase \"fi\": // thanks Christer82\n\t\taLangAllBuildWithId = [\"Puunhakkaaja\", \"Savimonttu\", \"Rautakaivos\", \"Viljapelto\", \"\", \"Saha\", \"Tiilitehdas\", \"Rautavalimo\", \"Mylly\", \"Leipomo\", \"Varasto\", \"Viljasiilo\", \"Aseseppä\", \"Haarniskapaja\", \"Turnausareena\", \"Päärakennus\", \"Kokoontumispiste\", \"Tori\", \"Lähetystö\", \"Kasarmi\", \"Talli\", \"Työpaja\", \"Akatemia\", \"Kätkö\", \"Kaupungintalo\", \"Virka-asunto\", \"Palatsi\", \"Aarrekammio\", \"Kauppavirasto\", \"Suuri kasarmi\", \"Suuri talli\", \"Kaupungin muuri\", \"Maamuuri\", \"Paaluaita\", \"Kivenhakkaaja\", \"Panimo\", \"Ansoittaja\",\"Sankarin kartano\", \"Suuri varasto\", \"Suuri viljasiilo\", \"Maailmanihme\", \"Hevostenjuottoallas\"];\n\t\taLangAllBuildAltWithId = [\"Puunhakkaaja\", \"Savimonttu\", \"Rautakaivos\", \"Viljapelto\", \"\", \"Saha\", \"Tiilitehdas\", \"Rautavalimo\", \"Mylly\", \"Leipomo\", \"Varasto\", \"Viljasiilo\", \"Aseseppä\", \"Haarniskapaja\", \"Turnausareena\", \"Päärakennus\", \"Kokoontumispiste\", \"Tori\", \"Lähetystö\", \"Kasarmi\", \"Talli\", \"Työpaja\", \"Akatemia\", \"Kätkö\", \"Kaupungintalo\", \"Virka-asunto\", \"Palatsi\", \"Aarrekammio\", \"Kauppavirasto\", \"Suuri kasarmi\", \"Suuri talli\", \"Kaupungin muuri\", \"Maamuuri\", \"Paaluaita\", \"Kivenhakkaaja\", \"Panimo\", \"Ansoittaja\",\"Sankarin kartano\", \"Suuri varasto\", \"Suuri viljasiilo\", \"Maailmanihme\", \"Hevostenjuottoallas\"];\n\t\taLangAddTaskText = [\"Lisää tehtävä\", \"Tyyli\", \"Kohdistettu kylä\", \"Tehtävän kohde\", \"Minne:\", \"Tyyppi\", \"Rakennustuki\", \"Resurssien keskittäminen\", \"Siirry ylös\", \"Siirry alas\", \"Poista\", \"&#160;&#160;&#160;Tehtävän sisältö\", \"Siirry \", \"Poista kaikki tehtävät\"];\n\t\taLangTaskKind = [\"Päivitä\", \"Uusi rakennus\", \"Hyökkäys\", \"Tutkimus\", \"Koulutus\", \"Kuljetus\", \"NPC\", \"Hajotus\", \"Juhla\"];\n\t\taLangGameText = [\"Taso\", \"Kauppiaat\", \"ID\", \"Pääkaupunki\", \"Aloitusaika\", \"Tätä aika-asetusta ei voi nyt käyttää.\", \"minne:\", \"Kylä\", \"kuljetus\", \"mistä\", \"Kuljeta kylään\", \"Kuljeta kylästä\", \"Palaa kylästä\", \"Resurssit\", \"rakennus\", \"Rakenna uusi rakennus\", \"tyhjä\", \"taso\"];\n\t\taLangRaceName = [\"Roomalaiset\", \"Teutonit\", \"Gallialaiset\"];\n\t\taLangTaskOfText = [\"Aseta kentän päivitys\", \"Aseta uusi rakennuskohde\", \"Automaattinen resurssipäivitys\", \"Ei toimintaa\", \"Aloita\", \"Aloitettu\", \"Keskeytä\", \"Tämän kylän resurssikenttien jakauma on \", \"Automaattikuljetus\", \"automaattikuljetusta ei ole avattu\", \"Avattu\", \"Kuljetus onnistui\", \"Tehtäväluettelo\", \"Trans_In_limit\", \"Perusasetus\", \"Muokkaa\", \"Puu/Savi/Rauta\", \"vilja\", \"Tehtävälistan poisto\",\n\t\t\t\"Schedule attack\", \"Hyökkäystyyppi\", \"Kuljetusaika\", \"toistokerrat\", \"Hyökkäysaikaväli\",\"00:30:00\",\"Katapultin kohde\",\"Satunnainen\", \"Tuntematon\", \"kertaa\", \"Kuukausi\", \"Päivä\", \"Joukot on lähetetty\",\"Aseta koulutustehtävä\",\"Koulutuskohde\",\"Koulutustehtävä suoritettu\",\"waitForTranslate\",\"setup Hyökkäysaikaväli of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans_Out_Rmn\",\"ScheduleParty\",\"small party\",\"big party\",\"setInterval of Resources concentration\",\n\t\t\t\"minutes\",\"pausing\",\"running\",\"run\",\"pause\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Liian vähän resursseja\", \"Työntekijät ovat jo töissä.\", \"Rakennuskohde valmis\", \"Aloitetaan rakentaminen\", \"Työ kesken\", \"Varastosi on liian pieni. Suurenna varastoa aloittaaksesi rakentamisen\", \"Viljasiilosi on liian pieni. Suurenna viljasiiloa aloittaaksesi rakentamisen\", \"Riittävästi resursseja\"];\n\t\taLangOtherText = [\"Tärkeä huomautus\", \"Vain pääkaupungin resurssikenttiä voidaan <br/>päivittää tasolle 20. Nyt pääkaupunkia<br/> ei voida todentaa. Päivitä profiiliasi, kiitos.\", \"Pikalinkki tähän ^_^\", \"Asennus valmis\", \"Peruttu\", \"Aloita tehtävät\", \"Päivitys valmis\", \"Tehty onnistuneesti\", \"Heimosi on määrittämätön, siksi joukkojesi tyyppiä <br/>Päivitä profiiliasi heimon määrittämiseksi.<br/>\", \"Käy Sankarin kartanossa määrittääksesi<br/> sankarisi tyypin ja nopeuden.\"];\n\t\taLangResources=[\"waitTranslate\",\"waitTranslate\",\"waitTranslate\",\"waitTranslate\"];\n\t\taLangTroops[0] = [\"Legioonalainen\", \"Pretoriaani\", \"Imperiaani\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Muurinmurtaja\", \"Tulikatapultti\", \"Senaattori\", \"Uudisasukas\", \"Sankari\"];\n\t\taLangTroops[1] = [\"Nuijamies\", \"Keihäsmies\", \"Kirvessoturi\", \"Tiedustelija\", \"Paladiini\", \"Teutoniritari\", \"Muurinmurtaja\", \"Katapultti\", \"Päällikkö\", \"Uudisasukas\", \"Sankari\"];\n\t\taLangTroops[2] = [\"Falangi\", \"Miekkasoturi\", \"Tunnustelija\", \"Teutateksen salama\", \"Druidiratsastaja\", \"Haeduaani\", \"Muurinmurtaja\", \"Heittokone\", \"Päällikkö\", \"Uudisasukas\", \"Sankari\"];\n\t\taLangAttackType = [\"Vahvistus\", \"Hyökkäys\", \"Ryöstö\"];\n\t\tbreak;\n\n\tcase \"us\": // by shadowx360\n\t\taLangAllBuildWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Armory\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"Town Hall\", \"Residence\", \"Palace\", \"Treasury\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason's Lodge\", \"Brewery\", \"Trapper\",\"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\taLangAllBuildAltWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Armory\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"Town Hall\", \"Residence\", \"Palace\", \"Treasury\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason's Lodge\", \"Brewery\", \"Trapper\",\"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \" Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\taLangGameText = [\"Lvl\", \"Merchants\", \"ID\", \"Capital\", \"Start time\", \"this timeseting is notuseful now.\", \"to\", \"Village\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Construct a new building\", \"empty\", \"level\"];\n\t\taLangRaceName = [\"Romans\", \"Teutons\", \"Gauls\"];\n\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Wheat\", \"Schedule demolition\",\n\t\t\t\"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\",\"00:30:00\",\"Catapult target\",\"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\",\n\t\t\t\"Schedule Train\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans Out Rmn\",\"ScheduleParty\",\"small party\",\"big party\",\"setInterval of Resources concentration\",\n\t\t\t\"minutes\", \".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Too few resources.\", \"Your builders are already working\", \"completely upgraded\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\",\"Lack of food: extend cropland first\",\"There is already a celebration going on\"];\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\taLangResources=[\"lumber\",\"clay\",\"iron\",\"wheat\"];\n\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Hero\"];\n\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Hero\"];\n\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Hero\"];\n\t\taLangAttackType = [\"Reinforce\", \"Attack\", \"Raid\"];\n\t\tbreak;\n\n\tcase \"in\":\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\taLangAllBuildWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Armoury\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"City Hall\", \"Residence\", \"Palace\", \"Treasure Chamber\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason\", \"Brewery\", \"Trapper\", \"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Armoury\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"City Hall\", \"Residence\", \"Palace\", \"Treasure Chamber\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason\", \"Brewery\", \"Trapper\", \"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\t\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\t\t\taLangGameText = [\"Lvl\", \"Merchants\", \"ID\", \"Capital\", \"Start time\", \"this timeseting is unuseful now.\", \"to\", \"Village\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Construct a new building\", \"empty\", \"level\"];\n\t\t\t\taLangRaceName = [\"Romans\", \"Teutons\", \"Gauls\"];\n\t\t\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Crop\", \"Schedule demolition\",\n\t\t\t\t\t\t\"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\", \"00:30:00\", \"Catapult target\", \"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\",\n\t\t\t\t\t\t\"Schedule Train\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"ScheduleParty\", \"small party\", \"big party\", \"setInterval of Resources concentration\",\n\t\t\t\t\t\t\"minutes\", \".\", \".\", \"START\", \"STOP\", \"Schedule Improve\", \"Improve Attack\", \"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Too few resources.\", \"Your workers are already building something.\", \"Construction completed\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\", \"Food shortage: Upgrade a wheat field first\", \"There is already a celebration going on\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t\t\taLangResources = [\"lumber\", \"clay\", \"iron\", \"crop\"];\n\t\t\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Hero\"];\n\t\t\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Hero\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Hero\"];\n\t\t\t\taLangAttackType = [\"Reinforce\", \"Attack\", \"Raid\"];\n\t\t\t\tbreak;\n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\taLangAllBuildWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"Place for new building\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Smithy\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"City Hall\", \"Residence\", \"Palace\", \"Treasure Chamber\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason\", \"Brewery\", \"Trapper\", \"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Woodcutter\", \"Clay Pit\", \"Iron Mine\", \"Wheat Field\", \"\", \"Sawmill\", \"Brickworks\", \"Iron Foundry\", \"Flour Mill\", \"Bakery\", \"Warehouse\", \"Granary\", \"Blacksmith\", \"Smithy\", \"Tournament Square\", \"Main Building\", \"Rally Point\", \"Marketplace\", \"Embassy\", \"Barracks\", \"Stable\", \"Siege Workshop\", \"Academy\", \"Cranny\", \"City Hall\", \"Residence\", \"Palace\", \"Treasure Chamber\", \"Trade Office\", \"Great Barracks\", \"Great Stable\", \"City Wall\", \"Earth Wall\", \"Palisade\", \"Stonemason\", \"Brewery\", \"Trapper\", \"Hero's Mansion\", \"Great Warehouse\", \"Great Granary\", \"Wonder Of The World\", \"Horse Drinking Pool\"];\n\t\t\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\t\t\taLangGameText = [\"Lvl\", \"Merchants\", \"ID\", \"Capital\", \"Start time\", \"this timeseting is unuseful now.\", \"to\", \"Village\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Construct a new building\", \"empty\", \"level\"];\n\t\t\t\taLangRaceName = [\"Romans\", \"Teutons\", \"Gauls\"];\n\t\t\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Crop\", \"Schedule demolition\",\n\t\t\t\t\t\t\"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\", \"00:30:00\", \"Catapult target\", \"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\",\n\t\t\t\t\t\t\"Schedule Train\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"ScheduleParty\", \"small party\", \"big party\", \"setInterval of Resources concentration\",\n\t\t\t\t\t\t\"minutes\", \".\", \".\", \"START\", \"STOP\", \"Schedule Improve\", \"Improve Attack\", \"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Too few resources.\", \"Your workers are already building something.\", \"Construction completed\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\", \"Food shortage: Upgrade a wheat field first\", \"There is already a celebration going on\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t\t\taLangResources = [\"lumber\", \"clay\", \"iron\", \"crop\"];\n\t\t\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Hero\"];\n\t\t\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Hero\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Hero\"];\n\t\t\t\taLangAttackType = [\"Reinforce\", \"Attack\", \"Raid\"];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrowLogicError ( \"initializeLangVars():: Travian Version not set, when initializing language variables for \\'in\\'!!\" );\n\t\t}\n\t\tbreak;\n\n\tcase \"sk\": // by Zapo [ 2011.04.07 ]\n\t\taLangAllBuildWithId = [\"Drevorubač\", \"Hlinená baňa\", \"Železná baňa\", \"Obilné pole\", \"\", \"Píla\", \"Tehelňa\", \"Zlievareň\", \"Mlyn\", \"Pekáreň\", \"Sklad surovín\", \"Sýpka\", \"Kováč\", \"Zbrojnica\", \"Turnajové ihrisko\", \"Hlavná budova\", \"Zhromaždisko\", \"Trhovisko\", \"Ambasáda\", \"Kasárne\", \"Stajne\", \"Dielňa\", \"Akadémia\", \"Úkryt\", \"Radnica\", \"Rezidencia\", \"Palác\", \"Pokladnica\", \"Obchodná kancelária\", \"Veľké kasárne\", \"Veľká stajňa\", \"Mestské hradby\", \"Zemná hrádza\", \"Palisáda\", \"Kamenár\", \"Pivovar\", \"Pasti\",\"Dvor hrdinov\", \"Veľké dielne\", \"Veľká sýpka\", \"Div sveta\", \"Žriedlo\"];\n\t\taLangAllBuildAltWithId = [\"Drevorubač\", \"Hlinená baňa\", \"Železná baňa\", \"Obilné pole\", \"\", \"Píla\", \"Tehelňa\", \"Zlievareň\", \"Mlyn\", \"Pekáreň\", \"Sklad surovín\", \"Sýpka\", \"Kováč\", \"Zbrojnica\", \"Turnajové ihrisko\", \"Hlavná budova\", \"Zhromaždisko\", \"Trhovisko\", \"Ambasáda\", \"Kasárne\", \"Stajne\", \"Dielňa\", \"Akadémia\", \"Úkryt\", \"Radnica\", \"Rezidencia\", \"Palác\", \"Pokladnica\", \"Obchodná kancelária\", \"Veľké kasárne\", \"Veľká stajňa\", \"Mestské hradby\", \"Zemná hrádza\", \"Palisáda\", \"Kamenár\", \"Pivovar\", \"Pasti\",\"Dvor hrdinov\", \"Veľké dielne\", \"Veľká sýpka\", \"Div sveta\", \"Žriedlo\"];\n\t\taLangAddTaskText = [\"Pridaj úlohu\", \"Štýl\", \"Aktívna dedina\", \"Plánovaný cieľ\", \"To\", \"Mód\", \"Construction support\", \"Resources concentration\", \"Presuň hore\", \"Presuň dole\", \"Zmaž\", \" Obsah úloh\", \"Posun \", \"Zmaž všetky úlohy\"];\n\t\taLangTaskKind = [\"Upgrade\", \"Nová stavba\", \"Útok\", \"Výskum\", \"Trénovať\", \"Transport\", \"NPC\", \"Búrať\", \"Oslavy\"];\n\t\taLangGameText = [\"Lvl\", \"Obchodníci\", \"ID\", \"Hlavná dedina\", \"Start time\", \"nastavenie času je nepoužiteľný teraz.\", \"do\", \"Dedina\", \"transport\", \"od\", \"Transport do\", \"Transport od\", \"Návrat z\", \"suroviny\", \"budova\", \"Postaviť novú budovu\", \"prázdne\", \"úroveň\"];\n\t\taLangRaceName = [\"Rimania\", \"Germáni\", \"Galovia\"];\n\t\taLangTaskOfText = [\"Naplánovať Upgrade\", \"Naplánovať novú budovu\", \"Auto ResUpD\", \"Nebeží\", \"Štart\", \"Beží\", \"Suspend\", \"Surovinová distribúcia tejto dediny je \", \"Autotransport\", \"Autotransport nie je otvorený\", \"Otvorený\", \"Transport úspešný\", \"Zoznam úloh\", \"Trans In limit\", \"Default\", \"Zmeň\", \"Drevo/Hlina/Železo\", \"Obilie\", \"Naplánuj demolíciu\",\n\t\t\t\"Naplánuj útok\", \"Typ útoku\", \"Čas cesty\", \"opakovať\", \"časový interval\",\"00:30:00\",\"Cieľ Katapultu\",\"Náhodne\", \"Neznámy\", \"krát\", \"Mesiac\", \"Deň\", \"Poslať jednotky\",\n\t\t\t\"Naplánovať výcvik\",\"Výcvikové miesto\",\"Výcviková úloha hotová\",\"customTransport\",\"nastav časový interval obnovenia\",\"toto je interval obnovenia stránky ,\\n default je 20 minút, prosím vlož nový čas:\\n\\n\",\"Trans Out Rmn\",\"NaplánujOslavu\",\"malá slava\",\"veľká oslava\",\"nastavInterval surovinovej koncentrácie\",\n\t\t\t\"minút\",\"pozastavené\",\"spustené\",\"spusť\",\"pauza\",\"Naplánuj vylepšenie\",\"Vylepšiť Útok\",\"Vylepšiť Obranu\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Príliš málo surovín.\", \"Stavitelia majú momentálne veľa práce\", \"Stavanie kompletné\", \"Začína stavanie\", \"Vo vývoji\", \"Tvoj sklad je príliš malý. Prosím zvýš tvoj Sklad na pokračovanie stavania\", \"Tvoja Sýpka je príliš malá. Prosím zvýš tvoju Sýpku na pokračovanie stavania\", \"Dostatok surovín\",\"Nedostatok potravín: rozšír obilné polia najskôr!\",\"There is already a celebration going on\"];\n\t\taLangOtherText = [\"Dôležité poznámky\", \"Surovinové polia môžu byť len v hlavnej zvyšované na úroveň 20. Teraz nieje určená tvoja hlavná. Navštív tvoj Profil prosím.\", \"Skratka tu ^_^\", \"Nastavenie kompletné\", \"Zrušené\", \"Spusť úlohy\", \"Upgrade úspešný\", \"Spustenie úspešné\", \"Tvoj národ je neznámy, therefore your troop type. Navštív tvoj Profil na určenie tvojho národa.\", \"Prosím navštív tiež tvoj Dvor hrdinov na určenie rýchlosti a typu tvojho hrdinu.\"];\n\t\taLangResources = [\"drevo\",\"hlina\",\"železo\",\"obilie\"];\n\t\taLangTroops[0] = [\"Legionár\", \"Pretorián\", \"Imperián\", \"Equites Legáti\", \"Equites Imperátoris\", \"Equites Caesaris\", \"Rímske Baranidlo\", \"Ohnivý Katapult\", \"Senátor\", \"Osadník\", \"Hrdina\"];\n\t\taLangTroops[1] = [\"Pálkar\", \"Oštepár\", \"Bojovník so sekerou\", \"Špeh\", \"Rytier\", \"Teuton jazdec\", \"Germánske baranidlo\", \"Katapult\", \"Kmeňový vodca\", \"Osadník\", \"Hrdina\"];\n\t\taLangTroops[2] = [\"Falanx\", \"Šermiar\", \"Sliedič\", \"Theutates Blesk\", \"Druid jazdec\", \"Haeduan\", \"Drevené Baranidlo\", \"Vojnový Katapult\", \"Náčelník\", \"Osadník\", \"Hrdina\"];\n\t\taLangAttackType = [\"Podpora\", \"Útok\", \"Lúpež\"];\n\t\tbreak;\n\n\tcase \"id\":\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\taLangAllBuildWithId = [\"Penebangan Kayu\", \"Penggalian Tanah Liat\", \"Tambang Besi\", \"Ladang\", \"\", \"Penggergajian\", \"Pabrik Bata\", \"Peleburan Besi\", \"Penggilingan Gandum\", \"Toko Roti\", \"Gudang\", \"Lumbung\", \"Pandai Besi\", \"Pabrik Perisai\", \"Pusat Kebugaran\", \"Bangunan Utama\", \"Titik Temu\", \"Pasar\", \"Kedutaan\", \"Barak\", \"Istal\", \"Bengkel\", \"Akademi\", \"Cranny\", \"Balai Desa\", \"Kastil\", \"Istana\", \"Gudang Ilmu\", \"Kantor Dagang\", \"Barak Besar\", \"Istal Besar\", \"Pagar Batu\", \"Pagar Tanah\", \"Pagar kayu\", \"Tukang Batu\", \"Pabrik Bir\", \"Perangkap\",\"Padepokan\", \"Gudang Besar\", \"Lumbung Besar\", \"Keajaiban Dunia\", \"Tempat Minum Kuda\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Penebang Kayu\", \"Penggalian Tanah Liat\", \"Tambang Besi\", \"Ladang\", \"\", \"Penggergajian\", \"Pabrik Bata\", \"Peleburan Besi\", \"Penggilingan Gandum\", \"Toko Roti\", \"Gudang\", \"Lumbung\", \"Pandai Besi\", \"Pabrik Perisai\", \"Pusat Kebugaran\", \"Bangunan Utama\", \"Titik Temu\", \"Pasar\", \"Kedutaan\", \"Barak\", \"Istal\", \"Bengkel\", \"Akademi\", \"Cranny\", \"Balai Desa\", \"Kastil\", \"Istana\", \"Gudang Ilmu\", \"Kantor Dagang\", \"Barak Besar\", \"Istal Besar\", \"Pagar Batu\", \"Pagar Tanah\", \"Pagar kayu\", \"Tukang Batu\", \"Pabrik Bir\", \"Perangkap\",\"Padepokan\", \"Gudang Besar\", \"Lumbung Besar\", \"Keajaiban Dunia\", \"Tempat Minum Kuda\"];\n\t\t\t\taLangAddTaskText = [\"Tambah Pengerjaan\", \"Jenis\", \"Desa Aktif\", \"Target Pengerjaan\", \"ke\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \" Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t\t\taLangTaskKind = [\"Menaikkan\", \"Dirikan\", \"Serang\", \"riset\", \"latih\", \"Kirim\", \"NPC\", \"Bongkar\", \"Perayaan\"];\n\t\t\t\taLangGameText = [\"Tk\", \"Pedagang\", \"ID\", \"Ibukota\", \"Waktu mulai\", \"jangan gunakan waktu di atas\", \"ke\", \"Desa\", \"kirim\", \"dari\", \"Kirim ke\", \"Kiriman dari\", \"Kembali dari\", \"sumberdaya\", \"bangunan\", \"Mendirikan Bangunan\", \"kosong\", \"tingkat\"];\n\t\t\t\taLangRaceName = [\"Romawi\", \"Teuton\", \"Galia\"];\n\t\t\t\taLangTaskOfText = [\"Jadwal Menaikkan\", \"Jadwal Dirikan\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Otomatis kirim\", \"Autotransport is not opened\", \"Opened\", \"Pengiriman Berhasil\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Kayu/Liat/Besi\", \"Gandum\", \"Jadwal Pembongkaran\",\n\t\t\t\t\t\"Jadwal Serangan\", \"Tipe serangan\", \"Waktu tiba\", \"diulang\", \"rentang waktu\", \"00:30:00\", \"Target catapult\", \"Acak\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Pasukan terkirim\",\n\t\t\t\t\t\"Jadwal Pelatihan\", \"Tempat latih\", \"Pelatihan selesai\", \"Atur kirim\", \"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans Out Rmn\",\"Jadwal Perayaan\",\"Perayaan kecil\",\"Perayaan besar\",\"setInterval of Resources concentration\",\n\t\t\t\t\t\"minutes\", \".\",\".\",\"START\",\"STOP\",\"Jadwal Pengembangan\",\"Pengembangan serangan\",\"Pengembangan pertahanan\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"sumberdaya cukup pada\", \"Pekerja sedang bekerja\", \"sepenuhnya telah dikembangkan\", \"Dirikan bangunan\", \"Sedang Membangun\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"sumberdaya cukup pada\",\"Kurang makanan: kembangkan ladang terlebih dahulu\",\"There is already a celebration going on\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can be upgraded to level 20. Now your capital is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Hero's Mansion to determine the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t\t\taLangResources=[\"Kayu\",\"Liat\",\"Besi\",\"Gandum\"];\n\t\t\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangAttackType = [\"Bantuan\", \"Serang\", \"Rampok\"];\n\t\t\t\tbreak; \n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\taLangAllBuildWithId = [\"Penebang Kayu\", \"Penggalian Tanah Liat\", \"Tambang Besi\", \"Ladang\", \"\", \"Pemotong Kayu\", \"Pabrik Bata\", \"Pelebur Besi\", \"Penggiling Gandum\", \"Toko Roti\", \"Gudang\", \"Lumbung\", \"Pandai Besi\", \"Pabrik Perisai\", \"Pusat Kebugaran\", \"Bangunan Utama\", \"Titik Temu\", \"Pasar\", \"Kedutaan\", \"Barak\", \"Istal\", \"Bengkel\", \"Akademi\", \"Cranny\", \"Balai Desa\", \"Kastil\", \"Istana\", \"Gudang Ilmu\", \"Kantor Dagang\", \"Barak Besar\", \"Istal Besar\", \"Pagar Batu\", \"Pagar Tanah\", \"Pagar kayu\", \"Tukang Batu\", \"Pabrik Bir\", \"Perangkap\",\"Padepokan\", \"Gudang Besar\", \"Lumbung Besar\", \"Keajaiban Dunia\", \"Tempat Minum Kuda\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Penebang Kayu\", \"Penggalian Tanah Liat\", \"Tambang Besi\", \"Ladang\", \"\", \"Pemotong Kayu\", \"Pabrik Bata\", \"Pelebur Besi\", \"Penggiling Gandum\", \"Toko Roti\", \"Gudang\", \"Lumbung\", \"Pandai Besi\", \"Pabrik Perisai\", \"Pusat Kebugaran\", \"Bangunan Utama\", \"Titik Temu\", \"Pasar\", \"Kedutaan\", \"Barak\", \"Istal\", \"Bengkel\", \"Akademi\", \"Cranny\", \"Balai Desa\", \"Kastil\", \"Istana\", \"Gudang Ilmu\", \"Kantor Dagang\", \"Barak Besar\", \"Istal Besar\", \"Pagar Batu\", \"Pagar Tanah\", \"Pagar kayu\", \"Tukang Batu\", \"Pabrik Bir\", \"Perangkap\",\"Padepokan\", \"Gudang Besar\", \"Lumbung Besar\", \"Keajaiban Dunia\", \"Tempat Minum Kuda\"];\n\t\t\t\taLangAddTaskText = [\"Tambah Pengerjaan\", \"Jenis\", \"Desa Aktif\", \"Target Pengerjaan\", \"ke\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \" Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t\t\taLangTaskKind = [\"Menaikkan\", \"Dirikan\", \"Serang\", \"riset\", \"latih\", \"Kirim\", \"NPC\", \"Bongkar\", \"Perayaan\"];\n\t\t\t\taLangGameText = [\"Tk\", \"Pedagang\", \"ID\", \"Ibukota\", \"Waktu mulai\", \"jangan gunakan waktu di atas\", \"ke\", \"Desa\", \"kirim\", \"dari\", \"Kirim ke\", \"Kiriman dari\", \"Kembali dari\", \"sumberdaya\", \"bangunan\", \"Mendirikan Bangunan\", \"kosong\", \"tingkat\"];\n\t\t\t\taLangRaceName = [\"Romawi\", \"Teuton\", \"Galia\"];\n\t\t\t\taLangTaskOfText = [\"Jadwal Menaikkan\", \"Jadwal Dirikan\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Otomatis kirim\", \"Autotransport is not opened\", \"Opened\", \"Pengiriman Berhasil\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Kayu/Liat/Besi\", \"Gandum\", \"Jadwal Pembongkaran\",\n\t\t\t\t\t\"Jadwal Serangan\", \"Tipe serangan\", \"Waktu tiba\", \"diulang\", \"rentang waktu\", \"00:30:00\", \"Target catapult\", \"Acak\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Pasukan terkirim\",\n\t\t\t\t\t\"Jadwal Pelatihan\", \"Tempat latih\", \"Pelatihan selesai\", \"Atur kirim\", \"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans Out Rmn\",\"Jadwal Perayaan\",\"Perayaan kecil\",\"Perayaan besar\",\"setInterval of Resources concentration\",\n\t\t\t\t\t\"minutes\", \".\",\".\",\"START\",\"STOP\",\"Jadwal Pengembangan\",\"Pengembangan serangan\",\"Pengembangan pertahanan\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"sumberdaya cukup pada\", \"Pekerja sedang bekerja\", \"sepenuhnya telah dikembangkan\", \"Dirikan bangunan\", \"Sedang Membangun\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"sumberdaya akan cukup pada\",\"Gandum anda dalam kondisi minus maka tidak akan pernah sampai pada jumlah sumber daya yang dibutuhkan.\",\"There is already a celebration going on\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can be upgraded to level 20. Now your capital is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Hero's Mansion to determine the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t\t\taLangResources=[\"Kayu\",\"Liat\",\"Besi\",\"Gandum\"];\n\t\t\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\", \"Swordsman\", \"Pathfinder\", \"Theutates Thunder\", \"Druidrider\", \"Haeduan\", \"Ram\", \"Trebuchet\", \"Chieftain\", \"Settler\", \"Kesatria\"];\n\t\t\t\taLangAttackType = [\"Bantuan\", \"Serang\", \"Rampok\"];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrowLogicError ( \"initializeLangVars():: Travian Version not set, when initializing language variables for \\'id\\'!!\" );\n\t\t}\n\t\tbreak;\n\n\n\tcase \"au\":\t\n\tcase \"uk\":\t\n\tcase \"com\": // thanks ieyp\n\tdefault:\n\t\t// used for logic, translation required\n\t\taLangAllBuildWithId = aLangAllBuildWithIdComDef.slice(0);\n\t\t// used for logic, translation required\n\t\taLangAllBuildAltWithId = aLangAllBuildAltWithIdComDef.slice(0);\n\t\t// used for display only\n\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\t// used for display only\n\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\t// used for logic and display, translation required\n\t\taLangGameText = aLangGameTextComDef.slice(0);\n\t\t// used for getMainVillageid(), translation required\n\t\taLangRaceName = aLangRaceNameComDef.slice(0);\n\t\t// used for display only\n\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans In limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Crop\", \"Schedule demolition\",\n\t\t\t\t\"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\", \"00:30:00\", \"Catapult target\", \"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\",\n\t\t\t\t\"Schedule Train\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"ScheduleParty\", \"small party\", \"big party\", \"setInterval of Resources concentration\",\n\t\t\t\t\"minutes\", \".\", \".\", \"START\", \"STOP\", \"Schedule Improve\", \"Improve Attack\", \"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t// used for logic & display, translation required\n\t\taLangErrorText = aLangErrorTextComDef.slice(0);\n\t\t// used for display\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\t// used for display only, however translation can be done\n\t\taLangResources = aLangResourcesComDef.slice(0);\n\t\t// used for logic & display, translation required\n\t\taLangTroops[0] = aLangTroopsComDef[0].slice(0);\n\t\taLangTroops[1] = aLangTroopsComDef[1].slice(0);\n\t\taLangTroops[2] = aLangTroopsComDef[2].slice(0);\n\t\t// used for display only, however translation can be done\n\t\taLangAttackType = aLangAttackTypeComDef.slice(0);\n\t\tbreak;\n\n\tcase \"pl\": // partial translation by deFox\n\t\t// 2011.02.13 -- partial translation by Blaker\n\t\taLangAllBuildWithId = [\"Las\", \"Kopalnia gliny\", \"Kopalnia żelaza\", \"Pole zboża\", \"\", \"Tartak\", \"Cegielnia\", \"Huta stali\", \"Młyn\", \"Piekarnia\", \"Magazyn surowców\", \"Spichlerz\", \"Zbrojownia\", \"Kuźnia\", \"Plac turniejowy\", \"Główny budynek\", \"Miejsce zbiórki\", \"Rynek\", \"Ambasada\", \"Koszary\", \"Stajnia\", \"Warsztat\", \"Akademia\", \"Kryjówka\", \"Ratusz\", \"Rezydencja\", \"Pałac\", \"Skarbiec\", \"Targ\", \"Duże koszary\", \"Duża stajnia\", \"Mur obronny\", \"Wał ziemny\", \"Palisada\", \"Kamieniarz\", \"Browar\", \"Traper\",\"Dwór bohatera\", \"Duży magazyn surowców\", \"Duży spichlerz\", \"Cud świata\", \"Wodopój\"];\n\t\taLangAllBuildAltWithId = [\"Las\", \"Kopalnia gliny\", \"Kopalnia żelaza\", \"Pole zboża\", \"\", \"Tartak\", \"Cegielnia\", \"Huta stali\", \"Młyn\", \"Piekarnia\", \"Magazyn surowców\", \"Spichlerz\", \"Zbrojownia\", \"Kuźnia\", \"Plac turniejowy\", \"Główny budynek\", \"Miejsce zbiórki\", \"Rynek\", \"Ambasada\", \"Koszary\", \"Stajnia\", \"Warsztat\", \"Akademia\", \"Kryjówka\", \"Ratusz\", \"Rezydencja\", \"Pałac\", \"Skarbiec\", \"Targ\", \"Duże koszary\", \"Duża stajnia\", \"Mur obronny\", \"Wał ziemny\", \"Palisada\", \"Kamieniarz\", \"Browar\", \"Traper\",\"Dwór bohatera\", \"Duży magazyn surowców\", \"Duży spichlerz\", \"Cud świata\", \"Wodopój\"];\n\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\taLangTaskKind = [\"Upgrade\", \"NewBuild\", \"Attack\", \"Research\", \"Train\", \"Transport\", \"NPC\", \"Demolish\", \"Celebration\"];\n\t\taLangGameText = [\"Lvl\", \"Merchants\", \"ID\", \"Capital\", \"Start time\", \"this timeseting is unuseful now.\", \"to\", \"Village\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Construct new building\", \"empty\", \"level\"];\n\t\taLangRaceName = [\"Rzymianie\", \"Germanie\", \"Galowie\"];\n\t\taLangTaskOfText = [\"Zaplanuj Upgrade\", \"Zaplanuj Budowę\", \"Auto ResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Lista zadań\", \"Trans In limit\", \"Domyśl.\", \"Zmień\", \"Drewno/Glina/Żelazo\", \"Zboże\", \"Schedule demolition\",\n\t\t\t\"Zaplanuj atak\", \"Typ Ataku\", \"Czas podróży\", \"repeat times\", \"odstęp czasu\", \"00:30:00\",\"Cel dla katapult\", \"Losowy\", \"Nieznany\", \"times\", \"Mies.\", \"Dzień\", \"Troops sent\",\n\t\t\t\"Zaplanuj szkolenie\", \"Train site\", \"TrainTask done\", \"customTransport\", \"setup interval time of reload\",\"this is the interval of page reload,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans Out Rmn\",\"ScheduleParty\",\"small party\",\"big party\",\"setInterval of Resources concentration\",\n\t\t\t\"minut\", \".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Zbyt mało surowców.\", \"The workers are already at work.\", \"Construction completed\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\",\"Lack of food: extend cropland first\",\"There is already a celebration going on\"];\n\t\taLangOtherText = [\"Ważna wiadomość\", \"Tylko w stolicy można rozbudować teren do poz. 20.<br/>Aktywna wioska nie została rozpoznana jako stolica.<br/>Wejdź w Ustawienia by wywołać aktualizację.\", \"Szybki link ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"Upgrade successfully\", \"Run successfully\", \"Nie udało się określić twojej rasy, stąd typy jednostek<br/>nie są znane. Wejdź w Ustawienia by skrypt wykrył twoją rasę.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\"];\n\t\taLangResources = [\"drewno\", \"glina\", \"żelazo\", \"zboże\"];\n\t\taLangTroops[0] = [\"Legionnaire\", \"Praetorian\", \"Imperian\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Battering Ram\", \"Fire Catapult\", \"Senator\", \"Settler\", \"Hero\"];\n\t\taLangTroops[1] = [\"Clubswinger\", \"Spearman\", \"Axeman\", \"Scout\", \"Paladin\", \"Teutonic Knight\", \"Ram\", \"Catapult\", \"Chief\", \"Settler\", \"Hero\"];\n\t\taLangTroops[2] = [\"Falanga\", \"Miecznik\", \"Tropiciel\", \"Grom Teutatesa\", \"Jeździec druidzki\", \"Haeduan\", \"Taran\", \"Trebusz\", \"Herszt\", \"Osadnicy\", \"Bohater\"];\n\t\taLangAttackType = [\"Posiłki\", \"Atak normalny\", \"Grabież\"];\n\t\tbreak;\n\n\tcase \"ua\":\n\t\taLangAllBuildWithId = [\"Лісоповал\", \"Глиняний кар'єр\", \"Залізна копальня\", \"Ферма\", \"\", \"Деревообробний завод\", \"Цегляний завод\", \"Чавуноливарний завод\", \"Млин\", \"Пекарня\", \"Склад\", \"Зернова комора\", \"Кузня зброї\", \"Кузня обладунків\", \"Арена\", \"Головна будівля\", \"Пункт збору\", \"Ринок\", \"Посольство\", \"Казарма\", \"Стайня\", \"Майстерня\", \"Академія\", \"Схованка\", \"Ратуша\", \"Резиденція\", \"Палац\", \"Скарбниця\", \"Торгова палата\", \"Велика казарма\", \"Велика стайня\", \"Міська стіна\", \"Земляний вал\", \" Огорожа\", \"Каменяр\", \"Пивна\", \"Капканщик\",\"Таверна\", \"Великий склад\", \"Велика Зернова комора\", \"Чудо світу\", \"Водопій\"];\n\t\taLangAllBuildAltWithId = [\"Лісоповал\", \"Глиняний кар'єр\", \"Залізна копальня\", \"Ферма\", \"\", \"Деревообробний завод\", \"Цегляний завод\", \"Чавуноливарний завод\", \"Млин\", \"Пекарня\", \"Склад\", \"Зернова комора\", \"Кузня зброї\", \"Кузня обладунків\", \"Арена\", \"Головна будівля\", \"Пункт збору\", \"Ринок\", \"Посольство\", \"Казарма\", \"Стайня\", \"Майстерня\", \"Академія\", \"Схованка\", \"Ратуша\", \"Резиденція\", \"Палац\", \"Скарбниця\", \"Торгова палата\", \"Велика казарма\", \"Велика стайня\", \"Міська стіна\", \"Земляний вал\", \" Огорожа\", \"Каменяр\", \"Пивна\", \"Капканщик\",\"Таверна\", \"Великий склад\", \"Велика Зернова комора\", \"Чудо світу\", \"Водопій\"];\n\t\taLangAddTaskText = [\"Додати завдання\", \"Спосіб\", \"Активне поселення\", \"Ціль завдання\", \"| Ціль\", \"Тип\", \"Підтримка будівництва\", \"Концентрація ресурсів\", \"Вверх\", \"Вниз\", \"\", \"\", \"\", \"Видалити усі завдання\"];\n\t\taLangTaskKind = [\"Покращити:\", \"Нове завдання:\", \"Атакувати:\", \"Розвідати:\", \" наняти:\", \"Відправити ресурси:\", \"NPC:\", \"Зруйнувати:\", \"Урочистість:\"];\n\t\taLangGameText = [\" Рівень \", \"Торговці\", \"ID\", \"Столиця\", \"Час початку\", \"(тимчасово не працює)\", \"в\", \"Поселення\", \"Транспортування\", \"з\", \"Транспортування в\", \"Транспортування из\", \"Повернення з\", \"ресурси\", \"будівля\", \"Побудувати нову будівлю\", \"пусто\", \"рівень\"];\n\t\taLangRaceName = [\"Римляни\", \"Тевтонці\", \"Галли\"];\n\t\taLangTaskOfText = [\"Запланувати удосконалення\", \"Запланувати нове завдання\", \"Качати реурси\", \"Викл\", \"Старт\", \"Вкл\", \"стоп\", \"Розполілення полів в поселенні: \", \"Автовідправлення\", \"Автовідправлення викл.\", \"Вкл.\", \"Успішно відправленно\", \"* Задачі *\", \"Обмеження ввозу\", \"Ні\", \"Змінити \", \"Дерево/Глина/Залізо\", \"Зерно\", \"Запланувати зруйнування\",\n\t\t\t\"Запланувати атаку\", \"Тип атаки\", \"Час в дорозі\", \"повтори\", \"проміжок\",\"00:30:00\",\"Ціль катов\",\"Випадково\", \"Невідомо\", \" раз\", \"/\", \" :дата/час: \", \"Війска\",\n\t\t\t\"Запланувати найм\",\"Train site\",\"Навчання військ завершено\",\"цілеве відправлення\",\"Інтервал оновлення\",\"Це інтервал оновлення сторінки ,\\n по замовчуванню - 20 хвилин, Введіть новоий час:\\n\\n\",\"Обмеження вивозу\",\"Запланувати святкування\",\"Малий праздник\",\"Великий праздник\",\"Встановлення інтервала концентрації ресурсів\",\n\t\t\t\"хвилини\",\"зупинено\",\"працює\",\"старт\",\"пауза\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Недостатньо сировини\", \"Всі будівельники зараз зайняті\", \"Це завдання зупинено повністю\", \"Починаю будівництво\", \"Процес розвитку\", \"Недостатня місткість складу\", \"Недостатня місткість Зернової комори\", \"Достатньо ресурсів\",\"\",\"Проводится урочистість\"];\n\t\taLangOtherText = [\"Важливі замітки\", \"Тільки в столиці поля можуть бути до рівня 20. Столиця не визначена.Зайдіть в профіль будьласка\", \"Ссилка тут ^_^\", \"Настройка завершена\", \"Відмінено\", \"Почати завдання\", \"Удосконалення пройшло успішно\", \"Успішно\", \"Ваш народ невизначений.Будьласка зайдіть в профіль.\", \"Також будьласка зайдіть в таверну для визначення типу та скорості героя\"];\n\t\taLangResources=[\"Деревина\",\"Глина\",\"Залізо\",\"Зерно\"];\n\t\taLangTroops[0] = [\"Легіонер\", \"Преторіанець\", \"Імперіанець\", \"Кінний розвідник\", \"Кіннота імператора\", \"Кіннота Цезаря\", \"Таран\", \"Вогняна катапульта\", \"Сенатор\", \"Поселенець\", \"Герой\"];\n\t\taLangTroops[1] = [\"Дубинник\", \"Списник\", \"Сокирник\", \"Скаут\", \"Паладин\", \"Тевтонський вершник\", \"Стінобитне знаряддя\", \"Катапульта\", \"Ватажок\", \"Поселенець\", \"Герой\"];\n\t\taLangTroops[2] = [\"Фаланга\", \"Мечник\", \"Слідопит\", \"Тевтацький грім\", \"Друїд-вершник\", \"Едуйська кіннота\", \"Таран\", \"Катапульта\", \"Лідер\", \"Поселенець\", \"Герой\"];\n\t\taLangAttackType = [\"Підкріплення\", \"Напад\", \"Набіг\"];\n\t\tbreak;\n\n\tcase \"tr\": // by karambol update the 27 Mar 2010 by SARLAK\n aLangAllBuildWithId = [\"Oduncu\", \"Tuğla Ocağı\", \"Demir Madeni\", \"Tarla\", \"\", \"Kereste Fabrikası\", \"Tuğla Fırını\", \"Demir Dökümhanesi\", \"Değirmen\", \"Ekmek Fırını\", \"Hammadde deposu\", \"Tahıl Ambarı\", \"Silah Dökümhanesi\", \"Zırh Dökümhanesi\", \"Turnuva Yeri\", \"Merkez Binası\", \"Askeri Üs\", \"Pazar Yeri\", \"Elçilik\", \"Kışla\", \"Ahır\", \"Tamirhane\", \"Akademi\", \"Sığınak\", \"Belediye\", \"Köşk\", \"Saray\", \"Hazine\", \"Ticari Merkez\", \"Büyük Kışla\", \"Büyük Ahır\", \"Sur\", \"Toprak Siper\", \"Çit\", \"Taşçı\", \"İçecek Fabrikası\", \"Tuzakçı\",\"Kahraman Kışlası\", \"Büyük Hammadde deposu\", \"Büyük Tahıl Ambarı\", \"Dünya Harikası\", \"Yalak\"];\n aLangAllBuildAltWithId = [\"Oduncu\", \"Tuğla Ocağı\", \"Demir Madeni\", \"Tarla\", \"\", \"Kereste Fabrikası\", \"Tuğla Fırını\", \"Demir Dökümhanesi\", \"Değirmen\", \"Ekmek Fırını\", \"Hammadde deposu\", \"Tahıl Ambarı\", \"Silah Dökümhanesi\", \"Zırh Dökümhanesi\", \"Turnuva Yeri\", \"Merkez Binası\", \"Askeri Üs\", \"Pazar Yeri\", \"Elçilik\", \"Kışla\", \"Ahır\", \"Tamirhane\", \"Akademi\", \"Sığınak\", \"Belediye\", \"Köşk\", \"Saray\", \"Hazine\", \"Ticari Merkez\", \"Büyük Kışla\", \"Büyük Ahır\", \"Sur\", \"Toprak Siper\", \"Çit\", \"Taşçı\", \"İçecek Fabrikası\", \"Tuzakçı\",\"Kahraman Kışlası\", \"Büyük Hammadde deposu\", \"Büyük Tahıl Ambarı\", \"Dünya Harikası\", \"Yalak\"];\n aLangAddTaskText = [\"Görev Ekle\", \"Stil\", \"Aktif Köy\", \"Görev Hedefi\", \"Hedef\", \"Türü\", \"İnşaat Desteği\", \"Hammadde karışımı\", \"Yukarı Taşı\", \"Aşağı Taşı\", \"Sil\", \"Görev İçeriği\", \"Sırala\", \"Tüm görevleri sil\"]; \n aLangTaskKind = [\"Geliştirilen Bina :\", \"Yeni Bina :\", \"Hücum\", \"Araştır\", \"Yetiştir\", \"Gönder\", \"NPC\", \"Yıkılan Bina :\", \"Festival\"]; \n aLangGameText = [\"Seviye \", \"Tüccar\", \"ID\", \"Başkent\", \"Başlangıç zamanı\", \"Değiştirilemez.\", \"buraya\", \"Aktif Köy\", \"gönder\", \"buradan\", \"Gönderiliyor\", \"Gönderildi\", \"Dönüş\", \"hammadde\", \"bina\", \"Yeni bina kur\", \"boş\", \"Seviye \"]; \n aLangRaceName = [\"Romalılar\", \"Cermenler\", \"Galyalılar\"]; \n aLangTaskOfText = [\"Geliştirme Zamanla\", \"Yeni Bina Kurulumu\", \"Otomatik hammadde güncelle\", \"Çalışmıyor\", \"Başlat\", \"Çalışıyor\", \"Durdur\", \"Bu köyün kaynak alanları dağılımıdır \", \"Otomatik Gönderme\", \"Otomatik gönderme açılmadı\", \"Açıldı\", \"Gönderme Tamamladı\", \"\", \"Gönderme limiti\", \"Varsayılan\", \"Değiştir\", \"Odun/Tuğla/Demir\", \"Tahıl\", \"Yıkımı zamanla\", \n \"Hücum zamanla\", \"Hücum Şekli\", \"Varış zamanı\", \"Tekrar Sayısı\", \"Tekrar Aralığı\",\"00:30:00\",\"Mancınık hedef\",\"Rastgele\", \"Bilinmeyen\", \"kere\", \"Ay\", \"Gün\", \"Asker gönder\", \"Asker Yetiştir\",\"Yetiştirilme Noktası\",\"Eğitim görevi tamamlandı\",\"Hammadde Gönderimi Zamanla\",\"Gerçekleşmeyen Kurulumu Tekrarlama Süresi\",\"Tekrar deneme süresini giriniz.\\n(Varsayılan Değer: 20 Dakika)\",\"Trans Out Rmn\",\"Festivalzamanla\",\"Küçük festival\",\"Büyük festival\",\"Hammadde Toplama Aralığı\", \n \"dakikalar\",\"Pasif\",\"Aktif\",\"Aktif Et\",\"Pasif Et\",\"Asker Gelişimi Zamanla\",\"Silah Gelişimi\",\"Zırh Gelişimi\",\"saati\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"]; \n aLangErrorText = [\"Çok az kaynak.\", \"Işçi zaten iş başında.\", \"İnşaat tamamlandı\", \"İnşaat başlatılıyor\", \"Araştırma yapılıyor\", \"İnşaata Hammadde deposunu geliştirip devam ediniz.\", \"İnşaata Tahıl ambarını geliştirip devam ediniz.\", \"Yeterli hammadde\",\"Kaynak eksikliği: önce Tarlanı geliştir\",\"Şu anda bir festival yapılıyor zaten\"]; \n aLangOtherText = [\"Önemli not\", \"Sadece başkent için hammadde üretebilirsiniz <br/>be Güncellendi seviye 20. Şimdi Başkentin<br/> tesbit edilemedi. Profilinizi ziyaret ediniz.\", \"Buraya kısa yol ^_^\", \"Kurulum tamamlandı\", \"Vazgeçildi\", \"Görevleri başlat\", \"Güncelleme tamamlandı\", \"Çalışma tamam\", \"Irkınız bilinmediğinden asker türünüz belilenemedi <br/>Profilinizi ziyaret edip ırkınızı belirleyin<br/>\", \"Ayrıca kahraman kışlasınıda ziyaret edin<br/> Kahramanınızın hızı ve tipi.\"]; \n aLangResources=[\"Odun\",\"Tuğla\",\"Demir\",\"Tahıl\"]; \n aLangTroops[0] = [\"Lejyoner\", \"Pretoryan\", \"Emperyan\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Koçbaşı\", \"Ateş Mancınığı\", \"Senatör\", \"Göçmen\", \"Kahraman\"]; \n aLangTroops[1] = [\"Tokmak Sallayan\", \"Mızrakçı\", \"Balta Sallayan\", \"Casus\", \"Paladin\", \"Toyton\", \"Koçbaşı\", \"Mancınık\", \"Reis\", \"Göçmen\", \"Kahraman\"]; \n aLangTroops[2] = [\"Phalanx\", \"Kılıçlı\", \"Casus\", \"Toytatın Şimşeği\", \"Druyid\", \"Heduan\", \"Koçbaşı\", \"Mancınık\", \"Kabile Reisi\", \"Göçmen\", \"Kahraman\"]; \n aLangAttackType = [\"Destek\", \"Saldırı: Normal\", \"Saldırı: Yağma\"]; \n break;\n\n\tcase \"br\":\n\t\taLangAllBuildWithId = [\"Bosque\", \"Poço de Barro\", \"Mina de Ferro\", \"Campo de Cereais\", \"\", \"Serraria\", \"Alvenaria\", \"Fundição\", \"Moinho\", \"Padaria\", \"Armazém\", \"Celeiro\", \"Ferreiro\", \"Fábrica de Armaduras\", \"Praça de torneios\", \"Edifício principal\", \"Ponto de reunião militar\", \"Mercado\", \"Embaixada\", \"Quartel\", \"Cavalaria\", \"Oficina\", \"Academia\", \"Esconderijo\", \"Casa do Povo\", \"Residência\", \"Palácio\", \"Tesouraria\", \"Companhia do Comércio\", \"Grande Quartel\", \"Grande Cavalaria\", \"Muralha\", \"Barreira\", \"Paliçada\", \"Pedreiro\", \"Cervejaria\", \"Fábrica de Armadilhas\",\"Mansão do Herói\", \"Grande armazém\", \"Grande Celeiro\", \"Maravilha do Mundo\", \"Bebedouro para cavalos\"];\n\t\taLangAllBuildAltWithId = [\"Bosque\", \"Poço de Barro\", \"Mina de Ferro\", \"Campo de Cereais\", \"\", \"Serraria\", \"Alvenaria\", \"Fundição\", \"Moinho\", \"Padaria\", \"Armazém\", \"Celeiro\", \"Ferreiro\", \"Fábrica de Armaduras\", \"Praça de torneios\", \"Edifício principal\", \"Ponto de reunião militar\", \"Mercado\", \"Embaixada\", \"Quartel\", \"Cavalaria\", \"Oficina\", \"Academia\", \"Esconderijo\", \"Casa do Povo\", \"Residência\", \"Palácio\", \"Tesouraria\", \"Companhia do Comércio\", \"Grande Quartel\", \"Grande Cavalaria\", \"Muralha\", \"Barreira\", \"Paliçada\", \"Pedreiro\", \"Cervejaria\", \"Fábrica de Armadilhas\",\"Mansão do Herói\", \"Grande armazém\", \"Grande Celeiro\", \"Maravilha do Mundo\", \"Bebedouro para cavalos\"];\n\t\taLangAddTaskText = [\"Adicionar tarefa\", \"Estilo\", \"Aldeia Activa\", \"Alvo\", \"Para\", \"Modo\", \"Ajuda na Construção\", \"Quantidade de recursos\", \"Mover para cima\", \"Mover para baixo\", \"Apagar\", \"&#160;&#160;&#160;Tarefas\", \"Mover \", \"Eliminar todas as tarefas\"];\n\t\taLangTaskKind = [\"Evolução\", \"Novo construção\", \"Ataque\", \"Pesquisa\", \"Treino\", \"Transporte\", \"NPC\", \"Demolição\", \"Celebração\"];\n\t\taLangGameText = [\"Lvl\", \"Mercadores\", \"Identificação\", \"Capital\", \"Inicio\", \"this timeseting is unuseful now.\", \"Para\", \"Aldeia\", \"Transporte\", \"de\", \"Transporte para\", \"Transporte de\", \"A regressar de\", \"Recursos\", \"Edificio\", \"Construir novo edifício\", \"Vazio\", \"Nivel\"];\n\t\taLangRaceName = [\"Romanos\", \"Teutões\", \"Gauleses\"];\n\t\taLangTaskOfText = [\"Agendar Evolução\", \"Agendar nova construção\", \"ResourcesUpD\", \"OFF\", \"Iniciar\", \"ON\", \"Parar\", \"A distribuição dos campos desta aldeia é \", \"Autotransporte\", \"Autotransporte não está aberto\", \"Aberto\", \"Transporte com sucesso\", \"Lista de agendamento\", \"Limit\", \"Default\", \"Alterar\", \"madeira/barro/ferro\", \"cereal\", \"Agendamento de demolição\",\n\t\t\t\"Agendamento de ataque\", \"Tipo de ataque\", \"Tempo de viagem\", \"Repetir número de vezes\", \"Tempo de intervalo\",\"00:30:00\",\"Alvo catapulta\",\"Aleatório\", \"Desconhecido\", \"Vezes\", \" Mês\", \" Dia\", \"Tropas enviadas\",\n\t\t\t\"Agendamento de treino\",\"localização de tropas\",\"Agendamento de treino feito\",\"Transporte personalizado\",\"Setup Interval Time of Reload\",\"This is the interval of page reload ,\\n default são 20 minutos, Insira novo tempo:\\n\\n\",\"Remain\",\"Agendar Celebração\",\"pequena celebração\",\"grande celebração\",\"Set Interval of Resources concentration\",\n\t\t\t\"minutos\",\"parado\",\"ligado\",\"ligar\",\"parar\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Poucos recursos.\", \"Os trabalhadores já estão a trabalhar.\", \"Construção completa\", \"Inicio da construção\", \"Em desenvolvimento\", \"Seu Armazém é pequeno. Evolua o seu armazém para continuar a sua construção\", \"Seu Celeiro é pequeno. Evolua o seu Celeiro para continuar a sua construção\", \"Recursos suficientes\",\"Já se encontra uma celebração em curso\"];\n\t\taLangOtherText = [\"Nota importante\", \"Apenas os campos de recursos da capital <br/>podem ser elevados a nivel 20 . A sua capital <br/> nao está detectavel. Por favor visite o seu perfil.\", \"Atalho aqui ^_^\", \"Instalação concluída\", \"Cancelado\", \"Iniciar as tarefas\", \"Upgrade com sucesso\", \"Executar com sucesso\", \"Sua raça é desconhecida, e o seu tipo de tropa também. <br/>Visite o seu perfil para determinar as raça.<br/>\", \"Por favor visite a sua mansão do heroi para determinar<br/> a velocidade e o tipo de heroi.\"];\n\t\taLangResources=[\"Madeira\",\"Barro\",\"Ferro\",\"Cereais\"];\n\t\taLangTroops[0] = [\"Legionário\", \"Pretoriano\", \"Imperiano\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Aríete\", \"Catapulta de Fogo\", \"Senador\", \"Colonizador\", \"Heroi\"];\n\t\taLangTroops[1] = [\"Salteador\", \"Lanceiro\", \"Bárbaro\", \"Espião\", \"Paladino\", \"Cavaleiro Teutão\", \"Aríete\", \"Catapulta\", \"Chefe\", \"Colonizador\", \"Heroi\"];\n\t\taLangTroops[2] = [\"Falange\", \"Espadachim\", \"Batedor\", \"Trovão Theutate\", \"Cavaleiro Druida\", \"Haeduano\", \"Aríete\", \"Trabuquete\", \"Chefe de Clã\", \"Colonizador\", \"Heroi\"];\n\t\taLangAttackType = [\"Reforço\", \"Ataque\", \"Assalto\"];\n\t\tbreak;\n\n\n case \"pt\": // thanks RASCO and Tuga\n\t\taLangAllBuildWithId = [\"Bosque\", \"Poço de Barro\", \"Mina de Ferro\", \"Campo de Cereais\", \"\", \"Serração\", \"Alvenaria\", \"Fundição\", \"Moinho\", \"Padaria\", \"Armazém\", \"Celeiro\", \"Ferreiro\", \"Fábrica de Armaduras\", \"Praça de torneios\", \"Edifício principal\", \"Ponto de reunião militar\", \"Mercado\", \"Embaixada\", \"Quartel\", \"Cavalariça\", \"Oficina \", \"Academia\", \"Esconderijo\", \"Casa do Povo\", \"Residência\", \"Palácio\", \"Tesouraria\", \"Companhia do Comércio\", \"Grande Quartel\", \"Grande Cavalariça\", \"Muralha\", \"Barreira\", \"Paliçada\", \"Pedreiro\", \"Cervejaria\", \"Fábrica de Armadilhas\",\"Mansão do Herói\", \"Grande armazém\", \"Grande Celeiro\", \"Maravilha do Mundo\", \"Bebedouro para cavalos\"];\n\t\taLangAllBuildAltWithId = [\"Bosque\", \"Poço de Barro\", \"Mina de Ferro\", \"Campo de Cereais\", \"\", \"Serração\", \"Alvenaria\", \"Fundição\", \"Moinho\", \"Padaria\", \"Armazém\", \"Celeiro\", \"Ferreiro\", \"Fábrica de Armaduras\", \"Praça de torneios\", \"Edifício principal\", \"Ponto de reunião militar\", \"Mercado\", \"Embaixada\", \"Quartel\", \"Cavalariça\", \"Oficina \", \"Academia\", \"Esconderijo\", \"Casa do Povo\", \"Residência\", \"Palácio\", \"Tesouraria\", \"Companhia do Comércio\", \"Grande Quartel\", \"Grande Cavalariça\", \"Muralha\", \"Barreira\", \"Paliçada\", \"Pedreiro\", \"Cervejaria\", \"Fábrica de Armadilhas\",\"Mansão do Herói\", \"Grande armazém\", \"Grande Celeiro\", \"Maravilha do Mundo\", \"Bebedouro para cavalos\"];\n\t\taLangAddTaskText = [\"Adicionar tarefa\", \"Estilo\", \"Aldeia Activa\", \"Alvo\", \"Para\", \"Modo\", \"Ajuda na Construção\", \"Quantidade de recursos\", \"Mover para cima\", \"Mover para baixo\", \"Apagar\", \"&#160;&#160;&#160;Tarefas\", \"Mover \", \"Eliminar todas as tarefas\"];\n\t\taLangTaskKind = [\"Evolução\", \"Novo construção\", \"Ataque\", \"Pesquisa\", \"Treino\", \"Transporte\", \"NPC\", \"Demolição\", \"Celebração\"];\n\t\taLangGameText = [\"Lvl\", \"Mercadores\", \"Identificação\", \"Capital\", \"Inicio\", \"this timeseting is unuseful now.\", \"Para\", \"Aldeia\", \"Transporte\", \"de\", \"Transporte para\", \"Transporte de\", \"A regressar de\", \"Recursos\", \"Edificio\", \"Construir novo edifício\", \"Vazio\", \"Nivel\"];\n\t\taLangRaceName = [\"Romanos\", \"Teutões\", \"Gauleses\"];\n\t\taLangTaskOfText = [\"Agendar Evolução\", \"Agendar nova construção\", \"ResourcesUpD\", \"OFF\", \"Iniciar\", \"ON\", \"Parar\", \"A distribuição dos campos desta aldeia é \", \"Autotransporte\", \"Autotransporte não está aberto\", \"Aberto\", \"Transporte com sucesso\", \"Lista de agendamento\", \"Limit\", \"Default\", \"Alterar\", \"madeira/barro/ferro\", \"cereal\", \"Agendamento de demolição\",\n\t\t\t\"Agendamento de ataque\", \"Tipo de ataque\", \"Tempo de viagem\", \"Repetir número de vezes\", \"Tempo de intervalo\",\"00:30:00\",\"Alvo catapulta\",\"Aleatório\", \"Desconhecido\", \"Vezes\", \" Mês\", \" Dia\", \"Tropas enviadas\", \"Agendamento de treino\",\"localização de tropas\",\"Agendamento de treino feito\",\"Transporte personalizado\",\"Setup Interval Time of Reload\",\"This is the interval of page reload ,\\n default são 20 minutos, Insira novo tempo:\\n\\n\",\"Remain\",\"Agendar Celebração\",\"pequena celebração\",\"grande celebração\",\"Set Interval of Resources concentration\",\"minutos\",\".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Poucos recursos.\", \"Os trabalhadores já estão a trabalhar.\", \"Construção completa\", \"Inicio da construção\", \"Em desenvolvimento\", \"Seu Armazém é pequeno. Evolua o seu armazém para continuar a sua construção\", \"Seu Celeiro é pequeno. Evolua o seu Celeiro para continuar a sua construção\", \"Recursos suficientes\",\"Já se encontra uma celebração em curso\"];\n\t\taLangOtherText = [\"Nota importante\", \"Apenas os campos de recursos da capital <br/>podem ser elevados a nivel 20 . A sua capital <br/> nao está detectavel. Por favor visite o seu perfil.\", \"Atalho aqui ^_^\", \"Instalação concluída\", \"Cancelado\", \"Iniciar as tarefas\", \"Upgrade com sucesso\", \"Executar com sucesso\", \"Sua raça é desconhecida, e o seu tipo de tropa também. <br/>Visite o seu perfil para determinar as raça.<br/>\", \"Por favor visite a sua mansão do heroi para determinar<br/> a velocidade e o tipo de heroi.\"];\n\t\taLangResources = [\"Madeira\",\"Barro\",\"Ferro\",\"Cereais\"];\n\t\taLangTroops[0] = [\"Legionário\", \"Pretoriano\", \"Imperiano\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Aríete\", \"Catapulta de Fogo\", \"Senador\", \"Colonizador\", \"Heroi\"];\n\t\taLangTroops[1] = [\"Salteador\", \"Lanceiro\", \"Bárbaro\", \"Espião\", \"Paladino\", \"Cavaleiro Teutão\", \"Aríete\", \"Catapulta\", \"Chefe\", \"Colonizador\", \"Heroi\"];\n\t\taLangTroops[2] = [\"Falange\", \"Espadachim\", \"Batedor\", \"Trovão Theutate\", \"Cavaleiro Druida\", \"Haeduano\", \"Aríete\", \"Trabuquete\", \"Chefe de Clã\", \"Colonizador\", \"Heroi\"];\n\t\taLangAttackType = [\"Reforço\", \"Ataque\", \"Assalto\"];\n\t\tbreak;\n\n case \"my\":\n\t\taLangAllBuildWithId = [\"Kawasan Pembalakan\", \"Kuari Tanat Liat\", \"Lombong Bijih Besi\", \"Ladang\", \"\", \"Kilang Papan\", \"Kilang Bata\", \"Faundri Besi\", \"Pengisar Bijian\", \"Kilang Roti\", \"Gudang\", \"Jelapang\", \"Kedai Senjata\", \"Kedai Perisai\", \"Gelanggang Latihan\", \"Bangunan Utama\", \"Titik Perhimpunan\", \"Pasar\", \"Kedutaan\", \"Berek\", \"Kandang Kuda\", \"Bengkel\", \"Akademi\", \"Gua\", \"Dewan Perbandaran\", \"Residen\", \"Istana\", \"Perbendaharaan\", \"Pejabat Dagangan\", \"Berek Besar\", \"Kandang Kuda Besar\", \"Tembok Bandar\", \"Tembok Tanah\", \"Pagar Kubu\", \"Kedai Tukang Batu\", \"Kilang Bir\", \"Pemerangkap\",\"Rumah Agam Wira\", \"Gudang Besar\", \"Jelapang Besar\", \"Dunia Keajaiban\", \"Palung Kuda\"];\n\t\taLangAllBuildAltWithId = [\"Kawasan Pembalakan\", \"Kuari Tanat Liat\", \"Lombong Bijih Besi\", \"Ladang\", \"\", \"Kilang Papan\", \"Kilang Bata\", \"Faundri Besi\", \"Pengisar Bijian\", \"Kilang Roti\", \"Gudang\", \"Jelapang\", \"Kedai Senjata\", \"Kedai Perisai\", \"Gelanggang Latihan\", \"Bangunan Utama\", \"Titik Perhimpunan\", \"Pasar\", \"Kedutaan\", \"Berek\", \"Kandang Kuda\", \"Bengkel\", \"Akademi\", \"Gua\", \"Dewan Perbandaran\", \"Residen\", \"Istana\", \"Perbendaharaan\", \"Pejabat Dagangan\", \"Berek Besar\", \"Kandang Kuda Besar\", \"Tembok Bandar\", \"Tembok Tanah\", \"Pagar Kubu\", \"Kedai Tukang Batu\", \"Kilang Bir\", \"Pemerangkap\",\"Rumah Agam Wira\", \"Gudang Besar\", \"Jelapang Besar\", \"Dunia Keajaiban\", \"Palung Kuda\"];\n\t\taLangAddTaskText = [\"Add task\", \"Style\", \"Active village\", \"Task target\", \"To\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Move up\", \"Move down\", \"Del\", \" Task contents\", \"Move \", \"Delete all the tasks\"];\n\t\taLangTaskKind = [\"Tingkatkan\", \"Bina bangunan\", \"Serang\", \"Selidik\", \"latih\", \"Angkut\", \"NPC\", \"musnah\", \"Perayaan\"];\n\t\taLangGameText = [\"Tahap\", \"Pedagang\", \"ID\", \"Ibu Kota\", \"Waktu mula\", \"this timeseting is unuseful now.\", \"ke\", \"Kampung\", \"angkut\", \"dari\", \"Angkut ke\", \"Angkut dari\", \"Balik dari\", \"sumber\", \"bangunan\", \"Bina bangunan\", \"Kosong\", \"tahap\"];\n\t\taLangRaceName = [\"Rom\", \"Teuton\", \"Gaul\"];\n\t\taLangTaskOfText = [\"Schedule Upgrade\", \"Schedule NewBuild\", \"AutoResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Trans_In_limit\", \"Default\", \"Modify\", \"Wood/Clay/Iron\", \"Crop\", \"Schedule demolition\", \"Schedule attack\", \"Attack type\", \"Travel time\", \"repeat times\", \"interval time\",\"00:30:00\",\"Catapult target\",\"Random\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Troops sent\", \"Schedule Train\",\"Train site\",\"TrainTask done\",\"customTransport\",\"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans_Out_Rmn\",\"ScheduleParty\",\"small party\",\"big party\",\"setInterval of Resources concentration\",\"minutes\",\".\",\".\",\"START\",\"STOP\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Terlalu sedikit sumber\", \"Para pekerja sedang bekerja\", \"Construction completed\", \"Starting construction\", \"In development\", \"Your Warehouse is too small. Please upgrade your Warehouse to continue your construction\", \"Your Granary is too small. Please upgrade your Granary to continue your construction\", \"Enough resources\",\"Lack of food: extend cropland first\",\"There is already a celebration going on\"];\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can be upgraded to level 20. Now your capital is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Cancelled\", \"Start the tasks\", \"Upgrade successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Hero's Mansion to determine the speed and the type of your hero.\"];\n\t\taLangResources=[\"kayu\",\"tanah liat\",\"besi\",\"tanaman\"];\n\t\taLangTroops[0] = [\"Askar Legion\", \"Pengawal Pertahanan\", \"Askar Empayar\", \"Kesatria Diplomatik\", \"Kesatria Empayar\", \"Kesatria Jeneral\", \"Kereta Pelantak\", \"Tarbil Api\", \"Senator\", \"Peneroka\", \"Wira\"];\n\t\taLangTroops[1] = [\"Askar Belantan\", \"Askar Lembing\", \"Askar Kapak\", \"Peninjau\", \"Kesatria Santo\",\"Kesatria Teutonik\", \"Kereta Pelantak\", \"Tarbil\", \"Penghulu\", \"Peneroka\", \"Wira\"];\n\t\taLangTroops[2] = [\"Falanks\", \"Askar Pedang\", \"Penjelajah\", \"Guruh Theutates\", \"Penunggang Druid\", \"Haeduan\", \"Kereta Pelantak\", \"Tarbil\", \"Pemimpin\", \"Peneroka\", \"Wira\"];\n\t\taLangAttackType = [\"Bantuan\", \"Serangan: Normal\", \"Serangan: Serbuan\"];\n\t\tbreak;\n\n\n case \"nl\":\n\t\taLangAllBuildWithId = [\"Houthakker\", \"Klei-afgraving\", \"IJzermijn\", \"Graanakker\", \"\", \"Zaagmolen\", \"Steenbakkerij\", \"Ijzersmederij\", \"Korenmolen\", \"Bakkerij\", \"Pakhuis\", \"Graansilo\", \"Wapensmid\", \"Uitrustingssmederij\", \"Toernooiveld\", \"Hoofdgebouw\", \"Verzamelenplaats\", \"Marktplaats\", \"Ambassade\", \"Barakken\", \"Stal\", \"Werkplaats\", \"Acedemie\", \"Schuilplaats\", \"Raadhuis\", \"Residentie\", \"Paleis\", \"Schatkamer\", \"Handelskantoor\", \"Grote Barakken\", \"Grote Stal\", \"Stadsmuur\", \"Muur van aarde\", \"Palissade\", \"Steenhouwerij\", \"Brouwerij\", \"Vallenzetter\",\"Heldenhof\", \"Groot Pakhuis\", \"Grote Graansilo\", \"Wereldwonder\", \"Drinkplaats\"];\n\t\taLangAllBuildAltWithId = [\"Houthakker\", \"Klei-afgraving\", \"IJzermijn\", \"Graanakker\", \"\", \"Zaagmolen\", \"Steenbakkerij\", \"Ijzersmederij\", \"Korenmolen\", \"Bakkerij\", \"Pakhuis\", \"Graansilo\", \"Wapensmid\", \"Uitrustingssmederij\", \"Toernooiveld\", \"Hoofdgebouw\", \"Verzamelenplaats\", \"Marktplaats\", \"Ambassade\", \"Barakken\", \"Stal\", \"Werkplaats\", \"Acedemie\", \"Schuilplaats\", \"Raadhuis\", \"Residentie\", \"Paleis\", \"Schatkamer\", \"Handelskantoor\", \"Grote Barakken\", \"Grote Stal\", \"Stadsmuur\", \"Muur van aarde\", \"Palissade\", \"Steenhouwerij\", \"Brouwerij\", \"Vallenzetter\",\"Heldenhof\", \"Groot Pakhuis\", \"Grote Graansilo\", \"Wereldwonder\", \"Drinkplaats\"];\n\t\taLangAddTaskText = [\"Taak toevoegen\", \"Type\", \"Gekozen dorp\", \"Taakdoel\", \"Naar\", \"Modus\", \"Bouwhulp\", \"Grondstofconcentratie\", \"Naar boven\", \"Naar benenden\", \"Del\", \"&#160;&#160;&#160;Doelen\", \"Bewegen \", \"Verwijder alle taken\"]; \n\t\taLangTaskKind = [\"Verbeteren\", \"Gebouw bouwen\", \"Aanvallen\", \"Onderzoeken\", \"Trainen\", \"Handel\", \"NPC\", \"Slopen\", \"Vieren\"]; \n\t\taLangGameText = [\"Niveau\", \"Handelaren\", \"ID\", \"Hoofddorp\", \"Start tijd\", \"Deze tijdsinstelling is onbruikbaar op dit moment.\", \"Naar\", \"Dorp\", \"transport\", \"Van\", \"Transporteren naar\", \"Transporteren van\", \"Terugkeren van\", \"Grondstoffen\", \"Gebouw\", \"Nieuw gebouw bouwen\", \"Leeg\", \"Niveau\"]; \n aLangRaceName = [\"Romeinen\", \"Germanen\", \"Galliërs\"]; \n\t\taLangTaskOfText = [\"Upgrade plannen\", \"Nieuwbouw plannen\", \"Auto ResUpD\", \"Inactief\", \"Start\", \"Bezig\", \"Stop\", \"De grondverdeling van dit dorp is \", \"Autotransport\", \"Autotransport is niet gestart\", \"Gestart\", \"Transport succesvol\", \"Takenlijst\", \"Trans In limit\", \"Standaard\", \"Aanpassen\", \"Hout/Klei/Ijzer\", \"Graan\", \"Slopen plannen\", \n \"Aanval plannen\", \"Aanvalssoort\", \"Tijdsduur\", \"Herhalen\", \"tussentijd\",\"00:30:00\",\"Katapult doel\",\"Random\", \"Onbekend\", \"keren\", \"Maand\", \"Dag\", \"Troepen verstuurd\", \n \"Training plannen\", \"Trainingkant\", \"Trainingstaak voltooid\", \"Handmatig Transport\", \"Stel de tussentijd in\",\"Dit is de tussentijd van de pagina herladen ,\\n standaard is 20 minuten, stel a.u.b. een nieuwe tijd in:\\n\\n\",\"Trans Out Rmn\",\"Feest plannen\",\"Klein Feest\",\"Groot Feest\",\"Stel tussentijd in voor grondstofconcentratie\", \n \"minuten\", \".\",\".\",\"START\",\"STOP\",\"Verbetering plannen\",\"Verbeter aanval\",\"Verbeter uitrusting\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"]; \n aLangErrorText = [\"Te weinig grondstoffen.\", \"Je bouwvakkers zijn al aan het werk.\", \"Bouwopdracht voltooid\", \"Bouwopdracht begint\", \"Bezig\", \"Je pakhuis is te klein. Verbeter je pakhuis om de bouwopdracht voort te zetten.\", \"Je graansilo is te klein. Verbeter je graansilo om de bouwopdracht voort te zetten\", \"Genoeg grondstoffen\",\"Te weinig graanproductie: Verbeter eerst een graanveld\",\"Er is al een feest gaande\"]; \n\t\taLangOtherText = [\"Belangrijk bericht\", \"Alleen de grondstofvelden van het hoofddorp kunnen <br/>verbeterd worden tot niveau 20. Nu is je hoofddorp<br/> niet vastgesteld. Bezoek je profiel a.u.b.\", \"Afkorting hier ^_^\", \"Instellingen succesvol\", \"Geannuleerd\", \"Start de taken\", \"Verbetering succesvol\", \"Start succesvol\", \"Je ras is onbekend, daardoor ook je troeptype. <br/>Bezoek je profiel om je ras vast te stellen<br/>\", \"Bezoek a.u.b. ook je heldenhof om <br/> de snelheid en type van je held vast te stellen.\"]; \n\t\taLangResources=[\"Hout\",\"Klein\",\"Ijzer\",\"Graan\"]; \n\t\taLangTroops[0] = [\"Legionair\", \"Praetoriaan\", \"Imperiaan\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Ram\", \"Vuurkatapult\", \"Senator\", \"Kolonist\", \"Held\"]; \n\t\taLangTroops[1] = [\"Knuppelvechter\", \"Speervechter\", \"Bijlvechter\", \"Verkenner\", \"Paladijn\", \"Germaanse Ridder\", \"Ram\", \"Katapult\", \"Leider\", \"Kolonist\", \"Held\"]; \n\t\taLangTroops[2] = [\"Phalanx\", \"Zwaardvechter\", \"Padvinder\", \"Toetatis donder\", \"Druideruiter\", \"Haeduaan\", \"Ram\", \"Trebuchet\", \"Onderleider\", \"Kolonist\", \"Held\"]; \n\t\taLangAttackType = [\"Versterking\", \"Aanval\", \"Overval\"]; \n\t\tbreak;\n\n\ncase \"hu\": //Harrerp\n\n\t\taLangAllBuildWithId = [\"Favágó\", \"Agyagbánya\", \"Vasércbánya\", \"Búzafarm\", \"\", \"Fűrészüzem\", \"Agyagégető\", \"Vasöntöde\", \"Malom\", \"Pékség\", \"Raktár\", \"Magtár\", \"Fegyverkovács\", \"Páncélkovács\", \"Gyakorlótér\", \"Főépület\", \"Gyülekezőtér\", \"Piac\", \"Követség\", \"Kaszárnya\", \"Istálló\", \"Műhely\", \"Akadémia\", \"Rejtekhely\", \"Tanácsháza\", \"Rezidencia\", \"Palota\", \"Kincstár\", \"Kereskedelmi központ\", \"Nagy Kaszárnya\", \"Nagy Istálló\", \"Kőfal\", \"Földfal\", \"Cölöpfal\", \"Kőfaragó\", \"Sörfőzde\", \"Csapdakészítő\", \"Hősök háza\", \"Nagy Raktár\", \"Nagy Magtár\", \"Világcsoda\",\"Lóitató\"];\n\t\taLangAllBuildAltWithId = [\"Favágó\", \"Agyagbánya\", \"Vasércbánya\", \"Búzafarm\", \"\", \"Fűrészüzem\", \"Agyagégető\", \"Vasöntöde\", \"Malom\", \"Pékség\", \"Raktár\", \"Magtár\", \"Fegyverkovács\", \"Páncélkovács\", \"Gyakorlótér\", \"Főépület\", \"Gyülekezőtér\", \"Piac\", \"Követség\", \"Kaszárnya\", \"Istálló\", \"Műhely\", \"Akadémia\", \"Rejtekhely\", \"Tanácsháza\", \"Rezidencia\", \"Palota\", \"Kincstár\", \"Kereskedelmi központ\", \"Nagy Kaszárnya\", \"Nagy Istálló\", \"Kőfal\", \"Földfal\", \"Cölöpfal\", \"Kőfaragó\", \"Sörfőzde\", \"Csapdakészítő\", \"Hősök háza\", \"Nagy Raktár\", \"Nagy Magtár\", \"Világcsoda\",\"Lóitató\"];\n\t\taLangAddTaskText = [\"Feladat hozzáadása\", \"Feladat\", \"Aktív falu\", \"Feladat célja\", \"Ide\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Fel\", \"Le\", \"Törlés\", \" Feladatok\", \"Sorrend\", \"Összes feladat törlése\"];\n\t\taLangTaskKind = [\"Kiépítés\", \"Új épület\", \"Támadás\", \"Fejlesztés\", \"Kiképzés\", \"Szállítás\", \"NPC\", \"Bontás\", \"Ünnep\"];\n\t\taLangGameText = [\"Szint\", \"Kereskedők\", \"ID\", \"Capital\", \"Indítási idő\", \"az időbeállítás nem szükséges.\", \"ide\", \"Falu\", \"szállítás\", \"innen\", \"Szállítás ide\", \"Szállítás innen\", \"Visszaérkezés\", \"nyersanyag\", \"épület\", \"Új épület építése\", \"empty\", \"szint\"];\n\t\taLangRaceName = [\"Római\", \"Germán\", \"Gall\"];\n\t\taLangTaskOfText = [\"Időzített kiépítés\", \"Időzített építés\", \"AutoResUpD\", \"Not_run\", \"Start\", \"Started\", \"Suspend\", \"The resource fields distribution of this village is \", \"Auto szállítás\", \"Autotransport is not opened\", \"Opened\", \"Szállítás kész\", \"Feladat lista\", \"Trans_In_limit\", \"Default\", \"Módosítás\", \"Fa/Agyag/Vasérc\", \"Búza\", \"Időzített bontás\",\n\t\t\t\"Időzítet támadás\", \"Támadás típus\", \"Utazási idő\", \"Ismétlés\", \"Idő intervallum\",\"00:30:00\",\"Katapult célpont\",\"Véletlen\", \"Ismeretlen\", \"ismétlés\", \"Hónap\", \"Nap\", \"Egységek küldése\",\n\t\t\t\"Időzített kiképzés\",\"Kiképzőhely\",\"Kiképzés befejezve\",\"Egyedi szállítás\",\"Frissítési időintervallum beállítás\",\"Ez az oldalfrissítési időintervallum,\\n az alap 20 perc, írd be az új időt:\\n\\n\",\"Trans_Out_Rmn\",\"Időzített ünnepség\",\"Kis ünnepség\",\"Nagy ünnepség\",\"setInterval of Resources concentration\",\n\t\t\t\"perc\",\"áll\",\"fut\",\"indulj\",\"állj\",\"Időzített fejlesztés\",\"Fegyver fejlesztés\",\"Páncél fejlesztés\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Too few resources.\", \"The workers are already at work.\", \"Építés kész\", \"Építés indul\", \"Fejlesztés folyamatban\", \"A raktárad túl kicsi. Építsd tovább a raktárt, hogy folytathasd az építést\", \"A magtárad túl kicsi. Építsd tovább a magtárt, hogy folytathasd az építést\", \"Elég nyersanyag\",\"Élelemhiány: Előtte egy búzafarmot kell építened \",\"Jelenleg is ünnepelnek\",\"There is already research going on\"];\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can be upgraded to level 20. Now your capital is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Beállítás kész\", \"Cancelled\", \"Start the tasks\", \"Kiépítés kész\", \"Run successfully\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Hero's Mansion to determine the speed and the type of your hero.\"];\n\t\taLangResources= [\"fa\",\"agyag\",\"vasérc\",\"búza\"];\n\t\taLangTroops[0] = [\"Légiós\", \"Testőr\", \"Birodalmi\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Faltörő kos\", \"Tűzkatapult\", \"Szenátor\", \"Telepes\", \"Hős\"]; //Római\n\t\taLangTroops[1] = [\"Buzogányos\", \"Lándzsás\", \"Csatabárdos\", \"Felderítő\", \"Paladin\", \"Teuton lovag\", \"Faltörő kos\", \"Katapult\", \"Törzsi vezető\", \"Telepes\", \"Hős\"]; //Germán\n\t\taLangTroops[2] = [\"Phalanx\", \"Kardos\", \"Felderítő\", \"Theutat villám\", \"Druida lovas\", \"Haeduan\", \"Falromboló\", \"Harci-katapult\", \"Főnök\", \"Telepes\", \"Hős\"]; //Gall\n\t\taLangAttackType = [\"Támogatás\", \"Támadás\", \"Rablás\"];\n\t\tbreak;\t\t\n\n\ncase \"lv\": //by sultāns updated the 16/04/2010\n\t\taLangAllBuildWithId = [\"Cirsma\", \"Māla Karjers\", \"Dzelzs Raktuves\", \"Labības Lauks\", \"\", \"Kokzāģētava\", \"Ķieģelu Fabrika\", \"Dzelzs Lietuve\", \"Dzirnavas\", \"Maiznīca\", \"Noliktava\", \"Klēts\", \"Ieroču kaltuve\", \"Bruņu kaltuve\", \"Turnīru laukums\", \"Galvenā ēka\", \"Pulcēšanās Vieta\", \"Tirgus laukums\", \"Vēstniecība\", \"Kazarmas\", \"Stallis\", \"Darbnīca\", \"Akadēmija\", \"Paslēptuve\", \"Rātsnams\", \"Rezidence\", \"Pils\", \"Dārgumu glabātuve\", \"Tirdzniecības Birojs\", \"Lielās Kazarmas\", \"Lielais Stallis\", \"Pilsētas Mūris\", \"Zemes Mūris\", \" Palisāde\", \"Akmeņlauztuve\", \"Alus Darītava\", \"Mednieku māja\",\"Varoņu Savrupmāja\", \"Lielā Noliktava\", \"Liela Klēts\", \"Pasaules Brīnums\"];\n\t\taLangAllBuildAltWithId = [\"Cirsma\", \"Māla Karjers\", \"Dzelzs Raktuves\", \"Labības Lauks\", \"\", \"Kokzāģētava\", \"Ķieģelu Fabrika\", \"Dzelzs Lietuve\", \"Dzirnavas\", \"Maiznīca\", \"Noliktava\", \"Klēts\", \"Ieroču kaltuve\", \"Bruņu kaltuve\", \"Turnīru laukums\", \"Galvenā ēka\", \"Pulcēšanās Vieta\", \"Tirgus laukums\", \"Vēstniecība\", \"Kazarmas\", \"Stallis\", \"Darbnīca\", \"Akadēmija\", \"Paslēptuve\", \"Rātsnams\", \"Rezidence\", \"Pils\", \"Dārgumu glabātuve\", \"Tirdzniecības Birojs\", \"Lielās Kazarmas\", \"Lielais Stallis\", \"Pilsētas Mūris\", \"Zemes Mūris\", \" Palisāde\", \"Akmeņlauztuve\", \"Alus Darītava\", \"Mednieku māja\",\"Varoņu Savrupmāja\", \"Lielā Noliktava\", \"Liela Klēts\", \"Pasaules Brīnums\"];\n\t\taLangAddTaskText = [\"Izveidot uzdevumu\", \"Veids\", \"Aktīvais ciems\", \"Uzdevuma mērķis\", \"| Mērķis\", \"Tips\", \"Celtniecības atbalsts\", \"Resursu koncentrācija\", \"Uz augšu\", \"Uz leju\", \"Izdzēst\", \" Uzdevuma stāvoklis\", \"Pārvietot\", \"Dzēst visus uzdevumus\"];\n\t\taLangTaskKind = [\"Uzlabot\", \"Jauna ēka\", \"Uzbrukt\", \"Izpētīt\", \"Apmācīt\", \"Nosūtīt resursus\", \"NPC\", \"Nojaukt\", \"Svinības\"];\n\t\taLangGameText = [\"Līmenis\", \"Tirgotāji\", \"ID\", \"Galvaspilsēta\", \"Sākuma laiks\", \"Īslaicīgi nestrādā\", \"uz\", \"Ciems\", \"Transportēt\", \"no\", \"Transportēt uz\", \"Transportēt no\", \"Atgriezties no\", \"resursi\", \"ēka\", \"Būvēt jaunu ēku\", \"tukšs\", \"līmenis\"];\n\t\taLangRaceName = [\"Romieši\", \"Ģermāņi\", \"Galli\"];\n\t\taLangTaskOfText = [\"Ieplānot uzlabojumus\", \"Ieplānot jaunas ēkas celtniecību\", \"Uzlabot resursu laukus\", \"Izslēgt\", \"Uzsākt\", \"Ieslēgts\", \"Stop\", \"Resursu lauku izvietojums šajā ciemā\", \"Automātiska nosūtīšana\", \"Automātiska nosutīšana atslēgta\", \"Ieslēgts\", \"Veiksmīgi nosūtīts\", \"* Uzdevumi *\", \"Ienākošais limits\", \"Default\", \"Izmainīt\", \"Koks/Māls/Dzelzis\", \"Labība\", \"Ieplānot nojaukšanu\",\n\t\t\t\"Ieplānot uzbrukumu\", \"Uzbrukuma veids\", \"Laiks ceļā\", \"Atkartošanas laiks\", \"laika intervāls\",\"00:30:00\",\"Ar katapultām massēt\",\"Pofig pa ko\", \"Nezināms\", \"laiki\", \"Mēnesis\", \"Diena\", \"Kareivji nosūtīti\",\n\t\t\t\"Ieplānot apmācību\",\"Train site\",\"Kareivju apmācība pabeigta\",\"optimizēt transportēšanu\",\"Ievadīt laiku pēc kura atkārtot iekraušanu\",\"Šis ir intervāls lapas parlādēšanai ,\\n pēc noklusējuma - 20 min., Lūdzu ievadiet jaunu laiku:\\n\\n\",\"Izejošais limits\",\"Ieplānot svinības\",\"mazās svinības\",\"lielās svinības\",\"Uzstādīt laika intervālu resursu sūtīšanai\",\n\t\t\t\"minūtes\", \".\",\".\",\"Start\", \"Stop\", \"Ieplānot uzdevumus\",\"Ieplānot uzbrukumus\",\"Ieplanot aizsardzību\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Nepietiek resursu\", \"Strādnieki jau strādā\", \"Būvniecība pabeigta\", \"Ir uzsākta būvniecība\", \"Attīstības stadija\", \"Nepietiek vietas noliktavā, lūdzu paplašiniet to\", \"Nepietiek vietas klētī, ludzu paplašinoiet to\", \"Pietiekoši resursu\",\"\",\"Svinības jau notiek\"];\n\t\taLangOtherText = [\"Svarīgi\", \"Tikai galvaspilsētā resursu laukus var uzlabot uz 20Lvl. Galvaspilsāta nav noteikta. Ieejiet lūdzu savā profilā\", \"Shortcut here ^_^\", \"Iestatījumi pabeigti\", \"Atcelts\", \"Sākt uzdevumus\", \"Uzlabots veiksmīgi\", \"Viss notiek\", \"Jūsu rase ir unknown. Lūdzu ieejiet profilā.\", \"Kā arī, lūdzu ieejiet varoņu majā, lai noteiktu varoņa veidu un ātrumu\"];\n\t\taLangResources=[\"Koks\",\"Māls\",\"Dzelzs\",\"Labība\"];\n\t\taLangTroops[0] = [\"Leģionārs\", \"Pretorietis\", \"Iekarotājs\", \"Ziņnesis\", \"Romas Jātnieks\", \"Romas Bruņinieks\", \"Mūra Brucinātājs\", \"Uguns Katapulta\", \"Senators\", \"Kolonists\", \"Varonis\"];\n\t\taLangTroops[1] = [\"Rungas Vēzētājs\", \"Šķēpnesis\", \"Karacirvja Vēzētājs\", \"Izlūks\", \"Bruņinieks\", \"Ģermāņu Bruņinieks\", \"Postītājs\", \"Katapultas\", \"Virsaitis\", \"Kolonists\", \"Varonis\"];\n\t\taLangTroops[2] = [\"Falanga\", \"Zobenbrālis\", \"Pēddzinis\", \"Zibens Jātnieks\", \"Priesteris - Jātnieks\", \"Edujs\", \"Tarāns\", \"Trebušets\", \"Barvedis\", \"Kolonists\", \"Varonis\"];\n\t\taLangAttackType = [\"Papildspēki\", \"Uzbrukums\", \"Iebrukums\"];\n\t\tbreak;\n\tcase \"cl\":\n\tcase \"mx\":\n\tcase \"net\": // thanks Renzo\n\t\taLangAllBuildWithId = [\"Leñador\", \"Barrera\", \"Mina\", \"Granja\", \"\", \"Serrería\", \"Ladrillar\", \"Fundición de Hierro\", \"Molino\", \"Panadería\", \"Almacén\", \"Granero\", \"Herrería\", \"Armería\", \"Plaza de torneos\", \"Edif. principal\", \"Plaza reuniones\", \"Mercado\", \"Embajada\", \"Cuartel\", \"Establo\", \"Taller\", \"Academia\", \"Escondite\", \"Ayuntamiento\", \"Residencia\", \"Palacio\", \"Tesoro\", \"Oficina de Comercio\", \"Cuartel Grande\", \"Establo Grande\", \"Muralla\", \"Terraplén\", \"Empalizada\", \"Cantero\", \"Cervecería\", \"Trampero\",\"Hogar del héroe\", \"Almacén Grande\", \"Granero Grande\", \"Maravilla\", \"Abrevadero\"];\n\t\taLangAllBuildAltWithId = [\"Leñador\", \"Barrera\", \"Mina\", \"Granja\", \"\", \"Serrería\", \"Ladrillar\", \"Fundición de Hierro\", \"Molino\", \"Panadería\", \"Almacén\", \"Granero\", \"Herrería\", \"Armería\", \"Plaza de torneos\", \"Edif. principal\", \"Plaza reuniones\", \"Mercado\", \"Embajada\", \"Cuartel\", \"Establo\", \"Taller\", \"Academia\", \"Escondite\", \"Ayuntamiento\", \"Residencia\", \"Palacio\", \"Tesoro\", \"Oficina de Comercio\", \"Cuartel Grande\", \"Establo Grande\", \"Muralla\", \"Terraplén\", \"Empalizada\", \"Cantero\", \"Cervecería\", \"Trampero\",\"Hogar del héroe\", \"Almacén Grande\", \"Granero Grande\", \"Maravilla\", \"Abrevadero\"];\n\t\taLangAddTaskText = [\"Añadir tarea\", \"Estilo\", \"Aldea activa\", \"Objetivo de Tarea\", \"Para\", \"Modo\", \"Soporte de Construcción\", \"Concentración de Recursos\", \"Ir arriba\", \"Ir abajo\", \"Borrar\", \" Contenido de tarea\", \"Mover \", \"Borrar todas las tareas\"];\n\t\taLangTaskKind = [\"Subir\", \"Construir edificio nuevo\", \"Atacar\", \"Mejorar\", \"Entrenar\", \"Transportar\", \"NPC\", \"Demoler\", \"Fiesta\"];\n\t\taLangGameText = [\"Nivel\", \"Comerciantes\", \"ID\", \"Capital\", \"Tiempo de Inicio\", \"esta prueba de tiempo no es útil.\", \"para\", \"Aldea\", \"transportar\", \"de\", \"Transportar a\", \"Transporte de\", \"Regreso de\", \"recursos\", \"edificio\", \"Construir nuevo edificio\", \"vacío\", \"nivel\"];\n\t\taLangRaceName = [\"Romanos\", \"Germanos\", \"Galos\"];\n\t\taLangTaskOfText = [\"Programar subida\", \"Programar nueva Construcción\", \"AutoResUpD\", \"OFF\", \"Empezar\", \"ON\", \"Suspender\", \"La distribución de campos de recursos de esta aldea es \", \"Autotransporte\", \"Autotransporte no está abierto\", \"Abierto\", \"Transporte exitoso\", \"Lista de Tareas\", \"Trans_In_limit\", \"Por Defecto\", \"Modificar\", \"Madera/Barro/Hierro\", \"Cereal\", \"Programar demolición\",\"Programar ataque\", \"Tipo de Ataque\", \"Tiempo de Viaje\", \"Número de Repeticiones\", \"Tiempo de intervalo\",\"00:30:00\",\"Objetivo de Catapulta\",\"Al Azar\", \"Desconocido\", \"Veces\", \"Mes\", \"Día\", \"Tropas enviadas\", \"Programar Cadena\",\"Sitio de Cadena\",\"Tarea de Cadena completada\",\"Transporte Custom\",\"Establecer tiempo de intervalo de la recarga\",\"este es el tiempo de intervalo entre cada recarga de la página,\\n Por defecto es 20 minutos, por favor introduza el nuevo tiempo:\\n\\n\",\"Trans_Out_Rmn\",\"Programar Fiesta\",\"fiesta pequeña\",\"fiesta grande\",\"Establecer intervalo de concentración de recursos\",\"minutos\",\".\",\".\",\"START\",\"STOP\", \"Programar Mejora\", \"Mejorar Ataque\", \"Mejorar Defensa\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Muy pocos recursos.\", \"Los aldeanos ya están trabajando.\", \"Construcción completa\", \"Empezando construcción\", \"En desarrollo\", \"Su almacén es muy pequeño. Por favor amplíe su almacén para continuar su construcción\", \"Su almacén es muy pequeño. Por favor amplíe su almacén para continuar su construcción\", \"Suficientes Recursos\",\"Falta de Alimento: Amplíe una granja primero\",\"Ya hay una fiesta en progreso\",\"Ya hay una exploración en progreso\"];\n\t\taLangOtherText = [\"Nota importante\", \"Solo los campos de recurso de la capital pueden ser ampliados a nivel 20. Su capital no ha sido detectada. Por favor visite su perfil.\", \"Atajo aquí ^_^\", \"Configuración completada\", \"Cancelado\", \"Empezar tareas\", \"Mejora Exitosa\", \"Ejecución exitosa\", \"Su raza es desconocida, asimismo su tipo de tropas. Visite su Perfil para determinar su raza.\", \"Por favor visite su Hogar del Heroe para determinar la velocidad y tipo de su heroe.\"];\n\t\taLangResources = [\"madera\", \"barro\", \"hierro\", \"cereal\"];\n\t\taLangTroops[0] = [\"Legionario\", \"Pretoriano\", \"Imperano\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Carnero\", \"Catapulta de Fuego\", \"Senador\", \"Colono\", \"Héroe\"];\n\t\taLangTroops[1] = [\"Luchador de Porra\", \"Lancero\", \"Luchador de Hacha\", \"Emisario\", \"Paladín\", \"Jinete Teutón\", \"Ariete\", \"Catapulta\", \"Cabecilla\", \"Colono\", \"Héroe\"];\n\t\taLangTroops[2] = [\"Falange\", \"Luchador de Espada\", \"Batidor\", \"Rayo de Teutates\", \"Jinete Druida\", \"Jinete Eduo\", \"Ariete\", \"Catapulta de Guerra\", \"Cacique\", \"Colono\", \"Héroe\"];\n\t\taLangAttackType = [\"Refuerzo\", \"Ataque\", \"Atraco\"];\n\t\tbreak;\n\n\tcase \"se\": // thanks to Arias\n\t\taLangAllBuildWithId = [\"Skogshuggare\", \"Lergrop\", \"Järngruva\", \"Vetefält\", \"\", \"Sågverk\", \"Murbruk\", \"Järngjuteri\", \"Vetekvarn\", \"Bageri\", \"Magasin\", \"Silo\", \"Smedja\", \"Vapenkammare\", \"Tornerplats\", \"Huvudbyggnad\", \"Samlingsplats\", \"Marknadsplats\", \"Ambassad\", \"Baracker\", \"Stall\", \"Verkstad\", \"Akademi\", \"Grotta\", \"Stadshus\", \"Residens\", \"Palats\", \"Skattkammare\", \"Handelskontor\", \"Stor barack\", \"Stort stall\", \"Stadsmur\", \"Jordvall\", \"Palisad\", \"Stenmurare\", \"Bryggeri\", \"Fälla\", \"Hjältens egendom\", \"Stort magasin\", \"Stor silo\", \"Världsunder\", \"Vattenbrunn\"];\n\t\taLangAllBuildAltWithId = [\"Skogshuggare\", \"Lergrop\", \"Järngruva\", \"Vetefält\", \"\", \"Sågverk\", \"Murbruk\", \"Järngjuteri\", \"Vetekvarn\", \"Bageri\", \"Magasin\", \"Silo\", \"Smedja\", \"Vapenkammare\", \"Tornerplats\", \"Huvudbyggnad\", \"Samlingsplats\", \"Marknadsplats\", \"Ambassad\", \"Baracker\", \"Stall\", \"Verkstad\", \"Akademi\", \"Grotta\", \"Stadshus\", \"Residens\", \"Palats\", \"Skattkammare\", \"Handelskontor\", \"Stor barack\", \"Stort stall\", \"Stadsmur\", \"Jordvall\", \"Palisad\", \"Stenmurare\", \"Bryggeri\", \"Fälla\", \"Hjältens egendom\", \"Stort magasin\", \"Stor silo\", \"Världsunder\", \"Vattenbrunn\"];\n\t\taLangAddTaskText = [\"Lägg till uppgift\", \"Stil\", \"Aktiv by\", \"Task target\", \"Till\", \"Läge\", \"Kontruktions stöd\", \"Råvaro koncentration\", \"Flytta upp\", \"Flytta ner\", \"Radera\", \"Uppgifter\", \"Flytta \", \"Radera alla uppgifterna\"];\n\t\taLangTaskKind = [\"Uppgradering:\", \"Ny byggnad:\", \"Attack:\", \"Forskning:\", \"Träning:\", \"Transport:\", \"NPC:\", \"Demolish:\", \"Celebration:\"];\n\t\taLangGameText = [\"Nivå \", \"Handel\", \"ID\", \"Capital\", \"Start time\", \"this timesetting is unuseful now.\", \"till\", \"By\", \"Transport\", \"från\", \"Transport till\", \"Transport från\", \"Återvänder från\", \"Råvaror\", \"Byggnad\", \"Konstruera en ny byggnad\", \"Tom\", \"Nivå\"];\n\t\taLangRaceName = [\"Romare\", \"Germaner\", \"Galler\"];\n\t\taLangTaskOfText = [\"Schemalägg uppgradering\", \"Schemalägg ny byggnad\", \"Uppgradera fält\", \"Ej Aktiv\", \"Starta\", \"Startad\", \"Avbryt\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport lyckades\", \"Uppgifter\", \"Trans_In_limit\", \"Standard\", \"Ändra \", \"Trä/Lera/Järn\", \"Vete\", \"Schemalägg demolition\",\n\t\t\t\"Schemalägg attack\", \"Attack type\", \"Res tid\", \"antal upprepningar\", \"interval time\",\"00:30:00\",\"Catapult target\",\"Random\", \"Okänd\", \"times\", \"Månad\", \"Dag\", \"Trupper skickade\", \"Schemalägg Träning\",\"Tränings plats\",\"Träningen klar\",\"Anpassad transport\",\"Sätt intervallen för omladdning av sidan\",\"Detta är intevallen för omladdning av sida,\\n standard är 20 minuter, vänligen ange ny intervall:\\n\\n\",\"Trans_Out_Rmn\",\"Schemalägg fest\",\"Liten fest\",\"Stor fest\",\"Sätt intervall av råvarukoncentration\",\n\t\t\t\"minuter\",\".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"För få råvaror\", \"Dina arbetare är redan ute på jobb\", \"Byggnad klar\", \"Påbörjar byggnad\", \"Under utveckling\", \"Ditt magasin är för litet. Vänligen uppgradera ditt magasin för att fortsätta ditt byggnadsarbete.\", \"Din silo är för liten. Vänligen uppgradera din silo för att fortsätta ditt byggnadsarbete.\", \"Tillräckligt med resurser\", \"Brist på mat: utöka vetefälten först\", \"En fest pågår redan.\"];\n\t\taLangOtherText = [\"Important note\", \"Only the resource fields of the capital can <br/>be upgraded to level 20. Now your capital<br/> is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup klar\", \"Avbruten\", \"Starta uppgifterna\", \"successfully\", \"Run successfully\", \"Your race is unknown, therefore your troop type. <br/>Visit your Profile to determine your race.<br/>\", \"Please also visit your Hero's Mansion to determine<br/> the speed and the type of your hero.\" , \"Upgrade\"];\n\t\taLangResources=[\"Trä\",\"Lera\",\"Järn\",\"Vete\"];\n\t\taLangTroops[0] = [\"Legionär\", \"Praetorian\", \"Imperiesoldat\", \"Spårare\", \"Imperieriddare\", \"Ceasarriddare\", \"Murbräcka\", \"Eld Katapult\", \"Senator\", \"Nybyggare\", \"Hjälte\"];\n\t\taLangTroops[1] = [\"Klubbman\", \"Spjutman\", \"Yxman\", \"Scout\", \"Paladin\", \"Germansk Knekt\", \"Murbräcka\", \"Katapult\", \"Stamledare\", \"Nybyggare\", \"Hjälte\"];\n\t\taLangTroops[2] = [\"Falanx\", \"Svärdskämpe\", \"Spårare\", \"Theutates Blixt\", \"Druidryttare\", \"Haeduan\", \"Murbräcka\", \"Krigskatapult\", \"Hövding\", \"Nybyggare\", \"Hjälte\"];\n\t\taLangAttackType = [\"Förstärkning\", \"Normal\", \"Plundring\"];\n\t\tbreak;\n\n\tcase \"it\": // thanks Hamkrik, corrections by baldo 2011.04.08\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\t// 2011.02.16 -- provided by Psea\n\t\t\t\taLangAllBuildWithId = [\"Bosco\", \"Pozzo d'argilla\", \"Miniera di ferro\", \"Campo di grano\", \"\", \"Segheria\", \"Fabbrica di Mattoni\", \"Fonderia\", \"Mulino\", \"Forno\", \"Magazzino\", \"Granaio\", \"Fabbro\", \"Armeria\", \"Arena\", \"Palazzo Pubblico\", \"Base militare\", \"Mercato\", \"Ambasciata\", \"Caserma\", \"Scuderia\", \"Officina\", \"Accademia\", \"Deposito Segreto\", \"Municipio\", \"Reggia\", \"Castello\", \"Camera del tesoro\", \"Ufficio Commerciale\", \"Grande Caserma\", \"Grande Scuderia\", \"Mura Cittadine\", \"Fortificazioni\", \"Palizzata\", \"Genio civile\", \"Birrificio\", \"Esperto di trappole\", \"Dimora dell'Eroe\", \"Grande Magazzino\", \"Grande Granaio\", \"Meraviglia\", \"Fonte Equestre\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Bosco\", \"Pozzo d'argilla\", \"Miniera di ferro\", \"Campo di grano\", \"\", \"Segheria\", \"Fabbrica di mattoni\", \"Fonderia\", \"Mulino\", \"Forno\", \"Magazzino\", \"Granaio\", \"Fabbro\", \"Armeria\", \"Arena\", \"Palazzo Pubblico\", \"Base militare\", \"Mercato\", \"Ambasciata\", \"Caserma\", \"Scuderia\", \"Officina\", \"Accademia\", \"Deposito Segreto\", \"Municipio\", \"Reggia\", \"Castello\", \"Camera del tesoro\", \"Ufficio Commerciale\", \"Grande Caserma\", \"Grande Scuderia\", \"Mura cittadine\", \"Fortificazioni\", \"Palizzata\", \"Genio civile\", \"Birrificio\", \"Esperto di trappole\", \"Dimora dell'Eroe\", \"Grande Magazzino\", \"Grande Granaio\", \"Meraviglia\", \"Fonte Equestre\"];\n\t\t\t\taLangAddTaskText = [\"Aggiungere Compito\", \"Tipo\", \"Villaggio Attivo\", \"Obiettivo del Compito\", \"Coordinate\", \"Modalita'\", \"Supporto ampliamento risorse\", \"Concentrazione risorse\", \"SU\", \"GIU\", \"Cancella\", \" Contenuto del Compito\", \"Muovere\", \"Cancella tutti i Compiti\"]; \n\t\t\t\taLangTaskKind = [\"Amplia\", \"Nuovo Edificio\", \"Attacco\", \"Ricerca\", \"Addestra\", \"Trasporto\", \"NPC\", \"Demolire\", \"Festa\"]; \n\t\t\t\taLangGameText = [\"Livello\", \"Mercanti\", \"ID\", \"Capitale\", \"Tempo di Inizio\", \"questa impostazione di tempo non si usa.\", \"Coordinate\", \"Villaggio\", \"trasporto\", \"dalla\", \"Trasporto alla\", \"Trasporto dalla\", \"Ritorno dalla\", \"risorse\", \"edifici\", \"Costruisci nuovo edificio\", \"vuoto\", \"livello\"]; \n\t\t\t\taLangRaceName = [\"Romani\", \"Teutoni\", \"Galli\"]; \n\t\t\t\taLangTaskOfText = [\"Programma Ampliamento\", \"Programma Nuovo Edificio\", \"AutoResUpD\", \"Non_attivo\", \"Start\", \"Iniziato\", \"Sospeso\", \"La distribuzione delle risorse di questo villaggio e' \", \"Autotrasporto\", \"Autotrasporto non e aperto\", \"Aperto\", \"Trasportato con successo\", \"Lista Compiti\", \"Trans_In_limit\", \"Default\", \"Modificare\", \"Legno/Argilla/Ferro\", \"Grano\", \"Demolire\",\n\t\t\t\t\t\"Programma Attacco\", \"Tipo Attacco\", \"Tempo Percorso\", \"ripeti\", \"intervallo di tempo\", \"00:30:00\", \"Obiettivo Catapulta\", \"Random\", \"Sconosciuto\", \"volte\", \"Mese\", \"Giorno\", \"Truppe Inviate\", \"Programma Addestramento\", \"Edificio di addestramento\", \"Addestramento Finito\", \"Transporto Diverso\", \"ripeti numero volte\", \"questo é l'intervallo di ricarica pagina,\\n default é 20 minuti, per favore inserire nuovo tempo:\\n\\n\", \"Trans_Out_Rmn\", \"Programma la Festa\", \"festa piccola\", \"Festa grande\", \"Imposta l'Intervallo di Concentrazione delle Risorse\",\n\t\t\t\t\t\"minuti\", \"in attesa\", \"corrente\", \"fare\", \"pausa\", \"Schedula Miglioria\", \"Migliora l'attacco\", \"Migliora la difesa\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"]; \n\t\t\t\taLangErrorText = [\"Mancano le risorse.\", \"I Lavoratori Sono Pronti per Lavorare\", \"Edificio Completo\", \"Inizia Edificio\", \"Nella Ricerca\", \"Il tuo Magazzino é piccolo. Per favore amplia il magazzino per continuare la costruzione\", \"Il tuo Granaio e piccolo. Per favore amplia il granaio per continuare la costruzione\", \"Risorse sufficienti\", \"Mancanza di Cibo: Amplia i Campi di grano\", \"Pronta la Festa\"]; \n\t\t\t\taLangOtherText = [\"Nota Importante \", \"Solo i Campi della Capitale possono essere ampliati al livello 20. La tua capitale non é determinata. Visita il tuo Profilo per favore.\", \"Shortcut here ^_^\", \"Setup compiuto\", \"Cancellato\", \"Inizia i Compiti\", \"Ampliato con successo\", \"Iniziato con successo\", \"La tua razza e' sconosciuta, anche il tipo di truppe. Visita il tuo Profilo per determinare la razza.\", \"Per favore visita Circolo degli eroi per determinare la velocita e il tipo di eroe.\"];\n\t\t\t\taLangResources = [\"legno\", \"argilla\", \"ferro\", \"grano\"]; \n\t\t\t\taLangTroops[0] = [\"Legionario\", \"Pretoriano\", \"Imperiano\", \"Emissario a cavallo\", \"Cavaliere del Generale\", \"Cavaliere di Cesare\", \"Ariete\", \"Onagro\", \"Senatore\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangTroops[1] = [\"Combattente\", \"Alabardiere\", \"Combattente con ascia\", \"Esploratore\", \"Paladino\", \"Cavaliere Teutonico\", \"Ariete\", \"Catapulta\", \"Comandante\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangTroops[2] = [\"Falange\", \"Combattente con spada\", \"Ricognitore\", \"Fulmine di Teutates\", \"Cavaliere druido\", \"Paladino di Haeduan\", \"Ariete\", \"Trabucco\", \"Capo tribù\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangAttackType = [\"Rinforzi\", \"Attacco\", \"Raid\"];\n\t\t\t\tbreak;\n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\t// 2011.03.28 -- provided by Psea\n\t\t\t\taLangAllBuildWithId = [\"Bosco\", \"Pozzo d'argilla\", \"Miniera di ferro\", \"Campo di grano\", \"\", \"Segheria\", \"Fabbrica di Mattoni\", \"Fonderia\", \"Mulino\", \"Forno\", \"Magazzino\", \"Granaio\", \"Fucina\", \"Fucina\", \"Arena\", \"Palazzo Pubblico\", \"Base militare\", \"Mercato\", \"Ambasciata\", \"Caserma\", \"Scuderia\", \"Officina\", \"Accademia\", \"Deposito Segreto\", \"Municipio\", \"Reggia\", \"Castello\", \"Camera del tesoro\", \"Ufficio Commerciale\", \"Grande caserma\", \"Grande Scuderia\", \"Mura Cittadine\", \"Fortificazioni\", \"Palizzata\", \"Genio Civile\", \"Birrificio\", \"Esperto di trappole\", \"Dimora dell'Eroe\", \"Grande Magazzino\", \"Grande Granaio\", \"Meraviglia\", \"Fonte Equestre\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Bosco\", \"Pozzo d'argilla\", \"Miniera di ferro\", \"Campo di grano\", \"\", \"Segheria\", \"Fabbrica di mattoni\", \"Fonderia\", \"Mulino\", \"Forno\", \"Magazzino\", \"Granaio\", \"Fucina\", \"Fucina\", \"Arena\", \"Palazzo Pubblico\", \"Base militare\", \"Mercato\", \"Ambasciata\", \"Caserma\", \"Scuderia\", \"Officina\", \"Accademia\", \"Deposito Segreto\", \"Municipio\", \"Reggia\", \"Castello\", \"Camera del tesoro\", \"Ufficio Commerciale\", \"Grande Caserma\", \"Grande Scuderia\", \"Mura cittadine\", \"Fortificazioni\", \"Palizzata\", \"Genio Civile\", \"Birrificio\", \"Esperto di trappole\", \"Dimora dell'Eroe\", \"Grande Magazzino\", \"Grande Granaio\", \"Meraviglia\", \"Fonte Equestre\"];\n\t\t\t\taLangAddTaskText = [\"Aggiungere Compito\", \"Tipo\", \"Villaggio Attivo\", \"Obiettivo del Compito\", \"Coordinate\", \"Modo\", \"Supporto di Costruzione\", \"Concentrazione risorse\", \"SU\", \"GIU\", \"Cancella\", \" Contenuto del Compito\", \"Muovere\", \"Cancella tutti i Compiti\"]; \n\t\t\t\taLangTaskKind = [\"Amplia\", \"Nuovo Edificio\", \"Attacco\", \"Ricerca\", \"Addestra\", \"Trasporto\", \"NPC\", \"Demolire\", \"Festa\"]; \n\t\t\t\taLangGameText = [\"Livello\", \"Mercanti\", \"ID\", \"Capitale\", \"Tempo di Inizio\", \"Questa impostazione di tempo non si usa.\", \"Coordinate\", \"Villaggio\", \"Trasporto\", \"dalla\", \"Trasporto a\", \"Trasporto da\", \"In ritorno da\", \"Risorse\", \"Edifici\", \"Costruisci nuovo edificio\", \"vuoto\", \"livello\"]; \n\t\t\t\taLangRaceName = [\"Romani\", \"Teutoni\", \"Galli\"]; \n\t\t\t\taLangTaskOfText = [\"Programma Ampliamento\", \"Programma Nuovo Edificio\", \"AutoResUpD\", \"Non_attivo\", \"Start\", \"Iniziato\", \"Sospeso\", \"La distribuzione delle risorse di questo villaggio e' \", \"Autotrasporto\", \"Autotrasporto non aperto\", \"Aperto\", \"Trasportato con successo\", \"Lista Compiti\", \"Trans_In_limit\", \"Default\", \"Modificare\", \"Legno/Argilla/Ferro\", \"Grano\", \"Demolire\",\n\t\t\t\t\t\"Programma Attacco\", \"Tipo Attacco\", \"Tempo Percorso\", \"ripeti\", \"intervallo di tempo\", \"00:30:00\", \"Obiettivo Catapulta\", \"Random\", \"Sconosciuto\", \"volte\", \"Mese\", \"Giorno\", \"Truppe Inviate\", \"Programma Addestramento\", \"Edificio addestramento\", \"Addestramento Finito\", \"Transporto Diverso\", \"Ripeti numero volte\", \"Questo é l'intervallo di ricarica pagina,\\n default é 20 minuti, per favore inserisci il nuovo tempo:\\n\\n\", \"Trans_Out_Rmn\", \"Programma la Festa\", \"Festa piccola\", \"Festa grande\", \"Imposta l'Intervallo di Concentrazione delle Risorse\",\n\t\t\t\t\t\"minuti\", \"in attesa\", \"corrente\", \"fare\", \"pausa\", \"Schedula miglioria\", \"Migliora attacco\", \"Migliora difesa\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"]; \n\t\t\t\taLangErrorText = [\"Mancano le risorse.\", \"I tuoi costruttori sono già occupati nella costruzione di un altro edificio\", \"Livello massimo raggiunto\", \"Inizia Edificio\", \"Nella Ricerca\", \"Il tuo Magazzino \", \"Il tuo Granaio \", \"Risorse disponibili\", \"Mancanza di cibo\", \"Pronta la Festa\"]; \n\t\t\t\taLangOtherText = [\"Nota Importante \", \"Solo i Campi della Capitale possono essere ampliati al livello 20. La tua capitale non é determinata. Visita il tuo Profilo per favore.\", \"Shortcut here ^_^\", \"Setup compiuto\", \"Cancellato\", \"Inizia i Compiti\", \"Ampliato con successo\", \"Iniziato con successo\", \"La tua razza e' sconosciuta, anche il tipo di truppe. Visita il tuo Profilo per determinare la razza.\", \"Per favore visita il Circolo degli eroi per determinare la velocita e tipo di eroe.\"];\n\t\t\t\taLangResources = [\"legno\", \"argilla\", \"ferro\", \"grano\"]; \n\t\t\t\taLangTroops[0] = [\"Legionario\", \"Pretoriano\", \"Imperiano\", \"Emissario a cavallo\", \"Cavaliere del Generale\", \"Cavaliere di Cesare\", \"Ariete\", \"Onagro\", \"Senatore\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangTroops[1] = [\"Combattente\", \"Alabardiere\", \"Combattente con ascia\", \"Esploratore\", \"Paladino\", \"Cavaliere Teutonico\", \"Ariete\", \"Catapulta\", \"Comandante\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangTroops[2] = [\"Falange\", \"Combattente con spada\", \"Ricognitore\", \"Fulmine di Teutates\", \"Cavaliere druido\", \"Paladino di Haeduan\", \"Ariete\", \"Trabucco\", \"Capo tribù\", \"Colono\", \"Eroe\"]; \n\t\t\t\taLangAttackType = [\"Rinforzi\", \"Attacco\", \"Raid\"];\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrowLogicError ( \"initializeLangVars():: Travian Version not set, when initializing language variables for \\'it\\'!!\" );\n\t\t}\n\t\tbreak;\n\n\n\tcase \"si\": // thanks Bananana and Tuga\n\t\taLangAllBuildWithId = [\"Gozdar\", \"Glinokop\", \"Rudnik železa\", \"Žitno polje\", \"\", \"Žaga\", \"Opekarna\", \"Talilnica železa\", \"Mlin\", \"Pekarna\", \"Skladišče\", \"Žitnica\", \"Izdelovalec orožja\", \"Izdelovalec oklepov\", \"Vadbišče\", \"Gradbeni ceh\", \"Zbirališče\", \"Tržnica\", \"Ambasada\", \"Barake\", \"Konjušnica\", \"Izdelovalec oblegovalnih naprav\", \"Akademija\", \"Špranja\", \"Mestna hiša\", \"Rezidenca\", \"Palača\", \"Zakladnica\", \"Trgovski center\", \"Velike barake\", \"Velika konjušnica\", \"Mestno obzidje\", \"Zemljen zid\", \"Palisada\", \"Kamnosek\", \"Pivnica\", \"Postavljalec pasti\", \"Herojeva rezidenca\", \"Veliko skladišče\", \"Velika žitnica\", \"Čudež sveta\"];\n\t\taLangAllBuildAltWithId = [\"Gozdar\", \"Glinokop\", \"Rudnik železa\", \"Žitno polje\", \"\", \"Žaga\", \"Opekarna\", \"Talilnica železa\", \"Mlin\", \"Pekarna\", \"Skladišče\", \"Žitnica\", \"Izdelovalec orožja\", \"Izdelovalec oklepov\", \"Vadbišče\", \"Gradbeni ceh\", \"Zbirališče\", \"Tržnica\", \"Ambasada\", \"Barake\", \"Konjušnica\", \"Izdelovalec oblegovalnih naprav\", \"Akademija\", \"Špranja\", \"Mestna hiša\", \"Rezidenca\", \"Palača\", \"Zakladnica\", \"Trgovski center\", \"Velike barake\", \"Velika konjušnica\", \"Mestno obzidje\", \"Zemljen zid\", \"Palisada\", \"Kamnosek\", \"Pivnica\", \"Postavljalec pasti\", \"Herojeva rezidenca\", \"Veliko skladišče\", \"Velika žitnica\", \"Čudež sveta\"];\n\t\taLangAddTaskText = [\"Dodaj nalogo\", \"Style\", \"Aktivna vas\", \"Nadgradi\", \"Na\", \"Mode\", \"Construction support\", \"Resources concentration\", \"Prestavi gor\", \"Prestavi dol\", \"Izbriši\", \" Naloge\", \"Premakni \", \"Izbriši vse naloge\"];\n\t\taLangTaskKind = [\"Nadgradi\", \"Zazidljiva parcela\", \"Napad\", \"Razišči\", \"Uri\", \"Transport\", \"NPC\", \"Demolish\", \"Festival\"];\n\t\taLangGameText = [\"Stopnja\", \"Merchants\", \"ID\", \"Prestolnica\", \"Začetek ob\", \"Nastavitev časa ni pomembna.\", \"to\", \"Vas\", \"transport\", \"from\", \"Transport to\", \"Transport from\", \"Return from\", \"resources\", \"building\", \"Postavi nov objekt\", \"empty\", \"level\"];\n\t\taLangRaceName = [\"Rimljani\", \"Tevtoni\", \"Galci\"];\n\t\taLangTaskOfText = [\"Nadgradi kasneje\", \"Postavi nov objekt\", \"Surovine gor\", \"Pauza\", \"Začetek\", \"Začeto\", \"Prekliči\", \"The resource fields distribution of this village is \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Naloge\", \"Trans_In_limit\", \"Osnovno\", \"Spremeni\", \"Les/Glina/Železo\", \"Crop\", \"Podri kasneje\",\n\t\t\t\"Napadi kasneje\", \"Tip napada\", \"Do napada\", \"Ponovi\", \"Vrnitev čez\",\"00:30:00\",\"Tarča katapultov\",\"Naključno\", \"Unknown\", \"times\", \"Month\", \"Day\", \"Enote poslane\", \"Uri kasneje\",\"Mesto urjenja\",\"Urjenje končano\",\"customTransport\",\"setup interval time of reload\",\"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\",\"Trans_Out_Rmn\",\"ScheduleParty\",\"mali festival\",\"veliki festival\",\"setInterval of Resources concentration\",\n\t\t\t\"minute\",\".\",\".\",\"START\",\"STOP\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Primankljaj surovin.\", \"Delavci so že na delu.\", \"Zgrajeno\", \"Začnem z gradnjo\", \"V razvoju\", \"Seu Armazém é pequeno. Evolua o seu armazém para continuar a sua construção\", \"Seu Celeiro é pequeno. Evolua o seu Celeiro para continuar a sua construção\", \"Recursos suficientes\",\"Já se encontra uma celebração em curso\"];\n\t\taLangOtherText = [\"Pomembno!\", \"Samo polja v prestolnicigredo do stopnje 20 . A sua capitalnao está detectavel. Por favor visite o seu perfil.\", \"Atalho aqui ^_^\", \"Naloga uspešno dodana\", \"Preklicano\", \"Začni z nalogo\", \"Uspešno nadgrajeno\", \"Executar com sucesso\", \"Sua raça é desconhecida, e o seu tipo de tropa também.Visite o seu perfil para determinar as raça.\", \"Por favor visite a sua mansão do heroi para determinara velocidade e o tipo de heroi.\"];\n\t\taLangResources=[\"Les\",\"Glina\",\"Železo\",\"Žito\"]; \n\t\taLangTroops[0] = [\"Legionar\", \"Praetorijan\", \"Imperijan\", \"Izvidnik\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Oblegovalni oven\", \"Ognjeni katapult\", \"Senator\", \"Kolonist\", \"Heroj\"];\n\t\taLangTroops[1] = [\"Gorjačar\", \"Suličar\", \"Metalec sekir\", \"Skavt\", \"Paladin\", \"Tevtonski vitez\", \"Oblegovalni oven\", \"Mangonel\", \"Vodja\", \"Kolonist\", \"Heroj\" ];\n\t\taLangTroops[2] = [\"Falanga\", \"Mečevalec\", \"Stezosledec\", \"Theutatesova Strela\", \"Druid\", \"Haeduan\", \"Oblegovalni oven\", \"Trebušet\", \"Poglavar\", \"Kolonist\", \"Heroj\"];\n\t\taLangAttackType = [\"Okrepitev\", \"Napad\", \"Ropanje\"];\n\t\tbreak;\n\n\tcase \"vn\": // thanks Tuga\n\t\taLangAllBuildWithId = [\"Tiều Phu\", \"Mỏ Đất Sét\", \"Mỏ sắt\", \"Ruộng lúa\", \"\", \"Xưởng Gỗ\", \"Lò Gạch\", \"Lò Rèn\", \"Nhà Xay Lúa\", \"Lò Bánh\", \"Nhà Kho\", \"Kho Lúa\", \"Thợ Rèn\", \"Lò Luyện Giáp\", \"Võ Đài\", \"Nhà Chính\", \"Binh Trường\", \"Chợ\", \"Đại Sứ Quán\", \"Trại Lính\", \"Chuồng Ngựa\", \"Xưởng\", \"Học Viện\", \"Hầm Ngầm\", \"Tòa Thị Chính\", \"Lâu Đài\", \"Cung Điện\", \"Kho Bạc\", \"Phòng Thương Mại\", \"Doanh Trại Lớn\", \"Trại Ngựa\", \"Tường Thành\", \"Tường Đất\", \"Tường Rào\", \"Thợ Xây Đá\", \"Quán bia\", \"Hố Bẫy\",\"Lâu đài tướng\", \"Nhà Kho Lớn\", \"Kho Lúa Lớn\", \"Kỳ Quan\", \"Tàu ngựa\"];\n\t\taLangAllBuildAltWithId = [\"Tiều Phu\", \"Mỏ Đất Sét\", \"Mỏ sắt\", \"Ruộng lúa\", \"\", \"Xưởng Gỗ\", \"Lò Gạch\", \"Lò Rèn\", \"Nhà Xay Lúa\", \"Lò Bánh\", \"Nhà Kho\", \"Kho Lúa\", \"Thợ Rèn\", \"Lò Luyện Giáp\", \"Võ Đài\", \"Nhà Chính\", \"Binh Trường\", \"Chợ\", \"Đại Sứ Quán\", \"Trại Lính\", \"Chuồng Ngựa\", \"Xưởng\", \"Học Viện\", \"Hầm Ngầm\", \"Tòa Thị Chính\", \"Lâu Đài\", \"Cung Điện\", \"Kho Bạc\", \"Phòng Thương Mại\", \"Doanh Trại Lớn\", \"Trại Ngựa\", \"Tường Thành\", \"Tường Đất\", \"Tường Rào\", \"Thợ Xây Đá\", \"Quán bia\", \"Hố Bẫy\",\"Lâu đài tướng\", \"Nhà Kho Lớn\", \"Kho Lúa Lớn\", \"Kỳ Quan\", \"Tàu ngựa\"];\n\t\taLangAddTaskText = [\"Thêm nhiệm vụ\", \"Loại\", \"Tại làng\", \"Mục tiêu\", \"Tới\", \"Phương thức\", \"Tự động\", \"Tùy chỉnh\", \"Di chuyển lên\", \"Di chuyển xuống\", \"Xóa\", \"&#160;&#160;&#160;Nội dung công việc\", \"Di chuyển\", \"Xóa tất cả danh mục\"];\n\t\taLangTaskKind = [\"Nâng cấp\", \"Kiến Trúc Mới\", \"Tấn công\", \"Nghiên cứu\", \"Huấn luyện\", \"Vận chuyển\", \"NPC\", \"Phá hủy\", \"ăn mừng\"];\n\t\taLangGameText = [\"Cấp \", \"Lái Buôn\", \"Tại vị trí\", \"Thủ đô\", \"Bắt đầu tại\", \"Chưa dùng được chức năng này.\", \"đến\", \"Làng\", \"vận chuyển\", \"từ\", \"Vận chuyển đến\", \"Vận chuyển từ\", \"Trở về từ\", \"Tài nguyên\", \"Kiến trúc\", \"Xây Kiến Trúc Mới\", \"không có gì\", \"Cấp\"];\n\t\taLangRaceName = [\"Tộc Romans\", \"Tộc Teutons\", \"Tộc Gauls\"];\n\t\taLangTaskOfText = [\"Lên lịch nâng cấp kiến trúc này\", \"Lên lịch xây kiến trúc này\", \"Tự động nâng cấp các mỏ\", \"Chưa kích hoạt\", \"Kích hoạt\", \"Đã kích hoạt\", \"Hủy\", \"Đây là làng loại \", \"Tự động gửi tài nguyên\", \"Tự động gửi tài nguyên chưa được kích hoạt\", \"Đã được kích hoạt\", \"Gủi thành công\", \"Danh mục\", \"Tài nguyên bạn muốn nhận\", \"Mặc định\", \"Tùy chỉnh \", \"Gỗ/Đất sét/Sắt\", \"Lúa\", \"Lên lịch phá hủy công trình\",\n\t\t\t\"Lên lịch tấn công làng này\", \"Loại tấn công\", \"Thời gian để đến nơi\", \"Số lần lặp lại\", \"Khoảng cách giữa các lần lặp lại\",\"00:30:00\",\"Mục tiêu cata\",\"Ngẫu nhiên\", \"Chưa biết\", \"Giờ\", \"Tháng\", \"Ngày\", \"Đã gửi lính\", \"Lên lịch huấn luyện lính này\",\"Train ubication\",\"Lính đang được huấn luyện\",\"Tùy chỉnh gửi tài nguyên\",\"Thiết lập thời gian tải lại trang web\",\"Đây là khoảng thởi gian tải lại trang web ,\\n Mặc định là 20 phút, hãy điền vào số phút bạn muốn thay đổi:\\n\\n\",\"Tài nguyên bạn muốn chừa lại\",\"Lên lịch ăn mừng\",\"Ăn mừng nhỏ\",\"Ăn mừng lớn\",\"Thiết lập khoảng thời gian bạn muốn gửi tài nguyên\",\n\t\t\t\"Phút\",\"Đang tạm dừng\",\"Đang thi hanh\",\"Thi hành\",\"Tạm dừng\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Quá ít tài nguyên.\", \"Công nhân đang làm nhiệm vụ khác.\", \"Kiến trúc đã hoàn thiên\", \"Bắt đầu xây dựng\", \"Đang xây dựng\", \"Nhà kho quá nhỏ. Hãy nâng cấp nhà kho mới xây dựng được kiến trúc\", \"Kho lúa quá nhỏ. Hãy nâng cấp kho lúa mới xây được kiến trúc\", \"Quá ít tài nguyên\",\"\",\"Hiện đang có buổi lễ ăn mừng\"];\n\t\taLangOtherText = [\"Chú thích quan trọng\", \"Chỉ thủ đô mới có thể<br/>nâng cấp các mỏ lên level 20. THủ đô của bạn<br/> chưa thấy. hãy vào phần hồ sơ của bạn.\", \"Click vào đây\", \"Cài đặt hoàn tất\", \"Đã hủy\", \"Bắt đầu công việc\", \"Nâng cấp thành công\", \"Kích hoạt thành công\", \"CHưa biết bạn thuộc tộc nào. <br/>Vì vậy bạn nên vào hồ sơ để cập nhật thông tin.<br/>\", \"Bạn cũng nên vào Lâu Đài Tướng để cập nhật<br/> tốc đọ và loại tướng.\"];\n\t\taLangResources=[\"Gỗ\",\"Đất sét\",\"Sắt\",\"Lúa\"];\n\t\taLangTroops[0] = [\"Lính Lê Dương\", \"Thị Vệ\", \"Chiến Binh Tinh Nhuệ\", \"Kỵ Binh Do Thám\", \"Kỵ Binh\", \"Kỵ Binh Tinh Nhuệ\", \"Xe Công Thành\", \"Máy Phóng Lửa\", \"Nguyên Lão\", \"Dân Khai Hoang\", \"Tướng\"];\n\t\taLangTroops[1] = [\"Lính Chùy\", \"Lính Giáo\", \"Lính Rìu\", \"Do Thám\", \"Hiệp Sĩ Paladin\", \"Kỵ Sĩ Teutonic\", \"Đội Công Thành\", \"Máy Bắn Đá\", \"Thủ Lĩnh\", \"Dân Khai Hoang\", \"Tướng\"];\n\t\taLangTroops[2] = [\"Lính Pha Lăng\", \"Kiếm Sĩ\", \"Do Thám\", \"Kỵ Binh Sấm Sét\", \"Tu Sĩ\", \"Kỵ Binh\", \"Máy Nện\", \"Máy Bắn Đá\", \"Tù Trưởng\", \"Dân Khai Hoang\", \"Tướng\"];\n\t\taLangAttackType = [\"Tiếp viện\", \"Tấn công\", \"Cướp bóc\"];\n\t\tbreak;\n\n\tcase \"ru\": // by MMX\n\t\taLangAllBuildWithId = [\"Лесопилка\", \"Глиняный карьер\", \"Железный рудник\", \"Ферма\", \"\", \"Лесопильный завод\", \"Кирпичный завод\", \"Чугунолитейный завод\", \"Мукомольная мельница\", \"Пекарня\", \"Склад\", \"Амбар\", \"Кузница оружия\", \"Кузница доспехов\", \"Арена\", \"Главное здание\", \"Пункт сбора\", \"Рынок\", \"Посольство\", \"Казарма\", \"Конюшня\", \"Мастерская\", \"Академия\", \"Тайник\", \"Ратуша\", \"Резиденция\", \"Дворец\", \"Сокровищница\", \"Торговая палата\", \"Большая казарма\", \"Большая конюшня\", \"Стена\", \"Земляной вал\", \"Изгородь\", \"Каменотес\", \"Пивная\", \"Капканщик\",\"Таверна\", \"Большой склад\", \"Большой амбар\", \"Чудо света\", \"Водопой\"];\n\t\taLangAllBuildAltWithId = [\"Лесопилка\", \"Глиняный карьер\", \"Железный рудник\", \"Ферма\", \"\", \"Лесопильный завод\", \"Кирпичный завод\", \"Чугунолитейный завод\", \"Мукомольная мельница\", \"Пекарня\", \"Склад\", \"Амбар\", \"Кузница оружия\", \"Кузница доспехов\", \"Арена\", \"Главное здание\", \"Пункт сбора\", \"Рынок\", \"Посольство\", \"Казарма\", \"Конюшня\", \"Мастерская\", \"Академия\", \"Тайник\", \"Ратуша\", \"Резиденция\", \"Дворец\", \"Сокровищница\", \"Торговая палата\", \"Большая казарма\", \"Большая конюшня\", \"Стена\", \"Земляной вал\", \"Изгородь\", \"Каменотес\", \"Пивная\", \"Капканщик\",\"Таверна\", \"Большой склад\", \"Большой амбар\", \"Чудо света\", \"Водопой\"];\n\t\taLangAddTaskText = [\"Добавить задание\", \"Тип задания\", \"Активная деревня\", \"Цель задания\", \" Цель\", \"Тип\", \"Поддержка строительства\", \"Концентрация ресурсов\", \"Вверх\", \"Вниз\", \"\", \"\", \"\",\"Снять все задания\"];\n\t\taLangTaskKind = [\"Улучшить:\", \"Строим:\", \"Атаковать:\", \"Исследовать:\", \" нанять:\", \"Отправить ресурсы:\", \"NPC:\", \"Разрушить:\", \"Торжество:\"];\n\t\taLangGameText = [\" \", \"Торговцы\", \"ID\", \"Столица\", \"Время запуска\", \"временно не работает\", \"в\", \"Деревня\", \"Транспортировка\", \"из\", \"Транспортировка в\", \"Транспортировка из\", \"Отправка из\", \"ресурсы\", \"здание\", \"Построить новое здание\", \"пусто\", \"уровень\"];\n\t\taLangRaceName = [\"Римляне\", \"Германцы\", \"Галлы\"];\n\t\taLangTaskOfText = [\"Запланировать улучшение\", \"Запланировать новое здание\", \"Качать ресурсы\", \"Выкл\", \"(►)\", \"Вкл\", \"(■)\", \"Распределение полей в деревне: \", \"Автоотправка\", \"Автоотправка выкл.\", \"Вкл.\", \"Успешно отправлено\", \"/Задания/\", \"Лимит ввоза\", \"Нет\", \"Правка \", \"Дерево/Глина/Железо\", \"Зерно\", \"Запланировать разрушение\",\n\t\t\t\"Запланировать атаку\", \"Тип атаки\", \"Време в пути\", \"повторы\", \"через\", \"00:30:00\", \"Цель катов\", \"Случайно\", \"Неизвестно\", \" раз\", \"/\", \" :дата/время: \", \"Войска\",\n\t\t\t\"Запланировать найм\",\"Выбранное здание \", \"Обучение войск завершено\",\"Поставки\", \"Задать интревал обновления\", \"Это интервал обновления страницы ,\\n по умолчанию - 20 минут, Введите новое время:\\n\\n\", \"Лимит вывоза\", \"Запланировать празднование\", \"Малый праздник\", \"Большой праздник\", \"Установка интервала концентрации ресов\",\n\t\t\t\"минуты\", \"Выключен\", \"Включено\", \"(►)\", \"(■)\",\"Запланировать улучшение\",\"Улучшить атаку\",\"Улучшить защиту\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Недостаточно сырья\", \"Все строители сейчас заняты\", \"Это здание отстроено полностью\", \"Начинаю строительство\", \"Процесс развития\", \"Недостаточна вместимость склада\", \"Недостаточна вместимость амбара\", \"Достаточно ресурсов\", \"Недостаток продовольствия: развивайте фермы.\",\"Проводится торжество\"];\n\t\taLangOtherText = [\"Важные заметки\", \"Только в столице поля могут быть до уровня 20.<br/>Столица не определена.Зайдите в профиль\", \"Ссылка тут ^_^\", \"<br/>Настройка завершена\", \"Отменено\", \"Начать задачи\", \" Улучшение прошло успешно\", \"Успешно\", \"Ваш народ неопределен.Пожалуйста зайдите в профиль.\", \"Также пожалуйста зайдите в таверну<br/>для определения типа и скорости героя\"];\n\t\taLangResources = [\"Древесина\",\"Глина\",\"Железо\",\"Зерно\"];\n\t\taLangTroops[0] = [\"Легионер\", \"Преторианец\", \"Империанец\", \"Конный разведчик\", \"Конница императора\", \"Конница Цезаря\", \"Таран\", \"Огненная катапульта\", \"Сенатор\", \"Поселенец\", \"Герой\"];\n\t\taLangTroops[1] = [\"Дубинщик\", \"Копьеносец\", \"Топорщик\", \"Скаут\", \"Паладин\", \"Тевтонская конница\", \"Стенобитное орудие\", \"Катапульта\", \"Вождь\", \"Поселенец\", \"Герой\"];\n\t\taLangTroops[2] = [\"Фаланга\", \"Мечник\", \"Следопыт\", \"Тевтатский гром\", \"Друид-всадник\", \"Эдуйская конница\", \"Таран\", \"Требушет\", \"Предводитель\", \"Поселенец\", \"Герой\"];\n\t\taLangAttackType = [\"Подкрепление\", \"Нападение\", \"Набег\"];\n\t\tbreak; \n\n\tcase \"rs\": // by rsinisa\n\t\taLangAllBuildWithId = [\"Дрвосеча\", \"Рудник глине\", \"Рудник гвожђа\", \"Њива\", \"\", \"Пилана\", \"Циглана\", \"Ливница гвожђа\", \"Млин\", \"Пекара\", \"Складиште\", \"Силос\", \"Ковачница оружја\", \"Ковачница оклопа\", \"Витешка арена\", \"Главна зграда\", \"Место окупљања\", \"Пијаца\", \"Амбасада\", \"Касарна\", \"Штала\", \"Радионица\", \"Академија\", \"Склониште\", \"Општина\", \"Резиденција\", \"Палата\", \"Ризница\", \"Трговачки центар\", \"Велика касарна\", \"Велика штала\", \"Градски зид\", \"Земљани зид\", \"Палисада\", \"Каменорезац\", \"Пивница\", \"Постављач замки\",\"Дворац хероја\", \"Велико складиште\", \"Велики силос\", \"Светско чудо\", \"Појилиште\"];\n\t\taLangAllBuildAltWithId = [\"Дрвосеча\", \"Рудник глине\", \"Рудник гвожђа\", \"Њива\", \"\", \"Пилана\", \"Циглана\", \"Ливница гвожђа\", \"Млин\", \"Пекара\", \"Складиште\", \"Силос\", \"Ковачница оружја\", \"Ковачница оклопа\", \"Витешка арена\", \"Главна зграда\", \"Место окупљања\", \"Пијаца\", \"Амбасада\", \"Касарна\", \"Штала\", \"Радионица\", \"Академија\", \"Склониште\", \"Општина\", \"Резиденција\", \"Палата\", \"Ризница\", \"Трговачки центар\", \"Велика касарна\", \"Велика штала\", \"Градски зид\", \"Земљани зид\", \"Палисада\", \"Каменорезац\", \"Пивница\", \"Постављач замки\",\"Дворац хероја\", \"Велико складиште\", \"Велики силос\", \"Светско чудо\", \"Појилиште\"];\n\t\taLangAddTaskText = [\"Додај задатак\", \"Начин\", \"Активна села\", \"Задата мета\", \"на\", \"Мод\", \"Подршка изградње\", \"Концентрација ресурса\", \"Помери горе\", \"Помери доле\", \"Бриши\", \" Списак задатака\", \"Помери \", \"Обриши све задатке\"];\n\t\taLangTaskKind = [\"Надогради\", \"Нова градња\", \"Напад\", \"Истраживање\", \"Обучи\", \"Транспорт\", \"НПЦ\", \"Рушити\", \"Забава\"];\n\t\taLangGameText = [\"ниво \", \"Трговци\", \"ID\", \"Главни град\", \"Време почетка\", \"ово временско подешавање је бескорисно\", \" према\", \"Село\", \"транспорт\", \"из\", \"Пребацивање према\", \"Пребацивање из\", \"повратак из\", \"ресурси\", \"изградња\", \"Направи нову зграду\", \"празно\", \"ниво\"];\n\t\taLangRaceName = [\"Римљани\", \"Тевтонци\", \"Гали\"];\n\t\taLangTaskOfText = [\"Распоред за надоградњу\", \"Направи нови распоред\", \"Ауто надоградња ресурса\", \"Неактивно\", \"Покрени\", \"Активно\", \"Заустави\", \"Дистрибуција ресурсних поља овог села је \", \"Аутотранспорт\", \"Аутотранспорт није отворен\", \"Отворен\", \"Транспорт успешан\", \"Листа задатака\", \"Транспорт са лимитом\", \"Подразумевано\", \"Измени\", \"Дрво/Гллина/Гвожђе\", \"Њива\", \"Листа рушења\", \"Листа напада\", \"Врста напада\", \"Време превоза\", \"број понављања\", \"Временски интервал\",\"00:30:00\",\"Мета катапулта\",\"Насумично\", \"Непознат\", \" пута\", \". месец, \", \". дан, у \", \"Слање трупа\", \"Листа обуке\",\"Место обуке\",\"Тренинг задатак урадити\",\"прилагођен транспорт\",\"подеси време поновног учитавања \",\" ово је интервал поновног учитавања стране, \\n подразумевана вредност је 20 минута, молимо Вас убаците ново време:\\n \\n\",\"Остатак одлазног транспорта\",\"Листа забава\",\"мала забава\",\"велика забава\",\" Подесите интервал концентрације ресурса \", \"минути\", \"заустављено\", \"активно\", \"покрени\", \"паузирај\",\"Распоред унапређења\",\"Унапреди напад\",\"Унапреди одбрану\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Премало ресурса.\", \"Радници су већ на послу.\", \"Изградња завршена\", \"Покретање изградње\", \"У изградњи\", \"Складиште је премало. Проширите складиште како би наставили са изградњом\", \"Силос је премали. Проширите силос како би наставили са изградњом\", \"Довољно ресурса\",\"Премало жита: прошири прво њиве\",\"Прослава је већ у току\"];\n\t\taLangOtherText = [\"Важна напомена\", \"Само у главном граду ресурсна поља могу бити проширена на ниво 20. Твој главни град није детектован, погледај свој профил.\", \"Пречица овде ^_^\", \"Подешавања готова\", \"Отказано\", \"Покрени задатке\", \"Надоградња успешна\", \"Покретање успешно\", \"Ваше племе је непознато, стога и врста трупа. Погледајте свој профил да видите који сте народ.\",\"Такође посетите дворац хероја да сазнате брзину и тип свог хероја \"];\n\t\taLangResources=[\"дрво\",\"глина\",\"гвожђе\",\"жито\"];\n\t\taLangTroops[0] = [\"Легионар\", \"Преторијанац\", \"Империјанац\", \"Извиђач\", \"Императорова коњица\", \"Цезарева коњица\", \"Ован\", \"Ватрени катапулт\", \"Сенатор\", \"Насељеник\", \"Херој\"];\n\t\taLangTroops[1] = [\"Батинар\", \"Копљаник\", \"Секираш\", \"Извиђач\", \"Паладин\", \"Тевтонски витез\", \"Ован\", \"Катапулт\", \"Поглавица\", \"Насељеник\", \"Херој\"];\n\t\taLangTroops[2] = [\"Фаланга\", \"Мачевалац\", \"Извиђач\", \"Галски витез\", \"Друид\", \"Коњаник\", \"Ован\", \"Катапулт\", \"Старешина\", \"Насељеник\", \"Херој\"];\n\t\taLangAttackType = [\"Појачање\", \"Нормалан\", \"Пљачка\"];\n\t\tbreak;\n\n\tcase \"ba\": // thanks ieyp\n\t\taLangAllBuildWithId = [\"Drvosječa\", \"Rudnik gline\", \"Rudnik željeza\", \"Poljoprivredno imanje\", \"\", \"Pilana\", \"Ciglana\", \"Livnica\", \"Mlin\", \"Pekara\", \"Skladište\", \"Silos\", \"Oruzarnica\", \"Kovacnica oklopa\", \"Mejdan\", \"Glavna zgrada\", \"Mesto okupljanja\", \"Pijaca\", \"Ambasada\", \"Kasarna\", \"Stala\", \"Radionica\", \"Akademija\", \"Skloniste\", \"Opstina\", \"Rezidencija\", \"Palata\", \"Riznica\", \"Trgovacki centar\", \"Velika kasarna\", \"Velika stala\", \"Gradski zid\", \"Zemljani zid\", \"Taraba\", \"Kamenorezac\", \"Pivnica\", \"Zamkar\",\"Dvorac heroja\", \"Veliko skladiste\", \"Veliki silos\", \"WW\", \"Pojiliste\"];\n\t\taLangAllBuildAltWithId = [\"Drvosječa\", \"Rudnik gline\", \"Rudnik željeza\", \"Poljoprivredno imanje\", \"\", \"Pilana\", \"Ciglana\", \"Livnica\", \"Mlin\", \"Pekara\", \"Skladište\", \"Silos\", \"Oruzarnica\", \"Kovacnica oklopa\", \"Mejdan\", \"Glavna zgrada\", \"Mesto okupljanja\", \"Pijaca\", \"Ambasada\", \"Kasarna\", \"Stala\", \"Radionica\", \"Akademija\", \"Skloniste\", \"Opstina\", \"Rezidencija\", \"Palata\", \"Riznica\", \"Trgovacki centar\", \"Velika kasarna\", \"Velika stala\", \"Gradski zid\", \"Zemljani zid\", \"Taraba\", \"Kamenorezac\", \"Pivnica\", \"Zamkar\",\"Dvorac heroja\", \"Veliko skladiste\", \"Veliki silos\", \"WW\", \"Pojiliste\"];\n\t\taLangAddTaskText = [\"Dodaj zadatak\", \"Nacin\", \"Aktivna sela\", \"Zadata meta\", \"Prema\", \"Mod\", \"Podrska izgradnje\", \"Koncentracija resursa\", \"Pomeri gore\", \"Pomeri dole\", \"Del\", \"&#160;&#160;&#160;Task contents\", \"Pomeri \", \"Obrisi sve zadatke\"];\n\t\taLangTaskKind = [\"Unapredi\", \"Nova izgradnja\", \"Napad\", \"Istrazivanje\", \"Obuci\", \"Transport\", \"NPC\", \"Rusiti\", \"Zabava\"];\n\t\taLangGameText = [\"Lvl\", \"Trgovci\", \"ID\", \"Glavni grad\", \"Vreme pocetka\", \"ovo vremensko podesavanje je beskorisno\", \"prema\", \"Selo\", \"transport\", \"iz\", \"Prebacivanje prema\", \"Prebacivanje iz\", \"povratak iz\", \"resursi\", \"izgradnja\", \"Napravi novu zgradu\", \"prazno\", \"nivo\"];\n\t\taLangRaceName = [\"Rimljani\", \"Teutonci\", \"Gali\"];\n\t\taLangTaskOfText = [\"Raspored za nadogradnju\", \"Napravi novi raspored\", \"AutoResUpD\", \"Not_run\", \"Pokreni\", \"Pokrenuto\", \"Zaustavi\", \"Distribucija resursnih polja ovog sela je \", \"Autotransport\", \"Autotransport is not opened\", \"Opened\", \"Transport successfully\", \"Task List\", \"Transport sa limitom\", \"Podrazumevano\", \"Izmeni\", \"Drvo/Glina/Gvozdje\", \"Njiva\", \"Lista rusenja\",\n\t\t\t\"Lista napada\", \"Vrsta napada\", \"Vreme prevoza\", \"broj ponavljanja\", \"Vremenski interval\",\"00:30:00\",\"Meta katapulta\",\"Nasumicno\", \"Nepoznat\", \"times\", \"Mesec\", \"Dan\", \"Slanje trupa\", \"Lista obuke\",\"Mesto obuke\",\"TreningZadatak uraditi\",\"prilagodenTransport\",\"podesi vreme ponovnog ucitavanja \",\" ovo je interval ponovnog ucitavanja strane, \\n podrazumevan vrednost je 20 minuta, molimo vas ubacite novo vreme:\\n \\n\",\"Trans_Out_Rmn\",\"Lista zabava\",\"mala zabava\",\"velika zabava\",\" Podesite interval koncentracie resursa \",\n\t\t\t\"minuti\", \"zaustavljanje\", \"pokrece se\", \"pokreni\", \"pauza\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"Premalo resursa. Buahaha :D\", \"Radnici su vec na poslu :P\", \"Izgradnja zavrsena\", \"Pokretanje izgradnje\", \"U izgradnji\", \"Skladiste je premalo. Prosirite skladiste kako bi nastavili sa izgradnjom\", \"Silos je malecak. Prosirite silos kako bi nastavili sa izgradnjom\", \"Dovoljno resursa\",\"Premalo zita, prvo prosiri njive\",\"Proslava je u toku\"];\n\t\taLangOtherText = [\"Vazna napomena\", \"Samo u glavnom gradu mozete <br/> prosiriti resursna polja preko nivoa 10. Tvoj glavni grad <br/> nije otkriven, poseti svoj profil.\", \"Precica ovde ^^\", \"Podesavanja gotova\", \"Otkazano\", \"Pokreni zadatke\", \"Nadogradnja uspesna\", \"Pokretanje uspesno\", \"Vase pleme je nepoznato, stoga I tip trupa. Posetite <br/> svoj profil da vidite pleme. <br/>\",\"Posetite dvorac heroja da saznate <br/> brzinu I tip svog heroja \"];\n\t\taLangResources=[\"drvo\",\"glina\",\"gvozdje\",\"zito\"];\n\t\taLangTroops[0] = [\"Legionar\", \"Pretorijanac\", \"Imperijanac\", \"Izvidjac\", \"Imperatorova konjica\", \"Cezareva konjica\", \"Ovan\", \"Vatreni katapult\", \"Senator\", \"Naseljenik\", \"Heroj\"];\n\t\taLangTroops[1] = [\"Batinar\", \"Kopljanik\", \"Sekiras\", \"Izvidjac\", \"Paladin\", \"Tetutonski vitez\", \" Ovan \", \"Katapult\", \"Poglavica\", \"Naseljenik\", \"Heroj\"];\n\t\taLangTroops[2] = [\"Falanga\", \"Macevalac\", \"Izvidjac\", \"Teutateov grom\", \"Druid\", \"Heduan\", \" Ovan \", \"Katapult\", \"Staresina\", \"Naseljenik\", \"Heroj\"];\n\t\taLangAttackType = [\"Pojacanje\", \"Normalan\", \"Pljacka\"];\n\t\tbreak;\n\n\tcase \"org\":\n\tcase \"de\": // by LohoC et al.\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\taLangAllBuildWithId = [\"Holzfäller\",\"Lehmgrube\",\"Eisenmine\",\"Getreidefarm\",\"\",\"Sägewerk\",\"Lehmbrennerei\",\"Eisengießerei\",\"Getreidemühle\",\"Bäckerei\",\"Rohstofflager\",\"Kornspeicher\",\"Waffenschmiede\",\"Rüstungsschmiede\",\"Turnierplatz\",\"Hauptgebäude\",\"Versammlungsplatz\",\"Marktplatz\",\"Botschaft\",\"Kaserne\",\"Stall\",\"Werkstatt\",\"Akademie\",\"Versteck\",\"Rathaus\",\"Residenz\",\"Palast\",\"Schatzkammer\",\"Handelskontor\",\"Große Kaserne\",\"Großer Stall\",\"Stadtmauer\",\"Erdwall\",\"Palisade\",\"Steinmetz\",\"Brauerei\",\"Fallensteller\",\"Heldenhof\",\"Großes Rohstofflager\",\"Großer Kornspeicher\",\"Weltwunder\",\"Pferdetränke\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Holzfäller\",\"Lehmgrube\",\"Eisenmine\",\"Getreidefarm\",\"\",\"Sägewerk\",\"Lehmbrennerei\",\"Eisengießerei\",\"Getreidemühle\",\"Bäckerei\",\"Rohstofflager\",\"Kornspeicher\",\"Waffenschmiede\",\"Rüstungsschmiede\",\"Turnierplatz\",\"Hauptgebäude\",\"Versammlungsplatz\",\"Marktplatz\",\"Botschaft\",\"Kaserne\",\"Stall\",\"Werkstatt\",\"Akademie\",\"Versteck\",\"Rathaus\",\"Residenz\",\"Palast\",\"Schatzkammer\",\"Handelskontor\",\"Große Kaserne\",\"Großer Stall\",\"Stadtmauer\",\"Erdwall\",\"Palisade\",\"Steinmetz\",\"Brauerei\",\"Fallensteller\",\"Heldenhof\",\"Großes Rohstofflager\",\"Großer Kornspeicher\",\"Weltwunder\",\"Pferdetränke\"];\n\t\t\t\taLangAddTaskText = [\"Aufgabe hinzufügen\",\"Style\",\"Aktives Dorf\",\"Aufgaben Ziel\",\"nach\",\"Modus\",\"Baubetreuung\",\"Ressourcenkonzentration\",\"Rauf\",\"Runter\",\"Entfernen\",\" Aufgaben Inhalte\",\"Bewegen \",\"alle Aufgaben Löschen\"];\n\t\t\t\taLangTaskKind = [\"Upgrade\",\"Neues Gebäude\",\"Angriff\",\"Forschung\",\"ausbilden\",\"Transport\",\"NPC\",\"Zerstören\",\"Fest\"];\n\t\t\t\taLangGameText = [\"Lvl\",\"Händler\",\"ID\",\"Hauptdorf\",\"Startzeit\",\"diese Zeiteinstellung ist nicht sinnvoll.\",\"nach\",\"Dorf\",\"Transport\",\"von\",\"Transport nach\",\"Transport von\",\"Rückkehr aus\",\"Rohstoffe\",\"Gebäude\",\"Neues Gebäude errichten\",\"leer\",\"Stufe\"];\n\t\t\t\taLangRaceName = [\"Römer\",\"Germane\",\"Gallier\"];\n\t\t\t\taLangTaskOfText = [\"Zeitplan Upgrade\",\"Zeitplan Neu Bauen\",\"AutoResRauf\",\"Pausiert\",\"Start\",\"Laufend\",\"Unterbrechen\",\"Es wird Gebaut \",\"Autotransport\",\"Autotransport ist nicht An\",\"AN\",\"Transport Erfolgreich\",\"Aufgabenliste\",\"Transportlimit (-)\",\"Vorgabe\",\"Ändern \",\"Holz/Lehm/Eisen\",\"G3D\",\"Zeitplan Abriss\",\n\t\t\t\t\t\"Zeitplan Angriff\",\"Angriffsart\",\"Laufzeit\",\"Wiederholungen\",\"Intervalzeit\",\"00:30:00\",\"Katapultziel\",\"Zufall\",\"Unbekannt\",\"mal\",\"Monat\",\"Tag\",\"Truppen senden\",\"Zeitplan Ausbildung\",\"Ausbildungsseite\",\"Ausbildungsauftrag abgeschlossen\",\"Manueller Transport\",\"Setzte Intervalzeit für Reload\",\"Dies ist der Interval zum Seitenreload ,\\n Standard sind 20 Minuten, Bitte trage eine neue ein:\\n\\n\",\"Transportlimit (+)\",\"Partyplanung\",\"Kleine Party\",\"Große Party\",\"Setzte den Interval der Ressourcenkonzentration\",\n\t\t\t\t\t\"Minuten\",\".\",\".\",\"START\",\"STOP\",\"Zeitplan Verbessern\",\"Angriff verbessern\",\"Verteidigung verbessern\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Zu wenig Rohstoffe\",\"Es wird bereits gebaut\",\"vollständig ausgebaut\",\"Starte Konstruktion\",\"In Entwicklung\",\"Zuerst Rohstofflager ausbauen\",\"Zuerst Kornspeicher ausbauen\",\"Genug Rohstoffe\",\"Nahrungsmangel: Erst eine Getreidefarm ausbauen\",\"Es wird bereits gefeiert.\"];\n\t\t\t\taLangOtherText = [\"Wichtige Notiz\",\"Nur die Ressourcenfelder der Hauptstadt können<br/>bis Stufe 20 ausgebaut werden. Zur zeit ist deine Hauptstadt<br/>nicht identifiziert. Bitte besuche dein Profil.\",\"Shortcut here ^_^\",\"Setup fertiggestellt\",\"Abgebrochen\",\"Starte die Aufgaben\",\"Upgrade war erfolgreich\",\"Starten war erfolgreich\",\"Deine Rasse ist unbekannt.<br/>Bitte besuche dein Profil.<br/>\",\"Bitte besuche auch deinen Heldenhof um<br/>die Geschwindigkeit und die Art deines Helden zu bestimmen.\"];\n\t\t\t\taLangResources = [\"Holz\",\"Lehm\",\"Eisen\",\"Getreide\"];\n\t\t\t\taLangTroops[0] = [\"Legionär\",\"Prätorianer\",\"Imperianer\",\"Equites Legati\",\"Equites Imperatoris\",\"Equites Caesaris\",\"Rammbock\",\"Feuerkatapult\",\"Senator\",\"Siedler\",\"Held\"];\n\t\t\t\taLangTroops[1] = [\"Keulenschwinger\",\"Speerkämpfer\",\"Axtkämpfer\",\"Kundschafter\",\"Paladin\",\"Teutonen Reiter\",\"Ramme\",\"Katapult\",\"Stammesführer\",\"Siedler\",\"Held\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\",\"Schwertkämpfer\",\"Späher\",\"Theutates Blitz\",\"Druidenreiter\",\"Haeduaner\",\"Rammholz\",\"Kriegskatapult\",\"Häuptling\",\"Siedler\",\"Held\"];\n\t\t\t\taLangAttackType = [\"Unterstützung\",\"Angriff: Normal\",\"Angriff: Raubzug\"];\n\t\t\tbreak;\n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\taLangAllBuildWithId = [\"Holzfäller\",\"Lehmgrube\",\"Eisenmine\",\"Getreidefarm\",\"\",\"Sägewerk\",\"Lehmbrennerei\",\"Eisengießerei\",\"Getreidemühle\",\"Bäckerei\",\"Rohstofflager\",\"Kornspeicher\",\"Waffenschmiede\",\"Schmiede\",\"Turnierplatz\",\"Hauptgebäude\",\"Versammlungsplatz\",\"Marktplatz\",\"Botschaft\",\"Kaserne\",\"Stall\",\"Werkstatt\",\"Akademie\",\"Versteck\",\"Rathaus\",\"Residenz\",\"Palast\",\"Schatzkammer\",\"Handelskontor\",\"Große Kaserne\",\"Großer Stall\",\"Stadtmauer\",\"Erdwall\",\"Palisade\",\"Steinmetz\",\"Brauerei\",\"Fallensteller\",\"Heldenhof\",\"Großes Rohstofflager\",\"Großer Kornspeicher\",\"Weltwunder\",\"Pferdetränke\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Holzfäller\",\"Lehmgrube\",\"Eisenmine\",\"Getreidefarm\",\"\",\"Sägewerk\",\"Lehmbrennerei\",\"Eisengießerei\",\"Getreidemühle\",\"Bäckerei\",\"Rohstofflager\",\"Kornspeicher\",\"Waffenschmiede\",\"Schmiede\",\"Turnierplatz\",\"Hauptgebäude\",\"Versammlungsplatz\",\"Marktplatz\",\"Botschaft\",\"Kaserne\",\"Stall\",\"Werkstatt\",\"Akademie\",\"Versteck\",\"Rathaus\",\"Residenz\",\"Palast\",\"Schatzkammer\",\"Handelskontor\",\"Große Kaserne\",\"Großer Stall\",\"Stadtmauer\",\"Erdwall\",\"Palisade\",\"Steinmetz\",\"Brauerei\",\"Fallensteller\",\"Heldenhof\",\"Großes Rohstofflager\",\"Großer Kornspeicher\",\"Weltwunder\",\"Pferdetränke\"];\n\t\t\t\taLangAddTaskText = [\"Aufgabe hinzufügen\",\"Style\",\"Aktives Dorf\",\"Aufgaben Ziel\",\"nach\",\"Modus\",\"Baubetreuung\",\"Ressourcenkonzentration\",\"Rauf\",\"Runter\",\"Entfernen\",\" Aufgaben Inhalte\",\"Bewegen \",\"alle Aufgaben Löschen\"];\n\t\t\t\taLangTaskKind = [\"Upgrade\",\"Neues Gebäude\",\"Angriff\",\"Forschung\",\"ausbilden\",\"Transport\",\"NPC\",\"Zerstören\",\"Fest\"];\n\t\t\t\taLangGameText = [\"Lvl\",\"Händler\",\"ID\",\"Hauptdorf\",\"Startzeit\",\"diese Zeiteinstellung ist nicht sinnvoll.\",\"nach\",\"Dorf\",\"Transport\",\"von\",\"Transport nach\",\"Transport von\",\"Rückkehr aus\",\"Rohstoffe\",\"Gebäude\",\"Neues Gebäude errichten\",\"leer\",\"Stufe\"];\n\t\t\t\taLangRaceName = [\"Römer\",\"Germane\",\"Gallier\"];\n\t\t\t\taLangTaskOfText = [\"Zeitplan Upgrade\",\"Zeitplan Neu Bauen\",\"AutoResRauf\",\"Pausiert\",\"Start\",\"Laufend\",\"Unterbrechen\",\"Es wird Gebaut \",\"Autotransport\",\"Autotransport ist nicht An\",\"AN\",\"Transport Erfolgreich\",\"Aufgabenliste\",\"Transportlimit (-)\",\"Vorgabe\",\"Ändern \",\"Holz/Lehm/Eisen\",\"G3D\",\"Zeitplan Abriss\",\n\t\t\t\t\t\"Zeitplan Angriff\",\"Angriffsart\",\"Laufzeit\",\"Wiederholungen\",\"Intervalzeit\",\"00:30:00\",\"Katapultziel\",\"Zufall\",\"Unbekannt\",\"mal\",\"Monat\",\"Tag\",\"Truppen senden\",\"Zeitplan Ausbildung\",\"Ausbildungsseite\",\"Ausbildungsauftrag abgeschlossen\",\"Manueller Transport\",\"Setzte Intervalzeit für Reload\",\"Dies ist der Interval zum Seitenreload ,\\n Standard sind 20 Minuten, Bitte trage eine neue ein:\\n\\n\",\"Transportlimit (+)\",\"Partyplanung\",\"Kleine Party\",\"Große Party\",\"Setzte den Interval der Ressourcenkonzentration\",\n\t\t\t\t\t\"Minuten\",\".\",\".\",\"START\",\"STOP\",\"Zeitplan Verbessern\",\"Angriff verbessern\",\"Verteidigung verbessern\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Zu wenig Rohstoffe\",\"Es wird bereits gebaut\",\"vollständig ausgebaut\",\"Starte Konstruktion\",\"In Entwicklung\",\"Zuerst Rohstofflager ausbauen\",\"Zuerst Kornspeicher ausbauen\",\"Genug Rohstoffe\",\"Nahrungsmangel: Erst eine Getreidefarm ausbauen\",\"Es wird bereits gefeiert.\"];\n\t\t\t\taLangOtherText = [\"Wichtige Notiz\",\"Nur die Ressourcenfelder der Hauptstadt können<br/>bis Stufe 20 ausgebaut werden. Zur zeit ist deine Hauptstadt<br/>nicht identifiziert. Bitte besuche dein Profil.\",\"Shortcut here ^_^\",\"Setup fertiggestellt\",\"Abgebrochen\",\"Starte die Aufgaben\",\"Upgrade war erfolgreich\",\"Starten war erfolgreich\",\"Deine Rasse ist unbekannt.<br/>Bitte besuche dein Profil.<br/>\",\"Bitte besuche auch deinen Heldenhof um<br/>die Geschwindigkeit und die Art deines Helden zu bestimmen.\"];\n\t\t\t\taLangResources = [\"Holz\",\"Lehm\",\"Eisen\",\"Getreide\"];\n\t\t\t\taLangTroops[0] = [\"Legionär\",\"Prätorianer\",\"Imperianer\",\"Equites Legati\",\"Equites Imperatoris\",\"Equites Caesaris\",\"Rammbock\",\"Feuerkatapult\",\"Senator\",\"Siedler\",\"Held\"];\n\t\t\t\taLangTroops[1] = [\"Keulenschwinger\",\"Speerkämpfer\",\"Axtkämpfer\",\"Kundschafter\",\"Paladin\",\"Teutonen Reiter\",\"Ramme\",\"Katapult\",\"Stammesführer\",\"Siedler\",\"Held\"];\n\t\t\t\taLangTroops[2] = [\"Phalanx\",\"Schwertkämpfer\",\"Späher\",\"Theutates Blitz\",\"Druidenreiter\",\"Haeduaner\",\"Rammholz\",\"Kriegskatapult\",\"Häuptling\",\"Siedler\",\"Held\"];\n\t\t\t\taLangAttackType = [\"Unterstützung\",\"Angriff: Normal\",\"Angriff: Raubzug\"];\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrowLogicError ( \"initializeLangVars():: Travian Version not set, when initializing language variables for \\'de\\' or \\'org\\'!!\" );\n\t\t}\n\t\tbreak;\n\n\tcase \"ir\": // mrreza\n\t\taLangAllBuildWithId = [\"هیزم شکن\", \"آجرسازی\", \"معدن آهن\", \"گندم زار\", \"محل احداث ساختمان\", \"چوب بری\", \"آجرپزی\", \"ذوب آهن\", \"آسیاب\", \"نانوایی\", \"انبار\", \"انبار غذا\", \"آهنگری\", \"زره سازی\", \"میدان تمرین\", \"ساختمان اصلی\", \"اردوگاه\", \"بازار\", \"سفارت\", \"سربازخانه\", \"اصطبل\", \"کارگاه\", \"دارالفنون\", \"مخفیگاه\", \"تالار\", \"اقامتگاه\", \"قصر\", \"خزانه\", \"تجارتخانه\", \"سربازخانه‌ی بزرگ\", \"اصطبل بزرگ\", \"دیوار شهر\", \"دیوار گلی\", \"پرچین\", \"سنگ تراشی\", \"قهوه خانه\", \"تله ساز\",\"عمارت قهرمان\", \"انبار بزرگ\", \"انبارغذای بزگ\", \"شگفتی جهان\", \"آبشخور اسب\"];\n\t\taLangAllBuildAltWithId = [\"هیزم شکن\", \"آجر سازی\", \"معدن آهن\", \"گندم زار\", \"محل\", \"چوب بری\", \"آجرپزی\", \"ذوب آهن\", \"آسیاب\", \"نانوایی\", \"انبار\", \"انبارغذا\", \"آهنگری\", \"زره سازی\", \"میدان تمرین\", \"ساختمان اصلی\", \"اردوگاه\", \"بازار\", \"سفارت\", \"سربازخانه\", \"اصطبل\", \"کارگاه\", \"دارالفنون\", \"مخفیگاه\", \"تالار\", \"اقامتگاه\", \"قصر\", \"خزانه\", \"تجارتخانه\", \"سربازخانه‌ی بزرگ\", \"اصطبل بزرگ\", \"دیوار شهر\", \"دیوار گلی\", \"پرچین\", \"سنگ تراشی\", \"قهوه خانه\", \"تله ساز\",\"عمارت قهرمان\", \"انبار بزرگ\", \"انبار غذای بزرگ\", \" شگفتی جهان\", \"آبشخور اسب\"];\n\t\taLangAddTaskText = [\"اضافه کردن وظیفه\", \"شیوه\", \"دهکده فعال\", \"هدف کاری\", \"به سوی\", \"روش\", \"پشتیبانی از سازه ها\", \"ارسال معمولی (تمرکز منابع)\", \"بالا بردن\", \"پایین آوردن\", \"حذف\", \"&#160;&#160;&#160;محتوای وظیفه\", \"حرکت کردن\", \"پاک کردن تمام وظایف\"];\n\t\taLangTaskKind = [\"ارتقاء دادن\", \"بنای جدید\", \"حمله\", \"تحقیق\", \"تربیت کردن\", \"ارسال منابع\", \"تعدیل منابع\", \"تخریب کردن\", \"برگزاری جشن\"];\n\t\taLangGameText = [\"سطح\", \"بازرگانان\", \"شماره\", \"رئیس\", \"زمان شروع\", \"این تنظیم زمان در حال حاضر بی فایده است.\", \"به سوی\", \"دهکده\", \"انتقال دادن\", \"از\", \"ارسال به\", \"دریافت از\", \"بازگشت از\", \"منابع\", \"ساخنمان\", \"احداث ساختمان جدید\", \"خالی کردن\", \"سطح\" , \"منابع ارسال شدند.\"];\n\t\taLangRaceName = [\"رومی‌ها\" ,\"توتن‌ها\" ,\"گول‌ها\"];\n\t\taLangTaskOfText = [\"برنامه ارتقاء\", \"برنامه ساختمان جدید\", \"ارتقا خودکار منابع\", \"در حال اجرا نمی باشد\", \"شروع\", \"شروع شده\", \"معلق کردن\", \"جدول توزیع منابع در این روستا هست \", \"ارسال خودکار منابع\", \"حمل و نقل خودکار باز نمی باشد\", \"باز شده\", \"حمل و نقل با موفقیت\", \"لیست وظایف\", \"سقف ورود منابع\", \"پیشفرض\", \"اصلاح کردن\", \"چوب/خشت/آهن\", \"گندم\", \"برنامه تخریب\",\n\t\t\t\"برنامه حمله\", \"نوع حمله\", \"زمان سفر\", \"زمان تکرار\", \"فاصله زمانی\",\"00:30:00\",\"هدف منجنیق\",\"تصادفی\", \"نامعلوم\", \"زمان\", \"ماه\", \"روز\", \"سربازان فرستاده شدند\", \"برنامه آموزش\",\"محل آموزش\",\"وظیفه آموزش انجام شد\",\"ارسال سفارشی منابع\",\" فاصله زمانی از زمان راه اندازی مجدد\",\" این فاصله زمانی از صفحه بارگذاری شده است,\\n پیشفرض 20 دقیقه می باشد, لطفا مقدار جدید را وارد کنید زمان:\\n\\n\",\"سقف نگه داشتن منابع\",\"برنامه جشن\",\"جشن کوچک\",\"جشن بزرگ\",\" تنظیم فاصله زمانی حمل معمولی در قسمت ارسال خودکار\",\n\t\t\t\"دقیقه\", \"در حال مکث\", \"در حرکت\", \"ادامه دادن\", \"مکث\",\"ارتقا قدرت نظامی\",\"ارتقا قدرت حمله\",\"ارتقا قدرت دفاع\", \"کنترل سرریز منابع\", \"فعال\", \"غیر فعال\", \"ارتقا خودکار گندمزار\", \"تغییر\"];\n\t\taLangErrorText = [\"کمبود منابع.\", \"کارگران مشغول کار هستند.\", \"به سطح آخر ممکن رسید.\", \"ساخت و ساز شروع شد\", \"در حال توسعه\", \"اول انبار را ارتقا دهید.\", \"اول انبارغذا را ارتقا دهید.\", \"پیش نیازها:\",\"کمبود غذا: اول گندم زار را ارتقا دهید!\",\"در حال حاضر یک جشن در حال برگذاری است\",\"یک جشن هم‌اکنون در حال برگزاری است.\",\"در حال رسیدن به سطح نهایی خود می‌باشد.\"];\n\t\taLangOtherText = [\"توجه داشته باشید\", \"فقط منابع در دهکده پایتخت می توانند <br/>تا سطح 20 ارتقاء یابند. اکنون پایتخت شما<br/> تشخیص داده نشده است. لطفا از پروفایل خود دیدن کنید.\", \"دسترسی آسان در اینجا ^_^\", \"تنظیمات کامل شد\", \"لغو شد\", \"وظیفه آغاز شد\", \"با موفقیت انجام شد\" , \"حرکت با موفقیت انجام شد\", \"نژاد شما معلوم نیست, بنابراین نوع لشکرتون مشخص نیست. <br/>برای مشخص شدن نژادتون از پروفایل خود دیدن کنید.<br/>\", \"همچنین لطفا دیدن کنید از عمارت قهرمان برای مشخص شدن <br/> سطح و نوع آن.\" , \"ارتقاء\"];\n\t\taLangResources=[\"چوب\",\"خشت\",\"آهن\",\"گندم\"];\n\t\taLangTroops[0] = [\"سرباز لژیون\", \"محافظ\", \"شمشیرزن\", \"خبرچین\", \"شوالیه\", \"شوالیه سزار\", \"دژکوب\", \"منجنیق آتشین\", \"سناتور\", \"مهاجر\", \"قهرمان\"];\n\t\taLangTroops[1] = [\"گرزدار\", \"نیزه دار\", \"تبرزن\", \"جاسوس\", \"دلاور\", \"شوالیه‌ی توتن\", \"دژکوب\", \"منجنیق\", \"رئیس\", \"مهاجر\", \"قهرمان\"];\n\t\taLangTroops[2] = [\"سرباز پیاده\", \"شمشیرزن\", \"ردیاب\", \"رعد\", \"کاهن سواره\", \"شوالیه گول\", \"دژکوب\", \"منجنیق\", \"رئیس قبیله\", \"مهاجر\", \"قهرمان\"];\n\t\taLangAttackType = [\"پشتیبانی\", \"حمله عادی\", \"حمله غارت\"];\n\t\tbreak;\n\n\tcase \"ae\": // By Dream1, SnTraL (2011.02.24)\n\t\taLangAllBuildWithId = [\"الحطاب\", \"حفرة الطين\", \"منجم حديد\", \"حقل القمح\", \"\", \"معمل النجاره\", \"مصنع البلوك\", \"مصنع الحديد\", \"المطاحن\", \"المخابز\", \"المخزن\", \"مخزن الحبوب\", \"الحداد\", \"مستودع الدروع\", \"ساحة البطولة\", \"المبنى الرئيسي\", \"نقطة التجمع\", \"السوق\", \"السفارة\", \"الثكنه\", \"الإسطبل\", \"المصانع الحربية\", \"الأكاديمية الحربية\", \"المخبأ\", \"البلدية\", \"السكن\", \"القصر\", \"الخزنة\", \"المكتب التجاري\", \"الثكنة الكبيرة\", \"الإسطبل الكبير\", \"حائط المدينة\", \"الحائط الأرضي\", \"الحاجز\", \"الحجّار\", \"المعصرة\", \"الصياد\", \"قصر الأبطال\", \"المخزن الكبير\", \"مخزن الحبوب الكبير\", \"معجزة العالم\", \"بِئْر سقي الخيول\"];\n\t\taLangAllBuildAltWithId = [\"الحطاب\", \"حفرة الطين\", \"منجم حديد\", \"حقل القمح\", \"\", \"معمل النجاره\", \"مصنع البلوك\", \"مصنع الحديد\", \"المطاحن\", \"المخابز\", \"المخزن\", \"مخزن الحبوب\", \"الحداد\", \"مستودع الدروع\", \"ساحة البطولة\", \"المبنى الرئيسي\", \"نقطة التجمع\", \"السوق\", \"السفارة\", \"الثكنه\", \"الإسطبل\", \"المصانع الحربية\", \"الأكاديمية الحربية\", \"المخبأ\", \"البلدية\", \"السكن\", \"القصر\", \"الخزنة\", \"المكتب التجاري\", \"الثكنة الكبيرة\", \"الإسطبل الكبير\", \"حائط المدينة\", \"الحائط الأرضي\", \"الحاجز\", \"الحجّار\", \"المعصرة\", \"الصياد\", \"قصر الأبطال\", \"المخزن الكبير\", \"مخزن الحبوب الكبير\", \"معجزة العالم\", \"بِئْر سقي الخيول\"];\n\t\taLangAddTaskText = [\"أضافة مهمة\", \"النمط\", \"القرية النشطة\", \"المهمة المستهدفة\", \"الى\", \"نمط\", \"دعم للبناء\", \"تكثيف الموارد\", \"تحريك للاعلى\", \"تحريك للاسفل\", \"حذف\", \"&#160;&#160;&#160;محتوى المهمه\", \"تحريك \", \"حذف جميع المهام\"];\n\t\taLangTaskKind = [\"تطوير\", \"تشييد مبنى\", \"هجوم\", \"بحث\", \"تدريب\", \"نقل\", \"تاجر المبادله\", \"هدم\", \"الاحتفال\"];\n\t\taLangGameText = [\"مستوى\", \"التجار\", \"المعرف\", \"العاصمة\", \"بداية الوقت\", \"هذا الاعداد في الوقت الحالي عديم الفائدة.\", \" إلى\", \"القرية\", \"نقل\", \"من\", \"نقل الى\", \"نقل من\", \"العودة من\", \"الموارد\", \"المباني\", \"تشييد\", \"فارغ\", \"المستوى\"];\n\t\taLangRaceName = [\"الرومان\", \"الجرمان\", \"الإغريق\"];\n\t\taLangTaskOfText = [\"الجدول الزمني للترقية\", \"الجدول الزمني لبناء جديد\", \"التطوير التلقائي\", \"لايعمل\", \"بدأ\", \"أبتداء\", \"توقف مؤقتا\", \"الحقول / المباني توزيع لقرية \", \"النقل التلقائي\", \"لم يتم فتح النقل التلقائي\", \"فتح\", \"تم النقل بنجاح\", \"قائمة المهام\", \"Trans_In_limit\", \"أفتراضي\", \"تعديل\", \"خشب/طين/حديد\", \"قمح\", \"الجدول الزمني للهدم\",\n\t\t\t\"الجدول الزمني للهجوم\", \"نوع الهجوم\", \"وقت الذهاب\", \"عدد مرات التكرار\", \"الفاصل الزمني\",\"00:30:00\",\"هدف المقاليع\",\"عشوائي\", \"غير معروف\", \"مرات\", \"شهر\", \"يوم\", \"القوات ارسلت\", \"الجدول الزمني للتدريب\",\"مكان تدريب\",\"مهمة التدريب تمت\",\"الجدول الزمني للنقل\",\"إعداد الفاصل الزمني للتحديث\",\"هذا هو الفاصل الزمني لتحديث الصفحة ,\\n الافتراضي هو 20 دقيقة,يرجى وضع فاصل زمني جديد:\\n\\n\",\"Trans_Out_Rmn\",\"الجدول الزمني للإحتفال\",\"إحتفال صغير\",\"إحتفال كبير\",\"تعيين الفاصل الزمني لتركيز الموارد\",\n\t\t\t\"دقائق\", \"متوقف\", \"يعمل\", \"تشغيل\", \"أيقاف\",\"Schedule Improve\",\"Improve Attack\",\"Improve defence\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\taLangErrorText = [\"الموارد قليلة جداً.\", \"العمال مشغولون الآن.\", \"البناء منجز\", \"بدء البناء\", \"في التطوير\", \"يجب رفع مستوى المخزن أولاً \", \"يجب رفع مستوى مخزن الحبوب أولاً \", \"الموارد كافية\",\"\",\"يوجد احتفال جارية بالفعل\"];\n\t\taLangOtherText = [\"ملاحظات هامه\", \"فقط حقول الموارد في العاصمة <br/>يتم ترقيتهم الى مستوى 20 .<br/> لم يتم معرفة العاصمه. يرجاء زيارة بطاقة العضويه.\", \"الاختصار هنا ^_^\", \"أكتمال الإعدادات\", \"ألغي\", \"بدء المهام\", \"تم التطوير بنجاح\", \"تم التشغيل بنجاح\", \"القبيلة غير معروفه, لابد من معرفة نوع القوات. <br/>يرجاء زيارة بطاقة العضويه لتحديد نوع القبيله.<br/>\", \"يرجاء ايضاً زيارة قصر الابطال<br/> لتحديد سرعة ونوع بطلك.\"];\n\t\taLangResources=[\"الخشب\",\"الطين\",\"الحديد\",\"القمح\"];\n\t\taLangTroops[0] = [\"جندي أول\", \" حراس الإمبراطور\", \"جندي مهاجم\", \"فرقة تجسس\", \"سلاح الفرسان\", \"فرسان القيصر\", \"الكبش\", \"المقلاع الناري\", \"حكيم\", \"مستوطن\", \"البطل\"]; //الرومان\n\t\taLangTroops[1] = [\"مقاتل بهراوة\", \"مقاتل برمح\", \"مقاتل بفأس\", \"الكشاف\", \"مقاتل القيصر\", \"فرسان الجرمان\", \"محطمة الأبواب\", \"المقلاع\", \"الزعيم\", \"مستوطن\", \"البطل\"]; //الجرمان\n\t\taLangTroops[2] = [\"الكتيبة\", \"مبارز\", \"المستكشف\", \"رعد الجرمان\", \"فرسان السلت\", \"فرسان الهيدوانر\", \"محطمة الأبواب الخشبية\", \"المقلاع الحربي\", \"رئيس\", \"مستوطن\", \"البطل\"]; //الإغريق\n\t\taLangAttackType = [\"مساندة\", \"هجوم: كامل\", \"هجوم: للنهب\"];\n\t\tbreak;\n\n\tcase \"gr\": // by adonis_gr (2011.03.30)\n\t\tswitch ( aTravianVersion ) {\n\t\t\tcase \"3.6\": // translations for travian version 3.6\n\t\t\t\taLangAllBuildWithId = [\"Ξυλοκόπος\", \"Ορυχείο πηλού\", \"Ορυχείο σιδήρου\", \"Χωράφι σιταριού\", \"Περιοχή\", \"Πριονιστήριο\", \"Πηλοποιείο\", \"Χυτήριο σιδήρου\", \"Μύλος σιταριού\", \"Αρτοποιείο\", \"Αποθήκη πρώτων υλών\", \"Σιταποθήκη\", \"Οπλοποιείο\", \"Πανοπλοποιείο\", \"Πλατεία αθλημάτων\", \"Κεντρικό κτίριο\", \"Πλατεία συγκεντρώσεως\", \"Αγορά\", \"Πρεσβεία\", \"Στρατόπεδο\", \"Στάβλος\", \"Εργαστήριο\", \"Ακαδημία\", \"Κρυψώνα\", \"Δημαρχείο\", \"Μἐγαρο\", \"Παλάτι\", \"Θησαυροφυλάκιο\", \"Εμπορικό γραφείο\", \"Μεγάλο Στρατόπεδο\", \"Μεγάλος Στάβλος\", \"Τείχος Πόλεως\", \"Χωμάτινο τεἰχος\", \"Τείχος με πάσσαλους\", \"Λιθοδὀμος\", \"Ζυθοποιείο\", \"Τοποθέτης παγίδων\", \"Περιοχή ηρώων\", \"Μεγάλη Αποθήκη\", \"Μεγάλη Σιταποθήκη\", \"Παγκόσμιο Θαύμα\", \"Μέρος ποτίσματος αλόγων\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Ξυλοκόπος\", \"Ορυχείο πηλού\", \"Ορυχείο σιδήρου\", \"Χωράφι σιταριού\", \"Περιοχή\", \"Πριονιστήριο\", \"Πηλοποιείο\", \"Χυτήριο σιδήρου\", \"Μύλος σιταριού\", \"Αρτοποιείο\", \"Αποθήκη πρώτων υλών\", \"Σιταποθήκη\", \"Οπλοποιείο\", \"Πανοπλοποιείο\", \"Πλατεία αθλημάτων\", \"Κεντρικό κτίριο\", \"Πλατεία συγκέντρωσης\", \"Αγορά\", \"Πρεσβεία\", \"Στρατόπεδο\", \"Στάβλος\", \"Εργαστήριο\", \"Ακαδημία\", \"Κρυψώνα\", \"Δημαρχείο\", \"Μἐγαρο\", \"Παλάτι\", \"Θησαυροφυλάκιο\", \"Εμπορικό γραφείο\", \"Μεγάλο Στρατόπεδο\", \"Μεγάλος Στάβλος\", \"Τείχος Πόλεως\", \"Χωμάτινο τεἰχος\", \"Τείχος με πάσσαλους\", \"Λιθοδὀμος\", \"Ζυθοποιείο\", \"Τοποθέτης παγίδων\", \"Περιοχή ηρώων\", \"Μεγάλη Αποθήκη\", \"Μεγάλη Σιταποθήκη\", \"Παγκόσμιο Θαύμα\", \"Μέρος ποτίσματος αλόγων\"];\n\t\t\t\taLangAddTaskText = [\"Προσθηκη Εργασίας\", \"Style\", \"Ενεργό χωριό\", \"στοχος εργασίας\", \"Προς\", \"λειτουργία\", \"Construction support\", \"Resources concentration\", \"Μετακίνηση πάνω\", \"Μετακίνηση κάτω\", \"Διαγραφή\", \" Περιεχομενο εργασιών\", \"Move \", \"Διαγραφή όλων των εργασιών\"];\n\t\t\t\taLangTaskKind = [\"αναβάθμισης\", \"Κατασκευή κτηρίου\", \"Επίθεση\", \"Έρευνα\", \"εκπαίδευση\", \"αποστολή\", \"NPC\", \"κατεδάφιση\", \"γιορτή\"];\n\t\t\t\taLangGameText = [\"επίπεδο\", \"Έμποροι\", \"ID\", \"Πρωτεύουσα\", \"Start time\", \"this timeseting is unuseful now.\", \"προς\", \"χωριό\", \"αποστολή\", \"από\", \"αποστολή προς\", \"αποστολή απο\", \"Επιστροφή απο\", \"πρώτες ύλες\", \"κτήριο\", \"Κατασκευή νέου κτηρίου\", \"κενό\", \"επίπεδο\"];\n\t\t\t\taLangRaceName = [\"Ρωμαίοι\", \"Τεύτονες\", \"Γαλάτες\"];\n\t\t\t\taLangTaskOfText = [\"Πρόγραμμα αναβάθμισης\", \"Πρόγραμμα Κατασκευή νέου κτηρίου\", \"Αυτοματη Αναβ. Υλών\", \"Not_run\", \"Έναρξη\", \"Ξεκίνησε\", \"Αναστολή\", \"The resource fields distribution of this village is \", \"Αυτοματη αποστολή\", \"αύτοματη αποστολή είναι ανενεργή\", \"Ανοιχτό\", \"αποστολή επιτυχής\", \"Λίστα Εργασιών\", \"Trans In limit\", \"Προεπιλογή\", \"Τροποποίηση\", \"Ξύλο/Πηλός/Σιδήρος\", \"Σιτάρι\", \"Πρόγραμμα κατεδάφισης\",\n\t\t\t\t\t\t\"Προγραμματισμος επίθεσης\", \"Τυπος επίθεσης\", \"διάρκεια\", \"επανάληψεις\", \"Ενδιάμεσο χρονικό διάστημα\", \"00:30:00\", \"Στόχος καταπέλτη\", \"Τυχαίος\", \"Άγνωστο\", \"φορές\", \"Μήνας\", \"Ημέρα\", \"Στρατεύματα εστάλησαν\",\n\t\t\t\t\t\t\"Προγραμματησμος εκπαίδευσης\", \"Μέρος εκπαίδευσης\", \"εκπαίδευση Ολοκληρώθηκε\", \"προσαρμοσμένη αποστολή\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"Προγραμματισμος γιορτων\", \"Μικρή γιορτή\", \"Μεγάλη Γιορτή\", \"Set Interval of Resources concentration\",\n\t\t\t\t\t\t\"λεπτά\", \".\", \".\", \"Έναρξη\", \"Διακοπή\", \"Schedule Improve\", \"Βελτίωση Επίθεσης\", \"Βελτίωση άμυνας\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Πάρα πολύ λίγες πρώτες ύλες\", \"Ήδη εκτελούνται εργασίες\", \"Κατασκευή ολοκληρώθηκε\", \"Εναρξη Κατασκευής\", \"Σε εξέλιξη\", \"Η Αποθήκη πρώτων υλών σας ειναι πολύ μικρή. Παρακαλώ αναβάθμιστε την Αποθήκη πρώτων υλών για να συνεχιστεί η κατασκευή σας\", \"Η Σιταποθήκη σας ειναι πολύμικρή. Παρακαλώ αναβάθμιστε την σιταποθήκη για να συνεχιστεί η κατασκευή σας\", \"Αρκετες Πρώτες ύλες\", \"Έλλειψη τροφής: Αναβαθίστε πρώτα ενα Χωράφι σιταριού\", \"Πραγματοποιείται ήδη μία γιορτή\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Μονο οι ύλες της Πρωτεύουσας μπορούν να αναβάθμιστουν στο επίπεδο 20. Now your Πρωτεύουσα is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Ακυρωμένο\", \"Έναρξη των εργασιών\", \"Επιτυχής αναβάθμιση\", \"Εκτελέστηκε με επιτυχία\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Περιοχή ηρώων to determine the speed and the type of your hero.\"];\n\t\t\t\taLangResources = [\"Ξύλο\", \"Πηλός\", \"Σίδερο\", \"Σιτάρι\"];\n\t\t\t\taLangTroops[0] = [\"Λεγεωνάριοι\", \"Πραιτοριανός\", \"Ιμπεριανός\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Πολιορκητικός κριός\", \"Καταπέλτης φωτιάς\", \"Γερουσιαστής\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangTroops[1] = [\"Μαχητές με ρόπαλα\", \"Μαχητής με Ακόντιο\", \"Μαχητής με Τσεκούρι\", \"Ανιχνευτής\", \"Παλατινός\", \"Τεύτονας ιππότης\", \"Πολιορκητικός κριός\", \"Καταπέλτης\", \"Φύλαρχος\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangTroops[2] = [\"Φάλαγγες\", \"Μαχητής με Ξίφος\", \"Ανιχνευτής\", \"Αστραπή του Τουτατή\", \"Δρυίδης\", \"Ιδουανός\", \"Πολιορκητικός κριός\", \"Πολεμικός καταπέλτης\", \"Αρχηγός\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangAttackType = [\"Ενίσχυση\", \"Επίθεση: Κανονική\", \"Επίθεση: Επιδρομή\"];\n\t\t\t\tbreak;\n\t\t\tcase \"4.0\": // translations for travian version 4.0\n\t\t\t\taLangAllBuildWithId = [\"Ξυλοκόπος\", \"Ορυχείο πηλού\", \"Ορυχείο σιδήρου\", \"Χωράφι σιταριού\", \"Περιοχή\", \"Πριονιστήριο\", \"Πηλοποιείο\", \"Χυτήριο σιδήρου\", \"Μύλος σιταριού\", \"Αρτοποιείο\", \"Αποθήκη πρώτων υλών\", \"Σιταποθήκη\", \"Σιδηρουργείο\", \"Σιδηρουργείο\", \"Πλατεία αθλημάτων\", \"Κεντρικό κτίριο\", \"Πλατεία συγκεντρώσεως\", \"Αγορά\", \"Πρεσβεία\", \"Στρατόπεδο\", \"Στάβλος\", \"Εργαστήριο\", \"Ακαδημία\", \"Κρυψώνα\", \"Δημαρχείο\", \"Μἐγαρο\", \"Παλάτι\", \"Θησαυροφυλάκιο\", \"Εμπορικό γραφείο\", \"Μεγάλο Στρατόπεδο\", \"Μεγάλος Στάβλος\", \"Τείχος Πόλεως\", \"Χωμάτινο τεἰχος\", \"Τείχος με πάσσαλους\", \"Λιθοδὀμος\", \"Ζυθοποιείο\", \"Τοποθέτης παγίδων\", \"Περιοχή ηρώων\", \"Μεγάλη Αποθήκη\", \"Μεγάλη Σιταποθήκη\", \"Παγκόσμιο Θαύμα\", \"Μέρος ποτίσματος αλόγων\"];\n\t\t\t\taLangAllBuildAltWithId = [\"Ξυλοκόπος\", \"Ορυχείο πηλού\", \"Ορυχείο σιδήρου\", \"Χωράφι σιταριού\", \"Περιοχή\", \"Πριονιστήριο\", \"Πηλοποιείο\", \"Χυτήριο σιδήρου\", \"Μύλος σιταριού\", \"Αρτοποιείο\", \"Αποθήκη πρώτων υλών\", \"Σιταποθήκη\", \"Σιδηρουργείο\", \"Σιδηρουργείο\", \"Πλατεία αθλημάτων\", \"Κεντρικό κτίριο\", \"Πλατεία συγκέντρωσης\", \"Αγορά\", \"Πρεσβεία\", \"Στρατόπεδο\", \"Στάβλος\", \"Εργαστήριο\", \"Ακαδημία\", \"Κρυψώνα\", \"Δημαρχείο\", \"Μἐγαρο\", \"Παλάτι\", \"Θησαυροφυλάκιο\", \"Εμπορικό γραφείο\", \"Μεγάλο Στρατόπεδο\", \"Μεγάλος Στάβλος\", \"Τείχος Πόλεως\", \"Χωμάτινο τεἰχος\", \"Τείχος με πάσσαλους\", \"Λιθοδὀμος\", \"Ζυθοποιείο\", \"Τοποθέτης παγίδων\", \"Περιοχή ηρώων\", \"Μεγάλη Αποθήκη\", \"Μεγάλη Σιταποθήκη\", \"Παγκόσμιο Θαύμα\", \"Μέρος ποτίσματος αλόγων\"];\n\t\t\t\taLangAddTaskText = [\"Προσθηκη Εργασίας\", \"Style\", \"Ενεργό χωριό\", \"στοχος εργασίας\", \"Προς\", \"λειτουργία\", \"Construction support\", \"Resources concentration\", \"Μετακίνηση πάνω\", \"Μετακίνηση κάτω\", \"Διαγραφή\", \" Περιεχομενο εργασιών\", \"Move \", \"Διαγραφή όλων των εργασιών\"];\n\t\t\t\taLangTaskKind = [\"αναβάθμισης\", \"Κατασκευή κτηρίου\", \"Επίθεση\", \"Έρευνα\", \"εκπαίδευση\", \"αποστολή\", \"NPC\", \"κατεδάφιση\", \"γιορτή\"];\n\t\t\t\taLangGameText = [\"επίπεδο\", \"Έμποροι\", \"ID\", \"Πρωτεύουσα\", \"Start time\", \"this timeseting is unuseful now.\", \"προς\", \"χωριό\", \"αποστολή\", \"από\", \"αποστολή προς\", \"αποστολή απο\", \"Επιστροφή απο\", \"πρώτες ύλες\", \"κτήριο\", \"Κατασκευή νέου κτηρίου\", \"κενό\", \"επίπεδο\"];\n\t\t\t\taLangRaceName = [\"Ρωμαίοι\", \"Τεύτονες\", \"Γαλάτες\"];\n\t\t\t\taLangTaskOfText = [\"Πρόγραμμα αναβάθμισης\", \"Πρόγραμμα Κατασκευή νέου κτηρίου\", \"Αυτοματη Αναβ. Υλών\", \"Not_run\", \"Έναρξη\", \"Ξεκίνησε\", \"Αναστολή\", \"The resource fields distribution of this village is \", \"Αυτοματη αποστολή\", \"αύτοματη αποστολή είναι ανενεργή\", \"Ανοιχτό\", \"αποστολή επιτυχής\", \"Λίστα Εργασιών\", \"Trans In limit\", \"Προεπιλογή\", \"Τροποποίηση\", \"Ξύλο/Πηλός/Σιδήρος\", \"Σιτάρι\", \"Πρόγραμμα κατεδάφισης\",\n\t\t\t\t\t\t\"Προγραμματισμος επίθεσης\", \"Τυπος επίθεσης\", \"διάρκεια\", \"επανάληψεις\", \"Ενδιάμεσο χρονικό διάστημα\", \"00:30:00\", \"Στόχος καταπέλτη\", \"Τυχαίος\", \"Άγνωστο\", \"φορές\", \"Μήνας\", \"Ημέρα\", \"Στρατεύματα εστάλησαν\",\n\t\t\t\t\t\t\"Προγραμματησμος εκπαίδευσης\", \"Μέρος εκπαίδευσης\", \"εκπαίδευση Ολοκληρώθηκε\", \"προσαρμοσμένη αποστολή\", \"setup interval time of reload\", \"this is the interval of page reload ,\\n default is 20 minutes, please insert new time:\\n\\n\", \"Trans Out Rmn\", \"Προγραμματισμος γιορτων\", \"Μικρή γιορτή\", \"Μεγάλη Γιορτή\", \"Set Interval of Resources concentration\",\n\t\t\t\t\t\t\"λεπτά\", \".\", \".\", \"Έναρξη\", \"Διακοπή\", \"Schedule Improve\", \"Βελτίωση Επίθεσης\", \"Βελτίωση άμυνας\", \"ResOvrFlow Chk\", \"Enabled\", \"Disabled\", \"AutoRes Crop Upgrd\", \"Toggle\"];\n\t\t\t\taLangErrorText = [\"Πάρα πολύ λίγες πρώτες ύλες\", \"Ήδη εκτελούνται εργασίες\", \"Κατασκευή ολοκληρώθηκε\", \"Εναρξη Κατασκευής\", \"Σε εξέλιξη\", \"Η Αποθήκη πρώτων υλών σας ειναι πολύ μικρή. Παρακαλώ αναβάθμιστε την Αποθήκη πρώτων υλών για να συνεχιστεί η κατασκευή σας\", \"Η Σιταποθήκη σας ειναι πολύμικρή. Παρακαλώ αναβάθμιστε την σιταποθήκη για να συνεχιστεί η κατασκευή σας\", \"Αρκετές πρώτες\", \"Έλλειψη τροφής : Αναβαθμίστε πρώτα ένα χωράφι σιταριού\", \"Πραγματοποιείται ήδη μία γιορτή\"];\n\t\t\t\taLangOtherText = [\"Important note\", \"Μονο οι ύλες της Πρωτεύουσας μπορούν να αναβάθμιστουν στο επίπεδο 20. Now your Πρωτεύουσα is not detected. Visit your Profile please.\", \"Shortcut here ^_^\", \"Setup completed\", \"Ακυρωμένο\", \"Έναρξη των εργασιών\", \"Επιτυχής αναβάθμιση\", \"Εκτελέστηκε με επιτυχία\", \"Your race is unknown, therefore your troop type. Visit your Profile to determine your race.\", \"Please also visit your Περιοχή ηρώων to determine the speed and the type of your hero.\"];\n\t\t\t\taLangResources = [\"Ξύλο\", \"Πηλός\", \"Σίδερο\", \"Σιτάρι\"];\n\t\t\t\taLangTroops[0] = [\"Λεγεωνάριοι\", \"Πραιτοριανός\", \"Ιμπεριανός\", \"Equites Legati\", \"Equites Imperatoris\", \"Equites Caesaris\", \"Πολιορκητικός κριός\", \"Καταπέλτης φωτιάς\", \"Γερουσιαστής\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangTroops[1] = [\"Μαχητές με ρόπαλα\", \"Μαχητής με Ακόντιο\", \"Μαχητής με Τσεκούρι\", \"Ανιχνευτής\", \"Παλατινός\", \"Τεύτονας ιππότης\", \"Πολιορκητικός κριός\", \"Καταπέλτης\", \"Φύλαρχος\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangTroops[2] = [\"Φάλαγγες\", \"Μαχητής με Ξίφος\", \"Ανιχνευτής\", \"Αστραπή του Τουτατή\", \"Δρυίδης\", \"Ιδουανός\", \"Πολιορκητικός κριός\", \"Πολεμικός καταπέλτης\", \"Αρχηγός\", \"Άποικος\", \"Hero\"];\n\t\t\t\taLangAttackType = [\"Ενίσχυση\", \"Επίθεση: Κανονική\", \"Επίθεση: Επιδρομή\"];\n\t\t\t\tbreak;\n\t\t}\n}\n\nJOINEDaLangAllBuildWithId = aLangAllBuildWithId.slice(0) ;\nJOINEDaLangAllBuildWithId = cleanString(JOINEDaLangAllBuildWithId);\n\t\t\nJOINEDaLangAllBuildAltWithId = aLangAllBuildAltWithId.slice(0);\nJOINEDaLangAllBuildAltWithId = cleanString(JOINEDaLangAllBuildAltWithId);\ninitializeLangSpecificDependentVars();\n\n}", "function controlLanguage(langString) {\n localStorage.setItem(\"language\", langString);\n renderTranslation(eval(\"json\"+langString));\n }", "function setLanguage(newLang){\r\n\tswitch (newLang) {\r\n\t\t// German - DE - by Stevieoo\r\n\t\tcase \"de\": \taLang = [\"Aktivieren\", \"Angriffs-Email\", \"Angriffs-Alarm\", \"Spionage-Alarm\", \"Nachrichten-Alarm\", \"Auto-Login\", \"Du musst Deine eMail Adresse am Anfang des Codes einfügen, wenn Du eine eMail bekommen möchtest, wenn Du angegriffen wirst.\", \"Es muss eine funktionierende Email Adresse definiert werden, damit Du bei einem Angriff benachrichtigt wirst.\", \"Angriff in \", \"Unbekannte Angriffs-Zeit\", \"Du wirst angegriffen, aber die Flottendetails nicht nicht verfügbar.\", \"Ankunfts-Zeit\", \"Schiffe\", \"Von\", \"Nach\", \"Angriff\", \"OGame Angriff\", \"Autologin kann in Chrome nicht abgeschaltet werden. Bitte deaktiviere das Addon zum ausschalten des Autologin.\", \"[email protected]\", \"Das ist eine Testmail\", \"Das ist ein [email protected] Test\", \"OGame Alarm w/ Cheese\", \"Email für eingehene Alarme\", \"Test\", \"Ogame Alarm by programer\", \"Minimale Reload-Zeit\", \"Maximale Reload-Zeit\", \"Prüfe auf alarme alle\", \"Speichern & Schließen\",\"Reload Typ Auswahl\",\"Sekunden\",\"Sprache\",\"\",\"[OGAbp] Löschen aller cookies\",\"Bist Du sicher das Du alle OGAbp Cookies löschen möchtest? Hiermit werden deine Logindaten gelöscht und alle Einstellungen auf standard zurück gesetzt.\", \"Reset alles\", \"AutoLogin Konten\", \"Server\", \"Spieler\", \"Passwort\", \"AutoLogin\", \"Es gibts keine AutoLogin informationen. Bitte ausloggen und neu einloggen zum speichern der informationen.\", \"Ungültige Email! Beispiel: [email protected]\", \"Eine Test Email wurde versendet! Wenn Sie kein Firefox verwenden könnte es nicht funktionieren.\", \"Ungültige Einstellungen! Das minimum darf nicht kleiner als 30 Sekunden sein. Das Maximum darf nicht kleiner als 360 sein. Prüfen auf Angriffe darf nicht kleiner als 30 sein. Die Email Adresse muss ein @ und einen . und keine Leerzeichen enthalten.\", \"Übersicht\", \"Löschen\", \"Repeat last audio alarm\", \"After\", \"(Less than 10 = OFF)\"];\r\n\t\t\t\t\taLangIndex = 1;\r\n\t\t\t\t\tbreak;\r\n\t\t// Danish - DK - by Kin0x\r\n\t\tcase \"dk\": \taLang = [\"Aktiver\", \"Angrebs email\", \"Angrebs Alarm\", \"Spionage Alarm\", \"Besked Alarm\", \"Auto Login\", \"Mangler email!\", \"Du skal have en email indtastet i bunden for at kunne modtage beskeder omkring flåde angreb pr. mail.\", \"Indkommende angreb om \", \"Ukendt angrebs tid\", \"Du er under angreb, men der er ingen flåde detajler\", \"Ankommer kl.\", \"Skibe\", \"Fra\", \"Til\", \"Angreb\", \"OGame indkommende angreb\", \"AutoLogin kan ikke blive slået fra i Chrome!\", \"[email protected]\", \"Dette er en test email!\", \"En test email så du kan se dit script virker!\", \"OGame Alarm med Ost\", \"Email for at modtage mails med angreb\", \"Send en test\", \"OGame Alarm Indstillinger\", \"Minimum opdateringstid (sek)\", \"Maksimum opdateringstid (sek)\", \"Check for alarms every\", \"Gem Indstillinger\", \"Select Reload Type\", \"sekund\", \"Sprog\", \"\", \"[OGAbp] Delete all cookies\", \"Are you sure you want to delete all OGAbp cookies?\\n\\nThis will delete your email and autologin information as well as reset all options to default.\", \"Reset All\", \"AutoLogin Accounts\", \"Server\", \"Player\", \"Password\", \"AutoLogin\", \"No AutoLogin account information. Please log out and log back in to save account information for AutoLogin.\", \"Improper Email. Please use the form: [email protected]\", \"Test Email sent!\\n\\nThis may not work in non-FireFox browsers.\", \"Improper settings!\\n\\nMinimum cannot be set lower than 30 seconds.\\nMaximum cannot be set lower than 360 seconds.\\nCheck for Attacks cannot be set lower than 30.\\nThe email address must contain @ and . and no spaces.\", \"Overview\", \"Delete\", \"Repeat last audio alarm\", \"After\", \"(Less than 10 = OFF)\"];\r\n\t\t\t\t\taLangIndex = 2;\r\n \t\t\t\t\tbreak;\r\n\t\t// Portuguese - PL - by GL_notmypresident\r\n\t\tcase \"pt\": \taLang = [\"Recarregar\", \"Email de ataque\", \"Alarme de ataque\", \"Alarme de espião\", \"Alarme mensagem\", \"Login automático\", \"Tens que preencher a variável EmailURL no topo do código. Para usar a opção de Email de ataque.\", \"Tens que inserir o teu email no fim da página do OGame para usar a opção de Email de ataque.\", \"Ataque em \", \"Tempo para o ataque desconhecido\", \"Estás a ser atacado, mas os detalhes da frota atacante são desconhecidos.\", \"Tempo de chegada\", \"Naves\", \"De\", \"Para\", \"Ataque\", \"Ataque no OGame\", \"Não é possível desactivar o Login Automático no Chrome. Tens que ir à página das extensões e desactivar o script para desactivar o Login automático.\", \"[email protected]\", \"Email de teste\", \"Um teste com queijo\", \"Alarme do OGame com queijo\", \"Email para receberes notificações de ataque\", \"Teste\", \"Ogame Alarm by programer\", \"Minimum reload time\", \"Maximum reload time\", \"Check for alarms every\", \"Salvar e Saída\", \"Select Reload Type\", \"segundo\", \"Linguagem\", \"\", \"[OGAbp] Delete all cookies\", \"Are you sure you want to delete all OGAbp cookies?\\n\\nThis will delete your email and autologin information as well as reset all options to default.\", \"Reset All\", \"AutoLogin Accounts\", \"Server\", \"Player\", \"Password\", \"AutoLogin\", \"No AutoLogin account information. Please log out and log back in to save account information for AutoLogin.\", \"Improper Email. Please use the form: [email protected]\", \"Test Email sent!\\n\\nThis may not work in non-FireFox browsers.\", \"Improper settings!\\n\\nMinimum cannot be set lower than 30 seconds.\\nMaximum cannot be set lower than 360 seconds.\\nCheck for Attacks cannot be set lower than 30.\\nThe email address must contain @ and . and no spaces.\", \"Overview\", \"Delete\", \"Repeat last audio alarm\", \"After\", \"(Less than 10 = OFF)\"];\r\n\t\t\t\t\taLangIndex = 3;\r\n \t\t\t\t\tbreak;\r\n\t\t// Russian - RU - by programer\r\n\t\tcase \"ru\":\taLang = [\"Активировать\", \"Emailer атак\", \"Сирена при атаке\", \"Сигнал при скане\", \"Сигнал о сообщении\", \"Авто Вход\", \"Вы должны ввести адрес почтового ящика в начале кода скрипта для использования Входящие сообщения при атаке.\", \"Вы должны установить корректный почтовый ящик в опции Сигнал при атаке\", \"Атака через \", \"Неизвестное время атаки\", \"Обнаружена атака, но состав флотов не определен\", \"Время прилета\", \"Корабли\", \"с\", \"на\", \"Атака\", \"Атака в OGame\", \"Невозможно отключить Авто Вход в Chrome. Вы должны открыть расширения и отключить скрипт, чтобы отключить Авто Вход.\", \"[email protected]\", \"Тестовое сообщение\", \"Тест\", \"OGame Alarm by programer\", \"Почтовый ящик для отправки сигнального сообщения\", \"Тест\", \"Ogame Alarm by programer\", \"Минимальное время обновления\", \"Максимальное время обновления\", \"Проверять атаку каждые\", \"Сохранить & Выйти\", \"Выберите тип обновления\", \"секунд\", \"Язык\", \"\", \"[OGAbp] Удалить куки\", \"Вы действительно хотите удалить все OGAbp куки?\\n\\nЭто удалит адрес почтового ящика (и информацию авто входа в GreaseMonkey), как сброс всех настроек и опций по умолчанию.\", \"Сбросить все\", \"Аккаунты Авто входа\", \"Сервер\", \"Игрок\", \"Пароль\", \"Авто вход\", \"Не найдена информации об аккаунтах Авто входа. Пожалуйста выйдите и войдите обратно для сохранения информации об аккаунте для Авто входа\", \"Некорректный Email. Пожалуйста, используйте форму: [email protected]\", \"Тестовое сообщение отправлено!\\n\\nЭто будет работать только в браузере FireFox.\", \"Некорректные настройки!\\n\\nМинимум не может быть менее 30 секунд.\\nМаксимум не может быть менее 360 секунд.\\nПроверка атак не может быть установлена менее 30.\\nАдрес почтового ящика должен содержать @ и . и не должен содержать пробелов.\\nПовторение сигнала должно быть чаще, чем проверка атак.\", \"Обзор\", \"Удалить\", \"Повторять последний сигнал\", \"После\", \"(Менее 10 = отключено)\"];\r\n\t\t\t\t\taLangIndex = 4;\r\n\t\t\t\t\tbreak;\r\n\t\t// English (Default) - ORG - by Pimp Trizkit\r\n\t\tcase \"org\": // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49\r\n\t\tdefault:\taLang = [\"Activate\", \"Attack Emailer\", \"Attack Alarm\", \"Espionage Alarm\", \"Message Alarm\", \"Auto Login\", \"You need to set the EmailURL at the top of the code. To use the Incoming Attack Email Alarm.\", \"You need to set a proper email address in the options screen for the Incoming Attack alerts.\", \"Incoming Attack in \", \"Unknown Attack Time\", \"You have an Incoming attack, but the fleet details are not available\", \"Arrival Time\", \"Ships\", \"From\", \"To\", \"Attack\", \"OGame Incoming Attack\", \"Can not turn off AutoLogin in Chrome. You will have to goto your extensions and disable the script to disable AutoLogin.\", \"[email protected]\", \"This is a test email\", \"One Cheesy Test\", \"OGame Alarm w/ programer\", \"Email address to send Incoming Attack alerts\", \"Test\", \"Ogame Alarm by programer\", \"Minimum reload time\", \"Maximum reload time\", \"Check for alarms every\", \"Save & Close\", \"Select Reload Type\", \"seconds\", \"Language\", \"\", \"[OGAbp] Delete all cookies\", \"Are you sure you want to delete all OGAbp cookies?\\n\\nThis will delete your email (and autologin information in GreaseMonkey) as well as reset all settings and options to default.\", \"Reset All\", \"AutoLogin Accounts\", \"Server\", \"Player\", \"Password\", \"AutoLogin\", \"No AutoLogin account information. Please log out and log back in to save account information for AutoLogin.\", \"Improper Email. Please use the form: [email protected]\", \"Test Email sent!\\n\\nThis may not work in non-FireFox browsers.\", \"Improper settings!\\n\\nMinimum cannot be set lower than 30 seconds.\\nMaximum cannot be set lower than 360 seconds.\\nCheck for Attacks cannot be set lower than 30.\\nThe email address must contain @ and . and no spaces.\\nAlarm repeat must be less than Check for Alarms.\", \"Overview\", \"Delete\", \"Repeat last audio alarm\", \"After\", \"(Less than 10 = OFF)\"];\r\n\t\t\t\t\taLangIndex = 0;\r\n\t\t\t\t\tbreak;\r\n\t}\r\n}", "function switchLanguage( language ) {\n langCode = language;\n $.qLabel.switchLanguage( language );\n console.log( 'Selected: ' + language + ' (' +\n\t\t\t\t $.uls.data.getDir(language) +\n\t\t\t ')' );\n $( '.row' ).css( 'direction', $.uls.data.getDir( language ) );\n if ( $.uls.data.getDir( language ) == 'rtl' ) {\n\t $( '.row' ).css( 'text-align', 'right' );\n }\n else {\n\t $( '.row' ).css( 'text-align', 'left' );\n }\n}", "function setLanguage(lang) {\n var inner = \"data-\" + lang;\n var title = \"data-\" + (lang == \"jp\" ? \"en\" : \"jp\");\n chrome.tabs.executeScript(null,\n {code:\"$(\\\".wanikanified\\\").each(function(index, value) { value.innerHTML = value.getAttribute('\" + inner + \"'); value.title = value.getAttribute('\" + title + \"'); })\"});\n}", "function setLang(l) {\n lang = l;\n\n // set lang in the browser session cache\n sessionStorage.setItem(\"lang\", lang);\n \n // set lang class on body\n var body = document.getElementById(\"body\");\n body.className = lang;\n\n // redraw in the new language\n this.draw(((window.history || {}).state || {}).section || null);\n}", "function helloWorld(language){\n\n if (language == \"English\"){\n console.log(\"Hello World\");\n\n }else if (language == \"Arabic\"){\n console.log(\"مرحبا بالعالم\");\n\n }else if (language == \"French\"){\n console.log(\"Bonjour le monde\");\n } \n}", "function $l(key, text) {\r\n var string, l;\r\n if (lang[language][key]) { string = lang[language][key]; l = language; }\r\n else { string = lang['en'][key]; l = 'en' }\r\n if (text) { string = string.replace('%s', text); }\r\n return string;\r\n }", "function change_language(ev)\n {\n cuelang = this.value;\n\n // Set the lang attribute of the cue_elt.\n cue_elt.setAttribute(\"lang\", cuelang);\n\n // Set the cue_elt to the current caption in the chosen language.\n let i = 0, len = subtitles.length;\n while (i < len && subtitles[i].language !== cuelang) i++;\n if (i == len) {\n cue_elt.innerHTML = \"\";\n } else {\n let t = subtitles[i];\n if (t.mode === \"disabled\") t.mode = \"hidden\"; // Ensure it will be loaded\n if (!t.activeCues || !t.activeCues.length) cue_elt.innerHTML = \"\";\n else cue_elt.innerHTML = t.activeCues[0].text;\n }\n }", "function changeLanguage() {\n var curLanguage = this.id;\n applyLanguage(curLanguage);\n //delete check from previous language\n document.querySelector(\".check-language[data-check=true]\").setAttribute(\"data-check\", \"false\");\n document.getElementById(curLanguage).setAttribute(\"data-check\", \"true\");\n }", "function switch_learning_mode() {\n if (table_show == 1) {\n kanatable();\n }\n if (mode_learning == 'kana') {\n mode_learning = 'words';\n } else if (mode_learning == 'words') {\n mode_learning = 'kana';\n }\n switch_page(mode_learning);\n}", "function setLanguage(lang, pageLangSelector, metaLangSelector, dict) {\n // change lan of page\n $(metaLangSelector)\n .attr(\"lang\", lang);\n // change class=\"checked\"\n setLang(lang, pageLangSelector);\n // change lang of content\n translateContent(lang, dict);\n // translate meta description\n translateMetaDescription(lang, dict);\n}", "function changeLang(lang = 'en'){\n\n\tconst translations = {\n\t\t'en' : {\n\t\t\thtmlTitle : 'A Javascript restoration of «Pn=n!» (2006) by Iván Marino :: Marcelo Terreni',\n\t\t\ttitle: 'A Javascript restoration of <cite class=\"pn-title\">P<sub>n</sub>=n!</cite>&nbsp;(2006) by <span lang=\"es\">Iván Marino</span> built with ES6, CSS, MSE & the HandBrake CLI',\n\t\t\tdescription: '<p>First exhibited in March 2006, <cite class=\"pn-title\">P<sub>n</sub>=n!</cite> was a media art installation developed in Flash by the argentinian artist <span lang=\"es\">Iván Marino</span>. A sequence from the film <cite lang=\"fr\">“La Passion de Jeanne d\\'Arc”</cite> (1928) by Carl T. Dreyer was divided into its constituent shots and repurposed to address the idea of torture as an algorithm, a piece of software. For every new sequence in the project, an individual shot from the film was randomly selected and reedited into a new progression that would fatally mirror the three semantic cornerstones present in several torture procedures: victims, victimizers and torture instruments.</p>\\n<p>For this conservation project I rewrote the code from scratch with ES6, used the Media Source API to manage video playback and built a responsive CSS layout to meet the requirements of the modern web. Although the source video was reprocessed with the HandBrake CLI from a more recent transfer of the film, I took care to mimic the look and feel of the original *.flv files in After Effects. A detailed tutorial of this new media restoration work is coming up soon. Meanwhile, <a href=\"http://terreni.com.ar\">check any of the other works in my personal portfolio</a>.</p>',\n\t\t\tviewwork : 'View <cite class=\"pn-title\">P<sub>n</sub>=n!</cite> restoration',\n\t\t\tloadings : ['Loading <br />Judges', 'Loading <br />Jeanne', 'Loading <br />Machines'],\n\t\t\tcredits : 'Restored with ES6, CSS & the HandBrake&nbsp;CLI by <a href=\"http://terreni.com.ar\">Marcelo Terreni</a>',\n\t\t\tviewsource : 'View source in <strong>GitHub</strong>'\n\t\t},\n\t\t'es' : {\n\t\t\thtmlTitle : 'Una versión en Javascript de «Pn=n!» (2006) de Iván Marino :: Marcelo Terreni',\n\t\t\ttitle: 'Un ejercicio de preservación sobre <cite class=\"pn-title\">P<sub>n</sub>=n!</cite>&nbsp;(2006) de Iván Marino con ES6, CSS, MSE & la CLI de HandBrake',\n\t\t\tdescription: '<p>Exhibida por primera vez en marzo de 2006, <cite class=\"pn-title\">P<sub>n</sub>=n!</cite> es una instalación programada en Flash por el artista argentino Iván Marino. El autor dividió una secuencia del film <cite lang=\"fr\">“La Passion de Jeanne d\\'Arc”</cite> (1928) de Carl T. Dreyer en sus planos constituitivos para luego resignificarlos en una meditación sobre la tortura como algoritmo, como un proceso suceptible de ser transformado en software. En cada nueva secuencia del proyecto, una toma individual del film era seleccionada y remontada en una nueva progresión de planos que sigue el orden de los tres pilares semánticos presentes en varios procedimientos de tortura: víctimas, victimarios e instrumentos de tortura.</p>\\n<p>Para este proyecto de restauración reescribí el código con ES6, use la API <span lang=\"en\">Media Source</span> para manejar la reproducción de video y construí vía CSS un diseño mejor adaptado a los requerimientos de la web moderna. Aunque el material fue recomprimido con la CLI de HandBrake a partir de un transfer más reciente del film, me tomé el trabajo de imitar el aspecto de los archivos *.flv originales en After Effects para conseguir una reproducción lo más fiel posible. Prontó escribiré un tutorial detallado sobre las soluciones que encontré durante el trabajo de restauración. Mientras tanto, <a href=\"http://terreni.com.ar\">te invito a navegar alguno de los otros trabajos exhibidos en mi portfolio personal</a>.</p>',\n\t\t\tviewwork : 'Ver <cite class=\"pn-title\">P<sub>n</sub>=n!</cite> restaurada',\n\t\t\tloadings : ['Cargando <br />Jueces', 'Cargando <br />Juana', 'Cargando <br />Instrumentos'],\n\t\t\tcredits : 'Restaurada con ES6, CSS & la CLI de HandBrake por <a href=\"http://terreni.com.ar\">Marcelo Terreni</a>',\n\t\t\tviewsource : 'Ver el código en <strong>GitHub</strong>'\n\t\t}\n\t};\n\n\tdocument.getElementsByTagName('html')[0].setAttribute('lang', lang);\n\tdocument.title = translations[lang].htmlTitle;\n\n\tconst pnIntroTitle = document.getElementsByClassName('intro-description-title')[0];\n\tconst pnIntroDescription = document.getElementsByClassName('intro-description-bio')[0];\n\tconst pnIntroCredits = document.getElementsByClassName('intro-description-credits')[0];\n\tconst pnIntroViewwork = document.querySelector('.intro-description-start-btn span');\n\tconst pnIntroLoadings = document.querySelectorAll('.intro-description-loading-list p');\n\tconst pnIntroViewsource = document.getElementsByClassName('intro-description-viewsource')[0];\n\n\t/* Text translation */\n\tpnIntroTitle.innerHTML = translations[lang].title;\n\tpnIntroDescription.innerHTML = translations[lang].description;\n\tpnIntroCredits.innerHTML = translations[lang].credits;\n\tpnIntroViewwork.innerHTML = translations[lang].viewwork;\n\tpnIntroViewsource.innerHTML = translations[lang].viewsource;\n\n\tfor(let i = 0; i < pnIntroLoadings.length; i++){\n\t\tpnIntroLoadings[i].innerHTML = translations[lang].loadings[i];\n\t}\n\n}", "function $l(key,text) {\r\n\tvar string, l;\r\n\tif (lang[language][key]) { string = lang[language][key]; l = language; }\r\n\telse { string = lang['en'][key]; l = 'en'}\r\n\tif (text) { string = string.replace('%s', text); }\r\n\treturn string;\r\n}", "function $l(key,text) {\r\n\tvar string, l;\r\n\tif (lang[language][key]) { string = lang[language][key]; l = language; }\r\n\telse { string = lang['en'][key]; l = 'en'}\r\n\tif (text) { string = string.replace('%s', text); }\r\n\treturn string;\r\n}", "function $l(key,text) {\r\n\tvar string, l;\r\n\tif (lang[language][key]) { string = lang[language][key]; l = language; }\r\n\telse { string = lang['en'][key]; l = 'en'}\r\n\tif (text) { string = string.replace('%s', text); }\r\n\treturn string;\r\n}", "function returnLanguage() {\n var lang = document.location.href.split('/')[3];\n var uaText = {\n open: 'Читати далі',\n close: 'Згорнути'\n };\n var ruText = {\n open: 'Читать далее',\n close: 'Свернуть'\n };\n var enText = {\n open: 'Read more',\n close: 'Close'\n };\n if(lang=='ru') {\n return ruText;\n } else if(lang=='en') {\n return enText;\n } else {\n return uaText;\n }\n }", "function translate(language) {\n if (language === \"es\") {\n return \"Hola, mundo!\";\n } else if (language === \"fr\") {\n return \"Bonjour le monde\";\n } else {\n return \"Hello, World\";\n }\n\n}", "changeTextOnDOM(){\n var keys = Object.keys(this.idsToLangKey)\n keys.forEach((value)=>{\n document.getElementById(value).innerHTML = this.localeModel.getCurrentLanguage(this.idsToLangKey[value])\n })\n }", "function testLty() {\n console.log(\"en\");\n console.log(\"ch\");\n}", "function showPhrase(link, path, trans, lang, explan) {\r\n}", "function selectedLanguage(){\n if(languageOnPage === \"en-US\"){\n return English\n } else if(languageOnPage === \"jp\"){\n return Japanese\n }\n }", "function Lang() { \n}", "function sayHello(name, language)\n{\n if (language === \"de\")\n {\n console.log(\"Hallo Welt \" + name + \"!\")\n }\n else if (language === \"en\")\n {\n console.log((\"Hi \" + name + \"!\"))\n }\n \n}", "function translateLanTags(lang) {\n if (lang == \"Russian\") {\n return \"russo\";\n } else if(lang == \"Italian\") {\n return \"italiano\";\n } else if (lang == \"German\") {\n return \"tedesco\";\n } else {\n return lang;\n };\n}", "function translatePageToEnglish() {\n $(\"#title\").html(\"Bite-Size Inspiration\");\n $(\"#subtitle\").html(\"Fill up on your daily inspiration with this mini-project for practicing languages.\")\n $(\"#get-quote\").html(\"Tell me another\");\n $(\"#translate-english\").hide();\n $(\"#translate-spanish\").show();\n $(\"#translate-french\").show();\n quoteArray = quoteArrayEn;\n twitterHashtags = twitterHashtagsEn;\n displayRandomQuote();\n}", "function printLanguage() \n{\n\tl = \"\";\n\t\n\tif(typeof(navigator.language) != \"undefined\")\n\t{\n\t\tl += navigator.language + SEP + navigator.browserLanguage + SEP + navigator.systemLanguage + SEP + navigator.userLanguage;\n\t}\n\t\n\tdocument.getElementById(\"language\").innerHTML = l;\n\t\n\treturn l;\n}", "function setLanguage(storage){\n \n let lang;\n storage ? lang = storage: lang = findLocaleMatch();\n\n let langToChange = document.getElementsByClassName(\"langToChange\");\n for (i=0; i<langToChange.length; i++){\n\n langToChange[i].setAttribute(\"lang\", lang)\n \n langToChange[i].classList.add('lang-match');\n }\n\n let zones = document.querySelectorAll('html [lang]');\n applyStrings(zones,lang);\n}", "function initLanguage() {\n if(getLanguage()) return;\n setItem('language', 'sv');\n}", "function flagLang (lingua) {\n var flag = \"\";\n if (lang.includes(lingua)) {\n flag = '<img src=\"media/' + lingua + '.png\">';\n } else {\n flag = \"<p>\" + lingua + \"</p>\";\n }\n return flag;\n }", "function changeLanguage(lang) {\n lang = lang || \"en\"; // if no language is set, use default (en)\n //console.log(\"Lang >> \"+lang);\n $.i18n.properties({\n path : 'languages/',\n mode : 'both',\n language: lang,\n callback: refresh_i18n\n });\n}", "function changeLang(){\n\n //Changing language\n let langToChange = document.getElementsByClassName(\"langToChange\");\n let previousLang = langToChange[0].getAttribute(\"lang\");\n let lang;\n previousLang === \"es\" ? lang = \"en\" : lang = \"es\";\n\n //Set language selection in localStorage\n if (typeof(Storage) !== \"undefined\") {\n localStorage.setItem(\"lang\", JSON.stringify(lang));\n }\n \n for (i=0; i<langToChange.length; i++){\n langToChange[i].setAttribute(\"lang\", lang)\n }\n\n let zones = document.querySelectorAll('html [lang]');\n applyStrings(zones, lang);\n}", "get lang () { return this._.recog.lang }", "_determineTargetLanguage(text) {\n if ((! this._isRussian) && (! this._isEnglish)) {\n this._isRussian = /[а-яА-Я]/.test(text);\n // only one of the flags will be set\n if (! this._isRussian) {\n this._isEnglish = /[a-zA-Z]/.test(text);\n }\n }\n }", "function changeLanguage(ind) {\n // We only can swap between \"Chinese\" and \"Finnish\"\n if (ind == 4) {\n rows = finRows;\n } else {\n rows = chiRows;\n }\n sortBy(4);\n}", "function changeLang(l) {\r\n\tlang = l;\r\n\tlocalStorage.setItem('ow-lang',l);\r\n\t$('#chooseLangFlag').attr('src','img/flags/' + lang + '.svg');\r\n\tapplyLang();\r\n}", "function setLang(langValue) {\n gCurrLang = langValue;\n}", "function changeLanguage(car){\n return{\n mærke:car.make,\n farve:car.color,\n fart:car.speed,\n }\n}", "async setAppLanguage() {\n this.props.actions.getLanguage().then((lang) => {\n if (lang !== undefined && typeof lang.value === 'string') {\n this.props.actions.setContentStrings(lang.value);\n this.props.actions.setLanguage(lang.value);\n } else {\n this.props.actions.setContentStrings(\"no\");\n this.props.actions.setLanguage(\"no\");\n }\n });\n }", "function translatePageToSpanish() {\n $(\"#title\").html(\"Bocaditos de inspiración\");\n $(\"#subtitle\").html(\"Llenáte con inspiración al día con este pequeño proyecto para practicar idiomas.\")\n $(\"#get-quote\").html(\"Decíme otra\");\n $(\"#translate-english\").show();\n $(\"#translate-spanish\").hide();\n $(\"#translate-french\").show();\n quoteArray = quoteArrayEs;\n twitterHashtags = twitterHashtagsEs;\n displayRandomQuote();\n}", "_loadWithCurrentLang() {\n i18n.changeLang(this.DOM.body, this.lang, this.DOM.domForTranslate, true);\n }", "function switchLanguageInBlockly() {\n workspace = ROBERTA_PROGRAM.getBlocklyWorkspace();\n translate();\n var programBlocks = null;\n if (workspace !== null) {\n var xmlProgram = Blockly.Xml.workspaceToDom(workspace);\n programBlocks = Blockly.Xml.domToText(xmlProgram);\n }\n // translate programming tab\n ROBERTA_TOOLBOX.loadToolbox(userState.toolbox);\n ROBERTA_PROGRAM.updateRobControls();\n ROBERTA_PROGRAM.initProgramEnvironment(programBlocks);\n }", "function setAttribute(lang) {\n $(\"html\").attr(\"lang\", lang);\n}", "renderAboutUsTitle(language) {\n switch(language) {\n case 'en':\n this.setState({aboutUsTitle: 'The story of STORMRIDER'});\n break;\n case 'is':\n this.setState({aboutUsTitle: 'Um Okkur STORMRIDER'});\n break;\n default:\n break;\n }\n }", "function sayHello(name, language) {\n if (language === \"de\") {\n console.log(\"Hallo \" + name + \"!\")\n }\n else if (language === \"en\") {\n console.log(\"Hi \" + name + \"!\")\n }\n}", "function setLanguage() {\n\t\t//read from cookie\n\t\tvar lang = readCookie(prefNames[this.languageIdx]);\n\t\t\n\t\t//if no cookie is available, use the browser's language\n\t\tif (!lang) {\n\t\t\tvar userLang = (navigator.language) ? navigator.language : navigator.userLanguage;\n\t\t\tif (userLang.indexOf(\"de\") != -1) {\n\t\t\t\t//use German for browser language codes that contain \"de\"\n\t\t\t\tlang = 'de';\n\t\t\t} else {\n\t\t\t\t//everything else is set to English\n\t\t\t\tlang = 'en';\n\t\t\t}\n\t\t}\n\n\t\tif (list.languages.indexOf(lang) == -1) {\n\t\t\t//this language doesn't exist in ORS, use default\n\t\t\tlang = 'en';\n\t\t}\n\n\t\treturn lang;\n\t}", "formatToLanguage() {\n const format = this.props.cardToShow.split('.')[this.props.cardToShow.split('.').length-1];\n switch (format) {\n case 'js': return 'javascript';\n case 'py': return 'python3';\n case 'rb': return 'ruby';\n case 'html': return 'html';\n case 'css': return 'html';\n case 'java': return 'java';\n case 'cpp': return 'cpp';\n case 'cs': return 'csharp';\n default: return '';\n }\n }", "get displayLanguage() {\n\t\treturn this.__displayLanguage;\n\t}", "function onchange() {\n\n updateLanguage();\n\n}", "function setUserLanguage(value){\n __params['ul'] = value;\n}", "changeLanguage(e) {\n\t\tconst lang = e.target.value;\n\t\tif (lang !== undefined && possibleLanguages.indexOf(lang !== -1)) {\n\t\t\tcookie.save(\"lang\", lang, {path: cookiesPath, expires: new Date(new Date().getTime() +1000*60*60*24*365), sameSite: \"strict\"});\n\t\t\tthis.setState({language: lang});\n\t\t}\n\t}", "function getLanguage() {\n return 'en-us';\n}", "function showAutotranslatedString(english, translated) {\n $(\"#results\").append(`<p>Auto-translated <em>${english}</em> to <em>${translated}</em></p>`)\n}", "function setPreferredLang() {\n angularTranslateSvc.use(service.getPreferredLang());\n }", "function changeLanguage() {\r\n $('[data-lang]').each(function(index, el) {\r\n var $textLang = $(el).data('lang');\r\n $(el).text( lang [ localStorage.getItem('pageLang') || 'pl' ][ $textLang ] );\r\n });\r\n\r\n var activeButton = localStorage.getItem('pageLang');\r\n $('.btn-change-lang').removeClass('active');\r\n if(activeButton) {\r\n $('.btn-change-lang[data-language=' + activeButton + ']').addClass('active');\r\n } else {\r\n $('.btn-change-lang[data-language=pl]').addClass('active');\r\n }\r\n }", "function greet(lang) {\n switch (lang) {\n case 'en':\n console.log('hello!');\n break;\n case 'es':\n console.log('hola');\n break;\n case 'fr':\n console.log('bonjour!');\n }\n}", "function translatePageToFrench() {\n $(\"#title\").html(\"Les petits motifs d'inspiration\");\n $(\"#subtitle\").html(\"Remplis-toi avec l'inspiration du jour avec ce petit projet pour pratiquer les langues.\")\n $(\"#get-quote\").html(\"Dis-moi un autre\");\n $(\"#translate-english\").show();\n $(\"#translate-spanish\").show();\n $(\"#translate-french\").hide();\n quoteArray = quoteArrayFr;\n twitterHashtags = twitterHashtagsFr;\n displayRandomQuote();\n}", "function getLanguage(){\n var wmeLanguage;\n var urlParts;\n\n urlParts = location.pathname.split(\"/\");\n wmeLanguage = urlParts[1].toLowerCase();\n if (wmeLanguage===\"editor\")\n wmeLanguage = \"us\";\n\n return wmeLanguage;\n\n }", "function setScpLanguage () {\n\t//PDN 12/03/15 DO NOT test for LanguageP to skip function as breaks selected langauge\n\t//if (sessionScope.LanguageP == \"\" || sessionScope.LanguageP == null) {\n\t/* 11/04/2016 changes made - changes are marked with //11-04-2016 after code\n\t * made browserLocale all lower case\n\t * \n\t*/\n\t//println(\"=+=+=+=+=+=+=\");\n\t\tdBar.info(\"session.getServerName = \" + session.getServerName());\n\t\tvar languageDefault = \"eme-en\";\n\t\tvar languageSel = new String(\"initialze as String object then set to null string\");\n\t\tvar languageSel = \"\";\n\t\t\n\t\tif (cookie.containsKey(\"languagePref\")) {\n\t\t\tlanguageSel = cookie.get(\"languagePref\").getValue();\n\t\t\tdBar.info(\"languageSel = \" + languageSel);\n\t\t};\n\t\tvar browserLocale = context.getLocaleString().toLowerCase(); //11-04-2016\n\t\tdBar.info(\"***** context.getLocaleString() : \"+ browserLocale);\n\t\t//println(\"browserLocale: \"+browserLocale);\n\t\t\n\t\t//var languageLocal = new String(\"americas-en\");\n\t\tvar languageLocal = new String(\"eme-intl\");\n\t \n\t\tswitch (browserLocale) {\n\t\t\tcase \"en_us\": //11-04-2016\n\t\t\tcase \"en_ca\": //11-04-2016\n\t\t\tcase \"fr_ca\": //11-04-2016\n\t\t\tcase \"es_ca\": //11-04-2016\n\t\t\tcase \"es_bo\": //11-04-2016\n\t\t\tcase \"es_cl\": //11-04-2016\n\t\t\tcase \"es_co\": //11-04-2016\n\t\t\tcase \"es_cr\": //11-04-2016\n\t\t\tcase \"es_do\": //11-04-2016\n\t\t\tcase \"es_ec\": //11-04-2016\n\t\t\tcase \"es_sv\": //11-04-2016\n\t\t\tcase \"es_gt\": //11-04-2016\n\t\t\tcase \"es_hn\": //11-04-2016\n\t\t\tcase \"es_mx\": //11-04-2016\n\t\t\tcase \"es_ni\": //11-04-2016\n\t\t\tcase \"es_pa\": //11-04-2016\n\t\t\tcase \"es_py\": //11-04-2016\n\t\t\tcase \"es_pe\": //11-04-2016\n\t\t\tcase \"es_uy\": //11-04-2016\n\t\t\tcase \"es_ve\": //11-04-2016\n\t\t\t\tlanguageLocal = \"americas-en\"; \n\t\t\t\tbreak;\n\t\t\tcase \"de\":\n\t\t\tcase \"de_de\": //11-04-2016\n\t\t\tcase \"de_at\": //11-04-2016\n\t\t\t\tlanguageLocal = \"eme-de\";\t\n\t\t\t\tbreak;\n\t\t\tcase \"en_gb\": //11-04-2016\n\t\t\tcase \"en_ie\": // English (Ireland) //11-04-2016\n\t\t\tcase \"ga_ie\": // Irish //11-04-2016\n\t\t\tcase \"ga\": // Irish\n\t\t\tcase \"gd\": // Scots Gaelic\n\t\t\t\tlanguageLocal = \"eme-en\";\n\t\t\t\tbreak;\n\t\t\tcase \"es\":\n\t\t\tcase \"ca_es\": // Catalan //11-04-2016\n\t\t\tcase \"es_es\": // Spain //11-04-2016\n\t\t\t\tlanguageLocal = \"eme-es\";\t\n\t\t\t\tbreak;\n\t\t\tcase \"fi\":\n\t\t\tcase \"fi_fi\": // Finland //11-04-2016\n\t\t\t\tlanguageLocal = \"eme-fi\";\t\t\n\t\t\t\tbreak;\n\t\t\tcase \"fr\":\n\t\t\tcase \"fr_fr\": // France //11-04-2016\n\t\t\tcase \"fr_be\": // Belgium //11-04-2016\n\t\t\t\tlanguageLocal = \"eme-fr\";\t\t\n\t\t\t\tbreak;\n\t\t\tcase \"it\":\n\t\t\tcase \"it_it\": //11-04-2016\n\t\t\t\tlanguageLocal = \"eme-it\";\t\t\n\t\t\t\tbreak;\n\t\t\tcase \"nl\":\n\t\t\tcase \"nl_nl\": //11-04-2016\n\t\t\tcase \"nl_be\": //11-04-2016\n\t\t\t\tlanguageLocal = \"eme-nl\";\t\n\t\t\t\tbreak;\n\t\t\tcase \"sv\":\n\t\t\tcase \"sv_se\": // Sweden //11-04-2016\n\t\t\t\tlanguageLocal = \"eme-se\";\t\t\n\t\t\t\tbreak;\n\t\t\tcase \"zh\":\n\t\t\tcase \"zh-hh\":\n\t\t\tcase \"zh-cn\":\n\t\t\tcase \"zh-sg\":\n\t\t\tcase \"zh-tw\":\n\t\t\tcase \"zh_hh\":\n\t\t\tcase \"zh_cn\":\n\t\t\tcase \"zh_sg\":\n\t\t\tcase \"zh_tw\":\n\t\t\tcase \"ko\":\n\t\t\tcase \"ko-kp\":\n\t\t\tcase \"ko-kr\":\n\t\t\tcase \"ko_kp\":\n\t\t\tcase \"ko_kr\":\n\t\t\tcase \"au\":\n\t\t\tcase \"en-au\":\n\t\t\tcase \"en_au\":\n\t\t\tcase \"ja\":\n\t\t\t\tlanguageLocal = \"eme-intl\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t//dBar.info(\"case default\");\n\t\t\t\tlanguageLocal = \"eme-intl\";\t\n\t\t};\n\t\t\n\t\tdBar.info(\"languageLocal = \" + languageLocal);\n\t\t\t\n\t\tvar langURL = languageLocal.replace(\"-\",\"/\") + \"/\" ;\n\t\tdBar.info(\"langURL = \" + langURL);\n\t\n\t\tif (!!languageSel) {\n\t\t\t\tsessionScope.LanguageP = languageSel ;\n\t\t\t\tsessionScope.LanguageURL = languageSel.replace(\"-\",\"/\") + \"/\" ;\n\t\t\t\tsessionScope.isBrowserLocaleSupported = true ;\t\n\t\t\t} else if (languageLocal != \"eme-intl\"){\n\t\t\t\tsessionScope.LanguageP = languageLocal ;\n\t\t\t\tsessionScope.LanguageURL = langURL ;\n\t\t\t\tsessionScope.isBrowserLocaleSupported = true ;\t\n\t\t\t} else if (languageLocal == \"eme-intl\"){\n\t\t\t\tsessionScope.LanguageP = \"eme-en\";\n\t\t\t\tsessionScope.LanguageURL = \"eme/en/\" ;\t\n\t\t\t\tsessionScope.isBrowserLocaleSupported = false ;\t\n\t\t\t\treturn facesContext.getExternalContext().redirect(\"/international\");\n\t\t\t} else {\n\t\t\t\t// should never get here\n\t\t\t\tsessionScope.LanguageP = \"americas-en\";\n\t\t\t\tsessionScope.LanguageURL = \"americas/en/\" ;\t\t\t\n\t\t};\n\t\n\t\tdBar.info(\"sessionScope.LanguageP = \" + sessionScope.LanguageP);\n\t\tdBar.info(\"sessionScope.LanguageURL = \" + sessionScope.LanguageURL);\n\n\t\t//println(\"=+=+=+=+=+=+=\");\n\t//};\n\t//dBar.info(\"SKIPPED function, sessionScope.LanguageP = \" + sessionScope.LanguageP);\n\t//dBar.info(\"sessionScope.LanguageURL = \" + sessionScope.LanguageURL);\n}", "function chlang() {\n\tif (lang.id == \"en\")\n\t\tlocalStorage.setItem(\"language\",\"de\");\n\telse\n\t\tlocalStorage.setItem(\"language\",\"en\");\n\n\tlocation.reload();\n}", "function changeLanguage(language) {\n if (site_language != language){\n if (language == 'en'){\n changeCurrentLanguage('en');\n displayLanguage('en');\n document.getElementById('language-dropdown-text').innerHTML = \"English\";\n } else {\n displayLanguage('de');\n changeCurrentLanguage('de');\n document.getElementById('language-dropdown-text').innerHTML = \"Deutsch\";\n }\n\n if(window.location.href.indexOf(\"new_page\") > -1){ //new_page is name of html file\n getAllBehaviors(); //display behaviors with changed name again\n } else if (window.location.href.indexOf(\"index\") > -1 || location.href.split(\"/\").slice(-1) == \"#\" || location.href.split(\"/\").slice(-1) == \"\"){\n updateCards();\n }\n }\n}", "function convertFlag(language) {\n\tif (language === 'it') {\n\t\tlanguage = '🇮🇹';\n\t} else if (language === 'en') {\n\t\tlanguage = '🇺🇸';\n\t} else if (language === 'fr') {\n\t\tlanguage = '🇫🇷';\n\t} else if (language === 'de') {\n\t\tlanguage = '🇩🇪';\n\t} else if (language === 'es') {\n\t\tlanguage = '🇪🇸';\n\t} else {\n\t\tlanguage = '🏳️';\n\t}\n\treturn language;\n}", "function ch_site_lang(lng='en') {\n $.getJSON( \"lng/\"+lng+\".json\", function( data ) {\n\n var $lang_tags = $('[data=lng-txt]');\n\n $('[data=lng-txt]').each(function() {\n var lang_content = $.trim($(this).text().toLowerCase());\n $(this).text(data[lng][lang_content]);\n });\n\n $('[data=lng-place]').each(function() {\n var lang_content = $.trim($(this).attr(\"placeholder\").toLowerCase());\n $(this).attr(\"placeholder\", data[lng][lang_content]);\n });\n\n });\n}", "onWordSelect(word) {\n AppStore.word = word;\n AppStore.translatedWord = AppStore.savedWords[word];\n browserHistory.push('/word');\n }", "function setDbgLang(){\n if(typeof pLang !== 'string' && pLang.length > 2){\n return '';\n }\n Set('parLang',pLang);\n }", "function translation(word) {\n translationDiv.innerHTML = word\n}", "function GenLanguageDef(){}", "function openFunction() {\n\tlng = navigator.language;\n\tconsole.log(\"page language:\", lng);\n\tif (lng == \"pt-BR\") {\n\t\tswitchPt();\n\t}\n}", "function changeCurrentLanguage() {\n $cookies.put('language', vm.currentLanguage, {expires: new Date().addHours(1)});\n $translate.use(vm.currentLanguage);\n }", "set_language(new_lang) {\n new_lang = new_lang.toLowerCase()\n valid = [\"de-ch\", \"en-gb\", \"fr-fr\", \"es-es\", \"tr-tr\"];\n if (valid.includes(new_lang)) {\n this.lang = new_lang;\n return true;\n } else {\n return false;\n }\n }", "function languageChecks(name) {\n if (language === '1') {\n prompt(jsonMessages['English'][name]);\n } else if (language === '2') {\n prompt(jsonMessages['Spanish'][name]);\n }\n}", "function changeLanguage(currentLang) {\n state.currentLang = currentLang;\n setTabToContent();\n\n // replace brackets with hidden span tags and store lang tags in state\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 \" <span style='display:none;'>\",\n );\n this.innerHTML = this.innerHTML.replace(']', '</span>');\n });\n }\n }\n replaceLanguageLabels();\n\n // TODO: refactor into a function, evaluate performance\n let labelList = state.languageLabels;\n for (let label of labelList) {\n if (label.querySelector) {\n let languageTag = label.querySelector('span').innerText;\n // 'rah-static rah-static--height-auto c-sf-block__content' is the classList associated with\n // react-streamfields. If the element is not in the streamfield div, then we need to access\n // its grandparent and hide that. If it is in the streamfield div, we hide its parent.\n // if the classlist changes, or other fields are nested in different ways, there is the\n // potential for regressions\n if (\n label.parentElement.parentElement.parentElement.classList\n .value !== 'rah-static rah-static--height-auto c-sf-block__content'\n ) {\n const translatedElement = label.parentElement.parentElement;\n if (languageTag != null && languageTag != currentLang) {\n translatedElement.classList.add('hidden');\n } else {\n translatedElement.classList.remove('hidden');\n }\n /*\n While the first condition checks for 'struct-blocks' with language tags,\n it doesn't catch the case where there are 'struct-blocks' with language\n tags WITHIN the element itself. The following condition checks for those conditions.\n - This is not currently being used for streamfields, but could be used again\n if we decide to hide different fields */\n// if (translatedElement.classList.contains('struct-block')) {\n// const fieldlabels = translatedElement.querySelectorAll('[for]');\n// fieldlabels.forEach(fieldlabel => {\n// const attrFor = fieldlabel.getAttribute('for').split('_');\n// fieldlabel.parentNode.classList.remove('hidden');\n// // Adding a failsafe to make sure we don't remove non translated fields\n// const attrLang = attrFor[attrFor.length - 1];\n// if (['en', 'es', 'vi', 'ar'].includes(attrLang)) {\n// if (attrLang !== currentLang) {\n// fieldlabel.parentNode.classList.add('hidden');\n// translatedElement.classList.remove('hidden'); // only re-reveal the parent class if we find this case.\n// }\n// }\n// });\n// }\n } else {\n const translatedElement = label.parentElement;\n if (languageTag != null && languageTag != currentLang) {\n translatedElement.classList.add('hidden');\n } else {\n translatedElement.classList.remove('hidden');\n }\n }\n }\n }\n\n // ----\n // Switch the language for janisPreviewUrl in state\n // ----\n const janisPreviewUrl = getPreviewUrl(currentLang);\n state.janisPreviewUrl = janisPreviewUrl;\n\n const mobilePreviewSidebarButton = $('#mobile-preview-sidebar-button');\n const sharePreviewUrl = $('#share-preview-url');\n\n // Update link for \"Mobile Preview\" button on sidebar\n mobilePreviewSidebarButton.attr('href', janisPreviewUrl);\n sharePreviewUrl.text(janisPreviewUrl);\n\n // force reload of Mobile Preview iframe if its already open\n if (\n _.includes(\n mobilePreviewSidebarButton[0].classList,\n 'coa-sidebar-button--active',\n )\n ) {\n $('#mobile-preview-iframe').attr('src', janisPreviewUrl);\n }\n }", "function languageChoice() {\n prompt(\"which languages would you prefer?\\n1) English 2) Española\");\n language = readline.question();\n if (!'12'.includes(language)) {\n languageChoice();\n }\n}", "setLanguage(language = 'en') {\n get(this, '_elevio').lang = language;\n }", "function languageSelect(l){\n var locale = l10n[l.getAttribute('data-locale')];\n document.getElementById('dropButton').innerHTML = l.innerHTML + \" ▾\"; // set the button text to the selected option\n document.getElementById('translatorCredit').innerHTML = locale.translator ? locale.translator : l10n['en'].translator;\n document.getElementById('standardDescription').innerHTML = locale.standard ? locale.standard : l10n['en'].standard;\n document.getElementById('uniqueDescription').innerHTML = locale.unique ? locale.unique : l10n['en'].unique;\n document.getElementById('curatorString').innerHTML = locale.curators ? locale.curators : l10n['en'].curators;\n}", "function SP_SetLanguage(sKey)\n{\n\tlanguageSelect = sKey;\n}" ]
[ "0.7148451", "0.68377733", "0.6835672", "0.6736805", "0.670282", "0.66835505", "0.65934473", "0.6586981", "0.6477629", "0.64731365", "0.64653915", "0.64454484", "0.64031863", "0.63860494", "0.63707656", "0.6362499", "0.6357453", "0.6346612", "0.63309205", "0.63240415", "0.63034075", "0.6300135", "0.6270157", "0.62518275", "0.62441206", "0.6242048", "0.62027323", "0.62002873", "0.6187634", "0.61876035", "0.6185625", "0.61847615", "0.61539793", "0.61491627", "0.61456305", "0.6123745", "0.6122218", "0.61085415", "0.61085415", "0.61085415", "0.60832334", "0.6078813", "0.60780555", "0.60681933", "0.6065252", "0.5999337", "0.59991056", "0.5993935", "0.5991289", "0.59889567", "0.59812456", "0.59806085", "0.5976855", "0.5948753", "0.59412676", "0.59193635", "0.59162945", "0.58987427", "0.58969665", "0.58931816", "0.58910424", "0.5875633", "0.58719397", "0.5871903", "0.5865834", "0.58465433", "0.5846392", "0.58415216", "0.5828794", "0.58282673", "0.5824506", "0.5824282", "0.58227205", "0.58184534", "0.5814218", "0.5811314", "0.5803248", "0.579645", "0.5794021", "0.57869226", "0.5783198", "0.5776323", "0.5768472", "0.5767917", "0.5749331", "0.5741917", "0.57359284", "0.5734068", "0.57189995", "0.5718806", "0.571461", "0.57142895", "0.57135016", "0.5711357", "0.57085013", "0.570727", "0.57058984", "0.5702679", "0.5690335", "0.56898105" ]
0.6450211
11
turns mcoking off and resets mocks
off() { this.mocking = false; this.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "reset(){\n this.enable();\n this.init();\n this.buildAll();\n }", "setMotorOff () {\n this._parent._send('motorOff', {motorIndex: this._index});\n this._isOn = false;\n }", "function reset() {\n capsLockOn = null;\n }", "function resetWatch() {\n resetDown();\n resetUp();\n}", "reset() {\n this.playerContainer.players.forEach(x => x.clearHand())\n this.winner = undefined;\n this.incrementState();\n this.clearSpread();\n this.deck = new Deck();\n this.clearPot();\n this.clearFolded();\n }", "_reset()\n {\n this.stopped = false;\n this.currentTarget = null;\n this.target = null;\n }", "async reset() {\n if (!testInternal.initialized)\n throw new Error('Call initialize() before reset().');\n testInternal.sensorProvider.reset();\n testInternal.sensorProvider = null;\n testInternal.initialized = false;\n\n // Wait for an event loop iteration to let any pending mojo commands in\n // the sensor provider finish.\n await new Promise(resolve => setTimeout(resolve, 0));\n }", "function reset () {\n noty.clear();\n resetTimeout();\n }", "function reset() {\n state.moves = [];\n state.turnCount = 0;\n state.playbackSpeed = 700;\n chooseMove();\n }", "function reset() {\n stop();\n pauseTimePassed = 0;\n functionsToCallOnReset.forEach(f => f());\n }", "Reset () {\n this.reset = true\n }", "reset() {\n if (this.sensor_reading_timer_id_) {\n window.clearTimeout(this.sensor_reading_timer_id_);\n this.sensor_reading_timer_id_ = null;\n }\n\n this.start_should_fail_ = false;\n this.update_reading_function_ = null;\n this.active_sensor_configurations_ = [];\n this.suspend_called_ = null;\n this.resume_called_ = null;\n this.add_configuration_called_ = null;\n this.remove_configuration_called_ = null;\n this.resetBuffer();\n core.unmapBuffer(this.buffer_array_);\n this.buffer_array_ = null;\n bindings.StubBindings(this.stub_).close();\n }", "turnOff() {\r\n return this.operatePlug({ onOff: false });\r\n }", "function reset() {\n getService().reset();\n}", "_turnOff() {\n this.log.error('Rumble: Implement me: ' + this._turnOff().name);\n }", "off() {\n\t\tthis._lamps.off();\n\t}", "void turnOff() {\r\n isOn = false;\r\n System.out.println(\"Light on? \" + isOn);\r\n }", "function gameReset() {\n\n walkInside = false;\n isOutside = true;\n\n victim.dead = false;\n victim.detection = false;\n\n player.inside = false;\n player.x = 1760;\n player.y = 1700;\n\n floorplan.upstairs = false;\n floorplan.outside = true;\n\n killCount = 0;\n\n victimSpawn();\n\n}", "reset() {\n let that = this;\n this.matched.forEach((card) => {card.flip()});\n this.clicked.forEach((card) => {card.flip()});\n this.matched = [];\n this.clicked = [];\n setTimeout(function () {that.start();}, 500);\n }", "resetSkier () {\n \n this.isJumping =false;\n this.setDirection(this.direction);\n }", "function handleReset(click) {\n turnCount = 0;\n init();\n}", "_reset() {\n\n this.enemiesCurrentlyOnscreen = 0;\n this.enemiesLeftToSpawn = this.enemyList.total;\n this.spawnTimer = this.startWait;\n\n }", "function reset()\n{\n\tneedsReset = 1;\n\t\n\t/*\n\tpost(\"Setting needsReset\");\n\tpost();\n\t*/\n}", "reset() {\n this.setIrqMask(0);\n this.setNmiMask(0);\n this.resetCassette();\n this.keyboard.clearKeyboard();\n this.setTimerInterrupt(false);\n this.z80.reset();\n }", "_reset() {\n this.instance = null;\n }", "function reset() { }", "reset () {\n this._ports = [];\n this._motors = [];\n this._sensors = {\n tiltX: 0,\n tiltY: 0,\n color: BoostColor.NONE,\n previousColor: BoostColor.NONE\n };\n\n if (this._pingDeviceId) {\n window.clearInterval(this._pingDeviceId);\n this._pingDeviceId = null;\n }\n }", "resetCastle(){\n this.health = this.maxHealth;\n }", "reset() {\n this.stop();\n this.player.reset();\n this.fireEvent('unloaded', []);\n }", "reset() {\n if (!this._running) {\n this._currentState = undefined;\n }\n }", "function reset() {\r\n // noop\r\n }", "function reset() {\n var service = getService();\n service.reset();\n}", "function reset() {\n var service = getService();\n service.reset();\n}", "function reset() {\n var service = getService();\n service.reset();\n}", "reset() {\n this.completed = false;\n this.pieceDropped = null;\n this.pieceDroppedInto = null;\n this.refresh();\n //@ts-ignore\n if (!this.puzzle.options.disabled) {\n this.enable();\n }\n }", "function turnOff() {\n Simon.resetStep();\n if (Simon.strictMode) {\n toggleStrict();\n }\n Simon.pattern = [];\n updateScore('&nbsp;');\n $buttons.prop('disabled', true);\n }", "function resetStubs() {\n contextMock.get.reset();\n loggerMock.warn.resetHistory();\n loggerMock.error.resetHistory();\n}", "function stop() {\n if (resetSpies != null) {\n resetSpies();\n }\n}", "function reset() {\n getService_().reset();\n}", "function reset() {\n getService_().reset();\n}", "reset() {\n for (const sensor of this.activeSensors_.values()) {\n sensor.reset();\n }\n this.activeSensors_.clear();\n this.resolveFuncs_.clear();\n this.getSensorShouldFail_.clear();\n this.permissionsDenied_.clear();\n this.maxFrequency_ = 60;\n this.minFrequency_ = 1;\n this.receiver_.$.close();\n this.interceptor_.stop();\n }", "Reset() {}", "reset(){\n this.isFiring = false;\n this.y = 431;\n }", "reset() {\r\n this.currentState = this.config.initial;\r\n }", "reset() {\n this.yPos = this.groundYPos;\n this.jumpVelocity = 0;\n this.jumping = false;\n this.ducking = false;\n this.update(0, Trex.status.RUNNING);\n this.midair = false;\n this.speedDrop = false;\n this.jumpCount = 0;\n this.crashed = false;\n }", "reset() {\n this.isFiring = false;\n this.y = 431;\n }", "function reset() {\n // noop\n }", "function reset() {\n message(\"doorbot ready\");\n buzzer.setVolume(0.5);\n\n // we call #stopSound twice because otherwise buzzer may not actually stop\n buzzer.stopSound();\n buzzer.stopSound();\n}", "reset() {}", "reset() {}", "reset() {}", "function resetGame() {\n resetTimer();\n resetMoves();\n resetStars();\n shuffleDeck();\n resetCards();\n}", "reset() {\n this.MQTTClient = null;\n this.MQTTMessageRecvCallback = null;\n }", "function resetSettings()\n {\n my.settings.unit = my.UNIT.MAIN\n }", "function resetGame() {\n\tcurrentMap = 0;\n\tbrokenBricks = 0;\n\tmapComplete = false;\n\tgameOver = false;\n\tlivesRemaining = 5;\n\tresetBall();\n\tresetPaddle();\n\t// Reset all bricks\n\tfor (var i = 0; i < maps.length; i++) {\n\t\tfor (var j = 0; j < maps[i].bricks.length; j++) {\n\t\t\tmaps[i].bricks[j].hits = 0;\n\t\t}\n\t}\n}", "function resetGame() {\n\tresetClockAndTime();\n\tresetMoves();\n\tresetStars();\n\tshuffleDeck();\n\tresetCards();\n\tmatched = 0;\n\ttoggledCards = [];\n}", "reset() {\n this.unbind();\n }", "reset() {\r\n this.prevState=this.currentState;\r\n this.currentState = this.config.initial;\r\n }", "function reset() {\n\n // Reset the variable storing the current time remaining to its initial value\n _timeRemaining = _timeTotal;\n _hasPlayerMoved = false;\n\n // Release the player's character if it has been frozen in place\n unfreezePlayer();\n\n // Inform other code modules to reset themselves to their initial conditions\n Frogger.observer.publish(\"reset\");\n }", "reset() {\n this.init();\n }", "function __camAiPowerReset()\n{\n\tfor (var i = 1; i < CAM_MAX_PLAYERS; ++i)\n\t{\n\t\tsetPower(AI_POWER, i);\n\t}\n}", "reset() {\r\n this.activeState = this.config.initial;\r\n }", "function reset() {\n gameState = PLAY\n \n bike1.addImage( bike1Img);\n\n c1G.destroyEach();\n c2G.destroyEach();\n c3G.destroyEach();\n \n distance=0\n}", "reset() {\n\t\tfor (let i = 0; i < this.tiles.length; i++) {\n\t\t\tthis.tiles[i].unsetPiece();\n\t\t}\n\t\tfor (let i = 0; i < this.whitePieces.length; i++) {\n\t\t\tthis.whitePieces[i].unsetTile();\n\t\t\tthis.whitePieces[i].animation = null;\n\t\t\tthis.blackPieces[i].unsetTile();\n\t\t\tthis.blackPieces[i].animation = null;\n\t\t}\n\t}", "function reset() {\n\n }", "reset() {\n // do nothing\n }", "reset() {\n this.health = 100;\n this.energy = 100;\n }", "reset() {\n this.timer = 500;\n this.interval = 0;\n }", "reset () {\n this.chessGame.reset()\n this.syncBoard()\n }", "function resetDevice()\n{\n sendMidi(0xB0, 0, 0);\n\n for(var i=0; i<80; i++)\n {\n pendingLEDs[i] = 0;\n }\n flushLEDs();\n}", "function resetAll() {\n playerMoney = 1000;\n winnings = 0;\n jackpot = 5000;\n turn = 0;\n playerBet = 5;\n maxBet = 20;\n winNumber = 0;\n lossNumber = 0;\n winRatio = false;\n\n resetText();\n\n setEnableSpin();\n}", "resetGame() {\n this.winner = null;\n this.grid.resetGrid();\n }", "function clickOff() {\n openedCards.forEach(function(card) {\n card.off('click');\n });\n}", "reset() {\r\n this.state = this.config.initial;\r\n }", "function reset() {\n time = 120;\n gameRun = false;\n }", "function resetCars() {\n carLot.resetBorders();\n inventory.forEach(car => car.editMode = false);\n }", "function reset()\n {\n gameInfo.playerJedi = null;\n init();\n //reinitialize all the jedis to their initial state\n for(let i of gameInfo.jediList.values())\n {\n i.reInit();\n }\n gameInfo.gameState = \"pickChar\";\n }", "_reset_poke() {\n\t\tthis.level = 1\n\t\tthis.moves = []\n\t}", "reset() {\r\n this.state = this.config.initial;\r\n }", "reset(){\n this.stop()\n this.setState({clock: 0})\n }", "function C012_AfterClass_Bed_StopMasturbate() {\n\tC012_AfterClass_Bed_PleasureUp = 0;\n\tC012_AfterClass_Bed_PleasureDown = 0;\n}", "reset() {\n if (this.active_sensor_ != null) {\n this.active_sensor_.reset();\n this.active_sensor_ = null;\n }\n\n this.get_sensor_should_fail_ = false;\n this.resolve_func_ = null;\n this.max_frequency_ = 60;\n }", "function reset() {\n setSeconds(0);\n setIsActive(false);\n }", "Reset() {\n\n }", "function reset() {\n //Reset the game\n channelResetGame();\n }", "async function off() {\n click();\n power(false);\n\n clear();\n await pause(2);\n return new Promise(async (resolve) => {\n // Logo\n let screen = await showTemplateScreen(\"logo\");\n\n await waitForKey();\n power(true);\n screen.remove();\n\n boot();\n resolve();\n });\n}", "function reset() {\n\tupdateWins();\n\tremaining();\n\tanswer();\n}", "function resetBlinkingLed(){\n if (ledBlinking) {\n led.stop();\n ledBlinking = false;\n }\n }", "function reset() {\n\t$snake.off(\"keydown\");\n\tdeleteSnake();\n\t\n\tmakeSnake();\n\tupdateScores();\n\tassignKeys();\n\tplayGame();\n}", "function resetGame() {\n clearGameCards();\n resetMoves();\n resetTimer();\n}", "function reactionReset () {\n setButton2State(0); // Zustand des Schaltknopfs Start/Pause/Weiter\n enableInput(true); // Eingabefelder aktivieren\n t = 0; // Zeitvariable zurücksetzen\n on = false; // Animation abgeschaltet\n slow = cbSlow.checked; // Flag für Zeitlupe\n reaction(true); // Eingegebene Werte übernehmen, rechnen, Ausgabe aktualisieren\n }", "reset() {\n show(cacheDOM.setButton);\n hide(cacheDOM.setDisplay, cacheDOM.snoozeButton, cacheDOM.stopButton);\n this.alarm.hours = 0;\n this.alarm.minutes = 0;\n this.alarm.isSet = false;\n }", "switchOff() {\n this.setState({\n color : \"grey\",\n toggler : null,\n active : false,\n iAmWinner : this.iAmWinner\n })\n //this.toggle_flag = false;\n }", "reset() {\n if (this.props.isPlaying || this.props.isStop) { // only reset if playing or resume\n\n this.props.setIsPlaying(false);\n this.props.setIsStop(false);\n this.props.setPlayType('session');\n this.props.setTimer({\n minutes: this.props.session_length,\n seconds: 0,\n percentage: 0\n });\n\n window.clearInterval(this.timerRef);\n }\n }", "reset() {\n this.init();\n }", "function reset() {\n generateBlocks();\n active = false;\n changeSpeed(speed_modes.NORMAL);\n}", "reset() {\n this.timer = 5000;\n this.interval = 0;\n }", "reset (){\n const el = this.controls.querySelector('[data-timer-action=toggle]');\n\n el.removeAttribute('disabled');\n }", "function reset(){\n setup();\n}", "setup() {\n this.enqueueTearDownTask(() => this.clearStubs())\n }" ]
[ "0.66187733", "0.6540692", "0.6463519", "0.6429335", "0.6376521", "0.63013595", "0.62871045", "0.6257249", "0.6227747", "0.6189839", "0.6173765", "0.6130498", "0.6126883", "0.6123331", "0.61067927", "0.61061543", "0.60834837", "0.6061484", "0.6028081", "0.60145617", "0.60098046", "0.60046756", "0.6000004", "0.59999746", "0.5993055", "0.5987851", "0.5986256", "0.59792805", "0.5977848", "0.59637994", "0.5959805", "0.59571594", "0.59571594", "0.59571594", "0.594722", "0.59440464", "0.5938577", "0.59282154", "0.5927099", "0.5927099", "0.5925998", "0.5919893", "0.59182805", "0.58973086", "0.58949876", "0.5892668", "0.5885981", "0.5885497", "0.5883134", "0.5883134", "0.5883134", "0.5872253", "0.5864275", "0.58616394", "0.5858138", "0.5850943", "0.5837069", "0.5832018", "0.58277744", "0.58241636", "0.58144695", "0.5811228", "0.5810939", "0.58073175", "0.57970613", "0.57923275", "0.57881516", "0.578034", "0.5774572", "0.57698345", "0.576929", "0.57660216", "0.5758491", "0.5756042", "0.57547015", "0.5752131", "0.5752064", "0.57506883", "0.57462484", "0.5744582", "0.57440895", "0.5742927", "0.5739302", "0.5735691", "0.57333136", "0.5731584", "0.572762", "0.5718612", "0.571343", "0.5706636", "0.5703993", "0.56996274", "0.56943923", "0.56931514", "0.56908226", "0.5690557", "0.5690349", "0.56874335", "0.56869155", "0.56790227" ]
0.803098
0
returns an array of mocks not called
validate() { let notCalled = []; Object.getOwnPropertyNames(this.mocks).forEach(url => { Object.getOwnPropertyNames(this.mocks[url]).forEach(method => { if (!(url in this.run) || !(method in this.run[url])) { this.mocks[url][method].forEach(payload => notCalled.push({ url, method, payload })); } else if (this.mocks[url][method].length > this.run[url][method]) { for (let i = this.run[url][method]; i < this.mocks[url][method].length; i++) { notCalled.push({ url, method, payload: this.mocks[url][method][i] }); } } }); }); return notCalled; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMockPromises() {\n var responses = Array.prototype.slice.call(arguments);\n var calls = 0;\n return function() {\n return responses[calls++];\n };\n }", "function getMockDependencies() {\n MOCKS.navigateToNextstate = function(){\n return 'navigateToNextstateSuccess'\n };\n MOCKS.navigateToProcessedState = function(){\n return 'navigateToProcessedStateSuccess'\n };\n MOCKS.getNextItemOnReasonSelection = function(){\n return 'getNextItemOnReasonSelectionSuccess'\n };\n MOCKS.orderPageOnReasonSelection = function(){\n return 'orderPageOnReasonSelectionSuccess'\n };\n MOCKS.redirectToCartOnReasonSelection = function(){\n return 'redirectToCartOnReasonSelectionSuccess'\n };\n\n MOCKS.RETURN_EXCHANGE_CONSTS ={\n RETURN_ELIGIBLE: 'returnEligible',\n EXCHANGE_ELIGIBLE: 'remorseExchangeEligible',\n RETURN_FLAG: 'returnFlag',\n EXCHANGE_FLAG: 'exchangeFlag',\n CANCELLED_STATUS: 'Cancelled',\n PARENT_STATE: 'returnWarrantyExchange',\n ORDER_FORM: '.order',\n PROCESSED_ARRAY: 'processedArray',\n POST_VOID_LABEL :'PostVoid',\n CANCEL:'Cancel',\n MY_ACCOUNT : 'myAccount',\n PRINT_SHIPPING : 'shippingLabel',\n EXCHANGE : 'Exchange',\n DEVICE_TYPE_PHONE: 'phone',\n TABLET : 'tablet'\n };\n\n MOCKS.facadeApiFactory = {\n getRequest : function() { var defer = $q.defer(); defer.resolve(); return defer.promise; },\n postRequest : sinon.stub(),\n getRequestWithQueryOptions : sinon.stub()\n };\n MOCKS.returnFormDataService = {\n createCart : sinon.stub()\n };\n\n MOCKS.returnExchangeService ={\n getFromSession : sinon.stub(),\n isAllEnabled : function(data){\n return true;\n },\n setInSession : sinon.stub()\n };\n MOCKS.returnExchangeChangeService ={\n persistState : function(data){\n return data;\n },\n restoreCheck : function(data){\n return data;\n },\n restoreApprovedItems : function(data){\n return data;\n },\n restoreAssessedItems : function(data){\n return data;\n },\n restoreReturnExchangeCheck : function(data){\n return data;\n }\n };\n MOCKS.returnExchangeHelperService ={\n checkItems : function(data){\n return data;\n },\n populateParentId : function(data){\n return data;\n },\n getWarrantyStatus : sinon.stub(),\n setGrandCentralIneligibilityResultFlag : sinon.stub(),\n getResponseData : sinon.stub()\n };\n MOCKS.ENV = {\n 'apigeeRoot': 'http://rebelliondev-dev01.apigee.net/'\n };\n MOCKS.SessionService = {\n data : {'authlogindata' : {'customerId' : '12345', 'accountId' : '123123' }},\n get : function(key) {\n return this.data[key];\n }\n };\n MOCKS.FACADE_API_ENDPOINTS={\n API_347_getPrintReceipt: 'v1/utility/printReceipt?orderId={orderId}'\n };\n MOCKS.ChannelConfigService = {\n channel : 'Retail',\n setDefaults : sinon.stub()\n };\n MOCKS.commonUtils = {\n nullable : sinon.stub()\n };\n MOCKS.SOFTGOODS_CONSTANTS ={\n REQUEST_TYPE_RETURN_EXCHANGE : 'returnExchange'\n };\n MOCKS.cartService = {\n getCartRequest : function() { var defer = $q.defer(); defer.resolve(); return defer.promise; },\n postCartDetails : sinon.stub\n };\n\n\n}", "function fooBarTestIgnored() {\n\treturn [1, 2, 3];\n}", "function getMocks () {\n const osMock = {\n platform: sinon.stub().returns('linux')\n };\n const pathMock = {\n join: sinon.stub().returnsArg(1)\n };\n\n const envMock = {\n HOME: '~',\n SHELL: '/zsh'\n };\n const processMock = {\n env: envMock\n };\n\n const loglevelMock = {\n info: sinon.stub(),\n error: sinon.stub(),\n debug: sinon.stub()\n };\n const loggingHelpersMock = {\n getLoggerInstance: sinon.stub().returns(loglevelMock)\n };\n\n const unixHelpersMock = {\n isGcloudInstalled: sinon.stub(),\n getShellType: sinon.stub()\n };\n const childProcessMock = {\n execSync: sinon.stub()\n };\n\n return {\n os: osMock,\n path: pathMock,\n process: processMock,\n loglevel: loglevelMock,\n unixHelpers: unixHelpersMock,\n './helpers-unix': unixHelpersMock,\n childProcess: childProcessMock,\n 'child_process': childProcessMock,\n loggingHelpers: loggingHelpersMock,\n './helpers-logging': loggingHelpersMock\n };\n}", "getExpectations(testId) {\n const expectations = this.tests[testId];\n let result = null;\n if (expectations) {\n result = [];\n for (const expect of expectations) {\n result = result.concat(expect.getAll());\n }\n }\n\n return result;\n }", "function mockDeps() {\n return {\n fs: {\n isFile: this.sinon.stub().resolves(true),\n exists: this.sinon.stub().resolves(false),\n extension: this.sinon.stub().returns('.txt'),\n rename: this.sinon.stub().resolves()\n },\n rs: {\n generate: this.sinon.stub().returns('cba')\n }\n };\n}", "check() {\n const proxies = this.proxies();\n\n return Promise.all(createRequests(proxies, this.target)).then(results => {\n const dead = results\n .filter(p => !this._response(p.err, p.proxy, p.res, p.body))\n .map(p => p.proxy);\n\n if (dead.length === 0) return [];\n // drop them from listeners\n this.listeners.forEach(listener => {\n listener.remove(dead);\n });\n\n return dead;\n });\n }", "get unusedCheckers() {\n return this.checkers.filter(checker => !checker.dropped);\n }", "toHaveHadCalls() {\n expect(this.actual.calls.map(call => call.arguments)).toEqual(Array.from(arguments));\n return this;\n }", "static getAllTests() {\n return [\n CalculatorTest.test01,\n CalculatorTest.test02,\n CalculatorTest.test03,\n CalculatorTest.test04,\n CalculatorTest.test05,\n CalculatorTest.test06,\n CalculatorTest.test07,\n CalculatorTest.test08,\n CalculatorTest.test09\n ];\n }", "function resetStubs() {\n loggerMock.warn.resetHistory();\n loggerMock.error.resetHistory();\n}", "function resetStubs() {\n loggerMock.warn.resetHistory();\n loggerMock.error.resetHistory();\n}", "function resetStubs() {\n loggerMock.warn.resetHistory();\n loggerMock.error.resetHistory();\n}", "function resetStubs() {\n loggerMock.warn.resetHistory();\n loggerMock.error.resetHistory();\n}", "function getRequiredMock(name) {\n switch (name) {\n case \"Categorias\":\n return getCategoriasMock()\n case \"Menus\":\n return getMenuMock()\n case \"Servicios\":\n return getServiciosMock()\n }\n\n }", "function resetStubs() {\n contextMock.get.reset();\n loggerMock.warn.resetHistory();\n loggerMock.error.resetHistory();\n}", "function patchMochaInstances () {\n const suffix = path.sep + path.join('mocha','index.js');\n const children = require.cache || {};\n\n return Object.keys(children)\n .filter(child => child.endsWith(suffix))\n .map(child => children[child].exports)\n .forEach(fewMocha);\n}", "function fakeUsage() {\n var fakeObj = fake('example');\n fakeObj.mock('foo').map([], 'bar');\n fakeObj.foo();\n }", "_getMocks() {\n try {\n if (this._container instanceof Object && this._categories.criteria === 'mock') {\n const { validator } = this._container.cradle;\n const { _, dbSchema, locale, LoremIpsum } = this._container.cradle;\n const { column } = dbSchema.timeline.category;\n\n if (validator.env.local && !this._categories.ids) {\n this._mocks.rows = [];\n const value = current => {\n let rows = {};\n\n switch (current) {\n case column.name: {\n Object.values(locale).forEach(\n current => (rows[current] = LoremIpsum.generateSentences(1)),\n );\n return _.size(rows) > 0 ? JSON.stringify(rows) : false;\n }\n case column.description: {\n Object.values(locale).forEach(\n current => (rows[current] = LoremIpsum.generateSentences(3)),\n );\n return _.size(rows) > 0 ? JSON.stringify(rows) : false;\n }\n default: {\n return false;\n }\n }\n };\n\n while (this._mocks.count >= 1) {\n this._mocks.rows.push({\n [column.active]: true,\n [column.name]: value(column.name),\n [column.description]: value(column.description),\n });\n this._mocks.count -= 1;\n }\n return _.size(this._mocks.rows) > 0 ? true : false;\n }\n }\n } catch (error) {\n console.error('Category mocks provider', error);\n }\n return false;\n }", "off() {\n this.mocking = false;\n this.clear();\n }", "function test$(arrayToTest) {\n if (arrayToTest.length === 0) {\n console.log(\"Your jQuery selector selected nothing! Check that you spelled the selector string properly.\");\n console.log(arrayToTest);\n return arrayToTest;\n } else {\n return arrayToTest;\n }\n}", "getNonMethodPatchers(initialDeleteStart) {\n let nonMethodPatchers = [];\n let deleteStart = initialDeleteStart;\n for (let patcher of this.body.statements) {\n if (!this.isClassMethod(patcher)) {\n nonMethodPatchers.push({\n patcher,\n deleteStart,\n });\n }\n deleteStart = patcher.outerEnd;\n }\n return nonMethodPatchers;\n }", "function doNotMock(id) {\n explicitMockMap[id] = false;\n\n var entry = exportsRegistry[id];\n if (entry && entry.module && entry.actual) {\n entry.module.exports = entry.actual;\n }\n\n return exports;\n}", "static allChecks() {\n return [];\n }", "function wrapperCallbacksFakeArrayResetHistory() {\n Object.keys(wrapperCallbacksFakeArray).forEach((key) =>\n wrapperCallbacksFakeArray[key].forEach((func) => func.resetHistory()),\n );\n }", "function mockModules(moduleMap) {\n\tif (typeof moduleMap !== 'object') {\n\t\tthrow new Error(`mockModules must be given an object as the first parameter, where the object keys are module names and the values are the mocked values`);\n\t}\n\n\tfor (let moduleName in moduleMap) {\n\t\tif (typeof moduleMap[moduleName] !== 'object') {\n\t\t\tthrow new Error(`Cannot mock '${moduleName}' -- value to mock with is not an object`);\n\t\t}\n\n\t\t/* helperPromises is defined in ./node-jspm-jasmine.js. The tests will not\n\t\t * run until all helperPromises have been resolved or rejected.\n\t\t */\n\t\tglobal\n\t\t.helperPromises\n\t\t.push(\n\t\t\tSystemJS\n\t\t\t.normalize(moduleName)\n\t\t\t.then(normalized => {\n\t\t\t\tif (SystemJS.has(normalized)) {\n\t\t\t\t\tSystemJS.delete(normalized);\n\t\t\t\t}\n\n\t\t\t\tSystemJS\n\t\t\t\t.register(normalized, [], (_export, _context) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tsetters: [],\n\t\t\t\t\t\texecute() {\n\t\t\t\t\t\t\tfor (let exportName in moduleMap[moduleName]) {\n\t\t\t\t\t\t\t\t// if exportName is default, export it as default\n\t\t\t\t\t\t\t\t_export(exportName, moduleMap[moduleName][exportName]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t})\n\t\t);\n\t}\n}", "expectAllConsumed() {\n return this.getTest().then((result) => {\n result.expectations.forEach((expectation) => {\n if (expectation.repeat !== -1 && expectation.requestCount < expectation.repeat) {\n throw new Error(`Expected url ${expectation.request.url} to be called `\n + `${expectation.repeat} times but was called ${expectation.requestCount} times`);\n }\n });\n });\n }", "function jum_just_test_functions(func_names, re) {\n\n var test_func_names = [];\n var all_names = [];\n for(var i=0;i<func_names.length;++i) {\n var funcname = func_names[i];\n //jum_debug(\"checking symbol '\" + funcname + \"', number \" + i);\n all_count++;\n all_names.push(funcname);\n\n if (jum_is_test_function(funcname, re)) {\n test_func_names.push(funcname);\n }\n }\n var test_count = test_func_names.length;\n var all_count = all_names.length;\n //jum.info(\"(jsunit_wrap.js) found \" + all_count + \" symbols, and \" + test_count + \" tests\");\n // bu_alert(\"(jsunit_wrap.js) all symbols: \" + all_names.join(' '));\n return test_func_names;\n}", "function resetTestResults() {\n testResults = [];\n $.each(tests, function(i) {\n testResults.push(null);\n });\n\n assert(testResults.length > 0);\n assert(testResults.length == tests.length);\n}", "function validate() {\n buildRegexp()\n\n var missing = []\n\n testQueue.forEach(function (test) {\n test.steps.forEach(function (step) {\n\n var stepData = stepTable[step]\n if (!stepData || typeof stepData.test !== \"function\") {\n missing.push(step)\n }\n })\n })\n\n return missing\n }", "function expectNotStart (restart) {\n\n if (!restart) {\n expect(Config.default.getBaseParams()).toEqual({})\n expect(Config.default.getCustomConfig()).toEqual({})\n }\n\n expect(Listeners.register).not.toHaveBeenCalled()\n expect(PubSub.subscribe).not.toHaveBeenCalled()\n expect(Identity.start).not.toHaveBeenCalled()\n expect(GdprForgetDevice.check).not.toHaveBeenCalled()\n expect(Queue.run).not.toHaveBeenCalled()\n expect(Session.watch).not.toHaveBeenCalled()\n expect(sdkClick.default).not.toHaveBeenCalled()\n expect(Scheduler.flush).not.toHaveBeenCalled()\n\n}", "extractHoistedCalls() {\n // We're handling a chain of calls where `jest` may or may not need to be inserted for each call\n // in the chain, so remove the initial `jest` to make the loop implementation cleaner.\n this.tokens.removeToken();\n // Track some state so that multiple non-hoisted chained calls in a row keep their chaining\n // syntax.\n let followsNonHoistedJestCall = false;\n\n // Iterate through all chained calls on the jest object.\n while (this.tokens.matches3(_types.TokenType.dot, _types.TokenType.name, _types.TokenType.parenL)) {\n const methodName = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n const shouldHoist = HOISTED_METHODS.includes(methodName);\n if (shouldHoist) {\n // We've matched e.g. `.mock(...)` or similar call.\n // Replace the initial `.` with `function __jestHoist(){jest.`\n const hoistedFunctionName = this.nameManager.claimFreeName(\"__jestHoist\");\n this.hoistedFunctionNames.push(hoistedFunctionName);\n this.tokens.replaceToken(`function ${hoistedFunctionName}(){${JEST_GLOBAL_NAME}.`);\n this.tokens.copyToken();\n this.tokens.copyToken();\n this.rootTransformer.processBalancedCode();\n this.tokens.copyExpectedToken(_types.TokenType.parenR);\n this.tokens.appendCode(\";}\");\n followsNonHoistedJestCall = false;\n } else {\n // This is a non-hoisted method, so just transform the code as usual.\n if (followsNonHoistedJestCall) {\n // If we didn't hoist the previous call, we can leave the code as-is to chain off of the\n // previous method call. It's important to preserve the code here because we don't know\n // for sure that the method actually returned the jest object for chaining.\n this.tokens.copyToken();\n } else {\n // If we hoisted the previous call, we know it returns the jest object back, so we insert\n // the identifier `jest` to continue the chain.\n this.tokens.replaceToken(`${JEST_GLOBAL_NAME}.`);\n }\n this.tokens.copyToken();\n this.tokens.copyToken();\n this.rootTransformer.processBalancedCode();\n this.tokens.copyExpectedToken(_types.TokenType.parenR);\n followsNonHoistedJestCall = true;\n }\n }\n\n return true;\n }", "checkCheckers() {\n return this.unusedCheckers.length === 0 ? false : true;\n }", "async get_ignore_list(stub) {\n var markets = await this.trade.markets({stub: stub});\n var ignored = await this.config.get(stub + ':ignored');\n ignored = [null, false, ''].includes(ignored) ? [] : ignored.split(\",\");\n if (!this.utils.is_array(ignored)) ignored = [];\n var results = [];\n if (this.utils.is_array(markets)) {\n for(var i=0; i< markets.length; i++) {\n var market = markets[i];\n var symbol = market.symbol;\n var ignore = ignored.includes(symbol);\n results.push({ symbol: symbol, ignored: ignore});\n }\n }\n return results;\n }", "_anyMethodsAreOutstanding() {\n const invokers = this._methodInvokers;\n return keys(invokers).some((id) => {\n return invokers[id].sentMessage;\n });\n }", "function reqNone() {\n return [];\n}", "extractHoistedCalls() {\n // We're handling a chain of calls where `jest` may or may not need to be inserted for each call\n // in the chain, so remove the initial `jest` to make the loop implementation cleaner.\n this.tokens.removeToken();\n // Track some state so that multiple non-hoisted chained calls in a row keep their chaining\n // syntax.\n let followsNonHoistedJestCall = false;\n\n // Iterate through all chained calls on the jest object.\n while (this.tokens.matches3(TokenType.dot, TokenType.name, TokenType.parenL)) {\n const methodName = this.tokens.identifierNameAtIndex(this.tokens.currentIndex() + 1);\n const shouldHoist = HOISTED_METHODS.includes(methodName);\n if (shouldHoist) {\n // We've matched e.g. `.mock(...)` or similar call.\n // Replace the initial `.` with `function __jestHoist(){jest.`\n const hoistedFunctionName = this.nameManager.claimFreeName(\"__jestHoist\");\n this.hoistedFunctionNames.push(hoistedFunctionName);\n this.tokens.replaceToken(`function ${hoistedFunctionName}(){${JEST_GLOBAL_NAME}.`);\n this.tokens.copyToken();\n this.tokens.copyToken();\n this.rootTransformer.processBalancedCode();\n this.tokens.copyExpectedToken(TokenType.parenR);\n this.tokens.appendCode(\";}\");\n followsNonHoistedJestCall = false;\n } else {\n // This is a non-hoisted method, so just transform the code as usual.\n if (followsNonHoistedJestCall) {\n // If we didn't hoist the previous call, we can leave the code as-is to chain off of the\n // previous method call. It's important to preserve the code here because we don't know\n // for sure that the method actually returned the jest object for chaining.\n this.tokens.copyToken();\n } else {\n // If we hoisted the previous call, we know it returns the jest object back, so we insert\n // the identifier `jest` to continue the chain.\n this.tokens.replaceToken(`${JEST_GLOBAL_NAME}.`);\n }\n this.tokens.copyToken();\n this.tokens.copyToken();\n this.rootTransformer.processBalancedCode();\n this.tokens.copyExpectedToken(TokenType.parenR);\n followsNonHoistedJestCall = true;\n }\n }\n\n return true;\n }", "function reqNone () {\n return [];\n}", "function generateMocks(generate){\n\tif(generate){\n\t\tvar appendLogToFile = function(content) {\n\t\t fs.appendFile('./nock/records.js', content);\n\t\t}\n\t\tnock.recorder.rec({\n\t\t logging: appendLogToFile,\n\t\t});\n\t}\n}", "function clearTests() {\n tests = [];\n}", "function fakeMocks(_a) {\n var _b = _a.arrayOfDigits, arrayOfDigits = _b === void 0 ? 7 : _b, _c = _a.arrayOfDoubles, arrayOfDoubles = _c === void 0 ? 7 : _c, _d = _a.arrayOfIntegers, arrayOfIntegers = _d === void 0 ? 7 : _d, _e = _a.arrayOfWords, arrayOfWords = _e === void 0 ? 7 : _e, _f = _a.cardVendor, cardVendor = _f === void 0 ? 'Visa' : _f, customBoolean = _a.customBoolean, customFloat = _a.customFloat, customID = _a.customID, customInt = _a.customInt, customString = _a.customString, _g = _a.dataFormat, dataFormat = _g === void 0 ? 'YYYY-MM-DD' : _g, _h = _a.doubleFrom, doubleFrom = _h === void 0 ? -1000 : _h, _j = _a.doubleTo, doubleTo = _j === void 0 ? 1000 : _j, _k = _a.height, height = _k === void 0 ? '480' : _k, _l = _a.integerFrom, integerFrom = _l === void 0 ? -1000 : _l, _m = _a.integerTo, integerTo = _m === void 0 ? 1000 : _m, _o = _a.length, length = _o === void 0 ? 1 : _o, _p = _a.locale, locale = _p === void 0 ? 'en' : _p, parameters = _a.parameters, _q = _a.randomFrom, randomFrom = _q === void 0 ? 0 : _q, _r = _a.randomTo, randomTo = _r === void 0 ? 1000 : _r, _s = _a.roles, roles = _s === void 0 ? ['user'] : _s, _t = _a.sentences, sentences = _t === void 0 ? 3 : _t, _u = _a.timeFormat, timeFormat = _u === void 0 ? 'HH_:mm_:ss' : _u, _v = _a.width, width = _v === void 0 ? '640' : _v, _w = _a.words, words = _w === void 0 ? 7 : _w, customIntList = _a.customIntList, customFloatList = _a.customFloatList, customStringList = _a.customStringList, customBooleanList = _a.customBooleanList, customIDList = _a.customIDList;\n return __assign({}, address_1.default.mocks({\n locale: locale\n }), card_1.default.mocks({\n cardVendor: cardVendor,\n locale: locale\n }), color_1.default.mocks({\n locale: locale\n }), commerce_1.default.mocks({\n locale: locale\n }), company_1.default.mocks({\n locale: locale\n }), currency_1.default.mocks({\n locale: locale\n }), database_1.default.mocks({\n locale: locale\n }), dateTime_1.default.mocks({\n dataFormat: dataFormat,\n locale: locale,\n timeFormat: timeFormat\n }), dateTime_2.default.mocks({\n locale: locale\n }), hacker_1.default.mocks({\n locale: locale\n }), image_1.default.mocks({\n height: height,\n locale: locale,\n width: width,\n }), internet_1.default.mocks({\n locale: locale\n }), lorem_1.default.mocks({\n arrayOfWords: arrayOfWords,\n locale: locale,\n sentences: sentences,\n words: words,\n }), misc_1.default.mocks({\n locale: locale\n }), numbers_1.default.mocks({\n arrayOfDigits: arrayOfDigits,\n arrayOfDoubles: arrayOfDoubles,\n arrayOfIntegers: arrayOfIntegers,\n doubleFrom: doubleFrom,\n doubleTo: doubleTo,\n integerFrom: integerFrom,\n integerTo: integerTo,\n locale: locale,\n randomFrom: randomFrom,\n randomTo: randomTo\n }), person_1.default.mocks({\n locale: locale\n }), phone_1.default.mocks({\n locale: locale\n }), system_1.default.mocks({\n locale: locale\n }));\n}", "reset() {\n Object.getOwnPropertyNames(this.data)\n .map(modelName => {\n const model = this.data[modelName]\n model.updated = {}\n model.removed = {}\n\n model.mongoose.findOne.restore ? model.mongoose.findOne.restore() : null\n sinon.stub(model.mongoose, 'findOne').callsFake(param => this.getRecord(modelName, param._id, true))\n\n model.mongoose.create.restore ? model.mongoose.create.restore() : null\n sinon.stub(model.mongoose, 'create').callsFake(param => {\n const record = Database.newRecord(model, param)\n model.updated[record.id] = record\n return this.getRecord(modelName, record.id, true)\n })\n\n model.mongoose.find.restore ? model.mongoose.find.restore() : null\n sinon.stub(model.mongoose, 'find').callsFake(() => {\n const records = this.getAllRecords(modelName, true)\n records.sort((a, b) => a.id < b.id)\n return new MockQuery(records)\n })\n })\n }", "function appCallbacksFakeArrayResetHistory() {\n Object.keys(appCallbacksFakeArray).forEach((key) =>\n appCallbacksFakeArray[key].forEach((func) => func.resetHistory()),\n );\n }", "function getMockSports(){\n return _.get(mockResult, 'sports', []);\n}", "function stubRead(modules) {\n readdirSync.resetHistory();\n readdirSync.callsFake(function(path) {\n var module = path.split('./src/modules/')[1];\n return modules.get(module);\n });\n readdirSync.onFirstCall().returns(Array.from(modules.keys()));\n }", "function isAllHooksCalled (type, meta) {}", "function getUserTestGlobs() {\n let userGlobs = process.argv.find(s => s.startsWith(\"watch-only\"));\n return userGlobs ? processUserGlobs(userGlobs) : [];\n}", "get matches() {\n if (this._matches.length) {\n return this._matches;\n }\n return Ember.testing && this._mocked ? [this._mockedBreakpoint] : [];\n }", "beforeAll() {}", "allow() {\n beforeEach(() => throwing = false);\n afterEach(() => throwing = true);\n }", "shouldSkip () {\n const {skema} = this\n\n if (!skema.hasWhen()) {\n return this._shouldSkip()\n }\n\n return skema.when(\n this.args, this.context, this.options)\n .then(hit => {\n if (!hit) {\n // Skip\n return true\n }\n\n return this._shouldSkip()\n })\n }", "function validateInputsMapToCalls(actionsCalled) {\n actionsCalled.forEach(function(action) {\n expect(controller[action].calledOnce).to.be.true;\n });\n\n ACTIONS.forEach(function(action) {\n if (actionsCalled.indexOf(action) > -1) {\n return;\n }\n\n expect(controller[action].calledOnce).to.be.false;\n });\n }", "clearStubs() {\n sinon.restore()\n }", "function HammerManagerMock(m) {\n var instance = {};\n var chainedNoop = function chainedNoop() {\n return instance;\n };\n instance.get = function () {\n return null;\n };\n instance.set = chainedNoop;\n instance.on = chainedNoop;\n instance.off = chainedNoop;\n instance.destroy = chainedNoop;\n instance.emit = chainedNoop;\n return instance;\n}", "function HammerManagerMock(m) {\n var instance = {};\n var chainedNoop = function chainedNoop() {\n return instance;\n };\n instance.get = function () {\n return null;\n };\n instance.set = chainedNoop;\n instance.on = chainedNoop;\n instance.off = chainedNoop;\n instance.destroy = chainedNoop;\n instance.emit = chainedNoop;\n return instance;\n}", "function HammerManagerMock(m) {\n var instance = {};\n var chainedNoop = function chainedNoop() {\n return instance;\n };\n instance.get = function () {\n return null;\n };\n instance.set = chainedNoop;\n instance.on = chainedNoop;\n instance.off = chainedNoop;\n instance.destroy = chainedNoop;\n instance.emit = chainedNoop;\n return instance;\n}", "function waitForMockman(eventType, n) {\n var records = [];\n return Q.Promise(function(resolve) {\n mockman.on(eventType, function(record) {\n records.push(record);\n if(records.length === n) {\n resolve(records);\n }\n });\n });\n }", "function fooBarTest() {\n\treturn [1, 2];\n}", "function coverageFilesForTest() {\n return coverageData;\n}", "getExistingDrivers() {\n return this.drivers_.slice(); // Create a shallow copy\n }", "getAllTodoNotDone() {\n return this.state.todos.filter(todo => !todo.done)\n }", "function ManagerMock(m) {\n var instance = {};\n var chainedNoop = function chainedNoop() {\n return instance;\n };\n instance.get = function () {\n return null;\n };\n instance.on = chainedNoop;\n instance.off = chainedNoop;\n instance.destroy = chainedNoop;\n instance.emit = chainedNoop;\n return instance;\n}", "function requestOwnedGamesMock() {\n\n return {\n hello: 'motto'\n };\n\n }", "ownKeys(trapTarget) {\n return Reflect.ownKeys(trapTarget).filter( key => (key !== 'array' && key !== 'length' && key !== 'checkValidIndex'))\n }", "function Plugins() {\n\n /**\n * Mocked {Plugins#load}.\n */\n this.load = function(done) {\n done();\n };\n\n /**\n * Mocked {Plugins#getAll}.\n */\n this.getAll = function() {\n return [];\n };\n\n /**\n * Mocked {Plugins#get}.\n */\n this.get = function(type) {\n return [];\n };\n}", "getAllTestabilities() {\n return Array.from(this._applications.values());\n }", "getAllTestabilities() {\n return Array.from(this._applications.values());\n }", "getAllTestabilities() {\n return Array.from(this._applications.values());\n }", "getAllTestabilities() {\n return Array.from(this._applications.values());\n }", "getAllTestabilities() {\n return Array.from(this._applications.values());\n }", "getAllTestabilities() {\n return Array.from(this._applications.values());\n }", "getStrategies(...names) {\n return names.map(name => this.strategies[name])\n .filter(current => !!current);\n }", "function exclusionaryTests() {\n\tdanger.git.created_files\n\t\t.filter(filepath => filepath.endsWith('.test.js'))\n\t\t.map(filepath => ({filepath, content: readFile(filepath)}))\n\t\t.filter(\n\t\t\t({content}) =>\n\t\t\t\tcontent.includes('it.only') || content.includes('describe.only'),\n\t\t)\n\t\t.forEach(({filepath}) =>\n\t\t\twarn(\n\t\t\t\t`An <code>only</code> was left in ${filepath} – no other tests can run.`,\n\t\t\t),\n\t\t)\n}", "_getRequestCallsArray(league, delay) {\n var promises = [];\n\n for (var i = 0; i < this.apis.length; i++) {\n var api = this.apis[i];\n var method = this._requestApiData(api, league, delay * i);\n\n promises.push(method);\n }\n\n return promises;\n }", "hookAll() {\r\n let hooks = [];\r\n for (let [group, temps] of this.hookTemplates) {\r\n for (let template of temps)\r\n hooks.push(this.hookTemplate(template));\r\n }\r\n return hooks;\r\n }", "function wrapperCallbacksFakeResetHistory() {\n Object.keys(wrapperCallbacksFake).forEach((key) => wrapperCallbacksFake[key].resetHistory());\n }", "pending() {\n const pending = [];\n for (const { name } of this.callbacks.values()) {\n pending.push(name);\n }\n return pending;\n }", "async reset(excludedModules = []) {\n const modulesToExecute = this.modulesEnabled.filter(moduleToCheck => excludedModules.indexOf(moduleToCheck.name) === -1);\n const response = await Promise.all(modulesToExecute.map(\n module => {\n return module.reset();\n }\n ));\n return response;\n }", "function untestableFilter(mockName) {\n var cond =\n !(\n mockName === 'font-wishlist' ||\n mockName.indexOf('mapbox_') !== -1\n );\n\n if(!cond) console.log(' -', mockName);\n\n return cond;\n}", "async get_providers_by_stub(stub) {\n\n var account = await this.accounts.get(stub);\n var result = [];\n account = account.hasOwnProperty(stub) ? account[stub] : account;\n\n if (account) {\n var exchange = account.exchange + (account.hasOwnProperty('type') ? '_' + account.type : '');\n var providers = await this.get_providers();\n if (this.utils.is_object(providers)) {\n var data = Object.values(providers);\n if (data.length > 0) {\n var result = data.filter(item => item.exchanges.includes(exchange));\n }\n }\n }\n return result;\n }", "createCheckers(num) {\n const checkers = [];\n for (let i = 0; i < num; i++) {\n let checker = new Checker(this, i);\n checkers.push(checker);\n }\n return checkers;\n }", "function spyOnWarnings (t) {\n t.context.warn = console.warn\n console.warn = sinon.spy()\n return console.warn\n}", "function checkPendingInvocations() {\n for (var ii = 0; ii < updateJobs.length; ii++) {\n if (updateJobs[ii].pendingInvocations().length === 0) {\n updateJobs.splice(ii, 1);\n break;\n }\n }\n if (updateJobs.length === 0) {\n return end();\n } else {\n nextTick();\n }\n}", "expected(_utils) {\n return 'nothing';\n }", "function mockExternals() {\n var values = {\n server: {\n options: {\n host: '127.0.0.1',\n port: '57110'\n },\n state: {\n mutate: jest.genMockFunction()\n },\n callAndResponse: jest.genMockFunction()\n .mockReturnValue(Promise.resolve())\n },\n lang: {\n options: {\n host: '127.0.0.1',\n port: '57120'\n }\n },\n msg: ['/hi', 'how', 2],\n nodeID: 1,\n defName: 'defName'\n };\n\n ext.bootServer.mockReturnValue(Promise.resolve(values.server));\n ext.bootLang.mockReturnValue(Promise.resolve(values.lang));\n ext.sendMsg.mockReturnValue(Promise.resolve(values.msg));\n ext.nextNodeID.mockReturnValue(values.nodeID);\n nodeWatcher.whenNodeGo.mockReturnValue(Promise.resolve(values.nodeID));\n\n return values;\n }", "function create_dummy_array(num) {\n if (num < 1) { return []; }\n var dummy_array = [];\n for (var i = 0; i < num; i++) {\n let rng = Math.floor(Math.random()*num);\n dummy_array.push(rng);\n }\n return dummy_array;\n}", "function MockedProvider() {\n /* ... */\n}", "findSimulatorAddons() {\n let deferred = promise.defer();\n AddonManager.getAllAddons(all => {\n let addons = [];\n for (let addon of all) {\n if (Simulators.isSimulatorAddon(addon)) {\n addons.push(addon);\n }\n }\n // Sort simulator addons by name.\n addons.sort(LocaleCompare);\n deferred.resolve(addons);\n });\n return deferred.promise;\n }", "function getFilterCalls(calls) {\n\t return calls.filter(function (call) {\n\t return !__webpack_require__(201).isConnectionCall(call);\n\t });\n\t}", "function getFilterCalls(calls) {\n\t return calls.filter(function (call) {\n\t return !__webpack_require__(201).isConnectionCall(call);\n\t });\n\t}", "get exposedFuncs() {\n return [];\n }", "patch () {\n const enablesInstruments = this._options.enables\n // Use all if not specify\n if (enablesInstruments && enablesInstruments.length) {\n instrumentations = instrumentations.filter((instrument) => enablesInstruments.indexOf(instrument.module) !== -1)\n }\n\n const instrumentedModules = _.uniq(instrumentations.map((instrumentation) => instrumentation.module))\n\n // Instrunent modules: hook require\n hook(instrumentedModules, (moduleExports, moduleName, moduleBaseDir) =>\n this.hookModule(moduleExports, moduleName, moduleBaseDir))\n\n debug('Patched')\n }", "async getCockpitSingletons() {\n const singletons = await this.getSingletonNames();\n return Promise.all(singletons.map(name => this.getSingletonItems(name)));\n }", "function bouncer(arr) {\n\n var holderArray = [];\n //calls filter to run removeFalseVar method\n holderArray = arr.filter(removeFalseVar);\n\n return holderArray;\n}", "fake () {\n // TODO: incorporate examples somehow...hmmm...not sure what to do\n // TODO: incorporate children somehow\n return new Stub(values(this.ioexamples));\n }", "function getMethods(obj) {\r\n var tests = [];\r\n for (var m in obj) {\r\n if ( typeof obj[m] === \"function\") {\r\n if (m.search(\"testDC\") != -1) {\r\n tests.push(m);\r\n }\r\n }\r\n }\r\n $('#badgeTestcount').html(tests.length);\r\n availableTestList = tests;\r\n}", "function karmaDeps() {\n return require('./config/' + paths.test_dependencies);\n }", "_findMissingSelectors(matchedSelectors, teacherSelectors) {\n return teacherSelectors.filter(val => !matchedSelectors.includes(val));\n }", "function Array$empty() {\n return [];\n }", "function Array$empty() {\n return [];\n }" ]
[ "0.64944243", "0.6159523", "0.60004187", "0.5723858", "0.56097364", "0.55798805", "0.55535805", "0.55510527", "0.547419", "0.54648226", "0.5379082", "0.5379082", "0.5379082", "0.5379082", "0.5350653", "0.53479636", "0.53231883", "0.5319353", "0.53137904", "0.5284947", "0.5264863", "0.52632594", "0.51872414", "0.51779795", "0.51562446", "0.51036793", "0.50850683", "0.5081933", "0.50791156", "0.50700253", "0.5068231", "0.503208", "0.5027662", "0.50145215", "0.49998218", "0.49938396", "0.49895206", "0.49873394", "0.4987058", "0.4978494", "0.4974121", "0.49517643", "0.49356934", "0.492946", "0.49239877", "0.4902122", "0.4891453", "0.48727715", "0.4871443", "0.4863979", "0.48606843", "0.48540527", "0.484518", "0.48439777", "0.48439777", "0.48439777", "0.48329744", "0.48168808", "0.48103967", "0.4810081", "0.47975758", "0.47964922", "0.47897112", "0.47802585", "0.47642377", "0.47625685", "0.47625685", "0.47625685", "0.47625685", "0.47625685", "0.47625685", "0.47549024", "0.4750564", "0.47494435", "0.47389144", "0.4734207", "0.47328988", "0.47292122", "0.472766", "0.47253123", "0.4689303", "0.4684713", "0.46842748", "0.4683447", "0.46717194", "0.46603397", "0.46593404", "0.46575528", "0.46558222", "0.46558222", "0.4650898", "0.464742", "0.46403188", "0.46397445", "0.46343616", "0.46258008", "0.46231517", "0.46200913", "0.4619771", "0.4619771" ]
0.6893146
0
get stop ID for destination
function getStopID(query) { return axios .get(`${stopFinderURI}?${query}`, requestHeaderJSON) .then(response => { const stopLocation = response.data["locations"].filter( location => location.type === "stop" ); //console.log(stopLocation[0].id); return [stopLocation[0].id, stopLocation[0].coord]; }) .catch(err => console.log(err)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getStartingStop(route) {\n const busses = _.filter(route[0].legs, { type: '1'} );\n return busses[0].locs[0].name;\n }", "getStartingStop(route) {\n const busses = _.filter(route[0].legs, { type: '1'} );\n return busses[0].locs[0].name;\n }", "function getStoppedBreakpointId() {\n var stepNode = null;\n var stepNodes = $scope.suspendedBreakpoints;\n if (stepNodes && stepNodes.length) {\n stepNode = stepNodes[0];\n if (stepNodes.length > 1 && isSuspendedAt($scope.selectedDiagramNodeId)) {\n // TODO should consider we stepping from different nodes based on the call thread or selection?\n stepNode = $scope.selectedDiagramNodeId;\n }\n }\n return stepNode;\n }", "function getStationStopLink($stop) {\n\t\tvar nextStop = $stop;\n\t\tvar url = reformatDestination(nextStop, 'pretty').replace(/ /g,'').toLowerCase();\n\t\treturn septaStationUrl + url + '.html';\n\t}", "function getDestination(id){\n for (var i = 0; i < stationList.length; i++) {\n if (stationList[i].stationShortCode == id){\n return stationList[i].stationName;\n }\n }\n}", "function getInstanceID()\n{\n\treturn getDCCAddrAndMotorSubAddr(this.normalRouteID);\n}", "function getRoutesForStop(stop_id) {\n\n return this.getTripsStopTimes(stop_id).then();\n}", "function getAdjacentContactId(direction) {\n\t\tconst currentlyDisplayed = filteredOf(employeesData).find(isDisplayed);\n\t\tconst filteredIndexOfCurrent = filteredOf(employeesData).indexOf(currentlyDisplayed);\n\t\tlet filteredIndexOfNew;\n\t\tif (direction === 'next') {\n\t\t\tfilteredIndexOfNew = filteredIndexOfCurrent + 1;\n\t\t} else if (direction === 'previous') {\n\t\t\tfilteredIndexOfNew = filteredIndexOfCurrent - 1;\n\t\t}\n\t\treturn filteredOf(employeesData)[filteredIndexOfNew].id;\n\t}", "function getStopInTripTime(stop_id, trip_id) {\n\n return this.getTripStopTimes(stop_id).then(function getTimeForATrip(trips) {\n return trips.filter(function (trip) {\n return trip.trip_id == trip_id;\n });\n });\n}", "static direction(departStop, arriveStop) {\n const depart = caltrainServiceData.southStops.indexOf(departStop);\n const arrive = caltrainServiceData.southStops.indexOf(arriveStop);\n return depart < arrive ? \"South\" : \"North\";\n }", "function drawStop(stop){\n col = colorForRoute(activeRoute);\n var myLatlng = new google.maps.LatLng(stop.lat, stop.lon);\n\n var marker = new google.maps.Marker({\n position: myLatlng,\n map: map,\n title:stop.name+\": (\"+stop.stopid+\")\",\n icon: makeStopMarker(col),\n title:stop.name,\n optimized: false // http://stackoverflow.com/questions/8721327/effects-and-animations-with-google-maps-markers/8722970#8722970\n });\n marker.setMap(map);\n return marker;\n}", "GetRouteIDFromSpot(comingGPSid) {\n return 88; // no match routeID found\n }", "getSourceId(source) {\n let sourceId = this.sourceIds.get(source);\n if (sourceId === undefined) {\n sourceId = `${this.sourceIds.size}`;\n this.sourceIds.set(source, sourceId);\n }\n return sourceId;\n }", "getId() {\n return this._executeAfterInitialWait(() => this.currently.getAttribute('id'));\n }", "function getDistance(data) {\n var nextStopId = data.data.entry.status.nextStop;\n var prevStopId = data.data.entry.schedule.stopTimes[0].stopId;\n var prevStopTime = data.data.entry.schedule.stopTimes[0].arrivalTime;\n var prevStopDist = data.data.entry.schedule.stopTimes[0].distanceAlongTrip;\n var i = 0;\n while(i < data.data.entry.schedule.stopTimes.length - 1 && data.data.entry.schedule.stopTimes[i].stopId != nextStopId) {\n prevStopId = data.data.entry.schedule.stopTimes[i].stopId;\n prevStopTime = data.data.entry.schedule.stopTimes[i].arrivalTime;\n prevStopDist = data.data.entry.schedule.stopTimes[i].distanceAlongTrip;\n i++;\n }\n nextStopTime = data.data.entry.schedule.stopTimes[i].arrivalTime;\n nextStopDist = data.data.entry.schedule.stopTimes[i].distanceAlongTrip;\n if(i == 0) return data.data.entry.schedule.stopTimes[data.data.entry.schedule.stopTimes.length - 1].distanceAlongTrip - prevStopDist;\n return nextStopDist - prevStopDist;\n}", "function getTripStopTimes(stop_id) {\n\n return setTrips().then(function () {\n return (0, _db2.default)();\n }).then(function getTripsForStop(db) {\n\n var transaction = db.transaction('stop_times');\n var tripsStore = transaction.objectStore('stop_times');\n var stopIndex = tripsStore.index('stop');\n\n return stopIndex.getAll(stop_id);\n });\n}", "function getRouteDestination() {\n\t\t\t//find the last waypoint set\n\t\t\tvar lastSetWaypoint = -1;\n\t\t\tfor (var i = $('.waypoint').length - 2; i >= 0; i--) {\n\t\t\t\tvar address = $('#' + i).get(0);\n\t\t\t\tif (address.querySelector('.address')) {\n\t\t\t\t\tlastSetWaypoint = i;\n\t\t\t\t\ti = -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (lastSetWaypoint >= 0) {\n\t\t\t\tvar address = $('#' + lastSetWaypoint).get(0);\n\t\t\t\taddress = address.querySelector('.address');\n\t\t\t\taddress = address.getAttribute('data-shortAddress');\n\t\t\t\treturn address;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "async function getDestinationById(req, res) {\n return destinationService.getDestinationById(req, res);\n}", "function addStop(evt) {\r\n var stop = map.graphics.add(new Graphic(evt.mapPoint, stopSymbol));\r\n routeParams.stops.features.push(stop);\r\n locator.locationToAddress(webMercatorUtils.webMercatorToGeographic(evt.mapPoint), 100);\r\n locator.on(\"location-to-address-complete\", function (evt) {\r\n name = evt.address.address.Address;\r\n loc = evt.address.location.x + \",\" + evt.address.location.y;\r\n if (name == '') {\r\n name = \"Geocoding error\";\r\n }\r\n if (!stopLocs.includes(loc)) {\r\n $(\"#stops\").append(\"Location\" + stops + \": \" + name + \"<br>\");\r\n stops += 1;\r\n stopLocs.push(loc);\r\n }\r\n stop.setInfoTemplate(new esri.InfoTemplate(\"Stop\", evt.address.address.LongLabel));\r\n });\r\n if (routeParams.stops.features.length >= 2) {\r\n routeTask.solve(routeParams);\r\n }\r\n }", "function load_bus_stop_info (stop)\n\t{\n\t\tvar bus_routes_url = Urls.make('bus.routes'),\n\t\t\tbody = 'Routes that stop here:\\n',\n\t\t\tcard = new UI.Card({\n\t\t\t\ttitle: Helpers.caps(stop.Name),\n\t\t\t\tsubtitle: Helpers.concat_bus(stop),\n\t\t\t\tscrollable: true,\n\t\t\t\tstyle: 'small'\n\t\t\t});\n\n\t\tcard.show();\n\n\t\t// display details for routes through the stop\n\t\tnew Ajax({\n\t\t\turl: bus_routes_url,\n\t\t\ttype: 'json'\n\t\t}, function (data) {\n\t\t\tfor (var r in data.Routes) {\n\t\t\t\tvar route = data.Routes[r];\n\t\t\t\tif (stop.Routes.indexOf(route.RouteID) > -1) {\n\t\t\t\t\tbody = body + Helpers.caps(route.Name) + '\\n';\n\t\t\t\t\tcard.body(body);\n\t\t\t\t}\n\t\t\t}\n\t\t}, function (error, code) {\n\t\t\tconsole.log ('Error getting route info (' + code + '): ' + JSON.stringify(error));\n\t\t\tcard.body(body);\n\t\t});\n\t}", "function findId(id) {\n\tfor(var i=0; i<tasks.length; i++) {\n\t\tif(tasks[i] == id) return i;\n\t}\n\treturn -1;\n}", "async function getDestinationById(req, res) {\n try {\n const id = req.params.id;\n const destination = await Destination.findOne({ where: { id }, include: [Activity] })\n destination ?\n successMsg(res, 200, 'correcto', destination) :\n notFoundMsg(res, id, 'Destino');\n } catch (error) {\n errorMsg(res, 500, 'Ha ocurrido un error', error)\n }\n}", "times(stop, direction, schedule) {\n const source = CaltrainService.select(direction, schedule);\n const index = this.stopMap(direction).get(stop);\n const times = new Map();\n for (const train of Object.keys(source).map(Number)) {\n if (source[train][index]) times.set(train, source[train][index]);\n }\n return times;\n }", "function getDestination_() {\n init_();\n retrieveDestinationLis_();\n}", "getId() {\n var fromStr, toStr;\n fromStr = function(from) {\n return `${from.process.id}() ${from.port.toUpperCase()}`;\n };\n toStr = function(to) {\n return `${to.port.toUpperCase()} ${to.process.id}()`;\n };\n if (!(this.from || this.to)) {\n return \"UNDEFINED\";\n }\n if (this.from && !this.to) {\n return `${fromStr(this.from)} -> ANON`;\n }\n if (!this.from) {\n return `DATA -> ${toStr(this.to)}`;\n }\n return `${fromStr(this.from)} -> ${toStr(this.to)}`;\n }", "onStopClick(e) {\n const { actions, dispatch } = this.props;\n const key = e.currentTarget.getAttribute('data-key');\n dispatch(actions.updateSelectedStop(parseInt(key, 10)));\n }", "function getFeatureIdOfWaypoint(wpIndex) {\n\t\t\tvar rootElement = $('#' + wpIndex).get(0);\n\t\t\tvar address = rootElement.querySelector('.address');\n\t\t\tvar id = address ? address.id : null;\n\t\t\treturn id;\n\t\t}", "static getLastId() {\r\n let lastId = 0\r\n if (eventos.length > 0) {\r\n lastId = eventos[eventos.length - 1].id\r\n console.log('O lastId do utilizador é = ' + lastId)\r\n }\r\n\r\n return lastId\r\n }", "function calendar_helper_getCalendarEventFromDestinationId(destination_id){\n for (var i in calendar_events){\n var cal_event = calendar_events[i]\n if (cal_event.available_destination_id == destination_id){\n return cal_event;\n }\n }\n alert(CALENDAR_EVENT_NOT_FOUND );\n return null;\n}", "function getName(destination) {\n return destination.destinationName;\n}", "static mapStops(direction) {\n const out = new Map();\n const stops =\n direction === \"North\"\n ? caltrainServiceData.northStops\n : caltrainServiceData.southStops;\n for (let i = 0; i < stops.length; i++) {\n out.set(stops[i], i);\n }\n return out;\n }", "get destination() {\n\t\treturn this.__destination;\n\t}", "function getIndex(waypointId) {\n const m = waypointId.match(/:([0-9]+)$/);\n return m && m[1] ? parseInt(m[1]) : 0;\n}", "function findStations (stop) {\n\tfor (i = 0; i < trainLines.length; i++) {\n\t\tif (trainLines[i].stations.includes(stop)) {\n\t\t\treturn trainLines[i].stations.indexOf(stop);\t\t\t\n\t\t}\n\t}\n}", "_getTargetId (settings) {\n var _this = this;\n\n var targetId = settings.deployed.Arn + \"---\" + settings.cronjob.name;\n targetId = targetId.replace(/:/g, '_');\n targetId = \"ID\" + _this._hashed(targetId);\n\n return targetId;\n }", "relayid(zone){\n if (zone<1 || zone>6) {this.log.info(\"invalid zone number: \"+zone);return 0};\n return hc6.relays[zone-1].relay_id;\n }", "static tripStops(train, direction, schedule) {\n const stops =\n direction === \"North\"\n ? caltrainServiceData.northStops\n : caltrainServiceData.southStops;\n const times = this.select(direction, schedule)[train] || [];\n const out = [];\n for (let i = 0; i < times.length; i++) {\n if (times[i]) out.push([stops[i], times[i]]);\n }\n return out;\n }", "function getVideoId() {\n\t// Get the URL without any query parameters or anchors\n\tlet url = window.location.href;\n\tif(DEBUG) console.log(`Netflix SRT subs URL: ${url}`);\n\n\tmatch = /netflix\\.[a-z]+\\/watch\\/([0-9]+)/i.exec(url);\n\tif(match !== null && match.length > 1) {\n\t\tlet videoId = match[1];\n\t\tif(DEBUG) console.log(`Netflix SRT subs detected this page to be a video (id = ${videoId})`);\n\t\treturn videoId;\n\t}\n\telse {\n\t\treturn null;\n\t}\n}", "sendStopIntent() {\n let stopIntent = StopIntent;\n if(this.sessionAttributes) {\n stopIntent.session.attributes = this.sessionAttributes;\n }\n return this._sendIntent(stopIntent)\n }", "function getStoreId() {\n var id = \"\";\n for(var i in dd.records){\n if(i!=\"remove\"){\n id = dd.records[i].id;\n }\n }\n return id;\n }", "stopMap(direction) {\n return direction === \"North\" ? this.northStops : this.southStops;\n }", "function getDestinationInfo(destination) {\n\tpollDestination(destination);\n\tif (destinationInfo) {\n\t\treturn destinationInfo[destination];\n\t}\n}", "function getAdjacentRoomId(roomId, direction) {\n var displacement = [\n function north(id) { return id-1 },\n function west(id) { return id-5 },\n function south(id) { return id+1 },\n function east(id) { return id+5 },\n ]\n return displacement[direction](roomId);\n}", "getStepByMessageId(id) {\n Common.assertNotNull(id);\n for (const step of this.model.diagram.steps) {\n if (step.message && step.message.id === id) {\n return step;\n }\n }\n return undefined;\n }", "function getStartPid() {\n return self.players.ids.list[Math.floor(Math.random() * 2)];\n }", "function getMemberId() {\n\n\t\tvar memberId = '';\n\t\tif (isB2BUser()) {\n\t\t\treturn getUserInfo().svocId;\n\t\t} else if (privateMethods.isGuestUser()) {\n\t\t\t//If guest user pass the member id for guest\n\t\t\tmemberId = sessionStorage.getItem(GUEST_MEMBER_ID) || '';\n\t\t} else {\n\t\t\tmemberId = cookieUtils.getSVOCID();\n\t\t}\n\t\treturn memberId;\n\t}", "function findDestId(id) {\n var findDest = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://hotels4.p.rapidapi.com/properties/get-details?id=\" + id + \"&checkIn=\" + localStorage.getItem('departingDate') +\"&checkOut=\" + localStorage.getItem('returningDate') + \"&currency=USD&locale=en_US&adults1=1\",\n \"method\": \"GET\",\n \"headers\": {\n \"x-rapidapi-key\": \"c2ce6b3c17msh57d6ee9ec7b2e6ap18a777jsnae6af7525db4\",\n \"x-rapidapi-host\": \"hotels4.p.rapidapi.com\"\n }\n };\n\n $.ajax(findDest).done(function (response) {\n console.log(response);\n destId = response.data.body.pdpHeader.destinationId;\n getHotels(destId);\n });\n}", "function extractTeamId(team_data){\n return team_data.id\n}", "function getScheduledInterviewId() {\n return new URLSearchParams(window.location.search).get('interview'); \n}", "function getMaxID()\n{\n ig.media.search({\n min_timestamp: endDate-(60*60*24),\n max_timestamp: endDate,\n // mall in bangkok\n lat: 13.7464,\n lng: 100.5350,\n distance: 5000,\n complete: function(data, pagination){\n absmaxID = new bn(data[0].id.split('_')[0]); // use short form IDs\n printID();\n }\n });\n}", "getLastId() {\n /* if(this.travels.length){\n return this.travels[this.travels.length-1].id\n }\n else{\n return 0\n } */\n return this.travels.length ? this.travels[this.travels.length - 1].id : 0\n }", "getMovingDirection(destinationStep) {\n let movingDirection;\n if (destinationStep > this.currentStepIndex) {\n movingDirection = MovingDirection.Forwards;\n }\n else if (destinationStep < this.currentStepIndex) {\n movingDirection = MovingDirection.Backwards;\n }\n else {\n movingDirection = MovingDirection.Stay;\n }\n return movingDirection;\n }", "get id() {\n if (this.state == ANONYMOUS) return undefined;\n return this.get(this.store.id);\n }", "function extractDayIndexFromId(str) {\n var dt = str.split('-');\n return parseInt(dt[0]);\n }", "getStationDistanceToLocation(dest) {\n let currentStation = this.props.closestStations[0]\n if (!currentStation) return 0 // wtf?\n return Utils.getDistanceFromLatLonInKm(currentStation.latitude,currentStation.longitude,dest.latitude,dest.longitude).toFixed(2)\n\n }", "routes(departStop, arriveStop, schedule) {\n const direction = CaltrainService.direction(departStop, arriveStop);\n const departTimes = this.times(departStop, direction, schedule);\n const arriveTimes = this.times(arriveStop, direction, schedule);\n // let skip = (schedule === 'Sunday') ? caltrainServiceData.saturdayTripIds : [];\n const skip = [];\n return CaltrainService.merge(departTimes, arriveTimes, skip);\n }", "getDeviceId() {\n if (!this.deviceid) {\n let id = this.getId();\n if (id) {\n id = id.replace(/(.+?)\\/(.+?)\\/(.*)/, '$2');\n this.deviceid = id.replace(/(.+)-(.+)/, '$1');\n }\n }\n return this.deviceid;\n }", "function getRoute(start,target) {\n\tapi({ data: \"cmd=getroute&start=\"+start+\"&target=\"+target, type: \"block\" },selectRoute);\n}", "getProjectID() {\n\n console.log(\"TCL: getProjectID -> this.props.locationData\", this.props.locationData)\n\n const {projectID} = this.props.locationData.match.params;\n \n const requestID = projectID.substr(projectID.indexOf('GSD')+3,projectID.length);\n\n return requestID\n }", "static async getById(id) {\n let sql = `\n SELECT id, lat, lon, name, url, lure_expire_timestamp, last_modified_timestamp, updated,\n enabled, quest_type, quest_timestamp, quest_target, quest_conditions, quest_rewards,\n quest_template, cell_id, deleted, lure_id, pokestop_display, incident_expire_timestamp,\n first_seen_timestamp, grunt_type, sponsor_id\n FROM pokestop\n WHERE id = ?\n `;\n let args = [id];\n let results = await db.query(sql, args);\n if (results && results.length) {\n let result = results[0];\n let pokestop = new Pokestop(result);\n return pokestop;\n }\n return null;\n }", "id() {\n return Router.current().params._id;\n }", "function distanceTravelledInFeet(start, destination) {\n let result = Math.abs(start - destination) * 264;\n // console.log('start:', start);\n // console.log('dest: ', destination);\n // console.log('result: ', result);\n return result;\n}", "function getCurrentVideoId() {\n let attr = document.getElementsByClassName(\"share-twitter\")[0]\n .getAttribute(\"data-event-tracking\").split(\"|\");\n return attr[attr.length - 1];\n}", "getRouteIdFromRoute (route, type) {\n return `[${type}] ${route.path} -> ${route.handler}`\n }", "function createTripId() {\n const tripId = 'trip-' + tripIdCounter;\n tripIdCounter += 1;\n return tripId;\n}", "function getVideoId()\n {\n if (window.location.search.length > 0)\n {\n var s = window.location.search.substring(1);\n var requestObjects = s.split('&');\n for (var i = 0, len = requestObjects.length; i < len; i += 1)\n {\n var obj = requestObjects[i].split('=');\n if (obj[0] === \"v\")\n {\n console.log(\"Video ID is \" + obj[1]);\n return obj[1];\n }\n }\n }\n\n return null;\n }", "stop (id) {\n if (typeof this._stoppers[id] === 'function') {\n this._stoppers[id]()\n delete this._stoppers[id]\n }\n }", "getMSID() {\n const streamId = this.getStreamId();\n const trackId = this.getTrackId();\n return streamId && trackId ? `${streamId} ${trackId}` : null;\n }", "function getId() {\n\t\t\treturn NewsService.leng();\n\t\t}", "function getId() {\n\t\t\treturn NewsService.leng();\n\t\t}", "function getId() {\n\t\t\treturn NewsService.leng();\n\t\t}", "function getNearStop(){\r\n\tvar minDist= -1;//storing the minimum distance. \r\n\tvar minIdx = -1;//if this remains -1, something went wrong. \r\n\tconsole.log(stopData.length);\r\n\tfor(var i=0;i<stopData.length;i++){\r\n\t\tvar stopLat=stopData[i][4];\r\n\t\tvar stopLng=stopData[i][5];\r\n\t\t\r\n\t\t//Old function, doesn't take into account latlong distance inaccuracies\r\n\t\t//var dist = Math.sqrt(Math.pow((clickLat-stopLat),2)+Math.pow((clickLng-stopLng),2));\r\n\t\tvar dist = measure(clickLat,clickLng,stopLat,stopLng);\r\n\t\t\r\n\t\t//This measure fuction sourced from: https://stackoverflow.com/questions/639695/how-to-convert-latitude-or-longitude-to-meters\r\n\t\tfunction measure(lat1, lon1, lat2, lon2){ // generally used geo measurement function\r\n\t\t\tvar R = 6378.137; // Radius of earth in KM\r\n\t\t\tvar dLat = lat2 * Math.PI / 180 - lat1 * Math.PI / 180;\r\n\t\t\tvar dLon = lon2 * Math.PI / 180 - lon1 * Math.PI / 180;\r\n\t\t\tvar a = Math.sin(dLat/2) * Math.sin(dLat/2) +\r\n\t\t\tMath.cos(lat1 * Math.PI / 180) * Math.cos(lat2 * Math.PI / 180) *\r\n\t\t\tMath.sin(dLon/2) * Math.sin(dLon/2);\r\n\t\t\tvar c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\r\n\t\t\tvar d = R * c;\r\n\t\t\treturn d * 1000; // meters\r\n\t\t}\r\n\t\t\r\n\t\tif(dist < minDist || minDist<0){\r\n\t\t\tminIdx=i;\r\n\t\t\tminDist=dist;\r\n\t\t}\r\n\t\tconsole.log(minDist);\r\n\t}\r\n\tif(minIdx<0){\r\n\t\tconsole.log(\"Something ain't right here...\");\r\n\t}\r\n\telse{\r\n\t\tnearStopName=stopData[minIdx][2];\r\n\t\tnearStopDist=Math.floor(minDist);\r\n\t\tnearStopCode=stopData[minIdx][1];\r\n\t\t\r\n\t\tconsole.log(\"The nearest stop is: \"+nearStopName+\"\\nDistance: \"+nearStopDist+\" metres away\\nCode: \"+nearStopCode);\r\n\t}\r\n\tnearStopLat=stopData[minIdx][4];\r\n\tnearStopLng=stopData[minIdx][5];\r\n\t\r\n\t//The stops are all at about 34 degrees latitude. \r\n\t//1 deg Lat =~ 110922.36m \r\n\t//1 deg Lng =~ 92384.75m\r\n\t//numbers from: http://www.csgnetwork.com/degreelenllavcalc.html\r\n\t//busMarker(minIdx);\r\n\tgetNextBus(minIdx);\r\n}", "function getOtherRobotIndex(id) {\n for (var i = 0; i < otherRobots.length; i++) {\n if (otherRobots[i].scans[0].data.id == id) {\n otherIndex = i;\n return i;\n }\n }\n return null;\n}", "getDestination(num) {\n // \"pair\" of a and b that corresponds to num\n const pair = this.props.rules[num % this.props.k];\n return pair.a * num + pair.b;\n }", "static getLastId() {\r\n let lastId = 0\r\n if (utilizadores.length > 0) {\r\n lastId = utilizadores[utilizadores.length - 1].id\r\n console.log('O lastId do utilizador é = ' + lastId)\r\n }\r\n\r\n return lastId\r\n }", "function getUrlId() {\n return getURLSearch().replace('id=', '');\n}", "function filterOne(stopName) {\n\n var actualTime = new Date();\n var hours = actualTime.getHours() * 3600;\n var minutes = actualTime.getMinutes() * 60;\n var secs = actualTime.getSeconds();\n\n var seconds = hours + minutes + secs;\n var departureTimes = app.yourStopInfo.timetable.timetables;\n return departureTimes[stopName].reduce(function (prev, curr) {\n\n return prev || curr.departures[1].reduce(function (prev, curr) {\n var toSeconds = curr.split(\":\");\n var pure = (+toSeconds[0]) * 60 * 60 + (+toSeconds[1]) * 60;\n\n var dTime = pure - seconds;\n return prev || (dTime <= 1200 && dTime >= 0);\n }, false)\n\n || curr.departuresOnWayBack[1].reduce(function (prev, curr) {\n var toSeconds = curr.split(\":\");\n var pure = (+toSeconds[0]) * 60 * 60 + (+toSeconds[1]) * 60;\n\n var dTime = pure - seconds;\n return prev || (dTime <= 1200 && dTime >= 0);\n }, false);\n\n }, false);\n\n }", "function updateBusStop(data, color, routeId) {\n $.each(data, function (key, stop) {\n var location = new google.maps.LatLng(parseFloat(stop.latitude), parseFloat(stop.longitude));\n var newstop = new google.maps.Marker({\n position: location,\n map: (curRouteId == 'ALL' || routeId == curRouteId ? newmap : null),\n icon: {\n path: google.maps.SymbolPath.CIRCLE,\n fillOpacity: 1,\n fillColor: \"white\",//\"#\" + color,\n strokeOpacity: 1.0,\n strokeColor: \"#\" + color,//\"black\",\n strokeWeight: 3,\n scale: 5 //pixels\n }\n });\n google.maps.event.addListener(newstop, 'click', function () {\n infoWindowDetails.opened = true;\n infoWindowDetails.busClicked = false;\n infoWindowDetails.busId = null;\n if (window.sessionStorage) {\n window.sessionStorage.busStopId = stop.id;\n }\n displayInfo(routeId, stop.id, stop.name, \"\", location);\n });\n var routeStop = {\n busstopinfo: newstop,\n route: routeId,\n id: stop.id,\n name: stop.name\n };\n stops.push(routeStop);\n attachMessage(location, stop.name, stop.id, routeId);\n });\n}", "function roomID(type){\n var matchRoomRequest;\n //urls for express sessions and normal sessions \n //are not the same \n if(type==\"workspace\"){\n matchRoomRequest = /.*\\/workspace\\/(.+)/;\n }\n else{\n matchRoomRequest = /.*\\/express\\/(.{32})/;\n }\n var match = matchRoomRequest.exec(document.URL);\n\n if(match){\n return match[1];\n }\n}", "async getId () {\n let response = await fetch (\"https://test-ancil-overlay.herokuapp.com/v1.2/funnel/cache.js?agent_id=test&flight_string=SFO*2019-10-15T07:20*CQ*123*JFK*2019-10-15T08:45&adults=1\");\n let body = await response.text();\n return JSON.parse(body.slice(22,-2)).session_id\n }", "function findOrigin(element) {\n if (element === startStation){\n return element\n }\n}", "getCheapestDeliveryRoute(fromTown,toTown,maxStops){\n\n return super.getDeliveryRoute({fromTown,toTown,maxStops});\n }", "function extractTimeFromId(str) {\n var dt = str.split('-');\n var pat = /(00|30)$/\n var ret = dt[1].replace(pat, ':$1');\n return ret;\n }", "getId() {\n\t\treturn this.props.id || this.generatedId;\n\t}", "getId() {\n\t\treturn this.props.id || this.generatedId;\n\t}", "function getPayloadId() {\n return intGenerator.next().value;\n}", "function DestinationHolder () {\n this.locations = [];\n this.currentId = 0;\n}", "function getPlaylistID() {\n const url = window.location.search;\n if (url.indexOf(\"?playlist_id=\") !== -1) {\n let currentPlaylist = url.split(\"=\")[1];\n return currentPlaylist;\n }\n }", "getIndexOfStepWithId(stepId) {\n return this.wizardSteps.findIndex(step => step.stepId === stepId);\n }", "stop() {\n if (this.state === _VideoSIPGWConstants__WEBPACK_IMPORTED_MODULE_3__[\"STATE_OFF\"] || this.state === _VideoSIPGWConstants__WEBPACK_IMPORTED_MODULE_3__[\"STATE_FAILED\"]) {\n logger.warn('Video SIP GW session already stopped or failed!');\n return;\n }\n\n this._sendJibriIQ('stop');\n }", "function getWaypiontIndexByFeatureId(featureId) {\n\t\t\tvar wpResult = $('#' + featureId);\n\t\t\tvar wpElement;\n\t\t\tif (wpResult) {\n\t\t\t\twpElement = wpResult.parent().parent();\n\t\t\t}\n\t\t\tif (wpElement) {\n\t\t\t\tvar wpIndex = wpElement.attr('id');\n\t\t\t\tif (!isNaN(wpIndex)) {\n\t\t\t\t\treturn wpIndex;\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function getDir(id) {\n var index = -1;\n adjacent.forEach(function(newid, newindex) {\n if (newid.id === id) {\n index = newindex;\n }\n });\n return index;\n}", "function findRoute(routeId) {\n\n for (let r of Routes) {\n\n if (r.id == routeId) {\n return r;\n } \n }\n\n return null;\n}", "function getStreetEdgeId () {\n return taskSetting.features[0].properties.street_edge_id\n }", "function getID(videoLink) {\n let id;\n if(videoLink.indexOf(\"youtube.com/watch?v=\") >= 0) {\n id = videoLink.substr(videoLink.indexOf(\"=\")+1, 11);\n } else {\n id = videoLink.substr(videoLink.indexOf(\"be/\")+3, 11);\n }\n if (id.length != 11 || !id.match(/^[a-z0-9\\-_]+$/i))\n {\n id = false;\n }\n return id;\n}", "function makeId(route) {\n return route.replace(/ /g, '').replace(/:/g, '').replace(/\\//g, '_');\n}", "get stopping() {\n\t\treturn this._stopping;\n\t}", "get stopping() {\n\t\treturn this._stopping;\n\t}", "static get pathId() {\n return undefined;\n }", "function getPlayerId(url) {\n for (const i in players) {\n const player = players[i];\n const eId = player.getEid(url);\n if (eId) return i;\n }\n }" ]
[ "0.6499473", "0.6499473", "0.64105576", "0.6347544", "0.6148803", "0.5954251", "0.5951451", "0.56309366", "0.5544059", "0.5454567", "0.5435922", "0.5413313", "0.54036015", "0.53176564", "0.52864325", "0.5261183", "0.5259369", "0.52584827", "0.5214114", "0.5191862", "0.51779366", "0.51483077", "0.5146036", "0.51134926", "0.51118076", "0.5109777", "0.51096666", "0.50450426", "0.50435036", "0.50234413", "0.5018514", "0.5007944", "0.5003687", "0.50034326", "0.49850342", "0.49834153", "0.49743113", "0.4963816", "0.49493667", "0.49473357", "0.49383113", "0.4920188", "0.48651332", "0.4862989", "0.48550245", "0.4852283", "0.48050854", "0.48038182", "0.4802329", "0.47886708", "0.4781872", "0.4781486", "0.4777539", "0.47766963", "0.4774058", "0.47709256", "0.4764856", "0.47574756", "0.47568876", "0.4755562", "0.4755393", "0.47539657", "0.47519493", "0.4748974", "0.47459316", "0.47409016", "0.47406128", "0.4734084", "0.472466", "0.472466", "0.472466", "0.47246262", "0.472064", "0.47130165", "0.47102797", "0.47084728", "0.4700781", "0.46988803", "0.46906143", "0.46892014", "0.46888658", "0.4686302", "0.4683477", "0.46801287", "0.46801287", "0.46674436", "0.46616927", "0.46593723", "0.46579447", "0.46494043", "0.46493113", "0.46417227", "0.4636928", "0.4636107", "0.4627727", "0.4620963", "0.46205702", "0.46205702", "0.4620427", "0.46188906" ]
0.6398417
3
this function is used to retry a store when records are not found
function retryStore(){ //console.log('retrying store: '+targetStore.storeId+' for field :'+field.name); this.addInheritanceListeners(store, meta, field) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "saveShoppingResults(arr_enriched_transactions, key){\n\n let transactions_to_save = this.prepResultsToSave(arr_enriched_transactions, key) //massage data into our couchdb format\n\n console.log(\"attempting to save these transactions\", transactions_to_save);\n let startTime = new Date().getTime()\n\n if(!transactions_to_save || !transactions_to_save.length){\n console.log('nothing to save');\n return Promise.resolve();\n }\n\n return this.db.transaction.bulkDocs(transactions_to_save).then(res => {\n //success!\n let completeTime = new Date().getTime();\n let results = this.updateRevs(res);\n console.log(\"save (\" + key + \") results of saving in \" + (completeTime - startTime) + \" ms\", results);\n\n })\n .catch(err => {\n\n let completeTime = new Date().getTime()\n console.log(\"error saving in \" + (completeTime - startTime) + \"ms:\", JSON.stringify({status: err.status, message:err.message, reason: err.reason, stack:err.stack}))\n\n if(err.status == 0){ //then it's maybe a connection issue, try one more time\n\n console.log(\"going to try and save one more time, in case it was just connectivity \" + JSON.stringify(transactions_to_save))\n\n return this.delay(3000).then(_=>{\n\n console.log(\"waiting finished, sending again\")\n\n return this.db.transaction.bulkDocs(transactions_to_save).then(res => { //just try again\n let finalTime = new Date().getTime()\n console.log(\"succesful second saving in \" + (finalTime - completeTime) + \" ms\", JSON.stringify(res))\n //return confirm('Successful second saving of item')\n })\n .catch(err =>{\n console.log(\"saving: empty object error the second time\")\n return confirm('Error saving item on second attempt. Error object: ' + JSON.stringify({status: err.status, message:err.message, reason: err.reason, stack:err.stack}));\n })\n })\n\n\n } else {\n\n this.snackbar.error('Error loading/saving. Contact Adam', err)\n return confirm('Error saving item, info below or console. Click OK to continue. ' + JSON.stringify({status: err.status, message:err.message, reason: err.reason, stack:err.stack}));\n\n }\n })\n }", "function trySave (doc, dbCache, numRetries) {\n return doc.save()\n .then(null, function (err) {\n console.error('Error while saving', err);\n if (numRetries > 0) {\n console.error('...trying again with different data...');\n mchance.fillPaths(doc, dbCache);\n return trySave(doc, dbCache, numRetries - 1);\n } else {\n console.error('...no more retries, moving on...');\n }\n });\n }", "function failedCb(){\n\t\t\t\tdbm.updateJobFailed(uuid, function(err, rows, fields){\n\t\t\t\t\tif(err) log.error('update status error:', err);\n\n\t\t\t\t\tdbm.loadJobById(uuid, function(err, rows, fields){\n\t\t\t\t\t\tif(err) {\n\t\t\t\t\t\t\tlog.error('load job by id:%s error', uuid, err);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//delete job first\n\t\t\t\t\t\tlog.warn('delete job first...');\n\t\t\t\t\t\tdelete jobpool[uuid];\n\t\t\t\t\t\tlog.warn('query result:%s ', rows.length, rows);\n\t\t\t\t\t\tif(rows.length > 0 && rows[0].retry_times < rows[0].retry_max) {\n\t\t\t\t\t\t\tlog.warn('re-insert job...');\n\t\t\t\t\t\t\tlog.warn('retry_times:%s, retry_max:%s, retry_interval:%s', \n\t\t\t\t\t\t\t\trows[0].retry_times, rows[0].retry_max, rows[0].retry_interval);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar newRetryInterval = new Date( jobtime.getTime() + rows[0].retry_interval * 1000 )\n\t\t\t\t\t\t//if(retry_times >= retry_max)\n\t\t\t\t\t\t\tinitJobFromDb(jobid, jobname, jobtime, catg, opts, \n\t\t\t\t\t\t\t\trows[0].retry_max, rows[0].retry_times , cron_job, job_endtime, retry_interval);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t}", "retryLater(count, fn) {\n var timeout = this._timeout(count);\n\n if (this.retryTimer) clearTimeout(this.retryTimer);\n this.retryTimer = Meteor.setTimeout(fn, timeout);\n return timeout;\n }", "function retry() {\n if (a.withRetry && a.retries > 0) {\n console.log(\"REST: Retrying ! %d more times with delay %s \", a.retries, a.retryInterval);\n a.retries--;\n setTimeout(rest.bind(null, type, apiCall, data, isBinary, extraHeaders, a), a.retryInterval);\n return true;\n }\n return false;\n }", "function checkAutoSavedWork(){\n if(retrieving || loaded){\n return $q.reject();\n }\n retrieving = true;\n return tempFileService.checkSavedWork(AUTO_SAVE_FILE, foundAutoSavedCallbacks, true)\n .then(function(savedWork){\n dirtyDataCol = savedWork;\n })\n .catch(function(){\n removeAutoSavedWork();\n return $q.reject();\n })\n .finally(function(){\n retrieving = false;\n loaded = true;\n });\n }", "static autoExpired() {\n setInterval(async() => {\n\n // read file from disk, hash been create automatic\n\n const readFile = new FileSystem().readFile();\n\n // check file math or not with data from database\n await User.findOne({ email: readFile }).then(async result => {\n\n console.log(result);\n\n if (!result) {\n\n return true;\n\n } else {\n\n // update data if data is match\n\n await User.updateOne({ _id: result._id }, { token: null });\n }\n });\n\n }, 180000);\n }", "async function insertExample() {\n // tag::insert[]\n for (var retryNum = 0; retryNum < 10; ++i) {\n try {\n var result = await collection.insert(docKey, \"some value\", {\n durabilityLevel: couchbase.DurabilityLevel.PersistToMajority,\n });\n \n // success!\n break;\n } catch (e) {\n if (e instanceof couchbase.DocumentExistsError) {\n if (retryNum > 0) {\n // If this is a retry and the document now exists, we can assume it was\n // written successfully by a previously ambiguous error.\n continue;\n }\n }\n if (e instanceof couchbase.DurabilityAmbiguousError) {\n // we can simply try the durable operation again...\n continue;\n }\n \n // if we ran into another kind of error, let's re-throw it...\n throw e;\n }\n }\n // end::insert[]\n}", "returnInvalidAssociations() {\n return new Promise(\n\n async (resolve, reject) => {\n try {\n //query all associations.. page 2000 rows\n \n //for each association row - validate that from/to source actually exists\n //find that layerId fromSourceId, fromGlobalId, query Count and make sure it exists. \n //find the layerId of toSourceId, toGlobalId , query count make sure it exists \n //if doesn't exist add to invalid assocaition array. \n const invalidAssociations = [];\n //objectid >= ${offset} and objectid <= ${recordCount+offset}\n let c = 0;\n let offset = 0;\n let recordCount = 2000;\n while(true) {\n const result = await this.query(500001, `1=1`, undefined, undefined, [\"*\"], \"sde.DEFAULT\", offset, recordCount)\n console.log(`Processing ${recordCount} associations`)\n //for each assocaition check if its valid\n const bar = new ProgressBar(':bar', { total: result.features.length });\n for (let i = 0 ; i < result.features.length; i++){\n const associationRow = result.features[i]\n const isValid = await this.isAssocaitionValid( associationRow);\n if (!isValid){ \n const associationGuid = v(associationRow.attributes, \"globalid\");\n invalidAssociations.push({\n \"assocaitionGuid\":associationGuid\n })\n //console.log(`Discoved an invalid assocaition. ${associationGuid}`)\n //console.log(\"x\")\n }\n \n bar.tick();\n }\n \n\n //keep asking if this is true\n if (!result.exceededTransferLimit) break;\n offset+= recordCount;\n }\n \n resolve(invalidAssociations); \n }catch (ex) {\n reject(ex);\n }\n \n \n\n }\n )\n \n\n }", "storeRecord() {\n\t\tthrow (new PodiumError).withCode(101)\n\t}", "function checkValidUser(user) {\n let store = usersDB.transaction(USERS_DB_NAME, \"readwrite\").objectStore(USERS_DB_NAME);\n let index = store.index(\"username\");\n index.openCursor(user).onsuccess = (e) => {\n let cursor = e.target.result;\n if (cursor) {\n let res = cursor.value;\n if (res.warning + 1 >= 3) {// suspend user\n suspendUser(usersDB, res);\n return;\n }\n store.put({\n email: res.email,\n username: res.username,\n password: res.password,\n balance: res.balance,\n rewards: res.rewards,\n permission: res.permission,\n warning: res.warning + 1\n })\n }\n else \n alert(\"The user does not exist. Please check your input again.\"); \n }\n}", "postCallError(change) {\n if (change && change.service === 'DatabaseService'\n && (change.operation === 'insertTableData' || change.operation === 'insertMultiPartTableData')\n && this.transactionLocalId) {\n const entityName = change.params.entityName;\n const dataModelName = change.params.dataModelName;\n return this.localDBManagementService.getStore(dataModelName, entityName).then(store => {\n change.params.data[store.primaryKeyName] = this.transactionLocalId;\n });\n }\n }", "didMissFetch() {}", "postCallError(change) {\n if (change && change.service === 'DatabaseService') {\n const entityName = change.params.entityName;\n const dataModelName = change.params.dataModelName;\n return this.localDBManagementService.getStore(dataModelName, entityName).then(store => {\n const id = change['dataLocalId'] || (change.params.data && change.params.data[store.primaryKeyName]) || change.params[store.primaryKeyName] || change.params.id;\n if (!(_.isUndefined(id) || _.isNull(id))) {\n this.recordError(dataModelName, entityName, id);\n }\n });\n }\n }", "function handleSearchPoiFailure() {\n\t\t\tsearchPoi.requestCounter--;\n\t\t\tif (searchPoi.requestCounter == 0) {\n\t\t\t\tui.searchPoiChangeToSearchingState(false);\n\t\t\t\tui.showSearchPoiError();\n\t\t\t}\n\t\t}", "failure(job, n) {\n n = n === undefined ? 1 : n;\n self.db.updateOne({ _id: job._id }, {\n $inc: {\n bad: n,\n processed: n\n }\n }, function (err) {\n if (err) {\n self.apos.util.error(err);\n }\n });\n }", "function storeDelayedData() {\n\t\t\tcancelRunningTimeout();\n\n\t\t\t$http.put('/api/v1/bills/' + dataToStore.billId, dataToStore.data)\n\t\t\t\t.success(function (data, status, headers, options) {\n\t\t\t\t\tstoreDefer.resolve(status);\n\t\t\t\t\tstoreDefer = undefined;\n\t\t\t\t})\n\t\t\t\t.error(function (data, status, headers, options) {\n\t\t\t\t\tstoreDefer.reject(status);\n\t\t\t\t\tstoreDefer = undefined;\n\t\t\t\t});\n\t\t}", "createStore() {\n if (!this.newWork) return\n db.downloading.insert(this.getStoreObj(), (err, data) => {})\n }", "static shouldRetry() {\n return true;\n }", "async function getNewSongs(songType) {\n let type = mapper.mapNewSongType(songType)\n let playlist\n let newSongsDO = dao.getNewSongs(type)\n //var isSongValid = checkSong(newSongs[0].url)\n let isSongValid = true\n //After the if/else, we will populate the playlist with [{id:},{id:}]\n //First read from db toget the new songs\n //TODO: Add retention period for new songs in db\n if(newSongsDO != undefined && newSongsDO != \"\" && newSongsDO.data.length > 0 && isSongValid) {\n //Add the ids to playlist\n playlist = newSongsDO.data\n } else { //Then read from the service if none is in DB or it expires after the retention\n let command = '/top/song?type=';\n const typeList = [0,7,8,16,96]\n if(typeList.indexOf(type) >= 0) command += type\n else command += 0\n let url = host + command\n //Get new songs by calling service\n try {\n const res = await req('GET', url, '')\n const newSongsDO = {}\n newSongsDO.date = new Date()\n newSongsDO.data = new Array()\n playlist = new Array()\n for(let i=0;i<res.body.data.length;i++) {\n newSongsDO.data.push({id:res.body.data[i].id})\n playlist.push({id:res.body.data[i].id})\n }\n //Save the new songs to new songs DB with [{id:},{id:}], at now only saving ids, don't care if the song is playable or not\n dao.saveNewSongs(newSongsDO, type)\n } catch(err) {\n console.log(\"Get an error when get new songs from service \" + err)\n }\n }\n //Then refresh the urls for all the ids in the playlist\n playlist = await refreshPlaylistUrls(playlist)\n //Save the playlist to db with [{id:,url:}]\n return playlist\n}", "function alertSaveFail(){\n\t//window.plugins.spinnerDialog.hide();\n\t//navigator.notification.activityStop();\n\t//navigator.notification.alert(\"No se guardaron las alertas, error\", doNothing, \"Alerta\", \"OK\");\n\tif(currentAlertRetrys >= maxAlertRetrys){\n\t\talertIsRetrying = false;\n\t\tcurrentAlertRetrys = 0;\n\t\treturn false;\n\t}\n\t\n\talertIsRetrying = true;\n\tcurrentAlertRetrys = currentAlertRetrys+1;\n\tupdatePushOptionsToServer(alertSaveComplete, alertSaveFail);\n}", "function retry(){\r\n\t\tpartie = 0;\r\n\tstart();\r\n}", "finishStore() {\n db.downloading.remove({ _id: this.uuid }, {}, (err, data) => {\n if (err) return console.log(err)\n })\n\n db.downloaded.insert(this.getStoreObj(), (err, data) => {\n if (err) return console.log(err)\n console.log(data)\n })\n }", "isDocumentExisted(documentName) {\n var checkExistedProcess = this.dbConnect.then((connection) => {\n return new Promise ((resolve, reject) => {\n connection.query('SELECT id FROM ' + dbDocumentInfo + ' WHERE documentName = ?', documentName, (err, results, fields) => {\n if (!err) {\n var docName = results\n var quantity = docName.length\n if(quantity === 1) {\n //connection.release()\n resolve(true)\n } else if (quantity === 0){\n // console.log('Inside dbDoc : ' + docName[0].id)\n //connection.release()\n resolve(false)\n } else {\n //connection.release()\n reject({err: {msg: 'There are two of them in Database - System ERR'}})\n }\n } else {\n reject(err)\n }\n })\n })\n }).catch((err) =>{\n return Promise.reject(err)\n })\n return checkExistedProcess\n }", "function checkDatabase(){\n // make trans and store(key word) variables\n // add a const(getE) for the store.getAll method\n // use const getE.onsuccess = function (){ fetch => .then (return trans in json) .then (delete the records if successful (store.clear))}\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n const store = transaction.objectStore(\"pending\");\n const all = store.all();\n\n all.onsuccess = function(){\n if(all.result.length >0){\n fetch(\"api/transaction/bulk\", {\n method: \"POST\",\n body: JSON.stringify(all.result), \n headers: {\n Accept: \"application/json, text/plain, */*\", \n \"Content-Type\": \"application/json\"\n }\n })\n .then(response => {\n // delete record if successful in updating DB\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n const store = transaction.objectStore(\"pending\");\n store.clear();\n });\n }\n };\n}", "async _checkRecords(index, record) {\n\t\tlet write = false;\n\n\t\tfor (const [index, record] of this.cache.records.entries()) {\n\t\t\tif (this.cache.currentIPv4 === record.recordContent || \n\t\t\t\tthis.cache.currentIPv6 === record.recordContent)\n\t\t\t\tcontinue;\n\t\n\t\t\tconsole.log(`Updating DNS record ${index} from ${record.recordContent} to ` +\n\t\t\t\t(record.ipv6 ? this.cache.currentIPv6 : this.cache.currentIPv4));\n\t\n\t\t\ttry {\n\t\t\t\tawait this._updateRecord(index);\n\t\t\t} catch (err) {\n\t\t\t\tconsole.error('Error updating DNS record:\\n' + err);\n\t\t\t\tprocess.exit();\n\t\t\t}\n\t\n\t\t\tconsole.log('DNS record is up to date.');\n\t\t\twrite = true;\n\t\t}\n\n\t\treturn write;\n\t}", "storeLookup(recordId) {\n let canonicalKey = recordId;\n const { redirects, records } = this;\n let value = records[canonicalKey];\n if (value === undefined) {\n // value is missing, check that it has not been redirected\n while (redirects[canonicalKey] !== undefined) {\n this.seenIds[canonicalKey] = true;\n canonicalKey = redirects[canonicalKey];\n }\n value = records[canonicalKey];\n // value is still undefined after following redirects\n if (value === undefined) {\n return undefined;\n }\n }\n const ttl = this.expirationMap[canonicalKey];\n if (ttl !== undefined) {\n const { fresh, stale } = ttl;\n const { timestamp } = this;\n if (timestamp > fresh) {\n if (timestamp <= stale) {\n this.markStale();\n return value;\n }\n return undefined;\n }\n }\n return value;\n }", "static storeReview(newReview, callback) {\r\n let dbPromise = DBHelper.openIdbDatabase();\r\n\r\n fetch(`${DBHelper.DATABASE_URL}/reviews`, {\r\n method: 'post',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n }, \r\n body: JSON.stringify({\r\n \"restaurant_id\": newReview.restaurantId,\r\n \"name\": newReview.name,\r\n \"rating\": newReview.rating,\r\n \"comments\": newReview.comments\r\n })\r\n }) \r\n .then(response => response.json())\r\n .then(review => {\r\n console.log(review);\r\n\r\n dbPromise.then(function(db) {\r\n if(!db) return;\r\n\r\n var tx = db.transaction('reviews', 'readwrite');\r\n var store = tx.objectStore('reviews');\r\n\r\n store.put(review);\r\n\r\n if (review.hasOwnProperty('random_id')) {\r\n DBHelper.deletePendingReviewFromIdb(review);\r\n }\r\n\r\n tx.complete;\r\n\r\n return review;\r\n }).then(function (review) {\r\n callback(review);\r\n });\r\n\r\n\r\n }).catch(() => {\r\n dbPromise.then(function(db) {\r\n if(!db) return;\r\n\r\n var tx = db.transaction('pending-reviews', 'readwrite');\r\n var store = tx.objectStore('pending-reviews');\r\n\r\n newReview.random_id = DBHelper.generateRandomId();\r\n\r\n store.put(newReview);\r\n \r\n tx.complete;\r\n\r\n return newReview;\r\n\r\n }).then(function (review) {\r\n callback(review);\r\n });\r\n\r\n\r\n }); \r\n \r\n }", "async gothroughdatathatneedsit() {\n for (\n let index = 0;\n index < this.state.transactionsToCheck.length;\n index++\n ) {\n let daylayaction = new Promise((resolve, reject) => {\n if (this._isMounted == false) {\n reject();\n }\n setTimeout(resolve, 100 * index); // This may change, but right now crypto compare LIMITS how many calls we can make per seconds from one IP, space out these calls so they are not done all at the same time and have a small buffer between them.\n });\n await daylayaction;\n const element = this.state.transactionsToCheck[index];\n await this.downloadHistoryOnTransaction(element.getTime());\n }\n\n if (this.state.transactionsToCheck.length != 0) {\n //Don't execute save if there are no additions\n this.SaveHistoryDataToJson();\n }\n }", "fetchRecord(criteria, forceRefresh) {\n\t\tconst user = _userFromAccessToken(_accessToken);\n\n\t\tif(!forceRefresh) {\n\t\t\t// Check for a cached record in their history to serve immediately\n\t\t\tlet cachedRecordIndex = _.findIndex(_recordCache, (record) => record.id[2] === criteria.recordId);\n\n\t\t\tif(cachedRecordIndex >= 0) {\n\t\t\t\tlet cachedRecord = _recordCache.splice(cachedRecordIndex, 1)[0];\n\t\t\t\t_recordCache.push(cachedRecord);\n\n\t\t\t\treturn serverActions.receiveRecord(cachedRecord);\n\t\t\t}\n\t\t}\n\n\t\treturn _makeRequest('/users/' + user.id + '/records/' + criteria.recordId, {needsAuth: true})\n\t\t\t.then(responseData => {\n\t\t\t\tif(responseData.success) {\n\t\t\t\t\t// Check for a stale version of the record in their history first\n\t\t\t\t\tlet staleRecordIndex = _.findIndex(_recordCache, (record) => record.id[2] === responseData.record.id[2]);\n\n\t\t\t\t\tif(staleRecordIndex >= 0) {\n\t\t\t\t\t\t// Remove the old record\n\t\t\t\t\t\t_recordCache.splice(staleRecordIndex, 1)[0];\n\t\t\t\t\t}\n\n\t\t\t\t\t// Add the new record to the cache\n\t\t\t\t\t_recordCache.push(responseData.record);\n\n\t\t\t\t\t// Shift out the oldest element if the history length is greater than the limit\n\t\t\t\t\tif(_recordCache.length > RECORD_CACHE_LIMIT) _recordCache.shift();\n\t\t\t\t\tsetTimeout(serverActions.viewUncachedRecord, 0);\n\t\t\t\t\tsetTimeout(() => serverActions.receiveRecord(responseData.record), 0);\n\n\t\t\t\t\tif(responseData.record.id[1] === constants.recordTypes.PERSON) firebaseClient.progressFunnel('PERSON_REPORT_VIEWED_NO_PREMIUM_PROMPT_VIEWS');\n\t\t\t\t} else {\n\t\t\t\t\tconsole.log(responseData.errors);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.then(() => this.getUsage())\n\t\t\t.catch(error => {\n\t\t\t\tconsole.error(error);\n\n\t\t\t\tif(error.statusCode === 410) {\n\t\t\t\t\terror.responseBody\n\t\t\t\t\t\t.then(responseData => {\n\t\t\t\t\t\t\tconst criteria = responseData.errors[0].criteria;\n\t\t\t\t\t\t\terror.criteria = criteria;\n\t\t\t\t\t\t\tsetTimeout(() => serverActions.recordRequestError(error), 0);\n\t\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tsetTimeout(() => serverActions.recordRequestError(error), 0);\n\t\t\t\t}\n\t\t\t});\n\t}", "function checkSucess() {\n setTimeout(function() {\n var lastOperation = readerOperations.pop();\n\n if (answered && authenticated && lastOperation === 'replay') {\n done();\n } else {\n checkSucess();\n }\n }, asyncDelay);\n }", "function saveFailed(error) {\n equal(saveSuccessCount += 1, 2,\n \"Second save should fail on the client\");\n \n var expected = /key fixup.*unable to locate/i;\n ok(expected.test(error.message),\n \"2nd save of same entity fails on client \" +\n \"only because of id fixup error: '{0}'\"\n .format(error.message));\n }", "function PersistenceFailureController() {\n }", "function attempt() {\n return persister.selectOneCreateTrack(dataContext).then(function(createTrack) {\n if (!createTrack) {\n return null;\n }\n \n return thisTracker._fetchAttributeValues(dataContext, createTrack.key).then(function(attributeValues) {\n var change = ({key:createTrack.key, serverKey:createTrack.serverKey, attributeValues:attributeValues});\n \n if (attributeValues) {\n return change;\n }\n \n /* Invalid create track: settle and go on */\n return thisTracker.settleCreate(dataContext, change).then(function() {\n return attempt();\n });\n });\n });\n }", "failure(_resp) {\n // server didn't respond, likely network issue.. retry.\n if (_resp.X.status === 0) {\n console.warn('Server Connection Lost: Reconnecting...');\n }\n else {\n console.error('Transporter was unable to complete the synchronization request.');\n }\n Queue.push(() => {\n this.busy = false;\n });\n window.location.reload(true);\n }", "function retry(onSuccess, keepTrying)\n\t{\n\t\tif (_.isUndefined(keepTrying))\n\t\t\tkeepTrying = self.keepTrying\n\n\t\tif (keepTrying)\n\t\t\t{\n\t\t\t\ttryRequest(onSuccess, function()\n\t\t\t\t{\n\t\t\t\t\tdebug('Failed request, retrying...')\n\t\t\t\t\tretry(onSuccess, keepTrying)\n\t\t\t\t})\n\t\t\t}\n\t\telse\n\t\t\tcallbackToWrap(onSuccess)\n\t}", "_verifyReinsertion(record, item, itemTrackBy, index) {\n let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n }", "_verifyReinsertion(record, item, itemTrackBy, index) {\n let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n }", "_verifyReinsertion(record, item, itemTrackBy, index) {\n let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n }", "_verifyReinsertion(record, item, itemTrackBy, index) {\n let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n }", "_verifyReinsertion(record, item, itemTrackBy, index) {\n let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n }", "_verifyReinsertion(record, item, itemTrackBy, index) {\n let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);\n if (reinsertRecord !== null) {\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\n }\n else if (record.currentIndex != index) {\n record.currentIndex = index;\n this._addToMoves(record, index);\n }\n return record;\n }", "testBulkLoaderLoadError() {\n const uris = ['a', 'b', 'c'];\n const bulkLoader = getNonSuccessfulBulkLoader(uris);\n\n bulkLoader.load();\n\n clock.tick(2);\n assertFalse('The bulk loader is not yet loaded (after 2 ticks)', loadError);\n\n clock.tick(3);\n assertFalse('The bulk loader is not yet loaded (after 5 ticks)', loadError);\n\n clock.tick(5);\n assertFalse(\n 'The bulk loader is not yet loaded (after 10 ticks)', loadError);\n\n clock.tick(5);\n assertFalse(\n 'The bulk loader is not loaded successfully (after 15 ticks)',\n loadSuccess);\n assertTrue(\n 'The bulk loader is loaded in error (after 15 ticks)', loadError);\n assertEquals('Ensure that the error status is present', 500, errorStatus);\n }", "async getItemRecord(pks) {\n // pks: [rsvno, seq1]\n let tmRet = new TravelMessage();\n\n let tm = await models.Item.selectOne({database: this.database, pgschema: this.pgschema, user: this.user, pks}, this.trans);\n if (tm.status != 200) return tm;\n\n let item = tm.data;\n item.includes = [];\n\n tmRet.data = item;\n return tmRet;\n }", "function checkBucket() {\n\n // reset the file arrays\n missingFilesArry = []\n receivedFilesArry = []\n\n const paramsArray = FILE_NAMES\n .map(file => file.replace(PLACEHOLDER_DASH, checkDateDash))\n .map(file => file.replace(PLACEHOLDER_NODASH, checkDateNoDash))\n .map(fileName => ({Bucket: BUCKET, Key: fileName}))\n\n const RESULTS = waitAllFailSlow(paramsArray.map(getFile))\n .then(results => {\n // this is what happens when no fails...\n //console.log(\"WOOT WOOT!!!\")\n //console.log(results)\n console.log(\"SUCCESS: checkBucket() passed successfully.\")\n })\n .catch(err => {\n // this is the error for fail fast\n console.log(\"ERROR ENCOUNTERED: checkBucket()\")\n //console.log(err)\n //if (\"code\" in err[0] && err[0][\"code\"] == \"NoSuchKey\") { console.log(\"FILE NOT FOUND ACE\")} else {console.log(\"No code Ace\")}\n\n })\n //console.log(\"OUTSIDE=========1========\")\n return RESULTS\n\n}", "function checkDatabase() {\nconst transaction = db.transaction([\"budgetStore\"], \"readwrite\");\nconst save = transaction.objectStore(\"budgetStore\");\nconst getAll = save.getAll();\n getAll.onsuccess = function () {\n if (getAll.result.length > 0) {\n //checks to see if data exists, if so will update via POST route in \n //api.js\n fetch(\"/api/transaction/bulk\", {\n method: \"POST\",\n body: JSON.stringify(getAll.result),\n headers: {\n Accept: \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\",\n },\n })\n .then((response) => {\n return response.json();\n })\n .then(() => {\n const saveInfo = db.transaction(\"budgetStore\", \"readwrite\");\n const store = saveInfo.objectStore(\"budgetStore\");\n store.clear();\n });\n }\n };\n}", "function findCallback(err, foundRecord) {\n // if error is returned or there is no record create a new record and insert our key\n if (err != null || foundRecord == null) {\n var newRecord = {};\n newRecord[collectionKey] = []; // add empty array\n globalDB.collection('emailData').insertOne({}, newRecord, function (err, insertRes) {\n if (err == null) {\n return res.status(200).send(newRecord[collectionKey]); // callback function\n }\n else {\n console.log(\"Failed to Insert\");\n }\n });\n }\n // if record exists but the key is not found in record (does not yet exist)\n else {\n if (foundRecord[collectionKey] == null) {\n foundRecord[collectionKey] = []; // add empty array\n globalDB.collection('emailData').updateOne({}, { $set: foundRecord }, { upsert: true }, function (err, updateRes) {\n if (err == null) {\n console.log(updateRes.result.nModified + \" document(s) updated\");\n return res.status(200).send(foundRecord[collectionKey]); // callback function\n }\n else {\n console.log(\"Failed to Insert\");\n }\n });\n }\n // record exists and key is found, return success\n else {\n return res.status(200).send(foundRecord[collectionKey]); // callback function\n }\n }\n }", "function checkDB() {\n console.log('Check sucessful...')\n\n let transaction = db.transaction(['budgetStore'], 'readwrite') //initialize transaction\n\n const store = transaction.objectStore('budgetStore');\n\n const getStore = store.getAll(); //getAll method for retrieving all transactions \n //console.log('Checking get store ' + getStore);\n\n getStore.onsucess = function () {\n if (getStore.result.length > 0) {\n fetch('/api/transaction/bulk', {\n method: \"POST\",\n body: JSON.stringify(getAll.result),\n headers: {\n Accept: 'application/json, text/plain, */*',\n 'Content-Type': 'application/json'\n },\n })\n .then((response) => response.json())\n .then((res) => {\n if (res.length !== 0) {\n\n transaction = db.transaction(['budgetStore'], 'readwrite')\n\n const currentStore = transaction.objectStore('budgetStore');\n\n currentStore.clear(); //clear store\n console.log(\"Clearing Store\")\n }\n });\n }\n }\n}", "function onGetListFail() {\n\n createlist();\n}", "function cbFindNext(er,ct){\n console.log('urlHash :'+urlHash);\n if(er) throw er;\n if(ct>0){\n var hash = crypto.createHash('sha256');\n urlHash = hash.update(url+urlHash).digest('base64').slice(0,6);\n urlL.count({urlIndex:urlHash},cbFindNext);\n }else{\n urlL.insert({url:url,urlIndex:urlHash},function(er,data){\n if(er){\n throw er;\n }\n //console.log(data);\n db.close();\n res = urlHash;\n cb(res);\n })\n }\n }", "checkForPreviousError(store, change, dataModelName, entityName, data, key) {\n const primaryKey = key || store.primaryKeyName;\n if (this.hasError(dataModelName, entityName, data[primaryKey])) {\n change.hasError = 1;\n change.errorMessage = `Blocked call due to error in previous call of entity [ ${entityName} ] with id [ ${data[primaryKey]} ]`;\n }\n }", "addFailedItems() {\n while(this.failedItems.length > 0) {\n let item = 0;\n this.items.push(this.failedItems[item]);\n this.failedItems.splice(item, 1);\n item += 1;\n }\n }", "async fetchExistingRecords () {\n const client = getAlgoliaClient()\n\n // return an empty array if the index does not exist yet\n const { items: indices } = await client.listIndices()\n\n if (!indices.find(index => index.name === this.name)) {\n console.log(`index '${this.name}' does not exist!`)\n return []\n }\n\n const index = client.initIndex(this.name)\n let records = []\n\n await index.browseObjects({\n batch: batch => (records = records.concat(batch))\n })\n\n return records\n }", "function storeNewEntryFailed() {\r\n topPlayers[newPosition - 1] = 'failed'; // indicates an error\r\n render();\r\n }", "async function checkIfPreviouslyCalled(str_number) {\n \n const DDB_DOCUMENT_CLIENT = new AWS.DynamoDB.DocumentClient({region: 'us-east-1'});\n \n const PARAMS = {\n TableName: 'vanityNumbers',\n Key: {\n callingNumber: str_number\n }\n };\n \n try {\n\n const ARR_RETURNED_ITEM = await DDB_DOCUMENT_CLIENT.get(PARAMS).promise();\n\n if (ARR_RETURNED_ITEM.Item.vanityNumbers) {\n\n return ARR_RETURNED_ITEM.Item.vanityNumbers;\n\n } else {\n\n return;\n\n }\n\n } catch (ex) {\n \n return; //If we return nothing even if there is something it gives the prog. a chance to still generate some valid vanity numbers\n\n }\n\n \n}", "recover(err) {\n const newBackOff = this.backOff ? Math.min(this.backOff * 2, 6e4) : 200;\n\n if (newBackOff > 1000 && this.backOff < 1000) {\n this.report.delay('error');\n }\n\n this.backOff = newBackOff;\n setTimeout(() => {\n if (this.state.comm == 'recover') {\n this.dispatch({\n type: 'poll'\n });\n }\n }, this.backOff);\n }", "function item_already_exists(my_object) \n{\n RMPApplication.debug (\"begin function item_already_exists\");\n c_debug(debug.exists, \"=> item_already_exists: my_object = \", my_object);\n var my_pattern = {};\n for (key in my_object) {\n my_pattern[key] = ( my_object[key] !== \"\" ) ? my_object[key] : \"\";\n }\n var options = {};\n options.asynchronous = false;\n res = false;\n eval(collectionid).listCallback(my_pattern, options, exists_ok, exists_ko);\n RMPApplication.debug (\"end function item_already_exists\");\n return res;\n}", "async function multipleFailures() {\r\n\tawait modelOne.promises.insert({\r\n\t\tupdated : \"im a string\",\r\n\t\tprimary_site : \"primary\",\r\n\t\tsites : [\"primary\"],\r\n\t\ttitle : \"testing\",\r\n\t\tmedia : [\r\n\t\t\t{\r\n\t\t\t\tmedianame : \"test1\",\r\n\t\t\t\tmediatype : \"something\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tmedianame : \"test2\",\r\n\t\t\t\tmediatype : true\r\n\t\t\t}\r\n\t\t]\r\n\t});\r\n}", "async cacheCheck(matchingResults, params, callback) {\n var qType = params.query.type;\n \n // matchingResults is an array\n if (matchingResults.length > 0) {\n var timeDiff = Date.now() - matchingResults[0].timestamp\n console.log(`${qType} data cache in DB is about ${Math.trunc(timeDiff / 1000 / 60)} minutes old (cache timestamp=${matchingResults[0].timestamp}).`)\n\n if (timeDiff < this.cacheLifetimeInMs) {\n // The data is recent. Use it\n\n console.log(`Cached ${qType} data will be returned`)\n callback(matchingResults[0].data)\n return\n }\n }\n\n // The data is not recent or doesn't even exist\n var newData = await this.scrape(params)\n var ts = Date.now()\n if (matchingResults.length > 0) {\n // Data already exists for params.query.type, so send an update\n this.db.updateTable('cache', {queryType: {$eq: `${qType}`}}, {queryType: `${qType}`, timestamp: ts, data: newData}, r => console.log(`Updated new ${qType} data at time=${ts}`))\n }\n else {\n // Data doesn't exist for params.query.type, so send an insert\n this.db.saveToTable('cache', [{queryType: `${qType}`, timestamp: ts, data: newData}], r => console.log(`Inserted new ${qType} data at time=${ts}`))\n }\n console.log(`New ${qType} data will be returned`)\n callback(newData)\n }", "function xi(e) {\n return t.__awaiter(this, void 0, void 0, (function() {\n return t.__generator(this, (function(t) {\n if (e.code !== D.FAILED_PRECONDITION || e.message !== jn) throw e;\n return h(\"LocalStore\", \"Unexpectedly lost primary lease\"), [ 2 /*return*/ ];\n }));\n }));\n}", "function fetch_retry(url, n) {\r\n return fetch(url).catch(function(error) {\r\n \tconsole.log(\"Failed request. Trying again\");\r\n if (n === 1) throw error;\r\n return fetch_retry(url, n - 1);\r\n });\r\n}", "function cacheReps(reps){\n reps.forEach( rep => {\n model.post(rep)\n .then(recorded => {\n return recorded\n })\n .catch(err => {\n console.log(`didn't cache`);\n })\n });\n}", "function retry(attempt) {\n const maxRetry = 3;\n if (attempt > maxRetry) {\n return false;\n }\n // Backoff\n Utilities.sleep(UrlFetcher.DelayMs * attempt);\n return true;\n}", "retry() {\n this.props.submitForm(this.formData);\n }", "loadFromCache(options) {\n const sAction = Pinball.name + '.loadFromCache';\n const sCacheUrl = options.sCacheUrl;\n const aProps = options.aProps;\n const cityCode = this.cityCode;\n\n // pinball now has a rw cacheDB\n this.cacheDB = new Cache({ sCacheUrl : sCacheUrl, setName: 'pb', scoreProperty: 'cs' });\n\n const t0 = Date.now();\n let t1;\n\n const scanPattern = `pb:${cityCode}:*`; // used for keys\n const setKey = cache.getSortedSetName(cityCode);\n console.log({ action: sAction, cityCode: cityCode, setKey: setKey });\n\n return this.cacheDB.orderedKeys({ setKey: setKey })\n .then( aKeys => {\n t1 = Date.now();\n console.log({ action: sAction + '.scanned.keys', cityCode: cityCode, length: aKeys.length, time: t1-t0 });\n let oBatchGetOptions = { aCacheIds: aKeys };\n return this.cacheDB.batchGetFromCache({ aCacheIds: aKeys, aProps: aProps });\n })\n .then( aObjects => {\n let t2 = Date.now();\n console.log({ action: sAction + '.batchGetFromCache', cityCode: cityCode, length: aObjects.length, time:t2-t1 });\n for (let i=0;i < aObjects.length;i++) {\n // console.log(aObjects[i].id,aObjects[i].cs)\n this.upsert(aObjects[i]);\n }\n aObjects = [];\n let t3 = Date.now();\n console.log({ action: sAction + '.finishedUpsert', cityCode: cityCode, length: this.aOrdered.length, time:t3-t2 });\n })\n }", "function select_loop_get_tr(listener, fname, attempts, callback) {\n if (attempts > 4) {\n callback(null)\n } else {\n let valid = is_alphanum(fname)\n let dne = false\n let usable = false\n if (valid) {\n const folderpath = '/var/lib/docker/volumes/CABINET/_data/DataPipeline'\n let filepath = folderpath + '/' + fname\n dne = fs.existsSync(filepath)\n usable = valid && !dne\n }\n if (!usable) {\n if (!valid) {\n console.log()\n console.log('dp: Invalid file name. Please try again.\\n')\n listener.question('', (fname_1) => {\n select_loop_get_tr(listener, fname_1, attempts + 1, callback)\n })\n } else {\n console.log()\n console.log('dp: Filename already in use. Please try again.\\n')\n listener.question('', (fname_1) => {\n select_loop_get_tr(listener, fname_1, attempts + 1, callback)\n })\n }\n } else {\n callback(fname)\n }\n }\n}", "resolveRecord() {}", "function checkDatabase() {\n // Open the \"pending\" transactions\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n // Set the store\n const store = transaction.objectStore(\"pending\");\n // get all records from store and set to getAllOffline\n const getAllOffline = store.getAll();\n\n getAllOffline.onsuccess = function () {\n // If statment to make sure there is something in the list\n if (getAllOffline.result.length > 0) {\n // Fetch POST request to send the data to the bulk fetch request\n fetch(\"/api/transaction/bulk\", {\n method: \"POST\",\n body: JSON.stringify(getAllOffline.result),\n headers: {\n Accept: \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n }\n })\n // Json the response\n .then(response => response.json())\n .then(() => {\n // if successful, open the \"pending\" transactions\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n // Set the store\n const store = transaction.objectStore(\"pending\");\n // Clear out the store\n store.clear();\n });\n }\n };\n}", "function checkSucess() {\n setTimeout(function() {\n if (answered && authenticated && readerOperations.length === 0) {\n done();\n } else {\n checkSucess();\n }\n }, asyncDelay);\n }", "async store({ request }) {\n const data = request.only(['ra', 'invitation_id'])\n\n //verifica se exits o estudante\n\n const student = await Database.from('students').where({ra:data.ra})\n if(student.length === 0){\n return {'error': \"don't exist\"};\n } \n\n //verifica se exist o convite\n\n const invitation = await Database.from('invitations').where({id: data.invitation_id})\n if(invitation.length === 0){\n return {'error':\"invitation does not exist\"}\n } \n\n //verifica se o aluno ja tem esse convite\n\n let si = await Database.from('studentInvitations')\n .where({invitation_id: data.invitation_id, ra: data.ra})\n \n if(si.length > 0){\n si = await Database.from('studentInvitations')\n .where({invitation_id: data.invitation_id, ra: data.ra}).del()\n return {si, msg:'delete'}\n }\n\n data.user_id = 1\n \n const si_id = await Database.from('studentInvitations').insert(data)\n\n if(si_id < 0) return {error: 'does not posible insert in the database'}\n\n si = await Database.from('studentInvitations').where({id:si_id})\n /** */\n return si\n }", "function handleBacklog() {\n var item = backlog.shift();\n if (item !== undefined) {\n console.log('from cache');\n // handle this single item\n realget(item.url, item.callback);\n } \n if (backlog.length === 0) {\n // if the backlog is empty \n // use realget for the next call\n getfunction = realget;\n }\n }", "attempt() {}", "registerAuthFailure(username) {\n const redisClient = this.redisClient;\n const multi = redisClient.multi();\n\n const key = this.createUserKey(username);\n\n // increment counter for key and add TTL\n multi.incr(key).expire(key, 60*30).exec(() => {});\n }", "async initialise()\n {\n let records = await super.initialise();\n /**\n * Mappint of primary key to records\n * @type {Map<string,Record>}\n */\n this.lookup = {};\n\n // populate lookup list\n for (let record of records)\n {\n let pkValue = record[this.primaryKey]\n this.lookup[pkValue] = record;\n }\n\n // set up listeners\n this.storage.on('create', record =>\n {\n console.log('NOTIFY CREATED', this.collectionName, record[this.primaryKey]);\n this.lookup[record[this.primaryKey]] = record;\n this.search.createRecord(record)\n .then(x => x, console.log.bind(console));\n });\n this.storage.on('update', record =>\n {\n console.log('NOTIFY UPDATED', this.collectionName, record[this.primaryKey]);\n this.lookup[record[this.primaryKey]] = record;\n this.search.updateRecord(record)\n .then(x => x, console.log.bind(console));\n });\n\n this.storage.on('delete', record =>\n {\n console.log('NOTIFY DELETED', this.collectionName, record[this.primaryKey]);\n delete this.lookup[record[this.primaryKey]];\n this.search.deleteRecord(record)\n .then(x => x, console.log.bind(console));\n });\n\n // install updater\n // see if storage has some clever way of receiving updates\n this.storage.startRecordUpdateCheck()\n\n return records;\n }", "function checkSucess() {\n setTimeout(function() {\n var lastOperation = readerOperations.pop();\n\n if (answered && authenticated && lastOperation === 'delete') {\n done();\n } else {\n checkSucess();\n }\n }, asyncDelay);\n }", "function checkDatabase() {\n console.log(\"Check database invoked\");\n\n // Open a connection to the transactions storage in read/write mode\n let transaction = db.transaction([\"transactions\"], \"readwrite\");\n\n // Assign the current store to a variable\n const store = transaction.objectStore(\"transactions\");\n\n // Get all records from storage and set to a variable\n const getAll = store.getAll();\n\n // If the request was successful\n getAll.onsuccess = function () {\n // If there are items in storage, try to add them in bulk when the connection is back online\n if (getAll.result.length > 0) {\n fetch(\"/api/transaction/bulk\", {\n method: \"POST\",\n body: JSON.stringify(getAll.result),\n headers: {\n Accept: \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\",\n },\n })\n .then((response) => response.json())\n .then((response) => {\n // If the response is not empty\n if (response.length !== 0) {\n // Open another connection to the transactions storage in read/write mode\n transaction = db.transaction([\"transactions\"], \"readwrite\");\n\n // Assign the current store to a variable\n const currentStore = transaction.objectStore(\"transactions\");\n\n // Clear existing entries because the bulk add was successful\n currentStore.clear();\n console.log(\"Clearing store...\");\n }\n });\n }\n };\n}", "function checkSucess() {\n setTimeout(function() {\n var lastOperation = readerOperations.pop();\n\n if (answered && authenticated && lastOperation === 'first') {\n done();\n } else {\n checkSucess();\n }\n }, asyncDelay);\n }", "function addAttempt(attempt)\n{\n return new Promise((resolve) => {\n \n let transaction = attemptsDb.transaction(['attempts'],'readwrite')\n transaction.oncomplete = e => {\n resolve(e);\n };\n\n let store = transaction.objectStore('attempts');\n store.add(attempt)\n\n\n })\n}", "static addNewReviewsWhenOnline() {\n this.restaurantsDb.selectObjects(this.restaurantsDb.pendingReviewsTable)\n .then(pendingReviews => {\n if (pendingReviews.length) {\n const cleanPendingReviews = this.deleteTempProperties(pendingReviews)\n cleanPendingReviews.forEach(pendingReview => {\n this.fetchAddNewReview(pendingReview).then(response => {\n this.restaurantsDb.insertObjects(this.restaurantsDb.reviewsTable, [response]);\n })\n });\n }\n }).then(() => {\n this.restaurantsDb.clearTable(this.restaurantsDb.pendingReviewsTable);\n });\n }", "performSpecifics(onSpecificsFinished){\n if(this.#specificItems.length == 0){\n onSpecificsFinished();\n return;\n }\n let limitPerSecond = 5;\n let counter = new bpu.AsyncCounter(limitPerSecond, ()=>{\n onSpecificsFinished();\n })\n for(var i=0;i<limitPerSecond;i++){\n let limitPerSearch = 20;\n let startIndex = 0;\n let endIndex = (this.#specificItems.length > limitPerSearch ? limitPerSearch : this.#specificItems.length);\n let itemSplice = this.#specificItems.splice(startIndex,endIndex);\n let itemIds = itemSplice.map((item)=>{return item.itemId[0]})\n if(itemIds.length == 0) {\n counter.increment();\n } else {\n this.#ebay.getMultipleItems({\n itemId: itemIds,\n IncludeSelector: 'ItemSpecifics'\n }).then((data) => {\n // insert specifics data in database here JON !!\n counter.increment();\n /*\n for (let k = 0; k < data.Item.length; k++) {\n for (let l = 0; l < items[0].searchResult[0].item.length; l++) {\n if (items[0].searchResult[0].item[l].itemId[0] == data.Item[k].ItemID) {\n items[0].searchResult[0].item[l].specifics = data.Item[k].ItemSpecifics\n }\n }\n }\n if (count == chunked.length) {\n callback(items)\n }\n */\n }, (error) => {\n console.log('Failed to fetch specifics' + error);\n // if failed to fetch specifics end the items to the end of the items to search specifics array\n for(failedItem in itemSplice){\n this.#specificItems.push(failedItem);\n }\n counter.increment();\n });\n }\n } \n }", "function retry() {\n if (!self.waitInterval) {\n setImmediate(function() {\n self._read(size);\n });\n } else {\n setTimeout(function() {\n self._read(size);\n }, self.waitInterval * Math.random()).unref();\n }\n }", "function retry() {\n if (!self.waitInterval) {\n setImmediate(function() {\n self._read(size);\n });\n } else {\n setTimeout(function() {\n self._read(size);\n }, self.waitInterval * Math.random()).unref();\n }\n }", "function makeEnsureExistsCallback(callback) {\n return function ensureExistsCallback(error,success) {\n //winston.log('info',sprintf(\"ensureExistsCallback:(%s,%s)\",JSON.stringify(error),JSON.stringify(success)));\n if (!error) {\n callback(null,1);\n }\n else if (error['code'] == mongo.errors.duplicateKeyError) {\n callback(null,0);\n } \n else {\n callback(error);\n }\n }\n }", "function attempt_error_recovery(tks) {\n if (typeof tks === 'string' || tks instanceof String) {\n tks = [tks];\n }\n while (token !== undefined && tks.indexOf(token['token']) === -1) {\n next_token();\n }\n if (token === undefined) {\n console.log('Error recovery failed');\n return false;\n }\n return true;\n}", "function checkDatabase() {\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n const store = transaction.objectStore(\"pending\");\n const getAll = store.getAll();\n\n getAll.onsuccess = function () {\n if (getAll.result.length > 0) {\n fetch(\"/api/transaction/bulk\", {\n method: \"POST\",\n body: JSON.stringify(getAll.result),\n headers: {\n Accept: \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\" \n }\n })\n .then(response => response.json())\n .then(() => {\n // Deletes records in the indexdb if successful \n const transaction = db.transaction([\"pending\"], \"readwrite\");\n const store = transaction.objectStore(\"pending\");\n store.clear();\n });\n }\n };\n}", "async refreshParcelsRouteDetails(parcels) {\n\n // Return promises of obtaining and updating route details for all provided parcels.\n let promises = parcels.map(async (parcel) => {\n // Declare attempt counter variable. \n let attemptCount = 0;\n\n // Re-attempt till successfully, or till error get re-throw.\n while (true) {\n\n // While number of currently handled requests is greater or equal to the provider requests limit delay next request by 100 ms.\n while (this.requestsCount >= this.requestsLimit) await delay(100);\n // Increase ongoing request counter by 1;\n this.requestsCount++;\n\n // Return promise of obtaining and updating parcel route details.\n try { return await refreshParcelRouteDetails(parcel, this.reqOptions); }\n // Retry or await to re-throw the error.\n catch (error) {\n // If error caught is indicating that the problem occurred on the server side ..\n if (error.code == \"ECONNRESET\" || error.code == \"ETIMEDOUT\" || (error instanceof HTTPError && error.statusCode >= 500)\n // .. and number of re-attempts is less than 10.\n && attemptCount < 10) {\n // Increase attemptCount\n attemptCount++;\n // Delay next attempt by one second.\n await delay(1000);\n // Execute onRetrying callback.\n this.onRetrying(parcel.number, error, attemptCount);\n // Otherwise re-throw caught error.\n } else { throw error; }\n // Finally decrease ongoing requests counter by 1;\n } finally { this.requestsCount--; }\n }\n });\n // Await till all parcels gonna be looped through.\n await Promise.all(promises);\n\n }", "function attempt() {\n return persister.selectOneUpdateTrack(dataContext).then(function(updateTrack) {\n if (!updateTrack) {\n return null;\n }\n \n return thisTracker._fetchAttributeValues(dataContext, updateTrack.key, updateTrack.attributes).then(function(attributeValues) {\n var change = ({key:updateTrack.key, serverKey:updateTrack.serverKey, attributeValues:attributeValues});\n \n if (attributeValues) {\n return change;\n }\n \n /* Invalid update track: settle and go on */\n return thisTracker.settleUpdate(dataContext, change).then(function() {\n return attempt();\n });\n });\n });\n }", "function retry(){\r\n location.reload();\r\n}", "function handle_search_failure(xhr, textStatus, errorThrown) {\n handle_search_asyn_counter(0);\n }", "function checkDatabase() {\n // getting the reference to the db\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n const store = transaction.objectStore(\"pending\");\n const getAll = store.getAll();\n\n getAll.onsuccess = function () {\n // posts if you have something bulk\n if (getAll.result.length > 0) {\n fetch(\"/api/transaction/bulk\", {\n method: \"POST\",\n body: JSON.stringify(getAll.result),\n headers: {\n Accept: \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\",\n },\n })\n .then((response) => {\n return response.json();\n })\n .then(() => {\n // delete records if successful\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n const store = transaction.objectStore(\"pending\");\n store.clear();\n });\n }\n };\n}", "checkFeedbackExist(key, value) {\r\n return __awaiter(this, void 0, void 0, function* () {\r\n try {\r\n let feedback_info = {};\r\n feedback_info[key] = value;\r\n const result = yield index_1.database.findFeedback(feedback_info);\r\n if (!result) {\r\n throw new Error(index_2.Errors.FEEDBACK_NOT_FOUND);\r\n }\r\n if (result.error) {\r\n throw new Error(index_2.Errors.INTERNAL_ERROR);\r\n }\r\n return result;\r\n }\r\n catch (err) {\r\n configLogger_1.logger.log('error', err.message);\r\n return { error: err.message };\r\n }\r\n });\r\n }", "function checkSucess() {\n setTimeout(function() {\n var lastOperation = readerOperations.pop();\n\n if (answered && authenticated && lastOperation === 'prev') {\n done();\n } else {\n checkSucess();\n }\n }, asyncDelay);\n }", "function handleSearchWaypointFailure(wpIndex) {\n\t\t\twaypoint.decrRequestCounterWaypoint(wpIndex);\n\t\t\tif (waypoint.getRequestCounterWaypoint(wpIndex) == 0) {\n\t\t\t\tui.searchWaypointChangeToSearchingState(false, wpIndex);\n\t\t\t\tui.showSearchWaypointError();\n\t\t\t}\n\t\t}", "function insertRecord( db, name, type, path ){\n\t\tvar d = q.defer();\n\t\tdb.run(\"INSERT OR IGNORE INTO searchIndex(name, type, path) VALUES ('\"+name+\"', '\"+type+\"', '\"+path+\"');\", function(){\n\t\t\td.resolve();\n\t\t});\n\t\treturn d.promise;\n\t}", "function handleSearchAddressFailure() {\n\t\t\tsearchAddress.requestCounter--;\n\t\t\tif (searchAddress.requestCounter == 0) {\n\t\t\t\tui.searchAddressChangeToSearchingState(false);\n\t\t\t\tui.showSearchAddressError();\n\t\t\t}\n\t\t}", "async loadOrDie(die) {\n if (this.isLoaded) return\n try {\n this.load()\n } catch (e) {\n die(`Error loading ${this.type} index`, e)\n }\n }", "function processFailures() {\n var now = Date.now();\n var cb = _.once(function () {\n setTimeout(processFailures, properties.sendTimeout + 1000); // 1000 is to avoid running again before all responses were processed\n });\n\n var stream = db.createReadStream({end: {time: now - properties.sendTimeout}});\n\n stream.on('data', function (data) {\n if (queueConcurrentSend > properties.maxQueueConcurrentSend) {\n stream.pause();\n }\n\n if ((data.value.sendAt + properties.sendTimeout) < now) { // if we need to re-send\n if (data.key.time + properties.maxTimeout < now) { // too old, send to dead queue\n queueConcurrentSend++;\n internalSend(cid, properties.deadQueue, data.key, data.value.msg, function () {\n queueConcurrentSend--;\n if (queueConcurrentSend === (properties.maxQueueConcurrentSend/2)) stream.resume();\n });\n } else {\n internalSend(data.value.msg.from, data.value.msg.to, data.key, data.value.msg, function () {\n queueConcurrentSend--;\n if (queueConcurrentSend === (properties.maxQueueConcurrentSend/2)) stream.resume();\n });\n }\n }\n });\n\n stream.on('error', function (err) {\n logger.warn('Read stream error : ', err);\n cb();\n });\n\n stream.on('end', cb);\n stream.on('close', cb);\n}", "populateOfflineDatabase(){\r\n return fetch(`${DBHelper.DATABASE_URL}/restaurants`)\r\n .then((response)=>{ return response.json(); })\r\n .then((restaurants)=>{ return Promise.all(restaurants.map((response)=>{this.addRecord(DBHelper.RESTAURANT_STORE_NAME, response)}, this)) })\r\n .then(()=>{ console.log(`Database filled`) })\r\n .catch((err)=>{\r\n console.log(`Database not updated with fresh network data: ${err}`)\r\n })\r\n }", "checkNextGeneratedKey() {\n if (!this.state.wallet) return;\n if (!aes_private) return; // locked\n\n if (!this.state.wallet.encrypted_brainkey) return; // no brainkey\n\n if (this.chainstore_account_ids_by_key === bitsharesjs__WEBPACK_IMPORTED_MODULE_11__.ChainStore.account_ids_by_key) return; // no change\n\n this.chainstore_account_ids_by_key = bitsharesjs__WEBPACK_IMPORTED_MODULE_11__.ChainStore.account_ids_by_key; // Helps to ensure we are looking at an un-used key\n\n try {\n this.generateNextKey(false\n /*save*/\n );\n } catch (e) {\n console.error(e);\n }\n }", "_replicateStoreToNewNode(contact, iterator, cb){\n\n if (!iterator ) //first time\n iterator = this._store.iterator();\n\n let itValue = iterator.next();\n\n while (itValue.value && !itValue.done) {\n\n const table = itValue.value[0].slice( 0, itValue.value[0].indexOf(':') );\n const key = itValue.value[0].slice( itValue.value[0].indexOf(':') + 1);\n\n const value = itValue.value[1];\n\n const keyNode = Buffer.from(key, 'hex');\n const neighbors = this._kademliaNode.routingTable.getClosestToKey(contact.identity)\n\n let newNodeClose, thisClosest;\n if (neighbors.length){\n const last = BufferUtils.xorDistance( neighbors[neighbors.length-1].identity, keyNode );\n newNodeClose = Buffer.compare( BufferUtils.xorDistance( contact.identity, keyNode), last );\n const first = BufferUtils.xorDistance( neighbors[0].identity, keyNode );\n thisClosest = Buffer.compare( BufferUtils.xorDistance( this._kademliaNode.contact.identity, keyNode ), first)\n }\n\n if (!neighbors.length || ( newNodeClose < 0 && thisClosest < 0 ) )\n return this.sendStore(contact, [ table, key, value], (err, out) => {\n\n if (err)\n return cb(err); //error\n\n NextTick( this._replicateStoreToNewNode.bind(this, contact, iterator, cb), global.KAD_OPTIONS.T_REPLICATE_TO_NEW_NODE_SLEEP )\n\n });\n else\n itValue = iterator.next();\n\n }\n\n if (!itValue.value || !itValue.done)\n cb(null, \"done\");\n\n }" ]
[ "0.5950579", "0.5898285", "0.58275133", "0.5569923", "0.55664915", "0.55436784", "0.54918206", "0.545611", "0.5455618", "0.54379696", "0.5436282", "0.53875566", "0.5375296", "0.5357101", "0.534239", "0.5321858", "0.5313009", "0.5301955", "0.5296614", "0.52749556", "0.52633125", "0.5243298", "0.52257806", "0.5225616", "0.52253646", "0.52220637", "0.5217023", "0.5188723", "0.5183388", "0.51790607", "0.5177697", "0.5177515", "0.51675224", "0.5133444", "0.5129765", "0.51174843", "0.51050186", "0.51050186", "0.51050186", "0.51050186", "0.51050186", "0.51050186", "0.50789136", "0.5059971", "0.505926", "0.5021037", "0.5005038", "0.5004594", "0.49967653", "0.49859887", "0.4983506", "0.4979698", "0.49777225", "0.49772686", "0.49545476", "0.49541986", "0.4952831", "0.49517363", "0.49465758", "0.4939451", "0.4929059", "0.4927487", "0.49261338", "0.49253154", "0.49221158", "0.49124792", "0.49108273", "0.4910682", "0.49097234", "0.49082327", "0.4907716", "0.49075165", "0.49016303", "0.4898548", "0.4897979", "0.4894216", "0.48939604", "0.4893932", "0.48851636", "0.4883867", "0.4881081", "0.4881081", "0.4878404", "0.4875008", "0.48706666", "0.48681644", "0.48645258", "0.48643452", "0.48639655", "0.48621398", "0.48616064", "0.48590538", "0.48583388", "0.4851323", "0.48476502", "0.48417306", "0.48409435", "0.48377433", "0.48340794", "0.48325107" ]
0.68995273
0
Find the first block level element, as we need the containing element, not just the next one up
function findParentRatio(jqObject) { var p = jqObject.parent(), displayType = p.css('display'); if (displayType == 'block' || displayType == '-webkit-box' && p.width() > 0) { return { obj: p, width: p.width(), height: p.height(), ratio: (p.width() / p.height()) }; } else { return findParentRatio(p); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFirstBlockElement(rootNode) {\n return getFirstLastBlockElement(rootNode, true /*isFirst*/);\n}", "function getAncestor(el) {\n var temp = el;\n while (el) {\n if ($(el).attr('_pf_ele_id') === undefined) {\n var curEleID = _pf_eleCnt++;\n $(el).attr('_pf_ele_id', curEleID);\n\n if (jQueryGeneric(rez, el, el)) {\n if ($(el).attr('_pf_event_id') === undefined) {\n $(el).attr('_pf_event_id', _pf_eventCnt++);\n _pf_elementList.push([+$(el).attr('_pf_ele_id'), el]);\n _pf_elementInfo[curEleID] = {\n 'position': [-1, -1],\n 'size': [-1, -1]\n }\n }\n };\n }\n\n if ($(el).attr('_pf_event_id') !== undefined) {\n break;\n }\n var pa = $(el).parent()[0];\n if (!pa) break;\n // if ($(pa).width() !== $(el).width() || $(pa).height() !== $(el).height()) break;\n el = pa;\n }\n if (!el || $(el).attr('_pf_event_id') === undefined) {\n return temp;\n }\n else {\n return el;\n }\n }", "function findRootHeader(el) {\n var toReturn;\n toReturn = el;\n while (jQuery.inArray(jQuery(toReturn).get(0).tagName, ['H1', 'H2', 'H3', 'H4', 'H5', 'H6']) < 0) {\n toReturn = jQuery(toReturn).parent();\n }\n return toReturn;\n }", "function getFirstInlineElement(rootNode) {\n // getFirstLeafNode can return null for empty container\n // do check null before passing on to get inline from the node\n var node = getLeafNode_1.getFirstLeafNode(rootNode);\n return node ? getInlineElementAtNode_1.default(rootNode, node) : null;\n}", "function xFirstChild(e,t)\r\n{\r\n e = xGetElementById(e);\r\n var c = e ? e.firstChild : null;\r\n while (c) {\r\n if (c.nodeType == 1 && (!t || c.nodeName.toLowerCase() == t.toLowerCase())){break;}\r\n c = c.nextSibling;\r\n }\r\n return c;\r\n}", "function firstChild() {\n var firstElement = this.elements[0].firstElementChild;\n\n return $.make(firstElement);\n }", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n let furthestBlock = null;\n let idx = p.openElements.stackTop;\n for (; idx >= 0; idx--) {\n const element = p.openElements.items[idx];\n if (element === formattingElementEntry.element) {\n break;\n }\n if (p._isSpecialElement(element, p.openElements.tagIDs[idx])) {\n furthestBlock = element;\n }\n }\n if (!furthestBlock) {\n p.openElements.shortenToLength(idx < 0 ? 0 : idx);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n return furthestBlock;\n}", "function getFirstChild(el){\n var firstChild = el.firstChild;\n while(firstChild != null && firstChild.nodeType == 3) {\n firstChild = firstChild.nextSibling;\n }\n return firstChild;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element) break;\n\n if (p._isSpecialElement(element)) furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(\n formattingElementEntry.element,\n );\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n }", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n let furthestBlock = null;\n\n for (let i = p.openElements.stackTop; i >= 0; i--) {\n const element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element) {\n break;\n }\n\n if (p._isSpecialElement(element)) {\n furthestBlock = element;\n }\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n let furthestBlock = null;\n\n for (let i = p.openElements.stackTop; i >= 0; i--) {\n const element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element) {\n break;\n }\n\n if (p._isSpecialElement(element)) {\n furthestBlock = element;\n }\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n let furthestBlock = null;\n\n for (let i = p.openElements.stackTop; i >= 0; i--) {\n const element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element) {\n break;\n }\n\n if (p._isSpecialElement(element)) {\n furthestBlock = element;\n }\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n let furthestBlock = null;\n\n for (let i = p.openElements.stackTop; i >= 0; i--) {\n const element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element) {\n break;\n }\n\n if (p._isSpecialElement(element)) {\n furthestBlock = element;\n }\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function getFirstMatchingEl(start, match_func)\n {\n function ssibs(n)\n {\n if (n)\n {\n if (match_func(n))\n return n;\n else\n return ssibs(nextSiblingEl(n));\n }\n return n;\n }\n\n function search(base)\n {\n var fchild = firstChildEl(base);\n var n = ssibs(fchild);\n if (!n)\n {\n var i = fchild;\n while (i && !(n=search(i)))\n i = nextSiblingEl(i);\n }\n return n;\n }\n\n return search(start);\n }", "firstParent(selector) {\n let parent = this.parent();\n while (parent.isPresent()) {\n if (parent.matchesSelector(selector)) {\n return parent;\n }\n parent = parent.parent();\n }\n return DomQuery.absent;\n }", "firstParent(selector) {\n let parent = this.parent();\n while (parent.isPresent()) {\n if (parent.matchesSelector(selector)) {\n return parent;\n }\n parent = parent.parent();\n }\n return DomQuery.absent;\n }", "function firstElementChild(elem) {\n\telem = elem.firstChild;\n\n\twhile (elem != null) {\n\t\tif (elem.nodeType == 1)\n\t\t\treturn elem;\n\n\t\telem = elem.nextSibling;\n\t}\n\n\treturn null;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\n var furthestBlock = null;\n\n for (var i = p.openElements.stackTop; i >= 0; i--) {\n var element = p.openElements.items[i];\n\n if (element === formattingElementEntry.element)\n break;\n\n if (p._isSpecialElement(element))\n furthestBlock = element;\n }\n\n if (!furthestBlock) {\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\n p.activeFormattingElements.removeEntry(formattingElementEntry);\n }\n\n return furthestBlock;\n}", "function aaObtainFurthestBlock(p, formattingElementEntry) {\r\n var furthestBlock = null;\r\n\r\n for (var i = p.openElements.stackTop; i >= 0; i--) {\r\n var element = p.openElements.items[i];\r\n\r\n if (element === formattingElementEntry.element)\r\n break;\r\n\r\n if (p._isSpecialElement(element))\r\n furthestBlock = element;\r\n }\r\n\r\n if (!furthestBlock) {\r\n p.openElements.popUntilElementPopped(formattingElementEntry.element);\r\n p.activeFormattingElements.removeEntry(formattingElementEntry);\r\n }\r\n\r\n return furthestBlock;\r\n}", "function findFirstFocusableElement(element) {\n if (isFocusable(element)) {\n return element;\n }\n\n var children = element.children;\n var length = children.length;\n var child;\n var focusableDescendant;\n\n for (var i = 0; i < length; i += 1) {\n child = children[i];\n\n focusableDescendant = findFirstFocusableElement(child);\n\n if (focusableDescendant) {\n return focusableDescendant;\n }\n }\n\n return null;\n }", "getFirstElement(widget, left) {\n let firstLineIndent = 0;\n if (this.isParagraphFirstLine(widget) && !widget.paragraph.paragraphFormat.bidi) {\n firstLineIndent = HelperMethods.convertPointToPixel(widget.paragraph.paragraphFormat.firstLineIndent);\n }\n left += firstLineIndent;\n let element = undefined;\n for (let i = 0; i < widget.children.length; i++) {\n element = widget.children[i];\n if (element instanceof ListTextElementBox) {\n if (widget.paragraph.paragraphFormat.bidi) {\n left += element.margin.left;\n element = undefined;\n break;\n }\n left += element.margin.left + element.width;\n element = undefined;\n // }\n // else if (element instanceof FieldElementBox || element instanceof BookmarkElementBox\n // || (element.nextNode instanceof FieldElementBox && ((element.nextNode as FieldElementBox).fieldType === 2))) {\n // element = undefined;\n }\n else {\n break;\n }\n }\n return { 'element': element, 'left': left };\n }", "function getContainingBlock(element) {\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle_getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle_getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle_getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function firstVisibleChild() {\n for (var i = 0; i < openMenuNode.children.length; ++i) {\n if ($window.getComputedStyle(openMenuNode.children[i]).display != 'none') {\n return openMenuNode.children[i];\n }\n }\n }", "function firstVisibleChild() {\n for (var i = 0; i < openMenuNode.children.length; ++i) {\n if ($window.getComputedStyle(openMenuNode.children[i]).display != 'none') {\n return openMenuNode.children[i];\n }\n }\n }", "function firstVisibleChild() {\n for (var i = 0; i < openMenuNode.children.length; ++i) {\n if ($window.getComputedStyle(openMenuNode.children[i]).display != 'none') {\n return openMenuNode.children[i];\n }\n }\n }", "function firstVisibleChild() {\n for (var i = 0; i < openMenuNode.children.length; ++i) {\n if ($window.getComputedStyle(openMenuNode.children[i]).display != 'none') {\n return openMenuNode.children[i];\n }\n }\n }", "function firstVisibleChild() {\n for (var i = 0; i < openMenuNode.children.length; ++i) {\n if ($window.getComputedStyle(openMenuNode.children[i]).display != 'none') {\n return openMenuNode.children[i];\n }\n }\n }", "get firstElementChild() {\n const children = this.childElements;\n return children.length > 0 ? children[0] : null;\n }", "function getContainingBlock(element) {\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "get firstChild() {\n var _a;\n return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;\n }", "function getFirstLastBlockElement(rootNode, isFirst) {\n var node = rootNode;\n do {\n node = node && (isFirst ? node.firstChild : node.lastChild);\n } while (node && node.firstChild);\n return node && getBlockElementAtNode_1.default(rootNode, node);\n}", "function firstVisibleChild() {\n for (var i = 0; i < openMenuNode.children.length; ++i) {\n if (window.getComputedStyle(openMenuNode.children[i]).display !== 'none') {\n return openMenuNode.children[i];\n }\n }\n }", "static getChild(el, klass) {\n if (el == null)\n return null;\n for (let node = el.firstElementChild; node != null; node = node === null || node === void 0 ? void 0 : node.nextElementSibling) {\n if (Dom.hasClass(node, klass))\n return node;\n }\n return null;\n }", "function getContainingBlock(element) {\n var currentNode = Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(element);\n\n while (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(currentNode) && ['html', 'body'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(currentNode)) < 0) {\n var css = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var currentNode = Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(element);\n\n while (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(currentNode) && ['html', 'body'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(currentNode)) < 0) {\n var css = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var currentNode = Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(element);\n\n while (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(currentNode) && ['html', 'body'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(currentNode)) < 0) {\n var css = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function firstVisibleChild(){for(var i=0;i<openMenuNode.children.length;++i){if($window.getComputedStyle(openMenuNode.children[i]).display!='none'){return openMenuNode.children[i];}}}", "function getFirstLeaf(node) {\n while (node.firstChild && (\n // data-blocks has no offset\n node.firstChild instanceof Element && node.firstChild.getAttribute('data-blocks') === 'true' || getSelectionOffsetKeyForNode(node.firstChild))) {\n node = node.firstChild;\n }\n return node;\n}", "function getFirstLeaf(node) {\n while (node.firstChild && (\n // data-blocks has no offset\n node.firstChild instanceof Element && node.firstChild.getAttribute('data-blocks') === 'true' || getSelectionOffsetKeyForNode(node.firstChild))) {\n node = node.firstChild;\n }\n return node;\n}", "function getFirstLeaf(node) {\n while (node.firstChild && (\n // data-blocks has no offset\n node.firstChild instanceof Element && node.firstChild.getAttribute('data-blocks') === 'true' || getSelectionOffsetKeyForNode(node.firstChild))) {\n node = node.firstChild;\n }\n return node;\n}", "function getFirstLeaf(node) {\n while (node.firstChild && (\n // data-blocks has no offset\n node.firstChild instanceof Element && node.firstChild.getAttribute('data-blocks') === 'true' || getSelectionOffsetKeyForNode(node.firstChild))) {\n node = node.firstChild;\n }\n return node;\n}", "function getFirstLeaf(node) {\n while (node.firstChild && (\n // data-blocks has no offset\n node.firstChild instanceof Element && node.firstChild.getAttribute('data-blocks') === 'true' || getSelectionOffsetKeyForNode(node.firstChild))) {\n node = node.firstChild;\n }\n return node;\n}", "get firstChild() {\n return this.childNodes[0] || null;\n }", "get firstChild() {\n return this.content.length ? this.content[0] : null;\n }", "function findNext(el) {\n var branch = $$mdTree.getBranch(el[0].parentNode);\n if (!branch) { return null; }\n var next = angular.element(branch).next();\n if (next && next.length) { return next; }\n return findNext(angular.element(branch));\n }", "function $CUhI$var$getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && $wsKO$export$isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = $S6rb$export$default(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = $IVKl$export$default(element);\n\n while ($wsKO$export$isHTMLElement(currentNode) && ['html', 'body'].indexOf($B1zX$export$default(currentNode)) < 0) {\n var css = $S6rb$export$default(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function recordContaining(elt) {\n const $elt = $(elt), eltRect = elt.getBoundingClientRect();\n const nia = nonInlineAncestors(elt);\n for (const ancestorElt of nia) {\n const ancestorRect = ancestorElt.getBoundingClientRect();\n if (\n eltRect.top < ancestorRect.top ||\n eltRect.left < ancestorRect.left ||\n eltRect.bottom > ancestorRect.bottom ||\n eltRect.right > ancestorRect.right\n ) {\n continue;\n }\n const ancestorArea = eltArea(ancestorElt);\n for (const curClass of Array.from(ancestorElt.classList)) {\n // Only look at classes for elements that are the tightest fit around\n // elt:\n if ($elt.closest('.' + curClass)[0] !== ancestorElt) {\n continue;\n }\n\n const classArea = occupiedSpace('.' + curClass);\n if (ancestorArea * 8 <= classArea) {\n // curClass is probably the \"record class\": it is on a block element\n // and the total real estate of that kind of block is at least 8 times\n // larger than the real estate of ancestorElt.\n return ancestorElt;\n }\n }\n }\n return nia[nia.length - 1] || elt;\n}", "static findFirstChildNode(node, kindToMatch) {\n for (const child of node.getChildren()) {\n if (child.kind === kindToMatch) {\n return child;\n }\n const recursiveMatch = TypeScriptHelpers.findFirstChildNode(child, kindToMatch);\n if (recursiveMatch) {\n return recursiveMatch;\n }\n }\n return undefined;\n }", "getFirstElementInternal(widget) {\n let element = undefined;\n let isBidi = widget.paragraph.paragraphFormat.bidi;\n let childLen = widget.children.length;\n for (let i = isBidi ? childLen - 1 : 0; isBidi ? i >= 0 : i < childLen; isBidi ? i-- : i++) {\n element = widget.children[i];\n if (element instanceof ListTextElementBox) {\n element = undefined;\n }\n else {\n break;\n }\n }\n return element;\n }", "function scanLevel(element){if(element){for(var i=0,len=element.length;i<len;i++){if(element[i].nodeName.toLowerCase()===nodeName){return element[i];}}}return null;}", "function first(selector, context) {return (context || document).querySelector(selector);}", "peek(){\n var topElement = this.start;\n return topElement;\n }", "function getCurrentBlock(node){\n // if input is a selection, then convert from a text node to a \"real\" HTML tag by getting the node where the selection started\n if(node instanceof Selection){\n node = node.anchorNode.parentElement;\n }\n \n // within the selection, there's a Text object, which holds the content of the \"real\" HTML tag. But I need to get the proper tag.\n if(node instanceof Text){\n node = node.parentElement;\n }\n \n // now the node must be a \"real\" HTML tag\n if(node.tagName == \"SPAN\" || node.tagName == \"A\"){\n return node.parentNode;\n }else{\n return node;\n }\n}", "function findParent(el0, predicate) {\n if (!el0) return null;\n let el = el0.parentElement;\n if (!el) return null;\n do {\n if (predicate(el)) {\n return el;\n }\n el = el.parentElement;\n } while (el);\n return null;\n }", "function getFirstLastInlineElementFromBlockElement(block, isFirst) {\n if (block instanceof NodeBlockElement_1.default) {\n var blockNode = block.getStartNode();\n return isFirst ? getFirstLastInlineElement_1.getFirstInlineElement(blockNode) : getFirstLastInlineElement_1.getLastInlineElement(blockNode);\n }\n else {\n return getInlineElementAtNode_1.default(block, isFirst ? block.getStartNode() : block.getEndNode());\n }\n}", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n if (isIE && _instanceOfJs.isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = _getComputedStyleJsDefault.default(element);\n if (elementCss.position === 'fixed') return null;\n }\n var currentNode = _getParentNodeJsDefault.default(element);\n while(_instanceOfJs.isHTMLElement(currentNode) && [\n 'html',\n 'body'\n ].indexOf(_getNodeNameJsDefault.default(currentNode)) < 0){\n var css = _getComputedStyleJsDefault.default(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || [\n 'transform',\n 'perspective'\n ].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') return currentNode;\n else currentNode = currentNode.parentNode;\n }\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function html_getFirstAncestorTag(startNode, ancestorTag) {\n ancestorTag = ancestorTag.toUpperCase();\n var cur = startNode.parentNode;\n while (cur) {\n if (cur.tagName == ancestorTag) {\n return cur;\n }\n cur = cur.parentNode;\n }\n\n return null;\n}", "getFirstParagraphBlock(block) {\n if (block instanceof ParagraphWidget) {\n return block;\n }\n else if (block instanceof TableWidget) {\n return this.getFirstParagraphInFirstCell(block);\n }\n return undefined;\n }", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var currentNode = Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(element);\n\n while (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(currentNode) && ['html', 'body'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(currentNode)) < 0) {\n var css = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "static findFirstParent(node, kindToMatch) {\n let current = node.parent;\n while (current) {\n if (current.kind === kindToMatch) {\n return current;\n }\n current = current.parent;\n }\n return undefined;\n }", "function getFirstChildWithTagName( element, tagName ) {\n\tfor ( var i = 0; i < element.childNodes.length; i++ ) {\n\t\tif ( element.childNodes[i].nodeName == tagName ) return element.childNodes[i];\n\t}\n}", "function IWGetFirstChild(parent) {\r\n var children = parent.childNodes;\r\n if (children.length == 0)\r\n return null;\r\n\r\n for (var i = 0; i < children.length; i++) {\r\n if (children[i].nodeType == 1)\r\n return children[i];\r\n }\r\n return null;\r\n}", "function scanLevel(element) {\n if (element) {\n for (var i = 0, len = element.length; i < len; i++) {\n if (element[i].nodeName.toLowerCase() === nodeName) {\n return element[i];\n }\n }\n }\n return null;\n }", "function scanLevel(element) {\n if ( element ) {\n for (var i = 0, len = element.length; i < len; i++) {\n if (element[i].nodeName.toLowerCase() === nodeName) {\n return element[i];\n }\n }\n }\n return null;\n }", "function scanLevel(element) {\n if ( element ) {\n for (var i = 0, len = element.length; i < len; i++) {\n if (element[i].nodeName.toLowerCase() === nodeName) {\n return element[i];\n }\n }\n }\n return null;\n }", "function scanLevel(element) {\n if ( element ) {\n for (var i = 0, len = element.length; i < len; i++) {\n if (element[i].nodeName.toLowerCase() === nodeName) {\n return element[i];\n }\n }\n }\n return null;\n }", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle$1(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n } // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(element);\n\n while (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(currentNode) && ['html', 'body'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(currentNode)) < 0) {\n var css = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(element);\n\n while (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__[\"isHTMLElement\"])(currentNode) && ['html', 'body'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(currentNode)) < 0) {\n var css = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle$1(element);\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n var currentNode = getParentNode(element);\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n return null;\n } // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().includes('firefox');\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].includes(css.willChange) || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "findFirstOverflowingNodeRange() {\n const foundNode = this.nodes.find((node) => {\n const rect = this.rectFilter.get(node);\n return rect.bottom > (this.rootRect.bottom - this.bottomSpace);\n });\n\n if (!foundNode || foundNode.nodeType === Node.TEXT_NODE || foundNode === this.firstNode) {\n return null;\n }\n const range = new Range();\n range.setStartBefore(foundNode);\n return range;\n }", "function getContainingBlock$1(element){var isFirefox=navigator.userAgent.toLowerCase().indexOf('firefox')!==-1;var isIE=navigator.userAgent.indexOf('Trident')!==-1;if(isIE&&isHTMLElement$1(element)){// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\nvar elementCss=getComputedStyle$2(element);if(elementCss.position==='fixed'){return null;}}var currentNode=getParentNode$1(element);while(isHTMLElement$1(currentNode)&&['html','body'].indexOf(getNodeName$1(currentNode))<0){var css=getComputedStyle$2(currentNode);// This is non-exhaustive but covers the most common CSS properties that\n// create a containing block.\n// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\nif(css.transform!=='none'||css.perspective!=='none'||css.contain==='paint'||['transform','perspective'].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==='filter'||isFirefox&&css.filter&&css.filter!=='none'){return currentNode;}else {currentNode=currentNode.parentNode;}}return null;}// Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__.default)(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = (0,_getParentNode_js__WEBPACK_IMPORTED_MODULE_2__.default)(element);\n\n while ((0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(currentNode) && ['html', 'body'].indexOf((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_3__.default)(currentNode)) < 0) {\n var css = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__.default)(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__.default)(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = (0,_getParentNode_js__WEBPACK_IMPORTED_MODULE_2__.default)(element);\n\n while ((0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(currentNode) && ['html', 'body'].indexOf((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_3__.default)(currentNode)) < 0) {\n var css = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__.default)(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__.default)(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = (0,_getParentNode_js__WEBPACK_IMPORTED_MODULE_2__.default)(element);\n\n while ((0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(currentNode) && ['html', 'body'].indexOf((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_3__.default)(currentNode)) < 0) {\n var css = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__.default)(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && (0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__.default)(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = (0,_getParentNode_js__WEBPACK_IMPORTED_MODULE_2__.default)(element);\n\n while ((0,_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__.isHTMLElement)(currentNode) && ['html', 'body'].indexOf((0,_getNodeName_js__WEBPACK_IMPORTED_MODULE_3__.default)(currentNode)) < 0) {\n var css = (0,_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__.default)(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function getFirstParentNative(tNode){var parent=tNode.parent;while(parent&&parent.type===5/* IcuContainer */){parent=parent.parent;}return parent;}", "function scanLevel(element) {\n if ( element ) {\n for (var i = 0, len = element.length; i < len; i++) {\n if (element[i].nodeName.toLowerCase() === nodeName) {\n return element[i];\n }\n }\n }\n return null;\n }", "function getElt(current, tagName)\n{\n if (current === null)\n {\n console.trace();\n throw new Error(\"util.js: getElt: parameter is null\");\n }\n if (current.childNodes === undefined)\n throw new Error(\"util.js: getElt: parameter is not a document element\");\n if (current)\n { // valid current\n for (let i = 0; i < current.childNodes.length; i++)\n {\n let cNode = current.childNodes[i];\n if (cNode.nodeType == 1)\n { // element node\n if (cNode.nodeName.toUpperCase() == tagName.toUpperCase())\n return cNode;\n else\n { // search recursively\n let element = getElt(cNode, tagName);\n if (element)\n return element;\n } // search recursively\n } // element node\n } // loop through children of current\n } // valid current\n else\n { // no parent\n throw \"util.js: getElt(\" + current + \",'\" + tagName + \"')\";\n } // no parent\n return null;\n}", "function getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle_getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle_getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,", "function findSizedParent(element) {\n var parent = element.parent();\n\n while (parent && parent.width() === 0) {\n parent = parent.parent();\n }\n\n return parent;\n }", "function getFirstVisiblePosition(el) {\r\n var firstVisibleTextChild = isTextNode(el) ? el : getFirstVisibleTextNode(el);\r\n var curDocument = findDocument(el);\r\n var range = curDocument.createRange();\r\n if (firstVisibleTextChild) {\r\n range.selectNodeContents(firstVisibleTextChild);\r\n return calculatePositionByNodeAndOffset(el, { node: firstVisibleTextChild, offset: range.startOffset });\r\n }\r\n return 0;\r\n }", "findFirstParent(kindToMatch) {\n let current = this;\n while (current) {\n if (current.kind === kindToMatch) {\n return current;\n }\n current = current.parent;\n }\n return undefined;\n }" ]
[ "0.73988456", "0.6648049", "0.6624329", "0.6550227", "0.6535015", "0.65293753", "0.65207654", "0.6516398", "0.650746", "0.6506341", "0.6506341", "0.6506341", "0.6506341", "0.64794606", "0.64739", "0.64739", "0.6472377", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.6465381", "0.64606905", "0.64402145", "0.6396411", "0.6376145", "0.6376145", "0.6376145", "0.6354532", "0.6354532", "0.6354532", "0.6354532", "0.6354532", "0.63540375", "0.63450736", "0.63450736", "0.6338341", "0.628722", "0.62808186", "0.6258619", "0.62221307", "0.62221307", "0.62221307", "0.6200367", "0.6162181", "0.6162181", "0.6162181", "0.6162181", "0.6162181", "0.6155798", "0.6150427", "0.61489373", "0.6146076", "0.6138677", "0.6092278", "0.6090254", "0.6086634", "0.60769266", "0.60689956", "0.6065521", "0.6054819", "0.6034669", "0.6019127", "0.60164666", "0.60069704", "0.59956884", "0.5991858", "0.59840393", "0.5961218", "0.5955897", "0.5951271", "0.5951271", "0.5951271", "0.5946027", "0.5928017", "0.5928017", "0.59146196", "0.5911493", "0.59105825", "0.5907462", "0.59071165", "0.59020895", "0.59020895", "0.59020895", "0.59020895", "0.58963114", "0.58949083", "0.5889305", "0.5882821", "0.58828104", "0.58765686", "0.58743346" ]
0.0
-1
inheritance || direct field || aggregations given
if (!this.inheritedPath) { return isDirectField(this.field) ? wrapPlainDirectLeave.call(this, aggregation) : wrapPlainIndirectLeave.call(this, aggregation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function aggsFromFields() {\n // Remove current query from queries list (do not react to self)\n function withoutOwnQueries() {\n const q = new Map(queries);\n q.delete(id);\n return q;\n }\n // Transform a single field to agg query\n function aggFromField(field) {\n const t = { field, order: { _count: \"desc\" }, size };\n if (filterValue) {\n t.include = !filterValueModifier\n ? `.*${filterValue}.*`\n : filterValueModifier(filterValue);\n }\n return { [field]: { terms: t } };\n }\n // Actually build the query from fields\n let result = {};\n fields.forEach((f) => {\n result = { ...result, ...aggFromField(f) };\n });\n return { query: queryFrom(withoutOwnQueries()), size: 0, aggs: result };\n }", "function aggFromField(field) {\n const t = { field, order: { _count: \"desc\" }, size };\n if (filterValue) {\n t.include = !filterValueModifier\n ? `.*${filterValue}.*`\n : filterValueModifier(filterValue);\n }\n return { [field]: { terms: t } };\n }", "get _topLevelAggregations() {\n const aggs = this.groupedBy.split(',').map((term) => {\n return {\n by: {\n terms: {\n field: this._fieldFor(term.trim()),\n },\n },\n };\n });\n\n // set max number of buckets to return\n if (this.groupLimit !== -1 && aggs.length) {\n aggs[0].by.terms.size = this.groupLimit;\n }\n\n return aggs;\n }", "function getTypes() {\n return ['aggregated'];\n }", "get_aggregate_attribute() {\n const aggs = JSON.parse(this.getAttribute(\"aggregates\")) || {};\n return Object.keys(aggs).map(col => ({column: col, op: aggs[col]}));\n }", "function aggrType(def, scale) {\n\t var refs = getRefs(def);\n\n\t // If we're operating over only a single domain, send full tuples\n\t // through for efficiency (fewer accessor creations/calls)\n\t if (refs.length == 1 && dl.array(refs[0].field).length == 1) {\n\t return Aggregate.TYPES.TUPLE;\n\t }\n\n\t // With quantitative scales, we only care about min/max.\n\t if (!isUniques(scale)) return Aggregate.TYPES.VALUE;\n\n\t // If we don't sort, then we can send values directly to aggrs as well\n\t if (!dl.isObject(def.sort)) return Aggregate.TYPES.VALUE;\n\n\t return Aggregate.TYPES.MULTI;\n\t}", "function aggrType(def, scale) {\n var refs = getRefs(def);\n\n // If we're operating over only a single domain, send full tuples\n // through for efficiency (fewer accessor creations/calls)\n if (refs.length == 1 && dl.array(refs[0].field).length == 1) {\n return Aggregate.TYPES.TUPLE;\n }\n\n // With quantitative scales, we only care about min/max.\n if (!isUniques(scale)) return Aggregate.TYPES.VALUE;\n\n // If we don't sort, then we can send values directly to aggrs as well\n if (!dl.isObject(def.sort)) return Aggregate.TYPES.VALUE;\n\n return Aggregate.TYPES.MULTI;\n}", "function aggrType(def, scale) {\n var refs = getRefs(def);\n\n // If we're operating over only a single domain, send full tuples\n // through for efficiency (fewer accessor creations/calls)\n if (refs.length == 1 && dl.array(refs[0].field).length == 1) {\n return Aggregate.TYPES.TUPLE;\n }\n\n // With quantitative scales, we only care about min/max.\n if (!isUniques(scale)) return Aggregate.TYPES.VALUE;\n\n // If we don't sort, then we can send values directly to aggrs as well\n if (!dl.isObject(def.sort)) return Aggregate.TYPES.VALUE;\n\n return Aggregate.TYPES.MULTI;\n}", "function Aggregate() {}", "function _vgField(fieldDef) {\n var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var _a, _b, _c;\n\n var field = fieldDef.field;\n var prefix = opt.prefix;\n var suffix = opt.suffix;\n var argAccessor = ''; // for accessing argmin/argmax field at the end without getting escaped\n\n if (isCount(fieldDef)) {\n field = internalField('count');\n } else {\n var fn;\n\n if (!opt.nofn) {\n if (isOpFieldDef(fieldDef)) {\n fn = fieldDef.op;\n } else {\n var bin = fieldDef.bin,\n aggregate = fieldDef.aggregate,\n timeUnit = fieldDef.timeUnit;\n\n if (isBinning(bin)) {\n fn = binToString(bin);\n suffix = ((_a = opt.binSuffix) !== null && _a !== void 0 ? _a : '') + ((_b = opt.suffix) !== null && _b !== void 0 ? _b : '');\n } else if (aggregate) {\n if (isArgmaxDef(aggregate)) {\n argAccessor = \"[\\\"\".concat(field, \"\\\"]\");\n field = \"argmax_\".concat(aggregate.argmax);\n } else if (isArgminDef(aggregate)) {\n argAccessor = \"[\\\"\".concat(field, \"\\\"]\");\n field = \"argmin_\".concat(aggregate.argmin);\n } else {\n fn = String(aggregate);\n }\n } else if (timeUnit) {\n fn = timeUnitToString(timeUnit);\n suffix = (!contains(['range', 'mid'], opt.binSuffix) && opt.binSuffix || '') + ((_c = opt.suffix) !== null && _c !== void 0 ? _c : '');\n }\n }\n }\n\n if (fn) {\n field = field ? \"\".concat(fn, \"_\").concat(field) : fn;\n }\n }\n\n if (suffix) {\n field = \"\".concat(field, \"_\").concat(suffix);\n }\n\n if (prefix) {\n field = \"\".concat(prefix, \"_\").concat(field);\n }\n\n if (opt.forAs) {\n return removePathFromField(field);\n } else if (opt.expr) {\n // Expression to access flattened field. No need to escape dots.\n return flatAccessWithDatum(field, opt.expr) + argAccessor;\n } else {\n // We flattened all fields so paths should have become dot.\n return replacePathInField(field) + argAccessor;\n }\n }", "function Aggregator() {\n }", "getBasicQueryOptions() {\n\t\t\tconst { aggregationField } = this.$props;\n\t\t\tconst queryOptions = getQueryOptions(this.$props);\n\t\t\tif (aggregationField) {\n\t\t\t\tqueryOptions.aggs = getCompositeAggsQuery({\n\t\t\t\t\tprops: this.$props,\n\t\t\t\t\tshowTopHits: true,\n\t\t\t\t}).aggs;\n\t\t\t}\n\t\t\treturn queryOptions;\n\t\t}", "aggregate( field = '' ) {\n\n // Execute the request without loading.\n return this.request('GET', `index/${field}`, true, {}, false);\n\n }", "set_aggregate_attribute(aggs) {\n this.setAttribute(\n \"aggregates\",\n JSON.stringify(\n aggs.reduce((obj, agg) => {\n obj[agg.column] = agg.op;\n return obj;\n }, {})\n )\n );\n }", "function aggregates(title, test, spec) {\n addExperimentFor(specs[spec], 'aggregates', (title), test);\n }", "stats (propertyName) {\n const { dimension } = this._dimensionInfo(propertyName);\n if (dimension && dimension.grouping) {\n return dimension;\n }\n return super.stats(propertyName);\n }", "function vgField(fieldDef, opt = {}) {\n\t let field = fieldDef.field;\n\t const prefix = opt.prefix;\n\t let suffix = opt.suffix;\n\t let argAccessor = ''; // for accessing argmin/argmax field at the end without getting escaped\n\t if (isCount(fieldDef)) {\n\t field = internalField('count');\n\t }\n\t else {\n\t let fn;\n\t if (!opt.nofn) {\n\t if (isOpFieldDef(fieldDef)) {\n\t fn = fieldDef.op;\n\t }\n\t else {\n\t const { bin, aggregate, timeUnit } = fieldDef;\n\t if (isBinning(bin)) {\n\t fn = binToString(bin);\n\t suffix = (opt.binSuffix || '') + (opt.suffix || '');\n\t }\n\t else if (aggregate) {\n\t if (isArgmaxDef(aggregate)) {\n\t argAccessor = `.${field}`;\n\t field = `argmax_${aggregate.argmax}`;\n\t }\n\t else if (isArgminDef(aggregate)) {\n\t argAccessor = `.${field}`;\n\t field = `argmin_${aggregate.argmin}`;\n\t }\n\t else {\n\t fn = String(aggregate);\n\t }\n\t }\n\t else if (timeUnit) {\n\t fn = String(timeUnit);\n\t }\n\t }\n\t }\n\t if (fn) {\n\t field = field ? `${fn}_${field}` : fn;\n\t }\n\t }\n\t if (suffix) {\n\t field = `${field}_${suffix}`;\n\t }\n\t if (prefix) {\n\t field = `${prefix}_${field}`;\n\t }\n\t if (opt.forAs) {\n\t return field;\n\t }\n\t else if (opt.expr) {\n\t // Expression to access flattened field. No need to escape dots.\n\t return flatAccessWithDatum(field, opt.expr) + argAccessor;\n\t }\n\t else {\n\t // We flattened all fields so paths should have become dot.\n\t return replacePathInField(field) + argAccessor;\n\t }\n\t}", "isDerivedQuery() {\n\t\treturn this.expr instanceof AbstractionInterface;\n\t}", "function agregateFunc ( row, aggr, value, curr) {\r\n\t\t\t\t// default is sum\r\n\t\t\t\tvar arrln = aggr.length, i, label, j, jv;\r\n\t\t\t\tif($.isArray(value)) {\r\n\t\t\t\t\tjv = value.length;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tjv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tmember = [];\r\n\t\t\t\tmember.root = 0;\r\n\t\t\t\tfor(j=0;j<jv;j++) {\r\n\t\t\t\t\tvar tmpmember = [], vl;\r\n\t\t\t\t\tfor(i=0; i < arrln; i++) {\r\n\t\t\t\t\t\tif(value == null) {\r\n\t\t\t\t\t\t\tlabel = $.trim(aggr[i].member)+\"_\"+aggr[i].aggregator;\r\n\t\t\t\t\t\t\tvl = label;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tvl = value[j].replace(/\\s+/g, '');\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tlabel = (arrln === 1 ? vl : vl+\"_\"+aggr[i].aggregator+\"_\"+i);\r\n\t\t\t\t\t\t\t} catch(e) {}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcurr[label] = tmpmember[label] = calculation( aggr[i].aggregator, curr[label], aggr[i].member, row);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmember[vl] = tmpmember;\r\n\t\t\t\t}\r\n\t\t\t\treturn curr;\r\n\t\t\t}", "function getCardinalityOfFields(\n index,\n fieldNames,\n query,\n timeFieldName,\n earliestMs,\n latestMs) {\n\n // First check that each of the supplied fieldNames are aggregatable,\n // then obtain the cardinality for each of the aggregatable fields.\n return new Promise((resolve, reject) => {\n callWithRequest('fieldCaps', {\n index,\n fields: fieldNames\n })\n .then((fieldCapsResp) => {\n const aggregatableFields = [];\n fieldNames.forEach((fieldName) => {\n const fieldInfo = fieldCapsResp.fields[fieldName];\n const typeKeys = (fieldInfo !== undefined ? Object.keys(fieldInfo) : []);\n if (typeKeys.length > 0) {\n const fieldType = typeKeys[0];\n const isFieldAggregatable = fieldInfo[fieldType].aggregatable;\n if (isFieldAggregatable === true) {\n aggregatableFields.push(fieldName);\n }\n }\n });\n\n if (aggregatableFields.length > 0) {\n // Build the criteria to use in the bool filter part of the request.\n // Add criteria for the time range and the datafeed config query.\n const mustCriteria = [\n {\n range: {\n [timeFieldName]: {\n gte: earliestMs,\n lte: latestMs,\n format: 'epoch_millis'\n }\n }\n }\n ];\n\n if (query) {\n mustCriteria.push(query);\n }\n\n const aggs = aggregatableFields.reduce((obj, field) => {\n obj[field] = { cardinality: { field } };\n return obj;\n }, {});\n\n const body = {\n query: {\n bool: {\n must: mustCriteria\n }\n },\n size: 0,\n _source: {\n excludes: []\n },\n aggs\n };\n\n callWithRequest('search', {\n index,\n body\n })\n .then((resp) => {\n const aggregations = resp.aggregations;\n if (aggregations !== undefined) {\n const results = aggregatableFields.reduce((obj, field) => {\n obj[field] = (aggregations[field] || { value: 0 }).value;\n return obj;\n }, {});\n resolve(results);\n } else {\n resolve({});\n }\n })\n .catch((resp) => {\n reject(resp);\n });\n } else {\n // None of the fields are aggregatable. Return empty Object.\n resolve({});\n }\n\n })\n .catch((resp) => {\n reject(resp);\n });\n });\n\n }", "get rateAggregation () {\n\t\treturn this._rateAggregation;\n\t}", "gql() {\n this._saveField();\n\n const { name, description } = this;\n return {\n name,\n description,\n fields: () => gqlFieldsResolve(this.fields)\n };\n }", "function aggregate(objOwnee, objOwner) {\n\t//put the owner object into the owner\n\t//property of the ownee; then return the ownee\n\tobjOwnee.owner = objOwner;\n\treturn objOwnee;\n} //end function aggregate", "function aggregateParams(_, pulse) {\n var key$$1 = _.field,\n value = _.value,\n op = (_.op === 'count' ? '__count__' : _.op) || 'sum',\n fields = accessorFields(key$$1).concat(accessorFields(value)),\n keys = pivotKeys(key$$1, _.limit || 0, pulse);\n\n return {\n key: _.key,\n groupby: _.groupby,\n ops: keys.map(function() { return op; }),\n fields: keys.map(function(k) { return get(k, key$$1, value, fields); }),\n as: keys.map(function(k) { return k + ''; }),\n modified: _.modified.bind(_)\n };\n }", "getFields(objCollector, field) {\n if (objCollector[field]) {\n return objCollector[field];\n }\n return undefined;\n }", "constructor( obj ) {\n\t\tsuper( obj );\n\t\tthis.aggregations = [];\n\t\tthis.hydrateObjectProperties( obj );\n\t}", "function buildGroupings() {\n\n\t\t\t\t\t///////////////////////////////////////////////////////////////////////\n\t\t\t\t\t//\n\t\t\t\t\t// Reduce functions that don't double-count by using add/reduce based\n\t\t\t\t\t// on unique dimension if defined.\n\t\t\t\t\t//\n\t\t\t\t\t// countByGroup property aggregates counts broken out by the grouping\n\t\t\t\t\t// defined by the group-accessor attribute.\n\t\t\t\t\t//\n\t\t\t\t\t///////////////////////////////////////////////////////////////////////\n\n\t\t\t\t\tvar helper = crossfilterHelpers\n\t\t\t\t\t\t.countByDimensionWithInitialCountAndData(\n\t\t\t\t\t\t\tfunction (d) { return d[uniqueDimension] + \":\" + groupAccessor(d); },\n\t\t\t\t\t\t\tfunction (v, p, t) {\n\t\t\t\t\t\t\t\tif(p === undefined) {\n\t\t\t\t\t\t\t\t\t// Populate the group hash:\n\t\t\t\t\t\t\t\t\tp = {};\n\t\t\t\t\t\t\t\t\tp.countByGroup = d3.map();\n\t\t\t\t\t\t\t\t\tstackGroups.forEach(function(d) {\n\t\t\t\t\t\t\t\t\t\tif(!p.countByGroup.has(d)) {\n\t\t\t\t\t\t\t\t\t\t\tp.countByGroup.set(d, { uniques: d3.map(), count: 0, agg: 0 });\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(t === 'add') {\n\t\t\t\t\t\t\t\t\t// Adding a new record.\n\t\t\t\t\t\t\t\t\t// Conditionally update group counts.\n\t\t\t\t\t\t\t\t\tif(p.countByGroup.get(groupAccessor(v)).uniques.has(v[uniqueDimension])) {\n\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).uniques.set(v[uniqueDimension],\n\t\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).uniques.get(v[uniqueDimension]) + 1 );\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).uniques.set(v[uniqueDimension], 1);\n\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).count++;\n\t\t\t\t\t\t\t\t\t\tif(scope.aggregationType === 'COUNT') {\n\t\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).agg++;\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t// Sum\n\t\t\t\t\t\t\t\t\t\t\tif(scope.aggregateKey) {\n\t\t\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).agg = p.countByGroup.get(groupAccessor(v)).agg + (+v[scope.aggregateKey]); // Make sure to cast or you end up with a String!!!\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif(scope.aggregationType === 'COUNT') {\n\t\t\t\t\t\t\t\t\t\tp.agg = p.agg + 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// Sum\n\t\t\t\t\t\t\t\t\t\tif(scope.aggregateKey) {\n\t\t\t\t\t\t\t\t\t\t\tp.agg = p.agg + (+v[scope.aggregateKey]); // Make sure to cast or you end up with a String!!!\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Removing a record.\n\t\t\t\t\t\t\t\t\t// Update group count.\n\t\t\t\t\t\t\t\t\tif(p.countByGroup.get(groupAccessor(v)).uniques.get(v[uniqueDimension]) === 1) {\n\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).uniques.remove(v[uniqueDimension]);\n\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).count--;\n\n\t\t\t\t\t\t\t\t\t\tif(scope.aggregationType === 'COUNT') {\n\t\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).agg--;\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t// Sum\n\t\t\t\t\t\t\t\t\t\t\tif(scope.aggregateKey) {\n\t\t\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).agg = p.countByGroup.get(groupAccessor(v)).agg - (+v[scope.aggregateKey]); // Make sure to cast or you end up with a String!!!\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).uniques.set(v[uniqueDimension],\n\t\t\t\t\t\t\t\t\t\t\tp.countByGroup.get(groupAccessor(v)).uniques.get(v[uniqueDimension]) - 1);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif(scope.aggregationType === 'COUNT') {\n\t\t\t\t\t\t\t\t\t\tp.agg = p.agg - 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t// Sum\n\t\t\t\t\t\t\t\t\t\tif(scope.aggregateKey) {\n\t\t\t\t\t\t\t\t\t\t\tp.agg = p.agg - (+v[scope.aggregateKey]); // Make sure to cast or you end up with a String!!!\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn p;\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\tvar reduceAdd = helper.add;\n\t\t\t\t\tvar reduceRemove = helper.remove;\n\t\t\t\t\tvar reduceInitial = helper.init;\n\n\t\t\t\t\tfunction orderValue(p) {\n\t\t\t\t\t\treturn p.agg;\n\t\t\t\t\t}\n\n\t\t\t\t\t///////////////////////////////////////////////////////////////////////\n\t\t\t\t\t//\n\t\t\t\t\t// Reduce functions that just count normally, without worrying about\n\t\t\t\t\t// duplicate values.\n\t\t\t\t\t//\n\t\t\t\t\t///////////////////////////////////////////////////////////////////////\n\n\t\t\t\t\tfunction defaultReduceAdd(p, v) {\n\t\t\t\t\t\t++p.count;\n\t\t\t\t\t\t++p.agg;\n\t\t\t\t\t\tp.countByGroup.set(groupAccessor(v), p.data.countByGroup.get(groupAccessor(v)) + 1);\n\t\t\t\t\t\treturn p;\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction defaultReduceRemove(p, v) {\n\t\t\t\t\t\t--p.count;\n\t\t\t\t\t\t--p.agg;\n\t\t\t\t\t\tp.countByGroup.set(groupAccessor(v), p.data.countByGroup.get(groupAccessor(v)) - 1);\n\t\t\t\t\t\treturn p;\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction defaultReduceIntial() {\n\t\t\t\t\t\tvar obj = { count: 0, agg: 0, data: { countByGroup: d3.map() } };\n\n\t\t\t\t\t\t// Populate the group hash:\n\t\t\t\t\t\tstackGroups.forEach(function(d) {\n\t\t\t\t\t\t\tif(!obj.data.countByGroup.has(d)) {\n\t\t\t\t\t\t\t\tobj.data.countByGroup.set(d, 0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn obj;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(type != 'numeric') {\n\n\t\t\t\t\t\t// If we have a Date-type dimension, then make sure we don't have a ridiculous number\n\t\t\t\t\t\t// of groups by grouping at the date, then month, then year level.\n\t\t\t\t\t\tif(!x) {\n\t\t\t\t\t\t\t// If the x-scale hasn't been defined yet, we do this the hard way.\n\t\t\t\t\t\t\tg = scope.localDimension.group();\n\t\t\t\t\t\t\tvar lt = d3.min(g.all().filter(function(g) { return g.key && dimFormat.parse(g.key); }), function(d) { return dimFormat.parse(d.key); });\n\t\t\t\t\t\t\tvar ht = d3.max(g.all().filter(function(g) { return g.key && dimFormat.parse(g.key); }), function(d) { return dimFormat.parse(d.key); });\n\t\t\t\t\t\t\tyr = ht.getFullYear() - lt.getFullYear();\n\t\t\t\t\t\t\tg.remove();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tyr = x.domain()[1].getFullYear() - x.domain()[0].getFullYear();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If we are showing more than 2 years, we can't get down to a day-level granularity.\n\t\t\t\t\t\tif(yr <= 1) {\n\t\t\t\t\t\t\tformat = dateService.format;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(yr > 1 ) {\n\t\t\t\t\t\t\t\tformat = dateService.formatMonth;\n\n\t\t\t\t\t\t\t\t// If we are showing more than 30 years, we can't get down to a month-level granularity.\n\t\t\t\t\t\t\t\tif(yr > 30) {\n\t\t\t\t\t\t\t\t\tformat = dateService.formatYear;\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\n\t\t\t\t\t// Build our groups based on the chosen date granularity.\n\t\t\t\t\tvar tempDate;\n\n\t\t\t\t\tif(g) {\n\t\t\t\t\t\tg.remove();\n\t\t\t\t\t}\n\n\t\t\t\t\tg = scope.localDimension.group(function (d) {\n\t\t\t\t\t\t\tif(d) {\n\t\t\t\t\t\t\t\ttempDate = dimFormat.parse(d);\n\t\t\t\t\t\t\t} else { tempDate = null; }\n\n\t\t\t\t\t\t\tif(tempDate !== null && tempDate !== undefined) {\n\t\t\t\t\t\t\t\treturn format(tempDate);\n\t\t\t\t\t\t\t} else { return \"\"; }\n\t\t\t\t\t\t});\n\n\t\t\t\t\t// If uniqueDimension is defined, use it for counting.\n\t\t\t\t\tif(uniqueDimension !== undefined) {\n\t\t\t\t\t\tg.reduce(reduceAdd, reduceRemove, reduceInitial);\n\t\t\t\t\t\tg.order(orderValue);\n\t\t\t\t\t} else {\n\t\t\t\t\t// Otherwise, use default counting.\n\t\t\t\t\t\tg.reduce(defaultReduceAdd, defaultReduceRemove, defaultReduceIntial);\n\t\t\t\t\t\tg.order(\n\t\t\t\t\t\t\tfunction(p) {\n\t\t\t\t\t\t\t\treturn p.data.agg;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tgroups = g.all().filter(function(g) { return g.key && format.parse(g.key); })\n\t\t\t\t\t\t.sort(function (a,b) { return format.parse(a.key) < format.parse(b.key) ? -1 : 1; });\n\n\t\t\t\t}", "calculateAdvancedMedical() {\n var scale = this.isMonthly ? 1 : 1 / 12; // divide by 12 if the user input yearly numbers \n this.cost = parseInt( ( parseInt(this.dentalCost) + parseInt(this.healthInsuranceCost) + parseInt(this.medicationCost) + parseInt(this.otherMedicalCost) ) * scale);\n // this.cost = this.cost.toFixed(2);\n\n this.eventAggregator.publish('update', {name: 'Medical', value: this.cost});\n }", "useAliasFields() {\n let count = 0\n this.getEntityIds().forEach((id) => {\n const _entity = this.items[id]\n count += this.items[id].attribute ? 1 : 0\n })\n return count != 0\n }", "@computed\n get fields() {\n if (this.inputCategory === VARIANT)\n return [\"*\"]\n if (this.inputCategory === GENE)\n return [\n \"name\",\n {\n \"variants\": [\n \"seq_region_name\",\n \"start\", \"allele_freq\", \"ref_allele\", \"alt_allele\",\n {\n \"genotypes\": [\"id\", \"genotype\", \"cell_line\"]\n }\n ]\n }\n ]\n }", "function aggregateParams(_, pulse) {\n var key = _.field,\n value = _.value,\n op = (_.op === 'count' ? '__count__' : _.op) || 'sum',\n fields = (0,vega_util__WEBPACK_IMPORTED_MODULE_2__.accessorFields)(key).concat((0,vega_util__WEBPACK_IMPORTED_MODULE_2__.accessorFields)(value)),\n keys = pivotKeys(key, _.limit || 0, pulse);\n\n return {\n key: _.key,\n groupby: _.groupby,\n ops: keys.map(function() { return op; }),\n fields: keys.map(function(k) { return get(k, key, value, fields); }),\n as: keys.map(function(k) { return k + ''; }),\n modified: _.modified.bind(_)\n };\n}", "function calcMetaDataField(data,params,field)\n{\n var operation = field.op;\n\n switch(operation) {\n case 'count': return(calcMetaDataField_count(data,params,field));\n case 'average': return(calcMetaDataField_average(data,params,field));\n case 'combine': return(calcMetaDataField_combine(data,params,field));\n case 'delta': return(calcMetaDataField_delta(data,params,field,false));\n case 'delta2': return(calcMetaDataField_delta(data,params,field,true));\n case 'sum': return(calcMetaDataField_sum(data,params,field));\n case 'subtract': return(calcMetaDataField_subtract(data,params,field));\t\n case 'percent': return(calcMetaDataField_percent(data,params,field));\n case 'divide': return(calcMetaDataField_divide(data,params,field));\n case 'multiply': return(calcMetaDataField_multiply(data,params,field));\t\n case 'weight': return(calcMetaDataField_weight(data,params,field));\n case 'contains': return(calcMetaDataField_contains(data,params,field));\n case 'containsAny': return(calcMetaDataField_containsAny(data,params,field));\n case 'min': return(calcMetaDataField_min(data,params,field));\n case 'max': return(calcMetaDataField_max(data,params,field));\n case 'defEffect': return(calcMetaDataField_defEffect(data,params,field));\n case 'compare': return(calcMetaDataField_compare(data,params,field));\n case 'constant': return(calcMetaDataField_constant(data,params,field));\n case 'assign': return(calcMetaDataField_assign(data,params,field));\n case 'flatten': return(calcMetaDataField_flatten(data,params,field));\n case 'containsHowMany': return(calcMetaDataField_containsHowMany(data,params,field));\n case 'filterArray': return(calcMetaDataField_containsHowMany(data,params,field));\n case 'lastVal': return(calcMetaDataField_lastValueArray(daata,params,field));\n\n\t// operations for heatmap data\n case 'geoSubset': return(calcMetaDataField_geoSubset(data,params,field));\n case 'difference': return(calcMetaDataField_difference(data,params,field));\n case 'correlate': return(calcMetaDataField_correlate(data,params,field));\n\t\n default: console.log(\"BAD OP: \" + operation); return(false);\n }\n\n}", "function group (frame) {\n let v, name, op;\n const entries = fields.map((field, index) => {\n name = ops[index];\n op = scalar_operations.get('count');\n if (name) {\n op = scalar_operations.get(name);\n if (!op) {\n op = scalar_operations.get('count');\n warn(`Operation ${name} is not supported, use count`);\n }\n }\n return {\n field: field,\n as: as[index] || field,\n op: op\n };\n });\n\n return frame.dimension(groupby).group().reduce((o, record) => {\n return entries.reduce((oo, entry) => {\n v = 0;\n if (entry.as in oo) v = oo[entry.as];\n oo[entry.as] = entry.op(v, record[entry.field]);\n return oo;\n }, o);\n }, null, Object).all().map(d => {\n d.value[groupby] = d.key;\n return d.value;\n });\n }", "function withSubfields(schema, definition) {\n const fields = definition.fields || [];\n const extra = fields.reduce((p, field) => {\n if (field.autocompleteAction) {\n const def = schema[field.autocompleteAction];\n return [...p, ...(def.fields || [])];\n }\n return p;\n }, []);\n return {\n ...definition,\n fields: uniqueOrdered([...extra, ...fields]),\n };\n}", "function mkAggAccs() {\n var aggAccs = [];\n for ( var i = 0; i < aggCols.length; i++ ) {\n // TODO: check for typeof aggs[i] == array and use specified agg\n var aggColType = inSchema.columnMetadata[ aggCols[ i ] ].type;\n var aggCtor = defaultAggs[ aggColType ];\n var accObj = new aggCtor();\n aggAccs.push( accObj );\n }\n return aggAccs;\n }", "function getUsedFunctions(startDate, endDate) {\n return Model.chatevent_coll.aggregate([{\n // Zeitfilter\n $match: {\n $and: [{\n createdAt: {\n $gt: new Date(startDate)\n }\n }, {\n createdAt: {\n $lt: new Date(endDate)\n }\n }]\n }\n }, {\n // Filtern nach Funktions Start und existierendem User (Ob in einem Funktionsstart Dokument ein User eingetragen ist)\n '$match': {\n '$or': [\n {\n '$and': [\n {\n 'data.action': 'started'\n }, {\n 'type': 'videoChanged'\n }, {\n 'user': {\n '$exists': true\n }\n }\n ]\n }, {\n '$and': [\n {\n 'data.action': 'started'\n }, {\n 'type': 'screenSharingChanged'\n }, {\n 'user': {\n '$exists': true\n }\n }\n ]\n }, {\n '$and': [\n {\n 'data.action': 'started'\n }, {\n 'type': 'coBrowsingChanged'\n }, {\n 'user': {\n '$exists': true\n }\n }\n ]\n }\n ]\n }\n }, {\n // Gruppieren nach User und Typ + Zählvariable\n '$group': {\n '_id': {\n 'user': '$user', \n 'type': '$type'\n }, \n 'count': {\n '$sum': 1\n }\n }\n }, {\n '$unwind': {\n 'path': '$_id'\n }\n }, {\n // Join mit User Dokumenten\n '$lookup': {\n 'from': 'users', \n 'localField': '_id.user', \n 'foreignField': '_id', \n 'as': 'user'\n }\n }, {\n '$unwind': {\n 'path': '$user'\n }\n }, {\n // Definieren der anzuzeigenden Felder\n '$project': {\n '_id': 0, \n 'username': '$user.username', \n 'type': '$_id.type', \n 'count': '$count'\n }\n }, {\n // Beifügen des Usernamens\n '$group': {\n '_id': {\n 'username': '$username', \n 'type': '$type'\n }, \n 'count': {\n '$sum': '$count'\n }\n }\n }, {\n // Formatieren des Dokuments\n '$project': {\n '_id': 0, \n 'username': '$_id.username', \n 'type': '$_id.type', \n 'count': '$count'\n }\n }, {\n // Sortieren nach User und dann nach Typ\n '$sort': {\n 'username': 1, \n 'type': 1\n }\n }])\n }", "function getFields(request) { \n \n \n //setting variables as shortcuts for later use\n var cc = DataStudioApp.createCommunityConnector();\n var fields = cc.getFields();\n var types = cc.FieldType;\n var aggregations = cc.AggregationType;\n \n \n \n fields.newDimension()\n .setId('first_release_date')\n .setName('Release Date')\n .setType(types.NUMBER)\n .setDescription(\"The original release of the game\");\n \n fields.newDimension()\n .setId('name')\n .setName('Name')\n .setType(types.TEXT)\n .setDescription(\"The game's name\");\n \n fields.newDimension()\n .setId('url')\n .setName('URL')\n .setType(types.URL)\n .setDescription(\"The image of the cover's url\");\n \n fields.newDimension()\n .setId('cover')\n .setName('Cover')\n .setType(types.IMAGE)\n .setFormula('IMAGE($url,\"cannot display\")')\n .setDescription(\"The game's cover image\");\n \n fields.newDimension()\n .setId('summary')\n .setName('Summary')\n .setType(types.TEXT)\n .setDescription(\"A summary for the game\");\n \n fields.newMetric()\n .setId('rating')\n .setName('Rating')\n .setType(types.NUMBER)\n .setDescription(\"Rating of game\")\n .setAggregation(aggregations.AVG);\n \n fields.newMetric()\n .setId('rating_count')\n .setName('Number of Reviews')\n .setType(types.NUMBER)\n .setDescription(\"The amount of time it takes to play through the game\")\n .setAggregation(aggregations.SUM);\n \n fields.newMetric()\n .setId('popularity')\n .setName('Popularity')\n .setType(types.NUMBER)\n .setDescription(\"Popularity of a game\")\n .setAggregation(aggregations.AVG);\n\n \n \n \n console.log(JSON.stringify(fields));\n \n \n return fields;\n}", "static aggregateInflectionsForDisplay (inflections) {\n // TODO at some point we might want to be able to check the provider in here\n // because this really only applies to the specifics of the Aramorph parser\n let aggregated = []\n let aggregates = { [_constants_js__WEBPACK_IMPORTED_MODULE_1__[\"POFS_NOUN\"]]: [], [_constants_js__WEBPACK_IMPORTED_MODULE_1__[\"POFS_ADJECTIVE\"]]: [], [_constants_js__WEBPACK_IMPORTED_MODULE_1__[\"POFS_NOUN_PROPER\"]]: [] }\n for (let infl of inflections) {\n if (infl[_feature_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].types.morph] && infl[_feature_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].types.morph].value.match(/ADJ[uaiNK]/)) {\n aggregates[_constants_js__WEBPACK_IMPORTED_MODULE_1__[\"POFS_ADJECTIVE\"]].push(infl)\n } else if (infl[_feature_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].types.morph] && infl[_feature_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].types.morph].value.match(/NOUN[uaiNK]/)) {\n aggregates[_constants_js__WEBPACK_IMPORTED_MODULE_1__[\"POFS_NOUN\"]].push(infl)\n } else if (infl[_feature_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].types.morph] && infl[_feature_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].types.morph].value.match(/NOUN_PROP[uaiNK]/)) {\n aggregates[_constants_js__WEBPACK_IMPORTED_MODULE_1__[\"POFS_NOUN_PROPER\"]].push(infl)\n } else {\n // we are also going to keep the examples out of the display for now\n infl.example = null\n aggregated.push(infl)\n }\n }\n for (let type of Object.keys(aggregates)) {\n let base = aggregated.filter((i) => i[_feature_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"].types.part].value === type)\n if (base.length !== 1) {\n // if we don't have the base form then we don't really know what to do here\n // so just put the inflection back in the ones available for display\n aggregated.push(...aggregates[type])\n }\n // we may decide we want to keep the extra suffix and morph information\n // from the alternate inflections but for now we just will drop it from\n // the inflections that are displayed\n }\n return aggregated\n }", "function ga(t, e, n, r, i, o) {\n void 0 === o && (o = {});\n var s = t.Bc(o.merge || o.mergeFields ? 2 /* MergeSet */ : 0 /* Set */ , e, n, i);\n Ca(\"Data must be an object, but it was:\", s, r);\n var u, a, c = ka(r, s);\n if (o.merge) u = new H(s.fieldMask), a = s.fieldTransforms; else if (o.mergeFields) {\n for (var h = [], f = 0, l = o.mergeFields; f < l.length; f++) {\n var d = Ra(e, l[f], n);\n if (!s.contains(d)) throw new T(E.INVALID_ARGUMENT, \"Field '\" + d + \"' is specified in your field mask but missing from your input data.\");\n Ma(h, d) || h.push(d);\n }\n u = new H(h), a = s.fieldTransforms.filter((function(t) {\n return u.covers(t.field);\n }));\n } else u = null, a = s.fieldTransforms;\n return new la(new bt(c), u, a);\n}", "function CLinearAggregation(name, class_, type) {\n\treturn new Type(\"linearAggregation\", function makeLinearAggregation(ctx) {\n\t\tvar {linearAggregators} = ctx;\n\t\tvar subAggregators = linearAggregators == null ? [] : linearAggregators.slice(0);\n\t\tif (subAggregators.indexOf(name) == -1)\n\t\t\tsubAggregators.push(name);\n\t\treturn type.makeNode(\n\t\t\t{...ctx, linearAggregators: subAggregators, [name]: new class_()}\n\t\t);\n\t});\n}", "function addFields(field, currFieldName, realIndex) {\n if (field.group) {\n var isGroupCreated = false, property;\n for (var i = 0; i < self.displayData.length; i++) {\n if (self.displayData[i].name === field.group && self.displayData[i].container === 'g') {\n isGroupCreated = true;\n property = { 'name': currFieldName, 'realFieldIndex': realIndex };\n property.extensionName = field.extensionName;\n self.displayData[i].fields.push(property);\n break;\n }\n }\n if (!isGroupCreated) {\n var groupDetails = getGroupDetails(field.group);\n var group = {\n container: 'g',\n fields: [],\n name: groupDetails.id,\n groupDetails: {\n 'id': groupDetails.id,\n 'heading': $translate.instant(groupDetails.heading),\n 'collapsible': groupDetails.collapsible\n }\n };\n property = { 'name': currFieldName, 'realFieldIndex': realIndex };\n property.extensionName = field.extensionName;\n group.fields.push(property);\n self.displayData.push(group);\n }\n } else {\n var fieldContainerCreated = false;\n var displayDataLength = self.displayData.length;\n if (displayDataLength && self.displayData[displayDataLength - 1].container === 'f') {\n fieldContainerCreated = true;\n property = { 'name': currFieldName, 'realFieldIndex': realIndex };\n self.displayData[displayDataLength - 1].fields.push(property);\n }\n\n if (!fieldContainerCreated) {\n property = { 'container': 'f', 'name': currFieldName, 'realFieldIndex': realIndex, 'fields': [] };\n property.fields.push({ 'name': currFieldName, 'realFieldIndex': realIndex });\n self.displayData.push(property);\n }\n\n }\n\n if (typeof field.type === \"object\") {\n Object.getOwnPropertyNames(field.type).forEach(function (propName) {\n addFields(field.type[propName], currFieldName + \".\" + propName);\n });\n }\n }", "function ɵɵInheritDefinitionFeature(definition) {\n var superType = getSuperType(definition.type);\n var shouldInheritFields = true;\n var inheritanceChain = [definition];\n\n while (superType) {\n var superDef = undefined;\n\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n } else {\n if (superType.ɵcmp) {\n throw new Error('Directives cannot inherit Components');\n } // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n\n\n superDef = superType.ɵdir;\n }\n\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef); // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n\n var writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs); // Merge hostBindings\n\n var superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings); // Merge queries\n\n var superViewQuery = superDef.viewQuery;\n var superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries); // Merge inputs and outputs\n\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs); // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n var defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n } // Run parent features\n\n\n var features = superDef.features;\n\n if (features) {\n for (var i = 0; i < features.length; i++) {\n var feature = features[i];\n\n if (feature && feature.ngInherit) {\n feature(definition);\n } // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n\n\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n\n superType = Object.getPrototypeOf(superType);\n }\n\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n }", "function buildAggregationQuery(filters) {\n // Basic aggregation query.\n var query = {\n \"aggs\": {}\n };\n\n for (var filterType in filters) {\n switch (filterType) {\n case 'taxonomy':\n var taxonomyFilters = filters[filterType];\n // Extend query with filter fields.\n for (var i = 0; i < taxonomyFilters.length; i++) {\n var filter = taxonomyFilters[i];\n query.aggs[filter.field] = {\n \"terms\": {\n \"field\": filter.field + '.raw',\n \"size\": 0\n }\n };\n }\n break;\n\n case 'boolean':\n var booleanFilters = filters[filterType];\n for (var i = 0; i < booleanFilters.length; i++) {\n var filter = booleanFilters[i];\n query.aggs[filter.field] = {\n \"terms\": {\n \"field\": filter.field,\n \"size\": 0\n }\n };\n }\n break;\n\n default:\n console.error('Aggregation filter has unknown type - ' + filterType);\n }\n }\n\n return query;\n }", "function type(d) {\n\t\td.total = d3.sum(groups, function(k) {\n\t\t\treturn d[k] = +d[k];\n\t\t});\n\t\treturn d;\n\t}", "function ɵɵInheritDefinitionFeature(definition) {\n var e_1, _a;\n var superType = getSuperType(definition.type);\n while (superType) {\n var superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ngComponentDef || superType.ngDirectiveDef;\n }\n else {\n if (superType.ngComponentDef) {\n throw new Error('Directives cannot inherit Components');\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ngDirectiveDef;\n }\n var baseDef = superType.ngBaseDef;\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n if (baseDef || superDef) {\n var writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n }\n if (baseDef) {\n var baseViewQuery = baseDef.viewQuery;\n var baseContentQueries = baseDef.contentQueries;\n var baseHostBindings = baseDef.hostBindings;\n baseHostBindings && inheritHostBindings(definition, baseHostBindings);\n baseViewQuery && inheritViewQuery(definition, baseViewQuery);\n baseContentQueries && inheritContentQueries(definition, baseContentQueries);\n fillProperties(definition.inputs, baseDef.inputs);\n fillProperties(definition.declaredInputs, baseDef.declaredInputs);\n fillProperties(definition.outputs, baseDef.outputs);\n }\n if (superDef) {\n // Merge hostBindings\n var superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n var superViewQuery = superDef.viewQuery;\n var superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs);\n // Inherit hooks\n // Assume super class inheritance feature has already run.\n definition.afterContentChecked =\n definition.afterContentChecked || superDef.afterContentChecked;\n definition.afterContentInit = definition.afterContentInit || superDef.afterContentInit;\n definition.afterViewChecked = definition.afterViewChecked || superDef.afterViewChecked;\n definition.afterViewInit = definition.afterViewInit || superDef.afterViewInit;\n definition.doCheck = definition.doCheck || superDef.doCheck;\n definition.onDestroy = definition.onDestroy || superDef.onDestroy;\n definition.onInit = definition.onInit || superDef.onInit;\n // Run parent features\n var features = superDef.features;\n if (features) {\n try {\n for (var features_1 = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__values\"])(features), features_1_1 = features_1.next(); !features_1_1.done; features_1_1 = features_1.next()) {\n var feature = features_1_1.value;\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (features_1_1 && !features_1_1.done && (_a = features_1.return)) _a.call(features_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n }\n else {\n // Even if we don't have a definition, check the type for the hooks and use those if need be\n var superPrototype = superType.prototype;\n if (superPrototype) {\n definition.afterContentChecked =\n definition.afterContentChecked || superPrototype.ngAfterContentChecked;\n definition.afterContentInit =\n definition.afterContentInit || superPrototype.ngAfterContentInit;\n definition.afterViewChecked =\n definition.afterViewChecked || superPrototype.ngAfterViewChecked;\n definition.afterViewInit = definition.afterViewInit || superPrototype.ngAfterViewInit;\n definition.doCheck = definition.doCheck || superPrototype.ngDoCheck;\n definition.onDestroy = definition.onDestroy || superPrototype.ngOnDestroy;\n definition.onInit = definition.onInit || superPrototype.ngOnInit;\n if (superPrototype.ngOnChanges) {\n ɵɵNgOnChangesFeature()(definition);\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n}", "function pivotAddDim(name, grpFn, display, field){\n\tpivot.population.each(function(e,i,a){\n\t\te[name] = grpFn(e[field]); //apply grouping function\n\t});\n\tpivot.dim[name].display = display[]; //not a feature at present - display should be embedded in pivot\n}", "addCalculated(title, formula, dateFormat, outputType = FieldTypes.Text, properties) {\r\n const props = {\r\n DateFormat: dateFormat,\r\n FieldTypeKind: 17,\r\n Formula: formula,\r\n OutputType: outputType,\r\n };\r\n return this.add(title, \"SP.FieldCalculated\", extend(props, properties));\r\n }", "get aggregatedByNode() {\n const df = this.filteredDataFrame;\n if (df === null || df.shape[0] === 0) {\n return null;\n }\n\n // Calculate country totals\n const aggregateTotals = (groupByColumns, outputColumn) => {\n let dfTotals = df.groupby(groupByColumns).col([COLUMN_WEIGHT]).sum();\n dfTotals.rename({ [`${COLUMN_WEIGHT}_sum`]: outputColumn }, { inplace: true });\n dfTotals.rename({ [groupByColumns[0]]: 'countryCode', [groupByColumns[1]]: 'countryName'}, { inplace: true });\n return dfTotals;\n }\n const dfTotalsIn = aggregateTotals(['target', 'targetName'], 'weight_in');\n const dfTotalsOut = aggregateTotals(['source', 'sourceName'], 'weight_out');\n const dfTotals = dfd.merge({ left: dfTotalsIn, right: dfTotalsOut, on: ['countryCode', 'countryName'], how: 'outer' });\n dfTotals.fillNa([0.0, 0.0], {columns: ['weight_in', 'weight_out'], inplace: true});\n\n runInAction(() => {\n // Min/max weights (will be used for the color scale)\n const column = this.flowMode === FlowMode.Outflow ? 'weight_out' : 'weight_in';\n dfTotals.sortValues(column, { ascending: false, inplace: true });\n this.minTotalWeight = dfTotals[column].min();\n this.maxTotalWeight = dfTotals[column].max();\n\n this.dfCountryTotals = dfTotals;\n });\n return dfd.toJSON(dfTotals);\n }", "addQueryBuilders(schema, query) {\n _.each(schema, function (field) {\n const fieldType = self.fieldTypes[field.type];\n if (query[field.name]) {\n return;\n }\n if (fieldType.addQueryBuilder) {\n fieldType.addQueryBuilder(field, query);\n }\n });\n }", "function aggAvg(input) {\n // the average will be the sum / count\n var sum = 0;\n var count = 0;\n var length = input.length;\n for (var i = 0; i < length; i++) {\n var currentItem = input[i];\n var itemIsGroupResult = main_1.Utils.exists(currentItem) && typeof currentItem.value === 'number' && typeof currentItem.count === 'number';\n // skip values that are not numbers (ie skip empty values)\n if (typeof currentItem === 'number') {\n sum += currentItem;\n count++;\n // check if it's a group (ie value is a wrapper object)\n }\n else if (itemIsGroupResult) {\n // we are aggregating groups, so we take the\n // aggregated values to calculated a weighted average\n sum += currentItem.value * currentItem.count;\n count += currentItem.count;\n }\n }\n // avoid divide by zero error\n var value = null;\n if (count !== 0) {\n value = sum / count;\n }\n // the result will be an object. when this cell is rendered, only the avg is shown.\n // however when this cell is part of another aggregation, the count is also needed\n // to create a weighted average for the next level.\n var result = {\n count: count,\n value: value,\n // the grid by default uses toString to render values for an object, so this\n // is a trick to get the default cellRenderer to display the avg value\n toString: function () {\n if (typeof this.value === 'number') {\n return this.value.toString();\n }\n else {\n return '';\n }\n },\n // used for sorting\n toNumber: function () {\n return this.value;\n }\n };\n return result;\n}", "function queryFunctor(field) {\n \"use strict\";\n return function (done) {\n var terms = getField(obj, field.split(':'));\n var coll;\n if (terms) {\n if (typeof terms[0] === \"string\") {\n terms = termsToInts(terms);\n }\n\n // increment numGenes.direct based on terms\n\n console.log(field,terms);\n coll = db.collection(collectionLUT[field].ontology);\n }\n done(null, coll);\n };\n }", "function ɵɵInheritDefinitionFeature(definition) {\n var superType = getSuperType(definition.type);\n var shouldInheritFields = true;\n var inheritanceChain = [definition];\n\n while (superType) {\n var superDef = undefined;\n\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n } else {\n if (superType.ɵcmp) {\n throw new Error('Directives cannot inherit Components');\n } // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n\n\n superDef = superType.ɵdir;\n }\n\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef); // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n\n var writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs); // Merge hostBindings\n\n var superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings); // Merge queries\n\n var superViewQuery = superDef.viewQuery;\n var superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries); // Merge inputs and outputs\n\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs); // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n var defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n } // Run parent features\n\n\n var features = superDef.features;\n\n if (features) {\n for (var i = 0; i < features.length; i++) {\n var feature = features[i];\n\n if (feature && feature.ngInherit) {\n feature(definition);\n } // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n\n\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n\n superType = Object.getPrototypeOf(superType);\n }\n\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}", "function getFieldStats(pattern, timeFieldName, start, stop) {\n\t var constraints = {};\n\t if (start) {\n\t constraints.max_value = msConstraint('gte', start);\n\t }\n\t if (stop) {\n\t constraints.min_value = msConstraint('lte', stop);\n\t }\n\n\t return es.fieldStats({\n\t index: pattern,\n\t level: 'indices',\n\t body: {\n\t fields: [timeFieldName],\n\t index_constraints: _defineProperty({}, timeFieldName, constraints)\n\t }\n\t });\n\t }", "visitFieldDefinition() {\n return;\n }", "AggregateGetTotalEarning(filter) {\n return new Promise((resolve, reject) => {\n this.collection.aggregate([\n {\n $match: filter\n },\n {\n $unwind: '$restaurantInfo'\n },\n {\n $group: {\n _id: {\n resId: '$restaurantInfo.restaurantId',\n name: '$restaurantInfo.name'\n },\n price: {\n $sum: '$restaurantInfo.totalPrice'\n }\n }\n },\n {\n $project: {\n _id: 0,\n resId: '$_id.resId',\n name: '$_id.name',\n price: 1\n }\n }\n ], (err, data) => {\n if (err) return reject({ message: err, status: 0 });\n\n return resolve(data);\n })\n })\n }", "MultiAggregateData(filter = {}, lookup = {}, lookup1 = {}, unwind, project = {}) {\n return new Promise((resolve, reject) => {\n this.collection.aggregate([\n //1\n {\n $match: filter\n },\n\n //2\n {\n $lookup: lookup\n },\n\n //3\n {\n $unwind: { path: unwind, preserveNullAndEmptyArrays: true }\n },\n\n //4\n {\n $lookup: lookup1\n },\n\n //5\n {\n $project: project\n }\n\n ], (err, data) => {\n if (err) return reject({ message: err, status: 0 });\n\n return resolve(data);\n });\n });\n }", "function _a(t, e, n, r, i, o) {\n void 0 === o && (o = {});\n var s = t.Wc(o.merge || o.mergeFields ? 2 /* MergeSet */ : 0 /* Set */ , e, n, i);\n Fa(\"Data must be an object, but it was:\", s, r);\n var u, a, c = Pa(r, s);\n if (o.merge) u = new oe(s.fieldMask), a = s.fieldTransforms; else if (o.mergeFields) {\n for (var h = [], f = 0, l = o.mergeFields; f < l.length; f++) {\n var d = qa(e, l[f], n);\n if (!s.contains(d)) throw new G(j.INVALID_ARGUMENT, \"Field '\" + d + \"' is specified in your field mask but missing from your input data.\");\n ja(h, d) || h.push(d);\n }\n u = new oe(h), a = s.fieldTransforms.filter((function(t) {\n return u.covers(t.field);\n }));\n } else u = null, a = s.fieldTransforms;\n return new ga(new se(c), u, a);\n}", "get relatedFields() {\r\n return new SharePointQueryable(this, \"getRelatedFields\");\r\n }", "function _aggregate(funcParamObj, onExecuteComplete) {\r\n\r\n /** default object content of an operation */\r\n var operationObj = funcParamObj.operationRef;\r\n\r\n /** pre - operations on data */\r\n var collection = operationObj.conf['params.collection'];\r\n var pipelineField = operationObj.conf['params.pipeline'] ? operationObj.conf['params.pipeline'] : 'pipeline'; // which payload field is used as a pipeline (should be an array)\r\n var options = JSON.parse(operationObj.conf['params.options']); // aggregate options\r\n var payloadfieldinsert = operationObj.conf['params.payload.field.insert']; // insert the result in specific field\r\n var skipPipelineDel = operationObj.conf['params.pipeline.skipdelete'];\r\n\r\n /** get the pipeline */\r\n var pipeline = funcParamObj.payload[pipelineField];\r\n\r\n /** run the aggregate */\r\n _getRunQueryService().runAggregate(\r\n collection,\r\n pipeline,\r\n options,\r\n function onComplete(error, values) {\r\n if (!error && values) {\r\n if (payloadfieldinsert) {\r\n funcParamObj.payload[payloadfieldinsert] = values;\r\n if (!skipPipelineDel) {\r\n delete funcParamObj.payload[pipelineField];\r\n }\r\n } else {\r\n funcParamObj.payload = values;\r\n }\r\n } else {\r\n funcParamObj.payload = JSON.stringify(error);\r\n }\r\n onExecuteComplete(error, funcParamObj);\r\n }\r\n );\r\n}", "function type(d) {\n d.total = d3.sum(groups, function(k) { return d[k] =+d[k]; });\n return d;\n}", "function ɵɵInheritDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let shouldInheritFields = true;\n const inheritanceChain = [definition];\n while (superType) {\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n }\n else {\n if (superType.ɵcmp) {\n throw new Error('Directives cannot inherit Components');\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef);\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n const writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n // Merge hostBindings\n const superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n const superViewQuery = superDef.viewQuery;\n const superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs);\n // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n const defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n }\n // Run parent features\n const features = superDef.features;\n if (features) {\n for (let i = 0; i < features.length; i++) {\n const feature = features[i];\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}", "function ɵɵInheritDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let shouldInheritFields = true;\n const inheritanceChain = [definition];\n while (superType) {\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n }\n else {\n if (superType.ɵcmp) {\n throw new Error('Directives cannot inherit Components');\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef);\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n const writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n // Merge hostBindings\n const superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n const superViewQuery = superDef.viewQuery;\n const superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs);\n // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n const defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n }\n // Run parent features\n const features = superDef.features;\n if (features) {\n for (let i = 0; i < features.length; i++) {\n const feature = features[i];\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}", "function ɵɵInheritDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let shouldInheritFields = true;\n const inheritanceChain = [definition];\n while (superType) {\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n }\n else {\n if (superType.ɵcmp) {\n throw new Error('Directives cannot inherit Components');\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef);\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n const writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n // Merge hostBindings\n const superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n const superViewQuery = superDef.viewQuery;\n const superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs);\n // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n const defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n }\n // Run parent features\n const features = superDef.features;\n if (features) {\n for (let i = 0; i < features.length; i++) {\n const feature = features[i];\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}", "function ɵɵInheritDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let shouldInheritFields = true;\n const inheritanceChain = [definition];\n while (superType) {\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n }\n else {\n if (superType.ɵcmp) {\n throw new Error('Directives cannot inherit Components');\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef);\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n const writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n // Merge hostBindings\n const superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n const superViewQuery = superDef.viewQuery;\n const superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs);\n // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n const defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n }\n // Run parent features\n const features = superDef.features;\n if (features) {\n for (let i = 0; i < features.length; i++) {\n const feature = features[i];\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}", "function ɵɵInheritDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let shouldInheritFields = true;\n const inheritanceChain = [definition];\n while (superType) {\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n }\n else {\n if (superType.ɵcmp) {\n throw new Error('Directives cannot inherit Components');\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef);\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n const writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n // Merge hostBindings\n const superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n const superViewQuery = superDef.viewQuery;\n const superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs);\n // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n const defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n }\n // Run parent features\n const features = superDef.features;\n if (features) {\n for (let i = 0; i < features.length; i++) {\n const feature = features[i];\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}", "function getDatasetField (fieldName) {\n let lc_fieldName = fieldName.toLowerCase();\n const field = state.dataset.attributes.fields.find(f => f.name.toLowerCase() === lc_fieldName);\n if (!field) {\n throw new Error(`Could not find field \"${fieldName}\" in dataset.`);\n }\n const stats = [...Object.entries(state.dataset.attributes.statistics).values()].find(([, fields]) => fields[lc_fieldName]);\n\n // add \"simple type\" (numeric, date, string) and stats into rest of field definition\n return {\n ...field,\n simpleType: stats && stats[0],\n statistics: stats && stats[1][lc_fieldName].statistics\n }\n }", "function RecordField(props, source) {\n $.extend(this, {\n isDate: props.type == \"date\",\n isLatitude: false,\n isLongitude: false,\n isElevation: false,\n\tforDisplay:true\n });\n if(props.id) {\n\t//A hack. maybe use Utils.makeID?\n\tprops.id = props.id.replace(/%/g,'');\n }\n $.extend(this, props);\n\n $.extend(this, {\n isGroup:props.group,\n properties: props\n });\n\n\n //check for extended attributes\n if(source && source.getProperty) {\n\t[\"type\",\"label\",\"unit\"].forEach(t=>{\n\t let ext = source.getProperty(props.id+\".\" + t);\n\t if(ext) this[t] = ext;\n\t});\n }\n RamaddaUtil.defineMembers(this, {\n\tclone: function() {\n\t let newField = {};\n\t $.extend(newField,this);\n\t return newField;\n\t},\n\ttoString: function() {\n\t return this.getId() +\" type:\" + this.getType() +\" index:\" + this.index;\n\t},\n\tgetDescription: function() {\n\t return this.description;\n\t},\n\tgetForDisplay: function() {\n\t return this.forDisplay;\n\t},\n getIndex: function() {\n return this.index;\n },\n getValue: function(record,dflt) {\n\t let v;\n\t if(record.getValue)\n\t\tv= record.getValue(this.index);\n\t else\n\t\tv = record[this.index];\n\t if(!v && !Utils.isDefined(v)) return dflt;\n\t return v;\n },\n\tgetGroup: function() {\n\t return this.group;\n\t},\n getEnumeratedValues: function(row) {\n\t return this.enumeratedValues;\n\t},\n isFieldGroup: function() {\n return this.isGroup;\n },\n\tisRecordDate: function() {\n\t return this.getId()==\"recordDate\";\n\t},\n isFieldGeo: function() {\n return this.isFieldLatitude() || this.isFieldLongitude() || this.isFieldElevation();\n },\n isFieldLatitude: function() {\n return this.isLatitude || this.id.toLowerCase() == \"latitude\";\n },\n isFieldLongitude: function() {\n return this.isLongitude || this.id.toLowerCase() == \"longitude\";\n },\n isFieldElevation: function() {\n return this.isElevation || this.id.toLowerCase() == \"elevation\" || this.id.toLowerCase() == \"altitude\";\n },\n isFieldNumeric: function() {\n return this.isNumeric();\n },\n isFieldString: function() {\n return this.type == \"string\" || this.type == \"enumeration\" || this.type == \"multienumeration\";\n },\n isFieldBoolean: function() {\n return this.type == \"boolean\";\n\t},\n isFieldEnumeration: function() {\n return this.type == \"enumeration\" || this.type == \"multienumeration\";\n },\n isFieldMultiEnumeration: function() {\n return this.type == \"multienumeration\";\n },\t\n isFieldDate: function() {\n return this.isDate;\n },\n isChartable: function() {\n return this.chartable;\n },\n getSortOrder: function() {\n return this.sortorder;\n },\n getId: function() {\n return this.id;\n },\n getTypeLabel: function() {\n let type = \"fa-font\";\n if(this.isFieldGeo()) {\n type=\"fa-globe\";\n } else if(this.isFieldNumeric()) {\n type=\"fa-hashtag\";\n } else if(this.isFieldEnumeration()) {\n type=\"fa-list\";\n }\n let tt = this.getType();\n return HtmlUtils.span([\"title\",tt,\"class\",\"fa \" +type,\"style\",\"color:rgb(169, 169, 169);font-size:12pt;\"]);\n },\n getUnitLabel: function() {\n return this.getLabel() + this.getUnitSuffix();\n },\n getUnitSuffix: function(plain) {\n if (this.unit && this.unit != \"\") {\n\t\tif(plain) return \"[\" + this.unit + \"]\";\n return \"&nbsp;[\" + this.unit + \"]\";\n\t } \n return \"\";\n },\n\n getLabel: function(display) {\n\t if(display) {\n\t\tlet label = display.getProperty(this.getId() +\".label\");\n\t\tif(label) return label;\n\t }\n\n if (this.label == null || this.label.length == 0) return this.id;\n return this.label;\n },\n setLabel: function(l) {\n this.label = l;\n },\n\tcanEdit: function() {\n\t return this.canedit==true;\n\t},\n isNumeric: function() {\n\t return this.type == \"double\" || this.type == \"integer\";\n\t},\n\tisString: function() {\n\t return this.type == \"string\" || this.isFieldEnumeration() || this.type ==\"url\" || this.type == \"image\";\n\t},\n getType: function() {\n return this.type;\n },\n setType: function(t) {\n this.type = t;\n },\t\n getMissing: function() {\n return this.missing;\n },\n setUnit: function(u) {\n this.unit = u;\n },\n getUnit: function() {\n return this.unit;\n }\n });\n\n}", "function calcSchema( inSchema ) {\n var gbCols = cols.concat( aggCols );\n var gbs = new Schema( { columns: gbCols, columnMetadata: inSchema.columnMetadata } );\n\n return gbs;\n }", "function aggregateData(query, data) {\r\n var aggregate = create2DArray(7);\r\n var max = 0;\r\n var colors = {};\r\n for (var usageIx = 0; usageIx < query.usageTypes.length; usageIx++) {\r\n var usageType = query.usageTypes[usageIx];\r\n colors[usageType.name] = usageType.color;\r\n var toInclude = [];\r\n if (usageType.usageType == \"All\") {\r\n var allUsageTypes = getUsageTypes(usageType.cdrType);\r\n for (var i = 0; i < allUsageTypes.length; i++) {\r\n if (data.usageData[allUsageTypes[i]] !== undefined) {\r\n toInclude.push(data.usageData[allUsageTypes[i]]);\r\n }\r\n }\r\n } else {\r\n if (data.usageData[usageType.usageType] !== undefined) {\r\n toInclude.push(data.usageData[usageType.usageType]);\r\n }\r\n }\r\n // sum up the relevant data\r\n\t\tif(toInclude.length == 0) {\r\n\t\t\tcontinue; // no data for this uT, don't put in aggregation\r\n\t\t}\r\n var tmpAggregate = toInclude.reduce(function (ut1, ut2) {\r\n var res = {};\r\n for (var prop in ut1) {\r\n res[prop] = sum2DArray(ut1[prop], ut2[prop]);\r\n }\r\n return res;\r\n });\r\n\r\n var measureData = tmpAggregate[query.measureType];\r\n for (var x = 0; x < measureData.length; x++) {\r\n for (var y = 0; y < measureData[x].length; y++) {\r\n if (aggregate[x][y] === undefined) {\r\n aggregate[x][y] = {};\r\n }\r\n aggregate[x][y][usageType.name] = measureData[x][y];\r\n if (measureData[x][y] > max) {\r\n max = measureData[x][y];\r\n }\r\n }\r\n }\r\n }\r\n\r\n\tif(max == 0) {\r\n\t\t// no data at all for this query\r\n\t\treturn null;\r\n\t}\r\n\r\n return {\r\n aggregate: aggregate,\r\n maxUsage: max,\r\n colors: colors\r\n };\r\n}", "function field_age(data,editable,config) {\n\ttyped_field.call(this, data, false, config);\n}", "collectResults() {\n // Collect groups\n let rows = Array.from(this.groups, ([_, group]) => {\n const { bindings: groupBindings, aggregators } = group;\n // Collect aggregator bindings\n // If the aggregate errorred, the result will be undefined\n const aggBindings = {};\n for (const variable in aggregators) {\n const value = aggregators[variable].result();\n if (value !== undefined) { // Filter undefined\n aggBindings[variable] = value;\n }\n }\n // Merge grouping bindings and aggregator bindings\n return groupBindings.merge(aggBindings);\n });\n // Case: No Input\n // Some aggregators still define an output on the empty input\n // Result is a single Bindings\n if (rows.length === 0) {\n const single = {};\n for (const i in this.pattern.aggregates) {\n const aggregate = this.pattern.aggregates[i];\n const key = rdf_string_1.termToString(aggregate.variable);\n const value = sparqlee_1.AggregateEvaluator.emptyValue(aggregate);\n if (value !== undefined) {\n single[key] = value;\n }\n }\n rows = [bus_query_operation_1.Bindings(single)];\n }\n return rows;\n }", "function mapAggregates(thingy, aggregates) {\n if (!thingy)\n return thingy;\n if (thingy.type === 'aggregate') {\n let found = false;\n let v;\n for (let key of Object.keys(aggregates)) {\n if (equal(aggregates[key], thingy)) {\n v = factory.createTerm(key);\n found = true;\n break;\n }\n }\n if (!found) {\n v = generateFreshVar();\n aggregates[rdf_string_1.termToString(v)] = thingy;\n }\n return v;\n }\n // non-aggregate expression\n if (thingy.expression)\n thingy.expression = mapAggregates(thingy.expression, aggregates);\n else if (thingy.args)\n mapAggregates(thingy.args, aggregates);\n else if (Array.isArray(thingy))\n thingy.forEach((subthingy, idx) => thingy[idx] = mapAggregates(subthingy, aggregates));\n return thingy;\n}", "visitFieldDefinition(field, details) {\n this.ensureFieldsWrapped(details.objectType)\n field._requiredAuthScopes = this.args.requires\n }", "function dynamicSummary(){\n fieldArray = [];\t//\tclear array so everytime this is called we update the data\n window.guideBridge.visit(function(cmp){\n var name = cmp.name;\n if(name && isVisible(cmp)){\n var grouped = isGrouped(cmp);\n var hideLabel = isHideLabel(cmp);\n var hideLink = isHideLink(cmp);\n\n if(name.indexOf(\"block_heading_\") == 0){//\tcheck if block heading (like for the address block fields)\n fieldArray.push({\"type\":\"block_heading\",\"size\":size(cmp),\"name\":cmp.name,\"value\":$(cmp.value).html(),\"grouped\":grouped, \"hideLink\":hideLink, \"className\":cmp.className, \"cssClassName\":cmp.cssClassName,\"id\":cmp.id,\"som\":cmp.somExpression});\n }\n else if(name.indexOf(\"block_\") == 0) {//\tcheck if object is a group panel\n fieldArray.push({\"type\":\"block\",\"size\":size(cmp),\"name\":cmp.name,\"title\":cmp.title, \"grouped\":grouped, \"className\":cmp.className, \"id\":cmp.id,\"som\":cmp.somExpression});\n }\n else if(name.indexOf(\"heading_\") == 0){//\tcheck if heading\n fieldArray.push({\"type\":\"heading\",\"size\":size(cmp),\"name\":cmp.name,\"value\":$(cmp.value).html(),\"grouped\":grouped, \"hideLink\":hideLink, \"className\":cmp.className, \"cssClassName\":cmp.cssClassName,\"id\":cmp.id,\"som\":cmp.somExpression});\n }\n else{\n //if(cmp.value != null){\n if(cmp.className == \"guideTextBox\"){\n fieldArray.push({\"type\":\"field\",\"name\":cmp.name,\"title\":cmp.title,\"grouped\":grouped,\"hideLabel\":hideLabel, \"hideLink\":hideLink, \"value\":((cmp.value)?cmp.value:\"Not provided\"),\"className\":cmp.className,\"id\":cmp.id,\"som\":cmp.somExpression});\n }\n if(cmp.className == \"guideRadioButton\" ||\n cmp.className == \"guideCheckBox\" ){\n fieldArray.push({\"type\":\"option\",\"name\":cmp.name,\"title\":cmp.title,\"grouped\":grouped,\"hideLabel\":hideLabel,\"hideLink\":hideLink, \"value\":((cmp.value)?cmp.value:\"Not provided\"), \"obj\":cmp,\"className\":cmp.className,\"id\":cmp.id,\"som\":cmp.somExpression});\n }\n //}\n }\n }\n });\n\n renderHTML();\t//\tthis generates the html inside the summary component\n}", "AggregateData(filter = {}, lookup = {}, unwind, project = {}) {\n return new Promise((resolve, reject) => {\n this.collection.aggregate([\n //1\n {\n $match: filter\n },\n\n //2\n {\n $lookup: lookup\n },\n\n //3\n {\n $unwind: unwind\n },\n\n //4\n {\n $sort: { createdOn: -1 }\n },\n\n //5\n {\n $project: project\n }\n\n ], (err, data) => {\n if (err) return reject({ message: err, status: 0 });\n\n return resolve(data);\n });\n })\n }", "async function example12() {\n try {\n const result = await studentsCollection.aggregate([\n {$unwind: '$scores'},\n {$match: {$or: [{'scores.type': 'quiz'}, {'scores.type': 'exam'}]}},\n {\n $group: {\n _id: {_id: '$_id'},\n name: {$first: '$name'},\n sum: {$sum: '$scores.score'}\n }\n },\n {\n $sort: {\n sum: -1\n }\n }\n ]);\n // await result.forEach(doc => console.log(doc));\n } catch (error) {\n console.log(error);\n }\n}", "function statistics(aggregation, grandTotal, totals, chiSquaredInfo) {\n if (chiSquaredInfo) {\n aggregation.percent = percentage(aggregation.n, grandTotal);\n aggregation.frequencies.forEach(function (frequency, i) {\n frequency.percent = percentage(frequency.count, totals.frequencies[i].count);\n frequency.cpercent = percentage(frequency.count, aggregation.n);\n chiSquaredInfo.sum += cellChiSquared(frequency.count, expected(aggregation.n, totals.frequencies[i].count, grandTotal));\n });\n }\n else {\n aggregation.frequencies.forEach(function (frequency) {\n frequency.percent = percentage(frequency.count, grandTotal);\n frequency.cpercent = percentage(frequency.n, grandTotal);\n });\n }\n }", "createAggFilter(query) {\n const filters = []\n const nestedPath = this.getNestedPath()\n const unrelatedFilters = query.getFiltersWithoutKeys(nestedPath)\n if (unrelatedFilters) {\n filters.push(unrelatedFilters)\n }\n const otherAppliedFiltersOnPath = this.createFilterForOtherElementsOnPath(\n query\n )\n if (otherAppliedFiltersOnPath) {\n filters.push(NestedQuery(nestedPath, otherAppliedFiltersOnPath))\n }\n return filters.length > 0 ? BoolMust(filters) : undefined\n }", "function testGetTransformed_AggregatedColumnsOnly() {\n var columns = [lf.fn.min(j.maxSalary), lf.fn.max(j.maxSalary)];\n checkTransformationWithoutJoin(columns, 1);\n}", "function xx(a,b){return\"method\"!==b.kind||!b.ej||\"value\"in b.ej?(ia(),{kind:\"field\",key:Symbol(),oW:\"own\",ej:{},Dj:function(){\"function\"===typeof b.Dj&&(this[b.key]=b.Dj.call(this))},$l:function(c){c.Ca(b.key,a)}}):Object.assign(Object.assign({},b),{$l:function(c){c.Ca(b.key,a)}})}", "async function example9() {\n try {\n const pipeline = [\n { $unwind: '$scores' },\n {\n $match: {\n 'scores.type': 'homework'\n }\n },\n {\n $group: {\n _id: null,\n average_score: {\n $avg: '$scores.score'\n }\n }\n }\n ]\n const res = await studentCollection.aggregate(pipeline)\n await res.forEach(el => { console.log(el.average_score) })\n }\n catch (e) {\n console.log(e)\n }\n\n}", "getDerivedQuery() {\n\t\treturn this.expr/*ABS*/.expr/*SELECT*/;\n\t}", "function groupAll() {\n\n // reducing does nothing because currently we can't choose how the database will aggregate data\n var groupAllObj = {\n reduce: function () { return groupAllObj; },\n reduceCount: function () { return groupAllObj; },\n reduceSum: function () { return groupAllObj; },\n dispose: function () {},\n value: function () { return getData(dimensionName, false)[0].value; }\n };\n\n return groupAllObj;\n }", "function calcMetaDataField_geoSubset(data,params,field)\n{\n var eventsField = normalizeField(field,'target','geoSubset')[0];\n var positionsField = normalizeField(field,'target','geoSubset')[1];\n var shape = normalizeField(field,'shape','geoSubset')[0];\n var x = normalizeField(field,'x','geoSubset')[0];\n var y = normalizeField(field,'y','geoSubset')[0];\n var width = normalizeField(field,'width','geoSubset')[0];\n var height = normalizeField(field,'height','geoSubset')[0];\n\n // normalizing will ensure we get an array for each, which may be empty\n var eventsArray = normalizeDataItem(data,eventsField);\n var positionsArray = normalizeDataItem(data,positionsField);\n\n return(geoSubsetOP(eventsArray,positionsArray,shape,x,y,width,height));\n}", "refine(schema, _options) {\n // Don't modify the original schema which may be in use elsewhere\n schema = _.cloneDeep(schema);\n // Deep clone is not required here, we just want\n // to modify the addFields property\n const options = _.clone(_options);\n options.addFields = schema.concat(options.addFields || []);\n // The arrangeFields option is trickier because we've already\n // done a compose() and so the groups are now denormalized as\n // properties of each field. Reconstruct the old\n // arrangeFields option so we can concatenate the new one\n const oldArrangeFields = [];\n _.each(schema, function (field) {\n if (field.group) {\n let group = _.find(oldArrangeFields, { name: field.group.name });\n if (!group) {\n group = _.clone(field.group);\n group.fields = [];\n oldArrangeFields.push(group);\n }\n group.fields.push(field.name);\n }\n });\n options.arrangeFields = oldArrangeFields.concat(options.arrangeFields || []);\n return self.compose(options);\n }", "function ɵɵInheritDefinitionFeature(definition) {\n let superType = getSuperType(definition.type);\n let shouldInheritFields = true;\n const inheritanceChain = [definition];\n while (superType) {\n let superDef = undefined;\n if (isComponentDef(definition)) {\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵcmp || superType.ɵdir;\n }\n else {\n if (superType.ɵcmp) {\n const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?\n 'Directives cannot inherit Components' :\n '';\n throw new RuntimeError(903 /* INVALID_INHERITANCE */, errorMessage);\n }\n // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.\n superDef = superType.ɵdir;\n }\n if (superDef) {\n if (shouldInheritFields) {\n inheritanceChain.push(superDef);\n // Some fields in the definition may be empty, if there were no values to put in them that\n // would've justified object creation. Unwrap them if necessary.\n const writeableDef = definition;\n writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);\n writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);\n writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);\n // Merge hostBindings\n const superHostBindings = superDef.hostBindings;\n superHostBindings && inheritHostBindings(definition, superHostBindings);\n // Merge queries\n const superViewQuery = superDef.viewQuery;\n const superContentQueries = superDef.contentQueries;\n superViewQuery && inheritViewQuery(definition, superViewQuery);\n superContentQueries && inheritContentQueries(definition, superContentQueries);\n // Merge inputs and outputs\n fillProperties(definition.inputs, superDef.inputs);\n fillProperties(definition.declaredInputs, superDef.declaredInputs);\n fillProperties(definition.outputs, superDef.outputs);\n // Merge animations metadata.\n // If `superDef` is a Component, the `data` field is present (defaults to an empty object).\n if (isComponentDef(superDef) && superDef.data.animation) {\n // If super def is a Component, the `definition` is also a Component, since Directives can\n // not inherit Components (we throw an error above and cannot reach this code).\n const defData = definition.data;\n defData.animation = (defData.animation || []).concat(superDef.data.animation);\n }\n }\n // Run parent features\n const features = superDef.features;\n if (features) {\n for (let i = 0; i < features.length; i++) {\n const feature = features[i];\n if (feature && feature.ngInherit) {\n feature(definition);\n }\n // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this\n // def already has all the necessary information inherited from its super class(es), so we\n // can stop merging fields from super classes. However we need to iterate through the\n // prototype chain to look for classes that might contain other \"features\" (like\n // NgOnChanges), which we should invoke for the original `definition`. We set the\n // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance\n // logic and only invoking functions from the \"features\" list.\n if (feature === ɵɵInheritDefinitionFeature) {\n shouldInheritFields = false;\n }\n }\n }\n }\n superType = Object.getPrototypeOf(superType);\n }\n mergeHostAttrsAcrossInheritance(inheritanceChain);\n}", "function extractFieldValueFtn(obj, field) {\n $log.info('from object : ' + JSON.stringify(obj));\n if(typeof obj.getField === \"function\") {\n return obj.getField(field); \n } else {\n return 0;\n }\n }", "function extractFieldValueFtn(obj, field) {\n $log.info('from object : ' + JSON.stringify(obj));\n if(typeof obj.getField === \"function\") {\n return obj.getField(field); \n } else {\n return 0;\n }\n }", "function calcMetaDataField_divide(data,params,field)\n{\n if(field.target.length < 2){\n\tconsole.log(\"You must have atleast 2 targets to divide\");\n\treturn null;\n }\n \n // only use the first numerator & denominator\n\n var numerator = field.target[0];\n var denominator = field.target[1];\n\n var dataNum = normalizeDataItem(data,numerator);\n var dataDenom = normalizeDataItem(data,denominator);\n\n if(dataNum.length == 0 || dataDenom.length == 0){\n\tconsole.log(\"Your Denominator and or Numerator had no data in it\")\n\treturn null;\n }\n\n if(dataDenom == 0){\n\tconsole.log(\"denominator was 0 in divide for \" + field.name);\n\treturn(dataNum[0]);\n }\n \n var value = dataNum[0]/dataDenom[0];\n\n return(value);\n}", "get fields() {\r\n return new SharePointQueryableCollection(this, \"fields\");\r\n }", "function aggregation(req, res, Output, Aggretation, Functions) {\n\n\tthis.aggregate = aggregate;\t\n\n\tfunction aggregate(){\n\t var cur_uri='';\n\t\tvar cur_end = -1;\n\t var grp=-1;\n \tvar groups = new Array();\n\t\tvar group_names = new Array();\n\t\tvar group_ends = new Array();\n\t Output.find({},function (err, C) {\n \t if (err) return console.error(err);\n\n\t\t\t//Group\n \tfor(var i=0; i < C.length; i++){\n if( C[i].uri != cur_uri ){\n grp++;\n cur_uri = C[i].uri;\n cur_end = C[i].end;\n groups[grp] = new Array();\n\t\t\t\t\tgroup_names.push(cur_uri);\n\t\t\t\t\tgroup_ends.push(cur_end);\n }\n if(groups[grp]){\n\t\t\t\t\tvar marks = C[i].marks.split(',').map(Number);\n\t\t\t\t\tfor(var j=0; j < marks.length; j++){\n\t\t\t\t\t\tif(marks[j] > 0){\n\t\t\t\t\t\t\tgroups[grp].push(marks[j]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n \t}\n\n\t\t\tvar videos = new Array;\n\t\t\tfor(var i=0; i < groups.length; i++){\n\t\t\t\tvar group = groups[i];\n\t\t\t\tgroup.sort(function(a,b){return a - b;});\n\t\t\t\tconsole.log('#'+group_names[i]);\n\t\t\t\tvar ranges = new Array;\n\t\t\t\tvar cur_range = -1;\n\t\t\t\tvar cur_value = -1;\n\t\t\t\tvar cont = 0;\n\t\t\t\tvar total = 0;\n\t\t\t\tfor(var j=0; j < group.length; j++){\n\t\t\t\t\tif(parseFloat(group[j]) > (cur_value + 0)){\n\t\t\t\t\t\tif(cur_range >= 0 && cont > 0){\n\t\t\t\t\t\t\tranges.push(parseFloat(total/cont));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcur_range++;\n\t\t\t\t\t\tcur_value = parseFloat(group[j]);\n\t\t\t\t\t\tcont = 0;\n\t\t\t\t\t\ttotal = 0;\n\t\t\t\t\t}\n\t\t\t\t\tcont++;\n\t\t\t\t\ttotal += parseFloat(group[j]);\n\t\t\t\t}\n\t\t\t\tvideos.push({'uri':group_names[i], 'starts':ranges, 'end':group_ends[i]});\n\t\t\t\tfor(var j=0; j < ranges.length; j++){\n\t\t\t\t\tconsole.log(ranges[j]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Store\n\t\t\tfor(i=0; i < videos.length; i++){\n\t\t\t\t//console.log(videos[i]);\n\t\t\t\tvar starts = videos[i].starts;\n\t\t\t\tvar uri = videos[i].uri;\n\t\t\t\tvar end = videos[i].end;\n\t\t\t\tfor(var j=0; j < starts.length -1; j++){\n\t\t\t\t \tvar data ={'uri': uri,'start': starts[j],'end': starts[j+1]}\n \tvar a = new Aggregation(data);\n \ta.save(function (err, m0) {if (err) return console.error(err);});\t\n\t\t\t\t}\n \tvar data ={'uri': uri,'start': starts[starts.length-1],'end': end}\n var a = new Aggregation(data);\n a.save(function (err, m0) {if (err) return console.error(err);});\n\t\t\t}\n\n \t res.end();\n\t }).sort({'uri' : 1});\n\t}\n}", "function convertTermAggregation(visState) {\n if (visState.aggs) {\n visState.aggs.forEach((agg) => {\n if (agg.type === 'terms' && agg.params && agg.params.orderBy === '_term') {\n agg.params.orderBy = '_key';\n }\n });\n }\n}", "customQuery(record) {\n\t\tif (record) {\n\t\t\treturn {\n\t\t\t\trange: {\n\t\t\t\t\t[this.props.appbaseField]: {\n\t\t\t\t\t\tgte: record.start,\n\t\t\t\t\t\tlte: record.end,\n\t\t\t\t\t\tboost: 2.0\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\treturn null;\n\t}", "function getBaseColObj(dataField, dataType, baseObject) {\n\n var objColumn = {};\n // objColumn.caption = \"\";\n objColumn.dataField = dataField;\n objColumn.dataType = dataType;\n objColumn.width = \"auto\";\n objColumn.allowEditing = false;\n objColumn.showInColumnChooser = true;\n objColumn.allowResizing = true;\n objColumn.allowHiding = true;\n baseObject.push(objColumn);\n\n\n }", "function getAssetType() {\n var deferred = Q.defer();\n /*console.log('HI');\n \n db.collection('assets').aggregate([{$group : {\"_id\":\"$type\", \"count\":{ $sum : 1 }}}]).toArray(function(err, types){\n console.log(types);\n if(err) deferred.reject(err);\n deferred.resolve(types);\n }); */\n return deferred.promise;\n}", "function on_aggregate_by_change() {\n $(\"#constituent-classes\").css('margin-left',\n $(\"#aggregate-by-checkbox\").is(':checked') ? '-500px' : '0px');\n maybe_enable_aggregate_create();\n}", "getChildren () {\n const doc = this.getDocument()\n const id = this.id\n const schema = this.getSchema()\n let result = []\n for (let p of schema) {\n const name = p.name\n if (p.isText()) {\n let annos = doc.getAnnotations([id, name])\n forEach(annos, a => result.push(a))\n } else if (p.isReference() && p.isOwned()) {\n let val = this[name]\n if (val) {\n if (p.isArray()) {\n result = result.concat(val.map(id => doc.get(id)))\n } else {\n result.push(doc.get(val))\n }\n }\n }\n }\n return result\n }", "function RecordField(props) {\r\n $.extend(this, {\r\n isDate: props.type == \"date\",\r\n isLatitude: false,\r\n isLongitude: false,\r\n isElevation: false,\r\n });\r\n $.extend(this, props);\r\n $.extend(this, {\r\n isNumeric: props.type == \"double\" || props.type == \"integer\",\r\n properties: props\r\n });\r\n\r\n\r\n RamaddaUtil.defineMembers(this, {\r\n getIndex: function() {\r\n return this.index;\r\n },\r\n isFieldGeo: function() {\r\n return this.isFieldLatitude() || this.isFieldLongitude() || this.isFieldElevation();\r\n },\r\n isFieldLatitude: function() {\r\n return this.isLatitude || this.id.toLowerCase() == \"latitude\";\r\n },\r\n isFieldLongitude: function() {\r\n return this.isLongitude || this.id.toLowerCase() == \"longitude\";\r\n },\r\n isFieldElevation: function() {\r\n return this.isElevation || this.id.toLowerCase() == \"elevation\" || this.id.toLowerCase() == \"altitude\";\r\n },\r\n isFieldNumeric: function() {\r\n return this.isNumeric;\r\n },\r\n isFieldDate: function() {\r\n return this.isDate;\r\n },\r\n isChartable: function() {\r\n return this.chartable;\r\n },\r\n getSortOrder: function() {\r\n return this.sortorder;\r\n },\r\n getId: function() {\r\n return this.id;\r\n },\r\n getUnitLabel: function() {\r\n var label = this.getLabel();\r\n if (this.unit && this.unit != \"\")\r\n label = label + \" [\" + this.unit + \"]\";\r\n return label;\r\n },\r\n\r\n getUnitSuffix: function() {\r\n if (this.unit && this.unit != \"\")\r\n return \" [\" + this.unit + \"]\";\r\n return \"\";\r\n },\r\n\r\n getLabel: function() {\r\n if (this.label == null || this.label.length == 0) return this.id;\r\n return this.label;\r\n },\r\n setLabel: function(l) {\r\n this.label = l;\r\n },\r\n getType: function() {\r\n return this.type;\r\n },\r\n getMissing: function() {\r\n return this.missing;\r\n },\r\n setUnit: function(u) {\r\n this.unit = u;\r\n },\r\n getUnit: function() {\r\n return this.unit;\r\n }\r\n });\r\n\r\n}", "function computeAggregatedMetrics(contribution_map_self, contribution_map_all) {\n\t\tmetrics = {}\n\n\t\t// Aggregation methods\n\t\tconst fwd = function(loc, func) { return loc+func }\n\t\tconst re = function(func_1, func_2) { return func_1 + func_2 }\n\t\tconst man = function(com, loc) { return com+loc }\n\n\t\t//\n\t\tcfg_sum_self = Object.keys(contribution_map_self).filter(k => Configs.includes(k)).map(k => contribution_map_self[k]).reduce((a, b) => a + b, 0)\n\t\tcfg_sum_all = Object.keys(contribution_map_all).filter(k => Configs.includes(k)).map(k => contribution_map_all[k]).reduce((a, b) => a + b, 0)\n\n\t\t// Call the methods defined above on given parameters\n\t\tmetrics['Engineering'] = fwd(contribution_map_self['LOC+'], contribution_map_self['FUNC+']) / fwd(contribution_map_all['LOC+'], contribution_map_all['FUNC+'])\n\t\tmetrics['Re-engineering'] = re(contribution_map_self['FUNC+'], contribution_map_self['FUNC*']) / re(contribution_map_all['FUNC+'], contribution_map_all['FUNC*'])\n\t\tmetrics['Management'] =\n\t\t\tman(contribution_map_self['COM+'], cfg_sum_self) / man(contribution_map_all['COM+'], cfg_sum_all)\n\n\t\treturn metrics\n}", "async function example13() {\n try {\n const result = await studentsCollection.aggregate([\n {$unwind: '$scores'},\n {\n $match: {\n 'scores.type': 'homework'\n }\n },\n {$group: {_id: null, avgForHome: {$avg: '$scores.score'}}}\n ]);\n // await result.forEach(doc => console.log(doc));\n } catch (error) {\n console.log(error);\n }\n}" ]
[ "0.63202894", "0.6128981", "0.5986252", "0.57403654", "0.56460834", "0.5632795", "0.5631248", "0.5631248", "0.5556685", "0.54278696", "0.5410894", "0.52608454", "0.5249738", "0.52352643", "0.5223279", "0.51731145", "0.51703495", "0.5125121", "0.5121008", "0.511709", "0.51130146", "0.5016502", "0.49905762", "0.49619818", "0.4953389", "0.49378163", "0.49322897", "0.4924545", "0.49202186", "0.49201804", "0.49028796", "0.49024114", "0.48944274", "0.48854646", "0.48727354", "0.48693913", "0.48018587", "0.47985205", "0.4793726", "0.47892055", "0.47715113", "0.47337946", "0.4725227", "0.47132185", "0.4711606", "0.4688067", "0.46751714", "0.46732438", "0.4668598", "0.46595088", "0.46560702", "0.46559677", "0.46546173", "0.46538088", "0.46376714", "0.46342838", "0.46221924", "0.46196455", "0.46054757", "0.4601266", "0.46005625", "0.46005625", "0.46005625", "0.46005625", "0.46005625", "0.45971897", "0.45968005", "0.45826593", "0.45802468", "0.4576465", "0.45686853", "0.45502108", "0.45401296", "0.45345286", "0.4533343", "0.4531599", "0.45296028", "0.45241514", "0.45238003", "0.45131034", "0.45115545", "0.4506328", "0.44967696", "0.4492008", "0.44908863", "0.44852415", "0.44796225", "0.44796225", "0.44634816", "0.4453568", "0.4450827", "0.4449399", "0.44383267", "0.4437782", "0.44354168", "0.44345814", "0.4434412", "0.44295827", "0.44257444", "0.441586" ]
0.46818218
46
takes in json returned object
function petProcessor (petObj) { // assigning raw data properties to new properties let newPet; let name = petObj.name; let species = petObj.species; let sex = petObj.sex; let birthMonth = petObj.birthMonth; let birthYear = petObj.birthYear; let imgSrc = petObj.imgSrc; let id = petObj.id; // if (!imgSrc) { // // imgSrc = 'media/cat.png'; // } let breed = petObj.breed; // creating new pet objects if (species === 'dog') { newPet = new Dog(name, species, sex, birthMonth, birthYear, imgSrc, id, breed); } else if (species === 'cat') { newPet = new Cat(name, species, sex, birthMonth, birthYear, imgSrc, id, breed); } else { newPet = new Pet(name, species, sex, birthMonth, birthYear, imgSrc, id, breed); } return newPet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "parseJsonResult(result) {\n return result;\n }", "function json(response){\n return response.json();\n}", "json() {\r\n return this.data;\r\n }", "function json(response) {\n return response.json();\n console.log(response.json());\n}", "loadJsonData() {\n }", "function gotJSONNowWhat() {\n\t\tshowPhotos(oReq);\n\t }", "function processResult(json) {\n\n var ret = {};\n\n ret.id = json.uuid;\n ret.name = json.name;\n ret.handle = json.handle;\n ret.type = json.type;\n ret.copyrightText = json.copyrightText;\n ret.introductoryText = json.introductoryText;\n ret.shortDescription = json.shortDescription;\n if (typeof json.permission !== 'undefined') {\n ret.canAdminister = json.permission.canAdminister;\n }\n ret.countItems = json.countItems;\n var logo = {};\n if (json.logo !== null) {\n logo.id = json.logo.uuid;\n logo.retrieveLink = json.logo.retrieveLink;\n logo.sizeBytes = json.logo.sizeBytes;\n logo.mimeType = json.logo.mimeType;\n\n }\n ret.logo = logo;\n\n var collections = [];\n var itemTotal = 0;\n for (var i = 0; i < json.collections.length; i++) {\n\n var tmp = {};\n tmp.id = json.collections[i].id;\n tmp.name = json.collections[i].name;\n tmp.handle = json.collections[i].handle;\n tmp.type = json.collections[i].type;\n tmp.copyrightText = json.collections[i].copyrightText;\n tmp.introductoryText = json.collections[i].introductoryText;\n tmp.shortDescription = json.collections[i].shortDescription;\n tmp.numberItems = json.collections[i].numberItems;\n collections[i] = tmp;\n\n // increment total item count\n itemTotal += tmp.numberItems;\n\n }\n ret.items = collections;\n ret.itemTotal = itemTotal;\n\n return ret;\n }", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "loadJSON(){\n return this.loadString(result).then(function(str){\n return JSON.parse(str);\n });\n }", "function json(response) {\n\n return response.json();\n}", "setFromJSON(jsnmrph) {\n//----------\n// JSON morph: { \"id4cc\" : \"eylc\", \"amount\" : 0.16 }\nthis.fourCCName = FourCC.fourCCInt(jsnmrph.id4cc);\nreturn this.amount = jsnmrph.amount;\n}", "function json(response) {\n return response.json()\n }", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function json(response) {\n return response.json();\n}", "function returnObject(startjson) {\n startjson = `{\n \"name\": \"${nameInput.value}\",\n \"Email\": \"${emailInput.value}\",\n \"Message\": \"${mesInput.value}\"\n }`\n return console.log(JSON.parse(startjson)); \n}", "json(obj) {\n return this.string(JSON.stringify(obj));\n }", "function handleSuccess(json) {\n //console.log('handleSuccess');\n //console.log(json);\n\t}", "handleResponse(status, _headers, json) {\n if (status !== 200) {\n if(json.error){\n\n }\n }\n if(json.total_pages >= 0 && !json.inspections){\n json.inspections = []\n }\n if(json.inspections) {\n this.get('store').unloadAll('inspection');\n for(var i = 0; i < json.inspections.length; i++) {\n var inspection = json.inspections[i];\n //Now, set the embedded inspection attrs\n inspection.inspector_id = inspection.inspector.id;\n inspection.inspector_name = inspection.inspector.name;\n }\n return json;\n }\n else {\n if(json.inspector) {\n json.inspector_name = json.inspector.name;\n json.inspector_id = json.inspector.id;\n }\n //In proper JSON API, a singular request is encased with the type\n return {inspection: json};\n }\n }", "function returnJSON(obj) {\n if (obj !== undefined && obj !== null && obj.constructor == Object) {\n return obj;\n } else {\n return JSON.parse(obj);\n }\n }", "function process(value) {\n var isjson=true;\n var result;\n\n try {\n result = JSON.parse(value);\n } catch(e) {\n isjson=false;\n }\n\n if (isjson) {\n return result;\n } else {\n return $.getJSON(value)\n .then(function (response) {\n return response;\n });\n }\n }", "function getTableDataFromJSON() {\n\n }", "function d3_json(request) {\n return JSON.parse(request.responseText);\n }", "json() {\n return JSON.parse(this.string());\n }", "function JSON() {}", "json() {\n var json = super.json()\n json.end = this.end\n json.value = this.value\n json.type = this.type\n return json\n }", "function testJson() {\n var baseUrl = 'https://rxnav.nlm.nih.gov/REST/';\n var testUrl = 'https://rxnav.nlm.nih.gov/REST/rxcui?name=xanax'\n var request = Meteor.npmRequire('request');\n request(testUrl, function (error, response, body) {\n if (!error && response.statusCode == 200) {\n var info = JSON.parse(body)\n console.log(body);\n }\n });\n }", "function getJSON() {\n\t\treturn _json;\n\t}", "async json() {\n\t\tconst buffer = await consumeBody(this);\n\t\treturn JSON.parse(buffer.toString());\n\t}", "function HTML_AJAX_Serialize_JSON() {}", "function setInfo( json ) { rescate = json; }", "function arcGetJson(data) {\r\n return jQuery.parseJSON(JSON.stringify(data));\r\n}", "function ajax_json_result(json,_var){\n\treturn json.match(/<data>(.+)<\\/data>/m)? json.match(/<data>(.+)<\\/data>/m)[1] : '';\t//filter json result\n}", "function jsonData() {\n getJSONP(jsonLink, function(data) {\n fillList(data);\n });\n}", "getJSON() {\r\n return this.getParsed(new JSONParser());\r\n }", "function JSON() {\r\n}", "function hydrateObjectFromJSON(name, path, callback) {\n $.ajax(\n path, {\n dataType: 'json'\n }\n ).done(function(data) {\n Search[name] = data;\n if (callback) {\n callback();\n }\n });\n }", "function GetItemJson(id, user)\n{\n\t//add your code here to process ajax requests and handle server's responses\n var request = createXmlHttpRequestObject();\n \n request.onreadystatechange = function() {\n if (this.readyState == 4 && this.status == 200) {\n var json = $.parseHTML(request.responseText)[6].textContent;\n json = json.trim();\n \n updateDetailBox(JSON.parse(json));\n }\n };\n \n request.open(\"GET\", \"getItemDetails?id=\" + id + \"&userFlag=\" + user, false);\n request.send(id);\n \n \n}", "isJSON(obj) {\r\n if (typeof (obj) == \"object\") {\r\n return 1;\r\n }\r\n else {\r\n return 0;\r\n }\r\n }", "function fetchParsedJson() {\n\treturn JSON.parse(datasetToDisplay);\n}", "toJSON() {\n return this.retriveInfo(this)\n }", "function parseLDLAPIResultData(json) {\n // json.ret.day_10w = new Date(json.ret.day_10w);\n // json.ret.better_than_pct = (100 - parseInt(json.ret.rank_pct)) + '%';\n json.ret.completegoalrate = Math.round(100*(json.ret.completegoalday/json.ret.lifetime));\n json.ret.firstday_parsed = parseDate(json.ret.firstday);\n json.ret.dt_10w_parsed = parseDate(json.ret.dt_10w);\n json.ret.dt_100w_parsed = parseDate(json.ret.dt_100w);\n // console.log(json);\n return json;\n }", "function responseToObject(s){\r\n\t//trim leading and trailing white spaces\r\n\ts = s.trim();\r\n\t//remove double quotes from first and last position\r\n\ts = s.substring(1, s.length-1);\r\n\t//remove backslashes from JSON\r\n\ts = s.replace(/\\\\\"+/g, '\"');\r\n\t//parse JSON\r\n\treturn JSON.parse(s);\r\n}", "async function receiveJSONObj(_response, _result) {\n _response.setHeader(\"content-type\", \"application/json\");\n _response.write(JSON.stringify(await _result));\n }", "function parseJSON(jsValue) {\n\t\tjson = jsValue;\t\n\t}", "function parseJSON(json){\n\tif(json != null) {\n\t\tvar jsonObj = JSON.parse(JSON.stringify(json));\n\t\tif(jsonObj != null && jsonObj.isDone == \"true\"){\n\t\t\tjsonObj.isDone = true;\n\t\t} else if(jsonObj != null && jsonObj.isDone == \"false\"){\n\t\t\tjsonObj.isDone = false;\n\t\t}\n\t\treturn jsonObj;\n\t}\n}", "enterJson(ctx) {\n\t}", "function retrieve(jsonArr){\njsonArr = JSON.parse(jsonArr);\n for (j = 0; j < jsonArr.length; j++){\n new listItem(jsonArr[j].name,jsonArr[j].id,jsonArr[j].done).getHtml();\n }\n}", "function getTweets(json) { return json; }", "body2JSON(body) {\n const data = JSON.parse(body);\n // console.log(body);\n\n if (data.length === 0) {\n console.log(\"The artist not found.\");\n return null;\n }\n if ('errorMessage' in data) {\n console.log(data.errorMessage);\n return null;\n }\n if ('message' in data) {\n console.log(data.message);\n return null;\n }\n\n return data;\n }", "get(data) {\n try {\n return JSON.parse(data);\n } catch (e) {\n return data;\n }\n }", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "json() {\n\t\tvar _this2 = this;\n\n\t\treturn consumeBody.call(this).then(function (buffer) {\n\t\t\ttry {\n\t\t\t\treturn JSON.parse(buffer.toString());\n\t\t\t} catch (err) {\n\t\t\t\treturn Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));\n\t\t\t}\n\t\t});\n\t}", "toJson(data) {\n return JSON.parse(data);\n }", "get json() {\n return JSON.stringify(this.data);\n }", "transform(obj, json) {\n delete json._id;\n delete json.__v;\n return json;\n }", "transform(obj, json) {\n delete json._id;\n delete json.__v;\n return json;\n }" ]
[ "0.6684731", "0.64854175", "0.62922853", "0.6283423", "0.6219725", "0.62073183", "0.6156808", "0.6155376", "0.6155376", "0.6155376", "0.6155376", "0.61455584", "0.6145217", "0.6123735", "0.61139816", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60813856", "0.60804904", "0.6066478", "0.6059487", "0.60519576", "0.6036706", "0.60354257", "0.60340446", "0.6025803", "0.6013899", "0.60057425", "0.598258", "0.5969304", "0.5968419", "0.5957418", "0.59380054", "0.5928516", "0.59236556", "0.59192365", "0.59112895", "0.5905453", "0.5889086", "0.58446574", "0.5844295", "0.5837672", "0.58148485", "0.5808229", "0.5803309", "0.58019805", "0.58009905", "0.5795963", "0.5795624", "0.57939607", "0.5791298", "0.57812583", "0.57697576", "0.5763845", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.57593167", "0.5722577", "0.57221365", "0.571915", "0.571915" ]
0.0
-1
Throws errors and warns if the parameters passed to the constructor aren't sufficient.
static validateParams(token) { if (token === undefined) { throw Error("client requires a 'token'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "constructor() {\n throw new Error(`${this.constructor.name} class cannot be instantiated`);\n }", "constructor() {\n\t\tthrow new Error('Sorry, this class can`t be instanciated, it is only for static methods');\n\t}", "constructor(isValid, ...errors) {\n if (typeof isValid === 'boolean') {\n this.isValid = isValid;\n }\n else {\n this.isValid = false;\n }\n this.errors = errors ? errors : [];\n }", "constructor() {\n throw new Error('Tried instantiating a utility class.');\n }", "function ThrowingConstructorTest() {\n throw new Error('taco');\n}", "constructor (errors = {}) {\n\t\tthis.initialize(errors);\n\t}", "constructor() {\n super();\n if (arguments.length === 0) {\n this._constructorDefault();\n }\n else if (arguments.length === 2) {\n this._constructorValues(arguments[0], arguments[1]);\n }\n else if (arguments.length === 1) {\n this._constructorPoint(arguments[0]);\n }\n else {\n throw new Error('HPoint#constructor error: Invalid number of arguments.');\n }\n }", "constructor() {\n throw new Error('Not implemented');\n }", "function checkMainArguments() {\n if (!this.operator) {\n error('\"operator\" parameter is missing');\n }\n\n if (!this.oldApiKey) {\n error('\"oldApiKey\" parameter is missing');\n }\n\n if (!this.newApiKey) {\n error('\"newApiKey\" parameter is missing');\n }\n}", "constructor(firstName, lastName, age, address) {\n // sets the instance variables to whatever is passed into\n // constructor\n this.firstName = firstName\n this.lastName = lastName\n this.age = age\n this.address = address\n }", "function mandatory() {\n throw new Error('Missing parameter');\n}", "constructor() {\n throw Error('do not use constructor directly, only static functions');\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0xa7eff811;\n this.SUBCLASS_OF_ID = 0xcebaa157;\n\n this.badMsgId = args.badMsgId;\n this.badMsgSeqno = args.badMsgSeqno;\n this.errorCode = args.errorCode;\n }", "function Constructor() {}", "function Constructor() {}", "function Constructor() {}", "function InvalidAccesConstructorException(){\n this.name = \"InvalidAccesConstructor\";\n this.message = \"El constructor no puede ser llamado como una función\";\n}", "build() {\n return new InvalidParamError(this);\n }", "function NegativeParameterException() {\n this.exception = \"Should throw a NegativeParameterException\";\n}", "constructor(params) {\n this.params = params;\n }", "constructor(name, age, catchPhrase){\n this.name = name\n this.age= age\n this.catchPhrase = catchPhrase\n }", "constructor(title, author, isbn) {\n // whatever passes in as params will be assigned to title, author, isbn\n this.title = title;\n this.author = author;\n this.isbn = isbn;\n }", "constructor ( firstName, lastName, userHobbies ) {\n //initial values of the arguments\n this.firstName = firstName;\n this.lastName = lastName;\n this.userHobbies = userHobbies;\n }", "function required(){\n throw new Error('argument is required');\n}", "function checkRequiredProperties(className) {\n if (typeof className === 'undefined') {\n throw new Error('Class Name not provided');\n }\n }", "validateParams(params) {\n const { vendor_id, fulfillment_center_id } = params;\n if (\n !vendor_id &&\n !fulfillment_center_id\n ) {\n throw new Error('Vendor or Fulfillment center Id is required!');\n }\n }", "constructor( ) {}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor (){}", "constructor(message, errorCode) { \n super(message); // Super to call Error, then add a \"message\" property\n this.code = errorCode; // Adds a \"code\" property\n }", "constructor(name, age) {\n this.name = name\n this.age = age\n }", "function ExpectedError(message) {\n this.message = message || \"\";\n}", "_checkIfConfigIsLegal() {\n if(!this.config) throw new ValidationError('You should pass config object to initialize a queue');\n if(!this.config.baseProperty) throw new ValidationError('Illegal config object. You must specify baseProperty to run the queue');\n }", "constructor(name = 'anonymous', age = 0) { // if there's no name - argmuent = 'anonymous'\n this.name = name; // 'this' referes to the class instance\n this.age = age;\n}", "constructor(a, b, c) {\n super(a, b, c);\n }", "init() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function throwIfMissing() {\n throw new Error(\"Missing parameter\");\n}", "constructor(a,b){\n this.a = a;\n this.b = b;\n }", "constructor(arg: any) {\n this.isChanged = true\n this.isFailed = false\n this.arg = arg\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0xedab447b;\n this.SUBCLASS_OF_ID = 0xcebaa157;\n\n this.badMsgId = args.badMsgId;\n this.badMsgSeqno = args.badMsgSeqno;\n this.errorCode = args.errorCode;\n this.newServerSalt = args.newServerSalt;\n }", "function _construct()\n\t\t{;\n\t\t}", "constructor(firstname, lastname){\n this.firstname = firstname;\n this.lastname = lastname;\n }", "function InvalidParametersNumberError() {\n this.name = \"InvalidParametersNumberError\";\n this.message = \"Wrong number of parameters.\";\n\tthis.code = 3;\n}", "function InvalidParametersNumberError() {\n this.name = \"InvalidParametersNumberError\";\n this.message = \"Wrong number of parameters.\";\n\tthis.code = 3;\n}", "constructor(...args) {\n super(...args);\n this.state = {\n errorMessage: '',\n };\n }", "function Constructor() {\n // All construction is actually done in the init method\n if ( this.initialize )\n this.initialize.apply(this, arguments);\n }", "validate() {\n // Check required top level fields\n for (const requiredField of [\n 'description',\n 'organizationName',\n 'passTypeIdentifier',\n 'serialNumber',\n 'teamIdentifier',\n ])\n if (!(requiredField in this.fields))\n throw new ReferenceError(`${requiredField} is required in a Pass`);\n // authenticationToken && webServiceURL must be either both or none\n if ('webServiceURL' in this.fields) {\n if (typeof this.fields.authenticationToken !== 'string')\n throw new Error('While webServiceURL is present, authenticationToken also required!');\n if (this.fields.authenticationToken.length < 16)\n throw new ReferenceError('authenticationToken must be at least 16 characters long!');\n }\n else if ('authenticationToken' in this.fields)\n throw new TypeError('authenticationToken is presented in Pass data while webServiceURL is missing!');\n this.images.validate();\n }", "constructor(data) { }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x0949d9dc;\n this.SUBCLASS_OF_ID = 0x45e53dcf;\n\n this.validSince = args.validSince;\n this.validUntil = args.validUntil;\n this.salt = args.salt;\n }", "constructor() {\n super();\n this.name = this.constructor.name;\n this.isUserError = true;\n }", "constructor(args) {\n super(args);\n }", "constructor(args) {\n super(args);\n }", "function construct() { }", "constructor(...params)\n {\n //defining first name, last name, address , city, state, zip, phone number and email\n this.firstName= params[0];\n this.lastName= params[1];\n this.address= params[2];\n this.city= params[3];\n this.state= params[4];\n this.zip= params[5];\n this.phoneNumber= params[6];\n this.email= params[7];\n }", "constructor(firstName, lastName) {\n this.firstName = firstName;\n this.lastName = lastName;\n }", "constructor(data, has_error, error_msg, timestamp, certainty) {\n this.data = data;\n this.has_error = has_error;\n this.error_message = error_msg;\n this.timestamp = timestamp;\n this.certainty = certainty;\n }", "function checkRequiredArguments(settings) {\n if (!settings.name) {\n throw new Error('name is required when running createTemplate function.');\n }\n if (!settings.srcPath) {\n throw new Error('srcPath is required when running createTemplate function.');\n }\n if (!settings.destPath) {\n throw new Error('destPath is required when running createTemplate function.');\n }\n}", "constructor(name, age){\n this.name = name;\n this.age = age;\n }", "initialize (errors) {\n\t\tthis.errors = errors;\n\t}", "constructur() {}", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0xf8b036af;\n this.SUBCLASS_OF_ID = 0x99d5cb14;\n\n this.byLocation = args.byLocation || null;\n this.checkLimit = args.checkLimit || null;\n }", "constructor(args, opts) {\n super(args, opts);\n}", "constructor(length, mass) {\n if (this.constructor === Shape) {\n throw new Error(\"Cannot instantiate abstract class!\")\n }\n }", "constructor(opts) {\n super(opts);\n }", "constructor (firstname, lastname) {\n // No logical process here, use instance method instead\n this.firstname = firstname;\n this.lastname = lastname;\n }", "consructor() {\n }", "validate() {\n if (!this.apiKey) throw new Error(\"apiKey is required\");\n }", "constructor (Protected, Class, Prototype, vargs) {\n // We can't use `Interrupt.Error.assert` because auditing will make us\n // blow the stack.\n assert(PROTECTED === Protected, 'INVALID_ACCESS')\n // When called with no arguments we call our super constructor with no\n // arguments to eventually call `Error` with no argments to create an\n // empty error.\n const args = Class.options.apply(Class, vargs)\n const prototypes = [ Prototype.prototypes[args.code] || { code: null } ]\n const code = prototypes[0].code\n if (prototypes[0].code != null && prototypes[0].code != args.code) {\n let superPrototype = prototypes[0], superCode\n do {\n superCode = superPrototype.code\n superPrototype = Prototype.prototypes[superCode]\n prototypes.unshift(superPrototype)\n } while (superPrototype.code != superCode)\n }\n prototypes.push(args, { code: prototypes[prototypes.length - 1].code })\n const options = Class.options.apply(Class, prototypes)\n\n const properties = {\n name: {\n // **TODO** Class.name?\n value: Prototype.name,\n enumerable: false,\n writable: false\n },\n errors: {\n value: options.errors,\n enumerable: false,\n writable: false\n }\n }\n\n if (options.code) {\n properties.code = {\n value: options.code,\n enumerable: true,\n writable: false\n }\n properties.symbol = {\n value: Prototype.prototypes[options.code].symbol,\n enumerable: false,\n writable: false\n }\n }\n\n for (const property of Object.getOwnPropertyNames(options)) {\n if (property[0] != '_' && property[0] != '$' && !/^(?:name|message|stack|symbol)$/.test(property) && !(property in properties)) {\n properties[property] = Object.getOwnPropertyDescriptor(options, property)\n }\n }\n\n const instance = { message: null, tracers: [], errors: options.$errors, options, displayed: {} }\n\n for (const property in properties) {\n if (properties[property].enumerable) {\n instance.displayed[property] = properties[property].value\n }\n }\n\n if (options.$trace.length != 0) {\n let stack = null\n let previous = function () {\n const stackTraceLimit = Error.stackTraceLimit\n Error.stackTraceLimit = 1 + options.$trace.length\n const prepareStackTrace = Error.prepareStackTrace\n Error.prepareStackTrace = (_, stack) => stack\n stack = new Error().stack\n Error.prepareStackTrace = prepareStackTrace\n Error.stackTraceLimit = stackTraceLimit\n }\n for (const trace of options.$trace) {\n previous = function (caller, callee) {\n return caller.bind(null, callee)\n } (trace, previous)\n }\n previous()\n for (const site of stack.slice(1)) {\n instance.tracers.push({\n file: site.getFileName(),\n line: site.getLineNumber(),\n column: site.getColumnNumber()\n })\n }\n }\n\n const stackTraceLimit = Error.stackTraceLimit\n if (options.$stack != null) {\n Error.stackTraceLimit = options.$stack\n }\n\n // **TODO** Display internal errors.\n if (\n options.code == null &&\n options.message == null &&\n options.errors.length == 0 &&\n options.$errors.length == 0 &&\n instance.tracers.length == 0 &&\n Object.keys(options).filter(name => !/^\\$|^#|^errors$/.test(name)).length == 0\n ) {\n super()\n } else {\n super(context(options, instance))\n }\n\n Instances.set(this, instance)\n\n const invisible = {}\n for (const property in properties) {\n invisible[property] = { ...properties[property], enumerable: false }\n }\n\n properties.message = {\n value: instance.message || '',\n enumerable: false,\n writable: true,\n configurable: true\n }\n\n invisible.properties = {\n value: Object.defineProperties({}, properties),\n enumerable: false,\n writable: false,\n configurable: false\n }\n\n Object.defineProperties(this, invisible)\n\n // FYI It is faster to use `Error.captureStackTrace` again than\n // it is to try to strip the stack frames created by `Error`\n // using a regular expression or string manipulation. You know\n // because you tried. Years later: Thanks for reminding me, I keep\n // coming back to experiment with it.\n\n //\n if (options.$callee != null) {\n Error.captureStackTrace(this, options.$callee)\n }\n\n Error.stackTraceLimit = stackTraceLimit\n }", "constructor(message, statusCode) {\n // error class has access to message in it's constructor, so call super on that\n // instead of `this.message = message`\n super(message);\n\n // create a custom class property called `statusCode`\n // which is whatever param was passed in\n this.statusCode = statusCode;\n }", "function _construct() {\n // If constructor argument is blank, default to null.\n if (constructorArgument === undefined) {\n constructorArgument = null;\n }\n\n // Assemble the data differently depending on the type of constructor arg\n // given.\n if (typeof (constructorArgument) === 'number' || constructorArgument === null) {\n /*\n * Populate data with a single value.\n */\n iterateOverRowAndColumn(function (row, col, square) {\n _data[row][col] = constructorArgument;\n });\n } else if (constructorArgument instanceof Array) {\n /*\n * Populate data using the M x M array. There will be problems if the\n * dimensions are anything else.\n */\n iterateOverRowAndColumn(function (row, col, square) {\n _data[row][col] = constructorArgument[row][col];\n });\n } else if (constructorArgument instanceof self.constructor) {\n /*\n * Populate data using an existing matrix.\n */\n iterateOverRowAndColumn(function (row, col, square) {\n _data[row][col] = constructorArgument.get(row, col);\n });\n } else {\n // Throw because we don't know what this is.\n var e = new Error(\n 'Unknown Matrix constructor argument. Use a 9x9 array of arrays, a single number, or another Matrix instance.');\n e.invalidArgument = constructorArgument;\n e.name = _constants.initialization;\n\n throw e;\n }\n }", "function testBadInput() {\n assertThrows('Bad input', function() {\n new goog.crypt.Sha512().update({});\n });\n assertThrows('Floating point not allows', function() {\n new goog.crypt.Sha512().update([1, 2, 3, 4, 4.5]);\n });\n assertThrows('Negative not allowed', function() {\n new goog.crypt.Sha512().update([1, 2, 3, 4, -10]);\n });\n assertThrows('Must be byte array', function() {\n new goog.crypt.Sha512().update([1, 2, 3, 4, {}]);\n });\n}", "constructor(...args) {\n super(...args);\n \n }", "constructor (err,data) {\n \n // Calling parent constructor of base Error class.\n super(err);\n \n // Saving class name in the property of our custom error as a shortcut.\n this.data = data || {};\n\n // Capturing stack trace, excluding constructor call from it.\n Error.captureStackTrace(this, this.constructor);\n \n // You can use any additional properties you want.\n // I'm going to use preferred HTTP status for this error types.\n // `500` is the default value if not specified.\n }", "function validateParameters(params) {\n // Required: Channel identifier\n assert(params.recipient && params.recipient.id, 'Recepient id not provided.');\n // Required: Message to send\n assert(params.message, 'Message object not provided.');\n}", "constructor(message, statusCode) {\n // now with the super keyWord we force to use also the constructor of the parent class\n // In our case bellow, The Error class only acepts the message parameter\n // By setting this, our messagem propertie gets the messa itself\n super(message);\n\n\n this.statusCode = statusCode;\n this.status = `${statusCode}`.startsWith(\"4\") ? \"fail\" : \"error\";\n this.isOperational = true; // I use this option to chose if I wanna give it back to the client. True means yes in this case\n\n /// in order to avoid polution of the return of an error\n\n Error.captureStackTrace(this, this.constructor);\n }", "function callingPrivateConstructor() {\n /*jshint validthis:true*/\n throw new Error('Cannot call parent constructor in class \"' + this.$name + '\" because it\\'s declared as private.');\n }", "constructor(fullName, birthYear, course) {\n //Always need to heppen first then\n super(fullName, birthYear);\n //we can use this keyword\n this.course = course;\n }", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}" ]
[ "0.62111604", "0.6107194", "0.60503215", "0.6022229", "0.6007274", "0.59949195", "0.59926856", "0.59879637", "0.59526867", "0.59331465", "0.59022886", "0.5899285", "0.58757496", "0.5840904", "0.5840904", "0.5840904", "0.5835152", "0.5811561", "0.5769571", "0.57468307", "0.57260525", "0.5700526", "0.56941366", "0.5683496", "0.567173", "0.56701046", "0.56638104", "0.56611365", "0.56611365", "0.56611365", "0.56611365", "0.56611365", "0.56611365", "0.56611365", "0.5644655", "0.5638855", "0.5635817", "0.5632371", "0.5615031", "0.56043285", "0.5601338", "0.55891216", "0.5585199", "0.55749935", "0.55669576", "0.55646574", "0.5558846", "0.55560696", "0.55413854", "0.55413854", "0.5533883", "0.5528107", "0.5514138", "0.5511682", "0.550765", "0.54959434", "0.54884344", "0.54884344", "0.5484051", "0.5475479", "0.5454325", "0.54532635", "0.5449355", "0.54356986", "0.54320216", "0.54220164", "0.5417165", "0.5410014", "0.53960294", "0.53837544", "0.5379314", "0.53701955", "0.5366475", "0.5362073", "0.53619653", "0.5356408", "0.53560466", "0.53550506", "0.5354844", "0.53526056", "0.53486073", "0.53485614", "0.53473777", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185", "0.53472185" ]
0.0
-1
Binds `this` to the event functions defined in a separate file.
bindEventFunctions() { Utils.bindFunctionsFromFile(this, require('./eventFuncs')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _bindEventHandlers() {\n\t\t\n helper.bindEventHandlers();\n }", "bindEvents() {\n }", "_events() {\n \tthis._addKeyHandler();\n \tthis._addClickHandler();\n }", "_bindEvents() {\n\t\t_.bindAll(\n\t\t\tthis,\n\t\t\t'_onClickPlay',\n\t\t\t'_onPlayerReceived',\n\t\t\t'_onInterval',\n\t\t\t'_onPlay',\n\t\t\t'_onPause',\n\t\t\t'_onEnded',\n\t\t\t'_onLoaded',\n\t\t\t'_onError',\n\t\t\t'_onReady'\n\t\t);\n\n\t\tthis.$el.on('click.' + this.options.eventNamespace, this.options.trigger, this._onClickPlay);\n\t}", "$bind() {\n this.$onopen = this.$onopen.bind(this);\n this.$onclose = this.$onclose.bind(this);\n this.$onmessage = this.$onmessage.bind(this);\n this.$onerror = this.$onerror.bind(this);\n this.$oncheck = this.$oncheck.bind(this);\n }", "_bindEventListenerCallbacks() {\n this._onClickBound = this._onClick.bind(this);\n this._onKeydownBound = this._onKeydown.bind(this);\n }", "@autobind\n initEvents() {\n $(document).on('intro', this.triggerIntro);\n $(document).on('instructions', this.triggerInstructions);\n $(document).on('question', this.triggerQuestion);\n $(document).on('submit_query', this.triggerSubmitQuery);\n $(document).on('query_complete', this.triggerQueryComplete);\n $(document).on('bummer', this.triggerBummer);\n }", "_bind() {\n this.onToggleNavigationPane = this.onToggleNavigationPane.bind(this);\n this.onClickMenuLink = this.onClickMenuLink.bind(this);\n this.onScroll = this.onScroll.bind(this);\n this.onResize = this.onResize.bind(this);\n }", "function bindEvents() {\n this.applyEventBindings('on');\n\n return this;\n }", "_bindEvents() {\n document.addEventListener('keydown', this._keydownHandler.bind(this), false);\n document.addEventListener('keyup', this._keyupHandler.bind(this), false);\n }", "events() {\n \t\tthis.openButton.on(\"click\", this.openOverlay.bind(this));\n\t\tthis.closeButton.on(\"click\", this.closeOverlay.bind(this));\n\t\t// search window will be open by keybaord. \n\t\t $(document).on(\"keydown\", this.keyPressDispatcher.bind(this));\n\t\t// when use input data in search window, typingLogic method is called. \n\t\t// searchField is defined by constructor of this class.\n\t\t/* we can use $('#search-term), but accessing DOM is much slower than\n\t\t JavaScript(jQuery). So, we use a property of this class object. which is\n\t\t 'searchField'. This is same as #Search-term and defined by constructor. */\n \t\tthis.searchField.on(\"keyup\", this.typingLogic.bind(this));\n \t}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "function EventHandlers() {}", "_bindEvents() {\n // Bind document click event to close dropdown\n document.addEventListener('click', this._onDocumentClick);\n\n // Bind event handlers to orginal input\n this.element.addEventListener('change', this._onOriginalInputChange);\n\n // Bind event handlers to internal input\n this.input.addEventListener('input', this._onInputChange);\n this.input.addEventListener('click', this._onInputClick);\n this.input.addEventListener('keydown', this._onInputKeyDown);\n this.input.addEventListener('keypress', this._onInputKeyPress);\n this.input.addEventListener('focusout', this._onInputFocusOut);\n this.input.addEventListener('focusin', this._onInputFocusIn);\n }", "bindButtonEvents() {\n var self = this;\n\n this.button.addEventListener(\n 'click',\n self.onButtonClick.bind(self)\n );\n }", "constructor(){\n super()\n this.handleEvents =this.handleEvents.bind(this)\n }", "function init () {\n bindEventHandlers();\n}", "bindButtonEvents() {\n var self = this;\n\n this.button.addEventListener('click', self.onButtonClick.bind(self));\n }", "bind() {\n\t\tthis.armband.on(this.options.triggerEvent, this.snapHandler.bind(this));\n\t}", "bindCorrectContext() {\n\t\tthis.onTitleChange = this.onTitleChange.bind(this);\n\t\tthis.onShowDockingToolTip = this.onShowDockingToolTip.bind(this);\n\t\tthis.onToggleDockingIcon = this.onToggleDockingIcon.bind(this);\n\t\tthis.onDocking = this.onDocking.bind(this);\n\t\tthis.showLinkerButton = this.showLinkerButton.bind(this);\n\t}", "_bindEvents() {\n const thisObj = this;\n\n this._muteBtn\n .off()\n .on(\"click\", function () {\n if (thisObj._isMuted) {\n thisObj._unmute();\n } else {\n thisObj._mute();\n }\n });\n\n this._ackAllBtn\n .off()\n .on(\"click\", function () {\n if (!thisObj._ackAllBtn.hasClass(\"disabled\")) {\n thisObj.panelElem.trigger(NotifPanel.ACK_ALL_EVENT);\n }\n });\n\n this.bellElem\n .off()\n .on(\"click\", function () {\n thisObj._toggle();\n });\n }", "_addEventListeners() {\n this.el.addEventListener('click', this._onClickBound);\n this.el.addEventListener('keydown', this._onKeydownBound);\n }", "_bindEventListenerCallbacks() {\n this._onClickBound = this._onClick.bind(this);\n this._onScrollBound = this._onScroll.bind(this);\n this._onResizeBound = this._onResize.bind(this);\n this._onVisibleBound = this._onVisible.bind(this);\n this._onMutateBound = this._onMutate.bind(this);\n }", "initEventHandlers() {\r\n this.ToggleBtn.initHandler(this.Sidebar.changeSidebarView.bind(this.Sidebar));\r\n }", "_events() {\n this.$element.off('.zf.reveal').on({\n 'open.zf.reveal': this.open.bind(this),\n 'closed.zf.reveal': this.close.bind(this)\n });\n\n this.$insert.off('click').on({\n 'click': this.insert.bind(this)\n });\n\n this.$menu.off('click', '[data-name]').on({\n 'click': this._loadShortcode.bind(this)\n }, '[data-name]');\n\n this.$form.off('input change', ':input').on({\n 'input': this._loadPreview.bind(this),\n 'change': this._loadPreview.bind(this)\n }, ':input');\n }", "_bindEvents() {\n this._internalWidget.bind(window.SC.Widget.Events.PLAY, this.props.onPlay);\n this._internalWidget.bind(window.SC.Widget.Events.PAUSE, this.props.onPause);\n this._internalWidget.bind(window.SC.Widget.Events.FINISH, this.props.onEnd);\n }", "_events() {\n var _this = this;\n\n this._updateMqHandler = this._update.bind(this);\n\n $(window).on('changed.zf.mediaquery', this._updateMqHandler);\n\n this.$toggler.on('click.zf.responsiveToggle', this.toggleMenu.bind(this));\n }", "function bindEvents() {\n\t\t\teManager.on('showForm', function() {\n\t\t\t\tshowForm();\n\t\t\t});\n\t\t\teManager.on('csvParseError', function() {\n\t\t\t\tshowError();\n\t\t\t});\n\t\t}", "_bindEventListenerCallbacks() {\n this._onInputBound = this._onInput.bind(this);\n }", "events() {\n /* here, we won't define our functionality within the () of what we want to happen */\n /* we want the this keyword in toggleTheMenu to point back to our object so we */\n /* can use it access the menuContent property */\n /* so how can we override JS's default behavior and have fine-grained control over the this keyword? */\n /* we can use a JS feature named bind(); anything we include in */\n /* the parenthesis will be used as the this keyword when the toggleTheMenu method runs */\n /* by adding bind() in this case, the this keyword will refer to an instance of our MobileMenu class */\n this.menuIcon.click(this.toggleTheMenu.bind(this));\n }", "bindCorrectContext() {\n\t\tthis.onTitleChange = this.onTitleChange.bind(this);\n\t\tthis.onShowDockingToolTip = this.onShowDockingToolTip.bind(this);\n\t\tthis.onToggleDockingIcon = this.onToggleDockingIcon.bind(this);\n\t\tthis.onDockingEnabledChanged = this.onDockingEnabledChanged.bind(this);\n\t\tthis.onAlwaysOnTopChanged = this.onAlwaysOnTopChanged.bind(this);\n\t\tthis.showLinkerButton = this.showLinkerButton.bind(this);\n\t\tthis.isTopRight = this.isTopRight.bind(this);\n\t\tthis.allowDragOnCenterRegion = this.allowDragOnCenterRegion.bind(this);\n\t\tthis.disallowDragOnCenterRegion = this.disallowDragOnCenterRegion.bind(this);\n\n\t\tthis.onShareEmitterChanged = this.onShareEmitterChanged.bind(this);\n\t\tthis.onTabsChanged = this.onTabsChanged.bind(this);\n\t\tthis.onShowTabsChanged = this.onShowTabsChanged.bind(this);\n\t\tthis.onHackScrollbarChanged = this.onHackScrollbarChanged.bind(this);\n\t\tthis.onTilingStop = this.onTilingStop.bind(this);\n\t\tthis.onTilingStart = this.onTilingStart.bind(this);\n\t\tthis.resizeDragHandle = this.resizeDragHandle.bind(this);\n\t\tthis.onDoubleClick = this.onDoubleClick.bind(this);\n\n\t}", "_bindCursorEvents() {\n\n this.sections\n .mouseenter(this.onEnter.bind(this))\n .mouseleave(this.onLeave.bind(this))\n .click(this.onClick.bind(this));\n\n }", "bindMethods() {\n this.onButtonClick = this.onButtonClick.bind(this);\n }", "initEvents() {\n var self = this;\n\n $('#import-nodes-lists').on('click', 'li.import-node', self.nodeClicked.bind(self));\n $('#import-nodes-lists').on('click', '.import-node-remove', self.nodeRemoved.bind(self));\n $('#import-nodes-lists').on('click', '.import-node-edit', self.nodeEdit.bind(self));\n $('#import-nodes-lists').on('submit', '.import-node-form', self.nodeEdited.bind(self));\n $('#import-nodes-lists').on('focusout', '.import-node-form input', self.nodeEdited.bind(self));\n $('#import_send').click(self.submitNodes.bind(self));\n }", "selfAssignHandlerFunctions() {\n this.request = this.api.request.bind(this.api);\n this.addRateLimitService = this.api.addRateLimitService.bind(this.api);\n this.addRequestService = this.api.addRequestService.bind(this.api);\n }", "_bindEvents () {\n this.listenTo(this, 'sync', this._syncModels.bind(this))\n this.listenTo(this, 'request', this._requestModels.bind(this))\n }", "_bindEventHandlers(){\n if ( this._server !== null ){\n // TODO\n }\n }", "binds() {\n $(document).on('click', '.admin-menu-tab', this.changeTab.bind(this));\n $(document).on('wp-collapse-menu', this.setActiveTab.bind(this));\n $(window).resize(this.resize.bind(this));\n }", "mouseEventsList(){\n this.mouseDownF = this.mouseDownF.bind(this);\n this.mouseMoveF = this.mouseMoveF.bind(this);\n this.mouseUpF = this.mouseUpF.bind(this);\n this.keyClick = this.keyClick.bind(this);\n this.handleFiles = this.handleFiles.bind(this);\n }", "bindEvents() {\n Events.$on('modal::close', (_event, data) => this.closeModal(data))\n Events.$on('modal::open', (_event, data) => this.openModal(data))\n\n Events.$on('modal::bind', (_event, data) => this.customBind(data))\n }", "function _bindEvents() {\n _$sort.on(CFG.EVT.CLICK, _setSort);\n _$navbar.on(CFG.EVT.CLICK, _SEL_BUTTON, _triggerAction);\n _$search.on(CFG.EVT.INPUT, _updateSearch);\n _$clear.on(CFG.EVT.CLICK, _clearSearch);\n }", "addHandlers() {\n this.onDoubleClick = this.onDoubleClick.bind(this);\n document.addEventListener(\"dblclick\", this.onDoubleClick);\n }", "_setupHandlers() {\n this._onAirportChangeHandler = this._onAirportChange.bind(this);\n this._onToggleViewHandler = this._onToggleView.bind(this);\n\n return this;\n }", "_setupHandlers() {\n this._onAirportChangeHandler = this.onAirportChange.bind(this);\n this._onChangeSelectedMapsHandler = this.onChangeSelectedMaps.bind(this);\n\n return this;\n }", "_events() {\n this._linkClickListener = this._handleLinkClick.bind(this);\n this.$element.on('click.zf.smoothScrollWithLinks', 'a[href*=\"#\"]', this._linkClickListener);\n }", "bindFunctions () {\n this.tick = this.tick.bind(this)\n this.jump = this.jump.bind(this)\n this.navMeshLoaded = this.navMeshLoaded.bind(this)\n this.computeBoundsTree = this.computeBoundsTree.bind(this)\n }", "bindEvents() {\n // Listen for global debounced resize.\n this.resizeId = OdoWindowEvents.onResize(this.update.bind(this));\n\n // Throttle scrolling because it doesn't need to be super accurate.\n this.scrollId = OdoWindowEvents.onFastScroll(this.handleScroll.bind(this));\n\n this.hasActiveHandlers = true;\n }", "initializeEvents () {\n }", "addEventListeners() {\n\t\tthis.bindResize = this.onResize.bind(this);\n\t\twindow.addEventListener('resize', this.bindResize);\n\t\tthis.bindClick = this.onClick.bind(this);\n\t\tEmitter.on('CURSOR_ENTER', this.bindClick);\n\t\tthis.bindRender = this.render.bind(this);\n\t\tTweenMax.ticker.addEventListener('tick', this.bindRender);\n\t\tthis.bindEnter = this.enter.bind(this);\n\t\tEmitter.on('LOADING_COMPLETE', this.bindEnter);\n\t}", "init(){\n this.addEvents(this.keys);\n }", "function wireEvents() {\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'keydown', maskInputKeyDownHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'keypress', maskInputKeyPressHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'keyup', maskInputKeyUpHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'input', maskInputHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'focus', maskInputFocusHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'blur', maskInputBlurHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'paste', maskInputPasteHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'cut', maskInputCutHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'drop', maskInputDropHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'mousedown', maskInputMouseDownHandler, this);\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.element, 'mouseup', maskInputMouseUpHandler, this);\n if (this.enabled) {\n bindClearEvent.call(this);\n if (this.formElement) {\n _syncfusion_ej2_base__WEBPACK_IMPORTED_MODULE_0__[\"EventHandler\"].add(this.formElement, 'reset', resetFormHandler, this);\n }\n }\n}", "addEventListeners(){\n\t\tif(!this.document) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._triggerEvent = this.triggerEvent.bind(this);\n\n\t\tDOM_EVENTS.forEach(function(eventName){\n\t\t\tthis.document.addEventListener(eventName, this._triggerEvent, { passive: true });\n\t\t}, this);\n\n\t}", "function attachEventHandlers() {\n // TODO arrow: attach events for functionality like in assignment-document described\n var clicked;\n $(\"#\"+_this.id).click(function(event){\n clicked = true;\n diagram.selectArrow(_this);\n });\n $(\"#\"+_this.id).contents().on(\"dblclick contextmenu\", function(event){\n clicked = true;\n event.preventDefault();\n });\n\n // TODO arrow optional: attach events for bonus points for 'TAB' to switch between arrows and to select arrow\n $(\"#\"+_this.id).contents().attr(\"tabindex\",\"0\");\n\n $(\"#\"+_this.id).keydown(function(event){\n if(event.which == \"13\"){\n diagram.selectArrow(_this);\n }\n if(event.which == \"9\"){\n clicked = false;\n }\n })\n $(\"#\"+_this.id).contents().focusin(function(event){\n if(!clicked){\n setActive(true);\n }\n });\n $(\"#\"+_this.id).contents().focusout(function(event){\n setActive(false);\n });\n }", "autobind() {\n\t\tthis.onScroll = this.onScroll.bind(this);\n\t\tthis.onWindowResize = this.onWindowResize.bind(this);\n\t\tthis.updatePosition = this.updatePosition.bind(this);\n\t\tthis.onWindowLoad = this.onWindowLoad.bind(this);\n\t}", "_events() {\n var _this = this,\n $body = $('html, body'),\n opts = {\n duration: _this.options.animationDuration,\n easing: _this.options.animationEasing\n };\n $(window).one('load', function(){\n if(_this.options.deepLinking){\n if(location.hash){\n _this.scrollToLoc(location.hash);\n }\n }\n _this.calcPoints();\n _this._updateActive();\n });\n\n this.$element.on({\n 'resizeme.zf.trigger': this.reflow.bind(this),\n 'scrollme.zf.trigger': this._updateActive.bind(this)\n }).on('click.zf.magellan', 'a[href^=\"#\"]', function(e) {\n e.preventDefault();\n var arrival = this.getAttribute('href');\n _this.scrollToLoc(arrival);\n });\n $(window).on('popstate', function(e) {\n if(_this.options.deepLinking) {\n _this.scrollToLoc(window.location.hash);\n }\n });\n }", "function bindGlobalEvents(target) {\n // Autocomplete\n $(target).find('.select2').each(function () {\n $(this).samsonSelect2();\n });\n\n // DatePickers\n initDatePickers(target);\n\n // Sortable collections\n sortableCollections(target);\n\n if (target != document) {\n // TinyMCE\n initTinyMCE();\n\n // Sidus combo data selector (family + autocomplete)\n initComboSelector(target);\n }\n\n // File upload widget\n $(target).find('.fileupload-widget').each(function () {\n $(this).sidusFileUpload();\n });\n\n // Tooltips\n $(target).find('[data-toggle=\"tooltip\"]').tooltip();\n\n // Bind custom global event if defined\n if (typeof(bindCustomGlobalEvents) == 'function') {\n bindCustomGlobalEvents(target);\n }\n}", "setEventListeners() {\n $('body').on('touchend click','.menu__option--mode',this.onModeToggleClick.bind(this));\n $('body').on('touchend',this.onTouchEnd.bind(this));\n this.app.on('change:mode',this.onModeChange.bind(this));\n this.app.on('show:menu',this.show.bind(this));\n this.book.on('load:book',this.setTitleBar.bind(this));\n this.book.on('pageSet',this.onPageSet.bind(this));\n this.tutorial.on('done',this.onTutorialDone.bind(this));\n }", "bindEvents() {\n this.container.addEventListener(\"click\", this.click.bind(this));\n }", "function EventHandler() {\n this._binds = [];\n }", "bindEvents() {\n this.AMapEventListeners = [];\n\n /**\n * Construct event callbacks.\n */\n const eventCallbacks = this.parseEvents();\n\n Object.keys(eventCallbacks).forEach((key) => {\n const eventName = key.substring(2).toLowerCase();\n const handler = eventCallbacks[key];\n\n this.AMapEventListeners.push(\n window.AMap.event.addListener(this.marker, eventName, handler),\n );\n });\n }", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}", "function Events() {}" ]
[ "0.7104218", "0.69508535", "0.69203305", "0.6826828", "0.6809967", "0.6764793", "0.6732952", "0.67166483", "0.6696847", "0.6693317", "0.6652087", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6646623", "0.6630293", "0.66144407", "0.65913755", "0.65575945", "0.65575767", "0.6551193", "0.65218735", "0.64889437", "0.6455973", "0.6450479", "0.6446589", "0.64412844", "0.6424224", "0.642302", "0.64195967", "0.64087343", "0.6407485", "0.64074475", "0.63906026", "0.6381111", "0.6342245", "0.63420403", "0.63285166", "0.6319601", "0.63104415", "0.6301926", "0.6299748", "0.6279218", "0.6257429", "0.624509", "0.620679", "0.6205479", "0.6198361", "0.61926866", "0.61917704", "0.61914486", "0.61879283", "0.61840653", "0.6174634", "0.6174063", "0.6170206", "0.61694413", "0.61620486", "0.6158126", "0.6153172", "0.6144867", "0.61416835", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332", "0.6137332" ]
0.8006878
0