itkach / aard2-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web UI page not work

sklart opened this issue · comments

After command

java -Dslobber.browse=true -jar aard2-web-0.3.jar d:\Documents\YandexDisk\slob\*.slob

web UI page is shown as

<html>
  <head>
    <title>
      Aard 2
    </title>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <script src="jquery-2.1.1.min.js"></script>
    <script src="script.js"></script>
    <script src="/styleswitcher.js"></script>
  </head>
  <body>

    <div class="horizontal">

      <div id="lookup-container" class="vertical">
        <div id="top-link-container" align="center">
          <a id="dict-link" href="#">Dictionaries</a>
        </div>
        <div id="word-container" class="horizontal">
          <input id="word"
                 name="word"
                 placeholder="Lookup..."
                 type="search"
                 autocomplete="off"
                 autofocus>
          <a id="random-link" href="#">&#x2685;</a>
        </div>
        <div id="lookup-result"></div>
      </div>

      <div id="content-container" class="vertical">
        <div id="content-header" class="horizontal">
          <span id="header-title">Wikipedia</span>
          <select id="dictionary-style">
          </select>
        </div>
        <iframe id="content" name="content" class="vertical"> </iframe>
      </div>

    </div>

  </body>
</html>

OS - Windows 8.1. Java version - 8 Update 25. Browser - Opera 25.0.1614.68.

Contents of folder with slobs:
_ru-m-wiktionary-org_20141102.lzma2.slob_
_species-wikimedia-org.lzma2.slob_
_rugta_20131103.lzma2.slob_
_lurkmoreto-20141024.lzma2.slob_
_be-m-wikipedia-org-20141024.lzma2.slob_
_wikireality-ru.lzma2.slob_
_lurkmoreto-20131115.lzma2.slob_
_ru-m-wikisource-org.lzma2.slob_
_ru-m-wikinews-org.lzma2.slob_
_ru-m-wikivoyage-org.lzma2.slob_
_ru-m-wikiquote-org.lzma2.slob_
_ru-m-wikibooks-org.lzma2.slob_
_www-wowpedia-ru.lzma2.slob_

This is not a very helpful report. Doesn't work how? What's the output in terminal were java command executed? Any errors in browser js console? Screenshot at least?

When I first run a command today everything was worked (displays a link to list of dictionaries and search field), but after restarting problem was repeated

Doesn't work how?

The browser displays only code that I quoted above.

What's the output in terminal were java command executed?

d :\Install\Windows\Wiki\aar2web>java -Dslobber.browse=true -jar aard2-web-0.3.jar d:\Documents\YandexDisk\slob\x.slob
Starting http://127.0.0.1:8013
Started
GET /?
Looking for handler for *
Got request: /

Any errors in browser js console?

Browser js console is empty (or I use it incorrectly). See screenshot.

Screenshot at least?

Sure, see screenshot.

UPD. After a certain number of "F5" clicks page is displayed (See screenshot), but after next page refresh problem was repeated.

Can you check if you see the same behavior with other browsers, Chrome and Firefox?

Sorry, Igor. I seem to understand what is the reason.
Program Adguard 5 (ad blocker) prevents normal page load. When it is disabled everything works great.

What is most interesting that page in last Firefox page loads normaly (regardless of Adguard on/off). Screenshot

Behavior of Chrome is the same as that of Opera. Screenshot

That's a fun way to break it... oh well. Can we close this issue?

Sure. Sorry for such trifle :)