mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-19 07:10:30 +00:00
feat: split partials to have better generecity + added index.html sample page
This commit is contained in:
parent
e1aae4a2cc
commit
b644f0eb7e
9 changed files with 58 additions and 63 deletions
static/js
|
@ -62,37 +62,3 @@ $('#toc-menu').hover(function() {
|
|||
$('.progress').hover(function() {
|
||||
$('.progress').stop(true, false, true).fadeToggle(300);
|
||||
});
|
||||
|
||||
// Calculate each progress section
|
||||
/*
|
||||
$(window).scroll(function (){
|
||||
$("#body-inner h2").each(function(i){
|
||||
//console.log($(this));
|
||||
var this_top = $(this).offset().top;
|
||||
var height = $(this).height();
|
||||
var this_bottom = this_top + height;
|
||||
var percent = 0;
|
||||
|
||||
// Scrolled within current section
|
||||
if (top >= this_top && top <= this_bottom) {
|
||||
percent = ((top - this_top) / (height - wrapper_height)) * 100;
|
||||
if (percent >= 100) {
|
||||
percent = 100;
|
||||
//$(".progress .wrapper .bar:eq("+i+") i").css("color", "#fff");
|
||||
console.log("aaa");
|
||||
}
|
||||
else {
|
||||
//$(".progress .wrapper .bar:eq("+i+") i").css("color", "#36a7f3");
|
||||
console.log("bb");
|
||||
}
|
||||
}
|
||||
else if (top > this_bottom) {
|
||||
percent = 100;
|
||||
//$(".progress .wrapper .bar:eq("+i+") i").css("color", "#fff");
|
||||
console.log("ccc");
|
||||
}
|
||||
//console.log(i);
|
||||
//$(".progress .wrapper .bar:eq("+i+") span").css("width", percent + "%");
|
||||
//console.log("ddd");
|
||||
});
|
||||
});*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue