|
@@ -38,7 +38,6 @@ window.grendCAD = (function grendCAD() {
|
|
|
let style = document.createElement('style')
|
|
|
style.innerHTML = `
|
|
|
.cad {
|
|
|
- cursor: pointer;
|
|
|
position: absolute;
|
|
|
right: 20px;
|
|
|
top: 16px;
|
|
@@ -46,10 +45,6 @@ window.grendCAD = (function grendCAD() {
|
|
|
height: 200px;
|
|
|
background: rgba(0, 0, 0, .3);
|
|
|
border-radius: 5px;
|
|
|
- background-image: url('./images/map_1.png');
|
|
|
- path {
|
|
|
- opacity: 0;
|
|
|
- }
|
|
|
g.sign>path {
|
|
|
opacity: 1;
|
|
|
}
|
|
@@ -80,11 +75,6 @@ window.grendCAD = (function grendCAD() {
|
|
|
height: 100px;
|
|
|
background: rgba(0, 0, 0, .3);
|
|
|
border-radius: 5px;
|
|
|
- background-image: url('./images/map_1.png');
|
|
|
- background-size: cover;
|
|
|
- path {
|
|
|
- opacity: 0;
|
|
|
- }
|
|
|
g.sign>path {
|
|
|
opacity: 1;
|
|
|
}
|
|
@@ -134,11 +124,11 @@ window.grendCAD = (function grendCAD() {
|
|
|
loadScript(function () {
|
|
|
let [$layer, $img] = loadDOM($parent)
|
|
|
|
|
|
- $layer.addEventListener('click', () => {
|
|
|
- console.log(12)
|
|
|
- $img.src = './images/map_2.png'
|
|
|
- $img.style.display = $img.style.display === 'block' ? 'none' : 'block'
|
|
|
- })
|
|
|
+ // $layer.addEventListener('click', () => {
|
|
|
+ // console.log(12)
|
|
|
+ // $img.src = './images/map_2.png'
|
|
|
+ // $img.style.display = $img.style.display === 'block' ? 'none' : 'block'
|
|
|
+ // })
|
|
|
|
|
|
$layer.style.visibility = 'hidden'
|
|
|
window.cad = structureCAD({
|