8,236
edits
(-n) |
|||
Line 30: | Line 30: | ||
li { text-indent: 0 } | li { text-indent: 0 } | ||
</style> | </style> | ||
<script type="text/javascript"> | |||
//<![CDATA[ | |||
netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead'); | |||
var invocation = new XMLHttpRequest(); | |||
var url = 'http://www.kiwix.org/index.php?action=render&title=template:ZIMdumps'; | |||
var invocationHistoryText; | |||
function downloadZimList(){ | |||
if(invocation) | |||
{ | |||
invocation.open('GET', url, true); | |||
invocation.withCredentials = "true"; | |||
invocation.onreadystatechange = handler; | |||
invocation.send(); | |||
} | |||
else | |||
{ | |||
invocationHistoryText = "Whoops -- Sorry. No Invocation TookPlace At All or Errors Took Place"; | |||
var textNode = document.createTextNode(invocationHistoryText); | |||
var textDiv = document.getElementById("textDiv"); | |||
textDiv.appendChild(textNode); | |||
} | |||
} | |||
function handler(evtXHR) | |||
{ | |||
if (invocation.readyState == 4) | |||
{ | |||
if (invocation.status == 200) | |||
{ | |||
var response = invocation.responseText; | |||
invocationHistoryText = document.createTextNode(response); | |||
var textDiv = document.getElementById("zimList"); | |||
textDiv.appendChild(invocationHistoryText); | |||
} | |||
} | |||
} | |||
//]]> | |||
</script> | |||
</head> | </head> | ||
<body> | <body onload="downloadZimList();"> | ||
<h1>Welcome to Kiwix</h1> | <h1>Welcome to Kiwix</h1> | ||
<div class="chapter"> | <div class="chapter"> | ||
Line 66: | Line 112: | ||
</ul> | </ul> | ||
</div> | </div> | ||
<div class="subtitle | <div class="subtitle"><a name="guide_addcontent"></a>Adding Content</div> | ||
<div class="chapter" | <div class="chapter"> | ||
<p>To add content, you need first to download or copy a zim file from Internet of any storage device.</p> | |||
<p><div id="zimList"></div></p> | |||
<p>All Kiwix zim files are available at this address: <a href="http://download.kiwix.org/zim/0.9/">http://download.kiwix.org/zim/0.9/<a/>. Choose one file, download it using your browser or bittorrent client and open afterwards with Kiwix.</p> | |||
</div> | |||
<div class="subtitle" style="display: none"><a name="guide_readcontent"></a>Reading Content</div> | <div class="subtitle" style="display: none"><a name="guide_readcontent"></a>Reading Content</div> | ||
<div class="chapter" style="display: none"><p>TODO</p></div> | <div class="chapter" style="display: none"><p>TODO</p></div> |
edits