Skip to content

Commit

Permalink
Apply selected settings to second popup
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloYuiYui committed Aug 21, 2024
1 parent 299c77d commit c3f79a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/popup/map.fixedpopup.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ <h2>Options:</h2>
<option value="tooltips">tooltips</option>
</select>
<br />
<input id="ck" type="checkbox" onchange="if (this.checked) popup.addPopupClass('shadow'); else popup.removePopupClass('shadow');" />
<input id="ck" type="checkbox" onchange="this.checked ? popup.addPopupClass('shadow') & popup2.addPopupClass('shadow') : popup.removePopupClass('shadow') & popup2.removePopupClass('shadow')" />
<label for="ck">shadow</label>
<br />
<input id="cb" type="checkbox" checked onchange="popup.setClosebox(this.checked);" />
<input id="cb" type="checkbox" checked onchange="popup.setClosebox(this.checked); popup2.setClosebox(this.checked);" />
<label for="cb">hasclosebox</label>
<br />
<label>
<input name="fix" type="radio" checked onchange="popup.setHook('viewport');" />
<input name="fix" type="radio" checked onchange="popup.setHook('viewport'); popup2.setHook('viewport')" />
hook on viewport
</label>
<label>
<input name="fix" type="radio" onchange="popup.setHook('map');" />
<input name="fix" type="radio" onchange="popup.setHook('map'); popup2.setHook('map')" />
hook on map
</label>
</div>
Expand Down

0 comments on commit c3f79a9

Please sign in to comment.