Compare commits

...

3 Commits

3 changed files with 11 additions and 2 deletions

View File

@ -22,6 +22,7 @@ module.exports = (plugin, app) => {
title: 'gear',
www_name: app.live.conf.www_name,
www_copyright: app.live.conf.www_copyright,
scripts: ['/js/gear.js'],
})
})

View File

@ -284,3 +284,11 @@ td:last-child {
font-size: 2vw;
}
}
.Table__Entry__JSON > a {
display: inline-block;
width: 100%;
height: 100%;
cursor: copy;
text-align: center;
}

View File

@ -1,5 +1,5 @@
{{##def.weapons_table_entry:item:
<tr>
<tr data-json='{{=JSON.stringify(item)}}'>
<td><a href="/gear/weapons/{{=item.name||''}}"</a>{{=item.name || ''}}</td>
<td>{{=item.attack || ''}}</td>
<td>{{=item.damage || ''}}</td>
@ -37,7 +37,7 @@
#}}
{{##def.consumables_table_entry:item:
<tr>
<tr data-json='{{=JSON.stringify(item)}}'>
<td><a href="/gear/consumables/{{=item.name||''}}"</a>{{=item.name || ''}}</td>
<td>{{=item.duration || ''}}</td>
<td>{{=item.properties || ''}}</td>