Merge branch 'main' into afiqhamzah-feat-add-capture-marhun-picture

This commit is contained in:
afiq.hamzah
2022-12-15 12:11:07 +08:00
35 changed files with 1524 additions and 219 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
display: block; }
.bg-image {
background-image: url("/img/bg1.jpg");
background-image: url("/img/background_2.jpg");
background-position: top left;
background-size: 100%;
background-repeat: repeat;
Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

+5 -1
View File
@@ -2,8 +2,12 @@ function marhunPhotoViewerFactory(button_selector) {
return {
attachPhotoViewer: function () {
if(! document.querySelector(button_selector)){
return;
};
document.querySelector(button_selector).addEventListener('click', (event) => {
// document.querySelector('a.btn-view-marhun-photo').addEventListener('click', (event) => {
event.preventDefault();
const image = new Image();