Compare commits

..

No commits in common. "d6e88c55f9acb6ed50cbfdfc5586e861857f4905" and "226688c447cece916c1ae726864f963760d36dd6" have entirely different histories.

2 changed files with 6 additions and 10 deletions

View file

@ -3,8 +3,6 @@ import { computed } from 'vue'
const props = defineProps(['admin', 'entry', 'current', 'firstStartedAt', 'offset', 'currentTime', 'waitingRoom'])
const emits = defineEmits(['skip', 'skipCurrent', 'moveUp', 'waitingRoomToQueue', 'queueToWaitingRoom', 'moveTo'])
var in_touch_event = false
function skip() {
if(props.current) {
emits("skipCurrent")
@ -30,12 +28,11 @@ const eta = computed(() =>{
})
const dragging = (e) => {
if (props.waitingRoom || props.current || !props.admin) {
if (props.waitingRoom || props.current) {
return
}
if (e.type == 'touchstart') {
e.preventDefault()
in_touch_event = true
const list_target = e.target.closest('li')
list_target.style.opacity = 0.5
return
@ -52,12 +49,11 @@ const dragging = (e) => {
}
const dragend = (e) => {
if (props.waitingRoom || props.current || !props.admin) {
if (props.waitingRoom || props.current) {
return
}
e.preventDefault()
if (e.type == 'touchend') {
in_touch_event = false
const drop_target = document.getElementById('draggedover')
if (drop_target) {
drop_target.removeAttribute('id')
@ -79,7 +75,7 @@ const dragend = (e) => {
}
const dropped = (e) => {
if (props.waitingRoom || props.current || !props.admin) {
if (props.waitingRoom || props.current) {
return
}
e.preventDefault()
@ -95,7 +91,7 @@ const dropped = (e) => {
}
const dragover = (e) => {
if (props.waitingRoom || props.current || !props.admin || !in_touch_event) {
if (props.waitingRoom || props.current) {
return
}
e.preventDefault()
@ -130,7 +126,7 @@ const dragover = (e) => {
}
}
const dragleave = (e) => {
if (props.waitingRoom || props.current || !props.admin) {
if (props.waitingRoom || props.current) {
return
}
e.preventDefault()

View file

@ -65,7 +65,7 @@ onBeforeUnmount(() => {
</li>
</ul>
<p class="privacy-link">
<a href="https://site.syng.rocks/privacy.html" target="_blank">Privacy Policy</a>
<a href="https://site.syng.rocks/privacy.html`" target="_blank">Privacy Policy</a>
</p>
</div>
</template>