简体   繁体   English

我对此代码感到奇怪。 HTML JAVASCRIPT

[英]I'm curious about this code something strange. HTML JAVASCRIPT

I'm got a code right now from Mikrotik router and it was template, I'm having a problem I can't understand the calling of variables. 我现在从Mikrotik路由器那里收到了一个代码,它是模板,我遇到了一个我无法理解变量调用的问题。 Can someone explain this code? 有人可以解释此代码吗? I mean the getting of variables or maybe what programming language did they use. 我的意思是获取变量或使用什么编程语言。

EDIT: ADDED WHOLE HTML CODE 编辑:添加了完整的HTML代码

<!DOCTYPE html>
<html lang="en">
<head>
<title>Mikrotik Hotspot | Session Status</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
</head>
<body>
<div id="wrap">
<div class="navbar navbar-inverse navbar-static-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">$(identity)</a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="login">Login</a></li>
                <li class="active"><a href="#">Status</a></li>
                <li><a href="logout?erase-cookie=true">Logout</a></li>
            </ul>
        </div>
    </div>
   </div>

   <div id="bottom-menu">
    <div class="container">
        <div class="row">
            <div class="col-md-2 mylogo">
                <a href="http://agratitudesign.blogspot.com/" ref="index.html"><img src="img/agratitudesignlogo2.png" alt="logo"></a>
            </div> 
            <div class="col-xs-10 textlogo">
                <h1>Agratitudesign Hotspot</h1>
            </div>
        </div>
    </div>
</div>

<div class="container">
    <div class="col-md-6 col-sm-12">        
        <div class="row">
            $(if error)
                <div class="alert alert-danger">$(error)</div>
            $(endif)

            $(if login-by == 'trial')
                <div class="alert alert-info">Welcome trial user!</div>
            $(elif login-by != 'mac')
                <div class="alert alert-info">Welcome $(username)!</div>
            $(endif)
        </div>        
        <div class="row">
            <div class="panel panel-default">
                <div class="panel-body">

                    <table class="table table-striped">
                        <tbody>
                        <tr>
                            <td>IP address:</td>
                            <td>$(ip)</td>
                        </tr>
                        <tr>
                            <td>bytes up/down</td>
                            <td>$(bytes-in-nice) / $(bytes-out-nice)</td>
                        </tr>
                        $(if session-time-left)
                        <tr>
                            <td>connected / left:</td>
                            <td>$(uptime) / $(session-time-left)</td>

                        </tr>
                        $(else)
                        <tr>
                            <td>connected:</td>
                            <td>$(uptime)</td>
                        </tr>
                        $(endif)
                        $(if refresh-timeout)
                        <tr>
                            <td>status refresh</td>
                            <td>$(refresh-timeout)</td>
                            $(endif)
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>    
    <div class="col-md-6 col-sm-12">
        <div class="panel panel-default">
            <div class="panel-body">

                <div class="card hovercard">
                    <div class="cardheader">
                    </div>
                    <div class="avatar">
                    <img alt="" src="img/agratitudesignlogo.png">
                    </div>
                    <div class="info">
                    <div class="title">
                    <a href="http://agratitudesign.blogspot.com/">Agratitudesign HighSpeed Hotspot</a>
                     </div>
                     <div class="desc">Website Hotspot Interface For Free</div>
                     <div class="desc">created by <a target="_blank" href="http://agratitudesign.blogspot.com/" title="Agratitudesign Hotspot Templates">agratitudesign.blogspot.com</a></div>
                    <div class="desc">supported by <a target="_blank" href="http://wiswaweb.com/" title="Agratitudesign Hotspot Templates">wiswaweb.com</a></div>
                    </div>
                    <div class="bottom">
                    <a class="btn btn-primary btn-twitter btn-sm" href="https://twitter.com/agratitudesign"><i class="fa fa-twitter"></i></a>
                    <a class="btn btn-danger btn-sm" rel="publisher" href="https://plus.google.com/+KetutAgusSuardika"><i class="fa fa-google-plus"></i></a>
                    <a class="btn btn-primary btn-sm" rel="publisher" href="https://www.facebook.com/pages/Agratitudesign/451131721572773"><i class="fa fa-facebook"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

  <div id="footer">
  <div class="container">
     <p class="text-muted">Powered by <a href="http://agratitudesign.blogspot.com/">Agratitudesign</a></p>
  </div>
 </div>

 <script src="js/jquery.min.js"></script>
 <script src="js/bootstrap.min.js"></script>

 </body>
 </html>

Thank you. 谢谢。

I didn't understand that of the Microtik you are saying... By the way, if you check their wiki you can find that: 我不明白您说的是Microtik ...顺便说一句,如果您查看他们的Wiki,您会发现:

Here an example like the one you got http://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot 这是一个示例,例如您获得的示例http://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我对 JavaScript 组合很好奇 - I'm curious about the JavaScript combination 好奇的javascript解析,甚至只返回节点。:我在这段代码中做错了什么? - Curious javascript parsing, only returns even nodes.: What I'm doing wrong in this code? 对这个 JavaScript Map 函数感到好奇 - Curious about this JavaScript Map function JavaScript 中链表的这个 pop() 方法是否正确? 它有效,但我很好奇我是否使用正确的方法 - Is this pop() method for linked list in JavaScript correct? It works but I'm curious that if I use the correct method or not 基本的Javascript HTML表单-OnClick无法正常工作(我确定这很明显吗?) - Basic Javascript HTML form - OnClick not working (I'm sure it's something obvious?) 我正在尝试在浏览器中制作 javascript 绘图程序,但事情未对齐。 我的代码有问题吗? - I'm trying to make a javascript drawing program within the browser and things are misaligned. Is there something wrong with my code? 我正在学习更多JavaScript,我想对这段代码有所了解 - I'm learning more of JavaScript and I want to have some idea about this code 关于Java代码创建的HTML代码的问题 - Problem About HTML Code Created By Javascript Code 关于Java原型的一些知识 - Something about prototype in Javascript 对有关脚本标记类型属性的特殊JavaScript问题感到好奇 - Curious about peculiar JavaScript issue regarding script tag type attribute
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM