Skip to content

Commit

Permalink
Fix #12 Label is not connected with checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
01-Scripts committed Jul 3, 2023
1 parent e54c409 commit 1845202
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/2ClickIframePrivacy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* 2Click-Iframe-Privacy v0.3.0
* 2Click-Iframe-Privacy v0.3.1
* https://github.com/01-Scripts/2Click-Iframe-Privacy
*
* Licensed MIT © 2018-2019 Michael Lorer - https://www.01-scripts.de/
* Licensed MIT © 2018-2023 Michael Lorer - https://www.01-scripts.de/
*/

var _2ClickIframePrivacy = new function() {
Expand Down Expand Up @@ -55,7 +55,7 @@
wrapper.style.height = el.clientHeight+'px';
wrapper.innerHTML = text +'<a href="#foo" onclick="_2ClickIframePrivacy.EnableContent(\''+ type +'\'); return false;">'+config.showContentLabel+'</a>';
if(config.enableCookies){
wrapper.innerHTML = wrapper.innerHTML + '<br /><input type="checkbox" name="remind-\''+ type +'\'" /> <label>'+config.rememberChoiceLabel+'</label>';
wrapper.innerHTML = wrapper.innerHTML + '<br /><label><input type="checkbox" name="remind-\''+ type +'\'" /> '+config.rememberChoiceLabel+'</label>';
}
if(config.privacyPolicyUrl){
wrapper.innerHTML = wrapper.innerHTML + '<br /><a href="'+config.privacyPolicyUrl+'">'+config.privacyPolicyLabel+'</a>';
Expand Down

0 comments on commit 1845202

Please sign in to comment.