github.com/StackExchange/DNSControl@v0.2.8/docs/js.md (about)

     1  ---
     2  layout: default
     3  title: JavaScript DSL
     4  ---
     5  
     6  # Javascript DSL
     7  
     8  DNSControl uses javascript as its primary input language to provide power and flexibility to configure your domains. The ultimate purpose of the javascript is to construct a
     9  [DNSConfig](https://godoc.org/github.com/StackExchange/dnscontrol/models#DNSConfig) object that will be passed to the go backend and operated on.
    10  
    11  {% include funcList.md title="Top Level Functions" dir="global" %}
    12  
    13  {% include funcList.md title="Domain Modifiers" dir="domain" %}
    14  
    15  {% include funcList.md title="Record Modifiers" dir="record" %}
    16  
    17  <script>
    18      $(function(){
    19          var f = function(){
    20              $("div.panel").removeClass("panel-success")
    21              var jmp = window.location.hash;
    22              if(jmp){
    23                  $("div"+jmp).addClass("panel-success")
    24              }
    25          }
    26          f();
    27          $(window).on('hashchange',f);
    28      })
    29  </script>