primo commit
This commit is contained in:
25
media/plg_content_phocamaps/css/default.css
Normal file
25
media/plg_content_phocamaps/css/default.css
Normal file
@ -0,0 +1,25 @@
|
||||
/* Phoca Maps Plugin CSS */
|
||||
|
||||
/* Bootstrap */
|
||||
#phocamaps img {
|
||||
max-width: none;
|
||||
}
|
||||
#phocamaps.phocamaps img {
|
||||
border: 0px;
|
||||
box-shadow: 0px;
|
||||
margin: 0px;
|
||||
max-width: none !important;
|
||||
}
|
||||
#phocamaps-box img {
|
||||
max-width:none !important;
|
||||
}
|
||||
|
||||
/* Modals */
|
||||
#pmPlgModal .modal-dialog {
|
||||
height: 70%;
|
||||
max-width: 70%;
|
||||
}
|
||||
|
||||
#pmPlgModal .modal-content {
|
||||
height: 100%;
|
||||
}
|
||||
1
media/plg_content_phocamaps/css/index.html
Normal file
1
media/plg_content_phocamaps/css/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
1
media/plg_content_phocamaps/index.html
Normal file
1
media/plg_content_phocamaps/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body style="background-color: #000;"></body></html>
|
||||
1
media/plg_content_phocamaps/js/index.html
Normal file
1
media/plg_content_phocamaps/js/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body></body></html>
|
||||
48
media/plg_content_phocamaps/js/main.js
Normal file
48
media/plg_content_phocamaps/js/main.js
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* @package Joomla
|
||||
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
|
||||
*
|
||||
* @extension Phoca Maps
|
||||
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
|
||||
*/
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
|
||||
// Events
|
||||
document.querySelectorAll('.pm-plg-bs-modal-button').forEach(item => {
|
||||
|
||||
|
||||
item.addEventListener('click', function(event) {
|
||||
|
||||
event.preventDefault();
|
||||
let href = this.getAttribute('href');
|
||||
let title = this.getAttribute('data-title');
|
||||
|
||||
let type = this.getAttribute('data-type');
|
||||
|
||||
|
||||
let modalItem = document.getElementById('pmPlgModal')
|
||||
let modalIframe = document.getElementById('pmPlgModalIframe');
|
||||
let modalTitle = document.getElementById('pmPlgModalLabel');
|
||||
|
||||
//modalItem.className = '';
|
||||
//modalItem.classList.add('modal', 'fade', 'show', type);
|
||||
modalIframe.src = href;
|
||||
modalTitle.innerHTML = title;
|
||||
|
||||
//let modal = document.getElementById('phCategoryModal')
|
||||
|
||||
/*modal.addEventListener('shown.bs.modal', function () {
|
||||
myInput.focus()
|
||||
})*/
|
||||
|
||||
let modal = new bootstrap.Modal(modalItem);
|
||||
modal.show();
|
||||
|
||||
})
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user