Line 59... |
Line 59... |
59 |
|
59 |
|
60 |
|
60 |
|
61 |
function PokeRelativePath(Content) |
61 |
function PokeRelativePath(Content) |
62 |
// Vezme øetìzec a doplní v nìm vechny odkazy o relativní èást cesty |
62 |
// Vezme øetìzec a doplní v nìm vechny odkazy o relativní èást cesty |
63 |
{ |
63 |
{ |
64 |
// return (Content.replace(/<a href="/ig,'<a href="'+RelPath)); |
- |
|
65 |
Content=(Content.replace(/(\s+href=[\"\'])([^#])/ig,'$1'+RelPath+'$2')); |
64 |
Content=(Content.replace(/(\s+href=[\"\'])([^#])/ig,'$1'+RelPath+'$2')); |
66 |
Content=(Content.replace(/(\s+src=[\"\'])([^#])/ig,'$1'+RelPath+'$2')); |
65 |
Content=(Content.replace(/(\s+src=[\"\'])([^#])/ig,'$1'+RelPath+'$2')); |
67 |
return Content; |
66 |
return Content; |
68 |
} |
67 |
} |
69 |
|
68 |
|
Line 110... |
Line 109... |
110 |
Content+= MoreInfo; |
109 |
Content+= MoreInfo; |
111 |
Content+=' </div>'; |
110 |
Content+=' </div>'; |
112 |
if (DocLang()=="cs") |
111 |
if (DocLang()=="cs") |
113 |
{ // èeský text |
112 |
{ // èeský text |
114 |
Content+='<ul>'; |
113 |
Content+='<ul>'; |
115 |
Content+=' <li> <a href="index.cs.html" title="Domù">MLAB Home</a> </li>'; |
114 |
Content+=' <li> <a href="index.cs.html" title="Domù">Home</a> </li>'; |
116 |
Content+=' <li> <a href="Web/Modules.cs.html" title="Jednotlivé moduly MLAB">Moduly</a> </li>'; |
115 |
Content+=' <li> <a href="Web/Modules.cs.html" title="Jednotlivé moduly MLAB">Moduly</a> </li>'; |
117 |
Content+=' <li> <a href="Web/Apparatus.cs.html" title="Samostatná zaøízení">Zaøízení</a> </li>'; |
116 |
Content+=' <li> <a href="Web/Apparatus.cs.html" title="Samostatná zaøízení">Zaøízení</a> </li>'; |
118 |
Content+=' <li> <a href="Web/Articles.cs.html" title="Èlánky, informace">Texty</a> </li>'; |
117 |
Content+=' <li> <a href="Web/Articles.cs.html" title="Èlánky, informace">Texty</a> </li>'; |
119 |
Content+=' <li> <a href="Web/News.cs.html" title="Novinky a zmìny">Novinky</a> </li>'; |
118 |
Content+=' <li> <a href="Web/News.cs.html" title="Novinky a zmìny">Novinky</a> </li>'; |
120 |
Content+=' <li> <a href="Web/Photos.cs.html" title="Galerie fotografií">Fotogalerie</a> </li>'; |
119 |
Content+=' <li> <a href="Web/Photos.cs.html" title="Galerie fotografií">Fotogalerie</a> </li>'; |
121 |
Content+=' <li> <a href="Web/AboutMLAB.cs.html" title="O stavebnici MLAB">O MLABu</a> </li>'; |
120 |
Content+=' <li> <a href="Web/About.cs.html" title="O webu, stavebnici MLAB atd.">O projektu</a> </li>'; |
122 |
Content+=' <li> <a href="Web/AboutWeb.cs.html" title="O webu">O WEBu</a> </li>'; |
- |
|
123 |
Content+=' <li> <a href="Web/AboutAuthors.cs.html" title="O autorech">Autoøi</a> </li>'; |
- |
|
124 |
Content+=' <li> <a href="Web/ToDoList.cs.html" title="Co jìtì zbývá udìlat">To do list</a> </li>'; |
- |
|
125 |
Content+='</ul>'; |
121 |
Content+='</ul>'; |
126 |
} |
122 |
} |
127 |
else |
123 |
else |
128 |
{ // English text |
124 |
{ // English text |
129 |
Content+='<ul>'; |
125 |
Content+='<ul>'; |
130 |
Content+=' <li> <a href="index.html" title="Home">MLAB Home</a> </li>'; |
126 |
Content+=' <li> <a href="index.html" title="Home">Home</a> </li>'; |
131 |
Content+=' <li> <a href="Web/Modules.en.html" title="Single MLAB Modules">Modules</a> </li>'; |
127 |
Content+=' <li> <a href="Web/Modules.en.html" title="Individual MLAB Modules">Modules</a> </li>'; |
132 |
Content+=' <li> <a href="Web/Apparatus.en.html" title="Independed Devices">Apparatus</a> </li>'; |
128 |
Content+=' <li> <a href="Web/Apparatus.en.html" title="Independed Devices">Apparatus</a> </li>'; |
133 |
Content+=' <li> <a href="Web/Articles.en.html" title="Articles and other Texts">Texts</a> </li>'; |
129 |
Content+=' <li> <a href="Web/Articles.en.html" title="Articles and other Texts">Texts</a> </li>'; |
134 |
Content+=' <li> <a href="Web/News.cen.html" title="News">News</a> </li>'; |
130 |
Content+=' <li> <a href="Web/News.cen.html" title="News">News</a> </li>'; |
135 |
Content+=' <li> <a href="Web/Photos.en.html" title="Photo Gallery">Photo Gallery</a> </li>'; |
131 |
Content+=' <li> <a href="Web/Photos.en.html" title="Photo Gallery">Photogallery</a> </li>'; |
136 |
Content+=' <li> <a href="Web/AboutMLAB.en.html" title="About MLAB">About MLABu</a> </li>'; |
- |
|
137 |
Content+=' <li> <a href="Web/AboutWeb.en.html" title="About Web">About Web</a> </li>'; |
132 |
Content+=' <li> <a href="Web/About.en.html" title="About Project">About</a> </li>'; |
138 |
Content+=' <li> <a href="Web/AboutAuthors.en.html" title="About Authors">Authors</a> </li>'; |
- |
|
139 |
Content+=' <li> <a href="Web/ToDoList.en.html" title="What to do">To do list</a> </li>'; |
- |
|
140 |
Content+='</ul>'; |
133 |
Content+='</ul>'; |
141 |
} |
134 |
} |
142 |
Content+=' </div>'; |
135 |
Content+=' </div>'; |
143 |
Content+='</div> '; |
136 |
Content+='</div> '; |
144 |
// Korekce cest v odkazech |
137 |
// Korekce cest v odkazech |