OpenCores
URL https://opencores.org/ocsvn/cpu8080/cpu8080/trunk

Subversion Repositories cpu8080

[/] [cpu8080/] [trunk/] [project/] [cpu8080_html/] [fit/] [topnav.js] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 samiam9512
function popWin(url) {
2
  var win = window.open(url, 'win',
3
              'location=yes,directories=yes,menubar=yes,toolbar=yes,status=yes,scrollbars=yes,resizable=yes,width=800,height=600');
4
  win.focus();
5
}
6
 
7
function openTab(type, device) {
8
  var url = rootURL;
9
  switch (type) {
10
    case 0: url = rootURL; break;
11
    case 1:
12
      if (device.indexOf('XC2') != -1) url += prodURL + xbrURL;
13
      else if (device.indexOf('XA2') != -1) url += prodURL + acr2URL;
14
      else if (device.indexOf('XCR3') != -1) url += prodURL + xpla3URL;
15
      else if (device.indexOf('XV') != -1) url += prodURL + xc9500xvURL;
16
      else if (device.indexOf('XL') != -1) url += prodURL + xc9500xlURL;
17
      else if (device.indexOf('XA') != -1) url += prodURL + xa9500xlURL;
18
      else url += prodURL + xc9500URL;
19
      break;
20
    case 2: url += marketURL; break;
21
    case 3: url = supportURL; break;
22
    case 4: url += educationURL; break;
23
    case 5: url = buyURL; break;
24
    case 6: url += contactURL; break;
25
    case 7: url += searchURL; break;
26
    default: url = rootURL;
27
  }
28
 
29
  popWin(url);
30
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.