first commit
This commit is contained in:
1
wp-content/plugins/mailchimp-for-wp/assets/css/admin.css
Normal file
1
wp-content/plugins/mailchimp-for-wp/assets/css/admin.css
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.mc4wp-checkbox-__INTEGRATION_SLUG__{clear:both;width:auto;display:block;position:static}.mc4wp-checkbox-__INTEGRATION_SLUG__ input{float:none;vertical-align:middle;-webkit-appearance:checkbox;width:auto;max-width:21px;margin:0 6px 0 0;padding:0;position:static;display:inline-block!important}.mc4wp-checkbox-__INTEGRATION_SLUG__ label{float:none;cursor:pointer;width:auto;margin:0 0 16px;display:block;position:static}
|
||||
@@ -0,0 +1 @@
|
||||
.mc4wp-form input[name^=_mc4wp_honey]{display:none!important}.mc4wp-form-basic{margin:1em 0}.mc4wp-form-basic label,.mc4wp-form-basic input{box-sizing:border-box;cursor:auto;vertical-align:baseline;width:auto;height:auto;line-height:normal;display:block}.mc4wp-form-basic label:after,.mc4wp-form-basic input:after{content:"";clear:both;display:table}.mc4wp-form-basic label{margin-bottom:6px;font-weight:700;display:block}.mc4wp-form-basic input[type=text],.mc4wp-form-basic input[type=email],.mc4wp-form-basic input[type=tel],.mc4wp-form-basic input[type=url],.mc4wp-form-basic input[type=date],.mc4wp-form-basic textarea,.mc4wp-form-basic select{width:100%;max-width:480px;min-height:32px}.mc4wp-form-basic input[type=number]{min-width:40px}.mc4wp-form-basic input[type=checkbox],.mc4wp-form-basic input[type=radio]{border:0;width:13px;height:13px;margin:0 6px 0 0;padding:0;display:inline-block;position:relative}.mc4wp-form-basic input[type=checkbox]{-webkit-appearance:checkbox;-moz-appearance:checkbox;appearance:checkbox}.mc4wp-form-basic input[type=radio]{-webkit-appearance:radio;-moz-appearance:radio;appearance:radio}.mc4wp-form-basic input[type=submit],.mc4wp-form-basic button,.mc4wp-form-basic input[type=button]{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-block}.mc4wp-form-basic label>span,.mc4wp-form-basic li>label{font-weight:400}.mc4wp-alert{color:#c09853;clear:both}.mc4wp-success{color:#468847}.mc4wp-notice{color:#3a87ad}.mc4wp-error{color:#cd5c5c}.rtl .mc4wp-form-basic input[type=checkbox],.rtl .mc4wp-form-basic input[type=radio]{margin:0 0 0 6px}
|
||||
File diff suppressed because one or more lines are too long
19
wp-content/plugins/mailchimp-for-wp/assets/img/icon.svg
Normal file
19
wp-content/plugins/mailchimp-for-wp/assets/img/icon.svg
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
version="1.1">
|
||||
<g
|
||||
fill="#a0a5aa">
|
||||
<path
|
||||
opacity="1"
|
||||
fill="#a0a5aa"
|
||||
fill-opacity="1"
|
||||
stroke="none"
|
||||
d="M 8.0097656 0.052734375 A 8 8 0 0 0 0.009765625 8.0527344 A 8 8 0 0 0 8.0097656 16.052734 A 8 8 0 0 0 16.009766 8.0527344 A 8 8 0 0 0 8.0097656 0.052734375 z M 9.2597656 4.171875 C 9.3205456 4.171875 9.9296146 5.0233822 10.611328 6.0664062 C 11.293041 7.1094313 12.296018 8.5331666 12.841797 9.2285156 L 13.833984 10.492188 L 13.316406 11.041016 C 13.031321 11.342334 12.708299 11.587891 12.599609 11.587891 C 12.253798 11.587891 11.266634 10.490156 10.349609 9.0859375 C 9.8610009 8.3377415 9.4126385 7.7229 9.3515625 7.71875 C 9.2904825 7.71455 9.2402344 8.3477011 9.2402344 9.1269531 L 9.2402344 10.544922 L 8.5839844 10.982422 C 8.2233854 11.223015 7.8735746 11.418294 7.8066406 11.417969 C 7.7397106 11.417644 7.4861075 10.997223 7.2421875 10.482422 C 6.9982675 9.9676199 6.6560079 9.3946444 6.4824219 9.2089844 L 6.1679688 8.8710938 L 6.0664062 9.34375 C 5.7203313 10.974656 5.6693219 11.090791 5.0917969 11.505859 C 4.5805569 11.873288 4.2347982 12.017623 4.1914062 11.882812 C 4.1839062 11.859632 4.1482681 11.574497 4.1113281 11.25 C 3.9708341 10.015897 3.5347399 8.7602861 2.8105469 7.5019531 C 2.5672129 7.0791451 2.5711235 7.0651693 2.9765625 6.8320312 C 3.2046215 6.7008903 3.5466561 6.4845105 3.7363281 6.3515625 C 4.0587811 6.1255455 4.1076376 6.1466348 4.4941406 6.6679688 C 4.8138896 7.0992628 4.9275606 7.166285 4.9941406 6.96875 C 5.0960956 6.666263 6.181165 5.8574219 6.484375 5.8574219 C 6.600668 5.8574219 6.8857635 6.1981904 7.1171875 6.6152344 C 7.3486105 7.0322784 7.5790294 7.3728809 7.6308594 7.3730469 C 7.7759584 7.3735219 7.9383234 5.8938023 7.8339844 5.5195312 C 7.7605544 5.2561423 7.8865035 5.0831575 8.4453125 4.6796875 C 8.8327545 4.3999485 9.1989846 4.171875 9.2597656 4.171875 z "
|
||||
id="path5822" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="64"
|
||||
height="64"
|
||||
viewBox="0 0 64 64"
|
||||
version="1.1"
|
||||
id="SVGRoot"
|
||||
inkscape:version="0.92.4 5da689c313, 2019-01-14"
|
||||
sodipodi:docname="mc4wp-logo-red-on-white.svg">
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Layer 2">
|
||||
<circle
|
||||
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-opacity:1"
|
||||
id="path5822"
|
||||
cx="32"
|
||||
cy="32"
|
||||
r="32" />
|
||||
</g>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
style="fill:#cc4444;fill-opacity:1;stroke:none;"
|
||||
d="m 16,47.324799 c -0.02985,-0.09271 -0.175159,-1.230558 -0.322927,-2.528543 -0.561978,-4.936413 -2.305204,-9.961206 -5.201976,-14.994537 -0.9733359,-1.691234 -0.9585997,-1.750867 0.663154,-2.683422 0.912236,-0.524562 2.279359,-1.38885 3.038049,-1.920641 1.289813,-0.904069 1.486868,-0.821985 3.032878,1.26335 1.278999,1.725178 1.731406,1.998919 1.997727,1.208779 0.407819,-1.209946 4.748289,-4.450438 5.96113,-4.450438 0.465172,0 1.603153,1.364871 2.528847,3.033047 0.925694,1.668177 1.852705,3.03359 2.060024,3.034253 0.580399,0.0019 1.2257,-5.915967 0.808345,-7.413054 -0.293707,-1.053553 0.21226,-1.748685 2.447515,-3.362568 1.549769,-1.118954 3.016679,-2.034461 3.2598,-2.034461 0.243121,0 2.673101,3.413534 5.399956,7.585632 2.726854,4.172097 6.744105,9.861321 8.927221,12.642719 l 3.969305,5.057088 -2.073345,2.191405 c -1.140339,1.205272 -2.429057,2.191404 -2.863817,2.191404 -1.383243,0 -5.331006,-4.389741 -8.999106,-10.006614 -1.954436,-2.992783 -3.753407,-5.455006 -3.997711,-5.471606 -0.244305,-0.0166 -0.44419,2.520101 -0.44419,5.637112 v 5.667295 l -2.62254,1.749768 c -1.442397,0.962371 -2.841596,1.748706 -3.109332,1.747409 -0.267735,-0.0013 -1.285075,-1.687162 -2.260756,-3.746367 -0.97568,-2.059206 -2.342064,-4.351629 -3.036409,-5.094272 l -1.262444,-1.350262 -0.401863,1.893807 c -1.3843,6.523625 -1.59298,6.985894 -3.90308,8.646166 C 17.549496,47.286963 16.173566,47.864041 16,47.324799 Z"
|
||||
id="path4520"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="64"
|
||||
height="64"
|
||||
viewBox="0 0 64 64"
|
||||
version="1.1"
|
||||
id="SVGRoot"
|
||||
inkscape:version="0.92.4 5da689c313, 2019-01-14"
|
||||
sodipodi:docname="mc4wp-logo-white-on-red.svg">
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Layer 2">
|
||||
<circle
|
||||
style="opacity:1;fill:#cc4444;fill-opacity:1;stroke:none;stroke-opacity:1"
|
||||
id="path5822"
|
||||
cx="32"
|
||||
cy="32"
|
||||
r="32" />
|
||||
</g>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none;"
|
||||
d="m 16,47.324799 c -0.02985,-0.09271 -0.175159,-1.230558 -0.322927,-2.528543 -0.561978,-4.936413 -2.305204,-9.961206 -5.201976,-14.994537 -0.9733359,-1.691234 -0.9585997,-1.750867 0.663154,-2.683422 0.912236,-0.524562 2.279359,-1.38885 3.038049,-1.920641 1.289813,-0.904069 1.486868,-0.821985 3.032878,1.26335 1.278999,1.725178 1.731406,1.998919 1.997727,1.208779 0.407819,-1.209946 4.748289,-4.450438 5.96113,-4.450438 0.465172,0 1.603153,1.364871 2.528847,3.033047 0.925694,1.668177 1.852705,3.03359 2.060024,3.034253 0.580399,0.0019 1.2257,-5.915967 0.808345,-7.413054 -0.293707,-1.053553 0.21226,-1.748685 2.447515,-3.362568 1.549769,-1.118954 3.016679,-2.034461 3.2598,-2.034461 0.243121,0 2.673101,3.413534 5.399956,7.585632 2.726854,4.172097 6.744105,9.861321 8.927221,12.642719 l 3.969305,5.057088 -2.073345,2.191405 c -1.140339,1.205272 -2.429057,2.191404 -2.863817,2.191404 -1.383243,0 -5.331006,-4.389741 -8.999106,-10.006614 -1.954436,-2.992783 -3.753407,-5.455006 -3.997711,-5.471606 -0.244305,-0.0166 -0.44419,2.520101 -0.44419,5.637112 v 5.667295 l -2.62254,1.749768 c -1.442397,0.962371 -2.841596,1.748706 -3.109332,1.747409 -0.267735,-0.0013 -1.285075,-1.687162 -2.260756,-3.746367 -0.97568,-2.059206 -2.342064,-4.351629 -3.036409,-5.094272 l -1.262444,-1.350262 -0.401863,1.893807 c -1.3843,6.523625 -1.59298,6.985894 -3.90308,8.646166 C 17.549496,47.286963 16.173566,47.864041 16,47.324799 Z"
|
||||
id="path4520"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
1
wp-content/plugins/mailchimp-for-wp/assets/js/admin.js
Normal file
1
wp-content/plugins/mailchimp-for-wp/assets/js/admin.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
!function(){var t=window.wp.i18n.__,e=window.wp.blocks.registerBlockType,i=window.wp.components.SelectControl,o=window.mc4wp_forms;e("mailchimp-for-wp/form",{title:t("Mailchimp for WordPress Form"),description:t("Block showing a Mailchimp for WordPress sign-up form"),category:"widgets",attributes:{id:{type:"int"}},icon:React.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",version:"1.1"},React.createElement("path",{opacity:"1",fill:"#a0a5aa",fillOpacity:"1",stroke:"none",d:"M 8.0097656 0.052734375 A 8 8 0 0 0 0.009765625 8.0527344 A 8 8 0 0 0 8.0097656 16.052734 A 8 8 0 0 0 16.009766 8.0527344 A 8 8 0 0 0 8.0097656 0.052734375 z M 9.2597656 4.171875 C 9.3205456 4.171875 9.9296146 5.0233822 10.611328 6.0664062 C 11.293041 7.1094313 12.296018 8.5331666 12.841797 9.2285156 L 13.833984 10.492188 L 13.316406 11.041016 C 13.031321 11.342334 12.708299 11.587891 12.599609 11.587891 C 12.253798 11.587891 11.266634 10.490156 10.349609 9.0859375 C 9.8610009 8.3377415 9.4126385 7.7229 9.3515625 7.71875 C 9.2904825 7.71455 9.2402344 8.3477011 9.2402344 9.1269531 L 9.2402344 10.544922 L 8.5839844 10.982422 C 8.2233854 11.223015 7.8735746 11.418294 7.8066406 11.417969 C 7.7397106 11.417644 7.4861075 10.997223 7.2421875 10.482422 C 6.9982675 9.9676199 6.6560079 9.3946444 6.4824219 9.2089844 L 6.1679688 8.8710938 L 6.0664062 9.34375 C 5.7203313 10.974656 5.6693219 11.090791 5.0917969 11.505859 C 4.5805569 11.873288 4.2347982 12.017623 4.1914062 11.882812 C 4.1839062 11.859632 4.1482681 11.574497 4.1113281 11.25 C 3.9708341 10.015897 3.5347399 8.7602861 2.8105469 7.5019531 C 2.5672129 7.0791451 2.5711235 7.0651693 2.9765625 6.8320312 C 3.2046215 6.7008903 3.5466561 6.4845105 3.7363281 6.3515625 C 4.0587811 6.1255455 4.1076376 6.1466348 4.4941406 6.6679688 C 4.8138896 7.0992628 4.9275606 7.166285 4.9941406 6.96875 C 5.0960956 6.666263 6.181165 5.8574219 6.484375 5.8574219 C 6.600668 5.8574219 6.8857635 6.1981904 7.1171875 6.6152344 C 7.3486105 7.0322784 7.5790294 7.3728809 7.6308594 7.3730469 C 7.7759584 7.3735219 7.9383234 5.8938023 7.8339844 5.5195312 C 7.7605544 5.2561423 7.8865035 5.0831575 8.4453125 4.6796875 C 8.8327545 4.3999485 9.1989846 4.171875 9.2597656 4.171875 z "})),supports:{html:!1},edit:function(e){var n=o.map((function(t){return{label:t.name,value:t.id}}));return void 0===e.attributes.id&&o.length>0&&e.setAttributes({id:o[0].id}),React.createElement("div",{style:{backgroundColor:"#f8f9f9",padding:"14px"}},React.createElement(i,{label:t("Mailchimp for WordPress Sign-up Form"),value:e.attributes.id,options:n,onChange:function(t){e.setAttributes({id:t})}}))},save:function(t){return null}})}();
|
||||
@@ -0,0 +1 @@
|
||||
!function(){var e={7678:function(e){e.exports=function(e){var t,n,o,r,i,c,u,d,s=window.pageXOffset||document.documentElement.scrollLeft,l=(t=e,n=document.body,o=document.documentElement,r=t.getBoundingClientRect(),i=o.clientHeight,c=Math.max(n.scrollHeight,n.offsetHeight,o.clientHeight,o.scrollHeight,o.offsetHeight),u=r.bottom-i/2-r.height/2,d=c-i,Math.min(u+window.pageYOffset,d));window.scrollTo(s,l)}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e,t,o,r,i,c,u=n(7678),d=n.n(u),s=window.mc4wp_submitted_form,l=window.mc4wp.forms;if(s){var a=document.getElementById(s.element_id);e=l.getByElement(a),t=s.event,o=s.errors,r=s.data,i=Date.now(),c=document.body.clientHeight,o&&e.setData(r),window.scrollY<=10&&s.auto_scroll&&d()(e.element),window.addEventListener("load",(function(){l.trigger("submitted",[e]),o?l.trigger("error",[e,o]):(l.trigger("success",[e,r]),l.trigger(t,[e,r]),"updated_subscriber"===t&&l.trigger("subscribed",[e,r,!0]));var n=Date.now()-i;s.auto_scroll&&n>1e3&&n<2e3&&document.body.clientHeight!==c&&d()(e.element)}))}}()}();
|
||||
1
wp-content/plugins/mailchimp-for-wp/assets/js/forms.js
Normal file
1
wp-content/plugins/mailchimp-for-wp/assets/js/forms.js
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
!function(){var n=window.mc4wp_vars.ajaxurl,t=window.mc4wp.settings,e=document.getElementById("notice-additional-fields");function i(){var t=[].filter.call(document.querySelectorAll(".mc4wp-list-input"),(function(n){return n.checked})).map((function(n){return n.value})).join(","),i=["EMAIL","FNAME","NAME","LNAME"],c=!1;window.fetch("".concat(n,"?action=mc4wp_get_list_details&ids=").concat(t)).then((function(n){return n.json()})).then((function(n){n.forEach((function(n){n.merge_fields.forEach((function(n){n.required&&i.indexOf(n.tag)<0&&(c=!0)}))}))})).finally((function(){e.style.display=c?"":"none"}))}e&&(i(),t.on("selectedLists.change",i))}();
|
||||
2
wp-content/plugins/mailchimp-for-wp/assets/js/main.js
Normal file
2
wp-content/plugins/mailchimp-for-wp/assets/js/main.js
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* The MIT License
|
||||
*
|
||||
* Copyright (c) 2012 James Allardice
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
* deal in the Software without restriction, including without limitation the
|
||||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
* sell copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
2
wp-content/plugins/mailchimp-for-wp/assets/js/third-party/placeholders.js
vendored
Normal file
2
wp-content/plugins/mailchimp-for-wp/assets/js/third-party/placeholders.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see placeholders.js.LICENSE.txt */
|
||||
({6315:function(){!function(t){"use strict";var e=void 0!==document.createElement("input").placeholder;if(t.Placeholders={nativeSupport:e,disable:e?B:C,enable:e?B:function(t){j(t,D)}},!e){var r,n=["text","search","url","tel","email","password","number","textarea"],a=[27,33,34,35,36,37,38,39,40,8,46],u=new RegExp("(?:^|\\s)placeholdersjs(?!\\S)"),l="data-placeholder-value",i="data-placeholder-active",o="data-placeholder-type",c="data-placeholder-submit",s="data-placeholder-bound",d="data-placeholder-maxlength",g=document.getElementsByTagName("head")[0],b=document.documentElement,f=t.Placeholders,v=document.getElementsByTagName("input"),p=document.getElementsByTagName("textarea"),h="false"===b.getAttribute("data-placeholder-focus"),m="false"!==b.getAttribute("data-placeholder-live"),A=document.createElement("style");A.type="text/css";var y,x,E=document.createTextNode(".placeholdersjs {color:#ccc;}");A.styleSheet?A.styleSheet.cssText=E.nodeValue:A.appendChild(E),g.insertBefore(A,g.firstChild);for(var N=0,T=v.length+p.length;N<T;N++)x=N<v.length?v[N]:p[N-v.length],(y=x.attributes.placeholder)&&(y=y.nodeValue)&&L(n,x.type)&&P(x);var w=setInterval((function(){for(var t=0,e=v.length+p.length;t<e;t++)x=t<v.length?v[t]:p[t-v.length],(y=x.attributes.placeholder)?(y=y.nodeValue)&&L(n,x.type)&&(x.getAttribute(s)||P(x),(y!==x.getAttribute(l)||"password"===x.type&&!x.getAttribute(o))&&("password"===x.type&&!x.getAttribute(o)&&R(x,"text")&&x.setAttribute(o,"password"),x.value===x.getAttribute(l)&&(x.value=y),x.setAttribute(l,y))):x.getAttribute(i)&&(V(x),x.removeAttribute(l));m||clearInterval(w)}),100);k(t,"beforeunload",(function(){f.disable()}))}function B(){}function S(){try{return document.activeElement}catch(t){}}function L(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return!0;return!1}function k(t,e,r){return t.addEventListener?t.addEventListener(e,r,!1):t.attachEvent?t.attachEvent("on"+e,r):void 0}function I(t,e){var r;t.createTextRange?((r=t.createTextRange()).move("character",e),r.select()):t.selectionStart&&(t.focus(),t.setSelectionRange(e,e))}function R(t,e){try{return t.type=e,!0}catch(t){return!1}}function j(t,e){if(t&&t.getAttribute(l))e(t);else for(var r=t?t.getElementsByTagName("input"):v,n=t?t.getElementsByTagName("textarea"):p,a=r?r.length:0,u=a+(n?n.length:0),i=0;i<u;i++)e(i<a?r[i]:n[i-a])}function C(t){j(t,V)}function V(t,e){var r=!!e&&t.value!==e,n=t.value===t.getAttribute(l);if((r||n)&&"true"===t.getAttribute(i)){t.removeAttribute(i),t.value=t.value.replace(t.getAttribute(l),""),t.className=t.className.replace(u,"");var a=t.getAttribute(d);parseInt(a,10)>=0&&(t.setAttribute("maxLength",a),t.removeAttribute(d));var c=t.getAttribute(o);return c&&(t.type=c),!0}return!1}function D(t){var e=t.getAttribute(l);return!(""!==t.value||!e||(t.setAttribute(i,"true"),t.value=e,t.className+=" placeholdersjs",t.getAttribute(d)||(t.setAttribute(d,t.maxLength),t.removeAttribute("maxLength")),t.getAttribute(o)?t.type="text":"password"===t.type&&R(t,"text")&&t.setAttribute(o,"password"),0))}function P(t){var e=t.form;e&&"string"==typeof e&&((e=document.getElementById(e)).getAttribute(c)||(k(e,"submit",function(t){return function(){C(t)}}(e)),e.setAttribute(c,"true"))),k(t,"focus",function(t){return function(){h&&t.value===t.getAttribute(l)&&"true"===t.getAttribute(i)?I(t,0):V(t)}}(t)),k(t,"blur",function(t){return function(){D(t)}}(t)),h&&(k(t,"keydown",function(t){return function(e){if(r=t.value,"true"===t.getAttribute(i)&&r===t.getAttribute(l)&&L(a,e.keyCode))return e.preventDefault&&e.preventDefault(),!1}}(t)),k(t,"keyup",function(t){return function(){V(t,r),""===t.value&&(t.blur(),I(t,0))}}(t)),k(t,"click",function(t){return function(){t===S()&&t.value===t.getAttribute(l)&&"true"===t.getAttribute(i)&&I(t,0)}}(t))),t.setAttribute(s,"true"),t.setAttribute(l,y),(h||t!==S())&&D(t)}}(this)}})[6315]();
|
||||
23
wp-content/plugins/mailchimp-for-wp/assets/js/third-party/placeholders.js.LICENSE.txt
vendored
Normal file
23
wp-content/plugins/mailchimp-for-wp/assets/js/third-party/placeholders.js.LICENSE.txt
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* The MIT License
|
||||
*
|
||||
* Copyright (c) 2012 James Allardice
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
* deal in the Software without restriction, including without limitation the
|
||||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
* sell copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
Reference in New Issue
Block a user