language: Icon (iconc 9.4.3)
date: 852 days 8 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Turn out the lights Level Maker</title>
 
    <script language="javascript" type="text/javascript">
    
    var allbuttons=new Array();
    allbuttons = ["btn0","btn1","btn2","btn3","btn4","btn5","btn6","btn7","btn8","btn9","btn10","btn11","btn12","btn13","btn14","btn15"];
    var currentlevel=1;
    var maxlevel=3;
    var counter=0;
    var levellist='';
    var time;
    
   
    function turnalloff()
    {
         for (x=0;x<=15;x=x+1)
        {
           var btn = document.getElementById(allbuttons[x]);
           btn.style.backgroundImage='url(lightoffsm.png)';
        }
    }
    
    function savelevel()
    {
    
    }
 
    function change(buttonlist)
    {    
        for (x=0;x<=buttonlist.split(",").length-1;x=x+1)
        {
        var btn = document.getElementById(buttonlist.split(",")[x]);
            if (btn.style.backgroundImage.search('lightoffsm.png') == -1)
            {        
            btn.style.backgroundImage='url(lightoffsm.png)';
            }
            else
            {btn.style.backgroundImage='url(lightonsm.png)';}        
        }
        if (didtheymakeit()=='yes')
        {
        alert('Nice dude, I am so proud of you.');
        currentlevel += 1
            if (currentlevel <= maxlevel)
            {
            startlevel(currentlevel);            
            }
            else
            {
            alert('You totally kicked my butt.\nI am done.');
            currentlevel=1;
            btnReset.value="play again";
            }
        }
    }  
    
  
    
    </script>
 
</head>
<body style="margin: 0px; background-color: Black" onload='turnalloff()'>
    <div style="width: 320px;">
        <div id="column1" style="position: absolute; left: 0px; display: inline">
            <div id="div0" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn0" onclick='change("btn0,btn1,btn4")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0" value="" />
            </div>
            <div id="div4" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn4" onclick='change("btn0,btn4,btn5,btn8")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div8" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn8" onclick='change("btn4,btn8,btn9,btn12")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div12" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn12" onclick='change("btn8,btn12,btn13")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
        </div>
        <div id="column2" style="position: absolute; left: 81px; top: 0px; display: inline;">
            <div id="div1" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn1" onclick='change("btn0,btn1,btn2,btn5")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div5" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn5" onclick='change("btn4,btn1,btn5,btn6,btn9")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div9" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn9" onclick='change("btn8,btn9,btn10,btn5,btn13")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div13" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn13" onclick='change("btn14,btn12,btn13,btn9")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
        </div>
        <div id="column3" style="position: absolute; left: 161px; top: 0px; display: inline;">
            <div id="div2" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn2" onclick='change("btn1,btn2,btn3,btn6")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div6" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn6" onclick='change("btn2,btn6,btn5,btn7,btn10")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div10" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn10" onclick='change("btn9,btn10,btn11,btn6,btn14")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div14" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn14" onclick='change("btn13,btn14,btn15,btn10")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
        </div>
        <div id="column4" style="position: absolute; left: 241px; top: 0px; display: inline;">
            <div id="div3" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn3" onclick='change("btn3,btn2,btn7")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div7" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn7" onclick='change("btn3,btn6,btn7,btn11")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div11" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn11" onclick='change("btn10,btn11,btn7,btn15")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
            <div id="div15" style="width: 78px; height: 78px; border: solid 2px #262626;">
                <input type="submit" id="btn15" onclick='change("btn14,btn15,btn11")' style="background-image: url(lightonsm.png);
                    width: 78px; height: 78px; border-width: 0;" value="" />
            </div>
        </div>
  </div>
  <div style="display:block;top:330px; position:absolute; color:#ffffff;" id = "divControls">
          <input id="btnReset" type="submit" onclick="turnalloff()" value="reset level" />
      <input id="btnShow" type="submit" onclick="writelevel()" value="show level" />
        <input type="text" id="txtlevel" value ="" />
           </div>
 
</body>
</html>
 
Translating:
prog.icn:
File prog.icn; Line 1 # "<": invalid declaration
File prog.icn; Line 69 # unclosed quote
File prog.icn; Line 70 # unclosed quote
File prog.icn; Line 73 # unclosed quote
File prog.icn; Line 74 # unclosed quote
File prog.icn; Line 77 # unclosed quote
File prog.icn; Line 78 # unclosed quote
File prog.icn; Line 81 # unclosed quote
File prog.icn; Line 82 # unclosed quote
File prog.icn; Line 87 # unclosed quote
File prog.icn; Line 88 # unclosed quote
File prog.icn; Line 91 # unclosed quote
File prog.icn; Line 92 # unclosed quote
File prog.icn; Line 95 # unclosed quote
File prog.icn; Line 96 # unclosed quote
File prog.icn; Line 99 # unclosed quote
File prog.icn; Line 100 # unclosed quote
File prog.icn; Line 105 # unclosed quote
File prog.icn; Line 106 # unclosed quote
File prog.icn; Line 109 # unclosed quote
File prog.icn; Line 110 # unclosed quote
File prog.icn; Line 113 # unclosed quote
File prog.icn; Line 114 # unclosed quote
File prog.icn; Line 117 # unclosed quote
File prog.icn; Line 118 # unclosed quote
File prog.icn; Line 123 # unclosed quote
File prog.icn; Line 124 # unclosed quote
File prog.icn; Line 127 # unclosed quote
File prog.icn; Line 128 # unclosed quote
File prog.icn; Line 131 # unclosed quote
File prog.icn; Line 132 # unclosed quote
File prog.icn; Line 135 # unclosed quote
File prog.icn; Line 136 # unclosed quote
33 errors