Relative paths

This commit is contained in:
Codrin Pavel
2020-05-23 07:32:00 +03:00
parent f4a45e36c0
commit 0a5138072f
3 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ var toe = new Vue({
function getData(fileindex) { function getData(fileindex) {
var nextfile = fileindex + 1; var nextfile = fileindex + 1;
$.get('/toe/' + fileindex + '.json', function (data) { $.get('../../toe/' + fileindex + '.json', function (data) {
var matches = data.results[0].result.response.results; var matches = data.results[0].result.response.results;
for (match in matches) { for (match in matches) {

View File

@@ -38,7 +38,7 @@
<li v-for="titan in titans"> <li v-for="titan in titans">
<label> <label>
<input type="checkbox" :value="titan" v-model="selectedTitans" /> <input type="checkbox" :value="titan" v-model="selectedTitans" />
<img :src="'/assets/img/Titans/'+ titan + '.png'" /> <img :src="'../assets/img/Titans/'+ titan + '.png'" />
</label> </label>
</li> </li>
</ul> </ul>
@@ -63,13 +63,13 @@
<img <img
v-for="(titan, index) in match.defBattle.attackers" v-for="(titan, index) in match.defBattle.attackers"
:title="'Totem level ' + titan.elementSpiritLevel + ', ' + titan.elementSpiritStar + '*'" :title="'Totem level ' + titan.elementSpiritLevel + ', ' + titan.elementSpiritStar + '*'"
:src="'/assets/img/Titans/'+ titan.id + '.png'" /> :src="'../assets/img/Titans/'+ titan.id + '.png'" />
</td> </td>
<td> <td>
<img <img
v-for="titan in match.defBattle.defenders[0]" v-for="titan in match.defBattle.defenders[0]"
:src="'/assets/img/Titans/'+ titan.id + '.png'" /> :src="'../assets/img/Titans/'+ titan.id + '.png'" />
</td> </td>
<td> <td>

File diff suppressed because one or more lines are too long