Browse Source

Fixed section to section animations ,changed color of very bottom footer, and fixed color of star in the about section.

master
jrtechs 6 years ago
parent
commit
211a376462
7 changed files with 2840 additions and 9 deletions
  1. +8
    -2
      css/freelancer.css
  2. +1860
    -0
      css/magnific-popup/jquery.magnific-popup.js
  3. +4
    -0
      css/magnific-popup/jquery.magnific-popup.min.js
  4. +351
    -0
      css/magnific-popup/magnific-popup.css
  5. +526
    -0
      css/reference.css
  6. +16
    -7
      index.html
  7. +75
    -0
      js/freelancer.js

+ 8
- 2
css/freelancer.css View File

@ -61,6 +61,11 @@ hr.star-light:after {
background-color: #4D71A1; background-color: #4D71A1;
} }
hr.star-light2:after {
color: white;
background-color: #4ACADF;
}
hr.star-primary { hr.star-primary {
border-color: #2C3E50; } border-color: #2C3E50; }
@ -193,7 +198,7 @@ header.masthead {
} }
header.masthead .intro-text .skills header.masthead .intro-text .skills
{ {
font-size:2vw;
font-size:4vw;
font-weight: 300; font-weight: 300;
} }
@ -372,7 +377,8 @@ footer a{
margin-bottom: 50px; } margin-bottom: 50px; }
footer .footer-below { footer .footer-below {
padding: 25px 0; padding: 25px 0;
background-color: #2C3E50; }
background-color: #1a252f;
}
.btn-outline { .btn-outline {
font-size: 20px; font-size: 20px;

+ 1860
- 0
css/magnific-popup/jquery.magnific-popup.js
File diff suppressed because it is too large
View File


+ 4
- 0
css/magnific-popup/jquery.magnific-popup.min.js
File diff suppressed because it is too large
View File


+ 351
- 0
css/magnific-popup/magnific-popup.css View File

@ -0,0 +1,351 @@
/* Magnific Popup CSS */
.mfp-bg {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1042;
overflow: hidden;
position: fixed;
background: #0b0b0b;
opacity: 0.8; }
.mfp-wrap {
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1043;
position: fixed;
outline: none !important;
-webkit-backface-visibility: hidden; }
.mfp-container {
text-align: center;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
padding: 0 8px;
box-sizing: border-box; }
.mfp-container:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle; }
.mfp-align-top .mfp-container:before {
display: none; }
.mfp-content {
position: relative;
display: inline-block;
vertical-align: middle;
margin: 0 auto;
text-align: left;
z-index: 1045; }
.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
width: 100%;
cursor: auto; }
.mfp-ajax-cur {
cursor: progress; }
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
cursor: -moz-zoom-out;
cursor: -webkit-zoom-out;
cursor: zoom-out; }
.mfp-zoom {
cursor: pointer;
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
cursor: zoom-in; }
.mfp-auto-cursor .mfp-content {
cursor: auto; }
.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none; }
.mfp-loading.mfp-figure {
display: none; }
.mfp-hide {
display: none !important; }
.mfp-preloader {
color: #CCC;
position: absolute;
top: 50%;
width: auto;
text-align: center;
margin-top: -0.8em;
left: 8px;
right: 8px;
z-index: 1044; }
.mfp-preloader a {
color: #CCC; }
.mfp-preloader a:hover {
color: #FFF; }
.mfp-s-ready .mfp-preloader {
display: none; }
.mfp-s-error .mfp-content {
display: none; }
button.mfp-close,
button.mfp-arrow {
overflow: visible;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
display: block;
outline: none;
padding: 0;
z-index: 1046;
box-shadow: none;
touch-action: manipulation; }
button::-moz-focus-inner {
padding: 0;
border: 0; }
.mfp-close {
width: 44px;
height: 44px;
line-height: 44px;
position: absolute;
right: 0;
top: 0;
text-decoration: none;
text-align: center;
opacity: 0.65;
padding: 0 0 18px 10px;
color: #FFF;
font-style: normal;
font-size: 28px;
font-family: Arial, Baskerville, monospace; }
.mfp-close:hover,
.mfp-close:focus {
opacity: 1; }
.mfp-close:active {
top: 1px; }
.mfp-close-btn-in .mfp-close {
color: #333; }
.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
color: #FFF;
right: -6px;
text-align: right;
padding-right: 6px;
width: 100%; }
.mfp-counter {
position: absolute;
top: 0;
right: 0;
color: #CCC;
font-size: 12px;
line-height: 18px;
white-space: nowrap; }
.mfp-arrow {
position: absolute;
opacity: 0.65;
margin: 0;
top: 50%;
margin-top: -55px;
padding: 0;
width: 90px;
height: 110px;
-webkit-tap-highlight-color: transparent; }
.mfp-arrow:active {
margin-top: -54px; }
.mfp-arrow:hover,
.mfp-arrow:focus {
opacity: 1; }
.mfp-arrow:before,
.mfp-arrow:after {
content: '';
display: block;
width: 0;
height: 0;
position: absolute;
left: 0;
top: 0;
margin-top: 35px;
margin-left: 35px;
border: medium inset transparent; }
.mfp-arrow:after {
border-top-width: 13px;
border-bottom-width: 13px;
top: 8px; }
.mfp-arrow:before {
border-top-width: 21px;
border-bottom-width: 21px;
opacity: 0.7; }
.mfp-arrow-left {
left: 0; }
.mfp-arrow-left:after {
border-right: 17px solid #FFF;
margin-left: 31px; }
.mfp-arrow-left:before {
margin-left: 25px;
border-right: 27px solid #3F3F3F; }
.mfp-arrow-right {
right: 0; }
.mfp-arrow-right:after {
border-left: 17px solid #FFF;
margin-left: 39px; }
.mfp-arrow-right:before {
border-left: 27px solid #3F3F3F; }
.mfp-iframe-holder {
padding-top: 40px;
padding-bottom: 40px; }
.mfp-iframe-holder .mfp-content {
line-height: 0;
width: 100%;
max-width: 900px; }
.mfp-iframe-holder .mfp-close {
top: -40px; }
.mfp-iframe-scaler {
width: 100%;
height: 0;
overflow: hidden;
padding-top: 56.25%; }
.mfp-iframe-scaler iframe {
position: absolute;
display: block;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
background: #000; }
/* Main image in popup */
img.mfp-img {
width: auto;
max-width: 100%;
height: auto;
display: block;
line-height: 0;
box-sizing: border-box;
padding: 40px 0 40px;
margin: 0 auto; }
/* The shadow behind the image */
.mfp-figure {
line-height: 0; }
.mfp-figure:after {
content: '';
position: absolute;
left: 0;
top: 40px;
bottom: 40px;
display: block;
right: 0;
width: auto;
height: auto;
z-index: -1;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
background: #444; }
.mfp-figure small {
color: #BDBDBD;
display: block;
font-size: 12px;
line-height: 14px; }
.mfp-figure figure {
margin: 0; }
.mfp-bottom-bar {
margin-top: -36px;
position: absolute;
top: 100%;
left: 0;
width: 100%;
cursor: auto; }
.mfp-title {
text-align: left;
line-height: 18px;
color: #F3F3F3;
word-wrap: break-word;
padding-right: 36px; }
.mfp-image-holder .mfp-content {
max-width: 100%; }
.mfp-gallery .mfp-image-holder .mfp-figure {
cursor: pointer; }
@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
/**
* Remove all paddings around the image on small screen
*/
.mfp-img-mobile .mfp-image-holder {
padding-left: 0;
padding-right: 0; }
.mfp-img-mobile img.mfp-img {
padding: 0; }
.mfp-img-mobile .mfp-figure:after {
top: 0;
bottom: 0; }
.mfp-img-mobile .mfp-figure small {
display: inline;
margin-left: 5px; }
.mfp-img-mobile .mfp-bottom-bar {
background: rgba(0, 0, 0, 0.6);
bottom: 0;
margin: 0;
top: auto;
padding: 3px 5px;
position: fixed;
box-sizing: border-box; }
.mfp-img-mobile .mfp-bottom-bar:empty {
padding: 0; }
.mfp-img-mobile .mfp-counter {
right: 5px;
top: 3px; }
.mfp-img-mobile .mfp-close {
top: 0;
right: 0;
width: 35px;
height: 35px;
line-height: 35px;
background: rgba(0, 0, 0, 0.6);
position: fixed;
text-align: center;
padding: 0; } }
@media all and (max-width: 900px) {
.mfp-arrow {
-webkit-transform: scale(0.75);
transform: scale(0.75); }
.mfp-arrow-left {
-webkit-transform-origin: 0;
transform-origin: 0; }
.mfp-arrow-right {
-webkit-transform-origin: 100%;
transform-origin: 100%; }
.mfp-container {
padding-left: 6px;
padding-right: 6px; } }

+ 526
- 0
css/reference.css View File

@ -0,0 +1,526 @@
body, html {
height: 100%;
min-height: 250px;
}
body {
background: #fff;
color: #505050;
font-family: "Open Sans", sans-serif;
font-size: 16px;
margin: 0;
padding: 0;
}
h1, h2, h3 {
font-family: "Montserrat", sans-serif;
font-weight: 400;
margin-top: 0;
}
h1.subtitle, h2.subtitle, h3.subtitle {
color: #fff;
}
h1 {
font-size: 3em;
}
h2 {
font-size: 2.5em;
}
h3 {
font-size: 2em;
margin-top: 0px;
}
img {
max-width: 100%;
width: auto;
}
a {
color: #CE5F15;
text-decoration: none;
}
a:hover {
color: #F36321;
}
.icon-space-l {
margin-left: .5em;
}
.container {
margin: 0 auto;
max-width: 1200px;
padding: 0 8px;
}
.button {
border: 1px solid #fff;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-ms-border-radius: 8px;
-o-border-radius: 8px;
border-radius: 8px;
color: #fff;
display: inline-block;
font-weight: 700;
margin-top: 25px;
padding: 5px 25px 8px;
position: relative;
}
.button:hover {
background: #fff;
color: #384859;
}
.button.orange {
color: #F3852A;
border-color: #F3852A;
}
.button.orange:hover {
background: #F3852A;
color: #fff;
}
.button.clay {
color: #ED7277;
border-color: #EF6669;
padding-bottom: 10px;
margin-bottom: 2.5%}
.button.clay:hover {
background: #EF6669;
color: #fff;
}
.button.blue {
color: #194774;
border-color: #194774;
}
.button.blue:hover {
background: #194774;
color: #fff;
}
.banner {
background: #384859;
background: url("coderit_background.png") center center fixed;
box-sizing: border-box;
color: #fff;
display: block;
margin: 0 auto;
padding: 10px 0;
position: relative;
width: 100%}
.banner .inner {
left: 0;
right: 0;
}
.banner.welcome {
background: url("coderit_background.png") center center fixed;
font-size: 1.25em;
height: 100%;
min-height: 350px;
padding: 60px 0 80px;
text-align: center;
}
.banner.welcome .inner.container {
position: absolute;
left: 50%;
top: 50%;
min-width: 320px;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
}
.banner.welcome .logo {
margin-bottom: 25px;
}
.banner.welcome #learn-more:after {
border-color: #fff transparent transparent transparent;
border-style: solid;
border-width: 12px;
content: "";
display: block;
height: 0;
left: 50%;
position: absolute;
top: 150%;
transform: translateX(-50%);
width: 0;
}
.banner-clayhack {
background: clay;
background: url("clayhack_background.png") center center fixed;
box-sizing: border-box;
color: #fff;
display: block;
margin: 0 auto;
padding: 10px 0;
position: relative;
width: 100%}
.banner-clayhack .inner {
left: 0;
right: 0;
}
.banner-clayhack.welcome {
background: url("clayhack_background.png") center center fixed;
font-size: 1.25em;
height: 100%;
min-height: 350px;
padding: 60px 0 80px;
text-align: center;
}
.banner-clayhack.welcome .inner.container {
position: absolute;
left: 50%;
top: 50%;
min-width: 320px;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
}
.banner-clayhack.welcome .logo {
margin-bottom: 25px;
}
.banner-clayhack.welcome #learn-more:after {
border-color: #fff transparent transparent transparent;
border-style: solid;
border-width: 12px;
content: "";
display: block;
height: 0;
left: 50%;
position: absolute;
top: 150%;
transform: translateX(-50%);
width: 0;
}
.text-large {
font-size: 2em;
}
.underline {
text-decoration: underline;
}
.grid-cta .col {
box-sizing: border-box;
float: left;
padding-right: 35px;
}
.grid-cta .col:last-child {
padding-right: 0;
}
.grid-cta.two .col {
width: 50%}
.grid-cta.three .col {
width: 33.3333%}
.grid-cta:after {
content: "";
display: table;
clear: both;
}
.center {
text-align: center;
}
.foot-pusher {
min-height: 100%;
height: auto !important;
height: 100%;
margin-bottom: -90px;
}
.title {
color: #F3852A;
text-align: center;
}
.title-clayhack {
color: #ED7277;
text-align: center;
}
.title-clayhack-contact {
color: #fff;
text-align: center;
}
.loader {
max-width: 80px;
margin-top: 50%;
opacity: .6;
tranform: translateY(-50%);
}
.section {
padding-bottom: 90px;
padding-top: 90px;
}
.section .title {
margin-bottom: 110px;
}
#about .title {
margin-bottom: 110px;
}
#about .badge-cta .badge-icon {
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-ms-border-radius: 100%;
-o-border-radius: 100%;
border-radius: 100%;
border: 1px solid;
box-sizing: border-box;
color: #194774;
height: 150px;
padding: 30px;
width: 150px;
}
#about .badge-cta .badge-name {
margin-top: 30px;
}
#about .clayhack_badge-cta .badge-icon {
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-ms-border-radius: 100%;
-o-border-radius: 100%;
border-radius: 100%;
border: 1px solid;
box-sizing: border-box;
color: #EF6669;
height: 150px;
padding: 30px;
width: 150px;
}
#about .clayhack_badge-cta .badge-name {
margin-top: 30px;
}
#about hr {
background: #444;
border-color: #444;
color: #444;
margin: 75px auto;
width: 50%}
#about #mission {
font-size: 1.125em;
margin-left: 10%;
text-align: center;
padding-bottom: 10px;
width: 80%}
#events {
background: url("coderit_background_light.png") center center fixed;
color: #505050;
padding-bottom: 100px;
padding-top: 100px;
}
#events .inner {
background: #fff;
margin: 10px;
padding: 50px;
}
#events h3 {
color: #F3852A;
}
#events p {
margin: 0 auto;
text-align: center;
width: 50%}
#events-clayhack {
background: url("clayhack_background_light.png") center center fixed;
color: #505050;
padding-bottom: 100px;
padding-top: 100px;
}
#events-clayhack .inner {
background: #fff;
margin: 10px;
padding: 50px;
}
#events-clayhack h3 {
color: #F3852A;
}
#events-clayhack p {
margin: 0 auto;
text-align: center;
width: 50%}
#event-list-cta {
margin: 0 auto 15px;
width: 65%}
#event-list {
list-style: none;
padding-left: 0;
}
#event-list .event-page {
display: none;
}
#event-list .event {
color: #194774;
margin-bottom: 10px;
}
#event-list .event-title {
font-size: 1.125em;
margin: 0 0 5px;
}
#event-list .event-info {
font-size: .875em;
list-style: none;
padding: 0;
}
#event-list .event-info .fa {
margin-right: 10px;
}
.event-page-nav {
background: #888;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
-ms-border-radius: 4px;
-o-border-radius: 4px;
border-radius: 4px;
cursor: pointer;
display: inline-block;
height: 15px;
margin-right: 10px;
width: 15px;
}
.event-page-nav:hover {
background: #384859;
}
.event-page-nav.active {
background: #F3852A;
}
#committees .committee {
box-sizing: border-box;
display: inline-block;
margin-bottom: 10px;
margin-left: -2px;
width: 49%}
#committees .committee .committee-img {
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-ms-border-radius: 100%;
-o-border-radius: 100%;
border-radius: 100%;
display: inline-block;
vertical-align: top;
width: 25%}
#committees .committee .committee-info {
display: inline-block;
margin-left: 1%;
vertical-align: top;
width: 70%}
#committees .committee .committee-desc {
text-align: justify;
}
#committees .committee .committee-name {
color: #F3852A;
margin: 0;
}
#committees .committee.middle {
text-align: center;
transform: translateX(50%);
}
#committees .committee.middle .committee-img {
display: block;
margin: 0 auto;
}
#committees .committee.right {
text-align: right;
}
#committees .committee.right .committee-info {
margin-left: 0;
margin-right: 1%}
#contact {
padding: 20px 0;
}
#contact .fa {
margin-right: 10px;
vertical-align: middle;
}
#contact .grid-cta {
margin: 0 auto;
width: 50%}
#contact .grid-cta .col {
display: inline-block;
float: none;
vertical-align: middle;
width: 48%}
#contact-links a {
color: #CE5F15;
display: block;
margin-bottom: 10px;
}
#contact-links-clayhack a {
color: #fff;
display: block;
margin-bottom: 10px;
}
#footer {
background: #242f3a;
color: #fff;
padding: 3px 0;
text-align: center;
}
#footer-clayhack {
background: #e7454b;
color: #fff;
padding: 3px 0;
text-align: center;
}
#error-page h1 {
margin-top: 0;
padding-top: 25px;
}
#clayhack-page h3 {
font-size: 2em;
margin-top: 0px;
color: #fff;
}
@media screen and (max-width: 768px) {
body {
font-size: 14px;
}
.grid-cta .col {
clear: both;
float: none !important;
margin-top: 8px;
padding-right: 0;
width: 100% !important;
}
.section {
padding-bottom: 15px;
padding-top: 15px;
}
.section .title {
margin-bottom: 25px;
}
#about .badge-cta {
margin-bottom: 40px;
}
#about .badge-cta .badge-icon {
font-size: 3em;
height: 100px;
width: 100px;
}
#about .badge-cta .badge-name {
margin: 0;
}
#events {
padding-bottom: 20px;
padding-top: 20px;
}
#events .inner {
padding: 20px 10px;
}
#events p {
width: auto;
}
#event-list {
width: 100%}
#committees .committee {
display: block !important;
margin-left: 0;
text-align: left !important;
transform: none !important;
width: 100% !important;
}
#committees .committee-info {
margin-left: 0 !important;
width: 100% !important;
}
}@media screen and (max-width: 400px) {
#contact .grid-cta {
width: auto;
}
#events .container {
background: #fff;
}
#events .inner {
padding: 10px 3px;
}
#event-list-cta {
width: auto;
}
}

+ 16
- 7
index.html View File

@ -16,6 +16,9 @@
rel="stylesheet" type="text/css"> rel="stylesheet" type="text/css">
<link href="css/freelancer.css" rel="stylesheet"> <link href="css/freelancer.css" rel="stylesheet">
<!-- Plugin CSS -->
<link href="css/magnific-popup/magnific-popup.css" rel="stylesheet" type="text/css">
</head> </head>
<body id="page-top"> <body id="page-top">
@ -31,16 +34,19 @@
<div class="collapse navbar-collapse" id="navbarResponsive"> <div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav mr-auto">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#portfolio">Portfolio</a>
<a class="nav-link js-scroll-trigger" href="#portfolio">Projects</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#about">About</a> <a class="nav-link js-scroll-trigger" href="#about">About</a>
</li> </li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#contact">Contact</a>
<!-- <li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#contact">Work Experience</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link js-scroll-trigger" href="Jeffery_Russell_Resume.pdf">Resume</a>
<a class="nav-link js-scroll-trigger" href="#contact">Recent Blog Posts</a>
</li> -->
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#contact">Contact</a>
</li> </li>
</ul> </ul>
<ul class="navbar-nav navbar-right"> <ul class="navbar-nav navbar-right">
@ -70,7 +76,7 @@
<!-- Portfolio Grid Section --> <!-- Portfolio Grid Section -->
<section id="portfolio"> <section id="portfolio">
<div class="container"> <div class="container">
<h2 class="text-center">Portfolio</h2>
<h2 class="text-center">Projects</h2>
<hr class="star-primary"> <hr class="star-primary">
<h3 class="text-center">Click Picture to Show Project Details</h3> <h3 class="text-center">Click Picture to Show Project Details</h3>
<div class="row"> <div class="row">
@ -229,7 +235,7 @@
<section class="success" id="about"> <section class="success" id="about">
<div class="container"> <div class="container">
<h2 class="text-center">About</h2> <h2 class="text-center">About</h2>
<hr class="star-light">
<hr class="star-light star-light2" style="background-color: #000;">
<div class="row"> <div class="row">
<div class="col-lg-4 ml-auto"> <div class="col-lg-4 ml-auto">
<p>I am currently a third year Computer Science student at Rochester Institute of Technology. I am a very <p>I am currently a third year Computer Science student at Rochester Institute of Technology. I am a very
@ -245,7 +251,7 @@
<div class="col-lg-8 mx-auto text-center"> <div class="col-lg-8 mx-auto text-center">
<a href="https://jrtechs.me/Jeffery_Russell_Resume.pdf" class="btn btn-lg btn-outline"> <a href="https://jrtechs.me/Jeffery_Russell_Resume.pdf" class="btn btn-lg btn-outline">
<i class="fa fa-download"></i> <i class="fa fa-download"></i>
Download Portfolio
Download Resume
</a> </a>
</div> </div>
</div> </div>
@ -344,6 +350,7 @@
</div> </div>
</footer> </footer>
<!-- Scroll to Top Button (Only visible on small and extra-small screen sizes) --> <!-- Scroll to Top Button (Only visible on small and extra-small screen sizes) -->
<div class="scroll-top d-lg-none"> <div class="scroll-top d-lg-none">
<a class="btn btn-primary js-scroll-trigger" href="#page-top"> <a class="btn btn-primary js-scroll-trigger" href="#page-top">
@ -963,6 +970,8 @@
<!-- Plugin JavaScript --> <!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script> <script src="js/jquery.easing.min.js"></script>
<script src="js/freelancer.js"></script>
<script> <script>
$("form").submit(function(event) { $("form").submit(function(event) {

+ 75
- 0
js/freelancer.js View File

@ -0,0 +1,75 @@
(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html, body').animate({
scrollTop: (target.offset().top - 70)
}, 1000, "easeInOutExpo");
return false;
}
}
});
// Scroll to top button appear
$(document).scroll(function() {
var scrollDistance = $(this).scrollTop();
if (scrollDistance > 100) {
$('.scroll-to-top').fadeIn();
} else {
$('.scroll-to-top').fadeOut();
}
});
// Closes responsive menu when a scroll trigger link is clicked
$('.js-scroll-trigger').click(function() {
$('.navbar-collapse').collapse('hide');
});
// Activate scrollspy to add active class to navbar items on scroll
$('body').scrollspy({
target: '#mainNav',
offset: 80
});
// Collapse Navbar
var navbarCollapse = function() {
if ($("#mainNav").offset().top > 100) {
$("#mainNav").addClass("navbar-shrink");
} else {
$("#mainNav").removeClass("navbar-shrink");
}
};
// Collapse now if page is not at top
navbarCollapse();
// Collapse the navbar when page is scrolled
$(window).scroll(navbarCollapse);
// Modal popup$(function () {
$('.portfolio-item').magnificPopup({
type: 'inline',
preloader: false,
focus: '#username',
modal: true
});
$(document).on('click', '.portfolio-modal-dismiss', function(e) {
e.preventDefault();
$.magnificPopup.close();
});
// Floating label headings for the contact form
$(function() {
$("body").on("input propertychange", ".floating-label-form-group", function(e) {
$(this).toggleClass("floating-label-form-group-with-value", !!$(e.target).val());
}).on("focus", ".floating-label-form-group", function() {
$(this).addClass("floating-label-form-group-with-focus");
}).on("blur", ".floating-label-form-group", function() {
$(this).removeClass("floating-label-form-group-with-focus");
});
});
})(jQuery); // End of use strict

Loading…
Cancel
Save