Add New Post ‹ emeng_bali — WordPress
//
AtD_check_when = { onpublish: true, onupdate: true };
if (window.top !== window.self) {
window.top.location.href = window.self.location.href; }
/* */
/* */
jQuery( function($) {
var wpasTitleCounter = $('#wpas-title-counter'),
wpasTitle = $('#wpas-title').keyup( function() {
wpasTitleCounter.text( wpasTitle.val().length );
} ),
authClick = false;
$('#publicize-form-edit').click( function() {
$('#publicize-form').slideDown( 'fast', function() {
wpasTitle.focus();
if ( !wpasTitle.text() ) {
var url = $('#shortlink').size() ? $('#shortlink').val() : '';
var defaultMessage = $.trim( 'posted to WP.com: ' + $("#title").val() + '' );
wpasTitle.append( defaultMessage );
var selBeg = defaultMessage.indexOf( $("#title").val() );
if ( selBeg < 0 ) {
selBeg = 0;
selEnd = 0;
} else {
selEnd = selBeg + $("#title").val().length;
}
var domObj = wpasTitle.get(0);
if ( domObj.setSelectionRange ) {
domObj.setSelectionRange( selBeg, selEnd );
} else if ( domObj.createTextRange ) {
var r = domObj.createTextRange();
r.moveStart( 'character', selBeg );
r.moveEnd( 'character', selEnd );
r.select();
}
}
wpasTitle.keyup();
} );
$('#publicize-defaults').hide();
$(this).hide();
return false;
} );
$('#publicize-form-hide').click( function() {
var newList = $.map( $('#publicize-form').slideUp( 'fast' ).find( ':checked' ), function( el ) {
return $.trim( $(el).parent( 'label' ).text() );
} );
$('#publicize-defaults').html( '
' + newList.join( ',
' ) + '' ).show();
$('#publicize-form-edit').show();
return false;
} );
$('.authorize-link').click( function() {
if ( authClick ) {
return false;
}
authClick = true;
$(this).after( '
' );
$.ajaxSetup( { async: false } );
autosave();
return true;
} );
} );
#publicize {
border-top: 1px solid #eee;
line-height: 1.5;
}
#publicize ul {
margin: 4px 0 4px 6px;
}
#publicize li {
margin: 0;
}
#publicize textarea {
margin: 4px 0 0;
width: 100%
}
.post-new-php .authorize-link, .post-php .authorize-link {
line-height: 1.5em;
}
.post-new-php .authorize-message, .post-php .authorize-message {
margin-bottom: 0;
}
#poststuff #publicize .updated p {
margin: .5em 0;
}
#wpcombar { display:none; }
div.typekit_box_one {border: 1px solid #ccc; width: 260px; float: left; clear: left; padding: 0 20px; margin-right: 25px; height: 220px;}
div.typelkit_box_two {border: 1px solid #ccc; width: 260px; float: left; padding: 0 20px; height: 220px; }
#menu-posts-feedback .wp-menu-image img { display: none; }
#adminmenu .menu-icon-feedback:hover div.wp-menu-image, #adminmenu .menu-icon-feedback.wp-has-current-submenu div.wp-menu-image, #adminmenu .menu-icon-feedback.current div.wp-menu-image { background: url("https://awangbali.wordpress.com/wp-content/mu-plugins/grunion-contact-form-2.0//images/grunion-menu-hover.png") no-repeat 6px 7px !important; }
#adminmenu .menu-icon-feedback div.wp-menu-image, #adminmenu .menu-icon-feedback div.wp-menu-image, #adminmenu .menu-icon-feedback div.wp-menu-image { background: url("https://awangbali.wordpress.com/wp-content/mu-plugins/grunion-contact-form-2.0//images/grunion-menu.png") no-repeat 6px 7px !important; }
var syntaxHLcodes = 'sourcecode|source|code';
//
try{document.post.title.focus();}catch(e){}
/* = 0) {Q=getSelection();}else {if(window.getSelection)Q=window.getSelection().toString();else if(document.selection)Q=document.selection.createRange().text;else Q=document.getSelection().toString();}} else {location.href='https://awangbali.wordpress.com/wp-admin/post-new.php?text='+encodeURIComponent(Q.toString())+'&popupurl='+encodeURIComponent(location.href)+'&popuptitle='+encodeURIComponent(document.title);}}
function toggle_query_list() { var querylist = document.getElementById( 'querylist' );if( querylist.style.display == 'block' ) {querylist.style.display='none';} else {querylist.style.display='block';}}
jQuery( function() {
(function(jq){jq.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=jq.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))-1);jqjq.hideSuperfishUl();if(o.jqpath.length&&jqjq.parents(['li.',o.hoverClass].join('')).lengtha:first-child',this));}).not('.'+c.bcClass).hideSuperfishUl();var jqa=jq('a',this);jqa.each(function(i){var jqli=jqa.eq(i).parents('li');jqa.eq(i).focus(function(){over.call(jqli);}).blur(function(){out.call(jqli);});});o.onInit.call(this);}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!(jq.browser.msie&&jq.browser.version6&&o.dropShadows&&o.animation.opacity!=undefined) this.toggleClass(sf.c.shadowClass+'-off');};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:600,animation:{opacity:'show'},speed:100,autoArrows:false,dropShadows:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};jq.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.jqpath:'';o.retainPath=false;var jqul=jq(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call(jqul);return this;},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',jqul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call(jqul);o.onBeforeShow.call(jqul);jqul.animate(o.animation,o.speed,function(){sf.IE7fix.call(jqul);o.onShow.call(jqul);});return this;}});})(jQuery);
jQuery( '#wpcombar li.ab-my-account, #wpcombar li.ab-bloginfo' ).mouseover( function() {
if ( jQuery(this).hasClass( 'ab-my-account' ) ) jQuery('#wpcombar li.ab-me > a').addClass('hover');
if ( jQuery(this).hasClass( 'ab-bloginfo' ) ) jQuery('#wpcombar li.ab-blog > a').addClass('hover');
});
jQuery( '#wpcombar li.ab-my-account, #wpcombar li.ab-bloginfo' ).mouseout( function() {
if ( jQuery(this).hasClass( 'ab-my-account' ) ) jQuery('#wpcombar li.ab-me > a').removeClass('hover');
if ( jQuery(this).hasClass( 'ab-bloginfo' ) ) jQuery('#wpcombar li.ab-blog > a').removeClass('hover');
});
jQuery( '#wpcombar ul ul li a' ).mouseover( function() {
var root = jQuery(this).parents('div.quicklinks ul > li');
var par = jQuery(this).parent();
var children = par.children('ul');
if ( root.hasClass('ab-sadmin') )
jQuery(children[0]).css('right',par.parents('ul').width() - 1 +'px' );
else
jQuery(children[0]).css('left',par.parents('ul').width() +'px' );
jQuery(children[0]).css('top', '0' );
});
if ( window.location.hash ) window.scrollBy(0,-32);
});
jQuery( function() {
jQuery('#wpcombar').appendTo('body');
jQuery("#wpcombar ul").superfish();
});
/* ]]> */
_qoptions={qacct:'p-18-mFEk4J448M',labels:'language.id,type.wpcom,wp.loggedin,wp.admin'};
st_go({
admin:1,
user_id:12530669,
page:"post-new.php"
});
list_args = {"class":"WP_Post_Comments_List_Table","screen":{"id":"post","base":"post","action":"add","post_type":"post","is_network":false,"is_user":false,"parent_file":"edit.php","parent_base":"edit"}};
/* <![CDATA[ */
jQuery(document).ready(function() {
jQuery( "#global-search" ).click( function() {
jQuery( "#adminbarsearch" ).attr( "action", "http://id.search.wordpress.com" );
jQuery("#publicsearchform").attr("target", "");
if ( jQuery(".onsearch").length == 0 )
jQuery( "#adminbarsearch" ).attr( "target", "_blank" );
jQuery( "#adminbarsearch" ).submit();
});
jQuery("#private-local-search").click( function() {
jQuery( "#q" ).attr( "name", "s" );
jQuery( "#adminbarsearch" ).attr( "action", "/" );
jQuery( "#adminbarsearch" ).attr( "target", "" );
jQuery( "#adminbarsearch" ).submit();
});
jQuery("#public-local-search").click( function() {
if ( jQuery("#publicsearchform").length==0 ){
jQuery("#adminbarsearch-publicform").append("
");
jQuery("#publicsearchform").append("");
}
jQuery("#publicsearchform").attr("target", "_blank");
jQuery("#publicsearchform").attr("action", "http://id.search.wordpress.com");
jQuery("#newq").val("site:awangbali.wordpress.com "+jQuery("#q").val());
jQuery("#publicsearchform").submit();
});
jQuery("#adminbarsearch #q").keypress(function(event){
if ( event.keyCode == '13' ) {
event.preventDefault();
if ( jQuery("#private-local-search").length == 0 && jQuery("#public-local-search").length == 0 )
jQuery("#global-search").click();
else
jQuery(".localsearch").click();
}
});
});
/* ]]> */
//
/* */
/* */
/* */
/* */
/* */
/* */
if(typeof wpOnload=='function')wpOnload();