- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for if (0.11 sec)
-
misc/chrome/gophertool/gopher.js
var gerritChangeIdRE = /^I[0-9a-f]{4,40}$/; // e.g. Id69c00d908d18151486007ec03da5495b34b05f5 var pkgRE = /^[a-z0-9_\/]+$/; function urlForInput(t) { if (!t) { return null; } if (numericRE.test(t)) { if (t < 150000) { // We could use the golang.org/cl/ handler here, but // avoid some redirect latency and go right there, since
JavaScript - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sat Jul 11 14:36:33 GMT 2015 - 1.2K bytes - Viewed (0) -
misc/chrome/gophertool/popup.js
var box = document.getElementById("inputbox"); box.focus(); var t = box.value; if (t == "") { return false; } var success = function(url) { console.log("matched " + t + " to: " + url) box.value = ""; openURL(url); return false; // cancel form submission }; var url = urlForInput(t); if (url) { return success(url); } console.log("no match for text: " + t)
JavaScript - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Oct 21 17:05:21 GMT 2012 - 1020 bytes - Viewed (0) -
misc/wasm/wasm_exec.js
const f = this.mem.getFloat64(addr, true); if (f === 0) { return undefined; } if (!isNaN(f)) { return f; } const id = this.mem.getUint32(addr, true); return this._values[id]; } const storeValue = (addr, v) => { const nanHead = 0x7FF80000; if (typeof v === "number" && v !== 0) { if (isNaN(v)) {
JavaScript - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon May 22 17:47:47 GMT 2023 - 16.3K bytes - Viewed (1) -
misc/chrome/gophertool/background.js
chrome.omnibox.onInputEntered.addListener(function(t) { var url = urlForInput(t); if (url) { chrome.tabs.query({ "active": true, "currentWindow": true }, function(tab) { if (!tab) return; chrome.tabs.update(tab.id, { "url": url, "selected": true }); }); }
JavaScript - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Nov 18 18:14:37 GMT 2019 - 286 bytes - Viewed (0) -
misc/wasm/wasm_exec_node.js
go.exit = process.exit; WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => { process.on("exit", (code) => { // Node.js exits if no event handler is pending if (code === 0 && !go.exited) { // deadlock, make Go print error and stack traces go._pendingEvent = { id: 0 }; go._resume(); } }); return go.run(result.instance); }).catch((err) => {
JavaScript - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Jan 30 18:49:42 GMT 2023 - 1.1K bytes - Viewed (0)