Blog Sandobiz.co.id – Cara Setting Konfigurasi Switch Cisco Catalyst


Blog Sandobiz.co.id – Cara Setting Konfigurasi Switch Cisco Catalyst // var BLANK_URL = ‘https://www.sandobiz.co.id/js/blank.html’; var BLANK_IMG = ‘https://www.sandobiz.co.id/js/spacer.gif’; // “;} var iprocess=’

Loading ...
Please wait…’+iffix; var iconfirm=””; var islogin=”0″; var bundle; var optionsPrice; var calendar; var productAddToCartForm; var dConfig; var classBtnAddtocart = ‘.btn-cart’; function ajaxUpdate(args,type) { if(type==”url”){ //var param=””+args; //url=”https://www.sandobiz.co.id/cartpro/index/add/”; url=args; new Ajax.Request(url, {encoding:’UTF-8′,method: ‘post’, parameters:{ isCart:isCart, //check current page is product page, or My cart page, and check this request is ajax or not isWishlist:isWishlist }, // req.setRequestHeader(“Content-type”, “text/x-json”); onSuccess : function(resp) { var respjson=resp.responseText.evalJSON(); updateCart(respjson); }, onLoading : function(resp) { $(“fancybox-wrap-clone”).setStyle({display:”none”}); $(“process”).innerHTML=iprocess; $(“process”).setStyle({display:”block”}); $(“options”).setStyle({display:”block”}); //$(“blurmask”).setStyle({display:”block”}); fixcenter(); }, onFailure : function(resp) { Element.setInnerHTML( display, resp.responseText); }, onComplete: function() { $(“process”).setStyle({display:”none”}); $(“blurmask”).setStyle({display:”none”}); } }); } else{ $(‘product_addtocart_form’).request({ //form-example id form encoding:’UTF-8′, method:’post’, //setRequestHeader: {Accept: ‘text/html’}, parameters:{isCart:isCart}, onLoading : function(resp) { $(“process”).innerHTML=iprocess; $(“process”).setStyle({display:”block”}) $(“fancybox-wrap-clone”).setStyle({display:”none”}); $(“options”).setStyle({display:”block”}); //$(“blurmask”).setStyle({display:”block”}); fixcenter(); }, onComplete: function(resp){ $(“process”).setStyle({display:”none”}); $(“blurmask”).setStyle({display:”none”}); var respjson=resp.responseText.evalJSON(); updateCart(respjson); } }); } } function updatePCart(resp){ if(resp.r==’0′){ //add to cart if(!resp.options){ if(opener.isCart==’1′){ opener.updateBigcart(resp); $(“options”).setStyle({display:”none”}); } else{ opener.updateCartSidebar(resp); if(hideConfirm!=1) showPConfirm(resp); hideConfirm=0; } } else{ showOptions(resp); showPConfirm(resp); } } else if(resp.r==’1′){ //apply add wishlist if(isWishlist==’1′){ opener.updateWishlistRemove(resp); } else{ opener.updateMiniWish(resp); if(hideConfirm!=1) showPConfirm(resp); hideConfirm=0; } } } function updateCart(resp){ if(resp.r==’0′){ // apply action add to cart if(!resp.options){ if(isCart==’1′){ // in my cart page updateBigcart(resp); $(“options”).setStyle({display:”none”}); if(hideConfirm!=1) showConfirm(resp); hideConfirm=0; } else{ if(resp.wishlist){ updateWishlist(resp); //update mini wish ,or big wishlist when click addtocart } updateCartSidebar(resp); if(hideConfirm!=1) showConfirm(resp); hideConfirm=0; } updateMiniCartPro(resp); updateDeleteLinks(); //for btn delete in table item added tocart updateLinks(resp); if(islogin==”1″){ updateWishlistLinks(); } updateProductCompareLinks(); } else{ if(resp.wishlist){ updateWishlist(resp); } showOptions(resp); //showConfirm(resp); //fixed for mage 324 } } else if(resp.r==’1′){ //apply action add wishlist if(isWishlist==’1′){ updateWishlistRemove(resp); //in wishlist page have only case remove item in big wishlist, => only update bigwishlist if(hideConfirm!=1) showConfirm(resp); hideConfirm=0; } else{ updateMiniWish(resp); //not in wishlist page have 2case : add item, and remove item in miniwish => only update miniwish if(hideConfirm!=1) showConfirm(resp); hideConfirm=0; } } else if(resp.r==’2′){ //apply action add product compare updateProductCompare(resp); if(isCompare && deletePCompare){ //deletePCompare=0; win.location.reload(); } if(hideConfirm!=1) showConfirm(resp); deletePCompare=0; hideConfirm=0; } } function updateBigcart(resp){ var bcart=$$(“#yt_content .cart”); if(typeof(bcart)!=’undefined’){ bcart.each(function(el){ el.innerHTML = resp.cart; }); } } function updateCartSidebar(resp){ //for(var x in elem){console.log(x);} //Effect add to cart // if(elem!=undefined){ // var clone = elem.cloneNode(true); // elem.up().insert(clone); // clone.setStyle({position:”absolute”});elem.setStyle({position:”absolute”}); // //console.log(clone); // //console.log($$(minicart)[0].offsetLeft,$$(minicart)[0].offsetTop); // ProdX=elem.up(2).offsetLeft+elem.offsetLeft; // ProdY=elem.up(2).offsetTop+elem.offsetTop; // //console.log(elem.up(2).tagName); // if(isIE6 ||isIE7){ // CartX=$$(minicart)[0].offsetLeft+$$(minicart)[0].up().offsetLeft+$$(minicart)[0].up(1).offsetLeft; // CartY=$$(minicart)[0].offsetTop+$$(minicart)[0].up().offsetTop+$$(minicart)[0].up(1).offsetTop; // } // else{ // CartX=$$(minicart)[0].offsetLeft; // CartY=$$(minicart)[0].offsetTop; // } // //pCartX=$$(minicart)[0].offsetParent.offsetLeft ; // //pCartY=$$(minicart)[0].offsetParent.offsetTop ; // //prod=elem.realOffset(); // var gotoX = CartX – ProdX; // var gotoY = CartY – ProdY; // //alert(gotoX+”:”+gotoY+”:”+ProdY+”:”+ProdX+”:”+CartX+”:”+CartY+”:”+pCartX+”:”+pCartY+”:”+CartX2+”:”+CartY2); // var pos=fixcenter(); // //console.log(CartX);console.log(CartY );console.log(pos[0]);console.log(pos[1]);console.log(ProdX);console.log(ProdY);//console.log(prod[0]);console.log(prod[1]); // new Effect.Parallel( // [ // new Effect.MoveBy(clone,gotoY, gotoX , { sync: true }), // new Effect.Scale(clone, 75, { sync: true }), // new Effect.Opacity(clone,{sync: true,from:1,to:0}) // ], // {duration: 3} // ); // //clone.remove(); // } //var bcart=$$(“.block-cart”); //minicart=($$(‘.mini-cart’)!=”)?$$(‘.mini-cart’)[0]:$$(‘.block-cart’)[0]; //var bcart=$$(sidebarcart); if(typeof($$(sidebarcart))!=’undefined’){ $$(sidebarcart).each(function(blockitem){ blockitem.replace(resp.cart); } ); truncateOptions(); } } function updateMiniCartPro(resp){ //var bcart=$$(minicartpro)[0]; if(typeof($$(minicartpro))!=’undefined’){ $$(minicartpro).each(function(blockitem){ if(resp.cartpro!=””){ blockitem.replace(resp.cartpro); } }); truncateOptions(); } } function updateMiniWish(resp){ //var bminiwish=$$(“.block-wishlist”); var bminiwish=$$(miniwish); //var bcart=$$(“.block-cart”); var bcart=$$(minicart); if(typeof(bminiwish)!=’undefined’){ bminiwish.each(function(el){ el.replace(resp.cart); }) }else if(typeof(bcart)!=’undefined’){ bcart.each(function(el){ el.insert({after:resp.cart}); }); } updateWishlistAddCartLinks(); updateRemoveWishLinks(); updateWishlinks(resp); } function updateLinks(resp){ //var links=$$(“.top-link-cart”); //links[0].innerHTML=resp.links; var links=$$(toplinkcart); links.each(function(el){ el.innerHTML=resp.links; }); } function updateWishlistRemove(resp){ //update wishlist when remove item updateWishlist(resp); } function updateWishlist(resp){ //update wish list when add item to wishlist var strwish=””; if(resp.wishlist){ strwish=resp.wishlist; }else{ strwish=resp.cart; } if(isWishlist==’0′){ //var bminiwish=$$(“.block-wishlist”); var bminiwish=$$(miniwish); //var bcart=$$(“.block-cart”); var bcart=$$(minicart); if(typeof(bminiwish)!=’undefined’){ bminiwish.each(function(el){ el.replace(strwish); }); } else if(typeof(bcart)!=’undefined’){ bcart.each(function(el){ el.insert({after:strwish}); }); } updateWishlistAddCartLinks(); }else{ //var bwish=$$(“.my-account”); var bwish=$$(“.col-main .my-account”); bwish.each(function(el){ el.innerHTML=””; el.innerHTML=strwish; }); } //bwish[0].replace(resp.wishlist); updateRemoveWishLinks(); updateWishlinksCart(resp); } function updateWishlinksCart(resp){ //update wishlink when add to cart item from wishlist updateWishlinks(resp); } function updateWishlinks(resp){ //update wishlink when add product, remove product vao wishlist var links=$$(“.top-link-wishlist”); links[0].innerHTML=resp.links; var strwishlink=””; if(resp.wishlinks){ strwishlink=resp.wishlinks; }else{ strwishlink=resp.links; } //var links=$$(“.top-link-wishlist”); //links[0].innerHTML=strwishlink; if(toplinkwish!=”){ $$(toplinkwish).each(function(el){ el.innerHTML=strwishlink; }); } else{ var links = getToplinkwish(); if(links.length){ links.each(function(el){ el.innerHTML=strwishlink; }); } } } function updateProductCompare(resp){ //var bproductcompare=$$(‘.block-compare’); var bproductcompare=$$(compare)[0]; //bproductcompare[0].replace(resp.cart); if(typeof(bproductcompare)!=’undefined’){ bproductcompare.replace(resp.cart); updateRemovePCompareLinks(); updateClearPCompareLinks(); } } function showConfirm(resp){ if(!confirm_display){ return false; } timedown = confirm_countdown_number; var cnext=””; var addto=””; var cshop=””; var txtaddedto=(hideConfirm==1 || deletePCompare==1)?”item deleted from “:” added to “; if(isCompare){ cshop=’

  • Chat with us, powered by LiveChat = menu_offset_top) { $(‘.header-style-8 .header-bottom’).addClass(‘menu-on-top’); } else if (scrollTop
    Source

    Leave a Reply

    Your email address will not be published. Required fields are marked *