$(function(){var a=$(".col-md-2 .sidebar, .col-md-4 .sidebar");320>=window.innerWidth&&($("body").css("fontSize","95%"),$("button").css("fontSize","85%"));/iPhone|iPod|iPad/i.test(navigator.userAgent)&&$(".btn-quick-guide").css("display","none");$("#pull").unbind("click").on("click",function(b){b.preventDefault();b.stopPropagation();window.scrollTo(0,0);a.toggle("slide")})}); $(function(){$(".header-search-box").click(function(a){a.stopPropagation()});$(".magnifying-glass").click(function(a){$(".header-search-box").is(":hidden")?(a.stopPropagation(),$(".header-search-box").show().focus(),$(".header-search-box").animate({width:100==$(".header-search-box").width()?"0px":"435px",opacity:1},"slow",function(){0==$(".header-search-box").width()&&$(".header-search-box").hide()})):$el.animate({width:435==$el.width()?"435px":"0px",opacity:.3},"slow",function(){0==$el.width()&& $el.hide()})})});$(document).on("click",function(a){var b=$(".header-search-box");b.is(":visible")&&b.animate({width:435==b.width()?"435px":"0px",opacity:.3},"slow",function(){0==b.width()&&b.hide()})}); (function(a){a.extend({scrollToTop:function(){var b=!1;a("body").append(a("").addClass("scroll-to-top").attr({href:"#",id:"scrollToTop"}).append(a("").addClass("icon icon-chevron-up icon-white")));a("#scrollToTop").click(function(b){b.preventDefault();a("body, html").animate({scrollTop:0},500);return!1});a(window).scroll(function(){var c=a(window).scrollTop();35>c?a("#pull").attr("style","top: 24px!important"):35=a)){clearTimeout(c);c=!1;b.action(); return}c=setTimeout(m,a)};e=new Date;"number"===typeof d&&(b.duration=d);"function"===typeof a&&(b.action=a);c||m()}};a.fn.afterResize=function(a){return d[a]?d[a].apply(this,Array.prototype.slice.call(arguments,1)):d.init.apply(this,arguments)}})(jQuery); (function(){var a={initialized:!1,initialize:function(){this.initialized||(this.initialized=!0,this.build(),this.events())},build:function(){$.scrollToTop();this.featuredBoxes();this.toggle()},events:function(){$(window).afterResize(function(){a.featuredBoxes()})},featuredBoxes:function(){$("div.featured-box").css("height","auto");$("div.featured-boxes").each(function(){var a=$(this),c=0;$("div.featured-box",a).each(function(){$(this).height()>c&&(c=$(this).height())});$("div.featured-box",a).height(c)})}, toggle:function(){$("section.toggle > label").prepend($("").addClass("icon icon-plus"));$("section.toggle > label").prepend($("").addClass("icon icon-minus"));$("section.toggle.active > p").addClass("preview-active");$("section.toggle.active > div.toggle-content").slideDown(350,function(){});$("section.toggle > label").click(function(a){var b=$(this).parent(),e=$(this).parents("div.toogle"),d=!1;e.hasClass("toogle-accordion")&&"undefined"!=typeof a.originalEvent&&e.find("section.toggle.active > label").trigger("click"); b.toggleClass("active");if(b.find("> p").get(0)){d=b.find("> p");a=d.css("height");d.css("height","auto");var h=d.css("height");d.css("height",a)}a=b.find("> div.toggle-content");b.hasClass("active")?($(d).animate({height:h},350,function(){$(this).addClass("preview-active")}),a.slideDown(350,function(){})):($(d).animate({height:25},350,function(){$(this).removeClass("preview-active")}),a.slideUp(350,function(){}))})}};a.initialize()})(); (function(a){a.TryIt=function(b,c){var e={url:b},d=this;d.settings={};d.compile=function(){a(".prettyprint.tryit").click(function(b){var e=a(this).text(),c="",g="",h="",l="",k="";if(a(this).attr("title")){var f=a(this).attr("title").split(",");f[0]&&(c=a("#"+f[0].trim()+"").text());f[1]&&(g=a("#"+f[1].trim()+"").text());f[2]&&(k=f[2],h=a("#"+f[2].trim()+"").text());f[3]&&(k=f[3],l=a("#"+f[3].trim()+"").text())}a("#source").text(e);a("#supportsource").text(c);a("#utilsource").text(g);a("#extrasource").text(h); a("#inputs").text(l);a("#filename").text(k);e=a(this).width()+12;a(this).height();c=a(this).offset().left;g=a(this).offset().top;c=Math.round(c);c=b.pageX-c;X=e-c;g=Math.round(g);g=b.pageY-g;36>=X&&36>=g&&(b.preventDefault(),768>=window.innerWidth?(e=window.innerWidth,b=window.innerHeight,a.colorbox({iframe:!0,reposition:!0,opacity:.35,href:d.settings.url,width:e,height:b})):(a(window).height(),a.colorbox({iframe:!0,reposition:!0,opacity:.35,href:d.settings.url,width:960,height:650})))})};var h=a(window).innerWidth()/ 2-320;a(".inline").colorbox({inline:!0,left:h,width:"615px",opacity:.5});(function(){d.settings=a.extend({},e,c);a("body").append('');a("body").append('');a("body").append('');a("body").append('');a("body").append('');a("body").append(''); a(".prettyprint.tryit").mousemove(function(b){var c=a(this).width()+12;a(this).height();var e=a(this).offset().left,d=a(this).offset().top,e=Math.round(e),e=b.pageX-e;X=c-e;d=Math.round(d);d=b.pageY-d;36>=X&&36>=d?a(this).css("cursor","pointer"):a(this).css("cursor","default")})})()}})(jQuery); $(document).ready(function(){ $('.libryCat').click(function(e){ e.stopPropagation(); $('.libryShow').show(); }); $(document).on('click', function(e) { var $el = $(".libryShow"); if ($el.is(":visible")) { $el.hide(); } }); var a=location.href;filename=a.substring(a.lastIndexOf(".com")+5);-1==filename.lastIndexOf(".htm")&&(filename+="index.htm");0==$('.sidebar li a[href*= "'+filename+'"]').text().length&&(filename=$(".parent-file").text());if(-1==filename.lastIndexOf("whoiswho")){$('ul.nav-list.primary>li a[href*= "'+filename+'"]').css("color","");$('ul.nav-list.primary>li a[href*= "'+filename+'"]').css("background-color","#d6d6d6");$('ul.submenu>li a[href*= "'+filename+'"]').css("color", "");$('ul.submenu>li a[href*= "'+filename+'"]').css("background-color","#d6d6d6!important");$('a[href*= "'+filename+'"]').css("color","");$('a[href*= "'+filename+'"]').css("background-color","#d6d6d6!important");console.log(filename);var b=!1,c=!1;$(document).on("click",".cclose",function(a){$(".submenu-item").hide();b=!1});$("#liTL").click(function(a){a.stopPropagation();$.ajax({url:"tutorials-submenu.htm"}).done(function(a){$("#top-sub-menu").html(a);b?($(".submenu-item").hide(),b=!1):($(".submenu-item").show(), b=!0,c=!1)})});$("#liCG").click(function(a){a.stopPropagation();$.ajax({url:"codingground-submenu.htm"}).done(function(a){$("#top-sub-menu").html(a);c?($(".submenu-item").hide(),c=!1):($(".submenu-item").show(),c=!0,b=!1)})});$(document).on("click",function(a){a=$(".submenu-item");a.is(":visible")&&(a.hide(),b=!1)});$(".no-sub-menu").on("click",function(a){a=$(".submenu-item");a.is(":visible")&&a.hide()});$("#btnemail").on("click",function(a){a={email:$("#textemail").val()};$("#newsresponse").css({display:"block"}); if(!/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test($("#textemail").val()))return $("#newsresponse").html("Please enter a valid email id"),$("#newsresponse").fadeOut(5E3,function(){$("#newsresponse").html("");$("#textemail").val("")}),!1;$.ajax({type:"POST",url:"/subs-news.php",data:a,dataType:"json",beforeSend:function(){$(".wrapLoader").css({display:"block"})},success:function(a){$(".wrapLoader").css({display:"none"});0 991 ){ if( $('.middle-col').height() < $('.sidebar').height()){ $('.middle-col').css("height", $('.sidebar').height() + 50 ); } if( $('.middle-col').height() < 1541){ $('.middle-col').css("height", "1541"); } } if(/iPhone|iPad|iPod/i.test(navigator.userAgent)) { $('.android').hide(); $('.microsoft').hide(); $('.hide-me').hide(); } }); function getDocHeight(doc) { doc = doc || document; var body = doc.body, html = doc.documentElement; var height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); return height; } function resizeFrame( ifrm ){ var doc = ifrm.contentDocument? ifrm.contentDocument: ifrm.contentWindow.document; ifrm.style.visibility = 'hidden'; ifrm.style.height = "10px"; ifrm.style.height = getDocHeight( doc ) + 5+"px"; ifrm.style.visibility = 'visible'; }