:orphan:

Code Browser: simplelogin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. raw:: html

    <style>
    .ap { color: black; text-decoration: none; } 
    /*  Visual Studio-like style based on original C# coloring by Jason Diamond <jason@diamond.name>  */
    .hljs {   display: block;   overflow-x: auto;   padding: 0.5em;   background: white;   color: black; }  .hljs-comment, .hljs-quote, .hljs-variable {   color: #008000; }  .hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-name, .hljs-tag {   color: #00f; }  .hljs-string, .hljs-title, .hljs-section, .hljs-attribute, .hljs-literal, .hljs-template-tag, .hljs-template-variable, .hljs-type, .hljs-addition {   color: #a31515; }  .hljs-deletion, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-meta {   color: #2b91af; }  .hljs-doctag {   color: #808080; }  .hljs-attr {   color: #f00; }  .hljs-symbol, .hljs-bullet, .hljs-link {   color: #00b0e8; }   .hljs-emphasis {   font-style: italic; }  .hljs-strong {   font-weight: bold; }
    </style>
    <script>
    function makeHttpObject() {
      try {
        return new XMLHttpRequest();
      } catch (error) {
      }
      try {
        return new ActiveXObject("Msxml2.XMLHTTP");
      } catch (error) {
      }
      try {
        return new ActiveXObject("Microsoft.XMLHTTP");
      } catch (error) {
      }
      throw new Error("Could not create HTTP request object.");
    }

    function simpleHttpRequest(url, success, failure) {
      var request = makeHttpObject();
      request.open("GET", url, true);
      request.send(null);
      request.onreadystatechange = function() {
        if (request.readyState == 4 ) {
          if( request.status == 200) {
            success(request.responseText);
          } else if( failure ) {
            failure(request.status, request.statusText);
          } else {
              console.log("failure to download '"+url+"'\nStatus code" + request.status + ", " + request.statusText)
          }
        }
      };
    }

    function loadfile(name) {
      baseurl="http://downloads.gvsig.org/download/web/scriptcatalog/source/packages"
      console.log(window.location.path)
      url=baseurl +"/" + name
      tag_filename = document.getElementById("filename")
      tag_filename.innerHTML = name
      tag_filename.href = "code_browser.html?" + name
      simpleHttpRequest(
        url,
        function(text) {
          //console.log("download ok")
          var result = hljs.highlightAuto(text);
          tag_code = document.getElementById("code")
          tag_code.innerHTML = result.value
          add_line_numbers(tag_code)
        }
      )
      document.getElementById("codebrowser").style.display = 'none'
    }
    function toggleCodeBrowser() {
      tag = document.getElementById('codebrowser')
        if( tag.style.display == "none" ) {
          tag.style = "display: block; position: absolute; background-color: #f9f9f9; min-width: 360px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; "
        } else {
          tag.style.display = 'none'
        }
    }
    function add_line_numbers(el) {
      var lines = el.innerHTML.split('\n');
      el.style.position = "relative";
      el.style.padding = "0";
      if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) // Chrome cuts off 3 digit line numbers on the left
        var new_contents = "<ol style='margin-left: .5em'>"; // if we don't add a .5em margin
      else
        var new_contents = "<ol>";
      for(var i=0; i<lines.length; i++) {
        new_contents += "<li><pre style='display: inline; border-width: 0px; padding: 0px;'>"+lines[i]+"</pre></li>";
      }
      new_contents += "</ol>";
      el.innerHTML = new_contents;
    }
    </script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script>
    <div>
      <button onclick="toggleCodeBrowser()">Select source</button>
      <div width="200" id="codebrowser" >
        <ul>
    <li><a class="ap" href="javascript:void(0);"onclick="loadfile('simplelogin/simplelogin/__init__.py')">simplelogin/__init__.py</a></li>
    <li><a class="ap" href="javascript:void(0);"onclick="loadfile('simplelogin/simplelogin/autorun.py')">simplelogin/autorun.py</a></li>
    <li class="ap">simplelogin/images/doc/login.png</li>
    <li class="ap">simplelogin/images/doc/showactions.png</li>
    <li class="ap">simplelogin/images/doc/showgeoprocess.png</li>
    <li class="ap">simplelogin/images/loginBackground.png</li>
    <li class="ap">simplelogin/images/loginBackground_Green_640x400.png</li>
    <li class="ap">simplelogin/images/loginBackground_Ukapina_640x400.png</li>
    <li class="ap">simplelogin/images/loginBackground_Ulwaskin_640x400.png</li>
    <li><a class="ap" href="javascript:void(0);"onclick="loadfile('simplelogin/simplelogin/logindialog.py')">simplelogin/logindialog.py</a></li>
    <li><a class="ap" href="javascript:void(0);"onclick="loadfile('simplelogin/simplelogin/logindialog.xml')">simplelogin/logindialog.xml</a></li>
    <li><a class="ap" href="javascript:void(0);"onclick="loadfile('simplelogin/simplelogin/package.info')">simplelogin/package.info</a></li>
    <li><a class="ap" href="javascript:void(0);"onclick="loadfile('simplelogin/simplelogin/package.rst')">simplelogin/package.rst</a></li>
    <li><a class="ap" href="javascript:void(0);"onclick="loadfile('simplelogin/simplelogin/simplemanager.py')">simplelogin/simplemanager.py</a></li>
    <li><a class="ap" href="javascript:void(0);"onclick="loadfile('simplelogin/simplelogin/users_db/guest.properties')">simplelogin/users_db/guest.properties</a></li>
    <li><a class="ap" href="javascript:void(0);"onclick="loadfile('simplelogin/simplelogin/users_db/user01.properties')">simplelogin/users_db/user01.properties</a></li>

          </ul>
        </div>
        <a style="color: black; text-decoration: none;" id="filename" href=""></a>
        <a onclick="window.prompt('To copy the address to the clipboard press Ctrl-C and ENTER      ', document.getElementById('filename').href)"><img style="cursor: pointer;" src="../../../../link.png" title="Link to this page"/></a>
      </div>
      <pre>
        <code id="code">
        



























        </code>
      </pre>
      <script>
      function main() {
        var urlHack = document.createElement('a');
        urlHack.href = window.location.href
        search=urlHack.search.substr(1) // Quitamos el ?
        if( search!="" ) {
          loadfile(search)
        }
      }
      main()
      </script>