{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== 'OCR模型免费转Markdown' && linkText !== 'OCR模型免费转Markdown' ) { link.textContent = 'OCR模型免费转Markdown'; link.href = 'https://fast360.xyz'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== '模型下载攻略' ) { link.textContent = '模型下载攻略'; link.href = '/'; replacedLinks.add(link); } // 删除Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, 'OCR模型免费转Markdown'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); \";\r\n var popupWidth = 700;\r\n var popupHeight = 500;\r\n var left = (screen.width - popupWidth) / 2;\r\n var top = (screen.height - popupHeight) / 4;\r\n helpWindow = window.open('', 'id1', 'scrollbars=yes, left=' + left + ', top=' + top + ', width=' + popupWidth + ', height=' + popupHeight);\r\n helpWindow.document.open(\"text/html\");\r\n helpWindow.document.write(string);\r\n helpWindow.document.close();\r\n}","function dispInfoModal(vid){\n document.getElementById('infoModal').style.display='block';\n mapspecific.resize();\n mapspecific.flyTo({\n center: trucks[0].pos\n });\n getTruckColSpec();\n showTruckDetailsSpec(vid, \"mapspecific\");\n showRoute(trucks[vid], \"mapspecific\");\n}","function initWnd() {\n if (textWnd!=null && tocWnd!=null) {\n return;\n }\n if (parent!=self) {\n if (parent.frames.length>1 && parent.frames[0]==self) {\n if (parent.frames[1].length>1 && parent.frames[1].FRAME_BODY!=null) {\n // new UHB layout (BOOK: 1 + 2 frames)\n textWnd = parent.frames[1].FRAME_BODY ;\n tocWnd = parent.frames[1].FRAME_TOC ;\n }\n else {\n // new UHB layout (HUB etc.: 2 frames)\n textWnd = parent.frames[1] ;\n tocWnd = null ;\n }\n }\n }\n}","function show_tips(tips_el_id, storage_type, equipid)\n{\n\tvar tips = $(tips_el_id);\n\ttips.style.display = \"block\";\n\tif (storage_type == StorageTypeEquip || storage_type == StorageTypeMoney)\n\t{\n\t\tvar content_height = $(\"div_window1_\" + equipid).offsetHeight;\n\t\tif (content_height < 130)\n\t\t{\n\t\t\tcontent_height = 130;\n\t\t}\n\t\t$(\"div_show_window1_\" + equipid).style.height = content_height + 36 + \"px\";\n\t\t$(\"div_show_window_in1_\" + equipid).style.height = content_height + 30 + \"px\";\n\t}\n\tvar tips_position = getAbsolutePos(tips);\n\tvar tips_y = tips_position.y + tips.offsetHeight;\n\t\n\tif (!tips.origin_top)\n\t{\n\t\ttips.origin_top = tips_position.y;\n\t\ttips.origin_left = tips_position.x;\n\t}\n\t\n\tvar windowHeight;\n\tif (self.innerHeight) \n\t{ \n\t\twindowHeight = self.innerHeight;\n\t} else if (document.documentElement && document.documentElement.clientHeight) \n\t{ \n\t\twindowHeight = document.documentElement.clientHeight;\n\t} else if (document.body) \n\t{\n\t\twindowHeight = document.body.clientHeight;\n\t}\n\tvar test_position = tips.origin_top - 65 - document.getScroll().y - (windowHeight/2); \n\tvar tips_offset_down = tips.origin_top + 40 + tips.offsetHeight - document.getScroll().y - windowHeight;\n\n\tvar tips_offset_up = document.getScroll().y - (tips.origin_top - tips.offsetHeight -130);\n\tif (test_position > 0) // down of winHeight/2\n\t{\n\t\tif (tips_offset_up > 0)\n\t\t{\n\t\t\ttips.style.top = tips.origin_top - tips.offsetHeight - 130 + tips_offset_up + 20 + \"px\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttips.style.top = tips.origin_top - tips.offsetHeight - 130 + \"px\"; \n\t\t}\n\t}\n\telse\n\t{\n\t\tif (tips_offset_down > 0)\n\t\t{\n\t\t\ttips.style.top = tips.origin_top - tips_offset_down + \"px\"; \n\t\t}\n\t\telse\n\t\t{\n\t\t\ttips.style.top = tips.origin_top + \"px\";\n\t\t}\n\t}\n\n\tif (document.all == undefined)\n\t{\n\t\ttips.style.left = tips.origin_left + \"px\";\n\t}\n\t\n}","function updatePosition(event) {\n var xOffset = 20;\n var yOffset = 10;\n \n var ttw = tt.style('width');\n var tth = tt.style('height');\n \n var wscrY = window.scrollY;\n var wscrX = window.scrollX;\n \n var curX = (document.all) ? event.clientX + wscrX : event.pageX;\n var curY = (document.all) ? event.clientY + wscrY : event.pageY;\n \n var ttleft = ((curX - wscrX + xOffset * 2 + ttw) > window.innerWidth) ?\n curX - ttw - xOffset * 2 : curX + xOffset;\n \n if (ttleft < wscrX + xOffset) {\n ttleft = wscrX + xOffset;\n }\n \n var tttop = ((curY - wscrY + yOffset * 2 + tth) > window.innerHeight) ?\n curY - tth - yOffset * 2 : curY + yOffset;\n \n if (tttop < wscrY + yOffset) {\n tttop = curY + yOffset;\n }\n \n tt.style(\"top\", tttop +\"px\")\n tt.style(\"left\", ttleft + \"px\");\n }","function initHelpTxtPos() {\n\tdesign = mapConfig['menuDesign'];\n\n\tif (design == \"topMenu\") {\n\t\tinitHelpTextTopMenu();\n\t} else {\n\t\tinitHelpTextSideMenu();\n\t}\n}","function makeInfoWindow(position, msg) {\n // close old window if it exists\n if (infoWindow) infoWindow.close();\n\n // make a new InfoWindow\n infoWindow = new google.maps.InfoWindow({\n map: map,\n position: position,\n\n content: \"\" + msg + \"\"\n });\n}","function createNewInfoWindow(coord, content){\n // information window is displayed at click position\n\tmapCollector.infowindow = new google.maps.InfoWindow({\n\t \tcontent: content,\n\t \tposition: coord\n\t});\n }","function positionTextElements(){\r\n let numOfPanels = 3\r\n // find browser height and width.\r\n let browserHeight = $(window).height();\r\n // position map application\r\n let mapPosition = (numOfPanels + 2.3) * browserHeight\r\n if($(window).height() < 700){\r\n mapPosition = (numOfPanels + 2.7) * browserHeight\r\n }\r\n $('#mapPanel').css('top', mapPosition)\r\n\r\n // set height of static image panel\r\n let staticImageHeight = (numOfPanels + 2) * browserHeight;\r\n $('.sm-staticImagePanel').css('height', staticImageHeight);\r\n\r\n // position first floating text box\r\n let firstBox = parseInt((browserHeight * 1))\r\n $('.sm-floatingTextBox-1').css('top', firstBox)\r\n\r\n // position second floating text box\r\n let secondBox = parseInt((browserHeight * 2))\r\n $('.sm-floatingTextBox-2').css('top', secondBox)\r\n\r\n // position third floating text box\r\n let thirdBox = parseInt((browserHeight * 3))\r\n $('.sm-floatingTextBox-3').css('top', thirdBox)\r\n }","function showXY(ev) {\n\tif (document.all) { ev = event; } \n\twindow.status = 'X: ' + ev.screenX + ' Y: ' + ev.screenY;\n\t}","function onWinSize() { // 2463\n\t\tjWindow.trigger('scrollSpy:winSize'); // 2464\n\t} // 2465","onClick(event, bounds) {\n // console.log('bounds - ', bounds.x, bounds.y);\n // click event bounds (where status tray icon is located)...\n const { x, y } = bounds;\n // height/width dimensions of window itself; dynamically calculate bounds on the fly (and not hardcoded) so that it works even if user resizes window - will get updated height and width\n const { height, width } = this.mainWindow.getBounds(); \n\n const yPosition = process.platform === 'darwin' ? y : (y - height);\n // dynamically set pos of window (also dimensions)\n this.mainWindow.setBounds({\n x: x - (width / 2),\n y: yPosition,\n height,\n width\n });\n // ^ set size of window before display it\n // this.mainWindow.isAlwaysOnTop();\n this.mainWindow.show();\n\n\n // if (this.mainWindow.isVisible()){\n \n // this.mainWindow.hide();\n // } else {\n // const yPosition = process.platform === 'darwin' ? y : (y - height);\n // // dynamically set pos of window (also dimensions)\n // this.mainWindow.setBounds({\n // x: x - (width / 2),\n // y: yPosition,\n // height,\n // width\n // });\n // // ^ set size of window before display it\n // // this.mainWindow.isAlwaysOnTop();\n // this.mainWindow.show();\n // }\n }","function dockNote(posTop,noteCard){\n\t\t\t var basePos = headerHeight + projBar.height() + workareaTop.height() + subnavHeight;\n\t\t\t var posLeft = getNoteLeftPos(noteCard);\n\t\t\t if($.browser.msie || $.browser.mozilla){\n\t\t\t\t//posLeft +=9; \n\t\t\t }\n\t\t\tif(typeof(isxspacepage) !=\"undefined\") {\n\t\t\t\tif(($.browser.msie == true && $.browser.version() > 6) || $.browser.msie == false){\n\t\t\t\t\tif ($.browser.safari) {\n\t\t\t\t\t\tvar safPos = ((basePos - scrollY) + 36)\t\t\t\t\n\t\t\t\t\t\tnoteCard.css({position:\"fixed\",left:posLeft+\"px\",top:safPos +\"px\"});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar safPos = ((basePos + 36))\t\t\t\t\n\t\t\t\t\t\tnoteCard.css({position:\"absolute\",left:posLeft+\"px\",top:safPos +\"px\"});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tnoteCard.css({position:\"absolute\",left:posLeft+\"px\",top:posTop +\"px\"});\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif($.browser.safari){\n\t\t\t\t\tvar safPos = ((parseInt(basePos) - parseInt(scrollY)) + 36);\n\t\t\t\t\tnoteCard.css({position:\"fixed\",left:posLeft+\"px\",top:safPos +\"px\"});\n\t\t\t\t} else {\n\t\t\t\t\tnoteCard.css({position:\"absolute\",left:posLeft+\"px\",top:posTop +\"px\"});\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t }","function at_show_aux(parent, child)\n{\n var p = document.getElementById(parent);\n var c = document.getElementById(child );\n\n var top = (c[\"at_position\"] == \"y\") ? p.offsetHeight+2 : 0;\n var left = (c[\"at_position\"] == \"x\") ? p.offsetWidth +2 : 0;\n\n for (; p; p = p.offsetParent)\n {\n top += p.offsetTop;\n left += p.offsetLeft;\n }\nvar winW = 630, winH = 460;\n\nif (parseInt(navigator.appVersion)>3) {\n if (navigator.appName==\"Netscape\") {\n winW = window.innerWidth;\n winH = window.innerHeight;\n }\n if (navigator.appName.indexOf(\"Microsoft\")!=-1) {\n winW = document.body.offsetWidth;\n winH = document.body.offsetHeight;\n }\n}\n//left=winW/2-250;\n c.style.position = \"absolute\";\n //c.style.width = '200' +'px';\n c.style.top = top +'px';\n \n try{\n if (menu_bang == 1)\n {\n\t // alert(document.getElementById('div_body_noidung').style.left);\n // c.style.left = document.getElementById('div_body_noidung').style.left;\n //alert(c.style.left);\n }\n }catch(e){\n c.style.left = left+'px';\n\t }\n c.style.visibility = \"visible\";\n \n }","function coordinates(){\n $('.info-top').html(posY);\n $('.info-left').html(posX);\n }","function fixordervindow(doc)\n{\n if (window.name === \"orderWindow\") {\n console.info(\"Avanza Orderwindow\");\n window.resizeTo(858,774);\n let azaheader=doc.getElementsByTagName(\"aza-header\")[0];\n let azamenu=doc.getElementsByTagName(\"aza-menu\")[0];\n let azapmenu=doc.getElementsByTagName(\"aza-personal-menu\")[0];\n let azafooter=doc.getElementsByTagName(\"aza-footer\")[0];\n\n azaheader.style.display=\"none\";\n azamenu.style.display=\"none\";\n azapmenu.style.display=\"none\";\n azafooter.style.display=\"none\";\n }\n}","function aboutIconClick() {\n\tvar x = document.getElementById('aboutmewindow');\n\tx.style.display = \"block\";\n\n\t// makes current window the top window\n\tvar windows = document.getElementsByClassName('drsElement');\n\tvar i = windows.length;\n\twhile (i--) {\n\t\twindows[i].style.zIndex = \"3\";\n\t}\n\tx.style.zIndex = \"4\";\n\tx.focus();\n}","function onMouseMove(sender, shift, x, y){\t\n\tif (!this.designMode){return};\n\t/*if (ssShift in Shift){\n\t\tx = Math.round(x / 8)*8;\n\t\ty = Math.round(y / 8)*8;\n\t};\n*/\n\t//MainForm.Caption = shift % 2 == 0 ? 8 : 0;\n\thint.x = getCursorPos().x + this.w - x + 10;\n \thint.y = getCursorPos().y - y + 10; \t\n\tvar border = 5;\n\n\tvar gridStep = shift % 2 == 0 ? 10 : 1\n\tfunction grid(val){\n\t\treturn Math.round(val / gridStep) * gridStep;\n\t};\n\n\n\n\n\t//global.s = sender;\n\tif (!d){\n\t\thorRes = 0;\n\t\tif (x < border){\n\t\t\thorRes = -1;\n\t\t};\n\t\tif (this.w - x < border){\n\t\t\thorRes = 1;\n\t\t};\n\t\tvertRes = 0;\n\t\tif (y < border){\n\t\t\tvertRes = -1;\n\t\t};\n\t\tif (this.h - y < border){\n\t\t\tvertRes = 1;\n\t\t};\n\t};\n\t//form.mainForm.label = (horRes)+':'+(vertRes);\n\n\tx = grid(x);\n\ty = grid(y);\n\tglobal.q = this;\n\n\tif (vertRes != 0 && horRes == 0){\n\t\tsender.Cursor = enums.cursor.crSizeNS;\n\t};\n\tif (vertRes == 0 && horRes != 0){\n\t\tsender.Cursor = enums.cursor.crSizeWE;\n\t};\n\tif (vertRes == horRes && Math.abs(horRes) == 1){\n\t\tsender.Cursor = enums.cursor.crSizeNWSE;\n\t};\n\tif (vertRes == -horRes && Math.abs(horRes) == 1){\n\t\tsender.Cursor = enums.cursor.crSizeNESW;\n\t};\n\tif (vertRes == horRes && horRes == 0){\n\t\tsender.Cursor = enums.cursor.crSizeAll;\n\t};\n\n\n\tif (!d){\n\t\treturn;\n\t};\n\tif (vertRes == horRes && horRes == 0){\n\t\tthis.x = grid(this.x - sx + x);\n\t\tthis.y = grid(this.y - sy + y);\n\t};\n\n\tif (vertRes == 1){\n\t\tthis.h = grid(y);\n\t};\n\n\tif (horRes == 1){\n\t\tthis.w = grid(x);\n\t};\n\n\tif (vertRes == -1){\n\t\t//MainForm.Caption = grid(y);\n\t\tthis.h = grid(this.h - y);\n\t\tthis.y = grid(this.y + y);\n\t};\n\tif (horRes == -1){\n\t\tthis.w = grid(this.w - x);\n\t\tthis.x = grid(this.x + x);\n\t};\n\n\tif (vertRes == horRes && horRes == 0){\n\t\thint.label = '(' + this.x + '; ' + this.y + ')';\t\n\t}else{\n\t\thint.label = '(' + this.w + '; ' + this.h + ')';\n\t};\n\thint._.Refresh();\n}","function closeInfoWindow() {\n \n vm.infoWindowVisible(false);\n\n if (isMobile) {\n var iw = $('.info-window');\n iw.css('top', '');\n iw.css('height', '');\n iw.css('overflow', '');\n }\n\n}","function updateTopPanel() {\n let isPlayer = g_ViewedPlayer > 0;\n\n let civIcon = Engine.GetGUIObjectByName(\"civIcon\");\n civIcon.hidden = !isPlayer;\n if (isPlayer) {\n civIcon.sprite =\n \"stretched:\" + g_CivData[g_Players[g_ViewedPlayer].civ].Emblem;\n Engine.GetGUIObjectByName(\"civIconOverlay\").tooltip = sprintf(\n translate(\n \"%(civ)s\\n%(hotkey_civinfo)s / %(hotkey_structree)s: View History / Structure Tree\\nLast opened will be reopened on click.\"\n ),\n {\n civ: setStringTags(g_CivData[g_Players[g_ViewedPlayer].civ].Name, {\n font: \"sans-bold-stroke-14\"\n }),\n hotkey_civinfo: colorizeHotkey(\"%(hotkey)s\", \"civinfo\"),\n hotkey_structree: colorizeHotkey(\"%(hotkey)s\", \"structree\")\n }\n );\n }\n\n // Following gaia can be interesting on scripted maps\n Engine.GetGUIObjectByName(\"optionFollowPlayer\").hidden =\n !g_IsObserver || g_ViewedPlayer == -1;\n\n let viewPlayer = Engine.GetGUIObjectByName(\"viewPlayer\");\n viewPlayer.hidden = !g_IsObserver && !g_DevSettings.changePerspective;\n\n let followPlayerLabel = Engine.GetGUIObjectByName(\"followPlayerLabel\");\n followPlayerLabel.hidden =\n Engine.GetTextWidth(\n followPlayerLabel.font,\n followPlayerLabel.caption + \" \"\n ) +\n followPlayerLabel.getComputedSize().left >\n viewPlayer.getComputedSize().left;\n\n let resCodes = g_ResourceData.GetCodes();\n let resNames = g_ResourceData.GetNames();\n Engine.GetGUIObjectByName(\"resourceFood\").hidden = true;\n let r = 0;\n for (let res of resCodes) {\n if (!Engine.GetGUIObjectByName(\"resource[\" + r + \"]\")) {\n warn(\n \"Current GUI limits prevent displaying more than \" +\n r +\n \" resources in the top panel!\"\n );\n break;\n }\n Engine.GetGUIObjectByName(\"resource[\" + r + \"]_icon\").sprite =\n \"stretched:session/icons/resources/\" + res + \".png\";\n Engine.GetGUIObjectByName(\"resource[\" + r + \"]\").hidden = !isPlayer;\n if (res == \"food\") {\n Engine.GetGUIObjectByName(\"resource[\" + r + \"]\").onPress = function() {\n // we toogle the subresources panel\n let subResourcePanelVisibility = Engine.GetGUIObjectByName(\n \"resourceFood\"\n ).hidden;\n subResourcePanelVisibility = !subResourcePanelVisibility;\n Engine.GetGUIObjectByName(\n \"resourceFood\"\n ).hidden = subResourcePanelVisibility;\n };\n }\n ++r;\n }\n let arySub = [];\n let arySub2 = [];\n for (let res2 in resNames) {\n arySub.push(res2);\n }\n arySub.forEach(name => {\n if (\n name !== \"stone\" &&\n name !== \"wood\" &&\n name !== \"metal\" &&\n name !== \"rock\" &&\n name !== \"ruins\" &&\n name !== \"tree\" &&\n name !== \"food\" &&\n name !== \"ore\" &&\n name !== \"money\" &&\n name !== \"well\"\n ) {\n arySub2.push(name);\n }\n });\n let r2 = 0;\n for (let res of arySub2) {\n //error(res);\n Engine.GetGUIObjectByName(\"resourceFood[\" + r2 + \"]_icon\").sprite =\n \"stretched:session/icons/resources/\" + res + \".png\";\n Engine.GetGUIObjectByName(\"resourceFood[\" + r2 + \"]\").hidden = false;\n ++r2;\n }\n function horizontallySpaceObjectsCustom(parentName, margin = 0) {\n let objects = Engine.GetGUIObjectByName(parentName).children;\n let numb = 0;\n\n for (let i = 0; i < objects.length; ++i) {\n if (i == 0 || i == 1) continue;\n numb += 75;\n let size = objects[i].size;\n let width = size.right - size.left;\n\n size.left = numb;\n size.right = 1000;\n objects[i].size = size;\n }\n }\n\n horizontallySpaceObjects(\"resourceCounts\", 5);\n\n horizontallySpaceObjectsCustom(\"resourceFood\");\n\n hideRemaining(\"resourceCounts\", r);\n\n let resPop = Engine.GetGUIObjectByName(\"population\");\n let resPopSize = resPop.size;\n resPopSize.left = Engine.GetGUIObjectByName(\n \"resource[\" + (r - 1) + \"]\"\n ).size.right;\n resPop.size = resPopSize;\n\n Engine.GetGUIObjectByName(\"population\").hidden = !isPlayer;\n Engine.GetGUIObjectByName(\"diplomacyButton\").hidden = !isPlayer;\n Engine.GetGUIObjectByName(\"economyButton\").hidden = !isPlayer;\n //Engine.GetGUIObjectByName(\"economyButton\").hidden = !isPlayer;\n Engine.GetGUIObjectByName(\"observerText\").hidden = isPlayer;\n\n let alphaLabel = Engine.GetGUIObjectByName(\"alphaLabel\");\n alphaLabel.hidden = isPlayer && !viewPlayer.hidden;\n alphaLabel.size = isPlayer ? \"50%+44 0 100%-283 100%\" : \"155 0 85%-279 100%\";\n\n Engine.GetGUIObjectByName(\"pauseButton\").enabled =\n !g_IsObserver || !g_IsNetworked || g_IsController;\n Engine.GetGUIObjectByName(\"menuResignButton\").enabled = !g_IsObserver;\n Engine.GetGUIObjectByName(\"lobbyButton\").enabled = Engine.HasXmppClient();\n}","function lynked_findPos(obj) {\n\tvar curtop = 0;\n\tlynked_windowHeight = Math.round(window.innerHeight);\n\tlynked_windowCenter = lynked_windowHeight / 2;\n\tif (obj.offsetParent) {\n\t\tdo {\n\t\t\tcurtop += obj.offsetTop;\n\t\t} while (obj = obj.offsetParent);\n\tcurtop = Math.round(curtop) - lynked_windowCenter;\n\tlynked_selectedCont.push(curtop);\n//\t//console.log(\"curleft,curtop----\"+curtop)\n\t}\n}","function positionMapTools(){\r\n\t//deprecated...\t\r\n}","function t() {\n //$content.css('paddingTop', $pageMaskee.height());\n y.height(h.height()).width(h.width());\n }","function popUp(win_name, loc, w, h, menubar, center) {\n\tvar NS = (document.layers) ? 1 : 0;\n\tvar editorWin;\n\tif (w == null) {\n\t\tw = 500;\n\t}\n\tif (h == null) {\n\t\th = 350;\n\t}\n\tif (menubar == null || menubar == false) {\n\t\tmenubar = \"\";\n\t} else {\n\t\tmenubar = \"menubar,\";\n\t}\n\tif (center == 0 || center == false) {\n\t\tcenter = \"\";\n\t} else {\n\t\tcenter = true;\n\t}\n\tif (NS) {\n\t\tw += 50;\n\t}\n\tif (center == true) {\n\t\tvar sw = screen.width;\n\t\tvar sh = screen.height;\n\t\tif (w > sw) {\n\t\t\tw = sw;\n\t\t}\n\t\tif (h > sh) {\n\t\t\th = sh;\n\t\t}\n\t\tvar curleft = (sw - w) / 2;\n\t\tvar curtop = (sh - h - 100) / 2;\n\t\tif (curtop < 0) {\n\t\t\tcurtop = (sh - h) / 2;\n\t\t}\n\t\teditorWin = window.open(loc, win_name, \"resizable=no,scrollbars,width=\" + w + \",height=\" + h + \",left=\" + curleft + \",top=\" + curtop);\n\t} else {\n\t\teditorWin = window.open(loc, win_name, menubar + \"resizable=no,scrollbars,width=\" + w + \",height=\" + h);\n\t}\n\teditorWin.focus(); //causing intermittent errors\n}","function getMousePosition(e)\r\n{\r\n // Recherche de la position\r\n if (nava)\r\n {\r\n mouseX = e.pageX ;\r\n mouseY = e.pageY ;\r\n }\r\n else if (iex)\r\n {\r\n mouseX = window.event.x + document.body.scrollLeft;\r\n mouseY = window.event.y + document.body.scrollTop;\r\n }\r\n else if (dom)\r\n {\r\n mouseX = e.pageX ;\r\n mouseY = e.pageY ;\r\n }\r\n // FIN Recherche de la position\r\n\r\n // Leger decalage pour ne pas rester sous le pointeur de la souris\r\n mouseX += 20;\r\n \r\n\r\n // Car on ne sait jamais...\r\n if (mouseX < 0) mouseX = 0;\r\n if (mouseY < 0) mouseY = 0;\r\n\r\n // Deplacement du DIV d'information\r\n //var style = $('info_div').getStyle();\r\n //style.left = mouseX+\"px\";\r\n //style.top = mouseY+\"px\";\r\n $('info_div').setStyle({left:mouseX+\"px\",top:mouseY+\"px\"});\r\n\r\n return true;\r\n}","function imageEditorInfoBox (msg) {\r\n $('#imageEditorCaption').show();\r\n if ($.browser.msie)\r\n $('#imageEditorCaption').width($('#imageEditorRight #imageEditorPreview').width());\r\n else\r\n $('#imageEditorCaption').width($('#imageEditorRight #imageEditorPreview').width() - 10);\r\n $('#imageEditorInfo').html(zetaprints_trans(msg));\r\n $('#imageEditorInfo').show('fast', function () {\r\n var cw = 0;\r\n $('#imageEditorCaption span').each( function () {\r\n cw += $(this).width();\r\n });\r\n if (cw < 280)\r\n cw = 280;\r\n if ($('#imageEditorRight #imageEditorPreview').width() < cw) {\r\n $('#imageEditorCaption').width(cw);\r\n imageEditorApplySize(cw, $('#imageEditorRight #imageEditorPreview').height());\r\n }\r\n });\r\n }","function makePopUpVisible(i) {\n\n var w = $(window).width(); \n var h = $(window).height();\n var d = document.getElementById('resize_div'+ i);\n var divW = $(d).width();\n var divH = $(d).height();\n \n if(i=='_Desktop')\n d.style.top = (h / 2) - (divH / 2) - 80 + \"px\";\n else\n d.style.top = (h / 2) - (divH / 2) - 50 + \"px\";\n\n d.style.left = (w / 2) - (divW / 2) + \"px\"; \n d.style.visibility = \"visible\"; \n }","function openWin($target_id) {\n let scrollVal = $(this).scrollTop(); //頁面滾動的高度\n let winHei = $(document).height(); //文件高度\n let screenHei = $(window).height(); //瀏覽器高度\n // console.log(scrollVal);\n // console.log(screenHei);\n // console.log(winHei);\n\n // 作用:防止作品視窗在document以下做開啟,始之維持在document原始高度中開啟\n if ($(document).height() > scrollVal + screenHei) {\n\n addClass(\".work_hide\", \"fixWindow\");\n document.getElementById($target_id).style.top =\n scrollVal + screenHei * 0.03 + \"px\";\n // scrollVal - screenHei + screenHei * 0.1 * 0.2 + \"px\";\n document.getElementById($target_id).style.display = \"block\";\n \n } else {\n\n addClass(\".work_hide\", \"fixWindow\");\n document.getElementById($target_id).style.top =\n scrollVal - screenHei + \"px\";\n document.getElementById($target_id).style.display = \"block\";\n \n }\n}","function FindCenterforCommentsWindow()\n{\n\tvar retval = new Object()\n\tretval.X = (screen.width/2) - 275;\n\tretval.Y = (screen.height/2) - 175;\n\treturn retval\n}","function compatibility() {\n /* Logon */\n $('#title_settings').parent()\n .css('display', 'block')\n .css('postion', 'relative');\n\n $('#title_settings').css('postion', 'absulute')\n .css('width', '65px')\n .css('height','20px')\n .css('margin', '8px auto auto auto');\n }","function starting() {\n\tvar hpos = window.screenX;\n\tvar vpos = window.screenY;\n\talert (\"tonterias\");\n\talert( window.heigth +\",\"+ window.width );\n\twindow.resizeTo( resh, resv);\n\twindow.moveTo( hpos, vpos );\n\t\n}","function NNResize()\n{\n var popWin = Top().SWEPopupWin;\n var screenX = SWEGetAvailScreenWidth();\n var screenY = SWEGetAvailScreenHeight(); \n var bSafari = false;\n \n if (navigator.userAgent.indexOf(\"Safari\") >= 0)\n bSafari = true;\n\n if ((popWin == null) || (popWin.closed))\n popWin = window;\n\n popWin.scrollTo(10000,10000);\n\n if (navigator.userAgent.indexOf(\"Mozilla/5.0\") >= 0) \n {\n // Ported this fix from 7.5.3,\n // fix for defect 12-FTAGAQ and 12-FS6ESU\n // In NS 7.0x, sizeToContent() doesnt work, and there's following problems:\n // 1) window.pageYOffset + window.content.innerHeight != window.document.height\n // 2) window.innerHeight > window.outerHeight\n // 3) resizeTo(..., window.document.height + window.outerHeight - window.innerHeight) doesn't fit to content\n\n //FR 12-1EXWTY9 before resize needs to move window since safari will NOT allow resize beyond screen\n var winX = popWin.screenX;\n var winY = popWin.screenY;\n if (bSafari)\n { \n popWin.moveTo(0,0);\n }\n\t\t\n // fix 1) and 2), start with tall window\t\n window.resizeBy(0, 400);\n var offX = window.pageXOffset;\n var newY = window.document.height + window.outerHeight - window.innerHeight;\n \n if (offX > screenX - window.outerWidth)\n {\n offX = screenX - window.outerWidth; \n }\n //CR 12-J1RBUM. If a window's vertical size is smaller than 180 then in Mozilla and netscape\n //the horizontal scrollbar (bottom of the window) is clipped. So have 180 as the lower bound\n //for the size - amohole\n if(newY < 180)\n {\n newY = 180;\n }\n if (newY > screenY)\n {\n newY = screenY;\n }\n\n window.resizeTo(offX+window.outerWidth, newY);\n \n //fix 3)\n window.scrollTo(0,10000);\n if(window.pageYOffset > 0)\n {\n window.resizeBy(0, window.pageYOffset);\n }\n\n if (bSafari)\n {\n popWin.moveTo(winX, winY);\n }\n\n }\n else\n {\n var offX = window.pageXOffset;\n var offY = window.pageYOffset; \n\n if (offX > screenX - window.outerWidth)\n offX = screenX - window.outerWidth; \n if (offY > screenY - window.outerHeight)\n offY = screenY - window.outerHeight;\n\n window.resizeBy (offX, offY);\n }\n popWin.moveTo (Math.floor((screenX-window.outerWidth) / 2), \n Math.floor((screenY-window.outerHeight) / 2) );\n}","function writeMiniWindow() {\n\t\tvar mapWidth = document.getElementById(MAP).clientWidth * this.xRate;\n\t\tvar mapHeight = document.getElementById(MAP).clientHeight * this.yRate;\n\t\tvar scl = document.getElementById(MAP).scrollLeft * this.xRate;\n\t\tvar sct = document.getElementById(MAP).scrollTop * this.yRate;\n\t\tvar mw = document.createElement(\"v:rect\");\n\t\tmw.setAttribute(\"id\", MINIWINDOW + \"_up\");\n\t\tvar mwsp = document.getElementById(MINIMAP).appendChild(mw);\n\t\tmwsp.style.position = \"absolute\";\n\t\tmwsp.style.left = 0;\n\t\tmwsp.style.top = 0;\n\t\tmwsp.style.width = this.side;\n\t\tmwsp.style.height = sct;\n\t\tmwsp.fill.type = \"solid\";\n\t\tmwsp.fill.color = \"#003366\";\n\t\tmwsp.fill.opacity = \"20%\";\n\t\tmwsp.stroked = \"false\";\n\t\tmw = document.createElement(\"v:rect\");\n\t\tmw.setAttribute(\"id\", MINIWINDOW + \"_left\");\n\t\tmwsp = document.getElementById(MINIMAP).appendChild(mw);\n\t\tmwsp.style.position = \"absolute\";\n\t\tmwsp.style.left = 0;\n\t\tmwsp.style.top = sct;\n\t\tmwsp.style.width = scl;\n\t\tmwsp.style.height = this.side;\n\t\tmwsp.fill.type = \"solid\";\n\t\tmwsp.fill.color = \"#003366\";\n\t\tmwsp.fill.opacity = \"20%\";\n\t\tmwsp.stroked = \"false\";\n\t\tmw = document.createElement(\"v:rect\");\n\t\tmw.setAttribute(\"id\", MINIWINDOW + \"_right\");\n\t\tmwsp = document.getElementById(MINIMAP).appendChild(mw);\n\t\tmwsp.style.position = \"absolute\";\n\t\tmwsp.style.left = scl + mapWidth;\n\t\tmwsp.style.top = sct;\n\t\tmwsp.style.width = this.side;\n\t\tmwsp.style.height = this.side;\n\t\tmwsp.fill.type = \"solid\";\n\t\tmwsp.fill.color = \"#003366\";\n\t\tmwsp.fill.opacity = \"20%\";\n\t\tmwsp.stroked = \"false\";\n\t\tmw = document.createElement(\"v:rect\");\n\t\tmw.setAttribute(\"id\", MINIWINDOW + \"_bottom\");\n\t\tmwsp = document.getElementById(MINIMAP).appendChild(mw);\n\t\tmwsp.style.position = \"absolute\";\n\t\tmwsp.style.left = scl;\n\t\tmwsp.style.top = sct + mapHeight;\n\t\tmwsp.style.width = mapWidth;\n\t\tmwsp.style.height = this.side;\n\t\tmwsp.fill.type = \"solid\";\n\t\tmwsp.fill.color = \"#003366\";\n\t\tmwsp.fill.opacity = \"20%\";\n\t\tmwsp.stroked = \"false\";\n\t\tmw = document.createElement(\"v:rect\");\n\t\tmw.setAttribute(\"id\", MINIWINDOW);\n\t\tmwsp = document.getElementById(MINIMAP).appendChild(mw);\n\t\tmwsp.style.position = \"absolute\";\n\t\tmwsp.style.left = scl;\n\t\tmwsp.style.top = sct;\n\t\tmwsp.style.cursor = \"move\";\n\t\tvar maxWidth = this.side - 9;\n\t\tmwsp.style.width = mapWidth > maxWidth ? maxWidth : mapWidth;\n\t\tmwsp.style.height = mapHeight > maxWidth ? maxWidth : mapHeight;\n\t\tmwsp.fill.type = \"solid\";\n\t\tmwsp.fill.color = \"#003366\";\n\t\tmwsp.fill.opacity = \"0%\";\n\t\tmwsp.strokeColor = \"#003366\";\n\t}","function windowHW() {\n return window.innerHeight>window.innerWidth?window.innerWidth:window.innerHeight-20;\n}","function SmartInfoWindow(opts\n\t\t\t\t\t\t)\n{\n\tgoogle.maps.OverlayView.call(this);\n\tthis.content_ = opts.content;\n\tthis.map_ = opts.map;\n\tthis.setMap(this.map_);\n\t\n\t// We need to listen to bounds_changed event so that we can redraw\n\t// absolute position every time the map moves.\n\t// This is only needed because we append to body instead of map panes.\n\tvar me = this;\n\tgoogle.maps.event.addListener(this.map_, 'bounds_changed', function() {me.draw();});\n}","function show_info(txt)\r\n{\r\n\t//alert(txt);\r\n $('info_div').show();// = 'shown';\r\n //var info_style = \r\n $('info_div').setStyle({left:mouseX+\"px\",top:mouseY+\"px\"});\r\n //info_style.left = mouseX+\"px\";\r\n //info_style.top = mouseY+\"px\";\r\n $('info_div').update(txt);\r\n}","function gwmap_indicate_position(whichMap, posX, posY, width, height, zoom)\r\n{\r\n // use default values for width and height of not passed\r\n if (!width) width='300px';\r\n if (!height) height='300px';\r\n // add timestamp to div id to make sure we have a unique identifier\r\n var divId = 'gwmap_' + new Date().getTime();\r\n // output the div we use to display the map\r\n document.write('
');\r\n // create map object and attach\r\n mapObj = new GWMap(divId, whichMap, zoom, posX, posY);\r\n mapObj.indicatePosition(posX, posY);\r\n}","function bottomLeftTwoThirdHeight() {\n let window = Window.focused();\n\n if (window) {\n let screen = window.screen().flippedVisibleFrame();\n let oneThirdScreenHeight = screen.height / 3;\n let twoThirdScreenHeight = oneThirdScreenHeight * 2;\n let halfScreenWidth = screen.width / 2;\n\n window.setTopLeft({\n x: screen.x,\n y: oneThirdScreenHeight + 24,\n });\n\n window.setSize({\n height: twoThirdScreenHeight,\n width: halfScreenWidth,\n });\n }\n}","function refreshMapPosition() {\n //alert(\"on Map\");\n roeMapNLCD.resize();\n roeMapNLCD.reposition();\n }","function recarga() {\n var bodyRect = document.body.getBoundingClientRect();\n var v = document.getElementById('up').getBoundingClientRect();\n var offset = v.top - bodyRect.top - 100;\n window.name = offset;\n}","function popupWindow(addr,popname,w,h,features) {\r\n var winl = (screen.width-w)/2;\r\n var wint = (screen.height-h)/2;\r\n if (winl < 0) winl = 0;\r\n if (wint < 0) wint = 0;\r\n var settings = 'height=' + h + ',';\r\n settings += 'width=' + w + ',';\r\n settings += 'top=' + wint + ',';\r\n settings += 'left=' + winl + ',';\r\n settings += features;\r\n win = window.open(addr,popname,settings);\r\n win.window.focus();\r\n}","function adjustInfoWindowContent_closeclick(oInfoWindow)\r\n{\r\n\r\n\t//document.getElementById(\"editorContent\").style.height = \"90px\";\r\n\tvar eUL_Tabs;\r\n\tif(NSGlobal.bIE)\r\n\t{\r\n\t\teUL_Tabs = NSFunctions.getElementsByName('tabs_ul_windowGUID_' + oInfoWindow.get(\"id\"))[0];\r\n\r\n\t}\r\n\telse\r\n\t{\r\n\t\teUL_Tabs = document.getElementsByName('tabs_ul_windowGUID_' + oInfoWindow.get(\"id\"))[0];\r\n\t}\r\n\r\n\tif(NSGlobal.bFireFox)\r\n\t{\r\n\t\tif(eUL_Tabs)\r\n\t\t{\r\n\t\t\teUL_Tabs.style.width = \"\";\r\n\t\t}\r\n\t}\r\n\r\n\treturn;\r\n\r\n}","function magicIconClick() {\n\tvar x = document.getElementById('magic8ballwindow');\n\tx.style.display = \"block\";\n\n\t// makes current window the top window\n\tvar windows = document.getElementsByClassName('drsElement');\n\tvar i = windows.length;\n\twhile (i--) {\n\t\twindows[i].style.zIndex = \"3\";\n\t}\n\tx.style.zIndex = \"4\";\n\tx.focus();\n}","function positionPopupDiv(method){\n if(!popupDiv) return;\n\n var winW = 630, winH = 460;\n t = document.getElementById(currentElement);\n var windowSize = getWindowSize();\n var scroll = getScrollOfWindow();\n winW = windowSize.width;\n winH = windowSize.height;\n //21610649 the fifth position strategy.\n var centre =false;\n width=popupDiv.style.width;\n height=popupDiv.style.height;\n popupDiv.style.position= 'absolute';\n //bug 8843840 \n var xp = findPosLeftX(t);\n var yp = findPosTopY(t);\n var popupWinW =parseInt(xp)+parseInt(width);\n var popupWinH =parseInt(yp)+parseInt(height);\n \n //clear left margin \n var showNotch = popupDiv.getAttribute(\"shownotch\") ; \n popupDiv.style.marginLeft = \"\" ;\n // Bug 8716339: If bidi session, change the calculation of the popup left\n if (isBiDi())\n {\n if (parseInt(width) < xp || popupWinW > winW) //show popup on the left of fireing\n {\n if(parseInt(width) < xp+10)\n {\n popupDiv.style.left=(parseInt(xp)-(parseInt(width) /*- parseInt(t.offsetWidth) */ ))+\"px\"; // right\n }\n else\n centre = true;\n popupDiv.xDir = \"right\"; \n if (showNotch) popupDiv.style.marginLeft = ( (parseInt(width) /2 + parseInt(t.offsetWidth) / 2 )) + \"px\" ;\n }\n else //show popup on the right side of firing element \n {\n popupDiv.style.left=(parseInt(xp)+20)+\"px\"; // left\n popupDiv.xDir = \"left\";\n if (showNotch) popupDiv.style.marginLeft = ( -20 - parseInt(width) /2 + parseInt(t.offsetWidth) / 2 ) + \"px\" ; \n }\n }\n else \n {\n if(popupWinW >winW+scroll.left && parseInt(width) < xp)\n {\n popupDiv.style.left=(parseInt(xp)-parseInt(width))+\"px\";//left\n popupDiv.xDir = \"left\";\n if (showNotch) popupDiv.style.marginLeft = ( (parseInt(width) /2 + parseInt(t.offsetWidth) / 2 )) + \"px\" ;\n }\n else\n {\n if(popupWinW < winW+scroll.left)\n {\n popupDiv.style.left=(parseInt(xp)+20 )+\"px\";//right\n }\n else\n centre = true;\n popupDiv.xDir = \"right\";\n if (showNotch) popupDiv.style.marginLeft = ( -20 + parseInt(t.offsetWidth) / 2 - parseInt(width) /2 ) + \"px\" ;\n }\n }\n // End Bug 8716339\n popupDiv.removeAttribute(\"notchposition\"); \n if(popupWinH > winH && (parseInt(height)+15) < yp)\n {\n //Bug 19863053 - POPUP CAN NOT DISPLAYS IN TABLE WITH VERTICAL SCROLL BAR\n popupDiv.style.top=(parseInt(yp)-parseInt(height))+\"px\";//top\n popupDiv.yDir = \"top\";\n if (showNotch) popupDiv.setAttribute(\"notchposition\", \"bottom\"); \n }\n else\n {\n if(popupWinH < winH + scroll.top)\n //Bug 19863053 - POPUP CAN NOT DISPLAYS IN TABLE WITH VERTICAL SCROLL BAR\n popupDiv.style.top=yp+t.offsetHeight+\"px\";//bottom\n else\n centre = true;\n popupDiv.yDir = \"bottom\";\n if (showNotch) popupDiv.setAttribute(\"notchposition\", \"top\");\n }\n //bug 24578892: if couldn't find the source button element\n // open the popup in center of page\n if(openPopupInCenter)\n {\n centre = openPopupInCenter;\n openPopupInCenter = false;\n }\n \n //bug 17443645 popup position control\n decidePopupPosition(popupDiv,centre);\n popupDiv.showInCentre = centre;\n //bug 21466778\n if (showNotch)\n {\n // use (findPosLeftX(popupDiv)) instead of popupDiv.style.left ,becuase (findPosLeftX(popupDiv)) return 0 when \n //popup is invisiable.\n if(parseInt(popupDiv.style.left)+parseInt(popupDiv.style.marginLeft)<0)\n {\n popupDiv.style.marginLeft=0;\n popupDiv.setAttribute(\"notchposition\", popupDiv.getAttribute(\"notchposition\")+\"left\");\n }\n else if(parseInt(popupDiv.style.left)+parseInt(popupDiv.style.marginLeft)+parseInt(popupDiv.style.width)>winW)\n {\n popupDiv.style.marginLeft=0;\n popupDiv.setAttribute(\"notchposition\", popupDiv.getAttribute(\"notchposition\")+\"right\");\n }\n }\n //ppr happens in table,would refresh the whole popup. keep the popup in the dragged position\n if(isPopupDrag && null != savedDragPos)\n {\n popupDiv.style.left = savedDragPos[\"left\"];\n popupDiv.style.top = savedDragPos[\"top\"];\n return;\n } \n popupDiv.style.left =parseInt(popupDiv.style.left) - popupDiv.relativeParent.posLeftX+ _PX;\n popupDiv.style.top = parseInt(popupDiv.style.top) - popupDiv.relativeParent.posTopY+ _PX;\n\n}","function CursorInfo() { }","toScreen() \t{return new Point(gMap.mapToScreenX(this._x,this._y),gMap.mapToScreenY(this._x,this._y));}","function showInfoWindowForMarker(featureData, clusteredId) {\n var idString = \"\"+ featureData.topicId + \"\";\n var htmlString = '' + featureData.topicName + '
weitere Details';\n // if ( clusteredId != null ) {\n if ( featureData.cluster != null ) {\n htmlString = \"Es gibt hier mehrere M&ouml;glichkeiten an einem Ort:

\";\n for (i=0; i < featureData.cluster.length; i++) {\n var clusterTopicId = featureData.cluster[i].topicId;\n var clusterTopic = getTopicById(clusterTopicId);\n htmlString += '' + clusterTopic.name + '&nbsp; - weitere Details
';\n }\n // htmlString += \"\";\n }\n // just make sure that there is not more than 1active PopUpWindow\n hideAllInfoWindows();\n // var htmlString = '' + featureData.topicName\n // + '
weitere Details';\n var lonlat = new OpenLayers.LonLat(featureData.lon, featureData.lat);\n var popup = new OpenLayers.Popup.FramedCloud(\n \"infoPoop-\"+featureData.topicId,\n lonlat, new OpenLayers.Size(250, 200),\n htmlString, null,\n false);\n // popup.keepInMap = true;\n popup.autoSize = true;\n popup.panMapIfOutOfView = false;\n /*popup.addCloseBox(function(){\n var feat = checkFeatureById(idString);\n feat.renderIntent = \"default\";\n myNewLayer.redraw();\n }); **/\n map.addPopup(popup);\n }","function refreshMapPosition() {\n //alert(\"on Map\");\n roeMapBio.resize();\n roeMapBio.reposition();\n }","function positionDatasetEditMenu(){\n\t$('#dataSetEdit').css('position', 'absolute')\n\t\t\t\t\t\t\t\t\t\t .css('top', parseInt(window.innerHeight/2 - $('#dataSetEdit').height()/2)+\"px\")\n\t\t\t\t\t\t\t\t\t\t .css('left',parseInt(window.innerWidth/2 - $('#dataSetEdit').width()/2)+\"px\");\n}"],"string":"[\n \"function _infoboxPos(){\\r\\n\\r\\n\\t\\t\\tvar _infobox = $('.info-wrap#iw'+isolaIndex);\\r\\n\\r\\n\\t\\t\\tvar _linee = $('.line-wrap#lw'+isolaIndex);\\r\\n\\t\\t\\tvar _arcTop = Math.round($('.arcipelago').offset().top);\\r\\n\\t\\t\\tvar _arcleft = Math.round($('.arcipelago').offset().left);\\r\\n\\t\\t\\tvar _boxH = _infobox.outerHeight(true);\\r\\n\\r\\n\\t\\t\\tvar _boxW;\\r\\n\\t\\t\\tvar _boxLeft;\\r\\n\\r\\n\\t\\t\\t_linee.css('height', ($(window).outerHeight() - _arcTop - _boxH - _linee.position().top) + 'px');\\r\\n\\r\\n\\t\\t\\tif($(window).outerWidth() < 820){\\r\\n\\t\\t\\t\\t_boxW = $(window).outerWidth();\\r\\n\\t\\t\\t\\t_boxLeft = _arcleft;\\r\\n\\t\\t\\t}else{\\r\\n\\t\\t\\t\\t_boxW = 820;\\r\\n\\t\\t\\t\\t_boxLeft = 90;\\r\\n\\t\\t\\t}\\r\\n\\r\\n\\t\\t\\t_infobox.css({\\r\\n\\t\\t\\t\\t'top': ($(window).outerHeight()-_arcTop-_boxH)+'px', \\r\\n\\t\\t\\t\\t'left': '-'+_boxLeft+'px',\\r\\n\\t\\t\\t\\t'width': _boxW+'px'\\r\\n\\t\\t\\t});\\r\\n\\t\\t}\",\n \"function updateMiniWindowCoords() {\\n\\t\\tvar scl = document.getElementById(MAP).scrollLeft * this.xRate;\\n\\t\\tvar sct = document.getElementById(MAP).scrollTop * this.yRate;\\n\\t\\tdocument.getElementById(MINIWINDOW + \\\"_up\\\").style.height = sct;\\n\\t\\tdocument.getElementById(MINIWINDOW + \\\"_left\\\").style.top = sct;\\n\\t\\tdocument.getElementById(MINIWINDOW + \\\"_left\\\").style.width = scl;\\n\\t\\tdocument.getElementById(MINIWINDOW + \\\"_right\\\").style.left = scl + document.getElementById(MINIWINDOW).clientWidth - 3;\\n\\t\\tdocument.getElementById(MINIWINDOW + \\\"_right\\\").style.top = sct;\\n\\t\\tdocument.getElementById(MINIWINDOW + \\\"_bottom\\\").style.left = scl;\\n\\t\\tdocument.getElementById(MINIWINDOW + \\\"_bottom\\\").style.top = sct + document.getElementById(MINIWINDOW).clientHeight - 4;\\n\\t\\tdocument.getElementById(MINIWINDOW).style.left = scl;\\n\\t\\tdocument.getElementById(MINIWINDOW).style.top = sct;\\n\\t}\",\n \"function InfoBarWindow(){}\",\n \"function repositionInfoWindow(zoom) {\\r\\n\\t\\tif(!$['mapsettings'].hasOpenInfoWindow) return true;\\r\\n\\t\\tif(typeof($['mapsettings'].infoWindowLocation[zoom]) != 'undefined') {\\r\\n\\t\\t\\toffset = $['mapsettings'].infoWindowLocation[zoom];\\r\\n\\t\\t} else {\\r\\n\\t\\t\\tpoint = $['mapsettings'].infoWindowLocation[sets.zoom];\\r\\n\\t\\t\\toffset = getPointZoomOffset(point, zoom);\\r\\n\\t\\t\\t$['mapsettings'].infoWindowLocation[zoom] = offset;\\r\\n\\t\\t}\\r\\n\\t\\t$(\\\"#infowindows img\\\").css('left',offset.x).css('top',offset.y-15);\\r\\n\\t\\tvar infow = $('#infowindow').css('left',offset.x).css('top',offset.y-15).hide();\\r\\n\\t\\tinfoHeight = infow.innerHeight();\\r\\n\\t\\tinfow.css('left', offset.x-4).css('top',offset.y-16-infoHeight).show();\\r\\n\\t}\",\n \"function IWPositionPopup(obbx, wd, ht) {\\r\\n var p = 'px';\\r\\n var tp = IWDBposTop() + ((IWDBpageHeight() - ht) / 2) - 12;\\r\\n var lt = IWDBposLeft() + ((IWDBpageWidth() - wd) / 2) - 12;\\r\\n\\r\\n obbx.style.top = (tp < 0 ? 0 : tp) + p;\\r\\n obbx.style.left = (lt < 0 ? 0 : lt) + p;\\r\\n obbx.style.width = wd + p;\\r\\n obbx.style.height = ht + p;\\r\\n obbx.style.display = '';\\r\\n}\",\n \"function IWDBsm(obol, wd, ht) {\\r\\n var b = '';\\r\\n var p = 'px';\\r\\n\\r\\n obol.style.height = IWDBpageHeight() + p;\\r\\n obol.style.width = IWDBpageWidth() + p;\\r\\n obol.style.top = IWDBposTop() + p;\\r\\n obol.style.left = IWDBposLeft() + p;\\r\\n obol.style.display = b;\\r\\n\\r\\n IWPositionPopup(obol.firstChild, wd, ht);\\r\\n\\r\\n\\r\\n return false;\\r\\n}\",\n \"function show_showinfo() {\\n\\t//alert( \\\"pageX: \\\" + event.pageX + \\\", pageY: \\\" + event.pageY );\\n\\tvar showinfo_width = $('#showinfo').width();\\n\\tvar showinfo_height = $('#showinfo').height();\\n\\n\\tvar map_height = $('#main').height();\\n\\n\\tvar showinfo_top = (map_height/2)-(showinfo_height/2);\\n\\tvar showinfo_left = (window_width/2)-(showinfo_width/2);\\n\\n\\n\\n\\t$(\\\"#showinfo\\\").css({\\n\\t\\t'top' : showinfo_top+'px',\\n\\t\\t'left' : showinfo_left+'px'\\n\\t}).show();\\n\\n}\",\n \"function updateStatusWindowOld(){\\r\\n\\tvar value = parseInt(hatsForm.CURSORPOSITION.value);\\r\\n\\tif (!isNaN(value)) {\\r\\n\\t\\tstatwin[0]=\\\" \\\"+value +\\\" (\\\"+ ConvertPosToRow(value, intNumberOfColumns)+\\\",\\\"+ ConvertPosToCol(value, intNumberOfColumns)+\\\")\\\";\\r\\n\\t}\\r\\n\\tif (isOverWriteMode()) statwin[1]=\\\"[]\\\";\\r\\n\\telse\\r\\n\\t\\tstatwin[1]=\\\"|\\\";\\r\\n\\tif (screenLocked){\\r\\n\\t\\tstatwin[3]=\\\" >< \\\";\\r\\n\\t}\\r\\n\\tvar strstat=\\\"\\\";\\r\\n\\tif (carettrackingenabled) strstat=strstat+statwin[0];\\r\\n\\tif (overwritemodeenabled) strstat=strstat+\\\" \\\"+statwin[1];\\r\\n\\tif (statwin[2]!=\\\" \\\") strstat=strstat+\\\" \\\"+statwin[2];\\r\\n\\tif (screenLocked) strstat=strstat+\\\" \\\"+statwin[3];\\r\\n\\tif (enableBIDI){\\r\\n\\t\\twindow.status = statusBIDI;\\r\\n\\t} else\\r\\n\\t\\twindow.status=strstat;\\r\\n}\",\n \"function reposInfoWindow() {\\n\\t// use the outer div for infowindow for calculations\\n\\tvar $infoWindowBox = $('.infowindow').parents().eq(3);\\n\\n\\t// delay repositioning to account for Maps API's own repositioning\\n\\t// otherwise `.panBy()` stops panning prematurely\\n\\tsetTimeout(function() {\\n\\t\\tvar marker = infoWindow.marker;\\n\\t\\tvar iwHeight = $infoWindowBox.height();\\n\\t\\tvar offset = -1 * ((iwHeight / 2) + 40);\\n\\n\\t\\tmap.setCenter(marker.getPosition());\\n\\t\\tmap.panBy(0, offset);\\n\\t}, 100);\\n}\",\n \"function initInformationWindow(position, content){\\t\\t\\n\\t\\tvar options\\t\\t\\t= new Object();\\n\\t\\toptions.content\\t\\t= content;\\n\\n\\t\\tself.infowindow = new google.maps.InfoWindow(options);\\n\\t}\",\n \"function SWEPopupNNSize() \\n{ \\n var popWin=Top().SWEPopupWin;\\n if((popWin == null) || (popWin.closed))\\n popWin = window;\\n\\t\\t\\n popWin.scrollTo(10000, 10000);\\n setTimeout(\\\"NNResize()\\\", 10);\\n}\",\n \"function displayInfobox(e) {\\n infowindow.setOptions({description: e.target.Description, visible: true, showPointer: false});\\n infowindow.setLocation(e.target.getLocation());\\n }\",\n \"function createInfoWindow(KMLEvent_latLng, infoData) {\\r\\n CommonInfoWindow.close();\\r\\n //$(\\\"#map-loader\\\").hide();\\r\\n\\r\\n var content = \\\"

\\\";\\r\\n if (infoData.establishments.length > 1) {\\r\\n content += \\\"
\\\" + infoData.address + \\\"
\\\";\\r\\n content += \\\"
\\\" + infoData.establishments.length + \\\" establishments at this address
\\\";\\r\\n } else {\\r\\n content += \\\"
\\\" + infoData.address + \\\"
\\\";\\r\\n \\r\\n }\\r\\n for (var i = 0; i < infoData.establishments.length; i++) {\\r\\n content += \\\"\\\";\\r\\n }\\r\\n content += \\\"
StreetView
\\\";\\r\\n \\r\\n //} \\r\\n content += \\\"
\\\"; \\r\\n CommonInfoWindow.setOptions({ \\\"position\\\": KMLEvent_latLng,\\r\\n \\\"pixelOffset\\\": 0, //KMLEvent.pixelOffset,\\r\\n \\\"content\\\": content}); //KMLEvent.featureData.infoWindowHtml.replace(/ target=\\\"_blank\\\"/ig, \\\"\\\") });\\r\\n CommonInfoWindow.open(gblMap);\\r\\n}\",\n \"function openInfoWindow(e, current) {\\r\\n\\t\\tcloseInfoWindow(); \\r\\n\\t\\tvar x = e.pageX - parseInt($('#inner').css('left')) - $['mapsettings'].element.get(0).offsetLeft - 9;\\r\\n\\t\\tvar y = e.pageY - parseInt($('#inner').css('top')) - $['mapsettings'].element.get(0).offsetTop - 10;\\r\\n\\t\\t$['mapsettings'].infoWindowLocation[$['mapsettings'].zoom] = new Point(x,y);\\r\\n\\t\\t$('
').css('left',x-4).css('top',y-53).html('
'+ $['mapsettings'].exitLink + $['mapsettings'].infoDisplay + '
').appendTo('#infowindows').hide();\\r\\n\\t\\tvar infow = $('#infowindow');\\r\\n\\t\\tinfoWidth = infow.innerWidth();\\r\\n\\t\\tinfoHeight = infow.innerHeight();\\r\\n\\t\\tinfow.css('left', x-4).css('top',y-16-infoHeight).show();\\r\\n\\t\\t$(\\\"#infowindows\\\").append($['mapsettings'].infoImage);\\r\\n\\t\\t$(\\\"#infowindows img\\\").css('left',x).css('top',y-15);\\r\\n\\t\\t$('#infowindows form').submit(function(e) { \\r\\n\\t\\t\\te.preventDefault(); \\r\\n\\t\\t\\tcloseInfoWindow();\\r\\n\\t\\t\\taddMarker(new Point(x,y), function(e){\\r\\n\\t\\t\\t\\te.preventDefault();\\r\\n\\t\\t\\t\\topenInfoWindowHtml(markerPoint(this), \\\"

Some Name

Some Description.

\\\");\\r\\n\\t\\t\\t});\\r\\n\\t\\t\\t\\r\\n\\t\\t });\\r\\n\\t\\t$(\\\"#exitLink\\\").click(function(e){\\r\\n\\t\\t\\te.preventDefault();\\r\\n\\t\\t\\tcloseInfoWindow();\\r\\n\\t\\t\\treturn false;\\r\\n\\t\\t});\\r\\n\\t\\t$['mapsettings'].hasOpenInfoWindow = true;\\r\\n\\t}\",\n \"function showInfoWindow() { \\n currentmarker = this;\\n infoWindow.open(map, currentmarker);\\n buildIWContent();\\n\\n}\",\n \"function fngetMouseXY(e) {\\r\\n\\t\\t\\t// x-y pos.s if browser is IE\\r\\n\\t\\t\\tif (IE) { \\r\\n\\t\\t\\t\\tvar position=getScrollingPosition();\\r\\n\\t\\t\\t\\tmintXPos = event.clientX + position[0];\\r\\n\\t\\t\\t\\tmintYPos = event.clientY + position[1];\\r\\n\\t\\t\\t} \\r\\n\\t\\t\\telse\\r\\n\\t\\t\\t{ \\r\\n\\t\\t\\t// x-y pos if browser is NS\\r\\n\\t\\t\\tmintXPos = e.pageX;\\r\\n\\t\\t\\tmintYPos = e.pageY;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tif (mblnOnInfoRaiser == false && mblnOnInfoWindow == false)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tvar objInfoDiv = document.getElementById(\\\"divInformationWindow\\\");\\r\\n\\t\\t\\t\\tobjInfoDiv.style.display = 'none';\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\",\n \"function update_position() {\\n var dlgLeft = ($(document).width()/2) - ($('#dlg-box-content-container').width()/2) - 20;\\n $('#dlg-box-content-container').css('left', dlgLeft);\\n $('#dlg-box-content-container').css('top', '8%');\\n }\",\n \"function information() {\\n\\t//alert(\\\"Created by Monica Michaud\\\\nIn the Institute for New Media Studies\\\\nAdviser: Gordon Carlson, PhD\\\\nDev Version: 0.2 (Apr 25)\\\");\\n\\n\\tvar mapInfoBoxString;\\n\\t\\n\\tmapInfoBoxString = '

Information :

' +\\n\\t\\t'

Created by Monica Michaud
In the Institute for New Media Studies
Adviser: Gordon Carlson, PhD
Dev Version: 0.2 (Apr 25)

';\\n\\t\\n\\tmap.setCenter(MAP_CENTER_COORDINATES); \\n\\tinfoWindow.setContent(mapInfoBoxString);\\n\\tinfoWindow.setPosition(MAP_CENTER_COORDINATES);\\n\\tinfoWindow.open(map);\\n}\",\n \"function moveTip() {\\n skinAdjust = new Array();\\n dbS = getDBS();\\n tip = document.getElementById(\\\"simpletfb\\\");\\n var showTTAtTop = mousePos.y > (winSize.y / 2);\\n var showTTAtLeft = mousePos.x > (winSize.x / 2);\\n var newTop = mousePos.y + (showTTAtTop ? - (tip.clientHeight + 20) : 20);\\n var newLeft = mousePos.x + (showTTAtLeft ? - (tip.clientWidth + 20) : 20);\\n tip.style.position = 'fixed';\\n tip.style.top = newTop + \\\"px\\\";\\n tip.style.left = newLeft + \\\"px\\\";\\n}\",\n \"function fnhideInformation()\\r\\n\\t\\t{\\r\\n\\t\\t\\tmblnOnInfoWindow = false;\\r\\n\\t\\t}\",\n \"function _221() {\\n\\tvar x = document.getElementById('221window');\\n\\n\\tif (window.getComputedStyle(x).getPropertyValue(\\\"display\\\") === \\\"none\\\") {\\n\\t\\tx.style.display = \\\"block\\\";\\n\\n\\t\\tvar doc = document.createElement('iframe');\\n\\t\\tdoc.setAttribute(\\\"id\\\",\\\"221doc\\\");\\n\\t\\tdoc.setAttribute(\\\"src\\\", \\\"./web/viewer.html?file=../projects/2.2.1 Night Light.pdf#navpanes=0&amp;toolbar=0&amp;statusbar=0&amp;view=FitV&amp;pagemode=none&amp;page=1\\\");\\n\\t\\tdoc.setAttribute(\\\"style\\\",\\\"border: none; width: 100%; height: calc(100% - 32px)\\\");\\n\\t\\tx.appendChild(doc);\\n\\n\\t\\t/* makes current window the top window */\\n\\t\\tvar windows = document.getElementsByClassName('drsElement');\\n\\t\\tvar i = windows.length;\\n\\t\\twhile(i--) {\\n\\t\\t\\t\\twindows[i].style.zIndex = \\\"3\\\";\\n\\t\\t}\\n\\t\\tx.style.zIndex = \\\"4\\\";\\n\\t\\tx.focus();\\n\\t}\\n}\",\n \"function setInfoWindow(allPage, k, i, marker, netDisplacement, totalDistance, avgVelocity,\\n totalTime, legLength, legSpeed, legTime, GEBCODepth, EEZ, lat, lng) {\\n // No more live requests since the data get read by grabIndData\\n // makeWMSrequest(dataPoints[k]);\\n\\n google.maps.event.addListener(marker, 'click', function (event) {\\n // close existing windows\\n closeIWindows();\\n if (allPage!=='drop'){\\n markerIndex = k;\\n }\\n\\n //Redeclare variables for jQuery (it doesn't work if I don't do this, I have no idea why)\\n dropMarkerList = dropMarkers;\\n currentMarker = dropMarkers.findIndex(item => {\\n if (item.title === marker.title) {\\n return true;\\n }\\n return false;\\n });\\n tempClose = closeIWindows;\\n\\n // Pan to include entire infowindow\\n let offset = -0.32 + (10000000) / (1 + Math.pow((map.getZoom() / 0.0035), 2.07));\\n let center = new google.maps.LatLng(\\n parseFloat(marker.position.lat() + offset / 1.5),\\n parseFloat(marker.position.lng() + offset / 2)\\n );\\n map.panTo(center);\\n let iwindow;\\n // info window preferences\\n if (allPage===\\\"drop\\\") {\\n iwindow = new InfoBubble({\\n maxWidth: 270,\\n maxHeight: 150,\\n shadowStyle: 1,\\n padding: 10,\\n backgroundColor: 'rgb(255,255,255)',\\n borderRadius: 4,\\n arrowSize: 20,\\n borderWidth: 2,\\n borderColor: '#000F35',\\n disableAutoPan: true,\\n hideCloseButton: false,\\n arrowPosition: 30,\\n backgroundClassName: 'phoney',\\n arrowStyle: 0,\\n disableAnimation: 'true'\\n });\\n\\n } else {\\n iwindow = new InfoBubble({\\n maxWidth: 320,\\n maxHeight: 265,\\n shadowStyle: 1,\\n padding: 10,\\n backgroundColor: 'rgb(255,255,255)',\\n borderRadius: 4,\\n arrowSize: 20,\\n borderWidth: 2,\\n borderColor: '#000F35',\\n disableAutoPan: true,\\n hideCloseButton: false,\\n arrowPosition: 30,\\n backgroundClassName: 'phoney',\\n arrowStyle: 0,\\n disableAnimation: 'true'\\n });\\n }\\n\\n let floatTabContent;\\n\\n if (allPage === true) {\\n // content for float data tab\\n floatTabContent = '
' +\\n // 'Float Name: ' + dataPoints[i].name +\\n // '
' +\\n 'UTC: ' + dataPoints[i].stdt +\\n // '
Your Date: ' + dataPoints[i].loct +\\n '
GPS Lat/Lon: ' + dataPoints[i].stla + ', ' + dataPoints[i].stlo +\\n '
GPS Hdop/Vdop: ' + dataPoints[i].hdop + ' m , ' + dataPoints[i].vdop + ' m' +\\n '
GEBCO WMS Depth: ' + GEBCODepth + ' m' +\\n '
EEZ: ' + EEZ +\\n '
' +\\n '
Battery: ' + dataPoints[i].Vbat + ' mV' +\\n '
Internal Pressure: ' + dataPoints[i].Pint + ' Pa' +\\n '
External Pressure: ' + dataPoints[i].Pext + ' mbar' +\\n '
' +\\n '
Total Time: ' + roundit(totalTime,0) + ' h' +\\n '
Distance Travelled: ' + roundit(totalDistance,0) + ' km' +\\n '
Average Speed: ' + roundit(avgVelocity,3) + ' km/h' +\\n '
Net Displacement: ' + roundit(netDisplacement,0) + ' km';\\n } else if (allPage === 'drop'){\\n // content for dropped marker tab\\n floatTabContent = '
' +\\n '
GPS Lat/Lon: ' + lat + ', ' + lng +\\n '
GEBCO WMS Depth: ' + GEBCODepth + ' m' +\\n '
EEZ: ' + EEZ +\\n //This next line we create an tag with an href that calls a javascript function using jQuery\\n '

Clear Marker';\\n } else {\\n // content for float data tab\\n floatTabContent = '
' +\\n // 'Float Name: ' + dataPoints[i].name +\\n // '
' +\\n 'UTC: ' + dataPoints[i].stdt +\\n // '
Your Date: ' + dataPoints[i].loct +\\n '
GPS Lat/Lon: ' + dataPoints[i].stla + ', ' + dataPoints[i].stlo +\\n // '
GPS Hdop/Vdop: ' + dataPoints[i].hdop + ' m , ' + dataPoints[i].vdop + ' m' +\\n // We're not making a WMS request here so no more datapoint and now more that field\\n // '
GEBCO WMS Depth: ' + dataPoints[i].wmsdepth + ' m' +\\n '
GEBCO WMS Depth: ' + GEBCODepth + ' m' +\\n '
EEZ: ' + EEZ +\\n // '
' +\\n // '
Battery: ' + dataPoints[i].Vbat + ' mV' +\\n // '
Internal Pressure: ' + dataPoints[i].Pint + ' Pa' +\\n // '
External Pressure: ' + dataPoints[i].Pext + ' mbar' +\\n '
' +\\n '
Leg Length: ' + roundit(legLength,1) + ' km' +\\n '
Leg Time: ' + roundit(legTime,2) + ' h' +\\n '
Leg Speed: ' + roundit(legSpeed,3) + ' km/h' +\\n '
' +\\n '
Total Time: ' + roundit(totalTime,0) + ' h' +\\n '
Distance Travelled: ' + roundit(totalDistance,0) + ' km' +\\n '
Average Speed: ' + roundit(avgVelocity,3) + ' km/h' +\\n '
Net Displacement: ' + roundit(netDisplacement,0) + ' km';\\n }\\n // content for earthquake tabs\\n let earthquakeTabContent = '
' +\\n 'Code: ' + \\\"/* filler */\\\" +\\n '
UTC: ' + \\\"/* filler */\\\" +\\n '
Your Date: ' + \\\"/* filler */\\\" +\\n '
Lat/Lon: ' + \\\"/* filler */\\\" +\\n '
Magnitude: ' + \\\"/* filler */\\\" +\\n '
Great Circle Distance: ' + \\\"/* filler */\\\" +\\n '
Source: ' + \\\"/* filler */\\\";\\n \\n let floatName;\\n\\n if(allPage === 'drop'){\\n floatName = '
' + '' + 'Drop Pin' + ' ';\\n } else {\\n floatName = '
' + '' + dataPoints[i].name + ' ';\\n }\\n\\n let earthquakeName = '
' + 'EarthQuake Info ';\\n\\n let seismograms = '
' + 'Seismograms ';\\n \\n // add info window tabs\\n iwindow.addTab(floatName, floatTabContent);\\n // iwindow.addTab(earthquakeName, earthquakeTabContent);\\n // iwindow.addTab(seismograms, \\\"\\\");\\n\\n iwindow.open(map, this);\\n iwindows.push(iwindow);\\n });\\n }\",\n \"function moreInfo() {\\n var infoWindowElem = $('.info-window');\\n infoWindowElem.css('top', '0');\\n infoWindowElem.css('height', '100vh');\\n infoWindowElem.css('overflow', 'scroll');\\n}\",\n \"_updateWindowCoord(windowCoord) {}\",\n \"function iconLocation() { // Icon display\\n\\t\\t\\n\\t\\t// Heavy Traffic Icon\\n\\t\\tvar htIconpoint = {\\n\\t\\t\\ttype: \\\"point\\\", // autocasts as new Point()\\n longitude: 103.875029,\\n latitude: 1.280973 \\n }; \\n var htTitle = \\\"Heavy Traffic\\\"\\n var htContent = \\\"
Heavy Traffic in MCE
\\\"\\n \\n\\t var htIconPictureSymbol = {\\n\\t\\t\\ttype: \\\"picture-marker\\\",\\n url: \\\"heavytraffic.png\\\", //Lower Delta Rd Exit (AYE)\\n width: \\\"22\\\",\\n height: \\\"22\\\"\\n }\\n\\t htIconPictureGraphic = new Graphic({\\n\\t\\tgeometry: htIconpoint,\\n\\t\\tsymbol: htIconPictureSymbol,\\n popupTemplate: {\\n // autocasts as new PopupTemplate()\\n title: htTitle,\\n content: htContent \\n }\\n }); \\n\\n\\t\\t// Unattended Vehicle Icon\\n\\t\\tvar unVIconpoint = {\\n\\t\\t\\ttype: \\\"point\\\", // autocasts as new Point()\\n longitude: 103.897955,\\n latitude: 1.297171 \\n }; \\n\\t var unVIconPictureSymbol = {\\n\\t\\t\\ttype: \\\"picture-marker\\\",\\n url: \\\"unattvehicle.png\\\", //Stil Rd 5th Exit (ECP)\\n width: \\\"22\\\",\\n height: \\\"22\\\"\\n }\\n\\n var unTitle = \\\"Unattended vehicle\\\"\\n var unContent = \\\"
Unattended vehicle ECP - Stil Rd 5th Exit
\\\"\\n\\t unVIconPictureGraphic = new Graphic({\\n geometry: unVIconpoint,\\n symbol: unVIconPictureSymbol,\\n popupTemplate: {\\n title: unTitle,\\n content: unContent \\n }\\n });\\t\\t\\n\\t\\t \\n\\t\\t// Road Work Icon\\n\\t\\tvar rwIconpoint = {\\n\\t\\t\\ttype: \\\"point\\\", // autocasts as new Point()\\n longitude: 103.934441,\\n latitude: 1.330996 \\n }; \\n var rwTitle = \\\"Roadworks\\\";\\n var rwContent = \\\"
Roadworks on PIE Bedok North Ave 3
\\\";\\n var rwIconPictureSymbol = {\\n\\t\\t type: \\\"picture-marker\\\",\\n url: \\\"roadwork.png\\\", //Sungei Tengah Exit(KJE)\\n width: \\\"22\\\",\\n height: \\\"22\\\"\\n }\\n\\t rwIconPictureGraphic = new Graphic({\\n\\t\\tgeometry: rwIconpoint,\\n symbol: rwIconPictureSymbol,\\n popupTemplate: {\\n // autocasts as new PopupTemplate()\\n title: rwTitle,\\n content: rwContent \\n }\\n });\\t\\t\\n\\t\\n\\t// Accident Icon\\n\\t\\tvar accIconpoint = {\\n\\t\\t\\ttype: \\\"point\\\", // autocasts as new Point()\\n longitude: 103.727822,\\n latitude: 1.374733 \\n }; \\n\\t var accIconPictureSymbol = {\\n\\t\\t\\ttype: \\\"picture-marker\\\",\\n url: \\\"accident.png\\\", //Seletar Link (TPE)\\n width: \\\"22\\\",\\n height: \\\"22\\\"\\n }\\n\\n var accTitle = \\\"Accident\\\";\\n var accContent = \\\"
Accident on KJE Sungei Tengah Exit
\\\";\\n\\t accIconPictureGraphic = new Graphic({\\n\\t\\tgeometry: accIconpoint,\\n symbol: accIconPictureSymbol,\\n popupTemplate: {\\n title: accTitle,\\n content: accContent \\n }\\n });\\n\\n//New incident Accident Icon created after the \\n\\t\\tvar accIconpoint1 = {\\n\\t\\t\\t\\ttype: \\\"point\\\", // autocasts as new Point()\\n\\t\\t\\t\\tlongitude: 103.858249, //103.858056,\\n\\t latitude: 1.378062 \\n\\t }; \\n\\t\\t var accIconPictureSymbol1 = {\\n\\t\\t\\t\\ttype: \\\"picture-marker\\\",\\n\\t url: \\\"accident.png\\\", //Seletar Link (TPE)\\n\\t width: \\\"22\\\",\\n\\t height: \\\"22\\\",\\n\\t }\\n\\n\\t var accTitle = \\\"Accident\\\";\\n\\t var accContent = \\\"
Accident on KJE Sungei Tengah Exit
\\\";\\n\\t\\t accIconPictureGraphic1 = new Graphic({\\n\\t\\t\\tgeometry: accIconpoint1,\\n\\t symbol: accIconPictureSymbol1,\\n\\t popupTemplate: {\\n\\t title: accTitle,\\n\\t content: accContent \\n\\t }\\n\\t });\\n\\n//New incident Mobile road work Icon created after the\\t\\t \\n\\t\\t\\tvar rwIconpoint1 = {\\n\\t\\t\\t\\t\\ttype: \\\"point\\\", // autocasts as new Point()\\n\\t\\t longitude: 103.92464,\\n\\t\\t latitude: 1.3113622 \\n\\t\\t }; \\n\\t\\t var rwTitle = \\\"Roadworks\\\";\\n\\t\\t var rwContent = \\\"
Roadworks on PIE Bedok North Ave 3
\\\";\\n\\t\\t var rwIconPictureSymbol1 = {\\n\\t\\t\\t\\t type: \\\"picture-marker\\\",\\n\\t\\t url: \\\"roadwork.png\\\", //Sungei Tengah Exit(KJE)\\n\\t\\t width: \\\"22\\\",\\n\\t\\t height: \\\"22\\\"\\n\\t\\t }\\n\\t\\t\\t rwIconPictureGraphic1 = new Graphic({\\n\\t\\t\\t\\tgeometry: rwIconpoint1,\\n\\t\\t symbol: rwIconPictureSymbol1,\\n\\t\\t popupTemplate: {\\n\\t\\t // autocasts as new PopupTemplate()\\n\\t\\t title: rwTitle,\\n\\t\\t content: rwContent \\n\\t\\t }\\n\\t});\\t \\n\\n\\t\\t \\n\\t// breakdown Icon\\n\\t\\tvar bdIconpoint = {\\n\\t\\t\\ttype: \\\"point\\\", // autocasts as new Point()\\n longitude: 103.881117,\\n latitude: 1.401208 \\n }; \\n\\t var bdIconPictureSymbol = {\\n\\t\\t\\ttype: \\\"picture-marker\\\",\\n url: \\\"breakdown.png\\\", //Bedok North Ave 3(PIE)\\n width: \\\"22\\\",\\n height: \\\"22\\\"\\n }\\n \\n var bdTitle = \\\"Breakdown\\\";\\n var bdContent = \\\"
Breakdown\\t(TPE) - Seletar Link
\\\";\\n\\t bdIconPictureGraphic = new Graphic({\\n\\t\\tgeometry: bdIconpoint,\\n symbol: bdIconPictureSymbol, \\n popupTemplate: {\\n title: bdTitle,\\n content: bdContent \\n }\\n });\\t\\t \\t \\n\\t\\tview.graphics.addMany([htIconPictureGraphic, unVIconPictureGraphic,rwIconPictureGraphic,accIconPictureGraphic,bdIconPictureGraphic,accIconPictureGraphic1,rwIconPictureGraphic1]);\\n }\",\n \"function updateMiniMapCoords() {\\n\\t\\tif (this.hasExtendedInformation) {\\n\\t\\t\\tthis.minimap.updateMiniWindow();\\n\\t\\t}\\n\\t}\",\n \"function showPosition() {\\n}\",\n \"function modifyInfoWindowCss() {\\n\\tvar c = document.querySelector(\\\".gm-style-iw\\\");\\n\\n\\t//these lines change the right and width css elements of the infowindow so that the close button \\\"floats\\\" on top of the content added to the window\\n\\tc.style.setProperty(\\\"right\\\", c.style.left, \\\"important\\\");\\n\\tc.style.setProperty(\\\"margin\\\", \\\"0 auto\\\");\\n\\tc.style.setProperty(\\\"padding-left\\\", \\\"0\\\");\\n\\tc.style.setProperty(\\\"padding-right\\\", \\\"0\\\");\\n\\n\\t//the lines below affect the infowindow close button. you can use this path in the DOM to change other css\\n\\t//c.nextElementSibling.style.setProperty(\\\"position\\\", \\\"absolute\\\");\\n\\tc.nextElementSibling.style.setProperty('display', 'none', 'important');\\n\\t//c.nextElementSibling.style.setProperty('top', '30');\\n\\t//this value moves the clsoe button up and down\\n\\t//c.nextElementSibling.style.setProperty('right', '0');\\n\\t//this value moves the close button left and right.\\n\\t//c.nextElementSibling.style.setProperty('border', '1px dotted red');\\n\\n\\t//the lines below affect the infowindow class itself. you can use this path in the dom to change other css\\n\\t//c.parentNode.style.setProperty('border','2px dotted black');\\n\\n}\",\n \"function OverlayConnectionPosition() { }\",\n \"function updatePosition(event) {\\n var xOffset = 20;\\n var yOffset = 10;\\n\\n var ttw = tt.style('width');\\n var tth = tt.style('height');\\n\\n var wscrY = window.scrollY;\\n var wscrX = window.scrollX;\\n\\n var curX = (document.all) ? event.clientX + wscrX : event.pageX;\\n var curY = (document.all) ? event.clientY + wscrY : event.pageY;\\n var ttleft = ((curX - wscrX + xOffset * 2 + ttw) > window.innerWidth) ?\\n curX - ttw - xOffset * 2 : curX + xOffset;\\n\\n if (ttleft < wscrX + xOffset) {\\n ttleft = wscrX + xOffset;\\n }\\n\\n var tttop = ((curY - wscrY + yOffset * 2 + tth) > window.innerHeight) ?\\n curY - tth - yOffset * 2 : curY + yOffset;\\n\\n if (tttop < wscrY + yOffset) {\\n tttop = curY + yOffset;\\n }\\n\\n //previous tooltip positionnig\\n /*tt\\n .style('top', tttop + 'px')\\n .style('left', ttleft + 'px');*/\\n\\n if (curX > document.getElementById(\\\"container\\\").clientWidth/2){\\n\\n if (document.getElementById(\\\"container\\\").clientWidth>720)\\n if (document.getElementById(\\\"container\\\").clientWidth / 3 - widthtt>0)\\n tt\\n .style('top', widthtt / 3 + 'px')\\n .style('left', (document.getElementById(\\\"container\\\").clientWidth / 3 - widthtt) + 'px'); \\n else\\n tt\\n .style('top', widthtt / 3 + 'px')\\n .style('left', (5) + 'px');\\n else\\n\\n tt\\n .style('top', widthtt / 3 + 'px')\\n .style('left', (5) + 'px');\\n }\\n else{\\n if (document.getElementById(\\\"container\\\").clientWidth > 720)\\n tt\\n .style('top', widthtt / 3 + 'px')\\n .style('left', (document.getElementById(\\\"container\\\").clientWidth / 2 ) + 'px');\\n else\\n tt\\n .style('top', widthtt / 3 + 'px')\\n .style('left', (document.getElementById(\\\"container\\\").clientWidth - widthtt) + 'px');\\n }\\n \\n }\",\n \"function SetMapTipPosition() {\\n alert(tempGraphicsLayerId);\\n if (map.getLayer(tempGraphicsLayerId)) {\\n if (map.getLayer(tempGraphicsLayerId).graphics.length > 0) {\\n if (map.getLayer(tempGraphicsLayerId).graphics[0].attributes) {\\n return;\\n }\\n var mapPoint;\\n alert(map.getLayer(tempGraphicsLayerId).graphics[0].geometry.type());\\n // if(map.getLayer(tempGraphicsLayerId).graphics[0].geometry is MapPoint)\\n var mapPoint = map.getLayer(tempGraphicsLayerId).graphics[0].geometry.center();\\n var screenPoint = map.toScreen(mapPoint);\\n screenPoint.y = map.height - screenPoint.y;\\n map.infoWindow.setLocation(screenPoint);\\n return;\\n }\\n if (selectedMapPoint) {\\n var screenPoint = map.toScreen(selectedMapPoint);\\n screenPoint.y = map.height - screenPoint.y;\\n map.infoWindow.setLocation(screenPoint);\\n }\\n }\\n}\",\n \"function testInfoWindow(){\\n var infoWindow = new google.maps.InfoWindow({\\n content: \\\"
\\\",\\n position: new google.maps.LatLng(0, 151)\\n });\\n infoWindow.open(realtimeMap);\\n}\",\n \"function controllo_posizione(loc)\\n{\\n\\t/*var body = document.body;\\n\\tvar width = body.offsetWidth;\\n\\tvar heigth = body.offsetHeight;\\t/*\\n\\ty -> 0 e 981\\n\\tx -> 0 e 910\\n\\t*/\\n\\t//console.log( \\\"Altezza: \\\" + heigth + \\\"; Larghezza: \\\" + width+\\\";\\\");\\n\\tvar body = $(\\\"body\\\");\\n\\tvar width = body.width();\\n\\tvar heigth = body.height();\\n\\t//console.log(width+\\\"-\\\"+heigth);\\n\\n\\tif(loc==\\\"x\\\")\\n\\t{\\n\\t\\tif(x<1)\\n\\t\\t\\treturn x=1;\\n\\t\\tif(x>width)\\n\\t\\t{\\n\\t\\t\\tx=width-1;\\n\\t\\t\\treturn x;\\n\\t\\t}\\n\\t}\\n\\n\\tif(loc==\\\"y\\\")\\n\\t{\\t\\n\\t\\tif(y<1)\\n\\t\\t\\treturn y=1;\\n\\t\\tif(y>heigth)\\n\\t\\t{\\n\\t\\t\\ty=heigth-1;\\n\\t\\t\\treturn y;\\n\\t\\t}\\n\\t}\\n\\n}\",\n \"function listening_zoom(){\\n\\t\\t\\t\\t\\t\\tWindow_information[\\\"visual_width\\\"] =aux_function()[4]\\n \\tWindow_information[\\\"visual_height\\\"] =aux_function()[5]\\n var know_change = (Window_information[\\\"visual_width\\\"]/2) - (Window_information[\\\"browser_width\\\"]/2)\\n debug[\\\"checking device width\\\"][1] ? console.log(Window_information[\\\"visual_width\\\"]) : \\\"\\\"\\n if(know_change != $(\\\".html_page\\\").offset()[\\\"left\\\"]){\\n $(\\\".html_page\\\").offset({\\n left: know_change\\n })\\n }\\n\\n }\",\n \"function updatePosition(event) {\\n\\n\\t\\t\\tvar xOffset = 20,\\n\\t\\t\\tyOffset = 10;\\n\\n\\t\\t\\tvar ttw = tt.style(\\\"width\\\"),\\n tth = tt.style(\\\"height\\\");\\n\\n\\t\\t\\tvar wscrX = window.scrollX,\\n\\t\\t\\twscrY = window.scrollY;\\n\\n\\t\\t\\tvar curX = (document.all) ? event.clientX + wscrX : event.pageX,\\n\\t\\t\\tcurY = (document.all) ? event.clientY + wscrY : event.pageY;\\n\\n\\t\\t\\tvar ttleft = ((curX - wscrX + xOffset * 2 + ttw) > window.innerWidth) ? curX - ttw - xOffset * 2 : curX + xOffset;\\n\\n\\t\\t\\tif (ttleft < wscrX + xOffset) {\\n\\t\\t\\t\\tttleft = wscrX + xOffset;\\n\\t\\t\\t}\\n\\n\\t\\t\\tvar tttop = ((curY - wscrY + yOffset * 2 + tth) > window.innerHeight) ? curY - tth - yOffset * 2 : curY + yOffset;\\n\\n\\t\\t\\tif (tttop < wscrY + yOffset) {\\n\\t\\t\\t\\ttttop = wscrY + yOffset;\\n }\\n\\n\\t\\t\\ttt.style(\\\"top\\\", tttop + \\\"px\\\")\\n\\t\\t\\t.style(\\\"left\\\", ttleft + \\\"px\\\");\\n\\n\\t\\t}\",\n \"function findSize() {\\n\\t// pobiera wysokosc szerokosc okna\\n\\tvar height = $(window).height();\\n\\tvar width = $(window).width();\\n\\n\\t// wysokosc i szerokosc 2panelow: na gorze i po prawej\\n\\tvar heightTopPanel = $(\\\".topPanelContainer\\\").height() + 70;\\n\\tvar widthInfoPanel = $(\\\".infoPanelContainer\\\").width() + 44;\\n\\n\\t// ustawia wielkosci panelow mapy i info\\n\\t$(\\\".mapa\\\").height(height - heightTopPanel);\\n\\t$(\\\".infoPanelContainer\\\").height(height - heightTopPanel);\\n\\t$(\\\".mapa\\\").width(width - widthInfoPanel);\\n}\",\n \"function handleLocationError(browserHasGeolocation, infoWindow, pos) {\\n \\tinfoWindow.setPosition(pos);\\n }\",\n \"function findWH() {\\r\\n\\twinW = (is.ns)? window.innerWidth : document.body.offsetWidth-20\\r\\n\\twinH = (is.ns)? window.innerHeight : document.body.offsetHeight-4\\r\\n}\",\n \"function moveTip(e) {\\nvar newTop = e.clientY + ((e.clientY > ($(window).height()/2)) ? -($(\\\".htt:visible\\\").innerHeight()+20):20);\\nvar newLeft = e.clientX + ((e.clientX > ($(window).width()/2)) ? -($(\\\".htt:visible\\\").innerWidth()+20):20);\\n$(\\\".htt:visible\\\").css(\\\"position\\\",\\\"fixed\\\");\\n$(\\\".htt:visible\\\").css(\\\"top\\\",newTop + \\\"px\\\");\\n$(\\\".htt:visible\\\").css(\\\"left\\\",newLeft + \\\"px\\\");\\n}\",\n \"function hideInfoWindowCloseControl() {\\n // $(\\\".gm-style-iw\\\").next(\\\"div\\\").css('display', 'none'); // this function gets rid of close btn in infowindows\\n // udacity doesn't like it for this project so having an x is fine\\n }\",\n \"function updatePosition(event) {\\n var xOffset = 20;\\n var yOffset = 10;\\n\\n var ttw = tt.style('width');\\n var tth = tt.style('height');\\n\\n var wscrY = window.scrollY;\\n var wscrX = window.scrollX;\\n\\n var curX = (document.all) ? event.clientX + wscrX : event.pageX;\\n var curY = (document.all) ? event.clientY + wscrY : event.pageY;\\n var ttleft = ((curX - wscrX + xOffset * 2 + ttw) > window.innerWidth) ?\\n curX - ttw - xOffset * 2 : curX + xOffset;\\n\\n if (ttleft < wscrX + xOffset) {\\n ttleft = wscrX + xOffset;\\n }\\n\\n var tttop = ((curY - wscrY + yOffset * 2 + tth) > window.innerHeight) ?\\n curY - tth - yOffset * 2 : curY + yOffset;\\n\\n if (tttop < wscrY + yOffset) {\\n tttop = curY + yOffset;\\n }\\n\\n tt\\n .style('top', tttop + 'px')\\n .style('left', ttleft + 'px');\\n }\",\n \"function windowResized() {\\n //keeps the canvas to the full window size \\n resizeCanvas(displayWidth, displayHeight);\\n var x = (windowWidth) / 2;\\n var y = (windowHeight) / 2;\\n //this keeps it in the center of the window\\n instructionsWindow.position(x-instructionsWindow.width/2, y-instructionsWindow.height/2);\\n var buttonPosY = displayWidth*0.705;\\n var buttonPosX = displayHeight*0.5;\\n //Rbutton01.position(buttonPosY,buttonPosX);\\n \\n}\",\n \"function makeNewPosition(betta, aalpha, i){\\n \\n var h = $(window).height() - 150;\\n var w = $(window).width() - 100;\\n \\n if (betta > 60 && betta < 66) {\\n \\tvar nh = Math.floor(0 * h);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 66 && betta < 72) {\\n \\tvar nh = Math.floor(0.1 * h);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 72 && betta < 78) {\\n \\tvar nh = Math.floor(0.2 * h);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 78 && betta < 84) {\\n \\tvar nh = Math.floor(0.3 * h);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 84 && betta < 90) {\\n \\tvar nh = Math.floor(0.4 * h);\\n var nw = Math.floor(0.5 * w);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 90 && betta < 96) {\\n \\tvar nh = Math.floor(0.5 * h);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 96 && betta < 102) {\\n \\tvar nh = Math.floor(0.6 * h);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 102 && betta < 108) {\\n \\tvar nh = Math.floor(0.7 * h);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 108 && betta < 114) {\\n \\tvar nh = Math.floor(0.8 * h);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 114 && betta < 120) {\\n \\tvar nh = Math.floor(0.9 * h);\\n showIcon(i);\\n hideDownArrow();\\n hideUpArrow();\\n } else if (betta >= 120) {\\n \\tvar nh = Math.floor(1 * h);\\n showDownArrow();\\n moveDown();\\n hideIcon(i);\\n } else {\\n \\tvar nh = Math.floor(0 * h);\\n showUpArrow();\\n hideIcon(i);\\n moveUp();\\n }\\n \\n if (theta[i] < aalpha + 10 && theta[i] > aalpha - 10) {\\n \\tif (aalpha - theta[i] > -10 && aalpha - theta[i] <= -8) {\\n \\t\\tvar nw = Math.floor(0 * w);\\n \\t} else if (aalpha - theta[i] > -8 && aalpha - theta[i] <= -6) {\\n \\t\\tvar nw = Math.floor(0.1 * w);\\n \\t} else if (aalpha - theta[i] > -6 && aalpha - theta[i] <= -4) {\\n \\t\\tvar nw = Math.floor(0.2 * w);\\n \\t} else if (aalpha - theta[i] > -4 && aalpha - theta[i] <= -2) {\\n \\t\\tvar nw = Math.floor(0.3 * w);\\n \\t} else if (aalpha - theta[i] > -2 && aalpha - theta[i] <= 0) {\\n \\t\\tvar nw = Math.floor(0.4 * w);\\n \\t} else if (aalpha - theta[i] > 0 && aalpha - theta[i] <= 2) {\\n \\t\\tvar nw = Math.floor(0.5 * w);\\n \\t} else if (aalpha - theta[i] > 2 && aalpha - theta[i] <= 4) {\\n \\t\\tvar nw = Math.floor(0.6 * w);\\n \\t} else if (aalpha - theta[i] > 4 && aalpha - theta[i] <= 6) {\\n \\t\\tvar nw = Math.floor(0.7 * w);\\n \\t} else if (aalpha - theta[i] > 6 && aalpha - theta[i] <= 8) {\\n \\t\\tvar nw = Math.floor(0.8 * w);\\n \\t} else if (aalpha - theta[i] > 8 && aalpha - theta[i] <= 10) {\\n \\t\\tvar nw = Math.floor(0.9 * w);\\n \\t}\\n } else {\\n \\thideIcon(i);\\n } \\n return [nh,nw]; \\n}\",\n \"function updatePosition(event) {\\n var xOffset = 20;\\n var yOffset = 30;\\n\\n var ttw = tt.style('width');\\n var tth = tt.style('height');\\n\\n var wscrY = window.scrollY;\\n var wscrX = window.scrollX;\\n\\n var curX = (document.all) ? event.clientX + wscrX : event.pageX;\\n var curY = (document.all) ? event.clientY + wscrY : event.pageY;\\n var ttleft = ((curX - wscrX + xOffset * 2 + ttw) > window.innerWidth) ?\\n curX - ttw - xOffset * 2 : curX + xOffset;\\n\\n if (ttleft < wscrX + xOffset) {\\n ttleft = wscrX + xOffset;\\n }\\n\\n var tttop = ((curY - wscrY + yOffset * 2 + tth) > window.innerHeight) ?\\n curY - tth - yOffset * 2 : curY + yOffset;\\n\\n if (tttop < wscrY + yOffset) {\\n tttop = curY + yOffset;\\n }\\n\\n tt\\n .style('top', tttop + 'px')\\n .style('left', ttleft + 'px');\\n }\",\n \"function top_calcul(){\\r\\n \\r\\n pose_menu();\\r\\n \\r\\n if(xsmall){\\r\\n top2=$('.g-head').innerHeight() + 524;\\r\\n }else{\\r\\n var cons=0;\\r\\n if(small){\\r\\n cons=170;\\r\\n }else if(md){\\r\\n cons=170;\\r\\n }else if(lg){\\r\\n cons=105;\\r\\n }\\r\\n //alert(cons);\\r\\n top2=$('.g-head').innerHeight() + $('.slide').innerHeight()-($('.sous-bloc').innerHeight()+cons);\\r\\n }\\r\\n }\",\n \"function client_info() {\\n let tinggi = document.body.clientHeight;\\n let lebar = document.body.clientWidth;\\n let screen_height = screen.height;\\n let screen_width = screen.width;\\n document.getElementById('tinggi').innerHTML = tinggi;\\n document.getElementById('lebar').innerHTML = lebar;\\n document.getElementById('screenH').innerHTML = screen_height;\\n document.getElementById('screenW').innerHTML = screen_width;\\n}\",\n \"function updatePosition(event) {\\n var xOffset = 20;\\n var yOffset = 10;\\n\\n var ttw = tt.style('width');\\n var tth = tt.style('height');\\n\\n var wscrY = window.scrollY;\\n var wscrX = window.scrollX;\\n\\n var curX = (document.all) ? event.clientX + wscrX : event.pageX;\\n var curY = (document.all) ? event.clientY + wscrY : event.pageY;\\n var ttleft = ((curX - wscrX + xOffset * 2 + ttw) > window.innerWidth) ?\\n curX - ttw - xOffset * 2 : curX + xOffset;\\n\\n if (ttleft < wscrX + xOffset) {\\n ttleft = wscrX + xOffset;\\n }\\n\\n var tttop = ((curY - wscrY + yOffset * 2 + tth) > window.innerHeight) ?\\n curY - tth - yOffset * 2 : curY + yOffset;\\n\\n if (tttop < wscrY + yOffset) {\\n tttop = curY + yOffset;\\n }\\n\\n tt\\n .style('top', tttop + 'px')\\n .style('left', ttleft + 'px');\\n }\",\n \"_updatePosition() {\\n var width = this.$element.outerWidth();\\n var outerWidth = $(window).width();\\n var height = this.$element.outerHeight();\\n var outerHeight = $(window).height();\\n var left, top;\\n if (this.options.hOffset === 'auto') {\\n left = parseInt((outerWidth - width) / 2, 10);\\n } else {\\n left = parseInt(this.options.hOffset, 10);\\n }\\n if (this.options.vOffset === 'auto') {\\n if (height > outerHeight) {\\n top = parseInt(Math.min(100, outerHeight / 10), 10);\\n } else {\\n top = parseInt((outerHeight - height) / 4, 10);\\n }\\n } else {\\n top = parseInt(this.options.vOffset, 10);\\n }\\n this.$element.css({top: top + 'px'});\\n // only worry about left if we don't have an overlay or we havea horizontal offset,\\n // otherwise we're perfectly in the middle\\n if(!this.$overlay || (this.options.hOffset !== 'auto')) {\\n this.$element.css({left: left + 'px'});\\n this.$element.css({margin: '0px'});\\n }\\n\\n }\",\n \"function c0_over_pgn( c0_s7, c0_s8 )\\r\\n{\\r\\nif(c0_s7!=c0_s8)\\r\\n\\t{\\r\\n\\tc0_pgnsize= c0_s7;\\r\\n\\tvar DIV1=document.getElementById('div-pgn');\\r\\n\\tDIV1.innerHTML=c0_PG_gettable(8);\\r\\n\\tif(c0_s7==10)\\r\\n\\t\\t{\\r\\n\\t if(c0_screensizeW>c0_screensizeH)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\tDIV1.style.top = 0+\\\"px\\\";\\r\\n\\t\\t\\tDIV1.style.left = (c0_screensizeW-102)+\\\"px\\\";\\r\\n\\t\\t\\t}\\r\\n\\t else\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\tDIV1.style.top = (c0_screensizeH-102)+\\\"px\\\"\\r\\n\\t\\t\\tDIV1.style.left = 0+\\\"px\\\";\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\tif(c0_s7==0 || c0_s7==1)\\r\\n\\t\\t{\\r\\n\\t\\tDIV1.style.top = 0+\\\"px\\\";\\r\\n\\t\\tDIV1.style.left = (c0_screensizeW-162)+\\\"px\\\";\\r\\n\\r\\n\\t\\tif(c0_dh>0 || c0_screensizeW -1 && sqx < 1) {\\n sqx = 0;\\n }\\n if (sqy > -1 && sqy < 1) {\\n sqy = 0;\\n }\\n id(\\\"info\\\").innerHTML = \\\"x: \\\" + sqx + \\\", y: \\\" + sqy + \\\"
w: \\\" + square.w / cellSize + \\\", h: \\\" + square.h / cellSize;\\n}\",\n \"function info_screen() {\\n var wf2d = window.frames[2].document;\\n if (screen_check_already_there('pmc_info_screen')) {\\n return screen_abort();\\n }\\n screen_prepare();\\n var ifr;\\n ifr = $('
\\\\\\n
\\\\\\n Press ESC or click here to dismiss.
\\\\\\n \\\\\\n
');\\n $('body > :first-child', wf2d).before(ifr);\\n ifr.attr('id', 'pmc_info_screen');\\n ifr.addClass('pmc_screen');\\n ifr.find('object').attr('data',\\n 'http://training.cat-europe.com/ShowQuestionInfo.aspx');\\n ifr.find('#dismiss').click(screen_abort);\\n return false;\\n}\",\n \"function info(title) {\\r\\n var text = \\\"...\\\"\\r\\n var string = \\\"\\\" + title + \\\"\\\";\\r\\n string += \\\"

\\\" + title + \\\"

\\\";\\r\\n string += \\\"

\\\" + dummy_text + \\\"

\\\";\\r\\n string += \\\"

\\\" + \\\"CLOSE\\\" + \\\"\\\";\\r\\n string += \\\"\\\";\\r\\n var popupWidth = 700;\\r\\n var popupHeight = 500;\\r\\n var left = (screen.width - popupWidth) / 2;\\r\\n var top = (screen.height - popupHeight) / 4;\\r\\n helpWindow = window.open('', 'id1', 'scrollbars=yes, left=' + left + ', top=' + top + ', width=' + popupWidth + ', height=' + popupHeight);\\r\\n helpWindow.document.open(\\\"text/html\\\");\\r\\n helpWindow.document.write(string);\\r\\n helpWindow.document.close();\\r\\n}\",\n \"function dispInfoModal(vid){\\n document.getElementById('infoModal').style.display='block';\\n mapspecific.resize();\\n mapspecific.flyTo({\\n center: trucks[0].pos\\n });\\n getTruckColSpec();\\n showTruckDetailsSpec(vid, \\\"mapspecific\\\");\\n showRoute(trucks[vid], \\\"mapspecific\\\");\\n}\",\n \"function initWnd() {\\n if (textWnd!=null && tocWnd!=null) {\\n return;\\n }\\n if (parent!=self) {\\n if (parent.frames.length>1 && parent.frames[0]==self) {\\n if (parent.frames[1].length>1 && parent.frames[1].FRAME_BODY!=null) {\\n // new UHB layout (BOOK: 1 + 2 frames)\\n textWnd = parent.frames[1].FRAME_BODY ;\\n tocWnd = parent.frames[1].FRAME_TOC ;\\n }\\n else {\\n // new UHB layout (HUB etc.: 2 frames)\\n textWnd = parent.frames[1] ;\\n tocWnd = null ;\\n }\\n }\\n }\\n}\",\n \"function show_tips(tips_el_id, storage_type, equipid)\\n{\\n\\tvar tips = $(tips_el_id);\\n\\ttips.style.display = \\\"block\\\";\\n\\tif (storage_type == StorageTypeEquip || storage_type == StorageTypeMoney)\\n\\t{\\n\\t\\tvar content_height = $(\\\"div_window1_\\\" + equipid).offsetHeight;\\n\\t\\tif (content_height < 130)\\n\\t\\t{\\n\\t\\t\\tcontent_height = 130;\\n\\t\\t}\\n\\t\\t$(\\\"div_show_window1_\\\" + equipid).style.height = content_height + 36 + \\\"px\\\";\\n\\t\\t$(\\\"div_show_window_in1_\\\" + equipid).style.height = content_height + 30 + \\\"px\\\";\\n\\t}\\n\\tvar tips_position = getAbsolutePos(tips);\\n\\tvar tips_y = tips_position.y + tips.offsetHeight;\\n\\t\\n\\tif (!tips.origin_top)\\n\\t{\\n\\t\\ttips.origin_top = tips_position.y;\\n\\t\\ttips.origin_left = tips_position.x;\\n\\t}\\n\\t\\n\\tvar windowHeight;\\n\\tif (self.innerHeight) \\n\\t{ \\n\\t\\twindowHeight = self.innerHeight;\\n\\t} else if (document.documentElement && document.documentElement.clientHeight) \\n\\t{ \\n\\t\\twindowHeight = document.documentElement.clientHeight;\\n\\t} else if (document.body) \\n\\t{\\n\\t\\twindowHeight = document.body.clientHeight;\\n\\t}\\n\\tvar test_position = tips.origin_top - 65 - document.getScroll().y - (windowHeight/2); \\n\\tvar tips_offset_down = tips.origin_top + 40 + tips.offsetHeight - document.getScroll().y - windowHeight;\\n\\n\\tvar tips_offset_up = document.getScroll().y - (tips.origin_top - tips.offsetHeight -130);\\n\\tif (test_position > 0) // down of winHeight/2\\n\\t{\\n\\t\\tif (tips_offset_up > 0)\\n\\t\\t{\\n\\t\\t\\ttips.style.top = tips.origin_top - tips.offsetHeight - 130 + tips_offset_up + 20 + \\\"px\\\";\\n\\t\\t}\\n\\t\\telse\\n\\t\\t{\\n\\t\\t\\ttips.style.top = tips.origin_top - tips.offsetHeight - 130 + \\\"px\\\"; \\n\\t\\t}\\n\\t}\\n\\telse\\n\\t{\\n\\t\\tif (tips_offset_down > 0)\\n\\t\\t{\\n\\t\\t\\ttips.style.top = tips.origin_top - tips_offset_down + \\\"px\\\"; \\n\\t\\t}\\n\\t\\telse\\n\\t\\t{\\n\\t\\t\\ttips.style.top = tips.origin_top + \\\"px\\\";\\n\\t\\t}\\n\\t}\\n\\n\\tif (document.all == undefined)\\n\\t{\\n\\t\\ttips.style.left = tips.origin_left + \\\"px\\\";\\n\\t}\\n\\t\\n}\",\n \"function updatePosition(event) {\\n var xOffset = 20;\\n var yOffset = 10;\\n \\n var ttw = tt.style('width');\\n var tth = tt.style('height');\\n \\n var wscrY = window.scrollY;\\n var wscrX = window.scrollX;\\n \\n var curX = (document.all) ? event.clientX + wscrX : event.pageX;\\n var curY = (document.all) ? event.clientY + wscrY : event.pageY;\\n \\n var ttleft = ((curX - wscrX + xOffset * 2 + ttw) > window.innerWidth) ?\\n curX - ttw - xOffset * 2 : curX + xOffset;\\n \\n if (ttleft < wscrX + xOffset) {\\n ttleft = wscrX + xOffset;\\n }\\n \\n var tttop = ((curY - wscrY + yOffset * 2 + tth) > window.innerHeight) ?\\n curY - tth - yOffset * 2 : curY + yOffset;\\n \\n if (tttop < wscrY + yOffset) {\\n tttop = curY + yOffset;\\n }\\n \\n tt.style(\\\"top\\\", tttop +\\\"px\\\")\\n tt.style(\\\"left\\\", ttleft + \\\"px\\\");\\n }\",\n \"function initHelpTxtPos() {\\n\\tdesign = mapConfig['menuDesign'];\\n\\n\\tif (design == \\\"topMenu\\\") {\\n\\t\\tinitHelpTextTopMenu();\\n\\t} else {\\n\\t\\tinitHelpTextSideMenu();\\n\\t}\\n}\",\n \"function makeInfoWindow(position, msg) {\\n // close old window if it exists\\n if (infoWindow) infoWindow.close();\\n\\n // make a new InfoWindow\\n infoWindow = new google.maps.InfoWindow({\\n map: map,\\n position: position,\\n\\n content: \\\"\\\" + msg + \\\"\\\"\\n });\\n}\",\n \"function createNewInfoWindow(coord, content){\\n // information window is displayed at click position\\n\\tmapCollector.infowindow = new google.maps.InfoWindow({\\n\\t \\tcontent: content,\\n\\t \\tposition: coord\\n\\t});\\n }\",\n \"function positionTextElements(){\\r\\n let numOfPanels = 3\\r\\n // find browser height and width.\\r\\n let browserHeight = $(window).height();\\r\\n // position map application\\r\\n let mapPosition = (numOfPanels + 2.3) * browserHeight\\r\\n if($(window).height() < 700){\\r\\n mapPosition = (numOfPanels + 2.7) * browserHeight\\r\\n }\\r\\n $('#mapPanel').css('top', mapPosition)\\r\\n\\r\\n // set height of static image panel\\r\\n let staticImageHeight = (numOfPanels + 2) * browserHeight;\\r\\n $('.sm-staticImagePanel').css('height', staticImageHeight);\\r\\n\\r\\n // position first floating text box\\r\\n let firstBox = parseInt((browserHeight * 1))\\r\\n $('.sm-floatingTextBox-1').css('top', firstBox)\\r\\n\\r\\n // position second floating text box\\r\\n let secondBox = parseInt((browserHeight * 2))\\r\\n $('.sm-floatingTextBox-2').css('top', secondBox)\\r\\n\\r\\n // position third floating text box\\r\\n let thirdBox = parseInt((browserHeight * 3))\\r\\n $('.sm-floatingTextBox-3').css('top', thirdBox)\\r\\n }\",\n \"function showXY(ev) {\\n\\tif (document.all) { ev = event; } \\n\\twindow.status = 'X: ' + ev.screenX + ' Y: ' + ev.screenY;\\n\\t}\",\n \"function onWinSize() { // 2463\\n\\t\\tjWindow.trigger('scrollSpy:winSize'); // 2464\\n\\t} // 2465\",\n \"onClick(event, bounds) {\\n // console.log('bounds - ', bounds.x, bounds.y);\\n // click event bounds (where status tray icon is located)...\\n const { x, y } = bounds;\\n // height/width dimensions of window itself; dynamically calculate bounds on the fly (and not hardcoded) so that it works even if user resizes window - will get updated height and width\\n const { height, width } = this.mainWindow.getBounds(); \\n\\n const yPosition = process.platform === 'darwin' ? y : (y - height);\\n // dynamically set pos of window (also dimensions)\\n this.mainWindow.setBounds({\\n x: x - (width / 2),\\n y: yPosition,\\n height,\\n width\\n });\\n // ^ set size of window before display it\\n // this.mainWindow.isAlwaysOnTop();\\n this.mainWindow.show();\\n\\n\\n // if (this.mainWindow.isVisible()){\\n \\n // this.mainWindow.hide();\\n // } else {\\n // const yPosition = process.platform === 'darwin' ? y : (y - height);\\n // // dynamically set pos of window (also dimensions)\\n // this.mainWindow.setBounds({\\n // x: x - (width / 2),\\n // y: yPosition,\\n // height,\\n // width\\n // });\\n // // ^ set size of window before display it\\n // // this.mainWindow.isAlwaysOnTop();\\n // this.mainWindow.show();\\n // }\\n }\",\n \"function dockNote(posTop,noteCard){\\n\\t\\t\\t var basePos = headerHeight + projBar.height() + workareaTop.height() + subnavHeight;\\n\\t\\t\\t var posLeft = getNoteLeftPos(noteCard);\\n\\t\\t\\t if($.browser.msie || $.browser.mozilla){\\n\\t\\t\\t\\t//posLeft +=9; \\n\\t\\t\\t }\\n\\t\\t\\tif(typeof(isxspacepage) !=\\\"undefined\\\") {\\n\\t\\t\\t\\tif(($.browser.msie == true && $.browser.version() > 6) || $.browser.msie == false){\\n\\t\\t\\t\\t\\tif ($.browser.safari) {\\n\\t\\t\\t\\t\\t\\tvar safPos = ((basePos - scrollY) + 36)\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\tnoteCard.css({position:\\\"fixed\\\",left:posLeft+\\\"px\\\",top:safPos +\\\"px\\\"});\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tvar safPos = ((basePos + 36))\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\tnoteCard.css({position:\\\"absolute\\\",left:posLeft+\\\"px\\\",top:safPos +\\\"px\\\"});\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tnoteCard.css({position:\\\"absolute\\\",left:posLeft+\\\"px\\\",top:posTop +\\\"px\\\"});\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif($.browser.safari){\\n\\t\\t\\t\\t\\tvar safPos = ((parseInt(basePos) - parseInt(scrollY)) + 36);\\n\\t\\t\\t\\t\\tnoteCard.css({position:\\\"fixed\\\",left:posLeft+\\\"px\\\",top:safPos +\\\"px\\\"});\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tnoteCard.css({position:\\\"absolute\\\",left:posLeft+\\\"px\\\",top:posTop +\\\"px\\\"});\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\t\\n\\t\\t }\",\n \"function at_show_aux(parent, child)\\n{\\n var p = document.getElementById(parent);\\n var c = document.getElementById(child );\\n\\n var top = (c[\\\"at_position\\\"] == \\\"y\\\") ? p.offsetHeight+2 : 0;\\n var left = (c[\\\"at_position\\\"] == \\\"x\\\") ? p.offsetWidth +2 : 0;\\n\\n for (; p; p = p.offsetParent)\\n {\\n top += p.offsetTop;\\n left += p.offsetLeft;\\n }\\nvar winW = 630, winH = 460;\\n\\nif (parseInt(navigator.appVersion)>3) {\\n if (navigator.appName==\\\"Netscape\\\") {\\n winW = window.innerWidth;\\n winH = window.innerHeight;\\n }\\n if (navigator.appName.indexOf(\\\"Microsoft\\\")!=-1) {\\n winW = document.body.offsetWidth;\\n winH = document.body.offsetHeight;\\n }\\n}\\n//left=winW/2-250;\\n c.style.position = \\\"absolute\\\";\\n //c.style.width = '200' +'px';\\n c.style.top = top +'px';\\n \\n try{\\n if (menu_bang == 1)\\n {\\n\\t // alert(document.getElementById('div_body_noidung').style.left);\\n // c.style.left = document.getElementById('div_body_noidung').style.left;\\n //alert(c.style.left);\\n }\\n }catch(e){\\n c.style.left = left+'px';\\n\\t }\\n c.style.visibility = \\\"visible\\\";\\n \\n }\",\n \"function coordinates(){\\n $('.info-top').html(posY);\\n $('.info-left').html(posX);\\n }\",\n \"function fixordervindow(doc)\\n{\\n if (window.name === \\\"orderWindow\\\") {\\n console.info(\\\"Avanza Orderwindow\\\");\\n window.resizeTo(858,774);\\n let azaheader=doc.getElementsByTagName(\\\"aza-header\\\")[0];\\n let azamenu=doc.getElementsByTagName(\\\"aza-menu\\\")[0];\\n let azapmenu=doc.getElementsByTagName(\\\"aza-personal-menu\\\")[0];\\n let azafooter=doc.getElementsByTagName(\\\"aza-footer\\\")[0];\\n\\n azaheader.style.display=\\\"none\\\";\\n azamenu.style.display=\\\"none\\\";\\n azapmenu.style.display=\\\"none\\\";\\n azafooter.style.display=\\\"none\\\";\\n }\\n}\",\n \"function aboutIconClick() {\\n\\tvar x = document.getElementById('aboutmewindow');\\n\\tx.style.display = \\\"block\\\";\\n\\n\\t// makes current window the top window\\n\\tvar windows = document.getElementsByClassName('drsElement');\\n\\tvar i = windows.length;\\n\\twhile (i--) {\\n\\t\\twindows[i].style.zIndex = \\\"3\\\";\\n\\t}\\n\\tx.style.zIndex = \\\"4\\\";\\n\\tx.focus();\\n}\",\n \"function onMouseMove(sender, shift, x, y){\\t\\n\\tif (!this.designMode){return};\\n\\t/*if (ssShift in Shift){\\n\\t\\tx = Math.round(x / 8)*8;\\n\\t\\ty = Math.round(y / 8)*8;\\n\\t};\\n*/\\n\\t//MainForm.Caption = shift % 2 == 0 ? 8 : 0;\\n\\thint.x = getCursorPos().x + this.w - x + 10;\\n \\thint.y = getCursorPos().y - y + 10; \\t\\n\\tvar border = 5;\\n\\n\\tvar gridStep = shift % 2 == 0 ? 10 : 1\\n\\tfunction grid(val){\\n\\t\\treturn Math.round(val / gridStep) * gridStep;\\n\\t};\\n\\n\\n\\n\\n\\t//global.s = sender;\\n\\tif (!d){\\n\\t\\thorRes = 0;\\n\\t\\tif (x < border){\\n\\t\\t\\thorRes = -1;\\n\\t\\t};\\n\\t\\tif (this.w - x < border){\\n\\t\\t\\thorRes = 1;\\n\\t\\t};\\n\\t\\tvertRes = 0;\\n\\t\\tif (y < border){\\n\\t\\t\\tvertRes = -1;\\n\\t\\t};\\n\\t\\tif (this.h - y < border){\\n\\t\\t\\tvertRes = 1;\\n\\t\\t};\\n\\t};\\n\\t//form.mainForm.label = (horRes)+':'+(vertRes);\\n\\n\\tx = grid(x);\\n\\ty = grid(y);\\n\\tglobal.q = this;\\n\\n\\tif (vertRes != 0 && horRes == 0){\\n\\t\\tsender.Cursor = enums.cursor.crSizeNS;\\n\\t};\\n\\tif (vertRes == 0 && horRes != 0){\\n\\t\\tsender.Cursor = enums.cursor.crSizeWE;\\n\\t};\\n\\tif (vertRes == horRes && Math.abs(horRes) == 1){\\n\\t\\tsender.Cursor = enums.cursor.crSizeNWSE;\\n\\t};\\n\\tif (vertRes == -horRes && Math.abs(horRes) == 1){\\n\\t\\tsender.Cursor = enums.cursor.crSizeNESW;\\n\\t};\\n\\tif (vertRes == horRes && horRes == 0){\\n\\t\\tsender.Cursor = enums.cursor.crSizeAll;\\n\\t};\\n\\n\\n\\tif (!d){\\n\\t\\treturn;\\n\\t};\\n\\tif (vertRes == horRes && horRes == 0){\\n\\t\\tthis.x = grid(this.x - sx + x);\\n\\t\\tthis.y = grid(this.y - sy + y);\\n\\t};\\n\\n\\tif (vertRes == 1){\\n\\t\\tthis.h = grid(y);\\n\\t};\\n\\n\\tif (horRes == 1){\\n\\t\\tthis.w = grid(x);\\n\\t};\\n\\n\\tif (vertRes == -1){\\n\\t\\t//MainForm.Caption = grid(y);\\n\\t\\tthis.h = grid(this.h - y);\\n\\t\\tthis.y = grid(this.y + y);\\n\\t};\\n\\tif (horRes == -1){\\n\\t\\tthis.w = grid(this.w - x);\\n\\t\\tthis.x = grid(this.x + x);\\n\\t};\\n\\n\\tif (vertRes == horRes && horRes == 0){\\n\\t\\thint.label = '(' + this.x + '; ' + this.y + ')';\\t\\n\\t}else{\\n\\t\\thint.label = '(' + this.w + '; ' + this.h + ')';\\n\\t};\\n\\thint._.Refresh();\\n}\",\n \"function closeInfoWindow() {\\n \\n vm.infoWindowVisible(false);\\n\\n if (isMobile) {\\n var iw = $('.info-window');\\n iw.css('top', '');\\n iw.css('height', '');\\n iw.css('overflow', '');\\n }\\n\\n}\",\n \"function updateTopPanel() {\\n let isPlayer = g_ViewedPlayer > 0;\\n\\n let civIcon = Engine.GetGUIObjectByName(\\\"civIcon\\\");\\n civIcon.hidden = !isPlayer;\\n if (isPlayer) {\\n civIcon.sprite =\\n \\\"stretched:\\\" + g_CivData[g_Players[g_ViewedPlayer].civ].Emblem;\\n Engine.GetGUIObjectByName(\\\"civIconOverlay\\\").tooltip = sprintf(\\n translate(\\n \\\"%(civ)s\\\\n%(hotkey_civinfo)s / %(hotkey_structree)s: View History / Structure Tree\\\\nLast opened will be reopened on click.\\\"\\n ),\\n {\\n civ: setStringTags(g_CivData[g_Players[g_ViewedPlayer].civ].Name, {\\n font: \\\"sans-bold-stroke-14\\\"\\n }),\\n hotkey_civinfo: colorizeHotkey(\\\"%(hotkey)s\\\", \\\"civinfo\\\"),\\n hotkey_structree: colorizeHotkey(\\\"%(hotkey)s\\\", \\\"structree\\\")\\n }\\n );\\n }\\n\\n // Following gaia can be interesting on scripted maps\\n Engine.GetGUIObjectByName(\\\"optionFollowPlayer\\\").hidden =\\n !g_IsObserver || g_ViewedPlayer == -1;\\n\\n let viewPlayer = Engine.GetGUIObjectByName(\\\"viewPlayer\\\");\\n viewPlayer.hidden = !g_IsObserver && !g_DevSettings.changePerspective;\\n\\n let followPlayerLabel = Engine.GetGUIObjectByName(\\\"followPlayerLabel\\\");\\n followPlayerLabel.hidden =\\n Engine.GetTextWidth(\\n followPlayerLabel.font,\\n followPlayerLabel.caption + \\\" \\\"\\n ) +\\n followPlayerLabel.getComputedSize().left >\\n viewPlayer.getComputedSize().left;\\n\\n let resCodes = g_ResourceData.GetCodes();\\n let resNames = g_ResourceData.GetNames();\\n Engine.GetGUIObjectByName(\\\"resourceFood\\\").hidden = true;\\n let r = 0;\\n for (let res of resCodes) {\\n if (!Engine.GetGUIObjectByName(\\\"resource[\\\" + r + \\\"]\\\")) {\\n warn(\\n \\\"Current GUI limits prevent displaying more than \\\" +\\n r +\\n \\\" resources in the top panel!\\\"\\n );\\n break;\\n }\\n Engine.GetGUIObjectByName(\\\"resource[\\\" + r + \\\"]_icon\\\").sprite =\\n \\\"stretched:session/icons/resources/\\\" + res + \\\".png\\\";\\n Engine.GetGUIObjectByName(\\\"resource[\\\" + r + \\\"]\\\").hidden = !isPlayer;\\n if (res == \\\"food\\\") {\\n Engine.GetGUIObjectByName(\\\"resource[\\\" + r + \\\"]\\\").onPress = function() {\\n // we toogle the subresources panel\\n let subResourcePanelVisibility = Engine.GetGUIObjectByName(\\n \\\"resourceFood\\\"\\n ).hidden;\\n subResourcePanelVisibility = !subResourcePanelVisibility;\\n Engine.GetGUIObjectByName(\\n \\\"resourceFood\\\"\\n ).hidden = subResourcePanelVisibility;\\n };\\n }\\n ++r;\\n }\\n let arySub = [];\\n let arySub2 = [];\\n for (let res2 in resNames) {\\n arySub.push(res2);\\n }\\n arySub.forEach(name => {\\n if (\\n name !== \\\"stone\\\" &&\\n name !== \\\"wood\\\" &&\\n name !== \\\"metal\\\" &&\\n name !== \\\"rock\\\" &&\\n name !== \\\"ruins\\\" &&\\n name !== \\\"tree\\\" &&\\n name !== \\\"food\\\" &&\\n name !== \\\"ore\\\" &&\\n name !== \\\"money\\\" &&\\n name !== \\\"well\\\"\\n ) {\\n arySub2.push(name);\\n }\\n });\\n let r2 = 0;\\n for (let res of arySub2) {\\n //error(res);\\n Engine.GetGUIObjectByName(\\\"resourceFood[\\\" + r2 + \\\"]_icon\\\").sprite =\\n \\\"stretched:session/icons/resources/\\\" + res + \\\".png\\\";\\n Engine.GetGUIObjectByName(\\\"resourceFood[\\\" + r2 + \\\"]\\\").hidden = false;\\n ++r2;\\n }\\n function horizontallySpaceObjectsCustom(parentName, margin = 0) {\\n let objects = Engine.GetGUIObjectByName(parentName).children;\\n let numb = 0;\\n\\n for (let i = 0; i < objects.length; ++i) {\\n if (i == 0 || i == 1) continue;\\n numb += 75;\\n let size = objects[i].size;\\n let width = size.right - size.left;\\n\\n size.left = numb;\\n size.right = 1000;\\n objects[i].size = size;\\n }\\n }\\n\\n horizontallySpaceObjects(\\\"resourceCounts\\\", 5);\\n\\n horizontallySpaceObjectsCustom(\\\"resourceFood\\\");\\n\\n hideRemaining(\\\"resourceCounts\\\", r);\\n\\n let resPop = Engine.GetGUIObjectByName(\\\"population\\\");\\n let resPopSize = resPop.size;\\n resPopSize.left = Engine.GetGUIObjectByName(\\n \\\"resource[\\\" + (r - 1) + \\\"]\\\"\\n ).size.right;\\n resPop.size = resPopSize;\\n\\n Engine.GetGUIObjectByName(\\\"population\\\").hidden = !isPlayer;\\n Engine.GetGUIObjectByName(\\\"diplomacyButton\\\").hidden = !isPlayer;\\n Engine.GetGUIObjectByName(\\\"economyButton\\\").hidden = !isPlayer;\\n //Engine.GetGUIObjectByName(\\\"economyButton\\\").hidden = !isPlayer;\\n Engine.GetGUIObjectByName(\\\"observerText\\\").hidden = isPlayer;\\n\\n let alphaLabel = Engine.GetGUIObjectByName(\\\"alphaLabel\\\");\\n alphaLabel.hidden = isPlayer && !viewPlayer.hidden;\\n alphaLabel.size = isPlayer ? \\\"50%+44 0 100%-283 100%\\\" : \\\"155 0 85%-279 100%\\\";\\n\\n Engine.GetGUIObjectByName(\\\"pauseButton\\\").enabled =\\n !g_IsObserver || !g_IsNetworked || g_IsController;\\n Engine.GetGUIObjectByName(\\\"menuResignButton\\\").enabled = !g_IsObserver;\\n Engine.GetGUIObjectByName(\\\"lobbyButton\\\").enabled = Engine.HasXmppClient();\\n}\",\n \"function lynked_findPos(obj) {\\n\\tvar curtop = 0;\\n\\tlynked_windowHeight = Math.round(window.innerHeight);\\n\\tlynked_windowCenter = lynked_windowHeight / 2;\\n\\tif (obj.offsetParent) {\\n\\t\\tdo {\\n\\t\\t\\tcurtop += obj.offsetTop;\\n\\t\\t} while (obj = obj.offsetParent);\\n\\tcurtop = Math.round(curtop) - lynked_windowCenter;\\n\\tlynked_selectedCont.push(curtop);\\n//\\t//console.log(\\\"curleft,curtop----\\\"+curtop)\\n\\t}\\n}\",\n \"function positionMapTools(){\\r\\n\\t//deprecated...\\t\\r\\n}\",\n \"function t() {\\n //$content.css('paddingTop', $pageMaskee.height());\\n y.height(h.height()).width(h.width());\\n }\",\n \"function popUp(win_name, loc, w, h, menubar, center) {\\n\\tvar NS = (document.layers) ? 1 : 0;\\n\\tvar editorWin;\\n\\tif (w == null) {\\n\\t\\tw = 500;\\n\\t}\\n\\tif (h == null) {\\n\\t\\th = 350;\\n\\t}\\n\\tif (menubar == null || menubar == false) {\\n\\t\\tmenubar = \\\"\\\";\\n\\t} else {\\n\\t\\tmenubar = \\\"menubar,\\\";\\n\\t}\\n\\tif (center == 0 || center == false) {\\n\\t\\tcenter = \\\"\\\";\\n\\t} else {\\n\\t\\tcenter = true;\\n\\t}\\n\\tif (NS) {\\n\\t\\tw += 50;\\n\\t}\\n\\tif (center == true) {\\n\\t\\tvar sw = screen.width;\\n\\t\\tvar sh = screen.height;\\n\\t\\tif (w > sw) {\\n\\t\\t\\tw = sw;\\n\\t\\t}\\n\\t\\tif (h > sh) {\\n\\t\\t\\th = sh;\\n\\t\\t}\\n\\t\\tvar curleft = (sw - w) / 2;\\n\\t\\tvar curtop = (sh - h - 100) / 2;\\n\\t\\tif (curtop < 0) {\\n\\t\\t\\tcurtop = (sh - h) / 2;\\n\\t\\t}\\n\\t\\teditorWin = window.open(loc, win_name, \\\"resizable=no,scrollbars,width=\\\" + w + \\\",height=\\\" + h + \\\",left=\\\" + curleft + \\\",top=\\\" + curtop);\\n\\t} else {\\n\\t\\teditorWin = window.open(loc, win_name, menubar + \\\"resizable=no,scrollbars,width=\\\" + w + \\\",height=\\\" + h);\\n\\t}\\n\\teditorWin.focus(); //causing intermittent errors\\n}\",\n \"function getMousePosition(e)\\r\\n{\\r\\n // Recherche de la position\\r\\n if (nava)\\r\\n {\\r\\n mouseX = e.pageX ;\\r\\n mouseY = e.pageY ;\\r\\n }\\r\\n else if (iex)\\r\\n {\\r\\n mouseX = window.event.x + document.body.scrollLeft;\\r\\n mouseY = window.event.y + document.body.scrollTop;\\r\\n }\\r\\n else if (dom)\\r\\n {\\r\\n mouseX = e.pageX ;\\r\\n mouseY = e.pageY ;\\r\\n }\\r\\n // FIN Recherche de la position\\r\\n\\r\\n // Leger decalage pour ne pas rester sous le pointeur de la souris\\r\\n mouseX += 20;\\r\\n \\r\\n\\r\\n // Car on ne sait jamais...\\r\\n if (mouseX < 0) mouseX = 0;\\r\\n if (mouseY < 0) mouseY = 0;\\r\\n\\r\\n // Deplacement du DIV d'information\\r\\n //var style = $('info_div').getStyle();\\r\\n //style.left = mouseX+\\\"px\\\";\\r\\n //style.top = mouseY+\\\"px\\\";\\r\\n $('info_div').setStyle({left:mouseX+\\\"px\\\",top:mouseY+\\\"px\\\"});\\r\\n\\r\\n return true;\\r\\n}\",\n \"function imageEditorInfoBox (msg) {\\r\\n $('#imageEditorCaption').show();\\r\\n if ($.browser.msie)\\r\\n $('#imageEditorCaption').width($('#imageEditorRight #imageEditorPreview').width());\\r\\n else\\r\\n $('#imageEditorCaption').width($('#imageEditorRight #imageEditorPreview').width() - 10);\\r\\n $('#imageEditorInfo').html(zetaprints_trans(msg));\\r\\n $('#imageEditorInfo').show('fast', function () {\\r\\n var cw = 0;\\r\\n $('#imageEditorCaption span').each( function () {\\r\\n cw += $(this).width();\\r\\n });\\r\\n if (cw < 280)\\r\\n cw = 280;\\r\\n if ($('#imageEditorRight #imageEditorPreview').width() < cw) {\\r\\n $('#imageEditorCaption').width(cw);\\r\\n imageEditorApplySize(cw, $('#imageEditorRight #imageEditorPreview').height());\\r\\n }\\r\\n });\\r\\n }\",\n \"function makePopUpVisible(i) {\\n\\n var w = $(window).width(); \\n var h = $(window).height();\\n var d = document.getElementById('resize_div'+ i);\\n var divW = $(d).width();\\n var divH = $(d).height();\\n \\n if(i=='_Desktop')\\n d.style.top = (h / 2) - (divH / 2) - 80 + \\\"px\\\";\\n else\\n d.style.top = (h / 2) - (divH / 2) - 50 + \\\"px\\\";\\n\\n d.style.left = (w / 2) - (divW / 2) + \\\"px\\\"; \\n d.style.visibility = \\\"visible\\\"; \\n }\",\n \"function openWin($target_id) {\\n let scrollVal = $(this).scrollTop(); //頁面滾動的高度\\n let winHei = $(document).height(); //文件高度\\n let screenHei = $(window).height(); //瀏覽器高度\\n // console.log(scrollVal);\\n // console.log(screenHei);\\n // console.log(winHei);\\n\\n // 作用:防止作品視窗在document以下做開啟,始之維持在document原始高度中開啟\\n if ($(document).height() > scrollVal + screenHei) {\\n\\n addClass(\\\".work_hide\\\", \\\"fixWindow\\\");\\n document.getElementById($target_id).style.top =\\n scrollVal + screenHei * 0.03 + \\\"px\\\";\\n // scrollVal - screenHei + screenHei * 0.1 * 0.2 + \\\"px\\\";\\n document.getElementById($target_id).style.display = \\\"block\\\";\\n \\n } else {\\n\\n addClass(\\\".work_hide\\\", \\\"fixWindow\\\");\\n document.getElementById($target_id).style.top =\\n scrollVal - screenHei + \\\"px\\\";\\n document.getElementById($target_id).style.display = \\\"block\\\";\\n \\n }\\n}\",\n \"function FindCenterforCommentsWindow()\\n{\\n\\tvar retval = new Object()\\n\\tretval.X = (screen.width/2) - 275;\\n\\tretval.Y = (screen.height/2) - 175;\\n\\treturn retval\\n}\",\n \"function compatibility() {\\n /* Logon */\\n $('#title_settings').parent()\\n .css('display', 'block')\\n .css('postion', 'relative');\\n\\n $('#title_settings').css('postion', 'absulute')\\n .css('width', '65px')\\n .css('height','20px')\\n .css('margin', '8px auto auto auto');\\n }\",\n \"function starting() {\\n\\tvar hpos = window.screenX;\\n\\tvar vpos = window.screenY;\\n\\talert (\\\"tonterias\\\");\\n\\talert( window.heigth +\\\",\\\"+ window.width );\\n\\twindow.resizeTo( resh, resv);\\n\\twindow.moveTo( hpos, vpos );\\n\\t\\n}\",\n \"function NNResize()\\n{\\n var popWin = Top().SWEPopupWin;\\n var screenX = SWEGetAvailScreenWidth();\\n var screenY = SWEGetAvailScreenHeight(); \\n var bSafari = false;\\n \\n if (navigator.userAgent.indexOf(\\\"Safari\\\") >= 0)\\n bSafari = true;\\n\\n if ((popWin == null) || (popWin.closed))\\n popWin = window;\\n\\n popWin.scrollTo(10000,10000);\\n\\n if (navigator.userAgent.indexOf(\\\"Mozilla/5.0\\\") >= 0) \\n {\\n // Ported this fix from 7.5.3,\\n // fix for defect 12-FTAGAQ and 12-FS6ESU\\n // In NS 7.0x, sizeToContent() doesnt work, and there's following problems:\\n // 1) window.pageYOffset + window.content.innerHeight != window.document.height\\n // 2) window.innerHeight > window.outerHeight\\n // 3) resizeTo(..., window.document.height + window.outerHeight - window.innerHeight) doesn't fit to content\\n\\n //FR 12-1EXWTY9 before resize needs to move window since safari will NOT allow resize beyond screen\\n var winX = popWin.screenX;\\n var winY = popWin.screenY;\\n if (bSafari)\\n { \\n popWin.moveTo(0,0);\\n }\\n\\t\\t\\n // fix 1) and 2), start with tall window\\t\\n window.resizeBy(0, 400);\\n var offX = window.pageXOffset;\\n var newY = window.document.height + window.outerHeight - window.innerHeight;\\n \\n if (offX > screenX - window.outerWidth)\\n {\\n offX = screenX - window.outerWidth; \\n }\\n //CR 12-J1RBUM. If a window's vertical size is smaller than 180 then in Mozilla and netscape\\n //the horizontal scrollbar (bottom of the window) is clipped. So have 180 as the lower bound\\n //for the size - amohole\\n if(newY < 180)\\n {\\n newY = 180;\\n }\\n if (newY > screenY)\\n {\\n newY = screenY;\\n }\\n\\n window.resizeTo(offX+window.outerWidth, newY);\\n \\n //fix 3)\\n window.scrollTo(0,10000);\\n if(window.pageYOffset > 0)\\n {\\n window.resizeBy(0, window.pageYOffset);\\n }\\n\\n if (bSafari)\\n {\\n popWin.moveTo(winX, winY);\\n }\\n\\n }\\n else\\n {\\n var offX = window.pageXOffset;\\n var offY = window.pageYOffset; \\n\\n if (offX > screenX - window.outerWidth)\\n offX = screenX - window.outerWidth; \\n if (offY > screenY - window.outerHeight)\\n offY = screenY - window.outerHeight;\\n\\n window.resizeBy (offX, offY);\\n }\\n popWin.moveTo (Math.floor((screenX-window.outerWidth) / 2), \\n Math.floor((screenY-window.outerHeight) / 2) );\\n}\",\n \"function writeMiniWindow() {\\n\\t\\tvar mapWidth = document.getElementById(MAP).clientWidth * this.xRate;\\n\\t\\tvar mapHeight = document.getElementById(MAP).clientHeight * this.yRate;\\n\\t\\tvar scl = document.getElementById(MAP).scrollLeft * this.xRate;\\n\\t\\tvar sct = document.getElementById(MAP).scrollTop * this.yRate;\\n\\t\\tvar mw = document.createElement(\\\"v:rect\\\");\\n\\t\\tmw.setAttribute(\\\"id\\\", MINIWINDOW + \\\"_up\\\");\\n\\t\\tvar mwsp = document.getElementById(MINIMAP).appendChild(mw);\\n\\t\\tmwsp.style.position = \\\"absolute\\\";\\n\\t\\tmwsp.style.left = 0;\\n\\t\\tmwsp.style.top = 0;\\n\\t\\tmwsp.style.width = this.side;\\n\\t\\tmwsp.style.height = sct;\\n\\t\\tmwsp.fill.type = \\\"solid\\\";\\n\\t\\tmwsp.fill.color = \\\"#003366\\\";\\n\\t\\tmwsp.fill.opacity = \\\"20%\\\";\\n\\t\\tmwsp.stroked = \\\"false\\\";\\n\\t\\tmw = document.createElement(\\\"v:rect\\\");\\n\\t\\tmw.setAttribute(\\\"id\\\", MINIWINDOW + \\\"_left\\\");\\n\\t\\tmwsp = document.getElementById(MINIMAP).appendChild(mw);\\n\\t\\tmwsp.style.position = \\\"absolute\\\";\\n\\t\\tmwsp.style.left = 0;\\n\\t\\tmwsp.style.top = sct;\\n\\t\\tmwsp.style.width = scl;\\n\\t\\tmwsp.style.height = this.side;\\n\\t\\tmwsp.fill.type = \\\"solid\\\";\\n\\t\\tmwsp.fill.color = \\\"#003366\\\";\\n\\t\\tmwsp.fill.opacity = \\\"20%\\\";\\n\\t\\tmwsp.stroked = \\\"false\\\";\\n\\t\\tmw = document.createElement(\\\"v:rect\\\");\\n\\t\\tmw.setAttribute(\\\"id\\\", MINIWINDOW + \\\"_right\\\");\\n\\t\\tmwsp = document.getElementById(MINIMAP).appendChild(mw);\\n\\t\\tmwsp.style.position = \\\"absolute\\\";\\n\\t\\tmwsp.style.left = scl + mapWidth;\\n\\t\\tmwsp.style.top = sct;\\n\\t\\tmwsp.style.width = this.side;\\n\\t\\tmwsp.style.height = this.side;\\n\\t\\tmwsp.fill.type = \\\"solid\\\";\\n\\t\\tmwsp.fill.color = \\\"#003366\\\";\\n\\t\\tmwsp.fill.opacity = \\\"20%\\\";\\n\\t\\tmwsp.stroked = \\\"false\\\";\\n\\t\\tmw = document.createElement(\\\"v:rect\\\");\\n\\t\\tmw.setAttribute(\\\"id\\\", MINIWINDOW + \\\"_bottom\\\");\\n\\t\\tmwsp = document.getElementById(MINIMAP).appendChild(mw);\\n\\t\\tmwsp.style.position = \\\"absolute\\\";\\n\\t\\tmwsp.style.left = scl;\\n\\t\\tmwsp.style.top = sct + mapHeight;\\n\\t\\tmwsp.style.width = mapWidth;\\n\\t\\tmwsp.style.height = this.side;\\n\\t\\tmwsp.fill.type = \\\"solid\\\";\\n\\t\\tmwsp.fill.color = \\\"#003366\\\";\\n\\t\\tmwsp.fill.opacity = \\\"20%\\\";\\n\\t\\tmwsp.stroked = \\\"false\\\";\\n\\t\\tmw = document.createElement(\\\"v:rect\\\");\\n\\t\\tmw.setAttribute(\\\"id\\\", MINIWINDOW);\\n\\t\\tmwsp = document.getElementById(MINIMAP).appendChild(mw);\\n\\t\\tmwsp.style.position = \\\"absolute\\\";\\n\\t\\tmwsp.style.left = scl;\\n\\t\\tmwsp.style.top = sct;\\n\\t\\tmwsp.style.cursor = \\\"move\\\";\\n\\t\\tvar maxWidth = this.side - 9;\\n\\t\\tmwsp.style.width = mapWidth > maxWidth ? maxWidth : mapWidth;\\n\\t\\tmwsp.style.height = mapHeight > maxWidth ? maxWidth : mapHeight;\\n\\t\\tmwsp.fill.type = \\\"solid\\\";\\n\\t\\tmwsp.fill.color = \\\"#003366\\\";\\n\\t\\tmwsp.fill.opacity = \\\"0%\\\";\\n\\t\\tmwsp.strokeColor = \\\"#003366\\\";\\n\\t}\",\n \"function windowHW() {\\n return window.innerHeight>window.innerWidth?window.innerWidth:window.innerHeight-20;\\n}\",\n \"function SmartInfoWindow(opts\\n\\t\\t\\t\\t\\t\\t)\\n{\\n\\tgoogle.maps.OverlayView.call(this);\\n\\tthis.content_ = opts.content;\\n\\tthis.map_ = opts.map;\\n\\tthis.setMap(this.map_);\\n\\t\\n\\t// We need to listen to bounds_changed event so that we can redraw\\n\\t// absolute position every time the map moves.\\n\\t// This is only needed because we append to body instead of map panes.\\n\\tvar me = this;\\n\\tgoogle.maps.event.addListener(this.map_, 'bounds_changed', function() {me.draw();});\\n}\",\n \"function show_info(txt)\\r\\n{\\r\\n\\t//alert(txt);\\r\\n $('info_div').show();// = 'shown';\\r\\n //var info_style = \\r\\n $('info_div').setStyle({left:mouseX+\\\"px\\\",top:mouseY+\\\"px\\\"});\\r\\n //info_style.left = mouseX+\\\"px\\\";\\r\\n //info_style.top = mouseY+\\\"px\\\";\\r\\n $('info_div').update(txt);\\r\\n}\",\n \"function gwmap_indicate_position(whichMap, posX, posY, width, height, zoom)\\r\\n{\\r\\n // use default values for width and height of not passed\\r\\n if (!width) width='300px';\\r\\n if (!height) height='300px';\\r\\n // add timestamp to div id to make sure we have a unique identifier\\r\\n var divId = 'gwmap_' + new Date().getTime();\\r\\n // output the div we use to display the map\\r\\n document.write('
');\\r\\n // create map object and attach\\r\\n mapObj = new GWMap(divId, whichMap, zoom, posX, posY);\\r\\n mapObj.indicatePosition(posX, posY);\\r\\n}\",\n \"function bottomLeftTwoThirdHeight() {\\n let window = Window.focused();\\n\\n if (window) {\\n let screen = window.screen().flippedVisibleFrame();\\n let oneThirdScreenHeight = screen.height / 3;\\n let twoThirdScreenHeight = oneThirdScreenHeight * 2;\\n let halfScreenWidth = screen.width / 2;\\n\\n window.setTopLeft({\\n x: screen.x,\\n y: oneThirdScreenHeight + 24,\\n });\\n\\n window.setSize({\\n height: twoThirdScreenHeight,\\n width: halfScreenWidth,\\n });\\n }\\n}\",\n \"function refreshMapPosition() {\\n //alert(\\\"on Map\\\");\\n roeMapNLCD.resize();\\n roeMapNLCD.reposition();\\n }\",\n \"function recarga() {\\n var bodyRect = document.body.getBoundingClientRect();\\n var v = document.getElementById('up').getBoundingClientRect();\\n var offset = v.top - bodyRect.top - 100;\\n window.name = offset;\\n}\",\n \"function popupWindow(addr,popname,w,h,features) {\\r\\n var winl = (screen.width-w)/2;\\r\\n var wint = (screen.height-h)/2;\\r\\n if (winl < 0) winl = 0;\\r\\n if (wint < 0) wint = 0;\\r\\n var settings = 'height=' + h + ',';\\r\\n settings += 'width=' + w + ',';\\r\\n settings += 'top=' + wint + ',';\\r\\n settings += 'left=' + winl + ',';\\r\\n settings += features;\\r\\n win = window.open(addr,popname,settings);\\r\\n win.window.focus();\\r\\n}\",\n \"function adjustInfoWindowContent_closeclick(oInfoWindow)\\r\\n{\\r\\n\\r\\n\\t//document.getElementById(\\\"editorContent\\\").style.height = \\\"90px\\\";\\r\\n\\tvar eUL_Tabs;\\r\\n\\tif(NSGlobal.bIE)\\r\\n\\t{\\r\\n\\t\\teUL_Tabs = NSFunctions.getElementsByName('tabs_ul_windowGUID_' + oInfoWindow.get(\\\"id\\\"))[0];\\r\\n\\r\\n\\t}\\r\\n\\telse\\r\\n\\t{\\r\\n\\t\\teUL_Tabs = document.getElementsByName('tabs_ul_windowGUID_' + oInfoWindow.get(\\\"id\\\"))[0];\\r\\n\\t}\\r\\n\\r\\n\\tif(NSGlobal.bFireFox)\\r\\n\\t{\\r\\n\\t\\tif(eUL_Tabs)\\r\\n\\t\\t{\\r\\n\\t\\t\\teUL_Tabs.style.width = \\\"\\\";\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\r\\n\\treturn;\\r\\n\\r\\n}\",\n \"function magicIconClick() {\\n\\tvar x = document.getElementById('magic8ballwindow');\\n\\tx.style.display = \\\"block\\\";\\n\\n\\t// makes current window the top window\\n\\tvar windows = document.getElementsByClassName('drsElement');\\n\\tvar i = windows.length;\\n\\twhile (i--) {\\n\\t\\twindows[i].style.zIndex = \\\"3\\\";\\n\\t}\\n\\tx.style.zIndex = \\\"4\\\";\\n\\tx.focus();\\n}\",\n \"function positionPopupDiv(method){\\n if(!popupDiv) return;\\n\\n var winW = 630, winH = 460;\\n t = document.getElementById(currentElement);\\n var windowSize = getWindowSize();\\n var scroll = getScrollOfWindow();\\n winW = windowSize.width;\\n winH = windowSize.height;\\n //21610649 the fifth position strategy.\\n var centre =false;\\n width=popupDiv.style.width;\\n height=popupDiv.style.height;\\n popupDiv.style.position= 'absolute';\\n //bug 8843840 \\n var xp = findPosLeftX(t);\\n var yp = findPosTopY(t);\\n var popupWinW =parseInt(xp)+parseInt(width);\\n var popupWinH =parseInt(yp)+parseInt(height);\\n \\n //clear left margin \\n var showNotch = popupDiv.getAttribute(\\\"shownotch\\\") ; \\n popupDiv.style.marginLeft = \\\"\\\" ;\\n // Bug 8716339: If bidi session, change the calculation of the popup left\\n if (isBiDi())\\n {\\n if (parseInt(width) < xp || popupWinW > winW) //show popup on the left of fireing\\n {\\n if(parseInt(width) < xp+10)\\n {\\n popupDiv.style.left=(parseInt(xp)-(parseInt(width) /*- parseInt(t.offsetWidth) */ ))+\\\"px\\\"; // right\\n }\\n else\\n centre = true;\\n popupDiv.xDir = \\\"right\\\"; \\n if (showNotch) popupDiv.style.marginLeft = ( (parseInt(width) /2 + parseInt(t.offsetWidth) / 2 )) + \\\"px\\\" ;\\n }\\n else //show popup on the right side of firing element \\n {\\n popupDiv.style.left=(parseInt(xp)+20)+\\\"px\\\"; // left\\n popupDiv.xDir = \\\"left\\\";\\n if (showNotch) popupDiv.style.marginLeft = ( -20 - parseInt(width) /2 + parseInt(t.offsetWidth) / 2 ) + \\\"px\\\" ; \\n }\\n }\\n else \\n {\\n if(popupWinW >winW+scroll.left && parseInt(width) < xp)\\n {\\n popupDiv.style.left=(parseInt(xp)-parseInt(width))+\\\"px\\\";//left\\n popupDiv.xDir = \\\"left\\\";\\n if (showNotch) popupDiv.style.marginLeft = ( (parseInt(width) /2 + parseInt(t.offsetWidth) / 2 )) + \\\"px\\\" ;\\n }\\n else\\n {\\n if(popupWinW < winW+scroll.left)\\n {\\n popupDiv.style.left=(parseInt(xp)+20 )+\\\"px\\\";//right\\n }\\n else\\n centre = true;\\n popupDiv.xDir = \\\"right\\\";\\n if (showNotch) popupDiv.style.marginLeft = ( -20 + parseInt(t.offsetWidth) / 2 - parseInt(width) /2 ) + \\\"px\\\" ;\\n }\\n }\\n // End Bug 8716339\\n popupDiv.removeAttribute(\\\"notchposition\\\"); \\n if(popupWinH > winH && (parseInt(height)+15) < yp)\\n {\\n //Bug 19863053 - POPUP CAN NOT DISPLAYS IN TABLE WITH VERTICAL SCROLL BAR\\n popupDiv.style.top=(parseInt(yp)-parseInt(height))+\\\"px\\\";//top\\n popupDiv.yDir = \\\"top\\\";\\n if (showNotch) popupDiv.setAttribute(\\\"notchposition\\\", \\\"bottom\\\"); \\n }\\n else\\n {\\n if(popupWinH < winH + scroll.top)\\n //Bug 19863053 - POPUP CAN NOT DISPLAYS IN TABLE WITH VERTICAL SCROLL BAR\\n popupDiv.style.top=yp+t.offsetHeight+\\\"px\\\";//bottom\\n else\\n centre = true;\\n popupDiv.yDir = \\\"bottom\\\";\\n if (showNotch) popupDiv.setAttribute(\\\"notchposition\\\", \\\"top\\\");\\n }\\n //bug 24578892: if couldn't find the source button element\\n // open the popup in center of page\\n if(openPopupInCenter)\\n {\\n centre = openPopupInCenter;\\n openPopupInCenter = false;\\n }\\n \\n //bug 17443645 popup position control\\n decidePopupPosition(popupDiv,centre);\\n popupDiv.showInCentre = centre;\\n //bug 21466778\\n if (showNotch)\\n {\\n // use (findPosLeftX(popupDiv)) instead of popupDiv.style.left ,becuase (findPosLeftX(popupDiv)) return 0 when \\n //popup is invisiable.\\n if(parseInt(popupDiv.style.left)+parseInt(popupDiv.style.marginLeft)<0)\\n {\\n popupDiv.style.marginLeft=0;\\n popupDiv.setAttribute(\\\"notchposition\\\", popupDiv.getAttribute(\\\"notchposition\\\")+\\\"left\\\");\\n }\\n else if(parseInt(popupDiv.style.left)+parseInt(popupDiv.style.marginLeft)+parseInt(popupDiv.style.width)>winW)\\n {\\n popupDiv.style.marginLeft=0;\\n popupDiv.setAttribute(\\\"notchposition\\\", popupDiv.getAttribute(\\\"notchposition\\\")+\\\"right\\\");\\n }\\n }\\n //ppr happens in table,would refresh the whole popup. keep the popup in the dragged position\\n if(isPopupDrag && null != savedDragPos)\\n {\\n popupDiv.style.left = savedDragPos[\\\"left\\\"];\\n popupDiv.style.top = savedDragPos[\\\"top\\\"];\\n return;\\n } \\n popupDiv.style.left =parseInt(popupDiv.style.left) - popupDiv.relativeParent.posLeftX+ _PX;\\n popupDiv.style.top = parseInt(popupDiv.style.top) - popupDiv.relativeParent.posTopY+ _PX;\\n\\n}\",\n \"function CursorInfo() { }\",\n \"toScreen() \\t{return new Point(gMap.mapToScreenX(this._x,this._y),gMap.mapToScreenY(this._x,this._y));}\",\n \"function showInfoWindowForMarker(featureData, clusteredId) {\\n var idString = \\\"\\\"+ featureData.topicId + \\\"\\\";\\n var htmlString = '' + featureData.topicName + '
weitere Details';\\n // if ( clusteredId != null ) {\\n if ( featureData.cluster != null ) {\\n htmlString = \\\"Es gibt hier mehrere M&ouml;glichkeiten an einem Ort:

\\\";\\n for (i=0; i < featureData.cluster.length; i++) {\\n var clusterTopicId = featureData.cluster[i].topicId;\\n var clusterTopic = getTopicById(clusterTopicId);\\n htmlString += '' + clusterTopic.name + '&nbsp; - weitere Details
';\\n }\\n // htmlString += \\\"\\\";\\n }\\n // just make sure that there is not more than 1active PopUpWindow\\n hideAllInfoWindows();\\n // var htmlString = '' + featureData.topicName\\n // + '
weitere Details';\\n var lonlat = new OpenLayers.LonLat(featureData.lon, featureData.lat);\\n var popup = new OpenLayers.Popup.FramedCloud(\\n \\\"infoPoop-\\\"+featureData.topicId,\\n lonlat, new OpenLayers.Size(250, 200),\\n htmlString, null,\\n false);\\n // popup.keepInMap = true;\\n popup.autoSize = true;\\n popup.panMapIfOutOfView = false;\\n /*popup.addCloseBox(function(){\\n var feat = checkFeatureById(idString);\\n feat.renderIntent = \\\"default\\\";\\n myNewLayer.redraw();\\n }); **/\\n map.addPopup(popup);\\n }\",\n \"function refreshMapPosition() {\\n //alert(\\\"on Map\\\");\\n roeMapBio.resize();\\n roeMapBio.reposition();\\n }\",\n \"function positionDatasetEditMenu(){\\n\\t$('#dataSetEdit').css('position', 'absolute')\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t .css('top', parseInt(window.innerHeight/2 - $('#dataSetEdit').height()/2)+\\\"px\\\")\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t .css('left',parseInt(window.innerWidth/2 - $('#dataSetEdit').width()/2)+\\\"px\\\");\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.67288405","0.6393513","0.62909645","0.6259279","0.6236101","0.6189884","0.6189795","0.6158752","0.6149145","0.59767413","0.5965264","0.5962836","0.59231514","0.5921546","0.59135985","0.59089935","0.590471","0.590327","0.586407","0.5863734","0.58620036","0.58287424","0.58248144","0.58201575","0.581896","0.5807624","0.58016133","0.5792753","0.5785204","0.5784341","0.5783258","0.5778779","0.57760876","0.5774915","0.57670563","0.5752607","0.57459056","0.57439077","0.574109","0.5715668","0.57012105","0.56938076","0.56859523","0.56745577","0.56716233","0.5662896","0.566197","0.56619674","0.5654791","0.56534475","0.5651694","0.5650984","0.5648649","0.564793","0.56425923","0.56424195","0.5642343","0.564051","0.56363815","0.56314605","0.56283045","0.562628","0.5622821","0.5620077","0.56167185","0.5605268","0.5604542","0.5603682","0.5595897","0.5590117","0.5584987","0.55849665","0.558294","0.55767816","0.5576001","0.55758995","0.5569475","0.55655897","0.5563871","0.55602187","0.55535525","0.55515796","0.5544789","0.5543385","0.5539341","0.5538844","0.5538757","0.5534795","0.553098","0.5529814","0.5526195","0.55255246","0.5522302","0.5517757","0.55101347","0.55074304","0.55053174","0.5505101","0.55041546","0.5499042","0.54942054"],"string":"[\n \"0.67288405\",\n \"0.6393513\",\n \"0.62909645\",\n \"0.6259279\",\n \"0.6236101\",\n \"0.6189884\",\n \"0.6189795\",\n \"0.6158752\",\n \"0.6149145\",\n \"0.59767413\",\n \"0.5965264\",\n \"0.5962836\",\n \"0.59231514\",\n \"0.5921546\",\n \"0.59135985\",\n \"0.59089935\",\n \"0.590471\",\n \"0.590327\",\n \"0.586407\",\n \"0.5863734\",\n \"0.58620036\",\n \"0.58287424\",\n \"0.58248144\",\n \"0.58201575\",\n \"0.581896\",\n \"0.5807624\",\n \"0.58016133\",\n \"0.5792753\",\n \"0.5785204\",\n \"0.5784341\",\n \"0.5783258\",\n \"0.5778779\",\n \"0.57760876\",\n \"0.5774915\",\n \"0.57670563\",\n \"0.5752607\",\n \"0.57459056\",\n \"0.57439077\",\n \"0.574109\",\n \"0.5715668\",\n \"0.57012105\",\n \"0.56938076\",\n \"0.56859523\",\n \"0.56745577\",\n \"0.56716233\",\n \"0.5662896\",\n \"0.566197\",\n \"0.56619674\",\n \"0.5654791\",\n \"0.56534475\",\n \"0.5651694\",\n \"0.5650984\",\n \"0.5648649\",\n \"0.564793\",\n \"0.56425923\",\n \"0.56424195\",\n \"0.5642343\",\n \"0.564051\",\n \"0.56363815\",\n \"0.56314605\",\n \"0.56283045\",\n \"0.562628\",\n \"0.5622821\",\n \"0.5620077\",\n \"0.56167185\",\n \"0.5605268\",\n \"0.5604542\",\n \"0.5603682\",\n \"0.5595897\",\n \"0.5590117\",\n \"0.5584987\",\n \"0.55849665\",\n \"0.558294\",\n \"0.55767816\",\n \"0.5576001\",\n \"0.55758995\",\n \"0.5569475\",\n \"0.55655897\",\n \"0.5563871\",\n \"0.55602187\",\n \"0.55535525\",\n \"0.55515796\",\n \"0.5544789\",\n \"0.5543385\",\n \"0.5539341\",\n \"0.5538844\",\n \"0.5538757\",\n \"0.5534795\",\n \"0.553098\",\n \"0.5529814\",\n \"0.5526195\",\n \"0.55255246\",\n \"0.5522302\",\n \"0.5517757\",\n \"0.55101347\",\n \"0.55074304\",\n \"0.55053174\",\n \"0.5505101\",\n \"0.55041546\",\n \"0.5499042\",\n \"0.54942054\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":81543,"cells":{"query":{"kind":"string","value":"function to hide information window"},"document":{"kind":"string","value":"function fnhideInformation()\r\n\t\t{\r\n\t\t\tmblnOnInfoWindow = false;\r\n\t\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function hideInfo() {\r\n\r\n $('#info_window').hide();\r\n}","function fHideInfoWindow(){\n\tmyInfoWindow.close();\n\treturn true;\n//\tmyLock.noredraw = false;\n}","function closeInfo() {\n infomodal.style.display = 'none';\n}","function hide_info()\r\n{\r\n $('info_div').hide();// = 'hidden';\r\n}","function closeInfoWindow() {\n \n vm.infoWindowVisible(false);\n\n if (isMobile) {\n var iw = $('.info-window');\n iw.css('top', '');\n iw.css('height', '');\n iw.css('overflow', '');\n }\n\n}","function hideInfoWindowCloseControl() {\n // $(\".gm-style-iw\").next(\"div\").css('display', 'none'); // this function gets rid of close btn in infowindows\n // udacity doesn't like it for this project so having an x is fine\n }","hideWindow() {\n\t\tfinsembleWindow.hide();\n\t}","function openPage() {\r\n\t$(\".information\").hide();\r\n}","function CloseInfo(){\n // close infoo window if already open\n if (infoWindow) {\n infoWindow.close();\n }\n}","function hideInfo() {\n $(infoDiv).html(\"\");\n}","hide()\n {\n this._window.hide();\n }","function hideInfo() {\n\n infoContainer.style.display = 'none';\n infoBtn.innerText = 'More Info';\n infoContainer.innerText = '';\n\n }","function hide(){\r\n // change display style from block to none\r\n details.style.display='none';\r\n}","function hideInfo() {\n //first check if we can use the information provided\n if (!getFrameRate()) {\n return;\n }\n willItRepeat();\n\n //change the image to the first one available\n gifInit();\n\n //now hide the info and reset any animation\n d.info.style.display = 'none';\n\n // clean up after ourselves\n d.closer.removeEventListener('click', hideInfo);\n d.controlSettings.addEventListener('click', showInfo);\n}","function unhelp(){\n $(\"#main\").show();\n $(\"#logout\").show();\n $(\"#help\").show();\n let info= document.getElementById(\"info\");\n info.style.visibility=\"hidden\";\n \n }","function hideInfo() {\n $('#click-info').html(\"Click on the map to select an area.\");\n }","hideInfobar() {\n clearInterval(this.flag);\n clearInterval(this.flag1);\n this.visible = false;\n }","function mydoc_off()\n{\n\n\tcheck_advert_status();\n\tcheck_sidepanel_hieght();\n show('map');\n hide('gallery_id');\n\thide('chart_gallery_id')\n\thide('weather_gallery_id')\n\thide('uc_image');\n\n\t//for hide show details window\n\thide('more_info');\n\n}","function hideShowInfoDetails() {\n linkId = this.valueOf();\n highlightSelectedMeasure(null);\n hideShowRequest({\n requestingMethod: \"LearningCurve.hideShowInfoDetails\",\n datasetId: dataset,\n linkId: linkId,\n hideShow: $(linkId).up().visible() ? \"hide\" : \"show\"\n });\n}","function hideHoverInfo(){\n\tvar infoDiv = document.getElementById(\"hover_info\");\n\tinfoDiv.style.display = \"none\";\n}","function hideCommentWindow(){\n document.getElementById(\"commentWindow\").style.display=\"none\";\n }","function closeSystemInfo() {\n if (isSystemInfoOpen) {\n systemInfoPanel.classList.add('hidden');\n isSystemInfoOpen = false;\n }\n }","function hideAllInfoWindows(map) {\n markersOnMap.forEach(function(marker) {\n marker.infoWindow.close(map, marker);\n }); \n}","function prepare_showinfo() {\n\t//$(\"#showinfo\").hide();\n}","function closeInfoWindow() {\n map.clearInfoWindow();\n}","function closeInfoWindow() {\r\n\t\t$('#infowindows').html('');\r\n\t\t$['mapsettings'].infoWindowLocation = [];\r\n\t\t$['mapsettings'].hasOpenInfoWindow = false;\r\n\t}","function closeGraphEq() {\n document.getElementById(\"graphInfo\").style.display = \"none\";\n}","function fCloseInfoWindow(){\n\tif (myShowWindows.length==0) return false;\n\t\n\tvar handle = myShowWindows.pop();\n\tmyInfoWindow.close();\n\t\n\tif (handle.content) {\n\t\thandle.content.parentNode.removeChild(handle.content);\n\t\thandle.content = null;\n\t}\n\tif (myShowWindows.length!=0){\n\t\t\tfBuildInfoWindow(myInfoWindow,myShowWindows[myShowWindows.length-1].content)\n\t\t\tfShowInfoWindow(vMap,myShowWindows[myShowWindows.length-1]);\n\t}\n\treturn true;\n}","function hide_info_icon()\n{\n $(\"#dvInfo\").removeClass(\"show\");\n}","function showInfo() {\n info.style.display = 'block';\n \n // clean up after ourselves\n d.controlSettings.removeEventListener('click', showInfo);\n d.closer.addEventListener('click', hideInfo);\n}","function closeMapWindows() {\n\t\t\t if (click_infowindow!=undefined) click_infowindow.hide();\n \t\t\tif (delete_infowindow!=undefined) delete_infowindow.hide();\n if (edit_metadata!=undefined) edit_metadata.hide();\n\t\t\t}","function hidePopups() {\n if (infoPopupActive) {\n $('.info-popup').remove();\n infoPopupActive = false;\n }\n}","function hideWindow() {\n $(\"#articles-window\").hide();\n $(\"#obituaries-window\").hide();\n $(\"#advertise-window\").hide();\n $(\"#submit-window\").hide();\n window.scrollTo(0,0);\n}","function closeWindow() {\n\t\t\t\tinfoWin.close();\n\t\t\t}","close() {\n\n // Pop the activity from the stack\n utils.popStackActivity();\n\n // Hide the screen\n this._screen.scrollTop(0).hide();\n\n // Hide the content behind the placeholders\n $(\"#page--info .ph-hidden-content\").hide();\n\n // Stop the placeholders animation\n this._placeholders.removeClass(\"ph-animate\").show();\n\n // Hide the delete button\n $(\"#info-delete\").hide();\n\n // Hide the info button\n $(\"#info-edit\").hide();\n\n // Show all the fields\n $(\".info-block\").show();\n\n // Delete the content of each of the fields\n $(\"#info-createdAt .info-content\").html(\"\");\n $(\"#info-updatedAt .info-content\").html(\"\");\n $(\"#info-coordinates .info-content\").html(\"\");\n $(\"#info-coordinatesAccuracy .info-content\").html(\"\");\n $(\"#info-altitude .info-content\").html(\"\");\n $(\"#info-altitudeAccuracy .info-content\").html(\"\");\n $(\"#info-type .info-content\").html(\"\");\n $(\"#info-materialType .info-content\").html(\"\");\n $(\"#info-hillPosition .info-content\").html(\"\");\n $(\"#info-water .info-content\").html(\"\");\n $(\"#info-vegetation .info-content\").html(\"\");\n $(\"#info-mitigation .info-content\").html(\"\");\n $(\"#info-mitigationsList .info-content\").html(\"\");\n $(\"#info-monitoring .info-content\").html(\"\");\n $(\"#info-monitoringList .info-content\").html(\"\");\n $(\"#info-damages .info-content\").html(\"\");\n $(\"#info-damagesList .info-content\").html(\"\");\n $(\"#info-notes .info-content\").html(\"\");\n\n // Show the image placeholder\n $(\"#info-photo-preview\").attr(\"src\", \"img/no-img-placeholder-200.png\");\n\n }","function closeHintWindow(){\n\t\t$('#hint_set').hide();\n }","function hideForm() {\n mainForm.style.display = 'none';\n newInfoButton.style.display = 'block';\n}","function closeInformationDialogBox() {\n document.getElementById(\"checkDoc\").style.display = \"none\";\n document.getElementById(\"dialogBox\").style.display = \"none\";\n}","function hide()\n\t{\n\t\t$(\"#city-screen\").hide();\n\t\tconsole.log(\"hide\")\n\t}","function inmueble_cerrarPopUp2(){\n\t$(\"#mascaraPrincipalNivel2\").hide();\n\t$(\"#inmueble_obtenerCoordenadas\").hide();\n\t$(\"#inmueble_subirImagen\").hide();\n\t$(\"#inmueble_subirVideo\").hide();\n}","function inmueble_cerrarPopUp2(){\n\t$(\"#mascaraPrincipalNivel2\").hide();\n\t$(\"#inmueble_obtenerCoordenadas\").hide();\n\t$(\"#inmueble_subirImagen\").hide();\n\t$(\"#inmueble_subirVideo\").hide();\n}","hideLocationInfo () {\n this.showLocationInfo(false);\n viewModel.currLocation(null);\n }","function closeProfile() {\r\n // making user info box invisible----\r\n document.querySelector('.main').style.visibility = 'hidden';\r\n}","function us_closeinfobox() {\r\n\topacity('us_infobox', 100, 0, 500);\r\n\twindow.setTimeout(function() { document.getElementById('us_infobox').style.display = \"none\";}, 500);\r\n}","function hideInfo() {\n\t$('#info').html('');\n\t$('#info').css('display', 'none');\n\ttimerInf = \"\";\n}","function setup_showInfo() {\n\tdocument.getElementById(\"basic\").style.display = \"none\";\n\tdocument.getElementById(\"create\").style.display = \"none\";\n\tdocument.getElementById(\"source\").style.display = \"none\";\n\tdocument.getElementById(\"info\").style.display = \"block\";\n}","function hideInterface(){\n\t$('.user-info').css('display', 'none');\n\t$('.user-info').css('opacity', '0');\n\t$('.user-tracks').css('display', 'none');\n\t$('.user-tracks').css('opacity', '0');\n\t$('.current-user').css('display', 'none');\t\n\t$('.current-user').css('opacity', '0');\n\t$('.data-display').css('visibility', 'hidden');\n\t$('.data-display').css('opacity', '0');\n}","function hideView() {\n $rootScope.helpModal.hide();\n }","function hideStartingInfo() {\r\n // Hides savings/checking info and transaction info.\r\n hideToggle(checking_info); \r\n hideToggle(savings_info); \r\n hideToggle(transactions); \r\n}","function hideDetails() {\n if (!graphClicked){ //keep details shown if user clicks\n focus.style(\"opacity\", 0);\n focusText.style(\"opacity\", 0);\n focusLineX.style(\"opacity\", 0);\n focusLineY.style(\"opacity\", 0);\n }\n }","function closeGetInfoOptions(){\n\tvar getInfoOptions = document.getElementById(\"container-options-info\");\n\tgetInfoOptions.style.display = \"none\";\n\tvar checkBoxes = document.getElementsByClassName(\"check-friend\");\n\tfor (var i = 0; i < checkBoxes.length; i++) {\n\t\tcheckBoxes[i].style.display=\"none\";\n\t}\n}","function hideInfoBox(){\n $scope.infoBox = false;\n angular.element('#infoBox').addClass('ng-hide');\n }","function closeOut(){\n\n\tdocument.getElementById(attribute + \"Pane\").style.display = \"none\";\n\tdocument.getElementById(\"closeOut\").style.display = \"none\";\n\tdocument.getElementById(attribute + \"DataPane\").style.display = \"none\";\n\tdocument.getElementById(attribute + \"RiverAttributes\").innerHTML = \"\";\n\n}","function onCloseButtonClick(){\n\t\tt.hide();\n\t}","function hideDetail() {\n\n // hide tooltip\n return tooltip.style(\"visibility\", \"hidden\");\n}","function hideCourseInfo() {\n document.getElementById(\"courseInformation\").style.display = \"none\";\n}","function infoHide(onClk)\r\n{ \r\ntry\r\n{\r\n\tvar label = GM_getValue(\"infoHide\",\"-\");\r\n\t\r\n\tif ((label==\"-\" && onClk==true) || (label==\"+\" && onClk==false)) \t//Hide\r\n\t{\r\n\t\tdocument.getElementById('infoButton').innerHTML = \"+\";\r\n\t\tGM_addStyle('#hideText {display:none;}');\r\n\t\tGM_setValue(\"infoHide\",\"+\");\r\n\t}\r\n\tif ((label==\"+\" && onClk==true) || (label==\"-\" && onClk==false))\t//Show \r\n\t{\r\n\t\tdocument.getElementById('infoButton').innerHTML = \"-\";\r\n\t\tGM_addStyle('#hideText {display:table-row;}');\r\n\t\tGM_setValue(\"infoHide\",\"-\");\r\n\t}\r\n}\r\ncatch(er) \t\t\t\t\r\n\t{infoError(\"function infoHide \",er)}\r\n}","function hide() {\n if (tooltip) {\n tooltip.parentNode.removeChild(tooltip);\n tooltip = null;\n }\n }","function hide(category) {\n if (category) {\n for (var i=0; i\";\r\n\t\taddGlobalStyle('#hideText {display:none;}');\r\n\t\tGM_setValue(\"infoHide\",\"+\");\r\n\t}\r\n\tif ((label==\"+\" && onClk==true) || (label==\"-\" && onClk==false))\t//Show \r\n\t{\r\n\t\t//document.getElementById('infoButton').textContent = \"-\";\r\n\t\tdocument.getElementById('infoButton').innerHTML = \"-\";\r\n\t\taddGlobalStyle('#hideText {display:table-row;}');\r\n\t\tGM_setValue(\"infoHide\",\"-\");\r\n\t}\r\n}","function hidePlacemark() {\n if (this.marker) {\n this.marker.closeInfoWindow();\n this.marker.hide();\n }\n }","function hide(event) { event.target.style.visibility = \"hidden\"; }","function openClosePopup() {\n var guidePane = document.getElementById(\"guideAreaInfo\");\n if(guidePane.style.visibility === \"hidden\"){\n guidePane.style.visibility = \"visible\";\n }\n else{\n guidePane.style.visibility = \"hidden\";\n }\n}","hide(){\n\t\tif(atom && this.panel)\n\t\t\tthis.panel.hide();\n\t\telse (\"dialog\" === this.elementTagName)\n\t\t\t? this.element.close()\n\t\t\t: this.element.hidden = true;\n\t\tthis.autoFocus && this.restoreFocus();\n\t}","function hideModalScreen() {\n\t\tcurrent_x = this;\n\t\tcurrent_x.style.display = \"none\";\n\t\tcurrent_x.nextElementSibling.style.display = \"none\";\n\t}","function closeGenerateWindow() {\n\tdocument.getElementById('input-hider').style.display = 'none';\n\tdocument.getElementById('input-hider-button').style.display = 'none';\n}","function hideHints(){\n\t\t\t\t$(\"#posibilidadescontainer\").fadeOut('slow');\n\t\t\t}","function toggleInfo(display) {\n var popup = info[ 0 ];\n var isVisible = popup.style.display === \"block\";\n\n // return early if the info window is already in\n // the state we want it to be in.\n if(display != null && (isVisible === display)) {\n return;\n }\n\n // if display wasn't passed it, set it to the opposite of the current state\n if(display == null) {\n display = !isVisible;\n }\n\n popup.style.display = display ? \"block\" : \"none\";\n\n if(display) {\n hideNavOverVideo();\n hideControls();\n state.change(\"info\");\n focusActiveSlide();\n controls.infoControl.removeClass(\"focus\");\n } else {\n state.change(\"video\");\n displayControls(true);\n $(\":focus\").blur();\n }\n }","function hide(category) {\n for (var i = 0; i < gmarkers.length; i++) {\n if (gmarkers[i].category == category && !gmarkers[i].isChecked) {\n gmarkers[i].setVisible(false);\n }\n }\n // == clear the checkbox ==\n //document.getElementById(category + \"box\").checked = false;\n // == close the info window, in case its open on a marker that we just hid\n infowindow.close();\n}","function removeInfoBox() {\n var info = $('div.info');\n if (info.length)\n info.remove();\n showing_tooltip = false;\n}","function hide(id){\n document.getElementById(id).style.display = \"None\"; \n }","hide() {\n this.isVisible = false;\n }","hide() {\n this.visible = false;\n this.closed.emit();\n }","function hiddenDiv()\n\t{\n\t\tdocument.getElementById('flotante').style.display='none';\n\t}","function hideWarning(){\n\n document.getElementById('warning-popup').style.display = 'none';\n\n\n}","function closeDisplayInformation() {\n document.getElementById(\"diseaseInformation\").style.display = \"none\";\n document.getElementById(\"diseaseInformation\").innerHTML = \"\";\n document.getElementById(\"diseaseInformationName\").innerHTML = \"\";\n document.getElementById(\"symptomsBox\").innerHTML = \"\";\n document.getElementById(\"symptomsBox\").style.display = \"none\";\n document.getElementById(\"goBtn\").innerHTML = \"\";\n document.getElementById(\"btnCloseTheWindowSymptoms\").style.display = \"none\";\n document.getElementById(\"showDialogBox\").style.display = \"block\";\n document.getElementById(\"diseaseInformationBtnClose\").style.display = \"none\";\n}","function queryMyWindow(win){\r\n\t\twin.query(info.selectionText);\r\n\t\tvar toHide = [\"logo\", \"word\", \"search\"];\r\n\t\tfor(var i = 0; i< toHide.length ; i ++){\r\n\t\t\tvar id = toHide[i];\r\n\t\t\tvar elem = win.document.getElementById(id);\r\n\t\t\telem.setAttribute(\"style\", \"display:none\");\r\n\t\t}\r\n\t}","function hideWait() {\n waitingForReply=false;\n hideField(\"wait\");\n hideField(\"waitLogin\");\n if (window.top.document.getElementById(\"dialogInfo\")) {\n window.top.document.getElementById(\"dialogInfo\").style.visibility='hidden';\n }\n}","function hideDialogue(){\n\tget(\"dialogue\").style.display = 'none';\n}","function hide() {\n\t\t\tdiv.hide();\n\t\t\tEvent.stopObserving(div, 'mouseover', onMouseMove);\n\t\t\tEvent.stopObserving(div, 'click', onClick);\n\t\t\tEvent.stopObserving(document, 'click', hide);\n\t\t\tEvent.stopObserving(textarea, 'click', hide);\n\t\t\tEvent.stopObserving(textarea, 'keydown', onKeyDown);\n\t\t\tvisible = false;\n\t\t}","function hideToShow(type,name){\n // circleChart.dispatchAction({\n // type:type,\n // name:name\n // })\n }","function hideDialog(dialog){\r\n\tdocument.getElementById(dialog).style.visibility = \"hidden\";\r\n}","function hideInstruction() {\n document.getElementById(\"instruction\").style.display = \"none\";\n }","function hide_nag()\n {\n $( \"#nag_dialog\" ).dialog('close');\n\n }","function hideDetails() { \n $(\"#quiz-title\").attr('style', 'display:none;');\n $(\"#info\").attr('style', 'display:none;');\n $(\"#start\").attr('style', 'display:none;');\n}","function hide()\n{ \n clearTimeout(window.updateTimer);\n}","function mydoc_on(gal_type)\n{\n if(document.getElementById('map').style.display=='none')\n hide('uc_image');\n else\n hide('map');\n\n hide('chart_gallery_id');\n hide('gallery_id');\n hide('weather_gallery_id');\n\n if(gal_type=='chart')\n show('chart_gallery_id');\n if(gal_type=='place')\n show('gallery_id');\n if(gal_type=='weather')\n show('weather_gallery_id');\n\n //for hide show details window\n hide('more_info');\n\n}","function fermer(){\r\n document.getElementById('info2').style.display = 'none';\r\n document.getElementById('info3').style.display = 'none';\r\n document.getElementById('info1').style.display = 'none';\r\n document.getElementById('no_respon_lyon').style.display = 'none';\r\n document.getElementById('no_respon_paris').style.display = 'none';\r\n }","hide ()\n\t{\n\t\t//hide the elements of the view\n\t\tthis.root.style.display= 'none';\n\t}","function hideDialog() {\n\t\tstopSlideshow();\n\n\t\t// unregister events\n\t\tdoc.unbind('keydown', _onKeyDown).unbind('contextmenu', _onContextMenuOpen);\n\t\tdialog.stop(true, true);\n\n\t\tcurrent = -1; // no image is displayed\n\n\t\tdialog.addClass(CLASS_DISABLED).add(panels).add(viewer).add(background).addClass(CLASS_HIDDEN);\n\t}","function hide(){\n // document.getElementById(\"startPage\").style.display = \"none\";\n document.getElementById(\"startPage\").style.setProperty(\"visibility\", \"hidden\", null);\n // document.getElementById(\"Time\").style.display = \"inline\";\n // document.getElementById(\"Score\").style.display = \"inline\";\n // document.getElementById(\"Level\").style.display = \"inline\";\n needName();\n}","function displayInfoboxClose(e) {\n if (e.targetType == 'pushpin') {\n infobox.setLocation(e.target.getLocation());\n infobox.setOptions({ visible: false});\n }\n }","function InstructionsHider() {\n $(\"div#instructionScreen\").hide();\n }"],"string":"[\n \"function hideInfo() {\\r\\n\\r\\n $('#info_window').hide();\\r\\n}\",\n \"function fHideInfoWindow(){\\n\\tmyInfoWindow.close();\\n\\treturn true;\\n//\\tmyLock.noredraw = false;\\n}\",\n \"function closeInfo() {\\n infomodal.style.display = 'none';\\n}\",\n \"function hide_info()\\r\\n{\\r\\n $('info_div').hide();// = 'hidden';\\r\\n}\",\n \"function closeInfoWindow() {\\n \\n vm.infoWindowVisible(false);\\n\\n if (isMobile) {\\n var iw = $('.info-window');\\n iw.css('top', '');\\n iw.css('height', '');\\n iw.css('overflow', '');\\n }\\n\\n}\",\n \"function hideInfoWindowCloseControl() {\\n // $(\\\".gm-style-iw\\\").next(\\\"div\\\").css('display', 'none'); // this function gets rid of close btn in infowindows\\n // udacity doesn't like it for this project so having an x is fine\\n }\",\n \"hideWindow() {\\n\\t\\tfinsembleWindow.hide();\\n\\t}\",\n \"function openPage() {\\r\\n\\t$(\\\".information\\\").hide();\\r\\n}\",\n \"function CloseInfo(){\\n // close infoo window if already open\\n if (infoWindow) {\\n infoWindow.close();\\n }\\n}\",\n \"function hideInfo() {\\n $(infoDiv).html(\\\"\\\");\\n}\",\n \"hide()\\n {\\n this._window.hide();\\n }\",\n \"function hideInfo() {\\n\\n infoContainer.style.display = 'none';\\n infoBtn.innerText = 'More Info';\\n infoContainer.innerText = '';\\n\\n }\",\n \"function hide(){\\r\\n // change display style from block to none\\r\\n details.style.display='none';\\r\\n}\",\n \"function hideInfo() {\\n //first check if we can use the information provided\\n if (!getFrameRate()) {\\n return;\\n }\\n willItRepeat();\\n\\n //change the image to the first one available\\n gifInit();\\n\\n //now hide the info and reset any animation\\n d.info.style.display = 'none';\\n\\n // clean up after ourselves\\n d.closer.removeEventListener('click', hideInfo);\\n d.controlSettings.addEventListener('click', showInfo);\\n}\",\n \"function unhelp(){\\n $(\\\"#main\\\").show();\\n $(\\\"#logout\\\").show();\\n $(\\\"#help\\\").show();\\n let info= document.getElementById(\\\"info\\\");\\n info.style.visibility=\\\"hidden\\\";\\n \\n }\",\n \"function hideInfo() {\\n $('#click-info').html(\\\"Click on the map to select an area.\\\");\\n }\",\n \"hideInfobar() {\\n clearInterval(this.flag);\\n clearInterval(this.flag1);\\n this.visible = false;\\n }\",\n \"function mydoc_off()\\n{\\n\\n\\tcheck_advert_status();\\n\\tcheck_sidepanel_hieght();\\n show('map');\\n hide('gallery_id');\\n\\thide('chart_gallery_id')\\n\\thide('weather_gallery_id')\\n\\thide('uc_image');\\n\\n\\t//for hide show details window\\n\\thide('more_info');\\n\\n}\",\n \"function hideShowInfoDetails() {\\n linkId = this.valueOf();\\n highlightSelectedMeasure(null);\\n hideShowRequest({\\n requestingMethod: \\\"LearningCurve.hideShowInfoDetails\\\",\\n datasetId: dataset,\\n linkId: linkId,\\n hideShow: $(linkId).up().visible() ? \\\"hide\\\" : \\\"show\\\"\\n });\\n}\",\n \"function hideHoverInfo(){\\n\\tvar infoDiv = document.getElementById(\\\"hover_info\\\");\\n\\tinfoDiv.style.display = \\\"none\\\";\\n}\",\n \"function hideCommentWindow(){\\n document.getElementById(\\\"commentWindow\\\").style.display=\\\"none\\\";\\n }\",\n \"function closeSystemInfo() {\\n if (isSystemInfoOpen) {\\n systemInfoPanel.classList.add('hidden');\\n isSystemInfoOpen = false;\\n }\\n }\",\n \"function hideAllInfoWindows(map) {\\n markersOnMap.forEach(function(marker) {\\n marker.infoWindow.close(map, marker);\\n }); \\n}\",\n \"function prepare_showinfo() {\\n\\t//$(\\\"#showinfo\\\").hide();\\n}\",\n \"function closeInfoWindow() {\\n map.clearInfoWindow();\\n}\",\n \"function closeInfoWindow() {\\r\\n\\t\\t$('#infowindows').html('');\\r\\n\\t\\t$['mapsettings'].infoWindowLocation = [];\\r\\n\\t\\t$['mapsettings'].hasOpenInfoWindow = false;\\r\\n\\t}\",\n \"function closeGraphEq() {\\n document.getElementById(\\\"graphInfo\\\").style.display = \\\"none\\\";\\n}\",\n \"function fCloseInfoWindow(){\\n\\tif (myShowWindows.length==0) return false;\\n\\t\\n\\tvar handle = myShowWindows.pop();\\n\\tmyInfoWindow.close();\\n\\t\\n\\tif (handle.content) {\\n\\t\\thandle.content.parentNode.removeChild(handle.content);\\n\\t\\thandle.content = null;\\n\\t}\\n\\tif (myShowWindows.length!=0){\\n\\t\\t\\tfBuildInfoWindow(myInfoWindow,myShowWindows[myShowWindows.length-1].content)\\n\\t\\t\\tfShowInfoWindow(vMap,myShowWindows[myShowWindows.length-1]);\\n\\t}\\n\\treturn true;\\n}\",\n \"function hide_info_icon()\\n{\\n $(\\\"#dvInfo\\\").removeClass(\\\"show\\\");\\n}\",\n \"function showInfo() {\\n info.style.display = 'block';\\n \\n // clean up after ourselves\\n d.controlSettings.removeEventListener('click', showInfo);\\n d.closer.addEventListener('click', hideInfo);\\n}\",\n \"function closeMapWindows() {\\n\\t\\t\\t if (click_infowindow!=undefined) click_infowindow.hide();\\n \\t\\t\\tif (delete_infowindow!=undefined) delete_infowindow.hide();\\n if (edit_metadata!=undefined) edit_metadata.hide();\\n\\t\\t\\t}\",\n \"function hidePopups() {\\n if (infoPopupActive) {\\n $('.info-popup').remove();\\n infoPopupActive = false;\\n }\\n}\",\n \"function hideWindow() {\\n $(\\\"#articles-window\\\").hide();\\n $(\\\"#obituaries-window\\\").hide();\\n $(\\\"#advertise-window\\\").hide();\\n $(\\\"#submit-window\\\").hide();\\n window.scrollTo(0,0);\\n}\",\n \"function closeWindow() {\\n\\t\\t\\t\\tinfoWin.close();\\n\\t\\t\\t}\",\n \"close() {\\n\\n // Pop the activity from the stack\\n utils.popStackActivity();\\n\\n // Hide the screen\\n this._screen.scrollTop(0).hide();\\n\\n // Hide the content behind the placeholders\\n $(\\\"#page--info .ph-hidden-content\\\").hide();\\n\\n // Stop the placeholders animation\\n this._placeholders.removeClass(\\\"ph-animate\\\").show();\\n\\n // Hide the delete button\\n $(\\\"#info-delete\\\").hide();\\n\\n // Hide the info button\\n $(\\\"#info-edit\\\").hide();\\n\\n // Show all the fields\\n $(\\\".info-block\\\").show();\\n\\n // Delete the content of each of the fields\\n $(\\\"#info-createdAt .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-updatedAt .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-coordinates .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-coordinatesAccuracy .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-altitude .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-altitudeAccuracy .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-type .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-materialType .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-hillPosition .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-water .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-vegetation .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-mitigation .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-mitigationsList .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-monitoring .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-monitoringList .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-damages .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-damagesList .info-content\\\").html(\\\"\\\");\\n $(\\\"#info-notes .info-content\\\").html(\\\"\\\");\\n\\n // Show the image placeholder\\n $(\\\"#info-photo-preview\\\").attr(\\\"src\\\", \\\"img/no-img-placeholder-200.png\\\");\\n\\n }\",\n \"function closeHintWindow(){\\n\\t\\t$('#hint_set').hide();\\n }\",\n \"function hideForm() {\\n mainForm.style.display = 'none';\\n newInfoButton.style.display = 'block';\\n}\",\n \"function closeInformationDialogBox() {\\n document.getElementById(\\\"checkDoc\\\").style.display = \\\"none\\\";\\n document.getElementById(\\\"dialogBox\\\").style.display = \\\"none\\\";\\n}\",\n \"function hide()\\n\\t{\\n\\t\\t$(\\\"#city-screen\\\").hide();\\n\\t\\tconsole.log(\\\"hide\\\")\\n\\t}\",\n \"function inmueble_cerrarPopUp2(){\\n\\t$(\\\"#mascaraPrincipalNivel2\\\").hide();\\n\\t$(\\\"#inmueble_obtenerCoordenadas\\\").hide();\\n\\t$(\\\"#inmueble_subirImagen\\\").hide();\\n\\t$(\\\"#inmueble_subirVideo\\\").hide();\\n}\",\n \"function inmueble_cerrarPopUp2(){\\n\\t$(\\\"#mascaraPrincipalNivel2\\\").hide();\\n\\t$(\\\"#inmueble_obtenerCoordenadas\\\").hide();\\n\\t$(\\\"#inmueble_subirImagen\\\").hide();\\n\\t$(\\\"#inmueble_subirVideo\\\").hide();\\n}\",\n \"hideLocationInfo () {\\n this.showLocationInfo(false);\\n viewModel.currLocation(null);\\n }\",\n \"function closeProfile() {\\r\\n // making user info box invisible----\\r\\n document.querySelector('.main').style.visibility = 'hidden';\\r\\n}\",\n \"function us_closeinfobox() {\\r\\n\\topacity('us_infobox', 100, 0, 500);\\r\\n\\twindow.setTimeout(function() { document.getElementById('us_infobox').style.display = \\\"none\\\";}, 500);\\r\\n}\",\n \"function hideInfo() {\\n\\t$('#info').html('');\\n\\t$('#info').css('display', 'none');\\n\\ttimerInf = \\\"\\\";\\n}\",\n \"function setup_showInfo() {\\n\\tdocument.getElementById(\\\"basic\\\").style.display = \\\"none\\\";\\n\\tdocument.getElementById(\\\"create\\\").style.display = \\\"none\\\";\\n\\tdocument.getElementById(\\\"source\\\").style.display = \\\"none\\\";\\n\\tdocument.getElementById(\\\"info\\\").style.display = \\\"block\\\";\\n}\",\n \"function hideInterface(){\\n\\t$('.user-info').css('display', 'none');\\n\\t$('.user-info').css('opacity', '0');\\n\\t$('.user-tracks').css('display', 'none');\\n\\t$('.user-tracks').css('opacity', '0');\\n\\t$('.current-user').css('display', 'none');\\t\\n\\t$('.current-user').css('opacity', '0');\\n\\t$('.data-display').css('visibility', 'hidden');\\n\\t$('.data-display').css('opacity', '0');\\n}\",\n \"function hideView() {\\n $rootScope.helpModal.hide();\\n }\",\n \"function hideStartingInfo() {\\r\\n // Hides savings/checking info and transaction info.\\r\\n hideToggle(checking_info); \\r\\n hideToggle(savings_info); \\r\\n hideToggle(transactions); \\r\\n}\",\n \"function hideDetails() {\\n if (!graphClicked){ //keep details shown if user clicks\\n focus.style(\\\"opacity\\\", 0);\\n focusText.style(\\\"opacity\\\", 0);\\n focusLineX.style(\\\"opacity\\\", 0);\\n focusLineY.style(\\\"opacity\\\", 0);\\n }\\n }\",\n \"function closeGetInfoOptions(){\\n\\tvar getInfoOptions = document.getElementById(\\\"container-options-info\\\");\\n\\tgetInfoOptions.style.display = \\\"none\\\";\\n\\tvar checkBoxes = document.getElementsByClassName(\\\"check-friend\\\");\\n\\tfor (var i = 0; i < checkBoxes.length; i++) {\\n\\t\\tcheckBoxes[i].style.display=\\\"none\\\";\\n\\t}\\n}\",\n \"function hideInfoBox(){\\n $scope.infoBox = false;\\n angular.element('#infoBox').addClass('ng-hide');\\n }\",\n \"function closeOut(){\\n\\n\\tdocument.getElementById(attribute + \\\"Pane\\\").style.display = \\\"none\\\";\\n\\tdocument.getElementById(\\\"closeOut\\\").style.display = \\\"none\\\";\\n\\tdocument.getElementById(attribute + \\\"DataPane\\\").style.display = \\\"none\\\";\\n\\tdocument.getElementById(attribute + \\\"RiverAttributes\\\").innerHTML = \\\"\\\";\\n\\n}\",\n \"function onCloseButtonClick(){\\n\\t\\tt.hide();\\n\\t}\",\n \"function hideDetail() {\\n\\n // hide tooltip\\n return tooltip.style(\\\"visibility\\\", \\\"hidden\\\");\\n}\",\n \"function hideCourseInfo() {\\n document.getElementById(\\\"courseInformation\\\").style.display = \\\"none\\\";\\n}\",\n \"function infoHide(onClk)\\r\\n{ \\r\\ntry\\r\\n{\\r\\n\\tvar label = GM_getValue(\\\"infoHide\\\",\\\"-\\\");\\r\\n\\t\\r\\n\\tif ((label==\\\"-\\\" && onClk==true) || (label==\\\"+\\\" && onClk==false)) \\t//Hide\\r\\n\\t{\\r\\n\\t\\tdocument.getElementById('infoButton').innerHTML = \\\"+\\\";\\r\\n\\t\\tGM_addStyle('#hideText {display:none;}');\\r\\n\\t\\tGM_setValue(\\\"infoHide\\\",\\\"+\\\");\\r\\n\\t}\\r\\n\\tif ((label==\\\"+\\\" && onClk==true) || (label==\\\"-\\\" && onClk==false))\\t//Show \\r\\n\\t{\\r\\n\\t\\tdocument.getElementById('infoButton').innerHTML = \\\"-\\\";\\r\\n\\t\\tGM_addStyle('#hideText {display:table-row;}');\\r\\n\\t\\tGM_setValue(\\\"infoHide\\\",\\\"-\\\");\\r\\n\\t}\\r\\n}\\r\\ncatch(er) \\t\\t\\t\\t\\r\\n\\t{infoError(\\\"function infoHide \\\",er)}\\r\\n}\",\n \"function hide() {\\n if (tooltip) {\\n tooltip.parentNode.removeChild(tooltip);\\n tooltip = null;\\n }\\n }\",\n \"function hide(category) {\\n if (category) {\\n for (var i=0; i\\\";\\r\\n\\t\\taddGlobalStyle('#hideText {display:none;}');\\r\\n\\t\\tGM_setValue(\\\"infoHide\\\",\\\"+\\\");\\r\\n\\t}\\r\\n\\tif ((label==\\\"+\\\" && onClk==true) || (label==\\\"-\\\" && onClk==false))\\t//Show \\r\\n\\t{\\r\\n\\t\\t//document.getElementById('infoButton').textContent = \\\"-\\\";\\r\\n\\t\\tdocument.getElementById('infoButton').innerHTML = \\\"-\\\";\\r\\n\\t\\taddGlobalStyle('#hideText {display:table-row;}');\\r\\n\\t\\tGM_setValue(\\\"infoHide\\\",\\\"-\\\");\\r\\n\\t}\\r\\n}\",\n \"function hidePlacemark() {\\n if (this.marker) {\\n this.marker.closeInfoWindow();\\n this.marker.hide();\\n }\\n }\",\n \"function hide(event) { event.target.style.visibility = \\\"hidden\\\"; }\",\n \"function openClosePopup() {\\n var guidePane = document.getElementById(\\\"guideAreaInfo\\\");\\n if(guidePane.style.visibility === \\\"hidden\\\"){\\n guidePane.style.visibility = \\\"visible\\\";\\n }\\n else{\\n guidePane.style.visibility = \\\"hidden\\\";\\n }\\n}\",\n \"hide(){\\n\\t\\tif(atom && this.panel)\\n\\t\\t\\tthis.panel.hide();\\n\\t\\telse (\\\"dialog\\\" === this.elementTagName)\\n\\t\\t\\t? this.element.close()\\n\\t\\t\\t: this.element.hidden = true;\\n\\t\\tthis.autoFocus && this.restoreFocus();\\n\\t}\",\n \"function hideModalScreen() {\\n\\t\\tcurrent_x = this;\\n\\t\\tcurrent_x.style.display = \\\"none\\\";\\n\\t\\tcurrent_x.nextElementSibling.style.display = \\\"none\\\";\\n\\t}\",\n \"function closeGenerateWindow() {\\n\\tdocument.getElementById('input-hider').style.display = 'none';\\n\\tdocument.getElementById('input-hider-button').style.display = 'none';\\n}\",\n \"function hideHints(){\\n\\t\\t\\t\\t$(\\\"#posibilidadescontainer\\\").fadeOut('slow');\\n\\t\\t\\t}\",\n \"function toggleInfo(display) {\\n var popup = info[ 0 ];\\n var isVisible = popup.style.display === \\\"block\\\";\\n\\n // return early if the info window is already in\\n // the state we want it to be in.\\n if(display != null && (isVisible === display)) {\\n return;\\n }\\n\\n // if display wasn't passed it, set it to the opposite of the current state\\n if(display == null) {\\n display = !isVisible;\\n }\\n\\n popup.style.display = display ? \\\"block\\\" : \\\"none\\\";\\n\\n if(display) {\\n hideNavOverVideo();\\n hideControls();\\n state.change(\\\"info\\\");\\n focusActiveSlide();\\n controls.infoControl.removeClass(\\\"focus\\\");\\n } else {\\n state.change(\\\"video\\\");\\n displayControls(true);\\n $(\\\":focus\\\").blur();\\n }\\n }\",\n \"function hide(category) {\\n for (var i = 0; i < gmarkers.length; i++) {\\n if (gmarkers[i].category == category && !gmarkers[i].isChecked) {\\n gmarkers[i].setVisible(false);\\n }\\n }\\n // == clear the checkbox ==\\n //document.getElementById(category + \\\"box\\\").checked = false;\\n // == close the info window, in case its open on a marker that we just hid\\n infowindow.close();\\n}\",\n \"function removeInfoBox() {\\n var info = $('div.info');\\n if (info.length)\\n info.remove();\\n showing_tooltip = false;\\n}\",\n \"function hide(id){\\n document.getElementById(id).style.display = \\\"None\\\"; \\n }\",\n \"hide() {\\n this.isVisible = false;\\n }\",\n \"hide() {\\n this.visible = false;\\n this.closed.emit();\\n }\",\n \"function hiddenDiv()\\n\\t{\\n\\t\\tdocument.getElementById('flotante').style.display='none';\\n\\t}\",\n \"function hideWarning(){\\n\\n document.getElementById('warning-popup').style.display = 'none';\\n\\n\\n}\",\n \"function closeDisplayInformation() {\\n document.getElementById(\\\"diseaseInformation\\\").style.display = \\\"none\\\";\\n document.getElementById(\\\"diseaseInformation\\\").innerHTML = \\\"\\\";\\n document.getElementById(\\\"diseaseInformationName\\\").innerHTML = \\\"\\\";\\n document.getElementById(\\\"symptomsBox\\\").innerHTML = \\\"\\\";\\n document.getElementById(\\\"symptomsBox\\\").style.display = \\\"none\\\";\\n document.getElementById(\\\"goBtn\\\").innerHTML = \\\"\\\";\\n document.getElementById(\\\"btnCloseTheWindowSymptoms\\\").style.display = \\\"none\\\";\\n document.getElementById(\\\"showDialogBox\\\").style.display = \\\"block\\\";\\n document.getElementById(\\\"diseaseInformationBtnClose\\\").style.display = \\\"none\\\";\\n}\",\n \"function queryMyWindow(win){\\r\\n\\t\\twin.query(info.selectionText);\\r\\n\\t\\tvar toHide = [\\\"logo\\\", \\\"word\\\", \\\"search\\\"];\\r\\n\\t\\tfor(var i = 0; i< toHide.length ; i ++){\\r\\n\\t\\t\\tvar id = toHide[i];\\r\\n\\t\\t\\tvar elem = win.document.getElementById(id);\\r\\n\\t\\t\\telem.setAttribute(\\\"style\\\", \\\"display:none\\\");\\r\\n\\t\\t}\\r\\n\\t}\",\n \"function hideWait() {\\n waitingForReply=false;\\n hideField(\\\"wait\\\");\\n hideField(\\\"waitLogin\\\");\\n if (window.top.document.getElementById(\\\"dialogInfo\\\")) {\\n window.top.document.getElementById(\\\"dialogInfo\\\").style.visibility='hidden';\\n }\\n}\",\n \"function hideDialogue(){\\n\\tget(\\\"dialogue\\\").style.display = 'none';\\n}\",\n \"function hide() {\\n\\t\\t\\tdiv.hide();\\n\\t\\t\\tEvent.stopObserving(div, 'mouseover', onMouseMove);\\n\\t\\t\\tEvent.stopObserving(div, 'click', onClick);\\n\\t\\t\\tEvent.stopObserving(document, 'click', hide);\\n\\t\\t\\tEvent.stopObserving(textarea, 'click', hide);\\n\\t\\t\\tEvent.stopObserving(textarea, 'keydown', onKeyDown);\\n\\t\\t\\tvisible = false;\\n\\t\\t}\",\n \"function hideToShow(type,name){\\n // circleChart.dispatchAction({\\n // type:type,\\n // name:name\\n // })\\n }\",\n \"function hideDialog(dialog){\\r\\n\\tdocument.getElementById(dialog).style.visibility = \\\"hidden\\\";\\r\\n}\",\n \"function hideInstruction() {\\n document.getElementById(\\\"instruction\\\").style.display = \\\"none\\\";\\n }\",\n \"function hide_nag()\\n {\\n $( \\\"#nag_dialog\\\" ).dialog('close');\\n\\n }\",\n \"function hideDetails() { \\n $(\\\"#quiz-title\\\").attr('style', 'display:none;');\\n $(\\\"#info\\\").attr('style', 'display:none;');\\n $(\\\"#start\\\").attr('style', 'display:none;');\\n}\",\n \"function hide()\\n{ \\n clearTimeout(window.updateTimer);\\n}\",\n \"function mydoc_on(gal_type)\\n{\\n if(document.getElementById('map').style.display=='none')\\n hide('uc_image');\\n else\\n hide('map');\\n\\n hide('chart_gallery_id');\\n hide('gallery_id');\\n hide('weather_gallery_id');\\n\\n if(gal_type=='chart')\\n show('chart_gallery_id');\\n if(gal_type=='place')\\n show('gallery_id');\\n if(gal_type=='weather')\\n show('weather_gallery_id');\\n\\n //for hide show details window\\n hide('more_info');\\n\\n}\",\n \"function fermer(){\\r\\n document.getElementById('info2').style.display = 'none';\\r\\n document.getElementById('info3').style.display = 'none';\\r\\n document.getElementById('info1').style.display = 'none';\\r\\n document.getElementById('no_respon_lyon').style.display = 'none';\\r\\n document.getElementById('no_respon_paris').style.display = 'none';\\r\\n }\",\n \"hide ()\\n\\t{\\n\\t\\t//hide the elements of the view\\n\\t\\tthis.root.style.display= 'none';\\n\\t}\",\n \"function hideDialog() {\\n\\t\\tstopSlideshow();\\n\\n\\t\\t// unregister events\\n\\t\\tdoc.unbind('keydown', _onKeyDown).unbind('contextmenu', _onContextMenuOpen);\\n\\t\\tdialog.stop(true, true);\\n\\n\\t\\tcurrent = -1; // no image is displayed\\n\\n\\t\\tdialog.addClass(CLASS_DISABLED).add(panels).add(viewer).add(background).addClass(CLASS_HIDDEN);\\n\\t}\",\n \"function hide(){\\n // document.getElementById(\\\"startPage\\\").style.display = \\\"none\\\";\\n document.getElementById(\\\"startPage\\\").style.setProperty(\\\"visibility\\\", \\\"hidden\\\", null);\\n // document.getElementById(\\\"Time\\\").style.display = \\\"inline\\\";\\n // document.getElementById(\\\"Score\\\").style.display = \\\"inline\\\";\\n // document.getElementById(\\\"Level\\\").style.display = \\\"inline\\\";\\n needName();\\n}\",\n \"function displayInfoboxClose(e) {\\n if (e.targetType == 'pushpin') {\\n infobox.setLocation(e.target.getLocation());\\n infobox.setOptions({ visible: false});\\n }\\n }\",\n \"function InstructionsHider() {\\n $(\\\"div#instructionScreen\\\").hide();\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.8736786","0.81874347","0.7948513","0.7737324","0.7692685","0.75886214","0.75188583","0.74442554","0.7443276","0.7397087","0.73781306","0.7338097","0.73223525","0.7266966","0.7257701","0.7226894","0.72065383","0.71817154","0.7162894","0.71606654","0.71461946","0.7118288","0.7115451","0.71076655","0.70717055","0.7064309","0.7046537","0.7045846","0.7020217","0.70025367","0.6983274","0.6977117","0.69738346","0.69622576","0.69507587","0.69290745","0.6911333","0.6899964","0.6896411","0.6894014","0.6894014","0.6889413","0.6880695","0.6880484","0.6872347","0.6848487","0.68426496","0.6833127","0.6829533","0.68208855","0.6815993","0.68120664","0.6802816","0.6802686","0.6798845","0.6790482","0.6777605","0.6776484","0.6772922","0.67511356","0.6743933","0.6743617","0.6729552","0.67293984","0.67198426","0.67107964","0.670234","0.66960853","0.66849005","0.66808695","0.66741335","0.66707724","0.6664264","0.6659886","0.66583025","0.66581476","0.6648735","0.66450715","0.6641466","0.6640193","0.6635393","0.66347927","0.6626866","0.66246724","0.6621155","0.66210437","0.66181993","0.6606442","0.65958494","0.658532","0.6584905","0.6578267","0.65766996","0.6575066","0.65745384","0.65660757","0.65571827","0.6544409","0.65424085","0.65421677"],"string":"[\n \"0.8736786\",\n \"0.81874347\",\n \"0.7948513\",\n \"0.7737324\",\n \"0.7692685\",\n \"0.75886214\",\n \"0.75188583\",\n \"0.74442554\",\n \"0.7443276\",\n \"0.7397087\",\n \"0.73781306\",\n \"0.7338097\",\n \"0.73223525\",\n \"0.7266966\",\n \"0.7257701\",\n \"0.7226894\",\n \"0.72065383\",\n \"0.71817154\",\n \"0.7162894\",\n \"0.71606654\",\n \"0.71461946\",\n \"0.7118288\",\n \"0.7115451\",\n \"0.71076655\",\n \"0.70717055\",\n \"0.7064309\",\n \"0.7046537\",\n \"0.7045846\",\n \"0.7020217\",\n \"0.70025367\",\n \"0.6983274\",\n \"0.6977117\",\n \"0.69738346\",\n \"0.69622576\",\n \"0.69507587\",\n \"0.69290745\",\n \"0.6911333\",\n \"0.6899964\",\n \"0.6896411\",\n \"0.6894014\",\n \"0.6894014\",\n \"0.6889413\",\n \"0.6880695\",\n \"0.6880484\",\n \"0.6872347\",\n \"0.6848487\",\n \"0.68426496\",\n \"0.6833127\",\n \"0.6829533\",\n \"0.68208855\",\n \"0.6815993\",\n \"0.68120664\",\n \"0.6802816\",\n \"0.6802686\",\n \"0.6798845\",\n \"0.6790482\",\n \"0.6777605\",\n \"0.6776484\",\n \"0.6772922\",\n \"0.67511356\",\n \"0.6743933\",\n \"0.6743617\",\n \"0.6729552\",\n \"0.67293984\",\n \"0.67198426\",\n \"0.67107964\",\n \"0.670234\",\n \"0.66960853\",\n \"0.66849005\",\n \"0.66808695\",\n \"0.66741335\",\n \"0.66707724\",\n \"0.6664264\",\n \"0.6659886\",\n \"0.66583025\",\n \"0.66581476\",\n \"0.6648735\",\n \"0.66450715\",\n \"0.6641466\",\n \"0.6640193\",\n \"0.6635393\",\n \"0.66347927\",\n \"0.6626866\",\n \"0.66246724\",\n \"0.6621155\",\n \"0.66210437\",\n \"0.66181993\",\n \"0.6606442\",\n \"0.65958494\",\n \"0.658532\",\n \"0.6584905\",\n \"0.6578267\",\n \"0.65766996\",\n \"0.6575066\",\n \"0.65745384\",\n \"0.65660757\",\n \"0.65571827\",\n \"0.6544409\",\n \"0.65424085\",\n \"0.65421677\"\n]"},"document_score":{"kind":"string","value":"0.8674107"},"document_rank":{"kind":"string","value":"1"}}},{"rowIdx":81544,"cells":{"query":{"kind":"string","value":"Clear Display Call If Moved Out Before Display Interval"},"document":{"kind":"string","value":"function fnClear()\r\n\t\t\t{\t\r\n\t\t\t\tvar objInfoWindow;\r\n\t\t\t\ttry\r\n\t\t\t\t{\tmstrInformationTargetID\t= '';\r\n\t\t\t\t\twindow.clearTimeout(mintPreviousTimeout);\r\n\t\t\t\t}\r\n\t\t\t\tcatch(e){alert(\"Error: \" + e.message);}\r\n\t\t\t\tmblnOnInfoRaiser = false;\r\n\t\t\t}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["stopDisplayTimer() {\n if (this.timeoutHandle) {\n clearTimeout(this.timeoutHandle);\n this.timeoutHandle = undefined;\n }\n this.display();\n }","stopDisplayTimer() {\n if (this.timeoutHandle) {\n clearTimeout(this.timeoutHandle);\n this.timeoutHandle = undefined;\n }\n this.display();\n }","function clearScreen() {\n isFloat = false;\n isLastInputOperation = false;\n display.innerHTML = '';\n}","function resetDisplay() {\n\t\tctx.clearRect(0,0,610,550);\n\t\tctx.strokeRect(40, 10, 530, 539);\n\t\t$(\"#controls button\").button(\"disable\");\n\t\t$(\"#seeker\").slider(\"disable\");\n\t\t$(\"#display-options input\").attr(\"disabled\",\"disabled\");\n\t\t$(\".game-status .p1, .game-status .p2, .game-status .message\").empty();\n\t\t$(\".game-status .message\").removeClass(\"neutral-text p1-text p2-text\").css(\"visibility\",\"hidden\");\n\t\t$(\".display .p1-text, .display .p2-text\").html(1000);\n\t\t$(\".names-time .time\").html(0);\n\t\t$(\"#canvas-alt\").remove();\n\t}","function clearDisplay() {\n hideContainers();\n resetCopyNotes();\n resetClipboardNote();\n }","function clearScreen() {\n currentOperationScreen.textContent = '';\n clearDisplay = false;\n}","function displayChanged() {\n if (display.on) {\n startTimer();\n } else {\n stopTimer();\n }\n}","function syncDisplay() {\n //this is the point where the system clock has just reached 60s and therefore the display can now be\n //synchronised, the interval can also be changed to monitoring every minute instead of every second\n //this should only execute once to clear the 1s period setInterval, change the delay interval to 60s\n //and run the setInterval routine at 60s\n if (moment().seconds() === 00 && !firstTime) {\n intvlDelay = 60000;\n clearInterval(systemInitDisplay); //clear the setInterval which monitored every 1s DECOMMENT THIS!!!!!\n minuteMon(intvlDelay); //intiate the setInterval which monitors every 60s\n }\n noEntry = 0;\n}","function displayInterval (clr){\n if (clr === 1) {\n clearInterval(dispInt);\n }\n else {\n dispInt = setInterval(function(){\n ansDisplayEl.remove();\n },1000)\n}\n}","function noDisplay() {\n _displaycontrol &= ~LCD_DISPLAYON;\n command(LCD_DISPLAYCONTROL | _displaycontrol);\n}","function resetDisplay(){\r\n $(\"#pause-icon\").addClass(\"fa-pause\");\r\n $(\"#pause-icon\").removeClass(\"fa-play\");\r\n $(\"#display\").removeClass('break');\r\n $(\"#clock-phase\").text(\"Session\");\r\n $(\"#current-session\").text(timers.sessionTime + \" Min\");\r\n $(\"#current-break\").text(timers.breakTime + \" Min\");\r\n setCountDown();\r\n}","function onAccelBack(){\n console.log('Close Screen and Stop Loop');\n inNoiseMon = false;\n CountScreen.hide();\n main.hide();\n}","function clearScreen() {\n displayScreen.innerHTML = \"\";\n}","_onUpdateDisplay() {}","function clearDisplay() {\n\tTi.API.info('called clearDisplay');\n // set the display to empty string\n $.lbl_display.text = '';\n $.lbl_mstore.text = '';\n $.lbl_arabic.text = '';//(0).toString(); //(current_num.arabic).toString();\n // reset the characters pressed variables to empty string\n last0_char = '',\n last1_char = '',\n last2_char = '',\n last_3_chars = '';\n dimChars(null);\n}","function stopFramerateDisplayUpdate() {\n\tdebugOn = false;\n}","function displayStopWatcher(miliSeconds) {\n milisecDisplay(miliSeconds);\n\n document.title = display;\n stopWatcherDisplay.textContent = display;\n }","function clearScreens() {\n\n numericString = '';\n display.innerHTML = '';\n units.innerHTML = '';\n document.getElementById('results').innerHTML = 'Results will appear here...';\n document.getElementById('planet').className = \"\";\n\n enablePlaceholder();\n enableDisabled();\n\n }","function clearDisplay() {\n display.textContent = \"\";\n}","function onAccelBack(){\n console.log('Close Screen and Stop Loop');\n inWristCount = false;\n CountScreen.hide(); \n}","function cleanDisplay() {\n var c = document.createElement('div');\n c.innerHTML = 'x';\n c.style.visibility = 'hidden';\n c.style.height = '1px';\n document.body.insertBefore(c, document.body.firstChild);\n window.setTimeout(function () {document.body.removeChild(c)}, 1);\n }","function clearScreen() {\n $('#details').text('You closed tab, Need to clear you from online users. If you didnt mean to leave, click HOME link and rejoin.');\n $('.sqr-con').css('display','none');\n}","function clearScreen(){\n\tconsole.log(\"Clear\");\n\tgreen = green+1;\n\tif(green>=3){\n\t\tgreen=0;\n\t}\n\tiScreen();\n\taddScreen();\n}","function reset()\r\n{\r\n \r\n // Clear outstanding timers if show still in progress \r\n for (var i = 0; i < CUEtimeoutArray.length; i++) {\r\n clearTimeout(CUEtimeoutArray[i]);\r\n }\r\n\r\n}","function clearMainDisplay() {\r\n displayMain.textContent = \"\";\r\n}","function stop() {\n\t\tclearInterval(timer);\n\t\tdocument.getElementById(\"display\").innerHTML = \"\";\n\t\t// go back to beginning so it doesn't function as a pause button\n\t\tframeIndex = 0;\n\t\tswitchEnabled();\n\t}","function onDisplayReady() {\n exports.startFromIndex(sozi.location.getFrameIndex());\n\n // Hack to fix the blank screen bug in Chrome/Chromium\n // See https://github.com/senshu/Sozi/issues/109\n window.setTimeout(display.update, 1);\n }","function clearScreen() {\n getlocation.html(\"\");\n locationStatus.html(\"\");\n showTemp.html(\"\");\n shortNews.html(\"\");\n dataTable.hide();\n $(\"#errorMessage\").hide();\n content.hide();\n loader.hide();\n }","function hide()\n{ \n clearTimeout(window.updateTimer);\n}","function hide()\n{\n // Stop any timers to prevent CPU usage\n}","function hide()\n{\n // Stop any timers to prevent CPU usage\n}","function hide()\n{\n // Stop any timers to prevent CPU usage\n}","function hide()\n{\n // Stop any timers to prevent CPU usage\n}","function hide()\n{\n // Stop any timers to prevent CPU usage\n}","function displayChange() {\n now = new Date();\n\n if (display.on && nsConfigured && (bgNext < now.getTime())) {\n wakeupFetch();\n }\n}","function clearScreen() {\n result.innerHTML = \"\";\n reportInfo.style.display = \"none\";\n }","clearDisplay() {\n this.current.innerHTML = '0';\n this.last.innerHTML = '';\n return\n }","function clearScreen() {\n output.innerText = 0\n}","function clearDisplay() {\n rmNodes(document.getElementById('wolframAlphaResponses'));\n rmNodes(document.getElementById('progressDisplay'));\n}","function limpiar(){\r\n\t\tdisplay.textContent = \"\";\r\n\t\t}","_onEnd() {\n this._duringDisplayAnim = false;\n // - need to re render at the end of the display animation\n this._setAnimParams();\n }","function clearScreen() {\n buffer = \"0\";\n total = 0;\n operator = null;\n}","function clearDataDisplay() {\n body.removeChild(data_display);\n}","function l(){\n\tu.clearInterval();\n\tgameEvents();\n u.startInterval(function() {\n u.clear(c,0,0,0);\n\t\tgr();\n dr();\n }, fr);\n}","function clearScreen() {\r\n document.querySelector(\"div.c\").style.display = \"none\";\r\n document.querySelector(\"div.d\").style.display = \"none\";\r\n document.querySelector(\"div.e\").style.display = \"none\";\r\n document.querySelector(\"div.f\").style.display = \"none\";\r\n }","function clr() {\n document.getElementById(\"display\").innerHTML = \"\";\n document.getElementById(\"display1\").innerHTML = \"0\";\n console.log(\"clear\");\n}","idle() {\n this._idle = true;\n this._animation.stop();\n this.emit('clear');\n this.emit('idle');\n }","function thaw() {\n log(\"clearing stop flag and scheduling a slide change\");\n\n if (stop) {\n jQuery('#panel1').show();\n setTimeout(function () {\n hideTopPanel();\n }, SETTINGS.CHANGETIME);\n }\n stop = false;\n}","function clearScreen() {\n activeNumber = '';\n activeOperator = '';\n storedNumber = '';\n result = '';\n updateScreen();\n}","clearDisplay() {\n if (!this.closing) {\n this.closing = true;\n document\n .getElementById(\"tabmail\")\n .closeTab(this.folderDisplay._tabInfo, true);\n }\n }","function removeTime() {\r\n onlyOnce = false;\r\n setScreen();\r\n $(window).unbind('mousewheel keydown');\r\n setTimeout(function() {\r\n $('#close-gate').click();\r\n }, 10 * 1000);\r\n }","function clearScreenLoop() {\n var now = new Date();\n var cleanTime = (new Date()).setHours(4,0,0);\n var diff = cleanTime - now;\n if (diff < 0) diff += 24 * 60 * 60 * 1000;\n\n setTimeout(\n function() {\n clearScreen()\n clearScreenLoop();\n },\n diff\n );\n}","_disposeDisplay(object) {}","function reset(){\n time = 10;\n\t\t $(\"#display\").html('

Time Remaining: ' + time + ' seconds

');\n \t}","function clickedClear(targetSlot) {\n if (!guiIsLocked) {\n //console.log(\"CLEAR FUNCTION ACTIVATED\");\n targetSlot.blankOut();\n clickedClose();\n }\n //document.getElementById(\"loadoutpanel\").innerHTML = siteManager.displayLoadout();\n}","function kill_display_frame(){\n\n display = document.getElementById('display_frame');\n\n console.log(display);\n\n display.parentElement.removeChild(display);\n\n}","function resetDisplay() {\n//select and store the overlay in a variable \nconst ov = document.getElementById('overlay');\n//hide overlay \nov.style.visibility = \"hidden\";\n//call game object's start function \ngameOne.startGame();\n}","function refreshDisplayNoOver() {\n p.getBubbleDrawer().clear();\n drawScales();\n p.getBubbleDrawer().drawDate(year.current);\n drawBubbles();\n drawBubblesNames();\n p.getBubbleDrawer().display();\n}","function reset() {\n clearInterval(interval);\n ms = s = m = h = 0;\n document.getElementById(\"display\").innerHTML = \"00:00:00:00\";\n document.getElementById(\"startStop\").innerHTML = \"Start\";\n document.getElementById('lapText').innerHTML = \"\";\n status = \"stopped\";\n}","repaint() {\n this.container.style.display = 'none'\n setTimeout(() => this.container.style.display = '', 200)\n }","function blankScreen(callback) {\n context.fillStyle = \"#FFF\";\n context.clearRect(0, 0, $(\"#mainCanvas\").width(), $(\"#mainCanvas\").height());\n context.fillRect(0, 0, $(\"#mainCanvas\").width(), $(\"#mainCanvas\").width());\n setTimeout(callback, 500);\n}","function displayBoard(){\n\t$(\"#container\").html(\"\");\n\tdisplayTimer();\n\tdisplaySkor();\n\tdisplaySoal();\n\tdisplayOpsi();\n\treturn null;\n}","function clear_screen(){\r\n if (tracing) return;\r\n ctx.clearRect(0, 0, cnvs.width, cnvs.height);\r\n}","function clearDisplay() {\n display = 0;\n operator_pressed = false;\n previous_number = 0;\n current_operation = \"\";\n document.getElementById(\"display\").value = display;\n}","function clearDisplay() {\n result = 0;\n recentOp = \"\";\n keySelect.display.value = \"\";\n newNum = true;\n }","function clearDisplay() {\n $(\"#characterStart\").html(\"\");\n $(\"#yourCharacter\").html(\"\");\n $(\"#yourEnemy\").html(\"\");\n}","function lvlScreen(){\n\tconsole.log('lvlScreen');\n\tdocument.removeEventListener('keydown', enter, false);\n\tdisplayInstruct = false;\n\tbackgroundCtx.clearRect(0, 0, backgroundCan.width, backgroundCan.height);\n}","function endDemo() {\n \tcopperScreen.fill(\"#ffffff\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Whiteout!\n \tif (DEBUG) document.getElementById('scheduleInfo').innerHTML = \"

END OF DEMO. \";\t\t\t// Guess what?\n }","function stopTimeControl(){\n console.log(\"clear\")\n clearInterval(myTimer);\n clearTimeout(myTimeout);\n $(\".timerBox\").html(\"\").hide();\n}","function displayOff() {\n clear();\n index = 0\n document.getElementById(\"display\").inputMode = sevenSergment();\n}","function onFullScreenChange() {\r\n\t\t/*//Replacing all setInterval methods launched by slider\r\n\t\twindow.oldSetInterval = window.setInterval;\r\n\t\twindow.setInterval = function(func, interval) {\r\n\t\t var interval = oldSetInterval(func, interval);\r\n\t\t clearInterval(interval);\r\n\t\t}*/\r\n\t\t//Unwrap our container from dirty slider divS and empty it\r\n\t\t$('#screenContent').unwrap();\r\n\t\t$('#screenContent').html('');\r\n\t}","function clearDisplay() {\n // Removing all children from an element\n var element = document.getElementById(\"rightSideBar\");\n document.getElementById(\"docDisplay\").innerHTML = \"\";\n while (element.firstChild) {\n element.removeChild(element.firstChild);\n }\n}","function timeIsUpScreen() {\n console.log('timeIsUpScreen')\n $('#question').text(\"Time Is Up!\")\n $('#timer').empty();\n $(\"#answer1\").empty();\n $(\"#answer2\").empty();\n $(\"#answer3\").empty();\n $(\"#answer4\").empty();\n $(\"#gif\").show();\n startResponseScreen()\n timeUpper = true;\n}","function clearScreen(){\n\t $('body .content').empty();\n\t}","function clearOutput () {\n mainView.send('output-clear');\n}","function rail_lights(){\n $(\"#home_left\").show();\n $(\"#home_back\").hide();\n var l = setInterval(light_switch, 700);\n\n var clear = function(){\n clearInterval(l);\n };\n\n setTimeout(clear, 5800);\n}","function reset() {\n time = 0;\n lap = 1;\n\n $(\"#display\").text(\"00:00\");\n}","function hideOverlayQr() {\n canvas.style.display='block';\n document.getElementById('result').style.display = 'block';\n document.getElementById('container-timer').style.display = 'block';\n document.getElementById('expImgDiv').style.display = 'none';\n document.getElementById('messageQr').style.display = 'none';\n document.getElementById('perbarui-button').style.display = 'none';\n }","function stopShowing() {\n\t}","function stopShowing() {\n\t}","function resetScreen() {\n currentOperationScreen.textContent = '0';\n lastOperationScreen.textContent = 'xxx';\n holdOne = '';\n holdTwo = '';\n currentOperation = null;\n}","function clear() {\n clearInterval(int);\n}","function clearDisplay(){\n\tvar inputScreen = document.querySelector('.screen');\n\t//blank display\n\tinputScreen.innerHTML = '';\n\t//factorials allowed\n\tfactorialBool = true;\n\t//start new screen on next button\n\tstartNew = true;\n\t//allow decimal point to be placed again\n\tif (document.getElementById(\"decimal\").classList.contains(\"selected\")){\n\t\tdecimalBool = true;\n\t\tdocument.getElementById(\"deci\").classList.remove(\"disabled\");\n\t}\n\t//Disable operators; can't be the first thing entered\n\tvar elements = document.getElementsByClassName(\"operator\");\n\tfor (var i = 0, len = elements.length; i < len; i++) {\n\t\tif(elements[i].innerHTML != '-'){\n \t\t\telements[i].classList.add('disabled');\n\t\t}\n\t}\n}","function clearScreen() {\n //set variables to null\n a = null;\n b = null;\n symbol = null;\n //clear screen\n $('#screen').text('');\n return;\n}","startDisplayTimer(delayInMs = 1000) {\n const displayCallback = () => {\n this.display();\n if (!this.isDone()) {\n this.timeoutHandle = setTimeout(displayCallback, delayInMs);\n }\n };\n this.timeoutHandle = setTimeout(displayCallback, delayInMs);\n }","startDisplayTimer(delayInMs = 1000) {\n const displayCallback = () => {\n this.display();\n if (!this.isDone()) {\n this.timeoutHandle = setTimeout(displayCallback, delayInMs);\n }\n };\n this.timeoutHandle = setTimeout(displayCallback, delayInMs);\n }","stop() {\n if (this.fps == 60) {\n displayUnbind(this.runLoop);\n } else {\n window.clearTimeout(this.runLoop);\n }\n\n delete this.runLoop;\n }","function hideDisplayFrame() {\n\tparent.postMessage({action: 'hideMainDisplay'}, context.url);\n}","function activity(){\n //reset the secondsSinceLastActivity variable\n //back to 0\n document.getElementById(\"sit\").hidden = true;\n secondsSinceLastActivity = 0;\n }","function displayGame() {\n document.getElementById('board').classList.remove('no-display');\n document.getElementById('timer-and-home').classList.remove('no-display');\n document.getElementById('introduction').remove();\n document.getElementById('start-game').remove();\n document.getElementById('board-content').classList.remove('no-display');\n setTimer();\n}","function clearScreen() {\n while (content.hasChildNodes())\n content.removeChild(content.lastChild)\n}","function changeDisplay(val) {\r\n pomodoro.stop();\r\n pomodoro.time = val * 60;\r\n sessionDisplay.innerHTML = `${val}:00`;\r\n }","function clearChat() {\n $(\"gameOutputField\").innerHTML = \"\";\n displayMessage(\"see chat history\");\n $(\"gameInputField\").focus();\n }","function clearFun() {\n totalScore = 0.0;\n numTry = 0;\n if (timer != null)\n clearTimeout(timer);\n homeScreen();\n}","function reset() {\n time = 30;\n // DONE: Change the \"display\" div to \"00:00.\"\n $(\".timer\").text(\"00:00\");\n }","function clearScreen(){\n calculator.displayValue='0';\n calculator.firstOperand=null;\n calculator.waitingForSecondOperand=true;\n calculator.operator=null;\n \n}","function exitTimer() {\n clearInterval(interval);\n console.log('Stopping Timer...')\n setTimeout(closeTimerDisplay, 3000);\n getSecond.innerHTML = '00';\n getMinute.innerHTML = '00';\n getHour.innerHTML = '00';\n }","function endTimer(){\n stopTheTimer();\n clearScreen();\n displayTimeIsOverScreen();\n var timeOverPost1s = setTimeout(function(){\n clearScreen();\n displayAllAnswered();\n }, 1000);\n}","function resetDisplay() {\n\n $(\"#display-results\").empty();\n\n}","afterShown() {}"],"string":"[\n \"stopDisplayTimer() {\\n if (this.timeoutHandle) {\\n clearTimeout(this.timeoutHandle);\\n this.timeoutHandle = undefined;\\n }\\n this.display();\\n }\",\n \"stopDisplayTimer() {\\n if (this.timeoutHandle) {\\n clearTimeout(this.timeoutHandle);\\n this.timeoutHandle = undefined;\\n }\\n this.display();\\n }\",\n \"function clearScreen() {\\n isFloat = false;\\n isLastInputOperation = false;\\n display.innerHTML = '';\\n}\",\n \"function resetDisplay() {\\n\\t\\tctx.clearRect(0,0,610,550);\\n\\t\\tctx.strokeRect(40, 10, 530, 539);\\n\\t\\t$(\\\"#controls button\\\").button(\\\"disable\\\");\\n\\t\\t$(\\\"#seeker\\\").slider(\\\"disable\\\");\\n\\t\\t$(\\\"#display-options input\\\").attr(\\\"disabled\\\",\\\"disabled\\\");\\n\\t\\t$(\\\".game-status .p1, .game-status .p2, .game-status .message\\\").empty();\\n\\t\\t$(\\\".game-status .message\\\").removeClass(\\\"neutral-text p1-text p2-text\\\").css(\\\"visibility\\\",\\\"hidden\\\");\\n\\t\\t$(\\\".display .p1-text, .display .p2-text\\\").html(1000);\\n\\t\\t$(\\\".names-time .time\\\").html(0);\\n\\t\\t$(\\\"#canvas-alt\\\").remove();\\n\\t}\",\n \"function clearDisplay() {\\n hideContainers();\\n resetCopyNotes();\\n resetClipboardNote();\\n }\",\n \"function clearScreen() {\\n currentOperationScreen.textContent = '';\\n clearDisplay = false;\\n}\",\n \"function displayChanged() {\\n if (display.on) {\\n startTimer();\\n } else {\\n stopTimer();\\n }\\n}\",\n \"function syncDisplay() {\\n //this is the point where the system clock has just reached 60s and therefore the display can now be\\n //synchronised, the interval can also be changed to monitoring every minute instead of every second\\n //this should only execute once to clear the 1s period setInterval, change the delay interval to 60s\\n //and run the setInterval routine at 60s\\n if (moment().seconds() === 00 && !firstTime) {\\n intvlDelay = 60000;\\n clearInterval(systemInitDisplay); //clear the setInterval which monitored every 1s DECOMMENT THIS!!!!!\\n minuteMon(intvlDelay); //intiate the setInterval which monitors every 60s\\n }\\n noEntry = 0;\\n}\",\n \"function displayInterval (clr){\\n if (clr === 1) {\\n clearInterval(dispInt);\\n }\\n else {\\n dispInt = setInterval(function(){\\n ansDisplayEl.remove();\\n },1000)\\n}\\n}\",\n \"function noDisplay() {\\n _displaycontrol &= ~LCD_DISPLAYON;\\n command(LCD_DISPLAYCONTROL | _displaycontrol);\\n}\",\n \"function resetDisplay(){\\r\\n $(\\\"#pause-icon\\\").addClass(\\\"fa-pause\\\");\\r\\n $(\\\"#pause-icon\\\").removeClass(\\\"fa-play\\\");\\r\\n $(\\\"#display\\\").removeClass('break');\\r\\n $(\\\"#clock-phase\\\").text(\\\"Session\\\");\\r\\n $(\\\"#current-session\\\").text(timers.sessionTime + \\\" Min\\\");\\r\\n $(\\\"#current-break\\\").text(timers.breakTime + \\\" Min\\\");\\r\\n setCountDown();\\r\\n}\",\n \"function onAccelBack(){\\n console.log('Close Screen and Stop Loop');\\n inNoiseMon = false;\\n CountScreen.hide();\\n main.hide();\\n}\",\n \"function clearScreen() {\\n displayScreen.innerHTML = \\\"\\\";\\n}\",\n \"_onUpdateDisplay() {}\",\n \"function clearDisplay() {\\n\\tTi.API.info('called clearDisplay');\\n // set the display to empty string\\n $.lbl_display.text = '';\\n $.lbl_mstore.text = '';\\n $.lbl_arabic.text = '';//(0).toString(); //(current_num.arabic).toString();\\n // reset the characters pressed variables to empty string\\n last0_char = '',\\n last1_char = '',\\n last2_char = '',\\n last_3_chars = '';\\n dimChars(null);\\n}\",\n \"function stopFramerateDisplayUpdate() {\\n\\tdebugOn = false;\\n}\",\n \"function displayStopWatcher(miliSeconds) {\\n milisecDisplay(miliSeconds);\\n\\n document.title = display;\\n stopWatcherDisplay.textContent = display;\\n }\",\n \"function clearScreens() {\\n\\n numericString = '';\\n display.innerHTML = '';\\n units.innerHTML = '';\\n document.getElementById('results').innerHTML = 'Results will appear here...';\\n document.getElementById('planet').className = \\\"\\\";\\n\\n enablePlaceholder();\\n enableDisabled();\\n\\n }\",\n \"function clearDisplay() {\\n display.textContent = \\\"\\\";\\n}\",\n \"function onAccelBack(){\\n console.log('Close Screen and Stop Loop');\\n inWristCount = false;\\n CountScreen.hide(); \\n}\",\n \"function cleanDisplay() {\\n var c = document.createElement('div');\\n c.innerHTML = 'x';\\n c.style.visibility = 'hidden';\\n c.style.height = '1px';\\n document.body.insertBefore(c, document.body.firstChild);\\n window.setTimeout(function () {document.body.removeChild(c)}, 1);\\n }\",\n \"function clearScreen() {\\n $('#details').text('You closed tab, Need to clear you from online users. If you didnt mean to leave, click HOME link and rejoin.');\\n $('.sqr-con').css('display','none');\\n}\",\n \"function clearScreen(){\\n\\tconsole.log(\\\"Clear\\\");\\n\\tgreen = green+1;\\n\\tif(green>=3){\\n\\t\\tgreen=0;\\n\\t}\\n\\tiScreen();\\n\\taddScreen();\\n}\",\n \"function reset()\\r\\n{\\r\\n \\r\\n // Clear outstanding timers if show still in progress \\r\\n for (var i = 0; i < CUEtimeoutArray.length; i++) {\\r\\n clearTimeout(CUEtimeoutArray[i]);\\r\\n }\\r\\n\\r\\n}\",\n \"function clearMainDisplay() {\\r\\n displayMain.textContent = \\\"\\\";\\r\\n}\",\n \"function stop() {\\n\\t\\tclearInterval(timer);\\n\\t\\tdocument.getElementById(\\\"display\\\").innerHTML = \\\"\\\";\\n\\t\\t// go back to beginning so it doesn't function as a pause button\\n\\t\\tframeIndex = 0;\\n\\t\\tswitchEnabled();\\n\\t}\",\n \"function onDisplayReady() {\\n exports.startFromIndex(sozi.location.getFrameIndex());\\n\\n // Hack to fix the blank screen bug in Chrome/Chromium\\n // See https://github.com/senshu/Sozi/issues/109\\n window.setTimeout(display.update, 1);\\n }\",\n \"function clearScreen() {\\n getlocation.html(\\\"\\\");\\n locationStatus.html(\\\"\\\");\\n showTemp.html(\\\"\\\");\\n shortNews.html(\\\"\\\");\\n dataTable.hide();\\n $(\\\"#errorMessage\\\").hide();\\n content.hide();\\n loader.hide();\\n }\",\n \"function hide()\\n{ \\n clearTimeout(window.updateTimer);\\n}\",\n \"function hide()\\n{\\n // Stop any timers to prevent CPU usage\\n}\",\n \"function hide()\\n{\\n // Stop any timers to prevent CPU usage\\n}\",\n \"function hide()\\n{\\n // Stop any timers to prevent CPU usage\\n}\",\n \"function hide()\\n{\\n // Stop any timers to prevent CPU usage\\n}\",\n \"function hide()\\n{\\n // Stop any timers to prevent CPU usage\\n}\",\n \"function displayChange() {\\n now = new Date();\\n\\n if (display.on && nsConfigured && (bgNext < now.getTime())) {\\n wakeupFetch();\\n }\\n}\",\n \"function clearScreen() {\\n result.innerHTML = \\\"\\\";\\n reportInfo.style.display = \\\"none\\\";\\n }\",\n \"clearDisplay() {\\n this.current.innerHTML = '0';\\n this.last.innerHTML = '';\\n return\\n }\",\n \"function clearScreen() {\\n output.innerText = 0\\n}\",\n \"function clearDisplay() {\\n rmNodes(document.getElementById('wolframAlphaResponses'));\\n rmNodes(document.getElementById('progressDisplay'));\\n}\",\n \"function limpiar(){\\r\\n\\t\\tdisplay.textContent = \\\"\\\";\\r\\n\\t\\t}\",\n \"_onEnd() {\\n this._duringDisplayAnim = false;\\n // - need to re render at the end of the display animation\\n this._setAnimParams();\\n }\",\n \"function clearScreen() {\\n buffer = \\\"0\\\";\\n total = 0;\\n operator = null;\\n}\",\n \"function clearDataDisplay() {\\n body.removeChild(data_display);\\n}\",\n \"function l(){\\n\\tu.clearInterval();\\n\\tgameEvents();\\n u.startInterval(function() {\\n u.clear(c,0,0,0);\\n\\t\\tgr();\\n dr();\\n }, fr);\\n}\",\n \"function clearScreen() {\\r\\n document.querySelector(\\\"div.c\\\").style.display = \\\"none\\\";\\r\\n document.querySelector(\\\"div.d\\\").style.display = \\\"none\\\";\\r\\n document.querySelector(\\\"div.e\\\").style.display = \\\"none\\\";\\r\\n document.querySelector(\\\"div.f\\\").style.display = \\\"none\\\";\\r\\n }\",\n \"function clr() {\\n document.getElementById(\\\"display\\\").innerHTML = \\\"\\\";\\n document.getElementById(\\\"display1\\\").innerHTML = \\\"0\\\";\\n console.log(\\\"clear\\\");\\n}\",\n \"idle() {\\n this._idle = true;\\n this._animation.stop();\\n this.emit('clear');\\n this.emit('idle');\\n }\",\n \"function thaw() {\\n log(\\\"clearing stop flag and scheduling a slide change\\\");\\n\\n if (stop) {\\n jQuery('#panel1').show();\\n setTimeout(function () {\\n hideTopPanel();\\n }, SETTINGS.CHANGETIME);\\n }\\n stop = false;\\n}\",\n \"function clearScreen() {\\n activeNumber = '';\\n activeOperator = '';\\n storedNumber = '';\\n result = '';\\n updateScreen();\\n}\",\n \"clearDisplay() {\\n if (!this.closing) {\\n this.closing = true;\\n document\\n .getElementById(\\\"tabmail\\\")\\n .closeTab(this.folderDisplay._tabInfo, true);\\n }\\n }\",\n \"function removeTime() {\\r\\n onlyOnce = false;\\r\\n setScreen();\\r\\n $(window).unbind('mousewheel keydown');\\r\\n setTimeout(function() {\\r\\n $('#close-gate').click();\\r\\n }, 10 * 1000);\\r\\n }\",\n \"function clearScreenLoop() {\\n var now = new Date();\\n var cleanTime = (new Date()).setHours(4,0,0);\\n var diff = cleanTime - now;\\n if (diff < 0) diff += 24 * 60 * 60 * 1000;\\n\\n setTimeout(\\n function() {\\n clearScreen()\\n clearScreenLoop();\\n },\\n diff\\n );\\n}\",\n \"_disposeDisplay(object) {}\",\n \"function reset(){\\n time = 10;\\n\\t\\t $(\\\"#display\\\").html('

Time Remaining: ' + time + ' seconds

');\\n \\t}\",\n \"function clickedClear(targetSlot) {\\n if (!guiIsLocked) {\\n //console.log(\\\"CLEAR FUNCTION ACTIVATED\\\");\\n targetSlot.blankOut();\\n clickedClose();\\n }\\n //document.getElementById(\\\"loadoutpanel\\\").innerHTML = siteManager.displayLoadout();\\n}\",\n \"function kill_display_frame(){\\n\\n display = document.getElementById('display_frame');\\n\\n console.log(display);\\n\\n display.parentElement.removeChild(display);\\n\\n}\",\n \"function resetDisplay() {\\n//select and store the overlay in a variable \\nconst ov = document.getElementById('overlay');\\n//hide overlay \\nov.style.visibility = \\\"hidden\\\";\\n//call game object's start function \\ngameOne.startGame();\\n}\",\n \"function refreshDisplayNoOver() {\\n p.getBubbleDrawer().clear();\\n drawScales();\\n p.getBubbleDrawer().drawDate(year.current);\\n drawBubbles();\\n drawBubblesNames();\\n p.getBubbleDrawer().display();\\n}\",\n \"function reset() {\\n clearInterval(interval);\\n ms = s = m = h = 0;\\n document.getElementById(\\\"display\\\").innerHTML = \\\"00:00:00:00\\\";\\n document.getElementById(\\\"startStop\\\").innerHTML = \\\"Start\\\";\\n document.getElementById('lapText').innerHTML = \\\"\\\";\\n status = \\\"stopped\\\";\\n}\",\n \"repaint() {\\n this.container.style.display = 'none'\\n setTimeout(() => this.container.style.display = '', 200)\\n }\",\n \"function blankScreen(callback) {\\n context.fillStyle = \\\"#FFF\\\";\\n context.clearRect(0, 0, $(\\\"#mainCanvas\\\").width(), $(\\\"#mainCanvas\\\").height());\\n context.fillRect(0, 0, $(\\\"#mainCanvas\\\").width(), $(\\\"#mainCanvas\\\").width());\\n setTimeout(callback, 500);\\n}\",\n \"function displayBoard(){\\n\\t$(\\\"#container\\\").html(\\\"\\\");\\n\\tdisplayTimer();\\n\\tdisplaySkor();\\n\\tdisplaySoal();\\n\\tdisplayOpsi();\\n\\treturn null;\\n}\",\n \"function clear_screen(){\\r\\n if (tracing) return;\\r\\n ctx.clearRect(0, 0, cnvs.width, cnvs.height);\\r\\n}\",\n \"function clearDisplay() {\\n display = 0;\\n operator_pressed = false;\\n previous_number = 0;\\n current_operation = \\\"\\\";\\n document.getElementById(\\\"display\\\").value = display;\\n}\",\n \"function clearDisplay() {\\n result = 0;\\n recentOp = \\\"\\\";\\n keySelect.display.value = \\\"\\\";\\n newNum = true;\\n }\",\n \"function clearDisplay() {\\n $(\\\"#characterStart\\\").html(\\\"\\\");\\n $(\\\"#yourCharacter\\\").html(\\\"\\\");\\n $(\\\"#yourEnemy\\\").html(\\\"\\\");\\n}\",\n \"function lvlScreen(){\\n\\tconsole.log('lvlScreen');\\n\\tdocument.removeEventListener('keydown', enter, false);\\n\\tdisplayInstruct = false;\\n\\tbackgroundCtx.clearRect(0, 0, backgroundCan.width, backgroundCan.height);\\n}\",\n \"function endDemo() {\\n \\tcopperScreen.fill(\\\"#ffffff\\\");\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t// Whiteout!\\n \\tif (DEBUG) document.getElementById('scheduleInfo').innerHTML = \\\"

END OF DEMO. \\\";\\t\\t\\t// Guess what?\\n }\",\n \"function stopTimeControl(){\\n console.log(\\\"clear\\\")\\n clearInterval(myTimer);\\n clearTimeout(myTimeout);\\n $(\\\".timerBox\\\").html(\\\"\\\").hide();\\n}\",\n \"function displayOff() {\\n clear();\\n index = 0\\n document.getElementById(\\\"display\\\").inputMode = sevenSergment();\\n}\",\n \"function onFullScreenChange() {\\r\\n\\t\\t/*//Replacing all setInterval methods launched by slider\\r\\n\\t\\twindow.oldSetInterval = window.setInterval;\\r\\n\\t\\twindow.setInterval = function(func, interval) {\\r\\n\\t\\t var interval = oldSetInterval(func, interval);\\r\\n\\t\\t clearInterval(interval);\\r\\n\\t\\t}*/\\r\\n\\t\\t//Unwrap our container from dirty slider divS and empty it\\r\\n\\t\\t$('#screenContent').unwrap();\\r\\n\\t\\t$('#screenContent').html('');\\r\\n\\t}\",\n \"function clearDisplay() {\\n // Removing all children from an element\\n var element = document.getElementById(\\\"rightSideBar\\\");\\n document.getElementById(\\\"docDisplay\\\").innerHTML = \\\"\\\";\\n while (element.firstChild) {\\n element.removeChild(element.firstChild);\\n }\\n}\",\n \"function timeIsUpScreen() {\\n console.log('timeIsUpScreen')\\n $('#question').text(\\\"Time Is Up!\\\")\\n $('#timer').empty();\\n $(\\\"#answer1\\\").empty();\\n $(\\\"#answer2\\\").empty();\\n $(\\\"#answer3\\\").empty();\\n $(\\\"#answer4\\\").empty();\\n $(\\\"#gif\\\").show();\\n startResponseScreen()\\n timeUpper = true;\\n}\",\n \"function clearScreen(){\\n\\t $('body .content').empty();\\n\\t}\",\n \"function clearOutput () {\\n mainView.send('output-clear');\\n}\",\n \"function rail_lights(){\\n $(\\\"#home_left\\\").show();\\n $(\\\"#home_back\\\").hide();\\n var l = setInterval(light_switch, 700);\\n\\n var clear = function(){\\n clearInterval(l);\\n };\\n\\n setTimeout(clear, 5800);\\n}\",\n \"function reset() {\\n time = 0;\\n lap = 1;\\n\\n $(\\\"#display\\\").text(\\\"00:00\\\");\\n}\",\n \"function hideOverlayQr() {\\n canvas.style.display='block';\\n document.getElementById('result').style.display = 'block';\\n document.getElementById('container-timer').style.display = 'block';\\n document.getElementById('expImgDiv').style.display = 'none';\\n document.getElementById('messageQr').style.display = 'none';\\n document.getElementById('perbarui-button').style.display = 'none';\\n }\",\n \"function stopShowing() {\\n\\t}\",\n \"function stopShowing() {\\n\\t}\",\n \"function resetScreen() {\\n currentOperationScreen.textContent = '0';\\n lastOperationScreen.textContent = 'xxx';\\n holdOne = '';\\n holdTwo = '';\\n currentOperation = null;\\n}\",\n \"function clear() {\\n clearInterval(int);\\n}\",\n \"function clearDisplay(){\\n\\tvar inputScreen = document.querySelector('.screen');\\n\\t//blank display\\n\\tinputScreen.innerHTML = '';\\n\\t//factorials allowed\\n\\tfactorialBool = true;\\n\\t//start new screen on next button\\n\\tstartNew = true;\\n\\t//allow decimal point to be placed again\\n\\tif (document.getElementById(\\\"decimal\\\").classList.contains(\\\"selected\\\")){\\n\\t\\tdecimalBool = true;\\n\\t\\tdocument.getElementById(\\\"deci\\\").classList.remove(\\\"disabled\\\");\\n\\t}\\n\\t//Disable operators; can't be the first thing entered\\n\\tvar elements = document.getElementsByClassName(\\\"operator\\\");\\n\\tfor (var i = 0, len = elements.length; i < len; i++) {\\n\\t\\tif(elements[i].innerHTML != '-'){\\n \\t\\t\\telements[i].classList.add('disabled');\\n\\t\\t}\\n\\t}\\n}\",\n \"function clearScreen() {\\n //set variables to null\\n a = null;\\n b = null;\\n symbol = null;\\n //clear screen\\n $('#screen').text('');\\n return;\\n}\",\n \"startDisplayTimer(delayInMs = 1000) {\\n const displayCallback = () => {\\n this.display();\\n if (!this.isDone()) {\\n this.timeoutHandle = setTimeout(displayCallback, delayInMs);\\n }\\n };\\n this.timeoutHandle = setTimeout(displayCallback, delayInMs);\\n }\",\n \"startDisplayTimer(delayInMs = 1000) {\\n const displayCallback = () => {\\n this.display();\\n if (!this.isDone()) {\\n this.timeoutHandle = setTimeout(displayCallback, delayInMs);\\n }\\n };\\n this.timeoutHandle = setTimeout(displayCallback, delayInMs);\\n }\",\n \"stop() {\\n if (this.fps == 60) {\\n displayUnbind(this.runLoop);\\n } else {\\n window.clearTimeout(this.runLoop);\\n }\\n\\n delete this.runLoop;\\n }\",\n \"function hideDisplayFrame() {\\n\\tparent.postMessage({action: 'hideMainDisplay'}, context.url);\\n}\",\n \"function activity(){\\n //reset the secondsSinceLastActivity variable\\n //back to 0\\n document.getElementById(\\\"sit\\\").hidden = true;\\n secondsSinceLastActivity = 0;\\n }\",\n \"function displayGame() {\\n document.getElementById('board').classList.remove('no-display');\\n document.getElementById('timer-and-home').classList.remove('no-display');\\n document.getElementById('introduction').remove();\\n document.getElementById('start-game').remove();\\n document.getElementById('board-content').classList.remove('no-display');\\n setTimer();\\n}\",\n \"function clearScreen() {\\n while (content.hasChildNodes())\\n content.removeChild(content.lastChild)\\n}\",\n \"function changeDisplay(val) {\\r\\n pomodoro.stop();\\r\\n pomodoro.time = val * 60;\\r\\n sessionDisplay.innerHTML = `${val}:00`;\\r\\n }\",\n \"function clearChat() {\\n $(\\\"gameOutputField\\\").innerHTML = \\\"\\\";\\n displayMessage(\\\"see chat history\\\");\\n $(\\\"gameInputField\\\").focus();\\n }\",\n \"function clearFun() {\\n totalScore = 0.0;\\n numTry = 0;\\n if (timer != null)\\n clearTimeout(timer);\\n homeScreen();\\n}\",\n \"function reset() {\\n time = 30;\\n // DONE: Change the \\\"display\\\" div to \\\"00:00.\\\"\\n $(\\\".timer\\\").text(\\\"00:00\\\");\\n }\",\n \"function clearScreen(){\\n calculator.displayValue='0';\\n calculator.firstOperand=null;\\n calculator.waitingForSecondOperand=true;\\n calculator.operator=null;\\n \\n}\",\n \"function exitTimer() {\\n clearInterval(interval);\\n console.log('Stopping Timer...')\\n setTimeout(closeTimerDisplay, 3000);\\n getSecond.innerHTML = '00';\\n getMinute.innerHTML = '00';\\n getHour.innerHTML = '00';\\n }\",\n \"function endTimer(){\\n stopTheTimer();\\n clearScreen();\\n displayTimeIsOverScreen();\\n var timeOverPost1s = setTimeout(function(){\\n clearScreen();\\n displayAllAnswered();\\n }, 1000);\\n}\",\n \"function resetDisplay() {\\n\\n $(\\\"#display-results\\\").empty();\\n\\n}\",\n \"afterShown() {}\"\n]"},"negative_scores":{"kind":"list like","value":["0.75788224","0.75788224","0.6963311","0.69609576","0.69411105","0.6914811","0.68918186","0.6850789","0.6809287","0.6784891","0.6752296","0.66977686","0.6670158","0.6652597","0.6625427","0.6620959","0.65576017","0.6553301","0.65453506","0.653216","0.6531299","0.64852357","0.6467754","0.64492416","0.6411108","0.6404441","0.64035416","0.6387648","0.63736075","0.6336335","0.6336335","0.6336335","0.6336335","0.6336335","0.63260925","0.628866","0.62486774","0.62375116","0.6222045","0.6212327","0.6212135","0.6208101","0.620182","0.6183275","0.61755025","0.616611","0.6155569","0.613746","0.6108799","0.6108496","0.60814494","0.6077575","0.6076302","0.6076084","0.6071622","0.6026821","0.60184854","0.60027313","0.59969395","0.5988354","0.5969186","0.59591055","0.5931408","0.5925884","0.591439","0.59135205","0.59082586","0.5904135","0.5900755","0.589352","0.5886389","0.5880211","0.587902","0.5866079","0.58642405","0.5864207","0.5851862","0.5850708","0.5849676","0.5849676","0.5843275","0.5839898","0.5837266","0.583655","0.5826391","0.5826391","0.58225703","0.5815818","0.5810933","0.58064085","0.58028424","0.5797426","0.5796373","0.5794176","0.57923436","0.57829297","0.5780233","0.57782185","0.5777427","0.57733494"],"string":"[\n \"0.75788224\",\n \"0.75788224\",\n \"0.6963311\",\n \"0.69609576\",\n \"0.69411105\",\n \"0.6914811\",\n \"0.68918186\",\n \"0.6850789\",\n \"0.6809287\",\n \"0.6784891\",\n \"0.6752296\",\n \"0.66977686\",\n \"0.6670158\",\n \"0.6652597\",\n \"0.6625427\",\n \"0.6620959\",\n \"0.65576017\",\n \"0.6553301\",\n \"0.65453506\",\n \"0.653216\",\n \"0.6531299\",\n \"0.64852357\",\n \"0.6467754\",\n \"0.64492416\",\n \"0.6411108\",\n \"0.6404441\",\n \"0.64035416\",\n \"0.6387648\",\n \"0.63736075\",\n \"0.6336335\",\n \"0.6336335\",\n \"0.6336335\",\n \"0.6336335\",\n \"0.6336335\",\n \"0.63260925\",\n \"0.628866\",\n \"0.62486774\",\n \"0.62375116\",\n \"0.6222045\",\n \"0.6212327\",\n \"0.6212135\",\n \"0.6208101\",\n \"0.620182\",\n \"0.6183275\",\n \"0.61755025\",\n \"0.616611\",\n \"0.6155569\",\n \"0.613746\",\n \"0.6108799\",\n \"0.6108496\",\n \"0.60814494\",\n \"0.6077575\",\n \"0.6076302\",\n \"0.6076084\",\n \"0.6071622\",\n \"0.6026821\",\n \"0.60184854\",\n \"0.60027313\",\n \"0.59969395\",\n \"0.5988354\",\n \"0.5969186\",\n \"0.59591055\",\n \"0.5931408\",\n \"0.5925884\",\n \"0.591439\",\n \"0.59135205\",\n \"0.59082586\",\n \"0.5904135\",\n \"0.5900755\",\n \"0.589352\",\n \"0.5886389\",\n \"0.5880211\",\n \"0.587902\",\n \"0.5866079\",\n \"0.58642405\",\n \"0.5864207\",\n \"0.5851862\",\n \"0.5850708\",\n \"0.5849676\",\n \"0.5849676\",\n \"0.5843275\",\n \"0.5839898\",\n \"0.5837266\",\n \"0.583655\",\n \"0.5826391\",\n \"0.5826391\",\n \"0.58225703\",\n \"0.5815818\",\n \"0.5810933\",\n \"0.58064085\",\n \"0.58028424\",\n \"0.5797426\",\n \"0.5796373\",\n \"0.5794176\",\n \"0.57923436\",\n \"0.57829297\",\n \"0.5780233\",\n \"0.57782185\",\n \"0.5777427\",\n \"0.57733494\"\n]"},"document_score":{"kind":"string","value":"0.5953292"},"document_rank":{"kind":"string","value":"62"}}},{"rowIdx":81545,"cells":{"query":{"kind":"string","value":"call Ajax and set response of ajax request into div innerHTML"},"document":{"kind":"string","value":"function fnRequestwinStatusChanged() \r\n{\r\n\tif (http_request.readyState == 4) \r\n\t{\r\n if (http_request.status == 200)\r\n\t\t{ \r\n\t\t\tvar myText = http_request.responseText;\r\n\t\t\tvar objxmlPlaceHolder=document.getElementById(\"textResponce\");\r\n\t\t\tobjxmlPlaceHolder.innerHTML = myText;\t\t\t\t\t\t// Load Data From XML File To Content Area\r\n\t\t}else{\r\n\t\t\tvar objxmlPlaceHolder=document.getElementById(\"textResponce\");\r\n\t\t\tobjxmlPlaceHolder.innerHTML =\" Request to server is Faild..\";\r\n\t\t}\r\n\t} \r\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function success(response){\n //div1.innerHTML = response;\n }","function getResponse(data) {\n responseDiv.innerHTML = data;\n}","function functionCallBack() {\r\n\tif (xhr.status == 200) {\r\n\t\tdocument.getElementById(\"divRes\").innerHTML += xhr.responseText;\r\n\t}\r\n}","function simpleAjax(url,div){\n \t $.ajax({url: url, success: function(result){\n $(\"#\"+div).html(result);\n \t\t }});\n\n}","function setContent(data, status, jqxhr) {\n $('#ajax-example').text(data);\n }","function getOutput()\r\n{\r\n if (xmlhttp.readyState==4)\r\n {\r\n document.getElementById(\"task_load\").innerHTML=xmlhttp.responseText;\r\n }\r\n}","function showCubaData()\r\n{\r\n if (xmlhttp.readyState == 4)\r\n {\r\n\t\t//changes the content of the Content div to show the data from the http request\r\n\t\tdocument.getElementById(\"main\").innerHTML = xmlhttp.responseText;\r\n }\r\n}","function getStatusData() {\n if (xhr.status == 200) {\n if (xhr.readyState == 4) {\n var div = document.getElementById(\"formDiv\"); //
\n div.innerHTML = xhr.responseText;\n }\n }\n}","function fillInResponse(response){\n $(\"#response\").text(response.responseText);\n }","function Ausgabe(elem, HTTP) {\n\n if (HTTP.readyState == 4) {\n \n document.getElementById(elem).innerHTML = HTTP.responseText;\n } else {\n // alert(\"hier ist nix\");\n }\n\n}","function handleResponse11() {\n\tif(http.readyState == 4){\n var response = http.responseText;\n document.getElementById(idName1).innerHTML = response;\n }\n}","function setUpAjax(divID){\r\n //Browser Support Code (Necessary)\r\n try{\r\n // Opera 8.0+, Firefox, Safari\r\n AJAX = new XMLHttpRequest();\r\n }catch (e){\r\n // Internet Explorer Browsers\r\n try{\r\n AJAX = new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n }catch (e) {\r\n\r\n try{\r\n AJAX = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n }catch (e){\r\n // Something went wrong\r\n alert(\"AJAX error\");\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n // Create a function that will receive data\r\n // sent from the server and will update\r\n // div section in the same page.\r\n AJAX.onreadystatechange = function(){\r\n\r\n if(AJAX.readyState == 4){\r\n var ajaxDisplay = document.getElementById(divID);\r\n ajaxDisplay.innerHTML = AJAX.responseText;\r\n }\r\n };\r\n}","function onSuccess(data) {\n\t$('#response').html(data);\n}","function DisplayContent(name)\n{\n\tobj = document.getElementById(name);\n\tobj.innerHTML = req.responseText;\n}","function updateRequestResult(text)\n{\n document.getElementById(\"response\").innerHTML = text;\n}","function ajaxQuery(){\n const ajaxConnection = new XMLHttpRequest();\n ajaxConnection.open(\"GET\", API, true);\n \n ajaxConnection.onload = function() {\n // onload function will run when .status property is equal to 4 - ready status.\n\n if (ajaxConnection.status == 200) {\n // console.log(\"this.responseText.title\", JSON.parse(this.response));\n console.log(\"this.responseText.title\", this.response);\n // const result = JSON.parse(this.response);\n const result = this.response;\n\n const destiny = document.querySelector(\"#main-div\");\n\n\n // using React\n const newElement = React.createElement(\"p\", {}, result.title);\n ReactDOM.render(newElement, destiny);\n\n // NO react\n // const newElement = document.createElement(\"p\");\n // newElement.innerText = result.title;\n // destiny.appendChild(newElement);\n }\n }\n ajaxConnection.send();\n}","function fetchDataCallback(data) {\n document.getElementById(\"response\").innerHTML = data.content;\n}","function finishAjax(id, response){\r\n $('#loader').remove();\r\n\r\n $('#'+id).append(unescape(response));\r\n}","function call_into_innerhtml(x,y)\n{\n\tlet the_response=[];\n\tlet pagelocaction=x;\n\tlet callbacklocation=y;\n\t//button id\n\t//let thebtn=\"#\"+z;\n\t//let btnz=$(thebtn).html();\n\t//change the button state to loading\n\tcall_loader();\n\t$.ajax({\n\t\turl : pagelocaction,\n\t\ttype : \"POST\",\n\t\tsuccess : function(data)\n\t\t{\n\t\t\tif (data==\"\") {Toastz('warning','No Data Returned','');close_loader();return;}\n\t\t\tclose_loader();\n\t\t\t$(\"#\"+callbacklocation).html(data);\n\t\t\t\n\t\t\treturn;\t\n\t\t},\n\t\terror : function(data) \n\t\t{\n\t\t\tToastz('danger','Error Occured','');\n\t\t\t\n\t\t}\n\t}\n\t);\n\tclose_loader();\n\treturn;\n}","function getData2()\n{\n\t//alert(xHRObject.responseText);\n\tif ((xHRObject.readyState == 4) &&(xHRObject.status == 200))\n\t{\n\tvar spantag = document.getElementById(\"output1\");\n\tspantag.innerHTML = xHRObject.responseText;\n\t}\n}","function getEmployees() {\n $.ajax({\n type: 'GET',\n url: '/employees',\n success: function(response) {\n console.log(\"Got from server:\", response);\n appendDom(response);\n }\n });\n}","function GetOnLineList() {\n $.ajax({\n type: \"POST\",\n url: \"ChattingServlet\",\n data: \"action=OnLineList\",\n success: function(data) {\n $(\"#divOnLine\").html(data);\n }\n });\n AutoUpdContent();\n}","function getHTML(loc, insertArea){\n\tajax(loc, \"GET\", function(){\n\t\tif(this.readyState == 4 && this.status == 200){\n\t\t\t// console.log(this.responseText);\n\t\t\tinsertArea.innerHTML = this.responseText;\n\t\t}\n\t});\n}","function bmb_ajax_online_back() {\n if (http_request.readyState == 4) {\n if (http_request.status == 200) {\n document.body.style.cursor = '';\n result = http_request.responseText;\n document.getElementById(\"onlinelist\").innerHTML = result;\n } else {\n document.body.style.cursor = '';\n display_error_box(http_request.responseText);\n }\n }\n}","function getData(dataSource, divID){\r\n\r\n\t\r\n\tif(xhr){\r\n\t\tvar obj = document.getElementById(divID)\r\n\t\t\r\n\t\txhr.open(\"GET\", dataSource, true);\r\n\t\txhr.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\r\n\t\txhr.onreadystatechange = function(){\r\n\t\t\t\r\n\t\t\tif(xhr.readyState == 4 && xhr.status == 200){\r\n\t\t\t\tobj.innerHTML = xhr.responseText;\r\n\t\t\t\tconsole.log(xhr.responseText);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\txhr.send(null);\r\n\t}\r\n}","function processResponse(respObj) {\r\n $(position1).html(respObj);\r\n }","function setData(){\n document.getElementById('Response').innerHTML=\"Response Here\";\n}","function XJRResponse(data) {\n\tvar resp = document.getElementById(data.id);\n\tresp.innerHTML = data.html;\n}","function handleResponse(ajax) {\n\n // Check that the transaction is complete:\n if (ajax.readyState == 4) {\n \n // Check for a valid HTTP status code:\n if ((ajax.status == 200) || (ajax.status == 304) ) {\n \n // Put the received response in the DOM:\n\t document.getElementById('pleasewaitScreen').style.visibility=\"hidden\";\n var results = document.getElementById('suggestedkeywords');\n results.innerHTML = ajax.responseText;\n \n } else { // Bad status code, submit the form.\n //document.getElementById('dept_form').submit();\n }\n \n } // End of readyState IF.\n \n} // End of handleResponse() function.","function navigateAddGoldStockDiv() {\r\n loadXMLDoc();\r\n xmlhttp.onreadystatechange = function () {\r\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\r\n document.getElementById(\"main_ajax_loading_div\").style.visibility = \"hidden\";\r\n document.getElementById(\"goldStockDiv\").innerHTML = xmlhttp.responseText;\r\n } else {\r\n document.getElementById(\"main_ajax_loading_div\").style.visibility = \"visible\";\r\n }\r\n };\r\n xmlhttp.open(\"POST\", \"include/php/omAddGoldStockDiv.php\", true);\r\n xmlhttp.send();\r\n}","function prev_print_arch_lead()\n{\n var page = document.getElementById('page');\n page.innerHTML='';\n child = document.createElement('div');\n //ajax\n var xhr;\n xhr = new XMLHttpRequest();\n\n xhr.abort();\n xhr.open(\"GET\",\"../print_data.php?action=arch_lead_prev\",true);\n xhr.onreadystatechange=function()\n {\n\n if ((xhr.status == 200) && (xhr.readyState == 4))\n {\n //console.log(xhr.response);\n child.innerHTML = xhr.response;\n }\n\n };\n page.appendChild(child);\n xhr.send(null);\n}","function responseHelpContents() \r\r\n{\t\r\r\n\tif(xmlHttp.readyState == 4) \r\r\n\t{\t\t\r\r\n\t\tif(xmlHttp.status == 200) \r\r\n\t\t{\t\t\t\r\r\n\t\t\tdocument.getElementById('helpContents').innerHTML\t\t= xmlHttp.responseText;\t\t\t\t\t\t\t\t\t\r\r\n\t\t}\r\r\n\t}\r\r\n}","function HtmlData() {\n var uri = '/ajax/Data'\n\n //var xmlHttp = new XMLHttpRequest();\n //xmlHttp.addEventListener(\"click\", callbackFunction);\n //xmlHttp.open('GET', uri);\n //xmlHttp.send();\n\n $.ajax({\n url: uri,\n type: 'GET',\n success: function (response) {\n $('#content').html(response);\n },\n error: function (jqXHR) {\n $('#content').append(jqXHR.status + \" \" + jqXHR.statusText);\n }\n });\n}","function manageExams() {\r\n $.ajax({\r\n url: \"exams.html\", \r\n context: document.body,\r\n success: function(response) {\r\n $(\"#subBody\").html(response);\r\n releaseManagement();\r\n examSubPopu();\r\n }\r\n });\r\n}","function send_ajax_for_gene(id_gene) { \n var xml = window.XMLHttpRequest ? (new XMLHttpRequest()) : (new ActiveXObject(\"Microsoft.XMLHTTP\"));\n \n xml.onreadystatechange=function() { // the Call back function\n if (xml.readyState==4 && xml.status==200) {\n var responseText = xml.responseText;\n var div_outer = $(\"showcaseDiv\"+id_gene);\n div_outer.innerHTML = responseText;\n }\n }\n \n var data = \"id_gene=\"+id_gene;\n \n xml.open(\"POST\",\"_show.php\",true);\n xml.setRequestHeader(\"Content-type\",\"application/x-www-form-urlencoded\");\n xml.send(data);\n}","function fnGetRequestDetails() {\n $.ajax({\n url: '../HiDoctor_Master/RequestMaster/GetRequestMaster',\n type: \"GET\",\n success: function (result) {\n if (result != '') {\n $(\"#divRequestMaster\").html(result);\n }\n }\n });\n}","function ajaxSearchBeforeSend(xhr){\n\t$('#results').html('

\"ajax

');\n}","function getNumberAnalysis(){\n // Creating the AJAX element to receive data\n let xhr = new XMLHttpRequest();\n xhr.open('GET', '../../php/api/GetData/numberAnalysisFac.php?id='+fac_id.value, true);\n xhr.onload = function(){\n if(this.status == 200){\n let response = this.responseText;\n // alert(response);\n populateDom(JSON.parse(response));\n }else{\n alert(this.status);\n }\n }\n xhr.send();\n}","function stateChangedinner() \n{ \ndocument.getElementById(\"inner\").innerHTML= \"
\";\nif (xmlHttp.readyState==4)\n{ \ndocument.getElementById(\"inner\").innerHTML=xmlHttp.responseText;\n}\n}","function performRequest() {\n $.ajax({\n type: 'GET',\n url: generateUrl(ajaxUrl),\n dataType: 'html',\n delay: 400,\n beforeSend: function() {\n if (processing) {\n return false;\n } else {\n processing = true;\n }\n },\n success: function (html) {\n $('#filtered-list').replaceWith(html);\n processing = false;\n }\n });\n }","function cargarDiv(divID, ruta) {\n $.ajax({\n url: ruta,\n dataType: 'text',\n success: function (respuesta) {\n setTimeout(() => {\n document.getElementById(\"cargar\").innerHTML = '';\n document.getElementById(divID).innerHTML = respuesta;\n }, 100);\n },\n error: function () { }\n });\n}","function callDivChange() {\r\n\txhr= new XMLHttpRequest();\r\n\txhr.open(\"GET\", \"test.html\",true);\r\n\txhr.onreadystatechange= processDivChange;\r\n\txhr.send();\r\n}","function ajaxInvoke(phpFunction, searchParams, container, htmlOperation, lastLoadedVehicleId, limit)\n{\n $.ajax({\n url: url,\n data: { phpFunction: phpFunction, searchParams: searchParams, lastLoadedVehicleId: lastLoadedVehicleId, limit: limit},\n type: \"POST\",\n dataType: \"html\"\n }).done(function (output)\n {\n if (htmlOperation === \"html\") {\n $(\"#\" + container).html(output);\n }\n else if (htmlOperation === \"append\") {\n $(\"#\" + container).append(output);\n }\n });\n}","function ajaxSuccessArtist(ajax){\n\t$(\"artistHint\").value=ajax.responseText;\n}","function theHTTPResponse(strHTML)\n{\nalert('inside theResponse');\n\tif(myreq.readyState==4)\n\t{\n\tif(myreq.status==200)\n\t{\n\t\tvar respstring=myreq.responseXML.getElementsByTagName('respstring')[0];\n\t\tdocument.getElementById(strHTML+\"_div\").innerHTML=respstring.childNodes[0].nodevalue;\n\t}\n\telse\n\t{\n\t\tdocument.getElementById(strHTML+\"_div\").innerHTML='waiting...';\n\t}\n\t}\n}","function displayUnitTests(req)\n{\n document.getElementById('unit-tests').innerHTML = req.responseText;\n}","function appendResult(results) {\n // refreshes response \n document.getElementById('result').innerHTML = '';\n // prints out the response \n document.getElementById('result').append(results);\n}","function alertContents() {\n try {\n if (httpRequest.readyState === 4) {\n if (httpRequest.status === 200) {\n //show the ajax box with the html from step 3 in it. Trigger create is used to apply the jqmobile styles to the returned html\n \t$(\".ajaxContent\").show().html(httpRequest.responseText).fadeIn(\"fast\").trigger(\"create\") ;\n \t$(\"#continue\").show();\n\n } else {\n alert('There was a problem with the request.');\n }\n }\n }\n catch( e ) {\n alert('Caught Exception: ' + e.description);\n }\n}","function cbGetAllTestLocations() {\n\tdocument.getElementById(\"data-content\").innerHTML = xmlhttpRequest.responseText;\n}","function callBack(){\n if(xhr.readyState == 4 && xhr.status == 200){\n //console.log(\"Funciono\")\n document.querySelector('main').innerHTML= xhr.response //Traigo informacion del servidor\n }\n }","function fetchMeaning(ajax) {\n\t$(\"loadingmeaning\").hide();\n\t$(\"meaning\").innerHTML = ajax.responseText;\n}","function ajaxShowFriends() {\n sendRequest(\"showFriends\", function(response,status,ajaxObj) {\n $(\"#col-amis\").append(response);\n });\n}","function getAjaxPhoto(type,div)\r\n{\r\n $(div).css(\"display\",\"block\");\r\n var preservedHTML = $(div).html();\r\n $.ajax({\r\n url : page,\r\n type : 'POST',\r\n dataType : 'json',\r\n data : ({ mode : 'loadAjaxPhotos', 'photosType' : type }),\r\n beforeSend : function ()\r\n {\r\n $(div).html(loading);\r\n },\r\n success : function (data)\r\n {\r\n if(data['failed'])\r\n {\r\n //alert(\"No Photos Returned\");\r\n $(div).html(preservedHTML);\r\n }\r\n\r\n if(data['completed'])\r\n {\r\n $(div).html(data['photoBlocks']);\r\n }\r\n }\r\n })\r\n}","static showFresh(){\n $.ajax({\n url:\"AJAX/AJAX.php\",\n method:\"POST\",\n data:{getlist:true},\n dataType:\"json\",\n success:function(data)\n {\n //document.querySelector('#results').innerHTML=''\n window.querry = ''\n document.getElementById('results').innerHTML = ''\n view.renderList(data)\n listeners.scrollListener()\n //Course.renderBasicCategoriesForUser(data);\n //return data;\n\n },error:function (data){\n //console.log(data)\n }\n });\n }","function processStateChange() {\r\n\r\n \t if (req.readyState == 4) { // Complete\r\n if (req.status == 200) { // OK response\r\n\r\n ///alert(\"Ajax response:\"+req.responseText);\r\n\r\n //Split the text response into Span elements\r\n spanElements = splitTextIntoSpan(req.responseText);\r\n\r\n //Use these span elements to update the page\r\n replaceExistingWithNewHtml(spanElements);\r\n\r\n } else {\r\n alert(\"Problem with server response:\\n \" + req.statusText);\r\n }\r\n }\r\n }","function showResponseText(request, resultRegion) {\r\n if ((request.readyState == 4) &&\r\n (request.status == 200)) {\r\n htmlInsert(resultRegion, request.responseText);\r\n }\r\n}","function ajaxResult(address, search) {\n//alert(\"ready to lauch...\");\n var request = getRequestObject();\n request.onreadystatechange = \n function() { showResponseText(request, search); };\n request.open(\"GET\", address, true);\n request.send(null);\n//alert(\"lauched...\");\n}","function processStateChange(){\r\n\tif (req.readyState == 4){ \r\n\t\t// Complete\r\n\t\tif (req.status == 200){\r\n\t\t\t// OK response\r\n\t\t document.getElementById(\"ajaxResponse\").innerHTML = req.responseText;\r\n\t\t\t} else {\r\n\t\t alert(\"Erreur Ajax - Problem: \" + req.statusText);\r\n\t\t alert(\"Erreur Ajax - status: \" + req.status);\r\n\t\t}\r\n\t} \r\n}","function getCsInformation(controlId) {\n $('#'+controlId).html('
');\n $.ajax({\n type: \"POST\", \n url: URL + '/proxy',\n dataType: \"json\",\n data: { method: 'getCsInformation',csrf_token_id:csrf_token_val},\n success: function (data) {\n $('#'+controlId).html(data.result); \n (function($){\n $(\".agent-portlet-body\").mCustomScrollbar({\n theme:\"inset-2-dark\"\n });\n\n })(jQuery); \n }\n });\n\n}","function getSong() {\r\n var xmlhttp = getXMLHTTP();\r\n\r\n xmlhttp.onreadystatechange = function() {\r\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\r\n var songDiv = document.getElementById('custom-main-container');\r\n songDiv.innerHTML += xmlhttp.responseText;\r\n }\r\n };\r\n xmlhttp.open('POST', '../controller/RandomSongController.php');\r\n xmlhttp.send();\r\n}","function displayMeetingInfo(ajax) {\r\n\t\r\n\t\t// Display the HTML on the page\r\n\t\t$(\"#meeting-info\").html(ajax);\r\n\t}","function CargarNotificaciones() {\n\n var areaNotific = document.getElementById('areaNotific');\n \n $.ajax({\n url: base_url+\"index.php/notificaciones/cargar_notificaciones\",\n type: 'POST',\n global: false,\n \n beforeSend: function (xhr) {\n xhr.overrideMimeType(\"text/plain; charset=utf-8\");\n areaNotific.innerHTML = '
Loading...
';\n },\n success: function (data) {\n\n //rspuesta del query de notificaciones del usaurio\n var Obj=$.parseJSON(data);\n \n var resuesta_html = Obj['respues_notifi_html'];\n areaNotific.innerHTML = resuesta_html;\n }\n });\n\n}","function process_reporte_principal(){\n var resultados = document.getElementById(\"cargar\");\n if(reporte_principal.readyState == 4)\n {\n\tresultados.innerHTML = reporte_principal.responseText;\n }\n else{\n\t resultados.innerHTML = '

Procesando...

';\n }\n}","function stateChangedrheka() \n{ \ndocument.getElementById(\"rheka\").innerHTML= \"
\";\nif (xmlHttp.readyState==4)\n{ \ndocument.getElementById(\"rheka\").innerHTML=xmlHttp.responseText;\n}\n}","function processSearch() {\n //\n if(request.readyState < 4) {\n\n }\n \n if (request.readyState == 4) {\n \t\n \n document.getElementById(\"voting\").innerHTML = request.responseText;\n request = null;\n }\n \n\n}","function renderReservationPage(url)\n{\n // ajax\n $.ajax({\n type : 'GET',\n url : url,\n success : function(html){\n\n //adiciona a tela de reserva de sala\n $(\"#result-search\").html(html);\n\n },\n \n\n });\n\n return false;\n\n}","function verMensajes() {\n let httpRequest = new XMLHttpRequest();\n httpRequest.open('POST', '../consultas_ajax.php', true);\n httpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');\n httpRequest.onreadystatechange = function () {\n if (httpRequest.readyState === 4) {\n if (httpRequest.status === 200) {\n document.getElementById('mensajes').innerHTML = httpRequest.responseText;\n }\n }\n };\n httpRequest.send('verMensajes=');\n\n\n}","function carga_ajax_BuscarVendedorCliente(ruta,valor,div) \n{\n $.post(ruta,{valor:valor},function(resp)\n {\n $(\"#\"+div+\"\").html(resp);\n });\n}","function AjaxCall() {\n\tthis.req = null;\n\tthis.url = null;\n\tthis.divID = null;\n\tthis.method = 'POST';\n\tthis.async = true;\n\tthis.queryString = null;\n\tthis.visible= false;\n\t\n\tthis.initReq = function (){\n\t\tvar self = this;\n\t\tthis.req.open(this.method,this.url,this.async);\n\t\tthis.req.onreadystatechange= function() {\n\t\t\tvar obj=document.getElementById(self.divID);\n\t\t\tif(self.req.readyState == 4){\t\n\t\t\t\tif(self.req.status == 200){\n\t\t\t\t\tobj.innerHTML=self.req.responseText;\n\t\t\t\t\tif (self.visible) obj.style.visibility=\"visible\";\n\t\t\t\t\tself.onresult();\n\t\t\t\t} else {\n\t\t\t\t\t//alert(self.req.status+\"A problem occurred with communicating between the XMLHttpRequest object and the server program.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.req.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded; charset=UTF-8\");\n\t\tthis.req.send(this.queryString);\n\t}\n\t\n\tthis.httpRequest = function (){\n\t\t//Mozilla-based browsers\n\t\tif(window.XMLHttpRequest){\n\t\t\tthis.req = new XMLHttpRequest();\n\t\t} else if (window.ActiveXObject){\n\t\t\tthis.req=new ActiveXObject(\"Msxml2.XMLHTTP\");\n\t\t\tif (!this.req){\n\t\t\t\tthis.req=new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t\t}\n\t\t}\n\t\t//the request could still be null if neither ActiveXObject\n\t\t//initializations succeeded\n\t\tif(this.req){\n\t\t\tthis.initReq();\n\t\t} else {\n\t\t\t//alert(\"Your browser does not permit the use of all \"+\"of this application's features!\");\n\t\t}\n\t}\n\t\n\tthis.onresult = function (){\n\t\t//Do something after completion here.\n\t}\n}","function loadJobPostings() {\n var xhttp = new XMLHttpRequest();\n xhttp.onreadystatechange = function() {\n if (this.readyState == 4 && this.status == 200) {\n document.getElementById(\"jobpostings\").innerHTML = this.responseText;\n }\n };\n xhttp.open(\"GET\", \"/jobPostings/submitJobPosting\", true);\n xhttp.send();\n}","function makeAjaxCall(urlToCall){\r\n\tvar ajaxObject = getAjaxObj();\r\n\t\r\n\tajaxObject.onreadystatechange=function(){\r\n\t\tif(ajaxObject.readyState == 4){\r\n\t\t\tif(ajaxObject.status == 200){\r\n\t\t\t\t//la llamada termino ok\r\n\t\t\t\t//inyectamos la respuesta\r\n\t\t\t\tdocument.getElementById(\"pagingValues\").innerHTML = ajaxObject.responseText;\r\n\t\t\t} else {\r\n\t\t\t\talert(mensajeErrorAjaxInvocacion);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdocument.getElementById(\"ajaxExecution\").style.display = \"none\";\r\n\t\t\tdocument.getElementById(\"pagingValues\").style.display = \"block\";\r\n\t\t}\r\n\t};\r\n\t\r\n\t//colocamos la imagen de \"cargando\"\r\n\tdocument.getElementById(\"pagingValues\").style.display = \"none\";\r\n\tdocument.getElementById(\"ajaxExecution\").style.display = \"inline-table\";\r\n\t\r\n\tajaxObject.open(\"POST\", urlToCall);\r\n\tajaxObject.send(null);\r\n}","function getBookings(div){\n\tvar xhr = new XMLHttpRequest();\n\txhr.onreadystatechange = function() {\t\t\t\t\t\n\t\tif (xhr.readyState == 4 && xhr.status == 200) {\n\t\t\tdocument.getElementById(div).innerHTML = xhr.responseText;\n\t\t} // end if\n\t} // end anonymous call-back function\n\txhr.open(\"GET\", \"getBookings.php\", true);\n\txhr.send();\n}// end function","function next_print_arch_lead()\n{\n var page = document.getElementById('page');\n page.innerHTML='';\n child = document.createElement('div');\n //ajax\n var xhr;\n xhr = new XMLHttpRequest();\n\n xhr.abort();\n xhr.open(\"GET\",\"../print_data.php?action=arch_lead_next\",true);\n xhr.onreadystatechange=function()\n {\n if ((xhr.status == 200) && (xhr.readyState == 4))\n {\n //console.log(xhr.response);\n child.innerHTML = xhr.response;\n }\n };\n page.appendChild(child);\n xhr.send(null);\n}","function showMsgsAfterAjaxCall(innerHTML){\r\n\t//obtenemos el tamaño de la pantalla\r\n\tvar screenW = screen.width;\r\n\tvar screenH = screen.height;\r\n\t\r\n\tvar container = document.getElementById(\"ajaxMsgsContainer\");\r\n\tcontainer.style.width = screenW + \"px\";\r\n\tcontainer.style.height = screenH + \"px\";\r\n\t\r\n\tvar innerDiv = document.getElementById(\"ajaxMsgsValues\");\r\n\tinnerDiv.innerHTML = innerHTML;\r\n\t\r\n\tvar msgsContainer = document.getElementById(\"errorContainer\");\r\n\tif(msgsContainer == null){\r\n\t\tmsgsContainer = document.getElementById(\"msgsAjaxContainer\");\r\n\t}\r\n\tinnerDiv.style.height = msgsContainer.style.height + \"px\";\r\n\tinnerDiv.style.left = ((screenW - 450) / 2) + \"px\";\r\n\tinnerDiv.style.top = ((screenH - 110) / 2) + \"px\";\r\n\t\r\n\t//antes de mostrar los errores, debemos acomodarlos en el centro de la pantalla\r\n\tinnerDiv.style.display = \"block\";\r\n\tcontainer.style.display = \"block\";\r\n}","function getRegions() {\n \"use strict\";\n var ajaxRequest; //enable AJAX\n \n try {\n // Opera 8.0+, Firefox, Safari\n ajaxRequest = new XMLHttpRequest();\n } catch (e1) {\n // Internet Explorer Browsers\n try {\n ajaxRequest = new window.ActiveXObject(\"Msxml2.XMLHTTP\");\n } catch (e2) {\n try {\n ajaxRequest = new window.ActiveXObject(\"Microsoft.XMLHTTP\");\n } catch (e3) {\n // Something went wrong\n alert(\"AJAX request error\");\n return false;\n }\n }\n }\n \n // Create a function that will receive data \n // sent from the server and will update\n // div section in the same page.\t\n ajaxRequest.onreadystatechange = function () {\n if (ajaxRequest.readyState === 4) {\n var ajaxDisplay = document.getElementById('regions');\n ajaxDisplay.innerHTML = ajaxRequest.responseText;\n // turn off the loader\n ajaxDisplay.style.background = 'none';\n }\n };\n\n // Now get the value from user and pass it to\n // server script.\n ajaxRequest.open(\"GET\", \"ajax_get_regions.php\", true);\n ajaxRequest.send(null);\n}","function showResponseText(request, resultRegion) {\n if ((request.readyState == 4) &&\n (request.status == 200)) {\n htmlInsert(resultRegion, request.responseText);\n }\n}","success(data, textStatus, jqXHR ){\r\n //console.log(jqXHR.status);\r\n \r\n b.html(data);\r\n }","function setOutput()\n{\n\tif(httpObject.readyState == 4)\n\t\tparseJSON(httpObject.responseText);\n}","function getDgInformation(controlId) {\n $('#'+controlId).html('
');\n $.ajax({\n type: \"POST\", \n url: URL + '/proxy',\n dataType: \"json\",\n data: { method: 'getDgInformation',csrf_token_id:csrf_token_val},\n success: function (data) {\n $('#'+controlId).html(data.result); \n (function($){\n $(\".agent-portlet-body\").mCustomScrollbar({\n theme:\"inset-2-dark\"\n });\n\n })(jQuery); \n }\n });\n\n}","function stateChangedinner61() \n{ \ndocument.getElementById(\"inner61\").innerHTML= \"
\";\nif (xmlHttp.readyState==4)\n{ \ndocument.getElementById(\"inner61\").innerHTML=xmlHttp.responseText;\n}\n}","function showResponse(response) {\r\n var responseString = JSON.stringify(response, '', 2);\r\n document.getElementById('response').innerHTML += responseString;\r\n}","function dataUploaded() { \r\n if (client.readyState == 4) { \r\n document.getElementById(\"dataUploadResult\").innerHTML = client.responseText; \r\n }\r\n }","function Fnc_GenerarGraficoAjax(Str_Parametos) {\n $.ajax({\n type: \"get\",\n url: \"/Incorporaciones/Reportes/Grafico_vista/\",\n data: Str_Parametos,\n success: function (response) {\n if (response == \"Fail\") {\n alert(\"Tiene que selecionar un departamento o especificar un rango de fechas\");\n }\n else {\n\n $(\"#Grafico-Seccion\").empty()\n var container = document.createElement(\"div\");\n container.setAttribute(\"id\", \"container\");\n $(container).append(response);\n $(\"#Grafico-Seccion\").append(container);\n $(\"#MenuBar\").show();\n }\n }\n });\n\n}","function OLresponseAJAXshow(quo){\r\r\n var so=OLoverHTML,s=(OLresponseAJAX||'null').toString(),q=(quo||0);\r\r\n overlib(OLhtmlspecialchars(s,q), CAPTION,'
OLresponseAJAX
', EXCLUSIVEOVERRIDE, STICKY, EXCLUSIVE,\r\r\n BGCLASS,'', BORDER,1, BGCOLOR,'#666666', BASE,0, CGCLASS,'', CAPTIONFONTCLASS,'', CLOSEFONTCLASS,'', CAPTIONPADDING,6,\r\r\n CGCOLOR,'#999999', CAPTIONSIZE,'12px', CAPCOLOR,'#ffffff', CLOSESIZE,'11px', CLOSECOLOR,'#ffffff', FGCLASS,'',\r\r\n TEXTFONTCLASS,'', TEXTPADDING,6, FGCOLOR,'#eeeeee', TEXTSIZE,'12px', TEXTCOLOR,'#000000', MIDX,0, RELY,5, WRAP,\r\r\n (OLfilterPI)?-FILTER:DONOTHING, (OLshadowPI)?-SHADOW:DONOTHING);\r\r\n OLoverHTML=so;\r\r\n}","function drawOutput(responseText) {\n var container = document.getElementById('output'); \n container.innerHTML = responseText;\n}","function ajaxCall() {\n var data = $('[data-api-url]').data();\n return $.getJSON('/api?url='+data.apiUrl).then(displayElements);\n }","function showListContact(){\n new Ajax.Request(Utils.getKumbiaURL(\"desktop/showListContact\"), {\n parameters: {\n },\n onSuccess: function(transport){\n response = transport.responseText.evalJSON();\n $('content-contact-listas').innerHTML = response;\n $('content-contact-info').innerHTML = \"\";\n },\n onFailure: function(transport){\n alert(transport.responseText);\n }\n });\n}","function showListContact(){\n new Ajax.Request(Utils.getKumbiaURL(\"desktop/showListContact\"), {\n parameters: {\n },\n onSuccess: function(transport){\n response = transport.responseText.evalJSON();\n $('content-contact-listas').innerHTML = response;\n $('content-contact-info').innerHTML = \"\";\n },\n onFailure: function(transport){\n alert(transport.responseText);\n }\n });\n}","function processReqChange() \r\n\t{\r\n\t\tif (req.readyState == 4) // only if req shows \"complete\"\r\n\t\t{\r\n\t\t\tif (req.status == 200) // only if \"OK\"\r\n\t\t\t{\r\n\t\t\t\tdocument.getElementById(\"quan\").innerHTML=req.responseText;\r\n\t\t\t} \r\n\t\t}\r\n\t}","function getItscInformation(controlId) {\n $('#'+controlId).html('
');\n $.ajax({\n type: \"POST\", \n url: URL + '/proxy',\n dataType: \"json\",\n data: { method: 'getItscInformation',csrf_token_id:csrf_token_val},\n success: function (data) {\n $('#'+controlId).html(data.result); \n (function($){\n $(\".agent-portlet-body\").mCustomScrollbar({\n theme:\"inset-2-dark\"\n });\n\n })(jQuery); \n }\n });\n\n}","function refreshMainRightDiv() {\r\n loadXMLDoc();\r\n xmlhttp.onreadystatechange = function () {\r\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\r\n document.getElementById(\"ajaxLoadRightMenuDiv\").style.visibility = \"hidden\";\r\n document.getElementById(\"mainRightDiv\").innerHTML = xmlhttp.responseText;\r\n } else {\r\n document.getElementById(\"ajaxLoadRightMenuDiv\").style.visibility = \"visible\";\r\n }\r\n };\r\n xmlhttp.open(\"POST\", \"include/php/ompprmdv.php\", true);\r\n xmlhttp.send();\r\n}","function loadQuestionAdd(url) {\n $.ajax({\n url: url,\n method: 'POST',\n success: function( data) {\n $('#AddInvoicePreview').html(data); \n },\n error: function(error) {\n console.log(error);\n }\n }); \n}","function showResponse(response) {\n var responseString = JSON.stringify(response, '', 2);\n document.getElementById('response').innerHTML += responseString;\n}","function adm_ajax_load()\n{\n\tadm_core = document.getElementById('adm_core');\n\tvar request = new XMLHttpRequest;\n\trequest.open('GET', 'sc_adm_content.php', true);\n\trequest.onload = function()\n\t{\n\t\tif (request.status >= 200 && request.status < 400)\n\t\t{\n\t\t\tvar resp = request.responseText;\n\t\t\tadm_core.innerHTML = resp;\n\t\t}\n\t};\n\trequest.send();\n}","function ajaxpage(url, containerid) {\r\n//\talert('hello');\r\n\tvar page_request = false;\r\n\tif (window.XMLHttpRequest) // if Mozilla, Safari etc\r\n\t\tpage_request = new XMLHttpRequest();\r\n\telse if (window.ActiveXObject){ // if IE\r\n\t\ttry {\r\n\t\t\tpage_request = new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n\t\t} \r\n\t\tcatch (e){\r\n\t\t\ttry{\r\n\t\t\t\tpage_request = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n\t\t\t}\r\n\t\t\tcatch (e){}\r\n\t\t}\r\n\t}\r\n\telse\r\n\t\treturn false;\r\n\r\n//\tpage_request.onreadystatechange=function() {\r\n//\t\tloadpage(page_request, containerid)\r\n//\t}\r\n\r\n\r\n\t//I added this condition for making only ajax requests without showing the result on a certain DIV section\r\n\tif (containerid!=null)\r\n\t{\r\n\t\tpage_request.onreadystatechange=function() {\r\n\t\t\tloadpage(page_request, containerid)\r\n\t\t}\r\n\t}\r\n\r\n\tif (bustcachevar) //if bust caching of external page\r\n\t\tbustcacheparameter=(url.indexOf(\"?\")!=-1)? \"&\"+new Date().getTime() : \"?\"+new Date().getTime();\r\n\tpage_request.open('GET', url+bustcacheparameter, true);\r\n\tpage_request.send(null);\r\n}","function updatedata(user)\r\n{\r\n $.ajax({\r\n url: \"robot/info/\"+ user.getLogin() + \"/\" + user.getToken(),\r\n method: 'GET',\r\n success: function(result)\r\n {\r\n console.log(result);\r\n $(\"#h3_id1\").html(result[0]);\r\n $(\"#h3_id2\").html(result[1]);\r\n $(\"#h3_id3\").html(result[2]);\r\n $(\"#h3_id4\").html(result[3]);\r\n }\r\n });\r\n}","function update_slice_liste(){\n var action = \"all\";\n xhr = new XMLHttpRequest;\n xhr.responseType = 'json';\n var URL = \"ajax/slider.php?action=\"+action;\n xhr.open(\"GET\",URL,true);\n xhr.send(null);\n xhr.onreadystatechange = result;\n function result(){\n if (this.readyState === 4 && this.status === 200) {\n var datax = xhr.response;\n // mise a jour du tableau des produits\n //$(\"#slices\").innerHTML(datax.result);\n document.getElementById('slices').innerHTML = datax.result;\n }\n }\n }","function fetchData()\n{\n if((xhr.readyState == 4) &&(xhr.status == 200))\n { //console.log(\"inside fetchData function\");\n var spanTag1 = document.getElementById(\"tableContent\").innerHTML;\n spanTag1.innerHTML = xhr.responseText;\n }\n}","function dataUpload(){\r\n\t//this function listens out for the server to say that the data is ready i.e.has state 4\r\n\tif(client.readyState=4){ \r\n\t//change the div to show the response\r\n\tdocument.getElementById('dataUploadResult').innerHTML=client.responseText;\r\n\t}\r\n}","function fetchContactList(){\n\n return $.ajax({ //create an ajax request to display.php\n type: \"GET\",\n url: \"fetch/retrieveContactList.php\",\n dataType: \"html\", //expect html to be returned\n success: function(result){\n return result;\n },\n error: function(){\n return null;\n }\n });\n}","function getAndDisplayContent(str) {\r\n \r\n var content = document.getElementById('content');\r\n var item_id = document.getElementById('item_id');\r\n\r\n if (str == '') {\r\n\r\n content.innerHTML = \"\";\r\n return;\r\n\r\n } else{\r\n\r\n //checking browser compatibility;\r\n if (window.XMLHttpRequest) {\r\n // code for IE7+, Firefox, Chrome, Opera, Safari\r\n xmlhttp = new XMLHttpRequest();\r\n\r\n } else {\r\n // code for IE6, IE5\r\n xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n }\r\n\r\n xmlhttp.onreadystatechange = function() {\r\n\r\n if (this.readyState == 4 && this.status == 200) {\r\n\r\n content.innerHTML = this.responseText;\r\n\r\n }\r\n };\r\n\r\n\r\n xmlhttp.open(\"GET\",\"displaydata.php?action=load_content&content_type=\" + str + \"&item=\"+item_id.value,true);\r\n\r\n xmlhttp.send();\r\n }\r\n }"],"string":"[\n \"function success(response){\\n //div1.innerHTML = response;\\n }\",\n \"function getResponse(data) {\\n responseDiv.innerHTML = data;\\n}\",\n \"function functionCallBack() {\\r\\n\\tif (xhr.status == 200) {\\r\\n\\t\\tdocument.getElementById(\\\"divRes\\\").innerHTML += xhr.responseText;\\r\\n\\t}\\r\\n}\",\n \"function simpleAjax(url,div){\\n \\t $.ajax({url: url, success: function(result){\\n $(\\\"#\\\"+div).html(result);\\n \\t\\t }});\\n\\n}\",\n \"function setContent(data, status, jqxhr) {\\n $('#ajax-example').text(data);\\n }\",\n \"function getOutput()\\r\\n{\\r\\n if (xmlhttp.readyState==4)\\r\\n {\\r\\n document.getElementById(\\\"task_load\\\").innerHTML=xmlhttp.responseText;\\r\\n }\\r\\n}\",\n \"function showCubaData()\\r\\n{\\r\\n if (xmlhttp.readyState == 4)\\r\\n {\\r\\n\\t\\t//changes the content of the Content div to show the data from the http request\\r\\n\\t\\tdocument.getElementById(\\\"main\\\").innerHTML = xmlhttp.responseText;\\r\\n }\\r\\n}\",\n \"function getStatusData() {\\n if (xhr.status == 200) {\\n if (xhr.readyState == 4) {\\n var div = document.getElementById(\\\"formDiv\\\"); //
\\n div.innerHTML = xhr.responseText;\\n }\\n }\\n}\",\n \"function fillInResponse(response){\\n $(\\\"#response\\\").text(response.responseText);\\n }\",\n \"function Ausgabe(elem, HTTP) {\\n\\n if (HTTP.readyState == 4) {\\n \\n document.getElementById(elem).innerHTML = HTTP.responseText;\\n } else {\\n // alert(\\\"hier ist nix\\\");\\n }\\n\\n}\",\n \"function handleResponse11() {\\n\\tif(http.readyState == 4){\\n var response = http.responseText;\\n document.getElementById(idName1).innerHTML = response;\\n }\\n}\",\n \"function setUpAjax(divID){\\r\\n //Browser Support Code (Necessary)\\r\\n try{\\r\\n // Opera 8.0+, Firefox, Safari\\r\\n AJAX = new XMLHttpRequest();\\r\\n }catch (e){\\r\\n // Internet Explorer Browsers\\r\\n try{\\r\\n AJAX = new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\r\\n }catch (e) {\\r\\n\\r\\n try{\\r\\n AJAX = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\r\\n }catch (e){\\r\\n // Something went wrong\\r\\n alert(\\\"AJAX error\\\");\\r\\n return false;\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n // Create a function that will receive data\\r\\n // sent from the server and will update\\r\\n // div section in the same page.\\r\\n AJAX.onreadystatechange = function(){\\r\\n\\r\\n if(AJAX.readyState == 4){\\r\\n var ajaxDisplay = document.getElementById(divID);\\r\\n ajaxDisplay.innerHTML = AJAX.responseText;\\r\\n }\\r\\n };\\r\\n}\",\n \"function onSuccess(data) {\\n\\t$('#response').html(data);\\n}\",\n \"function DisplayContent(name)\\n{\\n\\tobj = document.getElementById(name);\\n\\tobj.innerHTML = req.responseText;\\n}\",\n \"function updateRequestResult(text)\\n{\\n document.getElementById(\\\"response\\\").innerHTML = text;\\n}\",\n \"function ajaxQuery(){\\n const ajaxConnection = new XMLHttpRequest();\\n ajaxConnection.open(\\\"GET\\\", API, true);\\n \\n ajaxConnection.onload = function() {\\n // onload function will run when .status property is equal to 4 - ready status.\\n\\n if (ajaxConnection.status == 200) {\\n // console.log(\\\"this.responseText.title\\\", JSON.parse(this.response));\\n console.log(\\\"this.responseText.title\\\", this.response);\\n // const result = JSON.parse(this.response);\\n const result = this.response;\\n\\n const destiny = document.querySelector(\\\"#main-div\\\");\\n\\n\\n // using React\\n const newElement = React.createElement(\\\"p\\\", {}, result.title);\\n ReactDOM.render(newElement, destiny);\\n\\n // NO react\\n // const newElement = document.createElement(\\\"p\\\");\\n // newElement.innerText = result.title;\\n // destiny.appendChild(newElement);\\n }\\n }\\n ajaxConnection.send();\\n}\",\n \"function fetchDataCallback(data) {\\n document.getElementById(\\\"response\\\").innerHTML = data.content;\\n}\",\n \"function finishAjax(id, response){\\r\\n $('#loader').remove();\\r\\n\\r\\n $('#'+id).append(unescape(response));\\r\\n}\",\n \"function call_into_innerhtml(x,y)\\n{\\n\\tlet the_response=[];\\n\\tlet pagelocaction=x;\\n\\tlet callbacklocation=y;\\n\\t//button id\\n\\t//let thebtn=\\\"#\\\"+z;\\n\\t//let btnz=$(thebtn).html();\\n\\t//change the button state to loading\\n\\tcall_loader();\\n\\t$.ajax({\\n\\t\\turl : pagelocaction,\\n\\t\\ttype : \\\"POST\\\",\\n\\t\\tsuccess : function(data)\\n\\t\\t{\\n\\t\\t\\tif (data==\\\"\\\") {Toastz('warning','No Data Returned','');close_loader();return;}\\n\\t\\t\\tclose_loader();\\n\\t\\t\\t$(\\\"#\\\"+callbacklocation).html(data);\\n\\t\\t\\t\\n\\t\\t\\treturn;\\t\\n\\t\\t},\\n\\t\\terror : function(data) \\n\\t\\t{\\n\\t\\t\\tToastz('danger','Error Occured','');\\n\\t\\t\\t\\n\\t\\t}\\n\\t}\\n\\t);\\n\\tclose_loader();\\n\\treturn;\\n}\",\n \"function getData2()\\n{\\n\\t//alert(xHRObject.responseText);\\n\\tif ((xHRObject.readyState == 4) &&(xHRObject.status == 200))\\n\\t{\\n\\tvar spantag = document.getElementById(\\\"output1\\\");\\n\\tspantag.innerHTML = xHRObject.responseText;\\n\\t}\\n}\",\n \"function getEmployees() {\\n $.ajax({\\n type: 'GET',\\n url: '/employees',\\n success: function(response) {\\n console.log(\\\"Got from server:\\\", response);\\n appendDom(response);\\n }\\n });\\n}\",\n \"function GetOnLineList() {\\n $.ajax({\\n type: \\\"POST\\\",\\n url: \\\"ChattingServlet\\\",\\n data: \\\"action=OnLineList\\\",\\n success: function(data) {\\n $(\\\"#divOnLine\\\").html(data);\\n }\\n });\\n AutoUpdContent();\\n}\",\n \"function getHTML(loc, insertArea){\\n\\tajax(loc, \\\"GET\\\", function(){\\n\\t\\tif(this.readyState == 4 && this.status == 200){\\n\\t\\t\\t// console.log(this.responseText);\\n\\t\\t\\tinsertArea.innerHTML = this.responseText;\\n\\t\\t}\\n\\t});\\n}\",\n \"function bmb_ajax_online_back() {\\n if (http_request.readyState == 4) {\\n if (http_request.status == 200) {\\n document.body.style.cursor = '';\\n result = http_request.responseText;\\n document.getElementById(\\\"onlinelist\\\").innerHTML = result;\\n } else {\\n document.body.style.cursor = '';\\n display_error_box(http_request.responseText);\\n }\\n }\\n}\",\n \"function getData(dataSource, divID){\\r\\n\\r\\n\\t\\r\\n\\tif(xhr){\\r\\n\\t\\tvar obj = document.getElementById(divID)\\r\\n\\t\\t\\r\\n\\t\\txhr.open(\\\"GET\\\", dataSource, true);\\r\\n\\t\\txhr.setRequestHeader(\\\"Content-type\\\", \\\"application/x-www-form-urlencoded\\\");\\r\\n\\t\\txhr.onreadystatechange = function(){\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tif(xhr.readyState == 4 && xhr.status == 200){\\r\\n\\t\\t\\t\\tobj.innerHTML = xhr.responseText;\\r\\n\\t\\t\\t\\tconsole.log(xhr.responseText);\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t}\\r\\n\\t\\t\\r\\n\\t\\txhr.send(null);\\r\\n\\t}\\r\\n}\",\n \"function processResponse(respObj) {\\r\\n $(position1).html(respObj);\\r\\n }\",\n \"function setData(){\\n document.getElementById('Response').innerHTML=\\\"Response Here\\\";\\n}\",\n \"function XJRResponse(data) {\\n\\tvar resp = document.getElementById(data.id);\\n\\tresp.innerHTML = data.html;\\n}\",\n \"function handleResponse(ajax) {\\n\\n // Check that the transaction is complete:\\n if (ajax.readyState == 4) {\\n \\n // Check for a valid HTTP status code:\\n if ((ajax.status == 200) || (ajax.status == 304) ) {\\n \\n // Put the received response in the DOM:\\n\\t document.getElementById('pleasewaitScreen').style.visibility=\\\"hidden\\\";\\n var results = document.getElementById('suggestedkeywords');\\n results.innerHTML = ajax.responseText;\\n \\n } else { // Bad status code, submit the form.\\n //document.getElementById('dept_form').submit();\\n }\\n \\n } // End of readyState IF.\\n \\n} // End of handleResponse() function.\",\n \"function navigateAddGoldStockDiv() {\\r\\n loadXMLDoc();\\r\\n xmlhttp.onreadystatechange = function () {\\r\\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\\r\\n document.getElementById(\\\"main_ajax_loading_div\\\").style.visibility = \\\"hidden\\\";\\r\\n document.getElementById(\\\"goldStockDiv\\\").innerHTML = xmlhttp.responseText;\\r\\n } else {\\r\\n document.getElementById(\\\"main_ajax_loading_div\\\").style.visibility = \\\"visible\\\";\\r\\n }\\r\\n };\\r\\n xmlhttp.open(\\\"POST\\\", \\\"include/php/omAddGoldStockDiv.php\\\", true);\\r\\n xmlhttp.send();\\r\\n}\",\n \"function prev_print_arch_lead()\\n{\\n var page = document.getElementById('page');\\n page.innerHTML='';\\n child = document.createElement('div');\\n //ajax\\n var xhr;\\n xhr = new XMLHttpRequest();\\n\\n xhr.abort();\\n xhr.open(\\\"GET\\\",\\\"../print_data.php?action=arch_lead_prev\\\",true);\\n xhr.onreadystatechange=function()\\n {\\n\\n if ((xhr.status == 200) && (xhr.readyState == 4))\\n {\\n //console.log(xhr.response);\\n child.innerHTML = xhr.response;\\n }\\n\\n };\\n page.appendChild(child);\\n xhr.send(null);\\n}\",\n \"function responseHelpContents() \\r\\r\\n{\\t\\r\\r\\n\\tif(xmlHttp.readyState == 4) \\r\\r\\n\\t{\\t\\t\\r\\r\\n\\t\\tif(xmlHttp.status == 200) \\r\\r\\n\\t\\t{\\t\\t\\t\\r\\r\\n\\t\\t\\tdocument.getElementById('helpContents').innerHTML\\t\\t= xmlHttp.responseText;\\t\\t\\t\\t\\t\\t\\t\\t\\t\\r\\r\\n\\t\\t}\\r\\r\\n\\t}\\r\\r\\n}\",\n \"function HtmlData() {\\n var uri = '/ajax/Data'\\n\\n //var xmlHttp = new XMLHttpRequest();\\n //xmlHttp.addEventListener(\\\"click\\\", callbackFunction);\\n //xmlHttp.open('GET', uri);\\n //xmlHttp.send();\\n\\n $.ajax({\\n url: uri,\\n type: 'GET',\\n success: function (response) {\\n $('#content').html(response);\\n },\\n error: function (jqXHR) {\\n $('#content').append(jqXHR.status + \\\" \\\" + jqXHR.statusText);\\n }\\n });\\n}\",\n \"function manageExams() {\\r\\n $.ajax({\\r\\n url: \\\"exams.html\\\", \\r\\n context: document.body,\\r\\n success: function(response) {\\r\\n $(\\\"#subBody\\\").html(response);\\r\\n releaseManagement();\\r\\n examSubPopu();\\r\\n }\\r\\n });\\r\\n}\",\n \"function send_ajax_for_gene(id_gene) { \\n var xml = window.XMLHttpRequest ? (new XMLHttpRequest()) : (new ActiveXObject(\\\"Microsoft.XMLHTTP\\\"));\\n \\n xml.onreadystatechange=function() { // the Call back function\\n if (xml.readyState==4 && xml.status==200) {\\n var responseText = xml.responseText;\\n var div_outer = $(\\\"showcaseDiv\\\"+id_gene);\\n div_outer.innerHTML = responseText;\\n }\\n }\\n \\n var data = \\\"id_gene=\\\"+id_gene;\\n \\n xml.open(\\\"POST\\\",\\\"_show.php\\\",true);\\n xml.setRequestHeader(\\\"Content-type\\\",\\\"application/x-www-form-urlencoded\\\");\\n xml.send(data);\\n}\",\n \"function fnGetRequestDetails() {\\n $.ajax({\\n url: '../HiDoctor_Master/RequestMaster/GetRequestMaster',\\n type: \\\"GET\\\",\\n success: function (result) {\\n if (result != '') {\\n $(\\\"#divRequestMaster\\\").html(result);\\n }\\n }\\n });\\n}\",\n \"function ajaxSearchBeforeSend(xhr){\\n\\t$('#results').html('

\\\"ajax

');\\n}\",\n \"function getNumberAnalysis(){\\n // Creating the AJAX element to receive data\\n let xhr = new XMLHttpRequest();\\n xhr.open('GET', '../../php/api/GetData/numberAnalysisFac.php?id='+fac_id.value, true);\\n xhr.onload = function(){\\n if(this.status == 200){\\n let response = this.responseText;\\n // alert(response);\\n populateDom(JSON.parse(response));\\n }else{\\n alert(this.status);\\n }\\n }\\n xhr.send();\\n}\",\n \"function stateChangedinner() \\n{ \\ndocument.getElementById(\\\"inner\\\").innerHTML= \\\"
\\\";\\nif (xmlHttp.readyState==4)\\n{ \\ndocument.getElementById(\\\"inner\\\").innerHTML=xmlHttp.responseText;\\n}\\n}\",\n \"function performRequest() {\\n $.ajax({\\n type: 'GET',\\n url: generateUrl(ajaxUrl),\\n dataType: 'html',\\n delay: 400,\\n beforeSend: function() {\\n if (processing) {\\n return false;\\n } else {\\n processing = true;\\n }\\n },\\n success: function (html) {\\n $('#filtered-list').replaceWith(html);\\n processing = false;\\n }\\n });\\n }\",\n \"function cargarDiv(divID, ruta) {\\n $.ajax({\\n url: ruta,\\n dataType: 'text',\\n success: function (respuesta) {\\n setTimeout(() => {\\n document.getElementById(\\\"cargar\\\").innerHTML = '';\\n document.getElementById(divID).innerHTML = respuesta;\\n }, 100);\\n },\\n error: function () { }\\n });\\n}\",\n \"function callDivChange() {\\r\\n\\txhr= new XMLHttpRequest();\\r\\n\\txhr.open(\\\"GET\\\", \\\"test.html\\\",true);\\r\\n\\txhr.onreadystatechange= processDivChange;\\r\\n\\txhr.send();\\r\\n}\",\n \"function ajaxInvoke(phpFunction, searchParams, container, htmlOperation, lastLoadedVehicleId, limit)\\n{\\n $.ajax({\\n url: url,\\n data: { phpFunction: phpFunction, searchParams: searchParams, lastLoadedVehicleId: lastLoadedVehicleId, limit: limit},\\n type: \\\"POST\\\",\\n dataType: \\\"html\\\"\\n }).done(function (output)\\n {\\n if (htmlOperation === \\\"html\\\") {\\n $(\\\"#\\\" + container).html(output);\\n }\\n else if (htmlOperation === \\\"append\\\") {\\n $(\\\"#\\\" + container).append(output);\\n }\\n });\\n}\",\n \"function ajaxSuccessArtist(ajax){\\n\\t$(\\\"artistHint\\\").value=ajax.responseText;\\n}\",\n \"function theHTTPResponse(strHTML)\\n{\\nalert('inside theResponse');\\n\\tif(myreq.readyState==4)\\n\\t{\\n\\tif(myreq.status==200)\\n\\t{\\n\\t\\tvar respstring=myreq.responseXML.getElementsByTagName('respstring')[0];\\n\\t\\tdocument.getElementById(strHTML+\\\"_div\\\").innerHTML=respstring.childNodes[0].nodevalue;\\n\\t}\\n\\telse\\n\\t{\\n\\t\\tdocument.getElementById(strHTML+\\\"_div\\\").innerHTML='waiting...';\\n\\t}\\n\\t}\\n}\",\n \"function displayUnitTests(req)\\n{\\n document.getElementById('unit-tests').innerHTML = req.responseText;\\n}\",\n \"function appendResult(results) {\\n // refreshes response \\n document.getElementById('result').innerHTML = '';\\n // prints out the response \\n document.getElementById('result').append(results);\\n}\",\n \"function alertContents() {\\n try {\\n if (httpRequest.readyState === 4) {\\n if (httpRequest.status === 200) {\\n //show the ajax box with the html from step 3 in it. Trigger create is used to apply the jqmobile styles to the returned html\\n \\t$(\\\".ajaxContent\\\").show().html(httpRequest.responseText).fadeIn(\\\"fast\\\").trigger(\\\"create\\\") ;\\n \\t$(\\\"#continue\\\").show();\\n\\n } else {\\n alert('There was a problem with the request.');\\n }\\n }\\n }\\n catch( e ) {\\n alert('Caught Exception: ' + e.description);\\n }\\n}\",\n \"function cbGetAllTestLocations() {\\n\\tdocument.getElementById(\\\"data-content\\\").innerHTML = xmlhttpRequest.responseText;\\n}\",\n \"function callBack(){\\n if(xhr.readyState == 4 && xhr.status == 200){\\n //console.log(\\\"Funciono\\\")\\n document.querySelector('main').innerHTML= xhr.response //Traigo informacion del servidor\\n }\\n }\",\n \"function fetchMeaning(ajax) {\\n\\t$(\\\"loadingmeaning\\\").hide();\\n\\t$(\\\"meaning\\\").innerHTML = ajax.responseText;\\n}\",\n \"function ajaxShowFriends() {\\n sendRequest(\\\"showFriends\\\", function(response,status,ajaxObj) {\\n $(\\\"#col-amis\\\").append(response);\\n });\\n}\",\n \"function getAjaxPhoto(type,div)\\r\\n{\\r\\n $(div).css(\\\"display\\\",\\\"block\\\");\\r\\n var preservedHTML = $(div).html();\\r\\n $.ajax({\\r\\n url : page,\\r\\n type : 'POST',\\r\\n dataType : 'json',\\r\\n data : ({ mode : 'loadAjaxPhotos', 'photosType' : type }),\\r\\n beforeSend : function ()\\r\\n {\\r\\n $(div).html(loading);\\r\\n },\\r\\n success : function (data)\\r\\n {\\r\\n if(data['failed'])\\r\\n {\\r\\n //alert(\\\"No Photos Returned\\\");\\r\\n $(div).html(preservedHTML);\\r\\n }\\r\\n\\r\\n if(data['completed'])\\r\\n {\\r\\n $(div).html(data['photoBlocks']);\\r\\n }\\r\\n }\\r\\n })\\r\\n}\",\n \"static showFresh(){\\n $.ajax({\\n url:\\\"AJAX/AJAX.php\\\",\\n method:\\\"POST\\\",\\n data:{getlist:true},\\n dataType:\\\"json\\\",\\n success:function(data)\\n {\\n //document.querySelector('#results').innerHTML=''\\n window.querry = ''\\n document.getElementById('results').innerHTML = ''\\n view.renderList(data)\\n listeners.scrollListener()\\n //Course.renderBasicCategoriesForUser(data);\\n //return data;\\n\\n },error:function (data){\\n //console.log(data)\\n }\\n });\\n }\",\n \"function processStateChange() {\\r\\n\\r\\n \\t if (req.readyState == 4) { // Complete\\r\\n if (req.status == 200) { // OK response\\r\\n\\r\\n ///alert(\\\"Ajax response:\\\"+req.responseText);\\r\\n\\r\\n //Split the text response into Span elements\\r\\n spanElements = splitTextIntoSpan(req.responseText);\\r\\n\\r\\n //Use these span elements to update the page\\r\\n replaceExistingWithNewHtml(spanElements);\\r\\n\\r\\n } else {\\r\\n alert(\\\"Problem with server response:\\\\n \\\" + req.statusText);\\r\\n }\\r\\n }\\r\\n }\",\n \"function showResponseText(request, resultRegion) {\\r\\n if ((request.readyState == 4) &&\\r\\n (request.status == 200)) {\\r\\n htmlInsert(resultRegion, request.responseText);\\r\\n }\\r\\n}\",\n \"function ajaxResult(address, search) {\\n//alert(\\\"ready to lauch...\\\");\\n var request = getRequestObject();\\n request.onreadystatechange = \\n function() { showResponseText(request, search); };\\n request.open(\\\"GET\\\", address, true);\\n request.send(null);\\n//alert(\\\"lauched...\\\");\\n}\",\n \"function processStateChange(){\\r\\n\\tif (req.readyState == 4){ \\r\\n\\t\\t// Complete\\r\\n\\t\\tif (req.status == 200){\\r\\n\\t\\t\\t// OK response\\r\\n\\t\\t document.getElementById(\\\"ajaxResponse\\\").innerHTML = req.responseText;\\r\\n\\t\\t\\t} else {\\r\\n\\t\\t alert(\\\"Erreur Ajax - Problem: \\\" + req.statusText);\\r\\n\\t\\t alert(\\\"Erreur Ajax - status: \\\" + req.status);\\r\\n\\t\\t}\\r\\n\\t} \\r\\n}\",\n \"function getCsInformation(controlId) {\\n $('#'+controlId).html('
');\\n $.ajax({\\n type: \\\"POST\\\", \\n url: URL + '/proxy',\\n dataType: \\\"json\\\",\\n data: { method: 'getCsInformation',csrf_token_id:csrf_token_val},\\n success: function (data) {\\n $('#'+controlId).html(data.result); \\n (function($){\\n $(\\\".agent-portlet-body\\\").mCustomScrollbar({\\n theme:\\\"inset-2-dark\\\"\\n });\\n\\n })(jQuery); \\n }\\n });\\n\\n}\",\n \"function getSong() {\\r\\n var xmlhttp = getXMLHTTP();\\r\\n\\r\\n xmlhttp.onreadystatechange = function() {\\r\\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\\r\\n var songDiv = document.getElementById('custom-main-container');\\r\\n songDiv.innerHTML += xmlhttp.responseText;\\r\\n }\\r\\n };\\r\\n xmlhttp.open('POST', '../controller/RandomSongController.php');\\r\\n xmlhttp.send();\\r\\n}\",\n \"function displayMeetingInfo(ajax) {\\r\\n\\t\\r\\n\\t\\t// Display the HTML on the page\\r\\n\\t\\t$(\\\"#meeting-info\\\").html(ajax);\\r\\n\\t}\",\n \"function CargarNotificaciones() {\\n\\n var areaNotific = document.getElementById('areaNotific');\\n \\n $.ajax({\\n url: base_url+\\\"index.php/notificaciones/cargar_notificaciones\\\",\\n type: 'POST',\\n global: false,\\n \\n beforeSend: function (xhr) {\\n xhr.overrideMimeType(\\\"text/plain; charset=utf-8\\\");\\n areaNotific.innerHTML = '
Loading...
';\\n },\\n success: function (data) {\\n\\n //rspuesta del query de notificaciones del usaurio\\n var Obj=$.parseJSON(data);\\n \\n var resuesta_html = Obj['respues_notifi_html'];\\n areaNotific.innerHTML = resuesta_html;\\n }\\n });\\n\\n}\",\n \"function process_reporte_principal(){\\n var resultados = document.getElementById(\\\"cargar\\\");\\n if(reporte_principal.readyState == 4)\\n {\\n\\tresultados.innerHTML = reporte_principal.responseText;\\n }\\n else{\\n\\t resultados.innerHTML = '

Procesando...

';\\n }\\n}\",\n \"function stateChangedrheka() \\n{ \\ndocument.getElementById(\\\"rheka\\\").innerHTML= \\\"
\\\";\\nif (xmlHttp.readyState==4)\\n{ \\ndocument.getElementById(\\\"rheka\\\").innerHTML=xmlHttp.responseText;\\n}\\n}\",\n \"function processSearch() {\\n //\\n if(request.readyState < 4) {\\n\\n }\\n \\n if (request.readyState == 4) {\\n \\t\\n \\n document.getElementById(\\\"voting\\\").innerHTML = request.responseText;\\n request = null;\\n }\\n \\n\\n}\",\n \"function renderReservationPage(url)\\n{\\n // ajax\\n $.ajax({\\n type : 'GET',\\n url : url,\\n success : function(html){\\n\\n //adiciona a tela de reserva de sala\\n $(\\\"#result-search\\\").html(html);\\n\\n },\\n \\n\\n });\\n\\n return false;\\n\\n}\",\n \"function verMensajes() {\\n let httpRequest = new XMLHttpRequest();\\n httpRequest.open('POST', '../consultas_ajax.php', true);\\n httpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');\\n httpRequest.onreadystatechange = function () {\\n if (httpRequest.readyState === 4) {\\n if (httpRequest.status === 200) {\\n document.getElementById('mensajes').innerHTML = httpRequest.responseText;\\n }\\n }\\n };\\n httpRequest.send('verMensajes=');\\n\\n\\n}\",\n \"function carga_ajax_BuscarVendedorCliente(ruta,valor,div) \\n{\\n $.post(ruta,{valor:valor},function(resp)\\n {\\n $(\\\"#\\\"+div+\\\"\\\").html(resp);\\n });\\n}\",\n \"function AjaxCall() {\\n\\tthis.req = null;\\n\\tthis.url = null;\\n\\tthis.divID = null;\\n\\tthis.method = 'POST';\\n\\tthis.async = true;\\n\\tthis.queryString = null;\\n\\tthis.visible= false;\\n\\t\\n\\tthis.initReq = function (){\\n\\t\\tvar self = this;\\n\\t\\tthis.req.open(this.method,this.url,this.async);\\n\\t\\tthis.req.onreadystatechange= function() {\\n\\t\\t\\tvar obj=document.getElementById(self.divID);\\n\\t\\t\\tif(self.req.readyState == 4){\\t\\n\\t\\t\\t\\tif(self.req.status == 200){\\n\\t\\t\\t\\t\\tobj.innerHTML=self.req.responseText;\\n\\t\\t\\t\\t\\tif (self.visible) obj.style.visibility=\\\"visible\\\";\\n\\t\\t\\t\\t\\tself.onresult();\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t//alert(self.req.status+\\\"A problem occurred with communicating between the XMLHttpRequest object and the server program.\\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tthis.req.setRequestHeader(\\\"Content-Type\\\",\\\"application/x-www-form-urlencoded; charset=UTF-8\\\");\\n\\t\\tthis.req.send(this.queryString);\\n\\t}\\n\\t\\n\\tthis.httpRequest = function (){\\n\\t\\t//Mozilla-based browsers\\n\\t\\tif(window.XMLHttpRequest){\\n\\t\\t\\tthis.req = new XMLHttpRequest();\\n\\t\\t} else if (window.ActiveXObject){\\n\\t\\t\\tthis.req=new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n\\t\\t\\tif (!this.req){\\n\\t\\t\\t\\tthis.req=new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t//the request could still be null if neither ActiveXObject\\n\\t\\t//initializations succeeded\\n\\t\\tif(this.req){\\n\\t\\t\\tthis.initReq();\\n\\t\\t} else {\\n\\t\\t\\t//alert(\\\"Your browser does not permit the use of all \\\"+\\\"of this application's features!\\\");\\n\\t\\t}\\n\\t}\\n\\t\\n\\tthis.onresult = function (){\\n\\t\\t//Do something after completion here.\\n\\t}\\n}\",\n \"function loadJobPostings() {\\n var xhttp = new XMLHttpRequest();\\n xhttp.onreadystatechange = function() {\\n if (this.readyState == 4 && this.status == 200) {\\n document.getElementById(\\\"jobpostings\\\").innerHTML = this.responseText;\\n }\\n };\\n xhttp.open(\\\"GET\\\", \\\"/jobPostings/submitJobPosting\\\", true);\\n xhttp.send();\\n}\",\n \"function makeAjaxCall(urlToCall){\\r\\n\\tvar ajaxObject = getAjaxObj();\\r\\n\\t\\r\\n\\tajaxObject.onreadystatechange=function(){\\r\\n\\t\\tif(ajaxObject.readyState == 4){\\r\\n\\t\\t\\tif(ajaxObject.status == 200){\\r\\n\\t\\t\\t\\t//la llamada termino ok\\r\\n\\t\\t\\t\\t//inyectamos la respuesta\\r\\n\\t\\t\\t\\tdocument.getElementById(\\\"pagingValues\\\").innerHTML = ajaxObject.responseText;\\r\\n\\t\\t\\t} else {\\r\\n\\t\\t\\t\\talert(mensajeErrorAjaxInvocacion);\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\t\\r\\n\\t\\t\\tdocument.getElementById(\\\"ajaxExecution\\\").style.display = \\\"none\\\";\\r\\n\\t\\t\\tdocument.getElementById(\\\"pagingValues\\\").style.display = \\\"block\\\";\\r\\n\\t\\t}\\r\\n\\t};\\r\\n\\t\\r\\n\\t//colocamos la imagen de \\\"cargando\\\"\\r\\n\\tdocument.getElementById(\\\"pagingValues\\\").style.display = \\\"none\\\";\\r\\n\\tdocument.getElementById(\\\"ajaxExecution\\\").style.display = \\\"inline-table\\\";\\r\\n\\t\\r\\n\\tajaxObject.open(\\\"POST\\\", urlToCall);\\r\\n\\tajaxObject.send(null);\\r\\n}\",\n \"function getBookings(div){\\n\\tvar xhr = new XMLHttpRequest();\\n\\txhr.onreadystatechange = function() {\\t\\t\\t\\t\\t\\n\\t\\tif (xhr.readyState == 4 && xhr.status == 200) {\\n\\t\\t\\tdocument.getElementById(div).innerHTML = xhr.responseText;\\n\\t\\t} // end if\\n\\t} // end anonymous call-back function\\n\\txhr.open(\\\"GET\\\", \\\"getBookings.php\\\", true);\\n\\txhr.send();\\n}// end function\",\n \"function next_print_arch_lead()\\n{\\n var page = document.getElementById('page');\\n page.innerHTML='';\\n child = document.createElement('div');\\n //ajax\\n var xhr;\\n xhr = new XMLHttpRequest();\\n\\n xhr.abort();\\n xhr.open(\\\"GET\\\",\\\"../print_data.php?action=arch_lead_next\\\",true);\\n xhr.onreadystatechange=function()\\n {\\n if ((xhr.status == 200) && (xhr.readyState == 4))\\n {\\n //console.log(xhr.response);\\n child.innerHTML = xhr.response;\\n }\\n };\\n page.appendChild(child);\\n xhr.send(null);\\n}\",\n \"function showMsgsAfterAjaxCall(innerHTML){\\r\\n\\t//obtenemos el tamaño de la pantalla\\r\\n\\tvar screenW = screen.width;\\r\\n\\tvar screenH = screen.height;\\r\\n\\t\\r\\n\\tvar container = document.getElementById(\\\"ajaxMsgsContainer\\\");\\r\\n\\tcontainer.style.width = screenW + \\\"px\\\";\\r\\n\\tcontainer.style.height = screenH + \\\"px\\\";\\r\\n\\t\\r\\n\\tvar innerDiv = document.getElementById(\\\"ajaxMsgsValues\\\");\\r\\n\\tinnerDiv.innerHTML = innerHTML;\\r\\n\\t\\r\\n\\tvar msgsContainer = document.getElementById(\\\"errorContainer\\\");\\r\\n\\tif(msgsContainer == null){\\r\\n\\t\\tmsgsContainer = document.getElementById(\\\"msgsAjaxContainer\\\");\\r\\n\\t}\\r\\n\\tinnerDiv.style.height = msgsContainer.style.height + \\\"px\\\";\\r\\n\\tinnerDiv.style.left = ((screenW - 450) / 2) + \\\"px\\\";\\r\\n\\tinnerDiv.style.top = ((screenH - 110) / 2) + \\\"px\\\";\\r\\n\\t\\r\\n\\t//antes de mostrar los errores, debemos acomodarlos en el centro de la pantalla\\r\\n\\tinnerDiv.style.display = \\\"block\\\";\\r\\n\\tcontainer.style.display = \\\"block\\\";\\r\\n}\",\n \"function getRegions() {\\n \\\"use strict\\\";\\n var ajaxRequest; //enable AJAX\\n \\n try {\\n // Opera 8.0+, Firefox, Safari\\n ajaxRequest = new XMLHttpRequest();\\n } catch (e1) {\\n // Internet Explorer Browsers\\n try {\\n ajaxRequest = new window.ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n } catch (e2) {\\n try {\\n ajaxRequest = new window.ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n } catch (e3) {\\n // Something went wrong\\n alert(\\\"AJAX request error\\\");\\n return false;\\n }\\n }\\n }\\n \\n // Create a function that will receive data \\n // sent from the server and will update\\n // div section in the same page.\\t\\n ajaxRequest.onreadystatechange = function () {\\n if (ajaxRequest.readyState === 4) {\\n var ajaxDisplay = document.getElementById('regions');\\n ajaxDisplay.innerHTML = ajaxRequest.responseText;\\n // turn off the loader\\n ajaxDisplay.style.background = 'none';\\n }\\n };\\n\\n // Now get the value from user and pass it to\\n // server script.\\n ajaxRequest.open(\\\"GET\\\", \\\"ajax_get_regions.php\\\", true);\\n ajaxRequest.send(null);\\n}\",\n \"function showResponseText(request, resultRegion) {\\n if ((request.readyState == 4) &&\\n (request.status == 200)) {\\n htmlInsert(resultRegion, request.responseText);\\n }\\n}\",\n \"success(data, textStatus, jqXHR ){\\r\\n //console.log(jqXHR.status);\\r\\n \\r\\n b.html(data);\\r\\n }\",\n \"function setOutput()\\n{\\n\\tif(httpObject.readyState == 4)\\n\\t\\tparseJSON(httpObject.responseText);\\n}\",\n \"function getDgInformation(controlId) {\\n $('#'+controlId).html('
');\\n $.ajax({\\n type: \\\"POST\\\", \\n url: URL + '/proxy',\\n dataType: \\\"json\\\",\\n data: { method: 'getDgInformation',csrf_token_id:csrf_token_val},\\n success: function (data) {\\n $('#'+controlId).html(data.result); \\n (function($){\\n $(\\\".agent-portlet-body\\\").mCustomScrollbar({\\n theme:\\\"inset-2-dark\\\"\\n });\\n\\n })(jQuery); \\n }\\n });\\n\\n}\",\n \"function stateChangedinner61() \\n{ \\ndocument.getElementById(\\\"inner61\\\").innerHTML= \\\"
\\\";\\nif (xmlHttp.readyState==4)\\n{ \\ndocument.getElementById(\\\"inner61\\\").innerHTML=xmlHttp.responseText;\\n}\\n}\",\n \"function showResponse(response) {\\r\\n var responseString = JSON.stringify(response, '', 2);\\r\\n document.getElementById('response').innerHTML += responseString;\\r\\n}\",\n \"function dataUploaded() { \\r\\n if (client.readyState == 4) { \\r\\n document.getElementById(\\\"dataUploadResult\\\").innerHTML = client.responseText; \\r\\n }\\r\\n }\",\n \"function Fnc_GenerarGraficoAjax(Str_Parametos) {\\n $.ajax({\\n type: \\\"get\\\",\\n url: \\\"/Incorporaciones/Reportes/Grafico_vista/\\\",\\n data: Str_Parametos,\\n success: function (response) {\\n if (response == \\\"Fail\\\") {\\n alert(\\\"Tiene que selecionar un departamento o especificar un rango de fechas\\\");\\n }\\n else {\\n\\n $(\\\"#Grafico-Seccion\\\").empty()\\n var container = document.createElement(\\\"div\\\");\\n container.setAttribute(\\\"id\\\", \\\"container\\\");\\n $(container).append(response);\\n $(\\\"#Grafico-Seccion\\\").append(container);\\n $(\\\"#MenuBar\\\").show();\\n }\\n }\\n });\\n\\n}\",\n \"function OLresponseAJAXshow(quo){\\r\\r\\n var so=OLoverHTML,s=(OLresponseAJAX||'null').toString(),q=(quo||0);\\r\\r\\n overlib(OLhtmlspecialchars(s,q), CAPTION,'
OLresponseAJAX
', EXCLUSIVEOVERRIDE, STICKY, EXCLUSIVE,\\r\\r\\n BGCLASS,'', BORDER,1, BGCOLOR,'#666666', BASE,0, CGCLASS,'', CAPTIONFONTCLASS,'', CLOSEFONTCLASS,'', CAPTIONPADDING,6,\\r\\r\\n CGCOLOR,'#999999', CAPTIONSIZE,'12px', CAPCOLOR,'#ffffff', CLOSESIZE,'11px', CLOSECOLOR,'#ffffff', FGCLASS,'',\\r\\r\\n TEXTFONTCLASS,'', TEXTPADDING,6, FGCOLOR,'#eeeeee', TEXTSIZE,'12px', TEXTCOLOR,'#000000', MIDX,0, RELY,5, WRAP,\\r\\r\\n (OLfilterPI)?-FILTER:DONOTHING, (OLshadowPI)?-SHADOW:DONOTHING);\\r\\r\\n OLoverHTML=so;\\r\\r\\n}\",\n \"function drawOutput(responseText) {\\n var container = document.getElementById('output'); \\n container.innerHTML = responseText;\\n}\",\n \"function ajaxCall() {\\n var data = $('[data-api-url]').data();\\n return $.getJSON('/api?url='+data.apiUrl).then(displayElements);\\n }\",\n \"function showListContact(){\\n new Ajax.Request(Utils.getKumbiaURL(\\\"desktop/showListContact\\\"), {\\n parameters: {\\n },\\n onSuccess: function(transport){\\n response = transport.responseText.evalJSON();\\n $('content-contact-listas').innerHTML = response;\\n $('content-contact-info').innerHTML = \\\"\\\";\\n },\\n onFailure: function(transport){\\n alert(transport.responseText);\\n }\\n });\\n}\",\n \"function showListContact(){\\n new Ajax.Request(Utils.getKumbiaURL(\\\"desktop/showListContact\\\"), {\\n parameters: {\\n },\\n onSuccess: function(transport){\\n response = transport.responseText.evalJSON();\\n $('content-contact-listas').innerHTML = response;\\n $('content-contact-info').innerHTML = \\\"\\\";\\n },\\n onFailure: function(transport){\\n alert(transport.responseText);\\n }\\n });\\n}\",\n \"function processReqChange() \\r\\n\\t{\\r\\n\\t\\tif (req.readyState == 4) // only if req shows \\\"complete\\\"\\r\\n\\t\\t{\\r\\n\\t\\t\\tif (req.status == 200) // only if \\\"OK\\\"\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tdocument.getElementById(\\\"quan\\\").innerHTML=req.responseText;\\r\\n\\t\\t\\t} \\r\\n\\t\\t}\\r\\n\\t}\",\n \"function getItscInformation(controlId) {\\n $('#'+controlId).html('
');\\n $.ajax({\\n type: \\\"POST\\\", \\n url: URL + '/proxy',\\n dataType: \\\"json\\\",\\n data: { method: 'getItscInformation',csrf_token_id:csrf_token_val},\\n success: function (data) {\\n $('#'+controlId).html(data.result); \\n (function($){\\n $(\\\".agent-portlet-body\\\").mCustomScrollbar({\\n theme:\\\"inset-2-dark\\\"\\n });\\n\\n })(jQuery); \\n }\\n });\\n\\n}\",\n \"function refreshMainRightDiv() {\\r\\n loadXMLDoc();\\r\\n xmlhttp.onreadystatechange = function () {\\r\\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\\r\\n document.getElementById(\\\"ajaxLoadRightMenuDiv\\\").style.visibility = \\\"hidden\\\";\\r\\n document.getElementById(\\\"mainRightDiv\\\").innerHTML = xmlhttp.responseText;\\r\\n } else {\\r\\n document.getElementById(\\\"ajaxLoadRightMenuDiv\\\").style.visibility = \\\"visible\\\";\\r\\n }\\r\\n };\\r\\n xmlhttp.open(\\\"POST\\\", \\\"include/php/ompprmdv.php\\\", true);\\r\\n xmlhttp.send();\\r\\n}\",\n \"function loadQuestionAdd(url) {\\n $.ajax({\\n url: url,\\n method: 'POST',\\n success: function( data) {\\n $('#AddInvoicePreview').html(data); \\n },\\n error: function(error) {\\n console.log(error);\\n }\\n }); \\n}\",\n \"function showResponse(response) {\\n var responseString = JSON.stringify(response, '', 2);\\n document.getElementById('response').innerHTML += responseString;\\n}\",\n \"function adm_ajax_load()\\n{\\n\\tadm_core = document.getElementById('adm_core');\\n\\tvar request = new XMLHttpRequest;\\n\\trequest.open('GET', 'sc_adm_content.php', true);\\n\\trequest.onload = function()\\n\\t{\\n\\t\\tif (request.status >= 200 && request.status < 400)\\n\\t\\t{\\n\\t\\t\\tvar resp = request.responseText;\\n\\t\\t\\tadm_core.innerHTML = resp;\\n\\t\\t}\\n\\t};\\n\\trequest.send();\\n}\",\n \"function ajaxpage(url, containerid) {\\r\\n//\\talert('hello');\\r\\n\\tvar page_request = false;\\r\\n\\tif (window.XMLHttpRequest) // if Mozilla, Safari etc\\r\\n\\t\\tpage_request = new XMLHttpRequest();\\r\\n\\telse if (window.ActiveXObject){ // if IE\\r\\n\\t\\ttry {\\r\\n\\t\\t\\tpage_request = new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\r\\n\\t\\t} \\r\\n\\t\\tcatch (e){\\r\\n\\t\\t\\ttry{\\r\\n\\t\\t\\t\\tpage_request = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tcatch (e){}\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\telse\\r\\n\\t\\treturn false;\\r\\n\\r\\n//\\tpage_request.onreadystatechange=function() {\\r\\n//\\t\\tloadpage(page_request, containerid)\\r\\n//\\t}\\r\\n\\r\\n\\r\\n\\t//I added this condition for making only ajax requests without showing the result on a certain DIV section\\r\\n\\tif (containerid!=null)\\r\\n\\t{\\r\\n\\t\\tpage_request.onreadystatechange=function() {\\r\\n\\t\\t\\tloadpage(page_request, containerid)\\r\\n\\t\\t}\\r\\n\\t}\\r\\n\\r\\n\\tif (bustcachevar) //if bust caching of external page\\r\\n\\t\\tbustcacheparameter=(url.indexOf(\\\"?\\\")!=-1)? \\\"&\\\"+new Date().getTime() : \\\"?\\\"+new Date().getTime();\\r\\n\\tpage_request.open('GET', url+bustcacheparameter, true);\\r\\n\\tpage_request.send(null);\\r\\n}\",\n \"function updatedata(user)\\r\\n{\\r\\n $.ajax({\\r\\n url: \\\"robot/info/\\\"+ user.getLogin() + \\\"/\\\" + user.getToken(),\\r\\n method: 'GET',\\r\\n success: function(result)\\r\\n {\\r\\n console.log(result);\\r\\n $(\\\"#h3_id1\\\").html(result[0]);\\r\\n $(\\\"#h3_id2\\\").html(result[1]);\\r\\n $(\\\"#h3_id3\\\").html(result[2]);\\r\\n $(\\\"#h3_id4\\\").html(result[3]);\\r\\n }\\r\\n });\\r\\n}\",\n \"function update_slice_liste(){\\n var action = \\\"all\\\";\\n xhr = new XMLHttpRequest;\\n xhr.responseType = 'json';\\n var URL = \\\"ajax/slider.php?action=\\\"+action;\\n xhr.open(\\\"GET\\\",URL,true);\\n xhr.send(null);\\n xhr.onreadystatechange = result;\\n function result(){\\n if (this.readyState === 4 && this.status === 200) {\\n var datax = xhr.response;\\n // mise a jour du tableau des produits\\n //$(\\\"#slices\\\").innerHTML(datax.result);\\n document.getElementById('slices').innerHTML = datax.result;\\n }\\n }\\n }\",\n \"function fetchData()\\n{\\n if((xhr.readyState == 4) &&(xhr.status == 200))\\n { //console.log(\\\"inside fetchData function\\\");\\n var spanTag1 = document.getElementById(\\\"tableContent\\\").innerHTML;\\n spanTag1.innerHTML = xhr.responseText;\\n }\\n}\",\n \"function dataUpload(){\\r\\n\\t//this function listens out for the server to say that the data is ready i.e.has state 4\\r\\n\\tif(client.readyState=4){ \\r\\n\\t//change the div to show the response\\r\\n\\tdocument.getElementById('dataUploadResult').innerHTML=client.responseText;\\r\\n\\t}\\r\\n}\",\n \"function fetchContactList(){\\n\\n return $.ajax({ //create an ajax request to display.php\\n type: \\\"GET\\\",\\n url: \\\"fetch/retrieveContactList.php\\\",\\n dataType: \\\"html\\\", //expect html to be returned\\n success: function(result){\\n return result;\\n },\\n error: function(){\\n return null;\\n }\\n });\\n}\",\n \"function getAndDisplayContent(str) {\\r\\n \\r\\n var content = document.getElementById('content');\\r\\n var item_id = document.getElementById('item_id');\\r\\n\\r\\n if (str == '') {\\r\\n\\r\\n content.innerHTML = \\\"\\\";\\r\\n return;\\r\\n\\r\\n } else{\\r\\n\\r\\n //checking browser compatibility;\\r\\n if (window.XMLHttpRequest) {\\r\\n // code for IE7+, Firefox, Chrome, Opera, Safari\\r\\n xmlhttp = new XMLHttpRequest();\\r\\n\\r\\n } else {\\r\\n // code for IE6, IE5\\r\\n xmlhttp = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\r\\n }\\r\\n\\r\\n xmlhttp.onreadystatechange = function() {\\r\\n\\r\\n if (this.readyState == 4 && this.status == 200) {\\r\\n\\r\\n content.innerHTML = this.responseText;\\r\\n\\r\\n }\\r\\n };\\r\\n\\r\\n\\r\\n xmlhttp.open(\\\"GET\\\",\\\"displaydata.php?action=load_content&content_type=\\\" + str + \\\"&item=\\\"+item_id.value,true);\\r\\n\\r\\n xmlhttp.send();\\r\\n }\\r\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.76876664","0.7421365","0.7033998","0.7011751","0.69797146","0.6943831","0.6895974","0.68544644","0.6843866","0.680973","0.68011093","0.666624","0.6632288","0.6618906","0.65310574","0.6507881","0.6505922","0.64942616","0.6493618","0.64894027","0.6471794","0.64598984","0.6456196","0.6434716","0.64238983","0.64142865","0.64110684","0.6403471","0.6390247","0.63619494","0.63543946","0.63511413","0.6347742","0.63401574","0.63231444","0.6314537","0.63114154","0.6305046","0.6304012","0.62939835","0.62889355","0.6286482","0.6281494","0.62674844","0.626422","0.6263174","0.62607884","0.6260767","0.6244715","0.62418807","0.62382674","0.6231432","0.62291396","0.62276256","0.6215685","0.6210945","0.6207889","0.62065476","0.61991024","0.6193865","0.61840636","0.617397","0.61718714","0.616828","0.6159698","0.615885","0.6144074","0.6138742","0.61335856","0.6133538","0.612569","0.61217254","0.6119333","0.61053234","0.61029977","0.6095167","0.609003","0.60869104","0.6075448","0.6074022","0.6073514","0.6072154","0.6063862","0.60637933","0.60618657","0.6050118","0.604775","0.604775","0.6032586","0.60213554","0.60209066","0.60195017","0.6018853","0.60188323","0.60151887","0.60142225","0.60140115","0.6011295","0.6008562","0.60047126","0.60023195"],"string":"[\n \"0.76876664\",\n \"0.7421365\",\n \"0.7033998\",\n \"0.7011751\",\n \"0.69797146\",\n \"0.6943831\",\n \"0.6895974\",\n \"0.68544644\",\n \"0.6843866\",\n \"0.680973\",\n \"0.68011093\",\n \"0.666624\",\n \"0.6632288\",\n \"0.6618906\",\n \"0.65310574\",\n \"0.6507881\",\n \"0.6505922\",\n \"0.64942616\",\n \"0.6493618\",\n \"0.64894027\",\n \"0.6471794\",\n \"0.64598984\",\n \"0.6456196\",\n \"0.6434716\",\n \"0.64238983\",\n \"0.64142865\",\n \"0.64110684\",\n \"0.6403471\",\n \"0.6390247\",\n \"0.63619494\",\n \"0.63543946\",\n \"0.63511413\",\n \"0.6347742\",\n \"0.63401574\",\n \"0.63231444\",\n \"0.6314537\",\n \"0.63114154\",\n \"0.6305046\",\n \"0.6304012\",\n \"0.62939835\",\n \"0.62889355\",\n \"0.6286482\",\n \"0.6281494\",\n \"0.62674844\",\n \"0.626422\",\n \"0.6263174\",\n \"0.62607884\",\n \"0.6260767\",\n \"0.6244715\",\n \"0.62418807\",\n \"0.62382674\",\n \"0.6231432\",\n \"0.62291396\",\n \"0.62276256\",\n \"0.6215685\",\n \"0.6210945\",\n \"0.6207889\",\n \"0.62065476\",\n \"0.61991024\",\n \"0.6193865\",\n \"0.61840636\",\n \"0.617397\",\n \"0.61718714\",\n \"0.616828\",\n \"0.6159698\",\n \"0.615885\",\n \"0.6144074\",\n \"0.6138742\",\n \"0.61335856\",\n \"0.6133538\",\n \"0.612569\",\n \"0.61217254\",\n \"0.6119333\",\n \"0.61053234\",\n \"0.61029977\",\n \"0.6095167\",\n \"0.609003\",\n \"0.60869104\",\n \"0.6075448\",\n \"0.6074022\",\n \"0.6073514\",\n \"0.6072154\",\n \"0.6063862\",\n \"0.60637933\",\n \"0.60618657\",\n \"0.6050118\",\n \"0.604775\",\n \"0.604775\",\n \"0.6032586\",\n \"0.60213554\",\n \"0.60209066\",\n \"0.60195017\",\n \"0.6018853\",\n \"0.60188323\",\n \"0.60151887\",\n \"0.60142225\",\n \"0.60140115\",\n \"0.6011295\",\n \"0.6008562\",\n \"0.60047126\",\n \"0.60023195\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":81546,"cells":{"query":{"kind":"string","value":"Send Request Using Ajax to python controller"},"document":{"kind":"string","value":"function fncallxmlAjaxFunction()\r\n{\r\n var senddata = mstrInformationTargetID;\r\n\t\tvar url = \"/loadData?senddata=\"+senddata;\r\n \r\n // To remove firefox bug :\r\n if (navigator.appName ==\"Netscape\")\r\n\t\t{\r\n\t\t\t http_request.open(\"GET\", url, true);\r\n\t\t}\r\n else\r\n {\r\n http_request.open(\"GET\", url, true);\r\n }\r\n\t\thttp_request.onreadystatechange = fnRequestwinStatusChanged;\r\n http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');\r\n\t\thttp_request.send(senddata); \r\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["perform() {\r\n $.ajax(this.REQUEST)\r\n }","function servletPost(xx) {\r\n\t$.ajax({\r\n\t\ttype : \"POST\",\r\n\t\turl : \"/\" + xx\r\n\t});\r\n\treturn false;\r\n}","function ajax() {\r\n return $.ajax({\r\n url: 'http://127.0.0.1:5000/send_url',\r\n data: {\r\n 'url': tabUrl.toString(),\r\n 'username': customerUserName\r\n },\r\n type: 'GET',\r\n dataType: 'json',\r\n success: function(data){ ajaxResults = data}\r\n })\r\n }","function sendAjax(url, data) {\n\n $.ajax({\n type: \"POST\",\n url: url,\n data: data,\n contentType: \"JSON\",\n processData: false,\n contentType: false,\n dataType: \"json\",\n success: function (result, status) {\n\n console.log(result)\n }\n });\n }","function request_inventory(){\n\tvar form = document.getElementById('req_inv');\n var jsonData = formToJson( form );\n\n //alert('in: req');\n\n $.ajax({\n type : \"POST\",\n url : \"/inv_mgt/inventory/create\",\n data : jsonData,\n contentType: \"application/json\",\n success:function(msg){\n \talert('success');\n }\n });\n\n //alert('out: req');\n}","function button_click_fn() {\n\t//call ajax\n\tajax_handler.request({\n url: '/query/end_point',\n async: false,\n method: 'GET',\n response_type: 'json',\n data: { id_value = document.getElementById('el_id').value },\n on_success: function (data) { \n\t\t/*Do things with data*/ \n\t },\n\t on_error: function (status, error_msg) {\n\t if(console) console.log('status:' + status + ' || error msg:' + error_msg);\n\t }\n \t});\n}","function sendRequest() {\n if (window.XMLHttpRequest) {\n req = new XMLHttpRequest();\n } else {\n req = new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\n req.onreadystatechange = handleResponse;\n req.open(\"GET\", \"/get_post_json\", true);\n req.send(); \n}","_submitData(event) {\n\n // prevent submit form\n event.preventDefault();\n\n if( !this._controlDataBeforeSend() ) {\n document.body.scrollTop = document.documentElement.scrollTop = 0;\n return;\n }\n\n //let xhr = new XMLHttpRequest();\n let data = {\n name: this.options.title,\n description: this.options.describe,\n clients: this.options.data\n };\n\n var xhr = $.ajax({\n type: \"POST\",\n url: this._config.url,\n contentType: \"application/json; charset=utf-8\",\n dataType: \"json\",\n data: JSON.stringify(data)\n });\n\n var complete = false;\n\n xhr\n .done(function() {\n complete = true;\n\n })\n .fail(function() {\n complete = false;\n })\n .always(function() {\n if(complete) {\n window.location = \"/autodialer/tasks?saved\";\n } else {\n noty({\n text: 'К сожалению произошла ошибка, попробуйте ещё раз!'\n });\n }\n });\n }","function sendData() {\n $.ajax({\n type: \"POST\",\n url: ' ', \n data: ' ',\n contentType: \"application/json\",\n dataType: \"text\",\n \n success:function(result)\n {\n \n \n }\n ,\n failure:function(err)\n {\n \n }\n \n\n });\n\n}","function submitform(){\n var username = $(\"#username\").val();\n var check = $(\"#check\").val();\n $.ajax({\n url: (\"http://localhost:8080/Food_Managment_System/api/student/submitForm/\"+username+\"/\"+check)\n }).then(function(result) {\n alertify.alert(\"Επιτυχία\",\"Η καταχώρηση της αίτησης είναι επιτυχής. Για περαιτέρω πληροφορίες, επικοινωνήστε με την γραμματεία της σχολής.\");\n });\n}","function sendRequest() {\n if (window.XMLHttpRequest) {\n req = new XMLHttpRequest();\n } else {\n req = new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\n req.onreadystatechange = handleResponse;\n req.open(\"GET\", \"/intro/get-list\", true);\n req.send(); \n}","function RegistrationSave(controller) {\n alert('d');\n var request = new UserRegister();\n $.ajax({\n url: controller,\n dataType: 'json',\n contentType: \"application/json\",\n type: \"POST\",\n data: JSON.stringify(request),\n success: function (d) {\n },\n });\n}","function postClienteJuridico() {\n console.log('postCliente');\n $.ajax({\n type: 'POST',\n contentType: 'application/json',\n url: rootURL + \"/clientes/crearClientesJuridicos\",\n dataType: \"json\",\n data: clienteJuridicoToJSON(),\n success: function(data) {\n $('#h1').append(\"Consulta Realizada\");\n //renderClientes(data);\n }\n \n });\n}","function send(){\n\trequest = new XMLHttpRequest();\n\tvar url = \"ViewHistoryController\";\n\trequest.onreadystatechange = handleResponse;\n\trequest.open(\"GET\",url,true);\n\trequest.send();\n}","function sendHistory(historyItems) {\r\n console.log(\"I'm in sendHistory\");\r\n $.ajax({\r\n type: \"POST\",\r\n url: \"http://localhost:8000/processHistory\",\r\n data: JSON.stringify(historyItems),\r\n contentType: 'application/json',\r\n crossDomain: true,\r\n success: function(res){\r\n console.log(res);\r\n },\r\n dataType: \"text/plain\"\r\n });\r\n // req = new XMLHttpRequest();\r\n // req.open('POST', 'http://localhost:8000/processHistory/');\r\n // req.setRequestHeader(\"Content-type\", \"application/json\");\r\n // req.onload = alert(\"history posted\");\r\n // req.send(\"derek j kan\");//JSON.stringify({url: \"someUrl\", visits: 2}));\r\n // console.log(req);\r\n}","function makeAnAjaxCall(form, callback){\n var data = getFormData(form);\n var xhr = new XMLHttpRequest();\n xhr.open('POST', '/reservation');\n xhr.setRequestHeader('Content-Type', 'application/json');\n xhr.addEventListener('readystatechange', function(){\n if (xhr.status === 200 && xhr.readyState === 4){\n callback(xhr.responseText);\n }\n });\n xhr.send(JSON.stringify(data));\n\n}","function ajax(query, functionName, method, payload) {\n var req = new XMLHttpRequest();\n req.onload = functionName;\n req.open(method, '/' + query, true);\n if (method == \"POST\") {\n req.setRequestHeader(\"Content-Type\", \"application/json;charset=UTF-8\");\n }\n req.send(JSON.stringify(payload));\n }","function loadServices()\n{\n var url = \"../../controller/AdminAjax.php\";\n\n ajax.onreadystatechange = serviceList\n ajax.open(\"POST\",url,true);\n ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');\n ajax.send('number=5');\n}","function sendData() {\n const noteObj = document.getElementById('todolist');\n console.log(listToJSON(noteObj));\n $.ajax({\n url: '/lists', \n type: 'POST',\n data: listToJSON(noteObj),\n success: function(data) {\n window.location.replace(\"/\");\n },\n error: function(xhr, str){\n alert('Возникла ошибка: ' + xhr.responseCode);\n }\n }); \n}","function AjaxCallSessionAPI(_user, state) {\n $.ajax({\n CrossDomain: true,\n headers: {\n 'Access-Control-Allow-Origin': '*',\n 'Access-Control-Allow-Methods': 'POST',\n 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept'\n }, type: 'POST', contentType: 'application/json; charset=utf-8',\n url: 'http://localhost:8085/api/session/post',\n data: { _u: btoa(_user) },\n dataType: 'jsonp',\n jsonpCallback: (state == 1 ? _gotoIndex() : window.location.href = 'http://localhost:85/login/logout'), //Go to index code on front-end\n success: function (data) { }\n });\n}","function makeRequest(){\n $.ajax({\n url: \"http://localhost:5000/new\",\n })\n .done(function(data){\n $(\"#passcode\").html(data.passcode);\n $(\"#times\").html(data.times);\n })\n}","function sendAjax(url, data) {\n\n $.ajax({\n type: \"POST\",\n url: url,\n data: data,\n contentType: \"JSON\",\n processData: false,\n contentType: false,\n dataType: \"json\",\n success: function (result, status) {\n\n }\n });\n}","function sendJSON() {\n\t// collect variables \n\t// var name = document.getElementById('nameVar').value;\n\t// var age = document.getElementById('ageVar').value;\n\t// var country = document.getElementById('countryVar').value;\n\n\t// build a JavaScript object using the variables\n\tvar data_object = {\n\t\t\t// \"name\"\t\t: name,\n\t\t\t// \"age\"\t\t: age,\n\t\t\t// \"country\" \t: country \n\t\t};\n\n\t// convert JavaScript object to JSON object\n\tvar data_json = JSON.stringify(data_object);\n\t\n\t// log state and the JavaScript object (to be sent in JSON format)\n\tconsole.log(\">> JSON data : \");\n\tconsole.log(data_object);\n\tconsole.log(\">> Sending..\");\n\n\t// AJAX the JSON object to the server \n\t// and process the incoming data (JSON)\n\t$.ajax({\n\t\ttype: \"POST\",\n\t\turl: \"/json_receiver\",\n\t\tdata: data_json, \n\t\tcontentType:\"application/json; charset=utf-8\",\n \t\tdataType:\"json\",\n\t\tsuccess : function(data) {\n\t\t\t// log the current state\n\t\t\tconsole.log(\"<< Received JSON data : \");\n\t\t\t// console.log(data);\n\t\t\tconsole.log(\"<< Success!\");\n\t\t\t// genrate reponse and print on the document\n\t\t\t// var message = \"Hello, \" + data['name'] + \". You are : \" + data['status'] + \" !\";\n\t\t\t// $('#JSONresultHolder').html(message);\n\t\t\t\n\t\t\tupdate(data);\n\t\t},\n\t\terror : function(){\n\t\t\tconsole.log(\"<< Error!\")\n\t\t}\n\t});\n\t\n\t// stop link from reloading the page\n\tevent.preventDefault();\n}","function reg_id_submit(reg_id_value){\n\n console.log(url_push_save_reg_id);\n console.log(reg_id_value);\n\n $.ajax({\n type: 'GET',\n url: url_push_save_reg_id,\n contentType: \"application/json\",\n dataType: 'jsonp',\n data: { reg_id : reg_id_value, secretkey : '0'},\n crossDomain: true,\n beforeSend: function(){\n },\n success: function(res) {\n console.log(url_push_save_reg_id);\n console.log(reg_id_value);\n return false;\n },\n error: function(e) {\n console.log(\"Fehler\");\n },\n complete: function(data) {\n }\n });\n}","function ajaxFunction(controller,errElementID,successElementID,hideElementID,showElementID)\r\n{\r\n\txmlHttp=GetXmlHttpObject()\r\n\tif (xmlHttp==null)\r\n\t{\r\n\t\talert (\"Browser does not support HTTP Request\")\r\n\t\treturn\r\n\t}\r\n\tvar url = controller;\r\n\t\r\n\txmlHttp.onreadystatechange = function() { handleStateChange(xmlHttp,errElementID,successElementID,hideElementID,showElementID);};\r\n\t\r\n\txmlHttp.open(\"GET\",url,true)\r\n\t\r\n\txmlHttp.send(null)\r\n}","function post_action(obj){\r\n$.ajax({\r\n type:\"post\",\r\n url:\"https://5ef88b09ae8ccb0016fd725b.mockapi.io/data_to_do\",\r\n data:obj\r\n})\r\n}","function sendAction() {\n $.ajax({\n url: \"/GEMP/some-action?msg=deletesalleattende&user=\"+Utilisateur.user,\n type: \"POST\"\n });\n}","function login() {\n $.ajax({\n type: 'POST',\n url: '/login',\n data: JSON.stringify({\n Username: $('#Username').val(),\n Pass: $('#password').val()\n }),\n dataType: 'json',\n async: false,\n success: function(data) {\n console.log(\"Posted Data\");\n },\n error: function(xhr, textStatus, error) {\n console.log(xhr.statusText);\n console.log(textStatus);\n console.log(error);\n }\n });\n\n}","function postClienteFisico() {\n console.log('postCliente');\n $.ajax({\n type: 'POST',\n contentType: 'application/json',\n url: rootURL + \"/cuentaAhorroAutomatico/crearCuentaAhorroAutomatico\",\n dataType: \"json\",\n data: clienteFisicoToJSON(),\n success: function(data) {\n $('#h1').append(\"Consulta Realizada\");\n //renderClientes(data);\n }\n \n });\n}","function sendRequest(form) {\n var formData = new FormData(form);\n\n //used to replace the browser url\n var targetURL = buildGetString(formData);\n\n formData.append('page', nextPage);\n\n //cancel previous request, if user was too fast\n request.abort();\n\n var getString = buildGetString(formData);\n\n if (window.history.replaceState) {\n window.history.replaceState(null, '', targetURL);\n }\n\n request.open('Post', getString, true);\n request.setRequestHeader('Accept', 'application/json');\n\n //send ajax = 1 to prevent users from accessing the returned json via get\n var formData = new FormData();\n formData.append('ajax', '1');\n request.send(formData);\n }","function ajaxSubmit(submitUrl,param,callbackJSON) {\r\n $.ajax({\r\n type : \"GET\"\r\n , async : true\r\n , url : submitUrl\r\n , dataType : \"json\"\r\n , timeout : 30000\r\n , cache : false\r\n , data : param\r\n , contentType : \"application/x-www-form-urlencoded; charset=UTF-8\"\r\n , error : function(request, status, error) {\r\n alert(\"데이타 조회시 에러가 발생했습니다.\\n 시스템관리자에게 문의바랍니다.\");\r\n }\r\n , success : callbackJSON\r\n });\r\n}","submit( event ) {\n console.log( 'Application.submit' );\n event.preventDefault(); // stop default submission\n new Ajax( this ).get( './sample.app', this.form );\n }","function SendAjaxPOST(request) {\n // captiveportal-restquery.php?resturl=http://192.168.0.25:7833/cportal/login&username=dylan&password=asdf\n var baseURL = \"captiveportal-restquery.php?resturl=\" + ServerAddress + \"/\";\n var completeURL = baseURL + request;\n\t//console.log(completeURL); //PHP URL\n $.ajax({\n url: completeURL,\n type: 'POST',\n //dataType: 'json',\n cache: false,\n success: function (data) {\n //alert(data);\n var JSONdata = JSON.parse(data);\n var login = JSONdata[0];\n var msg = JSONdata[1];\n\t\t\tfinalValidate(login, msg);\n }\n });\n}","function postAndMoveOn(surveyString){\n //post data\n $.ajax({\n type: \"POST\",\n url: \"/result\",\n async: false,\n data: surveyString,\n success: function (data) {\n if (data === 'done') {\n alert(\"Data send successful\");\n }\n },\n contentType: \"application/json\"\n });\n //go to the results page\n window.location.href = \"BISBASResults.html\";\n}","function ajax(a, d) {\n return $.ajax({\n type: 'POST',\n url: '/ajax',\n data: JSON.stringify({\n action: a,\n data: d\n }),\n contentType: 'application/json; charset=utf-8'\n });\n }","function alerta_restablecer(depto){\n $.ajax({\n url:\"models/alerta_restablecer.php\",\n type:\"POST\",\n dataType:\"html\",\n data:{depto:depto},\n success: function(datos){\n\n }\n })\n}","function sendAjax(url,data){\n $.ajax({\n type: \"POST\",\n url: url,\n processData: false,\n contentType: false,\n data: data,\n dataType: \"json\",\n success: function(result){\n \n if (result.error != null) {\n alert(result.error);\n }\n console.log(result)\n }\n });\n }","function sendRequest(dataObj, callback) {\n\tvar ajax = new XMLHttpRequest();\n\tajax.open(\"POST\", \"controller.php\", true);\n\tajax.setRequestHeader(\"Content-type\", \"application/json\");\n\tajax.send(JSON.stringify(dataObj));\n\t\n\tajax.onreadystatechange = function() {\n\t\tif (ajax.readyState == 4 && ajax.status == 200)\n\t\t\tcallback(ajax.responseText);\n\t}\n}","function ajax(e) {\n if (e) {\n e.preventDefault();\n }\n\n // gets the POST params\n var data = t.serialize();\n\n // adds the button field\n data += '&' + escape('action[subscribe]') + '=Send';\n\n // ajax request\n $.ajax({\n type: 'POST',\n url: opts.url,\n data: data,\n dataType: 'json',\n success: function (data) {\n if (!data.error && data['@attributes'] && data['@attributes'].result == 'success') {\n if (data['@attributes'].result) {\n\n if ($.isFunction(opts.complete)) {\n opts.complete.call(t, data);\n }\n }\n } else if ($.isFunction(opts.error)) {\n opts.error.call(t, data);\n }\n } ,\n error: function (data) {\n if ($.isFunction(opts.error)) {\n opts.error.call(t, data);\n }\n }\n });\n\n return false;\n }","function sendAjaxQuery(url, data){\n $.ajax({\n url: url,\n data: data,\n dataType: 'json',\n type: 'GET',\n success: dataR=>{\n //After sending the keyword for the server to process, redirect to the new browsing page.\n console.log('Success');\n window.location.href = '/browse';\n },\n error: (xhr, status, error)=>{\n console.log(error);\n }\n })\n}","function request() {\n const ajax = new _ajaxRequest.default();\n return ajax.request(...arguments);\n }","send() {\n this.body.ts = timestamp()\n ajax(\n pbaUrl,\n null,\n JSON.stringify(this.body),\n {\n contentType: 'application/json',\n method: 'POST',\n }\n )\n }","function ajax_note_action() {\n // avoid page reload after ajax call\n event.preventDefault();\n\n $.ajax({\n type: \"POST\",\n crossOrigin: true,\n url: \"/ajax/note_action/\",\n data: $('#note_form').serialize(),\n beforeSend: function() {\n $('.note_dialog').hide();\n $('#cmtlst_loading').show();\n },\n success: function(rsp_data, status) {\n $('#cmtlst_loading').hide();\n buildNoteList(rsp_data);\n },\n error: function(xhr, status, error) {\n $('#cmlst_loading').hide();\n $('#cmlst_loading span').text(error);\n },\n complete: function(xhr, status) {\n ;\n }\n });\n}","function simpleIndex(){\n $.ajax({\n url: \"api/simple\",\n context: document.body,\n success: function(data){\n $('#IndexResult').html(data);\n }\n });\n}","function makeRequest(url, form) {\n xhr.onreadystatechange = responseMethod\n xhr.open('POST', url)\n xhr.setRequestHeader(\"Content-Type\", \"application/json;charset=UTF-8\")\n xhr.send(form)\n }","function setLocation() {\n var inputdata = {\n \"UserID\": 4,\n \"latitude\": 30.73659,\n \"longitude\": 76.79689\n };\n $.ajax({\n type: \"POST\",\n url: \"http://localhost:6269/Users/setGeoLocation\",\n // url: \"http://174.141.233.6/YuY/User/setGeoLocation\",\n data: inputdata,\n dataType: \"json\",\n\n success: function (data) {\n debugger;\n console.log(data);\n //console.log(data.ResponseData.length);\n },\n error: function (xhr) {\n alert(xhr.responseText);\n }\n });\n}","handleOnClickSubmit ( event ) {\n event.preventDefault();\n \n let content = { success: true };\n $.ajax({\n type: 'POST',\n url: '/api/survey',\n data: JSON.stringify(content),\n contentType: \"application/json; charset=utf-8\",\n traditional: true,\n success: this.handleResponse,\n error: this.handleResponse\n }); \n }","function sendfeedback() {\n\n\n feedback_sender_name = $(\"#txtfeedback_sender_name\").val();\n feedback_sender_email = $(\"#txtfeedback_sender_email\").val();\n feedback_subject = $(\"#txtfeedback_subject\").val();\n feedback_message = $(\"#txtfeedback_message\").val();\n\n\n\n\n var url = serverURL() + \"/sendfeedback.php\";\n\n var JSONObject = {\n \"feedback_sender_name\": feedback_sender_name,\n \"feedback_sender_email\": feedback_sender_email,\n \"feedback_subject\": feedback_subject,\n \"feedback_message\": feedback_message,\n\n\n\n };\n\n $.ajax({\n url: url,\n type: 'GET',\n data: JSONObject,\n dataType: 'json',\n contentType: \"application/json; charset=utf-8\",\n success: function (arr) {\n _getNewSendFeedbackResult(arr);\n },\n error: function () {\n alert(\"Fail\");\n }\n });\n\n\n }","function loadBeautician()\n{\n var url = \"../../controller/AdminAjax.php\";\n ajax.onreadystatechange = beauticianList\n ajax.open(\"POST\",url,true);\n ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');\n ajax.send('number=4');\n}","function createBuku_() {\n // var quiz_id = document.getElementById(\"quiz\").value;\n var judul = $('input#judul').val()\n var tahun_terbit = $('input#tahun_terbit').val()\n var pengarang = $('input#pengarang').val()\n\n\n\n console.log(judul);\n console.log(tahun_terbit);\n console.log(pengarang);\n\n\n\n $.ajax({\n url: `http://127.0.0.1:5000/addBuku`,\n method: \"POST\",\n contentType: \"application/json\",\n data: JSON.stringify({\n judul : judul,\n tahun_terbit : tahun_terbit,\n pengarang : pengarang\n }),\n success: function () {\n alert(\"buku ditambahkan\");\n // window.location.href = 'ke view.html'\n },\n error: function () {\n alert(\"cek semua inputanya\");\n },\n complete: function () {\n console.log(\"done\");\n }\n });\n}","function CallOnTheWay() {\n var request = { CallSlipId: $('#CallSlipId').val() };\n $.ajax({\n type: \"POST\",\n contentType: \"application/json, charset=utf-8\",\n url: baseURL + \"Home/CallOnTheWay\",\n data: JSON.stringify(request),\n success: function (msg) {\n var data;\n if (msg.hasOwnProperty(\"d\")) {\n data = msg.d;\n } else\n data = msg;\n if (data.success) {\n Notify(data.message, 'success');\n SelectJob(data.JobId);\n //refreshCallsGrid(0);\n } else {\n Notify(data.message, 'error');\n }\n },\n error: function () {\n CommunicationError();\n }\n });\n}","function ajax(request, finish) {\n\n var xhr = new XMLHttpRequest();\n\n xhr.onload = function () {\n\n if (xhr.status < 200 || xhr.status >= 400) {\n _queue = [];\n _running = false;\n request.vm.$el.innerHTML = xhr.responseText;\n return;\n }\n\n var response = JSON.parse(xhr.responseText);\n var update = response['update'];\n var script = response['script'];\n var result = response['result'];\n\n // server-side changes not call watch methods\n request.vm.$updating = true;\n\n Object.keys(update).forEach(function (key) {\n var value = update[key];\n log('> $data[\"' + key + '\"] = ', value);\n\n // update viewmodel\n request.vm.$data[key] = value;\n });\n\n if (result !== null) {\n log('> $result:', result);\n }\n\n request.vm.$nextTick(function () {\n request.vm.$updating = false;\n });\n\n if (script) {\n log('> $eval = ', script);\n setTimeout(function () {\n new Function(script).call(request.vm);\n });\n }\n\n finish(result);\n };\n\n // create form with all data\n var form = new FormData();\n\n form.append('method', request.name);\n form.append('props', JSON.stringify(request.vm.$props || {}));\n\n // add data (check if has local properties)\n if (request.vm.$options.local.length === 0) {\n form.append('data', JSON.stringify(request.vm.$data || {}));\n }\n else {\n // create a simple copy\n var copy = Object.assign({}, request.vm.$data);\n\n // and remove local propertis before send to server\n request.vm.$options.local.forEach(function (key) {\n delete copy[key];\n });\n\n form.append('data', JSON.stringify(copy));\n }\n\n // upload file\n request.params.forEach(function (value, index, arr) {\n\n var isFile = value instanceof HTMLInputElement && value.type === 'file';\n\n if (isFile) {\n var name = \"files_\" + (Math.floor(Math.random() * 899998) + 100000);\n for (var i = 0; i < value.files.length; i++) {\n form.append(name, value.files[i]);\n log('$upload (\"' + value.files[i].name + '\")... ', value.files[i].size);\n }\n value.value = null;\n arr[index] = name;\n }\n });\n\n form.append('params', JSON.stringify(request.params));\n\n log('$update (\"' + request.name + '\") = ', request.params);\n\n xhr.open('POST', request.vm.$options.name + '.vue', true);\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n xhr.send(form);\n }","function send_request(arg1, op, arg2) {\n\t$.ajax(\"http://127.0.0.1:8000/\", {\n\t\ttype: \"GET\",\n\t\tdata: {\n\t\t\t\"arg1\": arg1,\n\t\t\t\"arg2\": arg2,\n\t\t\t\"op\": op\n\t\t},\n \tcrossDomain: true,\n \tdataType: \"jsonp\",\n\t\tsuccess: handle_response\n\t});\n}","function runTheTest(){\t\r\n\t\t$.ajax({\r\n\t\t\ttype: \"POST\",\t\t\t\r\n\t\t\t/* headers: {\"Access-Control-Allow-Origin:\" : \"https://selun-yha\"}, NOTE, Access-Control-Allow-Origin\r\n\t\t\t might be needed if your Python file is sitting on an other web site.\r\n\t\t\t*/\r\n\t\t\turl: \"PythonApp.py\", // Pointer to the Python file that is supposed to consume the AJAX call\r\n\t\t\tdata: {'Dim 1':'Value 1','Dim 2':'Value 2'}, // Dummy data passed to Python, this could be pulled from your app instead\r\n\t\t\tsuccess: function (PythonResponse) {\r\n\t\t\t\tdisplayResponse(PythonResponse);\r\n },\r\n\t\t\terror: function (xhr, status) {\r\n console.log(xhr + \" \" + status);\r\n }\t\t\t\r\n\t\t});\r\n\t}","function status()\n{\n $.ajax({url:\"/status\",type:\"get\",async:false}).done(function(r)\n {\n if(r!=\"\")\n {\n csrf_token=r;\n $(\"_csrf_token\").val(r);\n }\n })\n}","function addCustomer() {\n actionUrl = \"/api/customer\"\n actiontype =\"POST\"\n actionDataType =\"json\"\n\n sendData = {\n \"firstName\":$(\"#FirstName\").val(),\n \"lastName\": $(\"#LastName\").val(),\n \"address\": $(\"#Address\").val(),\n \"email\": $(\"#Email\").val(),\n \"vatNumber\": $(\"#VatNumber\").val()\n }\n\n\n $.ajax({\n url:actionUrl,\n dataType:actionDataType,\n type: actiontype,\n data: JSON.stringify(sendData),\n contentType: 'application/json',\n processData: false,\n\n success: function (data, textStatus, jQxhr) {\n\n alert(JSON.stringify(data))\n },\n error: function (jqXhr, textStatus, errorThrown) {\n alert(errorThrown);\n }\n\n });\n\n}","function ajax_call(server_action,invoice_id)\n{\n\tpath = WEBROOT+'ajax/functionCall';\n\tvar jqxhr = $.ajax(\t{\n\t\t\ttype: 'POST',\n\t\t\t//dataType: 'text',\n\t\t\turl: path,\n\t\t\tdata: { sa : server_action , inv : invoice_id },\n\t\t\tasync: false,\t\t\t\t\n\t\t\tsuccess:\tajaxOK\t,\t\n\t\t\terror:\t\tajaxError\t\n\t\t\t});\t\n\treturn jqxhr;\n}","function start_game() {\n $.ajax({\n url : '/api/game/startGame',\n type : 'POST',\n dataType: 'json',\n contentType : \"application/json\",\n success : function(data) {\n }\n });\n}","function ajax(request, finish) {\n\n var xhr = new XMLHttpRequest();\n var files = [];\n\n xhr.onload = function () {\n if (xhr.status < 200 || xhr.status >= 400) {\n _queue = [];\n _running = false;\n _loading.stop();\n request.vm.$el.innerHTML = xhr.responseText;\n return;\n }\n\n var response = JSON.parse(xhr.responseText);\n var update = response['update'];\n var js = response['js'];\n\n // empty file inputs (if exists)\n files.forEach(function (f) { f.value = ''; });\n\n // server-side changes not call watch methods\n request.vm.$updating = true;\n\n Object.keys(update).forEach(function (key) {\n var value = update[key];\n log('> $data[\"' + key + '\"] = ', value);\n\n // update viewmodel\n request.vm.$data[key] = value;\n });\n\n request.vm.$nextTick(function () {\n request.vm.$updating = false;\n });\n\n\n if (js) {\n log('> $eval = ', response['js']);\n setTimeout(function () {\n new Function(js).call(request.vm);\n })\n }\n\n finish();\n };\n\n // create form with all data\n var form = new FormData();\n\n if (request.vm.$options.vpath) {\n form.append('_vpath', request.vm.$options.vpath);\n }\n\n form.append('_method', request.name);\n form.append('_params', JSON.stringify(request.params));\n form.append('_model', JSON.stringify(request.vm.$data));\n\n // select elements with for upload file\n if (request.files) {\n files = request.vm.$el.querySelectorAll(request.files);\n files.forEach(function (file) {\n for (var i = 0; i < file.files.length; i++) {\n form.append('_files', file.files[i]);\n log('$upload (\"' + file.files[i].name + '\")... ', file.files[i].size);\n }\n });\n }\n\n log('$update (\"' + request.name + '\") = ', request.params);\n\n xhr.open('POST', location.href, true);\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n xhr.send(form);\n }","function AppsAjaxRequest( requestUrl, hashParms, successClosure, requestMethod )\n{\n\tif ( requestMethod == null ) requestMethod = 'post';\n\n\t// ensure session ID is present if we're posting\n\tif ( requestMethod.toLowerCase() == 'post' ) {\n\t\tif ( !( 'sessionid' in hashParms ) ) {\n\t\t\thashParms[ 'sessionid' ] = g_sessionID;\n\t\t}\n\t}\n\n\tnew Ajax.Request( requestUrl,\n\t\t{\n\t\t\trequestHeaders: { 'Accept': 'application/json' },\n\t\t\tmethod: requestMethod,\n\t\t\tparameters: hashParms,\n\t\t\tonSuccess: function( transport )\n\t\t\t{\n\t\t\t\tvar results = transport.responseJSON;\n\t\t\t\tif ( results )\n\t\t\t\t{\n\t\t\t\t\tsuccessClosure( results );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n}","function sendNewUniFacultyCourse(){\n //put the loading screen on\n loadingScreen();\n \n //grab the message \n var message = $(\"#newunifacultycourse\").val();\n \n //create the object to send \n var obj=new Object();\n obj.message = message;\n \n //send it via jquery and update the description \n $.ajax({\n type: \"POST\",\n url: \"/index/newunifacultycourse/\",\n dataType: \"json\",\n data: obj ,\n success: function(res) {\n if(res.items[0].status ==='success'){\n showNewUniFacultyCourse(); \n alert('Successfully submitted your request');\n }\n else{\n alert(\"\"+res.items[0].message);\n\t\t}\n removeLoadingScreen();\n },\n error: function(data) {\n alert(\"Error sending your request. Try again\")\n removeLoadingScreen();\n }\n });\n}","function requestServer(number) {\n \t \t//alert('Server Request startet');\n var lastName = $('input.lastName');\n var firstName = $('input.firstName');\n var requestUrl;\n //validate form-fields:\n if(pndFormCheck(number)) {\n \t// create requestURL:\n \trequestUrl = 'https://alkyoneus.hbz-nrw.de/gnd/gndrequest.jsp?firstName=' + firstName[number].value + \"&lastName=\" + lastName[number].value + '&index=' + number;\n \t \t//requestUrl = 'include.html';\n \t//requestUrl = 'pom.xml';\n \t\n \tvar options = {\n \t\t\ttype: 'GET',\n \t\t\turl: requestUrl,\n \t\t\tdataType: 'xml text',\n \t\t\t\n \t\t\tsuccess: (function (data, textstatus, jqxhr){\n \t\t\t\tresponse = jqxhr.responseXML;\n \t\t\t\t\n \t\t\t\tjQuery('div.resultarea').append(response + '

Hallo

');\n \t\t\t\talert('Anfrage geht ' + response);\n \t\t\t})\n \t\t\n \t\t}\n \n \t//jQuery.ajax('include.txt');\n \talert('starte Anfrage');\n \t\n \tjQuery.ajax(options);\n \t\n \t\n \t//alert('hinter der Anfrage');\n \t/*$.ajax({\n \t\t url: 'include.txt',\n \t}).done(function(html){\n \t\talert('result: ' + html);\n \t});*/\n \t//var inp = jQuery('.resultarea');\n \t//inp.append('

huhu

');\n }\n\t }","function submitGet() {\n console.log('button clicked');\n $.ajax({\n method: 'GET',\n url: '/'\n }).then(function (response) {\n console.log('GET request response', response);\n // $(`.welcome`).append(`

${response}

`); \n }); //end ajax GET \n}","function sendRequest (code) {\n if(!running){\n startRunning()\n lastSearch=code //Update global\n //Send an AJAX request to the controller\n $.ajax({\n type: \"POST\",\n contentType: \"application/json; charset=utf-8\",\n url: \"/student/validate\",\n data : JSON.stringify({session_code:code}),\n dataType: \"json\",\n\n success: function (result) {\n //If the result isn't null\n if(result){\n \n //Parse errors\n if(\"errors\" in result){\n let errors = result[\"errors\"]\n //Invalid code (error exists)\n if (errors.length > 0){\n errorMessage = errors.pop()\n showErrorMessage(errorMessage)\n }\n //Valid code (no error, show button)\n else{\n enableSubmit()\n }\n }\n\n //Then parse the details\n if(\"session\" in result){\n let sessionDetails = result[\"session\"]\n //If the session is not found\n if(sessionDetails == null){\n loadView(\"invalid\")\n }else{\n //Parse session details\n var title = sessionDetails[\"session_title\"]\n var module = sessionDetails[\"module_code\"]\n var startDate = moment(sessionDetails[\"start_time\"])\n var endDate = moment(sessionDetails[\"end_time\"])\n let day = startDate.format(\"DD/MM/YYYY\")\n let startTime = startDate.format(\"HH:mm\")\n let endTime = endDate.format(\"HH:mm\")\n\n //Update session details on screen\n sessionNameField.text(module+\"-\"+title)\n sessionDateField.text(day)\n sessionTimeField.text(startTime+\"-\"+endTime)\n sessionHiddenField.val(code)\n loadView(\"valid\")\n }\n \n }\n \n }else{\n //Show the invalid code view\n loadView(\"invalid\")\n }\n stopRunning()\n },\n error: function (){\n console.log(\"Error during ajax request\")\n stopRunning()\n }\n });\n }\n }","function teacher_ajaxcall() {\n response = $.ajax({\n url: \"/teacher_refresh/\",\n });\n}","ajaxMethod (data, callback, settings = this.settings) {\n $.ajax({\n type : 'POST',\n dataType : settings.dataType,\n url : settings.url,\n data : data,\n headers : {\n [settings.csrf.name]: settings.csrf.token\n },\n success (data) {\n if (data.success === true) {\n callback(data)\n if (settings.dev) {\n console.log('Success:', data)\n }\n } else {\n console.error('Error:', data)\n }\n return data;\n },\n error (data) {\n console.error('Template Error:', data.responseJSON.error)\n }\n })\n }","function BtnAddCircuit(){\n\n var FormAddCircuit = new FormData(AddFormCircuit);\n FormAddCircuit.append('action','btn_register_circuit');\n var nicE = new nicEditors.findEditor('NicEdit');\n FormAddCircuit.append('description',nicE.getContent());\n FormAddCircuit.append('id_theme', $('#SelectTheme').val());\n\n var loc = window.location.pathname;\n var dir = loc.substring(0, loc.lastIndexOf('/'));\n var dir = dir.substring(0, dir.length-1);\n var dir = dir.substring(0, dir.lastIndexOf('/'));\n var controller = dir + '/ControllerIvan/AdminControllerIvan/AdminController.php';\n\n $.ajax({\n type : 'POST',\n url : controller,\n data : FormAddCircuit,\n dataType : 'json',\n async : false,\n cache : false,\n contentType : false,\n processData : false,\n success : function (reponse){\n Vue(reponse);\n },\n error: function (xhr, error) {\n console.log(error);\n console.log(xhr);\n }\n });\n\n}","connect(request,method){\n\t\tvar ajax = new XMLHttpRequest();\n\t\tajax.open(method, this.ajaxUrl, true);\n\t\tif (method=='POST') ajax.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n\t\tajax.send(request);\n\t\tajax.onreadystatechange = function() {\n\t\t\tif (ajax.readyState == 4 && ajax.status == 200) {\n\t\t\t\t// CallBack App.LoadTasks\n\t\t\t\t// @param la réponse du serveur en format Ajax\n\t\t\t\t App.loadTasks(JSON.parse(this.responseText));\n\t\t\t}\n\t\t};\n\t}","function fnGroupeAjax() {\n var url = \"/Groupes/Create\";\n var data = {\n NomGroupe: $(\"#NomGroupe2\").val(),\n };\n $.ajax({\n data: JSON.stringify(data),\n type: \"POST\",\n url: url,\n datatype: \"text/plain\",\n contentType: \"application/json; charset=utf-8\",\n beforeSend: function (request) {\n request.setRequestHeader(\"RequestVerificationToken\", $(\"input[name='__RequestVerificationToken']\").val());\n },\n success: function (result) {\n // alert(result);\n },\n error: function (xhr, status) { alert(\"erreur:\" + status); }\n });\n return false;\n}","function add_notify(){\r\n\tvar content=document.getElementById(\"content\").value;\r\n\tif(content == \"\") {\r\n\t\talert(\"Bạn chưa nhập nội dung thông báo\");\r\n\t\tthis.content.focus();\r\n\t\treturn false;\r\n\t}\r\n\telse{\r\n\t\tvar content = $(\"#content\").val();\r\n\t\tvar idUserAdd = $(\"#idUserAdd\").val();\r\n\t\tvar mydata = {\r\n\t\t\t\"user\": idUserAdd,\r\n\t \t\"content\": content\t\r\n\t };\r\n\t console.log(mydata);\r\n\t\t$.ajax({\r\n\t\t\turl: 'http://103.47.194.91:8080/spr-data/notification/add',\r\n\t\t\ttype: 'POST',\r\n\t\t\tdataType:'json',\r\n\t\t\tcontentType: 'application/json',\r\n\t\t\tdata: JSON.stringify(mydata)\r\n\t\t})\r\n\t\t.done(function(data) {\r\n\t\t\tconsole.log(a);\r\n\t\t})\r\n\t\t.always(function() {\r\n\t\t\tload_notify();\r\n\t\t});\r\n\t}\r\n}","function setNewToken() {\r\n $.ajax({\r\n type: \"post\",\r\n async:true,\r\n contentType: \"application/json;charset=UTF-8\",\r\n url: basePath + \"/personalController/createNewToken\",\r\n success: function(response) {\r\n if(response.success){\r\n $(\"#token\").val(response.obj);\r\n }\r\n }\r\n });\r\n}","function CreateBusiness() {\n var xmlhttp = new XMLHttpRequest();\n xmlhttp.open(\"POST\", \"/account/CreateBusiness\", true);\n xmlhttp.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n xmlhttp.send(\"Action=CreateBusiness\");\n\n xmlhttp.onreadystatechange = function () {\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\n var tabResult = xmlhttp.responseText;\n //Action\n }\n }\n}","function CalificacionServicio(nidsolicitud, vcodigo) {\n $.ajax({\n type: \"POST\",\n url: \"../Services/CalificacionServicio_MesaAyuda\",\n data: \"{nidsolicitud:'\" + nidsolicitud + \"',vcodigo:'\" + vcodigo + \"'}\",\n dataType: \"json\",\n async: false,\n contentType: \"application/json; charset=utf-8\",\n success: CalificacionServicioSuccess,\n failure: function (response) {\n alert(response.d);\n },\n error: OnError\n });\n}","function saveEditedData()\n{\n $.ajax({\n method: 'POST',\n url: '/saveChanges',\n data: {uname: $(\"#logout\").text().trim(), data: ChangeBuffer},\n dataType: 'json',\n success: function(){\n location.reload();\n }\n });\n}","function callDummyAction_REP()\r\n{\r\n\t$.ajax({\r\n\t\t\turl: jQuery.contextPath+ \"/path/dummy/DummyAction\",\r\n\t \t\ttype:\"post\",\r\n\t \t\tdataType:\"json\",\r\n\t \t\tsuccess: function(data)\r\n\t \t\t{\r\n\t \t\t}\r\n\t});\r\n}","function getURL(url) {\n //Requesting JSon through AJAX\n $.ajax({\n type: \"GET\",\n dataType: \"json\",\n url: \"./WalkScoreSearch\" + url, //Name of the controller presenting the URL, the \"./\" helps ensure its the current controller\n success: displaySearch,\n error: errorOnAjax\n });\n}","function sendRequest(id, c) {\n $.ajax\n ({\n url: \"/Product/AddToCart\",\n data: { productId: id, count: c.toString().replace(\".\", \",\") },\n type: \"POST\",\n success: function (data) {\n newAlert('alert', data);\n },\n error: function (XMLHttpRequest, textStatus, errorThrown) {\n newAlert('alert alert-error', errorThrown);\n }\n })\n}","function request() {\n var ajax = new _ajaxRequest.default();\n return ajax.request.apply(ajax, arguments);\n }","function api_call() {\n $('form').submit()\n }","requestQuality(e) {\n //Do AJAX HERE, cant be an object must be a string sent to store\n Actions.fetchData(\"AJAX\");\n }","function retrieveTasksServer() {\n $.ajax(\"TaskServlet\", {\n \"type\": \"get\",\n dataType: \"json\"\n // \"data\": {\n // \"first\": first,\n // \"last\": last\n // }\n }).done(displayTasksServer.bind()); //need reference to the tasksController object\n }","function contactServer(){\r\n\tvar contactData = {'name':$('#contact-name').val(),'email':$('#contact-email').val(),'phone':$('#contact-phone').val(),'message':$('#contact-message').val()};\r\n\tjQuery.ajax({\r\n\t\turl: context+\"/contactUs\",\r\n\t\ttype: 'POST',\r\n\t\theaders: {'Content-Type': 'application/json'},\r\n\t\tdata: JSON.stringify(contactData),\r\n\t\tsuccess: function(response) {\r\n\t\t\t$('#message').text(response.message);\r\n\t\t},\r\n\t\terror: function(XMLHttpRequest, textStatus, errorThrown) {\r\n\t\t\t$('#message').text(error);\r\n\t\t} \r\n\r\n\t});\r\n}","function postCompanyandPosition() {\n console.log(\"posting\")\n $(\"form\").submit(function(e) {\n e.preventDefault();\n const values = $(this).serialize();\n console.log(values)\n\n // Rials.ajax works\n Rails.ajax({\n url: \"/positions.json\",\n type: \"POST\",\n data: values,\n success: function(data) {\n console.log(data)\n window.location.replace(`/companies/${data.company.id}/positions/${data.id}`)\n alert(\"Successfuly created!\")\n }\n })\n\n // $.post jquery also works\n // $.post('/positions.json', values)\n // .done((data) => {\n // console.log(data)\n // window.location.replace(`/companies/${data.company.id}/positions/${data.id}`)\n // alert(\"Successfuly created!\")\n // })\n\n // fetch - got error\n // fetch(\"/positions.json\", {\n // method: \"post\",\n // body: values,\n // headers: {\n // \"Content-Type\": \"application/json\",\n // \"Accept\": \"application/json\"\n // }\n // }).then(res => console.log(res.json()))\n })\n}","function FillUserCars()\n{\n let data = {};\n data['action'] = 'GetUserCars';\n\n //Send ajax request\n AjaxRequest('./webservice.php', 'POST', data, 'json', FillCarsSelect, Fail)\n}","function FillUserCars()\n{\n let data = {};\n data['action'] = 'GetUserCars';\n\n //Send ajax request\n AjaxRequest('./webservice.php', 'POST', data, 'json', FillCarsSelect, Fail)\n}","function ajax_AddInfo() {\n //build json object\n var data = {\n id: parseInt($(\"#add-NotifId\").val()),\n customerId: parseInt($(\"#add-customerId\").find(\":selected\").val()),\n email: $(\"#add-email\").val(),\n mobile: $(\"#add-mobile\").val()\n };\n\n //console.log(data);\n\n var url = '/CustNotifs/AddRecipient';\n\n //Post data from server using ajax call\n $.ajax({\n url: url,\n type: \"POST\",\n data: data,\n dataType: 'application/json; charset=utf-8',\n success: function (data) {\n // console.log(\"SUCCESS\");\n },\n error: function (data) {\n // console.log(\"ERROR\");\n //update recipient table\n ajax_UpdateList();\n }\n });\n}","function doAJAXRequest(rtype,url,data,dataType){\n return $.ajax({\n type:rtype,\n url:url,\n data:data,\n //dataType:dataType//<-include later\n });\n }","function sendSpeechRequest(data){\n\t$.ajax({\n\t\turl: '/speek',\n\t\ttype: 'GET',\n\t\tdataType: 'text',\n\t\tdata: {\"user_input\": data},\n\t})\n\t.done(function(data) {\n\t})\n\t.fail(function() {\n\t\tconsole.log(\"error\");\n\t});\n}","function send(action) {\n console.log(\">>>\", JSON.stringify(action));\n $.ajax({\n method: \"POST\",\n url: \"/games/\"+gameId+\"/actions\",\n headers: {\n \"X-CSRF-TOKEN\": csrf\n },\n // The key needs to match your method's input parameter (case-sensitive).\n data: JSON.stringify(action),\n contentType: \"application/json; charset=utf-8\",\n success: function(){console.log(\"action succeeded\")},\n error: function(xhr, status, error) {\n console.log(\"action failed: \"+xhr.status+\" / \"+xhr.responseText, error);\n }\n });\n}","function auth($username,$email, $password) {\n $.ajax({\n type: \"POST\",\n //SEND TO MY SERVER URL\n url: \"http://localhost:3000/users\",\n dataType: 'json',\n //async: false,\n data: { 'username': $username, 'email':$email,'password': $password ,'ent':-1,'lit':-1,'gk':-1,'tech':-1,'sports':-1},\n success: function (response) {\n $.session.set('username', $username);\n $(window).attr('location', '../html/user_dashboard.html');\n \n \n \n \n console.log(response);\n }\n })\n}","function handleRequest(event) {\r\n event.preventDefault();\r\n\r\n var username = $('#reqUsername').val();\r\n var bundle = $('#reqBundle').val();\r\n\r\n $.ajax({\r\n method: 'POST',\r\n url: WORKSPACES_CONTROL_URL,\r\n headers: {\r\n Authorization: authToken\r\n },\r\n beforeSend: function () {},\r\n complete: function () {},\r\n data: JSON.stringify({\r\n action: 'create',\r\n username: username,\r\n bundle: bundle\r\n }),\r\n contentType: 'text/plain',\r\n error: function () {\r\n $(\"#methodStatus\").append('
Error! Something went wrong... Please contact an administrator if the problem persists.
');\r\n $(\"#methodStatus\").show();\r\n },\r\n success: function (data) {\r\n $(\"#methodStatus\").append('
Success! WorkSpace request submitted... This request must be approved before the WorkSpace will be created. An email has been sent to ' + _config.approval.email + ' to authorize this request. Once approved, the WorkSpace will be created automatically and an email will be sent to your email with instructions for access.
');\r\n $(\"#methodStatus\").show();\r\n }\r\n });\r\n\r\n }","postAjax(url, data, success) {\n var params =\n typeof data == \"string\"\n ? data\n : Object.keys(data)\n .map(function(k) {\n return encodeURIComponent(k) + \"=\" + encodeURIComponent(data[k]);\n })\n .join(\"&\");\n\n var xhr = window.XMLHttpRequest\n ? new XMLHttpRequest()\n : new ActiveXObject(\"Microsoft.XMLHTTP\");\n xhr.open(\"POST\", url);\n xhr.onreadystatechange = function() {\n if (xhr.readyState > 3 && xhr.status == 200) {\n success(xhr.responseText);\n }\n };\n xhr.setRequestHeader(\"X-Requested-With\", \"XMLHttpRequest\");\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n xhr.send(params);\n return xhr;\n }","function getLoginForm() {\n $.ajax({\n type: \"POST\",\n url: \"Controllers/controller.User.php\",\n data: {locate: \"GetLoginForm\"}\n })\n .done(function(msg) {\n $(\"#loginsubscribefroms\").html(msg);\n });\n\n}","function sendAjaxRequest(type, url, data) {\n var contextPath = \"/\";\n $.ajax({\n type: type,\n url: contextPath + url,\n timeout: 900000,\n data: data,\n dataType: 'json',\n beforeSend: function () {\n showLoadingModal();\n },\n success: function (response) {\n if (response.status === \"200\") {\n showNotification(response.message, \"success\");\n setTimeout(function () {\n location.reload();\n }, 2000);\n } else {\n hideLoadingModal();\n showNotification(response.message, \"warning\");\n }\n },\n error: function () {\n hideLoadingModal();\n showNotification(\"Une erreur s'est produite\", \"error\");\n }\n });\n}","function send_userinput_to_MATRX(data) {\r\n // send an update for every key pressed\r\n var lv_resp = $.ajax({\r\n method: \"POST\",\r\n url: lv_send_userinput_url + lv_agent_id,\r\n contentType: \"application/json; charset=utf-8\",\r\n dataType: 'json',\r\n data: JSON.stringify(data),\r\n success: function() {\r\n //console.log(\"Data sent to MATRX\");\r\n },\r\n });\r\n return lv_resp;\r\n}","function fnGrabarCategoria() {\n\n var postData = {\n ctcid: $(\"#Ctcid\").val(),\n categoria: $(\"#Categoria\").val()\n };\n $.ajax({\n type: 'POST',\n url: \"/Cartera/GrabarCategoria/\", // we are calling json method\n dataType: 'json',\n async: true,\n data: postData,\n success: function (data) {\n }\n\n });\n\n}","function sendAjax2({url_, method_, success_, data_}) {\n const csrftoken = document.querySelector('[name=csrfmiddlewaretoken]').value;\n $.ajax({\n async: true,\n method: method_,\n headers: {\"X-CSRFToken\": csrftoken},\n url: url_,\n data: data_,\n success:function(response){\n response = JSON.parse(response);\n success_(response);\n },\n error : function(){\n console.log('fail', url_, method_, data_)\n }\n });\n}","function register() {\n $.post(\"AJAX/register-user.cshtml\",\n {\n username: username,\n email: email,\n password: password\n },\n (data, status) => {\n console.log(\"\\nData:\\n\" + data + \"\\nStatus:\\n\" + status);\n \n });\n}","function registro() {\r\n data = {\r\n 'name' : name.value,\r\n 'lastName' : lastName.value,\r\n 'secondLastName' : secondLastName.value,\r\n 'birthday' : birthday.value,\r\n 'ingresosA' : ingresos.value\r\n }\r\n \r\n $.ajax({\r\n url: '/registro/datos',\r\n type: 'POST',\r\n data: { data },\r\n success: function (response) {\r\n alert(response);\r\n }\r\n });\r\n}","function sendAjax($url, $id='#server-results') {\n if ($datas.length > 0) {\n //ajout du token CSRF\n $datas.unshift({'_token': $('input[name=_token]').val()})\n console.log($datas);\n\n var post_url = $url; //get form action url\n var request_method = 'POST'; //get form GET/POST method\n var form_data = JSON.stringify($datas, null, 2);\n\n //console.log((form_data));\n\n $.ajax({\n headers: {'X-CSRF-TOKEN': $('meta[name=\"csrf-token\"]').attr('content')},\n url: post_url,\n type: request_method,\n data: form_data,\n contentType: false,\n cache: false,\n processData: false\n }).done(function (response) {\n $json = JSON.parse(response);\n console.log($json);\n $($id).html(alerteInfo($json[0].alert,$json[1]));\n });\n }\n else {\n $($id).html(alerteInfo('info',\"Aucune donnée à envoyer.\",));\n }\n\n}","function doAjax(formData, action){\n\t//TODO: doAjax callback function form showList/modifyList\n}"],"string":"[\n \"perform() {\\r\\n $.ajax(this.REQUEST)\\r\\n }\",\n \"function servletPost(xx) {\\r\\n\\t$.ajax({\\r\\n\\t\\ttype : \\\"POST\\\",\\r\\n\\t\\turl : \\\"/\\\" + xx\\r\\n\\t});\\r\\n\\treturn false;\\r\\n}\",\n \"function ajax() {\\r\\n return $.ajax({\\r\\n url: 'http://127.0.0.1:5000/send_url',\\r\\n data: {\\r\\n 'url': tabUrl.toString(),\\r\\n 'username': customerUserName\\r\\n },\\r\\n type: 'GET',\\r\\n dataType: 'json',\\r\\n success: function(data){ ajaxResults = data}\\r\\n })\\r\\n }\",\n \"function sendAjax(url, data) {\\n\\n $.ajax({\\n type: \\\"POST\\\",\\n url: url,\\n data: data,\\n contentType: \\\"JSON\\\",\\n processData: false,\\n contentType: false,\\n dataType: \\\"json\\\",\\n success: function (result, status) {\\n\\n console.log(result)\\n }\\n });\\n }\",\n \"function request_inventory(){\\n\\tvar form = document.getElementById('req_inv');\\n var jsonData = formToJson( form );\\n\\n //alert('in: req');\\n\\n $.ajax({\\n type : \\\"POST\\\",\\n url : \\\"/inv_mgt/inventory/create\\\",\\n data : jsonData,\\n contentType: \\\"application/json\\\",\\n success:function(msg){\\n \\talert('success');\\n }\\n });\\n\\n //alert('out: req');\\n}\",\n \"function button_click_fn() {\\n\\t//call ajax\\n\\tajax_handler.request({\\n url: '/query/end_point',\\n async: false,\\n method: 'GET',\\n response_type: 'json',\\n data: { id_value = document.getElementById('el_id').value },\\n on_success: function (data) { \\n\\t\\t/*Do things with data*/ \\n\\t },\\n\\t on_error: function (status, error_msg) {\\n\\t if(console) console.log('status:' + status + ' || error msg:' + error_msg);\\n\\t }\\n \\t});\\n}\",\n \"function sendRequest() {\\n if (window.XMLHttpRequest) {\\n req = new XMLHttpRequest();\\n } else {\\n req = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n }\\n req.onreadystatechange = handleResponse;\\n req.open(\\\"GET\\\", \\\"/get_post_json\\\", true);\\n req.send(); \\n}\",\n \"_submitData(event) {\\n\\n // prevent submit form\\n event.preventDefault();\\n\\n if( !this._controlDataBeforeSend() ) {\\n document.body.scrollTop = document.documentElement.scrollTop = 0;\\n return;\\n }\\n\\n //let xhr = new XMLHttpRequest();\\n let data = {\\n name: this.options.title,\\n description: this.options.describe,\\n clients: this.options.data\\n };\\n\\n var xhr = $.ajax({\\n type: \\\"POST\\\",\\n url: this._config.url,\\n contentType: \\\"application/json; charset=utf-8\\\",\\n dataType: \\\"json\\\",\\n data: JSON.stringify(data)\\n });\\n\\n var complete = false;\\n\\n xhr\\n .done(function() {\\n complete = true;\\n\\n })\\n .fail(function() {\\n complete = false;\\n })\\n .always(function() {\\n if(complete) {\\n window.location = \\\"/autodialer/tasks?saved\\\";\\n } else {\\n noty({\\n text: 'К сожалению произошла ошибка, попробуйте ещё раз!'\\n });\\n }\\n });\\n }\",\n \"function sendData() {\\n $.ajax({\\n type: \\\"POST\\\",\\n url: ' ', \\n data: ' ',\\n contentType: \\\"application/json\\\",\\n dataType: \\\"text\\\",\\n \\n success:function(result)\\n {\\n \\n \\n }\\n ,\\n failure:function(err)\\n {\\n \\n }\\n \\n\\n });\\n\\n}\",\n \"function submitform(){\\n var username = $(\\\"#username\\\").val();\\n var check = $(\\\"#check\\\").val();\\n $.ajax({\\n url: (\\\"http://localhost:8080/Food_Managment_System/api/student/submitForm/\\\"+username+\\\"/\\\"+check)\\n }).then(function(result) {\\n alertify.alert(\\\"Επιτυχία\\\",\\\"Η καταχώρηση της αίτησης είναι επιτυχής. Για περαιτέρω πληροφορίες, επικοινωνήστε με την γραμματεία της σχολής.\\\");\\n });\\n}\",\n \"function sendRequest() {\\n if (window.XMLHttpRequest) {\\n req = new XMLHttpRequest();\\n } else {\\n req = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n }\\n req.onreadystatechange = handleResponse;\\n req.open(\\\"GET\\\", \\\"/intro/get-list\\\", true);\\n req.send(); \\n}\",\n \"function RegistrationSave(controller) {\\n alert('d');\\n var request = new UserRegister();\\n $.ajax({\\n url: controller,\\n dataType: 'json',\\n contentType: \\\"application/json\\\",\\n type: \\\"POST\\\",\\n data: JSON.stringify(request),\\n success: function (d) {\\n },\\n });\\n}\",\n \"function postClienteJuridico() {\\n console.log('postCliente');\\n $.ajax({\\n type: 'POST',\\n contentType: 'application/json',\\n url: rootURL + \\\"/clientes/crearClientesJuridicos\\\",\\n dataType: \\\"json\\\",\\n data: clienteJuridicoToJSON(),\\n success: function(data) {\\n $('#h1').append(\\\"Consulta Realizada\\\");\\n //renderClientes(data);\\n }\\n \\n });\\n}\",\n \"function send(){\\n\\trequest = new XMLHttpRequest();\\n\\tvar url = \\\"ViewHistoryController\\\";\\n\\trequest.onreadystatechange = handleResponse;\\n\\trequest.open(\\\"GET\\\",url,true);\\n\\trequest.send();\\n}\",\n \"function sendHistory(historyItems) {\\r\\n console.log(\\\"I'm in sendHistory\\\");\\r\\n $.ajax({\\r\\n type: \\\"POST\\\",\\r\\n url: \\\"http://localhost:8000/processHistory\\\",\\r\\n data: JSON.stringify(historyItems),\\r\\n contentType: 'application/json',\\r\\n crossDomain: true,\\r\\n success: function(res){\\r\\n console.log(res);\\r\\n },\\r\\n dataType: \\\"text/plain\\\"\\r\\n });\\r\\n // req = new XMLHttpRequest();\\r\\n // req.open('POST', 'http://localhost:8000/processHistory/');\\r\\n // req.setRequestHeader(\\\"Content-type\\\", \\\"application/json\\\");\\r\\n // req.onload = alert(\\\"history posted\\\");\\r\\n // req.send(\\\"derek j kan\\\");//JSON.stringify({url: \\\"someUrl\\\", visits: 2}));\\r\\n // console.log(req);\\r\\n}\",\n \"function makeAnAjaxCall(form, callback){\\n var data = getFormData(form);\\n var xhr = new XMLHttpRequest();\\n xhr.open('POST', '/reservation');\\n xhr.setRequestHeader('Content-Type', 'application/json');\\n xhr.addEventListener('readystatechange', function(){\\n if (xhr.status === 200 && xhr.readyState === 4){\\n callback(xhr.responseText);\\n }\\n });\\n xhr.send(JSON.stringify(data));\\n\\n}\",\n \"function ajax(query, functionName, method, payload) {\\n var req = new XMLHttpRequest();\\n req.onload = functionName;\\n req.open(method, '/' + query, true);\\n if (method == \\\"POST\\\") {\\n req.setRequestHeader(\\\"Content-Type\\\", \\\"application/json;charset=UTF-8\\\");\\n }\\n req.send(JSON.stringify(payload));\\n }\",\n \"function loadServices()\\n{\\n var url = \\\"../../controller/AdminAjax.php\\\";\\n\\n ajax.onreadystatechange = serviceList\\n ajax.open(\\\"POST\\\",url,true);\\n ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');\\n ajax.send('number=5');\\n}\",\n \"function sendData() {\\n const noteObj = document.getElementById('todolist');\\n console.log(listToJSON(noteObj));\\n $.ajax({\\n url: '/lists', \\n type: 'POST',\\n data: listToJSON(noteObj),\\n success: function(data) {\\n window.location.replace(\\\"/\\\");\\n },\\n error: function(xhr, str){\\n alert('Возникла ошибка: ' + xhr.responseCode);\\n }\\n }); \\n}\",\n \"function AjaxCallSessionAPI(_user, state) {\\n $.ajax({\\n CrossDomain: true,\\n headers: {\\n 'Access-Control-Allow-Origin': '*',\\n 'Access-Control-Allow-Methods': 'POST',\\n 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept'\\n }, type: 'POST', contentType: 'application/json; charset=utf-8',\\n url: 'http://localhost:8085/api/session/post',\\n data: { _u: btoa(_user) },\\n dataType: 'jsonp',\\n jsonpCallback: (state == 1 ? _gotoIndex() : window.location.href = 'http://localhost:85/login/logout'), //Go to index code on front-end\\n success: function (data) { }\\n });\\n}\",\n \"function makeRequest(){\\n $.ajax({\\n url: \\\"http://localhost:5000/new\\\",\\n })\\n .done(function(data){\\n $(\\\"#passcode\\\").html(data.passcode);\\n $(\\\"#times\\\").html(data.times);\\n })\\n}\",\n \"function sendAjax(url, data) {\\n\\n $.ajax({\\n type: \\\"POST\\\",\\n url: url,\\n data: data,\\n contentType: \\\"JSON\\\",\\n processData: false,\\n contentType: false,\\n dataType: \\\"json\\\",\\n success: function (result, status) {\\n\\n }\\n });\\n}\",\n \"function sendJSON() {\\n\\t// collect variables \\n\\t// var name = document.getElementById('nameVar').value;\\n\\t// var age = document.getElementById('ageVar').value;\\n\\t// var country = document.getElementById('countryVar').value;\\n\\n\\t// build a JavaScript object using the variables\\n\\tvar data_object = {\\n\\t\\t\\t// \\\"name\\\"\\t\\t: name,\\n\\t\\t\\t// \\\"age\\\"\\t\\t: age,\\n\\t\\t\\t// \\\"country\\\" \\t: country \\n\\t\\t};\\n\\n\\t// convert JavaScript object to JSON object\\n\\tvar data_json = JSON.stringify(data_object);\\n\\t\\n\\t// log state and the JavaScript object (to be sent in JSON format)\\n\\tconsole.log(\\\">> JSON data : \\\");\\n\\tconsole.log(data_object);\\n\\tconsole.log(\\\">> Sending..\\\");\\n\\n\\t// AJAX the JSON object to the server \\n\\t// and process the incoming data (JSON)\\n\\t$.ajax({\\n\\t\\ttype: \\\"POST\\\",\\n\\t\\turl: \\\"/json_receiver\\\",\\n\\t\\tdata: data_json, \\n\\t\\tcontentType:\\\"application/json; charset=utf-8\\\",\\n \\t\\tdataType:\\\"json\\\",\\n\\t\\tsuccess : function(data) {\\n\\t\\t\\t// log the current state\\n\\t\\t\\tconsole.log(\\\"<< Received JSON data : \\\");\\n\\t\\t\\t// console.log(data);\\n\\t\\t\\tconsole.log(\\\"<< Success!\\\");\\n\\t\\t\\t// genrate reponse and print on the document\\n\\t\\t\\t// var message = \\\"Hello, \\\" + data['name'] + \\\". You are : \\\" + data['status'] + \\\" !\\\";\\n\\t\\t\\t// $('#JSONresultHolder').html(message);\\n\\t\\t\\t\\n\\t\\t\\tupdate(data);\\n\\t\\t},\\n\\t\\terror : function(){\\n\\t\\t\\tconsole.log(\\\"<< Error!\\\")\\n\\t\\t}\\n\\t});\\n\\t\\n\\t// stop link from reloading the page\\n\\tevent.preventDefault();\\n}\",\n \"function reg_id_submit(reg_id_value){\\n\\n console.log(url_push_save_reg_id);\\n console.log(reg_id_value);\\n\\n $.ajax({\\n type: 'GET',\\n url: url_push_save_reg_id,\\n contentType: \\\"application/json\\\",\\n dataType: 'jsonp',\\n data: { reg_id : reg_id_value, secretkey : '0'},\\n crossDomain: true,\\n beforeSend: function(){\\n },\\n success: function(res) {\\n console.log(url_push_save_reg_id);\\n console.log(reg_id_value);\\n return false;\\n },\\n error: function(e) {\\n console.log(\\\"Fehler\\\");\\n },\\n complete: function(data) {\\n }\\n });\\n}\",\n \"function ajaxFunction(controller,errElementID,successElementID,hideElementID,showElementID)\\r\\n{\\r\\n\\txmlHttp=GetXmlHttpObject()\\r\\n\\tif (xmlHttp==null)\\r\\n\\t{\\r\\n\\t\\talert (\\\"Browser does not support HTTP Request\\\")\\r\\n\\t\\treturn\\r\\n\\t}\\r\\n\\tvar url = controller;\\r\\n\\t\\r\\n\\txmlHttp.onreadystatechange = function() { handleStateChange(xmlHttp,errElementID,successElementID,hideElementID,showElementID);};\\r\\n\\t\\r\\n\\txmlHttp.open(\\\"GET\\\",url,true)\\r\\n\\t\\r\\n\\txmlHttp.send(null)\\r\\n}\",\n \"function post_action(obj){\\r\\n$.ajax({\\r\\n type:\\\"post\\\",\\r\\n url:\\\"https://5ef88b09ae8ccb0016fd725b.mockapi.io/data_to_do\\\",\\r\\n data:obj\\r\\n})\\r\\n}\",\n \"function sendAction() {\\n $.ajax({\\n url: \\\"/GEMP/some-action?msg=deletesalleattende&user=\\\"+Utilisateur.user,\\n type: \\\"POST\\\"\\n });\\n}\",\n \"function login() {\\n $.ajax({\\n type: 'POST',\\n url: '/login',\\n data: JSON.stringify({\\n Username: $('#Username').val(),\\n Pass: $('#password').val()\\n }),\\n dataType: 'json',\\n async: false,\\n success: function(data) {\\n console.log(\\\"Posted Data\\\");\\n },\\n error: function(xhr, textStatus, error) {\\n console.log(xhr.statusText);\\n console.log(textStatus);\\n console.log(error);\\n }\\n });\\n\\n}\",\n \"function postClienteFisico() {\\n console.log('postCliente');\\n $.ajax({\\n type: 'POST',\\n contentType: 'application/json',\\n url: rootURL + \\\"/cuentaAhorroAutomatico/crearCuentaAhorroAutomatico\\\",\\n dataType: \\\"json\\\",\\n data: clienteFisicoToJSON(),\\n success: function(data) {\\n $('#h1').append(\\\"Consulta Realizada\\\");\\n //renderClientes(data);\\n }\\n \\n });\\n}\",\n \"function sendRequest(form) {\\n var formData = new FormData(form);\\n\\n //used to replace the browser url\\n var targetURL = buildGetString(formData);\\n\\n formData.append('page', nextPage);\\n\\n //cancel previous request, if user was too fast\\n request.abort();\\n\\n var getString = buildGetString(formData);\\n\\n if (window.history.replaceState) {\\n window.history.replaceState(null, '', targetURL);\\n }\\n\\n request.open('Post', getString, true);\\n request.setRequestHeader('Accept', 'application/json');\\n\\n //send ajax = 1 to prevent users from accessing the returned json via get\\n var formData = new FormData();\\n formData.append('ajax', '1');\\n request.send(formData);\\n }\",\n \"function ajaxSubmit(submitUrl,param,callbackJSON) {\\r\\n $.ajax({\\r\\n type : \\\"GET\\\"\\r\\n , async : true\\r\\n , url : submitUrl\\r\\n , dataType : \\\"json\\\"\\r\\n , timeout : 30000\\r\\n , cache : false\\r\\n , data : param\\r\\n , contentType : \\\"application/x-www-form-urlencoded; charset=UTF-8\\\"\\r\\n , error : function(request, status, error) {\\r\\n alert(\\\"데이타 조회시 에러가 발생했습니다.\\\\n 시스템관리자에게 문의바랍니다.\\\");\\r\\n }\\r\\n , success : callbackJSON\\r\\n });\\r\\n}\",\n \"submit( event ) {\\n console.log( 'Application.submit' );\\n event.preventDefault(); // stop default submission\\n new Ajax( this ).get( './sample.app', this.form );\\n }\",\n \"function SendAjaxPOST(request) {\\n // captiveportal-restquery.php?resturl=http://192.168.0.25:7833/cportal/login&username=dylan&password=asdf\\n var baseURL = \\\"captiveportal-restquery.php?resturl=\\\" + ServerAddress + \\\"/\\\";\\n var completeURL = baseURL + request;\\n\\t//console.log(completeURL); //PHP URL\\n $.ajax({\\n url: completeURL,\\n type: 'POST',\\n //dataType: 'json',\\n cache: false,\\n success: function (data) {\\n //alert(data);\\n var JSONdata = JSON.parse(data);\\n var login = JSONdata[0];\\n var msg = JSONdata[1];\\n\\t\\t\\tfinalValidate(login, msg);\\n }\\n });\\n}\",\n \"function postAndMoveOn(surveyString){\\n //post data\\n $.ajax({\\n type: \\\"POST\\\",\\n url: \\\"/result\\\",\\n async: false,\\n data: surveyString,\\n success: function (data) {\\n if (data === 'done') {\\n alert(\\\"Data send successful\\\");\\n }\\n },\\n contentType: \\\"application/json\\\"\\n });\\n //go to the results page\\n window.location.href = \\\"BISBASResults.html\\\";\\n}\",\n \"function ajax(a, d) {\\n return $.ajax({\\n type: 'POST',\\n url: '/ajax',\\n data: JSON.stringify({\\n action: a,\\n data: d\\n }),\\n contentType: 'application/json; charset=utf-8'\\n });\\n }\",\n \"function alerta_restablecer(depto){\\n $.ajax({\\n url:\\\"models/alerta_restablecer.php\\\",\\n type:\\\"POST\\\",\\n dataType:\\\"html\\\",\\n data:{depto:depto},\\n success: function(datos){\\n\\n }\\n })\\n}\",\n \"function sendAjax(url,data){\\n $.ajax({\\n type: \\\"POST\\\",\\n url: url,\\n processData: false,\\n contentType: false,\\n data: data,\\n dataType: \\\"json\\\",\\n success: function(result){\\n \\n if (result.error != null) {\\n alert(result.error);\\n }\\n console.log(result)\\n }\\n });\\n }\",\n \"function sendRequest(dataObj, callback) {\\n\\tvar ajax = new XMLHttpRequest();\\n\\tajax.open(\\\"POST\\\", \\\"controller.php\\\", true);\\n\\tajax.setRequestHeader(\\\"Content-type\\\", \\\"application/json\\\");\\n\\tajax.send(JSON.stringify(dataObj));\\n\\t\\n\\tajax.onreadystatechange = function() {\\n\\t\\tif (ajax.readyState == 4 && ajax.status == 200)\\n\\t\\t\\tcallback(ajax.responseText);\\n\\t}\\n}\",\n \"function ajax(e) {\\n if (e) {\\n e.preventDefault();\\n }\\n\\n // gets the POST params\\n var data = t.serialize();\\n\\n // adds the button field\\n data += '&' + escape('action[subscribe]') + '=Send';\\n\\n // ajax request\\n $.ajax({\\n type: 'POST',\\n url: opts.url,\\n data: data,\\n dataType: 'json',\\n success: function (data) {\\n if (!data.error && data['@attributes'] && data['@attributes'].result == 'success') {\\n if (data['@attributes'].result) {\\n\\n if ($.isFunction(opts.complete)) {\\n opts.complete.call(t, data);\\n }\\n }\\n } else if ($.isFunction(opts.error)) {\\n opts.error.call(t, data);\\n }\\n } ,\\n error: function (data) {\\n if ($.isFunction(opts.error)) {\\n opts.error.call(t, data);\\n }\\n }\\n });\\n\\n return false;\\n }\",\n \"function sendAjaxQuery(url, data){\\n $.ajax({\\n url: url,\\n data: data,\\n dataType: 'json',\\n type: 'GET',\\n success: dataR=>{\\n //After sending the keyword for the server to process, redirect to the new browsing page.\\n console.log('Success');\\n window.location.href = '/browse';\\n },\\n error: (xhr, status, error)=>{\\n console.log(error);\\n }\\n })\\n}\",\n \"function request() {\\n const ajax = new _ajaxRequest.default();\\n return ajax.request(...arguments);\\n }\",\n \"send() {\\n this.body.ts = timestamp()\\n ajax(\\n pbaUrl,\\n null,\\n JSON.stringify(this.body),\\n {\\n contentType: 'application/json',\\n method: 'POST',\\n }\\n )\\n }\",\n \"function ajax_note_action() {\\n // avoid page reload after ajax call\\n event.preventDefault();\\n\\n $.ajax({\\n type: \\\"POST\\\",\\n crossOrigin: true,\\n url: \\\"/ajax/note_action/\\\",\\n data: $('#note_form').serialize(),\\n beforeSend: function() {\\n $('.note_dialog').hide();\\n $('#cmtlst_loading').show();\\n },\\n success: function(rsp_data, status) {\\n $('#cmtlst_loading').hide();\\n buildNoteList(rsp_data);\\n },\\n error: function(xhr, status, error) {\\n $('#cmlst_loading').hide();\\n $('#cmlst_loading span').text(error);\\n },\\n complete: function(xhr, status) {\\n ;\\n }\\n });\\n}\",\n \"function simpleIndex(){\\n $.ajax({\\n url: \\\"api/simple\\\",\\n context: document.body,\\n success: function(data){\\n $('#IndexResult').html(data);\\n }\\n });\\n}\",\n \"function makeRequest(url, form) {\\n xhr.onreadystatechange = responseMethod\\n xhr.open('POST', url)\\n xhr.setRequestHeader(\\\"Content-Type\\\", \\\"application/json;charset=UTF-8\\\")\\n xhr.send(form)\\n }\",\n \"function setLocation() {\\n var inputdata = {\\n \\\"UserID\\\": 4,\\n \\\"latitude\\\": 30.73659,\\n \\\"longitude\\\": 76.79689\\n };\\n $.ajax({\\n type: \\\"POST\\\",\\n url: \\\"http://localhost:6269/Users/setGeoLocation\\\",\\n // url: \\\"http://174.141.233.6/YuY/User/setGeoLocation\\\",\\n data: inputdata,\\n dataType: \\\"json\\\",\\n\\n success: function (data) {\\n debugger;\\n console.log(data);\\n //console.log(data.ResponseData.length);\\n },\\n error: function (xhr) {\\n alert(xhr.responseText);\\n }\\n });\\n}\",\n \"handleOnClickSubmit ( event ) {\\n event.preventDefault();\\n \\n let content = { success: true };\\n $.ajax({\\n type: 'POST',\\n url: '/api/survey',\\n data: JSON.stringify(content),\\n contentType: \\\"application/json; charset=utf-8\\\",\\n traditional: true,\\n success: this.handleResponse,\\n error: this.handleResponse\\n }); \\n }\",\n \"function sendfeedback() {\\n\\n\\n feedback_sender_name = $(\\\"#txtfeedback_sender_name\\\").val();\\n feedback_sender_email = $(\\\"#txtfeedback_sender_email\\\").val();\\n feedback_subject = $(\\\"#txtfeedback_subject\\\").val();\\n feedback_message = $(\\\"#txtfeedback_message\\\").val();\\n\\n\\n\\n\\n var url = serverURL() + \\\"/sendfeedback.php\\\";\\n\\n var JSONObject = {\\n \\\"feedback_sender_name\\\": feedback_sender_name,\\n \\\"feedback_sender_email\\\": feedback_sender_email,\\n \\\"feedback_subject\\\": feedback_subject,\\n \\\"feedback_message\\\": feedback_message,\\n\\n\\n\\n };\\n\\n $.ajax({\\n url: url,\\n type: 'GET',\\n data: JSONObject,\\n dataType: 'json',\\n contentType: \\\"application/json; charset=utf-8\\\",\\n success: function (arr) {\\n _getNewSendFeedbackResult(arr);\\n },\\n error: function () {\\n alert(\\\"Fail\\\");\\n }\\n });\\n\\n\\n }\",\n \"function loadBeautician()\\n{\\n var url = \\\"../../controller/AdminAjax.php\\\";\\n ajax.onreadystatechange = beauticianList\\n ajax.open(\\\"POST\\\",url,true);\\n ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');\\n ajax.send('number=4');\\n}\",\n \"function createBuku_() {\\n // var quiz_id = document.getElementById(\\\"quiz\\\").value;\\n var judul = $('input#judul').val()\\n var tahun_terbit = $('input#tahun_terbit').val()\\n var pengarang = $('input#pengarang').val()\\n\\n\\n\\n console.log(judul);\\n console.log(tahun_terbit);\\n console.log(pengarang);\\n\\n\\n\\n $.ajax({\\n url: `http://127.0.0.1:5000/addBuku`,\\n method: \\\"POST\\\",\\n contentType: \\\"application/json\\\",\\n data: JSON.stringify({\\n judul : judul,\\n tahun_terbit : tahun_terbit,\\n pengarang : pengarang\\n }),\\n success: function () {\\n alert(\\\"buku ditambahkan\\\");\\n // window.location.href = 'ke view.html'\\n },\\n error: function () {\\n alert(\\\"cek semua inputanya\\\");\\n },\\n complete: function () {\\n console.log(\\\"done\\\");\\n }\\n });\\n}\",\n \"function CallOnTheWay() {\\n var request = { CallSlipId: $('#CallSlipId').val() };\\n $.ajax({\\n type: \\\"POST\\\",\\n contentType: \\\"application/json, charset=utf-8\\\",\\n url: baseURL + \\\"Home/CallOnTheWay\\\",\\n data: JSON.stringify(request),\\n success: function (msg) {\\n var data;\\n if (msg.hasOwnProperty(\\\"d\\\")) {\\n data = msg.d;\\n } else\\n data = msg;\\n if (data.success) {\\n Notify(data.message, 'success');\\n SelectJob(data.JobId);\\n //refreshCallsGrid(0);\\n } else {\\n Notify(data.message, 'error');\\n }\\n },\\n error: function () {\\n CommunicationError();\\n }\\n });\\n}\",\n \"function ajax(request, finish) {\\n\\n var xhr = new XMLHttpRequest();\\n\\n xhr.onload = function () {\\n\\n if (xhr.status < 200 || xhr.status >= 400) {\\n _queue = [];\\n _running = false;\\n request.vm.$el.innerHTML = xhr.responseText;\\n return;\\n }\\n\\n var response = JSON.parse(xhr.responseText);\\n var update = response['update'];\\n var script = response['script'];\\n var result = response['result'];\\n\\n // server-side changes not call watch methods\\n request.vm.$updating = true;\\n\\n Object.keys(update).forEach(function (key) {\\n var value = update[key];\\n log('> $data[\\\"' + key + '\\\"] = ', value);\\n\\n // update viewmodel\\n request.vm.$data[key] = value;\\n });\\n\\n if (result !== null) {\\n log('> $result:', result);\\n }\\n\\n request.vm.$nextTick(function () {\\n request.vm.$updating = false;\\n });\\n\\n if (script) {\\n log('> $eval = ', script);\\n setTimeout(function () {\\n new Function(script).call(request.vm);\\n });\\n }\\n\\n finish(result);\\n };\\n\\n // create form with all data\\n var form = new FormData();\\n\\n form.append('method', request.name);\\n form.append('props', JSON.stringify(request.vm.$props || {}));\\n\\n // add data (check if has local properties)\\n if (request.vm.$options.local.length === 0) {\\n form.append('data', JSON.stringify(request.vm.$data || {}));\\n }\\n else {\\n // create a simple copy\\n var copy = Object.assign({}, request.vm.$data);\\n\\n // and remove local propertis before send to server\\n request.vm.$options.local.forEach(function (key) {\\n delete copy[key];\\n });\\n\\n form.append('data', JSON.stringify(copy));\\n }\\n\\n // upload file\\n request.params.forEach(function (value, index, arr) {\\n\\n var isFile = value instanceof HTMLInputElement && value.type === 'file';\\n\\n if (isFile) {\\n var name = \\\"files_\\\" + (Math.floor(Math.random() * 899998) + 100000);\\n for (var i = 0; i < value.files.length; i++) {\\n form.append(name, value.files[i]);\\n log('$upload (\\\"' + value.files[i].name + '\\\")... ', value.files[i].size);\\n }\\n value.value = null;\\n arr[index] = name;\\n }\\n });\\n\\n form.append('params', JSON.stringify(request.params));\\n\\n log('$update (\\\"' + request.name + '\\\") = ', request.params);\\n\\n xhr.open('POST', request.vm.$options.name + '.vue', true);\\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\\n xhr.send(form);\\n }\",\n \"function send_request(arg1, op, arg2) {\\n\\t$.ajax(\\\"http://127.0.0.1:8000/\\\", {\\n\\t\\ttype: \\\"GET\\\",\\n\\t\\tdata: {\\n\\t\\t\\t\\\"arg1\\\": arg1,\\n\\t\\t\\t\\\"arg2\\\": arg2,\\n\\t\\t\\t\\\"op\\\": op\\n\\t\\t},\\n \\tcrossDomain: true,\\n \\tdataType: \\\"jsonp\\\",\\n\\t\\tsuccess: handle_response\\n\\t});\\n}\",\n \"function runTheTest(){\\t\\r\\n\\t\\t$.ajax({\\r\\n\\t\\t\\ttype: \\\"POST\\\",\\t\\t\\t\\r\\n\\t\\t\\t/* headers: {\\\"Access-Control-Allow-Origin:\\\" : \\\"https://selun-yha\\\"}, NOTE, Access-Control-Allow-Origin\\r\\n\\t\\t\\t might be needed if your Python file is sitting on an other web site.\\r\\n\\t\\t\\t*/\\r\\n\\t\\t\\turl: \\\"PythonApp.py\\\", // Pointer to the Python file that is supposed to consume the AJAX call\\r\\n\\t\\t\\tdata: {'Dim 1':'Value 1','Dim 2':'Value 2'}, // Dummy data passed to Python, this could be pulled from your app instead\\r\\n\\t\\t\\tsuccess: function (PythonResponse) {\\r\\n\\t\\t\\t\\tdisplayResponse(PythonResponse);\\r\\n },\\r\\n\\t\\t\\terror: function (xhr, status) {\\r\\n console.log(xhr + \\\" \\\" + status);\\r\\n }\\t\\t\\t\\r\\n\\t\\t});\\r\\n\\t}\",\n \"function status()\\n{\\n $.ajax({url:\\\"/status\\\",type:\\\"get\\\",async:false}).done(function(r)\\n {\\n if(r!=\\\"\\\")\\n {\\n csrf_token=r;\\n $(\\\"_csrf_token\\\").val(r);\\n }\\n })\\n}\",\n \"function addCustomer() {\\n actionUrl = \\\"/api/customer\\\"\\n actiontype =\\\"POST\\\"\\n actionDataType =\\\"json\\\"\\n\\n sendData = {\\n \\\"firstName\\\":$(\\\"#FirstName\\\").val(),\\n \\\"lastName\\\": $(\\\"#LastName\\\").val(),\\n \\\"address\\\": $(\\\"#Address\\\").val(),\\n \\\"email\\\": $(\\\"#Email\\\").val(),\\n \\\"vatNumber\\\": $(\\\"#VatNumber\\\").val()\\n }\\n\\n\\n $.ajax({\\n url:actionUrl,\\n dataType:actionDataType,\\n type: actiontype,\\n data: JSON.stringify(sendData),\\n contentType: 'application/json',\\n processData: false,\\n\\n success: function (data, textStatus, jQxhr) {\\n\\n alert(JSON.stringify(data))\\n },\\n error: function (jqXhr, textStatus, errorThrown) {\\n alert(errorThrown);\\n }\\n\\n });\\n\\n}\",\n \"function ajax_call(server_action,invoice_id)\\n{\\n\\tpath = WEBROOT+'ajax/functionCall';\\n\\tvar jqxhr = $.ajax(\\t{\\n\\t\\t\\ttype: 'POST',\\n\\t\\t\\t//dataType: 'text',\\n\\t\\t\\turl: path,\\n\\t\\t\\tdata: { sa : server_action , inv : invoice_id },\\n\\t\\t\\tasync: false,\\t\\t\\t\\t\\n\\t\\t\\tsuccess:\\tajaxOK\\t,\\t\\n\\t\\t\\terror:\\t\\tajaxError\\t\\n\\t\\t\\t});\\t\\n\\treturn jqxhr;\\n}\",\n \"function start_game() {\\n $.ajax({\\n url : '/api/game/startGame',\\n type : 'POST',\\n dataType: 'json',\\n contentType : \\\"application/json\\\",\\n success : function(data) {\\n }\\n });\\n}\",\n \"function ajax(request, finish) {\\n\\n var xhr = new XMLHttpRequest();\\n var files = [];\\n\\n xhr.onload = function () {\\n if (xhr.status < 200 || xhr.status >= 400) {\\n _queue = [];\\n _running = false;\\n _loading.stop();\\n request.vm.$el.innerHTML = xhr.responseText;\\n return;\\n }\\n\\n var response = JSON.parse(xhr.responseText);\\n var update = response['update'];\\n var js = response['js'];\\n\\n // empty file inputs (if exists)\\n files.forEach(function (f) { f.value = ''; });\\n\\n // server-side changes not call watch methods\\n request.vm.$updating = true;\\n\\n Object.keys(update).forEach(function (key) {\\n var value = update[key];\\n log('> $data[\\\"' + key + '\\\"] = ', value);\\n\\n // update viewmodel\\n request.vm.$data[key] = value;\\n });\\n\\n request.vm.$nextTick(function () {\\n request.vm.$updating = false;\\n });\\n\\n\\n if (js) {\\n log('> $eval = ', response['js']);\\n setTimeout(function () {\\n new Function(js).call(request.vm);\\n })\\n }\\n\\n finish();\\n };\\n\\n // create form with all data\\n var form = new FormData();\\n\\n if (request.vm.$options.vpath) {\\n form.append('_vpath', request.vm.$options.vpath);\\n }\\n\\n form.append('_method', request.name);\\n form.append('_params', JSON.stringify(request.params));\\n form.append('_model', JSON.stringify(request.vm.$data));\\n\\n // select elements with for upload file\\n if (request.files) {\\n files = request.vm.$el.querySelectorAll(request.files);\\n files.forEach(function (file) {\\n for (var i = 0; i < file.files.length; i++) {\\n form.append('_files', file.files[i]);\\n log('$upload (\\\"' + file.files[i].name + '\\\")... ', file.files[i].size);\\n }\\n });\\n }\\n\\n log('$update (\\\"' + request.name + '\\\") = ', request.params);\\n\\n xhr.open('POST', location.href, true);\\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\\n xhr.send(form);\\n }\",\n \"function AppsAjaxRequest( requestUrl, hashParms, successClosure, requestMethod )\\n{\\n\\tif ( requestMethod == null ) requestMethod = 'post';\\n\\n\\t// ensure session ID is present if we're posting\\n\\tif ( requestMethod.toLowerCase() == 'post' ) {\\n\\t\\tif ( !( 'sessionid' in hashParms ) ) {\\n\\t\\t\\thashParms[ 'sessionid' ] = g_sessionID;\\n\\t\\t}\\n\\t}\\n\\n\\tnew Ajax.Request( requestUrl,\\n\\t\\t{\\n\\t\\t\\trequestHeaders: { 'Accept': 'application/json' },\\n\\t\\t\\tmethod: requestMethod,\\n\\t\\t\\tparameters: hashParms,\\n\\t\\t\\tonSuccess: function( transport )\\n\\t\\t\\t{\\n\\t\\t\\t\\tvar results = transport.responseJSON;\\n\\t\\t\\t\\tif ( results )\\n\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\tsuccessClosure( results );\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t} );\\n}\",\n \"function sendNewUniFacultyCourse(){\\n //put the loading screen on\\n loadingScreen();\\n \\n //grab the message \\n var message = $(\\\"#newunifacultycourse\\\").val();\\n \\n //create the object to send \\n var obj=new Object();\\n obj.message = message;\\n \\n //send it via jquery and update the description \\n $.ajax({\\n type: \\\"POST\\\",\\n url: \\\"/index/newunifacultycourse/\\\",\\n dataType: \\\"json\\\",\\n data: obj ,\\n success: function(res) {\\n if(res.items[0].status ==='success'){\\n showNewUniFacultyCourse(); \\n alert('Successfully submitted your request');\\n }\\n else{\\n alert(\\\"\\\"+res.items[0].message);\\n\\t\\t}\\n removeLoadingScreen();\\n },\\n error: function(data) {\\n alert(\\\"Error sending your request. Try again\\\")\\n removeLoadingScreen();\\n }\\n });\\n}\",\n \"function requestServer(number) {\\n \\t \\t//alert('Server Request startet');\\n var lastName = $('input.lastName');\\n var firstName = $('input.firstName');\\n var requestUrl;\\n //validate form-fields:\\n if(pndFormCheck(number)) {\\n \\t// create requestURL:\\n \\trequestUrl = 'https://alkyoneus.hbz-nrw.de/gnd/gndrequest.jsp?firstName=' + firstName[number].value + \\\"&lastName=\\\" + lastName[number].value + '&index=' + number;\\n \\t \\t//requestUrl = 'include.html';\\n \\t//requestUrl = 'pom.xml';\\n \\t\\n \\tvar options = {\\n \\t\\t\\ttype: 'GET',\\n \\t\\t\\turl: requestUrl,\\n \\t\\t\\tdataType: 'xml text',\\n \\t\\t\\t\\n \\t\\t\\tsuccess: (function (data, textstatus, jqxhr){\\n \\t\\t\\t\\tresponse = jqxhr.responseXML;\\n \\t\\t\\t\\t\\n \\t\\t\\t\\tjQuery('div.resultarea').append(response + '

Hallo

');\\n \\t\\t\\t\\talert('Anfrage geht ' + response);\\n \\t\\t\\t})\\n \\t\\t\\n \\t\\t}\\n \\n \\t//jQuery.ajax('include.txt');\\n \\talert('starte Anfrage');\\n \\t\\n \\tjQuery.ajax(options);\\n \\t\\n \\t\\n \\t//alert('hinter der Anfrage');\\n \\t/*$.ajax({\\n \\t\\t url: 'include.txt',\\n \\t}).done(function(html){\\n \\t\\talert('result: ' + html);\\n \\t});*/\\n \\t//var inp = jQuery('.resultarea');\\n \\t//inp.append('

huhu

');\\n }\\n\\t }\",\n \"function submitGet() {\\n console.log('button clicked');\\n $.ajax({\\n method: 'GET',\\n url: '/'\\n }).then(function (response) {\\n console.log('GET request response', response);\\n // $(`.welcome`).append(`

${response}

`); \\n }); //end ajax GET \\n}\",\n \"function sendRequest (code) {\\n if(!running){\\n startRunning()\\n lastSearch=code //Update global\\n //Send an AJAX request to the controller\\n $.ajax({\\n type: \\\"POST\\\",\\n contentType: \\\"application/json; charset=utf-8\\\",\\n url: \\\"/student/validate\\\",\\n data : JSON.stringify({session_code:code}),\\n dataType: \\\"json\\\",\\n\\n success: function (result) {\\n //If the result isn't null\\n if(result){\\n \\n //Parse errors\\n if(\\\"errors\\\" in result){\\n let errors = result[\\\"errors\\\"]\\n //Invalid code (error exists)\\n if (errors.length > 0){\\n errorMessage = errors.pop()\\n showErrorMessage(errorMessage)\\n }\\n //Valid code (no error, show button)\\n else{\\n enableSubmit()\\n }\\n }\\n\\n //Then parse the details\\n if(\\\"session\\\" in result){\\n let sessionDetails = result[\\\"session\\\"]\\n //If the session is not found\\n if(sessionDetails == null){\\n loadView(\\\"invalid\\\")\\n }else{\\n //Parse session details\\n var title = sessionDetails[\\\"session_title\\\"]\\n var module = sessionDetails[\\\"module_code\\\"]\\n var startDate = moment(sessionDetails[\\\"start_time\\\"])\\n var endDate = moment(sessionDetails[\\\"end_time\\\"])\\n let day = startDate.format(\\\"DD/MM/YYYY\\\")\\n let startTime = startDate.format(\\\"HH:mm\\\")\\n let endTime = endDate.format(\\\"HH:mm\\\")\\n\\n //Update session details on screen\\n sessionNameField.text(module+\\\"-\\\"+title)\\n sessionDateField.text(day)\\n sessionTimeField.text(startTime+\\\"-\\\"+endTime)\\n sessionHiddenField.val(code)\\n loadView(\\\"valid\\\")\\n }\\n \\n }\\n \\n }else{\\n //Show the invalid code view\\n loadView(\\\"invalid\\\")\\n }\\n stopRunning()\\n },\\n error: function (){\\n console.log(\\\"Error during ajax request\\\")\\n stopRunning()\\n }\\n });\\n }\\n }\",\n \"function teacher_ajaxcall() {\\n response = $.ajax({\\n url: \\\"/teacher_refresh/\\\",\\n });\\n}\",\n \"ajaxMethod (data, callback, settings = this.settings) {\\n $.ajax({\\n type : 'POST',\\n dataType : settings.dataType,\\n url : settings.url,\\n data : data,\\n headers : {\\n [settings.csrf.name]: settings.csrf.token\\n },\\n success (data) {\\n if (data.success === true) {\\n callback(data)\\n if (settings.dev) {\\n console.log('Success:', data)\\n }\\n } else {\\n console.error('Error:', data)\\n }\\n return data;\\n },\\n error (data) {\\n console.error('Template Error:', data.responseJSON.error)\\n }\\n })\\n }\",\n \"function BtnAddCircuit(){\\n\\n var FormAddCircuit = new FormData(AddFormCircuit);\\n FormAddCircuit.append('action','btn_register_circuit');\\n var nicE = new nicEditors.findEditor('NicEdit');\\n FormAddCircuit.append('description',nicE.getContent());\\n FormAddCircuit.append('id_theme', $('#SelectTheme').val());\\n\\n var loc = window.location.pathname;\\n var dir = loc.substring(0, loc.lastIndexOf('/'));\\n var dir = dir.substring(0, dir.length-1);\\n var dir = dir.substring(0, dir.lastIndexOf('/'));\\n var controller = dir + '/ControllerIvan/AdminControllerIvan/AdminController.php';\\n\\n $.ajax({\\n type : 'POST',\\n url : controller,\\n data : FormAddCircuit,\\n dataType : 'json',\\n async : false,\\n cache : false,\\n contentType : false,\\n processData : false,\\n success : function (reponse){\\n Vue(reponse);\\n },\\n error: function (xhr, error) {\\n console.log(error);\\n console.log(xhr);\\n }\\n });\\n\\n}\",\n \"connect(request,method){\\n\\t\\tvar ajax = new XMLHttpRequest();\\n\\t\\tajax.open(method, this.ajaxUrl, true);\\n\\t\\tif (method=='POST') ajax.setRequestHeader(\\\"Content-type\\\", \\\"application/x-www-form-urlencoded\\\");\\n\\t\\tajax.send(request);\\n\\t\\tajax.onreadystatechange = function() {\\n\\t\\t\\tif (ajax.readyState == 4 && ajax.status == 200) {\\n\\t\\t\\t\\t// CallBack App.LoadTasks\\n\\t\\t\\t\\t// @param la réponse du serveur en format Ajax\\n\\t\\t\\t\\t App.loadTasks(JSON.parse(this.responseText));\\n\\t\\t\\t}\\n\\t\\t};\\n\\t}\",\n \"function fnGroupeAjax() {\\n var url = \\\"/Groupes/Create\\\";\\n var data = {\\n NomGroupe: $(\\\"#NomGroupe2\\\").val(),\\n };\\n $.ajax({\\n data: JSON.stringify(data),\\n type: \\\"POST\\\",\\n url: url,\\n datatype: \\\"text/plain\\\",\\n contentType: \\\"application/json; charset=utf-8\\\",\\n beforeSend: function (request) {\\n request.setRequestHeader(\\\"RequestVerificationToken\\\", $(\\\"input[name='__RequestVerificationToken']\\\").val());\\n },\\n success: function (result) {\\n // alert(result);\\n },\\n error: function (xhr, status) { alert(\\\"erreur:\\\" + status); }\\n });\\n return false;\\n}\",\n \"function add_notify(){\\r\\n\\tvar content=document.getElementById(\\\"content\\\").value;\\r\\n\\tif(content == \\\"\\\") {\\r\\n\\t\\talert(\\\"Bạn chưa nhập nội dung thông báo\\\");\\r\\n\\t\\tthis.content.focus();\\r\\n\\t\\treturn false;\\r\\n\\t}\\r\\n\\telse{\\r\\n\\t\\tvar content = $(\\\"#content\\\").val();\\r\\n\\t\\tvar idUserAdd = $(\\\"#idUserAdd\\\").val();\\r\\n\\t\\tvar mydata = {\\r\\n\\t\\t\\t\\\"user\\\": idUserAdd,\\r\\n\\t \\t\\\"content\\\": content\\t\\r\\n\\t };\\r\\n\\t console.log(mydata);\\r\\n\\t\\t$.ajax({\\r\\n\\t\\t\\turl: 'http://103.47.194.91:8080/spr-data/notification/add',\\r\\n\\t\\t\\ttype: 'POST',\\r\\n\\t\\t\\tdataType:'json',\\r\\n\\t\\t\\tcontentType: 'application/json',\\r\\n\\t\\t\\tdata: JSON.stringify(mydata)\\r\\n\\t\\t})\\r\\n\\t\\t.done(function(data) {\\r\\n\\t\\t\\tconsole.log(a);\\r\\n\\t\\t})\\r\\n\\t\\t.always(function() {\\r\\n\\t\\t\\tload_notify();\\r\\n\\t\\t});\\r\\n\\t}\\r\\n}\",\n \"function setNewToken() {\\r\\n $.ajax({\\r\\n type: \\\"post\\\",\\r\\n async:true,\\r\\n contentType: \\\"application/json;charset=UTF-8\\\",\\r\\n url: basePath + \\\"/personalController/createNewToken\\\",\\r\\n success: function(response) {\\r\\n if(response.success){\\r\\n $(\\\"#token\\\").val(response.obj);\\r\\n }\\r\\n }\\r\\n });\\r\\n}\",\n \"function CreateBusiness() {\\n var xmlhttp = new XMLHttpRequest();\\n xmlhttp.open(\\\"POST\\\", \\\"/account/CreateBusiness\\\", true);\\n xmlhttp.setRequestHeader(\\\"Content-type\\\", \\\"application/x-www-form-urlencoded\\\");\\n xmlhttp.send(\\\"Action=CreateBusiness\\\");\\n\\n xmlhttp.onreadystatechange = function () {\\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\\n var tabResult = xmlhttp.responseText;\\n //Action\\n }\\n }\\n}\",\n \"function CalificacionServicio(nidsolicitud, vcodigo) {\\n $.ajax({\\n type: \\\"POST\\\",\\n url: \\\"../Services/CalificacionServicio_MesaAyuda\\\",\\n data: \\\"{nidsolicitud:'\\\" + nidsolicitud + \\\"',vcodigo:'\\\" + vcodigo + \\\"'}\\\",\\n dataType: \\\"json\\\",\\n async: false,\\n contentType: \\\"application/json; charset=utf-8\\\",\\n success: CalificacionServicioSuccess,\\n failure: function (response) {\\n alert(response.d);\\n },\\n error: OnError\\n });\\n}\",\n \"function saveEditedData()\\n{\\n $.ajax({\\n method: 'POST',\\n url: '/saveChanges',\\n data: {uname: $(\\\"#logout\\\").text().trim(), data: ChangeBuffer},\\n dataType: 'json',\\n success: function(){\\n location.reload();\\n }\\n });\\n}\",\n \"function callDummyAction_REP()\\r\\n{\\r\\n\\t$.ajax({\\r\\n\\t\\t\\turl: jQuery.contextPath+ \\\"/path/dummy/DummyAction\\\",\\r\\n\\t \\t\\ttype:\\\"post\\\",\\r\\n\\t \\t\\tdataType:\\\"json\\\",\\r\\n\\t \\t\\tsuccess: function(data)\\r\\n\\t \\t\\t{\\r\\n\\t \\t\\t}\\r\\n\\t});\\r\\n}\",\n \"function getURL(url) {\\n //Requesting JSon through AJAX\\n $.ajax({\\n type: \\\"GET\\\",\\n dataType: \\\"json\\\",\\n url: \\\"./WalkScoreSearch\\\" + url, //Name of the controller presenting the URL, the \\\"./\\\" helps ensure its the current controller\\n success: displaySearch,\\n error: errorOnAjax\\n });\\n}\",\n \"function sendRequest(id, c) {\\n $.ajax\\n ({\\n url: \\\"/Product/AddToCart\\\",\\n data: { productId: id, count: c.toString().replace(\\\".\\\", \\\",\\\") },\\n type: \\\"POST\\\",\\n success: function (data) {\\n newAlert('alert', data);\\n },\\n error: function (XMLHttpRequest, textStatus, errorThrown) {\\n newAlert('alert alert-error', errorThrown);\\n }\\n })\\n}\",\n \"function request() {\\n var ajax = new _ajaxRequest.default();\\n return ajax.request.apply(ajax, arguments);\\n }\",\n \"function api_call() {\\n $('form').submit()\\n }\",\n \"requestQuality(e) {\\n //Do AJAX HERE, cant be an object must be a string sent to store\\n Actions.fetchData(\\\"AJAX\\\");\\n }\",\n \"function retrieveTasksServer() {\\n $.ajax(\\\"TaskServlet\\\", {\\n \\\"type\\\": \\\"get\\\",\\n dataType: \\\"json\\\"\\n // \\\"data\\\": {\\n // \\\"first\\\": first,\\n // \\\"last\\\": last\\n // }\\n }).done(displayTasksServer.bind()); //need reference to the tasksController object\\n }\",\n \"function contactServer(){\\r\\n\\tvar contactData = {'name':$('#contact-name').val(),'email':$('#contact-email').val(),'phone':$('#contact-phone').val(),'message':$('#contact-message').val()};\\r\\n\\tjQuery.ajax({\\r\\n\\t\\turl: context+\\\"/contactUs\\\",\\r\\n\\t\\ttype: 'POST',\\r\\n\\t\\theaders: {'Content-Type': 'application/json'},\\r\\n\\t\\tdata: JSON.stringify(contactData),\\r\\n\\t\\tsuccess: function(response) {\\r\\n\\t\\t\\t$('#message').text(response.message);\\r\\n\\t\\t},\\r\\n\\t\\terror: function(XMLHttpRequest, textStatus, errorThrown) {\\r\\n\\t\\t\\t$('#message').text(error);\\r\\n\\t\\t} \\r\\n\\r\\n\\t});\\r\\n}\",\n \"function postCompanyandPosition() {\\n console.log(\\\"posting\\\")\\n $(\\\"form\\\").submit(function(e) {\\n e.preventDefault();\\n const values = $(this).serialize();\\n console.log(values)\\n\\n // Rials.ajax works\\n Rails.ajax({\\n url: \\\"/positions.json\\\",\\n type: \\\"POST\\\",\\n data: values,\\n success: function(data) {\\n console.log(data)\\n window.location.replace(`/companies/${data.company.id}/positions/${data.id}`)\\n alert(\\\"Successfuly created!\\\")\\n }\\n })\\n\\n // $.post jquery also works\\n // $.post('/positions.json', values)\\n // .done((data) => {\\n // console.log(data)\\n // window.location.replace(`/companies/${data.company.id}/positions/${data.id}`)\\n // alert(\\\"Successfuly created!\\\")\\n // })\\n\\n // fetch - got error\\n // fetch(\\\"/positions.json\\\", {\\n // method: \\\"post\\\",\\n // body: values,\\n // headers: {\\n // \\\"Content-Type\\\": \\\"application/json\\\",\\n // \\\"Accept\\\": \\\"application/json\\\"\\n // }\\n // }).then(res => console.log(res.json()))\\n })\\n}\",\n \"function FillUserCars()\\n{\\n let data = {};\\n data['action'] = 'GetUserCars';\\n\\n //Send ajax request\\n AjaxRequest('./webservice.php', 'POST', data, 'json', FillCarsSelect, Fail)\\n}\",\n \"function FillUserCars()\\n{\\n let data = {};\\n data['action'] = 'GetUserCars';\\n\\n //Send ajax request\\n AjaxRequest('./webservice.php', 'POST', data, 'json', FillCarsSelect, Fail)\\n}\",\n \"function ajax_AddInfo() {\\n //build json object\\n var data = {\\n id: parseInt($(\\\"#add-NotifId\\\").val()),\\n customerId: parseInt($(\\\"#add-customerId\\\").find(\\\":selected\\\").val()),\\n email: $(\\\"#add-email\\\").val(),\\n mobile: $(\\\"#add-mobile\\\").val()\\n };\\n\\n //console.log(data);\\n\\n var url = '/CustNotifs/AddRecipient';\\n\\n //Post data from server using ajax call\\n $.ajax({\\n url: url,\\n type: \\\"POST\\\",\\n data: data,\\n dataType: 'application/json; charset=utf-8',\\n success: function (data) {\\n // console.log(\\\"SUCCESS\\\");\\n },\\n error: function (data) {\\n // console.log(\\\"ERROR\\\");\\n //update recipient table\\n ajax_UpdateList();\\n }\\n });\\n}\",\n \"function doAJAXRequest(rtype,url,data,dataType){\\n return $.ajax({\\n type:rtype,\\n url:url,\\n data:data,\\n //dataType:dataType//<-include later\\n });\\n }\",\n \"function sendSpeechRequest(data){\\n\\t$.ajax({\\n\\t\\turl: '/speek',\\n\\t\\ttype: 'GET',\\n\\t\\tdataType: 'text',\\n\\t\\tdata: {\\\"user_input\\\": data},\\n\\t})\\n\\t.done(function(data) {\\n\\t})\\n\\t.fail(function() {\\n\\t\\tconsole.log(\\\"error\\\");\\n\\t});\\n}\",\n \"function send(action) {\\n console.log(\\\">>>\\\", JSON.stringify(action));\\n $.ajax({\\n method: \\\"POST\\\",\\n url: \\\"/games/\\\"+gameId+\\\"/actions\\\",\\n headers: {\\n \\\"X-CSRF-TOKEN\\\": csrf\\n },\\n // The key needs to match your method's input parameter (case-sensitive).\\n data: JSON.stringify(action),\\n contentType: \\\"application/json; charset=utf-8\\\",\\n success: function(){console.log(\\\"action succeeded\\\")},\\n error: function(xhr, status, error) {\\n console.log(\\\"action failed: \\\"+xhr.status+\\\" / \\\"+xhr.responseText, error);\\n }\\n });\\n}\",\n \"function auth($username,$email, $password) {\\n $.ajax({\\n type: \\\"POST\\\",\\n //SEND TO MY SERVER URL\\n url: \\\"http://localhost:3000/users\\\",\\n dataType: 'json',\\n //async: false,\\n data: { 'username': $username, 'email':$email,'password': $password ,'ent':-1,'lit':-1,'gk':-1,'tech':-1,'sports':-1},\\n success: function (response) {\\n $.session.set('username', $username);\\n $(window).attr('location', '../html/user_dashboard.html');\\n \\n \\n \\n \\n console.log(response);\\n }\\n })\\n}\",\n \"function handleRequest(event) {\\r\\n event.preventDefault();\\r\\n\\r\\n var username = $('#reqUsername').val();\\r\\n var bundle = $('#reqBundle').val();\\r\\n\\r\\n $.ajax({\\r\\n method: 'POST',\\r\\n url: WORKSPACES_CONTROL_URL,\\r\\n headers: {\\r\\n Authorization: authToken\\r\\n },\\r\\n beforeSend: function () {},\\r\\n complete: function () {},\\r\\n data: JSON.stringify({\\r\\n action: 'create',\\r\\n username: username,\\r\\n bundle: bundle\\r\\n }),\\r\\n contentType: 'text/plain',\\r\\n error: function () {\\r\\n $(\\\"#methodStatus\\\").append('
Error! Something went wrong... Please contact an administrator if the problem persists.
');\\r\\n $(\\\"#methodStatus\\\").show();\\r\\n },\\r\\n success: function (data) {\\r\\n $(\\\"#methodStatus\\\").append('
Success! WorkSpace request submitted... This request must be approved before the WorkSpace will be created. An email has been sent to ' + _config.approval.email + ' to authorize this request. Once approved, the WorkSpace will be created automatically and an email will be sent to your email with instructions for access.
');\\r\\n $(\\\"#methodStatus\\\").show();\\r\\n }\\r\\n });\\r\\n\\r\\n }\",\n \"postAjax(url, data, success) {\\n var params =\\n typeof data == \\\"string\\\"\\n ? data\\n : Object.keys(data)\\n .map(function(k) {\\n return encodeURIComponent(k) + \\\"=\\\" + encodeURIComponent(data[k]);\\n })\\n .join(\\\"&\\\");\\n\\n var xhr = window.XMLHttpRequest\\n ? new XMLHttpRequest()\\n : new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n xhr.open(\\\"POST\\\", url);\\n xhr.onreadystatechange = function() {\\n if (xhr.readyState > 3 && xhr.status == 200) {\\n success(xhr.responseText);\\n }\\n };\\n xhr.setRequestHeader(\\\"X-Requested-With\\\", \\\"XMLHttpRequest\\\");\\n xhr.setRequestHeader(\\\"Content-Type\\\", \\\"application/x-www-form-urlencoded\\\");\\n xhr.send(params);\\n return xhr;\\n }\",\n \"function getLoginForm() {\\n $.ajax({\\n type: \\\"POST\\\",\\n url: \\\"Controllers/controller.User.php\\\",\\n data: {locate: \\\"GetLoginForm\\\"}\\n })\\n .done(function(msg) {\\n $(\\\"#loginsubscribefroms\\\").html(msg);\\n });\\n\\n}\",\n \"function sendAjaxRequest(type, url, data) {\\n var contextPath = \\\"/\\\";\\n $.ajax({\\n type: type,\\n url: contextPath + url,\\n timeout: 900000,\\n data: data,\\n dataType: 'json',\\n beforeSend: function () {\\n showLoadingModal();\\n },\\n success: function (response) {\\n if (response.status === \\\"200\\\") {\\n showNotification(response.message, \\\"success\\\");\\n setTimeout(function () {\\n location.reload();\\n }, 2000);\\n } else {\\n hideLoadingModal();\\n showNotification(response.message, \\\"warning\\\");\\n }\\n },\\n error: function () {\\n hideLoadingModal();\\n showNotification(\\\"Une erreur s'est produite\\\", \\\"error\\\");\\n }\\n });\\n}\",\n \"function send_userinput_to_MATRX(data) {\\r\\n // send an update for every key pressed\\r\\n var lv_resp = $.ajax({\\r\\n method: \\\"POST\\\",\\r\\n url: lv_send_userinput_url + lv_agent_id,\\r\\n contentType: \\\"application/json; charset=utf-8\\\",\\r\\n dataType: 'json',\\r\\n data: JSON.stringify(data),\\r\\n success: function() {\\r\\n //console.log(\\\"Data sent to MATRX\\\");\\r\\n },\\r\\n });\\r\\n return lv_resp;\\r\\n}\",\n \"function fnGrabarCategoria() {\\n\\n var postData = {\\n ctcid: $(\\\"#Ctcid\\\").val(),\\n categoria: $(\\\"#Categoria\\\").val()\\n };\\n $.ajax({\\n type: 'POST',\\n url: \\\"/Cartera/GrabarCategoria/\\\", // we are calling json method\\n dataType: 'json',\\n async: true,\\n data: postData,\\n success: function (data) {\\n }\\n\\n });\\n\\n}\",\n \"function sendAjax2({url_, method_, success_, data_}) {\\n const csrftoken = document.querySelector('[name=csrfmiddlewaretoken]').value;\\n $.ajax({\\n async: true,\\n method: method_,\\n headers: {\\\"X-CSRFToken\\\": csrftoken},\\n url: url_,\\n data: data_,\\n success:function(response){\\n response = JSON.parse(response);\\n success_(response);\\n },\\n error : function(){\\n console.log('fail', url_, method_, data_)\\n }\\n });\\n}\",\n \"function register() {\\n $.post(\\\"AJAX/register-user.cshtml\\\",\\n {\\n username: username,\\n email: email,\\n password: password\\n },\\n (data, status) => {\\n console.log(\\\"\\\\nData:\\\\n\\\" + data + \\\"\\\\nStatus:\\\\n\\\" + status);\\n \\n });\\n}\",\n \"function registro() {\\r\\n data = {\\r\\n 'name' : name.value,\\r\\n 'lastName' : lastName.value,\\r\\n 'secondLastName' : secondLastName.value,\\r\\n 'birthday' : birthday.value,\\r\\n 'ingresosA' : ingresos.value\\r\\n }\\r\\n \\r\\n $.ajax({\\r\\n url: '/registro/datos',\\r\\n type: 'POST',\\r\\n data: { data },\\r\\n success: function (response) {\\r\\n alert(response);\\r\\n }\\r\\n });\\r\\n}\",\n \"function sendAjax($url, $id='#server-results') {\\n if ($datas.length > 0) {\\n //ajout du token CSRF\\n $datas.unshift({'_token': $('input[name=_token]').val()})\\n console.log($datas);\\n\\n var post_url = $url; //get form action url\\n var request_method = 'POST'; //get form GET/POST method\\n var form_data = JSON.stringify($datas, null, 2);\\n\\n //console.log((form_data));\\n\\n $.ajax({\\n headers: {'X-CSRF-TOKEN': $('meta[name=\\\"csrf-token\\\"]').attr('content')},\\n url: post_url,\\n type: request_method,\\n data: form_data,\\n contentType: false,\\n cache: false,\\n processData: false\\n }).done(function (response) {\\n $json = JSON.parse(response);\\n console.log($json);\\n $($id).html(alerteInfo($json[0].alert,$json[1]));\\n });\\n }\\n else {\\n $($id).html(alerteInfo('info',\\\"Aucune donnée à envoyer.\\\",));\\n }\\n\\n}\",\n \"function doAjax(formData, action){\\n\\t//TODO: doAjax callback function form showList/modifyList\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.67664933","0.660051","0.6481897","0.6433929","0.6413726","0.6331433","0.6317938","0.6309952","0.62908167","0.6270301","0.6251974","0.6244362","0.62197226","0.6216455","0.6202165","0.61895955","0.61019456","0.6096128","0.6092031","0.6091488","0.60912234","0.6066772","0.6064053","0.60495317","0.6046791","0.60374534","0.60351825","0.6034063","0.60323083","0.60264224","0.6023128","0.60091734","0.60068864","0.6002095","0.59996784","0.59991735","0.5994028","0.598972","0.5972141","0.596274","0.59592235","0.5953234","0.5949412","0.5942704","0.59282064","0.5927639","0.5924345","0.59243274","0.5922499","0.59198165","0.5918945","0.5912618","0.5910324","0.5903042","0.5897889","0.5891225","0.58876354","0.5882211","0.5880971","0.5875025","0.5866464","0.5853934","0.5847365","0.58410245","0.5840135","0.5838291","0.58381855","0.58381474","0.583698","0.5835927","0.5827122","0.58252066","0.58138555","0.5813095","0.58125407","0.581009","0.5809134","0.5808966","0.5807517","0.5794329","0.5794009","0.5793862","0.5793373","0.5790778","0.5790778","0.57842165","0.57746905","0.57739747","0.5771528","0.5770809","0.57637554","0.57609224","0.5758189","0.57551366","0.57517713","0.57425344","0.5738938","0.5736885","0.57335377","0.5730882","0.5730316"],"string":"[\n \"0.67664933\",\n \"0.660051\",\n \"0.6481897\",\n \"0.6433929\",\n \"0.6413726\",\n \"0.6331433\",\n \"0.6317938\",\n \"0.6309952\",\n \"0.62908167\",\n \"0.6270301\",\n \"0.6251974\",\n \"0.6244362\",\n \"0.62197226\",\n \"0.6216455\",\n \"0.6202165\",\n \"0.61895955\",\n \"0.61019456\",\n \"0.6096128\",\n \"0.6092031\",\n \"0.6091488\",\n \"0.60912234\",\n \"0.6066772\",\n \"0.6064053\",\n \"0.60495317\",\n \"0.6046791\",\n \"0.60374534\",\n \"0.60351825\",\n \"0.6034063\",\n \"0.60323083\",\n \"0.60264224\",\n \"0.6023128\",\n \"0.60091734\",\n \"0.60068864\",\n \"0.6002095\",\n \"0.59996784\",\n \"0.59991735\",\n \"0.5994028\",\n \"0.598972\",\n \"0.5972141\",\n \"0.596274\",\n \"0.59592235\",\n \"0.5953234\",\n \"0.5949412\",\n \"0.5942704\",\n \"0.59282064\",\n \"0.5927639\",\n \"0.5924345\",\n \"0.59243274\",\n \"0.5922499\",\n \"0.59198165\",\n \"0.5918945\",\n \"0.5912618\",\n \"0.5910324\",\n \"0.5903042\",\n \"0.5897889\",\n \"0.5891225\",\n \"0.58876354\",\n \"0.5882211\",\n \"0.5880971\",\n \"0.5875025\",\n \"0.5866464\",\n \"0.5853934\",\n \"0.5847365\",\n \"0.58410245\",\n \"0.5840135\",\n \"0.5838291\",\n \"0.58381855\",\n \"0.58381474\",\n \"0.583698\",\n \"0.5835927\",\n \"0.5827122\",\n \"0.58252066\",\n \"0.58138555\",\n \"0.5813095\",\n \"0.58125407\",\n \"0.581009\",\n \"0.5809134\",\n \"0.5808966\",\n \"0.5807517\",\n \"0.5794329\",\n \"0.5794009\",\n \"0.5793862\",\n \"0.5793373\",\n \"0.5790778\",\n \"0.5790778\",\n \"0.57842165\",\n \"0.57746905\",\n \"0.57739747\",\n \"0.5771528\",\n \"0.5770809\",\n \"0.57637554\",\n \"0.57609224\",\n \"0.5758189\",\n \"0.57551366\",\n \"0.57517713\",\n \"0.57425344\",\n \"0.5738938\",\n \"0.5736885\",\n \"0.57335377\",\n \"0.5730882\",\n \"0.5730316\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":81547,"cells":{"query":{"kind":"string","value":"function to Create object to call Ajax"},"document":{"kind":"string","value":"function fncreatexhrObject()\r\n{\r\n var http_request = false;\r\n try\r\n {\r\n http_request = new XMLHttpRequest();\r\n \r\n }\r\n catch (err1)\r\n {\r\n try\r\n {\r\n http_request = new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n \r\n }\r\n catch (err2)\r\n {\r\n try\r\n {\r\n http_request = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n }\r\n catch(err3)\r\n {\r\n http_request = false;\r\n }\r\n } \r\n }\r\n if (!http_request)\r\n {\r\n alert('Cannot create XMLHTTP instance');\r\n return false;\r\n }\r\n return http_request;\r\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["_makeAjax(url, method, postObj) {\n let ajax = this.$.ajax;\n ajax.method = method;\n ajax.url = url;\n ajax.body = postObj ? JSON.stringify(postObj) : undefined;\n ajax.generateRequest();\n }","_makeAjax(url, method, postObj) {\n let ajax = this.$.ajax;\n ajax.method = method;\n ajax.url = url;\n ajax.body = postObj ? JSON.stringify(postObj) : undefined;\n ajax.generateRequest();\n }","function createAJAXObject(ajax) {\n //We want optionPromise to resolve asynchronously so we can use results from other promises in it\n var optionPromise = Promise.resolve({});\n return {\n get: function () { return ajax('get', optionPromise) },\n post: function () { return ajax('post', optionPromise) },\n put: function () { return ajax('put', optionPromise) },\n delete: function () { return ajax('delete', optionPromise) },\n head: function () { return ajax('head', optionPromise) },\n /* options is an object containing optionally the parameters:\n * - headers: (object) the headers to pass along with the request\n * - timeout: (number) the milliseconds following which to cancel the request\n */\n setOptions: function (o) {\n for (var key in o) {\n optionPromise.then(function (options) {\n options[key] = o[key];\n });\n }\n return this;\n },\n setOptionPromise: function (promise) {\n optionPromise = promise;\n return this;\n }\n }\n }","function createAjaxObj(){\r\nvar httprequest=false\r\nif (window.XMLHttpRequest){ // if Mozilla, Safari etc\r\nhttprequest=new XMLHttpRequest()\r\nif (httprequest.overrideMimeType)\r\nhttprequest.overrideMimeType('text/xml')\r\n}\r\nelse if (window.ActiveXObject){ // if IE\r\ntry {\r\nhttprequest=new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n} \r\ncatch (e){\r\ntry{\r\nhttprequest=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n}\r\ncatch (e){}\r\n}\r\n}\r\nreturn httprequest\r\n}","function object_ajax()\n{\n\tvar dinamic_ajax=false;\n\ttry {\n\t\tdinamic_ajax = new ActiveXObject(\"Msxml2.XMLHTTP\");\n\t} catch (e)\n\t{\n\t\ttry {\n\t\t\tdinamic_ajax = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t} catch (E) {\n\t\t\tdinamic_ajax = false;\n\t\t\t}\n\t\t}\n\t\n\tif (!dinamic_ajax && typeof XMLHttpRequest!='undefined') {\n\t\tdinamic_ajax = new XMLHttpRequest();\n\t}\n\treturn dinamic_ajax;\n}","function getAjaxObj(url,type,dataType,onAjaxSuccess,onAjaxError,onAjaxComplete,cache){\n\tvar ajax_obj = new Object();\n\tajax_obj.url = url;\n\tajax_obj.type = type;\n\tajax_obj.dataType = dataType;\n\tajax_obj.onSuccess = onAjaxSuccess;\n\tajax_obj.onError = onAjaxError;\n\tajax_obj.onComplete = onAjaxComplete;\n\tajax_obj.cache = cache;\n\treturn ajax_obj;\n}","function createAJAXObj() {\n\t\t try {\n\t\t return new XMLHttpRequest();\n\t\t } catch (er1) {\n\t\t try {\n\t\t return new ActiveXObject(\"Msxml3.XMLHTTP\");\n\t\t } catch (er2) {\n\t\t try {\n\t\t return new ActiveXObject(\"Msxml2.XMLHTTP.6.0\");\n\t\t } catch (er3) {\n\t\t try {\n\t\t return new ActiveXObject(\"Msxml2.XMLHTTP.3.0\");\n\t\t } catch (er4) {\n\t\t try {\n\t\t return new ActiveXObject(\"Msxml2.XMLHTTP\");\n\t\t } catch (er5) {\n\t\t try {\n\t\t return new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t } catch (er6) {\n\t\t return false;\n\t\t }\n\t\t }\n\t\t }\n\t\t }\n\t\t }\n\t\t }\n\t\t}","function __ajax(url, data){\nvar ajax= $.ajax({\n \"method\":\"POST\",\n \"url\":url,\n \"data\":data\n })\n return ajax\n}","constructor() {\n this.config = Config.ajax;\n this.xhr;\n this.Serialize;\n }","function ajaxObj( meth, url ) {\n\tvar x = new XMLHttpRequest();\n\tx.open( meth, url, true );\n\tx.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n\treturn x;\n}","function AjaxCreate(sDataType) \n {\n var xhr;\n \n\t try \n\t {\n\t if (window.XMLHttpRequest) \n\t { \n\t\t xhr = new XMLHttpRequest();\n\t } \n\t else if (window.ActiveXObject) \n\t { \n\t\t xhr = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t }\n\t }\n\t catch(e) \n\t {\n\t var sMsg = \"Error: Unable to create data access object for \" + sDataType + \" data. \\n\\n\";\n\t sMsg += \"Error Details: \" + e.message; \n\t\t alert(sMsg);\n\t }\n\t \n\t //Make sure the XHR object is really created.\n\t if (!xhr)\n\t {\n\t var sMsg = \"Error: Unable to create data access object for \" + sDataType + \" data. \\n\\n\";\n\t sMsg += \"Error Details: Unknown error.\"; \n\t\t alert(sMsg);\n\t } \n\t \n\t return xhr; \n }","function Ajax(title1, title2, text1, text2, id, url) {\n\tthis.title1 = title1;\n\tthis.title2 = title2;\n\tthis.text1 = text1;\n\tthis.text2 = text2;\n\tthis.id = id;\n\tthis.url = url;\n}","function AjaxCall() {\n\tthis.req = null;\n\tthis.url = null;\n\tthis.divID = null;\n\tthis.method = 'POST';\n\tthis.async = true;\n\tthis.queryString = null;\n\tthis.visible= false;\n\t\n\tthis.initReq = function (){\n\t\tvar self = this;\n\t\tthis.req.open(this.method,this.url,this.async);\n\t\tthis.req.onreadystatechange= function() {\n\t\t\tvar obj=document.getElementById(self.divID);\n\t\t\tif(self.req.readyState == 4){\t\n\t\t\t\tif(self.req.status == 200){\n\t\t\t\t\tobj.innerHTML=self.req.responseText;\n\t\t\t\t\tif (self.visible) obj.style.visibility=\"visible\";\n\t\t\t\t\tself.onresult();\n\t\t\t\t} else {\n\t\t\t\t\t//alert(self.req.status+\"A problem occurred with communicating between the XMLHttpRequest object and the server program.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.req.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded; charset=UTF-8\");\n\t\tthis.req.send(this.queryString);\n\t}\n\t\n\tthis.httpRequest = function (){\n\t\t//Mozilla-based browsers\n\t\tif(window.XMLHttpRequest){\n\t\t\tthis.req = new XMLHttpRequest();\n\t\t} else if (window.ActiveXObject){\n\t\t\tthis.req=new ActiveXObject(\"Msxml2.XMLHTTP\");\n\t\t\tif (!this.req){\n\t\t\t\tthis.req=new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t\t}\n\t\t}\n\t\t//the request could still be null if neither ActiveXObject\n\t\t//initializations succeeded\n\t\tif(this.req){\n\t\t\tthis.initReq();\n\t\t} else {\n\t\t\t//alert(\"Your browser does not permit the use of all \"+\"of this application's features!\");\n\t\t}\n\t}\n\t\n\tthis.onresult = function (){\n\t\t//Do something after completion here.\n\t}\n}","function makeHttpObject() {\r\n\t\ttry {return new XMLHttpRequest();}\r\n\t\tcatch (erreur) {}\r\n\t\ttry {return new ActiveXObject(\"Msxml2.XMLHTTP\");}\r\n\t\tcatch (erreur) {}\r\n\t\ttry {return new ActiveXObject(\"Microsoft.XMLHTTP\");}\r\n\t\tcatch (erreur) {}\r\n\r\n\t\tthrow new Error(\"La création de l'objet pour les requêtes HTTP n'a pas pu avoir lieu.\");\r\n\t}","function createXmlHttpRequestObject() {\n\t\t// will store the reference to the XMLHttpRequest object\n\t\tvar xmlHttp;\n\t\t// if running Internet Explorer\n\t\tif(window.ActiveXObject) {\n\t\t\ttry {\n\t\t\t\txmlHttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t\t} catch (e) {\n\t\t\t\txmlHttp = false;\n\t\t\t}\n\t\t} else {\n\t\t\t// if running Mozilla or other browsers\n\t\t\ttry {\n\t\t\t\txmlHttp = new XMLHttpRequest();\n\t\t\t} catch (e) {\n\t\t\t\txmlHttp = false;\n\t\t\t}\n\t\t}\n\t\t// return the created object or display an error message\n\t\tif (!xmlHttp)\n\t\t\talert(\"Error creating the XMLHttpRequest object.\");\n\t\telse\n\t\t\treturn xmlHttp;\n\t}","function createInstance()\n{\n var xhttp = null;\n if(window.XMLHttpRequest) {\n xhttp = new XMLHttpRequest();\n }\n else if (window.ActiveXObject) {\n try {\n xhttp = new ActiveXObject(\"Msxml2.XMLHTTP\");\n } catch (e) {\n try {\n xhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n } catch (e) {\n alert(\"XHR not created\");\n }\n }\n }\n return xhttp;\n}","function createXmlHttpRequestObject() \r\n{\t\r\n // guardar la referencia al objeto XMLHttpRequest \r\n var xmlHttp;\r\n \r\ntry\r\n {\r\n // Firefox, Opera 8.0+, Safari\r\n xmlHttp=new XMLHttpRequest();\r\n }\r\ncatch (e)\r\n {\r\n // Internet Explorer\r\n try\r\n {\r\n xmlHttp=new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n }\r\n catch (e)\r\n {\r\n xmlHttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n }\r\n }\r\nreturn xmlHttp;\r\n\r\n \r\n}","function createRequest(url, data, type, onFail, onSucceed, isAsync) {\n isAsync = isAsync || false;\n return $.ajax({\n async: isAsync,\n url: url,\n data: data,\n type: type,\n success: onSucceed,\n error: onFail,\n });\n}","function Ajax(__constructor) {\r\n if (Params.env.isFirefox) return GM_xmlhttpRequest(__constructor);\r\n else return new XHR(__constructor);\r\n}","function getObjetAjax(url_request) {\r\n\t\tvar xhr = new XMLHttpRequest();\r\n\t //CREATION DE L'APPEL SYNCHRONE\r\n\t xhr.open(\"GET\", url_request, false);\r\n\t log(\"url called ajax : \" + url_request);\r\n\t //ENVOIE DE LA REQUETE\r\n\t xhr.send(null);\r\n\t //TRAITEMENT DES DONNEE\r\n\t var retour = new Object();\r\n\t retour.reponse = JSON.parse(xhr.responseText);\r\n\t log(\"reponse : \" + retour.reponse);\r\n\t retour.status = xhr.status;\r\n\t return retour;\r\n\t}","function createHttpRequestObject() {\n\tvar xmlHttp;\n\n\t/*Code Source: Mozilla.org - Getting Started with Ajax*/\t\n\tif(window.ActiveXObject) {\n\t\ttry {\n\t\t\txmlHttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t}\n\t\tcatch(e) {\n\t\t\txmlHttp = false;\n\t\t}\t\t\t\n\t} \n\telse {\n\t\ttry {\n\t\t\txmlHttp = new XMLHttpRequest(); \n\t\t} catch(e) {\n\t\t\txmlHttp = false; \n\t\t}\n\t}\n\t\n\tif(!xmlHttp)\n\t\talert(\"Could not create XML Request\");\n\telse {\n\t\treturn xmlHttp; \n\t}\n}","function createHttpRequestObject() {\n\tvar xmlHttp;\n\n\t/*Code Source: Mozilla.org - Getting Started with Ajax*/\t\n\tif(window.ActiveXObject) {\n\t\ttry {\n\t\t\txmlHttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t}\n\t\tcatch(e) {\n\t\t\txmlHttp = false;\n\t\t}\t\t\t\n\t} \n\telse {\n\t\ttry {\n\t\t\txmlHttp = new XMLHttpRequest(); \n\t\t} catch(e) {\n\t\t\txmlHttp = false; \n\t\t}\n\t}\n\t\n\tif(!xmlHttp)\n\t\talert(\"Could not create XML Request\");\n\telse {\n\t\treturn xmlHttp; \n\t}\n}","function getRequestObject() {\n if (window.XMLHttpRequest) {\n return (new XMLHttpRequest);\n } else if (window.ActiveXObject) {\n // for verry old IE browser (optional)\n return (new ActiveXObject(\"Microsoft.XMLHTTP\"));\n } else {\n global.alert(\"Ajax is not supported\");\n return (null);\n }\n }","constructor () {\n this.xhr = new XMLHttpRequest(); //(AJAX ISLEMINI BASLATMAK ICIN XHR xhr objemizi olusturduk\n }","function getAjaxObj(){ \r\n\tvar ajaxObject; //Agregamos la variable llamada objeto\r\n\t\r\n\t//revisamos si no esta definido el objeto nativamente(navegadores tipo mozilla)\r\n\tif (typeof XMLHttpRequest == \"undefined\" ){ \r\n\t\t//Ahora revisamos si el motor es mayor o igual a MSIE 5.0 (mayor que microsoft internet explorer 5.0)\r\n\t\tif(navigator.userAgent.indexOf(\"MSIE 5\") >= 0) { \r\n\t\t\t// Si es así creamos un control activeX apartir de un objeto ActiveXObject(\"Microsoft.XMLHTTP\")\r\n\t\t\tajaxObject = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n\t\t} else {\r\n\t\t\t//si no , o si es menor a MSIE 5.0 creamos otro control activeX\r\n\t\t\t// apartir de un objeto ActiveXObject(\"Msxml2.XMLHTTP\")\r\n\t\t\tajaxObject = new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n\t\t}\r\n\t} else {\r\n\t\t// en cambio si el objeto estaba definido nativamente, solo lo instanciamos\r\n\t\t//Instancia del objeto XMLHttpRequest\r\n\t\tajaxObject=new XMLHttpRequest();\r\n\t}\r\n\t\r\n\t// Y retornamos el objeto creado\r\n\treturn ajaxObject;\r\n}","function createRequestObject(){\n if (window.XMLHttpRequest) \n {\n g.request = new XMLHttpRequest();\n } \n else \n {\n g.request = new ActiveXObject();//\"Microsoft.XMLHTTP\");\n }\n}","function createXmlHttpRequestObject() \n{\n\tvar xmlHttp;\n\n\tif(window.ActiveXObject) //If user is using internet Explorer\n\t{\n\t\ttry\n\t\t{\n\t\t\txmlHttp = new ActiveXObject(\"Microsoft.xmlHttp\");\n\t\t}\n\t\tcatch(e)\n\t\t{\n\t\t\txmlHttp=false;\n\t\t}\n\t}\n\telse //If user is NOT using internet Explorer but any other browser\n\t{\n\t\ttry\n\t\t{\n\t\t\txmlHttp = new XMLHttpRequest();\n\t\t}\n\t\tcatch(e)\n\t\t{\n\t\t\txmlHttp=false;\n\t\t}\n\t}\n\n\tif(!xmlHttp) //If Object can not be initialized.\n\t\t{\n\t\t\talert(\"Can not create object\");\n\t\t}\n\telse\n\t{\n\t\treturn xmlHttp;\n\t}\n}","function createRequestObject(){\nvar req;\nif(window.XMLHttpRequest){\n\nreq = new XMLHttpRequest();\n}\nelse if(window.ActiveXObject){\n//For IE 5+\nreq = new ActiveXObject(\"Microsoft.XMLHTTP\");\n}\nelse{\n}\n\nreturn req;\n}","function getRequestObject ()\n {\n var request = null;\n try \n { // Firefox, Opera 8.0+, Safari\n request=new XMLHttpRequest();\n }\n catch (e)\n {// Internet Explorer\n try\n {\n request=new ActiveXObject(\"Msxml2.XMLHTTP\");\n }\n catch (e)\n {\n try\n {\n request=new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\n catch (e)\n {\n window.status = \"Browser does not support Ajax!!\";\n return false;\n }\n }\n }\n return request;\n }","function getRequestObject() {\n if (window.XMLHttpRequest) {\n return (new XMLHttpRequest());\n } else if (window.ActiveXObject) {\n // For very old IE browsers (optional)\n return (new ActiveXObject(\"Microsoft.XMLHTTP\"));\n } else {\n global.alert(\"Ajax is not supported!\");\n return (null);\n }\n }","function new_xhr(){\r\n\tvar xhr_object = null;\r\n\tif(window.XMLHttpRequest) // Firefox et autres\r\n\t xhr_object = new XMLHttpRequest();\r\n\telse if(window.ActiveXObject){ // Internet Explorer\r\n\t try {\r\n xhr_object = new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n } catch (e) {\r\n xhr_object = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n }\r\n\t}\r\n\telse { // XMLHttpRequest non supporté par le navigateur\r\n\t alert(\"Votre navigateur ne supporte pas les objets XMLHTTPRequest...\");\r\n\t xhr_object = false;\r\n\t}\r\n\treturn xhr_object;\r\n}","function createRequestObject(){\n\tvar request_o; //declare the variable to hold the object.\n\tvar browser = navigator.appName; //find the browser name\n\tif(browser == \"Microsoft Internet Explorer\"){\n\t\t/* Create the object using MSIE's method */\n\t\trequest_o = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t}else{\n\t\t/* Create the object using other browser's method */\n\t\trequest_o = new XMLHttpRequest();\n\t}\n\treturn request_o; //return the object\n}","function getRequestObject() {\n \n httpRequest = new XMLHttpRequest();\n return httpRequest;\n}","function createXmlObject() {\n\t\tvar xmlhttp = false;\n\n\t\t// create object in mozilla, safari, Internet Explorer version >= 7\n\t\ttry{xmlhttp = new XMLHttpRequest(); xmlhttp.timeout = 36000000;} // time in milliseconds\n\t\tcatch (e) {\n\t\t\t// create object in Internet Explorer version >= 5\n\t\t\ttry {xmlhttp = new ActiveXObject(\"Msxml2.XMLHTTP\");}\n\t\t\tcatch (e) {\n\t\t\t\t// create object in Internet Explorer\t\n\t\t\t\ttry {xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");}\n\t\t\t\tcatch (e) {\n\t\t\t\t\t// create object in Ice Browser\n\t\t\t\t\ttry {xmlhttp = window.createRequest();}\n\t\t\t\t\tcatch(e){}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn xmlhttp;\n\t}","function createRequestObject() {\n var tmpXmlHttpObject;\n \n // firefox, chrome, Opera, Safari, IE7+,, would use this method ...\n tmpXmlHttpObject = new XMLHttpRequest();\n\t\n return tmpXmlHttpObject;\n\n}// end of function createRequestObject() ","function createRequest() {\n var xHRObject = false;\n if (window.XMLHttpRequest)\n xHRObject = new XMLHttpRequest();\n else if (window.ActiveXObject)\n xHRObject = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\n return xHRObject;\n}","function ajax_call(ajax_obj){\n\t$.ajax({\n\t\turl: ajax_obj.url,\n\t\ttype: ajax_obj.type,\n\t\tdata: ajax_obj.data,\n\t\tdataType: ajax_obj.dataType,\n\t\tsuccess: ajax_obj.onSuccess,\n\t\terror: ajax_obj.onError,\n\t\tcomplete: ajax_obj.onComplete,\n\t\tcache:ajax_obj.cache,\n\t});\n}","function createXmlHttpRequestObject()\n{\n\t// add your code here to create a XMLHttpRequest object compatible to most browsers\n var xmlhttp;\n \n if (window.XMLHttpRequest) {\n // code for modern browsers\n xmlhttp = new XMLHttpRequest();\n } else {\n // code for old IE browsers\n xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\n \n return xmlhttp;\n\t\n}","function AjaxClient(){\n this.client = null;\n try{\n this.client = new XMLHttpRequest();\n } catch (e) {\n try {\n this.client = new ActiveXObject(\"Msxml2.XMLHTTP\");\n } catch (e) {\n try {\n\t\t\t\tthis.client = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t\t} catch (e) {\n\t\t\t\tthis.client = null;\n\t\t\t}\n }\n }\n\n this.request = function(method, url, data, responseHandler){\n if(!this.client){\n window.alert(\"AJAX required, but not supported by your browser. You can no longer use this site.\");\n return ;\n }\n\n if(data){\n // encode both for get and for post requests\n data = JSONtoURL(data);\n }\n if (method == \"GET\"){\n // before opening connection\n // we must know the complete url\n url += \"?\" + (data ? data : \"\");\n console.log(\"GET \" + url);\n }\n this.client.open(method, url, true);\n if (method == \"POST\") {\n // we can only set headers after\n // having opened the connection\n this.client.setRequestHeader(\n 'Content-Type',\n // php $_POST can only be used with :\n // application/x-www-form-urlencoded\n // multipart/form-data\n 'application/x-www-form-urlencoded');\n }\n var thatclient = this.client;\n this.client.onreadystatechange = function(){\n if(thatclient.readyState == 4){\n console.log(thatclient);\n var response = JSON.parse(thatclient.responseText);\n responseHandler(response);\n }\n }\n this.client.send(data);\n }\n\n this.get = function (url, responseHandler) {\n return this.request(\"GET\", url, null, responseHandler);\n }\n\n this.post = function (url, data, responseHandler) {\n return this.request(\"POST\", url, data, responseHandler);\n }\n}","function makeRequest(obj, url) {\n var http_request = false;\n if (window.XMLHttpRequest && !(window.ActiveXObject)) { // Mozilla, Safari,...\n http_request = new XMLHttpRequest();\n if (http_request.overrideMimeType) {\n http_request.overrideMimeType('text/xml');\n }\n } else if (window.ActiveXObject) { // IE\n try {\n http_request = new ActiveXObject('Msxml2.XMLHTTP');\n } catch (e1) {\n try {\n http_request = new ActiveXObject('Microsoft.XMLHTTP');\n } catch (e2) { }\n }\n }\n if (!http_request) {\n alert('Giving up :( Cannot create an XMLHTTP instance');\n return false;\n }\n http_request.onreadystatechange = function () {\n insertRequest(obj, http_request);\n };\n http_request.open('GET', url, true);\n http_request.send(null);\n}","function getRequestObject() {\n if (window.XMLHttpRequest) {\n return (new XMLHttpRequest());\n } else if (window.ActiveXObject) {\n // For very old IE browsers (optional)\n return (new ActiveXObject(\"Microsoft.XMLHTTP\"));\n } else {\n alert(\"Ajax is not supported!\");\n return (null);\n }\n}","static create(obj) {\n //spinner(true);\n\n let handle = $(obj).attr(\"referencia\");\n let target = $(obj).attr(\"target\");\n let single = parseInt($(obj).attr(\"single\"));\n\n this.criaModal(handle, target);\n\n if(!(single === 1 && $(obj).find(\".galeria-overlay\").length > 0)){\n this.lista(obj);\n }\n }","request() {\n var self = this;\n var elements = Editable.getAllEditableElement();\n this.Serialize = new Serialize(elements);\n\n var method = self.config.method;\n this.xhr = new XMLHttpRequest();\n\n // open request\n if (method == 'GET') {\n this.xhr.open(method, self.config.url + '?' + this.Serialize.GET(), true);\n this.addHeader([\"Content-Type\", \"application/x-www-form-urlencoded\"]);\n } else if (method == 'POST') {\n this.xhr.open(method, self.config.url, true);\n this.addHeader([\"Content-Type\", \"multipart/form-data\"]);\n }\n\n // headers\n this.header();\n\n // additional params\n this.param();\n\n // send\n if (method == 'GET') {\n this.xhr.send();\n } else if (method == 'POST') {\n this.xhr.send(this.Serialize.POST());\n }\n\n return this;\n }","function createRequest() {\n var xhr = false;\n if (window.XMLHttpRequest) {\n xhr = new XMLHttpRequest();\n }\n else if (window.ActiveXObject) {\n xhr = new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\n return xhr;\n} // end function createRequest()","function createXMLHTTPRequest() {\n\t\t\tvar requester = false;\n\t\t\ttry {\n\t\t\t\trequester = new impl(args);\n\t\t\t} catch (e) {}\n\n\t\t\trequester.onreadystatechange = function () {\n\t\t\t\tif (this.readyState != 4) return;\n\t\t\t\tif (this.status > 399) {\n\t\t\t\t\tvar errObj = {'responseText':\"error:\" + this.status + ' ' + this.statusText};\n\t\t\t\t\tif(console) {\n\t\t\t\t\t\tconsole.log(errObj);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresponse(this);\n\t\t\t\t}\n\t\t\t};\n\t\t\treturn requester;\n\t\t}","function makeRequestObject() {\r\n\t\t\t/*This function forks for IE and returns the XMLHttpRequest object.*/\r\n\t\t\tif (window.XMLHttpRequest) {\r\n\t\t\t\treturn new XMLHttpRequest();\r\n\t\t\t} else if (window.ActiveXObject) {\r\n\t\t\t\treturn new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n\t\t\t}\r\n\t\t}","function createJQueryRestAdapter (){\n // use jQuery to contact the Jive server\n\n var ajaxPath = \"\"; // value replaced when template is rendered\n var osapi = $r(\"osapi\");\n\n var dataFilter = function(data, type) {\n return (type === 'json' && data) ? jQuery.trim(data.replace(/^throw [^;]*;/, '')) : data;\n };\n\n /**\n * @param options.method {String} one of \"GET\", \"PUT\", \"POST\" or \"DELETE\"\n * @param options.endpoint {String} the short REST path, e.g.: \"users/1234?\"\n * @param options.queryParams {Object} map of query params to their values\n * @param options.body {String} body content to send with PUT or POST\n * @constructor\n */\n osapi.Request = function(options) {\n this.options = {\n method: options.method,\n endpoint: options.endpoint,\n ext: options.ext,\n v: options.v\n };\n if (isObjectWithProperties(options.queryParams)) {\n this.options.queryParams = options.queryParams\n }\n if (options.body != null) {\n this.options.body = options.body\n }\n };\n osapi.Request.prototype.execute = function(callback) {\n executeImpl.call(this, null, callback);\n };\n osapi.Request.prototype.executeAs = function(personURI, callback) {\n executeImpl.call(this, \"uri \" + personURI, callback);\n };\n function executeImpl(runAs, callback) {\n callback = callback || function(){};\n var endpoint = this.options.endpoint + buildQueryParams(this.options.queryParams);\n if (endpoint.charAt(0) == '/') {\n endpoint = endpoint.substring(1);\n }\n var path = this.options.ext\n ? \"ext/\" + this.options.ext + \"/\" + (this.options.version || this.options.v)\n : \"v3\";\n var url = [ajaxPath, \"api/core\", path, endpoint].join(\"/\");\n jQuery.ajax({\n url: url,\n type: this.options.method,\n contentType: this.options.body == null ? $u : \"application/json; charset=utf-8\",\n data: this.options.body == null ? $u : this.options.body,\n dataType: \"json\",\n dataFilter: dataFilter,\n beforeSend: function(req) {\n if (runAs != null) {\n req.setRequestHeader(\"X-Jive-Run-As\", runAs);\n }\n },\n success: function(data, textStatus, jqXHR) {\n if(data === null) {\n data = { status : jqXHR.status };\n }\n callback(interceptData(data));\n },\n error: function(xhr) {\n callback(buildErr(500, xhr.status, \"An error occurred while contacting the server\"));\n }\n });\n }\n\n /**\n * Object that may contain several Request objects to be executed in a\n * single REST call.\n * @constructor\n */\n osapi.BatchRequest = function() {\n this._requests = [];\n };\n osapi.BatchRequest.prototype.add = function(key, request) {\n if (this._requests == null) {\n throw \"BatchRequest is no longer valid\";\n }\n this._requests.push({\n key: key,\n request: request.options\n });\n };\n osapi.BatchRequest.prototype.execute = function(callback) {\n executeBatchImpl.call(this, null, callback);\n };\n osapi.BatchRequest.prototype.executeAs = function(personURI, callback) {\n executeBatchImpl.call(this, \"uri \" + personURI, callback);\n };\n function executeBatchImpl(runAs, callback) {\n if (this._requests == null) {\n throw \"BatchRequest is no longer valid\";\n }\n var req = this._requests;\n this._requests = null;\n callback = callback || function(){};\n if (req.length == 0) {\n callback({});\n return;\n }\n var url = [ajaxPath, \"api/core/v3/executeBatch\"].join(\"/\");\n jQuery.ajax({\n url: url,\n type: \"POST\",\n contentType: \"application/json; charset=utf-8\",\n data: JSON.stringify(req),\n dataType: \"json\",\n dataFilter: dataFilter,\n beforeSend: function(req) {\n if (runAs != null) {\n req.setRequestHeader(\"X-Jive-Run-As\", runAs);\n }\n },\n success: function(res) {\n var data = {}, i;\n for (i = 0; i < res.length; i++) {\n if (res[i].data) {\n data[res[i].id] = interceptData(res[i].data);\n } else if (res[i].error) {\n data[res[i].id] = buildErr(res[i].error.code || 500, res[i].status || 500, res[i].error.message);\n }\n }\n for (i = 0; i < req.length; i++) {\n if (!(data.hasOwnProperty(req[i].id) && data[req[i].id])) {\n data[req[i].id] = buildErr(500, 500, \"No data was returned from the server\");\n }\n }\n callback(data);\n },\n error: function(xhr) {\n var res = {};\n try {\n res = JSON.parse(xhr.responseText) || {};\n } catch (e) { /* don't care */ }\n var data = {};\n var err = buildErr(res.code || 500, xhr.status, res.message || \"An error occurred while contacting the server\");\n for (var i = 0; i < req.length; i++) {\n data[req[i].key] = err;\n }\n callback(data);\n }\n });\n }\n\n /**\n * Creates a new, empty BatchRequest\n * @return {osapi.BatchRequest}\n */\n osapi.newBatch = function() {\n return new osapi.BatchRequest();\n };\n\n function buildErr(code, status, msg) {\n return {\n error: {\n code: code,\n status: status,\n message: msg\n }\n };\n }\n\n function buildRequest(method, hasBody, options) {\n var o = {\n method: method,\n endpoint: options.href,\n queryParams: options.params\n };\n if (hasBody) {\n o.body = options.body == null ? \"\" : JSON.stringify(options.body);\n }\n if (options.ext) {\n o.ext = options.ext;\n o.v = options.v;\n }\n return new osapi.Request(o);\n }\n\n $r(\"osapi.jive.core\", function() { return {\n \"get\": function(options) {\n return buildRequest(\"GET\", false, options);\n },\n \"post\": function(options) {\n return buildRequest(\"POST\", true, options);\n },\n \"put\": function(options) {\n return buildRequest(\"PUT\", true, options);\n },\n \"delete\": function(options) {\n return buildRequest(\"DELETE\", false, options);\n }\n }});\n\n osapi.jive.core[\"get\"]._intercepted = true;\n osapi.jive.core[\"put\"]._intercepted = true;\n osapi.jive.core[\"post\"]._intercepted = true;\n osapi.jive.core[\"delete\"]._intercepted = true;\n\n initIntercept = bootstrapRest;\n }","function createXmlHttpRequestObject()\n{\n\tvar xmlHttp;\n\n\ttry{\n\t\t/*creation of xmlHttp object by native browsers*/\n\t\txmlHttp = new XMLHttpRequest();\n\t}\n\tcatch(e)\n\t{\n\t\ttry{\n\t\t\t/*creation of xmlHttp object by explorer*/\n\t\t\txmlHttp = new ActiveXObject(\"Microsoft.XMLHttp\");\n\t\t}\n\t\tcatch(e)\n\t\t{\n\t\t\t//ignore\n\t\t}\n\t}\n\tif (!xmlHttp)\n\t{\n\t\talert(\"Error creating an xmlHttpRequest object!\");\n\t}\n\telse\n\t\treturn xmlHttp;\n}","function __ajax(url, data){\n var ajax = $.ajax({\n \"method\": \"POST\",\n \"url\": url,\n \"data\": data\n })\n return ajax;\n}","function Pvl_XmlHtReq_CreateObj(){\n try{\n return new XMLHttpRequest();\n }catch(e){}\n try{\n return new ActiveXObject('MSXML2.XMLHTTP.6.0');\n }catch(e){}\n try{\n return new ActiveXObject('MSXML2.XMLHTTP.3.0');\n }catch(e){}\n try{\n return new ActiveXObject('MSXML2.XMLHTTP');\n }catch(e){}\n\n return null;\n}","function getRequestObject() {\n\tif (window.XMLHttpRequest) {\n \treturn (new XMLHttpRequest());\n \t} \n \telse if (window.ActiveXObject) {\n \t// for very old IE browsers (optional)\n \treturn (new ActiveXObject(\"Microsoft.XMLHTTP\"));\n \t} else {\n\t\talert(\"Ajax is not supported!\");\n \treturn(null); \n \t}\n}","function AjaxObject(theurl, params){\n this.xmlhttp = fetchXmlObject(); //xml http object\n this.params = params;\n\tthis.url = theurl;\n\t\n var that = this;\n \n function fetchXmlObject() {\n\t\tvar temp=GetXmlHttpObject();\n \t//firebug.watchXHR(xmlhttp);\n\t\tif(temp==null) {\n\t\t\talert (\"Your browser does not support XMLHTTP!\");\n\t\t}\n\t\treturn temp;\n\t}\n\n\tfunction GetXmlHttpObject() {\n\t\tif (window.XMLHttpRequest) {\n\t\t\t// code for IE7+, Firefox, Chrome, Opera, Safari\n\t\t\treturn new XMLHttpRequest();\n\t\t}\n\t\tif (window.ActiveXObject) {\n\t\t\t// code for IE6, IE5\n\t\t\treturn new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t\t}\n\t\treturn null;\n\t}\n\t\n\tfunction fieldDisplay(element) {\n\t\tif (that.serverReturnedAResponse()) {\n\t\t\t//changeLabelText(element, that.xmlhttp.responseText);\n\t\t}\n\t}\n\t\n\tthis.sendToPHP = function(cb) {\n\t\tif(that.xmlhttp==null) {\n\t\t\treturn;\n\t\t}\n\t\tthat.xmlhttp.onreadystatechange = cb;\n\t\tthat.xmlhttp.open(\"POST\",that.url,true);\n\t\t//Send the proper header information along with the request\n\t\tthat.xmlhttp.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n\t\tthat.xmlhttp.send(that.params);\n\t}\n\t\n\tthis.displayQuestion = function() {\n\t\treturn function () {\n\t\t\tif(that.serverReturnedAResponse()) {\n\t\t\t\tvar responseFields = that.responseText().split('|');\n\t\t\t\tvVanObj.prepareNextQuestion(responseFields);\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\tthis.displayUser = function(){\n\t\treturn function(){\n\t\t\tif(that.serverReturnedAResponse()) {\n\t\t\t\twindow.userid = that.responseText();\n\t\t\t\tcreateSessionJS();\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\tthis.displaySession = function(){\n\t\treturn function(){\n\t\t\tif(that.serverReturnedAResponse()) {\n\t\t\t\tlocalStorage.currentsid = window.currentsid = that.responseText();\n\t\t\t\taddNavActionJS(\"begin\", localStorage.currentsid);\n\t\t\t}\n\t\t}\n\t}\n\t\t\n\tthis.displayHallOfFame = function(){\n\t\treturn function(){\n\t\t\t//fieldDisplay(\"sessionidtxt\");\n\t\t\tif (that.serverReturnedAResponse()) {\n\t\t\t\t$(\"#hallheader\").hide();\n\t\t\t\tvar fields = that.responseText().split('|');\n\t\t\t\tvar nFamous = fields.splice(0, 1);\n\t\t\t\tfor(var i = 0; i < nFamous; i++) {\n\t\t\t\t\tdisplayFamer(fields, i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\t\n\t\t\n\tthis.displayUID = function(){\n\t\treturn function(){\n\t\t\t//fieldDisplay(\"sessionidtxt\");\n\t\t\tif (that.serverReturnedAResponse()) {\n\t\t\t\twindow.userid = that.responseText();\n\t\t\t\tsetLongCookie(\"userid\", that.responseText());\n\t\t if (window.userid == -1){\n\t\t addUserJS(userfname, userlname);\n\t\t } else {\n\t\t createSessionJS();\n\t\t }\n\t\t\t}\n\t\t}\n\t}\n\t\n\tthis.destroyUserCookie = function() {\n\t\treturn function() {\n\t\t\tif(that.serverReturnedAResponse()) {\n\t\t\t\tdestroyUserCookie();\n\t\t\t}\n\t\t}\n\t}\n\t\n\tfunction displayFamer(fields, i) {\n\t\t$(\"#hofrank\"+(i+1)).text(fields[i*N_HOF_CATS]);\n\t\t$(\"#hofscore\"+(i+1)).text(fields[i*N_HOF_CATS+3]);\n\t\t$(\"#hofplayer\"+(i+1)).text(fields[i*N_HOF_CATS+1]);\n\t\tchangeAvatarSpriteImage(fields[i*N_HOF_CATS+2], SPRITE_57_OFFSET, \"hofestavt\"+(i+1));\n\t//\talert(\"name: \" + fields[i*3] + \" avatar: \" + fields[i*3+1] + \" points: \" + fields[i*3+2]);\t\n\t}\n\t\n\tthis.serverReturnedAResponse = function() {\n \treturn (that.xmlhttp.readyState==4 && that.xmlhttp.status==200);\n\t}\n\t\n\tthis.responseText = function() {\n\t\treturn that.xmlhttp.responseText;\n\t}\n}","function request() {\n const ajax = new _ajaxRequest.default();\n return ajax.request(...arguments);\n }","function createXmlHttpRequestObject()\n{\n var xmlhttp = null;\n\n // code for Mozilla, etc.\n if (window.XMLHttpRequest) {\n xmlhttp=new XMLHttpRequest();\n }\n // code for IE\n else if (window.ActiveXObject) {\n try {\n xmlhttp=new ActiveXObject(\"Msxml2.XMLHTTP.4.0\");\n } catch (e) {\n try {\n xmlhttp=new ActiveXObject(\"Msxml2.XMLHTTP\");\n } catch (e) {\n xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\n }\n }\n\n if (xmlhttp == null) \n alert(\"Can not create XMLHttpRequest object in your browser!\");\n \n return xmlhttp;\n}","function Ajax(url, obj) {\n\t\tvar request = null;\n\t\tif (window.XMLHttpRequest) {\n\t\t\trequest = new XMLHttpRequest();\n\t\t} else if (window.ActiveXObject) {\n\t\t\trequest = new ActiveXObject(\"Microsoft.XMLHttp\");\n\t\t}\n\t\tif (request) {\n\t\t\trequest.open(\"POST\", url, true);\n\t\t\trequest.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded; charset=UTF-8\");\n\t\t\trequest.setRequestHeader(\"If-Modified-Since\", \"0\");\n\t\t\trequest.onreadystatechange = function () {\n\t\t\t\tif (request.readyState == 4 && request.status == 200) {\n\t\t\t\t\tobj.innerHTML = request.responseText;\n\t\t\t\t} else {\n\t\t\t\t\tobj.innerHTML = \"Loading....\";\n\t\t\t\t}\n\t\t\t}\n\t\t\trequest.send(null);\n\t\t}\n\t}","function createXMLHttpInstance() {\n var request = null;\n if (window.XMLHttpRequest) {\n request = new XMLHttpRequest();\n } else if (window.ActiveXObject) {\n try {\n request = new ActiveXObject(\"Msxml2.XMLHTTP\");\n } catch (e) {\n try {\n request = new ActiveXObject(\"Microsoft.XMLHTTP\");\n } catch (e) {\n alert(\"XHR not created\");\n }\n }\n }\n return request;\n}","function Ajax(sUrl,hsArgs){\n\t\tvar r=(\n\t\t\t\tthis.mkax('Msxml3.XMLHTTP')||\n\t\t\t\t\t\tthis.mkax('Msxml2.XMLHTTP')||\n\t\t\t\t\t\tthis.mkax('Microsoft.XMLHTTP')||\n\t\t\t\t\t\tnew XMLHttpRequest()\n\t\t);\n\t\tif(!r)throw new Error(\"Browser don't support Ajax Object.\")\n\t\tthis.constructor.extend(this,Packer,[r])\n\t\tthis.setArgs(hsArgs);\n\t\tthis.initObject();\n\t\tthis.send(sUrl);\n}","function createXmlHttpRequestObject()\n{\n //will store reference to object\n var xmlHttp;\n //create object\n try {\n //assume IE7 or newer/modern\n xmlHttp = new XMLHttpRequest();\n } catch (e) {\n //assume IE6 or older\n try\n {\n xmlHttp = new ActiveXObject (\"Microsoft.XMLHttp\");\n }\n catch (e) { }\n }\n //return created object or error message\n if (!xmlHttp)\n alert(\"Error creating the XMLHttpRequest object.\");\n else\n return xmlHttp;\n }","function functionCreate()\n{\n\tif(window.XMLHttpRequest)\n\t{\n\t\tg.ajaxObject = new XMLHttpRequest();\n\t}\n\n\telse if(window.ActiveXObject)\n\t{ \n\t\tg.ajaxObject = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t}\n\n\tvar art = document.getElementsByTagName(\"article\");\n\tvar username = art[0].innerHTML;\n\n\tg.ajaxObject.open(\"POST\", \"JSONcreate.php\", true);\t\n\tg.ajaxObject.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\"); \n\tg.ajaxObject.onreadystatechange = functionCheckNewlyCreated;\n\tg.ajaxObject.send(\"username=\" + username);\t\t\t\t\t\t\t\t\t\n}","function Ajax() {\n var xhr = new XMLHttpRequest();\n this.get = function (fetchFunc, options, cb) {\n if (fetchFunc === true) {\n var err,\n response = {};\n fetch(options.url, {\n method: options.method ? options.method : \"get\",\n mode: options.mode ? options.mode : \"\",\n headers: options.headers ? options.headers : {}\n }).then(function (res) {\n response.res = res;\n return res.json();\n }).then(function (data) {\n response.data = data\n return cb(err, response);\n }).catch(function (error) {\n err = error;\n return cb(err, response);\n });\n } else {\n xhr.open(\"get\", options.url, options.async ? options.async: true);\n if (options.type) {\n this.responseType = options.type;\n }\n if (options.headers) {\n Object.keys(options.headers).forEach(function (index) {\n xhr.setRequestHeader(index, options.headers[index]);\n });\n }\n xhr.setRequestHeader(\"ajax\", \"express\");\n xhr.onreadystatechange = function () {\n if (this.readyState === 0) {\n if (options.beforStart) {\n options.beforStart();\n }\n }\n if (this.readyState === 1) {\n if (options.onStart) {\n options.onStart(xhr);\n }\n }\n if (this.readyState === 3) {\n if (options.onProgress) {\n options.onProgress(xhr);\n }\n }\n var err;\n var data;\n if (this.readyState === 4) {\n if (this.status === 404 || this.status === 403 || this.status === 500) {\n err = {status: this.status};\n }\n if (this.readyState === 4 && this.status === 200) {\n data = {response: this.response, responseText: this.responseText, responseUrl: this.responseURL, responseXML: this.responseXML, responseType: this.responseType};\n }\n return cb(err, data);\n }\n };\n xhr.send();\n }\n }\n this.post = function (options, cb) {\n var err;\n var data;\n var formData = new FormData();\n if (options.url) {\n xhr.open(\"post\", options.url, options.async ? options.async : true);\n if (options.headers) {\n Object.keys(options.headers).forEach(function (index) {\n xhr.setRequestHeader(index, options.headers[index]);\n });\n }\n if (options.fullAjax) {\n return fullAjax(this);\n }\n if (options.data) {\n if (options.upload) {\n var file;\n file = options.upload.file;\n Array.from(file).forEach(function (fil) {\n formData.append(options.upload.fileName, fil);\n });\n if (options.upload.onload) {\n xhr.upload.onload = function (e) {\n return options.upload.onload(e);\n }\n }\n if (options.upload.onprogress) {\n xhr.upload.onprogress = function (e) {\n return options.upload.onprogress(e);\n }\n }\n if (options.upload.onerror) {\n xhr.upload.onerror = function (e) {\n return options.upload.onerror(e);\n }\n }\n }\n if (typeof options.data === \"object\") {\n Object.keys(options.data).forEach(function (item) {\n formData.append(item, options.data[item]);\n });\n options.data = formData;\n } else if (typeof options.data === \"string\") {\n xhr.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n }\n xhr.setRequestHeader(\"ajax\", \"express\");\n if (options.onabort) {\n xhr.onabort = function (e) {\n\n return options.onabort(e);\n };\n }\n xhr.onreadystatechange = function () {\n if (this.readyState === 0) {\n if (options.beforStart) {\n options.beforStart();\n }\n }\n if (this.readyState === 1) {\n if (options.onStart) {\n options.onStart();\n }\n }\n if (this.readyState === 3) {\n if (options.onProgress) {\n options.onProgress();\n }\n }\n\n if (this.status === 404 || this.status === 403 || this.status === 500) {\n err = {status: this.status};\n }\n if (this.readyState === 4 && this.status === 200) {\n data = {response: this.response, responseText: this.responseText, responseUrl: this.responseURL, responseXML: this.responseXML, responseType: this.responseType};\n }\n if (cb) {\n return cb(err, data);\n }\n };\n xhr.send(options.data);\n } else {\n err = new Error(\"bad request\");\n return console.error(\"cannot send empty data\");\n }\n } else {\n err = new Error(\"bad request\");\n return console.error(\"cannot send empty url\");\n }\n }\n }","function createHttpRequestObject() {\n\tvar xmlHttp = new XMLHttpRequest || new ActiveXObject(\"Microsoft.XMLHTTP\");\n\treturn xmlHttp;\t\t \n}","function createXMLObject(){\r\n var xmlObj = null;\r\n if(window.XMLHttpRequest){\r\n xmlObj = new XMLHttpRequest();\r\n } else if(window.ActiveXObject){\r\n xmlObj = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n }\r\n\r\n return xmlObj;\r\n}","function createRequestObject(){\n\tvar ro;\n\tvar browser = navigator.appName;\n\tif(browser == \"Microsoft Internet Explorer\"){\n\t\tro = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t} else {\n\t\tro = new XMLHttpRequest();\n\t}\n\n\treturn ro;\n}","function inicializa_xhr() {\n if (window.XMLHttpRequest) {\n return new XMLHttpRequest();\n } else if (window.ActiveXObject) {\n return new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\n}","useAjax( ajax ) {\n this._ajax = ajax;\n }","useAjax( ajax ) {\n this._ajax = ajax;\n }","function httpFactory() {\n\tvar invoker = false;\n\t// Creation de l'invoker :\n\tif (window.XMLHttpRequest) \t\t\t \t // Firefox \n\t\tinvoker = new XMLHttpRequest(); \n\telse if(window.ActiveXObject) { // Internet Explorer \n\t\tinvoker = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\t}\n\telse {\n\t\tvar fail = \"Echec d'instanciation de l'invocateur distant :'( \\n\";\n\t\tfail += \"Votre navigateur ne semble pas supporter l'invocation de méthodes distantes ...\\n\";\n\t\tfail += \"Veuillez utiliser quelque chose d'un peu plus standart, comme Firefox par exemple ^_^ !\\n\";\n\t\talert(fail); \n\t\tinvoker = -1; \n\t\texit(); // On dégage :p\n\t}\n\treturn invoker;\n}","function doAjaxCallToCreateOrder(name, createdBy, labId, associatedProjectId) {\n $.ajax({\n url: \"../newOrder\",\n type: \"POST\",\n async: false,\n data: {\n\n \"name\": name,\n \"createdBy\": createdBy,\n \"labId\": labId,\n \"associatedProjectId\": associatedProjectId,\n// \"budget\": budget,\n// \"orderLimit\": orderLimit,\n// \"tax\": taxRate\n },\n success: function (response) {\n //alert(\"order created!\");\n window.location.href = \"../html/currentOrders.html\";\n },\n error: function (response) {\n alert(response.message);\n }\n });\n}","function createResortAjax(c_json){\n $.ajax({\n url: resort_index,\n type: 'POST',\n dataType: 'json',\n data: c_json,\n headers: { Authorization: 'Token token=' + sessionStorage.getItem('powder-token')}\n })\n .done(function() {\n console.log(\"Created\");\n loadResortsAjax();\n })\n .fail(function() {\n console.log(\"error\");\n });\n }","function crearObjeto(){\r\n if(window.XMLHttpRequest){\r\n xml=new XMLHttpRequest();\r\n }\r\n else{\r\n if(ActiveXObject){\r\n var versiones=[\"MSXML2.XMLHttp.5.0\",\"MSXML2.XMLHttp.4.0\",\"MSXML2.XMLHttp.3.0\",\"MSXML2.XMLHttp\",\"Microsoft.XMLHttp\"];\r\n for(i=0;i this.apiList.map.addEvents(data.events))\n .catch(data => console.log(data));\n\n this.apiList.yelp.retrieveData().then(data => {\n this.apiList.map.addBiz(data.businesses);\n this.loadScreenHandler();\n })\n .catch(data => console.log(data));\n }","function doAJAXRequest(rtype,url,data,dataType){\n return $.ajax({\n type:rtype,\n url:url,\n data:data,\n //dataType:dataType//<-include later\n });\n }","function createXMLHttpRequestObject() {\r\n\tvar aVersions = [ \"MSXML2.XMLHttp.5.0\", \"MSXML2.XMLHttp.4.0\",\"MSXML2.XMLHttp.3.0\", \"MSXML2.XMLHttp\",\"Microsoft.XMLHttp\"];\r\n\tif (window.XMLHttpRequest){\r\n\t// para IE7, Mozilla, Safari, etc: que usen el objeto nativo\r\n\treturn new XMLHttpRequest();\r\n\t}\r\n\telse if (window.ActiveXObject){\r\n\t// de lo contrario utilizar el control ActiveX para IE5.x y IE6.x\r\n\t\tfor (var i = 0; i < aVersions.length; i++) {\r\n\t\ttry {\r\n\t\tvar oXmlHttp = new ActiveXObject(aVersions[i]);\r\n\t\treturn oXmlHttp;\r\n\t\t}\r\n\t\tcatch (error)\t{\r\n\t//no necesitamos hacer nada especial\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}","function objetoAjax()\n{\n try\n {\n var xmlhttp = new XMLHttpRequest();\n }\n catch(err1)\n {\n var ieXmlHttpVersions = new Array();\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \"MSXML2.XMLHttp.7.0\";\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \"MSXML2.XMLHttp.6.0\";\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \"MSXML2.XMLHttp.5.0\";\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \"MSXML2.XMLHttp.4.0\";\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \"MSXML2.XMLHttp.3.0\";\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \"MSXML2.XMLHttp\";\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \"Microsoft.XMLHttp\";\n\n var i;\n for (i=0; i < ieXmlHttpVersions.length; i++)\n {\n try\n {\n var xmlhttp = new ActiveXObject(ieXmlHttpVersions[i]);\n break;\n }\n catch (err2)\n {\n \n }\n }\n }\n\n return xmlhttp;\n}"],"string":"[\n \"_makeAjax(url, method, postObj) {\\n let ajax = this.$.ajax;\\n ajax.method = method;\\n ajax.url = url;\\n ajax.body = postObj ? JSON.stringify(postObj) : undefined;\\n ajax.generateRequest();\\n }\",\n \"_makeAjax(url, method, postObj) {\\n let ajax = this.$.ajax;\\n ajax.method = method;\\n ajax.url = url;\\n ajax.body = postObj ? JSON.stringify(postObj) : undefined;\\n ajax.generateRequest();\\n }\",\n \"function createAJAXObject(ajax) {\\n //We want optionPromise to resolve asynchronously so we can use results from other promises in it\\n var optionPromise = Promise.resolve({});\\n return {\\n get: function () { return ajax('get', optionPromise) },\\n post: function () { return ajax('post', optionPromise) },\\n put: function () { return ajax('put', optionPromise) },\\n delete: function () { return ajax('delete', optionPromise) },\\n head: function () { return ajax('head', optionPromise) },\\n /* options is an object containing optionally the parameters:\\n * - headers: (object) the headers to pass along with the request\\n * - timeout: (number) the milliseconds following which to cancel the request\\n */\\n setOptions: function (o) {\\n for (var key in o) {\\n optionPromise.then(function (options) {\\n options[key] = o[key];\\n });\\n }\\n return this;\\n },\\n setOptionPromise: function (promise) {\\n optionPromise = promise;\\n return this;\\n }\\n }\\n }\",\n \"function createAjaxObj(){\\r\\nvar httprequest=false\\r\\nif (window.XMLHttpRequest){ // if Mozilla, Safari etc\\r\\nhttprequest=new XMLHttpRequest()\\r\\nif (httprequest.overrideMimeType)\\r\\nhttprequest.overrideMimeType('text/xml')\\r\\n}\\r\\nelse if (window.ActiveXObject){ // if IE\\r\\ntry {\\r\\nhttprequest=new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\r\\n} \\r\\ncatch (e){\\r\\ntry{\\r\\nhttprequest=new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\r\\n}\\r\\ncatch (e){}\\r\\n}\\r\\n}\\r\\nreturn httprequest\\r\\n}\",\n \"function object_ajax()\\n{\\n\\tvar dinamic_ajax=false;\\n\\ttry {\\n\\t\\tdinamic_ajax = new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n\\t} catch (e)\\n\\t{\\n\\t\\ttry {\\n\\t\\t\\tdinamic_ajax = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t\\t} catch (E) {\\n\\t\\t\\tdinamic_ajax = false;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\n\\tif (!dinamic_ajax && typeof XMLHttpRequest!='undefined') {\\n\\t\\tdinamic_ajax = new XMLHttpRequest();\\n\\t}\\n\\treturn dinamic_ajax;\\n}\",\n \"function getAjaxObj(url,type,dataType,onAjaxSuccess,onAjaxError,onAjaxComplete,cache){\\n\\tvar ajax_obj = new Object();\\n\\tajax_obj.url = url;\\n\\tajax_obj.type = type;\\n\\tajax_obj.dataType = dataType;\\n\\tajax_obj.onSuccess = onAjaxSuccess;\\n\\tajax_obj.onError = onAjaxError;\\n\\tajax_obj.onComplete = onAjaxComplete;\\n\\tajax_obj.cache = cache;\\n\\treturn ajax_obj;\\n}\",\n \"function createAJAXObj() {\\n\\t\\t try {\\n\\t\\t return new XMLHttpRequest();\\n\\t\\t } catch (er1) {\\n\\t\\t try {\\n\\t\\t return new ActiveXObject(\\\"Msxml3.XMLHTTP\\\");\\n\\t\\t } catch (er2) {\\n\\t\\t try {\\n\\t\\t return new ActiveXObject(\\\"Msxml2.XMLHTTP.6.0\\\");\\n\\t\\t } catch (er3) {\\n\\t\\t try {\\n\\t\\t return new ActiveXObject(\\\"Msxml2.XMLHTTP.3.0\\\");\\n\\t\\t } catch (er4) {\\n\\t\\t try {\\n\\t\\t return new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n\\t\\t } catch (er5) {\\n\\t\\t try {\\n\\t\\t return new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t\\t } catch (er6) {\\n\\t\\t return false;\\n\\t\\t }\\n\\t\\t }\\n\\t\\t }\\n\\t\\t }\\n\\t\\t }\\n\\t\\t }\\n\\t\\t}\",\n \"function __ajax(url, data){\\nvar ajax= $.ajax({\\n \\\"method\\\":\\\"POST\\\",\\n \\\"url\\\":url,\\n \\\"data\\\":data\\n })\\n return ajax\\n}\",\n \"constructor() {\\n this.config = Config.ajax;\\n this.xhr;\\n this.Serialize;\\n }\",\n \"function ajaxObj( meth, url ) {\\n\\tvar x = new XMLHttpRequest();\\n\\tx.open( meth, url, true );\\n\\tx.setRequestHeader(\\\"Content-type\\\", \\\"application/x-www-form-urlencoded\\\");\\n\\treturn x;\\n}\",\n \"function AjaxCreate(sDataType) \\n {\\n var xhr;\\n \\n\\t try \\n\\t {\\n\\t if (window.XMLHttpRequest) \\n\\t { \\n\\t\\t xhr = new XMLHttpRequest();\\n\\t } \\n\\t else if (window.ActiveXObject) \\n\\t { \\n\\t\\t xhr = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t }\\n\\t }\\n\\t catch(e) \\n\\t {\\n\\t var sMsg = \\\"Error: Unable to create data access object for \\\" + sDataType + \\\" data. \\\\n\\\\n\\\";\\n\\t sMsg += \\\"Error Details: \\\" + e.message; \\n\\t\\t alert(sMsg);\\n\\t }\\n\\t \\n\\t //Make sure the XHR object is really created.\\n\\t if (!xhr)\\n\\t {\\n\\t var sMsg = \\\"Error: Unable to create data access object for \\\" + sDataType + \\\" data. \\\\n\\\\n\\\";\\n\\t sMsg += \\\"Error Details: Unknown error.\\\"; \\n\\t\\t alert(sMsg);\\n\\t } \\n\\t \\n\\t return xhr; \\n }\",\n \"function Ajax(title1, title2, text1, text2, id, url) {\\n\\tthis.title1 = title1;\\n\\tthis.title2 = title2;\\n\\tthis.text1 = text1;\\n\\tthis.text2 = text2;\\n\\tthis.id = id;\\n\\tthis.url = url;\\n}\",\n \"function AjaxCall() {\\n\\tthis.req = null;\\n\\tthis.url = null;\\n\\tthis.divID = null;\\n\\tthis.method = 'POST';\\n\\tthis.async = true;\\n\\tthis.queryString = null;\\n\\tthis.visible= false;\\n\\t\\n\\tthis.initReq = function (){\\n\\t\\tvar self = this;\\n\\t\\tthis.req.open(this.method,this.url,this.async);\\n\\t\\tthis.req.onreadystatechange= function() {\\n\\t\\t\\tvar obj=document.getElementById(self.divID);\\n\\t\\t\\tif(self.req.readyState == 4){\\t\\n\\t\\t\\t\\tif(self.req.status == 200){\\n\\t\\t\\t\\t\\tobj.innerHTML=self.req.responseText;\\n\\t\\t\\t\\t\\tif (self.visible) obj.style.visibility=\\\"visible\\\";\\n\\t\\t\\t\\t\\tself.onresult();\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t//alert(self.req.status+\\\"A problem occurred with communicating between the XMLHttpRequest object and the server program.\\\");\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tthis.req.setRequestHeader(\\\"Content-Type\\\",\\\"application/x-www-form-urlencoded; charset=UTF-8\\\");\\n\\t\\tthis.req.send(this.queryString);\\n\\t}\\n\\t\\n\\tthis.httpRequest = function (){\\n\\t\\t//Mozilla-based browsers\\n\\t\\tif(window.XMLHttpRequest){\\n\\t\\t\\tthis.req = new XMLHttpRequest();\\n\\t\\t} else if (window.ActiveXObject){\\n\\t\\t\\tthis.req=new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n\\t\\t\\tif (!this.req){\\n\\t\\t\\t\\tthis.req=new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t//the request could still be null if neither ActiveXObject\\n\\t\\t//initializations succeeded\\n\\t\\tif(this.req){\\n\\t\\t\\tthis.initReq();\\n\\t\\t} else {\\n\\t\\t\\t//alert(\\\"Your browser does not permit the use of all \\\"+\\\"of this application's features!\\\");\\n\\t\\t}\\n\\t}\\n\\t\\n\\tthis.onresult = function (){\\n\\t\\t//Do something after completion here.\\n\\t}\\n}\",\n \"function makeHttpObject() {\\r\\n\\t\\ttry {return new XMLHttpRequest();}\\r\\n\\t\\tcatch (erreur) {}\\r\\n\\t\\ttry {return new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");}\\r\\n\\t\\tcatch (erreur) {}\\r\\n\\t\\ttry {return new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");}\\r\\n\\t\\tcatch (erreur) {}\\r\\n\\r\\n\\t\\tthrow new Error(\\\"La création de l'objet pour les requêtes HTTP n'a pas pu avoir lieu.\\\");\\r\\n\\t}\",\n \"function createXmlHttpRequestObject() {\\n\\t\\t// will store the reference to the XMLHttpRequest object\\n\\t\\tvar xmlHttp;\\n\\t\\t// if running Internet Explorer\\n\\t\\tif(window.ActiveXObject) {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\txmlHttp = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t\\t\\t} catch (e) {\\n\\t\\t\\t\\txmlHttp = false;\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\t// if running Mozilla or other browsers\\n\\t\\t\\ttry {\\n\\t\\t\\t\\txmlHttp = new XMLHttpRequest();\\n\\t\\t\\t} catch (e) {\\n\\t\\t\\t\\txmlHttp = false;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t// return the created object or display an error message\\n\\t\\tif (!xmlHttp)\\n\\t\\t\\talert(\\\"Error creating the XMLHttpRequest object.\\\");\\n\\t\\telse\\n\\t\\t\\treturn xmlHttp;\\n\\t}\",\n \"function createInstance()\\n{\\n var xhttp = null;\\n if(window.XMLHttpRequest) {\\n xhttp = new XMLHttpRequest();\\n }\\n else if (window.ActiveXObject) {\\n try {\\n xhttp = new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n } catch (e) {\\n try {\\n xhttp = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n } catch (e) {\\n alert(\\\"XHR not created\\\");\\n }\\n }\\n }\\n return xhttp;\\n}\",\n \"function createXmlHttpRequestObject() \\r\\n{\\t\\r\\n // guardar la referencia al objeto XMLHttpRequest \\r\\n var xmlHttp;\\r\\n \\r\\ntry\\r\\n {\\r\\n // Firefox, Opera 8.0+, Safari\\r\\n xmlHttp=new XMLHttpRequest();\\r\\n }\\r\\ncatch (e)\\r\\n {\\r\\n // Internet Explorer\\r\\n try\\r\\n {\\r\\n xmlHttp=new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\r\\n }\\r\\n catch (e)\\r\\n {\\r\\n xmlHttp=new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\r\\n }\\r\\n }\\r\\nreturn xmlHttp;\\r\\n\\r\\n \\r\\n}\",\n \"function createRequest(url, data, type, onFail, onSucceed, isAsync) {\\n isAsync = isAsync || false;\\n return $.ajax({\\n async: isAsync,\\n url: url,\\n data: data,\\n type: type,\\n success: onSucceed,\\n error: onFail,\\n });\\n}\",\n \"function Ajax(__constructor) {\\r\\n if (Params.env.isFirefox) return GM_xmlhttpRequest(__constructor);\\r\\n else return new XHR(__constructor);\\r\\n}\",\n \"function getObjetAjax(url_request) {\\r\\n\\t\\tvar xhr = new XMLHttpRequest();\\r\\n\\t //CREATION DE L'APPEL SYNCHRONE\\r\\n\\t xhr.open(\\\"GET\\\", url_request, false);\\r\\n\\t log(\\\"url called ajax : \\\" + url_request);\\r\\n\\t //ENVOIE DE LA REQUETE\\r\\n\\t xhr.send(null);\\r\\n\\t //TRAITEMENT DES DONNEE\\r\\n\\t var retour = new Object();\\r\\n\\t retour.reponse = JSON.parse(xhr.responseText);\\r\\n\\t log(\\\"reponse : \\\" + retour.reponse);\\r\\n\\t retour.status = xhr.status;\\r\\n\\t return retour;\\r\\n\\t}\",\n \"function createHttpRequestObject() {\\n\\tvar xmlHttp;\\n\\n\\t/*Code Source: Mozilla.org - Getting Started with Ajax*/\\t\\n\\tif(window.ActiveXObject) {\\n\\t\\ttry {\\n\\t\\t\\txmlHttp = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t\\t}\\n\\t\\tcatch(e) {\\n\\t\\t\\txmlHttp = false;\\n\\t\\t}\\t\\t\\t\\n\\t} \\n\\telse {\\n\\t\\ttry {\\n\\t\\t\\txmlHttp = new XMLHttpRequest(); \\n\\t\\t} catch(e) {\\n\\t\\t\\txmlHttp = false; \\n\\t\\t}\\n\\t}\\n\\t\\n\\tif(!xmlHttp)\\n\\t\\talert(\\\"Could not create XML Request\\\");\\n\\telse {\\n\\t\\treturn xmlHttp; \\n\\t}\\n}\",\n \"function createHttpRequestObject() {\\n\\tvar xmlHttp;\\n\\n\\t/*Code Source: Mozilla.org - Getting Started with Ajax*/\\t\\n\\tif(window.ActiveXObject) {\\n\\t\\ttry {\\n\\t\\t\\txmlHttp = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t\\t}\\n\\t\\tcatch(e) {\\n\\t\\t\\txmlHttp = false;\\n\\t\\t}\\t\\t\\t\\n\\t} \\n\\telse {\\n\\t\\ttry {\\n\\t\\t\\txmlHttp = new XMLHttpRequest(); \\n\\t\\t} catch(e) {\\n\\t\\t\\txmlHttp = false; \\n\\t\\t}\\n\\t}\\n\\t\\n\\tif(!xmlHttp)\\n\\t\\talert(\\\"Could not create XML Request\\\");\\n\\telse {\\n\\t\\treturn xmlHttp; \\n\\t}\\n}\",\n \"function getRequestObject() {\\n if (window.XMLHttpRequest) {\\n return (new XMLHttpRequest);\\n } else if (window.ActiveXObject) {\\n // for verry old IE browser (optional)\\n return (new ActiveXObject(\\\"Microsoft.XMLHTTP\\\"));\\n } else {\\n global.alert(\\\"Ajax is not supported\\\");\\n return (null);\\n }\\n }\",\n \"constructor () {\\n this.xhr = new XMLHttpRequest(); //(AJAX ISLEMINI BASLATMAK ICIN XHR xhr objemizi olusturduk\\n }\",\n \"function getAjaxObj(){ \\r\\n\\tvar ajaxObject; //Agregamos la variable llamada objeto\\r\\n\\t\\r\\n\\t//revisamos si no esta definido el objeto nativamente(navegadores tipo mozilla)\\r\\n\\tif (typeof XMLHttpRequest == \\\"undefined\\\" ){ \\r\\n\\t\\t//Ahora revisamos si el motor es mayor o igual a MSIE 5.0 (mayor que microsoft internet explorer 5.0)\\r\\n\\t\\tif(navigator.userAgent.indexOf(\\\"MSIE 5\\\") >= 0) { \\r\\n\\t\\t\\t// Si es así creamos un control activeX apartir de un objeto ActiveXObject(\\\"Microsoft.XMLHTTP\\\")\\r\\n\\t\\t\\tajaxObject = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\r\\n\\t\\t} else {\\r\\n\\t\\t\\t//si no , o si es menor a MSIE 5.0 creamos otro control activeX\\r\\n\\t\\t\\t// apartir de un objeto ActiveXObject(\\\"Msxml2.XMLHTTP\\\")\\r\\n\\t\\t\\tajaxObject = new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\r\\n\\t\\t}\\r\\n\\t} else {\\r\\n\\t\\t// en cambio si el objeto estaba definido nativamente, solo lo instanciamos\\r\\n\\t\\t//Instancia del objeto XMLHttpRequest\\r\\n\\t\\tajaxObject=new XMLHttpRequest();\\r\\n\\t}\\r\\n\\t\\r\\n\\t// Y retornamos el objeto creado\\r\\n\\treturn ajaxObject;\\r\\n}\",\n \"function createRequestObject(){\\n if (window.XMLHttpRequest) \\n {\\n g.request = new XMLHttpRequest();\\n } \\n else \\n {\\n g.request = new ActiveXObject();//\\\"Microsoft.XMLHTTP\\\");\\n }\\n}\",\n \"function createXmlHttpRequestObject() \\n{\\n\\tvar xmlHttp;\\n\\n\\tif(window.ActiveXObject) //If user is using internet Explorer\\n\\t{\\n\\t\\ttry\\n\\t\\t{\\n\\t\\t\\txmlHttp = new ActiveXObject(\\\"Microsoft.xmlHttp\\\");\\n\\t\\t}\\n\\t\\tcatch(e)\\n\\t\\t{\\n\\t\\t\\txmlHttp=false;\\n\\t\\t}\\n\\t}\\n\\telse //If user is NOT using internet Explorer but any other browser\\n\\t{\\n\\t\\ttry\\n\\t\\t{\\n\\t\\t\\txmlHttp = new XMLHttpRequest();\\n\\t\\t}\\n\\t\\tcatch(e)\\n\\t\\t{\\n\\t\\t\\txmlHttp=false;\\n\\t\\t}\\n\\t}\\n\\n\\tif(!xmlHttp) //If Object can not be initialized.\\n\\t\\t{\\n\\t\\t\\talert(\\\"Can not create object\\\");\\n\\t\\t}\\n\\telse\\n\\t{\\n\\t\\treturn xmlHttp;\\n\\t}\\n}\",\n \"function createRequestObject(){\\nvar req;\\nif(window.XMLHttpRequest){\\n\\nreq = new XMLHttpRequest();\\n}\\nelse if(window.ActiveXObject){\\n//For IE 5+\\nreq = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n}\\nelse{\\n}\\n\\nreturn req;\\n}\",\n \"function getRequestObject ()\\n {\\n var request = null;\\n try \\n { // Firefox, Opera 8.0+, Safari\\n request=new XMLHttpRequest();\\n }\\n catch (e)\\n {// Internet Explorer\\n try\\n {\\n request=new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n }\\n catch (e)\\n {\\n try\\n {\\n request=new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n }\\n catch (e)\\n {\\n window.status = \\\"Browser does not support Ajax!!\\\";\\n return false;\\n }\\n }\\n }\\n return request;\\n }\",\n \"function getRequestObject() {\\n if (window.XMLHttpRequest) {\\n return (new XMLHttpRequest());\\n } else if (window.ActiveXObject) {\\n // For very old IE browsers (optional)\\n return (new ActiveXObject(\\\"Microsoft.XMLHTTP\\\"));\\n } else {\\n global.alert(\\\"Ajax is not supported!\\\");\\n return (null);\\n }\\n }\",\n \"function new_xhr(){\\r\\n\\tvar xhr_object = null;\\r\\n\\tif(window.XMLHttpRequest) // Firefox et autres\\r\\n\\t xhr_object = new XMLHttpRequest();\\r\\n\\telse if(window.ActiveXObject){ // Internet Explorer\\r\\n\\t try {\\r\\n xhr_object = new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\r\\n } catch (e) {\\r\\n xhr_object = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\r\\n }\\r\\n\\t}\\r\\n\\telse { // XMLHttpRequest non supporté par le navigateur\\r\\n\\t alert(\\\"Votre navigateur ne supporte pas les objets XMLHTTPRequest...\\\");\\r\\n\\t xhr_object = false;\\r\\n\\t}\\r\\n\\treturn xhr_object;\\r\\n}\",\n \"function createRequestObject(){\\n\\tvar request_o; //declare the variable to hold the object.\\n\\tvar browser = navigator.appName; //find the browser name\\n\\tif(browser == \\\"Microsoft Internet Explorer\\\"){\\n\\t\\t/* Create the object using MSIE's method */\\n\\t\\trequest_o = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t}else{\\n\\t\\t/* Create the object using other browser's method */\\n\\t\\trequest_o = new XMLHttpRequest();\\n\\t}\\n\\treturn request_o; //return the object\\n}\",\n \"function getRequestObject() {\\n \\n httpRequest = new XMLHttpRequest();\\n return httpRequest;\\n}\",\n \"function createXmlObject() {\\n\\t\\tvar xmlhttp = false;\\n\\n\\t\\t// create object in mozilla, safari, Internet Explorer version >= 7\\n\\t\\ttry{xmlhttp = new XMLHttpRequest(); xmlhttp.timeout = 36000000;} // time in milliseconds\\n\\t\\tcatch (e) {\\n\\t\\t\\t// create object in Internet Explorer version >= 5\\n\\t\\t\\ttry {xmlhttp = new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");}\\n\\t\\t\\tcatch (e) {\\n\\t\\t\\t\\t// create object in Internet Explorer\\t\\n\\t\\t\\t\\ttry {xmlhttp = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");}\\n\\t\\t\\t\\tcatch (e) {\\n\\t\\t\\t\\t\\t// create object in Ice Browser\\n\\t\\t\\t\\t\\ttry {xmlhttp = window.createRequest();}\\n\\t\\t\\t\\t\\tcatch(e){}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\treturn xmlhttp;\\n\\t}\",\n \"function createRequestObject() {\\n var tmpXmlHttpObject;\\n \\n // firefox, chrome, Opera, Safari, IE7+,, would use this method ...\\n tmpXmlHttpObject = new XMLHttpRequest();\\n\\t\\n return tmpXmlHttpObject;\\n\\n}// end of function createRequestObject() \",\n \"function createRequest() {\\n var xHRObject = false;\\n if (window.XMLHttpRequest)\\n xHRObject = new XMLHttpRequest();\\n else if (window.ActiveXObject)\\n xHRObject = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\n return xHRObject;\\n}\",\n \"function ajax_call(ajax_obj){\\n\\t$.ajax({\\n\\t\\turl: ajax_obj.url,\\n\\t\\ttype: ajax_obj.type,\\n\\t\\tdata: ajax_obj.data,\\n\\t\\tdataType: ajax_obj.dataType,\\n\\t\\tsuccess: ajax_obj.onSuccess,\\n\\t\\terror: ajax_obj.onError,\\n\\t\\tcomplete: ajax_obj.onComplete,\\n\\t\\tcache:ajax_obj.cache,\\n\\t});\\n}\",\n \"function createXmlHttpRequestObject()\\n{\\n\\t// add your code here to create a XMLHttpRequest object compatible to most browsers\\n var xmlhttp;\\n \\n if (window.XMLHttpRequest) {\\n // code for modern browsers\\n xmlhttp = new XMLHttpRequest();\\n } else {\\n // code for old IE browsers\\n xmlhttp = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n }\\n \\n return xmlhttp;\\n\\t\\n}\",\n \"function AjaxClient(){\\n this.client = null;\\n try{\\n this.client = new XMLHttpRequest();\\n } catch (e) {\\n try {\\n this.client = new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n } catch (e) {\\n try {\\n\\t\\t\\t\\tthis.client = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t\\t\\t} catch (e) {\\n\\t\\t\\t\\tthis.client = null;\\n\\t\\t\\t}\\n }\\n }\\n\\n this.request = function(method, url, data, responseHandler){\\n if(!this.client){\\n window.alert(\\\"AJAX required, but not supported by your browser. You can no longer use this site.\\\");\\n return ;\\n }\\n\\n if(data){\\n // encode both for get and for post requests\\n data = JSONtoURL(data);\\n }\\n if (method == \\\"GET\\\"){\\n // before opening connection\\n // we must know the complete url\\n url += \\\"?\\\" + (data ? data : \\\"\\\");\\n console.log(\\\"GET \\\" + url);\\n }\\n this.client.open(method, url, true);\\n if (method == \\\"POST\\\") {\\n // we can only set headers after\\n // having opened the connection\\n this.client.setRequestHeader(\\n 'Content-Type',\\n // php $_POST can only be used with :\\n // application/x-www-form-urlencoded\\n // multipart/form-data\\n 'application/x-www-form-urlencoded');\\n }\\n var thatclient = this.client;\\n this.client.onreadystatechange = function(){\\n if(thatclient.readyState == 4){\\n console.log(thatclient);\\n var response = JSON.parse(thatclient.responseText);\\n responseHandler(response);\\n }\\n }\\n this.client.send(data);\\n }\\n\\n this.get = function (url, responseHandler) {\\n return this.request(\\\"GET\\\", url, null, responseHandler);\\n }\\n\\n this.post = function (url, data, responseHandler) {\\n return this.request(\\\"POST\\\", url, data, responseHandler);\\n }\\n}\",\n \"function makeRequest(obj, url) {\\n var http_request = false;\\n if (window.XMLHttpRequest && !(window.ActiveXObject)) { // Mozilla, Safari,...\\n http_request = new XMLHttpRequest();\\n if (http_request.overrideMimeType) {\\n http_request.overrideMimeType('text/xml');\\n }\\n } else if (window.ActiveXObject) { // IE\\n try {\\n http_request = new ActiveXObject('Msxml2.XMLHTTP');\\n } catch (e1) {\\n try {\\n http_request = new ActiveXObject('Microsoft.XMLHTTP');\\n } catch (e2) { }\\n }\\n }\\n if (!http_request) {\\n alert('Giving up :( Cannot create an XMLHTTP instance');\\n return false;\\n }\\n http_request.onreadystatechange = function () {\\n insertRequest(obj, http_request);\\n };\\n http_request.open('GET', url, true);\\n http_request.send(null);\\n}\",\n \"function getRequestObject() {\\n if (window.XMLHttpRequest) {\\n return (new XMLHttpRequest());\\n } else if (window.ActiveXObject) {\\n // For very old IE browsers (optional)\\n return (new ActiveXObject(\\\"Microsoft.XMLHTTP\\\"));\\n } else {\\n alert(\\\"Ajax is not supported!\\\");\\n return (null);\\n }\\n}\",\n \"static create(obj) {\\n //spinner(true);\\n\\n let handle = $(obj).attr(\\\"referencia\\\");\\n let target = $(obj).attr(\\\"target\\\");\\n let single = parseInt($(obj).attr(\\\"single\\\"));\\n\\n this.criaModal(handle, target);\\n\\n if(!(single === 1 && $(obj).find(\\\".galeria-overlay\\\").length > 0)){\\n this.lista(obj);\\n }\\n }\",\n \"request() {\\n var self = this;\\n var elements = Editable.getAllEditableElement();\\n this.Serialize = new Serialize(elements);\\n\\n var method = self.config.method;\\n this.xhr = new XMLHttpRequest();\\n\\n // open request\\n if (method == 'GET') {\\n this.xhr.open(method, self.config.url + '?' + this.Serialize.GET(), true);\\n this.addHeader([\\\"Content-Type\\\", \\\"application/x-www-form-urlencoded\\\"]);\\n } else if (method == 'POST') {\\n this.xhr.open(method, self.config.url, true);\\n this.addHeader([\\\"Content-Type\\\", \\\"multipart/form-data\\\"]);\\n }\\n\\n // headers\\n this.header();\\n\\n // additional params\\n this.param();\\n\\n // send\\n if (method == 'GET') {\\n this.xhr.send();\\n } else if (method == 'POST') {\\n this.xhr.send(this.Serialize.POST());\\n }\\n\\n return this;\\n }\",\n \"function createRequest() {\\n var xhr = false;\\n if (window.XMLHttpRequest) {\\n xhr = new XMLHttpRequest();\\n }\\n else if (window.ActiveXObject) {\\n xhr = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n }\\n return xhr;\\n} // end function createRequest()\",\n \"function createXMLHTTPRequest() {\\n\\t\\t\\tvar requester = false;\\n\\t\\t\\ttry {\\n\\t\\t\\t\\trequester = new impl(args);\\n\\t\\t\\t} catch (e) {}\\n\\n\\t\\t\\trequester.onreadystatechange = function () {\\n\\t\\t\\t\\tif (this.readyState != 4) return;\\n\\t\\t\\t\\tif (this.status > 399) {\\n\\t\\t\\t\\t\\tvar errObj = {'responseText':\\\"error:\\\" + this.status + ' ' + this.statusText};\\n\\t\\t\\t\\t\\tif(console) {\\n\\t\\t\\t\\t\\t\\tconsole.log(errObj);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tresponse(this);\\n\\t\\t\\t\\t}\\n\\t\\t\\t};\\n\\t\\t\\treturn requester;\\n\\t\\t}\",\n \"function makeRequestObject() {\\r\\n\\t\\t\\t/*This function forks for IE and returns the XMLHttpRequest object.*/\\r\\n\\t\\t\\tif (window.XMLHttpRequest) {\\r\\n\\t\\t\\t\\treturn new XMLHttpRequest();\\r\\n\\t\\t\\t} else if (window.ActiveXObject) {\\r\\n\\t\\t\\t\\treturn new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\",\n \"function createJQueryRestAdapter (){\\n // use jQuery to contact the Jive server\\n\\n var ajaxPath = \\\"\\\"; // value replaced when template is rendered\\n var osapi = $r(\\\"osapi\\\");\\n\\n var dataFilter = function(data, type) {\\n return (type === 'json' && data) ? jQuery.trim(data.replace(/^throw [^;]*;/, '')) : data;\\n };\\n\\n /**\\n * @param options.method {String} one of \\\"GET\\\", \\\"PUT\\\", \\\"POST\\\" or \\\"DELETE\\\"\\n * @param options.endpoint {String} the short REST path, e.g.: \\\"users/1234?\\\"\\n * @param options.queryParams {Object} map of query params to their values\\n * @param options.body {String} body content to send with PUT or POST\\n * @constructor\\n */\\n osapi.Request = function(options) {\\n this.options = {\\n method: options.method,\\n endpoint: options.endpoint,\\n ext: options.ext,\\n v: options.v\\n };\\n if (isObjectWithProperties(options.queryParams)) {\\n this.options.queryParams = options.queryParams\\n }\\n if (options.body != null) {\\n this.options.body = options.body\\n }\\n };\\n osapi.Request.prototype.execute = function(callback) {\\n executeImpl.call(this, null, callback);\\n };\\n osapi.Request.prototype.executeAs = function(personURI, callback) {\\n executeImpl.call(this, \\\"uri \\\" + personURI, callback);\\n };\\n function executeImpl(runAs, callback) {\\n callback = callback || function(){};\\n var endpoint = this.options.endpoint + buildQueryParams(this.options.queryParams);\\n if (endpoint.charAt(0) == '/') {\\n endpoint = endpoint.substring(1);\\n }\\n var path = this.options.ext\\n ? \\\"ext/\\\" + this.options.ext + \\\"/\\\" + (this.options.version || this.options.v)\\n : \\\"v3\\\";\\n var url = [ajaxPath, \\\"api/core\\\", path, endpoint].join(\\\"/\\\");\\n jQuery.ajax({\\n url: url,\\n type: this.options.method,\\n contentType: this.options.body == null ? $u : \\\"application/json; charset=utf-8\\\",\\n data: this.options.body == null ? $u : this.options.body,\\n dataType: \\\"json\\\",\\n dataFilter: dataFilter,\\n beforeSend: function(req) {\\n if (runAs != null) {\\n req.setRequestHeader(\\\"X-Jive-Run-As\\\", runAs);\\n }\\n },\\n success: function(data, textStatus, jqXHR) {\\n if(data === null) {\\n data = { status : jqXHR.status };\\n }\\n callback(interceptData(data));\\n },\\n error: function(xhr) {\\n callback(buildErr(500, xhr.status, \\\"An error occurred while contacting the server\\\"));\\n }\\n });\\n }\\n\\n /**\\n * Object that may contain several Request objects to be executed in a\\n * single REST call.\\n * @constructor\\n */\\n osapi.BatchRequest = function() {\\n this._requests = [];\\n };\\n osapi.BatchRequest.prototype.add = function(key, request) {\\n if (this._requests == null) {\\n throw \\\"BatchRequest is no longer valid\\\";\\n }\\n this._requests.push({\\n key: key,\\n request: request.options\\n });\\n };\\n osapi.BatchRequest.prototype.execute = function(callback) {\\n executeBatchImpl.call(this, null, callback);\\n };\\n osapi.BatchRequest.prototype.executeAs = function(personURI, callback) {\\n executeBatchImpl.call(this, \\\"uri \\\" + personURI, callback);\\n };\\n function executeBatchImpl(runAs, callback) {\\n if (this._requests == null) {\\n throw \\\"BatchRequest is no longer valid\\\";\\n }\\n var req = this._requests;\\n this._requests = null;\\n callback = callback || function(){};\\n if (req.length == 0) {\\n callback({});\\n return;\\n }\\n var url = [ajaxPath, \\\"api/core/v3/executeBatch\\\"].join(\\\"/\\\");\\n jQuery.ajax({\\n url: url,\\n type: \\\"POST\\\",\\n contentType: \\\"application/json; charset=utf-8\\\",\\n data: JSON.stringify(req),\\n dataType: \\\"json\\\",\\n dataFilter: dataFilter,\\n beforeSend: function(req) {\\n if (runAs != null) {\\n req.setRequestHeader(\\\"X-Jive-Run-As\\\", runAs);\\n }\\n },\\n success: function(res) {\\n var data = {}, i;\\n for (i = 0; i < res.length; i++) {\\n if (res[i].data) {\\n data[res[i].id] = interceptData(res[i].data);\\n } else if (res[i].error) {\\n data[res[i].id] = buildErr(res[i].error.code || 500, res[i].status || 500, res[i].error.message);\\n }\\n }\\n for (i = 0; i < req.length; i++) {\\n if (!(data.hasOwnProperty(req[i].id) && data[req[i].id])) {\\n data[req[i].id] = buildErr(500, 500, \\\"No data was returned from the server\\\");\\n }\\n }\\n callback(data);\\n },\\n error: function(xhr) {\\n var res = {};\\n try {\\n res = JSON.parse(xhr.responseText) || {};\\n } catch (e) { /* don't care */ }\\n var data = {};\\n var err = buildErr(res.code || 500, xhr.status, res.message || \\\"An error occurred while contacting the server\\\");\\n for (var i = 0; i < req.length; i++) {\\n data[req[i].key] = err;\\n }\\n callback(data);\\n }\\n });\\n }\\n\\n /**\\n * Creates a new, empty BatchRequest\\n * @return {osapi.BatchRequest}\\n */\\n osapi.newBatch = function() {\\n return new osapi.BatchRequest();\\n };\\n\\n function buildErr(code, status, msg) {\\n return {\\n error: {\\n code: code,\\n status: status,\\n message: msg\\n }\\n };\\n }\\n\\n function buildRequest(method, hasBody, options) {\\n var o = {\\n method: method,\\n endpoint: options.href,\\n queryParams: options.params\\n };\\n if (hasBody) {\\n o.body = options.body == null ? \\\"\\\" : JSON.stringify(options.body);\\n }\\n if (options.ext) {\\n o.ext = options.ext;\\n o.v = options.v;\\n }\\n return new osapi.Request(o);\\n }\\n\\n $r(\\\"osapi.jive.core\\\", function() { return {\\n \\\"get\\\": function(options) {\\n return buildRequest(\\\"GET\\\", false, options);\\n },\\n \\\"post\\\": function(options) {\\n return buildRequest(\\\"POST\\\", true, options);\\n },\\n \\\"put\\\": function(options) {\\n return buildRequest(\\\"PUT\\\", true, options);\\n },\\n \\\"delete\\\": function(options) {\\n return buildRequest(\\\"DELETE\\\", false, options);\\n }\\n }});\\n\\n osapi.jive.core[\\\"get\\\"]._intercepted = true;\\n osapi.jive.core[\\\"put\\\"]._intercepted = true;\\n osapi.jive.core[\\\"post\\\"]._intercepted = true;\\n osapi.jive.core[\\\"delete\\\"]._intercepted = true;\\n\\n initIntercept = bootstrapRest;\\n }\",\n \"function createXmlHttpRequestObject()\\n{\\n\\tvar xmlHttp;\\n\\n\\ttry{\\n\\t\\t/*creation of xmlHttp object by native browsers*/\\n\\t\\txmlHttp = new XMLHttpRequest();\\n\\t}\\n\\tcatch(e)\\n\\t{\\n\\t\\ttry{\\n\\t\\t\\t/*creation of xmlHttp object by explorer*/\\n\\t\\t\\txmlHttp = new ActiveXObject(\\\"Microsoft.XMLHttp\\\");\\n\\t\\t}\\n\\t\\tcatch(e)\\n\\t\\t{\\n\\t\\t\\t//ignore\\n\\t\\t}\\n\\t}\\n\\tif (!xmlHttp)\\n\\t{\\n\\t\\talert(\\\"Error creating an xmlHttpRequest object!\\\");\\n\\t}\\n\\telse\\n\\t\\treturn xmlHttp;\\n}\",\n \"function __ajax(url, data){\\n var ajax = $.ajax({\\n \\\"method\\\": \\\"POST\\\",\\n \\\"url\\\": url,\\n \\\"data\\\": data\\n })\\n return ajax;\\n}\",\n \"function Pvl_XmlHtReq_CreateObj(){\\n try{\\n return new XMLHttpRequest();\\n }catch(e){}\\n try{\\n return new ActiveXObject('MSXML2.XMLHTTP.6.0');\\n }catch(e){}\\n try{\\n return new ActiveXObject('MSXML2.XMLHTTP.3.0');\\n }catch(e){}\\n try{\\n return new ActiveXObject('MSXML2.XMLHTTP');\\n }catch(e){}\\n\\n return null;\\n}\",\n \"function getRequestObject() {\\n\\tif (window.XMLHttpRequest) {\\n \\treturn (new XMLHttpRequest());\\n \\t} \\n \\telse if (window.ActiveXObject) {\\n \\t// for very old IE browsers (optional)\\n \\treturn (new ActiveXObject(\\\"Microsoft.XMLHTTP\\\"));\\n \\t} else {\\n\\t\\talert(\\\"Ajax is not supported!\\\");\\n \\treturn(null); \\n \\t}\\n}\",\n \"function AjaxObject(theurl, params){\\n this.xmlhttp = fetchXmlObject(); //xml http object\\n this.params = params;\\n\\tthis.url = theurl;\\n\\t\\n var that = this;\\n \\n function fetchXmlObject() {\\n\\t\\tvar temp=GetXmlHttpObject();\\n \\t//firebug.watchXHR(xmlhttp);\\n\\t\\tif(temp==null) {\\n\\t\\t\\talert (\\\"Your browser does not support XMLHTTP!\\\");\\n\\t\\t}\\n\\t\\treturn temp;\\n\\t}\\n\\n\\tfunction GetXmlHttpObject() {\\n\\t\\tif (window.XMLHttpRequest) {\\n\\t\\t\\t// code for IE7+, Firefox, Chrome, Opera, Safari\\n\\t\\t\\treturn new XMLHttpRequest();\\n\\t\\t}\\n\\t\\tif (window.ActiveXObject) {\\n\\t\\t\\t// code for IE6, IE5\\n\\t\\t\\treturn new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t\\t}\\n\\t\\treturn null;\\n\\t}\\n\\t\\n\\tfunction fieldDisplay(element) {\\n\\t\\tif (that.serverReturnedAResponse()) {\\n\\t\\t\\t//changeLabelText(element, that.xmlhttp.responseText);\\n\\t\\t}\\n\\t}\\n\\t\\n\\tthis.sendToPHP = function(cb) {\\n\\t\\tif(that.xmlhttp==null) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\tthat.xmlhttp.onreadystatechange = cb;\\n\\t\\tthat.xmlhttp.open(\\\"POST\\\",that.url,true);\\n\\t\\t//Send the proper header information along with the request\\n\\t\\tthat.xmlhttp.setRequestHeader(\\\"Content-type\\\", \\\"application/x-www-form-urlencoded\\\");\\n\\t\\tthat.xmlhttp.send(that.params);\\n\\t}\\n\\t\\n\\tthis.displayQuestion = function() {\\n\\t\\treturn function () {\\n\\t\\t\\tif(that.serverReturnedAResponse()) {\\n\\t\\t\\t\\tvar responseFields = that.responseText().split('|');\\n\\t\\t\\t\\tvVanObj.prepareNextQuestion(responseFields);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\t\\t\\n\\tthis.displayUser = function(){\\n\\t\\treturn function(){\\n\\t\\t\\tif(that.serverReturnedAResponse()) {\\n\\t\\t\\t\\twindow.userid = that.responseText();\\n\\t\\t\\t\\tcreateSessionJS();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\t\\t\\n\\tthis.displaySession = function(){\\n\\t\\treturn function(){\\n\\t\\t\\tif(that.serverReturnedAResponse()) {\\n\\t\\t\\t\\tlocalStorage.currentsid = window.currentsid = that.responseText();\\n\\t\\t\\t\\taddNavActionJS(\\\"begin\\\", localStorage.currentsid);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\t\\t\\n\\tthis.displayHallOfFame = function(){\\n\\t\\treturn function(){\\n\\t\\t\\t//fieldDisplay(\\\"sessionidtxt\\\");\\n\\t\\t\\tif (that.serverReturnedAResponse()) {\\n\\t\\t\\t\\t$(\\\"#hallheader\\\").hide();\\n\\t\\t\\t\\tvar fields = that.responseText().split('|');\\n\\t\\t\\t\\tvar nFamous = fields.splice(0, 1);\\n\\t\\t\\t\\tfor(var i = 0; i < nFamous; i++) {\\n\\t\\t\\t\\t\\tdisplayFamer(fields, i);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\t\\n\\t\\t\\n\\tthis.displayUID = function(){\\n\\t\\treturn function(){\\n\\t\\t\\t//fieldDisplay(\\\"sessionidtxt\\\");\\n\\t\\t\\tif (that.serverReturnedAResponse()) {\\n\\t\\t\\t\\twindow.userid = that.responseText();\\n\\t\\t\\t\\tsetLongCookie(\\\"userid\\\", that.responseText());\\n\\t\\t if (window.userid == -1){\\n\\t\\t addUserJS(userfname, userlname);\\n\\t\\t } else {\\n\\t\\t createSessionJS();\\n\\t\\t }\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\t\\n\\tthis.destroyUserCookie = function() {\\n\\t\\treturn function() {\\n\\t\\t\\tif(that.serverReturnedAResponse()) {\\n\\t\\t\\t\\tdestroyUserCookie();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\t\\n\\tfunction displayFamer(fields, i) {\\n\\t\\t$(\\\"#hofrank\\\"+(i+1)).text(fields[i*N_HOF_CATS]);\\n\\t\\t$(\\\"#hofscore\\\"+(i+1)).text(fields[i*N_HOF_CATS+3]);\\n\\t\\t$(\\\"#hofplayer\\\"+(i+1)).text(fields[i*N_HOF_CATS+1]);\\n\\t\\tchangeAvatarSpriteImage(fields[i*N_HOF_CATS+2], SPRITE_57_OFFSET, \\\"hofestavt\\\"+(i+1));\\n\\t//\\talert(\\\"name: \\\" + fields[i*3] + \\\" avatar: \\\" + fields[i*3+1] + \\\" points: \\\" + fields[i*3+2]);\\t\\n\\t}\\n\\t\\n\\tthis.serverReturnedAResponse = function() {\\n \\treturn (that.xmlhttp.readyState==4 && that.xmlhttp.status==200);\\n\\t}\\n\\t\\n\\tthis.responseText = function() {\\n\\t\\treturn that.xmlhttp.responseText;\\n\\t}\\n}\",\n \"function request() {\\n const ajax = new _ajaxRequest.default();\\n return ajax.request(...arguments);\\n }\",\n \"function createXmlHttpRequestObject()\\n{\\n var xmlhttp = null;\\n\\n // code for Mozilla, etc.\\n if (window.XMLHttpRequest) {\\n xmlhttp=new XMLHttpRequest();\\n }\\n // code for IE\\n else if (window.ActiveXObject) {\\n try {\\n xmlhttp=new ActiveXObject(\\\"Msxml2.XMLHTTP.4.0\\\");\\n } catch (e) {\\n try {\\n xmlhttp=new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n } catch (e) {\\n xmlhttp=new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n }\\n }\\n }\\n\\n if (xmlhttp == null) \\n alert(\\\"Can not create XMLHttpRequest object in your browser!\\\");\\n \\n return xmlhttp;\\n}\",\n \"function Ajax(url, obj) {\\n\\t\\tvar request = null;\\n\\t\\tif (window.XMLHttpRequest) {\\n\\t\\t\\trequest = new XMLHttpRequest();\\n\\t\\t} else if (window.ActiveXObject) {\\n\\t\\t\\trequest = new ActiveXObject(\\\"Microsoft.XMLHttp\\\");\\n\\t\\t}\\n\\t\\tif (request) {\\n\\t\\t\\trequest.open(\\\"POST\\\", url, true);\\n\\t\\t\\trequest.setRequestHeader(\\\"Content-Type\\\", \\\"application/x-www-form-urlencoded; charset=UTF-8\\\");\\n\\t\\t\\trequest.setRequestHeader(\\\"If-Modified-Since\\\", \\\"0\\\");\\n\\t\\t\\trequest.onreadystatechange = function () {\\n\\t\\t\\t\\tif (request.readyState == 4 && request.status == 200) {\\n\\t\\t\\t\\t\\tobj.innerHTML = request.responseText;\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tobj.innerHTML = \\\"Loading....\\\";\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\trequest.send(null);\\n\\t\\t}\\n\\t}\",\n \"function createXMLHttpInstance() {\\n var request = null;\\n if (window.XMLHttpRequest) {\\n request = new XMLHttpRequest();\\n } else if (window.ActiveXObject) {\\n try {\\n request = new ActiveXObject(\\\"Msxml2.XMLHTTP\\\");\\n } catch (e) {\\n try {\\n request = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n } catch (e) {\\n alert(\\\"XHR not created\\\");\\n }\\n }\\n }\\n return request;\\n}\",\n \"function Ajax(sUrl,hsArgs){\\n\\t\\tvar r=(\\n\\t\\t\\t\\tthis.mkax('Msxml3.XMLHTTP')||\\n\\t\\t\\t\\t\\t\\tthis.mkax('Msxml2.XMLHTTP')||\\n\\t\\t\\t\\t\\t\\tthis.mkax('Microsoft.XMLHTTP')||\\n\\t\\t\\t\\t\\t\\tnew XMLHttpRequest()\\n\\t\\t);\\n\\t\\tif(!r)throw new Error(\\\"Browser don't support Ajax Object.\\\")\\n\\t\\tthis.constructor.extend(this,Packer,[r])\\n\\t\\tthis.setArgs(hsArgs);\\n\\t\\tthis.initObject();\\n\\t\\tthis.send(sUrl);\\n}\",\n \"function createXmlHttpRequestObject()\\n{\\n //will store reference to object\\n var xmlHttp;\\n //create object\\n try {\\n //assume IE7 or newer/modern\\n xmlHttp = new XMLHttpRequest();\\n } catch (e) {\\n //assume IE6 or older\\n try\\n {\\n xmlHttp = new ActiveXObject (\\\"Microsoft.XMLHttp\\\");\\n }\\n catch (e) { }\\n }\\n //return created object or error message\\n if (!xmlHttp)\\n alert(\\\"Error creating the XMLHttpRequest object.\\\");\\n else\\n return xmlHttp;\\n }\",\n \"function functionCreate()\\n{\\n\\tif(window.XMLHttpRequest)\\n\\t{\\n\\t\\tg.ajaxObject = new XMLHttpRequest();\\n\\t}\\n\\n\\telse if(window.ActiveXObject)\\n\\t{ \\n\\t\\tg.ajaxObject = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t}\\n\\n\\tvar art = document.getElementsByTagName(\\\"article\\\");\\n\\tvar username = art[0].innerHTML;\\n\\n\\tg.ajaxObject.open(\\\"POST\\\", \\\"JSONcreate.php\\\", true);\\t\\n\\tg.ajaxObject.setRequestHeader(\\\"Content-type\\\", \\\"application/x-www-form-urlencoded\\\"); \\n\\tg.ajaxObject.onreadystatechange = functionCheckNewlyCreated;\\n\\tg.ajaxObject.send(\\\"username=\\\" + username);\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n}\",\n \"function Ajax() {\\n var xhr = new XMLHttpRequest();\\n this.get = function (fetchFunc, options, cb) {\\n if (fetchFunc === true) {\\n var err,\\n response = {};\\n fetch(options.url, {\\n method: options.method ? options.method : \\\"get\\\",\\n mode: options.mode ? options.mode : \\\"\\\",\\n headers: options.headers ? options.headers : {}\\n }).then(function (res) {\\n response.res = res;\\n return res.json();\\n }).then(function (data) {\\n response.data = data\\n return cb(err, response);\\n }).catch(function (error) {\\n err = error;\\n return cb(err, response);\\n });\\n } else {\\n xhr.open(\\\"get\\\", options.url, options.async ? options.async: true);\\n if (options.type) {\\n this.responseType = options.type;\\n }\\n if (options.headers) {\\n Object.keys(options.headers).forEach(function (index) {\\n xhr.setRequestHeader(index, options.headers[index]);\\n });\\n }\\n xhr.setRequestHeader(\\\"ajax\\\", \\\"express\\\");\\n xhr.onreadystatechange = function () {\\n if (this.readyState === 0) {\\n if (options.beforStart) {\\n options.beforStart();\\n }\\n }\\n if (this.readyState === 1) {\\n if (options.onStart) {\\n options.onStart(xhr);\\n }\\n }\\n if (this.readyState === 3) {\\n if (options.onProgress) {\\n options.onProgress(xhr);\\n }\\n }\\n var err;\\n var data;\\n if (this.readyState === 4) {\\n if (this.status === 404 || this.status === 403 || this.status === 500) {\\n err = {status: this.status};\\n }\\n if (this.readyState === 4 && this.status === 200) {\\n data = {response: this.response, responseText: this.responseText, responseUrl: this.responseURL, responseXML: this.responseXML, responseType: this.responseType};\\n }\\n return cb(err, data);\\n }\\n };\\n xhr.send();\\n }\\n }\\n this.post = function (options, cb) {\\n var err;\\n var data;\\n var formData = new FormData();\\n if (options.url) {\\n xhr.open(\\\"post\\\", options.url, options.async ? options.async : true);\\n if (options.headers) {\\n Object.keys(options.headers).forEach(function (index) {\\n xhr.setRequestHeader(index, options.headers[index]);\\n });\\n }\\n if (options.fullAjax) {\\n return fullAjax(this);\\n }\\n if (options.data) {\\n if (options.upload) {\\n var file;\\n file = options.upload.file;\\n Array.from(file).forEach(function (fil) {\\n formData.append(options.upload.fileName, fil);\\n });\\n if (options.upload.onload) {\\n xhr.upload.onload = function (e) {\\n return options.upload.onload(e);\\n }\\n }\\n if (options.upload.onprogress) {\\n xhr.upload.onprogress = function (e) {\\n return options.upload.onprogress(e);\\n }\\n }\\n if (options.upload.onerror) {\\n xhr.upload.onerror = function (e) {\\n return options.upload.onerror(e);\\n }\\n }\\n }\\n if (typeof options.data === \\\"object\\\") {\\n Object.keys(options.data).forEach(function (item) {\\n formData.append(item, options.data[item]);\\n });\\n options.data = formData;\\n } else if (typeof options.data === \\\"string\\\") {\\n xhr.setRequestHeader(\\\"Content-type\\\", \\\"application/x-www-form-urlencoded\\\");\\n }\\n xhr.setRequestHeader(\\\"ajax\\\", \\\"express\\\");\\n if (options.onabort) {\\n xhr.onabort = function (e) {\\n\\n return options.onabort(e);\\n };\\n }\\n xhr.onreadystatechange = function () {\\n if (this.readyState === 0) {\\n if (options.beforStart) {\\n options.beforStart();\\n }\\n }\\n if (this.readyState === 1) {\\n if (options.onStart) {\\n options.onStart();\\n }\\n }\\n if (this.readyState === 3) {\\n if (options.onProgress) {\\n options.onProgress();\\n }\\n }\\n\\n if (this.status === 404 || this.status === 403 || this.status === 500) {\\n err = {status: this.status};\\n }\\n if (this.readyState === 4 && this.status === 200) {\\n data = {response: this.response, responseText: this.responseText, responseUrl: this.responseURL, responseXML: this.responseXML, responseType: this.responseType};\\n }\\n if (cb) {\\n return cb(err, data);\\n }\\n };\\n xhr.send(options.data);\\n } else {\\n err = new Error(\\\"bad request\\\");\\n return console.error(\\\"cannot send empty data\\\");\\n }\\n } else {\\n err = new Error(\\\"bad request\\\");\\n return console.error(\\\"cannot send empty url\\\");\\n }\\n }\\n }\",\n \"function createHttpRequestObject() {\\n\\tvar xmlHttp = new XMLHttpRequest || new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\treturn xmlHttp;\\t\\t \\n}\",\n \"function createXMLObject(){\\r\\n var xmlObj = null;\\r\\n if(window.XMLHttpRequest){\\r\\n xmlObj = new XMLHttpRequest();\\r\\n } else if(window.ActiveXObject){\\r\\n xmlObj = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\r\\n }\\r\\n\\r\\n return xmlObj;\\r\\n}\",\n \"function createRequestObject(){\\n\\tvar ro;\\n\\tvar browser = navigator.appName;\\n\\tif(browser == \\\"Microsoft Internet Explorer\\\"){\\n\\t\\tro = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t} else {\\n\\t\\tro = new XMLHttpRequest();\\n\\t}\\n\\n\\treturn ro;\\n}\",\n \"function inicializa_xhr() {\\n if (window.XMLHttpRequest) {\\n return new XMLHttpRequest();\\n } else if (window.ActiveXObject) {\\n return new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n }\\n}\",\n \"useAjax( ajax ) {\\n this._ajax = ajax;\\n }\",\n \"useAjax( ajax ) {\\n this._ajax = ajax;\\n }\",\n \"function httpFactory() {\\n\\tvar invoker = false;\\n\\t// Creation de l'invoker :\\n\\tif (window.XMLHttpRequest) \\t\\t\\t \\t // Firefox \\n\\t\\tinvoker = new XMLHttpRequest(); \\n\\telse if(window.ActiveXObject) { // Internet Explorer \\n\\t\\tinvoker = new ActiveXObject(\\\"Microsoft.XMLHTTP\\\");\\n\\t}\\n\\telse {\\n\\t\\tvar fail = \\\"Echec d'instanciation de l'invocateur distant :'( \\\\n\\\";\\n\\t\\tfail += \\\"Votre navigateur ne semble pas supporter l'invocation de méthodes distantes ...\\\\n\\\";\\n\\t\\tfail += \\\"Veuillez utiliser quelque chose d'un peu plus standart, comme Firefox par exemple ^_^ !\\\\n\\\";\\n\\t\\talert(fail); \\n\\t\\tinvoker = -1; \\n\\t\\texit(); // On dégage :p\\n\\t}\\n\\treturn invoker;\\n}\",\n \"function doAjaxCallToCreateOrder(name, createdBy, labId, associatedProjectId) {\\n $.ajax({\\n url: \\\"../newOrder\\\",\\n type: \\\"POST\\\",\\n async: false,\\n data: {\\n\\n \\\"name\\\": name,\\n \\\"createdBy\\\": createdBy,\\n \\\"labId\\\": labId,\\n \\\"associatedProjectId\\\": associatedProjectId,\\n// \\\"budget\\\": budget,\\n// \\\"orderLimit\\\": orderLimit,\\n// \\\"tax\\\": taxRate\\n },\\n success: function (response) {\\n //alert(\\\"order created!\\\");\\n window.location.href = \\\"../html/currentOrders.html\\\";\\n },\\n error: function (response) {\\n alert(response.message);\\n }\\n });\\n}\",\n \"function createResortAjax(c_json){\\n $.ajax({\\n url: resort_index,\\n type: 'POST',\\n dataType: 'json',\\n data: c_json,\\n headers: { Authorization: 'Token token=' + sessionStorage.getItem('powder-token')}\\n })\\n .done(function() {\\n console.log(\\\"Created\\\");\\n loadResortsAjax();\\n })\\n .fail(function() {\\n console.log(\\\"error\\\");\\n });\\n }\",\n \"function crearObjeto(){\\r\\n if(window.XMLHttpRequest){\\r\\n xml=new XMLHttpRequest();\\r\\n }\\r\\n else{\\r\\n if(ActiveXObject){\\r\\n var versiones=[\\\"MSXML2.XMLHttp.5.0\\\",\\\"MSXML2.XMLHttp.4.0\\\",\\\"MSXML2.XMLHttp.3.0\\\",\\\"MSXML2.XMLHttp\\\",\\\"Microsoft.XMLHttp\\\"];\\r\\n for(i=0;i this.apiList.map.addEvents(data.events))\\n .catch(data => console.log(data));\\n\\n this.apiList.yelp.retrieveData().then(data => {\\n this.apiList.map.addBiz(data.businesses);\\n this.loadScreenHandler();\\n })\\n .catch(data => console.log(data));\\n }\",\n \"function doAJAXRequest(rtype,url,data,dataType){\\n return $.ajax({\\n type:rtype,\\n url:url,\\n data:data,\\n //dataType:dataType//<-include later\\n });\\n }\",\n \"function createXMLHttpRequestObject() {\\r\\n\\tvar aVersions = [ \\\"MSXML2.XMLHttp.5.0\\\", \\\"MSXML2.XMLHttp.4.0\\\",\\\"MSXML2.XMLHttp.3.0\\\", \\\"MSXML2.XMLHttp\\\",\\\"Microsoft.XMLHttp\\\"];\\r\\n\\tif (window.XMLHttpRequest){\\r\\n\\t// para IE7, Mozilla, Safari, etc: que usen el objeto nativo\\r\\n\\treturn new XMLHttpRequest();\\r\\n\\t}\\r\\n\\telse if (window.ActiveXObject){\\r\\n\\t// de lo contrario utilizar el control ActiveX para IE5.x y IE6.x\\r\\n\\t\\tfor (var i = 0; i < aVersions.length; i++) {\\r\\n\\t\\ttry {\\r\\n\\t\\tvar oXmlHttp = new ActiveXObject(aVersions[i]);\\r\\n\\t\\treturn oXmlHttp;\\r\\n\\t\\t}\\r\\n\\t\\tcatch (error)\\t{\\r\\n\\t//no necesitamos hacer nada especial\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t}\",\n \"function objetoAjax()\\n{\\n try\\n {\\n var xmlhttp = new XMLHttpRequest();\\n }\\n catch(err1)\\n {\\n var ieXmlHttpVersions = new Array();\\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \\\"MSXML2.XMLHttp.7.0\\\";\\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \\\"MSXML2.XMLHttp.6.0\\\";\\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \\\"MSXML2.XMLHttp.5.0\\\";\\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \\\"MSXML2.XMLHttp.4.0\\\";\\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \\\"MSXML2.XMLHttp.3.0\\\";\\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \\\"MSXML2.XMLHttp\\\";\\n ieXmlHttpVersions[ieXmlHttpVersions.length] = \\\"Microsoft.XMLHttp\\\";\\n\\n var i;\\n for (i=0; i < ieXmlHttpVersions.length; i++)\\n {\\n try\\n {\\n var xmlhttp = new ActiveXObject(ieXmlHttpVersions[i]);\\n break;\\n }\\n catch (err2)\\n {\\n \\n }\\n }\\n }\\n\\n return xmlhttp;\\n}\"\n]"},"negative_scores":{"kind":"list like","value":["0.728805","0.728805","0.69982547","0.6983247","0.6928333","0.69176394","0.6848322","0.683908","0.68311125","0.6827369","0.6729611","0.669764","0.6650921","0.6582964","0.65722847","0.6559168","0.6505465","0.64919376","0.64625305","0.6423644","0.6421517","0.6421517","0.64189386","0.64128613","0.6409659","0.63827395","0.63418466","0.6333493","0.6305461","0.6296674","0.6296304","0.62875533","0.6284161","0.62791","0.62676036","0.6264253","0.62638056","0.62631893","0.625214","0.6247668","0.62341833","0.62315375","0.62190104","0.6205945","0.620479","0.6204631","0.61992264","0.6194543","0.6193283","0.6188644","0.61790615","0.61779064","0.617349","0.61500925","0.61440843","0.6133015","0.6131858","0.61177325","0.61155355","0.6107965","0.61048925","0.6098258","0.6094902","0.6084656","0.6071139","0.6071139","0.60706806","0.6065291","0.606021","0.6055733","0.6052692","0.60429823","0.60418534","0.60407126","0.6040511","0.60399425","0.6038107","0.6037219","0.6035589","0.6034591","0.6031581","0.6017184","0.6003016","0.6002274","0.60019153","0.5998127","0.59964","0.5982936","0.598162","0.5979634","0.59791297","0.5976946","0.5974536","0.5972345","0.5969431","0.59692705","0.5963314","0.59627235","0.59504485","0.5948035"],"string":"[\n \"0.728805\",\n \"0.728805\",\n \"0.69982547\",\n \"0.6983247\",\n \"0.6928333\",\n \"0.69176394\",\n \"0.6848322\",\n \"0.683908\",\n \"0.68311125\",\n \"0.6827369\",\n \"0.6729611\",\n \"0.669764\",\n \"0.6650921\",\n \"0.6582964\",\n \"0.65722847\",\n \"0.6559168\",\n \"0.6505465\",\n \"0.64919376\",\n \"0.64625305\",\n \"0.6423644\",\n \"0.6421517\",\n \"0.6421517\",\n \"0.64189386\",\n \"0.64128613\",\n \"0.6409659\",\n \"0.63827395\",\n \"0.63418466\",\n \"0.6333493\",\n \"0.6305461\",\n \"0.6296674\",\n \"0.6296304\",\n \"0.62875533\",\n \"0.6284161\",\n \"0.62791\",\n \"0.62676036\",\n \"0.6264253\",\n \"0.62638056\",\n \"0.62631893\",\n \"0.625214\",\n \"0.6247668\",\n \"0.62341833\",\n \"0.62315375\",\n \"0.62190104\",\n \"0.6205945\",\n \"0.620479\",\n \"0.6204631\",\n \"0.61992264\",\n \"0.6194543\",\n \"0.6193283\",\n \"0.6188644\",\n \"0.61790615\",\n \"0.61779064\",\n \"0.617349\",\n \"0.61500925\",\n \"0.61440843\",\n \"0.6133015\",\n \"0.6131858\",\n \"0.61177325\",\n \"0.61155355\",\n \"0.6107965\",\n \"0.61048925\",\n \"0.6098258\",\n \"0.6094902\",\n \"0.6084656\",\n \"0.6071139\",\n \"0.6071139\",\n \"0.60706806\",\n \"0.6065291\",\n \"0.606021\",\n \"0.6055733\",\n \"0.6052692\",\n \"0.60429823\",\n \"0.60418534\",\n \"0.60407126\",\n \"0.6040511\",\n \"0.60399425\",\n \"0.6038107\",\n \"0.6037219\",\n \"0.6035589\",\n \"0.6034591\",\n \"0.6031581\",\n \"0.6017184\",\n \"0.6003016\",\n \"0.6002274\",\n \"0.60019153\",\n \"0.5998127\",\n \"0.59964\",\n \"0.5982936\",\n \"0.598162\",\n \"0.5979634\",\n \"0.59791297\",\n \"0.5976946\",\n \"0.5974536\",\n \"0.5972345\",\n \"0.5969431\",\n \"0.59692705\",\n \"0.5963314\",\n \"0.59627235\",\n \"0.59504485\",\n \"0.5948035\"\n]"},"document_score":{"kind":"string","value":"0.62494844"},"document_rank":{"kind":"string","value":"39"}}},{"rowIdx":81548,"cells":{"query":{"kind":"string","value":"Disapering the msg window"},"document":{"kind":"string","value":"function fndisapWindow(){\r\n Effect.fadeOut(windowObj);\r\n Effect.setOpacity(parentWindow, 1);\r\n// objTurn.innerHTML=intTurnNO;\r\n// fnresetmemberStatus();\r\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function hideWorkingMessage() {\n psc().hideLayer();\n}","function ClearMessagePane() {}","function hideMessage () {\n if (uiOnboarding.messageHolder.is(\":visible\")) uiOnboarding.messageHolder.hide();\n }","function removeMSG(msg) {\n setTimeout(function () {\n var Idx = msg.Msg;\n var isConf = !!msg.UID;\n\n var message = document.getElementById(isConf ? \"conf-\" + msg.UID + \"-\" + Idx : \"priv-\" + Idx);\n\n if (message){\n message.innerHTML = \"\";\n }\n }, 100);\n }","function displaceNotify(msg) {\r\n\t\t\tif (lastPlacedWindow == msg.target) lastPlacedWindow = null;\r\n\t\t\tmsg.target.unregisterExternalHandler(\"Close\",displaceNotify);\r\n\t\t\tapp.windowDisplaced(msg.target);\r\n\t\t}","function removeFinishMessage() {\n \tfinish.style.display = 'none';\n winMessage.appendChild(restartCopy);\n \twinMessage.appendChild(starsCopy);\n \twinMessage.appendChild(timeCopy);\n \twinMessage.appendChild(moveTrackerCopy);\n}","function hideSecondPlayerWaitingMessage(){\n\t\tcreatejs.Tween.get(wmSecondPlayer).to({y: wmSecondPlayer.y - Constants.WM_SP_TO_BOTTOM, alpha: 0}, 1000, createjs.Ease.quadOut).call(function(){\n\t\t\tstage.removeChild(this);\n\t\t});\n\t}","function blockApplication(msg) {\n $('#div-grande').text(msg);\n $('#div-grande').css({\n 'font-size': '5vh',\n 'text-align': 'center'\n });\n $('#score').remove();\n $('#chat-button').prop('disabled', true);\n $('#help-button').prop('disabled', true);\n}","function hideMessage() {\n\t\tif (document.getElementById('APIVK_msgbox') != null) {\n\t\t\tdocument.getElementById('APIVK_msgbox').style.display = 'none';\n\t\t}\n\t}","function hideMessage() {\n //if (ppsc().gsAction != \"Submit\" && !Page_IsValid) {\n // if (typeof (ppsc().hideMessagePane) != \"undefined\") {\n // ppsc().hideMessagePane();\n // }\n //}\n}","function handleClick() {\n \t\t\tstage.removeChild(messageField);\n \t\t\trestart();\n\t}","function ux_hideMsg() {\n _hideErrMsg();\n}","function hideMsg(msg) {\r\n var msg = document.getElementById('msg');\r\n if(!msg.timer) {\r\n msg.timer = setInterval(\"fadeMsg(0)\", MSGTIMER);\r\n }\r\n}","function nota(op,msg,time){\n if(time == undefined)time = 5000;\n var n = noty({text:msg,maxVisible: 1,type:op,killer:true,timeout:time,layout: 'center'});\n}","hideMessage() {\n this.messageContainerEl.innerHTML = '';\n this.messageContainerEl.classList.remove('visible');\n }","function hideMessage() {\n $scope.showToolMessage = false;\n }","removeActiveMsgClick() {\n this.activeMsg = -1;\n }","function closeUpadateMessage() {\n updateMessageBody.style.display = \"none\";\n}","hideMessage(evt) {\n if (!this.visible) {\n return;\n }\n\n if (\n evt.keyCode != 13 &&\n evt.keyCode != 32 &&\n evt.keyCode != undefined &&\n evt.keyCode != 0\n ) {\n return;\n }\n evt.preventDefault();\n\n document.querySelector(\"#message_wrapper\").remove();\n this.visible = false;\n }","clearMessageContents() {\r\n // NOTE: 04/17/2017 - These ui update methods are so short now we can probably recycle them and just pass the\r\n // managers behaviour directly.\r\n this.props.uiManager.clearMessageText();\r\n }","setSwMsgContianer() {\n\t\tconst container = document.createElement('div');\n\t\tcontainer.className = 'snackbar';\n\n\t\tconst parag = document.createElement('p');\n\t\tparag.id = 'msgOffline';\n\t\tcontainer.appendChild(parag);\n\n\t\tconst button = document.createElement('button');\n\t\tbutton.type = 'button';\n\t\tbutton.className = 'snackbar-close';\n\t\tbutton.setAttribute('aria-label', 'snackbar-close');\n\t\tbutton.addEventListener('click', this.hideMsg.bind(this));\n\t\tbutton.innerHTML = '&times;';\n\n\t\tcontainer.appendChild(button);\n\n\t\tdocument.body.appendChild(container);\n\n window.addEventListener('online', this.updateNetworkState.bind(this));\n window.addEventListener('offline', this.updateNetworkState.bind(this));\n\n container.addEventListener('mouseover', () => {\n if (this._timeoutMsg !== null) \n clearTimeout(this._timeoutMsg);\n });\n container.addEventListener('mouseout', () => {\n if (this._timeoutMsg !== null) \n this._timeoutMsg = setTimeout(this.hideMsg.bind(this), 2000);\n });\n }","function hideGameMsg() {\n clearMsg();\n document.getElementById('gameMsgBox').style.display = 'none';\n}","unfold() {\n\n\t\tvar width = jQuery(\"#cinema_chat\").css(\"width\");\n\n\t\t// clear new state\n\t\tthis.clear_new();\n\n\t\t// show chat\n\t\tif (jQuery(\"#cinema_chat\").css(\"right\") == \"0px\") {\n\t\t\tjQuery(\"#cinema_chat\").css(\"right\", \"-\"+width);\n\t\t}\n\t\telse {\n\t\t\tjQuery(\"#cinema_chat\").css(\"right\", 0);\n\t\t}\n\t}","function disablePopupM() {\n try {\n //blink();\n $(\"#mcPopWindow\").empty().remove();\n $(\"#overLay\").hide();\n\n popupStatus = 0;\n\n }\n catch (e) { }\n}","function NeverVisibleMessageDisplayWidget() {\n MessageDisplayWidget.call(this);\n}","function stopBlink() {\n audio.pause()\n let msgWindowRef = document.getElementById('message');\n msgWindowRef.style.backgroundColor = msgWindowDefaultBackground;\n clearInterval(alertInterval);\n}","function minRestoreChatWindow()\r\n {\r\n try\r\n {\r\n if( minimized )\r\n restoreChatWindow();\r\n else\r\n minimizeChatWindow();\r\n }\r\n catch(ex){}\r\n }","function onMessageSecurityPopupHidden() {\n // Clear the variables for signature and encryption.\n gSigKeyId = null;\n gEncKeyId = null;\n\n // Hide the UI elements.\n document.getElementById(\"signatureHeader\").collapsed = true;\n document.getElementById(\"encryptionHeader\").collapsed = true;\n document.getElementById(\"signatureCert\").collapsed = true;\n document.getElementById(\"signatureKey\").collapsed = true;\n document.getElementById(\"viewSignatureKey\").collapsed = true;\n document.getElementById(\"encryptionKey\").collapsed = true;\n document.getElementById(\"encryptionCert\").collapsed = true;\n document.getElementById(\"viewEncryptionKey\").collapsed = true;\n document.getElementById(\"otherEncryptionKeys\").collapsed = true;\n\n let keyList = document.getElementById(\"otherEncryptionKeysList\");\n // Clear any possible existing key previously appended to the DOM.\n for (let node of keyList.children) {\n keyList.removeChild(node);\n }\n\n // Clear the previously set size.\n let popup = document.getElementById(\"messageSecurityPanel\");\n popup.removeAttribute(\"height\");\n popup.removeAttribute(\"width\");\n}","function hideMessage() {\r\n \tViewManager.getView(\"#userIdentityMessageContainer\").clearAlert();\r\n }","function hideMessage()\r\n {\r\n $('.warning-screen-cover').fadeOut(500);\r\n $('.warning-confirm-container').fadeOut(500);\r\n }","function hideMessage()\r\n {\r\n $('.warning-screen-cover').fadeOut(500);\r\n $('.warning-confirm-container').fadeOut(500);\r\n }","function clearMessage() {\r\n\t\t// For some reason, unless we call hide(), messages that were faded out\r\n\t\t// on a previous tab will be visible when we switch to that tab.\r\n\t\t$messageArea.fadeOut(\"slow\", function () { \r\n\t\t\t$(this).hide(); \r\n\t\t});\r\n\t}","function eraseMessages() {\n\tanswer.innerHTML = '';\n\teraseButton.style.display = 'none';\n}","function hideChatWizContainer() {\n\t\t\t\tsendPostMessage({\"lpEmbChatWiz\": \"LPNVPF\", \"CMD\" : \"CONTROL\", \"value\" : \"HIDE_CONTAINER\"});\n\t\t\t}","static waitMessageEnd() {\n $('#wmsg-modal').hide();\n }","function disppulistener() {\r\n\tif (powerupLimit > 0 || prac == true) {\r\n\t\tif (powerupdispbg.visible == false) {\r\n\t\t\tshowallpowerups();\r\n\t\t} else if (powerupdispbg.visible == true) {\r\n\t\t\thideallpowerups();\r\n\t\t}\r\n\t\tupdateTextI();\r\n\t}\r\n}","function unmaskBody(msg, cls) {\r\n var el = this.getEl();\r\n if (el.dom) {\r\n el.down('.x-panel-body').unmask();\r\n }\r\n }","onAfterDetach(msg) {\n const node = this.node;\n node.removeEventListener('keydown', this, true);\n node.removeEventListener('click', this, true);\n document.removeEventListener('focus', this, true);\n this._original.focus();\n }","function disableMessageButton( message ) {\t\t\n\tdocument.getElementById(\"messagebutton\").setAttribute('hidden',true);\n\treturn true;\n}","function hideMsg(msg) {\n 'use strict';\n console.log(\"hiding post \" + msg.attr(\"id\"));\n var postCell = msg.parent();\n var hiddenMsg = msg.hide();\n var toggleLink = $(document.createElement('a'));\n toggleLink.attr(\"href\", \"#\" + msg.attr(\"id\").substr(8));\n toggleLink.addClass(\"post_toggle\");\n toggleLink.text(\"Show this post\");\n postCell.prepend(toggleLink);\n toggleLink.append(hiddenMsg);\n \n toggleLink.bind(\"click\", function () {\n var postContent = $(this).children();\n $(this).replaceWith(postContent);\n postContent.show();\n });\n}","function chatBoxClose(){\n\tnanuTalk.style.display='none';\n\tchatAreaShow.style.display='none';\n\tsendBtn.disabled=false;\n}","function disengage(e) {\n dragging = false;\n //2.12 to avoid the connection between the engage and disengage line\n context.beginPath();\n }","function cerramensaje() {\n document.getElementById(\"window-notice\").style.display = 'none';\n\n}","function dehookGUI() {\n var elmts = [ 'btn-minimize' ];\n\n for (var i = 0, elmts_len = elmts.length; i < elmts_len; i++) {\n var elmt = document.getElementById(elmts[i]);\n elmt.onchange = elmt.ondblclick = elmt.onclick = null;\n }\n\n /* Force the bottom bar to be visible once the CSS GUI has been\n immobilized. */\n var btn_minimize = document.getElementById('btn-minimize');\n btn_minimize.style.cssText = '';\n var bbwrap = document.getElementById('bbwrap');\n bbwrap.onmouseover = null;\n bbwrap.onmouseout = null;\n document.getElementById('bottomBar').style.cssText = '';\n}","function hideMessageDiv() {\n\tif (messageDiv == null) {\n\t\treturn;\n\t}\n\tElement.hide(messageDiv);\n}","function showMsgOnTop(msg) {\n $('#show-message').find('button').removeAttr('data-dismiss');\n $('#show-message')\n .find('button')\n .oneWrap('click', function (e) {\n $('#show-message').modal('hide');\n $('#show-message').find('button').attr('data-dismiss', 'modal');\n });\n MSG.displayInformation({\n rc: 'not ok',\n }, '', msg);\n }","function _removeNotification() {\n // If exists\n if ($.find(\"#main-window-warning\").length > 0) {\n \n // Resize editor to make for the space created by removing the notification\n _resizeEditor(false);\n \n // Remove notification\n $(\"#main-window-warning\").remove();\n }\n }","function resetMessageDom () {\n $(\"#successMsg\").hide();\n // $(\"#newWish\").hide();\n }","removeMsg(uuid) {\n state.destroy(uuid);\n m.redraw();\n }","function unblockUI(el, msg) {\r\n \t$(\".blockMsg > div\").removeClass(\"loading-animator\").html(\"

\"+msg+\"

\");\r\n $(el).unblock();\r\n }","clean () {\n this._messageBoard.textContent = ''\n }","killMenu() {\n isReady = false;\n API.showCursor(false);\n API.setHudVisible(true);\n API.setChatVisible(true);\n API.setCanOpenChat(true);\n API.callNative(\"_TRANSITION_FROM_BLURRED\", 3000);\n }","function onUnPauseMessage(message) {\n\n }","function hide() {\n Onyx.set(ONYXKEYS.IS_CHAT_SWITCHER_ACTIVE, false);\n}","_defaultHideAlert() {\n\t\tthis._delayTime = 0;\n\t\tthis._visible = false;\n\n\t\tif (this._timer) {\n\t\t\tclearTimeout(this._timer);\n\t\t}\n\n\t\tif (this.destroyOnHide) {\n\t\t\tthis.dispose();\n\t\t}\n\t}","function closemessage(){\r\n\tvar message = document.getElementById('message');\r\n\tmessage.style.visibility='hidden';\r\n\tmessage.innerHTML = \"\";\r\n}","handleMessage(myMessage) { \n this.message = myMessage;\n this.showMode=true; \n }","function endBlackout(){\n$(\".blackout\").css(\"display\", \"none\");\n$(\".msgbox\").css(\"display\", \"none\");\n}","function showImportantMessage(sMessage) {\n ppsc().showImportantPane(sMessage);\n}","function CustomClosedMessage(txt) {\n\tif( document.getElementById(\"Message_MessageLabel\")!=null)\t{\n\t\t$(\"#Message_MessageImage\").hide(); //hide standard message\n\t\t$(\"#Message_MessageLabel\").hide();\n\t\t$(txt).insertAfter(\"#Message_MessageLabel\");\n\t}\n}","hideDrawingTool () {\n this.drawingManager.setDrawingMode(null)\n this.startedDrawing = false\n }","function hideMessage() {\r\n $('#message').delay().slideUp(500);\r\n}","function msgDisplayer(msg, msgDisplayType) {\r\n messageDisplay.innerHTML = msg;\r\n messageDisplay.classList = msgDisplayType;\r\n if (msgDisplay) {\r\n setTimeout(function () {\r\n msgDisplay.style.display = 'none';\r\n }, 3000);\r\n msgDisplay.style.display = 'block';\r\n }\r\n}","function receiveMessage(event){\n\n if (event.data==\"remove\"){\n\n var element = document.getElementById('overlay');\n\n // Remove iFrame\n element.parentNode.removeChild(element);\n\n // Enable scrolling\n document.getElementsByTagName('body')[0].style.overflow = \"visible\";\n\n // Remove listener\n window.removeEventListener(\"message\", receiveMessage);\n }\n\n}","_dismiss() {\n\t\tthis.unbind();\n\t\tthis._isVisible = false;\n\t}","function _224XClick() {\n\tvar x = document.getElementById('224window');\n\tx.style.display = \"none\";\n\n\tvar ifrm = document.getElementById('224doc');\n\tx.removeChild(ifrm);\n}","function showMessage(msg){\n $(message).append('
'+msg+'
');\n runClean(3000);\n}","function dismissPopup(){\n\t$(\"#popupText\").empty();\n\t$('#copyMessage').removeClass('animate');\n\t\n}","function ShowMessage( _msg, _ok ) {\r\n var width = 300;\r\n var height = 120;\r\n var left = (window.outerWidth - width) / 2;\r\n var top = (window.outerHeight - height) / 2;\r\n var MsgWin = window.open(\"\", \"MSGWIN\", \"left=\"+left+\",top=\"+top+\",innerwidth=\"+width+\",innerheight=\"+height+\",status=0,chrome=0\");\r\n var d = MsgWin.document;\r\n d.writeln('');\r\n d.writeln('');\r\n d.writeln('');\r\n d.writeln('');\r\n d.writeln('');\r\n if (_ok === false) {\r\n // don't show OK button yet\r\n d.writeln(_msg);\r\n } else {\r\n d.writeln('
'+_msg+'
');\r\n d.writeln('');\r\n }\r\n d.writeln('');\r\n d.close();\r\n win.focus();\r\n return false;\r\n}","function confirmerSuppression() {\n let n = new Noty({\n text: 'Confirmer la suppression du frais ',\n layout: 'center',\n theme: 'sunset',\n modal: true,\n type: 'info',\n animation: {\n open: 'animated lightSpeedIn',\n close: 'animated lightSpeedOut'\n },\n buttons: [\n Noty.button('Oui', 'btn btn-sm btn-success marge ', function () {\n supprimer();\n n.close();\n }),\n Noty.button('Non', 'btn btn-sm btn-danger', function () {\n n.close();\n })\n ]\n }).show();\n}","function fn_replymsg(msgid)\n{\t\n\tremovesections(\"#tools-message-view\");\n\tshowpageswithpostmethod(\"tools-message-reply\",\"tools/message/tools-message-reply.php\",\"msgid=\"+msgid);\n}","removeGhostText() {\n if (!this.session.widgetManager) return;\n\n this.renderer.removeGhostText();\n }","function winMessage() {\n // updating the UI for the end screen to display the correct values\n moveHolder.textContent = moves;\n starHolder.textContent = stars;\n secondsContainer.textContent = seconds;\n\n // add the class that will view the wining screen\n winContainer.classList.add('win-screen');\n\n // remove event listener\n deck.removeEventListener('click', cardClickHandler);\n}","function removeFlagMsg(){\n $('.flash-msg').replaceWith(\"\");\n }","function removeFlagMsg(){\n $('.flash-msg').replaceWith(\"\");\n }","function removeFlagMsg(){\n $('.flash-msg').replaceWith(\"\");\n }","function show(){\n Wscreen = window.document.body.clientWidth;\n if(Wscreen<1199){\n message.animate({left:\"0%\",top:\"100%\",opacity:\"1.0\",width:\"100%\",height:\"auto\",zIndex:\"2\"},2000);//2000\n timer = setInterval(OUT, 7500);//000\n }\n if(Wscreen>1199){\n message.animate({left:\"120%\",top:\"-13px\",opacity:\"1.0\",zIndex:\"2\"},2000);//2000\n timer = setInterval(OUT, 7500);//000\n }\n }","function miss() {\n view.fadeOut();\n\n ws.send(JSON.stringify({\n type: \"miss\",\n }));\n }","function strtBlackout(){\n$(\".msgbox\").css(\"display\", \"block\");\n$(\".blackout\").css(\"display\", \"block\");\n}","dismiss() {\n\t\tthis._updated = false\n\t\tthis.notifier.classList.remove('active')\n\t}","function closeLayer() {\n document.querySelector(\".layer\").remove();\n document.querySelector(\".messageBox\").remove();\n // Store in session that user has seen the message\n sessionStorage.setItem(\"informed\", true);\n}","function removeLoadingMessage() {\n var cover = document.querySelector('#initialization__cover'),\n message = document.querySelector('.initialization__message');\n\n TweenLite.to(cover, 1, {\n alpha: 0, ease: Quad.easeOut, onComplete: function () {\n cover.parentNode.removeChild(cover);\n }\n });\n\n TweenLite.to(message, 2, {\n top: \"+=50px\", ease: Quad.easeIn, onComplete: function () {\n cover.removeChild(message);\n }\n });\n }","function hideAllMessages()\n\t{\n\t\t\t var messagesHeights = new Array(); // this array will store height for each\n\t\t \n\t\t\t for (i=0; i';\n\tdocument.getElementById('warning_msg').style.display = 'block';\n\tvar body = $(\"body\");\n\tbody.animate({scrollTop:0}, '500');\n\tsetInterval('$( \"#warning_msg\" ).hide()', 1000);\n}","function removeFlagMsg(){\n $('.flash-msg').replaceWith(\"\");\n }"],"string":"[\n \"function hideWorkingMessage() {\\n psc().hideLayer();\\n}\",\n \"function ClearMessagePane() {}\",\n \"function hideMessage () {\\n if (uiOnboarding.messageHolder.is(\\\":visible\\\")) uiOnboarding.messageHolder.hide();\\n }\",\n \"function removeMSG(msg) {\\n setTimeout(function () {\\n var Idx = msg.Msg;\\n var isConf = !!msg.UID;\\n\\n var message = document.getElementById(isConf ? \\\"conf-\\\" + msg.UID + \\\"-\\\" + Idx : \\\"priv-\\\" + Idx);\\n\\n if (message){\\n message.innerHTML = \\\"\\\";\\n }\\n }, 100);\\n }\",\n \"function displaceNotify(msg) {\\r\\n\\t\\t\\tif (lastPlacedWindow == msg.target) lastPlacedWindow = null;\\r\\n\\t\\t\\tmsg.target.unregisterExternalHandler(\\\"Close\\\",displaceNotify);\\r\\n\\t\\t\\tapp.windowDisplaced(msg.target);\\r\\n\\t\\t}\",\n \"function removeFinishMessage() {\\n \\tfinish.style.display = 'none';\\n winMessage.appendChild(restartCopy);\\n \\twinMessage.appendChild(starsCopy);\\n \\twinMessage.appendChild(timeCopy);\\n \\twinMessage.appendChild(moveTrackerCopy);\\n}\",\n \"function hideSecondPlayerWaitingMessage(){\\n\\t\\tcreatejs.Tween.get(wmSecondPlayer).to({y: wmSecondPlayer.y - Constants.WM_SP_TO_BOTTOM, alpha: 0}, 1000, createjs.Ease.quadOut).call(function(){\\n\\t\\t\\tstage.removeChild(this);\\n\\t\\t});\\n\\t}\",\n \"function blockApplication(msg) {\\n $('#div-grande').text(msg);\\n $('#div-grande').css({\\n 'font-size': '5vh',\\n 'text-align': 'center'\\n });\\n $('#score').remove();\\n $('#chat-button').prop('disabled', true);\\n $('#help-button').prop('disabled', true);\\n}\",\n \"function hideMessage() {\\n\\t\\tif (document.getElementById('APIVK_msgbox') != null) {\\n\\t\\t\\tdocument.getElementById('APIVK_msgbox').style.display = 'none';\\n\\t\\t}\\n\\t}\",\n \"function hideMessage() {\\n //if (ppsc().gsAction != \\\"Submit\\\" && !Page_IsValid) {\\n // if (typeof (ppsc().hideMessagePane) != \\\"undefined\\\") {\\n // ppsc().hideMessagePane();\\n // }\\n //}\\n}\",\n \"function handleClick() {\\n \\t\\t\\tstage.removeChild(messageField);\\n \\t\\t\\trestart();\\n\\t}\",\n \"function ux_hideMsg() {\\n _hideErrMsg();\\n}\",\n \"function hideMsg(msg) {\\r\\n var msg = document.getElementById('msg');\\r\\n if(!msg.timer) {\\r\\n msg.timer = setInterval(\\\"fadeMsg(0)\\\", MSGTIMER);\\r\\n }\\r\\n}\",\n \"function nota(op,msg,time){\\n if(time == undefined)time = 5000;\\n var n = noty({text:msg,maxVisible: 1,type:op,killer:true,timeout:time,layout: 'center'});\\n}\",\n \"hideMessage() {\\n this.messageContainerEl.innerHTML = '';\\n this.messageContainerEl.classList.remove('visible');\\n }\",\n \"function hideMessage() {\\n $scope.showToolMessage = false;\\n }\",\n \"removeActiveMsgClick() {\\n this.activeMsg = -1;\\n }\",\n \"function closeUpadateMessage() {\\n updateMessageBody.style.display = \\\"none\\\";\\n}\",\n \"hideMessage(evt) {\\n if (!this.visible) {\\n return;\\n }\\n\\n if (\\n evt.keyCode != 13 &&\\n evt.keyCode != 32 &&\\n evt.keyCode != undefined &&\\n evt.keyCode != 0\\n ) {\\n return;\\n }\\n evt.preventDefault();\\n\\n document.querySelector(\\\"#message_wrapper\\\").remove();\\n this.visible = false;\\n }\",\n \"clearMessageContents() {\\r\\n // NOTE: 04/17/2017 - These ui update methods are so short now we can probably recycle them and just pass the\\r\\n // managers behaviour directly.\\r\\n this.props.uiManager.clearMessageText();\\r\\n }\",\n \"setSwMsgContianer() {\\n\\t\\tconst container = document.createElement('div');\\n\\t\\tcontainer.className = 'snackbar';\\n\\n\\t\\tconst parag = document.createElement('p');\\n\\t\\tparag.id = 'msgOffline';\\n\\t\\tcontainer.appendChild(parag);\\n\\n\\t\\tconst button = document.createElement('button');\\n\\t\\tbutton.type = 'button';\\n\\t\\tbutton.className = 'snackbar-close';\\n\\t\\tbutton.setAttribute('aria-label', 'snackbar-close');\\n\\t\\tbutton.addEventListener('click', this.hideMsg.bind(this));\\n\\t\\tbutton.innerHTML = '&times;';\\n\\n\\t\\tcontainer.appendChild(button);\\n\\n\\t\\tdocument.body.appendChild(container);\\n\\n window.addEventListener('online', this.updateNetworkState.bind(this));\\n window.addEventListener('offline', this.updateNetworkState.bind(this));\\n\\n container.addEventListener('mouseover', () => {\\n if (this._timeoutMsg !== null) \\n clearTimeout(this._timeoutMsg);\\n });\\n container.addEventListener('mouseout', () => {\\n if (this._timeoutMsg !== null) \\n this._timeoutMsg = setTimeout(this.hideMsg.bind(this), 2000);\\n });\\n }\",\n \"function hideGameMsg() {\\n clearMsg();\\n document.getElementById('gameMsgBox').style.display = 'none';\\n}\",\n \"unfold() {\\n\\n\\t\\tvar width = jQuery(\\\"#cinema_chat\\\").css(\\\"width\\\");\\n\\n\\t\\t// clear new state\\n\\t\\tthis.clear_new();\\n\\n\\t\\t// show chat\\n\\t\\tif (jQuery(\\\"#cinema_chat\\\").css(\\\"right\\\") == \\\"0px\\\") {\\n\\t\\t\\tjQuery(\\\"#cinema_chat\\\").css(\\\"right\\\", \\\"-\\\"+width);\\n\\t\\t}\\n\\t\\telse {\\n\\t\\t\\tjQuery(\\\"#cinema_chat\\\").css(\\\"right\\\", 0);\\n\\t\\t}\\n\\t}\",\n \"function disablePopupM() {\\n try {\\n //blink();\\n $(\\\"#mcPopWindow\\\").empty().remove();\\n $(\\\"#overLay\\\").hide();\\n\\n popupStatus = 0;\\n\\n }\\n catch (e) { }\\n}\",\n \"function NeverVisibleMessageDisplayWidget() {\\n MessageDisplayWidget.call(this);\\n}\",\n \"function stopBlink() {\\n audio.pause()\\n let msgWindowRef = document.getElementById('message');\\n msgWindowRef.style.backgroundColor = msgWindowDefaultBackground;\\n clearInterval(alertInterval);\\n}\",\n \"function minRestoreChatWindow()\\r\\n {\\r\\n try\\r\\n {\\r\\n if( minimized )\\r\\n restoreChatWindow();\\r\\n else\\r\\n minimizeChatWindow();\\r\\n }\\r\\n catch(ex){}\\r\\n }\",\n \"function onMessageSecurityPopupHidden() {\\n // Clear the variables for signature and encryption.\\n gSigKeyId = null;\\n gEncKeyId = null;\\n\\n // Hide the UI elements.\\n document.getElementById(\\\"signatureHeader\\\").collapsed = true;\\n document.getElementById(\\\"encryptionHeader\\\").collapsed = true;\\n document.getElementById(\\\"signatureCert\\\").collapsed = true;\\n document.getElementById(\\\"signatureKey\\\").collapsed = true;\\n document.getElementById(\\\"viewSignatureKey\\\").collapsed = true;\\n document.getElementById(\\\"encryptionKey\\\").collapsed = true;\\n document.getElementById(\\\"encryptionCert\\\").collapsed = true;\\n document.getElementById(\\\"viewEncryptionKey\\\").collapsed = true;\\n document.getElementById(\\\"otherEncryptionKeys\\\").collapsed = true;\\n\\n let keyList = document.getElementById(\\\"otherEncryptionKeysList\\\");\\n // Clear any possible existing key previously appended to the DOM.\\n for (let node of keyList.children) {\\n keyList.removeChild(node);\\n }\\n\\n // Clear the previously set size.\\n let popup = document.getElementById(\\\"messageSecurityPanel\\\");\\n popup.removeAttribute(\\\"height\\\");\\n popup.removeAttribute(\\\"width\\\");\\n}\",\n \"function hideMessage() {\\r\\n \\tViewManager.getView(\\\"#userIdentityMessageContainer\\\").clearAlert();\\r\\n }\",\n \"function hideMessage()\\r\\n {\\r\\n $('.warning-screen-cover').fadeOut(500);\\r\\n $('.warning-confirm-container').fadeOut(500);\\r\\n }\",\n \"function hideMessage()\\r\\n {\\r\\n $('.warning-screen-cover').fadeOut(500);\\r\\n $('.warning-confirm-container').fadeOut(500);\\r\\n }\",\n \"function clearMessage() {\\r\\n\\t\\t// For some reason, unless we call hide(), messages that were faded out\\r\\n\\t\\t// on a previous tab will be visible when we switch to that tab.\\r\\n\\t\\t$messageArea.fadeOut(\\\"slow\\\", function () { \\r\\n\\t\\t\\t$(this).hide(); \\r\\n\\t\\t});\\r\\n\\t}\",\n \"function eraseMessages() {\\n\\tanswer.innerHTML = '';\\n\\teraseButton.style.display = 'none';\\n}\",\n \"function hideChatWizContainer() {\\n\\t\\t\\t\\tsendPostMessage({\\\"lpEmbChatWiz\\\": \\\"LPNVPF\\\", \\\"CMD\\\" : \\\"CONTROL\\\", \\\"value\\\" : \\\"HIDE_CONTAINER\\\"});\\n\\t\\t\\t}\",\n \"static waitMessageEnd() {\\n $('#wmsg-modal').hide();\\n }\",\n \"function disppulistener() {\\r\\n\\tif (powerupLimit > 0 || prac == true) {\\r\\n\\t\\tif (powerupdispbg.visible == false) {\\r\\n\\t\\t\\tshowallpowerups();\\r\\n\\t\\t} else if (powerupdispbg.visible == true) {\\r\\n\\t\\t\\thideallpowerups();\\r\\n\\t\\t}\\r\\n\\t\\tupdateTextI();\\r\\n\\t}\\r\\n}\",\n \"function unmaskBody(msg, cls) {\\r\\n var el = this.getEl();\\r\\n if (el.dom) {\\r\\n el.down('.x-panel-body').unmask();\\r\\n }\\r\\n }\",\n \"onAfterDetach(msg) {\\n const node = this.node;\\n node.removeEventListener('keydown', this, true);\\n node.removeEventListener('click', this, true);\\n document.removeEventListener('focus', this, true);\\n this._original.focus();\\n }\",\n \"function disableMessageButton( message ) {\\t\\t\\n\\tdocument.getElementById(\\\"messagebutton\\\").setAttribute('hidden',true);\\n\\treturn true;\\n}\",\n \"function hideMsg(msg) {\\n 'use strict';\\n console.log(\\\"hiding post \\\" + msg.attr(\\\"id\\\"));\\n var postCell = msg.parent();\\n var hiddenMsg = msg.hide();\\n var toggleLink = $(document.createElement('a'));\\n toggleLink.attr(\\\"href\\\", \\\"#\\\" + msg.attr(\\\"id\\\").substr(8));\\n toggleLink.addClass(\\\"post_toggle\\\");\\n toggleLink.text(\\\"Show this post\\\");\\n postCell.prepend(toggleLink);\\n toggleLink.append(hiddenMsg);\\n \\n toggleLink.bind(\\\"click\\\", function () {\\n var postContent = $(this).children();\\n $(this).replaceWith(postContent);\\n postContent.show();\\n });\\n}\",\n \"function chatBoxClose(){\\n\\tnanuTalk.style.display='none';\\n\\tchatAreaShow.style.display='none';\\n\\tsendBtn.disabled=false;\\n}\",\n \"function disengage(e) {\\n dragging = false;\\n //2.12 to avoid the connection between the engage and disengage line\\n context.beginPath();\\n }\",\n \"function cerramensaje() {\\n document.getElementById(\\\"window-notice\\\").style.display = 'none';\\n\\n}\",\n \"function dehookGUI() {\\n var elmts = [ 'btn-minimize' ];\\n\\n for (var i = 0, elmts_len = elmts.length; i < elmts_len; i++) {\\n var elmt = document.getElementById(elmts[i]);\\n elmt.onchange = elmt.ondblclick = elmt.onclick = null;\\n }\\n\\n /* Force the bottom bar to be visible once the CSS GUI has been\\n immobilized. */\\n var btn_minimize = document.getElementById('btn-minimize');\\n btn_minimize.style.cssText = '';\\n var bbwrap = document.getElementById('bbwrap');\\n bbwrap.onmouseover = null;\\n bbwrap.onmouseout = null;\\n document.getElementById('bottomBar').style.cssText = '';\\n}\",\n \"function hideMessageDiv() {\\n\\tif (messageDiv == null) {\\n\\t\\treturn;\\n\\t}\\n\\tElement.hide(messageDiv);\\n}\",\n \"function showMsgOnTop(msg) {\\n $('#show-message').find('button').removeAttr('data-dismiss');\\n $('#show-message')\\n .find('button')\\n .oneWrap('click', function (e) {\\n $('#show-message').modal('hide');\\n $('#show-message').find('button').attr('data-dismiss', 'modal');\\n });\\n MSG.displayInformation({\\n rc: 'not ok',\\n }, '', msg);\\n }\",\n \"function _removeNotification() {\\n // If exists\\n if ($.find(\\\"#main-window-warning\\\").length > 0) {\\n \\n // Resize editor to make for the space created by removing the notification\\n _resizeEditor(false);\\n \\n // Remove notification\\n $(\\\"#main-window-warning\\\").remove();\\n }\\n }\",\n \"function resetMessageDom () {\\n $(\\\"#successMsg\\\").hide();\\n // $(\\\"#newWish\\\").hide();\\n }\",\n \"removeMsg(uuid) {\\n state.destroy(uuid);\\n m.redraw();\\n }\",\n \"function unblockUI(el, msg) {\\r\\n \\t$(\\\".blockMsg > div\\\").removeClass(\\\"loading-animator\\\").html(\\\"

\\\"+msg+\\\"

\\\");\\r\\n $(el).unblock();\\r\\n }\",\n \"clean () {\\n this._messageBoard.textContent = ''\\n }\",\n \"killMenu() {\\n isReady = false;\\n API.showCursor(false);\\n API.setHudVisible(true);\\n API.setChatVisible(true);\\n API.setCanOpenChat(true);\\n API.callNative(\\\"_TRANSITION_FROM_BLURRED\\\", 3000);\\n }\",\n \"function onUnPauseMessage(message) {\\n\\n }\",\n \"function hide() {\\n Onyx.set(ONYXKEYS.IS_CHAT_SWITCHER_ACTIVE, false);\\n}\",\n \"_defaultHideAlert() {\\n\\t\\tthis._delayTime = 0;\\n\\t\\tthis._visible = false;\\n\\n\\t\\tif (this._timer) {\\n\\t\\t\\tclearTimeout(this._timer);\\n\\t\\t}\\n\\n\\t\\tif (this.destroyOnHide) {\\n\\t\\t\\tthis.dispose();\\n\\t\\t}\\n\\t}\",\n \"function closemessage(){\\r\\n\\tvar message = document.getElementById('message');\\r\\n\\tmessage.style.visibility='hidden';\\r\\n\\tmessage.innerHTML = \\\"\\\";\\r\\n}\",\n \"handleMessage(myMessage) { \\n this.message = myMessage;\\n this.showMode=true; \\n }\",\n \"function endBlackout(){\\n$(\\\".blackout\\\").css(\\\"display\\\", \\\"none\\\");\\n$(\\\".msgbox\\\").css(\\\"display\\\", \\\"none\\\");\\n}\",\n \"function showImportantMessage(sMessage) {\\n ppsc().showImportantPane(sMessage);\\n}\",\n \"function CustomClosedMessage(txt) {\\n\\tif( document.getElementById(\\\"Message_MessageLabel\\\")!=null)\\t{\\n\\t\\t$(\\\"#Message_MessageImage\\\").hide(); //hide standard message\\n\\t\\t$(\\\"#Message_MessageLabel\\\").hide();\\n\\t\\t$(txt).insertAfter(\\\"#Message_MessageLabel\\\");\\n\\t}\\n}\",\n \"hideDrawingTool () {\\n this.drawingManager.setDrawingMode(null)\\n this.startedDrawing = false\\n }\",\n \"function hideMessage() {\\r\\n $('#message').delay().slideUp(500);\\r\\n}\",\n \"function msgDisplayer(msg, msgDisplayType) {\\r\\n messageDisplay.innerHTML = msg;\\r\\n messageDisplay.classList = msgDisplayType;\\r\\n if (msgDisplay) {\\r\\n setTimeout(function () {\\r\\n msgDisplay.style.display = 'none';\\r\\n }, 3000);\\r\\n msgDisplay.style.display = 'block';\\r\\n }\\r\\n}\",\n \"function receiveMessage(event){\\n\\n if (event.data==\\\"remove\\\"){\\n\\n var element = document.getElementById('overlay');\\n\\n // Remove iFrame\\n element.parentNode.removeChild(element);\\n\\n // Enable scrolling\\n document.getElementsByTagName('body')[0].style.overflow = \\\"visible\\\";\\n\\n // Remove listener\\n window.removeEventListener(\\\"message\\\", receiveMessage);\\n }\\n\\n}\",\n \"_dismiss() {\\n\\t\\tthis.unbind();\\n\\t\\tthis._isVisible = false;\\n\\t}\",\n \"function _224XClick() {\\n\\tvar x = document.getElementById('224window');\\n\\tx.style.display = \\\"none\\\";\\n\\n\\tvar ifrm = document.getElementById('224doc');\\n\\tx.removeChild(ifrm);\\n}\",\n \"function showMessage(msg){\\n $(message).append('
'+msg+'
');\\n runClean(3000);\\n}\",\n \"function dismissPopup(){\\n\\t$(\\\"#popupText\\\").empty();\\n\\t$('#copyMessage').removeClass('animate');\\n\\t\\n}\",\n \"function ShowMessage( _msg, _ok ) {\\r\\n var width = 300;\\r\\n var height = 120;\\r\\n var left = (window.outerWidth - width) / 2;\\r\\n var top = (window.outerHeight - height) / 2;\\r\\n var MsgWin = window.open(\\\"\\\", \\\"MSGWIN\\\", \\\"left=\\\"+left+\\\",top=\\\"+top+\\\",innerwidth=\\\"+width+\\\",innerheight=\\\"+height+\\\",status=0,chrome=0\\\");\\r\\n var d = MsgWin.document;\\r\\n d.writeln('');\\r\\n d.writeln('');\\r\\n d.writeln('');\\r\\n d.writeln('');\\r\\n d.writeln('');\\r\\n if (_ok === false) {\\r\\n // don't show OK button yet\\r\\n d.writeln(_msg);\\r\\n } else {\\r\\n d.writeln('
'+_msg+'
');\\r\\n d.writeln('');\\r\\n }\\r\\n d.writeln('');\\r\\n d.close();\\r\\n win.focus();\\r\\n return false;\\r\\n}\",\n \"function confirmerSuppression() {\\n let n = new Noty({\\n text: 'Confirmer la suppression du frais ',\\n layout: 'center',\\n theme: 'sunset',\\n modal: true,\\n type: 'info',\\n animation: {\\n open: 'animated lightSpeedIn',\\n close: 'animated lightSpeedOut'\\n },\\n buttons: [\\n Noty.button('Oui', 'btn btn-sm btn-success marge ', function () {\\n supprimer();\\n n.close();\\n }),\\n Noty.button('Non', 'btn btn-sm btn-danger', function () {\\n n.close();\\n })\\n ]\\n }).show();\\n}\",\n \"function fn_replymsg(msgid)\\n{\\t\\n\\tremovesections(\\\"#tools-message-view\\\");\\n\\tshowpageswithpostmethod(\\\"tools-message-reply\\\",\\\"tools/message/tools-message-reply.php\\\",\\\"msgid=\\\"+msgid);\\n}\",\n \"removeGhostText() {\\n if (!this.session.widgetManager) return;\\n\\n this.renderer.removeGhostText();\\n }\",\n \"function winMessage() {\\n // updating the UI for the end screen to display the correct values\\n moveHolder.textContent = moves;\\n starHolder.textContent = stars;\\n secondsContainer.textContent = seconds;\\n\\n // add the class that will view the wining screen\\n winContainer.classList.add('win-screen');\\n\\n // remove event listener\\n deck.removeEventListener('click', cardClickHandler);\\n}\",\n \"function removeFlagMsg(){\\n $('.flash-msg').replaceWith(\\\"\\\");\\n }\",\n \"function removeFlagMsg(){\\n $('.flash-msg').replaceWith(\\\"\\\");\\n }\",\n \"function removeFlagMsg(){\\n $('.flash-msg').replaceWith(\\\"\\\");\\n }\",\n \"function show(){\\n Wscreen = window.document.body.clientWidth;\\n if(Wscreen<1199){\\n message.animate({left:\\\"0%\\\",top:\\\"100%\\\",opacity:\\\"1.0\\\",width:\\\"100%\\\",height:\\\"auto\\\",zIndex:\\\"2\\\"},2000);//2000\\n timer = setInterval(OUT, 7500);//000\\n }\\n if(Wscreen>1199){\\n message.animate({left:\\\"120%\\\",top:\\\"-13px\\\",opacity:\\\"1.0\\\",zIndex:\\\"2\\\"},2000);//2000\\n timer = setInterval(OUT, 7500);//000\\n }\\n }\",\n \"function miss() {\\n view.fadeOut();\\n\\n ws.send(JSON.stringify({\\n type: \\\"miss\\\",\\n }));\\n }\",\n \"function strtBlackout(){\\n$(\\\".msgbox\\\").css(\\\"display\\\", \\\"block\\\");\\n$(\\\".blackout\\\").css(\\\"display\\\", \\\"block\\\");\\n}\",\n \"dismiss() {\\n\\t\\tthis._updated = false\\n\\t\\tthis.notifier.classList.remove('active')\\n\\t}\",\n \"function closeLayer() {\\n document.querySelector(\\\".layer\\\").remove();\\n document.querySelector(\\\".messageBox\\\").remove();\\n // Store in session that user has seen the message\\n sessionStorage.setItem(\\\"informed\\\", true);\\n}\",\n \"function removeLoadingMessage() {\\n var cover = document.querySelector('#initialization__cover'),\\n message = document.querySelector('.initialization__message');\\n\\n TweenLite.to(cover, 1, {\\n alpha: 0, ease: Quad.easeOut, onComplete: function () {\\n cover.parentNode.removeChild(cover);\\n }\\n });\\n\\n TweenLite.to(message, 2, {\\n top: \\\"+=50px\\\", ease: Quad.easeIn, onComplete: function () {\\n cover.removeChild(message);\\n }\\n });\\n }\",\n \"function hideAllMessages()\\n\\t{\\n\\t\\t\\t var messagesHeights = new Array(); // this array will store height for each\\n\\t\\t \\n\\t\\t\\t for (i=0; i';\\n\\tdocument.getElementById('warning_msg').style.display = 'block';\\n\\tvar body = $(\\\"body\\\");\\n\\tbody.animate({scrollTop:0}, '500');\\n\\tsetInterval('$( \\\"#warning_msg\\\" ).hide()', 1000);\\n}\",\n \"function removeFlagMsg(){\\n $('.flash-msg').replaceWith(\\\"\\\");\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.6581087","0.6489195","0.6352962","0.6226107","0.6223623","0.6058567","0.60460776","0.6041136","0.6000807","0.59886736","0.5963192","0.59393424","0.5933686","0.58940554","0.58772624","0.5863619","0.58436424","0.58160514","0.5764119","0.57492757","0.57266253","0.57125914","0.5700364","0.5684635","0.5676126","0.5667659","0.5662206","0.5660475","0.56536347","0.56519216","0.56519216","0.5645596","0.5627322","0.5601088","0.55938244","0.55556136","0.55545044","0.5549775","0.55463624","0.5543075","0.55354804","0.5532991","0.5532267","0.55262315","0.55158114","0.55085826","0.5505845","0.5502992","0.5501673","0.54884773","0.54792","0.54724854","0.54576087","0.54528916","0.54522675","0.5446201","0.54442716","0.54425985","0.5441236","0.54359853","0.5419871","0.5397935","0.5396511","0.53930414","0.5381369","0.53791195","0.53659767","0.53659666","0.53653175","0.5364616","0.5361781","0.53595686","0.5353822","0.53514373","0.53514373","0.534927","0.53481835","0.5346854","0.5343921","0.53379256","0.53371733","0.5334594","0.5333462","0.5332832","0.5332541","0.53292257","0.532855","0.5325892","0.53243244","0.532249","0.53207254","0.53184307","0.53183174","0.5317046","0.5315015","0.5311831","0.53082645","0.53048193","0.53047204","0.5303848","0.5301674"],"string":"[\n \"0.6581087\",\n \"0.6489195\",\n \"0.6352962\",\n \"0.6226107\",\n \"0.6223623\",\n \"0.6058567\",\n \"0.60460776\",\n \"0.6041136\",\n \"0.6000807\",\n \"0.59886736\",\n \"0.5963192\",\n \"0.59393424\",\n \"0.5933686\",\n \"0.58940554\",\n \"0.58772624\",\n \"0.5863619\",\n \"0.58436424\",\n \"0.58160514\",\n \"0.5764119\",\n \"0.57492757\",\n \"0.57266253\",\n \"0.57125914\",\n \"0.5700364\",\n \"0.5684635\",\n \"0.5676126\",\n \"0.5667659\",\n \"0.5662206\",\n \"0.5660475\",\n \"0.56536347\",\n \"0.56519216\",\n \"0.56519216\",\n \"0.5645596\",\n \"0.5627322\",\n \"0.5601088\",\n \"0.55938244\",\n \"0.55556136\",\n \"0.55545044\",\n \"0.5549775\",\n \"0.55463624\",\n \"0.5543075\",\n \"0.55354804\",\n \"0.5532991\",\n \"0.5532267\",\n \"0.55262315\",\n \"0.55158114\",\n \"0.55085826\",\n \"0.5505845\",\n \"0.5502992\",\n \"0.5501673\",\n \"0.54884773\",\n \"0.54792\",\n \"0.54724854\",\n \"0.54576087\",\n \"0.54528916\",\n \"0.54522675\",\n \"0.5446201\",\n \"0.54442716\",\n \"0.54425985\",\n \"0.5441236\",\n \"0.54359853\",\n \"0.5419871\",\n \"0.5397935\",\n \"0.5396511\",\n \"0.53930414\",\n \"0.5381369\",\n \"0.53791195\",\n \"0.53659767\",\n \"0.53659666\",\n \"0.53653175\",\n \"0.5364616\",\n \"0.5361781\",\n \"0.53595686\",\n \"0.5353822\",\n \"0.53514373\",\n \"0.53514373\",\n \"0.534927\",\n \"0.53481835\",\n \"0.5346854\",\n \"0.5343921\",\n \"0.53379256\",\n \"0.53371733\",\n \"0.5334594\",\n \"0.5333462\",\n \"0.5332832\",\n \"0.5332541\",\n \"0.53292257\",\n \"0.532855\",\n \"0.5325892\",\n \"0.53243244\",\n \"0.532249\",\n \"0.53207254\",\n \"0.53184307\",\n \"0.53183174\",\n \"0.5317046\",\n \"0.5315015\",\n \"0.5311831\",\n \"0.53082645\",\n \"0.53048193\",\n \"0.53047204\",\n \"0.5303848\",\n \"0.5301674\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":81549,"cells":{"query":{"kind":"string","value":"change msg in msg window"},"document":{"kind":"string","value":"function fnchangeMsg(){\r\n\tvar msgObj=getElement(\"msgendTurn\");\r\n\tmsgObj.innerHTML=\"Three Days Later...\";\r\n\tclearTimeout(intID);\r\n objMessageContent.innerHTML=\"\";\r\n fnSendRequest(endTaskReq);\r\n\tindId1= setTimeout(fndisapWindow, 2000);\t\r\n\tboolendTurn=false;\r\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function setMessage(msg) {\n\t\tdocument.getElementById(\"message\").innerText = msg;\n\t}","function message(msg){\n document.getElementById('message').innerHTML = msg;\n }","function setMessage(msg) {\r\n\t\tdocument.getElementById(\"message\").innerHTML = msg;\r\n\t\tdocument.getElementById(\"message\").style.color = 'navy';\r\n\t\tdocument.getElementById(\"message\").style.fontSize = '18px';\r\n\t}","function tell(msg) {\n $(\".output\").val(msg);\n }","function showMsg(msg)\n\t{\n\t\t\n\t\tvar msgdiv = document.getElementById(\"msg\");\n\t\tmsgdiv.innerText = msg; \n\t\t\n\t}","function setUpdateMessage(msg) {\n document.getElementById('updating').innerHTML = msg;\n }","function tell(msg) {\n $(\".output\").val(msg);\n }","function setMessage(msg) {\n\n\tdocument.getElementById(\"message\").innerHTML = msg;\n}","function showMessage(msg) {\r\n\tmsg = msg ? msg : message('message_saved');\r\n\tdocument.getElementById('message_text').innerText = msg;\r\n\tsetTimeout(function (){document.getElementById('message_text').innerHTML = \"&nbsp;\";}, 1000);\r\n}","setMessage(msg) \n {\n document.getElementById('message').innerHTML = msg;\n }","function setMessage2(msg) {\r\n\t\tdocument.getElementById(\"message2\").innerHTML = msg;\r\n\t\tdocument.getElementById(\"message2\").style.color = 'blue';\r\n\t\tdocument.getElementById(\"message2\").style.fontSize = '16px';\r\n\t}","function ShowMessage(mesTitle, mesContent, type) {\n $.msgBox({\n title: mesTitle,\n content: mesContent,\n type: type,\n autoClose: false\n });\n}","handleMessage(myMessage) { \n this.message = myMessage;\n this.showMode=true; \n }","function setMessage(msg, color){\n Message.style.color = color;\n Message.textContent = msg;\n }","function msgBoxShow(title, content, type) {\n $.msgBox({\n title: title,\n content: content,\n type: type,\n showButtons: false,\n opacity: 0.9,\n autoClose:true\n });\n}","function msgBoxShow(title, content, type) {\n $.msgBox({\n title: title,\n content: content,\n type: type,\n showButtons: false,\n opacity: 0.9,\n autoClose:true\n });\n}","function setMessage(msg){\n\tdocument.getElementById('gameMessage').innerHTML = msg;\n}","function msg(id,message){\n $(id).text(message).show;\n }","function msg(id,message){\n $(id).text(message).show;\n }","function show_message(msg, title) {\n document.getElementById(\"msg\").innerHTML = msg;\n document.getElementById(\"msg-title\").innerHTML = title;\n const dialog = new mdc.dialog.MDCDialog(document.getElementById(\"msg-dialog\"));\n dialog.show();\n}","function ShowMessage( _msg, _ok ) {\r\n var width = 300;\r\n var height = 120;\r\n var left = (window.outerWidth - width) / 2;\r\n var top = (window.outerHeight - height) / 2;\r\n var MsgWin = window.open(\"\", \"MSGWIN\", \"left=\"+left+\",top=\"+top+\",innerwidth=\"+width+\",innerheight=\"+height+\",status=0,chrome=0\");\r\n var d = MsgWin.document;\r\n d.writeln('');\r\n d.writeln('');\r\n d.writeln('');\r\n d.writeln('');\r\n d.writeln('');\r\n if (_ok === false) {\r\n // don't show OK button yet\r\n d.writeln(_msg);\r\n } else {\r\n d.writeln('
'+_msg+'
');\r\n d.writeln('');\r\n }\r\n d.writeln('');\r\n d.close();\r\n win.focus();\r\n return false;\r\n}","function Msg(modal) {\n closeSideBar();\n notify({\n msg: 'Msg by itself.\\nExpecting a default OK',\n modal,\n });\n}","function setMessage(msg, color){\r\n messageUIE.style.color = color;\r\n messageUIE.textContent = msg;\r\n}","function showMsg(msg, alt) {\n $((\"#rtc-info\")).val('* message: ' + msg);\n if (alt)\n alert(msg);\n}","function setErroMsg(msg){ \r\n\t\tstate = 5;\r\n\t\topenPanel(msg);\r\n\t}","function sendMessage() {\n text = newMessage.val();\n if (text) {\n // Refactored:\n msgDisplay(text, true);\n }\n }","function setMessage (msg){\n document.getElementById(\"message\").innerHTML=msg;\n}","function message(msg){\n\tdocument.getElementById('output').innerHTML = msg + \" event\"\n}","function show_message(msg, t) {\n if ( _via_message_clear_timer ) {\n clearTimeout(_via_message_clear_timer); // stop any previous timeouts\n }\n var timeout = t;\n if ( typeof t === 'undefined' ) {\n timeout = VIA_THEME_MESSAGE_TIMEOUT_MS;\n }\n document.getElementById('message_panel').innerHTML = msg;\n _via_message_clear_timer = setTimeout( function() {\n document.getElementById('message_panel').innerHTML = ' ';\n }, timeout);\n}","function setMessage(msg) {\n var displayBox = document.querySelector('div.status');\n displayBox.innerHTML = msg;\n}","function displayMessage(msg, character) {\r\n self.displayMessage(msg, character);\r\n }","function imprimeSysMsg(msg) {\n const p = document.createElement('p');\n p.setAttribute(\"classe\", \"sistema-msg\");\n p.innerHTML = msg;\n document.querySelector('#secao-exibe-mensagem').append(p);\n scrollDownChatWindows();\n\n // Autofocus na caixa de texto\n document.querySelector(\"#usuario_mensagem\").focus();\n }","function msg(id,message){\n $(id).text(message).show;\n}","function setLogMensager(msg){ \r\n\t\tstate = 2;\r\n\t\topenPanel(msg);\r\n\t}","function Message(msg){\r\n const mes_ele = document.createElement('div');\r\n mes_ele.innerText = msg;\r\n mes.append(mes_ele);\r\n }","function updateDisplay(msg){\n\t\t//displays story\n\t\tvar target=document.getElementById(\"OutputTxtBox\");\n\t\ttarget.value=msg+\"\\n\"+target.value;\n\t\t//displays score\n\t\tdocument.getElementById(\"OutputScore\").value=score;\n\t}","function setMessage(msg){\n document.getElementById(\"message\").innerHTML = msg;\n}","function setMessage(msg) {\n document.getElementById(\"message\").innerText = msg;\n}","setMessage(title, msg) {\n let messageTitle = document.querySelector(\"#message_title\");\n let messageText = document.querySelector(\"#message_text\");\n let messageLoader = document.querySelector(\"#message_loader\");\n\n messageLoader.style.display = \"none\";\n if (title) {\n messageTitle.innerHTML = title;\n }\n messageText.innerHTML = msg;\n }","function addMessage(msg) {\r\n msg = msg.replace(\" class='messageERROR' \", \"\");\r\n msg = msg.replace(\" class='messageOK' \", \"\");\r\n msg = msg.replace(\" class='messageWARNING' \", \"\");\r\n msg = msg.replace(\" class='messageNO_CHANGE' \", \"\");\r\n msg = msg.replace(\"
\", \", \");\r\n msg = msg.replace(\"
\", \", \");\r\n msg = msg.replace(\"
\", \"\");\r\n msg = msg.replace(\"
\", \"\");\r\n msg = msg.replace(\"
\", \"\");\r\n msg = msg.replace(\"
\", \"\");\r\n var msgDiv = dojo.byId(\"messageDiv\");\r\n if (msgDiv) {\r\n msgDiv.innerHTML = \"[\" + getTime() + \"] \" + msg + \"
\"\r\n + msgDiv.innerHTML;\r\n }\r\n}","function ilm_display(msg) {\r\n\tdocument.querySelector('#ilm_container .ilm_msg').textContent = msg;\r\n}","function showMsg(msg, color) {\n // Empty the input field for user's ease\n guessField.value = \"\";\n // Appending the message into the tab\n msgTab.innerHTML = `

${msg}

`;\n // Change the background color according to the condition\n document.body.style.backgroundColor = color;\n // Pop up the message\n msgTab.style.display = \"block\";\n}","function sendAddonMessage (msg) {\n browser.runtime.sendMessage(\n\t{source: \"sidebar:\"+myWindowId,\n\t content: msg\n\t}\n ).then(handleMsgResponse, handleMsgError);\n}","function ksfCanvas_toolText(msg)\n{\n\tif (tool_popover !== null)\n\t{\n\t\ttool_popover.text(msg);\n\t}\n}","function showMessage(msg) {\n displayMessage.innerText = msg;\n}","function setMessage(msg) { // worker function does something when you ask it too.\n $('#message').text(msg);\n}","function showComingMsg(data) {\r\n addMsg(data, \"someone-else\");\r\n}","function setMessageDialog(){\n\tif($('#message').length){\n\t\tshowMessage($('#message').text());\n\t}\n}","function update_message(text, hint) {\n if(hint){\n $(\"#message_window > .description\").html(''+text+'
')\n .append(hint);\n } else {\n $(\"#message_window > .description\").html(text);\n }\n bring_to_front($('#message_window'));\n}","updateMsg(msg) {\n let errmsg = `${msg}`;\n this.tableerr.html(errmsg);\n this.tableerr.show();\n }","function postMessage(msg) {\n // alert (msg);\n $(\"#gameMessage\").text(msg);\n }","function Display_showGameMessage(_msg) {\n\t// Clear out previous messages\n\tthis.clear(document.getElementById(\"divAboveAll\"));\n\n\t// Show messagebox\n\tvar divMessageBox = document.createElementNS(this.xhtmlns, \"div\");\n\tdivMessageBox.setAttribute(\"id\", \"divMessageBox\");\n\t\t// Message\n\t\tdivMessageBox.appendChild(document.createTextNode(_msg));\n\n\tdocument.getElementById(\"divAboveAll\").appendChild(divMessageBox);\n\n\tvar messageBoxIn = new Animation(\"divMessageBox\");\n\tmessageBoxIn.onComplete = function() {\n\t\tvar messageBoxOut = new Animation(\"divMessageBox\");\n\t\tmessageBoxOut.onComplete = function() {\n\t\t\tdisplay.removeGameMessage();\n\t\t}\n\t\tmessageBoxOut.cssAttributeMotion(\"bottom\", -120, \"px\", 2);\n\t}\n\tmessageBoxIn.cssAttributeMotion(\"bottom\", 0, \"px\", .75);\n}","function changeTourMessage() {\n\n $('#paraTourMsg').html(tourMessageList[tourIdList]);\n CreateEvent();\n }","function addMessage(msg){\n $('#msgs').text(msg+\" \");\n}","function view_messages(msg) {\n jQuery(\"#messages_plugin\").empty();\n jQuery(\"#messages_plugin\").html(msg);\n jQuery(\"#messages_plugin\").fadeIn(200);\n jQuery(\"#messages_plugin\").fadeOut(5000);\n }","function updateMessaageAlert(msg)\n{\n\t//Defining basicConf parameter for alert\n\tvar basicConf = {message:msg ,alertType: constants.ALERT_TYPE_INFO};\n\t//Defining pspConf parameter for alert\n\tvar pspConf = {};\n\t//Alert definition\n\tvar infoAlert = kony.ui.Alert(basicConf,pspConf);\n}","function message(msg) {\n var status = document.getElementById('status');\n status.textContent = msg;\n setTimeout(function() {\n status.textContent = '';\n }, 1500);\n}","setMessage(info) {\n this.showRestartTip = info.showRestartTip;\n this.header.setText(info.header);\n this.message.setText(info.message);\n\n let headerWidth = this.header.getWidth();\n let messageWidth = this.message.getWidth();\n let longer = Math.max(headerWidth, messageWidth);\n let margin = 15;\n this.box.x = ((SCREEN.WIDTH - longer) / 2) - margin;\n this.box.width = longer + margin * 2;\n }","function showMessage() {\n showHide(chosenMessage, loader);\n currentMessage = retrieveMessage();\n chosenMessage.innerHTML = \"\";\n chosenMessage.innerHTML += `${currentMessage}`;\n show(clearMessage);\n // show(favoriteButton);\n}","function setMsg(msg) {\n\tif (msg != \"\") {\n\t\t$('#signal-msg').html(msg).fadeOut(1000);\n\t\treturn true;\n\t}\n\treturn false;\n}","function showMessage( msg )\r\n{\r\n\tdocument.getElementById(\"message\").style.visibility = \"visible\";\r\n\t document.getElementById(\"messageText\").innerHTML = msg;\r\n\tif ( msg == \"\" ) document.getElementById(\"message\").style.visibility = \"hidden\";\r\n}","function messageWin(message) {\n $messageBoard.text(message)\n //could add a display-block here\n}","function writeMsg(txt) {\n document.getElementById('gameMsg').innerHTML = txt;\n showGameMsg();\n}","function ShowMessage(msg) {\n\tdocument.getElementById(\"message\").innerHTML += \"

\"+msg+\"

\";\n}","function showMess(mess){\n\tShowMessage(mess,true,true);\n\tsetTimeout(hideMessage,500);\n}","function showMsg() {\n\tokButton.textContent = 'OK';\n\talertPre.textContent = demo_msgs;\n\talertArea.style.display = 'block';\n}","function message(msg) {\n\tdocument.getElementById('alert-box').innerHTML = msg;\n}","function showMsgOnTop(msg) {\n $('#show-message').find('button').removeAttr('data-dismiss');\n $('#show-message')\n .find('button')\n .oneWrap('click', function (e) {\n $('#show-message').modal('hide');\n $('#show-message').find('button').attr('data-dismiss', 'modal');\n });\n MSG.displayInformation({\n rc: 'not ok',\n }, '', msg);\n }","function msgDisplayer(msg, msgDisplayType) {\r\n messageDisplay.innerHTML = msg;\r\n messageDisplay.classList = msgDisplayType;\r\n if (msgDisplay) {\r\n setTimeout(function () {\r\n msgDisplay.style.display = 'none';\r\n }, 3000);\r\n msgDisplay.style.display = 'block';\r\n }\r\n}","function MessageDisplayWidget() {}","function render_msg(msg) {\r\n ///This function gets a msg in the form\r\n /// author:\r\n /// msg:\r\n // var divEl = xo.getDom('');\r\n // var el = xo.DomHelper.createDom({\r\n // \"tag\": \"div\",\r\n // \"class\": \"message\",\r\n // \"html\": \"User \" + msg.author + \": \" + msg.data\r\n // }, divEl);\r\n // \r\n }","function messager(mes) {\n message.innerHTML = mes;\n\n}","function message(msg) {\n $(\"#logger\").text(msg);\n }","function msg() {\r\n\t\tsetTimeout(function () {\r\n\t\t\tif(message !== lastMessage) {\r\n\t\t\t\t//client.sendMessage(chanObj, message);\r\n\t\t\t\tchanObj.send(message);\r\n\t\t\t\tlastMessage = message;\r\n\t\t\t}\r\n\t\t\tmsg();\r\n\t\t}, 100);\r\n\t}","function systemMessage(msg) {\n}","function display(node, msg) {\n console.log( \"got:\" + msg.payload);\n\t\n // preprocess the string if we want\n // - dimensions?\n // - screen scrollage?\n\n // clear the screen\n // push the new message \n if (msg.light==true ){\n msg.light = \"on\";\n } else {\n msg.light = \"off\";\n }\n\n\n \n if (node.child != null) {\n node.log(\"push the msg to the driver\");\n node.child.stdin.write('light ' + msg.light + '\\n');\n node.child.stdin.write('disp ' + msg.payload + '\\n');\n } else {\n executeCmd(node, \"disp \" + msg );\n }\n\n} // display function","function MessageEdit(msgIndex)\n{\n\tconsole.log(msgIndex)\n\t setTimeout(function() {\n\t\t var index=parseInt(msgIndex);\n\t\t\tgeneralChannel.getMessages(1,index,).then(function(m){\n\t\t\t\t\t\n\t\t\t\t\tconsole.log(\"getmessage\",m);\t\t \n\t\t\t\t\t\n\t\t\t\t\tEditMessageDisplay(m)\n\t\t\t}) \n\t\n\t }, 10);\n}","function addMsgFromSys(msg){\n\t$.scojs_message(msg, $.scojs_message.TYPE_OK);\n}","function displayMessage(type, message) {\n msgDiv.textContent = message;\n msgDiv.setAttribute(\"class\", type);\n }","function displayInfoText(newMessage) {\n\tsetupWebKitGlobals();\n\t\n\tif (globals.webKitWin.setString) {\n\tglobals.webKitWin.setString(\"staticTextArea\", newMessage);\n}\n}","function msg(x) {\r\n\t\treturn $(\"#board\").text(x);\r\n\t}","function showMessageResult(msgObj){\n // msgObj = {\n // result: result,\n // msgID: msgObj.id\n // }\n\n // Set color for send result at self message..\n var msgBar = document.getElementById(\"msg_\" + msgObj.msgID);\n if(!msgBar)\n return;\n\n if(msgObj.result == \"true\") {\n msgBar.setAttribute('style', \"color: #fff6ea;\");\n var msgData = messageQueue.find(function(oneData) {\n return oneData.id === msgObj.msgID;\n });\n messageQueue.splice(messageQueue.indexOf(msgData), 1);\n }\n else if(msgObj.result == \"false\"){\n msgBar.setAttribute('style', \"color: #e48f8f;\");\n var msgData = messageQueue.find(function(oneData) {\n return oneData.id === msgObj.msgID;\n });\n msgData.state = \"NS\";\n }\n}","function updateLabel(msg) {\n $(\"#status_label\").text(msg);\n }","function showMessage (msg) {\n document.getElementById(MESSAGE_BANNER_ID).innerText = msg;\n location.href = `#${MESSAGE_BANNER_ID}`;\n setTimeout(() => { closeModalWindow() }, MESSAGE_BANNER_DELAY);\n}","function muestraMsg(titulo, mensaje, okButton, tipoMsg, okMsg = \"OK\", closeMsg = \"Close\") {\n document.getElementById(\"idMdlOK\").innerHTML = okMsg;\n document.getElementById(\"idMdlClose\").innerHTML = closeMsg;\n\n myModal.hide();\n switch (tipoMsg) {\n case \"error\":\n {\n titulo = \" \" + titulo;\n }\n break;\n case \"question\":\n {\n titulo = \" \" + titulo;\n }\n break;\n default:\n {\n titulo = \" \" + titulo;\n }\n break;\n }\n document.getElementById(\"idMdlTitle\").innerHTML = titulo;\n document.getElementById(\"idMdlMsg\").innerHTML = mensaje;\n document.getElementById(\"idMdlOK\").style.display = okButton ? \"block\" : \"none\";\n\n myModal.show();\n}","function muestraMsg(titulo, mensaje, okButton, tipoMsg, okMsg = \"OK\", closeMsg = \"Close\") {\n document.getElementById(\"idMdlOK\").innerHTML = okMsg;\n document.getElementById(\"idMdlClose\").innerHTML = closeMsg;\n\n myModal.hide();\n switch (tipoMsg) {\n case \"error\":\n {\n titulo = \" \" + titulo;\n }\n break;\n case \"question\":\n {\n titulo = \" \" + titulo;\n }\n break;\n default:\n {\n titulo = \" \" + titulo;\n }\n break;\n }\n document.getElementById(\"idMdlTitle\").innerHTML = titulo;\n document.getElementById(\"idMdlMsg\").innerHTML = mensaje;\n document.getElementById(\"idMdlOK\").style.display = okButton ? \"block\" : \"none\";\n\n myModal.show();\n}","function showNotificationMsg(kind, msg) {\n coretsx.pushNotificationMessage({ kind: kind, text: msg, hc: exports.highContrast });\n}","function showNotificationMsg(kind, msg) {\n coretsx.pushNotificationMessage({ kind: kind, text: msg, hc: exports.highContrast });\n}","function commandResult(msg,className) {\n column = -1;\n updatePromptDisplay();\n if (typeof msg == 'string') {\n message(msg,className);\n } else {\n for (var x in msg) {\n var ret = msg[x];\n message(ret.msg,ret.className);\n }\n }\n newPromptBox();\n }","function displayMessage(type, message) {\n msgDiv.text(message);\n msgDiv.attr(\"class\", type);\n}","updateMessage() {\n if(this.pente.winner) {\n this.interface.updatePenteStatusMessage(\"Gameover (\"\n + ((this.pente.winner == \"w\") ? \"P1\" : \"P2\") + \" Won)\");\n return;\n }\n\n if(!this.pente.active_game) {\n this.interface.updatePenteStatusMessage(\"Choose a game mode\");\n return; \n }\n\n switch(this.pente.game_mode) {\n case 1: \n if(this.pente.next == \"w\") this.interface.updatePenteStatusMessage(\"P1 Turn\"); \n else this.interface.updatePenteStatusMessage(\"P2 Turn\"); \n break;\n case 2: \n if(this.pente.next == \"w\") this.interface.updatePenteStatusMessage(\"P1 Turn\"); \n else this.interface.updatePenteStatusMessage(\"BOT2 Turn\"); \n break;\n case 3: \n if(this.pente.next == \"w\") this.interface.updatePenteStatusMessage(\"BOT1 Turn\"); \n else this.interface.updatePenteStatusMessage(\"P2 Turn\"); \n break;\n case 4: \n if(this.pente.next == \"w\") this.interface.updatePenteStatusMessage(\"BOT1 Turn\"); \n else this.interface.updatePenteStatusMessage(\"BOT2 Turn\"); \n break;\n }\n }","function setInformationalMessage(sMsg) {\r\n var sTotalMsg = \"\";\r\n sTotalMsg = getMsg(sMsg);\r\n displayErrors(sTotalMsg);\r\n document.all.errorMsg.focus();\r\n}","function ok() {\n timer();\n var msgCopy = $(\"#template .msgpc\").clone();\n msgCopy.find(\".txt\").text(\"ok\");\n msgCopy.find(\".time\").text(timer);\n $(\"#chatwindow .chatsbox.active .chatbox\").prepend(msgCopy);\n }","function setTextMessage(text) {\n // setting text for message\n message.text = text;\n}","function onNewMessage(myId, msg, msgtype)\n{\n\tm.startComputation();\n\tthis.textHistory().push([myId, msg, msgtype]);\n\tm.endComputation();\n}","function handleMessage(msg, state = 'open') {\n errorDiv.innerText = msg;\n state === 'hide' ? errorDiv.classList.add('hide') : errorDiv.classList.remove('hide');\n gameOver = true;\n Timer.stopTimer();\n }","function displayMsg(msg, title, displayOKButton) {\n if (!messageShown) {\n messageShown = true;\n if (displayOKButton == undefined) {\n displayOKButton = true;\n }\n if (displayOKButton) {\n jQMsg = $('
').html(msg).dialog({\n title: title,\n resizable: false,\n buttons: {\n OK: function() {\n $(this).dialog(\"close\");\n }\n },\n close: function(event, ui) {\n messageShown = false;\n }\n });\n } else {\n $('
').html(msg).dialog({\n title: title,\n resizable: false,\n close: function(event, ui) {\n messageShown = false;\n }\n });\n }\n } else {\n if (jQMsg != undefined) {\n jQMsg.append(\"
\" + msg);\n }\n }\n}","function mostrarAyuda(msg) {\n $.notify({\n message: msg\n }, {\n type: 'info',\n delay: 3000,\n placement: {\n align: 'center'\n },\n z_index: 99999,\n });\n}","function sendWindow() {\r\n\tsendWriteAction(actualMessage);\r\n}","function fn_replymsg(msgid)\n{\t\n\tremovesections(\"#tools-message-view\");\n\tshowpageswithpostmethod(\"tools-message-reply\",\"tools/message/tools-message-reply.php\",\"msgid=\"+msgid);\n}","function ActionMessage(msg) {\n var $replacement = $('
').text(msg);\n $row.find('.action_col').replaceWith($replacement);\n }"],"string":"[\n \"function setMessage(msg) {\\n\\t\\tdocument.getElementById(\\\"message\\\").innerText = msg;\\n\\t}\",\n \"function message(msg){\\n document.getElementById('message').innerHTML = msg;\\n }\",\n \"function setMessage(msg) {\\r\\n\\t\\tdocument.getElementById(\\\"message\\\").innerHTML = msg;\\r\\n\\t\\tdocument.getElementById(\\\"message\\\").style.color = 'navy';\\r\\n\\t\\tdocument.getElementById(\\\"message\\\").style.fontSize = '18px';\\r\\n\\t}\",\n \"function tell(msg) {\\n $(\\\".output\\\").val(msg);\\n }\",\n \"function showMsg(msg)\\n\\t{\\n\\t\\t\\n\\t\\tvar msgdiv = document.getElementById(\\\"msg\\\");\\n\\t\\tmsgdiv.innerText = msg; \\n\\t\\t\\n\\t}\",\n \"function setUpdateMessage(msg) {\\n document.getElementById('updating').innerHTML = msg;\\n }\",\n \"function tell(msg) {\\n $(\\\".output\\\").val(msg);\\n }\",\n \"function setMessage(msg) {\\n\\n\\tdocument.getElementById(\\\"message\\\").innerHTML = msg;\\n}\",\n \"function showMessage(msg) {\\r\\n\\tmsg = msg ? msg : message('message_saved');\\r\\n\\tdocument.getElementById('message_text').innerText = msg;\\r\\n\\tsetTimeout(function (){document.getElementById('message_text').innerHTML = \\\"&nbsp;\\\";}, 1000);\\r\\n}\",\n \"setMessage(msg) \\n {\\n document.getElementById('message').innerHTML = msg;\\n }\",\n \"function setMessage2(msg) {\\r\\n\\t\\tdocument.getElementById(\\\"message2\\\").innerHTML = msg;\\r\\n\\t\\tdocument.getElementById(\\\"message2\\\").style.color = 'blue';\\r\\n\\t\\tdocument.getElementById(\\\"message2\\\").style.fontSize = '16px';\\r\\n\\t}\",\n \"function ShowMessage(mesTitle, mesContent, type) {\\n $.msgBox({\\n title: mesTitle,\\n content: mesContent,\\n type: type,\\n autoClose: false\\n });\\n}\",\n \"handleMessage(myMessage) { \\n this.message = myMessage;\\n this.showMode=true; \\n }\",\n \"function setMessage(msg, color){\\n Message.style.color = color;\\n Message.textContent = msg;\\n }\",\n \"function msgBoxShow(title, content, type) {\\n $.msgBox({\\n title: title,\\n content: content,\\n type: type,\\n showButtons: false,\\n opacity: 0.9,\\n autoClose:true\\n });\\n}\",\n \"function msgBoxShow(title, content, type) {\\n $.msgBox({\\n title: title,\\n content: content,\\n type: type,\\n showButtons: false,\\n opacity: 0.9,\\n autoClose:true\\n });\\n}\",\n \"function setMessage(msg){\\n\\tdocument.getElementById('gameMessage').innerHTML = msg;\\n}\",\n \"function msg(id,message){\\n $(id).text(message).show;\\n }\",\n \"function msg(id,message){\\n $(id).text(message).show;\\n }\",\n \"function show_message(msg, title) {\\n document.getElementById(\\\"msg\\\").innerHTML = msg;\\n document.getElementById(\\\"msg-title\\\").innerHTML = title;\\n const dialog = new mdc.dialog.MDCDialog(document.getElementById(\\\"msg-dialog\\\"));\\n dialog.show();\\n}\",\n \"function ShowMessage( _msg, _ok ) {\\r\\n var width = 300;\\r\\n var height = 120;\\r\\n var left = (window.outerWidth - width) / 2;\\r\\n var top = (window.outerHeight - height) / 2;\\r\\n var MsgWin = window.open(\\\"\\\", \\\"MSGWIN\\\", \\\"left=\\\"+left+\\\",top=\\\"+top+\\\",innerwidth=\\\"+width+\\\",innerheight=\\\"+height+\\\",status=0,chrome=0\\\");\\r\\n var d = MsgWin.document;\\r\\n d.writeln('');\\r\\n d.writeln('');\\r\\n d.writeln('');\\r\\n d.writeln('');\\r\\n d.writeln('');\\r\\n if (_ok === false) {\\r\\n // don't show OK button yet\\r\\n d.writeln(_msg);\\r\\n } else {\\r\\n d.writeln('
'+_msg+'
');\\r\\n d.writeln('');\\r\\n }\\r\\n d.writeln('');\\r\\n d.close();\\r\\n win.focus();\\r\\n return false;\\r\\n}\",\n \"function Msg(modal) {\\n closeSideBar();\\n notify({\\n msg: 'Msg by itself.\\\\nExpecting a default OK',\\n modal,\\n });\\n}\",\n \"function setMessage(msg, color){\\r\\n messageUIE.style.color = color;\\r\\n messageUIE.textContent = msg;\\r\\n}\",\n \"function showMsg(msg, alt) {\\n $((\\\"#rtc-info\\\")).val('* message: ' + msg);\\n if (alt)\\n alert(msg);\\n}\",\n \"function setErroMsg(msg){ \\r\\n\\t\\tstate = 5;\\r\\n\\t\\topenPanel(msg);\\r\\n\\t}\",\n \"function sendMessage() {\\n text = newMessage.val();\\n if (text) {\\n // Refactored:\\n msgDisplay(text, true);\\n }\\n }\",\n \"function setMessage (msg){\\n document.getElementById(\\\"message\\\").innerHTML=msg;\\n}\",\n \"function message(msg){\\n\\tdocument.getElementById('output').innerHTML = msg + \\\" event\\\"\\n}\",\n \"function show_message(msg, t) {\\n if ( _via_message_clear_timer ) {\\n clearTimeout(_via_message_clear_timer); // stop any previous timeouts\\n }\\n var timeout = t;\\n if ( typeof t === 'undefined' ) {\\n timeout = VIA_THEME_MESSAGE_TIMEOUT_MS;\\n }\\n document.getElementById('message_panel').innerHTML = msg;\\n _via_message_clear_timer = setTimeout( function() {\\n document.getElementById('message_panel').innerHTML = ' ';\\n }, timeout);\\n}\",\n \"function setMessage(msg) {\\n var displayBox = document.querySelector('div.status');\\n displayBox.innerHTML = msg;\\n}\",\n \"function displayMessage(msg, character) {\\r\\n self.displayMessage(msg, character);\\r\\n }\",\n \"function imprimeSysMsg(msg) {\\n const p = document.createElement('p');\\n p.setAttribute(\\\"classe\\\", \\\"sistema-msg\\\");\\n p.innerHTML = msg;\\n document.querySelector('#secao-exibe-mensagem').append(p);\\n scrollDownChatWindows();\\n\\n // Autofocus na caixa de texto\\n document.querySelector(\\\"#usuario_mensagem\\\").focus();\\n }\",\n \"function msg(id,message){\\n $(id).text(message).show;\\n}\",\n \"function setLogMensager(msg){ \\r\\n\\t\\tstate = 2;\\r\\n\\t\\topenPanel(msg);\\r\\n\\t}\",\n \"function Message(msg){\\r\\n const mes_ele = document.createElement('div');\\r\\n mes_ele.innerText = msg;\\r\\n mes.append(mes_ele);\\r\\n }\",\n \"function updateDisplay(msg){\\n\\t\\t//displays story\\n\\t\\tvar target=document.getElementById(\\\"OutputTxtBox\\\");\\n\\t\\ttarget.value=msg+\\\"\\\\n\\\"+target.value;\\n\\t\\t//displays score\\n\\t\\tdocument.getElementById(\\\"OutputScore\\\").value=score;\\n\\t}\",\n \"function setMessage(msg){\\n document.getElementById(\\\"message\\\").innerHTML = msg;\\n}\",\n \"function setMessage(msg) {\\n document.getElementById(\\\"message\\\").innerText = msg;\\n}\",\n \"setMessage(title, msg) {\\n let messageTitle = document.querySelector(\\\"#message_title\\\");\\n let messageText = document.querySelector(\\\"#message_text\\\");\\n let messageLoader = document.querySelector(\\\"#message_loader\\\");\\n\\n messageLoader.style.display = \\\"none\\\";\\n if (title) {\\n messageTitle.innerHTML = title;\\n }\\n messageText.innerHTML = msg;\\n }\",\n \"function addMessage(msg) {\\r\\n msg = msg.replace(\\\" class='messageERROR' \\\", \\\"\\\");\\r\\n msg = msg.replace(\\\" class='messageOK' \\\", \\\"\\\");\\r\\n msg = msg.replace(\\\" class='messageWARNING' \\\", \\\"\\\");\\r\\n msg = msg.replace(\\\" class='messageNO_CHANGE' \\\", \\\"\\\");\\r\\n msg = msg.replace(\\\"
\\\", \\\", \\\");\\r\\n msg = msg.replace(\\\"
\\\", \\\", \\\");\\r\\n msg = msg.replace(\\\"
\\\", \\\"\\\");\\r\\n msg = msg.replace(\\\"
\\\", \\\"\\\");\\r\\n msg = msg.replace(\\\"
\\\", \\\"\\\");\\r\\n msg = msg.replace(\\\"
\\\", \\\"\\\");\\r\\n var msgDiv = dojo.byId(\\\"messageDiv\\\");\\r\\n if (msgDiv) {\\r\\n msgDiv.innerHTML = \\\"[\\\" + getTime() + \\\"] \\\" + msg + \\\"
\\\"\\r\\n + msgDiv.innerHTML;\\r\\n }\\r\\n}\",\n \"function ilm_display(msg) {\\r\\n\\tdocument.querySelector('#ilm_container .ilm_msg').textContent = msg;\\r\\n}\",\n \"function showMsg(msg, color) {\\n // Empty the input field for user's ease\\n guessField.value = \\\"\\\";\\n // Appending the message into the tab\\n msgTab.innerHTML = `

${msg}

`;\\n // Change the background color according to the condition\\n document.body.style.backgroundColor = color;\\n // Pop up the message\\n msgTab.style.display = \\\"block\\\";\\n}\",\n \"function sendAddonMessage (msg) {\\n browser.runtime.sendMessage(\\n\\t{source: \\\"sidebar:\\\"+myWindowId,\\n\\t content: msg\\n\\t}\\n ).then(handleMsgResponse, handleMsgError);\\n}\",\n \"function ksfCanvas_toolText(msg)\\n{\\n\\tif (tool_popover !== null)\\n\\t{\\n\\t\\ttool_popover.text(msg);\\n\\t}\\n}\",\n \"function showMessage(msg) {\\n displayMessage.innerText = msg;\\n}\",\n \"function setMessage(msg) { // worker function does something when you ask it too.\\n $('#message').text(msg);\\n}\",\n \"function showComingMsg(data) {\\r\\n addMsg(data, \\\"someone-else\\\");\\r\\n}\",\n \"function setMessageDialog(){\\n\\tif($('#message').length){\\n\\t\\tshowMessage($('#message').text());\\n\\t}\\n}\",\n \"function update_message(text, hint) {\\n if(hint){\\n $(\\\"#message_window > .description\\\").html(''+text+'
')\\n .append(hint);\\n } else {\\n $(\\\"#message_window > .description\\\").html(text);\\n }\\n bring_to_front($('#message_window'));\\n}\",\n \"updateMsg(msg) {\\n let errmsg = `${msg}`;\\n this.tableerr.html(errmsg);\\n this.tableerr.show();\\n }\",\n \"function postMessage(msg) {\\n // alert (msg);\\n $(\\\"#gameMessage\\\").text(msg);\\n }\",\n \"function Display_showGameMessage(_msg) {\\n\\t// Clear out previous messages\\n\\tthis.clear(document.getElementById(\\\"divAboveAll\\\"));\\n\\n\\t// Show messagebox\\n\\tvar divMessageBox = document.createElementNS(this.xhtmlns, \\\"div\\\");\\n\\tdivMessageBox.setAttribute(\\\"id\\\", \\\"divMessageBox\\\");\\n\\t\\t// Message\\n\\t\\tdivMessageBox.appendChild(document.createTextNode(_msg));\\n\\n\\tdocument.getElementById(\\\"divAboveAll\\\").appendChild(divMessageBox);\\n\\n\\tvar messageBoxIn = new Animation(\\\"divMessageBox\\\");\\n\\tmessageBoxIn.onComplete = function() {\\n\\t\\tvar messageBoxOut = new Animation(\\\"divMessageBox\\\");\\n\\t\\tmessageBoxOut.onComplete = function() {\\n\\t\\t\\tdisplay.removeGameMessage();\\n\\t\\t}\\n\\t\\tmessageBoxOut.cssAttributeMotion(\\\"bottom\\\", -120, \\\"px\\\", 2);\\n\\t}\\n\\tmessageBoxIn.cssAttributeMotion(\\\"bottom\\\", 0, \\\"px\\\", .75);\\n}\",\n \"function changeTourMessage() {\\n\\n $('#paraTourMsg').html(tourMessageList[tourIdList]);\\n CreateEvent();\\n }\",\n \"function addMessage(msg){\\n $('#msgs').text(msg+\\\" \\\");\\n}\",\n \"function view_messages(msg) {\\n jQuery(\\\"#messages_plugin\\\").empty();\\n jQuery(\\\"#messages_plugin\\\").html(msg);\\n jQuery(\\\"#messages_plugin\\\").fadeIn(200);\\n jQuery(\\\"#messages_plugin\\\").fadeOut(5000);\\n }\",\n \"function updateMessaageAlert(msg)\\n{\\n\\t//Defining basicConf parameter for alert\\n\\tvar basicConf = {message:msg ,alertType: constants.ALERT_TYPE_INFO};\\n\\t//Defining pspConf parameter for alert\\n\\tvar pspConf = {};\\n\\t//Alert definition\\n\\tvar infoAlert = kony.ui.Alert(basicConf,pspConf);\\n}\",\n \"function message(msg) {\\n var status = document.getElementById('status');\\n status.textContent = msg;\\n setTimeout(function() {\\n status.textContent = '';\\n }, 1500);\\n}\",\n \"setMessage(info) {\\n this.showRestartTip = info.showRestartTip;\\n this.header.setText(info.header);\\n this.message.setText(info.message);\\n\\n let headerWidth = this.header.getWidth();\\n let messageWidth = this.message.getWidth();\\n let longer = Math.max(headerWidth, messageWidth);\\n let margin = 15;\\n this.box.x = ((SCREEN.WIDTH - longer) / 2) - margin;\\n this.box.width = longer + margin * 2;\\n }\",\n \"function showMessage() {\\n showHide(chosenMessage, loader);\\n currentMessage = retrieveMessage();\\n chosenMessage.innerHTML = \\\"\\\";\\n chosenMessage.innerHTML += `${currentMessage}`;\\n show(clearMessage);\\n // show(favoriteButton);\\n}\",\n \"function setMsg(msg) {\\n\\tif (msg != \\\"\\\") {\\n\\t\\t$('#signal-msg').html(msg).fadeOut(1000);\\n\\t\\treturn true;\\n\\t}\\n\\treturn false;\\n}\",\n \"function showMessage( msg )\\r\\n{\\r\\n\\tdocument.getElementById(\\\"message\\\").style.visibility = \\\"visible\\\";\\r\\n\\t document.getElementById(\\\"messageText\\\").innerHTML = msg;\\r\\n\\tif ( msg == \\\"\\\" ) document.getElementById(\\\"message\\\").style.visibility = \\\"hidden\\\";\\r\\n}\",\n \"function messageWin(message) {\\n $messageBoard.text(message)\\n //could add a display-block here\\n}\",\n \"function writeMsg(txt) {\\n document.getElementById('gameMsg').innerHTML = txt;\\n showGameMsg();\\n}\",\n \"function ShowMessage(msg) {\\n\\tdocument.getElementById(\\\"message\\\").innerHTML += \\\"

\\\"+msg+\\\"

\\\";\\n}\",\n \"function showMess(mess){\\n\\tShowMessage(mess,true,true);\\n\\tsetTimeout(hideMessage,500);\\n}\",\n \"function showMsg() {\\n\\tokButton.textContent = 'OK';\\n\\talertPre.textContent = demo_msgs;\\n\\talertArea.style.display = 'block';\\n}\",\n \"function message(msg) {\\n\\tdocument.getElementById('alert-box').innerHTML = msg;\\n}\",\n \"function showMsgOnTop(msg) {\\n $('#show-message').find('button').removeAttr('data-dismiss');\\n $('#show-message')\\n .find('button')\\n .oneWrap('click', function (e) {\\n $('#show-message').modal('hide');\\n $('#show-message').find('button').attr('data-dismiss', 'modal');\\n });\\n MSG.displayInformation({\\n rc: 'not ok',\\n }, '', msg);\\n }\",\n \"function msgDisplayer(msg, msgDisplayType) {\\r\\n messageDisplay.innerHTML = msg;\\r\\n messageDisplay.classList = msgDisplayType;\\r\\n if (msgDisplay) {\\r\\n setTimeout(function () {\\r\\n msgDisplay.style.display = 'none';\\r\\n }, 3000);\\r\\n msgDisplay.style.display = 'block';\\r\\n }\\r\\n}\",\n \"function MessageDisplayWidget() {}\",\n \"function render_msg(msg) {\\r\\n ///This function gets a msg in the form\\r\\n /// author:\\r\\n /// msg:\\r\\n // var divEl = xo.getDom('');\\r\\n // var el = xo.DomHelper.createDom({\\r\\n // \\\"tag\\\": \\\"div\\\",\\r\\n // \\\"class\\\": \\\"message\\\",\\r\\n // \\\"html\\\": \\\"User \\\" + msg.author + \\\": \\\" + msg.data\\r\\n // }, divEl);\\r\\n // \\r\\n }\",\n \"function messager(mes) {\\n message.innerHTML = mes;\\n\\n}\",\n \"function message(msg) {\\n $(\\\"#logger\\\").text(msg);\\n }\",\n \"function msg() {\\r\\n\\t\\tsetTimeout(function () {\\r\\n\\t\\t\\tif(message !== lastMessage) {\\r\\n\\t\\t\\t\\t//client.sendMessage(chanObj, message);\\r\\n\\t\\t\\t\\tchanObj.send(message);\\r\\n\\t\\t\\t\\tlastMessage = message;\\r\\n\\t\\t\\t}\\r\\n\\t\\t\\tmsg();\\r\\n\\t\\t}, 100);\\r\\n\\t}\",\n \"function systemMessage(msg) {\\n}\",\n \"function display(node, msg) {\\n console.log( \\\"got:\\\" + msg.payload);\\n\\t\\n // preprocess the string if we want\\n // - dimensions?\\n // - screen scrollage?\\n\\n // clear the screen\\n // push the new message \\n if (msg.light==true ){\\n msg.light = \\\"on\\\";\\n } else {\\n msg.light = \\\"off\\\";\\n }\\n\\n\\n \\n if (node.child != null) {\\n node.log(\\\"push the msg to the driver\\\");\\n node.child.stdin.write('light ' + msg.light + '\\\\n');\\n node.child.stdin.write('disp ' + msg.payload + '\\\\n');\\n } else {\\n executeCmd(node, \\\"disp \\\" + msg );\\n }\\n\\n} // display function\",\n \"function MessageEdit(msgIndex)\\n{\\n\\tconsole.log(msgIndex)\\n\\t setTimeout(function() {\\n\\t\\t var index=parseInt(msgIndex);\\n\\t\\t\\tgeneralChannel.getMessages(1,index,).then(function(m){\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\tconsole.log(\\\"getmessage\\\",m);\\t\\t \\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\tEditMessageDisplay(m)\\n\\t\\t\\t}) \\n\\t\\n\\t }, 10);\\n}\",\n \"function addMsgFromSys(msg){\\n\\t$.scojs_message(msg, $.scojs_message.TYPE_OK);\\n}\",\n \"function displayMessage(type, message) {\\n msgDiv.textContent = message;\\n msgDiv.setAttribute(\\\"class\\\", type);\\n }\",\n \"function displayInfoText(newMessage) {\\n\\tsetupWebKitGlobals();\\n\\t\\n\\tif (globals.webKitWin.setString) {\\n\\tglobals.webKitWin.setString(\\\"staticTextArea\\\", newMessage);\\n}\\n}\",\n \"function msg(x) {\\r\\n\\t\\treturn $(\\\"#board\\\").text(x);\\r\\n\\t}\",\n \"function showMessageResult(msgObj){\\n // msgObj = {\\n // result: result,\\n // msgID: msgObj.id\\n // }\\n\\n // Set color for send result at self message..\\n var msgBar = document.getElementById(\\\"msg_\\\" + msgObj.msgID);\\n if(!msgBar)\\n return;\\n\\n if(msgObj.result == \\\"true\\\") {\\n msgBar.setAttribute('style', \\\"color: #fff6ea;\\\");\\n var msgData = messageQueue.find(function(oneData) {\\n return oneData.id === msgObj.msgID;\\n });\\n messageQueue.splice(messageQueue.indexOf(msgData), 1);\\n }\\n else if(msgObj.result == \\\"false\\\"){\\n msgBar.setAttribute('style', \\\"color: #e48f8f;\\\");\\n var msgData = messageQueue.find(function(oneData) {\\n return oneData.id === msgObj.msgID;\\n });\\n msgData.state = \\\"NS\\\";\\n }\\n}\",\n \"function updateLabel(msg) {\\n $(\\\"#status_label\\\").text(msg);\\n }\",\n \"function showMessage (msg) {\\n document.getElementById(MESSAGE_BANNER_ID).innerText = msg;\\n location.href = `#${MESSAGE_BANNER_ID}`;\\n setTimeout(() => { closeModalWindow() }, MESSAGE_BANNER_DELAY);\\n}\",\n \"function muestraMsg(titulo, mensaje, okButton, tipoMsg, okMsg = \\\"OK\\\", closeMsg = \\\"Close\\\") {\\n document.getElementById(\\\"idMdlOK\\\").innerHTML = okMsg;\\n document.getElementById(\\\"idMdlClose\\\").innerHTML = closeMsg;\\n\\n myModal.hide();\\n switch (tipoMsg) {\\n case \\\"error\\\":\\n {\\n titulo = \\\" \\\" + titulo;\\n }\\n break;\\n case \\\"question\\\":\\n {\\n titulo = \\\" \\\" + titulo;\\n }\\n break;\\n default:\\n {\\n titulo = \\\" \\\" + titulo;\\n }\\n break;\\n }\\n document.getElementById(\\\"idMdlTitle\\\").innerHTML = titulo;\\n document.getElementById(\\\"idMdlMsg\\\").innerHTML = mensaje;\\n document.getElementById(\\\"idMdlOK\\\").style.display = okButton ? \\\"block\\\" : \\\"none\\\";\\n\\n myModal.show();\\n}\",\n \"function muestraMsg(titulo, mensaje, okButton, tipoMsg, okMsg = \\\"OK\\\", closeMsg = \\\"Close\\\") {\\n document.getElementById(\\\"idMdlOK\\\").innerHTML = okMsg;\\n document.getElementById(\\\"idMdlClose\\\").innerHTML = closeMsg;\\n\\n myModal.hide();\\n switch (tipoMsg) {\\n case \\\"error\\\":\\n {\\n titulo = \\\" \\\" + titulo;\\n }\\n break;\\n case \\\"question\\\":\\n {\\n titulo = \\\" \\\" + titulo;\\n }\\n break;\\n default:\\n {\\n titulo = \\\" \\\" + titulo;\\n }\\n break;\\n }\\n document.getElementById(\\\"idMdlTitle\\\").innerHTML = titulo;\\n document.getElementById(\\\"idMdlMsg\\\").innerHTML = mensaje;\\n document.getElementById(\\\"idMdlOK\\\").style.display = okButton ? \\\"block\\\" : \\\"none\\\";\\n\\n myModal.show();\\n}\",\n \"function showNotificationMsg(kind, msg) {\\n coretsx.pushNotificationMessage({ kind: kind, text: msg, hc: exports.highContrast });\\n}\",\n \"function showNotificationMsg(kind, msg) {\\n coretsx.pushNotificationMessage({ kind: kind, text: msg, hc: exports.highContrast });\\n}\",\n \"function commandResult(msg,className) {\\n column = -1;\\n updatePromptDisplay();\\n if (typeof msg == 'string') {\\n message(msg,className);\\n } else {\\n for (var x in msg) {\\n var ret = msg[x];\\n message(ret.msg,ret.className);\\n }\\n }\\n newPromptBox();\\n }\",\n \"function displayMessage(type, message) {\\n msgDiv.text(message);\\n msgDiv.attr(\\\"class\\\", type);\\n}\",\n \"updateMessage() {\\n if(this.pente.winner) {\\n this.interface.updatePenteStatusMessage(\\\"Gameover (\\\"\\n + ((this.pente.winner == \\\"w\\\") ? \\\"P1\\\" : \\\"P2\\\") + \\\" Won)\\\");\\n return;\\n }\\n\\n if(!this.pente.active_game) {\\n this.interface.updatePenteStatusMessage(\\\"Choose a game mode\\\");\\n return; \\n }\\n\\n switch(this.pente.game_mode) {\\n case 1: \\n if(this.pente.next == \\\"w\\\") this.interface.updatePenteStatusMessage(\\\"P1 Turn\\\"); \\n else this.interface.updatePenteStatusMessage(\\\"P2 Turn\\\"); \\n break;\\n case 2: \\n if(this.pente.next == \\\"w\\\") this.interface.updatePenteStatusMessage(\\\"P1 Turn\\\"); \\n else this.interface.updatePenteStatusMessage(\\\"BOT2 Turn\\\"); \\n break;\\n case 3: \\n if(this.pente.next == \\\"w\\\") this.interface.updatePenteStatusMessage(\\\"BOT1 Turn\\\"); \\n else this.interface.updatePenteStatusMessage(\\\"P2 Turn\\\"); \\n break;\\n case 4: \\n if(this.pente.next == \\\"w\\\") this.interface.updatePenteStatusMessage(\\\"BOT1 Turn\\\"); \\n else this.interface.updatePenteStatusMessage(\\\"BOT2 Turn\\\"); \\n break;\\n }\\n }\",\n \"function setInformationalMessage(sMsg) {\\r\\n var sTotalMsg = \\\"\\\";\\r\\n sTotalMsg = getMsg(sMsg);\\r\\n displayErrors(sTotalMsg);\\r\\n document.all.errorMsg.focus();\\r\\n}\",\n \"function ok() {\\n timer();\\n var msgCopy = $(\\\"#template .msgpc\\\").clone();\\n msgCopy.find(\\\".txt\\\").text(\\\"ok\\\");\\n msgCopy.find(\\\".time\\\").text(timer);\\n $(\\\"#chatwindow .chatsbox.active .chatbox\\\").prepend(msgCopy);\\n }\",\n \"function setTextMessage(text) {\\n // setting text for message\\n message.text = text;\\n}\",\n \"function onNewMessage(myId, msg, msgtype)\\n{\\n\\tm.startComputation();\\n\\tthis.textHistory().push([myId, msg, msgtype]);\\n\\tm.endComputation();\\n}\",\n \"function handleMessage(msg, state = 'open') {\\n errorDiv.innerText = msg;\\n state === 'hide' ? errorDiv.classList.add('hide') : errorDiv.classList.remove('hide');\\n gameOver = true;\\n Timer.stopTimer();\\n }\",\n \"function displayMsg(msg, title, displayOKButton) {\\n if (!messageShown) {\\n messageShown = true;\\n if (displayOKButton == undefined) {\\n displayOKButton = true;\\n }\\n if (displayOKButton) {\\n jQMsg = $('
').html(msg).dialog({\\n title: title,\\n resizable: false,\\n buttons: {\\n OK: function() {\\n $(this).dialog(\\\"close\\\");\\n }\\n },\\n close: function(event, ui) {\\n messageShown = false;\\n }\\n });\\n } else {\\n $('
').html(msg).dialog({\\n title: title,\\n resizable: false,\\n close: function(event, ui) {\\n messageShown = false;\\n }\\n });\\n }\\n } else {\\n if (jQMsg != undefined) {\\n jQMsg.append(\\\"
\\\" + msg);\\n }\\n }\\n}\",\n \"function mostrarAyuda(msg) {\\n $.notify({\\n message: msg\\n }, {\\n type: 'info',\\n delay: 3000,\\n placement: {\\n align: 'center'\\n },\\n z_index: 99999,\\n });\\n}\",\n \"function sendWindow() {\\r\\n\\tsendWriteAction(actualMessage);\\r\\n}\",\n \"function fn_replymsg(msgid)\\n{\\t\\n\\tremovesections(\\\"#tools-message-view\\\");\\n\\tshowpageswithpostmethod(\\\"tools-message-reply\\\",\\\"tools/message/tools-message-reply.php\\\",\\\"msgid=\\\"+msgid);\\n}\",\n \"function ActionMessage(msg) {\\n var $replacement = $('
').text(msg);\\n $row.find('.action_col').replaceWith($replacement);\\n }\"\n]"},"negative_scores":{"kind":"list like","value":["0.7553137","0.7428704","0.7332055","0.7306665","0.7289676","0.7270689","0.7214323","0.7176618","0.71278757","0.7058379","0.7026881","0.7014531","0.700323","0.69790214","0.69496554","0.69496554","0.6913985","0.6910121","0.6910121","0.6900182","0.6889985","0.6876566","0.6870947","0.6842002","0.6819397","0.6813544","0.6804634","0.6740276","0.6721215","0.67184407","0.6718406","0.6704045","0.66986793","0.669791","0.66973126","0.66964567","0.6680936","0.6670311","0.66635054","0.666136","0.6659094","0.6622664","0.66202104","0.6617965","0.6602299","0.6599834","0.659908","0.65912616","0.6586993","0.65865856","0.658636","0.6585912","0.6571928","0.6566886","0.6561461","0.65309155","0.6527596","0.6526082","0.65196896","0.65153307","0.65114886","0.6496265","0.64936465","0.64832455","0.6478611","0.6465194","0.64561373","0.64501685","0.64489496","0.64482945","0.64473385","0.6441134","0.6428955","0.6423706","0.6419104","0.64047325","0.63951445","0.63805026","0.63757163","0.63697624","0.6357122","0.63561964","0.63545585","0.6354496","0.6354291","0.6354291","0.63537395","0.63537395","0.6352229","0.63482255","0.63458335","0.6345815","0.633937","0.63313353","0.6323136","0.63109535","0.6308302","0.6306148","0.6298156","0.62975794","0.6296208"],"string":"[\n \"0.7553137\",\n \"0.7428704\",\n \"0.7332055\",\n \"0.7306665\",\n \"0.7289676\",\n \"0.7270689\",\n \"0.7214323\",\n \"0.7176618\",\n \"0.71278757\",\n \"0.7058379\",\n \"0.7026881\",\n \"0.7014531\",\n \"0.700323\",\n \"0.69790214\",\n \"0.69496554\",\n \"0.69496554\",\n \"0.6913985\",\n \"0.6910121\",\n \"0.6910121\",\n \"0.6900182\",\n \"0.6889985\",\n \"0.6876566\",\n \"0.6870947\",\n \"0.6842002\",\n \"0.6819397\",\n \"0.6813544\",\n \"0.6804634\",\n \"0.6740276\",\n \"0.6721215\",\n \"0.67184407\",\n \"0.6718406\",\n \"0.6704045\",\n \"0.66986793\",\n \"0.669791\",\n \"0.66973126\",\n \"0.66964567\",\n \"0.6680936\",\n \"0.6670311\",\n \"0.66635054\",\n \"0.666136\",\n \"0.6659094\",\n \"0.6622664\",\n \"0.66202104\",\n \"0.6617965\",\n \"0.6602299\",\n \"0.6599834\",\n \"0.659908\",\n \"0.65912616\",\n \"0.6586993\",\n \"0.65865856\",\n \"0.658636\",\n \"0.6585912\",\n \"0.6571928\",\n \"0.6566886\",\n \"0.6561461\",\n \"0.65309155\",\n \"0.6527596\",\n \"0.6526082\",\n \"0.65196896\",\n \"0.65153307\",\n \"0.65114886\",\n \"0.6496265\",\n \"0.64936465\",\n \"0.64832455\",\n \"0.6478611\",\n \"0.6465194\",\n \"0.64561373\",\n \"0.64501685\",\n \"0.64489496\",\n \"0.64482945\",\n \"0.64473385\",\n \"0.6441134\",\n \"0.6428955\",\n \"0.6423706\",\n \"0.6419104\",\n \"0.64047325\",\n \"0.63951445\",\n \"0.63805026\",\n \"0.63757163\",\n \"0.63697624\",\n \"0.6357122\",\n \"0.63561964\",\n \"0.63545585\",\n \"0.6354496\",\n \"0.6354291\",\n \"0.6354291\",\n \"0.63537395\",\n \"0.63537395\",\n \"0.6352229\",\n \"0.63482255\",\n \"0.63458335\",\n \"0.6345815\",\n \"0.633937\",\n \"0.63313353\",\n \"0.6323136\",\n \"0.63109535\",\n \"0.6308302\",\n \"0.6306148\",\n \"0.6298156\",\n \"0.62975794\",\n \"0.6296208\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":81550,"cells":{"query":{"kind":"string","value":"Get All Page Object According to requirement & call function according to events get object objFrmTask get object objLabel get object objMessageContent get object objTurn get object objCanvas get object btnEndTurn get object objhelpCheck get object btnCloseinformation get object btnQuit"},"document":{"kind":"string","value":"function fngetPageobject(){\r\n\tobjFrmTask = getElement(\"frmTask\");\r\n\tvar objLabel=fngetElementsByClass('labelText',document,'label');\r\n\tvar aPlayerNameav=fngetElementsByClass('player_Name available',document,'div');\r\n\tvar aPlayerNamebus=fngetElementsByClass('player_Name busy',document,'div');\r\n\tobjMessageContent=getElement(\"messageContent\");\r\n\tobjinforMationWindow=getElement(\"inforMationWindow\");\r\n\tobjTurn=getElement(\"turnNo\");\r\n\tobjCanvas=getElement(\"divData\");\r\n\tvar btnGraph=getElement(\"btnGraph\");\r\n\tvar btnEndTurn=getElement(\"endTurn\");\r\n\tobjhelpCheck=getElement(\"showHelp\");\r\n\tvar btnCloseinformation=getElement(\"closeBtn\");\r\n\tvar btnQuit=getElement(\"btnQuit\");\r\n\tvar btnClose=getElement(\"btnClose\");\r\n\t\r\n\r\n\t// store value of current selected radio button\r\n\tfor (var i = 0; i < objFrmTask.elements.length; i++)\r\n\t{\r\n\t\tarrradioBtn = objFrmTask.elements[i];\r\n\t\t\r\n\t\tif (arrradioBtn.type=\"radio\")\r\n\t\t{\r\n\t\t\tarrradioBtn.onclick=function()\t\t\r\n\t\t\t{\r\n\t\t\t\tfnselectTask();\r\n\t\t\t}\r\n\t\t}\r\n }\r\n\r\n// store current label on rollover\r\n\t\tfor (var counter = 0; counter < objLabel.length; counter++)\r\n\t\t{\r\n\t\t\tvar arrLabel = objLabel[counter];\r\n\t\t\tarrLabel.onclick=function()\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrentTask=this;\r\n\t\t\t\t}\r\n\t\t\t\tarrLabel.onmouseover=function()\r\n\t\t\t\t{\r\n\t\t\t\t\tvar taskId=this.id;\r\n\t\t\t\t\tif(boolShowHelp)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfnDisplayHelp(taskId);\r\n objinforMationWindow.style.display=\"none\"; /// Information Window hide on rollover new\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tarrLabel.onmouseout=function(){\r\n\t\t\t\t\tfnClear();\r\n\t\t\t\t}\r\n\t\t}\r\n\r\n\tfnselectMember();\r\n\r\n\tbtnEndTurn.onclick=function(){\r\n\t\tfnpopupWindow();\r\n\t\tfnTurnEnd(this.id);\r\n\t\tthis.src=\"../static/images/btn_endTurn.gif\";\r\n\t}\r\n\t\r\n\tbtnEndTurn.onmouseover=function(){\r\n\t\tthis.src=\"../static/images/btn_endTurn_over.gif\";\r\n\t}\r\n\t\r\n\tbtnEndTurn.onmouseout=function(){\r\n\t\tthis.src=\"../static/images/btn_endTurn.gif\";\t\r\n\t}\r\n\r\n\tobjhelpCheck.onclick=function(){\r\n\t\tfntoggleHelp();\r\n\t}\r\n\t\r\n\tobjhelpCheck.onmouseover=function(){\r\n\t\tvar btnPath=this.src;\r\n\t\tvar arrBtnPath=btnPath.split(\"/\");\r\n\t\tvar btnImage=arrBtnPath.pop();\r\n\t\tif (btnImage==\"helpbutton_On.gif\")\r\n\t\t{\r\n\t\t\tthis.src=\"../static/images/helpbutton_Over.gif\"\r\n\t\t}\r\n\t}\r\n\r\n\tobjhelpCheck.onmouseout=function(){\r\n\t\tvar btnPath=this.src;\r\n\t\tvar arrBtnPath=btnPath.split(\"/\");\r\n\t\tvar btnImage=arrBtnPath.pop();\r\n\t\tif (btnImage==\"helpbutton_Over.gif\")\r\n\t\t{\r\n\t\t\tthis.src=\"../static/images/helpbutton_On.gif\"\r\n\t\t}\r\n\t}\r\n\r\n\tbtnCloseinformation.onclick=function(){\r\n\t\t\tobjInfoDiv.style.display=\"\";\r\n\t}\r\n\t\r\n\tbtnQuit.onmouseover=function(){\r\n\t\t\tthis.src=\"../static/images/btn_quit_over.gif\"\r\n\t}\t\t\r\n\r\n\tbtnQuit.onmouseout=function(){\r\n\t\t\tthis.src=\"../static/images/btn_quit.gif\";\r\n\t}\t\t\r\n\r\n\tbtnQuit.onclick=function(){\r\n\t\tfnquitGame();\r\n\t}\r\n\r\n\tbtnGraph.onclick=function(){\r\n\t\tfnshowHideGraph();\r\n\t\tthis.src=\"../static/images/butt_viewchart_normal.jpg\";\r\n\t}\r\n\r\n\tbtnGraph.onmouseover=function(){\r\n\t\tthis.src=\"../static/images/butt_viewchart_over.jpg\";\r\n\t}\r\n\r\n\tbtnGraph.onmouseout=function(){\r\n\t\tthis.src=\"../static/images/butt_viewchart_normal.jpg\";\r\n\t}\r\n\r\n\tbtnClose.onclick=function (){\r\n\t\tfnshowHideGraph();\r\n\t}\r\n\r\n}"},"metadata":{"kind":"string","value":"{\n \"objective\": {\n \"self\": [],\n \"paired\": [],\n \"triplet\": [\n [\n \"query\",\n \"document\",\n \"negatives\"\n ]\n ]\n }\n}"},"negatives":{"kind":"list like","value":["function GoPage(strPageName)\n{\n // Class to define how to get to a specific page\n // funLoad is a function which loads the desired page (starting on the prereq page)\n // strPrereq indicates whether we should start from a simpler page\n // funTest is a function which determines whether we are already on the correct page\n\n function objPage(funLoad, strPrereq, funTest)\n {\n\tthis.funLoad = funLoad;\n\tthis.strPrereq = strPrereq;\n\tthis.funTest = funTest;\n };\n\n // Create the list of page objects\n var pageList = {\n\t// Main menu items\n\tmain: new objPage(function(){GoMenuPage('Main');}, null, function(){return LocationTest('/bvs/pages/main.html');} ),\n\tvillage: new objPage(function(){GoMenuPage('Village');}, null, function(){return LocationTest('/bvs/village.html');} ),\n\tpartyhouse: new objPage(function(){GoMenuPage('Party House');}, null, function(){return LocationTest('/bvs/partyhouse.html');} ),\n\tshop: new objPage(function(){GoMenuPage('Shop');}, null, function(){return LocationTest('/bvs/shop.html');} ),\n\tconsumables: new objPage(function(){GoMenuPage('Consumables');}, null, function(){return LocationTest('/bvs/oneuseitems.html');} ),\n\tworldkaiju: new objPage(function(){GoMenuPage('WorldKaiju');}, null, function(){return LocationTest('/bvs/worldkaiju.html');} ),\n\tmissions: new objPage(function(){GoMenuPage('Missions');}, null, function(){return LocationTest('/bvs/missionstart.html') || LocationTest('/bvs/missions');} ),\n\tquests: new objPage(function(){GoMenuPage('Quests');}, null, function(){return LocationTest('/bvs/quests.html') || LocationTest('/bvs/questattempt.html') || LocationTest('/bvs/chuninexam.html');} ),\n\tspar: new objPage(function(){GoMenuPage('Spar');}, null, function(){return LocationTest('/bvs/spar.html');} ),\n\tarena: new objPage(function(){GoMenuPage('Arena');}, null, function(){return LocationTest('/bvs/arena.html');} ),\n\tteam: new objPage(function(){GoMenuPage('Team');}, null, function(){return LocationTest('/bvs/team.html');} ),\n\tjutsu: new objPage(function(){GoMenuPage('Jutsu');}, null, function(){return LocationTest('/bvs/jutsu.html');} ),\n\tsummons: new objPage(function(){GoMenuPage('Summons');}, null, function(){return LocationTest('/bvs/summon.html');} ),\n\tbucket: new objPage(function(){GoMenuPage('Bucket');}, null, function(){return LocationTest('/bvs/bucket.html');} ),\n\n\t// Party house menu items\n\tph_tipline: new objPage(function(){GoMenuPage('Tip Line');}, 'partyhouse', function(){return FormTest('tipline');} ),\n\tph_juicebar: new objPage(function(){GoMenuPage('\\'Juice\\' Bar');}, 'partyhouse', function(){return FormTest('br');} ),\n\tph_firstloser: new objPage(function(){GoMenuPage('First Loser');}, 'partyhouse', function(){return DocTest('Four times a day a new First Loser contest begins (and the old one finishes).');} ),\n\tph_wheel: new objPage(function(){GoMenuPage('Wheel');}, 'partyhouse', function(){return FormTest('raf');} ),\n\tph_jackpot: new objPage(function(){GoMenuPage('Jackpot');}, 'partyhouse', function(){return FormTest('ninrou');} ),\n\tph_lottery: new objPage(function(){GoMenuPage('Lottery');}, 'partyhouse', function(){return FormTest('el');} ),\n\tph_tsukiball: new objPage(function(){GoMenuPage('Tsukiball');}, 'partyhouse', function(){return FormTest('skib');} ),\n\tph_bigboard: new objPage(function(){GoMenuPage('Big Board');}, 'partyhouse', function(){return DocTest('The Big Board');} ),\n\tph_scratchies: new objPage(function(){GoMenuPage('Scratchies');}, 'partyhouse', function(){return FormTest('scratch') || FormTest('mainform2');} ),\n\tph_darts: new objPage(function(){GoMenuPage('Darts');}, 'partyhouse', function(){return FormTest('dgame');} ),\n\tph_partyroom: new objPage(function(){GoMenuPage('Party Room');}, 'partyhouse', function(){return FormTest('pr');} ),\n\tph_crane: new objPage(function(){GoMenuPage('Crane');}, 'partyhouse', function(){return FormTest('cgame');} ),\n\tph_over11k: new objPage(function(){GoMenuPage('Over 11K');}, 'partyhouse', function(){return FormTest('over11');} ),\n\tph_snakeman: new objPage(function(){GoMenuPage('SNAKEMAN');}, 'partyhouse', function(){return FormTest('newsnake');} ),\n\tph_roulette: new objPage(function(){GoMenuPage('Roulette');}, 'partyhouse', function(){return LocationTest('/bvs/partyhouse-roulette.html');} ),\n\tph_mahjong: new objPage(function(){GoMenuPage('Mahjong');}, 'partyhouse', function(){return LocationTest('/bvs/partyhouse-mahjong.html');} ),\n\tph_superfail: new objPage(function(){GoMenuPage('SUPERFAIL');}, 'partyhouse', function(){return LocationTest('/bvs/partyhouse-superfail.html');} ),\n\tph_pigeons: new objPage(function(){GoMenuPage('Pigeons');}, 'partyhouse', function(){return LocationTest('/bvs/partyhouse-keno.html');} ),\n\tph_flowerwars: new objPage(function(){GoMenuPage('Flower Wars');}, 'partyhouse', function(){return LocationTest('/bvs/partyhouse-hanafuda.html');} ),\n\n\t// Linked from village\n\tfields: new objPage(function(){FormSubmit('fieldmenu');}, 'village', function(){return LocationTest('/bvs/villagefields.html');} ),\n\tphases: new objPage(function(){FormSubmit('phases');}, 'village', function(){return LocationTest('/bvs/villagephases.html') || LocationTest('/bvs/villager00t.html');} ),\n\tbingo: new objPage(function(){FormSubmit('bbook');}, 'village', function(){return LocationTest('/bvs/bingo');} ),\n\tjutsuenhance: new objPage(function(){FormSubmit('jenhance');}, 'village', function(){return LocationTest('/bvs/villagejenhance.html');} ),\n\tbillycon: new objPage(function(){FormSubmit('concenter');}, 'village', function(){return LocationTest('/bvs/billycon-register.html');} ),\n\trobofighto: new objPage(function(){FormSubmit('robofighto');}, 'village', function(){return LocationTest('/bvs/villagerobofighto.html');} ),\n\tzrewards: new objPage(function(){FormSubmit('zrt');}, 'village', function(){return LocationTest('/bvs/zombjarewards.html');} ),\n\tkaiju: new objPage(function(){FormSubmit('kat');}, 'village', function(){return LocationTest('/bvs/villagemonsterfight');} ),\n\tpizzawitch: new objPage(function(){FormSubmit('pizzamenu');}, 'village', function(){return LocationTest('/bvs/pizzawitch.html') || LocationTest('/bvs/pizzawitchgarage.html');} ),\n\n\t// Linked from billycon\n\tglowslinging: new objPage(function(){FormSubmit('glowsling');}, 'billycon', function(){return LocationTest('/bvs/billycon-glowslinging.html') || LocationTest('/billycon-glowslingfight.html');} ),\n\n\t// Linked from main page\n\tthemes: new objPage(function(){FormSubmit('theme');}, 'main', function(){return LocationTest('/bvs/themesdifficulty.html');} ),\n\ttinybeevault: new objPage(function(){FormSubmit('tinybee');}, 'main', function(){return LocationTest('/bvs/tinybees.html');} ),\n\tsponsoritem: new objPage(function(){FormSubmit('sponsor');}, 'main', function(){return LocationTest('/bvs/sponsoritems.html');} ),\n\tfavors: new objPage(function(){FormSubmit('sandstorm');}, 'main', function(){return LocationTest('/bvs/sandstorm.html');} ),\n\treaperblood: new objPage(function(){FormSubmit('reaper');}, 'main', function(){return LocationTest('/bvs/reaper.html');} ),\n\tdriftstyle: new objPage(function(){FormSubmit('drifter');}, 'main', function(){return LocationTest('/bvs/drifter.html');} ),\n\tavatar: new objPage(function(){FormSubmit('avatar');}, 'main', function(){return LocationTest('/bvs/avatar.html');} ),\n\n\n\tblank: new objPage(null,null,null)\n };\n\n // Extract the page from the pageList object\n var page = pageList[strPageName];\n if (!page)\n\tthrow new Error('Page list object: ' + strPageName + ' does not exist');\n \n // Test whether we are already on the correct page\n if (page.funTest())\n\treturn; // Early return, on a good page\n\n // If a prerequisite page is listed, go to it first\n if (page.strPrereq)\n\tGoPage(page.strPrereq);\n\n // Finally, move to the desired page\n page.funLoad();\n ShowMsg('Moving to page: ' + strPageName);\n}","function changePage(){\n //show all buttons on page if they are currently hidden\n showElementByClass(otherPages)\n \n //hide all pages\n hideElementByClass(pages)\n \n //hide fight mechanic show save buttons, clear enemy list, ingame text, battle text, counters, win, lucky, unlucky and escape functions, rolldie, rolldice, testLuck, useProvisions\n fightMechanic.style.display = 'none'\n save.style.display = 'block' //can only save on pages with no function\n enemyList = []\n allEnemies.innerHTML = ''\n ingameText.innerHTML = ''\n ingameText.style.display = 'block' //show ingametext on all func pages\n battleText.innerHTML = ''\n attackRoundCounter = 0\n hitsReceivedCounter = 0\n win = function(){}\n lucky = function(){}\n unlucky = function(){}\n escape = function(){}\n rolldie.style.display = 'none'\n rolldice.style.display = 'none'\n testLuck.style.display = 'none' //for luck outside of battle\n useProvisions.style.display = 'none'\n \n //show selected page\n for(let i=0;i\",\n\t////\t\"center\":\"\",\n\t////\t\"right\":\"\"\n\t////}\n\t//for adding a panel:\n\t////\"leftPanel\":{\n\t////\t\"id\":\"nav-panel\",\n\t////\t\"url\":\"pages/general/left_panel.html\"\n\t////}\n\t//for adding dialogs, you can add more then one\n\t////\"popup\":[\n\t//// {\n\t//// \t \"url\":\"pages/general/popup.html\",\n\t//// \t \"id\":\"dialog\", \n\t//// \t \"header\":\"myHeader\", \n\t//// \t \"title\":\"Hi Dialog!\", \n\t//// \t \"content\":\"You have to insert your own content here\", \n\t//// \t \"okButton\":{\"action\":\"alert('ok button action');\",\"location\":\"#login\",\"text\":\"OK\"}, \n\t//// \t \"cancelButton\":{\"action\":\"alert('cancel button action');\",\"location\":\"\",\"text\":\"Cancel\"}\n\t//// }\n\t//// ]\n\treturn [\n\t\t\t{\"id\":\"profile\", \"url\":\"pages/profile/user.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

User

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"profileNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"mechanic\", \"url\":\"pages/profile/mechanic.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

Mecanico

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"mechanicNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"medical\", \"url\":\"pages/profile/medical.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

Medicos

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"medicalNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"policiesContent\", \"url\":\"pages/policy/policiesContent.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"Vehicles\",\n\t\t\t \t\"center\":\"

Vehicle

\",\n\t\t\t \t\"right\":\"\" \n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"showPolicies\", \"url\":\"pages/policy/showPolicies.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

Vehicles

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"policiesNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"contactsContent\", \"url\":\"pages/contacts/contactsContent.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"Contactos\",\n\t\t\t \t\"center\":\"

Contacto

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\n\t\t\t}, \n\t\t\t{\"id\":\"showContacts\", \"url\":\"pages/contacts/showContacts.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

Contactos

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"sContactsNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t}, \n\t\t\t{\"id\":\"showInsurance\", \"url\":\"pages/contacts/insurance.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

Aseguradoras

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"sInsuranceNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"initial\", \"url\":\"pages/initial.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

Reportar

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\n\t\t\t \"leftPanel\":{\n\t\t\t \t\"id\":\"panelInitial\",\n\t\t\t \t\"url\":\"pages/general/left_panel.html\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"sinDetails\", \"url\":\"pages/sinisters/details.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"Reportar\",\n\t\t\t \t\"center\":\"

Fotos

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"sinisterList\", \"url\":\"pages/sinisters/sinisterList.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

Siniestros

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\n\t\t\t \"leftPanel\":{\n\t\t\t \t\"id\":\"panelSinList\",\n\t\t\t \t\"url\":\"pages/general/left_panel.html\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"theftsList\", \"url\":\"pages/sinisters/theftsList.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

Robos

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\n\t\t\t \"leftPanel\":{\n\t\t\t \t\"id\":\"panelTheftList\",\n\t\t\t \t\"url\":\"pages/general/left_panel.html\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"consultSinister\", \"url\":\"pages/sinisters/consultSinister.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"List\",\n\t\t\t \t\"center\":\"

Details

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"signup\", \"url\":\"pages/account/signup.html\"\n\t\t\t},\n\t\t\t{\"id\":\"login\", \"url\":\"pages/account/login.html\"\n\t\t\t},\n\t\t\t{\"id\":\"signin\", \"url\":\"pages/account/signin.html\"\n\t\t\t},\n\t\t\t{\"id\":\"features_a\", \"url\":\"pages/account/features_a.html\"\n\t\t\t},\n\t\t\t{\"id\":\"features_b\", \"url\":\"pages/account/features_b.html\"\n\t\t\t},\n\t\t\t{\"id\":\"features_c\", \"url\":\"pages/account/features_c.html\"\n\t\t\t},\n\t\t\t{\"id\":\"options\", \"url\":\"pages/options/options.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"\",\n\t\t\t \t\"center\":\"

Options

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\n\t\t\t \"leftPanel\":{\n\t\t\t \t\"id\":\"panelTheftList\",\n\t\t\t \t\"url\":\"pages/general/left_panel.html\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"about\", \"url\":\"pages/options/about.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"options\",\n\t\t\t \t\"center\":\"

About

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\t\t\t\n\t\t\t},\n\t\t\t{\"id\":\"map\", \"url\":\"pages/sinisters/map.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"report\",\n\t\t\t \t\"center\":\"

Location

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\t\t\t\n\t\t\t},\n\t\t\t{\"id\":\"report\", \"url\":\"pages/sinisters/report.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"report\",\n\t\t\t \t\"center\":\"

R.Type

\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\t\t\t\n\t\t\t}\n\t ];\n\t\n}","function PageObject()\n{\n\tvar filename;\n\tvar type;\n\tvar subindex;\n\tvar bSubIndexed; \n\tvar bNextButton;\n\tvar bBackButton;\n\tvar time;\n\tvar bScored;\n\tvar objectiveID;\n\tvar bObjectiveComplete;\n\tvar topicheading;\n\tvar comment = \"\"; //comment to be save on page\n\tvar bBookmark = false;\n\tvar bViewed = false;\n\tvar score;\n\tvar progress;\n\tvar points;\n\tvar id; //the index of the page array\n\t\n\t//methods bool is a boolean to set on or of\n\tthis.SetBackButton = function(boo)\n\t{\n\t\tthis.bBackButton = boo;\n\t}\n\t\n\tthis.SetNextButton = function(boo)\n\t{\n\t\tthis.bNextButton = boo;\n\t}\n\t\n\t//this function will update the display of the page based on variables back/next buttons, heading, and menu and progress\n\tthis.Update = function()\n\t{\n\t\t//update topicheading and breadcrumb\n\t\t//window.frames['content_frame'].document.getElementById('topicheading').innerHTML = this.topicheading;\n\t\t//window.frames['content_frame'].document.getElementById('breadcrumb').innerHTML = this.topicheading;\n\t\t\n\t\t//if comment exists for page\n\t\twindow.frames['content_frame'].document.getElementById(\"commentbox\").value = this.comment;\n\t\t\n\t\t//if bookmarked, show bookmarked\n\t\t//if (this.bBookmark)\n\t\t//{\n\t\t//\twindow.frames['content_frame'].document.getElementById('bookmark').style.display = \"inline\";\n\t\t//}\n\t\t\n\t\t//update back and next buttons\n\t\tif (this.bBackButton)\n\t\t{\n\t\t\twindow.frames['content_frame'].document.getElementById('back_btn').style.display = \"inline\";\n\t\t} else {\n\t\t\twindow.frames['content_frame'].document.getElementById('back_btn').style.display = \"none\";\n\t\t}\n\t\t\n\t\tif (this.bNextButton)\n\t\t{\n\t\t\twindow.frames['content_frame'].document.getElementById('next_btn').style.display = \"inline\";\n\t\t\twindow.frames['content_frame'].document.getElementById('back_btn').style.marginRight = \"0px\";\n\t\t} else {\n\t\t\t//window.frames['content_frame'].document.getElementById('next_btn').style.display = \"none\";\n\t\t\t//window.frames['content_frame'].document.getElementById('back_btn').style.marginRight = \"30px\";\n\t\t\twindow.frames['content_frame'].document.getElementById('next_btn').style.backgroundImage = \"url('assets/images/nextStatic.jpg')\";\n\t\t\twindow.frames['content_frame'].document.getElementById('next_btn').style.cursor = \"default\";\n\t\t\twindow.frames['content_frame'].document.getElementById('next_btn').href = \"javascript:void()\";\n\t\t}\n\t\t\n\t\t//if flash is enabled by diagnostics, show the flash form\n\t\tif (bFlash)\n\t\t{\n\t\t\t//window.frames['content_frame'].document.getElementById('choice').style.display = \"inline\";\n\t\t\tif (Format == \"flashversion\")\n\t\t\t{\n\t\t\t //window.frames['content_frame'].document.getElementById('radio1').checked=true;\n\t\t\t //window.frames['content_frame'].document.getElementById('radio2').checked=false;\n\t\t\t} else {\n\t\t\t //window.frames['content_frame'].document.getElementById('radio1').checked=false;\n\t\t\t //window.frames['content_frame'].document.getElementById('radio2').checked=true;\n\t\t\t}\n\n\t\t\tCheckFlash(); //check to see if the user would like flash or not\n\t\t} else { \n\t\t\t//window.frames['content_frame'].document.getElementById('choice').style.display = \"none\"; \n\t\t}\n\t\t\n\t\t//update progress bar\n\t\twindow.frames['content_frame'].document.getElementById('progress').style.width = ''+ this.GetProgress() +'%';\n\t\twindow.frames['content_frame'].document.getElementById('progress_score').innerHTML = ''+ PageArray[currentpage].GetProgress() +'% Complete';\n\t\t\n\t\t//update menu\n\t\tthis.updateMenu();\n\t}\n\t\n\tthis.AddComment = function()\n\t{\n\t\tthis.comment = window.frames['content_frame'].document.getElementById(\"commentbox\").value;\n\t\twindow.frames['content_frame'].document.getElementById(\"notesaved\").style.display = \"inline\";\n\t}\n\t\n\tthis.AddBookmark = function()\n\t{\n\t\tthis.bBookmark = true;\n\t\twindow.frames['content_frame'].document.getElementById('bookmark').style.display = \"inline\";\n\t}\n\t\n\t//this function will load the page into the current frame\n\tthis.Load = function()\n\t{\n\t\tdocument.getElementById(\"content_frame\").src = '' + this.filename;\n\t\tthis.bViewed = true;\n\t}\n\t\n\tthis.TellMe = function()\n\t{\n\t\talert(this.filename);\n\t}\n\t\n\t//return a suspend data string data is separated by a |\n\tthis.GetPageSuspendData = function()\n\t{\n\t\tvar view = \"\";\n\t\tvar booked = \"\";\n\t\tif (this.bViewed) { view = \"yes\"; } else { view = \"no\"; }\n\t\tif (this.bBookmark) { booked = \"yes\"; } else { booked = \"no\"; }\n\t\tvar datastring = \"P:\"+ this.id + \"|\" + \"V:\" + view + \"|\" + \"B:\" + booked + \"|\" + \"C:\" + this.comment;\n\t\treturn datastring;\n\t}\n\t\n\t//read data from suspend data string for this page.\n\tthis.ReadData = function(data)\n\t{\n\t\tvar dataobjects = data.split(\"|\");\n\t\tfor (a=0; a {\n\t\t sessionStorage.clear();\n\t\t })\n\t\t};\n\n\t\t//bring page to default state\n\t\tthis.refresh = function() {\n\t\t\talertContainer.textContent = \"\\u00BB\";\n\t\t\timagesList.reset();\n\t\t\talbumList.show();\n\t\t\t//imageDetails.reset();\n\t\t};\n\t}","function CreatebarAndPages(doc, nPage)\r\n{\r\n try {\r\n // flag\r\n ACROSDK.aPagesFlag[nPage] = true;\r\n \r\n // get page box\r\n var aRect = doc.getPageBox(\"Crop\",nPage);\r\n \r\n // cancel button ---\r\n var barHeight = 0.25*ACROSDK.inch; \r\n var x1 = aRect[2]-10-barHeight;\r\n var x2 = x1 + barHeight;\r\n var y1 = aRect[1]-5;\r\n var y2 = aRect[1]-5-barHeight;\r\n var fCancel = doc.addField(\"newTimerShort.btnCancel.\"+nPage, \"button\", nPage, \r\n [x1, y1, x2, y2] )\r\n fCancel.setAction(\"MouseUp\", \"AskAndClean(ACROSDK.targetDoc);\");\r\n fCancel.buttonSetCaption(\"X\");\r\n fCancel.textColor = [\"RGB\",1,0,0];;\r\n fCancel.strokeColor = [\"RGB\",1,0,0];\r\n \r\n /*\r\n * toggle hide/show button --- \r\n * we create the same button in every page, so we can get general control. \r\n */\r\n if (ACROSDK.bHotButton == false) {\r\n var j;\r\n for (j=0;j barHeight) pdWidth = barHeight;\r\n \r\n for (j=1;j<=doc.numPages;j++) {\r\n var fPageRectangle = doc.addField(\"timeMonitorFields.rectPages.\" + j, \"button\", nPage, \r\n [px1+j*pdx-pdWidth, py1, px1+j*pdx, py2] );\r\n fPageRectangle.textSize = 0; // auto sized\r\n fPageRectangle.textColor = color.black;\r\n fPageRectangle.buttonSetCaption(j); \r\n fPageRectangle.borderStyle = border.s;\r\n \r\n fPageRectangle.fillColor = [\"RGB\",1,1,.855];\r\n fPageRectangle.strokeColor = color.black;\r\n \r\n // set the button actions ---\r\n // go to the page image when the mouse clicks.\r\n var fname = \"newTimerShort.btnPageImage.\" + nPage;\r\n var jsCode = 'var f = this.getField(\"' + fname + '\").hidden = true; this.pageNum = ' + (j-1);\r\n fPageRectangle.setAction(\"MouseUp\",jsCode);\r\n \r\n // show the page image when the mouse enters\r\n jsCode = 'var f = this.getField(\"' + fname + '\");' \r\n + 'f.hidden = false; trustedBII( f,' + (j-1) + ');';\r\n \r\n fPageRectangle.setAction(\"MouseEnter\",jsCode);\r\n \r\n // hide the image when the mouse exits.\r\n jsCode = 'var f = this.getField(\"' + fname + '\");'\r\n + 'f.hidden = true;';\r\n fPageRectangle.setAction(\"MouseExit\",jsCode);\r\n }\r\n } catch (e) {\r\n console.println(\"Error in create field, bar, and page icons\");\t\r\n }\r\n}","onAfterLoadPage(data_obj) {\n\t\t//TODO: Override this as needed;\n\t}","onAfterLoadPage(data_obj) {\n\t\t//TODO: Override this as needed;\n\t}","'click #cb-next-btn'( e, t ) {\n e.preventDefault();\n //HIDE EDITING TOOLBARS\n $( '#cb-text-toolbar' ).hide();\n $( '#cb-media-toolbar' ).hide();\n $( '#cb-title-toolbar' ).hide();\n $( '#cb-video-toolbar' ).hide();\n $('#cb-current').val(null);\n let p = t.page.get()\n , tt = t.total.get()\n , chk = P.dumpPage(p);\n \n if ( chk == undefined ) {\n console.log('here');\n return;\n }\n \n $('#fb-template').empty();\n $('#test_v').hide();\n \n if ( p < tt ) {\n p++;\n t.page.set( p );\n let arr = P.dumpPage(p);\n Render.render( e, t, arr, P );\n return;\n } else {\n try {\n let arr = P.dumpPage( p );\n if ( p == tt && arr.length == 0 ){\n return;\n } else {\n $('#fb-template').empty().show();\n t.page.set( p + 1 );\n t.total.set( p + 1 );\n return;\n }\n } catch (e) {\n ;\n }\n return;\n }\n }","function handleNewPage(e, obj){\n if (e.type == bid.e.NEW_PAGE_START) {\n\n // sertificates\n switch(obj.page){\n\n case bps.PWD:\n case bps.CHG_INFO:\n case bps.CHG_PWD:\n case bps.CHG_CONFIRMATION:\n case bps.SGN_RECEIPT:\n _vm.sertificates([scenario.sert.merchant, scenario.sert.personal])\n _vm.sertificate(scenario.sert.personal);\n break;\n\n default:\n _vm.sertificates([scenario.sert.merchant]);\n _vm.sertificate(scenario.sert.merchant);\n break;\n }\n\n _vm.page(obj.page);\n }\n\n if(e.type == bid.e.NEW_PAGE_END) {\n switch(obj.page){\n case bps.PWD:\n // is there a last-used-failed case?\n if (scenario.used.fail)\n // then display the alert\n _vm.btnFailClicked();\n break;\n }\n }\n }","function page_ajax(page, trigFunction) {\n var block_page = document.querySelector('.block-page');\n var request = new XMLHttpRequest();\n request.open('GET', '../views/pages/story/' + page + '.twig', true);\n request.onreadystatechange = function() {\n if(this.readyState == 4) {\n block_page.innerHTML = this.responseText;\n var container_btn_next = document.querySelector('.container-btn-next');\n\n container_btn_next.addEventListener('click', function(){\n\n // IF INFO 1\n if (page == 'info_01_pacemaker') {\n var dilemma_01 = new page_ajax_dilemma('dilemma_01_pacemaker','dilemma_02_pacemaker','info_02_pacemaker');\n var voice_track_02 = new voice('03-Pacemaker.wav');\n }\n\n // IF INFO 2\n else if (page == 'info_02_pacemaker') {\n var dilemma_02 = new page_ajax('info_03_prosthetics');\n var voice_track_02 = new voice('none');\n }\n\n // IF INFO 3\n else if (page == 'info_03_prosthetics') {\n var dilemma_03 = new page_ajax_dilemma('dilemma_03_prosthetics','info_05_implants','info_04_prosthetics');\n var voice_track_05 = new voice('06-Prothese_01.wav');\n }\n\n // IF INFO 4\n else if (page == 'info_04_prosthetics') {\n var dilemma_04 = new page_ajax_dilemma('dilemma_04_prosthetics','info_05_implants','info_05_implants');\n var voice_track_06 = new voice('07-Prothese_02.wav');\n }\n\n // IF INFO 5\n else if (page == 'info_05_implants') {\n var dilemma_05 = new page_ajax_dilemma('dilemma_05_implants', 'info_06_memory', 'info_06_memory');\n var voice_track_07 = new voice('08-Implants.wav');\n }\n\n // IF INFO 6\n else if (page == 'info_06_memory') {\n var dilemma_06 = new page_ajax_dilemma('dilemma_06_memory', 'info_07_ia', 'info_07_ia');\n var voice_track_08 = new voice('10-Stockage.wav');\n }\n\n // IF INFO 7\n else if (page == 'info_07_ia') {\n var dilemma_07 = new page_ajax_dilemma('dilemma_07_ia', 'info_08_cells', 'info_08_cells');\n var voice_track_09 = new voice('11-IA.wav');\n }\n\n // IF INFO 8\n else if (page == 'info_08_cells') {\n var dilemma_08 = new page_ajax_dilemma('dilemma_08_cells', 'end_01', 'end_02');\n var voice_track_09 = new voice('12-Immortalite.wav');\n }\n\n });\n trigFunction;\n }\n }\n request.send();\n request = null;\n}","function callPageView() {\n initVars();\n var isPathindicatorEng = \"\";\n var currentUrl = unescape(window.location.href);\n\n // Exception part\n if (getOmniInputTagValue(\"pid\") == \"no\") {\n initVars();\n return;\n }\n\n /* exception code will be used in the future...\n if ((\"fr\".indexOf(getOmniSiteCd())!=-1 && currentUrl.indexOf(\"http://\"+window.location.host+\"/fr/business/smart-printers/\") !=-1)) {\n initVars();\n return;\n }\n */\n if (getOmniInputTagValue(\"microsite\") == \"microsite\") {\n initVars();\n s.linkTrackVars = \"none\";\n s.linkTrackEvents = \"none\";\n s.pageName = getOmniSiteCd() + \":campaign\";\n var s_code = s.t(); if (s_code) document.write(s_code);\n return;\n }\n\n if (currentUrl.indexOf('/sns/login') != -1) {\n return;\n }\n\n if (currentUrl.indexOf('/_ui/desktop/static/') != -1) {\n return;\n }\n\n if (currentUrl.indexOf('support-ca.samsung.com/cyber/mysamsung/') != -1) {\n console.log(\"ca mySamsung\");\n return;\n }\n\n if (currentUrl.indexOf('/ng/') != -1) {//Store Page\n isPathindicatorEng = \"STORE\";\n } else if (currentUrl.indexOf('shop.samsung.com/br') != -1) {\n isPathindicatorEng = \"BRSTORE\";\n } else if (getOmniInputTag(\"pathindicatorENG\") != \"none\") {//Check the pathindicatorENG tag\n if (getOmniInputTag(\"pathindicatorENG\").getElementsByTagName(\"a\").item(0).innerHTML) {\n isPathindicatorEng = \"Y\"\n } else {\n isPathindicatorEng = \"N\";\n }\n } else {\n isPathindicatorEng = \"N\";\n }\n\n switch (isPathindicatorEng) {\n case \"STORE\": sendPageCodeStore(); break;\n case \"BRSTORE\": sendPageCodeStoreBr(); break;\n case \"Y\": sendPageCode(); break;\n case \"N\": sendPageCodeUrl(); break;\n }\n}","function PageAction() {\n\tthis.visible = false;\n\n\tthis.show = function() {\n\t\tif (!this.visible) {\n\t\t\tchrome.extension.sendMessage({\n\t\t\t\tcmd: \"pageaction\", //$NON-NLS-0$\n\t\t\t\taction: \"show\" //$NON-NLS-0$\n\t\t\t}, this.onResponse);\n\t\t\tthis.visible = true;\n\t\t}\n\t};\n\n\tthis.hide = function() {\n\t\tchrome.extension.sendMessage({\n\t\t\tcmd: \"pageaction\", //$NON-NLS-0$\n\t\t\taction: \"hide\" //$NON-NLS-0$\n\t\t}, this.onResponse);\n\t\tthis.visible = false;\n\t};\n\n\tthis.notify = function() {\n\t\tchrome.extension.sendMessage({\n\t\t\tcmd: \"pageaction\", //$NON-NLS-0$\n\t\t\taction: \"notify\" //$NON-NLS-0$\n\t\t}, this.onResponse);\n\t};\n\n\t// wo dont expect response\n\tthis.onResponse = function(response) {\n\t\t// console.log(response);\n\t};\n}","function _page1_page() {\n}","function openedPage()\n{\n\tif(_user == null) return; //do not process page if user has logged out\n\n\t//save the door\n\tvar current_door_un = _page.Door.currentDoorusername;\n\tvar current_door_id = _page.Door.currentDoorid;\n\t//reset the page object\n\t_page = new Page();\n\tvar objectsOnPage = 0;\n\t//set the last door\n\t_page.Door.lastDoorusername = current_door_un;\n\t_page.Door.lastDoorid=current_door_id;\n\n\tvar pg_url = getURL();\n\t// since LASTKEY is appended to nova-initia.com pages, we must remove it to process the page:\n\tpg_url = pg_url.replace(/\\?LASTKEY=\\w*$/, \"\");\n\tvar url_and_domain = UrlToHash(pg_url,true);\n\tvar url_hash = url_and_domain['url'];\n\tvar domain_hash = url_and_domain['domain'];\n\tvar key = _key;\n\t_urlHash = url_hash;\n\t_domainHash = domain_hash;\n\n\tvar frame_url = \"http://data.nova-initia.com/rf/remog/page/\"+url_hash+\"/\"+domain_hash+\".json\";\n\tvar params = \"&LastKey=\" + key;\n\tvar resp = send_request(frame_url,\"GET\",params);\n\t//alert(resp.responseText);\n\tvar json = jQuery.parseJSON(resp.responseText);\n\t//alert(frame_url + params);\n\n\t//traps\n\tif(json.pageSet[0].ID != undefined)\n\t{\n\t\tvar usernamerequest = send_request(\"http://data.nova-initia.com/rf/remog/user/\"+json.pageSet[0].USERID+\".json\",\"GET\",null);\n\t\tvar usernamejson = jQuery.parseJSON(usernamerequest.responseText);\n\t\t_page.setTrap(usernamejson.user.UserName,true);\n\t\tobjectsOnPage++;\n\t\t_user.inventory.setShieldOn(usernamejson.user.isShielded); //update shields in iventory\n\n\t\t//update current user's shield and sg\n\t\tvar tmp = jQuery.parseJSON(send_request(\"http://data.nova-initia.com/rf/remog/user/\"+_ID+\".json\",\"GET\",null).responseText);\n\t\t_user.inventory.setShieldOn(tmp.user.isShielded);\n\t\t_user.inventory.sg = tmp.user.Sg;\n\t}\n\telse\n\t{\n\t\t_page.setTrap(\"\",false);\n\t}\n\n\n\t//barrels\n\tif(json.pageSet[1].ID != undefined)\n\t{\n\t\tvar usernamerequest = send_request(\"http://data.nova-initia.com/rf/remog/user/\"+json.pageSet[1].USERID+\".json\",\"GET\",null);\n\t\tvar usernamejson = jQuery.parseJSON(usernamerequest.responseText);\n\t\t_page.setBarrel(usernamejson.user.UserName,true,json.pageSet[1].ID);\n\t\tobjectsOnPage++;\t\n\t}\n\telse\n\t{\n\t\t_page.setBarrel(\"\",false,-1);\n\t}\n\t//send_request(\"http://data.nova-initia.com/rf/remog/gift/\"+barrelID+\".json\",\"GET\",null);\n\n\t//dont work currently not sure which is what alert(\"SignPosts: \" + json.pageSet[5])\n\t//doors\n\t//alert(resp.responseText);\n\tvar hasdoor = false;\n\tfor(var x =0 ; x 0)\n\t{\n\t\tvar myPop = safari.extension.createPopover(\"openedPage\", safari.extension.baseURI + \"popovers/openedPage.html\", 300, (270*objectsOnPage) + (320*doorsOnPage) + rate);\n\n\t\t_ni_button.popover = myPop;\n\t\t_ni_button.showPopover();\n\t}\n\n\tupdateButtons();\n\n\t//set number of messages\n\t_user.messages = json.pageSet[6].count;\n\t$(\"#messages > span\").html(_user.messages);\n}","function onPageStart() {\n setInnerHTML(global_txtObj[\"txts\"], global_txtObj[\"attrsx\"], global_txtObj[\"components_ids\"]); // se fijan textos\n /* setInnerAttrs(global_hintsObj[\"txts\"], global_hintsObj[\"attrsx\"], global_hintsObj[\"components_ids\"]) */ // fija atributos\n switch (globalLang) {\n case \"es\":\n LangLabelsURL = LangLabels[0];\n break;\n case \"en\":\n LangLabelsURL = LangLabels[1];\n break;\n case \"pt\":\n LangLabelsURL = LangLabels[2];\n break;\n case \"gh\":\n LangLabelsURL = LangLabels[3];\n break;\n }\n\n //TableIndexs contiene los indices de las columnas de res.data que me interesa conservar, res es la respuesta del servidor al hacer la consulta, dentro trae data que son todas las filas y columnas\n var tableIndexs = [1, 7, 9, 4];\n\n var juntar = [{\n \"fields\": [9, 5],\n \"firstIndex\": 2\n }];\n\n var pushToTheEnd = ['']\n\n setTableLabels('#tablaVerTodos', LangLabelsURL, true, './ajax_cent_op_rcvry.php?Lang=' + globalLang + '&enbd=2&UID=' + getCookie(\"UID\") + '&USS=' + getCookie(\"USS\") + '', function (res) {\n return formatDataTable(res, tableIndexs, juntar, pushToTheEnd);\n }); // Se fijan los labels estandars de las tablas y sus busquedas\n\n\n //Se rellenan los slecets de paises y provincias\n selectCtryPopulate('#country', 0, 'Seleccione Pais');\n selectProvPopulate('#Provincia', 0, 'Seleccione Provincia', 168);\n selectCodCtryPopulate(\"#CodPais1\", 168);\n\n\n //Se detecta el evento de cambio de país para rellenar el select de provincia\n $(\"#country\").on(\"change\", function () {\n selectProvPopulate('#Provincia', 0, 'Seleccione Provincia', this.value);\n selectCodCtryPopulate(\"#CodPais1\", this.value);\n });\n\n //Rellena el idplan\n selectPopulate(\"#id_cap\", \"getCaps\", 0, 1);\n\n selectPopulate(\"#CodPais1\", \"getctrycode\", 0, 2);\n\n //Detecta la inserción de archivos\n var filesToUpload = new FormData();\n $(document).on(\"change\", \"#documents\", function (e) {\n\n for (var i = 0; i < this.files.length; i++) {\n var element = this.files[i];\n var id = getRandomString(7);\n filesToUpload.append(id, element);\n\n var picture = createFile(element, id);\n $(\"#all-images\").append(picture);\n }\n\n this.value = \"\";\n\n });\n\n //Detecta cuando se elimina una imagen a subir\n $(document).on(\"click\", \".item-container\", function (e) {\n\n var id = this.id;\n $(`#${id}`).remove();\n id = id.split(\"-\")[1];\n filesToUpload.delete(id);\n\n });\n\n // Código para actualizar la data\n\n var isUpdating = false; //Variable que indica si el formulario va a ser para actualizar o insertar\n var idToUpdate;\n\n $(document).on(\"click\", \".updateData\", function () {\n isUpdating = true;\n idToUpdate = this.id.split(\"-\")[1];\n\n $(\"#uploadDocs\").show();\n $(\"#loadedFiles\").attr(\"href\", $(\"#loadedFiles\").attr(\"href\") + \"&sect=centOp&reg=\" + idToUpdate);\n $(\"#idBtnLimpiar\").hide();\n\n getDataOfThisRecord(idToUpdate, \"getCentOpData\", {\n idCliente: 0,\n razSocCliente: 1,\n ruc: 2,\n address: 3,\n country: 4,\n Provincia: 5,\n email: 6,\n CodPais1: 7,\n telefono: 8,\n customCheck1: [9, \"checkbox\"]\n });\n });\n\n $(document).on(\"click\", \"#idBtnNuevo\", function () {\n isUpdating = false;\n $(\"#uploadDocs\").hide();\n $(\"#idBtnLimpiar\").show();\n resetDefaultForm();\n });\n\n // Termina código para actualizar la data\n\n //Limpia el formulario\n $(document).on(\"click\", \"#idBtnLimpiar\", function (e) {\n resetDefaultForm();\n });\n\n //Envía el formulario\n $(\"#idFormDetalles\").on(\"submit\", function (e) {\n e.preventDefault();\n\n var inputs = $(\"#idFormDetalles .required\");\n\n if (validateInputs(inputs) || isUpdating) {\n\n var formData = new FormData(this);\n\n //Inserto los archivos a subir\n for (var pair of filesToUpload.entries()) {\n formData.append(pair[0], pair[1]);\n }\n\n var successText;\n\n if (isUpdating) {\n formData.append(\"mode\", \"updateCentOpInfo\");\n formData.append(\"idToUpdate\", idToUpdate);\n successText = \"¡Registro actualizado con éxito!\";\n } else {\n formData.append(\"mode\", \"uploadCentOpInfo\");\n successText = \"¡Registro agregado con éxito!\";\n }\n\n for (var pair of formData.entries()) {\n console.log(pair[0] + ': ' + pair[1]);\n }\n\n //Inserto los datos mediante Ajax\n $.ajax({\n url: './ajax_requests_rcvry.php?Lang=' + globalLang + '&enbd=2&UID=' + getCookie(\"UID\") + '&USS=' + getCookie(\"USS\") + '',\n type: \"post\",\n data: formData,\n cache: false,\n contentType: false,\n processData: false,\n beforeSend: function () {\n console.log(\"Enviando...\");\n },\n success: function (res) {\n console.log(res);\n\n //Limpio el formulario\n if(!isUpdating)\n resetDefaultForm();\n //Actualizo la DataTable\n $(\"#tablaVerTodos\").DataTable().destroy();\n setTableLabels('#tablaVerTodos', LangLabelsURL, true, './ajax_cent_op_rcvry.php?Lang=' + globalLang + '&enbd=2&UID=' + getCookie(\"UID\") + '&USS=' + getCookie(\"USS\") + '', function (res) {\n return formatDataTable(res, tableIndexs, juntar, pushToTheEnd);\n });\n\n //Elimino las vistas previas y limpio el formData\n filesToUpload = new FormData();\n $(\"#all-images\").children().remove();\n\n //Informo de éxito\n Swal.fire(\n '¡Listo!',\n successText,\n 'success'\n )\n },\n error: function (e) {\n console.log(e);\n }\n });\n } else {\n alert(\"¡Rellena todos los campos requeridos!\");\n }\n\n });\n\n}","function go_mainpage(){\n\n object.getpage('mainpage.html');\n }","function SwitchPage(n, cache2, options2)\n{\n/*\n1-front page\n2-search page\n3-movie/TV page\n4-connections\n5-people(Actor,Actress, etc.) page\n10-anything else\n*/\n\tlet _data;\n\tswitch (n)\n\t{\n\t\tcase 1:\n\t\t\tif (options2.popupM)\n\t\t\t\tSetEvents(\"popupM\", options2, cache2);\n\n\t\t\tif (options2.popupP)\n\t\t\t\tSetEvents(\"popupP\", options2, cache2);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tif (options2.popupM)\n\t\t\t\tSetEvents(\"popupM\", options2, cache2);\n\n\t\t\tif (options2.popupP)\n\t\t\t\tSetEvents(\"popupP\", options2, cache2);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t_data = new MovieData(document.URL, document.body);\n\t\t\tconsole.log(_data);\n\t\t\tcache2.CheckData(_data);\n\t\t\tconsole.log(cache2);\n\n\t\t\tif (options2.connections)\n\t\t\t\tShowConnections(document.URL, cache2);\n\n\t\t\tif (options2.trailer)\n\t\t\t\tShowYoutubeUrl(document.URL, cache2);\n\n\t\t\tif (options2.additionalRatings[\"on\"])\n\t\t\t{\n\t\t\t\tif (options2.additionalRatings[\"kinopoisk\"])\n\t\t\t\t\tShowRatings(document.URL, \"kinopoisk\", cache2);\n\n\t\t\t\tif (options2.additionalRatings[\"rottenTomatoes\"])\n\t\t\t\t\tShowRatings(document.URL, \"rottenTomatoes\", cache2);\n\n\t\t\t\tif (options2.additionalRatings[\"rMovies\"])\n\t\t\t\t\tShowRatings(document.URL, \"rMovies\", cache2);\n\n\t\t\t\tif (options2.additionalRatings[\"tmdb\"])\n\t\t\t\t\tShowRatings(document.URL, \"tmdb\", cache2);\n\t\t\t}\n\n\t\t\tif (options2.hide[\"on\"])\n\t\t\t{\n\t\t\t\t//TODO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n\n\t\t\tif (options2.popupM)\n\t\t\t\tSetEvents(\"popupM\", options2, cache2);\n\n\t\t\tif (options2.popupP)\n\t\t\t\tSetEvents(\"popupP\", options2, cache2);\n\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t//AddCache(\"connects\", document.URL);\n\t\t\t//SetUpForConnects();\n\t\t\tif (options2.popupM)\n\t\t\t\tSetEvents(\"popupM\", options2, cache2);\n\n\t\t\tif (options2.popupP)\n\t\t\t\tSetEvents(\"popupP\", options2, cache2);\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t_data = new PeopleData(document.URL, document);\n\t\t\tconsole.log(_data);\n\t\t\tcache2.CheckData(_data);\n\t\t\tconsole.log(cache2);\n\n\t\t\tif (options2.age)\n\t\t\t\tShowAge();\n\n\t\t\tif (options2.genre)\n\t\t\t{\n\t\t\t\tShowGenre(cache2);\n\t\t\t\t//event detecting click\n\t\t\t\tSetEvents(\"clickFilm\", options2, cache2);\n\t\t\t}\n\n\t\t\tif (options2.popupM)\n\t\t\t\tSetEvents(\"popupM\", options2, cache2);\n\n\t\t\tif (options2.popupP)\n\t\t\t\tSetEvents(\"popupP\", options2, cache2);\n\t\t\tbreak;\n\t\tcase 6:\n\t\tcase 10:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n}","async function forwardAndBackwardButtons(page) {\n // Back Cancel/Save Draft and Continue buttons\n // in div class='diva2addtextbotmargin'\n //
\n\n let heading_cmds;\n let heading_ids;\n let heading_types;\n let heading_values;\n \n // This area also has three buttons\n heading_cmds = await page.$$eval('div.diva2backfortop a', nodes => nodes.map(n => n.textContent));\n heading_ids = await page.$$eval('div.diva2backfortop a', nodes => nodes.map(n => n.getAttribute('id')));\n\n console.info(\"buttons at the top of the page\",\" heading_cmds: \", heading_cmds, \" heading_ids: \", heading_ids);\n return {heading_cmds, heading_ids};\n}","function webPageElements() { \n \t pageElements.input = document.getElementById('input');\n \t pageElements.output = document.getElementById('output');\n \t pageElements.linksCount = document.getElementById('linksCount');\n \t pageElements.alertText = document.getElementById('alertText');\n \t pageElements.authorSelect = document.getElementById('authorSelect');\n \t pageElements.tagSelect = document.getElementById('tagSelect');\n \t pageElements.saveBtn = document.getElementById('saveBtn');\n \t pageElements.addBtn = document.getElementById('addBtn');\n \t pageElements.getAllBtn = document.getElementById('getAllBtn');\n \t pageElements.deleteBtn = document.getElementById('deleteBtn');\n\n \t assignEventListeners() \n }","function getEvents(page) {\n\n//Displaying the information\n $('#events-panel').show();\n $('#attraction-panel').hide();\n\n if (page < 0) {\n page = 0;\n return;\n }\n if (page > 0) {\n //Data stored as a json\n if (page > getEvents.json.page.totalPages - 1) {\n page = 0;\n return;\n }\n }\n//Getting the json and displaying it\n $.ajax({\n type: \"GET\",\n url: \"https://app.ticketmaster.com/discovery/v2/events.json?apikey=5QGCEXAsJowiCI4n1uAwMlCGAcSNAEmG&size=8&page=\" + page,\n async: true,\n dataType: \"json\",\n success: function(json) {\n getEvents.json = json;\n showEvents(json);\n },\n error: function(xhr, status, err) {\n console.log(err);\n }\n });\n}","function recog(){\n console.log(hasilGestur);\n if(pageOne.style.display==\"inline\"){\n switch(hasilGestur){\n case \"0\":\n helpButton.click();\n break;\n case \"5\":\n startButton.click();\n break;\n }\n } else if(pageTwo.style.display==\"inline\"){\n switch(hasilGestur){\n case \"👍\":\n startButton2.click();\n break;\n case \"2\":\n menuButton2.click();\n break;\n }\n } else if(pageThree.style.display==\"inline\"){\n switch(hasilGestur){\n case \"1\":\n easyButton.click();\n break;\n case \"2\":\n hardButton.click();\n break;\n case \"0\":\n menuButton3.click();\n break;\n }\n } else if(pageFour.style.display==\"inline\"){\n switch(hasilGestur){\n case \"👍\":\n menuButton4.click();\n break;\n }\n } else if(pageFive.style.display==\"inline\"){\n switch(hasilGestur){\n case \"👍\":\n menuButton5.click();\n break;\n }\n } else if(pageSix.style.display==\"inline\"){\n switch(hasilGestur){\n case \"0\":\n playAgainButton.click();\n break;\n case \"👆\":\n menuButton6.click();\n break;\n }\n }\n hasilGestur=\"-\";\n}","function preparePage() {\n let id = getParameterByName('id');\n let from = getParameterByName('from');\n let type = getParameterByName('type');\n\n //new lines added by me\n //window.alert(\"Saurabh\");\n\n $('#findProject').hide();\n $('.editProject').hide();\n\n if (id) {\n projectID = id;\n EDIT_INTENTION = true;\n console.log('PROJECT ID = ', id);\n currentDivLocation = 'projectManager';\n\n $.ajax({\n type: 'POST',\n url: 'Project',\n data: {\n domain: 'project',\n action: 'getSpecificObjects',\n changeordertype: true,\n },\n success: function (data) {\n CHANGE_ORDER_TYPES = JSON.parse(data.changeordertype);\n console.log('CO TYPES = ', CHANGE_ORDER_TYPES);\n getProject_PROJECT_MANAGER(id);\n $('#projectManager').show();\n $('.projectNavigator-projectManager').show();\n PAGE_ENTRY = 'fromTask';\n if (from) {\n PAGE_ENTRY = from;\n }\n },\n });\n } else {\n $('.projectNavigator').show();\n $('.projectNavigator-projectFinder').hide();\n getTheProjects();\n $('#findProject').show();\n }\n}","changePage(e) {\n e.preventDefault();\n const page = e.target.dataset.page;\n const $btn = e.target.parentElement.parentElement.parentElement.dataset.id;\n const page_url = `/?page=${page}`;\n\n if ($btn === \"1\") {\n fetch(page_url)\n .then(response => response.text())\n .then(text => {\n const parser = new DOMParser();\n const htmlDocument = parser.parseFromString(text, \"text/html\");\n const section = htmlDocument.documentElement.querySelector(\"div.help--slides:nth-child(3)\").innerHTML;\n e.target.parentElement.parentElement.parentElement.innerHTML = section\n });\n } else if ($btn === \"2\") {\n fetch(page_url)\n .then(response => response.text())\n .then(text => {\n const parser = new DOMParser();\n const htmlDocument = parser.parseFromString(text, \"text/html\");\n const section = htmlDocument.documentElement.querySelector(\"div.help--slides:nth-child(4)\").innerHTML;\n e.target.parentElement.parentElement.parentElement.innerHTML = section\n });\n } else if ($btn === \"3\") {\n fetch(page_url)\n .then(response => response.text())\n .then(text => {\n const parser = new DOMParser();\n const htmlDocument = parser.parseFromString(text, \"text/html\");\n const section = htmlDocument.documentElement.querySelector(\"div.help--slides:nth-child(5)\").innerHTML;\n e.target.parentElement.parentElement.parentElement.innerHTML = section\n });\n }\n }","function assemble_searchAndClick_pageView (prob, persona, AppType, category){\n// 3 Random Search\n// 1 Random S&C\n \n //[EXTRACT DATA]\n //EXTRACT goodQuery ->> extract_goodQuery(category)\n\n //EXTRACT queryText, docToClick ->> extract_targetSearch(AppType, category)\n\n //EXTRACT DATA - get an object { query, uri, title, appisfree }\n let data = extract_searchAndClick(AppType, category);\n\n //build_searchAndClick (queryText, docToClick, prob, persona, AppType)\n let searchAndClick = build_searchAndClick (data.query, data.title, prob, persona, AppType)\n let viewEvent = build_targetted_view(data.uri, data.title, prob)\n\n return [searchAndClick, viewEvent]\n\n //->FEEDING TO, requires 3 goodQuery + [queryText, docToClick, prob, persona, AppType]\n\n //build_random_search (goodQuery)\n //build_searchAndClick (queryText, docToClick, prob, persona, AppType)\n}","function navigatePage_elementsExtraJS() {\n // screen (navigatePage) extra code\n /* navigateList */\n listView = $(\"#navigatePage_navigateList\");\n theme = listView.attr(\"data-theme\");\n if (typeof theme !== 'undefined') {\n var themeClass = \"ui-btn-up-\" + theme;\n listItem = $(\"#navigatePage_navigateList .ui-li-static\");\n $.each(listItem, function(index, value) {\n $(this).addClass(themeClass);\n });\n }\n /* nearbyButton */\n /* scanCodeButton */\n /* currentSelectionsButton */\n /* menuHistoryButton */\n /* favoritesButton */\n /* wishListButton */\n /* orderHistoryButton */\n /* searchPageReturnButton */\n /* updateProfileButton */\n /* settingsButton */\n /* helpButton */\n /* ratingInfoPageButton */\n /* logoutButton */\n /* logoutConfirmPopup */\n $(\"#navigatePage_logoutConfirmPopup\").popup(\"option\", \"positionTo\", \"window\");\n /* loginGotoPopup */\n $(\"#navigatePage_loginGotoPopup\").popup(\"option\", \"positionTo\", \"window\");\n /* quickMessagePopup */\n $(\"#navigatePage_quickMessagePopup\").popup(\"option\", \"positionTo\", \"window\");\n /* locationPopup */\n $(\"#navigatePage_locationPopup\").popup(\"option\", \"positionTo\", \"window\");\n /* featureLocationList */\n listView = $(\"#navigatePage_featureLocationList\");\n theme = listView.attr(\"data-theme\");\n if (typeof theme !== 'undefined') {\n var themeClass = \"ui-btn-up-\" + theme;\n listItem = $(\"#navigatePage_featureLocationList .ui-li-static\");\n $.each(listItem, function(index, value) {\n $(this).addClass(themeClass);\n });\n }\n /* featureLocationListItem */\n /* locationList */\n listView = $(\"#navigatePage_locationList\");\n theme = listView.attr(\"data-theme\");\n if (typeof theme !== 'undefined') {\n var themeClass = \"ui-btn-up-\" + theme;\n listItem = $(\"#navigatePage_locationList .ui-li-static\");\n $.each(listItem, function(index, value) {\n $(this).addClass(themeClass);\n });\n }\n /* locationItem */\n }","function getPageInfos(){\n browser.tabs.query({active: true, currentWindow: true}, function(tabs) {\n browser.tabs.sendMessage(tabs[0].id, {infoCode: \"pageInfo\"}, function(response) {\n writeToPopup(response);\n });\n });\n}","function listenTurnOpetation() {\n\n // clean page\n cleanAllChilden($('#borrow-list')); \n // get the first page of wunderlist\n getBorrowlist(1);\n // uppdate\n updatePages();\n\n // next page\n var nextPage = $('#borrow-content .next-page');\n nextPage.click(function () {\n if (currPage == allPages) {\n alert('This is the last page!');\n return;\n }\n cleanAllChilden($('#borrow-list')); // clean page\n getBorrowlist(++currPage);\n updatePages();\n });\n\n // prev page\n var prePage = $('#borrow-content .pre-page');\n prePage.click(function () {\n if (currPage == 1) {\n alert('This is the first page!');\n return;\n }\n cleanAllChilden($('#borrow-list')); // clean page\n getBorrowlist(--currPage);\n updatePages();\n })\n\n // first page\n var firstPage = $('#borrow-content .first-page');\n firstPage.click(function () {\n cleanAllChilden($('#borrow-list')); // clean page\n currPage = 1;\n getBorrowlist(currPage);\n updatePages();\n });\n\n // last page\n var lastPage = $('#borrow-content .last-page');\n lastPage.click(function () {\n cleanAllChilden($('#borrow-list')); // clean page\n currPage = allPages;\n getBorrowlist(currPage);\n updatePages();\n });\n}","function getContent(value,title,articles,event){//{{{\r\n //en alttaki pageContent kismini kaldir\r\n document.getElementById(\"PageContent\").style.display=\"none\";\r\n//setCookie(\"okutmanSpeed\",\"250\",7);\r\n document.getElementById(\"btnLeft\").style.display = \"none\";\r\n document.getElementById(\"btnRight\").style.display = \"none\";\r\n isFast = true;\r\n isLarge = false;\r\n i=0;\r\n var pnl = document.getElementById(\"backPnl\");\r\n pnl.style.display = \"block\";\r\n pnl = document.getElementById(\"whitPnl\");\r\n pnl.style.display = \"block\";\r\n \r\n var pnlHeader = document.getElementById(\"txtHeader\");\r\n if(pnlHeader)\r\n pnlHeader.innerHTML = title;\r\n \r\n var pnlBody = document.getElementById(\"txtBody\");\r\n pnlBody.style.paddingTop = \"60px\";\r\n \r\n //pnlBody.innerHTML = \"

\"+value+\"

\";\r\n value = value.replace(/[\\n-]/g,\" \");\r\n n = value.split(\" \");\r\n \r\n \r\n \r\n var inHtml = \"
\" + n[i] + \"

\"\r\n + \"
\"\r\n + \"
\"\r\n + \"
\";\r\n \r\n \r\n \r\n inHtml +=\"&nbsp;&nbsp;

\"\r\n +\"\"\r\n +\"\";\r\n +\"
\";\r\n \r\n pnlBody.innerHTML = inHtml;\r\n \r\n var btnOptions = pnlBody.getElementsByClassName(\"btnOkutmanOptions\")[0];\r\n var optPan = \"goster\";\r\n btnOptions.onclick = function(){\r\n \r\n var timerOptions = setInterval(function(){\r\n var okutmanSettings = pnlBody.getElementsByClassName(\"okutmanSettings\")[0];\r\n \tvar height = parseInt(okutmanSettings.style.height);\r\n if((optPan == \"goster\" && height>=122) || (optPan==\"gizle\" && height<=0 )){\r\n if(optPan==\"goster\")\r\n optPan=\"gizle\";\r\n else\r\n optPan =\"goster\";\r\n \tclearInterval(timerOptions);\r\n return;\r\n }\r\n if(optPan==\"goster\")\r\n\t okutmanSettings.style.height = (height+5) + \"px\";\r\n else\r\n okutmanSettings.style.height = (height-5) + \"px\";\r\n },1); \r\n }\r\n \r\n \r\n var selectMenu = pnlBody.getElementsByClassName(\"textSpeed\")[0];\r\n selectMenu.value = getCookie(\"okutmanSpeed\");\r\n selectMenu.onchange = function(){\r\n var chosenoption=this.options[this.selectedIndex].value; //this refers to \"selectmenu\"\r\n\t\tsetCookie(\"okutmanSpeed\",chosenoption,30);\r\n }\r\n \r\n var chClose = pnlBody.getElementsByClassName(\"chClose\")[0];\r\n if(getCookie(\"okutmanClose\") && getCookie(\"okutmanClose\")==\"true\"){\r\n \tchClose.checked = true;\r\n }else\r\n chClose.checked = false;\r\n chClose.onchange = function(){\r\n \tvar val = this.checked;\r\n if(val)\r\n setCookie(\"okutmanClose\",true,30);\r\n else\r\n delCookie(\"okutmanClose\")\r\n }\r\n \r\n var chOtoStart = pnlBody.getElementsByClassName(\"chOtoStart\")[0];\r\n if(getCookie(\"okutmanOtoStart\") && getCookie(\"okutmanOtoStart\")==\"true\"){\r\n \tchOtoStart.checked = true;\r\n var btnStop = pnlBody.getElementsByClassName(\"btnStop\")[0];\r\n var cookieVal = parseInt(getCookie('okutmanSpeed'));\r\n var textSpeed = 0;\r\n if(cookieVal)\r\n textSpeed = cookieVal;\r\n else\r\n textSpeed = 200;\r\n btnStop.innerHTML = \"durdur\";\r\n timeOut = setInterval(function(){\r\n flowText(pnlBody);\r\n i++;\r\n },(60000/textSpeed));\r\n }else\r\n chOtoStart.checked = false;\r\n \r\n chOtoStart.onchange = function(){\r\n \tvar val = this.checked;\r\n if(val){\r\n \tsetCookie(\"okutmanOtoStart\",true,30); \r\n }else\r\n delCookie(\"okutmanOtoStart\");\r\n \r\n }\r\n \r\n var btnStop = pnlBody.getElementsByClassName(\"btnStop\")[0];\r\n btnStop.onclick = startStopContent;\r\n /*\r\n timeOut = setInterval(function(){\r\n \tflowText(i,n,pnlBody);\r\n \ti++;\r\n },(60000/textSpeed));\r\n */\r\n pnl.appendChild(pnlBody);\r\n var articleIndex = findArticleIndex(articles,event);\r\n createSuserPanel(articles[articleIndex]);\r\n document.body.parentNode.style.overflow = \"hidden\";\r\n}//}}}","function objPage(funLoad, strPrereq, funTest)\n {\n\tthis.funLoad = funLoad;\n\tthis.strPrereq = strPrereq;\n\tthis.funTest = funTest;\n }","function prepareEmployeePage() {\r\n // make sure the calculation is correct.\r\n step = 3;\r\n calculateCompletion();\r\n previousAction = actions.businessNameStep;\r\n nextAction = actions.activityGSTStep;\r\n\r\n checkEmployeeTips();\r\n\r\n // company stream\r\n if (applicationType.name === companyName) {\r\n // check which option user has selected\r\n if (applicationType.hasEmployee != undefined) {\r\n if (applicationType.hasEmployee) {\r\n $(\"#companyEmployeeYes\").prop('checked', true);\r\n }\r\n else {\r\n $(\"#companyEmployeeNo\").prop('checked', true);\r\n }\r\n }\r\n // check whether user selected benefits to employee or not.\r\n if (applicationType.fringeBenefit != undefined) {\r\n if (applicationType.fringeBenefit) {\r\n $(\"#fringeBenefitsEmployeeYes\").prop('checked', true);\r\n }\r\n else {\r\n $(\"#fringeBenefitsEmployeeNo\").prop('checked', true);\r\n }\r\n }\r\n\r\n // company employee\r\n $(\"#companyEmployeeYes\").click(function () {\r\n applicationType.hasEmployee = true;\r\n registrations.isPAYG = true;\r\n\t checkEmployeeTips();\r\n });\r\n\r\n $(\"#companyEmployeeNo\").click(function () {\r\n applicationType.hasEmployee = false;\r\n applicationType.fringeBenefit = false;\r\n registrations.isFBT = false;\r\n registrations.isPAYG = false;\r\n checkEmployeeTips();\r\n\t });\r\n\r\n // Company fringe benefits\r\n $(\"#fringeBenefitsEmployeeYes\").click(function () {\r\n applicationType.fringeBenefit = true;\r\n registrations.isFBT = true;\r\n\t checkEmployeeTips();\r\n });\r\n\r\n $(\"#fringeBenefitsEmployeeNo\").click(function () {\r\n applicationType.fringeBenefit = false;\r\n registrations.isFBT = false;\r\n\t checkEmployeeTips();\r\n });\r\n }\r\n else {\r\n // sole trader or partnership\r\n if (applicationType.hasEmployee != undefined) {\r\n if (applicationType.hasEmployee) {\r\n $(\"#employeeYes\").prop('checked', true);\r\n $(\"#fringeBenefit\").show();\r\n }\r\n else {\r\n $(\"#employeeNo\").prop('checked', true);\r\n }\r\n }\r\n else {\r\n $(\"#fringeBenefit\").hide();\r\n }\r\n if ($(\"#fringeBenefit\").is(':visible')) {\r\n if (applicationType.fringeBenefit != undefined) {\r\n if (applicationType.fringeBenefit) {\r\n $(\"#fringeBenefitYes\").prop('checked', true);\r\n }\r\n else {\r\n $(\"#fringeBenefitNo\").prop('checked', true);\r\n }\r\n }\r\n }\r\n // employee\r\n $(\"#employeeYes\").click(function () {\r\n $(\"#fringeBenefit\").show(100);\r\n applicationType.hasEmployee = true;\r\n registrations.isPAYG = true;\r\n\t checkEmployeeTips();\r\n });\r\n\r\n $(\"#employeeNo\").click(function () {\r\n hideElementAndClear(\"fringeBenefit\");\r\n applicationType.hasEmployee = false;\r\n applicationType.fringeBenefit = false;\r\n registrations.isPAYG = false;\r\n\t checkEmployeeTips();\r\n });\r\n // fringe benefits\r\n $(\"#fringeBenefitYes\").click(function () {\r\n applicationType.fringeBenefit = true;\r\n registrations.isFBT = true;\r\n\t checkEmployeeTips();\r\n });\r\n\r\n $(\"#fringeBenefitNo\").click(function () {\r\n applicationType.fringeBenefit = false;\r\n registrations.isFBT = false;\r\n \tcheckEmployeeTips();\r\n });\r\n }\r\n}","function navigate(){\n\t\n\tvar clicked = $(this); //get clicked element in the navigation panel\n\tvar pageId = $(\".active\").attr('id'); //get clicked element id\n\tvar currentPage = parseInt(pageId.replace(\"Page\",\"\"),10); //get current page number\n\tvar futurePage = currentPage; //Initialize future page (same as current page)\n \n //Determin future page based on clicked button\t\n\tswitch(clicked.attr('id')){\n\t\tcase 'first':\n\t\t\t\tfuturePage = 1;\n\t\tbreak;\n\t\t\n\t\tcase 'last':\n\t\t\t\tfuturePage = commTotalPages;\n\t\tbreak;\n\t\t\n\t\tdefault:\n\t\t pageId = clicked.attr('id'); //get clicked page ID\n\t\t\tvar newPage = pageId.replace(\"Page\",\"\"); //get clicked page number\n\t\t\t\n\t\t \t//if clicked page is in valid page range\n\t\t\tif(newPage >= 1 && newPage <=commTotalPages){\n\t\t\t\tfuturePage = newPage;\n\t\t\t}\n\t\tbreak;\n\t} //End Switch\n\t\n\tvar comments = new Comments();\n\tcomments.getCommentsForArticle(currentArticleId,futurePage,commPageSize).done(displayComments); //get and display comments for first page;\n\t\n\t//Manage visual spects\n\t$(\"a\").removeClass('active'); //remove active class for all elements\n\t$(\"#Page\" + futurePage).addClass('active'); //activate new page\n\t\n\t//Reconfigure first and last buttons\n\tif(parseInt(futurePage,10) === 1 ){\n\t\t$(\"#first\").addClass('disabled');\n\t\t$(\"#last\").removeClass('disabled');\n\t}else if(parseInt(futurePage,10) === commTotalPages ){\n\t\t$(\"#first\").removeClass('disabled');\n\t\t$(\"#last\").addClass('disabled');\n\t}\n\telse{\n\t\t$(\"#first\").removeClass('disabled');\n\t\t$(\"#last\").removeClass('disabled');\n\t}\n\t\n}//END Navigation function","function buildPage() {\n //create title\n createElementsSlidWeOffer.titleWeOffer.classList.add('titleWeOffer');\n createElementsSlidWeOffer.titleWeOffer.appendChild(createElementsSlidWeOffer.textTitleWeOffer);\n slid2.appendChild(createElementsSlidWeOffer.titleWeOffer);\n\n // create svg\n createElementsSlidWeOffer.blockSVGWeOffer.classList.add('blockSVG');\n slid2.appendChild(createElementsSlidWeOffer.blockSVGWeOffer);\n\n // create modal window for internet shop\n createElementsSlidWeOffer.modalWindowInternetShop.classList.add('modalWeOfffer', 'internetShop');\n createElementsSlidWeOffer.containerModalInternetShop.classList.add('containerWeOfffer');\n createElementsSlidWeOffer.buttonModalInternetShop.classList.add('internetShopButton');\n // createElementsSlidWeOffer.buttonModalInternetShop.appendChild(createTextForModalWindows.textButtonInternetShop);\n createElementsSlidWeOffer.containerModalInternetShop.appendChild(createElementsSlidWeOffer.blockTextModalInternetShop);\n createElementsSlidWeOffer.containerModalInternetShop.appendChild(createElementsSlidWeOffer.buttonModalInternetShop);\n createElementsSlidWeOffer.blockTextModalInternetShop.appendChild(createTextForModalWindows.textModalInternetShop);\n createElementsSlidWeOffer.modalWindowInternetShop.appendChild(createElementsSlidWeOffer.containerModalInternetShop);\n slid2.appendChild(createElementsSlidWeOffer.modalWindowInternetShop);\n\n // create modal window for site company\n createElementsSlidWeOffer.modalWindowSiteCompany.classList.add('modalWeOfffer', 'siteCompany');\n createElementsSlidWeOffer.containerModalSiteCompany.classList.add('containerWeOfffer');\n createElementsSlidWeOffer.buttonModalSiteCompany.classList.add('siteCompanyButton');\n // createElementsSlidWeOffer.buttonModalSiteCompany.appendChild(createTextForModalWindows.textButtonSiteCompany);\n createElementsSlidWeOffer.containerModalSiteCompany.appendChild(createElementsSlidWeOffer.blockTextModalSiteCompany);\n createElementsSlidWeOffer.containerModalSiteCompany.appendChild(createElementsSlidWeOffer.buttonModalSiteCompany);\n createElementsSlidWeOffer.blockTextModalSiteCompany.appendChild(createTextForModalWindows.textModalSiteCompany);\n createElementsSlidWeOffer.modalWindowSiteCompany.appendChild(createElementsSlidWeOffer.containerModalSiteCompany);\n slid2.appendChild(createElementsSlidWeOffer.modalWindowSiteCompany);\n\n // create modal window for Blog\n createElementsSlidWeOffer.modalWindowBlog.classList.add('modalWeOfffer', 'blog');\n createElementsSlidWeOffer.containerModalBlog.classList.add('containerWeOfffer');\n createElementsSlidWeOffer.buttonModalBlog.classList.add('blogButton');\n // createElementsSlidWeOffer.buttonModalBlog.appendChild(createTextForModalWindows.textButtonBlog);\n createElementsSlidWeOffer.containerModalBlog.appendChild(createElementsSlidWeOffer.blockTextModalBlog);\n createElementsSlidWeOffer.containerModalBlog.appendChild(createElementsSlidWeOffer.buttonModalBlog);\n createElementsSlidWeOffer.blockTextModalBlog.appendChild(createTextForModalWindows.textModalBlog);\n createElementsSlidWeOffer.modalWindowBlog.appendChild(createElementsSlidWeOffer.containerModalBlog);\n slid2.appendChild(createElementsSlidWeOffer.modalWindowBlog);\n\n // create modal window for Portfolio\n createElementsSlidWeOffer.modalWindowPortfolio.classList.add('modalWeOfffer', 'portfolio');\n createElementsSlidWeOffer.containerModalPortfolio.classList.add('containerWeOfffer');\n createElementsSlidWeOffer.buttonModalPortfolio.classList.add('portfolioButton');\n // createElementsSlidWeOffer.buttonModalPortfolio.appendChild(createTextForModalWindows.textButtonPortfolio);\n createElementsSlidWeOffer.containerModalPortfolio.appendChild(createElementsSlidWeOffer.blockTextModalPortfolio);\n createElementsSlidWeOffer.containerModalPortfolio.appendChild(createElementsSlidWeOffer.buttonModalPortfolio);\n createElementsSlidWeOffer.blockTextModalPortfolio.appendChild(createTextForModalWindows.textModalPortfolio);\n createElementsSlidWeOffer.modalWindowPortfolio.appendChild(createElementsSlidWeOffer.containerModalPortfolio);\n slid2.appendChild(createElementsSlidWeOffer.modalWindowPortfolio);\n\n // create modal window for Social Network\n createElementsSlidWeOffer.modalWindowSocialNetwork.classList.add('modalWeOfffer', 'socialNetwork');\n createElementsSlidWeOffer.containerModalSocialNetwork.classList.add('containerWeOfffer');\n createElementsSlidWeOffer.buttonModalSocialNetwork.classList.add('socialNetworkButton');\n // createElementsSlidWeOffer.buttonModalSocialNetwork.appendChild(createTextForModalWindows.textButtonSocialNetwork);\n createElementsSlidWeOffer.containerModalSocialNetwork.appendChild(createElementsSlidWeOffer.blockTextModalSocialNetwork);\n createElementsSlidWeOffer.containerModalSocialNetwork.appendChild(createElementsSlidWeOffer.buttonModalSocialNetwork);\n createElementsSlidWeOffer.blockTextModalSocialNetwork.appendChild(createTextForModalWindows.textModalSocialNetwork);\n createElementsSlidWeOffer.modalWindowSocialNetwork.appendChild(createElementsSlidWeOffer.containerModalSocialNetwork);\n slid2.appendChild(createElementsSlidWeOffer.modalWindowSocialNetwork);\n\n // create modal window for Forum\n createElementsSlidWeOffer.modalWindowForum.classList.add('modalWeOfffer', 'forum');\n createElementsSlidWeOffer.containerModalForum.classList.add('containerWeOfffer');\n createElementsSlidWeOffer.buttonModalForum.classList.add('forumButton');\n // createElementsSlidWeOffer.buttonModalForum.appendChild(createTextForModalWindows.textButtonForum);\n createElementsSlidWeOffer.containerModalForum.appendChild(createElementsSlidWeOffer.blockTextModalForum);\n createElementsSlidWeOffer.containerModalForum.appendChild(createElementsSlidWeOffer.buttonModalForum);\n createElementsSlidWeOffer.blockTextModalForum.appendChild(createTextForModalWindows.textModalForum);\n createElementsSlidWeOffer.modalWindowForum.appendChild(createElementsSlidWeOffer.containerModalForum);\n slid2.appendChild(createElementsSlidWeOffer.modalWindowForum);\n\n // create modal window for Landing\n createElementsSlidWeOffer.modalWindowLanding.classList.add('modalWeOfffer', 'landing');\n createElementsSlidWeOffer.containerModalLanding.classList.add('containerWeOfffer');\n createElementsSlidWeOffer.buttonModalLanding.classList.add('landingButton');\n // createElementsSlidWeOffer.buttonModalLanding.appendChild(createTextForModalWindows.textButtonLanding);\n createElementsSlidWeOffer.containerModalLanding.appendChild(createElementsSlidWeOffer.blockTextModalLanding);\n createElementsSlidWeOffer.containerModalLanding.appendChild(createElementsSlidWeOffer.buttonModalLanding);\n createElementsSlidWeOffer.blockTextModalLanding.appendChild(createTextForModalWindows.textModalLanding);\n createElementsSlidWeOffer.modalWindowLanding.appendChild(createElementsSlidWeOffer.containerModalLanding);\n slid2.appendChild(createElementsSlidWeOffer.modalWindowLanding);\n\n // create modal window for Game Sours\n createElementsSlidWeOffer.modalWindowGameSours.classList.add('modalWeOfffer', 'gameSours');\n createElementsSlidWeOffer.containerModalGameSours.classList.add('containerWeOfffer');\n createElementsSlidWeOffer.buttonModalGameSours.classList.add('gameSoursButton');\n // createElementsSlidWeOffer.buttonModalGameSours.appendChild(createTextForModalWindows.textButtonGameSours);\n createElementsSlidWeOffer.containerModalGameSours.appendChild(createElementsSlidWeOffer.blockTextModalGameSours);\n createElementsSlidWeOffer.containerModalGameSours.appendChild(createElementsSlidWeOffer.buttonModalGameSours);\n createElementsSlidWeOffer.blockTextModalGameSours.appendChild(createTextForModalWindows.textModalGameSours);\n createElementsSlidWeOffer.modalWindowGameSours.appendChild(createElementsSlidWeOffer.containerModalGameSours);\n slid2.appendChild(createElementsSlidWeOffer.modalWindowGameSours);\n}","function ciniki_web_info() {\n \n this.activeToggles = {'no':'No', 'yes':'Yes'};\n this.subpages = {\n '2':{'name':'Artist Statement', 'ui':'artiststatement', 'permalink':'artiststatement', 'flags':0x02},\n '3':{'name':'CV', 'ui':'cv', 'permalink':'cv', 'flags':0x04},\n '4':{'name':'Awards', 'ui':'awards', 'permalink':'awards', 'flags':0x08},\n '5':{'name':'History', 'ui':'history', 'permalink':'history', 'flags':0x10},\n '6':{'name':'Donations', 'ui':'donations', 'permalink':'donations', 'flags':0x20},\n '9':{'name':'Facilities', 'ui':'facilities', 'permalink':'facilities', 'flags':0x100},\n '8':{'name':'Board of Directors', 'ui':'boardofdirectors', 'permalink':'boardofdirectors', 'flags':0x80},\n '7':{'name':'Membership', 'ui':'membership', 'permalink':'membership', 'flags':0x40},\n '11':{'name':'Warranty', 'ui':'warranty', 'permalink':'warranty', 'flags':0x0400},\n '12':{'name':'Testimonials', 'ui':'testimonials', 'permalink':'testimonials', 'flags':0x0800},\n '13':{'name':'Reviews', 'ui':'reviews', 'permalink':'reviews', 'flags':0x1000},\n '14':{'name':'Green Policy', 'ui':'greenpolicy', 'permalink':'greenpolicy', 'flags':0x2000},\n '15':{'name':'Why us', 'ui':'whyus', 'permalink':'whyus', 'flags':0x4000},\n '16':{'name':'Privacy Policy', 'ui':'privacypolicy', 'permalink':'privacypolicy', 'flags':0x8000},\n '17':{'name':'Volunteer', 'ui':'volunteer', 'permalink':'volunteer', 'flags':0x010000},\n '18':{'name':'Rental', 'ui':'rental', 'permalink':'rental', 'flags':0x020000},\n '19':{'name':'Financial Assistance', 'ui':'financialassistance', 'permalink':'financialassistance', 'flags':0x040000},\n '20':{'name':'Artists', 'ui':'artists', 'permalink':'artists', 'flags':0x080000},\n '21':{'name':'Employment', 'ui':'employment', 'permalink':'employment', 'flags':0x100000},\n '22':{'name':'Staff', 'ui':'staff', 'permalink':'staff', 'flags':0x200000},\n '23':{'name':'Sponsorship', 'ui':'sponsorship', 'permalink':'sponsorship', 'flags':0x400000},\n '24':{'name':'Jobs', 'ui':'jobs', 'permalink':'jobs', 'flags':0x800000},\n };\n \n this.init = function() {\n //\n // The options and information for the info page\n //\n this.page = new M.panel('Information',\n 'ciniki_web_info', 'page',\n 'mc', 'medium', 'sectioned', 'ciniki.web.info.page');\n this.page.data = {};\n this.page.sections = {\n 'options':{'label':'', 'fields':{\n 'page-info-active':{'label':'Display Info Page', 'type':'multitoggle', 'default':'no', 'toggles':this.activeToggles},\n 'page-info-title':{'label':'Title', 'type':'text', 'hint':'Info'},\n 'page-info-defaultcontenttype':{'label':'Start Page', 'type':'select', 'options':{}},\n }},\n 'subpages':{'label':'', 'fields':{}},\n '_save':{'label':'', 'buttons':{\n 'save':{'label':'Save', 'fn':'M.ciniki_web_info.savePage();'},\n }},\n };\n this.page.fieldValue = function(s, i, d) { \n if( this.data[i] == null ) { return ''; }\n return this.data[i]; \n };\n this.page.fieldHistoryArgs = function(s, i) {\n return {'method':'ciniki.web.pageSettingsHistory', 'args':{'tnid':M.curTenantID, 'field':i}};\n }\n this.page.addButton('save', 'Save', 'M.ciniki_web_info.savePage();');\n this.page.addClose('Cancel');\n }\n\n this.start = function(cb, ap, aG) {\n args = {};\n if( aG != null ) { args = eval(aG); }\n\n //\n // Create the app container if it doesn't exist, and clear it out\n // if it does exist.\n //\n var appContainer = M.createContainer(ap, 'ciniki_web_info', 'yes');\n if( appContainer == null ) {\n M.alert('App Error');\n return false;\n } \n\n this.showPage(cb);\n }\n\n this.showPage = function(cb) {\n this.page.reset();\n M.api.getJSONCb('ciniki.web.pageSettingsGet', {'tnid':M.curTenantID, \n 'page':'info', 'content':'yes'}, function(rsp) {\n if( rsp.stat != 'ok' ) {\n M.api.err(rsp);\n return false;\n }\n var flags = M.curTenant.modules['ciniki.info'].flags;\n var p = M.ciniki_web_info.page;\n p.data = rsp.settings;\n p.sections.subpages.fields = {};\n var options = {};\n var spgs = M.ciniki_web_info.subpages;\n for(i in spgs) {\n if( (spgs[i].flags&flags) > 0 ) { \n options[i] = spgs[i].name;\n p.sections.subpages.fields['page-info-' + spgs[i].permalink + '-active'] = {'label':spgs[i].name,\n 'editFn':'M.ciniki_web_info.editInfo(\\'' + i + '\\');',\n 'type':'toggle', 'default':'no', 'toggles':M.ciniki_web_info.activeToggles};\n }\n }\n p.sections.options.fields['page-info-defaultcontenttype'].options = options;\n p.refresh();\n p.show(cb);\n });\n }\n\n this.editInfo = function(ct) {\n if( this.subpages[ct] != null ) {\n M.startApp('ciniki.info.' + this.subpages[ct].ui,null,'M.ciniki_web_info.page.show();');\n }\n }\n\n this.savePage = function() {\n var c = this.page.serializeForm('no');\n if( c != '' ) {\n M.api.postJSONCb('ciniki.web.siteSettingsUpdate', \n {'tnid':M.curTenantID}, c, function(rsp) {\n if( rsp.stat != 'ok' ) {\n M.api.err(rsp);\n return false;\n } \n M.ciniki_web_info.page.close();\n });\n } else {\n this.page.close();\n }\n };\n}","function PagesContent() {\n\n}","function whatObjClick() {\n\tfor (var key in objects) {\n\t\tif (checkClick(objects[key])) {\n\t\t\treturn objects[key];\n\t\t}\n\t}\n\treturn null;\n}","async function pageFunction(context) {\n // jQuery is handy for finding DOM elements and extracting data from them.\n // To use it, make sure to enable the \"Inject jQuery\" option.\n const $ = context.jQuery;\n const pageTitle = $('title').first().text();\n const date = $('#article .articleMeta .dateTime').text();\n const perex = $('.perex').text();\n const text = $('#article .body').text();\n \n\n // Print some information to actor log\n context.log.info(`URL: ${context.request.url}, TITLE: ${pageTitle}`);\n \n // Return an object with the data extracted from the page.\n // It will be stored to the resulting dataset.\n return {\n url: context.request.url,\n pageTitle,\n date,\n perex,\n text\n \n };\n}","function call_pages(x,y)\n{\n\tlet pagelocaction=x;\n\tlet callbacklocation=y;\n\t//button id\n\t//let thebtn=\"#\"+z;\n\t//let btnz=$(thebtn).html();\n\t//change the button state to loading\n\tcall_loader();\n\t$.ajax({\n\t\turl : pagelocaction,\n\t\ttype : \"POST\",\n\t\tsuccess : function(data)\n\t\t{\n\t\t\t// now you state the reference page that will host MDI and the response after sending the request\n\t\t\tif (data==\"\") {Toastz('warning','No Data Returned','');close_loader();return;}\n\t\t\t\n\t\t\tdocument.getElementById(callbacklocation).innerHTML=data;\n\t\t\t//$(\"#\"+callbacklocation).html(data);\n\t\t\tclose_loader();\n\t\t\treturn;\n\t\t},\n\t\terror : function(data) \n\t\t{\n\t\t\tToastz('danger','Error Occured','');\n\t\t\tclose_loader();\n\t\t}\n\t}\n\t);\n\n\tclose_loader();\n\treturn;\n\n}","connectEventHandlers() {\r\n var EP = C.WIN_PROP.EVENT_PAGE_CLASS; \r\n \r\n /**\r\n * Scrape and dig, but don't automatically download. Instead, present the user with checkbox options\r\n * as to what files to download.\r\n */\r\n document.getElementById(C.ELEMENT_ID.DIG_FILE_OPTIONS).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n bgWindow[EP].goDigFileOptions(window.document);\r\n });\r\n });\r\n\r\n\r\n /**\r\n * Scrape and dig a page that contains links to multiple galleries. Don't automatically download. \r\n * Present the user with checkbox options as to what files to download.\r\n */\r\n document.getElementById(C.ELEMENT_ID.DIG_GALLERY_GALLERY).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n bgWindow[EP].goDigGalleryGallery(window.document);\r\n });\r\n });\r\n\r\n\r\n /**\r\n * This button is in the \"action buttons\" group. They act upon the list of file download options. This\r\n * fires all the checkboxes' click events, causing them all the download.\r\n */\r\n document.getElementById(C.ELEMENT_ID.GET_ALL_FILE_OPTS).addEventListener(C.EVT.CLICK, () => {\r\n document.querySelectorAll('input[type=\"checkbox\"]').forEach((cbEl) => {\r\n var evt = new MouseEvent(C.EVT.CLICK);\r\n cbEl.dispatchEvent(evt);\r\n });\r\n });\r\n\r\n\r\n /**\r\n * This button is in the \"action buttons\" group. They act upon the list of file download options. This\r\n * fires the checkboxes' click events for all jpg files only.\r\n */\r\n document.getElementById(C.ELEMENT_ID.GET_ALL_JPG_OPTS).addEventListener(C.EVT.CLICK, () => {\r\n document.querySelectorAll('input[type=\"checkbox\"]').forEach((cbEl) => {\r\n if (cbEl.dataset.filePath.match(new RegExp(/\\.(jpg|jpeg)$/, 'i'))) {\r\n var evt = new MouseEvent(C.EVT.CLICK);\r\n cbEl.dispatchEvent(evt);\r\n }\r\n });\r\n });\r\n\r\n\r\n /**\r\n * This button is in the \"action buttons\" group. It clears the download list, clears the \r\n * previouslyHarvestedUriMap, shows the scrape/dig buttons, and hides the \"action buttons\".\r\n */\r\n document.getElementById(C.ELEMENT_ID.CLEAR_FILE_LIST).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n Popup.clearPreviousUriMap();\r\n \r\n var out = bgWindow[C.WIN_PROP.OUTPUT_CLASS].getInstanceSetToDoc(window.document);\r\n \r\n out.clearFilesDug();\r\n out.resetFileData();\r\n out.showDigScrapeButtons();\r\n\r\n out.toOut('Hit a button to begin.');\r\n });\r\n });\r\n\r\n\r\n /**\r\n * Scrape for all known types of media on a page.\r\n */\r\n document.getElementById(C.ELEMENT_ID.SCRAPE_FILE_OPTIONS).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n bgWindow[EP].goScrapeFileOptions(window.document);\r\n });\r\n });\r\n\r\n\r\n /**\r\n * Scrape a page, picking up all the included images.\r\n */\r\n document.getElementById(C.ELEMENT_ID.SCRAPE_IMAGES).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n bgWindow[EP].goScrapeImages(window.document);\r\n });\r\n });\r\n\r\n\r\n /**\r\n * Scrape a page, picking up all the included videos.\r\n */\r\n document.getElementById(C.ELEMENT_ID.SCRAPE_VIDEOS).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n bgWindow[EP].goScrapeVideos(window.document);\r\n });\r\n });\r\n\r\n\r\n /**\r\n * A big one, scrape a page for *any* media.\r\n */\r\n document.getElementById(C.ELEMENT_ID.SCRAPE).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n bgWindow[EP].goScrape(window.document);\r\n });\r\n });\r\n\r\n\r\n /**\r\n * Dig an image gallery.\r\n */\r\n document.getElementById(C.ELEMENT_ID.DIG_IMAGE_GALLERY).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n bgWindow[EP].goDigImageGallery(window.document);\r\n });\r\n });\r\n\"\"\r\n\r\n /**\r\n * Dig a video gallery.\r\n */\r\n document.getElementById(C.ELEMENT_ID.DIG_VIDEO_GALLERY).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n bgWindow[EP].goDigVideoGallery(window.document);\r\n });\r\n });\r\n\r\n\r\n /**\r\n * The big one, digging *everything* that could be from a gallery.\r\n */\r\n document.getElementById(C.ELEMENT_ID.DIG).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n bgWindow[EP].goDig(window.document);\r\n });\r\n });\r\n\r\n\r\n /**\r\n * Stop any digging or scraping currently happening. Fire off a STOP event, and provide\r\n * it with a silly dictionary (and it has the time triggered).\r\n */\r\n document.getElementById(C.ELEMENT_ID.STOP).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => { \r\n var evt = new StopEvent();\r\n bgWindow.document.dispatchEvent(evt);\r\n });\r\n });\r\n\r\n\r\n document.getElementById(C.ELEMENT_ID.BACK_TO_TOP).addEventListener(C.EVT.CLICK, () => {\r\n window.scroll({ top: 0 });\r\n });\r\n\r\n /*\r\n document.getElementById(C.ELEMENT_ID.RESUME).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n var evt = new ResumeEvent();\r\n bgWindow.document.dispatchEvent(evt);\r\n });\r\n });\r\n */\r\n\r\n\r\n /**\r\n * Toggle the Voyeur -- a very simple media request tracker-to-console-logger.\r\n */\r\n document.getElementById(C.ELEMENT_ID.TOGGLE_VOYEUR).addEventListener(C.EVT.CLICK, () => {\r\n chrome.runtime.getBackgroundPage((bgWindow) => {\r\n var voy = bgWindow[C.WIN_PROP.VOYEUR_CLASS];\r\n voy.toggleVoying();\r\n });\r\n });\r\n }","function SetUpPage() {\r\n document.all['message1'].style.display = \"none\";\r\n document.all['message2'].style.display = \"none\";\r\n document.all['message3'].style.display = \"none\";\r\n document.all['message4'].style.display = \"none\";\r\n document.all['message5'].style.display = \"none\";\r\n dt = new Date();\r\n hours = dt.getHours();\r\n if (hours >= 0 && hours < 6) {\r\n document.all['chkEarlyMorning'].checked = true;\r\n }\r\n else if (hours >= 6 && hours < 12) {\r\n document.all['chkLateMorning'].checked = true;\r\n }\r\n else if (hours >= 12 && hours < 18) {\r\n document.all['chkAfternoon'].checked = true;\r\n }\r\n else if (hours >= 18 ) {\r\n document.all['chkEvening'].checked = true;\r\n }\r\n showClock();\r\n MenuDiv();\r\n}","function responseHandlerFlow(res) {\n if (res) {\n var openHtmlStr = '' +\n '' +\n '';\n var editHtmlStr = '' +\n '' +\n '';\n var runHtmlStr = '' +\n '' +\n '';\n var debugHtmlStr = '' +\n '' +\n '';\n var delHtmlStr = '' +\n '' +\n '';\n var templateHtmlStr = '' +\n '' +\n '';\n return '
' + openHtmlStr + editHtmlStr + runHtmlStr + debugHtmlStr + delHtmlStr + templateHtmlStr + '
';\n }\n return \"\";\n}","function indeginousTaskDetails (){\nkony.application.showLoadingScreen(null, \"Loading..\", \nconstants.LOADING_SCREEN_POSITION_ONLY_CENTER, true, true, { \nshouldShowLabelInBottom: \"false\", separatorHeight: 20} );\n// gblReqForTaskDetails=valBusRequestID.widgetInfo.data[0].lblRequestId;\n// alert(\"the selected\"+JSON.stringify(gblReqForTaskDetails));\n // Let's get the news type the user selected\n //var selectedKey = frmFoxNews.lstNewsType.selectedKey;\n //alert (\"########## Selected Key:\" + selectedKey);\n // Let's first check that the user picked a valid value\n //if (!kony.string.equalsIgnoreCase(selectedKey, \"none\")){\n // Populating the input params for the service call and invoking the service\n // We're passing in the selected key for the user's selection in the combobox\n // var inputParams = {serviceID:\"getFoxNews\",newsType:selectedKey};\n // Now we make the call to the service using our input parameters and specifying\n // the function processServiceResults as our callback when the service returns results\n // appmiddlewareinvokerasync(inputParams, processServiceResults);\n if (!mobileFabricConfigurationForIndigenousTaskDetails.isKonySDKObjectInitialized)\n {\n initializeMobileFabricForIndigenousTaskDetails();\n \n }\n else if (mobileFabricConfigurationForIndigenousTaskDetails.isKonySDKObjectInitialized)\n {\n setIndigenousTaskDetails();\n }\n }","function showPage(name) {\n $('.page').hide();\n $('.' + name + '-page').show();\n // Run the fuction of the indivial page wich have been clicked\n pageFunctions[name]();\n}","function addEvents() {\n // get buttons from DOM\n var bttnEditArticleEv = document.getElementsByClassName('edit-article');\n var bttnDeleteArticleEv = document.getElementsByClassName('remove-article');\n var bttnAddNewArticleEv = document.getElementById('add-article');\n for (var i = 0; i < bttnEditArticleEv.length; i++) {\n //For each edit\n bttnEditArticleEv[i].addEventListener('click', function(event){\n window.location.href = \"edit.html?articleId=\" + event.path[1].childNodes[4].innerHTML;\n });\n // For delete button \n bttnDeleteArticleEv[i].addEventListener('click', function(event){\n var deleteArt = new Article();\n var that = event;\n deleteArt.id = event.path[1].childNodes[4].innerHTML;\n deleteArt.removeArticle().then(function(response) {\n that.path[1].remove();\n }).then(function() {\n var page = $('.sel').text();\n pageArticles(page);\n });\n });\n }\n // Only one add new article bttn\n bttnAddNewArticleEv.addEventListener('click', function(event) {\n window.location.href = \"create.html\";\n });\n }","function createPage(name, div, button, links, butRef) {\r\n\t// Create page object\r\n\tconst obj = {};\r\n\t// Assign the variables to the page object\r\n\tobj.name = name;\r\n\tobj.div = div;\r\n\tobj.button = button;\r\n\tobj.videoLinks = [];\r\n\tobj.id = \"#\"+name;\r\n\tobj.vidLinks = links;\r\n\tobj.buttonName = butRef;\r\n\t// Return the page object\r\n\treturn obj;\r\n}","function bindEvents(){\r\n\t\t//Move to next page button click\r\n\t\t$('.btn_continue').bind('click', function(){ \r\n\t\t\tvar nameVal = $(this).attr(\"name\");\r\n\t\t\tloadnextpage(nameVal); \r\n\t\t\treturn false;\r\n\t\t});\r\n\r\n\t\t$('.entertowin, #sorryRegister').bind('click', function(){\r\n\t\t\tloadnextpage('register'); \r\n\t\t\treturn false;\r\n\t\t});\r\n\r\n\t\t//Select Partners on Partners page\r\n\t\t$('#selectSix').bind('click', function(){\r\n\t\t\tpartnersSelect();\r\n\t\t\treturn false;\r\n\t\t});\r\n\t\t\r\n\t\t$('#double_down').bind('click', function(){\r\n\t\t\tloadnextpage('doubledown');\r\n\t\t\treturn false;\r\n\t\t});\r\n\r\n\t\t$('#keep_offer').bind('click', function(){\r\n\t\t\tloadnextpage('register');\r\n\t\t\treturn false;\r\n\t\t});\r\n\t\t\r\n\t\t$('.reset').bind('click', function(){\r\n\t\t\tresetGame(); \r\n\t\t\treturn false; \r\n\t\t});\r\n\t}","createListeners() {\r\n html.get('.first').addEventListener('click', () => { // 'first' é a classe atribuida no html\r\n controls.goTo(1)\r\n update()\r\n })\r\n\r\n html.get('.last').addEventListener('click', () => {\r\n controls.goTo(state.totalPage)\r\n update()\r\n })\r\n\r\n html.get('.next').addEventListener('click', () => {\r\n controls.next()\r\n update()\r\n \r\n })\r\n\r\n html.get('.prev').addEventListener('click', () => {\r\n controls.prev()\r\n update()\r\n })\r\n\r\n //-- pesquisa\r\n html.get('.btnSearch').addEventListener('click', () => {\r\n controls.search()\r\n controls.searchShow()\r\n update()\r\n })\r\n\r\n }","function onPageInfo(o) {\n console.log(o)\n }","function initPageVarsOnCreate(id) {\n\t// every page\n\t// every page but...\n\tif (id !== \"LandingPage\") {\n\t\t$(\"*\").i18n();\n\t}\n\t// specific page...\n\tif (id === \"DistributionsWalls\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"WpFavorites\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"OverviewWalls\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"DistributionsRings\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"OverviewRings\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"Sync\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"Index\") {\n\t\thtmlClickEventHandlers(id, \"menu\");\n\t\thomePageCards();\n\t} else if (id === \"Topic\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"About\") {\n\t\tinjectPackageVersion();\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"Support\") {\n\t\tgetSystemSpecs();\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"Settings\") {\n\t\tinitSettingsSwitch();\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"RtFavorites\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"WpFullScrImage\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"DynamicWall\") {\n\t\tinitDynamicWallpaperSwitch();\n\t\tinitServiceSettingsSwitch();\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"RingUri\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"RingSearch\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t} else if (id === \"WallSearch\") {\n\t\thtmlClickEventHandlers(id, \"back\");\n\t}\n}","function actualPlan()\r\n{\r\n\tvar url = \"actual\";\r\n\tvar htmlAreaObj = _getWorkAreaDefaultObj();\r\n\tvar objAjax = htmlAreaObj.getHTMLAjax();\r\n\tvar objHTMLData = htmlAreaObj.getHTMLDataObj();\r\n\r\n\tsectionName = objAjax.getDivSectionId();\r\n\t//alert(\"sectionName \" + sectionName);\r\n\tif(objAjax && objHTMLData)\r\n\t{\r\n\t if(!isValidRecord(true))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tbShowMsg = true;\r\n\t Main.loadWorkArea(\"techspecevents.do\", url);\t \r\n\t}\r\n}","function register_event_handlers()\n {\n \n \n /* button #Call */\n $(document).on(\"click\", \"#Call\", function(evt)\n {\n window.open('tel:+6478346650');\n });\n \n /* button #sms_1 */\n $(document).on(\"click\", \"#sms_1\", function(evt)\n {\n window.open('sms:+6478346650');\n\n\n });\n\n \n /* button #settings */\n $(document).on(\"click\", \"#settings\", function(evt)\n {\n /*global activate_page */\n af.ui.loadContent(\"#settings_page_1\"); \n });\n \n /* button #tasks */\n $(document).on(\"click\", \"#tasks\", function(evt)\n {\n /*global activate_page */\n af.ui.loadContent(\"#tasks_page_1\"); \n });\n \n /* button Back */\n $(document).on(\"click\", \".uib_w_32\", function(evt)\n {\n /*global activate_page */\n af.ui.loadContent(\"#mainpage\"); \n });\n \n /* button Back */\n $(document).on(\"click\", \".uib_w_33\", function(evt)\n {\n /*global activate_page */\n af.ui.loadContent(\"#mainpage\"); \n });\n \n /* button #Back-settings */\n $(document).on(\"click\", \"#Back-settings\", function(evt)\n {\n /*global activate_page */\n af.ui.loadContent(\"#mainpage\"); \n });\n \n /* button #timeline-settings */\n $(document).on(\"click\", \"#TimelineBack\", function(evt)\n {\n /*global activate_page */\n af.ui.loadContent(\"#mainpage\"); \n });\n \n /* button #timeline-settings */\n $(document).on(\"click\", \"#timeline\", function(evt)\n {\n /*global activate_page */\n af.ui.loadContent(\"#Heatmap_page_1\"); \n });\n \n }","function loadCCPage(pageNo) {\n\tvar postParams = \"infoTypeId=\"+activeHorizontalTabInfoID+\"&pageNo=\" + pageNo;\n\tvar infoArr = {};\n\tinfoArr[\"action\"] = \"pagination\";\n\n\t\t\t/**\n\t* search code for this section using keyword \"allInOneRespone\"\n\t*/\n\t/*\n\t\t\t\tif(typeOfApi=='allInOneResponse')\n\t{\n\t\thideCommonLoader();\n\t\tloadCCPageResponse(responseAllInOneResponse);\n\t}\n\telse\n\t*/\n\t\tsendProcessCCRequest(postParams,infoArr);\n\n\treturn false;\n}","function homePageLoader() {\n\n pageCreator(\"home-page\");\n navBar(\"home-page\");\n restaurantLogo();\n bookTableBtn(\"home-page\");\n socialMedia();\n}","function action_Data() {\n let list_memory = [];\n\n function useClickEvent_by_Class(data_list) {\n let len_i = data_list.length;\n for (let i = 0; i < len_i; i++) {\n let elems_i = document.getElementsByClassName([data_list[i].class]);\n for (let j = 0, len_j = elems_i.length; j < len_j; j++) { //loop the elems by clasname \n elems_i[j].addEventListener(data_list[i].action, data_list[i].method);\n }\n }\n if (data_list.saveOrNot) {\n list_memory.push(data_list);\n }\n }\n useClickEvent_by_Class([{\n class: \"edit\",\n action: \"click\",\n method: detailData_toFormEfiling,\n seveOrNot: false,\n }, {\n class: \"detail\",\n action: \"click\",\n method: detailData_toFormEfiling,\n seveOrNot: false,\n }, {\n class: \"verifikasi\",\n action: \"click\",\n method: detailData_toFormEfiling,\n seveOrNot: false,\n }, {\n class: \"duplikat\",\n action: \"click\",\n method: duplikat,\n seveOrNot: false,\n }]);\n}","function eventsToPage(data) {\n callout2.innerHTML = \"\";\n for (var i = 0; i < data._embedded.events.length; i++) {\n console.log(i);\n if (i < 10) {\n var eventEl = $('
').addClass(\"mainEvent\");\n var eventList = $('

').addClass(\"eventlist\").text(data._embedded.events[i].name);\n var eventDate = $('

').addClass(\"eventdate\").text('Event Date: ' + data._embedded.events[i].dates.start.localDate);\n var ticketImg = $('').addClass('ticketicon').attr('src', './assets/images/ticketicon.png');\n //add ticket info buttons\n ticketButtonId = (\"ticketButton\" + [i]);\n var ticketInfo = $('\\\";\\r\\n \\r\\n \\r\\n \\r\\n inHtml +=\\\"&nbsp;&nbsp;

\\\"\\r\\n +\\\"\\\"\\r\\n +\\\"\\\";\\r\\n +\\\"
\\\";\\r\\n \\r\\n pnlBody.innerHTML = inHtml;\\r\\n \\r\\n var btnOptions = pnlBody.getElementsByClassName(\\\"btnOkutmanOptions\\\")[0];\\r\\n var optPan = \\\"goster\\\";\\r\\n btnOptions.onclick = function(){\\r\\n \\r\\n var timerOptions = setInterval(function(){\\r\\n var okutmanSettings = pnlBody.getElementsByClassName(\\\"okutmanSettings\\\")[0];\\r\\n \\tvar height = parseInt(okutmanSettings.style.height);\\r\\n if((optPan == \\\"goster\\\" && height>=122) || (optPan==\\\"gizle\\\" && height<=0 )){\\r\\n if(optPan==\\\"goster\\\")\\r\\n optPan=\\\"gizle\\\";\\r\\n else\\r\\n optPan =\\\"goster\\\";\\r\\n \\tclearInterval(timerOptions);\\r\\n return;\\r\\n }\\r\\n if(optPan==\\\"goster\\\")\\r\\n\\t okutmanSettings.style.height = (height+5) + \\\"px\\\";\\r\\n else\\r\\n okutmanSettings.style.height = (height-5) + \\\"px\\\";\\r\\n },1); \\r\\n }\\r\\n \\r\\n \\r\\n var selectMenu = pnlBody.getElementsByClassName(\\\"textSpeed\\\")[0];\\r\\n selectMenu.value = getCookie(\\\"okutmanSpeed\\\");\\r\\n selectMenu.onchange = function(){\\r\\n var chosenoption=this.options[this.selectedIndex].value; //this refers to \\\"selectmenu\\\"\\r\\n\\t\\tsetCookie(\\\"okutmanSpeed\\\",chosenoption,30);\\r\\n }\\r\\n \\r\\n var chClose = pnlBody.getElementsByClassName(\\\"chClose\\\")[0];\\r\\n if(getCookie(\\\"okutmanClose\\\") && getCookie(\\\"okutmanClose\\\")==\\\"true\\\"){\\r\\n \\tchClose.checked = true;\\r\\n }else\\r\\n chClose.checked = false;\\r\\n chClose.onchange = function(){\\r\\n \\tvar val = this.checked;\\r\\n if(val)\\r\\n setCookie(\\\"okutmanClose\\\",true,30);\\r\\n else\\r\\n delCookie(\\\"okutmanClose\\\")\\r\\n }\\r\\n \\r\\n var chOtoStart = pnlBody.getElementsByClassName(\\\"chOtoStart\\\")[0];\\r\\n if(getCookie(\\\"okutmanOtoStart\\\") && getCookie(\\\"okutmanOtoStart\\\")==\\\"true\\\"){\\r\\n \\tchOtoStart.checked = true;\\r\\n var btnStop = pnlBody.getElementsByClassName(\\\"btnStop\\\")[0];\\r\\n var cookieVal = parseInt(getCookie('okutmanSpeed'));\\r\\n var textSpeed = 0;\\r\\n if(cookieVal)\\r\\n textSpeed = cookieVal;\\r\\n else\\r\\n textSpeed = 200;\\r\\n btnStop.innerHTML = \\\"durdur\\\";\\r\\n timeOut = setInterval(function(){\\r\\n flowText(pnlBody);\\r\\n i++;\\r\\n },(60000/textSpeed));\\r\\n }else\\r\\n chOtoStart.checked = false;\\r\\n \\r\\n chOtoStart.onchange = function(){\\r\\n \\tvar val = this.checked;\\r\\n if(val){\\r\\n \\tsetCookie(\\\"okutmanOtoStart\\\",true,30); \\r\\n }else\\r\\n delCookie(\\\"okutmanOtoStart\\\");\\r\\n \\r\\n }\\r\\n \\r\\n var btnStop = pnlBody.getElementsByClassName(\\\"btnStop\\\")[0];\\r\\n btnStop.onclick = startStopContent;\\r\\n /*\\r\\n timeOut = setInterval(function(){\\r\\n \\tflowText(i,n,pnlBody);\\r\\n \\ti++;\\r\\n },(60000/textSpeed));\\r\\n */\\r\\n pnl.appendChild(pnlBody);\\r\\n var articleIndex = findArticleIndex(articles,event);\\r\\n createSuserPanel(articles[articleIndex]);\\r\\n document.body.parentNode.style.overflow = \\\"hidden\\\";\\r\\n}//}}}\",\n \"function objPage(funLoad, strPrereq, funTest)\\n {\\n\\tthis.funLoad = funLoad;\\n\\tthis.strPrereq = strPrereq;\\n\\tthis.funTest = funTest;\\n }\",\n \"function prepareEmployeePage() {\\r\\n // make sure the calculation is correct.\\r\\n step = 3;\\r\\n calculateCompletion();\\r\\n previousAction = actions.businessNameStep;\\r\\n nextAction = actions.activityGSTStep;\\r\\n\\r\\n checkEmployeeTips();\\r\\n\\r\\n // company stream\\r\\n if (applicationType.name === companyName) {\\r\\n // check which option user has selected\\r\\n if (applicationType.hasEmployee != undefined) {\\r\\n if (applicationType.hasEmployee) {\\r\\n $(\\\"#companyEmployeeYes\\\").prop('checked', true);\\r\\n }\\r\\n else {\\r\\n $(\\\"#companyEmployeeNo\\\").prop('checked', true);\\r\\n }\\r\\n }\\r\\n // check whether user selected benefits to employee or not.\\r\\n if (applicationType.fringeBenefit != undefined) {\\r\\n if (applicationType.fringeBenefit) {\\r\\n $(\\\"#fringeBenefitsEmployeeYes\\\").prop('checked', true);\\r\\n }\\r\\n else {\\r\\n $(\\\"#fringeBenefitsEmployeeNo\\\").prop('checked', true);\\r\\n }\\r\\n }\\r\\n\\r\\n // company employee\\r\\n $(\\\"#companyEmployeeYes\\\").click(function () {\\r\\n applicationType.hasEmployee = true;\\r\\n registrations.isPAYG = true;\\r\\n\\t checkEmployeeTips();\\r\\n });\\r\\n\\r\\n $(\\\"#companyEmployeeNo\\\").click(function () {\\r\\n applicationType.hasEmployee = false;\\r\\n applicationType.fringeBenefit = false;\\r\\n registrations.isFBT = false;\\r\\n registrations.isPAYG = false;\\r\\n checkEmployeeTips();\\r\\n\\t });\\r\\n\\r\\n // Company fringe benefits\\r\\n $(\\\"#fringeBenefitsEmployeeYes\\\").click(function () {\\r\\n applicationType.fringeBenefit = true;\\r\\n registrations.isFBT = true;\\r\\n\\t checkEmployeeTips();\\r\\n });\\r\\n\\r\\n $(\\\"#fringeBenefitsEmployeeNo\\\").click(function () {\\r\\n applicationType.fringeBenefit = false;\\r\\n registrations.isFBT = false;\\r\\n\\t checkEmployeeTips();\\r\\n });\\r\\n }\\r\\n else {\\r\\n // sole trader or partnership\\r\\n if (applicationType.hasEmployee != undefined) {\\r\\n if (applicationType.hasEmployee) {\\r\\n $(\\\"#employeeYes\\\").prop('checked', true);\\r\\n $(\\\"#fringeBenefit\\\").show();\\r\\n }\\r\\n else {\\r\\n $(\\\"#employeeNo\\\").prop('checked', true);\\r\\n }\\r\\n }\\r\\n else {\\r\\n $(\\\"#fringeBenefit\\\").hide();\\r\\n }\\r\\n if ($(\\\"#fringeBenefit\\\").is(':visible')) {\\r\\n if (applicationType.fringeBenefit != undefined) {\\r\\n if (applicationType.fringeBenefit) {\\r\\n $(\\\"#fringeBenefitYes\\\").prop('checked', true);\\r\\n }\\r\\n else {\\r\\n $(\\\"#fringeBenefitNo\\\").prop('checked', true);\\r\\n }\\r\\n }\\r\\n }\\r\\n // employee\\r\\n $(\\\"#employeeYes\\\").click(function () {\\r\\n $(\\\"#fringeBenefit\\\").show(100);\\r\\n applicationType.hasEmployee = true;\\r\\n registrations.isPAYG = true;\\r\\n\\t checkEmployeeTips();\\r\\n });\\r\\n\\r\\n $(\\\"#employeeNo\\\").click(function () {\\r\\n hideElementAndClear(\\\"fringeBenefit\\\");\\r\\n applicationType.hasEmployee = false;\\r\\n applicationType.fringeBenefit = false;\\r\\n registrations.isPAYG = false;\\r\\n\\t checkEmployeeTips();\\r\\n });\\r\\n // fringe benefits\\r\\n $(\\\"#fringeBenefitYes\\\").click(function () {\\r\\n applicationType.fringeBenefit = true;\\r\\n registrations.isFBT = true;\\r\\n\\t checkEmployeeTips();\\r\\n });\\r\\n\\r\\n $(\\\"#fringeBenefitNo\\\").click(function () {\\r\\n applicationType.fringeBenefit = false;\\r\\n registrations.isFBT = false;\\r\\n \\tcheckEmployeeTips();\\r\\n });\\r\\n }\\r\\n}\",\n \"function navigate(){\\n\\t\\n\\tvar clicked = $(this); //get clicked element in the navigation panel\\n\\tvar pageId = $(\\\".active\\\").attr('id'); //get clicked element id\\n\\tvar currentPage = parseInt(pageId.replace(\\\"Page\\\",\\\"\\\"),10); //get current page number\\n\\tvar futurePage = currentPage; //Initialize future page (same as current page)\\n \\n //Determin future page based on clicked button\\t\\n\\tswitch(clicked.attr('id')){\\n\\t\\tcase 'first':\\n\\t\\t\\t\\tfuturePage = 1;\\n\\t\\tbreak;\\n\\t\\t\\n\\t\\tcase 'last':\\n\\t\\t\\t\\tfuturePage = commTotalPages;\\n\\t\\tbreak;\\n\\t\\t\\n\\t\\tdefault:\\n\\t\\t pageId = clicked.attr('id'); //get clicked page ID\\n\\t\\t\\tvar newPage = pageId.replace(\\\"Page\\\",\\\"\\\"); //get clicked page number\\n\\t\\t\\t\\n\\t\\t \\t//if clicked page is in valid page range\\n\\t\\t\\tif(newPage >= 1 && newPage <=commTotalPages){\\n\\t\\t\\t\\tfuturePage = newPage;\\n\\t\\t\\t}\\n\\t\\tbreak;\\n\\t} //End Switch\\n\\t\\n\\tvar comments = new Comments();\\n\\tcomments.getCommentsForArticle(currentArticleId,futurePage,commPageSize).done(displayComments); //get and display comments for first page;\\n\\t\\n\\t//Manage visual spects\\n\\t$(\\\"a\\\").removeClass('active'); //remove active class for all elements\\n\\t$(\\\"#Page\\\" + futurePage).addClass('active'); //activate new page\\n\\t\\n\\t//Reconfigure first and last buttons\\n\\tif(parseInt(futurePage,10) === 1 ){\\n\\t\\t$(\\\"#first\\\").addClass('disabled');\\n\\t\\t$(\\\"#last\\\").removeClass('disabled');\\n\\t}else if(parseInt(futurePage,10) === commTotalPages ){\\n\\t\\t$(\\\"#first\\\").removeClass('disabled');\\n\\t\\t$(\\\"#last\\\").addClass('disabled');\\n\\t}\\n\\telse{\\n\\t\\t$(\\\"#first\\\").removeClass('disabled');\\n\\t\\t$(\\\"#last\\\").removeClass('disabled');\\n\\t}\\n\\t\\n}//END Navigation function\",\n \"function buildPage() {\\n //create title\\n createElementsSlidWeOffer.titleWeOffer.classList.add('titleWeOffer');\\n createElementsSlidWeOffer.titleWeOffer.appendChild(createElementsSlidWeOffer.textTitleWeOffer);\\n slid2.appendChild(createElementsSlidWeOffer.titleWeOffer);\\n\\n // create svg\\n createElementsSlidWeOffer.blockSVGWeOffer.classList.add('blockSVG');\\n slid2.appendChild(createElementsSlidWeOffer.blockSVGWeOffer);\\n\\n // create modal window for internet shop\\n createElementsSlidWeOffer.modalWindowInternetShop.classList.add('modalWeOfffer', 'internetShop');\\n createElementsSlidWeOffer.containerModalInternetShop.classList.add('containerWeOfffer');\\n createElementsSlidWeOffer.buttonModalInternetShop.classList.add('internetShopButton');\\n // createElementsSlidWeOffer.buttonModalInternetShop.appendChild(createTextForModalWindows.textButtonInternetShop);\\n createElementsSlidWeOffer.containerModalInternetShop.appendChild(createElementsSlidWeOffer.blockTextModalInternetShop);\\n createElementsSlidWeOffer.containerModalInternetShop.appendChild(createElementsSlidWeOffer.buttonModalInternetShop);\\n createElementsSlidWeOffer.blockTextModalInternetShop.appendChild(createTextForModalWindows.textModalInternetShop);\\n createElementsSlidWeOffer.modalWindowInternetShop.appendChild(createElementsSlidWeOffer.containerModalInternetShop);\\n slid2.appendChild(createElementsSlidWeOffer.modalWindowInternetShop);\\n\\n // create modal window for site company\\n createElementsSlidWeOffer.modalWindowSiteCompany.classList.add('modalWeOfffer', 'siteCompany');\\n createElementsSlidWeOffer.containerModalSiteCompany.classList.add('containerWeOfffer');\\n createElementsSlidWeOffer.buttonModalSiteCompany.classList.add('siteCompanyButton');\\n // createElementsSlidWeOffer.buttonModalSiteCompany.appendChild(createTextForModalWindows.textButtonSiteCompany);\\n createElementsSlidWeOffer.containerModalSiteCompany.appendChild(createElementsSlidWeOffer.blockTextModalSiteCompany);\\n createElementsSlidWeOffer.containerModalSiteCompany.appendChild(createElementsSlidWeOffer.buttonModalSiteCompany);\\n createElementsSlidWeOffer.blockTextModalSiteCompany.appendChild(createTextForModalWindows.textModalSiteCompany);\\n createElementsSlidWeOffer.modalWindowSiteCompany.appendChild(createElementsSlidWeOffer.containerModalSiteCompany);\\n slid2.appendChild(createElementsSlidWeOffer.modalWindowSiteCompany);\\n\\n // create modal window for Blog\\n createElementsSlidWeOffer.modalWindowBlog.classList.add('modalWeOfffer', 'blog');\\n createElementsSlidWeOffer.containerModalBlog.classList.add('containerWeOfffer');\\n createElementsSlidWeOffer.buttonModalBlog.classList.add('blogButton');\\n // createElementsSlidWeOffer.buttonModalBlog.appendChild(createTextForModalWindows.textButtonBlog);\\n createElementsSlidWeOffer.containerModalBlog.appendChild(createElementsSlidWeOffer.blockTextModalBlog);\\n createElementsSlidWeOffer.containerModalBlog.appendChild(createElementsSlidWeOffer.buttonModalBlog);\\n createElementsSlidWeOffer.blockTextModalBlog.appendChild(createTextForModalWindows.textModalBlog);\\n createElementsSlidWeOffer.modalWindowBlog.appendChild(createElementsSlidWeOffer.containerModalBlog);\\n slid2.appendChild(createElementsSlidWeOffer.modalWindowBlog);\\n\\n // create modal window for Portfolio\\n createElementsSlidWeOffer.modalWindowPortfolio.classList.add('modalWeOfffer', 'portfolio');\\n createElementsSlidWeOffer.containerModalPortfolio.classList.add('containerWeOfffer');\\n createElementsSlidWeOffer.buttonModalPortfolio.classList.add('portfolioButton');\\n // createElementsSlidWeOffer.buttonModalPortfolio.appendChild(createTextForModalWindows.textButtonPortfolio);\\n createElementsSlidWeOffer.containerModalPortfolio.appendChild(createElementsSlidWeOffer.blockTextModalPortfolio);\\n createElementsSlidWeOffer.containerModalPortfolio.appendChild(createElementsSlidWeOffer.buttonModalPortfolio);\\n createElementsSlidWeOffer.blockTextModalPortfolio.appendChild(createTextForModalWindows.textModalPortfolio);\\n createElementsSlidWeOffer.modalWindowPortfolio.appendChild(createElementsSlidWeOffer.containerModalPortfolio);\\n slid2.appendChild(createElementsSlidWeOffer.modalWindowPortfolio);\\n\\n // create modal window for Social Network\\n createElementsSlidWeOffer.modalWindowSocialNetwork.classList.add('modalWeOfffer', 'socialNetwork');\\n createElementsSlidWeOffer.containerModalSocialNetwork.classList.add('containerWeOfffer');\\n createElementsSlidWeOffer.buttonModalSocialNetwork.classList.add('socialNetworkButton');\\n // createElementsSlidWeOffer.buttonModalSocialNetwork.appendChild(createTextForModalWindows.textButtonSocialNetwork);\\n createElementsSlidWeOffer.containerModalSocialNetwork.appendChild(createElementsSlidWeOffer.blockTextModalSocialNetwork);\\n createElementsSlidWeOffer.containerModalSocialNetwork.appendChild(createElementsSlidWeOffer.buttonModalSocialNetwork);\\n createElementsSlidWeOffer.blockTextModalSocialNetwork.appendChild(createTextForModalWindows.textModalSocialNetwork);\\n createElementsSlidWeOffer.modalWindowSocialNetwork.appendChild(createElementsSlidWeOffer.containerModalSocialNetwork);\\n slid2.appendChild(createElementsSlidWeOffer.modalWindowSocialNetwork);\\n\\n // create modal window for Forum\\n createElementsSlidWeOffer.modalWindowForum.classList.add('modalWeOfffer', 'forum');\\n createElementsSlidWeOffer.containerModalForum.classList.add('containerWeOfffer');\\n createElementsSlidWeOffer.buttonModalForum.classList.add('forumButton');\\n // createElementsSlidWeOffer.buttonModalForum.appendChild(createTextForModalWindows.textButtonForum);\\n createElementsSlidWeOffer.containerModalForum.appendChild(createElementsSlidWeOffer.blockTextModalForum);\\n createElementsSlidWeOffer.containerModalForum.appendChild(createElementsSlidWeOffer.buttonModalForum);\\n createElementsSlidWeOffer.blockTextModalForum.appendChild(createTextForModalWindows.textModalForum);\\n createElementsSlidWeOffer.modalWindowForum.appendChild(createElementsSlidWeOffer.containerModalForum);\\n slid2.appendChild(createElementsSlidWeOffer.modalWindowForum);\\n\\n // create modal window for Landing\\n createElementsSlidWeOffer.modalWindowLanding.classList.add('modalWeOfffer', 'landing');\\n createElementsSlidWeOffer.containerModalLanding.classList.add('containerWeOfffer');\\n createElementsSlidWeOffer.buttonModalLanding.classList.add('landingButton');\\n // createElementsSlidWeOffer.buttonModalLanding.appendChild(createTextForModalWindows.textButtonLanding);\\n createElementsSlidWeOffer.containerModalLanding.appendChild(createElementsSlidWeOffer.blockTextModalLanding);\\n createElementsSlidWeOffer.containerModalLanding.appendChild(createElementsSlidWeOffer.buttonModalLanding);\\n createElementsSlidWeOffer.blockTextModalLanding.appendChild(createTextForModalWindows.textModalLanding);\\n createElementsSlidWeOffer.modalWindowLanding.appendChild(createElementsSlidWeOffer.containerModalLanding);\\n slid2.appendChild(createElementsSlidWeOffer.modalWindowLanding);\\n\\n // create modal window for Game Sours\\n createElementsSlidWeOffer.modalWindowGameSours.classList.add('modalWeOfffer', 'gameSours');\\n createElementsSlidWeOffer.containerModalGameSours.classList.add('containerWeOfffer');\\n createElementsSlidWeOffer.buttonModalGameSours.classList.add('gameSoursButton');\\n // createElementsSlidWeOffer.buttonModalGameSours.appendChild(createTextForModalWindows.textButtonGameSours);\\n createElementsSlidWeOffer.containerModalGameSours.appendChild(createElementsSlidWeOffer.blockTextModalGameSours);\\n createElementsSlidWeOffer.containerModalGameSours.appendChild(createElementsSlidWeOffer.buttonModalGameSours);\\n createElementsSlidWeOffer.blockTextModalGameSours.appendChild(createTextForModalWindows.textModalGameSours);\\n createElementsSlidWeOffer.modalWindowGameSours.appendChild(createElementsSlidWeOffer.containerModalGameSours);\\n slid2.appendChild(createElementsSlidWeOffer.modalWindowGameSours);\\n}\",\n \"function ciniki_web_info() {\\n \\n this.activeToggles = {'no':'No', 'yes':'Yes'};\\n this.subpages = {\\n '2':{'name':'Artist Statement', 'ui':'artiststatement', 'permalink':'artiststatement', 'flags':0x02},\\n '3':{'name':'CV', 'ui':'cv', 'permalink':'cv', 'flags':0x04},\\n '4':{'name':'Awards', 'ui':'awards', 'permalink':'awards', 'flags':0x08},\\n '5':{'name':'History', 'ui':'history', 'permalink':'history', 'flags':0x10},\\n '6':{'name':'Donations', 'ui':'donations', 'permalink':'donations', 'flags':0x20},\\n '9':{'name':'Facilities', 'ui':'facilities', 'permalink':'facilities', 'flags':0x100},\\n '8':{'name':'Board of Directors', 'ui':'boardofdirectors', 'permalink':'boardofdirectors', 'flags':0x80},\\n '7':{'name':'Membership', 'ui':'membership', 'permalink':'membership', 'flags':0x40},\\n '11':{'name':'Warranty', 'ui':'warranty', 'permalink':'warranty', 'flags':0x0400},\\n '12':{'name':'Testimonials', 'ui':'testimonials', 'permalink':'testimonials', 'flags':0x0800},\\n '13':{'name':'Reviews', 'ui':'reviews', 'permalink':'reviews', 'flags':0x1000},\\n '14':{'name':'Green Policy', 'ui':'greenpolicy', 'permalink':'greenpolicy', 'flags':0x2000},\\n '15':{'name':'Why us', 'ui':'whyus', 'permalink':'whyus', 'flags':0x4000},\\n '16':{'name':'Privacy Policy', 'ui':'privacypolicy', 'permalink':'privacypolicy', 'flags':0x8000},\\n '17':{'name':'Volunteer', 'ui':'volunteer', 'permalink':'volunteer', 'flags':0x010000},\\n '18':{'name':'Rental', 'ui':'rental', 'permalink':'rental', 'flags':0x020000},\\n '19':{'name':'Financial Assistance', 'ui':'financialassistance', 'permalink':'financialassistance', 'flags':0x040000},\\n '20':{'name':'Artists', 'ui':'artists', 'permalink':'artists', 'flags':0x080000},\\n '21':{'name':'Employment', 'ui':'employment', 'permalink':'employment', 'flags':0x100000},\\n '22':{'name':'Staff', 'ui':'staff', 'permalink':'staff', 'flags':0x200000},\\n '23':{'name':'Sponsorship', 'ui':'sponsorship', 'permalink':'sponsorship', 'flags':0x400000},\\n '24':{'name':'Jobs', 'ui':'jobs', 'permalink':'jobs', 'flags':0x800000},\\n };\\n \\n this.init = function() {\\n //\\n // The options and information for the info page\\n //\\n this.page = new M.panel('Information',\\n 'ciniki_web_info', 'page',\\n 'mc', 'medium', 'sectioned', 'ciniki.web.info.page');\\n this.page.data = {};\\n this.page.sections = {\\n 'options':{'label':'', 'fields':{\\n 'page-info-active':{'label':'Display Info Page', 'type':'multitoggle', 'default':'no', 'toggles':this.activeToggles},\\n 'page-info-title':{'label':'Title', 'type':'text', 'hint':'Info'},\\n 'page-info-defaultcontenttype':{'label':'Start Page', 'type':'select', 'options':{}},\\n }},\\n 'subpages':{'label':'', 'fields':{}},\\n '_save':{'label':'', 'buttons':{\\n 'save':{'label':'Save', 'fn':'M.ciniki_web_info.savePage();'},\\n }},\\n };\\n this.page.fieldValue = function(s, i, d) { \\n if( this.data[i] == null ) { return ''; }\\n return this.data[i]; \\n };\\n this.page.fieldHistoryArgs = function(s, i) {\\n return {'method':'ciniki.web.pageSettingsHistory', 'args':{'tnid':M.curTenantID, 'field':i}};\\n }\\n this.page.addButton('save', 'Save', 'M.ciniki_web_info.savePage();');\\n this.page.addClose('Cancel');\\n }\\n\\n this.start = function(cb, ap, aG) {\\n args = {};\\n if( aG != null ) { args = eval(aG); }\\n\\n //\\n // Create the app container if it doesn't exist, and clear it out\\n // if it does exist.\\n //\\n var appContainer = M.createContainer(ap, 'ciniki_web_info', 'yes');\\n if( appContainer == null ) {\\n M.alert('App Error');\\n return false;\\n } \\n\\n this.showPage(cb);\\n }\\n\\n this.showPage = function(cb) {\\n this.page.reset();\\n M.api.getJSONCb('ciniki.web.pageSettingsGet', {'tnid':M.curTenantID, \\n 'page':'info', 'content':'yes'}, function(rsp) {\\n if( rsp.stat != 'ok' ) {\\n M.api.err(rsp);\\n return false;\\n }\\n var flags = M.curTenant.modules['ciniki.info'].flags;\\n var p = M.ciniki_web_info.page;\\n p.data = rsp.settings;\\n p.sections.subpages.fields = {};\\n var options = {};\\n var spgs = M.ciniki_web_info.subpages;\\n for(i in spgs) {\\n if( (spgs[i].flags&flags) > 0 ) { \\n options[i] = spgs[i].name;\\n p.sections.subpages.fields['page-info-' + spgs[i].permalink + '-active'] = {'label':spgs[i].name,\\n 'editFn':'M.ciniki_web_info.editInfo(\\\\'' + i + '\\\\');',\\n 'type':'toggle', 'default':'no', 'toggles':M.ciniki_web_info.activeToggles};\\n }\\n }\\n p.sections.options.fields['page-info-defaultcontenttype'].options = options;\\n p.refresh();\\n p.show(cb);\\n });\\n }\\n\\n this.editInfo = function(ct) {\\n if( this.subpages[ct] != null ) {\\n M.startApp('ciniki.info.' + this.subpages[ct].ui,null,'M.ciniki_web_info.page.show();');\\n }\\n }\\n\\n this.savePage = function() {\\n var c = this.page.serializeForm('no');\\n if( c != '' ) {\\n M.api.postJSONCb('ciniki.web.siteSettingsUpdate', \\n {'tnid':M.curTenantID}, c, function(rsp) {\\n if( rsp.stat != 'ok' ) {\\n M.api.err(rsp);\\n return false;\\n } \\n M.ciniki_web_info.page.close();\\n });\\n } else {\\n this.page.close();\\n }\\n };\\n}\",\n \"function PagesContent() {\\n\\n}\",\n \"function whatObjClick() {\\n\\tfor (var key in objects) {\\n\\t\\tif (checkClick(objects[key])) {\\n\\t\\t\\treturn objects[key];\\n\\t\\t}\\n\\t}\\n\\treturn null;\\n}\",\n \"async function pageFunction(context) {\\n // jQuery is handy for finding DOM elements and extracting data from them.\\n // To use it, make sure to enable the \\\"Inject jQuery\\\" option.\\n const $ = context.jQuery;\\n const pageTitle = $('title').first().text();\\n const date = $('#article .articleMeta .dateTime').text();\\n const perex = $('.perex').text();\\n const text = $('#article .body').text();\\n \\n\\n // Print some information to actor log\\n context.log.info(`URL: ${context.request.url}, TITLE: ${pageTitle}`);\\n \\n // Return an object with the data extracted from the page.\\n // It will be stored to the resulting dataset.\\n return {\\n url: context.request.url,\\n pageTitle,\\n date,\\n perex,\\n text\\n \\n };\\n}\",\n \"function call_pages(x,y)\\n{\\n\\tlet pagelocaction=x;\\n\\tlet callbacklocation=y;\\n\\t//button id\\n\\t//let thebtn=\\\"#\\\"+z;\\n\\t//let btnz=$(thebtn).html();\\n\\t//change the button state to loading\\n\\tcall_loader();\\n\\t$.ajax({\\n\\t\\turl : pagelocaction,\\n\\t\\ttype : \\\"POST\\\",\\n\\t\\tsuccess : function(data)\\n\\t\\t{\\n\\t\\t\\t// now you state the reference page that will host MDI and the response after sending the request\\n\\t\\t\\tif (data==\\\"\\\") {Toastz('warning','No Data Returned','');close_loader();return;}\\n\\t\\t\\t\\n\\t\\t\\tdocument.getElementById(callbacklocation).innerHTML=data;\\n\\t\\t\\t//$(\\\"#\\\"+callbacklocation).html(data);\\n\\t\\t\\tclose_loader();\\n\\t\\t\\treturn;\\n\\t\\t},\\n\\t\\terror : function(data) \\n\\t\\t{\\n\\t\\t\\tToastz('danger','Error Occured','');\\n\\t\\t\\tclose_loader();\\n\\t\\t}\\n\\t}\\n\\t);\\n\\n\\tclose_loader();\\n\\treturn;\\n\\n}\",\n \"connectEventHandlers() {\\r\\n var EP = C.WIN_PROP.EVENT_PAGE_CLASS; \\r\\n \\r\\n /**\\r\\n * Scrape and dig, but don't automatically download. Instead, present the user with checkbox options\\r\\n * as to what files to download.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.DIG_FILE_OPTIONS).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n bgWindow[EP].goDigFileOptions(window.document);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * Scrape and dig a page that contains links to multiple galleries. Don't automatically download. \\r\\n * Present the user with checkbox options as to what files to download.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.DIG_GALLERY_GALLERY).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n bgWindow[EP].goDigGalleryGallery(window.document);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * This button is in the \\\"action buttons\\\" group. They act upon the list of file download options. This\\r\\n * fires all the checkboxes' click events, causing them all the download.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.GET_ALL_FILE_OPTS).addEventListener(C.EVT.CLICK, () => {\\r\\n document.querySelectorAll('input[type=\\\"checkbox\\\"]').forEach((cbEl) => {\\r\\n var evt = new MouseEvent(C.EVT.CLICK);\\r\\n cbEl.dispatchEvent(evt);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * This button is in the \\\"action buttons\\\" group. They act upon the list of file download options. This\\r\\n * fires the checkboxes' click events for all jpg files only.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.GET_ALL_JPG_OPTS).addEventListener(C.EVT.CLICK, () => {\\r\\n document.querySelectorAll('input[type=\\\"checkbox\\\"]').forEach((cbEl) => {\\r\\n if (cbEl.dataset.filePath.match(new RegExp(/\\\\.(jpg|jpeg)$/, 'i'))) {\\r\\n var evt = new MouseEvent(C.EVT.CLICK);\\r\\n cbEl.dispatchEvent(evt);\\r\\n }\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * This button is in the \\\"action buttons\\\" group. It clears the download list, clears the \\r\\n * previouslyHarvestedUriMap, shows the scrape/dig buttons, and hides the \\\"action buttons\\\".\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.CLEAR_FILE_LIST).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n Popup.clearPreviousUriMap();\\r\\n \\r\\n var out = bgWindow[C.WIN_PROP.OUTPUT_CLASS].getInstanceSetToDoc(window.document);\\r\\n \\r\\n out.clearFilesDug();\\r\\n out.resetFileData();\\r\\n out.showDigScrapeButtons();\\r\\n\\r\\n out.toOut('Hit a button to begin.');\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * Scrape for all known types of media on a page.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.SCRAPE_FILE_OPTIONS).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n bgWindow[EP].goScrapeFileOptions(window.document);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * Scrape a page, picking up all the included images.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.SCRAPE_IMAGES).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n bgWindow[EP].goScrapeImages(window.document);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * Scrape a page, picking up all the included videos.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.SCRAPE_VIDEOS).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n bgWindow[EP].goScrapeVideos(window.document);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * A big one, scrape a page for *any* media.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.SCRAPE).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n bgWindow[EP].goScrape(window.document);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * Dig an image gallery.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.DIG_IMAGE_GALLERY).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n bgWindow[EP].goDigImageGallery(window.document);\\r\\n });\\r\\n });\\r\\n\\\"\\\"\\r\\n\\r\\n /**\\r\\n * Dig a video gallery.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.DIG_VIDEO_GALLERY).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n bgWindow[EP].goDigVideoGallery(window.document);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * The big one, digging *everything* that could be from a gallery.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.DIG).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n bgWindow[EP].goDig(window.document);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n /**\\r\\n * Stop any digging or scraping currently happening. Fire off a STOP event, and provide\\r\\n * it with a silly dictionary (and it has the time triggered).\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.STOP).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => { \\r\\n var evt = new StopEvent();\\r\\n bgWindow.document.dispatchEvent(evt);\\r\\n });\\r\\n });\\r\\n\\r\\n\\r\\n document.getElementById(C.ELEMENT_ID.BACK_TO_TOP).addEventListener(C.EVT.CLICK, () => {\\r\\n window.scroll({ top: 0 });\\r\\n });\\r\\n\\r\\n /*\\r\\n document.getElementById(C.ELEMENT_ID.RESUME).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n var evt = new ResumeEvent();\\r\\n bgWindow.document.dispatchEvent(evt);\\r\\n });\\r\\n });\\r\\n */\\r\\n\\r\\n\\r\\n /**\\r\\n * Toggle the Voyeur -- a very simple media request tracker-to-console-logger.\\r\\n */\\r\\n document.getElementById(C.ELEMENT_ID.TOGGLE_VOYEUR).addEventListener(C.EVT.CLICK, () => {\\r\\n chrome.runtime.getBackgroundPage((bgWindow) => {\\r\\n var voy = bgWindow[C.WIN_PROP.VOYEUR_CLASS];\\r\\n voy.toggleVoying();\\r\\n });\\r\\n });\\r\\n }\",\n \"function SetUpPage() {\\r\\n document.all['message1'].style.display = \\\"none\\\";\\r\\n document.all['message2'].style.display = \\\"none\\\";\\r\\n document.all['message3'].style.display = \\\"none\\\";\\r\\n document.all['message4'].style.display = \\\"none\\\";\\r\\n document.all['message5'].style.display = \\\"none\\\";\\r\\n dt = new Date();\\r\\n hours = dt.getHours();\\r\\n if (hours >= 0 && hours < 6) {\\r\\n document.all['chkEarlyMorning'].checked = true;\\r\\n }\\r\\n else if (hours >= 6 && hours < 12) {\\r\\n document.all['chkLateMorning'].checked = true;\\r\\n }\\r\\n else if (hours >= 12 && hours < 18) {\\r\\n document.all['chkAfternoon'].checked = true;\\r\\n }\\r\\n else if (hours >= 18 ) {\\r\\n document.all['chkEvening'].checked = true;\\r\\n }\\r\\n showClock();\\r\\n MenuDiv();\\r\\n}\",\n \"function responseHandlerFlow(res) {\\n if (res) {\\n var openHtmlStr = '' +\\n '' +\\n '';\\n var editHtmlStr = '' +\\n '' +\\n '';\\n var runHtmlStr = '' +\\n '' +\\n '';\\n var debugHtmlStr = '' +\\n '' +\\n '';\\n var delHtmlStr = '' +\\n '' +\\n '';\\n var templateHtmlStr = '' +\\n '' +\\n '';\\n return '
' + openHtmlStr + editHtmlStr + runHtmlStr + debugHtmlStr + delHtmlStr + templateHtmlStr + '
';\\n }\\n return \\\"\\\";\\n}\",\n \"function indeginousTaskDetails (){\\nkony.application.showLoadingScreen(null, \\\"Loading..\\\", \\nconstants.LOADING_SCREEN_POSITION_ONLY_CENTER, true, true, { \\nshouldShowLabelInBottom: \\\"false\\\", separatorHeight: 20} );\\n// gblReqForTaskDetails=valBusRequestID.widgetInfo.data[0].lblRequestId;\\n// alert(\\\"the selected\\\"+JSON.stringify(gblReqForTaskDetails));\\n // Let's get the news type the user selected\\n //var selectedKey = frmFoxNews.lstNewsType.selectedKey;\\n //alert (\\\"########## Selected Key:\\\" + selectedKey);\\n // Let's first check that the user picked a valid value\\n //if (!kony.string.equalsIgnoreCase(selectedKey, \\\"none\\\")){\\n // Populating the input params for the service call and invoking the service\\n // We're passing in the selected key for the user's selection in the combobox\\n // var inputParams = {serviceID:\\\"getFoxNews\\\",newsType:selectedKey};\\n // Now we make the call to the service using our input parameters and specifying\\n // the function processServiceResults as our callback when the service returns results\\n // appmiddlewareinvokerasync(inputParams, processServiceResults);\\n if (!mobileFabricConfigurationForIndigenousTaskDetails.isKonySDKObjectInitialized)\\n {\\n initializeMobileFabricForIndigenousTaskDetails();\\n \\n }\\n else if (mobileFabricConfigurationForIndigenousTaskDetails.isKonySDKObjectInitialized)\\n {\\n setIndigenousTaskDetails();\\n }\\n }\",\n \"function showPage(name) {\\n $('.page').hide();\\n $('.' + name + '-page').show();\\n // Run the fuction of the indivial page wich have been clicked\\n pageFunctions[name]();\\n}\",\n \"function addEvents() {\\n // get buttons from DOM\\n var bttnEditArticleEv = document.getElementsByClassName('edit-article');\\n var bttnDeleteArticleEv = document.getElementsByClassName('remove-article');\\n var bttnAddNewArticleEv = document.getElementById('add-article');\\n for (var i = 0; i < bttnEditArticleEv.length; i++) {\\n //For each edit\\n bttnEditArticleEv[i].addEventListener('click', function(event){\\n window.location.href = \\\"edit.html?articleId=\\\" + event.path[1].childNodes[4].innerHTML;\\n });\\n // For delete button \\n bttnDeleteArticleEv[i].addEventListener('click', function(event){\\n var deleteArt = new Article();\\n var that = event;\\n deleteArt.id = event.path[1].childNodes[4].innerHTML;\\n deleteArt.removeArticle().then(function(response) {\\n that.path[1].remove();\\n }).then(function() {\\n var page = $('.sel').text();\\n pageArticles(page);\\n });\\n });\\n }\\n // Only one add new article bttn\\n bttnAddNewArticleEv.addEventListener('click', function(event) {\\n window.location.href = \\\"create.html\\\";\\n });\\n }\",\n \"function createPage(name, div, button, links, butRef) {\\r\\n\\t// Create page object\\r\\n\\tconst obj = {};\\r\\n\\t// Assign the variables to the page object\\r\\n\\tobj.name = name;\\r\\n\\tobj.div = div;\\r\\n\\tobj.button = button;\\r\\n\\tobj.videoLinks = [];\\r\\n\\tobj.id = \\\"#\\\"+name;\\r\\n\\tobj.vidLinks = links;\\r\\n\\tobj.buttonName = butRef;\\r\\n\\t// Return the page object\\r\\n\\treturn obj;\\r\\n}\",\n \"function bindEvents(){\\r\\n\\t\\t//Move to next page button click\\r\\n\\t\\t$('.btn_continue').bind('click', function(){ \\r\\n\\t\\t\\tvar nameVal = $(this).attr(\\\"name\\\");\\r\\n\\t\\t\\tloadnextpage(nameVal); \\r\\n\\t\\t\\treturn false;\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\t$('.entertowin, #sorryRegister').bind('click', function(){\\r\\n\\t\\t\\tloadnextpage('register'); \\r\\n\\t\\t\\treturn false;\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\t//Select Partners on Partners page\\r\\n\\t\\t$('#selectSix').bind('click', function(){\\r\\n\\t\\t\\tpartnersSelect();\\r\\n\\t\\t\\treturn false;\\r\\n\\t\\t});\\r\\n\\t\\t\\r\\n\\t\\t$('#double_down').bind('click', function(){\\r\\n\\t\\t\\tloadnextpage('doubledown');\\r\\n\\t\\t\\treturn false;\\r\\n\\t\\t});\\r\\n\\r\\n\\t\\t$('#keep_offer').bind('click', function(){\\r\\n\\t\\t\\tloadnextpage('register');\\r\\n\\t\\t\\treturn false;\\r\\n\\t\\t});\\r\\n\\t\\t\\r\\n\\t\\t$('.reset').bind('click', function(){\\r\\n\\t\\t\\tresetGame(); \\r\\n\\t\\t\\treturn false; \\r\\n\\t\\t});\\r\\n\\t}\",\n \"createListeners() {\\r\\n html.get('.first').addEventListener('click', () => { // 'first' é a classe atribuida no html\\r\\n controls.goTo(1)\\r\\n update()\\r\\n })\\r\\n\\r\\n html.get('.last').addEventListener('click', () => {\\r\\n controls.goTo(state.totalPage)\\r\\n update()\\r\\n })\\r\\n\\r\\n html.get('.next').addEventListener('click', () => {\\r\\n controls.next()\\r\\n update()\\r\\n \\r\\n })\\r\\n\\r\\n html.get('.prev').addEventListener('click', () => {\\r\\n controls.prev()\\r\\n update()\\r\\n })\\r\\n\\r\\n //-- pesquisa\\r\\n html.get('.btnSearch').addEventListener('click', () => {\\r\\n controls.search()\\r\\n controls.searchShow()\\r\\n update()\\r\\n })\\r\\n\\r\\n }\",\n \"function onPageInfo(o) {\\n console.log(o)\\n }\",\n \"function initPageVarsOnCreate(id) {\\n\\t// every page\\n\\t// every page but...\\n\\tif (id !== \\\"LandingPage\\\") {\\n\\t\\t$(\\\"*\\\").i18n();\\n\\t}\\n\\t// specific page...\\n\\tif (id === \\\"DistributionsWalls\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"WpFavorites\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"OverviewWalls\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"DistributionsRings\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"OverviewRings\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"Sync\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"Index\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"menu\\\");\\n\\t\\thomePageCards();\\n\\t} else if (id === \\\"Topic\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"About\\\") {\\n\\t\\tinjectPackageVersion();\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"Support\\\") {\\n\\t\\tgetSystemSpecs();\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"Settings\\\") {\\n\\t\\tinitSettingsSwitch();\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"RtFavorites\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"WpFullScrImage\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"DynamicWall\\\") {\\n\\t\\tinitDynamicWallpaperSwitch();\\n\\t\\tinitServiceSettingsSwitch();\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"RingUri\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"RingSearch\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t} else if (id === \\\"WallSearch\\\") {\\n\\t\\thtmlClickEventHandlers(id, \\\"back\\\");\\n\\t}\\n}\",\n \"function actualPlan()\\r\\n{\\r\\n\\tvar url = \\\"actual\\\";\\r\\n\\tvar htmlAreaObj = _getWorkAreaDefaultObj();\\r\\n\\tvar objAjax = htmlAreaObj.getHTMLAjax();\\r\\n\\tvar objHTMLData = htmlAreaObj.getHTMLDataObj();\\r\\n\\r\\n\\tsectionName = objAjax.getDivSectionId();\\r\\n\\t//alert(\\\"sectionName \\\" + sectionName);\\r\\n\\tif(objAjax && objHTMLData)\\r\\n\\t{\\r\\n\\t if(!isValidRecord(true))\\r\\n\\t\\t{\\r\\n\\t\\t\\treturn;\\r\\n\\t\\t}\\r\\n\\t\\tbShowMsg = true;\\r\\n\\t Main.loadWorkArea(\\\"techspecevents.do\\\", url);\\t \\r\\n\\t}\\r\\n}\",\n \"function register_event_handlers()\\n {\\n \\n \\n /* button #Call */\\n $(document).on(\\\"click\\\", \\\"#Call\\\", function(evt)\\n {\\n window.open('tel:+6478346650');\\n });\\n \\n /* button #sms_1 */\\n $(document).on(\\\"click\\\", \\\"#sms_1\\\", function(evt)\\n {\\n window.open('sms:+6478346650');\\n\\n\\n });\\n\\n \\n /* button #settings */\\n $(document).on(\\\"click\\\", \\\"#settings\\\", function(evt)\\n {\\n /*global activate_page */\\n af.ui.loadContent(\\\"#settings_page_1\\\"); \\n });\\n \\n /* button #tasks */\\n $(document).on(\\\"click\\\", \\\"#tasks\\\", function(evt)\\n {\\n /*global activate_page */\\n af.ui.loadContent(\\\"#tasks_page_1\\\"); \\n });\\n \\n /* button Back */\\n $(document).on(\\\"click\\\", \\\".uib_w_32\\\", function(evt)\\n {\\n /*global activate_page */\\n af.ui.loadContent(\\\"#mainpage\\\"); \\n });\\n \\n /* button Back */\\n $(document).on(\\\"click\\\", \\\".uib_w_33\\\", function(evt)\\n {\\n /*global activate_page */\\n af.ui.loadContent(\\\"#mainpage\\\"); \\n });\\n \\n /* button #Back-settings */\\n $(document).on(\\\"click\\\", \\\"#Back-settings\\\", function(evt)\\n {\\n /*global activate_page */\\n af.ui.loadContent(\\\"#mainpage\\\"); \\n });\\n \\n /* button #timeline-settings */\\n $(document).on(\\\"click\\\", \\\"#TimelineBack\\\", function(evt)\\n {\\n /*global activate_page */\\n af.ui.loadContent(\\\"#mainpage\\\"); \\n });\\n \\n /* button #timeline-settings */\\n $(document).on(\\\"click\\\", \\\"#timeline\\\", function(evt)\\n {\\n /*global activate_page */\\n af.ui.loadContent(\\\"#Heatmap_page_1\\\"); \\n });\\n \\n }\",\n \"function loadCCPage(pageNo) {\\n\\tvar postParams = \\\"infoTypeId=\\\"+activeHorizontalTabInfoID+\\\"&pageNo=\\\" + pageNo;\\n\\tvar infoArr = {};\\n\\tinfoArr[\\\"action\\\"] = \\\"pagination\\\";\\n\\n\\t\\t\\t/**\\n\\t* search code for this section using keyword \\\"allInOneRespone\\\"\\n\\t*/\\n\\t/*\\n\\t\\t\\t\\tif(typeOfApi=='allInOneResponse')\\n\\t{\\n\\t\\thideCommonLoader();\\n\\t\\tloadCCPageResponse(responseAllInOneResponse);\\n\\t}\\n\\telse\\n\\t*/\\n\\t\\tsendProcessCCRequest(postParams,infoArr);\\n\\n\\treturn false;\\n}\",\n \"function homePageLoader() {\\n\\n pageCreator(\\\"home-page\\\");\\n navBar(\\\"home-page\\\");\\n restaurantLogo();\\n bookTableBtn(\\\"home-page\\\");\\n socialMedia();\\n}\",\n \"function action_Data() {\\n let list_memory = [];\\n\\n function useClickEvent_by_Class(data_list) {\\n let len_i = data_list.length;\\n for (let i = 0; i < len_i; i++) {\\n let elems_i = document.getElementsByClassName([data_list[i].class]);\\n for (let j = 0, len_j = elems_i.length; j < len_j; j++) { //loop the elems by clasname \\n elems_i[j].addEventListener(data_list[i].action, data_list[i].method);\\n }\\n }\\n if (data_list.saveOrNot) {\\n list_memory.push(data_list);\\n }\\n }\\n useClickEvent_by_Class([{\\n class: \\\"edit\\\",\\n action: \\\"click\\\",\\n method: detailData_toFormEfiling,\\n seveOrNot: false,\\n }, {\\n class: \\\"detail\\\",\\n action: \\\"click\\\",\\n method: detailData_toFormEfiling,\\n seveOrNot: false,\\n }, {\\n class: \\\"verifikasi\\\",\\n action: \\\"click\\\",\\n method: detailData_toFormEfiling,\\n seveOrNot: false,\\n }, {\\n class: \\\"duplikat\\\",\\n action: \\\"click\\\",\\n method: duplikat,\\n seveOrNot: false,\\n }]);\\n}\",\n \"function eventsToPage(data) {\\n callout2.innerHTML = \\\"\\\";\\n for (var i = 0; i < data._embedded.events.length; i++) {\\n console.log(i);\\n if (i < 10) {\\n var eventEl = $('
').addClass(\\\"mainEvent\\\");\\n var eventList = $('

').addClass(\\\"eventlist\\\").text(data._embedded.events[i].name);\\n var eventDate = $('

').addClass(\\\"eventdate\\\").text('Event Date: ' + data._embedded.events[i].dates.start.localDate);\\n var ticketImg = $('').addClass('ticketicon').attr('src', './assets/images/ticketicon.png');\\n //add ticket info buttons\\n ticketButtonId = (\\\"ticketButton\\\" + [i]);\\n var ticketInfo = $('

\t
')\n\t$('body').css({\n\t\t'background-color': 'rgb(46, 90, 110)'\n\t});\n}","function mursVdessin(tab, nx, pas){\r\n\tfor(i = 0; i < tab.length; ++i){\r\n\t\tcoord = mursVtoCoord(tab[i], nx);\r\n\t\t\r\n\t\tpu(); rt(90); fd(coord.x*pas);\r\n\t\trt(90); fd(coord.y*pas);\r\n\t\tpd(); fd(pas); pu();\r\n\t\tbk(pas); bk(coord.y*pas);\r\n\t\tlt(90); bk(coord.x*pas); lt(90);\r\n\t\tpd();\r\n\t}\r\n}","function vU(a,b){this.Re=[];this.Uoa=a;this.Hna=b||null;this.jL=this.XD=!1;this.qs=void 0;this.z7=this.NPa=this.V6=!1;this.jV=0;this.Ld=null;this.a7=0}"],"string":"[\n \"function matrix(n) {\\n\\n// USSR\\n// Understand\\n // reword - given a number, return an evenly-spiraled matrix \\n // inputs - integer\\n // outputs - arrays of arrays of integers\\n // examples - see above\\n// Sudo Chop\\n // create empty array of arrays of integers 'results'\\n let results = []\\n for (let i = 0; i < n; i++) {\\n results.push([])\\n }\\n // create a counter variable that starts at one\\n let counter = 1\\n // create start and end rows and columns\\n let startRow = 0\\n let startColumn = 0\\n let endRow = n - 1\\n let endColumn = n - 1\\n // if start column <= end column AND start row <= end row\\n while (startColumn <= endColumn && startRow <= endRow) {\\n // loop from start column to end column for top row of matrix\\n for (i = startColumn; i <= endColumn; i++) {\\n // assign counter variable at results[start row][i]\\n results[startRow][i] = counter\\n // increment counter\\n counter++\\n }\\n // increment start row\\n startRow++\\n // loop from start row to end row for right column of matrix\\n for (i = startRow; i <= endRow; i++) {\\n // assign counter variable at results[i][end column]\\n results[i][endColumn] = counter\\n // increment counter\\n counter++\\n }\\n // decrement end column\\n endColumn--\\n // repeat for bottom row\\n for (let i = endColumn; i >= startColumn; i--) {\\n results[endRow][i] = counter\\n counter++\\n }\\n endRow--\\n // repeat for 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// Solve / Skip\\n// Refactor\\n\\n}\",\n \"function solve(args) { // много добро решение за 100 точки\\n var dimensions = args[0].split(' ').map(Number);\\n\\n var matrix = new Array(dimensions[0]);\\n for (var i = 0; i < dimensions[0]; i += 1) {\\n matrix[i] = args[i + 1].split(' ').map(Number);\\n\\n for (var j = 0; j < dimensions[1]; j += 1) {\\n matrix[i][j] = getBin(matrix[i][j]);\\n }\\n }\\n\\n var startRow = dimensions[0] / 2 | 0,\\n startCol = dimensions[1] / 2 | 0;\\n\\n while (true) {\\n var storedRow = startRow,\\n storedCol = startCol;\\n\\n if (matrix[startRow][startCol][3] === '1' && matrix[startRow - 1][startCol] !== '0') {\\n startRow -= 1;\\n } else if (matrix[startRow][startCol][2] === '1' && matrix[startRow][startCol + 1] !== '0') {\\n startCol += 1\\n } else if (matrix[startRow][startCol][1] === '1' && matrix[startRow + 1][startCol] !== '0') {\\n startRow += 1;\\n } else if (matrix[startRow][startCol][0] === '1' && matrix[startRow][startCol - 1] !== '0') {\\n startCol -= 1\\n } else {\\n console.log('No JavaScript, only rakiya ' + storedRow + ' ' + storedCol)\\n break;\\n }\\n\\n if (startCol === 0 || startCol === dimensions[1] - 1 || startRow === 0 || startRow === dimensions[0] - 1) {\\n console.log('No rakiya, only JavaScript ' + startRow + ' ' + startCol);\\n break;\\n }\\n matrix[storedRow][storedCol] = '0'; // маркираме си с нула клетките, в който вече сме били!!!\\n }\\n\\n function getBin(number) {\\n var bin = '000' + number.toString(2);\\n return bin.substr(bin.length - 4, 4)\\n }\\n}\",\n \"function niveau1() {\\n\\ttable = [\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\\n\\t];\\n}\",\n \"function LU_decomposition(m1) {\\n var n = m1.length;\\n var i,j,k;\\n var l_matrix = [];\\n var u_matrix = [];\\n for (i = 0; i < n; i++){\\n l_matrix[i] = [];\\n u_matrix[i] = [];\\n }\\n for (i = 0; i < n; i++){\\n for (j = 0; j < n; j++){\\n if (j < i){\\n l_matrix[j][i] = 0;\\n }\\n else{\\n l_matrix[j][i] = m1[j][i];\\n for (k = 0; k < i; k++){\\n l_matrix[j][i] = l_matrix[j][i] - l_matrix[j][k] * u_matrix[k][i];\\n }\\n }\\n }\\n for (j = 0; j < n; j++){\\n if (j == i){\\n u_matrix[i][j] = 1;\\n }\\n else if (j < i){\\n u_matrix[i][j] = 0;\\n }\\n else{\\n u_matrix[i][j] = m1[i][j] / l_matrix[i][i];\\n for (k = 0; k < i; k++){\\n u_matrix[i][j] = u_matrix[i][j] - l_matrix[i][k] * u_matrix[k][j] / l_matrix[i][i];\\n }\\n }\\n }\\n }\\n return {\\n l_matrix: l_matrix,\\n u_matrix: u_matrix\\n };\\n}\",\n \"function inverse(A){\\n var qr = JSON.parse(JSON.stringify(A))\\n var m = qr.length\\n var n = qr[0].length\\n var rdiag = new Array(n);\\n var i, j, k, s;\\n var X = new Array(m).fill(0).map(_ => new Array(m).fill(0))\\n for(let i =0; i= 0; k--) {\\n for (j = 0; j < count; j++) X[k][j] /= rdiag[k] \\n for (i = 0; i < k; i++) {\\n for (j = 0; j < count; j++) X[i][j] -=X[k][j]*qr[i][k]\\n }\\n }\\n return X\\n}\",\n \"function wykonaj_ruch_SI()\\n{\\n let ruchy = generuj_ruchy(), ruch_t;\\n\\n // sprawdzanie czy jest mat/pat\\n if(ruchy.ruchy.length + ruchy.zbicia.length === 0)\\n {\\n if(czy_szach(szachownica.biale_ruch))\\n {\\n // mat, SI przegralo\\n napisz_wynik(szachownica.biale_ruch ? 2 : 1);\\n }\\n else\\n {\\n // pat, remis\\n napisz_wynik(3);\\n }\\n\\n zablokowane = true;\\n\\n return;\\n }\\n\\n // sprawdzanie pozostalych remisow\\n if(szachownica.liczba_polowek_od_r > 100 || poprzednie_pozycje[szachownica.hash] >= 3 || !czy_wystarczajacy_material())\\n {\\n napisz_wynik(3);\\n\\n szachownica.biale_ruch = !szachownica.biale_ruch;\\n zablokowane = true;\\n\\n return;\\n }\\n\\n tablica_transp = new Map();\\n\\n let nr = Math.floor(Math.random() * (ruchy.ruchy.length + ruchy.zbicia.length));\\n\\n if(nr < ruchy.ruchy.length)\\n ruch_t = ruchy.ruchy[nr];\\n else\\n ruch_t = ruchy.zbicia[nr - ruchy.ruchy.length];\\n\\n wykonaj_ruch(ruch_t);\\n if(szachownica.pola[ruch_t.wiersz_k][ruch_t.kolumna_k] === 6 && ruch_t.wiersz_k === 7)\\n {\\n // promocja biale\\n promuj_piona(ruch_t.wiersz_k, ruch_t.kolumna_k, Math.floor(Math.random() * 4) + 2);\\n }\\n else if(szachownica.pola[ruch_t.wiersz_k][ruch_t.kolumna_k] === 12 && ruch_t.wiersz_k === 0)\\n {\\n // promocja czarne\\n promuj_piona(ruch_t.wiersz_k, ruch_t.kolumna_k, Math.floor(Math.random() * 4) + 8);\\n }\\n\\n narysuj();\\n}\",\n \"function simplificationSysteme()\\n\\t{\\n\\t var i = null; //variables de boucles\\n\\t var j = null;\\n\\t var premiere_ligne_ok = false; //variable indiquant si la premiere ligne de la matrice est bien traité (premier coeff egal à 1)\\n\\t var colonne_full_zero = false; //variable indiquant si la colonne en cours est uniquement constitué de 0\\n\\t var sous_systeme = null;\\n\\t \\n\\t for(i = 0; i < this.matrice_systeme.length; i++) //on parcourt la matrice du systeme\\n\\t {\\n\\t if(this.matrice_systeme[i][0] == 1) //si le premier coefficient de la ligne i vaut 1\\n\\t {\\n\\t this.P(i, 0); //on place la ligne i en premiere position\\n\\t premiere_ligne_ok = true; //on indique que la premiere ligne est bien traité\\n\\t break; //on casse la boucle\\n\\t }\\n\\t }\\n\\t \\n\\t if(premiere_ligne_ok == false) //si la premiere ligne n'a pas été bien traité\\n\\t {\\n\\t for(i = 0; i < this.matrice_systeme.length; i++) //on parcourt la matrice du systeme\\n\\t {\\n\\t if(this.matrice_systeme[i][0] != 0) //des que le premier coefficient d'une est non nul\\n\\t {\\n\\t this.P(i, 0); //on place cette ligne en premiere position\\n\\t\\t this.M(0, 1/this.matrice_systeme[0][0]); //on divise cette ligne par le premier coefficient pour reduire celui ci à 1\\n\\t\\t premiere_ligne_ok = true; //on indique que la premiere ligne est bien traité\\n\\t\\t break; //on casse la boucle\\n\\t }\\n\\t else //si apres avoir parcouru la matrice aucun premier coefficient non nul n'a été trouvé\\n\\t {\\n\\t if(i == this.matrice_systeme.length - 1)\\n\\t\\t{\\n\\t\\t colonne_full_zero = true; //on indique que la colonne est rempli de 0\\n\\t\\t}\\n\\t }\\n\\t }\\n\\t }\\n\\t \\n\\t if(this.matrice_systeme.length != 1) //si la matrice du systeme n'est pas une matrice ligne\\n\\t {\\n\\t for(i = 1; i < this.matrice_systeme.length; i++) //on parcourt toutes les lignes en dessous de la premiere\\n\\t {\\n\\t if(this.matrice_systeme[i][0] != 0) //si le premier coeff est non nul\\n\\t {\\n\\t this.S(0, i, -this.matrice_systeme[i][0]); //on lui ajoute/retire une combinaison lineaire de la premiere ligne pr reduire son premier coeff à 0\\n\\t }\\n\\t }\\n\\t \\n\\t sous_systeme = new Array(); //on crée la matrice du sous systeme de notre systeme\\n\\t sous_systeme[0] = new Array();\\n\\t sous_systeme[1] = new Array();\\n\\t \\n\\t for(i = 0; i < this.matrice_systeme.length - 1; i++) //on remplit les lignes du sous systeme \\n\\t {\\n\\t sous_systeme[0][i] = new Array(); //on crée une matrice ligne pr chaque ligne\\n\\t sous_systeme[1][i] = this.second_membre[i+1]; //on remplit le second membre\\n\\t \\n\\t for(j = 0; j < this.matrice_systeme[i].length - 1; j++) //on remplit chaque case de la matrice du systeme du sous systeme\\n\\t {\\n\\t sous_systeme[0][i][j] = this.matrice_systeme[i+1][j+1];\\n\\t }\\n\\t }\\n\\t \\n\\t sous_systeme = new systeme(sous_systeme); //on instance le sous systeme comme une instance de la classe systeme\\n\\t sous_systeme.simplificationSysteme(); //on simplifie le sous systeme\\n\\t \\n\\t for(i = 0; i < this.matrice_systeme.length - 1; i++) //on recupere le sous systeme simplifié dans notre systeme actuel\\n\\t {\\n\\t this.second_membre[i+1] = sous_systeme.second_membre[i];\\n\\t \\n\\t for(j = 0; j < this.matrice_systeme[i].length - 1; j++)\\n\\t {\\n\\t this.matrice_systeme[i+1][j+1] = sous_systeme.matrice_systeme[i][j];\\n\\t }\\n\\t }\\n\\t }\\n\\t \\n\\t this.systeme_simplifie = true;\\n\\t}\",\n \"pow22523(z) {\\r\\n const t0 = new FieldElement();\\r\\n const t1 = new FieldElement();\\r\\n const t2 = new FieldElement();\\r\\n let i;\\r\\n t0.square(z);\\r\\n // for (i = 1; i < 1; i++) {\\r\\n // t0.square(t0);\\r\\n // }\\r\\n t1.square(t0);\\r\\n for (i = 1; i < 2; i++) {\\r\\n t1.square(t1);\\r\\n }\\r\\n t1.mul(z, t1);\\r\\n t0.mul(t0, t1);\\r\\n t0.square(t0);\\r\\n // for (i = 1; i < 1; i++) {\\r\\n // t0.square(t0);\\r\\n // }\\r\\n t0.mul(t1, t0);\\r\\n t1.square(t0);\\r\\n for (i = 1; i < 5; i++) {\\r\\n t1.square(t1);\\r\\n }\\r\\n t0.mul(t1, t0);\\r\\n t1.square(t0);\\r\\n for (i = 1; i < 10; i++) {\\r\\n t1.square(t1);\\r\\n }\\r\\n t1.mul(t1, t0);\\r\\n t2.square(t1);\\r\\n for (i = 1; i < 20; i++) {\\r\\n t2.square(t2);\\r\\n }\\r\\n t1.mul(t2, t1);\\r\\n t1.square(t1);\\r\\n for (i = 1; i < 10; i++) {\\r\\n t1.square(t1);\\r\\n }\\r\\n t0.mul(t1, t0);\\r\\n t1.square(t0);\\r\\n for (i = 1; i < 50; i++) {\\r\\n t1.square(t1);\\r\\n }\\r\\n t1.mul(t1, t0);\\r\\n t2.square(t1);\\r\\n for (i = 1; i < 100; i++) {\\r\\n t2.square(t2);\\r\\n }\\r\\n t1.mul(t2, t1);\\r\\n t1.square(t1);\\r\\n for (i = 1; i < 50; i++) {\\r\\n t1.square(t1);\\r\\n }\\r\\n t0.mul(t1, t0);\\r\\n t0.square(t0);\\r\\n for (i = 1; i < 2; i++) {\\r\\n t0.square(t0);\\r\\n }\\r\\n this.mul(t0, z);\\r\\n }\",\n \"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[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(\\\"+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+\\\"
(\\\"+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+\\\"
(\\\"+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+\\\"
(\\\"+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}\",\n \"function solve2by2UpperTriMatrix(u, h, z) {\\n var aux = z[1] / u[1];\\n return [aux, (-u[0] * aux + z[0]) / h];\\n}\",\n \"function solve2by2LowerTriMatrix(u, w, z) {\\n var aux = z[0] / u[0];\\n return [aux, (-u[1] * aux + z[1]) / w];\\n}\",\n \"function jesusSolve() {\\n\\n}\",\n \"function NR3SVD(a) {\\n var eps = Math.pow2(-52);\\n var itsmax = 30;\\n var convergeError = \\\"The NR3SVD process did not converge\\\";\\n var representError = \\\"The NR3SVD process did not find representable result\\\";\\n var m = a.rows;\\n var n = a.cols;\\n#iflt __PI_BUILD__ 1168\\n var z = new Matrix(0, m, n);\\n var u = z.add(a);\\n z.assign(0, 0, 0);\\n#else\\n var u = new Matrix(a);\\n#endif\\n var w = new Vector(n);\\n var v = new Matrix(n, n);\\n\\n function square(a) {\\n return a * a;\\n }\\n\\n function sign(a, b) {\\n return b >= 0 ? (a >= 0 ? a : -a) : (a >= 0 ? -a : a);\\n }\\n\\n function pythag(a, b) {\\n var absa = Math.abs(a);\\n var absb = Math.abs(b);\\n return (\\n absa > absb ?\\n absa * Math.sqrt(1 + square(absb / absa)) :\\n (absb == 0 ? 0 : absb * Math.sqrt(1 + square(absa / absb)))\\n );\\n }\\n\\n function decompose() {\\n var flag;\\n var i;\\n var its;\\n var j;\\n var jj;\\n var k;\\n var l;\\n var nm;\\n var anorm;\\n var c;\\n var f;\\n var g;\\n var ig;\\n var h;\\n var s;\\n var scale;\\n var x;\\n var y;\\n var z;\\n var rv1 = new Vector(n);\\n g = 0;\\n scale = 0;\\n anorm = 0;\\n for (i = 0; i < n; i++) {\\n l = i + 2;\\n rv1.at(i, scale * g);\\n g = 0;\\n s = 0;\\n scale = 0;\\n if (i < m) {\\n for (k = i; k < m; k++) {\\n scale += Math.abs(u.at(k, i));\\n }\\n if (scale != 0) {\\n for (k = i; k < m; k++) {\\n u.at(k, i, u.at(k, i) / scale);\\n s += u.at(k, i) * u.at(k, i);\\n }\\n f = u.at(i, i);\\n g = -sign(Math.sqrt(s), f);\\n h = f * g - s;\\n u.at(i, i, f - g);\\n for (j = l - 1; j < n; j++) {\\n s = 0;\\n for (k = i; k < m; k++) {\\n s += u.at(k, i) * u.at(k, j);\\n }\\n f = s / h;\\n for (k = i; k < m; k++) {\\n u.at(k, j, u.at(k, j) + f * u.at(k, i))\\n }\\n }\\n for (k = i; k < m; k++) {\\n u.at(k, i, u.at(k, i) * scale);\\n }\\n }\\n }\\n w.at(i, scale * g);\\n g = 0;\\n s = 0;\\n scale = 0;\\n if (i + 1 <= m && i + 1 != n) {\\n for (k = l - 1; k < n; k++) {\\n scale += Math.abs(u.at(i, k));\\n }\\n if (scale != 0) {\\n for (k = l - 1; k < n; k++) {\\n u.at(i, k, u.at(i, k) / scale);\\n s += u.at(i, k) * u.at(i, k);\\n }\\n f = u.at(i, l - 1);\\n g = -sign(Math.sqrt(s), f);\\n h = f * g - s;\\n u.at(i, l - 1, f - g);\\n for (k = l - 1; k < n; k++) {\\n rv1.at(k, u.at(i, k) / h);\\n }\\n for (j = l - 1; j < m; j++) {\\n s = 0;\\n for (k = l - 1; k < n; k++) {\\n s += u.at(j, k) * u.at(i, k);\\n }\\n for (k = l - 1; k < n; k++) {\\n u.at(j, k, u.at(j, k) + s * rv1.at(k));\\n }\\n }\\n for (k = l - 1; k < n; k++) {\\n u.at(i, k, u.at(i, k) * scale);\\n }\\n }\\n }\\n anorm = Math.max(anorm, Math.abs(w.at(i)) + Math.abs(rv1.at(i)));\\n }\\n for (i = n - 1; i >= 0; i--) {\\n if (i < n - 1) {\\n if (g != 0 && isFinite(1 / g)) {\\n ig = 1 / g;\\n for (j = l; j < n; j++) {\\n v.at(j, i, (u.at(i, j) / u.at(i, l)) * ig);\\n }\\n for (j = l; j < n; j++) {\\n s = 0;\\n for (k = l; k < n; k++) {\\n s += u.at(i, k) * v.at(k, j);\\n }\\n for (k = l; k < n; k++ ) {\\n v.at(k, j, v.at(k, j) + s * v.at(k, i));\\n }\\n }\\n }\\n for (j = l; j < n; j++) {\\n v.at(i, j, 0);\\n v.at(j, i, 0);\\n }\\n }\\n v.at(i, i, 1);\\n g = rv1.at(i);\\n l = i;\\n }\\n for (i = Math.min(m, n) - 1; i >= 0; i--) {\\n l = i + 1;\\n g = w.at(i);\\n for (j = l; j < n; j++) {\\n u.at(i, j, 0);\\n }\\n if (g != 0 && isFinite(1 / g)) {\\n g = 1 / g;\\n for (j = l; j < n; j++) {\\n s = 0;\\n for (k = l; k < m; k++) {\\n s += u.at(k, i) * u.at(k, j);\\n }\\n f = (s / u.at(i, i)) * g;\\n for (k = i; k < m; k++) {\\n u.at(k, j, u.at(k, j) + f * u.at(k, i));\\n }\\n }\\n for (j = i; j < m; j++) {\\n u.at(j, i, u.at(j, i) * g);\\n }\\n }\\n else {\\n for (j = i; j < m; j++) {\\n u.at(j, i, 0);\\n }\\n }\\n u.at(i, i, u.at(i, i) + 1);\\n }\\n for (k = n - 1; k >= 0; k--) {\\n for (its = 0; its < itsmax; its++) {\\n flag = true;\\n for (l = k; l >= 0; l--) {\\n nm = l - 1;\\n if (l == 0 || Math.abs(rv1.at(l)) <= eps * anorm) {\\n flag = false;\\n break;\\n }\\n if (Math.abs(w.at(nm)) <= eps * anorm) {\\n break;\\n }\\n }\\n if (flag) {\\n c = 0;\\n s = 1;\\n for (i = l; i < k + 1; i++) {\\n f = s * rv1.at(i);\\n rv1.at(i, c * rv1.at(i));\\n if (Math.abs(f) <= eps * anorm) {\\n break;\\n }\\n g = w.at(i);\\n h = pythag(f, g);\\n w.at(i, h);\\n h = 1 / h;\\n c = g * h;\\n s = -f * h;\\n for (j = 0; j < m; j++) {\\n y = u.at(j, nm);\\n z = u.at(j, i);\\n u.at(j, nm, y * c + z * s);\\n u.at(j, i, z * c - y * s);\\n }\\n }\\n }\\n z = w.at(k);\\n if (l == k) {\\n if (z < 0) {\\n w.at(k, -z);\\n for (j = 0; j < n; j++) {\\n v.at(j, k, -v.at(j, k));\\n }\\n }\\n break;\\n }\\n if (its == itsmax - 1) {\\n throw new Error(convergeError);\\n }\\n x = w.at(l);\\n nm = k - 1;\\n y = w.at(nm);\\n g = rv1.at(nm);\\n h = rv1.at(k);\\n f = ((y - z) * (y + z) + (g - h) * (g + h)) / (2 * h * y);\\n g = pythag(f, 1);\\n f = ((x - z) * (x + z) + h * ((y / (f + sign(g, f))) - h)) / x;\\n c = 1;\\n s = 1;\\n for (j = l; j <= nm; j++) {\\n i = j + 1;\\n g = rv1.at(i);\\n y = w.at(i);\\n h = s * g;\\n g = c * g;\\n z = pythag(f, h);\\n rv1.at(j, z);\\n c = f / z;\\n s = h / z;\\n f = x * c + g * s;\\n g = g * c - x * s;\\n h = y * s;\\n y *= c;\\n for (jj = 0; jj < n; jj++) {\\n x = v.at(jj, j);\\n z = v.at(jj, i);\\n v.at(jj, j, x * c + z * s);\\n v.at(jj, i, z * c - x * s);\\n }\\n z = pythag(f, h);\\n w.at(j, z);\\n if (z != 0 && isFinite(1 / z)) {\\n z = 1 / z;\\n c = f * z;\\n s = h * z;\\n }\\n f = c * g + s * y;\\n x = c * y - s * g;\\n for (jj = 0; jj < m; jj++) {\\n y = u.at(jj, j);\\n z = u.at(jj, i);\\n u.at(jj, j, y * c + z * s);\\n u.at(jj, i, z * c - y * s);\\n }\\n }\\n rv1.at(l, 0);\\n rv1.at(k, f);\\n w.at(k, x);\\n }\\n }\\n\\n rv1.assign(0, 0);\\n }\\n\\n function reorder() {\\n var i;\\n var j;\\n var k;\\n var s;\\n var inc = 1;\\n var sw;\\n var su = new Vector(m);\\n var sv = new Vector(n);\\n for (;;) {\\n inc *= 3;\\n inc++;\\n if (!(inc <= n)) {\\n break;\\n }\\n }\\n for (;;) {\\n inc = Math.floor(inc / 3);\\n for (i = inc; i < n; i++) {\\n sw = w.at(i);\\n for (k = 0; k < m; k++) {\\n su.at(k, u.at(k, i));\\n }\\n for (k = 0; k < n; k++ ) {\\n sv.at(k, v.at(k, i));\\n }\\n j = i;\\n for (; w.at(j - inc) < sw;) {\\n w.at(j, w.at(j - inc));\\n for (k = 0; k < m; k++) {\\n u.at(k, j, u.at(k, j - inc));\\n }\\n for (k = 0; k < n; k++) {\\n v.at(k, j, v.at(k, j - inc));\\n }\\n j -= inc;\\n if (j < inc) {\\n break;\\n }\\n }\\n w.at(j, sw);\\n for (k = 0; k < m; k++) {\\n u.at(k, j, su.at(k));\\n }\\n for (k = 0; k < n; k++) {\\n v.at(k, j, sv.at(k));\\n }\\n }\\n if (!(inc > 1)) {\\n break;\\n }\\n }\\n for (k = 0; k < n; k++) {\\n s = 0;\\n for (i = 0; i < m; i++) {\\n if (u.at(i, k) < 0) {\\n s++;\\n }\\n }\\n for (j = 0; j < n; j++) {\\n if (v.at(j, k) < 0) {\\n s++;\\n }\\n }\\n if (s > Math.floor((m + n) / 2)) {\\n for (i = 0; i < m; i++) {\\n u.at(i, k, -u.at(i, k));\\n }\\n for (j = 0; j < n; j++) {\\n v.at(j, k, -v.at(j, k));\\n }\\n }\\n }\\n su.assign(0, 0);\\n sv.assign(0, 0);\\n }\\n\\n function check() {\\n var i;\\n var j;\\n\\n for (i = 0; i < m; ++i) {\\n for (j = 0; j < n; ++j) {\\n if (!isFinite(u.at(i, j))) {\\n throw new Error(representError);\\n }\\n }\\n }\\n for (i = 0; i < n; ++i) {\\n if (!isFinite(w.at(i))) {\\n throw new Error(representError);\\n }\\n for (j = 0; j < n; ++j) {\\n if (!isFinite(v.at(i, j))) {\\n throw new Error(representError);\\n }\\n }\\n }\\n }\\n\\n decompose();\\n reorder();\\n check();\\n\\n var tsh = 0.5 * (m + n + 1) * Math.abs(w.at(0)) * eps;\\n\\n return [u, w, v, tsh];\\n}\",\n \"function resolveMatriz(){\\n\\tvar matriz = \\n\\t\\t\\t\\t[[0,0,0,0,0,0,0,0,0],\\n\\t\\t\\t\\t[0,0,0,0,0,0,0,0,0],\\n\\t\\t\\t\\t[0,0,0,0,0,0,0,0,0],\\n\\t\\t\\t\\t[0,0,0,0,0,0,0,0,0],\\n\\t\\t\\t\\t[0,0,0,0,0,0,0,0,0],\\n\\t\\t\\t\\t[0,0,0,0,0,0,0,0,0],\\n\\t\\t\\t\\t[0,0,0,0,0,0,0,0,0],\\n\\t\\t\\t\\t[0,0,0,0,0,0,0,0,0],\\n\\t\\t\\t\\t[0,0,0,0,0,0,0,0,0]];\\n\\n\\tvar nivel = parseInt($(\\\"#nivel\\\").val());\\n\\tvar k = parseInt($(\\\"#k\\\").val());\\n\\tvar i,j;\\n\\n\\tswitch(nivel){\\n\\t\\tcase 1: //fácil\\n\\t\\t\\tif (k == 1)\\n\\t\\t\\t\\tmatriz = \\n\\t\\t\\t\\t\\t[[1,9,5,4,6,7,2,3,8],\\n\\t\\t\\t\\t\\t[4,2,8,3,5,1,7,9,6],\\n\\t\\t\\t\\t\\t[6,3,7,9,2,8,1,4,5],\\n\\t\\t\\t\\t\\t[7,1,6,8,9,4,5,2,3],\\n\\t\\t\\t\\t\\t[9,4,3,5,1,2,6,8,7],\\n\\t\\t\\t\\t\\t[8,5,2,7,3,6,9,1,4],\\n\\t\\t\\t\\t\\t[2,7,4,1,8,5,3,6,9],\\n\\t\\t\\t\\t\\t[5,6,9,2,4,3,8,7,1],\\n\\t\\t\\t\\t\\t[3,8,1,6,7,9,4,5,2]];\\n\\t\\t\\tif (k == 2)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[8,5,3,7,6,9,2,4,1],\\n\\t\\t\\t\\t\\t[7,4,9,2,8,1,3,6,5],\\n\\t\\t\\t\\t\\t[6,2,1,5,3,4,8,7,9],\\n\\t\\t\\t\\t\\t[9,8,2,6,4,3,5,1,7],\\n\\t\\t\\t\\t\\t[4,6,7,1,5,2,9,3,8],\\n\\t\\t\\t\\t\\t[3,1,5,8,9,7,6,2,4],\\n\\t\\t\\t\\t\\t[2,9,4,3,1,5,7,8,6],\\n\\t\\t\\t\\t\\t[5,7,6,4,2,8,1,9,3],\\n\\t\\t\\t\\t\\t[1,3,8,9,7,6,4,5,2]];\\n\\t\\t\\tif (k == 3)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[9,1,4,2,3,8,6,5,7],\\n\\t\\t\\t\\t\\t[2,5,8,6,1,7,4,3,9],\\n\\t\\t\\t\\t\\t[3,7,6,5,4,9,2,1,8],\\n\\t\\t\\t\\t\\t[5,8,9,3,2,1,7,6,4],\\n\\t\\t\\t\\t\\t[6,2,7,9,5,4,3,8,1],\\n\\t\\t\\t\\t\\t[1,4,3,7,8,6,5,9,2],\\n\\t\\t\\t\\t\\t[8,6,2,1,7,3,9,4,5],\\n\\t\\t\\t\\t\\t[4,9,5,8,6,2,1,7,3],\\n\\t\\t\\t\\t\\t[7,3,1,4,9,5,8,2,6]];\\n\\t\\t\\tif (k == 4)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[5,3,6,8,1,2,4,7,9],\\n\\t\\t\\t\\t\\t[1,7,4,6,9,5,8,3,2],\\n\\t\\t\\t\\t\\t[9,2,8,3,7,4,6,5,1],\\n\\t\\t\\t\\t\\t[7,4,1,9,5,6,2,8,3],\\n\\t\\t\\t\\t\\t[3,9,2,7,8,1,5,6,4],\\n\\t\\t\\t\\t\\t[6,8,5,4,2,3,1,9,7],\\n\\t\\t\\t\\t\\t[2,1,9,5,6,7,3,4,8],\\n\\t\\t\\t\\t\\t[8,5,3,1,4,9,7,2,6],\\n\\t\\t\\t\\t\\t[4,6,7,2,3,8,9,1,5]];\\n\\t\\t\\tif (k == 5)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[5,3,4,6,2,7,9,8,1],\\n\\t\\t\\t\\t\\t[9,6,2,1,5,8,4,3,7],\\n\\t\\t\\t\\t\\t[7,8,1,9,3,4,2,6,5],\\n\\t\\t\\t\\t\\t[6,4,5,7,8,3,1,2,9],\\n\\t\\t\\t\\t\\t[3,1,7,2,6,9,8,5,4],\\n\\t\\t\\t\\t\\t[8,2,9,4,1,5,3,7,6],\\n\\t\\t\\t\\t\\t[4,9,3,5,7,2,6,1,8],\\n\\t\\t\\t\\t\\t[1,5,8,3,9,6,7,4,2],\\n\\t\\t\\t\\t\\t[2,7,6,8,4,1,5,9,3]];\\n\\t\\t\\tif (k == 6)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[2,1,4,7,8,6,3,5,9],\\n\\t\\t\\t\\t\\t[7,9,8,3,4,5,2,1,6],\\n\\t\\t\\t\\t\\t[6,3,5,2,9,1,4,7,8],\\n\\t\\t\\t\\t\\t[1,5,3,8,6,2,9,4,7],\\n\\t\\t\\t\\t\\t[4,2,7,9,1,3,8,6,5],\\n\\t\\t\\t\\t\\t[8,6,9,4,5,7,1,3,2],\\n\\t\\t\\t\\t\\t[9,7,6,1,2,4,5,8,3],\\n\\t\\t\\t\\t\\t[5,4,2,6,3,8,7,9,1],\\n\\t\\t\\t\\t\\t[3,8,1,5,7,9,6,2,4]];\\n\\t\\t\\tif (k == 7)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[2,3,1,8,5,7,6,9,4],\\n\\t\\t\\t\\t\\t[6,8,7,1,9,4,2,3,5],\\n\\t\\t\\t\\t\\t[9,4,5,6,3,2,1,8,7],\\n\\t\\t\\t\\t\\t[8,2,9,4,6,1,7,5,3],\\n\\t\\t\\t\\t\\t[1,6,4,5,7,3,8,2,9],\\n\\t\\t\\t\\t\\t[5,7,3,2,8,9,4,1,6],\\n\\t\\t\\t\\t\\t[4,9,6,3,1,8,5,7,2],\\n\\t\\t\\t\\t\\t[3,5,8,7,2,6,9,4,1],\\n\\t\\t\\t\\t\\t[7,1,2,9,4,5,3,6,8]];\\n\\t\\t\\tif (k == 8)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[8,7,2,9,4,1,5,6,3],\\n\\t\\t\\t\\t\\t[6,5,1,3,7,8,9,4,2],\\n\\t\\t\\t\\t\\t[3,9,4,2,5,6,7,8,1],\\n\\t\\t\\t\\t\\t[2,3,5,1,8,7,4,9,6],\\n\\t\\t\\t\\t\\t[9,6,8,4,3,5,1,2,7],\\n\\t\\t\\t\\t\\t[4,1,7,6,2,9,8,3,5],\\n\\t\\t\\t\\t\\t[5,8,9,7,6,3,2,1,4],\\n\\t\\t\\t\\t\\t[7,4,3,8,1,2,6,5,9],\\n\\t\\t\\t\\t\\t[1,2,6,5,9,4,3,7,8]];\\n\\t\\t\\tif (k == 9)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[6,7,1,3,8,4,2,9,5],\\n\\t\\t\\t\\t\\t[9,5,4,6,2,1,7,3,8],\\n\\t\\t\\t\\t\\t[8,2,3,9,5,7,1,6,4],\\n\\t\\t\\t\\t\\t[7,4,6,5,3,2,9,8,1],\\n\\t\\t\\t\\t\\t[2,9,5,1,4,8,6,7,3],\\n\\t\\t\\t\\t\\t[3,1,8,7,9,6,5,4,2],\\n\\t\\t\\t\\t\\t[1,3,9,8,6,5,4,2,7],\\n\\t\\t\\t\\t\\t[4,8,7,2,1,9,3,5,6],\\n\\t\\t\\t\\t\\t[5,6,2,4,7,3,8,1,9]];\\n\\t\\t\\tif (k == 10)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[2,1,9,8,7,5,6,3,4],\\n\\t\\t\\t\\t\\t[3,6,4,1,9,2,8,7,5],\\n\\t\\t\\t\\t\\t[7,8,5,6,3,4,9,2,1],\\n\\t\\t\\t\\t\\t[6,2,3,5,4,9,1,8,7],\\n\\t\\t\\t\\t\\t[8,4,1,2,6,7,5,9,3],\\n\\t\\t\\t\\t\\t[9,5,7,3,8,1,4,6,2],\\n\\t\\t\\t\\t\\t[5,7,8,4,2,6,3,1,9],\\n\\t\\t\\t\\t\\t[1,9,6,7,5,3,2,4,8],\\n\\t\\t\\t\\t\\t[4,3,2,9,1,8,7,5,6]];\\n\\t\\t\\tbreak;\\n\\t\\tcase 2: //médio\\n\\t\\t\\tif (k == 1)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[8,5,9,7,3,6,1,2,4],\\n\\t\\t\\t\\t\\t[6,2,4,9,1,5,7,3,8],\\n\\t\\t\\t\\t\\t[3,1,7,4,2,8,9,5,6],\\n\\t\\t\\t\\t\\t[4,9,5,2,8,1,3,6,7],\\n\\t\\t\\t\\t\\t[7,6,3,5,4,9,2,8,1],\\n\\t\\t\\t\\t\\t[1,8,2,3,6,7,5,4,9],\\n\\t\\t\\t\\t\\t[9,3,6,8,7,2,4,1,5],\\n\\t\\t\\t\\t\\t[5,4,8,1,9,3,6,7,2],\\n\\t\\t\\t\\t\\t[2,7,1,6,5,4,8,9,3]];\\n\\t\\t\\tif (k == 2)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[5,1,7,9,2,8,3,6,4],\\n\\t\\t\\t\\t\\t[6,8,4,3,5,1,2,7,9],\\n\\t\\t\\t\\t\\t[9,2,3,4,7,6,5,1,8],\\n\\t\\t\\t\\t\\t[8,9,5,2,1,4,7,3,6],\\n\\t\\t\\t\\t\\t[3,7,2,6,8,5,4,9,1],\\n\\t\\t\\t\\t\\t[1,4,6,7,9,3,8,2,5],\\n\\t\\t\\t\\t\\t[2,5,8,1,3,9,6,4,7],\\n\\t\\t\\t\\t\\t[4,3,9,5,6,7,1,8,2],\\n\\t\\t\\t\\t\\t[7,6,1,8,4,2,9,5,3]];\\n\\t\\t\\tif (k == 3)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[8,2,7,1,6,5,9,3,4],\\n\\t\\t\\t\\t\\t[3,5,9,4,7,8,6,1,2],\\n\\t\\t\\t\\t\\t[1,6,4,9,3,2,7,5,8],\\n\\t\\t\\t\\t\\t[9,8,2,6,5,1,4,7,3],\\n\\t\\t\\t\\t\\t[5,7,1,3,2,4,8,9,6],\\n\\t\\t\\t\\t\\t[4,3,6,8,9,7,1,2,5],\\n\\t\\t\\t\\t\\t[6,4,3,5,1,9,2,8,7],\\n\\t\\t\\t\\t\\t[2,1,8,7,4,3,5,6,9],\\n\\t\\t\\t\\t\\t[7,9,5,2,8,6,3,4,1]];\\n\\t\\t\\tif (k == 4)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[4,6,9,5,3,2,8,1,7],\\n\\t\\t\\t\\t\\t[2,5,1,8,6,7,9,4,3],\\n\\t\\t\\t\\t\\t[7,8,3,9,4,1,6,2,5],\\n\\t\\t\\t\\t\\t[5,2,4,7,8,9,3,6,1],\\n\\t\\t\\t\\t\\t[8,3,6,4,1,5,7,9,2],\\n\\t\\t\\t\\t\\t[9,1,7,3,2,6,5,8,4],\\n\\t\\t\\t\\t\\t[6,7,8,2,5,4,1,3,9],\\n\\t\\t\\t\\t\\t[1,4,5,6,9,3,2,7,8],\\n\\t\\t\\t\\t\\t[3,9,2,1,7,8,4,5,6]];\\n\\t\\t\\tif (k == 5)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[6,5,1,9,7,4,3,8,2],\\n\\t\\t\\t\\t\\t[4,9,8,3,1,2,6,5,7],\\n\\t\\t\\t\\t\\t[3,7,2,5,8,6,9,4,1],\\n\\t\\t\\t\\t\\t[1,3,5,7,2,9,8,6,4],\\n\\t\\t\\t\\t\\t[8,4,6,1,3,5,7,2,9],\\n\\t\\t\\t\\t\\t[7,2,9,6,4,8,5,1,3],\\n\\t\\t\\t\\t\\t[9,8,4,2,5,3,1,7,6],\\n\\t\\t\\t\\t\\t[5,6,7,4,9,1,2,3,8],\\n\\t\\t\\t\\t\\t[2,1,3,8,6,7,4,9,5]];\\n\\t\\t\\tif (k == 6)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[4,7,9,1,6,8,5,3,2],\\n\\t\\t\\t\\t\\t[1,6,2,5,3,9,8,7,4],\\n\\t\\t\\t\\t\\t[3,5,8,7,2,4,9,6,1],\\n\\t\\t\\t\\t\\t[8,4,5,9,7,6,2,1,3],\\n\\t\\t\\t\\t\\t[2,9,6,3,4,1,7,5,8],\\n\\t\\t\\t\\t\\t[7,3,1,8,5,2,4,9,6],\\n\\t\\t\\t\\t\\t[9,2,4,6,1,5,3,8,7],\\n\\t\\t\\t\\t\\t[6,8,3,2,9,7,1,4,5],\\n\\t\\t\\t\\t\\t[5,1,7,4,8,3,6,2,9]];\\n\\t\\t\\tif (k == 7)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[7,4,9,1,2,5,3,8,6],\\n\\t\\t\\t\\t\\t[2,5,1,6,8,3,9,4,7],\\n\\t\\t\\t\\t\\t[3,8,6,4,9,7,1,5,2],\\n\\t\\t\\t\\t\\t[8,1,7,2,5,6,4,3,9],\\n\\t\\t\\t\\t\\t[5,2,4,7,3,9,8,6,1],\\n\\t\\t\\t\\t\\t[9,6,3,8,1,4,2,7,5],\\n\\t\\t\\t\\t\\t[4,3,2,5,6,1,7,9,8],\\n\\t\\t\\t\\t\\t[6,9,8,3,7,2,5,1,4],\\n\\t\\t\\t\\t\\t[1,7,5,9,4,8,6,2,3]];\\n\\t\\t\\tif (k == 8)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[2,6,4,5,9,8,1,7,3],\\n\\t\\t\\t\\t\\t[1,5,3,4,7,2,9,6,8],\\n\\t\\t\\t\\t\\t[8,9,7,1,6,3,2,4,5],\\n\\t\\t\\t\\t\\t[5,8,9,2,1,6,4,3,7],\\n\\t\\t\\t\\t\\t[4,3,6,7,5,9,8,1,2],\\n\\t\\t\\t\\t\\t[7,1,2,8,3,4,5,9,6],\\n\\t\\t\\t\\t\\t[9,7,1,3,8,5,6,2,4],\\n\\t\\t\\t\\t\\t[3,4,5,6,2,1,7,8,9],\\n\\t\\t\\t\\t\\t[6,2,8,9,4,7,3,5,1]];\\n\\t\\t\\tif (k == 9)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[7,9,5,4,8,2,3,6,1],\\n\\t\\t\\t\\t\\t[3,8,6,9,7,1,2,5,4],\\n\\t\\t\\t\\t\\t[4,1,2,3,6,5,8,7,9],\\n\\t\\t\\t\\t\\t[2,5,7,8,1,9,4,3,6],\\n\\t\\t\\t\\t\\t[8,3,4,7,5,6,9,1,2],\\n\\t\\t\\t\\t\\t[1,6,9,2,4,3,7,8,5],\\n\\t\\t\\t\\t\\t[5,4,3,1,2,8,6,9,7],\\n\\t\\t\\t\\t\\t[9,7,1,6,3,4,5,2,8],\\n\\t\\t\\t\\t\\t[6,2,8,5,9,7,1,4,3]];\\n\\t\\t\\tif (k == 10)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[5,2,9,1,8,3,6,4,7],\\n\\t\\t\\t\\t\\t[1,8,6,5,4,7,9,3,2],\\n\\t\\t\\t\\t\\t[3,7,4,9,6,2,1,5,8],\\n\\t\\t\\t\\t\\t[9,6,8,2,3,5,7,1,4],\\n\\t\\t\\t\\t\\t[7,5,1,8,9,4,2,6,3],\\n\\t\\t\\t\\t\\t[2,4,3,6,7,1,8,9,5],\\n\\t\\t\\t\\t\\t[8,3,2,4,1,9,5,7,6],\\n\\t\\t\\t\\t\\t[4,9,5,7,2,6,3,8,1],\\n\\t\\t\\t\\t\\t[6,1,7,3,5,8,4,2,9]];\\n\\n\\t\\t\\tbreak;\\n\\t\\tcase 3: //difícil\\n\\t\\t\\tif (k == 1)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[7,2,3,9,6,1,8,4,5],\\n\\t\\t\\t\\t\\t[1,4,8,7,5,2,6,9,3],\\n\\t\\t\\t\\t\\t[9,5,6,3,8,4,2,7,1],\\n\\t\\t\\t\\t\\t[5,8,2,4,3,7,9,1,6],\\n\\t\\t\\t\\t\\t[6,1,4,2,9,5,7,3,8],\\n\\t\\t\\t\\t\\t[3,9,7,8,1,6,4,5,2],\\n\\t\\t\\t\\t\\t[2,3,5,6,4,9,1,8,7],\\n\\t\\t\\t\\t\\t[4,6,1,5,7,8,3,2,9],\\n\\t\\t\\t\\t\\t[8,7,9,1,2,3,5,6,4]];\\n\\t\\t\\tif (k == 2)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[4,9,6,5,3,2,8,7,1],\\n\\t\\t\\t\\t\\t[2,5,1,8,6,7,3,4,9],\\n\\t\\t\\t\\t\\t[8,7,3,1,9,4,6,5,2],\\n\\t\\t\\t\\t\\t[9,1,2,6,4,3,5,8,7],\\n\\t\\t\\t\\t\\t[5,6,4,7,8,1,9,2,3],\\n\\t\\t\\t\\t\\t[7,3,8,2,5,9,4,1,6],\\n\\t\\t\\t\\t\\t[6,8,7,9,1,5,2,3,4],\\n\\t\\t\\t\\t\\t[3,2,9,4,7,8,1,6,5],\\n\\t\\t\\t\\t\\t[1,4,5,3,2,6,7,9,8]];\\n\\t\\t\\tif (k == 3)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[1,8,2,4,3,5,7,9,6],\\n\\t\\t\\t\\t\\t[4,9,7,6,2,8,1,3,5],\\n\\t\\t\\t\\t\\t[6,3,5,7,9,1,8,2,4],\\n\\t\\t\\t\\t\\t[5,4,1,3,8,6,9,7,2],\\n\\t\\t\\t\\t\\t[7,6,3,9,5,2,4,1,8],\\n\\t\\t\\t\\t\\t[8,2,9,1,4,7,6,5,3],\\n\\t\\t\\t\\t\\t[2,7,4,8,1,3,5,6,9],\\n\\t\\t\\t\\t\\t[9,5,6,2,7,4,3,8,1],\\n\\t\\t\\t\\t\\t[3,1,8,5,6,9,2,4,7]];\\n\\t\\t\\tif (k == 4)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[4,6,1,5,9,3,2,8,7],\\n\\t\\t\\t\\t\\t[9,7,2,8,4,1,6,3,5],\\n\\t\\t\\t\\t\\t[5,8,3,2,7,6,1,9,4],\\n\\t\\t\\t\\t\\t[6,4,9,7,5,2,8,1,3],\\n\\t\\t\\t\\t\\t[1,3,5,6,8,4,9,7,2],\\n\\t\\t\\t\\t\\t[7,2,8,3,1,9,4,5,6],\\n\\t\\t\\t\\t\\t[2,1,6,9,3,5,7,4,8],\\n\\t\\t\\t\\t\\t[3,9,7,4,2,8,5,6,1],\\n\\t\\t\\t\\t\\t[8,5,4,1,6,7,3,2,9]];\\n\\t\\t\\tif (k == 5)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[9,8,3,2,7,4,1,6,5],\\n\\t\\t\\t\\t\\t[1,6,4,8,5,9,3,7,2],\\n\\t\\t\\t\\t\\t[7,5,2,1,3,6,4,8,9],\\n\\t\\t\\t\\t\\t[5,9,7,6,4,2,8,3,1],\\n\\t\\t\\t\\t\\t[2,3,1,5,8,7,9,4,6],\\n\\t\\t\\t\\t\\t[6,4,8,9,1,3,5,2,7],\\n\\t\\t\\t\\t\\t[3,7,6,4,9,1,2,5,8],\\n\\t\\t\\t\\t\\t[8,2,9,3,6,5,7,1,4],\\n\\t\\t\\t\\t\\t[4,1,5,7,2,8,6,9,3]];\\n\\t\\t\\tif (k == 6)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[1,4,7,5,8,6,2,3,9],\\n\\t\\t\\t\\t\\t[6,8,3,2,7,9,5,1,4],\\n\\t\\t\\t\\t\\t[2,5,9,3,1,4,7,8,6],\\n\\t\\t\\t\\t\\t[4,1,5,6,9,3,8,7,2],\\n\\t\\t\\t\\t\\t[7,2,8,1,4,5,6,9,3],\\n\\t\\t\\t\\t\\t[3,9,6,7,2,8,4,5,1],\\n\\t\\t\\t\\t\\t[5,6,4,9,3,7,1,2,8],\\n\\t\\t\\t\\t\\t[9,7,1,8,6,2,3,4,5],\\n\\t\\t\\t\\t\\t[8,3,2,4,5,1,9,6,7]];\\n\\t\\t\\tif (k == 7)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[1,4,6,8,3,9,2,7,5],\\n\\t\\t\\t\\t\\t[3,7,5,4,2,6,9,8,1],\\n\\t\\t\\t\\t\\t[8,2,9,1,7,5,4,3,6],\\n\\t\\t\\t\\t\\t[9,6,2,5,4,8,3,1,7],\\n\\t\\t\\t\\t\\t[4,8,3,9,1,7,5,6,2],\\n\\t\\t\\t\\t\\t[5,1,7,3,6,2,8,9,4],\\n\\t\\t\\t\\t\\t[2,5,1,7,9,3,6,4,8],\\n\\t\\t\\t\\t\\t[6,9,4,2,8,1,7,5,3],\\n\\t\\t\\t\\t\\t[7,3,8,6,5,4,1,2,9]];\\n\\t\\t\\tif (k == 8)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[4,1,2,8,3,5,7,9,6],\\n\\t\\t\\t\\t\\t[9,7,8,4,6,2,3,1,5],\\n\\t\\t\\t\\t\\t[3,6,5,9,1,7,4,8,2],\\n\\t\\t\\t\\t\\t[5,9,3,1,4,6,2,7,8],\\n\\t\\t\\t\\t\\t[6,8,4,7,2,3,9,5,1],\\n\\t\\t\\t\\t\\t[7,2,1,5,8,9,6,3,4],\\n\\t\\t\\t\\t\\t[8,5,6,3,9,4,1,2,7],\\n\\t\\t\\t\\t\\t[2,3,7,6,5,1,8,4,9],\\n\\t\\t\\t\\t\\t[1,4,9,2,7,8,5,6,3]];\\n\\t\\t\\tif (k == 9)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[1,8,4,2,3,7,9,6,5],\\n\\t\\t\\t\\t\\t[3,5,2,9,4,6,1,8,7],\\n\\t\\t\\t\\t\\t[6,9,7,5,1,8,3,4,2],\\n\\t\\t\\t\\t\\t[9,6,8,7,5,3,4,2,1],\\n\\t\\t\\t\\t\\t[4,1,5,8,6,2,7,3,9],\\n\\t\\t\\t\\t\\t[2,7,3,1,9,4,6,5,8],\\n\\t\\t\\t\\t\\t[8,3,9,6,7,5,2,1,4],\\n\\t\\t\\t\\t\\t[5,4,1,3,2,9,8,7,6],\\n\\t\\t\\t\\t\\t[7,2,6,4,8,1,5,9,3]];\\n\\t\\t\\tif (k == 10)\\n\\t\\t\\t\\tmatriz =\\n\\t\\t\\t\\t\\t[[3,7,9,5,1,8,6,2,4],\\n\\t\\t\\t\\t\\t[6,1,4,9,2,3,7,8,5],\\n\\t\\t\\t\\t\\t[2,5,8,6,7,4,3,1,9],\\n\\t\\t\\t\\t\\t[1,4,7,8,5,9,2,6,3],\\n\\t\\t\\t\\t\\t[8,2,6,3,4,1,9,5,7],\\n\\t\\t\\t\\t\\t[5,9,3,7,6,2,8,4,1],\\n\\t\\t\\t\\t\\t[4,6,1,2,9,7,5,3,8],\\n\\t\\t\\t\\t\\t[9,8,2,4,3,5,1,7,6],\\n\\t\\t\\t\\t\\t[7,3,5,1,8,6,4,9,2]];\\n\\t\\t\\tbreak;\\n\\t}\\n\\n\\tfor (i = 1; i <= 9; i++){\\n\\t\\tfor (j = 1; j <= 9; j++){\\n\\t\\t\\t$(\\\"#\\\" + i + \\\"x\\\" + j).val(matriz[i-1][j-1]);\\n\\t\\t}\\n\\t}\\n}\",\n \"function leyes_vida(){\\n\\tcelulas_x2= new Array(50);\\n\\tfor(i=0;i<50;i++){\\n\\t\\tcelulas_y2= new Array(50);\\n\\t\\tfor(j=0;j<50;j++){\\n\\t\\t\\tsum=0;\\n\\t\\t\\tcelulas_y2[j]=evaluar(i,j,celulas_x,celulas_x[i][j],sum);\\n\\t\\t\\t//alert(\\\"resultado: \\\"+celulas_y2[j]);\\n\\t\\t\\t\\n\\t\\t}//for j\\n\\t\\tcelulas_x2[i]=celulas_y2;\\n\\t\\t\\n\\t}//for i\\n\\tcelulas_x=celulas_x2;\\n\\t\\n\\timprimir_celulas(celulas_x);\\n\\t\\n}\",\n \"function createBaseMatrix(clues) {\\nlet up = clues.slice(0, 4);\\nlet right = clues.slice(4, 8);\\nlet down = clues.slice(8, 12).reverse();\\nlet left = clues.slice(12, 16).reverse();\\n\\nlet m = [\\n [0, 0, 0, 0],\\n [0, 0, 0, 0],\\n [0, 0, 0, 0],\\n [0, 0, 0, 0]\\n];\\n\\nup.forEach(\\n (h, i) => {\\n if (h === 4) {\\n m = setArr(m, i, false, [1, 2, 3, 4]);\\n }\\n if (h === 1) {\\n m = setArr(m, i, false, [4, 0, 0, 0]);\\n }\\n }\\n);\\n\\ndown.forEach(\\n (h, i) => {\\n if (h === 4) {\\n m = setArr(m, i, false, [4, 3, 2, 1]);\\n }\\n if (h === 1) {\\n m = setArr(m, i, false, [0, 0, 0, 4]);\\n }\\n }\\n);\\n\\nleft.forEach(\\n (h, i) => {\\n if (h === 4) {\\n m = setArr(m, i, true, [1, 2, 3, 4]);\\n }\\n if (h === 1) {\\n m = setArr(m, i, true, [4, 0, 0, 0]);\\n }\\n }\\n);\\n\\nright.forEach(\\n (h, i) => {\\n if (h === 4) {\\n m = setArr(m, i, true, [4, 3, 2, 1]);\\n }\\n if (h === 1) {\\n m = setArr(m, i, true, [0, 0, 0, 4]);\\n }\\n }\\n);\\n\\nreturn m;\\n}\",\n \"function luJs() {\\n var A = this.dup();\\n var L = Matrix.I(A.rows());\\n var P = Matrix.I(A.rows());\\n var U = Matrix.Zeros(A.rows(), A.cols());\\n var p = 1;\\n\\n for(var k = 1; k <= Math.min(A.cols(), A.rows()); k++) {\\n\\tP = A.partialPivot(k, p, P, A, L);\\n\\t\\n\\tfor(var i = k + 1; i <= A.rows(); i++) {\\n\\t var l = A.e(i, p) / A.e(k, p);\\n\\t L.elements[i - 1][k - 1] = l;\\n\\t \\n\\t for(var j = k + 1 ; j <= A.cols(); j++) {\\n\\t\\tA.elements[i - 1][j - 1] -= A.e(k, j) * l;\\n\\t }\\n\\t}\\n\\t\\n\\tfor(var j = k; j <= A.cols(); j++) {\\n\\t U.elements[k - 1][j - 1] = A.e(k, j);\\n\\t}\\n\\n\\tif(p < A.cols())\\n\\t p++;\\n } \\n \\n return {L: L, U: U, P: P};\\n}\",\n \"function luJs() {\\n var A = this.dup();\\n var L = Matrix.I(A.rows());\\n var P = Matrix.I(A.rows());\\n var U = Matrix.Zeros(A.rows(), A.cols());\\n var p = 1;\\n\\n for(var k = 1; k <= Math.min(A.cols(), A.rows()); k++) {\\n\\tP = A.partialPivot(k, p, P, A, L);\\n\\t\\n\\tfor(var i = k + 1; i <= A.rows(); i++) {\\n\\t var l = A.e(i, p) / A.e(k, p);\\n\\t L.elements[i - 1][k - 1] = l;\\n\\t \\n\\t for(var j = k + 1 ; j <= A.cols(); j++) {\\n\\t\\tA.elements[i - 1][j - 1] -= A.e(k, j) * l;\\n\\t }\\n\\t}\\n\\t\\n\\tfor(var j = k; j <= A.cols(); j++) {\\n\\t U.elements[k - 1][j - 1] = A.e(k, j);\\n\\t}\\n\\n\\tif(p < A.cols())\\n\\t p++;\\n } \\n \\n return {L: L, U: U, P: P};\\n}\",\n \"function luJs() {\\n var A = this.dup();\\n var L = Matrix.I(A.rows());\\n var P = Matrix.I(A.rows());\\n var U = Matrix.Zeros(A.rows(), A.cols());\\n var p = 1;\\n\\n for(var k = 1; k <= Math.min(A.cols(), A.rows()); k++) {\\n\\tP = A.partialPivot(k, p, P, A, L);\\n\\t\\n\\tfor(var i = k + 1; i <= A.rows(); i++) {\\n\\t var l = A.e(i, p) / A.e(k, p);\\n\\t L.elements[i - 1][k - 1] = l;\\n\\t \\n\\t for(var j = k + 1 ; j <= A.cols(); j++) {\\n\\t\\tA.elements[i - 1][j - 1] -= A.e(k, j) * l;\\n\\t }\\n\\t}\\n\\t\\n\\tfor(var j = k; j <= A.cols(); j++) {\\n\\t U.elements[k - 1][j - 1] = A.e(k, j);\\n\\t}\\n\\n\\tif(p < A.cols())\\n\\t p++;\\n } \\n \\n return {L: L, U: U, P: P};\\n}\",\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 }\",\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 }\",\n \"function inverseMatrix(Am){\\r\\n\\tvar B = copyArray(Am);\\r\\n\\tB[3]=[1,0,0];\\r\\n\\tB[4]=[0,1,0];\\r\\n\\tB[5]=[0,0,1];\\r\\n\\tvar m = [[1,2],[0,1],[1,2],[1,0],[2,1],[1,0]];\\r\\n\\tvar r = [0,0,1,2,2,1];\\r\\n\\tvar it = 0;\\r\\n\\tfor(it=0;it {\\n return acc + cur\\n })\\n }\\n console.log(\\\"Result: \\\", result)\\n return result\\n}\",\n \"function matrixGenerator(str) {\\n // your code here\\n let result = [];\\n let jumlahArr = 1;\\n for (let h = 1; h < str.length; h++) {\\n if (h * h >= str.length) {\\n jumlahArr = h;\\n break;\\n }\\n }\\n\\n let selisih = jumlahArr * jumlahArr - str.length;\\n let indexStr = 0;\\n for (let i = 1; i <= jumlahArr; i++) {\\n let tempArr = [];\\n for (let j = 1; j <= jumlahArr; j++) {\\n if (tempArr.length + 1 < jumlahArr) {\\n if (selisih > 0) {\\n tempArr.push('*');\\n selisih--;\\n } else {\\n tempArr.push(str[indexStr]);\\n indexStr++;\\n }\\n } else {\\n result.push(tempArr);\\n if (selisih > 0) {\\n tempArr.push('*');\\n selisih--;\\n } else {\\n tempArr.push(str[indexStr]);\\n indexStr++;\\n }\\n }\\n }\\n }\\n return result;\\n}\",\n \"function luJs() {\\n\\t\\t\\tvar A = this.dup();\\n\\t\\t\\tvar L = Matrix.I(A.rows());\\n\\t\\t\\tvar P = Matrix.I(A.rows());\\n\\t\\t\\tvar U = Matrix.Zeros(A.rows(), A.cols());\\n\\t\\t\\tvar p = 1;\\n\\n\\t\\t\\tfor (var k = 1; k <= Math.min(A.cols(), A.rows()); k++) {\\n\\t\\t\\t\\t\\t\\tP = A.partialPivot(k, p, P, A, L);\\n\\n\\t\\t\\t\\t\\t\\tfor (var i = k + 1; i <= A.rows(); i++) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tvar l = A.e(i, p) / A.e(k, p);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tL.elements[i - 1][k - 1] = l;\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tfor (var j = k + 1; j <= A.cols(); j++) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tA.elements[i - 1][j - 1] -= A.e(k, j) * l;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\tfor (var j = k; j <= A.cols(); j++) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tU.elements[k - 1][j - 1] = A.e(k, j);\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\tif (p < A.cols()) p++;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn { L: L, U: U, P: P };\\n}\",\n \"function luJs() {\\n\\t\\t\\tvar A = this.dup();\\n\\t\\t\\tvar L = Matrix.I(A.rows());\\n\\t\\t\\tvar P = Matrix.I(A.rows());\\n\\t\\t\\tvar U = Matrix.Zeros(A.rows(), A.cols());\\n\\t\\t\\tvar p = 1;\\n\\n\\t\\t\\tfor (var k = 1; k <= Math.min(A.cols(), A.rows()); k++) {\\n\\t\\t\\t\\t\\t\\tP = A.partialPivot(k, p, P, A, L);\\n\\n\\t\\t\\t\\t\\t\\tfor (var i = k + 1; i <= A.rows(); i++) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tvar l = A.e(i, p) / A.e(k, p);\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tL.elements[i - 1][k - 1] = l;\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tfor (var j = k + 1; j <= A.cols(); j++) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tA.elements[i - 1][j - 1] -= A.e(k, j) * l;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\tfor (var j = k; j <= A.cols(); j++) {\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tU.elements[k - 1][j - 1] = A.e(k, j);\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\tif (p < A.cols()) p++;\\n\\t\\t\\t}\\n\\n\\t\\t\\treturn { L: L, U: U, P: P };\\n}\",\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}\",\n \"function makeMatrix(vueApp, wordToMelodies) {\\n const matrix = [];\\n for (let i = 0; i < 7; i++) {\\n matrix.push([0, 0, 0, 0, 0, 0, 0]);\\n }\\n for (const line of vueApp.matchedLines) {\\n const melodies = [];\\n for (const word of line.getWords()) {\\n if (word.tone && word.melody && toneMatches(vueApp.toneQuery, word)) {\\n melodies.push(...wordToMelodies(word));\\n }\\n }\\n const notes = melodies.map(normalizeJianpu);\\n for (let i = 0; i < notes.length - 1; i++) {\\n const current = notes[i];\\n const next = notes[i + 1];\\n // Shift by 1 to accomodate 0-based indexing.\\n matrix[current - 1][next - 1]++;\\n }\\n }\\n return matrix;\\n}\",\n \"function table_of_legal_moves1() {\\n var i, j, t,\\n n = 11,\\n b = [],\\n m = [];\\n for (i = 0; i < n; i += 1) {\\n b[i] = [];\\n for (j = 0; j < n; j += 1) {\\n b[i][j] = 0;\\n }\\n }\\n for (j = 4; j < 7; j += 1) {\\n b[2][j] = j - 3;\\n }\\n for (j = 3; j < 8; j += 1) {\\n b[3][j] = j + 1;\\n }\\n for (j = 2; j < 9; j += 1) {\\n b[4][j] = j + 7;\\n }\\n for (j = 2; j < 9; j += 1) {\\n b[5][j] = j + 14;\\n }\\n for (j = 2; j < 9; j += 1) {\\n b[6][j] = j + 21;\\n }\\n for (j = 3; j < 8; j += 1) {\\n b[7][j] = j + 27;\\n }\\n for (j = 4; j < 7; j += 1) {\\n b[8][j] = j + 31;\\n }\\n for (i = 0; i <= nfields; i += 1) {\\n m[i] = [];\\n }\\n for (i = 0; i < n; i += 1) {\\n for (j = 0; j < n; j += 1) {\\n if (b[i][j]) {\\n t = [];\\n if (b[i - 2][j] !== 0) {\\n t.push([b[i - 1][j], b[i - 2][j]]);\\n }\\n if (b[i + 2][j] !== 0) {\\n t.push([b[i + 1][j], b[i + 2][j]]);\\n }\\n if (b[i][j - 2] !== 0) {\\n t.push([b[i][j - 1], b[i][j - 2]]);\\n }\\n if (b[i][j + 2] !== 0) {\\n t.push([b[i][j + 1], b[i][j + 2]]);\\n }\\n m[b[i][j]] = t;\\n }\\n }\\n }\\n return m;\\n }\",\n \"function RᵌᐧꘌRᶣᕽᶣ (bꜛ, A) {\\n\\t//Give a simple variable name to each part of the matrix, a column and row number\\n\\tvar A0 = A[0], A1 = A[1], A2 = A[2];\\n\\tvar xx = A0[0], xy = A0[1], xz = A0[2], xw = A0[3];\\n\\tvar yx = A1[0], yy = A1[1], yz = A1[2], yw = A1[3];\\n\\tvar zx = A2[0], zy = A2[1], zz = A2[2], zw = A2[3];\\n\\tvar wx = A3[0], wy = A3[1], wz = A3[2], ww = A3[3];\\n\\n\\t//Now set some simple names for the point\\n\\tvar x = bꜛ.x;\\n\\tvar y = bꜛ.y;\\n\\tvar z = bꜛ.z;\\n\\tvar w = 1;\\n\\n\\t//Multiply the point against each part of the 1st column, then add together\\n\\tbꜛ.x = (x * xx) + (y * xy) + (z * xz) + (w * xw);\\n\\t//Multiply the point against each part of the 2nd column, then add together\\n\\tbꜛ.y = (x * yx) + (y * yy) + (z * yz) + (w * yw);\\n\\t//Multiply the point against each part of the 3rd column, then add together\\n\\tbꜛ.z = (x * zx) + (y * zy) + (z * zz) + (w * zw);\\n\\t//Multiply the point against each part of the 4th column, then add together\\n\\t//bꜛ.w = (x * xw) + (y * yw) + (z * zw) + (w * yy);\\n}\",\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 }\",\n \"function updateMatrix(Rpx,Rpy,Gpx,Gpy,Bpx,Bpy,Wpx,Wpy) {\\n convCoords = [Rpx,Rpy,Gpx,Gpy,Bpx,Bpy,Wpx,Wpy];\\n //http://www.brucelindbloom.com/Eqn_RGB_XYZ_Matrix.html\\n //http://www.dr-lex.be/random/matrix_inv.html\\n // Convert the (x,y) values to X Y Z.\\n var Xr = Rpx / Rpy;\\n var Xg = Gpx / Gpy;\\n var Xb = Bpx / Bpy;\\n var Xw = Wpx / Wpy;\\n var Yr = 1;\\n var Yg = 1;\\n var Yb = 1;\\n var Yw = 1;\\n var Zr = (1 - Rpx - Rpy) / Rpy;\\n var Zg = (1 - Gpx - Gpy) / Gpy;\\n var Zb = (1 - Bpx - Bpy) / Bpy;\\n var Zw = (1 - Wpx - Wpy) / Wpy;\\n\\n // Get ready for a bunch of painful math. I need to invert a matrix, then multiply it by a vector.\\n // Determinant for inverse matrix\\n var sDet = (Xr*((Zb*Yg)-(Zg*Yb)))-(Yr*((Zb*Xg)-(Zg*Xb)))+(Zr*((Yb*Xg)-(Yg*Xb)));\\n \\n var Sr = ((((Zb*Yg)-(Zg*Yb))/sDet)*Xw) + ((-((Zb*Xg)-(Zg*Xb))/sDet)*Yw) + ((((Yb*Xg)-(Yg*Xb))/sDet)*Zw);\\n var Sg = ((-((Zb*Yr)-(Zr*Yb))/sDet)*Xw) + ((((Zb*Xr)-(Zr*Xb))/sDet)*Yw) + ((-((Yb*Xr)-(Yr*Xb))/sDet)*Zw);\\n var Sb = ((((Zg*Yr)-(Zr*Yg))/sDet)*Xw) + ((-((Zg*Xr)-(Zr*Xg))/sDet)*Yw) + ((((Yg*Xr)-(Yr*Xg))/sDet)*Zw);\\n \\n // This should be the completed RGB -> XYZ matrix.\\n // Multiply the first three members by R, G, and B respectively, then add\\n // them together to get X, for example.\\n convMatrix[0] = Sr*Xr;\\n convMatrix[1] = Sg*Xg;\\n convMatrix[2] = Sb*Xb;\\n convMatrix[3] = Sr*Yr;\\n convMatrix[4] = Sg*Yg;\\n convMatrix[5] = Sb*Yb;\\n convMatrix[6] = Sr*Zr;\\n convMatrix[7] = Sg*Zg;\\n convMatrix[8] = Sb*Zb;\\n}\",\n \"function zmien_ocene_usun(wiersz, kolumna)\\n{\\n let nr_bierki = szachownica.pola[wiersz][kolumna];\\n\\n if(nr_bierki === 0)\\n return;\\n \\n szachownica.ocena.material -= wartosci[nr_bierki];\\n szachownica.faza_gry -= wartosci_faza_gry[nr_bierki];\\n\\n szachownica.ocena.tablice -= wartosc_tabela(wiersz, kolumna, nr_bierki);\\n szachownica.ocena.tablice_koncowka -= wartosc_tabela_konc(wiersz, kolumna, nr_bierki);\\n\\n if(szachownica.faza_gry < 0)\\n szachownica.faza_gry = 0;\\n}\",\n \"function culebrita(){\\n\\n\\tvar A = [];\\n \\tA = llenar_arreglo();\\n \\n \\tfor(i = 0; i < 5; i++){\\n \\t\\tif(i % 2 == 0){\\n \\t\\t\\tfor(j = 0; j < 5; j++){\\n \\t\\t\\tconsole.debug(A[i][j]);\\n \\t\\t\\t}\\n \\t}else{\\n \\t\\tfor(j = 4; j >= 0; j--){\\n \\t\\tconsole.debug(A[i][j]);\\n \\t\\t}\\n \\t}\\n }\\n\\n\\n\\t// var A = [];\\n\\t// A = llenar_arreglo();\\n\\t// var resultado = 0;\\n\\t// var j =0;\\n\\t// //console.debug(A);\\n\\n\\t// for(var i = 0; i<5; i++){\\n\\t// \\tfor(j; j<5; j++){\\n\\n\\t// \\t\\tif(j= -1){\\n\\t// \\t\\t\\tbreak;\\n\\t// \\t\\t}\\n\\n\\t// \\t\\tresultudo = A[i][j];\\n\\t// \\t\\tresultudo++;\\n\\t// \\t}\\n\\t// \\tj = 4;\\n\\t// }\\n}\",\n \"function matriz (col, lin) {\\n //A variável Matriz é a escolhida para receber os dados das colunas e linhas do tabuleiro\\n let matriz = [];\\n let i = 0;\\n let j = 0;\\n //Utilizando Nested For Loops - ou For Loops dentro de outors - vamos criar arrays que serão os números\\n //de linhas e enviá-los para a Matriz, lembrando que cada vez que rodarmos o For loop para as linhas,\\n //o loop entenderá que deve-se criar novamente um array linha vazio []\\n for(i = 0; i < lin; i++){\\n let linha = [];\\n matriz.push(linha);\\n for(j = 0; j < col; j++){\\n //Já aqui, a variável coluna irá gerar aleatoriamente números entre 0 e 6\\n //Para isso, usamos a função Math.floor que serve para arredondar os números\\n //E a função Math.random que gera números aleatórios entre 0 e 1.\\n //Multiplicamos por 7 para que os resultados sejam arredondados para 0 - o menor\\n //E 6 - o maior\\n let coluna = Math.floor((Math.random() * 7));\\n matriz[i].push(coluna);\\n }\\n }\\n //Aqui visualizamos como nosso tabuleiro está até então\\n console.log(matriz);\\n //para que seja feita a contagem de peças, criamos a variável pecas, sendo essa\\n //um array vazio que irá receber o valor inicial 0 através do For Loop.\\n //O usuário pode também declarar as variáveis por si só, caso queira\\n let pecas = [];\\n for (i = 0; i < 8; i++){\\n pecas.push(0);\\n }\\n //Aqui utilizamos novamente Nested Loops para checarmos os valores de cada linha e coluna\\n //Como os valores podem ir de 0 até 6 - em concordância com os valores do array pecas acima\\n //Cada vez que o for loop retornar um valor, ele vai acrescentar 1 ao valor correspondente\\n //do índice da variável pecas\\n for (i = 0; i < matriz.length; i++){\\n for (j = 0; j < matriz[i].length; j++){\\n pecas[matriz[i][j]]++;\\n }\\n }\\n //com isso, criamos variaveis representando as possibilidades de pecas\\n //Associadas a um determinado indice no array. Por conta do For Loop acima\\n //cada variável já tem um valor armazenado, será utilizado abaixo\\n vazio = pecas[0];\\n peao = pecas[1];\\n bispo = pecas[2];\\n cavalo = pecas[3];\\n torre = pecas[4];\\n rainha = pecas[5];\\n rei = pecas[6];\\n //Por fim, iremos retornar os valores das peças abaixo.\\n console.log(\\\"Casas vazias: \\\" + vazio);\\n console.log(\\\"Peões: \\\" + peao);\\n console.log(\\\"Bispos: \\\" + bispo);\\n console.log(\\\"Cavalos: \\\" + cavalo);\\n console.log(\\\"Torres: \\\" + torre);\\n console.log(\\\"Rainhas: \\\" + rainha);\\n console.log(\\\"Reis: \\\" + rei);\\n }\",\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}\",\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 }\",\n \"function JacobianInverse(J){\\n var m; var n;\\n [m,n] = [J.length,J[0].length];\\n //var dim = size(J); //get the dimension of the Jacobian matrix\\n //var m = dim[0]; //number of rows\\n \\n // - adjust matrix for inversion (add dummy zeroes to the start of each row)\\n for(var j=0;j= 0){\\n\\t\\t\\t\\t\\t\\t\\t\\tconsole.log(\\\"seguir de la matriz \\\" + matriz[i][j+k]);\\n\\t\\t\\t\\t\\t\\t\\t\\tconsole.log(\\\"seguir de la palabra \\\" + palabra.charAt(k));\\n\\t\\t\\t\\t\\t\\t\\t\\tif(matriz[i-k][j] == palabra.charAt(k)){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\txyTemp[0][k] = i-k;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\txyTemp[1][k] = j;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\txyLetras[k] = matriz[i-k][j];\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tvariable++;\\n\\t\\t\\t\\t\\t\\t\\t\\t}else{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t//Ya no coincide\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tseguirArriba = false;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t}else{\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t\\t}\\n }\\n }\\n \\n if(variable == tamCadena){\\n xy = xyTemp;\\n continuarCiclo = false;\\n }else{\\n variable = 0;\\n seguirArriba = true;\\n }\\n \\n //Busca hacia la izquierda si la primera letra de la palabra coincide con la celda actual\\n if(seguirIzq && continuarCiclo){\\n console.log(\\\"seguir IZQ \\\" + matriz[i][j] + \\\"\\\\n\\\");\\n for(var k = 0; k < tamCadena; k++){\\n\\t\\t\\t\\t\\t\\t\\tif(j-k >= 0){\\n\\t\\t\\t\\t\\t\\t\\t\\tconsole.log(\\\"seguir de la matriz \\\" + matriz[i][j-k]);\\n\\t\\t\\t\\t\\t\\t\\t\\tconsole.log(\\\"seguir de la palabra \\\" + palabra.charAt(k));\\n\\t\\t\\t\\t\\t\\t\\t\\tif(matriz[i][j-k] == palabra.charAt(k)){\\n\\t\\t\\t\\t\\t\\t\\t\\t\\txyTemp[0][k] = i;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\txyTemp[1][k] = j-k;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\txyLetras[k] = matriz[i][j-k];\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tvariable++;\\n\\t\\t\\t\\t\\t\\t\\t\\t}else{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t//Ya no coincide\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tseguirIzq = false;\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t\\t}else{\\n\\t\\t\\t\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\t\\t\\t}\\n }\\n }\\n \\n if(variable == tamCadena){\\n xy = xyTemp;\\n continuarCiclo = false;\\n }else{\\n variable = 0;\\n seguirIzq = true;\\n }\\n\\t\\t\\t\\t \\n\\t\\t\\t\\t //Busca en dirección diagona arriba si la primera letra de la palabra coincide con la celda actual\\n\\t\\t\\t\\t if(seguirDiagonalArriba && continuarCiclo){\\n console.log(\\\"seguir diagonal Arriba \\\" + matriz[i][j] + \\\"\\\\n\\\");\\n for(var k = 0; k < tamCadena; k++){\\n if(i-k >= 0 && j-k >= 0){\\n console.log(\\\"seguir de la matriz \\\" + matriz[i-k][j-k]);\\n console.log(\\\"seguir de la palabra \\\" + palabra.charAt(k));\\n if(matriz[i-k][j-k] == palabra.charAt(k)){\\n xyTemp[0][k] = i-k;\\n xyTemp[1][k] = j-k;\\n xyLetras[k] = matriz[i-k][j-k];\\n variable++;\\n }else{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t//Ya no coincide\\n seguirDiagonalArriba = false;\\n break;\\n }\\n }else{\\n break;\\n }\\n }\\n }\\n \\n if(variable == tamCadena){\\n xy = xyTemp;\\n continuarCiclo = false;\\n }else{\\n variable = 0;\\n seguirDiagonalArriba = true;\\n }\\n \\n \\n\\t\\t\\t\\t //Busca en digona abajo si la primera letra de la palabra coincide con la celda actual\\n if(seguirDiagonalAbajo && continuarCiclo){\\n console.log(\\\"seguir diagonal Abajp \\\" + matriz[i][j] + \\\"\\\\n\\\");\\n for(var k = 0; k < tamCadena; k++){\\n if(i+k < matriz.length && j+k < matriz[0].length){\\n console.log(\\\"seguir de la matriz \\\" + matriz[i+k][j+k]);\\n console.log(\\\"seguir de la palabra \\\" + palabra.charAt(k));\\n if(matriz[i+k][j+k] == palabra.charAt(k)){\\n xyTemp[0][k] = i+k;\\n xyTemp[1][k] = j+k;\\n xyLetras[k] = matriz[i+k][j+k];\\n variable++;\\n }else{\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t//Ya no coincide\\n seguirDiagonalAbajo = false;\\n break;\\n }\\n }else{\\n break;\\n }\\n }\\n }\\n \\n if(variable == tamCadena){\\n xy = xyTemp;\\n continuarCiclo = false;\\n }else{\\n variable = 0;\\n seguirDiagonalAbajo = true;\\n }\\n \\n \\n }\\n }\\n }\\n\\t\\t\\n\\t\\tif(continuarCiclo == false){\\n\\t\\t\\tpalabraEncontrada = true;\\n\\t\\t}\\n\\t\\t\\n\\t\\treturn xy;\\n }\",\n \"function legeMatrix(accID){this.rekening=accID; this.naam=\\\"\\\"; this.soort=\\\"\\\", this.leadCode=\\\"\\\", this.aantBb=0; this.saldoBb=0.0; this.aantMut=0; this.debet=0.0; this.credit=0.0; this.saldoMut=0.0; this.saldoEind=0.0;}\",\n \"function VowelSquare(strArr) {\\n var row=[];\\n var col=[];\\n for(var i=0;i>8&255),V(255&t)}function X(t,e,n,r,i){for(var o,s=i[0],a=i[240],h=function(t,e){var n,r,i,o,s,a,h,c,l,u,f=0;for(l=0;l<8;++l){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],s=t[f+4],a=t[f+5],h=t[f+6];var d=n+(c=t[f+7]),p=n-c,g=r+h,m=r-h,y=i+a,w=i-a,v=o+s,b=o-s,x=d+v,S=d-v,I=g+y,k=g-y;t[f]=x+I,t[f+4]=x-I;var _=.707106781*(k+S);t[f+2]=S+_,t[f+6]=S-_;var C=.382683433*((x=b+w)-(k=m+p)),A=.5411961*x+C,T=1.306562965*k+C,F=.707106781*(I=w+m),P=p+F,O=p-F;t[f+5]=O+A,t[f+3]=O-A,t[f+1]=P+T,t[f+7]=P-T,f+=8}for(l=f=0;l<8;++l){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],s=t[f+32],a=t[f+40],h=t[f+48];var E=n+(c=t[f+56]),q=n-c,B=r+h,D=r-h,U=i+a,j=i-a,R=o+s,M=o-s,N=E+R,z=E-R,L=B+U,H=B-U;t[f]=N+L,t[f+32]=N-L;var W=.707106781*(H+z);t[f+16]=z+W,t[f+48]=z-W;var G=.382683433*((N=M+j)-(H=D+q)),V=.5411961*N+G,Y=1.306562965*H+G,X=.707106781*(L=j+D),K=q+X,J=q-X;t[f+40]=J+V,t[f+24]=J-V,t[f+8]=K+Y,t[f+56]=K-Y,f++}for(l=0;l<64;++l)u=t[l]*e[l],Q[l]=0>4;for(var m=1;m<=f;++m)G(a);g&=15}o=32767+v[d],G(i[(g<<4)+w[o]]),G(y[o]),d++}return 63!=u&&G(s),n}function K(t){if(t<=0&&(t=1),100>3)*v+(d=4*(7&g)),w<=b+p&&(f-=v*(b+1+p-w)),v<=a+d&&(f-=a+d-v+4),h=m[f++],c=m[f++],l=m[f++],q[g]=(U[h]+U[c+256>>0]+U[l+512>>0]>>16)-128,B[g]=(U[h+768>>0]+U[c+1024>>0]+U[l+1280>>0]>>16)-128,D[g]=(U[h+1280>>0]+U[c+1536>>0]+U[l+1792>>0]>>16)-128;i=X(q,T,i,S,k),o=X(B,F,o,I,_),s=X(D,F,s,I,_),a+=32}b+=8}if(0<=E){var x=[];x[1]=E+1,x[0]=(1<>0]=38470*t,U[t+512>>0]=7471*t+32768,U[t+768>>0]=-11059*t,U[t+1024>>0]=-21709*t,U[t+1280>>0]=32768*t+8421375,U[t+1536>>0]=-27439*t,U[t+1792>>0]=-5329*t}(),K(t),(new Date).getTime()}()}\",\n \"function output(rowclue, colclue, S) {\\n\\n\\tvar row, col, a, name, i, j;\\n\\trow = rowclue.length;\\n\\tcol = colclue.length;\\n\\t\\n\\tif (!S.is_solved()) {throw \\\"Found an unsolved space in solvedStack!\\\";} //should not happen\\n\\t\\n\\ta = Array.matrix(row, col, 0);\\n\\t\\n\\t//Copy the solved value in variable dom into matrix\\n\\tfor (i = 0; i < row; i++) {\\n\\t\\tfor (j = 0; j < col; j++) {\\n\\t\\t\\tname = \\\"r\\\"+i+\\\"c\\\"+j;\\n\\t\\t\\ta[i][j] = S.vars[name].dom[0][0];\\n\\t\\t\\t\\n\\t\\t}\\n\\t}\\n\\t\\n\\treturn a;\\n\\t\\n}\",\n \"get inverse() {\\n // I use Guassian Elimination to calculate the inverse:\\n // (1) 'augment' the matrix (left) by the identity (on the right)\\n // (2) Turn the matrix on the left into the identity by elemetry row ops\\n // (3) The matrix on the right is the inverse (was the identity matrix)\\n // There are 3 elemtary row ops: (I combine b and c in my code)\\n // (a) Swap 2 rows\\n // (b) Multiply a row by a scalar\\n // (c) Add 2 rows\\n\\n const M = this.matrix;\\n\\n //if the matrix isn't square: exit (error)\\n if (M.length !== M[0].length) {\\n throw new Error(`matrix is not squared`);\\n }\\n\\n //create the identity matrix (I), and a copy (C) of the original\\n var i = 0,\\n ii = 0,\\n j = 0,\\n dim = M.length,\\n e = 0,\\n t = 0;\\n var I = [],\\n C = [];\\n for (i = 0; i < dim; i += 1) {\\n // Create the row\\n I[I.length] = [];\\n C[C.length] = [];\\n for (j = 0; j < dim; j += 1) {\\n\\n //if we're on the diagonal, put a 1 (for identity)\\n if (i == j) {\\n I[i][j] = 1;\\n } else {\\n I[i][j] = 0;\\n }\\n\\n // Also, make the copy of the original\\n C[i][j] = M[i][j];\\n }\\n }\\n\\n // Perform elementary row operations\\n for (i = 0; i < dim; i += 1) {\\n // get the element e on the diagonal\\n e = C[i][i];\\n\\n // if we have a 0 on the diagonal (we'll need to swap with a lower row)\\n if (e == 0) {\\n //look through every row below the i'th row\\n for (ii = i + 1; ii < dim; ii += 1) {\\n //if the ii'th row has a non-0 in the i'th col\\n if (C[ii][i] != 0) {\\n //it would make the diagonal have a non-0 so swap it\\n for (j = 0; j < dim; j++) {\\n e = C[i][j]; //temp store i'th row\\n C[i][j] = C[ii][j]; //replace i'th row by ii'th\\n C[ii][j] = e; //repace ii'th by temp\\n e = I[i][j]; //temp store i'th row\\n I[i][j] = I[ii][j]; //replace i'th row by ii'th\\n I[ii][j] = e; //repace ii'th by temp\\n }\\n //don't bother checking other rows since we've swapped\\n break;\\n }\\n }\\n //get the new diagonal\\n e = C[i][i];\\n //if it's still 0, not invertable (error)\\n if (e == 0) {\\n throw new Error(`matrix is not invertable`);\\n }\\n }\\n\\n // Scale this row down by e (so we have a 1 on the diagonal)\\n for (j = 0; j < dim; j++) {\\n C[i][j] = C[i][j] / e; //apply to original matrix\\n I[i][j] = I[i][j] / e; //apply to identity\\n }\\n\\n // Subtract this row (scaled appropriately for each row) from ALL of\\n // the other rows so that there will be 0's in this column in the\\n // rows above and below this one\\n for (ii = 0; ii < dim; ii++) {\\n // Only apply to other rows (we want a 1 on the diagonal)\\n if (ii == i) { continue; }\\n\\n // We want to change this element to 0\\n e = C[ii][i];\\n\\n // Subtract (the row above(or below) scaled by e) from (the\\n // current row) but start at the i'th column and assume all the\\n // stuff left of diagonal is 0 (which it should be if we made this\\n // algorithm correctly)\\n for (j = 0; j < dim; j++) {\\n C[ii][j] -= e * C[i][j]; //apply to original matrix\\n I[ii][j] -= e * I[i][j]; //apply to identity\\n }\\n }\\n }\\n\\n //we've done all operations, C should be the identity\\n //matrix I should be the inverse:\\n return new Matrix(I);\\n }\",\n \"function inverse(matrix) {\\n var result = new Array(16);\\n var m00 = matrix[0 * 4 + 0];\\n var m01 = matrix[0 * 4 + 1];\\n var m02 = matrix[0 * 4 + 2];\\n var m03 = matrix[0 * 4 + 3];\\n var m10 = matrix[1 * 4 + 0];\\n var m11 = matrix[1 * 4 + 1];\\n var m12 = matrix[1 * 4 + 2];\\n var m13 = matrix[1 * 4 + 3];\\n var m20 = matrix[2 * 4 + 0];\\n var m21 = matrix[2 * 4 + 1];\\n var m22 = matrix[2 * 4 + 2];\\n var m23 = matrix[2 * 4 + 3];\\n var m30 = matrix[3 * 4 + 0];\\n var m31 = matrix[3 * 4 + 1];\\n var m32 = matrix[3 * 4 + 2];\\n var m33 = matrix[3 * 4 + 3];\\n var tmp_0 = m22 * m33;\\n var tmp_1 = m32 * m23;\\n var tmp_2 = m12 * m33;\\n var tmp_3 = m32 * m13;\\n var tmp_4 = m12 * m23;\\n var tmp_5 = m22 * m13;\\n var tmp_6 = m02 * m33;\\n var tmp_7 = m32 * m03;\\n var tmp_8 = m02 * m23;\\n var tmp_9 = m22 * m03;\\n var tmp_10 = m02 * m13;\\n var tmp_11 = m12 * m03;\\n var tmp_12 = m20 * m31;\\n var tmp_13 = m30 * m21;\\n var tmp_14 = m10 * m31;\\n var tmp_15 = m30 * m11;\\n var tmp_16 = m10 * m21;\\n var tmp_17 = m20 * m11;\\n var tmp_18 = m00 * m31;\\n var tmp_19 = m30 * m01;\\n var tmp_20 = m00 * m21;\\n var tmp_21 = m20 * m01;\\n var tmp_22 = m00 * m11;\\n var tmp_23 = m10 * m01;\\n var t0 = tmp_0 * m11 + tmp_3 * m21 + tmp_4 * m31 - (tmp_1 * m11 + tmp_2 * m21 + tmp_5 * m31);\\n var t1 = tmp_1 * m01 + tmp_6 * m21 + tmp_9 * m31 - (tmp_0 * m01 + tmp_7 * m21 + tmp_8 * m31);\\n var t2 = tmp_2 * m01 + tmp_7 * m11 + tmp_10 * m31 - (tmp_3 * m01 + tmp_6 * m11 + tmp_11 * m31);\\n var t3 = tmp_5 * m01 + tmp_8 * m11 + tmp_11 * m21 - (tmp_4 * m01 + tmp_9 * m11 + tmp_10 * m21);\\n var d = 1.0 / (m00 * t0 + m10 * t1 + m20 * t2 + m30 * t3);\\n result[0] = d * t0;\\n result[1] = d * t1;\\n result[2] = d * t2;\\n result[3] = d * t3;\\n result[4] = d * (tmp_1 * m10 + tmp_2 * m20 + tmp_5 * m30 - (tmp_0 * m10 + tmp_3 * m20 + tmp_4 * m30));\\n result[5] = d * (tmp_0 * m00 + tmp_7 * m20 + tmp_8 * m30 - (tmp_1 * m00 + tmp_6 * m20 + tmp_9 * m30));\\n result[6] = d * (tmp_3 * m00 + tmp_6 * m10 + tmp_11 * m30 - (tmp_2 * m00 + tmp_7 * m10 + tmp_10 * m30));\\n result[7] = d * (tmp_4 * m00 + tmp_9 * m10 + tmp_10 * m20 - (tmp_5 * m00 + tmp_8 * m10 + tmp_11 * m20));\\n result[8] = d * (tmp_12 * m13 + tmp_15 * m23 + tmp_16 * m33 - (tmp_13 * m13 + tmp_14 * m23 + tmp_17 * m33));\\n result[9] = d * (tmp_13 * m03 + tmp_18 * m23 + tmp_21 * m33 - (tmp_12 * m03 + tmp_19 * m23 + tmp_20 * m33));\\n result[10] = d * (tmp_14 * m03 + tmp_19 * m13 + tmp_22 * m33 - (tmp_15 * m03 + tmp_18 * m13 + tmp_23 * m33));\\n result[11] = d * (tmp_17 * m03 + tmp_20 * m13 + tmp_23 * m23 - (tmp_16 * m03 + tmp_21 * m13 + tmp_22 * m23));\\n result[12] = d * (tmp_14 * m22 + tmp_17 * m32 + tmp_13 * m12 - (tmp_16 * m32 + tmp_12 * m12 + tmp_15 * m22));\\n result[13] = d * (tmp_20 * m32 + tmp_12 * m02 + tmp_19 * m22 - (tmp_18 * m22 + tmp_21 * m32 + tmp_13 * m02));\\n result[14] = d * (tmp_18 * m12 + tmp_23 * m32 + tmp_15 * m02 - (tmp_22 * m32 + tmp_14 * m02 + tmp_19 * m12));\\n result[15] = d * (tmp_22 * m22 + tmp_16 * m02 + tmp_21 * m12 - (tmp_20 * m12 + tmp_23 * m22 + tmp_17 * m02));\\n return result;\\n}\",\n \"function defineMatrix(){\\n matrix = new Array(6);\\n for (let i = 0; i < 6; i++){\\n matrix[i] = new Array(n + 1);\\n for(let j = 0; j < n + 1; j++, numberMovement--){\\n matrix[i][j] = numberMovement;\\n //stringMat = stringMat + matrix[i][j].toString() + \\\" \\\";\\n }\\n if(i === 4){\\n numberMovement = n - 1;\\n }\\n else{\\n numberMovement = n;\\n }\\n //stringMat = stringMat + \\\"\\\\n\\\";\\n }\\n}\",\n \"function cuentaVecinos(row, col) {\\n let count = 0;\\n let nrow=Number(row);\\n let ncol=Number(col);\\n \\n // Asegurando que el vecino no esta arriba\\n if (nrow - 1 >= 0) {\\n if (aGen[nrow - 1][ncol] == 1) \\n count++;\\n}\\n // Asegurando que el vecino no esta en la fila de arriba a la izquierda\\n if (nrow - 1 >= 0 && ncol - 1 >= 0) {\\n if (aGen[nrow - 1][ncol - 1] == 1) \\n count++;\\n}\\n // Asegurando que el vecino no esta en la fila de arriba a la derecha\\n if (nrow - 1 >= 0 && ncol + 1 < cols) {\\n if (aGen[nrow - 1][ncol + 1] == 1) \\n count++;\\n }\\n // // Asegurando que el vecino no esta en la columna a la izquierda\\n if (ncol - 1 >= 0) {\\n if (aGen[nrow][ncol - 1] == 1) \\n count++;\\n}\\n // Asegurando que el vecino no esta en la columna a la derecha\\n if (ncol + 1 < cols) {\\n if (aGen[nrow][ncol + 1] == 1) \\n count++;\\n}\\n // Asegurando que el vecino no esta en la fila de abajo a la izquierda\\n if (nrow + 1 < rows && ncol - 1 >= 0) {\\n if (aGen[nrow + 1][ncol - 1] == 1) \\n count++;\\n}\\n //Asegurando que el vecino no esta en la fila de abajo a la derecha\\n if (nrow + 1 < rows && ncol + 1 < cols) {\\n if (aGen[nrow + 1][ncol + 1] == 1) \\n count++;\\n}\\n // Asegurando que el vecino no esta abajo\\n if (nrow + 1 < rows) {\\n if (aGen[nrow + 1][ncol] == 1) \\n count++;\\n}\\nreturn count;\\n}\",\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}\",\n \"function R(e, t, n, r, o, i, a, s) {\\n for (var u, l, c, p, d, f, h, m, g = [], v = [ [], [] ], y = 0; y < 2; ++y) if (0 == y ? (l = 6 * e - 12 * n + 6 * o, \\n u = -3 * e + 9 * n - 9 * o + 3 * a, c = 3 * n - 3 * e) : (l = 6 * t - 12 * r + 6 * i, \\n u = -3 * t + 9 * r - 9 * i + 3 * s, c = 3 * r - 3 * t), $(u) < 1e-12) {\\n if ($(l) < 1e-12) continue;\\n 0 < (p = -c / l) && p < 1 && g.push(p);\\n } else h = l * l - 4 * c * u, m = q.sqrt(h), h < 0 || (d = (-l + m) / (2 * u), 0 < d && d < 1 && g.push(d), \\n 0 < (f = (-l - m) / (2 * u)) && f < 1 && g.push(f));\\n for (var b, x = g.length, C = x; x--; ) p = g[x], b = 1 - p, v[0][x] = b * b * b * e + 3 * b * b * p * n + 3 * b * p * p * o + p * p * p * a, \\n v[1][x] = b * b * b * t + 3 * b * b * p * r + 3 * b * p * p * i + p * p * p * s;\\n return v[0][C] = e, v[1][C] = t, v[0][C + 1] = a, v[1][C + 1] = s, v[0].length = v[1].length = C + 2, \\n {\\n min: {\\n x: W.apply(0, v[0]),\\n y: W.apply(0, v[1])\\n },\\n max: {\\n x: V.apply(0, v[0]),\\n y: V.apply(0, v[1])\\n }\\n };\\n }\",\n \"function fill3MatsOfResult(){\\r\\n let matMatsIndex = 0;\\r\\n let cellValue = 0;\\r\\n for(let row = 97; row <= 105 ; row++){\\r\\n for(let col = 1; col <= len; col++){\\r\\n cellValue = Number(document.getElementById(String.fromCharCode(row) + col).value);\\r\\n matRows[row-97][col-1] = cellValue;\\r\\n matCols[col-1][row-97] = cellValue;\\r\\n matMatsIndex = smallMatrixSelector(row,col);\\r\\n matMatsAfterFill[matMatsIndex].push(cellValue);\\r\\n }\\r\\n }\\r\\n}\",\n \"function JacobianInverse_svdcmp(J){\\n var debug = 0;\\n var Dx = {}; //diagnostic\\n \\n //var dim = size(J);\\n //var m = dim[0]; //matrix rank - number of independent rows (number of rows)\\n //var n = dim[1]; //number of columns\\n var m; var n;\\n [m,n] = [J.length,J[0].length];\\n if(debug) console.log('m: ' + m + ', n: ' + n);\\n\\n var Jnull = [];\\n for(var j=0;j (0.0 + TOL)) diag[i] = 1.0/S[i];\\n else diag[i] = 0.0;\\n }\\n if(debug) console.log(diag);\\n /*\\n var Sinv = [ //IMPORTANT: fix magic number.\\n [diag[0], 0.0, 0.0, 0.0, 0.0, 0.0],\\n [ 0.0, diag[1], 0.0, 0.0, 0.0, 0.0],\\n [ 0.0, 0.0, diag[2], 0.0, 0.0, 0.0],\\n [ 0.0, 0.0, 0.0, diag[3], 0.0, 0.0],\\n [ 0.0, 0.0, 0.0, 0.0, diag[4], 0.0],\\n [ 0.0, 0.0, 0.0, 0.0, 0.0, diag[5]]\\n ];\\n */\\n var Sinv = hlao.identity_matrix(S.length);\\n for(var i=0;i= 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}\",\n \"function Y(e,t){var n,i;for(z=e.length;--z>=0;){n=z,(i=z-1)<0&&(i=e.length-1);//console.log('b', i,j, i-1, k,vertices.length);\\nvar r=0,o=m+2*b;for(r=0;r mx0) mx0 = Math.abs(a12)\\n if (Math.abs(a13) > mx0) mx0 = Math.abs(a13)\\n if (Math.abs(a21) > mx0) mx0 = Math.abs(a21)\\n if (Math.abs(a22) > mx0) mx0 = Math.abs(a22)\\n if (Math.abs(a23) > mx0) mx0 = Math.abs(a23)\\n if (Math.abs(a31) > mx0) mx0 = Math.abs(a31)\\n if (Math.abs(a32) > mx0) mx0 = Math.abs(a32)\\n if (Math.abs(a33) > mx0) mx0 = Math.abs(a33)\\n\\n if (mx0 < 1.0e-10) {\\n // interpret this as the matrix of all 0's\\n k0 = 3\\n return {k: k0, v1: v1, v2: v2, v3: v3}\\n }\\n\\n spec = 0\\n a11 /= mx0\\n a12 /= mx0\\n a13 /= mx0\\n a21 /= mx0\\n a22 /= mx0\\n a23 /= mx0\\n a31 /= mx0\\n a32 /= mx0\\n a33 /= mx0\\n\\n if (Math.abs(a11) < epsi && Math.abs(a21) < epsi && Math.abs(a31) < epsi) {\\n // let x1 is independent\\n k = 1\\n v1[0] = 1.0\\n v1[1] = 0.0\\n v1[2] = 0.0\\n\\n if (Math.abs(a12) < epsi && Math.abs(a22) < epsi && Math.abs(a32) < epsi) {\\n // let x2 is independent\\n k = 2\\n v2[0] = 0.0\\n v2[1] = 1.0\\n v2[2] = 0.0\\n\\n if (Math.abs(a13) < epsi && Math.abs(a23) < epsi && Math.abs(a33) < epsi) {\\n // let x3 is independent\\n k = 3\\n v3[0] = 0.0\\n v3[1] = 0.0\\n v3[2] = 1.0\\n }\\n\\n // else, we must have x3 = 0.0, so we're done\\n } else {\\n // reorder so that a12 is maximized\\n mx0 = Math.abs(a12)\\n\\n if (Math.abs(a22) > mx0) {\\n // swap rows 1 and 2\\n t = a11\\n a11 = a21\\n a21 = t\\n t = a12\\n a12 = a22\\n a22 = t\\n t = a13\\n a13 = a23\\n a23 = t\\n mx0 = Math.abs(a12)\\n }\\n\\n if (Math.abs(a32) > mx0) {\\n // swap rows 1 and 3\\n t = a11\\n a11 = a31\\n a31 = t\\n t = a12\\n a12 = a32\\n a32 = t\\n t = a13\\n a13 = a33\\n a33 = t\\n }\\n\\n // let x2 is dependent, x2 = -a13/a12*x3\\n b32 = a23 - (a22 * a13) / a12\\n b33 = a33 - (a32 * a13) / a12\\n\\n if (Math.abs(b32) < epsi && Math.abs(b33) < epsi) {\\n //* let x3 is independent\\n k = 2\\n v2[0] = 0.0\\n v2[1] = -a13 / a12\\n v2[2] = 1.0\\n spec = 1\\n }\\n\\n // else, we must have x3 = x2 = 0.0, so we're done\\n }\\n } else {\\n // reorder so that a11 is maximized\\n mx0 = Math.abs(a11)\\n\\n if (Math.abs(a12) > mx0) {\\n // swap rows 1 and 2\\n t = a11\\n a11 = a21\\n a21 = t\\n t = a12\\n a12 = a22\\n a22 = t\\n t = a13\\n a13 = a23\\n a23 = t\\n mx0 = Math.abs(a11)\\n }\\n\\n if (Math.abs(a13) > mx0) {\\n // swap rows 1 and 3\\n t = a11\\n a11 = a31\\n a31 = t\\n t = a12\\n a12 = a32\\n a32 = t\\n t = a13\\n a13 = a33\\n a33 = t\\n }\\n\\n // let x1 is dependent, x1 = -a12/a11*x2 - a13/a11*x3\\n b22 = a22 - (a21 * a12) / a11\\n b23 = a23 - (a21 * a13) / a11\\n b32 = a32 - (a31 * a12) / a11\\n b33 = a33 - (a31 * a13) / a11\\n\\n if (Math.abs(b22) < epsi && Math.abs(b32) < epsi) {\\n // let x2 is independent\\n k = 1\\n v1[0] = -a12 / a11\\n v1[1] = 1.0\\n v1[2] = 0.0\\n\\n if (Math.abs(b23) < epsi && Math.abs(b33) < epsi) {\\n // let x3 is independent\\n k = 2\\n v2[0] = -a13 / a11\\n v2[1] = 0.0\\n v2[2] = 1.0\\n spec = 2\\n }\\n\\n // else, we must have x3 = 0.0, so we're done\\n } else {\\n // reorder so that b22 is maximized\\n if (Math.abs(b22) < Math.abs(b32)) {\\n t = b22\\n b22 = b32\\n b32 = t\\n t = b23\\n b23 = b33\\n b33 = t\\n }\\n\\n // let x2 is dependent, x2 = -b23/b22*x3\\n if (Math.abs(b33 - (b23 * b32) / b22) < epsi) {\\n // let x3 is independent\\n k = 1\\n v1[0] = (a12 / a11) * (b23 / b22) - a13 / a11\\n v1[1] = -b23 / b22\\n v1[2] = 1.0\\n spec = 3\\n } else {\\n // the null space contains only the zero vector\\n k0 = 0\\n v1[0] = 0.0\\n v1[1] = 0.0\\n v1[2] = 0.0\\n //return;\\n return {k: k0, v1: v1, v2: v2, v3: v3}\\n }\\n }\\n }\\n\\n k0 = k\\n\\n if (spec > 0) {\\n // special cases, basis should be orthogonalized\\n if (spec == 1) {\\n // 2nd vector must be normalized\\n a11 = v2[0]\\n a12 = v2[1]\\n a13 = v2[2]\\n t = Math.sqrt(a11 * a11 + a12 * a12 + a13 * a13)\\n v2[0] = a11 / t\\n v2[1] = a12 / t\\n v2[2] = a13 / t\\n } else if (spec == 2) {\\n // 1st, 2nd vectors must be orthogonalized\\n a11 = v1[0]\\n a12 = v1[1]\\n a13 = v1[2]\\n a21 = v2[0]\\n a22 = v2[1]\\n a23 = v2[2]\\n t = a11 * a21 + a12 * a22 + a13 * a23\\n\\n if (Math.abs(t) >= epsi) {\\n q = -(a11 * a11 + a12 * a12 + a13 * a13) / t\\n v2[0] = a11 + t * a21\\n v2[1] = a12 + t * a22\\n v2[2] = a13 + t * a23\\n a21 = v2[0]\\n a22 = v2[1]\\n a23 = v2[2]\\n }\\n\\n // normalize the vectors\\n t = Math.sqrt(a11 * a11 + a12 * a12 + a13 * a13)\\n v1[0] = a11 / t\\n v1[1] = a12 / t\\n v1[2] = a13 / t\\n t = Math.sqrt(a21 * a21 + a22 * a22 + a23 * a23)\\n v2[0] = a21 / t\\n v2[1] = a22 / t\\n v2[2] = a23 / t\\n } else {\\n // 1st vector must be normalized\\n a11 = v1[0]\\n a12 = v1[1]\\n a13 = v1[2]\\n t = Math.sqrt(a11 * a11 + a12 * a12 + a13 * a13)\\n v1[0] = a11 / t\\n v1[1] = a12 / t\\n v1[2] = a13 / t\\n }\\n }\\n\\n return {k: k0, v1: v1, v2: v2, v3: v3}\\n }\",\n \"function fl_outToLevivot ()\\n\\t\\t{if(freez==\\\"false\\\"){\\n\\t\\t\\tconsole.log(\\\"hit\\\")\\n\\t\\t\\tthis.rimon.alpha=1\\n\\t\\t\\tthis.sufgania.alpha=1\\n\\t\\t\\tthis.selek.alpha=1\\n\\t\\t\\tthis.tamar.alpha=1\\n\\t\\t\\tthis.karpas.alpha=1\\n\\t\\t\\tthis.haroset.alpha=1\\n\\t\\t\\tthis.maza.alpha=1\\n\\t\\t\\tthis.hasa.alpha=1\\n\\t\\t\\tthis.beiza.alpha=1\\n\\t\\t\\tthis.hazeret.alpha=1\\n\\t\\t\\tthis.mamtak.alpha=1\\n\\t\\t\\tthis.gvina.alpha=1\\n\\t\\t\\tthis.oznei_aman.alpha=1\\n\\t\\t\\tthis.dvash.alpha=1\\n\\t\\t\\tthis.dag.alpha=1\\n\\t\\t\\tthis.sumsum.alpha=1\\n\\t\\t\\tthis.perot.alpha=1\\n\\t\\t\\tthis.mishloah.alpha=1\\n\\t\\t\\tthis.of.alpha=1\\n\\t\\t this.tu_btn.alpha=1\\n\\t\\t this.purim_btn.alpha=1\\n\\t\\t this.pesach_btn.alpha=1\\n\\t\\t this.shavuot_btn.alpha=1\\n\\t\\t this.rosh_ha_shana_btn.alpha=1\\n\\t\\t this.modern_btn.alpha=1\\n\\t\\t\\t\\t\\t this.arrow_btn.alpha=0\\n\\t\\tthis.arrowAside_mc.alpha=0\\n\\t\\tthis.gvina_explain.alpha=0\\n\\t\\tthis.mishloah_explain.alpha=0\\n\\t\\tthis.sufgania_explain.alpha=0\\n\\t\\tthis.perot_explain.alpha=0\\n\\t\\tthis.tapuah_explain.alpha=0\\n\\t\\tthis.maza_explain.alpha=0\\n\\t\\t\\n\\t\\t}}\",\n \"function perkalianUnik(arr) {\\n // you can only write your code here!\\n var hasil =[ ]\\n for(var i=0;i \\\" + Value_Length);\\r\\n\\t\\t\\t\\t//if(Value_Length > 1)\\r\\n\\t\\t\\t\\t{\\r\\n\\t\\t\\t\\t\\tfor(var v=0; v \\\" + Claim_Array_Number);\\r\\n\\t\\t\\t\\r\\n\\t\\tfor(var i=0; i<3; i++)\\r\\n\\t\\t{\\r\\n\\t\\t\\tfor(var k=0; k<3; k++)\\r\\n\\t\\t\\t{\\r\\n\\t\\t\\t\\tSudoku_Solution[i][j][k][l] = \\\"\\\";\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\tvar First_Index = 0;\\r\\n\\t\\tvar\\tSecond_Index = 0;\\r\\n\\t\\t\\r\\n\\t\\tfor(var s=0; s<9; s++)\\r\\n\\t\\t{\\r\\n\\t\\t\\tfor(var z=0; z\\\" + First_Index + \\\",\\\" + Second_Index);\\r\\n\\t\\t\\t\\t\\tUser_Message = \\\"The Problem seems Very Incorrect.\\\";\\r\\n\\t\\t\\t\\t\\tdocument.getElementById(\\\"User_Message\\\").innerHTML = User_Message;\\r\\n\\t\\t\\t\\t}\\r\\n\\t\\t\\t}\\r\\n\\t\\t}\\r\\n\\t\\t//alert(\\\"After : \\\" + Values);\\r\\n\\t\\t\\t\\r\\n\\t\\treturn false;\\r\\n\\t}\",\n \"function solveEq(eq){\\n // seperate eq matrix to matrix a and b\\n const a = []\\n const b = []\\n for (let i = 0; i < 3; i += 1) {\\n const row = [];\\n for (let j = 0; j < 3; j += 1) {\\n row.push(eq[i][j]);\\n }\\n a.push(row);\\n b.push(eq[i][3]);\\n }\\n // calculate matrix of minors\\n const mom = [];\\n for (let i = 0; i < 3; i += 1) {\\n const row = [];\\n for (let j = 0; j < 3; j += 1) {\\n const sq = [];\\n for (let x = 0; x < 3; x += 1) {\\n for (let y = 0; y < 3; y += 1) {\\n if (x !== i && y !== j) sq.push(a[x][y]);\\n }\\n }\\n const det = determinant(sq);\\n row.push(det);\\n }\\n mom.push(row);\\n }\\n // calculate matrix of cofactors\\n const moc = [[mom[0][0], -mom[0][1], mom[0][2]],\\n [-mom[1][0], mom[1][1], -mom[1][2]],\\n [mom[2][0], -mom[2][1], mom[2][2]]];\\n // adjugate matrix of cofactors \\n const amoc = [[moc[0][0], moc[1][0], moc[2][0]],\\n [moc[0][1], moc[1][1], moc[2][1]],\\n [moc[0][2], moc[1][2], moc[2][2]]]; \\n // find determinant of a\\n const a1 = determinant([a[1][1], a[1][2], a[2][1], a[2][2]]);\\n const a2 = determinant([a[1][0], a[1][2], a[2][0], a[2][2]]);\\n const a3 = determinant([a[1][0], a[1][1], a[2][0], a[2][1]]);\\n const aDet = a[0][0] * a1 - a[0][1] * a2 + a[0][2] * a3;\\n const aInv = [];\\n for (let i = 0; i < 3; i += 1) {\\n const row = [];\\n for (let j = 0; j < 3; j += 1) {\\n row.push(1/aDet * amoc[i][j]);\\n }\\n aInv.push(row);\\n }\\n // multiply inverse of matrix a by matrix b\\n return [Math.round(aInv[0][0] * b[0] + aInv[0][1] * b[1] + aInv[0][2] * b[2]),\\n Math.round(aInv[1][0] * b[0] + aInv[1][1] * b[1] + aInv[1][2] * b[2]),\\n Math.round(aInv[2][0] * b[0] + aInv[2][1] * b[1] + aInv[2][2] * b[2])];\\n}\",\n \"function main() {\\n\\n // this first block is the given information\\n var arr = [], count = -63;\\n\\n // This takes all the inputs and puts them into an array so that you can manipulate them\\n for(let arr_i = 0; arr_i < 6; arr_i++){\\n\\n arr[arr_i] = readLine().split(' ');\\n\\n arr[arr_i] = arr[arr_i].map(Number);\\n\\n console.log(arr[arr_i])\\n }\\n\\n // this is very specific for the size of the matrix that you are going to be going through and summing up the hourglasses === this is NOT an one size fits all answer.\\n for( i = 0 ; i < 4 ; i ++)\\n {\\n for( j = 0 ; j < 4 ; j ++)\\n {\\n var t;\\n\\n\\n // this is the hourglass shape that corresponds to the matrix so you can cut out an do the addition on the item...\\n t = arr[i][j] + arr[i][j+1] + arr[i][j+2] + arr[i+1][j+1] + arr[i+2][j] + arr[i+2][j+1] + arr[i+2][j+2];\\n\\n\\n if( t > count )\\n {\\n count = t ;\\n }\\n }\\n }\\n\\n console.log()\\n\\n console.log(count);\\n}\",\n \"function wartosc_tabela_konc(wiersz, kolumna, nr_bierki)\\n{\\n let czy_biale = nr_bierki < 7;\\n let nr = nr_bierki - (czy_biale ? 1 : 7);\\n let poz_w_tablicy = kolumna + 8 * (!czy_biale ? wiersz: 7 - wiersz);\\n\\n return tabele_konc[nr][poz_w_tablicy] * (czy_biale ? 1 : -1);\\n}\",\n \"function bbw( faces, vertices, handles, mode )\\n{\\n\\n /// 1 Create the laplacian L and mass M matrices.\\n /// 2 The bilaplacian B is L.T * M * L.\\n /// 3 Create the constraint matrix. There will be an equality constraint for\\n /// every handle vertex, and 2 inequality constraints for the remaining vertices.\\n /// 4 Solve once for each handle, setting each handles constraint value to 1 in turn.\\n /// 5 Normalize each vertex's weights so that they sum to 1.\\n \\n /// Add your code here.\\n \\n\\tconsole.log(\\\"in bbw\\\");\\n\\tvar temp = laplacian_and_mass_matrices( faces, vertices );\\n\\tvar\\tL = temp[0];\\n\\tvar M = temp[1];\\n\\tconsole.log(\\\"vertices\\\" + vertices.length);\\n\\tconsole.log(\\\"handles\\\" + handles.length);\\n\\tvar non_handles_length = vertices.length - handles.length ; \\n\\tconsole.log(\\\"nonhandles\\\" + non_handles_length); \\n\\t\\n\\t//Dmat\\n\\tvar B = numeric.ccsFull(numeric.ccsDot(numeric.ccsDot(numeric.ccsSparse(numeric.transpose(L)), numeric.ccsSparse(M)), numeric.ccsSparse(L)));\\n\\tconsole.log(\\\"after dmat \\\" + B.length);\\n\\n\\t//aeq\\n\\tconsole.log(\\\"vertices[183]\\\" +vertices[183]);\\n\\tvar aeq = [];\\n\\tfor(var i = 0; i < handles.length; i++){\\n\\t\\taeq[i] = [];\\n\\t\\tfor( var j = 0; j< vertices.length ; j++){\\n\\t\\t\\t\\taeq[i][j] = 0;\\n\\t\\t\\t\\tif(vertices[handles[i]] == vertices[j]){\\n\\t\\t\\t\\t\\tconsole.log(\\\"in if aeq\\\" + j);\\n\\t\\t\\t\\t\\taeq[i][j] = 1;\\n\\t\\t\\t\\t}\\t\\n\\t\\t}\\t\\n\\t}\\n\\tconsole.log(\\\"in bbw after aeq for\\\");\\n\\tconsole.log(\\\"in bbw after aeq length\\\" +aeq);\\n\\t\\n\\t//non handles\\n\\tvar index = 0;\\n\\tvar non_handles = [];\\n\\t\\n\\tfor(var i = 0; i < vertices.length; i++){\\n\\t\\tvar flag = true;\\n\\t\\tfor( var j = 0; j< handles.length ; j++){\\n\\t\\t\\t\\tif(vertices[i] == vertices[handles[j]])\\n\\t\\t\\t\\t\\tflag = false;\\n\\t\\t}\\n\\t\\tif(flag == true){\\n\\t\\t\\tnon_handles[index] = i;\\n\\t\\t\\tindex++;\\n\\t\\t}\\n\\t}\\n\\tconsole.log(\\\"handles\\\" + handles);\\n\\tconsole.log(\\\"in bbw after nonhandles\\\" + non_handles);\\n\\t\\n\\t//age\\n\\tvar age = [];\\n\\tvar previous_index = 0;\\n\\tfor(var i = 0; i < 2*non_handles.length; i++){\\n\\t\\tage[i] = [];\\n\\t\\tif((i%2)!=0){\\n\\t\\t\\tfor( var j = 0; j< vertices.length ; j++){\\n\\t\\t\\t\\tage[i][j] = 0;\\n\\t\\t\\t\\tage[i][previous_index] = -1;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\telse{\\n\\t\\t\\tfor( var j = 0; j< vertices.length ; j++){\\n\\t\\t\\t\\tage[i][j] = 0;\\n\\t\\t\\t\\tif(vertices[non_handles[i]] == vertices[j]){\\n\\t\\t\\t\\t\\tage[i][j] = 1;\\n\\t\\t\\t\\t\\tprevious_index = j;\\n\\t\\t\\t\\t}\\t\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\t\\n\\t}\\n\\tconsole.log(\\\"in bbw after age length \\\" + age);\\n\\t\\n\\t//bge\\n\\t\\n\\tvar previous_index_bge = 0;\\n\\tvar bge = [];\\n\\tfor(var i = 0; i < 2*non_handles.length; i++){\\n\\t\\tif(i%2 == 0)\\n\\t\\t\\tbge[i] = 0;\\n\\t\\telse\\n\\t\\t\\tbge[i]= -1;\\n\\t\\t\\n\\t}\\n\\t\\n\\tconsole.log(\\\"in bbw after bge\\\");\\n\\t\\n\\t//constraint\\n\\tvar constraint = [[]];\\n\\tvar index_age = 0;\\n\\tvar constraint = aeq;\\n\\tvar cons = aeq.length+age.length;\\n\\tfor( var i = aeq.length; i < cons; i++){\\n\\t\\tconsole.log(\\\"in bbw constraint for\\\");\\n\\t\\tconstraint[i] = age[index_age];\\n\\t\\tindex_age++;\\n\\t}\\n\\tconsole.log(\\\"in bbw before constraint length\\\" + constraint);\\n\\t\\n\\t//Amat;\\n\\tvar constraint_transpose = numeric.transpose(constraint);\\n\\tconsole.log(\\\"constraint_transpose\\\"+ constraint_transpose.length) ;\\n\\tconsole.log(\\\"in bbw after amat\\\");\\n\\t\\n\\t//beq\\n\\tvar beq =[];\\n\\tfor(var i = 0; i< handles.length;i++)\\n\\t\\tbeq[i] = 0;\\n\\tconsole.log(\\\"in bbw after beq\\\");\\t\\n\\n\\t//bge+beq ( bvec)\\n\\tvar index_bvec = 0;\\n\\tvar bvec = beq;\\n\\tvar bvec_size = beq.length + bge.length \\n\\tfor(var i = bvec.length; i< bvec_size; i++){\\n\\t\\tbvec[i] = bge[index_bvec];\\n\\t\\tindex_bvec++;\\n\\t}\\n\\tconsole.log(\\\"in bbw after bvec\\\");\\n\\n\\t//dvec\\n\\tvar dvec = numeric.rep([vertices.length], 0);\\n\\t\\n\\t//meq\\n\\tvar meq = handles.length;\\n\\t\\n\\t//vertices by handles\\n\\tvar vertices_by_handles_transpose = [];\\n\\tfor(var i = 0; i {\\n row.forEach((value,x) =>{ \\n if(value !== 0){\\n this.matrix[y + player.pos.y][x + player.pos.x] = value;\\n } \\n });\\n }); \\n }\",\n \"function generateMatrix() {\\r\\n generateMatrixForDeterminant();\\r\\n}\",\n \"function solve(i, j) {\\n //check in row, column and sector\\n solved[i][j] = setIntersection(aroundNums(i, j), solved[i][j]);\\n if (solved[i][j].size == 1) {\\n for (let item of solved[i][j]) {\\n solved[i][j] = item;\\n matrix[i][j] = item;\\n }\\n //return +1 changes\\n return 1;\\n }\\n return 0;\\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}\",\n \"function wartosc_tabela(wiersz, kolumna, nr_bierki)\\n{\\n let czy_biale = nr_bierki < 7;\\n let nr = nr_bierki - (czy_biale ? 1 : 7);\\n let poz_w_tablicy = kolumna + 8 * (!czy_biale ? wiersz: 7 - wiersz);\\n\\n return tabele[nr][poz_w_tablicy] * (czy_biale ? 1 : -1);\\n}\",\n \"getMatX( i, j,w)\\n { \\n return this.mats[i][j]%w;\\n }\",\n \"inverse()\\r\\n {\\r\\n var newMatrix = this.duplicateMatrix();\\r\\n\\r\\n // make an identity matrix with the same dimensions as this matrix\\r\\n var identityArr = [];\\r\\n for (var r = 0; r < a.m; r++)\\r\\n {\\r\\n identityArr.push([])\\r\\n for (var c = 0; c < a.n; c++)\\r\\n {\\r\\n if (c == r)\\r\\n identityArr[r][c] = 1;\\r\\n else\\r\\n identityArr[r][c] = 0;\\r\\n }\\r\\n }\\r\\n\\r\\n // run the RREF algorithm and do all the row operations on the identity matrix simultaneously\\r\\n var invertedMatrix = new Matrix(identityArr);\\r\\n\\r\\n var completeRows = 0;\\r\\n // repeat until all rows are complete\\r\\n while (completeRows < newMatrix.m)\\r\\n {\\r\\n // find the row with the leftmost leading variable\\r\\n // by looping through incomplete rows, finding which has min leadingVar\\r\\n var leadingIndex = newMatrix.indexOfLeadingVar(completeRows);\\r\\n var leadingRow = completeRows;\\r\\n var leadingVar = newMatrix.matrix[completeRows][leadingIndex];\\r\\n\\r\\n for (var r = completeRows; r < newMatrix.m; r++)\\r\\n {\\r\\n var rowIndex = newMatrix.indexOfLeadingVar(r)\\r\\n if (rowIndex < leadingIndex)\\r\\n {\\r\\n leadingIndex = rowIndex;\\r\\n leadingRow = r;\\r\\n leadingVar = newMatrix.matrix[r][leadingIndex];\\r\\n }\\r\\n }\\r\\n\\r\\n // swap this row with the topmost incomplete row\\r\\n if (leadingRow != completeRows)\\r\\n {\\r\\n newMatrix.swapRows(leadingRow, completeRows);\\r\\n invertedMatrix.swapRows(leadingRow, completeRows);\\r\\n }\\r\\n\\r\\n if (!newMatrix.isZeroRow(completeRows))\\r\\n {\\r\\n // multiply the row by 1/leadingVar\\r\\n newMatrix.scaleRow(completeRows, math.divide(1, leadingVar));\\r\\n invertedMatrix.scaleRow(completeRows, math.divide(1, leadingVar));\\r\\n\\r\\n // subtract (c * this row) from all other rows,\\r\\n // where c = the coefficient in the same column as this row's leading variable\\r\\n for (var r = 0; r < newMatrix.m; r++)\\r\\n {\\r\\n if (r != completeRows)\\r\\n {\\r\\n var c = math.multiply(newMatrix.matrix[r][leadingIndex], -1);\\r\\n newMatrix.addRows(c, completeRows, r);\\r\\n invertedMatrix.addRows(c, completeRows, r);\\r\\n }\\r\\n }\\r\\n }\\r\\n\\r\\n // increase the complete rows counter by one\\r\\n completeRows++;\\r\\n }\\r\\n return invertedMatrix;\\r\\n\\r\\n }\",\n \"function\\nbuild_rotmatrix(q)\\n{\\n var m = mat4();\\n \\n // m are stored in column major\\n m[0][0] = 1.0 - 2.0 * (q[1] * q[1] + q[2] * q[2]);\\n m[0][1] = 2.0 * (q[0] * q[1] - q[2] * q[3]);\\n m[0][2] = 2.0 * (q[2] * q[0] + q[1] * q[3]);\\n m[0][3] = 0.0;\\n \\n m[1][0] = 2.0 * (q[0] * q[1] + q[2] * q[3]);\\n m[1][1]= 1.0 - 2.0 * (q[2] * q[2] + q[0] * q[0]);\\n m[1][2] = 2.0 * (q[1] * q[2] - q[0] * q[3]);\\n m[1][3] = 0.0;\\n \\n m[2][0] = 2.0 * (q[2] * q[0] - q[1] * q[3]);\\n m[2][1] = 2.0 * (q[1] * q[2] + q[0] * q[3]);\\n m[2][2] = 1.0 - 2.0 * (q[1] * q[1] + q[0] * q[0]);\\n m[2][3] = 0.0;\\n \\n m[3][0] = 0.0;\\n m[3][1] = 0.0;\\n m[3][2] = 0.0;\\n m[3][3] = 1.0;\\n \\n // transpose m to row major\\n return transpose(m);\\n}\",\n \"function ify( x , y , z , n )\\n {\\n \\n const c_szz = 0 ;\\n const c_sxx = 1 ;\\n const c_syy = 2 ;\\n const c_sxy = 3 ;\\n const c_sxz = 4 ;\\n const c_syz = 5 ;\\n\\n const c_ux = 6 ;\\n const c_uy = 7 ;\\n const c_uz = 8 ;\\n \\n const r_r = 1 ;\\n const r_rr = 9 ;\\n\\n\\n var x2 = ( x * x ) ;\\n var y2 = ( y * y ) ;\\n var z2 = ( z * z ) ;\\n \\n var r02 = ( x2 + y2 + z2 ) ;\\n var r0 = Math.sqrt( r02 ) ;\\n var r03 = 0 ;\\n\\n var r1 = ( z / r0 ) ;\\n var r13 = ( r1 * r1 * r1 ) ;\\n var r15 = ( r1 * r1 * r13 ) ;\\n\\n var rz = 0 ;\\n var rz2 = 0 ;\\n var rrz = 0 ;\\n \\n var if0 = 0 ;\\n var if1 = 0 ;\\n var if2 = 0 ;\\n \\n var if3 = 0 ;\\n var if4 = 0 ;\\n var if5 = 0 ;\\n var if6 = ( (3 * r15) / (2 * Math.PI) ) ;\\n \\n var r = undefined ;\\n var rr = undefined ;\\n \\n if( n ) r = new Array( r_rr ) ; else r = new Array( r_r ) ;\\n\\n rr = new Array( 1 ) ;\\n \\n rr[0] = r ;\\n\\n if( n ) \\n {\\n \\n r03 = ( r0 * r02 ) ;\\n\\n rz = ( r0 + z ) ;\\n rz2 = ( rz * rz ) ;\\n rrz = ( r0 / rz ) ;\\n\\n if0 = ( 1 - (2 * n) ) ;\\n\\n if1 = ( 3 / r02 ) ;\\n if2 = ( if0 / rz2 ) ;\\n if3 = ( (2 * r0) / rz ) ;\\n if4 = ( r13 / (2 * Math.PI) ) ;\\n if5 = ( 1 / (4 * Math.PI * r0) ) ;\\n \\n r[c_sxx] = ( if4 * (y / z) * ((if1 * x2) - (if2 * ((3 * r02) - y2 - (if3 * y2)))) ) ;\\n r[c_syy] = ( if4 * (y / z) * ((if1 * y2) - (if2 * (r02 - x2 - (if3 * x2)))) ) ;\\n \\n r[c_sxy] = ( if4 * (x / z) * ((if1 * y2) + (if2 * (r02 - y2 + (if3 * y2)))) ) ;\\n r[c_sxz] = ( if6 * ((y * x) / z2) ) ;\\n r[c_syz] = ( if6 * (y2 / z2) ) ;\\n\\n r[c_ux] = ( if5 * (((y * x) / r02) - (if0 * ((y * x) / rz2))) ) ;\\n r[c_uy] = ( if5 * (1 + (y2 / r02) + (if0 * (rrz - (y2 / rz2)))) ) ;\\n r[c_uz] = ( if5 * (((y * z) / r02) + (if0 * (y / rz))) ) ;\\n\\n }; // end if -\\n \\n r[c_szz] = ( if6 * (y / z) ) ;\\n \\n return( r ) ;\\n\\n }\",\n \"function ifz( x , y , z , n )\\n {\\n\\n const c_szz = 0 ;\\n const c_sxx = 1 ;\\n const c_syy = 2 ;\\n const c_sxy = 3 ;\\n const c_sxz = 4 ;\\n const c_syz = 5 ;\\n\\n const c_ux = 6 ;\\n const c_uy = 7 ;\\n const c_uz = 8 ;\\n\\n const r_r = 1 ;\\n const r_rr = 9 ;\\n \\n var x2 = ( x * x ) ;\\n var y2 = ( y * y ) ;\\n var z2 = ( z * z ) ;\\n var z3 = ( z * z2 ) ;\\n\\n var r00 = 0 ;\\n\\n var r02 = ( x2 + y2 + z2 ) ;\\n var r0 = Math.sqrt( r02 ) ;\\n var r03 = ( r0 * r02 ) ;\\n var r05 = ( r02 * r03 ) ;\\n var r0z = 0 ;\\n var rr0z = 0 ;\\n \\n var if0 = 0 ;\\n var if1 = ( (3 * z2) / (2 * Math.PI) ) ;\\n\\n var if2 = 0 ;\\n var if3 = 0 ;\\n var if4 = 0 ; \\n var if5 = 0 ;\\n var ifc = 0 ;\\n var ifs = 0 ;\\n\\n var ur = 0 ;\\n\\n var r = undefined ;\\n var rr = undefined ;\\n\\n if( n ) r = new Array( r_rr ) ; else r = new Array( r_r ) ;\\n\\n rr = new Array( 1 ) ;\\n \\n rr[0] = r ;\\n\\n if( n ) \\n {\\n \\n r00 = Math.sqrt( x2 + y2 ) ;\\n\\n r0z = ( r0 + z ) ;\\n rr0z = ( (2 * r0) + z ) ;\\n \\n if0 = ( 1 - (2 * n) ) ;\\n\\n if2 = ( 1 / (r0 * r0z) ) ;\\n if3 = ( rr0z / (r03 * r0z * r0z) ) ;\\n if4 = ( 1 / (4 * Math.PI * r0) ) ;\\n if5 = ( if0 / 3 ) ;\\n\\n if( r00 > 0 ) ifc = ( x / r00 ) ; else ifc = 1 ;\\n if( r00 > 0 ) ifs = ( y / r00 ) ; else ifs = 0 ;\\n\\n r[c_sxx] = ( if1 * (((x2 * z) / r05) + (if5 * (if2 - (if3 * x2) - (z / r03)))) ) ;\\n r[c_syy] = ( if1 * (((y2 * z) / r05) + (if5 * (if2 - (if3 * y2) - (z / r03)))) ) ;\\n \\n r[c_sxy] = ( if1 * (((x * y * z) / r05) - (if5 * if3 * x * y)) ) ;\\n r[c_sxz] = ( if1 * ((x * z2) / r05) ) ;\\n r[c_syz] = ( if1 * ((y * z2) / r05) ) ;\\n\\n ur = ( if4 * (((r00 * z) / r02) - ((if0 * r00) / r0z)) ) ;\\n\\n r[c_ux] = ( ifc * ur ) ;\\n r[c_uy] = ( ifs * ur ) ;\\n r[c_uz] = ( if4 * (1 + if0 + (z2 / r02)) ) ; \\n\\n }; // end if -\\n\\n r[c_szz] = ( if1 * (z3 / r05) ) ;\\n\\n return( rr ) ;\\n \\n }\",\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 = \\\"
\\\";\\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\\\";\\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\\\";\\r\\n }\\r\\n string += \\\"\\\\n\\\";\\r\\n }\\r\\n string += \\\"\\\\n
\\\\n\\\" + product + \\\"
\\\\n
\\\";\\r\\n } else {\\r\\n for (var i = 0; i < row; i++) {\\r\\n string += \\\"\\\\n\\\";\\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\\\\n\\\" + product + \\\"\\\";\\r\\n }\\r\\n string += \\\"\\\\n\\\";\\r\\n }\\r\\n string += \\\"\\\\n\\\\n
\\\\n\\\";\\r\\n }\\r\\n $(\\\"#displayMatrix1\\\").replaceWith(string);\\r\\n}\",\n \"function deCasteljau(i, j, u){\\n\\tvar points = getPoints();\\n\\tvar temp = new Array();\\n\\tfor(var i = 0 ; i < points.length ; i++){\\n\\t\\ttemp[i] = new coord(points[i].getAttribute('cx'), points[i].getAttribute('cy'));\\n\\t}\\n\\tfor(var k = 1 ; k < points.length ; k++){\\n\\t\\tfor(var i = 0 ; i < points.length-k ; i++){\\n\\t\\t\\ttemp[i].x = temp[i].x*(1-u) + temp[i+1].x*(u);\\n\\t\\t\\ttemp[i].y = temp[i].y*(1-u) + temp[i+1].y*(u);\\n\\t\\t}\\n\\t}\\n\\treturn temp[0];\\n}\",\n \"function formSimplexTableu(){\\n\\n\\t\\n\\t\\n\\tvar variables = [];\\n\\tvar objectiveFunction = [];\\n\\tvar edgeCost = 0; //length\\n\\tvar variableCount = 0;\\n\\n\\t// edges between particles and particleShadows\\n\\tfor(var i = 0; i=(particles.length+wayPointsList.length)){\\n\\t\\t\\tbVector.push(-1);\\n\\t\\t}\\n\\t\\telse{\\n\\t\\t\\tbVector.push(0);\\n\\t\\t}\\n\\t}\\n\\t\\n\\n\\t//print(tableu._data);\\n\\t//print(bVector);\\n\\t//print(objectiveFunction);\\n\\n\\tvar line1 = math.concat([0],objectiveFunction);\\n\\t//print(line1);\\n\\n\\ttableu._data = math.transpose(tableu._data);\\n\\t\\n\\ttableu._data.splice(0,0,bVector);\\n\\n\\ttableu._data = math.transpose(tableu._data);\\n\\n\\ttableu._data.splice(0,0,line1);\\n\\n\\t//print(tableu._data);\\n\\t\\n\\tminCostFlowVariables = variables;\\n\\treturn tableu._data; //simplex tableu\\n\\n\\t\\t\\n}\",\n \"function _t(t) {\\n var N,\\n L,\\n A,\\n S,\\n e,\\n c = Math.floor,\\n _ = new Array(64),\\n F = new Array(64),\\n P = new Array(64),\\n k = new Array(64),\\n y = new Array(65535),\\n v = new Array(65535),\\n Z = new Array(64),\\n w = new Array(64),\\n I = [],\\n C = 0,\\n B = 7,\\n j = new Array(64),\\n E = new Array(64),\\n M = new Array(64),\\n n = new Array(256),\\n O = new Array(2048),\\n b = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63],\\n q = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0],\\n T = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],\\n R = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125],\\n D = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250],\\n U = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0],\\n z = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],\\n H = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119],\\n W = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];\\n\\n function r(t, e) {\\n for (var n = 0, r = 0, i = new Array(), o = 1; o <= 16; o++) {\\n for (var a = 1; a <= t[o]; a++) i[e[r]] = [], i[e[r]][0] = n, i[e[r]][1] = o, r++, n++;\\n\\n n *= 2;\\n }\\n\\n return i;\\n }\\n\\n function V(t) {\\n for (var e = t[0], n = t[1] - 1; 0 <= n;) e & 1 << n && (C |= 1 << B), n--, --B < 0 && (255 == C ? (G(255), G(0)) : G(C), B = 7, C = 0);\\n }\\n\\n function G(t) {\\n I.push(t);\\n }\\n\\n function Y(t) {\\n G(t >> 8 & 255), G(255 & t);\\n }\\n\\n function J(t, e, n, r, i) {\\n for (var o, a = i[0], s = i[240], l = function (t, e) {\\n var n,\\n r,\\n i,\\n o,\\n a,\\n s,\\n l,\\n h,\\n u,\\n c,\\n f = 0;\\n\\n for (u = 0; u < 8; ++u) {\\n n = t[f], r = t[f + 1], i = t[f + 2], o = t[f + 3], a = t[f + 4], s = t[f + 5], l = t[f + 6];\\n var p = n + (h = t[f + 7]),\\n d = n - h,\\n g = r + l,\\n m = r - l,\\n y = i + s,\\n v = i - s,\\n w = o + a,\\n b = o - a,\\n x = p + w,\\n N = p - w,\\n L = g + y,\\n A = g - y;\\n t[f] = x + L, t[f + 4] = x - L;\\n var S = .707106781 * (A + N);\\n t[f + 2] = N + S, t[f + 6] = N - S;\\n\\n var _ = .382683433 * ((x = b + v) - (A = m + d)),\\n F = .5411961 * x + _,\\n P = 1.306562965 * A + _,\\n k = .707106781 * (L = v + m),\\n I = d + k,\\n C = d - k;\\n\\n t[f + 5] = C + F, t[f + 3] = C - F, t[f + 1] = I + P, t[f + 7] = I - P, f += 8;\\n }\\n\\n for (u = f = 0; u < 8; ++u) {\\n n = t[f], r = t[f + 8], i = t[f + 16], o = t[f + 24], a = t[f + 32], s = t[f + 40], l = t[f + 48];\\n var B = n + (h = t[f + 56]),\\n j = n - h,\\n E = r + l,\\n M = r - l,\\n O = i + s,\\n q = i - s,\\n T = o + a,\\n R = o - a,\\n D = B + T,\\n U = B - T,\\n z = E + O,\\n H = E - O;\\n t[f] = D + z, t[f + 32] = D - z;\\n var W = .707106781 * (H + U);\\n t[f + 16] = U + W, t[f + 48] = U - W;\\n var V = .382683433 * ((D = R + q) - (H = M + j)),\\n G = .5411961 * D + V,\\n Y = 1.306562965 * H + V,\\n J = .707106781 * (z = q + M),\\n X = j + J,\\n K = j - J;\\n t[f + 40] = K + G, t[f + 24] = K - G, t[f + 8] = X + Y, t[f + 56] = X - Y, f++;\\n }\\n\\n for (u = 0; u < 64; ++u) c = t[u] * e[u], Z[u] = 0 < c ? c + .5 | 0 : c - .5 | 0;\\n\\n return Z;\\n }(t, e), h = 0; h < 64; ++h) w[b[h]] = l[h];\\n\\n var u = w[0] - n;\\n n = w[0], 0 == u ? V(r[0]) : (V(r[v[o = 32767 + u]]), V(y[o]));\\n\\n for (var c = 63; 0 < c && 0 == w[c]; c--);\\n\\n if (0 == c) return V(a), n;\\n\\n for (var f, p = 1; p <= c;) {\\n for (var d = p; 0 == w[p] && p <= c; ++p);\\n\\n var g = p - d;\\n\\n if (16 <= g) {\\n f = g >> 4;\\n\\n for (var m = 1; m <= f; ++m) V(s);\\n\\n g &= 15;\\n }\\n\\n o = 32767 + w[p], V(i[(g << 4) + v[o]]), V(y[o]), p++;\\n }\\n\\n return 63 != c && V(a), n;\\n }\\n\\n function X(t) {\\n if (t <= 0 && (t = 1), 100 < t && (t = 100), e != t) {\\n (function (t) {\\n for (var e = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99], n = 0; n < 64; n++) {\\n var r = c((e[n] * t + 50) / 100);\\n r < 1 ? r = 1 : 255 < r && (r = 255), _[b[n]] = r;\\n }\\n\\n for (var i = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99], o = 0; o < 64; o++) {\\n var a = c((i[o] * t + 50) / 100);\\n a < 1 ? a = 1 : 255 < a && (a = 255), F[b[o]] = a;\\n }\\n\\n for (var s = [1, 1.387039845, 1.306562965, 1.175875602, 1, .785694958, .5411961, .275899379], l = 0, h = 0; h < 8; h++) for (var u = 0; u < 8; u++) P[l] = 1 / (_[b[l]] * s[h] * s[u] * 8), k[l] = 1 / (F[b[l]] * s[h] * s[u] * 8), l++;\\n })(t < 50 ? Math.floor(5e3 / t) : Math.floor(200 - 2 * t)), e = t;\\n }\\n }\\n\\n this.encode = function (t, e) {\\n var n, r;\\n new Date().getTime();\\n e && X(e), I = new Array(), C = 0, B = 7, Y(65496), Y(65504), Y(16), G(74), G(70), G(73), G(70), G(0), G(1), G(1), G(0), Y(1), Y(1), G(0), G(0), function () {\\n Y(65499), Y(132), G(0);\\n\\n for (var t = 0; t < 64; t++) G(_[t]);\\n\\n G(1);\\n\\n for (var e = 0; e < 64; e++) G(F[e]);\\n }(), n = t.width, r = t.height, Y(65472), Y(17), G(8), Y(r), Y(n), G(3), G(1), G(17), G(0), G(2), G(17), G(1), G(3), G(17), G(1), function () {\\n Y(65476), Y(418), G(0);\\n\\n for (var t = 0; t < 16; t++) G(q[t + 1]);\\n\\n for (var e = 0; e <= 11; e++) G(T[e]);\\n\\n G(16);\\n\\n for (var n = 0; n < 16; n++) G(R[n + 1]);\\n\\n for (var r = 0; r <= 161; r++) G(D[r]);\\n\\n G(1);\\n\\n for (var i = 0; i < 16; i++) G(U[i + 1]);\\n\\n for (var o = 0; o <= 11; o++) G(z[o]);\\n\\n G(17);\\n\\n for (var a = 0; a < 16; a++) G(H[a + 1]);\\n\\n for (var s = 0; s <= 161; s++) G(W[s]);\\n }(), Y(65498), Y(12), G(3), G(1), G(0), G(2), G(17), G(3), G(17), G(0), G(63), G(0);\\n var i = 0,\\n o = 0,\\n a = 0;\\n C = 0, B = 7, this.encode.displayName = \\\"_encode_\\\";\\n\\n for (var s, l, h, u, c, f, p, d, g, m = t.data, y = t.width, v = t.height, w = 4 * y, b = 0; b < v;) {\\n for (s = 0; s < w;) {\\n for (f = c = w * b + s, p = -1, g = d = 0; g < 64; g++) f = c + (d = g >> 3) * w + (p = 4 * (7 & g)), v <= b + d && (f -= w * (b + 1 + d - v)), w <= s + p && (f -= s + p - w + 4), l = m[f++], h = m[f++], u = m[f++], j[g] = (O[l] + O[h + 256 >> 0] + O[u + 512 >> 0] >> 16) - 128, E[g] = (O[l + 768 >> 0] + O[h + 1024 >> 0] + O[u + 1280 >> 0] >> 16) - 128, M[g] = (O[l + 1280 >> 0] + O[h + 1536 >> 0] + O[u + 1792 >> 0] >> 16) - 128;\\n\\n i = J(j, P, i, N, A), o = J(E, k, o, L, S), a = J(M, k, a, L, S), s += 32;\\n }\\n\\n b += 8;\\n }\\n\\n if (0 <= B) {\\n var x = [];\\n x[1] = B + 1, x[0] = (1 << B + 1) - 1, V(x);\\n }\\n\\n return Y(65497), new Uint8Array(I);\\n }, function () {\\n new Date().getTime();\\n t || (t = 50), function () {\\n for (var t = String.fromCharCode, e = 0; e < 256; e++) n[e] = t(e);\\n }(), N = r(q, T), L = r(U, z), A = r(R, D), S = r(H, W), function () {\\n for (var t = 1, e = 2, n = 1; n <= 15; n++) {\\n for (var r = t; r < e; r++) v[32767 + r] = n, y[32767 + r] = [], y[32767 + r][1] = n, y[32767 + r][0] = r;\\n\\n for (var i = -(e - 1); i <= -t; i++) v[32767 + i] = n, y[32767 + i] = [], y[32767 + i][1] = n, y[32767 + i][0] = e - 1 + i;\\n\\n t <<= 1, e <<= 1;\\n }\\n }(), function () {\\n for (var t = 0; t < 256; t++) O[t] = 19595 * t, O[t + 256 >> 0] = 38470 * t, O[t + 512 >> 0] = 7471 * t + 32768, O[t + 768 >> 0] = -11059 * t, O[t + 1024 >> 0] = -21709 * t, O[t + 1280 >> 0] = 32768 * t + 8421375, O[t + 1536 >> 0] = -27439 * t, O[t + 1792 >> 0] = -5329 * t;\\n }(), X(t), new Date().getTime();\\n }();\\n }\",\n \"function createDirectionMatrix3() {\\n\\t/*\\n\\t\\t8 1 2\\n\\t\\t7 0 3\\n\\t\\t6 5 4\\n\\t*/\\n\\tvar M = [\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t\\t[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],\\n\\t];\\n\\treturn M;\\n}\",\n \"function e$j(){return [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}\",\n \"function solve() {\\n board = Board();\\n previous = Board();\\n var u = unknowns();\\n for (;;) {\\n var v = u;\\n if (show()) {\\n put(\\\"The board is inconsistent.\\\");\\n board = null;\\n return true;\\n }\\n if (u == dim2 * dim2)\\n break;\\n uniqall();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By known value must be unique in row, column, and square.\\\");\\n continue;\\n }\\n uniqsqr();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By only one place for value in square.\\\");\\n continue;\\n }\\n uniqrow();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By only one place for value in row.\\\");\\n continue;\\n }\\n uniqcol();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By only one place for value in column.\\\");\\n continue;\\n }\\n uniqrowline();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By values in square preclude others in a row.\\\");\\n continue;\\n }\\n uniqcolline();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By values in square preclude others in a column.\\\");\\n continue;\\n }\\n uniqcolsqr();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By only one columm value in square.\\\");\\n continue;\\n }\\n uniqrowsqr();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By only one row for value in square.\\\");\\n continue;\\n }\\n pairsqr();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By pair has only two places in square.\\\");\\n continue;\\n }\\n pairrow();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By pair has only two places in row.\\\");\\n continue;\\n }\\n paircol();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By pair has only two places in column.\\\");\\n continue;\\n }\\n triplesqr();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By triple has only three places in square.\\\");\\n continue;\\n }\\n triplerow();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By triple has only three places in row.\\\");\\n continue;\\n }\\n triplecol();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By triple has only three places in column.\\\");\\n continue;\\n }\\n quadsqr();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By quad has only four places in square.\\\");\\n continue;\\n }\\n quadrow();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By quad has only four places in row.\\\");\\n continue;\\n }\\n quadcol();\\n u = unknowns();\\n if (u < v) {\\n put(\\\"By quad has only four places in column.\\\");\\n continue;\\n }\\n break;\\n }\\n put(\\\"Final board.\\\");\\n if (show()) {\\n put(\\\"The board is inconsistent.\\\");\\n board = null;\\n return true;\\n }\\n if (u > dim2 * dim2)\\n put(\\\"The board is unfinished.\\\");\\n board = null;\\n return true;\\n}\",\n \"function solveSimplex(quantDec,quantRes,choice){\\n\\t$(\\\"#inputValues\\\").hide();\\n\\n\\tvar matrizSimplex = getRestrictionValues(quantDec,quantRes); //get the values of the restriction inputs\\n\\tmatrizSimplex.push(getFunctionzValues(quantDec,quantRes)); //get the values of the functionZ inputs\\n\\n\\t// console.log(matrizSimplex);\\n\\t//quantDec = 2\\n\\t//quantRes = 4\\n\\n\\tvar allTables = [];\\n\\n\\tvar tablesCount = 0;\\n\\n\\t//condition value to stop the loop\\n\\tvar stopConditionValue = 0;\\n\\n\\t//max iterations\\n\\tvar iMax = $('#iMax').val()\\n\\tif(iMax <= 0){\\n\\t\\tiMax = 20;\\n\\t}\\n\\tconsole.log(iMax)\\n\\n\\tvar bValues = []\\n\\n\\t//uncomment to test matriz \\n\\t\\n\\t/*matrizSimplex = [[1,0,1,0,0,4],\\n\\t\\t\\t\\t\\t[0,1,0,1,0,6],\\n\\t\\t\\t\\t\\t[3,2,0,0,1,18],\\n\\t\\t\\t\\t\\t[-3,-5,0,0,0,0]] \\n\\n\\tmatrizSimplex = [[1,0,1,0,0,4],\\n\\t\\t\\t\\t[0,0,0,1,0,6],\\n\\t\\t\\t\\t[3,0,0,0,1,18],\\n\\t\\t\\t\\t[-3,-5,0,0,0,0]]*/\\n\\n\\n\\t//var matrizSimplex = [[10,12,1,0,0,0,1750],\\n\\t//[0.3,0.5,0,1,0,0,55],[0.2,0.2,0,0,1,0,30],\\n\\t//[12,17,0,0,0,1,10000],[-3.5,-5.2,0,0,0,0,0]]\\n\\n\\tstaticTblVars = staticTableVars(quantDec,quantRes);\\n\\t//initial restrictions vars on the base\\n\\tvarsOnBase = staticTblVars[0];\\n\\n\\tvarsOnHead = staticTblVars[1];\\n\\n\\n\\t//matriz dimension \\n\\tcolumnsCount = quantDec + quantRes + 1;\\n\\trowsCount = quantRes + 1 ;\\n\\n\\tfor(let i = 0 ; i < rowsCount; i++){\\n\\t\\tconsole.log(matrizSimplex[i][columnsCount-1])\\n\\t\\tbValues.push(matrizSimplex[i][columnsCount-1])\\n\\t}\\n\\n //show initial matriz\\n\\tmatrizToTable(matrizSimplex,\\\"Inicial\\\",varsOnHead,varsOnBase,rowsCount,allTables,0);\\n\\ttablesCount++\\n\\n\\t//do it while Z row has negative numbers\\n\\tdo{\\n\\n\\t\\t//find the lower number in functionZ row and its column\\n\\t\\tlowerNumberAndColumn = getLowerNumberAndColumn(matrizSimplex, rowsCount, columnsCount);\\n\\t\\tlowerNumber = lowerNumberAndColumn[0];\\n\\n\\n\\t\\tif(lowerNumber == 0){\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\tcolumnLowerNumber = lowerNumberAndColumn[1];\\n\\n\\t\\t//get the lower result of the division between last column and the lower number(functionZ) column\\n\\t\\twhoLeavesResults = whoLeavesBase(matrizSimplex, columnLowerNumber, columnsCount, rowsCount, varsOnBase);\\n\\t\\tvarsOnBase = whoLeavesResults[1];\\n\\t\\tpivoRow = whoLeavesResults[0]\\n\\t\\tpivoColumn = columnLowerNumber;\\n\\t\\tpivoValue = matrizSimplex[pivoRow][pivoColumn];\\n\\n\\n\\t\\t//get the matriz with pivo row update\\n\\t\\tmatrizSimplex = divPivoRow(matrizSimplex,columnsCount,pivoRow,pivoValue);\\n\\n\\t\\t//null all the other values on the pivo column\\n\\t\\tmatrizSimplex = nullColumnElements(matrizSimplex,pivoRow,pivoColumn,rowsCount,columnsCount);\\n\\t\\t\\n\\t\\t//funczValues receive the last row of the matriz('Z row')\\n\\t\\tfunczValues = matrizSimplex[rowsCount-1];\\n\\t\\t\\n\\t\\thasNegativeOrPositive = funczValues.some(v => v < 0);\\n\\t\\n\\t\\t//increments stop condition\\n\\t\\tstopConditionValue += 1;\\n\\n\\t\\tif(stopConditionValue == iMax){\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\n\\t\\t//show parcial matriz \\n\\t\\tif(hasNegativeOrPositive == true){\\n\\t\\t\\tmatrizToTable(matrizSimplex,\\\"Parcial\\\"+stopConditionValue,varsOnHead,varsOnBase,rowsCount,allTables,tablesCount);\\n\\t\\t\\ttablesCount++\\n\\t\\t}\\n\\n\\t}while(hasNegativeOrPositive == true);\\n\\n\\n\\tmatrizToTable(matrizSimplex,\\\"Final\\\",varsOnHead,varsOnBase,rowsCount,allTables,tablesCount);\\n\\tsenseTable(matrizSimplex,varsOnHead,varsOnBase,quantDec,bValues)\\n\\tif(choice == 1){\\n\\t\\t$(\\\".container\\\").append(allTables[stopConditionValue]);\\n\\t\\tprintResults(matrizSimplex,quantDec,quantRes,columnsCount,varsOnBase);\\n\\t}else{\\n\\t\\tfor (let i = 0 ; i < allTables.length; i++) {\\n\\t\\t\\t$(\\\".container\\\").append(allTables[i]);\\n\\t\\t}\\t\\n\\t\\tprintResults(matrizSimplex,quantDec,quantRes,columnsCount,varsOnBase);\\n\\t}\\n\\n\\t$(\\\".container\\\").append('
\\t
')\\n\\t$('body').css({\\n\\t\\t'background-color': 'rgb(46, 90, 110)'\\n\\t});\\n}\",\n \"function mursVdessin(tab, nx, pas){\\r\\n\\tfor(i = 0; i < tab.length; ++i){\\r\\n\\t\\tcoord = mursVtoCoord(tab[i], nx);\\r\\n\\t\\t\\r\\n\\t\\tpu(); rt(90); fd(coord.x*pas);\\r\\n\\t\\trt(90); fd(coord.y*pas);\\r\\n\\t\\tpd(); fd(pas); pu();\\r\\n\\t\\tbk(pas); bk(coord.y*pas);\\r\\n\\t\\tlt(90); bk(coord.x*pas); lt(90);\\r\\n\\t\\tpd();\\r\\n\\t}\\r\\n}\",\n \"function vU(a,b){this.Re=[];this.Uoa=a;this.Hna=b||null;this.jL=this.XD=!1;this.qs=void 0;this.z7=this.NPa=this.V6=!1;this.jV=0;this.Ld=null;this.a7=0}\"\n]"},"negative_scores":{"kind":"list like","value":["0.7020606","0.6763793","0.6603458","0.6518286","0.639338","0.6217922","0.61893404","0.61626405","0.6078572","0.60641336","0.60608643","0.60524166","0.6013518","0.6010743","0.6005776","0.6004182","0.59991753","0.59991753","0.59991753","0.5980806","0.59704274","0.59586406","0.593309","0.59290326","0.59290147","0.5923147","0.5921133","0.5921133","0.5904339","0.58866185","0.5869891","0.58696115","0.5844278","0.5842841","0.583614","0.58328944","0.58270454","0.58263934","0.58258045","0.58183706","0.581442","0.57986975","0.57962","0.579427","0.57820755","0.57688","0.57556343","0.57531863","0.575299","0.5748298","0.57397777","0.57374656","0.5737291","0.573613","0.5736099","0.5734669","0.5724555","0.5721652","0.5702896","0.57015646","0.57004035","0.5693812","0.5684769","0.5680591","0.5679762","0.56726766","0.56703144","0.566315","0.5661972","0.5661972","0.5653695","0.5653248","0.5644127","0.56394285","0.56359166","0.56323045","0.56274587","0.56226337","0.5622292","0.5620465","0.5617856","0.5606444","0.5606022","0.5604003","0.56019557","0.5601006","0.5587508","0.55855453","0.5583485","0.5574107","0.5570411","0.55686784","0.55539954","0.5549756","0.55482274","0.5547368","0.55449295","0.5543335","0.5543193","0.55425644","0.5541673"],"string":"[\n \"0.7020606\",\n \"0.6763793\",\n \"0.6603458\",\n \"0.6518286\",\n \"0.639338\",\n \"0.6217922\",\n \"0.61893404\",\n \"0.61626405\",\n \"0.6078572\",\n \"0.60641336\",\n \"0.60608643\",\n \"0.60524166\",\n \"0.6013518\",\n \"0.6010743\",\n \"0.6005776\",\n \"0.6004182\",\n \"0.59991753\",\n \"0.59991753\",\n \"0.59991753\",\n \"0.5980806\",\n \"0.59704274\",\n \"0.59586406\",\n \"0.593309\",\n \"0.59290326\",\n \"0.59290147\",\n \"0.5923147\",\n \"0.5921133\",\n \"0.5921133\",\n \"0.5904339\",\n \"0.58866185\",\n \"0.5869891\",\n \"0.58696115\",\n \"0.5844278\",\n \"0.5842841\",\n \"0.583614\",\n \"0.58328944\",\n \"0.58270454\",\n \"0.58263934\",\n \"0.58258045\",\n \"0.58183706\",\n \"0.581442\",\n \"0.57986975\",\n \"0.57962\",\n \"0.579427\",\n \"0.57820755\",\n \"0.57688\",\n \"0.57556343\",\n \"0.57531863\",\n \"0.575299\",\n \"0.5748298\",\n \"0.57397777\",\n \"0.57374656\",\n \"0.5737291\",\n \"0.573613\",\n \"0.5736099\",\n \"0.5734669\",\n \"0.5724555\",\n \"0.5721652\",\n \"0.5702896\",\n \"0.57015646\",\n \"0.57004035\",\n \"0.5693812\",\n \"0.5684769\",\n \"0.5680591\",\n \"0.5679762\",\n \"0.56726766\",\n \"0.56703144\",\n \"0.566315\",\n \"0.5661972\",\n \"0.5661972\",\n \"0.5653695\",\n \"0.5653248\",\n \"0.5644127\",\n \"0.56394285\",\n \"0.56359166\",\n \"0.56323045\",\n \"0.56274587\",\n \"0.56226337\",\n \"0.5622292\",\n \"0.5620465\",\n \"0.5617856\",\n \"0.5606444\",\n \"0.5606022\",\n \"0.5604003\",\n \"0.56019557\",\n \"0.5601006\",\n \"0.5587508\",\n \"0.55855453\",\n \"0.5583485\",\n \"0.5574107\",\n \"0.5570411\",\n \"0.55686784\",\n \"0.55539954\",\n \"0.5549756\",\n \"0.55482274\",\n \"0.5547368\",\n \"0.55449295\",\n \"0.5543335\",\n \"0.5543193\",\n \"0.55425644\",\n \"0.5541673\"\n]"},"document_score":{"kind":"string","value":"0.0"},"document_rank":{"kind":"string","value":"-1"}}},{"rowIdx":81571,"cells":{"query":{"kind":"string","value":"it causes some flicker when reloading or navigating grid it may be possible to have some custom formatter to do this as the grid is being created to prevent this or go back to default browser checkbox styles for the grid"},"document":{"kind":"string","value":"function styleCheckbox(table) {\n\t /**\n\t $(table).find('input:checkbox').addClass('ace')\n\t .wrap('