Print
Full screen
Share

0ca1f7e0268137d8384269f6bef87e34-scripts

/**handles:editor,quicktags,hoverIntent,wp-dom-ready,wp-hooks,wp-i18n,wp-a11y,common,wplink,jquery-ui-core,jquery-ui-menu,jquery-ui-autocomplete**/ /*! This file is auto-generated */ window.wp=window.wp||{},function(g,u){u.editor=u.editor||{},window.switchEditors=new function(){var v,x,t={};function e(){!v&&window.tinymce&&(v=window.tinymce,(x=v.$)(document).on(“click”,function(e){e=x(e.target);e.hasClass(“wp-switch-editor”)&&n(e.attr(“data-wp-editor-id”),e.hasClass(“switch-tmce”)?”tmce”:”html”)}))}function E(e){e=x(“.mce-toolbar-grp”,e.getContainer())[0],e=e&&e.clientHeight;return e&&10<e&&e<200?parseInt(e,10):30}function n(e,t){t=t||"toggle";var n,r,i,a,o,c,s,p,d,l,g,u=v.get(e=e||"content"),w=x("#wp-"+e+"-wrap"),f=w.find(".switch-tmce"),m=w.find(".switch-html"),h=x("#"+e),b=h[0];if("tmce"===(t="toggle"===t?u&&!u.isHidden()?"html":"tmce":t)||"tinymce"===t){if(u&&!u.isHidden())return!1;void 0!==window.QTags&&window.QTags.closeAllTags(e),n=parseInt(b.style.height,10)||0,(o=h)&&o.length&&(o=o[0],s=function(e,t){var n=t.cursorStart,t=t.cursorEnd,r=y(e,n);r&&(n=-1!==["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(r.tagType)?r.ltPos:r.gtPos);r=y(e,t);r&&(t=r.gtPos);r=S(e,n);r&&!r.showAsPlainText&&(n=r.urlAtStartOfContent?r.endIndex:r.startIndex);r=S(e,t);r&&!r.showAsPlainText&&(t=r.urlAtEndOfContent?r.startIndex:r.endIndex);return{cursorStart:n,cursorEnd:t}}(o.value,{cursorStart:o.selectionStart,cursorEnd:o.selectionEnd}),c=s.cursorStart,l=c!==(s=s.cursorEnd)?"range":"single",p=null,d=$(x,"").attr("data-mce-type","bookmark"),"range"==l&&(l=o.value.slice(c,s),g=d.clone().addClass("mce_SELRES_end"),p=[l,g[0].outerHTML].join("")),o.value=[o.value.slice(0,c),d.clone().addClass("mce_SELRES_start")[0].outerHTML,p,o.value.slice(s)].join("")),u?(u.show(),!v.Env.iOS&&n&&50<(n=n-E(u)+14)&&n<5e3&&u.theme.resizeTo(null,n),_(u)):v.init(window.tinyMCEPreInit.mceInit[e]),w.removeClass("html-active").addClass("tmce-active"),m.attr("aria-pressed",!1),f.attr("aria-pressed",!0),h.attr("aria-hidden",!0),window.setUserSetting("editor","tinymce")}else if("html"===t){if(u&&u.isHidden())return!1;u?(v.Env.iOS||(n=(l=u.iframeElement)?parseInt(l.style.height,10):0)&&50<(n=n+E(u)-14)&&n<5e3&&(b.style.height=n+"px"),g=null,g=function(e){var t,n,r,i,a,o,c,s=e.getWin().getSelection();if(s&&!(s.rangeCount<1))return c="SELRES_"+Math.random(),o=$(e.$,c),a=o.clone().addClass("mce_SELRES_start"),o=o.clone().addClass("mce_SELRES_end"),i=s.getRangeAt(0),t=i.startContainer,n=i.startOffset,r=i.cloneRange(),0<e.$(t).parents(".mce-offscreen-selection").length?(t=e.$("[data-mce-selected]")[0],a.attr("data-mce-object-selection","true"),o.attr("data-mce-object-selection","true"),e.$(t).before(a[0]),e.$(t).after(o[0])):(r.collapse(!1),r.insertNode(o[0]),r.setStart(t,n),r.collapse(!0),r.insertNode(a[0]),i.setStartAfter(a[0]),i.setEndBefore(o[0]),s.removeAllRanges(),s.addRange(i)),e.on("GetContent",k),t=R(e.getContent()),e.off("GetContent",k),a.remove(),o.remove(),n=new RegExp(']*\\s*class=”mce_SELRES_start”[^>]+>\\s*’+c+”[^<]*(\\s*)”),r=new RegExp(‘(\\s*)]*\\s*class=”mce_SELRES_end”[^>]+>\\s*’+c+”[^<]*”),s=t.match(n),i=t.match(r),s?(e=s.index,a=s[0].length,o=null,i&&(-1!==s[0].indexOf(“data-mce-object-selection”)&&(a-=s[1].length),c=i.index,-1!==i[0].indexOf(“data-mce-object-selection”)&&(c-=i[1].length),o=c-a),{start:e,end:o}):null}(u),u.hide(),g&&(c=u,d=g)&&(r=c.getElement(),i=d.start,a=d.end||d.start,r.focus)&&setTimeout(function(){r.setSelectionRange(i,a),r.blur&&r.blur(),r.focus()},100)):h.css({display:””,visibility:””}),w.removeClass(“tmce-active”).addClass(“html-active”),m.attr(“aria-pressed”,!0),f.attr(“aria-pressed”,!1),h.attr(“aria-hidden”,!1),window.setUserSetting(“editor”,”html”)}}function y(e,t){var n,r=e.lastIndexOf(“”,t)”===e.substr(t,1))&&(e=(t=e.substr(r)).match(/”)+1,tagType:n,isClosingTag:!!e[1]}):null}function S(e,t){for(var n=function(e){var t,n=function(e){var t=e.match(/\[+([\w_-])+/g),n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].replace(/^\[+/g,"");-1===n.indexOf(i)&&n.push(i)}return n}(e);if(0===n.length)return[];var r,i=u.shortcode.regexp(n.join("|")),a=[];for(;r=i.exec(e);){var o="["===r[1];t={shortcodeName:r[2],showAsPlainText:o,startIndex:r.index,endIndex:r.index+r[0].length,length:r[0].length},a.push(t)}var c=new RegExp('(^|[\\n\\r][\\n\\r]| )(https?:\\/\\/[^s”]+?)(s*|[\\n\\r][\\n\\r]|$)’,”gi”);for(;r=c.exec(e);)t={shortcodeName:”url”,showAsPlainText:!1,startIndex:r.index,endIndex:r.index+r[0].length,length:r[0].length,urlAtStartOfContent:””===r[1],urlAtEndOfContent:””===r[3]},a.push(t);return a}(e),r=0;r=i.startIndex&&t<=i.endIndex)return i}}function $(e,t){return e("“).css({display:”inline-block”,width:0,overflow:”hidden”,”line-height”:0}).html(t||””)}function _(e){var t,n=e.$(“.mce_SELRES_start”).attr(“data-mce-bogus”,1),r=e.$(“.mce_SELRES_end”).attr(“data-mce-bogus”,1),i=(n.length&&(e.focus(),r.length?((i=e.getDoc().createRange()).setStartAfter(n[0]),i.setEndBefore(r[0]),e.selection.setRng(i)):e.selection.select(n[0])),e),a=n,a=i.$(a).offset().top,o=i.$(i.getContentAreaContainer()).offset().top,c=E(i),s=g(“#wp-content-editor-tools”),p=0,d=0;s.length&&(p=s.height(),d=s.offset().top),s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,(o+=a)<(s-=p+c)||(c=i.settings.wp_autoresize_on?(t=g("html,body"),Math.max(o-s/2,d-p)):(t=g(i.contentDocument).find("html,body"),a),t.animate({scrollTop:parseInt(c,10)},100)),l(n),l(r),e.save()}function l(e){var t=e.parent();e.remove(),!t.is("p")||t.children().length||t.text()||t.remove()}function k(e){e.content=e.content.replace(/ (?:|\u00a0|\uFEFF| )*/g,”   “)}function R(e){var t=”blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure”,n=t+”|div|p”,t=t+”|pre”,r=!1,i=!1,a=[];return e?(-1!==(e=-1===e.indexOf(“<script")&&-1===e.indexOf("<style")?e:e.replace(/]*>[\s\S]*?/g,function(e){return a.push(e),””})).indexOf(“<pre")&&(r=!0,e=e.replace(/ ]*>[\s\S]+?/g,function(e){return(e=(e=e.replace(/(\r\n|\n)?/g,"")).replace(/]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")})),-1!==e.indexOf("\n\n")).replace(/caption\]\n\n+\")).replace(/(]*>)(.*?)/g,function(e,t,n){return n.match(/ […]

Article Source : cartercapner.com.au/?post_t...