+$("#scrollto").click(function() {
+ $('html, body').animate({
+ scrollTop: $("#features").offset().top -72
+ }, 1500, 'easeInOutExpo');
+});
+
+$(document).ready(function () {
+ $(window).scroll(function () {
+ if ($(document).scrollTop() > 100) {
+ $(".fixed-top").addClass("scrolled");
+ $(".menu-text").addClass("hidden");
+ } else {
+ $(".fixed-top").removeClass("scrolled");
+ $(".menu-text").removeClass("hidden");
+ }
+ });
+});
+
$.query = function(name){
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
return results[1] || 0;
window.location = "http://downloads.ipfire.org/download-splash?file="+linkLocation;
});
-var $window = $(window);
-
-$(".sidenav").affix({
- offset: {
- top: function () { return $window.width() <= 980 ? 290 : 210 }
- , bottom: 270
- }
-});
-
if (/.*download-splash.*/i.test(window.location.href)) {
$("p.download-path").ready(function(){
var valid = false;
});
}
-$(".planet-search-autocomplete").typeahead({
+/* $(".planet-search-autocomplete").typeahead({
source: function(query, process) {
$.get("/api/planet/search/autocomplete", { q: query }, function(data) {
if (data.query == query) {
}
});
},
-});
-
+}); */
function getCookie(name) {
var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
callback(eval("(" + response + ")"));
}
});
-};
+};
\ No newline at end of file