Skip to content

Commit

Permalink
Added button to test kiosk's touchscreen (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-egge authored May 7, 2024
1 parent 3a78905 commit b1d5172
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion src/components/sec.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,26 @@
</el-col>
</el-row>
</el-col>
<el-button
id="touchscreen-test-button"
@click="testTouchscreen"
></el-button>
</el-row>
</template>

<script>
export default {}
export default {
methods: {
testTouchscreen () {
const btn = document.getElementById('touchscreen-test-button')
if (btn.style.background === 'orange') {
btn.style.background = 'none'
} else {
btn.style.background = 'orange'
}
}
}
}
</script>

<style scoped lang="scss">
Expand Down Expand Up @@ -108,4 +123,17 @@ video {
background: $--color-white;
color: $--color-black;
}
#touchscreen-test-button {
position: absolute;
top: 0;
left: 0;
z-index: 10;
margin: 0;
padding: 0;
height: 100px;
width: 100px;
border: 1px solid rgba(193, 193, 193, 0.2);
background: none;
}
</style>

0 comments on commit b1d5172

Please sign in to comment.