img-path
This commit is contained in:
@@ -36,13 +36,19 @@
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// Select the image element by its ID
|
||||
var logoImage = document.getElementById('logo');
|
||||
// Set the source of the image dynamically
|
||||
logoImage.src = 'https://i.ibb.co/txhx2N0/My-Ko-PKB-logo-removebg-preview.png'; // Replace this URL with your desired image URL
|
||||
// Set the source of the image dynamically
|
||||
logoImage.src = 'https://i.ibb.co/txhx2N0/My-Ko-PKB-logo-removebg-preview.png'; // Replace this URL with your desired image URL
|
||||
|
||||
// Add error handling
|
||||
logoImage.onerror = function() {
|
||||
// If the image fails to load, set a default image or handle the error in some other way
|
||||
logoImage.src = 'https://i.ibb.co/txhx2N0/My-Ko-PKB-logo-removebg-preview.png'; // Replace 'path/to/default-image.png' with the URL of your default image
|
||||
};
|
||||
|
||||
logoImage.style.width = '300px'; // Set width to 200 pixels
|
||||
logoImage.style.height = 'auto';
|
||||
logoImage.style.objectFit = 'cover';
|
||||
logoImage.style.margin = 'auto';
|
||||
logoImage.style.margin = 'auto';
|
||||
});
|
||||
|
||||
|
||||
@@ -57,7 +63,7 @@ export default {
|
||||
created: function () {
|
||||
if (this.util.isLogin())
|
||||
//return this.$router.push({name:'Admin Home'})
|
||||
this.util.setTitle('Log Masuk Pengundi=====');
|
||||
this.util.setTitle('Log Masuk Pengundi====');
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user