Inlined and minified grayscale.js, also optimized
Also, optimized all the images that the site uses by changing png's to 8 bit and optimizing IDAT stream.
|
|
@ -11,7 +11,11 @@
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
|
||||||
|
|
||||||
<!-- Custom Theme JavaScript -->
|
<!-- Custom Theme JavaScript -->
|
||||||
<script src="{{site.baseurl}}/js/grayscale.js"></script>
|
<!--* Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com)
|
||||||
|
* Code licensed under the Apache License v2.0.
|
||||||
|
* For details, see http://www.apache.org/licenses/LICENSE-2.0.-->
|
||||||
|
<script>$(window).scroll(function(){50<$(".navbar").offset().top?$(".navbar-fixed-top").addClass("top-nav-collapse"):$(".navbar-fixed-top").removeClass("top-nav-collapse")});$(function(){$("a.page-scroll").bind("click",function(b){var a=$(this);$("html, body").stop().animate({scrollTop:$(a.attr("href")).offset().top},1500,"easeInOutExpo",function(){a.blur()});b.preventDefault()})});$(".navbar-collapse ul li
|
||||||
|
a").click(function(){$(".navbar-toggle:visible").click()});</script>
|
||||||
|
|
||||||
{% if site.google-tracking-id %}
|
{% if site.google-tracking-id %}
|
||||||
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 5 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 53 KiB |
BIN
img/intro-bg.jpg
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 41 KiB |
BIN
img/labtocat.png
|
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 25 KiB |
|
|
@ -1,31 +0,0 @@
|
||||||
/*!
|
|
||||||
* Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com)
|
|
||||||
* Code licensed under the Apache License v2.0.
|
|
||||||
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// jQuery to collapse the navbar on scroll
|
|
||||||
$(window).scroll(function() {
|
|
||||||
if ($(".navbar").offset().top > 50) {
|
|
||||||
$(".navbar-fixed-top").addClass("top-nav-collapse");
|
|
||||||
} else {
|
|
||||||
$(".navbar-fixed-top").removeClass("top-nav-collapse");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// jQuery for page scrolling feature - requires jQuery Easing plugin
|
|
||||||
$(function() {
|
|
||||||
$('a.page-scroll').bind('click', function(event) {
|
|
||||||
var $anchor = $(this);
|
|
||||||
$('html, body').stop().animate({
|
|
||||||
scrollTop: $($anchor.attr('href')).offset().top
|
|
||||||
}, 1500, 'easeInOutExpo'
|
|
||||||
, function(){ $anchor.blur(); });
|
|
||||||
event.preventDefault();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// Closes the Responsive Menu on Menu Item Click
|
|
||||||
$('.navbar-collapse ul li a').click(function() {
|
|
||||||
$('.navbar-toggle:visible').click();
|
|
||||||
});
|
|
||||||