Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion admin/templates/resource/custom-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ <h1>You do not have permission to view this link. Please reach out to support if
</div>
</div>
<div class="flex-1">
<img src="{{resource['receipt_image_url']}}" alt="Receipt Image" style="margin-top: -75px" />
<img id="receiptImage" src="{{resource['receipt_image_url']}}" alt="Receipt Image" style="margin-top: -75px" onclick="rotateImage()"/>
</div>
</div>
{% endfor %}
Expand Down Expand Up @@ -421,5 +421,12 @@ <h3 class="mb-6 text-2xl font-medium text-gray-900">Edit History</h3>
console.error('Error:', error);
});
}

let rotate_angle = 0;
function rotateImage() {
rotate_angle = (rotate_angle + 90) % 360;
const image = document.getElementById('receiptImage');
image.style.transform = `rotate(${rotate_angle}deg)`;
}
</script>
{% endblock %}