// JavaScript Document $(document).ready(function(){ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); $('.ibaform').submit(function(){ $.ajax({ type: "POST", context: this, url: "/iba/2013/ajax/sentry.php", data: $(this).serialize(), beforeSend: function() { $(".ibasubmit", this).hide(); $(".processing", this).show(); }, complete: function() { $(".ibasubmit", this).show(); $(".processing", this).hide(); }, success: function(data) { var msg = data.split("|"); var mtype = msg[0]; var mtext = msg[1]; if(mtype == 'error') // DATA ERROR { $(".msg", this).html(mtext); $(".msg", this).fadeIn("fast"); } else if(mtype == 'ok') { $(this).load('/iba/2013/ajax/blogstatus.php?blogid='+mtext); $.getScript('http://platform.twitter.com/widgets.js'); } } }); return false; }); var num = 118; $(window).bind('scroll', function () { if ($(window).scrollTop() > num) { $('.nav').addClass('fixed'); $(".navlogo").fadeIn("slow"); } else { $('.nav').removeClass('fixed'); $(".navlogo").fadeOut("fast"); } }); $('body').plusAnchor({ easing: 'easeInOutExpo', speed: 1000 }); JBCountDown({ secondsColor : "#ffdc50", minutesColor : "#ff6565", hoursColor : "#378cff", daysColor : "#9cdb7d", startDate : "1731883096", endDate : "1376587380", now : "1731883096", seconds : "16" }); }); // Doc ready // Timeline config var timeline_config = { width: '100%', height: '600', source: '/iba/2013/js/timeline.json', embed_id: 'timeline-embed', //OPTIONAL USE A DIFFERENT DIV ID FOR EMBED start_at_slide: '1', //OPTIONAL START AT SPECIFIC SLIDE start_zoom_adjust: '1', //OPTIONAL TWEAK THE DEFAULT ZOOM LEVEL hash_bookmark: false, //OPTIONAL LOCATION BAR HASHES css: '/iba/2013/css/timeline/timeline.css', //OPTIONAL PATH TO CSS js: '/iba/2013/js/timeline-min.js' //OPTIONAL PATH TO JS } // Super selector config var config = { '.chzn-select' : {max_selected_options:2}, '.chzn-select-deselect' : {allow_single_deselect:true}, '.chzn-select-no-single' : {disable_search_threshold:10}, '.chzn-select-no-results': {no_results_text:'Oops, nothing found!'}, '.chzn-select-width' : {width:"95%"}, } for (var selector in config) { $(selector).chosen(config[selector]); } // GA var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-387104-11']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();