5HT 5 years ago
parent
commit
e2a30cf8fb
6 changed files with 37 additions and 57 deletions
  1. 1 1
      include/mad.hrl
  2. 1 1
      index.html
  3. 1 1
      make.bat
  4. 16 28
      priv/nitro/priv/static/index.htm
  5. 17 25
      priv/nitro/priv/static/login.htm
  6. 1 1
      src/mad_man.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"6.8.0-14-gd5a433b").
+-define(VERSION, "301c09").

+ 1 - 1
index.html

@@ -31,7 +31,7 @@
                 VER 5.4 4.11 4.10
             </div>
 
-        </div></section>
+        </section>
     </article>
 </aside><main>
     <section>

+ 1 - 1
make.bat

@@ -5,4 +5,4 @@ FOR /F "delims==" %%I IN ('git rev-parse HEAD ^| head -c 6') DO (
 )
 @echo on
 escript.exe mad cle dep com bun mad
-pause
+

+ 16 - 28
priv/nitro/priv/static/index.htm

@@ -1,40 +1,28 @@
 <html>
-
 <head>
-    <meta charset="utf-8">
-    <meta http-equiv="x-ua-compatible" content="ie=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    <link href='synrc.css' type='text/css' rel='stylesheet'>
+    <meta charset="utf-8"/>
+    <meta http-equiv="x-ua-compatible" content="ie=edge"/>
+    <meta name="viewport" content="width=device-width, initial-scale=1"/>
+    <link href='synrc.css' type="text/css" rel='stylesheet'/>
     <title>Chat</title>
 </head>
-
 <body class="chat">
-    <header>
-        <a href="/app/login.htm"><img src="https://n2o.space/img/Synrc%20Neo.svg"></a>
-        <h2 id=heading>room</h2>
-        <button id=logout>logout</button>
-    </header>
-    <main>
-        <form>
-            <textarea id=message rows='4' autofocus placeholder="Just type what you think about this"></textarea>
-            <button id=upload>Browse</button>
-            <button id=send>chat</button>
-        </form>
-        <history id="history">
-        </history>
-
-    </main>
+    <header><a href="/app/login.htm"><img src="https://n2o.space/img/Synrc%20Neo.svg"/></a>
+            <h2 id="heading">room</h2>
+            <button id="logout">logout</button></header>
+      <main><form><textarea id="message" rows='4' autofocus="true" placeholder="Just type what you think about this"></textarea>
+                  <button id="upload">Browse</button>
+                  <button id="send">chat</button></form>
+            <history id="history"></history></main>
     <script src='https://ws.n2o.space/priv/utf8.js'></script>
     <script src='https://ws.n2o.space/priv/bert.js'></script>
     <script src='https://ws.n2o.space/priv/heart.js'></script>
     <script src='https://ws.n2o.space/priv/ieee754.js'></script>
     <script src='https://ws.n2o.space/priv/n2o.js'></script>
-        <script>host = location.hostname === 'sample.n2o.space' ? 'ns.synrc.com' : location.hostname;
-               port = 8001;</script>
-        <script src='https://ws.n2o.space/priv/ftp.js'></script>
-        <script src='https://ws.n2o.space/priv/nitro.js'></script>
-        <script>$io.do = function(r) { console.log(r); };</script>
-        <script>protos = [$bert]; N2O_start();</script>
+    <script>host = location.hostname === 'sample.n2o.space' ? 'ns.synrc.com' : location.hostname; port = 8001;</script>
+    <script src='https://ws.n2o.space/priv/ftp.js'></script>
+    <script src='https://ws.n2o.space/priv/nitro.js'></script>
+    <script>$io.do = function(r) { console.log(r); };</script>
+    <script>protos = [$bert]; N2O_start();</script>
 </body>
-
 </html>

+ 17 - 25
priv/nitro/priv/static/login.htm

@@ -1,37 +1,29 @@
 <html>
-
 <head>
-    <meta charset="utf-8">
-    <meta http-equiv="x-ua-compatible" content="ie=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    <link href='synrc.css' type='text/css' rel='stylesheet'>
+    <meta charset="utf-8"/>
+    <meta http-equiv="x-ua-compatible" content="ie=edge"/>
+    <meta name="viewport" content="width=device-width, initial-scale=1"/>
+    <link href='synrc.css' type='text/css' rel='stylesheet'/>
     <title>Login</title>
 </head>
-
 <body class="login">
-    <header>
-        <a href="index.htm">
-        <img src="https://n2o.space/img/Synrc%20Neo.svg" style="margin-bottom:40px;"></a>
-    </header>
-    <form>
-        <label for="user">Choose Nickname:</label>
-        <input type="text" id="user" autofocus>
-        <label for="pass">Join or Create Channel:</label>
-        <input type="text" id="pass">
-        <button id="loginButton">login</button>
-    </form>
+    <header><a href="index.htm">
+            <img src="https://n2o.space/img/Synrc%20Neo.svg"
+               style="margin-bottom:40px;"/></a></header>
+      <form><label for="user">Choose Nickname:</label>
+            <input type="text" id="user" autofocus="true"/>
+            <label for="pass">Join or Create Channel:</label>
+            <input type="text" id="pass"/>
+            <button id="loginButton">login</button></form>
     <footer>Brought to you with ♡ by N2O developers.</footer>
-
     <script src='https://ws.n2o.space/priv/utf8.js'></script>
     <script src='https://ws.n2o.space/priv/bert.js'></script>
     <script src='https://ws.n2o.space/priv/heart.js'></script>
     <script src='https://ws.n2o.space/priv/n2o.js'></script>
-        <script>host = location.hostname === 'sample.n2o.space' ? 'ns.synrc.com' : location.hostname;
-               port = 8001;</script>
-        <script src='https://ws.n2o.space/priv/ftp.js'></script>
-        <script src='https://ws.n2o.space/priv/nitro.js'></script>
-        <script>protos = [$bert]; N2O_start();</script>
-
+    <script>host = location.hostname === 'sample.n2o.space' ?
+  'ns.synrc.com' : location.hostname; port = 8001;</script>
+    <script src='https://ws.n2o.space/priv/ftp.js'></script>
+    <script src='https://ws.n2o.space/priv/nitro.js'></script>
+    <script>protos = [$bert]; N2O_start();</script>
 </body>
-
 </html>

+ 1 - 1
src/mad_man.erl

@@ -53,7 +53,7 @@ fix([Prefix]) -> Prefix;
 fix([_Prefix,Name|_Rest]) -> Name.
 check(Filename) ->
    try _ = xmerl_scan:file(Filename), {ok,Filename} catch E:R ->
-   io:format("man: ~p error: ~p~n",[Filename,{E,R}]), {error,Filename} end.
+   io:format("man: ~p error: ~p~n",[Filename, case R of function_clause -> erlang:get_stacktrace(); _ -> R end]), {error,Filename} end.
 
 generate(Lower,Temp) ->
     Name = string:to_upper(Lower),