Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions site/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
2 changes: 1 addition & 1 deletion site/build/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Put all available languages here, except "en". Separated by spaces
TRANSLATIONS="bg eo gj hi id ms tl tm tr vi zh_tw"
Expand Down
2 changes: 2 additions & 0 deletions site/layouts/partials/js.html
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,5 @@
<script type="text/javascript" src="{{ "js/onScrollMenu.js" | absURL }}"></script>
<!-- PayPal donation Script -->
<script type="text/javascript" src="{{ "js/donate.js" | absURL }}"></script>
<!-- hidden scroll icon on top -->
<script type="text/javascript" src="{{ "js/hideScrollButton.js" | absURL}}">hi</script>
6 changes: 3 additions & 3 deletions site/layouts/partials/legal.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ <h2 class="hidden">Legal Information</h2>
</div>
</section>

<a class="page-scroll hiddenlink" href="#page-top" title="Scroll to top">
<div id="scroll-to-top">
<a class="page-scroll hiddenlink" href="#page-top" title="Scroll to top">
<div id="scroll-to-top" style="display:none">
<i class="fa fa-chevron-up" aria-hidden="true"></i>
</div>
</a>
</a>
2 changes: 1 addition & 1 deletion site/layouts/partials/start.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ "<!-- HEADER -->" | safeHTML }}
<header>
<header style=" background-image: url(../img/header_lighter.jpg);">
<div class="header-content">
<div class="header-content-inner">
<div class="logo">
Expand Down
1 change: 0 additions & 1 deletion site/static/css/creative.css
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ header {
min-height: auto;
text-align: center;
color: #fff;
background-image: url(../img/header.jpg);
background-position: center;
-webkit-background-size: cover;
-moz-background-size: cover;
Expand Down
2 changes: 2 additions & 0 deletions site/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ a:hover {
height: 50px;
text-decoration: none;
border-radius: 50%;
display:none;

}
#scroll-to-top i {
color: #fff;
Expand Down
33 changes: 20 additions & 13 deletions site/static/js/creative.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,30 @@
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/





(function($) {
"use strict"; // Start of use strict

// jQuery for page scrolling feature - requires jQuery Easing plugin
$('a.page-scroll').bind('click', function(event) {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: ($($anchor.attr('href')).offset().top - 50)
}, 1250, 'easeInOutExpo');
event.preventDefault();
});

// Highlight the top nav as scrolling occurs
$('body').scrollspy({
target: '.navbar-fixed-top',
offset: 51
})
// $('a.page-scroll').bind('click', function(event) {
// var $anchor = $(this);
// $('html, body').stop().animate({
// scrollTop: ($($anchor.attr('href')).offset().top - 50)
// }, 1250, 'easeInOutExpo');
// event.preventDefault();
// });



// Highlight the top nav as scrolling occurs
// $('body').scrollspy({
// target: '.navbar-fixed-top',
// offset: 51
// })

// Closes the Responsive Menu on Menu Item Click
/*$('.navbar-collapse ul li a').click(function() {
Expand Down
17 changes: 17 additions & 0 deletions site/static/js/hideScrollButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// hiding scroll-to-top on top and showing on scroll
// using jQuery
$(document).ready(function(){

$(window).scroll(function(){
if($(window).scrollTop()>$(".arrow-bounce").height()/2)
{
$("#scroll-to-top").fadeIn()
}

else
{
$("#scroll-to-top").fadeOut()
}
}
)
})