Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for function (0.14 sec)

  1. misc/chrome/gophertool/popup.js

    function openURL(url) {
      chrome.tabs.create({ "url": url })
    }
    
    function addLinks() {
      var links = document.getElementsByTagName("a");
      for (var i = 0; i < links.length; i++) {
        var url = links[i].getAttribute("url");
        if (url)
          links[i].addEventListener("click", function () {
            openURL(this.getAttribute("url"));
          });
      }
    }
    
    window.addEventListener("load", function () {
      addLinks();
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Oct 21 17:05:21 GMT 2012
    - 1020 bytes
    - Viewed (0)
  2. misc/chrome/gophertool/gopher.js

    var commitRE = /^(?:\d+:)?([0-9a-f]{6,40})$/; // e.g "8486:ab29d2698a47" or "ab29d2698a47"
    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
    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)
  3. misc/wasm/wasm_exec.js

    					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
    					// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
    					// This changes the SP, thus we have to update the SP used by the imported function.
    
    					// func wasmExit(code int32)
    					"runtime.wasmExit": (sp) => {
    						sp >>>= 0;
    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)
  4. 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)
Back to top