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

Subversion Repositories cpu8080

[/] [cpu8080/] [trunk/] [project/] [cpu8080_html/] [fit/] [errors.js] - Blame information for rev 3

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 samiam9512
var infoList = new Array();
2
var warnList = new Array();
3
var errorList = new Array();
4
 
5
function updateError(type) {
6
  with (document.options) {
7
    switch (type) {
8
    case 0:
9
      if (info.checked) parent.leftnav.document.options.info.value = 1;
10
      else              parent.leftnav.document.options.info.value = 0;
11
      break;
12
 
13
    case 1:
14
      if (warn.checked) parent.leftnav.document.options.warn.value = 1;
15
      else              parent.leftnav.document.options.warn.value = 0;
16
      break;
17
 
18
    case 2:
19
      if (error.checked) parent.leftnav.document.options.error.value = 1;
20
      else               parent.leftnav.document.options.error.value = 0;
21
      break;
22
    }
23
  }
24
 
25
  parent.leftnav.showError();
26
}
27
 
28
function init() {
29
  if (!document.options) return;
30
  with (document.options) {
31
    if (parent.leftnav.document.options.info.value == 1)  info.checked = 1;
32
    else                                                  info.checked = 0;
33
    if (parent.leftnav.document.options.warn.value == 1)  warn.checked = 1;
34
    else                                                  warn.checked = 0;
35
    if (parent.leftnav.document.options.error.value == 1) error.checked = 1;
36
    else                                                  error.checked = 0;
37
 
38
  }
39
}
40
 
41
function showError(url) { parent.leftnav.showErrorLink(url); }

powered by: WebSVN 2.1.0

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