source: trunk/playground/url_test.js

Last change on this file was 328, checked in by lgiessmann, 14 years ago

fixed ticket #75 --> changed license terms from LGPL to LLGPL in the trunk tree

File size: 972 bytes
Line 
1//+-----------------------------------------------------------------------------
2//+  Isidorus
3//+  (c) 2008-2010 Marc Kuester, Christoph Ludwig, Lukas Georgieff
4//+
5//+  Isidorus is freely distributable under the LLGPL license.
6//+  This ajax module uses the frameworks PrototypeJs and Scriptaculous, both
7//+  are distributed under the MIT license.
8//+  You can find a detailed description in trunk/docs/LLGPL-LICENSE.txt, and
9//+  trunk/docs/LGPL-LICENSE.txt in
10//+  trunk/src/ajax/javascripts/external/MIT-LICENSE.txt.
11//+-----------------------------------------------------------------------------
12
13function entryPoint(){
14    var elem = getElem();
15    var url = window.location.href;
16    var urlFrags = url.split("/");
17    var newUrl = "";
18    for(var i = 0; i !== urlFrags.length; ++i){
19        if (newUrl.length !== 0) newUrl += "/";
20        newUrl += urlFrags[i];
21    }
22    elem.innerHTML = " " + newUrl;
23}
24
25
26function getElem(){
27    return document.getElementById("content");
28}
Note: See TracBrowser for help on using the repository browser.