Changeset 2402523
- Timestamp:
- 10/19/2020 12:11:36 PM (5 years ago)
- File:
-
- 1 edited
-
envite/trunk/envite-init.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
envite/trunk/envite-init.php
r2395130 r2402523 40 40 var c=d.createElement('script');o.params={};c.async=true;c.type='text/javascript'; 41 41 c.charset='utf-8';c.src='https://envite-script.web.app/main.js';h.appendChild(c);c.charset='utf-8'; 42 // c.charset='utf-8';c.src='http://localhost:9000/main.js';h.appendChild(c);c.charset='utf-8';42 //c.charset='utf-8';c.src='http://localhost:9000/main.js';h.appendChild(c);c.charset='utf-8'; 43 43 })(document); 44 44 envite('init', '<?=$options ?>'); … … 48 48 49 49 #envite-fast-bubble-wrapper { 50 z-index: 99999999999; overflow: hidden; height: 77px !important; width: 210px !important; position: fixed !important; bottom: 40px !important; left: 40px !important; top: auto !important;50 z-index: 99999999999; overflow: hidden; height: 77px !important; width: 210px !important; position: fixed !important; bottom: 40px !important; top: auto !important; left : 40px; 51 51 display: none; 52 } 53 .envite-fast-bubble-wrapper-right { 54 right : 40px; left : unset !important; 52 55 } 53 56 #envite-fast-bubble-wrapper__mobile { 54 57 z-index: 99999999999; height: 115px !important; width: 220px !important; position: fixed !important; bottom: 0px !important; top: auto !important; 55 58 display: none; 59 } 60 .envite-fast-bubble-wrapper__mobile-right { 61 left: calc(100% - 100px) !important; 56 62 } 57 63 .fast-bubble-chat-button__desktop { … … 156 162 .then(res => res.json()).then(res => { 157 163 const { 158 chatColor, primaryColor, secondaryColor, textColor, 164 chatColor, primaryColor, secondaryColor, textColor, position 159 165 } = res[0]; 160 166 document.querySelector('#envite-fast-bubble-wrapper__mobile').style.display = 'block'; … … 164 170 document.querySelector('.fast-buble-e').style.fill=textColor; 165 171 172 if(position === 'right') { 173 document.querySelector('#envite-fast-bubble-wrapper__mobile').classList.add('envite-fast-bubble-wrapper__mobile-right') 174 } 175 166 176 }) 167 177 … … 170 180 .then(res => res.json()).then(res => { 171 181 const { 172 chatColor, primaryColor, secondaryColor, textColor, shopwithfriends, ownerId, language 182 chatColor, primaryColor, secondaryColor, textColor, shopwithfriends, ownerId, language, position 173 183 } = res[0]; 174 184 document.querySelector('#fast-bubble-text-shop-with-friends').style.color = textColor; … … 176 186 document.querySelector('#envite-fast-bubble-wrapper').style.display = 'block'; 177 187 document.querySelector('#fast-bubble-text-shop-with-friends').textContent = shopwithfriends; 188 189 if(position === 'right') { 190 document.querySelector('#envite-fast-bubble-wrapper').classList.add('envite-fast-bubble-wrapper-right'); 191 } 178 192 179 193 if (ownerId === 'Fv9guG4qcTOXiecbVr7XEvDrnkn1') {
Note: See TracChangeset
for help on using the changeset viewer.